@ebrains/vue 0.0.1-alpha.1 → 0.3.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/arrow-diagonal-black-8f0494c3-CYl9yYTl.mjs +4 -0
  2. package/arrow-diagonal-black-8f0494c3-DqsB6ni-.js +1 -0
  3. package/arrow-right-9322ba8a-DBcxNU_p.js +3 -0
  4. package/arrow-right-9322ba8a-DHq-_PPe.mjs +6 -0
  5. package/bluesky-cc5edd2d-DaFQc-pr.js +12 -0
  6. package/bluesky-cc5edd2d-DfuDDO5h.mjs +15 -0
  7. package/chevron-down-6144c823-DWGlv9eV.mjs +13 -0
  8. package/chevron-down-6144c823-D_8976Ke.js +10 -0
  9. package/chevron-left-ca6c66e1-DANhLw_T.mjs +12 -0
  10. package/chevron-left-ca6c66e1-uCH5SUhm.js +9 -0
  11. package/chevron-right-b88ed2d4-C7dkTMvP.js +3 -0
  12. package/chevron-right-b88ed2d4-CgEZBvy7.mjs +6 -0
  13. package/chevron-up-c66bd477-ByW7R48t.js +10 -0
  14. package/chevron-up-c66bd477-CETJkshq.mjs +13 -0
  15. package/close-87fc0d63-Cbd-ScJr.js +3 -0
  16. package/close-87fc0d63-DtDU2HIU.mjs +6 -0
  17. package/color-0ba8ed56-BVeDdJAE.js +1 -0
  18. package/color-0ba8ed56-D-UJpBQL.mjs +207 -0
  19. package/color-primary-palette_6.entry-WwN9tuB9.mjs +300 -0
  20. package/color-primary-palette_6.entry-_ANGnnBl.js +1 -0
  21. package/copy-03b72cb6-B_WCNQrG.mjs +6 -0
  22. package/copy-03b72cb6-CZAFAegx.js +3 -0
  23. package/correct-use-of-colors.entry-B312hpv9.js +1 -0
  24. package/correct-use-of-colors.entry-BjxRVkfm.mjs +59 -0
  25. package/eds-accordion.entry-RvtdAQT0.mjs +58 -0
  26. package/eds-accordion.entry-h9ApF51u.js +4 -0
  27. package/eds-alert.entry-C6VZ3ss6.js +608 -0
  28. package/eds-alert.entry-D5o-ZjCb.mjs +688 -0
  29. package/eds-avatar_17.entry-08AUpBqo.mjs +15630 -0
  30. package/eds-avatar_17.entry-BQZz43q9.js +14540 -0
  31. package/eds-card-desc_3.entry-D7hiMZ09.mjs +87 -0
  32. package/eds-card-desc_3.entry-Dxs_izUN.js +1 -0
  33. package/eds-card-generic.entry-0IAAHjtS.mjs +63 -0
  34. package/eds-card-generic.entry-DZYZP5oa.js +1 -0
  35. package/eds-card-project.entry-Ckgpwy2Y.mjs +43 -0
  36. package/eds-card-project.entry-D7P4K88F.js +1 -0
  37. package/eds-card-section.entry-B90kv8Pj.js +1 -0
  38. package/eds-card-section.entry-DnktDeDm.mjs +39 -0
  39. package/eds-card-tags.entry-CnHitp9l.js +1 -0
  40. package/eds-card-tags.entry-XboLA5-P.mjs +13 -0
  41. package/eds-card-tool.entry-CbreK2xg.js +1 -0
  42. package/eds-card-tool.entry-CmRu6pmc.mjs +56 -0
  43. package/eds-card-wrapper.entry-Buesg37A.mjs +24 -0
  44. package/eds-card-wrapper.entry-rBHdbwzh.js +1 -0
  45. package/eds-code-block.entry-DKnuVY85.mjs +1582 -0
  46. package/eds-code-block.entry-M3x0FsRB.js +9 -0
  47. package/eds-components-section.entry-BAWU9rKy.mjs +295 -0
  48. package/eds-components-section.entry-BEBky2Me.js +132 -0
  49. package/eds-docs-palettes.entry-D3DdXkoo.js +1 -0
  50. package/eds-docs-palettes.entry-etHagd2P.mjs +22 -0
  51. package/eds-docs-tokens.entry--gW4Z293.js +1 -0
  52. package/eds-docs-tokens.entry-CIGNTs97.mjs +30 -0
  53. package/eds-form.entry-D8FLPsaS.js +7153 -0
  54. package/eds-form.entry-zewjTpaa.mjs +7319 -0
  55. package/eds-frame.entry-BlOnLCrI.js +1 -0
  56. package/eds-frame.entry-SCGm_pju.mjs +74 -0
  57. package/eds-icon-arrow-diagonal.entry-CEffhVkn.mjs +13 -0
  58. package/eds-icon-arrow-diagonal.entry-abxXXnCe.js +1 -0
  59. package/eds-icon-arrow-right.entry-4zl098Gq.js +1 -0
  60. package/eds-icon-arrow-right.entry-DrA5pZ5q.mjs +13 -0
  61. package/eds-icon-bluesky.entry-BDD9os2p.js +1 -0
  62. package/eds-icon-bluesky.entry-CRey5aEK.mjs +13 -0
  63. package/eds-icon-chevron-down.entry-DA_Mq25N.js +1 -0
  64. package/eds-icon-chevron-down.entry-DCd5FfEN.mjs +13 -0
  65. package/eds-icon-chevron-left.entry-CiGlPKup.js +1 -0
  66. package/eds-icon-chevron-left.entry-Lmfmw6QC.mjs +13 -0
  67. package/eds-icon-chevron-right.entry-B2HI3b59.mjs +13 -0
  68. package/eds-icon-chevron-right.entry-DMwxsQGs.js +1 -0
  69. package/eds-icon-chevron-up.entry-CwavCcA0.mjs +13 -0
  70. package/eds-icon-chevron-up.entry-D9pmuoVK.js +1 -0
  71. package/eds-icon-close.entry-JIzBTjIa.js +1 -0
  72. package/eds-icon-close.entry-pxvkbolY.mjs +13 -0
  73. package/eds-icon-copy.entry-Begn9c9I.mjs +13 -0
  74. package/eds-icon-copy.entry-Ccrvu27o.js +1 -0
  75. package/eds-icon-eu.entry-C0ZIqXHV.js +1 -0
  76. package/eds-icon-eu.entry-CLI94rkv.mjs +13 -0
  77. package/eds-icon-facebook.entry-BIZwxPBr.js +1 -0
  78. package/eds-icon-facebook.entry-o2SylrAp.mjs +13 -0
  79. package/eds-icon-gitlab.entry-BJi35Zov.js +1 -0
  80. package/eds-icon-gitlab.entry-BWfZkXKF.mjs +13 -0
  81. package/eds-icon-linkedin.entry-B4ev6evD.js +1 -0
  82. package/eds-icon-linkedin.entry-Z4gD9HGr.mjs +13 -0
  83. package/eds-icon-loader.entry-BFeh0vtX.js +1 -0
  84. package/eds-icon-loader.entry-DgIgWpYk.mjs +13 -0
  85. package/eds-icon-mastodon.entry-BLCaUfQY.js +1 -0
  86. package/eds-icon-mastodon.entry-C_2paQis.mjs +13 -0
  87. package/eds-icon-menu.entry-CNtaXAOo.mjs +13 -0
  88. package/eds-icon-menu.entry-CzF-GJXn.js +1 -0
  89. package/eds-icon-more.entry-4gqxzs_k.mjs +13 -0
  90. package/eds-icon-more.entry-C-v0Cjp9.js +1 -0
  91. package/eds-icon-search.entry-D070uKfZ.mjs +13 -0
  92. package/eds-icon-search.entry-iLCAU3Et.js +1 -0
  93. package/eds-icon-success.entry-Ci0RTnP5.mjs +13 -0
  94. package/eds-icon-success.entry-DSukl_w-.js +1 -0
  95. package/eds-icon-twitter.entry-D6I83zuS.mjs +13 -0
  96. package/eds-icon-twitter.entry-I9FRjdSE.js +1 -0
  97. package/eds-icon-user.entry-BI7Uw3Pp.mjs +13 -0
  98. package/eds-icon-user.entry-DcLB78T6.js +1 -0
  99. package/eds-icon-youtube.entry-CR4ml_RW.mjs +13 -0
  100. package/eds-icon-youtube.entry-DAke-XDg.js +1 -0
  101. package/eds-input_7.entry-BV0VagCj.js +7167 -0
  102. package/eds-input_7.entry-CRNkC-uR.mjs +7368 -0
  103. package/eds-login.entry-DOeyfoyM.js +1 -0
  104. package/eds-login.entry-DmJw6ABI.mjs +46 -0
  105. package/eds-logo-variations.entry-U65PDVhE.js +1 -0
  106. package/eds-logo-variations.entry-o4lyGmhR.mjs +22 -0
  107. package/eds-matomo-notice.entry-tzuOtKT9.js +1 -0
  108. package/eds-matomo-notice.entry-y5SvHzsZ.mjs +91 -0
  109. package/eds-modal.entry-B7Ph4m3y.js +1 -0
  110. package/eds-modal.entry-BW8crUoC.mjs +65 -0
  111. package/eds-navigator.entry-CvKDpQVM.mjs +33 -0
  112. package/eds-navigator.entry-DixbL3UY.js +1 -0
  113. package/eds-pagination_2.entry-CRrIKRa-.mjs +241 -0
  114. package/eds-pagination_2.entry-DoZ-NFBH.js +1 -0
  115. package/eds-progress-bar.entry-Bmjv2r3W.js +1 -0
  116. package/eds-progress-bar.entry-sdqDGSI3.mjs +21 -0
  117. package/eds-rating.entry-J5lQt6oj.mjs +40 -0
  118. package/eds-rating.entry-dK5fopCq.js +1 -0
  119. package/eds-section-core_2.entry-DBjBQ_AT.js +1 -0
  120. package/eds-section-core_2.entry-cwkrHET8.mjs +39 -0
  121. package/eds-svg-repository.entry-BEJBJ538.js +192 -0
  122. package/eds-svg-repository.entry-UvAba6M3.mjs +293 -0
  123. package/eds-tab.entry-CR1nFyrH.mjs +31 -0
  124. package/eds-tab.entry-uQka8MTr.js +1 -0
  125. package/eds-tabs-content.entry-BKT7-iAV.mjs +106 -0
  126. package/eds-tabs-content.entry-CTM0EjTl.js +1 -0
  127. package/eds-tabs.entry-BKx8xHJ8.mjs +112 -0
  128. package/eds-tabs.entry-BWxSN8SV.js +1 -0
  129. package/eds-timeline.entry-B7jxBFA4.mjs +51 -0
  130. package/eds-timeline.entry-D9KWrb_r.js +1 -0
  131. package/eds-tooltip.entry-CfhqHRxF.js +1 -0
  132. package/eds-tooltip.entry-DJqN6_P4.mjs +69 -0
  133. package/eds-trl.entry-COK7rgVS.mjs +36 -0
  134. package/eds-trl.entry-CoySvAJL.js +1 -0
  135. package/eu-9ddde93a-BFtIQw9B.js +28 -0
  136. package/eu-9ddde93a-ft4szvR5.mjs +31 -0
  137. package/facebook-9cb5c17f-BcUhbrj6.mjs +15 -0
  138. package/facebook-9cb5c17f-Y_gvQ682.js +12 -0
  139. package/generated/components.d.ts +2 -1
  140. package/incorrect-use-of-colors.entry-D7xAYXu2.js +1 -0
  141. package/incorrect-use-of-colors.entry-DsNEjuWo.mjs +42 -0
  142. package/index-39c58238-BwYCDOHZ.mjs +44 -0
  143. package/index-39c58238-SQ-JC-LH.js +1 -0
  144. package/index-Dg2DO7q4.mjs +3558 -0
  145. package/index-Dvww9rdy.js +21 -0
  146. package/index.js +1 -21
  147. package/index.mjs +40 -2363
  148. package/keycloak-13893af6-BLzE1H6E.mjs +878 -0
  149. package/keycloak-13893af6-NiM3zoVg.js +9 -0
  150. package/linkedin-e8650abb-BkDrkjzY.js +26 -0
  151. package/linkedin-e8650abb-DYMdsale.mjs +29 -0
  152. package/loader-c9628637-ChpnbJkv.mjs +31 -0
  153. package/loader-c9628637-Vj8Wt1e8.js +28 -0
  154. package/logo-color-7f1fd803-CFgbXdt8.mjs +116 -0
  155. package/logo-color-7f1fd803-DRD3vZVn.js +113 -0
  156. package/logo-color-margins-ff8ce71b-B9nMsY9Q.mjs +119 -0
  157. package/logo-color-margins-ff8ce71b-Dk06zr1Z.js +116 -0
  158. package/logo-space.entry-Cf-keXHv.mjs +14 -0
  159. package/logo-space.entry-DC5fUroI.js +1 -0
  160. package/logo-variations-horizontal_2.entry-BWau6qh4.js +7 -0
  161. package/logo-variations-horizontal_2.entry-xvJ8Iiu5.mjs +29 -0
  162. package/logo-white-no-bg-f382f86f-DXYn3NwV.js +1011 -0
  163. package/logo-white-no-bg-f382f86f-YhfmNmGG.mjs +1022 -0
  164. package/logo-wrong-usage.entry-RcSb8NIe.mjs +14 -0
  165. package/logo-wrong-usage.entry-sU8NISwX.js +1 -0
  166. package/mastodon-3703ec61-C7iI4Hk0.mjs +15 -0
  167. package/mastodon-3703ec61-C9v6Olc-.js +12 -0
  168. package/menu-340ea948-BpnYX3gY.mjs +12 -0
  169. package/menu-340ea948-ZdelWVw3.js +9 -0
  170. package/mono-53f70232-DGi2XDlR.mjs +12 -0
  171. package/mono-53f70232-DgAsWvoQ.js +9 -0
  172. package/more-4449d549-D4HA1cRq.js +11 -0
  173. package/more-4449d549-rI9hOpEp.mjs +14 -0
  174. package/package.json +2 -2
  175. package/search-fbcd79c2-BMxCaeEk.js +10 -0
  176. package/search-fbcd79c2-rfV0PlHP.mjs +13 -0
  177. package/success-443809da-BD23vltm.mjs +19 -0
  178. package/success-443809da-BUEhLsAD.js +16 -0
  179. package/toastManager-d9eee791-CEYNwx25.mjs +30 -0
  180. package/toastManager-d9eee791-DvR_vUPI.js +1 -0
  181. package/token-list_3.entry-BkOkChEb.js +1 -0
  182. package/token-list_3.entry-CheMK1r_.mjs +247 -0
  183. package/token-ratios.entry-Dfz4q4qy.js +1 -0
  184. package/token-ratios.entry-rSMXHIix.mjs +25 -0
  185. package/token-spacing.entry-ByzbVlGi.js +1 -0
  186. package/token-spacing.entry-DvopunO1.mjs +12 -0
  187. package/token-typography.entry-AjIHL4M4.js +2 -0
  188. package/token-typography.entry-CExckWkx.mjs +213 -0
  189. package/twitter-ac21b505-CGWVGWM9.mjs +15 -0
  190. package/twitter-ac21b505-DDdHS4hB.js +12 -0
  191. package/user-71ebdc15-BBKQbcQD.js +14 -0
  192. package/user-71ebdc15-CoHlCtJg.mjs +17 -0
  193. package/youtube-efbfbdc4-BLTH1Jl9.js +12 -0
  194. package/youtube-efbfbdc4-BfySbfjR.mjs +15 -0
