1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,296538,65609,950999,63463,e=>{"use strict";var t=e.i(191788),r=e.i(391398),n=e.i(831083),o=e.i(459547);e.i(350461);let i=["localhost:3000","dev","tst"].includes("prd");e.s(["isTestEnv",0,i],65609);var s=e.i(945547);let a={RECAPTCHA_SITE_KEY:"",LAST_UPDATED_DATE:"2020-01-01",GUIDES_ERROR_TEST:void 0,BR_NOTIFICATION_BANNER_PERIOD:"",PS_SEARCH_NOTIFICATION_BANNER_PERIOD:"",PS_SUBSIDY_NOTIFICATION_BANNER_PERIOD:"",BR_NOTIFICATION_BANNER_MESSAGE:"",PS_SEARCH_MONTH_ENROLMENT_SHOW:!1,PS_SEARCH_NOTIFICATION_BANNER_MESSAGE:"",PS_SUBSIDY_NOTIFICATION_BANNER_MESSAGE:"",PS_SUBSIDY_SHOW_SR24_FEATURES:!1,OS_NOTIFICATION_BANNER_PERIOD:"",OS_NOTIFICATION_BANNER_MESSAGE:"",ENABLE_VICA_CHATBOT:!1,SMART_APP_BANNER_SHOW:!1,SMART_APP_BANNER_CONTENT:"{}",SBBO_NOTIFICATION_BANNER_PERIOD:"",SBBO_NOTIFICATION_BANNER_MESSAGE:"",BR_MAINTENANCE_PERIOD:"",SBBO_MAINTENANCE_PERIOD:"",TOGGLE_SEARCH_BAR:!1,TOGGLE_BR_PAYNOW_UPDATES:!1,TOGGLE_HELP_NEIGHBOUR:!1,TOGGLE_PRESCHOOL_SEARCH:!1,TOGGLE_BOOK_FACILITIES:!1,TOGGLE_BOOK_FACILITIES_PHASE2:!1,HN_NOTIFICATION_BANNER_PERIOD:"",HN_NOTIFICATION_BANNER_MESSAGE:"",MISSING_PERSON_BANNER:!1,SBBO_ENABLED_TOGGLE:!1,TOGGLE_YOUR_BENEFITS:!1,GPLS_ENABLED_TOGGLE:!1,GPLS_NOTIFICATION_BANNER_PERIOD:"",GPLS_NOTIFICATION_BANNER_MESSAGE:"",GET_IN_TOUCH_YELLOW_ALERT_BANNER_SHOW:!1,GET_IN_TOUCH_YELLOW_ALERT_BANNER_MESSAGE:"",TOGGLE_NSPE_CAMPAIGN:!1,TOGGLE_NSPE_UPDATED_TRACK_STATUS_SCREENSHOTS:!1,TOGGLE_HELP_AND_SUPPORT:void 0,TOGGLE_YOUR_BENEFITS_TRANSLATION:!1,USE_OPTICAL_DATA:!1,OPTICAL_ERROR_TEST:!1,GPLS_TEN_WEEKS_TRANSITION:!1,ENABLE_SUBSIDISED_FEE_FEATURE:!1,TOGGLE_CHILDMINDING_FOR_INFANTS:!1,ENABLE_FORM_3_WITHDRAWAL:!1,TOGGLE_CMS_PAGES:!1,TOGGLE_CMS_HOMEPAGE:!0,ENABLE_UPCOMING_PRESCHOOL_FEATURE:!1,FORM_3_NOTIFICATION_BANNER_PERIOD:"",FORM_3_NOTIFICATION_BANNER_MESSAGE:"",FORM_3_MAINTENANCE_PERIOD:"",TOGGLE_MINLAW_VC_DISCONTINUATION_BANNER:!1,TOGGLE_MINLAW_VC_DISCONTINUED:!1,ENABLE_CSP:!1,ENABLE_SGO:!1,HOME_MAINTENANCE_PERIOD:"",HOME_MAINTENANCE_MESSAGE:""},l={LAST_UPDATED_DATE:"",TCMS_ERROR_CODE:"",BF_NOTIFICATION_BANNER_MESSAGE:"",BF_NOTIFICATION_BANNER_PERIOD:"",BF_MAINTENANCE_PERIOD:"",TOGGLE_BOOK_FAC_SPORT:!1},c={LAST_UPDATED_DATE:""},u={getDefaultValues:()=>({configCat:{...a,...l,...c},isConfigReady:!1}),bookFacDefaultValues:l,lifeSgDefaultValues:a,mylegacyDefaultValues:c};e.s(["ConfigCatHelper",0,u],950999);let d=u.getDefaultValues(),{lifeSgDefaultValues:f,bookFacDefaultValues:p,mylegacyDefaultValues:h}=u,m=(0,t.createContext)(d);e.s(["ConfigCatContext",0,m,"ConfigCatProvider",0,({children:e})=>{let[a,l]=(0,t.useState)(d.configCat),[c,u]=(0,t.useState)(!1),E=(0,t.useRef)(null),g=(0,t.useRef)(null),_=(0,t.useRef)(null),y=(0,t.useRef)({}),O=(0,t.useCallback)(async()=>{if(!E.current||!g.current||!_.current)return;u(!1);let e=await E.current.getConfigs(f),{LAST_UPDATED_DATE:t,...r}=await g.current.getConfigs(p),{LAST_UPDATED_DATE:n,...o}=await _.current.getConfigs(h);l({...e,...r,...o}),u(!0)},[]);(0,t.useEffect)(()=>{let e=(e,t)=>{let r=t?o.PollingMode.AutoPoll:void 0;return i?new n.ConfigCatClientV3(s.AppConfigs[e],r,{setupHooks:e=>e.on("configChanged",O),maxInitWaitTimeSeconds:0,cache:{get:b,set:S}}):new n.ConfigCatClientV3(s.AppConfigs[e],void 0,{cache:{get:b,set:S}})};E.current=e("lifeSgConfigCatKey",!0),g.current=e("bookFacConfigCatKey"),_.current=e("mylegacyConfigCatKey")},[O]),(0,t.useEffect)(()=>{O()},[O]);let b=e=>y.current[e],S=(e,t)=>{y.current[e]=t};return(0,r.jsx)(m.Provider,{value:{configCat:a,isConfigReady:c},children:e})}],63463),e.s(["useConfigCat",0,()=>((0,t.useEffect)(()=>(window.onpageshow=e=>{e.persisted&&window.location.reload()},()=>{window.onpageshow=null}),[]),(0,t.useContext)(m))],296538)},866734,220865,133194,311141,334671,629515,e=>{"use strict";var t=e.i(391398),r=e.i(88622),n=e.i(20557),o=e.i(760814);let i=o.default.span.withConfig({displayName:"footer-external-labelstyles__FooterExternalLabelTail",componentId:"sc-abpx5h-0"})(["white-space:nowrap;"]),s=(0,o.default)(n.ExternalIcon).withConfig({displayName:"footer-external-labelstyles__FooterExternalIcon",componentId:"sc-abpx5h-1"})(["width:1em;height:1em;margin-left:0.4em;vertical-align:middle;color:",";"],r.Colour.icon);e.s(["FooterExternalLabel",0,({children:e})=>{let r=e.split(" "),n=r.pop()??e,o=r.join(" ");return(0,t.jsxs)(t.Fragment,{children:[o&&`${o} `,(0,t.jsxs)(i,{children:[n,(0,t.jsx)(s,{"aria-hidden":!0})]})]})}],866734);let a=o.default.span.withConfig({displayName:"nav-drawer-itemstyles__NavDrawerItemLabel",componentId:"sc-ip5om8-0"})(["display:block;",""],r.Font["body-md-regular"]);e.s(["NavDrawerItem",0,({children:e})=>(0,t.jsx)(a,{children:e})],220865);let l=o.default.span.withConfig({displayName:"nav-dropdown-itemstyles__NavDropdownItemHitArea",componentId:"sc-1fx7p6j-0"})(["display:block;margin:-",";padding:",";"],r.Spacing["spacing-8"],r.Spacing["spacing-8"]);e.s(["NavDropdownItem",0,({children:e,onClick:r})=>(0,t.jsx)(l,{onClick:e=>{e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||0!==e.button||r(e)},children:e})],133194);var c=e.i(991990);let u=o.default.span.withConfig({displayName:"nav-dropdown-labelstyles__NavDropdownLabelContainer",componentId:"sc-2egk6h-0"})(["display:inline-flex;align-items:center;gap:0.5rem;"]),d=(0,o.default)(c.ChevronDownIcon).withConfig({displayName:"nav-dropdown-labelstyles__NavDropdownChevronIcon",componentId:"sc-2egk6h-1"})(["&&{width:1rem;height:1rem;color:",";}"],r.Colour.icon);e.s(["NavDropdownLabel",0,({children:e})=>(0,t.jsxs)(u,{children:[e,(0,t.jsx)(d,{"aria-hidden":!0})]})],311141);var f=e.i(785120),p=e.i(996310);let h=(0,o.default)(p.MagnifierIcon).withConfig({displayName:"search-barstyles__SearchBarIcon",componentId:"sc-168bci5-0"})(["&&{color:",";flex-shrink:0;}"],r.Colour["icon-primary"]),m=o.default.div.withConfig({displayName:"search-barstyles__SearchBarLabelContainer",componentId:"sc-168bci5-1"})(["display:flex;flex-direction:row;align-items:center;& >:not(:first-child){margin-left:0.5rem;}"]);e.s(["SearchBarIcon",0,h,"SearchBarLabelContainer",0,m],334671),e.s(["SearchBarLabel",0,({iconSize:e=24,textStyle:r="body-baseline"}={})=>{let n="body-md"===r?f.Typography.BodyMD:f.Typography.BodyBL;return(0,t.jsxs)(m,{children:[(0,t.jsx)(h,{height:e,width:e}),(0,t.jsx)(n,{children:"Search"})]})}],629515)},600849,e=>{"use strict";var t,r=((t={}).HOME="home",t.NEWS_MEDIA="news-media",t.ABOUT="about-us",t.FAQ="help-support",t.GET_IN_TOUCH="get-in-touch",t.HELP_AND_SUPPORT="help-and-support",t.ASK_GOV_FAQ="ask-gov-faq",t.ASK_GOV_CONTACT="ask-gov-contact",t.GUIDES="guides",t.SERVICES_AND_TOOLS="services-and-tools",t.LIFE_MOMENTS="life-moments",t.TOPICS="topics",t.APP="app",t.SEARCH_BAR="search-bar",t.SEARCH_BAR_LABEL="search-bar-label",t);e.s(["NavItemIdKeys",()=>r])},1528,253354,471276,21122,880422,e=>{"use strict";let t,r,n,o;var i,s,a,l,c=e.i(391398),u=e.i(191788),d=e.i(296538),f=e.i(764073),p=e.i(866734),h=e.i(220865),m=e.i(133194),E=e.i(311141),g=e.i(629515),_=e.i(334671),y=e.i(600849);let O=e=>`${f.UrlPath.home}?section=${e}`,b=(e,t=!1)=>`nav-${e}${t?"-mobile":""}`,S="Frequently asked questions",A="Contact us",N={home:{children:"Home",href:f.UrlPath.home},"services-and-tools":{children:"Services and tools",href:O(y.NavItemIdKeys.SERVICES_AND_TOOLS)},"life-moments":{children:"Life moments",href:O(y.NavItemIdKeys.LIFE_MOMENTS)},topics:{children:"Topics",href:O(y.NavItemIdKeys.TOPICS)},guides:{children:"Guides",href:f.UrlPath.guides},app:{children:"LifeSG app",href:f.UrlPath.lifeSgApp},"news-media":{children:"News and media",href:O(y.NavItemIdKeys.NEWS_MEDIA)},"about-us":{children:"About LifeSG",href:f.UrlPath.about},"help-support":{children:"Frequently asked questions",href:f.UrlPath.faqs},"get-in-touch":{children:"Get in touch with us",href:f.UrlPath.feedback},"help-and-support":{children:"Help and support",href:f.UrlPath.feedback},"ask-gov-faq":{children:S,href:f.ExternalUrl.askGovLifesg},"ask-gov-contact":{children:A,href:f.ExternalUrl.askGovLifesgNewQuestion},"search-bar":{children:(0,c.jsx)(_.SearchBarIcon,{height:24,width:24,"aria-label":"Search"}),href:f.UrlPath.searchBarResultsPage},"search-bar-label":{children:(0,c.jsx)(g.SearchBarLabel,{}),href:f.UrlPath.searchBarResultsPage}},R=e=>{let t=[{...N.app,id:"footer-"+y.NavItemIdKeys.APP},{...N["news-media"],id:"footer-"+y.NavItemIdKeys.NEWS_MEDIA},{...N["about-us"],id:"footer-"+y.NavItemIdKeys.ABOUT}];return e?t.push({...N["help-and-support"],id:"footer-"+y.NavItemIdKeys.HELP_AND_SUPPORT}):(t.push({...N["ask-gov-faq"],id:"footer-"+y.NavItemIdKeys.ASK_GOV_FAQ}),t.push({...N["ask-gov-contact"],id:"footer-"+y.NavItemIdKeys.ASK_GOV_CONTACT})),[[{...N.home,id:"footer-"+y.NavItemIdKeys.HOME},{...N["services-and-tools"],id:"footer-"+y.NavItemIdKeys.SERVICES_AND_TOOLS},{...N.topics,id:"footer-"+y.NavItemIdKeys.TOPICS},{...N.guides,id:"footer-"+y.NavItemIdKeys.GUIDES}],t]},I=[[{...N.home,id:"footer-"+y.NavItemIdKeys.HOME},{...N["life-moments"],id:"footer-"+y.NavItemIdKeys.LIFE_MOMENTS}
1,{...N.topics,id:"footer-"+y.NavItemIdKeys.TOPICS},{...N.app,id:"footer-"+y.NavItemIdKeys.APP}],[{...N["about-us"],children:"About us",id:"footer-"+y.NavItemIdKeys.ABOUT},{...N["ask-gov-faq"],id:"footer-"+y.NavItemIdKeys.ASK_GOV_FAQ,children:(0,c.jsx)(p.FooterExternalLabel,{children:S}),"data-options":{isExternal:!0}},{...N["ask-gov-contact"],id:"footer-"+y.NavItemIdKeys.ASK_GOV_CONTACT,children:(0,c.jsx)(p.FooterExternalLabel,{children:A}),"data-options":{isExternal:!0}}]],w=(e,t=!1)=>{switch(e){case y.NavItemIdKeys.GUIDES:return{...N.guides,id:b(y.NavItemIdKeys.GUIDES,t)};case y.NavItemIdKeys.APP:return{...N.app,id:b(y.NavItemIdKeys.APP,t)};case y.NavItemIdKeys.SERVICES_AND_TOOLS:return{...N["services-and-tools"],id:b(y.NavItemIdKeys.SERVICES_AND_TOOLS,t)};case y.NavItemIdKeys.TOPICS:return{...N.topics,id:b(y.NavItemIdKeys.TOPICS,t)};case y.NavItemIdKeys.SEARCH_BAR:return{...N[t?"search-bar-label":"search-bar"],id:b(y.NavItemIdKeys.SEARCH_BAR,t)};default:return{...N.home,id:b(y.NavItemIdKeys.HOME,t)}}},T=()=>[w(y.NavItemIdKeys.HOME),w(y.NavItemIdKeys.SERVICES_AND_TOOLS),w(y.NavItemIdKeys.TOPICS),w(y.NavItemIdKeys.GUIDES),w(y.NavItemIdKeys.APP),w(y.NavItemIdKeys.SEARCH_BAR)],C=(e,t)=>`${b(e)}-${t}`,v=(e,t,r,n)=>e.map((e,o)=>{let i={id:C(t,o),children:e.title,href:e.href,options:{isExternal:!e.href.startsWith("/")}};return r?{...i,children:(0,c.jsx)(h.NavDrawerItem,{children:e.title})}:n?{...i,children:(0,c.jsx)(m.NavDropdownItem,{onClick:e=>n(i,e),children:e.title})}:i}),P=(e,t,r,n)=>{let o=v(e.lifeMoments,y.NavItemIdKeys.LIFE_MOMENTS,t,n),i=v(e.topics,y.NavItemIdKeys.TOPICS,t,n),s=(e,n)=>0===n.length&&"resolved"===r?[]:[{id:b(e,t),children:t||0===n.length?N[e].children:(0,c.jsx)(E.NavDropdownLabel,{children:N[e].children}),subMenu:n}];return[w(y.NavItemIdKeys.HOME,t),...s(y.NavItemIdKeys.LIFE_MOMENTS,o),...s(y.NavItemIdKeys.TOPICS,i),t?{children:(0,c.jsx)(g.SearchBarLabel,{iconSize:16,textStyle:"body-md"}),href:f.UrlPath.searchBarResultsPage,id:b(y.NavItemIdKeys.SEARCH_BAR,!0)}:w(y.NavItemIdKeys.SEARCH_BAR,!1)]},L=e=>e?.match(/^\/pages\/([^/?#]+)/)?.[1],B=e=>{let t=[w(y.NavItemIdKeys.HOME,!0),w(y.NavItemIdKeys.SERVICES_AND_TOOLS,!0),w(y.NavItemIdKeys.TOPICS,!0),w(y.NavItemIdKeys.GUIDES,!0),w(y.NavItemIdKeys.APP,!0),{...N["news-media"],id:b(y.NavItemIdKeys.NEWS_MEDIA,!0)},{...N["about-us"],id:b(y.NavItemIdKeys.ABOUT,!0)}];return e?t.push({...N["help-and-support"],id:b(y.NavItemIdKeys.HELP_AND_SUPPORT,!0)}):(t.push({...N["ask-gov-faq"],id:b(y.NavItemIdKeys.ASK_GOV_FAQ,!0)}),t.push({...N["ask-gov-contact"],id:b(y.NavItemIdKeys.ASK_GOV_CONTACT,!0)})),t.push(w(y.NavItemIdKeys.SEARCH_BAR,!0)),t};e.s(["CMS_FOOTER_LINKS",0,I,"generateNavItemId",0,b,"getCmsDesktopNavItems",0,(e,t,r)=>P(e,!1,t,r),"getCmsMobileNavItems",0,(e,t)=>P(e,!0,t),"getCmsNavSelectedId",0,(e,t)=>{let r=[{id:y.NavItemIdKeys.LIFE_MOMENTS,items:e.lifeMoments},{id:y.NavItemIdKeys.TOPICS,items:e.topics}];for(let e of t){let t=L(e);if(t)for(let e of r){let r=e.items.findIndex(e=>L(e.href)===t);if(-1!==r)return C(e.id,r)}}},"getDesktopNavItemsV2",0,T,"getFooterLinksV2",0,R,"getMobileNavItemsV2",0,B],253354);var D=e.i(945547);async function U(e){if(!("object"!=typeof e||!e)){if("object"==typeof e&&e&&"headers"in e&&"ok"in e&&"json"in e&&"function"==typeof e.json&&"text"in e&&"function"==typeof e.json){let t=e.headers.get("Content-Type")?.toLowerCase();if(t?.startsWith("application/json")||t?.startsWith("application/health+json")){let t=await e.json();if(!e.ok)throw t;return"data"in t?t.data:t}if(t?.startsWith("text/html")||t?.startsWith("text/plain")){let t=await e.text();if(!e.ok)throw t;return t}return e}return"data"in e?e.data:e}}var j=async(e,t,r=globalThis.fetch)=>(t.headers="object"!=typeof t.headers||Array.isArray(t.headers)?{}:t.headers,r(e,t).then(e=>U(e).catch(t=>Promise.reject({errors:"object"==typeof t&&"errors"in t?t.errors:t,response:e})))),x={fetch:globalThis.fetch,WebSocket:globalThis.WebSocket,URL:globalThis.URL,logger:globalThis.console},F=(e,t={})=>{let r=t.globals?{...x,...t.globals}:x;return{globals:r,url:new r.URL(e),with(e){return{...this,...e(this)}}}},M=(e,t)=>{if(0===e.length)throw Error(t)},k=(e,t)=>{if(["directus_access","directus_activity","directus_collections","directus_fields","directus_files","directus_folders","directus_migrations","directus_permissions","directus_policies","directus_presets","directus_relations","directus_revisions","directus_roles","directus_sessions","directus_settings","directus_users","directus_webhooks","directus_dashboards","directus_panels","directus_notifications","directus_shares","directus_flows","directus_operations","directus_translations","directus_versions","directus_extensions"].includes(String(e)))throw Error(t)},K={},G=(e={})=>t=>{let r={...K,...e};return{async request(n){let o=n();if(o.headers||(o.headers={}),"Content-Type"in o.headers?"multipart/form-data"===o.headers["Content-Type"]&&delete o.headers["Content-Type"]:o.headers["Content-Type"]="application/json","getToken"in this&&!("Authorization"in o.headers)){let e=await this.getToken();e&&(o.headers.Authorization=`Bearer ${e}`)}let i=((e,t,r)=>{let n,o,i=new globalThis.URL("/"===e.pathname?t:(n=e.pathname,o=t,n.endsWith("/")&&(n=n.slice(0,-1)),o.startsWith("/")||(o="/"+o),n+o),e);if(r)for(let[e,t]of Object.entries((e=>{var t;let r,n={};for(let[o,i]of(Array.isArray(e.fields)&&e.fields.length>0&&(n.fields=(t=e.fields,r=(e,t=[])=>{if("object"==typeof e){let n=[];for(let o in e){let i=e[o]??[];if(Array.isArray(i))for(let e of i)n.push(r(e,[...t,o]));else if("object"==typeof i)for(let e of Object.keys(i))for(let s of i[e])n.push(r(s,[...t,`${o}:${e}`]))}return n.flatMap(e=>e)}return[...t,String(e)].join(".")},t.flatMap(e=>r(e))).join(",")),e.filter&&Object.keys(e.filter).length>0&&(n.filter=JSON.stringify(e.filter)),e.search&&(n.search=e.search),"sort"in e&&e.sort&&(n.sort="string"==typeof e.sort?e.sort:e.sort.join(",")),"number"==typeof e.limit&&e.limit>=-1&&(n.limit=String(e.limit)),"number"==typeof e.offset&&e.offset>=0&&(n.offset=String(e.offset)),"number"==typeof e.page&&e.page>=1&&(n.page=String(e.page)),e.deep&&Object.keys(e.deep).length>0&&(n.deep=JSON.stringify(e.deep)),e.alias&&Object.keys(e.alias).length>0&&(n.alias=JSON.stringify(e.alias)),e.aggregate&&Object.keys(e.aggregate).length>0&&(n.aggregate=JSON.stringify(e.aggregate)),e.groupBy&&e.groupBy.length>0&&(n.groupBy=e.groupBy.join(",")),Object.entries(e)))o in n||("string"==typeof i||"number"==typeof i||"boolean"==typeof i?n[o]=String(i):n[o]=JSON.stringify(i));return n})(r)))if(t&&"object"==typeof t&&!Array.isArray(t))for(let[r,n]of Object.entries(t))i.searchParams.set(`${e}[${r}]`,String(n));else i.searchParams.set(e,t);return i})(t.url,o.path,o.params),s={method:o.method??"GET",headers:o.headers??{}};"credentials"in r&&(s.credentials=r.credentials),o.body&&(s.body=o.body),o.onRequest&&(s=await o.onRequest(s)),r.onRequest&&(s=await r.onRequest(s));let a=await j(i.toString(),s,t.globals.fetch);return"onResponse"in o&&(a=await o.onResponse(a,s)),"onResponse"in e&&(a=await e.onResponse(a,s)),a}}};e.s(["createDirectus",0,F,"readItem",0,(e,t,r)=>()=>(M(String(e),"Collection cannot be empty"),k(e,"Cannot use readItem for core collections"),M(String(t),"Key cannot be empty"),{path:`/items/${e}/${t}`,params:r??{},method:"GET"}),"readItems",0,(e,t)=>()=>(M(String(e),"Collection cannot be empty"),k(e,"Cannot use readItems for core collections"),{path:`/items/${e}`,params:t??{},method:"GET"}),"rest",0,G],471276);var H=e.i(350461);function q(e,t){return function(){return e.apply(t,arguments)}}let{toString:W}=Object.prototype,{getPrototypeOf:V}=Object,{iterator:$,toStringTag:z}=Symbol,J=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),X=(e,t)=>{let r=e,n=[];for(;null!=r&&r!==Object.prototype&&-1===n.indexOf(r);){if(n.push(r),J(r,t))return!0;r=V(r)}return!1},Q=(t=Object.create(null),e=>{let r=W.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())}),Y=e=>(e=e.toLowerCase(),t=>Q(t)===e),Z=e=>t=>typeof t===e,{isArray:ee}=Array,et=Z("undefined");function er(e){return null!==e&&!et(e)&&null!==e.constructor&&!et(e.constructor)&&ei(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let en=Y("ArrayBuffer"),eo=Z("string"),ei=Z("function"),es=Z("number"),ea=e=>null!==e&&"object"==typeof e,el=e=>{if(!ea(e))return!1;let t=V(e);return(null===t||t===Object.prototype||null===V(t))&&!X(e,z)&&!X(e,$)},ec=Y("Date"),eu=Y("File"),ed=Y("Blob"),ef=Y("FileList"),ep="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:e.g,eh=void 0!==ep.FormData?ep.FormData:void 0,em=Y("URLSearchParams"),[eE,eg,e_,ey]=["ReadableStream","Request","Response","Headers"].map(Y);function eO(e,t,{allOwnKeys:r=!1}={}){let n,o;
1if(null!=e)if("object"!=typeof e&&(e=[e]),ee(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{let o;if(er(e))return;let i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;for(n=0;n<s;n++)o=i[n],t.call(null,e[o],o,e)}}function eb(e,t){let r;if(er(e))return null;t=t.toLowerCase();let n=Object.keys(e),o=n.length;for(;o-- >0;)if(t===(r=n[o]).toLowerCase())return r;return null}let eS="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:e.g,eA=e=>!et(e)&&e!==eS,eN=(r="u">typeof Uint8Array&&V(Uint8Array),e=>r&&e instanceof r),eR=Y("HTMLFormElement"),{propertyIsEnumerable:eI}=Object.prototype,ew=Y("RegExp"),eT=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};eO(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)},eC=Y("AsyncFunction"),ev=(i="function"==typeof setImmediate,s=ei(eS.postMessage),i?setImmediate:s?(a=`axios@${Math.random()}`,l=[],eS.addEventListener("message",({source:e,data:t})=>{e===eS&&t===a&&l.length&&l.shift()()},!1),e=>{l.push(e),eS.postMessage(a,"*")}):e=>setTimeout(e)),eP="u">typeof queueMicrotask?queueMicrotask.bind(eS):void 0!==H.default&&H.default.nextTick||ev,eL=e=>null!=e&&ei(e[$]),eB={isArray:ee,isArrayBuffer:en,isBuffer:er,isFormData:e=>{if(!e)return!1;if(eh&&e instanceof eh)return!0;let t=V(e);if(!t||t===Object.prototype||!ei(e.append))return!1;let r=Q(e);return"formdata"===r||"object"===r&&ei(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&en(e.buffer)},isString:eo,isNumber:es,isBoolean:e=>!0===e||!1===e,isObject:ea,isPlainObject:el,isEmptyObject:e=>{if(!ea(e)||er(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:eE,isRequest:eg,isResponse:e_,isHeaders:ey,isUndefined:et,isDate:ec,isFile:eu,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:ed,isRegExp:ew,isFunction:ei,isStream:e=>ea(e)&&ei(e.pipe),isURLSearchParams:em,isTypedArray:eN,isFileList:ef,forEach:eO,merge:function e(...t){let{caseless:r,skipUndefined:n}=eA(this)&&this||{},o={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;let s=r&&"string"==typeof i&&eb(o,i)||i,a=J(o,s)?o[s]:void 0;el(a)&&el(t)?o[s]=e(a,t):el(t)?o[s]=e({},t):ee(t)?o[s]=t.slice():n&&et(t)||(o[s]=t)};for(let e=0,r=t.length;e<r;e++){let r=t[e];if(!r||er(r)||(eO(r,i),"object"!=typeof r||ee(r)))continue;let n=Object.getOwnPropertySymbols(r);for(let e=0;e<n.length;e++){let t=n[e];eI.call(r,t)&&i(r[t],t)}}return o},extend:(e,t,r,{allOwnKeys:n}={})=>(eO(t,(t,n)=>{r&&ei(t)?Object.defineProperty(e,n,{__proto__:null,value:q(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,s,a={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=!1!==r&&V(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype)return t},kindOf:Q,kindOfTest:Y,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(ee(e))return e;let t=e.length;if(!es(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r,n=(e&&e[$]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r,n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:eR,hasOwnProperty:J,hasOwnProp:J,hasOwnInPrototypeChain:X,getSafeProp:(e,t)=>null!=e&&X(e,t)?e[t]:void 0,reduceDescriptors:eT,freezeMethods:e=>{eT(e,(t,r)=>{if(ei(e)&&["arguments","caller","callee"].includes(r))return!1;if(ei(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};
1return(ee(e)?e:String(e).split(t)).forEach(e=>{r[e]=!0}),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:eb,global:eS,isContextDefined:eA,isSpecCompliantForm:function(e){return!!(e&&ei(e.append)&&"FormData"===e[z]&&e[$])},toJSONObject:e=>{let t=new WeakSet,r=e=>{if(ea(e)){if(t.has(e))return;if(er(e))return e;if(!("toJSON"in e)){t.add(e);let n=ee(e)?[]:{};return eO(e,(e,t)=>{let o=r(e);et(o)||(n[t]=o)}),t.delete(e),n}}return e};return r(e)},isAsyncFn:eC,isThenable:e=>e&&(ea(e)||ei(e))&&ei(e.then)&&ei(e.catch),setImmediate:ev,asap:eP,isIterable:eL,isSafeIterable:e=>null!=e&&X(e,$)&&eL(e)};var eD=e.i(221168);let eU=eB.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ej=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ex=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function eF(e,t){return eB.isArray(e)?e.map(e=>eF(e,t)):function(e){let t=0,r=e.length;for(;t<r;){let r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;r>t;){let t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}(String(e).replace(t,""))}function eM(e){let t=Object.create(null);return eB.forEach(e.toJSON(),(e,r)=>{t[r]=eF(e,ex)}),t}let ek=Symbol("internals");function eK(e){return e&&String(e).trim().toLowerCase()}function eG(e){return!1===e||null==e?e:eB.isArray(e)?e.map(eG):eF(String(e),ej)}function eH(e,t,r,n,o){if(eB.isFunction(n))return n.call(this,t,r);if(o&&(t=r),eB.isString(t)){if(eB.isString(n))return -1!==t.indexOf(n);if(eB.isRegExp(n))return n.test(t)}}class eq{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function o(e,t,r){let o=eK(t);if(!o)return;let i=eB.findKey(n,o);i&&void 0!==n[i]&&!0!==r&&(void 0!==r||!1===n[i])||(n[i||t]=eG(e))}let i=(e,t)=>eB.forEach(e,(e,r)=>o(e,r,t));if(eB.isPlainObject(e)||e instanceof this.constructor)i(e,t);else{let n;if(eB.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))){var s;let r,n,o,a;i((a={},(s=e)&&s.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||a[r]&&eU[r]||("set-cookie"===r?a[r]?a[r].push(n):a[r]=[n]:a[r]=a[r]?a[r]+", "+n:n)}),a),t)}else if(eB.isObject(e)&&eB.isSafeIterable(e)){let r=Object.create(null),n,o;for(let t of e){if(!eB.isArray(t))throw TypeError("Object iterator must return a key-value pair");o=t[0],eB.hasOwnProp(r,o)?(n=r[o],r[o]=eB.isArray(n)?[...n,t[1]]:[n,t[1]]):r[o]=t[1]}i(r,t)}else null!=e&&o(t,e,r)}return this}get(e,t){if(e=eK(e)){let r=eB.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t){let t,r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1for(;t=n.exec(e);)r[t[1]]=t[2];return r}if(eB.isFunction(t))return t.call(this,e,r);if(eB.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eK(e)){let r=eB.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||eH(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function o(e){if(e=eK(e)){let o=eB.findKey(r,e);o&&(!t||eH(r,r[o],o,t))&&(delete r[o],n=!0)}}return eB.isArray(e)?e.forEach(o):o(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let o=t[r];(!e||eH(this,this[o],o,e,!0))&&(delete this[o],n=!0)}return n}normalize(e){let t=this,r={};return eB.forEach(this,(n,o)=>{let i=eB.findKey(r,o);if(i){t[i]=eG(n),delete t[o];return}let s=e?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(o).trim();s!==o&&delete t[o],t[s]=eG(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return eB.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&eB.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[ek]=this[ek]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=eK(e);if(!t[n]){let o;o=eB.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(r,t+o,{__proto__:null,value:function(r,n,o){return this[t].call(this,e,r,n,o)},configurable:!0})}),t[n]=!0}}return eB.isArray(e)?e.forEach(n):n(e),this}}eq.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),eB.reduceDescriptors(eq.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),eB.freezeMethods(eq);class eW extends Error{static from(e,t,r,n,o,i){let s=new eW(e.message,t||e.code,r,n,o);return Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),i&&Object.assign(s,i),s}constructor(e,t,r,n,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status)}toJSON(){let e,t,r,n=this.config,o=n&&eB.hasOwnProp(n,"redact")?n.redact:void 0,i=eB.isArray(o)&&o.length>0?(e=new Set(o.map(e=>String(e).toLowerCase())),t=[],(r=n=>{let o;if(null===n||"object"!=typeof n||eB.isBuffer(n))return n;if(-1===t.indexOf(n)){if(n instanceof eq&&(n=n.toJSON()),t.push(n),eB.isArray(n))o=[],n.forEach((e,t)=>{let n=r(e);eB.isUndefined(n)||(o[t]=n)});else{if(!eB.isPlainObject(n)&&function(e){if(eB.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(eB.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(n))return t.pop(),n;for(let[t,i]of(o=Object.create(null),Object.entries(n))){let n=e.has(t.toLowerCase())?"[REDACTED ****]":r(i);eB.isUndefined(n)||(o[t]=n)}}return t.pop(),o}})(n)):eB.toJSONObject(n);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:i,code:this.code,status:this.status}}}eW.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",eW.ERR_BAD_OPTION="ERR_BAD_OPTION",eW.ECONNABORTED="ECONNABORTED",eW.ETIMEDOUT="ETIMEDOUT",eW.ECONNREFUSED="ECONNREFUSED",eW.ERR_NETWORK="ERR_NETWORK",eW.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",eW.ERR_DEPRECATED="ERR_DEPRECATED",eW.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",eW.ERR_BAD_REQUEST="ERR_BAD_REQUEST",eW.ERR_CANCELED="ERR_CANCELED",eW.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",eW.ERR_INVALID_URL="ERR_INVALID_URL",eW.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let eV=eW;function e$(e){return eB.isPlainObject(e)||eB.isArray(e)}function ez(e){return eB.endsWith(e,"[]")?e.slice(0,-2):e}function eJ(e,t,r){return e?e.concat(t).map(function(e,t){return e=ez(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let eX=eB.toFlatObject(eB,{},null,function(e){return/^is[A-Z]/.test(e)}),eQ=function(e,t,r){if(!eB.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(r=eB.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!eB.isUndefined(t[e])})).metaTokens,o=r.visitor||p,i=r.dots,s=r.indexes,a=r.Blob||"u">typeof Blob&&Blob,l=void 0===r.maxDepth?100:r.maxDepth,c=a&&eB.isSpecCompliantForm(t),u=[];
1if(!eB.isFunction(o))throw TypeError("visitor must be a function");function d(e){if(null===e)return"";if(eB.isDate(e))return e.toISOString();if(eB.isBoolean(e))return e.toString();if(!c&&eB.isBlob(e))throw new eV("Blob is not supported. Use a Buffer instead.");if(eB.isArrayBuffer(e)||eB.isTypedArray(e)){if(c&&"function"==typeof a)return new a([e]);if(void 0!==eD.Buffer)return eD.Buffer.from(e);throw new eV("Blob is not supported. Use a Buffer instead.",eV.ERR_NOT_SUPPORT)}return e}function f(e){if(e>l)throw new eV("Object is too deeply nested ("+e+" levels). Max depth: "+l,eV.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,r,o){let a=e;if(eB.isReactNative(t)&&eB.isReactNativeBlob(e))return t.append(eJ(o,r,i),d(e)),!1;if(e&&!o&&"object"==typeof e)if(eB.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=function(e){if(l===1/0)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,r){if(!eB.isObject(r))return r;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(r),f(1+t.length-1),r})}(e);else{var c;if(eB.isArray(e)&&(c=e,eB.isArray(c)&&!c.some(e$))||(eB.isFileList(e)||eB.endsWith(r,"[]"))&&(a=eB.toArray(e)))return r=ez(r),a.forEach(function(e,n){eB.isUndefined(e)||null===e||t.append(!0===s?eJ([r],n,i):null===s?r:r+"[]",d(e))}),!1}return!!e$(e)||(t.append(eJ(o,r,i),d(e)),!1)}let h=Object.assign(eX,{defaultVisitor:p,convertValue:d,isVisitable:e$});if(!eB.isObject(e))throw TypeError("data must be an object");return!function e(r,n,i=0){if(!eB.isUndefined(r)){if(f(i),-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),eB.forEach(r,function(r,s){!0===(!(eB.isUndefined(r)||null===r)&&o.call(t,r,eB.isString(s)?s.trim():s,n,h))&&e(r,n?n.concat(s):[s],i+1)}),u.pop()}}(e),t};function eY(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function eZ(e,t){this._pairs=[],e&&eQ(e,this,t)}let e0=eZ.prototype;function e1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function e2(e,t,r){let n;if(!t)return e;e=e||"";let o=eB.isFunction(r)?{serialize:r}:r,i=eB.getSafeProp(o,"encode")||e1,s=eB.getSafeProp(o,"serialize");if(n=s?s(t,o):eB.isURLSearchParams(t)?t.toString():new eZ(t,o).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}e0.append=function(e,t){this._pairs.push([e,t])},e0.toString=function(e){let t=e?t=>e.call(this,t,eY):eY;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let e3=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){eB.forEach(this.handlers,function(t){null!==t&&e(t)})}},e5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},e4="u">typeof URLSearchParams?URLSearchParams:eZ,e6="u">typeof FormData?FormData:null,e8="u">typeof Blob?Blob:null,e9="u">typeof window&&"u">typeof document,e7="object"==typeof navigator&&navigator||void 0,te=e9&&(!e7||0>["ReactNative","NativeScript","NS"].indexOf(e7.product)),tt="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,tr=e9&&window.location.href||"http://localhost";e.s(["hasBrowserEnv",0,e9,"hasStandardBrowserEnv",0,te,"hasStandardBrowserWebWorkerEnv",0,tt,"navigator",0,e7,"origin",0,tr],438358);let tn={...e.i(438358),isBrowser:!0,classes:{URLSearchParams:e4,FormData:e6,Blob:e8},protocols:["http","https","file","blob","url","data"]};function to(e){if(e>100)throw new eV("FormData field is too deeply nested ("+e+" levels). Max depth: 100",eV.ERR_FORM_DATA_DEPTH_EXCEEDED)}let ti=function(e){if(eB.isFormData(e)&&eB.isFunction(e.entries)){let t={};return eB.forEachEntry(e,(e,r)=>{!function e(t,r,n,o){to(o);let i=t[o++];if("__proto__"===i)return!0;let s=Number.isFinite(+i),a=o>=t.length;return(i=!i&&eB.isArray(n)?n.length:i,a)?eB.hasOwnProp(n,i)?n[i]=eB.isArray(n[i])?n[i].concat(r):[n[i],r]:n[i]=r:(eB.hasOwnProp(n,i)&&eB.isObject(n[i])||(n[i]=[]),e(t,r,n[i],o)&&eB.isArray(n[i])&&(n[i]=function(e){let t,r,n={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)n[r=o[t]]=e[r];return n}(n[i]))),!s}(function(e){let t,r=[],n=/\w+|\[(\w*)]/g;for(;null!==(t=n.exec(e));)to(r.length),r.push("[]"===t[0]?"":t[1]||t[0]);return r}(e),r,t,0)}),t}return null},ts=(e,t)=>null!=e&&eB.hasOwnProp(e,t)?e[t]:void 0,ta={transitional:e5,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r,n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=eB.isObject(e);
1if(i&&eB.isHTMLForm(e)&&(e=new FormData(e)),eB.isFormData(e))return o?JSON.stringify(ti(e)):e;if(eB.isArrayBuffer(e)||eB.isBuffer(e)||eB.isStream(e)||eB.isFile(e)||eB.isBlob(e)||eB.isReadableStream(e))return e;if(eB.isArrayBufferView(e))return e.buffer;if(eB.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){let t=ts(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return eQ(e,new tn.classes.URLSearchParams,{visitor:function(e,t,r,n){return tn.isNode&&eB.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t}).toString();if((r=eB.isFileList(e))||n.indexOf("multipart/form-data")>-1){let n=ts(this,"env"),o=n&&n.FormData;return eQ(r?{"files[]":e}:e,o&&new o,t)}}if(i||o){t.setContentType("application/json",!1);var s=e;if(eB.isString(s))try{return(0,JSON.parse)(s),eB.trim(s)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(s)}return e}],transformResponse:[function(e){let t=ts(this,"transitional")||ta.transitional,r=t&&t.forcedJSONParsing,n=ts(this,"responseType"),o="json"===n;if(eB.isResponse(e)||eB.isReadableStream(e))return e;if(e&&eB.isString(e)&&(r&&!n||o)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e,ts(this,"parseReviver"))}catch(e){if(!r&&o){if("SyntaxError"===e.name)throw eV.from(e,eV.ERR_BAD_RESPONSE,this,null,ts(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tn.classes.FormData,Blob:tn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function tl(e,t){let r=this||ta,n=t||r,o=eq.from(n.headers),i=n.data;return eB.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function tc(e){return!!(e&&e.__CANCEL__)}eB.forEach(["delete","get","head","post","put","patch","query"],e=>{ta.headers[e]={}});let tu=class extends eV{constructor(e,t,r){super(null==e?"canceled":e,eV.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function td(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new eV("Request failed with status code "+r.status,r.status>=400&&r.status<500?eV.ERR_BAD_REQUEST:eV.ERR_BAD_RESPONSE,r.config,r.request,r))}let tf=function(e,t){let r,n=Array(e=e||10),o=Array(e),i=0,s=0;return t=void 0!==t?t:1e3,function(a){let l=Date.now(),c=o[s];r||(r=l),n[i]=a,o[i]=l;let u=s,d=0;for(;u!==i;)d+=n[u++],u%=e;if((i=(i+1)%e)===s&&(s=(s+1)%e),l-r<t)return;let f=c&&l-c;return f?Math.round(1e3*d/f):void 0}},tp=function(e,t){let r,n,o=0,i=1e3/t,s=(t,i=Date.now())=>{o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),a=t-o;a>=i?s(e,t):(r=e,n||(n=setTimeout(()=>{n=null,s(r)},i-a)))},()=>r&&s(r)]},th=(e,t,r=3)=>{let n=0,o=tf(50,250);return tp(r=>{if(!r||"number"!=typeof r.loaded)return;let i=r.loaded,s=r.lengthComputable?r.total:void 0,a=null!=s?Math.min(i,s):i,l=Math.max(0,a-n),c=o(l);n=Math.max(n,a),e({loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s?(s-a)/c:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},tm=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},tE=e=>(...t)=>eB.asap(()=>e(...t)),tg=tn.hasStandardBrowserEnv?(n=new URL(tn.origin),o=tn.navigator&&/(msie|trident)/i.test(tn.navigator.userAgent),e=>(e=new URL(e,tn.origin),n.protocol===e.protocol&&n.host===e.host&&(o||n.port===e.port))):()=>!0,t_=tn.hasStandardBrowserEnv?{write(e,t,r,n,o,i,s){if("u"<typeof document)return;let a=[`${e}=${encodeURIComponent(t)}`];eB.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),eB.isString(n)&&a.push(`path=${n}`),eB.isString(o)&&a.push(`domain=${o}`),!0===i&&a.push("secure"),eB.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let r=0;r<t.length;r++){let n=t[r].replace(/^\s+/,""),o=n.indexOf("=");if(-1!==o&&n.slice(0,o)===e)try{return decodeURIComponent(n.slice(o+1))}catch(e){return n.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},ty=/^https?:(?!\/\/)/i,tO=/[\t\n\r]/g;function tb(e,t){if("string"==typeof e&&ty.test((function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)})(e).replace(tO,"")))throw new eV('Invalid URL: missing "//" after protocol',eV.ERR_INVALID_URL,t)}function tS(e,t,r,n){tb(t,n);let o=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(o||!1===r)?(tb(e,n),t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e):t}let tA=e=>e instanceof eq?{...e}:e;function tN(e,t){e=e||{},t=t||{};let r=Object.create(null);function n(e,t,r,n){return eB.isPlainObject(e)&&eB.isPlainObject(t)?eB.merge.call({caseless:n},e,t):eB.isPlainObject(t)?eB.merge({},t):eB.isArray(t)?t.slice():t}function o(e,t,r,o){return eB.isUndefined(t)?eB.isUndefined(e)?void 0:n(void 0,e,r,o):n(e,t,r,o)}function i(e,t){if(!eB.isUndefined(t))return n(void 0,t)}function s(e,t){return eB.isUndefined(t)?eB.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,i){return eB.hasOwnProp(t,i)?n(r,o):eB.hasOwnProp(e,i)?n(void 0,r):void 0}Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:a,headers:(e,t,r)=>
1o(tA(e),tA(t),r,!0)};return eB.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let i=eB.hasOwnProp(l,n)?l[n]:o,s=i(eB.hasOwnProp(e,n)?e[n]:void 0,eB.hasOwnProp(t,n)?t[n]:void 0,n);eB.isUndefined(s)&&i!==a||(r[n]=s)}),eB.hasOwnProp(t,"validateStatus")&&eB.isUndefined(t.validateStatus)&&!1===function(r){let n=eB.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!eB.isUndefined(n)){if(!eB.isPlainObject(n))return;else if(eB.hasOwnProp(n,r))return n[r]}let o=eB.hasOwnProp(e,"transitional")?e.transitional:void 0;if(eB.isPlainObject(o)&&eB.hasOwnProp(o,r))return o[r]}("validateStatusUndefinedResolves")&&(eB.hasOwnProp(e,"validateStatus")?r.validateStatus=n(void 0,e.validateStatus):delete r.validateStatus),r}let tR=["content-type","content-length"],tI=function(e){let t=tN({},e),r=e=>eB.hasOwnProp(t,e)?t[e]:void 0,n=r("data"),o=r("withXSRFToken"),i=r("xsrfHeaderName"),s=r("xsrfCookieName"),a=r("headers"),l=r("auth"),c=r("baseURL"),u=r("allowAbsoluteUrls"),d=r("url");if(t.headers=a=eq.from(a),t.url=e2(tS(c,d,u,t),r("params"),r("paramsSerializer")),l){let t=eB.getSafeProp(l,"username")||"",r=eB.getSafeProp(l,"password")||"";try{a.set("Authorization","Basic "+btoa(t+":"+(r?encodeURIComponent(r).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw eV.from(t,eV.ERR_BAD_OPTION_VALUE,e)}}if(eB.isFormData(n))if(tn.hasStandardBrowserEnv||tn.hasStandardBrowserWebWorkerEnv||eB.isReactNative(n))a.setContentType(void 0);else{var f,p;eB.isFunction(n.getHeaders)&&(f=a,p=n.getHeaders(),"content-only"!==r("formDataHeaderPolicy")?f.set(p):Object.entries(p||{}).forEach(([e,t])=>{tR.includes(e.toLowerCase())&&f.set(e,t)}))}if(tn.hasStandardBrowserEnv&&(eB.isFunction(o)&&(o=o(t)),!0===o||null==o&&tg(t.url))){let e=i&&s&&t_.read(s);e&&a.set(i,e)}return t},tw="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){var n;let o,i,s,a,l,c,u=tI(e),d=u.data,f=eq.from(u.headers).normalize(),{responseType:p,onUploadProgress:h,onDownloadProgress:m}=u;function E(){a&&a(),l&&l(),u.cancelToken&&u.cancelToken.unsubscribe(o),u.signal&&u.signal.removeEventListener("abort",o)}let g=new XMLHttpRequest;function _(){if(!g)return;let n=eq.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());td(function(e){t(e),E()},function(e){r(e),E()},{data:p&&"text"!==p&&"json"!==p?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:e,request:g}),g=null}g.open(u.method.toUpperCase(),u.url,!0),g.timeout=u.timeout,"onloadend"in g?g.onloadend=_:g.onreadystatechange=function(){!g||4!==g.readyState||(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(_)},g.onabort=function(){g&&(r(new eV("Request aborted",eV.ECONNABORTED,e,g)),E(),g=null)},g.onerror=function(t){let n=new eV(t&&t.message?t.message:"Network Error",eV.ERR_NETWORK,e,g);n.event=t||null,r(n),E(),g=null},g.ontimeout=function(){let t=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",n=u.transitional||e5;u.timeoutErrorMessage&&(t=u.timeoutErrorMessage),r(new eV(t,n.clarifyTimeoutError?eV.ETIMEDOUT:eV.ECONNABORTED,e,g)),E(),g=null},void 0===d&&f.setContentType(null),"setRequestHeader"in g&&eB.forEach(eM(f),function(e,t){g.setRequestHeader(t,e)}),eB.isUndefined(u.withCredentials)||(g.withCredentials=!!u.withCredentials),p&&"json"!==p&&(g.responseType=u.responseType),m&&([s,l]=th(m,!0),g.addEventListener("progress",s)),h&&g.upload&&([i,a]=th(h),g.upload.addEventListener("progress",i),g.upload.addEventListener("loadend",a)),(u.cancelToken||u.signal)&&(o=t=>{g&&(r(!t||t.type?new tu(null,e,g):t),g.abort(),E(),g=null)},u.cancelToken&&u.cancelToken.subscribe(o),u.signal&&(u.signal.aborted?o():u.signal.addEventListener("abort",o))
1);let y=(n=u.url,(c=/^([-+\w]{1,25}):(?:\/\/)?/.exec(n))&&c[1]||"");if(y&&!tn.protocols.includes(y)){r(new eV("Unsupported protocol "+y+":",eV.ERR_BAD_REQUEST,e)),E();return}g.send(d||null)})},tT=function*(e,t){let r,n=e.byteLength;if(!t||n<t)return void(yield e);let o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},tC=async function*(e,t){for await(let r of tv(e))yield*tT(r,t)},tv=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},tP=(e,t,r,n)=>{let o,i=tC(e,t),s=0,a=e=>{!o&&(o=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await i.next();if(t){a(),e.close();return}let o=n.byteLength;if(r){let e=s+=o;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),i.return())},{highWaterMark:2})},tL=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,tB=(e,t,r)=>t+2<r&&tL(e.charCodeAt(t+1))&&tL(e.charCodeAt(t+2)),tD="1.18.1",{isFunction:tU}=eB,tj=e=>{if(!eB.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},tx=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},tF=e=>{let t,r=void 0!==eB.global&&null!==eB.global?eB.global:globalThis,{ReadableStream:n,TextEncoder:o}=r,{fetch:i,Request:s,Response:a}=e=eB.merge.call({skipUndefined:!0},{Request:r.Request,Response:r.Response},e),l=i?tU(i):"function"==typeof fetch,c=tU(s),u=tU(a);if(!l)return!1;let d=l&&tU(n),f=l&&("function"==typeof o?(t=new o,e=>t.encode(e)):async e=>new Uint8Array(await new s(e).arrayBuffer())),p=c&&d&&tx(()=>{let e=!1,t=new s(tn.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),h=u&&d&&tx(()=>eB.isReadableStream(new a("").body)),m={stream:h&&(e=>e.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{m[e]||(m[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new eV(`Response type '${e}' is not supported`,eV.ERR_NOT_SUPPORT,r)})});let E=async e=>{if(null==e)return 0;if(eB.isBlob(e))return e.size;if(eB.isSpecCompliantForm(e)){let t=new s(tn.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return eB.isArrayBufferView(e)||eB.isArrayBuffer(e)?e.byteLength:(eB.isURLSearchParams(e)&&(e+=""),eB.isString(e))?(await f(e)).byteLength:void 0},g=async(e,t)=>{let r=eB.toFiniteNumber(e.getContentLength());return null==r?E(t):r};return async e=>{let t,{url:r,method:n,data:l,signal:u,cancelToken:f,timeout:_,onDownloadProgress:y,onUploadProgress:O,responseType:b,headers:S,withCredentials:A="same-origin",fetchOptions:N,maxContentLength:R,maxBodyLength:I}=tI(e),w=eB.isNumber(R)&&R>-1,T=eB.isNumber(I)&&I>-1,C=i||fetch;b=b?(b+"").toLowerCase():"text";let v=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let r=new AbortController,n=!1,o=function(e){if(!n){n=!0,s();let t=e instanceof Error?e:this.reason;r.abort(t instanceof eV?t:new tu(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{i=null,o(new eV(`timeout of ${t}ms exceeded`,eV.ETIMEDOUT))},t),s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o,{once:!0}));let{signal:a}=r;return a.unsubscribe=()=>eB.asap(s),a})([u,f&&f.toAbortSignal()],_),P=null,L=v&&v.unsubscribe&&(()=>{v.unsubscribe()}),B=null,D=()=>new eV("Request body larger than maxBodyLength limit",eV.ERR_BAD_REQUEST,e,P);try{var U;let i,u,f,_,j=(u="auth",eB.hasOwnProp(e,u)?e[u]:void 0);if(j){let e=eB.getSafeProp(j,"username")||"",t=eB.getSafeProp(j,"password")||"";i={username:e,password:t}}if(f=(U=r).indexOf("://"),_=U,-1!==f&&(_=_.slice(f+3)),_.includes("@")||_.includes(":")){let e=new URL(r,tn.origin);if(!i&&(e.username||e.password)){let t=tj(e.username),r=tj(e.password);i={username:t,password:r}}(e.username||e.password)&&(e.username="",e.password="",r=e.href)}if(i){let e;S.delete("authorization"),S.set("Authorization","Basic "+btoa((e=(i.username||"")+":"+(i.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>
1String.fromCharCode(parseInt(t,16))))))}if(w&&"string"==typeof r&&r.startsWith("data:")&&function(e){if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let r=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(r)){let e=n.length,t=n.length;for(let r=0;r<t;r++)if(37===n.charCodeAt(r)&&r+2<t){let t=n.charCodeAt(r+1),o=n.charCodeAt(r+2);tL(t)&&tL(o)&&(e-=2,r+=2)}let r=0,o=t-1,i=e=>e>=2&&37===n.charCodeAt(e-2)&&51===n.charCodeAt(e-1)&&(68===n.charCodeAt(e)||100===n.charCodeAt(e));o>=0&&(61===n.charCodeAt(o)?(r++,o--):i(o)&&(r++,o-=3)),1===r&&o>=0&&(61===n.charCodeAt(o)?r++:i(o)&&r++);let s=3*Math.floor(e/4)-(r||0);return s>0?s:0}let o=0;for(let e=0,t=n.length;e<t;e++){let r=n.charCodeAt(e);if(37===r&&tB(n,e,t))o+=1,e+=2;else if(r<128)o+=1;else if(r<2048)o+=2;else if(r>=55296&&r<=56319&&e+1<t){let t=n.charCodeAt(e+1);t>=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o}(r)>R)throw new eV("maxContentLength size of "+R+" exceeded",eV.ERR_BAD_RESPONSE,e,P);if(T&&"get"!==n&&"head"!==n){let e=await E(l);if("number"==typeof e&&isFinite(e)&&(t=e,e>I))throw D()}let x=T&&(eB.isReadableStream(l)||eB.isStream(l)),F=(e,t,r)=>tP(e,65536,e=>{if(T&&e>I)throw B=D();t&&t(e)},r);if(p&&"get"!==n&&"head"!==n&&(O||x)){if(t=null==t?await g(S,l):t,0!==t||x){let e,n=new s(r,{method:"POST",body:l,duplex:"half"});if(eB.isFormData(l)&&(e=n.headers.get("content-type"))&&S.setContentType(e),n.body){let[e,r]=O&&tm(t,th(tE(O)))||[];l=F(n.body,e,r)}}}else if(x&&!c&&d&&"get"!==n&&"head"!==n)l=F(l);else if(x&&c&&!p&&"get"!==n&&"head"!==n)throw new eV("Stream request bodies are not supported by the current fetch implementation",eV.ERR_NOT_SUPPORT,e,P);eB.isString(A)||(A=A?"include":"omit");let M=c&&"credentials"in s.prototype;if(eB.isFormData(l)){let e=S.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&S.delete("content-type")}S.set("User-Agent","axios/"+tD,!1);let k={...N,signal:v,method:n.toUpperCase(),headers:eM(S.normalize()),body:l,duplex:"half",credentials:M?A:void 0};P=c&&new s(r,k);let K=await (c?C(P,N):C(r,k)),G=eq.from(K.headers);if(w){let t=eB.toFiniteNumber(G.getContentLength());if(null!=t&&t>R)throw new eV("maxContentLength size of "+R+" exceeded",eV.ERR_BAD_RESPONSE,e,P)}let H=h&&("stream"===b||"response"===b);if(h&&K.body&&(y||w||H&&L)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=K[e]});let r=eB.toFiniteNumber(G.getContentLength()),[n,o]=y&&tm(r,th(tE(y),!0))||[];K=new a(tP(K.body,65536,t=>{if(w&&t>R)throw new eV("maxContentLength size of "+R+" exceeded",eV.ERR_BAD_RESPONSE,e,P);n&&n(t)},()=>{o&&o(),L&&L()}),t)}b=b||"text";let q=await m[eB.findKey(m,b)||"text"](K,e);if(w&&!h&&!H){let t;if(null!=q&&("number"==typeof q.byteLength?t=q.byteLength:"number"==typeof q.size?t=q.size:"string"==typeof q&&(t="function"==typeof o?new o().encode(q).byteLength:q.length)),"number"==typeof t&&t>R)throw new eV("maxContentLength size of "+R+" exceeded",eV.ERR_BAD_RESPONSE,e,P)}return!H&&L&&L(),await new Promise((t,r)=>{td(t,r,{data:q,headers:eq.from(K.headers),status:K.status,statusText:K.statusText,config:e,request:P})})}catch(t){if(L&&L(),v&&v.aborted&&v.reason instanceof eV){let r=v.reason;throw r.config=e,P&&(r.request=P),t!==r&&Object.defineProperty(r,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),r}if(B)throw P&&!B.request&&(B.request=P),B;if(t instanceof eV)throw P&&!t.request&&(t.request=P),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let r=new eV("Network Error",eV.ERR_NETWORK,e,P,t&&t.response);throw Object.defineProperty(r,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),r}throw eV.from(t,t&&t.code,e,P,t&&t.response)}}},tM=new Map,tk=e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:o}=t,i=[n,o,r],s=i.length,a,l,c=tM;for(;s--;)a=i[s],void 0===(l=c.get(a))&&c.set(a,l=s?new Map:tF(t)),c=l;return l};tk();let tK={http:null,xhr:tw,fetch:{get:tk}};eB.forEach(tK,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let tG=e=>`- ${e}`,tH=e=>eB.isFunction(e)||null===e||!1===e,tq=function(e,t){let r,n,{length:o}=e=eB.isArray(e)?e:[e],i={};for(let s=0;s<o;s++){let o;if(n=r=e[s],!tH(r)&&void 0===(n=tK[(o=String(r)).toLowerCase()]))throw new eV(`Unknown adapter '${o}'`);if(n&&(eB.isFunction(n)||(n=n.get(t))))break;i[o||"#"+s]=n}if(!n){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new eV("There is no suitable adapter to dispatch the request "+(o?e.length>
11?"since :\n"+e.map(tG).join("\n"):" "+tG(e[0]):"as no adapter specified"),eV.ERR_NOT_SUPPORT)}return n};function tW(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new tu(null,e)}function tV(e){return tW(e),e.headers=eq.from(e.headers),e.data=tl.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tq(e.adapter||ta.adapter,e)(e).then(function(t){tW(e),e.response=t;try{t.data=tl.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=eq.from(t.headers),t},function(t){if(!tc(t)&&(tW(e),t&&t.response)){e.response=t.response;try{t.response.data=tl.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=eq.from(t.response.headers)}return Promise.reject(t)})}let t$={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{t$[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let tz={};t$.transitional=function(e,t,r){function n(e,t){return"[Axios v"+tD+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new eV(n(o," has been removed"+(t?" in "+t:"")),eV.ERR_DEPRECATED);return t&&!tz[o]&&(tz[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},t$.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};let tJ=function(e,t,r){if("object"!=typeof e||null===e)throw new eV("options must be an object",eV.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),o=n.length;for(;o-- >0;){let i=n[o],s=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(s){let t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new eV("option "+i+" must be "+r,eV.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new eV("Unknown option "+i,eV.ERR_BAD_OPTION)}};class tX{constructor(e){this.defaults=e||{},this.interceptors={request:new e3,response:new e3}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(r){let t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),o=-1===n?"":r.slice(n+1);String(e.stack).endsWith(o)||(e.stack+="\n"+r)}}else e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:o,paramsSerializer:i,headers:s}=t=tN(this.defaults,t);void 0!==o&&tJ(o,{silentJSONParsing:t$.transitional(t$.boolean),forcedJSONParsing:t$.transitional(t$.boolean),clarifyTimeoutError:t$.transitional(t$.boolean),legacyInterceptorReqResOrdering:t$.transitional(t$.boolean),advertiseZstdAcceptEncoding:t$.transitional(t$.boolean),validateStatusUndefinedResolves:t$.transitional(t$.boolean)},!1),null!=i&&(eB.isFunction(i)?t.paramsSerializer={serialize:i}:tJ(i,{encode:t$.function,serialize:t$.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tJ(t,{baseUrl:t$.spelling("baseURL"),withXsrfToken:t$.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=s&&eB.merge(s.common,s[t.method]);s&&eB.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete s[e]}),t.headers=eq.concat(a,s);let l=[],c=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;c=c&&e.synchronous;let r=t.transitional||e5;r&&r.legacyInterceptorReqResOrdering?l.unshift(e.fulfilled,e.rejected):l.push(e.fulfilled,e.rejected)});let u=[];this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let d=0;if(!c){let e=[tV.bind(this),void 0];for(e.unshift(...l),e.push(...u),n=e.length,r=Promise.resolve(t);d<n;)r=r.then(e[d++],e[d++]);return r}n=l.length;let f=t;for(;d<n;){let e=l[d++],t=l[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{r=tV.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,n=u.length;d<n;)r=r.then(u[d++],u[d++]);return r}getUri(e){return e2(tS((e=tN(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}eB.forEach(["delete","get","head","options"],function(e){tX.prototype[e]=function(t,r){return this.request(tN(r||{},{method:e,url:t,data:r&&eB.hasOwnProp(r,"data")?r.data:void 0}))}}),eB.forEach(["post","put","patch","query"],function(e){function t(t){return function(r,n,o){return this.request(tN(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}tX.prototype[e]=t(),"query"!==e&&(tX.prototype[e+"Form"]=t(!0))});class tQ{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new tu(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
1subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tQ(function(t){e=t}),cancel:e}}}let tY={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(tY).forEach(([e,t])=>{tY[t]=e});let tZ=function e(t){let r=new tX(t),n=q(tX.prototype.request,r);return eB.extend(n,tX.prototype,r,{allOwnKeys:!0}),eB.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(tN(t,r))},n}(ta);tZ.Axios=tX,tZ.CanceledError=tu,tZ.CancelToken=tQ,tZ.isCancel=tc,tZ.VERSION=tD,tZ.toFormData=eQ,tZ.AxiosError=eV,tZ.Cancel=tZ.CanceledError,tZ.all=function(e){return Promise.all(e)},tZ.spread=function(e){return function(t){return e.apply(null,t)}},tZ.isAxiosError=function(e){return eB.isObject(e)&&!0===e.isAxiosError},tZ.mergeConfig=tN,tZ.AxiosHeaders=eq,tZ.formToJSON=e=>ti(eB.isHTMLForm(e)?new FormData(e):e),tZ.getAdapter=tq,tZ.HttpStatusCode=tY,tZ.default=tZ;let t0={"Content-Type":"application/json",Acccept:"application/json"};class t1{client;constructor(e,t=15e3,r=t0){const n=tZ.create({baseURL:e,timeout:t,headers:{...r}});n.interceptors.response.use(this._handleSuccess,this._handleError),this.client=n}get(e,t){return this.client.get(e,{signal:t}).then(e=>e.data)}post(e,t,r){return this.client.post(e,t,{signal:r}).then(e=>e.data)}put(e,t){return this.client.put(e,t).then(e=>e.data)}patch(e,t){return this.client.patch(e,t).then(e=>e.data)}delete(e){return this.client.delete(e).then(e=>e.data)}_handleSuccess(e){return e}_handleError(e){return e?.response?.data?Promise.reject({status:e.response.status,httpStatus:e.response.status,...e?.response?.data}):Promise.reject(e)}}let t2=new t1(`${D.AppConfigs.baseUrl}/notification`),t3=new t1(`${D.AppConfigs.baseUrl}/oneservice`),t5=new t1(D.AppConfigs.baseUrl),t4=new t1(D.AppConfigs.authForwarderBaseUrl),t6=new t1(D.AppConfigs.opticalS3BaseUrl,15e3,{"Content-Type":"application/json"}),t8=F(D.AppConfigs.opticalBaseUrl).with(G({onRequest:e=>({...e,cache:"no-store"})})),t9=new t1(D.AppConfigs.cmsPublicApiBaseUrl),t7=new t1("https://www.onemap.gov.sg",15e3,{});e.s(["CmsApiClient",0,t9,"MolAfApiClient",0,t4,"MolApiClient",0,t5,"NotificationApiClient",0,t2,"OneMapApiClient",0,t7,"OneServiceApiClient",0,t3,"OpticalApiClientWithDirectusSDK",0,t8,"OpticalS3ApiClient",0,t6],21122);let re="/v1/public/pages",rt=async e=>{if(!D.AppConfigs.cmsPublicApiBaseUrl)throw Error("NEXT_PUBLIC_CMS_PUBLIC_API_BASE_URL is not set. Add it to .env.local and restart `npm run dev`.");let t=e?`?version=${encodeURIComponent(e)}`:"",r=`${re}/homepage${t}`;return(await t9.get(r)).data},rr=e=>Array.isArray(e)?e.filter(e=>!!e&&"string"==typeof e.title&&!!e.title&&"string"==typeof e.href&&!!e.href):[],rn=async()=>
1{if(!D.AppConfigs.cmsPublicApiBaseUrl)throw Error("NEXT_PUBLIC_CMS_PUBLIC_API_BASE_URL is not set. Add it to .env.local and restart `npm run dev`.");let e=(await t9.get("/v1/public/navigation")).data;return{lifeMoments:rr(e?.lifeMoments),topics:rr(e?.topics)}},ro=async(e,t)=>{if(!D.AppConfigs.cmsPublicApiBaseUrl)throw Error("NEXT_PUBLIC_CMS_PUBLIC_API_BASE_URL is not set. Add it to .env.local and restart `npm run dev`.");let r=t?`?version=${encodeURIComponent(t)}`:"",n=`${re}/${encodeURIComponent(e)}${r}`;return(await t9.get(n)).data};e.s(["fetchCmsHomepage",0,rt,"fetchCmsNavigation",0,rn,"fetchCmsPage",0,ro,"isCmsPageNotFoundError",0,e=>{if("object"!=typeof e||null===e)return!1;let t=e.status??e.httpStatus;return 404===t||!!(400===t&&Array.isArray(e.data))&&e.data.some(e=>e?.code===10302||e?.code===10305||e?.code===10310||e?.code===10313)}],880422);let ri={lifeMoments:[],topics:[]},rs={footerLinks:R(!1),navItems:{desktop:T(),mobile:B(!1)},cmsNavigation:ri,cmsNavigationStatus:"loading"},ra=(e,t)=>{switch(t.type){case"set-selected":{let r=t.payload;if(r)return{...e,selectedId:r.selectedId};return e}case"set-footer":{let r=t.payload;if(r)return{...e,footerLinks:r.footerLinks};return e}case"set-mobile-nav":{let r=t.payload;if(r)return{...e,navItems:{...e.navItems,mobile:r.mobileNavLinks}};return e}case"set-cms-navigation":{let r=t.payload;if(r)return{...e,cmsNavigation:r.cmsNavigation,cmsNavigationStatus:r.cmsNavigationStatus};return e}default:return e}},rl=(0,u.createContext)({state:rs,dispatch:()=>null});e.s(["NavigationContext",0,rl,"NavigationProvider",0,({children:e})=>{let[t,r]=(0,u.useReducer)(ra,rs),{configCat:n}=(0,d.useConfigCat)(),o=!!n.TOGGLE_CMS_HOMEPAGE;return(0,u.useEffect)(()=>{if(!o)return;let e=!1;return(async()=>{r({type:"set-cms-navigation",payload:{cmsNavigation:ri,cmsNavigationStatus:"loading"}});try{let t=await rn();if(e)return;r({type:"set-cms-navigation",payload:{cmsNavigation:t,cmsNavigationStatus:"resolved"}})}catch(t){if(e)return;console.error("[cms] failed to fetch navigation",t),r({type:"set-cms-navigation",payload:{cmsNavigation:ri,cmsNavigationStatus:"resolved"}})}})(),()=>{e=!0}},[o]),(0,c.jsx)(rl.Provider,{value:{state:t,dispatch:r},children:e})}],1528)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.