construct-hub-webapp 0.1.935 → 0.1.937

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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "files": {
3
3
  "main.css": "/static/css/main.efe592a7.css",
4
- "main.js": "/static/js/main.617cc1f8.js",
4
+ "main.js": "/static/js/main.e76b1558.js",
5
5
  "static/js/19.d330fc34.chunk.js": "/static/js/19.d330fc34.chunk.js",
6
6
  "static/js/679.4c3850de.chunk.js": "/static/js/679.4c3850de.chunk.js",
7
7
  "static/js/58.a6b0cce7.chunk.js": "/static/js/58.a6b0cce7.chunk.js",
8
8
  "static/js/577.0fbaedf1.chunk.js": "/static/js/577.0fbaedf1.chunk.js",
9
- "static/js/545.41006be2.chunk.js": "/static/js/545.41006be2.chunk.js",
9
+ "static/js/545.a450c986.chunk.js": "/static/js/545.a450c986.chunk.js",
10
10
  "static/js/418.6340af6e.chunk.js": "/static/js/418.6340af6e.chunk.js",
11
11
  "static/js/51.17b41704.chunk.js": "/static/js/51.17b41704.chunk.js",
12
12
  "static/js/540.c326d22f.chunk.js": "/static/js/540.c326d22f.chunk.js",
@@ -21,12 +21,12 @@
21
21
  "service-worker.js": "/service-worker.js",
22
22
  "index.html": "/index.html",
23
23
  "main.efe592a7.css.map": "/static/css/main.efe592a7.css.map",
24
- "main.617cc1f8.js.map": "/static/js/main.617cc1f8.js.map",
24
+ "main.e76b1558.js.map": "/static/js/main.e76b1558.js.map",
25
25
  "19.d330fc34.chunk.js.map": "/static/js/19.d330fc34.chunk.js.map",
26
26
  "679.4c3850de.chunk.js.map": "/static/js/679.4c3850de.chunk.js.map",
27
27
  "58.a6b0cce7.chunk.js.map": "/static/js/58.a6b0cce7.chunk.js.map",
28
28
  "577.0fbaedf1.chunk.js.map": "/static/js/577.0fbaedf1.chunk.js.map",
29
- "545.41006be2.chunk.js.map": "/static/js/545.41006be2.chunk.js.map",
29
+ "545.a450c986.chunk.js.map": "/static/js/545.a450c986.chunk.js.map",
30
30
  "418.6340af6e.chunk.js.map": "/static/js/418.6340af6e.chunk.js.map",
31
31
  "51.17b41704.chunk.js.map": "/static/js/51.17b41704.chunk.js.map",
32
32
  "540.c326d22f.chunk.js.map": "/static/js/540.c326d22f.chunk.js.map",
@@ -41,6 +41,6 @@
41
41
  },
42
42
  "entrypoints": [
43
43
  "static/css/main.efe592a7.css",
44
- "static/js/main.617cc1f8.js"
44
+ "static/js/main.e76b1558.js"
45
45
  ]
46
46
  }
