@decocms/mesh 1.0.18 → 1.0.20

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 (105) hide show
  1. package/dist/client/assets/{AlertCircle-CAH7G7Fc.js → AlertCircle-aBSXd6aa.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-DYJU0sRd.js → ArrowLeft-DdU5giJb.js} +1 -1
  3. package/dist/client/assets/{Calendar-Ba37VUfB.js → Calendar-DuXiXR2a.js} +1 -1
  4. package/dist/client/assets/{ChevronDown-BtaAznAf.js → ChevronDown-AknLh-p8.js} +1 -1
  5. package/dist/client/assets/{Clock-BYv8XFdU.js → Clock-CPJzDIg8.js} +1 -1
  6. package/dist/client/assets/{Copy01-DZzyV7nE.js → Copy01-sTNxtLGb.js} +1 -1
  7. package/dist/client/assets/{CpuChip02-SXr5nJdo.js → CpuChip02-CBET7vYo.js} +1 -1
  8. package/dist/client/assets/{DotsVertical-BJS2t7Tg.js → DotsVertical-D-H9eVyi.js} +1 -1
  9. package/dist/client/assets/{File06-NpiRHtR-.js → File06-CPdRfDtS.js} +1 -1
  10. package/dist/client/assets/{GitBranch01-iTqlzLTs.js → GitBranch01-DtyS0uyA.js} +1 -1
  11. package/dist/client/assets/{Inbox01-BHWd6y2Z.js → Inbox01-yIExAUuo.js} +1 -1
  12. package/dist/client/assets/{InfoCircle-D6Oa5jFj.js → InfoCircle-CoaQA7Cj.js} +1 -1
  13. package/dist/client/assets/{Key01-BYLHyZyj.js → Key01-BeFhxcJb.js} +1 -1
  14. package/dist/client/assets/{LinkExternal01-CQv3krcN.js → LinkExternal01-DFqmYIBB.js} +1 -1
  15. package/dist/client/assets/{Loading01-DdJTgVpp.js → Loading01-BBk1Ji8d.js} +1 -1
  16. package/dist/client/assets/{Lock01-CVeVWkZB.js → Lock01-B_owaR4J.js} +1 -1
  17. package/dist/client/assets/{Plus-DF_8yoMD.js → Plus-DVuQJsYB.js} +1 -1
  18. package/dist/client/assets/{SearchMd-DDy8E2Sf.js → SearchMd-BvUmPv0S.js} +1 -1
  19. package/dist/client/assets/{Terminal-CyVXhceX.js → Terminal-Dauj-6BI.js} +1 -1
  20. package/dist/client/assets/{Trash01-3l-2SGXg.js → Trash01-C_70aI9y.js} +1 -1
  21. package/dist/client/assets/{Upload01-BY1Megy0.js → Upload01-B9UxI9R2.js} +1 -1
  22. package/dist/client/assets/{X-EkD3fVWA.js → X-aQ5bBp1-.js} +1 -1
  23. package/dist/client/assets/{XClose-BQyXK7EC.js → XClose-CM9DJg2M.js} +1 -1
  24. package/dist/client/assets/{alert-dialog-TgVzKfkb.js → alert-dialog-BPjTE-Bx.js} +1 -1
  25. package/dist/client/assets/{auth-catchall-LOKV6UAh.js → auth-catchall-BmDJc3ht.js} +1 -1
  26. package/dist/client/assets/{auth-CPnNaHvV.js → auth-p1E7za2T.js} +1 -1
  27. package/dist/client/assets/{avatar-DSEJrCNe.js → avatar-CKQ5fZxV.js} +1 -1
  28. package/dist/client/assets/{badge-B1dobCRY.js → badge-CoAJQK-a.js} +1 -1
  29. package/dist/client/assets/{button-Cu7Gpj_2.js → button-BZJKEz_E.js} +1 -1
  30. package/dist/client/assets/{card-BMKHMTDj.js → card-BVLf-CP1.js} +1 -1
  31. package/dist/client/assets/{checkbox-DbkRP74v.js → checkbox-D-4OB0RT.js} +1 -1
  32. package/dist/client/assets/{collection-detail-ngjte1c4.js → collection-detail-CMMwsDfE.js} +1 -1
  33. package/dist/client/assets/{collection-display-button-CfJOFOy4.js → collection-display-button-BBYMkU7y.js} +1 -1
  34. package/dist/client/assets/{collection-header-6vROlIaL.js → collection-header-B7mQA9l0.js} +1 -1
  35. package/dist/client/assets/{collection-page-DPG4FVyY.js → collection-page-DwiC5WsX.js} +1 -1
  36. package/dist/client/assets/{collection-search-Dt3csPYy.js → collection-search-DVqYXnGc.js} +1 -1
  37. package/dist/client/assets/{collection-table-wrapper-B3zYvq_F.js → collection-table-wrapper-Eq4A7toO.js} +1 -1
  38. package/dist/client/assets/{connection-card-CjOjxUED.js → connection-card-Qd0gf8pk.js} +1 -1
  39. package/dist/client/assets/{connection-detail-BTYUiiKA.js → connection-detail-BMCVZ8mI.js} +1 -1
  40. package/dist/client/assets/{connections-C46XykEA.js → connections-B4g6c5pN.js} +1 -1
  41. package/dist/client/assets/{core-BFzlzP8F.js → core-Dk3KlTQQ.js} +1 -1
  42. package/dist/client/assets/{create-organization-dialog-CdptfMRb.js → create-organization-dialog-SPu73xqb.js} +1 -1
  43. package/dist/client/assets/{dialog-CC7Romxu.js → dialog-7UR2hpU4.js} +1 -1
  44. package/dist/client/assets/{dropdown-menu-De2MFXzP.js → dropdown-menu-B5-Z4RLQ.js} +1 -1
  45. package/dist/client/assets/{env-vars-editor-DKJqlIK-.js → env-vars-editor-Cd1b325v.js} +1 -1
  46. package/dist/client/assets/{error-boundary-BlfwOQWs.js → error-boundary-NZgBt0kx.js} +1 -1
  47. package/dist/client/assets/{extract-connection-data-D7ePP-S9.js → extract-connection-data-C0cohnD0.js} +1 -1
  48. package/dist/client/assets/{form-C9aG8a9_.js → form-M-gmJwwS.js} +1 -1
  49. package/dist/client/assets/{formatDistanceToNow-7bwQqEEJ.js → formatDistanceToNow-gygpSZnD.js} +1 -1
  50. package/dist/client/assets/{gateway-detail-D1TGQ1-a.js → gateway-detail-CmiryUNV.js} +1 -1
  51. package/dist/client/assets/{gateways-CicECNcG.js → gateways-CWmvP6Ml.js} +1 -1
  52. package/dist/client/assets/{home-6S0sFGwA.js → home-DycBDegi.js} +1 -1
  53. package/dist/client/assets/{index-BEpExDaW.js → index-0t4iQJMq.js} +1 -1
  54. package/dist/client/assets/{index-CqA7I8ME.js → index-BdKUt3kP.js} +3 -3
  55. package/dist/client/assets/{index-BC4DFDP4.js → index-DCwxWpOb.js} +1 -1
  56. package/dist/client/assets/{index-rXoeRhPD.js → index-DSVuuzx7.js} +1 -1
  57. package/dist/client/assets/{input-DHGUS5vj.js → input-D4UDXDKp.js} +1 -1
  58. package/dist/client/assets/json-ZJ767_7P.js +1 -0
  59. package/dist/client/assets/{json-syntax-highlighter-Dykx_AFd.js → json-syntax-highlighter-BUSqZgZm.js} +2 -2
  60. package/dist/client/assets/{layout-zE8Dp2X0.js → layout-CPKZZ5C4.js} +1 -1
  61. package/dist/client/assets/{lazy-highlighter-CioqVtm3.js → lazy-highlighter-BK73Fdw9.js} +1 -1
  62. package/dist/client/assets/{localstorage-keys-DECG1iSi.js → localstorage-keys-Cv4N1fxe.js} +1 -1
  63. package/dist/client/assets/{login-Cx3k8N36.js → login-Wj9TYCcD.js} +1 -1
  64. package/dist/client/assets/{mcp-oauth-tlLalwei.js → mcp-oauth-DdVFrouT.js} +1 -1
  65. package/dist/client/assets/{members-Bng4JPo_.js → members-Cu5c-T_O.js} +1 -1
  66. package/dist/client/assets/monitoring-DGEbRmqR.js +1 -0
  67. package/dist/client/assets/{oauth-callback-DWHntj-c.js → oauth-callback-CFog2MKh.js} +1 -1
  68. package/dist/client/assets/{page-BNqzvH_D.js → page-AO7blRyq.js} +1 -1
  69. package/dist/client/assets/{popover-DqxbH01z.js → popover-B29wtK47.js} +1 -1
  70. package/dist/client/assets/prism-light-CIytl0p8.js +1 -0
  71. package/dist/client/assets/{resizable-1LBVjTrf.js → resizable-mvE7xDjh.js} +3 -3
  72. package/dist/client/assets/{resource-tabs-CeU00pMP.js → resource-tabs-BKx8NMIk.js} +1 -1
  73. package/dist/client/assets/{select-Dg5JPxAc.js → select-X9N3ceFh.js} +1 -1
  74. package/dist/client/assets/{settings-Bpm9SXP6.js → settings-DShsUgSK.js} +1 -1
  75. package/dist/client/assets/{shell-layout-hhV4DGMT.js → shell-layout-DfVY6zuO.js} +1 -1
  76. package/dist/client/assets/{spinner-CyJuCfoJ.js → spinner-2MCW2Npg.js} +1 -1
  77. package/dist/client/assets/store-V5lfintA.js +1 -0
  78. package/dist/client/assets/{store-app-detail-CFp562AP.js → store-app-detail-CHUr2OX8.js} +1 -1
  79. package/dist/client/assets/{switch-C28m6eWV.js → switch-E6khGxvt.js} +1 -1
  80. package/dist/client/assets/{tools-list-NuJ6i7mN.js → tools-list-74BgWpCR.js} +1 -1
  81. package/dist/client/assets/{tooltip-BGO9FrAb.js → tooltip-DGJnwA8J.js} +1 -1
  82. package/dist/client/assets/{types-B38t86fr.js → types-Dory1ylt.js} +1 -1
  83. package/dist/client/assets/{use-binding-BSrLFa69.js → use-binding-4rPyk1Up.js} +1 -1
  84. package/dist/client/assets/{use-connection-CRNsw_EM.js → use-connection-CAS-EnWk.js} +1 -1
  85. package/dist/client/assets/{use-connection-resources-CuRCIUIA.js → use-connection-resources-DQhL2t6i.js} +1 -1
  86. package/dist/client/assets/{use-gateway-BDLgsIti.js → use-gateway-Bz5mevBK.js} +1 -1
  87. package/dist/client/assets/{use-list-state-Bu3fDY_D.js → use-list-state-BTzZJhNB.js} +1 -1
  88. package/dist/client/assets/{use-mcp-C6M7GJsU.js → use-mcp-BdNK7xZK.js} +1 -1
  89. package/dist/client/assets/{use-members-BjVwiFSf.js → use-members-BR16XPN5.js} +1 -1
  90. package/dist/client/assets/{use-mobile-DWX_zGvO.js → use-mobile-BXJxBPSi.js} +1 -1
  91. package/dist/client/assets/{use-organization-settings-BjHeWH30.js → use-organization-settings-DhEg0GmX.js} +1 -1
  92. package/dist/client/assets/{use-tool-call-hxvro7CP.js → use-tool-call-B9sW_GaR.js} +1 -1
  93. package/dist/client/assets/useQuery-BLl_PdQV.js +1 -0
  94. package/dist/client/assets/useSuspenseInfiniteQuery-BpzOu5TP.js +1 -0
  95. package/dist/client/assets/{view-mode-toggle-CwRfmI4H.js → view-mode-toggle-WwhzQMGF.js} +1 -1
  96. package/dist/client/index.html +1 -1
  97. package/dist/server/cli.js +119 -119
  98. package/dist/server/migrate.js +81 -81
  99. package/dist/server/server.js +117 -117
  100. package/package.json +1 -1
  101. package/dist/client/assets/json-DY5VamDr.js +0 -1
  102. package/dist/client/assets/monitoring-gTR9Celr.js +0 -1
  103. package/dist/client/assets/prism-light-YTNk6MZn.js +0 -1
  104. package/dist/client/assets/store-DrnwLSGT.js +0 -1
  105. package/dist/client/assets/useQuery-DYX0Erl2.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as y,ai as Hn,aj as Ne,V as Ae,F as he,c as zr,j as T,ak as h_,al as p_,am as m_,an as y_,ao as g_,f as b_,t as x_}from"./index-CqA7I8ME.js";import{c as Dr,B as Kt}from"./button-Cu7Gpj_2.js";import{r as w_}from"./index-BC4DFDP4.js";import{u as __,c as to,b as no,T as io,i as _d}from"./tooltip-BGO9FrAb.js";import{a as Od}from"./Copy01-DZzyV7nE.js";import{i as O_,J as Pd}from"./json-syntax-highlighter-Dykx_AFd.js";const Ql=({size:e=24,color:r="currentColor",...t})=>y.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},y.createElement("path",{d:"M21 15v1.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V15m14-5-5 5m0 0-5-5m5 5V3"}));Ql.displayName="Download01";function Gc(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function m0(e,r){var t=Object.create(e.prototype);for(var n in r)t[n]=r[n];return t}function On(){}var nn=.7,hi=1/nn,Pt="\\s*([+-]?\\d+)\\s*",an="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",P_=/^#([0-9a-f]{3,8})$/,S_=new RegExp(`^rgb\\(${Pt},${Pt},${Pt}\\)$`),A_=new RegExp(`^rgb\\(${vr},${vr},${vr}\\)$`),C_=new RegExp(`^rgba\\(${Pt},${Pt},${Pt},${an}\\)$`),E_=new RegExp(`^rgba\\(${vr},${vr},${vr},${an}\\)$`),T_=new RegExp(`^hsl\\(${an},${vr},${vr}\\)$`),I_=new RegExp(`^hsla\\(${an},${vr},${vr},${an}\\)$`),Sd={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Gc(On,on,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ad,formatHex:Ad,formatHex8:M_,formatHsl:j_,formatRgb:Cd,toString:Cd});function Ad(){return this.rgb().formatHex()}function M_(){return this.rgb().formatHex8()}function j_(){return y0(this).formatHsl()}function Cd(){return this.rgb().formatRgb()}function on(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=P_.exec(e))?(t=r[1].length,r=parseInt(r[1],16),t===6?Ed(r):t===3?new je(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):t===8?Wn(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):t===4?Wn(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=S_.exec(e))?new je(r[1],r[2],r[3],1):(r=A_.exec(e))?new je(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=C_.exec(e))?Wn(r[1],r[2],r[3],r[4]):(r=E_.exec(e))?Wn(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=T_.exec(e))?Md(r[1],r[2]/100,r[3]/100,1):(r=I_.exec(e))?Md(r[1],r[2]/100,r[3]/100,r[4]):Sd.hasOwnProperty(e)?Ed(Sd[e]):e==="transparent"?new je(NaN,NaN,NaN,0):null}function Ed(e){return new je(e>>16&255,e>>8&255,e&255,1)}function Wn(e,r,t,n){return n<=0&&(e=r=t=NaN),new je(e,r,t,n)}function N_(e){return e instanceof On||(e=on(e)),e?(e=e.rgb(),new je(e.r,e.g,e.b,e.opacity)):new je}function ec(e,r,t,n){return arguments.length===1?N_(e):new je(e,r,t,n??1)}function je(e,r,t,n){this.r=+e,this.g=+r,this.b=+t,this.opacity=+n}Gc(je,ec,m0(On,{brighter(e){return e=e==null?hi:Math.pow(hi,e),new je(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?nn:Math.pow(nn,e),new je(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new je(et(this.r),et(this.g),et(this.b),pi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Td,formatHex:Td,formatHex8:k_,formatRgb:Id,toString:Id}));function Td(){return`#${Zr(this.r)}${Zr(this.g)}${Zr(this.b)}`}function k_(){return`#${Zr(this.r)}${Zr(this.g)}${Zr(this.b)}${Zr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Id(){const e=pi(this.opacity);return`${e===1?"rgb(":"rgba("}${et(this.r)}, ${et(this.g)}, ${et(this.b)}${e===1?")":`, ${e})`}`}function pi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function et(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Zr(e){return e=et(e),(e<16?"0":"")+e.toString(16)}function Md(e,r,t,n){return n<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new Ze(e,r,t,n)}function y0(e){if(e instanceof Ze)return new Ze(e.h,e.s,e.l,e.opacity);if(e instanceof On||(e=on(e)),!e)return new Ze;if(e instanceof Ze)return e;e=e.rgb();var r=e.r/255,t=e.g/255,n=e.b/255,i=Math.min(r,t,n),a=Math.max(r,t,n),o=NaN,u=a-i,s=(a+i)/2;return u?(r===a?o=(t-n)/u+(t<n)*6:t===a?o=(n-r)/u+2:o=(r-t)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new Ze(o,u,s,e.opacity)}function D_(e,r,t,n){return arguments.length===1?y0(e):new Ze(e,r,t,n??1)}function Ze(e,r,t,n){this.h=+e,this.s=+r,this.l=+t,this.opacity=+n}Gc(Ze,D_,m0(On,{brighter(e){return e=e==null?hi:Math.pow(hi,e),new Ze(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?nn:Math.pow(nn,e),new Ze(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*r,i=2*t-n;return new je(ao(e>=240?e-240:e+120,i,n),ao(e,i,n),ao(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Ze(jd(this.h),Gn(this.s),Gn(this.l),pi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=pi(this.opacity);return`${e===1?"hsl(":"hsla("}${jd(this.h)}, ${Gn(this.s)*100}%, ${Gn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function jd(e){return e=(e||0)%360,e<0?e+360:e}function Gn(e){return Math.max(0,Math.min(1,e||0))}function ao(e,r,t){return(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)*255}const Yc=e=>()=>e;function R_(e,r){return function(t){return e+t*r}}function $_(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(n){return Math.pow(e+n*r,t)}}function q_(e){return(e=+e)==1?g0:function(r,t){return t-r?$_(r,t,e):Yc(isNaN(r)?t:r)}}function g0(e,r){var t=r-e;return t?R_(e,t):Yc(isNaN(e)?r:e)}const Nd=(function e(r){var t=q_(r);function n(i,a){var o=t((i=ec(i)).r,(a=ec(a)).r),u=t(i.g,a.g),s=t(i.b,a.b),l=g0(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=u(c),i.b=s(c),i.opacity=l(c),i+""}}return n.gamma=e,n})(1);function L_(e,r){r||(r=[]);var t=e?Math.min(r.length,e.length):0,n=r.slice(),i;return function(a){for(i=0;i<t;++i)n[i]=e[i]*(1-a)+r[i]*a;return n}}function B_(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function z_(e,r){var t=r?r.length:0,n=e?Math.min(t,e.length):0,i=new Array(n),a=new Array(t),o;for(o=0;o<n;++o)i[o]=$t(e[o],r[o]);for(;o<t;++o)a[o]=r[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function F_(e,r){var t=new Date;return e=+e,r=+r,function(n){return t.setTime(e*(1-n)+r*n),t}}function mi(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}function U_(e,r){var t={},n={},i;(e===null||typeof e!="object")&&(e={}),(r===null||typeof r!="object")&&(r={});for(i in r)i in e?t[i]=$t(e[i],r[i]):n[i]=r[i];return function(a){for(i in t)n[i]=t[i](a);return n}}var rc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,oo=new RegExp(rc.source,"g");function K_(e){return function(){return e}}function H_(e){return function(r){return e(r)+""}}function W_(e,r){var t=rc.lastIndex=oo.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",r=r+"";(n=rc.exec(e))&&(i=oo.exec(r));)(a=i.index)>t&&(a=r.slice(t,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:mi(n,i)})),t=oo.lastIndex;return t<r.length&&(a=r.slice(t),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?H_(s[0].x):K_(r):(r=s.length,function(l){for(var c=0,f;c<r;++c)u[(f=s[c]).i]=f.x(l);return u.join("")})}function $t(e,r){var t=typeof r,n;return r==null||t==="boolean"?Yc(r):(t==="number"?mi:t==="string"?(n=on(r))?(r=n,Nd):W_:r instanceof on?Nd:r instanceof Date?F_:B_(r)?L_:Array.isArray(r)?z_:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?U_:mi)(e,r)}function Vc(e,r){return e=+e,r=+r,function(t){return Math.round(e*(1-t)+r*t)}}function G_(e,r){r===void 0&&(r=e,e=$t);for(var t=0,n=r.length-1,i=r[0],a=new Array(n<0?0:n);t<n;)a[t]=e(i,i=r[++t]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}var uo,kd;function nr(){if(kd)return uo;kd=1;var e=Array.isArray;return uo=e,uo}var so,Dd;function b0(){if(Dd)return so;Dd=1;var e=typeof Hn=="object"&&Hn&&Hn.Object===Object&&Hn;return so=e,so}var lo,Rd;function mr(){if(Rd)return lo;Rd=1;var e=b0(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return lo=t,lo}var co,$d;function Pn(){if($d)return co;$d=1;var e=mr(),r=e.Symbol;return co=r,co}var fo,qd;function Y_(){if(qd)return fo;qd=1;var e=Pn(),r=Object.prototype,t=r.hasOwnProperty,n=r.toString,i=e?e.toStringTag:void 0;function a(o){var u=t.call(o,i),s=o[i];try{o[i]=void 0;var l=!0}catch{}var c=n.call(o);return l&&(u?o[i]=s:delete o[i]),c}return fo=a,fo}var vo,Ld;function V_(){if(Ld)return vo;Ld=1;var e=Object.prototype,r=e.toString;function t(n){return r.call(n)}return vo=t,vo}var ho,Bd;function lt(){if(Bd)return ho;Bd=1;var e=Pn(),r=Y_(),t=V_(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?r(u):t(u)}return ho=o,ho}var po,zd;function ct(){if(zd)return po;zd=1;function e(r){return r!=null&&typeof r=="object"}return po=e,po}var mo,Fd;function Sn(){if(Fd)return mo;Fd=1;var e=lt(),r=ct(),t="[object Symbol]";function n(i){return typeof i=="symbol"||r(i)&&e(i)==t}return mo=n,mo}var yo,Ud;function Xc(){if(Ud)return yo;Ud=1;var e=nr(),r=Sn(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||r(a)?!0:n.test(a)||!t.test(a)||o!=null&&a in Object(o)}return yo=i,yo}var go,Kd;function Fr(){if(Kd)return go;Kd=1;function e(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}return go=e,go}var bo,Hd;function Zc(){if(Hd)return bo;Hd=1;var e=lt(),r=Fr(),t="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!r(u))return!1;var s=e(u);return s==n||s==i||s==t||s==a}return bo=o,bo}var xo,Wd;function X_(){if(Wd)return xo;Wd=1;var e=mr(),r=e["__core-js_shared__"];return xo=r,xo}var wo,Gd;function Z_(){if(Gd)return wo;Gd=1;var e=X_(),r=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function t(n){return!!r&&r in n}return wo=t,wo}var _o,Yd;function x0(){if(Yd)return _o;Yd=1;var e=Function.prototype,r=e.toString;function t(n){if(n!=null){try{return r.call(n)}catch{}try{return n+""}catch{}}return""}return _o=t,_o}var Oo,Vd;function J_(){if(Vd)return Oo;Vd=1;var e=Zc(),r=Z_(),t=Fr(),n=x0(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,l=u.hasOwnProperty,c=RegExp("^"+s.call(l).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(d){if(!t(d)||r(d))return!1;var v=e(d)?c:a;return v.test(n(d))}return Oo=f,Oo}var Po,Xd;function Q_(){if(Xd)return Po;Xd=1;function e(r,t){return r?.[t]}return Po=e,Po}var So,Zd;function ft(){if(Zd)return So;Zd=1;var e=J_(),r=Q_();function t(n,i){var a=r(n,i);return e(a)?a:void 0}return So=t,So}var Ao,Jd;function ca(){if(Jd)return Ao;Jd=1;var e=ft(),r=e(Object,"create");return Ao=r,Ao}var Co,Qd;function eO(){if(Qd)return Co;Qd=1;var e=ca();function r(){this.__data__=e?e(null):{},this.size=0}return Co=r,Co}var Eo,ev;function rO(){if(ev)return Eo;ev=1;function e(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}return Eo=e,Eo}var To,rv;function tO(){if(rv)return To;rv=1;var e=ca(),r="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===r?void 0:u}return n.call(o,a)?o[a]:void 0}return To=i,To}var Io,tv;function nO(){if(tv)return Io;tv=1;var e=ca(),r=Object.prototype,t=r.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:t.call(a,i)}return Io=n,Io}var Mo,nv;function iO(){if(nv)return Mo;nv=1;var e=ca(),r="__lodash_hash_undefined__";function t(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?r:i,this}return Mo=t,Mo}var jo,iv;function aO(){if(iv)return jo;iv=1;var e=eO(),r=rO(),t=tO(),n=nO(),i=iO();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var l=o[u];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=t,a.prototype.has=n,a.prototype.set=i,jo=a,jo}var No,av;function oO(){if(av)return No;av=1;function e(){this.__data__=[],this.size=0}return No=e,No}var ko,ov;function Jc(){if(ov)return ko;ov=1;function e(r,t){return r===t||r!==r&&t!==t}return ko=e,ko}var Do,uv;function fa(){if(uv)return Do;uv=1;var e=Jc();function r(t,n){for(var i=t.length;i--;)if(e(t[i][0],n))return i;return-1}return Do=r,Do}var Ro,sv;function uO(){if(sv)return Ro;sv=1;var e=fa(),r=Array.prototype,t=r.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():t.call(a,o,1),--this.size,!0}return Ro=n,Ro}var $o,lv;function sO(){if(lv)return $o;lv=1;var e=fa();function r(t){var n=this.__data__,i=e(n,t);return i<0?void 0:n[i][1]}return $o=r,$o}var qo,cv;function lO(){if(cv)return qo;cv=1;var e=fa();function r(t){return e(this.__data__,t)>-1}return qo=r,qo}var Lo,fv;function cO(){if(fv)return Lo;fv=1;var e=fa();function r(t,n){var i=this.__data__,a=e(i,t);return a<0?(++this.size,i.push([t,n])):i[a][1]=n,this}return Lo=r,Lo}var Bo,dv;function da(){if(dv)return Bo;dv=1;var e=oO(),r=uO(),t=sO(),n=lO(),i=cO();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var l=o[u];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=t,a.prototype.has=n,a.prototype.set=i,Bo=a,Bo}var zo,vv;function Qc(){if(vv)return zo;vv=1;var e=ft(),r=mr(),t=e(r,"Map");return zo=t,zo}var Fo,hv;function fO(){if(hv)return Fo;hv=1;var e=aO(),r=da(),t=Qc();function n(){this.size=0,this.__data__={hash:new e,map:new(t||r),string:new e}}return Fo=n,Fo}var Uo,pv;function dO(){if(pv)return Uo;pv=1;function e(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}return Uo=e,Uo}var Ko,mv;function va(){if(mv)return Ko;mv=1;var e=dO();function r(t,n){var i=t.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Ko=r,Ko}var Ho,yv;function vO(){if(yv)return Ho;yv=1;var e=va();function r(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}return Ho=r,Ho}var Wo,gv;function hO(){if(gv)return Wo;gv=1;var e=va();function r(t){return e(this,t).get(t)}return Wo=r,Wo}var Go,bv;function pO(){if(bv)return Go;bv=1;var e=va();function r(t){return e(this,t).has(t)}return Go=r,Go}var Yo,xv;function mO(){if(xv)return Yo;xv=1;var e=va();function r(t,n){var i=e(this,t),a=i.size;return i.set(t,n),this.size+=i.size==a?0:1,this}return Yo=r,Yo}var Vo,wv;function ef(){if(wv)return Vo;wv=1;var e=fO(),r=vO(),t=hO(),n=pO(),i=mO();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var l=o[u];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=t,a.prototype.has=n,a.prototype.set=i,Vo=a,Vo}var Xo,_v;function yO(){if(_v)return Xo;_v=1;var e=ef(),r="Expected a function";function t(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(r);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],s=a.cache;if(s.has(u))return s.get(u);var l=n.apply(this,o);return a.cache=s.set(u,l)||s,l};return a.cache=new(t.Cache||e),a}return t.Cache=e,Xo=t,Xo}var Zo,Ov;function gO(){if(Ov)return Zo;Ov=1;var e=yO(),r=500;function t(n){var i=e(n,function(o){return a.size===r&&a.clear(),o}),a=i.cache;return i}return Zo=t,Zo}var Jo,Pv;function bO(){if(Pv)return Jo;Pv=1;var e=gO(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(r,function(o,u,s,l){a.push(s?l.replace(t,"$1"):u||o)}),a});return Jo=n,Jo}var Qo,Sv;function w0(){if(Sv)return Qo;Sv=1;function e(r,t){for(var n=-1,i=r==null?0:r.length,a=Array(i);++n<i;)a[n]=t(r[n],n,r);return a}return Qo=e,Qo}var eu,Av;function xO(){if(Av)return eu;Av=1;var e=Pn(),r=w0(),t=nr(),n=Sn(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(t(u))return r(u,o)+"";if(n(u))return a?a.call(u):"";var s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return eu=o,eu}var ru,Cv;function wO(){if(Cv)return ru;Cv=1;var e=xO();function r(t){return t==null?"":e(t)}return ru=r,ru}var tu,Ev;function _0(){if(Ev)return tu;Ev=1;var e=nr(),r=Xc(),t=bO(),n=wO();function i(a,o){return e(a)?a:r(a,o)?[a]:t(n(a))}return tu=i,tu}var nu,Tv;function ha(){if(Tv)return nu;Tv=1;var e=Sn();function r(t){if(typeof t=="string"||e(t))return t;var n=t+"";return n=="0"&&1/t==-1/0?"-0":n}return nu=r,nu}var iu,Iv;function rf(){if(Iv)return iu;Iv=1;var e=_0(),r=ha();function t(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[r(i[a++])];return a&&a==o?n:void 0}return iu=t,iu}var au,Mv;function O0(){if(Mv)return au;Mv=1;var e=rf();function r(t,n,i){var a=t==null?void 0:e(t,n);return a===void 0?i:a}return au=r,au}O0();var ou,jv;function _O(){if(jv)return ou;jv=1;function e(r){return r==null}return ou=e,ou}var OO=_O();const PO=Ne(OO);var uu,Nv;function SO(){if(Nv)return uu;Nv=1;var e=lt(),r=nr(),t=ct(),n="[object String]";function i(a){return typeof a=="string"||!r(a)&&t(a)&&e(a)==n}return uu=i,uu}var AO=SO();const P0=Ne(AO);var CO=Zc();const EO=Ne(CO);Fr();var su,kv;function S0(){if(kv)return su;kv=1;var e=lt(),r=ct(),t="[object Number]";function n(i){return typeof i=="number"||r(i)&&e(i)==t}return su=n,su}var lu,Dv;function TO(){if(Dv)return lu;Dv=1;var e=S0();function r(t){return e(t)&&t!=+t}return lu=r,lu}var IO=TO();const MO=Ne(IO);var jO=S0();const NO=Ne(jO);var Yn=function(r){return P0(r)&&r.indexOf("%")===r.length-1},fr=function(r){return NO(r)&&!MO(r)},yi=function(r){return fr(r)||P0(r)},kO=function(r){return typeof r=="string"?r:r?r.displayName||r.name||"Component":""},cu=function(r,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]};function ee(e){return function(){return e}}const A0=Math.cos,gi=Math.sin,ir=Math.sqrt,bi=Math.PI,pa=2*bi,tc=Math.PI,nc=2*tc,Yr=1e-6,DO=nc-Yr;function C0(e){this._+=e[0];for(let r=1,t=e.length;r<t;++r)this._+=arguments[r]+e[r]}function RO(e){let r=Math.floor(e);if(!(r>=0))throw new Error(`invalid digits: ${e}`);if(r>15)return C0;const t=10**r;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*t)/t+n[i]}}class $O{constructor(r){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=r==null?C0:RO(r)}moveTo(r,t){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(r,t){this._append`L${this._x1=+r},${this._y1=+t}`}quadraticCurveTo(r,t,n,i){this._append`Q${+r},${+t},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(r,t,n,i,a,o){this._append`C${+r},${+t},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(r,t,n,i,a){if(r=+r,t=+t,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,s=n-r,l=i-t,c=o-r,f=u-t,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=r},${this._y1=t}`;else if(d>Yr)if(!(Math.abs(f*s-l*c)>Yr)||!a)this._append`L${this._x1=r},${this._y1=t}`;else{let v=n-o,h=i-u,p=s*s+l*l,m=v*v+h*h,g=Math.sqrt(p),b=Math.sqrt(d),x=a*Math.tan((tc-Math.acos((p+d-m)/(2*g*b)))/2),_=x/b,w=x/g;Math.abs(_-1)>Yr&&this._append`L${r+_*c},${t+_*f}`,this._append`A${a},${a},0,0,${+(f*v>c*h)},${this._x1=r+w*s},${this._y1=t+w*l}`}}arc(r,t,n,i,a,o){if(r=+r,t=+t,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),s=n*Math.sin(i),l=r+u,c=t+s,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${l},${c}`:(Math.abs(this._x1-l)>Yr||Math.abs(this._y1-c)>Yr)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%nc+nc),d>DO?this._append`A${n},${n},0,1,${f},${r-u},${t-s}A${n},${n},0,1,${f},${this._x1=l},${this._y1=c}`:d>Yr&&this._append`A${n},${n},0,${+(d>=tc)},${f},${this._x1=r+n*Math.cos(a)},${this._y1=t+n*Math.sin(a)}`)}rect(r,t,n,i){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+t}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function tf(e){let r=3;return e.digits=function(t){if(!arguments.length)return r;if(t==null)r=null;else{const n=Math.floor(t);if(!(n>=0))throw new RangeError(`invalid digits: ${t}`);r=n}return e},()=>new $O(r)}function nf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function E0(e){this._context=e}E0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:this._context.lineTo(e,r);break}}};function ma(e){return new E0(e)}function T0(e){return e[0]}function I0(e){return e[1]}function M0(e,r){var t=ee(!0),n=null,i=ma,a=null,o=tf(u);e=typeof e=="function"?e:e===void 0?T0:ee(e),r=typeof r=="function"?r:r===void 0?I0:ee(r);function u(s){var l,c=(s=nf(s)).length,f,d=!1,v;for(n==null&&(a=i(v=o())),l=0;l<=c;++l)!(l<c&&t(f=s[l],l,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,l,s),+r(f,l,s));if(v)return a=null,v+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:ee(+s),u):e},u.y=function(s){return arguments.length?(r=typeof s=="function"?s:ee(+s),u):r},u.defined=function(s){return arguments.length?(t=typeof s=="function"?s:ee(!!s),u):t},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function Vn(e,r,t){var n=null,i=ee(!0),a=null,o=ma,u=null,s=tf(l);e=typeof e=="function"?e:e===void 0?T0:ee(+e),r=typeof r=="function"?r:ee(r===void 0?0:+r),t=typeof t=="function"?t:t===void 0?I0:ee(+t);function l(f){var d,v,h,p=(f=nf(f)).length,m,g=!1,b,x=new Array(p),_=new Array(p);for(a==null&&(u=o(b=s())),d=0;d<=p;++d){if(!(d<p&&i(m=f[d],d,f))===g)if(g=!g)v=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),h=d-1;h>=v;--h)u.point(x[h],_[h]);u.lineEnd(),u.areaEnd()}g&&(x[d]=+e(m,d,f),_[d]=+r(m,d,f),u.point(n?+n(m,d,f):x[d],t?+t(m,d,f):_[d]))}if(b)return u=null,b+""||null}function c(){return M0().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(e=typeof f=="function"?f:ee(+f),n=null,l):e},l.x0=function(f){return arguments.length?(e=typeof f=="function"?f:ee(+f),l):e},l.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:ee(+f),l):n},l.y=function(f){return arguments.length?(r=typeof f=="function"?f:ee(+f),t=null,l):r},l.y0=function(f){return arguments.length?(r=typeof f=="function"?f:ee(+f),l):r},l.y1=function(f){return arguments.length?(t=f==null?null:typeof f=="function"?f:ee(+f),l):t},l.lineX0=l.lineY0=function(){return c().x(e).y(r)},l.lineY1=function(){return c().x(e).y(t)},l.lineX1=function(){return c().x(n).y(r)},l.defined=function(f){return arguments.length?(i=typeof f=="function"?f:ee(!!f),l):i},l.curve=function(f){return arguments.length?(o=f,a!=null&&(u=o(a)),l):o},l.context=function(f){return arguments.length?(f==null?a=u=null:u=o(a=f),l):a},l}class j0{constructor(r,t){this._context=r,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(r,t){switch(r=+r,t=+t,this._point){case 0:{this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+r)/2,this._y0,this._x0,t,r,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,r,this._y0,r,t);break}}this._x0=r,this._y0=t}}function qO(e){return new j0(e,!0)}function LO(e){return new j0(e,!1)}const af={draw(e,r){const t=ir(r/bi);e.moveTo(t,0),e.arc(0,0,t,0,pa)}},BO={draw(e,r){const t=ir(r/5)/2;e.moveTo(-3*t,-t),e.lineTo(-t,-t),e.lineTo(-t,-3*t),e.lineTo(t,-3*t),e.lineTo(t,-t),e.lineTo(3*t,-t),e.lineTo(3*t,t),e.lineTo(t,t),e.lineTo(t,3*t),e.lineTo(-t,3*t),e.lineTo(-t,t),e.lineTo(-3*t,t),e.closePath()}},N0=ir(1/3),zO=N0*2,FO={draw(e,r){const t=ir(r/zO),n=t*N0;e.moveTo(0,-t),e.lineTo(n,0),e.lineTo(0,t),e.lineTo(-n,0),e.closePath()}},UO={draw(e,r){const t=ir(r),n=-t/2;e.rect(n,n,t,t)}},KO=.8908130915292852,k0=gi(bi/10)/gi(7*bi/10),HO=gi(pa/10)*k0,WO=-A0(pa/10)*k0,GO={draw(e,r){const t=ir(r*KO),n=HO*t,i=WO*t;e.moveTo(0,-t),e.lineTo(n,i);for(let a=1;a<5;++a){const o=pa*a/5,u=A0(o),s=gi(o);e.lineTo(s*t,-u*t),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},fu=ir(3),YO={draw(e,r){const t=-ir(r/(fu*3));e.moveTo(0,t*2),e.lineTo(-fu*t,-t),e.lineTo(fu*t,-t),e.closePath()}},Ue=-.5,Ke=ir(3)/2,ic=1/ir(12),VO=(ic/2+1)*3,XO={draw(e,r){const t=ir(r/VO),n=t/2,i=t*ic,a=n,o=t*ic+t,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(Ue*n-Ke*i,Ke*n+Ue*i),e.lineTo(Ue*a-Ke*o,Ke*a+Ue*o),e.lineTo(Ue*u-Ke*s,Ke*u+Ue*s),e.lineTo(Ue*n+Ke*i,Ue*i-Ke*n),e.lineTo(Ue*a+Ke*o,Ue*o-Ke*a),e.lineTo(Ue*u+Ke*s,Ue*s-Ke*u),e.closePath()}};function ZO(e,r){let t=null,n=tf(i);e=typeof e=="function"?e:ee(e||af),r=typeof r=="function"?r:ee(r===void 0?64:+r);function i(){let a;if(t||(t=a=n()),e.apply(this,arguments).draw(t,+r.apply(this,arguments)),a)return t=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:ee(a),i):e},i.size=function(a){return arguments.length?(r=typeof a=="function"?a:ee(+a),i):r},i.context=function(a){return arguments.length?(t=a??null,i):t},i}function xi(){}function wi(e,r,t){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+r)/6,(e._y0+4*e._y1+t)/6)}function D0(e){this._context=e}D0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:wi(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:wi(this,e,r);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r}};function JO(e){return new D0(e)}function R0(e){this._context=e}R0.prototype={areaStart:xi,areaEnd:xi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._x2=e,this._y2=r;break;case 1:this._point=2,this._x3=e,this._y3=r;break;case 2:this._point=3,this._x4=e,this._y4=r,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+r)/6);break;default:wi(this,e,r);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r}};function QO(e){return new R0(e)}function $0(e){this._context=e}$0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var t=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+r)/6;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 3:this._point=4;default:wi(this,e,r);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r}};function eP(e){return new $0(e)}function q0(e){this._context=e}q0.prototype={areaStart:xi,areaEnd:xi,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,r){e=+e,r=+r,this._point?this._context.lineTo(e,r):(this._point=1,this._context.moveTo(e,r))}};function rP(e){return new q0(e)}function Rv(e){return e<0?-1:1}function $v(e,r,t){var n=e._x1-e._x0,i=r-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(t-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(Rv(a)+Rv(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function qv(e,r){var t=e._x1-e._x0;return t?(3*(e._y1-e._y0)/t-r)/2:r}function du(e,r,t){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*r,a-u,o-u*t,a,o)}function _i(e){this._context=e}_i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:du(this,this._t0,qv(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){var t=NaN;if(e=+e,r=+r,!(e===this._x1&&r===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3,du(this,qv(this,t=$v(this,e,r)),t);break;default:du(this,this._t0,t=$v(this,e,r));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r,this._t0=t}}};function L0(e){this._context=new B0(e)}(L0.prototype=Object.create(_i.prototype)).point=function(e,r){_i.prototype.point.call(this,r,e)};function B0(e){this._context=e}B0.prototype={moveTo:function(e,r){this._context.moveTo(r,e)},closePath:function(){this._context.closePath()},lineTo:function(e,r){this._context.lineTo(r,e)},bezierCurveTo:function(e,r,t,n,i,a){this._context.bezierCurveTo(r,e,n,t,a,i)}};function tP(e){return new _i(e)}function nP(e){return new L0(e)}function z0(e){this._context=e}z0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,r=this._y,t=e.length;if(t)if(this._line?this._context.lineTo(e[0],r[0]):this._context.moveTo(e[0],r[0]),t===2)this._context.lineTo(e[1],r[1]);else for(var n=Lv(e),i=Lv(r),a=0,o=1;o<t;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],r[o]);(this._line||this._line!==0&&t===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,r){this._x.push(+e),this._y.push(+r)}};function Lv(e){var r,t=e.length-1,n,i=new Array(t),a=new Array(t),o=new Array(t);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],r=1;r<t-1;++r)i[r]=1,a[r]=4,o[r]=4*e[r]+2*e[r+1];for(i[t-1]=2,a[t-1]=7,o[t-1]=8*e[t-1]+e[t],r=1;r<t;++r)n=i[r]/a[r-1],a[r]-=n,o[r]-=n*o[r-1];for(i[t-1]=o[t-1]/a[t-1],r=t-2;r>=0;--r)i[r]=(o[r]-i[r+1])/a[r];for(a[t-1]=(e[t]+i[t-1])/2,r=0;r<t-1;++r)a[r]=2*e[r+1]-i[r+1];return[i,a]}function iP(e){return new z0(e)}function ya(e,r){this._context=e,this._t=r}ya.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,r),this._context.lineTo(e,r);else{var t=this._x*(1-this._t)+e*this._t;this._context.lineTo(t,this._y),this._context.lineTo(t,r)}break}}this._x=e,this._y=r}};function aP(e){return new ya(e,.5)}function oP(e){return new ya(e,0)}function uP(e){return new ya(e,1)}function nt(e,r){if((o=e.length)>1)for(var t=1,n,i,a=e[r[0]],o,u=a.length;t<o;++t)for(i=a,a=e[r[t]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function ac(e){for(var r=e.length,t=new Array(r);--r>=0;)t[r]=r;return t}function sP(e,r){return e[r]}function lP(e){const r=[];return r.key=e,r}function cP(){var e=ee([]),r=ac,t=nt,n=sP;function i(a){var o=Array.from(e.apply(this,arguments),lP),u,s=o.length,l=-1,c;for(const f of a)for(u=0,++l;u<s;++u)(o[u][l]=[0,+n(f,o[u].key,l,a)]).data=f;for(u=0,c=nf(r(o));u<s;++u)o[c[u]].index=u;return t(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:ee(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:ee(+a),i):n},i.order=function(a){return arguments.length?(r=a==null?ac:typeof a=="function"?a:ee(Array.from(a)),i):r},i.offset=function(a){return arguments.length?(t=a??nt,i):t},i}function fP(e,r){if((n=e.length)>0){for(var t,n,i=0,a=e[0].length,o;i<a;++i){for(o=t=0;t<n;++t)o+=e[t][i][1]||0;if(o)for(t=0;t<n;++t)e[t][i][1]/=o}nt(e,r)}}function dP(e,r){if((i=e.length)>0){for(var t=0,n=e[r[0]],i,a=n.length;t<a;++t){for(var o=0,u=0;o<i;++o)u+=e[o][t][1]||0;n[t][1]+=n[t][0]=-u/2}nt(e,r)}}function vP(e,r){if(!(!((o=e.length)>0)||!((a=(i=e[r[0]]).length)>0))){for(var t=0,n=1,i,a,o;n<a;++n){for(var u=0,s=0,l=0;u<o;++u){for(var c=e[r[u]],f=c[n][1]||0,d=c[n-1][1]||0,v=(f-d)/2,h=0;h<u;++h){var p=e[r[h]],m=p[n][1]||0,g=p[n-1][1]||0;v+=m-g}s+=f,l+=v*f}i[n-1][1]+=i[n-1][0]=t,s&&(t-=l/s)}i[n-1][1]+=i[n-1][0]=t,nt(e,r)}}var vu,Bv;function hP(){if(Bv)return vu;Bv=1;var e=da();function r(){this.__data__=new e,this.size=0}return vu=r,vu}var hu,zv;function pP(){if(zv)return hu;zv=1;function e(r){var t=this.__data__,n=t.delete(r);return this.size=t.size,n}return hu=e,hu}var pu,Fv;function mP(){if(Fv)return pu;Fv=1;function e(r){return this.__data__.get(r)}return pu=e,pu}var mu,Uv;function yP(){if(Uv)return mu;Uv=1;function e(r){return this.__data__.has(r)}return mu=e,mu}var yu,Kv;function gP(){if(Kv)return yu;Kv=1;var e=da(),r=Qc(),t=ef(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var s=u.__data__;if(!r||s.length<n-1)return s.push([a,o]),this.size=++u.size,this;u=this.__data__=new t(s)}return u.set(a,o),this.size=u.size,this}return yu=i,yu}var gu,Hv;function F0(){if(Hv)return gu;Hv=1;var e=da(),r=hP(),t=pP(),n=mP(),i=yP(),a=gP();function o(u){var s=this.__data__=new e(u);this.size=s.size}return o.prototype.clear=r,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,gu=o,gu}var bu,Wv;function bP(){if(Wv)return bu;Wv=1;var e="__lodash_hash_undefined__";function r(t){return this.__data__.set(t,e),this}return bu=r,bu}var xu,Gv;function xP(){if(Gv)return xu;Gv=1;function e(r){return this.__data__.has(r)}return xu=e,xu}var wu,Yv;function U0(){if(Yv)return wu;Yv=1;var e=ef(),r=bP(),t=xP();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=r,n.prototype.has=t,wu=n,wu}var _u,Vv;function wP(){if(Vv)return _u;Vv=1;function e(r,t){for(var n=-1,i=r==null?0:r.length;++n<i;)if(t(r[n],n,r))return!0;return!1}return _u=e,_u}var Ou,Xv;function K0(){if(Xv)return Ou;Xv=1;function e(r,t){return r.has(t)}return Ou=e,Ou}var Pu,Zv;function H0(){if(Zv)return Pu;Zv=1;var e=U0(),r=wP(),t=K0(),n=1,i=2;function a(o,u,s,l,c,f){var d=s&n,v=o.length,h=u.length;if(v!=h&&!(d&&h>v))return!1;var p=f.get(o),m=f.get(u);if(p&&m)return p==u&&m==o;var g=-1,b=!0,x=s&i?new e:void 0;for(f.set(o,u),f.set(u,o);++g<v;){var _=o[g],w=u[g];if(l)var O=d?l(w,_,g,u,o,f):l(_,w,g,o,u,f);if(O!==void 0){if(O)continue;b=!1;break}if(x){if(!r(u,function(P,E){if(!t(x,E)&&(_===P||c(_,P,s,l,f)))return x.push(E)})){b=!1;break}}else if(!(_===w||c(_,w,s,l,f))){b=!1;break}}return f.delete(o),f.delete(u),b}return Pu=a,Pu}var Su,Jv;function _P(){if(Jv)return Su;Jv=1;var e=mr(),r=e.Uint8Array;return Su=r,Su}var Au,Qv;function OP(){if(Qv)return Au;Qv=1;function e(r){var t=-1,n=Array(r.size);return r.forEach(function(i,a){n[++t]=[a,i]}),n}return Au=e,Au}var Cu,eh;function of(){if(eh)return Cu;eh=1;function e(r){var t=-1,n=Array(r.size);return r.forEach(function(i){n[++t]=i}),n}return Cu=e,Cu}var Eu,rh;function PP(){if(rh)return Eu;rh=1;var e=Pn(),r=_P(),t=Jc(),n=H0(),i=OP(),a=of(),o=1,u=2,s="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Map]",d="[object Number]",v="[object RegExp]",h="[object Set]",p="[object String]",m="[object Symbol]",g="[object ArrayBuffer]",b="[object DataView]",x=e?e.prototype:void 0,_=x?x.valueOf:void 0;function w(O,P,E,N,D,A,j){switch(E){case b:if(O.byteLength!=P.byteLength||O.byteOffset!=P.byteOffset)return!1;O=O.buffer,P=P.buffer;case g:return!(O.byteLength!=P.byteLength||!A(new r(O),new r(P)));case s:case l:case d:return t(+O,+P);case c:return O.name==P.name&&O.message==P.message;case v:case p:return O==P+"";case f:var M=i;case h:var k=N&o;if(M||(M=a),O.size!=P.size&&!k)return!1;var $=j.get(O);if($)return $==P;N|=u,j.set(O,P);var L=n(M(O),M(P),N,D,A,j);return j.delete(O),L;case m:if(_)return _.call(O)==_.call(P)}return!1}return Eu=w,Eu}var Tu,th;function W0(){if(th)return Tu;th=1;function e(r,t){for(var n=-1,i=t.length,a=r.length;++n<i;)r[a+n]=t[n];return r}return Tu=e,Tu}var Iu,nh;function SP(){if(nh)return Iu;nh=1;var e=W0(),r=nr();function t(n,i,a){var o=i(n);return r(n)?o:e(o,a(n))}return Iu=t,Iu}var Mu,ih;function AP(){if(ih)return Mu;ih=1;function e(r,t){for(var n=-1,i=r==null?0:r.length,a=0,o=[];++n<i;){var u=r[n];t(u,n,r)&&(o[a++]=u)}return o}return Mu=e,Mu}var ju,ah;function CP(){if(ah)return ju;ah=1;function e(){return[]}return ju=e,ju}var Nu,oh;function EP(){if(oh)return Nu;oh=1;var e=AP(),r=CP(),t=Object.prototype,n=t.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return n.call(o,u)}))}:r;return Nu=a,Nu}var ku,uh;function TP(){if(uh)return ku;uh=1;function e(r,t){for(var n=-1,i=Array(r);++n<r;)i[n]=t(n);return i}return ku=e,ku}var Du,sh;function IP(){if(sh)return Du;sh=1;var e=lt(),r=ct(),t="[object Arguments]";function n(i){return r(i)&&e(i)==t}return Du=n,Du}var Ru,lh;function uf(){if(lh)return Ru;lh=1;var e=IP(),r=ct(),t=Object.prototype,n=t.hasOwnProperty,i=t.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return r(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return Ru=a,Ru}var Qt={exports:{}},$u,ch;function MP(){if(ch)return $u;ch=1;function e(){return!1}return $u=e,$u}Qt.exports;var fh;function G0(){return fh||(fh=1,(function(e,r){var t=mr(),n=MP(),i=r&&!r.nodeType&&r,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?t.Buffer:void 0,s=u?u.isBuffer:void 0,l=s||n;e.exports=l})(Qt,Qt.exports)),Qt.exports}var qu,dh;function sf(){if(dh)return qu;dh=1;var e=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function t(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&r.test(n))&&n>-1&&n%1==0&&n<i}return qu=t,qu}var Lu,vh;function lf(){if(vh)return Lu;vh=1;var e=9007199254740991;function r(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=e}return Lu=r,Lu}var Bu,hh;function jP(){if(hh)return Bu;hh=1;var e=lt(),r=lf(),t=ct(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object RegExp]",v="[object Set]",h="[object String]",p="[object WeakMap]",m="[object ArrayBuffer]",g="[object DataView]",b="[object Float32Array]",x="[object Float64Array]",_="[object Int8Array]",w="[object Int16Array]",O="[object Int32Array]",P="[object Uint8Array]",E="[object Uint8ClampedArray]",N="[object Uint16Array]",D="[object Uint32Array]",A={};A[b]=A[x]=A[_]=A[w]=A[O]=A[P]=A[E]=A[N]=A[D]=!0,A[n]=A[i]=A[m]=A[a]=A[g]=A[o]=A[u]=A[s]=A[l]=A[c]=A[f]=A[d]=A[v]=A[h]=A[p]=!1;function j(M){return t(M)&&r(M.length)&&!!A[e(M)]}return Bu=j,Bu}var zu,ph;function Y0(){if(ph)return zu;ph=1;function e(r){return function(t){return r(t)}}return zu=e,zu}var en={exports:{}};en.exports;var mh;function NP(){return mh||(mh=1,(function(e,r){var t=b0(),n=r&&!r.nodeType&&r,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&t.process,u=(function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(en,en.exports)),en.exports}var Fu,yh;function V0(){if(yh)return Fu;yh=1;var e=jP(),r=Y0(),t=NP(),n=t&&t.isTypedArray,i=n?r(n):e;return Fu=i,Fu}var Uu,gh;function kP(){if(gh)return Uu;gh=1;var e=TP(),r=uf(),t=nr(),n=G0(),i=sf(),a=V0(),o=Object.prototype,u=o.hasOwnProperty;function s(l,c){var f=t(l),d=!f&&r(l),v=!f&&!d&&n(l),h=!f&&!d&&!v&&a(l),p=f||d||v||h,m=p?e(l.length,String):[],g=m.length;for(var b in l)(c||u.call(l,b))&&!(p&&(b=="length"||v&&(b=="offset"||b=="parent")||h&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,g)))&&m.push(b);return m}return Uu=s,Uu}var Ku,bh;function DP(){if(bh)return Ku;bh=1;var e=Object.prototype;function r(t){var n=t&&t.constructor,i=typeof n=="function"&&n.prototype||e;return t===i}return Ku=r,Ku}var Hu,xh;function RP(){if(xh)return Hu;xh=1;function e(r,t){return function(n){return r(t(n))}}return Hu=e,Hu}var Wu,wh;function $P(){if(wh)return Wu;wh=1;var e=RP(),r=e(Object.keys,Object);return Wu=r,Wu}var Gu,_h;function qP(){if(_h)return Gu;_h=1;var e=DP(),r=$P(),t=Object.prototype,n=t.hasOwnProperty;function i(a){if(!e(a))return r(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return Gu=i,Gu}var Yu,Oh;function ga(){if(Oh)return Yu;Oh=1;var e=Zc(),r=lf();function t(n){return n!=null&&r(n.length)&&!e(n)}return Yu=t,Yu}var Vu,Ph;function cf(){if(Ph)return Vu;Ph=1;var e=kP(),r=qP(),t=ga();function n(i){return t(i)?e(i):r(i)}return Vu=n,Vu}var Xu,Sh;function LP(){if(Sh)return Xu;Sh=1;var e=SP(),r=EP(),t=cf();function n(i){return e(i,t,r)}return Xu=n,Xu}var Zu,Ah;function BP(){if(Ah)return Zu;Ah=1;var e=LP(),r=1,t=Object.prototype,n=t.hasOwnProperty;function i(a,o,u,s,l,c){var f=u&r,d=e(a),v=d.length,h=e(o),p=h.length;if(v!=p&&!f)return!1;for(var m=v;m--;){var g=d[m];if(!(f?g in o:n.call(o,g)))return!1}var b=c.get(a),x=c.get(o);if(b&&x)return b==o&&x==a;var _=!0;c.set(a,o),c.set(o,a);for(var w=f;++m<v;){g=d[m];var O=a[g],P=o[g];if(s)var E=f?s(P,O,g,o,a,c):s(O,P,g,a,o,c);if(!(E===void 0?O===P||l(O,P,u,s,c):E)){_=!1;break}w||(w=g=="constructor")}if(_&&!w){var N=a.constructor,D=o.constructor;N!=D&&"constructor"in a&&"constructor"in o&&!(typeof N=="function"&&N instanceof N&&typeof D=="function"&&D instanceof D)&&(_=!1)}return c.delete(a),c.delete(o),_}return Zu=i,Zu}var Ju,Ch;function zP(){if(Ch)return Ju;Ch=1;var e=ft(),r=mr(),t=e(r,"DataView");return Ju=t,Ju}var Qu,Eh;function FP(){if(Eh)return Qu;Eh=1;var e=ft(),r=mr(),t=e(r,"Promise");return Qu=t,Qu}var es,Th;function X0(){if(Th)return es;Th=1;var e=ft(),r=mr(),t=e(r,"Set");return es=t,es}var rs,Ih;function UP(){if(Ih)return rs;Ih=1;var e=ft(),r=mr(),t=e(r,"WeakMap");return rs=t,rs}var ts,Mh;function KP(){if(Mh)return ts;Mh=1;var e=zP(),r=Qc(),t=FP(),n=X0(),i=UP(),a=lt(),o=x0(),u="[object Map]",s="[object Object]",l="[object Promise]",c="[object Set]",f="[object WeakMap]",d="[object DataView]",v=o(e),h=o(r),p=o(t),m=o(n),g=o(i),b=a;return(e&&b(new e(new ArrayBuffer(1)))!=d||r&&b(new r)!=u||t&&b(t.resolve())!=l||n&&b(new n)!=c||i&&b(new i)!=f)&&(b=function(x){var _=a(x),w=_==s?x.constructor:void 0,O=w?o(w):"";if(O)switch(O){case v:return d;case h:return u;case p:return l;case m:return c;case g:return f}return _}),ts=b,ts}var ns,jh;function HP(){if(jh)return ns;jh=1;var e=F0(),r=H0(),t=PP(),n=BP(),i=KP(),a=nr(),o=G0(),u=V0(),s=1,l="[object Arguments]",c="[object Array]",f="[object Object]",d=Object.prototype,v=d.hasOwnProperty;function h(p,m,g,b,x,_){var w=a(p),O=a(m),P=w?c:i(p),E=O?c:i(m);P=P==l?f:P,E=E==l?f:E;var N=P==f,D=E==f,A=P==E;if(A&&o(p)){if(!o(m))return!1;w=!0,N=!1}if(A&&!N)return _||(_=new e),w||u(p)?r(p,m,g,b,x,_):t(p,m,P,g,b,x,_);if(!(g&s)){var j=N&&v.call(p,"__wrapped__"),M=D&&v.call(m,"__wrapped__");if(j||M){var k=j?p.value():p,$=M?m.value():m;return _||(_=new e),x(k,$,g,b,_)}}return A?(_||(_=new e),n(p,m,g,b,x,_)):!1}return ns=h,ns}var is,Nh;function Z0(){if(Nh)return is;Nh=1;var e=HP(),r=ct();function t(n,i,a,o,u){return n===i?!0:n==null||i==null||!r(n)&&!r(i)?n!==n&&i!==i:e(n,i,a,o,t,u)}return is=t,is}var as,kh;function WP(){if(kh)return as;kh=1;var e=F0(),r=Z0(),t=1,n=2;function i(a,o,u,s){var l=u.length,c=l,f=!s;if(a==null)return!c;for(a=Object(a);l--;){var d=u[l];if(f&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++l<c;){d=u[l];var v=d[0],h=a[v],p=d[1];if(f&&d[2]){if(h===void 0&&!(v in a))return!1}else{var m=new e;if(s)var g=s(h,p,v,a,o,m);if(!(g===void 0?r(p,h,t|n,s,m):g))return!1}}return!0}return as=i,as}var os,Dh;function J0(){if(Dh)return os;Dh=1;var e=Fr();function r(t){return t===t&&!e(t)}return os=r,os}var us,Rh;function GP(){if(Rh)return us;Rh=1;var e=J0(),r=cf();function t(n){for(var i=r(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,e(u)]}return i}return us=t,us}var ss,$h;function Q0(){if($h)return ss;$h=1;function e(r,t){return function(n){return n==null?!1:n[r]===t&&(t!==void 0||r in Object(n))}}return ss=e,ss}var ls,qh;function YP(){if(qh)return ls;qh=1;var e=WP(),r=GP(),t=Q0();function n(i){var a=r(i);return a.length==1&&a[0][2]?t(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return ls=n,ls}var cs,Lh;function VP(){if(Lh)return cs;Lh=1;function e(r,t){return r!=null&&t in Object(r)}return cs=e,cs}var fs,Bh;function XP(){if(Bh)return fs;Bh=1;var e=_0(),r=uf(),t=nr(),n=sf(),i=lf(),a=ha();function o(u,s,l){s=e(s,u);for(var c=-1,f=s.length,d=!1;++c<f;){var v=a(s[c]);if(!(d=u!=null&&l(u,v)))break;u=u[v]}return d||++c!=f?d:(f=u==null?0:u.length,!!f&&i(f)&&n(v,f)&&(t(u)||r(u)))}return fs=o,fs}var ds,zh;function ZP(){if(zh)return ds;zh=1;var e=VP(),r=XP();function t(n,i){return n!=null&&r(n,i,e)}return ds=t,ds}var vs,Fh;function JP(){if(Fh)return vs;Fh=1;var e=Z0(),r=O0(),t=ZP(),n=Xc(),i=J0(),a=Q0(),o=ha(),u=1,s=2;function l(c,f){return n(c)&&i(f)?a(o(c),f):function(d){var v=r(d,c);return v===void 0&&v===f?t(d,c):e(f,v,u|s)}}return vs=l,vs}var hs,Uh;function ba(){if(Uh)return hs;Uh=1;function e(r){return r}return hs=e,hs}var ps,Kh;function QP(){if(Kh)return ps;Kh=1;function e(r){return function(t){return t?.[r]}}return ps=e,ps}var ms,Hh;function eS(){if(Hh)return ms;Hh=1;var e=rf();function r(t){return function(n){return e(n,t)}}return ms=r,ms}var ys,Wh;function rS(){if(Wh)return ys;Wh=1;var e=QP(),r=eS(),t=Xc(),n=ha();function i(a){return t(a)?e(n(a)):r(a)}return ys=i,ys}var gs,Gh;function eb(){if(Gh)return gs;Gh=1;var e=YP(),r=JP(),t=ba(),n=nr(),i=rS();function a(o){return typeof o=="function"?o:o==null?t:typeof o=="object"?n(o)?r(o[0],o[1]):e(o):i(o)}return gs=a,gs}var bs,Yh;function tS(){if(Yh)return bs;Yh=1;function e(r,t,n,i){for(var a=r.length,o=n+(i?1:-1);i?o--:++o<a;)if(t(r[o],o,r))return o;return-1}return bs=e,bs}var xs,Vh;function nS(){if(Vh)return xs;Vh=1;function e(r){return r!==r}return xs=e,xs}var ws,Xh;function iS(){if(Xh)return ws;Xh=1;function e(r,t,n){for(var i=n-1,a=r.length;++i<a;)if(r[i]===t)return i;return-1}return ws=e,ws}var _s,Zh;function aS(){if(Zh)return _s;Zh=1;var e=tS(),r=nS(),t=iS();function n(i,a,o){return a===a?t(i,a,o):e(i,r,o)}return _s=n,_s}var Os,Jh;function oS(){if(Jh)return Os;Jh=1;var e=aS();function r(t,n){var i=t==null?0:t.length;return!!i&&e(t,n,0)>-1}return Os=r,Os}var Ps,Qh;function uS(){if(Qh)return Ps;Qh=1;function e(r,t,n){for(var i=-1,a=r==null?0:r.length;++i<a;)if(n(t,r[i]))return!0;return!1}return Ps=e,Ps}var Ss,ep;function sS(){if(ep)return Ss;ep=1;function e(){}return Ss=e,Ss}var As,rp;function lS(){if(rp)return As;rp=1;var e=X0(),r=sS(),t=of(),n=1/0,i=e&&1/t(new e([,-0]))[1]==n?function(a){return new e(a)}:r;return As=i,As}var Cs,tp;function cS(){if(tp)return Cs;tp=1;var e=U0(),r=oS(),t=uS(),n=K0(),i=lS(),a=of(),o=200;function u(s,l,c){var f=-1,d=r,v=s.length,h=!0,p=[],m=p;if(c)h=!1,d=t;else if(v>=o){var g=l?null:i(s);if(g)return a(g);h=!1,d=n,m=new e}else m=l?[]:p;e:for(;++f<v;){var b=s[f],x=l?l(b):b;if(b=c||b!==0?b:0,h&&x===x){for(var _=m.length;_--;)if(m[_]===x)continue e;l&&m.push(x),p.push(b)}else d(m,x,c)||(m!==p&&m.push(x),p.push(b))}return p}return Cs=u,Cs}var Es,np;function fS(){if(np)return Es;np=1;var e=eb(),r=cS();function t(n,i){return n&&n.length?r(n,e(i,2)):[]}return Es=t,Es}var dS=fS();const ip=Ne(dS);function vS(e,r,t){return r===!0?ip(e,t):EO(r)?ip(e,r):e}var Ts,ap;function hS(){if(ap)return Ts;ap=1;var e=Pn(),r=uf(),t=nr(),n=e?e.isConcatSpreadable:void 0;function i(a){return t(a)||r(a)||!!(n&&a&&a[n])}return Ts=i,Ts}var Is,op;function pS(){if(op)return Is;op=1;var e=W0(),r=hS();function t(n,i,a,o,u){var s=-1,l=n.length;for(a||(a=r),u||(u=[]);++s<l;){var c=n[s];i>0&&a(c)?i>1?t(c,i-1,a,o,u):e(u,c):o||(u[u.length]=c)}return u}return Is=t,Is}var Ms,up;function mS(){if(up)return Ms;up=1;function e(r){return function(t,n,i){for(var a=-1,o=Object(t),u=i(t),s=u.length;s--;){var l=u[r?s:++a];if(n(o[l],l,o)===!1)break}return t}}return Ms=e,Ms}var js,sp;function yS(){if(sp)return js;sp=1;var e=mS(),r=e();return js=r,js}var Ns,lp;function gS(){if(lp)return Ns;lp=1;var e=yS(),r=cf();function t(n,i){return n&&e(n,i,r)}return Ns=t,Ns}var ks,cp;function bS(){if(cp)return ks;cp=1;var e=ga();function r(t,n){return function(i,a){if(i==null)return i;if(!e(i))return t(i,a);for(var o=i.length,u=n?o:-1,s=Object(i);(n?u--:++u<o)&&a(s[u],u,s)!==!1;);return i}}return ks=r,ks}var Ds,fp;function xS(){if(fp)return Ds;fp=1;var e=gS(),r=bS(),t=r(e);return Ds=t,Ds}var Rs,dp;function wS(){if(dp)return Rs;dp=1;var e=xS(),r=ga();function t(n,i){var a=-1,o=r(n)?Array(n.length):[];return e(n,function(u,s,l){o[++a]=i(u,s,l)}),o}return Rs=t,Rs}var $s,vp;function _S(){if(vp)return $s;vp=1;function e(r,t){var n=r.length;for(r.sort(t);n--;)r[n]=r[n].value;return r}return $s=e,$s}var qs,hp;function OS(){if(hp)return qs;hp=1;var e=Sn();function r(t,n){if(t!==n){var i=t!==void 0,a=t===null,o=t===t,u=e(t),s=n!==void 0,l=n===null,c=n===n,f=e(n);if(!l&&!f&&!u&&t>n||u&&s&&c&&!l&&!f||a&&s&&c||!i&&c||!o)return 1;if(!a&&!u&&!f&&t<n||f&&i&&o&&!a&&!u||l&&i&&o||!s&&o||!c)return-1}return 0}return qs=r,qs}var Ls,pp;function PS(){if(pp)return Ls;pp=1;var e=OS();function r(t,n,i){for(var a=-1,o=t.criteria,u=n.criteria,s=o.length,l=i.length;++a<s;){var c=e(o[a],u[a]);if(c){if(a>=l)return c;var f=i[a];return c*(f=="desc"?-1:1)}}return t.index-n.index}return Ls=r,Ls}var Bs,mp;function SS(){if(mp)return Bs;mp=1;var e=w0(),r=rf(),t=eb(),n=wS(),i=_S(),a=Y0(),o=PS(),u=ba(),s=nr();function l(c,f,d){f.length?f=e(f,function(p){return s(p)?function(m){return r(m,p.length===1?p[0]:p)}:p}):f=[u];var v=-1;f=e(f,a(t));var h=n(c,function(p,m,g){var b=e(f,function(x){return x(p)});return{criteria:b,index:++v,value:p}});return i(h,function(p,m){return o(p,m,d)})}return Bs=l,Bs}var zs,yp;function AS(){if(yp)return zs;yp=1;function e(r,t,n){switch(n.length){case 0:return r.call(t);case 1:return r.call(t,n[0]);case 2:return r.call(t,n[0],n[1]);case 3:return r.call(t,n[0],n[1],n[2])}return r.apply(t,n)}return zs=e,zs}var Fs,gp;function CS(){if(gp)return Fs;gp=1;var e=AS(),r=Math.max;function t(n,i,a){return i=r(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,s=r(o.length-i,0),l=Array(s);++u<s;)l[u]=o[i+u];u=-1;for(var c=Array(i+1);++u<i;)c[u]=o[u];return c[i]=a(l),e(n,this,c)}}return Fs=t,Fs}var Us,bp;function ES(){if(bp)return Us;bp=1;function e(r){return function(){return r}}return Us=e,Us}var Ks,xp;function TS(){if(xp)return Ks;xp=1;var e=ft(),r=(function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}})();return Ks=r,Ks}var Hs,wp;function IS(){if(wp)return Hs;wp=1;var e=ES(),r=TS(),t=ba(),n=r?function(i,a){return r(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:t;return Hs=n,Hs}var Ws,_p;function MS(){if(_p)return Ws;_p=1;var e=800,r=16,t=Date.now;function n(i){var a=0,o=0;return function(){var u=t(),s=r-(u-o);if(o=u,s>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Ws=n,Ws}var Gs,Op;function jS(){if(Op)return Gs;Op=1;var e=IS(),r=MS(),t=r(e);return Gs=t,Gs}var Ys,Pp;function NS(){if(Pp)return Ys;Pp=1;var e=ba(),r=CS(),t=jS();function n(i,a){return t(r(i,a,e),i+"")}return Ys=n,Ys}var Vs,Sp;function kS(){if(Sp)return Vs;Sp=1;var e=Jc(),r=ga(),t=sf(),n=Fr();function i(a,o,u){if(!n(u))return!1;var s=typeof o;return(s=="number"?r(u)&&t(o,u.length):s=="string"&&o in u)?e(u[o],a):!1}return Vs=i,Vs}var Xs,Ap;function DS(){if(Ap)return Xs;Ap=1;var e=pS(),r=SS(),t=NS(),n=kS(),i=t(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),r(a,e(o,1),[])});return Xs=i,Xs}var RS=DS();const $S=Ne(RS);function un(e){"@babel/helpers - typeof";return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},un(e)}function oc(){return oc=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},oc.apply(this,arguments)}function qS(e,r){return FS(e)||zS(e,r)||BS(e,r)||LS()}function LS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{r as y,ai as Hn,aj as Ne,V as Ae,F as he,c as zr,j as T,ak as h_,al as p_,am as m_,an as y_,ao as g_,f as b_,t as x_}from"./index-BdKUt3kP.js";import{c as Dr,B as Kt}from"./button-BZJKEz_E.js";import{r as w_}from"./index-DCwxWpOb.js";import{u as __,c as to,b as no,T as io,i as _d}from"./tooltip-DGJnwA8J.js";import{a as Od}from"./Copy01-sTNxtLGb.js";import{i as O_,J as Pd}from"./json-syntax-highlighter-BUSqZgZm.js";const Ql=({size:e=24,color:r="currentColor",...t})=>y.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},y.createElement("path",{d:"M21 15v1.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V15m14-5-5 5m0 0-5-5m5 5V3"}));Ql.displayName="Download01";function Gc(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function m0(e,r){var t=Object.create(e.prototype);for(var n in r)t[n]=r[n];return t}function On(){}var nn=.7,hi=1/nn,Pt="\\s*([+-]?\\d+)\\s*",an="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",P_=/^#([0-9a-f]{3,8})$/,S_=new RegExp(`^rgb\\(${Pt},${Pt},${Pt}\\)$`),A_=new RegExp(`^rgb\\(${vr},${vr},${vr}\\)$`),C_=new RegExp(`^rgba\\(${Pt},${Pt},${Pt},${an}\\)$`),E_=new RegExp(`^rgba\\(${vr},${vr},${vr},${an}\\)$`),T_=new RegExp(`^hsl\\(${an},${vr},${vr}\\)$`),I_=new RegExp(`^hsla\\(${an},${vr},${vr},${an}\\)$`),Sd={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Gc(On,on,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ad,formatHex:Ad,formatHex8:M_,formatHsl:j_,formatRgb:Cd,toString:Cd});function Ad(){return this.rgb().formatHex()}function M_(){return this.rgb().formatHex8()}function j_(){return y0(this).formatHsl()}function Cd(){return this.rgb().formatRgb()}function on(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=P_.exec(e))?(t=r[1].length,r=parseInt(r[1],16),t===6?Ed(r):t===3?new je(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):t===8?Wn(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):t===4?Wn(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=S_.exec(e))?new je(r[1],r[2],r[3],1):(r=A_.exec(e))?new je(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=C_.exec(e))?Wn(r[1],r[2],r[3],r[4]):(r=E_.exec(e))?Wn(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=T_.exec(e))?Md(r[1],r[2]/100,r[3]/100,1):(r=I_.exec(e))?Md(r[1],r[2]/100,r[3]/100,r[4]):Sd.hasOwnProperty(e)?Ed(Sd[e]):e==="transparent"?new je(NaN,NaN,NaN,0):null}function Ed(e){return new je(e>>16&255,e>>8&255,e&255,1)}function Wn(e,r,t,n){return n<=0&&(e=r=t=NaN),new je(e,r,t,n)}function N_(e){return e instanceof On||(e=on(e)),e?(e=e.rgb(),new je(e.r,e.g,e.b,e.opacity)):new je}function ec(e,r,t,n){return arguments.length===1?N_(e):new je(e,r,t,n??1)}function je(e,r,t,n){this.r=+e,this.g=+r,this.b=+t,this.opacity=+n}Gc(je,ec,m0(On,{brighter(e){return e=e==null?hi:Math.pow(hi,e),new je(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?nn:Math.pow(nn,e),new je(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new je(et(this.r),et(this.g),et(this.b),pi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Td,formatHex:Td,formatHex8:k_,formatRgb:Id,toString:Id}));function Td(){return`#${Zr(this.r)}${Zr(this.g)}${Zr(this.b)}`}function k_(){return`#${Zr(this.r)}${Zr(this.g)}${Zr(this.b)}${Zr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Id(){const e=pi(this.opacity);return`${e===1?"rgb(":"rgba("}${et(this.r)}, ${et(this.g)}, ${et(this.b)}${e===1?")":`, ${e})`}`}function pi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function et(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Zr(e){return e=et(e),(e<16?"0":"")+e.toString(16)}function Md(e,r,t,n){return n<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new Ze(e,r,t,n)}function y0(e){if(e instanceof Ze)return new Ze(e.h,e.s,e.l,e.opacity);if(e instanceof On||(e=on(e)),!e)return new Ze;if(e instanceof Ze)return e;e=e.rgb();var r=e.r/255,t=e.g/255,n=e.b/255,i=Math.min(r,t,n),a=Math.max(r,t,n),o=NaN,u=a-i,s=(a+i)/2;return u?(r===a?o=(t-n)/u+(t<n)*6:t===a?o=(n-r)/u+2:o=(r-t)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new Ze(o,u,s,e.opacity)}function D_(e,r,t,n){return arguments.length===1?y0(e):new Ze(e,r,t,n??1)}function Ze(e,r,t,n){this.h=+e,this.s=+r,this.l=+t,this.opacity=+n}Gc(Ze,D_,m0(On,{brighter(e){return e=e==null?hi:Math.pow(hi,e),new Ze(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?nn:Math.pow(nn,e),new Ze(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*r,i=2*t-n;return new je(ao(e>=240?e-240:e+120,i,n),ao(e,i,n),ao(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Ze(jd(this.h),Gn(this.s),Gn(this.l),pi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=pi(this.opacity);return`${e===1?"hsl(":"hsla("}${jd(this.h)}, ${Gn(this.s)*100}%, ${Gn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function jd(e){return e=(e||0)%360,e<0?e+360:e}function Gn(e){return Math.max(0,Math.min(1,e||0))}function ao(e,r,t){return(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)*255}const Yc=e=>()=>e;function R_(e,r){return function(t){return e+t*r}}function $_(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(n){return Math.pow(e+n*r,t)}}function q_(e){return(e=+e)==1?g0:function(r,t){return t-r?$_(r,t,e):Yc(isNaN(r)?t:r)}}function g0(e,r){var t=r-e;return t?R_(e,t):Yc(isNaN(e)?r:e)}const Nd=(function e(r){var t=q_(r);function n(i,a){var o=t((i=ec(i)).r,(a=ec(a)).r),u=t(i.g,a.g),s=t(i.b,a.b),l=g0(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=u(c),i.b=s(c),i.opacity=l(c),i+""}}return n.gamma=e,n})(1);function L_(e,r){r||(r=[]);var t=e?Math.min(r.length,e.length):0,n=r.slice(),i;return function(a){for(i=0;i<t;++i)n[i]=e[i]*(1-a)+r[i]*a;return n}}function B_(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function z_(e,r){var t=r?r.length:0,n=e?Math.min(t,e.length):0,i=new Array(n),a=new Array(t),o;for(o=0;o<n;++o)i[o]=$t(e[o],r[o]);for(;o<t;++o)a[o]=r[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function F_(e,r){var t=new Date;return e=+e,r=+r,function(n){return t.setTime(e*(1-n)+r*n),t}}function mi(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}function U_(e,r){var t={},n={},i;(e===null||typeof e!="object")&&(e={}),(r===null||typeof r!="object")&&(r={});for(i in r)i in e?t[i]=$t(e[i],r[i]):n[i]=r[i];return function(a){for(i in t)n[i]=t[i](a);return n}}var rc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,oo=new RegExp(rc.source,"g");function K_(e){return function(){return e}}function H_(e){return function(r){return e(r)+""}}function W_(e,r){var t=rc.lastIndex=oo.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",r=r+"";(n=rc.exec(e))&&(i=oo.exec(r));)(a=i.index)>t&&(a=r.slice(t,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:mi(n,i)})),t=oo.lastIndex;return t<r.length&&(a=r.slice(t),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?H_(s[0].x):K_(r):(r=s.length,function(l){for(var c=0,f;c<r;++c)u[(f=s[c]).i]=f.x(l);return u.join("")})}function $t(e,r){var t=typeof r,n;return r==null||t==="boolean"?Yc(r):(t==="number"?mi:t==="string"?(n=on(r))?(r=n,Nd):W_:r instanceof on?Nd:r instanceof Date?F_:B_(r)?L_:Array.isArray(r)?z_:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?U_:mi)(e,r)}function Vc(e,r){return e=+e,r=+r,function(t){return Math.round(e*(1-t)+r*t)}}function G_(e,r){r===void 0&&(r=e,e=$t);for(var t=0,n=r.length-1,i=r[0],a=new Array(n<0?0:n);t<n;)a[t]=e(i,i=r[++t]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}var uo,kd;function nr(){if(kd)return uo;kd=1;var e=Array.isArray;return uo=e,uo}var so,Dd;function b0(){if(Dd)return so;Dd=1;var e=typeof Hn=="object"&&Hn&&Hn.Object===Object&&Hn;return so=e,so}var lo,Rd;function mr(){if(Rd)return lo;Rd=1;var e=b0(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return lo=t,lo}var co,$d;function Pn(){if($d)return co;$d=1;var e=mr(),r=e.Symbol;return co=r,co}var fo,qd;function Y_(){if(qd)return fo;qd=1;var e=Pn(),r=Object.prototype,t=r.hasOwnProperty,n=r.toString,i=e?e.toStringTag:void 0;function a(o){var u=t.call(o,i),s=o[i];try{o[i]=void 0;var l=!0}catch{}var c=n.call(o);return l&&(u?o[i]=s:delete o[i]),c}return fo=a,fo}var vo,Ld;function V_(){if(Ld)return vo;Ld=1;var e=Object.prototype,r=e.toString;function t(n){return r.call(n)}return vo=t,vo}var ho,Bd;function lt(){if(Bd)return ho;Bd=1;var e=Pn(),r=Y_(),t=V_(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?r(u):t(u)}return ho=o,ho}var po,zd;function ct(){if(zd)return po;zd=1;function e(r){return r!=null&&typeof r=="object"}return po=e,po}var mo,Fd;function Sn(){if(Fd)return mo;Fd=1;var e=lt(),r=ct(),t="[object Symbol]";function n(i){return typeof i=="symbol"||r(i)&&e(i)==t}return mo=n,mo}var yo,Ud;function Xc(){if(Ud)return yo;Ud=1;var e=nr(),r=Sn(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||r(a)?!0:n.test(a)||!t.test(a)||o!=null&&a in Object(o)}return yo=i,yo}var go,Kd;function Fr(){if(Kd)return go;Kd=1;function e(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}return go=e,go}var bo,Hd;function Zc(){if(Hd)return bo;Hd=1;var e=lt(),r=Fr(),t="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!r(u))return!1;var s=e(u);return s==n||s==i||s==t||s==a}return bo=o,bo}var xo,Wd;function X_(){if(Wd)return xo;Wd=1;var e=mr(),r=e["__core-js_shared__"];return xo=r,xo}var wo,Gd;function Z_(){if(Gd)return wo;Gd=1;var e=X_(),r=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function t(n){return!!r&&r in n}return wo=t,wo}var _o,Yd;function x0(){if(Yd)return _o;Yd=1;var e=Function.prototype,r=e.toString;function t(n){if(n!=null){try{return r.call(n)}catch{}try{return n+""}catch{}}return""}return _o=t,_o}var Oo,Vd;function J_(){if(Vd)return Oo;Vd=1;var e=Zc(),r=Z_(),t=Fr(),n=x0(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,l=u.hasOwnProperty,c=RegExp("^"+s.call(l).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(d){if(!t(d)||r(d))return!1;var v=e(d)?c:a;return v.test(n(d))}return Oo=f,Oo}var Po,Xd;function Q_(){if(Xd)return Po;Xd=1;function e(r,t){return r?.[t]}return Po=e,Po}var So,Zd;function ft(){if(Zd)return So;Zd=1;var e=J_(),r=Q_();function t(n,i){var a=r(n,i);return e(a)?a:void 0}return So=t,So}var Ao,Jd;function ca(){if(Jd)return Ao;Jd=1;var e=ft(),r=e(Object,"create");return Ao=r,Ao}var Co,Qd;function eO(){if(Qd)return Co;Qd=1;var e=ca();function r(){this.__data__=e?e(null):{},this.size=0}return Co=r,Co}var Eo,ev;function rO(){if(ev)return Eo;ev=1;function e(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}return Eo=e,Eo}var To,rv;function tO(){if(rv)return To;rv=1;var e=ca(),r="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===r?void 0:u}return n.call(o,a)?o[a]:void 0}return To=i,To}var Io,tv;function nO(){if(tv)return Io;tv=1;var e=ca(),r=Object.prototype,t=r.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:t.call(a,i)}return Io=n,Io}var Mo,nv;function iO(){if(nv)return Mo;nv=1;var e=ca(),r="__lodash_hash_undefined__";function t(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?r:i,this}return Mo=t,Mo}var jo,iv;function aO(){if(iv)return jo;iv=1;var e=eO(),r=rO(),t=tO(),n=nO(),i=iO();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var l=o[u];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=t,a.prototype.has=n,a.prototype.set=i,jo=a,jo}var No,av;function oO(){if(av)return No;av=1;function e(){this.__data__=[],this.size=0}return No=e,No}var ko,ov;function Jc(){if(ov)return ko;ov=1;function e(r,t){return r===t||r!==r&&t!==t}return ko=e,ko}var Do,uv;function fa(){if(uv)return Do;uv=1;var e=Jc();function r(t,n){for(var i=t.length;i--;)if(e(t[i][0],n))return i;return-1}return Do=r,Do}var Ro,sv;function uO(){if(sv)return Ro;sv=1;var e=fa(),r=Array.prototype,t=r.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():t.call(a,o,1),--this.size,!0}return Ro=n,Ro}var $o,lv;function sO(){if(lv)return $o;lv=1;var e=fa();function r(t){var n=this.__data__,i=e(n,t);return i<0?void 0:n[i][1]}return $o=r,$o}var qo,cv;function lO(){if(cv)return qo;cv=1;var e=fa();function r(t){return e(this.__data__,t)>-1}return qo=r,qo}var Lo,fv;function cO(){if(fv)return Lo;fv=1;var e=fa();function r(t,n){var i=this.__data__,a=e(i,t);return a<0?(++this.size,i.push([t,n])):i[a][1]=n,this}return Lo=r,Lo}var Bo,dv;function da(){if(dv)return Bo;dv=1;var e=oO(),r=uO(),t=sO(),n=lO(),i=cO();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var l=o[u];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=t,a.prototype.has=n,a.prototype.set=i,Bo=a,Bo}var zo,vv;function Qc(){if(vv)return zo;vv=1;var e=ft(),r=mr(),t=e(r,"Map");return zo=t,zo}var Fo,hv;function fO(){if(hv)return Fo;hv=1;var e=aO(),r=da(),t=Qc();function n(){this.size=0,this.__data__={hash:new e,map:new(t||r),string:new e}}return Fo=n,Fo}var Uo,pv;function dO(){if(pv)return Uo;pv=1;function e(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}return Uo=e,Uo}var Ko,mv;function va(){if(mv)return Ko;mv=1;var e=dO();function r(t,n){var i=t.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Ko=r,Ko}var Ho,yv;function vO(){if(yv)return Ho;yv=1;var e=va();function r(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}return Ho=r,Ho}var Wo,gv;function hO(){if(gv)return Wo;gv=1;var e=va();function r(t){return e(this,t).get(t)}return Wo=r,Wo}var Go,bv;function pO(){if(bv)return Go;bv=1;var e=va();function r(t){return e(this,t).has(t)}return Go=r,Go}var Yo,xv;function mO(){if(xv)return Yo;xv=1;var e=va();function r(t,n){var i=e(this,t),a=i.size;return i.set(t,n),this.size+=i.size==a?0:1,this}return Yo=r,Yo}var Vo,wv;function ef(){if(wv)return Vo;wv=1;var e=fO(),r=vO(),t=hO(),n=pO(),i=mO();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var l=o[u];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=t,a.prototype.has=n,a.prototype.set=i,Vo=a,Vo}var Xo,_v;function yO(){if(_v)return Xo;_v=1;var e=ef(),r="Expected a function";function t(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(r);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],s=a.cache;if(s.has(u))return s.get(u);var l=n.apply(this,o);return a.cache=s.set(u,l)||s,l};return a.cache=new(t.Cache||e),a}return t.Cache=e,Xo=t,Xo}var Zo,Ov;function gO(){if(Ov)return Zo;Ov=1;var e=yO(),r=500;function t(n){var i=e(n,function(o){return a.size===r&&a.clear(),o}),a=i.cache;return i}return Zo=t,Zo}var Jo,Pv;function bO(){if(Pv)return Jo;Pv=1;var e=gO(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(r,function(o,u,s,l){a.push(s?l.replace(t,"$1"):u||o)}),a});return Jo=n,Jo}var Qo,Sv;function w0(){if(Sv)return Qo;Sv=1;function e(r,t){for(var n=-1,i=r==null?0:r.length,a=Array(i);++n<i;)a[n]=t(r[n],n,r);return a}return Qo=e,Qo}var eu,Av;function xO(){if(Av)return eu;Av=1;var e=Pn(),r=w0(),t=nr(),n=Sn(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(t(u))return r(u,o)+"";if(n(u))return a?a.call(u):"";var s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return eu=o,eu}var ru,Cv;function wO(){if(Cv)return ru;Cv=1;var e=xO();function r(t){return t==null?"":e(t)}return ru=r,ru}var tu,Ev;function _0(){if(Ev)return tu;Ev=1;var e=nr(),r=Xc(),t=bO(),n=wO();function i(a,o){return e(a)?a:r(a,o)?[a]:t(n(a))}return tu=i,tu}var nu,Tv;function ha(){if(Tv)return nu;Tv=1;var e=Sn();function r(t){if(typeof t=="string"||e(t))return t;var n=t+"";return n=="0"&&1/t==-1/0?"-0":n}return nu=r,nu}var iu,Iv;function rf(){if(Iv)return iu;Iv=1;var e=_0(),r=ha();function t(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[r(i[a++])];return a&&a==o?n:void 0}return iu=t,iu}var au,Mv;function O0(){if(Mv)return au;Mv=1;var e=rf();function r(t,n,i){var a=t==null?void 0:e(t,n);return a===void 0?i:a}return au=r,au}O0();var ou,jv;function _O(){if(jv)return ou;jv=1;function e(r){return r==null}return ou=e,ou}var OO=_O();const PO=Ne(OO);var uu,Nv;function SO(){if(Nv)return uu;Nv=1;var e=lt(),r=nr(),t=ct(),n="[object String]";function i(a){return typeof a=="string"||!r(a)&&t(a)&&e(a)==n}return uu=i,uu}var AO=SO();const P0=Ne(AO);var CO=Zc();const EO=Ne(CO);Fr();var su,kv;function S0(){if(kv)return su;kv=1;var e=lt(),r=ct(),t="[object Number]";function n(i){return typeof i=="number"||r(i)&&e(i)==t}return su=n,su}var lu,Dv;function TO(){if(Dv)return lu;Dv=1;var e=S0();function r(t){return e(t)&&t!=+t}return lu=r,lu}var IO=TO();const MO=Ne(IO);var jO=S0();const NO=Ne(jO);var Yn=function(r){return P0(r)&&r.indexOf("%")===r.length-1},fr=function(r){return NO(r)&&!MO(r)},yi=function(r){return fr(r)||P0(r)},kO=function(r){return typeof r=="string"?r:r?r.displayName||r.name||"Component":""},cu=function(r,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]};function ee(e){return function(){return e}}const A0=Math.cos,gi=Math.sin,ir=Math.sqrt,bi=Math.PI,pa=2*bi,tc=Math.PI,nc=2*tc,Yr=1e-6,DO=nc-Yr;function C0(e){this._+=e[0];for(let r=1,t=e.length;r<t;++r)this._+=arguments[r]+e[r]}function RO(e){let r=Math.floor(e);if(!(r>=0))throw new Error(`invalid digits: ${e}`);if(r>15)return C0;const t=10**r;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*t)/t+n[i]}}class $O{constructor(r){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=r==null?C0:RO(r)}moveTo(r,t){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(r,t){this._append`L${this._x1=+r},${this._y1=+t}`}quadraticCurveTo(r,t,n,i){this._append`Q${+r},${+t},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(r,t,n,i,a,o){this._append`C${+r},${+t},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(r,t,n,i,a){if(r=+r,t=+t,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,s=n-r,l=i-t,c=o-r,f=u-t,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=r},${this._y1=t}`;else if(d>Yr)if(!(Math.abs(f*s-l*c)>Yr)||!a)this._append`L${this._x1=r},${this._y1=t}`;else{let v=n-o,h=i-u,p=s*s+l*l,m=v*v+h*h,g=Math.sqrt(p),b=Math.sqrt(d),x=a*Math.tan((tc-Math.acos((p+d-m)/(2*g*b)))/2),_=x/b,w=x/g;Math.abs(_-1)>Yr&&this._append`L${r+_*c},${t+_*f}`,this._append`A${a},${a},0,0,${+(f*v>c*h)},${this._x1=r+w*s},${this._y1=t+w*l}`}}arc(r,t,n,i,a,o){if(r=+r,t=+t,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),s=n*Math.sin(i),l=r+u,c=t+s,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${l},${c}`:(Math.abs(this._x1-l)>Yr||Math.abs(this._y1-c)>Yr)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%nc+nc),d>DO?this._append`A${n},${n},0,1,${f},${r-u},${t-s}A${n},${n},0,1,${f},${this._x1=l},${this._y1=c}`:d>Yr&&this._append`A${n},${n},0,${+(d>=tc)},${f},${this._x1=r+n*Math.cos(a)},${this._y1=t+n*Math.sin(a)}`)}rect(r,t,n,i){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+t}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function tf(e){let r=3;return e.digits=function(t){if(!arguments.length)return r;if(t==null)r=null;else{const n=Math.floor(t);if(!(n>=0))throw new RangeError(`invalid digits: ${t}`);r=n}return e},()=>new $O(r)}function nf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function E0(e){this._context=e}E0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:this._context.lineTo(e,r);break}}};function ma(e){return new E0(e)}function T0(e){return e[0]}function I0(e){return e[1]}function M0(e,r){var t=ee(!0),n=null,i=ma,a=null,o=tf(u);e=typeof e=="function"?e:e===void 0?T0:ee(e),r=typeof r=="function"?r:r===void 0?I0:ee(r);function u(s){var l,c=(s=nf(s)).length,f,d=!1,v;for(n==null&&(a=i(v=o())),l=0;l<=c;++l)!(l<c&&t(f=s[l],l,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,l,s),+r(f,l,s));if(v)return a=null,v+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:ee(+s),u):e},u.y=function(s){return arguments.length?(r=typeof s=="function"?s:ee(+s),u):r},u.defined=function(s){return arguments.length?(t=typeof s=="function"?s:ee(!!s),u):t},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function Vn(e,r,t){var n=null,i=ee(!0),a=null,o=ma,u=null,s=tf(l);e=typeof e=="function"?e:e===void 0?T0:ee(+e),r=typeof r=="function"?r:ee(r===void 0?0:+r),t=typeof t=="function"?t:t===void 0?I0:ee(+t);function l(f){var d,v,h,p=(f=nf(f)).length,m,g=!1,b,x=new Array(p),_=new Array(p);for(a==null&&(u=o(b=s())),d=0;d<=p;++d){if(!(d<p&&i(m=f[d],d,f))===g)if(g=!g)v=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),h=d-1;h>=v;--h)u.point(x[h],_[h]);u.lineEnd(),u.areaEnd()}g&&(x[d]=+e(m,d,f),_[d]=+r(m,d,f),u.point(n?+n(m,d,f):x[d],t?+t(m,d,f):_[d]))}if(b)return u=null,b+""||null}function c(){return M0().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(e=typeof f=="function"?f:ee(+f),n=null,l):e},l.x0=function(f){return arguments.length?(e=typeof f=="function"?f:ee(+f),l):e},l.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:ee(+f),l):n},l.y=function(f){return arguments.length?(r=typeof f=="function"?f:ee(+f),t=null,l):r},l.y0=function(f){return arguments.length?(r=typeof f=="function"?f:ee(+f),l):r},l.y1=function(f){return arguments.length?(t=f==null?null:typeof f=="function"?f:ee(+f),l):t},l.lineX0=l.lineY0=function(){return c().x(e).y(r)},l.lineY1=function(){return c().x(e).y(t)},l.lineX1=function(){return c().x(n).y(r)},l.defined=function(f){return arguments.length?(i=typeof f=="function"?f:ee(!!f),l):i},l.curve=function(f){return arguments.length?(o=f,a!=null&&(u=o(a)),l):o},l.context=function(f){return arguments.length?(f==null?a=u=null:u=o(a=f),l):a},l}class j0{constructor(r,t){this._context=r,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(r,t){switch(r=+r,t=+t,this._point){case 0:{this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+r)/2,this._y0,this._x0,t,r,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,r,this._y0,r,t);break}}this._x0=r,this._y0=t}}function qO(e){return new j0(e,!0)}function LO(e){return new j0(e,!1)}const af={draw(e,r){const t=ir(r/bi);e.moveTo(t,0),e.arc(0,0,t,0,pa)}},BO={draw(e,r){const t=ir(r/5)/2;e.moveTo(-3*t,-t),e.lineTo(-t,-t),e.lineTo(-t,-3*t),e.lineTo(t,-3*t),e.lineTo(t,-t),e.lineTo(3*t,-t),e.lineTo(3*t,t),e.lineTo(t,t),e.lineTo(t,3*t),e.lineTo(-t,3*t),e.lineTo(-t,t),e.lineTo(-3*t,t),e.closePath()}},N0=ir(1/3),zO=N0*2,FO={draw(e,r){const t=ir(r/zO),n=t*N0;e.moveTo(0,-t),e.lineTo(n,0),e.lineTo(0,t),e.lineTo(-n,0),e.closePath()}},UO={draw(e,r){const t=ir(r),n=-t/2;e.rect(n,n,t,t)}},KO=.8908130915292852,k0=gi(bi/10)/gi(7*bi/10),HO=gi(pa/10)*k0,WO=-A0(pa/10)*k0,GO={draw(e,r){const t=ir(r*KO),n=HO*t,i=WO*t;e.moveTo(0,-t),e.lineTo(n,i);for(let a=1;a<5;++a){const o=pa*a/5,u=A0(o),s=gi(o);e.lineTo(s*t,-u*t),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},fu=ir(3),YO={draw(e,r){const t=-ir(r/(fu*3));e.moveTo(0,t*2),e.lineTo(-fu*t,-t),e.lineTo(fu*t,-t),e.closePath()}},Ue=-.5,Ke=ir(3)/2,ic=1/ir(12),VO=(ic/2+1)*3,XO={draw(e,r){const t=ir(r/VO),n=t/2,i=t*ic,a=n,o=t*ic+t,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(Ue*n-Ke*i,Ke*n+Ue*i),e.lineTo(Ue*a-Ke*o,Ke*a+Ue*o),e.lineTo(Ue*u-Ke*s,Ke*u+Ue*s),e.lineTo(Ue*n+Ke*i,Ue*i-Ke*n),e.lineTo(Ue*a+Ke*o,Ue*o-Ke*a),e.lineTo(Ue*u+Ke*s,Ue*s-Ke*u),e.closePath()}};function ZO(e,r){let t=null,n=tf(i);e=typeof e=="function"?e:ee(e||af),r=typeof r=="function"?r:ee(r===void 0?64:+r);function i(){let a;if(t||(t=a=n()),e.apply(this,arguments).draw(t,+r.apply(this,arguments)),a)return t=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:ee(a),i):e},i.size=function(a){return arguments.length?(r=typeof a=="function"?a:ee(+a),i):r},i.context=function(a){return arguments.length?(t=a??null,i):t},i}function xi(){}function wi(e,r,t){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+r)/6,(e._y0+4*e._y1+t)/6)}function D0(e){this._context=e}D0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:wi(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:wi(this,e,r);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r}};function JO(e){return new D0(e)}function R0(e){this._context=e}R0.prototype={areaStart:xi,areaEnd:xi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._x2=e,this._y2=r;break;case 1:this._point=2,this._x3=e,this._y3=r;break;case 2:this._point=3,this._x4=e,this._y4=r,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+r)/6);break;default:wi(this,e,r);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r}};function QO(e){return new R0(e)}function $0(e){this._context=e}$0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var t=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+r)/6;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 3:this._point=4;default:wi(this,e,r);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r}};function eP(e){return new $0(e)}function q0(e){this._context=e}q0.prototype={areaStart:xi,areaEnd:xi,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,r){e=+e,r=+r,this._point?this._context.lineTo(e,r):(this._point=1,this._context.moveTo(e,r))}};function rP(e){return new q0(e)}function Rv(e){return e<0?-1:1}function $v(e,r,t){var n=e._x1-e._x0,i=r-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(t-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(Rv(a)+Rv(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function qv(e,r){var t=e._x1-e._x0;return t?(3*(e._y1-e._y0)/t-r)/2:r}function du(e,r,t){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*r,a-u,o-u*t,a,o)}function _i(e){this._context=e}_i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:du(this,this._t0,qv(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){var t=NaN;if(e=+e,r=+r,!(e===this._x1&&r===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3,du(this,qv(this,t=$v(this,e,r)),t);break;default:du(this,this._t0,t=$v(this,e,r));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r,this._t0=t}}};function L0(e){this._context=new B0(e)}(L0.prototype=Object.create(_i.prototype)).point=function(e,r){_i.prototype.point.call(this,r,e)};function B0(e){this._context=e}B0.prototype={moveTo:function(e,r){this._context.moveTo(r,e)},closePath:function(){this._context.closePath()},lineTo:function(e,r){this._context.lineTo(r,e)},bezierCurveTo:function(e,r,t,n,i,a){this._context.bezierCurveTo(r,e,n,t,a,i)}};function tP(e){return new _i(e)}function nP(e){return new L0(e)}function z0(e){this._context=e}z0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,r=this._y,t=e.length;if(t)if(this._line?this._context.lineTo(e[0],r[0]):this._context.moveTo(e[0],r[0]),t===2)this._context.lineTo(e[1],r[1]);else for(var n=Lv(e),i=Lv(r),a=0,o=1;o<t;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],r[o]);(this._line||this._line!==0&&t===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,r){this._x.push(+e),this._y.push(+r)}};function Lv(e){var r,t=e.length-1,n,i=new Array(t),a=new Array(t),o=new Array(t);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],r=1;r<t-1;++r)i[r]=1,a[r]=4,o[r]=4*e[r]+2*e[r+1];for(i[t-1]=2,a[t-1]=7,o[t-1]=8*e[t-1]+e[t],r=1;r<t;++r)n=i[r]/a[r-1],a[r]-=n,o[r]-=n*o[r-1];for(i[t-1]=o[t-1]/a[t-1],r=t-2;r>=0;--r)i[r]=(o[r]-i[r+1])/a[r];for(a[t-1]=(e[t]+i[t-1])/2,r=0;r<t-1;++r)a[r]=2*e[r+1]-i[r+1];return[i,a]}function iP(e){return new z0(e)}function ya(e,r){this._context=e,this._t=r}ya.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,r),this._context.lineTo(e,r);else{var t=this._x*(1-this._t)+e*this._t;this._context.lineTo(t,this._y),this._context.lineTo(t,r)}break}}this._x=e,this._y=r}};function aP(e){return new ya(e,.5)}function oP(e){return new ya(e,0)}function uP(e){return new ya(e,1)}function nt(e,r){if((o=e.length)>1)for(var t=1,n,i,a=e[r[0]],o,u=a.length;t<o;++t)for(i=a,a=e[r[t]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function ac(e){for(var r=e.length,t=new Array(r);--r>=0;)t[r]=r;return t}function sP(e,r){return e[r]}function lP(e){const r=[];return r.key=e,r}function cP(){var e=ee([]),r=ac,t=nt,n=sP;function i(a){var o=Array.from(e.apply(this,arguments),lP),u,s=o.length,l=-1,c;for(const f of a)for(u=0,++l;u<s;++u)(o[u][l]=[0,+n(f,o[u].key,l,a)]).data=f;for(u=0,c=nf(r(o));u<s;++u)o[c[u]].index=u;return t(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:ee(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:ee(+a),i):n},i.order=function(a){return arguments.length?(r=a==null?ac:typeof a=="function"?a:ee(Array.from(a)),i):r},i.offset=function(a){return arguments.length?(t=a??nt,i):t},i}function fP(e,r){if((n=e.length)>0){for(var t,n,i=0,a=e[0].length,o;i<a;++i){for(o=t=0;t<n;++t)o+=e[t][i][1]||0;if(o)for(t=0;t<n;++t)e[t][i][1]/=o}nt(e,r)}}function dP(e,r){if((i=e.length)>0){for(var t=0,n=e[r[0]],i,a=n.length;t<a;++t){for(var o=0,u=0;o<i;++o)u+=e[o][t][1]||0;n[t][1]+=n[t][0]=-u/2}nt(e,r)}}function vP(e,r){if(!(!((o=e.length)>0)||!((a=(i=e[r[0]]).length)>0))){for(var t=0,n=1,i,a,o;n<a;++n){for(var u=0,s=0,l=0;u<o;++u){for(var c=e[r[u]],f=c[n][1]||0,d=c[n-1][1]||0,v=(f-d)/2,h=0;h<u;++h){var p=e[r[h]],m=p[n][1]||0,g=p[n-1][1]||0;v+=m-g}s+=f,l+=v*f}i[n-1][1]+=i[n-1][0]=t,s&&(t-=l/s)}i[n-1][1]+=i[n-1][0]=t,nt(e,r)}}var vu,Bv;function hP(){if(Bv)return vu;Bv=1;var e=da();function r(){this.__data__=new e,this.size=0}return vu=r,vu}var hu,zv;function pP(){if(zv)return hu;zv=1;function e(r){var t=this.__data__,n=t.delete(r);return this.size=t.size,n}return hu=e,hu}var pu,Fv;function mP(){if(Fv)return pu;Fv=1;function e(r){return this.__data__.get(r)}return pu=e,pu}var mu,Uv;function yP(){if(Uv)return mu;Uv=1;function e(r){return this.__data__.has(r)}return mu=e,mu}var yu,Kv;function gP(){if(Kv)return yu;Kv=1;var e=da(),r=Qc(),t=ef(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var s=u.__data__;if(!r||s.length<n-1)return s.push([a,o]),this.size=++u.size,this;u=this.__data__=new t(s)}return u.set(a,o),this.size=u.size,this}return yu=i,yu}var gu,Hv;function F0(){if(Hv)return gu;Hv=1;var e=da(),r=hP(),t=pP(),n=mP(),i=yP(),a=gP();function o(u){var s=this.__data__=new e(u);this.size=s.size}return o.prototype.clear=r,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,gu=o,gu}var bu,Wv;function bP(){if(Wv)return bu;Wv=1;var e="__lodash_hash_undefined__";function r(t){return this.__data__.set(t,e),this}return bu=r,bu}var xu,Gv;function xP(){if(Gv)return xu;Gv=1;function e(r){return this.__data__.has(r)}return xu=e,xu}var wu,Yv;function U0(){if(Yv)return wu;Yv=1;var e=ef(),r=bP(),t=xP();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=r,n.prototype.has=t,wu=n,wu}var _u,Vv;function wP(){if(Vv)return _u;Vv=1;function e(r,t){for(var n=-1,i=r==null?0:r.length;++n<i;)if(t(r[n],n,r))return!0;return!1}return _u=e,_u}var Ou,Xv;function K0(){if(Xv)return Ou;Xv=1;function e(r,t){return r.has(t)}return Ou=e,Ou}var Pu,Zv;function H0(){if(Zv)return Pu;Zv=1;var e=U0(),r=wP(),t=K0(),n=1,i=2;function a(o,u,s,l,c,f){var d=s&n,v=o.length,h=u.length;if(v!=h&&!(d&&h>v))return!1;var p=f.get(o),m=f.get(u);if(p&&m)return p==u&&m==o;var g=-1,b=!0,x=s&i?new e:void 0;for(f.set(o,u),f.set(u,o);++g<v;){var _=o[g],w=u[g];if(l)var O=d?l(w,_,g,u,o,f):l(_,w,g,o,u,f);if(O!==void 0){if(O)continue;b=!1;break}if(x){if(!r(u,function(P,E){if(!t(x,E)&&(_===P||c(_,P,s,l,f)))return x.push(E)})){b=!1;break}}else if(!(_===w||c(_,w,s,l,f))){b=!1;break}}return f.delete(o),f.delete(u),b}return Pu=a,Pu}var Su,Jv;function _P(){if(Jv)return Su;Jv=1;var e=mr(),r=e.Uint8Array;return Su=r,Su}var Au,Qv;function OP(){if(Qv)return Au;Qv=1;function e(r){var t=-1,n=Array(r.size);return r.forEach(function(i,a){n[++t]=[a,i]}),n}return Au=e,Au}var Cu,eh;function of(){if(eh)return Cu;eh=1;function e(r){var t=-1,n=Array(r.size);return r.forEach(function(i){n[++t]=i}),n}return Cu=e,Cu}var Eu,rh;function PP(){if(rh)return Eu;rh=1;var e=Pn(),r=_P(),t=Jc(),n=H0(),i=OP(),a=of(),o=1,u=2,s="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Map]",d="[object Number]",v="[object RegExp]",h="[object Set]",p="[object String]",m="[object Symbol]",g="[object ArrayBuffer]",b="[object DataView]",x=e?e.prototype:void 0,_=x?x.valueOf:void 0;function w(O,P,E,N,D,A,j){switch(E){case b:if(O.byteLength!=P.byteLength||O.byteOffset!=P.byteOffset)return!1;O=O.buffer,P=P.buffer;case g:return!(O.byteLength!=P.byteLength||!A(new r(O),new r(P)));case s:case l:case d:return t(+O,+P);case c:return O.name==P.name&&O.message==P.message;case v:case p:return O==P+"";case f:var M=i;case h:var k=N&o;if(M||(M=a),O.size!=P.size&&!k)return!1;var $=j.get(O);if($)return $==P;N|=u,j.set(O,P);var L=n(M(O),M(P),N,D,A,j);return j.delete(O),L;case m:if(_)return _.call(O)==_.call(P)}return!1}return Eu=w,Eu}var Tu,th;function W0(){if(th)return Tu;th=1;function e(r,t){for(var n=-1,i=t.length,a=r.length;++n<i;)r[a+n]=t[n];return r}return Tu=e,Tu}var Iu,nh;function SP(){if(nh)return Iu;nh=1;var e=W0(),r=nr();function t(n,i,a){var o=i(n);return r(n)?o:e(o,a(n))}return Iu=t,Iu}var Mu,ih;function AP(){if(ih)return Mu;ih=1;function e(r,t){for(var n=-1,i=r==null?0:r.length,a=0,o=[];++n<i;){var u=r[n];t(u,n,r)&&(o[a++]=u)}return o}return Mu=e,Mu}var ju,ah;function CP(){if(ah)return ju;ah=1;function e(){return[]}return ju=e,ju}var Nu,oh;function EP(){if(oh)return Nu;oh=1;var e=AP(),r=CP(),t=Object.prototype,n=t.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return n.call(o,u)}))}:r;return Nu=a,Nu}var ku,uh;function TP(){if(uh)return ku;uh=1;function e(r,t){for(var n=-1,i=Array(r);++n<r;)i[n]=t(n);return i}return ku=e,ku}var Du,sh;function IP(){if(sh)return Du;sh=1;var e=lt(),r=ct(),t="[object Arguments]";function n(i){return r(i)&&e(i)==t}return Du=n,Du}var Ru,lh;function uf(){if(lh)return Ru;lh=1;var e=IP(),r=ct(),t=Object.prototype,n=t.hasOwnProperty,i=t.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return r(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return Ru=a,Ru}var Qt={exports:{}},$u,ch;function MP(){if(ch)return $u;ch=1;function e(){return!1}return $u=e,$u}Qt.exports;var fh;function G0(){return fh||(fh=1,(function(e,r){var t=mr(),n=MP(),i=r&&!r.nodeType&&r,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?t.Buffer:void 0,s=u?u.isBuffer:void 0,l=s||n;e.exports=l})(Qt,Qt.exports)),Qt.exports}var qu,dh;function sf(){if(dh)return qu;dh=1;var e=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function t(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&r.test(n))&&n>-1&&n%1==0&&n<i}return qu=t,qu}var Lu,vh;function lf(){if(vh)return Lu;vh=1;var e=9007199254740991;function r(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=e}return Lu=r,Lu}var Bu,hh;function jP(){if(hh)return Bu;hh=1;var e=lt(),r=lf(),t=ct(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object RegExp]",v="[object Set]",h="[object String]",p="[object WeakMap]",m="[object ArrayBuffer]",g="[object DataView]",b="[object Float32Array]",x="[object Float64Array]",_="[object Int8Array]",w="[object Int16Array]",O="[object Int32Array]",P="[object Uint8Array]",E="[object Uint8ClampedArray]",N="[object Uint16Array]",D="[object Uint32Array]",A={};A[b]=A[x]=A[_]=A[w]=A[O]=A[P]=A[E]=A[N]=A[D]=!0,A[n]=A[i]=A[m]=A[a]=A[g]=A[o]=A[u]=A[s]=A[l]=A[c]=A[f]=A[d]=A[v]=A[h]=A[p]=!1;function j(M){return t(M)&&r(M.length)&&!!A[e(M)]}return Bu=j,Bu}var zu,ph;function Y0(){if(ph)return zu;ph=1;function e(r){return function(t){return r(t)}}return zu=e,zu}var en={exports:{}};en.exports;var mh;function NP(){return mh||(mh=1,(function(e,r){var t=b0(),n=r&&!r.nodeType&&r,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&t.process,u=(function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(en,en.exports)),en.exports}var Fu,yh;function V0(){if(yh)return Fu;yh=1;var e=jP(),r=Y0(),t=NP(),n=t&&t.isTypedArray,i=n?r(n):e;return Fu=i,Fu}var Uu,gh;function kP(){if(gh)return Uu;gh=1;var e=TP(),r=uf(),t=nr(),n=G0(),i=sf(),a=V0(),o=Object.prototype,u=o.hasOwnProperty;function s(l,c){var f=t(l),d=!f&&r(l),v=!f&&!d&&n(l),h=!f&&!d&&!v&&a(l),p=f||d||v||h,m=p?e(l.length,String):[],g=m.length;for(var b in l)(c||u.call(l,b))&&!(p&&(b=="length"||v&&(b=="offset"||b=="parent")||h&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,g)))&&m.push(b);return m}return Uu=s,Uu}var Ku,bh;function DP(){if(bh)return Ku;bh=1;var e=Object.prototype;function r(t){var n=t&&t.constructor,i=typeof n=="function"&&n.prototype||e;return t===i}return Ku=r,Ku}var Hu,xh;function RP(){if(xh)return Hu;xh=1;function e(r,t){return function(n){return r(t(n))}}return Hu=e,Hu}var Wu,wh;function $P(){if(wh)return Wu;wh=1;var e=RP(),r=e(Object.keys,Object);return Wu=r,Wu}var Gu,_h;function qP(){if(_h)return Gu;_h=1;var e=DP(),r=$P(),t=Object.prototype,n=t.hasOwnProperty;function i(a){if(!e(a))return r(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return Gu=i,Gu}var Yu,Oh;function ga(){if(Oh)return Yu;Oh=1;var e=Zc(),r=lf();function t(n){return n!=null&&r(n.length)&&!e(n)}return Yu=t,Yu}var Vu,Ph;function cf(){if(Ph)return Vu;Ph=1;var e=kP(),r=qP(),t=ga();function n(i){return t(i)?e(i):r(i)}return Vu=n,Vu}var Xu,Sh;function LP(){if(Sh)return Xu;Sh=1;var e=SP(),r=EP(),t=cf();function n(i){return e(i,t,r)}return Xu=n,Xu}var Zu,Ah;function BP(){if(Ah)return Zu;Ah=1;var e=LP(),r=1,t=Object.prototype,n=t.hasOwnProperty;function i(a,o,u,s,l,c){var f=u&r,d=e(a),v=d.length,h=e(o),p=h.length;if(v!=p&&!f)return!1;for(var m=v;m--;){var g=d[m];if(!(f?g in o:n.call(o,g)))return!1}var b=c.get(a),x=c.get(o);if(b&&x)return b==o&&x==a;var _=!0;c.set(a,o),c.set(o,a);for(var w=f;++m<v;){g=d[m];var O=a[g],P=o[g];if(s)var E=f?s(P,O,g,o,a,c):s(O,P,g,a,o,c);if(!(E===void 0?O===P||l(O,P,u,s,c):E)){_=!1;break}w||(w=g=="constructor")}if(_&&!w){var N=a.constructor,D=o.constructor;N!=D&&"constructor"in a&&"constructor"in o&&!(typeof N=="function"&&N instanceof N&&typeof D=="function"&&D instanceof D)&&(_=!1)}return c.delete(a),c.delete(o),_}return Zu=i,Zu}var Ju,Ch;function zP(){if(Ch)return Ju;Ch=1;var e=ft(),r=mr(),t=e(r,"DataView");return Ju=t,Ju}var Qu,Eh;function FP(){if(Eh)return Qu;Eh=1;var e=ft(),r=mr(),t=e(r,"Promise");return Qu=t,Qu}var es,Th;function X0(){if(Th)return es;Th=1;var e=ft(),r=mr(),t=e(r,"Set");return es=t,es}var rs,Ih;function UP(){if(Ih)return rs;Ih=1;var e=ft(),r=mr(),t=e(r,"WeakMap");return rs=t,rs}var ts,Mh;function KP(){if(Mh)return ts;Mh=1;var e=zP(),r=Qc(),t=FP(),n=X0(),i=UP(),a=lt(),o=x0(),u="[object Map]",s="[object Object]",l="[object Promise]",c="[object Set]",f="[object WeakMap]",d="[object DataView]",v=o(e),h=o(r),p=o(t),m=o(n),g=o(i),b=a;return(e&&b(new e(new ArrayBuffer(1)))!=d||r&&b(new r)!=u||t&&b(t.resolve())!=l||n&&b(new n)!=c||i&&b(new i)!=f)&&(b=function(x){var _=a(x),w=_==s?x.constructor:void 0,O=w?o(w):"";if(O)switch(O){case v:return d;case h:return u;case p:return l;case m:return c;case g:return f}return _}),ts=b,ts}var ns,jh;function HP(){if(jh)return ns;jh=1;var e=F0(),r=H0(),t=PP(),n=BP(),i=KP(),a=nr(),o=G0(),u=V0(),s=1,l="[object Arguments]",c="[object Array]",f="[object Object]",d=Object.prototype,v=d.hasOwnProperty;function h(p,m,g,b,x,_){var w=a(p),O=a(m),P=w?c:i(p),E=O?c:i(m);P=P==l?f:P,E=E==l?f:E;var N=P==f,D=E==f,A=P==E;if(A&&o(p)){if(!o(m))return!1;w=!0,N=!1}if(A&&!N)return _||(_=new e),w||u(p)?r(p,m,g,b,x,_):t(p,m,P,g,b,x,_);if(!(g&s)){var j=N&&v.call(p,"__wrapped__"),M=D&&v.call(m,"__wrapped__");if(j||M){var k=j?p.value():p,$=M?m.value():m;return _||(_=new e),x(k,$,g,b,_)}}return A?(_||(_=new e),n(p,m,g,b,x,_)):!1}return ns=h,ns}var is,Nh;function Z0(){if(Nh)return is;Nh=1;var e=HP(),r=ct();function t(n,i,a,o,u){return n===i?!0:n==null||i==null||!r(n)&&!r(i)?n!==n&&i!==i:e(n,i,a,o,t,u)}return is=t,is}var as,kh;function WP(){if(kh)return as;kh=1;var e=F0(),r=Z0(),t=1,n=2;function i(a,o,u,s){var l=u.length,c=l,f=!s;if(a==null)return!c;for(a=Object(a);l--;){var d=u[l];if(f&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++l<c;){d=u[l];var v=d[0],h=a[v],p=d[1];if(f&&d[2]){if(h===void 0&&!(v in a))return!1}else{var m=new e;if(s)var g=s(h,p,v,a,o,m);if(!(g===void 0?r(p,h,t|n,s,m):g))return!1}}return!0}return as=i,as}var os,Dh;function J0(){if(Dh)return os;Dh=1;var e=Fr();function r(t){return t===t&&!e(t)}return os=r,os}var us,Rh;function GP(){if(Rh)return us;Rh=1;var e=J0(),r=cf();function t(n){for(var i=r(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,e(u)]}return i}return us=t,us}var ss,$h;function Q0(){if($h)return ss;$h=1;function e(r,t){return function(n){return n==null?!1:n[r]===t&&(t!==void 0||r in Object(n))}}return ss=e,ss}var ls,qh;function YP(){if(qh)return ls;qh=1;var e=WP(),r=GP(),t=Q0();function n(i){var a=r(i);return a.length==1&&a[0][2]?t(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return ls=n,ls}var cs,Lh;function VP(){if(Lh)return cs;Lh=1;function e(r,t){return r!=null&&t in Object(r)}return cs=e,cs}var fs,Bh;function XP(){if(Bh)return fs;Bh=1;var e=_0(),r=uf(),t=nr(),n=sf(),i=lf(),a=ha();function o(u,s,l){s=e(s,u);for(var c=-1,f=s.length,d=!1;++c<f;){var v=a(s[c]);if(!(d=u!=null&&l(u,v)))break;u=u[v]}return d||++c!=f?d:(f=u==null?0:u.length,!!f&&i(f)&&n(v,f)&&(t(u)||r(u)))}return fs=o,fs}var ds,zh;function ZP(){if(zh)return ds;zh=1;var e=VP(),r=XP();function t(n,i){return n!=null&&r(n,i,e)}return ds=t,ds}var vs,Fh;function JP(){if(Fh)return vs;Fh=1;var e=Z0(),r=O0(),t=ZP(),n=Xc(),i=J0(),a=Q0(),o=ha(),u=1,s=2;function l(c,f){return n(c)&&i(f)?a(o(c),f):function(d){var v=r(d,c);return v===void 0&&v===f?t(d,c):e(f,v,u|s)}}return vs=l,vs}var hs,Uh;function ba(){if(Uh)return hs;Uh=1;function e(r){return r}return hs=e,hs}var ps,Kh;function QP(){if(Kh)return ps;Kh=1;function e(r){return function(t){return t?.[r]}}return ps=e,ps}var ms,Hh;function eS(){if(Hh)return ms;Hh=1;var e=rf();function r(t){return function(n){return e(n,t)}}return ms=r,ms}var ys,Wh;function rS(){if(Wh)return ys;Wh=1;var e=QP(),r=eS(),t=Xc(),n=ha();function i(a){return t(a)?e(n(a)):r(a)}return ys=i,ys}var gs,Gh;function eb(){if(Gh)return gs;Gh=1;var e=YP(),r=JP(),t=ba(),n=nr(),i=rS();function a(o){return typeof o=="function"?o:o==null?t:typeof o=="object"?n(o)?r(o[0],o[1]):e(o):i(o)}return gs=a,gs}var bs,Yh;function tS(){if(Yh)return bs;Yh=1;function e(r,t,n,i){for(var a=r.length,o=n+(i?1:-1);i?o--:++o<a;)if(t(r[o],o,r))return o;return-1}return bs=e,bs}var xs,Vh;function nS(){if(Vh)return xs;Vh=1;function e(r){return r!==r}return xs=e,xs}var ws,Xh;function iS(){if(Xh)return ws;Xh=1;function e(r,t,n){for(var i=n-1,a=r.length;++i<a;)if(r[i]===t)return i;return-1}return ws=e,ws}var _s,Zh;function aS(){if(Zh)return _s;Zh=1;var e=tS(),r=nS(),t=iS();function n(i,a,o){return a===a?t(i,a,o):e(i,r,o)}return _s=n,_s}var Os,Jh;function oS(){if(Jh)return Os;Jh=1;var e=aS();function r(t,n){var i=t==null?0:t.length;return!!i&&e(t,n,0)>-1}return Os=r,Os}var Ps,Qh;function uS(){if(Qh)return Ps;Qh=1;function e(r,t,n){for(var i=-1,a=r==null?0:r.length;++i<a;)if(n(t,r[i]))return!0;return!1}return Ps=e,Ps}var Ss,ep;function sS(){if(ep)return Ss;ep=1;function e(){}return Ss=e,Ss}var As,rp;function lS(){if(rp)return As;rp=1;var e=X0(),r=sS(),t=of(),n=1/0,i=e&&1/t(new e([,-0]))[1]==n?function(a){return new e(a)}:r;return As=i,As}var Cs,tp;function cS(){if(tp)return Cs;tp=1;var e=U0(),r=oS(),t=uS(),n=K0(),i=lS(),a=of(),o=200;function u(s,l,c){var f=-1,d=r,v=s.length,h=!0,p=[],m=p;if(c)h=!1,d=t;else if(v>=o){var g=l?null:i(s);if(g)return a(g);h=!1,d=n,m=new e}else m=l?[]:p;e:for(;++f<v;){var b=s[f],x=l?l(b):b;if(b=c||b!==0?b:0,h&&x===x){for(var _=m.length;_--;)if(m[_]===x)continue e;l&&m.push(x),p.push(b)}else d(m,x,c)||(m!==p&&m.push(x),p.push(b))}return p}return Cs=u,Cs}var Es,np;function fS(){if(np)return Es;np=1;var e=eb(),r=cS();function t(n,i){return n&&n.length?r(n,e(i,2)):[]}return Es=t,Es}var dS=fS();const ip=Ne(dS);function vS(e,r,t){return r===!0?ip(e,t):EO(r)?ip(e,r):e}var Ts,ap;function hS(){if(ap)return Ts;ap=1;var e=Pn(),r=uf(),t=nr(),n=e?e.isConcatSpreadable:void 0;function i(a){return t(a)||r(a)||!!(n&&a&&a[n])}return Ts=i,Ts}var Is,op;function pS(){if(op)return Is;op=1;var e=W0(),r=hS();function t(n,i,a,o,u){var s=-1,l=n.length;for(a||(a=r),u||(u=[]);++s<l;){var c=n[s];i>0&&a(c)?i>1?t(c,i-1,a,o,u):e(u,c):o||(u[u.length]=c)}return u}return Is=t,Is}var Ms,up;function mS(){if(up)return Ms;up=1;function e(r){return function(t,n,i){for(var a=-1,o=Object(t),u=i(t),s=u.length;s--;){var l=u[r?s:++a];if(n(o[l],l,o)===!1)break}return t}}return Ms=e,Ms}var js,sp;function yS(){if(sp)return js;sp=1;var e=mS(),r=e();return js=r,js}var Ns,lp;function gS(){if(lp)return Ns;lp=1;var e=yS(),r=cf();function t(n,i){return n&&e(n,i,r)}return Ns=t,Ns}var ks,cp;function bS(){if(cp)return ks;cp=1;var e=ga();function r(t,n){return function(i,a){if(i==null)return i;if(!e(i))return t(i,a);for(var o=i.length,u=n?o:-1,s=Object(i);(n?u--:++u<o)&&a(s[u],u,s)!==!1;);return i}}return ks=r,ks}var Ds,fp;function xS(){if(fp)return Ds;fp=1;var e=gS(),r=bS(),t=r(e);return Ds=t,Ds}var Rs,dp;function wS(){if(dp)return Rs;dp=1;var e=xS(),r=ga();function t(n,i){var a=-1,o=r(n)?Array(n.length):[];return e(n,function(u,s,l){o[++a]=i(u,s,l)}),o}return Rs=t,Rs}var $s,vp;function _S(){if(vp)return $s;vp=1;function e(r,t){var n=r.length;for(r.sort(t);n--;)r[n]=r[n].value;return r}return $s=e,$s}var qs,hp;function OS(){if(hp)return qs;hp=1;var e=Sn();function r(t,n){if(t!==n){var i=t!==void 0,a=t===null,o=t===t,u=e(t),s=n!==void 0,l=n===null,c=n===n,f=e(n);if(!l&&!f&&!u&&t>n||u&&s&&c&&!l&&!f||a&&s&&c||!i&&c||!o)return 1;if(!a&&!u&&!f&&t<n||f&&i&&o&&!a&&!u||l&&i&&o||!s&&o||!c)return-1}return 0}return qs=r,qs}var Ls,pp;function PS(){if(pp)return Ls;pp=1;var e=OS();function r(t,n,i){for(var a=-1,o=t.criteria,u=n.criteria,s=o.length,l=i.length;++a<s;){var c=e(o[a],u[a]);if(c){if(a>=l)return c;var f=i[a];return c*(f=="desc"?-1:1)}}return t.index-n.index}return Ls=r,Ls}var Bs,mp;function SS(){if(mp)return Bs;mp=1;var e=w0(),r=rf(),t=eb(),n=wS(),i=_S(),a=Y0(),o=PS(),u=ba(),s=nr();function l(c,f,d){f.length?f=e(f,function(p){return s(p)?function(m){return r(m,p.length===1?p[0]:p)}:p}):f=[u];var v=-1;f=e(f,a(t));var h=n(c,function(p,m,g){var b=e(f,function(x){return x(p)});return{criteria:b,index:++v,value:p}});return i(h,function(p,m){return o(p,m,d)})}return Bs=l,Bs}var zs,yp;function AS(){if(yp)return zs;yp=1;function e(r,t,n){switch(n.length){case 0:return r.call(t);case 1:return r.call(t,n[0]);case 2:return r.call(t,n[0],n[1]);case 3:return r.call(t,n[0],n[1],n[2])}return r.apply(t,n)}return zs=e,zs}var Fs,gp;function CS(){if(gp)return Fs;gp=1;var e=AS(),r=Math.max;function t(n,i,a){return i=r(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,s=r(o.length-i,0),l=Array(s);++u<s;)l[u]=o[i+u];u=-1;for(var c=Array(i+1);++u<i;)c[u]=o[u];return c[i]=a(l),e(n,this,c)}}return Fs=t,Fs}var Us,bp;function ES(){if(bp)return Us;bp=1;function e(r){return function(){return r}}return Us=e,Us}var Ks,xp;function TS(){if(xp)return Ks;xp=1;var e=ft(),r=(function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}})();return Ks=r,Ks}var Hs,wp;function IS(){if(wp)return Hs;wp=1;var e=ES(),r=TS(),t=ba(),n=r?function(i,a){return r(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:t;return Hs=n,Hs}var Ws,_p;function MS(){if(_p)return Ws;_p=1;var e=800,r=16,t=Date.now;function n(i){var a=0,o=0;return function(){var u=t(),s=r-(u-o);if(o=u,s>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Ws=n,Ws}var Gs,Op;function jS(){if(Op)return Gs;Op=1;var e=IS(),r=MS(),t=r(e);return Gs=t,Gs}var Ys,Pp;function NS(){if(Pp)return Ys;Pp=1;var e=ba(),r=CS(),t=jS();function n(i,a){return t(r(i,a,e),i+"")}return Ys=n,Ys}var Vs,Sp;function kS(){if(Sp)return Vs;Sp=1;var e=Jc(),r=ga(),t=sf(),n=Fr();function i(a,o,u){if(!n(u))return!1;var s=typeof o;return(s=="number"?r(u)&&t(o,u.length):s=="string"&&o in u)?e(u[o],a):!1}return Vs=i,Vs}var Xs,Ap;function DS(){if(Ap)return Xs;Ap=1;var e=pS(),r=SS(),t=NS(),n=kS(),i=t(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),r(a,e(o,1),[])});return Xs=i,Xs}var RS=DS();const $S=Ne(RS);function un(e){"@babel/helpers - typeof";return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},un(e)}function oc(){return oc=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},oc.apply(this,arguments)}function qS(e,r){return FS(e)||zS(e,r)||BS(e,r)||LS()}function LS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BS(e,r){if(e){if(typeof e=="string")return Cp(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Cp(e,r)}}function Cp(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function zS(e,r){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(t=t.call(e)).next,r!==0)for(;!(s=(n=a.call(t)).done)&&(u.push(n.value),u.length!==r);s=!0);}catch(c){l=!0,i=c}finally{try{if(!s&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function FS(e){if(Array.isArray(e))return e}function Ep(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function Zs(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Ep(Object(t),!0).forEach(function(n){US(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ep(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function US(e,r,t){return r=KS(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function KS(e){var r=HS(e,"string");return un(r)=="symbol"?r:r+""}function HS(e,r){if(un(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function WS(e){return Array.isArray(e)&&yi(e[0])&&yi(e[1])?e.join(" ~ "):e}var GS=function(r){var t=r.separator,n=t===void 0?" : ":t,i=r.contentStyle,a=i===void 0?{}:i,o=r.itemStyle,u=o===void 0?{}:o,s=r.labelStyle,l=s===void 0?{}:s,c=r.payload,f=r.formatter,d=r.itemSorter,v=r.wrapperClassName,h=r.labelClassName,p=r.label,m=r.labelFormatter,g=r.accessibilityLayer,b=g===void 0?!1:g,x=function(){if(c&&c.length){var j={padding:0,margin:0},M=(d?$S(c,d):c).map(function(k,$){if(k.type==="none")return null;var L=Zs({display:"block",paddingTop:4,paddingBottom:4,color:k.color||"#000"},u),q=k.formatter||f||WS,z=k.value,U=k.name,G=z,Y=U;if(q&&G!=null&&Y!=null){var Q=q(z,U,k,$,c);if(Array.isArray(Q)){var be=qS(Q,2);G=be[0],Y=be[1]}else G=Q}return he.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat($),style:L},yi(Y)?he.createElement("span",{className:"recharts-tooltip-item-name"},Y):null,yi(Y)?he.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,he.createElement("span",{className:"recharts-tooltip-item-value"},G),he.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return he.createElement("ul",{className:"recharts-tooltip-item-list",style:j},M)}return null},_=Zs({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),w=Zs({margin:0},l),O=!PO(p),P=O?p:"",E=Ae("recharts-default-tooltip",v),N=Ae("recharts-tooltip-label",h);O&&m&&c!==void 0&&c!==null&&(P=m(p,c));var D=b?{role:"status","aria-live":"assertive"}:{};return he.createElement("div",oc({className:E,style:_},D),he.createElement("p",{className:N,style:w},he.isValidElement(P)?P:"".concat(P)),x())};function sn(e){"@babel/helpers - typeof";return sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},sn(e)}function Xn(e,r,t){return r=YS(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function YS(e){var r=VS(e,"string");return sn(r)=="symbol"?r:r+""}function VS(e,r){if(sn(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var Ht="recharts-tooltip-wrapper",XS={visibility:"hidden"};function ZS(e){var r=e.coordinate,t=e.translateX,n=e.translateY;return Ae(Ht,Xn(Xn(Xn(Xn({},"".concat(Ht,"-right"),fr(t)&&r&&fr(r.x)&&t>=r.x),"".concat(Ht,"-left"),fr(t)&&r&&fr(r.x)&&t<r.x),"".concat(Ht,"-bottom"),fr(n)&&r&&fr(r.y)&&n>=r.y),"".concat(Ht,"-top"),fr(n)&&r&&fr(r.y)&&n<r.y))}function Tp(e){var r=e.allowEscapeViewBox,t=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,s=e.viewBox,l=e.viewBoxDimension;if(a&&fr(a[n]))return a[n];var c=t[n]-u-i,f=t[n]+i;if(r[n])return o[n]?c:f;if(o[n]){var d=c,v=s[n];return d<v?Math.max(f,s[n]):Math.max(c,s[n])}var h=f+u,p=s[n]+l;return h>p?Math.max(c,s[n]):Math.max(f,s[n])}function JS(e){var r=e.translateX,t=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(r,"px, ").concat(t,"px, 0)"):"translate(".concat(r,"px, ").concat(t,"px)")}}function QS(e){var r=e.allowEscapeViewBox,t=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,s=e.viewBox,l,c,f;return o.height>0&&o.width>0&&t?(c=Tp({allowEscapeViewBox:r,coordinate:t,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),f=Tp({allowEscapeViewBox:r,coordinate:t,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),l=JS({translateX:c,translateY:f,useTranslate3d:u})):l=XS,{cssProperties:l,cssClasses:ZS({translateX:c,translateY:f,coordinate:t})}}function At(e){"@babel/helpers - typeof";return At=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},At(e)}function Ip(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function Mp(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Ip(Object(t),!0).forEach(function(n){sc(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ip(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function eA(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function rA(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tb(n.key),n)}}function tA(e,r,t){return r&&rA(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function nA(e,r,t){return r=Oi(r),iA(e,rb()?Reflect.construct(r,t||[],Oi(e).constructor):r.apply(e,t))}function iA(e,r){if(r&&(At(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aA(e)}function aA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rb=function(){return!!e})()}function Oi(e){return Oi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Oi(e)}function oA(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&uc(e,r)}function uc(e,r){return uc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},uc(e,r)}function sc(e,r,t){return r=tb(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function tb(e){var r=uA(e,"string");return At(r)=="symbol"?r:r+""}function uA(e,r){if(At(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(At(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var jp=1,sA=(function(e){function r(){var t;eA(this,r);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return t=nA(this,r,[].concat(i)),sc(t,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),sc(t,"handleKeyDown",function(o){if(o.key==="Escape"){var u,s,l,c;t.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(s=t.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&u!==void 0?u:0,y:(l=(c=t.props.coordinate)===null||c===void 0?void 0:c.y)!==null&&l!==void 0?l:0}})}}),t}return oA(r,e),tA(r,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>jp||Math.abs(n.height-this.state.lastBoundingBox.height)>jp)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,l=i.children,c=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,v=i.offset,h=i.position,p=i.reverseDirection,m=i.useTranslate3d,g=i.viewBox,b=i.wrapperStyle,x=QS({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:v,position:h,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:m,viewBox:g}),_=x.cssClasses,w=x.cssProperties,O=Mp(Mp({transition:d&&a?"transform ".concat(u,"ms ").concat(s):void 0},w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},b);return he.createElement("div",{tabIndex:-1,className:_,style:O,ref:function(E){n.wrapperNode=E}},l)}}])})(y.PureComponent),lA=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},cA={isSsr:lA()};function Ct(e){"@babel/helpers - typeof";return Ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ct(e)}function Np(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function kp(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Np(Object(t),!0).forEach(function(n){ff(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Np(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function fA(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function dA(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ib(n.key),n)}}function vA(e,r,t){return r&&dA(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function hA(e,r,t){return r=Pi(r),pA(e,nb()?Reflect.construct(r,t||[],Pi(e).constructor):r.apply(e,t))}function pA(e,r){if(r&&(Ct(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mA(e)}function mA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nb=function(){return!!e})()}function Pi(e){return Pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pi(e)}function yA(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&lc(e,r)}function lc(e,r){return lc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},lc(e,r)}function ff(e,r,t){return r=ib(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ib(e){var r=gA(e,"string");return Ct(r)=="symbol"?r:r+""}function gA(e,r){if(Ct(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(Ct(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function bA(e){return e.dataKey}function xA(e,r){return he.isValidElement(e)?he.cloneElement(e,r):typeof e=="function"?he.createElement(e,r):he.createElement(GS,r)}var df=(function(e){function r(){return fA(this,r),hA(this,r,arguments)}return yA(r,e),vA(r,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,l=i.content,c=i.coordinate,f=i.filterNull,d=i.isAnimationActive,v=i.offset,h=i.payload,p=i.payloadUniqBy,m=i.position,g=i.reverseDirection,b=i.useTranslate3d,x=i.viewBox,_=i.wrapperStyle,w=h??[];f&&w.length&&(w=vS(h.filter(function(P){return P.value!=null&&(P.hide!==!0||n.props.includeHidden)}),p,bA));var O=w.length>0;return he.createElement(sA,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:d,active:a,coordinate:c,hasPayload:O,offset:v,position:m,reverseDirection:g,useTranslate3d:b,viewBox:x,wrapperStyle:_},xA(l,kp(kp({},this.props),{},{payload:w})))}}])})(y.PureComponent);ff(df,"displayName","Tooltip");ff(df,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!cA.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Js,Dp;function wA(){if(Dp)return Js;Dp=1;var e=mr(),r=function(){return e.Date.now()};return Js=r,Js}var Qs,Rp;function _A(){if(Rp)return Qs;Rp=1;var e=/\s/;function r(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}return Qs=r,Qs}var el,$p;function OA(){if($p)return el;$p=1;var e=_A(),r=/^\s+/;function t(n){return n&&n.slice(0,e(n)+1).replace(r,"")}return el=t,el}var rl,qp;function PA(){if(qp)return rl;qp=1;var e=OA(),r=Fr(),t=Sn(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function s(l){if(typeof l=="number")return l;if(t(l))return n;if(r(l)){var c=typeof l.valueOf=="function"?l.valueOf():l;l=r(c)?c+"":c}if(typeof l!="string")return l===0?l:+l;l=e(l);var f=a.test(l);return f||o.test(l)?u(l.slice(2),f?2:8):i.test(l)?n:+l}return rl=s,rl}var tl,Lp;function SA(){if(Lp)return tl;Lp=1;var e=Fr(),r=wA(),t=PA(),n="Expected a function",i=Math.max,a=Math.min;function o(u,s,l){var c,f,d,v,h,p,m=0,g=!1,b=!1,x=!0;if(typeof u!="function")throw new TypeError(n);s=t(s)||0,e(l)&&(g=!!l.leading,b="maxWait"in l,d=b?i(t(l.maxWait)||0,s):d,x="trailing"in l?!!l.trailing:x);function _(M){var k=c,$=f;return c=f=void 0,m=M,v=u.apply($,k),v}function w(M){return m=M,h=setTimeout(E,s),g?_(M):v}function O(M){var k=M-p,$=M-m,L=s-k;return b?a(L,d-$):L}function P(M){var k=M-p,$=M-m;return p===void 0||k>=s||k<0||b&&$>=d}function E(){var M=r();if(P(M))return N(M);h=setTimeout(E,O(M))}function N(M){return h=void 0,x&&c?_(M):(c=f=void 0,v)}function D(){h!==void 0&&clearTimeout(h),m=0,c=p=f=h=void 0}function A(){return h===void 0?v:N(r())}function j(){var M=r(),k=P(M);if(c=arguments,f=this,p=M,k){if(h===void 0)return w(p);if(b)return clearTimeout(h),h=setTimeout(E,s),_(p)}return h===void 0&&(h=setTimeout(E,s)),v}return j.cancel=D,j.flush=A,j}return tl=o,tl}var nl,Bp;function AA(){if(Bp)return nl;Bp=1;var e=SA(),r=Fr(),t="Expected a function";function n(i,a,o){var u=!0,s=!0;if(typeof i!="function")throw new TypeError(t);return r(o)&&(u="leading"in o?!!o.leading:u,s="trailing"in o?!!o.trailing:s),e(i,a,{leading:u,maxWait:a,trailing:s})}return nl=n,nl}var CA=AA();const EA=Ne(CA);function ln(e){"@babel/helpers - typeof";return ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ln(e)}function zp(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function Zn(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?zp(Object(t),!0).forEach(function(n){TA(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):zp(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function TA(e,r,t){return r=IA(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function IA(e){var r=MA(e,"string");return ln(r)=="symbol"?r:r+""}function MA(e,r){if(ln(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function jA(e,r){return RA(e)||DA(e,r)||kA(e,r)||NA()}function NA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kA(e,r){if(e){if(typeof e=="string")return Fp(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Fp(e,r)}}function Fp(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function DA(e,r){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(t=t.call(e)).next,r!==0)for(;!(s=(n=a.call(t)).done)&&(u.push(n.value),u.length!==r);s=!0);}catch(c){l=!0,i=c}finally{try{if(!s&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function RA(e){if(Array.isArray(e))return e}var $A=y.forwardRef(function(e,r){var t=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,s=u===void 0?"100%":u,l=e.minWidth,c=l===void 0?0:l,f=e.minHeight,d=e.maxHeight,v=e.children,h=e.debounce,p=h===void 0?0:h,m=e.id,g=e.className,b=e.onResize,x=e.style,_=x===void 0?{}:x,w=y.useRef(null),O=y.useRef();O.current=b,y.useImperativeHandle(r,function(){return Object.defineProperty(w.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),w.current},configurable:!0})});var P=y.useState({containerWidth:i.width,containerHeight:i.height}),E=jA(P,2),N=E[0],D=E[1],A=y.useCallback(function(M,k){D(function($){var L=Math.round(M),q=Math.round(k);return $.containerWidth===L&&$.containerHeight===q?$:{containerWidth:L,containerHeight:q}})},[]);y.useEffect(function(){var M=function(U){var G,Y=U[0].contentRect,Q=Y.width,be=Y.height;A(Q,be),(G=O.current)===null||G===void 0||G.call(O,Q,be)};p>0&&(M=EA(M,p,{trailing:!0,leading:!1}));var k=new ResizeObserver(M),$=w.current.getBoundingClientRect(),L=$.width,q=$.height;return A(L,q),k.observe(w.current),function(){k.disconnect()}},[A,p]);var j=y.useMemo(function(){var M=N.containerWidth,k=N.containerHeight;if(M<0||k<0)return null;cu(Yn(o)||Yn(s),`The width(%s) and height(%s) are both fixed numbers,
4
4
  maybe you don't need to use a ResponsiveContainer.`,o,s),cu(!t||t>0,"The aspect(%s) must be greater than zero.",t);var $=Yn(o)?M:o,L=Yn(s)?k:s;t&&t>0&&($?L=$/t:L&&($=L*t),d&&L>d&&(L=d)),cu($>0||L>0,`The width(%s) and height(%s) of chart should be greater than 0,
@@ -1,4 +1,4 @@
1
- import{b1 as ue,b2 as ss,w as I,aM as J,Y as we,aL as gr,W as B,aJ as aa,aH as de,aN as ie,a0 as Pe,b3 as it,b4 as oa,v as A,b5 as Br,b6 as ns,b7 as ia,b8 as qn,b9 as ca,ba as ua,bb as la,aj as jn,aK as Qr,aO as ye,X as ge,bc as _t,bd as da,aI as fa}from"./index-CqA7I8ME.js";import{C as ha,P as pa,a as ma,G as ya,M as G,E as Z,b as ga,L as _a,c as va,i as ft,d as ba,e as Ur,f as wa,R as Ye,g as Sa,h as Hr,j as $a,k as Ea,l as Ta,T as as,m as Mn,n as ka,o as Pa,p as Ia,q as Oa,I as Ra,S as Ca,r as wt,s as Na,t as qa,u as ja,v as Ma,w as Aa,x as Da,y as An,z as La,A as Ua,B as Ha,D as Va,F as Fa,U as Ne,H as Je,J as dr,K as mt,N as xa}from"./auth-CPnNaHvV.js";var za=class{apply(t,e){if(!e.type)return;const r=Array.isArray(e.type)?e.type:[e.type],s=new Set(r);if(s.has("string")||(t.string=!1),!s.has("number")&&!s.has("integer")&&(t.number=!1),s.has("boolean")||(t.boolean=!1),s.has("null")||(t.null=!1),s.has("array")||(t.array=!1),s.has("object")||(t.object=!1),s.has("integer")&&t.number!==!1){const a=t.number||J();a instanceof it&&(t.number=a.int())}}},Ka=class{apply(t,e){if(e.const===void 0)return;const r=e.const;t.string=!1,t.number=!1,t.boolean=!1,t.null=!1,t.array=!1,t.object=!1,typeof r=="string"?t.string=ie(r):typeof r=="number"?t.number=ie(r):typeof r=="boolean"?t.boolean=ie(r):r===null?t.null=gr():Array.isArray(r)?t.array=void 0:typeof r=="object"&&(t.object=void 0)}},Wa=class{apply(t,e){if(!e.enum)return;if(e.enum.length===0){e.type||(t.string=!1,t.number=!1,t.boolean=!1,t.null=!1,t.array=!1,t.object=!1);return}const r={string:e.enum.filter(s=>typeof s=="string"),number:e.enum.filter(s=>typeof s=="number"),boolean:e.enum.filter(s=>typeof s=="boolean"),null:e.enum.filter(s=>s===null),array:e.enum.filter(s=>Array.isArray(s)),object:e.enum.filter(s=>typeof s=="object"&&s!==null&&!Array.isArray(s))};t.string=this.createTypeSchema(r.string,"string"),t.number=this.createTypeSchema(r.number,"number"),t.boolean=this.createTypeSchema(r.boolean,"boolean"),t.null=r.null.length>0?gr():!1,t.array=r.array.length>0?void 0:!1,t.object=r.object.length>0?void 0:!1}createTypeSchema(t,e){if(t.length===0)return!1;if(t.length===1)return ie(t[0]);if(e==="string")return Pe(t);if(e==="number"){const[r,s,...a]=t;return de([ie(r),ie(s),...a.map(n=>ie(n))])}return e==="boolean"?de([ie(!0),ie(!1)]):!1}},Ga=class{apply(t,e){const r=e;if(r.type==="string"&&r.format==="binary"&&r.contentEncoding==="binary"){let s=oa();r.minLength!==void 0&&(s=s.min(r.minLength)),r.maxLength!==void 0&&(s=s.max(r.maxLength)),r.contentMediaType!==void 0&&(s=s.mime(r.contentMediaType)),t.file=s,t.string=!1}}},Ja=class{apply(t,e){const r=e;e.type===void 0&&(r.minLength!==void 0||r.maxLength!==void 0||r.pattern!==void 0)&&t.string===void 0&&(t.string=I())}},Ba=class{apply(t,e){const r=e;if(r.minLength!==void 0&&t.string!==!1){const s=t.string||I();s instanceof Br&&(t.string=s.refine(a=>Array.from(a).length>=r.minLength,{message:`String must be at least ${r.minLength} characters long`}))}}},Qa=class{apply(t,e){const r=e;if(r.maxLength!==void 0&&t.string!==!1){const s=t.string||I();s instanceof Br&&(t.string=s.refine(a=>Array.from(a).length<=r.maxLength,{message:`String must be at most ${r.maxLength} characters long`}))}}},Za=class{apply(t,e){const r=e;if(r.pattern&&t.string!==!1){const s=t.string||I();if(s instanceof Br){const a=new RegExp(r.pattern);t.string=s.regex(a)}}}},Ya=class{apply(t,e){const r=e;if(r.minimum!==void 0&&t.number!==!1){const s=t.number||J();s instanceof it&&(t.number=s.min(r.minimum))}}},Xa=class{apply(t,e){const r=e;if(r.maximum!==void 0&&t.number!==!1){const s=t.number||J();s instanceof it&&(t.number=s.max(r.maximum))}}},eo=class{apply(t,e){const r=e;if(r.exclusiveMinimum!==void 0&&t.number!==!1){const s=t.number||J();s instanceof it&&(typeof r.exclusiveMinimum=="number"?t.number=s.gt(r.exclusiveMinimum):t.number=!1)}}},to=class{apply(t,e){const r=e;if(r.exclusiveMaximum!==void 0&&t.number!==!1){const s=t.number||J();s instanceof it&&(typeof r.exclusiveMaximum=="number"?t.number=s.lt(r.exclusiveMaximum):t.number=!1)}}},ro=class{apply(t,e){const r=e;if(r.multipleOf!==void 0&&t.number!==!1){const s=t.number||J();s instanceof it&&(t.number=s.refine(a=>{if(r.multipleOf===0)return!1;const n=a/r.multipleOf,i=Math.round(n),o=Math.min(Math.abs(a)*Number.EPSILON*10,Math.abs(r.multipleOf)*Number.EPSILON*10);return Math.abs(n-i)<=o/Math.abs(r.multipleOf)},{message:`Must be a multiple of ${r.multipleOf}`}))}}},so=class{apply(t,e){const r=e;e.type===void 0&&(r.minItems!==void 0||r.maxItems!==void 0||r.items!==void 0||r.prefixItems!==void 0)&&t.array===void 0&&(t.array=B(ue()))}},no=class{apply(t,e){const r=e;r.minItems!==void 0&&t.array!==!1&&(t.array=(t.array||B(ue())).min(r.minItems))}},ao=class{apply(t,e){const r=e;r.maxItems!==void 0&&t.array!==!1&&(t.array=(t.array||B(ue())).max(r.maxItems))}},oo=class{apply(t,e){const r=e;if(t.array!==!1)if(Array.isArray(r.items))t.array=t.array||B(ue());else if(r.items&&typeof r.items!="boolean"&&!r.prefixItems){const s=fe(r.items);let a=B(s);if(t.array&&t.array instanceof ia){const n=t.array._def;n.checks&&n.checks.forEach(i=>{if(i._zod&&i._zod.def){const o=i._zod.def;o.check==="min_length"&&o.minimum!==void 0?a=a.min(o.minimum):o.check==="max_length"&&o.maximum!==void 0&&(a=a.max(o.maximum))}})}t.array=a}else typeof r.items=="boolean"&&r.items===!1?r.prefixItems?t.array=t.array||B(ue()):t.array=B(ue()).max(0):typeof r.items=="boolean"&&r.items===!0?t.array=t.array||B(ue()):r.prefixItems&&(t.array=t.array||B(ue()))}},io=class{apply(t,e){if(e.type!=="array")return;const r=e;if(!Array.isArray(r.items)||t.array===!1)return;const s=r.items.map(n=>fe(n));let a;s.length===0?a=ns([]):a=ns(s),r.minItems!==void 0&&r.minItems>s.length&&(a=!1),r.maxItems!==void 0&&r.maxItems<s.length&&(a=!1),t.tuple=a,t.array=!1}},co=class{apply(t,e){const r=e;t.object!==!1&&(r.properties||r.required||r.additionalProperties!==void 0)&&(t.object=t.object||A({}).passthrough())}},uo=class{apply(t,e){const r=e;e.type===void 0&&(r.maxProperties!==void 0||r.minProperties!==void 0)&&t.object===void 0&&(t.object=A({}).passthrough())}},lo=class{apply(t,e){const r=e;if(r.maxProperties!==void 0&&t.object!==!1){const s=t.object||A({}).passthrough();t.object=s.refine(a=>Object.keys(a).length<=r.maxProperties,{message:`Object must have at most ${r.maxProperties} properties`})}}},fo=class{apply(t,e){const r=e;if(r.minProperties!==void 0&&t.object!==!1){const s=t.object||A({}).passthrough();t.object=s.refine(a=>Object.keys(a).length>=r.minProperties,{message:`Object must have at least ${r.minProperties} properties`})}}};function vt(t,e){if(t===e)return!0;if(t==null||e==null)return t===e;if(typeof t!=typeof e)return!1;if(Array.isArray(t)&&Array.isArray(e))return t.length!==e.length?!1:t.every((r,s)=>vt(r,e[s]));if(typeof t=="object"&&typeof e=="object"){const r=Object.keys(t),s=Object.keys(e);return r.length!==s.length?!1:r.every(a=>s.includes(a)&&vt(t[a],e[a]))}return!1}function ho(){return t=>{if(!Array.isArray(t))return!0;const e=[];return t.every(r=>e.some(a=>vt(r,a))?!1:(e.push(r),!0))}}function fr(t,e){return t.safeParse(e).success}var po=class{apply(t,e){if(!e.not)return t;const r=fe(e.not);return t.refine(s=>!fr(r,s),{message:"Value must not match the 'not' schema"})}},mo=class{apply(t,e){return e.uniqueItems!==!0?t:t.refine(ho(),{message:"Array items must be unique"})}},yo=class{apply(t,e){return!e.allOf||e.allOf.length===0?t:e.allOf.map(s=>fe(s)).reduce((s,a)=>qn(s,a),t)}},go=class{apply(t,e){if(!e.anyOf||e.anyOf.length===0)return t;const r=e.anyOf.length===1?fe(e.anyOf[0]):de([fe(e.anyOf[0]),fe(e.anyOf[1]),...e.anyOf.slice(2).map(s=>fe(s))]);return qn(t,r)}},_o=class{apply(t,e){if(!e.oneOf||e.oneOf.length===0)return t;const r=e.oneOf.map(s=>fe(s));return t.refine(s=>{let a=0;for(const n of r)if(n.safeParse(s).success&&(a++,a>1))return!1;return a===1},{message:"Value must match exactly one of the oneOf schemas"})}},vo=class{apply(t,e){const r=e;if(r.prefixItems&&Array.isArray(r.prefixItems)){const a=r.prefixItems.map(n=>fe(n));return t.refine(n=>{if(!Array.isArray(n))return!0;for(let i=0;i<Math.min(n.length,a.length);i++)if(!fr(a[i],n[i]))return!1;if(n.length>a.length){if(typeof r.items=="boolean"&&r.items===!1)return!1;if(r.items&&typeof r.items=="object"&&!Array.isArray(r.items)){const i=fe(r.items);for(let o=a.length;o<n.length;o++)if(!fr(i,n[o]))return!1}}return!0},{message:"Array does not match prefixItems schema"})}return t}},bo=class{apply(t,e){const r=e;if(!r.properties&&!r.required&&r.additionalProperties!==!1)return t;if(t instanceof ca||t instanceof ua){const s={};if(r.properties)for(const[a,n]of Object.entries(r.properties))n!==void 0&&(s[a]=fe(n));if(r.required&&Array.isArray(r.required)){const a=new Set(r.required);for(const n of Object.keys(s))a.has(n)||(s[n]=s[n].optional())}else for(const a of Object.keys(s))s[a]=s[a].optional();return r.additionalProperties===!1?A(s):A(s).passthrough()}return t.refine(s=>{if(typeof s!="object"||s===null||Array.isArray(s))return!0;if(r.properties){for(const[a,n]of Object.entries(r.properties))if(n!==void 0&&Object.getOwnPropertyDescriptor(s,a)!==void 0&&!fe(n).safeParse(s[a]).success)return!1}if(r.required&&Array.isArray(r.required)){for(const a of r.required)if(!(Object.getOwnPropertyDescriptor(s,a)!==void 0))return!1}if(r.additionalProperties===!1&&r.properties){const a=new Set(Object.keys(r.properties));for(const n in s)if(!a.has(n))return!1}return!0},{message:"Object constraints validation failed"})}},wo=class{apply(t,e){if(!e.enum||e.enum.length===0)return t;const r=e.enum.filter(s=>Array.isArray(s)||typeof s=="object"&&s!==null);return r.length===0?t:t.refine(s=>typeof s!="object"||s===null?!0:r.some(a=>vt(s,a)),{message:"Value must match one of the enum values"})}},So=class{apply(t,e){if(e.const===void 0)return t;const r=e.const;return typeof r!="object"||r===null?t:t.refine(s=>vt(s,r),{message:"Value must equal the const value"})}},$o=class{apply(t,e){return e.description&&(t=t.describe(e.description)),t}},Eo=class{apply(t,e){var r;const s=e;return!((r=s.required)!=null&&r.includes("__proto__"))||e.type!==void 0?t:ue().refine(a=>this.validateRequired(a,s.required),{message:"Missing required properties"})}validateRequired(t,e){return typeof t!="object"||t===null||Array.isArray(t)?!0:e.every(r=>Object.prototype.hasOwnProperty.call(t,r))}},To=class{apply(t,e){var r;const s=e;if(s.contains===void 0)return t;const a=fe(s.contains),n=(r=s.minContains)!=null?r:1,i=s.maxContains;return t.refine(o=>{if(!Array.isArray(o))return!0;let u=0;for(const m of o)fr(a,m)&&u++;return!(u<n||i!==void 0&&u>i)},{message:"Array must contain required items matching the schema"})}},ko=class{apply(t,e){const{default:r}=e;return r===void 0||!t.safeParse(r).success?t:t.default(r)}},Po=[new Ka,new Wa,new za,new Ga,new Ja,new so,new uo,new Ba,new Qa,new Za,new Ya,new Xa,new eo,new to,new ro,new io,new no,new ao,new oo,new lo,new fo,new co],Io=[new Eo,new wo,new So,new yo,new go,new _o,new vo,new bo,new To,new po,new mo,new ko,new $o];function fe(t){if(typeof t=="boolean")return t?ue():ss();const e={};for(const a of Po)a.apply(e,t);const r=[];if(e.string!==!1&&r.push(e.string||I()),e.number!==!1&&r.push(e.number||J()),e.boolean!==!1&&r.push(e.boolean||we()),e.null!==!1&&r.push(e.null||gr()),e.array!==!1&&r.push(e.array||B(ue())),e.tuple!==!1&&e.tuple!==void 0&&r.push(e.tuple),e.object!==!1)if(e.object)r.push(e.object);else{const a=aa(n=>typeof n=="object"&&n!==null&&!Array.isArray(n),"Must be an object, not an array");r.push(a)}e.file!==!1&&e.file!==void 0&&r.push(e.file);let s;r.length===0?s=ss():r.length===1?s=r[0]:Object.keys(t).some(n=>n!=="$schema"&&n!=="title"&&n!=="description")?s=de(r):s=ue();for(const a of Io)s=a.apply(s,t);return s}function _r(t){return!!t._zod}function He(t,e){return _r(t)?la(t,e):t.safeParse(e)}function Dn(t){if(!t)return;let e;if(_r(t)?e=t._zod?.def?.shape:e=t.shape,!!e){if(typeof e=="function")try{return e()}catch{return}return e}}function Oo(t){if(_r(t)){const n=t._zod?.def;if(n){if(n.value!==void 0)return n.value;if(Array.isArray(n.values)&&n.values.length>0)return n.values[0]}}const r=t._def;if(r){if(r.value!==void 0)return r.value;if(Array.isArray(r.values)&&r.values.length>0)return r.values[0]}const s=t.value;if(s!==void 0)return s}function xe(t){return t==="completed"||t==="failed"||t==="cancelled"}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function os(t){const r=Dn(t)?.method;if(!r)throw new Error("Schema is missing a method literal");const s=Oo(r);if(typeof s!="string")throw new Error("Schema method literal must be a string");return s}function is(t,e){const r=He(t,e);if(!r.success)throw r.error;return r.data}const Ro=6e4;class Co{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(ha,r=>{this._oncancel(r)}),this.setNotificationHandler(pa,r=>{this._onprogress(r)}),this.setRequestHandler(ma,r=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(ya,async(r,s)=>{const a=await this._taskStore.getTask(r.params.taskId,s.sessionId);if(!a)throw new G(Z.InvalidParams,"Failed to retrieve task: Task not found");return{...a}}),this.setRequestHandler(ga,async(r,s)=>{const a=async()=>{const n=r.params.taskId;if(this._taskMessageQueue){let o;for(;o=await this._taskMessageQueue.dequeue(n,s.sessionId);){if(o.type==="response"||o.type==="error"){const u=o.message,m=u.id,h=this._requestResolvers.get(m);if(h)if(this._requestResolvers.delete(m),o.type==="response")h(u);else{const $=u,g=new G($.error.code,$.error.message,$.error.data);h(g)}else{const $=o.type==="response"?"Response":"Error";this._onerror(new Error(`${$} handler missing for request ${m}`))}continue}await this._transport?.send(o.message,{relatedRequestId:s.requestId})}}const i=await this._taskStore.getTask(n,s.sessionId);if(!i)throw new G(Z.InvalidParams,`Task not found: ${n}`);if(!xe(i.status))return await this._waitForTaskUpdate(n,s.signal),await a();if(xe(i.status)){const o=await this._taskStore.getTaskResult(n,s.sessionId);return this._clearTaskQueue(n),{...o,_meta:{...o._meta,[Ye]:{taskId:n}}}}return await a()};return await a()}),this.setRequestHandler(_a,async(r,s)=>{try{const{tasks:a,nextCursor:n}=await this._taskStore.listTasks(r.params?.cursor,s.sessionId);return{tasks:a,nextCursor:n,_meta:{}}}catch(a){throw new G(Z.InvalidParams,`Failed to list tasks: ${a instanceof Error?a.message:String(a)}`)}}),this.setRequestHandler(va,async(r,s)=>{try{const a=await this._taskStore.getTask(r.params.taskId,s.sessionId);if(!a)throw new G(Z.InvalidParams,`Task not found: ${r.params.taskId}`);if(xe(a.status))throw new G(Z.InvalidParams,`Cannot cancel task in terminal status: ${a.status}`);await this._taskStore.updateTaskStatus(r.params.taskId,"cancelled","Client cancelled task execution.",s.sessionId),this._clearTaskQueue(r.params.taskId);const n=await this._taskStore.getTask(r.params.taskId,s.sessionId);if(!n)throw new G(Z.InvalidParams,`Task not found after cancellation: ${r.params.taskId}`);return{_meta:{},...n}}catch(a){throw a instanceof G?a:new G(Z.InvalidRequest,`Failed to cancel task: ${a instanceof Error?a.message:String(a)}`)}}))}async _oncancel(e){if(!e.params.requestId)return;this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,r,s,a,n=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(a,r),startTime:Date.now(),timeout:r,maxTotalTimeout:s,resetTimeoutOnProgress:n,onTimeout:a})}_resetTimeout(e){const r=this._timeoutInfo.get(e);if(!r)return!1;const s=Date.now()-r.startTime;if(r.maxTotalTimeout&&s>=r.maxTotalTimeout)throw this._timeoutInfo.delete(e),G.fromError(Z.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:s});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(e){const r=this._timeoutInfo.get(e);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(e))}async connect(e){this._transport=e;const r=this.transport?.onclose;this._transport.onclose=()=>{r?.(),this._onclose()};const s=this.transport?.onerror;this._transport.onerror=n=>{s?.(n),this._onerror(n)};const a=this._transport?.onmessage;this._transport.onmessage=(n,i)=>{a?.(n,i),ft(n)||ba(n)?this._onresponse(n):Ur(n)?this._onrequest(n,i):wa(n)?this._onnotification(n):this._onerror(new Error(`Unknown message type: ${JSON.stringify(n)}`))},await this._transport.start()}_onclose(){const e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();const r=G.fromError(Z.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(const s of e.values())s(r)}_onerror(e){this.onerror?.(e)}_onnotification(e){const r=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(e)).catch(s=>this._onerror(new Error(`Uncaught error in notification handler: ${s}`)))}_onrequest(e,r){const s=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,a=this._transport,n=e.params?._meta?.[Ye]?.taskId;if(s===void 0){const h={jsonrpc:"2.0",id:e.id,error:{code:Z.MethodNotFound,message:"Method not found"}};n&&this._taskMessageQueue?this._enqueueTaskMessage(n,{type:"error",message:h,timestamp:Date.now()},a?.sessionId).catch($=>this._onerror(new Error(`Failed to enqueue error response: ${$}`))):a?.send(h).catch($=>this._onerror(new Error(`Failed to send an error response: ${$}`)));return}const i=new AbortController;this._requestHandlerAbortControllers.set(e.id,i);const o=Sa(e.params)?e.params.task:void 0,u=this._taskStore?this.requestTaskStore(e,a?.sessionId):void 0,m={signal:i.signal,sessionId:a?.sessionId,_meta:e.params?._meta,sendNotification:async h=>{const $={relatedRequestId:e.id};n&&($.relatedTask={taskId:n}),await this.notification(h,$)},sendRequest:async(h,$,g)=>{const y={...g,relatedRequestId:e.id};n&&!y.relatedTask&&(y.relatedTask={taskId:n});const v=y.relatedTask?.taskId??n;return v&&u&&await u.updateTaskStatus(v,"input_required"),await this.request(h,$,y)},authInfo:r?.authInfo,requestId:e.id,requestInfo:r?.requestInfo,taskId:n,taskStore:u,taskRequestedTtl:o?.ttl,closeSSEStream:r?.closeSSEStream,closeStandaloneSSEStream:r?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>s(e,m)).then(async h=>{if(i.signal.aborted)return;const $={result:h,jsonrpc:"2.0",id:e.id};n&&this._taskMessageQueue?await this._enqueueTaskMessage(n,{type:"response",message:$,timestamp:Date.now()},a?.sessionId):await a?.send($)},async h=>{if(i.signal.aborted)return;const $={jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(h.code)?h.code:Z.InternalError,message:h.message??"Internal error",...h.data!==void 0&&{data:h.data}}};n&&this._taskMessageQueue?await this._enqueueTaskMessage(n,{type:"error",message:$,timestamp:Date.now()},a?.sessionId):await a?.send($)}).catch(h=>this._onerror(new Error(`Failed to send response: ${h}`))).finally(()=>{this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){const{progressToken:r,...s}=e.params,a=Number(r),n=this._progressHandlers.get(a);if(!n){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}const i=this._responseHandlers.get(a),o=this._timeoutInfo.get(a);if(o&&i&&o.resetTimeoutOnProgress)try{this._resetTimeout(a)}catch(u){this._responseHandlers.delete(a),this._progressHandlers.delete(a),this._cleanupTimeout(a),i(u);return}n(s)}_onresponse(e){const r=Number(e.id),s=this._requestResolvers.get(r);if(s){if(this._requestResolvers.delete(r),ft(e))s(e);else{const i=new G(e.error.code,e.error.message,e.error.data);s(i)}return}const a=this._responseHandlers.get(r);if(a===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(r),this._cleanupTimeout(r);let n=!1;if(ft(e)&&e.result&&typeof e.result=="object"){const i=e.result;if(i.task&&typeof i.task=="object"){const o=i.task;typeof o.taskId=="string"&&(n=!0,this._taskProgressTokens.set(o.taskId,r))}}if(n||this._progressHandlers.delete(r),ft(e))a(e);else{const i=G.fromError(e.error.code,e.error.message,e.error.data);a(i)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,r,s){const{task:a}=s??{};if(!a){try{yield{type:"result",result:await this.request(e,r,s)}}catch(i){yield{type:"error",error:i instanceof G?i:new G(Z.InternalError,String(i))}}return}let n;try{const i=await this.request(e,Hr,s);if(i.task)n=i.task.taskId,yield{type:"taskCreated",task:i.task};else throw new G(Z.InternalError,"Task creation did not return a task");for(;;){const o=await this.getTask({taskId:n},s);if(yield{type:"taskStatus",task:o},xe(o.status)){o.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:n},r,s)}:o.status==="failed"?yield{type:"error",error:new G(Z.InternalError,`Task ${n} failed`)}:o.status==="cancelled"&&(yield{type:"error",error:new G(Z.InternalError,`Task ${n} was cancelled`)});return}if(o.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:n},r,s)};return}const u=o.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(m=>setTimeout(m,u)),s?.signal?.throwIfAborted()}}catch(i){yield{type:"error",error:i instanceof G?i:new G(Z.InternalError,String(i))}}}request(e,r,s){const{relatedRequestId:a,resumptionToken:n,onresumptiontoken:i,task:o,relatedTask:u}=s??{};return new Promise((m,h)=>{const $=c=>{h(c)};if(!this._transport){$(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(c){$(c);return}s?.signal?.throwIfAborted();const g=this._requestMessageId++,y={...e,jsonrpc:"2.0",id:g};s?.onprogress&&(this._progressHandlers.set(g,s.onprogress),y.params={...e.params,_meta:{...e.params?._meta||{},progressToken:g}}),o&&(y.params={...y.params,task:o}),u&&(y.params={...y.params,_meta:{...y.params?._meta||{},[Ye]:u}});const v=c=>{this._responseHandlers.delete(g),this._progressHandlers.delete(g),this._cleanupTimeout(g),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:g,reason:String(c)}},{relatedRequestId:a,resumptionToken:n,onresumptiontoken:i}).catch(S=>this._onerror(new Error(`Failed to send cancellation: ${S}`)));const d=c instanceof G?c:new G(Z.RequestTimeout,String(c));h(d)};this._responseHandlers.set(g,c=>{if(!s?.signal?.aborted){if(c instanceof Error)return h(c);try{const d=He(r,c.result);d.success?m(d.data):h(d.error)}catch(d){h(d)}}}),s?.signal?.addEventListener("abort",()=>{v(s?.signal?.reason)});const w=s?.timeout??Ro,l=()=>v(G.fromError(Z.RequestTimeout,"Request timed out",{timeout:w}));this._setupTimeout(g,w,s?.maxTotalTimeout,l,s?.resetTimeoutOnProgress??!1);const p=u?.taskId;if(p){const c=d=>{const S=this._responseHandlers.get(g);S?S(d):this._onerror(new Error(`Response handler missing for side-channeled request ${g}`))};this._requestResolvers.set(g,c),this._enqueueTaskMessage(p,{type:"request",message:y,timestamp:Date.now()}).catch(d=>{this._cleanupTimeout(g),h(d)})}else this._transport.send(y,{relatedRequestId:a,resumptionToken:n,onresumptiontoken:i}).catch(c=>{this._cleanupTimeout(g),h(c)})})}async getTask(e,r){return this.request({method:"tasks/get",params:e},$a,r)}async getTaskResult(e,r,s){return this.request({method:"tasks/result",params:e},r,s)}async listTasks(e,r){return this.request({method:"tasks/list",params:e},Ea,r)}async cancelTask(e,r){return this.request({method:"tasks/cancel",params:e},Ta,r)}async notification(e,r){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(e.method);const s=r?.relatedTask?.taskId;if(s){const o={...e,jsonrpc:"2.0",params:{...e.params,_meta:{...e.params?._meta||{},[Ye]:r.relatedTask}}};await this._enqueueTaskMessage(s,{type:"notification",message:o,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!r?.relatedRequestId&&!r?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let o={...e,jsonrpc:"2.0"};r?.relatedTask&&(o={...o,params:{...o.params,_meta:{...o.params?._meta||{},[Ye]:r.relatedTask}}}),this._transport?.send(o,r).catch(u=>this._onerror(u))});return}let i={...e,jsonrpc:"2.0"};r?.relatedTask&&(i={...i,params:{...i.params,_meta:{...i.params?._meta||{},[Ye]:r.relatedTask}}}),await this._transport.send(i,r)}setRequestHandler(e,r){const s=os(e);this.assertRequestHandlerCapability(s),this._requestHandlers.set(s,(a,n)=>{const i=is(e,a);return Promise.resolve(r(i,n))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,r){const s=os(e);this._notificationHandlers.set(s,a=>{const n=is(e,a);return Promise.resolve(r(n))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){const r=this._taskProgressTokens.get(e);r!==void 0&&(this._progressHandlers.delete(r),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,r,s){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");const a=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,r,s,a)}async _clearTaskQueue(e,r){if(this._taskMessageQueue){const s=await this._taskMessageQueue.dequeueAll(e,r);for(const a of s)if(a.type==="request"&&Ur(a.message)){const n=a.message.id,i=this._requestResolvers.get(n);i?(i(new G(Z.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(n)):this._onerror(new Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,r){let s=this._options?.defaultTaskPollInterval??1e3;try{const a=await this._taskStore?.getTask(e);a?.pollInterval&&(s=a.pollInterval)}catch{}return new Promise((a,n)=>{if(r.aborted){n(new G(Z.InvalidRequest,"Request cancelled"));return}const i=setTimeout(a,s);r.addEventListener("abort",()=>{clearTimeout(i),n(new G(Z.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(e,r){const s=this._taskStore;if(!s)throw new Error("No task store configured");return{createTask:async a=>{if(!e)throw new Error("No request provided");return await s.createTask(a,e.id,{method:e.method,params:e.params},r)},getTask:async a=>{const n=await s.getTask(a,r);if(!n)throw new G(Z.InvalidParams,"Failed to retrieve task: Task not found");return n},storeTaskResult:async(a,n,i)=>{await s.storeTaskResult(a,n,i,r);const o=await s.getTask(a,r);if(o){const u=as.parse({method:"notifications/tasks/status",params:o});await this.notification(u),xe(o.status)&&this._cleanupTaskProgressHandler(a)}},getTaskResult:a=>s.getTaskResult(a,r),updateTaskStatus:async(a,n,i)=>{const o=await s.getTask(a,r);if(!o)throw new G(Z.InvalidParams,`Task "${a}" not found - it may have been cleaned up`);if(xe(o.status))throw new G(Z.InvalidParams,`Cannot update task "${a}" from terminal status "${o.status}" to "${n}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await s.updateTaskStatus(a,n,i,r);const u=await s.getTask(a,r);if(u){const m=as.parse({method:"notifications/tasks/status",params:u});await this.notification(m),xe(u.status)&&this._cleanupTaskProgressHandler(a)}},listTasks:a=>s.listTasks(a,r)}}}function cs(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function No(t,e){const r={...t};for(const s in e){const a=s,n=e[a];if(n===void 0)continue;const i=r[a];cs(i)&&cs(n)?r[a]={...i,...n}:r[a]=n}return r}var St={exports:{}},kr={},je={},ze={},Pr={},Ir={},Or={},us;function hr(){return us||(us=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class e{}t._CodeOrName=e,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends e{constructor(c){if(super(),!t.IDENTIFIER.test(c))throw new Error("CodeGen: name must be a valid identifier");this.str=c}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class s extends e{constructor(c){super(),this._items=typeof c=="string"?[c]:c}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const c=this._items[0];return c===""||c==='""'}get str(){var c;return(c=this._str)!==null&&c!==void 0?c:this._str=this._items.reduce((d,S)=>`${d}${S}`,"")}get names(){var c;return(c=this._names)!==null&&c!==void 0?c:this._names=this._items.reduce((d,S)=>(S instanceof r&&(d[S.str]=(d[S.str]||0)+1),d),{})}}t._Code=s,t.nil=new s("");function a(p,...c){const d=[p[0]];let S=0;for(;S<c.length;)o(d,c[S]),d.push(p[++S]);return new s(d)}t._=a;const n=new s("+");function i(p,...c){const d=[y(p[0])];let S=0;for(;S<c.length;)d.push(n),o(d,c[S]),d.push(n,y(p[++S]));return u(d),new s(d)}t.str=i;function o(p,c){c instanceof s?p.push(...c._items):c instanceof r?p.push(c):p.push($(c))}t.addCodeArg=o;function u(p){let c=1;for(;c<p.length-1;){if(p[c]===n){const d=m(p[c-1],p[c+1]);if(d!==void 0){p.splice(c-1,3,d);continue}p[c++]="+"}c++}}function m(p,c){if(c==='""')return p;if(p==='""')return c;if(typeof p=="string")return c instanceof r||p[p.length-1]!=='"'?void 0:typeof c!="string"?`${p.slice(0,-1)}${c}"`:c[0]==='"'?p.slice(0,-1)+c.slice(1):void 0;if(typeof c=="string"&&c[0]==='"'&&!(p instanceof r))return`"${p}${c.slice(1)}`}function h(p,c){return c.emptyStr()?p:p.emptyStr()?c:i`${p}${c}`}t.strConcat=h;function $(p){return typeof p=="number"||typeof p=="boolean"||p===null?p:y(Array.isArray(p)?p.join(","):p)}function g(p){return new s(y(p))}t.stringify=g;function y(p){return JSON.stringify(p).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.safeStringify=y;function v(p){return typeof p=="string"&&t.IDENTIFIER.test(p)?new s(`.${p}`):a`[${p}]`}t.getProperty=v;function w(p){if(typeof p=="string"&&t.IDENTIFIER.test(p))return new s(`${p}`);throw new Error(`CodeGen: invalid export name: ${p}, use explicit $id name mapping`)}t.getEsmExportName=w;function l(p){return new s(p.toString())}t.regexpCode=l})(Or)),Or}var Rr={},ls;function ds(){return ls||(ls=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const e=hr();class r extends Error{constructor(m){super(`CodeGen: "code" for ${m} not defined`),this.value=m.value}}var s;(function(u){u[u.Started=0]="Started",u[u.Completed=1]="Completed"})(s||(t.UsedValueState=s={})),t.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};class a{constructor({prefixes:m,parent:h}={}){this._names={},this._prefixes=m,this._parent=h}toName(m){return m instanceof e.Name?m:this.name(m)}name(m){return new e.Name(this._newName(m))}_newName(m){const h=this._names[m]||this._nameGroup(m);return`${m}${h.index++}`}_nameGroup(m){var h,$;if(!(($=(h=this._parent)===null||h===void 0?void 0:h._prefixes)===null||$===void 0)&&$.has(m)||this._prefixes&&!this._prefixes.has(m))throw new Error(`CodeGen: prefix "${m}" is not allowed in this scope`);return this._names[m]={prefix:m,index:0}}}t.Scope=a;class n extends e.Name{constructor(m,h){super(h),this.prefix=m}setValue(m,{property:h,itemIndex:$}){this.value=m,this.scopePath=(0,e._)`.${new e.Name(h)}[${$}]`}}t.ValueScopeName=n;const i=(0,e._)`\n`;class o extends a{constructor(m){super(m),this._values={},this._scope=m.scope,this.opts={...m,_n:m.lines?i:e.nil}}get(){return this._scope}name(m){return new n(m,this._newName(m))}value(m,h){var $;if(h.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const g=this.toName(m),{prefix:y}=g,v=($=h.key)!==null&&$!==void 0?$:h.ref;let w=this._values[y];if(w){const c=w.get(v);if(c)return c}else w=this._values[y]=new Map;w.set(v,g);const l=this._scope[y]||(this._scope[y]=[]),p=l.length;return l[p]=h.ref,g.setValue(h,{property:y,itemIndex:p}),g}getValue(m,h){const $=this._values[m];if($)return $.get(h)}scopeRefs(m,h=this._values){return this._reduceValues(h,$=>{if($.scopePath===void 0)throw new Error(`CodeGen: name "${$}" has no value`);return(0,e._)`${m}${$.scopePath}`})}scopeCode(m=this._values,h,$){return this._reduceValues(m,g=>{if(g.value===void 0)throw new Error(`CodeGen: name "${g}" has no value`);return g.value.code},h,$)}_reduceValues(m,h,$={},g){let y=e.nil;for(const v in m){const w=m[v];if(!w)continue;const l=$[v]=$[v]||new Map;w.forEach(p=>{if(l.has(p))return;l.set(p,s.Started);let c=h(p);if(c){const d=this.opts.es5?t.varKinds.var:t.varKinds.const;y=(0,e._)`${y}${d} ${p} = ${c};${this.opts._n}`}else if(c=g?.(p))y=(0,e._)`${y}${c}${this.opts._n}`;else throw new r(p);l.set(p,s.Completed)})}return y}}t.ValueScope=o})(Rr)),Rr}var fs;function Y(){return fs||(fs=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const e=hr(),r=ds();var s=hr();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return s._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return s.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return s.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return s.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return s.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return s.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return s.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return s.Name}});var a=ds();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),t.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class n{optimizeNodes(){return this}optimizeNames(_,T){return this}}class i extends n{constructor(_,T,N){super(),this.varKind=_,this.name=T,this.rhs=N}render({es5:_,_n:T}){const N=_?r.varKinds.var:this.varKind,z=this.rhs===void 0?"":` = ${this.rhs}`;return`${N} ${this.name}${z};`+T}optimizeNames(_,T){if(_[this.name.str])return this.rhs&&(this.rhs=x(this.rhs,_,T)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class o extends n{constructor(_,T,N){super(),this.lhs=_,this.rhs=T,this.sideEffects=N}render({_n:_}){return`${this.lhs} = ${this.rhs};`+_}optimizeNames(_,T){if(!(this.lhs instanceof e.Name&&!_[this.lhs.str]&&!this.sideEffects))return this.rhs=x(this.rhs,_,T),this}get names(){const _=this.lhs instanceof e.Name?{}:{...this.lhs.names};return F(_,this.rhs)}}class u extends o{constructor(_,T,N,z){super(_,N,z),this.op=T}render({_n:_}){return`${this.lhs} ${this.op}= ${this.rhs};`+_}}class m extends n{constructor(_){super(),this.label=_,this.names={}}render({_n:_}){return`${this.label}:`+_}}class h extends n{constructor(_){super(),this.label=_,this.names={}}render({_n:_}){return`break${this.label?` ${this.label}`:""};`+_}}class $ extends n{constructor(_){super(),this.error=_}render({_n:_}){return`throw ${this.error};`+_}get names(){return this.error.names}}class g extends n{constructor(_){super(),this.code=_}render({_n:_}){return`${this.code};`+_}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(_,T){return this.code=x(this.code,_,T),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class y extends n{constructor(_=[]){super(),this.nodes=_}render(_){return this.nodes.reduce((T,N)=>T+N.render(_),"")}optimizeNodes(){const{nodes:_}=this;let T=_.length;for(;T--;){const N=_[T].optimizeNodes();Array.isArray(N)?_.splice(T,1,...N):N?_[T]=N:_.splice(T,1)}return _.length>0?this:void 0}optimizeNames(_,T){const{nodes:N}=this;let z=N.length;for(;z--;){const W=N[z];W.optimizeNames(_,T)||(ne(_,W.names),N.splice(z,1))}return N.length>0?this:void 0}get names(){return this.nodes.reduce((_,T)=>H(_,T.names),{})}}class v extends y{render(_){return"{"+_._n+super.render(_)+"}"+_._n}}class w extends y{}class l extends v{}l.kind="else";class p extends v{constructor(_,T){super(T),this.condition=_}render(_){let T=`if(${this.condition})`+super.render(_);return this.else&&(T+="else "+this.else.render(_)),T}optimizeNodes(){super.optimizeNodes();const _=this.condition;if(_===!0)return this.nodes;let T=this.else;if(T){const N=T.optimizeNodes();T=this.else=Array.isArray(N)?new l(N):N}if(T)return _===!1?T instanceof p?T:T.nodes:this.nodes.length?this:new p(_e(_),T instanceof p?[T]:T.nodes);if(!(_===!1||!this.nodes.length))return this}optimizeNames(_,T){var N;if(this.else=(N=this.else)===null||N===void 0?void 0:N.optimizeNames(_,T),!!(super.optimizeNames(_,T)||this.else))return this.condition=x(this.condition,_,T),this}get names(){const _=super.names;return F(_,this.condition),this.else&&H(_,this.else.names),_}}p.kind="if";class c extends v{}c.kind="for";class d extends c{constructor(_){super(),this.iteration=_}render(_){return`for(${this.iteration})`+super.render(_)}optimizeNames(_,T){if(super.optimizeNames(_,T))return this.iteration=x(this.iteration,_,T),this}get names(){return H(super.names,this.iteration.names)}}class S extends c{constructor(_,T,N,z){super(),this.varKind=_,this.name=T,this.from=N,this.to=z}render(_){const T=_.es5?r.varKinds.var:this.varKind,{name:N,from:z,to:W}=this;return`for(${T} ${N}=${z}; ${N}<${W}; ${N}++)`+super.render(_)}get names(){const _=F(super.names,this.from);return F(_,this.to)}}class f extends c{constructor(_,T,N,z){super(),this.loop=_,this.varKind=T,this.name=N,this.iterable=z}render(_){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(_)}optimizeNames(_,T){if(super.optimizeNames(_,T))return this.iterable=x(this.iterable,_,T),this}get names(){return H(super.names,this.iterable.names)}}class b extends v{constructor(_,T,N){super(),this.name=_,this.args=T,this.async=N}render(_){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(_)}}b.kind="func";class E extends y{render(_){return"return "+super.render(_)}}E.kind="return";class C extends v{render(_){let T="try"+super.render(_);return this.catch&&(T+=this.catch.render(_)),this.finally&&(T+=this.finally.render(_)),T}optimizeNodes(){var _,T;return super.optimizeNodes(),(_=this.catch)===null||_===void 0||_.optimizeNodes(),(T=this.finally)===null||T===void 0||T.optimizeNodes(),this}optimizeNames(_,T){var N,z;return super.optimizeNames(_,T),(N=this.catch)===null||N===void 0||N.optimizeNames(_,T),(z=this.finally)===null||z===void 0||z.optimizeNames(_,T),this}get names(){const _=super.names;return this.catch&&H(_,this.catch.names),this.finally&&H(_,this.finally.names),_}}class D extends v{constructor(_){super(),this.error=_}render(_){return`catch(${this.error})`+super.render(_)}}D.kind="catch";class V extends v{render(_){return"finally"+super.render(_)}}V.kind="finally";class q{constructor(_,T={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...T,_n:T.lines?`
1
+ import{b1 as ue,b2 as ss,w as I,aM as J,Y as we,aL as gr,W as B,aJ as aa,aH as de,aN as ie,a0 as Pe,b3 as it,b4 as oa,v as A,b5 as Br,b6 as ns,b7 as ia,b8 as qn,b9 as ca,ba as ua,bb as la,aj as jn,aK as Qr,aO as ye,X as ge,bc as _t,bd as da,aI as fa}from"./index-BdKUt3kP.js";import{C as ha,P as pa,a as ma,G as ya,M as G,E as Z,b as ga,L as _a,c as va,i as ft,d as ba,e as Ur,f as wa,R as Ye,g as Sa,h as Hr,j as $a,k as Ea,l as Ta,T as as,m as Mn,n as ka,o as Pa,p as Ia,q as Oa,I as Ra,S as Ca,r as wt,s as Na,t as qa,u as ja,v as Ma,w as Aa,x as Da,y as An,z as La,A as Ua,B as Ha,D as Va,F as Fa,U as Ne,H as Je,J as dr,K as mt,N as xa}from"./auth-p1E7za2T.js";var za=class{apply(t,e){if(!e.type)return;const r=Array.isArray(e.type)?e.type:[e.type],s=new Set(r);if(s.has("string")||(t.string=!1),!s.has("number")&&!s.has("integer")&&(t.number=!1),s.has("boolean")||(t.boolean=!1),s.has("null")||(t.null=!1),s.has("array")||(t.array=!1),s.has("object")||(t.object=!1),s.has("integer")&&t.number!==!1){const a=t.number||J();a instanceof it&&(t.number=a.int())}}},Ka=class{apply(t,e){if(e.const===void 0)return;const r=e.const;t.string=!1,t.number=!1,t.boolean=!1,t.null=!1,t.array=!1,t.object=!1,typeof r=="string"?t.string=ie(r):typeof r=="number"?t.number=ie(r):typeof r=="boolean"?t.boolean=ie(r):r===null?t.null=gr():Array.isArray(r)?t.array=void 0:typeof r=="object"&&(t.object=void 0)}},Wa=class{apply(t,e){if(!e.enum)return;if(e.enum.length===0){e.type||(t.string=!1,t.number=!1,t.boolean=!1,t.null=!1,t.array=!1,t.object=!1);return}const r={string:e.enum.filter(s=>typeof s=="string"),number:e.enum.filter(s=>typeof s=="number"),boolean:e.enum.filter(s=>typeof s=="boolean"),null:e.enum.filter(s=>s===null),array:e.enum.filter(s=>Array.isArray(s)),object:e.enum.filter(s=>typeof s=="object"&&s!==null&&!Array.isArray(s))};t.string=this.createTypeSchema(r.string,"string"),t.number=this.createTypeSchema(r.number,"number"),t.boolean=this.createTypeSchema(r.boolean,"boolean"),t.null=r.null.length>0?gr():!1,t.array=r.array.length>0?void 0:!1,t.object=r.object.length>0?void 0:!1}createTypeSchema(t,e){if(t.length===0)return!1;if(t.length===1)return ie(t[0]);if(e==="string")return Pe(t);if(e==="number"){const[r,s,...a]=t;return de([ie(r),ie(s),...a.map(n=>ie(n))])}return e==="boolean"?de([ie(!0),ie(!1)]):!1}},Ga=class{apply(t,e){const r=e;if(r.type==="string"&&r.format==="binary"&&r.contentEncoding==="binary"){let s=oa();r.minLength!==void 0&&(s=s.min(r.minLength)),r.maxLength!==void 0&&(s=s.max(r.maxLength)),r.contentMediaType!==void 0&&(s=s.mime(r.contentMediaType)),t.file=s,t.string=!1}}},Ja=class{apply(t,e){const r=e;e.type===void 0&&(r.minLength!==void 0||r.maxLength!==void 0||r.pattern!==void 0)&&t.string===void 0&&(t.string=I())}},Ba=class{apply(t,e){const r=e;if(r.minLength!==void 0&&t.string!==!1){const s=t.string||I();s instanceof Br&&(t.string=s.refine(a=>Array.from(a).length>=r.minLength,{message:`String must be at least ${r.minLength} characters long`}))}}},Qa=class{apply(t,e){const r=e;if(r.maxLength!==void 0&&t.string!==!1){const s=t.string||I();s instanceof Br&&(t.string=s.refine(a=>Array.from(a).length<=r.maxLength,{message:`String must be at most ${r.maxLength} characters long`}))}}},Za=class{apply(t,e){const r=e;if(r.pattern&&t.string!==!1){const s=t.string||I();if(s instanceof Br){const a=new RegExp(r.pattern);t.string=s.regex(a)}}}},Ya=class{apply(t,e){const r=e;if(r.minimum!==void 0&&t.number!==!1){const s=t.number||J();s instanceof it&&(t.number=s.min(r.minimum))}}},Xa=class{apply(t,e){const r=e;if(r.maximum!==void 0&&t.number!==!1){const s=t.number||J();s instanceof it&&(t.number=s.max(r.maximum))}}},eo=class{apply(t,e){const r=e;if(r.exclusiveMinimum!==void 0&&t.number!==!1){const s=t.number||J();s instanceof it&&(typeof r.exclusiveMinimum=="number"?t.number=s.gt(r.exclusiveMinimum):t.number=!1)}}},to=class{apply(t,e){const r=e;if(r.exclusiveMaximum!==void 0&&t.number!==!1){const s=t.number||J();s instanceof it&&(typeof r.exclusiveMaximum=="number"?t.number=s.lt(r.exclusiveMaximum):t.number=!1)}}},ro=class{apply(t,e){const r=e;if(r.multipleOf!==void 0&&t.number!==!1){const s=t.number||J();s instanceof it&&(t.number=s.refine(a=>{if(r.multipleOf===0)return!1;const n=a/r.multipleOf,i=Math.round(n),o=Math.min(Math.abs(a)*Number.EPSILON*10,Math.abs(r.multipleOf)*Number.EPSILON*10);return Math.abs(n-i)<=o/Math.abs(r.multipleOf)},{message:`Must be a multiple of ${r.multipleOf}`}))}}},so=class{apply(t,e){const r=e;e.type===void 0&&(r.minItems!==void 0||r.maxItems!==void 0||r.items!==void 0||r.prefixItems!==void 0)&&t.array===void 0&&(t.array=B(ue()))}},no=class{apply(t,e){const r=e;r.minItems!==void 0&&t.array!==!1&&(t.array=(t.array||B(ue())).min(r.minItems))}},ao=class{apply(t,e){const r=e;r.maxItems!==void 0&&t.array!==!1&&(t.array=(t.array||B(ue())).max(r.maxItems))}},oo=class{apply(t,e){const r=e;if(t.array!==!1)if(Array.isArray(r.items))t.array=t.array||B(ue());else if(r.items&&typeof r.items!="boolean"&&!r.prefixItems){const s=fe(r.items);let a=B(s);if(t.array&&t.array instanceof ia){const n=t.array._def;n.checks&&n.checks.forEach(i=>{if(i._zod&&i._zod.def){const o=i._zod.def;o.check==="min_length"&&o.minimum!==void 0?a=a.min(o.minimum):o.check==="max_length"&&o.maximum!==void 0&&(a=a.max(o.maximum))}})}t.array=a}else typeof r.items=="boolean"&&r.items===!1?r.prefixItems?t.array=t.array||B(ue()):t.array=B(ue()).max(0):typeof r.items=="boolean"&&r.items===!0?t.array=t.array||B(ue()):r.prefixItems&&(t.array=t.array||B(ue()))}},io=class{apply(t,e){if(e.type!=="array")return;const r=e;if(!Array.isArray(r.items)||t.array===!1)return;const s=r.items.map(n=>fe(n));let a;s.length===0?a=ns([]):a=ns(s),r.minItems!==void 0&&r.minItems>s.length&&(a=!1),r.maxItems!==void 0&&r.maxItems<s.length&&(a=!1),t.tuple=a,t.array=!1}},co=class{apply(t,e){const r=e;t.object!==!1&&(r.properties||r.required||r.additionalProperties!==void 0)&&(t.object=t.object||A({}).passthrough())}},uo=class{apply(t,e){const r=e;e.type===void 0&&(r.maxProperties!==void 0||r.minProperties!==void 0)&&t.object===void 0&&(t.object=A({}).passthrough())}},lo=class{apply(t,e){const r=e;if(r.maxProperties!==void 0&&t.object!==!1){const s=t.object||A({}).passthrough();t.object=s.refine(a=>Object.keys(a).length<=r.maxProperties,{message:`Object must have at most ${r.maxProperties} properties`})}}},fo=class{apply(t,e){const r=e;if(r.minProperties!==void 0&&t.object!==!1){const s=t.object||A({}).passthrough();t.object=s.refine(a=>Object.keys(a).length>=r.minProperties,{message:`Object must have at least ${r.minProperties} properties`})}}};function vt(t,e){if(t===e)return!0;if(t==null||e==null)return t===e;if(typeof t!=typeof e)return!1;if(Array.isArray(t)&&Array.isArray(e))return t.length!==e.length?!1:t.every((r,s)=>vt(r,e[s]));if(typeof t=="object"&&typeof e=="object"){const r=Object.keys(t),s=Object.keys(e);return r.length!==s.length?!1:r.every(a=>s.includes(a)&&vt(t[a],e[a]))}return!1}function ho(){return t=>{if(!Array.isArray(t))return!0;const e=[];return t.every(r=>e.some(a=>vt(r,a))?!1:(e.push(r),!0))}}function fr(t,e){return t.safeParse(e).success}var po=class{apply(t,e){if(!e.not)return t;const r=fe(e.not);return t.refine(s=>!fr(r,s),{message:"Value must not match the 'not' schema"})}},mo=class{apply(t,e){return e.uniqueItems!==!0?t:t.refine(ho(),{message:"Array items must be unique"})}},yo=class{apply(t,e){return!e.allOf||e.allOf.length===0?t:e.allOf.map(s=>fe(s)).reduce((s,a)=>qn(s,a),t)}},go=class{apply(t,e){if(!e.anyOf||e.anyOf.length===0)return t;const r=e.anyOf.length===1?fe(e.anyOf[0]):de([fe(e.anyOf[0]),fe(e.anyOf[1]),...e.anyOf.slice(2).map(s=>fe(s))]);return qn(t,r)}},_o=class{apply(t,e){if(!e.oneOf||e.oneOf.length===0)return t;const r=e.oneOf.map(s=>fe(s));return t.refine(s=>{let a=0;for(const n of r)if(n.safeParse(s).success&&(a++,a>1))return!1;return a===1},{message:"Value must match exactly one of the oneOf schemas"})}},vo=class{apply(t,e){const r=e;if(r.prefixItems&&Array.isArray(r.prefixItems)){const a=r.prefixItems.map(n=>fe(n));return t.refine(n=>{if(!Array.isArray(n))return!0;for(let i=0;i<Math.min(n.length,a.length);i++)if(!fr(a[i],n[i]))return!1;if(n.length>a.length){if(typeof r.items=="boolean"&&r.items===!1)return!1;if(r.items&&typeof r.items=="object"&&!Array.isArray(r.items)){const i=fe(r.items);for(let o=a.length;o<n.length;o++)if(!fr(i,n[o]))return!1}}return!0},{message:"Array does not match prefixItems schema"})}return t}},bo=class{apply(t,e){const r=e;if(!r.properties&&!r.required&&r.additionalProperties!==!1)return t;if(t instanceof ca||t instanceof ua){const s={};if(r.properties)for(const[a,n]of Object.entries(r.properties))n!==void 0&&(s[a]=fe(n));if(r.required&&Array.isArray(r.required)){const a=new Set(r.required);for(const n of Object.keys(s))a.has(n)||(s[n]=s[n].optional())}else for(const a of Object.keys(s))s[a]=s[a].optional();return r.additionalProperties===!1?A(s):A(s).passthrough()}return t.refine(s=>{if(typeof s!="object"||s===null||Array.isArray(s))return!0;if(r.properties){for(const[a,n]of Object.entries(r.properties))if(n!==void 0&&Object.getOwnPropertyDescriptor(s,a)!==void 0&&!fe(n).safeParse(s[a]).success)return!1}if(r.required&&Array.isArray(r.required)){for(const a of r.required)if(!(Object.getOwnPropertyDescriptor(s,a)!==void 0))return!1}if(r.additionalProperties===!1&&r.properties){const a=new Set(Object.keys(r.properties));for(const n in s)if(!a.has(n))return!1}return!0},{message:"Object constraints validation failed"})}},wo=class{apply(t,e){if(!e.enum||e.enum.length===0)return t;const r=e.enum.filter(s=>Array.isArray(s)||typeof s=="object"&&s!==null);return r.length===0?t:t.refine(s=>typeof s!="object"||s===null?!0:r.some(a=>vt(s,a)),{message:"Value must match one of the enum values"})}},So=class{apply(t,e){if(e.const===void 0)return t;const r=e.const;return typeof r!="object"||r===null?t:t.refine(s=>vt(s,r),{message:"Value must equal the const value"})}},$o=class{apply(t,e){return e.description&&(t=t.describe(e.description)),t}},Eo=class{apply(t,e){var r;const s=e;return!((r=s.required)!=null&&r.includes("__proto__"))||e.type!==void 0?t:ue().refine(a=>this.validateRequired(a,s.required),{message:"Missing required properties"})}validateRequired(t,e){return typeof t!="object"||t===null||Array.isArray(t)?!0:e.every(r=>Object.prototype.hasOwnProperty.call(t,r))}},To=class{apply(t,e){var r;const s=e;if(s.contains===void 0)return t;const a=fe(s.contains),n=(r=s.minContains)!=null?r:1,i=s.maxContains;return t.refine(o=>{if(!Array.isArray(o))return!0;let u=0;for(const m of o)fr(a,m)&&u++;return!(u<n||i!==void 0&&u>i)},{message:"Array must contain required items matching the schema"})}},ko=class{apply(t,e){const{default:r}=e;return r===void 0||!t.safeParse(r).success?t:t.default(r)}},Po=[new Ka,new Wa,new za,new Ga,new Ja,new so,new uo,new Ba,new Qa,new Za,new Ya,new Xa,new eo,new to,new ro,new io,new no,new ao,new oo,new lo,new fo,new co],Io=[new Eo,new wo,new So,new yo,new go,new _o,new vo,new bo,new To,new po,new mo,new ko,new $o];function fe(t){if(typeof t=="boolean")return t?ue():ss();const e={};for(const a of Po)a.apply(e,t);const r=[];if(e.string!==!1&&r.push(e.string||I()),e.number!==!1&&r.push(e.number||J()),e.boolean!==!1&&r.push(e.boolean||we()),e.null!==!1&&r.push(e.null||gr()),e.array!==!1&&r.push(e.array||B(ue())),e.tuple!==!1&&e.tuple!==void 0&&r.push(e.tuple),e.object!==!1)if(e.object)r.push(e.object);else{const a=aa(n=>typeof n=="object"&&n!==null&&!Array.isArray(n),"Must be an object, not an array");r.push(a)}e.file!==!1&&e.file!==void 0&&r.push(e.file);let s;r.length===0?s=ss():r.length===1?s=r[0]:Object.keys(t).some(n=>n!=="$schema"&&n!=="title"&&n!=="description")?s=de(r):s=ue();for(const a of Io)s=a.apply(s,t);return s}function _r(t){return!!t._zod}function He(t,e){return _r(t)?la(t,e):t.safeParse(e)}function Dn(t){if(!t)return;let e;if(_r(t)?e=t._zod?.def?.shape:e=t.shape,!!e){if(typeof e=="function")try{return e()}catch{return}return e}}function Oo(t){if(_r(t)){const n=t._zod?.def;if(n){if(n.value!==void 0)return n.value;if(Array.isArray(n.values)&&n.values.length>0)return n.values[0]}}const r=t._def;if(r){if(r.value!==void 0)return r.value;if(Array.isArray(r.values)&&r.values.length>0)return r.values[0]}const s=t.value;if(s!==void 0)return s}function xe(t){return t==="completed"||t==="failed"||t==="cancelled"}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function os(t){const r=Dn(t)?.method;if(!r)throw new Error("Schema is missing a method literal");const s=Oo(r);if(typeof s!="string")throw new Error("Schema method literal must be a string");return s}function is(t,e){const r=He(t,e);if(!r.success)throw r.error;return r.data}const Ro=6e4;class Co{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(ha,r=>{this._oncancel(r)}),this.setNotificationHandler(pa,r=>{this._onprogress(r)}),this.setRequestHandler(ma,r=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(ya,async(r,s)=>{const a=await this._taskStore.getTask(r.params.taskId,s.sessionId);if(!a)throw new G(Z.InvalidParams,"Failed to retrieve task: Task not found");return{...a}}),this.setRequestHandler(ga,async(r,s)=>{const a=async()=>{const n=r.params.taskId;if(this._taskMessageQueue){let o;for(;o=await this._taskMessageQueue.dequeue(n,s.sessionId);){if(o.type==="response"||o.type==="error"){const u=o.message,m=u.id,h=this._requestResolvers.get(m);if(h)if(this._requestResolvers.delete(m),o.type==="response")h(u);else{const $=u,g=new G($.error.code,$.error.message,$.error.data);h(g)}else{const $=o.type==="response"?"Response":"Error";this._onerror(new Error(`${$} handler missing for request ${m}`))}continue}await this._transport?.send(o.message,{relatedRequestId:s.requestId})}}const i=await this._taskStore.getTask(n,s.sessionId);if(!i)throw new G(Z.InvalidParams,`Task not found: ${n}`);if(!xe(i.status))return await this._waitForTaskUpdate(n,s.signal),await a();if(xe(i.status)){const o=await this._taskStore.getTaskResult(n,s.sessionId);return this._clearTaskQueue(n),{...o,_meta:{...o._meta,[Ye]:{taskId:n}}}}return await a()};return await a()}),this.setRequestHandler(_a,async(r,s)=>{try{const{tasks:a,nextCursor:n}=await this._taskStore.listTasks(r.params?.cursor,s.sessionId);return{tasks:a,nextCursor:n,_meta:{}}}catch(a){throw new G(Z.InvalidParams,`Failed to list tasks: ${a instanceof Error?a.message:String(a)}`)}}),this.setRequestHandler(va,async(r,s)=>{try{const a=await this._taskStore.getTask(r.params.taskId,s.sessionId);if(!a)throw new G(Z.InvalidParams,`Task not found: ${r.params.taskId}`);if(xe(a.status))throw new G(Z.InvalidParams,`Cannot cancel task in terminal status: ${a.status}`);await this._taskStore.updateTaskStatus(r.params.taskId,"cancelled","Client cancelled task execution.",s.sessionId),this._clearTaskQueue(r.params.taskId);const n=await this._taskStore.getTask(r.params.taskId,s.sessionId);if(!n)throw new G(Z.InvalidParams,`Task not found after cancellation: ${r.params.taskId}`);return{_meta:{},...n}}catch(a){throw a instanceof G?a:new G(Z.InvalidRequest,`Failed to cancel task: ${a instanceof Error?a.message:String(a)}`)}}))}async _oncancel(e){if(!e.params.requestId)return;this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,r,s,a,n=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(a,r),startTime:Date.now(),timeout:r,maxTotalTimeout:s,resetTimeoutOnProgress:n,onTimeout:a})}_resetTimeout(e){const r=this._timeoutInfo.get(e);if(!r)return!1;const s=Date.now()-r.startTime;if(r.maxTotalTimeout&&s>=r.maxTotalTimeout)throw this._timeoutInfo.delete(e),G.fromError(Z.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:s});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(e){const r=this._timeoutInfo.get(e);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(e))}async connect(e){this._transport=e;const r=this.transport?.onclose;this._transport.onclose=()=>{r?.(),this._onclose()};const s=this.transport?.onerror;this._transport.onerror=n=>{s?.(n),this._onerror(n)};const a=this._transport?.onmessage;this._transport.onmessage=(n,i)=>{a?.(n,i),ft(n)||ba(n)?this._onresponse(n):Ur(n)?this._onrequest(n,i):wa(n)?this._onnotification(n):this._onerror(new Error(`Unknown message type: ${JSON.stringify(n)}`))},await this._transport.start()}_onclose(){const e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();const r=G.fromError(Z.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(const s of e.values())s(r)}_onerror(e){this.onerror?.(e)}_onnotification(e){const r=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(e)).catch(s=>this._onerror(new Error(`Uncaught error in notification handler: ${s}`)))}_onrequest(e,r){const s=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,a=this._transport,n=e.params?._meta?.[Ye]?.taskId;if(s===void 0){const h={jsonrpc:"2.0",id:e.id,error:{code:Z.MethodNotFound,message:"Method not found"}};n&&this._taskMessageQueue?this._enqueueTaskMessage(n,{type:"error",message:h,timestamp:Date.now()},a?.sessionId).catch($=>this._onerror(new Error(`Failed to enqueue error response: ${$}`))):a?.send(h).catch($=>this._onerror(new Error(`Failed to send an error response: ${$}`)));return}const i=new AbortController;this._requestHandlerAbortControllers.set(e.id,i);const o=Sa(e.params)?e.params.task:void 0,u=this._taskStore?this.requestTaskStore(e,a?.sessionId):void 0,m={signal:i.signal,sessionId:a?.sessionId,_meta:e.params?._meta,sendNotification:async h=>{const $={relatedRequestId:e.id};n&&($.relatedTask={taskId:n}),await this.notification(h,$)},sendRequest:async(h,$,g)=>{const y={...g,relatedRequestId:e.id};n&&!y.relatedTask&&(y.relatedTask={taskId:n});const v=y.relatedTask?.taskId??n;return v&&u&&await u.updateTaskStatus(v,"input_required"),await this.request(h,$,y)},authInfo:r?.authInfo,requestId:e.id,requestInfo:r?.requestInfo,taskId:n,taskStore:u,taskRequestedTtl:o?.ttl,closeSSEStream:r?.closeSSEStream,closeStandaloneSSEStream:r?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>s(e,m)).then(async h=>{if(i.signal.aborted)return;const $={result:h,jsonrpc:"2.0",id:e.id};n&&this._taskMessageQueue?await this._enqueueTaskMessage(n,{type:"response",message:$,timestamp:Date.now()},a?.sessionId):await a?.send($)},async h=>{if(i.signal.aborted)return;const $={jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(h.code)?h.code:Z.InternalError,message:h.message??"Internal error",...h.data!==void 0&&{data:h.data}}};n&&this._taskMessageQueue?await this._enqueueTaskMessage(n,{type:"error",message:$,timestamp:Date.now()},a?.sessionId):await a?.send($)}).catch(h=>this._onerror(new Error(`Failed to send response: ${h}`))).finally(()=>{this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){const{progressToken:r,...s}=e.params,a=Number(r),n=this._progressHandlers.get(a);if(!n){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}const i=this._responseHandlers.get(a),o=this._timeoutInfo.get(a);if(o&&i&&o.resetTimeoutOnProgress)try{this._resetTimeout(a)}catch(u){this._responseHandlers.delete(a),this._progressHandlers.delete(a),this._cleanupTimeout(a),i(u);return}n(s)}_onresponse(e){const r=Number(e.id),s=this._requestResolvers.get(r);if(s){if(this._requestResolvers.delete(r),ft(e))s(e);else{const i=new G(e.error.code,e.error.message,e.error.data);s(i)}return}const a=this._responseHandlers.get(r);if(a===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(r),this._cleanupTimeout(r);let n=!1;if(ft(e)&&e.result&&typeof e.result=="object"){const i=e.result;if(i.task&&typeof i.task=="object"){const o=i.task;typeof o.taskId=="string"&&(n=!0,this._taskProgressTokens.set(o.taskId,r))}}if(n||this._progressHandlers.delete(r),ft(e))a(e);else{const i=G.fromError(e.error.code,e.error.message,e.error.data);a(i)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,r,s){const{task:a}=s??{};if(!a){try{yield{type:"result",result:await this.request(e,r,s)}}catch(i){yield{type:"error",error:i instanceof G?i:new G(Z.InternalError,String(i))}}return}let n;try{const i=await this.request(e,Hr,s);if(i.task)n=i.task.taskId,yield{type:"taskCreated",task:i.task};else throw new G(Z.InternalError,"Task creation did not return a task");for(;;){const o=await this.getTask({taskId:n},s);if(yield{type:"taskStatus",task:o},xe(o.status)){o.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:n},r,s)}:o.status==="failed"?yield{type:"error",error:new G(Z.InternalError,`Task ${n} failed`)}:o.status==="cancelled"&&(yield{type:"error",error:new G(Z.InternalError,`Task ${n} was cancelled`)});return}if(o.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:n},r,s)};return}const u=o.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(m=>setTimeout(m,u)),s?.signal?.throwIfAborted()}}catch(i){yield{type:"error",error:i instanceof G?i:new G(Z.InternalError,String(i))}}}request(e,r,s){const{relatedRequestId:a,resumptionToken:n,onresumptiontoken:i,task:o,relatedTask:u}=s??{};return new Promise((m,h)=>{const $=c=>{h(c)};if(!this._transport){$(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(c){$(c);return}s?.signal?.throwIfAborted();const g=this._requestMessageId++,y={...e,jsonrpc:"2.0",id:g};s?.onprogress&&(this._progressHandlers.set(g,s.onprogress),y.params={...e.params,_meta:{...e.params?._meta||{},progressToken:g}}),o&&(y.params={...y.params,task:o}),u&&(y.params={...y.params,_meta:{...y.params?._meta||{},[Ye]:u}});const v=c=>{this._responseHandlers.delete(g),this._progressHandlers.delete(g),this._cleanupTimeout(g),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:g,reason:String(c)}},{relatedRequestId:a,resumptionToken:n,onresumptiontoken:i}).catch(S=>this._onerror(new Error(`Failed to send cancellation: ${S}`)));const d=c instanceof G?c:new G(Z.RequestTimeout,String(c));h(d)};this._responseHandlers.set(g,c=>{if(!s?.signal?.aborted){if(c instanceof Error)return h(c);try{const d=He(r,c.result);d.success?m(d.data):h(d.error)}catch(d){h(d)}}}),s?.signal?.addEventListener("abort",()=>{v(s?.signal?.reason)});const w=s?.timeout??Ro,l=()=>v(G.fromError(Z.RequestTimeout,"Request timed out",{timeout:w}));this._setupTimeout(g,w,s?.maxTotalTimeout,l,s?.resetTimeoutOnProgress??!1);const p=u?.taskId;if(p){const c=d=>{const S=this._responseHandlers.get(g);S?S(d):this._onerror(new Error(`Response handler missing for side-channeled request ${g}`))};this._requestResolvers.set(g,c),this._enqueueTaskMessage(p,{type:"request",message:y,timestamp:Date.now()}).catch(d=>{this._cleanupTimeout(g),h(d)})}else this._transport.send(y,{relatedRequestId:a,resumptionToken:n,onresumptiontoken:i}).catch(c=>{this._cleanupTimeout(g),h(c)})})}async getTask(e,r){return this.request({method:"tasks/get",params:e},$a,r)}async getTaskResult(e,r,s){return this.request({method:"tasks/result",params:e},r,s)}async listTasks(e,r){return this.request({method:"tasks/list",params:e},Ea,r)}async cancelTask(e,r){return this.request({method:"tasks/cancel",params:e},Ta,r)}async notification(e,r){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(e.method);const s=r?.relatedTask?.taskId;if(s){const o={...e,jsonrpc:"2.0",params:{...e.params,_meta:{...e.params?._meta||{},[Ye]:r.relatedTask}}};await this._enqueueTaskMessage(s,{type:"notification",message:o,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!r?.relatedRequestId&&!r?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let o={...e,jsonrpc:"2.0"};r?.relatedTask&&(o={...o,params:{...o.params,_meta:{...o.params?._meta||{},[Ye]:r.relatedTask}}}),this._transport?.send(o,r).catch(u=>this._onerror(u))});return}let i={...e,jsonrpc:"2.0"};r?.relatedTask&&(i={...i,params:{...i.params,_meta:{...i.params?._meta||{},[Ye]:r.relatedTask}}}),await this._transport.send(i,r)}setRequestHandler(e,r){const s=os(e);this.assertRequestHandlerCapability(s),this._requestHandlers.set(s,(a,n)=>{const i=is(e,a);return Promise.resolve(r(i,n))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,r){const s=os(e);this._notificationHandlers.set(s,a=>{const n=is(e,a);return Promise.resolve(r(n))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){const r=this._taskProgressTokens.get(e);r!==void 0&&(this._progressHandlers.delete(r),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,r,s){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");const a=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,r,s,a)}async _clearTaskQueue(e,r){if(this._taskMessageQueue){const s=await this._taskMessageQueue.dequeueAll(e,r);for(const a of s)if(a.type==="request"&&Ur(a.message)){const n=a.message.id,i=this._requestResolvers.get(n);i?(i(new G(Z.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(n)):this._onerror(new Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,r){let s=this._options?.defaultTaskPollInterval??1e3;try{const a=await this._taskStore?.getTask(e);a?.pollInterval&&(s=a.pollInterval)}catch{}return new Promise((a,n)=>{if(r.aborted){n(new G(Z.InvalidRequest,"Request cancelled"));return}const i=setTimeout(a,s);r.addEventListener("abort",()=>{clearTimeout(i),n(new G(Z.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(e,r){const s=this._taskStore;if(!s)throw new Error("No task store configured");return{createTask:async a=>{if(!e)throw new Error("No request provided");return await s.createTask(a,e.id,{method:e.method,params:e.params},r)},getTask:async a=>{const n=await s.getTask(a,r);if(!n)throw new G(Z.InvalidParams,"Failed to retrieve task: Task not found");return n},storeTaskResult:async(a,n,i)=>{await s.storeTaskResult(a,n,i,r);const o=await s.getTask(a,r);if(o){const u=as.parse({method:"notifications/tasks/status",params:o});await this.notification(u),xe(o.status)&&this._cleanupTaskProgressHandler(a)}},getTaskResult:a=>s.getTaskResult(a,r),updateTaskStatus:async(a,n,i)=>{const o=await s.getTask(a,r);if(!o)throw new G(Z.InvalidParams,`Task "${a}" not found - it may have been cleaned up`);if(xe(o.status))throw new G(Z.InvalidParams,`Cannot update task "${a}" from terminal status "${o.status}" to "${n}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await s.updateTaskStatus(a,n,i,r);const u=await s.getTask(a,r);if(u){const m=as.parse({method:"notifications/tasks/status",params:u});await this.notification(m),xe(u.status)&&this._cleanupTaskProgressHandler(a)}},listTasks:a=>s.listTasks(a,r)}}}function cs(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function No(t,e){const r={...t};for(const s in e){const a=s,n=e[a];if(n===void 0)continue;const i=r[a];cs(i)&&cs(n)?r[a]={...i,...n}:r[a]=n}return r}var St={exports:{}},kr={},je={},ze={},Pr={},Ir={},Or={},us;function hr(){return us||(us=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class e{}t._CodeOrName=e,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends e{constructor(c){if(super(),!t.IDENTIFIER.test(c))throw new Error("CodeGen: name must be a valid identifier");this.str=c}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class s extends e{constructor(c){super(),this._items=typeof c=="string"?[c]:c}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const c=this._items[0];return c===""||c==='""'}get str(){var c;return(c=this._str)!==null&&c!==void 0?c:this._str=this._items.reduce((d,S)=>`${d}${S}`,"")}get names(){var c;return(c=this._names)!==null&&c!==void 0?c:this._names=this._items.reduce((d,S)=>(S instanceof r&&(d[S.str]=(d[S.str]||0)+1),d),{})}}t._Code=s,t.nil=new s("");function a(p,...c){const d=[p[0]];let S=0;for(;S<c.length;)o(d,c[S]),d.push(p[++S]);return new s(d)}t._=a;const n=new s("+");function i(p,...c){const d=[y(p[0])];let S=0;for(;S<c.length;)d.push(n),o(d,c[S]),d.push(n,y(p[++S]));return u(d),new s(d)}t.str=i;function o(p,c){c instanceof s?p.push(...c._items):c instanceof r?p.push(c):p.push($(c))}t.addCodeArg=o;function u(p){let c=1;for(;c<p.length-1;){if(p[c]===n){const d=m(p[c-1],p[c+1]);if(d!==void 0){p.splice(c-1,3,d);continue}p[c++]="+"}c++}}function m(p,c){if(c==='""')return p;if(p==='""')return c;if(typeof p=="string")return c instanceof r||p[p.length-1]!=='"'?void 0:typeof c!="string"?`${p.slice(0,-1)}${c}"`:c[0]==='"'?p.slice(0,-1)+c.slice(1):void 0;if(typeof c=="string"&&c[0]==='"'&&!(p instanceof r))return`"${p}${c.slice(1)}`}function h(p,c){return c.emptyStr()?p:p.emptyStr()?c:i`${p}${c}`}t.strConcat=h;function $(p){return typeof p=="number"||typeof p=="boolean"||p===null?p:y(Array.isArray(p)?p.join(","):p)}function g(p){return new s(y(p))}t.stringify=g;function y(p){return JSON.stringify(p).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.safeStringify=y;function v(p){return typeof p=="string"&&t.IDENTIFIER.test(p)?new s(`.${p}`):a`[${p}]`}t.getProperty=v;function w(p){if(typeof p=="string"&&t.IDENTIFIER.test(p))return new s(`${p}`);throw new Error(`CodeGen: invalid export name: ${p}, use explicit $id name mapping`)}t.getEsmExportName=w;function l(p){return new s(p.toString())}t.regexpCode=l})(Or)),Or}var Rr={},ls;function ds(){return ls||(ls=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const e=hr();class r extends Error{constructor(m){super(`CodeGen: "code" for ${m} not defined`),this.value=m.value}}var s;(function(u){u[u.Started=0]="Started",u[u.Completed=1]="Completed"})(s||(t.UsedValueState=s={})),t.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};class a{constructor({prefixes:m,parent:h}={}){this._names={},this._prefixes=m,this._parent=h}toName(m){return m instanceof e.Name?m:this.name(m)}name(m){return new e.Name(this._newName(m))}_newName(m){const h=this._names[m]||this._nameGroup(m);return`${m}${h.index++}`}_nameGroup(m){var h,$;if(!(($=(h=this._parent)===null||h===void 0?void 0:h._prefixes)===null||$===void 0)&&$.has(m)||this._prefixes&&!this._prefixes.has(m))throw new Error(`CodeGen: prefix "${m}" is not allowed in this scope`);return this._names[m]={prefix:m,index:0}}}t.Scope=a;class n extends e.Name{constructor(m,h){super(h),this.prefix=m}setValue(m,{property:h,itemIndex:$}){this.value=m,this.scopePath=(0,e._)`.${new e.Name(h)}[${$}]`}}t.ValueScopeName=n;const i=(0,e._)`\n`;class o extends a{constructor(m){super(m),this._values={},this._scope=m.scope,this.opts={...m,_n:m.lines?i:e.nil}}get(){return this._scope}name(m){return new n(m,this._newName(m))}value(m,h){var $;if(h.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const g=this.toName(m),{prefix:y}=g,v=($=h.key)!==null&&$!==void 0?$:h.ref;let w=this._values[y];if(w){const c=w.get(v);if(c)return c}else w=this._values[y]=new Map;w.set(v,g);const l=this._scope[y]||(this._scope[y]=[]),p=l.length;return l[p]=h.ref,g.setValue(h,{property:y,itemIndex:p}),g}getValue(m,h){const $=this._values[m];if($)return $.get(h)}scopeRefs(m,h=this._values){return this._reduceValues(h,$=>{if($.scopePath===void 0)throw new Error(`CodeGen: name "${$}" has no value`);return(0,e._)`${m}${$.scopePath}`})}scopeCode(m=this._values,h,$){return this._reduceValues(m,g=>{if(g.value===void 0)throw new Error(`CodeGen: name "${g}" has no value`);return g.value.code},h,$)}_reduceValues(m,h,$={},g){let y=e.nil;for(const v in m){const w=m[v];if(!w)continue;const l=$[v]=$[v]||new Map;w.forEach(p=>{if(l.has(p))return;l.set(p,s.Started);let c=h(p);if(c){const d=this.opts.es5?t.varKinds.var:t.varKinds.const;y=(0,e._)`${y}${d} ${p} = ${c};${this.opts._n}`}else if(c=g?.(p))y=(0,e._)`${y}${c}${this.opts._n}`;else throw new r(p);l.set(p,s.Completed)})}return y}}t.ValueScope=o})(Rr)),Rr}var fs;function Y(){return fs||(fs=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const e=hr(),r=ds();var s=hr();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return s._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return s.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return s.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return s.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return s.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return s.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return s.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return s.Name}});var a=ds();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),t.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class n{optimizeNodes(){return this}optimizeNames(_,T){return this}}class i extends n{constructor(_,T,N){super(),this.varKind=_,this.name=T,this.rhs=N}render({es5:_,_n:T}){const N=_?r.varKinds.var:this.varKind,z=this.rhs===void 0?"":` = ${this.rhs}`;return`${N} ${this.name}${z};`+T}optimizeNames(_,T){if(_[this.name.str])return this.rhs&&(this.rhs=x(this.rhs,_,T)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class o extends n{constructor(_,T,N){super(),this.lhs=_,this.rhs=T,this.sideEffects=N}render({_n:_}){return`${this.lhs} = ${this.rhs};`+_}optimizeNames(_,T){if(!(this.lhs instanceof e.Name&&!_[this.lhs.str]&&!this.sideEffects))return this.rhs=x(this.rhs,_,T),this}get names(){const _=this.lhs instanceof e.Name?{}:{...this.lhs.names};return F(_,this.rhs)}}class u extends o{constructor(_,T,N,z){super(_,N,z),this.op=T}render({_n:_}){return`${this.lhs} ${this.op}= ${this.rhs};`+_}}class m extends n{constructor(_){super(),this.label=_,this.names={}}render({_n:_}){return`${this.label}:`+_}}class h extends n{constructor(_){super(),this.label=_,this.names={}}render({_n:_}){return`break${this.label?` ${this.label}`:""};`+_}}class $ extends n{constructor(_){super(),this.error=_}render({_n:_}){return`throw ${this.error};`+_}get names(){return this.error.names}}class g extends n{constructor(_){super(),this.code=_}render({_n:_}){return`${this.code};`+_}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(_,T){return this.code=x(this.code,_,T),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class y extends n{constructor(_=[]){super(),this.nodes=_}render(_){return this.nodes.reduce((T,N)=>T+N.render(_),"")}optimizeNodes(){const{nodes:_}=this;let T=_.length;for(;T--;){const N=_[T].optimizeNodes();Array.isArray(N)?_.splice(T,1,...N):N?_[T]=N:_.splice(T,1)}return _.length>0?this:void 0}optimizeNames(_,T){const{nodes:N}=this;let z=N.length;for(;z--;){const W=N[z];W.optimizeNames(_,T)||(ne(_,W.names),N.splice(z,1))}return N.length>0?this:void 0}get names(){return this.nodes.reduce((_,T)=>H(_,T.names),{})}}class v extends y{render(_){return"{"+_._n+super.render(_)+"}"+_._n}}class w extends y{}class l extends v{}l.kind="else";class p extends v{constructor(_,T){super(T),this.condition=_}render(_){let T=`if(${this.condition})`+super.render(_);return this.else&&(T+="else "+this.else.render(_)),T}optimizeNodes(){super.optimizeNodes();const _=this.condition;if(_===!0)return this.nodes;let T=this.else;if(T){const N=T.optimizeNodes();T=this.else=Array.isArray(N)?new l(N):N}if(T)return _===!1?T instanceof p?T:T.nodes:this.nodes.length?this:new p(_e(_),T instanceof p?[T]:T.nodes);if(!(_===!1||!this.nodes.length))return this}optimizeNames(_,T){var N;if(this.else=(N=this.else)===null||N===void 0?void 0:N.optimizeNames(_,T),!!(super.optimizeNames(_,T)||this.else))return this.condition=x(this.condition,_,T),this}get names(){const _=super.names;return F(_,this.condition),this.else&&H(_,this.else.names),_}}p.kind="if";class c extends v{}c.kind="for";class d extends c{constructor(_){super(),this.iteration=_}render(_){return`for(${this.iteration})`+super.render(_)}optimizeNames(_,T){if(super.optimizeNames(_,T))return this.iteration=x(this.iteration,_,T),this}get names(){return H(super.names,this.iteration.names)}}class S extends c{constructor(_,T,N,z){super(),this.varKind=_,this.name=T,this.from=N,this.to=z}render(_){const T=_.es5?r.varKinds.var:this.varKind,{name:N,from:z,to:W}=this;return`for(${T} ${N}=${z}; ${N}<${W}; ${N}++)`+super.render(_)}get names(){const _=F(super.names,this.from);return F(_,this.to)}}class f extends c{constructor(_,T,N,z){super(),this.loop=_,this.varKind=T,this.name=N,this.iterable=z}render(_){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(_)}optimizeNames(_,T){if(super.optimizeNames(_,T))return this.iterable=x(this.iterable,_,T),this}get names(){return H(super.names,this.iterable.names)}}class b extends v{constructor(_,T,N){super(),this.name=_,this.args=T,this.async=N}render(_){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(_)}}b.kind="func";class E extends y{render(_){return"return "+super.render(_)}}E.kind="return";class C extends v{render(_){let T="try"+super.render(_);return this.catch&&(T+=this.catch.render(_)),this.finally&&(T+=this.finally.render(_)),T}optimizeNodes(){var _,T;return super.optimizeNodes(),(_=this.catch)===null||_===void 0||_.optimizeNodes(),(T=this.finally)===null||T===void 0||T.optimizeNodes(),this}optimizeNames(_,T){var N,z;return super.optimizeNames(_,T),(N=this.catch)===null||N===void 0||N.optimizeNames(_,T),(z=this.finally)===null||z===void 0||z.optimizeNames(_,T),this}get names(){const _=super.names;return this.catch&&H(_,this.catch.names),this.finally&&H(_,this.finally.names),_}}class D extends v{constructor(_){super(),this.error=_}render(_){return`catch(${this.error})`+super.render(_)}}D.kind="catch";class V extends v{render(_){return"finally"+super.render(_)}}V.kind="finally";class q{constructor(_,T={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...T,_n:T.lines?`
2
2
  `:""},this._extScope=_,this._scope=new r.Scope({parent:_}),this._nodes=[new w]}toString(){return this._root.render(this.opts)}name(_){return this._scope.name(_)}scopeName(_){return this._extScope.name(_)}scopeValue(_,T){const N=this._extScope.value(_,T);return(this._values[N.prefix]||(this._values[N.prefix]=new Set)).add(N),N}getScopeValue(_,T){return this._extScope.getValue(_,T)}scopeRefs(_){return this._extScope.scopeRefs(_,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(_,T,N,z){const W=this._scope.toName(T);return N!==void 0&&z&&(this._constants[W.str]=N),this._leafNode(new i(_,W,N)),W}const(_,T,N){return this._def(r.varKinds.const,_,T,N)}let(_,T,N){return this._def(r.varKinds.let,_,T,N)}var(_,T,N){return this._def(r.varKinds.var,_,T,N)}assign(_,T,N){return this._leafNode(new o(_,T,N))}add(_,T){return this._leafNode(new u(_,t.operators.ADD,T))}code(_){return typeof _=="function"?_():_!==e.nil&&this._leafNode(new g(_)),this}object(..._){const T=["{"];for(const[N,z]of _)T.length>1&&T.push(","),T.push(N),(N!==z||this.opts.es5)&&(T.push(":"),(0,e.addCodeArg)(T,z));return T.push("}"),new e._Code(T)}if(_,T,N){if(this._blockNode(new p(_)),T&&N)this.code(T).else().code(N).endIf();else if(T)this.code(T).endIf();else if(N)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(_){return this._elseNode(new p(_))}else(){return this._elseNode(new l)}endIf(){return this._endBlockNode(p,l)}_for(_,T){return this._blockNode(_),T&&this.code(T).endFor(),this}for(_,T){return this._for(new d(_),T)}forRange(_,T,N,z,W=this.opts.es5?r.varKinds.var:r.varKinds.let){const se=this._scope.toName(_);return this._for(new S(W,se,T,N),()=>z(se))}forOf(_,T,N,z=r.varKinds.const){const W=this._scope.toName(_);if(this.opts.es5){const se=T instanceof e.Name?T:this.var("_arr",T);return this.forRange("_i",0,(0,e._)`${se}.length`,te=>{this.var(W,(0,e._)`${se}[${te}]`),N(W)})}return this._for(new f("of",z,W,T),()=>N(W))}forIn(_,T,N,z=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(_,(0,e._)`Object.keys(${T})`,N);const W=this._scope.toName(_);return this._for(new f("in",z,W,T),()=>N(W))}endFor(){return this._endBlockNode(c)}label(_){return this._leafNode(new m(_))}break(_){return this._leafNode(new h(_))}return(_){const T=new E;if(this._blockNode(T),this.code(_),T.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(_,T,N){if(!T&&!N)throw new Error('CodeGen: "try" without "catch" and "finally"');const z=new C;if(this._blockNode(z),this.code(_),T){const W=this.name("e");this._currNode=z.catch=new D(W),T(W)}return N&&(this._currNode=z.finally=new V,this.code(N)),this._endBlockNode(D,V)}throw(_){return this._leafNode(new $(_))}block(_,T){return this._blockStarts.push(this._nodes.length),_&&this.code(_).endBlock(T),this}endBlock(_){const T=this._blockStarts.pop();if(T===void 0)throw new Error("CodeGen: not in self-balancing block");const N=this._nodes.length-T;if(N<0||_!==void 0&&N!==_)throw new Error(`CodeGen: wrong number of nodes: ${N} vs ${_} expected`);return this._nodes.length=T,this}func(_,T=e.nil,N,z){return this._blockNode(new b(_,T,N)),z&&this.code(z).endFunc(),this}endFunc(){return this._endBlockNode(b)}optimize(_=1){for(;_-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(_){return this._currNode.nodes.push(_),this}_blockNode(_){this._currNode.nodes.push(_),this._nodes.push(_)}_endBlockNode(_,T){const N=this._currNode;if(N instanceof _||T&&N instanceof T)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${T?`${_.kind}/${T.kind}`:_.kind}"`)}_elseNode(_){const T=this._currNode;if(!(T instanceof p))throw new Error('CodeGen: "else" without "if"');return this._currNode=T.else=_,this}get _root(){return this._nodes[0]}get _currNode(){const _=this._nodes;return _[_.length-1]}set _currNode(_){const T=this._nodes;T[T.length-1]=_}}t.CodeGen=q;function H(R,_){for(const T in _)R[T]=(R[T]||0)+(_[T]||0);return R}function F(R,_){return _ instanceof e._CodeOrName?H(R,_.names):R}function x(R,_,T){if(R instanceof e.Name)return N(R);if(!z(R))return R;return new e._Code(R._items.reduce((W,se)=>(se instanceof e.Name&&(se=N(se)),se instanceof e._Code?W.push(...se._items):W.push(se),W),[]));function N(W){const se=T[W.str];return se===void 0||_[W.str]!==1?W:(delete _[W.str],se)}function z(W){return W instanceof e._Code&&W._items.some(se=>se instanceof e.Name&&_[se.str]===1&&T[se.str]!==void 0)}}function ne(R,_){for(const T in _)R[T]=(R[T]||0)-(_[T]||0)}function _e(R){return typeof R=="boolean"||typeof R=="number"||R===null?!R:(0,e._)`!${M(R)}`}t.not=_e;const ve=P(t.operators.AND);function oe(...R){return R.reduce(ve)}t.and=oe;const Ie=P(t.operators.OR);function L(...R){return R.reduce(Ie)}t.or=L;function P(R){return(_,T)=>_===e.nil?T:T===e.nil?_:(0,e._)`${M(_)} ${R} ${M(T)}`}function M(R){return R instanceof e.Name?R:(0,e._)`(${R})`}})(Ir)),Ir}var Q={},hs;function re(){if(hs)return Q;hs=1,Object.defineProperty(Q,"__esModule",{value:!0}),Q.checkStrictMode=Q.getErrorPath=Q.Type=Q.useFunc=Q.setEvaluated=Q.evaluatedPropsToName=Q.mergeEvaluated=Q.eachItem=Q.unescapeJsonPointer=Q.escapeJsonPointer=Q.escapeFragment=Q.unescapeFragment=Q.schemaRefOrVal=Q.schemaHasRulesButRef=Q.schemaHasRules=Q.checkUnknownRules=Q.alwaysValidSchema=Q.toHash=void 0;const t=Y(),e=hr();function r(f){const b={};for(const E of f)b[E]=!0;return b}Q.toHash=r;function s(f,b){return typeof b=="boolean"?b:Object.keys(b).length===0?!0:(a(f,b),!n(b,f.self.RULES.all))}Q.alwaysValidSchema=s;function a(f,b=f.schema){const{opts:E,self:C}=f;if(!E.strictSchema||typeof b=="boolean")return;const D=C.RULES.keywords;for(const V in b)D[V]||S(f,`unknown keyword: "${V}"`)}Q.checkUnknownRules=a;function n(f,b){if(typeof f=="boolean")return!f;for(const E in f)if(b[E])return!0;return!1}Q.schemaHasRules=n;function i(f,b){if(typeof f=="boolean")return!f;for(const E in f)if(E!=="$ref"&&b.all[E])return!0;return!1}Q.schemaHasRulesButRef=i;function o({topSchemaRef:f,schemaPath:b},E,C,D){if(!D){if(typeof E=="number"||typeof E=="boolean")return E;if(typeof E=="string")return(0,t._)`${E}`}return(0,t._)`${f}${b}${(0,t.getProperty)(C)}`}Q.schemaRefOrVal=o;function u(f){return $(decodeURIComponent(f))}Q.unescapeFragment=u;function m(f){return encodeURIComponent(h(f))}Q.escapeFragment=m;function h(f){return typeof f=="number"?`${f}`:f.replace(/~/g,"~0").replace(/\//g,"~1")}Q.escapeJsonPointer=h;function $(f){return f.replace(/~1/g,"/").replace(/~0/g,"~")}Q.unescapeJsonPointer=$;function g(f,b){if(Array.isArray(f))for(const E of f)b(E);else b(f)}Q.eachItem=g;function y({mergeNames:f,mergeToName:b,mergeValues:E,resultToName:C}){return(D,V,q,H)=>{const F=q===void 0?V:q instanceof t.Name?(V instanceof t.Name?f(D,V,q):b(D,V,q),q):V instanceof t.Name?(b(D,q,V),V):E(V,q);return H===t.Name&&!(F instanceof t.Name)?C(D,F):F}}Q.mergeEvaluated={props:y({mergeNames:(f,b,E)=>f.if((0,t._)`${E} !== true && ${b} !== undefined`,()=>{f.if((0,t._)`${b} === true`,()=>f.assign(E,!0),()=>f.assign(E,(0,t._)`${E} || {}`).code((0,t._)`Object.assign(${E}, ${b})`))}),mergeToName:(f,b,E)=>f.if((0,t._)`${E} !== true`,()=>{b===!0?f.assign(E,!0):(f.assign(E,(0,t._)`${E} || {}`),w(f,E,b))}),mergeValues:(f,b)=>f===!0?!0:{...f,...b},resultToName:v}),items:y({mergeNames:(f,b,E)=>f.if((0,t._)`${E} !== true && ${b} !== undefined`,()=>f.assign(E,(0,t._)`${b} === true ? true : ${E} > ${b} ? ${E} : ${b}`)),mergeToName:(f,b,E)=>f.if((0,t._)`${E} !== true`,()=>f.assign(E,b===!0?!0:(0,t._)`${E} > ${b} ? ${E} : ${b}`)),mergeValues:(f,b)=>f===!0?!0:Math.max(f,b),resultToName:(f,b)=>f.var("items",b)})};function v(f,b){if(b===!0)return f.var("props",!0);const E=f.var("props",(0,t._)`{}`);return b!==void 0&&w(f,E,b),E}Q.evaluatedPropsToName=v;function w(f,b,E){Object.keys(E).forEach(C=>f.assign((0,t._)`${b}${(0,t.getProperty)(C)}`,!0))}Q.setEvaluated=w;const l={};function p(f,b){return f.scopeValue("func",{ref:b,code:l[b.code]||(l[b.code]=new e._Code(b.code))})}Q.useFunc=p;var c;(function(f){f[f.Num=0]="Num",f[f.Str=1]="Str"})(c||(Q.Type=c={}));function d(f,b,E){if(f instanceof t.Name){const C=b===c.Num;return E?C?(0,t._)`"[" + ${f} + "]"`:(0,t._)`"['" + ${f} + "']"`:C?(0,t._)`"/" + ${f}`:(0,t._)`"/" + ${f}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return E?(0,t.getProperty)(f).toString():"/"+h(f)}Q.getErrorPath=d;function S(f,b,E=f.opts.strictSchema){if(E){if(b=`strict mode: ${b}`,E===!0)throw new Error(b);f.self.logger.warn(b)}}return Q.checkStrictMode=S,Q}var $t={},ps;function Fe(){if(ps)return $t;ps=1,Object.defineProperty($t,"__esModule",{value:!0});const t=Y(),e={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return $t.default=e,$t}var ms;function vr(){return ms||(ms=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const e=Y(),r=re(),s=Fe();t.keywordError={message:({keyword:l})=>(0,e.str)`must pass "${l}" keyword validation`},t.keyword$DataError={message:({keyword:l,schemaType:p})=>p?(0,e.str)`"${l}" keyword must be ${p} ($data)`:(0,e.str)`"${l}" keyword is invalid ($data)`};function a(l,p=t.keywordError,c,d){const{it:S}=l,{gen:f,compositeRule:b,allErrors:E}=S,C=$(l,p,c);d??(b||E)?u(f,C):m(S,(0,e._)`[${C}]`)}t.reportError=a;function n(l,p=t.keywordError,c){const{it:d}=l,{gen:S,compositeRule:f,allErrors:b}=d,E=$(l,p,c);u(S,E),f||b||m(d,s.default.vErrors)}t.reportExtraError=n;function i(l,p){l.assign(s.default.errors,p),l.if((0,e._)`${s.default.vErrors} !== null`,()=>l.if(p,()=>l.assign((0,e._)`${s.default.vErrors}.length`,p),()=>l.assign(s.default.vErrors,null)))}t.resetErrorsCount=i;function o({gen:l,keyword:p,schemaValue:c,data:d,errsCount:S,it:f}){if(S===void 0)throw new Error("ajv implementation error");const b=l.name("err");l.forRange("i",S,s.default.errors,E=>{l.const(b,(0,e._)`${s.default.vErrors}[${E}]`),l.if((0,e._)`${b}.instancePath === undefined`,()=>l.assign((0,e._)`${b}.instancePath`,(0,e.strConcat)(s.default.instancePath,f.errorPath))),l.assign((0,e._)`${b}.schemaPath`,(0,e.str)`${f.errSchemaPath}/${p}`),f.opts.verbose&&(l.assign((0,e._)`${b}.schema`,c),l.assign((0,e._)`${b}.data`,d))})}t.extendErrors=o;function u(l,p){const c=l.const("err",p);l.if((0,e._)`${s.default.vErrors} === null`,()=>l.assign(s.default.vErrors,(0,e._)`[${c}]`),(0,e._)`${s.default.vErrors}.push(${c})`),l.code((0,e._)`${s.default.errors}++`)}function m(l,p){const{gen:c,validateName:d,schemaEnv:S}=l;S.$async?c.throw((0,e._)`new ${l.ValidationError}(${p})`):(c.assign((0,e._)`${d}.errors`,p),c.return(!1))}const h={keyword:new e.Name("keyword"),schemaPath:new e.Name("schemaPath"),params:new e.Name("params"),propertyName:new e.Name("propertyName"),message:new e.Name("message"),schema:new e.Name("schema"),parentSchema:new e.Name("parentSchema")};function $(l,p,c){const{createErrors:d}=l.it;return d===!1?(0,e._)`{}`:g(l,p,c)}function g(l,p,c={}){const{gen:d,it:S}=l,f=[y(S,c),v(l,c)];return w(l,p,f),d.object(...f)}function y({errorPath:l},{instancePath:p}){const c=p?(0,e.str)`${l}${(0,r.getErrorPath)(p,r.Type.Str)}`:l;return[s.default.instancePath,(0,e.strConcat)(s.default.instancePath,c)]}function v({keyword:l,it:{errSchemaPath:p}},{schemaPath:c,parentSchema:d}){let S=d?p:(0,e.str)`${p}/${l}`;return c&&(S=(0,e.str)`${S}${(0,r.getErrorPath)(c,r.Type.Str)}`),[h.schemaPath,S]}function w(l,{params:p,message:c},d){const{keyword:S,data:f,schemaValue:b,it:E}=l,{opts:C,propertyName:D,topSchemaRef:V,schemaPath:q}=E;d.push([h.keyword,S],[h.params,typeof p=="function"?p(l):p||(0,e._)`{}`]),C.messages&&d.push([h.message,typeof c=="function"?c(l):c]),C.verbose&&d.push([h.schema,b],[h.parentSchema,(0,e._)`${V}${q}`],[s.default.data,f]),D&&d.push([h.propertyName,D])}})(Pr)),Pr}var ys;function qo(){if(ys)return ze;ys=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.boolOrEmptySchema=ze.topBoolOrEmptySchema=void 0;const t=vr(),e=Y(),r=Fe(),s={message:"boolean schema is false"};function a(o){const{gen:u,schema:m,validateName:h}=o;m===!1?i(o,!1):typeof m=="object"&&m.$async===!0?u.return(r.default.data):(u.assign((0,e._)`${h}.errors`,null),u.return(!0))}ze.topBoolOrEmptySchema=a;function n(o,u){const{gen:m,schema:h}=o;h===!1?(m.var(u,!1),i(o)):m.var(u,!0)}ze.boolOrEmptySchema=n;function i(o,u){const{gen:m,data:h}=o,$={gen:m,keyword:"false schema",data:h,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:o};(0,t.reportError)($,s,void 0,u)}return ze}var me={},Ke={},gs;function Ln(){if(gs)return Ke;gs=1,Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.getRules=Ke.isJSONType=void 0;const t=["string","number","integer","boolean","null","object","array"],e=new Set(t);function r(a){return typeof a=="string"&&e.has(a)}Ke.isJSONType=r;function s(){const a={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...a,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},a.number,a.string,a.array,a.object],post:{rules:[]},all:{},keywords:{}}}return Ke.getRules=s,Ke}var Me={},_s;function Un(){if(_s)return Me;_s=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.shouldUseRule=Me.shouldUseGroup=Me.schemaHasRulesForType=void 0;function t({schema:s,self:a},n){const i=a.RULES.types[n];return i&&i!==!0&&e(s,i)}Me.schemaHasRulesForType=t;function e(s,a){return a.rules.some(n=>r(s,n))}Me.shouldUseGroup=e;function r(s,a){var n;return s[a.keyword]!==void 0||((n=a.definition.implements)===null||n===void 0?void 0:n.some(i=>s[i]!==void 0))}return Me.shouldUseRule=r,Me}var vs;function pr(){if(vs)return me;vs=1,Object.defineProperty(me,"__esModule",{value:!0}),me.reportTypeError=me.checkDataTypes=me.checkDataType=me.coerceAndCheckDataType=me.getJSONTypes=me.getSchemaTypes=me.DataType=void 0;const t=Ln(),e=Un(),r=vr(),s=Y(),a=re();var n;(function(c){c[c.Correct=0]="Correct",c[c.Wrong=1]="Wrong"})(n||(me.DataType=n={}));function i(c){const d=o(c.type);if(d.includes("null")){if(c.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!d.length&&c.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');c.nullable===!0&&d.push("null")}return d}me.getSchemaTypes=i;function o(c){const d=Array.isArray(c)?c:c?[c]:[];if(d.every(t.isJSONType))return d;throw new Error("type must be JSONType or JSONType[]: "+d.join(","))}me.getJSONTypes=o;function u(c,d){const{gen:S,data:f,opts:b}=c,E=h(d,b.coerceTypes),C=d.length>0&&!(E.length===0&&d.length===1&&(0,e.schemaHasRulesForType)(c,d[0]));if(C){const D=v(d,f,b.strictNumbers,n.Wrong);S.if(D,()=>{E.length?$(c,d,E):l(c)})}return C}me.coerceAndCheckDataType=u;const m=new Set(["string","number","integer","boolean","null"]);function h(c,d){return d?c.filter(S=>m.has(S)||d==="array"&&S==="array"):[]}function $(c,d,S){const{gen:f,data:b,opts:E}=c,C=f.let("dataType",(0,s._)`typeof ${b}`),D=f.let("coerced",(0,s._)`undefined`);E.coerceTypes==="array"&&f.if((0,s._)`${C} == 'object' && Array.isArray(${b}) && ${b}.length == 1`,()=>f.assign(b,(0,s._)`${b}[0]`).assign(C,(0,s._)`typeof ${b}`).if(v(d,b,E.strictNumbers),()=>f.assign(D,b))),f.if((0,s._)`${D} !== undefined`);for(const q of S)(m.has(q)||q==="array"&&E.coerceTypes==="array")&&V(q);f.else(),l(c),f.endIf(),f.if((0,s._)`${D} !== undefined`,()=>{f.assign(b,D),g(c,D)});function V(q){switch(q){case"string":f.elseIf((0,s._)`${C} == "number" || ${C} == "boolean"`).assign(D,(0,s._)`"" + ${b}`).elseIf((0,s._)`${b} === null`).assign(D,(0,s._)`""`);return;case"number":f.elseIf((0,s._)`${C} == "boolean" || ${b} === null
3
3
  || (${C} == "string" && ${b} && ${b} == +${b})`).assign(D,(0,s._)`+${b}`);return;case"integer":f.elseIf((0,s._)`${C} === "boolean" || ${b} === null
4
4
  || (${C} === "string" && ${b} && ${b} == +${b} && !(${b} % 1))`).assign(D,(0,s._)`+${b}`);return;case"boolean":f.elseIf((0,s._)`${b} === "false" || ${b} === 0 || ${b} === null`).assign(D,!1).elseIf((0,s._)`${b} === "true" || ${b} === 1`).assign(D,!0);return;case"null":f.elseIf((0,s._)`${b} === "" || ${b} === 0 || ${b} === false`),f.assign(D,null);return;case"array":f.elseIf((0,s._)`${C} === "string" || ${C} === "number"