hplx-feature-library 1.0.219 → 1.0.221

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 (89) hide show
  1. package/dist/APIAction-Bev2spv1.cjs +1 -0
  2. package/dist/{APIAction-l6i46qgX.js → APIAction-DLCcL2Li.js} +23 -24
  3. package/dist/Attachments/index.js +1 -1
  4. package/dist/{Attachments-BzZHI8d3.js → Attachments-3UkuRnaT.js} +6297 -6180
  5. package/dist/Attachments-B9GrTokn.cjs +202 -0
  6. package/dist/NineDots/index.js +1 -1
  7. package/dist/{NineDots-CCtE2t9I.js → NineDots-gflwjmeo.js} +1 -1
  8. package/dist/{NineDots-BEzE3Pj8.cjs → NineDots-q--wtv3_.cjs} +1 -1
  9. package/dist/PatientAddEdit/index.js +1 -1
  10. package/dist/{PatientAddEdit-CPjv2_ZF.js → PatientAddEdit-DRQcxWYN.js} +6 -7
  11. package/dist/PatientAddEdit-DtcwFtoA.cjs +7 -0
  12. package/dist/PatientPopup/index.js +1 -1
  13. package/dist/PatientPopupContainer-01TVoq-l.cjs +36 -0
  14. package/dist/{PatientPopupContainer-Duqcxwvh.js → PatientPopupContainer-DR5aP_eg.js} +3402 -3376
  15. package/dist/PediatricsCalculator/index.js +1 -1
  16. package/dist/PediatricsCalculatorTable-bTvt7SWQ.cjs +9 -0
  17. package/dist/{PediatricsCalculatorTable-G0ttbDpi.js → PediatricsCalculatorTable-qu37FR7D.js} +236 -228
  18. package/dist/{PrintModal-JdrjFZDR.cjs → PrintModal-C0ullnUh.cjs} +13 -13
  19. package/dist/{PrintModal-B-OS9evV.js → PrintModal-D25hmhNL.js} +83 -42
  20. package/dist/{ReusableModal-CIgDYOWZ.cjs → ReusableModal-2GKjVVbf.cjs} +1 -1
  21. package/dist/{ReusableModal-CT4_gW1b.js → ReusableModal-BL_DwV8I.js} +1 -1
  22. package/dist/SearchPatients/index.js +1 -1
  23. package/dist/{SearchPatients-BYGGaUoD.js → SearchPatients-BbtytMYS.js} +3 -3
  24. package/dist/{SearchPatients-BXNWucYz.cjs → SearchPatients-DbYAGumB.cjs} +1 -1
  25. package/dist/UserProfile/index.js +1 -1
  26. package/dist/{UserProfile-DkQgWGvV.cjs → UserProfile-D3Rhhuj9.cjs} +4 -4
  27. package/dist/{UserProfile-CcEbhDhd.js → UserProfile-jDWt9g20.js} +8 -9
  28. package/dist/common-utils-BNaPcohw.cjs +6 -0
  29. package/dist/common-utils-BidUvSFN.js +2233 -0
  30. package/dist/hplx-feature-library.css +1 -1
  31. package/dist/{index-T1lUjzhG.js → index-BzwuwvT5.js} +1 -1
  32. package/dist/{index-DQlbIHh3.cjs → index-CJ2AKRoq.cjs} +26 -26
  33. package/dist/{index-DkA8S5IK.cjs → index-CRCsQdYf.cjs} +1 -1
  34. package/dist/{index-Bd0CDVpH.js → index-UPYT3B9g.js} +2 -3
  35. package/dist/index.d.ts +0 -1
  36. package/dist/index.js +14 -16
  37. package/dist/print-pdf/index.js +1 -1
  38. package/package.json +9 -14
  39. package/dist/APIAction-5-3i1gGx.cjs +0 -1
  40. package/dist/AllInvestigations/components/AllInvestigationsTable.d.ts +0 -19
  41. package/dist/AllInvestigations/index.d.ts +0 -1
  42. package/dist/AllInvestigations/index.js +0 -4
  43. package/dist/AllInvestigations/utils/test-tange-util.d.ts +0 -8
  44. package/dist/AllInvestigationsTable-BDLPOHjr.cjs +0 -79
  45. package/dist/AllInvestigationsTable-Dg-YXASz.js +0 -17065
  46. package/dist/Attachments-CziD-_gm.cjs +0 -186
  47. package/dist/PatientAddEdit-UFho4sOA.cjs +0 -7
  48. package/dist/PatientPopupContainer-DT2S0ZxQ.cjs +0 -36
  49. package/dist/PediatricsCalculatorTable-B4fTy1J5.cjs +0 -9
  50. package/dist/ReusableTable/ReusableTable.d.ts +0 -3
  51. package/dist/ReusableTable/ReusableTableConstants.d.ts +0 -8
  52. package/dist/ReusableTable/ReusableTableTypes.d.ts +0 -96
  53. package/dist/ReusableTable/components/EmptyTableContainer.d.ts +0 -12
  54. package/dist/ReusableTable/components/FilterCheckbox.d.ts +0 -8
  55. package/dist/ReusableTable/components/FilterDropdown.d.ts +0 -17
  56. package/dist/ReusableTable/components/Pagination.d.ts +0 -2
  57. package/dist/ReusableTable/components/TableBody.d.ts +0 -2
  58. package/dist/ReusableTable/components/TableCell.d.ts +0 -3
  59. package/dist/ReusableTable/components/TableFilterSelect.d.ts +0 -12
  60. package/dist/ReusableTable/components/TableHead.d.ts +0 -2
  61. package/dist/ReusableTable/components/TableMain.d.ts +0 -2
  62. package/dist/ReusableTable/components/TableRow.d.ts +0 -3
  63. package/dist/ReusableTable/context/TableContext.d.ts +0 -21
  64. package/dist/ReusableTable/context/TableContextBase.d.ts +0 -26
  65. package/dist/ReusableTable/context/useTableContext.d.ts +0 -2
  66. package/dist/TrendGraphs/AreaChartComponent.d.ts +0 -9
  67. package/dist/TrendGraphs/LineChartComponent/DataPointToolTip.d.ts +0 -16
  68. package/dist/TrendGraphs/LineChartComponent/LineChartBody.d.ts +0 -2
  69. package/dist/TrendGraphs/LineChartComponent/LineChartHeader.d.ts +0 -2
  70. package/dist/TrendGraphs/LineChartComponent/index.d.ts +0 -2
  71. package/dist/TrendGraphs/context/index.d.ts +0 -2
  72. package/dist/TrendGraphs/hooks/useTrendGraphContext.d.ts +0 -2
  73. package/dist/TrendGraphs/utils/index.d.ts +0 -4
  74. package/dist/clsx-C11secjj.cjs +0 -1
  75. package/dist/clsx-OuTLNxxd.js +0 -16
  76. package/dist/common-utils-CJv4_aVl.cjs +0 -6
  77. package/dist/common-utils-Dq5TMP7t.js +0 -1952
  78. package/dist/components/Modal.d.ts +0 -5
  79. package/dist/constants/TrendGraphsConstants.d.ts +0 -2
  80. package/dist/dayjs.min-D52_GdfV.js +0 -284
  81. package/dist/dayjs.min-DXp74Ozx.cjs +0 -1
  82. package/dist/index-CJFGOBPb.js +0 -122
  83. package/dist/index-DfcUmlge.cjs +0 -17
  84. package/dist/types/AllInvestigationTypes/index.js +0 -4
  85. package/dist/types/AllInvestigationTypes.d.ts +0 -45
  86. package/dist/types/NineDotsTypes/index.js +0 -1
  87. package/dist/types/TrendGraphTypes.d.ts +0 -19
  88. package/dist/useClickOutside-BjJyGTec.js +0 -14
  89. package/dist/useClickOutside-DsVG12Cs.cjs +0 -1
