@watermarkinsights/ripple 5.16.0-alpha.10 → 5.16.0-alpha.11
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/dist/cjs/{app-globals-C-IAhycr.js → app-globals-DRIUP2B4.js} +1 -1
- package/dist/cjs/{chartFunctions-C8PCmGmn.js → chartFunctions-D441_SCy.js} +2 -2
- package/dist/cjs/{functions-DfuY5Jtp.js → functions-Cv4tH2z-.js} +16 -4
- package/dist/cjs/{index-DwhNqnaT.js → index-bkpjhWBk.js} +1 -1
- package/dist/cjs/{intl-Bl-0Yn5n.js → intl-CDsbzEBp.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/priv-calendar.cjs.entry.js +2 -2
- package/dist/cjs/priv-chart-popover.cjs.entry.js +2 -2
- package/dist/cjs/priv-navigator-button.cjs.entry.js +1 -1
- package/dist/cjs/priv-navigator-item.cjs.entry.js +1 -1
- package/dist/cjs/priv-option-list.cjs.entry.js +3 -3
- package/dist/cjs/ripple.cjs.js +2 -2
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +2 -2
- package/dist/cjs/wm-button.cjs.entry.js +2 -2
- package/dist/cjs/wm-chart-slice.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart.cjs.entry.js +4 -4
- package/dist/cjs/wm-date-range.cjs.entry.js +2 -2
- package/dist/cjs/wm-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/wm-file-list.cjs.entry.js +1 -1
- package/dist/cjs/wm-file.cjs.entry.js +2 -2
- package/dist/cjs/wm-flyout.cjs.entry.js +3 -3
- package/dist/cjs/wm-input.cjs.entry.js +3 -3
- package/dist/cjs/wm-line-chart.cjs.entry.js +4 -4
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +3 -3
- package/dist/cjs/wm-modal_3.cjs.entry.js +3 -3
- package/dist/cjs/wm-navigation_3.cjs.entry.js +3 -3
- package/dist/cjs/wm-navigator.cjs.entry.js +2 -2
- package/dist/cjs/wm-nested-select.cjs.entry.js +3 -3
- package/dist/cjs/wm-optgroup.cjs.entry.js +2 -2
- package/dist/cjs/wm-option_2.cjs.entry.js +3 -3
- package/dist/cjs/wm-pagination.cjs.entry.js +3 -3
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +3 -3
- package/dist/cjs/wm-search.cjs.entry.js +3 -3
- package/dist/cjs/wm-snackbar.cjs.entry.js +3 -3
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +2 -2
- package/dist/cjs/wm-tag-input.cjs.entry.js +3 -3
- package/dist/cjs/wm-tag-option.cjs.entry.js +2 -2
- package/dist/cjs/wm-textarea.cjs.entry.js +3 -3
- package/dist/cjs/wm-timepicker.cjs.entry.js +2 -2
- package/dist/cjs/wm-toggletip.cjs.entry.js +2 -2
- package/dist/cjs/wm-uploader.cjs.entry.js +3 -3
- package/dist/cjs/wm-wrapper.cjs.entry.js +1 -1
- package/dist/esm/{app-globals-CrcR41XQ.js → app-globals-C7MKvxOg.js} +1 -1
- package/dist/esm/{chartFunctions-BocRhQ0T.js → chartFunctions-D1WRRNPk.js} +2 -2
- package/dist/esm/{functions-B9BrPorY.js → functions-DT2ztGYg.js} +16 -4
- package/dist/esm/{index-C20glyTb.js → index-BmU89qgm.js} +1 -1
- package/dist/esm/{intl-D-bH9lQF.js → intl-BnrBfoLu.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/priv-calendar.entry.js +2 -2
- package/dist/esm/priv-chart-popover.entry.js +2 -2
- package/dist/esm/priv-navigator-button.entry.js +1 -1
- package/dist/esm/priv-navigator-item.entry.js +1 -1
- package/dist/esm/priv-option-list.entry.js +3 -3
- package/dist/esm/ripple.js +3 -3
- package/dist/esm/wm-action-menu_2.entry.js +2 -2
- package/dist/esm/wm-button.entry.js +2 -2
- package/dist/esm/wm-chart-slice.entry.js +1 -1
- package/dist/esm/wm-chart.entry.js +4 -4
- package/dist/esm/wm-date-range.entry.js +2 -2
- package/dist/esm/wm-datepicker.entry.js +2 -2
- package/dist/esm/wm-file-list.entry.js +1 -1
- package/dist/esm/wm-file.entry.js +2 -2
- package/dist/esm/wm-flyout.entry.js +3 -3
- package/dist/esm/wm-input.entry.js +3 -3
- package/dist/esm/wm-line-chart.entry.js +4 -4
- package/dist/esm/wm-modal-pss_3.entry.js +3 -3
- package/dist/esm/wm-modal_3.entry.js +3 -3
- package/dist/esm/wm-navigation_3.entry.js +3 -3
- package/dist/esm/wm-navigator.entry.js +2 -2
- package/dist/esm/wm-nested-select.entry.js +3 -3
- package/dist/esm/wm-optgroup.entry.js +2 -2
- package/dist/esm/wm-option_2.entry.js +3 -3
- package/dist/esm/wm-pagination.entry.js +3 -3
- package/dist/esm/wm-progress-indicator_3.entry.js +3 -3
- package/dist/esm/wm-search.entry.js +3 -3
- package/dist/esm/wm-snackbar.entry.js +3 -3
- package/dist/esm/wm-tab-item_3.entry.js +2 -2
- package/dist/esm/wm-tag-input.entry.js +3 -3
- package/dist/esm/wm-tag-option.entry.js +2 -2
- package/dist/esm/wm-textarea.entry.js +3 -3
- package/dist/esm/wm-timepicker.entry.js +2 -2
- package/dist/esm/wm-toggletip.entry.js +2 -2
- package/dist/esm/wm-uploader.entry.js +3 -3
- package/dist/esm/wm-wrapper.entry.js +1 -1
- package/dist/esm-es5/app-globals-C7MKvxOg.js +1 -0
- package/dist/esm-es5/{chartFunctions-BocRhQ0T.js → chartFunctions-D1WRRNPk.js} +1 -1
- package/dist/esm-es5/functions-DT2ztGYg.js +1 -0
- package/dist/esm-es5/{index-C20glyTb.js → index-BmU89qgm.js} +1 -1
- package/dist/esm-es5/{intl-D-bH9lQF.js → intl-BnrBfoLu.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-calendar.entry.js +1 -1
- package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
- package/dist/esm-es5/priv-option-list.entry.js +1 -1
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
- package/dist/esm-es5/wm-button.entry.js +1 -1
- package/dist/esm-es5/wm-chart-slice.entry.js +1 -1
- package/dist/esm-es5/wm-chart.entry.js +1 -1
- package/dist/esm-es5/wm-date-range.entry.js +1 -1
- package/dist/esm-es5/wm-datepicker.entry.js +1 -1
- package/dist/esm-es5/wm-file-list.entry.js +1 -1
- package/dist/esm-es5/wm-file.entry.js +1 -1
- package/dist/esm-es5/wm-flyout.entry.js +1 -1
- package/dist/esm-es5/wm-input.entry.js +1 -1
- package/dist/esm-es5/wm-line-chart.entry.js +1 -1
- package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -1
- package/dist/esm-es5/wm-modal_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigator.entry.js +1 -1
- package/dist/esm-es5/wm-nested-select.entry.js +1 -1
- package/dist/esm-es5/wm-optgroup.entry.js +1 -1
- package/dist/esm-es5/wm-option_2.entry.js +1 -1
- package/dist/esm-es5/wm-pagination.entry.js +1 -1
- package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
- package/dist/esm-es5/wm-search.entry.js +1 -1
- package/dist/esm-es5/wm-snackbar.entry.js +1 -1
- package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
- package/dist/esm-es5/wm-tag-input.entry.js +1 -1
- package/dist/esm-es5/wm-tag-option.entry.js +1 -1
- package/dist/esm-es5/wm-textarea.entry.js +1 -1
- package/dist/esm-es5/wm-timepicker.entry.js +1 -1
- package/dist/esm-es5/wm-toggletip.entry.js +1 -1
- package/dist/esm-es5/wm-uploader.entry.js +1 -1
- package/dist/esm-es5/wm-wrapper.entry.js +1 -1
- package/dist/ripple/{p-d17bf683.system.entry.js → p-00cec2a0.system.entry.js} +1 -1
- package/dist/ripple/{p-caef27f1.system.entry.js → p-07cb5512.system.entry.js} +1 -1
- package/dist/ripple/{p-25227bec.entry.js → p-08b265a2.entry.js} +1 -1
- package/dist/ripple/{p-f878d184.system.entry.js → p-0fce4df8.system.entry.js} +1 -1
- package/dist/ripple/{p-0a9f8d0d.entry.js → p-120c9c9c.entry.js} +1 -1
- package/dist/ripple/{p-dca6cfbd.entry.js → p-12e14668.entry.js} +1 -1
- package/dist/ripple/{p-e9b67596.entry.js → p-19f43d88.entry.js} +1 -1
- package/dist/ripple/{p-5a728ced.system.entry.js → p-2269f7f7.system.entry.js} +1 -1
- package/dist/ripple/{p-757b04eb.entry.js → p-24857d09.entry.js} +1 -1
- package/dist/ripple/{p-b140b04d.system.entry.js → p-24a498ec.system.entry.js} +1 -1
- package/dist/ripple/{p-338835e6.entry.js → p-29eb4cc7.entry.js} +1 -1
- package/dist/ripple/{p-d11e4c6e.system.entry.js → p-2a85a48c.system.entry.js} +1 -1
- package/dist/ripple/{p-1a96dc5e.entry.js → p-2f04ea70.entry.js} +1 -1
- package/dist/ripple/{p-de4c51e2.system.entry.js → p-35f0c155.system.entry.js} +1 -1
- package/dist/ripple/{p-85afd9bf.system.entry.js → p-3d83fdec.system.entry.js} +1 -1
- package/dist/ripple/{p-264fb4fc.entry.js → p-423931b7.entry.js} +1 -1
- package/dist/ripple/{p-ebd318c6.entry.js → p-44004383.entry.js} +1 -1
- package/dist/ripple/{p-b0653ac3.entry.js → p-4adda78c.entry.js} +1 -1
- package/dist/ripple/{p-d1ea5d4c.system.entry.js → p-514af1a7.system.entry.js} +1 -1
- package/dist/ripple/{p-27c1933e.system.entry.js → p-582e730d.system.entry.js} +1 -1
- package/dist/ripple/{p-fc35bcf9.entry.js → p-59030f63.entry.js} +1 -1
- package/dist/ripple/{p-5166de03.system.entry.js → p-5975c901.system.entry.js} +1 -1
- package/dist/ripple/{p-b2604e2b.system.entry.js → p-5a10db87.system.entry.js} +1 -1
- package/dist/ripple/{p-b593e93c.system.entry.js → p-5aeb9091.system.entry.js} +1 -1
- package/dist/ripple/{p-5c8e802a.system.entry.js → p-5b523b9f.system.entry.js} +1 -1
- package/dist/ripple/{p-dc3e43aa.entry.js → p-5bb7a993.entry.js} +1 -1
- package/dist/ripple/{p-476e2913.entry.js → p-5ecfe800.entry.js} +1 -1
- package/dist/ripple/{p-5026b7e8.entry.js → p-62520534.entry.js} +1 -1
- package/dist/ripple/{p-4a50f797.system.entry.js → p-628dfdaf.system.entry.js} +1 -1
- package/dist/ripple/{p-82a66121.system.entry.js → p-64a308de.system.entry.js} +1 -1
- package/dist/ripple/{p-d5232e7d.entry.js → p-64f555f9.entry.js} +1 -1
- package/dist/ripple/{p-ef56fc5a.system.entry.js → p-65058356.system.entry.js} +1 -1
- package/dist/ripple/{p-d61938ca.entry.js → p-65c38f2b.entry.js} +1 -1
- package/dist/ripple/{p-c164a1cb.entry.js → p-6650bcad.entry.js} +1 -1
- package/dist/ripple/{p-81783193.system.entry.js → p-6ed1a615.system.entry.js} +1 -1
- package/dist/ripple/{p-d293be99.system.entry.js → p-72c247fb.system.entry.js} +1 -1
- package/dist/ripple/{p-27de107e.entry.js → p-81245443.entry.js} +1 -1
- package/dist/ripple/{p-09116c34.entry.js → p-81870134.entry.js} +1 -1
- package/dist/ripple/{p-6c66e270.entry.js → p-819382b4.entry.js} +1 -1
- package/dist/ripple/{p-d3d5306c.system.entry.js → p-9223a1bf.system.entry.js} +1 -1
- package/dist/ripple/{p-c344e3c0.entry.js → p-9635519f.entry.js} +1 -1
- package/dist/ripple/{p-cf3defe6.system.entry.js → p-98c7683b.system.entry.js} +1 -1
- package/dist/ripple/{p-3678e285.entry.js → p-9a5a577a.entry.js} +1 -1
- package/dist/ripple/{p-ffd7de48.entry.js → p-9a9e1d00.entry.js} +1 -1
- package/dist/ripple/{p-0616bd1c.entry.js → p-9e353b52.entry.js} +1 -1
- package/dist/ripple/{p-8eWf5O5Z.system.js → p-B7qucsb3.system.js} +1 -1
- package/dist/ripple/p-BRUS9KP_.system.js +1 -0
- package/dist/ripple/{p-C20glyTb.js → p-BmU89qgm.js} +1 -1
- package/dist/ripple/{p-D_issjBT.system.js → p-CLQInGS5.system.js} +1 -1
- package/dist/ripple/p-CZkA6XrR.js +1 -0
- package/dist/ripple/{p-DAuKYO5n.js → p-ChCup6OE.js} +1 -1
- package/dist/ripple/{p-dECFx5ly.js → p-D1BYKagG.js} +1 -1
- package/dist/ripple/p-DT2ztGYg.js +1 -0
- package/dist/ripple/{p-B0uE_ID-.system.js → p-Dd2F6qzY.system.js} +1 -1
- package/dist/ripple/p-Dg5uzcYb.system.js +1 -0
- package/dist/ripple/{p-BVUnLeDz.system.js → p-LmBQIm9U.system.js} +1 -1
- package/dist/ripple/{p-a634e9f5.entry.js → p-a0add2dd.entry.js} +1 -1
- package/dist/ripple/{p-03e28e65.system.entry.js → p-a1f70a0a.system.entry.js} +1 -1
- package/dist/ripple/{p-90d11417.system.entry.js → p-a8eff037.system.entry.js} +1 -1
- package/dist/ripple/{p-21728198.entry.js → p-ac310358.entry.js} +1 -1
- package/dist/ripple/{p-1b8f9ff1.system.entry.js → p-bda8ce77.system.entry.js} +1 -1
- package/dist/ripple/{p-70cdc5ce.system.entry.js → p-c12eb0fa.system.entry.js} +1 -1
- package/dist/ripple/{p-384f6dc8.entry.js → p-c44cbbea.entry.js} +1 -1
- package/dist/ripple/{p-719b7087.system.entry.js → p-c72b5e55.system.entry.js} +1 -1
- package/dist/ripple/{p-59f7cfd7.system.entry.js → p-c889749f.system.entry.js} +1 -1
- package/dist/ripple/{p-6ffa9bfc.entry.js → p-cb5c1920.entry.js} +1 -1
- package/dist/ripple/{p-7ea000d6.system.entry.js → p-cc9752df.system.entry.js} +1 -1
- package/dist/ripple/{p-5cc5b46b.entry.js → p-cca5dd54.entry.js} +1 -1
- package/dist/ripple/{p-a1cd3c29.entry.js → p-d14aedd7.entry.js} +1 -1
- package/dist/ripple/{p-088a84b6.entry.js → p-d1651848.entry.js} +1 -1
- package/dist/ripple/{p-e6e4e23a.system.entry.js → p-d83f36af.system.entry.js} +1 -1
- package/dist/ripple/{p-b2433a3c.system.entry.js → p-e01688df.system.entry.js} +1 -1
- package/dist/ripple/{p-e63b30bd.system.entry.js → p-e0a1a76d.system.entry.js} +1 -1
- package/dist/ripple/{p-e2e2929f.system.entry.js → p-ec6e0106.system.entry.js} +1 -1
- package/dist/ripple/{p-5827cae3.system.entry.js → p-ee8649b3.system.entry.js} +1 -1
- package/dist/ripple/{p-d3bc9393.entry.js → p-f073981c.entry.js} +1 -1
- package/dist/ripple/{p-3fa20b7a.entry.js → p-f47bacb5.entry.js} +1 -1
- package/dist/ripple/{p-fb4367a8.system.entry.js → p-f4a19c56.system.entry.js} +1 -1
- package/dist/ripple/{p-979cd9f4.entry.js → p-f4ad21f8.entry.js} +1 -1
- package/dist/ripple/{p-ee0e88ed.entry.js → p-f5ca18bb.entry.js} +1 -1
- package/dist/ripple/{p-734d06dc.system.entry.js → p-fe71211e.system.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/package.json +2 -2
- package/dist/esm-es5/app-globals-CrcR41XQ.js +0 -1
- package/dist/esm-es5/functions-B9BrPorY.js +0 -1
- package/dist/ripple/p-B9BrPorY.js +0 -1
- package/dist/ripple/p-BOTV28v8.system.js +0 -1
- package/dist/ripple/p-Bboe1S7O.js +0 -1
- package/dist/ripple/p-CKTNcFzW.system.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
window.navigator.plugins.length>0&&console.log("%cRipple component library %c%s","color: #575195; font-weight: bold","font-weight: bold","5.16.0-alpha.10"),window.addEventListener("keydown",(function(t){if("Tab"==t.key){var n=new Event("wmUserIsTabbing");window.dispatchEvent(n),document.querySelector("body").classList.add("wmcl-user-is-tabbing")}"ArrowLeft"!=t.key&&"ArrowUp"!=t.key&&"ArrowRight"!=t.key&&"ArrowDown"!=t.key||(n=new Event("wmUserIsKeying"),window.dispatchEvent(n),document.querySelector("body").classList.add("wmcl-user-is-keying"))})),window.addEventListener("mousedown",(function(){var t=new Event("wmUserIsNotTabbing");window.dispatchEvent(t),document.querySelector("body").classList.remove("wmcl-user-is-tabbing"),document.querySelector("body").classList.remove("wmcl-user-is-keying")}));const t=document.createElement("div");t.id="wm-tooltip-container";const n=document.createElement("div");n.id="wm-tooltip",n.classList.add("wm-tooltip"),n.setAttribute("popover","manual"),n.setAttribute("aria-hidden","true");const e=document.createElement("style");e.textContent="\n.wm-tooltip {\n position: fixed;\n overflow: hidden;\n pointer-events: none;\n line-height: normal;\n font-family: inherit;\n font-size: 0.875rem;\n text-transform: none;\n font-weight: normal;\n background: var(--wmcolor-tooltip-background);\n color: var(--wmcolor-tooltip-text);\n z-index: 999999;\n max-width: var(--wmTooltipMaxWidth, 13.75rem);\n margin-right: 1.5rem;\n padding: 0.375rem;\n transition-property: opacity;\n transition-delay: 0s;\n opacity: 0;\n inset: unset;\n top: 0;\n left: 0;\n transform: translateZ(0);\n will-change: transform;\n transform: translate(var(--wmTooltipLeft), var(--wmTooltipTop));\n border: none;\n}\n\n.wm-tooltip:popover-open {\n opacity: 0;\n}\n\n.wm-tooltip.show {\n transition-delay: 500ms;\n opacity: 1;\n}\n",document.head.appendChild(e),t.appendChild(n),document.querySelector("body").appendChild(t);const o=()=>{};var l=Object.defineProperty,i=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},r=(t,n)=>{t.__stencil__getHostRef=()=>n,n.t=t},s=(t,n)=>n in t,c=(t,n)=>(0,console.error)(t,n),u=new Map,a=new Map,f="slot-fb{display:contents}slot-fb[hidden]{display:none}",d="http://www.w3.org/1999/xlink",p="undefined"!=typeof window?window:{},h={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},m=t=>Promise.resolve(t),v=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),w=!!v&&(()=>!!p.document&&Object.getOwnPropertyDescriptor(p.document.adoptedStyleSheets,"length").writable)(),y=!1,b=[],g=[],$=(t,n)=>e=>{t.push(e),y||(y=!0,n&&4&h.o?j(k):h.raf(k))},S=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){c(t)}t.length=0},k=()=>{S(b),S(g),(y=b.length>0)&&h.raf(k)},j=t=>m().then(t),O=$(g,!0),x=t=>"object"==(t=typeof t)||"function"===t;function E(t){var n,e,o;return null!=(o=null==(e=null==(n=t.head)?void 0:n.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?o:void 0}((t,n)=>{for(var e in n)l(t,e,{get:n[e],enumerable:!0})})({},{err:()=>C,map:()=>M,ok:()=>T,unwrap:()=>R,unwrapErr:()=>A});var T=t=>({isOk:!0,isErr:!1,value:t}),C=t=>({isOk:!1,isErr:!0,value:t});function M(t,n){if(t.isOk){const e=n(t.value);return e instanceof Promise?e.then((t=>T(t))):T(e)}if(t.isErr)return C(t.value);throw"should never get here"}var N,R=t=>{if(t.isOk)return t.value;throw t.value},A=t=>{if(t.isErr)return t.value;throw t.value};function U(t){const n=this.attachShadow({mode:"open",delegatesFocus:!!(16&t.o)});void 0===N&&(N=null),N&&(w?n.adoptedStyleSheets.push(N):n.adoptedStyleSheets=[...n.adoptedStyleSheets,N])}var F=t=>{const n=I(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&L(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!P(t,W(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&I(t,"childNodes").length&&F(t)}};function L(t,n,e){let o,l=0,i=[];for(;l<t.length;l++)o=t[l],!o["s-sr"]||n&&o["s-hn"]!==n||void 0!==e||i.push(o),i=[...i,...L(o.childNodes,n,e)];return i}var P=(t,n,e=!0)=>{const o=[];(e&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)W(l)!==n||!e&&l["s-sr"]||o.push(l);return o},D=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,W=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function I(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}var _=new WeakMap,z=t=>"sc-"+t.i,H=(t,n,...e)=>{let o=null,l=null,i=null,r=!1,s=!1;const c=[],u=n=>{for(let e=0;e<n.length;e++)o=n[e],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((r="function"!=typeof t&&!x(o))&&(o+=""),r&&s?c[c.length-1].u+=o:c.push(r?B(null,o):o),s=r)};if(u(e),n){n.key&&(l=n.key),n.name&&(i=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}if("function"==typeof t)return t(null===n?{}:n,c,V);const a=B(t,null);return a.p=n,c.length>0&&(a.h=c),a.m=l,a.v=i,a},B=(t,n)=>({o:0,$:t,u:n,S:null,h:null,p:null,m:null,v:null}),q={},V={forEach:(t,n)=>t.map(Y).forEach(n),map:(t,n)=>t.map(Y).map(n).map(G)},Y=t=>({vattrs:t.p,vchildren:t.h,vkey:t.m,vname:t.v,vtag:t.$,vtext:t.u}),G=t=>{if("function"==typeof t.vtag){const n={...t.vattrs};return t.vkey&&(n.key=t.vkey),t.vname&&(n.name=t.vname),H(t.vtag,n,...t.vchildren||[])}const n=B(t.vtag,t.vtext);return n.p=t.vattrs,n.h=t.vchildren,n.m=t.vkey,n.v=t.vname,n},J=t=>{const n=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${n}))(${n}\\b)`,"g")};J("::slotted"),J(":host"),J(":host-context");var K,Z,Q=(t,n)=>{if("string"==typeof t&&(16&n||8&n)&&(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]")))try{return JSON.parse(t)}catch(t){}return null==t||x(t)?t:4&n?"false"!==t&&(""===t||!!t):2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&n?t+"":t},X=t=>{var n;return null==(n=i(t))?void 0:n.$hostElement$},tt=(t,n,e)=>{const o=X(t);return{emit:t=>nt(o,n,{bubbles:!!(4&e),composed:!!(2&e),cancelable:!!(1&e),detail:t})}},nt=(t,n,e)=>{const o=h.ce(n,e);return t.dispatchEvent(o),o},et=(t,n,e,o,l,i)=>{if(e===o)return;let r=s(t,n),c=n.toLowerCase();if("class"===n){const n=t.classList,l=lt(e);let i=lt(o);n.remove(...l.filter((t=>t&&!i.includes(t)))),n.add(...i.filter((t=>t&&!l.includes(t))))}else if("style"===n){for(const n in e)o&&null!=o[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in o)e&&o[n]===e[n]||(n.includes("-")?t.style.setProperty(n,o[n]):t.style[n]=o[n])}else if("key"===n);else if("ref"===n)o&&o(t);else if(r||"o"!==n[0]||"n"!==n[1]){const s=x(o);if((r||s&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[n]!==o&&(t[n]=o);else{const l=null==o?"":o;"list"===n?r=!1:null!=e&&t[n]==l||("function"==typeof t.__lookupSetter__(n)?t[n]=l:t.setAttribute(n,l))}}catch(t){}let u=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(n=c,u=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(n)||(u?t.removeAttributeNS(d,n):t.removeAttribute(n)):(!r||4&i||l)&&!s&&1===t.nodeType&&(o=!0===o?"":o,u?t.setAttributeNS(d,n,o):t.setAttribute(n,o))}else if(n="-"===n[2]?n.slice(3):s(p,c)?c.slice(2):c[2]+n.slice(3),e||o){const l=n.endsWith(it);n=n.replace(rt,""),e&&h.rel(t,n,e,l),o&&h.ael(t,n,o,l)}},ot=/\s/,lt=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(ot):[]),it="Capture",rt=RegExp(it+"$"),st=(t,n,e)=>{const o=11===n.S.nodeType&&n.S.host?n.S.host:n.S,l=t&&t.p||{},i=n.p||{};for(const t of ct(Object.keys(l)))t in i||et(o,t,l[t],void 0,e,n.o);for(const t of ct(Object.keys(i)))et(o,t,l[t],i[t],e,n.o)};function ct(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var ut=!1,at=!1,ft=!1,dt=!1,pt=(t,n,e)=>{var o;const l=n.h[e];let i,r,s,c=0;if(ut||(ft=!0,"slot"===l.$&&(l.o|=l.h?2:1)),null!==l.u)i=l.S=p.document.createTextNode(l.u);else if(1&l.o)i=l.S=p.document.createTextNode(""),st(null,l,dt);else{if(dt||(dt="svg"===l.$),!p.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(i=l.S=p.document.createElementNS(dt?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!ut&&2&l.o?"slot-fb":l.$),dt&&"foreignObject"===l.$&&(dt=!1),st(null,l,dt),l.h)for(c=0;c<l.h.length;++c)r=pt(t,l,c),r&&i.appendChild(r);"svg"===l.$?dt=!1:"foreignObject"===i.tagName&&(dt=!0)}return i["s-hn"]=Z,3&l.o&&(i["s-sr"]=!0,i["s-cr"]=K,i["s-sn"]=l.v||"",i["s-rf"]=null==(o=l.p)?void 0:o.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n})(l.childNodes)).forEach((t=>{o===W(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}(i),s=t&&t.h&&t.h[e],s&&s.$===l.$&&t.S&&ht(t.S,!1)),i},ht=(t,n)=>{h.o|=1;const e=Array.from(t.__childNodes||t.childNodes);for(let t=e.length-1;t>=0;t--){const o=e[t];o["s-hn"]!==Z&&o["s-ol"]&&(kt(yt(o).parentNode,o,yt(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,ft=!0),n&&ht(o,n)}h.o&=-2},mt=(t,n,e,o,l,i)=>{let r,s=t["s-cr"]&&t["s-cr"].parentNode||t;for(s.shadowRoot&&s.tagName===Z&&(s=s.shadowRoot);l<=i;++l)o[l]&&(r=pt(null,e,l),r&&(o[l].S=r,kt(s,r,yt(n))))},vt=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.S;St(n),t&&(at=!0,t["s-ol"]?t["s-ol"].remove():ht(t,!0),t.remove())}}},wt=(t,n,e=!1)=>t.$===n.$&&("slot"===t.$?t.v===n.v:e?(e&&!t.m&&n.m&&(t.m=n.m),!0):t.m===n.m),yt=t=>t&&t["s-ol"]||t,bt=(t,n,e=!1)=>{const o=n.S=t.S,l=t.h,i=n.h,r=n.$,s=n.u;let c;null===s?(st(t,n,dt="svg"===r||"foreignObject"!==r&&dt),null!==l&&null!==i?((t,n,e,o,l=!1)=>{let i,r,s=0,c=0,u=0,a=0,f=n.length-1,d=n[0],p=n[f],h=o.length-1,m=o[0],v=o[h];for(;s<=f&&c<=h;)if(null==d)d=n[++s];else if(null==p)p=n[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--h];else if(wt(d,m,l))bt(d,m,l),d=n[++s],m=o[++c];else if(wt(p,v,l))bt(p,v,l),p=n[--f],v=o[--h];else if(wt(d,v,l))"slot"!==d.$&&"slot"!==v.$||ht(d.S.parentNode,!1),bt(d,v,l),kt(t,d.S,p.S.nextSibling),d=n[++s],v=o[--h];else if(wt(p,m,l))"slot"!==d.$&&"slot"!==v.$||ht(p.S.parentNode,!1),bt(p,m,l),kt(t,p.S,d.S),p=n[--f],m=o[++c];else{for(u=-1,a=s;a<=f;++a)if(n[a]&&null!==n[a].m&&n[a].m===m.m){u=a;break}u>=0?(r=n[u],r.$!==m.$?i=pt(n&&n[c],e,u):(bt(r,m,l),n[u]=void 0,i=r.S),m=o[++c]):(i=pt(n&&n[c],e,c),m=o[++c]),i&&kt(yt(d.S).parentNode,i,yt(d.S))}s>f?mt(t,null==o[h+1]?null:o[h+1].S,e,o,c,h):c>h&&vt(n,s,f)})(o,l,n,i,e):null!==i?(null!==t.u&&(o.textContent=""),mt(o,null,n,i,0,i.length-1)):!e&&null!==l&&vt(l,0,l.length-1),dt&&"svg"===r&&(dt=!1)):(c=o["s-cr"])?c.parentNode.textContent=s:t.u!==s&&(o.data=s)},gt=[],$t=t=>{let n,e,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const l=t["s-sn"];for(o=e.length-1;o>=0;o--)if(n=e[o],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"])if(D(n,l)){let e=gt.find((t=>t.k===n));at=!0,n["s-sn"]=n["s-sn"]||l,e?(e.k["s-sh"]=t["s-hn"],e.j=t):(n["s-sh"]=t["s-hn"],gt.push({j:t,k:n})),n["s-sr"]&>.map((t=>{D(t.k,n["s-sn"])&&(e=gt.find((t=>t.k===n)),e&&!t.j&&(t.j=e.j))}))}else gt.some((t=>t.k===n))||gt.push({k:n})}1===t.nodeType&&$t(t)}},St=t=>{t.p&&t.p.ref&&t.p.ref(null),t.h&&t.h.map(St)},kt=(t,n,e)=>null==t?void 0:t.insertBefore(n,e),jt=(t,n)=>{if(n&&!t.O&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.O=()=>{n["s-p"].splice(e-1,1),o()})))}},Ot=(t,n)=>{if(t.o|=16,4&t.o)return void(t.o|=512);jt(t,t.T);const e=()=>xt(t,n);if(!n)return O(e);queueMicrotask((()=>{e()}))},xt=(t,n)=>{const e=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return n?(t.o|=256,t.C&&(t.C.map((([t,n])=>Ut(o,t,n,e))),t.C=void 0),l=Ut(o,"componentWillLoad",void 0,e)):l=Ut(o,"componentWillUpdate",void 0,e),l=Et(l,(()=>Ut(o,"componentWillRender",void 0,e))),Et(l,(()=>Ct(t,o,n)))},Et=(t,n)=>Tt(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),Tt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Ct=async(t,n,e)=>{var o;const l=t.$hostElement$,i=l["s-rc"];e&&(t=>{const n=t.M,e=t.$hostElement$,o=n.o,l=((t,n)=>{var e;const o=z(n),l=a.get(o);if(!p.document)return o;if(t=11===t.nodeType?t:p.document,l)if("string"==typeof l){let i,r=_.get(t=t.head||t);if(r||_.set(t,r=new Set),!r.has(o)){{i=p.document.createElement("style"),i.innerHTML=l;const o=null!=(e=h.N)?e:E(p.document);if(null!=o&&i.setAttribute("nonce",o),!(1&n.o))if("HEAD"===t.nodeName){const n=t.querySelectorAll("link[rel=preconnect]"),e=n.length>0?n[n.length-1].nextSibling:t.querySelector("style");t.insertBefore(i,(null==e?void 0:e.parentNode)===t?e:null)}else if("host"in t)if(v){const n=new CSSStyleSheet;n.replaceSync(l),w?t.adoptedStyleSheets.unshift(n):t.adoptedStyleSheets=[n,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");n?n.innerHTML=l+n.innerHTML:t.prepend(i)}else t.append(i);1&n.o&&t.insertBefore(i,null)}4&n.o&&(i.innerHTML+=f),r&&r.add(o)}}else t.adoptedStyleSheets.includes(l)||(w?t.adoptedStyleSheets.push(l):t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);10&o&&(e["s-sc"]=l,e.classList.add(l+"-h"))})(t);Mt(t,n,l,e),i&&(i.map((t=>t())),l["s-rc"]=void 0);{const n=null!=(o=l["s-p"])?o:[],e=()=>Nt(t);0===n.length?e():(Promise.all(n).then(e),t.o|=4,n.length=0)}},Mt=(t,n,e,o)=>{try{n=n.render&&n.render(),t.o&=-17,t.o|=2,((t,n,e=!1)=>{var o,l,i,r;const s=t.$hostElement$,c=t.M,u=t.R||B(null,null),a=(t=>t&&t.$===q)(n)?n:H(null,null,n);if(Z=s.tagName,c.A&&(a.p=a.p||{},c.A.map((([t,n])=>a.p[n]=s[t]))),e&&a.p)for(const t of Object.keys(a.p))s.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(a.p[t]=s[t]);if(a.$=null,a.o|=4,t.R=a,a.S=u.S=s.shadowRoot||s,ut=!(!(1&c.o)||128&c.o),K=s["s-cr"],at=!1,bt(u,a,e),h.o|=1,ft){$t(a.S);for(const t of gt){const n=t.k;if(!n["s-ol"]&&p.document){const t=p.document.createTextNode("");t["s-nr"]=n,kt(n.parentNode,n["s-ol"]=t,n)}}for(const t of gt){const n=t.k,s=t.j;if(s){const t=s.parentNode;let e=s.nextSibling;{let i=null==(o=n["s-ol"])?void 0:o.previousSibling;for(;i;){let o=null!=(l=i["s-nr"])?l:null;if(o&&o["s-sn"]===n["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===n||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){e=o;break}}i=i.previousSibling}}(!e&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==e)&&n!==e&&(!n["s-hn"]&&n["s-ol"]&&(n["s-hn"]=n["s-ol"].parentNode.nodeName),kt(t,n,e),1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(i=n["s-ih"])&&i)),n&&"function"==typeof s["s-rf"]&&s["s-rf"](s)}else 1===n.nodeType&&(e&&(n["s-ih"]=null!=(r=n.hidden)&&r),n.hidden=!0)}}at&&F(a.S),h.o&=-2,gt.length=0,K=void 0})(t,n,o)}catch(n){c(n,t.$hostElement$)}return null},Nt=t=>{const n=t.$hostElement$,e=t.t,o=t.T;Ut(e,"componentDidRender",void 0,n),64&t.o?Ut(e,"componentDidUpdate",void 0,n):(t.o|=64,Ft(n),Ut(e,"componentDidLoad",void 0,n),t.U(n),o||At()),t.F(n),t.O&&(t.O(),t.O=void 0),512&t.o&&j((()=>Ot(t,!1))),t.o&=-517},Rt=t=>{var n;{const e=i(t),o=null==(n=null==e?void 0:e.$hostElement$)?void 0:n.isConnected;return o&&2==(18&e.o)&&Ot(e,!1),o}},At=()=>{j((()=>nt(p,"appload",{detail:{namespace:"ripple"}})))},Ut=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){c(t,o)}},Ft=t=>t.classList.add("hydrated"),Lt=(t,n,e,o)=>{const l=i(t);if(!l)return;if(!l)throw Error(`Couldn't find host element for "${o.i}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=l.$hostElement$,s=l.L.get(n),u=l.o,a=l.t;if(e=Q(e,o.P[n][0]),(!(8&u)||void 0===s)&&e!==s&&(!Number.isNaN(s)||!Number.isNaN(e))&&(l.L.set(n,e),a)){if(o.D&&128&u){const t=o.D[n];t&&t.map((t=>{try{a[t](e,s,n)}catch(t){c(t,r)}}))}if(2==(18&u)){if(a.componentShouldUpdate&&!1===a.componentShouldUpdate(e,s,n))return;Ot(l,!1)}}},Pt=(t,n,e)=>{var o,l;const r=t.prototype;if(n.P||n.D||t.watchers){t.watchers&&!n.D&&(n.D=t.watchers);const s=Object.entries(null!=(o=n.P)?o:{});if(s.map((([t,[o]])=>{if(31&o||2&e&&32&o){const{get:l,set:s}=Object.getOwnPropertyDescriptor(r,t)||{};l&&(n.P[t][0]|=2048),s&&(n.P[t][0]|=4096),(1&e||!l)&&Object.defineProperty(r,t,{get(){{if(!(2048&n.P[t][0]))return((t,n)=>i(this).L.get(n))(0,t);const e=i(this),o=e?e.t:r;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,t,{set(l){const r=i(this);if(r){if(s){const e=32&o?this[t]:r.$hostElement$[t];return void 0===e&&r.L.get(t)?l=r.L.get(t):!r.L.get(t)&&e&&r.L.set(t,e),s.call(this,Q(l,o)),void Lt(this,t,l=32&o?this[t]:r.$hostElement$[t],n)}{if(!(1&e&&4096&n.P[t][0]))return Lt(this,t,l,n),void(1&e&&!r.t&&r.W.then((()=>{4096&n.P[t][0]&&r.t[t]!==r.L.get(t)&&(r.t[t]=l)})));const i=()=>{const e=r.t[t];!r.L.get(t)&&e&&r.L.set(t,e),r.t[t]=Q(l,o),Lt(this,t,r.t[t],n)};r.t?i():r.W.then((()=>i()))}}}})}else 1&e&&64&o&&Object.defineProperty(r,t,{value(...n){var e;const o=i(this);return null==(e=null==o?void 0:o.I)?void 0:e.then((()=>{var e;return null==(e=o.t)?void 0:e[t](...n)}))}})})),1&e){const e=new Map;r.attributeChangedCallback=function(t,o,l){h.jmp((()=>{var s;const c=e.get(t);if(this.hasOwnProperty(c))l=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==l)return;if(null==c){const e=i(this),r=null==e?void 0:e.o;if(e&&r&&!(8&r)&&128&r&&l!==o){const i=e.t,r=null==(s=n.D)?void 0:s[t];null==r||r.forEach((n=>{null!=i[n]&&i[n].call(i,l,o,t)}))}return}}const u=Object.getOwnPropertyDescriptor(r,c);(l=(null!==l||"boolean"!=typeof this[c])&&l)===this[c]||u.get&&!u.set||(this[c]=l)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=n.D)?l:{}),...s.filter((([t,n])=>15&n[0])).map((([t,o])=>{var l;const i=o[1]||t;return e.set(i,t),512&o[0]&&(null==(l=n.A)||l.push([t,i])),i}))]))}}return t},Dt=(t,n)=>{Ut(t,"connectedCallback",void 0,n)},Wt=(t,n)=>{Ut(t,"disconnectedCallback",void 0,n||t)},It=(t,n={})=>{var e;if(!p.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],l=n.exclude||[],r=p.customElements,s=p.document.head,d=s.querySelector("meta[charset]"),m=p.document.createElement("style"),w=[];let y,b=!0;Object.assign(h,n),h.l=new URL(n.resourcesUrl||"./",p.document.baseURI).href;let g=!1;if(t.map((t=>{t[1].map((n=>{var e;const s={o:n[0],i:n[1],P:n[2],_:n[3]};4&s.o&&(g=!0),s.P=n[2],s._=n[3],s.A=[],s.D=null!=(e=n[4])?e:{};const f=s.i,d=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const e={o:0,$hostElement$:t,M:n,L:new Map};e.I=new Promise((t=>e.F=t)),e.W=new Promise((t=>e.U=t)),t["s-p"]=[],t["s-rc"]=[];const o=e;t.__stencil__getHostRef=()=>o})(t=this,s),1&s.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${s.i}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else U.call(t,s)}connectedCallback(){const t=i(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,zt(this,t,s._)),y&&(clearTimeout(y),y=null),b?w.push(this):h.jmp((()=>(t=>{if(!(1&h.o)){const n=i(t);if(!n)return;const e=n.M,o=()=>{};if(1&n.o)zt(t,n,e._),(null==n?void 0:n.t)?Dt(n.t,t):(null==n?void 0:n.W)&&n.W.then((()=>Dt(n.t,t)));else{n.o|=1,12&e.o&&(t=>{if(!p.document)return;const n=t["s-cr"]=p.document.createComment("");n["s-cn"]=!0,kt(t,n,t.firstChild)})(t);{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){jt(n,n.T=e);break}}e.P&&Object.entries(e.P).map((([n,[e]])=>{if(31&e&&t.hasOwnProperty(n)){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e)=>{let o;if(!(32&n.o)){if(n.o|=32,e.H){const l=((t,n)=>{const e=t.i.replace(/-/g,"_"),o=t.H;if(!o)return;const l=u.get(o);return l?l[e]:import(`./${o}.entry.js`).then((t=>(u.set(o,t),t[e])),(t=>{c(t,n.$hostElement$)}))
|
|
1
|
+
window.navigator.plugins.length>0&&console.log("%cRipple component library %c%s","color: #575195; font-weight: bold","font-weight: bold","5.16.0-alpha.11"),window.addEventListener("keydown",(function(t){if("Tab"==t.key){var n=new Event("wmUserIsTabbing");window.dispatchEvent(n),document.querySelector("body").classList.add("wmcl-user-is-tabbing")}"ArrowLeft"!=t.key&&"ArrowUp"!=t.key&&"ArrowRight"!=t.key&&"ArrowDown"!=t.key||(n=new Event("wmUserIsKeying"),window.dispatchEvent(n),document.querySelector("body").classList.add("wmcl-user-is-keying"))})),window.addEventListener("mousedown",(function(){var t=new Event("wmUserIsNotTabbing");window.dispatchEvent(t),document.querySelector("body").classList.remove("wmcl-user-is-tabbing"),document.querySelector("body").classList.remove("wmcl-user-is-keying")}));const t=document.createElement("div");t.id="wm-tooltip-container";const n=document.createElement("div");n.id="wm-tooltip",n.classList.add("wm-tooltip"),n.setAttribute("popover","manual"),n.setAttribute("aria-hidden","true");const e=document.createElement("style");e.textContent="\n.wm-tooltip {\n position: fixed;\n overflow: hidden;\n pointer-events: none;\n line-height: normal;\n font-family: inherit;\n font-size: 0.875rem;\n text-transform: none;\n font-weight: normal;\n background: var(--wmcolor-tooltip-background);\n color: var(--wmcolor-tooltip-text);\n z-index: 999999;\n max-width: var(--wmTooltipMaxWidth, 13.75rem);\n margin-right: 1.5rem;\n padding: 0.375rem;\n transition-property: opacity;\n transition-delay: 0s;\n opacity: 0;\n inset: unset;\n top: 0;\n left: 0;\n transform: translateZ(0);\n will-change: transform;\n transform: translate(var(--wmTooltipLeft), var(--wmTooltipTop));\n border: none;\n}\n\n.wm-tooltip:popover-open {\n opacity: 0;\n}\n\n.wm-tooltip.show {\n transition-delay: 500ms;\n opacity: 1;\n}\n",document.head.appendChild(e),t.appendChild(n),document.querySelector("body").appendChild(t);const o=()=>{};var l=Object.defineProperty,i=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},r=(t,n)=>{t.__stencil__getHostRef=()=>n,n.t=t},s=(t,n)=>n in t,c=(t,n)=>(0,console.error)(t,n),u=new Map,a=new Map,f="slot-fb{display:contents}slot-fb[hidden]{display:none}",d="http://www.w3.org/1999/xlink",p="undefined"!=typeof window?window:{},h={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},m=t=>Promise.resolve(t),v=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),w=!!v&&(()=>!!p.document&&Object.getOwnPropertyDescriptor(p.document.adoptedStyleSheets,"length").writable)(),y=!1,b=[],g=[],$=(t,n)=>e=>{t.push(e),y||(y=!0,n&&4&h.o?j(k):h.raf(k))},S=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){c(t)}t.length=0},k=()=>{S(b),S(g),(y=b.length>0)&&h.raf(k)},j=t=>m().then(t),O=$(g,!0),x=t=>"object"==(t=typeof t)||"function"===t;function E(t){var n,e,o;return null!=(o=null==(e=null==(n=t.head)?void 0:n.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?o:void 0}((t,n)=>{for(var e in n)l(t,e,{get:n[e],enumerable:!0})})({},{err:()=>C,map:()=>M,ok:()=>T,unwrap:()=>R,unwrapErr:()=>A});var T=t=>({isOk:!0,isErr:!1,value:t}),C=t=>({isOk:!1,isErr:!0,value:t});function M(t,n){if(t.isOk){const e=n(t.value);return e instanceof Promise?e.then((t=>T(t))):T(e)}if(t.isErr)return C(t.value);throw"should never get here"}var N,R=t=>{if(t.isOk)return t.value;throw t.value},A=t=>{if(t.isErr)return t.value;throw t.value};function U(t){const n=this.attachShadow({mode:"open",delegatesFocus:!!(16&t.o)});void 0===N&&(N=null),N&&(w?n.adoptedStyleSheets.push(N):n.adoptedStyleSheets=[...n.adoptedStyleSheets,N])}var F=t=>{const n=I(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&L(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!P(t,W(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&I(t,"childNodes").length&&F(t)}};function L(t,n,e){let o,l=0,i=[];for(;l<t.length;l++)o=t[l],!o["s-sr"]||n&&o["s-hn"]!==n||void 0!==e||i.push(o),i=[...i,...L(o.childNodes,n,e)];return i}var P=(t,n,e=!0)=>{const o=[];(e&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)W(l)!==n||!e&&l["s-sr"]||o.push(l);return o},D=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,W=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function I(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}var _=new WeakMap,z=t=>"sc-"+t.i,H=(t,n,...e)=>{let o=null,l=null,i=null,r=!1,s=!1;const c=[],u=n=>{for(let e=0;e<n.length;e++)o=n[e],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((r="function"!=typeof t&&!x(o))&&(o+=""),r&&s?c[c.length-1].u+=o:c.push(r?B(null,o):o),s=r)};if(u(e),n){n.key&&(l=n.key),n.name&&(i=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}if("function"==typeof t)return t(null===n?{}:n,c,V);const a=B(t,null);return a.p=n,c.length>0&&(a.h=c),a.m=l,a.v=i,a},B=(t,n)=>({o:0,$:t,u:n,S:null,h:null,p:null,m:null,v:null}),q={},V={forEach:(t,n)=>t.map(Y).forEach(n),map:(t,n)=>t.map(Y).map(n).map(G)},Y=t=>({vattrs:t.p,vchildren:t.h,vkey:t.m,vname:t.v,vtag:t.$,vtext:t.u}),G=t=>{if("function"==typeof t.vtag){const n={...t.vattrs};return t.vkey&&(n.key=t.vkey),t.vname&&(n.name=t.vname),H(t.vtag,n,...t.vchildren||[])}const n=B(t.vtag,t.vtext);return n.p=t.vattrs,n.h=t.vchildren,n.m=t.vkey,n.v=t.vname,n},J=t=>{const n=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${n}))(${n}\\b)`,"g")};J("::slotted"),J(":host"),J(":host-context");var K,Z,Q=(t,n)=>{if("string"==typeof t&&(16&n||8&n)&&(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]")))try{return JSON.parse(t)}catch(t){}return null==t||x(t)?t:4&n?"false"!==t&&(""===t||!!t):2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&n?t+"":t},X=t=>{var n;return null==(n=i(t))?void 0:n.$hostElement$},tt=(t,n,e)=>{const o=X(t);return{emit:t=>nt(o,n,{bubbles:!!(4&e),composed:!!(2&e),cancelable:!!(1&e),detail:t})}},nt=(t,n,e)=>{const o=h.ce(n,e);return t.dispatchEvent(o),o},et=(t,n,e,o,l,i)=>{if(e===o)return;let r=s(t,n),c=n.toLowerCase();if("class"===n){const n=t.classList,l=lt(e);let i=lt(o);n.remove(...l.filter((t=>t&&!i.includes(t)))),n.add(...i.filter((t=>t&&!l.includes(t))))}else if("style"===n){for(const n in e)o&&null!=o[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in o)e&&o[n]===e[n]||(n.includes("-")?t.style.setProperty(n,o[n]):t.style[n]=o[n])}else if("key"===n);else if("ref"===n)o&&o(t);else if(r||"o"!==n[0]||"n"!==n[1]){const s=x(o);if((r||s&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[n]!==o&&(t[n]=o);else{const l=null==o?"":o;"list"===n?r=!1:null!=e&&t[n]==l||("function"==typeof t.__lookupSetter__(n)?t[n]=l:t.setAttribute(n,l))}}catch(t){}let u=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(n=c,u=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(n)||(u?t.removeAttributeNS(d,n):t.removeAttribute(n)):(!r||4&i||l)&&!s&&1===t.nodeType&&(o=!0===o?"":o,u?t.setAttributeNS(d,n,o):t.setAttribute(n,o))}else if(n="-"===n[2]?n.slice(3):s(p,c)?c.slice(2):c[2]+n.slice(3),e||o){const l=n.endsWith(it);n=n.replace(rt,""),e&&h.rel(t,n,e,l),o&&h.ael(t,n,o,l)}},ot=/\s/,lt=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(ot):[]),it="Capture",rt=RegExp(it+"$"),st=(t,n,e)=>{const o=11===n.S.nodeType&&n.S.host?n.S.host:n.S,l=t&&t.p||{},i=n.p||{};for(const t of ct(Object.keys(l)))t in i||et(o,t,l[t],void 0,e,n.o);for(const t of ct(Object.keys(i)))et(o,t,l[t],i[t],e,n.o)};function ct(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var ut=!1,at=!1,ft=!1,dt=!1,pt=(t,n,e)=>{var o;const l=n.h[e];let i,r,s,c=0;if(ut||(ft=!0,"slot"===l.$&&(l.o|=l.h?2:1)),null!==l.u)i=l.S=p.document.createTextNode(l.u);else if(1&l.o)i=l.S=p.document.createTextNode(""),st(null,l,dt);else{if(dt||(dt="svg"===l.$),!p.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(i=l.S=p.document.createElementNS(dt?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!ut&&2&l.o?"slot-fb":l.$),dt&&"foreignObject"===l.$&&(dt=!1),st(null,l,dt),l.h)for(c=0;c<l.h.length;++c)r=pt(t,l,c),r&&i.appendChild(r);"svg"===l.$?dt=!1:"foreignObject"===i.tagName&&(dt=!0)}return i["s-hn"]=Z,3&l.o&&(i["s-sr"]=!0,i["s-cr"]=K,i["s-sn"]=l.v||"",i["s-rf"]=null==(o=l.p)?void 0:o.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n})(l.childNodes)).forEach((t=>{o===W(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}(i),s=t&&t.h&&t.h[e],s&&s.$===l.$&&t.S&&ht(t.S,!1)),i},ht=(t,n)=>{h.o|=1;const e=Array.from(t.__childNodes||t.childNodes);for(let t=e.length-1;t>=0;t--){const o=e[t];o["s-hn"]!==Z&&o["s-ol"]&&(kt(yt(o).parentNode,o,yt(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,ft=!0),n&&ht(o,n)}h.o&=-2},mt=(t,n,e,o,l,i)=>{let r,s=t["s-cr"]&&t["s-cr"].parentNode||t;for(s.shadowRoot&&s.tagName===Z&&(s=s.shadowRoot);l<=i;++l)o[l]&&(r=pt(null,e,l),r&&(o[l].S=r,kt(s,r,yt(n))))},vt=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.S;St(n),t&&(at=!0,t["s-ol"]?t["s-ol"].remove():ht(t,!0),t.remove())}}},wt=(t,n,e=!1)=>t.$===n.$&&("slot"===t.$?t.v===n.v:e?(e&&!t.m&&n.m&&(t.m=n.m),!0):t.m===n.m),yt=t=>t&&t["s-ol"]||t,bt=(t,n,e=!1)=>{const o=n.S=t.S,l=t.h,i=n.h,r=n.$,s=n.u;let c;null===s?(st(t,n,dt="svg"===r||"foreignObject"!==r&&dt),null!==l&&null!==i?((t,n,e,o,l=!1)=>{let i,r,s=0,c=0,u=0,a=0,f=n.length-1,d=n[0],p=n[f],h=o.length-1,m=o[0],v=o[h];for(;s<=f&&c<=h;)if(null==d)d=n[++s];else if(null==p)p=n[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--h];else if(wt(d,m,l))bt(d,m,l),d=n[++s],m=o[++c];else if(wt(p,v,l))bt(p,v,l),p=n[--f],v=o[--h];else if(wt(d,v,l))"slot"!==d.$&&"slot"!==v.$||ht(d.S.parentNode,!1),bt(d,v,l),kt(t,d.S,p.S.nextSibling),d=n[++s],v=o[--h];else if(wt(p,m,l))"slot"!==d.$&&"slot"!==v.$||ht(p.S.parentNode,!1),bt(p,m,l),kt(t,p.S,d.S),p=n[--f],m=o[++c];else{for(u=-1,a=s;a<=f;++a)if(n[a]&&null!==n[a].m&&n[a].m===m.m){u=a;break}u>=0?(r=n[u],r.$!==m.$?i=pt(n&&n[c],e,u):(bt(r,m,l),n[u]=void 0,i=r.S),m=o[++c]):(i=pt(n&&n[c],e,c),m=o[++c]),i&&kt(yt(d.S).parentNode,i,yt(d.S))}s>f?mt(t,null==o[h+1]?null:o[h+1].S,e,o,c,h):c>h&&vt(n,s,f)})(o,l,n,i,e):null!==i?(null!==t.u&&(o.textContent=""),mt(o,null,n,i,0,i.length-1)):!e&&null!==l&&vt(l,0,l.length-1),dt&&"svg"===r&&(dt=!1)):(c=o["s-cr"])?c.parentNode.textContent=s:t.u!==s&&(o.data=s)},gt=[],$t=t=>{let n,e,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const l=t["s-sn"];for(o=e.length-1;o>=0;o--)if(n=e[o],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"])if(D(n,l)){let e=gt.find((t=>t.k===n));at=!0,n["s-sn"]=n["s-sn"]||l,e?(e.k["s-sh"]=t["s-hn"],e.j=t):(n["s-sh"]=t["s-hn"],gt.push({j:t,k:n})),n["s-sr"]&>.map((t=>{D(t.k,n["s-sn"])&&(e=gt.find((t=>t.k===n)),e&&!t.j&&(t.j=e.j))}))}else gt.some((t=>t.k===n))||gt.push({k:n})}1===t.nodeType&&$t(t)}},St=t=>{t.p&&t.p.ref&&t.p.ref(null),t.h&&t.h.map(St)},kt=(t,n,e)=>null==t?void 0:t.insertBefore(n,e),jt=(t,n)=>{if(n&&!t.O&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.O=()=>{n["s-p"].splice(e-1,1),o()})))}},Ot=(t,n)=>{if(t.o|=16,4&t.o)return void(t.o|=512);jt(t,t.T);const e=()=>xt(t,n);if(!n)return O(e);queueMicrotask((()=>{e()}))},xt=(t,n)=>{const e=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return n?(t.o|=256,t.C&&(t.C.map((([t,n])=>Ut(o,t,n,e))),t.C=void 0),l=Ut(o,"componentWillLoad",void 0,e)):l=Ut(o,"componentWillUpdate",void 0,e),l=Et(l,(()=>Ut(o,"componentWillRender",void 0,e))),Et(l,(()=>Ct(t,o,n)))},Et=(t,n)=>Tt(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),Tt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Ct=async(t,n,e)=>{var o;const l=t.$hostElement$,i=l["s-rc"];e&&(t=>{const n=t.M,e=t.$hostElement$,o=n.o,l=((t,n)=>{var e;const o=z(n),l=a.get(o);if(!p.document)return o;if(t=11===t.nodeType?t:p.document,l)if("string"==typeof l){let i,r=_.get(t=t.head||t);if(r||_.set(t,r=new Set),!r.has(o)){{i=p.document.createElement("style"),i.innerHTML=l;const o=null!=(e=h.N)?e:E(p.document);if(null!=o&&i.setAttribute("nonce",o),!(1&n.o))if("HEAD"===t.nodeName){const n=t.querySelectorAll("link[rel=preconnect]"),e=n.length>0?n[n.length-1].nextSibling:t.querySelector("style");t.insertBefore(i,(null==e?void 0:e.parentNode)===t?e:null)}else if("host"in t)if(v){const n=new CSSStyleSheet;n.replaceSync(l),w?t.adoptedStyleSheets.unshift(n):t.adoptedStyleSheets=[n,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");n?n.innerHTML=l+n.innerHTML:t.prepend(i)}else t.append(i);1&n.o&&t.insertBefore(i,null)}4&n.o&&(i.innerHTML+=f),r&&r.add(o)}}else t.adoptedStyleSheets.includes(l)||(w?t.adoptedStyleSheets.push(l):t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);10&o&&(e["s-sc"]=l,e.classList.add(l+"-h"))})(t);Mt(t,n,l,e),i&&(i.map((t=>t())),l["s-rc"]=void 0);{const n=null!=(o=l["s-p"])?o:[],e=()=>Nt(t);0===n.length?e():(Promise.all(n).then(e),t.o|=4,n.length=0)}},Mt=(t,n,e,o)=>{try{n=n.render&&n.render(),t.o&=-17,t.o|=2,((t,n,e=!1)=>{var o,l,i,r;const s=t.$hostElement$,c=t.M,u=t.R||B(null,null),a=(t=>t&&t.$===q)(n)?n:H(null,null,n);if(Z=s.tagName,c.A&&(a.p=a.p||{},c.A.map((([t,n])=>a.p[n]=s[t]))),e&&a.p)for(const t of Object.keys(a.p))s.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(a.p[t]=s[t]);if(a.$=null,a.o|=4,t.R=a,a.S=u.S=s.shadowRoot||s,ut=!(!(1&c.o)||128&c.o),K=s["s-cr"],at=!1,bt(u,a,e),h.o|=1,ft){$t(a.S);for(const t of gt){const n=t.k;if(!n["s-ol"]&&p.document){const t=p.document.createTextNode("");t["s-nr"]=n,kt(n.parentNode,n["s-ol"]=t,n)}}for(const t of gt){const n=t.k,s=t.j;if(s){const t=s.parentNode;let e=s.nextSibling;{let i=null==(o=n["s-ol"])?void 0:o.previousSibling;for(;i;){let o=null!=(l=i["s-nr"])?l:null;if(o&&o["s-sn"]===n["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===n||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){e=o;break}}i=i.previousSibling}}(!e&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==e)&&n!==e&&(!n["s-hn"]&&n["s-ol"]&&(n["s-hn"]=n["s-ol"].parentNode.nodeName),kt(t,n,e),1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(i=n["s-ih"])&&i)),n&&"function"==typeof s["s-rf"]&&s["s-rf"](s)}else 1===n.nodeType&&(e&&(n["s-ih"]=null!=(r=n.hidden)&&r),n.hidden=!0)}}at&&F(a.S),h.o&=-2,gt.length=0,K=void 0})(t,n,o)}catch(n){c(n,t.$hostElement$)}return null},Nt=t=>{const n=t.$hostElement$,e=t.t,o=t.T;Ut(e,"componentDidRender",void 0,n),64&t.o?Ut(e,"componentDidUpdate",void 0,n):(t.o|=64,Ft(n),Ut(e,"componentDidLoad",void 0,n),t.U(n),o||At()),t.F(n),t.O&&(t.O(),t.O=void 0),512&t.o&&j((()=>Ot(t,!1))),t.o&=-517},Rt=t=>{var n;{const e=i(t),o=null==(n=null==e?void 0:e.$hostElement$)?void 0:n.isConnected;return o&&2==(18&e.o)&&Ot(e,!1),o}},At=()=>{j((()=>nt(p,"appload",{detail:{namespace:"ripple"}})))},Ut=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){c(t,o)}},Ft=t=>t.classList.add("hydrated"),Lt=(t,n,e,o)=>{const l=i(t);if(!l)return;if(!l)throw Error(`Couldn't find host element for "${o.i}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=l.$hostElement$,s=l.L.get(n),u=l.o,a=l.t;if(e=Q(e,o.P[n][0]),(!(8&u)||void 0===s)&&e!==s&&(!Number.isNaN(s)||!Number.isNaN(e))&&(l.L.set(n,e),a)){if(o.D&&128&u){const t=o.D[n];t&&t.map((t=>{try{a[t](e,s,n)}catch(t){c(t,r)}}))}if(2==(18&u)){if(a.componentShouldUpdate&&!1===a.componentShouldUpdate(e,s,n))return;Ot(l,!1)}}},Pt=(t,n,e)=>{var o,l;const r=t.prototype;if(n.P||n.D||t.watchers){t.watchers&&!n.D&&(n.D=t.watchers);const s=Object.entries(null!=(o=n.P)?o:{});if(s.map((([t,[o]])=>{if(31&o||2&e&&32&o){const{get:l,set:s}=Object.getOwnPropertyDescriptor(r,t)||{};l&&(n.P[t][0]|=2048),s&&(n.P[t][0]|=4096),(1&e||!l)&&Object.defineProperty(r,t,{get(){{if(!(2048&n.P[t][0]))return((t,n)=>i(this).L.get(n))(0,t);const e=i(this),o=e?e.t:r;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,t,{set(l){const r=i(this);if(r){if(s){const e=32&o?this[t]:r.$hostElement$[t];return void 0===e&&r.L.get(t)?l=r.L.get(t):!r.L.get(t)&&e&&r.L.set(t,e),s.call(this,Q(l,o)),void Lt(this,t,l=32&o?this[t]:r.$hostElement$[t],n)}{if(!(1&e&&4096&n.P[t][0]))return Lt(this,t,l,n),void(1&e&&!r.t&&r.W.then((()=>{4096&n.P[t][0]&&r.t[t]!==r.L.get(t)&&(r.t[t]=l)})));const i=()=>{const e=r.t[t];!r.L.get(t)&&e&&r.L.set(t,e),r.t[t]=Q(l,o),Lt(this,t,r.t[t],n)};r.t?i():r.W.then((()=>i()))}}}})}else 1&e&&64&o&&Object.defineProperty(r,t,{value(...n){var e;const o=i(this);return null==(e=null==o?void 0:o.I)?void 0:e.then((()=>{var e;return null==(e=o.t)?void 0:e[t](...n)}))}})})),1&e){const e=new Map;r.attributeChangedCallback=function(t,o,l){h.jmp((()=>{var s;const c=e.get(t);if(this.hasOwnProperty(c))l=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==l)return;if(null==c){const e=i(this),r=null==e?void 0:e.o;if(e&&r&&!(8&r)&&128&r&&l!==o){const i=e.t,r=null==(s=n.D)?void 0:s[t];null==r||r.forEach((n=>{null!=i[n]&&i[n].call(i,l,o,t)}))}return}}const u=Object.getOwnPropertyDescriptor(r,c);(l=(null!==l||"boolean"!=typeof this[c])&&l)===this[c]||u.get&&!u.set||(this[c]=l)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=n.D)?l:{}),...s.filter((([t,n])=>15&n[0])).map((([t,o])=>{var l;const i=o[1]||t;return e.set(i,t),512&o[0]&&(null==(l=n.A)||l.push([t,i])),i}))]))}}return t},Dt=(t,n)=>{Ut(t,"connectedCallback",void 0,n)},Wt=(t,n)=>{Ut(t,"disconnectedCallback",void 0,n||t)},It=(t,n={})=>{var e;if(!p.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],l=n.exclude||[],r=p.customElements,s=p.document.head,d=s.querySelector("meta[charset]"),m=p.document.createElement("style"),w=[];let y,b=!0;Object.assign(h,n),h.l=new URL(n.resourcesUrl||"./",p.document.baseURI).href;let g=!1;if(t.map((t=>{t[1].map((n=>{var e;const s={o:n[0],i:n[1],P:n[2],_:n[3]};4&s.o&&(g=!0),s.P=n[2],s._=n[3],s.A=[],s.D=null!=(e=n[4])?e:{};const f=s.i,d=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const e={o:0,$hostElement$:t,M:n,L:new Map};e.I=new Promise((t=>e.F=t)),e.W=new Promise((t=>e.U=t)),t["s-p"]=[],t["s-rc"]=[];const o=e;t.__stencil__getHostRef=()=>o})(t=this,s),1&s.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${s.i}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else U.call(t,s)}connectedCallback(){const t=i(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,zt(this,t,s._)),y&&(clearTimeout(y),y=null),b?w.push(this):h.jmp((()=>(t=>{if(!(1&h.o)){const n=i(t);if(!n)return;const e=n.M,o=()=>{};if(1&n.o)zt(t,n,e._),(null==n?void 0:n.t)?Dt(n.t,t):(null==n?void 0:n.W)&&n.W.then((()=>Dt(n.t,t)));else{n.o|=1,12&e.o&&(t=>{if(!p.document)return;const n=t["s-cr"]=p.document.createComment("");n["s-cn"]=!0,kt(t,n,t.firstChild)})(t);{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){jt(n,n.T=e);break}}e.P&&Object.entries(e.P).map((([n,[e]])=>{if(31&e&&t.hasOwnProperty(n)){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e)=>{let o;if(!(32&n.o)){if(n.o|=32,e.H){const l=((t,n)=>{const e=t.i.replace(/-/g,"_"),o=t.H;if(!o)return;const l=u.get(o);return l?l[e]:import(`./${o}.entry.js`).then((t=>(u.set(o,t),t[e])),(t=>{c(t,n.$hostElement$)}))
|
|
2
2
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(e,n);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${e.i}#${n.B}" was not found`);o.isProxied||(e.D=o.watchers,Pt(o,e,2),o.isProxied=!0);const i=()=>{};n.o|=8;try{new o(n)}catch(n){c(n,t)}n.o&=-9,n.o|=128,i(),Dt(n.t,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>n.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const n=z(e);if(!a.has(n)){const o=()=>{};((t,n,e)=>{let o=a.get(t);v&&e?(o=o||new CSSStyleSheet,"string"==typeof o?o=n:o.replaceSync(n)):o=n,a.set(t,o)})(n,t,!!(1&e.o)),o()}}}const l=n.T,i=()=>Ot(n,!0);l&&l["s-rc"]?l["s-rc"].push(i):i()})(t,n,e)}o()}})(this))))}disconnectedCallback(){h.jmp((()=>(async t=>{if(!(1&h.o)){const n=i(t);(null==n?void 0:n.q)&&(n.q.map((t=>t())),n.q=void 0),(null==n?void 0:n.t)?Wt(n.t,t):(null==n?void 0:n.W)&&n.W.then((()=>Wt(n.t,t)))}_.has(t)&&_.delete(t),t.shadowRoot&&_.has(t.shadowRoot)&&_.delete(t.shadowRoot)})(this))),h.raf((()=>{var t;const n=i(this);if(!n)return;const e=w.findIndex((t=>t===this));e>-1&&w.splice(e,1),(null==(t=null==n?void 0:n.R)?void 0:t.S)instanceof Node&&!n.R.S.isConnected&&delete n.R.S}))}componentOnReady(){var t;return null==(t=i(this))?void 0:t.W}};s.H=t[0],l.includes(f)||r.get(f)||(o.push(f),r.define(f,Pt(d,s,1)))}))})),o.length>0&&(g&&(m.textContent+=f),m.textContent+=o.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",m.innerHTML.length)){m.setAttribute("data-styles","");const t=null!=(e=h.N)?e:E(p.document);null!=t&&m.setAttribute("nonce",t),s.insertBefore(m,d?d.nextSibling:s.firstChild)}b=!1,w.length?w.map((t=>t.connectedCallback())):h.jmp((()=>y=setTimeout(At,30)))},_t=(t,n)=>n,zt=(t,n,e)=>{e&&p.document&&e.map((([e,o,l])=>{const i=Bt(p.document,t,e),r=Ht(n,l),s=qt(e);h.ael(i,o,r,s),(n.q=n.q||[]).push((()=>h.rel(i,o,r,s)))}))},Ht=(t,n)=>e=>{var o;try{256&t.o?null==(o=t.t)||o[n](e):(t.C=t.C||[]).push([n,e])}catch(n){c(n,t.$hostElement$)}},Bt=(t,n,e)=>4&e?t:8&e?p:n,qt=t=>({passive:!!(1&t),capture:!!(2&t)}),Vt=t=>h.N=t;export{_t as F,q as H,X as a,It as b,tt as c,Rt as f,o as g,H as h,m as p,r,Vt as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,r,e,i){function n(t){return t instanceof e?t:new e((function(r){r(t)}))}return new(e||(e=Promise))((function(e,a){function s(t){try{u(i.next(t))}catch(t){a(t)}}function o(t){try{u(i["throw"](t))}catch(t){a(t)}}function u(t){t.done?e(t.value):n(t.value).then(s,o)}u((i=i.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(r){return u([t,r])}}function u(o){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(e=0)),e)try{if(i=1,n&&(a=o[0]&2?n["return"]:o[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;if(n=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;n=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(a=e.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){e.label=o[1];break}if(o[0]===6&&e.label<a[1]){e.label=a[1];a=o;break}if(a&&e.label<a[2]){e.label=a[2];e.ops.push(o);break}if(a[2])e.ops.pop();e.trys.pop();continue}o=r.call(t,e)}catch(t){o=[6,t];n=0}finally{i=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,r,e){if(e||arguments.length===2)for(var i=0,n=r.length,a;i<n;i++){if(a||!(i in r)){if(!a)a=Array.prototype.slice.call(r,0,i);a[i]=r[i]}}return t.concat(a||Array.prototype.slice.call(r))};System.register(["./p-B0uE_ID-.system.js","./p-CKTNcFzW.system.js"],(function(t){"use strict";var r,e,i,n,a;return{setters:[function(t){r=t.h},function(t){e=t.i;i=t.s;n=t.c;a=t.a}],execute:function(){t({b:d,c:U,d:L,e:N,f:I,g:D,h:z,i:P,j:X,k:S,l:w,m:f,n:Q,o:J,r:H});var s={salmon:"#ff5f4e",cyan:"#19a1a9",forest:"#088000",midnight:"#2e1b46",lavender:"#8b86ca",periwinkle:"#575195",gray:"#6b6b6b"};var o=t("a",{doughnut:{size:155,colors:[s.forest,s.gray],thickness:.73,padding:25,category:"doughnut"},doughnut1:{size:130,colors:[s.lavender,s.midnight,s.gray],thickness:.5,padding:90,category:"doughnut"},doughnut2:{size:130,colors:[s.periwinkle,s.cyan,s.midnight,s.salmon,s.gray],thickness:.5,padding:90,category:"doughnut"},doughnut3:{size:130,colors:[s.lavender,s.midnight,"#0089e4",s.forest,"#ea8500","#d54f41","#146ca9"],thickness:.5,padding:90,category:"doughnut"},bar:{size:350,colors:[s.forest,s.gray],padding:0,category:"stackedBar"},bar2:{size:400,colors:[s.gray,s.lavender,s.periwinkle,s.midnight,s.cyan,s.salmon],padding:0,category:"stackedBar"},bar3:{size:300,colors:["#0d696e",s.cyan,"#8e4129",s.salmon],padding:0,category:"stackedBar"},bar4:{size:400,colors:[s.salmon,s.cyan,s.periwinkle],padding:0,category:"stackedBar"},bar5:{size:400,colors:[s.gray,s.lavender,s.midnight,"#0089e4",s.forest,"#ea8500","#d54f41","#146ca9"],padding:0,category:"stackedBar"},bar6:{size:400,colors:[s.lavender],padding:0,category:"simpleBar"},bar7:{size:400,colors:[s.periwinkle,s.cyan,s.salmon,s.gray],padding:0,category:"simpleBar"}});function u(t){return t==="percentage"||t==="amount"?"show-values":""}var c=e.formatMessage({id:"chart.hiddenValues",defaultMessage:"Values are hidden when too close together.",description:"Text displayed when a chart has some values hidden"});var h=e.formatMessage({id:"chart.clickToSeeDetails",defaultMessage:"Click or use arrow keys to see details.",description:"Text displayed, guiding user to interact to see more details."});function f(t){return t>999||t<-999?Math.round(t/100)/10+"K":t}function d(t,r,e){return e?Math.round(t*100/r):Math.round(t*1e4/r)/100}function l(t,r){return t*360/r}function v(t){return parseFloat((Math.floor(t*100)/100).toFixed(2))}function g(t,r,e,i){var n=v(t+t*r*Math.cos(Math.PI*e/180));var a=v(t+t*r*Math.sin(Math.PI*e/180));if(i!==undefined){var s=v(t+t*r*Math.cos(Math.PI*i/180));var o=v(t+t*r*Math.sin(Math.PI*i/180));return{x1:n,y1:a,x2:s,y2:o}}return{x:n,y:a}}function p(t,r,e,i,n){var a=v(n/2*t);return"A ".concat(a,", ").concat(a," 0 ").concat(r," ").concat(v(e),", ").concat(v(i))}function b(t,r,e,i,n){var a=(t-r)*(n-i)/(e-r)+i;return a<i?i:a>n?n:a}function m(t){return b(t,300,900,70,150)}function y(t){return Math.round(t/m(t))}function w(t,r){var e=t/r;var i=Math.pow(10,Math.floor(Math.log10(e)));var n=e/i;var a;if(n>5){a=10*i}else if(n>3){a=5*i}else if(n>2){a=3*i}else if(n>1.5){a=2*i}else if(n>1){a=1.5*i}else{a=i}return a}function x(t){if(this.popoverEl&&this.popoverEl.open&&t.key==="Enter"){var r=this.popoverEl.querySelector("button");r&&r.click()}}function k(t,r){if(this.popoverEl&&!this.isTabbing){r.coords={x:t.clientX,y:t.clientY};A(this.popoverEl,r);E(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),r)}}function M(t,r){if(this.popoverEl&&this.isTabbing){this.focusedSliceId=r.id;r.coords=a(t.target);r.coords.x=r.coords.x+30;r.coords.y=r.coords.y+30;A(this.popoverEl,r);E(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),r)}}function z(t){switch(t.key){case"ArrowUp":case"ArrowLeft":t.preventDefault();this.isTabbing=true;C.call(this);break;case"ArrowRight":case"ArrowDown":t.preventDefault();this.isTabbing=true;_.call(this);break;case"Tab":S.call(this);break;case"Escape":this.popoverEl.open=false;this.userIsNavigating=false;break}}function A(t,r){t.open=false;if(r.title&&r.text){t.sliceDetails=Object.assign({},r);window.setTimeout((function(){return t.open=true}),30)}}function _(){var t=n(document.activeElement);var r=(this.sliceEls.indexOf(t)+1)%this.sliceEls.length;B.call(this,r)}function C(){if(this.sliceEls){var t=n(document.activeElement);var r=this.sliceEls.indexOf(t);if(r===-1){r=0}else if(r===0){r=this.sliceEls.length-1}else{r-=1}B.call(this,r)}}function B(t){var r=this;if(this.sliceEls&&this.el){this.userIsNavigating=true;this.componentWrapperEl.tabIndex=-1;this.el.focusable=false;this.sliceEls.map((function(t){t.tabIndex=-1;t.focusable=false}));this.sliceEls[t].tabIndex=0;this.sliceEls[t].focusable=true;this.sliceEls[t].focus();this.focusedSliceId=this.sliceEls[t].id;window.setTimeout((function(){if(r.popoverEl){r.popoverEl.open=true}}),10)}}function S(){var t=this;this.focusedSliceId=undefined;this.sliceEls&&this.sliceEls.map((function(t){t.tabIndex=-1;t.focusable=false}));this.userIsNavigating=false;window.setTimeout((function(){t.componentWrapperEl.tabIndex=0;t.el.focusable=true;if(t.popoverEl){t.popoverEl.open=false}}),100)}function D(t){return __awaiter(this,void 0,void 0,(function(){var r,e,i,n;var a=this;return __generator(this,(function(u){this.slicesDetails=[];r=0;e=Array.from(this.el.children);this.total=e.reduce((function(t,r){var e=parseInt(r.getAttribute("amount")||"0");return t+e}),0);i=__spreadArray([],o[t].colors,true);if(this.chartType==="bar2"){if(e.length<=5){i.splice(1,1)}if(e.length<=4){i.splice(2,1)}}if(t==="bar3"&&e.length===2){i=[i[1],i[3]]}if(t==="doughnut2"&&e.length<5){i.splice(2,1);if(e.length<4){i.shift()}}if(t==="bar5"&&!this.notStartedColor){i.shift()}n=0;e.forEach((function(e,o){var u=e.getAttribute("amount");if(u==null)return;var c=parseInt(u||"0");var h=d(c,a.total,true);var f=o;if(t==="bar6"){f=0}var l={amount:c,visualAmount:c,perc:h,legend:e.getAttribute("legend"),color:i[f]||s.gray,offset:r,id:"".concat(a.uid,"-").concat(n+1),title:e.getAttribute("popover-title"),text:e.getAttribute("popover-text"),buttonText:e.getAttribute("popover-button-text"),sliceRef:e,inSmallCluster:false,index:n};r+=c;a.slicesDetails.push(l);n++}));return[2]}))}))}function F(t,r){var e=__spreadArray([],t,true).sort((function(t,r){return t.amount===r.amount?0:t.amount>r.amount?-1:1}));var i=0;e.filter((function(t){return t.amount>0})).forEach((function(t,n){var a=e[n===0?e.length-1:n-1];var s=e[n===e.length-1?0:n+1];var o=d(a.amount,r,true);var u=d(s.amount,r,true);var c=t.perc===0?8:5;var h=t.perc<4;var f=o<c;var l=u<c;var v=h&&(f||l);t.inSmallCluster=v;t.offset=i;i+=t.amount}));return e}function T(t,r,e){var i=l(r,this.total)-90;var n=t/this.total*360;var a=i+n;var s=n>180?"1 1":"0 1";var o=n>180?"1 0":"0 0";var u=this.chartDetails.size/2;var c=this.chartDetails.thickness;var h=1;var f=e==="doughnut";var d=1.5;var v=f?2.25:3;if(n===360){a-=.01}var b=g(u,h,i+d,a);var m=g(u,c,i+v,a);var y="M ".concat(b.x1,", ").concat(b.y1," ");var w=p(h,s,b.x2,b.y2,this.chartDetails.size);var x=" L ".concat(m.x2,", ").concat(m.y2," ");var k=p(c,o,m.x1,m.y1,this.chartDetails.size);return y+w+x+k+" z"}function I(){var t=e.formatMessage({id:"chart.instructions",defaultMessage:"Use arrow keys to browse elements, press Tab to exit.",description:"For screen readers only, instructions on how to interact with the chart component"});return r("div",{id:"chart-instructions"},t)}function j(){return r("defs",null,r("filter",{id:"wmHoverDropShadow"},r("feGaussianBlur",{stdDeviation:"3"}),r("feOffset",{result:"offsetblur"}),r("feFlood",{"flood-color":"#333"}),r("feComposite",{operator:"in",in2:"offsetblur"}),r("feMerge",null,r("feMergeNode",null),r("feMergeNode",{in:"SourceGraphic"}))))}function K(t,r,e){var i=r.map((function(t){return l(t.amount,e)}));var n=i.some((function(r){return r!==0&&r<t}));if(n){var a=i.map((function(r){return r==0?r:Math.max(r,t)}));var s=a.reduce((function(r,e){return r+(e>t&&e!==0?e:0)}),0);var o=a.reduce((function(r,e){return r+(e>t&&e!==0?0:e)}),0);var u=360-o;var c=s-u;var h=c/u;var f=a.map((function(r){return r>t?r-h*r:r==0?0:t}));var d=0;r=r.map((function(t,r){var i=f[r]/360*e;var n=d;d+=i;return Object.assign(Object.assign({},t),{visualAmount:i,offset:n})}))}return r}function N(t){var e=this;var i=this.chartDetails.size+this.chartDetails.padding;var n=t==="doughnut";var a=n?this.slicesDetails:F(this.slicesDetails,this.total);a=K(7,a,this.total);var s=a[0].amount;var o=d(s,this.total,true);if(o===0&&s>0){o="<1%"}else if(o===100&&s<this.total){o=">99%"}else{o=o+"%"}return r("div",{class:"chart-wrapper doughnut-wrapper"},r("svg",{width:i+"px",height:i+"px",id:"graphic-".concat(this.uid),class:"doughnut-svg"},j(),a.map((function(r){return O.call(e,r,t)})),W.call(this),n?r("text",{class:"value",x:"50%",y:"50%","font-size":"1.5rem","font-weight":"500","text-anchor":"middle","dominant-baseline":"middle"},o):r("g",{transform:"translate(".concat(this.chartDetails.padding/2,", ").concat(this.chartDetails.padding/2,")"),"text-anchor":"middle","dominant-baseline":"middle"},a.map((function(t){return t.amount>0&&!t.inSmallCluster?G.call(e,t):""})))))}function E(t,r){t.forEach((function(t){if(t.dataset.segmentindex&&parseInt(t.dataset.segmentindex)!==r.index){t.classList.add("faded")}else{t.classList.remove("faded")}}))}function H(t){t.forEach((function(t){t.classList.remove("faded")}))}function O(t,e){var i=this;var n=d(t.amount,this.total,true)+"%";return!isNaN(t.amount)&&r("g",{transform:"translate(".concat(this.chartDetails.padding/2,", ").concat(this.chartDetails.padding/2,")")},r("path",{id:t.id,class:"segment doughnut-segment",fill:t.visualAmount?t.color:"transparent",d:T.call(this,t.visualAmount,t.offset,e),onClick:function(r){return k.call(i,r,t)},onFocus:function(r){return M.call(i,r,t)},onKeyDown:function(t){return x.call(i,t)},role:"img","aria-label":"".concat(t.legend,", ").concat(n),"data-segmentindex":t.index}))}function W(){return this.isTabbing?r("g",{transform:"translate(".concat(this.chartDetails.padding/2,", ").concat(this.chartDetails.padding/2,")")},r("use",{tabindex:-1,id:"kfbg1",xlinkHref:"#".concat(this.focusedSliceId)}),r("use",{tabindex:-1,id:"kfstroke",xlinkHref:"#".concat(this.focusedSliceId)}),r("use",{tabindex:-1,id:"kfbg2",xlinkHref:"#".concat(this.focusedSliceId)})):""}function G(t){var e=l(t.offset+t.visualAmount/2,this.total);var i=g(this.chartDetails.size/2,1.4,e-90),n=i.x,a=i.y;var s;if(t.perc===0&&t.amount>0){s="<1%"}else if(t.perc===100&&t.amount<this.total){s=">99%"}else{s=t.perc+"%"}return r("text",{class:"value",x:n+"px",y:a+"px","data-segmentindex":t.index},s)}function L(t){var e=this;var i=t==="bar";var n=this.el.shadowRoot.querySelectorAll(".value");if(n.length>0){requestAnimationFrame((function(){var t=[];var r=4;var i=false;n.forEach((function(e){e.classList.remove("hidden");var n=parseInt(e.dataset.value);if(t.length>0&&n!=0){var a=e.getBoundingClientRect().left-r;t.forEach((function(t){var r=parseInt(t.dataset.value);var s=t.getBoundingClientRect().right>a;if(s){var o=n<r?e:t;o.classList.add("hidden");i=true}}))}if(!e.classList.contains("hidden")&&n>0){t.push(e)}}));(e.isBar||e.isDoughnut)&&e.showHiddenValuesMessage(i)}))}return r("div",{class:"chart-wrapper bar-wrapper"},i?r("div",{class:"single-perc"},d(this.slicesDetails[0].amount,this.total,true)+"%"):"",this.chartType==="bar3"&&this.drawAxis(),r("div",{class:"inner-stacked-bar-wrapper ".concat(u(this.valueFormat))},!i?r("div",{class:"values ".concat(this.valueFormat)},this.slicesDetails.map((function(t){return e.renderBarText(t,5)}))):"",r("div",{class:"stacked-bar-segments-wrapper"},this.slicesDetails.map((function(t){return R.call(e,t,5)}))),i?Q.call(this):""),this.chartType==="bar3"?r("div",{class:"bar3-axis-label","aria-hidden":"true"},r("span",null,"0%"),r("span",null,"100%")):"")}function R(t,e){var i=this;var n=d(t.amount,this.total,false);var a=this.el.shadowRoot.querySelector(".stacked-bar-segments-wrapper");var s=a?a.offsetWidth:this.el.offsetWidth;var o=n/100*s>=e;var u=o||t.amount==0?"".concat(n,"%"):"".concat(e,"px");var c="";if(this.valueFormat=="percentage"){c="".concat(d(t.amount,this.total,true)," %")}else if(this.valueFormat=="amount"){c=t.amount.toString()}return r("div",{class:"segment stacked-bar-segment ".concat(d(t.amount,this.total,false)===0?"zero":""," ").concat(o?"":"fixed-width"),style:{backgroundColor:t.color,width:u},onClick:function(r){return k.call(i,r,t)},onFocus:function(r){return M.call(i,r,t)},onKeyDown:function(t){return x.call(i,t)},"data-segmentindex":t.index},r("span",{class:"sr-only"},"".concat(t.legend," ").concat(c)))}function U(t){var e=this;var n=this.slicesDetails.map((function(t){return t.amount})).reduce((function(t,r){return t>r?t:r}));var a=parseInt(getComputedStyle(this.el).getPropertyValue("--labelWidth"),10);var s=48;var o=this.el.getBoundingClientRect().width;var c=o-a-s;var h=y(c);var d=w(n,h);var l=h*d;var v=Math.floor((l-n)/d);h-=v;this.el.style.setProperty("--backgroundSize",100/h+"%");this.el.style.setProperty("--labelWidth",this.labelWidth);if(t==="bar7"&&!this.showBarLegend){this.el.style.setProperty("--labelWidth","0px")}var g=[];this.slicesDetails.forEach((function(r){r.legend&&g.push(V(r.legend,e.showBarLegend,t));g.push(q.call(e,r,d,h,n))}));var p=[];for(var b=1;b<=h;b++){var m=f(i(b,d));p.push(r("div",{class:"tick"},r("span",null,m)))}var x=t==="bar6"&&this.showGrid&&this.el.getBoundingClientRect().width>300;return r("div",{class:"chart-wrapper simple-bar-wrapper"},r("div",{class:"chart ".concat(u(this.valueFormat))},x&&r("div",{class:"gridlines"}),r("div",{class:"rows"},g)),x&&r("div",{class:"x-axis","aria-hidden":"true"},r("div",{class:"zero"},r("span",null,"0")),p))}function V(t,e,i){var n=i==="bar7"&&!e?" hidden":"";return r("label",{class:"label".concat(n)},t)}function q(t,e,i,n){var a=this;var s=this.currentChartType==="bar6"?e*i:n;var o=d(t.amount,s,false);var u=o?o+"%":"1px";var c=f(t.amount);var h=this.valueFormat==="amount"?c:"";if(this.currentChartType==="bar6"&&this.valueFormat==="percentage"){h=t.amount+"%"}else if(this.currentChartType==="bar7"&&this.valueFormat==="percentage"){h=(this.total===0?"0":d(t.amount,this.total,true))+"%"}return r("div",{class:"bar segment",style:{backgroundColor:t.color,width:u},onClick:function(r){return k.call(a,r,t)},onFocus:function(r){return M.call(a,r,t)},onKeyDown:function(t){return x.call(a,t)},"data-segmentindex":t.index},r("div",{class:"value"},h))}function P(t){var e=this;if(this.showLegend){var i=this.slicesDetails.reduce((function(t,r){return t=r.inSmallCluster?true:t}),false);this.isDoughnut&&this.showHiddenValuesMessage(i);return r("div",{class:"legend-wrapper"},r("div",{class:"legend ".concat(t," ").concat(this.mode==="bar"?"--top":"--bottom"),"aria-hidden":"true"},this.slicesDetails.map((function(t){var r=e.printModeFormat=="amount"?"".concat(t.amount,"/").concat(e.total):"".concat(d(t.amount,e.total,true),"%");if(!!t.amount||!!t.legend){return J.call(e,{key:t.legend,color:t.color},r,t)}}))),this.isDoughnut&&!this.printMode&&X())}}function J(t,e,i){var n=this;if(e===void 0){e=""}if(i===void 0){i=null}var a=function(t){if(i){i.coords={x:t.clientX,y:t.clientY};A(n.popoverEl,i);E(Array.from(n.el.shadowRoot.querySelectorAll("[data-segmentindex")),i)}};return r("div",{class:"legend-item",onClick:function(t){return a(t)},"data-segmentindex":i?i.index:null},r("div",{class:"legend-color",style:{backgroundColor:t.color}}),r("div",{class:"legend-text"},t.key,e&&r("span",{class:"print-value ".concat(this.printMode?"force-visible":"")},": ",e)))}function Q(){if(this.completionMessage){return r("div",{class:"completion-message"},this.completionMessage)}}function X(){return r("div",{class:"hidden-values-warning hidden"},c,r("br",null),h)}}}}));
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,r,e,i){function n(t){return t instanceof e?t:new e((function(r){r(t)}))}return new(e||(e=Promise))((function(e,a){function s(t){try{u(i.next(t))}catch(t){a(t)}}function o(t){try{u(i["throw"](t))}catch(t){a(t)}}function u(t){t.done?e(t.value):n(t.value).then(s,o)}u((i=i.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(r){return u([t,r])}}function u(o){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(e=0)),e)try{if(i=1,n&&(a=o[0]&2?n["return"]:o[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;if(n=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;n=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(a=e.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){e.label=o[1];break}if(o[0]===6&&e.label<a[1]){e.label=a[1];a=o;break}if(a&&e.label<a[2]){e.label=a[2];e.ops.push(o);break}if(a[2])e.ops.pop();e.trys.pop();continue}o=r.call(t,e)}catch(t){o=[6,t];n=0}finally{i=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,r,e){if(e||arguments.length===2)for(var i=0,n=r.length,a;i<n;i++){if(a||!(i in r)){if(!a)a=Array.prototype.slice.call(r,0,i);a[i]=r[i]}}return t.concat(a||Array.prototype.slice.call(r))};System.register(["./p-Dd2F6qzY.system.js","./p-Dg5uzcYb.system.js"],(function(t){"use strict";var r,e,i,n,a;return{setters:[function(t){r=t.h},function(t){e=t.i;i=t.s;n=t.c;a=t.a}],execute:function(){t({b:d,c:R,d:q,e:K,f:j,g:B,h:z,i:Y,j:Q,k:S,l:w,m:f,n:J,o:P,r:O});var s={salmon:"#ff5f4e",cyan:"#19a1a9",forest:"#088000",midnight:"#2e1b46",lavender:"#8b86ca",periwinkle:"#575195",gray:"#6b6b6b"};var o=t("a",{doughnut:{size:155,colors:[s.forest,s.gray],thickness:.73,padding:25,category:"doughnut"},doughnut1:{size:130,colors:[s.lavender,s.midnight,s.gray],thickness:.5,padding:90,category:"doughnut"},doughnut2:{size:130,colors:[s.periwinkle,s.cyan,s.midnight,s.salmon,s.gray],thickness:.5,padding:90,category:"doughnut"},doughnut3:{size:130,colors:[s.lavender,s.midnight,"#0089e4",s.forest,"#ea8500","#d54f41","#146ca9"],thickness:.5,padding:90,category:"doughnut"},bar:{size:350,colors:[s.forest,s.gray],padding:0,category:"stackedBar"},bar2:{size:400,colors:[s.gray,s.lavender,s.periwinkle,s.midnight,s.cyan,s.salmon],padding:0,category:"stackedBar"},bar3:{size:300,colors:["#0d696e",s.cyan,"#8e4129",s.salmon],padding:0,category:"stackedBar"},bar4:{size:400,colors:[s.salmon,s.cyan,s.periwinkle],padding:0,category:"stackedBar"},bar5:{size:400,colors:[s.gray,s.lavender,s.midnight,"#0089e4",s.forest,"#ea8500","#d54f41","#146ca9"],padding:0,category:"stackedBar"},bar6:{size:400,colors:[s.lavender],padding:0,category:"simpleBar"},bar7:{size:400,colors:[s.periwinkle,s.cyan,s.salmon,s.gray],padding:0,category:"simpleBar"}});function u(t){return t==="percentage"||t==="amount"?"show-values":""}var c=e.formatMessage({id:"chart.hiddenValues",defaultMessage:"Values are hidden when too close together.",description:"Text displayed when a chart has some values hidden"});var h=e.formatMessage({id:"chart.clickToSeeDetails",defaultMessage:"Click or use arrow keys to see details.",description:"Text displayed, guiding user to interact to see more details."});function f(t){return t>999||t<-999?Math.round(t/100)/10+"K":t}function d(t,r,e){return e?Math.round(t*100/r):Math.round(t*1e4/r)/100}function l(t,r){return t*360/r}function v(t){return parseFloat((Math.floor(t*100)/100).toFixed(2))}function g(t,r,e,i){var n=v(t+t*r*Math.cos(Math.PI*e/180));var a=v(t+t*r*Math.sin(Math.PI*e/180));if(i!==undefined){var s=v(t+t*r*Math.cos(Math.PI*i/180));var o=v(t+t*r*Math.sin(Math.PI*i/180));return{x1:n,y1:a,x2:s,y2:o}}return{x:n,y:a}}function p(t,r,e,i,n){var a=v(n/2*t);return"A ".concat(a,", ").concat(a," 0 ").concat(r," ").concat(v(e),", ").concat(v(i))}function b(t,r,e,i,n){var a=(t-r)*(n-i)/(e-r)+i;return a<i?i:a>n?n:a}function m(t){return b(t,300,900,70,150)}function y(t){return Math.round(t/m(t))}function w(t,r){var e=t/r;var i=Math.pow(10,Math.floor(Math.log10(e)));var n=e/i;var a;if(n>5){a=10*i}else if(n>3){a=5*i}else if(n>2){a=3*i}else if(n>1.5){a=2*i}else if(n>1){a=1.5*i}else{a=i}return a}function x(t){if(this.popoverEl&&this.popoverEl.open&&t.key==="Enter"){var r=this.popoverEl.querySelector("button");r&&r.click()}}function k(t,r){if(this.popoverEl&&!this.isTabbing){r.coords={x:t.clientX,y:t.clientY};A(this.popoverEl,r);N(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),r)}}function M(t,r){if(this.popoverEl&&this.isTabbing){this.focusedSliceId=r.id;r.coords=a(t.target);r.coords.x=r.coords.x+30;r.coords.y=r.coords.y+30;A(this.popoverEl,r);N(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),r)}}function z(t){switch(t.key){case"ArrowUp":case"ArrowLeft":t.preventDefault();this.isTabbing=true;C.call(this);break;case"ArrowRight":case"ArrowDown":t.preventDefault();this.isTabbing=true;_.call(this);break;case"Tab":S.call(this);break;case"Escape":this.popoverEl.open=false;this.userIsNavigating=false;break}}function A(t,r){t.open=false;if(r.title&&r.text){t.sliceDetails=Object.assign({},r);window.setTimeout((function(){return t.open=true}),30)}}function _(){var t=n(document.activeElement);var r=(this.sliceEls.indexOf(t)+1)%this.sliceEls.length;D.call(this,r)}function C(){if(this.sliceEls){var t=n(document.activeElement);var r=this.sliceEls.indexOf(t);if(r===-1){r=0}else if(r===0){r=this.sliceEls.length-1}else{r-=1}D.call(this,r)}}function D(t){var r=this;if(this.sliceEls&&this.el){this.userIsNavigating=true;this.componentWrapperEl.tabIndex=-1;this.el.focusable=false;this.sliceEls.map((function(t){t.tabIndex=-1;t.focusable=false}));this.sliceEls[t].tabIndex=0;this.sliceEls[t].focusable=true;this.sliceEls[t].focus();this.focusedSliceId=this.sliceEls[t].id;window.setTimeout((function(){if(r.popoverEl){r.popoverEl.open=true}}),10)}}function S(){var t=this;this.focusedSliceId=undefined;this.sliceEls&&this.sliceEls.map((function(t){t.tabIndex=-1;t.focusable=false}));this.userIsNavigating=false;window.setTimeout((function(){t.componentWrapperEl.tabIndex=0;t.el.focusable=true;if(t.popoverEl){t.popoverEl.open=false}}),100)}function B(t){return __awaiter(this,void 0,void 0,(function(){var r,e,i,n;var a=this;return __generator(this,(function(u){this.slicesDetails=[];r=0;e=Array.from(this.el.children);this.total=e.reduce((function(t,r){var e=parseInt(r.getAttribute("amount")||"0");return t+e}),0);i=__spreadArray([],o[t].colors,true);if(this.chartType==="bar2"){if(e.length<=5){i.splice(1,1)}if(e.length<=4){i.splice(2,1)}}if(t==="bar3"&&e.length===2){i=[i[1],i[3]]}if(t==="doughnut2"&&e.length<5){i.splice(2,1);if(e.length<4){i.shift()}}if(t==="bar5"&&!this.notStartedColor){i.shift()}n=0;e.forEach((function(e,o){var u=e.getAttribute("amount");if(u==null)return;var c=parseInt(u||"0");var h=d(c,a.total,true);var f=o;if(t==="bar6"){f=0}var l={amount:c,visualAmount:c,perc:h,legend:e.getAttribute("legend"),color:i[f]||s.gray,offset:r,id:"".concat(a.uid,"-").concat(n+1),title:e.getAttribute("popover-title"),text:e.getAttribute("popover-text"),buttonText:e.getAttribute("popover-button-text"),sliceRef:e,inSmallCluster:false,index:n};r+=c;a.slicesDetails.push(l);n++}));return[2]}))}))}function F(t,r){var e=__spreadArray([],t,true).sort((function(t,r){return t.amount===r.amount?0:t.amount>r.amount?-1:1}));var i=0;e.filter((function(t){return t.amount>0})).forEach((function(t,n){var a=e[n===0?e.length-1:n-1];var s=e[n===e.length-1?0:n+1];var o=d(a.amount,r,true);var u=d(s.amount,r,true);var c=t.perc===0?8:5;var h=t.perc<4;var f=o<c;var l=u<c;var v=h&&(f||l);t.inSmallCluster=v;t.offset=i;i+=t.amount}));return e}function T(t,r,e){var i=l(r,this.total)-90;var n=t/this.total*360;var a=i+n;var s=n>180?"1 1":"0 1";var o=n>180?"1 0":"0 0";var u=this.chartDetails.size/2;var c=this.chartDetails.thickness;var h=1;var f=e==="doughnut";var d=1.5;var v=f?2.25:3;if(n===360){a-=.01}var b=g(u,h,i+d,a);var m=g(u,c,i+v,a);var y="M ".concat(b.x1,", ").concat(b.y1," ");var w=p(h,s,b.x2,b.y2,this.chartDetails.size);var x=" L ".concat(m.x2,", ").concat(m.y2," ");var k=p(c,o,m.x1,m.y1,this.chartDetails.size);return y+w+x+k+" z"}function j(){var t=e.formatMessage({id:"chart.instructions",defaultMessage:"Use arrow keys to browse elements, press Tab to exit.",description:"For screen readers only, instructions on how to interact with the chart component"});return r("div",{id:"chart-instructions"},t)}function I(){return r("defs",null,r("filter",{id:"wmHoverDropShadow"},r("feGaussianBlur",{stdDeviation:"3"}),r("feOffset",{result:"offsetblur"}),r("feFlood",{"flood-color":"#333"}),r("feComposite",{operator:"in",in2:"offsetblur"}),r("feMerge",null,r("feMergeNode",null),r("feMergeNode",{in:"SourceGraphic"}))))}function H(t,r,e){var i=r.map((function(t){return l(t.amount,e)}));var n=i.some((function(r){return r!==0&&r<t}));if(n){var a=i.map((function(r){return r==0?r:Math.max(r,t)}));var s=a.reduce((function(r,e){return r+(e>t&&e!==0?e:0)}),0);var o=a.reduce((function(r,e){return r+(e>t&&e!==0?0:e)}),0);var u=360-o;var c=s-u;var h=c/u;var f=a.map((function(r){return r>t?r-h*r:r==0?0:t}));var d=0;r=r.map((function(t,r){var i=f[r]/360*e;var n=d;d+=i;return Object.assign(Object.assign({},t),{visualAmount:i,offset:n})}))}return r}function K(t){var e=this;var i=this.chartDetails.size+this.chartDetails.padding;var n=t==="doughnut";var a=n?this.slicesDetails:F(this.slicesDetails,this.total);a=H(7,a,this.total);var s=a[0].amount;var o=d(s,this.total,true);if(o===0&&s>0){o="<1%"}else if(o===100&&s<this.total){o=">99%"}else{o=o+"%"}return r("div",{class:"chart-wrapper doughnut-wrapper"},r("svg",{width:i+"px",height:i+"px",id:"graphic-".concat(this.uid),class:"doughnut-svg"},I(),a.map((function(r){return E.call(e,r,t)})),G.call(this),n?r("text",{class:"value",x:"50%",y:"50%","font-size":"1.5rem","font-weight":"500","text-anchor":"middle","dominant-baseline":"middle"},o):r("g",{transform:"translate(".concat(this.chartDetails.padding/2,", ").concat(this.chartDetails.padding/2,")"),"text-anchor":"middle","dominant-baseline":"middle"},a.map((function(t){return t.amount>0&&!t.inSmallCluster?W.call(e,t):""})))))}function N(t,r){t.forEach((function(t){if(t.dataset.segmentindex&&parseInt(t.dataset.segmentindex)!==r.index){t.classList.add("faded")}else{t.classList.remove("faded")}}))}function O(t){t.forEach((function(t){t.classList.remove("faded")}))}function E(t,e){var i=this;var n=d(t.amount,this.total,true)+"%";return!isNaN(t.amount)&&r("g",{transform:"translate(".concat(this.chartDetails.padding/2,", ").concat(this.chartDetails.padding/2,")")},r("path",{id:t.id,class:"segment doughnut-segment",fill:t.visualAmount?t.color:"transparent",d:T.call(this,t.visualAmount,t.offset,e),onClick:function(r){return k.call(i,r,t)},onFocus:function(r){return M.call(i,r,t)},onKeyDown:function(t){return x.call(i,t)},role:"img","aria-label":"".concat(t.legend,", ").concat(n),"data-segmentindex":t.index}))}function G(){return this.isTabbing?r("g",{transform:"translate(".concat(this.chartDetails.padding/2,", ").concat(this.chartDetails.padding/2,")")},r("use",{tabindex:-1,id:"kfbg1",xlinkHref:"#".concat(this.focusedSliceId)}),r("use",{tabindex:-1,id:"kfstroke",xlinkHref:"#".concat(this.focusedSliceId)}),r("use",{tabindex:-1,id:"kfbg2",xlinkHref:"#".concat(this.focusedSliceId)})):""}function W(t){var e=l(t.offset+t.visualAmount/2,this.total);var i=g(this.chartDetails.size/2,1.4,e-90),n=i.x,a=i.y;var s;if(t.perc===0&&t.amount>0){s="<1%"}else if(t.perc===100&&t.amount<this.total){s=">99%"}else{s=t.perc+"%"}return r("text",{class:"value",x:n+"px",y:a+"px","data-segmentindex":t.index},s)}function q(t){var e=this;var i=t==="bar";var n=this.el.shadowRoot.querySelectorAll(".value");if(n.length>0){requestAnimationFrame((function(){var t=[];var r=4;var i=false;n.forEach((function(e){e.classList.remove("hidden");var n=parseInt(e.dataset.value);if(t.length>0&&n!=0){var a=e.getBoundingClientRect().left-r;t.forEach((function(t){var r=parseInt(t.dataset.value);var s=t.getBoundingClientRect().right>a;if(s){var o=n<r?e:t;o.classList.add("hidden");i=true}}))}if(!e.classList.contains("hidden")&&n>0){t.push(e)}}));(e.isBar||e.isDoughnut)&&e.showHiddenValuesMessage(i)}))}return r("div",{class:"chart-wrapper bar-wrapper"},i?r("div",{class:"single-perc"},d(this.slicesDetails[0].amount,this.total,true)+"%"):"",this.chartType==="bar3"&&this.drawAxis(),r("div",{class:"inner-stacked-bar-wrapper ".concat(u(this.valueFormat))},!i?r("div",{class:"values ".concat(this.valueFormat)},this.slicesDetails.map((function(t){return e.renderBarText(t,5)}))):"",r("div",{class:"stacked-bar-segments-wrapper"},this.slicesDetails.map((function(t){return L.call(e,t,5)}))),i?J.call(this):""),this.chartType==="bar3"?r("div",{class:"bar3-axis-label","aria-hidden":"true"},r("span",null,"0%"),r("span",null,"100%")):"")}function L(t,e){var i=this;var n=d(t.amount,this.total,false);var a=this.el.shadowRoot.querySelector(".stacked-bar-segments-wrapper");var s=a?a.offsetWidth:this.el.offsetWidth;var o=n/100*s>=e;var u=o||t.amount==0?"".concat(n,"%"):"".concat(e,"px");var c="";if(this.valueFormat=="percentage"){c="".concat(d(t.amount,this.total,true)," %")}else if(this.valueFormat=="amount"){c=t.amount.toString()}return r("div",{class:"segment stacked-bar-segment ".concat(d(t.amount,this.total,false)===0?"zero":""," ").concat(o?"":"fixed-width"),style:{backgroundColor:t.color,width:u},onClick:function(r){return k.call(i,r,t)},onFocus:function(r){return M.call(i,r,t)},onKeyDown:function(t){return x.call(i,t)},"data-segmentindex":t.index},r("span",{class:"sr-only"},"".concat(t.legend," ").concat(c)))}function R(t){var e=this;var n=this.slicesDetails.map((function(t){return t.amount})).reduce((function(t,r){return t>r?t:r}));var a=parseInt(getComputedStyle(this.el).getPropertyValue("--labelWidth"),10);var s=48;var o=this.el.getBoundingClientRect().width;var c=o-a-s;var h=y(c);var d=w(n,h);var l=h*d;var v=Math.floor((l-n)/d);h-=v;this.el.style.setProperty("--backgroundSize",100/h+"%");this.el.style.setProperty("--labelWidth",this.labelWidth);if(t==="bar7"&&!this.showBarLegend){this.el.style.setProperty("--labelWidth","0px")}var g=[];this.slicesDetails.forEach((function(r){r.legend&&g.push(U(r.legend,e.showBarLegend,t));g.push(V.call(e,r,d,h,n))}));var p=[];for(var b=1;b<=h;b++){var m=f(i(b,d));p.push(r("div",{class:"tick"},r("span",null,m)))}var x=t==="bar6"&&this.showGrid&&this.el.getBoundingClientRect().width>300;return r("div",{class:"chart-wrapper simple-bar-wrapper"},r("div",{class:"chart ".concat(u(this.valueFormat))},x&&r("div",{class:"gridlines"}),r("div",{class:"rows"},g)),x&&r("div",{class:"x-axis","aria-hidden":"true"},r("div",{class:"zero"},r("span",null,"0")),p))}function U(t,e,i){var n=i==="bar7"&&!e?" hidden":"";return r("label",{class:"label".concat(n)},t)}function V(t,e,i,n){var a=this;var s=this.currentChartType==="bar6"?e*i:n;var o=d(t.amount,s,false);var u=o?o+"%":"1px";var c=f(t.amount);var h=this.valueFormat==="amount"?c:"";if(this.currentChartType==="bar6"&&this.valueFormat==="percentage"){h=t.amount+"%"}else if(this.currentChartType==="bar7"&&this.valueFormat==="percentage"){h=(this.total===0?"0":d(t.amount,this.total,true))+"%"}return r("div",{class:"bar segment",style:{backgroundColor:t.color,width:u},onClick:function(r){return k.call(a,r,t)},onFocus:function(r){return M.call(a,r,t)},onKeyDown:function(t){return x.call(a,t)},"data-segmentindex":t.index},r("div",{class:"value"},h))}function Y(t){var e=this;if(this.showLegend){var i=this.slicesDetails.reduce((function(t,r){return t=r.inSmallCluster?true:t}),false);this.isDoughnut&&this.showHiddenValuesMessage(i);return r("div",{class:"legend-wrapper"},r("div",{class:"legend ".concat(t," ").concat(this.mode==="bar"?"--top":"--bottom"),"aria-hidden":"true"},this.slicesDetails.map((function(t){var r=e.printModeFormat=="amount"?"".concat(t.amount,"/").concat(e.total):"".concat(d(t.amount,e.total,true),"%");if(!!t.amount||!!t.legend){return P.call(e,{key:t.legend,color:t.color},r,t)}}))),this.isDoughnut&&!this.printMode&&Q())}}function P(t,e,i){var n=this;if(e===void 0){e=""}if(i===void 0){i=null}var a=function(t){if(i){i.coords={x:t.clientX,y:t.clientY};A(n.popoverEl,i);N(Array.from(n.el.shadowRoot.querySelectorAll("[data-segmentindex")),i)}};return r("div",{class:"legend-item",onClick:function(t){return a(t)},"data-segmentindex":i?i.index:null},r("div",{class:"legend-color",style:{backgroundColor:t.color}}),r("div",{class:"legend-text"},t.key,e&&r("span",{class:"print-value ".concat(this.printMode?"force-visible":"")},": ",e)))}function J(){if(this.completionMessage){return r("div",{class:"completion-message"},this.completionMessage)}}function Q(){return r("div",{class:"hidden-values-warning hidden"},c,r("br",null),h)}}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as m}from"./p-BmU89qgm.js";const o=m;export{o as g}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./p-
|
|
1
|
+
import{i as e}from"./p-DT2ztGYg.js";const t={characterLimitReached:e.formatMessage({id:"global.characterLimitReached",defaultMessage:"No additional characters will be entered.",description:"for screen readers"}),close:e.formatMessage({id:"global.closeVerb",defaultMessage:"Close",description:"For a button, to close a user interface element"}),genericError:e.formatMessage({id:"global.genericError",defaultMessage:"An error occurred. Please try again."}),hide:e.formatMessage({id:"global.hideVerb",defaultMessage:"Hide",description:"For a button, to hide something"}),locked:e.formatMessage({id:"global.locked",defaultMessage:"locked",description:"For an interactive element, indicating its state cannot be changed"}),newWindow:e.formatMessage({id:"global.newWindowLink",defaultMessage:"Opens in a new window.",description:"Indicates that a focused link will open in a new window"}),next:e.formatMessage({id:"global.next",defaultMessage:"Next",description:"Button text, indicating an action leading to a 'next' state"}),open:e.formatMessage({id:"global.openVerb",defaultMessage:"Open",description:"For a button, to open a user interface element"}),previous:e.formatMessage({id:"global.previous",defaultMessage:"Previous",description:"Button text, indicating an action leading to a 'previous' state"}),requiredError:e.formatMessage({id:"global.requiredError",defaultMessage:"This field is required.",description:"Error displayed under a required field when it has not been filled"}),requiredField:e.formatMessage({id:"global.requiredField",defaultMessage:"required field",description:"Screen reader text, indicating the currently focused field is required"}),show:e.formatMessage({id:"global.showVerb",defaultMessage:"Show",description:"For a button, to show something"}),getCharactersEntered:(t,i)=>e.formatMessage({id:"global.charactersEntered",defaultMessage:"{x, number} of {y, number} characters entered.",description:"for screen readers"},{x:t,y:i}),getCharacterLimit:t=>e.formatMessage({id:"global.characterLimit",defaultMessage:"{limit, number} characters allowed.",description:"for screen readers"},{limit:t})},i={duplicateName:e.formatMessage({id:"uploader.duplicateName",defaultMessage:"A file with this name already exists."}),fileLimitExceeded:e.formatMessage({id:"uploader.fileUploadLimitExceeded",defaultMessage:"Upload unsuccessful because file selection would exceed the maximum number of files",description:"Message displayed when trying to upload too many files"}),fileLimitReached:e.formatMessage({id:"uploader.fileUploadLimitReached",defaultMessage:"The maximum number of files has been reached",description:"Message displayed when trying to upload additional files, but the limit has been reached"}),finishedUploading:e.formatMessage({id:"uploader.finishedUploading",defaultMessage:"Finished uploading"}),waitToUpload:e.formatMessage({id:"uploader.waitToUpload",defaultMessage:"Please wait for current upload to complete before uploading new files.",description:"Message for screen reader users"}),zeroFileSize:e.formatMessage({id:"uploader.zeroFileSize",defaultMessage:"The file must be more than 0 bytes",description:"Error message when user attempts to upload a file of no size"}),dropInstructions:e.formatMessage({id:"uploader.dropInstructions",defaultMessage:"Browse or Drag Files Here",description:"Instructions for how to choose files to upload"}),dropFile:e.formatMessage({id:"uploader.dropFile",defaultMessage:"Drop to Upload",description:"Prompt for use to drop the file they're currently dragging"}),fileRequirements:e.formatMessage({id:"uploader.fileRequirements",defaultMessage:"File Requirements",description:"Expandable button revealing the uploader's file requirements"}),getFilesAdded:t=>e.formatMessage({id:"uploader.filesAdded",defaultMessage:"{numFiles, plural, one {1 file added} other {# files added}}"},{numFiles:t}),getFileCount:(t,i)=>e.formatMessage({id:"uploader.fileCount",defaultMessage:"{x} of {y} Files",description:"A count of the number of files currently uploaded"},{x:t,y:i}),getFileTooLarge:t=>e.formatMessage({id:"uploader.fileTooLarge",defaultMessage:"The selected file is too large. Maximum file size is {size}"},{size:t}),getFilesUploading:t=>e.formatMessage({id:"uploader.filesUploading",defaultMessage:"{num, plural, one {1 file uploading} other {# files uploading}}"},{num:t}),getInvalidFileType:t=>e.formatMessage({id:"uploader.invalidFileType",defaultMessage:"The file type is invalid. Accepted types: {validTypes}"},{validTypes:t}),getUploadProgress:t=>e.formatMessage({id:"uploader.uploadProgress",defaultMessage:"Upload progress: {percentage}%"},{percentage:t})},l={interactiveChart:e.formatMessage({id:"chart.interactiveChart",defaultMessage:"Interactive chart",description:"For screen readers only, a description clarifying the role of the chart widget"})},a={instructions:e.formatMessage({id:"linechart.instructions",defaultMessage:"Use Tab and arrow keys to browse elements.",description:"For screen readers only, instructions on how to interact with the line chart component"}),noData:e.formatMessage({id:"linechart.noData",defaultMessage:"No Data",description:"Message displayed when a data point has missing data"}),highlightQualifier:e.formatMessage({id:"linechart.highlightQualifier",defaultMessage:"highlighted",description:"Descriptor for highlighted areas of a chart"}),getChangeSince:t=>e.formatMessage({id:"linechart.changeSince",defaultMessage:"Change since {time}",description:"Indicates a comparison between current and previous data"},{time:t}),getToggleButtonLabel:t=>e.formatMessage({id:"linechart.toggleButtonLabel",defaultMessage:"Toggle line visibility, list with {itemCount} items"},{itemCount:t}),getToggleButtonState:t=>e.formatMessage({id:"linechart.toggleButtonState",defaultMessage:"toggle {isPressed, select, true {pressed} other {}}",description:"Descriptor and state for a toggle button UI element"},{isPressed:t}),getLineFocusAnnouncement:(t,i,l,a)=>e.formatMessage({id:"linechart.getLineFocusAnnouncement",defaultMessage:"{label}, line {lineNumber} of {lineTotal} with {lineLength} data points"},{label:t,lineNumber:i,lineTotal:l,lineLength:a})},s={multiPlaceholder:e.formatMessage({id:"select.multiPlaceholder",defaultMessage:"Make a selection"}),singlePlaceholder:e.formatMessage({id:"select.singlePlaceholder",defaultMessage:"Select an Option"}),multiClearSelection:e.formatMessage({id:"select.multiClearSelection",defaultMessage:"Clear all Selections",description:"Clear as in remove. Use imperative"}),singleClearSelection:e.formatMessage({id:"select.singleClearSelection",defaultMessage:"Clear Selection",description:"Clear as in remove. Use imperative"}),selectionCleared:e.formatMessage({id:"select.selectionCleared",defaultMessage:"Selection cleared"}),searchPlaceholder:e.formatMessage({id:"select.searchPlaceholder",defaultMessage:"Search",description:"Appears in a search field UI element"}),allSelected:e.formatMessage({id:"select.allSelected",defaultMessage:"All selected",description:"Indicates all possible options have been selected"}),selectAllMessage:e.formatMessage({id:"select.selectAll",defaultMessage:"Select All"}),deselectAllMessage:e.formatMessage({id:"select.deselectAll",defaultMessage:"Deselect All"}),allOptionsSelectedMessage:e.formatMessage({id:"select.allOptionsSelected",defaultMessage:"All options selected"}),allOptionsDeselectedMessage:e.formatMessage({id:"select.allOptionsDeselected",defaultMessage:"All options deselected"}),noSearchResults:e.formatMessage({id:"select.noSearchResults",defaultMessage:"No results found. Please try your search again."}),optgroupSingleSelectionCount:()=>e.formatMessage({id:"select.optgroupSingleSelectionCount",defaultMessage:"Item Selected",description:"Item refers to an option in a list"}),getOptgroupMultipleSelectionCount:t=>e.formatMessage({id:"select.optgroupMultipleSelectionCount",defaultMessage:"{numberSelected} selected"},{numberSelected:t}),getSearchResultsFound:t=>e.formatMessage({id:"select.searchResultsFound",defaultMessage:"{numberResults, plural, one {1 option found} other {# options found}}"},{numberResults:t})};export{l as c,t as g,a as l,s,i as u}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t}from"./p-C20glyTb.js";import{i as s,s as i,c as e,a as n}from"./p-B9BrPorY.js";const a="#ff5f4e",r="#19a1a9",o="#088000",h="#2e1b46",c="#8b86ca",d="#575195",l="#6b6b6b",u={doughnut:{size:155,colors:[o,l],thickness:.73,padding:25,category:"doughnut"},doughnut1:{size:130,colors:[c,h,l],thickness:.5,padding:90,category:"doughnut"},doughnut2:{size:130,colors:[d,r,h,a,l],thickness:.5,padding:90,category:"doughnut"},doughnut3:{size:130,colors:[c,h,"#0089e4",o,"#ea8500","#d54f41","#146ca9"],thickness:.5,padding:90,category:"doughnut"},bar:{size:350,colors:[o,l],padding:0,category:"stackedBar"},bar2:{size:400,colors:[l,c,d,h,r,a],padding:0,category:"stackedBar"},bar3:{size:300,colors:["#0d696e",r,"#8e4129",a],padding:0,category:"stackedBar"},bar4:{size:400,colors:[a,r,d],padding:0,category:"stackedBar"},bar5:{size:400,colors:[l,c,h,"#0089e4",o,"#ea8500","#d54f41","#146ca9"],padding:0,category:"stackedBar"},bar6:{size:400,colors:[c],padding:0,category:"simpleBar"},bar7:{size:400,colors:[d,r,a,l],padding:0,category:"simpleBar"}};function f(t){return"percentage"===t||"amount"===t?"show-values":""}const g=s.formatMessage({id:"chart.hiddenValues",defaultMessage:"Values are hidden when too close together.",description:"Text displayed when a chart has some values hidden"}),p=s.formatMessage({id:"chart.clickToSeeDetails",defaultMessage:"Click or use arrow keys to see details.",description:"Text displayed, guiding user to interact to see more details."});function b(t){return t>999||t<-999?Math.round(t/100)/10+"K":t}function m(t,s,i){return i?Math.round(100*t/s):Math.round(1e4*t/s)/100}function v(t,s){return 360*t/s}function x(t){return parseFloat((Math.floor(100*t)/100).toFixed(2))}function w(t,s,i,e){var n=x(t+t*s*Math.cos(Math.PI*i/180)),a=x(t+t*s*Math.sin(Math.PI*i/180));return void 0!==e?{x1:n,y1:a,x2:x(t+t*s*Math.cos(Math.PI*e/180)),y2:x(t+t*s*Math.sin(Math.PI*e/180))}:{x:n,y:a}}function y(t,s,i,e,n){var a=x(n/2*t);return`A ${a}, ${a} 0 ${s} ${x(i)}, ${x(e)}`}function $(t,s){const i=t/s,e=10**Math.floor(Math.log10(i)),n=i/e;let a;return a=n>5?10*e:n>3?5*e:n>2?3*e:n>1.5?2*e:n>1?1.5*e:e,a}function k(t){if(this.popoverEl&&this.popoverEl.open&&"Enter"===t.key){const t=this.popoverEl.querySelector("button");t&&t.click()}}function M(t,s){this.popoverEl&&!this.isTabbing&&(s.coords={x:t.clientX,y:t.clientY},C(this.popoverEl,s),K(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),s))}function z(t,s){this.popoverEl&&this.isTabbing&&(this.focusedSliceId=s.id,s.coords=n(t.target),s.coords.x=s.coords.x+30,s.coords.y=s.coords.y+30,C(this.popoverEl,s),K(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),s))}function A(t){switch(t.key){case"ArrowUp":case"ArrowLeft":t.preventDefault(),this.isTabbing=!0,D.call(this);break;case"ArrowRight":case"ArrowDown":t.preventDefault(),this.isTabbing=!0,B.call(this);break;case"Tab":T.call(this);break;case"Escape":this.popoverEl.open=!1,this.userIsNavigating=!1}}function C(t,s){t.open=!1,s.title&&s.text&&(t.sliceDetails=Object.assign({},s),window.setTimeout((()=>t.open=!0),30))}function B(){const t=e(document.activeElement),s=(this.sliceEls.indexOf(t)+1)%this.sliceEls.length;F.call(this,s)}function D(){if(this.sliceEls){const t=e(document.activeElement);let s=this.sliceEls.indexOf(t);-1===s?s=0:0===s?s=this.sliceEls.length-1:s-=1,F.call(this,s)}}function F(t){this.sliceEls&&this.el&&(this.userIsNavigating=!0,this.componentWrapperEl.tabIndex=-1,this.el.focusable=!1,this.sliceEls.map((t=>{t.tabIndex=-1,t.focusable=!1})),this.sliceEls[t].tabIndex=0,this.sliceEls[t].focusable=!0,this.sliceEls[t].focus(),this.focusedSliceId=this.sliceEls[t].id,window.setTimeout((()=>{this.popoverEl&&(this.popoverEl.open=!0)}),10))}function T(){this.focusedSliceId=void 0,this.sliceEls&&this.sliceEls.map((t=>{t.tabIndex=-1,t.focusable=!1})),this.userIsNavigating=!1,window.setTimeout((()=>{this.componentWrapperEl.tabIndex=0,this.el.focusable=!0,this.popoverEl&&(this.popoverEl.open=!1)}),100)}async function j(t){this.slicesDetails=[];let s=0;const i=Array.from(this.el.children);this.total=i.reduce(((t,s)=>t+parseInt(s.getAttribute("amount")||"0")),0);let e=[...u[t].colors];"bar2"===this.chartType&&(i.length<=5&&e.splice(1,1),i.length<=4&&e.splice(2,1)),"bar3"===t&&2===i.length&&(e=[e[1],e[3]]),"doughnut2"===t&&i.length<5&&(e.splice(2,1),i.length<4&&e.shift()),"bar5"!==t||this.notStartedColor||e.shift();let n=0;i.forEach(((i,a)=>{const r=i.getAttribute("amount");if(null==r)return;const o=parseInt(r||"0"),h=m(o,this.total,!0);let c=a;"bar6"===t&&(c=0);const d={amount:o,visualAmount:o,perc:h,legend:i.getAttribute("legend"),color:e[c]||l,offset:s,id:`${this.uid}-${n+1}`,title:i.getAttribute("popover-title"),text:i.getAttribute("popover-text"),buttonText:i.getAttribute("popover-button-text"),sliceRef:i,inSmallCluster:!1,index:n};s+=o,this.slicesDetails.push(d),n++}))}function I(t,s,i){const e=v(s,this.total)-90,n=t/this.total*360;let a=e+n;const r=n>180?"1 1":"0 1",o=n>180?"1 0":"0 0",h=this.chartDetails.size/2,c=this.chartDetails.thickness,d="doughnut"===i?2.25:3;360===n&&(a-=.01);const l=w(h,1,e+1.5,a),u=w(h,c,e+d,a);return`M ${l.x1}, ${l.y1} `+y(1,r,l.x2,l.y2,this.chartDetails.size)+` L ${u.x2}, ${u.y2} `+y(c,o,u.x1,u.y1,this.chartDetails.size)+" z"}function S(){const i=s.formatMessage({id:"chart.instructions",defaultMessage:"Use arrow keys to browse elements, press Tab to exit.",description:"For screen readers only, instructions on how to interact with the chart component"});return t("div",{id:"chart-instructions"},i)}function H(s){const i=this.chartDetails.size+this.chartDetails.padding,e="doughnut"===s;let n=e?this.slicesDetails:function(t,s){let i=[...t].sort(((t,s)=>t.amount===s.amount?0:t.amount>s.amount?-1:1)),e=0;return i.filter((t=>t.amount>0)).forEach(((t,n)=>{const a=i[n===i.length-1?0:n+1],r=m(i[0===n?i.length-1:n-1].amount,s,!0),o=m(a.amount,s,!0),h=0===t.perc?8:5;t.inSmallCluster=t.perc<4&&(r<h||o<h),t.offset=e,e+=t.amount})),i}(this.slicesDetails,this.total);n=function(t,s,i){const e=s.map((t=>v(t.amount,i)));if(e.some((t=>0!==t&&t<7))){const t=e.map((t=>0==t?t:Math.max(t,7))),n=t.reduce(((t,s)=>t+(s>7&&0!==s?s:0)),0),a=360-t.reduce(((t,s)=>t+(s>7&&0!==s?0:s)),0),r=(n-a)/a,o=t.map((t=>t>7?t-r*t:0==t?0:7));let h=0;s=s.map(((t,s)=>{const e=o[s]/360*i,n=h;return h+=e,Object.assign(Object.assign({},t),{visualAmount:e,offset:n})}))}return s}(0,n,this.total);const a=n[0].amount;let r=m(a,this.total,!0);return 0===r&&a>0?r="<1%":100===r&&a<this.total?r=">99%":r+="%",t("div",{class:"chart-wrapper doughnut-wrapper"},t("svg",{width:i+"px",height:i+"px",id:`graphic-${this.uid}`,class:"doughnut-svg"},t("defs",null,t("filter",{id:"wmHoverDropShadow"},t("feGaussianBlur",{stdDeviation:"3"}),t("feOffset",{result:"offsetblur"}),t("feFlood",{"flood-color":"#333"}),t("feComposite",{operator:"in",in2:"offsetblur"}),t("feMerge",null,t("feMergeNode",null),t("feMergeNode",{in:"SourceGraphic"})))),n.map((t=>O.call(this,t,s))),W.call(this),e?t("text",{class:"value",x:"50%",y:"50%","font-size":"1.5rem","font-weight":"500","text-anchor":"middle","dominant-baseline":"middle"},r):t("g",{transform:`translate(${this.chartDetails.padding/2}, ${this.chartDetails.padding/2})`,"text-anchor":"middle","dominant-baseline":"middle"},n.map((t=>t.amount>0&&!t.inSmallCluster?E.call(this,t):"")))))}function K(t,s){t.forEach((t=>{t.dataset.segmentindex&&parseInt(t.dataset.segmentindex)!==s.index?t.classList.add("faded"):t.classList.remove("faded")}))}function N(t){t.forEach((t=>{t.classList.remove("faded")}))}function O(s,i){const e=m(s.amount,this.total,!0)+"%";return!isNaN(s.amount)&&t("g",{transform:`translate(${this.chartDetails.padding/2}, ${this.chartDetails.padding/2})`},t("path",{id:s.id,class:"segment doughnut-segment",fill:s.visualAmount?s.color:"transparent",d:I.call(this,s.visualAmount,s.offset,i),onClick:t=>M.call(this,t,s),onFocus:t=>z.call(this,t,s),onKeyDown:t=>k.call(this,t),role:"img","aria-label":`${s.legend}, ${e}`,"data-segmentindex":s.index}))}function W(){return this.isTabbing?t("g",{transform:`translate(${this.chartDetails.padding/2}, ${this.chartDetails.padding/2})`},t("use",{tabindex:-1,id:"kfbg1",xlinkHref:`#${this.focusedSliceId}`}),t("use",{tabindex:-1,id:"kfstroke",xlinkHref:`#${this.focusedSliceId}`}),t("use",{tabindex:-1,id:"kfbg2",xlinkHref:`#${this.focusedSliceId}`})):""}function E(s){const i=v(s.offset+s.visualAmount/2,this.total);let e,{x:n,y:a}=w(this.chartDetails.size/2,1.4,i-90);return e=0===s.perc&&s.amount>0?"<1%":100===s.perc&&s.amount<this.total?">99%":s.perc+"%",t("text",{class:"value",x:n+"px",y:a+"px","data-segmentindex":s.index},e)}function G(s){const i="bar"===s,e=this.el.shadowRoot.querySelectorAll(".value");return e.length>0&&requestAnimationFrame((()=>{let t=[],s=!1;e.forEach((i=>{i.classList.remove("hidden");const e=parseInt(i.dataset.value);if(t.length>0&&0!=e){const n=i.getBoundingClientRect().left-4;t.forEach((t=>{const a=parseInt(t.dataset.value);t.getBoundingClientRect().right>n&&((e<a?i:t).classList.add("hidden"),s=!0)}))}!i.classList.contains("hidden")&&e>0&&t.push(i)})),(this.isBar||this.isDoughnut)&&this.showHiddenValuesMessage(s)})),t("div",{class:"chart-wrapper bar-wrapper"},i?t("div",{class:"single-perc"},m(this.slicesDetails[0].amount,this.total,!0)+"%"):"","bar3"===this.chartType&&this.drawAxis(),t("div",{class:`inner-stacked-bar-wrapper ${f(this.valueFormat)}`},i?"":t("div",{class:`values ${this.valueFormat}`},this.slicesDetails.map((t=>this.renderBarText(t,5)))),t("div",{class:"stacked-bar-segments-wrapper"},this.slicesDetails.map((t=>L.call(this,t,5)))),i?P.call(this):""),"bar3"===this.chartType?t("div",{class:"bar3-axis-label","aria-hidden":"true"},t("span",null,"0%"),t("span",null,"100%")):"")}function L(s,i){const e=m(s.amount,this.total,!1),n=this.el.shadowRoot.querySelector(".stacked-bar-segments-wrapper"),a=e/100*(n?n.offsetWidth:this.el.offsetWidth)>=i,r=a||0==s.amount?`${e}%`:`${i}px`;let o="";return"percentage"==this.valueFormat?o=`${m(s.amount,this.total,!0)} %`:"amount"==this.valueFormat&&(o=s.amount.toString()),t("div",{class:`segment stacked-bar-segment ${0===m(s.amount,this.total,!1)?"zero":""} ${a?"":"fixed-width"}`,style:{backgroundColor:s.color,width:r},onClick:t=>M.call(this,t,s),onFocus:t=>z.call(this,t,s),onKeyDown:t=>k.call(this,t),"data-segmentindex":s.index},t("span",{class:"sr-only"},`${s.legend} ${o}`))}function R(s){const e=this.slicesDetails.map((t=>t.amount)).reduce(((t,s)=>t>s?t:s)),n=parseInt(getComputedStyle(this.el).getPropertyValue("--labelWidth"),10);let a=(r=this.el.getBoundingClientRect().width-n-48,Math.round(r/function(t){return function(t){let s=80*(t-300)/600+70;return s<70?70:s>150?150:s}(t)}(r)));var r;let o=$(e,a);const h=Math.floor((a*o-e)/o);a-=h,this.el.style.setProperty("--backgroundSize",100/a+"%"),this.el.style.setProperty("--labelWidth",this.labelWidth),"bar7"!==s||this.showBarLegend||this.el.style.setProperty("--labelWidth","0px");const c=[];this.slicesDetails.forEach((i=>{i.legend&&c.push(function(s,i,e){return t("label",{class:`label${"bar7"!==e||i?"":" hidden"}`},s)}(i.legend,this.showBarLegend,s)),c.push(U.call(this,i,o,a,e))}));const d=[];for(let s=1;s<=a;s++){const e=b(i(s,o));d.push(t("div",{class:"tick"},t("span",null,e)))}const l="bar6"===s&&this.showGrid&&this.el.getBoundingClientRect().width>300;return t("div",{class:"chart-wrapper simple-bar-wrapper"},t("div",{class:`chart ${f(this.valueFormat)}`},l&&t("div",{class:"gridlines"}),t("div",{class:"rows"},c)),l&&t("div",{class:"x-axis","aria-hidden":"true"},t("div",{class:"zero"},t("span",null,"0")),d))}function U(s,i,e,n){const a=m(s.amount,"bar6"===this.currentChartType?i*e:n,!1),r=a?a+"%":"1px",o=b(s.amount);let h="amount"===this.valueFormat?o:"";return"bar6"===this.currentChartType&&"percentage"===this.valueFormat?h=s.amount+"%":"bar7"===this.currentChartType&&"percentage"===this.valueFormat&&(h=(0===this.total?"0":m(s.amount,this.total,!0))+"%"),t("div",{class:"bar segment",style:{backgroundColor:s.color,width:r},onClick:t=>M.call(this,t,s),onFocus:t=>z.call(this,t,s),onKeyDown:t=>k.call(this,t),"data-segmentindex":s.index},t("div",{class:"value"},h))}function V(s){if(this.showLegend){const i=this.slicesDetails.reduce(((t,s)=>!!s.inSmallCluster||t),!1);return this.isDoughnut&&this.showHiddenValuesMessage(i),t("div",{class:"legend-wrapper"},t("div",{class:`legend ${s} ${"bar"===this.mode?"--top":"--bottom"}`,"aria-hidden":"true"},this.slicesDetails.map((t=>{const s="amount"==this.printModeFormat?`${t.amount}/${this.total}`:`${m(t.amount,this.total,!0)}%`;if(t.amount||t.legend)return q.call(this,{key:t.legend,color:t.color},s,t)}))),this.isDoughnut&&!this.printMode&&Y())}}function q(s,i="",e=null){const n=t=>{e&&(e.coords={x:t.clientX,y:t.clientY},C(this.popoverEl,e),K(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),e))};return t("div",{class:"legend-item",onClick:t=>n(t),"data-segmentindex":e?e.index:null},t("div",{class:"legend-color",style:{backgroundColor:s.color}}),t("div",{class:"legend-text"},s.key,i&&t("span",{class:"print-value "+(this.printMode?"force-visible":"")},": ",i)))}function P(){if(this.completionMessage)return t("div",{class:"completion-message"},this.completionMessage)}function Y(){return t("div",{class:"hidden-values-warning hidden"},g,t("br",null),p)}export{u as a,m as b,R as c,G as d,H as e,S as f,j as g,A as h,V as i,Y as j,T as k,$ as l,b as m,P as n,q as o,N as r}
|
|
1
|
+
import{h as t}from"./p-BmU89qgm.js";import{i as s,s as i,c as e,a as n}from"./p-DT2ztGYg.js";const a="#ff5f4e",r="#19a1a9",o="#088000",h="#2e1b46",c="#8b86ca",d="#575195",l="#6b6b6b",u={doughnut:{size:155,colors:[o,l],thickness:.73,padding:25,category:"doughnut"},doughnut1:{size:130,colors:[c,h,l],thickness:.5,padding:90,category:"doughnut"},doughnut2:{size:130,colors:[d,r,h,a,l],thickness:.5,padding:90,category:"doughnut"},doughnut3:{size:130,colors:[c,h,"#0089e4",o,"#ea8500","#d54f41","#146ca9"],thickness:.5,padding:90,category:"doughnut"},bar:{size:350,colors:[o,l],padding:0,category:"stackedBar"},bar2:{size:400,colors:[l,c,d,h,r,a],padding:0,category:"stackedBar"},bar3:{size:300,colors:["#0d696e",r,"#8e4129",a],padding:0,category:"stackedBar"},bar4:{size:400,colors:[a,r,d],padding:0,category:"stackedBar"},bar5:{size:400,colors:[l,c,h,"#0089e4",o,"#ea8500","#d54f41","#146ca9"],padding:0,category:"stackedBar"},bar6:{size:400,colors:[c],padding:0,category:"simpleBar"},bar7:{size:400,colors:[d,r,a,l],padding:0,category:"simpleBar"}};function f(t){return"percentage"===t||"amount"===t?"show-values":""}const g=s.formatMessage({id:"chart.hiddenValues",defaultMessage:"Values are hidden when too close together.",description:"Text displayed when a chart has some values hidden"}),p=s.formatMessage({id:"chart.clickToSeeDetails",defaultMessage:"Click or use arrow keys to see details.",description:"Text displayed, guiding user to interact to see more details."});function b(t){return t>999||t<-999?Math.round(t/100)/10+"K":t}function m(t,s,i){return i?Math.round(100*t/s):Math.round(1e4*t/s)/100}function v(t,s){return 360*t/s}function x(t){return parseFloat((Math.floor(100*t)/100).toFixed(2))}function w(t,s,i,e){var n=x(t+t*s*Math.cos(Math.PI*i/180)),a=x(t+t*s*Math.sin(Math.PI*i/180));return void 0!==e?{x1:n,y1:a,x2:x(t+t*s*Math.cos(Math.PI*e/180)),y2:x(t+t*s*Math.sin(Math.PI*e/180))}:{x:n,y:a}}function $(t,s,i,e,n){var a=x(n/2*t);return`A ${a}, ${a} 0 ${s} ${x(i)}, ${x(e)}`}function k(t,s){const i=t/s,e=10**Math.floor(Math.log10(i)),n=i/e;let a;return a=n>5?10*e:n>3?5*e:n>2?3*e:n>1.5?2*e:n>1?1.5*e:e,a}function y(t){if(this.popoverEl&&this.popoverEl.open&&"Enter"===t.key){const t=this.popoverEl.querySelector("button");t&&t.click()}}function M(t,s){this.popoverEl&&!this.isTabbing&&(s.coords={x:t.clientX,y:t.clientY},C(this.popoverEl,s),K(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),s))}function z(t,s){this.popoverEl&&this.isTabbing&&(this.focusedSliceId=s.id,s.coords=n(t.target),s.coords.x=s.coords.x+30,s.coords.y=s.coords.y+30,C(this.popoverEl,s),K(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),s))}function A(t){switch(t.key){case"ArrowUp":case"ArrowLeft":t.preventDefault(),this.isTabbing=!0,D.call(this);break;case"ArrowRight":case"ArrowDown":t.preventDefault(),this.isTabbing=!0,B.call(this);break;case"Tab":T.call(this);break;case"Escape":this.popoverEl.open=!1,this.userIsNavigating=!1}}function C(t,s){t.open=!1,s.title&&s.text&&(t.sliceDetails=Object.assign({},s),window.setTimeout((()=>t.open=!0),30))}function B(){const t=e(document.activeElement),s=(this.sliceEls.indexOf(t)+1)%this.sliceEls.length;F.call(this,s)}function D(){if(this.sliceEls){const t=e(document.activeElement);let s=this.sliceEls.indexOf(t);-1===s?s=0:0===s?s=this.sliceEls.length-1:s-=1,F.call(this,s)}}function F(t){this.sliceEls&&this.el&&(this.userIsNavigating=!0,this.componentWrapperEl.tabIndex=-1,this.el.focusable=!1,this.sliceEls.map((t=>{t.tabIndex=-1,t.focusable=!1})),this.sliceEls[t].tabIndex=0,this.sliceEls[t].focusable=!0,this.sliceEls[t].focus(),this.focusedSliceId=this.sliceEls[t].id,window.setTimeout((()=>{this.popoverEl&&(this.popoverEl.open=!0)}),10))}function T(){this.focusedSliceId=void 0,this.sliceEls&&this.sliceEls.map((t=>{t.tabIndex=-1,t.focusable=!1})),this.userIsNavigating=!1,window.setTimeout((()=>{this.componentWrapperEl.tabIndex=0,this.el.focusable=!0,this.popoverEl&&(this.popoverEl.open=!1)}),100)}async function j(t){this.slicesDetails=[];let s=0;const i=Array.from(this.el.children);this.total=i.reduce(((t,s)=>t+parseInt(s.getAttribute("amount")||"0")),0);let e=[...u[t].colors];"bar2"===this.chartType&&(i.length<=5&&e.splice(1,1),i.length<=4&&e.splice(2,1)),"bar3"===t&&2===i.length&&(e=[e[1],e[3]]),"doughnut2"===t&&i.length<5&&(e.splice(2,1),i.length<4&&e.shift()),"bar5"!==t||this.notStartedColor||e.shift();let n=0;i.forEach(((i,a)=>{const r=i.getAttribute("amount");if(null==r)return;const o=parseInt(r||"0"),h=m(o,this.total,!0);let c=a;"bar6"===t&&(c=0);const d={amount:o,visualAmount:o,perc:h,legend:i.getAttribute("legend"),color:e[c]||l,offset:s,id:`${this.uid}-${n+1}`,title:i.getAttribute("popover-title"),text:i.getAttribute("popover-text"),buttonText:i.getAttribute("popover-button-text"),sliceRef:i,inSmallCluster:!1,index:n};s+=o,this.slicesDetails.push(d),n++}))}function I(t,s,i){const e=v(s,this.total)-90,n=t/this.total*360;let a=e+n;const r=n>180?"1 1":"0 1",o=n>180?"1 0":"0 0",h=this.chartDetails.size/2,c=this.chartDetails.thickness,d="doughnut"===i?2.25:3;360===n&&(a-=.01);const l=w(h,1,e+1.5,a),u=w(h,c,e+d,a);return`M ${l.x1}, ${l.y1} `+$(1,r,l.x2,l.y2,this.chartDetails.size)+` L ${u.x2}, ${u.y2} `+$(c,o,u.x1,u.y1,this.chartDetails.size)+" z"}function S(){const i=s.formatMessage({id:"chart.instructions",defaultMessage:"Use arrow keys to browse elements, press Tab to exit.",description:"For screen readers only, instructions on how to interact with the chart component"});return t("div",{id:"chart-instructions"},i)}function H(s){const i=this.chartDetails.size+this.chartDetails.padding,e="doughnut"===s;let n=e?this.slicesDetails:function(t,s){let i=[...t].sort(((t,s)=>t.amount===s.amount?0:t.amount>s.amount?-1:1)),e=0;return i.filter((t=>t.amount>0)).forEach(((t,n)=>{const a=i[n===i.length-1?0:n+1],r=m(i[0===n?i.length-1:n-1].amount,s,!0),o=m(a.amount,s,!0),h=0===t.perc?8:5;t.inSmallCluster=t.perc<4&&(r<h||o<h),t.offset=e,e+=t.amount})),i}(this.slicesDetails,this.total);n=function(t,s,i){const e=s.map((t=>v(t.amount,i)));if(e.some((t=>0!==t&&t<7))){const t=e.map((t=>0==t?t:Math.max(t,7))),n=t.reduce(((t,s)=>t+(s>7&&0!==s?s:0)),0),a=360-t.reduce(((t,s)=>t+(s>7&&0!==s?0:s)),0),r=(n-a)/a,o=t.map((t=>t>7?t-r*t:0==t?0:7));let h=0;s=s.map(((t,s)=>{const e=o[s]/360*i,n=h;return h+=e,Object.assign(Object.assign({},t),{visualAmount:e,offset:n})}))}return s}(0,n,this.total);const a=n[0].amount;let r=m(a,this.total,!0);return 0===r&&a>0?r="<1%":100===r&&a<this.total?r=">99%":r+="%",t("div",{class:"chart-wrapper doughnut-wrapper"},t("svg",{width:i+"px",height:i+"px",id:`graphic-${this.uid}`,class:"doughnut-svg"},t("defs",null,t("filter",{id:"wmHoverDropShadow"},t("feGaussianBlur",{stdDeviation:"3"}),t("feOffset",{result:"offsetblur"}),t("feFlood",{"flood-color":"#333"}),t("feComposite",{operator:"in",in2:"offsetblur"}),t("feMerge",null,t("feMergeNode",null),t("feMergeNode",{in:"SourceGraphic"})))),n.map((t=>O.call(this,t,s))),G.call(this),e?t("text",{class:"value",x:"50%",y:"50%","font-size":"1.5rem","font-weight":"500","text-anchor":"middle","dominant-baseline":"middle"},r):t("g",{transform:`translate(${this.chartDetails.padding/2}, ${this.chartDetails.padding/2})`,"text-anchor":"middle","dominant-baseline":"middle"},n.map((t=>t.amount>0&&!t.inSmallCluster?U.call(this,t):"")))))}function K(t,s){t.forEach((t=>{t.dataset.segmentindex&&parseInt(t.dataset.segmentindex)!==s.index?t.classList.add("faded"):t.classList.remove("faded")}))}function N(t){t.forEach((t=>{t.classList.remove("faded")}))}function O(s,i){const e=m(s.amount,this.total,!0)+"%";return!isNaN(s.amount)&&t("g",{transform:`translate(${this.chartDetails.padding/2}, ${this.chartDetails.padding/2})`},t("path",{id:s.id,class:"segment doughnut-segment",fill:s.visualAmount?s.color:"transparent",d:I.call(this,s.visualAmount,s.offset,i),onClick:t=>M.call(this,t,s),onFocus:t=>z.call(this,t,s),onKeyDown:t=>y.call(this,t),role:"img","aria-label":`${s.legend}, ${e}`,"data-segmentindex":s.index}))}function G(){return this.isTabbing?t("g",{transform:`translate(${this.chartDetails.padding/2}, ${this.chartDetails.padding/2})`},t("use",{tabindex:-1,id:"kfbg1",xlinkHref:`#${this.focusedSliceId}`}),t("use",{tabindex:-1,id:"kfstroke",xlinkHref:`#${this.focusedSliceId}`}),t("use",{tabindex:-1,id:"kfbg2",xlinkHref:`#${this.focusedSliceId}`})):""}function U(s){const i=v(s.offset+s.visualAmount/2,this.total);let e,{x:n,y:a}=w(this.chartDetails.size/2,1.4,i-90);return e=0===s.perc&&s.amount>0?"<1%":100===s.perc&&s.amount<this.total?">99%":s.perc+"%",t("text",{class:"value",x:n+"px",y:a+"px","data-segmentindex":s.index},e)}function W(s){const i="bar"===s,e=this.el.shadowRoot.querySelectorAll(".value");return e.length>0&&requestAnimationFrame((()=>{let t=[],s=!1;e.forEach((i=>{i.classList.remove("hidden");const e=parseInt(i.dataset.value);if(t.length>0&&0!=e){const n=i.getBoundingClientRect().left-4;t.forEach((t=>{const a=parseInt(t.dataset.value);t.getBoundingClientRect().right>n&&((e<a?i:t).classList.add("hidden"),s=!0)}))}!i.classList.contains("hidden")&&e>0&&t.push(i)})),(this.isBar||this.isDoughnut)&&this.showHiddenValuesMessage(s)})),t("div",{class:"chart-wrapper bar-wrapper"},i?t("div",{class:"single-perc"},m(this.slicesDetails[0].amount,this.total,!0)+"%"):"","bar3"===this.chartType&&this.drawAxis(),t("div",{class:`inner-stacked-bar-wrapper ${f(this.valueFormat)}`},i?"":t("div",{class:`values ${this.valueFormat}`},this.slicesDetails.map((t=>this.renderBarText(t,5)))),t("div",{class:"stacked-bar-segments-wrapper"},this.slicesDetails.map((t=>q.call(this,t,5)))),i?Y.call(this):""),"bar3"===this.chartType?t("div",{class:"bar3-axis-label","aria-hidden":"true"},t("span",null,"0%"),t("span",null,"100%")):"")}function q(s,i){const e=m(s.amount,this.total,!1),n=this.el.shadowRoot.querySelector(".stacked-bar-segments-wrapper"),a=e/100*(n?n.offsetWidth:this.el.offsetWidth)>=i,r=a||0==s.amount?`${e}%`:`${i}px`;let o="";return"percentage"==this.valueFormat?o=`${m(s.amount,this.total,!0)} %`:"amount"==this.valueFormat&&(o=s.amount.toString()),t("div",{class:`segment stacked-bar-segment ${0===m(s.amount,this.total,!1)?"zero":""} ${a?"":"fixed-width"}`,style:{backgroundColor:s.color,width:r},onClick:t=>M.call(this,t,s),onFocus:t=>z.call(this,t,s),onKeyDown:t=>y.call(this,t),"data-segmentindex":s.index},t("span",{class:"sr-only"},`${s.legend} ${o}`))}function E(s){const e=this.slicesDetails.map((t=>t.amount)).reduce(((t,s)=>t>s?t:s)),n=parseInt(getComputedStyle(this.el).getPropertyValue("--labelWidth"),10);let a=(r=this.el.getBoundingClientRect().width-n-48,Math.round(r/function(t){return function(t){let s=80*(t-300)/600+70;return s<70?70:s>150?150:s}(t)}(r)));var r;let o=k(e,a);const h=Math.floor((a*o-e)/o);a-=h,this.el.style.setProperty("--backgroundSize",100/a+"%"),this.el.style.setProperty("--labelWidth",this.labelWidth),"bar7"!==s||this.showBarLegend||this.el.style.setProperty("--labelWidth","0px");const c=[];this.slicesDetails.forEach((i=>{i.legend&&c.push(function(s,i,e){return t("label",{class:`label${"bar7"!==e||i?"":" hidden"}`},s)}(i.legend,this.showBarLegend,s)),c.push(L.call(this,i,o,a,e))}));const d=[];for(let s=1;s<=a;s++){const e=b(i(s,o));d.push(t("div",{class:"tick"},t("span",null,e)))}const l="bar6"===s&&this.showGrid&&this.el.getBoundingClientRect().width>300;return t("div",{class:"chart-wrapper simple-bar-wrapper"},t("div",{class:`chart ${f(this.valueFormat)}`},l&&t("div",{class:"gridlines"}),t("div",{class:"rows"},c)),l&&t("div",{class:"x-axis","aria-hidden":"true"},t("div",{class:"zero"},t("span",null,"0")),d))}function L(s,i,e,n){const a=m(s.amount,"bar6"===this.currentChartType?i*e:n,!1),r=a?a+"%":"1px",o=b(s.amount);let h="amount"===this.valueFormat?o:"";return"bar6"===this.currentChartType&&"percentage"===this.valueFormat?h=s.amount+"%":"bar7"===this.currentChartType&&"percentage"===this.valueFormat&&(h=(0===this.total?"0":m(s.amount,this.total,!0))+"%"),t("div",{class:"bar segment",style:{backgroundColor:s.color,width:r},onClick:t=>M.call(this,t,s),onFocus:t=>z.call(this,t,s),onKeyDown:t=>y.call(this,t),"data-segmentindex":s.index},t("div",{class:"value"},h))}function R(s){if(this.showLegend){const i=this.slicesDetails.reduce(((t,s)=>!!s.inSmallCluster||t),!1);return this.isDoughnut&&this.showHiddenValuesMessage(i),t("div",{class:"legend-wrapper"},t("div",{class:`legend ${s} ${"bar"===this.mode?"--top":"--bottom"}`,"aria-hidden":"true"},this.slicesDetails.map((t=>{const s="amount"==this.printModeFormat?`${t.amount}/${this.total}`:`${m(t.amount,this.total,!0)}%`;if(t.amount||t.legend)return V.call(this,{key:t.legend,color:t.color},s,t)}))),this.isDoughnut&&!this.printMode&&J())}}function V(s,i="",e=null){const n=t=>{e&&(e.coords={x:t.clientX,y:t.clientY},C(this.popoverEl,e),K(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),e))};return t("div",{class:"legend-item",onClick:t=>n(t),"data-segmentindex":e?e.index:null},t("div",{class:"legend-color",style:{backgroundColor:s.color}}),t("div",{class:"legend-text"},s.key,i&&t("span",{class:"print-value "+(this.printMode?"force-visible":"")},": ",i)))}function Y(){if(this.completionMessage)return t("div",{class:"completion-message"},this.completionMessage)}function J(){return t("div",{class:"hidden-values-warning hidden"},g,t("br",null),p)}export{u as a,m as b,E as c,W as d,H as e,S as f,j as g,A as h,R as i,J as j,T as k,k as l,b as m,Y as n,V as o,N as r}
|