package/build/index.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><script src="/preload.js"></script><meta charset="utf-8"/><meta name="description" content="Construct Hub helps developers find open-source construct libraries for use with AWS CDK, CDK8s, CDKTF and other construct-based tools."/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#ffffff"><title>Construct Hub</title><script defer="defer" src="/static/js/main.617cc1f8.js"></script><link href="/static/css/main.efe592a7.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1
+ <!doctype html><html lang="en"><head><script src="/preload.js"></script><meta charset="utf-8"/><meta name="description" content="Construct Hub helps developers find open-source construct libraries for use with AWS CDK, CDK8s, CDKTF and other construct-based tools."/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#ffffff"><title>Construct Hub</title><script defer="defer" src="/static/js/main.e76b1558.js"></script><link href="/static/css/main.efe592a7.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunkconstruct_hub_webapp=self.webpackChunkconstruct_hub_webapp||[]).push([[545],{50535:function(e,n,t){t.d(n,{y:function(){return c}});var r=t(28227),a=t(28735),o=t(53046),i=t(80184),c=function(e){var n=e.label,t=e.color,c=e.icon,s=(0,r.ff)("none","brightness(1.75)");return(0,i.jsxs)(a.Kq,{align:"center",direction:"row",filter:s,spacing:2,children:[(0,i.jsx)(o.Ee,{alt:"".concat(n," icon"),src:c,w:4}),(0,i.jsx)(a.xv,{color:t,fontWeight:"bold",children:n})]})}},2148:function(e,n,t){t.d(n,{N:function(){return i}});var r=t(81070),a=t(86617),o=t(80184),i=function(e){var n=e.children,t=e.language,i=a.dX.has(t),c=a.k8[t],s=i?"Click to view documentation in ".concat(c):"Documentation support for ".concat(c," is coming soon!");return(0,o.jsx)(r.u,{hasArrow:!0,label:s,placement:"top-start",children:(0,o.jsx)("span",{children:n})})}},29988:function(e,n,t){t.d(n,{X:function(){return d}});var r=t(1413),a=t(45987),o=t(96450),i=t(19748),c=t(67003),s=t(80184),l=["children","value","label","zIndex"],d=function(e){var n=e.children,t=e.value,d=e.label,u=void 0===d?t:d,h=e.zIndex,p=(0,a.Z)(e,l);return(0,s.jsx)(c.O,{"aria-label":"Tag: ".concat(u),to:(0,i.yc)({keywords:[t]}),zIndex:h,children:(0,s.jsx)(o.Vp,(0,r.Z)((0,r.Z)({_hover:{textDecoration:"underline"}},p),{},{children:(0,s.jsx)(o.Sn,{children:n})}))})}},41712:function(e,n,t){t.d(n,{T:function(){return l}});var r=t(72791),a=t(54270),o={contribute:{event:{name:"Contribute Load"}},home:{event:{name:"Home Load"}},faq:{event:{name:"Frequently Asked Questions Load"}},packageProfile:{event:{name:"Package Profile Load"}},search:{event:{name:"Search Load"}},siteTerms:{event:{name:"Site Terms Load"}},notFound:{page:{pageType:"errorPage"},event:{name:"404 Page Load"}}},i=t(59534),c=t(56804),s=t(80184),l=(["default-src 'self' 'unsafe-inline' http://*.awsstatic.com;","connect-src 'self' https://*.shortbread.aws.dev http://*.shortbread.aws.dev http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","frame-src http://aws.demdex.net http://dpm.demdex.net;","img-src 'self' https://* http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","object-src 'none';","style-src 'self' 'unsafe-inline';"].join(" "),function(e){var n=e.children,t=e.meta,l=e.pageName,d=(0,i.aQ)(o[l]);(0,r.useEffect)((function(){d()}),[d]);var u=(0,c.E)("feeds")||[],h=t.suffix,p=void 0===h||h,f=t.title,v=t.description,m=p?"".concat(f," - Construct Hub"):f;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(a.q,{children:[!1,(0,s.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),(0,s.jsx)("meta",{charSet:"utf-8"}),u.map((function(e){var n=e.url,t=e.mimeType;return(0,s.jsx)("link",{href:n,rel:"alternate",type:t},n)})),(0,s.jsx)("title",{children:m}),(0,s.jsx)("meta",{content:m,property:"og:title"}),(0,s.jsx)("meta",{content:m,name:"twitter:title"}),(0,s.jsx)("meta",{content:"summary",name:"twitter:card"}),(0,s.jsx)("meta",{content:v,name:"description"}),(0,s.jsx)("meta",{content:v,property:"og:description"}),(0,s.jsx)("meta",{content:v,name:"twitter:description"})]}),n]})})},79227:function(e,n,t){t.d(n,{q:function(){return d}});var r=t(1413),a=t(45987),o=t(31959),i=t(28735),c=t(29158),s=t(80184),l=["date","format","formattedDate"],d=(0,o.Gp)((function(e,n){var t=e.date,o=e.format,d=e.formattedDate,u=(0,a.Z)(e,l);return(0,s.jsx)(i.xu,(0,r.Z)((0,r.Z)({as:"time",dateTime:t.toISOString(),ref:n},u),{},{children:null!==d&&void 0!==d?d:(0,c.Z)(t,null!==o&&void 0!==o?o:"")}))}));d.displayName="Time"},56804:function(e,n,t){t.d(n,{E:function(){return a}});var r=t(24026),a=function(e){var n=(0,r.Z)().data;return(null!==n&&void 0!==n?n:{})[e]}},7991:function(e,n,t){t.d(n,{Z:function(){return h}});var r=t(29439),a=t(72791),o=t(64880),i=t(86617),c=t(29499),s=t(4487),l=i.SQ.TypeScript,d="preferred-language",u=function(e){return null!=e&&i.dX.has(e)},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.updateUrl,t=e.updateSaved,i=(0,o.TH)(),h=i.pathname,p=i.hash,f=(0,o.k6)().replace,v=(0,s.K)(),m=v.get(c.Tx.LANGUAGE),x=(0,a.useState)((function(){return function(e){if(u(e))return e;try{var n,t=null!==(n=localStorage.getItem(d))&&void 0!==n?n:"";if(u(t))return t}catch(r){}return l}(m)})),g=(0,r.Z)(x,2),b=g[0],j=g[1];(0,a.useEffect)((function(){u(m)&&m!==b&&j(m)}),[m]),(0,a.useEffect)((function(){m!==b&&n&&(v.set(c.Tx.LANGUAGE,b),f({pathname:h,hash:p,search:v.toString()}))}),[b,n]);var y=(0,a.useCallback)((function(e){if(j(e),t)try{localStorage.setItem(d,e)}catch(n){}}),[t]);return(0,a.useMemo)((function(){return[b,y]}),[b,y])}},4487:function(e,n,t){t.d(n,{K:function(){return o}});var r=t(72791),a=t(64880),o=function(){var e=(0,a.TH)().search;return(0,r.useMemo)((function(){return new URLSearchParams(e)}),[e])}},98371:function(e,n,t){t.d(n,{JA:function(){return i},QX:function(){return c}});var r=t(1413),a=t(93433),o=t(9272),i=function(e){return!e||e.length<1?[]:e.reduce((function(e,n){return n.highlight?[].concat((0,a.Z)(e),[n.highlight]):e}),[])},c=function(e){for(var n=e.packageTags,t=e.keywords,i=new Array,c=new Set,s=0,l=[].concat((0,a.Z)(function(e){return(null!==e&&void 0!==e?e:[]).filter((function(e){var n;return Boolean(null===(n=e.keyword)||void 0===n?void 0:n.label)})).map((function(e){var n;return(0,r.Z)((0,r.Z)({},e),{},{id:null===(n=e.keyword)||void 0===n?void 0:n.label})}))}(n)),(0,a.Z)(function(e){return!e||e.length<1?[]:e.filter((function(e){return Boolean(e)&&!o.h.has(e)})).map((function(e){return{id:e,keyword:{label:e}}}))}(t)));s<l.length;s++){var d=l[s],u=d.keyword.label.toLowerCase();c.has(u)||(i.push(d),c.add(u))}return i}},42577:function(e,n,t){t.r(n),t.d(n,{NotFound:function(){return v},default:function(){return v}});var r=t(28735),a=t(82504),o=t(91523),i=t(41712),c=t(1413),s=t(45987),l=t(31959),d=t(53046),u=t(80184),h=["sources"],p=(0,l.Gp)((function(e,n){var t=e.sources,a=(0,s.Z)(e,h);return(0,u.jsxs)(r.xu,{as:"picture",children:[null===t||void 0===t?void 0:t.map((function(e,n){return(0,u.jsx)("source",{media:e.media,srcSet:e.srcSet},n)})),(0,u.jsx)(d.Ee,(0,c.Z)({ref:n},a))]})}));p.displayName="Picture";var f={optimal:[{media:"(max-width:1024px)",srcSet:"/assets/404-hive@50.webp"},{media:"(min-width:1024px)",srcSet:"/assets/404-hive@100.webp"},{media:"(min-width:1024px)",srcSet:"/assets/404-hive@100.png"}],fallback:"/assets/404-hive@50.png"},v=function(){return(0,u.jsx)(i.T,{meta:{title:"Not Found",description:"Oops! The page you were looking for does not exist"},pageName:"notFound",children:(0,u.jsxs)(r.M5,{h:"100%",position:"relative",w:"100%",children:[(0,u.jsx)(p,{alt:"",inset:0,position:"absolute",sources:f.optimal,src:f.fallback,zIndex:"hide"}),(0,u.jsxs)(r.kC,{align:"center",direction:"column",justify:"center",children:[(0,u.jsx)(p,{alt:"404 Image",sources:[{srcSet:"/assets/robot.webp"}],src:"/assets/robot.png"}),(0,u.jsx)(a.zx,{as:o.rU,colorScheme:"brand",to:"/",children:"Take Me Home"})]})]})})}},73545:function(e,n,t){t.r(n),t.d(n,{default:function(){return Lt}});var r,a,o,i,c,s=t(64880),l=t(42577),d=t(29439),u=t(28735),h=t(13822),p=t(72791),f=t(78236),v=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return f.o.apply(void 0,["Package Page"].concat(n))},m={SCOPE:v(),SELECT_VERSION:v("Select Version"),CDK_BADGE:{eventName:function(e){return v("CDK Badge",e)}},KEYWORD:{eventName:function(e){return v("Keyword",e)}},LANGUAGE:{eventName:function(e){return v("Language",e)}},DOCUMENTATION:{TAB:v("Documentation","Tab")},DEPENDENCIES:{TAB:v("Dependencies","Tab")},GITHUB_BADGE:{TAB:v("Badge","Tab")},FEEDBACK:{PUBLISHER:v("Feedback","Publisher"),CONSTRUCT_HUB:v("Feedback","Construct Hub"),ABUSE:v("Feedback","Abuse")}},x="api",g="Readme",b="docs-container",j=t(1413),y=t(91933),w=t(4942),k=t(93433),C=t(15841),Z=t.n(C),S=t(29499),T=function(e){return e.toLowerCase().replace(/[^a-zA-Z0-9 ]/g,"").replace(/ /g,"-")},E=function e(n,t){var r=n[n.length-1];return r&&r.level<t.level?(r.children=e(r.children,t),n):(n.push(t),n)},I=function(e){var n=new RegExp("(`{3}[\\s\\S]*?(?:`{3})|^#{1,".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,"}[^#].*)"),"gm");return e.split(n).reduce((function(e,n){var t=e[e.length-1];return n.startsWith("#")||null!==t&&void 0!==t&&t.startsWith("#")?[].concat((0,k.Z)(e),[n]):(e[e.length-1]+=n,e)}),[])},L=function(e){var n,t,r,a,o=(null!==(n=e.match(/(\S+)\s*=\s*(\"?)([^"]*)(\2|\s|$)/g))&&void 0!==n?n:[]).reduce((function(e,n){var t,r=n.split("="),a=(0,d.Z)(r,2),o=a[0],i=a[1],c=null!==(t=/['"](.*?)['"]/.exec(i))&&void 0!==t?t:[],s=(0,d.Z)(c,2),l=(s[0],s[1]);return(0,j.Z)((0,j.Z)({},e),{},(0,w.Z)({},o,l))}),{}),i=null!==(t=/^#*\s*(?:<a\s.*?(?:\/>|<\/a>))?\s*([^<]+?)\s*(?:<|$)/.exec(e))&&void 0!==t?t:[e,e],c=(0,d.Z)(i,2),s=(c[0],c[1].replace(/\[([^\]]+)\](?:\([^)]+\)|\[[^\]]+\])/g,"$1").replace(/:\+1:|:-1:|:[\w-]+:/g,(function(e){var n;return null!==(n=Z().get(e))&&void 0!==n?n:e}))),l=null!==(r=o["data-heading-title"])&&void 0!==r?r:s;return{id:null!==(a=o["data-heading-id"])&&void 0!==a?a:encodeURIComponent(T(l)),title:l}},O=function(e,n){var t=n.scope,r=n.language,a=n.name,o=n.version,i=n.submodule,c=t?"".concat(t,"/").concat(a):"".concat(a),s="/packages/".concat(c,"/v/").concat(o),l="?".concat(S.Tx.LANGUAGE,"=").concat(r);i&&(l+="&submodule=".concat(i));var d='# API Reference <span data-heading-title="API Reference" data-heading-id="api-reference"></span>',u=e.split(d),h=u.length>1?u.pop():"",p=u.join(d),f=I(h,3),v=I(p),m=[d.trim()].concat((0,k.Z)(null!==f&&void 0!==f?f:[])),x="".concat(s).concat(l),b=v.reduce((function(e,n){if(n.startsWith("#")){var t,r,a=L(n),o=a.id,i=a.title,c=null!==(t=null===(r=n.match(/(#)/gm))||void 0===r?void 0:r.length)&&void 0!==t?t:1,s=function(e){return(e.endsWith(".")||e.endsWith(":"))&&(e=e.slice(0,-1)),e}(i),l={level:c,id:o,title:s,path:"".concat(x,"#").concat(o),children:[]};return E(e,l)}return e}),[]);1===b.length&&(b=b[0].children);var y,w,C=[].concat([{level:1,id:g,title:"Readme",path:x,children:b}]),Z={};return null===m||void 0===m||m.forEach((function(e){var n,t,r,a=e.match(/(^#{1,3}[^#].*)/g),o=null!==(n=null===(t=e.match(/(#)/gm))||void 0===t?void 0:t.length)&&void 0!==n?n:1;if(null!==a&&void 0!==a&&a.length){var i=L(e),c=i.id,d=i.title,u=3===o?(r=c,"".concat(s,"/api/").concat(r).concat(l)):void 0,h=(0,j.Z)({level:o,id:c,title:d,children:[]},u?{path:u}:{});C=E(C,h),y={id:c,title:d},w=o}else 3===w&&(Z[y.id]={title:y.title,content:e})})),{readme:p,apiReference:Z,menuItems:C}},A=t(74165),P=t(15861),B=function(e,n){return n?"".concat(n,"/").concat(e):e},D=function(e,n,t){var r="".concat(S.i0.PACKAGES_PREFIX,"/"),a=B(e,t),o="/v".concat(n);return"".concat(r).concat(a).concat(o)},z=function(e){var n=e;return(n.startsWith("~")||n.startsWith("^"))&&(n=n.substring(1)),n},U=function(e,n,t){return(r=r||(0,P.Z)((0,A.Z)().mark((function e(n,t,r){var a,o;return(0,A.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat(D(n,t,r)).concat(S.i0.ASSEMBLY_SUFFIX),e.next=3,fetch(a);case 3:if((o=e.sent).ok){e.next=6;break}throw new Error("Failed fetching assembly for ".concat(a,": ").concat(o.statusText));case 6:return e.abrupt("return",o.json());case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)},M=function(e,n,t){return"/docs-".concat(t?"".concat(t,"-"):"").concat(e,".").concat(n)},N=t(86617),R=t(7991),W=t(4487),H={packages:{},updated:"NOT_FOUND"},F=function(){return(c=c||(0,P.Z)((0,A.Z)().mark((function e(){var n;return(0,A.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(S.i0.ALL_VERSIONS);case 2:if((n=e.sent).ok){e.next=7;break}return console.error(n.statusText),console.warn("Could not retrieve package versions. Using empty data."),e.abrupt("return",H);case 7:return e.abrupt("return",n.json().catch((function(e){return console.error(e),console.warn("Error in package versions response. Using empty data."),H})));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)},G=t(80184),K=(0,p.createContext)(void 0),V=function(){var e=(0,p.useContext)(K);if(!e)throw new Error("This component must be a child of a <PackageStateProvider />");return e},_=function(e){var n,t,r,c,u,h=e.children,f=(0,s.UO)(),v=f.name,m=f.scope,x=f.version,g="".concat(m,"/").concat(v,"/v").concat(x),b=(0,R.Z)(),w=(0,d.Z)(b,1)[0],k=null!==(n=(0,W.K)().get(S.Tx.SUBMODULE))&&void 0!==n?n:"",C=(0,y.useQuery)("Versions",F).data,Z=m?"".concat(m,"/").concat(v):v,T=null===C||void 0===C?void 0:C.packages[Z],E=(0,y.useQuery)("".concat(g,"-docs-").concat(w,"-").concat(k,"-md"),(function(){return function(e,n,t,r,o){return(a=a||(0,P.Z)((0,A.Z)().mark((function e(n,t,r,a,o){var i,c,s,l,d;return(0,A.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=M(r,"md",o),c="".concat(D(n,t,a)).concat(i),e.next=4,fetch(c);case 4:if((s=e.sent).ok){e.next=7;break}throw new Error("Failed fetching documentation for ".concat(c,": ").concat(s.statusText));case 7:if(l="text/markdown",(d=s.headers.get("Content-Type"))&&d.includes(l)){e.next=11;break}throw new Error("Invalid content type: ".concat(d,". Expected ").concat(l,'"'));case 11:return e.abrupt("return",s.text());case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(v,x,N.$[w],m,k)})),I=(0,y.useQuery)("".concat(g,"-docs-").concat(w,"-").concat(k,"-json"),(function(){return function(e,n,t,r,a){return(o=o||(0,P.Z)((0,A.Z)().mark((function e(n,t,r,a,o){var i,c,s,l,d;return(0,A.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=M(r,"json",o),c="".concat(D(n,t,a)).concat(i),e.next=4,fetch(c);case 4:if((s=e.sent).ok){e.next=7;break}throw new Error("Failed fetching documentation for ".concat(c,": ").concat(s.statusText));case 7:if(l="application/json",(d=s.headers.get("Content-Type"))&&d.includes(l)){e.next=11;break}throw new Error("Invalid content type: ".concat(d,". Expected ").concat(l,'"'));case 11:return e.abrupt("return",s.json());case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(v,x,N.$[w],m,k)})),L=(0,y.useQuery)("".concat(g,"-assembly"),(function(){return U(v,x,m)})),B=(0,y.useQuery)("".concat(g,"-metadata"),(function(){return function(e,n,t){return(i=i||(0,P.Z)((0,A.Z)().mark((function e(n,t,r){var a,o,i;return(0,A.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=t).startsWith("^")&&(a=a.substring(1,a.length)),o="".concat(D(n,t,r)).concat(S.i0.METADATA_SUFFIX),e.next=5,fetch(o);case 5:if((i=e.sent).ok){e.next=8;break}throw new Error("Failed fetching metadata for ".concat(o,": ").concat(i.statusText));case 8:return e.abrupt("return",i.json());case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(v,x,m)})),z="".concat(m?"".concat(m,"/").concat(v):v," ").concat(x),H=null!==(t=null===(r=L.data)||void 0===r?void 0:r.description)&&void 0!==t?t:"",V=Boolean(E.error||I.error||L.error),_=Boolean(!E.isLoading&&!I.isLoading&&!L.isLoading&&E.data&&I.data&&L.data),q=Boolean(w===N.SQ.TypeScript||L.isLoading||L.error||null!=(null===(c=L.data)||void 0===c||null===(u=c.targets)||void 0===u?void 0:u[w.toString()])),Q=Boolean(!B.isLoading&&(L.isLoading||E.isLoading||I.isLoading)),X=(0,p.useMemo)((function(){return E.data?O(E.data,{scope:m,name:v,version:x,language:w,submodule:k}):{menuItems:[]}}),[E.data,v,m,x,w,k]);return L.error?(0,G.jsx)(l.NotFound,{}):(0,G.jsx)(K.Provider,{value:(0,j.Z)({assembly:L,hasDocs:_,hasError:V,isLoadingDocs:Q,isSupported:q,language:w,markdownDocs:E,jsonDocs:I,metadata:B,name:v,pageDescription:H,pageTitle:z,scope:m,version:x,allVersions:T},X),children:h})},q=t(88606),Q=(0,q.$)("package-page",["page","feedbackLinks","reportLink","reportAbuseLink","githubLink","dependenciesTab","dependenciesList","dependenciesLink","badgeTab","description","markdown","selectVersionButton","selectVersionDropdown","selectVersionItem"]),X=t(67003),$=t(7752),Y=t(19748),J=function(){var e,n=V().assembly.data;if(!n)return(0,G.jsx)($.w,{});var t=Object.entries(null!==(e=n.dependencies)&&void 0!==e?e:{});return t.length?(0,G.jsx)(u.Kq,{"data-testid":Q.dependenciesList,direction:"row",justify:"center",mx:"auto",spacing:4,wrap:"wrap",children:t.map((function(e){var n=(0,d.Z)(e,2),t=n[0],r=n[1];return(0,G.jsxs)(X.O,{_first:{ml:4},"data-testid":Q.dependenciesLink,fontWeight:"semibold",p:2,to:(0,Y.Mt)({name:t,version:z(r)}),children:[t," - ",r]},"".concat(t,"-").concat(r))}))}):(0,G.jsx)(u.M5,{children:"This library does not have any known CDK dependencies"})},ee=t(75272),ne=t(10855),te=t(6074),re=t(76798),ae=t(69113),oe=function(e){return(0,G.jsxs)(ae.JO,(0,j.Z)((0,j.Z)({},e),{},{children:[(0,G.jsx)("path",{clipRule:"evenodd",d:"M10.2532 0C4.59124 0 0 4.59022 0 10.2532C0 14.7835 2.93785 18.6266 7.01174 19.9825C7.524 20.0776 7.71212 19.7601 7.71212 19.4893C7.71212 19.2448 7.70261 18.4371 7.6982 17.5804C4.84576 18.2006 4.24386 16.3706 4.24386 16.3706C3.77745 15.1855 3.10543 14.8704 3.10543 14.8704C2.17499 14.234 3.17555 14.2473 3.17555 14.2473C4.20498 14.3194 4.74728 15.3039 4.74728 15.3039C5.66176 16.871 7.14588 16.418 7.73097 16.1562C7.82299 15.4935 8.08871 15.041 8.38194 14.785C6.10457 14.5261 3.71038 13.6467 3.71038 9.718C3.71038 8.59859 4.11108 7.68394 4.76697 6.96573C4.66035 6.70765 4.30939 5.66481 4.86613 4.25252C4.86613 4.25252 5.72696 3.97695 7.68631 5.3035C8.50435 5.07616 9.38165 4.96189 10.2532 4.95799C11.1242 4.96189 12.002 5.07582 12.8216 5.30317C14.7785 3.97661 15.6383 4.25218 15.6383 4.25218C16.1964 5.6643 15.8455 6.70731 15.739 6.96539C16.3964 7.6836 16.7943 8.59825 16.7943 9.71766C16.7943 13.6557 14.3957 14.5227 12.1125 14.7767C12.4805 15.0949 12.8081 15.719 12.8081 16.6754C12.8081 18.0473 12.7963 19.1514 12.7963 19.4891C12.7963 19.762 12.981 20.0817 13.5005 19.981C17.5721 18.6237 20.5065 14.7818 20.5065 10.2532C20.5063 4.59056 15.9156 0.000169776 10.2532 0.000169776V0Z",fill:"currentColor",fillRule:"evenodd"}),(0,G.jsx)("path",{d:"M3.88318 14.7214C3.86059 14.7724 3.78045 14.7876 3.70744 14.7528C3.63274 14.7195 3.59114 14.6501 3.61525 14.599C3.63732 14.5464 3.71763 14.5319 3.79183 14.5671C3.86654 14.6005 3.90898 14.6706 3.88301 14.7216L3.88318 14.7214ZM4.29848 15.1848C4.24975 15.2301 4.15416 15.209 4.0893 15.1372C4.02206 15.0659 4.0095 14.9703 4.05925 14.9243C4.10984 14.8791 4.20255 14.9005 4.26978 14.9719C4.33668 15.0442 4.34992 15.1389 4.29865 15.1849L4.29848 15.1848ZM4.70291 15.7751C4.64009 15.8189 4.5372 15.778 4.4737 15.6868C4.41088 15.5955 4.41088 15.486 4.4754 15.4423C4.53873 15.3985 4.64009 15.4381 4.70461 15.5284C4.76709 15.621 4.76709 15.7305 4.70291 15.775V15.7751ZM5.25659 16.3458C5.20056 16.4078 5.08069 16.3911 4.99308 16.3067C4.9036 16.224 4.87864 16.1064 4.93484 16.0446C4.99189 15.9824 5.11227 15.9998 5.20039 16.0836C5.28987 16.1661 5.31687 16.284 5.25693 16.3456L5.25659 16.3458ZM6.02064 16.677C5.99568 16.7573 5.88056 16.7939 5.76426 16.7596C5.64829 16.7244 5.5724 16.6305 5.59617 16.5494C5.61994 16.4684 5.7359 16.4305 5.85289 16.467C5.96885 16.502 6.04475 16.5954 6.02064 16.677ZM6.8599 16.7383C6.86279 16.8229 6.76431 16.8928 6.64257 16.8945C6.51982 16.8974 6.42049 16.8288 6.4193 16.7456C6.4193 16.6602 6.51574 16.5911 6.63833 16.5887C6.76007 16.5865 6.86007 16.6545 6.86007 16.7382L6.8599 16.7383ZM7.64059 16.6056C7.65519 16.6879 7.57047 16.7726 7.44941 16.7952C7.33056 16.8173 7.22019 16.766 7.20491 16.6843C7.19031 16.5998 7.27656 16.5151 7.39541 16.4932C7.51664 16.4723 7.62531 16.522 7.64059 16.6057V16.6056Z",fill:"currentColor"})]}))},ie={h:6,ml:2,w:6},ce=function(){var e,n=V(),t=(0,ne.Sx)({base:"horizontal",md:"vertical"}),r=(0,G.jsx)(u.iz,{borderColor:"white",mr:6,orientation:t}),a=n.metadata.data,o=n.assembly.data;if(!o||!a)return null;var i,c=null!==(e=null===o||void 0===o?void 0:o.repository)&&void 0!==e?e:{},s=void 0;"git"===c.type&&((s=null!==(i=c.url)&&void 0!==i&&i.endsWith(".git")?c.url.replace(".git",""):c.url).endsWith("/")&&(s=s.slice(0,s.length-1)));return(0,G.jsxs)(u.Kq,{align:"center",backgroundColor:"blue.600",borderTop:"1px solid",borderTopColor:"borderColor",color:"white","data-testid":Q.feedbackLinks,direction:{base:"column",md:"row"},justify:"space-evenly",px:8,py:5,spacing:4,children:[s&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(te.d,{color:"currentcolor","data-event":m.FEEDBACK.PUBLISHER,"data-testid":Q.githubLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"".concat(s,"/issues"),rightIcon:(0,G.jsx)(oe,(0,j.Z)({color:"white"},ie)),variant:"solid",children:"Provide feedback to publisher"}),r]}),(0,G.jsx)(te.d,{color:"currentcolor","data-event":m.FEEDBACK.CONSTRUCT_HUB,"data-testid":Q.reportLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"".concat(re.Sx,"/issues/new"),rightIcon:(0,G.jsx)(oe,(0,j.Z)({color:"white"},ie)),children:"Provide feedback to Construct Hub"}),r,(0,G.jsx)(te.d,{color:"currentcolor","data-event":m.FEEDBACK.ABUSE,"data-testid":Q.reportAbuseLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"mailto:abuse@amazonaws.com?subject=".concat(encodeURIComponent("ConstructHub - Report of abusive package: ".concat(null===o||void 0===o?void 0:o.name))),rightIcon:(0,G.jsx)(ee.LQ,(0,j.Z)({},ie)),children:"Report abuse"})]})},se=t(65223),le=t(82504),de=t(15617),ue=t(31959),he=t(95798),pe=t(57992),fe=t(89570),ve=(0,ue.Gp)((function(e,n){var t=e.value,r=e.onChange,a=e.onSubmit,o=(0,p.useState)(t),i=(0,d.Z)(o,2),c=i[0],s=i[1];return(0,fe.N)(c,{onChange:r}),(0,G.jsx)(pe.l,{"data-testid":"choose-submodule-search-form",onSubmit:a,children:(0,G.jsxs)(he.BZ,{children:[(0,G.jsx)(he.Z8,{children:(0,G.jsx)(ee.W1,{color:"gray.400"})}),(0,G.jsx)(he.II,{"data-testid":"choose-submodule-search-input",onChange:function(e){return s(e.target.value)},placeholder:"Search",ref:n,value:c,variant:"filled"})]})})}));ve.displayName="SearchInput";var me=t(3669),xe=function(e){var n=e.inputValue,t=e.isOpen,r=e.onClose,a=e.onInputChange,o=e.submodules,i=(0,p.useRef)(null),c=(0,s.k6)().push,l=(0,p.useCallback)((function(e){r(),c(e)}),[r,c]),d=(0,p.useCallback)((function(e){if(e.preventDefault(),o.length){var n=o[0].to;l(n)}}),[l,o]);return(0,G.jsx)(de.u_,{initialFocusRef:i,isOpen:t,onClose:r,children:(0,G.jsx)(de.ZA,{children:(0,G.jsxs)(de.hz,{mx:4,children:[(0,G.jsx)(de.ol,{"data-testid":"choose-submodule-modal-close"}),(0,G.jsx)(de.xB,{"data-testid":"choose-submodule-modal-header",fontSize:"lg",fontWeight:"bold",children:"Choose a submodule"}),(0,G.jsxs)(de.fe,{"data-testid":"choose-submodule-modal-body",p:0,children:[(0,G.jsx)(u.xu,{pb:4,px:4,children:(0,G.jsx)(ve,{onChange:a,onSubmit:d,ref:i,value:n})}),(0,G.jsx)(u.iz,{}),(0,G.jsx)(u.QI,{"data-testid":"choose-submodule-modal-results",m:0,maxH:"50vh",overflow:"hidden auto",p:0,role:"listbox",tabIndex:-1,children:o.map((function(e){var n=e.name,t=e.to;return(0,G.jsx)(me.T,{"data-testid":"choose-submodule-result",name:n,onClick:function(){return l(t)}},n)}))})]})]})})})},ge=function(){var e,n,t,r=V(),a=r.assembly,o=r.name,i=r.language,c=r.scope,l=r.version,h=(0,s.k6)().push,f=(0,W.K)(),v=Object.keys(null!==(e=null===a||void 0===a||null===(n=a.data)||void 0===n?void 0:n.submodules)&&void 0!==e?e:{}),m=(0,se.qY)(),x=m.isOpen,g=m.onOpen,b=m.onClose,j=f.get(S.Tx.SUBMODULE),y=j?"Submodule: ".concat(j):"Choose Submodule",w=(0,p.useState)(""),k=(0,d.Z)(w,2),C=k[0],Z=k[1],T=c?"".concat(c,"/").concat(o):o,E=(0,p.useCallback)((function(e){return(0,Y.Mt)({name:T,version:l,language:i,submodule:e})}),[i,T,l]),I=(0,p.useMemo)((function(){var e=v;return C&&(e=e.filter((function(e){return e.toLowerCase().includes(C.toLowerCase())}))),e.map((function(e){var n=e.split(".")[1];return{name:n,to:E(n)}}))}),[v,C,E]);return 0===v.length?null:(0,G.jsxs)(u.Kq,{spacing:4,w:"100%",children:[j&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(le.zx,{borderRadius:"none","data-testid":"choose-submodule-go-back",leftIcon:(0,G.jsx)(ee.Rp,{"aria-label":"Back to construct root"}),onClick:function(){h((0,Y.Mt)({name:T,version:l,language:i}))},title:"Back to construct root",variant:"link",children:null===a||void 0===a||null===(t=a.data)||void 0===t?void 0:t.name}),(0,G.jsx)(u.iz,{})]}),(0,G.jsx)(le.zx,{borderRadius:"none",color:"blue.500","data-testid":"choose-submodule-search-trigger",flexGrow:1,onClick:g,rightIcon:(0,G.jsx)(ee.v4,{}),title:"Choose Submodule",variant:"link",children:y}),(0,G.jsx)(xe,{inputValue:C,isOpen:x,onClose:b,onInputChange:Z,submodules:I})]})},be=t(51922),je=function(e){var n=e.children,t=e["data-event"],r=e.path,a=e.title,o=e.showToggle,i=e.variant,c=(0,j.Z)({_hover:{bg:"rgba(0, 124, 253, 0.05)"},overflow:"hidden",pl:1,py:o?2:1,marginLeft:o?0:1,fontWeight:o?"bold":void 0,textOverflow:"ellipsis",whiteSpace:"nowrap",w:"100%"},"sm"===i?{fontSize:"sm"}:{fontSize:"md"});return r?(0,G.jsx)(X.O,(0,j.Z)((0,j.Z)({"data-event":t,title:a,to:r},c),{},{children:n})):(0,G.jsx)(u.xv,(0,j.Z)((0,j.Z)({},c),{},{children:n}))},ye=t(59534),we=function(e,n){return(0,ye.oJ)(e,"NavTree",n)},ke={color:"textTertiary",h:4,w:4},Ce=function e(n){var t,r,a=n.children,o=n["data-event"],i=n.getIsActiveItem,c=n.id,s=n.title,l=n.path,d=n.level,h=n.onOpen,f=n.variant,v=(0,ye.z$)().trackCustomEvent,m=d<2,x=(0,se.qY)({onOpen:h,defaultIsOpen:m}),g=null!==(t=null===i||void 0===i?void 0:i({id:c,title:s,path:l,children:a}))&&void 0!==t&&t,b=(null!==(r=null===a||void 0===a?void 0:a.length)&&void 0!==r?r:0)>0,y=x.isOpen&&b,w=(0,p.useMemo)((function(){return null===a||void 0===a?void 0:a.map((function(n,t){return(0,p.createElement)(e,(0,j.Z)((0,j.Z)({"data-event":o},n),{},{getIsActiveItem:i,key:t,level:d+1,onOpen:x.onOpen,variant:f}))}))}),[a,o,i,d,x.onOpen,f]);return(0,G.jsxs)(u.kC,{direction:"column",children:[(0,G.jsxs)(u.kC,{align:"center",color:g?"link":"textPrimary",children:[b&&(0,G.jsx)(le.hU,{"aria-label":"expand-toggle",borderRadius:"md",h:4,icon:x.isOpen?(0,G.jsx)(ee.v4,(0,j.Z)({},ke)):(0,G.jsx)(ee.XC,(0,j.Z)({},ke)),ml:-1,onClick:function(){x.onToggle(),o&&v((0,ye.Q5)({name:we(o,"Toggle")}))},size:"xs",variant:"link",w:0}),(0,G.jsx)(je,{"data-event":o?we(o,"Link"):void 0,path:l,showToggle:b,title:s,variant:f,children:s})]}),(0,G.jsx)(u.xu,{_before:{bg:"borderColor",bottom:0,content:'""',left:0,position:"absolute",top:0,w:"1px"},display:y?"initial":"none",ml:2,mr:2,pl:2,position:"relative",children:w})]})},Ze=function(e){var n=e["data-event"],t=e.getIsActiveItem,r=e.items,a=e.variant;return(0,G.jsx)(u.kC,{direction:"column",maxWidth:"100%",children:r.map((function(e,r){return(0,p.createElement)(Ce,(0,j.Z)((0,j.Z)({},e),{},{"data-event":n,getIsActiveItem:t,key:r,level:0,onOpen:void 0,variant:a}))}))})},Se=function(){var e,n,t=V(),r=t.assembly,a=t.menuItems,o=(0,se.qY)(),i=(0,s.TH)(),c=Object.keys(null!==(e=null===(n=r.data)||void 0===n?void 0:n.submodules)&&void 0!==e?e:{}).length>0;return(0,p.useEffect)((function(){o.isOpen&&o.onClose()}),[i]),(0,G.jsxs)(u.xu,{bottom:0,display:{lg:"none"},left:0,pos:"fixed",right:0,children:[(0,G.jsx)(le.zx,{bg:"bgPrimary",borderTop:"base",boxShadow:"base",fontSize:"xl",fontWeight:"semibold",h:"3.5rem",onClick:o.onOpen,variant:"unstyled",w:"full",children:(0,G.jsxs)(u.kC,{align:"center",justify:"space-between",px:6,children:["Table of contents",(0,G.jsx)(ee.g8,{})]})}),(0,G.jsx)(be.h_,{children:(0,G.jsxs)(de.dy,(0,j.Z)((0,j.Z)({},o),{},{blockScrollOnMount:!1,placement:"bottom",children:[(0,G.jsx)(de.P1,{}),(0,G.jsxs)(de.sc,{maxH:"60vh",children:[(0,G.jsx)(de.OX,{children:"Table of contents"}),(0,G.jsx)(de.cC,{}),(0,G.jsxs)(de.Ng,{children:[c&&(0,G.jsx)(u.xu,{mb:4,sx:{button:{justifyContent:"initial"}},children:(0,G.jsx)(ge,{})}),(0,G.jsx)(Ze,{items:a})]})]})]}))})]})},Te=function(e){var n=e.children;return(0,G.jsx)(u.xv,{align:"center",fontSize:"xl",fontStyle:"oblique",px:4,wordBreak:"break-word",children:n})},Ee=t(29370),Ie=t(54915),Le=t.n(Ie),Oe=t(5474),Ae=t.n(Oe),Pe=t(16580),Be=t.n(Pe),De=t(97394),ze=t(65218),Ue=t.n(ze),Me=t(45987),Ne=t(28227),Re=t(60185),We=t(1250),He=t(32536),Fe=["value"],Ge=(0,ue.Gp)((function(e,n){var t=e.value,r=(0,Me.Z)(e,Fe),a=(0,se.VP)(t),o=a.hasCopied,i=a.onCopy;return(0,G.jsx)(le.hU,(0,j.Z)({"aria-label":"Copy Button",color:"blue.500",colorScheme:"brand",h:6,icon:o?(0,G.jsx)(ee.nQ,{color:"green.300"}):(0,G.jsx)(ee.TI,{}),minW:"auto",ml:1,onClick:i,ref:n,variant:"ghost",w:6},r))}));Ge.displayName="CopyButton";var Ke,Ve=function(e){var n=e.code,t=e.tokens,r=e.getLineProps,a=e.getTokenProps;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(u.kC,{align:"center",bg:"rgba(0, 124, 253, 0.15)",borderTopRadius:"md",justify:"flex-end",px:2,py:1,children:(0,G.jsx)(Ge,{value:n})}),(0,G.jsx)(u.xu,{overflowX:"auto",p:2,children:t.map((function(e,n){return(0,G.jsx)("div",(0,j.Z)((0,j.Z)({},r({line:e,key:n})),{},{children:e.map((function(e,n){return(0,G.jsx)(u.xu,(0,j.Z)({as:"span",sx:{wordWrap:"normal"}},a({token:e,key:n})),n)}))}),n)}))})]})},_e=function(e){var n=e.code,t=e.tokens,r=e.getLineProps,a=e.getTokenProps;return(0,G.jsxs)(u.rj,{p:3,templateColumns:"1fr min-content",w:"full",children:[(0,G.jsx)(u.xu,{m:-3,maxW:"full",overflow:"auto",p:3,children:t.map((function(e,n){return(0,G.jsx)("div",(0,j.Z)((0,j.Z)({},r({line:e,key:n})),{},{children:e.map((function(e,n){return(0,G.jsx)("span",(0,j.Z)({},a({token:e,key:n})),n)}))}),n)}))}),(0,G.jsx)(u.kC,{align:"center",ml:1,children:(0,G.jsx)(Ge,{value:n})})]})},qe=["code","language"],Qe=function(e){var n=e.code,t=e.language,r=(0,Me.Z)(e,qe),a=(0,Ne.ff)(He.Z,We.Z);return(0,G.jsx)(Re.ZP,(0,j.Z)((0,j.Z)({},Re.lG),{},{code:n,language:t,theme:a,children:function(e){return(0,G.jsx)(u.xu,(0,j.Z)((0,j.Z)({as:"pre",border:"base",borderRadius:"md",boxShadow:"base",className:e.className,style:e.style},r),{},{children:e.tokens.length>1?(0,G.jsx)(Ve,(0,j.Z)((0,j.Z)({},e),{},{code:n})):(0,G.jsx)(_e,(0,j.Z)((0,j.Z)({},e),{},{code:n}))}))}}))},Xe=function(e){var n=e.inline,t=e.children,r=e.language,a=void 0===r?"typescript":r;if(n)return(0,G.jsx)(u.EK,{border:"base",marginTop:"md",mx:2,px:2,py:0,children:t});var o=p.Children.toArray(t).reduce((function(e,n){return"string"===typeof n?"".concat(e).concat(n):e}),"").trim();return(0,G.jsx)(Qe,{code:o,fontSize:"0.9rem",language:a})},$e=t(58340),Ye=function e(n){return p.Children.toArray(n).reduce((function(n,t){return"string"===typeof t?n+t:"object"===typeof t&&"props"in t?n+e(t.props.children):n}),"").trim()},Je=function(e){var n=e.id,t=e.level,r=e.title,a=(0,s.TH)().search;return(0,G.jsx)(X.O,{_active:{visibility:"initial"},_focus:{visibility:"initial"},alignItems:"center","data-heading-id":"#".concat(n),"data-heading-level":t,"data-heading-title":r,display:"flex",id:n,lineHeight:1,opacity:"hidden",replace:!0,to:"".concat(a,"#").concat(n),visibility:"hidden",children:(0,G.jsx)(ee.xP,{boxSize:4})})},en=function(e){var n,t,r=e.level,a=e.children,o=["2xl","xl","lg","md","sm","xs"][r-1],i="h".concat(r),c=(new DOMParser).parseFromString($e.renderToStaticMarkup(a),"text/html").querySelector("span[data-heading-title][data-heading-id]"),s=null!==(n=null===c||void 0===c?void 0:c.dataset.headingTitle)&&void 0!==n?n:Ye(a),l=null!==(t=null===c||void 0===c?void 0:c.dataset.headingId)&&void 0!==t?t:T(s);return(0,G.jsxs)(u.kC,{_hover:{"> a":{visibility:"initial"}},align:"stretch",borderBottom:"base",justify:"space-between",mb:4,mt:r>=4?"1.5em":4,px:r>=4?2:void 0,py:2,children:[(0,G.jsx)(u.X6,{as:i,color:"textPrimary",level:r,size:o,sx:{"> code":{fontSize:"inherit"}},children:a}),(0,G.jsx)(Je,{id:l,level:r,title:s})]})},nn=t(53046),tn=t(97005),rn=(0,q.$)("markdown",["container"]),an=["children","href"],on={a:function(e){var n=e.children,t=e.href,r=(0,Me.Z)(e,an),a={color:"link",sx:{"> img + svg":{display:"none"}}};try{if(t&&t.startsWith("http"))if(new URL(t).hostname!==window.location.hostname)return(0,G.jsx)(te.d,(0,j.Z)((0,j.Z)((0,j.Z)({href:t},a),r),{},{children:n}))}catch(o){}return(0,G.jsx)(X.O,(0,j.Z)((0,j.Z)((0,j.Z)({to:t},a),r),{},{children:n}))},blockquote:function(e){var n=e.children;return(0,G.jsx)(u.xu,{as:"blockquote",borderLeft:"5px solid",borderLeftColor:"borderColor",marginX:"2",px:"2",wordBreak:"break-word",children:n})},caption:tn.Rn,code:Xe,em:function(e){var n=e.children;return(0,G.jsx)(u.xu,{as:"em",fontStyle:"normal",fontWeight:"bold",children:n})},h1:en,h2:en,h3:en,h4:en,h5:en,h6:en,hr:function(){return(0,G.jsx)(G.Fragment,{})},img:function(e){return(0,G.jsx)(nn.Ee,(0,j.Z)({display:"inline-block"},e))},li:function(e){var n=e.children;return(0,G.jsx)(u.HC,{lineHeight:"tall",marginX:2,sx:{"em:first-of-type":{fontSize:"small"},code:{fontSize:"small"}},children:n})},ol:function(e){var n=e.children;return(0,G.jsx)(u.GS,{children:n})},p:function(e){var n=e.children;return(0,G.jsx)(u.xv,{lineHeight:"1.5",mx:2,my:4,children:n})},pre:function(e){var n=e.children,t=e.lang;return t?(0,G.jsx)(Xe,{language:t,children:n}):(0,G.jsx)(u.xu,{as:"pre",children:n})},sup:function(e){var n=e.children,t=void 0,r="";if(Array.isArray(n)){var a=(0,d.Z)(n,1)[0];"string"===typeof a&&(r=a)}return"Required"===r?t="orange.700":"Optional"===r&&(t="green.700"),(0,G.jsx)(u.xu,{as:"sup",color:t,fontSize:"xs",ml:-1,top:-1,children:n})},table:function(e){var n=e.children;return(0,G.jsx)(u.xu,{maxW:"100%",overflowX:"auto",children:(0,G.jsx)(tn.iA,{variant:"striped",children:n})})},tbody:tn.p3,td:tn.Td,tfoot:tn.$R,th:tn.Th,thead:tn.hr,tr:tn.Tr,ul:function(e){var n=e.children;return(0,G.jsx)(u.QI,{marginTop:2,padding:0,children:n})}},cn=(0,j.Z)({},Ee);cn.attributes.span=(null!==(Ke=cn.attributes.span)&&void 0!==Ke?Ke:[]).concat(["dataHeadingTitle","dataHeadingId"]);var sn=[[Ae()],[Be(),cn]],ln=[Ue(),De.Z],dn=/^(?:(?:git@)?github\.com:|(?:https?:\/\/)github\.com\/)([^/]+)\/([^/]+)(?:\.git)?$/,un=function(e){var n=e.children,t=function(e){var n=e.type,t=e.url,r=e.directory;if("git"===n){var a=dn.exec(t);if(null!=a){var o=(0,d.Z)(a,3);return{owner:o[1],repo:o[2],directory:r}}}}(e.repository),r=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HEAD";return null==t?Le().uriTransformer:function(r){var a=Le().uriTransformer(r),o=(0,d.Z)(a,1)[0];if("#"===o||"/"===o)return a;if(a.includes("://"))return a;var i=t.owner,c=t.repo.replace(/\.git$/,""),s=t.directory?"".concat(t.directory,"/"):"";return"https://".concat(e,"/").concat(i,"/").concat(c,"/").concat(n,"/").concat(s).concat(a)}};return(0,G.jsx)(u.xu,{"data-testid":rn.container,px:8,children:(0,G.jsx)(Le(),{components:on,rehypePlugins:sn,remarkPlugins:ln,transformImageUri:r("raw.githubusercontent.com"),transformLinkUri:r("github.com","blob/HEAD"),children:n})})},hn=function(){var e=V(),n=e.isLoadingDocs,t=e.readme,r=e.assembly.data;return!n&&t&&r?"\n"===t?(0,G.jsx)(Te,{children:"No readme available for this module or submodule"}):(0,G.jsx)(un,{repository:r.repository,children:t}):null},pn=t(91523),fn=function(){var e=V().language,n=(0,G.jsx)(te.d,{href:"".concat(re.Sx,"/issues/new"),children:"issue"});return(0,G.jsxs)(Te,{children:["Documentation in ",e," is still not ready for this package. Come back soon. If this issue persists, please let us know by creating an"," ",n,"."]})},vn=function(e){var n=e.rootId,t=(0,s.TH)(),r=t.pathname,a=t.hash,o=t.search,i=V(),c=i.isLoadingDocs,l=i.assembly.data,d=function(){var e=(0,s.UO)().typeId,n=V().apiReference;if(e)return null===n||void 0===n?void 0:n[e]}();if(c)return null;if(!d||!l)return(0,G.jsx)(fn,{});var h=d.title,p=d.content,f="".concat(r).concat(o,"#").concat(a);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(u.X6,{as:"h2",p:8,size:"2xl",children:(0,G.jsx)(pn.OL,{id:n,to:f,children:h})}),(0,G.jsx)(un,{repository:l.repository,children:p})]})},mn=["children"],xn=function(){var e=V().menuItems,n=(0,s.TH)(),t=n.pathname,r=n.hash,a=(0,p.useMemo)((function(){return e.reduce((function(e,n,t){if(0===t&&(null===n||void 0===n?void 0:n.id)===g){n.children;var r=(0,Me.Z)(n,mn);e.push((0,j.Z)((0,j.Z)({},r),{},{children:[]}))}else e.push(n);return e}),[])}),[e]),o=(0,p.useCallback)((function(e){var n=e.path,a=new URL(null!==n&&void 0!==n?n:"",window.origin);return Boolean(null!==n&&void 0!==n&&n.includes("/".concat(x,"/"))?a.pathname===t:a.hash&&r&&a.hash===r)}),[r,t]);return(0,G.jsx)(Ze,{"data-event":m.SCOPE,getIsActiveItem:o,items:a})},gn=function(e){return e.replace("#","").toLowerCase()},bn=function e(n){var t,r=[gn(n.id)];return null===(t=n.children)||void 0===t||t.forEach((function(n){null!==n&&void 0!==n&&n.id&&r.push.apply(r,(0,k.Z)(e(n)))})),r},jn=function(e){return gn(e.getAttribute("data-heading-id"))},yn=function(e){return new Set(e.map(bn).flat())},wn=t(84506),kn=function(e){return function(n){var t=n.split(".").slice(-e),r=(0,wn.Z)(t);return{path:r[0],hash:"#"+r.slice(1).join(".")}}},Cn={initializer:{header:"Initializer Props",getValues:function(e){var n,t;return null!==(n=null===(t=e.initializer)||void 0===t?void 0:t.parameters)&&void 0!==n?n:[]},getPath:kn(4)},instanceMethods:{header:"Instance Methods",getValues:function(e){return e.instanceMethods},getPath:kn(2)},staticMethods:{header:"Static Methods",getValues:function(e){return e.staticMethods},getPath:kn(2)},properties:{header:"Properties",getValues:function(e){return e.properties},getPath:kn(3)},constants:{header:"Constants",getValues:function(e){return e.constants},getPath:kn(3)},members:{header:"Enum Members",getValues:function(e){return e.members},getPath:kn(2)}},Zn=function(){var e,n=(0,s.TH)().pathname,t=(0,s.$B)().path,r=V(),a=r.menuItems,o=r.jsonDocs,i=(0,s.$B)("".concat(t,"/").concat(x,"/:typeId")),c=null===i||void 0===i?void 0:i.params.typeId,l=(0,R.Z)(),u=(0,d.Z)(l,1)[0],h=null!==(e=(0,W.K)().get(S.Tx.SUBMODULE))&&void 0!==e?e:"",f=(0,p.useMemo)((function(){var e;if(!o.data)return{types:[]};var n=null===(e=o.data)||void 0===e?void 0:e.apiReference;return n?{types:[].concat((0,k.Z)(n.classes),(0,k.Z)(n.constructs),(0,k.Z)(n.interfaces),(0,k.Z)(n.structs),(0,k.Z)(n.enums)),metadata:o.data.metadata}:{types:[]}}),[o]),v=f.types,m=f.metadata;return(0,p.useMemo)((function(){if(!function(e){var n=e.split("/");return n[n.length-2]===x}(n)){var e=(0,d.Z)(a,1)[0];return(null===e||void 0===e?void 0:e.id)===g?e.children:[]}var t=v.find((function(e){return e.displayName===c}));return t&&m?function(e,n,t){for(var r=[],a=function(){var a=(0,d.Z)(i[o],2),c=a[0],s=a[1],l=s.header,u=s.getValues,h=s.getPath;if(c in e){var p,f={level:1,id:l,title:l,children:[]},v=u(e).map((function(e){var r=h(e.id),a=r.path,o=r.hash,i="?".concat(S.Tx.LANGUAGE,"=").concat(n);return t&&(i+="&".concat(S.Tx.SUBMODULE,"=").concat(t)),{level:2,id:o,title:e.displayName,path:"".concat(a).concat(i).concat(o),children:[]}}));v.length>0&&((p=f.children).push.apply(p,(0,k.Z)(v)),r.push(f))}},o=0,i=Object.entries(Cn);o<i.length;o++)a();return r}(t,u,h):[]}),[u,a,m,n,h,c,v])},Sn={rootMargin:"-15% 0% -15% 0%"},Tn={attributes:!1,childList:!0,subtree:!0},En=function(){var e=function(){var e=Zn(),n=(0,p.useRef)(yn(e)),t=(0,p.useState)((0,k.Z)(n.current)[0]),r=(0,d.Z)(t,2),a=r[0],o=r[1],i=(0,p.useMemo)((function(){return new IntersectionObserver((function(e){var n;e.forEach((function(e){e.isIntersecting&&(n=e.target)})),n&&o(jn(n))}),Sn)}),[]);return(0,p.useEffect)((function(){var t=yn(e);n.current=t;var r=(0,d.Z)(t,1)[0];return o(r),function(){o(void 0)}}),[e]),(0,p.useEffect)((function(){var e=document.getElementById(b);if(e){var t,r=new MutationObserver((function(e){var r;e.length&&(null===(r=t)||void 0===r||r.forEach((function(e){i.unobserve(e)})),(t=document.querySelectorAll("[data-heading-id]")).forEach((function(e){var t=jn(e);n.current.has(t)&&i.observe(e)})))}));return r.observe(e,Tn),function(){r.disconnect()}}}),[i]),a}(),n=Zn(),t=(0,s.TH)().hash,r=(0,p.useRef)(!1),a=(0,p.useState)(t),o=(0,d.Z)(a,2),i=o[0],c=o[1];(0,p.useEffect)((function(){c(t),r.current=!1,setTimeout((function(){r.current=!0}),500)}),[t]),(0,p.useEffect)((function(){i&&r.current&&c(void 0)}),[e]);var l=(0,p.useCallback)((function(n){var t=n.path,r=n.id;return i?new URL(null!==t&&void 0!==t?t:"",window.origin).hash===i:gn(r)===e}),[e,i]);return(0,G.jsx)(Ze,{"data-event":m.SCOPE,getIsActiveItem:l,items:n,variant:"sm"})},In=["offset"],Ln=function(e){var n=e.offset,t=(0,Me.Z)(e,In);return(0,G.jsx)(u.kC,(0,j.Z)({alignSelf:"stretch",as:"nav",direction:"column",display:{base:"none",lg:"flex"},maxHeight:"calc(100vh - ".concat(n,")"),overflow:"hidden auto",position:"sticky"},t))},On="4.5rem",An=function(){var e,n=V().assembly.data;return Object.keys(null!==(e=null===n||void 0===n?void 0:n.submodules)&&void 0!==e?e:{}).length>0?(0,G.jsx)(u.kC,{borderBottom:"1px solid",borderColor:"borderColor",justify:"center",py:4,children:(0,G.jsx)(ge,{})}):null},Pn=function(){var e=(0,s.$B)().path,n=V().markdownDocs,t=(0,s.TH)(),r=t.hash,a=t.pathname,o=t.search;return(0,p.useEffect)((function(){window.requestAnimationFrame((function(){if(r){var e=document.querySelector('[data-heading-id="'.concat(r,'"]'));null===e||void 0===e||e.scrollIntoView(!0)}else window.scrollTo(0,0)}))}),[r,a,n.isLoading]),(0,G.jsxs)(u.rj,{columnGap:4,h:"full",templateColumns:{base:"1fr",lg:"minmax(20rem, 1fr) 3fr minmax(16rem, 0.9fr)"},width:"100%",children:[(0,G.jsxs)(Ln,{borderRight:"1px solid",borderRightColor:"borderColor",offset:On,pl:6,pr:4,top:On,children:[(0,G.jsx)(An,{}),(0,G.jsx)(u.xu,{overflowY:"auto",py:4,children:(0,G.jsx)(xn,{})})]}),(0,G.jsx)(u.xu,{h:"max-content",id:b,maxWidth:"100%",overflow:"hidden",py:4,sx:{a:{scrollMarginTop:On}},children:(0,G.jsxs)(s.rs,{children:[(0,G.jsx)(s.l_,{exact:!0,from:"".concat(e,"/").concat(x),to:{pathname:e,search:o}}),(0,G.jsx)(s.AW,{exact:!0,path:e,children:(0,G.jsx)(hn,{})}),(0,G.jsx)(s.AW,{exact:!0,path:"".concat(e,"/").concat(x,"/:typeId"),children:(0,G.jsx)(vn,{rootId:"apidocs_header"})})]})}),(0,G.jsx)(Ln,{borderLeft:"1px solid",borderLeftColor:"borderColor",offset:On,pl:6,pr:4,top:On,children:(0,G.jsx)(u.xu,{overflowY:"auto",py:4,children:(0,G.jsx)(En,{})})}),(0,G.jsx)(Se,{})]})},Bn=t(92213),Dn=t(81070),zn=t(77231),Un=t(44717),Mn=["openText","closeText","isOpen"],Nn=function(e){var n=e.openText,t=e.closeText,r=e.isOpen,a=(0,Me.Z)(e,Mn);return(0,G.jsx)(le.zx,(0,j.Z)((0,j.Z)({color:"link",colorScheme:"blue",leftIcon:r?(0,G.jsx)(ee.g8,{}):(0,G.jsx)(ee.v4,{}),variant:"link"},a),{},{children:r?t:n}))},Rn=t(50535),Wn=["license"],Hn=(0,ue.Gp)((function(e,n){var t=e.license,r=(0,Me.Z)(e,Wn),a=Un[t].url;return(0,G.jsx)(te.d,(0,j.Z)((0,j.Z)({href:a,ref:n},r),{},{children:t}))}));Hn.displayName="LicenseLink";var Fn=t(79227),Gn="MMM dd, yyyy 'at' h:mmaaa",Kn=t(56804),Vn=t(10297),_n=t(98371),qn=function(e){var n=e.children,t=e.label,r=e.tooltip;return(0,G.jsx)(Dn.u,{hasArrow:!0,isDisabled:!r,label:r,placement:"left",children:(0,G.jsxs)(u.xv,{fontWeight:"bold",children:[t," ",(0,G.jsx)(u.xu,{as:"span",fontWeight:"normal",children:n})]})})},Qn=function(e){var n=e.downloads;return(0,G.jsx)(qn,{label:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(u.xu,{as:"span",mr:1,children:(0,G.jsx)(ee._8,{})}),n.toLocaleString()]}),tooltip:"Download numbers are periodically sourced from the npm registry",children:"Weekly downloads"})},Xn=function(e){var n=V(),t=(0,Vn.V)().data,r=(0,se.qY)({defaultIsOpen:!0}),a=(0,Kn.E)("packageLinks"),o=n.assembly.data,i=n.metadata.data,c=n.scope?"".concat(n.scope,"/").concat(n.name):n.name,s=(0,_n.JA)(null===i||void 0===i?void 0:i.packageTags),l=(0,d.Z)(s,1)[0],h=function(e){var n=e.assembly,t=e.metadata,r=e.name,a=e.packageLinks,o=e.stats,i=[];if(n||t||o||a){var c,s,l,d,u,h=null===o||void 0===o||null===(c=o.packages)||void 0===c||null===(s=c[r])||void 0===s||null===(l=s.downloads)||void 0===l?void 0:l.npm;void 0!==h&&i.push((0,G.jsx)(Qn,{downloads:h}));var f=null===n||void 0===n?void 0:n.author.name,v=null===n||void 0===n?void 0:n.repository,m=null===n||void 0===n?void 0:n.license;if(f){var x=(0,G.jsx)(X.O,{color:"link",to:(0,Y.yc)({query:f}),children:f});i.push((0,G.jsx)(qn,{label:"Author",children:x}))}var g=null===t||void 0===t?void 0:t.date;if(g){var b=(0,G.jsx)(Fn.q,{date:new Date(g),fontWeight:"normal",format:Gn});i.push((0,G.jsx)(qn,{label:"Published",children:b}))}if(v){var j=(0,Y.rM)(v.url);if(j){var y=(0,G.jsx)(te.d,{href:j.url,children:j.hostname});i.push((0,G.jsx)(qn,{label:"Repository",children:y}))}}if(m&&m in Un){var w=(0,G.jsx)(Hn,{license:m});i.push((0,G.jsx)(qn,{label:"License",children:w}))}null!==a&&void 0!==a&&a.length&&a.forEach((function(e){var n,r=e.linkLabel,a=e.configKey,o=e.linkText,c=(null!==(n=null===t||void 0===t?void 0:t.packageLinks)&&void 0!==n?n:{})[a];if(c){var s=(0,G.jsx)(te.d,{href:c,children:null!==o&&void 0!==o?o:c});i.push((0,G.jsxs)(qn,{label:r,children:[r,": ",s]}))}}));var k=null!==(d=null===t||void 0===t||null===(u=t.links)||void 0===u?void 0:u.npm)&&void 0!==d?d:"https://www.npmjs.com/package/".concat(null===n||void 0===n?void 0:n.name,"/v/").concat(null===n||void 0===n?void 0:n.version);if(k){var C=(0,G.jsx)(te.d,{href:k,children:new URL(k).hostname});i.push((0,G.jsx)(qn,{label:"Registry",children:C}))}}return i.map((function(e,n){return(0,G.jsx)(p.Fragment,{children:e},n)}))}({assembly:o,metadata:i,name:c,packageLinks:a,stats:t});if(!h.length)return null;var f=h.slice(0,2),v=h.slice(2,h.length);return(0,G.jsxs)(u.Kq,(0,j.Z)((0,j.Z)({align:"start",color:"textPrimary",fontSize:".75rem",mt:2,spacing:2},e),{},{children:[l&&(0,G.jsx)(Rn.y,(0,j.Z)({},l)),f,v.length>0&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(zn.UO,{animateOpacity:!0,in:r.isOpen,children:(0,G.jsx)(u.Kq,{spacing:2,children:v})}),(0,G.jsx)(Nn,{closeText:"See fewer details (".concat(f.length,")"),fontSize:"inherit",isOpen:r.isOpen,onClick:r.onToggle,openText:"See more details (".concat(v.length,")")})]})]}))},$n=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.map((function(e){return'"'.concat(e.map((function(e){return null!==e&&void 0!==e?e:"."})).join(" "),'"')})).join(" ")},Yn="heading",Jn="install",et="languages",nt="meta",tt=$n([Yn],[nt],[et],[Jn]),rt=$n([Yn,et,Jn],[Yn,null,nt]),at=function(e){var n=e.children;return(0,G.jsx)(u.rj,{bg:"bgSecondary",columnGap:{md:6,lg:10},pt:{base:3,lg:6},px:{base:5,md:6,lg:10},rowGap:{base:4,lg:0},templateAreas:{base:tt,lg:rt},templateColumns:{base:"1fr",lg:"1fr auto 15rem"},templateRows:{lg:"auto 1fr"},children:n})},ot=t(57640),it=t(10724),ct=t.n(it),st=t(59707),lt=function(){var e=V(),n=e.scope,t=e.name,r=e.version,a=e.allVersions,o=e.language,i=n?"".concat(n,"/").concat(t):t,c=(0,st.A)(),l=(0,s.k6)(),u=l.push,h=l.location,f=c.findByName(i),v=(0,p.useMemo)((function(){var e=f.map((function(e){return e.version})),n=(0,k.Z)(new Set([].concat((0,k.Z)(null!==a&&void 0!==a?a:[]),(0,k.Z)(e),[r])));return n.sort(ct().rcompare),n}),[f,r,a]);return(0,G.jsx)(ot.Ph,{"data-event":m.SELECT_VERSION,"data-testid":Q.selectVersionDropdown,fontWeight:"500",onChange:function(e){var n=h.pathname,t=h.hash,r="";if(n.includes("/api/")){var a=n.split("/api/");r=(0,d.Z)(a,2)[1]}var c=[(0,Y.Mt)({name:i,version:e.target.value,language:o,api:r}),t].join("");u(c)},size:"sm",value:r,width:"10rem",children:v.map((function(e){return(0,G.jsx)("option",{"data-testid":Q.selectVersionItem,"data-value":e,value:e,children:"v".concat(e)},e)}))})},dt=t(37864),ut=t(77766),ht=t(29988),pt=["assembly","name","description","metadata","version"],ft=function(e){var n,t,r=e.assembly,a=e.name,o=e.description,i=e.metadata,c=(e.version,(0,Me.Z)(e,pt)),s=(0,_n.QX)({packageTags:null!==(n=null===i||void 0===i?void 0:i.packageTags)&&void 0!==n?n:[],keywords:null!==(t=null===r||void 0===r?void 0:r.keywords)&&void 0!==t?t:[]}),l=(0,dt.eG)(i),h=(0,d.Z)(l,1)[0],p=null!==h&&void 0!==h?h:[],f=(0,d.Z)(p,2),v=f[0],x=f[1],g=1===l.size?m.CDK_BADGE.eventName("".concat(v).concat(void 0!==x?" v".concat(x):"")):void 0;return(0,G.jsxs)(u.Kq,(0,j.Z)((0,j.Z)({lineHeight:"1.5",maxW:"full",overflow:"hidden",spacing:2},c),{},{children:[(0,G.jsxs)(u.kC,{align:"center",wrap:"wrap",children:[(0,G.jsx)(u.X6,{color:"textPrimary",flexShrink:1,fontSize:"1.5rem",isTruncated:!0,mr:4,children:a}),(0,G.jsx)(lt,{})]}),(0,G.jsx)(u.xv,{"data-testid":Q.description,fontSize:"1rem",children:o}),(0,G.jsxs)(u.kC,{align:"center",direction:"row",pt:1,sx:{gap:"0.5rem"},wrap:"wrap",children:[(0,G.jsx)(ut.u,{constructFrameworks:l,"data-event":g}),s.map((function(e){var n=e.id,t=e.keyword,r=void 0===t?{}:t,a=r.label,o=r.color;return(0,G.jsx)(ht.X,{"data-event":m.KEYWORD.eventName(a),value:n,variant:o,children:a},n)}))]})]}))},vt=function(e){var n=V(),t=n.language,r=n.assembly.data,a=(0,se.qY)();if(!r)return null;var o=function(e){var n=e.language,t=e.assembly,r=t.version;if(n===N.SQ.TypeScript){var a=t.name;return"npm install ".concat(a,"@").concat(r)}if(n===N.SQ.Python){var o,i,c=null===(o=t.targets)||void 0===o||null===(i=o.python)||void 0===i?void 0:i.distName;if(!c)return;return"pip install ".concat(c,"==").concat(r)}if(n===N.SQ.Java){var s,l,d,u,h,p,f=null===(s=t.targets)||void 0===s||null===(l=s.java)||void 0===l||null===(d=l.maven)||void 0===d?void 0:d.groupId,v=null===(u=t.targets)||void 0===u||null===(h=u.java)||void 0===h||null===(p=h.maven)||void 0===p?void 0:p.artifactId;if(!f||!v)return;return["// add this to your pom.xml","<dependency>"," <groupId>".concat(f,"</groupId>")," <artifactId>".concat(v,"</artifactId>")," <version>".concat(r,"</version>"),"</dependency>"].join("\n")}if(n===N.SQ.DotNet){var m,x,g=null===(m=t.targets)||void 0===m||null===(x=m.dotnet)||void 0===x?void 0:x.packageId;if(!g)return;return"dotnet add package ".concat(g," --version ").concat(r)}if(n===N.SQ.Go){var b,j,y=null===t||void 0===t||null===(b=t.targets)||void 0===b||null===(j=b.go)||void 0===j?void 0:j.moduleName;if(!y)return;return"go get ".concat(y)}}({language:t,assembly:r});return o&&t?(0,G.jsx)(u.kC,(0,j.Z)((0,j.Z)({align:"start",direction:"column",fontSize:".75rem",w:"full"},e),{},{children:t===N.SQ.Java?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Nn,{closeText:"Hide",fontSize:"inherit",isOpen:a.isOpen,mt:2,onClick:a.onToggle,openText:"Install"}),(0,G.jsx)(u.xu,{maxW:"full",overflow:"hidden",children:(0,G.jsx)(zn.UO,{in:a.isOpen,children:(0,G.jsx)(Qe,{boxShadow:"none",code:o,fontSize:"inherit",language:t,mt:2})})})]}):(0,G.jsx)(Qe,{boxShadow:"none",code:o,fontSize:"inherit",language:t,lineHeight:"2",w:"full"})})):null},mt=t(2148),xt=function(e){var n=e.targetLanguages,t=e.selectedLanguage,r=e.setSelectedLanguage,a=(0,ye.z$)().trackCustomEvent;return(0,G.jsx)(u.Kq,{align:"center","data-testid":"language-bar",direction:"row",spacing:2,children:(0,k.Z)(n).sort((function(e,n){return N.a2.indexOf(e)-N.a2.indexOf(n)})).map((function(e){var n=!N.dX.has(e),o=e===t,i=N.kP[e].icon;return(0,G.jsx)(mt.N,{language:e,children:(0,G.jsx)(le.hU,{"aria-label":"Select ".concat(e," icon"),bg:"bgSecondary",border:"base",borderColor:o?"brand.500":"borderColor",borderRadius:"lg",boxShadow:"base",colorScheme:"brand",cursor:n?"not-allowed":"pointer","data-testid":"language-".concat(e),disabled:n,icon:(0,G.jsx)(i,{"aria-label":"".concat(e,"-icon"),borderRadius:"sm",height:[4,5,6],width:[4,5,6]}),onClick:function(){o||(a((0,ye.Q5)({name:m.LANGUAGE.eventName(e)})),r(e))},p:1,variant:"outline",w:"max-content"})},e)}))})},gt=new Set(N.a2),bt=function(){var e,n=V(),t=n.assembly.data,r=n.language,a=(0,R.Z)({updateSaved:!0,updateUrl:!0}),o=(0,d.Z)(a,2)[1],i=(0,R.Z)({updateUrl:!0}),c=(0,d.Z)(i,2)[1],s=[].concat((0,k.Z)(Object.keys(null!==(e=null===t||void 0===t?void 0:t.targets)&&void 0!==e?e:{})),[N.SQ.TypeScript]),l=s.includes(r);(0,p.useEffect)((function(){l||c(N.SQ.TypeScript)}),[l]);var u={selectedLanguage:l?r:N.SQ.TypeScript,setSelectedLanguage:o,targetLanguages:s.filter((function(e){return gt.has(e)}))};return(0,G.jsx)(xt,(0,j.Z)({},u))},jt=function(){var e=V(),n=e.assembly,t=e.metadata,r=e.version,a=n.data,o=t.data;return a&&o?(0,G.jsxs)(at,{children:[(0,G.jsx)(ft,{assembly:a,description:a.description,gridArea:Yn,metadata:o,name:a.name,version:r}),(0,G.jsx)(u.kC,{align:"start",gridArea:et,children:(0,G.jsx)(bt,{})}),(0,G.jsxs)(u.kC,{direction:"column",gridArea:nt,children:[(0,G.jsx)(u.iz,{borderBottom:"base",display:{md:"none"},mb:2}),(0,G.jsx)(Xn,{}),(0,G.jsx)(u.iz,{borderBottom:"base",display:{md:"none"},mt:2})]}),(0,G.jsx)(u.kC,{align:"start",gridArea:Jn,children:(0,G.jsx)(vt,{})})]}):(0,G.jsx)(Bn.$,{mx:"auto",my:10,size:"xl"})},yt=function(){var e=(0,p.useState)(0),n=(0,d.Z)(e,2),t=n[0],r=n[1],a=V(),o=a.scope,i=a.name,c=o?"".concat(o,"/").concat(i):i,s=encodeURIComponent(c);(0,p.useEffect)((function(){r(0)}),[]);var l=window.location.hostname,f=(0,Y.Mt)({name:c}),v="https://".concat(l,"/badge?package=").concat(s),m="https://".concat(l).concat(f),x="[![View on Construct Hub](".concat(v,")](").concat(m,")"),g='<a href="'.concat(m,'"><img src="').concat(v,'" alt="View on Construct Hub"/></a>');return(0,G.jsxs)(u.xu,{bg:"bgPrimary",py:1,width:"100%",children:[(0,G.jsx)(u.xv,{pb:3,children:"Use the snippets below in your Git repositories or elsewhere to add a button that links to this package. The button will automatically update to light mode or dark mode based on whether the user's client has requested a light or dark theme."}),(0,G.jsx)(pn.rU,{to:f,children:(0,G.jsx)(nn.Ee,{src:"/badge-dynamic.svg"})}),(0,G.jsxs)(h.mQ,{index:t,my:3,onChange:r,variant:"line",children:[(0,G.jsxs)(h.td,{borderBottom:"base",px:{base:0,lg:6},children:[(0,G.jsx)(h.OK,{children:"Markdown"}),(0,G.jsx)(h.OK,{children:"HTML"})]}),(0,G.jsxs)(h.nP,{maxW:"full",children:[(0,G.jsx)(h.x4,{children:(0,G.jsx)(Qe,{boxShadow:"none",code:x,fontSize:"inherit",language:"markdown",mt:2})}),(0,G.jsx)(h.x4,{children:(0,G.jsx)(Qe,{boxShadow:"none",code:g,fontSize:"inherit",language:"markdown",mt:2})})]})]})]})},wt=t(41712),kt=function(){var e=V(),n=e.pageDescription,t=e.pageTitle,r=(0,p.useState)(0),a=(0,d.Z)(r,2),o=a[0],i=a[1];return(0,p.useEffect)((function(){i(0)}),[t]),(0,G.jsx)(wt.T,{meta:{title:t,description:n},pageName:"packageProfile",children:(0,G.jsxs)(u.rj,{bg:"bgPrimary","data-testid":Q.page,maxW:"100vw",templateColumns:"1fr",templateRows:"auto 1fr auto",children:[(0,G.jsx)(jt,{}),(0,G.jsxs)(h.mQ,{index:o,onChange:i,variant:"line",children:[(0,G.jsxs)(h.td,{bg:"bgSecondary",borderBottom:"base",px:{base:0,lg:6},children:[(0,G.jsx)(h.OK,{"data-event":m.DOCUMENTATION.TAB,children:"Documentation"}),(0,G.jsx)(h.OK,{"data-event":m.DEPENDENCIES.TAB,"data-testid":Q.dependenciesTab,children:"Dependencies"}),(0,G.jsx)(h.OK,{"data-event":m.GITHUB_BADGE.TAB,"data-testid":Q.badgeTab,children:"Share"})]}),(0,G.jsxs)(h.nP,{maxW:"full",children:[(0,G.jsx)(h.x4,{p:0,children:(0,G.jsx)(Pn,{})}),(0,G.jsx)(h.x4,{children:(0,G.jsx)(J,{})}),(0,G.jsx)(h.x4,{children:(0,G.jsx)(yt,{})})]})]}),(0,G.jsx)(ce,{})]})})},Ct=function(){return(0,G.jsx)(_,{children:(0,G.jsx)(kt,{})})},Zt=t(95038),St=function(e,n,t){var r=B(n,t),a=function(e,n){var t=e.packages.filter((function(e){return e.name===n}));return t.length>1?t.sort((function(e,n){var t=new Date(e.metadata.date);return new Date(n.metadata.date).getTime()-t.getTime()}))[0]:t[0]}(e,r);if(a){var o=a.version,i="/v/".concat(o);return"".concat("/packages/").concat(r).concat(i)}},Tt=function(){var e=(0,s.UO)(),n=e.name,t=e.scope,r=(0,Zt.r)();if(r.isLoading||!r.data)return(0,G.jsx)(u.M5,{minH:"16rem",children:(0,G.jsx)(Bn.$,{size:"xl"})});var a=St(r.data,n,t);return a?(0,G.jsx)(s.l_,{to:a}):(0,G.jsx)(l.default,{})},Et="[^@\\/]+",It="@[^\\/]+",Lt=function(){var e=(0,s.$B)().path;return(0,G.jsxs)(s.rs,{children:[(0,G.jsx)(s.AW,{exact:!0,path:"".concat(e,"/:scope(").concat(It,")?/:name(").concat(Et,")"),children:(0,G.jsx)(Tt,{})}),(0,G.jsx)(s.AW,{path:"".concat(e,"/:scope(").concat(It,")?/:name(").concat(Et,")/v/:version"),children:(0,G.jsx)(Ct,{})}),(0,G.jsx)(s.AW,{path:"*",children:(0,G.jsx)(l.NotFound,{})})]})}}}]);
2
+ //# sourceMappingURL=545.a450c986.chunk.js.map