@@ -1,9 +1,8 @@
1
- import { j as i, b as Z, P as _, K as l, t as TA } from "./index-Bd0CDVpH.js";
1
+ import { j as i, b as Z, P as _, K as l, t as TA } from "./index-UPYT3B9g.js";
2
2
  import * as w from "react";
3
3
  import { useState as K, useEffect as r, useMemo as xA, useRef as PA } from "react";
4
- import { M as nA } from "./index-T1lUjzhG.js";
5
- import { h as LA, m as sA, r as NA, R as SA, E as $ } from "./common-utils-Dq5TMP7t.js";
6
- import { d as lA } from "./dayjs.min-D52_GdfV.js";
4
+ import { M as nA } from "./index-BzwuwvT5.js";
5
+ import { h as LA, n as sA, c as NA, r as SA, R as lA, E as $ } from "./common-utils-BidUvSFN.js";
7
6
  const XA = "../modelChangePassword.php", uA = async (A, E) => {
8
7
  try {
9
8
  return (await LA(E.token, E.env).post(XA, A))?.data;
@@ -1493,7 +1492,7 @@ const MI = ({ branch_name: A, role_name: E, org_branch_id: I }) => /* @__PURE__
1493
1492
  ] }),
1494
1493
  /* @__PURE__ */ i.jsxs("span", { className: "hfl-text-[10px]", children: [
1495
1494
  "Ends at: ",
1496
- lA(window.ehr_subs_end_date).format("DD/MM/YY")
1495
+ NA(window.ehr_subs_end_date).format("DD/MM/YY")
1497
1496
  ] })
1498
1497
  ] }),
1499
1498
  []
