@apolitical/component-library 1.8.0-beta.3 → 1.8.1-beta.0

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.
Files changed (45) hide show
  1. package/4TNE5QTO-0b6a1f67.js +987 -0
  2. package/4TNE5QTO-3dadb76b.mjs +9078 -0
  3. package/context/index.d.ts +1 -0
  4. package/context/react-query/index.d.ts +1 -0
  5. package/context/react-query/react-query.provider.d.ts +7 -0
  6. package/context/user/user.context.d.ts +2 -0
  7. package/discussion/components/add-post/add-post.d.ts +16 -0
  8. package/discussion/components/add-post/index.d.ts +1 -0
  9. package/discussion/{form → components/form}/form.d.ts +1 -1
  10. package/discussion/components/index.d.ts +7 -0
  11. package/discussion/{likes → components/likes}/likes.d.ts +3 -3
  12. package/discussion/{likes → components/likes}/likes.helpers.d.ts +1 -1
  13. package/discussion/{post → components/post}/post.d.ts +2 -4
  14. package/discussion/feeds/activities-feed/activities-feed.d.ts +24 -0
  15. package/discussion/feeds/activities-feed/activities-feed.handlers.d.ts +28 -0
  16. package/discussion/feeds/activities-feed/activities-feed.helpers.d.ts +23 -0
  17. package/discussion/feeds/activities-feed/activities-feed.mock.d.ts +318 -0
  18. package/discussion/feeds/activities-feed/index.d.ts +1 -0
  19. package/discussion/feeds/index.d.ts +2 -0
  20. package/discussion/feeds/replies-feed/index.d.ts +1 -0
  21. package/discussion/feeds/replies-feed/replies-feed.d.ts +24 -0
  22. package/discussion/feeds/replies-feed/replies-feed.handlers.d.ts +81 -0
  23. package/discussion/feeds/replies-feed/replies-feed.mock.d.ts +2 -0
  24. package/discussion/index.d.ts +3 -6
  25. package/discussion/sections/activity-section/activity-section.d.ts +32 -0
  26. package/discussion/sections/activity-section/activity-section.handlers.d.ts +58 -0
  27. package/discussion/sections/activity-section/activity.mock.d.ts +2 -0
  28. package/discussion/sections/activity-section/index.d.ts +1 -0
  29. package/discussion/sections/index.d.ts +1 -0
  30. package/index-3fbe0cc9.js +101 -0
  31. package/index-9d689beb.mjs +23321 -0
  32. package/index.js +1 -101
  33. package/index.mjs +79 -19595
  34. package/package.json +4 -1
  35. package/style.css +1 -1
  36. /package/discussion/{conversation → components/conversation}/conversation.d.ts +0 -0
  37. /package/discussion/{conversation → components/conversation}/index.d.ts +0 -0
  38. /package/discussion/{form → components/form}/index.d.ts +0 -0
  39. /package/discussion/{likes → components/likes}/index.d.ts +0 -0
  40. /package/discussion/{post → components/post}/index.d.ts +0 -0
  41. /package/discussion/{post → components/post}/post.mock.d.ts +0 -0
  42. /package/discussion/{responses-heading → components/responses-heading}/index.d.ts +0 -0
  43. /package/discussion/{responses-heading → components/responses-heading}/responses-heading.d.ts +0 -0
  44. /package/discussion/{thread → components/thread}/index.d.ts +0 -0
  45. /package/discussion/{thread → components/thread}/thread.d.ts +0 -0
@@ -0,0 +1,101 @@
1
+ "use strict";var Mu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var N=(e,t,r)=>(Mu(e,t,"read from private field"),r?r.call(e):t.get(e)),ie=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Z=(e,t,r,n)=>(Mu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var ca=(e,t,r,n)=>({set _(i){Z(e,t,i,r)},get _(){return N(e,t,n)}}),ye=(e,t,r)=>(Mu(e,t,"access private method"),r);const U=require("react"),O=require("react/jsx-runtime"),Tt=require("react-router-dom");function kE(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const pe=kE(U);var he=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Js(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var cg={exports:{}};/*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var a=typeof o;if(a==="string"||a==="number")n.push(o);else if(Array.isArray(o)){if(o.length){var s=r.apply(null,o);s&&n.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){n.push(o.toString());continue}for(var u in o)t.call(o,u)&&o[u]&&n.push(u)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(cg);var ME=cg.exports;const se=_r(ME),FE=({element:e="span",showOnFocus:t=!0,children:r,...n})=>U.createElement(e,{...n,className:se("hidden",{"show-on-focus":t}),children:r}),lt=U.memo(FE),DE=({element:e="span",children:t=null,...r})=>U.createElement(e,{...r,"aria-hidden":!0},t),Tf=U.memo(DE),ni=(e,t)=>{const r=U.useRef(!1);U.useEffect(()=>{r.current?e():r.current=!0},t)};/*!
6
+ * cookie
7
+ * Copyright(c) 2012-2014 Roman Shtylman
8
+ * Copyright(c) 2015 Douglas Christopher Wilson
9
+ * MIT Licensed
10
+ */var lg=UE,yh=$E,BE=Object.prototype.toString,la=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function UE(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var r={},n=t||{},i=n.decode||jE,o=0;o<e.length;){var a=e.indexOf("=",o);if(a===-1)break;var s=e.indexOf(";",o);if(s===-1)s=e.length;else if(s<a){o=e.lastIndexOf(";",a-1)+1;continue}var u=e.slice(o,a).trim();if(r[u]===void 0){var l=e.slice(a+1,s).trim();l.charCodeAt(0)===34&&(l=l.slice(1,-1)),r[u]=GE(l,i)}o=s+1}return r}function $E(e,t,r){var n=r||{},i=n.encode||HE;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!la.test(e))throw new TypeError("argument name is invalid");var o=i(t);if(o&&!la.test(o))throw new TypeError("argument val is invalid");var a=e+"="+o;if(n.maxAge!=null){var s=n.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");a+="; Max-Age="+Math.floor(s)}if(n.domain){if(!la.test(n.domain))throw new TypeError("option domain is invalid");a+="; Domain="+n.domain}if(n.path){if(!la.test(n.path))throw new TypeError("option path is invalid");a+="; Path="+n.path}if(n.expires){var u=n.expires;if(!qE(u)||isNaN(u.valueOf()))throw new TypeError("option expires is invalid");a+="; Expires="+u.toUTCString()}if(n.httpOnly&&(a+="; HttpOnly"),n.secure&&(a+="; Secure"),n.priority){var l=typeof n.priority=="string"?n.priority.toLowerCase():n.priority;switch(l){case"low":a+="; Priority=Low";break;case"medium":a+="; Priority=Medium";break;case"high":a+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(n.sameSite){var c=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(c){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a}function jE(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function HE(e){return encodeURIComponent(e)}function qE(e){return BE.call(e)==="[object Date]"||e instanceof Date}function GE(e,t){try{return t(e)}catch{return e}}function VE(){return typeof document=="object"&&typeof document.cookie=="string"}function WE(e){return typeof e=="string"?lg(e):typeof e=="object"&&e!==null?e:{}}function Fu(e,t={}){const r=zE(e);if(!t.doNotParse)try{return JSON.parse(r)}catch{}return e}function zE(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class fg{constructor(t,r={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=lg(document.cookie),this._checkChanges(i)};const n=typeof document>"u"?"":document.cookie;this.cookies=WE(t||n),this.defaultSetOptions=r,this.HAS_DOCUMENT_COOKIE=VE()}_emitChange(t){for(let r=0;r<this.changeListeners.length;++r)this.changeListeners[r](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(n=>{t[n]!==this.cookies[n]&&this._emitChange({name:n,value:Fu(t[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,r={}){return r.doNotUpdate||this.update(),Fu(this.cookies[t],r)}getAll(t={}){t.doNotUpdate||this.update();const r={};for(let n in this.cookies)r[n]=Fu(this.cookies[n],t);return r}set(t,r,n){n?n=Object.assign(Object.assign({},this.defaultSetOptions),n):n=this.defaultSetOptions;const i=typeof r=="string"?r:JSON.stringify(r);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:i}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=yh(t,i,n)),this._emitChange({name:t,value:r,options:n})}remove(t,r){const n=r=Object.assign(Object.assign({},r),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=yh(t,"",n)),this._emitChange({name:t,value:void 0,options:r})}addChangeListener(t){this.changeListeners.push(t),this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const r=this.changeListeners.indexOf(t);r>=0&&this.changeListeners.splice(r,1),this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const hg=pe.createContext(new fg),{Provider:QE,Consumer:tI}=hg,YE=hg;class KE extends pe.Component{constructor(t){super(t),t.cookies?this.cookies=t.cookies:this.cookies=new fg(void 0,t.defaultSetOptions)}render(){return pe.createElement(QE,{value:this.cookies},this.props.children)}}var Al={exports:{}},Le={};/** @license React v16.13.1
11
+ * react-is.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var vh;function XE(){if(vh)return Le;vh=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(w){if(typeof w=="object"&&w!==null){var P=w.$$typeof;switch(P){case t:switch(w=w.type,w){case u:case l:case n:case o:case i:case d:return w;default:switch(w=w&&w.$$typeof,w){case s:case c:case p:case h:case a:return w;default:return P}}case r:return P}}}function T(w){return b(w)===l}return Le.AsyncMode=u,Le.ConcurrentMode=l,Le.ContextConsumer=s,Le.ContextProvider=a,Le.Element=t,Le.ForwardRef=c,Le.Fragment=n,Le.Lazy=p,Le.Memo=h,Le.Portal=r,Le.Profiler=o,Le.StrictMode=i,Le.Suspense=d,Le.isAsyncMode=function(w){return T(w)||b(w)===u},Le.isConcurrentMode=T,Le.isContextConsumer=function(w){return b(w)===s},Le.isContextProvider=function(w){return b(w)===a},Le.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Le.isForwardRef=function(w){return b(w)===c},Le.isFragment=function(w){return b(w)===n},Le.isLazy=function(w){return b(w)===p},Le.isMemo=function(w){return b(w)===h},Le.isPortal=function(w){return b(w)===r},Le.isProfiler=function(w){return b(w)===o},Le.isStrictMode=function(w){return b(w)===i},Le.isSuspense=function(w){return b(w)===d},Le.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===l||w===o||w===i||w===d||w===f||typeof w=="object"&&w!==null&&(w.$$typeof===p||w.$$typeof===h||w.$$typeof===a||w.$$typeof===s||w.$$typeof===c||w.$$typeof===_||w.$$typeof===S||w.$$typeof===v||w.$$typeof===m)},Le.typeOf=b,Le}var ke={};/** @license React v16.13.1
18
+ * react-is.development.js
19
+ *
20
+ * Copyright (c) Facebook, Inc. and its affiliates.
21
+ *
22
+ * This source code is licensed under the MIT license found in the
23
+ * LICENSE file in the root directory of this source tree.
24
+ */var Eh;function JE(){return Eh||(Eh=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(oe){return typeof oe=="string"||typeof oe=="function"||oe===n||oe===l||oe===o||oe===i||oe===d||oe===f||typeof oe=="object"&&oe!==null&&(oe.$$typeof===p||oe.$$typeof===h||oe.$$typeof===a||oe.$$typeof===s||oe.$$typeof===c||oe.$$typeof===_||oe.$$typeof===S||oe.$$typeof===v||oe.$$typeof===m)}function T(oe){if(typeof oe=="object"&&oe!==null){var st=oe.$$typeof;switch(st){case t:var Je=oe.type;switch(Je){case u:case l:case n:case o:case i:case d:return Je;default:var Wt=Je&&Je.$$typeof;switch(Wt){case s:case c:case p:case h:case a:return Wt;default:return st}}case r:return st}}}var w=u,P=l,R=s,L=a,$=t,q=c,G=n,j=p,Y=h,re=r,K=o,M=i,z=d,ee=!1;function fe(oe){return ee||(ee=!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.")),J(oe)||T(oe)===u}function J(oe){return T(oe)===l}function X(oe){return T(oe)===s}function le(oe){return T(oe)===a}function de(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===t}function Ve(oe){return T(oe)===c}function te(oe){return T(oe)===n}function ae(oe){return T(oe)===p}function De(oe){return T(oe)===h}function Ie(oe){return T(oe)===r}function xt(oe){return T(oe)===o}function Rt(oe){return T(oe)===i}function Vt(oe){return T(oe)===d}ke.AsyncMode=w,ke.ConcurrentMode=P,ke.ContextConsumer=R,ke.ContextProvider=L,ke.Element=$,ke.ForwardRef=q,ke.Fragment=G,ke.Lazy=j,ke.Memo=Y,ke.Portal=re,ke.Profiler=K,ke.StrictMode=M,ke.Suspense=z,ke.isAsyncMode=fe,ke.isConcurrentMode=J,ke.isContextConsumer=X,ke.isContextProvider=le,ke.isElement=de,ke.isForwardRef=Ve,ke.isFragment=te,ke.isLazy=ae,ke.isMemo=De,ke.isPortal=Ie,ke.isProfiler=xt,ke.isStrictMode=Rt,ke.isSuspense=Vt,ke.isValidElementType=b,ke.typeOf=T}()),ke}process.env.NODE_ENV==="production"?Al.exports=XE():Al.exports=JE();var ZE=Al.exports,dg=ZE,e_={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},t_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},pg={};pg[dg.ForwardRef]=e_;pg[dg.Memo]=t_;function r_(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function mg(e){const t=U.useContext(YE);if(!t)throw new Error("Missing <CookiesProvider>");const[r,n]=U.useState(()=>t.getAll());r_()&&U.useLayoutEffect(()=>{function s(){const u=t.getAll({doNotUpdate:!0});n_(e||null,u,r)&&n(u)}return t.addChangeListener(s),()=>{t.removeChangeListener(s)}},[t,r]);const i=U.useMemo(()=>t.set.bind(t),[t]),o=U.useMemo(()=>t.remove.bind(t),[t]),a=U.useMemo(()=>t.update.bind(t),[t]);return[r,i,o,a]}function n_(e,t,r){if(!e)return!0;for(let n of e)if(t[n]!==r[n])return!0;return!1}var gg={exports:{}},Du={exports:{}},fa={},ha={exports:{}},Bu,_h;function yg(){return _h||(_h=1,Bu=function(t,r){return function(){for(var i=new Array(arguments.length),o=0;o<i.length;o++)i[o]=arguments[o];return t.apply(r,i)}}),Bu}var Uu,bh;function ft(){if(bh)return Uu;bh=1;var e=yg(),t=Object.prototype.toString,r=function(M){return function(z){var ee=t.call(z);return M[ee]||(M[ee]=ee.slice(8,-1).toLowerCase())}}(Object.create(null));function n(M){return M=M.toLowerCase(),function(ee){return r(ee)===M}}function i(M){return Array.isArray(M)}function o(M){return typeof M>"u"}function a(M){return M!==null&&!o(M)&&M.constructor!==null&&!o(M.constructor)&&typeof M.constructor.isBuffer=="function"&&M.constructor.isBuffer(M)}var s=n("ArrayBuffer");function u(M){var z;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?z=ArrayBuffer.isView(M):z=M&&M.buffer&&s(M.buffer),z}function l(M){return typeof M=="string"}function c(M){return typeof M=="number"}function d(M){return M!==null&&typeof M=="object"}function f(M){if(r(M)!=="object")return!1;var z=Object.getPrototypeOf(M);return z===null||z===Object.prototype}var h=n("Date"),p=n("File"),m=n("Blob"),_=n("FileList");function S(M){return t.call(M)==="[object Function]"}function v(M){return d(M)&&S(M.pipe)}function b(M){var z="[object FormData]";return M&&(typeof FormData=="function"&&M instanceof FormData||t.call(M)===z||S(M.toString)&&M.toString()===z)}var T=n("URLSearchParams");function w(M){return M.trim?M.trim():M.replace(/^\s+|\s+$/g,"")}function P(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function R(M,z){if(!(M===null||typeof M>"u"))if(typeof M!="object"&&(M=[M]),i(M))for(var ee=0,fe=M.length;ee<fe;ee++)z.call(null,M[ee],ee,M);else for(var J in M)Object.prototype.hasOwnProperty.call(M,J)&&z.call(null,M[J],J,M)}function L(){var M={};function z(J,X){f(M[X])&&f(J)?M[X]=L(M[X],J):f(J)?M[X]=L({},J):i(J)?M[X]=J.slice():M[X]=J}for(var ee=0,fe=arguments.length;ee<fe;ee++)R(arguments[ee],z);return M}function $(M,z,ee){return R(z,function(J,X){ee&&typeof J=="function"?M[X]=e(J,ee):M[X]=J}),M}function q(M){return M.charCodeAt(0)===65279&&(M=M.slice(1)),M}function G(M,z,ee,fe){M.prototype=Object.create(z.prototype,fe),M.prototype.constructor=M,ee&&Object.assign(M.prototype,ee)}function j(M,z,ee){var fe,J,X,le={};z=z||{};do{for(fe=Object.getOwnPropertyNames(M),J=fe.length;J-- >0;)X=fe[J],le[X]||(z[X]=M[X],le[X]=!0);M=Object.getPrototypeOf(M)}while(M&&(!ee||ee(M,z))&&M!==Object.prototype);return z}function Y(M,z,ee){M=String(M),(ee===void 0||ee>M.length)&&(ee=M.length),ee-=z.length;var fe=M.indexOf(z,ee);return fe!==-1&&fe===ee}function re(M){if(!M)return null;var z=M.length;if(o(z))return null;for(var ee=new Array(z);z-- >0;)ee[z]=M[z];return ee}var K=function(M){return function(z){return M&&z instanceof M}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));return Uu={isArray:i,isArrayBuffer:s,isBuffer:a,isFormData:b,isArrayBufferView:u,isString:l,isNumber:c,isObject:d,isPlainObject:f,isUndefined:o,isDate:h,isFile:p,isBlob:m,isFunction:S,isStream:v,isURLSearchParams:T,isStandardBrowserEnv:P,forEach:R,merge:L,extend:$,trim:w,stripBOM:q,inherits:G,toFlatObject:j,kindOf:r,kindOfTest:n,endsWith:Y,toArray:re,isTypedArray:K,isFileList:_},Uu}var $u,wh;function vg(){if(wh)return $u;wh=1;var e=ft();function t(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return $u=function(n,i,o){if(!i)return n;var a;if(o)a=o(i);else if(e.isURLSearchParams(i))a=i.toString();else{var s=[];e.forEach(i,function(c,d){c===null||typeof c>"u"||(e.isArray(c)?d=d+"[]":c=[c],e.forEach(c,function(h){e.isDate(h)?h=h.toISOString():e.isObject(h)&&(h=JSON.stringify(h)),s.push(t(d)+"="+t(h))}))}),a=s.join("&")}if(a){var u=n.indexOf("#");u!==-1&&(n=n.slice(0,u)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n},$u}var ju,Sh;function i_(){if(Sh)return ju;Sh=1;var e=ft();function t(){this.handlers=[]}return t.prototype.use=function(n,i,o){return this.handlers.push({fulfilled:n,rejected:i,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1},t.prototype.eject=function(n){this.handlers[n]&&(this.handlers[n]=null)},t.prototype.forEach=function(n){e.forEach(this.handlers,function(o){o!==null&&n(o)})},ju=t,ju}var Hu,Th;function o_(){if(Th)return Hu;Th=1;var e=ft();return Hu=function(r,n){e.forEach(r,function(o,a){a!==n&&a.toUpperCase()===n.toUpperCase()&&(r[n]=o,delete r[a])})},Hu}var qu,xh;function co(){if(xh)return qu;xh=1;var e=ft();function t(i,o,a,s,u){Error.call(this),this.message=i,this.name="AxiosError",o&&(this.code=o),a&&(this.config=a),s&&(this.request=s),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 r=t.prototype,n={};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(i){n[i]={value:i}}),Object.defineProperties(t,n),Object.defineProperty(r,"isAxiosError",{value:!0}),t.from=function(i,o,a,s,u,l){var c=Object.create(r);return e.toFlatObject(i,c,function(f){return f!==Error.prototype}),t.call(c,i.message,o,a,s,u),c.name=i.name,l&&Object.assign(c,l),c},qu=t,qu}var Gu,Oh;function Eg(){return Oh||(Oh=1,Gu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}),Gu}var Vu,Ah;function _g(){if(Ah)return Vu;Ah=1;var e=ft();function t(r,n){n=n||new FormData;var i=[];function o(s){return s===null?"":e.isDate(s)?s.toISOString():e.isArrayBuffer(s)||e.isTypedArray(s)?typeof Blob=="function"?new Blob([s]):Buffer.from(s):s}function a(s,u){if(e.isPlainObject(s)||e.isArray(s)){if(i.indexOf(s)!==-1)throw Error("Circular reference detected in "+u);i.push(s),e.forEach(s,function(c,d){if(!e.isUndefined(c)){var f=u?u+"."+d:d,h;if(c&&!u&&typeof c=="object"){if(e.endsWith(d,"{}"))c=JSON.stringify(c);else if(e.endsWith(d,"[]")&&(h=e.toArray(c))){h.forEach(function(p){!e.isUndefined(p)&&n.append(f,o(p))});return}}a(c,f)}}),i.pop()}else n.append(u,o(s))}return a(r),n}return Vu=t,Vu}var Wu,Ch;function s_(){if(Ch)return Wu;Ch=1;var e=co();return Wu=function(r,n,i){var o=i.config.validateStatus;!i.status||!o||o(i.status)?r(i):n(new e("Request failed with status code "+i.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))},Wu}var zu,Rh;function a_(){if(Rh)return zu;Rh=1;var e=ft();return zu=e.isStandardBrowserEnv()?function(){return{write:function(n,i,o,a,s,u){var l=[];l.push(n+"="+encodeURIComponent(i)),e.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),e.isString(a)&&l.push("path="+a),e.isString(s)&&l.push("domain="+s),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),zu}var Qu,Ph;function u_(){return Ph||(Ph=1,Qu=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Qu}var Yu,Nh;function c_(){return Nh||(Nh=1,Yu=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),Yu}var Ku,Ih;function bg(){if(Ih)return Ku;Ih=1;var e=u_(),t=c_();return Ku=function(n,i){return n&&!e(i)?t(n,i):i},Ku}var Xu,Lh;function l_(){if(Lh)return Xu;Lh=1;var e=ft(),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 Xu=function(n){var i={},o,a,s;return n&&e.forEach(n.split(`
25
+ `),function(l){if(s=l.indexOf(":"),o=e.trim(l.substr(0,s)).toLowerCase(),a=e.trim(l.substr(s+1)),o){if(i[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?i[o]=(i[o]?i[o]:[]).concat([a]):i[o]=i[o]?i[o]+", "+a:a}}),i},Xu}var Ju,kh;function f_(){if(kh)return Ju;kh=1;var e=ft();return Ju=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function o(a){var s=a;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(s){var u=e.isString(s)?o(s):s;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),Ju}var Zu,Mh;function mu(){if(Mh)return Zu;Mh=1;var e=co(),t=ft();function r(n){e.call(this,n??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(r,e,{__CANCEL__:!0}),Zu=r,Zu}var ec,Fh;function h_(){return Fh||(Fh=1,ec=function(t){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""}),ec}var tc,Dh;function Bh(){if(Dh)return tc;Dh=1;var e=ft(),t=s_(),r=a_(),n=vg(),i=bg(),o=l_(),a=f_(),s=Eg(),u=co(),l=mu(),c=h_();return tc=function(f){return new Promise(function(p,m){var _=f.data,S=f.headers,v=f.responseType,b;function T(){f.cancelToken&&f.cancelToken.unsubscribe(b),f.signal&&f.signal.removeEventListener("abort",b)}e.isFormData(_)&&e.isStandardBrowserEnv()&&delete S["Content-Type"];var w=new XMLHttpRequest;if(f.auth){var P=f.auth.username||"",R=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";S.Authorization="Basic "+btoa(P+":"+R)}var L=i(f.baseURL,f.url);w.open(f.method.toUpperCase(),n(L,f.params,f.paramsSerializer),!0),w.timeout=f.timeout;function $(){if(w){var j="getAllResponseHeaders"in w?o(w.getAllResponseHeaders()):null,Y=!v||v==="text"||v==="json"?w.responseText:w.response,re={data:Y,status:w.status,statusText:w.statusText,headers:j,config:f,request:w};t(function(M){p(M),T()},function(M){m(M),T()},re),w=null}}if("onloadend"in w?w.onloadend=$:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout($)},w.onabort=function(){w&&(m(new u("Request aborted",u.ECONNABORTED,f,w)),w=null)},w.onerror=function(){m(new u("Network Error",u.ERR_NETWORK,f,w,w)),w=null},w.ontimeout=function(){var Y=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",re=f.transitional||s;f.timeoutErrorMessage&&(Y=f.timeoutErrorMessage),m(new u(Y,re.clarifyTimeoutError?u.ETIMEDOUT:u.ECONNABORTED,f,w)),w=null},e.isStandardBrowserEnv()){var q=(f.withCredentials||a(L))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;q&&(S[f.xsrfHeaderName]=q)}"setRequestHeader"in w&&e.forEach(S,function(Y,re){typeof _>"u"&&re.toLowerCase()==="content-type"?delete S[re]:w.setRequestHeader(re,Y)}),e.isUndefined(f.withCredentials)||(w.withCredentials=!!f.withCredentials),v&&v!=="json"&&(w.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&w.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&w.upload&&w.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(b=function(j){w&&(m(!j||j&&j.type?new l:j),w.abort(),w=null)},f.cancelToken&&f.cancelToken.subscribe(b),f.signal&&(f.signal.aborted?b():f.signal.addEventListener("abort",b))),_||(_=null);var G=c(L);if(G&&["http","https","file"].indexOf(G)===-1){m(new u("Unsupported protocol "+G+":",u.ERR_BAD_REQUEST,f));return}w.send(_)})},tc}var rc,Uh;function d_(){return Uh||(Uh=1,rc=null),rc}var nc,$h;function xf(){if($h)return nc;$h=1;var e=ft(),t=o_(),r=co(),n=Eg(),i=_g(),o={"Content-Type":"application/x-www-form-urlencoded"};function a(c,d){!e.isUndefined(c)&&e.isUndefined(c["Content-Type"])&&(c["Content-Type"]=d)}function s(){var c;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(c=Bh()),c}function u(c,d,f){if(e.isString(c))try{return(d||JSON.parse)(c),e.trim(c)}catch(h){if(h.name!=="SyntaxError")throw h}return(f||JSON.stringify)(c)}var l={transitional:n,adapter:s(),transformRequest:[function(d,f){if(t(f,"Accept"),t(f,"Content-Type"),e.isFormData(d)||e.isArrayBuffer(d)||e.isBuffer(d)||e.isStream(d)||e.isFile(d)||e.isBlob(d))return d;if(e.isArrayBufferView(d))return d.buffer;if(e.isURLSearchParams(d))return a(f,"application/x-www-form-urlencoded;charset=utf-8"),d.toString();var h=e.isObject(d),p=f&&f["Content-Type"],m;if((m=e.isFileList(d))||h&&p==="multipart/form-data"){var _=this.env&&this.env.FormData;return i(m?{"files[]":d}:d,_&&new _)}else if(h||p==="application/json")return a(f,"application/json"),u(d);return d}],transformResponse:[function(d){var f=this.transitional||l.transitional,h=f&&f.silentJSONParsing,p=f&&f.forcedJSONParsing,m=!h&&this.responseType==="json";if(m||p&&e.isString(d)&&d.length)try{return JSON.parse(d)}catch(_){if(m)throw _.name==="SyntaxError"?r.from(_,r.ERR_BAD_RESPONSE,this,null,this.response):_}return d}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:d_()},validateStatus:function(d){return d>=200&&d<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(d){l.headers[d]={}}),e.forEach(["post","put","patch"],function(d){l.headers[d]=e.merge(o)}),nc=l,nc}var ic,jh;function p_(){if(jh)return ic;jh=1;var e=ft(),t=xf();return ic=function(n,i,o){var a=this||t;return e.forEach(o,function(u){n=u.call(a,n,i)}),n},ic}var oc,Hh;function wg(){return Hh||(Hh=1,oc=function(t){return!!(t&&t.__CANCEL__)}),oc}var sc,qh;function m_(){if(qh)return sc;qh=1;var e=ft(),t=p_(),r=wg(),n=xf(),i=mu();function o(a){if(a.cancelToken&&a.cancelToken.throwIfRequested(),a.signal&&a.signal.aborted)throw new i}return sc=function(s){o(s),s.headers=s.headers||{},s.data=t.call(s,s.data,s.headers,s.transformRequest),s.headers=e.merge(s.headers.common||{},s.headers[s.method]||{},s.headers),e.forEach(["delete","get","head","post","put","patch","common"],function(c){delete s.headers[c]});var u=s.adapter||n.adapter;return u(s).then(function(c){return o(s),c.data=t.call(s,c.data,c.headers,s.transformResponse),c},function(c){return r(c)||(o(s),c&&c.response&&(c.response.data=t.call(s,c.response.data,c.response.headers,s.transformResponse))),Promise.reject(c)})},sc}var ac,Gh;function Sg(){if(Gh)return ac;Gh=1;var e=ft();return ac=function(r,n){n=n||{};var i={};function o(d,f){return e.isPlainObject(d)&&e.isPlainObject(f)?e.merge(d,f):e.isPlainObject(f)?e.merge({},f):e.isArray(f)?f.slice():f}function a(d){if(e.isUndefined(n[d])){if(!e.isUndefined(r[d]))return o(void 0,r[d])}else return o(r[d],n[d])}function s(d){if(!e.isUndefined(n[d]))return o(void 0,n[d])}function u(d){if(e.isUndefined(n[d])){if(!e.isUndefined(r[d]))return o(void 0,r[d])}else return o(void 0,n[d])}function l(d){if(d in n)return o(r[d],n[d]);if(d in r)return o(void 0,r[d])}var c={url:s,method:s,data:s,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:l};return e.forEach(Object.keys(r).concat(Object.keys(n)),function(f){var h=c[f]||a,p=h(f);e.isUndefined(p)&&h!==l||(i[f]=p)}),i},ac}var uc,Vh;function Tg(){return Vh||(Vh=1,uc={version:"0.27.2"}),uc}var cc,Wh;function g_(){if(Wh)return cc;Wh=1;var e=Tg().version,t=co(),r={};["object","boolean","number","function","string","symbol"].forEach(function(o,a){r[o]=function(u){return typeof u===o||"a"+(a<1?"n ":" ")+o}});var n={};r.transitional=function(a,s,u){function l(c,d){return"[Axios v"+e+"] Transitional option '"+c+"'"+d+(u?". "+u:"")}return function(c,d,f){if(a===!1)throw new t(l(d," has been removed"+(s?" in "+s:"")),t.ERR_DEPRECATED);return s&&!n[d]&&(n[d]=!0,console.warn(l(d," has been deprecated since v"+s+" and will be removed in the near future"))),a?a(c,d,f):!0}};function i(o,a,s){if(typeof o!="object")throw new t("options must be an object",t.ERR_BAD_OPTION_VALUE);for(var u=Object.keys(o),l=u.length;l-- >0;){var c=u[l],d=a[c];if(d){var f=o[c],h=f===void 0||d(f,c,o);if(h!==!0)throw new t("option "+c+" must be "+h,t.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new t("Unknown option "+c,t.ERR_BAD_OPTION)}}return cc={assertOptions:i,validators:r},cc}var lc,zh;function y_(){if(zh)return lc;zh=1;var e=ft(),t=vg(),r=i_(),n=m_(),i=Sg(),o=bg(),a=g_(),s=a.validators;function u(l){this.defaults=l,this.interceptors={request:new r,response:new r}}return u.prototype.request=function(c,d){typeof c=="string"?(d=d||{},d.url=c):d=c||{},d=i(this.defaults,d),d.method?d.method=d.method.toLowerCase():this.defaults.method?d.method=this.defaults.method.toLowerCase():d.method="get";var f=d.transitional;f!==void 0&&a.assertOptions(f,{silentJSONParsing:s.transitional(s.boolean),forcedJSONParsing:s.transitional(s.boolean),clarifyTimeoutError:s.transitional(s.boolean)},!1);var h=[],p=!0;this.interceptors.request.forEach(function(P){typeof P.runWhen=="function"&&P.runWhen(d)===!1||(p=p&&P.synchronous,h.unshift(P.fulfilled,P.rejected))});var m=[];this.interceptors.response.forEach(function(P){m.push(P.fulfilled,P.rejected)});var _;if(!p){var S=[n,void 0];for(Array.prototype.unshift.apply(S,h),S=S.concat(m),_=Promise.resolve(d);S.length;)_=_.then(S.shift(),S.shift());return _}for(var v=d;h.length;){var b=h.shift(),T=h.shift();try{v=b(v)}catch(w){T(w);break}}try{_=n(v)}catch(w){return Promise.reject(w)}for(;m.length;)_=_.then(m.shift(),m.shift());return _},u.prototype.getUri=function(c){c=i(this.defaults,c);var d=o(c.baseURL,c.url);return t(d,c.params,c.paramsSerializer)},e.forEach(["delete","get","head","options"],function(c){u.prototype[c]=function(d,f){return this.request(i(f||{},{method:c,url:d,data:(f||{}).data}))}}),e.forEach(["post","put","patch"],function(c){function d(f){return function(p,m,_){return this.request(i(_||{},{method:c,headers:f?{"Content-Type":"multipart/form-data"}:{},url:p,data:m}))}}u.prototype[c]=d(),u.prototype[c+"Form"]=d(!0)}),lc=u,lc}var fc,Qh;function v_(){if(Qh)return fc;Qh=1;var e=mu();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var i=this;this.promise.then(function(o){if(i._listeners){var a,s=i._listeners.length;for(a=0;a<s;a++)i._listeners[a](o);i._listeners=null}}),this.promise.then=function(o){var a,s=new Promise(function(u){i.subscribe(u),a=u}).then(o);return s.cancel=function(){i.unsubscribe(a)},s},r(function(a){i.reason||(i.reason=new e(a),n(i.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]},t.prototype.unsubscribe=function(n){if(this._listeners){var i=this._listeners.indexOf(n);i!==-1&&this._listeners.splice(i,1)}},t.source=function(){var n,i=new t(function(a){n=a});return{token:i,cancel:n}},fc=t,fc}var hc,Yh;function E_(){return Yh||(Yh=1,hc=function(t){return function(n){return t.apply(null,n)}}),hc}var dc,Kh;function __(){if(Kh)return dc;Kh=1;var e=ft();return dc=function(r){return e.isObject(r)&&r.isAxiosError===!0},dc}var Xh;function b_(){if(Xh)return ha.exports;Xh=1;var e=ft(),t=yg(),r=y_(),n=Sg(),i=xf();function o(s){var u=new r(s),l=t(r.prototype.request,u);return e.extend(l,r.prototype,u),e.extend(l,u),l.create=function(d){return o(n(s,d))},l}var a=o(i);return a.Axios=r,a.CanceledError=mu(),a.CancelToken=v_(),a.isCancel=wg(),a.VERSION=Tg().version,a.toFormData=_g(),a.AxiosError=co(),a.Cancel=a.CanceledError,a.all=function(u){return Promise.all(u)},a.spread=E_(),a.isAxiosError=__(),ha.exports=a,ha.exports.default=a,ha.exports}var pc,Jh;function xg(){return Jh||(Jh=1,pc=b_()),pc}var w_=Function.prototype.toString,mc=Object.create,S_=Object.defineProperty,T_=Object.getOwnPropertyDescriptor,Zh=Object.getOwnPropertyNames,Of=Object.getOwnPropertySymbols,x_=Object.getPrototypeOf,Og=Object.prototype,O_=Og.hasOwnProperty,A_=Og.propertyIsEnumerable,Ag=typeof Of=="function",C_=typeof WeakMap=="function",R_=function(){if(C_)return function(){return new WeakMap};var e=function(){function t(){this._keys=[],this._values=[]}return t.prototype.has=function(r){return!!~this._keys.indexOf(r)},t.prototype.get=function(r){return this._values[this._keys.indexOf(r)]},t.prototype.set=function(r,n){this._keys.push(r),this._values.push(n)},t}();return function(){return new e}}(),Cg=function(e,t){var r=e.__proto__||x_(e);if(!r)return mc(null);var n=r.constructor;if(n===t.Object)return r===t.Object.prototype?{}:mc(r);if(~w_.call(n).indexOf("[native code]"))try{return new n}catch{}return mc(r)},P_=function(e,t,r,n){var i=Cg(e,t);n.set(e,i);for(var o in e)O_.call(e,o)&&(i[o]=r(e[o],n));if(Ag)for(var a=Of(e),s=0,u=a.length,l=void 0;s<u;++s)l=a[s],A_.call(e,l)&&(i[l]=r(e[l],n));return i},ed=function(e,t,r,n){var i=Cg(e,t);n.set(e,i);for(var o=Ag?Zh(e).concat(Of(e)):Zh(e),a=0,s=o.length,u=void 0,l=void 0;a<s;++a)if(u=o[a],u!=="callee"&&u!=="caller")if(l=T_(e,u),l){!l.get&&!l.set&&(l.value=r(e[u],n));try{S_(i,u,l)}catch{i[u]=l.value}}else i[u]=r(e[u],n);return i},N_=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},I_=Array.isArray,L_=Object.getPrototypeOf,k_=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 mn(e,t){var r=!!(t&&t.isStrict),n=t&&t.realm||k_,i=r?ed:P_,o=function(a,s){if(!a||typeof a!="object")return a;if(s.has(a))return s.get(a);var u=a.__proto__||L_(a),l=u&&u.constructor;if(!l||l===n.Object)return i(a,n,o,s);var c;if(I_(a)){if(r)return ed(a,n,o,s);c=new l,s.set(a,c);for(var d=0,f=a.length;d<f;++d)c[d]=o(a[d],s);return c}if(a instanceof n.Date)return new l(a.getTime());if(a instanceof n.RegExp)return c=new l(a.source,a.flags||N_(a)),c.lastIndex=a.lastIndex,c;if(n.Map&&a instanceof n.Map)return c=new l,s.set(a,c),a.forEach(function(h,p){c.set(p,o(h,s))}),c;if(n.Set&&a instanceof n.Set)return c=new l,s.set(a,c),a.forEach(function(h){c.add(o(h,s))}),c;if(n.Blob&&a instanceof n.Blob)return a.slice(0,a.size,a.type);if(n.Buffer&&n.Buffer.isBuffer(a))return c=n.Buffer.allocUnsafe?n.Buffer.allocUnsafe(a.length):new l(a.length),s.set(a,c),a.copy(c),c;if(n.ArrayBuffer){if(n.ArrayBuffer.isView(a))return c=new l(a.buffer.slice(0)),s.set(a,c),c;if(a instanceof n.ArrayBuffer)return c=a.slice(0),s.set(a,c),c}return typeof a.then=="function"||a instanceof Error||n.WeakMap&&a instanceof n.WeakMap||n.WeakSet&&a instanceof n.WeakSet?a:i(a,n,o,s)};return o(e,R_())}mn.default=mn;mn.strict=function(t,r){return mn(t,{isStrict:!0,realm:r?r.realm:void 0})};var M_=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r 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 o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,r);if(a.value!==i||a.enumerable!==!0)return!1}return!0},td=typeof Symbol<"u"&&Symbol,F_=M_,D_=function(){return typeof td!="function"||typeof Symbol!="function"||typeof td("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:F_()},rd={foo:{}},B_=Object,U_=function(){return{__proto__:rd}.foo===rd.foo&&!({__proto__:null}instanceof B_)},$_="Function.prototype.bind called on incompatible ",j_=Object.prototype.toString,H_=Math.max,q_="[object Function]",nd=function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var o=0;o<r.length;o+=1)n[o+t.length]=r[o];return n},G_=function(t,r){for(var n=[],i=r||0,o=0;i<t.length;i+=1,o+=1)n[o]=t[i];return n},V_=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},W_=function(t){var r=this;if(typeof r!="function"||j_.apply(r)!==q_)throw new TypeError($_+r);for(var n=G_(arguments,1),i,o=function(){if(this instanceof i){var c=r.apply(this,nd(n,arguments));return Object(c)===c?c:this}return r.apply(t,nd(n,arguments))},a=H_(0,r.length-n.length),s=[],u=0;u<a;u++)s[u]="$"+u;if(i=Function("binder","return function ("+V_(s,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var l=function(){};l.prototype=r.prototype,i.prototype=new l,l.prototype=null}return i},z_=W_,Af=Function.prototype.bind||z_,Q_=Function.prototype.call,Y_=Object.prototype.hasOwnProperty,K_=Af,X_=K_.call(Q_,Y_),we,ro=SyntaxError,Rg=Function,Li=TypeError,gc=function(e){try{return Rg('"use strict"; return ('+e+").constructor;")()}catch{}},ti=Object.getOwnPropertyDescriptor;if(ti)try{ti({},"")}catch{ti=null}var yc=function(){throw new Li},J_=ti?function(){try{return arguments.callee,yc}catch{try{return ti(arguments,"callee").get}catch{return yc}}}():yc,xi=D_(),Z_=U_(),ot=Object.getPrototypeOf||(Z_?function(e){return e.__proto__}:null),Pi={},eb=typeof Uint8Array>"u"||!ot?we:ot(Uint8Array),ri={"%AggregateError%":typeof AggregateError>"u"?we:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?we:ArrayBuffer,"%ArrayIteratorPrototype%":xi&&ot?ot([][Symbol.iterator]()):we,"%AsyncFromSyncIteratorPrototype%":we,"%AsyncFunction%":Pi,"%AsyncGenerator%":Pi,"%AsyncGeneratorFunction%":Pi,"%AsyncIteratorPrototype%":Pi,"%Atomics%":typeof Atomics>"u"?we:Atomics,"%BigInt%":typeof BigInt>"u"?we:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?we:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?we:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?we:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?we:Float32Array,"%Float64Array%":typeof Float64Array>"u"?we:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?we:FinalizationRegistry,"%Function%":Rg,"%GeneratorFunction%":Pi,"%Int8Array%":typeof Int8Array>"u"?we:Int8Array,"%Int16Array%":typeof Int16Array>"u"?we:Int16Array,"%Int32Array%":typeof Int32Array>"u"?we:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":xi&&ot?ot(ot([][Symbol.iterator]())):we,"%JSON%":typeof JSON=="object"?JSON:we,"%Map%":typeof Map>"u"?we:Map,"%MapIteratorPrototype%":typeof Map>"u"||!xi||!ot?we:ot(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?we:Promise,"%Proxy%":typeof Proxy>"u"?we:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?we:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?we:Set,"%SetIteratorPrototype%":typeof Set>"u"||!xi||!ot?we:ot(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?we:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":xi&&ot?ot(""[Symbol.iterator]()):we,"%Symbol%":xi?Symbol:we,"%SyntaxError%":ro,"%ThrowTypeError%":J_,"%TypedArray%":eb,"%TypeError%":Li,"%Uint8Array%":typeof Uint8Array>"u"?we:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?we:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?we:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?we:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?we:WeakMap,"%WeakRef%":typeof WeakRef>"u"?we:WeakRef,"%WeakSet%":typeof WeakSet>"u"?we:WeakSet};if(ot)try{null.error}catch(e){var tb=ot(ot(e));ri["%Error.prototype%"]=tb}var rb=function e(t){var r;if(t==="%AsyncFunction%")r=gc("async function () {}");else if(t==="%GeneratorFunction%")r=gc("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=gc("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&ot&&(r=ot(i.prototype))}return ri[t]=r,r},id={"%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"]},Zs=Af,Va=X_,nb=Zs.call(Function.call,Array.prototype.concat),ib=Zs.call(Function.apply,Array.prototype.splice),od=Zs.call(Function.call,String.prototype.replace),Wa=Zs.call(Function.call,String.prototype.slice),ob=Zs.call(Function.call,RegExp.prototype.exec),sb=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ab=/\\(\\)?/g,ub=function(t){var r=Wa(t,0,1),n=Wa(t,-1);if(r==="%"&&n!=="%")throw new ro("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ro("invalid intrinsic syntax, expected opening `%`");var i=[];return od(t,sb,function(o,a,s,u){i[i.length]=s?od(u,ab,"$1"):a||o}),i},cb=function(t,r){var n=t,i;if(Va(id,n)&&(i=id[n],n="%"+i[0]+"%"),Va(ri,n)){var o=ri[n];if(o===Pi&&(o=rb(n)),typeof o>"u"&&!r)throw new Li("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new ro("intrinsic "+t+" does not exist!")},ai=function(t,r){if(typeof t!="string"||t.length===0)throw new Li("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Li('"allowMissing" argument must be a boolean');if(ob(/^%?[^%]*%?$/,t)===null)throw new ro("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ub(t),i=n.length>0?n[0]:"",o=cb("%"+i+"%",r),a=o.name,s=o.value,u=!1,l=o.alias;l&&(i=l[0],ib(n,nb([0,1],l)));for(var c=1,d=!0;c<n.length;c+=1){var f=n[c],h=Wa(f,0,1),p=Wa(f,-1);if((h==='"'||h==="'"||h==="`"||p==='"'||p==="'"||p==="`")&&h!==p)throw new ro("property names with quotes must have matching quotes");if((f==="constructor"||!d)&&(u=!0),i+="."+f,a="%"+i+"%",Va(ri,a))s=ri[a];else if(s!=null){if(!(f in s)){if(!r)throw new Li("base intrinsic for "+t+" exists, but the property is not available.");return}if(ti&&c+1>=n.length){var m=ti(s,f);d=!!m,d&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[f]}else d=Va(s,f),s=s[f];d&&!u&&(ri[a]=s)}}return s},Pg={exports:{}},lb=ai,Cl=lb("%Object.defineProperty%",!0),Rl=function(){if(Cl)try{return Cl({},"a",{value:1}),!0}catch{return!1}return!1};Rl.hasArrayLengthDefineBug=function(){if(!Rl())return null;try{return Cl([],"length",{value:1}).length!==1}catch{return!0}};var Ng=Rl,fb=ai,Ua=fb("%Object.getOwnPropertyDescriptor%",!0);if(Ua)try{Ua([],"length")}catch{Ua=null}var Ig=Ua,hb=Ng(),Cf=ai,ws=hb&&Cf("%Object.defineProperty%",!0);if(ws)try{ws({},"a",{value:1})}catch{ws=!1}var db=Cf("%SyntaxError%"),Oi=Cf("%TypeError%"),sd=Ig,pb=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Oi("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Oi("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Oi("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Oi("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Oi("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Oi("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!sd&&sd(t,r);if(ws)ws(t,r,{configurable:a===null&&u?u.configurable:!a,enumerable:i===null&&u?u.enumerable:!i,value:n,writable:o===null&&u?u.writable:!o});else if(s||!i&&!o&&!a)t[r]=n;else throw new db("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Lg=ai,ad=pb,mb=Ng(),ud=Ig,cd=Lg("%TypeError%"),gb=Lg("%Math.floor%"),yb=function(t,r){if(typeof t!="function")throw new cd("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||gb(r)!==r)throw new cd("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in t&&ud){var a=ud(t,"length");a&&!a.configurable&&(i=!1),a&&!a.writable&&(o=!1)}return(i||o||!n)&&(mb?ad(t,"length",r,!0,!0):ad(t,"length",r)),t};(function(e){var t=Af,r=ai,n=yb,i=r("%TypeError%"),o=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(a,o),u=r("%Object.defineProperty%",!0),l=r("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}e.exports=function(f){if(typeof f!="function")throw new i("a function is required");var h=s(t,a,arguments);return n(h,1+l(0,f.length-(arguments.length-1)),!0)};var c=function(){return s(t,o,arguments)};u?u(e.exports,"apply",{value:c}):e.exports.apply=c})(Pg);var vb=Pg.exports,kg=ai,Mg=vb,Eb=Mg(kg("String.prototype.indexOf")),_b=function(t,r){var n=kg(t,!!r);return typeof n=="function"&&Eb(t,".prototype.")>-1?Mg(n):n};const bb={},wb=Object.freeze(Object.defineProperty({__proto__:null,default:bb},Symbol.toStringTag,{value:"Module"})),Sb=Js(wb);var Rf=typeof Map=="function"&&Map.prototype,vc=Object.getOwnPropertyDescriptor&&Rf?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,za=Rf&&vc&&typeof vc.get=="function"?vc.get:null,ld=Rf&&Map.prototype.forEach,Pf=typeof Set=="function"&&Set.prototype,Ec=Object.getOwnPropertyDescriptor&&Pf?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Qa=Pf&&Ec&&typeof Ec.get=="function"?Ec.get:null,fd=Pf&&Set.prototype.forEach,Tb=typeof WeakMap=="function"&&WeakMap.prototype,Ss=Tb?WeakMap.prototype.has:null,xb=typeof WeakSet=="function"&&WeakSet.prototype,Ts=xb?WeakSet.prototype.has:null,Ob=typeof WeakRef=="function"&&WeakRef.prototype,hd=Ob?WeakRef.prototype.deref:null,Ab=Boolean.prototype.valueOf,Cb=Object.prototype.toString,Rb=Function.prototype.toString,Pb=String.prototype.match,Nf=String.prototype.slice,ln=String.prototype.replace,Nb=String.prototype.toUpperCase,dd=String.prototype.toLowerCase,Fg=RegExp.prototype.test,pd=Array.prototype.concat,mr=Array.prototype.join,Ib=Array.prototype.slice,md=Math.floor,Pl=typeof BigInt=="function"?BigInt.prototype.valueOf:null,_c=Object.getOwnPropertySymbols,Nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,no=typeof Symbol=="function"&&typeof Symbol.iterator=="object",gt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===no||"symbol")?Symbol.toStringTag:null,Dg=Object.prototype.propertyIsEnumerable,gd=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function yd(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Fg.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-md(-e):md(e);if(n!==e){var i=String(n),o=Nf.call(t,i.length+1);return ln.call(i,r,"$&_")+"."+ln.call(ln.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ln.call(t,r,"$&_")}var Il=Sb,vd=Il.custom,Ed=Ug(vd)?vd:null,Lb=function e(t,r,n,i){var o=r||{};if(en(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(en(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=en(o,"customInspect")?o.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(en(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(en(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.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 jg(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return s?yd(t,u):u}if(typeof t=="bigint"){var l=String(t)+"n";return s?yd(t,l):l}var c=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof t=="object")return Ll(t)?"[Array]":"[Object]";var d=Xb(o,n);if(typeof i>"u")i=[];else if($g(i,t)>=0)return"[Circular]";function f(Y,re,K){if(re&&(i=Ib.call(i),i.push(re)),K){var M={depth:o.depth};return en(o,"quoteStyle")&&(M.quoteStyle=o.quoteStyle),e(Y,M,n+1,i)}return e(Y,o,n+1,i)}if(typeof t=="function"&&!_d(t)){var h=Hb(t),p=da(t,f);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(p.length>0?" { "+mr.call(p,", ")+" }":"")}if(Ug(t)){var m=no?ln.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Nl.call(t);return typeof t=="object"&&!no?zo(m):m}if(Qb(t)){for(var _="<"+dd.call(String(t.nodeName)),S=t.attributes||[],v=0;v<S.length;v++)_+=" "+S[v].name+"="+Bg(kb(S[v].value),"double",o);return _+=">",t.childNodes&&t.childNodes.length&&(_+="..."),_+="</"+dd.call(String(t.nodeName))+">",_}if(Ll(t)){if(t.length===0)return"[]";var b=da(t,f);return d&&!Kb(b)?"["+kl(b,d)+"]":"[ "+mr.call(b,", ")+" ]"}if(Fb(t)){var T=da(t,f);return!("cause"in Error.prototype)&&"cause"in t&&!Dg.call(t,"cause")?"{ ["+String(t)+"] "+mr.call(pd.call("[cause]: "+f(t.cause),T),", ")+" }":T.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+mr.call(T,", ")+" }"}if(typeof t=="object"&&a){if(Ed&&typeof t[Ed]=="function"&&Il)return Il(t,{depth:c-n});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(qb(t)){var w=[];return ld&&ld.call(t,function(Y,re){w.push(f(re,t,!0)+" => "+f(Y,t))}),bd("Map",za.call(t),w,d)}if(Wb(t)){var P=[];return fd&&fd.call(t,function(Y){P.push(f(Y,t))}),bd("Set",Qa.call(t),P,d)}if(Gb(t))return bc("WeakMap");if(zb(t))return bc("WeakSet");if(Vb(t))return bc("WeakRef");if(Bb(t))return zo(f(Number(t)));if($b(t))return zo(f(Pl.call(t)));if(Ub(t))return zo(Ab.call(t));if(Db(t))return zo(f(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===he)return"{ [object globalThis] }";if(!Mb(t)&&!_d(t)){var R=da(t,f),L=gd?gd(t)===Object.prototype:t instanceof Object||t.constructor===Object,$=t instanceof Object?"":"null prototype",q=!L&&gt&&Object(t)===t&&gt in t?Nf.call(gn(t),8,-1):$?"Object":"",G=L||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",j=G+(q||$?"["+mr.call(pd.call([],q||[],$||[]),": ")+"] ":"");return R.length===0?j+"{}":d?j+"{"+kl(R,d)+"}":j+"{ "+mr.call(R,", ")+" }"}return String(t)};function Bg(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function kb(e){return ln.call(String(e),/"/g,"&quot;")}function Ll(e){return gn(e)==="[object Array]"&&(!gt||!(typeof e=="object"&&gt in e))}function Mb(e){return gn(e)==="[object Date]"&&(!gt||!(typeof e=="object"&&gt in e))}function _d(e){return gn(e)==="[object RegExp]"&&(!gt||!(typeof e=="object"&&gt in e))}function Fb(e){return gn(e)==="[object Error]"&&(!gt||!(typeof e=="object"&&gt in e))}function Db(e){return gn(e)==="[object String]"&&(!gt||!(typeof e=="object"&&gt in e))}function Bb(e){return gn(e)==="[object Number]"&&(!gt||!(typeof e=="object"&&gt in e))}function Ub(e){return gn(e)==="[object Boolean]"&&(!gt||!(typeof e=="object"&&gt in e))}function Ug(e){if(no)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Nl)return!1;try{return Nl.call(e),!0}catch{}return!1}function $b(e){if(!e||typeof e!="object"||!Pl)return!1;try{return Pl.call(e),!0}catch{}return!1}var jb=Object.prototype.hasOwnProperty||function(e){return e in this};function en(e,t){return jb.call(e,t)}function gn(e){return Cb.call(e)}function Hb(e){if(e.name)return e.name;var t=Pb.call(Rb.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function $g(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function qb(e){if(!za||!e||typeof e!="object")return!1;try{za.call(e);try{Qa.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Gb(e){if(!Ss||!e||typeof e!="object")return!1;try{Ss.call(e,Ss);try{Ts.call(e,Ts)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Vb(e){if(!hd||!e||typeof e!="object")return!1;try{return hd.call(e),!0}catch{}return!1}function Wb(e){if(!Qa||!e||typeof e!="object")return!1;try{Qa.call(e);try{za.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function zb(e){if(!Ts||!e||typeof e!="object")return!1;try{Ts.call(e,Ts);try{Ss.call(e,Ss)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Qb(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function jg(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return jg(Nf.call(e,0,t.maxStringLength),t)+n}var i=ln.call(ln.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Yb);return Bg(i,"single",t)}function Yb(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Nb.call(t.toString(16))}function zo(e){return"Object("+e+")"}function bc(e){return e+" { ? }"}function bd(e,t,r,n){var i=n?kl(r,n):mr.call(r,", ");return e+" ("+t+") {"+i+"}"}function Kb(e){for(var t=0;t<e.length;t++)if($g(e[t],`
26
+ `)>=0)return!1;return!0}function Xb(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=mr.call(Array(e.indent+1)," ");else return null;return{base:r,prev:mr.call(Array(t+1),r)}}function kl(e,t){if(e.length===0)return"";var r=`
27
+ `+t.prev+t.base;return r+mr.call(e,","+r)+`
28
+ `+t.prev}function da(e,t){var r=Ll(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=en(e,i)?t(e[i],e):""}var o=typeof _c=="function"?_c(e):[],a;if(no){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var u in e)en(e,u)&&(r&&String(Number(u))===u&&u<e.length||no&&a["$"+u]instanceof Symbol||(Fg.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if(typeof _c=="function")for(var l=0;l<o.length;l++)Dg.call(e,o[l])&&n.push("["+t(o[l])+"]: "+t(e[o[l]],e));return n}var If=ai,lo=_b,Jb=Lb,Zb=If("%TypeError%"),pa=If("%WeakMap%",!0),ma=If("%Map%",!0),ew=lo("WeakMap.prototype.get",!0),tw=lo("WeakMap.prototype.set",!0),rw=lo("WeakMap.prototype.has",!0),nw=lo("Map.prototype.get",!0),iw=lo("Map.prototype.set",!0),ow=lo("Map.prototype.has",!0),Lf=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},sw=function(e,t){var r=Lf(e,t);return r&&r.value},aw=function(e,t,r){var n=Lf(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},uw=function(e,t){return!!Lf(e,t)},cw=function(){var t,r,n,i={assert:function(o){if(!i.has(o))throw new Zb("Side channel does not contain "+Jb(o))},get:function(o){if(pa&&o&&(typeof o=="object"||typeof o=="function")){if(t)return ew(t,o)}else if(ma){if(r)return nw(r,o)}else if(n)return sw(n,o)},has:function(o){if(pa&&o&&(typeof o=="object"||typeof o=="function")){if(t)return rw(t,o)}else if(ma){if(r)return ow(r,o)}else if(n)return uw(n,o);return!1},set:function(o,a){pa&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new pa),tw(t,o,a)):ma?(r||(r=new ma),iw(r,o,a)):(n||(n={key:{},next:null}),aw(n,o,a))}};return i},lw=String.prototype.replace,fw=/%20/g,wc={RFC1738:"RFC1738",RFC3986:"RFC3986"},kf={default:wc.RFC3986,formatters:{RFC1738:function(e){return lw.call(e,fw,"+")},RFC3986:function(e){return String(e)}},RFC1738:wc.RFC1738,RFC3986:wc.RFC3986},hw=kf,Sc=Object.prototype.hasOwnProperty,qn=Array.isArray,ar=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),dw=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(qn(n)){for(var i=[],o=0;o<n.length;++o)typeof n[o]<"u"&&i.push(n[o]);r.obj[r.prop]=i}}},Hg=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},pw=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(qn(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Sc.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return qn(t)&&!qn(r)&&(i=Hg(t,n)),qn(t)&&qn(r)?(r.forEach(function(o,a){if(Sc.call(t,a)){var s=t[a];s&&typeof s=="object"&&o&&typeof o=="object"?t[a]=e(s,o,n):t.push(o)}else t[a]=o}),t):Object.keys(r).reduce(function(o,a){var s=r[a];return Sc.call(o,a)?o[a]=e(o[a],s,n):o[a]=s,o},i)},mw=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},gw=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},yw=function(t,r,n,i,o){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),n==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var s="",u=0;u<a.length;++u){var l=a.charCodeAt(u);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===hw.RFC1738&&(l===40||l===41)){s+=a.charAt(u);continue}if(l<128){s=s+ar[l];continue}if(l<2048){s=s+(ar[192|l>>6]+ar[128|l&63]);continue}if(l<55296||l>=57344){s=s+(ar[224|l>>12]+ar[128|l>>6&63]+ar[128|l&63]);continue}u+=1,l=65536+((l&1023)<<10|a.charCodeAt(u)&1023),s+=ar[240|l>>18]+ar[128|l>>12&63]+ar[128|l>>6&63]+ar[128|l&63]}return s},vw=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i<r.length;++i)for(var o=r[i],a=o.obj[o.prop],s=Object.keys(a),u=0;u<s.length;++u){var l=s[u],c=a[l];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(r.push({obj:a,prop:l}),n.push(c))}return dw(r),t},Ew=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},_w=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},bw=function(t,r){return[].concat(t,r)},ww=function(t,r){if(qn(t)){for(var n=[],i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)},qg={arrayToObject:Hg,assign:mw,combine:bw,compact:vw,decode:gw,encode:yw,isBuffer:_w,isRegExp:Ew,maybeMap:ww,merge:pw},Gg=cw,$a=qg,xs=kf,Sw=Object.prototype.hasOwnProperty,wd={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Fr=Array.isArray,Tw=Array.prototype.push,Vg=function(e,t){Tw.apply(e,Fr(t)?t:[t])},xw=Date.prototype.toISOString,Sd=xs.default,dt={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:$a.encode,encodeValuesOnly:!1,format:Sd,formatter:xs.formatters[Sd],indices:!1,serializeDate:function(t){return xw.call(t)},skipNulls:!1,strictNullHandling:!1},Ow=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Tc={},Aw=function e(t,r,n,i,o,a,s,u,l,c,d,f,h,p,m,_){for(var S=t,v=_,b=0,T=!1;(v=v.get(Tc))!==void 0&&!T;){var w=v.get(t);if(b+=1,typeof w<"u"){if(w===b)throw new RangeError("Cyclic object value");T=!0}typeof v.get(Tc)>"u"&&(b=0)}if(typeof u=="function"?S=u(r,S):S instanceof Date?S=d(S):n==="comma"&&Fr(S)&&(S=$a.maybeMap(S,function(M){return M instanceof Date?d(M):M})),S===null){if(o)return s&&!p?s(r,dt.encoder,m,"key",f):r;S=""}if(Ow(S)||$a.isBuffer(S)){if(s){var P=p?r:s(r,dt.encoder,m,"key",f);return[h(P)+"="+h(s(S,dt.encoder,m,"value",f))]}return[h(r)+"="+h(String(S))]}var R=[];if(typeof S>"u")return R;var L;if(n==="comma"&&Fr(S))p&&s&&(S=$a.maybeMap(S,s)),L=[{value:S.length>0?S.join(",")||null:void 0}];else if(Fr(u))L=u;else{var $=Object.keys(S);L=l?$.sort(l):$}for(var q=i&&Fr(S)&&S.length===1?r+"[]":r,G=0;G<L.length;++G){var j=L[G],Y=typeof j=="object"&&typeof j.value<"u"?j.value:S[j];if(!(a&&Y===null)){var re=Fr(S)?typeof n=="function"?n(q,j):q:q+(c?"."+j:"["+j+"]");_.set(t,b);var K=Gg();K.set(Tc,_),Vg(R,e(Y,re,n,i,o,a,n==="comma"&&p&&Fr(S)?null:s,u,l,c,d,f,h,p,m,K))}}return R},Cw=function(t){if(!t)return dt;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||dt.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 n=xs.default;if(typeof t.format<"u"){if(!Sw.call(xs.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=xs.formatters[n],o=dt.filter;return(typeof t.filter=="function"||Fr(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:dt.addQueryPrefix,allowDots:typeof t.allowDots>"u"?dt.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:dt.charsetSentinel,delimiter:typeof t.delimiter>"u"?dt.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:dt.encode,encoder:typeof t.encoder=="function"?t.encoder:dt.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:dt.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:dt.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:dt.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:dt.strictNullHandling}},Rw=function(e,t){var r=e,n=Cw(t),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):Fr(n.filter)&&(o=n.filter,i=o);var a=[];if(typeof r!="object"||r===null)return"";var s;t&&t.arrayFormat in wd?s=t.arrayFormat:t&&"indices"in t?s=t.indices?"indices":"repeat":s="indices";var u=wd[s];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=u==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var c=Gg(),d=0;d<i.length;++d){var f=i[d];n.skipNulls&&r[f]===null||Vg(a,Aw(r[f],f,u,l,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,c))}var h=a.join(n.delimiter),p=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),h.length>0?p+h:""},io=qg,Ml=Object.prototype.hasOwnProperty,Pw=Array.isArray,nt={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:io.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Nw=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},Wg=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Iw="utf8=%26%2310003%3B",Lw="utf8=%E2%9C%93",kw=function(t,r){var n={__proto__:null},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=r.parameterLimit===1/0?void 0:r.parameterLimit,a=i.split(r.delimiter,o),s=-1,u,l=r.charset;if(r.charsetSentinel)for(u=0;u<a.length;++u)a[u].indexOf("utf8=")===0&&(a[u]===Lw?l="utf-8":a[u]===Iw&&(l="iso-8859-1"),s=u,u=a.length);for(u=0;u<a.length;++u)if(u!==s){var c=a[u],d=c.indexOf("]="),f=d===-1?c.indexOf("="):d+1,h,p;f===-1?(h=r.decoder(c,nt.decoder,l,"key"),p=r.strictNullHandling?null:""):(h=r.decoder(c.slice(0,f),nt.decoder,l,"key"),p=io.maybeMap(Wg(c.slice(f+1),r),function(m){return r.decoder(m,nt.decoder,l,"value")})),p&&r.interpretNumericEntities&&l==="iso-8859-1"&&(p=Nw(p)),c.indexOf("[]=")>-1&&(p=Pw(p)?[p]:p),Ml.call(n,h)?n[h]=io.combine(n[h],p):n[h]=p}return n},Mw=function(e,t,r,n){for(var i=n?t:Wg(t,r),o=e.length-1;o>=0;--o){var a,s=e[o];if(s==="[]"&&r.parseArrays)a=[].concat(i);else{a=r.plainObjects?Object.create(null):{};var u=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,l=parseInt(u,10);!r.parseArrays&&u===""?a={0:i}:!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[],a[l]=i):u!=="__proto__"&&(a[u]=i)}i=a}return i},Fw=function(t,r,n,i){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,u=n.depth>0&&a.exec(o),l=u?o.slice(0,u.index):o,c=[];if(l){if(!n.plainObjects&&Ml.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var d=0;n.depth>0&&(u=s.exec(o))!==null&&d<n.depth;){if(d+=1,!n.plainObjects&&Ml.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+o.slice(u.index)+"]"),Mw(c,r,n,i)}},Dw=function(t){if(!t)return nt;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 r=typeof t.charset>"u"?nt.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?nt.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:nt.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:nt.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:nt.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:nt.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:nt.comma,decoder:typeof t.decoder=="function"?t.decoder:nt.decoder,delimiter:typeof t.delimiter=="string"||io.isRegExp(t.delimiter)?t.delimiter:nt.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:nt.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:nt.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:nt.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:nt.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:nt.strictNullHandling}},Bw=function(e,t){var r=Dw(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?kw(e,r):e,i=r.plainObjects?Object.create(null):{},o=Object.keys(n),a=0;a<o.length;++a){var s=o[a],u=Fw(s,n[s],r,typeof e=="string");i=io.merge(i,u,r)}return r.allowSparse===!0?i:io.compact(i)},Uw=Rw,$w=Bw,jw=kf,Hw={formats:jw,parse:$w,stringify:Uw};const qw=_r(Hw);var Gw="[object String]",Vw=Object.prototype,Ww=Vw.toString,zw=Array.isArray;function Qw(e){return!!e&&typeof e=="object"}function Yw(e){return typeof e=="string"||!zw(e)&&Qw(e)&&Ww.call(e)==Gw}var Kw=Yw;const Td=_r(Kw);var Mf={exports:{}};class zg extends Error{constructor(){super("Throttled function aborted"),this.name="AbortError"}}const Xw=({limit:e,interval:t,strict:r})=>{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 n=new Map;let i=0,o=0;function a(){const c=Date.now();return c-i>t?(o=1,i=c,0):(o<e?o++:(i+=t,o=1),i-c)}const s=[];function u(){const c=Date.now();if(s.length<e)return s.push(c),0;const d=s.shift()+t;return c>=d?(s.push(c),0):(s.push(d),d-c)}const l=r?u:a;return c=>{const d=function(...f){if(!d.isEnabled)return(async()=>c.apply(this,f))();let h;return new Promise((p,m)=>{h=setTimeout(()=>{p(c.apply(this,f)),n.delete(h)},l()),n.set(h,m)})};return d.abort=()=>{for(const f of n.keys())clearTimeout(f),n.get(f)(new zg);n.clear(),s.splice(0,s.length)},d.isEnabled=!0,d}};Mf.exports=Xw;Mf.exports.AbortError=zg;var Jw=Mf.exports;const Zw=_r(Jw);var eS="[object Object]";function tS(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function rS(e,t){return function(r){return e(t(r))}}var nS=Function.prototype,Qg=Object.prototype,Yg=nS.toString,iS=Qg.hasOwnProperty,oS=Yg.call(Object),sS=Qg.toString,aS=rS(Object.getPrototypeOf,Object);function uS(e){return!!e&&typeof e=="object"}function cS(e){if(!uS(e)||sS.call(e)!=eS||tS(e))return!1;var t=aS(e);if(t===null)return!0;var r=iS.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Yg.call(r)==oS}var lS=cS;const ga=_r(lS);function fS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function xd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ni(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xd(Object(r),!0).forEach(function(n){hS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fl(e){"@babel/helpers - typeof";return Fl=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},Fl(e)}function Dl(){Dl=function(i,o){return new r(i,void 0,o)};var e=RegExp.prototype,t=new WeakMap;function r(i,o,a){var s=new RegExp(i,o);return t.set(s,a||t.get(i)),Ya(s,r.prototype)}function n(i,o){var a=t.get(o);return Object.keys(a).reduce(function(s,u){var l=a[u];if(typeof l=="number")s[u]=i[l];else{for(var c=0;i[l[c]]===void 0&&c+1<l.length;)c++;s[u]=i[l[c]]}return s},Object.create(null))}return dS(r,RegExp),r.prototype.exec=function(i){var o=e.exec.call(this,i);if(o){o.groups=n(o,this);var a=o.indices;a&&(a.groups=n(a,this))}return o},r.prototype[Symbol.replace]=function(i,o){if(typeof o=="string"){var a=t.get(this);return e[Symbol.replace].call(this,i,o.replace(/\$<([^>]+)>/g,function(u,l){var c=a[l];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof o=="function"){var s=this;return e[Symbol.replace].call(this,i,function(){var u=arguments;return typeof u[u.length-1]!="object"&&(u=[].slice.call(u)).push(n(u,s)),o.apply(this,u)})}return e[Symbol.replace].call(this,i,o)},Dl.apply(this,arguments)}function hS(e,t,r){return t=ES(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dS(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&&Ya(e,t)}function Ya(e,t){return Ya=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ya(e,t)}function pS(e,t){return mS(e)||fS(e,t)||Kg(e,t)||gS()}function mS(e){if(Array.isArray(e))return e}function Kg(e,t){if(e){if(typeof e=="string")return Od(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Od(e,t)}}function Od(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
29
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yS(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Kg(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}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 o=!0,a=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function vS(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ES(e){var t=vS(e,"string");return typeof t=="symbol"?t:String(t)}function _S(){return typeof process<"u"&&!process.browser}function bS(){return typeof window<"u"&&"navigator"in window&&"product"in window.navigator&&window.navigator.product==="ReactNative"}function wS(){return process.versions&&process.versions.node?"v".concat(process.versions.node):process.version}function SS(){return window}function Bl(){}var Ul=Dl(/(\d+)(%)/,{value:1});function xc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:7,r=t;if(Ul.test(e)){var n,i=(n=e.match(Ul))===null||n===void 0?void 0:n.groups;if(i&&i.value){var o=parseInt(i.value)/100;r=Math.round(t*o)}}return Math.min(30,Math.max(1,r))}function Ad(e,t){return t("info","Throttle request to ".concat(e,"/s")),Zw({limit:e,interval:1e3,strict:!1})}var TS=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto",r=e.defaults.logHandler,n=r===void 0?Bl:r,i=Td(t)?xc(t):xc("auto",t),o=Ad(i,n),a=!1,s=e.interceptors.request.use(function(l){return o(function(){return l})()},function(l){return Promise.reject(l)}),u=e.interceptors.response.use(function(l){if(!a&&Td(t)&&(t==="auto"||Ul.test(t))&&l.headers&&l.headers["x-contentful-ratelimit-second-limit"]){var c=parseInt(l.headers["x-contentful-ratelimit-second-limit"]),d=xc(t,c);d!==i&&(s&&e.interceptors.request.eject(s),i=d,o=Ad(d,n),s=e.interceptors.request.use(function(f){return o(function(){return f})()},function(f){return Promise.reject(f)})),a=!0}return l},function(l){return Promise.reject(l)});return function(){e.interceptors.request.eject(s),e.interceptors.response.eject(u)}},xS=function(t){return new Promise(function(r){setTimeout(r,t)})},OS=function(t){return Math.pow(Math.SQRT2,t)};function AS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,r=e.defaults,n=r.responseLogger,i=n===void 0?Bl:n,o=r.requestLogger,a=o===void 0?Bl:o;e.interceptors.request.use(function(s){return a(s),s},function(s){return a(s),Promise.reject(s)}),e.interceptors.response.use(function(s){return i(s),s},function(s){var u=s.response,l=s.config;if(i(s),!l||!e.defaults.retryOnError)return Promise.reject(s);var c=l.attempts||1;if(c>t)return s.attempts=l.attempts,Promise.reject(s);var d=null,f=OS(c);return u?u.status>=500&&u.status<600?d="Server ".concat(u.status):u.status===429&&(d="Rate limit",u.headers&&s.response.headers["x-contentful-ratelimit-reset"]&&(f=u.headers["x-contentful-ratelimit-reset"])):d="Connection",d?(f=Math.floor(f*1e3+Math.random()*200+500),e.defaults.logHandler("warning","".concat(d," error occurred. Waiting for ").concat(f," ms before retrying...")),l.attempts=c+1,delete l.httpAgent,delete l.httpsAgent,xS(f).then(function(){return e(l)})):Promise.reject(s)})}function CS(e,t){e.interceptors.request.use(function(r){return t().then(function(n){return r.headers=Ni(Ni({},r.headers),{},{Authorization:"Bearer ".concat(n)}),r})})}var RS=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function Xg(e,t){var r={insecure:!1,retryOnError:!0,logHandler:function(m,_){if(m==="error"&&_){var S=[_.name,_.message].filter(function(v){return v}).join(" - ");console.error("[error] ".concat(S)),console.error(_);return}console.log("[".concat(m,"] ").concat(_))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,proxy:!1,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824},n=Ni(Ni({},r),t);if(!n.accessToken){var i=new TypeError("Expected parameter accessToken");throw n.logHandler("error",i),i}var o=n.insecure?"http":"https",a=n.space?"".concat(n.space,"/"):"",s=n.defaultHostname,u=n.insecure?80:443;if(n.host&&RS.test(n.host)){var l=n.host.split(":");if(l.length===2){var c=pS(l,2);s=c[0],u=c[1]}else s=l[0]}n.basePath&&(n.basePath="/".concat(n.basePath.split("/").filter(Boolean).join("/")));var d=t.baseURL||"".concat(o,"://").concat(s,":").concat(u).concat(n.basePath,"/spaces/").concat(a);!n.headers.Authorization&&typeof n.accessToken!="function"&&(n.headers.Authorization="Bearer "+n.accessToken);var f={baseURL:d,headers:n.headers,httpAgent:n.httpAgent,httpsAgent:n.httpsAgent,paramsSerializer:qw.stringify,proxy:n.proxy,timeout:n.timeout,adapter:n.adapter,maxContentLength:n.maxContentLength,maxBodyLength:n.maxBodyLength,logHandler:n.logHandler,responseLogger:n.responseLogger,requestLogger:n.requestLogger,retryOnError:n.retryOnError},h=e.create(f);return h.httpClientParams=t,h.cloneWithNewParams=function(p){return Xg(e,Ni(Ni({},mn(t)),p))},n.onBeforeRequest&&h.interceptors.request.use(n.onBeforeRequest),typeof n.accessToken=="function"&&CS(h,n.accessToken),n.throttle&&TS(h,n.throttle),AS(h,n.retryLimit),n.onError&&h.interceptors.response.use(function(p){return p},n.onError),h}function PS(e){var t=e.query,r={};return delete t.resolveLinks,r.params=mn(t),r}function NS(e,t){if(!(t in e)){var r=new Error;throw r.name="PropertyMissing",r.message="Required property ".concat(t,` missing from:
31
+
32
+ `).concat(JSON.stringify(e),`
33
+
34
+ `),r}return!0}function Jg(e){var t=Object.getOwnPropertyNames(e),r=yS(t),n;try{for(r.s();!(n=r.n()).done;){var i=n.value,o=e[i];o&&Fl(o)==="object"&&Jg(o)}}catch(a){r.e(a)}finally{r.f()}return Object.freeze(e)}function IS(e){return Jg(e.sys||{}),e}function Cd(){var e=SS();if(!e)return null;var t=e.navigator.userAgent,r=e.navigator.platform,n=["Macintosh","MacIntel","MacPPC","Mac68K"],i=["Win32","Win64","Windows","WinCE"],o=["iPhone","iPad","iPod"];return n.indexOf(r)!==-1?"macOS":o.indexOf(r)!==-1?"iOS":i.indexOf(r)!==-1?"Windows":/Android/.test(t)?"Android":/Linux/.test(r)?"Linux":null}function LS(){var e=process.platform||"linux",t=process.version||"0.0.0",r={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return e in r?"".concat(r[e]||"Linux","/").concat(t):null}function kS(e,t,r,n){var i=[];t&&i.push("app ".concat(t)),r&&i.push("integration ".concat(r)),n&&i.push("feature "+n),i.push("sdk ".concat(e));var o=null;try{bS()?(o=Cd(),i.push("platform ReactNative")):_S()?(o=LS(),i.push("platform node.js/".concat(wS()))):(o=Cd(),i.push("platform browser"))}catch{o=null}return o&&i.push("os ".concat(o)),"".concat(i.filter(function(a){return a!==""}).join("; "),";")}function MS(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return mn(this)}})}function FS(e){var t=e.config,r=e.response,n;if(t&&t.headers&&t.headers.Authorization){var i="...".concat(t.headers.Authorization.toString().substr(-5));t.headers.Authorization="Bearer ".concat(i)}if(!ga(r)||!ga(t))throw e;var o=r==null?void 0:r.data,a={status:r==null?void 0:r.status,statusText:r==null?void 0:r.statusText,message:"",details:{}};ga(t)&&(a.request={url:t.url,headers:t.headers,method:t.method,payloadData:t.data}),o&&ga(o)&&("requestId"in o&&(a.requestId=o.requestId||"UNKNOWN"),"message"in o&&(a.message=o.message||""),"details"in o&&(a.details=o.details||{}),"sys"in o&&"id"in o.sys&&(n=o.sys.id));var s=new Error;s.name=n&&n!=="Unknown"?n:"".concat(r==null?void 0:r.status," ").concat(r==null?void 0:r.statusText);try{s.message=JSON.stringify(a,null," ")}catch{var u;s.message=(u=a==null?void 0:a.message)!==null&&u!==void 0?u:""}throw s}const DS=Object.freeze(Object.defineProperty({__proto__:null,createHttpClient:Xg,createRequestConfig:PS,enforceObjPath:NS,errorHandler:FS,freezeSys:IS,getUserAgentHeader:kS,toPlainObject:MS},Symbol.toStringTag,{value:"Module"})),br=Js(DS);var ya={},Qo={},va={},Rd;function BS(){if(Rd)return va;Rd=1,Object.defineProperty(va,"__esModule",{value:!0}),va.wrapSpace=t;var e=br;function t(r){return(0,e.freezeSys)((0,e.toPlainObject)(r))}return va}var Yo={},Oc={exports:{}},Pd;function fo(){return Pd||(Pd=1,function(e,t){(function(r,n){e.exports=n()})(he,function(){var r=Function.prototype.toString,n=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.getPrototypeOf,l=Object.prototype,c=l.hasOwnProperty,d=l.propertyIsEnumerable,f=typeof s=="function",h=typeof WeakMap=="function",p=function(){if(h)return function(){return new WeakMap};var R=function(){function L(){this._keys=[],this._values=[]}return L.prototype.has=function($){return!!~this._keys.indexOf($)},L.prototype.get=function($){return this._values[this._keys.indexOf($)]},L.prototype.set=function($,q){this._keys.push($),this._values.push(q)},L}();return function(){return new R}}(),m=function(R,L){var $=R.__proto__||u(R);if(!$)return n(null);var q=$.constructor;if(q===L.Object)return $===L.Object.prototype?{}:n($);if(~r.call(q).indexOf("[native code]"))try{return new q}catch{}return n($)},_=function(R,L,$,q){var G=m(R,L);q.set(R,G);for(var j in R)c.call(R,j)&&(G[j]=$(R[j],q));if(f)for(var Y=s(R),re=0,K=Y.length,M=void 0;re<K;++re)M=Y[re],d.call(R,M)&&(G[M]=$(R[M],q));return G},S=function(R,L,$,q){var G=m(R,L);q.set(R,G);for(var j=f?a(R).concat(s(R)):a(R),Y=0,re=j.length,K=void 0,M=void 0;Y<re;++Y)if(K=j[Y],K!=="callee"&&K!=="caller")if(M=o(R,K),M){!M.get&&!M.set&&(M.value=$(R[K],q));try{i(G,K,M)}catch{G[K]=M.value}}else G[K]=$(R[K],q);return G},v=function(R){var L="";return R.global&&(L+="g"),R.ignoreCase&&(L+="i"),R.multiline&&(L+="m"),R.unicode&&(L+="u"),R.sticky&&(L+="y"),L},b=Array.isArray,T=Object.getPrototypeOf,w=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof he<"u"?he:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function P(R,L){var $=!!(L&&L.isStrict),q=L&&L.realm||w,G=$?S:_,j=function(Y,re){if(!Y||typeof Y!="object")return Y;if(re.has(Y))return re.get(Y);var K=Y.__proto__||T(Y),M=K&&K.constructor;if(!M||M===q.Object)return G(Y,q,j,re);var z;if(b(Y)){if($)return S(Y,q,j,re);z=new M,re.set(Y,z);for(var ee=0,fe=Y.length;ee<fe;++ee)z[ee]=j(Y[ee],re);return z}if(Y instanceof q.Date)return new M(Y.getTime());if(Y instanceof q.RegExp)return z=new M(Y.source,Y.flags||v(Y)),z.lastIndex=Y.lastIndex,z;if(q.Map&&Y instanceof q.Map)return z=new M,re.set(Y,z),Y.forEach(function(J,X){z.set(X,j(J,re))}),z;if(q.Set&&Y instanceof q.Set)return z=new M,re.set(Y,z),Y.forEach(function(J){z.add(j(J,re))}),z;if(q.Blob&&Y instanceof q.Blob)return Y.slice(0,Y.size,Y.type);if(q.Buffer&&q.Buffer.isBuffer(Y))return z=q.Buffer.allocUnsafe?q.Buffer.allocUnsafe(Y.length):new M(Y.length),re.set(Y,z),Y.copy(z),z;if(q.ArrayBuffer){if(q.ArrayBuffer.isView(Y))return z=new M(Y.buffer.slice(0)),re.set(Y,z),z;if(Y instanceof q.ArrayBuffer)return z=Y.slice(0),re.set(Y,z),z}return typeof Y.then=="function"||Y instanceof Error||q.WeakMap&&Y instanceof q.WeakMap||q.WeakSet&&Y instanceof q.WeakSet?Y:G(Y,q,j,re)};return j(R,p())}return P.default=P,P.strict=function(L,$){return P(L,{isStrict:!0,realm:$?$.realm:void 0})},P})}(Oc)),Oc.exports}var Ea={},_a={exports:{}},Nd;function US(){return Nd||(Nd=1,function(e,t){t=e.exports=r,t.getSerialize=n;function r(i,o,a,s){return JSON.stringify(i,n(o,s),a)}function n(i,o){var a=[],s=[];return o==null&&(o=function(u,l){return a[0]===l?"[Circular ~]":"[Circular ~."+s.slice(0,a.indexOf(l)).join(".")+"]"}),function(u,l){if(a.length>0){var c=a.indexOf(this);~c?a.splice(c+1):a.push(this),~c?s.splice(c,1/0,u):s.push(u),~a.indexOf(l)&&(l=o.call(this,u,l))}else a.push(l);return i==null?l:i.call(this,u,l)}}}(_a,_a.exports)),_a.exports}var Id;function Zg(){if(Id)return Ea;Id=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.default=r;var e=t(US());function t(n){return n&&n.__esModule?n:{default:n}}function r(n){return Object.defineProperty(n,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,e.default)(this,i,o,(a,s)=>({sys:{type:"Link",linkType:"Entry",id:s.sys.id,circular:!0}}))}})}return Ea}var $S=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},jS=function(){function e(t,r){var n=[],i=!0,o=!1,a=void 0;try{for(var s=t[Symbol.iterator](),u;!(i=(u=s.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(l){o=!0,a=l}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function Ko(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}else return Array.from(e)}var As={},HS=function(t){return t&&t.sys&&t.sys.type==="Link"},qS=function(t){return t&&t.sys&&t.sys.type==="ResourceLink"},GS=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]},Ld=function(t,r){var n=r.entryId,i=r.linkType,o=r.spaceId,a=r.environmentId;return o&&a?t.get(o+"!"+a+"!"+i+"!"+n):t.get(i+"!"+n)},VS=function(t){var r=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(r.test(t)){var n=t.match(r),i=jS(n,4);i[0];var o=i[1],a=i[2],s=a===void 0?"master":a,u=i[3];return{spaceId:o,environmentId:s,entryId:u}}},WS=function(t,r){var n=r.sys,i=n.type,o=n.linkType;if(i==="ResourceLink"){var a=r.sys.urn,s=VS(a),u=s.spaceId,l=s.environmentId,c=s.entryId,d=o.split(":")[1];return Ld(t,{linkType:d,entryId:c,spaceId:u,environmentId:l})||As}var f=r.sys.id;return Ld(t,{linkType:o,entryId:f})||As},zS=function(t){if(Array.isArray(t))return t.filter(function(n){return n!==As});for(var r in t)t[r]===As&&delete t[r];return t},QS=function e(t,r,n,i){if(r(t))return n(t);if(t&&(typeof t>"u"?"undefined":$S(t))==="object"){for(var o in t)t.hasOwnProperty(o)&&(t[o]=e(t[o],r,n,i));i&&(t=zS(t))}return t},YS=function(t,r,n){var i=WS(t,r);return i===As?n?i:r:i},KS=function(t,r){if(!Array.isArray(r))return t;var n=Object.keys(t).filter(function(i){return r.indexOf(i)!==-1});return n.reduce(function(i,o){return i[o]=t[o],i},{})},XS=function(t,r){if(r=r||{},!t.items)return[];var n=mn(t),i=Object.keys(n.includes||{}).reduce(function(s,u){return[].concat(Ko(s),Ko(t.includes[u]))},[]),o=[].concat(Ko(n.items),Ko(i)).filter(function(s){return!!s.sys}),a=new Map(o.reduce(function(s,u){var l=GS(u.sys).map(function(c){return[c,u]});return s.push.apply(s,Ko(l)),s},[]));return o.forEach(function(s){var u=KS(s,r.itemEntryPoints);Object.assign(s,QS(u,function(l){return HS(l)||qS(l)},function(l){return YS(a,l,r.removeUnresolved)},r.removeUnresolved))}),n.items};const JS=Object.freeze(Object.defineProperty({__proto__:null,default:XS},Symbol.toStringTag,{value:"Module"})),ey=Js(JS);var kd;function ZS(){if(kd)return Yo;kd=1,Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.wrapEntry=o,Yo.wrapEntryCollection=a;var e=i(fo()),t=br,r=i(Zg()),n=i(ey);function i(s){return s&&s.__esModule?s:{default:s}}function o(s){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(s)))}function a(s,u){let{resolveLinks:l,removeUnresolved:c}=u;const d=(0,r.default)((0,t.toPlainObject)((0,e.default)(s)));return l&&(d.items=(0,n.default)(d,{removeUnresolved:c,itemEntryPoints:["fields"]})),(0,t.freezeSys)(d)}return Yo}var Xo={},Md;function eT(){if(Md)return Xo;Md=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.wrapAsset=n,Xo.wrapAssetCollection=i;var e=r(fo()),t=br;function r(o){return o&&o.__esModule?o:{default:o}}function n(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}function i(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return Xo}var ba={},Fd;function tT(){if(Fd)return ba;Fd=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.wrapAssetKey=n;var e=r(fo()),t=br;function r(i){return i&&i.__esModule?i:{default:i}}function n(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return ba}var Jo={},Dd;function rT(){if(Dd)return Jo;Dd=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.wrapContentType=n,Jo.wrapContentTypeCollection=i;var e=r(fo()),t=br;function r(o){return o&&o.__esModule?o:{default:o}}function n(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}function i(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return Jo}var Zo={},Bd;function nT(){if(Bd)return Zo;Bd=1,Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.wrapLocale=n,Zo.wrapLocaleCollection=i;var e=r(fo()),t=br;function r(o){return o&&o.__esModule?o:{default:o}}function n(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}function i(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return Zo}var es={},Ud;function iT(){if(Ud)return es;Ud=1,Object.defineProperty(es,"__esModule",{value:!0}),es.wrapTag=n,es.wrapTagCollection=i;var e=r(fo()),t=br;function r(o){return o&&o.__esModule?o:{default:o}}function n(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}function i(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return es}var $d;function oT(){if($d)return Qo;$d=1,Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.default=void 0;var e=u(BS()),t=u(ZS()),r=u(eT()),n=u(tT()),i=u(rT()),o=u(nT()),a=u(iT());function s(c){if(typeof WeakMap!="function")return null;var d=new WeakMap,f=new WeakMap;return(s=function(h){return h?f:d})(c)}function u(c,d){if(!d&&c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var f=s(d);if(f&&f.has(c))return f.get(c);var h={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in c)if(m!=="default"&&Object.prototype.hasOwnProperty.call(c,m)){var _=p?Object.getOwnPropertyDescriptor(c,m):null;_&&(_.get||_.set)?Object.defineProperty(h,m,_):h[m]=c[m]}return h.default=c,f&&f.set(c,h),h}var l={space:e,entry:t,asset:r,assetKey:n,contentType:i,locale:o,tag:a};return Qo.default=l,Qo}var wa={},jd;function sT(){if(jd)return wa;jd=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.default=s;var e=br,t=n(ey),r=n(Zg());function n(d){return d&&d.__esModule?d:{default:d}}function i(d,f){var h=Object.keys(d);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(d);f&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(d,m).enumerable})),h.push.apply(h,p)}return h}function o(d){for(var f=1;f<arguments.length;f++){var h=arguments[f]!=null?arguments[f]:{};f%2?i(Object(h),!0).forEach(function(p){a(d,p,h[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(h)):i(Object(h)).forEach(function(p){Object.defineProperty(d,p,Object.getOwnPropertyDescriptor(h,p))})}return d}function a(d,f,h){return f in d?Object.defineProperty(d,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):d[f]=h,d}async function s(d,f){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!f||!f.initial&&!f.nextSyncToken&&!f.nextPageToken)throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");if(f&&f.content_type&&!f.type)f.type="Entry";else if(f&&f.content_type&&f.type&&f.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:_,paginate:S}=o(o({},p),h),b=await l(d,[],f,{paginate:S});m&&(b.items=(0,t.default)(b,{removeUnresolved:_,itemEntryPoints:["fields"]}));const T=u(b.items);return b.nextSyncToken&&(T.nextSyncToken=b.nextSyncToken),b.nextPageToken&&(T.nextPageToken=b.nextPageToken),(0,e.freezeSys)((0,r.default)((0,e.toPlainObject)(T)))}function u(d){const f=h=>(p,m)=>(m.sys.type===h&&p.push((0,e.toPlainObject)(m)),p);return{entries:d.reduce(f("Entry"),[]),assets:d.reduce(f("Asset"),[]),deletedEntries:d.reduce(f("DeletedEntry"),[]),deletedAssets:d.reduce(f("DeletedAsset"),[])}}async function l(d,f,h,p){let{paginate:m}=p;h.nextSyncToken&&(h.sync_token=h.nextSyncToken,delete h.nextSyncToken),h.nextPageToken&&(h.sync_token=h.nextPageToken,delete h.nextPageToken),h.sync_token&&(delete h.initial,delete h.type,delete h.content_type,delete h.limit);const S=(await d.get("sync",(0,e.createRequestConfig)({query:h}))).data||{};return f=f.concat(S.items||[]),S.nextPageUrl?m?(delete h.initial,h.sync_token=c(S.nextPageUrl),l(d,f,h,{paginate:m})):{items:f,nextPageToken:c(S.nextPageUrl)}:S.nextSyncUrl?{items:f,nextSyncToken:c(S.nextSyncUrl)}:{items:[]}}function c(d){const f=d.split("?");return f.length>0?f[1].replace("sync_token=",""):""}return wa}var Sa={},Hd;function aT(){if(Hd)return Sa;Hd=1,Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.default=n;function e(i,o){var a=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);o&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),a.push.apply(a,s)}return a}function t(i){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?e(Object(a),!0).forEach(function(s){r(i,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(a,s))})}return i}function r(i,o,a){return o in i?Object.defineProperty(i,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[o]=a,i}function n(i){if(!i.select)return i;const o=Array.isArray(i.select)?i.select:i.select.split(","),a=new Set(o);return a.has("sys")?i:(a.add("sys.id"),a.add("sys.type"),t(t({},i),{},{select:[...a].join(",")}))}return Sa}var Ai={},qd;function uT(){if(qd)return Ai;qd=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.ValidationError=void 0,Ai.default=t;class e extends Error{constructor(n,i){super(`Invalid "${n}" provided, `+i),this.name="ValidationError"}}Ai.ValidationError=e;function t(r,n,i){if(i=i||{},typeof n!="number")throw new e(r,`only numeric values are allowed for timestamps, provided type was "${typeof n}"`);if(i.maximum&&n>i.maximum)throw new e(r,`value (${n}) cannot be further in the future than expected maximum (${i.maximum})`);if(i.now&&n<i.now)throw new e(r,`value (${n}) cannot be in the past, current time was ${i.now}`)}return Ai}var Gd;function cT(){if(Gd)return ya;Gd=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.default=c;var e=br,t=o(oT()),r=o(sT()),n=o(aT()),i=o(uT());function o(d){return d&&d.__esModule?d:{default:d}}function a(d,f){var h=Object.keys(d);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(d);f&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(d,m).enumerable})),h.push.apply(h,p)}return h}function s(d){for(var f=1;f<arguments.length;f++){var h=arguments[f]!=null?arguments[f]:{};f%2?a(Object(h),!0).forEach(function(p){u(d,p,h[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(h)):a(Object(h)).forEach(function(p){Object.defineProperty(d,p,Object.getOwnPropertyDescriptor(h,p))})}return d}function u(d,f,h){return f in d?Object.defineProperty(d,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):d[f]=h,d}const l=48*60*60;function c(d){let{http:f,getGlobalOptions:h}=d;const{wrapSpace:p}=t.default.space,{wrapContentType:m,wrapContentTypeCollection:_}=t.default.contentType,{wrapEntry:S,wrapEntryCollection:v}=t.default.entry,{wrapAsset:b,wrapAssetCollection:T}=t.default.asset,{wrapTag:w,wrapTagCollection:P}=t.default.tag,{wrapAssetKey:R}=t.default.assetKey,{wrapLocaleCollection:L}=t.default.locale,$=te=>{const ae=new Error("The resource could not be found.");return ae.sys={type:"Error",id:"NotFound"},ae.details={type:"Entry",id:te,environment:h().environment,space:h().space},ae};async function q(){Ve(f);try{const te=await f.get("/");return p(te.data)}catch(te){(0,e.errorHandler)(te)}}async function G(te){de(f);try{const ae=await f.get(`content_types/${te}`);return m(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function j(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};de(f);try{const ae=await f.get("content_types",(0,e.createRequestConfig)({query:te}));return _(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function Y(te){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!te)throw $(te);try{const De=await this.getEntries(s({"sys.id":te},ae));if(De.items.length>0)return S(De.items[0]);throw $(te)}catch(De){(0,e.errorHandler)(De)}}async function re(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};de(f);const{resolveLinks:ae,removeUnresolved:De}=h(te);te=(0,n.default)(te);try{const Ie=await f.get("entries",(0,e.createRequestConfig)({query:te}));return v(Ie.data,{resolveLinks:ae,removeUnresolved:De})}catch(Ie){(0,e.errorHandler)(Ie)}}async function K(te){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};de(f),ae=(0,n.default)(ae);try{const De=await f.get(`assets/${te}`,(0,e.createRequestConfig)({query:ae}));return b(De.data)}catch(De){(0,e.errorHandler)(De)}}async function M(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};de(f),te=(0,n.default)(te);try{const ae=await f.get("assets",(0,e.createRequestConfig)({query:te}));return T(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function z(te){de(f);try{const ae=await f.get(`tags/${te}`);return w(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function ee(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};de(f),te=(0,n.default)(te);try{const ae=await f.get("tags",(0,e.createRequestConfig)({query:te}));return P(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function fe(te){de(f);try{const ae=Math.floor(Date.now()/1e3),De=ae+l;(0,i.default)("expiresAt",te,{maximum:De,now:ae});const Ie={expiresAt:te},xt=await f.post("asset_keys",Ie);return R(xt.data)}catch(ae){(0,e.errorHandler)(ae)}}async function J(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};de(f);try{const ae=await f.get("locales",(0,e.createRequestConfig)({query:te}));return L(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function X(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{paginate:!0};const{resolveLinks:De,removeUnresolved:Ie}=h(te);return de(f),(0,r.default)(f,te,s({resolveLinks:De,removeUnresolved:Ie},ae))}function le(te){const{resolveLinks:ae,removeUnresolved:De}=h({});return v(te,{resolveLinks:ae,removeUnresolved:De})}function de(te){te.defaults.baseURL=h().environmentBaseUrl}function Ve(te){te.defaults.baseURL=h().spaceBaseUrl}return{getSpace:q,getContentType:G,getContentTypes:j,getEntry:Y,getEntries:re,getAsset:K,getAssets:M,getTag:z,getTags:ee,createAssetKey:fe,getLocales:J,parseEntries:le,sync:X}}return ya}var Ta={},Vd;function lT(){if(Vd)return Ta;Vd=1,Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.default=e;function e(t){return function(n){return Object.assign({},t,n)}}return Ta}var Wd;function fT(){if(Wd)return fa;Wd=1,Object.defineProperty(fa,"__esModule",{value:!0}),fa.createClient=u;var e=i(xg()),t=br,r=i(cT()),n=i(lT());function i(l){return l&&l.__esModule?l:{default:l}}function o(l,c){var d=Object.keys(l);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(l);c&&(f=f.filter(function(h){return Object.getOwnPropertyDescriptor(l,h).enumerable})),d.push.apply(d,f)}return d}function a(l){for(var c=1;c<arguments.length;c++){var d=arguments[c]!=null?arguments[c]:{};c%2?o(Object(d),!0).forEach(function(f){s(l,f,d[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(d)):o(Object(d)).forEach(function(f){Object.defineProperty(l,f,Object.getOwnPropertyDescriptor(d,f))})}return l}function s(l,c,d){return c in l?Object.defineProperty(l,c,{value:d,enumerable:!0,configurable:!0,writable:!0}):l[c]=d,l}function u(l){if(!l.accessToken)throw new TypeError("Expected parameter accessToken");if(!l.space)throw new TypeError("Expected parameter space");const d=a(a({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master"}),l),f=(0,t.getUserAgentHeader)("contentful.js/9.1.34",d.application,d.integration);d.headers=a(a({},d.headers),{},{"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":f});const h=(0,t.createHttpClient)(e.default,d),p=(0,n.default)({resolveLinks:d.resolveLinks,environment:d.environment,removeUnresolved:d.removeUnresolved,spaceBaseUrl:h.defaults.baseURL,environmentBaseUrl:`${h.defaults.baseURL}environments/${d.environment}`});return h.defaults.baseURL=p().environmentBaseUrl,(0,r.default)({http:h,getGlobalOptions:p})}return fa}var Ac={},Cc,zd;function hT(){return zd||(zd=1,Cc=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Cc}var Rc,Qd;function dT(){if(Qd)return Rc;Qd=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(a,s){try{return[decodeURIComponent(a.join(""))]}catch{}if(a.length===1)return a;s=s||1;var u=a.slice(0,s),l=a.slice(s);return Array.prototype.concat.call([],n(u),n(l))}function i(a){try{return decodeURIComponent(a)}catch{for(var s=a.match(t)||[],u=1;u<s.length;u++)a=n(s,u).join(""),s=a.match(t)||[];return a}}function o(a){for(var s={"%FE%FF":"��","%FF%FE":"��"},u=r.exec(a);u;){try{s[u[0]]=decodeURIComponent(u[0])}catch{var l=i(u[0]);l!==u[0]&&(s[u[0]]=l)}u=r.exec(a)}s["%C2"]="�";for(var c=Object.keys(s),d=0;d<c.length;d++){var f=c[d];a=a.replace(new RegExp(f,"g"),s[f])}return a}return Rc=function(a){if(typeof a!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof a+"`");try{return a=a.replace(/\+/g," "),decodeURIComponent(a)}catch{return o(a)}},Rc}var Pc,Yd;function pT(){return Yd||(Yd=1,Pc=(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 r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}),Pc}var Nc,Kd;function mT(){return Kd||(Kd=1,Nc=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),o=0;o<n.length;o++){var a=n[o],s=e[a];(i?t.indexOf(a)!==-1:t(a,s,e))&&(r[a]=s)}return r}),Nc}var Xd;function gT(){return Xd||(Xd=1,function(e){const t=hT(),r=dT(),n=pT(),i=mT(),o=v=>v==null,a=Symbol("encodeFragmentIdentifier");function s(v){switch(v.arrayFormat){case"index":return b=>(T,w)=>{const P=T.length;return w===void 0||v.skipNull&&w===null||v.skipEmptyString&&w===""?T:w===null?[...T,[c(b,v),"[",P,"]"].join("")]:[...T,[c(b,v),"[",c(P,v),"]=",c(w,v)].join("")]};case"bracket":return b=>(T,w)=>w===void 0||v.skipNull&&w===null||v.skipEmptyString&&w===""?T:w===null?[...T,[c(b,v),"[]"].join("")]:[...T,[c(b,v),"[]=",c(w,v)].join("")];case"colon-list-separator":return b=>(T,w)=>w===void 0||v.skipNull&&w===null||v.skipEmptyString&&w===""?T:w===null?[...T,[c(b,v),":list="].join("")]:[...T,[c(b,v),":list=",c(w,v)].join("")];case"comma":case"separator":case"bracket-separator":{const b=v.arrayFormat==="bracket-separator"?"[]=":"=";return T=>(w,P)=>P===void 0||v.skipNull&&P===null||v.skipEmptyString&&P===""?w:(P=P===null?"":P,w.length===0?[[c(T,v),b,c(P,v)].join("")]:[[w,c(P,v)].join(v.arrayFormatSeparator)])}default:return b=>(T,w)=>w===void 0||v.skipNull&&w===null||v.skipEmptyString&&w===""?T:w===null?[...T,c(b,v)]:[...T,[c(b,v),"=",c(w,v)].join("")]}}function u(v){let b;switch(v.arrayFormat){case"index":return(T,w,P)=>{if(b=/\[(\d*)\]$/.exec(T),T=T.replace(/\[\d*\]$/,""),!b){P[T]=w;return}P[T]===void 0&&(P[T]={}),P[T][b[1]]=w};case"bracket":return(T,w,P)=>{if(b=/(\[\])$/.exec(T),T=T.replace(/\[\]$/,""),!b){P[T]=w;return}if(P[T]===void 0){P[T]=[w];return}P[T]=[].concat(P[T],w)};case"colon-list-separator":return(T,w,P)=>{if(b=/(:list)$/.exec(T),T=T.replace(/:list$/,""),!b){P[T]=w;return}if(P[T]===void 0){P[T]=[w];return}P[T]=[].concat(P[T],w)};case"comma":case"separator":return(T,w,P)=>{const R=typeof w=="string"&&w.includes(v.arrayFormatSeparator),L=typeof w=="string"&&!R&&d(w,v).includes(v.arrayFormatSeparator);w=L?d(w,v):w;const $=R||L?w.split(v.arrayFormatSeparator).map(q=>d(q,v)):w===null?w:d(w,v);P[T]=$};case"bracket-separator":return(T,w,P)=>{const R=/(\[\])$/.test(T);if(T=T.replace(/\[\]$/,""),!R){P[T]=w&&d(w,v);return}const L=w===null?[]:w.split(v.arrayFormatSeparator).map($=>d($,v));if(P[T]===void 0){P[T]=L;return}P[T]=[].concat(P[T],L)};default:return(T,w,P)=>{if(P[T]===void 0){P[T]=w;return}P[T]=[].concat(P[T],w)}}}function l(v){if(typeof v!="string"||v.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(v,b){return b.encode?b.strict?t(v):encodeURIComponent(v):v}function d(v,b){return b.decode?r(v):v}function f(v){return Array.isArray(v)?v.sort():typeof v=="object"?f(Object.keys(v)).sort((b,T)=>Number(b)-Number(T)).map(b=>v[b]):v}function h(v){const b=v.indexOf("#");return b!==-1&&(v=v.slice(0,b)),v}function p(v){let b="";const T=v.indexOf("#");return T!==-1&&(b=v.slice(T)),b}function m(v){v=h(v);const b=v.indexOf("?");return b===-1?"":v.slice(b+1)}function _(v,b){return b.parseNumbers&&!Number.isNaN(Number(v))&&typeof v=="string"&&v.trim()!==""?v=Number(v):b.parseBooleans&&v!==null&&(v.toLowerCase()==="true"||v.toLowerCase()==="false")&&(v=v.toLowerCase()==="true"),v}function S(v,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),l(b.arrayFormatSeparator);const T=u(b),w=Object.create(null);if(typeof v!="string"||(v=v.trim().replace(/^[?#&]/,""),!v))return w;for(const P of v.split("&")){if(P==="")continue;let[R,L]=n(b.decode?P.replace(/\+/g," "):P,"=");L=L===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?L:d(L,b),T(d(R,b),L,w)}for(const P of Object.keys(w)){const R=w[P];if(typeof R=="object"&&R!==null)for(const L of Object.keys(R))R[L]=_(R[L],b);else w[P]=_(R,b)}return b.sort===!1?w:(b.sort===!0?Object.keys(w).sort():Object.keys(w).sort(b.sort)).reduce((P,R)=>{const L=w[R];return L&&typeof L=="object"&&!Array.isArray(L)?P[R]=f(L):P[R]=L,P},Object.create(null))}e.extract=m,e.parse=S,e.stringify=(v,b)=>{if(!v)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),l(b.arrayFormatSeparator);const T=L=>b.skipNull&&o(v[L])||b.skipEmptyString&&v[L]==="",w=s(b),P={};for(const L of Object.keys(v))T(L)||(P[L]=v[L]);const R=Object.keys(P);return b.sort!==!1&&R.sort(b.sort),R.map(L=>{const $=v[L];return $===void 0?"":$===null?c(L,b):Array.isArray($)?$.length===0&&b.arrayFormat==="bracket-separator"?c(L,b)+"[]":$.reduce(w(L),[]).join("&"):c(L,b)+"="+c($,b)}).filter(L=>L.length>0).join("&")},e.parseUrl=(v,b)=>{b=Object.assign({decode:!0},b);const[T,w]=n(v,"#");return Object.assign({url:T.split("?")[0]||"",query:S(m(v),b)},b&&b.parseFragmentIdentifier&&w?{fragmentIdentifier:d(w,b)}:{})},e.stringifyUrl=(v,b)=>{b=Object.assign({encode:!0,strict:!0,[a]:!0},b);const T=h(v.url).split("?")[0]||"",w=e.extract(v.url),P=e.parse(w,{sort:!1}),R=Object.assign(P,v.query);let L=e.stringify(R,b);L&&(L=`?${L}`);let $=p(v.url);return v.fragmentIdentifier&&($=`#${b[a]?c(v.fragmentIdentifier,b):v.fragmentIdentifier}`),`${T}${L}${$}`},e.pick=(v,b,T)=>{T=Object.assign({parseFragmentIdentifier:!0,[a]:!1},T);const{url:w,query:P,fragmentIdentifier:R}=e.parseUrl(v,T);return e.stringifyUrl({url:w,query:i(P,b),fragmentIdentifier:R},T)},e.exclude=(v,b,T)=>{const w=Array.isArray(b)?P=>!b.includes(P):(P,R)=>!b(P,R);return e.pick(v,w,T)}}(Ac)),Ac}var Jd;function yT(){return Jd||(Jd=1,function(e,t){(function(r,n){e.exports=n(fT(),gT())})(he,function(r,n){return function(){var i={897:function(u){u.exports=r},48:function(u){u.exports=n}},o={};function a(u){var l=o[u];if(l!==void 0)return l.exports;var c=o[u]={exports:{}};return i[u](c,c.exports,a),c.exports}a.d=function(u,l){for(var c in l)a.o(l,c)&&!a.o(u,c)&&Object.defineProperty(u,c,{enumerable:!0,get:l[c]})},a.o=function(u,l){return Object.prototype.hasOwnProperty.call(u,l)},a.r=function(u){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var s={};return function(){a.r(s),a.d(s,{getEntries:function(){return re},getEntry:function(){return Y},setContext:function(){return m}});var u=a(897),l=a(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:d,SPACE:f,HOSTS:h}}=c;let p={apiKey:null,previewKey:null,environment:null,isPreview:!1,host:h.CDN,space:f};const m=({apiKey:K,environment:M,isPreview:z=!1,location:ee,previewKey:fe,space:J=null})=>{p.apiKey=K,p.previewKey=fe,p.environment=(X=>{if(!X)throw new Error("Cannot map environment: Environment not defined");if(!d[X])throw new Error(`Cannot map environment: No mapping found for environment ${X}`);return d[X]})(M),p.isPreview=z||(X=>{let le=!1;if(X&&X.search){const de=(0,l.parse)(X.search);le=de.isPreview&&de.isPreview==="true"}return le})(ee),p.space=J||f},_=(K=!1)=>{const{apiKey:M,environment:z,isPreview:ee,previewKey:fe,space:J}=p;return ee===!0||K===!0?{accessToken:fe,environment:z,host:h.PREVIEW,space:J}:{accessToken:M,environment:z,host:h.CDN,space:J}},S=K=>typeof K=="object"&&K!==null,v=K=>Array.isArray(K)&&K.length,b=K=>{if(!S(K))throw new Error("Cannot flatten fields");const{fields:M,sys:z}=K;if(!M)throw new Error("Cannot flatten fields");let ee={...M};if(S(z)){const{contentType:fe,createdAt:J,updatedAt:X}=z;fe&&Object.assign(ee,{contentType:fe.sys.id}),J&&Object.assign(ee,{createdAt:J}),X&&Object.assign(ee,{updatedAt:X})}return ee},{CONTENTFUL:{LOCALES:T}}=c,w=(K,M)=>S(K)&&((z,ee)=>Object.prototype.hasOwnProperty.call(z,ee))(K,M),P=(K,M)=>{const z=(ee=>T.SUPPORTED.includes(ee)?ee:T.DEFAULT)(M);return w(K,z)?K[z]:w(K,T.DEFAULT)?K[T.DEFAULT]:K},R=K=>S(K)&&K.sys&&K.sys.type==="Asset",L=(K,M,z)=>{const{title:ee,file:fe}=b(K);if(!fe)throw new Error("Cannot flatten asset");const{contentType:J,fileName:X,url:le,details:de}=P(fe,M);if(!le)throw new Error("Cannot flatten asset");return z?{description:ee||X,height:de&&de.image&&de.image.height,type:J,url:le,width:de&&de.image&&de.image.width}:le},$=K=>S(K)&&K.sys&&K.sys.type==="Entry",q=(K,M,z)=>{const ee={},fe=((J,X)=>{const le={};for(const[de,Ve]of Object.entries(J))le[de]=P(Ve,X);return le})(b(K),M);for(const[J,X]of Object.entries(fe))R(X)?ee[J]=L(X,M,z):$(X)?ee[J]=q(X,M,z):v(X)?ee[J]=X.map(le=>R(le)?L(le,M,z):$(le)?q(le,M,z):le):ee[J]=X;return ee},G=({items:K})=>{if(!v(K))throw new Error("Cannot read items");return K},j=async(K,M)=>{const z=_(M);return await(await(0,u.createClient)(z)).getEntries(K)},Y=async(K={},M={},z=!1)=>((ee,{flatten:fe=!0,locale:J="en",assetDetails:X=!1})=>{const le=G(ee);return fe?q(le[0],J,X):le[0]})(await j(K,z),{...K,...M}),re=async(K={},M={},z=!1)=>((ee,{flatten:fe=!0,locale:J="en",assetDetails:X=!1})=>{const le=G(ee);return fe?((de,Ve,te)=>de.map(ae=>q(ae,Ve,te)))(le,J,X):le})(await j(K,z),{...K,...M})}(),s}()})}(Du)),Du.exports}var Ic={exports:{}},Lc={exports:{}},kc={exports:{}},Mc={exports:{}},Zd;function Ff(){return Zd||(Zd=1,function(e,t){(function(r,n){e.exports=n()})(he,function(){function r(m){return!isNaN(parseFloat(m))&&isFinite(m)}function n(m){return m.charAt(0).toUpperCase()+m.substring(1)}function i(m){return function(){return this[m]}}var o=["isConstructor","isEval","isNative","isToplevel"],a=["columnNumber","lineNumber"],s=["fileName","functionName","source"],u=["args"],l=["evalOrigin"],c=o.concat(a,s,u,l);function d(m){if(m)for(var _=0;_<c.length;_++)m[c[_]]!==void 0&&this["set"+n(c[_])](m[c[_]])}d.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 d)this.evalOrigin=m;else if(m instanceof Object)this.evalOrigin=new d(m);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var m=this.getFileName()||"",_=this.getLineNumber()||"",S=this.getColumnNumber()||"",v=this.getFunctionName()||"";return this.getIsEval()?m?"[eval] ("+m+":"+_+":"+S+")":"[eval]:"+_+":"+S:v?v+" ("+m+":"+_+":"+S+")":m+":"+_+":"+S}},d.fromString=function(_){var S=_.indexOf("("),v=_.lastIndexOf(")"),b=_.substring(0,S),T=_.substring(S+1,v).split(","),w=_.substring(v+1);if(w.indexOf("@")===0)var P=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(w,""),R=P[1],L=P[2],$=P[3];return new d({functionName:b,args:T||void 0,fileName:R,lineNumber:L||void 0,columnNumber:$||void 0})};for(var f=0;f<o.length;f++)d.prototype["get"+n(o[f])]=i(o[f]),d.prototype["set"+n(o[f])]=function(m){return function(_){this[m]=!!_}}(o[f]);for(var h=0;h<a.length;h++)d.prototype["get"+n(a[h])]=i(a[h]),d.prototype["set"+n(a[h])]=function(m){return function(_){if(!r(_))throw new TypeError(m+" must be a Number");this[m]=Number(_)}}(a[h]);for(var p=0;p<s.length;p++)d.prototype["get"+n(s[p])]=i(s[p]),d.prototype["set"+n(s[p])]=function(m){return function(_){this[m]=String(_)}}(s[p]);return d})}(Mc)),Mc.exports}var ep;function vT(){return ep||(ep=1,function(e,t){(function(r,n){e.exports=n(Ff())})(he,function(n){var i=/(^|@)\S+:\d+/,o=/^\s*at .*(\S+:\d+|\(native\))/m,a=/^(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(o))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 l=/(.+?)(?::(\d+))?(?::(\d+))?$/,c=l.exec(u.replace(/[()]/g,""));return[c[1],c[2]||void 0,c[3]||void 0]},parseV8OrIE:function(u){var l=u.stack.split(`
35
+ `).filter(function(c){return!!c.match(o)},this);return l.map(function(c){c.indexOf("(eval ")>-1&&(c=c.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var d=c.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),f=d.match(/ (\(.+\)$)/);d=f?d.replace(f[0],""):d;var h=this.extractLocation(f?f[1]:d),p=f&&d||void 0,m=["eval","<anonymous>"].indexOf(h[0])>-1?void 0:h[0];return new n({functionName:p,fileName:m,lineNumber:h[1],columnNumber:h[2],source:c})},this)},parseFFOrSafari:function(u){var l=u.stack.split(`
36
+ `).filter(function(c){return!c.match(a)},this);return l.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 n({functionName:c});var d=/((.*".+"[^@]*)?[^@]*)(?:@)/,f=c.match(d),h=f&&f[1]?f[1]:void 0,p=this.extractLocation(c.replace(d,""));return new n({functionName:h,fileName:p[0],lineNumber:p[1],columnNumber:p[2],source:c})},this)},parseOpera:function(u){return!u.stacktrace||u.message.indexOf(`
37
+ `)>-1&&u.message.split(`
38
+ `).length>u.stacktrace.split(`
39
+ `).length?this.parseOpera9(u):u.stack?this.parseOpera11(u):this.parseOpera10(u)},parseOpera9:function(u){for(var l=/Line (\d+).*script (?:in )?(\S+)/i,c=u.message.split(`
40
+ `),d=[],f=2,h=c.length;f<h;f+=2){var p=l.exec(c[f]);p&&d.push(new n({fileName:p[2],lineNumber:p[1],source:c[f]}))}return d},parseOpera10:function(u){for(var l=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,c=u.stacktrace.split(`
41
+ `),d=[],f=0,h=c.length;f<h;f+=2){var p=l.exec(c[f]);p&&d.push(new n({functionName:p[3]||void 0,fileName:p[2],lineNumber:p[1],source:c[f]}))}return d},parseOpera11:function(u){var l=u.stack.split(`
42
+ `).filter(function(c){return!!c.match(i)&&!c.match(/^Error created at/)},this);return l.map(function(c){var d=c.split("@"),f=this.extractLocation(d.pop()),h=d.shift()||"",p=h.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,m;h.match(/\(([^)]*)\)/)&&(m=h.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var _=m===void 0||m==="[arguments not available]"?void 0:m.split(",");return new n({functionName:p,args:_,fileName:f[0],lineNumber:f[1],columnNumber:f[2],source:c})},this)}}})}(kc)),kc.exports}var Fc={exports:{}},tp;function ET(){return tp||(tp=1,function(e,t){(function(r,n){e.exports=n(Ff())})(he,function(r){return{backtrace:function(i){var o=[],a=10;typeof i=="object"&&typeof i.maxStackSize=="number"&&(a=i.maxStackSize);for(var s=arguments.callee;s&&o.length<a&&s.arguments;){for(var u=new Array(s.arguments.length),l=0;l<u.length;++l)u[l]=s.arguments[l];/function(?:\s+([\w$]+))+\s*\(/.test(s.toString())?o.push(new r({functionName:RegExp.$1||void 0,args:u})):o.push(new r({args:u}));try{s=s.caller}catch{break}}return o}}})}(Fc)),Fc.exports}var Dc={exports:{}},ts={},Bc={},rp;function ty(){return rp||(rp=1,function(e){function t(v,b,T){if(b in v)return v[b];if(arguments.length===3)return T;throw new Error('"'+b+'" is a required argument.')}e.getArg=t;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,n=/^data:.+\,.+$/;function i(v){var b=v.match(r);return b?{scheme:b[1],auth:b[2],host:b[3],port:b[4],path:b[5]}:null}e.urlParse=i;function o(v){var b="";return v.scheme&&(b+=v.scheme+":"),b+="//",v.auth&&(b+=v.auth+"@"),v.host&&(b+=v.host),v.port&&(b+=":"+v.port),v.path&&(b+=v.path),b}e.urlGenerate=o;function a(v){var b=v,T=i(v);if(T){if(!T.path)return v;b=T.path}for(var w=e.isAbsolute(b),P=b.split(/\/+/),R,L=0,$=P.length-1;$>=0;$--)R=P[$],R==="."?P.splice($,1):R===".."?L++:L>0&&(R===""?(P.splice($+1,L),L=0):(P.splice($,2),L--));return b=P.join("/"),b===""&&(b=w?"/":"."),T?(T.path=b,o(T)):b}e.normalize=a;function s(v,b){v===""&&(v="."),b===""&&(b=".");var T=i(b),w=i(v);if(w&&(v=w.path||"/"),T&&!T.scheme)return w&&(T.scheme=w.scheme),o(T);if(T||b.match(n))return b;if(w&&!w.host&&!w.path)return w.host=b,o(w);var P=b.charAt(0)==="/"?b:a(v.replace(/\/+$/,"")+"/"+b);return w?(w.path=P,o(w)):P}e.join=s,e.isAbsolute=function(v){return v.charAt(0)==="/"||!!v.match(r)};function u(v,b){v===""&&(v="."),v=v.replace(/\/$/,"");for(var T=0;b.indexOf(v+"/")!==0;){var w=v.lastIndexOf("/");if(w<0||(v=v.slice(0,w),v.match(/^([^\/]+:\/)?\/*$/)))return b;++T}return Array(T+1).join("../")+b.substr(v.length+1)}e.relative=u;var l=function(){var v=Object.create(null);return!("__proto__"in v)}();function c(v){return v}function d(v){return h(v)?"$"+v:v}e.toSetString=l?c:d;function f(v){return h(v)?v.slice(1):v}e.fromSetString=l?c:f;function h(v){if(!v)return!1;var b=v.length;if(b<9||v.charCodeAt(b-1)!==95||v.charCodeAt(b-2)!==95||v.charCodeAt(b-3)!==111||v.charCodeAt(b-4)!==116||v.charCodeAt(b-5)!==111||v.charCodeAt(b-6)!==114||v.charCodeAt(b-7)!==112||v.charCodeAt(b-8)!==95||v.charCodeAt(b-9)!==95)return!1;for(var T=b-10;T>=0;T--)if(v.charCodeAt(T)!==36)return!1;return!0}function p(v,b,T){var w=v.source-b.source;return w!==0||(w=v.originalLine-b.originalLine,w!==0)||(w=v.originalColumn-b.originalColumn,w!==0||T)||(w=v.generatedColumn-b.generatedColumn,w!==0)||(w=v.generatedLine-b.generatedLine,w!==0)?w:v.name-b.name}e.compareByOriginalPositions=p;function m(v,b,T){var w=v.generatedLine-b.generatedLine;return w!==0||(w=v.generatedColumn-b.generatedColumn,w!==0||T)||(w=v.source-b.source,w!==0)||(w=v.originalLine-b.originalLine,w!==0)||(w=v.originalColumn-b.originalColumn,w!==0)?w:v.name-b.name}e.compareByGeneratedPositionsDeflated=m;function _(v,b){return v===b?0:v>b?1:-1}function S(v,b){var T=v.generatedLine-b.generatedLine;return T!==0||(T=v.generatedColumn-b.generatedColumn,T!==0)||(T=_(v.source,b.source),T!==0)||(T=v.originalLine-b.originalLine,T!==0)||(T=v.originalColumn-b.originalColumn,T!==0)?T:_(v.name,b.name)}e.compareByGeneratedPositionsInflated=S}(Bc)),Bc}var Uc={},np;function _T(){return np||(np=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(r,n,i,o,a,s){var u=Math.floor((n-r)/2)+r,l=a(i,o[u],!0);return l===0?u:l>0?n-u>1?t(u,n,i,o,a,s):s==e.LEAST_UPPER_BOUND?n<o.length?n:-1:u:u-r>1?t(r,u,i,o,a,s):s==e.LEAST_UPPER_BOUND?u:r<0?-1:r}e.search=function(n,i,o,a){if(i.length===0)return-1;var s=t(-1,i.length,n,i,o,a||e.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&o(i[s],i[s-1],!0)===0;)--s;return s}}(Uc)),Uc}var $c={},ip;function bT(){if(ip)return $c;ip=1;var e=ty(),t=Object.prototype.hasOwnProperty;function r(){this._array=[],this._set=Object.create(null)}return r.fromArray=function(i,o){for(var a=new r,s=0,u=i.length;s<u;s++)a.add(i[s],o);return a},r.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(i,o){var a=e.toSetString(i),s=t.call(this._set,a),u=this._array.length;(!s||o)&&this._array.push(i),s||(this._set[a]=u)},r.prototype.has=function(i){var o=e.toSetString(i);return t.call(this._set,o)},r.prototype.indexOf=function(i){var o=e.toSetString(i);if(t.call(this._set,o))return this._set[o];throw new Error('"'+i+'" is not in the set.')},r.prototype.at=function(i){if(i>=0&&i<this._array.length)return this._array[i];throw new Error("No element indexed by "+i)},r.prototype.toArray=function(){return this._array.slice()},$c.ArraySet=r,$c}var xa={},Oa={},op;function wT(){if(op)return Oa;op=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Oa.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Oa.decode=function(t){var r=65,n=90,i=97,o=122,a=48,s=57,u=43,l=47,c=26,d=52;return r<=t&&t<=n?t-r:i<=t&&t<=o?t-i+c:a<=t&&t<=s?t-a+d:t==u?62:t==l?63:-1},Oa}var sp;function ST(){if(sp)return xa;sp=1;var e=wT(),t=5,r=1<<t,n=r-1,i=r;function o(s){return s<0?(-s<<1)+1:(s<<1)+0}function a(s){var u=(s&1)===1,l=s>>1;return u?-l:l}return xa.encode=function(u){var l="",c,d=o(u);do c=d&n,d>>>=t,d>0&&(c|=i),l+=e.encode(c);while(d>0);return l},xa.decode=function(u,l,c){var d=u.length,f=0,h=0,p,m;do{if(l>=d)throw new Error("Expected more digits in base 64 VLQ value.");if(m=e.decode(u.charCodeAt(l++)),m===-1)throw new Error("Invalid base64 digit: "+u.charAt(l-1));p=!!(m&i),m&=n,f=f+(m<<h),h+=t}while(p);c.value=a(f),c.rest=l},xa}var jc={},ap;function TT(){if(ap)return jc;ap=1;function e(n,i,o){var a=n[i];n[i]=n[o],n[o]=a}function t(n,i){return Math.round(n+Math.random()*(i-n))}function r(n,i,o,a){if(o<a){var s=t(o,a),u=o-1;e(n,s,a);for(var l=n[a],c=o;c<a;c++)i(n[c],l)<=0&&(u+=1,e(n,u,c));e(n,u+1,c);var d=u+1;r(n,i,o,d-1),r(n,i,d+1,a)}}return jc.quickSort=function(n,i){r(n,i,0,n.length-1)},jc}var up;function xT(){if(up)return ts;up=1;var e=ty(),t=_T(),r=bT().ArraySet,n=ST(),i=TT().quickSort;function o(l){var c=l;return typeof l=="string"&&(c=JSON.parse(l.replace(/^\)\]\}'/,""))),c.sections!=null?new u(c):new a(c)}o.fromSourceMap=function(l){return a.fromSourceMap(l)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(c,d){var f=c.charAt(d);return f===";"||f===","},o.prototype._parseMappings=function(c,d){throw new Error("Subclasses must implement _parseMappings")},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(c,d,f){var h=d||null,p=f||o.GENERATED_ORDER,m;switch(p){case o.GENERATED_ORDER:m=this._generatedMappings;break;case o.ORIGINAL_ORDER:m=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var _=this.sourceRoot;m.map(function(S){var v=S.source===null?null:this._sources.at(S.source);return v!=null&&_!=null&&(v=e.join(_,v)),{source:v,generatedLine:S.generatedLine,generatedColumn:S.generatedColumn,originalLine:S.originalLine,originalColumn:S.originalColumn,name:S.name===null?null:this._names.at(S.name)}},this).forEach(c,h)},o.prototype.allGeneratedPositionsFor=function(c){var d=e.getArg(c,"line"),f={source:e.getArg(c,"source"),originalLine:d,originalColumn:e.getArg(c,"column",0)};if(this.sourceRoot!=null&&(f.source=e.relative(this.sourceRoot,f.source)),!this._sources.has(f.source))return[];f.source=this._sources.indexOf(f.source);var h=[],p=this._findMapping(f,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(p>=0){var m=this._originalMappings[p];if(c.column===void 0)for(var _=m.originalLine;m&&m.originalLine===_;)h.push({line:e.getArg(m,"generatedLine",null),column:e.getArg(m,"generatedColumn",null),lastColumn:e.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++p];else for(var S=m.originalColumn;m&&m.originalLine===d&&m.originalColumn==S;)h.push({line:e.getArg(m,"generatedLine",null),column:e.getArg(m,"generatedColumn",null),lastColumn:e.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++p]}return h},ts.SourceMapConsumer=o;function a(l){var c=l;typeof l=="string"&&(c=JSON.parse(l.replace(/^\)\]\}'/,"")));var d=e.getArg(c,"version"),f=e.getArg(c,"sources"),h=e.getArg(c,"names",[]),p=e.getArg(c,"sourceRoot",null),m=e.getArg(c,"sourcesContent",null),_=e.getArg(c,"mappings"),S=e.getArg(c,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);f=f.map(String).map(e.normalize).map(function(v){return p&&e.isAbsolute(p)&&e.isAbsolute(v)?e.relative(p,v):v}),this._names=r.fromArray(h.map(String),!0),this._sources=r.fromArray(f,!0),this.sourceRoot=p,this.sourcesContent=m,this._mappings=_,this.file=S}a.prototype=Object.create(o.prototype),a.prototype.consumer=o,a.fromSourceMap=function(c){var d=Object.create(a.prototype),f=d._names=r.fromArray(c._names.toArray(),!0),h=d._sources=r.fromArray(c._sources.toArray(),!0);d.sourceRoot=c._sourceRoot,d.sourcesContent=c._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=c._file;for(var p=c._mappings.toArray().slice(),m=d.__generatedMappings=[],_=d.__originalMappings=[],S=0,v=p.length;S<v;S++){var b=p[S],T=new s;T.generatedLine=b.generatedLine,T.generatedColumn=b.generatedColumn,b.source&&(T.source=h.indexOf(b.source),T.originalLine=b.originalLine,T.originalColumn=b.originalColumn,b.name&&(T.name=f.indexOf(b.name)),_.push(T)),m.push(T)}return i(d.__originalMappings,e.compareByOriginalPositions),d},a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){return this._sources.toArray().map(function(l){return this.sourceRoot!=null?e.join(this.sourceRoot,l):l},this)}});function s(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}a.prototype._parseMappings=function(c,d){for(var f=1,h=0,p=0,m=0,_=0,S=0,v=c.length,b=0,T={},w={},P=[],R=[],L,$,q,G,j;b<v;)if(c.charAt(b)===";")f++,b++,h=0;else if(c.charAt(b)===",")b++;else{for(L=new s,L.generatedLine=f,G=b;G<v&&!this._charIsMappingSeparator(c,G);G++);if($=c.slice(b,G),q=T[$],q)b+=$.length;else{for(q=[];b<G;)n.decode(c,b,w),j=w.value,b=w.rest,q.push(j);if(q.length===2)throw new Error("Found a source, but no line and column");if(q.length===3)throw new Error("Found a source and line, but no column");T[$]=q}L.generatedColumn=h+q[0],h=L.generatedColumn,q.length>1&&(L.source=_+q[1],_+=q[1],L.originalLine=p+q[2],p=L.originalLine,L.originalLine+=1,L.originalColumn=m+q[3],m=L.originalColumn,q.length>4&&(L.name=S+q[4],S+=q[4])),R.push(L),typeof L.originalLine=="number"&&P.push(L)}i(R,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=R,i(P,e.compareByOriginalPositions),this.__originalMappings=P},a.prototype._findMapping=function(c,d,f,h,p,m){if(c[f]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+c[f]);if(c[h]<0)throw new TypeError("Column must be greater than or equal to 0, got "+c[h]);return t.search(c,d,p,m)},a.prototype.computeColumnSpans=function(){for(var c=0;c<this._generatedMappings.length;++c){var d=this._generatedMappings[c];if(c+1<this._generatedMappings.length){var f=this._generatedMappings[c+1];if(d.generatedLine===f.generatedLine){d.lastGeneratedColumn=f.generatedColumn-1;continue}}d.lastGeneratedColumn=1/0}},a.prototype.originalPositionFor=function(c){var d={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},f=this._findMapping(d,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(c,"bias",o.GREATEST_LOWER_BOUND));if(f>=0){var h=this._generatedMappings[f];if(h.generatedLine===d.generatedLine){var p=e.getArg(h,"source",null);p!==null&&(p=this._sources.at(p),this.sourceRoot!=null&&(p=e.join(this.sourceRoot,p)));var m=e.getArg(h,"name",null);return m!==null&&(m=this._names.at(m)),{source:p,line:e.getArg(h,"originalLine",null),column:e.getArg(h,"originalColumn",null),name:m}}}return{source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(c){return c==null}):!1},a.prototype.sourceContentFor=function(c,d){if(!this.sourcesContent)return null;if(this.sourceRoot!=null&&(c=e.relative(this.sourceRoot,c)),this._sources.has(c))return this.sourcesContent[this._sources.indexOf(c)];var f;if(this.sourceRoot!=null&&(f=e.urlParse(this.sourceRoot))){var h=c.replace(/^file:\/\//,"");if(f.scheme=="file"&&this._sources.has(h))return this.sourcesContent[this._sources.indexOf(h)];if((!f.path||f.path=="/")&&this._sources.has("/"+c))return this.sourcesContent[this._sources.indexOf("/"+c)]}if(d)return null;throw new Error('"'+c+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(c){var d=e.getArg(c,"source");if(this.sourceRoot!=null&&(d=e.relative(this.sourceRoot,d)),!this._sources.has(d))return{line:null,column:null,lastColumn:null};d=this._sources.indexOf(d);var f={source:d,originalLine:e.getArg(c,"line"),originalColumn:e.getArg(c,"column")},h=this._findMapping(f,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(c,"bias",o.GREATEST_LOWER_BOUND));if(h>=0){var p=this._originalMappings[h];if(p.source===f.source)return{line:e.getArg(p,"generatedLine",null),column:e.getArg(p,"generatedColumn",null),lastColumn:e.getArg(p,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},ts.BasicSourceMapConsumer=a;function u(l){var c=l;typeof l=="string"&&(c=JSON.parse(l.replace(/^\)\]\}'/,"")));var d=e.getArg(c,"version"),f=e.getArg(c,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new r,this._names=new r;var h={line:-1,column:0};this._sections=f.map(function(p){if(p.url)throw new Error("Support for url field in sections not implemented.");var m=e.getArg(p,"offset"),_=e.getArg(m,"line"),S=e.getArg(m,"column");if(_<h.line||_===h.line&&S<h.column)throw new Error("Section offsets must be ordered and non-overlapping.");return h=m,{generatedOffset:{generatedLine:_+1,generatedColumn:S+1},consumer:new o(e.getArg(p,"map"))}})}return u.prototype=Object.create(o.prototype),u.prototype.constructor=o,u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){for(var l=[],c=0;c<this._sections.length;c++)for(var d=0;d<this._sections[c].consumer.sources.length;d++)l.push(this._sections[c].consumer.sources[d]);return l}}),u.prototype.originalPositionFor=function(c){var d={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},f=t.search(d,this._sections,function(p,m){var _=p.generatedLine-m.generatedOffset.generatedLine;return _||p.generatedColumn-m.generatedOffset.generatedColumn}),h=this._sections[f];return h?h.consumer.originalPositionFor({line:d.generatedLine-(h.generatedOffset.generatedLine-1),column:d.generatedColumn-(h.generatedOffset.generatedLine===d.generatedLine?h.generatedOffset.generatedColumn-1:0),bias:c.bias}):{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(c){return c.consumer.hasContentsOfAllSources()})},u.prototype.sourceContentFor=function(c,d){for(var f=0;f<this._sections.length;f++){var h=this._sections[f],p=h.consumer.sourceContentFor(c,!0);if(p)return p}if(d)return null;throw new Error('"'+c+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(c){for(var d=0;d<this._sections.length;d++){var f=this._sections[d];if(f.consumer.sources.indexOf(e.getArg(c,"source"))!==-1){var h=f.consumer.generatedPositionFor(c);if(h){var p={line:h.line+(f.generatedOffset.generatedLine-1),column:h.column+(f.generatedOffset.generatedLine===h.line?f.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},u.prototype._parseMappings=function(c,d){this.__generatedMappings=[],this.__originalMappings=[];for(var f=0;f<this._sections.length;f++)for(var h=this._sections[f],p=h.consumer._generatedMappings,m=0;m<p.length;m++){var _=p[m],S=h.consumer._sources.at(_.source);h.consumer.sourceRoot!==null&&(S=e.join(h.consumer.sourceRoot,S)),this._sources.add(S),S=this._sources.indexOf(S);var v=h.consumer._names.at(_.name);this._names.add(v),v=this._names.indexOf(v);var b={source:S,generatedLine:_.generatedLine+(h.generatedOffset.generatedLine-1),generatedColumn:_.generatedColumn+(h.generatedOffset.generatedLine===_.generatedLine?h.generatedOffset.generatedColumn-1:0),originalLine:_.originalLine,originalColumn:_.originalColumn,name:v};this.__generatedMappings.push(b),typeof b.originalLine=="number"&&this.__originalMappings.push(b)}i(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),i(this.__originalMappings,e.compareByOriginalPositions)},ts.IndexedSourceMapConsumer=u,ts}var cp;function OT(){return cp||(cp=1,function(e,t){(function(r,n){e.exports=n(xT(),Ff())})(he,function(r,n){function i(f){return new Promise(function(h,p){var m=new XMLHttpRequest;m.open("get",f),m.onerror=p,m.onreadystatechange=function(){m.readyState===4&&(m.status>=200&&m.status<300||f.substr(0,7)==="file://"&&m.responseText?h(m.responseText):p(new Error("HTTP status: "+m.status+" retrieving "+f)))},m.send()})}function o(f){if(typeof window<"u"&&window.atob)return window.atob(f);throw new Error("You must supply a polyfill for window.atob in this environment")}function a(f){if(typeof JSON<"u"&&JSON.parse)return JSON.parse(f);throw new Error("You must supply a polyfill for JSON.parse in this environment")}function s(f,h){for(var p=[/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*function\b/,/function\s+([^('"`]*?)\s*\(([^)]*)\)/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*(?:eval|new Function)\b/,/\b(?!(?:if|for|switch|while|with|catch)\b)(?:(?:static)\s+)?(\S+)\s*\(.*?\)\s*\{/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*\(.*?\)\s*=>/],m=f.split(`
43
+ `),_="",S=Math.min(h,20),v=0;v<S;++v){var b=m[h-v-1],T=b.indexOf("//");if(T>=0&&(b=b.substr(0,T)),b){_=b+_;for(var w=p.length,P=0;P<w;P++){var R=p[P].exec(_);if(R&&R[1])return R[1]}}}}function u(){if(typeof Object.defineProperty!="function"||typeof Object.create!="function")throw new Error("Unable to consume source maps in older browsers")}function l(f){if(typeof f!="object")throw new TypeError("Given StackFrame is not an object");if(typeof f.fileName!="string")throw new TypeError("Given file name is not a String");if(typeof f.lineNumber!="number"||f.lineNumber%1!==0||f.lineNumber<1)throw new TypeError("Given line number must be a positive integer");if(typeof f.columnNumber!="number"||f.columnNumber%1!==0||f.columnNumber<0)throw new TypeError("Given column number must be a non-negative integer");return!0}function c(f){for(var h=/\/\/[#@] ?sourceMappingURL=([^\s'"]+)\s*$/mg,p,m;m=h.exec(f);)p=m[1];if(p)return p;throw new Error("sourceMappingURL not found")}function d(f,h,p){return new Promise(function(m,_){var S=h.originalPositionFor({line:f.lineNumber,column:f.columnNumber});if(S.source){var v=h.sourceContentFor(S.source);v&&(p[S.source]=v),m(new n({functionName:S.name||f.functionName,args:f.args,fileName:S.source,lineNumber:S.line,columnNumber:S.column}))}else _(new Error("Could not get original source for given stackframe and source map"))})}return function f(h){if(!(this instanceof f))return new f(h);h=h||{},this.sourceCache=h.sourceCache||{},this.sourceMapConsumerCache=h.sourceMapConsumerCache||{},this.ajax=h.ajax||i,this._atob=h.atob||o,this._get=function(m){return new Promise((function(_,S){var v=m.substr(0,5)==="data:";if(this.sourceCache[m])_(this.sourceCache[m]);else if(h.offline&&!v)S(new Error("Cannot make network requests in offline mode"));else if(v){var b=/^data:application\/json;([\w=:"-]+;)*base64,/,T=m.match(b);if(T){var w=T[0].length,P=m.substr(w),R=this._atob(P);this.sourceCache[m]=R,_(R)}else S(new Error("The encoding of the inline sourcemap is not supported"))}else{var L=this.ajax(m,{method:"get"});this.sourceCache[m]=L,L.then(_,S)}}).bind(this))},this._getSourceMapConsumer=function(m,_){return new Promise((function(S){if(this.sourceMapConsumerCache[m])S(this.sourceMapConsumerCache[m]);else{var v=new Promise((function(b,T){return this._get(m).then(function(w){typeof w=="string"&&(w=a(w.replace(/^\)\]\}'/,""))),typeof w.sourceRoot>"u"&&(w.sourceRoot=_),b(new r.SourceMapConsumer(w))}).catch(T)}).bind(this));this.sourceMapConsumerCache[m]=v,S(v)}}).bind(this))},this.pinpoint=function(m){return new Promise((function(_,S){this.getMappedLocation(m).then((function(v){function b(){_(v)}this.findFunctionName(v).then(_,b).catch(b)}).bind(this),S)}).bind(this))},this.findFunctionName=function(m){return new Promise((function(_,S){l(m),this._get(m.fileName).then(function(b){var T=m.lineNumber,w=m.columnNumber,P=s(b,T);_(P?new n({functionName:P,args:m.args,fileName:m.fileName,lineNumber:T,columnNumber:w}):m)},S).catch(S)}).bind(this))},this.getMappedLocation=function(m){return new Promise((function(_,S){u(),l(m);var v=this.sourceCache,b=m.fileName;this._get(b).then((function(T){var w=c(T),P=w.substr(0,5)==="data:",R=b.substring(0,b.lastIndexOf("/")+1);return w[0]!=="/"&&!P&&!/^https?:\/\/|^\/\//i.test(w)&&(w=R+w),this._getSourceMapConsumer(w,R).then(function(L){return d(m,L,v).then(_).catch(function(){_(m)})})}).bind(this),S).catch(S)}).bind(this))}}})}(Dc)),Dc.exports}var lp;function AT(){return lp||(lp=1,function(e,t){(function(r,n){e.exports=n(vT(),ET(),OT())})(he,function(n,i,o){var a={filter:function(d){return(d.functionName||"").indexOf("StackTrace$$")===-1&&(d.functionName||"").indexOf("ErrorStackParser$$")===-1&&(d.functionName||"").indexOf("StackTraceGPS$$")===-1&&(d.functionName||"").indexOf("StackGenerator$$")===-1},sourceCache:{}},s=function(){try{throw new Error}catch(f){return f}};function u(d,f){var h={};return[d,f].forEach(function(p){for(var m in p)Object.prototype.hasOwnProperty.call(p,m)&&(h[m]=p[m]);return h}),h}function l(d){return d.stack||d["opera#sourceloc"]}function c(d,f){return typeof f=="function"?d.filter(f):d}return{get:function(f){var h=s();return l(h)?this.fromError(h,f):this.generateArtificially(f)},getSync:function(f){f=u(a,f);var h=s(),p=l(h)?n.parse(h):i.backtrace(f);return c(p,f.filter)},fromError:function(f,h){h=u(a,h);var p=new o(h);return new Promise((function(m){var _=c(n.parse(f),h.filter);m(Promise.all(_.map(function(S){return new Promise(function(v){function b(){v(S)}p.pinpoint(S).then(v,b).catch(b)})})))}).bind(this))},generateArtificially:function(f){f=u(a,f);var h=i.backtrace(f);return typeof f.filter=="function"&&(h=h.filter(f.filter)),Promise.resolve(h)},instrument:function(f,h,p,m){if(typeof f!="function")throw new Error("Cannot instrument non-function object");if(typeof f.__stacktraceOriginalFn=="function")return f;var _=(function(){try{return this.get().then(h,p).catch(p),f.apply(m||this,arguments)}catch(v){throw l(v)&&this.fromError(v).then(h,p).catch(p),v}}).bind(this);return _.__stacktraceOriginalFn=f,_},deinstrument:function(f){if(typeof f!="function")throw new Error("Cannot de-instrument non-function object");return typeof f.__stacktraceOriginalFn=="function"?f.__stacktraceOriginalFn:f},report:function(f,h,p,m){return new Promise(function(_,S){var v=new XMLHttpRequest;if(v.onerror=S,v.onreadystatechange=function(){v.readyState===4&&(v.status>=200&&v.status<400?_(v.responseText):S(new Error("POST to "+h+" failed with status: "+v.status)))},v.open("post",h),v.setRequestHeader("Content-Type","application/json"),m&&typeof m.headers=="object"){var b=m.headers;for(var T in b)Object.prototype.hasOwnProperty.call(b,T)&&v.setRequestHeader(T,b[T])}var w={stack:f};p!=null&&(w.message=p),v.send(JSON.stringify(w))})}}})}(Lc)),Lc.exports}var Hc,fp;function CT(){if(fp)return Hc;fp=1;var e=AT(),t="https://clouderrorreporting.googleapis.com/v1beta1/projects/",r=function(){};r.prototype.start=function(a){if(!a.key&&!a.targetUrl&&!a.customReportingFunction)throw new Error("Cannot initialize: No API key, target url or custom reporting function provided.");if(!a.projectId&&!a.targetUrl&&!a.customReportingFunction)throw new Error("Cannot initialize: No project ID, target url or custom reporting function provided.");this.customReportingFunction=a.customReportingFunction,this.apiKey=a.key,this.projectId=a.projectId,this.targetUrl=a.targetUrl,this.context=a.context||{},this.serviceContext={service:a.service||"web"},a.version&&(this.serviceContext.version=a.version),this.reportUncaughtExceptions=a.reportUncaughtExceptions!==!1,this.reportUnhandledPromiseRejections=a.reportUnhandledPromiseRejections!==!1,this.disabled=!!a.disabled,n(this)};function n(a){var s=function(){};if(a.reportUncaughtExceptions){var u=window.onerror||s;window.onerror=function(c,d,f,h,p){return p&&a.report(p).catch(s),u(c,d,f,h,p),!0}}if(a.reportUnhandledPromiseRejections){var l=window.onunhandledrejection||s;window.onunhandledrejection=function(c){return c&&a.report(c.reason).catch(s),l(c.reason),!0}}}r.prototype.report=function(a,s){if(this.disabled)return Promise.resolve(null);if(!a)return Promise.reject(new Error("no error to report"));s=s||{};var u={};u.serviceContext=this.serviceContext,u.context=this.context,u.context.httpRequest={userAgent:window.navigator.userAgent,url:window.location.href};var l=0;if(typeof a=="string"||a instanceof String){try{throw new Error(a)}catch(f){a=f}l=s.skipLocalFrames||1}var c=this.targetUrl||t+this.projectId+"/events:report?key="+this.apiKey,d=this.customReportingFunction;return i(a,l).then(function(f){return u.message=f,d?d(u):o(c,u)})};function i(a,s){return e.fromError(a).then(function(u){for(var l=[a.toString()],c=s;c<u.length;c++)l.push([" at ",u[c].getFunctionName()||"<anonymous>"," (",u[c].getFileName(),":",u[c].getLineNumber(),":",u[c].getColumnNumber(),")"].join(""));return l.join(`
44
+ `)},function(u){return["Error extracting stack trace: ",u,`
45
+ `,a.toString(),`
46
+ `," (",a.file,":",a.line,":",a.column,")"].join("")})}function o(a,s){var u=new XMLHttpRequest;return u.open("POST",a,!0),u.setRequestHeader("Content-Type","application/json; charset=UTF-8"),new Promise(function(l,c){u.onreadystatechange=function(){if(u.readyState===4){var d=u.status;if(d>=200&&d<300)l({message:s.message});else if(d===429)c({message:"quota or rate limiting error on stackdriver report",name:"Http429FakeError"});else{var f=d?d+" http response":"network error";c(new Error(f+" on stackdriver report"))}}},u.send(JSON.stringify(s))})}return r.prototype.setUser=function(a){this.context.user=a},Hc=r,Hc}var hp;function RT(){return hp||(hp=1,function(e,t){(function(r,n){e.exports=n(CT())})(he,function(r){return function(){var n={542:function(s){s.exports=r}},i={};function o(s){var u=i[s];if(u!==void 0)return u.exports;var l=i[s]={exports:{}};return n[s](l,l.exports,o),l.exports}o.n=function(s){var u=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(u,{a:u}),u},o.d=function(s,u){for(var l in u)o.o(u,l)&&!o.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:u[l]})},o.o=function(s,u){return Object.prototype.hasOwnProperty.call(s,u)},o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var a={};return function(){o.r(a),o.d(a,{reportError:function(){return f},setContext:function(){return d}});var s=o(542),u=o.n(s);const{GCP:{PROJECT_ID:l}}={GCP:{PROJECT_ID:"hazel-tea-194609"}};let c={key:null,environment:null,projectId:l};const d=({apiKey:h,environment:p,projectId:m,serviceName:_})=>{if(!h)throw new Error("Cannot set context: REACT_APP_GCP_ERRORS_API_KEY not defined");if(c.key=h,!p)throw new Error("Cannot set context: Environment not defined");c.environment=p,c.projectId=m||l,_&&(c.service=`${_}:${c.environment}`)},f=async(h,p)=>{try{const m=new(u());m.start(c),typeof p=="string"&&m.setUser(p),await m.report(h)}catch(m){console.warn(`Cannot report error: ${m.message}`)}}}(),a}()})}(Ic)),Ic.exports}var qc={exports:{}},Aa={},dp;function PT(){if(dp)return Aa;dp=1,Object.defineProperty(Aa,"__esModule",{value:!0});var e=function(r){console.warn("[react-gtm]",r)};return Aa.default=e,Aa}var Gc,pp;function NT(){if(pp)return Gc;pp=1;var e=PT(),t=r(e);function r(i){return i&&i.__esModule?i:{default:i}}var n={tags:function(o){var a=o.id,s=o.events,u=o.dataLayer,l=o.dataLayerName,c=o.preview,d=o.auth,f="&gtm_auth="+d,h="&gtm_preview="+c;a||(0,t.default)("GTM Id is required");var p=`
47
+ <iframe src="https://www.googletagmanager.com/ns.html?id=`+a+f+h+`&gtm_cookies_win=x"
48
+ height="0" width="0" style="display:none;visibility:hidden" id="tag-manager"></iframe>`,m=`
49
+ (function(w,d,s,l,i){w[l]=w[l]||[];
50
+ w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js', `+JSON.stringify(s).slice(1,-1)+`});
51
+ var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';
52
+ j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl+'`+f+h+`&gtm_cookies_win=x';
53
+ f.parentNode.insertBefore(j,f);
54
+ })(window,document,'script','`+l+"','"+a+"');",_=this.dataLayer(u,l);return{iframe:p,script:m,dataLayerVar:_}},dataLayer:function(o,a){return`
55
+ window.`+a+" = window."+a+` || [];
56
+ window.`+a+".push("+JSON.stringify(o)+")"}};return Gc=n,Gc}var Vc,mp;function IT(){if(mp)return Vc;mp=1;var e=NT(),t=r(e);function r(i){return i&&i.__esModule?i:{default:i}}var n={dataScript:function(o){var a=document.createElement("script");return a.innerHTML=o,a},gtm:function(o){var a=t.default.tags(o),s=function(){var d=document.createElement("noscript");return d.innerHTML=a.iframe,d},u=function(){var d=document.createElement("script");return d.innerHTML=a.script,d},l=this.dataScript(a.dataLayerVar);return{noScript:s,script:u,dataScript:l}},initialize:function(o){var a=o.gtmId,s=o.events,u=s===void 0?{}:s,l=o.dataLayer,c=o.dataLayerName,d=c===void 0?"dataLayer":c,f=o.auth,h=f===void 0?"":f,p=o.preview,m=p===void 0?"":p,_=this.gtm({id:a,events:u,dataLayer:l||void 0,dataLayerName:d,auth:h,preview:m});l&&document.head.appendChild(_.dataScript),document.head.insertBefore(_.script(),document.head.childNodes[0]),document.body.insertBefore(_.noScript(),document.body.childNodes[0])},dataLayer:function(o){var a=o.dataLayer,s=o.dataLayerName,u=s===void 0?"dataLayer":s;if(window[u])return window[u].push(a);var l=t.default.dataLayer(a,u),c=this.dataScript(l);document.head.insertBefore(c,document.head.childNodes[0])}};return Vc=n,Vc}var Wc,gp;function LT(){if(gp)return Wc;gp=1;var e=IT(),t=r(e);function r(n){return n&&n.__esModule?n:{default:n}}return Wc=t.default,Wc}var yp;function kT(){return yp||(yp=1,function(e,t){(function(r,n){e.exports=n(LT())})(he,function(r){return function(){var n={273:function(s){s.exports=r}},i={};function o(s){var u=i[s];if(u!==void 0)return u.exports;var l=i[s]={exports:{}};return n[s](l,l.exports,o),l.exports}o.n=function(s){var u=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(u,{a:u}),u},o.d=function(s,u){for(var l in u)o.o(u,l)&&!o.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:u[l]})},o.o=function(s,u){return Object.prototype.hasOwnProperty.call(s,u)},o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var a={};return function(){o.r(a),o.d(a,{setContext:function(){return c},setupGTM:function(){return f}});var s=o(273),u=o.n(s);let l=null;const c=({configs:h,environment:p})=>{if(!p)throw new Error("Cannot set context: Environment not defined");if(!h)throw new Error("Cannot set context: REACT_APP_GTM_ID not defined");if(!h[p])throw new Error(`Cannot set context: REACT_APP_GTM_ID not defined for environment - ${JSON.stringify({configs:h,environment:p})}`);l=h[p]},d=()=>l,f=()=>{const h=d();u().initialize({gtmId:h.id})}}(),a}()})}(qc)),qc.exports}var ry=202,ny=502,iy=400,oy=409,sy=100,ay=201,uy=417,MT=424,cy=403,ly=504,fy=410,hy=505,dy=418,py=419,my=507,gy=500,yy=411,vy=423,Ey=420,_y=405,by=301,wy=302,Sy=207,Ty=300,xy=511,Oy=204,Ay=203,Cy=406,Ry=404,Py=501,Ny=304,Iy=200,Ly=206,ky=402,My=308,Fy=412,Dy=428,By=102,Uy=407,$y=431,jy=408,Hy=413,qy=414,Gy=416,Vy=205,Wy=303,zy=503,Qy=101,Yy=307,Ky=429,Xy=401,Jy=422,Zy=415,ev=305;const FT={ACCEPTED:ry,BAD_GATEWAY:ny,BAD_REQUEST:iy,CONFLICT:oy,CONTINUE:sy,CREATED:ay,EXPECTATION_FAILED:uy,FORBIDDEN:cy,GATEWAY_TIMEOUT:ly,GONE:fy,HTTP_VERSION_NOT_SUPPORTED:hy,IM_A_TEAPOT:dy,INSUFFICIENT_SPACE_ON_RESOURCE:py,INSUFFICIENT_STORAGE:my,INTERNAL_SERVER_ERROR:gy,LENGTH_REQUIRED:yy,LOCKED:vy,METHOD_FAILURE:Ey,METHOD_NOT_ALLOWED:_y,MOVED_PERMANENTLY:by,MOVED_TEMPORARILY:wy,MULTI_STATUS:Sy,MULTIPLE_CHOICES:Ty,NETWORK_AUTHENTICATION_REQUIRED:xy,NO_CONTENT:Oy,NON_AUTHORITATIVE_INFORMATION:Ay,NOT_ACCEPTABLE:Cy,NOT_FOUND:Ry,NOT_IMPLEMENTED:Py,NOT_MODIFIED:Ny,OK:Iy,PARTIAL_CONTENT:Ly,PAYMENT_REQUIRED:ky,PERMANENT_REDIRECT:My,PRECONDITION_FAILED:Fy,PRECONDITION_REQUIRED:Dy,PROCESSING:By,PROXY_AUTHENTICATION_REQUIRED:Uy,REQUEST_HEADER_FIELDS_TOO_LARGE:$y,REQUEST_TIMEOUT:jy,REQUEST_TOO_LONG:Hy,REQUEST_URI_TOO_LONG:qy,REQUESTED_RANGE_NOT_SATISFIABLE:Gy,RESET_CONTENT:Vy,SEE_OTHER:Wy,SERVICE_UNAVAILABLE:zy,SWITCHING_PROTOCOLS:Qy,TEMPORARY_REDIRECT:Yy,TOO_MANY_REQUESTS:Ky,UNAUTHORIZED:Xy,UNPROCESSABLE_ENTITY:Jy,UNSUPPORTED_MEDIA_TYPE:Zy,USE_PROXY:ev};var DT={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"},BT={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 tv(e){var t=DT[e.toString()];if(!t)throw new Error("Status code does not exist: "+e);return t}function rv(e){var t=BT[e];if(!t)throw new Error("Reason phrase does not exist: "+e);return t}var nv=tv,$l;(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"})($l||($l={}));var jl;(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"})(jl||(jl={}));var Ka=globalThis&&globalThis.__assign||function(){return Ka=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ka.apply(this,arguments)};const UT=Ka(Ka({},FT),{getStatusCode:rv,getStatusText:nv}),$T=Object.freeze(Object.defineProperty({__proto__:null,ACCEPTED:ry,BAD_GATEWAY:ny,BAD_REQUEST:iy,CONFLICT:oy,CONTINUE:sy,CREATED:ay,EXPECTATION_FAILED:uy,FAILED_DEPENDENCY:MT,FORBIDDEN:cy,GATEWAY_TIMEOUT:ly,GONE:fy,HTTP_VERSION_NOT_SUPPORTED:hy,IM_A_TEAPOT:dy,INSUFFICIENT_SPACE_ON_RESOURCE:py,INSUFFICIENT_STORAGE:my,INTERNAL_SERVER_ERROR:gy,LENGTH_REQUIRED:yy,LOCKED:vy,METHOD_FAILURE:Ey,METHOD_NOT_ALLOWED:_y,MOVED_PERMANENTLY:by,MOVED_TEMPORARILY:wy,MULTIPLE_CHOICES:Ty,MULTI_STATUS:Sy,NETWORK_AUTHENTICATION_REQUIRED:xy,NON_AUTHORITATIVE_INFORMATION:Ay,NOT_ACCEPTABLE:Cy,NOT_FOUND:Ry,NOT_IMPLEMENTED:Py,NOT_MODIFIED:Ny,NO_CONTENT:Oy,OK:Iy,PARTIAL_CONTENT:Ly,PAYMENT_REQUIRED:ky,PERMANENT_REDIRECT:My,PRECONDITION_FAILED:Fy,PRECONDITION_REQUIRED:Dy,PROCESSING:By,PROXY_AUTHENTICATION_REQUIRED:Uy,REQUESTED_RANGE_NOT_SATISFIABLE:Gy,REQUEST_HEADER_FIELDS_TOO_LARGE:$y,REQUEST_TIMEOUT:jy,REQUEST_TOO_LONG:Hy,REQUEST_URI_TOO_LONG:qy,RESET_CONTENT:Vy,get ReasonPhrases(){return jl},SEE_OTHER:Wy,SERVICE_UNAVAILABLE:zy,SWITCHING_PROTOCOLS:Qy,get StatusCodes(){return $l},TEMPORARY_REDIRECT:Yy,TOO_MANY_REQUESTS:Ky,UNAUTHORIZED:Xy,UNPROCESSABLE_ENTITY:Jy,UNSUPPORTED_MEDIA_TYPE:Zy,USE_PROXY:ev,default:UT,getReasonPhrase:tv,getStatusCode:rv,getStatusText:nv},Symbol.toStringTag,{value:"Module"})),jT=Js($T);var Ca={exports:{}},rs={},zc={},ns={},is={},Mn={},os={},Qc={},Fn={},Pr={},vp;function Df(){if(vp)return Pr;vp=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.ERROR_PACKET=Pr.PACKET_TYPES_REVERSE=Pr.PACKET_TYPES=void 0;const e=Object.create(null);Pr.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);Pr.PACKET_TYPES_REVERSE=t,Object.keys(e).forEach(n=>{t[e[n]]=n});const r={type:"error",data:"parser error"};return Pr.ERROR_PACKET=r,Pr}var Ep;function HT(){if(Ep)return Fn;Ep=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.encodePacket=Fn.encodePacketToBinary=void 0;const e=Df(),t=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",r=typeof ArrayBuffer=="function",n=l=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(l):l&&l.buffer instanceof ArrayBuffer,i=({type:l,data:c},d,f)=>t&&c instanceof Blob?d?f(c):o(c,f):r&&(c instanceof ArrayBuffer||n(c))?d?f(c):o(new Blob([c]),f):f(e.PACKET_TYPES[l]+(c||""));Fn.encodePacket=i;const o=(l,c)=>{const d=new FileReader;return d.onload=function(){const f=d.result.split(",")[1];c("b"+(f||""))},d.readAsDataURL(l)};function a(l){return l instanceof Uint8Array?l:l instanceof ArrayBuffer?new Uint8Array(l):new Uint8Array(l.buffer,l.byteOffset,l.byteLength)}let s;function u(l,c){if(t&&l.data instanceof Blob)return l.data.arrayBuffer().then(a).then(c);if(r&&(l.data instanceof ArrayBuffer||n(l.data)))return c(a(l.data));i(l,!1,d=>{s||(s=new TextEncoder),c(s.encode(d))})}return Fn.encodePacketToBinary=u,Fn}var ss={},Dn={},_p;function qT(){if(_p)return Dn;_p=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.decode=Dn.encode=void 0;const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let i=0;i<e.length;i++)t[e.charCodeAt(i)]=i;const r=i=>{let o=new Uint8Array(i),a,s=o.length,u="";for(a=0;a<s;a+=3)u+=e[o[a]>>2],u+=e[(o[a]&3)<<4|o[a+1]>>4],u+=e[(o[a+1]&15)<<2|o[a+2]>>6],u+=e[o[a+2]&63];return s%3===2?u=u.substring(0,u.length-1)+"=":s%3===1&&(u=u.substring(0,u.length-2)+"=="),u};Dn.encode=r;const n=i=>{let o=i.length*.75,a=i.length,s,u=0,l,c,d,f;i[i.length-1]==="="&&(o--,i[i.length-2]==="="&&o--);const h=new ArrayBuffer(o),p=new Uint8Array(h);for(s=0;s<a;s+=4)l=t[i.charCodeAt(s)],c=t[i.charCodeAt(s+1)],d=t[i.charCodeAt(s+2)],f=t[i.charCodeAt(s+3)],p[u++]=l<<2|c>>4,p[u++]=(c&15)<<4|d>>2,p[u++]=(d&3)<<6|f&63;return h};return Dn.decode=n,Dn}var bp;function GT(){if(bp)return ss;bp=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.decodePacket=void 0;const e=Df(),t=qT(),r=typeof ArrayBuffer=="function",n=(a,s)=>{if(typeof a!="string")return{type:"message",data:o(a,s)};const u=a.charAt(0);return u==="b"?{type:"message",data:i(a.substring(1),s)}:e.PACKET_TYPES_REVERSE[u]?a.length>1?{type:e.PACKET_TYPES_REVERSE[u],data:a.substring(1)}:{type:e.PACKET_TYPES_REVERSE[u]}:e.ERROR_PACKET};ss.decodePacket=n;const i=(a,s)=>{if(r){const u=(0,t.decode)(a);return o(u,s)}else return{base64:!0,data:a}},o=(a,s)=>{switch(s){case"blob":return a instanceof Blob?a:new Blob([a]);case"arraybuffer":default:return a instanceof ArrayBuffer?a:a.buffer}};return ss}var wp;function ea(){return wp||(wp=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=HT();Object.defineProperty(e,"encodePacket",{enumerable:!0,get:function(){return t.encodePacket}});const r=GT();Object.defineProperty(e,"decodePacket",{enumerable:!0,get:function(){return r.decodePacket}});const n=Df(),i=String.fromCharCode(30),o=(f,h)=>{const p=f.length,m=new Array(p);let _=0;f.forEach((S,v)=>{(0,t.encodePacket)(S,!1,b=>{m[v]=b,++_===p&&h(m.join(i))})})};e.encodePayload=o;const a=(f,h)=>{const p=f.split(i),m=[];for(let _=0;_<p.length;_++){const S=(0,r.decodePacket)(p[_],h);if(m.push(S),S.type==="error")break}return m};e.decodePayload=a;function s(){return new TransformStream({transform(f,h){(0,t.encodePacketToBinary)(f,p=>{const m=p.length;let _;if(m<126)_=new Uint8Array(1),new DataView(_.buffer).setUint8(0,m);else if(m<65536){_=new Uint8Array(3);const S=new DataView(_.buffer);S.setUint8(0,126),S.setUint16(1,m)}else{_=new Uint8Array(9);const S=new DataView(_.buffer);S.setUint8(0,127),S.setBigUint64(1,BigInt(m))}f.data&&typeof f.data!="string"&&(_[0]|=128),h.enqueue(_),h.enqueue(p)})}})}e.createPacketEncoderStream=s;let u;function l(f){return f.reduce((h,p)=>h+p.length,0)}function c(f,h){if(f[0].length===h)return f.shift();const p=new Uint8Array(h);let m=0;for(let _=0;_<h;_++)p[_]=f[0][m++],m===f[0].length&&(f.shift(),m=0);return f.length&&m<f[0].length&&(f[0]=f[0].slice(m)),p}function d(f,h){u||(u=new TextDecoder);const p=[];let m=0,_=-1,S=!1;return new TransformStream({transform(v,b){for(p.push(v);;){if(m===0){if(l(p)<1)break;const T=c(p,1);S=(T[0]&128)===128,_=T[0]&127,_<126?m=3:_===126?m=1:m=2}else if(m===1){if(l(p)<2)break;const T=c(p,2);_=new DataView(T.buffer,T.byteOffset,T.length).getUint16(0),m=3}else if(m===2){if(l(p)<8)break;const T=c(p,8),w=new DataView(T.buffer,T.byteOffset,T.length),P=w.getUint32(0);if(P>Math.pow(2,53-32)-1){b.enqueue(n.ERROR_PACKET);break}_=P*Math.pow(2,32)+w.getUint32(4),m=3}else{if(l(p)<_)break;const T=c(p,_);b.enqueue((0,r.decodePacket)(S?T:u.decode(T),h)),m=0}if(_===0||_>f){b.enqueue(n.ERROR_PACKET);break}}}})}e.createPacketDecoderStream=d,e.protocol=4}(Qc)),Qc}function wt(e){if(e)return VT(e)}function VT(e){for(var t in wt.prototype)e[t]=wt.prototype[t];return e}wt.prototype.on=wt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};wt.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};wt.prototype.off=wt.prototype.removeListener=wt.prototype.removeAllListeners=wt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,i=0;i<r.length;i++)if(n=r[i],n===t||n.fn===t){r.splice(i,1);break}return r.length===0&&delete this._callbacks["$"+e],this};wt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n)r[n].apply(this,t)}return this};wt.prototype.emitReserved=wt.prototype.emit;wt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};wt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const WT=Object.freeze(Object.defineProperty({__proto__:null,Emitter:wt},Symbol.toStringTag,{value:"Module"})),ho=Js(WT);var Nr={},as={},Sp;function gu(){return Sp||(Sp=1,Object.defineProperty(as,"__esModule",{value:!0}),as.globalThisShim=void 0,as.globalThisShim=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())()),as}var Tp;function ta(){if(Tp)return Nr;Tp=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.byteLength=Nr.installTimerFunctions=Nr.pick=void 0;const e=gu();function t(u,...l){return l.reduce((c,d)=>(u.hasOwnProperty(d)&&(c[d]=u[d]),c),{})}Nr.pick=t;const r=e.globalThisShim.setTimeout,n=e.globalThisShim.clearTimeout;function i(u,l){l.useNativeTimers?(u.setTimeoutFn=r.bind(e.globalThisShim),u.clearTimeoutFn=n.bind(e.globalThisShim)):(u.setTimeoutFn=e.globalThisShim.setTimeout.bind(e.globalThisShim),u.clearTimeoutFn=e.globalThisShim.clearTimeout.bind(e.globalThisShim))}Nr.installTimerFunctions=i;const o=1.33;function a(u){return typeof u=="string"?s(u):Math.ceil((u.byteLength||u.size)*o)}Nr.byteLength=a;function s(u){let l=0,c=0;for(let d=0,f=u.length;d<f;d++)l=u.charCodeAt(d),l<128?c+=1:l<2048?c+=2:l<55296||l>=57344?c+=3:(d++,c+=4);return c}return Nr}var Ra={exports:{}},Yc,xp;function zT(){if(xp)return Yc;xp=1;var e=1e3,t=e*60,r=t*60,n=r*24,i=n*7,o=n*365.25;Yc=function(c,d){d=d||{};var f=typeof c;if(f==="string"&&c.length>0)return a(c);if(f==="number"&&isFinite(c))return d.long?u(c):s(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function a(c){if(c=String(c),!(c.length>100)){var d=/^(-?(?:\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(d){var f=parseFloat(d[1]),h=(d[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return f*o;case"weeks":case"week":case"w":return f*i;case"days":case"day":case"d":return f*n;case"hours":case"hour":case"hrs":case"hr":case"h":return f*r;case"minutes":case"minute":case"mins":case"min":case"m":return f*t;case"seconds":case"second":case"secs":case"sec":case"s":return f*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}function s(c){var d=Math.abs(c);return d>=n?Math.round(c/n)+"d":d>=r?Math.round(c/r)+"h":d>=t?Math.round(c/t)+"m":d>=e?Math.round(c/e)+"s":c+"ms"}function u(c){var d=Math.abs(c);return d>=n?l(c,d,n,"day"):d>=r?l(c,d,r,"hour"):d>=t?l(c,d,t,"minute"):d>=e?l(c,d,e,"second"):c+" ms"}function l(c,d,f,h){var p=d>=f*1.5;return Math.round(c/f)+" "+h+(p?"s":"")}return Yc}var Kc,Op;function QT(){if(Op)return Kc;Op=1;function e(t){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=o,n.enabled=s,n.humanize=zT(),n.destroy=c,Object.keys(t).forEach(d=>{n[d]=t[d]}),n.names=[],n.skips=[],n.formatters={};function r(d){let f=0;for(let h=0;h<d.length;h++)f=(f<<5)-f+d.charCodeAt(h),f|=0;return n.colors[Math.abs(f)%n.colors.length]}n.selectColor=r;function n(d){let f,h=null,p,m;function _(...S){if(!_.enabled)return;const v=_,b=Number(new Date),T=b-(f||b);v.diff=T,v.prev=f,v.curr=b,f=b,S[0]=n.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let w=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(R,L)=>{if(R==="%%")return"%";w++;const $=n.formatters[L];if(typeof $=="function"){const q=S[w];R=$.call(v,q),S.splice(w,1),w--}return R}),n.formatArgs.call(v,S),(v.log||n.log).apply(v,S)}return _.namespace=d,_.useColors=n.useColors(),_.color=n.selectColor(d),_.extend=i,_.destroy=n.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(p!==n.namespaces&&(p=n.namespaces,m=n.enabled(d)),m),set:S=>{h=S}}),typeof n.init=="function"&&n.init(_),_}function i(d,f){const h=n(this.namespace+(typeof f>"u"?":":f)+d);return h.log=this.log,h}function o(d){n.save(d),n.namespaces=d,n.names=[],n.skips=[];let f;const h=(typeof d=="string"?d:"").split(/[\s,]+/),p=h.length;for(f=0;f<p;f++)h[f]&&(d=h[f].replace(/\*/g,".*?"),d[0]==="-"?n.skips.push(new RegExp("^"+d.slice(1)+"$")):n.names.push(new RegExp("^"+d+"$")))}function a(){const d=[...n.names.map(u),...n.skips.map(u).map(f=>"-"+f)].join(",");return n.enable(""),d}function s(d){if(d[d.length-1]==="*")return!0;let f,h;for(f=0,h=n.skips.length;f<h;f++)if(n.skips[f].test(d))return!1;for(f=0,h=n.names.length;f<h;f++)if(n.names[f].test(d))return!0;return!1}function u(d){return d.toString().substring(2,d.toString().length-2).replace(/\.\*\?$/,"*")}function l(d){return d instanceof Error?d.stack||d.message:d}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 n.enable(n.load()),n}return Kc=e,Kc}var Ap;function wr(){return Ap||(Ap=1,function(e,t){t.formatArgs=n,t.save=i,t.load=o,t.useColors=r,t.storage=a(),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 r(){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 n(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 l="color: "+this.color;u.splice(1,0,l,"color: inherit");let c=0,d=0;u[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(c++,f==="%c"&&(d=c))}),u.splice(d,0,l)}t.log=console.debug||console.log||(()=>{});function i(u){try{u?t.storage.setItem("debug",u):t.storage.removeItem("debug")}catch{}}function o(){let u;try{u=t.storage.getItem("debug")}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=process.env.DEBUG),u}function a(){try{return localStorage}catch{}}e.exports=QT()(t);const{formatters:s}=e.exports;s.j=function(u){try{return JSON.stringify(u)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}}(Ra,Ra.exports)),Ra.exports}var Bn={},Cp;function iv(){if(Cp)return Bn;Cp=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.decode=Bn.encode=void 0;function e(r){let n="";for(let i in r)r.hasOwnProperty(i)&&(n.length&&(n+="&"),n+=encodeURIComponent(i)+"="+encodeURIComponent(r[i]));return n}Bn.encode=e;function t(r){let n={},i=r.split("&");for(let o=0,a=i.length;o<a;o++){let s=i[o].split("=");n[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return n}return Bn.decode=t,Bn}var Rp;function yu(){if(Rp)return os;Rp=1;var e=he&&he.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(os,"__esModule",{value:!0}),os.Transport=void 0;const t=ea(),r=ho,n=ta(),i=e(wr()),o=iv(),a=(0,i.default)("engine.io-client:transport");class s extends Error{constructor(c,d,f){super(c),this.description=d,this.context=f,this.type="TransportError"}}class u extends r.Emitter{constructor(c){super(),this.writable=!1,(0,n.installTimerFunctions)(this,c),this.opts=c,this.query=c.query,this.socket=c.socket}onError(c,d,f){return super.emitReserved("error",new s(c,d,f)),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):a("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(c){const d=(0,t.decodePacket)(c,this.socket.binaryType);this.onPacket(d)}onPacket(c){super.emitReserved("packet",c)}onClose(c){this.readyState="closed",super.emitReserved("close",c)}pause(c){}createUri(c,d={}){return c+"://"+this._hostname()+this._port()+this.opts.path+this._query(d)}_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 d=(0,o.encode)(c);return d.length?"?"+d:""}}return os.Transport=u,os}var Ir={},Pp;function ov(){if(Pp)return Ir;Pp=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.yeast=Ir.decode=Ir.encode=void 0;const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),t=64,r={};let n=0,i=0,o;function a(l){let c="";do c=e[l%t]+c,l=Math.floor(l/t);while(l>0);return c}Ir.encode=a;function s(l){let c=0;for(i=0;i<l.length;i++)c=c*t+r[l.charAt(i)];return c}Ir.decode=s;function u(){const l=a(+new Date);return l!==o?(n=0,o=l):l+"."+a(n++)}for(Ir.yeast=u;i<t;i++)r[e[i]]=i;return Ir}var Un={},us={},Np;function YT(){if(Np)return us;Np=1,Object.defineProperty(us,"__esModule",{value:!0}),us.hasCORS=void 0;let e=!1;try{e=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}return us.hasCORS=e,us}var Ip;function KT(){if(Ip)return Un;Ip=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.createCookieJar=Un.XHR=void 0;const e=YT(),t=gu();function r(i){const o=i.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!o||e.hasCORS))return new XMLHttpRequest}catch{}if(!o)try{return new t.globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}Un.XHR=r;function n(){}return Un.createCookieJar=n,Un}var Lp;function XT(){if(Lp)return Mn;Lp=1;var e=he&&he.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.Request=Mn.Polling=void 0;const t=yu(),r=e(wr()),n=ov(),i=ea(),o=KT(),a=ho,s=ta(),u=gu(),l=(0,r.default)("engine.io-client:polling");function c(){}const d=function(){return new o.XHR({xdomain:!1}).responseType!=null}();class f extends t.Transport{constructor(_){if(super(_),this.polling=!1,typeof location<"u"){const v=location.protocol==="https:";let b=location.port;b||(b=v?"443":"80"),this.xd=typeof location<"u"&&_.hostname!==location.hostname||b!==_.port}const S=_&&_.forceBase64;this.supportsBinary=d&&!S,this.opts.withCredentials&&(this.cookieJar=(0,o.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(_){this.readyState="pausing";const S=()=>{l("paused"),this.readyState="paused",_()};if(this.polling||!this.writable){let v=0;this.polling&&(l("we are currently polling - waiting to pause"),v++,this.once("pollComplete",function(){l("pre-pause polling complete"),--v||S()})),this.writable||(l("we are currently writing - waiting to pause"),v++,this.once("drain",function(){l("pre-pause writing complete"),--v||S()}))}else S()}poll(){l("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(_){l("polling got data %s",_);const S=v=>{if(this.readyState==="opening"&&v.type==="open"&&this.onOpen(),v.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(v)};(0,i.decodePayload)(_,this.socket.binaryType).forEach(S),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"?this.poll():l('ignoring poll - transport state "%s"',this.readyState))}doClose(){const _=()=>{l("writing close packet"),this.write([{type:"close"}])};this.readyState==="open"?(l("transport open - closing"),_()):(l("transport not open - deferring close"),this.once("open",_))}write(_){this.writable=!1,(0,i.encodePayload)(_,S=>{this.doWrite(S,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const _=this.opts.secure?"https":"http",S=this.query||{};return this.opts.timestampRequests!==!1&&(S[this.opts.timestampParam]=(0,n.yeast)()),!this.supportsBinary&&!S.sid&&(S.b64=1),this.createUri(_,S)}request(_={}){return Object.assign(_,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new h(this.uri(),_)}doWrite(_,S){const v=this.request({method:"POST",data:_});v.on("success",S),v.on("error",(b,T)=>{this.onError("xhr post error",b,T)})}doPoll(){l("xhr poll");const _=this.request();_.on("data",this.onData.bind(this)),_.on("error",(S,v)=>{this.onError("xhr poll error",S,v)}),this.pollXhr=_}}Mn.Polling=f;class h extends a.Emitter{constructor(_,S){super(),(0,s.installTimerFunctions)(this,S),this.opts=S,this.method=S.method||"GET",this.uri=_,this.data=S.data!==void 0?S.data:null,this.create()}create(){var _;const S=(0,s.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");S.xdomain=!!this.opts.xd;const v=this.xhr=new o.XHR(S);try{l("xhr open %s: %s",this.method,this.uri),v.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){v.setDisableHeaderCheck&&v.setDisableHeaderCheck(!0);for(let b in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(b)&&v.setRequestHeader(b,this.opts.extraHeaders[b])}}catch{}if(this.method==="POST")try{v.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{v.setRequestHeader("Accept","*/*")}catch{}(_=this.opts.cookieJar)===null||_===void 0||_.addCookies(v),"withCredentials"in v&&(v.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(v.timeout=this.opts.requestTimeout),v.onreadystatechange=()=>{var b;v.readyState===3&&((b=this.opts.cookieJar)===null||b===void 0||b.parseCookies(v)),v.readyState===4&&(v.status===200||v.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof v.status=="number"?v.status:0)},0))},l("xhr data %s",this.data),v.send(this.data)}catch(b){this.setTimeoutFn(()=>{this.onError(b)},0);return}typeof document<"u"&&(this.index=h.requestsCount++,h.requests[this.index]=this)}onError(_){this.emitReserved("error",_,this.xhr),this.cleanup(!0)}cleanup(_){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=c,_)try{this.xhr.abort()}catch{}typeof document<"u"&&delete h.requests[this.index],this.xhr=null}}onLoad(){const _=this.xhr.responseText;_!==null&&(this.emitReserved("data",_),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(Mn.Request=h,h.requestsCount=0,h.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 h.requests)h.requests.hasOwnProperty(m)&&h.requests[m].abort()}return Mn}var cs={},Zt={},kp;function vu(){if(kp)return Zt;kp=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.defaultBinaryType=Zt.usingBrowserWebSocket=Zt.WebSocket=Zt.nextTick=void 0;const e=gu();return Zt.nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,n)=>n(r,0))(),Zt.WebSocket=e.globalThisShim.WebSocket||e.globalThisShim.MozWebSocket,Zt.usingBrowserWebSocket=!0,Zt.defaultBinaryType="arraybuffer",Zt}var Mp;function JT(){if(Mp)return cs;Mp=1;var e=he&&he.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(cs,"__esModule",{value:!0}),cs.WS=void 0;const t=yu(),r=ov(),n=ta(),i=vu(),o=e(wr()),a=ea(),s=(0,o.default)("engine.io-client:websocket"),u=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class l extends t.Transport{constructor(d){super(d),this.supportsBinary=!d.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const d=this.uri(),f=this.opts.protocols,h=u?{}:(0,n.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(h.headers=this.opts.extraHeaders);try{this.ws=i.usingBrowserWebSocket&&!u?f?new i.WebSocket(d,f):new i.WebSocket(d):new i.WebSocket(d,f,h)}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=d=>this.onClose({description:"websocket connection closed",context:d}),this.ws.onmessage=d=>this.onData(d.data),this.ws.onerror=d=>this.onError("websocket error",d)}write(d){this.writable=!1;for(let f=0;f<d.length;f++){const h=d[f],p=f===d.length-1;(0,a.encodePacket)(h,this.supportsBinary,m=>{const _={};i.usingBrowserWebSocket||(h.options&&(_.compress=h.options.compress),this.opts.perMessageDeflate&&(typeof m=="string"?Buffer.byteLength(m):m.length)<this.opts.perMessageDeflate.threshold&&(_.compress=!1));try{i.usingBrowserWebSocket?this.ws.send(m):this.ws.send(m,_)}catch{s("websocket closed before onclose event")}p&&(0,i.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const d=this.opts.secure?"wss":"ws",f=this.query||{};return this.opts.timestampRequests&&(f[this.opts.timestampParam]=(0,r.yeast)()),this.supportsBinary||(f.b64=1),this.createUri(d,f)}check(){return!!i.WebSocket}}return cs.WS=l,cs}var ls={},Fp;function ZT(){if(Fp)return ls;Fp=1;var e=he&&he.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(ls,"__esModule",{value:!0}),ls.WT=void 0;const t=yu(),r=vu(),n=ea(),o=(0,e(wr()).default)("engine.io-client:webtransport");class a 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(()=>{o("transport closed gracefully"),this.onClose()}).catch(u=>{o("transport closed due to %s",u),this.onError("webtransport error",u)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(u=>{const l=(0,n.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),c=u.readable.pipeThrough(l).getReader(),d=(0,n.createPacketEncoderStream)();d.readable.pipeTo(u.writable),this.writer=d.writable.getWriter();const f=()=>{c.read().then(({done:p,value:m})=>{if(p){o("session is closed");return}o("received chunk: %o",m),this.onPacket(m),f()}).catch(p=>{o("an error occurred while reading: %s",p)})};f();const h={type:"open"};this.query.sid&&(h.data=`{"sid":"${this.query.sid}"}`),this.writer.write(h).then(()=>this.onOpen())})}))}write(u){this.writable=!1;for(let l=0;l<u.length;l++){const c=u[l],d=l===u.length-1;this.writer.write(c).then(()=>{d&&(0,r.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var u;(u=this.transport)===null||u===void 0||u.close()}}return ls.WT=a,ls}var Dp;function sv(){if(Dp)return is;Dp=1,Object.defineProperty(is,"__esModule",{value:!0}),is.transports=void 0;const e=XT(),t=JT(),r=ZT();return is.transports={websocket:t.WS,webtransport:r.WT,polling:e.Polling},is}var fs={},Bp;function av(){if(Bp)return fs;Bp=1,Object.defineProperty(fs,"__esModule",{value:!0}),fs.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 r(o){const a=o,s=o.indexOf("["),u=o.indexOf("]");s!=-1&&u!=-1&&(o=o.substring(0,s)+o.substring(s,u).replace(/:/g,";")+o.substring(u,o.length));let l=e.exec(o||""),c={},d=14;for(;d--;)c[t[d]]=l[d]||"";return s!=-1&&u!=-1&&(c.source=a,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=n(c,c.path),c.queryKey=i(c,c.query),c}fs.parse=r;function n(o,a){const s=/\/{2,9}/g,u=a.replace(s,"/").split("/");return(a.slice(0,1)=="/"||a.length===0)&&u.splice(0,1),a.slice(-1)=="/"&&u.splice(u.length-1,1),u}function i(o,a){const s={};return a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(u,l,c){l&&(s[l]=c)}),s}return fs}var Up;function ex(){if(Up)return ns;Up=1;var e=he&&he.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(ns,"__esModule",{value:!0}),ns.Socket=void 0;const t=sv(),r=ta(),n=iv(),i=av(),o=e(wr()),a=ho,s=ea(),u=vu(),l=(0,o.default)("engine.io-client:socket");class c extends a.Emitter{constructor(f,h={}){super(),this.binaryType=u.defaultBinaryType,this.writeBuffer=[],f&&typeof f=="object"&&(h=f,f=null),f?(f=(0,i.parse)(f),h.hostname=f.host,h.secure=f.protocol==="https"||f.protocol==="wss",h.port=f.port,f.query&&(h.query=f.query)):h.host&&(h.hostname=(0,i.parse)(h.host).host),(0,r.installTimerFunctions)(this,h),this.secure=h.secure!=null?h.secure:typeof location<"u"&&location.protocol==="https:",h.hostname&&!h.port&&(h.port=this.secure?"443":"80"),this.hostname=h.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=h.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=h.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},h),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=(0,n.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(f){l('creating transport "%s"',f);const h=Object.assign({},this.opts.query);h.EIO=s.protocol,h.transport=f,this.id&&(h.sid=this.id);const p=Object.assign({},this.opts,{query:h,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[f]);return l("options: %j",p),new t.transports[f](p)}open(){let f;if(this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)f="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else f=this.transports[0];this.readyState="opening";try{f=this.createTransport(f)}catch(h){l("error while creating transport: %s",h),this.transports.shift(),this.open();return}f.open(),this.setTransport(f)}setTransport(f){l("setting transport %s",f.name),this.transport&&(l("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=f,f.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",h=>this.onClose("transport close",h))}probe(f){l('probing transport "%s"',f);let h=this.createTransport(f),p=!1;c.priorWebsocketSuccess=!1;const m=()=>{p||(l('probe transport "%s" opened',f),h.send([{type:"ping",data:"probe"}]),h.once("packet",P=>{if(!p)if(P.type==="pong"&&P.data==="probe"){if(l('probe transport "%s" pong',f),this.upgrading=!0,this.emitReserved("upgrading",h),!h)return;c.priorWebsocketSuccess=h.name==="websocket",l('pausing current transport "%s"',this.transport.name),this.transport.pause(()=>{p||this.readyState!=="closed"&&(l("changing transport and sending upgrade packet"),w(),this.setTransport(h),h.send([{type:"upgrade"}]),this.emitReserved("upgrade",h),h=null,this.upgrading=!1,this.flush())})}else{l('probe transport "%s" failed',f);const R=new Error("probe error");R.transport=h.name,this.emitReserved("upgradeError",R)}}))};function _(){p||(p=!0,w(),h.close(),h=null)}const S=P=>{const R=new Error("probe error: "+P);R.transport=h.name,_(),l('probe transport "%s" failed because of error: %s',f,P),this.emitReserved("upgradeError",R)};function v(){S("transport closed")}function b(){S("socket closed")}function T(P){h&&P.name!==h.name&&(l('"%s" works - aborting "%s"',P.name,h.name),_())}const w=()=>{h.removeListener("open",m),h.removeListener("error",S),h.removeListener("close",v),this.off("close",b),this.off("upgrading",T)};h.once("open",m),h.once("error",S),h.once("close",v),this.once("close",b),this.once("upgrading",T),this.upgrades.indexOf("webtransport")!==-1&&f!=="webtransport"?this.setTimeoutFn(()=>{p||h.open()},200):h.open()}onOpen(){if(l("socket open"),this.readyState="open",c.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){l("starting upgrade probes");let f=0;const h=this.upgrades.length;for(;f<h;f++)this.probe(this.upgrades[f])}}onPacket(f){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(l('socket receive: type "%s", data "%s"',f.type,f.data),this.emitReserved("packet",f),this.emitReserved("heartbeat"),this.resetPingTimeout(),f.type){case"open":this.onHandshake(JSON.parse(f.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const h=new Error("server error");h.code=f.data,this.onError(h);break;case"message":this.emitReserved("data",f.data),this.emitReserved("message",f.data);break}else l('packet received with socket readyState "%s"',this.readyState)}onHandshake(f){this.emitReserved("handshake",f),this.id=f.sid,this.transport.query.sid=f.sid,this.upgrades=this.filterUpgrades(f.upgrades),this.pingInterval=f.pingInterval,this.pingTimeout=f.pingTimeout,this.maxPayload=f.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 f=this.getWritablePackets();l("flushing %d packets in socket",f.length),this.transport.send(f),this.prevBufferLen=f.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let h=1;for(let p=0;p<this.writeBuffer.length;p++){const m=this.writeBuffer[p].data;if(m&&(h+=(0,r.byteLength)(m)),p>0&&h>this.maxPayload)return l("only send %d out of %d packets",p,this.writeBuffer.length),this.writeBuffer.slice(0,p);h+=2}return l("payload size is %d (max: %d)",h,this.maxPayload),this.writeBuffer}write(f,h,p){return this.sendPacket("message",f,h,p),this}send(f,h,p){return this.sendPacket("message",f,h,p),this}sendPacket(f,h,p,m){if(typeof h=="function"&&(m=h,h=void 0),typeof p=="function"&&(m=p,p=null),this.readyState==="closing"||this.readyState==="closed")return;p=p||{},p.compress=p.compress!==!1;const _={type:f,data:h,options:p};this.emitReserved("packetCreate",_),this.writeBuffer.push(_),m&&this.once("flush",m),this.flush()}close(){const f=()=>{this.onClose("forced close"),l("socket closing - telling transport to close"),this.transport.close()},h=()=>{this.off("upgrade",h),this.off("upgradeError",h),f()},p=()=>{this.once("upgrade",h),this.once("upgradeError",h)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?p():f()}):this.upgrading?p():f()),this}onError(f){l("socket error %j",f),c.priorWebsocketSuccess=!1,this.emitReserved("error",f),this.onClose("transport error",f)}onClose(f,h){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(l('socket close with reason: "%s"',f),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",f,h),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(f){const h=[];let p=0;const m=f.length;for(;p<m;p++)~this.transports.indexOf(f[p])&&h.push(f[p]);return h}}return ns.Socket=c,c.protocol=s.protocol,ns}var $p;function uv(){return $p||($p=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=ex();Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return t.Socket}}),e.protocol=t.Socket.protocol;var r=yu();Object.defineProperty(e,"Transport",{enumerable:!0,get:function(){return r.Transport}});var n=sv();Object.defineProperty(e,"transports",{enumerable:!0,get:function(){return n.transports}});var i=ta();Object.defineProperty(e,"installTimerFunctions",{enumerable:!0,get:function(){return i.installTimerFunctions}});var o=av();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return o.parse}});var a=vu();Object.defineProperty(e,"nextTick",{enumerable:!0,get:function(){return a.nextTick}})}(zc)),zc}var jp;function tx(){if(jp)return rs;jp=1;var e=he&&he.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(rs,"__esModule",{value:!0}),rs.url=void 0;const t=uv(),n=e(wr()).default("socket.io-client:url");function i(o,a="",s){let u=o;s=s||typeof location<"u"&&location,o==null&&(o=s.protocol+"//"+s.host),typeof o=="string"&&(o.charAt(0)==="/"&&(o.charAt(1)==="/"?o=s.protocol+o:o=s.host+o),/^(https?|wss?):\/\//.test(o)||(n("protocol-less url %s",o),typeof s<"u"?o=s.protocol+"//"+o:o="https://"+o),n("parse %s",o),u=t.parse(o)),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+a,u.href=u.protocol+"://"+c+(s&&s.port===u.port?"":":"+u.port),u}return rs.url=i,rs}var hs={},ds={},Xc={},$n={},jn={},Hp;function cv(){if(Hp)return jn;Hp=1,Object.defineProperty(jn,"__esModule",{value:!0}),jn.hasBinary=jn.isBinary=void 0;const e=typeof ArrayBuffer=="function",t=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,r=Object.prototype.toString,n=typeof Blob=="function"||typeof Blob<"u"&&r.call(Blob)==="[object BlobConstructor]",i=typeof File=="function"||typeof File<"u"&&r.call(File)==="[object FileConstructor]";function o(s){return e&&(s instanceof ArrayBuffer||t(s))||n&&s instanceof Blob||i&&s instanceof File}jn.isBinary=o;function a(s,u){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let l=0,c=s.length;l<c;l++)if(a(s[l]))return!0;return!1}if(o(s))return!0;if(s.toJSON&&typeof s.toJSON=="function"&&arguments.length===1)return a(s.toJSON(),!0);for(const l in s)if(Object.prototype.hasOwnProperty.call(s,l)&&a(s[l]))return!0;return!1}return jn.hasBinary=a,jn}var qp;function rx(){if(qp)return $n;qp=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.reconstructPacket=$n.deconstructPacket=void 0;const e=cv();function t(o){const a=[],s=o.data,u=o;return u.data=r(s,a),u.attachments=a.length,{packet:u,buffers:a}}$n.deconstructPacket=t;function r(o,a){if(!o)return o;if((0,e.isBinary)(o)){const s={_placeholder:!0,num:a.length};return a.push(o),s}else if(Array.isArray(o)){const s=new Array(o.length);for(let u=0;u<o.length;u++)s[u]=r(o[u],a);return s}else if(typeof o=="object"&&!(o instanceof Date)){const s={};for(const u in o)Object.prototype.hasOwnProperty.call(o,u)&&(s[u]=r(o[u],a));return s}return o}function n(o,a){return o.data=i(o.data,a),delete o.attachments,o}$n.reconstructPacket=n;function i(o,a){if(!o)return o;if(o&&o._placeholder===!0){if(typeof o.num=="number"&&o.num>=0&&o.num<a.length)return a[o.num];throw new Error("illegal attachments")}else if(Array.isArray(o))for(let s=0;s<o.length;s++)o[s]=i(o[s],a);else if(typeof o=="object")for(const s in o)Object.prototype.hasOwnProperty.call(o,s)&&(o[s]=i(o[s],a));return o}return $n}var Gp;function Bf(){return Gp||(Gp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.PacketType=e.protocol=void 0;const t=ho,r=rx(),n=cv(),o=(0,wr().default)("socket.io-parser"),a=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];e.protocol=5;var s;(function(f){f[f.CONNECT=0]="CONNECT",f[f.DISCONNECT=1]="DISCONNECT",f[f.EVENT=2]="EVENT",f[f.ACK=3]="ACK",f[f.CONNECT_ERROR=4]="CONNECT_ERROR",f[f.BINARY_EVENT=5]="BINARY_EVENT",f[f.BINARY_ACK=6]="BINARY_ACK"})(s=e.PacketType||(e.PacketType={}));class u{constructor(h){this.replacer=h}encode(h){return o("encoding packet %j",h),(h.type===s.EVENT||h.type===s.ACK)&&(0,n.hasBinary)(h)?this.encodeAsBinary({type:h.type===s.EVENT?s.BINARY_EVENT:s.BINARY_ACK,nsp:h.nsp,data:h.data,id:h.id}):[this.encodeAsString(h)]}encodeAsString(h){let p=""+h.type;return(h.type===s.BINARY_EVENT||h.type===s.BINARY_ACK)&&(p+=h.attachments+"-"),h.nsp&&h.nsp!=="/"&&(p+=h.nsp+","),h.id!=null&&(p+=h.id),h.data!=null&&(p+=JSON.stringify(h.data,this.replacer)),o("encoded %j as %s",h,p),p}encodeAsBinary(h){const p=(0,r.deconstructPacket)(h),m=this.encodeAsString(p.packet),_=p.buffers;return _.unshift(m),_}}e.Encoder=u;function l(f){return Object.prototype.toString.call(f)==="[object Object]"}class c extends t.Emitter{constructor(h){super(),this.reviver=h}add(h){let p;if(typeof h=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");p=this.decodeString(h);const m=p.type===s.BINARY_EVENT;m||p.type===s.BINARY_ACK?(p.type=m?s.EVENT:s.ACK,this.reconstructor=new d(p),p.attachments===0&&super.emitReserved("decoded",p)):super.emitReserved("decoded",p)}else if((0,n.isBinary)(h)||h.base64)if(this.reconstructor)p=this.reconstructor.takeBinaryData(h),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: "+h)}decodeString(h){let p=0;const m={type:Number(h.charAt(0))};if(s[m.type]===void 0)throw new Error("unknown packet type "+m.type);if(m.type===s.BINARY_EVENT||m.type===s.BINARY_ACK){const S=p+1;for(;h.charAt(++p)!=="-"&&p!=h.length;);const v=h.substring(S,p);if(v!=Number(v)||h.charAt(p)!=="-")throw new Error("Illegal attachments");m.attachments=Number(v)}if(h.charAt(p+1)==="/"){const S=p+1;for(;++p&&!(h.charAt(p)===","||p===h.length););m.nsp=h.substring(S,p)}else m.nsp="/";const _=h.charAt(p+1);if(_!==""&&Number(_)==_){const S=p+1;for(;++p;){const v=h.charAt(p);if(v==null||Number(v)!=v){--p;break}if(p===h.length)break}m.id=Number(h.substring(S,p+1))}if(h.charAt(++p)){const S=this.tryParse(h.substr(p));if(c.isPayloadValid(m.type,S))m.data=S;else throw new Error("invalid payload")}return o("decoded %s as %j",h,m),m}tryParse(h){try{return JSON.parse(h,this.reviver)}catch{return!1}}static isPayloadValid(h,p){switch(h){case s.CONNECT:return l(p);case s.DISCONNECT:return p===void 0;case s.CONNECT_ERROR:return typeof p=="string"||l(p);case s.EVENT:case s.BINARY_EVENT:return Array.isArray(p)&&(typeof p[0]=="number"||typeof p[0]=="string"&&a.indexOf(p[0])===-1);case s.ACK:case s.BINARY_ACK:return Array.isArray(p)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}e.Decoder=c;class d{constructor(h){this.packet=h,this.buffers=[],this.reconPack=h}takeBinaryData(h){if(this.buffers.push(h),this.buffers.length===this.reconPack.attachments){const p=(0,r.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),p}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}}(Xc)),Xc}var ps={},Vp;function lv(){if(Vp)return ps;Vp=1,Object.defineProperty(ps,"__esModule",{value:!0}),ps.on=void 0;function e(t,r,n){return t.on(r,n),function(){t.off(r,n)}}return ps.on=e,ps}var Wp;function fv(){if(Wp)return ds;Wp=1;var e=he&&he.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(ds,"__esModule",{value:!0}),ds.Socket=void 0;const t=Bf(),r=lv(),n=ho,o=e(wr()).default("socket.io-client:socket"),a=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class s extends n.Emitter{constructor(l,c,d){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=l,this.nsp=c,d&&d.auth&&(this.auth=d.auth),this._opts=Object.assign({},d),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const l=this.io;this.subs=[r.on(l,"open",this.onopen.bind(this)),r.on(l,"packet",this.onpacket.bind(this)),r.on(l,"error",this.onerror.bind(this)),r.on(l,"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(...l){return l.unshift("message"),this.emit.apply(this,l),this}emit(l,...c){if(a.hasOwnProperty(l))throw new Error('"'+l.toString()+'" is a reserved event name');if(c.unshift(l),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(c),this;const d={type:t.PacketType.EVENT,data:c};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof c[c.length-1]=="function"){const p=this.ids++;o("emitting packet with ack id %d",p);const m=c.pop();this._registerAckCallback(p,m),d.id=p}const f=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!f||!this.connected)?o("discard packet as the transport is not currently writable"):this.connected?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d),this.flags={},this}_registerAckCallback(l,c){var d;const f=(d=this.flags.timeout)!==null&&d!==void 0?d:this._opts.ackTimeout;if(f===void 0){this.acks[l]=c;return}const h=this.io.setTimeoutFn(()=>{delete this.acks[l];for(let p=0;p<this.sendBuffer.length;p++)this.sendBuffer[p].id===l&&(o("removing packet with ack id %d from the buffer",l),this.sendBuffer.splice(p,1));o("event with ack id %d has timed out after %d ms",l,f),c.call(this,new Error("operation has timed out"))},f);this.acks[l]=(...p)=>{this.io.clearTimeoutFn(h),c.apply(this,[null,...p])}}emitWithAck(l,...c){const d=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((f,h)=>{c.push((p,m)=>d?p?h(p):f(m):f(p)),this.emit(l,...c)})}_addToQueue(l){let c;typeof l[l.length-1]=="function"&&(c=l.pop());const d={id:this._queueSeq++,tryCount:0,pending:!1,args:l,flags:Object.assign({fromQueue:!0},this.flags)};l.push((f,...h)=>d!==this._queue[0]?void 0:(f!==null?d.tryCount>this._opts.retries&&(o("packet [%d] is discarded after %d tries",d.id,d.tryCount),this._queue.shift(),c&&c(f)):(o("packet [%d] was successfully sent",d.id),this._queue.shift(),c&&c(null,...h)),d.pending=!1,this._drainQueue())),this._queue.push(d),this._drainQueue()}_drainQueue(l=!1){if(o("draining queue"),!this.connected||this._queue.length===0)return;const c=this._queue[0];if(c.pending&&!l){o("packet [%d] has already been sent and is waiting for an ack",c.id);return}c.pending=!0,c.tryCount++,o("sending packet [%d] (try n°%d)",c.id,c.tryCount),this.flags=c.flags,this.emit.apply(this,c.args)}packet(l){l.nsp=this.nsp,this.io._packet(l)}onopen(){o("transport is open - connecting"),typeof this.auth=="function"?this.auth(l=>{this._sendConnectPacket(l)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(l){this.packet({type:t.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},l):l})}onerror(l){this.connected||this.emitReserved("connect_error",l)}onclose(l,c){o("close (%s)",l),this.connected=!1,delete this.id,this.emitReserved("disconnect",l,c)}onpacket(l){if(l.nsp===this.nsp)switch(l.type){case t.PacketType.CONNECT:l.data&&l.data.sid?this.onconnect(l.data.sid,l.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(l);break;case t.PacketType.ACK:case t.PacketType.BINARY_ACK:this.onack(l);break;case t.PacketType.DISCONNECT:this.ondisconnect();break;case t.PacketType.CONNECT_ERROR:this.destroy();const d=new Error(l.data.message);d.data=l.data.data,this.emitReserved("connect_error",d);break}}onevent(l){const c=l.data||[];o("emitting event %j",c),l.id!=null&&(o("attaching ack callback to event"),c.push(this.ack(l.id))),this.connected?this.emitEvent(c):this.receiveBuffer.push(Object.freeze(c))}emitEvent(l){if(this._anyListeners&&this._anyListeners.length){const c=this._anyListeners.slice();for(const d of c)d.apply(this,l)}super.emit.apply(this,l),this._pid&&l.length&&typeof l[l.length-1]=="string"&&(this._lastOffset=l[l.length-1])}ack(l){const c=this;let d=!1;return function(...f){d||(d=!0,o("sending ack %j",f),c.packet({type:t.PacketType.ACK,id:l,data:f}))}}onack(l){const c=this.acks[l.id];typeof c=="function"?(o("calling ack %s with %j",l.id,l.data),c.apply(this,l.data),delete this.acks[l.id]):o("bad ack %s",l.id)}onconnect(l,c){o("socket connected with id %s",l),this.id=l,this.recovered=c&&this._pid===c,this._pid=c,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(l=>this.emitEvent(l)),this.receiveBuffer=[],this.sendBuffer.forEach(l=>{this.notifyOutgoingListeners(l),this.packet(l)}),this.sendBuffer=[]}ondisconnect(){o("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(l=>l()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(o("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(l){return this.flags.compress=l,this}get volatile(){return this.flags.volatile=!0,this}timeout(l){return this.flags.timeout=l,this}onAny(l){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(l),this}prependAny(l){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(l),this}offAny(l){if(!this._anyListeners)return this;if(l){const c=this._anyListeners;for(let d=0;d<c.length;d++)if(l===c[d])return c.splice(d,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(l){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(l),this}prependAnyOutgoing(l){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(l),this}offAnyOutgoing(l){if(!this._anyOutgoingListeners)return this;if(l){const c=this._anyOutgoingListeners;for(let d=0;d<c.length;d++)if(l===c[d])return c.splice(d,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(l){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const c=this._anyOutgoingListeners.slice();for(const d of c)d.apply(this,l.data)}}}return ds.Socket=s,ds}var ms={},zp;function nx(){if(zp)return ms;zp=1,Object.defineProperty(ms,"__esModule",{value:!0}),ms.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 ms.Backoff=e,e.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),n=Math.floor(r*this.jitter*t);t=Math.floor(r*10)&1?t+n:t-n}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},ms}var Qp;function ix(){if(Qp)return hs;Qp=1;var e=he&&he.__createBinding||(Object.create?function(h,p,m,_){_===void 0&&(_=m),Object.defineProperty(h,_,{enumerable:!0,get:function(){return p[m]}})}:function(h,p,m,_){_===void 0&&(_=m),h[_]=p[m]}),t=he&&he.__setModuleDefault||(Object.create?function(h,p){Object.defineProperty(h,"default",{enumerable:!0,value:p})}:function(h,p){h.default=p}),r=he&&he.__importStar||function(h){if(h&&h.__esModule)return h;var p={};if(h!=null)for(var m in h)m!=="default"&&Object.prototype.hasOwnProperty.call(h,m)&&e(p,h,m);return t(p,h),p},n=he&&he.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(hs,"__esModule",{value:!0}),hs.Manager=void 0;const i=uv(),o=fv(),a=r(Bf()),s=lv(),u=nx(),l=ho,d=n(wr()).default("socket.io-client:manager");class f extends l.Emitter{constructor(p,m){var _;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,i.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((_=m.randomizationFactor)!==null&&_!==void 0?_:.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 S=m.parser||a;this.encoder=new S.Encoder,this.decoder=new S.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(d("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;d("opening %s",this.uri),this.engine=new i.Socket(this.uri,this.opts);const m=this.engine,_=this;this._readyState="opening",this.skipReconnect=!1;const S=s.on(m,"open",function(){_.onopen(),p&&p()}),v=T=>{d("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",T),p?p(T):this.maybeReconnectOnOpen()},b=s.on(m,"error",v);if(this._timeout!==!1){const T=this._timeout;d("connect attempt will timeout after %d",T);const w=this.setTimeoutFn(()=>{d("connect attempt timed out after %d",T),S(),v(new Error("timeout")),m.close()},T);this.opts.autoUnref&&w.unref(),this.subs.push(()=>{this.clearTimeoutFn(w)})}return this.subs.push(S),this.subs.push(b),this}connect(p){return this.open(p)}onopen(){d("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const p=this.engine;this.subs.push(s.on(p,"ping",this.onping.bind(this)),s.on(p,"data",this.ondata.bind(this)),s.on(p,"error",this.onerror.bind(this)),s.on(p,"close",this.onclose.bind(this)),s.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){i.nextTick(()=>{this.emitReserved("packet",p)},this.setTimeoutFn)}onerror(p){d("error",p),this.emitReserved("error",p)}socket(p,m){let _=this.nsps[p];return _?this._autoConnect&&!_.active&&_.connect():(_=new o.Socket(this,p,m),this.nsps[p]=_),_}_destroy(p){const m=Object.keys(this.nsps);for(const _ of m)if(this.nsps[_].active){d("socket %s is still active, skipping close",_);return}this._close()}_packet(p){d("writing packet %j",p);const m=this.encoder.encode(p);for(let _=0;_<m.length;_++)this.engine.write(m[_],p.options)}cleanup(){d("cleanup"),this.subs.forEach(p=>p()),this.subs.length=0,this.decoder.destroy()}_close(){d("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(p,m){d("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)d("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const m=this.backoff.duration();d("will wait %dms before reconnect attempt",m),this._reconnecting=!0;const _=this.setTimeoutFn(()=>{p.skipReconnect||(d("attempting reconnect"),this.emitReserved("reconnect_attempt",p.backoff.attempts),!p.skipReconnect&&p.open(S=>{S?(d("reconnect attempt error"),p._reconnecting=!1,p.reconnect(),this.emitReserved("reconnect_error",S)):(d("reconnect success"),p.onreconnect())}))},m);this.opts.autoUnref&&_.unref(),this.subs.push(()=>{this.clearTimeoutFn(_)})}}onreconnect(){const p=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",p)}}return hs.Manager=f,hs}var Yp;function ox(){return Yp||(Yp=1,function(e,t){var r=he&&he.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.connect=t.io=t.Socket=t.Manager=t.protocol=void 0;const n=tx(),i=ix();Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return i.Manager}});const o=fv();Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return o.Socket}});const s=r(wr()).default("socket.io-client"),u={};function l(d,f){typeof d=="object"&&(f=d,d=void 0),f=f||{};const h=n.url(d,f.path||"/socket.io"),p=h.source,m=h.id,_=h.path,S=u[m]&&_ in u[m].nsps,v=f.forceNew||f["force new connection"]||f.multiplex===!1||S;let b;return v?(s("ignoring socket cache for %s",p),b=new i.Manager(p,f)):(u[m]||(s("new io instance for %s",p),u[m]=new i.Manager(p,f)),b=u[m]),h.query&&!f.query&&(f.query=h.queryKey),b.socket(h.path,f)}t.io=l,t.connect=l,t.default=l,Object.assign(l,{Manager:i.Manager,Socket:o.Socket,io:l,connect:l});var c=Bf();Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return c.protocol}}),e.exports=l}(Ca,Ca.exports)),Ca.exports}var Jc={},gs={},Kp;function sx(){if(Kp)return gs;Kp=1,gs.byteLength=s,gs.toByteArray=l,gs.fromByteArray=f;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i<o;++i)e[i]=n[i],t[n.charCodeAt(i)]=i;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;function a(h){var p=h.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=h.indexOf("=");m===-1&&(m=p);var _=m===p?0:4-m%4;return[m,_]}function s(h){var p=a(h),m=p[0],_=p[1];return(m+_)*3/4-_}function u(h,p,m){return(p+m)*3/4-m}function l(h){var p,m=a(h),_=m[0],S=m[1],v=new r(u(h,_,S)),b=0,T=S>0?_-4:_,w;for(w=0;w<T;w+=4)p=t[h.charCodeAt(w)]<<18|t[h.charCodeAt(w+1)]<<12|t[h.charCodeAt(w+2)]<<6|t[h.charCodeAt(w+3)],v[b++]=p>>16&255,v[b++]=p>>8&255,v[b++]=p&255;return S===2&&(p=t[h.charCodeAt(w)]<<2|t[h.charCodeAt(w+1)]>>4,v[b++]=p&255),S===1&&(p=t[h.charCodeAt(w)]<<10|t[h.charCodeAt(w+1)]<<4|t[h.charCodeAt(w+2)]>>2,v[b++]=p>>8&255,v[b++]=p&255),v}function c(h){return e[h>>18&63]+e[h>>12&63]+e[h>>6&63]+e[h&63]}function d(h,p,m){for(var _,S=[],v=p;v<m;v+=3)_=(h[v]<<16&16711680)+(h[v+1]<<8&65280)+(h[v+2]&255),S.push(c(_));return S.join("")}function f(h){for(var p,m=h.length,_=m%3,S=[],v=16383,b=0,T=m-_;b<T;b+=v)S.push(d(h,b,b+v>T?T:b+v));return _===1?(p=h[m-1],S.push(e[p>>2]+e[p<<4&63]+"==")):_===2&&(p=(h[m-2]<<8)+h[m-1],S.push(e[p>>10]+e[p>>4&63]+e[p<<2&63]+"=")),S.join("")}return gs}var Pa={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Xp;function ax(){return Xp||(Xp=1,Pa.read=function(e,t,r,n,i){var o,a,s=i*8-n-1,u=(1<<s)-1,l=u>>1,c=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=o*256+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=a*256+e[t+d],d+=f,c-=8);if(o===0)o=1-l;else{if(o===u)return a?NaN:(h?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-l}return(h?-1:1)*a*Math.pow(2,o-n)},Pa.write=function(e,t,r,n,i,o){var a,s,u,l=o*8-i-1,c=(1<<l)-1,d=c>>1,f=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,p=n?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+d>=1?t+=f/u:t+=f*Math.pow(2,1-d),t*u>=2&&(a++,u/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a=a+d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=s&255,h+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[r+h]=a&255,h+=p,a/=256,l-=8);e[r+h-p]|=m*128}),Pa}/*!
57
+ * The buffer module from node.js, for the browser.
58
+ *
59
+ * @author Feross Aboukhadijeh <https://feross.org>
60
+ * @license MIT
61
+ */var Jp;function ux(){return Jp||(Jp=1,function(e){const t=sx(),r=ax(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=o(),!s.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 o(){try{const x=new Uint8Array(1),g={foo:function(){return 42}};return Object.setPrototypeOf(g,Uint8Array.prototype),Object.setPrototypeOf(x,g),x.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(x){if(x>i)throw new RangeError('The value "'+x+'" is invalid for option "size"');const g=new Uint8Array(x);return Object.setPrototypeOf(g,s.prototype),g}function s(x,g,E){if(typeof x=="number"){if(typeof g=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(x)}return u(x,g,E)}s.poolSize=8192;function u(x,g,E){if(typeof x=="string")return f(x,g);if(ArrayBuffer.isView(x))return p(x);if(x==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x);if(Ze(x,ArrayBuffer)||x&&Ze(x.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ze(x,SharedArrayBuffer)||x&&Ze(x.buffer,SharedArrayBuffer)))return m(x,g,E);if(typeof x=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const C=x.valueOf&&x.valueOf();if(C!=null&&C!==x)return s.from(C,g,E);const k=_(x);if(k)return k;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof x[Symbol.toPrimitive]=="function")return s.from(x[Symbol.toPrimitive]("string"),g,E);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x)}s.from=function(x,g,E){return u(x,g,E)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(x){if(typeof x!="number")throw new TypeError('"size" argument must be of type number');if(x<0)throw new RangeError('The value "'+x+'" is invalid for option "size"')}function c(x,g,E){return l(x),x<=0?a(x):g!==void 0?typeof E=="string"?a(x).fill(g,E):a(x).fill(g):a(x)}s.alloc=function(x,g,E){return c(x,g,E)};function d(x){return l(x),a(x<0?0:S(x)|0)}s.allocUnsafe=function(x){return d(x)},s.allocUnsafeSlow=function(x){return d(x)};function f(x,g){if((typeof g!="string"||g==="")&&(g="utf8"),!s.isEncoding(g))throw new TypeError("Unknown encoding: "+g);const E=b(x,g)|0;let C=a(E);const k=C.write(x,g);return k!==E&&(C=C.slice(0,k)),C}function h(x){const g=x.length<0?0:S(x.length)|0,E=a(g);for(let C=0;C<g;C+=1)E[C]=x[C]&255;return E}function p(x){if(Ze(x,Uint8Array)){const g=new Uint8Array(x);return m(g.buffer,g.byteOffset,g.byteLength)}return h(x)}function m(x,g,E){if(g<0||x.byteLength<g)throw new RangeError('"offset" is outside of buffer bounds');if(x.byteLength<g+(E||0))throw new RangeError('"length" is outside of buffer bounds');let C;return g===void 0&&E===void 0?C=new Uint8Array(x):E===void 0?C=new Uint8Array(x,g):C=new Uint8Array(x,g,E),Object.setPrototypeOf(C,s.prototype),C}function _(x){if(s.isBuffer(x)){const g=S(x.length)|0,E=a(g);return E.length===0||x.copy(E,0,0,g),E}if(x.length!==void 0)return typeof x.length!="number"||Qt(x.length)?a(0):h(x);if(x.type==="Buffer"&&Array.isArray(x.data))return h(x.data)}function S(x){if(x>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return x|0}function v(x){return+x!=x&&(x=0),s.alloc(+x)}s.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==s.prototype},s.compare=function(g,E){if(Ze(g,Uint8Array)&&(g=s.from(g,g.offset,g.byteLength)),Ze(E,Uint8Array)&&(E=s.from(E,E.offset,E.byteLength)),!s.isBuffer(g)||!s.isBuffer(E))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===E)return 0;let C=g.length,k=E.length;for(let H=0,Q=Math.min(C,k);H<Q;++H)if(g[H]!==E[H]){C=g[H],k=E[H];break}return C<k?-1:k<C?1:0},s.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}},s.concat=function(g,E){if(!Array.isArray(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return s.alloc(0);let C;if(E===void 0)for(E=0,C=0;C<g.length;++C)E+=g[C].length;const k=s.allocUnsafe(E);let H=0;for(C=0;C<g.length;++C){let Q=g[C];if(Ze(Q,Uint8Array))H+Q.length>k.length?(s.isBuffer(Q)||(Q=s.from(Q)),Q.copy(k,H)):Uint8Array.prototype.set.call(k,Q,H);else if(s.isBuffer(Q))Q.copy(k,H);else throw new TypeError('"list" argument must be an Array of Buffers');H+=Q.length}return k};function b(x,g){if(s.isBuffer(x))return x.length;if(ArrayBuffer.isView(x)||Ze(x,ArrayBuffer))return x.byteLength;if(typeof x!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof x);const E=x.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&E===0)return 0;let k=!1;for(;;)switch(g){case"ascii":case"latin1":case"binary":return E;case"utf8":case"utf-8":return tr(x).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E*2;case"hex":return E>>>1;case"base64":return zt(x).length;default:if(k)return C?-1:tr(x).length;g=(""+g).toLowerCase(),k=!0}}s.byteLength=b;function T(x,g,E){let C=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((E===void 0||E>this.length)&&(E=this.length),E<=0)||(E>>>=0,g>>>=0,E<=g))return"";for(x||(x="utf8");;)switch(x){case"hex":return fe(this,g,E);case"utf8":case"utf-8":return re(this,g,E);case"ascii":return z(this,g,E);case"latin1":case"binary":return ee(this,g,E);case"base64":return Y(this,g,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,g,E);default:if(C)throw new TypeError("Unknown encoding: "+x);x=(x+"").toLowerCase(),C=!0}}s.prototype._isBuffer=!0;function w(x,g,E){const C=x[g];x[g]=x[E],x[E]=C}s.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 E=0;E<g;E+=2)w(this,E,E+1);return this},s.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 E=0;E<g;E+=4)w(this,E,E+3),w(this,E+1,E+2);return this},s.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 E=0;E<g;E+=8)w(this,E,E+7),w(this,E+1,E+6),w(this,E+2,E+5),w(this,E+3,E+4);return this},s.prototype.toString=function(){const g=this.length;return g===0?"":arguments.length===0?re(this,0,g):T.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(g){if(!s.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g?!0:s.compare(this,g)===0},s.prototype.inspect=function(){let g="";const E=e.INSPECT_MAX_BYTES;return g=this.toString("hex",0,E).replace(/(.{2})/g,"$1 ").trim(),this.length>E&&(g+=" ... "),"<Buffer "+g+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(g,E,C,k,H){if(Ze(g,Uint8Array)&&(g=s.from(g,g.offset,g.byteLength)),!s.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(E===void 0&&(E=0),C===void 0&&(C=g?g.length:0),k===void 0&&(k=0),H===void 0&&(H=this.length),E<0||C>g.length||k<0||H>this.length)throw new RangeError("out of range index");if(k>=H&&E>=C)return 0;if(k>=H)return-1;if(E>=C)return 1;if(E>>>=0,C>>>=0,k>>>=0,H>>>=0,this===g)return 0;let Q=H-k,me=C-E;const Ce=Math.min(Q,me),Re=this.slice(k,H),Pe=g.slice(E,C);for(let Ee=0;Ee<Ce;++Ee)if(Re[Ee]!==Pe[Ee]){Q=Re[Ee],me=Pe[Ee];break}return Q<me?-1:me<Q?1:0};function P(x,g,E,C,k){if(x.length===0)return-1;if(typeof E=="string"?(C=E,E=0):E>2147483647?E=2147483647:E<-2147483648&&(E=-2147483648),E=+E,Qt(E)&&(E=k?0:x.length-1),E<0&&(E=x.length+E),E>=x.length){if(k)return-1;E=x.length-1}else if(E<0)if(k)E=0;else return-1;if(typeof g=="string"&&(g=s.from(g,C)),s.isBuffer(g))return g.length===0?-1:R(x,g,E,C,k);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?k?Uint8Array.prototype.indexOf.call(x,g,E):Uint8Array.prototype.lastIndexOf.call(x,g,E):R(x,[g],E,C,k);throw new TypeError("val must be string, number or Buffer")}function R(x,g,E,C,k){let H=1,Q=x.length,me=g.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(x.length<2||g.length<2)return-1;H=2,Q/=2,me/=2,E/=2}function Ce(Pe,Ee){return H===1?Pe[Ee]:Pe.readUInt16BE(Ee*H)}let Re;if(k){let Pe=-1;for(Re=E;Re<Q;Re++)if(Ce(x,Re)===Ce(g,Pe===-1?0:Re-Pe)){if(Pe===-1&&(Pe=Re),Re-Pe+1===me)return Pe*H}else Pe!==-1&&(Re-=Re-Pe),Pe=-1}else for(E+me>Q&&(E=Q-me),Re=E;Re>=0;Re--){let Pe=!0;for(let Ee=0;Ee<me;Ee++)if(Ce(x,Re+Ee)!==Ce(g,Ee)){Pe=!1;break}if(Pe)return Re}return-1}s.prototype.includes=function(g,E,C){return this.indexOf(g,E,C)!==-1},s.prototype.indexOf=function(g,E,C){return P(this,g,E,C,!0)},s.prototype.lastIndexOf=function(g,E,C){return P(this,g,E,C,!1)};function L(x,g,E,C){E=Number(E)||0;const k=x.length-E;C?(C=Number(C),C>k&&(C=k)):C=k;const H=g.length;C>H/2&&(C=H/2);let Q;for(Q=0;Q<C;++Q){const me=parseInt(g.substr(Q*2,2),16);if(Qt(me))return Q;x[E+Q]=me}return Q}function $(x,g,E,C){return Ft(tr(g,x.length-E),x,E,C)}function q(x,g,E,C){return Ft(Mt(g),x,E,C)}function G(x,g,E,C){return Ft(zt(g),x,E,C)}function j(x,g,E,C){return Ft(vn(g,x.length-E),x,E,C)}s.prototype.write=function(g,E,C,k){if(E===void 0)k="utf8",C=this.length,E=0;else if(C===void 0&&typeof E=="string")k=E,C=this.length,E=0;else if(isFinite(E))E=E>>>0,isFinite(C)?(C=C>>>0,k===void 0&&(k="utf8")):(k=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const H=this.length-E;if((C===void 0||C>H)&&(C=H),g.length>0&&(C<0||E<0)||E>this.length)throw new RangeError("Attempt to write outside buffer bounds");k||(k="utf8");let Q=!1;for(;;)switch(k){case"hex":return L(this,g,E,C);case"utf8":case"utf-8":return $(this,g,E,C);case"ascii":case"latin1":case"binary":return q(this,g,E,C);case"base64":return G(this,g,E,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,g,E,C);default:if(Q)throw new TypeError("Unknown encoding: "+k);k=(""+k).toLowerCase(),Q=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(x,g,E){return g===0&&E===x.length?t.fromByteArray(x):t.fromByteArray(x.slice(g,E))}function re(x,g,E){E=Math.min(x.length,E);const C=[];let k=g;for(;k<E;){const H=x[k];let Q=null,me=H>239?4:H>223?3:H>191?2:1;if(k+me<=E){let Ce,Re,Pe,Ee;switch(me){case 1:H<128&&(Q=H);break;case 2:Ce=x[k+1],(Ce&192)===128&&(Ee=(H&31)<<6|Ce&63,Ee>127&&(Q=Ee));break;case 3:Ce=x[k+1],Re=x[k+2],(Ce&192)===128&&(Re&192)===128&&(Ee=(H&15)<<12|(Ce&63)<<6|Re&63,Ee>2047&&(Ee<55296||Ee>57343)&&(Q=Ee));break;case 4:Ce=x[k+1],Re=x[k+2],Pe=x[k+3],(Ce&192)===128&&(Re&192)===128&&(Pe&192)===128&&(Ee=(H&15)<<18|(Ce&63)<<12|(Re&63)<<6|Pe&63,Ee>65535&&Ee<1114112&&(Q=Ee))}}Q===null?(Q=65533,me=1):Q>65535&&(Q-=65536,C.push(Q>>>10&1023|55296),Q=56320|Q&1023),C.push(Q),k+=me}return M(C)}const K=4096;function M(x){const g=x.length;if(g<=K)return String.fromCharCode.apply(String,x);let E="",C=0;for(;C<g;)E+=String.fromCharCode.apply(String,x.slice(C,C+=K));return E}function z(x,g,E){let C="";E=Math.min(x.length,E);for(let k=g;k<E;++k)C+=String.fromCharCode(x[k]&127);return C}function ee(x,g,E){let C="";E=Math.min(x.length,E);for(let k=g;k<E;++k)C+=String.fromCharCode(x[k]);return C}function fe(x,g,E){const C=x.length;(!g||g<0)&&(g=0),(!E||E<0||E>C)&&(E=C);let k="";for(let H=g;H<E;++H)k+=yt[x[H]];return k}function J(x,g,E){const C=x.slice(g,E);let k="";for(let H=0;H<C.length-1;H+=2)k+=String.fromCharCode(C[H]+C[H+1]*256);return k}s.prototype.slice=function(g,E){const C=this.length;g=~~g,E=E===void 0?C:~~E,g<0?(g+=C,g<0&&(g=0)):g>C&&(g=C),E<0?(E+=C,E<0&&(E=0)):E>C&&(E=C),E<g&&(E=g);const k=this.subarray(g,E);return Object.setPrototypeOf(k,s.prototype),k};function X(x,g,E){if(x%1!==0||x<0)throw new RangeError("offset is not uint");if(x+g>E)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(g,E,C){g=g>>>0,E=E>>>0,C||X(g,E,this.length);let k=this[g],H=1,Q=0;for(;++Q<E&&(H*=256);)k+=this[g+Q]*H;return k},s.prototype.readUintBE=s.prototype.readUIntBE=function(g,E,C){g=g>>>0,E=E>>>0,C||X(g,E,this.length);let k=this[g+--E],H=1;for(;E>0&&(H*=256);)k+=this[g+--E]*H;return k},s.prototype.readUint8=s.prototype.readUInt8=function(g,E){return g=g>>>0,E||X(g,1,this.length),this[g]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(g,E){return g=g>>>0,E||X(g,2,this.length),this[g]|this[g+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(g,E){return g=g>>>0,E||X(g,2,this.length),this[g]<<8|this[g+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(g,E){return g=g>>>0,E||X(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(g,E){return g=g>>>0,E||X(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},s.prototype.readBigUInt64LE=at(function(g){g=g>>>0,st(g,"offset");const E=this[g],C=this[g+7];(E===void 0||C===void 0)&&Je(g,this.length-8);const k=E+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24,H=this[++g]+this[++g]*2**8+this[++g]*2**16+C*2**24;return BigInt(k)+(BigInt(H)<<BigInt(32))}),s.prototype.readBigUInt64BE=at(function(g){g=g>>>0,st(g,"offset");const E=this[g],C=this[g+7];(E===void 0||C===void 0)&&Je(g,this.length-8);const k=E*2**24+this[++g]*2**16+this[++g]*2**8+this[++g],H=this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+C;return(BigInt(k)<<BigInt(32))+BigInt(H)}),s.prototype.readIntLE=function(g,E,C){g=g>>>0,E=E>>>0,C||X(g,E,this.length);let k=this[g],H=1,Q=0;for(;++Q<E&&(H*=256);)k+=this[g+Q]*H;return H*=128,k>=H&&(k-=Math.pow(2,8*E)),k},s.prototype.readIntBE=function(g,E,C){g=g>>>0,E=E>>>0,C||X(g,E,this.length);let k=E,H=1,Q=this[g+--k];for(;k>0&&(H*=256);)Q+=this[g+--k]*H;return H*=128,Q>=H&&(Q-=Math.pow(2,8*E)),Q},s.prototype.readInt8=function(g,E){return g=g>>>0,E||X(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},s.prototype.readInt16LE=function(g,E){g=g>>>0,E||X(g,2,this.length);const C=this[g]|this[g+1]<<8;return C&32768?C|4294901760:C},s.prototype.readInt16BE=function(g,E){g=g>>>0,E||X(g,2,this.length);const C=this[g+1]|this[g]<<8;return C&32768?C|4294901760:C},s.prototype.readInt32LE=function(g,E){return g=g>>>0,E||X(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},s.prototype.readInt32BE=function(g,E){return g=g>>>0,E||X(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},s.prototype.readBigInt64LE=at(function(g){g=g>>>0,st(g,"offset");const E=this[g],C=this[g+7];(E===void 0||C===void 0)&&Je(g,this.length-8);const k=this[g+4]+this[g+5]*2**8+this[g+6]*2**16+(C<<24);return(BigInt(k)<<BigInt(32))+BigInt(E+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24)}),s.prototype.readBigInt64BE=at(function(g){g=g>>>0,st(g,"offset");const E=this[g],C=this[g+7];(E===void 0||C===void 0)&&Je(g,this.length-8);const k=(E<<24)+this[++g]*2**16+this[++g]*2**8+this[++g];return(BigInt(k)<<BigInt(32))+BigInt(this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+C)}),s.prototype.readFloatLE=function(g,E){return g=g>>>0,E||X(g,4,this.length),r.read(this,g,!0,23,4)},s.prototype.readFloatBE=function(g,E){return g=g>>>0,E||X(g,4,this.length),r.read(this,g,!1,23,4)},s.prototype.readDoubleLE=function(g,E){return g=g>>>0,E||X(g,8,this.length),r.read(this,g,!0,52,8)},s.prototype.readDoubleBE=function(g,E){return g=g>>>0,E||X(g,8,this.length),r.read(this,g,!1,52,8)};function le(x,g,E,C,k,H){if(!s.isBuffer(x))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>k||g<H)throw new RangeError('"value" argument is out of bounds');if(E+C>x.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(g,E,C,k){if(g=+g,E=E>>>0,C=C>>>0,!k){const me=Math.pow(2,8*C)-1;le(this,g,E,C,me,0)}let H=1,Q=0;for(this[E]=g&255;++Q<C&&(H*=256);)this[E+Q]=g/H&255;return E+C},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(g,E,C,k){if(g=+g,E=E>>>0,C=C>>>0,!k){const me=Math.pow(2,8*C)-1;le(this,g,E,C,me,0)}let H=C-1,Q=1;for(this[E+H]=g&255;--H>=0&&(Q*=256);)this[E+H]=g/Q&255;return E+C},s.prototype.writeUint8=s.prototype.writeUInt8=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,1,255,0),this[E]=g&255,E+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,2,65535,0),this[E]=g&255,this[E+1]=g>>>8,E+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,2,65535,0),this[E]=g>>>8,this[E+1]=g&255,E+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,4,4294967295,0),this[E+3]=g>>>24,this[E+2]=g>>>16,this[E+1]=g>>>8,this[E]=g&255,E+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,4,4294967295,0),this[E]=g>>>24,this[E+1]=g>>>16,this[E+2]=g>>>8,this[E+3]=g&255,E+4};function de(x,g,E,C,k){oe(g,C,k,x,E,7);let H=Number(g&BigInt(4294967295));x[E++]=H,H=H>>8,x[E++]=H,H=H>>8,x[E++]=H,H=H>>8,x[E++]=H;let Q=Number(g>>BigInt(32)&BigInt(4294967295));return x[E++]=Q,Q=Q>>8,x[E++]=Q,Q=Q>>8,x[E++]=Q,Q=Q>>8,x[E++]=Q,E}function Ve(x,g,E,C,k){oe(g,C,k,x,E,7);let H=Number(g&BigInt(4294967295));x[E+7]=H,H=H>>8,x[E+6]=H,H=H>>8,x[E+5]=H,H=H>>8,x[E+4]=H;let Q=Number(g>>BigInt(32)&BigInt(4294967295));return x[E+3]=Q,Q=Q>>8,x[E+2]=Q,Q=Q>>8,x[E+1]=Q,Q=Q>>8,x[E]=Q,E+8}s.prototype.writeBigUInt64LE=at(function(g,E=0){return de(this,g,E,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=at(function(g,E=0){return Ve(this,g,E,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(g,E,C,k){if(g=+g,E=E>>>0,!k){const Ce=Math.pow(2,8*C-1);le(this,g,E,C,Ce-1,-Ce)}let H=0,Q=1,me=0;for(this[E]=g&255;++H<C&&(Q*=256);)g<0&&me===0&&this[E+H-1]!==0&&(me=1),this[E+H]=(g/Q>>0)-me&255;return E+C},s.prototype.writeIntBE=function(g,E,C,k){if(g=+g,E=E>>>0,!k){const Ce=Math.pow(2,8*C-1);le(this,g,E,C,Ce-1,-Ce)}let H=C-1,Q=1,me=0;for(this[E+H]=g&255;--H>=0&&(Q*=256);)g<0&&me===0&&this[E+H+1]!==0&&(me=1),this[E+H]=(g/Q>>0)-me&255;return E+C},s.prototype.writeInt8=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,1,127,-128),g<0&&(g=255+g+1),this[E]=g&255,E+1},s.prototype.writeInt16LE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,2,32767,-32768),this[E]=g&255,this[E+1]=g>>>8,E+2},s.prototype.writeInt16BE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,2,32767,-32768),this[E]=g>>>8,this[E+1]=g&255,E+2},s.prototype.writeInt32LE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,4,2147483647,-2147483648),this[E]=g&255,this[E+1]=g>>>8,this[E+2]=g>>>16,this[E+3]=g>>>24,E+4},s.prototype.writeInt32BE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[E]=g>>>24,this[E+1]=g>>>16,this[E+2]=g>>>8,this[E+3]=g&255,E+4},s.prototype.writeBigInt64LE=at(function(g,E=0){return de(this,g,E,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=at(function(g,E=0){return Ve(this,g,E,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function te(x,g,E,C,k,H){if(E+C>x.length)throw new RangeError("Index out of range");if(E<0)throw new RangeError("Index out of range")}function ae(x,g,E,C,k){return g=+g,E=E>>>0,k||te(x,g,E,4),r.write(x,g,E,C,23,4),E+4}s.prototype.writeFloatLE=function(g,E,C){return ae(this,g,E,!0,C)},s.prototype.writeFloatBE=function(g,E,C){return ae(this,g,E,!1,C)};function De(x,g,E,C,k){return g=+g,E=E>>>0,k||te(x,g,E,8),r.write(x,g,E,C,52,8),E+8}s.prototype.writeDoubleLE=function(g,E,C){return De(this,g,E,!0,C)},s.prototype.writeDoubleBE=function(g,E,C){return De(this,g,E,!1,C)},s.prototype.copy=function(g,E,C,k){if(!s.isBuffer(g))throw new TypeError("argument should be a Buffer");if(C||(C=0),!k&&k!==0&&(k=this.length),E>=g.length&&(E=g.length),E||(E=0),k>0&&k<C&&(k=C),k===C||g.length===0||this.length===0)return 0;if(E<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=this.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("sourceEnd out of bounds");k>this.length&&(k=this.length),g.length-E<k-C&&(k=g.length-E+C);const H=k-C;return this===g&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(E,C,k):Uint8Array.prototype.set.call(g,this.subarray(C,k),E),H},s.prototype.fill=function(g,E,C,k){if(typeof g=="string"){if(typeof E=="string"?(k=E,E=0,C=this.length):typeof C=="string"&&(k=C,C=this.length),k!==void 0&&typeof k!="string")throw new TypeError("encoding must be a string");if(typeof k=="string"&&!s.isEncoding(k))throw new TypeError("Unknown encoding: "+k);if(g.length===1){const Q=g.charCodeAt(0);(k==="utf8"&&Q<128||k==="latin1")&&(g=Q)}}else typeof g=="number"?g=g&255:typeof g=="boolean"&&(g=Number(g));if(E<0||this.length<E||this.length<C)throw new RangeError("Out of range index");if(C<=E)return this;E=E>>>0,C=C===void 0?this.length:C>>>0,g||(g=0);let H;if(typeof g=="number")for(H=E;H<C;++H)this[H]=g;else{const Q=s.isBuffer(g)?g:s.from(g,k),me=Q.length;if(me===0)throw new TypeError('The value "'+g+'" is invalid for argument "value"');for(H=0;H<C-E;++H)this[H+E]=Q[H%me]}return this};const Ie={};function xt(x,g,E){Ie[x]=class extends E{constructor(){super(),Object.defineProperty(this,"message",{value:g.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${x}]`,this.stack,delete this.name}get code(){return x}set code(k){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:k,writable:!0})}toString(){return`${this.name} [${x}]: ${this.message}`}}}xt("ERR_BUFFER_OUT_OF_BOUNDS",function(x){return x?`${x} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),xt("ERR_INVALID_ARG_TYPE",function(x,g){return`The "${x}" argument must be of type number. Received type ${typeof g}`},TypeError),xt("ERR_OUT_OF_RANGE",function(x,g,E){let C=`The value of "${x}" is out of range.`,k=E;return Number.isInteger(E)&&Math.abs(E)>2**32?k=Rt(String(E)):typeof E=="bigint"&&(k=String(E),(E>BigInt(2)**BigInt(32)||E<-(BigInt(2)**BigInt(32)))&&(k=Rt(k)),k+="n"),C+=` It must be ${g}. Received ${k}`,C},RangeError);function Rt(x){let g="",E=x.length;const C=x[0]==="-"?1:0;for(;E>=C+4;E-=3)g=`_${x.slice(E-3,E)}${g}`;return`${x.slice(0,E)}${g}`}function Vt(x,g,E){st(g,"offset"),(x[g]===void 0||x[g+E]===void 0)&&Je(g,x.length-(E+1))}function oe(x,g,E,C,k,H){if(x>E||x<g){const Q=typeof g=="bigint"?"n":"";let me;throw H>3?g===0||g===BigInt(0)?me=`>= 0${Q} and < 2${Q} ** ${(H+1)*8}${Q}`:me=`>= -(2${Q} ** ${(H+1)*8-1}${Q}) and < 2 ** ${(H+1)*8-1}${Q}`:me=`>= ${g}${Q} and <= ${E}${Q}`,new Ie.ERR_OUT_OF_RANGE("value",me,x)}Vt(C,k,H)}function st(x,g){if(typeof x!="number")throw new Ie.ERR_INVALID_ARG_TYPE(g,"number",x)}function Je(x,g,E){throw Math.floor(x)!==x?(st(x,E),new Ie.ERR_OUT_OF_RANGE(E||"offset","an integer",x)):g<0?new Ie.ERR_BUFFER_OUT_OF_BOUNDS:new Ie.ERR_OUT_OF_RANGE(E||"offset",`>= ${E?1:0} and <= ${g}`,x)}const Wt=/[^+/0-9A-Za-z-_]/g;function Sr(x){if(x=x.split("=")[0],x=x.trim().replace(Wt,""),x.length<2)return"";for(;x.length%4!==0;)x=x+"=";return x}function tr(x,g){g=g||1/0;let E;const C=x.length;let k=null;const H=[];for(let Q=0;Q<C;++Q){if(E=x.charCodeAt(Q),E>55295&&E<57344){if(!k){if(E>56319){(g-=3)>-1&&H.push(239,191,189);continue}else if(Q+1===C){(g-=3)>-1&&H.push(239,191,189);continue}k=E;continue}if(E<56320){(g-=3)>-1&&H.push(239,191,189),k=E;continue}E=(k-55296<<10|E-56320)+65536}else k&&(g-=3)>-1&&H.push(239,191,189);if(k=null,E<128){if((g-=1)<0)break;H.push(E)}else if(E<2048){if((g-=2)<0)break;H.push(E>>6|192,E&63|128)}else if(E<65536){if((g-=3)<0)break;H.push(E>>12|224,E>>6&63|128,E&63|128)}else if(E<1114112){if((g-=4)<0)break;H.push(E>>18|240,E>>12&63|128,E>>6&63|128,E&63|128)}else throw new Error("Invalid code point")}return H}function Mt(x){const g=[];for(let E=0;E<x.length;++E)g.push(x.charCodeAt(E)&255);return g}function vn(x,g){let E,C,k;const H=[];for(let Q=0;Q<x.length&&!((g-=2)<0);++Q)E=x.charCodeAt(Q),C=E>>8,k=E%256,H.push(k),H.push(C);return H}function zt(x){return t.toByteArray(Sr(x))}function Ft(x,g,E,C){let k;for(k=0;k<C&&!(k+E>=g.length||k>=x.length);++k)g[k+E]=x[k];return k}function Ze(x,g){return x instanceof g||x!=null&&x.constructor!=null&&x.constructor.name!=null&&x.constructor.name===g.name}function Qt(x){return x!==x}const yt=function(){const x="0123456789abcdef",g=new Array(256);for(let E=0;E<16;++E){const C=E*16;for(let k=0;k<16;++k)g[C+k]=x[E]+x[k]}return g}();function at(x){return typeof BigInt>"u"?En:x}function En(){throw new Error("BigInt not supported")}}(Jc)),Jc}(function(e,t){(function(r,n){e.exports=n(yT(),RT(),kT(),xg(),jT,ox(),ux())})(he,function(r,n,i,o,a,s,u){return function(){var l={809:function(h){h.exports=r},30:function(h){h.exports=n},36:function(h){h.exports=i},300:function(h){h.exports=o},408:function(h){h.exports=u},25:function(h){h.exports=a},130:function(h){h.exports=s}},c={};function d(h){var p=c[h];if(p!==void 0)return p.exports;var m=c[h]={exports:{}};return l[h](m,m.exports,d),m.exports}d.n=function(h){var p=h&&h.__esModule?function(){return h.default}:function(){return h};return d.d(p,{a:p}),p},d.d=function(h,p){for(var m in p)d.o(p,m)&&!d.o(h,m)&&Object.defineProperty(h,m,{enumerable:!0,get:p[m]})},d.o=function(h,p){return Object.prototype.hasOwnProperty.call(h,p)},d.r=function(h){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(h,"__esModule",{value:!0})};var f={};return function(){d.r(f),d.d(f,{assets:function(){return M},auth:function(){return X},buildAnswer:function(){return RE},buildCarouselCard:function(){return CE},buildQuestion:function(){return Ge},carouselCards:function(){return Ti},contentInteraction:function(){return at},decodeBase64:function(){return NE},default:function(){return IE},editorialPages:function(){return W},features:function(){return E},getEntries:function(){return h.getEntries},getEntry:function(){return h.getEntry},management:function(){return bn},payments:function(){return Tn},people:function(){return nr},peopleEngagement:function(){return Qr},qaQuestions:function(){return ct},reportError:function(){return p.reportError},search:function(){return wi}});var h=d(809),p=d(30),m=d(36),_={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:S,LOCALHOST:v,STAGING:b,STAGING_SPLITTER:T},ENVIRONMENTS:{PRODUCTION:w,LOCAL:P}}}=_,{HUBSPOT:{ENVIRONMENTS_MAPPING:R,EMAIL_IDS:L}}=_;let $={emailIds:{}};var q=d(300),G=d.n(q);const j=async F=>{try{const{message:B,response:D,request:V}=F;let ne=B;return D?ne+=` - The request was made and the server responded with ${JSON.stringify({status:D.status,data:D.data})}`:V&&(ne+=" - The request was made but no response was received"),console.warn(ne),await(0,p.reportError)(new Error(ne)),ne}catch(B){return console.warn(`Cannot handle error: ${B.message}`),B.message}},{APIS:{ASSETS_API:{BASE_URL:Y,ENDPOINTS:{USERS:re,CERTIFICATES:K}}}}=_;var M={certificates:{create:async(F,B)=>{let D=[];try{const{data:V}=await G().post(`${Y}${re}/${F}${K}`,B);V&&(D=V)}catch(V){await j(V)}return D}}};const{APIS:{AUTH_API:{BASE_URL:z,ENDPOINTS:{USER_PASSWORD:ee,USERS:fe}}},USERS:{MYSELF:J}}=_;var X={userPassword:{update:async F=>{let B=null;try{B=await G().put(`${z}${fe}/${J}${ee}`,F)}catch(D){B={message:(((D||{}).response||{}).data||{}).message},await j(D)}return B}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:le,ENDPOINTS:{ANSWERS:de,QUESTIONS:Ve,LIKES:te}}}}=_,ae=`${le}${Ve}`;var De={create:async({questionSlug:F},B)=>{try{await G().post(`${ae}/${encodeURIComponent(F)}${de}`,B)}catch(D){const V=await j(D);throw new Error(V)}},remove:async({questionSlug:F,answerSlug:B})=>{try{await G().delete(`${ae}/${encodeURIComponent(F)}${de}/${encodeURIComponent(B)}`)}catch(D){const V=await j(D);throw new Error(V)}},update:async({questionSlug:F,answerSlug:B},D)=>{try{return await G().put(`${ae}/${encodeURIComponent(F)}${de}/${encodeURIComponent(B)}`,D)}catch(V){const ne=await j(V);throw new Error(ne)}},like:async({questionSlug:F,answerSlug:B},D)=>{try{return await G().post(`${ae}/${encodeURIComponent(F)}${de}/${encodeURIComponent(B)}${te}`,D)}catch(V){const ne=await j(V);throw new Error(ne)}},unlike:async({questionSlug:F,answerSlug:B})=>{try{return await G().delete(`${ae}/${encodeURIComponent(F)}${de}/${encodeURIComponent(B)}${te}`)}catch(D){const V=await j(D);throw new Error(V)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:Ie,ENDPOINTS:{QUESTIONS:xt}}}}=_,Rt=`${Ie}${xt}`;var Vt={create:async F=>{try{return await G().post(Rt,F)}catch(B){const D=await j(B);throw new Error(D)}},remove:async({questionSlug:F})=>{try{await G().delete(`${Rt}/${encodeURIComponent(F)}`)}catch(B){const D=await j(B);throw new Error(D)}},update:async({questionSlug:F},B)=>{try{return await G().put(`${Rt}/${encodeURIComponent(F)}`,B)}catch(D){const V=await j(D);throw new Error(V)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:oe,ENDPOINTS:{REPLIES:st,ANSWERS:Je,QUESTIONS:Wt,LIKES:Sr}}}}=_,tr=`${oe}${Wt}`,Mt=({questionSlug:F,answerSlug:B,replySlug:D},V=!1)=>{let ne=`${tr}/${encodeURIComponent(F)}${Je}/${encodeURIComponent(B)}${st}`;return D&&(ne=`${ne}/${encodeURIComponent(D)}`,V&&(ne=`${ne}${Sr}`)),ne};var vn={create:async({questionSlug:F,answerSlug:B},D)=>{try{return await G().post(Mt({questionSlug:F,answerSlug:B}),D)}catch(V){const ne=await j(V);throw new Error(ne)}},update:async({questionSlug:F,answerSlug:B,replySlug:D},V)=>{try{return await G().put(Mt({questionSlug:F,answerSlug:B,replySlug:D}),V)}catch(ne){const Ne=await j(ne);throw new Error(Ne)}},remove:async({questionSlug:F,answerSlug:B,replySlug:D})=>{try{await G().delete(Mt({questionSlug:F,answerSlug:B,replySlug:D}))}catch(V){const ne=await j(V);throw new Error(ne)}},like:async({questionSlug:F,answerSlug:B,replySlug:D},V)=>{try{await G().post(Mt({questionSlug:F,answerSlug:B,replySlug:D},!0),V)}catch(ne){const Ne=await j(ne);throw new Error(Ne)}},unlike:async({questionSlug:F,answerSlug:B,replySlug:D})=>{try{await G().delete(Mt({questionSlug:F,answerSlug:B,replySlug:D},!0))}catch(V){const ne=await j(V);throw new Error(ne)}},getReplyUrl:Mt};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:zt,ENDPOINTS:{QUESTIONS:Ft,ANSWERS:Ze,LIKES:Qt}}}}=_,yt=`${zt}${Ft}`;var at={answers:De,questions:Vt,replies:vn,likes:{create:async(F,B)=>{try{return await G().post(`${yt}/${encodeURIComponent(F)}${Ze}/${encodeURIComponent(B)}${Qt}`)}catch(D){const V=await j(D);throw new Error(V)}},remove:async(F,B)=>{try{return await G().delete(`${yt}/${encodeURIComponent(F)}${Ze}/${encodeURIComponent(B)}${Qt}`)}catch(D){const V=await j(D);throw new Error(V)}}}};const{APIS:{FEATURES_API:{BASE_URL:En,ENDPOINTS:{FLAGS:x}}}}=_,g=`${En}${x}`;var E={flags:{read:async F=>{let B=null;try{const{data:D}=await G().get(`${g}/${encodeURIComponent(F)}`);D!=null&&D.name&&(D!=null&&D.featureState)&&(B=D)}catch(D){await j(D)}return B}}};const{APIS:{MANAGEMENT_API:{BASE_URL:C,ENDPOINTS:{ACCOUNTS:k}}}}=_;var H={create:async F=>{try{await G().post(`${C}${k}`,F)}catch(B){throw await j(B),B}},read:async F=>{let B=null;try{({data:B}=await G().get(`${C}${k}/${encodeURIComponent(F)}`))}catch(D){await j(D)}return B},update:async(F,B)=>{try{await G().put(`${C}${k}/${encodeURIComponent(F)}`,B)}catch(D){throw await j(D),D}}};const{APIS:{MANAGEMENT_API:{BASE_URL:Q,ENDPOINTS:{BULK_ENROLMENTS:me}}}}=_;var Ce={create:async F=>{try{await G().post(`${Q}${me}`,F)}catch(B){throw await j(B),B}}};const{APIS:{MANAGEMENT_API:{BASE_URL:Re,ENDPOINTS:{EVENT_REGISTRATIONS:Pe}}}}=_;var Ee={create:async F=>{try{await G().post(`${Re}${Pe}`,F)}catch(B){const D=await j(B);throw new Error(D)}}};const{APIS:{MANAGEMENT_API:{BASE_URL:Pt,ENDPOINTS:{LOGINS:qr,LOGIN_PASSWORDLESS:_n}}}}=_,Tr=`${Pt}${qr}`;var bn={accounts:H,bulkEnrolments:Ce,eventRegistrations:Ee,passwordless:{update:async F=>{try{await G().put(`${Tr}/${encodeURIComponent(F)}${_n}`)}catch(B){throw await j(B),B}}}};const{APIS:{PAYMENTS_API:{BASE_URL_V2:xr,ENDPOINTS:{PRODUCTS:wn}}}}=_,Sn=`${xr}${wn}`;var Tn={products:{list:async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await G().get(Sn,D);V&&V.length&&(B=V)}catch(V){await j(V)}return B}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:rr,ENDPOINTS:{BULK_ENROLMENTS:fi}}}}=_;var Yt={list:async F=>{let B=[];try{const{data:D}=await G().get(`${rr}${fi}`,{params:F});D&&D.length&&(B=D)}catch(D){await j(D)}return B}},Eo=d(25);const{OK:_o,MULTIPLE_CHOICES:bo,NOT_FOUND:hi,FORBIDDEN:xn}=Eo.StatusCodes,We=F=>F>=_o&&F<bo||F===xn||F===hi,{APIS:{PEOPLE_API:{BASE_URL_V2:On,ENDPOINTS:{USERS:An}}}}=_,Or=async F=>{let B=null;try{const{data:D}=await G().get(`${On}${An}/${encodeURIComponent(F)}`,{validateStatus:We});D&&D.id&&(B=D)}catch(D){await j(D)}return B},di=async F=>{let B=[];try{if(F&&F.length<2)throw new Error("users list method requires at least two ids");const D=F.map(ne=>`ids=${encodeURIComponent(ne)}`).join("&"),V=await G().get(`${On}${An}?${D}`,{validateStatus:We});V&&V.length&&(B=V)}catch(D){await j(D)}return B};var wo={read:Or,update:async(F,B)=>{let D=!1;try{const{data:V}=await G().put(`${On}${An}/${encodeURIComponent(F)}`,B);D=!(!V||!V.id)}catch(V){await j(V)}return D},list:di};const{APIS:{PEOPLE_API:{BASE_URL_V2:et,ENDPOINTS:{USERS:So,USER_LIKES:To}}},USERS:{MYSELF:xo}}=_,Oo=`${et}${So}/${xo}${To}`,Cn=async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await G().get(Oo,D);V&&V.length&&(B=V)}catch(V){await j(V)}return B};var ht={list:Cn},Ao={authors:{readQuestionAuthors:async(F,B,D)=>{try{if(F.author=await Or(F.authorId),F.answers&&F.answers.length&&!D.ignoreAnswersAuthors){F.answers.sort((ne,Ne)=>new Date(Ne.updatedAt)-new Date(ne.updatedAt)),F.totalAnswers=F.answers.length;let V=F.answers;if(D.limit&&D.pageNumber){const ne=D.limit*(D.pageNumber-1);V=F.answers.slice(ne,ne+D.limit)}for(let ne of V){ne.author=ne.authorId&&await Or(ne.authorId)||{};const[Ne]=B?await Cn({contentType:_.CONTENTFUL.ANSWERS.TYPE,contentSlug:ne.slug}):[null];ne.userLiked=!!Ne}F.answers=V}else F.answers||(F.answers=[]);return F}catch(V){throw await j(V),new Error(`Cannot read authors for question: ${V.message}`)}},readAuthors:async(F=[])=>{let B=[];try{if(Array.isArray(F)===!1)throw new Error("authorIds is not an array!");if(F&&F.length===1){const D=await Or(F[0]);D&&B.push(D)}else if(F&&F.length>1){const D=await di(F);D&&D.length>0&&(B=D)}}catch(D){throw await j(D),new Error(`Cannot read authors: ${D.message}`)}return B}}};const{APIS:{PEOPLE_API:{BASE_URL:Co,ENDPOINTS:{REGISTRATIONS:Ro}}}}=_;var Po={list:async F=>{let B=[];try{const{data:D}=await G().get(`${Co}${Ro}`,{params:F});D&&D.length&&(B=D)}catch(D){await j(D)}return B}};const{APIS:{PEOPLE_API:{BASE_URL_V2:No,ENDPOINTS:{USERS:Gr,USER_COURSES:pi}}},USERS:{MYSELF:Vr}}=_,Ot=`${No}${Gr}/${Vr}${pi}`;var Rn={create:async F=>{try{await G().post(Ot,F)}catch(B){await j(B)}},list:async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await G().get(Ot,D);V&&V.length&&(B=V)}catch(V){await j(V)}return B},update:async(F,B)=>{try{await G().put(`${Ot}/${F}`,B)}catch(D){await j(D)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Io,ENDPOINTS:{USERS:Lo,USER_EVENTS:ko}}},USERS:{MYSELF:Mo}}=_,Fo=`${Io}${Lo}/${Mo}${ko}`;var Wr={list:async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await G().get(Fo,D);V&&V.length&&(B=V)}catch(V){await j(V)}return B}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Pn,ENDPOINTS:{USERS:Ar,USER_LESSONS:mi}}},USERS:{MYSELF:gi}}=_,yi=`${Pn}${Ar}/${gi}${mi}`;var Do={create:async F=>{let B=null;try{B=await G().post(yi,F)}catch(D){await j(D)}return B},list:async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await G().get(yi,D);V&&V.length&&(B=V)}catch(V){await j(V)}return B}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Bo,ENDPOINTS:{USERS:Uo,USER_PRODUCTS:Nn}}},USERS:{MYSELF:$o}}=_,In=`${Bo}${Uo}/${$o}${Nn}`;var Cr={create:async F=>{let B=null;try{B=await G().post(In,F)}catch(D){await j(D)}return B},list:async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await G().get(In,D);V&&V.length&&(B=V)}catch(V){await j(V)}return B},update:async(F,B)=>{try{await G().put(`${In}/${F}`,B)}catch(D){await j(D)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Nt,ENDPOINTS:{USERS:Kt,USER_RATINGS:Xt}}},USERS:{MYSELF:jo}}=_,It=`${Nt}${Kt}/${jo}${Xt}`;var nr={bulkEnrolments:Yt,handlers:Ao,registrations:Po,users:wo,userCourses:Rn,userEvents:Wr,userLessons:Do,userLikes:ht,userProducts:Cr,userRatings:{create:async F=>{let B=null;try{const{data:D}=await G().post(It,F);D!=null&&D.id&&(B=D)}catch(D){await j(D)}return B},update:async(F,B)=>{try{await G().put(`${It}/${F}`,B)}catch(D){await j(D)}}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:Ho,ENDPOINTS:{ENQUIRY_EMAILS:qo}}}}=_;var Go={create:async F=>{let B=null;try{const{data:D}=await G().post(`${Ho}${qo}`,F);D&&(B=D)}catch(D){await j(D)}return B}},vi={forms:{sendEnquiryEmails:async F=>{let B=null;try{const{emailIds:D}=$;B=await Qr.emails.create({...D,...F})}catch(D){await j(D)}return B}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:ut,ENDPOINTS:{USERS:Ei,USER_PROPERTIES:_i}}},USERS:{MYSELF:zr}}=_;var Qr={emails:Go,handlers:vi,userProperties:{update:async(F,B)=>{try{await G().put(`${ut}${Ei}/${zr}${_i}/${F}`,B)}catch(D){await j(D)}}}},Yr=d(130);const{APIS:{SEARCH_API:{BASE_URL:Vo,ENDPOINTS:{SEARCH:bi}}}}=_,Ln=`${Vo}${bi}`;var wi={ask:async F=>{try{let B=null;const{data:D}=await G().get(Ln,{params:{question:F}});return D!=null&&D.answer&&(D!=null&&D.references)&&(D!=null&&D.version)&&(B=D),B}catch(B){const D=await j(B);throw new Error(D)}},stream:(F,B,D)=>{const V=(0,Yr.io)(void 0,{path:"/api/search-api/web-sockets"});function ne(){V.emit("search",{question:F})}function Ne(qe){D(qe),$e(),V.disconnect()}function $e(){V.off("connect",ne),V.off("update",B),V.off("result",Ne)}return V.on("connect",ne),V.on("update",B),V.on("result",Ne),$e}};const{CONTENTFUL:Dt}=_,{CARD_TYPES:kn}=Dt.CAROUSELS;var Ti={read:async(F,B)=>{try{if(!B||!B.sys||!B.sys.id)throw new Error("Invalid link to card");if(!F||!kn[F])throw new Error("Unsupported card content type");const{INCLUDE:D,SELECT:V}=kn[F];return await(0,h.getEntry)({content_type:F,"sys.id":B.sys.id,include:D,select:V},{assetDetails:!0})}catch(D){throw await j(D),new Error(`Cannot read carousel card: ${D.message}`)}}};const{CONTENTFUL:Wo}=_,{INCLUDE:y,SELECT:A,TYPE:I}=Wo.EDITORIAL_PAGES;var W={read:async F=>{try{return await(0,h.getEntry)({content_type:I,"fields.slug":F,include:y,select:A})}catch(B){throw await j(B),new Error(`Cannot read editorial page: ${B.message}`)}}};const{CONTENTFUL:ge}=_,{TYPE:ce,ORDER:_e,SELECT:be,SKIP:He,LIMIT:Ae,INCLUDE:tt}=ge.QUESTIONS;var ct={read:async F=>{try{return await(0,h.getEntry)({content_type:ce,"fields.slug":F,include:2,select:be})}catch(B){throw await j(B),new Error(`Cannot read question: ${B.message}`)}},list:async(F={})=>{try{return await(0,h.getEntries)({content_type:ce,include:tt,limit:Ae,order:_e,select:be,skip:He,...F})}catch(B){throw await j(B),new Error(`Cannot list questions: ${B.message}`)}}},Ge=async(F,B,D={ignoreAnswersAuthors:!1})=>{try{let V={};return V=await ct.read(F),V=await nr.handlers.authors.readQuestionAuthors(V,B,D),V}catch(V){throw await j(V),new Error(`Cannot build question: ${V.message}`)}};const{ARTICLES:{TYPE:rt},COURSES:{TYPE:Qe},EVENTS:{TYPE:ir},LISTS:{TYPE:Jt},QUESTIONS:{TYPE:Rr},LEARNING_HUB:{TYPE:aa}}=_.CONTENTFUL,or=F=>F&&F.url?(Object.assign(F,{aspect:"responsiveCard",query:"q=90&fit=fill"}),F):null,Kr={[rt]:async F=>{const{authorIds:B,authorTag:D,image:V,publishedDate:ne,readingTime:Ne,slug:$e,title:qe}=F,Lt=await nr.handlers.authors.readAuthors(B),sr=Lt&&Lt.length?Lt:D?[D]:null;return{banner:or(V),contributors:sr,publishedDate:ne,readingTime:Ne,slug:$e,title:qe}},[Qe]:async(F,B)=>{const{banner:D,freeCourse:V,partnershipDetails:ne,slug:Ne,title:$e,registered:qe}=F,Lt={banner:or(D),slug:Ne,title:$e,pill:V?"free":"premium",registered:!!qe};if(ne){const{partners:sr}=ne;Lt.partner=sr&&sr.length&&ne.partners[0]}if(qe===void 0&&B){const[sr]=await nr.userProducts.list({courseSlug:Ne,isEnrolled:!0,scope:"active"});Lt.registered=!!sr}return Lt},[ir]:async(F,B)=>{const{bannerImage:D,defaultStartDate:V,isEventOngoing:ne,slug:Ne,speakers:$e,title:qe,registered:Lt}=F,sr=new Date(V),LE=!!sr&&sr<new Date;if($e&&$e.length)for(const ua of $e)ua.image=(ku=ua.image)&&ku.url?`${ku.url}?w=100&h=100&fit=thumb&f=center`:null;var ku;const gh={banner:or(D),dateHasPassed:LE,title:qe,slug:Ne,isOngoingEvent:ne,contributors:$e,startDate:sr,registered:!!Lt};if(Lt===void 0&&B){const[ua]=await nr.userEvents.list({eventSlug:Ne});gh.registered=!!ua}return gh},[Jt]:async F=>{const{hero:B,slug:D,title:V}=F;return{banner:or(B),slug:D,title:V}},[Rr]:async F=>{const{answers:B,authorId:D,createdAt:V,slug:ne,title:Ne}=F;let $e=null;if(D){const qe=await nr.users.read(D);qe&&($e=qe)}return{answers:B&&B.length?B.length:0,contributors:$e?[$e]:[],createdAt:V,slug:ne,title:Ne}},[aa]:F=>{const{bannerSection:B,customLabel:D,slug:V,title:ne}=F;return{banner:or(B.image),slug:V,title:ne,customLabel:D}},people:F=>{const{id:B,name:D,jobTitle:V,location:ne,image:Ne}=F;return{profile:Ne,slug:B,title:D,text:V,secondaryText:ne}}};var CE=async({contentType:F,...B}={},D)=>{try{if(!Kr[F])throw new Error("Content type not supported");if(typeof Kr[F]!="function")throw new Error("No builder function for content type");return F!=="people"&&B.sys&&B.sys.type&&B.sys.type==="Link"&&(B=await Ti.read(F,B)),{contentType:F,...await Kr[F](B,D)}}catch(V){throw await j(V),new Error(`Cannot build carousel card: ${V.message}`)}},RE=async(F,B,D={})=>{try{if(!F.replies||F.replies.length===0)return F.replies=[],F;F.replies.sort((ne,Ne)=>new Date(ne.createdAt)-new Date(Ne.createdAt)),F.totalReplies=F.totalReplies||F.replies.length;let V=F.replies;if(D.limit&&D.pageNumber){const ne=D.limit*(D.pageNumber-1);V=F.replies.slice(ne,ne+D.limit)}for(const ne of V){if(ne.authorId===F.authorId){ne.author=F.author,ne.userLiked=!1;continue}ne.author=ne.authorId&&await Or(ne.authorId)||{};const[Ne]=B?await Cn({contentType:_.CONTENTFUL.REPLIES.TYPE,contentSlug:ne.slug}):[null];ne.userLiked=!!Ne}return F.replies=V,F}catch(V){throw await j(V),new Error(`Cannot build replies for answer: ${V.message}`)}},PE=d(408);const NE=F=>F&&PE.Buffer.from(F,"base64").toString("ascii");function IE({contentContext:F=null,errorsContext:B=null,gtmContext:D=null,origin:V}){try{const ne=(Ne=>{let $e=null;Ne?$e=Ne:typeof window<"u"&&($e=window.origin||window.location.origin),$e||new Error("Cannot select environment: Website not defined");let qe=null;const Lt=$e.match(b);return Lt?qe=Lt[1].split(T)[0]:$e===S?qe=w:$e.includes(v)&&(qe=P),qe||new Error(`Cannot select environment: No rule for website ${$e}`),qe})(V);return F&&(0,h.setContext)(Object.assign({},F,{environment:ne})),B&&(0,p.setContext)(Object.assign({},B,{environment:ne})),D&&((0,m.setContext)(Object.assign({},D,{environment:ne})),(0,m.setupGTM)()),(({environment:Ne})=>{const $e=(qe=>{if(!qe)throw new Error("Cannot map environment: Environment not defined");if(!R[qe])throw new Error(`Cannot map environment: No mapping found for environment ${qe}`);return R[qe]})(Ne);$.emailIds=L[$e]})(Object.assign({},{environment:ne})),ne}catch(ne){console.warn(`Cannot load SDK: ${ne.message}`)}}}(),f}()})})(gg);var cx=gg.exports;const ys={Off:"off",On:"on",Cookie:"cookie"},lx=e=>{const[t]=mg(),[r,n]=U.useState(null),[i,o]=U.useState(!1),[a,s]=U.useState(ys.Off);return U.useEffect(()=>{e&&cx.features.flags.read(e).then(u=>{s(u.featureState),n(null)}).catch(u=>{s(ys.Off),n(u)})},[e]),U.useEffect(()=>{switch(a){case ys.Off:o(!1);break;case ys.On:o(!0);break;case ys.Cookie:o(!!t[`feature-${e}`]);break;default:o(!1)}},[a,t]),{isFeatureActive:i,error:r}};function fx(e,t,r){var n=this,i=U.useRef(null),o=U.useRef(0),a=U.useRef(null),s=U.useRef([]),u=U.useRef(),l=U.useRef(),c=U.useRef(e),d=U.useRef(!0);U.useEffect(function(){c.current=e},[e]);var f=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var h=!!(r=r||{}).leading,p=!("trailing"in r)||!!r.trailing,m="maxWait"in r,_=m?Math.max(+r.maxWait||0,t):null;U.useEffect(function(){return d.current=!0,function(){d.current=!1}},[]);var S=U.useMemo(function(){var v=function(L){var $=s.current,q=u.current;return s.current=u.current=null,o.current=L,l.current=c.current.apply(q,$)},b=function(L,$){f&&cancelAnimationFrame(a.current),a.current=f?requestAnimationFrame(L):setTimeout(L,$)},T=function(L){if(!d.current)return!1;var $=L-i.current;return!i.current||$>=t||$<0||m&&L-o.current>=_},w=function(L){return a.current=null,p&&s.current?v(L):(s.current=u.current=null,l.current)},P=function L(){var $=Date.now();if(T($))return w($);if(d.current){var q=t-($-i.current),G=m?Math.min(q,_-($-o.current)):q;b(L,G)}},R=function(){var L=Date.now(),$=T(L);if(s.current=[].slice.call(arguments),u.current=n,i.current=L,$){if(!a.current&&d.current)return o.current=i.current,b(P,t),h?v(i.current):l.current;if(m)return b(P,t),v(i.current)}return a.current||b(P,t),l.current};return R.cancel=function(){a.current&&(f?cancelAnimationFrame(a.current):clearTimeout(a.current)),o.current=0,s.current=i.current=u.current=a.current=null},R.isPending=function(){return!!a.current},R.flush=function(){return a.current?w(Date.now()):l.current},R},[h,m,t,_,p,f]);return S}function hv(e,t,r){var n=r===void 0?{}:r,i=n.leading,o=n.trailing;return fx(e,t,{maxWait:t,leading:i===void 0||i,trailing:o===void 0||o})}let Zc;const ra=(e=!0,t=!1)=>{if(!e)return;const[r,n]=U.useState(0)||[!1,()=>{}];U.useEffect(()=>(o(),window.addEventListener("resize",a),()=>{clearTimeout(Zc),a.flush(),window.removeEventListener("resize",a)}),[]);const i=()=>window.innerWidth,o=()=>{n(i())},a=hv(()=>{i()!==r&&(t&&(clearTimeout(Zc),document.body.classList.add("is-resizing"),Zc=setTimeout(()=>{document.body.classList.remove("is-resizing")},550)),o())},500,{leading:!0});return r},dv=({scrollPosition:e=0,offset:t={down:0,up:10},callbacks:{scrollDown:r=()=>{},scrollUp:n=()=>{}}})=>{if(!window)return;const[i,o]=U.useState({current:0,past:0})||[!1,()=>{}],[a,s]=U.useState({scrollDown:!1,scrollUp:!1})||[!1,()=>{}];U.useEffect(()=>(u(),window.addEventListener("scroll",l),()=>{l.flush(),window.removeEventListener("scroll",l)}),[]);const u=()=>{const c=window.scrollY,d=i.current,f=c-d,h=f>0?"down":"up";if(o({current:c,past:d}),h==="down"){c>=e+t.down&&!a.scrollDown&&(!a.scrollUp||f>t.up)&&(r(),s({scrollUp:!1,scrollDown:!0}));return}Math.abs(f)>=t.up&&!a.scrollUp&&(n(),s({scrollUp:!0,scrollDown:!1}))},l=hv(()=>{u()},250);return i},hx=(e=[],t=!0)=>{e=Array.isArray(e)?e:[e];const r=U.useRef(!1),{hash:n}=Tt.useLocation();ni(()=>{if(n){if(r.current)return;const i=document.getElementById(n.replace("#",""));i&&(i.scrollIntoView(t?{behavior:"smooth"}:null),r.current=!0)}},e)};var Xa={exports:{}};Xa.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",s="[object Boolean]",u="[object Date]",l="[object Error]",c="[object Function]",d="[object GeneratorFunction]",f="[object Map]",h="[object Number]",p="[object Object]",m="[object Promise]",_="[object RegExp]",S="[object Set]",v="[object String]",b="[object Symbol]",T="[object WeakMap]",w="[object ArrayBuffer]",P="[object DataView]",R="[object Float32Array]",L="[object Float64Array]",$="[object Int8Array]",q="[object Int16Array]",G="[object Int32Array]",j="[object Uint8Array]",Y="[object Uint8ClampedArray]",re="[object Uint16Array]",K="[object Uint32Array]",M=/[\\^$.*+?()[\]{}|]/g,z=/\w*$/,ee=/^\[object .+?Constructor\]$/,fe=/^(?:0|[1-9]\d*)$/,J={};J[o]=J[a]=J[w]=J[P]=J[s]=J[u]=J[R]=J[L]=J[$]=J[q]=J[G]=J[f]=J[h]=J[p]=J[_]=J[S]=J[v]=J[b]=J[j]=J[Y]=J[re]=J[K]=!0,J[l]=J[c]=J[T]=!1;var X=typeof he=="object"&&he&&he.Object===Object&&he,le=typeof self=="object"&&self&&self.Object===Object&&self,de=X||le||Function("return this")(),Ve=t&&!t.nodeType&&t,te=Ve&&!0&&e&&!e.nodeType&&e,ae=te&&te.exports===Ve;function De(y,A){return y.set(A[0],A[1]),y}function Ie(y,A){return y.add(A),y}function xt(y,A){for(var I=-1,W=y?y.length:0;++I<W&&A(y[I],I,y)!==!1;);return y}function Rt(y,A){for(var I=-1,W=A.length,ge=y.length;++I<W;)y[ge+I]=A[I];return y}function Vt(y,A,I,W){var ge=-1,ce=y?y.length:0;for(W&&ce&&(I=y[++ge]);++ge<ce;)I=A(I,y[ge],ge,y);return I}function oe(y,A){for(var I=-1,W=Array(y);++I<y;)W[I]=A(I);return W}function st(y,A){return y==null?void 0:y[A]}function Je(y){var A=!1;if(y!=null&&typeof y.toString!="function")try{A=!!(y+"")}catch{}return A}function Wt(y){var A=-1,I=Array(y.size);return y.forEach(function(W,ge){I[++A]=[ge,W]}),I}function Sr(y,A){return function(I){return y(A(I))}}function tr(y){var A=-1,I=Array(y.size);return y.forEach(function(W){I[++A]=W}),I}var Mt=Array.prototype,vn=Function.prototype,zt=Object.prototype,Ft=de["__core-js_shared__"],Ze=function(){var y=/[^.]+$/.exec(Ft&&Ft.keys&&Ft.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),Qt=vn.toString,yt=zt.hasOwnProperty,at=zt.toString,En=RegExp("^"+Qt.call(yt).replace(M,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=ae?de.Buffer:void 0,g=de.Symbol,E=de.Uint8Array,C=Sr(Object.getPrototypeOf,Object),k=Object.create,H=zt.propertyIsEnumerable,Q=Mt.splice,me=Object.getOwnPropertySymbols,Ce=x?x.isBuffer:void 0,Re=Sr(Object.keys,Object),Pe=Nt(de,"DataView"),Ee=Nt(de,"Map"),Pt=Nt(de,"Promise"),qr=Nt(de,"Set"),_n=Nt(de,"WeakMap"),Tr=Nt(Object,"create"),bn=ut(Pe),xr=ut(Ee),wn=ut(Pt),Sn=ut(qr),Tn=ut(_n),rr=g?g.prototype:void 0,fi=rr?rr.valueOf:void 0;function Yt(y){var A=-1,I=y?y.length:0;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function Eo(){this.__data__=Tr?Tr(null):{}}function _o(y){return this.has(y)&&delete this.__data__[y]}function bo(y){var A=this.__data__;if(Tr){var I=A[y];return I===n?void 0:I}return yt.call(A,y)?A[y]:void 0}function hi(y){var A=this.__data__;return Tr?A[y]!==void 0:yt.call(A,y)}function xn(y,A){var I=this.__data__;return I[y]=Tr&&A===void 0?n:A,this}Yt.prototype.clear=Eo,Yt.prototype.delete=_o,Yt.prototype.get=bo,Yt.prototype.has=hi,Yt.prototype.set=xn;function We(y){var A=-1,I=y?y.length:0;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function On(){this.__data__=[]}function An(y){var A=this.__data__,I=Vr(A,y);if(I<0)return!1;var W=A.length-1;return I==W?A.pop():Q.call(A,I,1),!0}function Or(y){var A=this.__data__,I=Vr(A,y);return I<0?void 0:A[I][1]}function di(y){return Vr(this.__data__,y)>-1}function wo(y,A){var I=this.__data__,W=Vr(I,y);return W<0?I.push([y,A]):I[W][1]=A,this}We.prototype.clear=On,We.prototype.delete=An,We.prototype.get=Or,We.prototype.has=di,We.prototype.set=wo;function et(y){var A=-1,I=y?y.length:0;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function So(){this.__data__={hash:new Yt,map:new(Ee||We),string:new Yt}}function To(y){return Cr(this,y).delete(y)}function xo(y){return Cr(this,y).get(y)}function Oo(y){return Cr(this,y).has(y)}function Cn(y,A){return Cr(this,y).set(y,A),this}et.prototype.clear=So,et.prototype.delete=To,et.prototype.get=xo,et.prototype.has=Oo,et.prototype.set=Cn;function ht(y){this.__data__=new We(y)}function Ao(){this.__data__=new We}function Co(y){return this.__data__.delete(y)}function Ro(y){return this.__data__.get(y)}function Po(y){return this.__data__.has(y)}function No(y,A){var I=this.__data__;if(I instanceof We){var W=I.__data__;if(!Ee||W.length<r-1)return W.push([y,A]),this;I=this.__data__=new et(W)}return I.set(y,A),this}ht.prototype.clear=Ao,ht.prototype.delete=Co,ht.prototype.get=Ro,ht.prototype.has=Po,ht.prototype.set=No;function Gr(y,A){var I=Qr(y)||zr(y)?oe(y.length,String):[],W=I.length,ge=!!W;for(var ce in y)(A||yt.call(y,ce))&&!(ge&&(ce=="length"||Ho(ce,W)))&&I.push(ce);return I}function pi(y,A,I){var W=y[A];(!(yt.call(y,A)&&_i(W,I))||I===void 0&&!(A in y))&&(y[A]=I)}function Vr(y,A){for(var I=y.length;I--;)if(_i(y[I][0],A))return I;return-1}function Ot(y,A){return y&&Nn(A,Si(A),y)}function Rn(y,A,I,W,ge,ce,_e){var be;if(W&&(be=ce?W(y,ge,ce,_e):W(y)),be!==void 0)return be;if(!Dt(y))return y;var He=Qr(y);if(He){if(be=jo(y),!A)return Uo(y,be)}else{var Ae=Xt(y),tt=Ae==c||Ae==d;if(bi(y))return Wr(y,A);if(Ae==p||Ae==o||tt&&!ce){if(Je(y))return ce?y:{};if(be=It(tt?{}:y),!A)return $o(y,Ot(be,y))}else{if(!J[Ae])return ce?y:{};be=nr(y,Ae,Rn,A)}}_e||(_e=new ht);var ct=_e.get(y);if(ct)return ct;if(_e.set(y,be),!He)var Ge=I?In(y):Si(y);return xt(Ge||y,function(rt,Qe){Ge&&(Qe=rt,rt=y[Qe]),pi(be,Qe,Rn(rt,A,I,W,Qe,y,_e))}),be}function Io(y){return Dt(y)?k(y):{}}function Lo(y,A,I){var W=A(y);return Qr(y)?W:Rt(W,I(y))}function ko(y){return at.call(y)}function Mo(y){if(!Dt(y)||Go(y))return!1;var A=Ln(y)||Je(y)?En:ee;return A.test(ut(y))}function Fo(y){if(!vi(y))return Re(y);var A=[];for(var I in Object(y))yt.call(y,I)&&I!="constructor"&&A.push(I);return A}function Wr(y,A){if(A)return y.slice();var I=new y.constructor(y.length);return y.copy(I),I}function Pn(y){var A=new y.constructor(y.byteLength);return new E(A).set(new E(y)),A}function Ar(y,A){var I=A?Pn(y.buffer):y.buffer;return new y.constructor(I,y.byteOffset,y.byteLength)}function mi(y,A,I){var W=A?I(Wt(y),!0):Wt(y);return Vt(W,De,new y.constructor)}function gi(y){var A=new y.constructor(y.source,z.exec(y));return A.lastIndex=y.lastIndex,A}function yi(y,A,I){var W=A?I(tr(y),!0):tr(y);return Vt(W,Ie,new y.constructor)}function Do(y){return fi?Object(fi.call(y)):{}}function Bo(y,A){var I=A?Pn(y.buffer):y.buffer;return new y.constructor(I,y.byteOffset,y.length)}function Uo(y,A){var I=-1,W=y.length;for(A||(A=Array(W));++I<W;)A[I]=y[I];return A}function Nn(y,A,I,W){I||(I={});for(var ge=-1,ce=A.length;++ge<ce;){var _e=A[ge],be=W?W(I[_e],y[_e],_e,I,y):void 0;pi(I,_e,be===void 0?y[_e]:be)}return I}function $o(y,A){return Nn(y,Kt(y),A)}function In(y){return Lo(y,Si,Kt)}function Cr(y,A){var I=y.__data__;return qo(A)?I[typeof A=="string"?"string":"hash"]:I.map}function Nt(y,A){var I=st(y,A);return Mo(I)?I:void 0}var Kt=me?Sr(me,Object):Ti,Xt=ko;(Pe&&Xt(new Pe(new ArrayBuffer(1)))!=P||Ee&&Xt(new Ee)!=f||Pt&&Xt(Pt.resolve())!=m||qr&&Xt(new qr)!=S||_n&&Xt(new _n)!=T)&&(Xt=function(y){var A=at.call(y),I=A==p?y.constructor:void 0,W=I?ut(I):void 0;if(W)switch(W){case bn:return P;case xr:return f;case wn:return m;case Sn:return S;case Tn:return T}return A});function jo(y){var A=y.length,I=y.constructor(A);return A&&typeof y[0]=="string"&&yt.call(y,"index")&&(I.index=y.index,I.input=y.input),I}function It(y){return typeof y.constructor=="function"&&!vi(y)?Io(C(y)):{}}function nr(y,A,I,W){var ge=y.constructor;switch(A){case w:return Pn(y);case s:case u:return new ge(+y);case P:return Ar(y,W);case R:case L:case $:case q:case G:case j:case Y:case re:case K:return Bo(y,W);case f:return mi(y,W,I);case h:case v:return new ge(y);case _:return gi(y);case S:return yi(y,W,I);case b:return Do(y)}}function Ho(y,A){return A=A??i,!!A&&(typeof y=="number"||fe.test(y))&&y>-1&&y%1==0&&y<A}function qo(y){var A=typeof y;return A=="string"||A=="number"||A=="symbol"||A=="boolean"?y!=="__proto__":y===null}function Go(y){return!!Ze&&Ze in y}function vi(y){var A=y&&y.constructor,I=typeof A=="function"&&A.prototype||zt;return y===I}function ut(y){if(y!=null){try{return Qt.call(y)}catch{}try{return y+""}catch{}}return""}function Ei(y){return Rn(y,!0,!0)}function _i(y,A){return y===A||y!==y&&A!==A}function zr(y){return Vo(y)&&yt.call(y,"callee")&&(!H.call(y,"callee")||at.call(y)==o)}var Qr=Array.isArray;function Yr(y){return y!=null&&wi(y.length)&&!Ln(y)}function Vo(y){return kn(y)&&Yr(y)}var bi=Ce||Wo;function Ln(y){var A=Dt(y)?at.call(y):"";return A==c||A==d}function wi(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=i}function Dt(y){var A=typeof y;return!!y&&(A=="object"||A=="function")}function kn(y){return!!y&&typeof y=="object"}function Si(y){return Yr(y)?Gr(y):Fo(y)}function Ti(){return[]}function Wo(){return!1}e.exports=Ei})(Xa,Xa.exports);var dx=Xa.exports;const px=_r(dx);var mx="Expected a function",pv="__lodash_hash_undefined__",mv=1/0,gx=9007199254740991,yx="[object Function]",vx="[object GeneratorFunction]",Ex="[object Symbol]",_x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bx=/^\w*$/,wx=/^\./,Sx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tx=/[\\^$.*+?()[\]{}|]/g,xx=/\\(\\)?/g,Ox=/^\[object .+?Constructor\]$/,Ax=/^(?:0|[1-9]\d*)$/,Cx=typeof he=="object"&&he&&he.Object===Object&&he,Rx=typeof self=="object"&&self&&self.Object===Object&&self,Uf=Cx||Rx||Function("return this")();function Px(e,t){return e==null?void 0:e[t]}function Nx(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Ix=Array.prototype,Lx=Function.prototype,gv=Object.prototype,el=Uf["__core-js_shared__"],Zp=function(){var e=/[^.]+$/.exec(el&&el.keys&&el.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yv=Lx.toString,Eu=gv.hasOwnProperty,vv=gv.toString,kx=RegExp("^"+yv.call(Eu).replace(Tx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),em=Uf.Symbol,Mx=Ix.splice,Fx=Ev(Uf,"Map"),Cs=Ev(Object,"create"),tm=em?em.prototype:void 0,rm=tm?tm.toString:void 0;function ii(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Dx(){this.__data__=Cs?Cs(null):{}}function Bx(e){return this.has(e)&&delete this.__data__[e]}function Ux(e){var t=this.__data__;if(Cs){var r=t[e];return r===pv?void 0:r}return Eu.call(t,e)?t[e]:void 0}function $x(e){var t=this.__data__;return Cs?t[e]!==void 0:Eu.call(t,e)}function jx(e,t){var r=this.__data__;return r[e]=Cs&&t===void 0?pv:t,this}ii.prototype.clear=Dx;ii.prototype.delete=Bx;ii.prototype.get=Ux;ii.prototype.has=$x;ii.prototype.set=jx;function po(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Hx(){this.__data__=[]}function qx(e){var t=this.__data__,r=_u(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Mx.call(t,r,1),!0}function Gx(e){var t=this.__data__,r=_u(t,e);return r<0?void 0:t[r][1]}function Vx(e){return _u(this.__data__,e)>-1}function Wx(e,t){var r=this.__data__,n=_u(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}po.prototype.clear=Hx;po.prototype.delete=qx;po.prototype.get=Gx;po.prototype.has=Vx;po.prototype.set=Wx;function ui(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function zx(){this.__data__={hash:new ii,map:new(Fx||po),string:new ii}}function Qx(e){return bu(this,e).delete(e)}function Yx(e){return bu(this,e).get(e)}function Kx(e){return bu(this,e).has(e)}function Xx(e,t){return bu(this,e).set(e,t),this}ui.prototype.clear=zx;ui.prototype.delete=Qx;ui.prototype.get=Yx;ui.prototype.has=Kx;ui.prototype.set=Xx;function Jx(e,t,r){var n=e[t];(!(Eu.call(e,t)&&_v(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function _u(e,t){for(var r=e.length;r--;)if(_v(e[r][0],t))return r;return-1}function Zx(e){if(!Ja(e)||sO(e))return!1;var t=lO(e)||Nx(e)?kx:Ox;return t.test(cO(e))}function eO(e,t,r,n){if(!Ja(e))return e;t=iO(t,e)?[t]:rO(t);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var u=uO(t[i]),l=r;if(i!=a){var c=s[u];l=n?n(c,u,s):void 0,l===void 0&&(l=Ja(c)?c:nO(t[i+1])?[]:{})}Jx(s,u,l),s=s[u]}return e}function tO(e){if(typeof e=="string")return e;if(jf(e))return rm?rm.call(e):"";var t=e+"";return t=="0"&&1/e==-mv?"-0":t}function rO(e){return bv(e)?e:aO(e)}function bu(e,t){var r=e.__data__;return oO(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ev(e,t){var r=Px(e,t);return Zx(r)?r:void 0}function nO(e,t){return t=t??gx,!!t&&(typeof e=="number"||Ax.test(e))&&e>-1&&e%1==0&&e<t}function iO(e,t){if(bv(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||jf(e)?!0:bx.test(e)||!_x.test(e)||t!=null&&e in Object(t)}function oO(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function sO(e){return!!Zp&&Zp in e}var aO=$f(function(e){e=hO(e);var t=[];return wx.test(e)&&t.push(""),e.replace(Sx,function(r,n,i,o){t.push(i?o.replace(xx,"$1"):n||r)}),t});function uO(e){if(typeof e=="string"||jf(e))return e;var t=e+"";return t=="0"&&1/e==-mv?"-0":t}function cO(e){if(e!=null){try{return yv.call(e)}catch{}try{return e+""}catch{}}return""}function $f(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(mx);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a),a};return r.cache=new($f.Cache||ui),r}$f.Cache=ui;function _v(e,t){return e===t||e!==e&&t!==t}var bv=Array.isArray;function lO(e){var t=Ja(e)?vv.call(e):"";return t==yx||t==vx}function Ja(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function fO(e){return!!e&&typeof e=="object"}function jf(e){return typeof e=="symbol"||fO(e)&&vv.call(e)==Ex}function hO(e){return e==null?"":tO(e)}function dO(e,t,r){return e==null?e:eO(e,t,r)}var pO=dO;const mO=_r(pO),gO=(e,t)=>{Array.isArray(t)||(t=[t]);const r=px(e);return t.forEach(({type:n,value:i})=>{mO(r,n,i)}),r},wv=e=>{const t=[];return e.forEach(r=>{const n=parseInt(r);isNaN(n)||t.push(n)}),t.sort((r,n)=>r-n)},Sv=(e,t,r)=>{let n=r.mobile;for(const i in t){const o=parseInt(String(t[i]));if(e>=o)n=r[o];else if(e<o)break}return n},yO=(e,t="en")=>new Date(e).toLocaleString(t,{weekday:"long",day:"numeric",month:"short",year:"numeric"}),vO=e=>{let o;try{o=new Date().getTime()-new Date(e).getTime()}catch{return""}const a=o/36e5,s=Math.floor(o/864e5);if(s<1)return a<1?{path:"now"}:{path:"hours",number:Math.floor(a)};if(s<7)return{path:"days",number:s};const u=Math.floor(s/7);return u<=52?{path:"weeks",number:u}:{path:"years",number:Math.floor(s/365)}},EO=e=>new Promise(t=>setTimeout(t,e)),Hf={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_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_report_subject:"Report a post on Apolitical",discussion_report_body:`I'd like to report the {contentType} <{contentSlug}> at {contentUrl}.
62
+
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
+
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_noPermission:"You do not have permission to {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_likes_more:"and {number} more...",discussion_likes_like:"Like this {action}",discussion_likes_unlike:"Unlike {action}",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..."},_O={collapsibleSection_summary:"En savoir plus"},bO=Object.freeze(Object.defineProperty({__proto__:null,en:Hf,fr:_O},Symbol.toStringTag,{value:"Module"})),ur=(e,t,r,n,i={})=>{let o="";return`${t}_${r}`in Hf?o=e({id:`${t}_${r}`},i):o=e({id:t},{[n]:r,...i}),o},wO=(e,t,r)=>{if(!e||e===0)return"0";t||(t=0),r||(r=["k","m","b","t"]);let n=e.toString();t=Math.pow(10,t);for(let i=r.length-1;i>=0;i--){const o=Math.pow(10,(i+1)*3);if(o<=e){e=Math.round(e*t/o)/t,e===1e3&&i<r.length-1&&(e=1,i++),n=`${e}${r[i]}`;break}}return n},Tv=(e,t)=>U.Children.map(e,r=>U.cloneElement(r,{...t})),SO=e=>e.replace(/\s+/g,"").length>0,ze=({variant:e="primary",size:t="medium",styling:r={muted:!1,fullWidth:!1},icon:n=!1,href:i=!1,element:o="button",onClick:a=!1,className:s="",disabled:u=!1,screenreaderText:l=!1,children:c=!1,...d})=>{const h=ra(typeof t=="object");if(typeof t=="object"&&typeof h=="number"){const _=Object.assign({},t),S=wv(Object.keys(_));t=Sv(h,S,_)}const p=[];typeof t=="string"&&p.push(t),n&&(p.push("icon"),typeof n=="object"?(p.push(n.icon),n.position?p.push(n.position):p.push("left"),n.hover&&p.push(`hover_${n.hover}`),n.animate&&(p.push("animate"),typeof n.animate=="string"&&p.push(n.animate))):(p.push(n),!n.includes("right")&&!n.includes("left")&&p.push("left"))),r.muted&&p.push("muted"),r.fullWidth&&p.push("full-width");const m={...d,className:se(e,s,p,{"no-text":!c,disabled:u,button:i}),onClick:_=>{(!i||i[0]==="#")&&a&&(_.preventDefault(),_.stopPropagation()),a&&a(_)},disabled:typeof u=="object"&&"isClickable"in u?!u.isClickable:u};return i&&(o="a",m.href=i),U.createElement(o,m,c||(l?O.jsx(lt,{showOnFocus:!1,children:l}):null))},na=({buttons:e,className:t="",...r})=>{const n=e.length>1?"ul":"p",i=e.map((o,a)=>n==="p"?O.jsx(ze,{...o},a):O.jsx("li",{children:O.jsx(ze,{...o})},a));return U.createElement(n,{className:se("button-wrapper",t),...r,children:i})};const Za=({maxWidth:e=!1})=>{const t=e?{"--max-width":`${e/16}rem`}:{};return O.jsx("hr",{className:se({"has-max-width":e}),style:t})},wu=({href:e,children:t,className:r="",onClick:n,gtmContext:i,gtmType:o,...a})=>{if(e){const s={...a};return n&&(s.onClick=n),i&&(s["data-gtm-event-context"]=i),o&&(s["data-gtm-event-type"]=o),O.jsx(Tt.Link,{to:e,className:se("gtm-trackable",r),...s,children:t})}return t},nm={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"}},TO=({aspect:e,range:t,sizes:r})=>{const{range:n,sizes:i}=e?nm[e]:nm.fallback;return{range:t&&t.length>0?t:n,sizes:r||i}},xO=({format:e,height:t,query:r,width:n})=>{let i=`w=${n}&h=${t}`;return i=e?`${i}&fm=${e}`:i,i=r?`${i}&${r}`:i,i},tl=({format:e,range:t,url:r,query:n})=>t.map(({height:i,width:o})=>`${r}?${xO({format:e,height:i,query:n,width:o})} ${o}w`).join(", ");const xv=({image:e,className:t,testId:r})=>{const{description:n,height:i,type:o,query:a,url:s,width:u,loading:l,decoding:c,fetchPriority:d}=e,{range:f,sizes:h}=TO(e),p=tl({format:"avif",query:a,range:f,url:s}),m=tl({format:"webp",query:a,range:f,url:s}),_=tl({format:"",query:a,range:f,url:s});return O.jsxs("picture",{className:t,children:[o!=="image/gif"&&O.jsx("source",{type:"image/avif",srcSet:p,sizes:h,"data-testid":"source"}),O.jsx("source",{type:"image/webp",srcSet:m,sizes:h,"data-testid":"source"}),O.jsx("img",{srcSet:_,sizes:h,src:s,alt:n,loading:l||"lazy",decoding:c||"async",fetchpriority:d||"auto",width:u,height:i,"data-testid":r||"image"})]})};var Hl=function(e,t){return Hl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Hl(e,t)};function qt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Hl(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ue=function(){return ue=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ue.apply(this,arguments)};function oo(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function gr(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function Ov(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}var Se;(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"})(Se||(Se={}));var je;(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"})(je||(je={}));var so;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(so||(so={}));function im(e){return e.type===je.literal}function OO(e){return e.type===je.argument}function Av(e){return e.type===je.number}function Cv(e){return e.type===je.date}function Rv(e){return e.type===je.time}function Pv(e){return e.type===je.select}function Nv(e){return e.type===je.plural}function AO(e){return e.type===je.pound}function Iv(e){return e.type===je.tag}function Lv(e){return!!(e&&typeof e=="object"&&e.type===so.number)}function ql(e){return!!(e&&typeof e=="object"&&e.type===so.dateTime)}var kv=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,CO=/(?:[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 RO(e){var t={};return e.replace(CO,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===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"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-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=n===4?"short":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-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"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-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"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<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 PO=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function NO(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(PO).filter(function(f){return f.length>0}),r=[],n=0,i=t;n<i.length;n++){var o=i[n],a=o.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var s=a[0],u=a.slice(1),l=0,c=u;l<c.length;l++){var d=c[l];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:s,options:u})}return r}function IO(e){return e.replace(/^(.*?)-/,"")}var om=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Mv=/^(@+)?(\+|#+)?[rs]?$/g,LO=/(\*)(0+)|(#+)(0+)|(0+)/g,Fv=/^(0+)$/;function sm(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Mv,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function Dv(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 kO(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 r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Fv.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function am(e){var t={},r=Dv(e);return r||t}function MO(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.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=IO(i.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=ue(ue(ue({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return ue(ue({},u),am(l))},{}));continue;case"engineering":t=ue(ue(ue({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return ue(ue({},u),am(l))},{}));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(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(LO,function(u,l,c,d,f,h){if(l)t.minimumIntegerDigits=c.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Fv.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(om.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(om,function(u,l,c,d,f,h){return c==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:f&&h?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+h.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?t=ue(ue({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=ue(ue({},t),sm(o)));continue}if(Mv.test(i.stem)){t=ue(ue({},t),sm(i.stem));continue}var a=Dv(i.stem);a&&(t=ue(ue({},t),a));var s=kO(i.stem);s&&(t=ue(ue({},t),s))}return t}var Na={"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 FO(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var a=1+(o&1),s=o<2?1:3+(o>>1),u="a",l=DO(t);for((l=="H"||l=="k")&&(s=0);s-- >0;)r+=u;for(;a-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function DO(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 r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=Na[n||""]||Na[r||""]||Na["".concat(r,"-001")]||Na["001"];return i[0]}var rl,BO=new RegExp("^".concat(kv.source,"*")),UO=new RegExp("".concat(kv.source,"*$"));function xe(e,t){return{start:e,end:t}}var $O=!!String.prototype.startsWith,jO=!!String.fromCodePoint,HO=!!Object.fromEntries,qO=!!String.prototype.codePointAt,GO=!!String.prototype.trimStart,VO=!!String.prototype.trimEnd,WO=!!Number.isSafeInteger,zO=WO?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Gl=!0;try{var QO=Uv("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Gl=((rl=QO.exec("a"))===null||rl===void 0?void 0:rl[0])==="a"}catch{Gl=!1}var um=$O?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Vl=jO?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,o=0,a;i>o;){if(a=t[o++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},cm=HO?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var o=i[n],a=o[0],s=o[1];r[a]=s}return r},Bv=qO?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},YO=GO?function(t){return t.trimStart()}:function(t){return t.replace(BO,"")},KO=VO?function(t){return t.trimEnd()}:function(t){return t.replace(UO,"")};function Uv(e,t){return new RegExp(e,t)}var Wl;if(Gl){var lm=Uv("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Wl=function(t,r){var n;lm.lastIndex=r;var i=lm.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else Wl=function(t,r){for(var n=[];;){var i=Bv(t,r);if(i===void 0||$v(i)||eA(i))break;n.push(i),r+=i>=65536?2:1}return Vl.apply(void 0,n)};var XO=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.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,r,n){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var a=this.parseArgument(t,n);if(a.err)return a;i.push(a.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:je.pound,location:xe(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Se.UNMATCHED_CLOSING_TAG,xe(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&zl(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:je.literal,value:"<".concat(i,"/>"),location:xe(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var a=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!zl(this.char()))return this.error(Se.INVALID_TAG,xe(s,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(Se.UNMATCHED_CLOSING_TAG,xe(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:je.tag,value:i,children:a,location:xe(n,this.clonePosition())},err:null}:this.error(Se.INVALID_TAG,xe(s,this.clonePosition())))}else return this.error(Se.UNCLOSED_TAG,xe(n,this.clonePosition()))}else return this.error(Se.INVALID_TAG,xe(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ZO(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var a=this.tryParseUnquoted(t,r);if(a){i+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var u=xe(n,this.clonePosition());return{val:{type:je.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!JO(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 r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Vl.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Vl(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Se.EXPECT_ARGUMENT_CLOSING_BRACE,xe(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Se.EMPTY_ARGUMENT,xe(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(Se.MALFORMED_ARGUMENT,xe(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Se.EXPECT_ARGUMENT_CLOSING_BRACE,xe(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:je.argument,value:i,location:xe(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Se.EXPECT_ARGUMENT_CLOSING_BRACE,xe(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(Se.MALFORMED_ARGUMENT,xe(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Wl(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),a=xe(t,o);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(s){case"":return this.error(Se.EXPECT_ARGUMENT_TYPE,xe(a,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var f=KO(d.val);if(f.length===0)return this.error(Se.EXPECT_ARGUMENT_STYLE,xe(this.clonePosition(),this.clonePosition()));var h=xe(c,this.clonePosition());l={style:f,styleLocation:h}}var p=this.tryParseArgumentClose(i);if(p.err)return p;var m=xe(i,this.clonePosition());if(l&&um(l==null?void 0:l.style,"::",0)){var _=YO(l.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(_,l.styleLocation);return d.err?d:{val:{type:je.number,value:n,location:m,style:d.val},err:null}}else{if(_.length===0)return this.error(Se.EXPECT_DATE_TIME_SKELETON,m);var S=_;this.locale&&(S=FO(_,this.locale));var f={type:so.dateTime,pattern:S,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?RO(S):{}},v=s==="date"?je.date:je.time;return{val:{type:v,value:n,location:m,style:f},err:null}}}return{val:{type:s==="number"?je.number:s==="date"?je.date:je.time,value:n,location:m,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Se.EXPECT_SELECT_ARGUMENT_OPTIONS,xe(b,ue({},b)));this.bumpSpace();var T=this.parseIdentifierIfPossible(),w=0;if(s!=="select"&&T.value==="offset"){if(!this.bumpIf(":"))return this.error(Se.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,xe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(Se.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Se.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),T=this.parseIdentifierIfPossible(),w=d.val}var P=this.tryParsePluralOrSelectOptions(t,s,r,T);if(P.err)return P;var p=this.tryParseArgumentClose(i);if(p.err)return p;var R=xe(i,this.clonePosition());return s==="select"?{val:{type:je.select,value:n,options:cm(P.val),location:R},err:null}:{val:{type:je.plural,value:n,options:cm(P.val),offset:w,pluralType:s==="plural"?"cardinal":"ordinal",location:R},err:null}}default:return this.error(Se.INVALID_ARGUMENT_TYPE,xe(a,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Se.EXPECT_ARGUMENT_CLOSING_BRACE,xe(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Se.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,xe(i,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(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=NO(t)}catch{return this.error(Se.INVALID_NUMBER_SKELETON,r)}return{val:{type:so.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?MO(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,a=!1,s=[],u=new Set,l=i.value,c=i.location;;){if(l.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(Se.EXPECT_PLURAL_ARGUMENT_SELECTOR,Se.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=xe(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?Se.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Se.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);l==="other"&&(a=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?Se.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Se.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,xe(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,r,n);if(p.err)return p;var m=this.tryParseArgumentClose(h);if(m.err)return m;s.push([l,{value:p.val,location:xe(h,this.clonePosition())}]),u.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,c=o.location}return s.length===0?this.error(r==="select"?Se.EXPECT_SELECT_ARGUMENT_SELECTOR:Se.EXPECT_PLURAL_ARGUMENT_SELECTOR,xe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Se.MISSING_OTHER_CLAUSE,xe(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,a=a*10+(s-48),this.bump();else break}var u=xe(i,this.clonePosition());return o?(a*=n,zO(a)?{val:a,err:null}:this.error(r,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 r=Bv(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},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(um(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!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 r=this.offset();if(r===t)break;if(r>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()&&$v(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function zl(e){return e>=97&&e<=122||e>=65&&e<=90}function JO(e){return zl(e)||e===47}function ZO(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 $v(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function eA(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 Ql(e){e.forEach(function(t){if(delete t.location,Pv(t)||Nv(t))for(var r in t.options)delete t.options[r].location,Ql(t.options[r].value);else Av(t)&&Lv(t.style)||(Cv(t)||Rv(t))&&ql(t.style)?delete t.style.location:Iv(t)&&Ql(t.children)})}function tA(e,t){t===void 0&&(t={}),t=ue({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new XO(e,t).parse();if(r.err){var n=SyntaxError(Se[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Ql(r.val),r.val}function cr(e,t){var r=t&&t.cache?t.cache:aA,n=t&&t.serializer?t.serializer:sA,i=t&&t.strategy?t.strategy:nA;return i(e,{cache:r,serializer:n})}function rA(e){return e==null||typeof e=="number"||typeof e=="boolean"}function jv(e,t,r,n){var i=rA(n)?n:r(n),o=t.get(i);return typeof o>"u"&&(o=e.call(this,n),t.set(i,o)),o}function Hv(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,n),t.set(i,o)),o}function qf(e,t,r,n,i){return r.bind(t,e,n,i)}function nA(e,t){var r=e.length===1?jv:Hv;return qf(e,this,r,t.cache.create(),t.serializer)}function iA(e,t){return qf(e,this,Hv,t.cache.create(),t.serializer)}function oA(e,t){return qf(e,this,jv,t.cache.create(),t.serializer)}var sA=function(){return JSON.stringify(arguments)};function Gf(){this.cache=Object.create(null)}Gf.prototype.get=function(e){return this.cache[e]};Gf.prototype.set=function(e,t){this.cache[e]=t};var aA={create:function(){return new Gf}},lr={variadic:iA,monadic:oA},yr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(yr||(yr={}));var yn=function(e){qt(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),fm=function(e){qt(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),yr.INVALID_VALUE,o)||this}return t}(yn),uA=function(e){qt(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),yr.INVALID_VALUE,i)||this}return t}(yn),cA=function(e){qt(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),yr.MISSING_VALUE,n)||this}return t}(yn),_t;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(_t||(_t={}));function lA(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==_t.literal||r.type!==_t.literal?t.push(r):n.value+=r.value,t},[])}function qv(e){return typeof e=="function"}function ja(e,t,r,n,i,o,a){if(e.length===1&&im(e[0]))return[{type:_t.literal,value:e[0].value}];for(var s=[],u=0,l=e;u<l.length;u++){var c=l[u];if(im(c)){s.push({type:_t.literal,value:c.value});continue}if(AO(c)){typeof o=="number"&&s.push({type:_t.literal,value:r.getNumberFormat(t).format(o)});continue}var d=c.value;if(!(i&&d in i))throw new cA(d,a);var f=i[d];if(OO(c)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),s.push({type:typeof f=="string"?_t.literal:_t.object,value:f});continue}if(Cv(c)){var h=typeof c.style=="string"?n.date[c.style]:ql(c.style)?c.style.parsedOptions:void 0;s.push({type:_t.literal,value:r.getDateTimeFormat(t,h).format(f)});continue}if(Rv(c)){var h=typeof c.style=="string"?n.time[c.style]:ql(c.style)?c.style.parsedOptions:n.time.medium;s.push({type:_t.literal,value:r.getDateTimeFormat(t,h).format(f)});continue}if(Av(c)){var h=typeof c.style=="string"?n.number[c.style]:Lv(c.style)?c.style.parsedOptions:void 0;h&&h.scale&&(f=f*(h.scale||1)),s.push({type:_t.literal,value:r.getNumberFormat(t,h).format(f)});continue}if(Iv(c)){var p=c.children,m=c.value,_=i[m];if(!qv(_))throw new uA(m,"function",a);var S=ja(p,t,r,n,i,o),v=_(S.map(function(w){return w.value}));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map(function(w){return{type:typeof w=="string"?_t.literal:_t.object,value:w}}))}if(Pv(c)){var b=c.options[f]||c.options.other;if(!b)throw new fm(c.value,f,Object.keys(c.options),a);s.push.apply(s,ja(b.value,t,r,n,i));continue}if(Nv(c)){var b=c.options["=".concat(f)];if(!b){if(!Intl.PluralRules)throw new yn(`Intl.PluralRules is not available in this environment.
66
+ Try polyfilling it using "@formatjs/intl-pluralrules"
67
+ `,yr.MISSING_INTL_API,a);var T=r.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0));b=c.options[T]||c.options.other}if(!b)throw new fm(c.value,f,Object.keys(c.options),a);s.push.apply(s,ja(b.value,t,r,n,i,f-(c.offset||0)));continue}}return lA(s)}function fA(e,t){return t?ue(ue(ue({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=ue(ue({},e[n]),t[n]||{}),r},{})):e}function hA(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=fA(e[n],t[n]),r},ue({},e)):e}function nl(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function dA(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:cr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,gr([void 0],r,!1)))},{cache:nl(e.number),strategy:lr.variadic}),getDateTimeFormat:cr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,gr([void 0],r,!1)))},{cache:nl(e.dateTime),strategy:lr.variadic}),getPluralRules:cr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,gr([void 0],r,!1)))},{cache:nl(e.pluralRules),strategy:lr.variadic})}}var Gv=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=o.formatToParts(u);if(l.length===1)return l[0].value;var c=l.reduce(function(d,f){return!d.length||f.type!==_t.literal||typeof d[d.length-1]!="string"?d.push(f.value):d[d.length-1]+=f.value,d},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(u){return ja(o.ast,o.locales,o.formatters,o.formats,u,void 0,o.message)},this.resolvedOptions=function(){var u;return{locale:((u=o.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var s=oo(a,["formatters"]);this.ast=e.__parse(t,ue(ue({},s),{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=hA(e.formats,n),this.formatters=i&&i.formatters||dA(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 r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=tA,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}(),oi;(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"})(oi||(oi={}));var ia=function(e){qt(t,e);function t(r,n,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return o=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,`
68
+ `).concat(a?`
69
+ `.concat(a.message,`
70
+ `).concat(a.stack):""))||this,o.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o,t),o}return t}(Error),pA=function(e){qt(t,e);function t(r,n){return e.call(this,oi.UNSUPPORTED_FORMATTER,r,n)||this}return t}(ia),mA=function(e){qt(t,e);function t(r,n){return e.call(this,oi.INVALID_CONFIG,r,n)||this}return t}(ia),hm=function(e){qt(t,e);function t(r,n){return e.call(this,oi.MISSING_DATA,r,n)||this}return t}(ia),Gt=function(e){qt(t,e);function t(r,n,i){var o=e.call(this,oi.FORMAT_ERROR,"".concat(r,`
71
+ Locale: `).concat(n,`
72
+ `),i)||this;return o.locale=n,o}return t}(ia),il=function(e){qt(t,e);function t(r,n,i,o){var a=e.call(this,"".concat(r,`
73
+ MessageID: `).concat(i==null?void 0:i.id,`
74
+ Default Message: `).concat(i==null?void 0:i.defaultMessage,`
75
+ Description: `).concat(i==null?void 0:i.description,`
76
+ `),n,o)||this;return a.descriptor=i,a.locale=n,a}return t}(Gt),gA=function(e){qt(t,e);function t(r,n){var i=e.call(this,oi.MISSING_TRANSLATION,'Missing message: "'.concat(r.id,'" for locale "').concat(n,'", using ').concat(r.defaultMessage?"default message (".concat(typeof r.defaultMessage=="string"?r.defaultMessage:r.defaultMessage.map(function(o){var a;return(a=o.value)!==null&&a!==void 0?a:JSON.stringify(o)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=r,i}return t}(ia);function ci(e,t,r){return r===void 0&&(r={}),t.reduce(function(n,i){return i in e?n[i]=e[i]:i in r&&(n[i]=r[i]),n},{})}var yA=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},vA=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},Vv={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:yA,onWarn:vA};function Wv(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Hn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function EA(e){e===void 0&&(e=Wv());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,i=cr(function(){for(var s,u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];return new((s=Intl.DateTimeFormat).bind.apply(s,gr([void 0],u,!1)))},{cache:Hn(e.dateTime),strategy:lr.variadic}),o=cr(function(){for(var s,u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];return new((s=Intl.NumberFormat).bind.apply(s,gr([void 0],u,!1)))},{cache:Hn(e.number),strategy:lr.variadic}),a=cr(function(){for(var s,u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];return new((s=Intl.PluralRules).bind.apply(s,gr([void 0],u,!1)))},{cache:Hn(e.pluralRules),strategy:lr.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:cr(function(s,u,l,c){return new Gv(s,u,l,ue({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a}},c||{}))},{cache:Hn(e.message),strategy:lr.variadic}),getRelativeTimeFormat:cr(function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return new(t.bind.apply(t,gr([void 0],s,!1)))},{cache:Hn(e.relativeTime),strategy:lr.variadic}),getPluralRules:a,getListFormat:cr(function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return new(r.bind.apply(r,gr([void 0],s,!1)))},{cache:Hn(e.list),strategy:lr.variadic}),getDisplayNames:cr(function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return new(n.bind.apply(n,gr([void 0],s,!1)))},{cache:Hn(e.displayNames),strategy:lr.variadic})}}function Vf(e,t,r,n){var i=e&&e[t],o;if(i&&(o=i[r]),o)return o;n(new pA("No ".concat(t," format named: ").concat(r)))}function Ia(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=ue({timeZone:t},e[n]),r},{})}function dm(e,t){var r=Object.keys(ue(ue({},e),t));return r.reduce(function(n,i){return n[i]=ue(ue({},e[i]||{}),t[i]||{}),n},{})}function pm(e,t){if(!t)return e;var r=Gv.formats;return ue(ue(ue({},r),e),{date:dm(Ia(r.date,t),Ia(e.date||{},t)),time:dm(Ia(r.time,t),Ia(e.time||{},t))})}var Yl=function(e,t,r,n,i){var o=e.locale,a=e.formats,s=e.messages,u=e.defaultLocale,l=e.defaultFormats,c=e.fallbackOnEmptyString,d=e.onError,f=e.timeZone,h=e.defaultRichTextElements;r===void 0&&(r={id:""});var p=r.id,m=r.defaultMessage;Ov(!!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 _=String(p),S=s&&Object.prototype.hasOwnProperty.call(s,_)&&s[_];if(Array.isArray(S)&&S.length===1&&S[0].type===je.literal)return S[0].value;if(!n&&S&&typeof S=="string"&&!h)return S.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=ue(ue({},h),n||{}),a=pm(a,f),l=pm(l,f),!S){if(c===!1&&S==="")return S;if((!m||o&&o.toLowerCase()!==u.toLowerCase())&&d(new gA(r,o)),m)try{var v=t.getMessageFormat(m,u,l,i);return v.format(n)}catch(b){return d(new il('Error formatting default message for: "'.concat(_,'", rendering default message verbatim'),o,r,b)),typeof m=="string"?m:_}return _}try{var v=t.getMessageFormat(S,o,a,ue({formatters:t},i||{}));return v.format(n)}catch(b){d(new il('Error formatting message: "'.concat(_,'", using ').concat(m?"default message":"id"," as fallback."),o,r,b))}if(m)try{var v=t.getMessageFormat(m,u,l,i);return v.format(n)}catch(b){d(new il('Error formatting the default message for: "'.concat(_,'", rendering message verbatim'),o,r,b))}return typeof S=="string"?S:typeof m=="string"?m:_},zv=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Su(e,t,r,n){var i=e.locale,o=e.formats,a=e.onError,s=e.timeZone;n===void 0&&(n={});var u=n.format,l=ue(ue({},s&&{timeZone:s}),u&&Vf(o,t,u,a)),c=ci(n,zv,l);return t==="time"&&!c.hour&&!c.minute&&!c.second&&!c.timeStyle&&!c.dateStyle&&(c=ue(ue({},c),{hour:"numeric",minute:"numeric"})),r(i,c)}function _A(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return Su(e,"date",t,a).format(s)}catch(u){e.onError(new Gt("Error formatting date.",e.locale,u))}return String(s)}function bA(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return Su(e,"time",t,a).format(s)}catch(u){e.onError(new Gt("Error formatting time.",e.locale,u))}return String(s)}function wA(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=r[2],s=a===void 0?{}:a,u=e.timeZone,l=e.locale,c=e.onError,d=ci(s,zv,u?{timeZone:u}:{});try{return t(l,d).formatRange(i,o)}catch(f){c(new Gt("Error formatting date time range.",e.locale,f))}return String(i)}function SA(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return Su(e,"date",t,a).formatToParts(s)}catch(u){e.onError(new Gt("Error formatting date.",e.locale,u))}return[]}function TA(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return Su(e,"time",t,a).formatToParts(s)}catch(u){e.onError(new Gt("Error formatting time.",e.locale,u))}return[]}var xA=["style","type","fallback","languageDisplay"];function OA(e,t,r,n){var i=e.locale,o=e.onError,a=Intl.DisplayNames;a||o(new yn(`Intl.DisplayNames is not available in this environment.
77
+ Try polyfilling it using "@formatjs/intl-displaynames"
78
+ `,yr.MISSING_INTL_API));var s=ci(n,xA);try{return t(i,s).of(r)}catch(u){o(new Gt("Error formatting display name.",i,u))}}var AA=["type","style"],mm=Date.now();function CA(e){return"".concat(mm,"_").concat(e,"_").concat(mm)}function RA(e,t,r,n){n===void 0&&(n={});var i=Qv(e,t,r,n).reduce(function(o,a){var s=a.value;return typeof s!="string"?o.push(s):typeof o[o.length-1]=="string"?o[o.length-1]+=s:o.push(s),o},[]);return i.length===1?i[0]:i.length===0?"":i}function Qv(e,t,r,n){var i=e.locale,o=e.onError;n===void 0&&(n={});var a=Intl.ListFormat;a||o(new yn(`Intl.ListFormat is not available in this environment.
79
+ Try polyfilling it using "@formatjs/intl-listformat"
80
+ `,yr.MISSING_INTL_API));var s=ci(n,AA);try{var u={},l=r.map(function(c,d){if(typeof c=="object"){var f=CA(d);return u[f]=c,f}return String(c)});return t(i,s).formatToParts(l).map(function(c){return c.type==="literal"?c:ue(ue({},c),{value:u[c.value]||c.value})})}catch(c){o(new Gt("Error formatting list.",i,c))}return r}var PA=["type"];function NA(e,t,r,n){var i=e.locale,o=e.onError;n===void 0&&(n={}),Intl.PluralRules||o(new yn(`Intl.PluralRules is not available in this environment.
81
+ Try polyfilling it using "@formatjs/intl-pluralrules"
82
+ `,yr.MISSING_INTL_API));var a=ci(n,PA);try{return t(i,a).select(r)}catch(s){o(new Gt("Error formatting plural.",i,s))}return"other"}var IA=["numeric","style"];function LA(e,t,r){var n=e.locale,i=e.formats,o=e.onError;r===void 0&&(r={});var a=r.format,s=!!a&&Vf(i,"relative",a,o)||{},u=ci(r,IA,s);return t(n,u)}function kA(e,t,r,n,i){i===void 0&&(i={}),n||(n="second");var o=Intl.RelativeTimeFormat;o||e.onError(new yn(`Intl.RelativeTimeFormat is not available in this environment.
83
+ Try polyfilling it using "@formatjs/intl-relativetimeformat"
84
+ `,yr.MISSING_INTL_API));try{return LA(e,t,i).format(r,n)}catch(a){e.onError(new Gt("Error formatting relative time.",e.locale,a))}return String(r)}var MA=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function Yv(e,t,r){var n=e.locale,i=e.formats,o=e.onError;r===void 0&&(r={});var a=r.format,s=a&&Vf(i,"number",a,o)||{},u=ci(r,MA,s);return t(n,u)}function FA(e,t,r,n){n===void 0&&(n={});try{return Yv(e,t,n).format(r)}catch(i){e.onError(new Gt("Error formatting number.",e.locale,i))}return String(r)}function DA(e,t,r,n){n===void 0&&(n={});try{return Yv(e,t,n).formatToParts(r)}catch(i){e.onError(new Gt("Error formatting number.",e.locale,i))}return[]}function BA(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function UA(e){e.onWarn&&e.defaultRichTextElements&&BA(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
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 $A(e,t){var r=EA(t),n=ue(ue({},Vv),e),i=n.locale,o=n.defaultLocale,a=n.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new hm('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(new hm('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new mA('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),UA(n),ue(ue({},n),{formatters:r,formatNumber:FA.bind(null,n,r.getNumberFormat),formatNumberToParts:DA.bind(null,n,r.getNumberFormat),formatRelativeTime:kA.bind(null,n,r.getRelativeTimeFormat),formatDate:_A.bind(null,n,r.getDateTimeFormat),formatDateToParts:SA.bind(null,n,r.getDateTimeFormat),formatTime:bA.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:wA.bind(null,n,r.getDateTimeFormat),formatTimeToParts:TA.bind(null,n,r.getDateTimeFormat),formatPlural:NA.bind(null,n,r.getPluralRules),formatMessage:Yl.bind(null,n,r),$t:Yl.bind(null,n,r),formatList:RA.bind(null,n,r.getListFormat),formatListToParts:Qv.bind(null,n,r.getListFormat),formatDisplayName:OA.bind(null,n,r.getDisplayNames)})}function Kv(e){Ov(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Xv=ue(ue({},Vv),{textComponent:pe.Fragment});function jA(e){return function(t){return e(pe.Children.toArray(t))}}function Kl(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var o=0;o<i;o++){var a=r[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}var Wf=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=pe.createContext(null)):pe.createContext(null);Wf.Consumer;var HA=Wf.Provider,qA=HA,GA=Wf;function Oe(){var e=pe.useContext(GA);return Kv(e),e}var Xl;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Xl||(Xl={}));var Jl;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Jl||(Jl={}));function Jv(e){var t=function(r){var n=Oe(),i=r.value,o=r.children,a=oo(r,["value","children"]),s=typeof i=="string"?new Date(i||0):i,u=e==="formatDate"?n.formatDateToParts(s,a):n.formatTimeToParts(s,a);return o(u)};return t.displayName=Jl[e],t}function oa(e){var t=function(r){var n=Oe(),i=r.value,o=r.children,a=oo(r,["value","children"]),s=n[e](i,a);if(typeof o=="function")return o(s);var u=n.textComponent||pe.Fragment;return pe.createElement(u,null,s)};return t.displayName=Xl[e],t}function ol(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 Zv(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=qv(n)?jA(n):n,t},{})}var gm=function(e,t,r,n){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var a=Zv(n),s=Yl.apply(void 0,gr([e,t,r,a],i,!1));return Array.isArray(s)?pe.Children.toArray(s):s},Zl=function(e,t){var r=e.defaultRichTextElements,n=oo(e,["defaultRichTextElements"]),i=Zv(r),o=$A(ue(ue(ue({},Xv),n),{defaultRichTextElements:i}),t),a={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:i};return ue(ue({},o),{formatMessage:gm.bind(null,a,o.formatters),$t:gm.bind(null,a,o.formatters)})},VA=function(e){qt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.cache=Wv(),r.state={cache:r.cache,intl:Zl(ol(r.props),r.cache),prevConfig:ol(r.props)},r}return t.getDerivedStateFromProps=function(r,n){var i=n.prevConfig,o=n.cache,a=ol(r);return Kl(i,a)?null:{intl:Zl(a,o),prevConfig:a}},t.prototype.render=function(){return Kv(this.state.intl),pe.createElement(qA,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Xv,t}(pe.PureComponent);function WA(e,t){var r=e.values,n=oo(e,["values"]),i=t.values,o=oo(t,["values"]);return Kl(i,r)&&Kl(n,o)}function e0(e){var t=Oe(),r=t.formatMessage,n=t.textComponent,i=n===void 0?pe.Fragment:n,o=e.id,a=e.description,s=e.defaultMessage,u=e.values,l=e.children,c=e.tagName,d=c===void 0?i:c,f=e.ignoreTag,h={id:o,description:a,defaultMessage:s},p=r(h,u,{ignoreTag:f});return typeof l=="function"?l(Array.isArray(p)?p:[p]):d?pe.createElement(d,null,pe.Children.toArray(p)):pe.createElement(pe.Fragment,null,p)}e0.displayName="FormattedMessage";var t0=pe.memo(e0,WA);t0.displayName="MemoizedFormattedMessage";const fn=t0;oa("formatDate");oa("formatTime");oa("formatNumber");oa("formatList");oa("formatDisplayName");Jv("formatDate");Jv("formatTime");let vs=!1;const r0=({isOpen:e=!1,isLoading:t=!1,children:r})=>{const n=Oe(),i=U.useRef(null),[o,a]=U.useState("hidden");U.useEffect(()=>{const u=i.current;if(u)return u.addEventListener("transitionend",s),()=>{u.removeEventListener("transitionend",s)}},[]);const s=({propertyName:u})=>{u==="opacity"&&(vs!==!1&&clearTimeout(vs),a(l=>l==="opening"?"open":l==="closing"?"closed":l==="closed"?"hidden":l))};return ni(()=>{vs!==!1&&clearTimeout(vs);let u="open";e?a("opening"):(a("closing"),u="hidden"),vs=setTimeout(()=>{a(u)},300)},[e]),O.jsx("aside",{ref:i,className:se("tooltip text-medium",o,{loading:t}),hidden:o==="hidden",children:t?O.jsx("p",{children:n.formatMessage({id:"tooltip_loading"})}):typeof r=="string"?O.jsx("p",{children:r}):r})};const zf=({children:e,className:t="",...r})=>O.jsx("section",{className:se("full-width-section",t),...r,children:e});const zA=({text:e,buttons:t,className:r=""})=>{const n=[];return t.forEach(i=>{n.push({href:i.link,variant:"secondary",size:{mobile:"medium",1024:"large"},className:"gtm-trackable","data-gtm-event-type":"download-click","data-gtm-event-context":i.eventContext||"Download",target:"_blank",children:i.text})}),O.jsx(zf,{className:se("download-section",r),children:O.jsxs(O.Fragment,{children:[U.createElement(typeof e=="string"?"h2":e.element,{className:"text"},typeof e=="string"?e:e.text),O.jsx(na,{buttons:n})]})})};const QA=({title:e=!1,logos:t=[],className:r=""})=>{const n=t.length;if(n===0)return null;const i={element:typeof e=="object"?e.element:"h2",text:typeof e=="string"?e:typeof e=="object"?e.text:""};return O.jsxs("div",{className:se("logos",r),children:[e&&U.createElement(i.element,{className:"title"},i.text),O.jsx("ul",{className:se({"two-col":n===2||n===4,"three-col":n===5||n<=10&&n%3===0}),children:t.map(({logo:o,nameOfBusiness:a,link:s=!1,description:u=!1},l)=>{if(!o||!o.url)return null;const c=O.jsx("img",{src:o.url,width:o.width||"auto",height:o.height||"auto",alt:a});return O.jsxs("li",{children:[O.jsx("p",{className:"img-wrapper",children:s?O.jsx("a",{href:s,target:"_blank",rel:"nofollow noreferrer noopener",children:c}):c}),u&&O.jsx("small",{children:u})]},window.btoa(`${o.url}_${l}`))})})]})};const YA=["small","span","strong","em","p","h1","h2","h3","h4","h5","h6","blockquote","q"],KA=({content:e,image:t,variant:r="default",spacing:n="normal",cta:i,children:o})=>{const a=["eyebrow","title","text"],s={eyebrow:"small",title:"h1",text:"p"},u={};return a.forEach(l=>{if(!e[l]){u[l]=!1;return}if(typeof e[l]=="object"){u[l]=e[l];const{text:c,element:d}=e[l];if(d&&YA.includes(d.toLowerCase()))return;u[l]={text:c,element:s[l]};return}u[l]={text:e[l],element:s[l]}}),i&&i.link&&i.link[0]==="#"&&(i.props||(i.props={}),i.props.onClick=l=>{l.preventDefault(),l.stopPropagation();const c=document.getElementById(i.link.substring(1));c&&c.scrollIntoView({behavior:"smooth"})}),O.jsx(zf,{className:se("banner-section",r,n,{"has-image":t,"has-extra-spacing":n==="normal"&&u.eyebrow&&u.title}),children:O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"content-wrapper",children:[a.map(l=>{if(u[l]&&typeof u[l]=="object"){const{text:c,element:d=""}=u[l];return U.createElement(d.toLowerCase(),{key:l,className:l},c)}return null}),o,i&&i.text&&i.link&&O.jsx(ze,{variant:t||r==="light"?"primary":"secondary",size:{mobile:"medium",768:"large"},href:i.link,...i.props,children:i.text})]}),t&&O.jsx(xv,{image:{...t,aspect:"banner"}})]})})},XA=U.memo(KA);const JA=({variant:e="primary",button:t=null,title:r,text:n,gtmContext:i})=>!r&&!n?null:O.jsxs("aside",{className:se("marketing-block",e),children:[r&&O.jsx("p",{className:"title",children:r}),n&&O.jsx("p",{children:n}),t&&O.jsx(ze,{variant:"secondary",size:"medium",href:t.link,className:"gtm-trackable","data-gtm-event-context":i,"data-gtm-event-type":"learn-more-click",children:t.text})]});var n0={exports:{}};(function(e){(function(t,r){var n="…",i=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w-]{1,300}@(.{1,300}\.)[a-zA-Z]{2,3})/g;function o(s,u,l){return l.length===s.length||!u.ellipsis||(l+=u.ellipsis),l}function a(s,u,l){var c="",d=!0,f=u,h,p;if(l=l||{},l.ellipsis=typeof l.ellipsis>"u"?n:l.ellipsis,!s||s.length===0)return"";for(d=!0;d;){if(i.lastIndex=c.length,d=i.exec(s),!d||d.index-c.length>=f||i.lastIndex>=u+3e3)return c+=s.substring(c.length,u),o(s,l,c);if(h=d[0],p=d.index,c+=s.substring(c.length,p+h.length),f-=p+h.length,f<=0)break}return o(s,l,c)}e.exports?e.exports=a:t.truncate=a})(String)})(n0);var ZA=n0.exports;const Qf=_r(ZA),eu="https://storage.googleapis.com/apolitical-assets/",eC="200,000+";const Yf=({label:e=!1,className:t="",children:r})=>{const n=Oe();return O.jsxs("details",{className:se("collapsible-section",t),children:[O.jsx("summary",{children:e||n.formatMessage({id:"collapsibleSection_summary"})}),O.jsx("div",{className:"content",children:r})]})};function Gn(){return Gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gn.apply(this,arguments)}const tC=["children","options"],ym=["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"}),vm={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},rC=["style","script"],nC=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,iC=/mailto:/i,oC=/\n{2,}$/,i0=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,sC=/^ *> ?/gm,aC=/^ {2,}\n/,uC=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,o0=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,s0=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,cC=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,lC=/^(?:\n *)*\n/,fC=/\r\n?/g,hC=/^\[\^([^\]]+)](:.*)\n/,dC=/^\[\^([^\]]+)]/,pC=/\f/g,mC=/^\s*?\[(x|\s)\]/,a0=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,u0=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,c0=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,ef=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,gC=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,l0=/^<!--[\s\S]*?(?:-->)/,yC=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,tf=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,vC=/^\{.*\}$/,EC=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,_C=/^<([^ >]+@[^ >]+)>/,bC=/^<([^ >]+:\/[^ >]+)>/,wC=/-([a-z])?/gi,f0=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,SC=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,TC=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,xC=/^\[([^\]]*)\] ?\[([^\]]*)\]/,OC=/(\[|\])/g,AC=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,CC=/\t/g,RC=/^ *\| */,PC=/(^ *\||\| *$)/g,NC=/ *$/,IC=/^ *:-+: *$/,LC=/^ *:-+ *$/,kC=/^ *-+: *$/,MC=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,FC=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,DC=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,BC=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,UC=/^\\([^0-9A-Za-z\s])/,$C=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,jC=/^\n+/,HC=/^([ \t]*)/,qC=/\\([^\\])/g,Em=/ *\n+$/,GC=/(?:^|\n)( *)$/,Kf="(?:\\d+\\.)",Xf="(?:[*+-])";function h0(e){return"( *)("+(e===1?Kf:Xf)+") +"}const d0=h0(1),p0=h0(2);function m0(e){return new RegExp("^"+(e===1?d0:p0))}const VC=m0(1),WC=m0(2);function g0(e){return new RegExp("^"+(e===1?d0:p0)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Kf:Xf)+" )[^\\n]*)*(\\n|$)","gm")}const y0=g0(1),v0=g0(2);function E0(e){const t=e===1?Kf:Xf;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const _0=E0(1),b0=E0(2);function _m(e,t){const r=t===1,n=r?_0:b0,i=r?y0:v0,o=r?VC:WC;return{t(a,s,u){const l=GC.exec(u);return l&&(s.o||!s._&&!s.u)?n.exec(a=l[1]+a):null},i:Te.HIGH,l(a,s,u){const l=r?+a[2]:void 0,c=a[0].replace(oC,`
87
+ `).match(i);let d=!1;return{p:c.map(function(f,h){const p=o.exec(f)[0].length,m=new RegExp("^ {1,"+p+"}","gm"),_=f.replace(m,"").replace(o,""),S=h===c.length-1,v=_.indexOf(`
88
+
89
+ `)!==-1||S&&d;d=v;const b=u._,T=u.o;let w;u.o=!0,v?(u._=!1,w=_.replace(Em,`
90
+
91
+ `)):(u._=!0,w=_.replace(Em,""));const P=s(w,u);return u._=b,u.o=T,P}),m:r,g:l}},h:(a,s,u)=>e(a.m?"ol":"ul",{key:u.k,start:a.g},a.p.map(function(l,c){return e("li",{key:c},s(l,u))}))}}const zC=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,QC=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,w0=[i0,o0,s0,a0,c0,u0,l0,f0,y0,_0,v0,b0],YC=[...w0,/^[^\n]+(?: \n|\n{2,})/,ef,tf];function KC(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function XC(e){return kC.test(e)?"right":IC.test(e)?"center":LC.test(e)?"left":null}function bm(e,t,r){const n=r.$;r.$=!0;const i=t(e.trim(),r);r.$=n;let o=[[]];return i.forEach(function(a,s){a.type==="tableSeparator"?s!==0&&s!==i.length-1&&o.push([]):(a.type!=="text"||i[s+1]!=null&&i[s+1].type!=="tableSeparator"||(a.v=a.v.replace(NC,"")),o[o.length-1].push(a))}),o}function JC(e,t,r){r._=!0;const n=bm(e[1],t,r),i=e[2].replace(PC,"").split("|").map(XC),o=function(a,s,u){return a.trim().split(`
92
+ `).map(function(l){return bm(l,s,u)})}(e[3],t,r);return r._=!1,{S:i,A:o,L:n,type:"table"}}function wm(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function Xr(e){return function(t,r){return r._?e.exec(t):null}}function Jr(e){return function(t,r){return r._||r.u?e.exec(t):null}}function Lr(e){return function(t,r){return r._||r.u?null:e.exec(t)}}function Es(e){return function(t){return e.exec(t)}}function ZC(e,t,r){if(t._||t.u||r&&!r.endsWith(`
93
+ `))return null;let n="";e.split(`
94
+ `).every(o=>!w0.some(a=>a.test(o))&&(n+=o+`
95
+ `,o.trim()));const i=n.trimEnd();return i==""?null:[n,i]}function Ci(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 Sm(e){return e.replace(qC,"$1")}function Ha(e,t,r){const n=r._||!1,i=r.u||!1;r._=!0,r.u=!0;const o=e(t,r);return r._=n,r.u=i,o}function e1(e,t,r){const n=r._||!1,i=r.u||!1;r._=!1,r.u=!0;const o=e(t,r);return r._=n,r.u=i,o}function t1(e,t,r){return r._=!1,e(t,r)}const sl=(e,t,r)=>({v:Ha(t,e[1],r)});function al(){return{}}function ul(){return null}function r1(...e){return e.filter(Boolean).join(" ")}function cl(e,t,r){let n=e;const i=t.split(".");for(;i.length&&(n=n[i[0]],n!==void 0);)i.shift();return n||r}var Te;function n1(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||KC,t.namedCodesToUnicode=t.namedCodesToUnicode?Gn({},vm,t.namedCodesToUnicode):vm;const r=t.createElement||pe.createElement;function n(h,p,...m){const _=cl(t.overrides,`${h}.props`,{});return r(function(S,v){const b=cl(v,S);return b?typeof b=="function"||typeof b=="object"&&"render"in b?b:cl(v,`${S}.component`,S):S}(h,t.overrides),Gn({},p,_,{className:r1(p==null?void 0:p.className,_.className)||void 0}),...m)}function i(h){let p=!1;t.forceInline?p=!0:t.forceBlock||(p=AC.test(h)===!1);const m=c(l(p?h:`${h.trimEnd().replace(jC,"")}
96
+
97
+ `,{_:p}));for(;typeof m[m.length-1]=="string"&&!m[m.length-1].trim();)m.pop();if(t.wrapper===null)return m;const _=t.wrapper||(p?"span":"div");let S;if(m.length>1||t.forceWrapper)S=m;else{if(m.length===1)return S=m[0],typeof S=="string"?n("span",{key:"outer"},S):S;S=null}return pe.createElement(_,{key:"outer"},S)}function o(h){const p=h.match(nC);return p?p.reduce(function(m,_,S){const v=_.indexOf("=");if(v!==-1){const b=function(R){return R.indexOf("-")!==-1&&R.match(yC)===null&&(R=R.replace(wC,function(L,$){return $.toUpperCase()})),R}(_.slice(0,v)).trim(),T=function(R){const L=R[0];return(L==='"'||L==="'")&&R.length>=2&&R[R.length-1]===L?R.slice(1,-1):R}(_.slice(v+1).trim()),w=ym[b]||b,P=m[w]=function(R,L){return R==="style"?L.split(/;\s?/).reduce(function($,q){const G=q.slice(0,q.indexOf(":"));return $[G.replace(/(-[a-z])/g,j=>j[1].toUpperCase())]=q.slice(G.length+1).trim(),$},{}):R==="href"?Ci(L):(L.match(vC)&&(L=L.slice(1,L.length-1)),L==="true"||L!=="false"&&L)}(b,T);typeof P=="string"&&(ef.test(P)||tf.test(P))&&(m[w]=pe.cloneElement(i(P.trim()),{key:S}))}else _!=="style"&&(m[ym[_]||_]=!0);return m},{}):null}const a=[],s={},u={blockQuote:{t:Lr(i0),i:Te.HIGH,l:(h,p,m)=>({v:p(h[0].replace(sC,""),m)}),h:(h,p,m)=>n("blockquote",{key:m.k},p(h.v,m))},breakLine:{t:Es(aC),i:Te.HIGH,l:al,h:(h,p,m)=>n("br",{key:m.k})},breakThematic:{t:Lr(uC),i:Te.HIGH,l:al,h:(h,p,m)=>n("hr",{key:m.k})},codeBlock:{t:Lr(s0),i:Te.MAX,l:h=>({v:h[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(h,p,m)=>n("pre",{key:m.k},n("code",Gn({},h.O,{className:h.M?`lang-${h.M}`:""}),h.v))},codeFenced:{t:Lr(o0),i:Te.MAX,l:h=>({O:o(h[3]||""),v:h[4],M:h[2]||void 0,type:"codeBlock"})},codeInline:{t:Jr(cC),i:Te.LOW,l:h=>({v:h[2]}),h:(h,p,m)=>n("code",{key:m.k},h.v)},footnote:{t:Lr(hC),i:Te.MAX,l:h=>(a.push({I:h[2],j:h[1]}),{}),h:ul},footnoteReference:{t:Xr(dC),i:Te.HIGH,l:h=>({v:h[1],B:`#${t.slugify(h[1])}`}),h:(h,p,m)=>n("a",{key:m.k,href:Ci(h.B)},n("sup",{key:m.k},h.v))},gfmTask:{t:Xr(mC),i:Te.HIGH,l:h=>({R:h[1].toLowerCase()==="x"}),h:(h,p,m)=>n("input",{checked:h.R,key:m.k,readOnly:!0,type:"checkbox"})},heading:{t:Lr(t.enforceAtxHeadings?u0:a0),i:Te.HIGH,l:(h,p,m)=>({v:Ha(p,h[2],m),T:t.slugify(h[2]),C:h[1].length}),h:(h,p,m)=>n(`h${h.C}`,{id:h.T,key:m.k},p(h.v,m))},headingSetext:{t:Lr(c0),i:Te.MAX,l:(h,p,m)=>({v:Ha(p,h[1],m),C:h[2]==="="?1:2,type:"heading"})},htmlComment:{t:Es(l0),i:Te.HIGH,l:()=>({}),h:ul},image:{t:Jr(QC),i:Te.HIGH,l:h=>({D:h[1],B:Sm(h[2]),F:h[3]}),h:(h,p,m)=>n("img",{key:m.k,alt:h.D||void 0,title:h.F||void 0,src:Ci(h.B)})},link:{t:Xr(zC),i:Te.LOW,l:(h,p,m)=>({v:e1(p,h[1],m),B:Sm(h[2]),F:h[3]}),h:(h,p,m)=>n("a",{key:m.k,href:Ci(h.B),title:h.F},p(h.v,m))},linkAngleBraceStyleDetector:{t:Xr(bC),i:Te.MAX,l:h=>({v:[{v:h[1],type:"text"}],B:h[1],type:"link"})},linkBareUrlDetector:{t:(h,p)=>p.N?null:Xr(EC)(h,p),i:Te.MAX,l:h=>({v:[{v:h[1],type:"text"}],B:h[1],F:void 0,type:"link"})},linkMailtoDetector:{t:Xr(_C),i:Te.MAX,l(h){let p=h[1],m=h[1];return iC.test(m)||(m="mailto:"+m),{v:[{v:p.replace("mailto:",""),type:"text"}],B:m,type:"link"}}},orderedList:_m(n,1),unorderedList:_m(n,2),newlineCoalescer:{t:Lr(lC),i:Te.LOW,l:al,h:()=>`
98
+ `},paragraph:{t:ZC,i:Te.LOW,l:sl,h:(h,p,m)=>n("p",{key:m.k},p(h.v,m))},ref:{t:Xr(SC),i:Te.MAX,l:h=>(s[h[1]]={B:h[2],F:h[4]},{}),h:ul},refImage:{t:Jr(TC),i:Te.MAX,l:h=>({D:h[1]||void 0,P:h[2]}),h:(h,p,m)=>n("img",{key:m.k,alt:h.D,src:Ci(s[h.P].B),title:s[h.P].F})},refLink:{t:Xr(xC),i:Te.MAX,l:(h,p,m)=>({v:p(h[1],m),Z:p(h[0].replace(OC,"\\$1"),m),P:h[2]}),h:(h,p,m)=>s[h.P]?n("a",{key:m.k,href:Ci(s[h.P].B),title:s[h.P].F},p(h.v,m)):n("span",{key:m.k},p(h.Z,m))},table:{t:Lr(f0),i:Te.HIGH,l:JC,h:(h,p,m)=>n("table",{key:m.k},n("thead",null,n("tr",null,h.L.map(function(_,S){return n("th",{key:S,style:wm(h,S)},p(_,m))}))),n("tbody",null,h.A.map(function(_,S){return n("tr",{key:S},_.map(function(v,b){return n("td",{key:b,style:wm(h,b)},p(v,m))}))})))},tableSeparator:{t:function(h,p){return p.$?(p._=!0,RC.exec(h)):null},i:Te.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:Es($C),i:Te.MIN,l:h=>({v:h[0].replace(gC,(p,m)=>t.namedCodesToUnicode[m]?t.namedCodesToUnicode[m]:p)}),h:h=>h.v},textBolded:{t:Jr(MC),i:Te.MED,l:(h,p,m)=>({v:p(h[2],m)}),h:(h,p,m)=>n("strong",{key:m.k},p(h.v,m))},textEmphasized:{t:Jr(FC),i:Te.LOW,l:(h,p,m)=>({v:p(h[2],m)}),h:(h,p,m)=>n("em",{key:m.k},p(h.v,m))},textEscaped:{t:Jr(UC),i:Te.HIGH,l:h=>({v:h[1],type:"text"})},textMarked:{t:Jr(DC),i:Te.LOW,l:sl,h:(h,p,m)=>n("mark",{key:m.k},p(h.v,m))},textStrikethroughed:{t:Jr(BC),i:Te.LOW,l:sl,h:(h,p,m)=>n("del",{key:m.k},p(h.v,m))}};t.disableParsingRawHTML!==!0&&(u.htmlBlock={t:Es(ef),i:Te.HIGH,l(h,p,m){const[,_]=h[3].match(HC),S=new RegExp(`^${_}`,"gm"),v=h[3].replace(S,""),b=(T=v,YC.some(L=>L.test(T))?t1:Ha);var T;const w=h[1].toLowerCase(),P=rC.indexOf(w)!==-1;m.N=m.N||w==="a";const R=P?h[3]:b(p,v,m);return m.N=!1,{O:o(h[2]),v:R,G:P,H:P?w:h[1]}},h:(h,p,m)=>n(h.H,Gn({key:m.k},h.O),h.G?h.v:p(h.v,m))},u.htmlSelfClosing={t:Es(tf),i:Te.HIGH,l:h=>({O:o(h[2]||""),H:h[1]}),h:(h,p,m)=>n(h.H,Gn({},h.O,{key:m.k}))});const l=function(h){let p=Object.keys(h);function m(_,S){let v=[],b="";for(;_;){let T=0;for(;T<p.length;){const w=p[T],P=h[w],R=P.t(_,S,b);if(R){const L=R[0];_=_.substring(L.length);const $=P.l(R,m,S);$.type==null&&($.type=w),v.push($),b=L;break}T++}}return v}return p.sort(function(_,S){let v=h[_].i,b=h[S].i;return v!==b?v-b:_<S?-1:1}),function(_,S){return m(function(v){return v.replace(fC,`
99
+ `).replace(pC,"").replace(CC," ")}(_),S)}}(u),c=(d=function(h){return function(p,m,_){return h[p.type].h(p,m,_)}}(u),function h(p,m={}){if(Array.isArray(p)){const _=m.k,S=[];let v=!1;for(let b=0;b<p.length;b++){m.k=b;const T=h(p[b],m),w=typeof T=="string";w&&v?S[S.length-1]+=T:T!==null&&S.push(T),v=w}return m.k=_,S}return d(p,h,m)});var d;const f=i(e);return a.length?n("div",null,f,n("footer",{key:"footer"},a.map(function(h){return n("div",{id:t.slugify(h.j),key:h.j},h.j,c(l(h.I,{_:!0})))}))):f}(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"})(Te||(Te={}));const Tu=e=>{let{children:t,options:r}=e,n=function(i,o){if(i==null)return{};var a,s,u={},l=Object.keys(i);for(s=0;s<l.length;s++)o.indexOf(a=l[s])>=0||(u[a]=i[a]);return u}(e,tC);return pe.cloneElement(n1(t,r),n)};const Ur=({variant:e="primary",className:t="",children:r,...n})=>O.jsx("div",{className:se("highlighted-text-box",e,t),...n,children:r});const sa=({variant:e="empty",text:t=!1,button:r=!1,className:n=""})=>{let i=r&&!!Object.keys(r).length;const o=typeof r=="object"&&"breakpoints"in r,a=ra(o);if(o&&typeof r=="object"&&typeof a=="number"){const d=Object.assign({},r.breakpoints),f=wv(Object.keys(d));i=Sv(a,f,d)}const{breakpoints:s,text:u="",component:l,...c}=r;return O.jsx(Ur,{variant:"subtle",className:se("empty-state-box",e,n),children:O.jsxs(O.Fragment,{children:[t&&O.jsx(Tu,{options:{forceBlock:!0},children:t}),i&&typeof r=="object"&&(l||O.jsx(ze,{...c,variant:r.variant?r.variant:"secondary",children:u}))]})})};const rf=({children:e,...t})=>O.jsx("p",{...t,children:e}),S0={q:rf,blockquote:rf};for(let e=1;e<=6;e++)S0[`h${e}`]={component:rf,props:{className:"title"}};const T0=({type:e="default",className:t="",heading:r=!1,children:n})=>O.jsxs("div",{className:se("helper-text-box text-small",e,t),children:[r&&O.jsx("p",{className:"title",children:r}),typeof n=="string"?O.jsx(Tu,{options:{wrapper:U.Fragment,forceBlock:!0,overrides:S0},children:n}):O.jsx("p",{children:n})]});const i1=({className:e="",show:t=!1,hide:r=!1,text:n,children:i})=>{const o=Oe(),a=U.useRef(null),[s,u]=U.useState(""),[l,c]=U.useState("closed");U.useEffect(()=>{const h=a.current;if(h)return h.addEventListener("transitionend",d),()=>{h.removeEventListener("transitionend",d)}},[]),U.useEffect(()=>{if(!n||typeof n!="string")return;const h=n.split(`
100
+ `);u(h.length<3?`${n.substring(0,400)}...`:h.slice(0,3).join(`
101
+ `))},[n]),U.useEffect(()=>{l==="ready-to-close"&&c("closing")},[l]);const d=({propertyName:h})=>{h==="max-height"&&c(p=>p==="opening"?"open":p==="closing"?"closed":p)};if(!n)return null;const f=["opening","open"].includes(l);return O.jsxs(Ur,{variant:"subtle",className:se("hide-show-text-box",e),children:[O.jsxs("div",{ref:a,className:se("content",l),children:[O.jsx(Tu,{options:{forceBlock:!0},children:l==="closed"?s:n}),l!=="closed"&&i]}),O.jsx("p",{className:"cta",children:O.jsx(ze,{variant:"tertiary",icon:{icon:"navigation_arrow",position:"left",animate:!0},styling:{muted:!0},className:se({"rotate-180":f}),onClick:()=>{c(f?"ready-to-close":"opening")},children:f?r||o.formatMessage({id:"hideShowTextBox_hide"}):t||o.formatMessage({id:"hideShowTextBox_show"})})})]})},o1=()=>U.Fragment,s1=({children:e})=>O.jsx(Ur,{variant:"secondary",children:e}),a1=["span","strong","h1","h2","h3","h4","h5","h6","p"],u1=({children:e})=>{const t=Oe();if(!e)return null;let r=t.formatMessage({id:"markdown_collapsibleSection_summary"});const n=[];for(const o of U.Children.toArray(e))if(!(!o||typeof o=="string"||typeof o=="number"))if(U.isValidElement(o)&&o.type==="summary"){if(o.props&&o.props.children){for(const a of U.Children.toArray(o.props.children))if(!(!a||typeof a=="string"||typeof a=="number")&&U.isValidElement(a)){const s=a.type;if(a1.includes(s)){for(r=a.props.children;typeof r!="string"&&(Array.isArray(r)&&r[0].props&&r[0].props.children&&r[0].props.children[0]);)r=r[0].props.children[0];break}}}}else n.push(o);const i=r?r.toString():"";return O.jsx(Yf,{label:i,className:["Sources","Resources"].includes(i)?"discrete-links":"",children:n.map(o=>o)})},c1=({children:e,...t})=>{if(t.class)switch(t.class){case"casestudy":return O.jsx(Ur,{variant:"secondary",children:e});case"general-textbox":case"highlight-box":return O.jsx(Ur,{variant:"primary",children:e});case"pink-textbox":return O.jsx(Ur,{variant:"tertiary",children:e});default:return O.jsx("div",{...t,children:e})}return O.jsx("div",{...t,children:e})},l1=e=>{const t=Oe(),r=Date.now().toString();let n="default";const i=e.src;return i.includes("youtube")||i.includes("vimeo")?n="video":i.includes("riddle")||i.includes("sli.do")?n="poll":i.includes("padlet")&&(n="padlet"),O.jsxs(O.Fragment,{children:[O.jsx(lt,{children:O.jsx(Tt.Link,{to:`#content-after-iframe-${r}`,children:t.formatMessage({id:`markdown_skip${n==="default"?"":`_${n}`}`})})}),O.jsx("iframe",{...e,title:t.formatMessage({id:`markdown_iframe${n==="default"?"":`_${n}`}`})}),O.jsx("span",{id:`content-after-iframe-${r}`,tabIndex:-1})]})},Tm=e=>{let t="";return e&&typeof e!="string"&&typeof e!="number"&&typeof e!="boolean"&&"type"in e&&(t=e.type),t},f1=({children:e,...t})=>{let r={...t};t.href&&(t.href.includes("http:")||t.href.includes("https:"))&&!t.target&&(r.target="_blank");let n=e,i=!1;for(const o of U.Children.toArray(e))if(!(!o||typeof o=="string"||typeof o=="number")&&U.isValidElement(o)){const a=o.type;if(["button","center","span","strong"].includes(a)&&o.props&&o.props.children&&o.props.children[0])for((a==="button"||Tm(o.props.children[0])==="button")&&(i=!0),n=o.props.children[0];n&&typeof n!="string"&&!(typeof n=="boolean"||typeof n=="number"||!U.isValidElement(n));)if(n.props&&n.props.children&&n.props.children[0])n=n.props.children[0],n&&Tm(n)==="button"&&(i=!0);else break}return i?(r={...r,className:"button primary medium"},O.jsx("p",{className:"center",children:O.jsx(ze,{variant:"primary",size:"medium",...r,children:n})})):O.jsx(Tt.Link,{to:r.href||"#",...r,children:n})},h1=({children:e})=>O.jsx("span",{children:e});const nf=({className:e="",options:t={},children:r})=>{r=r.replace(/^<br\/?>/,"");const n={wrapper:U.Fragment,forceBlock:!0,overrides:{a:f1,CollapsibleSection:Yf,TextBox:Ur,CaseStudy:s1,style:o1,details:u1,div:c1,iframe:l1}};return O.jsx("div",{className:se("markdown-text",e),children:O.jsx(Tu,{options:{...n,...t},children:r})})};const x0=({size:e="medium",variant:t="default",className:r="",children:n})=>O.jsx("span",{className:se("pill",e,t,r),children:n});const tu=({element:e="p",children:t=null,className:r="",...n})=>U.createElement(e,{...n,className:se("status-banner text-small",r),"aria-live":"assertive"},t);const d1=({progress:e=0,text:t=!1,className:r=""})=>{const n=Oe(),i=e>75?100:e>50?75:e>25?50:e>5?25:0,o={"--progress":`${e}%`};return O.jsx("span",{className:se(`progress-bar section-${i}`,r),style:o,children:O.jsx(lt,{children:t?`${e} ${t}`:n.formatMessage({id:"progressBar"},{number:e})})})},O0=U.memo(d1);const ll="loadingBlock_",p1=({progress:e=0,steps:t=!1,className:r=""})=>{const n=Oe();t||(t={0:{text:n.formatMessage({id:`${ll}loading`})},75:{text:n.formatMessage({id:`${ll}almostDone`})},100:{text:n.formatMessage({id:`${ll}complete`})}});let i=null;const o=Object.keys(t);for(let s=0;s<o.length&&!(e<parseInt(o[s]));s++)i=o[s];const a=i&&t[i].icon?{"--icon":`url(${eu}icons/${t[i].icon}.svg)`}:{};return O.jsxs(Ur,{className:se("loading-block",r,{"has-icon":i&&t[i].icon}),variant:"subtle",style:a,children:[i&&O.jsx("span",{className:"step",children:t[i].text}),O.jsx(O0,{progress:e})]})},m1=U.memo(p1);const vr=({element:e="div",className:t="",...r})=>O.jsx(Tf,{element:e,className:se("loading-placeholder",t),...r});const of={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"]},A0=(e,t)=>e in of?O.jsx("div",{className:e,children:of[e].map((r,n)=>A0(r,n))},t):O.jsx(vr,{className:e},t),C0=({layout:e="overview-page"})=>O.jsx("div",{className:se("loading-state",e),children:of[e].map((t,r)=>A0(t,r))}),R0=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):""},La=["#5AB6A3","#A2D7AF","#806056","#3962B3"],g1=e=>{const t=Math.ceil(26/La.length),r=R0(e).toLowerCase();if(r==="")return La[0];const n=r.charCodeAt(0)-96;for(let i=0;i<La.length;i++)if(n<=t*(i+1))return La[i]};const xm=256,xu=({className:e="",src:t="",name:r,alt:n,width:i=xm,height:o=xm,...a})=>{const[s,u]=U.useState(!1),l=U.useRef(null);return U.useEffect(()=>{const c=l.current;if(!c)return;const d=c.getContext("2d");if(!d)return;const f=i,h=o;typeof window<"u"&&window.devicePixelRatio&&(c.width=f*window.devicePixelRatio,c.height=h*window.devicePixelRatio,d.scale(window.devicePixelRatio,window.devicePixelRatio)),d.fillStyle=g1(r),d.fillRect(0,0,f,h),d.font=`${f/3}px Arial`,d.textAlign="center",d.fillStyle="white",d.fillText(R0(r),f/2,h/1.6)},[r]),O.jsxs("figure",{className:se("profile-picture",e,{error:s}),...a,children:[t!==""&&!s&&O.jsx("img",{src:t,alt:n||r,onError:()=>{u(!0)},width:i,height:o}),(t===""||s)&&O.jsx("canvas",{ref:l})]})},Jf=e=>e==="apolitical"?{image:`${eu}logos/member_apolitical.svg`}:e==="community"||typeof e=="object"&&!e.name?{image:`${eu}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},y1=({role:e="",organisation:t="",country:r="",maximumCharacters:n=80})=>{const i=e!=="",o=t!=="",a=r!=="";if(!i&&!o&&!a)return"";const s=`${e}${i&&o?` — ${t}`:t}`;let u=`${s}${(i||o)&&a?`, ${r}`:r}`;return u.length>n&&(u=s),u.length>n&&(u=Qf(u,n)),u};const Ou=({element:e="div",member:t="community",additionalContent:r=!1,gtmContext:n="member",gtmType:i="member-click",className:o=""})=>{const a=Oe(),s=Jf(t);s.name||(s.name=a.formatMessage({id:`member_${typeof t=="string"?t:"community"}`}));const{name:u,url:l,image:c}=s,d=y1(s),f=r&&r.createdAt?vO(r.createdAt):!1,h=r&&r.createdAt?yO(r.createdAt):"";return U.createElement(e,{className:se("member text-medium",o),children:O.jsxs(wu,{href:l,gtmType:i,gtmContext:n,onClick:p=>{p==null||p.stopPropagation()},children:[O.jsx(xu,{name:u,src:c}),O.jsxs("p",{className:"details",children:[O.jsx("strong",{children:u}),r&&O.jsxs("span",{className:"additional-content",children:[r.createdAt&&f&&O.jsx("span",{className:"date",title:h,"aria-label":h,children:a.formatMessage({id:`dates_${f.path}`},{number:f.number})}),r.didEdit&&O.jsx("em",{children:a.formatMessage({id:"discussion_edited"})})]}),d&&O.jsx("small",{children:d})]})]})})};const Om={small:24,medium:48},P0=({element:e="div",contributors:{total:t,data:r}={total:void 0,data:[]},styling:{showText:n,size:i,showGap:o,showPlaceholders:a}={showText:!0,size:"medium",showGap:!0,showPlaceholders:!1},cutoff:s=2,className:u=""})=>{const l=Oe();return!r||r.length===0?null:U.createElement(e,{className:se("contributors",u,i,{"has-gap":o}),children:O.jsxs(O.Fragment,{children:[O.jsx("ul",{children:r.map((c,d)=>{let f,h="";if(d<s){const{name:p="",image:m=""}=Jf(c);if(a)return O.jsx(vr,{element:"li",className:"contributor"},d);f=O.jsx(xu,{name:p,src:m,width:Om[i||"medium"],height:Om[i||"medium"]})}else if(d===s){const p=(t||r.length)-s;f=O.jsxs("small",{className:se({"large-number":p>99}),children:["+",wO(p,0)]}),h="number-left"}return f?O.jsx("li",{className:se("contributor",h),children:f},d):null})}),n&&O.jsx("span",{className:"label",children:typeof n=="string"?n:r.length===1?typeof r[0]=="string"?l.formatMessage({id:`member_${r[0]}`}):Qf(r[0].name||"",20):null})]})})},v1=({children:e,locale:t,messages:r})=>{const n=t||"en",i={...bO[n],...r||{}};return O.jsx(VA,{locale:n,messages:i,children:e})},jr=U.createContext(null),E1=({children:e,user:t})=>O.jsx(jr.Provider,{value:t,children:e});var mo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ao=typeof window>"u"||"Deno"in window;function Ht(){}function _1(e,t){return typeof e=="function"?e(t):e}function sf(e){return typeof e=="number"&&e>=0&&e!==1/0}function N0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Am(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(n){if(t.queryHash!==Zf(a,t.options))return!1}else if(!Ps(t.queryKey,a))return!1}if(r!=="all"){const u=t.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof i<"u"&&i!==t.state.fetchStatus||o&&!o(t))}function Cm(e,t){const{exact:r,status:n,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Rs(t.options.mutationKey)!==Rs(o))return!1}else if(!Ps(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function Zf(e,t){return((t==null?void 0:t.queryKeyHashFn)||Rs)(e)}function Rs(e){return JSON.stringify(e,(t,r)=>af(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function Ps(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!Ps(e[r],t[r])):!1}function I0(e,t){if(e===t)return e;const r=Rm(e)&&Rm(t);if(r||af(e)&&af(t)){const n=r?e.length:Object.keys(e).length,i=r?t:Object.keys(t),o=i.length,a=r?[]:{};let s=0;for(let u=0;u<o;u++){const l=r?u:i[u];a[l]=I0(e[l],t[l]),a[l]===e[l]&&s++}return n===o&&s===n?e:a}return t}function ru(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Rm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function af(e){if(!Pm(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!Pm(r)||!r.hasOwnProperty("isPrototypeOf"))}function Pm(e){return Object.prototype.toString.call(e)==="[object Object]"}function L0(e){return new Promise(t=>{setTimeout(t,e)})}function Nm(e){L0(0).then(e)}function uf(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?I0(e,t):t}function b1(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function w1(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Vn,tn,ki,Jm,S1=(Jm=class extends mo{constructor(){super();ie(this,Vn,void 0);ie(this,tn,void 0);ie(this,ki,void 0);Z(this,ki,t=>{if(!ao&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){N(this,tn)||this.setEventListener(N(this,ki))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,tn))==null||t.call(this),Z(this,tn,void 0))}setEventListener(t){var r;Z(this,ki,t),(r=N(this,tn))==null||r.call(this),Z(this,tn,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){N(this,Vn)!==t&&(Z(this,Vn,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof N(this,Vn)=="boolean"?N(this,Vn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Vn=new WeakMap,tn=new WeakMap,ki=new WeakMap,Jm),nu=new S1,Mi,rn,Fi,Zm,T1=(Zm=class extends mo{constructor(){super();ie(this,Mi,!0);ie(this,rn,void 0);ie(this,Fi,void 0);Z(this,Fi,t=>{if(!ao&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){N(this,rn)||this.setEventListener(N(this,Fi))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,rn))==null||t.call(this),Z(this,rn,void 0))}setEventListener(t){var r;Z(this,Fi,t),(r=N(this,rn))==null||r.call(this),Z(this,rn,t(this.setOnline.bind(this)))}setOnline(t){N(this,Mi)!==t&&(Z(this,Mi,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return N(this,Mi)}},Mi=new WeakMap,rn=new WeakMap,Fi=new WeakMap,Zm),Ns=new T1;function x1(e){return Math.min(1e3*2**e,3e4)}function Au(e){return(e??"online")==="online"?Ns.isOnline():!0}var k0=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function fl(e){return e instanceof k0}function M0(e){let t=!1,r=0,n=!1,i,o,a;const s=new Promise((_,S)=>{o=_,a=S}),u=_=>{var S;n||(h(new k0(_)),(S=e.abort)==null||S.call(e))},l=()=>{t=!0},c=()=>{t=!1},d=()=>!nu.isFocused()||e.networkMode!=="always"&&!Ns.isOnline(),f=_=>{var S;n||(n=!0,(S=e.onSuccess)==null||S.call(e,_),i==null||i(),o(_))},h=_=>{var S;n||(n=!0,(S=e.onError)==null||S.call(e,_),i==null||i(),a(_))},p=()=>new Promise(_=>{var S;i=v=>{const b=n||!d();return b&&_(v),b},(S=e.onPause)==null||S.call(e)}).then(()=>{var _;i=void 0,n||(_=e.onContinue)==null||_.call(e)}),m=()=>{if(n)return;let _;try{_=e.fn()}catch(S){_=Promise.reject(S)}Promise.resolve(_).then(f).catch(S=>{var P;if(n)return;const v=e.retry??(ao?0:3),b=e.retryDelay??x1,T=typeof b=="function"?b(r,S):b,w=v===!0||typeof v=="number"&&r<v||typeof v=="function"&&v(r,S);if(t||!w){h(S);return}r++,(P=e.onFail)==null||P.call(e,r,S),L0(T).then(()=>{if(d())return p()}).then(()=>{t?h(S):m()})})};return Au(e.networkMode)?m():p().then(m),{promise:s,cancel:u,continue:()=>(i==null?void 0:i())?s:Promise.resolve(),cancelRetry:l,continueRetry:c}}function O1(){let e=[],t=0,r=c=>{c()},n=c=>{c()};const i=c=>{let d;t++;try{d=c()}finally{t--,t||s()}return d},o=c=>{t?e.push(c):Nm(()=>{r(c)})},a=c=>(...d)=>{o(()=>{c(...d)})},s=()=>{const c=e;e=[],c.length&&Nm(()=>{n(()=>{c.forEach(d=>{r(d)})})})};return{batch:i,batchCalls:a,schedule:o,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{n=c}}}var Ke=O1(),Wn,eg,F0=(eg=class{constructor(){ie(this,Wn,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),sf(this.gcTime)&&Z(this,Wn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ao?1/0:5*60*1e3))}clearGcTimeout(){N(this,Wn)&&(clearTimeout(N(this,Wn)),Z(this,Wn,void 0))}},Wn=new WeakMap,eg),Di,Bi,Bt,nn,Ut,it,Fs,zn,Ui,qa,er,Mr,tg,A1=(tg=class extends F0{constructor(t){super();ie(this,Ui);ie(this,er);ie(this,Di,void 0);ie(this,Bi,void 0);ie(this,Bt,void 0);ie(this,nn,void 0);ie(this,Ut,void 0);ie(this,it,void 0);ie(this,Fs,void 0);ie(this,zn,void 0);Z(this,zn,!1),Z(this,Fs,t.defaultOptions),ye(this,Ui,qa).call(this,t.options),Z(this,it,[]),Z(this,Bt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Z(this,Di,t.state||C1(this.options)),this.state=N(this,Di),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!N(this,it).length&&this.state.fetchStatus==="idle"&&N(this,Bt).remove(this)}setData(t,r){const n=uf(this.state.data,t,this.options);return ye(this,er,Mr).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){ye(this,er,Mr).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n;const r=N(this,nn);return(n=N(this,Ut))==null||n.cancel(t),r?r.then(Ht).catch(Ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(N(this,Di))}isActive(){return N(this,it).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||N(this,it).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!N0(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=N(this,it).find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=N(this,Ut))==null||r.continue()}onOnline(){var r;const t=N(this,it).find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=N(this,Ut))==null||r.continue()}addObserver(t){N(this,it).includes(t)||(N(this,it).push(t),this.clearGcTimeout(),N(this,Bt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){N(this,it).includes(t)&&(Z(this,it,N(this,it).filter(r=>r!==t)),N(this,it).length||(N(this,Ut)&&(N(this,zn)?N(this,Ut).cancel({revert:!0}):N(this,Ut).cancelRetry()),this.scheduleGc()),N(this,Bt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return N(this,it).length}invalidate(){this.state.isInvalidated||ye(this,er,Mr).call(this,{type:"invalidate"})}fetch(t,r){var l,c,d,f;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(N(this,nn))return(l=N(this,Ut))==null||l.continueRetry(),N(this,nn)}if(t&&ye(this,Ui,qa).call(this,t),!this.options.queryFn){const h=N(this,it).find(p=>p.options.queryFn);h&&ye(this,Ui,qa).call(this,h.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const n=new AbortController,i={queryKey:this.queryKey,meta:this.meta},o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(Z(this,zn,!0),n.signal)})};o(i);const a=()=>this.options.queryFn?(Z(this,zn,!1),this.options.persister?this.options.persister(this.options.queryFn,i,this):this.options.queryFn(i)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),s={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};o(s),(c=this.options.behavior)==null||c.onFetch(s,this),Z(this,Bi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=s.fetchOptions)==null?void 0:d.meta))&&ye(this,er,Mr).call(this,{type:"fetch",meta:(f=s.fetchOptions)==null?void 0:f.meta});const u=h=>{var p,m,_,S;fl(h)&&h.silent||ye(this,er,Mr).call(this,{type:"error",error:h}),fl(h)||((m=(p=N(this,Bt).config).onError)==null||m.call(p,h,this),(S=(_=N(this,Bt).config).onSettled)==null||S.call(_,this.state.data,h,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Z(this,Ut,M0({fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:h=>{var p,m,_,S;if(typeof h>"u"){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),u(new Error(`${this.queryHash} data is undefined`));return}this.setData(h),(m=(p=N(this,Bt).config).onSuccess)==null||m.call(p,h,this),(S=(_=N(this,Bt).config).onSettled)==null||S.call(_,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:u,onFail:(h,p)=>{ye(this,er,Mr).call(this,{type:"failed",failureCount:h,error:p})},onPause:()=>{ye(this,er,Mr).call(this,{type:"pause"})},onContinue:()=>{ye(this,er,Mr).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode})),Z(this,nn,N(this,Ut).promise),N(this,nn)}},Di=new WeakMap,Bi=new WeakMap,Bt=new WeakMap,nn=new WeakMap,Ut=new WeakMap,it=new WeakMap,Fs=new WeakMap,zn=new WeakMap,Ui=new WeakSet,qa=function(t){this.options={...N(this,Fs),...t},this.updateGcTime(this.options.gcTime)},er=new WeakSet,Mr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:t.meta??null,fetchStatus:Au(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return fl(i)&&i.revert&&N(this,Bi)?{...N(this,Bi),fetchStatus:"idle"}:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Ke.batch(()=>{N(this,it).forEach(n=>{n.onQueryUpdate()}),N(this,Bt).notify({query:this,type:"updated",action:t})})},tg);function C1(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t<"u",n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var fr,rg,R1=(rg=class extends mo{constructor(t={}){super();ie(this,fr,void 0);this.config=t,Z(this,fr,new Map)}build(t,r,n){const i=r.queryKey,o=r.queryHash??Zf(i,r);let a=this.get(o);return a||(a=new A1({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){N(this,fr).has(t.queryHash)||(N(this,fr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=N(this,fr).get(t.queryHash);r&&(t.destroy(),r===t&&N(this,fr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ke.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return N(this,fr).get(t)}getAll(){return[...N(this,fr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Am(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Am(t,n)):r}notify(t){Ke.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Ke.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ke.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},fr=new WeakMap,rg),hr,Ds,kt,$i,dr,Zr,ng,P1=(ng=class extends F0{constructor(t){super();ie(this,dr);ie(this,hr,void 0);ie(this,Ds,void 0);ie(this,kt,void 0);ie(this,$i,void 0);this.mutationId=t.mutationId,Z(this,Ds,t.defaultOptions),Z(this,kt,t.mutationCache),Z(this,hr,[]),this.state=t.state||D0(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...N(this,Ds),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){N(this,hr).includes(t)||(N(this,hr).push(t),this.clearGcTimeout(),N(this,kt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Z(this,hr,N(this,hr).filter(r=>r!==t)),this.scheduleGc(),N(this,kt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){N(this,hr).length||(this.state.status==="pending"?this.scheduleGc():N(this,kt).remove(this))}continue(){var t;return((t=N(this,$i))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,s,u,l,c,d,f,h,p,m,_,S,v,b,T,w,P,R;const r=()=>(Z(this,$i,M0({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(L,$)=>{ye(this,dr,Zr).call(this,{type:"failed",failureCount:L,error:$})},onPause:()=>{ye(this,dr,Zr).call(this,{type:"pause"})},onContinue:()=>{ye(this,dr,Zr).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),N(this,$i).promise),n=this.state.status==="pending";try{if(!n){ye(this,dr,Zr).call(this,{type:"pending",variables:t}),await((o=(i=N(this,kt).config).onMutate)==null?void 0:o.call(i,t,this));const $=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));$!==this.state.context&&ye(this,dr,Zr).call(this,{type:"pending",context:$,variables:t})}const L=await r();return await((l=(u=N(this,kt).config).onSuccess)==null?void 0:l.call(u,L,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,L,t,this.state.context)),await((h=(f=N(this,kt).config).onSettled)==null?void 0:h.call(f,L,null,this.state.variables,this.state.context,this)),await((m=(p=this.options).onSettled)==null?void 0:m.call(p,L,null,t,this.state.context)),ye(this,dr,Zr).call(this,{type:"success",data:L}),L}catch(L){try{throw await((S=(_=N(this,kt).config).onError)==null?void 0:S.call(_,L,t,this.state.context,this)),await((b=(v=this.options).onError)==null?void 0:b.call(v,L,t,this.state.context)),await((w=(T=N(this,kt).config).onSettled)==null?void 0:w.call(T,void 0,L,this.state.variables,this.state.context,this)),await((R=(P=this.options).onSettled)==null?void 0:R.call(P,void 0,L,t,this.state.context)),L}finally{ye(this,dr,Zr).call(this,{type:"error",error:L})}}}},hr=new WeakMap,Ds=new WeakMap,kt=new WeakMap,$i=new WeakMap,dr=new WeakSet,Zr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Au(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Ke.batch(()=>{N(this,hr).forEach(n=>{n.onMutationUpdate(t)}),N(this,kt).notify({mutation:this,type:"updated",action:t})})},ng);function D0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $t,Bs,Qn,ig,N1=(ig=class extends mo{constructor(t={}){super();ie(this,$t,void 0);ie(this,Bs,void 0);ie(this,Qn,void 0);this.config=t,Z(this,$t,[]),Z(this,Bs,0)}build(t,r,n){const i=new P1({mutationCache:this,mutationId:++ca(this,Bs)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){N(this,$t).push(t),this.notify({type:"added",mutation:t})}remove(t){Z(this,$t,N(this,$t).filter(r=>r!==t)),this.notify({type:"removed",mutation:t})}clear(){Ke.batch(()=>{N(this,$t).forEach(t=>{this.remove(t)})})}getAll(){return N(this,$t)}find(t){const r={exact:!0,...t};return N(this,$t).find(n=>Cm(r,n))}findAll(t={}){return N(this,$t).filter(r=>Cm(t,r))}notify(t){Ke.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){return Z(this,Qn,(N(this,Qn)??Promise.resolve()).then(()=>{const t=N(this,$t).filter(r=>r.state.isPaused);return Ke.batch(()=>t.reduce((r,n)=>r.then(()=>n.continue().catch(Ht)),Promise.resolve()))}).then(()=>{Z(this,Qn,void 0)})),N(this,Qn)}},$t=new WeakMap,Bs=new WeakMap,Qn=new WeakMap,ig);function I1(e){return{onFetch:(t,r)=>{const n=async()=>{var p,m,_,S,v;const i=t.options,o=(_=(m=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:m.fetchMore)==null?void 0:_.direction,a=((S=t.state.data)==null?void 0:S.pages)||[],s=((v=t.state.data)==null?void 0:v.pageParams)||[],u={pages:[],pageParams:[]};let l=!1;const c=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?l=!0:t.signal.addEventListener("abort",()=>{l=!0}),t.signal)})},d=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),f=async(b,T,w)=>{if(l)return Promise.reject();if(T==null&&b.pages.length)return Promise.resolve(b);const P={queryKey:t.queryKey,pageParam:T,direction:w?"backward":"forward",meta:t.options.meta};c(P);const R=await d(P),{maxPages:L}=t.options,$=w?w1:b1;return{pages:$(b.pages,R,L),pageParams:$(b.pageParams,T,L)}};let h;if(o&&a.length){const b=o==="backward",T=b?L1:Im,w={pages:a,pageParams:s},P=T(i,w);h=await f(w,P,b)}else{h=await f(u,s[0]??i.initialPageParam);const b=e??a.length;for(let T=1;T<b;T++){const w=Im(i,h);h=await f(h,w)}}return h};t.options.persister?t.fetchFn=()=>{var i,o;return(o=(i=t.options).persister)==null?void 0:o.call(i,n,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=n}}}function Im(e,{pages:t,pageParams:r}){const n=t.length-1;return e.getNextPageParam(t[n],t,r[n],r)}function L1(e,{pages:t,pageParams:r}){var n;return(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r)}var Ye,on,sn,ji,Hi,an,qi,Gi,og,k1=(og=class{constructor(e={}){ie(this,Ye,void 0);ie(this,on,void 0);ie(this,sn,void 0);ie(this,ji,void 0);ie(this,Hi,void 0);ie(this,an,void 0);ie(this,qi,void 0);ie(this,Gi,void 0);Z(this,Ye,e.queryCache||new R1),Z(this,on,e.mutationCache||new N1),Z(this,sn,e.defaultOptions||{}),Z(this,ji,new Map),Z(this,Hi,new Map),Z(this,an,0)}mount(){ca(this,an)._++,N(this,an)===1&&(Z(this,qi,nu.subscribe(()=>{nu.isFocused()&&(this.resumePausedMutations(),N(this,Ye).onFocus())})),Z(this,Gi,Ns.subscribe(()=>{Ns.isOnline()&&(this.resumePausedMutations(),N(this,Ye).onOnline())})))}unmount(){var e,t;ca(this,an)._--,N(this,an)===0&&((e=N(this,qi))==null||e.call(this),Z(this,qi,void 0),(t=N(this,Gi))==null||t.call(this),Z(this,Gi,void 0))}isFetching(e){return N(this,Ye).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return N(this,on).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=N(this,Ye).find({queryKey:e}))==null?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=N(this,Ye).find({queryKey:e}),i=n==null?void 0:n.state.data,o=_1(t,i);if(typeof o>"u")return;const a=this.defaultQueryOptions({queryKey:e});return N(this,Ye).build(this,a).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return Ke.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var t;return(t=N(this,Ye).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=N(this,Ye);Ke.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=N(this,Ye),n={type:"active",...e};return Ke.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=Ke.batch(()=>N(this,Ye).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(Ht).catch(Ht)}invalidateQueries(e={},t={}){return Ke.batch(()=>{if(N(this,Ye).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=Ke.batch(()=>N(this,Ye).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,r);return r.throwOnError||(o=o.catch(Ht)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Ht)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const r=N(this,Ye).build(this,t);return r.isStaleByTime(t.staleTime)?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ht).catch(Ht)}fetchInfiniteQuery(e){return e.behavior=I1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ht).catch(Ht)}resumePausedMutations(){return N(this,on).resumePausedMutations()}getQueryCache(){return N(this,Ye)}getMutationCache(){return N(this,on)}getDefaultOptions(){return N(this,sn)}setDefaultOptions(e){Z(this,sn,e)}setQueryDefaults(e,t){N(this,ji).set(Rs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...N(this,ji).values()];let r={};return t.forEach(n=>{Ps(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){N(this,Hi).set(Rs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...N(this,Hi).values()];let r={};return t.forEach(n=>{Ps(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...N(this,sn).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Zf(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.throwOnError>"u"&&(t.throwOnError=!!t.suspense),typeof t.networkMode>"u"&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...N(this,sn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){N(this,Ye).clear(),N(this,on).clear()}},Ye=new WeakMap,on=new WeakMap,sn=new WeakMap,ji=new WeakMap,Hi=new WeakMap,an=new WeakMap,qi=new WeakMap,Gi=new WeakMap,og),Ct,Be,Vi,pt,Yn,Wi,pr,Us,zi,Qi,Kn,Xn,un,Jn,Zn,_s,$s,cf,js,lf,Hs,ff,qs,hf,Gs,df,Vs,pf,Ws,mf,pu,B0,sg,M1=(sg=class extends mo{constructor(t,r){super();ie(this,Zn);ie(this,$s);ie(this,js);ie(this,Hs);ie(this,qs);ie(this,Gs);ie(this,Vs);ie(this,Ws);ie(this,pu);ie(this,Ct,void 0);ie(this,Be,void 0);ie(this,Vi,void 0);ie(this,pt,void 0);ie(this,Yn,void 0);ie(this,Wi,void 0);ie(this,pr,void 0);ie(this,Us,void 0);ie(this,zi,void 0);ie(this,Qi,void 0);ie(this,Kn,void 0);ie(this,Xn,void 0);ie(this,un,void 0);ie(this,Jn,void 0);Z(this,Be,void 0),Z(this,Vi,void 0),Z(this,pt,void 0),Z(this,Jn,new Set),Z(this,Ct,t),this.options=r,Z(this,pr,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(N(this,Be).addObserver(this),Lm(N(this,Be),this.options)&&ye(this,Zn,_s).call(this),ye(this,qs,hf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return gf(N(this,Be),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return gf(N(this,Be),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ye(this,Gs,df).call(this),ye(this,Vs,pf).call(this),N(this,Be).removeObserver(this)}setOptions(t,r){const n=this.options,i=N(this,Be);if(this.options=N(this,Ct).defaultQueryOptions(t),ru(n,this.options)||N(this,Ct).getQueryCache().notify({type:"observerOptionsUpdated",query:N(this,Be),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),ye(this,Ws,mf).call(this);const o=this.hasListeners();o&&km(N(this,Be),i,this.options,n)&&ye(this,Zn,_s).call(this),this.updateResult(r),o&&(N(this,Be)!==i||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&ye(this,$s,cf).call(this);const a=ye(this,js,lf).call(this);o&&(N(this,Be)!==i||this.options.enabled!==n.enabled||a!==N(this,un))&&ye(this,Hs,ff).call(this,a)}getOptimisticResult(t){const r=N(this,Ct).getQueryCache().build(N(this,Ct),t),n=this.createResult(r,t);return D1(this,n)&&(Z(this,pt,n),Z(this,Wi,this.options),Z(this,Yn,N(this,Be).state)),n}getCurrentResult(){return N(this,pt)}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(N(this,Jn).add(n),t[n])})}),r}getCurrentQuery(){return N(this,Be)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=N(this,Ct).defaultQueryOptions(t),n=N(this,Ct).getQueryCache().build(N(this,Ct),r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){return ye(this,Zn,_s).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),N(this,pt)))}createResult(t,r){var P;const n=N(this,Be),i=this.options,o=N(this,pt),a=N(this,Yn),s=N(this,Wi),l=t!==n?t.state:N(this,Vi),{state:c}=t;let{error:d,errorUpdatedAt:f,fetchStatus:h,status:p}=c,m=!1,_;if(r._optimisticResults){const R=this.hasListeners(),L=!R&&Lm(t,r),$=R&&km(t,n,r,i);(L||$)&&(h=Au(t.options.networkMode)?"fetching":"paused",c.dataUpdatedAt||(p="pending")),r._optimisticResults==="isRestoring"&&(h="idle")}if(r.select&&typeof c.data<"u")if(o&&c.data===(a==null?void 0:a.data)&&r.select===N(this,Us))_=N(this,zi);else try{Z(this,Us,r.select),_=r.select(c.data),_=uf(o==null?void 0:o.data,_,r),Z(this,zi,_),Z(this,pr,null)}catch(R){Z(this,pr,R)}else _=c.data;if(typeof r.placeholderData<"u"&&typeof _>"u"&&p==="pending"){let R;if(o!=null&&o.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))R=o.data;else if(R=typeof r.placeholderData=="function"?r.placeholderData((P=N(this,Qi))==null?void 0:P.state.data,N(this,Qi)):r.placeholderData,r.select&&typeof R<"u")try{R=r.select(R),Z(this,pr,null)}catch(L){Z(this,pr,L)}typeof R<"u"&&(p="success",_=uf(o==null?void 0:o.data,R,r),m=!0)}N(this,pr)&&(d=N(this,pr),_=N(this,zi),f=Date.now(),p="error");const S=h==="fetching",v=p==="pending",b=p==="error",T=v&&S;return{status:p,fetchStatus:h,isPending:v,isSuccess:p==="success",isError:b,isInitialLoading:T,isLoading:T,data:_,dataUpdatedAt:c.dataUpdatedAt,error:d,errorUpdatedAt:f,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:S,isRefetching:S&&!v,isLoadingError:b&&c.dataUpdatedAt===0,isPaused:h==="paused",isPlaceholderData:m,isRefetchError:b&&c.dataUpdatedAt!==0,isStale:eh(t,r),refetch:this.refetch}}updateResult(t){const r=N(this,pt),n=this.createResult(N(this,Be),this.options);if(Z(this,Yn,N(this,Be).state),Z(this,Wi,this.options),ru(n,r))return;N(this,Yn).data!==void 0&&Z(this,Qi,N(this,Be)),Z(this,pt,n);const i={},o=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!N(this,Jn).size)return!0;const u=new Set(s??N(this,Jn));return this.options.throwOnError&&u.add("error"),Object.keys(N(this,pt)).some(l=>{const c=l;return N(this,pt)[c]!==r[c]&&u.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),ye(this,pu,B0).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ye(this,qs,hf).call(this)}},Ct=new WeakMap,Be=new WeakMap,Vi=new WeakMap,pt=new WeakMap,Yn=new WeakMap,Wi=new WeakMap,pr=new WeakMap,Us=new WeakMap,zi=new WeakMap,Qi=new WeakMap,Kn=new WeakMap,Xn=new WeakMap,un=new WeakMap,Jn=new WeakMap,Zn=new WeakSet,_s=function(t){ye(this,Ws,mf).call(this);let r=N(this,Be).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Ht)),r},$s=new WeakSet,cf=function(){if(ye(this,Gs,df).call(this),ao||N(this,pt).isStale||!sf(this.options.staleTime))return;const r=N0(N(this,pt).dataUpdatedAt,this.options.staleTime)+1;Z(this,Kn,setTimeout(()=>{N(this,pt).isStale||this.updateResult()},r))},js=new WeakSet,lf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(N(this,Be)):this.options.refetchInterval)??!1},Hs=new WeakSet,ff=function(t){ye(this,Vs,pf).call(this),Z(this,un,t),!(ao||this.options.enabled===!1||!sf(N(this,un))||N(this,un)===0)&&Z(this,Xn,setInterval(()=>{(this.options.refetchIntervalInBackground||nu.isFocused())&&ye(this,Zn,_s).call(this)},N(this,un)))},qs=new WeakSet,hf=function(){ye(this,$s,cf).call(this),ye(this,Hs,ff).call(this,ye(this,js,lf).call(this))},Gs=new WeakSet,df=function(){N(this,Kn)&&(clearTimeout(N(this,Kn)),Z(this,Kn,void 0))},Vs=new WeakSet,pf=function(){N(this,Xn)&&(clearInterval(N(this,Xn)),Z(this,Xn,void 0))},Ws=new WeakSet,mf=function(){const t=N(this,Ct).getQueryCache().build(N(this,Ct),this.options);if(t===N(this,Be))return;const r=N(this,Be);Z(this,Be,t),Z(this,Vi,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},pu=new WeakSet,B0=function(t){Ke.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(N(this,pt))}),N(this,Ct).getQueryCache().notify({query:N(this,Be),type:"observerResultsUpdated"})})},sg);function F1(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Lm(e,t){return F1(e,t)||e.state.dataUpdatedAt>0&&gf(e,t,t.refetchOnMount)}function gf(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&eh(e,t)}return!1}function km(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&eh(e,r)}function eh(e,t){return e.isStaleByTime(t.staleTime)}function D1(e,t){return!ru(e.getCurrentResult(),t)}var cn,Et,jt,Dr,Yi,Ga,zs,yf,ag,B1=(ag=class extends mo{constructor(t,r){super();ie(this,Yi);ie(this,zs);ie(this,cn,void 0);ie(this,Et,void 0);ie(this,jt,void 0);ie(this,Dr,void 0);Z(this,Et,void 0),Z(this,cn,t),this.setOptions(r),this.bindMethods(),ye(this,Yi,Ga).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=N(this,cn).defaultMutationOptions(t),ru(r,this.options)||N(this,cn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:N(this,jt),observer:this}),(n=N(this,jt))==null||n.setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=N(this,jt))==null||t.removeObserver(this)}onMutationUpdate(t){ye(this,Yi,Ga).call(this),ye(this,zs,yf).call(this,t)}getCurrentResult(){return N(this,Et)}reset(){Z(this,jt,void 0),ye(this,Yi,Ga).call(this),ye(this,zs,yf).call(this)}mutate(t,r){var n;return Z(this,Dr,r),(n=N(this,jt))==null||n.removeObserver(this),Z(this,jt,N(this,cn).getMutationCache().build(N(this,cn),this.options)),N(this,jt).addObserver(this),N(this,jt).execute(t)}},cn=new WeakMap,Et=new WeakMap,jt=new WeakMap,Dr=new WeakMap,Yi=new WeakSet,Ga=function(){var r;const t=((r=N(this,jt))==null?void 0:r.state)??D0();Z(this,Et,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},zs=new WeakSet,yf=function(t){Ke.batch(()=>{var r,n,i,o,a,s,u,l;N(this,Dr)&&this.hasListeners()&&((t==null?void 0:t.type)==="success"?((n=(r=N(this,Dr)).onSuccess)==null||n.call(r,t.data,N(this,Et).variables,N(this,Et).context),(o=(i=N(this,Dr)).onSettled)==null||o.call(i,t.data,null,N(this,Et).variables,N(this,Et).context)):(t==null?void 0:t.type)==="error"&&((s=(a=N(this,Dr)).onError)==null||s.call(a,t.error,N(this,Et).variables,N(this,Et).context),(l=(u=N(this,Dr)).onSettled)==null||l.call(u,void 0,t.error,N(this,Et).variables,N(this,Et).context))),this.listeners.forEach(c=>{c(N(this,Et))})})},ag),U0=pe.createContext(void 0),go=e=>{const t=pe.useContext(U0);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},U1=({client:e,children:t})=>(pe.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),pe.createElement(U0.Provider,{value:e},t)),$0=pe.createContext(!1),$1=()=>pe.useContext($0);$0.Provider;function j1(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var H1=pe.createContext(j1()),q1=()=>pe.useContext(H1);function j0(e,t){return typeof e=="function"?e(...t):!!e}var G1=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},V1=e=>{pe.useEffect(()=>{e.clearReset()},[e])},W1=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&j0(r,[e.error,n]),z1=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},Q1=(e,t)=>e.isLoading&&e.isFetching&&!t,Y1=(e,t,r)=>(e==null?void 0:e.suspense)&&Q1(t,r),K1=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function X1(e,t,r){const n=go(r),i=$1(),o=q1(),a=n.defaultQueryOptions(e);a._optimisticResults=i?"isRestoring":"optimistic",z1(a),G1(a,o),V1(o);const[s]=pe.useState(()=>new t(n,a)),u=s.getOptimisticResult(a);if(pe.useSyncExternalStore(pe.useCallback(l=>{const c=i?()=>{}:s.subscribe(Ke.batchCalls(l));return s.updateResult(),c},[s,i]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),pe.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),Y1(a,u,i))throw K1(a,s,o);if(W1({result:u,errorResetBoundary:o,throwOnError:a.throwOnError,query:s.getCurrentQuery()}))throw u.error;return a.notifyOnChangeProps?u:s.trackResult(u)}function H0(e,t){return X1(e,M1,t)}function hn(e,t){const r=go(t),[n]=pe.useState(()=>new B1(r,e));pe.useEffect(()=>{n.setOptions(e)},[n,e]);const i=pe.useSyncExternalStore(pe.useCallback(a=>n.subscribe(Ke.batchCalls(a)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=pe.useCallback((a,s)=>{n.mutate(a,s).catch(J1)},[n]);if(i.error&&j0(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function J1(){}var ve={context:void 0,registry:void 0};function bs(e){ve.context=e}var Z1=(e,t)=>e===t,Is=Symbol("solid-proxy"),th=Symbol("solid-track"),eR=Symbol("solid-dev-component"),iu={equals:Z1},q0=z0,Hr=1,ou=2,G0={owned:null,cleanups:null,context:null,owner:null},hl={},Ue=null,dl=null,Me=null,mt=null,$r=null,Cu=0,[tR,nI]=bt(!1);function dn(e,t){const r=Me,n=Ue,i=e.length===0,o=i?G0:{owned:null,cleanups:null,context:null,owner:t===void 0?n:t},a=i?e:()=>e(()=>Xe(()=>Pu(o)));Ue=o,Me=null;try{return Er(a,!0)}finally{Me=r,Ue=n}}function bt(e,t){t=t?Object.assign({},iu,t):iu;const r={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},n=i=>(typeof i=="function"&&(i=i(r.value)),W0(r,i));return[V0.bind(r),n]}function vf(e,t,r){const n=Ru(e,t,!0,Hr);yo(n)}function pn(e,t,r){const n=Ru(e,t,!1,Hr);yo(n)}function rh(e,t,r){q0=mR;const n=Ru(e,t,!1,Hr);(!r||!r.render)&&(n.user=!0),$r?$r.push(n):yo(n)}function St(e,t,r){r=r?Object.assign({},iu,r):iu;const n=Ru(e,t,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=r.equals||void 0,yo(n),V0.bind(n)}function rR(e,t,r){let n,i,o;arguments.length===2&&typeof t=="object"||arguments.length===1?(n=!0,i=e,o=t||{}):(n=e,i=t,o=r||{});let a=null,s=hl,u=null,l=!1,c="initialValue"in o,d=typeof n=="function"&&St(n);const f=new Set,[h,p]=(o.storage||bt)(o.initialValue),[m,_]=bt(void 0),[S,v]=bt(void 0,{equals:!1}),[b,T]=bt(c?"ready":"unresolved");if(ve.context){u=`${ve.context.id}${ve.context.count++}`;let $;o.ssrLoadFrom==="initial"?s=o.initialValue:ve.load&&($=ve.load(u))&&(s=$[0])}function w($,q,G,j){return a===$&&(a=null,j!==void 0&&(c=!0),($===s||q===s)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(j,{value:q})),s=hl,P(q,G)),q}function P($,q){Er(()=>{q===void 0&&p(()=>$),T(q!==void 0?"errored":c?"ready":"unresolved"),_(q);for(const G of f.keys())G.decrement();f.clear()},!1)}function R(){const $=hR,q=h(),G=m();if(G!==void 0&&!a)throw G;return Me&&!Me.user&&$&&vf(()=>{S(),a&&($.resolved||f.has($)||($.increment(),f.add($)))}),q}function L($=!0){if($!==!1&&l)return;l=!1;const q=d?d():n;if(q==null||q===!1){w(a,Xe(h));return}const G=s!==hl?s:Xe(()=>i(q,{value:h(),refetching:$}));return typeof G!="object"||!(G&&"then"in G)?(w(a,G,void 0,q),G):(a=G,l=!0,queueMicrotask(()=>l=!1),Er(()=>{T(c?"refreshing":"pending"),v()},!1),G.then(j=>w(G,j,void 0,q),j=>w(G,void 0,Y0(j),q)))}return Object.defineProperties(R,{state:{get:()=>b()},error:{get:()=>m()},loading:{get(){const $=b();return $==="pending"||$==="refreshing"}},latest:{get(){if(!c)return R();const $=m();if($&&!a)throw $;return h()}}}),d?vf(()=>L(!1)):L(!1),[R,{refetch:L,mutate:p}]}function nR(e){return Er(e,!1)}function Xe(e){if(Me===null)return e();const t=Me;Me=null;try{return e()}finally{Me=t}}function iR(e,t,r){const n=Array.isArray(e);let i,o=r&&r.defer;return a=>{let s;if(n){s=Array(e.length);for(let l=0;l<e.length;l++)s[l]=e[l]()}else s=e();if(o){o=!1;return}const u=Xe(()=>t(s,i,a));return i=s,u}}function oR(e){rh(()=>Xe(e))}function Ls(e){return Ue===null||(Ue.cleanups===null?Ue.cleanups=[e]:Ue.cleanups.push(e)),e}function sR(){return Me}function Mm(){return Ue}function aR(e,t){const r=Ue,n=Me;Ue=e,Me=null;try{return Er(t,!0)}catch(i){ih(i)}finally{Ue=r,Me=n}}function uR(e){const t=Me,r=Ue;return Promise.resolve().then(()=>{Me=t,Ue=r;let n;return Er(e,!1),Me=Ue=null,n?n.done:void 0})}function cR(){return[tR,uR]}function lR(e,t){const r=Symbol("context");return{id:r,Provider:gR(r),defaultValue:e}}function fR(e){let t;return(t=K0(Ue,e.id))!==void 0?t:e.defaultValue}function nh(e){const t=St(e),r=St(()=>Ef(t()));return r.toArray=()=>{const n=r();return Array.isArray(n)?n:n!=null?[n]:[]},r}var hR;function V0(){if(this.sources&&this.state)if(this.state===Hr)yo(this);else{const e=mt;mt=null,Er(()=>au(this),!1),mt=e}if(Me){const e=this.observers?this.observers.length:0;Me.sources?(Me.sources.push(this),Me.sourceSlots.push(e)):(Me.sources=[this],Me.sourceSlots=[e]),this.observers?(this.observers.push(Me),this.observerSlots.push(Me.sources.length-1)):(this.observers=[Me],this.observerSlots=[Me.sources.length-1])}return this.value}function W0(e,t,r){let n=e.value;return(!e.comparator||!e.comparator(n,t))&&(e.value=t,e.observers&&e.observers.length&&Er(()=>{for(let i=0;i<e.observers.length;i+=1){const o=e.observers[i],a=dl&&dl.running;a&&dl.disposed.has(o),(a?!o.tState:!o.state)&&(o.pure?mt.push(o):$r.push(o),o.observers&&Q0(o)),a||(o.state=Hr)}if(mt.length>1e6)throw mt=[],new Error},!1)),t}function yo(e){if(!e.fn)return;Pu(e);const t=Ue,r=Me,n=Cu;Me=Ue=e,dR(e,e.value,n),Me=r,Ue=t}function dR(e,t,r){let n;try{n=e.fn(t)}catch(i){return e.pure&&(e.state=Hr,e.owned&&e.owned.forEach(Pu),e.owned=null),e.updatedAt=r+1,ih(i)}(!e.updatedAt||e.updatedAt<=r)&&(e.updatedAt!=null&&"observers"in e?W0(e,n):e.value=n,e.updatedAt=r)}function Ru(e,t,r,n=Hr,i){const o={fn:e,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Ue,context:null,pure:r};return Ue===null||Ue!==G0&&(Ue.owned?Ue.owned.push(o):Ue.owned=[o]),o}function su(e){if(e.state===0)return;if(e.state===ou)return au(e);if(e.suspense&&Xe(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Cu);)e.state&&t.push(e);for(let r=t.length-1;r>=0;r--)if(e=t[r],e.state===Hr)yo(e);else if(e.state===ou){const n=mt;mt=null,Er(()=>au(e,t[0]),!1),mt=n}}function Er(e,t){if(mt)return e();let r=!1;t||(mt=[]),$r?r=!0:$r=[],Cu++;try{const n=e();return pR(r),n}catch(n){r||($r=null),mt=null,ih(n)}}function pR(e){if(mt&&(z0(mt),mt=null),e)return;const t=$r;$r=null,t.length&&Er(()=>q0(t),!1)}function z0(e){for(let t=0;t<e.length;t++)su(e[t])}function mR(e){let t,r=0;for(t=0;t<e.length;t++){const n=e[t];n.user?e[r++]=n:su(n)}if(ve.context){if(ve.count){ve.effects||(ve.effects=[]),ve.effects.push(...e.slice(0,r));return}else ve.effects&&(e=[...ve.effects,...e],r+=ve.effects.length,delete ve.effects);bs()}for(t=0;t<r;t++)su(e[t])}function au(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){const n=e.sources[r];if(n.sources){const i=n.state;i===Hr?n!==t&&(!n.updatedAt||n.updatedAt<Cu)&&su(n):i===ou&&au(n,t)}}}function Q0(e){for(let t=0;t<e.observers.length;t+=1){const r=e.observers[t];r.state||(r.state=ou,r.pure?mt.push(r):$r.push(r),r.observers&&Q0(r))}}function Pu(e){let t;if(e.sources)for(;e.sources.length;){const r=e.sources.pop(),n=e.sourceSlots.pop(),i=r.observers;if(i&&i.length){const o=i.pop(),a=r.observerSlots.pop();n<i.length&&(o.sourceSlots[a]=n,i[n]=o,r.observerSlots[n]=a)}}if(e.owned){for(t=e.owned.length-1;t>=0;t--)Pu(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function Y0(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function ih(e,t=Ue){throw Y0(e)}function K0(e,t){return e?e.context&&e.context[t]!==void 0?e.context[t]:K0(e.owner,t):void 0}function Ef(e){if(typeof e=="function"&&!e.length)return Ef(e());if(Array.isArray(e)){const t=[];for(let r=0;r<e.length;r++){const n=Ef(e[r]);Array.isArray(n)?t.push.apply(t,n):t.push(n)}return t}return e}function gR(e,t){return function(n){let i;return pn(()=>i=Xe(()=>(Ue.context={[e]:n.value},nh(()=>n.children))),void 0),i}}var _f=Symbol("fallback");function uu(e){for(let t=0;t<e.length;t++)e[t]()}function yR(e,t,r={}){let n=[],i=[],o=[],a=0,s=t.length>1?[]:null;return Ls(()=>uu(o)),()=>{let u=e()||[],l,c;return u[th],Xe(()=>{let f=u.length,h,p,m,_,S,v,b,T,w;if(f===0)a!==0&&(uu(o),o=[],n=[],i=[],a=0,s&&(s=[])),r.fallback&&(n=[_f],i[0]=dn(P=>(o[0]=P,r.fallback())),a=1);else if(a===0){for(i=new Array(f),c=0;c<f;c++)n[c]=u[c],i[c]=dn(d);a=f}else{for(m=new Array(f),_=new Array(f),s&&(S=new Array(f)),v=0,b=Math.min(a,f);v<b&&n[v]===u[v];v++);for(b=a-1,T=f-1;b>=v&&T>=v&&n[b]===u[T];b--,T--)m[T]=i[b],_[T]=o[b],s&&(S[T]=s[b]);for(h=new Map,p=new Array(T+1),c=T;c>=v;c--)w=u[c],l=h.get(w),p[c]=l===void 0?-1:l,h.set(w,c);for(l=v;l<=b;l++)w=n[l],c=h.get(w),c!==void 0&&c!==-1?(m[c]=i[l],_[c]=o[l],s&&(S[c]=s[l]),c=p[c],h.set(w,c)):o[l]();for(c=v;c<f;c++)c in m?(i[c]=m[c],o[c]=_[c],s&&(s[c]=S[c],s[c](c))):i[c]=dn(d);i=i.slice(0,a=f),n=u.slice(0)}return i});function d(f){if(o[c]=f,s){const[h,p]=bt(c);return s[c]=p,t(u[c],h)}return t(u[c])}}}function vR(e,t,r={}){let n=[],i=[],o=[],a=[],s=0,u;return Ls(()=>uu(o)),()=>{const l=e()||[];return l[th],Xe(()=>{if(l.length===0)return s!==0&&(uu(o),o=[],n=[],i=[],s=0,a=[]),r.fallback&&(n=[_f],i[0]=dn(d=>(o[0]=d,r.fallback())),s=1),i;for(n[0]===_f&&(o[0](),o=[],n=[],i=[],s=0),u=0;u<l.length;u++)u<n.length&&n[u]!==l[u]?a[u](()=>l[u]):u>=n.length&&(i[u]=dn(c));for(;u<n.length;u++)o[u]();return s=a.length=o.length=l.length,n=l.slice(0),i=i.slice(0,s)});function c(d){o[u]=d;const[f,h]=bt(l[u]);return a[u]=h,t(f,u)}}}function X0(e,t){return Xe(()=>e(t||{}))}function ka(){return!0}var bf={get(e,t,r){return t===Is?r:e.get(t)},has(e,t){return t===Is?!0:e.has(t)},set:ka,deleteProperty:ka,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:ka,deleteProperty:ka}},ownKeys(e){return e.keys()}};function pl(e){return(e=typeof e=="function"?e():e)?e:{}}function ER(){for(let e=0,t=this.length;e<t;++e){const r=this[e]();if(r!==void 0)return r}}function J0(...e){let t=!1;for(let o=0;o<e.length;o++){const a=e[o];t=t||!!a&&Is in a,e[o]=typeof a=="function"?(t=!0,St(a)):a}if(t)return new Proxy({get(o){for(let a=e.length-1;a>=0;a--){const s=pl(e[a])[o];if(s!==void 0)return s}},has(o){for(let a=e.length-1;a>=0;a--)if(o in pl(e[a]))return!0;return!1},keys(){const o=[];for(let a=0;a<e.length;a++)o.push(...Object.keys(pl(e[a])));return[...new Set(o)]}},bf);const r={},n={},i=new Set;for(let o=e.length-1;o>=0;o--){const a=e[o];if(!a)continue;const s=Object.getOwnPropertyNames(a);for(let u=0,l=s.length;u<l;u++){const c=s[u];if(c==="__proto__"||c==="constructor")continue;const d=Object.getOwnPropertyDescriptor(a,c);if(!i.has(c))d.get?(i.add(c),Object.defineProperty(r,c,{enumerable:!0,configurable:!0,get:ER.bind(n[c]=[d.get.bind(a)])})):(d.value!==void 0&&i.add(c),r[c]=d.value);else{const f=n[c];f?d.get?f.push(d.get.bind(a)):d.value!==void 0&&f.push(()=>d.value):r[c]===void 0&&(r[c]=d.value)}}}return r}function Z0(e,...t){if(Is in e){const i=new Set(t.length>1?t.flat():t[0]),o=t.map(a=>new Proxy({get(s){return a.includes(s)?e[s]:void 0},has(s){return a.includes(s)&&s in e},keys(){return a.filter(s=>s in e)}},bf));return o.push(new Proxy({get(a){return i.has(a)?void 0:e[a]},has(a){return i.has(a)?!1:a in e},keys(){return Object.keys(e).filter(a=>!i.has(a))}},bf)),o}const r={},n=t.map(()=>({}));for(const i of Object.getOwnPropertyNames(e)){const o=Object.getOwnPropertyDescriptor(e,i),a=!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable;let s=!1,u=0;for(const l of t)l.includes(i)&&(s=!0,a?n[u][i]=o.value:Object.defineProperty(n[u],i,o)),++u;s||(a?r[i]=o.value:Object.defineProperty(r,i,o))}return[...n,r]}function _R(e){let t,r;const n=i=>{const o=ve.context;if(o){const[s,u]=bt();ve.count||(ve.count=0),ve.count++,(r||(r=e())).then(l=>{bs(o),ve.count--,u(()=>l.default),bs()}),t=s}else if(!t){const[s]=rR(()=>(r||(r=e())).then(u=>u.default));t=s}let a;return St(()=>(a=t())&&Xe(()=>{if(!o)return a(i);const s=ve.context;bs(o);const u=a(i);return bs(s),u}))};return n.preload=()=>r||((r=e()).then(i=>t=()=>i.default),r),n}var bR=0;function wR(){const e=ve.context;return e?`${e.id}${e.count++}`:`cl-${bR++}`}var eE=e=>`Stale read from <${e}>.`;function SR(e){const t="fallback"in e&&{fallback:()=>e.fallback};return St(yR(()=>e.each,e.children,t||void 0))}function TR(e){const t="fallback"in e&&{fallback:()=>e.fallback};return St(vR(()=>e.each,e.children,t||void 0))}function xR(e){const t=e.keyed,r=St(()=>e.when,void 0,{equals:(n,i)=>t?n===i:!n==!i});return St(()=>{const n=r();if(n){const i=e.children;return typeof i=="function"&&i.length>0?Xe(()=>i(t?n:()=>{if(!Xe(r))throw eE("Show");return e.when})):i}return e.fallback},void 0,void 0)}function OR(e){let t=!1;const r=(o,a)=>o[0]===a[0]&&(t?o[1]===a[1]:!o[1]==!a[1])&&o[2]===a[2],n=nh(()=>e.children),i=St(()=>{let o=n();Array.isArray(o)||(o=[o]);for(let a=0;a<o.length;a++){const s=o[a].when;if(s)return t=!!o[a].keyed,[a,s,o[a]]}return[-1]},void 0,{equals:r});return St(()=>{const[o,a,s]=i();if(o<0)return e.fallback;const u=s.children;return typeof u=="function"&&u.length>0?Xe(()=>u(t?a:()=>{if(Xe(i)[0]!==o)throw eE("Match");return s.when})):u},void 0,void 0)}function AR(e){return e}var CR=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],RR=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...CR]),PR=new Set(["innerHTML","textContent","innerText","children"]),NR=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),IR=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});function LR(e,t){const r=IR[e];return typeof r=="object"?r[t]?r.$:void 0:r}var kR=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),MR=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),FR={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function DR(e,t,r){let n=r.length,i=t.length,o=n,a=0,s=0,u=t[i-1].nextSibling,l=null;for(;a<i||s<o;){if(t[a]===r[s]){a++,s++;continue}for(;t[i-1]===r[o-1];)i--,o--;if(i===a){const c=o<n?s?r[s-1].nextSibling:r[o-s]:u;for(;s<o;)e.insertBefore(r[s++],c)}else if(o===s)for(;a<i;)(!l||!l.has(t[a]))&&t[a].remove(),a++;else if(t[a]===r[o-1]&&r[s]===t[i-1]){const c=t[--i].nextSibling;e.insertBefore(r[s++],t[a++].nextSibling),e.insertBefore(r[--o],c),t[i]=r[o]}else{if(!l){l=new Map;let d=s;for(;d<o;)l.set(r[d],d++)}const c=l.get(t[a]);if(c!=null)if(s<c&&c<o){let d=a,f=1,h;for(;++d<i&&d<o&&!((h=l.get(t[d]))==null||h!==c+f);)f++;if(f>c-s){const p=t[a];for(;s<c;)e.insertBefore(r[s++],p)}else e.replaceChild(r[s++],t[a++])}else a++;else t[a++].remove()}}}var Fm="_$DX_DELEGATE";function BR(e,t,r,n={}){let i;return dn(o=>{i=o,t===document?e():lu(t,e(),t.firstChild?null:void 0,r)},n.owner),()=>{i(),t.textContent=""}}function UR(e,t,r){let n;const i=()=>{const a=document.createElement("template");return a.innerHTML=e,r?a.content.firstChild.firstChild:a.content.firstChild},o=t?()=>Xe(()=>document.importNode(n||(n=i()),!0)):()=>(n||(n=i())).cloneNode(!0);return o.cloneNode=o,o}function tE(e,t=window.document){const r=t[Fm]||(t[Fm]=new Set);for(let n=0,i=e.length;n<i;n++){const o=e[n];r.has(o)||(r.add(o),t.addEventListener(o,zR))}}function cu(e,t,r){r==null?e.removeAttribute(t):e.setAttribute(t,r)}function $R(e,t,r,n){n==null?e.removeAttributeNS(t,r):e.setAttributeNS(t,r,n)}function rE(e,t){t==null?e.removeAttribute("class"):e.className=t}function nE(e,t,r,n){if(n)Array.isArray(r)?(e[`$$${t}`]=r[0],e[`$$${t}Data`]=r[1]):e[`$$${t}`]=r;else if(Array.isArray(r)){const i=r[0];e.addEventListener(t,r[0]=o=>i.call(e,r[1],o))}else e.addEventListener(t,r)}function jR(e,t,r={}){const n=Object.keys(t||{}),i=Object.keys(r);let o,a;for(o=0,a=i.length;o<a;o++){const s=i[o];!s||s==="undefined"||t[s]||(Dm(e,s,!1),delete r[s])}for(o=0,a=n.length;o<a;o++){const s=n[o],u=!!t[s];!s||s==="undefined"||r[s]===u||!u||(Dm(e,s,!0),r[s]=u)}return r}function HR(e,t,r){if(!t)return r?cu(e,"style"):t;const n=e.style;if(typeof t=="string")return n.cssText=t;typeof r=="string"&&(n.cssText=r=void 0),r||(r={}),t||(t={});let i,o;for(o in r)t[o]==null&&n.removeProperty(o),delete r[o];for(o in t)i=t[o],i!==r[o]&&(n.setProperty(o,i),r[o]=i);return r}function iE(e,t={},r,n){const i={};return n||pn(()=>i.children=uo(e,t.children,i.children)),pn(()=>t.ref&&t.ref(e)),pn(()=>GR(e,t,r,!0,i,!0)),i}function qR(e,t,r){return Xe(()=>e(t,r))}function lu(e,t,r,n){if(r!==void 0&&!n&&(n=[]),typeof t!="function")return uo(e,t,n,r);pn(i=>uo(e,t(),i,r),n)}function GR(e,t,r,n,i={},o=!1){t||(t={});for(const a in i)if(!(a in t)){if(a==="children")continue;i[a]=Bm(e,a,null,i[a],r,o)}for(const a in t){if(a==="children"){n||uo(e,t.children);continue}const s=t[a];i[a]=Bm(e,a,s,i[a],r,o)}}function VR(e){let t,r;if(!ve.context||!(t=ve.registry.get(r=QR()))){if(ve.context,!e)throw new Error("Unrecoverable Hydration Mismatch. No template for key: "+r);return e()}return ve.completed&&ve.completed.add(t),ve.registry.delete(r),t}function WR(e){return e.toLowerCase().replace(/-([a-z])/g,(t,r)=>r.toUpperCase())}function Dm(e,t,r){const n=t.trim().split(/\s+/);for(let i=0,o=n.length;i<o;i++)e.classList.toggle(n[i],r)}function Bm(e,t,r,n,i,o){let a,s,u,l,c;if(t==="style")return HR(e,r,n);if(t==="classList")return jR(e,r,n);if(r===n)return n;if(t==="ref")o||r(e);else if(t.slice(0,3)==="on:"){const d=t.slice(3);n&&e.removeEventListener(d,n),r&&e.addEventListener(d,r)}else if(t.slice(0,10)==="oncapture:"){const d=t.slice(10);n&&e.removeEventListener(d,n,!0),r&&e.addEventListener(d,r,!0)}else if(t.slice(0,2)==="on"){const d=t.slice(2).toLowerCase(),f=kR.has(d);if(!f&&n){const h=Array.isArray(n)?n[0]:n;e.removeEventListener(d,h)}(f||r)&&(nE(e,d,r,f),f&&tE([d]))}else if(t.slice(0,5)==="attr:")cu(e,t.slice(5),r);else if((c=t.slice(0,5)==="prop:")||(u=PR.has(t))||!i&&((l=LR(t,e.tagName))||(s=RR.has(t)))||(a=e.nodeName.includes("-")))c&&(t=t.slice(5),s=!0),t==="class"||t==="className"?rE(e,r):a&&!s&&!u?e[WR(t)]=r:e[l||t]=r;else{const d=i&&t.indexOf(":")>-1&&FR[t.split(":")[0]];d?$R(e,d,t,r):cu(e,NR[t]||t,r)}return r}function zR(e){const t=`$$${e.type}`;let r=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==r&&Object.defineProperty(e,"target",{configurable:!0,value:r}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return r||document}}),ve.registry&&!ve.done&&(ve.done=_$HY.done=!0);r;){const n=r[t];if(n&&!r.disabled){const i=r[`${t}Data`];if(i!==void 0?n.call(r,i,e):n.call(r,e),e.cancelBubble)return}r=r._$host||r.parentNode||r.host}}function uo(e,t,r,n,i){if(ve.context){!r&&(r=[...e.childNodes]);let s=[];for(let u=0;u<r.length;u++){const l=r[u];l.nodeType===8&&l.data.slice(0,2)==="!$"?l.remove():s.push(l)}r=s}for(;typeof r=="function";)r=r();if(t===r)return r;const o=typeof t,a=n!==void 0;if(e=a&&r[0]&&r[0].parentNode||e,o==="string"||o==="number"){if(ve.context)return r;if(o==="number"&&(t=t.toString()),a){let s=r[0];s&&s.nodeType===3?s.data=t:s=document.createTextNode(t),r=Ri(e,r,n,s)}else r!==""&&typeof r=="string"?r=e.firstChild.data=t:r=e.textContent=t}else if(t==null||o==="boolean"){if(ve.context)return r;r=Ri(e,r,n)}else{if(o==="function")return pn(()=>{let s=t();for(;typeof s=="function";)s=s();r=uo(e,s,r,n)}),()=>r;if(Array.isArray(t)){const s=[],u=r&&Array.isArray(r);if(wf(s,t,r,i))return pn(()=>r=uo(e,s,r,n,!0)),()=>r;if(ve.context){if(!s.length)return r;for(let l=0;l<s.length;l++)if(s[l].parentNode)return r=s}if(s.length===0){if(r=Ri(e,r,n),a)return r}else u?r.length===0?Um(e,s,n):DR(e,r,s):(r&&Ri(e),Um(e,s));r=s}else if(t.nodeType){if(ve.context&&t.parentNode)return r=a?[t]:t;if(Array.isArray(r)){if(a)return r=Ri(e,r,n,t);Ri(e,r,null,t)}else r==null||r===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);r=t}}return r}function wf(e,t,r,n){let i=!1;for(let o=0,a=t.length;o<a;o++){let s=t[o],u=r&&r[o],l;if(!(s==null||s===!0||s===!1))if((l=typeof s)=="object"&&s.nodeType)e.push(s);else if(Array.isArray(s))i=wf(e,s,u)||i;else if(l==="function")if(n){for(;typeof s=="function";)s=s();i=wf(e,Array.isArray(s)?s:[s],Array.isArray(u)?u:[u])||i}else e.push(s),i=!0;else{const c=String(s);u&&u.nodeType===3&&u.data===c?e.push(u):e.push(document.createTextNode(c))}}return i}function Um(e,t,r=null){for(let n=0,i=t.length;n<i;n++)e.insertBefore(t[n],r)}function Ri(e,t,r,n){if(r===void 0)return e.textContent="";const i=n||document.createTextNode("");if(t.length){let o=!1;for(let a=t.length-1;a>=0;a--){const s=t[a];if(i!==s){const u=s.parentNode===e;!o&&!a?u?e.replaceChild(i,s):e.insertBefore(i,r):u&&s.remove()}else o=!0}}else e.insertBefore(i,r);return[i]}function QR(){const e=ve.context;return`${e.id}${e.count++}`}var YR="http://www.w3.org/2000/svg";function oE(e,t=!1){return t?document.createElementNS(YR,e):document.createElement(e)}function KR(e){const{useShadow:t}=e,r=document.createTextNode(""),n=()=>e.mount||document.body,i=Mm();let o,a=!!ve.context;return rh(()=>{a&&(Mm().user=a=!1),o||(o=aR(i,()=>St(()=>e.children)));const s=n();if(s instanceof HTMLHeadElement){const[u,l]=bt(!1),c=()=>l(!0);dn(d=>lu(s,()=>u()?d():o(),null)),Ls(c)}else{const u=oE(e.isSVG?"g":"div",e.isSVG),l=t&&u.attachShadow?u.attachShadow({mode:"open"}):u;Object.defineProperty(u,"_$host",{get(){return r.parentNode},configurable:!0}),lu(l,o),s.appendChild(u),e.ref&&e.ref(u),Ls(()=>s.removeChild(u))}},void 0,{render:!a}),r}function XR(e){const[t,r]=Z0(e,["component"]),n=St(()=>t.component);return St(()=>{const i=n();switch(typeof i){case"function":return Object.assign(i,{[eR]:!0}),Xe(()=>i(r));case"string":const o=MR.has(i),a=ve.context?VR():oE(i,o);return iE(a,r,o),a}})}var Ki,Qs,Ys,Ks,ei,Xi,Ji,Zi,eo,to,Xs,ug,JR=(ug=class{constructor(e){ie(this,Ki,void 0);ie(this,Qs,void 0);ie(this,Ys,void 0);ie(this,Ks,void 0);ie(this,ei,!1);ie(this,Xi,void 0);ie(this,Ji,void 0);ie(this,Zi,void 0);ie(this,eo,void 0);ie(this,to,void 0);ie(this,Xs,void 0);const{client:t,queryFlavor:r,version:n,onlineManager:i,buttonPosition:o,position:a,initialIsOpen:s,errorTypes:u}=e;Z(this,Ki,bt(t)),Z(this,Ys,r),Z(this,Ks,n),Z(this,Qs,i),Z(this,Xi,bt(o)),Z(this,Ji,bt(a)),Z(this,Zi,bt(s)),Z(this,eo,bt(u))}setButtonPosition(e){N(this,Xi)[1](e)}setPosition(e){N(this,Ji)[1](e)}setInitialIsOpen(e){N(this,Zi)[1](e)}setErrorTypes(e){N(this,eo)[1](e)}setClient(e){N(this,Ki)[1](e)}mount(e){if(N(this,ei))throw new Error("Devtools is already mounted");const t=BR(()=>{const[r]=N(this,Xi),[n]=N(this,Ji),[i]=N(this,Zi),[o]=N(this,eo),[a]=N(this,Ki);let s;N(this,to)?s=N(this,to):(s=_R(()=>Promise.resolve().then(()=>require("./4TNE5QTO-0b6a1f67.js"))),Z(this,to,s));const u=this;return X0(s,J0({get queryFlavor(){return N(u,Ys)},get version(){return N(u,Ks)},get onlineManager(){return N(u,Qs)}},{get client(){return a()},get buttonPosition(){return r()},get position(){return n()},get initialIsOpen(){return i()},get errorTypes(){return o()}}))},e);Z(this,ei,!0),Z(this,Xs,t)}unmount(){var e;if(!N(this,ei))throw new Error("Devtools is not mounted");(e=N(this,Xs))==null||e.call(this),Z(this,ei,!1)}},Ki=new WeakMap,Qs=new WeakMap,Ys=new WeakMap,Ks=new WeakMap,ei=new WeakMap,Xi=new WeakMap,Ji=new WeakMap,Zi=new WeakMap,eo=new WeakMap,to=new WeakMap,Xs=new WeakMap,ug);function ZR(e){const t=go(),r=e.client||t,n=U.useRef(null),{buttonPosition:i,position:o,initialIsOpen:a,errorTypes:s}=e,[u]=U.useState(new JR({client:r,queryFlavor:"React Query",version:"5",onlineManager:Ns,buttonPosition:i,position:o,initialIsOpen:a,errorTypes:s}));return U.useEffect(()=>{u.setClient(r)},[r,u]),U.useEffect(()=>{i&&u.setButtonPosition(i)},[i,u]),U.useEffect(()=>{o&&u.setPosition(o)},[o,u]),U.useEffect(()=>{u.setInitialIsOpen(a||!1)},[a,u]),U.useEffect(()=>{u.setErrorTypes(s||[])},[s,u]),U.useEffect(()=>(n.current&&u.mount(n.current),()=>{u.unmount()}),[u]),U.createElement("div",{className:"tsqd-parent-container",ref:n})}var eP=process.env.NODE_ENV!=="development"?function(){return null}:ZR;const tP=({showDevTools:e,children:t})=>{const r=new k1({defaultOptions:{queries:{refetchOnWindowFocus:!1,staleTime:6e4}}});return O.jsxs(U1,{client:r,children:[t,e&&O.jsx(eP,{initialIsOpen:!1})]})};const ml="joinCommunityButton",oh=({isMember:e=!1,isShort:t=!1,functions:{join:r,leave:n}={join:()=>{},leave:()=>{}}})=>{const i=Oe(),o=U.useContext(jr),a=o&&typeof o.id=="string",[s,u]=U.useState(e),[l,c]=U.useState(e?"joined":"notJoined");U.useEffect(()=>{l==="joining"?c("joined"):l==="leaving"&&c("notJoined")},[s]);const d={},f={};return s&&l!=="leaving"&&(d["data-hover-text"]=i.formatMessage({id:`${ml}_leave`}),d["aria-label"]=i.formatMessage({id:`${ml}_member_aria`}),f["aria-hidden"]="true"),O.jsx(ze,{variant:s?"secondary":"primary",size:"medium",styling:{fullWidth:!0},icon:s&&l!=="leaving"?{icon:"tick",position:"left"}:!1,onClick:async h=>{a&&(h.currentTarget.blur(),s?(c("leaving"),typeof n=="function"&&await n()):(c("joining"),typeof r=="function"&&await r()),u(!s))},className:se("join-community-button",l,{active:l==="joining"}),disabled:!a,...d,children:O.jsx("span",{className:"text",...f,children:i.formatMessage({id:`${ml}${["joining","leaving"].includes(l)?`_${l}`:s?"_member":t?"_short":""}`})})})};const gl="communityDetails_",rP=({isMember:e=!1,slug:t,members:{number:r,data:n}={number:void 0,data:[]},className:i="",...o})=>{const a=Oe(),s=r||(n==null?void 0:n.length)||0;return O.jsxs("div",{className:se("community-details",i),children:[O.jsx(Za,{}),O.jsxs("div",{className:"member-details",children:[O.jsxs("div",{className:"top",children:[O.jsxs("h3",{children:[a.formatMessage({id:`${gl}members`}),O.jsx("span",{className:"count",children:s})]}),O.jsx("p",{className:"text-small",children:O.jsx(Tt.Link,{to:`/communities/${t}/members`,children:a.formatMessage({id:`${gl}viewAll`})})})]}),O.jsx(P0,{contributors:{total:r,data:n!=null&&n.length?n:[{},{},{},{},{}]},styling:{size:"medium",showGap:!0,showPlaceholders:s===0},cutoff:5})]}),O.jsx(oh,{isMember:e,...o}),e&&O.jsx(ze,{variant:"primary",icon:{icon:"plus"},styling:{fullWidth:!0},children:a.formatMessage({id:`${gl}invite`})})]})};const nP=({breadcrumbs:e,cutoff:t=20,className:r=""})=>{const n=Oe();return O.jsxs(O.Fragment,{children:[O.jsx(lt,{element:"p",children:n.formatMessage({id:"breadcrumbs_label"})}),O.jsx("ul",{className:se("breadcrumbs text-small",r),children:e.map(({text:i,href:o,current:a=!1},s)=>O.jsxs("li",{children:[a&&O.jsx(lt,{element:"span",children:n.formatMessage({id:"breadcrumbs_currentPage"})}),O.jsx(wu,{href:a?void 0:o,children:Qf(i,t)})]},`${window.btoa(i)}_${s}`))})]})};const iP=({options:e,allOption:t=!1,allowMultiple:r=!0,onChange:n=()=>{},className:i=""})=>{const o=Oe(),a=t?[{id:"all",text:typeof t!="boolean"&&t.text||o.formatMessage({id:"filters_all"})},...e]:e,[s,u]=U.useState(t?["all"]:[]),l=(c,d)=>{let f=[];s.includes(c)?f=s.filter(h=>h!==c):c==="all"?f=["all"]:r?f=[...s.filter(h=>h!=="all"),c]:f=[c],u(h=>(n&&typeof n=="function"&&n({current:f,previous:h}),f)),d&&typeof d=="function"&&d()};return O.jsx("ul",{className:se("filters",i),children:a.map(({id:c,text:d,disabled:f=!1,callback:h=()=>{}})=>{let p={};return f&&(p={disabled:!0,"aria-label":o.formatMessage({id:"filters_disabled"},{name:d})}),O.jsx("li",{children:O.jsx("button",{className:se(c,{selected:s.includes(c)}),onClick:m=>{m.preventDefault(),m.stopPropagation(),l(c,h)},...p,children:d})},c)})})};const yl=Zl({locale:"en",messages:Hf}),sE=({page:e=1,length:t=0,limit:r=10,loadNextPage:n=()=>{},icon:i=!1,messages:o={button:yl.formatMessage({id:"loadMore_button"}),endOfFeed:yl.formatMessage({id:"loadMore_endOfFeed"}),error:yl.formatMessage({id:"loadMore_error"})},className:a="",gtmContext:s="LoadMore"})=>{const[u,l]=U.useState(!1),[c,d]=U.useState(!1);if(t<=0||t<r*e)return null;const f=async h=>{try{await n(h)}catch(p){p instanceof Error&&p.message&&p.message.includes("Cannot read items")?d(!0):l(!0)}};return O.jsxs("footer",{className:se("load-more",a),children:[u&&O.jsx("p",{className:"error",children:o.error}),c?O.jsx("p",{children:o.endOfFeed}):O.jsx(ze,{variant:"secondary",icon:i,onClick:f,"data-gtm-event-context":s,"data-gtm-event-type":"load-more-click",className:"gtm-trackable","data-testid":"load-more-button",children:o.button})]})};let Ma=!1;const aE=({element:e="div",id:t="more-menu",options:r,className:n=""})=>{const i=Oe(),o=U.useRef(null),[a,s]=U.useState(!1),u=l=>{o.current&&l.target instanceof HTMLElement&&!o.current.contains(l.target)&&s(!1)};return U.useEffect(()=>(document.addEventListener("click",u,!0),()=>{document.removeEventListener("click",u,!0)})),U.createElement(e,{ref:o,className:se("more-menu text-medium",n),children:O.jsxs(O.Fragment,{children:[O.jsx(ze,{variant:"tertiary",size:"medium",icon:{icon:"ellipsis"},onClick:()=>s(!a),"aria-haspopup":"true","aria-expanded":a,"aria-controls":t,screenreaderText:i.formatMessage({id:"moreMenu"})}),O.jsx("ul",{id:t,hidden:!a,children:r.map(({href:l,onClick:c,text:d,icon:f,...h},p)=>{const m={...h,onClick:_=>{s(!1),typeof c=="function"&&c(_)},onFocus:()=>{Ma&&(clearTimeout(Ma),Ma=!1)},onBlur:()=>{Ma=setTimeout(()=>{s(!1)},100)}};return l&&(m.href=l),O.jsx("li",{children:O.jsx(ze,{variant:"tertiary",size:"medium",icon:f?{icon:f,position:"left"}:!1,...m,children:d})},`${window.btoa(d)}_${p}`)})})]})})};const sh=({variant:e="default",version:t="default",className:r="",...n})=>O.jsx("p",{className:"logo-wrapper",children:O.jsx(Tt.Link,{to:"/home/",className:se("logo",e,t,r),...n,children:O.jsx(lt,{children:O.jsx(fn,{id:"apolitical"})})})});const oP={"2-1":901},sP=({layout:e="2-1",hideOnMobile:t=!1,className:r="",children:n})=>{const i=ra(!0);let o=n;return U.Children.count(n)===1&&(o=U.Children.toArray(n)[0],o.props&&(o=o.props.children)),O.jsx("section",{className:se("columns",`layout-${e}`,r),children:U.Children.map(o,(a,s)=>t!==!1&&s===t&&i&&i<oP[e]?null:a)})};const vl="cookieBanner_",El=["apol-cookie-banner","apolitical-performance-cookie-consent","functional-cookie-consent"],_l=new Date(Date.now()+12*30*24*60*60*1e3),uE=()=>{const e=Oe(),t=Tt.useNavigate(),[r,n,i]=mg(El),[o,a]=U.useState(!r["apol-cookie-banner"]),s=()=>{El.forEach(d=>{n(d,!0,{path:"/",expires:_l,domain:d==="apolitical-performance-cookie-consent"?".apolitical.co":void 0})}),a(!1),t(0)},u=()=>{n("apol-cookie-banner",!0,{path:"/",expires:_l}),El.forEach(d=>{if(d==="apol-cookie-banner"){n(d,!0,{path:"/",expires:_l});return}i(d)}),a(!1)};if(!o)return null;const l=[{id:"settings",href:"/pages/cookie-policy",gtmType:"policy-page"},{id:"reject",onClick:u,gtmType:"reject-all"},{id:"accept",onClick:s,gtmType:"accepted-all"}],c=[];return l.forEach(d=>{c.push({variant:d.href?"tertiary":"primary",href:d.href,onClick:d.onClick,className:"gtm-trackable","data-gtm-event-context":"cookie-banner","data-gtm-event-type":`cookie-${d.gtmType}-click`,children:e.formatMessage({id:`${vl}buttons_${d.id}`})})}),O.jsxs("aside",{id:"cookie-banner",className:"text-medium",children:[O.jsx("h6",{children:e.formatMessage({id:`${vl}title`})}),O.jsx("p",{children:e.formatMessage({id:`${vl}text`})}),O.jsx(na,{buttons:c})]})},Br={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 Ii="footer_",fu="SiteFooter",$m=({group:e})=>{const t=Br[e].order||[];let r=!1;return"text"in Br[e]&&(r=Br[e].text),O.jsxs(U.Fragment,{children:[O.jsx("p",{className:"pre-title",children:O.jsx(fn,{id:`${Ii}${e}`})}),Array.isArray(t)&&t.length>0&&O.jsx("ul",{className:"text-medium",children:t.map(n=>{if(["order","child","text"].includes(n))return null;const{href:i,gtmType:o}=Br[e][n],a={};return["legal"].includes(e)&&(a.target="_blank",a.rel="noopener"),O.jsx("li",{children:O.jsx(Tt.Link,{to:i,className:"gtm-trackable","data-gtm-event-context":fu,"data-gtm-event-type":o,...a,children:O.jsx(fn,{id:`${Ii}${e}_${n}`})})},`${e}_${n}`)})}),typeof r!="boolean"&&"order"in r&&Array.isArray(r.order)&&O.jsx("dl",{className:"text-medium",children:r.order.map(n=>O.jsxs(U.Fragment,{children:[O.jsx("dt",{children:O.jsx(fn,{id:`${Ii}${e}_${n}`})}),O.jsxs("dd",{children:[typeof r!="boolean"&&r[n].address&&O.jsx("address",{children:O.jsx(fn,{id:`${Ii}${e}_${n}_address`,values:{br:O.jsx("br",{})}})}),typeof r!="boolean"&&r[n].email&&O.jsx("a",{href:`mailto:${r[n].email}`,className:"gtm-trackable","data-gtm-event-context":fu,"data-gtm-event-type":r[n].gtmType,children:r[n].email})]})]},`dl-${e}-${n}`))})]},e)},ah=()=>O.jsx("div",{id:"footer",children:O.jsxs("div",{className:"wrapper",children:[O.jsx(Tf,{element:"hr"}),O.jsx(sh,{variant:"inverted",version:"full",className:"gtm-trackable","data-gtm-event-context":fu,"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($m,{group:e}),Object.keys(Br[e]).includes("child")&&O.jsx($m,{group:Br[e].child})]},e))}),O.jsx("hr",{}),O.jsxs("div",{className:"sub-footer",children:[O.jsx("ul",{children:Array.isArray(Br.social.order)&&Br.social.order.map(e=>{const t=Br.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":fu,"data-gtm-event-type":"social-click",children:O.jsx("span",{className:"hidden",children:O.jsx(fn,{id:`${Ii}social_${e}`})})})},e)})}),O.jsx("small",{children:O.jsx(fn,{id:`${Ii}copyright`,values:{currentYear:new Date().getFullYear()}})})]})]})});const Fa="emailHelperTextBox_",aP=({type:e,email:t,redirectPath:r,resendVerificationCode:n})=>{const i=Oe(),o=Tt.useNavigate(),[a,s]=U.useState({path:`${Fa}default`,type:"default",link:{},mail:{},error:""}),[u,l]=U.useState(!1),c=U.useCallback(p=>{p.preventDefault(),p.stopPropagation();const m=_=>{s({path:`${Fa}error_verificationFailedToSend`,type:"error",link:{"data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:S=>c(S),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:_})};if(typeof n!="function"){m(i.formatMessage({id:`${Fa}error_noFunction`}));return}l(!0),n(t).then(()=>{localStorage.setItem("email",t),o(r||"/signup/verify-email")}).catch(_=>{m(_.message)}).finally(()=>{l(!1)})},[t,r,n]);U.useEffect(()=>{let p=Fa,m="default",_={},S={};switch(e){case"gov":p+="autoApproved",m="success";break;case"nonGov":p+="unrecognisedEmail",m="error",_={href:"https://about.apolitical.co/who-can-join-the-community","data-gtm-event-context":"NonGovEmailHelperTextBox","data-gtm-event-type":"LearnMoreClick"};break;case"pending":p+="pendingApproval",m="error",S={href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"email-concierge-click"};break;case"verify":p+="emailUnverified",m="error",_={href:"#","data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:v=>c(v),"data-testid":"send-verify-email-click"};break;case"exists":p+="emailAlreadyExists",m="error",_={href:"/user-onboarding/login","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"login-click"},S={href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"email-concierge-click"};break;default:p+="default",_={href:"https://about.apolitical.co/who-can-join-the-community","data-gtm-event-context":"DefaultEmailHelperTextBox","data-gtm-event-type":"LearnMoreClick"};break}s({...a,path:p,type:m,link:_,mail:S})},[e]);const d={};return["link","mail"].forEach(p=>{d[p]=Object.keys(a[p]).length?m=>O.jsx("a",{...a[p],children:m}):m=>m}),O.jsx(T0,{type:a.type,heading:u?!1:i.formatMessage({id:`${a.path}_title`}),children:u?O.jsxs(O.Fragment,{children:[O.jsx(vr,{element:"span"}),O.jsx(vr,{element:"span"})]}):i.formatMessage({id:`${a.path}_text`},{...d,strong:p=>O.jsx("strong",{children:p}),em:p=>O.jsx("em",{children:p}),br:O.jsxs(O.Fragment,{children:[O.jsx("br",{}),O.jsx("br",{})]}),error:a.error})})};const Da="passwordRules_",cE="isMoreThanEightCharacters",lE="includesNumberAndSymbol",fE="includesLowerAndUppercase",uP={[cE]:"8Characters",[lE]:"numberSymbol",[fE]:"lowercaseUppercase"},cP=({matchingRules:e={isMoreThanEightCharacters:!1,includesNumberAndSymbol:!1,includesLowerAndUppercase:!1},className:t=""})=>{const r=Oe();return O.jsxs("aside",{className:se("password-rules",t),children:[O.jsx("small",{children:r.formatMessage({id:`${Da}intro`})}),O.jsx("ul",{children:[cE,lE,fE].map(n=>O.jsxs("li",{className:se({matches:e[n]}),children:[O.jsxs(lt,{children:[r.formatMessage({id:`${Da}rule_label`})," "]}),O.jsx("span",{children:r.formatMessage({id:`${Da}rule_${uP[n]}`})}),!e[n]&&O.jsxs(lt,{element:"strong",children:[" "," ",r.formatMessage({id:`${Da}notMet`})]})]},`rule-${n}`))})]})},lP=U.memo(cP);const fP=({text:e={},topRating:t=5,functions:{createRating:r=()=>null,updateRating:n=()=>{},reportError:i=()=>{}},className:o="",hasLoaded:a=!1})=>{const s=Oe(),[u,l]=U.useState({setUp:!1,id:null,rating:null,disabled:!0}),c=async()=>{try{const S=await r();l(v=>({...v,setUp:!0,id:S&&S.id,disabled:!1}))}catch(S){l(v=>({...v,setUp:!0,disabled:!0})),i(S)}};if(U.useEffect(()=>{a&&!u.setUp&&c()},[a]),!a)return O.jsx(vr,{className:"rating-placeholder"});const{id:d,rating:f,disabled:h}=u,p="ratings_",m={text:s.formatMessage({id:`${p}text`}),low:s.formatMessage({id:`${p}low`}),high:s.formatMessage({id:`${p}high`}),success:s.formatMessage({id:`${p}success`}),...e},_=async S=>{if(!(!d||h))try{l(v=>({...v,rating:S,disabled:!0})),await n({id:d,value:S})}catch(v){l(b=>({...b,rating:null})),i(v)}finally{l(v=>({...v,disabled:!1}))}};return O.jsxs("div",{className:se("rating",o),children:[O.jsx("span",{className:"label",children:m[f?"success":"text"]}),O.jsx("ol",{children:Array.from(new Array(t).keys()).map(S=>{const v=S+1;return O.jsx("li",{className:se({selected:f&&v<=f}),children:O.jsx(ze,{variant:"tertiary",size:"small",icon:{icon:`star${!f||v>f?"_empty":""}`,position:"left",hover:"star"},screenreaderText:`${s.formatMessage({id:`${p}stars`},{number:v,total:t})}${v===1||v===t?` - ${m[v===1?"low":"high"]}`:""}`,onClick:b=>{b.preventDefault(),b.stopPropagation(),_(v)},disabled:h})},`rating-${v}`)})})]})};const hE=({id:e="search",className:t="",handleToggle:r=!1,defaultValue:n="",gtmContext:i="search-bar",gtmEvent:o="form-submission"})=>{const{searchIsOpen:a=!0,isDesktopVersion:s=!1}=r||{},u=Oe(),l=Tt.useNavigate(),c=U.useRef(null);ni(()=>{!r||s||!a||c.current&&c.current.focus()},[a]);const d=f=>{f.preventDefault(),f.stopPropagation(),!(!c.current||!c.current.value||c.current.value.length<1)&&l(`/search?search=${encodeURIComponent(c.current.value)}`)};return O.jsx("form",{onSubmit:d,className:se("search-form gtm-trackable",t),"data-gtm-event-context":i,"data-gtm-event-type":o,children:O.jsx("fieldset",{id:`${e}-form`,hidden:r?!a:!1,role:"search",children:O.jsxs("p",{children:[O.jsx(lt,{element:"label",htmlFor:e,children:u.formatMessage({id:"search_label"})}),O.jsx("input",{ref:c,type:"search",id:e,name:e,defaultValue:n,placeholder:u.formatMessage({id:"search_placeholder"}),onKeyDown:f=>{f.key==="Enter"&&d(f)}}),O.jsx("button",{className:"clear",onClick:f=>{f.preventDefault(),f.stopPropagation(),c.current&&c.current.value&&(c.current.value="")},children:O.jsx(lt,{children:u.formatMessage({id:"search_clear"})})}),O.jsx("button",{className:"search",onClick:d,children:O.jsx(lt,{children:u.formatMessage({id:"search_cta"})})})]})})})};var hP="Expected a function",dE="__lodash_hash_undefined__",pE=1/0,dP="[object Function]",pP="[object GeneratorFunction]",mP="[object Symbol]",gP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yP=/^\w*$/,vP=/^\./,EP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_P=/[\\^$.*+?()[\]{}|]/g,bP=/\\(\\)?/g,wP=/^\[object .+?Constructor\]$/,SP=typeof he=="object"&&he&&he.Object===Object&&he,TP=typeof self=="object"&&self&&self.Object===Object&&self,uh=SP||TP||Function("return this")();function xP(e,t){return e==null?void 0:e[t]}function OP(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var AP=Array.prototype,CP=Function.prototype,mE=Object.prototype,bl=uh["__core-js_shared__"],jm=function(){var e=/[^.]+$/.exec(bl&&bl.keys&&bl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),gE=CP.toString,ch=mE.hasOwnProperty,yE=mE.toString,RP=RegExp("^"+gE.call(ch).replace(_P,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hm=uh.Symbol,PP=AP.splice,NP=vE(uh,"Map"),ks=vE(Object,"create"),qm=Hm?Hm.prototype:void 0,Gm=qm?qm.toString:void 0;function si(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function IP(){this.__data__=ks?ks(null):{}}function LP(e){return this.has(e)&&delete this.__data__[e]}function kP(e){var t=this.__data__;if(ks){var r=t[e];return r===dE?void 0:r}return ch.call(t,e)?t[e]:void 0}function MP(e){var t=this.__data__;return ks?t[e]!==void 0:ch.call(t,e)}function FP(e,t){var r=this.__data__;return r[e]=ks&&t===void 0?dE:t,this}si.prototype.clear=IP;si.prototype.delete=LP;si.prototype.get=kP;si.prototype.has=MP;si.prototype.set=FP;function vo(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function DP(){this.__data__=[]}function BP(e){var t=this.__data__,r=Nu(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():PP.call(t,r,1),!0}function UP(e){var t=this.__data__,r=Nu(t,e);return r<0?void 0:t[r][1]}function $P(e){return Nu(this.__data__,e)>-1}function jP(e,t){var r=this.__data__,n=Nu(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}vo.prototype.clear=DP;vo.prototype.delete=BP;vo.prototype.get=UP;vo.prototype.has=$P;vo.prototype.set=jP;function li(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function HP(){this.__data__={hash:new si,map:new(NP||vo),string:new si}}function qP(e){return Iu(this,e).delete(e)}function GP(e){return Iu(this,e).get(e)}function VP(e){return Iu(this,e).has(e)}function WP(e,t){return Iu(this,e).set(e,t),this}li.prototype.clear=HP;li.prototype.delete=qP;li.prototype.get=GP;li.prototype.has=VP;li.prototype.set=WP;function Nu(e,t){for(var r=e.length;r--;)if(nN(e[r][0],t))return r;return-1}function zP(e,t){t=XP(t,e)?[t]:KP(t);for(var r=0,n=t.length;e!=null&&r<n;)e=e[tN(t[r++])];return r&&r==n?e:void 0}function QP(e){if(!_E(e)||ZP(e))return!1;var t=iN(e)||OP(e)?RP:wP;return t.test(rN(e))}function YP(e){if(typeof e=="string")return e;if(fh(e))return Gm?Gm.call(e):"";var t=e+"";return t=="0"&&1/e==-pE?"-0":t}function KP(e){return EE(e)?e:eN(e)}function Iu(e,t){var r=e.__data__;return JP(t)?r[typeof t=="string"?"string":"hash"]:r.map}function vE(e,t){var r=xP(e,t);return QP(r)?r:void 0}function XP(e,t){if(EE(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||fh(e)?!0:yP.test(e)||!gP.test(e)||t!=null&&e in Object(t)}function JP(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ZP(e){return!!jm&&jm in e}var eN=lh(function(e){e=sN(e);var t=[];return vP.test(e)&&t.push(""),e.replace(EP,function(r,n,i,o){t.push(i?o.replace(bP,"$1"):n||r)}),t});function tN(e){if(typeof e=="string"||fh(e))return e;var t=e+"";return t=="0"&&1/e==-pE?"-0":t}function rN(e){if(e!=null){try{return gE.call(e)}catch{}try{return e+""}catch{}}return""}function lh(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(hP);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a),a};return r.cache=new(lh.Cache||li),r}lh.Cache=li;function nN(e,t){return e===t||e!==e&&t!==t}var EE=Array.isArray;function iN(e){var t=_E(e)?yE.call(e):"";return t==dP||t==pP}function _E(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function oN(e){return!!e&&typeof e=="object"}function fh(e){return typeof e=="symbol"||oN(e)&&yE.call(e)==mP}function sN(e){return e==null?"":YP(e)}function aN(e,t,r){var n=e==null?void 0:zP(e,t);return n===void 0?r:n}var uN=aN;const bE=_r(uN),Fe={timeouts:{},handlerCalled:{},getIsDesktopVersion:(e,t)=>{const r={navigation:{loggedIn:769,loggedOut:881},search:{loggedIn:961,loggedOut:1121}},n=o=>{const a=`logged${e?"In":"Out"}`;return t>=r[o][a]};let i={};return["navigation","search"].forEach(o=>{i[o]=n(o)}),i},shouldChangeHeaderIsVisible:(e,t,r)=>{Object.values(t).filter(i=>i===!0).length||r([{type:"headerIsVisible",value:e}])},handleMenus:({id:e,value:t,menus:r,dispatch:n})=>{if(r[e]===t||e==="account"&&t===!1&&r.navigation===!0)return;const i=Date.now();if(!t&&Fe.handlerCalled[e]&&i-Fe.handlerCalled[e]<500)return;Fe.handlerCalled[e]=i;let o=[{type:`menus.${e}`,value:t}];t===!0&&Object.keys(r).forEach(a=>{a===e||r[a]===!1||o.push({type:`menus.${a}`,value:!1})}),n(o)},findFirstChild:(e,t,r=!1)=>{if(!e||!e[0])return!1;for(let n=0;n<=e.length;n++){if(!e[n])continue;if(e[n][t]&&(!r||e[n][t].includes(r)))return e[n];if(!t.includes("."))continue;const i=bE(e[n],t);if(!(typeof i>"u")&&(!r||i[t]&&i[t].includes(r)||i.value&&i.value.includes(r)||i.toString().includes(r)))return e[n]}return e[0].children?Fe.findFirstChild(e[0].children,t,r):!1},autoFocus:({menu:e,navigationRef:t,isDesktopVersion:r,focusElements:n,dispatch:i})=>{if(!t.current||!t.current.children)return;const o=r?"desktop":"default";if(n[e][o]){n[e][o].focus();return}let a,s;switch(e){case"navigation":if(r){const u=Fe.findFirstChild(t.current.children,"attributes.aria-controls","navigation");a=Fe.findFirstChild(u.children,"href")}else a=Fe.findFirstChild(t.current.children,"href");a||(a=t.current);break;case"account":if(s=Fe.findFirstChild(t.current.children,"className","account"),!s||!s.children)return;a=Fe.findFirstChild(s.children,"href");break;default:return}a&&(i([{type:`focusElements.${e}.${o}`,value:a}]),a.focus())},events:{onClick:(e,{id:t,callback:r,isOpen:n})=>{e.target&&e.target.attributes&&e.target.attributes.href||(e.preventDefault(),e.stopPropagation(),clearTimeout(Fe.timeouts[t]),r(t,!n))},onFocus:({id:e})=>{clearTimeout(Fe.timeouts[e])},onMouseEnter:({id:e,callback:t})=>{clearTimeout(Fe.timeouts[e]),t(e,!0)},onBlur:({id:e,callback:t})=>{Fe.timeouts[e]=setTimeout(()=>{t(e,!1)},250)}}},Ms={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"}}}},hu=({id:e,isLoggedIn:t=!1,isDesktopVersion:r=!1,menus:n={},callback:i=()=>{},doTrack:o=null})=>{const a=Oe(),{pathname:s}=Tt.useLocation(),u=bE(Ms,e);if(!u||u.onlyShow&&(u.onlyShow==="logged-in"&&!t||u.onlyShow==="logged-out"&&t))return null;const l="doTrack"in u,c=o===null?l?u.doTrack:!0:o,d=e.includes("buttons.");let f=`header_${e.replaceAll(".","_")}`;u.hasVariantText&&(f+=`_logged${t?"In":"Out"}`);let h=!1;if(u.href){let b=u.gtmType||`${e}-click`;if(b.includes(".")){const T=b.split("."),w=T[T.length-2];b=`${w==="topics"?`${w}-`:""}${T[T.length-1]}`}h={href:u.href,role:"menuitem"},c&&(h={...h,className:"gtm-trackable","data-gtm-event-type":b,"data-gtm-event-context":"HeaderButtons"}),d&&(h={...h,variant:"secondary",size:{mobile:"small",881:"large"},...u.props||{}})}const p=u.order&&u.order[0]&&u[u.order[0]],m=p&&u[u.order[0]].order,_=h&&s===u.href;let S={},v={};if(p){const b=u.menuId||e,T={onClick:w=>Fe.events.onClick(w,{id:b,callback:i,isOpen:n[b]}),onFocus:()=>Fe.events.onFocus({id:b}),onBlur:()=>Fe.events.onBlur({id:b,callback:i}),onMouseLeave:()=>Fe.events.onBlur({id:b,callback:i}),onMouseEnter:()=>Fe.events.onMouseEnter({id:b,callback:i})};r&&(m&&(S={...T,onKeyPress:w=>{w.key==="Enter"&&Fe.events.onClick(w,{id:b,callback:i,isOpen:n[b]})},tabIndex:"0","aria-haspopup":!0,"aria-expanded":n[b],"aria-controls":b}),v={hidden:b in n?!n[b]:!0}),m||(v={...v,...T})}return O.jsxs("li",{className:se({[u.className]:u.className,"has-submenu":p,parent:m,active:_}),role:"none",...S,children:[h?U.createElement(d?ze:"a",h,a.formatMessage({id:f})):a.formatMessage({id:f}),u.order&&O.jsx("ul",{...v,children:u.order.map(b=>{if(!u[b])return null;const T={isLoggedIn:t,isDesktopVersion:r,menus:n,callback:i,doTrack:l?c:null};return u[b].order?O.jsxs("li",{className:se({[u[b].className]:u[b].className}),children:[a.formatMessage({id:`${f}_${b}`}),O.jsx("ul",{children:u[b].order.map(w=>O.jsx(hu,{id:`${e}.${b}.${w}`,...T},w))})]},b):O.jsx(hu,{id:`${e}.${b}`,...T},b)})})]},e)};const cN={height:67,height_desktop:83},hh=()=>{const e=Oe(),t=U.useContext(jr),r=ra(!0,!0),n=t&&typeof t.id=="string",i=U.useMemo(()=>Fe.getIsDesktopVersion(n,r),[n,r]),[o,a]=U.useReducer(gO,{headerIsVisible:!0,menus:{navigation:!1,search:!1,account:!1},focusElements:{navigation:{desktop:!1,default:!1},account:{desktop:!1,default:!1}}}),{headerIsVisible:s,menus:u,focusElements:l}=o;dv({scrollPosition:cN[`height${i.navigation?"_desktop":""}`],callbacks:{scrollUp:()=>{!i&&u.navigation||Fe.shouldChangeHeaderIsVisible(!0,u,a)},scrollDown:()=>{!i&&u.navigation||Fe.shouldChangeHeaderIsVisible(!1,u,a)}}});const c=(f,h)=>{Fe.handleMenus({id:f,value:h,menus:u,dispatch:a})},d=U.useRef(null);return ni(()=>{u.navigation&&Fe.autoFocus({menu:"navigation",navigationRef:d,isDesktopVersion:i.navigation,focusElements:l,dispatch:a})},[u.navigation]),ni(()=>{u.account&&Fe.autoFocus({menu:"account",navigationRef:d,isDesktopVersion:i.navigation,focusElements:l,dispatch:a})},[u.account]),t&&t.isLoading?null:O.jsxs(O.Fragment,{children:[O.jsxs("nav",{id:"header",className:se({"logged-in":n,"logged-out":!n,visible:s}),children:[O.jsx(lt,{element:"a",href:"#content-of-page",children:e.formatMessage({id:"header_skip"})}),O.jsx(sh,{}),!i.navigation&&O.jsx("button",{className:"menu-button gtm-trackable",onClick:f=>{f.preventDefault(),f.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(lt,{children:e.formatMessage({id:`header_menu_${u.navigation?"hide":"show"}`})})}),O.jsx("ul",{ref:d,id:"navigation",hidden:i.navigation||u.account?!1:!u.navigation,role:"menu","data-showing":!i.navigation&&u.account?"account":"default",children:Ms.order.map(f=>O.jsx(hu,{id:f,isLoggedIn:n,isDesktopVersion:i.navigation,menus:{navigation:u.navigation,account:u.account},callback:c},f))}),!i.search&&O.jsx("button",{className:"search toggle-search-button",onClick:f=>{f.preventDefault(),f.stopPropagation(),c("search",!u.search)},"aria-haspopup":"true","aria-expanded":u.search,"aria-controls":"search-form",children:O.jsx(lt,{children:e.formatMessage({id:`header_search_${u.search?"hide":"show"}`})})}),O.jsx(hE,{id:"global-search",handleToggle:{searchIsOpen:u.search,isDesktopVersion:i.search},gtmContext:"search-bar-header",gtmEvent:"form-submission"}),n?O.jsxs("button",{className:"account-button",onClick:f=>Fe.events.onClick(f,{id:"account",callback:c,isOpen:u.account}),onMouseEnter:()=>Fe.events.onMouseEnter({id:"account",callback:c}),onMouseLeave:()=>Fe.events.onBlur({id:"account",callback:c}),"aria-haspopup":"true","aria-expanded":u.account,"aria-controls":"navigation",children:[O.jsx(lt,{children:e.formatMessage({id:`header_account_${u.account?"hide":"show"}`})}),O.jsx(xu,{name:t&&t.name||"",src:t&&t.image&&t.image.thumbnail||""})]}):O.jsx("ul",{className:"sign-in-buttons",children:Ms.buttons.order.map(f=>O.jsx(hu,{id:`buttons.${f}`},f))})]}),O.jsx("hr",{id:"content-of-page"}),O.jsx("div",{className:se("overlay",{open:u.navigation||u.account||!i.search&&u.search})})]})},lN=U.createContext(null),wl={didCatch:!1,error:null};class fN extends U.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=wl}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:o,reason:"imperative-api"}),this.setState(wl)}}componentDidCatch(t,r){var n,i;(n=(i=this.props).onError)===null||n===void 0||n.call(i,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:i}=this.props;if(n&&r.error!==null&&hN(t.resetKeys,i)){var o,a;(o=(a=this.props).onReset)===null||o===void 0||o.call(a,{next:i,prev:t.resetKeys,reason:"keys"}),this.setState(wl)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:i}=this.props,{didCatch:o,error:a}=this.state;let s=t;if(o){const u={error:a,resetErrorBoundary:this.resetErrorBoundary};if(U.isValidElement(i))s=i;else if(typeof r=="function")s=r(u);else if(n)s=U.createElement(n,u);else throw a}return U.createElement(lN.Provider,{value:{didCatch:o,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}function hN(){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((r,n)=>!Object.is(r,t[n]))}const dN=()=>{const e=Oe();return O.jsxs(O.Fragment,{children:[O.jsx(hh,{}),O.jsx("div",{className:"content",children:O.jsx(sa,{variant:"error",text:e.formatMessage({id:"pageLayout_error"})})}),O.jsx(ah,{})]})},pN=({children:e,reportError:t,showFooter:r=!0,background:n="default",className:i="",locale:o="en"})=>{const{pathname:a}=Tt.useLocation();U.useEffect(()=>{window.scrollTo(0,0)},[a]);const s=Tv(e,{locale:o});return O.jsx(fN,{onError:t,fallback:O.jsx(dN,{}),children:O.jsx(U.Suspense,{fallback:O.jsx(C0,{layout:"overview-page"}),children:O.jsx("div",{id:"wrapper",className:se(i,{[n]:n!=="default"}),children:O.jsxs(KE,{children:[O.jsx(hh,{}),O.jsx("div",{className:"content",children:s}),r&&O.jsx(ah,{}),O.jsx(uE,{})]})})})})},Vm={default:"tags_",headerTopics:"header_topics_topics_"},Sl={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"},mN={getTagDetails:e=>{if(e.includes("topic_")){if(e=Sl.topic[e.replace("topic_","")],e){const t=Ms.topics.topics[e].href;return t?{id:e,href:t,text:`${Vm.headerTopics}${e}`}:null}return null}return Sl[e]?(e=Sl[e],{id:e,text:`${Vm.default}${e}`}):null}};const gN=({tags:e=[],color:t="default",forceOneLine:r=!1,canHaveLinks:n=!0,className:i="",gtmType:o="tag-click",gtmContext:a="tags"})=>{const s=Oe();if(!e||e.length<1)return null;const u=[];return e.forEach(l=>{if(!l)return;const c=mN.getTagDetails(l);c&&u.push(c)}),u.length<1?null:O.jsx("ul",{className:se("tags text-small",t,i,{"one-line":r}),children:u.map(l=>{const c=s.formatMessage({id:l.text});return O.jsx("li",{children:l.href&&n?O.jsx(Tt.Link,{to:l.href,className:"gtm-trackable","data-gtm-event-type":o,"data-gtm-event-context":a,children:c}):c},l.id)})})};const yN=({members:{total:e,data:t=[]},pagination:r,gtmContext:n="member",gtmType:i="member-click",className:o=""})=>{const a=Oe();return t.length===0?null:(e||(e=t.length),O.jsxs("div",{className:se("members-list",o),children:[O.jsxs("h1",{children:[a.formatMessage({id:"membersList"}),O.jsx("span",{className:"count",children:e})]}),O.jsx("ul",{children:t.map((s,u)=>O.jsxs("li",{children:[O.jsx(Ou,{member:s,gtmContext:n,gtmType:i}),s.isAdmin&&O.jsx(x0,{children:a.formatMessage({id:"membersList_admin"})})]},u))}),r&&O.jsx(sE,{...r,icon:{icon:"arrow-down",position:"right"},gtmContext:n})]}))};function Sf(){return Sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sf.apply(this,arguments)}function vN(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var EN=U.useLayoutEffect,_N=function(t){var r=pe.useRef(t);return EN(function(){r.current=t}),r},Wm=function(t,r){if(typeof t=="function"){t(r);return}t.current=r},bN=function(t,r){var n=U.useRef();return U.useCallback(function(i){t.current=i,n.current&&Wm(n.current,null),n.current=r,r&&Wm(r,i)},[r])},zm={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},wN=function(t){Object.keys(zm).forEach(function(r){t.style.setProperty(r,zm[r],"important")})},Qm=wN,vt=null,Ym=function(t,r){var n=t.scrollHeight;return r.sizingStyle.boxSizing==="border-box"?n+r.borderSize:n-r.paddingSize};function SN(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),vt||(vt=document.createElement("textarea"),vt.setAttribute("tabindex","-1"),vt.setAttribute("aria-hidden","true"),Qm(vt)),vt.parentNode===null&&document.body.appendChild(vt);var i=e.paddingSize,o=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach(function(f){var h=f;vt.style[h]=a[h]}),Qm(vt),vt.value=t;var u=Ym(vt,e);vt.value=t,u=Ym(vt,e),vt.value="x";var l=vt.scrollHeight-i,c=l*r;s==="border-box"&&(c=c+i+o),u=Math.max(c,u);var d=l*n;return s==="border-box"&&(d=d+i+o),u=Math.min(d,u),[u,l]}var Km=function(){},TN=function(t,r){return t.reduce(function(n,i){return n[i]=r[i],n},{})},xN=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],ON=!!document.documentElement.currentStyle,AN=function(t){var r=window.getComputedStyle(t);if(r===null)return null;var n=TN(xN,r),i=n.boxSizing;if(i==="")return null;ON&&i==="border-box"&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var o=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),a=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:o,borderSize:a}},CN=AN;function wE(e,t,r){var n=_N(r);pe.useLayoutEffect(function(){var i=function(a){return n.current(a)};if(e)return e.addEventListener(t,i),function(){return e.removeEventListener(t,i)}},[])}var RN=function(t){wE(window,"resize",t)},PN=function(t){wE(document.fonts,"loadingdone",t)},NN=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],IN=function(t,r){var n=t.cacheMeasurements,i=t.maxRows,o=t.minRows,a=t.onChange,s=a===void 0?Km:a,u=t.onHeightChange,l=u===void 0?Km:u,c=vN(t,NN),d=c.value!==void 0,f=pe.useRef(null),h=bN(f,r),p=pe.useRef(0),m=pe.useRef(),_=function(){var b=f.current,T=n&&m.current?m.current:CN(b);if(T){m.current=T;var w=SN(T,b.value||b.placeholder||"x",o,i),P=w[0],R=w[1];p.current!==P&&(p.current=P,b.style.setProperty("height",P+"px","important"),l(P,{rowHeight:R}))}},S=function(b){d||_(),s(b)};return pe.useLayoutEffect(_),RN(_),PN(_),pe.createElement("textarea",Sf({},c,{onChange:S,ref:h}))},LN=pe.forwardRef(IN);let Ba=null;const At="discussion_form_",dh=({content:e={type:"response",slugs:{}},userHasPermissions:t=!0,meta:r={isLoading:!1,isInWrapper:!1,isEditing:!1,showTitle:!1},inputRef:n,maxLength:i=5e4,minRows:o=4,forceShow:a={cancel:!1,error:!1},functions:s={create:()=>{},handleSaveEdit:()=>{},handleCancel:()=>{},callback:()=>{},props:{create:{projectNames:["questions-answers"]}}},gtmContext:u="DiscussionForm"})=>{var q,G;const l=Oe(),{pathname:c}=Tt.useLocation(),d=U.useContext(jr),[f,h]=U.useState(r.isEditing&&r.isEditing.text||""),[p,m]=U.useState(a.error||!1),[_,S]=U.useState(!1),v=U.useRef(null);if(n||(n=v),r.isLoading)return O.jsx(vr,{className:"discussion-card discussion-form","data-testid":"loading-placeholder"});const b=j=>{const Y=j.target.value;h(Y);let re;!d||!d.id?re=ur(l.formatMessage,`${At}error_loggedOut`,e.type,"action"):t?Y.length>=i&&(re=`${At}error_tooLong`):re=ur(l.formatMessage,`${At}error_noPermission`,e.type,"action"),re?m(re):p&&m(!1)};let T=`${e.type}-form`;if(e.type==="response"||e.type==="reply"){const j=e.type==="response"?((q=e.slugs)==null?void 0:q.question)||"":((G=e.slugs)==null?void 0:G.answer)||"";j&&(T=`${T}-${j.slice(-15)}`)}const w=async j=>{var Y;if(j.preventDefault(),j.stopPropagation(),!(!d||!d.id||!t||R)){Ba&&clearTimeout(Ba),S("submitting");try{let re;switch(e.type){case"post":re=await s.create({content:f});break;case"question":re=await s.create({title:f,authorId:d&&d.id,...(Y=s.props)==null?void 0:Y.create});break;case"response":re=await s.create({question:e.slugs.question},{body:f,authorId:d&&d.id,contentPath:c});break;case"reply":re=await s.create({question:e.slugs.question,answer:e.slugs.answer},{body:f,authorId:d&&d.id,contentPath:c});break;default:break}await EO(1e3),s.callback&&await s.callback(re),Ba=setTimeout(()=>{h(""),S("submitted"),P()},500)}catch(re){const K=re;let M=`${At}error`;K.message.includes("entry already exists")&&(M=ur(l.formatMessage,`${At}error_alreadyExists`,e.type,"action")),K.message.includes("429")?M=ur(l.formatMessage,`${At}error_tooMany`,e.type,"action"):K.message.includes("400")&&(M=`${At}error`),m(M),P()}}},P=()=>{Ba=setTimeout(()=>{m(!1),S(!1)},5e3)},R=!f||!SO(f),L=_==="submitting",$=[];return(r.isEditing&&!L||a.cancel)&&$.push({variant:"secondary",size:{mobile:"small",600:"medium"},onClick:s.handleCancel,className:"gtm-trackable","data-gtm-event-context":u,"data-gtm-event-type":`cancel-${e.type}-click`,disabled:!a.cancel&&(!d||!d.id||!f),children:l.formatMessage({id:`${At}cancel`})}),$.push({variant:"primary",size:{mobile:"small",600:"medium"},onClick:j=>{if(r.isEditing){S("submitting"),s.handleSaveEdit&&s.handleSaveEdit(v.current&&"value"in v.current?v.current.value:"");return}w(j)},className:"gtm-trackable","data-gtm-event-context":u,"data-gtm-event-type":`${r.isEditing?"save":"submit"}-${e.type}-click`,"data-testid":"save-button",disabled:!d||!d.id||!t||R||L||r.isEditing&&f===r.isEditing.text,children:l.formatMessage({id:`${At}${L?r.isEditing?"saving":"posting":r.isEditing?"save":"post"}`})}),O.jsxs("form",{id:T,className:se("discussion-card discussion-form",{"no-styling":r.isInWrapper&&r.isEditing}),"data-testid":`discussion-${e.type}-form`,children:[(r==null?void 0:r.showTitle)&&!r.isEditing&&["question"].includes(e.type)&&O.jsx("h2",{children:ur(l.formatMessage,`${At}title`,e.type,"action")}),O.jsx(Ou,{member:d||"community",gtmContext:u,gtmType:"profile-click"}),O.jsx(lt,{element:"label",showOnFocus:!1,htmlFor:`${T}-input`,children:ur(l.formatMessage,`${At}label`,e.type,"action")}),O.jsx(LN,{ref:n,id:`${T}-input`,name:e.type,placeholder:ur(l.formatMessage,`${At}placeholder`,e.type,"action"),onChange:b,value:f,maxLength:i,"aria-invalid":!!p,"aria-errormessage":"error-message",minRows:o,autoFocus:!!r.isEditing}),O.jsx("small",{children:ur(l.formatMessage,`${At}explainer`,e.type,"action",{a:j=>O.jsx("a",{href:"https://about.apolitical.co/q-and-a-community-guidelines",target:"_blank",className:"gtm-trackable","data-gtm-event-context":u,"data-gtm-event-type":"community-guidelines-link",children:j})})}),O.jsx(na,{buttons:$}),_==="submitted"&&O.jsx(tu,{className:"success","data-testid":"success",children:ur(l.formatMessage,`${At}success`,e.type,"action")}),p&&O.jsx(tu,{id:"error-message",className:"error","data-testid":"error",children:a.error?a.error:typeof p=="string"?p.includes(" ")?p:l.formatMessage({id:p},{action:l.formatMessage({id:`discussion_action_${e.type}`}),maxLength:i}):p})]})},ph=({contentType:e,createPost:t,membershipRequiredToPost:{isMember:r,required:n,join:i,leave:o,notMemberStateText:a}})=>n&&!r?O.jsx(sa,{text:a,button:{component:O.jsx(oh,{functions:{join:i,leave:o}})}}):O.jsx(dh,{content:{type:e,slugs:{}},functions:{create:t}}),kN={showThread:!1,showForm:!1},mh=U.createContext(kN),MN=({children:e})=>{const[t,r]=U.useState({showThread:!1,showForm:!1});return O.jsx(mh.Provider,{value:{...t,updateConversation:r},children:e})},FN=({question:e,answer:t,reply:r})=>({...e&&{questionSlug:e},...t&&{answerSlug:t},...r&&{replySlug:r}}),DN=(e,t=10)=>!e||e.length===0?[]:e.slice(0,t);let Os=!1;const Tl=()=>{Os!==!1&&(clearTimeout(Os),Os=!1)},xl=10,SE=({element:e="div",likes:t=0,peopleWhoLiked:r=!1,isShort:n=!0,userLiked:i=!1,content:o={type:"reply",slugs:{}},canLike:a=!0,functions:{createLike:s=()=>{},deleteLike:u=()=>{}}={}})=>{const l=Oe(),{pathname:c}=Tt.useLocation();U.useEffect(()=>{p(i)},[i]);const[d,f]=U.useState(t),[h,p]=U.useState(i),[m,_]=U.useState(!1),[S,v]=U.useState(!1),b=U.useMemo(()=>DN(r,xl),[r]),T=P=>{if(P.preventDefault(),P.stopPropagation(),v(!1),Os)return Tl(),!1;if(Tl(),m||!a)return!1;Os=setTimeout(w,350)},w=async()=>{if(Tl(),m||!a)return!1;let P=h?d-1:d+1;P<0&&(P=0),_(!0),f(P),p(!h);try{if(o&&o.slugs){const R=FN(o.slugs);h?await u(R):await s(R,{contentPath:c})}}catch{f(t),p(i)}finally{_(!1)}};return U.createElement(e,{className:se("likes-wrapper text-medium action-button",{"show-spinner":m,"is-liked":h,disabled:!a}),onClick:T,onMouseEnter:()=>{v(!0)},onMouseLeave:()=>{v(!1)},onFocus:()=>{v(!0)},onBlur:()=>{v(!1)},children:O.jsxs(O.Fragment,{children:[O.jsx(ze,{variant:"tertiary",size:"medium",icon:{icon:h?"heart":"heart_empty",animate:"bounce"},className:se({"do-animation":h&&!i}),screenreaderText:a?l.formatMessage({id:`discussion_likes_${h?"unlike":"like"}`},{action:l.formatMessage({id:`discussion_action_${o.type}`})}):!1,onClick:T,disabled:!a,"aria-hidden":!a,"data-testid":"like-button","data-gtm-event-context":"Likes","data-gtm-event-type":`like-${o.type}-click`}),O.jsx("span",{className:se("number-of-likes",{"no-likes":d===0}),"data-testid":"number-of-likes",children:l.formatMessage({id:`discussion_likes${n?"_short":""}`},{number:d})}),r&&O.jsx(r0,{isOpen:S,isLoading:r.length===0,children:r.length&&O.jsxs("ul",{children:[b.map(P=>typeof P=="string"||!P.name?null:O.jsx("li",{children:O.jsx(wu,{href:P.id?`/profiles/${P.id}`:void 0,gtmContext:"Likes",gtmType:"liked-name-click",children:P.name})},P.id||window.btoa(P.name))),r.length>xl&&O.jsx("li",{children:l.formatMessage({id:"discussion_likes_more"},{number:r.length-xl})})]})})]})})};var du={exports:{}};du.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",u="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",p="[object GeneratorFunction]",m="[object Map]",_="[object Number]",S="[object Null]",v="[object Object]",b="[object Promise]",T="[object Proxy]",w="[object RegExp]",P="[object Set]",R="[object String]",L="[object Symbol]",$="[object Undefined]",q="[object WeakMap]",G="[object ArrayBuffer]",j="[object DataView]",Y="[object Float32Array]",re="[object Float64Array]",K="[object Int8Array]",M="[object Int16Array]",z="[object Int32Array]",ee="[object Uint8Array]",fe="[object Uint8ClampedArray]",J="[object Uint16Array]",X="[object Uint32Array]",le=/[\\^$.*+?()[\]{}|]/g,de=/^\[object .+?Constructor\]$/,Ve=/^(?:0|[1-9]\d*)$/,te={};te[Y]=te[re]=te[K]=te[M]=te[z]=te[ee]=te[fe]=te[J]=te[X]=!0,te[s]=te[u]=te[G]=te[c]=te[j]=te[d]=te[f]=te[h]=te[m]=te[_]=te[v]=te[w]=te[P]=te[R]=te[q]=!1;var ae=typeof he=="object"&&he&&he.Object===Object&&he,De=typeof self=="object"&&self&&self.Object===Object&&self,Ie=ae||De||Function("return this")(),xt=t&&!t.nodeType&&t,Rt=xt&&!0&&e&&!e.nodeType&&e,Vt=Rt&&Rt.exports===xt,oe=Vt&&ae.process,st=function(){try{return oe&&oe.binding&&oe.binding("util")}catch{}}(),Je=st&&st.isTypedArray;function Wt(y,A){for(var I=-1,W=y==null?0:y.length,ge=0,ce=[];++I<W;){var _e=y[I];A(_e,I,y)&&(ce[ge++]=_e)}return ce}function Sr(y,A){for(var I=-1,W=A.length,ge=y.length;++I<W;)y[ge+I]=A[I];return y}function tr(y,A){for(var I=-1,W=y==null?0:y.length;++I<W;)if(A(y[I],I,y))return!0;return!1}function Mt(y,A){for(var I=-1,W=Array(y);++I<y;)W[I]=A(I);return W}function vn(y){return function(A){return y(A)}}function zt(y,A){return y.has(A)}function Ft(y,A){return y==null?void 0:y[A]}function Ze(y){var A=-1,I=Array(y.size);return y.forEach(function(W,ge){I[++A]=[ge,W]}),I}function Qt(y,A){return function(I){return y(A(I))}}function yt(y){var A=-1,I=Array(y.size);return y.forEach(function(W){I[++A]=W}),I}var at=Array.prototype,En=Function.prototype,x=Object.prototype,g=Ie["__core-js_shared__"],E=En.toString,C=x.hasOwnProperty,k=function(){var y=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),H=x.toString,Q=RegExp("^"+E.call(C).replace(le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=Vt?Ie.Buffer:void 0,Ce=Ie.Symbol,Re=Ie.Uint8Array,Pe=x.propertyIsEnumerable,Ee=at.splice,Pt=Ce?Ce.toStringTag:void 0,qr=Object.getOwnPropertySymbols,_n=me?me.isBuffer:void 0,Tr=Qt(Object.keys,Object),bn=Kt(Ie,"DataView"),xr=Kt(Ie,"Map"),wn=Kt(Ie,"Promise"),Sn=Kt(Ie,"Set"),Tn=Kt(Ie,"WeakMap"),rr=Kt(Object,"create"),fi=ut(bn),Yt=ut(xr),Eo=ut(wn),_o=ut(Sn),bo=ut(Tn),hi=Ce?Ce.prototype:void 0,xn=hi?hi.valueOf:void 0;function We(y){var A=-1,I=y==null?0:y.length;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function On(){this.__data__=rr?rr(null):{},this.size=0}function An(y){var A=this.has(y)&&delete this.__data__[y];return this.size-=A?1:0,A}function Or(y){var A=this.__data__;if(rr){var I=A[y];return I===n?void 0:I}return C.call(A,y)?A[y]:void 0}function di(y){var A=this.__data__;return rr?A[y]!==void 0:C.call(A,y)}function wo(y,A){var I=this.__data__;return this.size+=this.has(y)?0:1,I[y]=rr&&A===void 0?n:A,this}We.prototype.clear=On,We.prototype.delete=An,We.prototype.get=Or,We.prototype.has=di,We.prototype.set=wo;function et(y){var A=-1,I=y==null?0:y.length;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function So(){this.__data__=[],this.size=0}function To(y){var A=this.__data__,I=Wr(A,y);if(I<0)return!1;var W=A.length-1;return I==W?A.pop():Ee.call(A,I,1),--this.size,!0}function xo(y){var A=this.__data__,I=Wr(A,y);return I<0?void 0:A[I][1]}function Oo(y){return Wr(this.__data__,y)>-1}function Cn(y,A){var I=this.__data__,W=Wr(I,y);return W<0?(++this.size,I.push([y,A])):I[W][1]=A,this}et.prototype.clear=So,et.prototype.delete=To,et.prototype.get=xo,et.prototype.has=Oo,et.prototype.set=Cn;function ht(y){var A=-1,I=y==null?0:y.length;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function Ao(){this.size=0,this.__data__={hash:new We,map:new(xr||et),string:new We}}function Co(y){var A=Nt(this,y).delete(y);return this.size-=A?1:0,A}function Ro(y){return Nt(this,y).get(y)}function Po(y){return Nt(this,y).has(y)}function No(y,A){var I=Nt(this,y),W=I.size;return I.set(y,A),this.size+=I.size==W?0:1,this}ht.prototype.clear=Ao,ht.prototype.delete=Co,ht.prototype.get=Ro,ht.prototype.has=Po,ht.prototype.set=No;function Gr(y){var A=-1,I=y==null?0:y.length;for(this.__data__=new ht;++A<I;)this.add(y[A])}function pi(y){return this.__data__.set(y,n),this}function Vr(y){return this.__data__.has(y)}Gr.prototype.add=Gr.prototype.push=pi,Gr.prototype.has=Vr;function Ot(y){var A=this.__data__=new et(y);this.size=A.size}function Rn(){this.__data__=new et,this.size=0}function Io(y){var A=this.__data__,I=A.delete(y);return this.size=A.size,I}function Lo(y){return this.__data__.get(y)}function ko(y){return this.__data__.has(y)}function Mo(y,A){var I=this.__data__;if(I instanceof et){var W=I.__data__;if(!xr||W.length<r-1)return W.push([y,A]),this.size=++I.size,this;I=this.__data__=new ht(W)}return I.set(y,A),this.size=I.size,this}Ot.prototype.clear=Rn,Ot.prototype.delete=Io,Ot.prototype.get=Lo,Ot.prototype.has=ko,Ot.prototype.set=Mo;function Fo(y,A){var I=zr(y),W=!I&&_i(y),ge=!I&&!W&&Yr(y),ce=!I&&!W&&!ge&&kn(y),_e=I||W||ge||ce,be=_e?Mt(y.length,String):[],He=be.length;for(var Ae in y)(A||C.call(y,Ae))&&!(_e&&(Ae=="length"||ge&&(Ae=="offset"||Ae=="parent")||ce&&(Ae=="buffer"||Ae=="byteLength"||Ae=="byteOffset")||nr(Ae,He)))&&be.push(Ae);return be}function Wr(y,A){for(var I=y.length;I--;)if(Ei(y[I][0],A))return I;return-1}function Pn(y,A,I){var W=A(y);return zr(y)?W:Sr(W,I(y))}function Ar(y){return y==null?y===void 0?$:S:Pt&&Pt in Object(y)?Xt(y):vi(y)}function mi(y){return Dt(y)&&Ar(y)==s}function gi(y,A,I,W,ge){return y===A?!0:y==null||A==null||!Dt(y)&&!Dt(A)?y!==y&&A!==A:yi(y,A,I,W,gi,ge)}function yi(y,A,I,W,ge,ce){var _e=zr(y),be=zr(A),He=_e?u:It(y),Ae=be?u:It(A);He=He==s?v:He,Ae=Ae==s?v:Ae;var tt=He==v,ct=Ae==v,Ge=He==Ae;if(Ge&&Yr(y)){if(!Yr(A))return!1;_e=!0,tt=!1}if(Ge&&!tt)return ce||(ce=new Ot),_e||kn(y)?Nn(y,A,I,W,ge,ce):$o(y,A,He,I,W,ge,ce);if(!(I&i)){var rt=tt&&C.call(y,"__wrapped__"),Qe=ct&&C.call(A,"__wrapped__");if(rt||Qe){var ir=rt?y.value():y,Jt=Qe?A.value():A;return ce||(ce=new Ot),ge(ir,Jt,I,W,ce)}}return Ge?(ce||(ce=new Ot),In(y,A,I,W,ge,ce)):!1}function Do(y){if(!wi(y)||qo(y))return!1;var A=bi(y)?Q:de;return A.test(ut(y))}function Bo(y){return Dt(y)&&Ln(y.length)&&!!te[Ar(y)]}function Uo(y){if(!Go(y))return Tr(y);var A=[];for(var I in Object(y))C.call(y,I)&&I!="constructor"&&A.push(I);return A}function Nn(y,A,I,W,ge,ce){var _e=I&i,be=y.length,He=A.length;if(be!=He&&!(_e&&He>be))return!1;var Ae=ce.get(y);if(Ae&&ce.get(A))return Ae==A;var tt=-1,ct=!0,Ge=I&o?new Gr:void 0;for(ce.set(y,A),ce.set(A,y);++tt<be;){var rt=y[tt],Qe=A[tt];if(W)var ir=_e?W(Qe,rt,tt,A,y,ce):W(rt,Qe,tt,y,A,ce);if(ir!==void 0){if(ir)continue;ct=!1;break}if(Ge){if(!tr(A,function(Jt,Rr){if(!zt(Ge,Rr)&&(rt===Jt||ge(rt,Jt,I,W,ce)))return Ge.push(Rr)})){ct=!1;break}}else if(!(rt===Qe||ge(rt,Qe,I,W,ce))){ct=!1;break}}return ce.delete(y),ce.delete(A),ct}function $o(y,A,I,W,ge,ce,_e){switch(I){case j:if(y.byteLength!=A.byteLength||y.byteOffset!=A.byteOffset)return!1;y=y.buffer,A=A.buffer;case G:return!(y.byteLength!=A.byteLength||!ce(new Re(y),new Re(A)));case c:case d:case _:return Ei(+y,+A);case f:return y.name==A.name&&y.message==A.message;case w:case R:return y==A+"";case m:var be=Ze;case P:var He=W&i;if(be||(be=yt),y.size!=A.size&&!He)return!1;var Ae=_e.get(y);if(Ae)return Ae==A;W|=o,_e.set(y,A);var tt=Nn(be(y),be(A),W,ge,ce,_e);return _e.delete(y),tt;case L:if(xn)return xn.call(y)==xn.call(A)}return!1}function In(y,A,I,W,ge,ce){var _e=I&i,be=Cr(y),He=be.length,Ae=Cr(A),tt=Ae.length;if(He!=tt&&!_e)return!1;for(var ct=He;ct--;){var Ge=be[ct];if(!(_e?Ge in A:C.call(A,Ge)))return!1}var rt=ce.get(y);if(rt&&ce.get(A))return rt==A;var Qe=!0;ce.set(y,A),ce.set(A,y);for(var ir=_e;++ct<He;){Ge=be[ct];var Jt=y[Ge],Rr=A[Ge];if(W)var aa=_e?W(Rr,Jt,Ge,A,y,ce):W(Jt,Rr,Ge,y,A,ce);if(!(aa===void 0?Jt===Rr||ge(Jt,Rr,I,W,ce):aa)){Qe=!1;break}ir||(ir=Ge=="constructor")}if(Qe&&!ir){var or=y.constructor,Kr=A.constructor;or!=Kr&&"constructor"in y&&"constructor"in A&&!(typeof or=="function"&&or instanceof or&&typeof Kr=="function"&&Kr instanceof Kr)&&(Qe=!1)}return ce.delete(y),ce.delete(A),Qe}function Cr(y){return Pn(y,Si,jo)}function Nt(y,A){var I=y.__data__;return Ho(A)?I[typeof A=="string"?"string":"hash"]:I.map}function Kt(y,A){var I=Ft(y,A);return Do(I)?I:void 0}function Xt(y){var A=C.call(y,Pt),I=y[Pt];try{y[Pt]=void 0;var W=!0}catch{}var ge=H.call(y);return W&&(A?y[Pt]=I:delete y[Pt]),ge}var jo=qr?function(y){return y==null?[]:(y=Object(y),Wt(qr(y),function(A){return Pe.call(y,A)}))}:Ti,It=Ar;(bn&&It(new bn(new ArrayBuffer(1)))!=j||xr&&It(new xr)!=m||wn&&It(wn.resolve())!=b||Sn&&It(new Sn)!=P||Tn&&It(new Tn)!=q)&&(It=function(y){var A=Ar(y),I=A==v?y.constructor:void 0,W=I?ut(I):"";if(W)switch(W){case fi:return j;case Yt:return m;case Eo:return b;case _o:return P;case bo:return q}return A});function nr(y,A){return A=A??a,!!A&&(typeof y=="number"||Ve.test(y))&&y>-1&&y%1==0&&y<A}function Ho(y){var A=typeof y;return A=="string"||A=="number"||A=="symbol"||A=="boolean"?y!=="__proto__":y===null}function qo(y){return!!k&&k in y}function Go(y){var A=y&&y.constructor,I=typeof A=="function"&&A.prototype||x;return y===I}function vi(y){return H.call(y)}function ut(y){if(y!=null){try{return E.call(y)}catch{}try{return y+""}catch{}}return""}function Ei(y,A){return y===A||y!==y&&A!==A}var _i=mi(function(){return arguments}())?mi:function(y){return Dt(y)&&C.call(y,"callee")&&!Pe.call(y,"callee")},zr=Array.isArray;function Qr(y){return y!=null&&Ln(y.length)&&!bi(y)}var Yr=_n||Wo;function Vo(y,A){return gi(y,A)}function bi(y){if(!wi(y))return!1;var A=Ar(y);return A==h||A==p||A==l||A==T}function Ln(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=a}function wi(y){var A=typeof y;return y!=null&&(A=="object"||A=="function")}function Dt(y){return y!=null&&typeof y=="object"}var kn=Je?vn(Je):Bo;function Si(y){return Qr(y)?Fo(y):Uo(y)}function Ti(){return[]}function Wo(){return!1}e.exports=Vo})(du,du.exports);var BN=du.exports;const UN=_r(BN);const TE=({element:e="section",children:t,className:r,...n})=>U.createElement(e,{className:se("modal",r),children:typeof t=="string"?O.jsx("p",{children:t}):t,...n});const xE=({id:e="content-overlay",isOpen:t=!1,maxWidth:r,functions:{onOpen:n=()=>{},onClose:i=()=>{}}={},forceShow:{error:o=!1}={},title:a,children:s,buttons:u,className:l="",gtmContext:c="Modal"})=>{const d=Oe(),[f,h]=U.useState(t),p=_=>{h(_),_?(n(),document.body.classList.add("has-overlay")):(i(),document.body.classList.remove("has-overlay"))};U.useEffect(()=>{p(t)},[t]);const m=r?{"--max-width":`${r/16}rem`}:{};return O.jsx("div",{className:se("overlay",{open:f}),children:O.jsx(TE,{id:e,className:se("overlay-modal",l,{"has-max-width":r}),hidden:!f,style:m,children:t&&O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"top",children:[O.jsx("h2",{children:a}),O.jsx(ze,{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:d.formatMessage({id:"overlay_button"})})]}),O.jsx(Za,{}),s,u&&O.jsxs("div",{className:"bottom",children:[O.jsx(Za,{}),O.jsx(na,{buttons:u})]}),o&&O.jsx(tu,{className:"error",children:o})]})})})},OE=(e,t)=>({"aria-haspopup":!0,"aria-expanded":t,"aria-controls":e}),Xm=e=>{const t={};return Object.keys(e).forEach(r=>{t[`${r}Slug`]=e[r]}),t};const kr="discussion_",Lu=({element:e="div",content:t,isLoading:r=!1,originalAuthorId:n,functions:{content:{createContent:i,deleteContent:o,updateContent:a}={createContent:()=>{},deleteContent:()=>{},updateContent:()=>{}},likes:{createLike:s,deleteLike:u}={createLike:()=>{},deleteLike:()=>{}},comments:{openComments:l}={openComments:()=>{}}},links:c={},className:d,gtmContext:f="DiscussionAnswer",locale:h="en",children:p})=>{const m=Oe(),_=U.useContext(jr),S=U.useContext(mh),[v,b]=U.useState({body:t&&t.body||"",isEditing:!1,didEdit:t&&t.isEdited||!1}),[T,w]=U.useState(!1),[P,R]=U.useState("");if(U.useEffect(()=>{b({...v,body:t&&t.body||"",didEdit:t&&t.isEdited||!1})},[t.isEdited]),r||!t||t.type==="answer"&&(!t.slugs||!t.slugs.question))return O.jsx(vr,{className:"discussion-card discussion-post"});const{author:L,canLike:$,createdAt:q,id:G,likes:j=0,userLiked:Y,comments:re=0}=t,K=_&&_.id&&typeof L!="string"&&L.id&&L.id===_.id||!1,M=typeof $=="boolean"?$:!K,z=async X=>{X||(X=""),R("");try{if(!UN(X,v.body)){const le=t.type==="question"?{title:X}:{body:X};await a(Xm(t.slugs),le)}b({body:X,isEditing:!1,didEdit:!0})}catch{R(`${kr}form_error`)}},ee=()=>{S&&S.updateConversation&&S.updateConversation({showThread:!0,showForm:!0}),setTimeout(()=>{const le=`reply-form-${(t.type==="answer"?t.slug:t.slugs.answer||"").toLowerCase().slice(-15)}`,de=document.getElementById(le),Ve=document.getElementById(`${le}-input`);Ve&&Ve.focus(),de&&de.scrollIntoView({behavior:"smooth"})},0)},fe=()=>{try{o(Xm(t.slugs))}catch{R("delete-error")}},J=[{text:m.formatMessage({id:`${kr}moreMenu_report`}),href:`mailto:community@apolitical.co?subject=${encodeURI(m.formatMessage({id:`${kr}report_subject`}))}&body=${encodeURI(m.formatMessage({id:`${kr}report_body`},{contentType:t.type||"",contentSlug:t.slug||"",contentUrl:`${window.origin}${typeof process<"u"&&process.env.PUBLIC_URL||""}/${t.slugs.question||""}`}))}`,icon:"flag"}];return K&&J.push({text:m.formatMessage({id:`${kr}moreMenu_edit`}),onClick:()=>b({...v,isEditing:!0}),icon:"pencil-paper",className:"gtm-trackable","data-gtm-event-context":f,"data-gtm-event-type":`edit-${t.type}-click`},{text:m.formatMessage({id:`${kr}moreMenu_delete`}),onClick:X=>{X.preventDefault(),X.stopPropagation(),w(!0)},icon:"trash",className:"gtm-trackable","data-gtm-event-context":f,"data-gtm-event-type":`delete-${t.type}-click`,...OE(`delete-${t.slug}-modal`,T)}),U.createElement(e,{className:se("discussion-post",d),"data-testid":`discussion-${t.type}-thread`,children:O.jsxs(O.Fragment,{children:[O.jsxs("div",{id:G||t.slug,className:se("discussion-card",t.type,{editing:v.isEditing,"has-link":c.post&&!v.isEditing}),onClick:X=>{!c.post||v.isEditing||(X.preventDefault(),X.stopPropagation(),window.location.href=c.post)},children:[!v.isEditing&&O.jsx(Ou,{member:L,additionalContent:{createdAt:q,didEdit:v.didEdit},className:typeof L!="string"&&L.id===n?"highlighted":"",gtmContext:f,gtmType:"profile-click"}),v.isEditing?O.jsx(dh,{content:{type:t.type,slugs:t.slugs},meta:{isLoading:r,isInWrapper:!0,isEditing:{text:v.body}},maxLength:t.type==="question"?250:5e4,forceShow:{error:P!==""&&P!=="delete-error"?m.formatMessage({id:P},{action:m.formatMessage({id:`discussion_action_${t.type}`})}):!1},functions:{create:i,handleSaveEdit:z,handleCancel:()=>{R(""),b({...v,isEditing:!1})}},gtmContext:`${f}Form`}):c.post?O.jsx("a",{href:c.post,className:"gtm-trackable","data-gtm-event-context":f,"data-gtm-event-type":"title-click",children:O.jsx(nf,{options:{overrides:{a:null}},children:v.body})}):O.jsx(nf,{options:{wrapper:t.type==="question"?"h1":U.Fragment,forceWrapper:t.type==="question",forceInline:t.type==="question",forceBlock:t.type!=="question"},children:v.body}),!v.isEditing&&O.jsxs("ul",{className:se("actions text-medium",t.type),"data-testid":`${t.type}-actions`,children:[O.jsx(SE,{element:"li",likes:j,isShort:!1,userLiked:Y,content:{type:t.type,slugs:t.slugs},canLike:M,functions:{createLike:s,deleteLike:u}}),["question","post"].includes(t.type)||c.comments||typeof l=="function"&&O.jsxs("li",{className:"action-button",onClick:X=>{X.preventDefault(),X.stopPropagation(),c.comments&&(window.location.href=c.comments),typeof l=="function"&&l()},children:[O.jsx(ze,{variant:"tertiary",size:"medium",styling:{muted:!0},icon:{icon:"speech-bubble_square_thick"},href:c.comments?c.comments:!1,onClick:c.comments||typeof l!="function"?!1:l,className:"gtm-trackable","data-gtm-event-context":f,"data-gtm-event-type":`answer-${t.type}-click`,screenreaderText:m.formatMessage({id:`${kr}comments_screenReader`},{count:re})}),O.jsx("span",{children:m.formatMessage({id:`${kr}comments`},{count:re})})]}),(t.type==="answer"||t.type==="reply")&&O.jsx("li",{children:O.jsx(ze,{variant:"tertiary",size:"medium",styling:{muted:!0},onClick:ee,children:m.formatMessage({id:`${kr}reply`})})}),O.jsx(aE,{element:"li",id:`more-${t.slug}`,options:J})]})]}),p,O.jsx(xE,{id:`delete-${t.slug}-modal`,isOpen:T,functions:{onOpen:()=>{},onClose:()=>w(!1)},forceShow:{error:P==="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:fe,children:m.formatMessage({id:"discussion_delete_delete"})}],gtmContext:`${t.type.charAt(0).toUpperCase()}${t.type.slice(1)}:${t.slug}`,children:O.jsx(fn,{id:"discussion_delete_text",values:{p:X=>O.jsx("p",{children:X}),action:m.formatMessage({id:`discussion_action_${t.type}`})}})})]})})};const Ol="discussion_responses_",$N=({type:e="answer",responses:t=0})=>{const r=Oe();return O.jsxs("div",{className:"responses-heading",children:[O.jsx("h3",{children:r.formatMessage({id:`${Ol}title`},{action:r.formatMessage({id:`${Ol}${e}`}),count:t})}),t===0&&O.jsx("p",{children:ur(r.formatMessage,`${Ol}empty`,e,e)})]})};const jN=({isOpen:e=!1,count:t=0,children:r})=>{const n=Oe(),i=U.useRef(null),[o,a]=U.useState(e),[s,u]=U.useState("closed");U.useEffect(()=>{const f=i.current;if(f)return f.addEventListener("transitionend",l),()=>{f.removeEventListener("transitionend",l)}},[]),ni(()=>{s==="closed"&&!o||u(["opening","open"].includes(s)?"ready-to-close":"opening")},[o]),U.useEffect(()=>{s==="ready-to-close"&&u("closing")},[s]);const l=({propertyName:f})=>{f==="max-height"&&u(h=>h==="opening"?"open":h==="closing"?"closed":h)},c=["opening","open"].includes(s),d=Tv(r,{element:"li"});return O.jsxs("div",{className:"thread-wrapper",children:[O.jsx(ze,{variant:"secondary",size:"small",styling:{muted:!0},icon:{icon:`arrow_corner-down_${c?"left":"right"}`},onClick:()=>{a(!o)},children:n.formatMessage({id:`discussion_thread_${c?"hide":"show"}`},{count:t})}),O.jsx("ul",{ref:i,className:se("thread",s),hidden:!o,children:d})]})},HN=({user:e,content:t,verb:r="post"})=>({actor:{id:e.id,data:{name:e.name,organization:e==null?void 0:e.organization,jobTitle:e==null?void 0:e.jobTitle}},content:t,latest_reactions:{like:[]},reaction_counts:{like:0},verb:r}),qN=({queryClient:e,queryKey:t,user:r,mutationFn:n})=>({mutationFn:n,onMutate:async({content:s})=>{if(!r)return;const u=HN({user:r,content:s,verb:"post"});await e.cancelQueries({queryKey:t});const l=e.getQueryData(t);return e.setQueryData(t,c=>[...c,u]),{previousActivities:l}},onError:(s,u,l)=>{e.setQueryData(t,l.previousActivities)},onSettled:()=>{e.invalidateQueries({queryKey:t})}}),GN=({queryClient:e,queryKey:t,mutationFn:r})=>({mutationFn:r,onMutate:async({activityId:s})=>{await e.cancelQueries({queryKey:t});const u=e.getQueryData(t),l=u==null?void 0:u.map(c=>{var d;return(c==null?void 0:c.id)===s&&((d=c.reaction_counts)!=null&&d.like?c.reaction_counts.like+=1:c.reaction_counts.like=1),c});return e.setQueryData(t,()=>l&&[...l]),{previousActivities:l}},onError:(s,u,l)=>{e.setQueryData(t,l.previousActivities)},onSuccess:s=>{const u=e.getQueryData(t),l=u==null?void 0:u.map(c=>((c==null?void 0:c.id)===(s==null?void 0:s.activity_id)&&(c.latest_reactions.like?c.latest_reactions.like.push(s):c.latest_reactions.like=[s]),c));return e.setQueryData(t,()=>l&&[...l]),{previousActivities:u}},onSettled:(s,u,l)=>{e.invalidateQueries({queryKey:[...t,l.activityId]})}}),VN=({queryClient:e,queryKey:t,user:r,mutationFn:n})=>({mutationFn:n,onMutate:async({activityId:u})=>{await e.cancelQueries({queryKey:t});const l=e.getQueryData(t),c=l==null?void 0:l.map(d=>{var f;return(d==null?void 0:d.id)===u&&(f=d.reaction_counts)!=null&&f.like&&(d.reaction_counts.like-=1),d});return e.setQueryData(t,()=>c&&[...c]),{previousActivities:c}},onError:(u,l,c)=>{e.setQueryData(t,c.previousActivities)},onSuccess:(u,{activityId:l})=>{const c=e.getQueryData(t),d=c==null?void 0:c.map(f=>{var h,p,m,_;if(f.id===l){const S=(m=(p=(h=f.latest_reactions)==null?void 0:h.like)==null?void 0:p.find(v=>v.user_id===(r==null?void 0:r.id)))==null?void 0:m.id;return f.latest_reactions.like=(_=f.latest_reactions.like)==null?void 0:_.filter(v=>v.id!==S),f}else return f});return e.setQueryData(t,()=>d&&[...d]),{previousActivities:c}},onSettled:(u,l,c)=>{e.invalidateQueries({queryKey:[...t,c.activityId]})}}),WN=({basePath:e,parentId:t,membershipRequiredToPost:{isMember:r,join:n,leave:i},functions:{list:o,create:a,like:s,unlike:u}})=>{const l=go(),c=U.useContext(jr),{data:d,error:f,isLoading:h,isFetching:p}=H0({queryKey:[e,t],queryFn:o}),m=qN({queryClient:l,queryKey:[e,t],user:c,mutationFn:a}),{mutate:_}=hn(m),S=GN({queryClient:l,queryKey:[e,t],mutationFn:s}),{mutate:v}=hn(S),b=VN({queryClient:l,queryKey:[e,t],user:c,mutationFn:async({activityId:R})=>{var q,G,j;const L=d&&(d==null?void 0:d.find(Y=>Y.id===R)),$=(j=(G=(q=L==null?void 0:L.latest_reactions)==null?void 0:q.like)==null?void 0:G.find(Y=>Y.user_id===(c==null?void 0:c.id)))==null?void 0:j.id;await u({reactionId:$||"",activityId:R})}}),{mutate:T}=hn(b),w=U.useCallback(({activityId:R})=>v({activityId:R}),[v]),P=U.useCallback(({activityId:R})=>T({activityId:R}),[T]);return f?O.jsx(sa,{variant:"error",text:f.message}):h?O.jsx(vr,{style:{height:"400px"}}):O.jsxs(O.Fragment,{children:[O.jsx(ph,{contentType:"post",createPost:_,membershipRequiredToPost:{isMember:r,required:!0,join:n,leave:i,notMemberStateText:"Join community to create a post."}}),!p&&Array.isArray(d)&&(d==null?void 0:d.map(R=>{var $,q,G,j,Y,re,K,M,z,ee,fe;const L=(q=($=R==null?void 0:R.latest_reactions)==null?void 0:$.like)==null?void 0:q.filter(J=>J.user_id===(c==null?void 0:c.id));return O.jsx(Lu,{content:{type:"post",body:R==null?void 0:R.content,createdAt:(R==null?void 0:R.time)||"",slugs:{question:t},slug:R==null?void 0:R.id,author:{id:(G=R==null?void 0:R.actor)==null?void 0:G.id,name:(Y=(j=R==null?void 0:R.actor)==null?void 0:j.data)==null?void 0:Y.name,organization:(K=(re=R==null?void 0:R.actor)==null?void 0:re.data)==null?void 0:K.organization,jobTitle:(z=(M=R==null?void 0:R.actor)==null?void 0:M.data)==null?void 0:z.jobTitle,image:{thumbnail:((fe=(ee=R==null?void 0:R.actor)==null?void 0:ee.data)==null?void 0:fe.thumbnail)||void 0}},userLiked:!!(L!=null&&L.length),likes:(R==null?void 0:R.reaction_counts.like)||0,comments:(R==null?void 0:R.reaction_counts.reply)||0},links:{post:`${e}/${t}/${R==null?void 0:R.id}`,comments:`${e}/${t}/${R==null?void 0:R.id}`},functions:{content:{createContent:()=>null,deleteContent:()=>null,updateContent:()=>null},likes:{createLike:()=>{w({activityId:R==null?void 0:R.id})},deleteLike:()=>{P({activityId:R==null?void 0:R.id})}},comments:{openComments:()=>null}}},R==null?void 0:R.id)}))]})},zN=({queryClient:e,queryKey:t,mutationFn:r})=>({mutationFn:r,onMutate:async()=>{await e.cancelQueries({queryKey:t})},onError:(s,u,l)=>{e.setQueryData(t,l.previousActivity)},onSuccess:s=>{var l;const u=e.getQueryData(t);if(u)return(l=u==null?void 0:u.latest_reactions)!=null&&l.reply?(u.latest_reactions.reply.unshift(s),u&&(u.reaction_counts={reply:u.latest_reactions.reply.length})):(u.latest_reactions={reply:[s]},u.reaction_counts={reply:1}),e.setQueryData(t,()=>({...u})),{previousActivity:u}},onSettled:()=>{e.invalidateQueries({queryKey:t})}}),QN=({queryClient:e,queryKey:t,mutationFn:r})=>({mutationFn:r,onMutate:async({replyId:a})=>{var l,c;await e.cancelQueries({queryKey:t});const s=e.getQueryData(t),u=(c=(l=s==null?void 0:s.latest_reactions)==null?void 0:l.reply)==null?void 0:c.map(d=>{var f;return d.id===a&&((f=d.children_counts)!=null&&f.like?d.children_counts.like+=1:d.children_counts={like:1}),d});return e.setQueryData(t,()=>({...s,latest_reactions:{reply:u}})),{previousActivity:s}},onError:(a,s,u)=>{e.setQueryData(t,u.previousActivity)},onSuccess:a=>{var l;const s=e.getQueryData(t),u=(l=s==null?void 0:s.latest_reactions.reply)==null?void 0:l.map(c=>(c.id===a.id&&(c.latest_children.like?c.latest_children.like.push(a):c.latest_children.like=[a]),c));return e.setQueryData(t,()=>({...s,latest_reactions:{reply:u}})),{previousActivity:s}}}),YN=({queryClient:e,queryKey:t,user:r,mutationFn:n})=>({mutationFn:n,onMutate:async({replyId:s})=>{var c;await e.cancelQueries({queryKey:t});const u=e.getQueryData(t);if(!u)return;const l=(c=u.latest_reactions.reply)==null?void 0:c.map(d=>(d.id===s&&d.children_counts.like&&(d.children_counts.like-=1),d));return e.setQueryData(t,()=>({...u,latest_reactions:{reply:l}})),{previousActivity:u}},onError:(s,u,l)=>{e.setQueryData(t,l.previousActivity)},onSuccess:(s,{replyId:u})=>{var d;const l=e.getQueryData(t);if(!l)return;const c=(d=l.latest_reactions.reply)==null?void 0:d.map(f=>{var h;return f.id===u?(h=f.latest_children.reply)==null?void 0:h.filter(m=>m.user_id!==(r==null?void 0:r.id)):f});return e.setQueryData(t,()=>({...l,latest_reactions:{reply:c}})),{previousActivity:l}}}),AE=({basePath:e,parentId:t,activityId:r,repliesList:n,membershipRequiredToPost:{isMember:i,join:o,leave:a},functions:{createReply:s,like:u,unlike:l}})=>{const c=go(),d=U.useContext(jr),f=zN({queryClient:c,queryKey:[e,t,r],mutationFn:s}),{mutate:h}=hn(f),p=QN({queryClient:c,queryKey:[e,t,r],mutationFn:u}),{mutate:m}=hn(p),_=YN({queryClient:c,queryKey:[e,t,r],user:d,mutationFn:l}),{mutate:S}=hn(_),v=U.useCallback(({replyId:T})=>m({replyId:T}),[m]),b=U.useCallback(({replyId:T})=>S({replyId:T}),[S]);return O.jsxs(O.Fragment,{children:[O.jsx(ph,{contentType:"post",createPost:h,membershipRequiredToPost:{isMember:i,required:!0,join:o,leave:a,notMemberStateText:"Join community to create a post."}}),(n==null?void 0:n.length)===0||(n==null?void 0:n.map(T=>{var P,R,L,$,q,G,j,Y,re,K,M,z,ee,fe,J;const w=((P=T==null?void 0:T.latest_children)==null?void 0:P.like)&&((R=T==null?void 0:T.latest_children)==null?void 0:R.like.filter(X=>X.user_id===(d==null?void 0:d.id)));return O.jsx(Lu,{content:{type:"post",body:(($=(L=T==null?void 0:T.data)==null?void 0:L.content)==null?void 0:$.text)||"",createdAt:T==null?void 0:T.created_at,slugs:{question:`${t}/${r}`,reply:T==null?void 0:T.id},slug:`${e}/${t}/${r}#${T==null?void 0:T.id}`,author:{id:(q=T==null?void 0:T.user)==null?void 0:q.id,name:(j=(G=T==null?void 0:T.user)==null?void 0:G.data)==null?void 0:j.name,organization:(re=(Y=T==null?void 0:T.user)==null?void 0:Y.data)==null?void 0:re.organization,jobTitle:(M=(K=T==null?void 0:T.user)==null?void 0:K.data)==null?void 0:M.jobTitle,image:{thumbnail:((ee=(z=T==null?void 0:T.user)==null?void 0:z.data)==null?void 0:ee.thumbnail)||void 0}},userLiked:!!(w!=null&&w.length),likes:((fe=T==null?void 0:T.children_counts)==null?void 0:fe.like)||0,comments:((J=T==null?void 0:T.children_counts)==null?void 0:J.reply)||0},functions:{content:{createContent:()=>console.log("create"),deleteContent:()=>console.log("delete"),updateContent:()=>console.log("update")},likes:{createLike:()=>v({replyId:T==null?void 0:T.id}),deleteLike:()=>b({replyId:T==null?void 0:T.id})},comments:{openComments:()=>{}}}},T==null?void 0:T.id)}))]})},KN=({queryClient:e,queryKey:t,mutationFn:r})=>({mutationFn:r,onMutate:async()=>{var u;await e.cancelQueries({queryKey:t});const s=e.getQueryData(t);return(u=s==null?void 0:s.reaction_counts)!=null&&u.like?s.reaction_counts.like+=1:s&&(s.reaction_counts={like:1}),e.setQueryData(t,()=>({...s})),{previousActivity:s}},onError:(s,u,l)=>{e.setQueryData(t,l.previousActivity)},onSuccess:s=>{const u=e.getQueryData(t);return u!=null&&u.latest_reactions.like?u.latest_reactions.like.push(s):u&&(u.latest_reactions={like:[s]}),e.setQueryData(t,()=>({...u})),{previousActivity:u}},onSettled:()=>{e.invalidateQueries({queryKey:t})}}),XN=({queryClient:e,queryKey:t,user:r,activity:n,mutationFn:i})=>({mutationFn:i,onMutate:async()=>{var c;await e.cancelQueries({queryKey:t});const l=e.getQueryData(t);return(c=l==null?void 0:l.reaction_counts)!=null&&c.like&&(l.reaction_counts.like-=1),e.setQueryData(t,()=>({...l})),{previousActivity:l}},onError:(l,c,d)=>{e.setQueryData(t,d.previousActivity)},onSuccess:()=>{var d,f,h;if(!n)return;const l=(h=(f=(d=n.latest_reactions)==null?void 0:d.like)==null?void 0:f.find(p=>p.user_id===(r==null?void 0:r.id)))==null?void 0:h.id,c=e.getQueryData(t);if(c!=null&&c.latest_reactions.like)return c.latest_reactions.like=c.latest_reactions.like.filter(p=>p.id!==l),e.setQueryData(t,()=>({...c})),{previousActivity:c}},onSettled:()=>{e.invalidateQueries({queryKey:t})}}),JN=({basePath:e,parentId:t,activityId:r,membershipRequiredToPost:n,functions:{get:i,likeActivity:o,unlikeActivity:a,createReply:s,likeReply:u,unlikeReply:l}})=>{var P,R,L,$,q,G,j,Y,re,K,M;const c=U.useContext(jr),d=go(),{data:f,error:h,isLoading:p,isFetching:m}=H0({queryKey:[e,t,r],queryFn:i}),_=KN({queryClient:d,queryKey:[e,t,r],mutationFn:o}),{mutate:S}=hn(_),v=XN({queryClient:d,queryKey:[e,t,r],user:c,mutationFn:async()=>{var ee,fe,J;const z=(J=(fe=(ee=f==null?void 0:f.latest_reactions)==null?void 0:ee.like)==null?void 0:fe.find(X=>X.user_id===(c==null?void 0:c.id)))==null?void 0:J.id;await a({activityId:r,reactionId:z})},activity:f}),{mutate:b}=hn(v),T=U.useCallback(({activityId:z})=>S({activityId:z}),[S]),w=U.useCallback(async({activityId:z})=>b({activityId:z}),[b]);return h?O.jsx(sa,{variant:"error",text:h.message}):p||m?O.jsx(vr,{style:{height:"400px"}}):O.jsx(Lu,{content:{type:"post",body:f==null?void 0:f.content,createdAt:(f==null?void 0:f.time)||"",slugs:{question:`${t}/${r}`},slug:r,author:{id:(P=f==null?void 0:f.actor)==null?void 0:P.id,name:(R=f==null?void 0:f.actor)==null?void 0:R.data.name,organization:(L=f==null?void 0:f.actor)==null?void 0:L.data.organization,jobTitle:($=f==null?void 0:f.actor)==null?void 0:$.data.jobTitle,image:{thumbnail:((q=f==null?void 0:f.actor)==null?void 0:q.data.thumbnail)||void 0}},userLiked:((G=f==null?void 0:f.latest_reactions)==null?void 0:G.like)&&((Y=(j=f==null?void 0:f.latest_reactions)==null?void 0:j.like.filter(z=>(z==null?void 0:z.user_id)===(c==null?void 0:c.id)))==null?void 0:Y.length)>0,likes:f&&(f==null?void 0:f.reaction_counts.like),comments:f&&(f==null?void 0:f.reaction_counts.reply)},originalAuthorId:(re=f==null?void 0:f.actor)==null?void 0:re.id,functions:{content:{createContent:()=>console.log("create"),deleteContent:()=>console.log("delete"),updateContent:()=>console.log("update")},likes:{createLike:()=>T({activityId:r}),deleteLike:()=>w({activityId:r})},comments:{openComments:()=>{}}},children:O.jsxs(O.Fragment,{children:[O.jsxs("h3",{children:["Comments (",((K=f==null?void 0:f.reaction_counts)==null?void 0:K.reply)||0,")"]}),O.jsx(AE,{basePath:e,parentId:t,activityId:r,repliesList:(M=f==null?void 0:f.latest_reactions)==null?void 0:M.reply,membershipRequiredToPost:n,functions:{createReply:s,like:u,unlike:l}})]})},r)},ZN=({id:e,data:{jobTitle:t,name:r,organization:n,thumbnail:i}})=>({id:e,name:r,jobTitle:t,organization:n,image:{thumbnail:i}});exports.$PROXY=Is;exports.$TRACK=th;exports.ASSETS_BUCKET=eu;exports.ActivitiesFeed=WN;exports.ActivitySection=JN;exports.AddPost=ph;exports.Breadcrumbs=nP;exports.Button=ze;exports.ButtonWrapper=na;exports.CollapsibleSection=Yf;exports.Columns=sP;exports.CommunityDetails=rP;exports.Contributors=P0;exports.Conversation=MN;exports.ConversationContext=mh;exports.CookieBanner=uE;exports.Divider=Za;exports.DownloadSection=zA;exports.Dynamic=XR;exports.EmailHelperTextBox=aP;exports.EmptyStateBox=sa;exports.Filters=iP;exports.Footer=ah;exports.For=SR;exports.Form=dh;exports.FullWidthSection=zf;exports.Header=hh;exports.HelperTextBox=T0;exports.HiddenFromScreenReaders=Tf;exports.HideShowTextBox=i1;exports.HighlightedTextBoxWrapper=Ur;exports.Index=TR;exports.IntlProvider=v1;exports.JoinButton=oh;exports.Likes=SE;exports.Link=wu;exports.LoadMore=sE;exports.LoadingPlaceholder=vr;exports.LoadingState=C0;exports.Logo=sh;exports.LogoSection=QA;exports.MarkdownText=nf;exports.MarketingBlock=JA;exports.Match=AR;exports.Member=Ou;exports.MembersList=yN;exports.Modal=TE;exports.MoreMenu=aE;exports.NUMBER_OF_USERS=eC;exports.Overlay=xE;exports.PageLayout=pN;exports.Pill=x0;exports.Portal=KR;exports.Post=Lu;exports.ProfilePicture=xu;exports.ProgressBar=O0;exports.Rating=fP;exports.ReactQueryProvider=tP;exports.RepliesFeed=AE;exports.ResponsesHeading=$N;exports.ResponsiveImage=xv;exports.SearchForm=hE;exports.Show=xR;exports.StatusBanner=tu;exports.Switch=OR;exports.Tags=gN;exports.Thread=jN;exports.Tooltip=r0;exports.UserContext=jr;exports.UserProvider=E1;exports.VisuallyHidden=lt;exports.addAriaProps=OE;exports.addEventListener=nE;exports.bannerSection=XA;exports.batch=nR;exports.children=nh;exports.className=rE;exports.createComponent=X0;exports.createComputed=vf;exports.createContext=lR;exports.createEffect=rh;exports.createMemo=St;exports.createRenderEffect=pn;exports.createRoot=dn;exports.createSignal=bt;exports.createUniqueId=wR;exports.delegateEvents=tE;exports.getListener=sR;exports.getMember=Jf;exports.headerData=Ms;exports.insert=lu;exports.loadingBlock=m1;exports.mapGetSteamData=ZN;exports.mergeProps=J0;exports.on=iR;exports.onCleanup=Ls;exports.onMount=oR;exports.passwordRules=lP;exports.setAttribute=cu;exports.span=h1;exports.splitProps=Z0;exports.spread=iE;exports.template=UR;exports.untrack=Xe;exports.use=qR;exports.useContext=fR;exports.useEffectAfterMount=ni;exports.useFeatureFlag=lx;exports.useScreenWidth=ra;exports.useScrollListener=dv;exports.useScrollToHash=hx;exports.useTransition=cR;