@@ -0,0 +1,9 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./index-Dvww9rdy.js");var Z=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},W={exports:{}};(function(f){var S=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
2
+ * Prism: Lightweight, robust, elegant syntax highlighting
3
+ *
4
+ * @license MIT <https://opensource.org/licenses/MIT>
5
+ * @author Lea Verou <https://lea.verou.me>
6
+ * @namespace
7
+ * @public
8
+ */var i=function(u){var g=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,y=0,h={},s={manual:u.Prism&&u.Prism.manual,disableWorkerMessageHandler:u.Prism&&u.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof m?new m(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++y}),t.__id},clone:function t(e,a){a=a||{};var n,r;switch(s.util.type(e)){case"Object":if(r=s.util.objId(e),a[r])return a[r];n={},a[r]=n;for(var l in e)e.hasOwnProperty(l)&&(n[l]=t(e[l],a));return n;case"Array":return r=s.util.objId(e),a[r]?a[r]:(n=[],a[r]=n,e.forEach(function(d,o){n[o]=t(d,a)}),n);default:return e}},getLanguage:function(t){for(;t;){var e=g.exec(t.className);if(e)return e[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,e){t.className=t.className.replace(RegExp(g,"gi"),""),t.classList.add("language-"+e)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(n){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(n.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var a in e)if(e[a].src==t)return e[a]}return null}},isActive:function(t,e,a){for(var n="no-"+e;t;){var r=t.classList;if(r.contains(e))return!0;if(r.contains(n))return!1;t=t.parentElement}return!!a}},languages:{plain:h,plaintext:h,text:h,txt:h,extend:function(t,e){var a=s.util.clone(s.languages[t]);for(var n in e)a[n]=e[n];return a},insertBefore:function(t,e,a,n){n=n||s.languages;var r=n[t],l={};for(var d in r)if(r.hasOwnProperty(d)){if(d==e)for(var o in a)a.hasOwnProperty(o)&&(l[o]=a[o]);a.hasOwnProperty(d)||(l[d]=r[d])}var p=n[t];return n[t]=l,s.languages.DFS(s.languages,function(A,F){F===p&&A!=t&&(this[A]=l)}),l},DFS:function t(e,a,n,r){r=r||{};var l=s.util.objId;for(var d in e)if(e.hasOwnProperty(d)){a.call(e,d,e[d],n||d);var o=e[d],p=s.util.type(o);p==="Object"&&!r[l(o)]?(r[l(o)]=!0,t(o,a,null,r)):p==="Array"&&!r[l(o)]&&(r[l(o)]=!0,t(o,a,d,r))}}},plugins:{},highlightAll:function(t,e){s.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,a){var n={callback:a,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",n),n.elements=Array.prototype.slice.apply(n.container.querySelectorAll(n.selector)),s.hooks.run("before-all-elements-highlight",n);for(var r=0,l;l=n.elements[r++];)s.highlightElement(l,e===!0,n.callback)},highlightElement:function(t,e,a){var n=s.util.getLanguage(t),r=s.languages[n];s.util.setLanguage(t,n);var l=t.parentElement;l&&l.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(l,n);var d=t.textContent,o={element:t,language:n,grammar:r,code:d};function p(F){o.highlightedCode=F,s.hooks.run("before-insert",o),o.element.innerHTML=o.highlightedCode,s.hooks.run("after-highlight",o),s.hooks.run("complete",o),a&&a.call(o.element)}if(s.hooks.run("before-sanity-check",o),l=o.element.parentElement,l&&l.nodeName.toLowerCase()==="pre"&&!l.hasAttribute("tabindex")&&l.setAttribute("tabindex","0"),!o.code){s.hooks.run("complete",o),a&&a.call(o.element);return}if(s.hooks.run("before-highlight",o),!o.grammar){p(s.util.encode(o.code));return}if(e&&u.Worker){var A=new Worker(s.filename);A.onmessage=function(F){p(F.data)},A.postMessage(JSON.stringify({language:o.language,code:o.code,immediateClose:!0}))}else p(s.highlight(o.code,o.grammar,o.language))},highlight:function(t,e,a){var n={code:t,grammar:e,language:a};if(s.hooks.run("before-tokenize",n),!n.grammar)throw new Error('The language "'+n.language+'" has no grammar.');return n.tokens=s.tokenize(n.code,n.grammar),s.hooks.run("after-tokenize",n),m.stringify(s.util.encode(n.tokens),n.language)},tokenize:function(t,e){var a=e.rest;if(a){for(var n in a)e[n]=a[n];delete e.rest}var r=new O;return I(r,r.head,t),R(t,r,e,r.head,0),D(r)},hooks:{all:{},add:function(t,e){var a=s.hooks.all;a[t]=a[t]||[],a[t].push(e)},run:function(t,e){var a=s.hooks.all[t];if(!(!a||!a.length))for(var n=0,r;r=a[n++];)r(e)}},Token:m};u.Prism=s;function m(t,e,a,n){this.type=t,this.content=e,this.alias=a,this.length=(n||"").length|0}m.stringify=function t(e,a){if(typeof e=="string")return e;if(Array.isArray(e)){var n="";return e.forEach(function(p){n+=t(p,a)}),n}var r={type:e.type,content:t(e.content,a),tag:"span",classes:["token",e.type],attributes:{},language:a},l=e.alias;l&&(Array.isArray(l)?Array.prototype.push.apply(r.classes,l):r.classes.push(l)),s.hooks.run("wrap",r);var d="";for(var o in r.attributes)d+=" "+o+'="'+(r.attributes[o]||"").replace(/"/g,"&quot;")+'"';return"<"+r.tag+' class="'+r.classes.join(" ")+'"'+d+">"+r.content+"</"+r.tag+">"};function T(t,e,a,n){t.lastIndex=e;var r=t.exec(a);if(r&&n&&r[1]){var l=r[1].length;r.index+=l,r[0]=r[0].slice(l)}return r}function R(t,e,a,n,r,l){for(var d in a)if(!(!a.hasOwnProperty(d)||!a[d])){var o=a[d];o=Array.isArray(o)?o:[o];for(var p=0;p<o.length;++p){if(l&&l.cause==d+","+p)return;var A=o[p],F=A.inside,j=!!A.lookbehind,X=!!A.greedy,V=A.alias;if(X&&!A.pattern.global){var J=A.pattern.toString().match(/[imsuy]*$/)[0];A.pattern=RegExp(A.pattern.source,J+"g")}for(var q=A.pattern||A,w=n.next,E=r;w!==e.tail&&!(l&&E>=l.reach);E+=w.value.length,w=w.next){var $=w.value;if(e.length>t.length)return;if(!($ instanceof m)){var L=1,x;if(X){if(x=T(q,E,t,j),!x||x.index>=t.length)break;var P=x.index,Q=x.index+x[0].length,_=E;for(_+=w.value.length;P>=_;)w=w.next,_+=w.value.length;if(_-=w.value.length,E=_,w.value instanceof m)continue;for(var C=w;C!==e.tail&&(_<Q||typeof C.value=="string");C=C.next)L++,_+=C.value.length;L--,$=t.slice(E,_),x.index-=E}else if(x=T(q,0,$,j),!x)continue;var P=x.index,N=x[0],G=$.slice(0,P),Y=$.slice(P+N.length),z=E+$.length;l&&z>l.reach&&(l.reach=z);var H=w.prev;G&&(H=I(e,H,G),E+=G.length),M(e,H,L);var ee=new m(d,F?s.tokenize(N,F):N,V,N);if(w=I(e,H,ee),Y&&I(e,w,Y),L>1){var U={cause:d+","+p,reach:z};R(t,e,a,w.prev,E,U),l&&U.reach>l.reach&&(l.reach=U.reach)}}}}}}function O(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function I(t,e,a){var n=e.next,r={value:a,prev:e,next:n};return e.next=r,n.prev=r,t.length++,r}function M(t,e,a){for(var n=e.next,r=0;r<a&&n!==t.tail;r++)n=n.next;e.next=n,n.prev=e,t.length-=r}function D(t){for(var e=[],a=t.head.next;a!==t.tail;)e.push(a.value),a=a.next;return e}if(!u.document)return u.addEventListener&&(s.disableWorkerMessageHandler||u.addEventListener("message",function(t){var e=JSON.parse(t.data),a=e.language,n=e.code,r=e.immediateClose;u.postMessage(s.highlight(n,s.languages[a],a)),r&&u.close()},!1)),s;var b=s.util.currentScript();b&&(s.filename=b.src,b.hasAttribute("data-manual")&&(s.manual=!0));function c(){s.manual||s.highlightAll()}if(!s.manual){var v=document.readyState;v==="loading"||v==="interactive"&&b&&b.defer?document.addEventListener("DOMContentLoaded",c):window.requestAnimationFrame?window.requestAnimationFrame(c):window.setTimeout(c,16)}return s}(S);f.exports&&(f.exports=i),typeof Z<"u"&&(Z.Prism=i),i.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},i.languages.markup.tag.inside["attr-value"].inside.entity=i.languages.markup.entity,i.languages.markup.doctype.inside["internal-subset"].inside=i.languages.markup,i.hooks.add("wrap",function(u){u.type==="entity"&&(u.attributes.title=u.content.replace(/&amp;/,"&"))}),Object.defineProperty(i.languages.markup.tag,"addInlined",{value:function(g,y){var h={};h["language-"+y]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:i.languages[y]},h.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:h}};s["language-"+y]={pattern:/[\s\S]+/,inside:i.languages[y]};var m={};m[g]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return g}),"i"),lookbehind:!0,greedy:!0,inside:s},i.languages.insertBefore("markup","cdata",m)}}),Object.defineProperty(i.languages.markup.tag,"addAttribute",{value:function(u,g){i.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+u+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[g,"language-"+g],inside:i.languages[g]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),i.languages.html=i.languages.markup,i.languages.mathml=i.languages.markup,i.languages.svg=i.languages.markup,i.languages.xml=i.languages.extend("markup",{}),i.languages.ssml=i.languages.xml,i.languages.atom=i.languages.xml,i.languages.rss=i.languages.xml,function(u){var g=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;u.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+g.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+g.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+g.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+g.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:g,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},u.languages.css.atrule.inside.rest=u.languages.css;var y=u.languages.markup;y&&(y.tag.addInlined("style","css"),y.tag.addAttribute("style","css"))}(i),i.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},i.languages.javascript=i.languages.extend("clike",{"class-name":[i.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),i.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,i.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:i.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:i.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:i.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:i.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:i.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),i.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:i.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),i.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),i.languages.markup&&(i.languages.markup.tag.addInlined("script","javascript"),i.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),i.languages.js=i.languages.javascript,function(){if(typeof i>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var u="Loading…",g=function(b,c){return"✖ Error "+b+" while fetching file: "+c},y="✖ Error: File does not exist or is empty",h={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",m="loading",T="loaded",R="failed",O="pre[data-src]:not(["+s+'="'+T+'"]):not(['+s+'="'+m+'"])';function I(b,c,v){var t=new XMLHttpRequest;t.open("GET",b,!0),t.onreadystatechange=function(){t.readyState==4&&(t.status<400&&t.responseText?c(t.responseText):t.status>=400?v(g(t.status,t.statusText)):v(y))},t.send(null)}function M(b){var c=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(b||"");if(c){var v=Number(c[1]),t=c[2],e=c[3];return t?e?[v,Number(e)]:[v,void 0]:[v,v]}}i.hooks.add("before-highlightall",function(b){b.selector+=", "+O}),i.hooks.add("before-sanity-check",function(b){var c=b.element;if(c.matches(O)){b.code="",c.setAttribute(s,m);var v=c.appendChild(document.createElement("CODE"));v.textContent=u;var t=c.getAttribute("data-src"),e=b.language;if(e==="none"){var a=(/\.(\w+)$/.exec(t)||[,"none"])[1];e=h[a]||a}i.util.setLanguage(v,e),i.util.setLanguage(c,e);var n=i.plugins.autoloader;n&&n.loadLanguages(e),I(t,function(r){c.setAttribute(s,T);var l=M(c.getAttribute("data-range"));if(l){var d=r.split(/\r\n?|\n/g),o=l[0],p=l[1]==null?d.length:l[1];o<0&&(o+=d.length),o=Math.max(0,Math.min(o-1,d.length)),p<0&&(p+=d.length),p=Math.max(0,Math.min(p,d.length)),r=d.slice(o,p).join(`
9
+ `),c.hasAttribute("data-start")||c.setAttribute("data-start",String(o+1))}v.textContent=r,i.highlightElement(v)},function(r){c.setAttribute(s,R),v.textContent=r})}}),i.plugins.fileHighlight={highlight:function(c){for(var v=(c||document).querySelectorAll(O),t=0,e;e=v[t++];)i.highlightElement(e)}};var D=!1;i.fileHighlight=function(){D||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),D=!0),i.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(W);const B=W.exports;Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;(function(f){var S="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",i={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},u={bash:i,environment:{pattern:RegExp("\\$"+S),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+S),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};f.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+S),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:u},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:i}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:u},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:u.entity}}],environment:{pattern:RegExp("\\$?"+S),alias:"constant"},variable:u.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},i.inside=f.languages.bash;for(var g=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],y=u.variable[1].inside,h=0;h<g.length;h++)y[g[h]]=f.languages.bash[g[h]];f.languages.sh=f.languages.bash,f.languages.shell=f.languages.bash})(Prism);(function(f){var S=/[*&][^\s[\]{},]+/,i=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,u="(?:"+i.source+"(?:[ ]+"+S.source+")?|"+S.source+"(?:[ ]+"+i.source+")?)",g=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),y=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function h(s,m){m=(m||"").replace(/m/g,"")+"m";var T=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return u}).replace(/<<value>>/g,function(){return s});return RegExp(T,m)}f.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return u})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return u}).replace(/<<key>>/g,function(){return"(?:"+g+"|"+y+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:h(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:h(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:h(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:h(y),lookbehind:!0,greedy:!0},number:{pattern:h(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:i,important:S,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},f.languages.yml=f.languages.yaml})(Prism);(function(f){var S=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;f.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+S.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+S.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+S.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+S.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:S,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},f.languages.css.atrule.inside.rest=f.languages.css;var i=f.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))})(Prism);const te=`:host{display:block;font-family:var(--font-family, 'Courier New', monospace)}pre[class*="language-"]{white-space:pre-wrap;word-break:break-word;}.language{font-weight:bold;text-transform:uppercase}pre{margin:0;border-radius:8px;color:var(--purple-200);overflow:auto}code{font-family:'Courier New', monospace}.token.keyword{color:var(--purple-500)}.token.string{color:var(--green-500)}.token.function{color:var(--cyan-500)}.token.comment{color:var(--grey-700)}.relative{position:relative}.bg-stronger{background-color:var(--grey-900)}.rounded-sm{border-radius:8px}.rounded-xs{border-radius:4px}.text-inverse{color:var(--white)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.p-0{padding:0rem}.p-12{padding:0.75rem}.p-16{padding:1rem}.p-20{padding:1.25rem}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.pl-8{padding-left:0.5rem}.mb-10{margin-bottom:0.625rem}.mb-12{margin-bottom:0.75rem}.mb-28{margin-bottom:1.75rem}.pb-16{padding-bottom:1rem}.pb-20{padding-bottom:1.25rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.pb-8{padding-bottom:0.5rem}.mt-16{margin-top:1rem}.mt-2{margin-top:0.125rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.w-20{width:1.25rem}.h-20{height:1.25rem}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}`,ae=te,K=class{constructor(f){k.registerInstance(this,f),this.code=void 0,this.language=void 0,this.copied=!1}copyToClipboard(){navigator.clipboard.writeText(this.code).then(()=>{this.copied=!0,setTimeout(()=>this.copied=!1,2e3)})}getHighlightedCode(){return this.language&&B.languages[this.language]?B.highlight(this.code,B.languages[this.language],this.language):(console.warn(`Unsupported or missing language: ${this.language}`),this.code)}render(){return k.h("div",{key:"a99c0c8b9546b80bb3f9e21cd53c29540e8b6e06",class:"relative bg-stronger rounded-sm"},k.h("div",{key:"5856f9d30bb52f791e0d8bb03a6438bc01247f66",class:"text-inverse flex justify-between items-center p-8"},this.language?k.h("span",{class:"f-ui-03"},this.language.toUpperCase()):k.h("pre",{class:"bg-stronger pl-8",role:"region","aria-label":"Code block without language"},k.h("code",{innerHTML:this.getHighlightedCode()})),k.h("span",{key:"dfb0f69dbbd1032ace5afb7fe98d899816f36610","aria-hidden":"true",class:"w-20 h-20 mt-8"},k.h("eds-icon-wrapper",{key:"b399384638265f9fcc9a824c47fe73c75bcade33",icon:this.copied?"success":"copy",onClick:()=>this.copyToClipboard()})),k.h("span",{key:"47c2d00b2cf86b99522dbc438726e0fc57fb6a44",class:"sr-only"},"Copy Code")),this.language&&k.h("pre",{key:"038321e9d3d2a38963857ab8b719653f3e8385e3",class:`language-${this.language} bg-stronger pl-8 pb-8`,role:"region","aria-label":`Code block in ${this.language}`},k.h("code",{key:"72be161dd9781d9bc2f4d9495969175f34c19249",innerHTML:this.getHighlightedCode()})))}};K.style=ae;exports.eds_code_block=K;
@@ -0,0 +1,295 @@
1
+ import { r as t, h as e } from "./index-Dg2DO7q4.mjs";
2
+ const a = () => e(
3
+ "div",
4
+ { class: "static-content container" },
5
+ e("h2", null, "Load the module"),
6
+ e(
7
+ "p",
8
+ null,
9
+ "Integrating EDSs components to a project without a JavaScript framework is straight forward. If you’re working on a simple HTML page, you can start using the components immediately by adding the tags below to the",
10
+ " ",
11
+ e("code", null, "head"),
12
+ "."
13
+ ),
14
+ e("eds-code-block", { code: `<script type='module'>
15
+ import { defineCustomElements } from 'https://unpkg.com/@ebrains/components@latest/loader/index.js';
16
+ // Define custom elements
17
+ defineCustomElements(window);
18
+ <\/script>`, language: "javascript", "copy-label": "Copy Code" }),
19
+ e("h2", null, "Load the styles"),
20
+ e(
21
+ "p",
22
+ null,
23
+ "To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the",
24
+ " ",
25
+ e("code", null, "head")
26
+ ),
27
+ e("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>', language: "css", "copy-label": "Copy Code" }),
28
+ e(
29
+ "div",
30
+ { class: "my-4" },
31
+ e("eds-alert", { message: "Note that, loading the predefined CSS framework above, automatically loads the fonts so you can skip loading them separately.", intent: "warning" })
32
+ ),
33
+ e("h2", null, "Load the fonts"),
34
+ e(
35
+ "p",
36
+ null,
37
+ "To load the webfonts, add the tag below to the ",
38
+ e("code", null, "head")
39
+ ),
40
+ e("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@0.0.1/styles/base/fonts.css"/>', language: "css", "copy-label": "Copy Code" }),
41
+ e("h2", null, "Component Usage"),
42
+ e("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"),
43
+ e("eds-code-block", { code: `<eds-button
44
+ label="my bytton"
45
+ intent="primary">
46
+ </eds-button>`, language: "html", "copy-label": "Copy Code" })
47
+ ), s = () => e(
48
+ "div",
49
+ null,
50
+ e("p", null, "Before proceeding, ensure that Node.js is installed on your machine—you can download the latest version from the official website. If your project doesn’t already use npm and you plan to integrate EBRAINS Components, you'll need to create a package.json file by running npm init and following the on-screen instructions."),
51
+ e(
52
+ "div",
53
+ { class: "my-8" },
54
+ e("eds-code-block", { code: "npm install @ebrains/components", language: "html", "copy-label": "Copy Code" })
55
+ ),
56
+ e(
57
+ "div",
58
+ { class: "my-8" },
59
+ e("eds-code-block", { code: "npm install @ebrains/assets", language: "html", "copy-label": "Copy Code" })
60
+ ),
61
+ e(
62
+ "div",
63
+ { class: "my-8" },
64
+ e("eds-code-block", { code: "npm install @ebrains/react", language: "html", "copy-label": "Copy Code" })
65
+ )
66
+ ), o = () => e(
67
+ "div",
68
+ null,
69
+ e("h2", null, "React Wrappers"),
70
+ e("p", null, "Learn how to use our components in a React Application.Simple install the package below and check out the examples"),
71
+ e(
72
+ "div",
73
+ { class: "my-8" },
74
+ e("eds-code-block", { code: "npm install @ebrains/react", language: "javascript", "copy-label": "Copy Code" })
75
+ ),
76
+ e(
77
+ "eds-section-core",
78
+ { "section-title": "Example React App", "heading-level": "h3" },
79
+ e("eds-code-block", { code: `
80
+ import { EdsHeader } from "@ebrains/react";
81
+
82
+ interface User {
83
+ firstname: string;
84
+ lastname: string;
85
+ }
86
+
87
+ interface AuthStatus {
88
+ authenticated: boolean;
89
+ user: User | null;
90
+ }
91
+
92
+ import { useEffect, useState } from "react";
93
+
94
+ export function App() {
95
+
96
+ const [authStatus, setAuthStatus] = useState<AuthStatus>({
97
+ authenticated: false,
98
+ user: null,
99
+ });
100
+
101
+ const [activeTabIndex, setActiveTabIndex] = useState<number>(0);
102
+
103
+ // Use useEffect to render Stencil components dynamically after the component mounts
104
+ useEffect(() => {
105
+
106
+ const handleAuthStatusChange = (event: CustomEvent) => {
107
+ console.log(event.detail);
108
+ setAuthStatus(event.detail); // Set the entire object
109
+ };
110
+
111
+ const handleTabChange = (
112
+ event: CustomEvent<{ index: number; name: string }>,
113
+ ) => {
114
+ console.log(event.detail);
115
+ setActiveTabIndex(event.detail.index);
116
+ };
117
+
118
+ document.addEventListener(
119
+ "authStatusChanged",
120
+ handleAuthStatusChange as EventListener,
121
+ );
122
+ document.addEventListener("tabChange", handleTabChange as EventListener);
123
+
124
+ return () => {
125
+ document.removeEventListener(
126
+ "authStatusChanged",
127
+ handleAuthStatusChange as EventListener,
128
+ );
129
+ document.removeEventListener(
130
+ "tabChange",
131
+ handleTabChange as EventListener,
132
+ );
133
+ };
134
+ }, []); // Empty dependency array ensures this runs only once after mounting
135
+
136
+ return (
137
+ <div id="main">
138
+ <EdsHeader
139
+ home-url="/"
140
+ user-feature={false}
141
+ keycloak-url="http://localhost:8080"
142
+ keycloak-realm="nigeor-realm"
143
+ keycloak-client-id="stencil-app"
144
+ links="[
145
+ { "label": "About", "url": "/about" },
146
+ { "label": "Focus Areas", "url": "/focus-areas" },
147
+ { "label": "News & Events", "url": "/news-and-events" },
148
+ { "label": "Contact", "url": "/contact" }
149
+ ]"
150
+ ></EdsHeader>
151
+
152
+ <div>
153
+ User is{" "} {authStatus.authenticated ? "authenticated" : "not authenticated"}
154
+ </div>
155
+ {authStatus.user && <div>Welcome, {authStatus.user.firstname}</div>}
156
+ </div>
157
+ </div>
158
+ );
159
+ }
160
+
161
+ export default App;
162
+ `, language: "javascript", "copy-label": "Copy Code" })
163
+ )
164
+ ), l = () => e(
165
+ "div",
166
+ null,
167
+ e("h2", null, "Vue Wrappers"),
168
+ e("p", null, "Learn how to use our components in a Vue Application."),
169
+ e("p", null, "Simply install the latest version of our NPM package."),
170
+ e("eds-code-block", { code: "npm install @ebrains/vue", language: "javascript", "copy-label": "Copy Code" }),
171
+ e("p", null, 'Our NPM package already includes the custom elements definitions. However, you can use the components as they are by simply importing and executing the initialization command in your "main.ts" file.'),
172
+ e("eds-code-block", { code: `import { defineCustomElements } from '@ebrains/components/loader';
173
+ defineCustomElements();`, language: "javascript", "copy-label": "Copy Code" }),
174
+ e(
175
+ "h2",
176
+ null,
177
+ "Passing Properties to Custom Elements Using the ",
178
+ e("b", null, ".prop"),
179
+ " Modifier in Vue Wrappers"
180
+ ),
181
+ e("p", null, "When using Vue wrappers for Stencil components (or any custom elements), you might encounter issues with property names being altered due to HTML’s attribute handling. By default, Vue binds values as HTML attributes, and HTML attributes are case-insensitive. This means that camelCase property names can be transformed into lowercase strings, which can prevent your component from receiving the correct data."),
182
+ e(
183
+ "h3",
184
+ null,
185
+ "How to Use the ",
186
+ e("b", null, ".prop"),
187
+ " Modifier"
188
+ ),
189
+ e("p", null, "When using Vue wrappers, you can pass properties with the .prop modifier by adding it to your binding expression. Here’s an example of how to do it:"),
190
+ e(
191
+ "div",
192
+ { class: "mt-8" },
193
+ e("eds-alert", { message: "This may lead to issues because Vue binds these as attributes .", intent: "error" })
194
+ ),
195
+ e("eds-code-block", { code: `<EdsAlert
196
+ message="This is a default informational alert."
197
+ intent="default"
198
+ :pressableLabel="Press Me"
199
+ :pressableUrl="https://ebrains.eu"
200
+ ></EdsAlert>`, language: "javascript", "copy-label": "Copy Code" }),
201
+ e(
202
+ "div",
203
+ { class: "mt-8" },
204
+ e("eds-alert", { message: "Use the .prop modifier to ensure properties are passed correctly.", intent: "success" })
205
+ ),
206
+ e("eds-code-block", { code: `<EdsAlert
207
+ message="This is a default informational alert."
208
+ intent="default"
209
+ :pressableLabel.prop="Press Me"
210
+ :pressableUrl.prop="https://ebrains.eu"
211
+ ></EdsAlert>`, language: "javascript", "copy-label": "Copy Code" }),
212
+ e(
213
+ "p",
214
+ null,
215
+ "Using the ",
216
+ e("b", null, ".prop"),
217
+ " modifier in Vue ensures that the data you pass to your custom elements is received as intended. It prevents Vue (and the browser) from transforming camelCase property names into lowercase attributes, thereby maintaining the correct data mapping in your Stencil components."
218
+ ),
219
+ e(
220
+ "eds-section-core",
221
+ { "section-title": "Example Vue App", "heading-level": "h3" },
222
+ e("eds-code-block", { code: `
223
+ <template>
224
+ <EdsHeader
225
+ :inverseHeader.prop="true"
226
+ :menuEnabled.prop="true">
227
+ </EdsHeader>
228
+ </template>
229
+
230
+ <script>
231
+
232
+ import { EdsHeader } from "@ebrains/vue";
233
+
234
+ export default {
235
+ name: "App",
236
+ components: {
237
+ EdsHeader,
238
+ }
239
+ };
240
+ <\/script>
241
+ `, language: "javascript", "copy-label": "Copy Code" })
242
+ )
243
+ ), r = () => e(
244
+ "div",
245
+ null,
246
+ e("h2", null, "Angular Wrappers"),
247
+ e("p", null, "Learn how to use our components in a Angular Application."),
248
+ e("eds-code-block", { code: "npm install @ebrains/angular", language: "javascript", "copy-label": "Copy Code" }),
249
+ e("p", null, "Define the custom elements"),
250
+ e("eds-code-block", { code: `import { defineCustomElements } from '@ebrains/components/loader';
251
+ defineCustomElements();`, language: "javascript", "copy-label": "Copy Code" }),
252
+ e("p", null, "Angular Custom Elements Schema"),
253
+ e("eds-code-block", { code: 'import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";', language: "javascript", "copy-label": "Copy Code" }),
254
+ e(
255
+ "eds-section-core",
256
+ { "section-title": "Example Angular App", "heading-level": "h3" },
257
+ e("eds-code-block", { code: `
258
+ <div class="container">
259
+ <eds-breadcrumb
260
+ intent="tertiary"
261
+ items="[
262
+ { "label": "Home", "url": "#" },
263
+ { "label": "Products", "url": "#" },
264
+ ]">
265
+ </eds-breadcrumb>
266
+ <eds-footer></eds-footer>
267
+ </div>`, language: "javascript", "copy-label": "Copy Code" })
268
+ )
269
+ ), d = class {
270
+ constructor(n) {
271
+ t(this, n), this.tabIndex = void 0;
272
+ }
273
+ renderContent() {
274
+ switch (this.tabIndex) {
275
+ case 0:
276
+ return e(a, null);
277
+ case 1:
278
+ return e(s, null);
279
+ case 2:
280
+ return e(o, null);
281
+ case 3:
282
+ return e(l, null);
283
+ case 4:
284
+ return e(r, null);
285
+ default:
286
+ return e("p", null, "Content not available.");
287
+ }
288
+ }
289
+ render() {
290
+ return e("div", { key: "ce34514ab73daa5baa011bda56a13d6197f8bfd0", class: "container" }, this.renderContent());
291
+ }
292
+ };
293
+ export {
294
+ d as eds_components_section
295
+ };
@@ -0,0 +1,132 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Dvww9rdy.js"),t=()=>e.h("div",{class:"static-content container"},e.h("h2",null,"Load the module"),e.h("p",null,"Integrating EDSs components to a project without a JavaScript framework is straight forward. If you’re working on a simple HTML page, you can start using the components immediately by adding the tags below to the"," ",e.h("code",null,"head"),"."),e.h("eds-code-block",{code:`<script type='module'>
2
+ import { defineCustomElements } from 'https://unpkg.com/@ebrains/components@latest/loader/index.js';
3
+ // Define custom elements
4
+ defineCustomElements(window);
5
+ <\/script>`,language:"javascript","copy-label":"Copy Code"}),e.h("h2",null,"Load the styles"),e.h("p",null,"To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the"," ",e.h("code",null,"head")),e.h("eds-code-block",{code:'<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>',language:"css","copy-label":"Copy Code"}),e.h("div",{class:"my-4"},e.h("eds-alert",{message:"Note that, loading the predefined CSS framework above, automatically loads the fonts so you can skip loading them separately.",intent:"warning"})),e.h("h2",null,"Load the fonts"),e.h("p",null,"To load the webfonts, add the tag below to the ",e.h("code",null,"head")),e.h("eds-code-block",{code:'<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@0.0.1/styles/base/fonts.css"/>',language:"css","copy-label":"Copy Code"}),e.h("h2",null,"Component Usage"),e.h("p",null,"Once included, components can be used in your markup like any other regular HTML elements:"),e.h("eds-code-block",{code:`<eds-button
6
+ label="my bytton"
7
+ intent="primary">
8
+ </eds-button>`,language:"html","copy-label":"Copy Code"})),a=()=>e.h("div",null,e.h("p",null,"Before proceeding, ensure that Node.js is installed on your machine—you can download the latest version from the official website. If your project doesn’t already use npm and you plan to integrate EBRAINS Components, you'll need to create a package.json file by running npm init and following the on-screen instructions."),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/components",language:"html","copy-label":"Copy Code"})),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/assets",language:"html","copy-label":"Copy Code"})),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/react",language:"html","copy-label":"Copy Code"}))),s=()=>e.h("div",null,e.h("h2",null,"React Wrappers"),e.h("p",null,"Learn how to use our components in a React Application.Simple install the package below and check out the examples"),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/react",language:"javascript","copy-label":"Copy Code"})),e.h("eds-section-core",{"section-title":"Example React App","heading-level":"h3"},e.h("eds-code-block",{code:`
9
+ import { EdsHeader } from "@ebrains/react";
10
+
11
+ interface User {
12
+ firstname: string;
13
+ lastname: string;
14
+ }
15
+
16
+ interface AuthStatus {
17
+ authenticated: boolean;
18
+ user: User | null;
19
+ }
20
+
21
+ import { useEffect, useState } from "react";
22
+
23
+ export function App() {
24
+
25
+ const [authStatus, setAuthStatus] = useState<AuthStatus>({
26
+ authenticated: false,
27
+ user: null,
28
+ });
29
+
30
+ const [activeTabIndex, setActiveTabIndex] = useState<number>(0);
31
+
32
+ // Use useEffect to render Stencil components dynamically after the component mounts
33
+ useEffect(() => {
34
+
35
+ const handleAuthStatusChange = (event: CustomEvent) => {
36
+ console.log(event.detail);
37
+ setAuthStatus(event.detail); // Set the entire object
38
+ };
39
+
40
+ const handleTabChange = (
41
+ event: CustomEvent<{ index: number; name: string }>,
42
+ ) => {
43
+ console.log(event.detail);
44
+ setActiveTabIndex(event.detail.index);
45
+ };
46
+
47
+ document.addEventListener(
48
+ "authStatusChanged",
49
+ handleAuthStatusChange as EventListener,
50
+ );
51
+ document.addEventListener("tabChange", handleTabChange as EventListener);
52
+
53
+ return () => {
54
+ document.removeEventListener(
55
+ "authStatusChanged",
56
+ handleAuthStatusChange as EventListener,
57
+ );
58
+ document.removeEventListener(
59
+ "tabChange",
60
+ handleTabChange as EventListener,
61
+ );
62
+ };
63
+ }, []); // Empty dependency array ensures this runs only once after mounting
64
+
65
+ return (
66
+ <div id="main">
67
+ <EdsHeader
68
+ home-url="/"
69
+ user-feature={false}
70
+ keycloak-url="http://localhost:8080"
71
+ keycloak-realm="nigeor-realm"
72
+ keycloak-client-id="stencil-app"
73
+ links="[
74
+ { "label": "About", "url": "/about" },
75
+ { "label": "Focus Areas", "url": "/focus-areas" },
76
+ { "label": "News & Events", "url": "/news-and-events" },
77
+ { "label": "Contact", "url": "/contact" }
78
+ ]"
79
+ ></EdsHeader>
80
+
81
+ <div>
82
+ User is{" "} {authStatus.authenticated ? "authenticated" : "not authenticated"}
83
+ </div>
84
+ {authStatus.user && <div>Welcome, {authStatus.user.firstname}</div>}
85
+ </div>
86
+ </div>
87
+ );
88
+ }
89
+
90
+ export default App;
91
+ `,language:"javascript","copy-label":"Copy Code"}))),o=()=>e.h("div",null,e.h("h2",null,"Vue Wrappers"),e.h("p",null,"Learn how to use our components in a Vue Application."),e.h("p",null,"Simply install the latest version of our NPM package."),e.h("eds-code-block",{code:"npm install @ebrains/vue",language:"javascript","copy-label":"Copy Code"}),e.h("p",null,'Our NPM package already includes the custom elements definitions. However, you can use the components as they are by simply importing and executing the initialization command in your "main.ts" file.'),e.h("eds-code-block",{code:`import { defineCustomElements } from '@ebrains/components/loader';
92
+ defineCustomElements();`,language:"javascript","copy-label":"Copy Code"}),e.h("h2",null,"Passing Properties to Custom Elements Using the ",e.h("b",null,".prop")," Modifier in Vue Wrappers"),e.h("p",null,"When using Vue wrappers for Stencil components (or any custom elements), you might encounter issues with property names being altered due to HTML’s attribute handling. By default, Vue binds values as HTML attributes, and HTML attributes are case-insensitive. This means that camelCase property names can be transformed into lowercase strings, which can prevent your component from receiving the correct data."),e.h("h3",null,"How to Use the ",e.h("b",null,".prop")," Modifier"),e.h("p",null,"When using Vue wrappers, you can pass properties with the .prop modifier by adding it to your binding expression. Here’s an example of how to do it:"),e.h("div",{class:"mt-8"},e.h("eds-alert",{message:"This may lead to issues because Vue binds these as attributes .",intent:"error"})),e.h("eds-code-block",{code:`<EdsAlert
93
+ message="This is a default informational alert."
94
+ intent="default"
95
+ :pressableLabel="Press Me"
96
+ :pressableUrl="https://ebrains.eu"
97
+ ></EdsAlert>`,language:"javascript","copy-label":"Copy Code"}),e.h("div",{class:"mt-8"},e.h("eds-alert",{message:"Use the .prop modifier to ensure properties are passed correctly.",intent:"success"})),e.h("eds-code-block",{code:`<EdsAlert
98
+ message="This is a default informational alert."
99
+ intent="default"
100
+ :pressableLabel.prop="Press Me"
101
+ :pressableUrl.prop="https://ebrains.eu"
102
+ ></EdsAlert>`,language:"javascript","copy-label":"Copy Code"}),e.h("p",null,"Using the ",e.h("b",null,".prop")," modifier in Vue ensures that the data you pass to your custom elements is received as intended. It prevents Vue (and the browser) from transforming camelCase property names into lowercase attributes, thereby maintaining the correct data mapping in your Stencil components."),e.h("eds-section-core",{"section-title":"Example Vue App","heading-level":"h3"},e.h("eds-code-block",{code:`
103
+ <template>
104
+ <EdsHeader
105
+ :inverseHeader.prop="true"
106
+ :menuEnabled.prop="true">
107
+ </EdsHeader>
108
+ </template>
109
+
110
+ <script>
111
+
112
+ import { EdsHeader } from "@ebrains/vue";
113
+
114
+ export default {
115
+ name: "App",
116
+ components: {
117
+ EdsHeader,
118
+ }
119
+ };
120
+ <\/script>
121
+ `,language:"javascript","copy-label":"Copy Code"}))),l=()=>e.h("div",null,e.h("h2",null,"Angular Wrappers"),e.h("p",null,"Learn how to use our components in a Angular Application."),e.h("eds-code-block",{code:"npm install @ebrains/angular",language:"javascript","copy-label":"Copy Code"}),e.h("p",null,"Define the custom elements"),e.h("eds-code-block",{code:`import { defineCustomElements } from '@ebrains/components/loader';
122
+ defineCustomElements();`,language:"javascript","copy-label":"Copy Code"}),e.h("p",null,"Angular Custom Elements Schema"),e.h("eds-code-block",{code:'import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";',language:"javascript","copy-label":"Copy Code"}),e.h("eds-section-core",{"section-title":"Example Angular App","heading-level":"h3"},e.h("eds-code-block",{code:`
123
+ <div class="container">
124
+ <eds-breadcrumb
125
+ intent="tertiary"
126
+ items="[
127
+ { "label": "Home", "url": "#" },
128
+ { "label": "Products", "url": "#" },
129
+ ]">
130
+ </eds-breadcrumb>
131
+ <eds-footer></eds-footer>
132
+ </div>`,language:"javascript","copy-label":"Copy Code"}))),r=class{constructor(n){e.registerInstance(this,n),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e.h(t,null);case 1:return e.h(a,null);case 2:return e.h(s,null);case 3:return e.h(o,null);case 4:return e.h(l,null);default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"ce34514ab73daa5baa011bda56a13d6197f8bfd0",class:"container"},this.renderContent())}};exports.eds_components_section=r;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Dvww9rdy.js"),l=class{constructor(t){e.registerInstance(this,t),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e.h("div",null,e.h("h2",null,"Primary Palette"),e.h("color-primary-palette",null),e.h("h2",null,"Secondary Palette"),e.h("color-secondary-palette",null),e.h("h2",null,"Support Palette"),e.h("color-support-palette",null));case 1:return e.h("div",null,e.h("h2",null,"Primary Palette"),e.h("gradient-primary-palette",null),e.h("h2",null,"Secondary Palette"),e.h("gradient-secondary-palette",null),e.h("h2",null,"Support Palette"),e.h("gradient-support-palette",null));default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"42f0a4598c64661d98054522e88366ec591a2cb3",class:"container"},this.renderContent())}};exports.eds_docs_palettes=l;
@@ -0,0 +1,22 @@
1
+ import { r as l, h as e } from "./index-Dg2DO7q4.mjs";
2
+ const r = class {
3
+ constructor(t) {
4
+ l(this, t), this.tabIndex = void 0;
5
+ }
6
+ renderContent() {
7
+ switch (this.tabIndex) {
8
+ case 0:
9
+ return e("div", null, e("h2", null, "Primary Palette"), e("color-primary-palette", null), e("h2", null, "Secondary Palette"), e("color-secondary-palette", null), e("h2", null, "Support Palette"), e("color-support-palette", null));
10
+ case 1:
11
+ return e("div", null, e("h2", null, "Primary Palette"), e("gradient-primary-palette", null), e("h2", null, "Secondary Palette"), e("gradient-secondary-palette", null), e("h2", null, "Support Palette"), e("gradient-support-palette", null));
12
+ default:
13
+ return e("p", null, "Content not available.");
14
+ }
15
+ }
16
+ render() {
17
+ return e("div", { key: "42f0a4598c64661d98054522e88366ec591a2cb3", class: "container" }, this.renderContent());
18
+ }
19
+ };
20
+ export {
21
+ r as eds_docs_palettes
22
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Dvww9rdy.js"),n=class{constructor(t){e.registerInstance(this,t),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e.h("token-list",{show:"background"});case 1:return e.h("token-list",{show:"text"});case 2:return e.h("token-list",{show:"border"});case 3:return e.h("token-radii",null);case 4:return e.h("token-list",{show:"outline"});case 5:return e.h("token-shadows",null);default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"10708d591c4077e4e1fe94073322f01121253bdb",class:"container"},this.renderContent())}};exports.eds_docs_tokens=n;
@@ -0,0 +1,30 @@
1
+ import { r as n, h as e } from "./index-Dg2DO7q4.mjs";
2
+ const r = class {
3
+ constructor(t) {
4
+ n(this, t), this.tabIndex = void 0;
5
+ }
6
+ renderContent() {
7
+ switch (this.tabIndex) {
8
+ case 0:
9
+ return e("token-list", { show: "background" });
10
+ case 1:
11
+ return e("token-list", { show: "text" });
12
+ case 2:
13
+ return e("token-list", { show: "border" });
14
+ case 3:
15
+ return e("token-radii", null);
16
+ case 4:
17
+ return e("token-list", { show: "outline" });
18
+ case 5:
19
+ return e("token-shadows", null);
20
+ default:
21
+ return e("p", null, "Content not available.");
22
+ }
23
+ }
24
+ render() {
25
+ return e("div", { key: "10708d591c4077e4e1fe94073322f01121253bdb", class: "container" }, this.renderContent());
26
+ }
27
+ };
28
+ export {
29
+ r as eds_docs_tokens
30
+ };