@@ -1532,7 +1531,7 @@ const MI = ({ branch_name: A, role_name: E, org_branch_id: I }) => /* @__PURE__
1532
1531
  hierarchy: "Secondary",
1533
1532
  size: "md",
1534
1533
  className: "hfl-bg-White hfl-text-[12px] hfl-text-Black",
1535
- onClick: () => NA(G, "user_profile"),
1534
+ onClick: () => SA(G, "user_profile"),
1536
1535
  children: G
1537
1536
  }
1538
1537
  )
@@ -1545,7 +1544,7 @@ const MI = ({ branch_name: A, role_name: E, org_branch_id: I }) => /* @__PURE__
1545
1544
  const E = {
1546
1545
  org_branch_id: A.window_var.org_branch_id_for_seg,
1547
1546
  doctor_id: A.window_var.person_id_for_seg
1548
- }, I = await SA(A.token, A.env).post(GI, {
1547
+ }, I = await lA(A.token, A.env).post(GI, {
1549
1548
  ...E
1550
1549
  }), { data: g } = I || {}, { error: B } = g || {};
1551
1550
  if (B)
@@ -1554,7 +1553,7 @@ const MI = ({ branch_name: A, role_name: E, org_branch_id: I }) => /* @__PURE__
1554
1553
  } catch (E) {
1555
1554
  return console.log(E), Promise.reject(E);
1556
1555
  }
1557
- }, JI = ({
1556
+ }, HI = ({
1558
1557
  showToast: A,
1559
1558
  showPrivateDbInSidebar: E,
1560
1559
  syncAndLogOutHandler: I,
@@ -1757,5 +1756,5 @@ const MI = ({ branch_name: A, role_name: E, org_branch_id: I }) => /* @__PURE__
1757
1756
  ] });
1758
1757
  };
1759
1758
  export {
1760
- JI as U
1759
+ HI as U
1761
1760
  };
@@ -0,0 +1,6 @@
1
+ "use strict";const Oe=require("./CommonConstant-COHqiSWL.cjs"),Ct=require("./index-CJ2AKRoq.cjs");var nt=(e=>(e.visitpad="/md/viewPatientDashboard.php",e.consultations="/md/viewPatientList.php",e.appointments="/md/viewPatientAppointments.php",e.settings="/md/viewPreferenceSettings.php",e.privateDb="/md/viewPrivateDB.php",e.dashboardBase="/",e.referEarn="/md/inviteReferrals.php",e.teleConsults="/md/viewRemoteAppointments.php",e.pricing="/subscription/pricing",e.billSummary="/subscription/bill-summary",e.pediatricsCalculator="/md/viewPediatricCalculator.php",e))(nt||{}),rt=(e=>(e.PRODUCTION="PRODUCTION",e.STAGING="STAGING",e.DEVELOPMENT="DEVELOPMENT",e))(rt||{});function st(e,t){return function(){return e.apply(t,arguments)}}const{toString:Nt}=Object.prototype,{getPrototypeOf:Pe}=Object,{iterator:Re,toStringTag:ot}=Symbol,Te=(e=>t=>{const n=Nt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),J=e=>(e=e.toLowerCase(),t=>Te(t)===e),Ae=e=>t=>typeof t===e,{isArray:ie}=Array,se=Ae("undefined");function fe(e){return e!==null&&!se(e)&&e.constructor!==null&&!se(e.constructor)&&H(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const it=J("ArrayBuffer");function _t(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&it(e.buffer),t}const Ft=Ae("string"),H=Ae("function"),at=Ae("number"),de=e=>e!==null&&typeof e=="object",Mt=e=>e===!0||e===!1,we=e=>{if(Te(e)!=="object")return!1;const t=Pe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ot in e)&&!(Re in e)},Lt=e=>{if(!de(e)||fe(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Pt=J("Date"),kt=J("File"),Ut=J("Blob"),Bt=J("FileList"),jt=e=>de(e)&&H(e.pipe),vt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||H(e.append)&&((t=Te(e))==="formdata"||t==="object"&&H(e.toString)&&e.toString()==="[object FormData]"))},It=J("URLSearchParams"),[qt,Ht,zt,Jt]=["ReadableStream","Request","Response","Headers"].map(J),Wt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function he(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),ie(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(fe(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let c;for(r=0;r<o;r++)c=i[r],t.call(null,e[c],c,e)}}function ct(e,t){if(fe(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const ee=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ut=e=>!se(e)&&e!==ee;function _e(){const{caseless:e,skipUndefined:t}=ut(this)&&this||{},n={},r=(s,i)=>{const o=e&&ct(n,i)||i;we(n[o])&&we(s)?n[o]=_e(n[o],s):we(s)?n[o]=_e({},s):ie(s)?n[o]=s.slice():(!t||!se(s))&&(n[o]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&he(arguments[s],r);return n}const Vt=(e,t,n,{allOwnKeys:r}={})=>(he(t,(s,i)=>{n&&H(s)?e[i]=st(s,n):e[i]=s},{allOwnKeys:r}),e),Yt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Kt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Gt=(e,t,n,r)=>{let s,i,o;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!c[o]&&(t[o]=e[o],c[o]=!0);e=n!==!1&&Pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Xt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Zt=e=>{if(!e)return null;if(ie(e))return e;let t=e.length;if(!at(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Qt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pe(Uint8Array)),en=(e,t)=>{const r=(e&&e[Re]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},tn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},nn=J("HTMLFormElement"),rn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),je=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sn=J("RegExp"),lt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};he(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},on=e=>{lt(e,(t,n)=>{if(H(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(H(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},an=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return ie(e)?r(e):r(String(e).split(t)),n},cn=()=>{},un=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ln(e){return!!(e&&H(e.append)&&e[ot]==="FormData"&&e[Re])}const fn=e=>{const t=new Array(10),n=(r,s)=>{if(de(r)){if(t.indexOf(r)>=0)return;if(fe(r))return r;if(!("toJSON"in r)){t[s]=r;const i=ie(r)?[]:{};return he(r,(o,c)=>{const p=n(o,s+1);!se(p)&&(i[c]=p)}),t[s]=void 0,i}}return r};return n(e,0)},dn=J("AsyncFunction"),hn=e=>e&&(de(e)||H(e))&&H(e.then)&&H(e.catch),ft=((e,t)=>e?setImmediate:t?((n,r)=>(ee.addEventListener("message",({source:s,data:i})=>{s===ee&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ee.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",H(ee.postMessage)),pn=typeof queueMicrotask<"u"?queueMicrotask.bind(ee):typeof process<"u"&&process.nextTick||ft,mn=e=>e!=null&&H(e[Re]),a={isArray:ie,isArrayBuffer:it,isBuffer:fe,isFormData:vt,isArrayBufferView:_t,isString:Ft,isNumber:at,isBoolean:Mt,isObject:de,isPlainObject:we,isEmptyObject:Lt,isReadableStream:qt,isRequest:Ht,isResponse:zt,isHeaders:Jt,isUndefined:se,isDate:Pt,isFile:kt,isBlob:Ut,isRegExp:sn,isFunction:H,isStream:jt,isURLSearchParams:It,isTypedArray:Qt,isFileList:Bt,forEach:he,merge:_e,extend:Vt,trim:Wt,stripBOM:Yt,inherits:Kt,toFlatObject:Gt,kindOf:Te,kindOfTest:J,endsWith:Xt,toArray:Zt,forEachEntry:en,matchAll:tn,isHTMLForm:nn,hasOwnProperty:je,hasOwnProp:je,reduceDescriptors:lt,freezeMethods:on,toObjectSet:an,toCamelCase:rn,noop:cn,toFiniteNumber:un,findKey:ct,global:ee,isContextDefined:ut,isSpecCompliantForm:ln,toJSONObject:fn,isAsyncFn:dn,isThenable:hn,setImmediate:ft,asap:pn,isIterable:mn};function R(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(R,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:a.toJSONObject(this.config),code:this.code,status:this.status}}});const dt=R.prototype,ht={};["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ht[e]={value:e}});Object.defineProperties(R,ht);Object.defineProperty(dt,"isAxiosError",{value:!0});R.from=(e,t,n,r,s,i)=>{const o=Object.create(dt);a.toFlatObject(e,o,function(u){return u!==Error.prototype},l=>l!=="isAxiosError");const c=e&&e.message?e.message:"Error",p=t==null&&e?e.code:t;return R.call(o,c,p,n,r,s),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};const yn=null;function Fe(e){return a.isPlainObject(e)||a.isArray(e)}function pt(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function ve(e,t,n){return e?e.concat(t).map(function(s,i){return s=pt(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function wn(e){return a.isArray(e)&&!e.some(Fe)}const bn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function De(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,w){return!a.isUndefined(w[S])});const r=n.metaTokens,s=n.visitor||u,i=n.dots,o=n.indexes,p=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function l(f){if(f===null)return"";if(a.isDate(f))return f.toISOString();if(a.isBoolean(f))return f.toString();if(!p&&a.isBlob(f))throw new R("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(f)||a.isTypedArray(f)?p&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,S,w){let F=f;if(f&&!w&&typeof f=="object"){if(a.endsWith(S,"{}"))S=r?S:S.slice(0,-2),f=JSON.stringify(f);else if(a.isArray(f)&&wn(f)||(a.isFileList(f)||a.endsWith(S,"[]"))&&(F=a.toArray(f)))return S=pt(S),F.forEach(function(C,k){!(a.isUndefined(C)||C===null)&&t.append(o===!0?ve([S],k,i):o===null?S:S+"[]",l(C))}),!1}return Fe(f)?!0:(t.append(ve(w,S,i),l(f)),!1)}const y=[],D=Object.assign(bn,{defaultVisitor:u,convertValue:l,isVisitable:Fe});function $(f,S){if(!a.isUndefined(f)){if(y.indexOf(f)!==-1)throw Error("Circular reference detected in "+S.join("."));y.push(f),a.forEach(f,function(F,I){(!(a.isUndefined(F)||F===null)&&s.call(t,F,a.isString(I)?I.trim():I,S,D))===!0&&$(F,S?S.concat(I):[I])}),y.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return $(e),t}function Ie(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ke(e,t){this._pairs=[],e&&De(e,this,t)}const mt=ke.prototype;mt.append=function(t,n){this._pairs.push([t,n])};mt.toString=function(t){const n=t?function(r){return t.call(this,r,Ie)}:Ie;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function gn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function yt(e,t,n){if(!t)return e;const r=n&&n.encode||gn;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(t,n):i=a.isURLSearchParams(t)?t.toString():new ke(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class qe{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const wt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Sn=typeof URLSearchParams<"u"?URLSearchParams:ke,En=typeof FormData<"u"?FormData:null,On=typeof Blob<"u"?Blob:null,Rn={isBrowser:!0,classes:{URLSearchParams:Sn,FormData:En,Blob:On},protocols:["http","https","file","blob","url","data"]},Ue=typeof window<"u"&&typeof document<"u",Me=typeof navigator=="object"&&navigator||void 0,Tn=Ue&&(!Me||["ReactNative","NativeScript","NS"].indexOf(Me.product)<0),An=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Dn=Ue&&window.location.href||"http://localhost",xn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ue,hasStandardBrowserEnv:Tn,hasStandardBrowserWebWorkerEnv:An,navigator:Me,origin:Dn},Symbol.toStringTag,{value:"Module"})),U={...xn,...Rn};function $n(e,t){return De(e,new U.classes.URLSearchParams,{visitor:function(n,r,s,i){return U.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Cn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Nn(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function bt(e){function t(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const c=Number.isFinite(+o),p=i>=n.length;return o=!o&&a.isArray(s)?s.length:o,p?(a.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!c):((!s[o]||!a.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&a.isArray(s[o])&&(s[o]=Nn(s[o])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Cn(r),s,n,0)}),n}return null}function _n(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const pe={transitional:wt,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=a.isObject(t);if(i&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(bt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return $n(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return De(c?{"files[]":t}:t,p&&new p,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),_n(t)):t}],transformResponse:[function(t){const n=this.transitional||pe.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(c){if(o)throw c.name==="SyntaxError"?R.from(c,R.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:U.classes.FormData,Blob:U.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{pe.headers[e]={}});const Fn=a.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"]),Mn=e=>{const t={};let n,r,s;return e&&e.split(`
2
+ `).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&Fn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},He=Symbol("internals");function le(e){return e&&String(e).trim().toLowerCase()}function be(e){return e===!1||e==null?e:a.isArray(e)?e.map(be):String(e)}function Ln(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Pn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $e(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function kn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Un(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}let z=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(c,p,l){const u=le(p);if(!u)throw new Error("header name must be a non-empty string");const y=a.findKey(s,u);(!y||s[y]===void 0||l===!0||l===void 0&&s[y]!==!1)&&(s[y||p]=be(c))}const o=(c,p)=>a.forEach(c,(l,u)=>i(l,u,p));if(a.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(a.isString(t)&&(t=t.trim())&&!Pn(t))o(Mn(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},p,l;for(const u of t){if(!a.isArray(u))throw TypeError("Object iterator must return a key-value pair");c[l=u[0]]=(p=c[l])?a.isArray(p)?[...p,u[1]]:[p,u[1]]:u[1]}o(c,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=le(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Ln(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=le(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||$e(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=le(o),o){const c=a.findKey(r,o);c&&(!n||$e(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||$e(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,i)=>{const o=a.findKey(r,i);if(o){n[o]=be(s),delete n[i];return}const c=t?kn(i):String(i).trim();c!==i&&delete n[i],n[c]=be(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[He]=this[He]={accessors:{}}).accessors,s=this.prototype;function i(o){const c=le(o);r[c]||(Un(s,o),r[c]=!0)}return a.isArray(t)?t.forEach(i):i(t),this}};z.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(z.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(z);function Ce(e,t){const n=this||pe,r=t||n,s=z.from(r.headers);let i=r.data;return a.forEach(e,function(c){i=c.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function gt(e){return!!(e&&e.__CANCEL__)}function ae(e,t,n){R.call(this,e??"canceled",R.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(ae,R,{__CANCEL__:!0});function St(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new R("Request failed with status code "+n.status,[R.ERR_BAD_REQUEST,R.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Bn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function jn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(p){const l=Date.now(),u=r[i];o||(o=l),n[s]=p,r[s]=l;let y=i,D=0;for(;y!==s;)D+=n[y++],y=y%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),l-o<t)return;const $=u&&l-u;return $?Math.round(D*1e3/$):void 0}}function vn(e,t){let n=0,r=1e3/t,s,i;const o=(l,u=Date.now())=>{n=u,s=null,i&&(clearTimeout(i),i=null),e(...l)};return[(...l)=>{const u=Date.now(),y=u-n;y>=r?o(l,u):(s=l,i||(i=setTimeout(()=>{i=null,o(s)},r-y)))},()=>s&&o(s)]}const Ee=(e,t,n=3)=>{let r=0;const s=jn(50,250);return vn(i=>{const o=i.loaded,c=i.lengthComputable?i.total:void 0,p=o-r,l=s(p),u=o<=c;r=o;const y={loaded:o,total:c,progress:c?o/c:void 0,bytes:p,rate:l||void 0,estimated:l&&c&&u?(c-o)/l:void 0,event:i,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(y)},n)},ze=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Je=e=>(...t)=>a.asap(()=>e(...t)),In=U.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,U.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(U.origin),U.navigator&&/(msie|trident)/i.test(U.navigator.userAgent)):()=>!0,qn=U.hasStandardBrowserEnv?{write(e,t,n,r,s,i,o){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];a.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),a.isString(r)&&c.push(`path=${r}`),a.isString(s)&&c.push(`domain=${s}`),i===!0&&c.push("secure"),a.isString(o)&&c.push(`SameSite=${o}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Hn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Et(e,t,n){let r=!Hn(t);return e&&(r||n==!1)?zn(e,t):t}const We=e=>e instanceof z?{...e}:e;function ne(e,t){t=t||{};const n={};function r(l,u,y,D){return a.isPlainObject(l)&&a.isPlainObject(u)?a.merge.call({caseless:D},l,u):a.isPlainObject(u)?a.merge({},u):a.isArray(u)?u.slice():u}function s(l,u,y,D){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l,y,D)}else return r(l,u,y,D)}function i(l,u){if(!a.isUndefined(u))return r(void 0,u)}function o(l,u){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function c(l,u,y){if(y in t)return r(l,u);if(y in e)return r(void 0,l)}const p={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(l,u,y)=>s(We(l),We(u),y,!0)};return a.forEach(Object.keys({...e,...t}),function(u){const y=p[u]||s,D=y(e[u],t[u],u);a.isUndefined(D)&&y!==c||(n[u]=D)}),n}const Ot=e=>{const t=ne({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:c}=t;if(t.headers=o=z.from(o),t.url=yt(Et(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),a.isFormData(n)){if(U.hasStandardBrowserEnv||U.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(a.isFunction(n.getHeaders)){const p=n.getHeaders(),l=["content-type","content-length"];Object.entries(p).forEach(([u,y])=>{l.includes(u.toLowerCase())&&o.set(u,y)})}}if(U.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&In(t.url))){const p=s&&i&&qn.read(i);p&&o.set(s,p)}return t},Jn=typeof XMLHttpRequest<"u",Wn=Jn&&function(e){return new Promise(function(n,r){const s=Ot(e);let i=s.data;const o=z.from(s.headers).normalize();let{responseType:c,onUploadProgress:p,onDownloadProgress:l}=s,u,y,D,$,f;function S(){$&&$(),f&&f(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let w=new XMLHttpRequest;w.open(s.method.toUpperCase(),s.url,!0),w.timeout=s.timeout;function F(){if(!w)return;const C=z.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),P={data:!c||c==="text"||c==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:C,config:e,request:w};St(function(j){n(j),S()},function(j){r(j),S()},P),w=null}"onloadend"in w?w.onloadend=F:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(F)},w.onabort=function(){w&&(r(new R("Request aborted",R.ECONNABORTED,e,w)),w=null)},w.onerror=function(k){const P=k&&k.message?k.message:"Network Error",B=new R(P,R.ERR_NETWORK,e,w);B.event=k||null,r(B),w=null},w.ontimeout=function(){let k=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const P=s.transitional||wt;s.timeoutErrorMessage&&(k=s.timeoutErrorMessage),r(new R(k,P.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,e,w)),w=null},i===void 0&&o.setContentType(null),"setRequestHeader"in w&&a.forEach(o.toJSON(),function(k,P){w.setRequestHeader(P,k)}),a.isUndefined(s.withCredentials)||(w.withCredentials=!!s.withCredentials),c&&c!=="json"&&(w.responseType=s.responseType),l&&([D,f]=Ee(l,!0),w.addEventListener("progress",D)),p&&w.upload&&([y,$]=Ee(p),w.upload.addEventListener("progress",y),w.upload.addEventListener("loadend",$)),(s.cancelToken||s.signal)&&(u=C=>{w&&(r(!C||C.type?new ae(null,e,w):C),w.abort(),w=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const I=Bn(s.url);if(I&&U.protocols.indexOf(I)===-1){r(new R("Unsupported protocol "+I+":",R.ERR_BAD_REQUEST,e));return}w.send(i||null)})},Vn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const i=function(l){if(!s){s=!0,c();const u=l instanceof Error?l:this.reason;r.abort(u instanceof R?u:new ae(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,i(new R(`timeout ${t} of ms exceeded`,R.ETIMEDOUT))},t);const c=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:p}=r;return p.unsubscribe=()=>a.asap(c),p}},Yn=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},Kn=async function*(e,t){for await(const n of Gn(e))yield*Yn(n,t)},Gn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Ve=(e,t,n,r)=>{const s=Kn(e,t);let i=0,o,c=p=>{o||(o=!0,r&&r(p))};return new ReadableStream({async pull(p){try{const{done:l,value:u}=await s.next();if(l){c(),p.close();return}let y=u.byteLength;if(n){let D=i+=y;n(D)}p.enqueue(new Uint8Array(u))}catch(l){throw c(l),l}},cancel(p){return c(p),s.return()}},{highWaterMark:2})},Ye=64*1024,{isFunction:ye}=a,Xn=(({Request:e,Response:t})=>({Request:e,Response:t}))(a.global),{ReadableStream:Ke,TextEncoder:Ge}=a.global,Xe=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Zn=e=>{e=a.merge.call({skipUndefined:!0},Xn,e);const{fetch:t,Request:n,Response:r}=e,s=t?ye(t):typeof fetch=="function",i=ye(n),o=ye(r);if(!s)return!1;const c=s&&ye(Ke),p=s&&(typeof Ge=="function"?(f=>S=>f.encode(S))(new Ge):async f=>new Uint8Array(await new n(f).arrayBuffer())),l=i&&c&&Xe(()=>{let f=!1;const S=new n(U.origin,{body:new Ke,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!S}),u=o&&c&&Xe(()=>a.isReadableStream(new r("").body)),y={stream:u&&(f=>f.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!y[f]&&(y[f]=(S,w)=>{let F=S&&S[f];if(F)return F.call(S);throw new R(`Response type '${f}' is not supported`,R.ERR_NOT_SUPPORT,w)})});const D=async f=>{if(f==null)return 0;if(a.isBlob(f))return f.size;if(a.isSpecCompliantForm(f))return(await new n(U.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(a.isArrayBufferView(f)||a.isArrayBuffer(f))return f.byteLength;if(a.isURLSearchParams(f)&&(f=f+""),a.isString(f))return(await p(f)).byteLength},$=async(f,S)=>{const w=a.toFiniteNumber(f.getContentLength());return w??D(S)};return async f=>{let{url:S,method:w,data:F,signal:I,cancelToken:C,timeout:k,onDownloadProgress:P,onUploadProgress:B,responseType:j,headers:X,withCredentials:V="same-origin",fetchOptions:M}=Ot(f),A=t||fetch;j=j?(j+"").toLowerCase():"text";let Y=Vn([I,C&&C.toAbortSignal()],k),K=null;const g=Y&&Y.unsubscribe&&(()=>{Y.unsubscribe()});let m;try{if(B&&l&&w!=="get"&&w!=="head"&&(m=await $(X,F))!==0){let T=new n(S,{method:"POST",body:F,duplex:"half"}),x;if(a.isFormData(F)&&(x=T.headers.get("content-type"))&&X.setContentType(x),T.body){const[N,L]=ze(m,Ee(Je(B)));F=Ve(T.body,Ye,N,L)}}a.isString(V)||(V=V?"include":"omit");const d=i&&"credentials"in n.prototype,b={...M,signal:Y,method:w.toUpperCase(),headers:X.normalize().toJSON(),body:F,duplex:"half",credentials:d?V:void 0};K=i&&new n(S,b);let h=await(i?A(K,M):A(S,b));const E=u&&(j==="stream"||j==="response");if(u&&(P||E&&g)){const T={};["status","statusText","headers"].forEach(v=>{T[v]=h[v]});const x=a.toFiniteNumber(h.headers.get("content-length")),[N,L]=P&&ze(x,Ee(Je(P),!0))||[];h=new r(Ve(h.body,Ye,N,()=>{L&&L(),g&&g()}),T)}j=j||"text";let O=await y[a.findKey(y,j)||"text"](h,f);return!E&&g&&g(),await new Promise((T,x)=>{St(T,x,{data:O,headers:z.from(h.headers),status:h.status,statusText:h.statusText,config:f,request:K})})}catch(d){throw g&&g(),d&&d.name==="TypeError"&&/Load failed|fetch/i.test(d.message)?Object.assign(new R("Network Error",R.ERR_NETWORK,f,K),{cause:d.cause||d}):R.from(d,d&&d.code,f,K)}}},Qn=new Map,Rt=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,i=[r,s,n];let o=i.length,c=o,p,l,u=Qn;for(;c--;)p=i[c],l=u.get(p),l===void 0&&u.set(p,l=c?new Map:Zn(t)),u=l;return l};Rt();const Be={http:yn,xhr:Wn,fetch:{get:Rt}};a.forEach(Be,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ze=e=>`- ${e}`,er=e=>a.isFunction(e)||e===null||e===!1;function tr(e,t){e=a.isArray(e)?e:[e];const{length:n}=e;let r,s;const i={};for(let o=0;o<n;o++){r=e[o];let c;if(s=r,!er(r)&&(s=Be[(c=String(r)).toLowerCase()],s===void 0))throw new R(`Unknown adapter '${c}'`);if(s&&(a.isFunction(s)||(s=s.get(t))))break;i[c||"#"+o]=s}if(!s){const o=Object.entries(i).map(([p,l])=>`adapter ${p} `+(l===!1?"is not supported by the environment":"is not available in the build"));let c=n?o.length>1?`since :
4
+ `+o.map(Ze).join(`
5
+ `):" "+Ze(o[0]):"as no adapter specified";throw new R("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}const Tt={getAdapter:tr,adapters:Be};function Ne(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ae(null,e)}function Qe(e){return Ne(e),e.headers=z.from(e.headers),e.data=Ce.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Tt.getAdapter(e.adapter||pe.adapter,e)(e).then(function(r){return Ne(e),r.data=Ce.call(e,e.transformResponse,r),r.headers=z.from(r.headers),r},function(r){return gt(r)||(Ne(e),r&&r.response&&(r.response.data=Ce.call(e,e.transformResponse,r.response),r.response.headers=z.from(r.response.headers))),Promise.reject(r)})}const At="1.13.1",xe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{xe[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const et={};xe.transitional=function(t,n,r){function s(i,o){return"[Axios v"+At+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,c)=>{if(t===!1)throw new R(s(o," has been removed"+(n?" in "+n:"")),R.ERR_DEPRECATED);return n&&!et[o]&&(et[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,c):!0}};xe.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function nr(e,t,n){if(typeof e!="object")throw new R("options must be an object",R.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const c=e[i],p=c===void 0||o(c,i,e);if(p!==!0)throw new R("option "+i+" must be "+p,R.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new R("Unknown option "+i,R.ERR_BAD_OPTION)}}const ge={assertOptions:nr,validators:xe},W=ge.validators;let te=class{constructor(t){this.defaults=t||{},this.interceptors={request:new qe,response:new qe}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
+ `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ne(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&ge.assertOptions(r,{silentJSONParsing:W.transitional(W.boolean),forcedJSONParsing:W.transitional(W.boolean),clarifyTimeoutError:W.transitional(W.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:ge.assertOptions(s,{encode:W.function,serialize:W.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ge.assertOptions(n,{baseUrl:W.spelling("baseURL"),withXsrfToken:W.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&a.merge(i.common,i[n.method]);i&&a.forEach(["delete","get","head","post","put","patch","common"],f=>{delete i[f]}),n.headers=z.concat(o,i);const c=[];let p=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(p=p&&S.synchronous,c.unshift(S.fulfilled,S.rejected))});const l=[];this.interceptors.response.forEach(function(S){l.push(S.fulfilled,S.rejected)});let u,y=0,D;if(!p){const f=[Qe.bind(this),void 0];for(f.unshift(...c),f.push(...l),D=f.length,u=Promise.resolve(n);y<D;)u=u.then(f[y++],f[y++]);return u}D=c.length;let $=n;for(;y<D;){const f=c[y++],S=c[y++];try{$=f($)}catch(w){S.call(this,w);break}}try{u=Qe.call(this,$)}catch(f){return Promise.reject(f)}for(y=0,D=l.length;y<D;)u=u.then(l[y++],l[y++]);return u}getUri(t){t=ne(this.defaults,t);const n=Et(t.baseURL,t.url,t.allowAbsoluteUrls);return yt(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){te.prototype[t]=function(n,r){return this.request(ne(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,c){return this.request(ne(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}te.prototype[t]=n(),te.prototype[t+"Form"]=n(!0)});let rr=class Dt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(c=>{r.subscribe(c),i=c}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,c){r.reason||(r.reason=new ae(i,o,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Dt(function(s){t=s}),cancel:t}}};function sr(e){return function(n){return e.apply(null,n)}}function or(e){return a.isObject(e)&&e.isAxiosError===!0}const Le={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(Le).forEach(([e,t])=>{Le[t]=e});function xt(e){const t=new te(e),n=st(te.prototype.request,t);return a.extend(n,te.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return xt(ne(e,s))},n}const _=xt(pe);_.Axios=te;_.CanceledError=ae;_.CancelToken=rr;_.isCancel=gt;_.VERSION=At;_.toFormData=De;_.AxiosError=R;_.Cancel=_.CanceledError;_.all=function(t){return Promise.all(t)};_.spread=sr;_.isAxiosError=or;_.mergeConfig=ne;_.AxiosHeaders=z;_.formToJSON=e=>bt(a.isHTMLForm(e)?new FormData(e):e);_.getAdapter=Tt.getAdapter;_.HttpStatusCode=Le;_.default=_;const{Axios:Cr,AxiosError:Nr,CanceledError:_r,isCancel:Fr,CancelToken:Mr,VERSION:Lr,all:Pr,Cancel:kr,isAxiosError:Ur,spread:Br,toFormData:jr,AxiosHeaders:vr,HttpStatusCode:Ir,formToJSON:qr,getAdapter:Hr,mergeConfig:zr}=_,$t={timeout:60*1e3,headers:{Accept:"application/json","Content-Type":"application/json"}},ir=(e="",t)=>{const n=_.create({...$t,baseURL:Oe.BASE_URLS[t].rearch_url});return n.interceptors.request.use(r=>(e&&r.headers&&(r.headers.Authorization=`Bearer ${e}`),r),r=>Promise.reject(r)),n.interceptors.response.use(r=>r,r=>{const{response:s,request:i}=r||{};return Promise.reject(s||i)}),n},ar=(e="",t)=>{const n=_.create({...$t,baseURL:Oe.BASE_URLS[t].rearch_url});return n.interceptors.request.use(r=>(e&&r.headers&&(r.headers.Authorization=`Bearer ${e}`),r),r=>Promise.reject(r)),n.interceptors.response.use(r=>r,r=>{const{response:s,request:i}=r||{};return Promise.reject(s||i)}),n};var Se={exports:{}},cr=Se.exports,tt;function ur(){return tt||(tt=1,function(e,t){(function(n,r){e.exports=r()})(cr,function(){var n=1e3,r=6e4,s=36e5,i="millisecond",o="second",c="minute",p="hour",l="day",u="week",y="month",D="quarter",$="year",f="date",S="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,F=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(g){var m=["th","st","nd","rd"],d=g%100;return"["+g+(m[(d-20)%10]||m[d]||m[0])+"]"}},C=function(g,m,d){var b=String(g);return!b||b.length>=m?g:""+Array(m+1-b.length).join(d)+g},k={s:C,z:function(g){var m=-g.utcOffset(),d=Math.abs(m),b=Math.floor(d/60),h=d%60;return(m<=0?"+":"-")+C(b,2,"0")+":"+C(h,2,"0")},m:function g(m,d){if(m.date()<d.date())return-g(d,m);var b=12*(d.year()-m.year())+(d.month()-m.month()),h=m.clone().add(b,y),E=d-h<0,O=m.clone().add(b+(E?-1:1),y);return+(-(b+(d-h)/(E?h-O:O-h))||0)},a:function(g){return g<0?Math.ceil(g)||0:Math.floor(g)},p:function(g){return{M:y,y:$,w:u,d:l,D:f,h:p,m:c,s:o,ms:i,Q:D}[g]||String(g||"").toLowerCase().replace(/s$/,"")},u:function(g){return g===void 0}},P="en",B={};B[P]=I;var j="$isDayjsObject",X=function(g){return g instanceof Y||!(!g||!g[j])},V=function g(m,d,b){var h;if(!m)return P;if(typeof m=="string"){var E=m.toLowerCase();B[E]&&(h=E),d&&(B[E]=d,h=E);var O=m.split("-");if(!h&&O.length>1)return g(O[0])}else{var T=m.name;B[T]=m,h=T}return!b&&h&&(P=h),h||!b&&P},M=function(g,m){if(X(g))return g.clone();var d=typeof m=="object"?m:{};return d.date=g,d.args=arguments,new Y(d)},A=k;A.l=V,A.i=X,A.w=function(g,m){return M(g,{locale:m.$L,utc:m.$u,x:m.$x,$offset:m.$offset})};var Y=function(){function g(d){this.$L=V(d.locale,null,!0),this.parse(d),this.$x=this.$x||d.x||{},this[j]=!0}var m=g.prototype;return m.parse=function(d){this.$d=function(b){var h=b.date,E=b.utc;if(h===null)return new Date(NaN);if(A.u(h))return new Date;if(h instanceof Date)return new Date(h);if(typeof h=="string"&&!/Z$/i.test(h)){var O=h.match(w);if(O){var T=O[2]-1||0,x=(O[7]||"0").substring(0,3);return E?new Date(Date.UTC(O[1],T,O[3]||1,O[4]||0,O[5]||0,O[6]||0,x)):new Date(O[1],T,O[3]||1,O[4]||0,O[5]||0,O[6]||0,x)}}return new Date(h)}(d),this.init()},m.init=function(){var d=this.$d;this.$y=d.getFullYear(),this.$M=d.getMonth(),this.$D=d.getDate(),this.$W=d.getDay(),this.$H=d.getHours(),this.$m=d.getMinutes(),this.$s=d.getSeconds(),this.$ms=d.getMilliseconds()},m.$utils=function(){return A},m.isValid=function(){return this.$d.toString()!==S},m.isSame=function(d,b){var h=M(d);return this.startOf(b)<=h&&h<=this.endOf(b)},m.isAfter=function(d,b){return M(d)<this.startOf(b)},m.isBefore=function(d,b){return this.endOf(b)<M(d)},m.$g=function(d,b,h){return A.u(d)?this[b]:this.set(h,d)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(d,b){var h=this,E=!!A.u(b)||b,O=A.p(d),T=function(Q,q){var G=A.w(h.$u?Date.UTC(h.$y,q,Q):new Date(h.$y,q,Q),h);return E?G:G.endOf(l)},x=function(Q,q){return A.w(h.toDate()[Q].apply(h.toDate("s"),(E?[0,0,0,0]:[23,59,59,999]).slice(q)),h)},N=this.$W,L=this.$M,v=this.$D,re="set"+(this.$u?"UTC":"");switch(O){case $:return E?T(1,0):T(31,11);case y:return E?T(1,L):T(0,L+1);case u:var Z=this.$locale().weekStart||0,ce=(N<Z?N+7:N)-Z;return T(E?v-ce:v+(6-ce),L);case l:case f:return x(re+"Hours",0);case p:return x(re+"Minutes",1);case c:return x(re+"Seconds",2);case o:return x(re+"Milliseconds",3);default:return this.clone()}},m.endOf=function(d){return this.startOf(d,!1)},m.$set=function(d,b){var h,E=A.p(d),O="set"+(this.$u?"UTC":""),T=(h={},h[l]=O+"Date",h[f]=O+"Date",h[y]=O+"Month",h[$]=O+"FullYear",h[p]=O+"Hours",h[c]=O+"Minutes",h[o]=O+"Seconds",h[i]=O+"Milliseconds",h)[E],x=E===l?this.$D+(b-this.$W):b;if(E===y||E===$){var N=this.clone().set(f,1);N.$d[T](x),N.init(),this.$d=N.set(f,Math.min(this.$D,N.daysInMonth())).$d}else T&&this.$d[T](x);return this.init(),this},m.set=function(d,b){return this.clone().$set(d,b)},m.get=function(d){return this[A.p(d)]()},m.add=function(d,b){var h,E=this;d=Number(d);var O=A.p(b),T=function(L){var v=M(E);return A.w(v.date(v.date()+Math.round(L*d)),E)};if(O===y)return this.set(y,this.$M+d);if(O===$)return this.set($,this.$y+d);if(O===l)return T(1);if(O===u)return T(7);var x=(h={},h[c]=r,h[p]=s,h[o]=n,h)[O]||1,N=this.$d.getTime()+d*x;return A.w(N,this)},m.subtract=function(d,b){return this.add(-1*d,b)},m.format=function(d){var b=this,h=this.$locale();if(!this.isValid())return h.invalidDate||S;var E=d||"YYYY-MM-DDTHH:mm:ssZ",O=A.z(this),T=this.$H,x=this.$m,N=this.$M,L=h.weekdays,v=h.months,re=h.meridiem,Z=function(q,G,ue,me){return q&&(q[G]||q(b,E))||ue[G].slice(0,me)},ce=function(q){return A.s(T%12||12,q,"0")},Q=re||function(q,G,ue){var me=q<12?"AM":"PM";return ue?me.toLowerCase():me};return E.replace(F,function(q,G){return G||function(ue){switch(ue){case"YY":return String(b.$y).slice(-2);case"YYYY":return A.s(b.$y,4,"0");case"M":return N+1;case"MM":return A.s(N+1,2,"0");case"MMM":return Z(h.monthsShort,N,v,3);case"MMMM":return Z(v,N);case"D":return b.$D;case"DD":return A.s(b.$D,2,"0");case"d":return String(b.$W);case"dd":return Z(h.weekdaysMin,b.$W,L,2);case"ddd":return Z(h.weekdaysShort,b.$W,L,3);case"dddd":return L[b.$W];case"H":return String(T);case"HH":return A.s(T,2,"0");case"h":return ce(1);case"hh":return ce(2);case"a":return Q(T,x,!0);case"A":return Q(T,x,!1);case"m":return String(x);case"mm":return A.s(x,2,"0");case"s":return String(b.$s);case"ss":return A.s(b.$s,2,"0");case"SSS":return A.s(b.$ms,3,"0");case"Z":return O}return null}(q)||O.replace(":","")})},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(d,b,h){var E,O=this,T=A.p(b),x=M(d),N=(x.utcOffset()-this.utcOffset())*r,L=this-x,v=function(){return A.m(O,x)};switch(T){case $:E=v()/12;break;case y:E=v();break;case D:E=v()/3;break;case u:E=(L-N)/6048e5;break;case l:E=(L-N)/864e5;break;case p:E=L/s;break;case c:E=L/r;break;case o:E=L/n;break;default:E=L}return h?E:A.a(E)},m.daysInMonth=function(){return this.endOf(y).$D},m.$locale=function(){return B[this.$L]},m.locale=function(d,b){if(!d)return this.$L;var h=this.clone(),E=V(d,b,!0);return E&&(h.$L=E),h},m.clone=function(){return A.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},g}(),K=Y.prototype;return M.prototype=K,[["$ms",i],["$s",o],["$m",c],["$H",p],["$W",l],["$M",y],["$y",$],["$D",f]].forEach(function(g){K[g[1]]=function(m){return this.$g(m,g[0],g[1])}}),M.extend=function(g,m){return g.$i||(g(m,Y,M),g.$i=!0),M},M.locale=V,M.isDayjs=X,M.unix=function(g){return M(1e3*g)},M.en=B[P],M.Ls=B,M.p={},M})}(Se)),Se.exports}var lr=ur();const oe=Ct.getDefaultExportFromCjs(lr),fr=e=>{window.location.href=e},dr=e=>{const t=[];if(e.length)for(const n of e)t.push({title:n,value:n});return t},hr=e=>{const t=[];if(e.length)for(const n of e)t.push({doctor_id:n.doctor_id?n.doctor_id:"",doctor_name:n.doctor_name?n.doctor_name:"",label:n.doctor_name?n.doctor_name:"",specialist:n.specialist||""});return t},pr=e=>{try{JSON.parse(e)}catch(t){return console.log("Error parsing JSON:",t),!1}return!0},mr=(e,t)=>{if(t?.length){const n=t.toLowerCase();if(e&&(n==="day"||n==="days"||n==="weeks"||n==="months"||n==="years")){e=e?e.toString():"";const r=oe().subtract(Number(e.replace(/[^0-9]/g,"")),n);return oe(r).format("YYYY-MM-DD")}return null}return null},yr=e=>{switch(e){case"0":return"M";case"1":return"F";case"2":return"O";default:return"O"}},wr=e=>{const t=Oe.genderList.find(n=>n.value===e);return t&&t.text?t.text.slice(0,1):""},br=e=>{let t="";return new RegExp("^[0-9]{10}$").test(e)?{isError:!1,msg:t}:(e.length<10?t="Please enter 10 digit number":e.length>10?t="Invalid phone number. Should have at most 10 digits.":/^\d+$/.test(e)?t="Please enter 10 digit number":t="Invalid phone number. Should contain only digits.",{isError:!0,msg:t})},gr=e=>e?new Date(e).toString()!=="Invalid Date":!1;function Sr(e){const t=oe(e).format("YYYY-MM-DD"),n=new Date(t),s=Math.abs(new Date().getTime()-n.getTime()),i=Math.ceil(s/(1e3*60*60*24));if(i<=7)return`${i} days`;if(i<=30)return`${Math.floor(i/7)} weeks`;if(i<=365)return`${Math.floor(i/30)} months`;{const o=Math.floor(i/365);return isNaN(o)?"":`${o} years`}}const Er=(e,t=300)=>{let n=null;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{n=null,e.apply(this,r)},t)}},Or=(e,t)=>{if(t?.length){const n=t.toLowerCase();if(e&&(n==="day"||n==="days"||n==="weeks"||n==="months"||n==="years")){e=e?e.toString():"";const r=oe().subtract(Number(e.replace(/[^0-9]/g,"")),n);return oe(r).format("YYYY-MM-DD")}return null}return null},Rr=()=>{const{title:e,subTitle:t,type:n,time:r}=Oe.UnauthorizedAccessMessage;typeof window.showToast=="function"&&window.showToast(e,t,n,r)};function Tr(e=""){return e?e.charAt(0).toUpperCase()+e.slice(1):""}const Ar=(e="",t="")=>{const n=e.split(" ")[0].toLowerCase();window.location.href=`${window.location.origin}/subscription/${n}/${t}`},Dr=(e,t="")=>{const n=t?.length&&t?.trim()?t?.trim():"";try{if(typeof e=="string"&&e?.length&&e?.trim()){const r=e.replace(/\s+/g," ").trim().split(" ");return r?.length?{duration:r[0]||"",durationType:r[1]?.length?r[1]:n||""}:{duration:"",durationType:""}}return{duration:e?`${e}`:"",durationType:n}}catch(r){return console.log(r,"getDurationFormat"),{duration:"",durationType:""}}};exports.EAPP_ROUTES=nt;exports.E_ENVIRONMENT=rt;exports.ReArchAPI=ar;exports.calculateAge=Sr;exports.calculateDOB=Or;exports.calculateDate=mr;exports.capitalizeFirstLetter=Tr;exports.dayjs=oe;exports.debounceFn=Er;exports.getDurationFormat=Dr;exports.getGender=wr;exports.getGenderKey=yr;exports.goToPage=fr;exports.handle401Status=Rr;exports.hplxAPI=ir;exports.isJson=pr;exports.isValidDate=gr;exports.parseReferredByDocList=hr;exports.parseThroughChannelList=dr;exports.redirectionToSubscription=Ar;exports.validateMobileNo=br;