construct-hub-webapp 0.1.432 → 0.1.433
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.
- package/build/asset-manifest.json +40 -40
- package/build/index.html +1 -1
- package/build/static/js/0.c3605bb7.chunk.js +2 -0
- package/build/static/js/{0.b43901fb.chunk.js.map → 0.c3605bb7.chunk.js.map} +1 -1
- package/build/static/js/{1.81b10c86.chunk.js → 1.b4fe0250.chunk.js} +2 -2
- package/build/static/js/{1.81b10c86.chunk.js.map → 1.b4fe0250.chunk.js.map} +1 -1
- package/build/static/js/{10.e69e2f0e.chunk.js → 10.82256882.chunk.js} +2 -2
- package/build/static/js/{10.e69e2f0e.chunk.js.map → 10.82256882.chunk.js.map} +1 -1
- package/build/static/js/{11.b8a83830.chunk.js → 11.c99943c1.chunk.js} +2 -2
- package/build/static/js/{11.b8a83830.chunk.js.map → 11.c99943c1.chunk.js.map} +1 -1
- package/build/static/js/{12.bf7eae27.chunk.js → 12.5bc9ff9b.chunk.js} +2 -2
- package/build/static/js/{12.bf7eae27.chunk.js.map → 12.5bc9ff9b.chunk.js.map} +1 -1
- package/build/static/js/{13.ac5c7cfb.chunk.js → 13.fe6adf3a.chunk.js} +2 -2
- package/build/static/js/{13.ac5c7cfb.chunk.js.map → 13.fe6adf3a.chunk.js.map} +1 -1
- package/build/static/js/{14.c589f711.chunk.js → 14.b8011de8.chunk.js} +2 -2
- package/build/static/js/{14.c589f711.chunk.js.map → 14.b8011de8.chunk.js.map} +1 -1
- package/build/static/js/{15.6ef33063.chunk.js → 15.cb507824.chunk.js} +3 -3
- package/build/static/js/{15.6ef33063.chunk.js.LICENSE.txt → 15.cb507824.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{15.6ef33063.chunk.js.map → 15.cb507824.chunk.js.map} +1 -1
- package/build/static/js/{16.f993fdf0.chunk.js → 16.e16a9156.chunk.js} +2 -2
- package/build/static/js/{16.f993fdf0.chunk.js.map → 16.e16a9156.chunk.js.map} +1 -1
- package/build/static/js/{4.b412ae2d.chunk.js → 4.1867cb66.chunk.js} +3 -3
- package/build/static/js/{4.b412ae2d.chunk.js.LICENSE.txt → 4.1867cb66.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{4.b412ae2d.chunk.js.map → 4.1867cb66.chunk.js.map} +1 -1
- package/build/static/js/5.58f05811.chunk.js +3 -0
- package/build/static/js/{5.d910df6d.chunk.js.LICENSE.txt → 5.58f05811.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/5.58f05811.chunk.js.map +1 -0
- package/build/static/js/6.91230520.chunk.js +2 -0
- package/build/static/js/6.91230520.chunk.js.map +1 -0
- package/build/static/js/{7.e8271c60.chunk.js → 7.17b6768f.chunk.js} +2 -2
- package/build/static/js/{7.e8271c60.chunk.js.map → 7.17b6768f.chunk.js.map} +1 -1
- package/build/static/js/8.aabf50c9.chunk.js +2 -0
- package/build/static/js/{8.f93e3c7d.chunk.js.map → 8.aabf50c9.chunk.js.map} +1 -1
- package/build/static/js/{9.09ca5564.chunk.js → 9.f62df5f9.chunk.js} +2 -2
- package/build/static/js/{9.09ca5564.chunk.js.map → 9.f62df5f9.chunk.js.map} +1 -1
- package/build/static/js/main.0c51a84b.chunk.js +2 -0
- package/build/static/js/main.0c51a84b.chunk.js.map +1 -0
- package/build/static/js/{runtime-main.c3bf55c4.js → runtime-main.95a72f94.js} +2 -2
- package/build/static/js/{runtime-main.c3bf55c4.js.map → runtime-main.95a72f94.js.map} +1 -1
- package/package.json +1 -1
- package/build/static/js/0.b43901fb.chunk.js +0 -2
- package/build/static/js/5.d910df6d.chunk.js +0 -3
- package/build/static/js/5.d910df6d.chunk.js.map +0 -1
- package/build/static/js/6.125abcef.chunk.js +0 -2
- package/build/static/js/6.125abcef.chunk.js.map +0 -1
- package/build/static/js/8.f93e3c7d.chunk.js +0 -2
- package/build/static/js/main.7e490eeb.chunk.js +0 -2
- package/build/static/js/main.7e490eeb.chunk.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(this["webpackJsonpconstruct-hub-webapp"]=this["webpackJsonpconstruct-hub-webapp"]||[]).push([[7,13],{207:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),c=n(224),r={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"}}},o=n(108),i=n(2),s=function(e){var t=e.children,n=e.meta,s=e.pageName,l=Object(o.b)(r[s]);Object(a.useEffect)((function(){l()}),[l]);var d=n.suffix,u=void 0===d||d,b=n.title,j=n.description,h=u?"".concat(b," - Construct Hub"):b;["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(" ");return Object(i.jsxs)(i.Fragment,{children:[Object(i.jsxs)(c.a,{children:[!1,Object(i.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),Object(i.jsx)("meta",{charSet:"utf-8"}),Object(i.jsx)("title",{children:h}),Object(i.jsx)("meta",{content:h,property:"og:title"}),Object(i.jsx)("meta",{content:h,name:"twitter:title"}),Object(i.jsx)("meta",{content:"summary",name:"twitter:card"}),Object(i.jsx)("meta",{content:j,name:"description"}),Object(i.jsx)("meta",{content:j,property:"og:description"}),Object(i.jsx)("meta",{content:j,name:"twitter:description"})]}),t]})}},217:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var a=n(6),c=n(30),r=n(110),o=function(e){return!e||e.length<1?[]:e.reduce((function(e,t){return t.highlight?[].concat(Object(c.a)(e),[t.highlight]):e}),[])},i=function(e){for(var t=e.packageTags,n=e.keywords,o=new Array,i=new Set,s=0,l=[].concat(Object(c.a)(function(e){return(null!==e&&void 0!==e?e:[]).filter((function(e){var t;return Boolean(null===(t=e.keyword)||void 0===t?void 0:t.label)})).map((function(e){var t;return Object(a.a)(Object(a.a)({},e),{},{id:null===(t=e.keyword)||void 0===t?void 0:t.label})}))}(t)),Object(c.a)(function(e){return!e||e.length<1?[]:e.filter((function(e){return Boolean(e)&&!r.a.has(e)})).map((function(e){return{id:e,keyword:{label:e}}}))}(n)));s<l.length;s++){var d=l[s],u=d.keyword.label.toLowerCase();i.has(u)||(o.push(d),i.add(u))}return o}},218:function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return i}));var a=n(15),c=function(e,t){return t?"".concat(t,"/").concat(e):e},r=function(e,t,n){var r="".concat(a.a.PACKAGES_PREFIX,"/"),o=c(e,n),i="/v".concat(t);return"".concat(r).concat(o).concat(i)},o=function(e){var t=e;return(t.startsWith("~")||t.startsWith("^"))&&(t=t.substring(1)),t},i=function(e,t){var n=e.packages.filter((function(e){return e.name===t}));return n.length>1?n.sort((function(e,t){var n=new Date(e.metadata.date);return new Date(t.metadata.date).getTime()-n.getTime()}))[0]:n[0]}},223:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0),c=n(21),r=function(){var e=Object(c.h)().search;return Object(a.useMemo)((function(){return new URLSearchParams(e)}),[e])}},230:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(66),c=function(e){var t=Object(a.b)().data;return(null!==t&&void 0!==t?t:{})[e]}},231:function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var a=n(18),c=n(0),r=n(21),o=n(107),i=n(15),s=n(223),l=o.d.TypeScript,d="preferred-language",u=function(e){return null!=e&&o.e.has(e)},b=function(e){if(u(e))return e;try{var t,n=null!==(t=localStorage.getItem(d))&&void 0!==t?t:"";if(u(n))return n}catch(a){}return l},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.updateUrl,n=e.updateSaved,o=Object(r.h)(),l=o.pathname,j=o.hash,h=Object(r.g)(),p=h.replace,O=Object(s.a)(),f=O.get(i.b.LANGUAGE),m=Object(c.useState)((function(){return b(f)})),v=Object(a.a)(m,2),g=v[0],x=v[1];Object(c.useEffect)((function(){u(f)&&f!==g&&x(f)}),[f]),Object(c.useEffect)((function(){f!==g&&t&&(O.set(i.b.LANGUAGE,g),p({pathname:l,hash:j,search:O.toString()}))}),[g,t]);var w=Object(c.useCallback)((function(e){if(x(e),n)try{localStorage.setItem(d,e)}catch(t){}}),[n]);return Object(c.useMemo)((function(){return[g,w]}),[g,w])}},242:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(6),c=n(20),r=n(3),o=n(125),i=n(598),s=n(2),l=["date","format","formattedDate"],d=Object(r.e)((function(e,t){var n=e.date,r=e.format,d=e.formattedDate,u=Object(c.a)(e,l);return Object(s.jsx)(o.b,Object(a.a)(Object(a.a)({as:"time",dateTime:n.toISOString(),ref:t},u),{},{children:null!==d&&void 0!==d?d:Object(i.a)(n,null!==r&&void 0!==r?r:"")}))}));d.displayName="Time"},243:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(125),c=n(131),r=n(2),o=function(e){var t=e.label,n=e.color,o=e.icon;return Object(r.jsxs)(a.p,{align:"center",direction:"row",spacing:2,children:[Object(r.jsx)(c.a,{alt:"".concat(t," icon"),src:o,w:4}),Object(r.jsx)(a.q,{color:n,fontWeight:"bold",children:t})]})}},244:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(6),c=n(20),r=n(147),o=n(82),i=n(40),s=n(2),l=["children","value","label","zIndex"],d=function(e){var t=e.children,n=e.value,d=e.label,u=void 0===d?n:d,b=e.zIndex,j=Object(c.a)(e,l);return Object(s.jsx)(i.a,{"aria-label":"Tag: ".concat(u),to:Object(o.c)({keywords:[n]}),zIndex:b,children:Object(s.jsx)(r.a,Object(a.a)(Object(a.a)({_hover:{textDecoration:"underline"}},j),{},{children:Object(s.jsx)(r.b,{children:t})}))})}},245:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(128),c=n(107),r=n(2),o=function(e){var t=e.children,n=e.language,o=c.e.has(n),i=c.b[n],s=o?"Click to view documentation in ".concat(i):"Documentation support for ".concat(i," is coming soon!");return Object(r.jsx)(a.a,{hasArrow:!0,label:s,placement:"top-start",children:Object(r.jsx)("span",{children:t})})}},264:function(e,t,n){"use strict";n.r(t),n.d(t,"NotFound",(function(){return p})),n.d(t,"default",(function(){return p}));var a=n(125),c=n(127),r=n(27),o=n(207),i=n(6),s=n(20),l=n(3),d=n(131),u=n(2),b=["sources"],j=Object(l.e)((function(e,t){var n=e.sources,c=Object(s.a)(e,b);return Object(u.jsxs)(a.b,{as:"picture",children:[null===n||void 0===n?void 0:n.map((function(e,t){return Object(u.jsx)("source",{media:e.media,srcSet:e.srcSet},t)})),Object(u.jsx)(d.a,Object(i.a)({ref:t},c))]})}));j.displayName="Picture";var h={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"},p=function(){return Object(u.jsx)(o.a,{meta:{title:"Not Found",description:"Oops! The page you were looking for does not exist"},pageName:"notFound",children:Object(u.jsxs)(a.c,{h:"100%",position:"relative",w:"100%",children:[Object(u.jsx)(j,{alt:"",inset:0,position:"absolute",sources:h.optimal,src:h.fallback,zIndex:"hide"}),Object(u.jsxs)(a.f,{align:"center",direction:"column",justify:"center",children:[Object(u.jsx)(j,{alt:"404 Image",sources:[{srcSet:"/assets/robot.webp"}],src:"/assets/robot.png"}),Object(u.jsx)(c.a,{as:r.b,colorScheme:"blue",to:"/",children:"Take Me Home"})]})]})})}},596:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return Xt}));var a=n(21),c=n(264),r=n(18),o=n(125),i=n(145),s=n(0),l=n(207),d=n(218),u=n(40),b=n(68),j=n(82),h=n(6),p=n(50),O=n(32),f=n.n(O),m=n(58),v=n(15),g=function(){var e=Object(m.a)(f.a.mark((function e(t,n,a){var c,r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c="".concat(Object(d.b)(t,n,a)).concat(v.a.ASSEMBLY_SUFFIX),e.next=3,fetch(c);case 3:if((r=e.sent).ok){e.next=6;break}throw new Error("Failed fetching assembly for ".concat(c,": ").concat(r.statusText));case 6:return e.abrupt("return",r.json());case 7:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),x=function(){var e=Object(m.a)(f.a.mark((function e(t,n,a,c,r){var o,i,s,l,u;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o="/docs-".concat(r?"".concat(r,"-"):"").concat(a,".md"),i="".concat(Object(d.b)(t,n,c)).concat(o),e.next=4,fetch(i);case 4:if((s=e.sent).ok){e.next=7;break}throw new Error("Failed fetching documentation for ".concat(i,": ").concat(s.statusText));case 7:if(l="text/markdown",(u=s.headers.get("Content-Type"))&&u.includes(l)){e.next=11;break}throw new Error("Invalid content type: ".concat(u,". Expected ").concat(l,'"'));case 11:return e.abrupt("return",s.text());case 12:case"end":return e.stop()}}),e)})));return function(t,n,a,c,r){return e.apply(this,arguments)}}(),w=function(){var e=Object(m.a)(f.a.mark((function e(t,n,a){var c,r,o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(c=n).startsWith("^")&&(c=c.substring(1,c.length)),r="".concat(Object(d.b)(t,n,a)).concat(v.a.METADATA_SUFFIX),e.next=5,fetch(r);case 5:if((o=e.sent).ok){e.next=8;break}throw new Error("Failed fetching metadata for ".concat(r,": ").concat(o.statusText));case 8:return e.abrupt("return",o.json());case 9:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),y=n(107),k=n(231),C=n(223),S=n(10),L=n(30),T=n(296),I=n.n(T),A=function(e){return e.toLowerCase().replace(/[^a-zA-Z0-9 ]/g,"").replace(/ /g,"-")},R=function e(t,n){var a=t[t.length-1];return a&&a.level<n.level?(a.children=e(a.children,n),t):(t.push(n),t)},W=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=new RegExp("(`{3}[\\s\\S]*?(?:`{3})|^#{1,".concat(t,"}[^#].*)"),"gm");return e.split(n).reduce((function(e,t){var n=e[e.length-1];return t.startsWith("#")||(null===n||void 0===n?void 0:n.startsWith("#"))?[].concat(Object(L.a)(e),[t]):(e[e.length-1]+=t,e)}),[])},z=function(e){var t,n,a,c,o=(null!==(t=e.match(/(\S+)\s*=\s*(\"?)([^"]*)(\2|\s|$)/g))&&void 0!==t?t:[]).reduce((function(e,t){var n,a=t.split("="),c=Object(r.a)(a,2),o=c[0],i=c[1],s=null!==(n=/['"](.*?)['"]/.exec(i))&&void 0!==n?n:[],l=Object(r.a)(s,2),d=(l[0],l[1]);return Object(h.a)(Object(h.a)({},e),{},Object(S.a)({},o,d))}),{}),i=null!==(n=/^#*\s*(?:<a\s.*?(?:\/>|<\/a>))?\s*([^<]+?)\s*(?:<|$)/.exec(e))&&void 0!==n?n:[e,e],s=Object(r.a)(i,2),l=(s[0],s[1].replace(/\[([^\]]+)\](?:\([^)]+\)|\[[^\]]+\])/g,"$1").replace(/:\+1:|:-1:|:[\w-]+:/g,(function(e){var t;return null!==(t=I.a.get(e))&&void 0!==t?t:e}))),d=null!==(a=o["data-heading-title"])&&void 0!==a?a:l;return{id:null!==(c=o["data-heading-id"])&&void 0!==c?c:encodeURIComponent(A(d)),title:d}},E=function(e,t){var n=t.scope,a=t.language,c=t.name,r=t.version,o=t.submodule,i=n?"".concat(n,"/").concat(c):"".concat(c),s="/packages/".concat(i,"/v/").concat(r),l="?".concat(v.b.LANGUAGE,"=").concat(a);o&&(l+="&submodule=".concat(o));var d='# API Reference <span data-heading-title="API Reference" data-heading-id="api-reference"></span>',u=e.split(d),b=u.length>1?u.pop():"",j=u.join(d),p=W(b,3),O=W(j),f=[d.trim()].concat(Object(L.a)(null!==p&&void 0!==p?p:[])),m="".concat(s).concat(l),g=O.reduce((function(e,t){if(t.startsWith("#")){var n,a,c=z(t),r=c.id,o=c.title,i=null!==(n=null===(a=t.match(/(#)/gm))||void 0===a?void 0:a.length)&&void 0!==n?n:1,s=function(e){return(e.endsWith(".")||e.endsWith(":"))&&(e=e.slice(0,-1)),e}(o),l={level:i,id:r,title:s,path:"".concat(m,"#").concat(r),children:[]};return R(e,l)}return e}),[]);1===g.length&&(g=g[0].children);var x,w,y=[].concat([{level:1,id:"Readme",title:"Readme",path:m,children:g}]),k={};return null===f||void 0===f||f.forEach((function(e){var t,n,a,c=e.match(/(^#{1,3}[^#].*)/g),r=null!==(t=null===(n=e.match(/(#)/gm))||void 0===n?void 0:n.length)&&void 0!==t?t:1;if(null===c||void 0===c?void 0:c.length){var o=z(e),i=o.id,d=o.title,u=3===r?(a=i,"".concat(s,"/api/").concat(a).concat(l)):void 0,b=Object(h.a)({level:r,id:i,title:d,children:[]},u?{path:u}:{});y=R(y,b),x={id:i,title:d},w=r}else 3===w&&(k[x.id]={title:x.title,content:e})})),{readme:j,apiReference:k,menuItems:y}},F=n(2),D=Object(s.createContext)(void 0),B=function(){var e=Object(s.useContext)(D);if(!e)throw new Error("This component must be a child of a <PackageStateProvider />");return e},P=function(e){var t,n,o,i,l,d=e.children,u=Object(a.i)(),b=u.name,j=u.scope,O=u.version,f="".concat(j,"/").concat(b,"/v").concat(O),m=Object(k.a)(),S=Object(r.a)(m,1)[0],L=null!==(t=Object(C.a)().get(v.b.SUBMODULE))&&void 0!==t?t:"",T=Object(p.useQuery)("".concat(f,"-docs-").concat(S),(function(){return x(b,O,y.f[S],j,L)})),I=Object(p.useQuery)("".concat(f,"-assembly"),(function(){return g(b,O,j)})),A=Object(p.useQuery)("".concat(f,"-metadata"),(function(){return w(b,O,j)})),R="".concat(j?"".concat(j,"/").concat(b):b," ").concat(O),W=null!==(n=null===(o=I.data)||void 0===o?void 0:o.description)&&void 0!==n?n:"",z=Boolean(T.error||I.error),B=Boolean(!T.isLoading&&!I.isLoading&&T.data&&I.data),P=Boolean(S===y.d.TypeScript||I.isLoading||I.error||null!=(null===(i=I.data)||void 0===i||null===(l=i.targets)||void 0===l?void 0:l[S.toString()])),M=Boolean(!A.isLoading&&(I.isLoading||T.isLoading)),U=Object(s.useMemo)((function(){return T.data?E(T.data,{scope:j,name:b,version:O,language:S,submodule:L}):{menuItems:[]}}),[T.data,b,j,O,S,L]);return I.error?Object(F.jsx)(c.NotFound,{}):Object(F.jsx)(D.Provider,{value:Object(h.a)({assembly:I,hasDocs:B,hasError:z,isLoadingDocs:M,isSupported:P,language:S,markdown:T,metadata:A,name:b,pageDescription:W,pageTitle:R,scope:j,version:O},U),children:d})},M=n(56),U=Object(M.a)("package-page",["page","feedbackLinks","reportLink","reportAbuseLink","githubLink","dependenciesTab","dependenciesList","dependenciesLink","description","markdown","selectVersionButton","selectVersionDropdown","selectVersionItem"]),N=function(){var e,t=B().assembly.data;if(!t)return Object(F.jsx)(b.a,{});var n=Object.entries(null!==(e=t.dependencies)&&void 0!==e?e:{});return n.length?Object(F.jsx)(o.p,{"data-testid":U.dependenciesList,direction:"row",justify:"center",mx:"auto",spacing:4,wrap:"wrap",children:n.map((function(e){var t=Object(r.a)(e,2),n=t[0],a=t[1];return Object(F.jsxs)(u.a,{_first:{ml:4},"data-testid":U.dependenciesLink,fontWeight:"semibold",p:2,to:Object(j.a)({name:n,version:Object(d.d)(a)}),children:[n," - ",a]},"".concat(n,"-").concat(a))}))}):Object(F.jsx)(o.c,{children:"This library does not have any known dependencies"})},H=n(23),q=n(146),G=n(41),V=n(48),Z=n(8),X=function(e){return Object(F.jsxs)(Z.a,Object(h.a)(Object(h.a)({},e),{},{children:[Object(F.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"}),Object(F.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"})]}))},_={h:6,ml:2,w:6},$=function(){var e,t=B(),n=Object(q.a)({base:"horizontal",md:"vertical"}),a=Object(F.jsx)(o.e,{borderColor:"white",mr:6,orientation:n}),c=t.metadata.data,r=t.assembly.data;if(!r||!c)return null;var i,s=null!==(e=null===r||void 0===r?void 0:r.repository)&&void 0!==e?e:{},l=void 0;"git"===s.type&&((l=(null===(i=s.url)||void 0===i?void 0:i.endsWith(".git"))?s.url.replace(".git",""):s.url).endsWith("/")&&(l=l.slice(0,l.length-1)));return Object(F.jsxs)(o.p,{align:"center",backgroundColor:"blue.600",borderTop:"1px solid",borderTopColor:"blue.50",color:"white","data-testid":U.feedbackLinks,direction:{base:"column",md:"row"},justify:"space-evenly",px:8,py:5,spacing:4,children:[l&&Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(G.a,{color:"currentcolor","data-testid":U.githubLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"".concat(l,"/issues"),rightIcon:Object(F.jsx)(X,Object(h.a)({color:"white"},_)),variant:"solid",children:"Provide feedback to publisher"}),a]}),Object(F.jsx)(G.a,{color:"currentcolor","data-testid":U.reportLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"".concat(V.a,"/issues/new"),rightIcon:Object(F.jsx)(X,Object(h.a)({color:"white"},_)),children:"Provide feedback to Construct Hub"}),a,Object(F.jsx)(G.a,{color:"currentcolor","data-testid":U.reportAbuseLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"mailto:abuse@amazonaws.com?subject=".concat(encodeURIComponent("ConstructHub - Report of abusive package: ".concat(null===r||void 0===r?void 0:r.name))),rightIcon:Object(F.jsx)(H.j,Object(h.a)({},_)),children:"Report abuse"})]})},J=n(11),Q=n(127),K={color:"gray.900",h:4,w:4},Y=function(e){var t=e.children,n=e.path,a=e.title,c=e.showToggle,r={_hover:{bg:"rgba(0, 124, 253, 0.05)"},overflow:"hidden",pl:1,py:c?2:1,marginLeft:c?0:1,fontWeight:c?"bold":void 0,textOverflow:"ellipsis",w:"100%"};return n?Object(F.jsx)(u.a,Object(h.a)(Object(h.a)({title:a,to:n},r),{},{children:t})):Object(F.jsx)(o.q,Object(h.a)(Object(h.a)({},r),{},{children:t}))},ee=function e(t){var n,c=t.children,r=t.title,i=t.path,l=t.level,d=t.onOpen,u=l<2,b=Object(J.g)({onOpen:d,defaultIsOpen:u}),j=Object(a.h)(),p=j.hash,O=j.pathname,f=new URL(null!==i&&void 0!==i?i:"",window.origin),m=(null===i||void 0===i?void 0:i.includes("/api/"))?f.pathname===O:f.hash&&p&&f.hash===p,v=(null!==(n=null===c||void 0===c?void 0:c.length)&&void 0!==n?n:0)>0,g=b.isOpen&&v,x=Object(s.useMemo)((function(){return null===c||void 0===c?void 0:c.map((function(t,n){return Object(s.createElement)(e,Object(h.a)(Object(h.a)({},t),{},{key:n,level:l+1,onOpen:b.onOpen}))}))}),[c,b.onOpen,l]);return Object(F.jsxs)(o.f,{direction:"column",children:[Object(F.jsxs)(o.f,{align:"center",color:m?"blue.500":"gray.800",children:[v&&Object(F.jsx)(Q.b,{"aria-label":"expand-toggle",borderRadius:"md",h:4,icon:b.isOpen?Object(F.jsx)(H.c,Object(h.a)({},K)):Object(F.jsx)(H.e,Object(h.a)({},K)),ml:-1,onClick:b.onToggle,size:"xs",variant:"link",w:0}),Object(F.jsx)(Y,{path:i,showToggle:v,title:r,children:r})]}),Object(F.jsx)(o.b,{_before:{bg:"gray.100",bottom:0,content:'""',left:0,position:"absolute",top:0,w:"1px"},display:g?"initial":"none",ml:2,mr:2,pl:2,position:"relative",children:x})]})},te=function(e){var t=e.items;return Object(F.jsx)(o.f,{direction:"column",maxWidth:"100%",children:t.map((function(e,t){return Object(s.createElement)(ee,Object(h.a)(Object(h.a)({},e),{},{key:t,level:0,onOpen:void 0}))}))})},ne=n(133),ae=n(139),ce=n(3),re=n(130),oe=n(137),ie=n(138),se=Object(ce.e)((function(e,t){var n=e.value,a=e.onChange,c=e.onSubmit,o=Object(s.useState)(n),i=Object(r.a)(o,2),l=i[0],d=i[1];return Object(ie.a)(l,{onChange:a}),Object(F.jsx)(oe.a,{"data-testid":"choose-submodule-search-form",onSubmit:c,children:Object(F.jsxs)(re.b,{children:[Object(F.jsx)(re.c,{children:Object(F.jsx)(H.o,{color:"gray.400"})}),Object(F.jsx)(re.a,{"data-testid":"choose-submodule-search-input",onChange:function(e){return d(e.target.value)},placeholder:"Search",ref:t,value:l,variant:"filled"})]})})}));se.displayName="SearchInput";var le=function(e){var t=e.inputValue,n=e.isOpen,c=e.onClose,r=e.onInputChange,i=e.submodules,l=Object(s.useRef)(null),d=Object(a.g)().push,u=Object(s.useCallback)((function(e){c(),d(e)}),[c,d]),b=Object(s.useCallback)((function(e){if(e.preventDefault(),i.length){var t=i[0].to;u(t)}}),[u,i]);return Object(F.jsx)(ne.g,{initialFocusRef:l,isOpen:n,onClose:c,children:Object(F.jsx)(ne.m,{children:Object(F.jsxs)(ne.j,{mx:4,children:[Object(F.jsx)(ne.i,{"data-testid":"choose-submodule-modal-close"}),Object(F.jsx)(ne.l,{"data-testid":"choose-submodule-modal-header",fontSize:"lg",fontWeight:"bold",children:"Choose a submodule"}),Object(F.jsxs)(ne.h,{"data-testid":"choose-submodule-modal-body",p:0,children:[Object(F.jsx)(o.b,{pb:4,px:4,children:Object(F.jsx)(se,{onChange:r,onSubmit:b,ref:l,value:t})}),Object(F.jsx)(o.e,{}),Object(F.jsx)(o.r,{"data-testid":"choose-submodule-modal-results",m:0,maxH:"50vh",overflow:"hidden auto",p:0,role:"listbox",tabIndex:-1,children:i.map((function(e){var t=e.name,n=e.to;return Object(F.jsx)(ae.a,{"data-testid":"choose-submodule-result",name:t,onClick:function(){return u(n)}},t)}))})]})]})})})},de=function(e){var t,n=e.assembly,c=Object(a.h)().pathname,i=Object(a.g)().push,l=Object(C.a)(),d=Object.keys(null!==(t=null===n||void 0===n?void 0:n.submodules)&&void 0!==t?t:{}),u=Object(J.g)(),b=u.isOpen,j=u.onOpen,h=u.onClose,p=l.get(v.b.SUBMODULE),O=p?"Submodule: ".concat(p):"Choose Submodule",f=Object(s.useState)(""),m=Object(r.a)(f,2),g=m[0],x=m[1],w=Object(s.useCallback)((function(e){var t=new URLSearchParams(l.toString());return t.set("submodule",e),"".concat(c,"?").concat(t)}),[c,l]),y=Object(s.useMemo)((function(){var e=d;return g&&(e=e.filter((function(e){return e.toLowerCase().includes(g.toLowerCase())}))),e.map((function(e){var t=e.split(".")[1];return{name:t,to:w(t)}}))}),[d,g,w]);return 0===d.length?null:Object(F.jsxs)(o.p,{spacing:4,w:"100%",children:[p&&Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(Q.a,{borderRadius:"none","data-testid":"choose-submodule-go-back",leftIcon:Object(F.jsx)(H.a,{"aria-label":"Back to construct root"}),onClick:function(){var e=l.get(v.b.LANGUAGE);i("".concat(c).concat(e?"?".concat(v.b.LANGUAGE,"=").concat(e):""))},title:"Back to construct root",variant:"link",children:null===n||void 0===n?void 0:n.name}),Object(F.jsx)(o.e,{})]}),Object(F.jsx)(Q.a,{borderRadius:"none",color:"blue.500","data-testid":"choose-submodule-search-trigger",flexGrow:1,onClick:j,rightIcon:Object(F.jsx)(H.c,{}),title:"Choose Submodule",variant:"link",children:O}),Object(F.jsx)(le,{inputValue:g,isOpen:b,onClose:h,onInputChange:x,submodules:y})]})},ue=n(304),be=n(393),je=n.n(be),he=n(487),pe=n.n(he),Oe=n(520),fe=n.n(Oe),me=n(591),ve=n(523),ge=n.n(ve),xe=n(20),we=n(593),ye=n(555),ke=["value"],Ce=Object(ce.e)((function(e,t){var n=e.value,a=Object(xe.a)(e,ke),c=Object(J.d)(n),r=c.hasCopied,o=c.onCopy;return Object(F.jsx)(Q.b,Object(h.a)({"aria-label":"Copy Button",color:"blue.500",colorScheme:"blue",h:6,icon:r?Object(F.jsx)(H.b,{color:"green.300"}):Object(F.jsx)(H.h,{}),minW:"auto",ml:1,onClick:o,ref:t,variant:"ghost",w:6},a))}));Ce.displayName="CopyButton";var Se,Le=function(e){var t=e.code,n=e.tokens,a=e.getLineProps,c=e.getTokenProps;return Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(o.f,{align:"center",bg:"rgba(0, 124, 253, 0.15)",borderTopRadius:"md",justify:"flex-end",px:2,py:1,children:Object(F.jsx)(Ce,{value:t})}),Object(F.jsx)(o.b,{overflowX:"auto",p:2,children:n.map((function(e,t){return Object(F.jsx)("div",Object(h.a)(Object(h.a)({},a({line:e,key:t})),{},{children:e.map((function(e,t){return Object(F.jsx)(o.b,Object(h.a)({as:"span",sx:{wordWrap:"normal"}},c({token:e,key:t})),t)}))}),t)}))})]})},Te=function(e){var t=e.code,n=e.tokens,a=e.getLineProps,c=e.getTokenProps;return Object(F.jsxs)(o.g,{p:3,templateColumns:"1fr min-content",w:"full",children:[Object(F.jsx)(o.b,{m:-3,maxW:"full",overflow:"auto",p:3,children:n.map((function(e,t){return Object(F.jsx)("div",Object(h.a)(Object(h.a)({},a({line:e,key:t})),{},{children:e.map((function(e,t){return Object(F.jsx)("span",Object(h.a)({},c({token:e,key:t})),t)}))}),t)}))}),Object(F.jsx)(o.f,{align:"center",ml:1,children:Object(F.jsx)(Ce,{value:t})})]})},Ie=["code","language"],Ae=function(e){var t=e.code,n=e.language,a=Object(xe.a)(e,Ie);return Object(F.jsx)(we.a,Object(h.a)(Object(h.a)({},we.b),{},{code:t,language:n,theme:ye.a,children:function(e){return Object(F.jsx)(o.b,Object(h.a)(Object(h.a)({as:"pre",border:"base",borderRadius:"md",boxShadow:"base",className:e.className,style:e.style},a),{},{children:e.tokens.length>1?Object(F.jsx)(Le,Object(h.a)(Object(h.a)({},e),{},{code:t})):Object(F.jsx)(Te,Object(h.a)(Object(h.a)({},e),{},{code:t}))}))}}))},Re=n(556),We=n.n(Re),ze=function e(t){return s.Children.toArray(t).reduce((function(t,n){return"string"===typeof n?t+n:"object"===typeof n&&"props"in n?t+e(n.props.children):t}),"").trim()},Ee=function(e){var t,n,a=e.level,c=e.children,r=["2xl","xl","lg","md","sm","xs"][a-1],i="h".concat(a),s=(new DOMParser).parseFromString(We.a.renderToStaticMarkup(c),"text/html").querySelector("span[data-heading-title][data-heading-id]"),l=null!==(t=null===s||void 0===s?void 0:s.dataset.headingTitle)&&void 0!==t?t:ze(c),d=null!==(n=null===s||void 0===s?void 0:s.dataset.headingId)&&void 0!==n?n:A(l);return Object(F.jsx)(F.Fragment,{children:Object(F.jsx)(o.i,{as:i,backgroundColor:5===a?"gray.50":void 0,borderBottom:"1px solid",borderBottomColor:"gray.100",color:"gray.800",level:a,marginBottom:4,marginTop:a>=4?"1.5em":4,paddingBottom:2,paddingTop:2,paddingX:a>=4?2:void 0,size:r,children:Object(F.jsx)(u.a,{"data-heading-id":"#".concat(d),"data-heading-level":a,"data-heading-title":l,id:d,replace:!0,sx:{"> code":{color:"blue.800",fontSize:"inherit"}},to:"#".concat(d),children:c})})})},Fe=n(131),De=n(148),Be=Object(M.a)("markdown",["container"]),Pe=["children","href"],Me={a:function(e){var t=e.children,n=e.href,a=Object(xe.a)(e,Pe),c=o.j;try{if(n&&n.startsWith("http"))if(new URL(n).hostname!==window.location.hostname){c=function(e){return Object(F.jsx)(G.a,Object(h.a)({},e))}}}catch(r){c=o.j}return Object(F.jsx)(c,Object(h.a)(Object(h.a)({color:"blue.500",href:n,sx:{"> img + svg":{display:"none"}}},a),{},{children:t}))},blockquote:function(e){var t=e.children;return Object(F.jsx)(o.b,{as:"blockquote",borderLeft:"5px solid",borderLeftColor:"gray.100",marginX:"2",px:"2",wordBreak:"break-word",children:t})},caption:De.b,code:function(e){var t=e.inline,n=e.children,a=e.language,c=void 0===a?"typescript":a;if(t)return Object(F.jsx)(o.d,{bg:"gray.50",border:"1px solid",borderColor:"gray.50",borderRadius:"md",marginTop:"md",mx:2,px:2,py:0,children:n});var r=s.Children.toArray(n).reduce((function(e,t){return"string"===typeof t?"".concat(e).concat(t):e}),"").trim();return Object(F.jsx)(Ae,{code:r,fontSize:"0.9rem",language:c})},em:function(e){var t=e.children;return Object(F.jsx)(o.b,{as:"em",fontStyle:"normal",fontWeight:"bold",children:t})},h1:Ee,h2:Ee,h3:Ee,h4:Ee,h5:Ee,h6:Ee,hr:function(){return Object(F.jsx)(F.Fragment,{})},img:function(e){return Object(F.jsx)(Fe.a,Object(h.a)({display:"inline-block"},e))},li:function(e){var t=e.children;return Object(F.jsx)(o.m,{lineHeight:"tall",marginX:2,sx:{"em:first-of-type":{fontSize:"small"},"&::marker":{color:"gray.400"},code:{fontSize:"small"}},children:t})},ol:function(e){var t=e.children;return Object(F.jsx)(o.n,{children:t})},p:function(e){var t=e.children;return Object(F.jsx)(o.q,{lineHeight:"1.5",mx:2,my:4,children:t})},pre:function(e){var t=e.children;return Object(F.jsx)(o.b,{as:"pre",children:t})},sup:function(e){var t=e.children,n=void 0,a="";if(Array.isArray(t)){var c=Object(r.a)(t,1)[0];"string"===typeof c&&(a=c)}return"Required"===a?n="orange.700":"Optional"===a&&(n="green.700"),Object(F.jsx)(o.b,{as:"sup",color:n,fontSize:"xs",ml:-1,top:-1,children:t})},table:function(e){var t=e.children;return Object(F.jsx)(o.b,{maxW:"100%",overflowX:"auto",children:Object(F.jsx)(De.a,{variant:"striped",children:t})})},tbody:De.c,td:De.d,tfoot:De.e,th:De.f,thead:De.g,tr:De.h,ul:function(e){var t=e.children;return Object(F.jsx)(o.r,{marginTop:2,padding:0,children:t})}},Ue=Object(h.a)({},ue);Ue.attributes.span=(null!==(Se=Ue.attributes.span)&&void 0!==Se?Se:[]).concat(["dataHeadingTitle","dataHeadingId"]);var Ne=[[pe.a],[fe.a,Ue]],He=[ge.a,me.a],qe=/^(?:(?:git@)?github\.com:|(?:https?:\/\/)github\.com\/)([^/]+)\/([^/]+)(?:\.git)?$/,Ge=function(e){var t=e.children,n=function(e){var t=e.type,n=e.url,a=e.directory;if("git"===t){var c=qe.exec(n);if(null!=c){var o=Object(r.a)(c,3);return{owner:o[1],repo:o[2],directory:a}}}}(e.repository),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HEAD";return null==n?je.a.uriTransformer:function(a){var c=je.a.uriTransformer(a),o=Object(r.a)(c,1)[0];if("#"===o||"/"===o)return c;if(c.includes("://"))return c;var i=n.owner,s=n.repo.replace(/\.git$/,""),l=n.directory?"".concat(n.directory,"/"):"";return"https://".concat(e,"/").concat(i,"/").concat(s,"/").concat(t,"/").concat(l).concat(c)}};return Object(F.jsx)(o.b,{"data-testid":Be.container,px:8,children:Object(F.jsx)(je.a,{components:Me,rehypePlugins:Ne,remarkPlugins:He,transformImageUri:a("raw.githubusercontent.com"),transformLinkUri:a("github.com","blob/HEAD"),children:t})})},Ve=function(){var e=B(),t=e.isLoadingDocs,n=e.readme,a=e.assembly.data;return!t&&n&&a?Object(F.jsx)(Ge,{repository:a.repository,children:n}):null},Ze=n(27),Xe=function(){var e=B().language,t=Object(F.jsx)(G.a,{href:"".concat(V.a,"/issues/new"),children:"issue"});return Object(F.jsxs)(o.q,{align:"center",fontSize:"xl",fontStyle:"oblique",px:4,wordBreak:"break-word",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"," ",t,"."]})},_e=function(e){var t=e.rootId,n=Object(a.h)(),c=n.pathname,r=n.hash,i=n.search,s=B(),l=s.isLoadingDocs,d=s.assembly.data,u=function(){var e=Object(a.i)().typeId,t=B().apiReference;if(e)return null===t||void 0===t?void 0:t[e]}();if(l)return null;if(!u||!d)return Object(F.jsx)(Xe,{});var b=u.title,j=u.content,h="".concat(c).concat(i,"#").concat(r);return Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(o.i,{as:"h2",p:8,size:"2xl",children:Object(F.jsx)(Ze.c,{id:t,to:h,children:b})}),Object(F.jsx)(Ge,{repository:d.repository,children:j})]})},$e="4.5rem",Je="apidocs_header",Qe="api",Ke=function(){var e,t=B().assembly.data;return Object.keys(null!==(e=null===t||void 0===t?void 0:t.submodules)&&void 0!==e?e:{}).length>0?Object(F.jsx)(o.f,{borderBottom:"1px solid",borderColor:"blue.50",justify:"center",py:4,children:Object(F.jsx)(de,{assembly:t})}):null},Ye=function(){var e=Object(a.j)().path,t=B().menuItems,n=Object(a.h)(),c=n.hash,r=n.pathname,i=n.search;return Object(s.useEffect)((function(){if(c){var e=document.querySelector('[data-heading-id="'.concat(c,'"]'));null===e||void 0===e||e.scrollIntoView(!0)}else if(function(e){var t=e.split("/");return t[t.length-2]===Qe}(r)){var t=document.getElementById(Je);null===t||void 0===t||t.scrollIntoView(!0)}else window.scrollTo(0,0)})),Object(F.jsxs)(o.g,{bg:"white",columnGap:4,h:"100%",templateColumns:{base:"1fr",md:"1fr 3fr"},width:"100%",children:[Object(F.jsxs)(o.f,{alignSelf:"stretch",borderRight:"1px solid",borderRightColor:"blue.50",direction:"column",display:{base:"none",md:"flex"},maxHeight:"calc(100vh - ".concat($e,")"),overflow:"hidden auto",pl:6,position:"sticky",pr:4,top:$e,children:[Object(F.jsx)(Ke,{}),Object(F.jsx)(o.b,{overflowY:"auto",py:4,children:Object(F.jsx)(te,{items:t})})]}),Object(F.jsx)(o.b,{h:"max-content",maxWidth:"100%",overflow:"hidden",py:4,sx:{a:{scrollMarginTop:$e}},children:Object(F.jsxs)(a.d,{children:[Object(F.jsx)(a.a,{exact:!0,from:"".concat(e,"/").concat(Qe),to:{pathname:e,search:i}}),Object(F.jsx)(a.b,{exact:!0,path:e,children:Object(F.jsx)(Ve,{})}),Object(F.jsx)(a.b,{exact:!0,path:"".concat(e,"/").concat(Qe,"/:typeId"),children:Object(F.jsx)(_e,{rootId:Je})})]})})]})},et=n(91),tt=n(245),nt=function(e){var t=e.targetLanguages,n=e.selectedLanguage,c=B(),r=c.name,i=c.scope,s=c.version,l=Object(a.g)().push;return Object(F.jsx)(o.p,{align:"center","data-testid":"language-bar",direction:"row",spacing:2,children:Object(L.a)(t).sort((function(e,t){return y.a.indexOf(e)-y.a.indexOf(t)})).map((function(e){var t=!y.e.has(e),a=e===n,c=y.c[e].icon;return Object(F.jsx)(tt.a,{language:e,children:Object(F.jsx)(Q.b,{"aria-label":"Select ".concat(e," icon"),border:a?"1px solid":"none",borderColor:"blue.500",borderRadius:"lg",boxShadow:"base",colorScheme:"blue",cursor:t?"not-allowed":"pointer","data-testid":"language-".concat(e),disabled:t,icon:Object(F.jsx)(c,{"aria-label":"".concat(e,"-icon"),borderRadius:"sm",height:[4,5,6],width:[4,5,6]}),onClick:function(){a||l(Object(j.a)({name:Object(d.c)(r,i),version:s,language:e}))},p:1,variant:"outline",w:"max-content"})},e)}))})},at=new Set(y.a),ct=function(){var e,t=B(),n=t.assembly.data,a=t.language,c=Object(k.a)({updateSaved:!0,updateUrl:!0}),o=Object(r.a)(c,2)[1],i=Object(k.a)({updateUrl:!0}),l=Object(r.a)(i,2)[1],d=[].concat(Object(L.a)(Object.keys(null!==(e=null===n||void 0===n?void 0:n.targets)&&void 0!==e?e:{})),[y.d.TypeScript]),u=d.includes(a);Object(s.useEffect)((function(){u||l(y.d.TypeScript)}),[u]);var b={selectedLanguage:u?a:y.d.TypeScript,setSelectedLanguage:o,targetLanguages:d.filter((function(e){return at.has(e)}))};return Object(F.jsx)(nt,Object(h.a)({},b))},rt=n(128),ot=n(45),it=n(345),st=n.n(it),lt=n(243),dt=["license"],ut=Object(ce.e)((function(e,t){var n=e.license,a=Object(xe.a)(e,dt),c=st.a[n].url;return Object(F.jsx)(G.a,Object(h.a)(Object(h.a)({href:c,ref:t},a),{},{children:n}))}));ut.displayName="LicenseLink";var bt=n(242),jt="MMM dd, yyyy 'at' h:mmaaa",ht=n(86),pt=n(230),Ot=n(217),ft=["openText","closeText","isOpen"],mt=function(e){var t=e.openText,n=e.closeText,a=e.isOpen,c=Object(xe.a)(e,ft);return Object(F.jsx)(Q.a,Object(h.a)(Object(h.a)({colorScheme:"blue",leftIcon:a?Object(F.jsx)(H.f,{}):Object(F.jsx)(H.c,{}),variant:"link"},c),{},{children:a?n:t}))},vt=function(e){var t=e.children,n=e.label,a=e.tooltip;return Object(F.jsx)(rt.a,{hasArrow:!0,isDisabled:!a,label:a,placement:"left",children:Object(F.jsxs)(o.q,{fontWeight:"bold",children:[n," ",Object(F.jsx)(o.b,{as:"span",fontWeight:"normal",children:t})]})})},gt=function(e){var t=e.downloads;return Object(F.jsx)(vt,{label:Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(o.b,{as:"span",mr:1,children:Object(F.jsx)(H.i,{})}),t.toLocaleString()]}),tooltip:"Download numbers are periodically sourced from the npm registry",children:"Weekly downloads"})},xt=function(e){var t=B(),n=Object(ht.b)().data,a=Object(J.g)({defaultIsOpen:!0}),c=Object(pt.a)("packageLinks"),i=t.assembly.data,l=t.metadata.data,d=t.scope?"".concat(t.scope,"/").concat(t.name):t.name,b=Object(Ot.a)(null===l||void 0===l?void 0:l.packageTags),p=Object(r.a)(b,1)[0],O=function(e){var t=e.assembly,n=e.metadata,a=e.name,c=e.packageLinks,r=e.stats,o=[];if(t||n||r||c){var i,l,d,b,h,p=null===r||void 0===r||null===(i=r.packages)||void 0===i||null===(l=i[a])||void 0===l||null===(d=l.downloads)||void 0===d?void 0:d.npm;void 0!==p&&o.push(Object(F.jsx)(gt,{downloads:p}));var O=null===t||void 0===t?void 0:t.author.name,f=null===t||void 0===t?void 0:t.repository,m=null===t||void 0===t?void 0:t.license;if(O){var v=Object(F.jsx)(u.a,{color:"blue.500",to:Object(j.c)({query:O}),children:O});o.push(Object(F.jsx)(vt,{label:"Author",children:v}))}var g=null===n||void 0===n?void 0:n.date;if(g){var x=Object(F.jsx)(bt.a,{date:new Date(g),fontWeight:"normal",format:jt});o.push(Object(F.jsx)(vt,{label:"Published",children:x}))}if(f){var w=Object(j.b)(f.url);if(w){var y=Object(F.jsx)(G.a,{href:w.url,children:w.hostname});o.push(Object(F.jsx)(vt,{label:"Repository",children:y}))}}if(m&&m in st.a){var k=Object(F.jsx)(ut,{license:m});o.push(Object(F.jsx)(vt,{label:"License",children:k}))}(null===c||void 0===c?void 0:c.length)&&c.forEach((function(e){var t,a=e.linkLabel,c=e.configKey,r=e.linkText,i=(null!==(t=null===n||void 0===n?void 0:n.packageLinks)&&void 0!==t?t:{})[c];if(i){var s=Object(F.jsx)(G.a,{href:i,children:null!==r&&void 0!==r?r:i});o.push(Object(F.jsxs)(vt,{label:a,children:[a,": ",s]}))}}));var C=null!==(b=null===n||void 0===n||null===(h=n.links)||void 0===h?void 0:h.npm)&&void 0!==b?b:"https://www.npmjs.com/package/".concat(null===t||void 0===t?void 0:t.name,"/v/").concat(null===t||void 0===t?void 0:t.version);if(C){var S=Object(F.jsx)(G.a,{href:C,children:new URL(C).hostname});o.push(Object(F.jsx)(vt,{label:"Registry",children:S}))}}return o.map((function(e,t){return Object(F.jsx)(s.Fragment,{children:e},t)}))}({assembly:i,metadata:l,name:d,packageLinks:c,stats:n});if(!O.length)return null;var f=O.slice(0,2),m=O.slice(2,O.length);return Object(F.jsxs)(o.p,Object(h.a)(Object(h.a)({align:"start",color:"gray.600",fontSize:".75rem",mt:2,spacing:2},e),{},{children:[p&&Object(F.jsx)(lt.a,Object(h.a)({},p)),f,m.length>0&&Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(ot.a,{animateOpacity:!0,in:a.isOpen,children:Object(F.jsx)(o.p,{spacing:2,children:m})}),Object(F.jsx)(mt,{closeText:"See fewer details (".concat(f.length,")"),fontSize:"inherit",isOpen:a.isOpen,onClick:a.onToggle,openText:"See more details (".concat(m.length,")")})]})]}))},wt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map((function(e){return'"'.concat(e.map((function(e){return null!==e&&void 0!==e?e:"."})).join(" "),'"')})).join(" ")},yt="heading",kt="install",Ct="languages",St="meta",Lt=wt([yt],[St],[Ct],[kt]),Tt=wt([yt,Ct,kt],[yt,null,St]),It=function(e){var t=e.children;return Object(F.jsx)(o.g,{columnGap:{md:6,lg:10},pt:{base:3,lg:6},px:{base:5,md:6,lg:10},rowGap:{base:4,lg:0},templateAreas:{base:Lt,lg:Tt},templateColumns:{base:"1fr",lg:"1fr auto 15rem"},templateRows:{lg:"auto 1fr"},children:t})},At=n(112),Rt=n(244),Wt=n(129),zt=n(559),Et=n.n(zt),Ft=n(84),Dt=function(){var e=B(),t=e.scope,n=e.name,c=e.version,r=e.language,o=t?"".concat(t,"/").concat(n):n,i=Object(Ft.b)(),l=Object(a.g)().push,d=i.findByName(o),u=Object(s.useMemo)((function(){var e=d.map((function(e){return e.version})),t=Object(L.a)(new Set([].concat(Object(L.a)(e),[c])));return t.sort(Et.a.compare),t}),[d,c]);return Object(F.jsxs)(Wt.a,{children:[Object(F.jsx)(Wt.b,{as:Q.a,color:"blue.500","data-testid":U.selectVersionButton,mt:1,py:1,rightIcon:Object(F.jsx)(H.c,{}),variant:"link",children:"v".concat(c)}),Object(F.jsx)(Wt.f,{"data-testid":U.selectVersionDropdown,minW:"180",zIndex:"sticky",children:u.map((function(e){return Object(F.jsx)(Wt.e,{"data-testid":U.selectVersionItem,"data-value":e,onClick:function(){return t=e,void l(Object(j.a)({name:o,version:t,language:r}));var t},children:"v".concat(e)},e)}))})]})},Bt=["assembly","name","description","metadata","version"],Pt=function(e){var t,n,a,c=e.assembly,r=e.name,i=e.description,s=e.metadata,l=(e.version,Object(xe.a)(e,Bt)),d=Object(Ot.b)({packageTags:null!==(t=null===s||void 0===s?void 0:s.packageTags)&&void 0!==t?t:[],keywords:null!==(n=null===c||void 0===c?void 0:c.keywords)&&void 0!==n?n:[]}),u=null!==(a=s.constructFramework)&&void 0!==a?a:{};return Object(F.jsxs)(o.p,Object(h.a)(Object(h.a)({lineHeight:"1.5",maxW:"full",overflow:"hidden",spacing:2},l),{},{children:[Object(F.jsxs)(o.f,{align:"center",wrap:"wrap",children:[Object(F.jsx)(o.i,{color:"blue.800",flexShrink:1,fontSize:"1.5rem",isTruncated:!0,mr:4,children:r}),Object(F.jsx)(Dt,{})]}),Object(F.jsx)(o.q,{"data-testid":U.description,fontSize:"1rem",children:i}),Object(F.jsxs)(o.f,{align:"center",direction:"row",pt:1,sx:{gap:"0.5rem"},wrap:"wrap",children:[Object(F.jsx)(At.a,Object(h.a)({},u)),d.map((function(e){var t=e.id,n=e.keyword,a=(n=void 0===n?{}:n).label,c=n.color;return Object(F.jsx)(Rt.a,{value:t,variant:c,children:a},t)}))]})]}))},Mt=function(e){var t=B(),n=t.language,a=t.assembly.data,c=Object(J.g)();if(!a)return null;var r=function(e){var t=e.language,n=e.assembly,a=n.version;if(t===y.d.TypeScript){var c=n.name;return"npm install ".concat(c,"@").concat(a)}if(t===y.d.Python){var r,o,i=null===(r=n.targets)||void 0===r||null===(o=r.python)||void 0===o?void 0:o.distName;if(!i)return;return"pip install ".concat(i,"==").concat(a)}if(t===y.d.Java){var s,l,d,u,b,j,h=null===(s=n.targets)||void 0===s||null===(l=s.java)||void 0===l||null===(d=l.maven)||void 0===d?void 0:d.groupId,p=null===(u=n.targets)||void 0===u||null===(b=u.java)||void 0===b||null===(j=b.maven)||void 0===j?void 0:j.artifactId;if(!h||!p)return;return["// add this to your pom.xml","<dependency>"," <groupId>".concat(h,"</groupId>")," <artifactId>".concat(p,"</artifactId>")," <version>".concat(a,"</version>"),"</dependency>"].join("\n")}if(t===y.d.DotNet){var O,f,m=null===(O=n.targets)||void 0===O||null===(f=O.dotnet)||void 0===f?void 0:f.packageId;if(!m)return;return"dotnet add package ".concat(m," --version ").concat(a)}}({language:n,assembly:a});return r&&n?Object(F.jsx)(o.f,Object(h.a)(Object(h.a)({align:"start",direction:"column",fontSize:".75rem",w:"full"},e),{},{children:n===y.d.Java?Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(mt,{closeText:"Hide",fontSize:"inherit",isOpen:c.isOpen,mt:2,onClick:c.onToggle,openText:"Install"}),Object(F.jsx)(o.b,{maxW:"full",overflow:"hidden",children:Object(F.jsx)(ot.a,{in:c.isOpen,children:Object(F.jsx)(Ae,{boxShadow:"none",code:r,fontSize:"inherit",language:n,mt:2})})})]}):Object(F.jsx)(Ae,{boxShadow:"none",code:r,fontSize:"inherit",language:n,lineHeight:"2",w:"full"})})):null},Ut=function(){var e=B(),t=e.assembly,n=e.metadata,a=e.version,c=t.data,r=n.data;return c&&r?Object(F.jsxs)(It,{children:[Object(F.jsx)(Pt,{assembly:c,description:c.description,gridArea:yt,metadata:r,name:c.name,version:a}),Object(F.jsx)(o.f,{align:"start",gridArea:Ct,children:Object(F.jsx)(ct,{})}),Object(F.jsxs)(o.f,{direction:"column",gridArea:St,children:[Object(F.jsx)(o.e,{borderBottom:"base",display:{md:"none"},mb:2}),Object(F.jsx)(xt,{}),Object(F.jsx)(o.e,{borderBottom:"base",display:{md:"none"},mt:2})]}),Object(F.jsx)(o.f,{align:"start",gridArea:kt,children:Object(F.jsx)(Mt,{})})]}):Object(F.jsx)(et.a,{mx:"auto",my:10,size:"xl"})},Nt=function(){var e=B(),t=e.pageDescription,n=e.pageTitle,a=Object(s.useState)(0),c=Object(r.a)(a,2),d=c[0],u=c[1];return Object(s.useEffect)((function(){u(0)}),[n]),Object(F.jsx)(l.a,{meta:{title:n,description:t},pageName:"packageProfile",children:Object(F.jsxs)(o.g,{bg:"white","data-testid":U.page,maxW:"100vw",templateColumns:"1fr",templateRows:"auto 1fr auto",children:[Object(F.jsx)(Ut,{}),Object(F.jsxs)(i.e,{index:d,onChange:u,pt:4,variant:"line",children:[Object(F.jsxs)(i.b,{borderBottom:"base",mx:{base:0,lg:6},children:[Object(F.jsx)(i.a,{children:"Documentation"}),Object(F.jsx)(i.a,{"data-testid":U.dependenciesTab,children:"Dependencies"})]}),Object(F.jsxs)(i.d,{maxW:"full",children:[Object(F.jsx)(i.c,{p:0,children:Object(F.jsx)(Ye,{})}),Object(F.jsx)(i.c,{children:Object(F.jsx)(N,{})})]})]}),Object(F.jsx)($,{})]})})},Ht=function(){return Object(F.jsx)(P,{children:Object(F.jsx)(Nt,{})})},qt=n(85),Gt=function(){var e=Object(a.i)(),t=e.name,n=e.scope,r=Object(qt.b)();if(r.isLoading||!r.data)return Object(F.jsx)(o.c,{minH:"16rem",children:Object(F.jsx)(et.a,{size:"xl"})});var i=function(e,t,n){var a=Object(d.c)(t,n),c=Object(d.a)(e,a);if(c){var r=c.version,o="/v/".concat(r);return"".concat("/packages/").concat(a).concat(o)}}(r.data,t,n);return i?Object(F.jsx)(a.a,{to:i}):Object(F.jsx)(c.default,{})},Vt="[^@\\/]+",Zt="@[^\\/]+",Xt=function(){var e=Object(a.j)().path;return Object(F.jsxs)(a.d,{children:[Object(F.jsx)(a.b,{exact:!0,path:"".concat(e,"/:scope(").concat(Zt,")?/:name(").concat(Vt,")"),children:Object(F.jsx)(Gt,{})}),Object(F.jsx)(a.b,{path:"".concat(e,"/:scope(").concat(Zt,")?/:name(").concat(Vt,")/v/:version"),children:Object(F.jsx)(Ht,{})}),Object(F.jsx)(a.b,{path:"*",children:Object(F.jsx)(c.NotFound,{})})]})}}}]);
|
|
2
|
-
//# sourceMappingURL=7.
|
|
1
|
+
(this["webpackJsonpconstruct-hub-webapp"]=this["webpackJsonpconstruct-hub-webapp"]||[]).push([[7,13],{206:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),c=n(223),r={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"}}},o=n(107),i=n(2),s=function(e){var t=e.children,n=e.meta,s=e.pageName,l=Object(o.b)(r[s]);Object(a.useEffect)((function(){l()}),[l]);var d=n.suffix,u=void 0===d||d,b=n.title,j=n.description,h=u?"".concat(b," - Construct Hub"):b;["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(" ");return Object(i.jsxs)(i.Fragment,{children:[Object(i.jsxs)(c.a,{children:[!1,Object(i.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),Object(i.jsx)("meta",{charSet:"utf-8"}),Object(i.jsx)("title",{children:h}),Object(i.jsx)("meta",{content:h,property:"og:title"}),Object(i.jsx)("meta",{content:h,name:"twitter:title"}),Object(i.jsx)("meta",{content:"summary",name:"twitter:card"}),Object(i.jsx)("meta",{content:j,name:"description"}),Object(i.jsx)("meta",{content:j,property:"og:description"}),Object(i.jsx)("meta",{content:j,name:"twitter:description"})]}),t]})}},216:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var a=n(6),c=n(30),r=n(109),o=function(e){return!e||e.length<1?[]:e.reduce((function(e,t){return t.highlight?[].concat(Object(c.a)(e),[t.highlight]):e}),[])},i=function(e){for(var t=e.packageTags,n=e.keywords,o=new Array,i=new Set,s=0,l=[].concat(Object(c.a)(function(e){return(null!==e&&void 0!==e?e:[]).filter((function(e){var t;return Boolean(null===(t=e.keyword)||void 0===t?void 0:t.label)})).map((function(e){var t;return Object(a.a)(Object(a.a)({},e),{},{id:null===(t=e.keyword)||void 0===t?void 0:t.label})}))}(t)),Object(c.a)(function(e){return!e||e.length<1?[]:e.filter((function(e){return Boolean(e)&&!r.a.has(e)})).map((function(e){return{id:e,keyword:{label:e}}}))}(n)));s<l.length;s++){var d=l[s],u=d.keyword.label.toLowerCase();i.has(u)||(o.push(d),i.add(u))}return o}},217:function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return i}));var a=n(15),c=function(e,t){return t?"".concat(t,"/").concat(e):e},r=function(e,t,n){var r="".concat(a.a.PACKAGES_PREFIX,"/"),o=c(e,n),i="/v".concat(t);return"".concat(r).concat(o).concat(i)},o=function(e){var t=e;return(t.startsWith("~")||t.startsWith("^"))&&(t=t.substring(1)),t},i=function(e,t){var n=e.packages.filter((function(e){return e.name===t}));return n.length>1?n.sort((function(e,t){var n=new Date(e.metadata.date);return new Date(t.metadata.date).getTime()-n.getTime()}))[0]:n[0]}},222:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0),c=n(21),r=function(){var e=Object(c.h)().search;return Object(a.useMemo)((function(){return new URLSearchParams(e)}),[e])}},229:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(86),c=function(e){var t=Object(a.b)().data;return(null!==t&&void 0!==t?t:{})[e]}},230:function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var a=n(18),c=n(0),r=n(21),o=n(106),i=n(15),s=n(222),l=o.d.TypeScript,d="preferred-language",u=function(e){return null!=e&&o.e.has(e)},b=function(e){if(u(e))return e;try{var t,n=null!==(t=localStorage.getItem(d))&&void 0!==t?t:"";if(u(n))return n}catch(a){}return l},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.updateUrl,n=e.updateSaved,o=Object(r.h)(),l=o.pathname,j=o.hash,h=Object(r.g)(),p=h.replace,O=Object(s.a)(),f=O.get(i.b.LANGUAGE),m=Object(c.useState)((function(){return b(f)})),v=Object(a.a)(m,2),g=v[0],x=v[1];Object(c.useEffect)((function(){u(f)&&f!==g&&x(f)}),[f]),Object(c.useEffect)((function(){f!==g&&t&&(O.set(i.b.LANGUAGE,g),p({pathname:l,hash:j,search:O.toString()}))}),[g,t]);var w=Object(c.useCallback)((function(e){if(x(e),n)try{localStorage.setItem(d,e)}catch(t){}}),[n]);return Object(c.useMemo)((function(){return[g,w]}),[g,w])}},241:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(6),c=n(20),r=n(3),o=n(123),i=n(597),s=n(2),l=["date","format","formattedDate"],d=Object(r.e)((function(e,t){var n=e.date,r=e.format,d=e.formattedDate,u=Object(c.a)(e,l);return Object(s.jsx)(o.b,Object(a.a)(Object(a.a)({as:"time",dateTime:n.toISOString(),ref:t},u),{},{children:null!==d&&void 0!==d?d:Object(i.a)(n,null!==r&&void 0!==r?r:"")}))}));d.displayName="Time"},242:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(123),c=n(129),r=n(2),o=function(e){var t=e.label,n=e.color,o=e.icon;return Object(r.jsxs)(a.p,{align:"center",direction:"row",spacing:2,children:[Object(r.jsx)(c.a,{alt:"".concat(t," icon"),src:o,w:4}),Object(r.jsx)(a.q,{color:n,fontWeight:"bold",children:t})]})}},243:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(6),c=n(20),r=n(146),o=n(81),i=n(40),s=n(2),l=["children","value","label","zIndex"],d=function(e){var t=e.children,n=e.value,d=e.label,u=void 0===d?n:d,b=e.zIndex,j=Object(c.a)(e,l);return Object(s.jsx)(i.a,{"aria-label":"Tag: ".concat(u),to:Object(o.c)({keywords:[n]}),zIndex:b,children:Object(s.jsx)(r.a,Object(a.a)(Object(a.a)({_hover:{textDecoration:"underline"}},j),{},{children:Object(s.jsx)(r.b,{children:t})}))})}},244:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(126),c=n(106),r=n(2),o=function(e){var t=e.children,n=e.language,o=c.e.has(n),i=c.b[n],s=o?"Click to view documentation in ".concat(i):"Documentation support for ".concat(i," is coming soon!");return Object(r.jsx)(a.a,{hasArrow:!0,label:s,placement:"top-start",children:Object(r.jsx)("span",{children:t})})}},263:function(e,t,n){"use strict";n.r(t),n.d(t,"NotFound",(function(){return p})),n.d(t,"default",(function(){return p}));var a=n(123),c=n(125),r=n(26),o=n(206),i=n(6),s=n(20),l=n(3),d=n(129),u=n(2),b=["sources"],j=Object(l.e)((function(e,t){var n=e.sources,c=Object(s.a)(e,b);return Object(u.jsxs)(a.b,{as:"picture",children:[null===n||void 0===n?void 0:n.map((function(e,t){return Object(u.jsx)("source",{media:e.media,srcSet:e.srcSet},t)})),Object(u.jsx)(d.a,Object(i.a)({ref:t},c))]})}));j.displayName="Picture";var h={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"},p=function(){return Object(u.jsx)(o.a,{meta:{title:"Not Found",description:"Oops! The page you were looking for does not exist"},pageName:"notFound",children:Object(u.jsxs)(a.c,{h:"100%",position:"relative",w:"100%",children:[Object(u.jsx)(j,{alt:"",inset:0,position:"absolute",sources:h.optimal,src:h.fallback,zIndex:"hide"}),Object(u.jsxs)(a.f,{align:"center",direction:"column",justify:"center",children:[Object(u.jsx)(j,{alt:"404 Image",sources:[{srcSet:"/assets/robot.webp"}],src:"/assets/robot.png"}),Object(u.jsx)(c.a,{as:r.b,colorScheme:"blue",to:"/",children:"Take Me Home"})]})]})})}},595:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return Xt}));var a=n(21),c=n(263),r=n(18),o=n(123),i=n(144),s=n(0),l=n(206),d=n(217),u=n(40),b=n(67),j=n(81),h=n(6),p=n(48),O=n(32),f=n.n(O),m=n(57),v=n(15),g=function(){var e=Object(m.a)(f.a.mark((function e(t,n,a){var c,r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c="".concat(Object(d.b)(t,n,a)).concat(v.a.ASSEMBLY_SUFFIX),e.next=3,fetch(c);case 3:if((r=e.sent).ok){e.next=6;break}throw new Error("Failed fetching assembly for ".concat(c,": ").concat(r.statusText));case 6:return e.abrupt("return",r.json());case 7:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),x=function(){var e=Object(m.a)(f.a.mark((function e(t,n,a,c,r){var o,i,s,l,u;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o="/docs-".concat(r?"".concat(r,"-"):"").concat(a,".md"),i="".concat(Object(d.b)(t,n,c)).concat(o),e.next=4,fetch(i);case 4:if((s=e.sent).ok){e.next=7;break}throw new Error("Failed fetching documentation for ".concat(i,": ").concat(s.statusText));case 7:if(l="text/markdown",(u=s.headers.get("Content-Type"))&&u.includes(l)){e.next=11;break}throw new Error("Invalid content type: ".concat(u,". Expected ").concat(l,'"'));case 11:return e.abrupt("return",s.text());case 12:case"end":return e.stop()}}),e)})));return function(t,n,a,c,r){return e.apply(this,arguments)}}(),w=function(){var e=Object(m.a)(f.a.mark((function e(t,n,a){var c,r,o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(c=n).startsWith("^")&&(c=c.substring(1,c.length)),r="".concat(Object(d.b)(t,n,a)).concat(v.a.METADATA_SUFFIX),e.next=5,fetch(r);case 5:if((o=e.sent).ok){e.next=8;break}throw new Error("Failed fetching metadata for ".concat(r,": ").concat(o.statusText));case 8:return e.abrupt("return",o.json());case 9:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),y=n(106),k=n(230),C=n(222),S=n(10),L=n(30),T=n(295),I=n.n(T),A=function(e){return e.toLowerCase().replace(/[^a-zA-Z0-9 ]/g,"").replace(/ /g,"-")},R=function e(t,n){var a=t[t.length-1];return a&&a.level<n.level?(a.children=e(a.children,n),t):(t.push(n),t)},W=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=new RegExp("(`{3}[\\s\\S]*?(?:`{3})|^#{1,".concat(t,"}[^#].*)"),"gm");return e.split(n).reduce((function(e,t){var n=e[e.length-1];return t.startsWith("#")||(null===n||void 0===n?void 0:n.startsWith("#"))?[].concat(Object(L.a)(e),[t]):(e[e.length-1]+=t,e)}),[])},z=function(e){var t,n,a,c,o=(null!==(t=e.match(/(\S+)\s*=\s*(\"?)([^"]*)(\2|\s|$)/g))&&void 0!==t?t:[]).reduce((function(e,t){var n,a=t.split("="),c=Object(r.a)(a,2),o=c[0],i=c[1],s=null!==(n=/['"](.*?)['"]/.exec(i))&&void 0!==n?n:[],l=Object(r.a)(s,2),d=(l[0],l[1]);return Object(h.a)(Object(h.a)({},e),{},Object(S.a)({},o,d))}),{}),i=null!==(n=/^#*\s*(?:<a\s.*?(?:\/>|<\/a>))?\s*([^<]+?)\s*(?:<|$)/.exec(e))&&void 0!==n?n:[e,e],s=Object(r.a)(i,2),l=(s[0],s[1].replace(/\[([^\]]+)\](?:\([^)]+\)|\[[^\]]+\])/g,"$1").replace(/:\+1:|:-1:|:[\w-]+:/g,(function(e){var t;return null!==(t=I.a.get(e))&&void 0!==t?t:e}))),d=null!==(a=o["data-heading-title"])&&void 0!==a?a:l;return{id:null!==(c=o["data-heading-id"])&&void 0!==c?c:encodeURIComponent(A(d)),title:d}},E=function(e,t){var n=t.scope,a=t.language,c=t.name,r=t.version,o=t.submodule,i=n?"".concat(n,"/").concat(c):"".concat(c),s="/packages/".concat(i,"/v/").concat(r),l="?".concat(v.b.LANGUAGE,"=").concat(a);o&&(l+="&submodule=".concat(o));var d='# API Reference <span data-heading-title="API Reference" data-heading-id="api-reference"></span>',u=e.split(d),b=u.length>1?u.pop():"",j=u.join(d),p=W(b,3),O=W(j),f=[d.trim()].concat(Object(L.a)(null!==p&&void 0!==p?p:[])),m="".concat(s).concat(l),g=O.reduce((function(e,t){if(t.startsWith("#")){var n,a,c=z(t),r=c.id,o=c.title,i=null!==(n=null===(a=t.match(/(#)/gm))||void 0===a?void 0:a.length)&&void 0!==n?n:1,s=function(e){return(e.endsWith(".")||e.endsWith(":"))&&(e=e.slice(0,-1)),e}(o),l={level:i,id:r,title:s,path:"".concat(m,"#").concat(r),children:[]};return R(e,l)}return e}),[]);1===g.length&&(g=g[0].children);var x,w,y=[].concat([{level:1,id:"Readme",title:"Readme",path:m,children:g}]),k={};return null===f||void 0===f||f.forEach((function(e){var t,n,a,c=e.match(/(^#{1,3}[^#].*)/g),r=null!==(t=null===(n=e.match(/(#)/gm))||void 0===n?void 0:n.length)&&void 0!==t?t:1;if(null===c||void 0===c?void 0:c.length){var o=z(e),i=o.id,d=o.title,u=3===r?(a=i,"".concat(s,"/api/").concat(a).concat(l)):void 0,b=Object(h.a)({level:r,id:i,title:d,children:[]},u?{path:u}:{});y=R(y,b),x={id:i,title:d},w=r}else 3===w&&(k[x.id]={title:x.title,content:e})})),{readme:j,apiReference:k,menuItems:y}},F=n(2),D=Object(s.createContext)(void 0),B=function(){var e=Object(s.useContext)(D);if(!e)throw new Error("This component must be a child of a <PackageStateProvider />");return e},P=function(e){var t,n,o,i,l,d=e.children,u=Object(a.i)(),b=u.name,j=u.scope,O=u.version,f="".concat(j,"/").concat(b,"/v").concat(O),m=Object(k.a)(),S=Object(r.a)(m,1)[0],L=null!==(t=Object(C.a)().get(v.b.SUBMODULE))&&void 0!==t?t:"",T=Object(p.useQuery)("".concat(f,"-docs-").concat(S),(function(){return x(b,O,y.f[S],j,L)})),I=Object(p.useQuery)("".concat(f,"-assembly"),(function(){return g(b,O,j)})),A=Object(p.useQuery)("".concat(f,"-metadata"),(function(){return w(b,O,j)})),R="".concat(j?"".concat(j,"/").concat(b):b," ").concat(O),W=null!==(n=null===(o=I.data)||void 0===o?void 0:o.description)&&void 0!==n?n:"",z=Boolean(T.error||I.error),B=Boolean(!T.isLoading&&!I.isLoading&&T.data&&I.data),P=Boolean(S===y.d.TypeScript||I.isLoading||I.error||null!=(null===(i=I.data)||void 0===i||null===(l=i.targets)||void 0===l?void 0:l[S.toString()])),M=Boolean(!A.isLoading&&(I.isLoading||T.isLoading)),U=Object(s.useMemo)((function(){return T.data?E(T.data,{scope:j,name:b,version:O,language:S,submodule:L}):{menuItems:[]}}),[T.data,b,j,O,S,L]);return I.error?Object(F.jsx)(c.NotFound,{}):Object(F.jsx)(D.Provider,{value:Object(h.a)({assembly:I,hasDocs:B,hasError:z,isLoadingDocs:M,isSupported:P,language:S,markdown:T,metadata:A,name:b,pageDescription:W,pageTitle:R,scope:j,version:O},U),children:d})},M=n(55),U=Object(M.a)("package-page",["page","feedbackLinks","reportLink","reportAbuseLink","githubLink","dependenciesTab","dependenciesList","dependenciesLink","description","markdown","selectVersionButton","selectVersionDropdown","selectVersionItem"]),N=function(){var e,t=B().assembly.data;if(!t)return Object(F.jsx)(b.a,{});var n=Object.entries(null!==(e=t.dependencies)&&void 0!==e?e:{});return n.length?Object(F.jsx)(o.p,{"data-testid":U.dependenciesList,direction:"row",justify:"center",mx:"auto",spacing:4,wrap:"wrap",children:n.map((function(e){var t=Object(r.a)(e,2),n=t[0],a=t[1];return Object(F.jsxs)(u.a,{_first:{ml:4},"data-testid":U.dependenciesLink,fontWeight:"semibold",p:2,to:Object(j.a)({name:n,version:Object(d.d)(a)}),children:[n," - ",a]},"".concat(n,"-").concat(a))}))}):Object(F.jsx)(o.c,{children:"This library does not have any known dependencies"})},H=n(29),q=n(145),G=n(54),V=n(62),Z=n(8),X=function(e){return Object(F.jsxs)(Z.a,Object(h.a)(Object(h.a)({},e),{},{children:[Object(F.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"}),Object(F.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"})]}))},_={h:6,ml:2,w:6},$=function(){var e,t=B(),n=Object(q.a)({base:"horizontal",md:"vertical"}),a=Object(F.jsx)(o.e,{borderColor:"white",mr:6,orientation:n}),c=t.metadata.data,r=t.assembly.data;if(!r||!c)return null;var i,s=null!==(e=null===r||void 0===r?void 0:r.repository)&&void 0!==e?e:{},l=void 0;"git"===s.type&&((l=(null===(i=s.url)||void 0===i?void 0:i.endsWith(".git"))?s.url.replace(".git",""):s.url).endsWith("/")&&(l=l.slice(0,l.length-1)));return Object(F.jsxs)(o.p,{align:"center",backgroundColor:"blue.600",borderTop:"1px solid",borderTopColor:"blue.50",color:"white","data-testid":U.feedbackLinks,direction:{base:"column",md:"row"},justify:"space-evenly",px:8,py:5,spacing:4,children:[l&&Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(G.a,{color:"currentcolor","data-testid":U.githubLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"".concat(l,"/issues"),rightIcon:Object(F.jsx)(X,Object(h.a)({color:"white"},_)),variant:"solid",children:"Provide feedback to publisher"}),a]}),Object(F.jsx)(G.a,{color:"currentcolor","data-testid":U.reportLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"".concat(V.a,"/issues/new"),rightIcon:Object(F.jsx)(X,Object(h.a)({color:"white"},_)),children:"Provide feedback to Construct Hub"}),a,Object(F.jsx)(G.a,{color:"currentcolor","data-testid":U.reportAbuseLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"mailto:abuse@amazonaws.com?subject=".concat(encodeURIComponent("ConstructHub - Report of abusive package: ".concat(null===r||void 0===r?void 0:r.name))),rightIcon:Object(F.jsx)(H.i,Object(h.a)({},_)),children:"Report abuse"})]})},J=n(11),Q=n(125),K={color:"gray.900",h:4,w:4},Y=function(e){var t=e.children,n=e.path,a=e.title,c=e.showToggle,r={_hover:{bg:"rgba(0, 124, 253, 0.05)"},overflow:"hidden",pl:1,py:c?2:1,marginLeft:c?0:1,fontWeight:c?"bold":void 0,textOverflow:"ellipsis",w:"100%"};return n?Object(F.jsx)(u.a,Object(h.a)(Object(h.a)({title:a,to:n},r),{},{children:t})):Object(F.jsx)(o.q,Object(h.a)(Object(h.a)({},r),{},{children:t}))},ee=function e(t){var n,c=t.children,r=t.title,i=t.path,l=t.level,d=t.onOpen,u=l<2,b=Object(J.g)({onOpen:d,defaultIsOpen:u}),j=Object(a.h)(),p=j.hash,O=j.pathname,f=new URL(null!==i&&void 0!==i?i:"",window.origin),m=(null===i||void 0===i?void 0:i.includes("/api/"))?f.pathname===O:f.hash&&p&&f.hash===p,v=(null!==(n=null===c||void 0===c?void 0:c.length)&&void 0!==n?n:0)>0,g=b.isOpen&&v,x=Object(s.useMemo)((function(){return null===c||void 0===c?void 0:c.map((function(t,n){return Object(s.createElement)(e,Object(h.a)(Object(h.a)({},t),{},{key:n,level:l+1,onOpen:b.onOpen}))}))}),[c,b.onOpen,l]);return Object(F.jsxs)(o.f,{direction:"column",children:[Object(F.jsxs)(o.f,{align:"center",color:m?"blue.500":"gray.800",children:[v&&Object(F.jsx)(Q.b,{"aria-label":"expand-toggle",borderRadius:"md",h:4,icon:b.isOpen?Object(F.jsx)(H.c,Object(h.a)({},K)):Object(F.jsx)(H.e,Object(h.a)({},K)),ml:-1,onClick:b.onToggle,size:"xs",variant:"link",w:0}),Object(F.jsx)(Y,{path:i,showToggle:v,title:r,children:r})]}),Object(F.jsx)(o.b,{_before:{bg:"gray.100",bottom:0,content:'""',left:0,position:"absolute",top:0,w:"1px"},display:g?"initial":"none",ml:2,mr:2,pl:2,position:"relative",children:x})]})},te=function(e){var t=e.items;return Object(F.jsx)(o.f,{direction:"column",maxWidth:"100%",children:t.map((function(e,t){return Object(s.createElement)(ee,Object(h.a)(Object(h.a)({},e),{},{key:t,level:0,onOpen:void 0}))}))})},ne=n(132),ae=n(138),ce=n(3),re=n(128),oe=n(136),ie=n(137),se=Object(ce.e)((function(e,t){var n=e.value,a=e.onChange,c=e.onSubmit,o=Object(s.useState)(n),i=Object(r.a)(o,2),l=i[0],d=i[1];return Object(ie.a)(l,{onChange:a}),Object(F.jsx)(oe.a,{"data-testid":"choose-submodule-search-form",onSubmit:c,children:Object(F.jsxs)(re.b,{children:[Object(F.jsx)(re.c,{children:Object(F.jsx)(H.m,{color:"gray.400"})}),Object(F.jsx)(re.a,{"data-testid":"choose-submodule-search-input",onChange:function(e){return d(e.target.value)},placeholder:"Search",ref:t,value:l,variant:"filled"})]})})}));se.displayName="SearchInput";var le=function(e){var t=e.inputValue,n=e.isOpen,c=e.onClose,r=e.onInputChange,i=e.submodules,l=Object(s.useRef)(null),d=Object(a.g)().push,u=Object(s.useCallback)((function(e){c(),d(e)}),[c,d]),b=Object(s.useCallback)((function(e){if(e.preventDefault(),i.length){var t=i[0].to;u(t)}}),[u,i]);return Object(F.jsx)(ne.g,{initialFocusRef:l,isOpen:n,onClose:c,children:Object(F.jsx)(ne.m,{children:Object(F.jsxs)(ne.j,{mx:4,children:[Object(F.jsx)(ne.i,{"data-testid":"choose-submodule-modal-close"}),Object(F.jsx)(ne.l,{"data-testid":"choose-submodule-modal-header",fontSize:"lg",fontWeight:"bold",children:"Choose a submodule"}),Object(F.jsxs)(ne.h,{"data-testid":"choose-submodule-modal-body",p:0,children:[Object(F.jsx)(o.b,{pb:4,px:4,children:Object(F.jsx)(se,{onChange:r,onSubmit:b,ref:l,value:t})}),Object(F.jsx)(o.e,{}),Object(F.jsx)(o.r,{"data-testid":"choose-submodule-modal-results",m:0,maxH:"50vh",overflow:"hidden auto",p:0,role:"listbox",tabIndex:-1,children:i.map((function(e){var t=e.name,n=e.to;return Object(F.jsx)(ae.a,{"data-testid":"choose-submodule-result",name:t,onClick:function(){return u(n)}},t)}))})]})]})})})},de=function(e){var t,n=e.assembly,c=Object(a.h)().pathname,i=Object(a.g)().push,l=Object(C.a)(),d=Object.keys(null!==(t=null===n||void 0===n?void 0:n.submodules)&&void 0!==t?t:{}),u=Object(J.g)(),b=u.isOpen,j=u.onOpen,h=u.onClose,p=l.get(v.b.SUBMODULE),O=p?"Submodule: ".concat(p):"Choose Submodule",f=Object(s.useState)(""),m=Object(r.a)(f,2),g=m[0],x=m[1],w=Object(s.useCallback)((function(e){var t=new URLSearchParams(l.toString());return t.set("submodule",e),"".concat(c,"?").concat(t)}),[c,l]),y=Object(s.useMemo)((function(){var e=d;return g&&(e=e.filter((function(e){return e.toLowerCase().includes(g.toLowerCase())}))),e.map((function(e){var t=e.split(".")[1];return{name:t,to:w(t)}}))}),[d,g,w]);return 0===d.length?null:Object(F.jsxs)(o.p,{spacing:4,w:"100%",children:[p&&Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(Q.a,{borderRadius:"none","data-testid":"choose-submodule-go-back",leftIcon:Object(F.jsx)(H.a,{"aria-label":"Back to construct root"}),onClick:function(){var e=l.get(v.b.LANGUAGE);i("".concat(c).concat(e?"?".concat(v.b.LANGUAGE,"=").concat(e):""))},title:"Back to construct root",variant:"link",children:null===n||void 0===n?void 0:n.name}),Object(F.jsx)(o.e,{})]}),Object(F.jsx)(Q.a,{borderRadius:"none",color:"blue.500","data-testid":"choose-submodule-search-trigger",flexGrow:1,onClick:j,rightIcon:Object(F.jsx)(H.c,{}),title:"Choose Submodule",variant:"link",children:O}),Object(F.jsx)(le,{inputValue:g,isOpen:b,onClose:h,onInputChange:x,submodules:y})]})},ue=n(303),be=n(392),je=n.n(be),he=n(486),pe=n.n(he),Oe=n(519),fe=n.n(Oe),me=n(590),ve=n(522),ge=n.n(ve),xe=n(20),we=n(592),ye=n(554),ke=["value"],Ce=Object(ce.e)((function(e,t){var n=e.value,a=Object(xe.a)(e,ke),c=Object(J.d)(n),r=c.hasCopied,o=c.onCopy;return Object(F.jsx)(Q.b,Object(h.a)({"aria-label":"Copy Button",color:"blue.500",colorScheme:"blue",h:6,icon:r?Object(F.jsx)(H.b,{color:"green.300"}):Object(F.jsx)(H.g,{}),minW:"auto",ml:1,onClick:o,ref:t,variant:"ghost",w:6},a))}));Ce.displayName="CopyButton";var Se,Le=function(e){var t=e.code,n=e.tokens,a=e.getLineProps,c=e.getTokenProps;return Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(o.f,{align:"center",bg:"rgba(0, 124, 253, 0.15)",borderTopRadius:"md",justify:"flex-end",px:2,py:1,children:Object(F.jsx)(Ce,{value:t})}),Object(F.jsx)(o.b,{overflowX:"auto",p:2,children:n.map((function(e,t){return Object(F.jsx)("div",Object(h.a)(Object(h.a)({},a({line:e,key:t})),{},{children:e.map((function(e,t){return Object(F.jsx)(o.b,Object(h.a)({as:"span",sx:{wordWrap:"normal"}},c({token:e,key:t})),t)}))}),t)}))})]})},Te=function(e){var t=e.code,n=e.tokens,a=e.getLineProps,c=e.getTokenProps;return Object(F.jsxs)(o.g,{p:3,templateColumns:"1fr min-content",w:"full",children:[Object(F.jsx)(o.b,{m:-3,maxW:"full",overflow:"auto",p:3,children:n.map((function(e,t){return Object(F.jsx)("div",Object(h.a)(Object(h.a)({},a({line:e,key:t})),{},{children:e.map((function(e,t){return Object(F.jsx)("span",Object(h.a)({},c({token:e,key:t})),t)}))}),t)}))}),Object(F.jsx)(o.f,{align:"center",ml:1,children:Object(F.jsx)(Ce,{value:t})})]})},Ie=["code","language"],Ae=function(e){var t=e.code,n=e.language,a=Object(xe.a)(e,Ie);return Object(F.jsx)(we.a,Object(h.a)(Object(h.a)({},we.b),{},{code:t,language:n,theme:ye.a,children:function(e){return Object(F.jsx)(o.b,Object(h.a)(Object(h.a)({as:"pre",border:"base",borderRadius:"md",boxShadow:"base",className:e.className,style:e.style},a),{},{children:e.tokens.length>1?Object(F.jsx)(Le,Object(h.a)(Object(h.a)({},e),{},{code:t})):Object(F.jsx)(Te,Object(h.a)(Object(h.a)({},e),{},{code:t}))}))}}))},Re=n(555),We=n.n(Re),ze=function e(t){return s.Children.toArray(t).reduce((function(t,n){return"string"===typeof n?t+n:"object"===typeof n&&"props"in n?t+e(n.props.children):t}),"").trim()},Ee=function(e){var t,n,a=e.level,c=e.children,r=["2xl","xl","lg","md","sm","xs"][a-1],i="h".concat(a),s=(new DOMParser).parseFromString(We.a.renderToStaticMarkup(c),"text/html").querySelector("span[data-heading-title][data-heading-id]"),l=null!==(t=null===s||void 0===s?void 0:s.dataset.headingTitle)&&void 0!==t?t:ze(c),d=null!==(n=null===s||void 0===s?void 0:s.dataset.headingId)&&void 0!==n?n:A(l);return Object(F.jsx)(F.Fragment,{children:Object(F.jsx)(o.i,{as:i,backgroundColor:5===a?"gray.50":void 0,borderBottom:"1px solid",borderBottomColor:"gray.100",color:"gray.800",level:a,marginBottom:4,marginTop:a>=4?"1.5em":4,paddingBottom:2,paddingTop:2,paddingX:a>=4?2:void 0,size:r,children:Object(F.jsx)(u.a,{"data-heading-id":"#".concat(d),"data-heading-level":a,"data-heading-title":l,id:d,replace:!0,sx:{"> code":{color:"blue.800",fontSize:"inherit"}},to:"#".concat(d),children:c})})})},Fe=n(129),De=n(147),Be=Object(M.a)("markdown",["container"]),Pe=["children","href"],Me={a:function(e){var t=e.children,n=e.href,a=Object(xe.a)(e,Pe),c=o.j;try{if(n&&n.startsWith("http"))if(new URL(n).hostname!==window.location.hostname){c=function(e){return Object(F.jsx)(G.a,Object(h.a)({},e))}}}catch(r){c=o.j}return Object(F.jsx)(c,Object(h.a)(Object(h.a)({color:"blue.500",href:n,sx:{"> img + svg":{display:"none"}}},a),{},{children:t}))},blockquote:function(e){var t=e.children;return Object(F.jsx)(o.b,{as:"blockquote",borderLeft:"5px solid",borderLeftColor:"gray.100",marginX:"2",px:"2",wordBreak:"break-word",children:t})},caption:De.b,code:function(e){var t=e.inline,n=e.children,a=e.language,c=void 0===a?"typescript":a;if(t)return Object(F.jsx)(o.d,{bg:"gray.50",border:"1px solid",borderColor:"gray.50",borderRadius:"md",marginTop:"md",mx:2,px:2,py:0,children:n});var r=s.Children.toArray(n).reduce((function(e,t){return"string"===typeof t?"".concat(e).concat(t):e}),"").trim();return Object(F.jsx)(Ae,{code:r,fontSize:"0.9rem",language:c})},em:function(e){var t=e.children;return Object(F.jsx)(o.b,{as:"em",fontStyle:"normal",fontWeight:"bold",children:t})},h1:Ee,h2:Ee,h3:Ee,h4:Ee,h5:Ee,h6:Ee,hr:function(){return Object(F.jsx)(F.Fragment,{})},img:function(e){return Object(F.jsx)(Fe.a,Object(h.a)({display:"inline-block"},e))},li:function(e){var t=e.children;return Object(F.jsx)(o.m,{lineHeight:"tall",marginX:2,sx:{"em:first-of-type":{fontSize:"small"},"&::marker":{color:"gray.400"},code:{fontSize:"small"}},children:t})},ol:function(e){var t=e.children;return Object(F.jsx)(o.n,{children:t})},p:function(e){var t=e.children;return Object(F.jsx)(o.q,{lineHeight:"1.5",mx:2,my:4,children:t})},pre:function(e){var t=e.children;return Object(F.jsx)(o.b,{as:"pre",children:t})},sup:function(e){var t=e.children,n=void 0,a="";if(Array.isArray(t)){var c=Object(r.a)(t,1)[0];"string"===typeof c&&(a=c)}return"Required"===a?n="orange.700":"Optional"===a&&(n="green.700"),Object(F.jsx)(o.b,{as:"sup",color:n,fontSize:"xs",ml:-1,top:-1,children:t})},table:function(e){var t=e.children;return Object(F.jsx)(o.b,{maxW:"100%",overflowX:"auto",children:Object(F.jsx)(De.a,{variant:"striped",children:t})})},tbody:De.c,td:De.d,tfoot:De.e,th:De.f,thead:De.g,tr:De.h,ul:function(e){var t=e.children;return Object(F.jsx)(o.r,{marginTop:2,padding:0,children:t})}},Ue=Object(h.a)({},ue);Ue.attributes.span=(null!==(Se=Ue.attributes.span)&&void 0!==Se?Se:[]).concat(["dataHeadingTitle","dataHeadingId"]);var Ne=[[pe.a],[fe.a,Ue]],He=[ge.a,me.a],qe=/^(?:(?:git@)?github\.com:|(?:https?:\/\/)github\.com\/)([^/]+)\/([^/]+)(?:\.git)?$/,Ge=function(e){var t=e.children,n=function(e){var t=e.type,n=e.url,a=e.directory;if("git"===t){var c=qe.exec(n);if(null!=c){var o=Object(r.a)(c,3);return{owner:o[1],repo:o[2],directory:a}}}}(e.repository),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HEAD";return null==n?je.a.uriTransformer:function(a){var c=je.a.uriTransformer(a),o=Object(r.a)(c,1)[0];if("#"===o||"/"===o)return c;if(c.includes("://"))return c;var i=n.owner,s=n.repo.replace(/\.git$/,""),l=n.directory?"".concat(n.directory,"/"):"";return"https://".concat(e,"/").concat(i,"/").concat(s,"/").concat(t,"/").concat(l).concat(c)}};return Object(F.jsx)(o.b,{"data-testid":Be.container,px:8,children:Object(F.jsx)(je.a,{components:Me,rehypePlugins:Ne,remarkPlugins:He,transformImageUri:a("raw.githubusercontent.com"),transformLinkUri:a("github.com","blob/HEAD"),children:t})})},Ve=function(){var e=B(),t=e.isLoadingDocs,n=e.readme,a=e.assembly.data;return!t&&n&&a?Object(F.jsx)(Ge,{repository:a.repository,children:n}):null},Ze=n(26),Xe=function(){var e=B().language,t=Object(F.jsx)(G.a,{href:"".concat(V.a,"/issues/new"),children:"issue"});return Object(F.jsxs)(o.q,{align:"center",fontSize:"xl",fontStyle:"oblique",px:4,wordBreak:"break-word",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"," ",t,"."]})},_e=function(e){var t=e.rootId,n=Object(a.h)(),c=n.pathname,r=n.hash,i=n.search,s=B(),l=s.isLoadingDocs,d=s.assembly.data,u=function(){var e=Object(a.i)().typeId,t=B().apiReference;if(e)return null===t||void 0===t?void 0:t[e]}();if(l)return null;if(!u||!d)return Object(F.jsx)(Xe,{});var b=u.title,j=u.content,h="".concat(c).concat(i,"#").concat(r);return Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(o.i,{as:"h2",p:8,size:"2xl",children:Object(F.jsx)(Ze.c,{id:t,to:h,children:b})}),Object(F.jsx)(Ge,{repository:d.repository,children:j})]})},$e="4.5rem",Je="apidocs_header",Qe="api",Ke=function(){var e,t=B().assembly.data;return Object.keys(null!==(e=null===t||void 0===t?void 0:t.submodules)&&void 0!==e?e:{}).length>0?Object(F.jsx)(o.f,{borderBottom:"1px solid",borderColor:"blue.50",justify:"center",py:4,children:Object(F.jsx)(de,{assembly:t})}):null},Ye=function(){var e=Object(a.j)().path,t=B().menuItems,n=Object(a.h)(),c=n.hash,r=n.pathname,i=n.search;return Object(s.useEffect)((function(){if(c){var e=document.querySelector('[data-heading-id="'.concat(c,'"]'));null===e||void 0===e||e.scrollIntoView(!0)}else if(function(e){var t=e.split("/");return t[t.length-2]===Qe}(r)){var t=document.getElementById(Je);null===t||void 0===t||t.scrollIntoView(!0)}else window.scrollTo(0,0)})),Object(F.jsxs)(o.g,{bg:"white",columnGap:4,h:"100%",templateColumns:{base:"1fr",md:"1fr 3fr"},width:"100%",children:[Object(F.jsxs)(o.f,{alignSelf:"stretch",borderRight:"1px solid",borderRightColor:"blue.50",direction:"column",display:{base:"none",md:"flex"},maxHeight:"calc(100vh - ".concat($e,")"),overflow:"hidden auto",pl:6,position:"sticky",pr:4,top:$e,children:[Object(F.jsx)(Ke,{}),Object(F.jsx)(o.b,{overflowY:"auto",py:4,children:Object(F.jsx)(te,{items:t})})]}),Object(F.jsx)(o.b,{h:"max-content",maxWidth:"100%",overflow:"hidden",py:4,sx:{a:{scrollMarginTop:$e}},children:Object(F.jsxs)(a.d,{children:[Object(F.jsx)(a.a,{exact:!0,from:"".concat(e,"/").concat(Qe),to:{pathname:e,search:i}}),Object(F.jsx)(a.b,{exact:!0,path:e,children:Object(F.jsx)(Ve,{})}),Object(F.jsx)(a.b,{exact:!0,path:"".concat(e,"/").concat(Qe,"/:typeId"),children:Object(F.jsx)(_e,{rootId:Je})})]})})]})},et=n(91),tt=n(244),nt=function(e){var t=e.targetLanguages,n=e.selectedLanguage,c=B(),r=c.name,i=c.scope,s=c.version,l=Object(a.g)().push;return Object(F.jsx)(o.p,{align:"center","data-testid":"language-bar",direction:"row",spacing:2,children:Object(L.a)(t).sort((function(e,t){return y.a.indexOf(e)-y.a.indexOf(t)})).map((function(e){var t=!y.e.has(e),a=e===n,c=y.c[e].icon;return Object(F.jsx)(tt.a,{language:e,children:Object(F.jsx)(Q.b,{"aria-label":"Select ".concat(e," icon"),border:a?"1px solid":"none",borderColor:"blue.500",borderRadius:"lg",boxShadow:"base",colorScheme:"blue",cursor:t?"not-allowed":"pointer","data-testid":"language-".concat(e),disabled:t,icon:Object(F.jsx)(c,{"aria-label":"".concat(e,"-icon"),borderRadius:"sm",height:[4,5,6],width:[4,5,6]}),onClick:function(){a||l(Object(j.a)({name:Object(d.c)(r,i),version:s,language:e}))},p:1,variant:"outline",w:"max-content"})},e)}))})},at=new Set(y.a),ct=function(){var e,t=B(),n=t.assembly.data,a=t.language,c=Object(k.a)({updateSaved:!0,updateUrl:!0}),o=Object(r.a)(c,2)[1],i=Object(k.a)({updateUrl:!0}),l=Object(r.a)(i,2)[1],d=[].concat(Object(L.a)(Object.keys(null!==(e=null===n||void 0===n?void 0:n.targets)&&void 0!==e?e:{})),[y.d.TypeScript]),u=d.includes(a);Object(s.useEffect)((function(){u||l(y.d.TypeScript)}),[u]);var b={selectedLanguage:u?a:y.d.TypeScript,setSelectedLanguage:o,targetLanguages:d.filter((function(e){return at.has(e)}))};return Object(F.jsx)(nt,Object(h.a)({},b))},rt=n(126),ot=n(44),it=n(344),st=n.n(it),lt=n(242),dt=["license"],ut=Object(ce.e)((function(e,t){var n=e.license,a=Object(xe.a)(e,dt),c=st.a[n].url;return Object(F.jsx)(G.a,Object(h.a)(Object(h.a)({href:c,ref:t},a),{},{children:n}))}));ut.displayName="LicenseLink";var bt=n(241),jt="MMM dd, yyyy 'at' h:mmaaa",ht=n(85),pt=n(229),Ot=n(216),ft=["openText","closeText","isOpen"],mt=function(e){var t=e.openText,n=e.closeText,a=e.isOpen,c=Object(xe.a)(e,ft);return Object(F.jsx)(Q.a,Object(h.a)(Object(h.a)({colorScheme:"blue",leftIcon:a?Object(F.jsx)(H.f,{}):Object(F.jsx)(H.c,{}),variant:"link"},c),{},{children:a?n:t}))},vt=function(e){var t=e.children,n=e.label,a=e.tooltip;return Object(F.jsx)(rt.a,{hasArrow:!0,isDisabled:!a,label:a,placement:"left",children:Object(F.jsxs)(o.q,{fontWeight:"bold",children:[n," ",Object(F.jsx)(o.b,{as:"span",fontWeight:"normal",children:t})]})})},gt=function(e){var t=e.downloads;return Object(F.jsx)(vt,{label:Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(o.b,{as:"span",mr:1,children:Object(F.jsx)(H.h,{})}),t.toLocaleString()]}),tooltip:"Download numbers are periodically sourced from the npm registry",children:"Weekly downloads"})},xt=function(e){var t=B(),n=Object(ht.b)().data,a=Object(J.g)({defaultIsOpen:!0}),c=Object(pt.a)("packageLinks"),i=t.assembly.data,l=t.metadata.data,d=t.scope?"".concat(t.scope,"/").concat(t.name):t.name,b=Object(Ot.a)(null===l||void 0===l?void 0:l.packageTags),p=Object(r.a)(b,1)[0],O=function(e){var t=e.assembly,n=e.metadata,a=e.name,c=e.packageLinks,r=e.stats,o=[];if(t||n||r||c){var i,l,d,b,h,p=null===r||void 0===r||null===(i=r.packages)||void 0===i||null===(l=i[a])||void 0===l||null===(d=l.downloads)||void 0===d?void 0:d.npm;void 0!==p&&o.push(Object(F.jsx)(gt,{downloads:p}));var O=null===t||void 0===t?void 0:t.author.name,f=null===t||void 0===t?void 0:t.repository,m=null===t||void 0===t?void 0:t.license;if(O){var v=Object(F.jsx)(u.a,{color:"blue.500",to:Object(j.c)({query:O}),children:O});o.push(Object(F.jsx)(vt,{label:"Author",children:v}))}var g=null===n||void 0===n?void 0:n.date;if(g){var x=Object(F.jsx)(bt.a,{date:new Date(g),fontWeight:"normal",format:jt});o.push(Object(F.jsx)(vt,{label:"Published",children:x}))}if(f){var w=Object(j.b)(f.url);if(w){var y=Object(F.jsx)(G.a,{href:w.url,children:w.hostname});o.push(Object(F.jsx)(vt,{label:"Repository",children:y}))}}if(m&&m in st.a){var k=Object(F.jsx)(ut,{license:m});o.push(Object(F.jsx)(vt,{label:"License",children:k}))}(null===c||void 0===c?void 0:c.length)&&c.forEach((function(e){var t,a=e.linkLabel,c=e.configKey,r=e.linkText,i=(null!==(t=null===n||void 0===n?void 0:n.packageLinks)&&void 0!==t?t:{})[c];if(i){var s=Object(F.jsx)(G.a,{href:i,children:null!==r&&void 0!==r?r:i});o.push(Object(F.jsxs)(vt,{label:a,children:[a,": ",s]}))}}));var C=null!==(b=null===n||void 0===n||null===(h=n.links)||void 0===h?void 0:h.npm)&&void 0!==b?b:"https://www.npmjs.com/package/".concat(null===t||void 0===t?void 0:t.name,"/v/").concat(null===t||void 0===t?void 0:t.version);if(C){var S=Object(F.jsx)(G.a,{href:C,children:new URL(C).hostname});o.push(Object(F.jsx)(vt,{label:"Registry",children:S}))}}return o.map((function(e,t){return Object(F.jsx)(s.Fragment,{children:e},t)}))}({assembly:i,metadata:l,name:d,packageLinks:c,stats:n});if(!O.length)return null;var f=O.slice(0,2),m=O.slice(2,O.length);return Object(F.jsxs)(o.p,Object(h.a)(Object(h.a)({align:"start",color:"gray.600",fontSize:".75rem",mt:2,spacing:2},e),{},{children:[p&&Object(F.jsx)(lt.a,Object(h.a)({},p)),f,m.length>0&&Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(ot.a,{animateOpacity:!0,in:a.isOpen,children:Object(F.jsx)(o.p,{spacing:2,children:m})}),Object(F.jsx)(mt,{closeText:"See fewer details (".concat(f.length,")"),fontSize:"inherit",isOpen:a.isOpen,onClick:a.onToggle,openText:"See more details (".concat(m.length,")")})]})]}))},wt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map((function(e){return'"'.concat(e.map((function(e){return null!==e&&void 0!==e?e:"."})).join(" "),'"')})).join(" ")},yt="heading",kt="install",Ct="languages",St="meta",Lt=wt([yt],[St],[Ct],[kt]),Tt=wt([yt,Ct,kt],[yt,null,St]),It=function(e){var t=e.children;return Object(F.jsx)(o.g,{columnGap:{md:6,lg:10},pt:{base:3,lg:6},px:{base:5,md:6,lg:10},rowGap:{base:4,lg:0},templateAreas:{base:Lt,lg:Tt},templateColumns:{base:"1fr",lg:"1fr auto 15rem"},templateRows:{lg:"auto 1fr"},children:t})},At=n(111),Rt=n(243),Wt=n(127),zt=n(558),Et=n.n(zt),Ft=n(83),Dt=function(){var e=B(),t=e.scope,n=e.name,c=e.version,r=e.language,o=t?"".concat(t,"/").concat(n):n,i=Object(Ft.b)(),l=Object(a.g)().push,d=i.findByName(o),u=Object(s.useMemo)((function(){var e=d.map((function(e){return e.version})),t=Object(L.a)(new Set([].concat(Object(L.a)(e),[c])));return t.sort(Et.a.compare),t}),[d,c]);return Object(F.jsxs)(Wt.a,{children:[Object(F.jsx)(Wt.b,{as:Q.a,color:"blue.500","data-testid":U.selectVersionButton,mt:1,py:1,rightIcon:Object(F.jsx)(H.c,{}),variant:"link",children:"v".concat(c)}),Object(F.jsx)(Wt.f,{"data-testid":U.selectVersionDropdown,minW:"180",zIndex:"sticky",children:u.map((function(e){return Object(F.jsx)(Wt.e,{"data-testid":U.selectVersionItem,"data-value":e,onClick:function(){return t=e,void l(Object(j.a)({name:o,version:t,language:r}));var t},children:"v".concat(e)},e)}))})]})},Bt=["assembly","name","description","metadata","version"],Pt=function(e){var t,n,a,c=e.assembly,r=e.name,i=e.description,s=e.metadata,l=(e.version,Object(xe.a)(e,Bt)),d=Object(Ot.b)({packageTags:null!==(t=null===s||void 0===s?void 0:s.packageTags)&&void 0!==t?t:[],keywords:null!==(n=null===c||void 0===c?void 0:c.keywords)&&void 0!==n?n:[]}),u=null!==(a=s.constructFramework)&&void 0!==a?a:{};return Object(F.jsxs)(o.p,Object(h.a)(Object(h.a)({lineHeight:"1.5",maxW:"full",overflow:"hidden",spacing:2},l),{},{children:[Object(F.jsxs)(o.f,{align:"center",wrap:"wrap",children:[Object(F.jsx)(o.i,{color:"blue.800",flexShrink:1,fontSize:"1.5rem",isTruncated:!0,mr:4,children:r}),Object(F.jsx)(Dt,{})]}),Object(F.jsx)(o.q,{"data-testid":U.description,fontSize:"1rem",children:i}),Object(F.jsxs)(o.f,{align:"center",direction:"row",pt:1,sx:{gap:"0.5rem"},wrap:"wrap",children:[Object(F.jsx)(At.a,Object(h.a)({},u)),d.map((function(e){var t=e.id,n=e.keyword,a=(n=void 0===n?{}:n).label,c=n.color;return Object(F.jsx)(Rt.a,{value:t,variant:c,children:a},t)}))]})]}))},Mt=function(e){var t=B(),n=t.language,a=t.assembly.data,c=Object(J.g)();if(!a)return null;var r=function(e){var t=e.language,n=e.assembly,a=n.version;if(t===y.d.TypeScript){var c=n.name;return"npm install ".concat(c,"@").concat(a)}if(t===y.d.Python){var r,o,i=null===(r=n.targets)||void 0===r||null===(o=r.python)||void 0===o?void 0:o.distName;if(!i)return;return"pip install ".concat(i,"==").concat(a)}if(t===y.d.Java){var s,l,d,u,b,j,h=null===(s=n.targets)||void 0===s||null===(l=s.java)||void 0===l||null===(d=l.maven)||void 0===d?void 0:d.groupId,p=null===(u=n.targets)||void 0===u||null===(b=u.java)||void 0===b||null===(j=b.maven)||void 0===j?void 0:j.artifactId;if(!h||!p)return;return["// add this to your pom.xml","<dependency>"," <groupId>".concat(h,"</groupId>")," <artifactId>".concat(p,"</artifactId>")," <version>".concat(a,"</version>"),"</dependency>"].join("\n")}if(t===y.d.DotNet){var O,f,m=null===(O=n.targets)||void 0===O||null===(f=O.dotnet)||void 0===f?void 0:f.packageId;if(!m)return;return"dotnet add package ".concat(m," --version ").concat(a)}}({language:n,assembly:a});return r&&n?Object(F.jsx)(o.f,Object(h.a)(Object(h.a)({align:"start",direction:"column",fontSize:".75rem",w:"full"},e),{},{children:n===y.d.Java?Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(mt,{closeText:"Hide",fontSize:"inherit",isOpen:c.isOpen,mt:2,onClick:c.onToggle,openText:"Install"}),Object(F.jsx)(o.b,{maxW:"full",overflow:"hidden",children:Object(F.jsx)(ot.a,{in:c.isOpen,children:Object(F.jsx)(Ae,{boxShadow:"none",code:r,fontSize:"inherit",language:n,mt:2})})})]}):Object(F.jsx)(Ae,{boxShadow:"none",code:r,fontSize:"inherit",language:n,lineHeight:"2",w:"full"})})):null},Ut=function(){var e=B(),t=e.assembly,n=e.metadata,a=e.version,c=t.data,r=n.data;return c&&r?Object(F.jsxs)(It,{children:[Object(F.jsx)(Pt,{assembly:c,description:c.description,gridArea:yt,metadata:r,name:c.name,version:a}),Object(F.jsx)(o.f,{align:"start",gridArea:Ct,children:Object(F.jsx)(ct,{})}),Object(F.jsxs)(o.f,{direction:"column",gridArea:St,children:[Object(F.jsx)(o.e,{borderBottom:"base",display:{md:"none"},mb:2}),Object(F.jsx)(xt,{}),Object(F.jsx)(o.e,{borderBottom:"base",display:{md:"none"},mt:2})]}),Object(F.jsx)(o.f,{align:"start",gridArea:kt,children:Object(F.jsx)(Mt,{})})]}):Object(F.jsx)(et.a,{mx:"auto",my:10,size:"xl"})},Nt=function(){var e=B(),t=e.pageDescription,n=e.pageTitle,a=Object(s.useState)(0),c=Object(r.a)(a,2),d=c[0],u=c[1];return Object(s.useEffect)((function(){u(0)}),[n]),Object(F.jsx)(l.a,{meta:{title:n,description:t},pageName:"packageProfile",children:Object(F.jsxs)(o.g,{bg:"white","data-testid":U.page,maxW:"100vw",templateColumns:"1fr",templateRows:"auto 1fr auto",children:[Object(F.jsx)(Ut,{}),Object(F.jsxs)(i.e,{index:d,onChange:u,pt:4,variant:"line",children:[Object(F.jsxs)(i.b,{borderBottom:"base",mx:{base:0,lg:6},children:[Object(F.jsx)(i.a,{children:"Documentation"}),Object(F.jsx)(i.a,{"data-testid":U.dependenciesTab,children:"Dependencies"})]}),Object(F.jsxs)(i.d,{maxW:"full",children:[Object(F.jsx)(i.c,{p:0,children:Object(F.jsx)(Ye,{})}),Object(F.jsx)(i.c,{children:Object(F.jsx)(N,{})})]})]}),Object(F.jsx)($,{})]})})},Ht=function(){return Object(F.jsx)(P,{children:Object(F.jsx)(Nt,{})})},qt=n(84),Gt=function(){var e=Object(a.i)(),t=e.name,n=e.scope,r=Object(qt.b)();if(r.isLoading||!r.data)return Object(F.jsx)(o.c,{minH:"16rem",children:Object(F.jsx)(et.a,{size:"xl"})});var i=function(e,t,n){var a=Object(d.c)(t,n),c=Object(d.a)(e,a);if(c){var r=c.version,o="/v/".concat(r);return"".concat("/packages/").concat(a).concat(o)}}(r.data,t,n);return i?Object(F.jsx)(a.a,{to:i}):Object(F.jsx)(c.default,{})},Vt="[^@\\/]+",Zt="@[^\\/]+",Xt=function(){var e=Object(a.j)().path;return Object(F.jsxs)(a.d,{children:[Object(F.jsx)(a.b,{exact:!0,path:"".concat(e,"/:scope(").concat(Zt,")?/:name(").concat(Vt,")"),children:Object(F.jsx)(Gt,{})}),Object(F.jsx)(a.b,{path:"".concat(e,"/:scope(").concat(Zt,")?/:name(").concat(Vt,")/v/:version"),children:Object(F.jsx)(Ht,{})}),Object(F.jsx)(a.b,{path:"*",children:Object(F.jsx)(c.NotFound,{})})]})}}}]);
|
|
2
|
+
//# sourceMappingURL=7.17b6768f.chunk.js.map
|