@iqworksai/common-components 0.1.6 → 0.1.8

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.
@@ -0,0 +1,159 @@
1
+ "use strict";var N6=Object.defineProperty;var T6=(e,t,n)=>t in e?N6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var U=(e,t,n)=>T6(e,typeof t!="symbol"?t+"":t,n);const b=require("react/jsx-runtime"),v=require("react"),In=require("react-dom");function H1(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const W=H1(v),fa=H1(In);var G1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ru=v.createContext&&v.createContext(G1),D6=["attr","size","title"];function V6(e,t){if(e==null)return{};var n=j6(e,t),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)i=o[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function j6(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function ha(){return ha=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ha.apply(this,arguments)}function ou(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function ga(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ou(Object(n),!0).forEach(function(i){B6(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ou(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function B6(e,t,n){return t=$6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $6(e){var t=H6(e,"string");return typeof t=="symbol"?t:t+""}function H6(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function z1(e){return e&&e.map((t,n)=>v.createElement(t.tag,ga({key:n},t.attr),z1(t.child)))}function Ie(e){return t=>v.createElement(G6,ha({attr:ga({},e.attr)},t),z1(e.child))}function G6(e){var t=n=>{var{attr:i,size:r,title:o}=e,s=V6(e,D6),a=r||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),v.createElement("svg",ha({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,s,{className:l,style:ga(ga({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&v.createElement("title",null,o),e.children)};return ru!==void 0?v.createElement(ru.Consumer,null,n=>t(n)):t(G1)}function z6(e){return Ie({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm108.25 138.29-134.4 160a16 16 0 0 1-12 5.71h-.27a16 16 0 0 1-11.89-5.3l-57.6-64a16 16 0 1 1 23.78-21.4l45.29 50.32 122.59-145.91a16 16 0 0 1 24.5 20.58z"},child:[]}]})(e)}function W6(e){return Ie({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm75.31 260.69a16 16 0 1 1-22.62 22.62L256 278.63l-52.69 52.68a16 16 0 0 1-22.62-22.62L233.37 256l-52.68-52.69a16 16 0 0 1 22.62-22.62L256 233.37l52.69-52.68a16 16 0 0 1 22.62 22.62L278.63 256z"},child:[]}]})(e)}function Z6(e){return Ie({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 56C145.72 56 56 145.72 56 256s89.72 200 200 200 200-89.72 200-200S366.28 56 256 56zm0 82a26 26 0 1 1-26 26 26 26 0 0 1 26-26zm48 226h-88a16 16 0 0 1 0-32h28v-88h-16a16 16 0 0 1 0-32h32a16 16 0 0 1 16 16v104h28a16 16 0 0 1 0 32z"},child:[]}]})(e)}function X6(e){return Ie({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M449.07 399.08 278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0 0 80 446.25h340.89a32 32 0 0 0 28.18-47.17zm-198.6-1.83a20 20 0 1 1 20-20 20 20 0 0 1-20 20zm21.72-201.15-5.74 122a16 16 0 0 1-32 0l-5.74-121.95a21.73 21.73 0 0 1 21.5-22.69h.21a21.74 21.74 0 0 1 21.73 22.7z"},child:[]}]})(e)}const Y6={info:"bg-brand-surface-subtle border-brand-primary",warning:"bg-amber-50 dark:bg-amber-900/20 border-amber-200 dark:border-amber-700 text-amber-800 dark:text-amber-200",success:"bg-green-50 dark:bg-green-900/20 border-green-200 dark:border-green-800 text-green-800 dark:text-green-200",error:"bg-red-50 dark:bg-red-900/20 border-red-200 dark:border-red-800 text-red-800 dark:text-red-200"},J6={info:Z6,warning:X6,success:z6,error:W6},U6=({variant:e="info",title:t,children:n,compact:i=!1,className:r="",borderStyle:o="left",icon:s=!0})=>{const a=J6[e],l=i?"p-3":"p-4",c=o==="left"?"border-l-4":"border rounded-lg";return b.jsx("div",{className:`${Y6[e]} ${c} ${l} ${r}`,children:b.jsxs("div",{className:s?"flex items-start":"",children:[s&&b.jsx(a,{className:`${i?"text-lg":"text-xl"} mr-3 flex-shrink-0 mt-0.5`}),b.jsxs("div",{className:"flex-1",children:[t&&b.jsx("p",{className:`font-semibold ${i?"text-sm":""} ${typeof n=="string"?"":"mb-1"}`,children:t}),typeof n=="string"?b.jsx("p",{className:i?"text-sm":"",children:n}):b.jsx("div",{className:i?"text-sm":"",children:n})]})]})})},Q6=({isLoading:e,isRelative:t})=>e?b.jsxs("div",{"data-testid":"loader-overlay",role:"status","aria-live":"polite","aria-label":"Loading",className:`${t?"absolute":"fixed"} inset-0 flex items-center justify-center bg-black/50 dark:bg-black/70 z-[99990]`,children:[b.jsx("div",{"data-testid":"loader-spinner",className:"loader rounded-full w-12 h-12 animate-spin",style:{border:"4px solid var(--brand-light)",borderTopColor:"var(--brand-orange)"}}),b.jsx("span",{className:"sr-only",children:"Loading..."})]}):null;function su(e){return Ie({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"},child:[]}]})(e)}function au(e){return Ie({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},child:[]}]})(e)}function lu(e){return Ie({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"},child:[]}]})(e)}function W1(e){return Ie({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},child:[]}]})(e)}function q6(e){return Ie({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z"},child:[]}]})(e)}function K6(e){return Ie({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256.12 245.96c-13.25 0-24 10.74-24 24 1.14 72.25-8.14 141.9-27.7 211.55-2.73 9.72 2.15 30.49 23.12 30.49 10.48 0 20.11-6.92 23.09-17.52 13.53-47.91 31.04-125.41 29.48-224.52.01-13.25-10.73-24-23.99-24zm-.86-81.73C194 164.16 151.25 211.3 152.1 265.32c.75 47.94-3.75 95.91-13.37 142.55-2.69 12.98 5.67 25.69 18.64 28.36 13.05 2.67 25.67-5.66 28.36-18.64 10.34-50.09 15.17-101.58 14.37-153.02-.41-25.95 19.92-52.49 54.45-52.34 31.31.47 57.15 25.34 57.62 55.47.77 48.05-2.81 96.33-10.61 143.55-2.17 13.06 6.69 25.42 19.76 27.58 19.97 3.33 26.81-15.1 27.58-19.77 8.28-50.03 12.06-101.21 11.27-152.11-.88-55.8-47.94-101.88-104.91-102.72zm-110.69-19.78c-10.3-8.34-25.37-6.8-33.76 3.48-25.62 31.5-39.39 71.28-38.75 112 .59 37.58-2.47 75.27-9.11 112.05-2.34 13.05 6.31 25.53 19.36 27.89 20.11 3.5 27.07-14.81 27.89-19.36 7.19-39.84 10.5-80.66 9.86-121.33-.47-29.88 9.2-57.88 28-80.97 8.35-10.28 6.79-25.39-3.49-33.76zm109.47-62.33c-15.41-.41-30.87 1.44-45.78 4.97-12.89 3.06-20.87 15.98-17.83 28.89 3.06 12.89 16 20.83 28.89 17.83 11.05-2.61 22.47-3.77 34-3.69 75.43 1.13 137.73 61.5 138.88 134.58.59 37.88-1.28 76.11-5.58 113.63-1.5 13.17 7.95 25.08 21.11 26.58 16.72 1.95 25.51-11.88 26.58-21.11a929.06 929.06 0 0 0 5.89-119.85c-1.56-98.75-85.07-180.33-186.16-181.83zm252.07 121.45c-2.86-12.92-15.51-21.2-28.61-18.27-12.94 2.86-21.12 15.66-18.26 28.61 4.71 21.41 4.91 37.41 4.7 61.6-.11 13.27 10.55 24.09 23.8 24.2h.2c13.17 0 23.89-10.61 24-23.8.18-22.18.4-44.11-5.83-72.34zm-40.12-90.72C417.29 43.46 337.6 1.29 252.81.02 183.02-.82 118.47 24.91 70.46 72.94 24.09 119.37-.9 181.04.14 246.65l-.12 21.47c-.39 13.25 10.03 24.31 23.28 24.69.23.02.48.02.72.02 12.92 0 23.59-10.3 23.97-23.3l.16-23.64c-.83-52.5 19.16-101.86 56.28-139 38.76-38.8 91.34-59.67 147.68-58.86 69.45 1.03 134.73 35.56 174.62 92.39 7.61 10.86 22.56 13.45 33.42 5.86 10.84-7.62 13.46-22.59 5.84-33.43z"},child:[]}]})(e)}function eg(e){return Ie({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z"},child:[]}]})(e)}function cu(e){return Ie({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64z"},child:[]}]})(e)}function tg(e){return Ie({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},child:[]}]})(e)}function ng(e){return Ie({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M512 176.001C512 273.203 433.202 352 336 352c-11.22 0-22.19-1.062-32.827-3.069l-24.012 27.014A23.999 23.999 0 0 1 261.223 384H224v40c0 13.255-10.745 24-24 24h-40v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-78.059c0-6.365 2.529-12.47 7.029-16.971l161.802-161.802C163.108 213.814 160 195.271 160 176 160 78.798 238.797.001 335.999 0 433.488-.001 512 78.511 512 176.001zM336 128c0 26.51 21.49 48 48 48s48-21.49 48-48-21.49-48-48-48-48 21.49-48 48z"},child:[]}]})(e)}function ig(e){return Ie({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"},child:[]}]})(e)}function rg(e){return Ie({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"},child:[]}]})(e)}function og(e){return Ie({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z"},child:[]}]})(e)}function sg(e){return Ie({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"},child:[]}]})(e)}function Z1(e){return Ie({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(e)}function zt(...e){const t=[];for(const n of e)if(n){if(typeof n=="string")t.push(n);else if(typeof n=="number")t.push(String(n));else if(Array.isArray(n)){const i=zt(...n);i&&t.push(i)}}return t.join(" ")}function ag(e,t,n=""){return e?t:n}function lg(e,t,n=""){return t[e]||n}const zl=e=>{v.useEffect(()=>{if(!e)return;const t=document.body.style.overflow,n=document.body.style.paddingRight,i=window.innerWidth-document.documentElement.clientWidth;return document.body.style.overflow="hidden",i>0&&(document.body.style.paddingRight=`${i}px`),document.body.classList.add("overflow-hidden"),()=>{document.body.style.overflow=t,document.body.style.paddingRight=n,document.body.classList.remove("overflow-hidden")}},[e])},ar=({title:e,subtitle:t,isUuidSubtitle:n=!0,body:i,onClose:r,onConfirm:o,onDelete:s,showFooter:a=!0,customFooter:l,isOpen:c,confirmButtonText:u="Confirm",disableConfirm:d,deleteButtonText:f="Delete",cancelButtonText:h="Cancel",customWidth:g="max-w-screen-lg max-h-[90vh] lg:min-w-[600px]",wrapperClass:p})=>{if(zl(c),!c)return null;const m=b.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center z-[40] p-4 overflow-y-auto",children:b.jsxs("div",{className:zt("relative py-4 rounded-lg shadow-lg modal","w-[95%] sm:w-[90%] md:w-[85%] lg:w-auto","min-w-[320px] sm:min-w-[400px] md:min-w-[500px]","max-h-[90vh] flex flex-col",g,p),style:{backgroundColor:"var(--bg-color)",border:"1px solid var(--border-color)"},children:[b.jsx(cg,{title:e,onClose:r}),t&&b.jsx(ug,{subtitle:t,isUuidSubtitle:n}),i&&b.jsx(dg,{body:i}),a&&b.jsx(fg,{customFooter:l,onClose:r,onConfirm:o,onDelete:s,cancelButtonText:h,confirmButtonText:u,deleteButtonText:f,disableConfirm:d})]})});return In.createPortal(m,document.getElementById("modal-root")||document.body)},cg=({title:e,onClose:t})=>b.jsx("div",{className:"px-4 flex-shrink-0",children:b.jsxs("div",{className:"flex justify-between items-center",children:[b.jsx("h2",{className:"text-lg font-semibold",style:{color:"var(--text-color)",fontFamily:"var(--font-family-heading, 'Afacad', 'Rubik', sans-serif)"},children:typeof e=="string"?b.jsx("span",{children:e}):e}),b.jsx("button",{onClick:t,className:"text-brand-primary hover:opacity-80","aria-label":"Close",children:b.jsx(Z1,{size:16})})]})}),ug=({subtitle:e,isUuidSubtitle:t})=>b.jsx("div",{className:"px-4 flex-shrink-0",children:b.jsxs("div",{className:zt("mt-1 p-2 text-xs rounded-md flex flex-wrap",t?"gap-1":"flex-col"),style:{backgroundColor:"var(--hover-bg-color)",color:"var(--text-color)"},children:[t&&b.jsx("b",{style:{color:"var(--text-color)"},children:"UUID:"}),typeof e=="string"?b.jsx("span",{className:"break-all",children:e}):e]})}),dg=({body:e})=>b.jsx("div",{className:zt("px-4 text-sm modal-body flex-1",typeof e=="string"?"pb-4 mt-2":"pb-1 mt-1"),children:typeof e=="string"?b.jsx("p",{className:"break-words",style:{color:"var(--text-color)"},children:e}):e}),fg=({customFooter:e,onClose:t,onConfirm:n,onDelete:i,cancelButtonText:r,confirmButtonText:o,deleteButtonText:s,disableConfirm:a})=>b.jsx("div",{className:"px-4 mt-1 flex-shrink-0",children:e||b.jsxs("div",{className:"flex flex-wrap justify-between gap-2 sm:space-x-2",children:[t&&r&&b.jsx("button",{"data-testid":"modal-cancel-button",onClick:t,className:"px-4 py-2 rounded footer-button",style:{backgroundColor:"var(--hover-bg-color)",color:"var(--text-color)",border:"1px solid var(--border-color)"},onMouseEnter:l=>l.currentTarget.style.backgroundColor="var(--brand-light)",onMouseLeave:l=>l.currentTarget.style.backgroundColor="var(--hover-bg-color)",children:r}),i&&b.jsx("button",{"data-testid":"modal-delete-button",onClick:i,className:zt("border border-red-600 text-red-600 px-4 py-2 rounded-md","hover:bg-red-200 dark:text-red-400","dark:hover:bg-red-700 dark:border-red-500","footer-button"),children:s}),n&&b.jsx("button",{"data-testid":"modal-save-button",onClick:n,disabled:a,className:zt("bg-brand-primary text-white px-4 py-2 rounded-md hover:bg-[var(--brand-orange)]/90","footer-button",a&&"opacity-50 cursor-not-allowed"),children:o})]})});function hg(e){return Ie({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C140.559 48 48 140.559 48 256c0 115.436 92.559 208 208 208 115.435 0 208-92.564 208-208 0-115.441-92.564-208-208-208zm104.002 282.881l-29.12 29.117L256 285.117l-74.881 74.881-29.121-29.117L226.881 256l-74.883-74.881 29.121-29.116L256 226.881l74.881-74.878 29.12 29.116L285.119 256l74.883 74.881z"},child:[]}]})(e)}function gg(e){return Ie({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 0 1-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"},child:[]}]})(e)}function pg(e){return Ie({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"},child:[]}]})(e)}function mg(e){return Ie({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"},child:[]}]})(e)}function pa(e){return Ie({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"},child:[]},{tag:"path",attr:{d:"M464 336a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"},child:[]}]})(e)}function bg(e){return Ie({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752ZM12 8.5a.75.75 0 0 0-.75.75v4.5a.75.75 0 0 0 1.5 0v-4.5A.75.75 0 0 0 12 8.5Zm1 9a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z"},child:[]}]})(e)}var pt=(e=>(e.SUCCESS="success",e.ERROR="error",e.INFO="info",e.WARNING="warning",e))(pt||{}),yo=(e=>(e.SCANS="scans",e.ATTRIBUTE="attributes",e.ENDPOINT="endpoint",e.DEPARTMENTS="departments",e.CONNECTORS="connectors",e.SHARED_DRIVE="shared_drive",e.ONE_DRIVE="one_drive",e.AWS_S3="aws_s3",e.OUTLOOK="outlook",e.SALESFORCE="salesforce",e.SCANRESULT="scansResult",e.PROCESSED="ProcessedResults",e.FILE="File",e.FILEBROWSER="fileBrowser",e.SCANCONNECTORS="scanConnectors",e.METADATA="metaData",e.FILTERED="filtered",e.LEGENDS="legends",e.REPORTS="reports",e.APPLICATION_CATALOG="application_catalog",e.CLASSIFICATION_LEVELS="classification_levels",e.CLASSIFICATION_RULES="classification_rules",e.AUDIT_TRAIL="audit_trail",e.RETENTION_RULES="retention_rules",e.RETENTION_AUDIT_TRAIL="retention_audit_trail",e))(yo||{}),Ii=(e=>(e.LINEAR="Linear",e.LOG="logarithmic",e.NORMALISED="normalised",e))(Ii||{}),X1=(e=>(e.DEPARTMENTS="departments",e.GEOLOCATIONS="geolocations",e))(X1||{}),Y1=(e=>(e.DATABASE="database",e.SHARED_DRIVE="shared_drive",e.ONE_DRIVE="one_drive",e.AWS_S3="aws_s3",e.SALESFORCE="salesforce",e))(Y1||{}),J1=(e=>(e.SCAN_STATUS="scan_status",e))(J1||{});const uu={[pt.SUCCESS]:b.jsx(gg,{size:"1.5rem"}),[pt.INFO]:b.jsx(mg,{size:"1.5rem"}),[pt.ERROR]:b.jsx(pg,{size:"1.5rem"}),[pt.WARNING]:b.jsx(bg,{size:"1.5rem"})},Cg=({message:e,type:t=pt.INFO,duration:n=5e3,onClose:i})=>{v.useEffect(()=>{const o=setTimeout(()=>{i()},n);return()=>clearTimeout(o)},[n,i]);const r=o=>{o.stopPropagation(),i()};return b.jsxs("div",{className:`toast toast-${t}`,role:"alert","aria-live":"assertive",onClick:o=>o.stopPropagation(),children:[uu[t]&&b.jsx("span",{className:"toast-icon",children:uu[t]}),b.jsx("div",{className:"toast-message",children:e}),b.jsx("button",{onClick:r,"aria-label":"Close notification",className:"toast-close-button",children:b.jsx(hg,{size:"1.2rem"})})]})},gr=({text:e,children:t,position:n="bottom",fixedWidth:i=!1,isVisible:r=!0})=>{const[o,s]=v.useState(!1),[a,l]=v.useState({}),[c,u]=v.useState({}),d=v.useRef(null),f=v.useRef(null);return v.useEffect(()=>{if(!r){s(!1);return}if(!o||!d.current)return;const h=d.current.getBoundingClientRect(),g=f.current;if(!g)return;const p=g.getBoundingClientRect(),m=window.innerWidth,C=window.innerHeight;let y=n,x=0,I=0,w=0,R=0;switch(n==="top"&&h.top-p.height<10?y="bottom":n==="bottom"&&h.bottom+p.height>C-10?y="top":n==="left"&&h.left-p.width<10?y="right":n==="right"&&h.right+p.width>m-10&&(y="left"),y){case"top":x=h.top-p.height-8,I=h.left+h.width/2-p.width/2,w=p.height-4,R=p.width/2-5;break;case"bottom":x=h.bottom+8,I=h.left+h.width/2-p.width/2,w=-5,R=p.width/2-5;break;case"left":x=h.top+h.height/2-p.height/2,I=h.left-p.width-8,w=p.height/2-5,R=p.width-4;break;case"right":x=h.top+h.height/2-p.height/2,I=h.right+8,w=p.height/2-5,R=-5;break}l({top:`${x}px`,left:`${I}px`,opacity:1,visibility:"visible"}),u({top:`${w}px`,left:`${R}px`,transform:"rotate(45deg)"})},[r,o,n]),b.jsxs("div",{className:"tooltip-wrapper",ref:d,onMouseEnter:()=>r&&s(!0),onMouseLeave:()=>r&&s(!1),children:[t,r&&o&&In.createPortal(b.jsxs("div",{ref:f,className:`tooltip ${i?"fixed-width":""}`,style:a,children:[e,b.jsx("span",{className:"tooltip-arrow",style:c})]}),document.body)]})},on={failed:"bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400",running:"bg-yellow-200 text-yellow-700 dark:bg-yellow-900/30 dark:text-yellow-400",partial_successful:"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400",successful:"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400",not_started:"bg-gray-100 text-gray-700 dark:bg-gray-700 dark:text-gray-300",request_received:"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400",completed:"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400",suspended:"bg-orange-100 text-orange-700 dark:bg-orange-900/30 dark:text-orange-400",cancelled:"bg-purple-100 text-purple-700 dark:bg-purple-900/30 dark:text-purple-400",scheduled:"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400"},k0={scheduled:{icon:lu,label:"Scheduled",colorClass:on.scheduled||"bg-blue-100 text-blue-700"},completed:{icon:au,label:"Completed",colorClass:on.completed||"bg-green-100 text-green-700"},successful:{icon:au,label:"Successful",colorClass:on.successful||"bg-green-100 text-green-700"},failed:{icon:sg,label:"Failed",colorClass:on.failed||"bg-red-100 text-red-700"},partial_successful:{icon:W1,label:"Partially Successful",colorClass:on.partial_successful||"bg-blue-100 text-blue-700"},running:{icon:og,animation:"animate-spin",label:"Running",colorClass:on.running||"bg-yellow-200 text-yellow-700"},not_started:{icon:lu,label:"Not Started",colorClass:on.not_started||"bg-gray-100 text-gray-700"},request_received:{icon:cu,label:"Request Received",colorClass:on.request_received||"bg-blue-100 text-blue-700"},queue:{icon:cu,label:"In Queue",colorClass:"bg-blue-100 text-blue-700"},suspended:{icon:su,label:"Suspended",colorClass:on.suspended||"bg-orange-100 text-orange-700"},cancelled:{icon:su,label:"Cancelled",colorClass:on.cancelled||"bg-purple-100 text-purple-700"},unknown:{icon:rg,label:"Unknown",colorClass:"bg-gray-100 text-gray-700"}},Wl=e=>k0[e]||k0.unknown,vg=e=>["running","not_started","request_received"].includes(e),xg=e=>["failed","cancelled","suspended","unknown"].includes(e),yg=e=>["completed","successful"].includes(e),ma=v.memo(({statusKey:e})=>{const{icon:t,animation:n}=Wl(e);return b.jsx(t,{className:zt("mr-1",n)})});ma.displayName="StatusIcon";const wg=({statusKey:e,statusLabel:t,scheduledTime:n,recurrenceDetails:i,showScheduledInfo:r=!1,adjustWidth:o=!0})=>{const{colorClass:s}=Wl(e);return r&&n?b.jsxs("div",{className:`flex flex-col items-center ${o?"w-max":""}`,children:[b.jsxs("span",{className:zt("inline-flex items-center px-2 py-1 text-xs font-medium rounded w-max",s),children:[b.jsx(ma,{statusKey:e}),t]}),b.jsxs("div",{className:"flex items-center gap-1 mt-1",children:[b.jsx("span",{className:"text-[10px] text-gray-500",children:n}),i&&b.jsx(gr,{text:i,position:"top",children:b.jsx(tg,{className:"text-xs cursor-pointer",style:{color:"var(--secondary-text-color)"}})})]})]}):b.jsxs("span",{className:zt("inline-flex items-center px-2 py-1 text-xs font-medium rounded",s),children:[b.jsx(ma,{statusKey:e}),t]})},Sg=({enabled:e,setEnabled:t,id:n="toggle-switch",disabled:i=!1,ariaLabel:r})=>{const o=v.useCallback(()=>{i||t(!e)},[e,t,i]);return b.jsx("button",{id:n,type:"button",role:"switch","aria-checked":e,"aria-label":r,disabled:i,onClick:o,className:zt("toggle-switch",e?"toggle-on":"toggle-off",i&&"opacity-50 cursor-not-allowed"),children:b.jsx("span",{className:zt("toggle-knob",e?"knob-on":"knob-off")})})},Ig=typeof document<"u"?v.useLayoutEffect:()=>{},hi=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},_i=e=>e&&"window"in e&&e.window===e?e:hi(e).defaultView||window;function Mg(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function _g(e){return Mg(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let Ag=!1;function Zl(){return Ag}function U1(e,t){if(!Zl())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:_g(n)?n=n.host:n=n.parentNode}return!1}const P0=(e=document)=>{var t;if(!Zl())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function Q1(e){return Zl()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function Eg(e){if(Rg())e.focus({preventScroll:!0});else{let t=kg(e);e.focus(),Pg(t)}}let ls=null;function Rg(){if(ls==null){ls=!1;try{document.createElement("div").focus({get preventScroll(){return ls=!0,!0}})}catch{}}return ls}function kg(e){let t=e.parentNode,n=[],i=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==i;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return i instanceof HTMLElement&&n.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),n}function Pg(e){for(let{element:t,scrollTop:n,scrollLeft:i}of e)t.scrollTop=n,t.scrollLeft=i}function o2(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(i=>e.test(i.brand))||e.test(window.navigator.userAgent)}function Xl(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Yn(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const wo=Yn(function(){return Xl(/^Mac/i)}),Lg=Yn(function(){return Xl(/^iPhone/i)}),q1=Yn(function(){return Xl(/^iPad/i)||wo()&&navigator.maxTouchPoints>1}),Fg=Yn(function(){return Lg()||q1()});Yn(function(){return wo()||Fg()});const Og=Yn(function(){return o2(/AppleWebKit/i)&&!Ng()}),Ng=Yn(function(){return o2(/Chrome/i)}),Tg=Yn(function(){return o2(/Android/i)}),Dg=Yn(function(){return o2(/Firefox/i)});function So(e,t,n=!0){var i,r;let{metaKey:o,ctrlKey:s,altKey:a,shiftKey:l}=t;Dg()&&(!((r=window.event)===null||r===void 0||(i=r.type)===null||i===void 0)&&i.startsWith("key"))&&e.target==="_blank"&&(wo()?o=!0:s=!0);let c=Og()&&wo()&&!q1()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:o,ctrlKey:s,altKey:a,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});So.isOpening=n,Eg(e),e.dispatchEvent(c),So.isOpening=!1}So.isOpening=!1;function K1(){let e=v.useRef(new Map),t=v.useCallback((r,o,s,a)=>{let l=a!=null&&a.once?(...c)=>{e.current.delete(s),s(...c)}:s;e.current.set(s,{type:o,eventTarget:r,fn:l,options:a}),r.addEventListener(o,l,a)},[]),n=v.useCallback((r,o,s,a)=>{var l;let c=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;r.removeEventListener(o,c,a),e.current.delete(s)},[]),i=v.useCallback(()=>{e.current.forEach((r,o)=>{n(r.eventTarget,r.type,o,r.options)})},[n]);return v.useEffect(()=>i,[i]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:i}}function Vg(e){return e.pointerType===""&&e.isTrusted?!0:Tg()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function e3(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function jg(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function t3(e){let t=v.useRef({isFocused:!1,observer:null});return Ig(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),v.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=n.target,r=o=>{if(t.current.isFocused=!1,i.disabled){let s=e3(o);e==null||e(s)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",r,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let s=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let Bg=!1,Go=null,L0=new Set,ro=new Map,ji=!1,F0=!1;const $g={Tab:!0,Escape:!0};function Yl(e,t){for(let n of L0)n(e,t)}function Hg(e){return!(e.metaKey||!wo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ba(e){ji=!0,!So.isOpening&&Hg(e)&&(Go="keyboard",Yl("keyboard",e))}function Ut(e){Go="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(ji=!0,Yl("pointer",e))}function n3(e){!So.isOpening&&Vg(e)&&(ji=!0,Go="virtual")}function i3(e){e.target===window||e.target===document||Bg||!e.isTrusted||(!ji&&!F0&&(Go="virtual",Yl("virtual",e)),ji=!1,F0=!1)}function r3(){ji=!1,F0=!0}function O0(e){if(typeof window>"u"||typeof document>"u"||ro.get(_i(e)))return;const t=_i(e),n=hi(e);let i=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ji=!0,i.apply(this,arguments)},n.addEventListener("keydown",ba,!0),n.addEventListener("keyup",ba,!0),n.addEventListener("click",n3,!0),t.addEventListener("focus",i3,!0),t.addEventListener("blur",r3,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Ut,!0),n.addEventListener("pointermove",Ut,!0),n.addEventListener("pointerup",Ut,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Ut,!0),n.addEventListener("mousemove",Ut,!0),n.addEventListener("mouseup",Ut,!0)),t.addEventListener("beforeunload",()=>{o3(e)},{once:!0}),ro.set(t,{focus:i})}const o3=(e,t)=>{const n=_i(e),i=hi(e);t&&i.removeEventListener("DOMContentLoaded",t),ro.has(n)&&(n.HTMLElement.prototype.focus=ro.get(n).focus,i.removeEventListener("keydown",ba,!0),i.removeEventListener("keyup",ba,!0),i.removeEventListener("click",n3,!0),n.removeEventListener("focus",i3,!0),n.removeEventListener("blur",r3,!1),typeof PointerEvent<"u"?(i.removeEventListener("pointerdown",Ut,!0),i.removeEventListener("pointermove",Ut,!0),i.removeEventListener("pointerup",Ut,!0)):process.env.NODE_ENV==="test"&&(i.removeEventListener("mousedown",Ut,!0),i.removeEventListener("mousemove",Ut,!0),i.removeEventListener("mouseup",Ut,!0)),ro.delete(n))};function Gg(e){const t=hi(e);let n;return t.readyState!=="loading"?O0(e):(n=()=>{O0(e)},t.addEventListener("DOMContentLoaded",n)),()=>o3(e,n)}typeof document<"u"&&Gg();function s3(){return Go!=="pointer"}const zg=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Wg(e,t,n){let i=hi(n==null?void 0:n.target);const r=typeof window<"u"?_i(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?_i(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?_i(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?_i(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||i.activeElement instanceof r&&!zg.has(i.activeElement.type)||i.activeElement instanceof o||i.activeElement instanceof s&&i.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof a&&!$g[n.key])}function Zg(e,t,n){O0(),v.useEffect(()=>{let i=(r,o)=>{Wg(!!(n!=null&&n.isTextInput),r,o)&&e(s3())};return L0.add(i),()=>{L0.delete(i)}},t)}function Xg(e){let{isDisabled:t,onFocus:n,onBlur:i,onFocusChange:r}=e;const o=v.useCallback(l=>{if(l.target===l.currentTarget)return i&&i(l),r&&r(!1),!0},[i,r]),s=t3(o),a=v.useCallback(l=>{const c=hi(l.target),u=c?P0(c):P0();l.target===l.currentTarget&&u===Q1(l.nativeEvent)&&(n&&n(l),r&&r(!0),s(l))},[r,n,s]);return{focusProps:{onFocus:!t&&(n||r||i)?a:void 0,onBlur:!t&&(i||r)?o:void 0}}}function Yg(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:i,onFocusWithinChange:r}=e,o=v.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=K1(),l=v.useCallback(d=>{d.currentTarget.contains(d.target)&&o.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(o.current.isFocusWithin=!1,a(),n&&n(d),r&&r(!1))},[n,r,o,a]),c=t3(l),u=v.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;const f=hi(d.target),h=P0(f);if(!o.current.isFocusWithin&&h===Q1(d.nativeEvent)){i&&i(d),r&&r(!0),o.current.isFocusWithin=!0,c(d);let g=d.currentTarget;s(f,"focus",p=>{if(o.current.isFocusWithin&&!U1(g,p.target)){let m=new f.defaultView.FocusEvent("blur",{relatedTarget:p.target});jg(m,g);let C=e3(m);l(C)}},{capture:!0})}},[i,r,c,s,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}let Ca=!1,cs=0;function N0(){Ca=!0,setTimeout(()=>{Ca=!1},50)}function du(e){e.pointerType==="touch"&&N0()}function Jg(){if(!(typeof document>"u"))return cs===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",du):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",N0)),cs++,()=>{cs--,!(cs>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",du):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",N0))}}function Ug(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:r}=e,[o,s]=v.useState(!1),a=v.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;v.useEffect(Jg,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=K1(),{hoverProps:u,triggerHoverEnd:d}=v.useMemo(()=>{let f=(p,m)=>{if(a.pointerType=m,r||m==="touch"||a.isHovered||!p.currentTarget.contains(p.target))return;a.isHovered=!0;let C=p.currentTarget;a.target=C,l(hi(p.target),"pointerover",y=>{a.isHovered&&a.target&&!U1(a.target,y.target)&&h(y,y.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:C,pointerType:m}),n&&n(!0),s(!0)},h=(p,m)=>{let C=a.target;a.pointerType="",a.target=null,!(m==="touch"||!a.isHovered||!C)&&(a.isHovered=!1,c(),i&&i({type:"hoverend",target:C,pointerType:m}),n&&n(!1),s(!1))},g={};return typeof PointerEvent<"u"?(g.onPointerEnter=p=>{Ca&&p.pointerType==="mouse"||f(p,p.pointerType)},g.onPointerLeave=p=>{!r&&p.currentTarget.contains(p.target)&&h(p,p.pointerType)}):process.env.NODE_ENV==="test"&&(g.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},g.onMouseEnter=p=>{!a.ignoreEmulatedMouseEvents&&!Ca&&f(p,"mouse"),a.ignoreEmulatedMouseEvents=!1},g.onMouseLeave=p=>{!r&&p.currentTarget.contains(p.target)&&h(p,"mouse")}),{hoverProps:g,triggerHoverEnd:h}},[t,n,i,r,a,l,c]);return v.useEffect(()=>{r&&d({currentTarget:a.target},a.pointerType)},[r]),{hoverProps:u,isHovered:o}}function Qg(e={}){let{autoFocus:t=!1,isTextInput:n,within:i}=e,r=v.useRef({isFocused:!1,isFocusVisible:t||s3()}),[o,s]=v.useState(!1),[a,l]=v.useState(()=>r.current.isFocused&&r.current.isFocusVisible),c=v.useCallback(()=>l(r.current.isFocused&&r.current.isFocusVisible),[]),u=v.useCallback(h=>{r.current.isFocused=h,s(h),c()},[c]);Zg(h=>{r.current.isFocusVisible=h,c()},[],{isTextInput:n});let{focusProps:d}=Xg({isDisabled:i,onFocusChange:u}),{focusWithinProps:f}=Yg({isDisabled:!i,onFocusWithinChange:u});return{isFocused:o,isFocusVisible:a,focusProps:i?f:d}}var qg=Object.defineProperty,Kg=(e,t,n)=>t in e?qg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T2=(e,t,n)=>(Kg(e,typeof t!="symbol"?t+"":t,n),n);let e9=class{constructor(){T2(this,"current",this.detect()),T2(this,"handoffState","pending"),T2(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Pi=new e9;function zo(e){var t;return Pi.isServer?null:e==null?document:(t=e==null?void 0:e.ownerDocument)!=null?t:document}function va(e){var t,n;return Pi.isServer?null:e==null?document:(n=(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))!=null?n:document}function Jl(e){var t,n;return(n=(t=va(e))==null?void 0:t.activeElement)!=null?n:null}function t9(e){return Jl(e)===e}function a3(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Bt(){let e=[],t={addEventListener(n,i,r,o){return n.addEventListener(i,r,o),t.add(()=>n.removeEventListener(i,r,o))},requestAnimationFrame(...n){let i=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(i))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let i=setTimeout(...n);return t.add(()=>clearTimeout(i))},microTask(...n){let i={current:!0};return a3(()=>{i.current&&n[0]()}),t.add(()=>{i.current=!1})},style(n,i,r){let o=n.style.getPropertyValue(i);return Object.assign(n.style,{[i]:r}),this.add(()=>{Object.assign(n.style,{[i]:o})})},group(n){let i=Bt();return n(i),this.add(()=>i.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let i=e.indexOf(n);if(i>=0)for(let r of e.splice(i,1))r()}},dispose(){for(let n of e.splice(0))n()}};return t}function Wo(){let[e]=v.useState(Bt);return v.useEffect(()=>()=>e.dispose(),[e]),e}let wt=(e,t)=>{Pi.isServer?v.useEffect(e,t):v.useLayoutEffect(e,t)};function Zo(e){let t=v.useRef(e);return wt(()=>{t.current=e},[e]),t}let Je=function(e){let t=Zo(e);return v.useCallback((...n)=>t.current(...n),[t])};function n9(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function i9(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function r9({disabled:e=!1}={}){let t=v.useRef(null),[n,i]=v.useState(!1),r=Wo(),o=Je(()=>{t.current=null,i(!1),r.dispose()}),s=Je(a=>{if(r.dispose(),t.current===null){t.current=a.currentTarget,i(!0);{let l=zo(a.currentTarget);r.addEventListener(l,"pointerup",o,!1),r.addEventListener(l,"pointermove",c=>{if(t.current){let u=n9(c);i(i9(u,t.current.getBoundingClientRect()))}},!1),r.addEventListener(l,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:o,onClick:o}}}function Mr(e){return v.useMemo(()=>e,Object.values(e))}let o9=v.createContext(void 0);function l3(){return v.useContext(o9)}function fu(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function _r(e,t,...n){if(e in t){let r=t[e];return typeof r=="function"?r(...n):r}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,_r),i}var T0=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(T0||{}),s9=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(s9||{});function tn(){let e=l9();return v.useCallback(t=>a9({mergeRefs:e,...t}),[e])}function a9({ourProps:e,theirProps:t,slot:n,defaultTag:i,features:r,visible:o=!0,name:s,mergeRefs:a}){a=a??c9;let l=c3(t,e);if(o)return us(l,n,i,s,a);let c=r??0;if(c&2){let{static:u=!1,...d}=l;if(u)return us(d,n,i,s,a)}if(c&1){let{unmount:u=!0,...d}=l;return _r(u?0:1,{0(){return null},1(){return us({...d,hidden:!0,style:{display:"none"}},n,i,s,a)}})}return us(l,n,i,s,a)}function us(e,t={},n,i,r){let{as:o=n,children:s,refName:a="ref",...l}=D2(e,["unmount","static"]),c=e.ref!==void 0?{[a]:e.ref}:{},u=typeof s=="function"?s(t):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let d={};if(t){let f=!1,h=[];for(let[g,p]of Object.entries(t))typeof p=="boolean"&&(f=!0),p===!0&&h.push(g.replace(/([A-Z])/g,m=>`-${m.toLowerCase()}`));if(f){d["data-headlessui-state"]=h.join(" ");for(let g of h)d[`data-${g}`]=""}}if(Ys(o)&&(Object.keys(Ki(l)).length>0||Object.keys(Ki(d)).length>0))if(!v.isValidElement(u)||Array.isArray(u)&&u.length>1||d9(u)){if(Object.keys(Ki(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Ki(l)).concat(Object.keys(Ki(d))).map(f=>` - ${f}`).join(`
2
+ `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(f=>` - ${f}`).join(`
3
+ `)].join(`
4
+ `))}else{let f=u.props,h=f==null?void 0:f.className,g=typeof h=="function"?(...C)=>fu(h(...C),l.className):fu(h,l.className),p=g?{className:g}:{},m=c3(u.props,Ki(D2(l,["ref"])));for(let C in d)C in m&&delete d[C];return v.cloneElement(u,Object.assign({},m,d,c,{ref:r(u9(u),c.ref)},p))}return v.createElement(o,Object.assign({},D2(l,["ref"]),!Ys(o)&&c,!Ys(o)&&d),u)}function l9(){let e=v.useRef([]),t=v.useCallback(n=>{for(let i of e.current)i!=null&&(typeof i=="function"?i(n):i.current=n)},[]);return(...n)=>{if(!n.every(i=>i==null))return e.current=n,t}}function c9(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function c3(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let i of e)for(let r in i)r.startsWith("on")&&typeof i[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(i[r])):t[r]=i[r];if(t.disabled||t["aria-disabled"])for(let i in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(i)&&(n[i]=[r=>{var o;return(o=r==null?void 0:r.preventDefault)==null?void 0:o.call(r)}]);for(let i in n)Object.assign(t,{[i](r,...o){let s=n[i];for(let a of s){if((r instanceof Event||(r==null?void 0:r.nativeEvent)instanceof Event)&&r.defaultPrevented)return;a(r,...o)}}});return t}function u3(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let i of e)for(let r in i)r.startsWith("on")&&typeof i[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(i[r])):t[r]=i[r];for(let i in n)Object.assign(t,{[i](...r){let o=n[i];for(let s of o)s==null||s(...r)}});return t}function nn(e){var t;return Object.assign(v.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Ki(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function D2(e,t=[]){let n=Object.assign({},e);for(let i of t)i in n&&delete n[i];return n}function u9(e){return v.version.split(".")[0]>="19"?e.props.ref:e.ref}function Ys(e){return e===v.Fragment||e===Symbol.for("react.fragment")}function d9(e){return Ys(e.type)}let f9=v.createContext(void 0);function h9(){return v.useContext(f9)}function d3(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function s2(e){return d3(e)&&"tagName"in e}function Jn(e){return s2(e)&&"accessKey"in e}function Ai(e){return s2(e)&&"tabIndex"in e}function g9(e){return s2(e)&&"style"in e}function p9(e){return Jn(e)&&e.nodeName==="IFRAME"}function f3(e){return Jn(e)&&e.nodeName==="INPUT"}function hu(e){return Jn(e)&&e.nodeName==="LABEL"}function m9(e){return Jn(e)&&e.nodeName==="FIELDSET"}function h3(e){return Jn(e)&&e.nodeName==="LEGEND"}function b9(e){return s2(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}function gu(e){let t=e.parentElement,n=null;for(;t&&!m9(t);)h3(t)&&(n=t),t=t.parentElement;let i=(t==null?void 0:t.getAttribute("disabled"))==="";return i&&C9(n)?!1:i}function C9(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(h3(t))return!1;t=t.previousElementSibling}return!0}let g3=Symbol();function v9(e,t=!0){return Object.assign(e,{[g3]:t})}function Un(...e){let t=v.useRef(e);v.useEffect(()=>{t.current=e},[e]);let n=Je(i=>{for(let r of t.current)r!=null&&(typeof r=="function"?r(i):r.current=i)});return e.every(i=>i==null||(i==null?void 0:i[g3]))?void 0:n}let Ul=v.createContext(null);Ul.displayName="DescriptionContext";function p3(){let e=v.useContext(Ul);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,p3),t}return e}function x9(){let[e,t]=v.useState([]);return[e.length>0?e.join(" "):void 0,v.useMemo(()=>function(n){let i=Je(o=>(t(s=>[...s,o]),()=>t(s=>{let a=s.slice(),l=a.indexOf(o);return l!==-1&&a.splice(l,1),a}))),r=v.useMemo(()=>({register:i,slot:n.slot,name:n.name,props:n.props,value:n.value}),[i,n.slot,n.name,n.props,n.value]);return v.createElement(Ul.Provider,{value:r},n.children)},[t])]}let y9="p";function w9(e,t){let n=v.useId(),i=l3(),{id:r=`headlessui-description-${n}`,...o}=e,s=p3(),a=Un(t);wt(()=>s.register(r),[r,s.register]);let l=Mr({...s.slot,disabled:i||!1}),c={ref:a,...s.props,id:r};return tn()({ourProps:c,theirProps:o,slot:l,defaultTag:y9,name:s.name||"Description"})}let S9=nn(w9);Object.assign(S9,{});var xt=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(xt||{});let a2=v.createContext(null);a2.displayName="LabelContext";function Ql(){let e=v.useContext(a2);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Ql),t}return e}function I9(e){var t,n,i;let r=(n=(t=v.useContext(a2))==null?void 0:t.value)!=null?n:void 0;return((i=void 0)!=null?i:0)>0?[r,...e].filter(Boolean).join(" "):r}function m3({inherit:e=!1}={}){let t=I9(),[n,i]=v.useState([]),r=e?[t,...n].filter(Boolean):n;return[r.length>0?r.join(" "):void 0,v.useMemo(()=>function(o){let s=Je(l=>(i(c=>[...c,l]),()=>i(c=>{let u=c.slice(),d=u.indexOf(l);return d!==-1&&u.splice(d,1),u}))),a=v.useMemo(()=>({register:s,slot:o.slot,name:o.name,props:o.props,value:o.value}),[s,o.slot,o.name,o.props,o.value]);return v.createElement(a2.Provider,{value:a},o.children)},[i])]}let M9="label";function _9(e,t){var n;let i=v.useId(),r=Ql(),o=h9(),s=l3(),{id:a=`headlessui-label-${i}`,htmlFor:l=o??((n=r.props)==null?void 0:n.htmlFor),passive:c=!1,...u}=e,d=Un(t);wt(()=>r.register(a),[a,r.register]);let f=Je(p=>{let m=p.currentTarget;if(!(p.target!==p.currentTarget&&b9(p.target))&&(hu(m)&&p.preventDefault(),r.props&&"onClick"in r.props&&typeof r.props.onClick=="function"&&r.props.onClick(p),hu(m))){let C=document.getElementById(m.htmlFor);if(C){let y=C.getAttribute("disabled");if(y==="true"||y==="")return;let x=C.getAttribute("aria-disabled");if(x==="true"||x==="")return;(f3(C)&&(C.type==="file"||C.type==="radio"||C.type==="checkbox")||C.role==="radio"||C.role==="checkbox"||C.role==="switch")&&C.click(),C.focus({preventScroll:!0})}}}),h=Mr({...r.slot,disabled:s||!1}),g={ref:d,...r.props,id:a,htmlFor:l,onClick:f};return c&&("onClick"in g&&(delete g.htmlFor,delete g.onClick),"onClick"in u&&delete u.onClick),tn()({ourProps:g,theirProps:u,slot:h,defaultTag:l?M9:"div",name:r.name||"Label"})}let A9=nn(_9);Object.assign(A9,{});function pu(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function E9(e,t,n=!1){let[i,r]=v.useState(()=>pu(t));return wt(()=>{if(!t||!e)return;let o=Bt();return o.requestAnimationFrame(function s(){o.requestAnimationFrame(s),r(a=>{let l=pu(t);return l.width===a.width&&l.height===a.height?a:l})}),()=>{o.dispose()}},[t,e]),n?{width:`${i.width}px`,height:`${i.height}px`}:i}var b3=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(b3||{});function R9(e){let t=v.useRef(null),n=Je(r=>{t.current=r.pointerType,!gu(r.currentTarget)&&r.pointerType==="mouse"&&r.button===b3.Left&&(r.preventDefault(),e(r))}),i=Je(r=>{t.current!=="mouse"&&(gu(r.currentTarget)||e(r))});return{onPointerDown:n,onClick:i}}let C3=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};var k9=Object.defineProperty,P9=(e,t,n)=>t in e?k9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,L9=(e,t,n)=>(P9(e,t+"",n),n),v3=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Yt=(e,t,n)=>(v3(e,t,"read from private field"),n?n.call(e):t.get(e)),V2=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},mu=(e,t,n,i)=>(v3(e,t,"write to private field"),t.set(e,n),n),hn,Wr,Zr;let x3=class{constructor(t){V2(this,hn,{}),V2(this,Wr,new C3(()=>new Set)),V2(this,Zr,new Set),L9(this,"disposables",Bt()),mu(this,hn,t),Pi.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return Yt(this,hn)}subscribe(t,n){if(Pi.isServer)return()=>{};let i={selector:t,callback:n,current:t(Yt(this,hn))};return Yt(this,Zr).add(i),this.disposables.add(()=>{Yt(this,Zr).delete(i)})}on(t,n){return Pi.isServer?()=>{}:(Yt(this,Wr).get(t).add(n),this.disposables.add(()=>{Yt(this,Wr).get(t).delete(n)}))}send(t){let n=this.reduce(Yt(this,hn),t);if(n!==Yt(this,hn)){mu(this,hn,n);for(let i of Yt(this,Zr)){let r=i.selector(Yt(this,hn));y3(i.current,r)||(i.current=r,i.callback(r))}for(let i of Yt(this,Wr).get(t.type))i(Yt(this,hn),t)}}};hn=new WeakMap,Wr=new WeakMap,Zr=new WeakMap;function y3(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null?!1:Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:j2(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size!==t.size?!1:j2(e.entries(),t.entries()):bu(e)&&bu(t)?j2(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()):!1}function j2(e,t){do{let n=e.next(),i=t.next();if(n.done&&i.done)return!0;if(n.done||i.done||!Object.is(n.value,i.value))return!1}while(!0)}function bu(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function Cu(e){let[t,n]=e(),i=Bt();return(...r)=>{t(...r),i.dispose(),i.microTask(n)}}var F9=Object.defineProperty,O9=(e,t,n)=>t in e?F9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vu=(e,t,n)=>(O9(e,typeof t!="symbol"?t+"":t,n),n),w3=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(w3||{});let N9={0(e,t){let n=t.id,i=e.stack,r=e.stack.indexOf(n);if(r!==-1){let o=e.stack.slice();return o.splice(r,1),o.push(n),i=o,{...e,stack:i}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,i=e.stack.indexOf(n);if(i===-1)return e;let r=e.stack.slice();return r.splice(i,1),{...e,stack:r}}},T9=class S3 extends x3{constructor(){super(...arguments),vu(this,"actions",{push:t=>this.send({type:0,id:t}),pop:t=>this.send({type:1,id:t})}),vu(this,"selectors",{isTop:(t,n)=>t.stack[t.stack.length-1]===n,inStack:(t,n)=>t.stack.includes(n)})}static new(){return new S3({stack:[]})}reduce(t,n){return _r(n.type,N9,t,n)}};const ql=new C3(()=>T9.new());var l2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function c2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var D0={exports:{}},B2={};/**
5
+ * @license React
6
+ * use-sync-external-store-with-selector.production.js
7
+ *
8
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */var xu;function D9(){if(xu)return B2;xu=1;var e=v;function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var n=typeof Object.is=="function"?Object.is:t,i=e.useSyncExternalStore,r=e.useRef,o=e.useEffect,s=e.useMemo,a=e.useDebugValue;return B2.useSyncExternalStoreWithSelector=function(l,c,u,d,f){var h=r(null);if(h.current===null){var g={hasValue:!1,value:null};h.current=g}else g=h.current;h=s(function(){function m(w){if(!C){if(C=!0,y=w,w=d(w),f!==void 0&&g.hasValue){var R=g.value;if(f(R,w))return x=R}return x=w}if(R=x,n(y,w))return R;var E=d(w);return f!==void 0&&f(R,E)?(y=w,R):(y=w,x=E)}var C=!1,y,x,I=u===void 0?null:u;return[function(){return m(c())},I===null?void 0:function(){return m(I())}]},[c,u,d,f]);var p=i(l,h[0],h[1]);return o(function(){g.hasValue=!0,g.value=p},[p]),a(p),p},B2}var $2={};/**
13
+ * @license React
14
+ * use-sync-external-store-with-selector.development.js
15
+ *
16
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
17
+ *
18
+ * This source code is licensed under the MIT license found in the
19
+ * LICENSE file in the root directory of this source tree.
20
+ */var yu;function V9(){return yu||(yu=1,process.env.NODE_ENV!=="production"&&function(){function e(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=v,n=typeof Object.is=="function"?Object.is:e,i=t.useSyncExternalStore,r=t.useRef,o=t.useEffect,s=t.useMemo,a=t.useDebugValue;$2.useSyncExternalStoreWithSelector=function(l,c,u,d,f){var h=r(null);if(h.current===null){var g={hasValue:!1,value:null};h.current=g}else g=h.current;h=s(function(){function m(w){if(!C){if(C=!0,y=w,w=d(w),f!==void 0&&g.hasValue){var R=g.value;if(f(R,w))return x=R}return x=w}if(R=x,n(y,w))return R;var E=d(w);return f!==void 0&&f(R,E)?(y=w,R):(y=w,x=E)}var C=!1,y,x,I=u===void 0?null:u;return[function(){return m(c())},I===null?void 0:function(){return m(I())}]},[c,u,d,f]);var p=i(l,h[0],h[1]);return o(function(){g.hasValue=!0,g.value=p},[p]),a(p),p},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),$2}process.env.NODE_ENV==="production"?D0.exports=D9():D0.exports=V9();var j9=D0.exports;function an(e,t,n=y3){return j9.useSyncExternalStoreWithSelector(Je(i=>e.subscribe(B9,i)),Je(()=>e.state),Je(()=>e.state),Je(t),n)}function B9(e){return e}function I3(e,t){let n=v.useId(),i=ql.get(t),[r,o]=an(i,v.useCallback(s=>[i.selectors.isTop(s,n),i.selectors.inStack(s,n)],[i,n]));return wt(()=>{if(e)return i.actions.push(n),()=>i.actions.pop(n)},[i,e,n]),e?o?r:!0:!1}let V0=new Map,oo=new Map;function wu(e){var t;let n=(t=oo.get(e))!=null?t:0;return oo.set(e,n+1),n!==0?()=>Su(e):(V0.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Su(e))}function Su(e){var t;let n=(t=oo.get(e))!=null?t:1;if(n===1?oo.delete(e):oo.set(e,n-1),n!==1)return;let i=V0.get(e);i&&(i["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",i["aria-hidden"]),e.inert=i.inert,V0.delete(e))}function $9(e,{allowed:t,disallowed:n}={}){let i=I3(e,"inert-others");wt(()=>{var r,o;if(!i)return;let s=Bt();for(let l of(r=n==null?void 0:n())!=null?r:[])l&&s.add(wu(l));let a=(o=t==null?void 0:t())!=null?o:[];for(let l of a){if(!l)continue;let c=zo(l);if(!c)continue;let u=l.parentElement;for(;u&&u!==c.body;){for(let d of u.children)a.some(f=>d.contains(f))||s.add(wu(d));u=u.parentElement}}return s.dispose},[i,t,n])}function H9(e,t,n){let i=Zo(r=>{let o=r.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&n()});v.useEffect(()=>{if(!e)return;let r=t===null?null:Jn(t)?t:t.current;if(!r)return;let o=Bt();if(typeof ResizeObserver<"u"){let s=new ResizeObserver(()=>i.current(r));s.observe(r),o.add(()=>s.disconnect())}if(typeof IntersectionObserver<"u"){let s=new IntersectionObserver(()=>i.current(r));s.observe(r),o.add(()=>s.disconnect())}return()=>o.dispose()},[t,i,e])}let j0=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),G9=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var B0=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(B0||{}),z9=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(z9||{}),W9=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(W9||{});function M3(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(j0)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function Z9(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(G9)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Kl=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Kl||{});function ec(e,t=0){var n;return e===((n=zo(e))==null?void 0:n.body)?!1:_r(t,{0(){return e.matches(j0)},1(){let i=e;for(;i!==null;){if(i.matches(j0))return!0;i=i.parentElement}return!1}})}function _3(e){Bt().nextFrame(()=>{let t=Jl(e);t&&Ai(t)&&!ec(t,0)&&Y9(e)})}var X9=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(X9||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Y9(e){e==null||e.focus({preventScroll:!0})}let J9=["textarea","input"].join(",");function U9(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,J9))!=null?n:!1}function A3(e,t=n=>n){return e.slice().sort((n,i)=>{let r=t(n),o=t(i);if(r===null||o===null)return 0;let s=r.compareDocumentPosition(o);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Q9(e,t,n=e===null?document.body:va(e)){return q9(M3(n),t,{relativeTo:e})}function q9(e,t,{sorted:n=!0,relativeTo:i=null,skipElements:r=[]}={}){let o=Array.isArray(e)?e.length>0?va(e[0]):document:va(e),s=Array.isArray(e)?n?A3(e):e:t&64?Z9(e):M3(e);r.length>0&&s.length>1&&(s=s.filter(h=>!r.some(g=>g!=null&&"current"in g?(g==null?void 0:g.current)===h:g===h))),i=i??(o==null?void 0:o.activeElement);let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(i))-1;if(t&4)return Math.max(0,s.indexOf(i))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=t&32?{preventScroll:!0}:{},u=0,d=s.length,f;do{if(u>=d||u+d<=0)return 0;let h=l+u;if(t&16)h=(h+d)%d;else{if(h<0)return 3;if(h>=d)return 1}f=s[h],f==null||f.focus(c),u+=a}while(f!==Jl(f));return t&6&&U9(f)&&f.select(),2}function E3(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function K9(){return/Android/gi.test(window.navigator.userAgent)}function Iu(){return E3()||K9()}function ir(e,t,n,i){let r=Zo(n);v.useEffect(()=>{if(!e)return;function o(s){r.current(s)}return document.addEventListener(t,o,i),()=>document.removeEventListener(t,o,i)},[e,t,i])}function ep(e,t,n,i){let r=Zo(n);v.useEffect(()=>{if(!e)return;function o(s){r.current(s)}return window.addEventListener(t,o,i),()=>window.removeEventListener(t,o,i)},[e,t,i])}const Mu=30;function tp(e,t,n){let i=Zo(n),r=v.useCallback(function(a,l){if(a.defaultPrevented)return;let c=l(a);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let u=function d(f){return typeof f=="function"?d(f()):Array.isArray(f)||f instanceof Set?f:[f]}(t);for(let d of u)if(d!==null&&(d.contains(c)||a.composed&&a.composedPath().includes(d)))return;return!ec(c,Kl.Loose)&&c.tabIndex!==-1&&a.preventDefault(),i.current(a,c)},[i,t]),o=v.useRef(null);ir(e,"pointerdown",a=>{var l,c;Iu()||(o.current=((c=(l=a.composedPath)==null?void 0:l.call(a))==null?void 0:c[0])||a.target)},!0),ir(e,"pointerup",a=>{if(Iu()||!o.current)return;let l=o.current;return o.current=null,r(a,()=>l)},!0);let s=v.useRef({x:0,y:0});ir(e,"touchstart",a=>{s.current.x=a.touches[0].clientX,s.current.y=a.touches[0].clientY},!0),ir(e,"touchend",a=>{let l={x:a.changedTouches[0].clientX,y:a.changedTouches[0].clientY};if(!(Math.abs(l.x-s.current.x)>=Mu||Math.abs(l.y-s.current.y)>=Mu))return r(a,()=>Ai(a.target)?a.target:null)},!0),ep(e,"blur",a=>r(a,()=>p9(window.document.activeElement)?window.document.activeElement:null),!0)}function $0(...e){return v.useMemo(()=>zo(...e),[...e])}var np=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(np||{});const ds={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},ip=200,_u=5;function rp(e,{trigger:t,action:n,close:i,select:r}){let o=v.useRef(null),s=v.useRef(null),a=v.useRef(null);ir(e&&t!==null,"pointerdown",l=>{d3(l==null?void 0:l.target)&&t!=null&&t.contains(l.target)&&(s.current=l.x,a.current=l.y,o.current=l.timeStamp)}),ir(e&&t!==null,"pointerup",l=>{var c,u;let d=o.current;if(d===null||(o.current=null,!Ai(l.target))||Math.abs(l.x-((c=s.current)!=null?c:l.x))<_u&&Math.abs(l.y-((u=a.current)!=null?u:l.y))<_u)return;let f=n(l);switch(f.kind){case 0:return;case 1:{l.timeStamp-d>ip&&(r(f.target),i());break}case 2:{i();break}}},{capture:!0})}function op(e,t){return v.useMemo(()=>{var n;if(e.type)return e.type;let i=(n=e.as)!=null?n:"button";if(typeof i=="string"&&i.toLowerCase()==="button"||(t==null?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function sp(e){return v.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}function ap(e,t){let n=e(),i=new Set;return{getSnapshot(){return n},subscribe(r){return i.add(r),()=>i.delete(r)},dispatch(r,...o){let s=t[r].call(n,...o);s&&(n=s,i.forEach(a=>a()))}}}function lp(){let e;return{before({doc:t}){var n;let i=t.documentElement,r=(n=t.defaultView)!=null?n:window;e=Math.max(0,r.innerWidth-i.clientWidth)},after({doc:t,d:n}){let i=t.documentElement,r=Math.max(0,i.clientWidth-i.offsetWidth),o=Math.max(0,e-r);n.style(i,"paddingRight",`${o}px`)}}}function cp(){return E3()?{before({doc:e,d:t,meta:n}){function i(r){for(let o of n().containers)for(let s of o())if(s.contains(r))return!0;return!1}t.microTask(()=>{var r;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=Bt();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let o=(r=window.scrollY)!=null?r:window.pageYOffset,s=null;t.addEventListener(e,"click",a=>{if(Ai(a.target))try{let l=a.target.closest("a");if(!l)return;let{hash:c}=new URL(l.href),u=e.querySelector(c);Ai(u)&&!i(u)&&(s=u)}catch{}},!0),t.group(a=>{t.addEventListener(e,"touchstart",l=>{if(a.dispose(),Ai(l.target)&&g9(l.target))if(i(l.target)){let c=l.target;for(;c.parentElement&&i(c.parentElement);)c=c.parentElement;a.style(c,"overscrollBehavior","contain")}else a.style(l.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",a=>{if(Ai(a.target)){if(f3(a.target))return;if(i(a.target)){let l=a.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let l=(a=window.scrollY)!=null?a:window.pageYOffset;o!==l&&window.scrollTo(0,o),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function up(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Au(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Ei=ap(()=>new Map,{PUSH(e,t){var n;let i=(n=this.get(e))!=null?n:{doc:e,count:0,d:Bt(),meta:new Set,computedMeta:{}};return i.count++,i.meta.add(t),i.computedMeta=Au(i.meta),this.set(e,i),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=Au(n.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta(){return e.computedMeta}},n=[cp(),lp(),up()];n.forEach(({before:i})=>i==null?void 0:i(t)),n.forEach(({after:i})=>i==null?void 0:i(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Ei.subscribe(()=>{let e=Ei.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let i=t.get(n.doc)==="hidden",r=n.count!==0;(r&&!i||!r&&i)&&Ei.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Ei.dispatch("TEARDOWN",n)}});function dp(e,t,n=()=>({containers:[]})){let i=sp(Ei),r=t?i.get(t):void 0,o=r?r.count>0:!1;return wt(()=>{if(!(!t||!e))return Ei.dispatch("PUSH",t,n),()=>Ei.dispatch("POP",t,n)},[e,t]),o}function fp(e,t,n=()=>[document.body]){let i=I3(e,"scroll-lock");dp(i,t,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],n]}})}function Eu(e){return[e.screenX,e.screenY]}function hp(){let e=v.useRef([-1,-1]);return{wasMoved(t){let n=Eu(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=Eu(t)}}}function gp(e=0){let[t,n]=v.useState(e),i=v.useCallback(l=>n(l),[]),r=v.useCallback(l=>n(c=>c|l),[]),o=v.useCallback(l=>(t&l)===l,[t]),s=v.useCallback(l=>n(c=>c&~l),[]),a=v.useCallback(l=>n(c=>c^l),[]);return{flags:t,setFlag:i,addFlag:r,hasFlag:o,removeFlag:s,toggleFlag:a}}var Ru,ku;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Ru=process==null?void 0:process.env)==null?void 0:Ru.NODE_ENV)==="test"&&typeof((ku=Element==null?void 0:Element.prototype)==null?void 0:ku.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
21
+ `)),[]});var pp=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(pp||{});function mp(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function bp(e,t,n,i){let[r,o]=v.useState(n),{hasFlag:s,addFlag:a,removeFlag:l}=gp(e&&r?3:0),c=v.useRef(!1),u=v.useRef(!1),d=Wo();return wt(()=>{var f;if(e){if(n&&o(!0),!t){n&&a(3);return}return(f=void 0)==null||f.call(i,n),Cp(t,{inFlight:c,prepare(){u.current?u.current=!1:u.current=c.current,c.current=!0,!u.current&&(n?(a(3),l(4)):(a(4),l(2)))},run(){u.current?n?(l(3),a(4)):(l(4),a(3)):n?l(1):a(1)},done(){var h;u.current&&yp(t)||(c.current=!1,l(7),n||o(!1),(h=void 0)==null||h.call(i,n))}})}},[e,n,t,d]),e?[r,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Cp(e,{prepare:t,run:n,done:i,inFlight:r}){let o=Bt();return xp(e,{prepare:t,inFlight:r}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(vp(e,i))})}),o.dispose}function vp(e,t){var n,i;let r=Bt();if(!e)return r.dispose;let o=!1;r.add(()=>{o=!0});let s=(i=(n=e.getAnimations)==null?void 0:n.call(e).filter(a=>a instanceof CSSTransition))!=null?i:[];return s.length===0?(t(),r.dispose):(Promise.allSettled(s.map(a=>a.finished)).then(()=>{o||t()}),r.dispose)}function xp(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let i=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=i}function yp(e){var t,n;return((n=(t=e.getAnimations)==null?void 0:t.call(e))!=null?n:[]).some(i=>i instanceof CSSTransition&&i.playState!=="finished")}function wp(e,{container:t,accept:n,walk:i}){let r=v.useRef(n),o=v.useRef(i);v.useEffect(()=>{r.current=n,o.current=i},[n,i]),wt(()=>{if(!t||!e)return;let s=zo(t);if(!s)return;let a=r.current,l=o.current,c=Object.assign(d=>a(d),{acceptNode:a}),u=s.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,c,!1);for(;u.nextNode();)l(u.currentNode)},[t,e,r,o])}function u2(){return typeof window<"u"}function Ar(e){return R3(e)?(e.nodeName||"").toLowerCase():"#document"}function Ht(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function En(e){var t;return(t=(R3(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function R3(e){return u2()?e instanceof Node||e instanceof Ht(e).Node:!1}function kt(e){return u2()?e instanceof Element||e instanceof Ht(e).Element:!1}function Mn(e){return u2()?e instanceof HTMLElement||e instanceof Ht(e).HTMLElement:!1}function Pu(e){return!u2()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ht(e).ShadowRoot}const Sp=new Set(["inline","contents"]);function Xo(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=dn(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!Sp.has(r)}const Ip=new Set(["table","td","th"]);function Mp(e){return Ip.has(Ar(e))}const _p=[":popover-open",":modal"];function d2(e){return _p.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ap=["transform","translate","scale","rotate","perspective"],Ep=["transform","translate","scale","rotate","perspective","filter"],Rp=["paint","layout","strict","content"];function tc(e){const t=nc(),n=kt(e)?dn(e):e;return Ap.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Ep.some(i=>(n.willChange||"").includes(i))||Rp.some(i=>(n.contain||"").includes(i))}function kp(e){let t=si(e);for(;Mn(t)&&!pr(t);){if(tc(t))return t;if(d2(t))return null;t=si(t)}return null}function nc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Pp=new Set(["html","body","#document"]);function pr(e){return Pp.has(Ar(e))}function dn(e){return Ht(e).getComputedStyle(e)}function f2(e){return kt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function si(e){if(Ar(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Pu(e)&&e.host||En(e);return Pu(t)?t.host:t}function k3(e){const t=si(e);return pr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Mn(t)&&Xo(t)?t:k3(t)}function Io(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=k3(e),o=r===((i=e.ownerDocument)==null?void 0:i.body),s=Ht(r);if(o){const a=H0(s);return t.concat(s,s.visualViewport||[],Xo(r)?r:[],a&&n?Io(a):[])}return t.concat(r,Io(r,[],n))}function H0(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Lp(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:i}=t;return n+"/"+i}).join(" "):navigator.userAgent}const Bi=Math.min,Rt=Math.max,Mo=Math.round,fs=Math.floor,vn=e=>({x:e,y:e}),Fp={left:"right",right:"left",bottom:"top",top:"bottom"},Op={start:"end",end:"start"};function Lu(e,t,n){return Rt(e,Bi(t,n))}function Er(e,t){return typeof e=="function"?e(t):e}function ai(e){return e.split("-")[0]}function Yo(e){return e.split("-")[1]}function P3(e){return e==="x"?"y":"x"}function L3(e){return e==="y"?"height":"width"}const Np=new Set(["top","bottom"]);function Vn(e){return Np.has(ai(e))?"y":"x"}function F3(e){return P3(Vn(e))}function Tp(e,t,n){n===void 0&&(n=!1);const i=Yo(e),r=F3(e),o=L3(r);let s=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=xa(s)),[s,xa(s)]}function Dp(e){const t=xa(e);return[G0(e),t,G0(t)]}function G0(e){return e.replace(/start|end/g,t=>Op[t])}const Fu=["left","right"],Ou=["right","left"],Vp=["top","bottom"],jp=["bottom","top"];function Bp(e,t,n){switch(e){case"top":case"bottom":return n?t?Ou:Fu:t?Fu:Ou;case"left":case"right":return t?Vp:jp;default:return[]}}function $p(e,t,n,i){const r=Yo(e);let o=Bp(ai(e),n==="start",i);return r&&(o=o.map(s=>s+"-"+r),t&&(o=o.concat(o.map(G0)))),o}function xa(e){return e.replace(/left|right|bottom|top/g,t=>Fp[t])}function Hp(e){return{top:0,right:0,bottom:0,left:0,...e}}function Gp(e){return typeof e!="number"?Hp(e):{top:e,right:e,bottom:e,left:e}}function ya(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function Nu(e,t,n){let{reference:i,floating:r}=e;const o=Vn(t),s=F3(t),a=L3(s),l=ai(t),c=o==="y",u=i.x+i.width/2-r.width/2,d=i.y+i.height/2-r.height/2,f=i[a]/2-r[a]/2;let h;switch(l){case"top":h={x:u,y:i.y-r.height};break;case"bottom":h={x:u,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:d};break;case"left":h={x:i.x-r.width,y:d};break;default:h={x:i.x,y:i.y}}switch(Yo(t)){case"start":h[s]-=f*(n&&c?-1:1);break;case"end":h[s]+=f*(n&&c?-1:1);break}return h}const zp=async(e,t,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=Nu(c,i,l),f=i,h={},g=0;for(let p=0;p<a.length;p++){const{name:m,fn:C}=a[p],{x:y,y:x,data:I,reset:w}=await C({x:u,y:d,initialPlacement:i,placement:f,strategy:r,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});u=y??u,d=x??d,h={...h,[m]:{...h[m],...I}},w&&g<=50&&(g++,typeof w=="object"&&(w.placement&&(f=w.placement),w.rects&&(c=w.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):w.rects),{x:u,y:d}=Nu(c,f,l)),p=-1)}return{x:u,y:d,placement:f,strategy:r,middlewareData:h}};async function h2(e,t){var n;t===void 0&&(t={});const{x:i,y:r,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=Er(t,e),g=Gp(h),m=a[f?d==="floating"?"reference":"floating":d],C=ya(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(m)))==null||n?m:m.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y=d==="floating"?{x:i,y:r,width:s.floating.width,height:s.floating.height}:s.reference,x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),I=await(o.isElement==null?void 0:o.isElement(x))?await(o.getScale==null?void 0:o.getScale(x))||{x:1,y:1}:{x:1,y:1},w=ya(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:x,strategy:l}):y);return{top:(C.top-w.top+g.top)/I.y,bottom:(w.bottom-C.bottom+g.bottom)/I.y,left:(C.left-w.left+g.left)/I.x,right:(w.right-C.right+g.right)/I.x}}const Wp=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:r,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...m}=Er(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const C=ai(r),y=Vn(a),x=ai(a)===a,I=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=f||(x||!p?[xa(a)]:Dp(a)),R=g!=="none";!f&&R&&w.push(...$p(a,p,g,I));const E=[a,...w],S=await h2(t,m),M=[];let _=((i=o.flip)==null?void 0:i.overflows)||[];if(u&&M.push(S[C]),d){const T=Tp(r,s,I);M.push(S[T[0]],S[T[1]])}if(_=[..._,{placement:r,overflows:M}],!M.every(T=>T<=0)){var P,N;const T=(((P=o.flip)==null?void 0:P.index)||0)+1,k=E[T];if(k&&(!(d==="alignment"?y!==Vn(k):!1)||_.every(A=>Vn(A.placement)===y?A.overflows[0]>0:!0)))return{data:{index:T,overflows:_},reset:{placement:k}};let F=(N=_.filter(O=>O.overflows[0]<=0).sort((O,A)=>O.overflows[1]-A.overflows[1])[0])==null?void 0:N.placement;if(!F)switch(h){case"bestFit":{var B;const O=(B=_.filter(A=>{if(R){const L=Vn(A.placement);return L===y||L==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(L=>L>0).reduce((L,j)=>L+j,0)]).sort((A,L)=>A[1]-L[1])[0])==null?void 0:B[0];O&&(F=O);break}case"initialPlacement":F=a;break}if(r!==F)return{reset:{placement:F}}}return{}}}},Zp=new Set(["left","top"]);async function Xp(e,t){const{placement:n,platform:i,elements:r}=e,o=await(i.isRTL==null?void 0:i.isRTL(r.floating)),s=ai(n),a=Yo(n),l=Vn(n)==="y",c=Zp.has(s)?-1:1,u=o&&l?-1:1,d=Er(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(h=a==="end"?g*-1:g),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}const Yp=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:r,y:o,placement:s,middlewareData:a}=t,l=await Xp(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:s}}}}},Jp=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:r}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:m=>{let{x:C,y}=m;return{x:C,y}}},...l}=Er(e,t),c={x:n,y:i},u=await h2(t,l),d=Vn(ai(r)),f=P3(d);let h=c[f],g=c[d];if(o){const m=f==="y"?"top":"left",C=f==="y"?"bottom":"right",y=h+u[m],x=h-u[C];h=Lu(y,h,x)}if(s){const m=d==="y"?"top":"left",C=d==="y"?"bottom":"right",y=g+u[m],x=g-u[C];g=Lu(y,g,x)}const p=a.fn({...t,[f]:h,[d]:g});return{...p,data:{x:p.x-n,y:p.y-i,enabled:{[f]:o,[d]:s}}}}}},Up=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:r,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...c}=Er(e,t),u=await h2(t,c),d=ai(r),f=Yo(r),h=Vn(r)==="y",{width:g,height:p}=o.floating;let m,C;d==="top"||d==="bottom"?(m=d,C=f===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(C=d,m=f==="end"?"top":"bottom");const y=p-u.top-u.bottom,x=g-u.left-u.right,I=Bi(p-u[m],y),w=Bi(g-u[C],x),R=!t.middlewareData.shift;let E=I,S=w;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=x),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(E=y),R&&!f){const _=Rt(u.left,0),P=Rt(u.right,0),N=Rt(u.top,0),B=Rt(u.bottom,0);h?S=g-2*(_!==0||P!==0?_+P:Rt(u.left,u.right)):E=p-2*(N!==0||B!==0?N+B:Rt(u.top,u.bottom))}await l({...t,availableWidth:S,availableHeight:E});const M=await s.getDimensions(a.floating);return g!==M.width||p!==M.height?{reset:{rects:!0}}:{}}}};function O3(e){const t=dn(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=Mn(e),o=r?e.offsetWidth:n,s=r?e.offsetHeight:i,a=Mo(n)!==o||Mo(i)!==s;return a&&(n=o,i=s),{width:n,height:i,$:a}}function ic(e){return kt(e)?e:e.contextElement}function lr(e){const t=ic(e);if(!Mn(t))return vn(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:o}=O3(t);let s=(o?Mo(n.width):n.width)/i,a=(o?Mo(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Qp=vn(0);function N3(e){const t=Ht(e);return!nc()||!t.visualViewport?Qp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qp(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ht(e)?!1:t}function $i(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=ic(e);let s=vn(1);t&&(i?kt(i)&&(s=lr(i)):s=lr(e));const a=qp(o,n,i)?N3(o):vn(0);let l=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,u=r.width/s.x,d=r.height/s.y;if(o){const f=Ht(o),h=i&&kt(i)?Ht(i):i;let g=f,p=H0(g);for(;p&&i&&h!==g;){const m=lr(p),C=p.getBoundingClientRect(),y=dn(p),x=C.left+(p.clientLeft+parseFloat(y.paddingLeft))*m.x,I=C.top+(p.clientTop+parseFloat(y.paddingTop))*m.y;l*=m.x,c*=m.y,u*=m.x,d*=m.y,l+=x,c+=I,g=Ht(p),p=H0(g)}}return ya({width:u,height:d,x:l,y:c})}function g2(e,t){const n=f2(e).scrollLeft;return t?t.left+n:$i(En(e)).left+n}function T3(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-g2(e,n),r=n.top+t.scrollTop;return{x:i,y:r}}function Kp(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e;const o=r==="fixed",s=En(i),a=t?d2(t.floating):!1;if(i===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=vn(1);const u=vn(0),d=Mn(i);if((d||!d&&!o)&&((Ar(i)!=="body"||Xo(s))&&(l=f2(i)),Mn(i))){const h=$i(i);c=lr(i),u.x=h.x+i.clientLeft,u.y=h.y+i.clientTop}const f=s&&!d&&!o?T3(s,l):vn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function e8(e){return Array.from(e.getClientRects())}function t8(e){const t=En(e),n=f2(e),i=e.ownerDocument.body,r=Rt(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=Rt(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+g2(e);const a=-n.scrollTop;return dn(i).direction==="rtl"&&(s+=Rt(t.clientWidth,i.clientWidth)-r),{width:r,height:o,x:s,y:a}}const Tu=25;function n8(e,t){const n=Ht(e),i=En(e),r=n.visualViewport;let o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;const u=nc();(!u||u&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}const c=g2(i);if(c<=0){const u=i.ownerDocument,d=u.body,f=getComputedStyle(d),h=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,g=Math.abs(i.clientWidth-d.clientWidth-h);g<=Tu&&(o-=g)}else c<=Tu&&(o+=c);return{width:o,height:s,x:a,y:l}}const i8=new Set(["absolute","fixed"]);function r8(e,t){const n=$i(e,!0,t==="fixed"),i=n.top+e.clientTop,r=n.left+e.clientLeft,o=Mn(e)?lr(e):vn(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=r*o.x,c=i*o.y;return{width:s,height:a,x:l,y:c}}function Du(e,t,n){let i;if(t==="viewport")i=n8(e,n);else if(t==="document")i=t8(En(e));else if(kt(t))i=r8(t,n);else{const r=N3(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ya(i)}function D3(e,t){const n=si(e);return n===t||!kt(n)||pr(n)?!1:dn(n).position==="fixed"||D3(n,t)}function o8(e,t){const n=t.get(e);if(n)return n;let i=Io(e,[],!1).filter(a=>kt(a)&&Ar(a)!=="body"),r=null;const o=dn(e).position==="fixed";let s=o?si(e):e;for(;kt(s)&&!pr(s);){const a=dn(s),l=tc(s);!l&&a.position==="fixed"&&(r=null),(o?!l&&!r:!l&&a.position==="static"&&!!r&&i8.has(r.position)||Xo(s)&&!l&&D3(e,s))?i=i.filter(u=>u!==s):r=a,s=si(s)}return t.set(e,i),i}function s8(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const s=[...n==="clippingAncestors"?d2(t)?[]:o8(t,this._c):[].concat(n),i],a=s[0],l=s.reduce((c,u)=>{const d=Du(t,u,r);return c.top=Rt(d.top,c.top),c.right=Bi(d.right,c.right),c.bottom=Bi(d.bottom,c.bottom),c.left=Rt(d.left,c.left),c},Du(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function a8(e){const{width:t,height:n}=O3(e);return{width:t,height:n}}function l8(e,t,n){const i=Mn(t),r=En(t),o=n==="fixed",s=$i(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=vn(0);function c(){l.x=g2(r)}if(i||!i&&!o)if((Ar(t)!=="body"||Xo(r))&&(a=f2(t)),i){const h=$i(t,!0,o,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else r&&c();o&&!i&&r&&c();const u=r&&!i&&!o?T3(r,a):vn(0),d=s.left+a.scrollLeft-l.x-u.x,f=s.top+a.scrollTop-l.y-u.y;return{x:d,y:f,width:s.width,height:s.height}}function H2(e){return dn(e).position==="static"}function Vu(e,t){if(!Mn(e)||dn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return En(e)===n&&(n=n.ownerDocument.body),n}function V3(e,t){const n=Ht(e);if(d2(e))return n;if(!Mn(e)){let r=si(e);for(;r&&!pr(r);){if(kt(r)&&!H2(r))return r;r=si(r)}return n}let i=Vu(e,t);for(;i&&Mp(i)&&H2(i);)i=Vu(i,t);return i&&pr(i)&&H2(i)&&!tc(i)?n:i||kp(e)||n}const c8=async function(e){const t=this.getOffsetParent||V3,n=this.getDimensions,i=await n(e.floating);return{reference:l8(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function u8(e){return dn(e).direction==="rtl"}const d8={convertOffsetParentRelativeRectToViewportRelativeRect:Kp,getDocumentElement:En,getClippingRect:s8,getOffsetParent:V3,getElementRects:c8,getClientRects:e8,getDimensions:a8,getScale:lr,isElement:kt,isRTL:u8};function j3(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function f8(e,t){let n=null,i;const r=En(e);function o(){var a;clearTimeout(i),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:h}=c;if(a||t(),!f||!h)return;const g=fs(d),p=fs(r.clientWidth-(u+f)),m=fs(r.clientHeight-(d+h)),C=fs(u),x={rootMargin:-g+"px "+-p+"px "+-m+"px "+-C+"px",threshold:Rt(0,Bi(1,l))||1};let I=!0;function w(R){const E=R[0].intersectionRatio;if(E!==l){if(!I)return s();E?s(!1,E):i=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!j3(c,e.getBoundingClientRect())&&s(),I=!1}try{n=new IntersectionObserver(w,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(w,x)}n.observe(e)}return s(!0),o}function B3(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,c=ic(e),u=r||o?[...c?Io(c):[],...Io(t)]:[];u.forEach(C=>{r&&C.addEventListener("scroll",n,{passive:!0}),o&&C.addEventListener("resize",n)});const d=c&&a?f8(c,n):null;let f=-1,h=null;s&&(h=new ResizeObserver(C=>{let[y]=C;y&&y.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let g,p=l?$i(e):null;l&&m();function m(){const C=$i(e);p&&!j3(p,C)&&n(),p=C,g=requestAnimationFrame(m)}return n(),()=>{var C;u.forEach(y=>{r&&y.removeEventListener("scroll",n),o&&y.removeEventListener("resize",n)}),d==null||d(),(C=h)==null||C.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const G2=h2,h8=Yp,g8=Jp,p8=Wp,m8=Up,b8=(e,t,n)=>{const i=new Map,r={platform:d8,...n},o={...r.platform,_c:i};return zp(e,t,{...r,platform:o})};var C8=typeof document<"u",v8=function(){},Js=C8?v.useLayoutEffect:v8;function wa(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!wa(e[i],t[i]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,r[i]))return!1;for(i=n;i--!==0;){const o=r[i];if(!(o==="_owner"&&e.$$typeof)&&!wa(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function $3(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ju(e,t){const n=$3(e);return Math.round(t*n)/n}function z2(e){const t=W.useRef(e);return Js(()=>{t.current=e}),t}function x8(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=W.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=W.useState(i);wa(f,i)||h(i);const[g,p]=W.useState(null),[m,C]=W.useState(null),y=W.useCallback(A=>{A!==R.current&&(R.current=A,p(A))},[]),x=W.useCallback(A=>{A!==E.current&&(E.current=A,C(A))},[]),I=o||g,w=s||m,R=W.useRef(null),E=W.useRef(null),S=W.useRef(u),M=l!=null,_=z2(l),P=z2(r),N=z2(c),B=W.useCallback(()=>{if(!R.current||!E.current)return;const A={placement:t,strategy:n,middleware:f};P.current&&(A.platform=P.current),b8(R.current,E.current,A).then(L=>{const j={...L,isPositioned:N.current!==!1};T.current&&!wa(S.current,j)&&(S.current=j,fa.flushSync(()=>{d(j)}))})},[f,t,n,P,N]);Js(()=>{c===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,d(A=>({...A,isPositioned:!1})))},[c]);const T=W.useRef(!1);Js(()=>(T.current=!0,()=>{T.current=!1}),[]),Js(()=>{if(I&&(R.current=I),w&&(E.current=w),I&&w){if(_.current)return _.current(I,w,B);B()}},[I,w,B,_,M]);const k=W.useMemo(()=>({reference:R,floating:E,setReference:y,setFloating:x}),[y,x]),F=W.useMemo(()=>({reference:I,floating:w}),[I,w]),O=W.useMemo(()=>{const A={position:n,left:0,top:0};if(!F.floating)return A;const L=ju(F.floating,u.x),j=ju(F.floating,u.y);return a?{...A,transform:"translate("+L+"px, "+j+"px)",...$3(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:j}},[n,a,F.floating,u.x,u.y]);return W.useMemo(()=>({...u,update:B,refs:k,elements:F,floatingStyles:O}),[u,B,k,F,O])}const H3=(e,t)=>({...h8(e),options:[e,t]}),y8=(e,t)=>({...g8(e),options:[e,t]}),w8=(e,t)=>({...p8(e),options:[e,t]}),S8=(e,t)=>({...m8(e),options:[e,t]}),G3={...W},I8=G3.useInsertionEffect,M8=I8||(e=>e());function z3(e){const t=W.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return M8(()=>{t.current=e}),W.useCallback(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.current==null?void 0:t.current(...i)},[])}var z0=typeof document<"u"?v.useLayoutEffect:v.useEffect;let Bu=!1,_8=0;const $u=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+_8++;function A8(){const[e,t]=W.useState(()=>Bu?$u():void 0);return z0(()=>{e==null&&t($u())},[]),W.useEffect(()=>{Bu=!0},[]),e}const E8=G3.useId,R8=E8||A8;let _o;process.env.NODE_ENV!=="production"&&(_o=new Set);function k8(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];const r="Floating UI: "+n.join(" ");if(!((e=_o)!=null&&e.has(r))){var o;(o=_o)==null||o.add(r),console.warn(r)}}function P8(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];const r="Floating UI: "+n.join(" ");if(!((e=_o)!=null&&e.has(r))){var o;(o=_o)==null||o.add(r),console.error(r)}}function L8(){const e=new Map;return{emit(t,n){var i;(i=e.get(t))==null||i.forEach(r=>r(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var i;e.set(t,((i=e.get(t))==null?void 0:i.filter(r=>r!==n))||[])}}}const F8=W.createContext(null),O8=W.createContext(null),N8=()=>{var e;return((e=W.useContext(F8))==null?void 0:e.id)||null},T8=()=>W.useContext(O8),D8="data-floating-ui-focusable";function V8(e){const{open:t=!1,onOpenChange:n,elements:i}=e,r=R8(),o=W.useRef({}),[s]=W.useState(()=>L8()),a=N8()!=null;if(process.env.NODE_ENV!=="production"){const h=i.reference;h&&!kt(h)&&P8("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,c]=W.useState(i.reference),u=z3((h,g,p)=>{o.current.openEvent=h?g:void 0,s.emit("openchange",{open:h,event:g,reason:p,nested:a}),n==null||n(h,g,p)}),d=W.useMemo(()=>({setPositionReference:c}),[]),f=W.useMemo(()=>({reference:l||i.reference||null,floating:i.floating||null,domReference:i.reference}),[l,i.reference,i.floating]);return W.useMemo(()=>({dataRef:o,open:t,onOpenChange:u,elements:f,events:s,floatingId:r,refs:d}),[t,u,f,s,r,d])}function j8(e){e===void 0&&(e={});const{nodeId:t}=e,n=V8({...e,elements:{reference:null,floating:null,...e.elements}}),i=e.rootContext||n,r=i.elements,[o,s]=W.useState(null),[a,l]=W.useState(null),u=(r==null?void 0:r.domReference)||o,d=W.useRef(null),f=T8();z0(()=>{u&&(d.current=u)},[u]);const h=x8({...e,elements:{...r,...a&&{reference:a}}}),g=W.useCallback(x=>{const I=kt(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;l(I),h.refs.setReference(I)},[h.refs]),p=W.useCallback(x=>{(kt(x)||x===null)&&(d.current=x,s(x)),(kt(h.refs.reference.current)||h.refs.reference.current===null||x!==null&&!kt(x))&&h.refs.setReference(x)},[h.refs]),m=W.useMemo(()=>({...h.refs,setReference:p,setPositionReference:g,domReference:d}),[h.refs,p,g]),C=W.useMemo(()=>({...h.elements,domReference:u}),[h.elements,u]),y=W.useMemo(()=>({...h,...i,refs:m,elements:C,nodeId:t}),[h,m,C,t,i]);return z0(()=>{i.dataRef.current.floatingContext=y;const x=f==null?void 0:f.nodesRef.current.find(I=>I.id===t);x&&(x.context=y)}),W.useMemo(()=>({...h,context:y,refs:m,elements:C}),[h,m,C,y])}const Hu="active",Gu="selected";function W2(e,t,n){const i=new Map,r=n==="item";let o=e;if(r&&e){const{[Hu]:s,[Gu]:a,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[D8]:""},...o,...t.map(s=>{const a=s?s[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[c,u]=l;if(!(r&&[Hu,Gu].includes(c)))if(c.indexOf("on")===0){if(i.has(c)||i.set(c,[]),typeof u=="function"){var d;(d=i.get(c))==null||d.push(u),s[c]=function(){for(var f,h=arguments.length,g=new Array(h),p=0;p<h;p++)g[p]=arguments[p];return(f=i.get(c))==null?void 0:f.map(m=>m(...g)).find(m=>m!==void 0)}}}else s[c]=u}),s),{})}}function B8(e){e===void 0&&(e=[]);const t=e.map(a=>a==null?void 0:a.reference),n=e.map(a=>a==null?void 0:a.floating),i=e.map(a=>a==null?void 0:a.item),r=W.useCallback(a=>W2(a,e,"reference"),t),o=W.useCallback(a=>W2(a,e,"floating"),n),s=W.useCallback(a=>W2(a,e,"item"),i);return W.useMemo(()=>({getReferenceProps:r,getFloatingProps:o,getItemProps:s}),[r,o,s])}function zu(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const $8=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:i,onFallbackChange:r,offset:o=0,index:s=0,minItemsVisible:a=4,referenceOverflowThreshold:l=0,scrollRef:c,...u}=Er(e,t),{rects:d,elements:{floating:f}}=t,h=n.current[s],g=(c==null?void 0:c.current)||f,p=f.clientTop||g.clientTop,m=f.clientTop!==0,C=g.clientTop!==0,y=f===g;if(process.env.NODE_ENV!=="production"&&(t.placement.startsWith("bottom")||k8('`placement` side must be "bottom" when using the `inner`',"middleware.")),!h)return{};const x={...t,...await H3(-h.offsetTop-f.clientTop-d.reference.height/2-h.offsetHeight/2-o).fn(t)},I=await G2(zu(x,g.scrollHeight+p+f.clientTop),u),w=await G2(x,{...u,elementContext:"reference"}),R=Rt(0,I.top),E=x.y+R,_=(g.scrollHeight>g.clientHeight?P=>P:Mo)(Rt(0,g.scrollHeight+(m&&y||C?p*2:0)-R-Rt(0,I.bottom)));if(g.style.maxHeight=_+"px",g.scrollTop=R,r){const P=g.offsetHeight<h.offsetHeight*Bi(a,n.current.length)-1||w.top>=-l||w.bottom>=-l;fa.flushSync(()=>r(P))}return i&&(i.current=await G2(zu({...x,y:E},g.offsetHeight+p+f.clientTop),u)),{y:E}}});function H8(e,t){const{open:n,elements:i}=e,{enabled:r=!0,overflowRef:o,scrollRef:s,onChange:a}=t,l=z3(a),c=W.useRef(!1),u=W.useRef(null),d=W.useRef(null);W.useEffect(()=>{if(!r)return;function h(p){if(p.ctrlKey||!g||o.current==null)return;const m=p.deltaY,C=o.current.top>=-.5,y=o.current.bottom>=-.5,x=g.scrollHeight-g.clientHeight,I=m<0?-1:1,w=m<0?"max":"min";g.scrollHeight<=g.clientHeight||(!C&&m>0||!y&&m<0?(p.preventDefault(),fa.flushSync(()=>{l(R=>R+Math[w](m,x*I))})):/firefox/i.test(Lp())&&(g.scrollTop+=m))}const g=(s==null?void 0:s.current)||i.floating;if(n&&g)return g.addEventListener("wheel",h),requestAnimationFrame(()=>{u.current=g.scrollTop,o.current!=null&&(d.current={...o.current})}),()=>{u.current=null,d.current=null,g.removeEventListener("wheel",h)}},[r,n,i.floating,o,s,l]);const f=W.useMemo(()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const h=(s==null?void 0:s.current)||i.floating;if(!(!o.current||!h||!c.current)){if(u.current!==null){const g=h.scrollTop-u.current;(o.current.bottom<-.5&&g<-1||o.current.top<-.5&&g>1)&&fa.flushSync(()=>l(p=>p+g))}requestAnimationFrame(()=>{u.current=h.scrollTop})}}}),[i.floating,l,o,s]);return W.useMemo(()=>r?{floating:f}:{},[r,f])}let Rr=v.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Rr.displayName="FloatingContext";let rc=v.createContext(null);rc.displayName="PlacementContext";function G8(e){return v.useMemo(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function z8(){return v.useContext(Rr).setReference}function W8(){return v.useContext(Rr).getReferenceProps}function Z8(){let{getFloatingProps:e,slot:t}=v.useContext(Rr);return v.useCallback((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function X8(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=v.useContext(rc),n=v.useMemo(()=>e,[JSON.stringify(e,(r,o)=>{var s;return(s=o==null?void 0:o.outerHTML)!=null?s:o})]);wt(()=>{t==null||t(n??null)},[t,n]);let i=v.useContext(Rr);return v.useMemo(()=>[i.setFloating,e?i.styles:{}],[i.setFloating,e,i.styles])}let Wu=4;function Y8({children:e,enabled:t=!0}){let[n,i]=v.useState(null),[r,o]=v.useState(0),s=v.useRef(null),[a,l]=v.useState(null);J8(a);let c=t&&n!==null&&a!==null,{to:u="bottom",gap:d=0,offset:f=0,padding:h=0,inner:g}=U8(n,a),[p,m="center"]=u.split(" ");wt(()=>{c&&o(0)},[c]);let{refs:C,floatingStyles:y,context:x}=j8({open:c,placement:p==="selection"?m==="center"?"bottom":`bottom-${m}`:m==="center"?`${p}`:`${p}-${m}`,strategy:"absolute",transform:!1,middleware:[H3({mainAxis:p==="selection"?0:d,crossAxis:f}),y8({padding:h}),p!=="selection"&&w8({padding:h}),p==="selection"&&g?$8({...g,padding:h,overflowRef:s,offset:r,minItemsVisible:Wu,referenceOverflowThreshold:h,onFallbackChange(P){var N,B;if(!P)return;let T=x.elements.floating;if(!T)return;let k=parseFloat(getComputedStyle(T).scrollPaddingBottom)||0,F=Math.min(Wu,T.childElementCount),O=0,A=0;for(let L of(B=(N=x.elements.floating)==null?void 0:N.childNodes)!=null?B:[])if(Jn(L)){let j=L.offsetTop,G=j+L.clientHeight+k,H=T.scrollTop,$=H+T.clientHeight;if(j>=H&&G<=$)F--;else{A=Math.max(0,Math.min(G,$)-Math.max(j,H)),O=L.clientHeight;break}}F>=1&&o(L=>{let j=O*F-A+k;return L>=j?L:j})}}):null,S8({padding:h,apply({availableWidth:P,availableHeight:N,elements:B}){Object.assign(B.floating.style,{overflow:"auto",maxWidth:`${P}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${N}px)`})}})].filter(Boolean),whileElementsMounted:B3}),[I=p,w=m]=x.placement.split("-");p==="selection"&&(I="selection");let R=v.useMemo(()=>({anchor:[I,w].filter(Boolean).join(" ")}),[I,w]),E=H8(x,{overflowRef:s,onChange:o}),{getReferenceProps:S,getFloatingProps:M}=B8([E]),_=Je(P=>{l(P),C.setFloating(P)});return W.createElement(rc.Provider,{value:i},W.createElement(Rr.Provider,{value:{setFloating:_,setReference:C.setReference,styles:y,getReferenceProps:S,getFloatingProps:M,slot:R}},e))}function J8(e){wt(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,i=parseFloat(n);if(isNaN(i))return;let r=parseInt(n);isNaN(r)||i!==r&&(e.style.maxHeight=`${Math.ceil(i)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function U8(e,t){var n,i,r;let o=Z2((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),s=Z2((i=e==null?void 0:e.offset)!=null?i:"var(--anchor-offset, 0)",t),a=Z2((r=e==null?void 0:e.padding)!=null?r:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:s,padding:a}}function Z2(e,t,n=void 0){let i=Wo(),r=Je((l,c)=>{if(l==null)return[n,null];if(typeof l=="number")return[l,null];if(typeof l=="string"){if(!c)return[n,null];let u=Zu(l,c);return[u,d=>{let f=W3(l);{let h=f.map(g=>window.getComputedStyle(c).getPropertyValue(g));i.requestAnimationFrame(function g(){i.nextFrame(g);let p=!1;for(let[C,y]of f.entries()){let x=window.getComputedStyle(c).getPropertyValue(y);if(h[C]!==x){h[C]=x,p=!0;break}}if(!p)return;let m=Zu(l,c);u!==m&&(d(m),u=m)})}return i.dispose}]}return[n,null]}),o=v.useMemo(()=>r(e,t)[0],[e,t]),[s=o,a]=v.useState();return wt(()=>{let[l,c]=r(e,t);if(a(l),!!c)return c(a)},[e,t]),s}function W3(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let i=t[1].slice(0,n).trim(),r=t[1].slice(n+1).trim();return r?[i,...W3(r)]:[i]}return[]}function Zu(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let i=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),i}let oc=v.createContext(null);oc.displayName="OpenClosedContext";var Ao=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ao||{});function Q8(){return v.useContext(oc)}function q8({value:e,children:t}){return v.createElement(oc.Provider,{value:e},t)}function K8(e){throw new Error("Unexpected object: "+e)}var ft=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(ft||{});function hs(e,t){let n=t.resolveItems();if(n.length<=0)return null;let i=t.resolveActiveIndex(),r=i??-1;switch(e.focus){case 0:{for(let o=0;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return i}case 1:{r===-1&&(r=n.length);for(let o=r-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return i}case 2:{for(let o=r+1;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return i}case 3:{for(let o=n.length-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return i}case 4:{for(let o=0;o<n.length;++o)if(t.resolveId(n[o],o,n)===e.id)return o;return i}case 5:return null;default:K8(e)}}function Z3(e){let t=Je(e),n=v.useRef(!1);v.useEffect(()=>(n.current=!1,()=>{n.current=!0,a3(()=>{n.current&&t()})}),[t])}let e7=v.createContext(!1);function t7(){return v.useContext(e7)}function n7(e){let t=t7(),n=v.useContext(Y3),[i,r]=v.useState(()=>{var o;if(!t&&n!==null)return(o=n.current)!=null?o:null;if(Pi.isServer)return null;let s=e==null?void 0:e.getElementById("headlessui-portal-root");if(s)return s;if(e===null)return null;let a=e.createElement("div");return a.setAttribute("id","headlessui-portal-root"),e.body.appendChild(a)});return v.useEffect(()=>{i!==null&&(e!=null&&e.body.contains(i)||e==null||e.body.appendChild(i))},[i,e]),v.useEffect(()=>{t||n!==null&&r(n.current)},[n,r,t]),i}let X3=v.Fragment,i7=nn(function(e,t){let{ownerDocument:n=null,...i}=e,r=v.useRef(null),o=Un(v9(f=>{r.current=f}),t),s=$0(r.current),a=n??s,l=n7(a),c=v.useContext(a7),u=Wo(),d=tn();return Z3(()=>{var f;l&&l.childNodes.length<=0&&((f=l.parentElement)==null||f.removeChild(l))}),l?In.createPortal(v.createElement("div",{"data-headlessui-portal":"",ref:f=>{u.dispose(),c&&f&&u.add(c.register(f))}},d({ourProps:{ref:o},theirProps:i,slot:{},defaultTag:X3,name:"Portal"})),l):null});function r7(e,t){let n=Un(t),{enabled:i=!0,ownerDocument:r,...o}=e,s=tn();return i?v.createElement(i7,{...o,ownerDocument:r,ref:n}):s({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:X3,name:"Portal"})}let o7=v.Fragment,Y3=v.createContext(null);function s7(e,t){let{target:n,...i}=e,r={ref:Un(t)},o=tn();return v.createElement(Y3.Provider,{value:n},o({ourProps:r,theirProps:i,defaultTag:o7,name:"Popover.Group"}))}let a7=v.createContext(null),l7=nn(r7),c7=nn(s7),u7=Object.assign(l7,{Group:c7});const Us={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function J3(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}function d7(e,t,n){let i=Bt();if(t.kind==="Tracked"){let r=function(){o!==J3(e)&&(i.dispose(),n())},{position:o}=t,s=new ResizeObserver(r);s.observe(e),i.add(()=>s.disconnect()),i.addEventListener(window,"scroll",r,{passive:!0}),i.addEventListener(window,"resize",r)}return()=>i.dispose()}let Xu=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Yu(e){var t,n;let i=(t=e.innerText)!=null?t:"",r=e.cloneNode(!0);if(!Jn(r))return i;let o=!1;for(let a of r.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),o=!0;let s=o?(n=r.innerText)!=null?n:"":i;return Xu.test(s)&&(s=s.replace(Xu,"")),s}function f7(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let i=n.split(" ").map(r=>{let o=document.getElementById(r);if(o){let s=o.getAttribute("aria-label");return typeof s=="string"?s.trim():Yu(o).trim()}return null}).filter(Boolean);if(i.length>0)return i.join(", ")}return Yu(e).trim()}function h7(e){let t=v.useRef(""),n=v.useRef("");return Je(()=>{let i=e.current;if(!i)return"";let r=i.innerText;if(t.current===r)return n.current;let o=f7(i).trim().toLowerCase();return t.current=r,n.current=o,o})}var g7=Object.defineProperty,p7=(e,t,n)=>t in e?g7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ju=(e,t,n)=>(p7(e,typeof t!="symbol"?t+"":t,n),n),At=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(At||{}),Sa=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Sa||{}),qe=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItems=5]="RegisterItems",e[e.UnregisterItems=6]="UnregisterItems",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e[e.SortItems=9]="SortItems",e[e.MarkButtonAsMoved=10]="MarkButtonAsMoved",e))(qe||{});function Uu(e,t=n=>n){let n=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,i=A3(t(e.items.slice()),o=>o.dataRef.current.domRef.current),r=n?i.indexOf(n):null;return r===-1&&(r=null),{items:i,activeItemIndex:r}}let m7={1(e){if(e.menuState===1)return e;let t=e.buttonElement?Us.Tracked(J3(e.buttonElement)):e.buttonPositionState;return{...e,activeItemIndex:null,pendingFocus:{focus:ft.Nothing},menuState:1,buttonPositionState:t}},0(e,t){return e.menuState===0?e:{...e,__demoMode:!1,pendingFocus:t.focus,menuState:0,buttonPositionState:Us.Idle}},2:(e,t)=>{var n,i,r,o,s;if(e.menuState===1)return e;let a={...e,searchQuery:"",activationTrigger:(n=t.trigger)!=null?n:1,__demoMode:!1};if(t.focus===ft.Nothing)return{...a,activeItemIndex:null};if(t.focus===ft.Specific)return{...a,activeItemIndex:e.items.findIndex(u=>u.id===t.id)};if(t.focus===ft.Previous){let u=e.activeItemIndex;if(u!==null){let d=e.items[u].dataRef.current.domRef,f=hs(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled});if(f!==null){let h=e.items[f].dataRef.current.domRef;if(((i=d.current)==null?void 0:i.previousElementSibling)===h.current||((r=h.current)==null?void 0:r.previousElementSibling)===null)return{...a,activeItemIndex:f}}}}else if(t.focus===ft.Next){let u=e.activeItemIndex;if(u!==null){let d=e.items[u].dataRef.current.domRef,f=hs(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled});if(f!==null){let h=e.items[f].dataRef.current.domRef;if(((o=d.current)==null?void 0:o.nextElementSibling)===h.current||((s=h.current)==null?void 0:s.nextElementSibling)===null)return{...a,activeItemIndex:f}}}}let l=Uu(e),c=hs(t,{resolveItems:()=>l.items,resolveActiveIndex:()=>l.activeItemIndex,resolveId:u=>u.id,resolveDisabled:u=>u.dataRef.current.disabled});return{...a,...l,activeItemIndex:c}},3:(e,t)=>{let n=e.searchQuery!==""?0:1,i=e.searchQuery+t.value.toLowerCase(),r=(e.activeItemIndex!==null?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(s=>{var a;return((a=s.dataRef.current.textValue)==null?void 0:a.startsWith(i))&&!s.dataRef.current.disabled}),o=r?e.items.indexOf(r):-1;return o===-1||o===e.activeItemIndex?{...e,searchQuery:i}:{...e,searchQuery:i,activeItemIndex:o,activationTrigger:1}},4(e){return e.searchQuery===""?e:{...e,searchQuery:"",searchActiveItemIndex:null}},5:(e,t)=>{let n=e.items.concat(t.items.map(r=>r)),i=e.activeItemIndex;return e.pendingFocus.focus!==ft.Nothing&&(i=hs(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeItemIndex,resolveId:r=>r.id,resolveDisabled:r=>r.dataRef.current.disabled})),{...e,items:n,activeItemIndex:i,pendingFocus:{focus:ft.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let n=e.items,i=[],r=new Set(t.items);for(let[o,s]of n.entries())if(r.has(s.id)&&(i.push(o),r.delete(s.id),r.size===0))break;if(i.length>0){n=n.slice();for(let o of i.reverse())n.splice(o,1)}return{...e,items:n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element},9:e=>e.pendingShouldSort?{...e,...Uu(e),pendingShouldSort:!1}:e,10(e){return e.buttonPositionState.kind!=="Tracked"?e:{...e,buttonPositionState:Us.Moved}}};class sc extends x3{constructor(t){super(t),Ju(this,"actions",{registerItem:Cu(()=>{let n=[],i=new Set;return[(r,o)=>{i.has(o)||(i.add(o),n.push({id:r,dataRef:o}))},()=>(i.clear(),this.send({type:5,items:n.splice(0)}))]}),unregisterItem:Cu(()=>{let n=[];return[i=>n.push(i),()=>this.send({type:6,items:n.splice(0)})]})}),Ju(this,"selectors",{activeDescendantId(n){var i;let r=n.activeItemIndex,o=n.items;return r===null||(i=o[r])==null?void 0:i.id},isActive(n,i){var r;let o=n.activeItemIndex,s=n.items;return o!==null?((r=s[o])==null?void 0:r.id)===i:!1},shouldScrollIntoView(n,i){return n.__demoMode||n.menuState!==0||n.activationTrigger===0?!1:this.isActive(n,i)},didButtonMove(n){return n.buttonPositionState.kind==="Moved"}}),this.on(5,()=>{this.disposables.requestAnimationFrame(()=>{this.send({type:9})})});{let n=this.state.id,i=ql.get(null);this.disposables.add(i.on(w3.Push,r=>{!i.selectors.isTop(r,n)&&this.state.menuState===0&&this.send({type:1})})),this.on(0,()=>i.actions.push(n)),this.on(1,()=>i.actions.pop(n))}this.disposables.group(n=>{this.on(1,i=>{i.buttonElement&&(n.dispose(),n.add(d7(i.buttonElement,i.buttonPositionState,()=>{this.send({type:10})})))})})}static new({id:t,__demoMode:n=!1}){return new sc({id:t,__demoMode:n,menuState:n?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:ft.Nothing},buttonPositionState:Us.Idle})}reduce(t,n){return _r(n.type,m7,t,n)}}const U3=v.createContext(null);function ac(e){let t=v.useContext(U3);if(t===null){let n=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Q3),n}return t}function Q3({id:e,__demoMode:t=!1}){let n=v.useMemo(()=>sc.new({id:e,__demoMode:t}),[]);return Z3(()=>n.dispose()),n}let b7=v.Fragment;function C7(e,t){let n=v.useId(),{__demoMode:i=!1,...r}=e,o=Q3({id:n,__demoMode:i}),[s,a,l]=an(o,m=>[m.menuState,m.itemsElement,m.buttonElement]),c=Un(t),u=ql.get(null),d=an(u,v.useCallback(m=>u.selectors.isTop(m,n),[u,n]));tp(d,[l,a],(m,C)=>{var y;o.send({type:qe.CloseMenu}),ec(C,Kl.Loose)||(m.preventDefault(),(y=o.state.buttonElement)==null||y.focus())});let f=Je(()=>{o.send({type:qe.CloseMenu})}),h=Mr({open:s===At.Open,close:f}),g={ref:c},p=tn();return v.createElement(Y8,null,v.createElement(U3.Provider,{value:o},v.createElement(q8,{value:_r(s,{[At.Open]:Ao.Open,[At.Closed]:Ao.Closed})},p({ourProps:g,theirProps:r,slot:h,defaultTag:b7,name:"Menu"}))))}let v7="button";function x7(e,t){let n=ac("Menu.Button"),i=v.useId(),{id:r=`headlessui-menu-button-${i}`,disabled:o=!1,autoFocus:s=!1,...a}=e,l=v.useRef(null),c=W8(),u=Un(t,l,z8(),Je(_=>n.send({type:qe.SetButtonElement,element:_}))),d=Je(_=>{switch(_.key){case xt.Space:case xt.Enter:case xt.ArrowDown:_.preventDefault(),_.stopPropagation(),n.send({type:qe.OpenMenu,focus:{focus:ft.First}});break;case xt.ArrowUp:_.preventDefault(),_.stopPropagation(),n.send({type:qe.OpenMenu,focus:{focus:ft.Last}});break}}),f=Je(_=>{switch(_.key){case xt.Space:_.preventDefault();break}}),[h,g,p]=an(n,_=>[_.menuState,_.buttonElement,_.itemsElement]),m=h===At.Open;rp(m,{trigger:g,action:v.useCallback(_=>{if(g!=null&&g.contains(_.target))return ds.Ignore;let P=_.target.closest('[role="menuitem"]:not([data-disabled])');return Jn(P)?ds.Select(P):p!=null&&p.contains(_.target)?ds.Ignore:ds.Close},[g,p]),close:v.useCallback(()=>n.send({type:qe.CloseMenu}),[]),select:v.useCallback(_=>_.click(),[])});let C=R9(_=>{var P;o||(h===At.Open?(In.flushSync(()=>n.send({type:qe.CloseMenu})),(P=l.current)==null||P.focus({preventScroll:!0})):(_.preventDefault(),n.send({type:qe.OpenMenu,focus:{focus:ft.Nothing},trigger:Sa.Pointer})))}),{isFocusVisible:y,focusProps:x}=Qg({autoFocus:s}),{isHovered:I,hoverProps:w}=Ug({isDisabled:o}),{pressed:R,pressProps:E}=r9({disabled:o}),S=Mr({open:h===At.Open,active:R||h===At.Open,disabled:o,hover:I,focus:y,autofocus:s}),M=u3(c(),{ref:u,id:r,type:op(e,l.current),"aria-haspopup":"menu","aria-controls":p==null?void 0:p.id,"aria-expanded":h===At.Open,disabled:o||void 0,autoFocus:s,onKeyDown:d,onKeyUp:f},C,x,w,E);return tn()({ourProps:M,theirProps:a,slot:S,defaultTag:v7,name:"Menu.Button"})}let y7="div",w7=T0.RenderStrategy|T0.Static;function S7(e,t){let n=v.useId(),{id:i=`headlessui-menu-items-${n}`,anchor:r,portal:o=!1,modal:s=!0,transition:a=!1,...l}=e,c=G8(r),u=ac("Menu.Items"),[d,f]=X8(c),h=Z8(),[g,p]=v.useState(null),m=Un(t,c?d:null,Je(A=>u.send({type:qe.SetItemsElement,element:A})),p),[C,y]=an(u,A=>[A.menuState,A.buttonElement]),x=$0(y),I=$0(g);c&&(o=!0);let w=Q8(),[R,E]=bp(a,g,w!==null?(w&Ao.Open)===Ao.Open:C===At.Open);H9(R,y,()=>{u.send({type:qe.CloseMenu})});let S=an(u,A=>A.__demoMode),M=S?!1:s&&C===At.Open;fp(M,I);let _=S?!1:s&&C===At.Open;$9(_,{allowed:v.useCallback(()=>[y,g],[y,g])});let P=an(u,u.selectors.didButtonMove)?!1:R;v.useEffect(()=>{let A=g;A&&C===At.Open&&(t9(A)||A.focus({preventScroll:!0}))},[C,g]),wp(C===At.Open,{container:g,accept(A){return A.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:A.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(A){A.setAttribute("role","none")}});let N=Wo(),B=Je(A=>{var L,j,G;switch(N.dispose(),A.key){case xt.Space:if(u.state.searchQuery!=="")return A.preventDefault(),A.stopPropagation(),u.send({type:qe.Search,value:A.key});case xt.Enter:if(A.preventDefault(),A.stopPropagation(),u.state.activeItemIndex!==null){let{dataRef:H}=u.state.items[u.state.activeItemIndex];(j=(L=H.current)==null?void 0:L.domRef.current)==null||j.click()}u.send({type:qe.CloseMenu}),_3(u.state.buttonElement);break;case xt.ArrowDown:return A.preventDefault(),A.stopPropagation(),u.send({type:qe.GoToItem,focus:ft.Next});case xt.ArrowUp:return A.preventDefault(),A.stopPropagation(),u.send({type:qe.GoToItem,focus:ft.Previous});case xt.Home:case xt.PageUp:return A.preventDefault(),A.stopPropagation(),u.send({type:qe.GoToItem,focus:ft.First});case xt.End:case xt.PageDown:return A.preventDefault(),A.stopPropagation(),u.send({type:qe.GoToItem,focus:ft.Last});case xt.Escape:A.preventDefault(),A.stopPropagation(),In.flushSync(()=>u.send({type:qe.CloseMenu})),(G=u.state.buttonElement)==null||G.focus({preventScroll:!0});break;case xt.Tab:A.preventDefault(),A.stopPropagation(),In.flushSync(()=>u.send({type:qe.CloseMenu})),Q9(u.state.buttonElement,A.shiftKey?B0.Previous:B0.Next);break;default:A.key.length===1&&(u.send({type:qe.Search,value:A.key}),N.setTimeout(()=>u.send({type:qe.ClearSearch}),350));break}}),T=Je(A=>{switch(A.key){case xt.Space:A.preventDefault();break}}),k=Mr({open:C===At.Open}),F=u3(c?h():{},{"aria-activedescendant":an(u,u.selectors.activeDescendantId),"aria-labelledby":an(u,A=>{var L;return(L=A.buttonElement)==null?void 0:L.id}),id:i,onKeyDown:B,onKeyUp:T,role:"menu",tabIndex:C===At.Open?0:void 0,ref:m,style:{...l.style,...f,"--button-width":E9(R,y,!0).width},...mp(E)}),O=tn();return v.createElement(u7,{enabled:o?e.static||R:!1,ownerDocument:x},O({ourProps:F,theirProps:l,slot:k,defaultTag:y7,features:w7,visible:P,name:"Menu.Items"}))}let I7=v.Fragment;function M7(e,t){let n=v.useId(),{id:i=`headlessui-menu-item-${n}`,disabled:r=!1,...o}=e,s=ac("Menu.Item"),a=an(s,P=>s.selectors.isActive(P,i)),l=v.useRef(null),c=Un(t,l),u=an(s,P=>s.selectors.shouldScrollIntoView(P,i));wt(()=>{if(u)return Bt().requestAnimationFrame(()=>{var P,N;(N=(P=l.current)==null?void 0:P.scrollIntoView)==null||N.call(P,{block:"nearest"})})},[u,l]);let d=h7(l),f=v.useRef({disabled:r,domRef:l,get textValue(){return d()}});wt(()=>{f.current.disabled=r},[f,r]),wt(()=>(s.actions.registerItem(i,f),()=>s.actions.unregisterItem(i)),[f,i]);let h=Je(()=>{s.send({type:qe.CloseMenu})}),g=Je(P=>{if(r)return P.preventDefault();s.send({type:qe.CloseMenu}),_3(s.state.buttonElement)}),p=Je(()=>{if(r)return s.send({type:qe.GoToItem,focus:ft.Nothing});s.send({type:qe.GoToItem,focus:ft.Specific,id:i})}),m=hp(),C=Je(P=>m.update(P)),y=Je(P=>{m.wasMoved(P)&&(r||a||s.send({type:qe.GoToItem,focus:ft.Specific,id:i,trigger:Sa.Pointer}))}),x=Je(P=>{m.wasMoved(P)&&(r||a&&s.state.activationTrigger===Sa.Pointer&&s.send({type:qe.GoToItem,focus:ft.Nothing}))}),[I,w]=m3(),[R,E]=x9(),S=Mr({active:a,focus:a,disabled:r,close:h}),M={id:i,ref:c,role:"menuitem",tabIndex:r===!0?void 0:-1,"aria-disabled":r===!0?!0:void 0,"aria-labelledby":I,"aria-describedby":R,disabled:void 0,onClick:g,onFocus:p,onPointerEnter:C,onMouseEnter:C,onPointerMove:y,onMouseMove:y,onPointerLeave:x,onMouseLeave:x},_=tn();return v.createElement(w,null,v.createElement(E,null,_({ourProps:M,theirProps:o,slot:S,defaultTag:I7,name:"Menu.Item"})))}let _7="div";function A7(e,t){let[n,i]=m3(),r=e,o={ref:t,"aria-labelledby":n,role:"group"},s=tn();return v.createElement(i,null,s({ourProps:o,theirProps:r,slot:{},defaultTag:_7,name:"Menu.Section"}))}let E7="header";function R7(e,t){let n=v.useId(),{id:i=`headlessui-menu-heading-${n}`,...r}=e,o=Ql();wt(()=>o.register(i),[i,o.register]);let s={id:i,ref:t,role:"presentation",...o.props};return tn()({ourProps:s,theirProps:r,slot:{},defaultTag:E7,name:"Menu.Heading"})}let k7="div";function P7(e,t){let n=e,i={ref:t,role:"separator"};return tn()({ourProps:i,theirProps:n,slot:{},defaultTag:k7,name:"Menu.Separator"})}let L7=nn(C7),q3=nn(x7),K3=nn(S7),e4=nn(M7),F7=nn(A7),O7=nn(R7),N7=nn(P7),T7=Object.assign(L7,{Button:q3,Items:K3,Item:e4,Section:F7,Heading:O7,Separator:N7});const D7=({menuButton:e,menuItems:t})=>{const[n,i]=v.useState(),[r,o]=v.useState(!1),s=a=>{const l=a.currentTarget.getBoundingClientRect(),c=160,d=window.innerWidth-l.right,f={top:l.bottom+window.scrollY};d>=c?f.left=l.left+window.scrollX:f.right=d+window.scrollX,i(f),o(!0)};return v.useEffect(()=>{const a=()=>o(!1);return window.addEventListener("scroll",a,!0),window.addEventListener("resize",a),()=>{window.removeEventListener("scroll",a),window.removeEventListener("resize",a)}},[]),b.jsxs(T7,{as:"div","data-open":r,className:"relative",children:[b.jsx(q3,{"data-testid":"dropdown-menu-button",onClick:s,className:"headlessui-menu-button",children:e}),r&&n&&b.jsx(K3,{className:"fixed min-w-30 shadow-lg rounded-md z-40 overflow-hidden",style:{top:`${n.top}px`,left:n.left!==void 0?`${n.left}px`:"auto",right:n.right!==void 0?`${n.right}px`:"auto",backgroundColor:"var(--bg-color)",border:"1px solid var(--border-color)"},children:t.map(({label:a,icon:l,action:c,disabled:u=!1},d)=>b.jsx(e4,{disabled:u,children:({close:f})=>b.jsxs("button",{"data-testid":`dropdown-menu-item-${a.toLowerCase().replace(/\s+/g,"-")}`,onClick:()=>{u||(c(),f(),o(!1))},disabled:u,className:`w-full px-4 py-2 text-xs text-left flex items-center gap-2 transition-colors ${u?"opacity-50 cursor-not-allowed":"cursor-pointer"}`,style:{color:"var(--text-color)"},onMouseEnter:h=>{u||(h.currentTarget.style.backgroundColor="var(--hover-bg-color)")},onMouseLeave:h=>{h.currentTarget.style.backgroundColor="transparent"},children:[l,a]})},d))})]})};function Hi(e){"@babel/helpers - typeof";return Hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hi(e)}function V7(e,t){if(Hi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(Hi(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function t4(e){var t=V7(e,"string");return Hi(t)=="symbol"?t:t+""}function Xr(e,t,n){return(t=t4(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qu(Object(n),!0).forEach(function(i){Xr(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function j7(e){if(Array.isArray(e))return e}function B7(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(u){c=!0,r=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}function W0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function n4(e,t){if(e){if(typeof e=="string")return W0(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W0(e,t):void 0}}function $7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
22
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wn(e,t){return j7(e)||B7(e,t)||n4(e,t)||$7()}function H7(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function Rn(e,t){if(e==null)return{};var n,i,r=H7(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var G7=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function i4(e){var t=e.defaultInputValue,n=t===void 0?"":t,i=e.defaultMenuIsOpen,r=i===void 0?!1:i,o=e.defaultValue,s=o===void 0?null:o,a=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,h=e.value,g=Rn(e,G7),p=v.useState(a!==void 0?a:n),m=Wn(p,2),C=m[0],y=m[1],x=v.useState(l!==void 0?l:r),I=Wn(x,2),w=I[0],R=I[1],E=v.useState(h!==void 0?h:s),S=Wn(E,2),M=S[0],_=S[1],P=v.useCallback(function(A,L){typeof c=="function"&&c(A,L),_(A)},[c]),N=v.useCallback(function(A,L){var j;typeof u=="function"&&(j=u(A,L)),y(j!==void 0?j:A)},[u]),B=v.useCallback(function(){typeof f=="function"&&f(),R(!0)},[f]),T=v.useCallback(function(){typeof d=="function"&&d(),R(!1)},[d]),k=a!==void 0?a:C,F=l!==void 0?l:w,O=h!==void 0?h:M;return Ce(Ce({},g),{},{inputValue:k,menuIsOpen:F,onChange:P,onInputChange:N,onMenuClose:T,onMenuOpen:B,value:O})}function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ye.apply(null,arguments)}function z7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qu(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,t4(i.key),i)}}function W7(e,t,n){return t&&qu(e.prototype,t),n&&qu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Z0(e,t){return Z0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Z0(e,t)}function Z7(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z0(e,t)}function Ia(e){return Ia=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ia(e)}function r4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(r4=function(){return!!e})()}function X7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y7(e,t){if(t&&(Hi(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return X7(e)}function J7(e){var t=r4();return function(){var n,i=Ia(e);if(t){var r=Ia(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return Y7(this,n)}}function U7(e){if(Array.isArray(e))return W0(e)}function Q7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function q7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
23
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cr(e){return U7(e)||Q7(e)||n4(e)||q7()}function K7(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function em(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var tm=function(){function e(n){var i=this;this._insertTag=function(r){var o;i.tags.length===0?i.insertionPoint?o=i.insertionPoint.nextSibling:i.prepend?o=i.container.firstChild:o=i.before:o=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(r,o),i.tags.push(r)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(em(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=K7(r);try{o.insertRule(i,o.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var r;return(r=i.parentNode)==null?void 0:r.removeChild(i)}),this.tags=[],this.ctr=0},e}(),Mt="-ms-",Ma="-moz-",Ge="-webkit-",o4="comm",lc="rule",cc="decl",nm="@import",s4="@keyframes",im="@layer",rm=Math.abs,p2=String.fromCharCode,om=Object.assign;function sm(e,t){return yt(e,0)^45?(((t<<2^yt(e,0))<<2^yt(e,1))<<2^yt(e,2))<<2^yt(e,3):0}function a4(e){return e.trim()}function am(e,t){return(e=t.exec(e))?e[0]:e}function ze(e,t,n){return e.replace(t,n)}function X0(e,t){return e.indexOf(t)}function yt(e,t){return e.charCodeAt(t)|0}function Eo(e,t,n){return e.slice(t,n)}function pn(e){return e.length}function uc(e){return e.length}function gs(e,t){return t.push(e),e}function lm(e,t){return e.map(t).join("")}var m2=1,mr=1,l4=0,jt=0,ht=0,kr="";function b2(e,t,n,i,r,o,s){return{value:e,root:t,parent:n,type:i,props:r,children:o,line:m2,column:mr,length:s,return:""}}function Tr(e,t){return om(b2("",null,null,"",null,null,0),e,{length:-e.length},t)}function cm(){return ht}function um(){return ht=jt>0?yt(kr,--jt):0,mr--,ht===10&&(mr=1,m2--),ht}function Gt(){return ht=jt<l4?yt(kr,jt++):0,mr++,ht===10&&(mr=1,m2++),ht}function xn(){return yt(kr,jt)}function Qs(){return jt}function Jo(e,t){return Eo(kr,e,t)}function Ro(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function c4(e){return m2=mr=1,l4=pn(kr=e),jt=0,[]}function u4(e){return kr="",e}function qs(e){return a4(Jo(jt-1,Y0(e===91?e+2:e===40?e+1:e)))}function dm(e){for(;(ht=xn())&&ht<33;)Gt();return Ro(e)>2||Ro(ht)>3?"":" "}function fm(e,t){for(;--t&&Gt()&&!(ht<48||ht>102||ht>57&&ht<65||ht>70&&ht<97););return Jo(e,Qs()+(t<6&&xn()==32&&Gt()==32))}function Y0(e){for(;Gt();)switch(ht){case e:return jt;case 34:case 39:e!==34&&e!==39&&Y0(ht);break;case 40:e===41&&Y0(e);break;case 92:Gt();break}return jt}function hm(e,t){for(;Gt()&&e+ht!==57;)if(e+ht===84&&xn()===47)break;return"/*"+Jo(t,jt-1)+"*"+p2(e===47?e:Gt())}function gm(e){for(;!Ro(xn());)Gt();return Jo(e,jt)}function pm(e){return u4(Ks("",null,null,null,[""],e=c4(e),0,[0],e))}function Ks(e,t,n,i,r,o,s,a,l){for(var c=0,u=0,d=s,f=0,h=0,g=0,p=1,m=1,C=1,y=0,x="",I=r,w=o,R=i,E=x;m;)switch(g=y,y=Gt()){case 40:if(g!=108&&yt(E,d-1)==58){X0(E+=ze(qs(y),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:E+=qs(y);break;case 9:case 10:case 13:case 32:E+=dm(g);break;case 92:E+=fm(Qs()-1,7);continue;case 47:switch(xn()){case 42:case 47:gs(mm(hm(Gt(),Qs()),t,n),l);break;default:E+="/"}break;case 123*p:a[c++]=pn(E)*C;case 125*p:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:C==-1&&(E=ze(E,/\f/g,"")),h>0&&pn(E)-d&&gs(h>32?ed(E+";",i,n,d-1):ed(ze(E," ","")+";",i,n,d-2),l);break;case 59:E+=";";default:if(gs(R=Ku(E,t,n,c,u,r,a,x,I=[],w=[],d),o),y===123)if(u===0)Ks(E,t,R,R,I,o,d,a,w);else switch(f===99&&yt(E,3)===110?100:f){case 100:case 108:case 109:case 115:Ks(e,R,R,i&&gs(Ku(e,R,R,0,0,r,a,x,r,I=[],d),w),r,w,d,a,i?I:w);break;default:Ks(E,R,R,R,[""],w,0,a,w)}}c=u=h=0,p=C=1,x=E="",d=s;break;case 58:d=1+pn(E),h=g;default:if(p<1){if(y==123)--p;else if(y==125&&p++==0&&um()==125)continue}switch(E+=p2(y),y*p){case 38:C=u>0?1:(E+="\f",-1);break;case 44:a[c++]=(pn(E)-1)*C,C=1;break;case 64:xn()===45&&(E+=qs(Gt())),f=xn(),u=d=pn(x=E+=gm(Qs())),y++;break;case 45:g===45&&pn(E)==2&&(p=0)}}return o}function Ku(e,t,n,i,r,o,s,a,l,c,u){for(var d=r-1,f=r===0?o:[""],h=uc(f),g=0,p=0,m=0;g<i;++g)for(var C=0,y=Eo(e,d+1,d=rm(p=s[g])),x=e;C<h;++C)(x=a4(p>0?f[C]+" "+y:ze(y,/&\f/g,f[C])))&&(l[m++]=x);return b2(e,t,n,r===0?lc:a,l,c,u)}function mm(e,t,n){return b2(e,t,n,o4,p2(cm()),Eo(e,2,-2),0)}function ed(e,t,n,i){return b2(e,t,n,cc,Eo(e,0,i),Eo(e,i+1,-1),i)}function ur(e,t){for(var n="",i=uc(e),r=0;r<i;r++)n+=t(e[r],r,e,t)||"";return n}function bm(e,t,n,i){switch(e.type){case im:if(e.children.length)break;case nm:case cc:return e.return=e.return||e.value;case o4:return"";case s4:return e.return=e.value+"{"+ur(e.children,i)+"}";case lc:e.value=e.props.join(",")}return pn(n=ur(e.children,i))?e.return=e.value+"{"+n+"}":""}function Cm(e){var t=uc(e);return function(n,i,r,o){for(var s="",a=0;a<t;a++)s+=e[a](n,i,r,o)||"";return s}}function vm(e){return function(t){t.root||(t=t.return)&&e(t)}}function xm(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ym=function(t,n,i){for(var r=0,o=0;r=o,o=xn(),r===38&&o===12&&(n[i]=1),!Ro(o);)Gt();return Jo(t,jt)},wm=function(t,n){var i=-1,r=44;do switch(Ro(r)){case 0:r===38&&xn()===12&&(n[i]=1),t[i]+=ym(jt-1,n,i);break;case 2:t[i]+=qs(r);break;case 4:if(r===44){t[++i]=xn()===58?"&\f":"",n[i]=t[i].length;break}default:t[i]+=p2(r)}while(r=Gt());return t},Sm=function(t,n){return u4(wm(c4(t),n))},td=new WeakMap,Im=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,i=t.parent,r=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!td.get(i))&&!r){td.set(t,!0);for(var o=[],s=Sm(n,o),a=i.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)t.props[c]=o[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},Mm=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function d4(e,t){switch(sm(e,t)){case 5103:return Ge+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ge+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ge+e+Ma+e+Mt+e+e;case 6828:case 4268:return Ge+e+Mt+e+e;case 6165:return Ge+e+Mt+"flex-"+e+e;case 5187:return Ge+e+ze(e,/(\w+).+(:[^]+)/,Ge+"box-$1$2"+Mt+"flex-$1$2")+e;case 5443:return Ge+e+Mt+"flex-item-"+ze(e,/flex-|-self/,"")+e;case 4675:return Ge+e+Mt+"flex-line-pack"+ze(e,/align-content|flex-|-self/,"")+e;case 5548:return Ge+e+Mt+ze(e,"shrink","negative")+e;case 5292:return Ge+e+Mt+ze(e,"basis","preferred-size")+e;case 6060:return Ge+"box-"+ze(e,"-grow","")+Ge+e+Mt+ze(e,"grow","positive")+e;case 4554:return Ge+ze(e,/([^-])(transform)/g,"$1"+Ge+"$2")+e;case 6187:return ze(ze(ze(e,/(zoom-|grab)/,Ge+"$1"),/(image-set)/,Ge+"$1"),e,"")+e;case 5495:case 3959:return ze(e,/(image-set\([^]*)/,Ge+"$1$`$1");case 4968:return ze(ze(e,/(.+:)(flex-)?(.*)/,Ge+"box-pack:$3"+Mt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ge+e+e;case 4095:case 3583:case 4068:case 2532:return ze(e,/(.+)-inline(.+)/,Ge+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(pn(e)-1-t>6)switch(yt(e,t+1)){case 109:if(yt(e,t+4)!==45)break;case 102:return ze(e,/(.+:)(.+)-([^]+)/,"$1"+Ge+"$2-$3$1"+Ma+(yt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~X0(e,"stretch")?d4(ze(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(yt(e,t+1)!==115)break;case 6444:switch(yt(e,pn(e)-3-(~X0(e,"!important")&&10))){case 107:return ze(e,":",":"+Ge)+e;case 101:return ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ge+(yt(e,14)===45?"inline-":"")+"box$3$1"+Ge+"$2$3$1"+Mt+"$2box$3")+e}break;case 5936:switch(yt(e,t+11)){case 114:return Ge+e+Mt+ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ge+e+Mt+ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ge+e+Mt+ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ge+e+Mt+e+e}return e}var _m=function(t,n,i,r){if(t.length>-1&&!t.return)switch(t.type){case cc:t.return=d4(t.value,t.length);break;case s4:return ur([Tr(t,{value:ze(t.value,"@","@"+Ge)})],r);case lc:if(t.length)return lm(t.props,function(o){switch(am(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ur([Tr(t,{props:[ze(o,/:(read-\w+)/,":"+Ma+"$1")]})],r);case"::placeholder":return ur([Tr(t,{props:[ze(o,/:(plac\w+)/,":"+Ge+"input-$1")]}),Tr(t,{props:[ze(o,/:(plac\w+)/,":"+Ma+"$1")]}),Tr(t,{props:[ze(o,/:(plac\w+)/,Mt+"input-$1")]})],r)}return""})}},Am=[_m],Em=function(t){var n=t.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(p){var m=p.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var r=t.stylisPlugins||Am,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var m=p.getAttribute("data-emotion").split(" "),C=1;C<m.length;C++)o[m[C]]=!0;a.push(p)});var l,c=[Im,Mm];{var u,d=[bm,vm(function(p){u.insert(p)})],f=Cm(c.concat(r,d)),h=function(m){return ur(pm(m),f)};l=function(m,C,y,x){u=y,h(m?m+"{"+C.styles+"}":C.styles),x&&(g.inserted[C.name]=!0)}}var g={key:n,sheet:new tm({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(a),g},J0={exports:{}},Ze={};/** @license React v16.13.1
24
+ * react-is.production.min.js
25
+ *
26
+ * Copyright (c) Facebook, Inc. and its affiliates.
27
+ *
28
+ * This source code is licensed under the MIT license found in the
29
+ * LICENSE file in the root directory of this source tree.
30
+ */var nd;function Rm(){if(nd)return Ze;nd=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function x(w){if(typeof w=="object"&&w!==null){var R=w.$$typeof;switch(R){case t:switch(w=w.type,w){case l:case c:case i:case o:case r:case d:return w;default:switch(w=w&&w.$$typeof,w){case a:case u:case g:case h:case s:return w;default:return R}}case n:return R}}}function I(w){return x(w)===c}return Ze.AsyncMode=l,Ze.ConcurrentMode=c,Ze.ContextConsumer=a,Ze.ContextProvider=s,Ze.Element=t,Ze.ForwardRef=u,Ze.Fragment=i,Ze.Lazy=g,Ze.Memo=h,Ze.Portal=n,Ze.Profiler=o,Ze.StrictMode=r,Ze.Suspense=d,Ze.isAsyncMode=function(w){return I(w)||x(w)===l},Ze.isConcurrentMode=I,Ze.isContextConsumer=function(w){return x(w)===a},Ze.isContextProvider=function(w){return x(w)===s},Ze.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Ze.isForwardRef=function(w){return x(w)===u},Ze.isFragment=function(w){return x(w)===i},Ze.isLazy=function(w){return x(w)===g},Ze.isMemo=function(w){return x(w)===h},Ze.isPortal=function(w){return x(w)===n},Ze.isProfiler=function(w){return x(w)===o},Ze.isStrictMode=function(w){return x(w)===r},Ze.isSuspense=function(w){return x(w)===d},Ze.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===i||w===c||w===o||w===r||w===d||w===f||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===h||w.$$typeof===s||w.$$typeof===a||w.$$typeof===u||w.$$typeof===m||w.$$typeof===C||w.$$typeof===y||w.$$typeof===p)},Ze.typeOf=x,Ze}var Xe={};/** @license React v16.13.1
31
+ * react-is.development.js
32
+ *
33
+ * Copyright (c) Facebook, Inc. and its affiliates.
34
+ *
35
+ * This source code is licensed under the MIT license found in the
36
+ * LICENSE file in the root directory of this source tree.
37
+ */var id;function km(){return id||(id=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function x(z){return typeof z=="string"||typeof z=="function"||z===i||z===c||z===o||z===r||z===d||z===f||typeof z=="object"&&z!==null&&(z.$$typeof===g||z.$$typeof===h||z.$$typeof===s||z.$$typeof===a||z.$$typeof===u||z.$$typeof===m||z.$$typeof===C||z.$$typeof===y||z.$$typeof===p)}function I(z){if(typeof z=="object"&&z!==null){var Ne=z.$$typeof;switch(Ne){case t:var ie=z.type;switch(ie){case l:case c:case i:case o:case r:case d:return ie;default:var re=ie&&ie.$$typeof;switch(re){case a:case u:case g:case h:case s:return re;default:return Ne}}case n:return Ne}}}var w=l,R=c,E=a,S=s,M=t,_=u,P=i,N=g,B=h,T=n,k=o,F=r,O=d,A=!1;function L(z){return A||(A=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(z)||I(z)===l}function j(z){return I(z)===c}function G(z){return I(z)===a}function H(z){return I(z)===s}function $(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function J(z){return I(z)===u}function le(z){return I(z)===i}function he(z){return I(z)===g}function Oe(z){return I(z)===h}function fe(z){return I(z)===n}function ge(z){return I(z)===o}function we(z){return I(z)===r}function ce(z){return I(z)===d}Xe.AsyncMode=w,Xe.ConcurrentMode=R,Xe.ContextConsumer=E,Xe.ContextProvider=S,Xe.Element=M,Xe.ForwardRef=_,Xe.Fragment=P,Xe.Lazy=N,Xe.Memo=B,Xe.Portal=T,Xe.Profiler=k,Xe.StrictMode=F,Xe.Suspense=O,Xe.isAsyncMode=L,Xe.isConcurrentMode=j,Xe.isContextConsumer=G,Xe.isContextProvider=H,Xe.isElement=$,Xe.isForwardRef=J,Xe.isFragment=le,Xe.isLazy=he,Xe.isMemo=Oe,Xe.isPortal=fe,Xe.isProfiler=ge,Xe.isStrictMode=we,Xe.isSuspense=ce,Xe.isValidElementType=x,Xe.typeOf=I}()),Xe}process.env.NODE_ENV==="production"?J0.exports=Rm():J0.exports=km();var Pm=J0.exports,f4=Pm,Lm={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Fm={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},h4={};h4[f4.ForwardRef]=Lm;h4[f4.Memo]=Fm;var Om=!0;function Nm(e,t,n){var i="";return n.split(" ").forEach(function(r){e[r]!==void 0?t.push(e[r]+";"):r&&(i+=r+" ")}),i}var g4=function(t,n,i){var r=t.key+"-"+n.name;(i===!1||Om===!1)&&t.registered[r]===void 0&&(t.registered[r]=n.styles)},Tm=function(t,n,i){g4(t,n,i);var r=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+r:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Dm(e){for(var t=0,n,i=0,r=e.length;r>=4;++i,r-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Vm={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},jm=/[A-Z]|^ms/g,Bm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,p4=function(t){return t.charCodeAt(1)===45},rd=function(t){return t!=null&&typeof t!="boolean"},X2=xm(function(e){return p4(e)?e:e.replace(jm,"-$&").toLowerCase()}),od=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Bm,function(i,r,o){return mn={name:r,styles:o,next:mn},r})}return Vm[t]!==1&&!p4(t)&&typeof n=="number"&&n!==0?n+"px":n};function ko(e,t,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return mn={name:r.name,styles:r.styles,next:mn},r.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)mn={name:s.name,styles:s.styles,next:mn},s=s.next;var a=o.styles+";";return a}return $m(e,t,n)}case"function":{if(e!==void 0){var l=mn,c=n(e);return mn=l,ko(e,t,c)}break}}var u=n;return u}function $m(e,t,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=ko(e,t,n[r])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var a=s;rd(a)&&(i+=X2(o)+":"+od(o,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var l=0;l<s.length;l++)rd(s[l])&&(i+=X2(o)+":"+od(o,s[l])+";");else{var c=ko(e,t,s);switch(o){case"animation":case"animationName":{i+=X2(o)+":"+c+";";break}default:i+=o+"{"+c+"}"}}}return i}var sd=/label:\s*([^\s;{]+)\s*(;|$)/g,mn;function m4(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,r="";mn=void 0;var o=e[0];if(o==null||o.raw===void 0)i=!1,r+=ko(n,t,o);else{var s=o;r+=s[0]}for(var a=1;a<e.length;a++)if(r+=ko(n,t,e[a]),i){var l=o;r+=l[a]}sd.lastIndex=0;for(var c="",u;(u=sd.exec(r))!==null;)c+="-"+u[1];var d=Dm(r)+c;return{name:d,styles:r,next:mn}}var Hm=function(t){return t()},Gm=W.useInsertionEffect?W.useInsertionEffect:!1,zm=Gm||Hm,b4=W.createContext(typeof HTMLElement<"u"?Em({key:"css"}):null);b4.Provider;var Wm=function(t){return v.forwardRef(function(n,i){var r=v.useContext(b4);return t(n,r,i)})},Zm=W.createContext({}),dc={}.hasOwnProperty,U0="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Xm=function(t,n){var i={};for(var r in n)dc.call(n,r)&&(i[r]=n[r]);return i[U0]=t,i},Ym=function(t){var n=t.cache,i=t.serialized,r=t.isStringTag;return g4(n,i,r),zm(function(){return Tm(n,i,r)}),null},Jm=Wm(function(e,t,n){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var r=e[U0],o=[i],s="";typeof e.className=="string"?s=Nm(t.registered,o,e.className):e.className!=null&&(s=e.className+" ");var a=m4(o,void 0,W.useContext(Zm));s+=t.key+"-"+a.name;var l={};for(var c in e)dc.call(e,c)&&c!=="css"&&c!==U0&&(l[c]=e[c]);return l.className=s,n&&(l.ref=n),W.createElement(W.Fragment,null,W.createElement(Ym,{cache:t,serialized:a,isStringTag:typeof r=="string"}),W.createElement(r,l))}),Um=Jm,be=function(t,n){var i=arguments;if(n==null||!dc.call(n,"css"))return W.createElement.apply(void 0,i);var r=i.length,o=new Array(r);o[0]=Um,o[1]=Xm(t,n);for(var s=2;s<r;s++)o[s]=i[s];return W.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(be||(be={}));function fc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m4(t)}function Qm(){var e=fc.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function qm(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Q0=v.useLayoutEffect,Km=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],_a=function(){};function eb(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function tb(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var o=[].concat(i);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&o.push("".concat(eb(e,s)));return o.filter(function(a){return a}).map(function(a){return String(a).trim()}).join(" ")}var Aa=function(t){return ub(t)?t.filter(Boolean):Hi(t)==="object"&&t!==null?[t]:[]},C4=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=Rn(t,Km);return Ce({},n)},ut=function(t,n,i){var r=t.cx,o=t.getStyles,s=t.getClassNames,a=t.className;return{css:o(n,t),className:r(i??{},s(n,t),a)}};function C2(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function nb(e){return C2(e)?window.innerHeight:e.clientHeight}function v4(e){return C2(e)?window.pageYOffset:e.scrollTop}function Ea(e,t){if(C2(e)){window.scrollTo(0,t);return}e.scrollTop=t}function ib(e){var t=getComputedStyle(e),n=t.position==="absolute",i=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),!(n&&t.position==="static")&&i.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}function rb(e,t,n,i){return n*((e=e/i-1)*e*e+1)+t}function ps(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:_a,r=v4(e),o=t-r,s=10,a=0;function l(){a+=s;var c=rb(a,r,o,n);Ea(e,c),a<n?window.requestAnimationFrame(l):i(e)}l()}function ad(e,t){var n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),r=t.offsetHeight/3;i.bottom+r>n.bottom?Ea(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):i.top-r<n.top&&Ea(e,Math.max(t.offsetTop-r,0))}function ob(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function ld(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function sb(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var x4=!1,ab={get passive(){return x4=!0}},ms=typeof window<"u"?window:{};ms.addEventListener&&ms.removeEventListener&&(ms.addEventListener("p",_a,ab),ms.removeEventListener("p",_a,!1));var lb=x4;function cb(e){return e!=null}function ub(e){return Array.isArray(e)}function Yr(e,t,n){return e?t:n}var db=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var o=Object.entries(t).filter(function(s){var a=Wn(s,1),l=a[0];return!i.includes(l)});return o.reduce(function(s,a){var l=Wn(a,2),c=l[0],u=l[1];return s[c]=u,s},{})},fb=["children","innerProps"],hb=["children","innerProps"];function gb(e){var t=e.maxHeight,n=e.menuEl,i=e.minHeight,r=e.placement,o=e.shouldScroll,s=e.isFixedPosition,a=e.controlHeight,l=ib(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect(),d=u.height,f=n.getBoundingClientRect(),h=f.bottom,g=f.height,p=f.top,m=n.offsetParent.getBoundingClientRect(),C=m.top,y=s?window.innerHeight:nb(l),x=v4(l),I=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),R=C-w,E=y-p,S=R+x,M=d-x-p,_=h-y+x+I,P=x+p-w,N=160;switch(r){case"auto":case"bottom":if(E>=g)return{placement:"bottom",maxHeight:t};if(M>=g&&!s)return o&&ps(l,_,N),{placement:"bottom",maxHeight:t};if(!s&&M>=i||s&&E>=i){o&&ps(l,_,N);var B=s?E-I:M-I;return{placement:"bottom",maxHeight:B}}if(r==="auto"||s){var T=t,k=s?R:S;return k>=i&&(T=Math.min(k-I-a,t)),{placement:"top",maxHeight:T}}if(r==="bottom")return o&&Ea(l,_),{placement:"bottom",maxHeight:t};break;case"top":if(R>=g)return{placement:"top",maxHeight:t};if(S>=g&&!s)return o&&ps(l,P,N),{placement:"top",maxHeight:t};if(!s&&S>=i||s&&R>=i){var F=t;return(!s&&S>=i||s&&R>=i)&&(F=s?R-w:S-w),o&&ps(l,P,N),{placement:"top",maxHeight:F}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return c}function pb(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var y4=function(t){return t==="auto"?"bottom":t},mb=function(t,n){var i,r=t.placement,o=t.theme,s=o.borderRadius,a=o.spacing,l=o.colors;return Ce((i={label:"menu"},Xr(i,pb(r),"100%"),Xr(i,"position","absolute"),Xr(i,"width","100%"),Xr(i,"zIndex",1),i),n?{}:{backgroundColor:l.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},w4=v.createContext(null),bb=function(t){var n=t.children,i=t.minMenuHeight,r=t.maxMenuHeight,o=t.menuPlacement,s=t.menuPosition,a=t.menuShouldScrollIntoView,l=t.theme,c=v.useContext(w4)||{},u=c.setPortalPlacement,d=v.useRef(null),f=v.useState(r),h=Wn(f,2),g=h[0],p=h[1],m=v.useState(null),C=Wn(m,2),y=C[0],x=C[1],I=l.spacing.controlHeight;return Q0(function(){var w=d.current;if(w){var R=s==="fixed",E=a&&!R,S=gb({maxHeight:r,menuEl:w,minHeight:i,placement:o,shouldScroll:E,isFixedPosition:R,controlHeight:I});p(S.maxHeight),x(S.placement),u==null||u(S.placement)}},[r,o,s,a,i,u,I]),n({ref:d,placerProps:Ce(Ce({},t),{},{placement:y||y4(o),maxHeight:g})})},Cb=function(t){var n=t.children,i=t.innerRef,r=t.innerProps;return be("div",ye({},ut(t,"menu",{menu:!0}),{ref:i},r),n)},vb=Cb,xb=function(t,n){var i=t.maxHeight,r=t.theme.spacing.baseUnit;return Ce({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:r,paddingTop:r})},yb=function(t){var n=t.children,i=t.innerProps,r=t.innerRef,o=t.isMulti;return be("div",ye({},ut(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},i),n)},S4=function(t,n){var i=t.theme,r=i.spacing.baseUnit,o=i.colors;return Ce({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},wb=S4,Sb=S4,Ib=function(t){var n=t.children,i=n===void 0?"No options":n,r=t.innerProps,o=Rn(t,fb);return be("div",ye({},ut(Ce(Ce({},o),{},{children:i,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),i)},Mb=function(t){var n=t.children,i=n===void 0?"Loading...":n,r=t.innerProps,o=Rn(t,hb);return be("div",ye({},ut(Ce(Ce({},o),{},{children:i,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),i)},_b=function(t){var n=t.rect,i=t.offset,r=t.position;return{left:n.left,position:r,top:i,width:n.width,zIndex:1}},Ab=function(t){var n=t.appendTo,i=t.children,r=t.controlElement,o=t.innerProps,s=t.menuPlacement,a=t.menuPosition,l=v.useRef(null),c=v.useRef(null),u=v.useState(y4(s)),d=Wn(u,2),f=d[0],h=d[1],g=v.useMemo(function(){return{setPortalPlacement:h}},[]),p=v.useState(null),m=Wn(p,2),C=m[0],y=m[1],x=v.useCallback(function(){if(r){var E=ob(r),S=a==="fixed"?0:window.pageYOffset,M=E[f]+S;(M!==(C==null?void 0:C.offset)||E.left!==(C==null?void 0:C.rect.left)||E.width!==(C==null?void 0:C.rect.width))&&y({offset:M,rect:E})}},[r,a,f,C==null?void 0:C.offset,C==null?void 0:C.rect.left,C==null?void 0:C.rect.width]);Q0(function(){x()},[x]);var I=v.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),r&&l.current&&(c.current=B3(r,l.current,x,{elementResize:"ResizeObserver"in window}))},[r,x]);Q0(function(){I()},[I]);var w=v.useCallback(function(E){l.current=E,I()},[I]);if(!n&&a!=="fixed"||!C)return null;var R=be("div",ye({ref:w},ut(Ce(Ce({},t),{},{offset:C.offset,position:a,rect:C.rect}),"menuPortal",{"menu-portal":!0}),o),i);return be(w4.Provider,{value:g},n?In.createPortal(R,n):R)},Eb=function(t){var n=t.isDisabled,i=t.isRtl;return{label:"container",direction:i?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},Rb=function(t){var n=t.children,i=t.innerProps,r=t.isDisabled,o=t.isRtl;return be("div",ye({},ut(t,"container",{"--is-disabled":r,"--is-rtl":o}),i),n)},kb=function(t,n){var i=t.theme.spacing,r=t.isMulti,o=t.hasValue,s=t.selectProps.controlShouldRenderValue;return Ce({alignItems:"center",display:r&&o&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(i.baseUnit*2,"px")})},Pb=function(t){var n=t.children,i=t.innerProps,r=t.isMulti,o=t.hasValue;return be("div",ye({},ut(t,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),i),n)},Lb=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Fb=function(t){var n=t.children,i=t.innerProps;return be("div",ye({},ut(t,"indicatorsContainer",{indicators:!0}),i),n)},cd,Ob=["size"],Nb=["innerProps","isRtl","size"];function Tb(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Db=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:Tb},I4=function(t){var n=t.size,i=Rn(t,Ob);return be("svg",ye({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Db},i))},hc=function(t){return be(I4,ye({size:20},t),be("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},M4=function(t){return be(I4,ye({size:20},t),be("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},_4=function(t,n){var i=t.isFocused,r=t.theme,o=r.spacing.baseUnit,s=r.colors;return Ce({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:i?s.neutral60:s.neutral20,padding:o*2,":hover":{color:i?s.neutral80:s.neutral40}})},Vb=_4,jb=function(t){var n=t.children,i=t.innerProps;return be("div",ye({},ut(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),i),n||be(M4,null))},Bb=_4,$b=function(t){var n=t.children,i=t.innerProps;return be("div",ye({},ut(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),i),n||be(hc,null))},Hb=function(t,n){var i=t.isDisabled,r=t.theme,o=r.spacing.baseUnit,s=r.colors;return Ce({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:i?s.neutral10:s.neutral20,marginBottom:o*2,marginTop:o*2})},Gb=function(t){var n=t.innerProps;return be("span",ye({},n,ut(t,"indicatorSeparator",{"indicator-separator":!0})))},zb=Qm(cd||(cd=qm([`
38
+ 0%, 80%, 100% { opacity: 0; }
39
+ 40% { opacity: 1; }
40
+ `]))),Wb=function(t,n){var i=t.isFocused,r=t.size,o=t.theme,s=o.colors,a=o.spacing.baseUnit;return Ce({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},n?{}:{color:i?s.neutral60:s.neutral20,padding:a*2})},Y2=function(t){var n=t.delay,i=t.offset;return be("span",{css:fc({animation:"".concat(zb," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:i?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Zb=function(t){var n=t.innerProps,i=t.isRtl,r=t.size,o=r===void 0?4:r,s=Rn(t,Nb);return be("div",ye({},ut(Ce(Ce({},s),{},{innerProps:n,isRtl:i,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),be(Y2,{delay:0,offset:i}),be(Y2,{delay:160,offset:!0}),be(Y2,{delay:320,offset:!i}))},Xb=function(t,n){var i=t.isDisabled,r=t.isFocused,o=t.theme,s=o.colors,a=o.borderRadius,l=o.spacing;return Ce({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:i?s.neutral5:s.neutral0,borderColor:i?s.neutral10:r?s.primary:s.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:r?s.primary:s.neutral30}})},Yb=function(t){var n=t.children,i=t.isDisabled,r=t.isFocused,o=t.innerRef,s=t.innerProps,a=t.menuIsOpen;return be("div",ye({ref:o},ut(t,"control",{control:!0,"control--is-disabled":i,"control--is-focused":r,"control--menu-is-open":a}),s,{"aria-disabled":i||void 0}),n)},Jb=Yb,Ub=["data"],Qb=function(t,n){var i=t.theme.spacing;return n?{}:{paddingBottom:i.baseUnit*2,paddingTop:i.baseUnit*2}},qb=function(t){var n=t.children,i=t.cx,r=t.getStyles,o=t.getClassNames,s=t.Heading,a=t.headingProps,l=t.innerProps,c=t.label,u=t.theme,d=t.selectProps;return be("div",ye({},ut(t,"group",{group:!0}),l),be(s,ye({},a,{selectProps:d,theme:u,getStyles:r,getClassNames:o,cx:i}),c),be("div",null,n))},Kb=function(t,n){var i=t.theme,r=i.colors,o=i.spacing;return Ce({label:"group",cursor:"default",display:"block"},n?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},eC=function(t){var n=C4(t);n.data;var i=Rn(n,Ub);return be("div",ye({},ut(t,"groupHeading",{"group-heading":!0}),i))},tC=qb,nC=["innerRef","isDisabled","isHidden","inputClassName"],iC=function(t,n){var i=t.isDisabled,r=t.value,o=t.theme,s=o.spacing,a=o.colors;return Ce(Ce({visibility:i?"hidden":"visible",transform:r?"translateZ(0)":""},rC),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:a.neutral80})},A4={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},rC={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ce({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},A4)},oC=function(t){return Ce({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},A4)},sC=function(t){var n=t.cx,i=t.value,r=C4(t),o=r.innerRef,s=r.isDisabled,a=r.isHidden,l=r.inputClassName,c=Rn(r,nC);return be("div",ye({},ut(t,"input",{"input-container":!0}),{"data-value":i||""}),be("input",ye({className:n({input:!0},l),ref:o,style:oC(a),disabled:s},c)))},aC=sC,lC=function(t,n){var i=t.theme,r=i.spacing,o=i.borderRadius,s=i.colors;return Ce({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},cC=function(t,n){var i=t.theme,r=i.borderRadius,o=i.colors,s=t.cropWithEllipsis;return Ce({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},uC=function(t,n){var i=t.theme,r=i.spacing,o=i.borderRadius,s=i.colors,a=t.isFocused;return Ce({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:a?s.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},E4=function(t){var n=t.children,i=t.innerProps;return be("div",i,n)},dC=E4,fC=E4;function hC(e){var t=e.children,n=e.innerProps;return be("div",ye({role:"button"},n),t||be(hc,{size:14}))}var gC=function(t){var n=t.children,i=t.components,r=t.data,o=t.innerProps,s=t.isDisabled,a=t.removeProps,l=t.selectProps,c=i.Container,u=i.Label,d=i.Remove;return be(c,{data:r,innerProps:Ce(Ce({},ut(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),o),selectProps:l},be(u,{data:r,innerProps:Ce({},ut(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),be(d,{data:r,innerProps:Ce(Ce({},ut(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:l}))},pC=gC,mC=function(t,n){var i=t.isDisabled,r=t.isFocused,o=t.isSelected,s=t.theme,a=s.spacing,l=s.colors;return Ce({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?l.primary:r?l.primary25:"transparent",color:i?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:i?void 0:o?l.primary:l.primary50}})},bC=function(t){var n=t.children,i=t.isDisabled,r=t.isFocused,o=t.isSelected,s=t.innerRef,a=t.innerProps;return be("div",ye({},ut(t,"option",{option:!0,"option--is-disabled":i,"option--is-focused":r,"option--is-selected":o}),{ref:s,"aria-disabled":i},a),n)},CC=bC,vC=function(t,n){var i=t.theme,r=i.spacing,o=i.colors;return Ce({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},xC=function(t){var n=t.children,i=t.innerProps;return be("div",ye({},ut(t,"placeholder",{placeholder:!0}),i),n)},yC=xC,wC=function(t,n){var i=t.isDisabled,r=t.theme,o=r.spacing,s=r.colors;return Ce({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:i?s.neutral40:s.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},SC=function(t){var n=t.children,i=t.isDisabled,r=t.innerProps;return be("div",ye({},ut(t,"singleValue",{"single-value":!0,"single-value--is-disabled":i}),r),n)},IC=SC,sn={ClearIndicator:$b,Control:Jb,DropdownIndicator:jb,DownChevron:M4,CrossIcon:hc,Group:tC,GroupHeading:eC,IndicatorsContainer:Fb,IndicatorSeparator:Gb,Input:aC,LoadingIndicator:Zb,Menu:vb,MenuList:yb,MenuPortal:Ab,LoadingMessage:Mb,NoOptionsMessage:Ib,MultiValue:pC,MultiValueContainer:dC,MultiValueLabel:fC,MultiValueRemove:hC,Option:CC,Placeholder:yC,SelectContainer:Rb,SingleValue:IC,ValueContainer:Pb},MC=function(t){return Ce(Ce({},sn),t.components)},ud=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function _C(e,t){return!!(e===t||ud(e)&&ud(t))}function AC(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!_C(e[n],t[n]))return!1;return!0}function EC(e,t){t===void 0&&(t=AC);var n=null;function i(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var s=e.apply(this,r);return n={lastResult:s,lastArgs:r,lastThis:this},s}return i.clear=function(){n=null},i}function RC(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var kC=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:RC},PC=function(t){return be("span",ye({css:kC},t))},dd=PC,LC={guidance:function(t){var n=t.isSearchable,i=t.isMulti,r=t.tabSelectsValue,o=t.context,s=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return s?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(i?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,i=t.label,r=i===void 0?"":i,o=t.labels,s=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return s?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(t){var n=t.context,i=t.focused,r=t.options,o=t.label,s=o===void 0?"":o,a=t.selectValue,l=t.isDisabled,c=t.isSelected,u=t.isAppleDevice,d=function(p,m){return p&&p.length?"".concat(p.indexOf(m)+1," of ").concat(p.length):""};if(n==="value"&&a)return"value ".concat(s," focused, ").concat(d(a,i),".");if(n==="menu"&&u){var f=l?" disabled":"",h="".concat(c?" selected":"").concat(f);return"".concat(s).concat(h,", ").concat(d(r,i),".")}return""},onFilter:function(t){var n=t.inputValue,i=t.resultsMessage;return"".concat(i).concat(n?" for search term "+n:"",".")}},FC=function(t){var n=t.ariaSelection,i=t.focusedOption,r=t.focusedValue,o=t.focusableOptions,s=t.isFocused,a=t.selectValue,l=t.selectProps,c=t.id,u=t.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,h=l.inputValue,g=l.isMulti,p=l.isOptionDisabled,m=l.isSearchable,C=l.menuIsOpen,y=l.options,x=l.screenReaderStatus,I=l.tabSelectsValue,w=l.isLoading,R=l["aria-label"],E=l["aria-live"],S=v.useMemo(function(){return Ce(Ce({},LC),d||{})},[d]),M=v.useMemo(function(){var k="";if(n&&S.onChange){var F=n.option,O=n.options,A=n.removedValue,L=n.removedValues,j=n.value,G=function(fe){return Array.isArray(fe)?null:fe},H=A||F||G(j),$=H?f(H):"",J=O||L||void 0,le=J?J.map(f):[],he=Ce({isDisabled:H&&p(H,a),label:$,labels:le},n);k=S.onChange(he)}return k},[n,S,p,a,f]),_=v.useMemo(function(){var k="",F=i||r,O=!!(i&&a&&a.includes(i));if(F&&S.onFocus){var A={focused:F,label:f(F),isDisabled:p(F,a),isSelected:O,options:o,context:F===i?"menu":"value",selectValue:a,isAppleDevice:u};k=S.onFocus(A)}return k},[i,r,f,p,S,o,a,u]),P=v.useMemo(function(){var k="";if(C&&y.length&&!w&&S.onFilter){var F=x({count:o.length});k=S.onFilter({inputValue:h,resultsMessage:F})}return k},[o,h,C,S,y,x,w]),N=(n==null?void 0:n.action)==="initial-input-focus",B=v.useMemo(function(){var k="";if(S.guidance){var F=r?"value":C?"menu":"input";k=S.guidance({"aria-label":R,context:F,isDisabled:i&&p(i,a),isMulti:g,isSearchable:m,tabSelectsValue:I,isInitialFocus:N})}return k},[R,i,r,g,p,m,C,S,a,I,N]),T=be(v.Fragment,null,be("span",{id:"aria-selection"},M),be("span",{id:"aria-focused"},_),be("span",{id:"aria-results"},P),be("span",{id:"aria-guidance"},B));return be(v.Fragment,null,be(dd,{id:c},N&&T),be(dd,{"aria-live":E,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!N&&T))},OC=FC,q0=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],NC=new RegExp("["+q0.map(function(e){return e.letters}).join("")+"]","g"),R4={};for(var J2=0;J2<q0.length;J2++)for(var U2=q0[J2],Q2=0;Q2<U2.letters.length;Q2++)R4[U2.letters[Q2]]=U2.base;var k4=function(t){return t.replace(NC,function(n){return R4[n]})},TC=EC(k4),fd=function(t){return t.replace(/^\s+|\s+$/g,"")},DC=function(t){return"".concat(t.label," ").concat(t.value)},VC=function(t){return function(n,i){if(n.data.__isNew__)return!0;var r=Ce({ignoreCase:!0,ignoreAccents:!0,stringify:DC,trim:!0,matchFrom:"any"},t),o=r.ignoreCase,s=r.ignoreAccents,a=r.stringify,l=r.trim,c=r.matchFrom,u=l?fd(i):i,d=l?fd(a(n)):a(n);return o&&(u=u.toLowerCase(),d=d.toLowerCase()),s&&(u=TC(u),d=k4(d)),c==="start"?d.substr(0,u.length)===u:d.indexOf(u)>-1}},jC=["innerRef"];function BC(e){var t=e.innerRef,n=Rn(e,jC),i=db(n,"onExited","in","enter","exit","appear");return be("input",ye({ref:t},i,{css:fc({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var $C=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function HC(e){var t=e.isEnabled,n=e.onBottomArrive,i=e.onBottomLeave,r=e.onTopArrive,o=e.onTopLeave,s=v.useRef(!1),a=v.useRef(!1),l=v.useRef(0),c=v.useRef(null),u=v.useCallback(function(m,C){if(c.current!==null){var y=c.current,x=y.scrollTop,I=y.scrollHeight,w=y.clientHeight,R=c.current,E=C>0,S=I-w-x,M=!1;S>C&&s.current&&(i&&i(m),s.current=!1),E&&a.current&&(o&&o(m),a.current=!1),E&&C>S?(n&&!s.current&&n(m),R.scrollTop=I,M=!0,s.current=!0):!E&&-C>x&&(r&&!a.current&&r(m),R.scrollTop=0,M=!0,a.current=!0),M&&$C(m)}},[n,i,r,o]),d=v.useCallback(function(m){u(m,m.deltaY)},[u]),f=v.useCallback(function(m){l.current=m.changedTouches[0].clientY},[]),h=v.useCallback(function(m){var C=l.current-m.changedTouches[0].clientY;u(m,C)},[u]),g=v.useCallback(function(m){if(m){var C=lb?{passive:!1}:!1;m.addEventListener("wheel",d,C),m.addEventListener("touchstart",f,C),m.addEventListener("touchmove",h,C)}},[h,f,d]),p=v.useCallback(function(m){m&&(m.removeEventListener("wheel",d,!1),m.removeEventListener("touchstart",f,!1),m.removeEventListener("touchmove",h,!1))},[h,f,d]);return v.useEffect(function(){if(t){var m=c.current;return g(m),function(){p(m)}}},[t,g,p]),function(m){c.current=m}}var hd=["boxSizing","height","overflow","paddingRight","position"],gd={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function pd(e){e.cancelable&&e.preventDefault()}function md(e){e.stopPropagation()}function bd(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Cd(){return"ontouchstart"in window||navigator.maxTouchPoints}var vd=!!(typeof window<"u"&&window.document&&window.document.createElement),Dr=0,er={capture:!1,passive:!1};function GC(e){var t=e.isEnabled,n=e.accountForScrollbars,i=n===void 0?!0:n,r=v.useRef({}),o=v.useRef(null),s=v.useCallback(function(l){if(vd){var c=document.body,u=c&&c.style;if(i&&hd.forEach(function(g){var p=u&&u[g];r.current[g]=p}),i&&Dr<1){var d=parseInt(r.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,h=window.innerWidth-f+d||0;Object.keys(gd).forEach(function(g){var p=gd[g];u&&(u[g]=p)}),u&&(u.paddingRight="".concat(h,"px"))}c&&Cd()&&(c.addEventListener("touchmove",pd,er),l&&(l.addEventListener("touchstart",bd,er),l.addEventListener("touchmove",md,er))),Dr+=1}},[i]),a=v.useCallback(function(l){if(vd){var c=document.body,u=c&&c.style;Dr=Math.max(Dr-1,0),i&&Dr<1&&hd.forEach(function(d){var f=r.current[d];u&&(u[d]=f)}),c&&Cd()&&(c.removeEventListener("touchmove",pd,er),l&&(l.removeEventListener("touchstart",bd,er),l.removeEventListener("touchmove",md,er)))}},[i]);return v.useEffect(function(){if(t){var l=o.current;return s(l),function(){a(l)}}},[t,s,a]),function(l){o.current=l}}function zC(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var WC=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},ZC=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:zC};function XC(e){var t=e.children,n=e.lockEnabled,i=e.captureEnabled,r=i===void 0?!0:i,o=e.onBottomArrive,s=e.onBottomLeave,a=e.onTopArrive,l=e.onTopLeave,c=HC({isEnabled:r,onBottomArrive:o,onBottomLeave:s,onTopArrive:a,onTopLeave:l}),u=GC({isEnabled:n}),d=function(h){c(h),u(h)};return be(v.Fragment,null,n&&be("div",{onClick:WC,css:ZC}),t(d))}function YC(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var JC=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:YC},UC=function(t){var n=t.name,i=t.onFocus;return be("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:i,css:JC,value:"",onChange:function(){}})},QC=UC;function gc(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function qC(){return gc(/^iPhone/i)}function P4(){return gc(/^Mac/i)}function KC(){return gc(/^iPad/i)||P4()&&navigator.maxTouchPoints>1}function ev(){return qC()||KC()}function tv(){return P4()||ev()}var nv=function(t){return t.label},L4=function(t){return t.label},F4=function(t){return t.value},iv=function(t){return!!t.isDisabled},rv={clearIndicator:Bb,container:Eb,control:Xb,dropdownIndicator:Vb,group:Qb,groupHeading:Kb,indicatorsContainer:Lb,indicatorSeparator:Hb,input:iC,loadingIndicator:Wb,loadingMessage:Sb,menu:mb,menuList:xb,menuPortal:_b,multiValue:lC,multiValueLabel:cC,multiValueRemove:uC,noOptionsMessage:wb,option:mC,placeholder:vC,singleValue:wC,valueContainer:kb},ov={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},sv=4,O4=4,av=38,lv=O4*2,cv={baseUnit:O4,controlHeight:av,menuGutter:lv},q2={borderRadius:sv,colors:ov,spacing:cv},uv={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ld(),captureMenuScroll:!ld(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:VC(),formatGroupLabel:nv,getOptionLabel:L4,getOptionValue:F4,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:iv,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!sb(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function xd(e,t,n,i){var r=D4(e,t,n),o=V4(e,t,n),s=T4(e,t),a=Ra(e,t);return{type:"option",data:t,isDisabled:r,isSelected:o,label:s,value:a,index:i}}function ea(e,t){return e.options.map(function(n,i){if("options"in n){var r=n.options.map(function(s,a){return xd(e,s,t,a)}).filter(function(s){return wd(e,s)});return r.length>0?{type:"group",data:n,options:r,index:i}:void 0}var o=xd(e,n,t,i);return wd(e,o)?o:void 0}).filter(cb)}function N4(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,cr(n.options.map(function(i){return i.data}))):t.push(n.data),t},[])}function yd(e,t){return e.reduce(function(n,i){return i.type==="group"?n.push.apply(n,cr(i.options.map(function(r){return{data:r.data,id:"".concat(t,"-").concat(i.index,"-").concat(r.index)}}))):n.push({data:i.data,id:"".concat(t,"-").concat(i.index)}),n},[])}function dv(e,t){return N4(ea(e,t))}function wd(e,t){var n=e.inputValue,i=n===void 0?"":n,r=t.data,o=t.isSelected,s=t.label,a=t.value;return(!B4(e)||!o)&&j4(e,{label:s,value:a,data:r},i)}function fv(e,t){var n=e.focusedValue,i=e.selectValue,r=i.indexOf(n);if(r>-1){var o=t.indexOf(n);if(o>-1)return n;if(r<t.length)return t[r]}return null}function hv(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var K2=function(t,n){var i,r=(i=t.find(function(o){return o.data===n}))===null||i===void 0?void 0:i.id;return r||null},T4=function(t,n){return t.getOptionLabel(n)},Ra=function(t,n){return t.getOptionValue(n)};function D4(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function V4(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var i=Ra(e,t);return n.some(function(r){return Ra(e,r)===i})}function j4(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var B4=function(t){var n=t.hideSelectedOptions,i=t.isMulti;return n===void 0?i:n},gv=1,pc=function(e){Z7(n,e);var t=J7(n);function n(i){var r;if(z7(this,n),r=t.call(this,i),r.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(l){r.controlRef=l},r.focusedOptionRef=null,r.getFocusedOptionRef=function(l){r.focusedOptionRef=l},r.menuListRef=null,r.getMenuListRef=function(l){r.menuListRef=l},r.inputRef=null,r.getInputRef=function(l){r.inputRef=l},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(l,c){var u=r.props,d=u.onChange,f=u.name;c.name=f,r.ariaOnChange(l,c),d(l,c)},r.setValue=function(l,c,u){var d=r.props,f=d.closeMenuOnSelect,h=d.isMulti,g=d.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:g}),f&&(r.setState({inputIsHiddenAfterUpdate:!h}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(l,{action:c,option:u})},r.selectOption=function(l){var c=r.props,u=c.blurInputOnSelect,d=c.isMulti,f=c.name,h=r.state.selectValue,g=d&&r.isOptionSelected(l,h),p=r.isOptionDisabled(l,h);if(g){var m=r.getOptionValue(l);r.setValue(h.filter(function(C){return r.getOptionValue(C)!==m}),"deselect-option",l)}else if(!p)d?r.setValue([].concat(cr(h),[l]),"select-option",l):r.setValue(l,"select-option");else{r.ariaOnChange(l,{action:"select-option",option:l,name:f});return}u&&r.blurInput()},r.removeValue=function(l){var c=r.props.isMulti,u=r.state.selectValue,d=r.getOptionValue(l),f=u.filter(function(g){return r.getOptionValue(g)!==d}),h=Yr(c,f,f[0]||null);r.onChange(h,{action:"remove-value",removedValue:l}),r.focusInput()},r.clearValue=function(){var l=r.state.selectValue;r.onChange(Yr(r.props.isMulti,[],null),{action:"clear",removedValues:l})},r.popValue=function(){var l=r.props.isMulti,c=r.state.selectValue,u=c[c.length-1],d=c.slice(0,c.length-1),f=Yr(l,d,d[0]||null);u&&r.onChange(f,{action:"pop-value",removedValue:u})},r.getFocusedOptionId=function(l){return K2(r.state.focusableOptionsWithIds,l)},r.getFocusableOptionsWithIds=function(){return yd(ea(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return tb.apply(void 0,[r.props.classNamePrefix].concat(c))},r.getOptionLabel=function(l){return T4(r.props,l)},r.getOptionValue=function(l){return Ra(r.props,l)},r.getStyles=function(l,c){var u=r.props.unstyled,d=rv[l](c,u);d.boxSizing="border-box";var f=r.props.styles[l];return f?f(d,c):d},r.getClassNames=function(l,c){var u,d;return(u=(d=r.props.classNames)[l])===null||u===void 0?void 0:u.call(d,c)},r.getElementId=function(l){return"".concat(r.state.instancePrefix,"-").concat(l)},r.getComponents=function(){return MC(r.props)},r.buildCategorizedOptions=function(){return ea(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return N4(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(l,c){r.setState({ariaSelection:Ce({value:l},c)})},r.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(l){r.blockOptionHover=!1},r.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&r.onMenuClose():c&&r.openMenu("first"):(c&&(r.openAfterFocus=!0),r.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},r.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!r.props.isDisabled){var c=r.props,u=c.isMulti,d=c.menuIsOpen;r.focusInput(),d?(r.setState({inputIsHiddenAfterUpdate:!u}),r.onMenuClose()):r.openMenu("first"),l.preventDefault()}},r.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(r.clearValue(),l.preventDefault(),r.openAfterFocus=!1,l.type==="touchend"?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(l){typeof r.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&C2(l.target)&&r.props.onMenuClose():typeof r.props.closeMenuOnScroll=="function"&&r.props.closeMenuOnScroll(l)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(l){var c=l.touches,u=c&&c.item(0);u&&(r.initialTouchX=u.clientX,r.initialTouchY=u.clientY,r.userIsDragging=!1)},r.onTouchMove=function(l){var c=l.touches,u=c&&c.item(0);if(u){var d=Math.abs(u.clientX-r.initialTouchX),f=Math.abs(u.clientY-r.initialTouchY),h=5;r.userIsDragging=d>h||f>h}},r.onTouchEnd=function(l){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(l.target)&&r.menuListRef&&!r.menuListRef.contains(l.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(l){r.userIsDragging||r.onControlMouseDown(l)},r.onClearIndicatorTouchEnd=function(l){r.userIsDragging||r.onClearIndicatorMouseDown(l)},r.onDropdownIndicatorTouchEnd=function(l){r.userIsDragging||r.onDropdownIndicatorMouseDown(l)},r.handleInputChange=function(l){var c=r.props.inputValue,u=l.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(u,{action:"input-change",prevInputValue:c}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(l){r.props.onFocus&&r.props.onFocus(l),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(l){var c=r.props.inputValue;if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(l),r.onInputChange("",{action:"input-blur",prevInputValue:c}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(l){if(!(r.blockOptionHover||r.state.focusedOption===l)){var c=r.getFocusableOptions(),u=c.indexOf(l);r.setState({focusedOption:l,focusedOptionId:u>-1?r.getFocusedOptionId(l):null})}},r.shouldHideSelectedOptions=function(){return B4(r.props)},r.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),r.focus()},r.onKeyDown=function(l){var c=r.props,u=c.isMulti,d=c.backspaceRemovesValue,f=c.escapeClearsValue,h=c.inputValue,g=c.isClearable,p=c.isDisabled,m=c.menuIsOpen,C=c.onKeyDown,y=c.tabSelectsValue,x=c.openMenuOnFocus,I=r.state,w=I.focusedOption,R=I.focusedValue,E=I.selectValue;if(!p&&!(typeof C=="function"&&(C(l),l.defaultPrevented))){switch(r.blockOptionHover=!0,l.key){case"ArrowLeft":if(!u||h)return;r.focusValue("previous");break;case"ArrowRight":if(!u||h)return;r.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(R)r.removeValue(R);else{if(!d)return;u?r.popValue():g&&r.clearValue()}break;case"Tab":if(r.isComposing||l.shiftKey||!m||!y||!w||x&&r.isOptionSelected(w,E))return;r.selectOption(w);break;case"Enter":if(l.keyCode===229)break;if(m){if(!w||r.isComposing)return;r.selectOption(w);break}return;case"Escape":m?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:h}),r.onMenuClose()):g&&f&&r.clearValue();break;case" ":if(h)return;if(!m){r.openMenu("first");break}if(!w)return;r.selectOption(w);break;case"ArrowUp":m?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":m?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!m)return;r.focusOption("pageup");break;case"PageDown":if(!m)return;r.focusOption("pagedown");break;case"Home":if(!m)return;r.focusOption("first");break;case"End":if(!m)return;r.focusOption("last");break;default:return}l.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++gv),r.state.selectValue=Aa(i.value),i.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),s=r.buildFocusableOptions(),a=s.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=s[a],r.state.focusedOptionId=K2(o,s[a])}return r}return W7(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&ad(this.menuListRef,this.focusedOptionRef),tv()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(r){var o=this.props,s=o.isDisabled,a=o.menuIsOpen,l=this.state.isFocused;(l&&!s&&r.isDisabled||l&&a&&!r.menuIsOpen)&&this.focusInput(),l&&s&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!s&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(ad(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(r,o){this.props.onInputChange(r,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var o=this,s=this.state,a=s.selectValue,l=s.isFocused,c=this.buildFocusableOptions(),u=r==="first"?0:c.length-1;if(!this.props.isMulti){var d=c.indexOf(a[0]);d>-1&&(u=d)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[u],focusedOptionId:this.getFocusedOptionId(c[u])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(r){var o=this.state,s=o.selectValue,a=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=s.indexOf(a);a||(l=-1);var c=s.length-1,u=-1;if(s.length){switch(r){case"previous":l===0?u=0:l===-1?u=c:u=l-1;break;case"next":l>-1&&l<c&&(u=l+1);break}this.setState({inputIsHidden:u!==-1,focusedValue:s[u]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,s=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var l=0,c=a.indexOf(s);s||(c=-1),r==="up"?l=c>0?c-1:a.length-1:r==="down"?l=(c+1)%a.length:r==="pageup"?(l=c-o,l<0&&(l=0)):r==="pagedown"?(l=c+o,l>a.length-1&&(l=a.length-1)):r==="last"&&(l=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(a[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(q2):Ce(Ce({},q2),this.props.theme):q2}},{key:"getCommonProps",value:function(){var r=this.clearValue,o=this.cx,s=this.getStyles,a=this.getClassNames,l=this.getValue,c=this.selectOption,u=this.setValue,d=this.props,f=d.isMulti,h=d.isRtl,g=d.options,p=this.hasValue();return{clearValue:r,cx:o,getStyles:s,getClassNames:a,getValue:l,hasValue:p,isMulti:f,isRtl:h,options:g,selectOption:c,selectProps:d,setValue:u,theme:this.getTheme()}}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var r=this.props,o=r.isClearable,s=r.isMulti;return o===void 0?s:o}},{key:"isOptionDisabled",value:function(r,o){return D4(this.props,r,o)}},{key:"isOptionSelected",value:function(r,o){return V4(this.props,r,o)}},{key:"filterOption",value:function(r,o){return j4(this.props,r,o)}},{key:"formatOptionLabel",value:function(r,o){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(r,{context:o,inputValue:s,selectValue:a})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var r=this.props,o=r.isDisabled,s=r.isSearchable,a=r.inputId,l=r.inputValue,c=r.tabIndex,u=r.form,d=r.menuIsOpen,f=r.required,h=this.getComponents(),g=h.Input,p=this.state,m=p.inputIsHidden,C=p.ariaSelection,y=this.commonProps,x=a||this.getElementId("input"),I=Ce(Ce(Ce({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(C==null?void 0:C.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?W.createElement(g,ye({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:x,innerRef:this.getInputRef,isDisabled:o,isHidden:m,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:u,type:"text",value:l},I)):W.createElement(BC,ye({id:x,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:_a,onFocus:this.onInputFocus,disabled:o,tabIndex:c,inputMode:"none",form:u,value:""},I))}},{key:"renderPlaceholderOrValue",value:function(){var r=this,o=this.getComponents(),s=o.MultiValue,a=o.MultiValueContainer,l=o.MultiValueLabel,c=o.MultiValueRemove,u=o.SingleValue,d=o.Placeholder,f=this.commonProps,h=this.props,g=h.controlShouldRenderValue,p=h.isDisabled,m=h.isMulti,C=h.inputValue,y=h.placeholder,x=this.state,I=x.selectValue,w=x.focusedValue,R=x.isFocused;if(!this.hasValue()||!g)return C?null:W.createElement(d,ye({},f,{key:"placeholder",isDisabled:p,isFocused:R,innerProps:{id:this.getElementId("placeholder")}}),y);if(m)return I.map(function(S,M){var _=S===w,P="".concat(r.getOptionLabel(S),"-").concat(r.getOptionValue(S));return W.createElement(s,ye({},f,{components:{Container:a,Label:l,Remove:c},isFocused:_,isDisabled:p,key:P,index:M,removeProps:{onClick:function(){return r.removeValue(S)},onTouchEnd:function(){return r.removeValue(S)},onMouseDown:function(B){B.preventDefault()}},data:S}),r.formatOptionLabel(S,"value"))});if(C)return null;var E=I[0];return W.createElement(u,ye({},f,{data:E,isDisabled:p}),this.formatOptionLabel(E,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),o=r.ClearIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,c=a.isLoading,u=this.state.isFocused;if(!this.isClearable()||!o||l||!this.hasValue()||c)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return W.createElement(o,ye({},s,{innerProps:d,isFocused:u}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),o=r.LoadingIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,c=a.isLoading,u=this.state.isFocused;if(!o||!c)return null;var d={"aria-hidden":"true"};return W.createElement(o,ye({},s,{innerProps:d,isDisabled:l,isFocused:u}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator,s=r.IndicatorSeparator;if(!o||!s)return null;var a=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused;return W.createElement(s,ye({},a,{isDisabled:l,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator;if(!o)return null;var s=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return W.createElement(o,ye({},s,{innerProps:c,isDisabled:a,isFocused:l}))}},{key:"renderMenu",value:function(){var r=this,o=this.getComponents(),s=o.Group,a=o.GroupHeading,l=o.Menu,c=o.MenuList,u=o.MenuPortal,d=o.LoadingMessage,f=o.NoOptionsMessage,h=o.Option,g=this.commonProps,p=this.state.focusedOption,m=this.props,C=m.captureMenuScroll,y=m.inputValue,x=m.isLoading,I=m.loadingMessage,w=m.minMenuHeight,R=m.maxMenuHeight,E=m.menuIsOpen,S=m.menuPlacement,M=m.menuPosition,_=m.menuPortalTarget,P=m.menuShouldBlockScroll,N=m.menuShouldScrollIntoView,B=m.noOptionsMessage,T=m.onMenuScrollToTop,k=m.onMenuScrollToBottom;if(!E)return null;var F=function($,J){var le=$.type,he=$.data,Oe=$.isDisabled,fe=$.isSelected,ge=$.label,we=$.value,ce=p===he,z=Oe?void 0:function(){return r.onOptionHover(he)},Ne=Oe?void 0:function(){return r.selectOption(he)},ie="".concat(r.getElementId("option"),"-").concat(J),re={id:ie,onClick:Ne,onMouseMove:z,onMouseOver:z,tabIndex:-1,role:"option","aria-selected":r.state.isAppleDevice?void 0:fe};return W.createElement(h,ye({},g,{innerProps:re,data:he,isDisabled:Oe,isSelected:fe,key:ie,label:ge,type:le,value:we,isFocused:ce,innerRef:ce?r.getFocusedOptionRef:void 0}),r.formatOptionLabel($.data,"menu"))},O;if(this.hasOptions())O=this.getCategorizedOptions().map(function(H){if(H.type==="group"){var $=H.data,J=H.options,le=H.index,he="".concat(r.getElementId("group"),"-").concat(le),Oe="".concat(he,"-heading");return W.createElement(s,ye({},g,{key:he,data:$,options:J,Heading:a,headingProps:{id:Oe,data:H.data},label:r.formatGroupLabel(H.data)}),H.options.map(function(fe){return F(fe,"".concat(le,"-").concat(fe.index))}))}else if(H.type==="option")return F(H,"".concat(H.index))});else if(x){var A=I({inputValue:y});if(A===null)return null;O=W.createElement(d,g,A)}else{var L=B({inputValue:y});if(L===null)return null;O=W.createElement(f,g,L)}var j={minMenuHeight:w,maxMenuHeight:R,menuPlacement:S,menuPosition:M,menuShouldScrollIntoView:N},G=W.createElement(bb,ye({},g,j),function(H){var $=H.ref,J=H.placerProps,le=J.placement,he=J.maxHeight;return W.createElement(l,ye({},g,j,{innerRef:$,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:x,placement:le}),W.createElement(XC,{captureEnabled:C,onTopArrive:T,onBottomArrive:k,lockEnabled:P},function(Oe){return W.createElement(c,ye({},g,{innerRef:function(ge){r.getMenuListRef(ge),Oe(ge)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:r.getElementId("listbox")},isLoading:x,maxHeight:he,focusedOption:p}),O)}))});return _||M==="fixed"?W.createElement(u,ye({},g,{appendTo:_,controlElement:this.controlRef,menuPlacement:S,menuPosition:M}),G):G}},{key:"renderFormField",value:function(){var r=this,o=this.props,s=o.delimiter,a=o.isDisabled,l=o.isMulti,c=o.name,u=o.required,d=this.state.selectValue;if(u&&!this.hasValue()&&!a)return W.createElement(QC,{name:c,onFocus:this.onValueInputFocus});if(!(!c||a))if(l)if(s){var f=d.map(function(p){return r.getOptionValue(p)}).join(s);return W.createElement("input",{name:c,type:"hidden",value:f})}else{var h=d.length>0?d.map(function(p,m){return W.createElement("input",{key:"i-".concat(m),name:c,type:"hidden",value:r.getOptionValue(p)})}):W.createElement("input",{name:c,type:"hidden",value:""});return W.createElement("div",null,h)}else{var g=d[0]?this.getOptionValue(d[0]):"";return W.createElement("input",{name:c,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,o=this.state,s=o.ariaSelection,a=o.focusedOption,l=o.focusedValue,c=o.isFocused,u=o.selectValue,d=this.getFocusableOptions();return W.createElement(OC,ye({},r,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:a,focusedValue:l,isFocused:c,selectValue:u,focusableOptions:d,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var r=this.getComponents(),o=r.Control,s=r.IndicatorsContainer,a=r.SelectContainer,l=r.ValueContainer,c=this.props,u=c.className,d=c.id,f=c.isDisabled,h=c.menuIsOpen,g=this.state.isFocused,p=this.commonProps=this.getCommonProps();return W.createElement(a,ye({},p,{className:u,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:g}),this.renderLiveRegion(),W.createElement(o,ye({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:g,menuIsOpen:h}),W.createElement(l,ye({},p,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),W.createElement(s,ye({},p,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,o){var s=o.prevProps,a=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,c=o.ariaSelection,u=o.isFocused,d=o.prevWasFocused,f=o.instancePrefix,h=r.options,g=r.value,p=r.menuIsOpen,m=r.inputValue,C=r.isMulti,y=Aa(g),x={};if(s&&(g!==s.value||h!==s.options||p!==s.menuIsOpen||m!==s.inputValue)){var I=p?dv(r,y):[],w=p?yd(ea(r,y),"".concat(f,"-option")):[],R=a?fv(o,y):null,E=hv(o,I),S=K2(w,E);x={selectValue:y,focusedOption:E,focusedOptionId:S,focusableOptionsWithIds:w,focusedValue:R,clearFocusValueOnUpdate:!1}}var M=l!=null&&r!==s?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},_=c,P=u&&d;return u&&!P&&(_={value:Yr(C,y,y[0]||null),options:y,action:"initial-input-focus"},P=!d),(c==null?void 0:c.action)==="initial-input-focus"&&(_=null),Ce(Ce(Ce({},x),M),{},{prevProps:r,ariaSelection:_,prevWasFocused:P})}}]),n}(v.Component);pc.defaultProps=uv;var pv=v.forwardRef(function(e,t){var n=i4(e);return W.createElement(pc,ye({ref:t},n))}),$4=pv,mv=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Sd=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=String(t).toLowerCase(),o=String(i.getOptionValue(n)).toLowerCase(),s=String(i.getOptionLabel(n)).toLowerCase();return o===r||s===r},e0={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,i,r){return!(!t||n.some(function(o){return Sd(t,o,r)})||i.some(function(o){return Sd(t,o,r)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}};function bv(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,i=e.createOptionPosition,r=i===void 0?"last":i,o=e.formatCreateLabel,s=o===void 0?e0.formatCreateLabel:o,a=e.isValidNewOption,l=a===void 0?e0.isValidNewOption:a,c=e.getNewOptionData,u=c===void 0?e0.getNewOptionData:c,d=e.onCreateOption,f=e.options,h=f===void 0?[]:f,g=e.onChange,p=Rn(e,mv),m=p.getOptionValue,C=m===void 0?F4:m,y=p.getOptionLabel,x=y===void 0?L4:y,I=p.inputValue,w=p.isLoading,R=p.isMulti,E=p.value,S=p.name,M=v.useMemo(function(){return l(I,Aa(E),h,{getOptionValue:C,getOptionLabel:x})?u(I,s(I)):void 0},[s,u,x,C,I,l,h,E]),_=v.useMemo(function(){return(n||!w)&&M?r==="first"?[M].concat(cr(h)):[].concat(cr(h),[M]):h},[n,r,w,M,h]),P=v.useCallback(function(N,B){if(B.action!=="select-option")return g(N,B);var T=Array.isArray(N)?N:[N];if(T[T.length-1]===M){if(d)d(I);else{var k=u(I,I),F={action:"create-option",name:S,option:k};g(Yr(R,[].concat(cr(Aa(E)),[k]),k),F)}return}g(N,B)},[u,I,R,S,M,d,g,E]);return Ce(Ce({},p),{},{options:_,onChange:P})}var Cv=v.forwardRef(function(e,t){var n=i4(e),i=bv(n);return W.createElement(pc,ye({ref:t},i))}),vv=Cv;const Po=({label:e,placeholder:t,options:n,selectedOptions:i,handleChange:r,className:o="",creatable:s=!1,disabled:a,isMulti:l=!0,customStyles:c,menuPosition:u="fixed",alwaysShowPlaceholder:d=!1,isClearable:f=!1,selectInputClassname:h="",closeMenuOnSelect:g=!0,customOptionRenderer:p,menuPortalTarget:m,onInputChange:C,isLoading:y=!1,noOptionsMessage:x,includeApply:I,onApply:w})=>{const R=s?vv:$4,[E,S]=v.useState(!1),M=v.useRef(null);v.useEffect(()=>{if(g)return;const A=L=>{var j;(j=M.current)!=null&&j.contains(L.target)?S(G=>!G):S(!1)};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[g]);const _=[...i,...n.filter(A=>!i.some(L=>L.value===A.value))],P=A=>b.jsxs(sn.Control,{...A,children:[!A.getValue().length&&b.jsx(sn.Placeholder,{...A,children:A.selectProps.placeholder}),A.children]}),N=A=>{const{data:L,isSelected:j}=A;if(p){const G=p;return b.jsx(sn.Option,{...A,children:b.jsx(G,{data:L,isSelected:j})})}return I?b.jsx(sn.Option,{...A,children:b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("input",{type:"checkbox",checked:j,readOnly:!0,style:{accentColor:"var(--brand-orange)",marginRight:8}}),L.icon&&b.jsx("span",{className:"",children:L.icon}),b.jsx("span",{children:L.label})]})}):b.jsx(sn.Option,{...A,children:b.jsxs("div",{className:"flex items-center flex-1 gap-2",children:[L.icon&&b.jsx("span",{className:"option-icon",children:L.icon}),b.jsx("span",{children:L.label})]})})},B=A=>{const{data:L}=A;if(p){const j=p;return b.jsx(sn.SingleValue,{...A,children:b.jsx(j,{data:L})})}return b.jsx(sn.SingleValue,{...A,children:b.jsx("div",{className:"flex items-center gap-2",children:b.jsx("span",{children:L.label})})})},T=A=>{const{data:L}=A;return b.jsx(sn.MultiValue,{...A,children:b.jsx("div",{className:"flex items-center gap-1",children:b.jsx("span",{children:L.label})})})},k=A=>{const{children:L}=A;return b.jsxs(sn.Menu,{...A,children:[L,I&&b.jsx("div",{style:{padding:"8px"},children:b.jsx("button",{onClick:j=>{j.stopPropagation(),w==null||w(),S(!1)},style:{width:"100%",padding:"8px",background:"var(--brand-orange)",color:"white",border:"none",cursor:"pointer",borderRadius:"4px"},onMouseEnter:j=>j.currentTarget.style.opacity="0.9",onMouseLeave:j=>j.currentTarget.style.opacity="1",children:"Apply"})})]})},F=A=>b.jsx(sn.DropdownIndicator,{...A}),O=()=>d?{Control:P,SingleValue:A=>A.selectProps.menuIsOpen?b.jsx(B,{...A}):b.jsx("div",{style:{position:"absolute",left:"10px"},children:t}),Option:N,MultiValue:T,DropdownIndicator:F,Menu:k}:{Option:N,SingleValue:B,MultiValue:T,DropdownIndicator:F,Menu:k};return b.jsxs("div",{ref:M,className:`${o} flex flex-col gap-1`,children:[e&&b.jsx("label",{className:"block text-sm font-medium",style:{color:"var(--text-color)"},children:e}),b.jsx(R,{isMulti:l,isClearable:f,value:i,onChange:r,options:_,placeholder:t,isDisabled:a,className:`${h} react-select-container w-full text-sm`,classNamePrefix:"react-select",menuPosition:u,menuPortalTarget:m,components:O(),...!g&&{menuIsOpen:E},onInputChange:C,isLoading:y,noOptionsMessage:x,styles:{control:(A,L)=>({...A,borderColor:L.isFocused?"var(--brand-orange)":"var(--border-color)",borderRadius:"0.25rem",cursor:"pointer",backgroundColor:"var(--bg-color)",color:"var(--text-color)",boxShadow:L.isFocused?"0 0 0 1px var(--brand-orange)":"none",":hover":{borderColor:"var(--brand-orange)"}}),input:A=>({...A,color:"var(--text-color)",boxShadow:"none",border:"none"}),singleValue:A=>({...A,color:"var(--text-color)"}),multiValue:A=>({...A,backgroundColor:"var(--brand-light)",borderRadius:"0.25rem"}),multiValueLabel:A=>({...A,color:"var(--brand-dark)"}),multiValueRemove:A=>({...A,color:"var(--brand-dark)",cursor:"pointer",":hover":{backgroundColor:"var(--brand-orange)",color:"white"}}),placeholder:A=>({...A,color:"var(--secondary-text-color)"}),option:(A,L)=>({...A,backgroundColor:L.isSelected?"var(--brand-orange)":L.isFocused?"var(--hover-bg-color)":"var(--bg-color)",color:L.isSelected?"white":"var(--text-color)",cursor:"pointer",":active":{backgroundColor:"var(--brand-orange)"}}),menu:A=>({...A,backgroundColor:"var(--bg-color)",color:"var(--text-color)",border:"1px solid var(--border-color)",zIndex:9999}),dropdownIndicator:A=>({...A,cursor:"pointer",color:"var(--secondary-text-color)",":hover":{color:"var(--brand-orange)"}}),clearIndicator:A=>({...A,cursor:"pointer",color:"var(--secondary-text-color)",":hover":{color:"var(--brand-orange)"}}),indicatorSeparator:A=>({...A,backgroundColor:"var(--border-color)"}),...c},...s&&{formatCreateLabel:A=>A.trim()?`Create "${A}"`:null,isValidNewOption:A=>A.trim().length>0,noOptionsMessage:()=>`Type to create a new ${e==null?void 0:e.toLowerCase()}`}})]})};/**
41
+ * table-core
42
+ *
43
+ * Copyright (c) TanStack
44
+ *
45
+ * This source code is licensed under the MIT license found in the
46
+ * LICENSE.md file in the root directory of this source tree.
47
+ *
48
+ * @license MIT
49
+ */function Kn(e,t){return typeof e=="function"?e(t):e}function Wt(e,t){return n=>{t.setState(i=>({...i,[e]:Kn(n,i[e])}))}}function v2(e){return e instanceof Function}function xv(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function yv(e,t){const n=[],i=r=>{r.forEach(o=>{n.push(o);const s=t(o);s!=null&&s.length&&i(s)})};return i(e),n}function Me(e,t,n){let i=[],r;return o=>{let s;n.key&&n.debug&&(s=Date.now());const a=e(o);if(!(a.length!==i.length||a.some((u,d)=>i[d]!==u)))return r;i=a;let c;if(n.key&&n.debug&&(c=Date.now()),r=t(...a),n==null||n.onChange==null||n.onChange(r),n.key&&n.debug&&n!=null&&n.debug()){const u=Math.round((Date.now()-s)*100)/100,d=Math.round((Date.now()-c)*100)/100,f=d/16,h=(g,p)=>{for(g=String(g);g.length<p;)g=" "+g;return g};console.info(`%c⏱ ${h(d,5)} /${h(u,5)} ms`,`
50
+ font-size: .6rem;
51
+ font-weight: bold;
52
+ color: hsl(${Math.max(0,Math.min(120-120*f,120))}deg 100% 31%);`,n==null?void 0:n.key)}return r}}function _e(e,t,n,i){return{debug:()=>{var r;return(r=e==null?void 0:e.debugAll)!=null?r:e[t]},key:process.env.NODE_ENV==="development"&&n,onChange:i}}function wv(e,t,n,i){const r=()=>{var s;return(s=o.getValue())!=null?s:e.options.renderFallbackValue},o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(i),renderValue:r,getContext:Me(()=>[e,n,t,o],(s,a,l,c)=>({table:s,column:a,row:l,cell:c,getValue:c.getValue,renderValue:c.renderValue}),_e(e.options,"debugCells","cell.getContext"))};return e._features.forEach(s=>{s.createCell==null||s.createCell(o,n,t,e)},{}),o}function Sv(e,t,n,i){var r,o;const a={...e._getDefaultColumnDef(),...t},l=a.accessorKey;let c=(r=(o=a.id)!=null?o:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?r:typeof a.header=="string"?a.header:void 0,u;if(a.accessorFn?u=a.accessorFn:l&&(l.includes(".")?u=f=>{let h=f;for(const p of l.split(".")){var g;h=(g=h)==null?void 0:g[p],process.env.NODE_ENV!=="production"&&h===void 0&&console.warn(`"${p}" in deeply nested key "${l}" returned undefined.`)}return h}:u=f=>f[a.accessorKey]),!c)throw process.env.NODE_ENV!=="production"?new Error(a.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let d={id:`${String(c)}`,accessorFn:u,parent:i,depth:n,columnDef:a,columns:[],getFlatColumns:Me(()=>[!0],()=>{var f;return[d,...(f=d.columns)==null?void 0:f.flatMap(h=>h.getFlatColumns())]},_e(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:Me(()=>[e._getOrderColumnsFn()],f=>{var h;if((h=d.columns)!=null&&h.length){let g=d.columns.flatMap(p=>p.getLeafColumns());return f(g)}return[d]},_e(e.options,"debugColumns","column.getLeafColumns"))};for(const f of e._features)f.createColumn==null||f.createColumn(d,e);return d}const It="debugHeaders";function Id(e,t,n){var i;let o={id:(i=n.id)!=null?i:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],a=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(a),s.push(l)};return a(o),s},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(s=>{s.createHeader==null||s.createHeader(o,e)}),o}const Iv={createTable:e=>{e.getHeaderGroups=Me(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,i,r)=>{var o,s;const a=(o=i==null?void 0:i.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?o:[],l=(s=r==null?void 0:r.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?s:[],c=n.filter(d=>!(i!=null&&i.includes(d.id))&&!(r!=null&&r.includes(d.id)));return bs(t,[...a,...c,...l],e)},_e(e.options,It,"getHeaderGroups")),e.getCenterHeaderGroups=Me(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,i,r)=>(n=n.filter(o=>!(i!=null&&i.includes(o.id))&&!(r!=null&&r.includes(o.id))),bs(t,n,e,"center")),_e(e.options,It,"getCenterHeaderGroups")),e.getLeftHeaderGroups=Me(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,i)=>{var r;const o=(r=i==null?void 0:i.map(s=>n.find(a=>a.id===s)).filter(Boolean))!=null?r:[];return bs(t,o,e,"left")},_e(e.options,It,"getLeftHeaderGroups")),e.getRightHeaderGroups=Me(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,i)=>{var r;const o=(r=i==null?void 0:i.map(s=>n.find(a=>a.id===s)).filter(Boolean))!=null?r:[];return bs(t,o,e,"right")},_e(e.options,It,"getRightHeaderGroups")),e.getFooterGroups=Me(()=>[e.getHeaderGroups()],t=>[...t].reverse(),_e(e.options,It,"getFooterGroups")),e.getLeftFooterGroups=Me(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),_e(e.options,It,"getLeftFooterGroups")),e.getCenterFooterGroups=Me(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),_e(e.options,It,"getCenterFooterGroups")),e.getRightFooterGroups=Me(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),_e(e.options,It,"getRightFooterGroups")),e.getFlatHeaders=Me(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),_e(e.options,It,"getFlatHeaders")),e.getLeftFlatHeaders=Me(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),_e(e.options,It,"getLeftFlatHeaders")),e.getCenterFlatHeaders=Me(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),_e(e.options,It,"getCenterFlatHeaders")),e.getRightFlatHeaders=Me(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),_e(e.options,It,"getRightFlatHeaders")),e.getCenterLeafHeaders=Me(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var i;return!((i=n.subHeaders)!=null&&i.length)}),_e(e.options,It,"getCenterLeafHeaders")),e.getLeftLeafHeaders=Me(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var i;return!((i=n.subHeaders)!=null&&i.length)}),_e(e.options,It,"getLeftLeafHeaders")),e.getRightLeafHeaders=Me(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var i;return!((i=n.subHeaders)!=null&&i.length)}),_e(e.options,It,"getRightLeafHeaders")),e.getLeafHeaders=Me(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,i)=>{var r,o,s,a,l,c;return[...(r=(o=t[0])==null?void 0:o.headers)!=null?r:[],...(s=(a=n[0])==null?void 0:a.headers)!=null?s:[],...(l=(c=i[0])==null?void 0:c.headers)!=null?l:[]].map(u=>u.getLeafHeaders()).flat()},_e(e.options,It,"getLeafHeaders"))}};function bs(e,t,n,i){var r,o;let s=0;const a=function(f,h){h===void 0&&(h=1),s=Math.max(s,h),f.filter(g=>g.getIsVisible()).forEach(g=>{var p;(p=g.columns)!=null&&p.length&&a(g.columns,h+1)},0)};a(e);let l=[];const c=(f,h)=>{const g={depth:h,id:[i,`${h}`].filter(Boolean).join("_"),headers:[]},p=[];f.forEach(m=>{const C=[...p].reverse()[0],y=m.column.depth===g.depth;let x,I=!1;if(y&&m.column.parent?x=m.column.parent:(x=m.column,I=!0),C&&(C==null?void 0:C.column)===x)C.subHeaders.push(m);else{const w=Id(n,x,{id:[i,h,x.id,m==null?void 0:m.id].filter(Boolean).join("_"),isPlaceholder:I,placeholderId:I?`${p.filter(R=>R.column===x).length}`:void 0,depth:h,index:p.length});w.subHeaders.push(m),p.push(w)}g.headers.push(m),m.headerGroup=g}),l.push(g),h>0&&c(p,h-1)},u=t.map((f,h)=>Id(n,f,{depth:s,index:h}));c(u,s-1),l.reverse();const d=f=>f.filter(g=>g.column.getIsVisible()).map(g=>{let p=0,m=0,C=[0];g.subHeaders&&g.subHeaders.length?(C=[],d(g.subHeaders).forEach(x=>{let{colSpan:I,rowSpan:w}=x;p+=I,C.push(w)})):p=1;const y=Math.min(...C);return m=m+y,g.colSpan=p,g.rowSpan=m,{colSpan:p,rowSpan:m}});return d((r=(o=l[0])==null?void 0:o.headers)!=null?r:[]),l}const Mv=(e,t,n,i,r,o,s)=>{let a={id:t,index:i,original:n,depth:r,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(a._valuesCache.hasOwnProperty(l))return a._valuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return a._valuesCache[l]=c.accessorFn(a.original,i),a._valuesCache[l]},getUniqueValues:l=>{if(a._uniqueValuesCache.hasOwnProperty(l))return a._uniqueValuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return c.columnDef.getUniqueValues?(a._uniqueValuesCache[l]=c.columnDef.getUniqueValues(a.original,i),a._uniqueValuesCache[l]):(a._uniqueValuesCache[l]=[a.getValue(l)],a._uniqueValuesCache[l])},renderValue:l=>{var c;return(c=a.getValue(l))!=null?c:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>yv(a.subRows,l=>l.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let l=[],c=a;for(;;){const u=c.getParentRow();if(!u)break;l.push(u),c=u}return l.reverse()},getAllCells:Me(()=>[e.getAllLeafColumns()],l=>l.map(c=>wv(e,a,c,c.id)),_e(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:Me(()=>[a.getAllCells()],l=>l.reduce((c,u)=>(c[u.column.id]=u,c),{}),_e(e.options,"debugRows","getAllCellsByColumnId"))};for(let l=0;l<e._features.length;l++){const c=e._features[l];c==null||c.createRow==null||c.createRow(a,e)}return a},_v={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},H4=(e,t,n)=>{var i,r;const o=n==null||(i=n.toString())==null?void 0:i.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(o))};H4.autoRemove=e=>un(e);const G4=(e,t,n)=>{var i;return!!(!((i=e.getValue(t))==null||(i=i.toString())==null)&&i.includes(n))};G4.autoRemove=e=>un(e);const z4=(e,t,n)=>{var i;return((i=e.getValue(t))==null||(i=i.toString())==null?void 0:i.toLowerCase())===(n==null?void 0:n.toLowerCase())};z4.autoRemove=e=>un(e);const W4=(e,t,n)=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(n)};W4.autoRemove=e=>un(e);const Z4=(e,t,n)=>!n.some(i=>{var r;return!((r=e.getValue(t))!=null&&r.includes(i))});Z4.autoRemove=e=>un(e)||!(e!=null&&e.length);const X4=(e,t,n)=>n.some(i=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(i)});X4.autoRemove=e=>un(e)||!(e!=null&&e.length);const Y4=(e,t,n)=>e.getValue(t)===n;Y4.autoRemove=e=>un(e);const J4=(e,t,n)=>e.getValue(t)==n;J4.autoRemove=e=>un(e);const mc=(e,t,n)=>{let[i,r]=n;const o=e.getValue(t);return o>=i&&o<=r};mc.resolveFilterValue=e=>{let[t,n]=e,i=typeof t!="number"?parseFloat(t):t,r=typeof n!="number"?parseFloat(n):n,o=t===null||Number.isNaN(i)?-1/0:i,s=n===null||Number.isNaN(r)?1/0:r;if(o>s){const a=o;o=s,s=a}return[o,s]};mc.autoRemove=e=>un(e)||un(e[0])&&un(e[1]);const On={includesString:H4,includesStringSensitive:G4,equalsString:z4,arrIncludes:W4,arrIncludesAll:Z4,arrIncludesSome:X4,equals:Y4,weakEquals:J4,inNumberRange:mc};function un(e){return e==null||e===""}const Av={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Wt("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],i=n==null?void 0:n.getValue(e.id);return typeof i=="string"?On.includesString:typeof i=="number"?On.inNumberRange:typeof i=="boolean"||i!==null&&typeof i=="object"?On.equals:Array.isArray(i)?On.arrIncludes:On.weakEquals},e.getFilterFn=()=>{var n,i;return v2(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(i=t.options.filterFns)==null?void 0:i[e.columnDef.filterFn])!=null?n:On[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,i,r;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((i=t.options.enableColumnFilters)!=null?i:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(i=>i.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,i;return(n=(i=t.getState().columnFilters)==null?void 0:i.findIndex(r=>r.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(i=>{const r=e.getFilterFn(),o=i==null?void 0:i.find(u=>u.id===e.id),s=Kn(n,o?o.value:void 0);if(Md(r,s,e)){var a;return(a=i==null?void 0:i.filter(u=>u.id!==e.id))!=null?a:[]}const l={id:e.id,value:s};if(o){var c;return(c=i==null?void 0:i.map(u=>u.id===e.id?l:u))!=null?c:[]}return i!=null&&i.length?[...i,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),i=r=>{var o;return(o=Kn(t,r))==null?void 0:o.filter(s=>{const a=n.find(l=>l.id===s.id);if(a){const l=a.getFilterFn();if(Md(l,s.value,a))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(i)},e.resetColumnFilters=t=>{var n,i;e.setColumnFilters(t?[]:(n=(i=e.initialState)==null?void 0:i.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Md(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const Ev=(e,t,n)=>n.reduce((i,r)=>{const o=r.getValue(e);return i+(typeof o=="number"?o:0)},0),Rv=(e,t,n)=>{let i;return n.forEach(r=>{const o=r.getValue(e);o!=null&&(i>o||i===void 0&&o>=o)&&(i=o)}),i},kv=(e,t,n)=>{let i;return n.forEach(r=>{const o=r.getValue(e);o!=null&&(i<o||i===void 0&&o>=o)&&(i=o)}),i},Pv=(e,t,n)=>{let i,r;return n.forEach(o=>{const s=o.getValue(e);s!=null&&(i===void 0?s>=s&&(i=r=s):(i>s&&(i=s),r<s&&(r=s)))}),[i,r]},Lv=(e,t)=>{let n=0,i=0;if(t.forEach(r=>{let o=r.getValue(e);o!=null&&(o=+o)>=o&&(++n,i+=o)}),n)return i/n},Fv=(e,t)=>{if(!t.length)return;const n=t.map(o=>o.getValue(e));if(!xv(n))return;if(n.length===1)return n[0];const i=Math.floor(n.length/2),r=n.sort((o,s)=>o-s);return n.length%2!==0?r[i]:(r[i-1]+r[i])/2},Ov=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),Nv=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,Tv=(e,t)=>t.length,t0={sum:Ev,min:Rv,max:kv,extent:Pv,mean:Lv,median:Fv,unique:Ov,uniqueCount:Nv,count:Tv},Dv={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Wt("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(i=>i!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,i;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((i=t.options.enableGrouping)!=null?i:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],i=n==null?void 0:n.getValue(e.id);if(typeof i=="number")return t0.sum;if(Object.prototype.toString.call(i)==="[object Date]")return t0.extent},e.getAggregationFn=()=>{var n,i;if(!e)throw new Error;return v2(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(i=t.options.aggregationFns)==null?void 0:i[e.columnDef.aggregationFn])!=null?n:t0[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,i;e.setGrouping(t?[]:(n=(i=e.initialState)==null?void 0:i.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const i=t.getColumn(n);return i!=null&&i.columnDef.getGroupingValue?(e._groupingValuesCache[n]=i.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,i)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var r;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((r=n.subRows)!=null&&r.length)}}};function Vv(e,t,n){if(!(t!=null&&t.length)||!n)return e;const i=e.filter(o=>!t.includes(o.id));return n==="remove"?i:[...t.map(o=>e.find(s=>s.id===o)).filter(Boolean),...i]}const jv={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Wt("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Me(n=>[so(t,n)],n=>n.findIndex(i=>i.id===e.id),_e(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var i;return((i=so(t,n)[0])==null?void 0:i.id)===e.id},e.getIsLastColumn=n=>{var i;const r=so(t,n);return((i=r[r.length-1])==null?void 0:i.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=Me(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,i)=>r=>{let o=[];if(!(t!=null&&t.length))o=r;else{const s=[...t],a=[...r];for(;a.length&&s.length;){const l=s.shift(),c=a.findIndex(u=>u.id===l);c>-1&&o.push(a.splice(c,1)[0])}o=[...o,...a]}return Vv(o,n,i)},_e(e.options,"debugTable","_getOrderColumnsFn"))}},n0=()=>({left:[],right:[]}),Bv={getInitialState:e=>({columnPinning:n0(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Wt("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const i=e.getLeafColumns().map(r=>r.id).filter(Boolean);t.setColumnPinning(r=>{var o,s;if(n==="right"){var a,l;return{left:((a=r==null?void 0:r.left)!=null?a:[]).filter(d=>!(i!=null&&i.includes(d))),right:[...((l=r==null?void 0:r.right)!=null?l:[]).filter(d=>!(i!=null&&i.includes(d))),...i]}}if(n==="left"){var c,u;return{left:[...((c=r==null?void 0:r.left)!=null?c:[]).filter(d=>!(i!=null&&i.includes(d))),...i],right:((u=r==null?void 0:r.right)!=null?u:[]).filter(d=>!(i!=null&&i.includes(d)))}}return{left:((o=r==null?void 0:r.left)!=null?o:[]).filter(d=>!(i!=null&&i.includes(d))),right:((s=r==null?void 0:r.right)!=null?s:[]).filter(d=>!(i!=null&&i.includes(d)))}})},e.getCanPin=()=>e.getLeafColumns().some(i=>{var r,o,s;return((r=i.columnDef.enablePinning)!=null?r:!0)&&((o=(s=t.options.enableColumnPinning)!=null?s:t.options.enablePinning)!=null?o:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(a=>a.id),{left:i,right:r}=t.getState().columnPinning,o=n.some(a=>i==null?void 0:i.includes(a)),s=n.some(a=>r==null?void 0:r.includes(a));return o?"left":s?"right":!1},e.getPinnedIndex=()=>{var n,i;const r=e.getIsPinned();return r?(n=(i=t.getState().columnPinning)==null||(i=i[r])==null?void 0:i.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=Me(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,i,r)=>{const o=[...i??[],...r??[]];return n.filter(s=>!o.includes(s.column.id))},_e(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=Me(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,i)=>(i??[]).map(o=>n.find(s=>s.column.id===o)).filter(Boolean).map(o=>({...o,position:"left"})),_e(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=Me(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,i)=>(i??[]).map(o=>n.find(s=>s.column.id===o)).filter(Boolean).map(o=>({...o,position:"right"})),_e(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,i;return e.setColumnPinning(t?n0():(n=(i=e.initialState)==null?void 0:i.columnPinning)!=null?n:n0())},e.getIsSomeColumnsPinned=t=>{var n;const i=e.getState().columnPinning;if(!t){var r,o;return!!((r=i.left)!=null&&r.length||(o=i.right)!=null&&o.length)}return!!((n=i[t])!=null&&n.length)},e.getLeftLeafColumns=Me(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(i=>t.find(r=>r.id===i)).filter(Boolean),_e(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=Me(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(i=>t.find(r=>r.id===i)).filter(Boolean),_e(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=Me(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,i)=>{const r=[...n??[],...i??[]];return t.filter(o=>!r.includes(o.id))},_e(e.options,"debugColumns","getCenterLeafColumns"))}};function $v(e){return e||(typeof document<"u"?document:null)}const Cs={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},i0=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Hv={getDefaultColumnDef:()=>Cs,getInitialState:e=>({columnSizing:{},columnSizingInfo:i0(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Wt("columnSizing",e),onColumnSizingInfoChange:Wt("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,i,r;const o=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Cs.minSize,(i=o??e.columnDef.size)!=null?i:Cs.size),(r=e.columnDef.maxSize)!=null?r:Cs.maxSize)},e.getStart=Me(n=>[n,so(t,n),t.getState().columnSizing],(n,i)=>i.slice(0,e.getIndex(n)).reduce((r,o)=>r+o.getSize(),0),_e(t.options,"debugColumns","getStart")),e.getAfter=Me(n=>[n,so(t,n),t.getState().columnSizing],(n,i)=>i.slice(e.getIndex(n)+1).reduce((r,o)=>r+o.getSize(),0),_e(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:i,...r}=n;return r})},e.getCanResize=()=>{var n,i;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((i=t.options.enableColumnResizing)!=null?i:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const i=r=>{if(r.subHeaders.length)r.subHeaders.forEach(i);else{var o;n+=(o=r.column.getSize())!=null?o:0}};return i(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const i=t.getColumn(e.column.id),r=i==null?void 0:i.getCanResize();return o=>{if(!i||!r||(o.persist==null||o.persist(),r0(o)&&o.touches&&o.touches.length>1))return;const s=e.getSize(),a=e?e.getLeafHeaders().map(C=>[C.column.id,C.column.getSize()]):[[i.id,i.getSize()]],l=r0(o)?Math.round(o.touches[0].clientX):o.clientX,c={},u=(C,y)=>{typeof y=="number"&&(t.setColumnSizingInfo(x=>{var I,w;const R=t.options.columnResizeDirection==="rtl"?-1:1,E=(y-((I=x==null?void 0:x.startOffset)!=null?I:0))*R,S=Math.max(E/((w=x==null?void 0:x.startSize)!=null?w:0),-.999999);return x.columnSizingStart.forEach(M=>{let[_,P]=M;c[_]=Math.round(Math.max(P+P*S,0)*100)/100}),{...x,deltaOffset:E,deltaPercentage:S}}),(t.options.columnResizeMode==="onChange"||C==="end")&&t.setColumnSizing(x=>({...x,...c})))},d=C=>u("move",C),f=C=>{u("end",C),t.setColumnSizingInfo(y=>({...y,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=$v(n),g={moveHandler:C=>d(C.clientX),upHandler:C=>{h==null||h.removeEventListener("mousemove",g.moveHandler),h==null||h.removeEventListener("mouseup",g.upHandler),f(C.clientX)}},p={moveHandler:C=>(C.cancelable&&(C.preventDefault(),C.stopPropagation()),d(C.touches[0].clientX),!1),upHandler:C=>{var y;h==null||h.removeEventListener("touchmove",p.moveHandler),h==null||h.removeEventListener("touchend",p.upHandler),C.cancelable&&(C.preventDefault(),C.stopPropagation()),f((y=C.touches[0])==null?void 0:y.clientX)}},m=Gv()?{passive:!1}:!1;r0(o)?(h==null||h.addEventListener("touchmove",p.moveHandler,m),h==null||h.addEventListener("touchend",p.upHandler,m)):(h==null||h.addEventListener("mousemove",g.moveHandler,m),h==null||h.addEventListener("mouseup",g.upHandler,m)),t.setColumnSizingInfo(C=>({...C,startOffset:l,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:i.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?i0():(n=e.initialState.columnSizingInfo)!=null?n:i0())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((i,r)=>i+r.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((i,r)=>i+r.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((i,r)=>i+r.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((i,r)=>i+r.getSize(),0))!=null?t:0}}};let vs=null;function Gv(){if(typeof vs=="boolean")return vs;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return vs=e,vs}function r0(e){return e.type==="touchstart"}const zv={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Wt("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(i=>({...i,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,i;const r=e.columns;return(n=r.length?r.some(o=>o.getIsVisible()):(i=t.getState().columnVisibility)==null?void 0:i[e.id])!=null?n:!0},e.getCanHide=()=>{var n,i;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((i=t.options.enableHiding)!=null?i:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Me(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(i=>i.column.getIsVisible()),_e(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=Me(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,i,r)=>[...n,...i,...r],_e(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,i)=>Me(()=>[i(),i().filter(r=>r.getIsVisible()).map(r=>r.id).join("_")],r=>r.filter(o=>o.getIsVisible==null?void 0:o.getIsVisible()),_e(e.options,"debugColumns",n));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var i;e.setColumnVisibility(n?{}:(i=e.initialState.columnVisibility)!=null?i:{})},e.toggleAllColumnsVisible=n=>{var i;n=(i=n)!=null?i:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((r,o)=>({...r,[o.id]:n||!(o.getCanHide!=null&&o.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var i;e.toggleAllColumnsVisible((i=n.target)==null?void 0:i.checked)}}};function so(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Wv={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},Zv={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Wt("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const i=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof i=="string"||typeof i=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,i,r,o;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((i=t.options.enableGlobalFilter)!=null?i:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&((o=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?o:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>On.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:i}=e.options;return v2(i)?i:i==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[i])!=null?t:On[i]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Xv={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Wt("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var i,r;if(!t){e._queue(()=>{t=!0});return}if((i=(r=e.options.autoResetAll)!=null?r:e.options.autoResetExpanded)!=null?i:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=i=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(i),e.toggleAllRowsExpanded=i=>{i??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=i=>{var r,o;e.setExpanded(i?{}:(r=(o=e.initialState)==null?void 0:o.expanded)!=null?r:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(i=>i.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>i=>{i.persist==null||i.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const i=e.getState().expanded;return i===!0||Object.values(i).some(Boolean)},e.getIsAllRowsExpanded=()=>{const i=e.getState().expanded;return typeof i=="boolean"?i===!0:!(!Object.keys(i).length||e.getRowModel().flatRows.some(r=>!r.getIsExpanded()))},e.getExpandedDepth=()=>{let i=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(o=>{const s=o.split(".");i=Math.max(i,s.length)}),i},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(i=>{var r;const o=i===!0?!0:!!(i!=null&&i[e.id]);let s={};if(i===!0?Object.keys(t.getRowModel().rowsById).forEach(a=>{s[a]=!0}):s=i,n=(r=n)!=null?r:!o,!o&&n)return{...s,[e.id]:!0};if(o&&!n){const{[e.id]:a,...l}=s;return l}return i})},e.getIsExpanded=()=>{var n;const i=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:i===!0||i!=null&&i[e.id])},e.getCanExpand=()=>{var n,i,r;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((i=t.options.enableExpanding)!=null?i:!0)&&!!((r=e.subRows)!=null&&r.length)},e.getIsAllParentsExpanded=()=>{let n=!0,i=e;for(;n&&i.parentId;)i=t.getRow(i.parentId,!0),n=i.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},K0=0,el=10,o0=()=>({pageIndex:K0,pageSize:el}),Yv={getInitialState:e=>({...e,pagination:{...o0(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Wt("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var i,r;if(!t){e._queue(()=>{t=!0});return}if((i=(r=e.options.autoResetAll)!=null?r:e.options.autoResetPageIndex)!=null?i:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=i=>{const r=o=>Kn(i,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(r)},e.resetPagination=i=>{var r;e.setPagination(i?o0():(r=e.initialState.pagination)!=null?r:o0())},e.setPageIndex=i=>{e.setPagination(r=>{let o=Kn(i,r.pageIndex);const s=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,s)),{...r,pageIndex:o}})},e.resetPageIndex=i=>{var r,o;e.setPageIndex(i?K0:(r=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageIndex)!=null?r:K0)},e.resetPageSize=i=>{var r,o;e.setPageSize(i?el:(r=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageSize)!=null?r:el)},e.setPageSize=i=>{e.setPagination(r=>{const o=Math.max(1,Kn(i,r.pageSize)),s=r.pageSize*r.pageIndex,a=Math.floor(s/o);return{...r,pageIndex:a,pageSize:o}})},e.setPageCount=i=>e.setPagination(r=>{var o;let s=Kn(i,(o=e.options.pageCount)!=null?o:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...r,pageCount:s}}),e.getPageOptions=Me(()=>[e.getPageCount()],i=>{let r=[];return i&&i>0&&(r=[...new Array(i)].fill(null).map((o,s)=>s)),r},_e(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:i}=e.getState().pagination,r=e.getPageCount();return r===-1?!0:r===0?!1:i<r-1},e.previousPage=()=>e.setPageIndex(i=>i-1),e.nextPage=()=>e.setPageIndex(i=>i+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var i;return(i=e.options.pageCount)!=null?i:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var i;return(i=e.options.rowCount)!=null?i:e.getPrePaginationRowModel().rows.length}}},s0=()=>({top:[],bottom:[]}),Jv={getInitialState:e=>({rowPinning:s0(),...e}),getDefaultOptions:e=>({onRowPinningChange:Wt("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,i,r)=>{const o=i?e.getLeafRows().map(l=>{let{id:c}=l;return c}):[],s=r?e.getParentRows().map(l=>{let{id:c}=l;return c}):[],a=new Set([...s,e.id,...o]);t.setRowPinning(l=>{var c,u;if(n==="bottom"){var d,f;return{top:((d=l==null?void 0:l.top)!=null?d:[]).filter(p=>!(a!=null&&a.has(p))),bottom:[...((f=l==null?void 0:l.bottom)!=null?f:[]).filter(p=>!(a!=null&&a.has(p))),...Array.from(a)]}}if(n==="top"){var h,g;return{top:[...((h=l==null?void 0:l.top)!=null?h:[]).filter(p=>!(a!=null&&a.has(p))),...Array.from(a)],bottom:((g=l==null?void 0:l.bottom)!=null?g:[]).filter(p=>!(a!=null&&a.has(p)))}}return{top:((c=l==null?void 0:l.top)!=null?c:[]).filter(p=>!(a!=null&&a.has(p))),bottom:((u=l==null?void 0:l.bottom)!=null?u:[]).filter(p=>!(a!=null&&a.has(p)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:i,enablePinning:r}=t.options;return typeof i=="function"?i(e):(n=i??r)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:i,bottom:r}=t.getState().rowPinning,o=n.some(a=>i==null?void 0:i.includes(a)),s=n.some(a=>r==null?void 0:r.includes(a));return o?"top":s?"bottom":!1},e.getPinnedIndex=()=>{var n,i;const r=e.getIsPinned();if(!r)return-1;const o=(n=r==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(s=>{let{id:a}=s;return a});return(i=o==null?void 0:o.indexOf(e.id))!=null?i:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,i;return e.setRowPinning(t?s0():(n=(i=e.initialState)==null?void 0:i.rowPinning)!=null?n:s0())},e.getIsSomeRowsPinned=t=>{var n;const i=e.getState().rowPinning;if(!t){var r,o;return!!((r=i.top)!=null&&r.length||(o=i.bottom)!=null&&o.length)}return!!((n=i[t])!=null&&n.length)},e._getPinnedRows=(t,n,i)=>{var r;return((r=e.options.keepPinnedRows)==null||r?(n??[]).map(s=>{const a=e.getRow(s,!0);return a.getIsAllParentsExpanded()?a:null}):(n??[]).map(s=>t.find(a=>a.id===s))).filter(Boolean).map(s=>({...s,position:i}))},e.getTopRows=Me(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),_e(e.options,"debugRows","getTopRows")),e.getBottomRows=Me(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),_e(e.options,"debugRows","getBottomRows")),e.getCenterRows=Me(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,i)=>{const r=new Set([...n??[],...i??[]]);return t.filter(o=>!r.has(o.id))},_e(e.options,"debugRows","getCenterRows"))}},Uv={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Wt("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const i={...n},r=e.getPreGroupedRowModel().flatRows;return t?r.forEach(o=>{o.getCanSelect()&&(i[o.id]=!0)}):r.forEach(o=>{delete i[o.id]}),i})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const i=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),r={...n};return e.getRowModel().rows.forEach(o=>{tl(r,o.id,i,!0,e)}),r}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Me(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?a0(e,n):{rows:[],flatRows:[],rowsById:{}},_e(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=Me(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?a0(e,n):{rows:[],flatRows:[],rowsById:{}},_e(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=Me(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?a0(e,n):{rows:[],flatRows:[],rowsById:{}},_e(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let i=!!(t.length&&Object.keys(n).length);return i&&t.some(r=>r.getCanSelect()&&!n[r.id])&&(i=!1),i},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(r=>r.getCanSelect()),{rowSelection:n}=e.getState();let i=!!t.length;return i&&t.some(r=>!n[r.id])&&(i=!1),i},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,i)=>{const r=e.getIsSelected();t.setRowSelection(o=>{var s;if(n=typeof n<"u"?n:!r,e.getCanSelect()&&r===n)return o;const a={...o};return tl(a,e.id,n,(s=i==null?void 0:i.selectChildren)!=null?s:!0,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return bc(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return nl(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return nl(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return i=>{var r;n&&e.toggleSelected((r=i.target)==null?void 0:r.checked)}}}},tl=(e,t,n,i,r)=>{var o;const s=r.getRow(t,!0);n?(s.getCanMultiSelect()||Object.keys(e).forEach(a=>delete e[a]),s.getCanSelect()&&(e[t]=!0)):delete e[t],i&&(o=s.subRows)!=null&&o.length&&s.getCanSelectSubRows()&&s.subRows.forEach(a=>tl(e,a.id,n,i,r))};function a0(e,t){const n=e.getState().rowSelection,i=[],r={},o=function(s,a){return s.map(l=>{var c;const u=bc(l,n);if(u&&(i.push(l),r[l.id]=l),(c=l.subRows)!=null&&c.length&&(l={...l,subRows:o(l.subRows)}),u)return l}).filter(Boolean)};return{rows:o(t.rows),flatRows:i,rowsById:r}}function bc(e,t){var n;return(n=t[e.id])!=null?n:!1}function nl(e,t,n){var i;if(!((i=e.subRows)!=null&&i.length))return!1;let r=!0,o=!1;return e.subRows.forEach(s=>{if(!(o&&!r)&&(s.getCanSelect()&&(bc(s,t)?o=!0:r=!1),s.subRows&&s.subRows.length)){const a=nl(s,t);a==="all"?o=!0:(a==="some"&&(o=!0),r=!1)}}),r?"all":o?"some":!1}const il=/([0-9]+)/gm,Qv=(e,t,n)=>U4(li(e.getValue(n)).toLowerCase(),li(t.getValue(n)).toLowerCase()),qv=(e,t,n)=>U4(li(e.getValue(n)),li(t.getValue(n))),Kv=(e,t,n)=>Cc(li(e.getValue(n)).toLowerCase(),li(t.getValue(n)).toLowerCase()),ex=(e,t,n)=>Cc(li(e.getValue(n)),li(t.getValue(n))),tx=(e,t,n)=>{const i=e.getValue(n),r=t.getValue(n);return i>r?1:i<r?-1:0},nx=(e,t,n)=>Cc(e.getValue(n),t.getValue(n));function Cc(e,t){return e===t?0:e>t?1:-1}function li(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function U4(e,t){const n=e.split(il).filter(Boolean),i=t.split(il).filter(Boolean);for(;n.length&&i.length;){const r=n.shift(),o=i.shift(),s=parseInt(r,10),a=parseInt(o,10),l=[s,a].sort();if(isNaN(l[0])){if(r>o)return 1;if(o>r)return-1;continue}if(isNaN(l[1]))return isNaN(s)?-1:1;if(s>a)return 1;if(a>s)return-1}return n.length-i.length}const Vr={alphanumeric:Qv,alphanumericCaseSensitive:qv,text:Kv,textCaseSensitive:ex,datetime:tx,basic:nx},ix={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Wt("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let i=!1;for(const r of n){const o=r==null?void 0:r.getValue(e.id);if(Object.prototype.toString.call(o)==="[object Date]")return Vr.datetime;if(typeof o=="string"&&(i=!0,o.split(il).length>1))return Vr.alphanumeric}return i?Vr.text:Vr.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,i;if(!e)throw new Error;return v2(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(i=t.options.sortingFns)==null?void 0:i[e.columnDef.sortingFn])!=null?n:Vr[e.columnDef.sortingFn]},e.toggleSorting=(n,i)=>{const r=e.getNextSortingOrder(),o=typeof n<"u"&&n!==null;t.setSorting(s=>{const a=s==null?void 0:s.find(h=>h.id===e.id),l=s==null?void 0:s.findIndex(h=>h.id===e.id);let c=[],u,d=o?n:r==="desc";if(s!=null&&s.length&&e.getCanMultiSort()&&i?a?u="toggle":u="add":s!=null&&s.length&&l!==s.length-1?u="replace":a?u="toggle":u="replace",u==="toggle"&&(o||r||(u="remove")),u==="add"){var f;c=[...s,{id:e.id,desc:d}],c.splice(0,c.length-((f=t.options.maxMultiSortColCount)!=null?f:Number.MAX_SAFE_INTEGER))}else u==="toggle"?c=s.map(h=>h.id===e.id?{...h,desc:d}:h):u==="remove"?c=s.filter(h=>h.id!==e.id):c=[{id:e.id,desc:d}];return c})},e.getFirstSortDir=()=>{var n,i;return((n=(i=e.columnDef.sortDescFirst)!=null?i:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var i,r;const o=e.getFirstSortDir(),s=e.getIsSorted();return s?s!==o&&((i=t.options.enableSortingRemoval)==null||i)&&(!(n&&(r=t.options.enableMultiRemove)!=null)||r)?!1:s==="desc"?"asc":"desc":o},e.getCanSort=()=>{var n,i;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((i=t.options.enableSorting)!=null?i:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,i;return(n=(i=e.columnDef.enableMultiSort)!=null?i:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const i=(n=t.getState().sorting)==null?void 0:n.find(r=>r.id===e.id);return i?i.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,i;return(n=(i=t.getState().sorting)==null?void 0:i.findIndex(r=>r.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(i=>i.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return i=>{n&&(i.persist==null||i.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(i):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,i;e.setSorting(t?[]:(n=(i=e.initialState)==null?void 0:i.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},rx=[Iv,zv,jv,Bv,_v,Av,Wv,Zv,ix,Dv,Xv,Yv,Jv,Uv,Hv];function ox(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const i=[...rx,...(t=e._features)!=null?t:[]];let r={_features:i};const o=r._features.reduce((f,h)=>Object.assign(f,h.getDefaultOptions==null?void 0:h.getDefaultOptions(r)),{}),s=f=>r.options.mergeOptions?r.options.mergeOptions(o,f):{...o,...f};let l={...{},...(n=e.initialState)!=null?n:{}};r._features.forEach(f=>{var h;l=(h=f.getInitialState==null?void 0:f.getInitialState(l))!=null?h:l});const c=[];let u=!1;const d={_features:i,options:{...o,...e},initialState:l,_queue:f=>{c.push(f),u||(u=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();u=!1}).catch(h=>setTimeout(()=>{throw h})))},reset:()=>{r.setState(r.initialState)},setOptions:f=>{const h=Kn(f,r.options);r.options=s(h)},getState:()=>r.options.state,setState:f=>{r.options.onStateChange==null||r.options.onStateChange(f)},_getRowId:(f,h,g)=>{var p;return(p=r.options.getRowId==null?void 0:r.options.getRowId(f,h,g))!=null?p:`${g?[g.id,h].join("."):h}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(f,h)=>{let g=(h?r.getPrePaginationRowModel():r.getRowModel()).rowsById[f];if(!g&&(g=r.getCoreRowModel().rowsById[f],!g))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${f}`):new Error;return g},_getDefaultColumnDef:Me(()=>[r.options.defaultColumn],f=>{var h;return f=(h=f)!=null?h:{},{header:g=>{const p=g.header.column.columnDef;return p.accessorKey?p.accessorKey:p.accessorFn?p.id:null},cell:g=>{var p,m;return(p=(m=g.renderValue())==null||m.toString==null?void 0:m.toString())!=null?p:null},...r._features.reduce((g,p)=>Object.assign(g,p.getDefaultColumnDef==null?void 0:p.getDefaultColumnDef()),{}),...f}},_e(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>r.options.columns,getAllColumns:Me(()=>[r._getColumnDefs()],f=>{const h=function(g,p,m){return m===void 0&&(m=0),g.map(C=>{const y=Sv(r,C,m,p),x=C;return y.columns=x.columns?h(x.columns,y,m+1):[],y})};return h(f)},_e(e,"debugColumns","getAllColumns")),getAllFlatColumns:Me(()=>[r.getAllColumns()],f=>f.flatMap(h=>h.getFlatColumns()),_e(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:Me(()=>[r.getAllFlatColumns()],f=>f.reduce((h,g)=>(h[g.id]=g,h),{}),_e(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:Me(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(f,h)=>{let g=f.flatMap(p=>p.getLeafColumns());return h(g)},_e(e,"debugColumns","getAllLeafColumns")),getColumn:f=>{const h=r._getAllFlatColumnsById()[f];return process.env.NODE_ENV!=="production"&&!h&&console.error(`[Table] Column with id '${f}' does not exist.`),h}};Object.assign(r,d);for(let f=0;f<r._features.length;f++){const h=r._features[f];h==null||h.createTable==null||h.createTable(r)}return r}function sx(){return e=>Me(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},i=function(r,o,s){o===void 0&&(o=0);const a=[];for(let c=0;c<r.length;c++){const u=Mv(e,e._getRowId(r[c],c,s),r[c],c,o,void 0,s==null?void 0:s.id);if(n.flatRows.push(u),n.rowsById[u.id]=u,a.push(u),e.options.getSubRows){var l;u.originalSubRows=e.options.getSubRows(r[c],c),(l=u.originalSubRows)!=null&&l.length&&(u.subRows=i(u.originalSubRows,o+1,u))}}return a};return n.rows=i(t),n},_e(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function ax(e){const t=[],n=i=>{var r;t.push(i),(r=i.subRows)!=null&&r.length&&i.getIsExpanded()&&i.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function lx(e){return t=>Me(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,i)=>{if(!i.rows.length)return i;const{pageSize:r,pageIndex:o}=n;let{rows:s,flatRows:a,rowsById:l}=i;const c=r*o,u=c+r;s=s.slice(c,u);let d;t.options.paginateExpandedRows?d={rows:s,flatRows:a,rowsById:l}:d=ax({rows:s,flatRows:a,rowsById:l}),d.flatRows=[];const f=h=>{d.flatRows.push(h),h.subRows.length&&h.subRows.forEach(f)};return d.rows.forEach(f),d},_e(t.options,"debugTable","getPaginationRowModel"))}/**
53
+ * react-table
54
+ *
55
+ * Copyright (c) TanStack
56
+ *
57
+ * This source code is licensed under the MIT license found in the
58
+ * LICENSE.md file in the root directory of this source tree.
59
+ *
60
+ * @license MIT
61
+ */function _d(e,t){return e?cx(e)?W.createElement(e,t):e:null}function cx(e){return ux(e)||typeof e=="function"||dx(e)}function ux(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function dx(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function fx(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=W.useState(()=>({current:ox(t)})),[i,r]=W.useState(()=>n.current.initialState);return n.current.setOptions(o=>({...o,...e,state:{...i,...e.state},onStateChange:s=>{r(s),e.onStateChange==null||e.onStateChange(s)}})),n.current}function hx(e){return Ie({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"},child:[]}]})(e)}function Q4(e){return Ie({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"},child:[]}]})(e)}function q4(e){return Ie({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"},child:[]}]})(e)}function vc(e){return Ie({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"},child:[]}]})(e)}function gx(e){return Ie({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m6 18 8.5-6L6 6v12zM16 6v12h2V6h-2z"},child:[]}]})(e)}function px(e){return Ie({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 6h2v12H6zm3.5 6 8.5 6V6z"},child:[]}]})(e)}function mx(e){return Ie({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m7 10 5 5 5-5z"},child:[]}]})(e)}function bx(e){return Ie({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m7 14 5-5 5 5z"},child:[]}]})(e)}function Cx(e){return Ie({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"},child:[]}]})(e)}function vx(e){return Ie({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"},child:[]}]})(e)}function xx(e){return Ie({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"},child:[]}]})(e)}function yx(e){return Ie({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"},child:[]}]})(e)}function wx(e){return Ie({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},child:[]}]})(e)}function Sx(e){return Ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12.01",y2:"16"},child:[]}]})(e)}function Ix(e){return Ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"20",x2:"18",y2:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"20",x2:"12",y2:"4"},child:[]},{tag:"line",attr:{x1:"6",y1:"20",x2:"6",y2:"14"},child:[]}]})(e)}function Mx(e){return Ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"},child:[]},{tag:"polyline",attr:{points:"22 4 12 14.01 9 11.01"},child:[]}]})(e)}function _x(e){return Ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"6 9 12 15 18 9"},child:[]}]})(e)}function Ax(e){return Ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"18 15 12 9 6 15"},child:[]}]})(e)}function Ex(e){return Ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"ellipse",attr:{cx:"12",cy:"5",rx:"9",ry:"3"},child:[]},{tag:"path",attr:{d:"M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"},child:[]},{tag:"path",attr:{d:"M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"},child:[]}]})(e)}function ka(e){return Ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"},child:[]},{tag:"polyline",attr:{points:"7 10 12 15 17 10"},child:[]},{tag:"line",attr:{x1:"12",y1:"15",x2:"12",y2:"3"},child:[]}]})(e)}function Rx(e){return Ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"},child:[]},{tag:"polyline",attr:{points:"14 2 14 8 20 8"},child:[]},{tag:"line",attr:{x1:"12",y1:"18",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"9",y1:"15",x2:"15",y2:"15"},child:[]}]})(e)}function kx(e){return Ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"23 4 23 10 17 10"},child:[]},{tag:"polyline",attr:{points:"1 20 1 14 7 14"},child:[]},{tag:"path",attr:{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"},child:[]}]})(e)}function Ad(e){return Ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"},child:[]}]})(e)}function Px(e){return Ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(e)}const K4=v.createContext(void 0),eh=({children:e,onToastShow:t})=>{const[n,i]=v.useState(!1),[r,o]=v.useState(pt.INFO),[s,a]=v.useState(""),l=v.useCallback((c,u,d)=>{if(t)try{t(c,u,d)}catch(f){console.warn("Toast external integration failed:",f)}o(c),a(u),i(!0)},[t]);return b.jsx(K4.Provider,{value:{toast:n,toastMessage:s,toastType:r,setToast:i,setToastMessage:a,setToastType:o,showToast:l},children:e})},xc=()=>{const e=v.useContext(K4);if(!e)throw new Error("useToast must be used within a ToastProvider");return e};let Pa=null,La=null,Ed=!1;function yc(){if(!Ed){Ed=!0;try{const e=require("react-redux");Pa=e.useDispatch,La=e.useSelector}catch{}}}const th=()=>(yc(),Pa?Pa():(console.warn("[useAppDispatch] Redux is not installed. Install @reduxjs/toolkit and react-redux to use this hook."),null)),nh=(e,t)=>(yc(),La?La(e,t):(console.warn("[useAppSelector] Redux is not installed. Install @reduxjs/toolkit and react-redux to use this hook."),null)),ih=()=>(yc(),Pa!==null&&La!==null),rh=v.createContext(void 0),oh=({children:e})=>{const[t,n]=v.useState(!1),i=()=>n(!0),r=()=>n(!1);return b.jsx(rh.Provider,{value:{isLoading:t,showLoader:i,hideLoader:r},children:e})},x2=()=>{const e=v.useContext(rh);if(!e)throw new Error("useLoader must be used within a LoaderProvider");return e},sh=(e,t={})=>{const[n,i]=v.useState(t),[r,o]=v.useState(null),[s,a]=v.useState(!1),[l,c]=v.useState(null);return{filters:n,filteredData:r,loading:s,error:l,updateFilters:f=>{i(h=>({...h,...f}))},clearFilters:()=>{i(t),o(null)},setFilteredData:o,setLoading:a,setError:c}},ta=10,na=0,rl=8,ol=`w-4 h-4 appearance-none border
62
+ border-gray-500 rounded-sm checked:bg-brand-primary
63
+ checked:border-[#0b86cf] checked:relative
64
+ checked:after:content-['✔'] checked:after:absolute
65
+ checked:after:text-white checked:after:font-bold
66
+ checked:after:left-1/2 checked:after:top-1/2
67
+ checked:after:-translate-x-1/2 checked:after:-translate-y-1/2
68
+ checked:after:text-xs`,sl=({type:e,options:t,columns:n,data:i,fetchTableData:r,searchEnabled:o=!1,filtersEnabled:s,filterFields:a,setTableData:l,refreshTable:c,paginationEnabled:u=!0,exportEnabled:d=!0,bulkActions:f={},handleBulkAction:h,onRowClick:g,columnBorders:p,showConnectorsSummary:m=!1,connectorScanObject:C,connectorDetail:y,scanDetails:x,isDeletedItemsList:I=!1,onViewDeletedItemsClick:w,showViewDeleteButton:R=!1,refreshData:E,setRefreshData:S,tableWrapperClass:M,searchColumns:_=[],onExport:P,FilterModal:N,ConnectorSummaryAccordion:B})=>{var Nr,Z,q,ue,Ee;const T=th(),k=ih(),F=nh(D=>!k||!(D!=null&&D.tableData)?null:D.tableData[e]||null),[O,A]=v.useState(""),[L,j]=v.useState(()=>(F==null?void 0:F.sorting)??[]),[G,H]=v.useState(new Set),[$,J]=v.useState(),[le,he]=v.useState(!0),[Oe,fe]=v.useState(!1),[ge,we]=v.useState(0),{filters:ce}=sh(),[z,Ne]=v.useState({}),[ie,re]=v.useState(()=>F!=null&&F.pagination?{...F.pagination}:{pageIndex:na,pageSize:ta}),{showToast:V}=xc(),{showLoader:oe,hideLoader:Y}=x2(),[ne,te]=v.useState(),ee=v.useRef(null),se=v.useRef(""),pe=v.useRef(""),ae=v.useRef(!1),K=fx({data:i,columns:n,state:{columnVisibility:{actions:le},globalFilter:O,sorting:L,pagination:ie},onColumnVisibilityChange:()=>he(!le),onGlobalFilterChange:A,onSortingChange:j,getCoreRowModel:sx(),manualPagination:!0,manualSorting:!0,manualFiltering:!0,pageCount:Math.ceil(ge/ie.pageSize),onPaginationChange:re,...u&&{getPaginationRowModel:lx()}}),xe=((Nr=K.getState().pagination)==null?void 0:Nr.pageIndex)+1||1,[Q,ve]=v.useState(!1),[Re,$e]=v.useState(!1),[st,He]=v.useState(xe),et=v.useMemo(()=>!ge||ge===0||isNaN(ge)?1:Math.max(Math.ceil(ge/ie.pageSize),1),[ge,ie.pageSize,ie.pageIndex,Q,I]);v.useEffect(()=>{E&&(qi(),S&&S(!1))},[E]),v.useEffect(()=>{if(e&&k&&T)try{const{setPagination:D}=require("../../redux/slices/tableDataSlice");T(D({tableType:e,pagination:ie}))}catch{}},[ie.pageIndex,ie.pageSize,e]),v.useEffect(()=>{He(xe)},[xe]),v.useEffect(()=>{if(k&&T)try{const{setGlobalSorting:D}=require("../../redux/slices/tableDataSlice");T(D({tableType:e,sorting:L}))}catch{}},[(Z=L[0])==null?void 0:Z.desc,(q=L[0])==null?void 0:q.id]);const at=v.useMemo(()=>{var me,Pe,ot;const D={pageNumber:K.getState().pagination.pageIndex,pageSize:K.getState().pagination.pageSize},de={sortBy:L.length&&(me=L[0])!=null&&me.id?(Pe=L[0])==null?void 0:Pe.id:void 0,order:L.length&&(ot=L[0])!=null&&ot.desc?"desc":"asc"},X={searchTerm:O,searchColumns:_.length>0?_:void 0};return{options:t,filters:Object.keys(ce).length>0?ce:z,...X,...D,...de,fetchDeleted:I}},[O,ce,L,K.getState().pagination.pageIndex,K.getState().pagination.pageSize,(ue=L[0])==null?void 0:ue.id,(Ee=L[0])==null?void 0:Ee.desc,I,Q,t==null?void 0:t.arg,_]),fn=D=>{if(D){const de=i.filter(X=>!X.isDisabled).map(X=>X.id);H(new Set(de))}else H(new Set)};v.useEffect(()=>()=>{var D;ne&&((D=window.api)!=null&&D.deleteExportedFile)&&window.api.deleteExportedFile((ne??"").replace("download:\\",""))},[ne]),v.useEffect(()=>{const D=async()=>{if(r){ae.current=!0;try{oe();let me=0;if(e===yo.SCANRESULT&&(t!=null&&t.usePermanentCache)){const ot=`scandetails_count_${JSON.stringify({...at,pageNumber:void 0,pageSize:void 0})}`,rn=localStorage.getItem(ot)||sessionStorage.getItem(ot);if(rn)try{const Xt=JSON.parse(rn);Xt&&typeof Xt.totalRecords=="number"&&(me=Xt.totalRecords)}catch{}me||(me=(await r({...at,usePermanentCache:(t==null?void 0:t.usePermanentCache)||!1})).totalRecords??0)}else me=(await r({...at,...t!=null&&t.usePermanentCache?{usePermanentCache:t.usePermanentCache}:{}})).totalRecords??0;const Pe=Math.max(Math.ceil(me/ie.pageSize)-1,0);i.length===0&&ie.pageIndex>0?re(ot=>({...ot,pageIndex:Math.min(ie.pageIndex,Pe)})):ie.pageIndex>Pe&&re(ot=>({...ot,pageIndex:Pe})),K.setPageCount(Math.ceil(me/ie.pageSize))}catch(me){console.error("Failed to update total count",me)}finally{ae.current=!1;const me=JSON.stringify({pagination:ie,searchApplied:Re,sorting:L,isDeletedItemsList:I});me!==se.current&&(se.current=me,qi()),Y()}}},de=JSON.stringify({options:t,filters:ce,searchTerm:O,searchColumns:_,sorting:L,isDeletedItemsList:I,pageSize:ie.pageSize});de!==pe.current&&(D(),pe.current=de)},[t,ce,O,e,L,I,ie.pageSize,_]);const ts=D=>{var de;D.key==="Enter"&&((de=ee.current)==null||de.click())},F2=(D,de)=>{H(X=>{const me=new Set(X);return de?me.add(D):me.delete(D),me})},O2=async()=>{var de;if(!e)return;let D="";try{if(oe(),P)D=await P(e,z,t,I);else if((de=window.api)!=null&&de.exportTable)D=t?await window.api.exportTable(e,z,t,I):await window.api.exportTable(e,z,{},I);else{V(pt.ERROR,"Export functionality is not available. Please provide an onExport handler.");return}te(D);const X=document.createElement("a");X.href=D,X.download=`export-${e}.csv`,document.body.appendChild(X),X.click(),document.body.removeChild(X),V(pt.SUCCESS,"Export initiated successfully")}catch(X){console.error("Export error",X),V(pt.ERROR,"Export failed")}finally{Y(),D&&D.startsWith("blob:")&&URL.revokeObjectURL(D)}},ns=()=>{let D=0;return i.forEach(de=>{de.isDisabled||D++}),D},is=async()=>{if(!(!r||!l)){oe(),re(D=>({...D,pageIndex:0}));try{$e(O!==""),await qi()}catch(D){console.error("Search error:",D),V(pt.ERROR,"Search operation failed.")}finally{Y()}}},qi=async()=>{if(!(!r||!l)){oe();try{const D=await r({...at,...t!=null&&t.usePermanentCache?{usePermanentCache:t.usePermanentCache}:{}}),de=D.totalRecords;if(we(de),l(D.data),k&&T)try{const{setTotalCount:X,setTableData:me}=require("../../redux/slices/tableDataSlice");T(X({tableType:e,totalCount:de})),T(me({tableType:e,data:D.data}))}catch{}}catch(D){console.error("Failed to fetch data",D),V(pt.ERROR,"Failed to fetch data!")}finally{Y()}}};v.useEffect(()=>{const D=JSON.stringify({pagination:ie,searchApplied:Re,sorting:L,isDeletedItemsList:I});D!==se.current&&!ae.current&&(se.current=D,qi())},[ie.pageIndex,ie.pageSize,Re,L,I]);const mi=Object.entries(f).map(([D,de])=>({value:D,label:de})),N2=()=>H(new Set),Or=()=>J(""),bi=v.useMemo(()=>!!h,[h]),rs=G.size>0,os=D=>{let de=0,X=!1;return bi&&(de+=57),K.getHeaderGroups().forEach(me=>{me.headers.forEach(Pe=>{if(!X&&Pe.column.columnDef.fixedColumn){if(Pe.id===D){X=!0;return}Pe.getSize()?de+=Pe.getSize()+16:de+=150}})}),`${de}px`},ss=N,as=B;return b.jsxs("div",{className:"py-0 px-0 flex flex-col gap-2 mt-2",children:[b.jsxs("div",{className:"main-action-wrapper flex gap-2 relative justify-end",children:[d&&!!e&&b.jsxs("button",{onClick:O2,className:"flex items-center shadow-sm gap-2 px-4 py-2 text-sm border border-transparent bg-brand-primary rounded-md transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-[var(--brand-orange)] focus:ring-offset-2",children:[b.jsx(ka,{className:"h-4 w-4"}),b.jsx("span",{children:"Export"})]}),s&&b.jsxs("button",{onClick:()=>fe(!0),className:"filters flex items-center shadow-sm gap-2 px-4 py-2 text-sm border border-1 border-[var(--border-color)] rounded-md hover:bg-brand-surface-subtle dark:text-gray-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-[var(--brand-orange)]",children:[Q&&b.jsx("span",{className:"h-2 w-2 bg-brand-primary rounded-full"}),b.jsx(q6,{className:"h-3 w-3 text-brand-primary"}),b.jsx("span",{children:"Filters"})]}),bi&&rs&&b.jsx("div",{className:"rounded-md text-gray-500 dark:text-gray-400 text-sm appearance-none absolute top-0 left-0 z-30",children:b.jsx($4,{placeholder:"Bulk Actions",className:"w-[10rem] bulk-actions-select",value:mi.find(D=>D.value===$)||null,options:mi,onChange:D=>{D&&(J(D.value),h&&(h(D.value,G,N2,Or),J("")))},isClearable:!0,styles:{control:(D,de)=>({...D,borderColor:de.isFocused?"var(--brand-orange)":"var(--border-color)",borderRadius:"0.25rem",cursor:"pointer",backgroundColor:"var(--bg-color)",color:"var(--text-color)",boxShadow:de.isFocused?"0 0 0 1px var(--brand-orange)":"none",":hover":{borderColor:"var(--brand-orange)"}}),input:D=>({...D,color:"var(--text-color)"}),singleValue:D=>({...D,color:"var(--text-color)"}),placeholder:D=>({...D,color:"var(--secondary-text-color)"}),option:(D,de)=>({...D,backgroundColor:de.isSelected?"var(--brand-orange)":de.isFocused?"var(--hover-bg-color)":"var(--bg-color)",color:de.isSelected?"white":"var(--text-color)",cursor:"pointer",":active":{backgroundColor:"var(--brand-orange)"}}),menu:D=>({...D,backgroundColor:"var(--bg-color)",color:"var(--text-color)",border:"1px solid var(--border-color)",zIndex:9999}),dropdownIndicator:D=>({...D,cursor:"pointer",color:"var(--secondary-text-color)",":hover":{color:"var(--brand-orange)"}}),clearIndicator:D=>({...D,cursor:"pointer",color:"var(--secondary-text-color)",":hover":{color:"var(--brand-orange)"}}),indicatorSeparator:D=>({...D,backgroundColor:"var(--border-color)"})}})}),o&&b.jsxs("div",{className:"flex max-w-xs w-full border rounded-md overflow-hidden shadow-sm main-search-input",style:{borderColor:"var(--border-color)"},children:[b.jsx("input",{type:"text","data-testid":"table-search-input",placeholder:"Search...",value:O,onKeyDown:ts,onChange:D=>A(D.target.value),className:"flex-grow px-4 py-2 text-sm placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none",style:{backgroundColor:"var(--bg-color)",color:"var(--text-color)"}}),b.jsx("button",{ref:ee,"data-testid":"table-search-button",className:"px-4 py-0 transition-colors",style:{backgroundColor:"var(--brand-light)",color:"var(--brand-dark)"},onMouseEnter:D=>D.currentTarget.style.backgroundColor="var(--hover-bg-color)",onMouseLeave:D=>D.currentTarget.style.backgroundColor="var(--brand-light)",onClick:is,children:b.jsx(q4,{size:22})})]})]}),m&&as&&b.jsx(as,{connectorDetail:y,scanDetails:x,scanObjects:C??[]}),b.jsx("div",{className:"main-table-wrapper flex-grow overflow-hidden rounded-md table-container",children:b.jsx("div",{className:`overflow-auto${M?` ${M}`:""}`,style:M?{}:{maxHeight:"calc(100vh - 21rem)"},children:b.jsxs("table",{className:"table-auto w-full text-left border-collapse border dark:border-gray-700 main-table",children:[b.jsx("thead",{className:"sticky -top-1 z-20 bg-brand-surface-subtle dark:bg-gray-800",children:K.getHeaderGroups().map((D,de)=>b.jsxs("tr",{children:[bi&&b.jsx("th",{className:"sticky -left-1 z-20 table-header checkbox font-bold cursor-pointer",style:{width:"40px"},children:b.jsx("input",{type:"checkbox",className:`${ol} dark:border-gray-600`,checked:K.getRowModel().rows.length>0&&G.size===ns()&&ns()>0,onChange:X=>{X.stopPropagation(),fn(X.target.checked)}})}),D.headers.map((X,me)=>{var rn,Xt;let Pe="";const ot=["actions"].includes((rn=X==null?void 0:X.column)==null?void 0:rn.id);return X.column.columnDef.fixedColumn&&(Pe+=" sticky z-10"),X.column.columnDef.centerAlign&&(Pe+=" text-center"),ot&&(Pe+=" right-fixed"),["#","id"].includes((Xt=X==null?void 0:X.column)==null?void 0:Xt.id)&&(Pe+=" id-column"),b.jsxs("th",{className:`table-header ${p?"border dark:border-gray-600":""} font-bold whitespace-nowrap text-ellipsis cursor-pointer ${Pe}`,style:{minWidth:X.column.columnDef.minSize||"auto",maxWidth:X.column.columnDef.maxSize||"auto",left:X.column.columnDef.fixedColumn?os(X.id):void 0,right:ot?0:void 0},onClick:()=>{X.column.getCanSort()&&X.column.toggleSorting()},children:[X.isPlaceholder?null:_d(X.column.columnDef.header,X.getContext()),b.jsxs("span",{className:"ml-0",children:[X.column.getIsSorted()==="asc"&&b.jsx(bx,{size:24,className:"inline-block pb-1"}),X.column.getIsSorted()==="desc"&&b.jsx(mx,{size:24,className:"inline-block pb-1"})]})]},`${X.id}_${me}`)})]},`${D.id}_${de}`))}),b.jsx("tbody",{children:K.getRowModel().rows.length===0?b.jsx("tr",{children:b.jsx("td",{colSpan:n.length+(bi?1:0),className:"text-center text-sm py-4 text-gray-600 dark:text-gray-400",children:"No data available"})}):K.getRowModel().rows.map((D,de)=>b.jsxs("tr",{className:`table-data${g?" cursor-pointer":""}`,onClick:X=>{g&&!X.target.closest('input[type="checkbox"]')&&g(D.original)},children:[bi&&b.jsx("td",{className:"table-padding checkbox sticky -left-1 z-10",style:{width:"40px"},onClick:X=>{X.stopPropagation();const me=X.currentTarget.querySelector('input[type="checkbox"]');me&&me.click()},children:b.jsx("input",{type:"checkbox",disabled:D.original.isDisabled,className:`${ol} dark:border-gray-600`,checked:G.has(D.original.id)&&!D.original.isDisabled,onChange:X=>{D.original.isDisabled||F2(D.original.id,X.target.checked)},onClick:X=>X.stopPropagation()})}),D.getVisibleCells().map((X,me)=>{var rn;let Pe="";const ot=["actions","startTime","endTime","created_at","updated_at","created","updated"].includes((rn=X==null?void 0:X.column)==null?void 0:rn.id);return X.column.columnDef.preLine&&(Pe+=" pre-line"),X.column.columnDef.fixedColumn&&(Pe+=" sticky z-10"),X.column.columnDef.centerAlign&&(Pe+=" text-center"),ot&&(Pe+=" right-fixed"),b.jsx("td",{className:`table-padding ${Pe} ${p?"border":""} whitespace-nowrap text-ellipsis`,style:{minWidth:X.column.columnDef.minSize||"auto",maxWidth:X.column.columnDef.maxSize||"auto",left:X.column.columnDef.fixedColumn?os(X.column.id):void 0,right:ot?0:void 0,backgroundColor:X.column.columnDef.fixedColumn?"var(--bg-color)":void 0,borderColor:p?"var(--border-color)":void 0,color:"var(--text-color)"},onClick:Xt=>{X.column.columnDef.disableClick&&Xt.stopPropagation()},children:_d(X.column.columnDef.cell,X.getContext())},`${X.id}_${me}`)})]},`${D.id}_${de}`))})]})})}),u&&b.jsxs("div",{className:"sticky bottom-0 z-10 bg-brand-surface py-2 flex justify-between items-center pagination-container dark:text-gray-300 main-table-footer",children:[b.jsxs("div",{className:"flex items-center space-x-1",children:[b.jsx("button",{onClick:()=>K.setPageIndex(0),disabled:ie.pageIndex===0,className:"disabled:opacity-50 transition-colors",style:{color:"var(--secondary-text-color)"},onMouseEnter:D=>!D.currentTarget.disabled&&(D.currentTarget.style.color="var(--brand-orange)"),onMouseLeave:D=>D.currentTarget.style.color="var(--secondary-text-color)",children:b.jsx(px,{size:20})}),b.jsx("button",{onClick:()=>K.previousPage(),disabled:ie.pageIndex===0,className:"disabled:opacity-50 transition-colors",style:{color:"var(--secondary-text-color)"},onMouseEnter:D=>!D.currentTarget.disabled&&(D.currentTarget.style.color="var(--brand-orange)"),onMouseLeave:D=>D.currentTarget.style.color="var(--secondary-text-color)",children:b.jsx(Cx,{size:20})}),b.jsxs("span",{className:"pagination-content",style:{color:"var(--text-color)"},children:["Page",b.jsx("input",{type:"number",value:st,onChange:D=>{const de=D.target.value.replace(/^0+/,"");He(de===""?"":Number(de))},onBlur:()=>{const D=Math.min(Math.max(Number(st),1),et);He(D),K.setPageIndex(D-1)},onKeyDown:D=>{if(D.key==="Enter"){const de=Math.min(Math.max(Number(st),1),et);He(de),K.setPageIndex(de-1)}},className:"px-2 py-1 rounded text-center mx-2",style:{width:`${String(st||rl).length+rl}ch`,backgroundColor:"var(--bg-color)",border:"1px solid var(--border-color)",color:"var(--text-color)"}}),"of ",b.jsx("span",{className:"mx-1",children:et})]}),b.jsx("button",{onClick:()=>K.nextPage(),disabled:ie.pageIndex+1===et,className:"disabled:opacity-50 transition-colors",style:{color:"var(--secondary-text-color)"},onMouseEnter:D=>!D.currentTarget.disabled&&(D.currentTarget.style.color="var(--brand-orange)"),onMouseLeave:D=>D.currentTarget.style.color="var(--secondary-text-color)",children:b.jsx(vx,{size:20})}),b.jsx("button",{onClick:()=>K.setPageIndex(et),disabled:ie.pageIndex+1===et,className:"disabled:opacity-50 transition-colors",style:{color:"var(--secondary-text-color)"},onMouseEnter:D=>!D.currentTarget.disabled&&(D.currentTarget.style.color="var(--brand-orange)"),onMouseLeave:D=>D.currentTarget.style.color="var(--secondary-text-color)",children:b.jsx(gx,{size:20})})]}),R&&b.jsx("button",{"data-testid":I?"view-active-items-button":"view-deleted-items-button",onClick:()=>{if(H(new Set),ie.pageIndex=na,ie.pageSize=ta,k&&T)try{const{setPagination:D}=require("../../redux/slices/tableDataSlice");T(D({tableType:e,pagination:{pageIndex:na,pageSize:ta}}));try{const{setFilters:de}=require("../../redux/slices/filterSlice");T(de({tableType:e,filters:{}}))}catch{}}catch{}ve(!1),w==null||w()},className:`toggle-delete text-xs px-2 py-1 min-w-24 rounded flex items-center gap-1 font-semibold justify-center ${I?"bg-gray-600 text-white hover:bg-gray-700 dark:bg-gray-500 dark:text-gray-200 dark:hover:bg-gray-400":"bg-white text-gray-600 hover:bg-gray-100 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-600"} border border-gray-300 text-gray-700 dark:border-gray-500 focus:outline-none`,children:I?"View Active Items":"View Deleted Items"}),b.jsxs("div",{className:"flex items-center space-x-2 pagination-content",style:{color:"var(--text-color)"},children:[b.jsx("span",{children:"Rows per page"}),b.jsx("div",{style:{width:"90px"},children:b.jsx(Po,{placeholder:"",options:[10,25,50,100].map(D=>({label:D.toString(),value:D.toString()})),selectedOptions:[{label:ie.pageSize.toString(),value:ie.pageSize.toString()}],handleChange:D=>{D&&re(de=>({...de,pageSize:+D.value}))},isMulti:!1,closeMenuOnSelect:!0,isClearable:!1,menuPosition:"fixed",customStyles:{control:(D,de)=>({...D,minHeight:"34px",height:"34px",backgroundColor:"var(--bg-color)",borderColor:de.isFocused?"var(--brand-orange)":"var(--border-color)",boxShadow:de.isFocused?"0 0 0 1px var(--brand-orange)":D.boxShadow})}})})]})]}),s&&a&&l&&c&&ss&&b.jsx(ss,{type:e,fields:a,inlineRowFields:a==null?void 0:a.filter(D=>D.inline===!0),visible:Oe,onClose:()=>fe(!1),title:"Filters",okText:"Apply Filters",cancelText:"Clear",data:i,setFilteredData:l,filtersApplied:Q,toggleFilterApply:ve,fetchTableData:r,pageNumber:ie.pageIndex,pageSize:ie.pageSize,setTotalRowCount:we,setPagination:re,options:t,sorting:L,setSorting:j,showDeletedItems:I,setExportFilters:Ne,searchTerm:O})]})},Lx=({isOpen:e,onClose:t,onConfirm:n,title:i,message:r,confirmText:o="Confirm",cancelText:s="Cancel",type:a="warning",isLoading:l=!1})=>{if(!e)return null;const c=()=>{switch(a){case"danger":return"text-red-500";case"warning":return"text-yellow-500";case"info":return"text-brand-primary";default:return"text-yellow-500"}},u=()=>{switch(a){case"danger":return"bg-red-600 hover:bg-red-700 focus:ring-red-500";case"warning":return"bg-yellow-600 hover:bg-yellow-700 focus:ring-yellow-500";case"info":return"bg-brand-primary hover:bg-[var(--brand-orange)]/90 focus:ring-[var(--brand-orange)]";default:return"bg-yellow-600 hover:bg-yellow-700 focus:ring-yellow-500"}};return b.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[b.jsx("div",{className:"absolute inset-0 bg-gray-500 bg-opacity-75 transition-opacity",onClick:t}),b.jsxs("div",{className:"relative rounded-lg text-left overflow-hidden shadow-xl transform transition-all max-w-lg w-full mx-4",style:{backgroundColor:"var(--bg-color)",border:"1px solid var(--border-color)"},children:[b.jsx("div",{className:"px-4 pt-5 pb-4 sm:p-6 sm:pb-4",style:{backgroundColor:"var(--bg-color)"},children:b.jsxs("div",{className:"sm:flex sm:items-start",children:[b.jsx("div",{className:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full sm:mx-0 sm:h-10 sm:w-10",style:{backgroundColor:"var(--hover-bg-color)"},children:b.jsx(W1,{className:`h-6 w-6 ${c()}`})}),b.jsxs("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[b.jsx("h3",{className:"text-lg leading-6 font-medium",style:{color:"var(--text-color)"},children:i}),b.jsx("div",{className:"mt-2",children:b.jsx("p",{className:"text-sm whitespace-pre-line",style:{color:"var(--secondary-text-color)"},children:r})})]})]})}),b.jsxs("div",{className:"px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse",style:{backgroundColor:"var(--hover-bg-color)"},children:[b.jsx("button",{type:"button",className:`w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 text-base font-medium text-white ${u()} focus:outline-none focus:ring-2 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm disabled:opacity-50 disabled:cursor-not-allowed`,onClick:n,disabled:l,children:l?"Processing...":o}),b.jsx("button",{type:"button",className:"mt-3 w-full inline-flex justify-center rounded-md shadow-sm px-4 py-2 text-base font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",style:{backgroundColor:"var(--bg-color)",color:"var(--text-color)",border:"1px solid var(--border-color)"},onMouseEnter:d=>d.currentTarget.style.backgroundColor="var(--hover-bg-color)",onMouseLeave:d=>d.currentTarget.style.backgroundColor="var(--bg-color)",onClick:t,disabled:l,children:s})]})]})]})};var ah={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(l2,function(){var n=1e3,i=6e4,r=36e5,o="millisecond",s="second",a="minute",l="hour",c="day",u="week",d="month",f="quarter",h="year",g="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var k=["th","st","nd","rd"],F=T%100;return"["+T+(k[(F-20)%10]||k[F]||k[0])+"]"}},x=function(T,k,F){var O=String(T);return!O||O.length>=k?T:""+Array(k+1-O.length).join(F)+T},I={s:x,z:function(T){var k=-T.utcOffset(),F=Math.abs(k),O=Math.floor(F/60),A=F%60;return(k<=0?"+":"-")+x(O,2,"0")+":"+x(A,2,"0")},m:function T(k,F){if(k.date()<F.date())return-T(F,k);var O=12*(F.year()-k.year())+(F.month()-k.month()),A=k.clone().add(O,d),L=F-A<0,j=k.clone().add(O+(L?-1:1),d);return+(-(O+(F-A)/(L?A-j:j-A))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:d,y:h,w:u,d:c,D:g,h:l,m:a,s,ms:o,Q:f}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},w="en",R={};R[w]=y;var E="$isDayjsObject",S=function(T){return T instanceof N||!(!T||!T[E])},M=function T(k,F,O){var A;if(!k)return w;if(typeof k=="string"){var L=k.toLowerCase();R[L]&&(A=L),F&&(R[L]=F,A=L);var j=k.split("-");if(!A&&j.length>1)return T(j[0])}else{var G=k.name;R[G]=k,A=G}return!O&&A&&(w=A),A||!O&&w},_=function(T,k){if(S(T))return T.clone();var F=typeof k=="object"?k:{};return F.date=T,F.args=arguments,new N(F)},P=I;P.l=M,P.i=S,P.w=function(T,k){return _(T,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var N=function(){function T(F){this.$L=M(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[E]=!0}var k=T.prototype;return k.parse=function(F){this.$d=function(O){var A=O.date,L=O.utc;if(A===null)return new Date(NaN);if(P.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var j=A.match(m);if(j){var G=j[2]-1||0,H=(j[7]||"0").substring(0,3);return L?new Date(Date.UTC(j[1],G,j[3]||1,j[4]||0,j[5]||0,j[6]||0,H)):new Date(j[1],G,j[3]||1,j[4]||0,j[5]||0,j[6]||0,H)}}return new Date(A)}(F),this.init()},k.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},k.$utils=function(){return P},k.isValid=function(){return this.$d.toString()!==p},k.isSame=function(F,O){var A=_(F);return this.startOf(O)<=A&&A<=this.endOf(O)},k.isAfter=function(F,O){return _(F)<this.startOf(O)},k.isBefore=function(F,O){return this.endOf(O)<_(F)},k.$g=function(F,O,A){return P.u(F)?this[O]:this.set(A,F)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(F,O){var A=this,L=!!P.u(O)||O,j=P.p(F),G=function(ge,we){var ce=P.w(A.$u?Date.UTC(A.$y,we,ge):new Date(A.$y,we,ge),A);return L?ce:ce.endOf(c)},H=function(ge,we){return P.w(A.toDate()[ge].apply(A.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(we)),A)},$=this.$W,J=this.$M,le=this.$D,he="set"+(this.$u?"UTC":"");switch(j){case h:return L?G(1,0):G(31,11);case d:return L?G(1,J):G(0,J+1);case u:var Oe=this.$locale().weekStart||0,fe=($<Oe?$+7:$)-Oe;return G(L?le-fe:le+(6-fe),J);case c:case g:return H(he+"Hours",0);case l:return H(he+"Minutes",1);case a:return H(he+"Seconds",2);case s:return H(he+"Milliseconds",3);default:return this.clone()}},k.endOf=function(F){return this.startOf(F,!1)},k.$set=function(F,O){var A,L=P.p(F),j="set"+(this.$u?"UTC":""),G=(A={},A[c]=j+"Date",A[g]=j+"Date",A[d]=j+"Month",A[h]=j+"FullYear",A[l]=j+"Hours",A[a]=j+"Minutes",A[s]=j+"Seconds",A[o]=j+"Milliseconds",A)[L],H=L===c?this.$D+(O-this.$W):O;if(L===d||L===h){var $=this.clone().set(g,1);$.$d[G](H),$.init(),this.$d=$.set(g,Math.min(this.$D,$.daysInMonth())).$d}else G&&this.$d[G](H);return this.init(),this},k.set=function(F,O){return this.clone().$set(F,O)},k.get=function(F){return this[P.p(F)]()},k.add=function(F,O){var A,L=this;F=Number(F);var j=P.p(O),G=function(J){var le=_(L);return P.w(le.date(le.date()+Math.round(J*F)),L)};if(j===d)return this.set(d,this.$M+F);if(j===h)return this.set(h,this.$y+F);if(j===c)return G(1);if(j===u)return G(7);var H=(A={},A[a]=i,A[l]=r,A[s]=n,A)[j]||1,$=this.$d.getTime()+F*H;return P.w($,this)},k.subtract=function(F,O){return this.add(-1*F,O)},k.format=function(F){var O=this,A=this.$locale();if(!this.isValid())return A.invalidDate||p;var L=F||"YYYY-MM-DDTHH:mm:ssZ",j=P.z(this),G=this.$H,H=this.$m,$=this.$M,J=A.weekdays,le=A.months,he=A.meridiem,Oe=function(we,ce,z,Ne){return we&&(we[ce]||we(O,L))||z[ce].slice(0,Ne)},fe=function(we){return P.s(G%12||12,we,"0")},ge=he||function(we,ce,z){var Ne=we<12?"AM":"PM";return z?Ne.toLowerCase():Ne};return L.replace(C,function(we,ce){return ce||function(z){switch(z){case"YY":return String(O.$y).slice(-2);case"YYYY":return P.s(O.$y,4,"0");case"M":return $+1;case"MM":return P.s($+1,2,"0");case"MMM":return Oe(A.monthsShort,$,le,3);case"MMMM":return Oe(le,$);case"D":return O.$D;case"DD":return P.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return Oe(A.weekdaysMin,O.$W,J,2);case"ddd":return Oe(A.weekdaysShort,O.$W,J,3);case"dddd":return J[O.$W];case"H":return String(G);case"HH":return P.s(G,2,"0");case"h":return fe(1);case"hh":return fe(2);case"a":return ge(G,H,!0);case"A":return ge(G,H,!1);case"m":return String(H);case"mm":return P.s(H,2,"0");case"s":return String(O.$s);case"ss":return P.s(O.$s,2,"0");case"SSS":return P.s(O.$ms,3,"0");case"Z":return j}return null}(we)||j.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(F,O,A){var L,j=this,G=P.p(O),H=_(F),$=(H.utcOffset()-this.utcOffset())*i,J=this-H,le=function(){return P.m(j,H)};switch(G){case h:L=le()/12;break;case d:L=le();break;case f:L=le()/3;break;case u:L=(J-$)/6048e5;break;case c:L=(J-$)/864e5;break;case l:L=J/r;break;case a:L=J/i;break;case s:L=J/n;break;default:L=J}return A?L:P.a(L)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return R[this.$L]},k.locale=function(F,O){if(!F)return this.$L;var A=this.clone(),L=M(F,O,!0);return L&&(A.$L=L),A},k.clone=function(){return P.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},T}(),B=N.prototype;return _.prototype=B,[["$ms",o],["$s",s],["$m",a],["$H",l],["$W",c],["$M",d],["$y",h],["$D",g]].forEach(function(T){B[T[1]]=function(k){return this.$g(k,T[0],T[1])}}),_.extend=function(T,k){return T.$i||(T(k,N,_),T.$i=!0),_},_.locale=M,_.isDayjs=S,_.unix=function(T){return _(1e3*T)},_.en=R[w],_.Ls=R,_.p={},_})})(ah);var Fx=ah.exports;const Fa=c2(Fx);var lh={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(l2,function(){var n="minute",i=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(o,s,a){var l=s.prototype;a.utc=function(p){var m={date:p,utc:!0,args:arguments};return new s(m)},l.utc=function(p){var m=a(this.toDate(),{locale:this.$L,utc:!0});return p?m.add(this.utcOffset(),n):m},l.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(p){p.utc&&(this.$u=!0),this.$utils().u(p.$offset)||(this.$offset=p.$offset),c.call(this,p)};var u=l.init;l.init=function(){if(this.$u){var p=this.$d;this.$y=p.getUTCFullYear(),this.$M=p.getUTCMonth(),this.$D=p.getUTCDate(),this.$W=p.getUTCDay(),this.$H=p.getUTCHours(),this.$m=p.getUTCMinutes(),this.$s=p.getUTCSeconds(),this.$ms=p.getUTCMilliseconds()}else u.call(this)};var d=l.utcOffset;l.utcOffset=function(p,m){var C=this.$utils().u;if(C(p))return this.$u?0:C(this.$offset)?d.call(this):this.$offset;if(typeof p=="string"&&(p=function(w){w===void 0&&(w="");var R=w.match(i);if(!R)return null;var E=(""+R[0]).match(r)||["-",0,0],S=E[0],M=60*+E[1]+ +E[2];return M===0?0:S==="+"?M:-M}(p),p===null))return this;var y=Math.abs(p)<=16?60*p:p;if(y===0)return this.utc(m);var x=this.clone();if(m)return x.$offset=y,x.$u=!1,x;var I=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(x=this.local().add(y+I,n)).$offset=y,x.$x.$localOffset=I,x};var f=l.format;l.format=function(p){var m=p||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,m)},l.valueOf=function(){var p=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*p},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var h=l.toDate;l.toDate=function(p){return p==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var g=l.diff;l.diff=function(p,m,C){if(p&&this.$u===p.$u)return g.call(this,p,m,C);var y=this.local(),x=a(p).local();return g.call(y,x,m,C)}}})})(lh);var Ox=lh.exports;const Nx=c2(Ox);Fa.extend(Nx);const Tx=({seconds:e,pauseOnMount:t=!1,startDateTime:n,runningTime:i=!0})=>{const[r,o]=v.useState(e),[s,a]=v.useState(0);v.useEffect(()=>{!n&&typeof e=="number"&&!isNaN(e)&&o(e)},[e,n]),v.useEffect(()=>{let d;if(n){const f=Fa.utc(n,"YYYY-MM-DD HH:mm:ss");d=setInterval(()=>{const g=Fa.utc().diff(f,"second");a(g)},1e3)}else!t&&typeof r=="number"&&(d=setInterval(()=>{o(f=>typeof f=="number"?f-1:f)},1e3));return()=>{d&&clearInterval(d)}},[n,t,r]);const l=d=>{const f=Math.abs(d),h=Math.floor(f/3600),g=Math.floor(f%3600/60),p=f%60,m=[];return h>0&&m.push(`${h}h`),m.push(`${g}m`),m.push(`${p}s`),m.join(" ")},c=d=>n?"text-green-500 dark:text-green-400 text-[11px]":t?i?"text-[11px] dark:text-gray-300":"text-[12px] dark:text-gray-300":d<0?"text-[10px] text-red-500 dark:text-red-400":d<=60?"text-[10px] text-yellow-500 dark:text-yellow-400":"text-[10px] text-green-500 dark:text-green-400",u=n?s:r;return typeof u!="number"||isNaN(u)?b.jsx("span",{className:"text-gray-400 dark:text-gray-500 text-sm font-mono",children:"-- --"}):b.jsx("span",{className:`font-mono ${c(u)}`,children:l(u)})},Dx=({error:e,onRetry:t,fallbackPath:n})=>{const[i,r]=v.useState(!1),[o,s]=v.useState(!1),a=async()=>{s(!0);try{n?window.location.href=n:window.location.reload()}finally{s(!1)}},l=()=>{t()};return v.useEffect(()=>{typeof window<"u"&&window.Sentry&&window.Sentry.captureException(e)},[e]),b.jsx("div",{className:"fixed inset-0 z-[9999] overflow-auto",style:{backgroundColor:"var(--app-bg-color, #ffffff)"},children:b.jsx("div",{className:"flex items-center justify-center min-h-screen w-full p-4 sm:p-8 font-sans",children:b.jsxs("div",{className:"shadow-md dark:shadow-lg rounded-lg p-6 sm:p-10 max-w-xl w-full text-center focus:outline-none my-8",style:{backgroundColor:"var(--bg-color)",border:"1px solid var(--border-color)"},children:[b.jsxs("div",{className:"mb-8",children:[b.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full mb-5",style:{backgroundColor:"rgba(255, 101, 3, 0.1)",color:"var(--brand-orange)"},children:b.jsx(vc,{size:32})}),b.jsx("h2",{className:"text-xl font-semibold mb-3 leading-snug",style:{color:"var(--text-color)"},children:"Something went wrong"}),b.jsx("p",{className:"text-base leading-relaxed max-w-md mx-auto",style:{color:"var(--secondary-text-color)"},children:"An unexpected error occurred. Please try refreshing the page"})]}),b.jsxs("div",{className:"flex flex-wrap justify-center gap-3 mb-8",children:[b.jsxs("button",{className:"bg-brand-primary inline-flex items-center justify-center gap-2 px-5 py-3 rounded-md font-medium text-sm transition-all duration-150 min-w-[120px] focus:outline-none disabled:opacity-65 disabled:cursor-not-allowed disabled:pointer-events-none",onClick:l,disabled:o,children:[b.jsx(wx,{size:16,className:o?"animate-spin ":""}),"Try Again"]}),b.jsxs("button",{className:"inline-flex items-center justify-center gap-2 px-5 py-3 rounded-md font-medium text-sm transition-all duration-150 min-w-[120px] focus:outline-none disabled:opacity-65 disabled:cursor-not-allowed disabled:pointer-events-none",style:{backgroundColor:"var(--hover-bg-color)",color:"var(--text-color)"},onMouseEnter:c=>{c.currentTarget.style.backgroundColor="var(--border-color)"},onMouseLeave:c=>{c.currentTarget.style.backgroundColor="var(--hover-bg-color)"},onClick:a,disabled:o,children:[b.jsx(hx,{size:16}),n?"Go to Home":"Refresh Page"]})]}),process.env.NODE_ENV!=="production"&&b.jsxs("div",{className:"pt-6",style:{borderTop:"1px solid var(--border-color)"},children:[b.jsxs("button",{className:"inline-flex items-center gap-2 text-sm font-medium py-2 px-3 rounded transition-colors",style:{color:"var(--brand-orange)"},onMouseEnter:c=>{c.currentTarget.style.backgroundColor="var(--hover-bg-color)"},onMouseLeave:c=>{c.currentTarget.style.backgroundColor="transparent"},onClick:()=>r(!i),children:[i?b.jsx(xx,{size:16}):b.jsx(yx,{size:16}),i?"Hide":"Show"," Error Details"]}),i&&b.jsxs("div",{className:"mt-5 text-left p-5 rounded-md max-h-[400px] overflow-auto",style:{backgroundColor:"var(--hover-bg-color)",border:"1px solid var(--border-color)"},children:[b.jsxs("div",{className:"mb-4 flex flex-col gap-2",children:[b.jsx("span",{className:"font-semibold text-sm",style:{color:"var(--text-color)"},children:"Error Message:"}),b.jsx("code",{className:"text-sm leading-snug break-words p-2 rounded font-mono",style:{backgroundColor:"rgba(239, 68, 68, 0.1)",color:"#dc2626",border:"1px solid rgba(239, 68, 68, 0.3)"},children:e.message})]}),b.jsxs("div",{className:"mb-4 flex flex-col gap-2",children:[b.jsx("span",{className:"font-semibold text-sm",style:{color:"var(--text-color)"},children:"Timestamp:"}),b.jsx("span",{className:"text-sm leading-snug break-words",style:{color:"var(--text-color)"},children:new Date().toLocaleString()})]}),e.stack&&b.jsxs("div",{className:"mb-0 flex flex-col gap-2",children:[b.jsx("span",{className:"font-semibold text-sm",style:{color:"var(--text-color)"},children:"Stack Trace:"}),b.jsx("pre",{className:"text-sm leading-snug break-words p-4 rounded font-mono text-xs leading-relaxed overflow-auto whitespace-pre-wrap max-h-[300px]",style:{backgroundColor:"var(--brand-dark)",color:"#f9fafb",border:"1px solid var(--border-color)"},children:e.stack})]})]})]})]})})})};class Vx extends v.Component{constructor(t){super(t),this.handleReset=()=>{this.setState({hasError:!1,error:null,errorInfo:null}),this.props.onReset&&this.props.onReset()},this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){typeof window<"u"&&window.Sentry&&window.Sentry.captureException(t),this.setState({errorInfo:{componentStack:n.componentStack||""}}),this.props.onError&&this.props.onError(t,{componentStack:n.componentStack||""})}render(){return this.state.hasError&&this.state.error?b.jsx(Dx,{error:this.state.error,onRetry:this.handleReset,fallbackPath:this.props.fallbackPath}):this.props.children}}class jx extends v.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){var i,r;console.error("Component error:",t,n),(r=(i=this.props).onError)==null||r.call(i,t,n),typeof window<"u"&&window.Sentry&&window.Sentry.captureException(t,{contexts:{react:{componentStack:n.componentStack}}})}render(){var t;return this.state.hasError?this.props.fallback?this.props.fallback:b.jsxs("div",{className:"p-4 rounded",style:{backgroundColor:"rgba(239, 68, 68, 0.1)",border:"1px solid rgba(239, 68, 68, 0.3)"},children:[b.jsx("p",{className:"text-sm",style:{color:"#dc2626"},children:"Something went wrong displaying this component."}),process.env.NODE_ENV==="development"&&b.jsxs("details",{className:"mt-2",children:[b.jsx("summary",{className:"cursor-pointer text-xs",style:{color:"var(--text-color)"},children:"Error details"}),b.jsx("pre",{className:"mt-1 text-xs overflow-auto",style:{color:"var(--text-color)"},children:(t=this.state.error)==null?void 0:t.toString()})]})]}):this.props.children}}const Bx=({used:e,max:t,resourceName:n,warningThreshold:i=5,className:r=""})=>{const o=t-e;if(!t)return null;const a=o<=0?"exhausted":o<=i?"warning":"available",l=()=>{switch(a){case"exhausted":return{backgroundColor:"var(--status-error-bg)",color:"var(--status-error-text)",border:"1px solid var(--status-error-border)"};case"warning":return{backgroundColor:"var(--status-warning-bg)",color:"var(--status-warning-text)",border:"1px solid var(--status-warning-border)"};case"available":default:return{backgroundColor:"var(--status-success-bg)",color:"var(--status-success-text)",border:"1px solid var(--status-success-border)"}}};return b.jsxs("div",{className:`ml-2 px-2 py-1 rounded flex items-center gap-1 text-xs font-semibold ${r}`,style:l(),children:[b.jsxs("span",{children:[e," / ",t," (",o," available)"]}),a==="exhausted"&&b.jsxs("span",{className:"ml-2 font-semibold",children:["No more ",n," can be added."]})]})},$x=({displayText:e,hasMoreData:t,restDataLength:n,onClick:i,isTruncatedData:r,tooltipText:o="",customButtonEl:s})=>b.jsxs("div",{className:"flex gap-2 items-center",children:[b.jsx("div",{children:b.jsx("span",{children:b.jsx(gr,{text:o,isVisible:r,children:e})})}),t&&b.jsx("button",{className:"rounded px-[3px] flex items-center justify-center cursor-pointer transition border-brand-primary text-brand-primary hover:bg-brand-surface-subtle",style:{border:"1px solid var(--brand-orange)",color:"var(--brand-orange)"},onMouseEnter:a=>a.currentTarget.style.backgroundColor="var(--brand-light)",onMouseLeave:a=>a.currentTarget.style.backgroundColor="transparent",onClick:a=>{a.stopPropagation(),i()},children:s||b.jsx(b.Fragment,{children:b.jsxs("span",{className:"text-xs",children:["+",n&&Number(n)>0?n:""]})})})]}),Ri={low:{label:"Low"},medium:{min:40,label:"Medium"},high:{min:70,label:"High"},critical:{min:90,label:"Critical"}},Hx={low:{level:"low",label:Ri.low.label,color:"text-white",backgroundColor:"bg-green-500"},medium:{level:"medium",label:Ri.medium.label,color:"text-white",backgroundColor:"bg-yellow-500"},high:{level:"high",label:Ri.high.label,color:"text-white",backgroundColor:"bg-orange-500"},critical:{level:"critical",label:Ri.critical.label,color:"text-white",backgroundColor:"bg-red-500"}},wc=e=>e>=Ri.critical.min?"critical":e>=Ri.high.min?"high":e>=Ri.medium.min?"medium":"low",ch=e=>{const t=wc(e);return Hx[t]},Gx=e=>{const t=wc(e);return t==="high"||t==="critical"},zx=({score:e,customStyles:t})=>{const{label:n,backgroundColor:i,color:r}=ch(e);return b.jsx("span",{className:zt("px-2 py-1 rounded text-xs font-semibold",i,r,t),children:n})},uh=(e={})=>{const{fallbackPath:t="/assets",basePath:n=e.basePath||t}=e;return{getAssetPath:v.useMemo(()=>r=>{if(!r)return n;const o=r.startsWith("/")?r.slice(1):r;return`${n.endsWith("/")?n.slice(0,-1):n}/${o}`},[n]),basePath:n}},dh=e=>{const{getAssetPath:t}=uh(),n=v.useMemo(()=>!e||e.trim()===""?t("files/unknown_file.svg"):t(`files/${e.toLowerCase()}.svg`),[e,t]),i=v.useMemo(()=>t("files/unknown_file.svg"),[t]);return{iconPath:n,fallbackPath:i}},Wx=({category:e,className:t="w-3 h-4 object-cover"})=>{const{iconPath:n,fallbackPath:i}=dh(e),[r,o]=v.useState(!1),s=v.useCallback(()=>{o(!0)},[]),a=r?i:n;return b.jsx("img",{src:a,alt:e||"unknown file",className:t,onError:s})},fh=({message:e="No Active Attributes Present!"})=>b.jsxs("div",{className:"flex gap-2 align-center p-2 text-xs font-medium rounded-sm bg-yellow-200 text-yellow-700 w-full",children:[b.jsx(vc,{role:"img",size:14}),b.jsx("span",{children:e})]}),Zx=({icon:e,title:t="Select Country"})=>{const n=v.useRef(null),[i,r]=v.useState(!1);v.useEffect(()=>{const s=n.current;s&&r(s.scrollWidth>s.clientWidth)},[t]);const o=b.jsx("p",{ref:n,className:"overflow-hidden text-ellipsis whitespace-nowrap max-w-36",children:t});return b.jsxs("div",{className:"px-2 border border-gray-300 dark:border-gray-600 rounded bg-white dark:bg-gray-800 text-gray-400 dark:text-gray-300 text-sm text-center h-[30px] flex items-center justify-center",children:[b.jsx("img",{src:e,alt:t,className:"w-4 h-4 mr-2 rounded-full object-cover"}),i?b.jsx(gr,{text:t,children:o}):o]})},Xx=({isOpen:e,onDismiss:t,summaryData:n,errors:i=[],onDownload:r,onRetry:o,title:s,dataType:a})=>{if(v.useEffect(()=>{if(!e)return;const d=f=>{f.key==="Escape"&&t()};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[e,t]),!e)return null;const l=n.total>0?n.success/n.total*100:0,[c,u]=v.useState(!0);return b.jsx("div",{role:"dialog",className:"fixed inset-0 z-[1000] flex items-center justify-center bg-black/40",onClick:t,children:b.jsxs("div",{className:"relative w-full min-w-[320px] max-w-[600px] rounded-lg shadow-2xl",style:{backgroundColor:"var(--bg-color)",border:"1px solid var(--border-color)"},onClick:d=>d.stopPropagation(),children:[b.jsx("button",{onClick:t,"aria-label":"Close",className:"absolute right-4 top-4 text-xl",style:{color:"var(--secondary-text-color)"},onMouseEnter:d=>d.currentTarget.style.color="var(--text-color)",onMouseLeave:d=>d.currentTarget.style.color="var(--secondary-text-color)",children:"×"}),b.jsxs("div",{className:"p-4 border-b",style:{borderColor:"var(--border-color)"},children:[b.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[b.jsx(Rx,{className:"text-blue-500",size:20}),b.jsx("h3",{className:"text-lg font-semibold",style:{color:"var(--text-color)"},children:s??"Result"})]}),b.jsxs("div",{className:"grid grid-cols-3 gap-4 mb-4",children:[b.jsxs("div",{className:"text-center",children:[b.jsx("div",{className:"text-2xl font-bold",style:{color:"var(--text-color)"},children:n.total}),b.jsx("div",{className:"text-sm",style:{color:"var(--secondary-text-color)"},children:"Total"})]}),b.jsxs("div",{className:"text-center",children:[b.jsx("div",{className:"text-2xl font-bold text-green-600 dark:text-green-400",children:n.success}),b.jsx("div",{className:"text-sm",style:{color:"var(--secondary-text-color)"},children:"Success"})]}),b.jsxs("div",{className:"text-center",children:[b.jsx("div",{className:"text-2xl font-bold text-red-600 dark:text-red-400",children:n.failed}),b.jsx("div",{className:"text-sm",style:{color:"var(--secondary-text-color)"},children:"Failed"})]})]}),b.jsx("div",{className:"w-full rounded-full h-2",style:{backgroundColor:"var(--brand-light)"},children:b.jsx("div",{className:"bg-green-600 dark:bg-green-400 h-2 rounded-full transition-all duration-500",style:{width:`${l}%`}})}),b.jsxs("div",{className:"text-sm font-bold mt-2",style:{color:"var(--secondary-text-color)"},children:[l.toFixed(0),"% successful"]})]}),i.length>0&&b.jsxs("div",{className:"p-4 border-b",style:{borderColor:"var(--border-color)"},children:[b.jsxs("button",{onClick:()=>u(!c),className:"flex items-center justify-between w-full text-left hover:bg-opacity-50 rounded p-2 -m-2 transition-colors",style:{backgroundColor:"transparent"},onMouseEnter:d=>d.currentTarget.style.backgroundColor="var(--hover-bg-color)",onMouseLeave:d=>d.currentTarget.style.backgroundColor="transparent",children:[b.jsxs("h4",{className:"text-md font-medium flex items-center gap-2",style:{color:"var(--text-color)"},children:[b.jsx(Sx,{className:"text-amber-500"}),"Error Details (",i.length," issues)"]}),c?b.jsx(Ax,{style:{color:"var(--secondary-text-color)"}}):b.jsx(_x,{style:{color:"var(--secondary-text-color)"}})]}),c&&b.jsx("div",{className:"mt-4 space-y-2 max-h-60 overflow-y-auto",children:i.map(d=>b.jsxs("div",{className:"p-3 rounded text-sm",style:{backgroundColor:"rgba(239, 68, 68, 0.1)",border:"1px solid rgba(239, 68, 68, 0.3)"},children:[b.jsxs("div",{className:"font-medium",style:{color:"#dc2626"},children:[d.field?`${d.field}: `:"",d.error]}),d.value&&b.jsxs("div",{className:"mt-1 text-xs",style:{color:"var(--secondary-text-color)"},children:["Value: ",d.value]})]},d.id))})]}),b.jsxs("div",{className:"p-4 flex flex-wrap justify-end gap-2",children:[r&&b.jsxs("button",{onClick:r,className:"px-4 py-2 rounded-md flex items-center gap-2 transition-colors",style:{backgroundColor:"var(--hover-bg-color)",color:"var(--text-color)",border:"1px solid var(--border-color)"},onMouseEnter:d=>d.currentTarget.style.backgroundColor="var(--brand-light)",onMouseLeave:d=>d.currentTarget.style.backgroundColor="var(--hover-bg-color)",children:[b.jsx(ka,{}),"Download Errors"]}),o&&b.jsxs("button",{onClick:o,className:"px-4 py-2 rounded-md flex items-center gap-2 bg-brand-primary text-white hover:bg-opacity-90 transition-colors",children:[b.jsx(kx,{}),"Retry"]}),b.jsx("button",{onClick:t,className:"px-4 py-2 rounded-md transition-colors",style:{backgroundColor:"var(--hover-bg-color)",color:"var(--text-color)",border:"1px solid var(--border-color)"},onMouseEnter:d=>d.currentTarget.style.backgroundColor="var(--brand-light)",onMouseLeave:d=>d.currentTarget.style.backgroundColor="var(--hover-bg-color)",children:"Close"})]})]})})},Yx=({isVisible:e,currentStep:t,error:n,onDismiss:i})=>{if(!e)return null;const r=(o,s)=>s?b.jsx(Mx,{className:"w-6 h-6 text-green-600 dark:text-green-400"}):o?b.jsx("div",{className:"animate-spin rounded-full h-6 w-6",style:{borderWidth:"2px",borderStyle:"solid",borderColor:"var(--brand-light)",borderTopColor:"var(--brand-orange)"}}):b.jsx("div",{className:"w-6 h-6 border-2 rounded-full",style:{borderColor:"var(--border-color)"}});return b.jsx("div",{className:"fixed inset-0 bg-black/80 backdrop-blur-sm flex items-center justify-center z-50",children:b.jsxs("div",{className:"rounded-lg shadow-2xl p-8 max-w-md w-full mx-4 relative",style:{backgroundColor:"var(--bg-color)",border:"1px solid var(--border-color)"},children:[n&&i&&b.jsx("button",{onClick:i,className:"absolute top-4 right-4 p-2 transition-colors",style:{color:"var(--secondary-text-color)"},onMouseEnter:o=>o.currentTarget.style.color="var(--text-color)",onMouseLeave:o=>o.currentTarget.style.color="var(--secondary-text-color)",children:b.jsx(Px,{className:"w-5 h-5"})}),b.jsxs("div",{className:"text-center mb-8",children:[b.jsx("div",{className:"flex items-center justify-center mb-4",children:b.jsx(ka,{className:"w-12 h-12 text-brand-primary"})}),b.jsx("h2",{className:"text-2xl font-bold mb-2",style:{color:"var(--text-color)"},children:"Installing Update"}),b.jsx("p",{style:{color:"var(--secondary-text-color)"},children:"Please wait while we install the update safely"})]}),n&&b.jsxs("div",{className:"mb-6 p-4 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg",children:[b.jsxs("div",{className:"flex items-center space-x-2",children:[b.jsx(Ad,{className:"w-5 h-5 text-red-600 dark:text-red-400"}),b.jsx("p",{className:"text-sm text-red-700 dark:text-red-300 font-medium",children:"Installation Failed"})]}),b.jsx("p",{className:"text-sm text-red-600 dark:text-red-400 mt-1",children:n}),b.jsx("div",{className:"mt-3 flex space-x-2",children:b.jsx("button",{onClick:i,className:"px-3 py-1.5 bg-red-600 text-white text-sm rounded hover:bg-red-700 transition-colors",children:"Close"})})]}),b.jsxs("div",{className:"space-y-4",children:[b.jsxs("div",{className:"flex items-center space-x-3",children:[r(t==="backup",t==="install"||t==="complete"),b.jsxs("div",{className:"flex-1",children:[b.jsxs("div",{className:"flex items-center space-x-2",children:[b.jsx(Ex,{className:"w-4 h-4",style:{color:"var(--secondary-text-color)"}}),b.jsx("span",{className:"text-sm font-medium",style:{color:"var(--text-color)"},children:"Database Backup"})]}),b.jsx("p",{className:"text-xs",style:{color:"var(--secondary-text-color)"},children:t==="backup"?"Creating secure backup...":t==="install"||t==="complete"?"Backup completed":"Pending"})]})]}),b.jsxs("div",{className:"flex items-center space-x-3",children:[r(t==="install",t==="complete"),b.jsxs("div",{className:"flex-1",children:[b.jsxs("div",{className:"flex items-center space-x-2",children:[b.jsx(ka,{className:"w-4 h-4",style:{color:"var(--secondary-text-color)"}}),b.jsx("span",{className:"text-sm font-medium",style:{color:"var(--text-color)"},children:"Update Installation"})]}),b.jsx("p",{className:"text-xs",style:{color:"var(--secondary-text-color)"},children:t==="install"?"Installing update...":t==="complete"?"Installation completed":"Pending"})]})]})]}),b.jsx("div",{className:"mt-6",children:b.jsx("div",{className:"w-full rounded-full h-2",style:{backgroundColor:"var(--brand-light)"},children:b.jsx("div",{className:"h-2 rounded-full transition-all duration-500",style:{width:t==="backup"?"50%":"100%",backgroundColor:"var(--brand-orange)"}})})}),b.jsx("div",{className:"mt-6 p-3 bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg",children:b.jsxs("div",{className:"flex items-start space-x-2",children:[b.jsx(Ad,{className:"w-4 h-4 text-yellow-600 dark:text-yellow-400 mt-0.5 flex-shrink-0"}),b.jsxs("p",{className:"text-xs text-yellow-700 dark:text-yellow-300",children:[b.jsx("strong",{children:"Important:"})," Do not close the application during this process. The app will restart automatically after installation."]})]})})]})})},hh=({confidenceData:e,children:t,position:n="top"})=>{const[i,r]=v.useState(!1),[o,s]=v.useState({}),[a,l]=v.useState({}),c=v.useRef(null),u=v.useRef(null);v.useEffect(()=>{if(!i||!c.current)return;const p=c.current.getBoundingClientRect(),m=u.current;if(!m)return;const C=m.getBoundingClientRect(),y=window.innerWidth,x=window.innerHeight;let I=n,w=0,R=0,E=0,S=0;switch(n==="top"&&p.top-C.height<10?I="bottom":n==="bottom"&&p.bottom+C.height>x-10?I="top":n==="left"&&p.left-C.width<10?I="right":n==="right"&&p.right+C.width>y-10&&(I="left"),I){case"top":w=p.top-C.height-8,R=p.left+p.width/2-C.width/2,E=C.height-4,S=C.width/2-5;break;case"bottom":w=p.bottom+8,R=p.left+p.width/2-C.width/2,E=-5,S=C.width/2-5;break;case"left":w=p.top+p.height/2-C.height/2,R=p.left-C.width-8,E=C.height/2-5,S=C.width-4;break;case"right":w=p.top+p.height/2-C.height/2,R=p.right+8,E=C.height/2-5,S=-5;break}s({top:`${w}px`,left:`${R}px`,opacity:1,visibility:"visible"}),l({top:`${E}px`,left:`${S}px`,transform:"rotate(45deg)"})},[i,n]);const d=p=>p>=.8?"text-green-600":p>=.6?"text-yellow-600":"text-red-600",f=p=>p>=.8?"High":p>=.6?"Medium":"Low",h=p=>{switch(p){case"column_name":return"Based on column name analysis";case"sample_data":return"Based on sample data analysis";default:return"Confidence score available"}},g=()=>{const{confidence_score:p,classification_reason:m,sample_data_preview:C,confidence_reason:y}=e;return b.jsxs("div",{className:"confidence-tooltip-content",children:[b.jsx("div",{className:"confidence-tooltip-header",children:b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(Q4,{className:"h-4 w-4 text-blue-500"}),b.jsx("span",{className:"font-semibold",style:{color:"var(--text-color)"},children:"Classification Details"})]})}),b.jsxs("div",{className:"confidence-tooltip-body",children:[p!==void 0&&b.jsx("div",{className:"confidence-score-section",children:b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("span",{className:"text-sm font-medium",style:{color:"var(--secondary-text-color)"},children:"Confidence Score:"}),b.jsxs("span",{className:`text-sm font-bold ${d(p)}`,children:[f(p)," (",(p*100).toFixed(0),"%)"]})]})}),b.jsx("div",{className:"classification-reason-section",children:b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("span",{className:"text-sm font-medium",style:{color:"var(--secondary-text-color)"},children:"Classification Method:"}),b.jsx("span",{className:"text-sm",style:{color:"var(--text-color)"},children:h(m)})]})}),m==="sample_data"&&C&&b.jsxs("div",{className:"sample-data-section",children:[b.jsx("div",{className:"text-sm font-medium mb-1",style:{color:"var(--text-color)"},children:"Sample Data Preview:"}),b.jsx("div",{className:"text-xs p-2 rounded border max-w-xs",style:{color:"var(--text-color)",backgroundColor:"var(--hover-bg-color)",borderColor:"var(--border-color)"},children:b.jsx("div",{className:"truncate",title:C,children:C})})]}),y&&b.jsxs("div",{className:"confidence-reason-section",children:[b.jsx("div",{className:"text-sm font-medium mb-1",style:{color:"var(--text-color)"},children:"Additional Details:"}),b.jsx("div",{className:"text-xs",style:{color:"var(--secondary-text-color)"},children:y})]})]})]})};return b.jsxs("div",{className:"confidence-tooltip-wrapper",ref:c,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[t,i&&In.createPortal(b.jsxs("div",{ref:u,className:"confidence-tooltip",style:o,children:[g(),b.jsx("span",{className:"confidence-tooltip-arrow",style:a})]}),document.body)]})},Jx=({isOpen:e,imagePath:t,imageSrc:n,loadImageFromPath:i,onClose:r})=>{const[o,s]=v.useState(""),[a,l]=v.useState(!1),[c,u]=v.useState("");if(zl(e),v.useEffect(()=>{if(!e){s(""),u(""),l(!1);return}if(n){s(n),u(""),l(!1);return}t?(async()=>{l(!0),u(""),s("");try{if(i){const h=await i(t);s(h)}else s(t)}catch(h){const g=h instanceof Error?h.message:"Failed to load image";u(g),console.error("[ImagePreviewModal] Failed to load image:",h)}finally{l(!1)}})():u("No image source provided")},[e,t,n,i]),v.useEffect(()=>{if(!e)return;const f=h=>{h.key==="Escape"&&r()};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[e,r]),!e)return null;const d=b.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center z-[40] p-4 overflow-y-auto",onClick:r,children:b.jsxs("div",{className:"relative py-4 rounded-lg shadow-lg w-[95%] sm:w-[90%] md:w-[85%] lg:w-auto max-w-screen-2xl min-w-[320px] sm:min-w-[400px]",style:{backgroundColor:"var(--bg-color)",border:"1px solid var(--border-color)"},onClick:f=>f.stopPropagation(),children:[b.jsx("div",{className:"px-4",children:b.jsxs("div",{className:"flex justify-between items-center",children:[b.jsx("h2",{className:"text-lg font-semibold",style:{color:"var(--text-color)"},children:"Image Preview"}),b.jsx("button",{onClick:r,className:"text-brand-primary hover:opacity-80 transition-opacity","aria-label":"Close",children:b.jsx(Z1,{size:16})})]})}),b.jsxs("div",{className:"px-4 mt-4 pb-4",children:[a&&b.jsx("div",{className:"flex justify-center items-center py-8",style:{color:"var(--text-color)"},children:b.jsx("span",{children:"Loading image..."})}),c&&b.jsx("div",{className:"flex justify-center items-center py-8",style:{color:"var(--text-color)"},children:b.jsxs("div",{className:"text-center",children:[b.jsx("p",{className:"text-red-500 mb-2",children:"Error loading image"}),b.jsx("p",{className:"text-sm",style:{color:"var(--secondary-text-color)"},children:c})]})}),!a&&!c&&o&&b.jsx("div",{className:"flex justify-center items-center max-h-[70vh] overflow-auto",children:b.jsx("img",{src:o,alt:"Preview",className:"max-w-full max-h-[70vh] object-contain rounded",style:{border:"1px solid var(--border-color)"},onError:()=>u("Failed to load image")})})]})]})});return In.createPortal(d,document.getElementById("modal-root")||document.body)};var gh={exports:{}};/* @license
69
+ Papa Parse
70
+ v5.5.3
71
+ https://github.com/mholt/PapaParse
72
+ License: MIT
73
+ */(function(e,t){((n,i)=>{e.exports=i()})(l2,function n(){var i=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:{},r,o=!i.document&&!!i.postMessage,s=i.IS_PAPA_WORKER||!1,a={},l=0,c={};function u(S){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(M){var _=w(M);_.chunkSize=parseInt(_.chunkSize),M.step||M.chunk||(_.chunkSize=null),this._handle=new p(_),(this._handle.streamer=this)._config=_}).call(this,S),this.parseChunk=function(M,_){var P=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<P){let B=this._config.newline;B||(N=this._config.quoteChar||'"',B=this._handle.guessLineEndings(M,N)),M=[...M.split(B).slice(P)].join(B)}this.isFirstChunk&&E(this._config.beforeFirstChunk)&&(N=this._config.beforeFirstChunk(M))!==void 0&&(M=N),this.isFirstChunk=!1,this._halted=!1;var P=this._partialLine+M,N=(this._partialLine="",this._handle.parse(P,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(M=N.meta.cursor,P=(this._finished||(this._partialLine=P.substring(M-this._baseIndex),this._baseIndex=M),N&&N.data&&(this._rowCount+=N.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),s)i.postMessage({results:N,workerId:c.WORKER_ID,finished:P});else if(E(this._config.chunk)&&!_){if(this._config.chunk(N,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=N=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(N.data),this._completeResults.errors=this._completeResults.errors.concat(N.errors),this._completeResults.meta=N.meta),this._completed||!P||!E(this._config.complete)||N&&N.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),P||N&&N.meta.paused||this._nextChunk(),N}this._halted=!0},this._sendError=function(M){E(this._config.error)?this._config.error(M):s&&this._config.error&&i.postMessage({workerId:c.WORKER_ID,error:M,finished:!1})}}function d(S){var M;(S=S||{}).chunkSize||(S.chunkSize=c.RemoteChunkSize),u.call(this,S),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(_){this._input=_,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(M=new XMLHttpRequest,this._config.withCredentials&&(M.withCredentials=this._config.withCredentials),o||(M.onload=R(this._chunkLoaded,this),M.onerror=R(this._chunkError,this)),M.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var _,P=this._config.downloadRequestHeaders;for(_ in P)M.setRequestHeader(_,P[_])}var N;this._config.chunkSize&&(N=this._start+this._config.chunkSize-1,M.setRequestHeader("Range","bytes="+this._start+"-"+N));try{M.send(this._config.downloadRequestBody)}catch(B){this._chunkError(B.message)}o&&M.status===0&&this._chunkError()}},this._chunkLoaded=function(){M.readyState===4&&(M.status<200||400<=M.status?this._chunkError():(this._start+=this._config.chunkSize||M.responseText.length,this._finished=!this._config.chunkSize||this._start>=(_=>(_=_.getResponseHeader("Content-Range"))!==null?parseInt(_.substring(_.lastIndexOf("/")+1)):-1)(M),this.parseChunk(M.responseText)))},this._chunkError=function(_){_=M.statusText||_,this._sendError(new Error(_))}}function f(S){(S=S||{}).chunkSize||(S.chunkSize=c.LocalChunkSize),u.call(this,S);var M,_,P=typeof FileReader<"u";this.stream=function(N){this._input=N,_=N.slice||N.webkitSlice||N.mozSlice,P?((M=new FileReader).onload=R(this._chunkLoaded,this),M.onerror=R(this._chunkError,this)):M=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var N=this._input,B=(this._config.chunkSize&&(B=Math.min(this._start+this._config.chunkSize,this._input.size),N=_.call(N,this._start,B)),M.readAsText(N,this._config.encoding));P||this._chunkLoaded({target:{result:B}})},this._chunkLoaded=function(N){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(N.target.result)},this._chunkError=function(){this._sendError(M.error)}}function h(S){var M;u.call(this,S=S||{}),this.stream=function(_){return M=_,this._nextChunk()},this._nextChunk=function(){var _,P;if(!this._finished)return _=this._config.chunkSize,M=_?(P=M.substring(0,_),M.substring(_)):(P=M,""),this._finished=!M,this.parseChunk(P)}}function g(S){u.call(this,S=S||{});var M=[],_=!0,P=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(N){this._input=N,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){P&&M.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),M.length?this.parseChunk(M.shift()):_=!0},this._streamData=R(function(N){try{M.push(typeof N=="string"?N:N.toString(this._config.encoding)),_&&(_=!1,this._checkIsFinished(),this.parseChunk(M.shift()))}catch(B){this._streamError(B)}},this),this._streamError=R(function(N){this._streamCleanUp(),this._sendError(N)},this),this._streamEnd=R(function(){this._streamCleanUp(),P=!0,this._streamData("")},this),this._streamCleanUp=R(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function p(S){var M,_,P,N,B=Math.pow(2,53),T=-B,k=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,F=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,O=this,A=0,L=0,j=!1,G=!1,H=[],$={data:[],errors:[],meta:{}};function J(fe){return S.skipEmptyLines==="greedy"?fe.join("").trim()==="":fe.length===1&&fe[0].length===0}function le(){if($&&P&&(Oe("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),P=!1),S.skipEmptyLines&&($.data=$.data.filter(function(ce){return!J(ce)})),he()){let ce=function(z,Ne){E(S.transformHeader)&&(z=S.transformHeader(z,Ne)),H.push(z)};if($)if(Array.isArray($.data[0])){for(var fe=0;he()&&fe<$.data.length;fe++)$.data[fe].forEach(ce);$.data.splice(0,1)}else $.data.forEach(ce)}function ge(ce,z){for(var Ne=S.header?{}:[],ie=0;ie<ce.length;ie++){var re=ie,V=ce[ie],V=((oe,Y)=>(ne=>(S.dynamicTypingFunction&&S.dynamicTyping[ne]===void 0&&(S.dynamicTyping[ne]=S.dynamicTypingFunction(ne)),(S.dynamicTyping[ne]||S.dynamicTyping)===!0))(oe)?Y==="true"||Y==="TRUE"||Y!=="false"&&Y!=="FALSE"&&((ne=>{if(k.test(ne)&&(ne=parseFloat(ne),T<ne&&ne<B))return 1})(Y)?parseFloat(Y):F.test(Y)?new Date(Y):Y===""?null:Y):Y)(re=S.header?ie>=H.length?"__parsed_extra":H[ie]:re,V=S.transform?S.transform(V,re):V);re==="__parsed_extra"?(Ne[re]=Ne[re]||[],Ne[re].push(V)):Ne[re]=V}return S.header&&(ie>H.length?Oe("FieldMismatch","TooManyFields","Too many fields: expected "+H.length+" fields but parsed "+ie,L+z):ie<H.length&&Oe("FieldMismatch","TooFewFields","Too few fields: expected "+H.length+" fields but parsed "+ie,L+z)),Ne}var we;$&&(S.header||S.dynamicTyping||S.transform)&&(we=1,!$.data.length||Array.isArray($.data[0])?($.data=$.data.map(ge),we=$.data.length):$.data=ge($.data,0),S.header&&$.meta&&($.meta.fields=H),L+=we)}function he(){return S.header&&H.length===0}function Oe(fe,ge,we,ce){fe={type:fe,code:ge,message:we},ce!==void 0&&(fe.row=ce),$.errors.push(fe)}E(S.step)&&(N=S.step,S.step=function(fe){$=fe,he()?le():(le(),$.data.length!==0&&(A+=fe.data.length,S.preview&&A>S.preview?_.abort():($.data=$.data[0],N($,O))))}),this.parse=function(fe,ge,we){var ce=S.quoteChar||'"',ce=(S.newline||(S.newline=this.guessLineEndings(fe,ce)),P=!1,S.delimiter?E(S.delimiter)&&(S.delimiter=S.delimiter(fe),$.meta.delimiter=S.delimiter):((ce=((z,Ne,ie,re,V)=>{var oe,Y,ne,te;V=V||[","," ","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var ee=0;ee<V.length;ee++){for(var se,pe=V[ee],ae=0,K=0,xe=0,Q=(ne=void 0,new C({comments:re,delimiter:pe,newline:Ne,preview:10}).parse(z)),ve=0;ve<Q.data.length;ve++)ie&&J(Q.data[ve])?xe++:(se=Q.data[ve].length,K+=se,ne===void 0?ne=se:0<se&&(ae+=Math.abs(se-ne),ne=se));0<Q.data.length&&(K/=Q.data.length-xe),(Y===void 0||ae<=Y)&&(te===void 0||te<K)&&1.99<K&&(Y=ae,oe=pe,te=K)}return{successful:!!(S.delimiter=oe),bestDelimiter:oe}})(fe,S.newline,S.skipEmptyLines,S.comments,S.delimitersToGuess)).successful?S.delimiter=ce.bestDelimiter:(P=!0,S.delimiter=c.DefaultDelimiter),$.meta.delimiter=S.delimiter),w(S));return S.preview&&S.header&&ce.preview++,M=fe,_=new C(ce),$=_.parse(M,ge,we),le(),j?{meta:{paused:!0}}:$||{meta:{paused:!1}}},this.paused=function(){return j},this.pause=function(){j=!0,_.abort(),M=E(S.chunk)?"":M.substring(_.getCharIndex())},this.resume=function(){O.streamer._halted?(j=!1,O.streamer.parseChunk(M,!0)):setTimeout(O.resume,3)},this.aborted=function(){return G},this.abort=function(){G=!0,_.abort(),$.meta.aborted=!0,E(S.complete)&&S.complete($),M=""},this.guessLineEndings=function(z,ce){z=z.substring(0,1048576);var ce=new RegExp(m(ce)+"([^]*?)"+m(ce),"gm"),we=(z=z.replace(ce,"")).split("\r"),ce=z.split(`
74
+ `),z=1<ce.length&&ce[0].length<we[0].length;if(we.length===1||z)return`
75
+ `;for(var Ne=0,ie=0;ie<we.length;ie++)we[ie][0]===`
76
+ `&&Ne++;return Ne>=we.length/2?`\r
77
+ `:"\r"}}function m(S){return S.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function C(S){var M=(S=S||{}).delimiter,_=S.newline,P=S.comments,N=S.step,B=S.preview,T=S.fastMode,k=null,F=!1,O=S.quoteChar==null?'"':S.quoteChar,A=O;if(S.escapeChar!==void 0&&(A=S.escapeChar),(typeof M!="string"||-1<c.BAD_DELIMITERS.indexOf(M))&&(M=","),P===M)throw new Error("Comment character same as delimiter");P===!0?P="#":(typeof P!="string"||-1<c.BAD_DELIMITERS.indexOf(P))&&(P=!1),_!==`
78
+ `&&_!=="\r"&&_!==`\r
79
+ `&&(_=`
80
+ `);var L=0,j=!1;this.parse=function(G,H,$){if(typeof G!="string")throw new Error("Input must be a string");var J=G.length,le=M.length,he=_.length,Oe=P.length,fe=E(N),ge=[],we=[],ce=[],z=L=0;if(!G)return ae();if(T||T!==!1&&G.indexOf(O)===-1){for(var Ne=G.split(_),ie=0;ie<Ne.length;ie++){if(ce=Ne[ie],L+=ce.length,ie!==Ne.length-1)L+=_.length;else if($)return ae();if(!P||ce.substring(0,Oe)!==P){if(fe){if(ge=[],te(ce.split(M)),K(),j)return ae()}else te(ce.split(M));if(B&&B<=ie)return ge=ge.slice(0,B),ae(!0)}}return ae()}for(var re=G.indexOf(M,L),V=G.indexOf(_,L),oe=new RegExp(m(A)+m(O),"g"),Y=G.indexOf(O,L);;)if(G[L]===O)for(Y=L,L++;;){if((Y=G.indexOf(O,Y+1))===-1)return $||we.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ge.length,index:L}),se();if(Y===J-1)return se(G.substring(L,Y).replace(oe,O));if(O===A&&G[Y+1]===A)Y++;else if(O===A||Y===0||G[Y-1]!==A){re!==-1&&re<Y+1&&(re=G.indexOf(M,Y+1));var ne=ee((V=V!==-1&&V<Y+1?G.indexOf(_,Y+1):V)===-1?re:Math.min(re,V));if(G.substr(Y+1+ne,le)===M){ce.push(G.substring(L,Y).replace(oe,O)),G[L=Y+1+ne+le]!==O&&(Y=G.indexOf(O,L)),re=G.indexOf(M,L),V=G.indexOf(_,L);break}if(ne=ee(V),G.substring(Y+1+ne,Y+1+ne+he)===_){if(ce.push(G.substring(L,Y).replace(oe,O)),pe(Y+1+ne+he),re=G.indexOf(M,L),Y=G.indexOf(O,L),fe&&(K(),j))return ae();if(B&&ge.length>=B)return ae(!0);break}we.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ge.length,index:L}),Y++}}else if(P&&ce.length===0&&G.substring(L,L+Oe)===P){if(V===-1)return ae();L=V+he,V=G.indexOf(_,L),re=G.indexOf(M,L)}else if(re!==-1&&(re<V||V===-1))ce.push(G.substring(L,re)),L=re+le,re=G.indexOf(M,L);else{if(V===-1)break;if(ce.push(G.substring(L,V)),pe(V+he),fe&&(K(),j))return ae();if(B&&ge.length>=B)return ae(!0)}return se();function te(xe){ge.push(xe),z=L}function ee(xe){var Q=0;return Q=xe!==-1&&(xe=G.substring(Y+1,xe))&&xe.trim()===""?xe.length:Q}function se(xe){return $||(xe===void 0&&(xe=G.substring(L)),ce.push(xe),L=J,te(ce),fe&&K()),ae()}function pe(xe){L=xe,te(ce),ce=[],V=G.indexOf(_,L)}function ae(xe){if(S.header&&!H&&ge.length&&!F){var Q=ge[0],ve=Object.create(null),Re=new Set(Q);let $e=!1;for(let st=0;st<Q.length;st++){let He=Q[st];if(ve[He=E(S.transformHeader)?S.transformHeader(He,st):He]){let et,at=ve[He];for(;et=He+"_"+at,at++,Re.has(et););Re.add(et),Q[st]=et,ve[He]++,$e=!0,(k=k===null?{}:k)[et]=He}else ve[He]=1,Q[st]=He;Re.add(He)}$e&&console.warn("Duplicate headers found and renamed."),F=!0}return{data:ge,errors:we,meta:{delimiter:M,linebreak:_,aborted:j,truncated:!!xe,cursor:z+(H||0),renamedHeaders:k}}}function K(){N(ae()),ge=[],we=[]}},this.abort=function(){j=!0},this.getCharIndex=function(){return L}}function y(S){var M=S.data,_=a[M.workerId],P=!1;if(M.error)_.userError(M.error,M.file);else if(M.results&&M.results.data){var N={abort:function(){P=!0,x(M.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:I,resume:I};if(E(_.userStep)){for(var B=0;B<M.results.data.length&&(_.userStep({data:M.results.data[B],errors:M.results.errors,meta:M.results.meta},N),!P);B++);delete M.results}else E(_.userChunk)&&(_.userChunk(M.results,N,M.file),delete M.results)}M.finished&&!P&&x(M.workerId,M.results)}function x(S,M){var _=a[S];E(_.userComplete)&&_.userComplete(M),_.terminate(),delete a[S]}function I(){throw new Error("Not implemented.")}function w(S){if(typeof S!="object"||S===null)return S;var M,_=Array.isArray(S)?[]:{};for(M in S)_[M]=w(S[M]);return _}function R(S,M){return function(){S.apply(M,arguments)}}function E(S){return typeof S=="function"}return c.parse=function(S,M){var _=(M=M||{}).dynamicTyping||!1;if(E(_)&&(M.dynamicTypingFunction=_,_={}),M.dynamicTyping=_,M.transform=!!E(M.transform)&&M.transform,!M.worker||!c.WORKERS_SUPPORTED)return _=null,c.NODE_STREAM_INPUT,typeof S=="string"?(S=(P=>P.charCodeAt(0)!==65279?P:P.slice(1))(S),_=new(M.download?d:h)(M)):S.readable===!0&&E(S.read)&&E(S.on)?_=new g(M):(i.File&&S instanceof File||S instanceof Object)&&(_=new f(M)),_.stream(S);(_=(()=>{var P;return!!c.WORKERS_SUPPORTED&&(P=(()=>{var N=i.URL||i.webkitURL||null,B=n.toString();return c.BLOB_URL||(c.BLOB_URL=N.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",B,")();"],{type:"text/javascript"})))})(),(P=new i.Worker(P)).onmessage=y,P.id=l++,a[P.id]=P)})()).userStep=M.step,_.userChunk=M.chunk,_.userComplete=M.complete,_.userError=M.error,M.step=E(M.step),M.chunk=E(M.chunk),M.complete=E(M.complete),M.error=E(M.error),delete M.worker,_.postMessage({input:S,config:M,workerId:_.id})},c.unparse=function(S,M){var _=!1,P=!0,N=",",B=`\r
81
+ `,T='"',k=T+T,F=!1,O=null,A=!1,L=((()=>{if(typeof M=="object"){if(typeof M.delimiter!="string"||c.BAD_DELIMITERS.filter(function(H){return M.delimiter.indexOf(H)!==-1}).length||(N=M.delimiter),typeof M.quotes!="boolean"&&typeof M.quotes!="function"&&!Array.isArray(M.quotes)||(_=M.quotes),typeof M.skipEmptyLines!="boolean"&&typeof M.skipEmptyLines!="string"||(F=M.skipEmptyLines),typeof M.newline=="string"&&(B=M.newline),typeof M.quoteChar=="string"&&(T=M.quoteChar),typeof M.header=="boolean"&&(P=M.header),Array.isArray(M.columns)){if(M.columns.length===0)throw new Error("Option columns is empty");O=M.columns}M.escapeChar!==void 0&&(k=M.escapeChar+T),M.escapeFormulae instanceof RegExp?A=M.escapeFormulae:typeof M.escapeFormulae=="boolean"&&M.escapeFormulae&&(A=/^[=+\-@\t\r].*$/)}})(),new RegExp(m(T),"g"));if(typeof S=="string"&&(S=JSON.parse(S)),Array.isArray(S)){if(!S.length||Array.isArray(S[0]))return j(null,S,F);if(typeof S[0]=="object")return j(O||Object.keys(S[0]),S,F)}else if(typeof S=="object")return typeof S.data=="string"&&(S.data=JSON.parse(S.data)),Array.isArray(S.data)&&(S.fields||(S.fields=S.meta&&S.meta.fields||O),S.fields||(S.fields=Array.isArray(S.data[0])?S.fields:typeof S.data[0]=="object"?Object.keys(S.data[0]):[]),Array.isArray(S.data[0])||typeof S.data[0]=="object"||(S.data=[S.data])),j(S.fields||[],S.data||[],F);throw new Error("Unable to serialize unrecognized input");function j(H,$,J){var le="",he=(typeof H=="string"&&(H=JSON.parse(H)),typeof $=="string"&&($=JSON.parse($)),Array.isArray(H)&&0<H.length),Oe=!Array.isArray($[0]);if(he&&P){for(var fe=0;fe<H.length;fe++)0<fe&&(le+=N),le+=G(H[fe],fe);0<$.length&&(le+=B)}for(var ge=0;ge<$.length;ge++){var we=(he?H:$[ge]).length,ce=!1,z=he?Object.keys($[ge]).length===0:$[ge].length===0;if(J&&!he&&(ce=J==="greedy"?$[ge].join("").trim()==="":$[ge].length===1&&$[ge][0].length===0),J==="greedy"&&he){for(var Ne=[],ie=0;ie<we;ie++){var re=Oe?H[ie]:ie;Ne.push($[ge][re])}ce=Ne.join("").trim()===""}if(!ce){for(var V=0;V<we;V++){0<V&&!z&&(le+=N);var oe=he&&Oe?H[V]:V;le+=G($[ge][oe],V)}ge<$.length-1&&(!J||0<we&&!z)&&(le+=B)}}return le}function G(H,$){var J,le;return H==null?"":H.constructor===Date?JSON.stringify(H).slice(1,25):(le=!1,A&&typeof H=="string"&&A.test(H)&&(H="'"+H,le=!0),J=H.toString().replace(L,k),(le=le||_===!0||typeof _=="function"&&_(H,$)||Array.isArray(_)&&_[$]||((he,Oe)=>{for(var fe=0;fe<Oe.length;fe++)if(-1<he.indexOf(Oe[fe]))return!0;return!1})(J,c.BAD_DELIMITERS)||-1<J.indexOf(N)||J.charAt(0)===" "||J.charAt(J.length-1)===" ")?T+J+T:J)}},c.RECORD_SEP="",c.UNIT_SEP="",c.BYTE_ORDER_MARK="\uFEFF",c.BAD_DELIMITERS=["\r",`
82
+ `,'"',c.BYTE_ORDER_MARK],c.WORKERS_SUPPORTED=!o&&!!i.Worker,c.NODE_STREAM_INPUT=1,c.LocalChunkSize=10485760,c.RemoteChunkSize=5242880,c.DefaultDelimiter=",",c.Parser=C,c.ParserHandle=p,c.NetworkStreamer=d,c.FileStreamer=f,c.StringStreamer=h,c.ReadableStreamStreamer=g,i.jQuery&&((r=i.jQuery).fn.parse=function(S){var M=S.config||{},_=[];return this.each(function(B){if(!(r(this).prop("tagName").toUpperCase()==="INPUT"&&r(this).attr("type").toLowerCase()==="file"&&i.FileReader)||!this.files||this.files.length===0)return!0;for(var T=0;T<this.files.length;T++)_.push({file:this.files[T],inputElem:this,instanceConfig:r.extend({},M)})}),P(),this;function P(){if(_.length===0)E(S.complete)&&S.complete();else{var B,T,k,F,O=_[0];if(E(S.before)){var A=S.before(O.file,O.inputElem);if(typeof A=="object"){if(A.action==="abort")return B="AbortError",T=O.file,k=O.inputElem,F=A.reason,void(E(S.error)&&S.error({name:B},T,k,F));if(A.action==="skip")return void N();typeof A.config=="object"&&(O.instanceConfig=r.extend(O.instanceConfig,A.config))}else if(A==="skip")return void N()}var L=O.instanceConfig.complete;O.instanceConfig.complete=function(j){E(L)&&L(j,O.file,O.inputElem),N()},c.parse(O.file,O.instanceConfig)}}function N(){_.splice(0,1),P()}}),s&&(i.onmessage=function(S){S=S.data,c.WORKER_ID===void 0&&S&&(c.WORKER_ID=S.workerId),typeof S.input=="string"?i.postMessage({workerId:c.WORKER_ID,results:c.parse(S.input,S.config),finished:!0}):(i.File&&S.input instanceof File||S.input instanceof Object)&&(S=c.parse(S.input,S.config))&&i.postMessage({workerId:c.WORKER_ID,results:S,finished:!0})}),(d.prototype=Object.create(u.prototype)).constructor=d,(f.prototype=Object.create(u.prototype)).constructor=f,(h.prototype=Object.create(h.prototype)).constructor=h,(g.prototype=Object.create(u.prototype)).constructor=g,c})})(gh);var Ux=gh.exports;const Qx=c2(Ux),qx=(e="database")=>{let t=[],n=[];e==="database"?(t=["Connection Name","Port","Username","Password","Database Name","Server URL","Scan Order","Scan Scope","Scan Scope Value","Department","Country ISO2"],n=[["ExampleConnection1","3306","admin","pass123","server1","http://server1.com","Sequential","Number","200","Finance","CL"],["ExampleConnection2","5432","root","securePass","example_db","http://server2.com","Random","Number","100","Accounting","US"],["ExampleConnection3","1521","oracle_admin","oraclePass","oracle_db","http://server3.com","Random","Percentage","50","Information Technology (IT)","IN"]]):e==="shared_drive"&&(t=["Connection Name","IP Address","Username","Password","Host Name","Mount Path","Department","Country ISO2"],n=[["SharedDriveConn1","192.168.1.10","shared_admin","fin@123","finance-server-01","/mnt/finance","Finance","CL"],["SharedDriveConn2","10.0.0.25","acc_user","acc@secure","accounting-host","/mnt/accounting","Accounting","US"],["SharedDriveConn3","172.16.0.5","it_admin","it!pass2024","it-nfs-01","/mnt/it_shared","Information Technology (IT)","IN"]]);const i=[t.join(","),...n.map(a=>a.join(","))].join(`
83
+ `),r=new Blob([i],{type:"text/csv"}),o=window.URL.createObjectURL(r),s=document.createElement("a");s.href=o,s.setAttribute("download","sample.csv"),document.body.appendChild(s),s.click(),document.body.removeChild(s)},Kx=(e,t="database")=>t==="database"?e.map(n=>{var i,r,o,s,a,l,c,u,d,f,h;return{"Connection Name":((i=n["Connection Name"])==null?void 0:i.trim())||"",Port:((r=n.Port)==null?void 0:r.trim())||"",Username:((o=n.Username)==null?void 0:o.trim())||"",Password:((s=n.Password)==null?void 0:s.trim())||"","Database Name":((a=n["Database Name"])==null?void 0:a.trim())||"","Server URL":((l=n["Server URL"])==null?void 0:l.trim())||"","Scan Order":((c=n["Scan Order"])==null?void 0:c.trim())||"","Scan Scope":((u=n["Scan Scope"])==null?void 0:u.trim())||"","Scan Scope Value":((d=n["Scan Scope Value"])==null?void 0:d.trim())||"",Department:((f=n.Department)==null?void 0:f.trim())||"","Country ISO2":((h=n["Country ISO2"])==null?void 0:h.trim())||""}}):t==="shared_drive"?e.map(n=>{var i,r,o,s,a,l,c,u;return{"Connection Name":((i=n["Connection Name"])==null?void 0:i.trim())||"","IP Address":((r=n["IP Address"])==null?void 0:r.trim())||"",Department:((o=n.Department)==null?void 0:o.trim())||"","Country ISO2":((s=n["Country ISO2"])==null?void 0:s.trim())||"",Username:((a=n.Username)==null?void 0:a.trim())||"",Password:((l=n.Password)==null?void 0:l.trim())||"","Host Name":((c=n["Host Name"])==null?void 0:c.trim())||"","Mount Path":((u=n["Mount Path"])==null?void 0:u.trim())||""}}):[],ey="••••••••••",ty=({csvType:e="database",connectionType:t,onClose:n,onConfirm:i,TestConnection:r})=>{const[o,s]=v.useState(null),[a,l]=v.useState([]),[c,u]=v.useState(new Set),d=h=>{if(h.target.files){const g=h.target.files[0];s(g),f(g)}},f=h=>{const g=new FileReader;g.onload=({target:p})=>{p!=null&&p.result&&Qx.parse(p.result,{header:!0,skipEmptyLines:!0,complete:m=>{l(Kx(m.data,e))}})},g.readAsText(h)};return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"fixed inset-0 z-40 bg-gray-900 bg-opacity-50 backdrop-blur-sm"}),b.jsx("div",{className:"fixed inset-0 flex items-center justify-center z-40",children:b.jsxs("div",{className:`p-8 rounded-lg shadow-2xl w-full ${a.length>0?"max-w-[78vw]":"w-full max-w-3xl"} relative`,style:{backgroundColor:"var(--bg-color)"},children:[b.jsxs("div",{className:"flex justify-between items-center",children:[b.jsx("h3",{className:"text-xl font-semibold",style:{color:"var(--text-color)",fontFamily:"'Afacad', 'Rubik', sans-serif"},children:"Import Connectors"}),b.jsx("button",{className:"text-2xl transition-colors text-brand-primary hover:opacity-80",onClick:n,children:"×"})]}),e==="database"?b.jsx("div",{className:"w-full max-w-2xl bg-yellow-100 dark:bg-yellow-900/30 border border-yellow-400 dark:border-yellow-700 text-yellow-800 dark:text-yellow-200 px-4 py-2 rounded relative mt-2",role:"alert",children:b.jsxs("strong",{className:"font-bold flex gap-2 text-sm items-center",children:[b.jsx(vc,{}),"Import connectors works only for connection without SSH Configuration"]})}):b.jsx("div",{className:"w-full max-w-2xl px-4 py-2 rounded relative mt-2",style:{backgroundColor:"var(--brand-light)",border:"1px solid var(--brand-orange)",color:"var(--brand-dark)"},role:"alert",children:b.jsxs("strong",{className:"font-normal flex gap-2 text-sm items-center",children:[b.jsx(Q4,{style:{color:"var(--brand-orange)"}}),"Please refer to the sample CSV before uploading"]})}),a.length>0&&b.jsx("div",{className:"max-h-[60vh] overflow-auto border rounded-md shadow-sm mt-4",children:b.jsxs("table",{className:"min-w-full max-h-[60vh] border-collapse",children:[b.jsx("thead",{children:b.jsxs("tr",{className:"sticky top-0 z-10",style:{backgroundColor:"var(--brand-light)"},children:[Object.keys(a[0]).map((h,g)=>b.jsx("th",{className:"p-3 text-left",style:{border:"1px solid var(--border-color)",color:"var(--brand-dark)"},children:h},g)),t&&r&&b.jsx("th",{style:{border:"1px solid var(--border-color)",color:"var(--brand-dark)"},children:"Test Status"})]})}),b.jsx("tbody",{children:a.map((h,g)=>b.jsxs("tr",{className:`${c.has(g)?"bg-red-50 dark:bg-red-900/20":g%2===0?"bg-white dark:bg-[#23272f]":"bg-gray-50 dark:bg-[#1e293b]"}`,children:[Object.entries(h).map(([p,m],C)=>b.jsx("td",{className:"border p-3 text-gray-600 dark:text-gray-200",children:p.toLowerCase().includes("password")?ey:m},C)),t&&r&&b.jsx("td",{className:"border p-3 text-gray-600 dark:text-gray-200",children:b.jsx("div",{className:"flex justify-center",children:b.jsx(r,{type:t,host:h["Server URL"],port:parseInt(h.PORT?h.PORT:"3306",10),ipAddress:h["IP Address"],username:h.Username,password:h.Password,database:h["Database Name"],mountPath:h["Mount Path"],hostName:h["Host Name"],onTestResult:p=>{p.success?u(m=>{const C=new Set(m);return C.delete(g),C}):u(m=>new Set([...m,g]))},enableCopy:!1,enableTechnicalDetails:!1,customStyles:"mb-0"})})})]},g))})]})}),b.jsxs("div",{className:"flex flex-col items-center mt-6",children:[b.jsx("label",{htmlFor:"file-upload",className:"px-4 py-2 bg-brand-primary text-sm text-white rounded-md cursor-pointer hover:bg-[var(--brand-orange)]/90 transition-all shadow",children:o?o.name:"Add File"}),b.jsx("input",{type:"file",id:"file-upload",className:"hidden",accept:".csv",onChange:d})]}),b.jsxs("div",{className:"flex justify-between items-center mt-6",children:[b.jsx("button",{onClick:()=>qx(e),className:"text-sm text-brand-primary hover:opacity-80 underline transition-colors",children:"Download Sample CSV"}),a.length>0&&b.jsx("button",{className:"px-4 py-2 bg-brand-primary text-sm text-white rounded-md shadow hover:bg-[var(--brand-orange)]/90 transition-all",onClick:()=>{i(a),n()},children:"Confirm Import"})]})]})})]})},ny=({title:e})=>b.jsxs("div",{className:"nochartdata-container w-full h-full flex flex-col items-center justify-center text-center select-none",children:[b.jsx("div",{className:"items-center top-0 left-0 p-[1.25rem] absolute justify-center select-none text-[18px] font-[600] p-3",style:{color:"var(--chart-text-color)",fontFamily:"'Afacad', 'Rubik', sans-serif"},children:e}),b.jsxs("div",{className:"flex flex-col items-center justify-center w-full h-full",children:[b.jsx(Ix,{size:80,style:{color:"var(--brand-color-orange)",opacity:.2}}),b.jsx("span",{className:"mt-4 text-[1rem]",style:{color:"var(--secondary-text-color)"},children:"No data to display"})]})]}),iy=({title:e,mainClassname:t,rightContent:n})=>b.jsxs("div",{className:`${t} flex items-center justify-between`,children:[b.jsx("span",{className:"flex flex-1 select-none md:text-xl 2xl:text-2xl font-[600]",style:{color:"var(--chart-text-color)",fontFamily:"'Afacad', 'Rubik', sans-serif"},children:e}),b.jsx("div",{children:n})]}),Sc=({legends:e,maxDisplayLegends:t=8,dataValues:n,colors:i,showAllLegends:r=!1,onClick:o})=>{const s=Math.min(e.length,t),a=(n==null?void 0:n.reduce((l,c)=>l+c,0))??0;return b.jsxs("div",{className:"flex flex-col",style:{minWidth:"150px",maxWidth:"100%"},children:[b.jsx("div",{className:"flex-1 overflow-y-auto",children:e.slice(0,s).map((l,c)=>b.jsxs("div",{className:"flex items-center mb-2 min-w-0",children:[b.jsx("div",{className:"mr-2 flex-shrink-0",style:{width:"12px",height:"12px",borderRadius:"50%",backgroundColor:i[c%i.length]}}),b.jsx("span",{className:"text-sm font-medium flex-1 min-w-0",style:{color:"var(--chart-text-color)",wordBreak:"break-word",overflowWrap:"break-word"},children:l}),n&&b.jsxs("span",{className:"text-xs ml-2 flex-shrink-0",style:{color:"var(--secondary-text-color)"},children:["(",(n[c]/a*100).toFixed(2),"%)"]})]},c))}),e.length>t&&b.jsx("div",{className:"mt-1 text-right",children:r?b.jsx("button",{className:"px-2 py-1 text-xs text-white rounded transition-colors",style:{backgroundColor:"var(--secondary-text-color)"},onMouseEnter:l=>l.currentTarget.style.opacity="0.9",onMouseLeave:l=>l.currentTarget.style.opacity="1",onClick:o,children:"Show Less"}):b.jsxs("button",{className:"px-2 py-1 text-xs text-white rounded transition-colors",style:{backgroundColor:"var(--brand-orange)"},onMouseEnter:l=>l.currentTarget.style.opacity="0.9",onMouseLeave:l=>l.currentTarget.style.opacity="1",onClick:o,children:["View All (",e.length-t," more)"]})})]})};/*!
84
+ * @kurkle/color v0.3.4
85
+ * https://github.com/kurkle/color#readme
86
+ * (c) 2024 Jukka Kurkela
87
+ * Released under the MIT License
88
+ */function Uo(e){return e+.5|0}const ei=(e,t,n)=>Math.max(Math.min(e,n),t);function Jr(e){return ei(Uo(e*2.55),0,255)}function oi(e){return ei(Uo(e*255),0,255)}function Nn(e){return ei(Uo(e/2.55)/100,0,1)}function Rd(e){return ei(Uo(e*100),0,100)}const Jt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},al=[..."0123456789ABCDEF"],ry=e=>al[e&15],oy=e=>al[(e&240)>>4]+al[e&15],xs=e=>(e&240)>>4===(e&15),sy=e=>xs(e.r)&&xs(e.g)&&xs(e.b)&&xs(e.a);function ay(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Jt[e[1]]*17,g:255&Jt[e[2]]*17,b:255&Jt[e[3]]*17,a:t===5?Jt[e[4]]*17:255}:(t===7||t===9)&&(n={r:Jt[e[1]]<<4|Jt[e[2]],g:Jt[e[3]]<<4|Jt[e[4]],b:Jt[e[5]]<<4|Jt[e[6]],a:t===9?Jt[e[7]]<<4|Jt[e[8]]:255})),n}const ly=(e,t)=>e<255?t(e):"";function cy(e){var t=sy(e)?ry:oy;return e?"#"+t(e.r)+t(e.g)+t(e.b)+ly(e.a,t):void 0}const uy=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function ph(e,t,n){const i=t*Math.min(n,1-n),r=(o,s=(o+e/30)%12)=>n-i*Math.max(Math.min(s-3,9-s,1),-1);return[r(0),r(8),r(4)]}function dy(e,t,n){const i=(r,o=(r+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function fy(e,t,n){const i=ph(e,1,.5);let r;for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function hy(e,t,n,i,r){return e===r?(t-n)/i+(t<n?6:0):t===r?(n-e)/i+2:(e-t)/i+4}function Ic(e){const n=e.r/255,i=e.g/255,r=e.b/255,o=Math.max(n,i,r),s=Math.min(n,i,r),a=(o+s)/2;let l,c,u;return o!==s&&(u=o-s,c=a>.5?u/(2-o-s):u/(o+s),l=hy(n,i,r,u,o),l=l*60+.5),[l|0,c||0,a]}function Mc(e,t,n,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,i)).map(oi)}function _c(e,t,n){return Mc(ph,e,t,n)}function gy(e,t,n){return Mc(fy,e,t,n)}function py(e,t,n){return Mc(dy,e,t,n)}function mh(e){return(e%360+360)%360}function my(e){const t=uy.exec(e);let n=255,i;if(!t)return;t[5]!==i&&(n=t[6]?Jr(+t[5]):oi(+t[5]));const r=mh(+t[2]),o=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?i=gy(r,o,s):t[1]==="hsv"?i=py(r,o,s):i=_c(r,o,s),{r:i[0],g:i[1],b:i[2],a:n}}function by(e,t){var n=Ic(e);n[0]=mh(n[0]+t),n=_c(n),e.r=n[0],e.g=n[1],e.b=n[2]}function Cy(e){if(!e)return;const t=Ic(e),n=t[0],i=Rd(t[1]),r=Rd(t[2]);return e.a<255?`hsla(${n}, ${i}%, ${r}%, ${Nn(e.a)})`:`hsl(${n}, ${i}%, ${r}%)`}const kd={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Pd={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function vy(){const e={},t=Object.keys(Pd),n=Object.keys(kd);let i,r,o,s,a;for(i=0;i<t.length;i++){for(s=a=t[i],r=0;r<n.length;r++)o=n[r],a=a.replace(o,kd[o]);o=parseInt(Pd[s],16),e[a]=[o>>16&255,o>>8&255,o&255]}return e}let ys;function xy(e){ys||(ys=vy(),ys.transparent=[0,0,0,0]);const t=ys[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const yy=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function wy(e){const t=yy.exec(e);let n=255,i,r,o;if(t){if(t[7]!==i){const s=+t[7];n=t[8]?Jr(s):ei(s*255,0,255)}return i=+t[1],r=+t[3],o=+t[5],i=255&(t[2]?Jr(i):ei(i,0,255)),r=255&(t[4]?Jr(r):ei(r,0,255)),o=255&(t[6]?Jr(o):ei(o,0,255)),{r:i,g:r,b:o,a:n}}}function Sy(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Nn(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const l0=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,tr=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Iy(e,t,n){const i=tr(Nn(e.r)),r=tr(Nn(e.g)),o=tr(Nn(e.b));return{r:oi(l0(i+n*(tr(Nn(t.r))-i))),g:oi(l0(r+n*(tr(Nn(t.g))-r))),b:oi(l0(o+n*(tr(Nn(t.b))-o))),a:e.a+n*(t.a-e.a)}}function ws(e,t,n){if(e){let i=Ic(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*n,t===0?360:1)),i=_c(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function bh(e,t){return e&&Object.assign(t||{},e)}function Ld(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=oi(e[3]))):(t=bh(e,{r:0,g:0,b:0,a:1}),t.a=oi(t.a)),t}function My(e){return e.charAt(0)==="r"?wy(e):my(e)}let Ch=class ll{constructor(t){if(t instanceof ll)return t;const n=typeof t;let i;n==="object"?i=Ld(t):n==="string"&&(i=ay(t)||xy(t)||My(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=bh(this._rgb);return t&&(t.a=Nn(t.a)),t}set rgb(t){this._rgb=Ld(t)}rgbString(){return this._valid?Sy(this._rgb):void 0}hexString(){return this._valid?cy(this._rgb):void 0}hslString(){return this._valid?Cy(this._rgb):void 0}mix(t,n){if(t){const i=this.rgb,r=t.rgb;let o;const s=n===o?.5:n,a=2*s-1,l=i.a-r.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,i.r=255&c*i.r+o*r.r+.5,i.g=255&c*i.g+o*r.g+.5,i.b=255&c*i.b+o*r.b+.5,i.a=s*i.a+(1-s)*r.a,this.rgb=i}return this}interpolate(t,n){return t&&(this._rgb=Iy(this._rgb,t._rgb,n)),this}clone(){return new ll(this.rgb)}alpha(t){return this._rgb.a=oi(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Uo(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return ws(this._rgb,2,t),this}darken(t){return ws(this._rgb,2,-t),this}saturate(t){return ws(this._rgb,1,t),this}desaturate(t){return ws(this._rgb,1,-t),this}rotate(t){return by(this._rgb,t),this}};/*!
89
+ * Chart.js v4.5.1
90
+ * https://www.chartjs.org
91
+ * (c) 2025 Chart.js Contributors
92
+ * Released under the MIT License
93
+ */function Pn(){}const _y=(()=>{let e=0;return()=>e++})();function Fe(e){return e==null}function nt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function De(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function ct(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function $t(e,t){return ct(e)?e:t}function Ae(e,t){return typeof e>"u"?t:e}const Ay=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,vh=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Ue(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Ye(e,t,n,i){let r,o,s;if(nt(e))for(o=e.length,r=0;r<o;r++)t.call(n,e[r],r);else if(De(e))for(s=Object.keys(e),o=s.length,r=0;r<o;r++)t.call(n,e[s[r]],s[r])}function Oa(e,t){let n,i,r,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],o=t[n],r.datasetIndex!==o.datasetIndex||r.index!==o.index)return!1;return!0}function Na(e){if(nt(e))return e.map(Na);if(De(e)){const t=Object.create(null),n=Object.keys(e),i=n.length;let r=0;for(;r<i;++r)t[n[r]]=Na(e[n[r]]);return t}return e}function xh(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function Ey(e,t,n,i){if(!xh(e))return;const r=t[e],o=n[e];De(r)&&De(o)?Ct(r,o,i):t[e]=Na(o)}function Ct(e,t,n){const i=nt(t)?t:[t],r=i.length;if(!De(e))return e;n=n||{};const o=n.merger||Ey;let s;for(let a=0;a<r;++a){if(s=i[a],!De(s))continue;const l=Object.keys(s);for(let c=0,u=l.length;c<u;++c)o(l[c],e,s,n)}return e}function ao(e,t){return Ct(e,t,{merger:Ry})}function Ry(e,t,n){if(!xh(e))return;const i=t[e],r=n[e];De(i)&&De(r)?ao(i,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Na(r))}const Fd={"":e=>e,x:e=>e.x,y:e=>e.y};function ky(e){const t=e.split("."),n=[];let i="";for(const r of t)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function Py(e){const t=ky(e);return n=>{for(const i of t){if(i==="")break;n=n&&n[i]}return n}}function ci(e,t){return(Fd[t]||(Fd[t]=Py(t)))(e)}function Ac(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Lo=e=>typeof e<"u",ui=e=>typeof e=="function",Od=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function Ly(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Be=Math.PI,it=2*Be,Fy=it+Be,Ta=Number.POSITIVE_INFINITY,Oy=Be/180,dt=Be/2,Ci=Be/4,Nd=Be*2/3,ti=Math.log10,yn=Math.sign;function lo(e,t,n){return Math.abs(e-t)<n}function Td(e){const t=Math.round(e);e=lo(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(ti(e))),i=e/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function Ny(e){const t=[],n=Math.sqrt(e);let i;for(i=1;i<n;i++)e%i===0&&(t.push(i),t.push(e/i));return n===(n|0)&&t.push(n),t.sort((r,o)=>r-o).pop(),t}function Ty(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function br(e){return!Ty(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function Dy(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function yh(e,t,n){let i,r,o;for(i=0,r=e.length;i<r;i++)o=e[i][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function cn(e){return e*(Be/180)}function Ec(e){return e*(180/Be)}function Dd(e){if(!ct(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function wh(e,t){const n=t.x-e.x,i=t.y-e.y,r=Math.sqrt(n*n+i*i);let o=Math.atan2(i,n);return o<-.5*Be&&(o+=it),{angle:o,distance:r}}function cl(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Vy(e,t){return(e-t+Fy)%it-Be}function Et(e){return(e%it+it)%it}function Fo(e,t,n,i){const r=Et(e),o=Et(t),s=Et(n),a=Et(o-r),l=Et(s-r),c=Et(r-o),u=Et(r-s);return r===o||r===s||i&&o===s||a>l&&c<u}function bt(e,t,n){return Math.max(t,Math.min(n,e))}function jy(e){return bt(e,-32768,32767)}function jn(e,t,n,i=1e-6){return e>=Math.min(t,n)-i&&e<=Math.max(t,n)+i}function Rc(e,t,n){n=n||(s=>e[s]<t);let i=e.length-1,r=0,o;for(;i-r>1;)o=r+i>>1,n(o)?r=o:i=o;return{lo:r,hi:i}}const Bn=(e,t,n,i)=>Rc(e,n,i?r=>{const o=e[r][t];return o<n||o===n&&e[r+1][t]===n}:r=>e[r][t]<n),By=(e,t,n)=>Rc(e,n,i=>e[i][t]>=n);function $y(e,t,n){let i=0,r=e.length;for(;i<r&&e[i]<t;)i++;for(;r>i&&e[r-1]>n;)r--;return i>0||r<e.length?e.slice(i,r):e}const Sh=["push","pop","shift","splice","unshift"];function Hy(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Sh.forEach(n=>{const i="_onData"+Ac(n),r=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const s=r.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[i]=="function"&&a[i](...o)}),s}})})}function Vd(e,t){const n=e._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(t);r!==-1&&i.splice(r,1),!(i.length>0)&&(Sh.forEach(o=>{delete e[o]}),delete e._chartjs)}function Ih(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const Mh=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function _h(e,t){let n=[],i=!1;return function(...r){n=r,i||(i=!0,Mh.call(window,()=>{i=!1,e.apply(t,n)}))}}function Gy(e,t){let n;return function(...i){return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}const kc=e=>e==="start"?"left":e==="end"?"right":"center",_t=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,zy=(e,t,n,i)=>e===(i?"left":"right")?n:e==="center"?(t+n)/2:t;function Ah(e,t,n){const i=t.length;let r=0,o=i;if(e._sorted){const{iScale:s,vScale:a,_parsed:l}=e,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,u=s.axis,{min:d,max:f,minDefined:h,maxDefined:g}=s.getUserBounds();if(h){if(r=Math.min(Bn(l,u,d).lo,n?i:Bn(t,u,s.getPixelForValue(d)).lo),c){const p=l.slice(0,r+1).reverse().findIndex(m=>!Fe(m[a.axis]));r-=Math.max(0,p)}r=bt(r,0,i-1)}if(g){let p=Math.max(Bn(l,s.axis,f,!0).hi+1,n?0:Bn(t,u,s.getPixelForValue(f),!0).hi+1);if(c){const m=l.slice(p-1).findIndex(C=>!Fe(C[a.axis]));p+=Math.max(0,m)}o=bt(p,r,i)-r}else o=i-r}return{start:r,count:o}}function Eh(e){const{xScale:t,yScale:n,_scaleRanges:i}=e,r={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!i)return e._scaleRanges=r,!0;const o=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,r),o}const Ss=e=>e===0||e===1,jd=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*it/n)),Bd=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*it/n)+1,co={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*dt)+1,easeOutSine:e=>Math.sin(e*dt),easeInOutSine:e=>-.5*(Math.cos(Be*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Ss(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Ss(e)?e:jd(e,.075,.3),easeOutElastic:e=>Ss(e)?e:Bd(e,.075,.3),easeInOutElastic(e){return Ss(e)?e:e<.5?.5*jd(e*2,.1125,.45):.5+.5*Bd(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-co.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?co.easeInBounce(e*2)*.5:co.easeOutBounce(e*2-1)*.5+.5};function Pc(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function $d(e){return Pc(e)?e:new Ch(e)}function c0(e){return Pc(e)?e:new Ch(e).saturate(.5).darken(.1).hexString()}const Wy=["x","y","borderWidth","radius","tension"],Zy=["color","borderColor","backgroundColor"];function Xy(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:Zy},numbers:{type:"number",properties:Wy}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function Yy(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Hd=new Map;function Jy(e,t){t=t||{};const n=e+JSON.stringify(t);let i=Hd.get(n);return i||(i=new Intl.NumberFormat(e,t),Hd.set(n,i)),i}function Qo(e,t,n){return Jy(t,n).format(e)}const Rh={values(e){return nt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const i=this.chart.options.locale;let r,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(r="scientific"),o=Uy(e,n)}const s=ti(Math.abs(o)),a=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Qo(e,i,l)},logarithmic(e,t,n){if(e===0)return"0";const i=n[t].significand||e/Math.pow(10,Math.floor(ti(e)));return[1,2,3,5,10,15].includes(i)||t>.8*n.length?Rh.numeric.call(this,e,t,n):""}};function Uy(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var y2={formatters:Rh};function Qy(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:y2.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Gi=Object.create(null),ul=Object.create(null);function uo(e,t){if(!t)return e;const n=t.split(".");for(let i=0,r=n.length;i<r;++i){const o=n[i];e=e[o]||(e[o]=Object.create(null))}return e}function u0(e,t,n){return typeof t=="string"?Ct(uo(e,t),n):Ct(uo(e,""),t)}class qy{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>c0(r.backgroundColor),this.hoverBorderColor=(i,r)=>c0(r.borderColor),this.hoverColor=(i,r)=>c0(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return u0(this,t,n)}get(t){return uo(this,t)}describe(t,n){return u0(ul,t,n)}override(t,n){return u0(Gi,t,n)}route(t,n,i,r){const o=uo(this,t),s=uo(this,i),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=s[r];return De(l)?Object.assign({},c,l):Ae(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var rt=new qy({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Xy,Yy,Qy]);function Ky(e){return!e||Fe(e.size)||Fe(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Da(e,t,n,i,r){let o=t[r];return o||(o=t[r]=e.measureText(r).width,n.push(r)),o>i&&(i=o),i}function ew(e,t,n,i){i=i||{};let r=i.data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},o=i.garbageCollect=[],i.font=t),e.save(),e.font=t;let s=0;const a=n.length;let l,c,u,d,f;for(l=0;l<a;l++)if(d=n[l],d!=null&&!nt(d))s=Da(e,r,o,s,d);else if(nt(d))for(c=0,u=d.length;c<u;c++)f=d[c],f!=null&&!nt(f)&&(s=Da(e,r,o,s,f));e.restore();const h=o.length/2;if(h>n.length){for(l=0;l<h;l++)delete r[o[l]];o.splice(0,h)}return s}function vi(e,t,n){const i=e.currentDevicePixelRatio,r=n!==0?Math.max(n/2,.5):0;return Math.round((t-r)*i)/i+r}function Gd(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Va(e,t,n,i){kh(e,t,n,i,null)}function kh(e,t,n,i,r){let o,s,a,l,c,u,d,f;const h=t.pointStyle,g=t.rotation,p=t.radius;let m=(g||0)*Oy;if(h&&typeof h=="object"&&(o=h.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,i),e.rotate(m),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!(isNaN(p)||p<=0)){switch(e.beginPath(),h){default:r?e.ellipse(n,i,r/2,p,0,0,it):e.arc(n,i,p,0,it),e.closePath();break;case"triangle":u=r?r/2:p,e.moveTo(n+Math.sin(m)*u,i-Math.cos(m)*p),m+=Nd,e.lineTo(n+Math.sin(m)*u,i-Math.cos(m)*p),m+=Nd,e.lineTo(n+Math.sin(m)*u,i-Math.cos(m)*p),e.closePath();break;case"rectRounded":c=p*.516,l=p-c,s=Math.cos(m+Ci)*l,d=Math.cos(m+Ci)*(r?r/2-c:l),a=Math.sin(m+Ci)*l,f=Math.sin(m+Ci)*(r?r/2-c:l),e.arc(n-d,i-a,c,m-Be,m-dt),e.arc(n+f,i-s,c,m-dt,m),e.arc(n+d,i+a,c,m,m+dt),e.arc(n-f,i+s,c,m+dt,m+Be),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*p,u=r?r/2:l,e.rect(n-u,i-l,2*u,2*l);break}m+=Ci;case"rectRot":d=Math.cos(m)*(r?r/2:p),s=Math.cos(m)*p,a=Math.sin(m)*p,f=Math.sin(m)*(r?r/2:p),e.moveTo(n-d,i-a),e.lineTo(n+f,i-s),e.lineTo(n+d,i+a),e.lineTo(n-f,i+s),e.closePath();break;case"crossRot":m+=Ci;case"cross":d=Math.cos(m)*(r?r/2:p),s=Math.cos(m)*p,a=Math.sin(m)*p,f=Math.sin(m)*(r?r/2:p),e.moveTo(n-d,i-a),e.lineTo(n+d,i+a),e.moveTo(n+f,i-s),e.lineTo(n-f,i+s);break;case"star":d=Math.cos(m)*(r?r/2:p),s=Math.cos(m)*p,a=Math.sin(m)*p,f=Math.sin(m)*(r?r/2:p),e.moveTo(n-d,i-a),e.lineTo(n+d,i+a),e.moveTo(n+f,i-s),e.lineTo(n-f,i+s),m+=Ci,d=Math.cos(m)*(r?r/2:p),s=Math.cos(m)*p,a=Math.sin(m)*p,f=Math.sin(m)*(r?r/2:p),e.moveTo(n-d,i-a),e.lineTo(n+d,i+a),e.moveTo(n+f,i-s),e.lineTo(n-f,i+s);break;case"line":s=r?r/2:Math.cos(m)*p,a=Math.sin(m)*p,e.moveTo(n-s,i-a),e.lineTo(n+s,i+a);break;case"dash":e.moveTo(n,i),e.lineTo(n+Math.cos(m)*(r?r/2:p),i+Math.sin(m)*p);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function $n(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Li(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Fi(e){e.restore()}function tw(e,t,n,i,r){if(!t)return e.lineTo(n.x,n.y);if(r==="middle"){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else r==="after"!=!!i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function nw(e,t,n,i){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(i?t.cp1x:t.cp2x,i?t.cp1y:t.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function iw(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Fe(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function rw(e,t,n,i,r){if(r.strikethrough||r.underline){const o=e.measureText(i),s=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=r.decorationWidth||2,e.moveTo(s,u),e.lineTo(a,u),e.stroke()}}function ow(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function zi(e,t,n,i,r,o={}){const s=nt(t)?t:[t],a=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=r.string,iw(e,o),l=0;l<s.length;++l)c=s[l],o.backdrop&&ow(e,o.backdrop),a&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),Fe(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,n,i,o.maxWidth)),e.fillText(c,n,i,o.maxWidth),rw(e,n,i,c,o),i+=Number(r.lineHeight);e.restore()}function Oo(e,t){const{x:n,y:i,w:r,h:o,radius:s}=t;e.arc(n+s.topLeft,i+s.topLeft,s.topLeft,1.5*Be,Be,!0),e.lineTo(n,i+o-s.bottomLeft),e.arc(n+s.bottomLeft,i+o-s.bottomLeft,s.bottomLeft,Be,dt,!0),e.lineTo(n+r-s.bottomRight,i+o),e.arc(n+r-s.bottomRight,i+o-s.bottomRight,s.bottomRight,dt,0,!0),e.lineTo(n+r,i+s.topRight),e.arc(n+r-s.topRight,i+s.topRight,s.topRight,0,-dt,!0),e.lineTo(n+s.topLeft,i)}const sw=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,aw=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function lw(e,t){const n=(""+e).match(sw);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const cw=e=>+e||0;function Lc(e,t){const n={},i=De(t),r=i?Object.keys(t):t,o=De(e)?i?s=>Ae(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of r)n[s]=cw(o(s));return n}function Ph(e){return Lc(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Oi(e){return Lc(e,["topLeft","topRight","bottomLeft","bottomRight"])}function St(e){const t=Ph(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function gt(e,t){e=e||{},t=t||rt.font;let n=Ae(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let i=Ae(e.style,t.style);i&&!(""+i).match(aw)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:Ae(e.family,t.family),lineHeight:lw(Ae(e.lineHeight,t.lineHeight),n),size:n,style:i,weight:Ae(e.weight,t.weight),string:""};return r.string=Ky(r),r}function tt(e,t,n,i){let r,o,s;for(r=0,o=e.length;r<o;++r)if(s=e[r],s!==void 0&&(t!==void 0&&typeof s=="function"&&(s=s(t)),n!==void 0&&nt(s)&&(s=s[n%s.length]),s!==void 0))return s}function uw(e,t,n){const{min:i,max:r}=e,o=vh(t,(r-i)/2),s=(a,l)=>n&&a===0?0:a+l;return{min:s(i,-Math.abs(o)),max:s(r,o)}}function gi(e,t){return Object.assign(Object.create(e),t)}function Fc(e,t=[""],n,i,r=()=>e[0]){const o=n||e;typeof i>"u"&&(i=Nh("_fallback",e));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:i,_getTarget:r,override:a=>Fc([a,...e],t,o,i)};return new Proxy(s,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return Fh(a,l,()=>Cw(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Wd(a).includes(l)},ownKeys(a){return Wd(a)},set(a,l,c){const u=a._storage||(a._storage=r());return a[l]=u[l]=c,delete a._keys,!0}})}function Cr(e,t,n,i){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Lh(e,i),setContext:o=>Cr(e,o,n,i),override:o=>Cr(e.override(o),t,n,i)};return new Proxy(r,{deleteProperty(o,s){return delete o[s],delete e[s],!0},get(o,s,a){return Fh(o,s,()=>fw(o,s,a))},getOwnPropertyDescriptor(o,s){return o._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(o,s,a){return e[s]=a,delete o[s],!0}})}function Lh(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:i=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:n,indexable:i,isScriptable:ui(n)?n:()=>n,isIndexable:ui(i)?i:()=>i}}const dw=(e,t)=>e?e+Ac(t):t,Oc=(e,t)=>De(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Fh(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const i=n();return e[t]=i,i}function fw(e,t,n){const{_proxy:i,_context:r,_subProxy:o,_descriptors:s}=e;let a=i[t];return ui(a)&&s.isScriptable(t)&&(a=hw(t,a,e,n)),nt(a)&&a.length&&(a=gw(t,a,e,s.isIndexable)),Oc(t,a)&&(a=Cr(a,r,o&&o[t],s)),a}function hw(e,t,n,i){const{_proxy:r,_context:o,_subProxy:s,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(o,s||i);return a.delete(e),Oc(e,l)&&(l=Nc(r._scopes,r,e,l)),l}function gw(e,t,n,i){const{_proxy:r,_context:o,_subProxy:s,_descriptors:a}=n;if(typeof o.index<"u"&&i(e))return t[o.index%t.length];if(De(t[0])){const l=t,c=r._scopes.filter(u=>u!==l);t=[];for(const u of l){const d=Nc(c,r,e,u);t.push(Cr(d,o,s&&s[e],a))}}return t}function Oh(e,t,n){return ui(e)?e(t,n):e}const pw=(e,t)=>e===!0?t:typeof e=="string"?ci(t,e):void 0;function mw(e,t,n,i,r){for(const o of t){const s=pw(n,o);if(s){e.add(s);const a=Oh(s._fallback,n,r);if(typeof a<"u"&&a!==n&&a!==i)return a}else if(s===!1&&typeof i<"u"&&n!==i)return null}return!1}function Nc(e,t,n,i){const r=t._rootScopes,o=Oh(t._fallback,n,i),s=[...e,...r],a=new Set;a.add(i);let l=zd(a,s,n,o||n,i);return l===null||typeof o<"u"&&o!==n&&(l=zd(a,s,o,l,i),l===null)?!1:Fc(Array.from(a),[""],r,o,()=>bw(t,n,i))}function zd(e,t,n,i,r){for(;n;)n=mw(e,t,n,i,r);return n}function bw(e,t,n){const i=e._getTarget();t in i||(i[t]={});const r=i[t];return nt(r)&&De(n)?n:r||{}}function Cw(e,t,n,i){let r;for(const o of t)if(r=Nh(dw(o,e),n),typeof r<"u")return Oc(e,r)?Nc(n,i,e,r):r}function Nh(e,t){for(const n of t){if(!n)continue;const i=n[e];if(typeof i<"u")return i}}function Wd(e){let t=e._keys;return t||(t=e._keys=vw(e._scopes)),t}function vw(e){const t=new Set;for(const n of e)for(const i of Object.keys(n).filter(r=>!r.startsWith("_")))t.add(i);return Array.from(t)}function Th(e,t,n,i){const{iScale:r}=e,{key:o="r"}=this._parsing,s=new Array(i);let a,l,c,u;for(a=0,l=i;a<l;++a)c=a+n,u=t[c],s[a]={r:r.parse(ci(u,o),c)};return s}const xw=Number.EPSILON||1e-14,vr=(e,t)=>t<e.length&&!e[t].skip&&e[t],Dh=e=>e==="x"?"y":"x";function yw(e,t,n,i){const r=e.skip?t:e,o=t,s=n.skip?t:n,a=cl(o,r),l=cl(s,o);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=i*c,f=i*u;return{previous:{x:o.x-d*(s.x-r.x),y:o.y-d*(s.y-r.y)},next:{x:o.x+f*(s.x-r.x),y:o.y+f*(s.y-r.y)}}}function ww(e,t,n){const i=e.length;let r,o,s,a,l,c=vr(e,0);for(let u=0;u<i-1;++u)if(l=c,c=vr(e,u+1),!(!l||!c)){if(lo(t[u],0,xw)){n[u]=n[u+1]=0;continue}r=n[u]/t[u],o=n[u+1]/t[u],a=Math.pow(r,2)+Math.pow(o,2),!(a<=9)&&(s=3/Math.sqrt(a),n[u]=r*s*t[u],n[u+1]=o*s*t[u])}}function Sw(e,t,n="x"){const i=Dh(n),r=e.length;let o,s,a,l=vr(e,0);for(let c=0;c<r;++c){if(s=a,a=l,l=vr(e,c+1),!a)continue;const u=a[n],d=a[i];s&&(o=(u-s[n])/3,a[`cp1${n}`]=u-o,a[`cp1${i}`]=d-o*t[c]),l&&(o=(l[n]-u)/3,a[`cp2${n}`]=u+o,a[`cp2${i}`]=d+o*t[c])}}function Iw(e,t="x"){const n=Dh(t),i=e.length,r=Array(i).fill(0),o=Array(i);let s,a,l,c=vr(e,0);for(s=0;s<i;++s)if(a=l,l=c,c=vr(e,s+1),!!l){if(c){const u=c[t]-l[t];r[s]=u!==0?(c[n]-l[n])/u:0}o[s]=a?c?yn(r[s-1])!==yn(r[s])?0:(r[s-1]+r[s])/2:r[s-1]:r[s]}ww(e,r,o),Sw(e,o,t)}function Is(e,t,n){return Math.max(Math.min(e,n),t)}function Mw(e,t){let n,i,r,o,s,a=$n(e[0],t);for(n=0,i=e.length;n<i;++n)s=o,o=a,a=n<i-1&&$n(e[n+1],t),o&&(r=e[n],s&&(r.cp1x=Is(r.cp1x,t.left,t.right),r.cp1y=Is(r.cp1y,t.top,t.bottom)),a&&(r.cp2x=Is(r.cp2x,t.left,t.right),r.cp2y=Is(r.cp2y,t.top,t.bottom)))}function _w(e,t,n,i,r){let o,s,a,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")Iw(e,r);else{let c=i?e[e.length-1]:e[0];for(o=0,s=e.length;o<s;++o)a=e[o],l=yw(c,a,e[Math.min(o+1,s-(i?0:1))%s],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}t.capBezierPoints&&Mw(e,n)}function Tc(){return typeof window<"u"&&typeof document<"u"}function Dc(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function ja(e,t,n){let i;return typeof e=="string"?(i=parseInt(e,10),e.indexOf("%")!==-1&&(i=i/100*t.parentNode[n])):i=e,i}const w2=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function Aw(e,t){return w2(e).getPropertyValue(t)}const Ew=["top","right","bottom","left"];function Ni(e,t,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const o=Ew[r];i[o]=parseFloat(e[t+"-"+o+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const Rw=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function kw(e,t){const n=e.touches,i=n&&n.length?n[0]:e,{offsetX:r,offsetY:o}=i;let s=!1,a,l;if(Rw(r,o,e.target))a=r,l=o;else{const c=t.getBoundingClientRect();a=i.clientX-c.left,l=i.clientY-c.top,s=!0}return{x:a,y:l,box:s}}function wi(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:i}=t,r=w2(n),o=r.boxSizing==="border-box",s=Ni(r,"padding"),a=Ni(r,"border","width"),{x:l,y:c,box:u}=kw(e,n),d=s.left+(u&&a.left),f=s.top+(u&&a.top);let{width:h,height:g}=t;return o&&(h-=s.width+a.width,g-=s.height+a.height),{x:Math.round((l-d)/h*n.width/i),y:Math.round((c-f)/g*n.height/i)}}function Pw(e,t,n){let i,r;if(t===void 0||n===void 0){const o=e&&Dc(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const s=o.getBoundingClientRect(),a=w2(o),l=Ni(a,"border","width"),c=Ni(a,"padding");t=s.width-c.width-l.width,n=s.height-c.height-l.height,i=ja(a.maxWidth,o,"clientWidth"),r=ja(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:i||Ta,maxHeight:r||Ta}}const ni=e=>Math.round(e*10)/10;function Lw(e,t,n,i){const r=w2(e),o=Ni(r,"margin"),s=ja(r.maxWidth,e,"clientWidth")||Ta,a=ja(r.maxHeight,e,"clientHeight")||Ta,l=Pw(e,t,n);let{width:c,height:u}=l;if(r.boxSizing==="content-box"){const f=Ni(r,"border","width"),h=Ni(r,"padding");c-=h.width+f.width,u-=h.height+f.height}return c=Math.max(0,c-o.width),u=Math.max(0,i?c/i:u-o.height),c=ni(Math.min(c,s,l.maxWidth)),u=ni(Math.min(u,a,l.maxHeight)),c&&!u&&(u=ni(c/2)),(t!==void 0||n!==void 0)&&i&&l.height&&u>l.height&&(u=l.height,c=ni(Math.floor(u*i))),{width:c,height:u}}function Zd(e,t,n){const i=t||1,r=ni(e.height*i),o=ni(e.width*i);e.height=ni(e.height),e.width=ni(e.width);const s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==i||s.height!==r||s.width!==o?(e.currentDevicePixelRatio=i,s.height=r,s.width=o,e.ctx.setTransform(i,0,0,i,0,0),!0):!1}const Fw=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Tc()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function Xd(e,t){const n=Aw(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Si(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Ow(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:i==="middle"?n<.5?e.y:t.y:i==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function Nw(e,t,n,i){const r={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},s=Si(e,r,n),a=Si(r,o,n),l=Si(o,t,n),c=Si(s,a,n),u=Si(a,l,n);return Si(c,u,n)}const Tw=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},Dw=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function dr(e,t,n){return e?Tw(t,n):Dw()}function Vh(e,t){let n,i;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)}function jh(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function Bh(e){return e==="angle"?{between:Fo,compare:Vy,normalize:Et}:{between:jn,compare:(t,n)=>t-n,normalize:t=>t}}function Yd({start:e,end:t,count:n,loop:i,style:r}){return{start:e%n,end:t%n,loop:i&&(t-e+1)%n===0,style:r}}function Vw(e,t,n){const{property:i,start:r,end:o}=n,{between:s,normalize:a}=Bh(i),l=t.length;let{start:c,end:u,loop:d}=e,f,h;if(d){for(c+=l,u+=l,f=0,h=l;f<h&&s(a(t[c%l][i]),r,o);++f)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:d,style:e.style}}function $h(e,t,n){if(!n)return[e];const{property:i,start:r,end:o}=n,s=t.length,{compare:a,between:l,normalize:c}=Bh(i),{start:u,end:d,loop:f,style:h}=Vw(e,t,n),g=[];let p=!1,m=null,C,y,x;const I=()=>l(r,x,C)&&a(r,x)!==0,w=()=>a(o,C)===0||l(o,x,C),R=()=>p||I(),E=()=>!p||w();for(let S=u,M=u;S<=d;++S)y=t[S%s],!y.skip&&(C=c(y[i]),C!==x&&(p=l(C,r,o),m===null&&R()&&(m=a(C,r)===0?S:M),m!==null&&E()&&(g.push(Yd({start:m,end:S,loop:f,count:s,style:h})),m=null),M=S,x=C));return m!==null&&g.push(Yd({start:m,end:d,loop:f,count:s,style:h})),g}function Hh(e,t){const n=[],i=e.segments;for(let r=0;r<i.length;r++){const o=$h(i[r],e.points,t);o.length&&n.push(...o)}return n}function jw(e,t,n,i){let r=0,o=t-1;if(n&&!i)for(;r<t&&!e[r].skip;)r++;for(;r<t&&e[r].skip;)r++;for(r%=t,n&&(o+=r);o>r&&e[o%t].skip;)o--;return o%=t,{start:r,end:o}}function Bw(e,t,n,i){const r=e.length,o=[];let s=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%r];c.skip||c.stop?a.skip||(i=!1,o.push({start:t%r,end:(l-1)%r,loop:i}),t=s=c.stop?l:null):(s=l,a.skip&&(t=l)),a=c}return s!==null&&o.push({start:t%r,end:s%r,loop:i}),o}function $w(e,t){const n=e.points,i=e.options.spanGaps,r=n.length;if(!r)return[];const o=!!e._loop,{start:s,end:a}=jw(n,r,o,i);if(i===!0)return Jd(e,[{start:s,end:a,loop:o}],n,t);const l=a<s?a+r:a,c=!!e._fullLoop&&s===0&&a===r-1;return Jd(e,Bw(n,s,l,c),n,t)}function Jd(e,t,n,i){return!i||!i.setContext||!n?t:Hw(e,t,n,i)}function Hw(e,t,n,i){const r=e._chart.getContext(),o=Ud(e.options),{_datasetIndex:s,options:{spanGaps:a}}=e,l=n.length,c=[];let u=o,d=t[0].start,f=d;function h(g,p,m,C){const y=a?-1:1;if(g!==p){for(g+=l;n[g%l].skip;)g-=y;for(;n[p%l].skip;)p+=y;g%l!==p%l&&(c.push({start:g%l,end:p%l,loop:m,style:C}),u=C,d=p%l)}}for(const g of t){d=a?d:g.start;let p=n[d%l],m;for(f=d+1;f<=g.end;f++){const C=n[f%l];m=Ud(i.setContext(gi(r,{type:"segment",p0:p,p1:C,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:s}))),Gw(m,u)&&h(d,f-1,g.loop,u),p=C,u=m}d<f-1&&h(d,f-1,g.loop,u)}return c}function Ud(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Gw(e,t){if(!t)return!1;const n=[],i=function(r,o){return Pc(o)?(n.includes(o)||n.push(o),n.indexOf(o)):o};return JSON.stringify(e,i)!==JSON.stringify(t,i)}function Ms(e,t,n){return e.options.clip?e[n]:t[n]}function zw(e,t){const{xScale:n,yScale:i}=e;return n&&i?{left:Ms(n,t,"left"),right:Ms(n,t,"right"),top:Ms(i,t,"top"),bottom:Ms(i,t,"bottom")}:t}function Gh(e,t){const n=t._clip;if(n.disabled)return!1;const i=zw(t,e.chartArea);return{left:n.left===!1?0:i.left-(n.left===!0?0:n.left),right:n.right===!1?e.width:i.right+(n.right===!0?0:n.right),top:n.top===!1?0:i.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?e.height:i.bottom+(n.bottom===!0?0:n.bottom)}}/*!
94
+ * Chart.js v4.5.1
95
+ * https://www.chartjs.org
96
+ * (c) 2025 Chart.js Contributors
97
+ * Released under the MIT License
98
+ */class Ww{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,i,r){const o=n.listeners[r],s=n.duration;o.forEach(a=>a({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(i-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=Mh.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;const o=i.items;let s=o.length-1,a=!1,l;for(;s>=0;--s)l=o[s],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(t),a=!0):(o[s]=o[o.length-1],o.pop());a&&(r.draw(),this._notify(r,i,t,"progress")),o.length||(i.running=!1,this._notify(r,i,t,"complete"),i.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let i=n.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,i)),i}listen(t,n,i){this._getAnims(t).listeners[n].push(i)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const i=n.items;let r=i.length-1;for(;r>=0;--r)i[r].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Ln=new Ww;const Qd="transparent",Zw={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const i=$d(e||Qd),r=i.valid&&$d(t||Qd);return r&&r.valid?r.mix(i,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class Xw{constructor(t,n,i,r){const o=n[i];r=tt([t.to,r,o,t.from]);const s=tt([t.from,o,r]);this._active=!0,this._fn=t.fn||Zw[t.type||typeof s],this._easing=co[t.easing]||co.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=i,this._from=s,this._to=r,this._promises=void 0}active(){return this._active}update(t,n,i){if(this._active){this._notify(!1);const r=this._target[this._prop],o=i-this._start,s=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=tt([t.to,n,r,t.from]),this._from=tt([t.from,r,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,i=this._duration,r=this._prop,o=this._from,s=this._loop,a=this._to;let l;if(this._active=o!==a&&(s||n<i),!this._active){this._target[r]=a,this._notify(!0);return}if(n<0){this._target[r]=o;return}l=n/i%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[r]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,i)=>{t.push({res:n,rej:i})})}_notify(t){const n=t?"res":"rej",i=this._promises||[];for(let r=0;r<i.length;r++)i[r][n]()}}class zh{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!De(t))return;const n=Object.keys(rt.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(r=>{const o=t[r];if(!De(o))return;const s={};for(const a of n)s[a]=o[a];(nt(o.properties)&&o.properties||[r]).forEach(a=>{(a===r||!i.has(a))&&i.set(a,s)})})}_animateOptions(t,n){const i=n.options,r=Jw(t,i);if(!r)return[];const o=this._createAnimations(r,i);return i.$shared&&Yw(t.options.$animations,i).then(()=>{t.options=i},()=>{}),o}_createAnimations(t,n){const i=this._properties,r=[],o=t.$animations||(t.$animations={}),s=Object.keys(n),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if(c.charAt(0)==="$")continue;if(c==="options"){r.push(...this._animateOptions(t,n));continue}const u=n[c];let d=o[c];const f=i.get(c);if(d)if(f&&d.active()){d.update(f,u,a);continue}else d.cancel();if(!f||!f.duration){t[c]=u;continue}o[c]=d=new Xw(f,t,c,u),r.push(d)}return r}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const i=this._createAnimations(t,n);if(i.length)return Ln.add(this._chart,i),!0}}function Yw(e,t){const n=[],i=Object.keys(t);for(let r=0;r<i.length;r++){const o=e[i[r]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function Jw(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function qd(e,t){const n=e&&e.options||{},i=n.reverse,r=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:i?o:r,end:i?r:o}}function Uw(e,t,n){if(n===!1)return!1;const i=qd(e,n),r=qd(t,n);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}function Qw(e){let t,n,i,r;return De(e)?(t=e.top,n=e.right,i=e.bottom,r=e.left):t=n=i=r=e,{top:t,right:n,bottom:i,left:r,disabled:e===!1}}function Wh(e,t){const n=[],i=e._getSortedDatasetMetas(t);let r,o;for(r=0,o=i.length;r<o;++r)n.push(i[r].index);return n}function Kd(e,t,n,i={}){const r=e.keys,o=i.mode==="single";let s,a,l,c;if(t===null)return;let u=!1;for(s=0,a=r.length;s<a;++s){if(l=+r[s],l===n){if(u=!0,i.all)continue;break}c=e.values[l],ct(c)&&(o||t===0||yn(t)===yn(c))&&(t+=c)}return!u&&!i.all?0:t}function qw(e,t){const{iScale:n,vScale:i}=t,r=n.axis==="x"?"x":"y",o=i.axis==="x"?"x":"y",s=Object.keys(e),a=new Array(s.length);let l,c,u;for(l=0,c=s.length;l<c;++l)u=s[l],a[l]={[r]:u,[o]:e[u]};return a}function d0(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function Kw(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function eS(e){const{min:t,max:n,minDefined:i,maxDefined:r}=e.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}function tS(e,t,n){const i=e[t]||(e[t]={});return i[n]||(i[n]={})}function ef(e,t,n,i){for(const r of t.getMatchingVisibleMetas(i).reverse()){const o=e[r.index];if(n&&o>0||!n&&o<0)return r.index}return null}function tf(e,t){const{chart:n,_cachedMeta:i}=e,r=n._stacks||(n._stacks={}),{iScale:o,vScale:s,index:a}=i,l=o.axis,c=s.axis,u=Kw(o,s,i),d=t.length;let f;for(let h=0;h<d;++h){const g=t[h],{[l]:p,[c]:m}=g,C=g._stacks||(g._stacks={});f=C[c]=tS(r,u,p),f[a]=m,f._top=ef(f,s,!0,i.type),f._bottom=ef(f,s,!1,i.type);const y=f._visualValues||(f._visualValues={});y[a]=m}}function f0(e,t){const n=e.scales;return Object.keys(n).filter(i=>n[i].axis===t).shift()}function nS(e,t){return gi(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function iS(e,t,n){return gi(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function jr(e,t){const n=e.controller.index,i=e.vScale&&e.vScale.axis;if(i){t=t||e._parsed;for(const r of t){const o=r._stacks;if(!o||o[i]===void 0||o[i][n]===void 0)return;delete o[i][n],o[i]._visualValues!==void 0&&o[i]._visualValues[n]!==void 0&&delete o[i]._visualValues[n]}}}const h0=e=>e==="reset"||e==="none",nf=(e,t)=>t?e:Object.assign({},e),rS=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Wh(n,!0),values:null};class Kt{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=d0(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&jr(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,i=this.getDataset(),r=(d,f,h,g)=>d==="x"?f:d==="r"?g:h,o=n.xAxisID=Ae(i.xAxisID,f0(t,"x")),s=n.yAxisID=Ae(i.yAxisID,f0(t,"y")),a=n.rAxisID=Ae(i.rAxisID,f0(t,"r")),l=n.indexAxis,c=n.iAxisID=r(l,o,s,a),u=n.vAxisID=r(l,s,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Vd(this._data,this),t._stacked&&jr(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),i=this._data;if(De(n)){const r=this._cachedMeta;this._data=qw(n,r)}else if(i!==n){if(i){Vd(i,this);const r=this._cachedMeta;jr(r),r._parsed=[]}n&&Object.isExtensible(n)&&Hy(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,i=this.getDataset();let r=!1;this._dataCheck();const o=n._stacked;n._stacked=d0(n.vScale,n),n.stack!==i.stack&&(r=!0,jr(n),n.stack=i.stack),this._resyncElements(t),(r||o!==n._stacked)&&(tf(this,n._parsed),n._stacked=d0(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:i,_data:r}=this,{iScale:o,_stacked:s}=i,a=o.axis;let l=t===0&&n===r.length?!0:i._sorted,c=t>0&&i._parsed[t-1],u,d,f;if(this._parsing===!1)i._parsed=r,i._sorted=!0,f=r;else{nt(r[t])?f=this.parseArrayData(i,r,t,n):De(r[t])?f=this.parseObjectData(i,r,t,n):f=this.parsePrimitiveData(i,r,t,n);const h=()=>d[a]===null||c&&d[a]<c[a];for(u=0;u<n;++u)i._parsed[u+t]=d=f[u],l&&(h()&&(l=!1),c=d);i._sorted=l}s&&tf(this,f)}parsePrimitiveData(t,n,i,r){const{iScale:o,vScale:s}=t,a=o.axis,l=s.axis,c=o.getLabels(),u=o===s,d=new Array(r);let f,h,g;for(f=0,h=r;f<h;++f)g=f+i,d[f]={[a]:u||o.parse(c[g],g),[l]:s.parse(n[g],g)};return d}parseArrayData(t,n,i,r){const{xScale:o,yScale:s}=t,a=new Array(r);let l,c,u,d;for(l=0,c=r;l<c;++l)u=l+i,d=n[u],a[l]={x:o.parse(d[0],u),y:s.parse(d[1],u)};return a}parseObjectData(t,n,i,r){const{xScale:o,yScale:s}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(r);let u,d,f,h;for(u=0,d=r;u<d;++u)f=u+i,h=n[f],c[u]={x:o.parse(ci(h,a),f),y:s.parse(ci(h,l),f)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,i){const r=this.chart,o=this._cachedMeta,s=n[t.axis],a={keys:Wh(r,!0),values:n._stacks[t.axis]._visualValues};return Kd(a,s,o.index,{mode:i})}updateRangeFromParsed(t,n,i,r){const o=i[n.axis];let s=o===null?NaN:o;const a=r&&i._stacks[n.axis];r&&a&&(r.values=a,s=Kd(r,o,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,n){const i=this._cachedMeta,r=i._parsed,o=i._sorted&&t===i.iScale,s=r.length,a=this._getOtherScale(t),l=rS(n,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=eS(a);let f,h;function g(){h=r[f];const p=h[a.axis];return!ct(h[t.axis])||u>p||d<p}for(f=0;f<s&&!(!g()&&(this.updateRangeFromParsed(c,t,h,l),o));++f);if(o){for(f=s-1;f>=0;--f)if(!g()){this.updateRangeFromParsed(c,t,h,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,i=[];let r,o,s;for(r=0,o=n.length;r<o;++r)s=n[r][t.axis],ct(s)&&i.push(s);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,i=n.iScale,r=n.vScale,o=this.getParsed(t);return{label:i?""+i.getLabelForValue(o[i.axis]):"",value:r?""+r.getLabelForValue(o[r.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=Qw(Ae(this.options.clip,Uw(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,i=this._cachedMeta,r=i.data||[],o=n.chartArea,s=[],a=this._drawStart||0,l=this._drawCount||r.length-a,c=this.options.drawActiveElementsOnTop;let u;for(i.dataset&&i.dataset.draw(t,o,a,l),u=a;u<a+l;++u){const d=r[u];d.hidden||(d.active&&c?s.push(d):d.draw(t,o))}for(u=0;u<s.length;++u)s[u].draw(t,o)}getStyle(t,n){const i=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,n,i){const r=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const s=this._cachedMeta.data[t];o=s.$context||(s.$context=iS(this.getContext(),t,s)),o.parsed=this.getParsed(t),o.raw=r.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=nS(this.chart.getContext(),this.index)),o.dataset=r,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=i,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",i){const r=n==="active",o=this._cachedDataOpts,s=t+"-"+n,a=o[s],l=this.enableOptionSharing&&Lo(i);if(a)return nf(a,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,t),d=r?[`${t}Hover`,"hover",t,""]:[t,""],f=c.getOptionScopes(this.getDataset(),u),h=Object.keys(rt.elements[t]),g=()=>this.getContext(i,r,n),p=c.resolveNamedOptions(f,h,g,d);return p.$shared&&(p.$shared=l,o[s]=Object.freeze(nf(p,l))),p}_resolveAnimations(t,n,i){const r=this.chart,o=this._cachedDataOpts,s=`animation-${n}`,a=o[s];if(a)return a;let l;if(r.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),f=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(f,this.getContext(t,i,n))}const c=new zh(r,l&&l.animations);return l&&l._cacheable&&(o[s]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||h0(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const i=this.resolveDataElementOptions(t,n),r=this._sharedOptions,o=this.getSharedOptions(i),s=this.includeOptions(n,o)||o!==r;return this.updateSharedOptions(o,n,i),{sharedOptions:o,includeOptions:s}}updateElement(t,n,i,r){h0(r)?Object.assign(t,i):this._resolveAnimations(n,r).update(t,i)}updateSharedOptions(t,n,i){t&&!h0(n)&&this._resolveAnimations(void 0,n).update(t,i)}_setStyle(t,n,i,r){t.active=r;const o=this.getStyle(n,r);this._resolveAnimations(n,i,r).update(t,{options:!r&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,n,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,i=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const r=i.length,o=n.length,s=Math.min(o,r);s&&this.parse(0,s),o>r?this._insertElements(r,o-r,t):o<r&&this._removeElements(o,r-o)}_insertElements(t,n,i=!0){const r=this._cachedMeta,o=r.data,s=t+n;let a;const l=c=>{for(c.length+=n,a=c.length-1;a>=s;a--)c[a]=c[a-n]};for(l(o),a=t;a<s;++a)o[a]=new this.dataElementType;this._parsing&&l(r._parsed),this.parse(t,n),i&&this.updateElements(o,t,n,"reset")}updateElements(t,n,i,r){}_removeElements(t,n){const i=this._cachedMeta;if(this._parsing){const r=i._parsed.splice(t,n);i._stacked&&jr(i,r)}i.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,i,r]=t;this[n](i,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}U(Kt,"defaults",{}),U(Kt,"datasetElementType",null),U(Kt,"dataElementType",null);function oS(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let i=[];for(let r=0,o=n.length;r<o;r++)i=i.concat(n[r].controller.getAllParsedValues(e));e._cache.$bar=Ih(i.sort((r,o)=>r-o))}return e._cache.$bar}function sS(e){const t=e.iScale,n=oS(t,e.type);let i=t._length,r,o,s,a;const l=()=>{s===32767||s===-32768||(Lo(a)&&(i=Math.min(i,Math.abs(s-a)||i)),a=s)};for(r=0,o=n.length;r<o;++r)s=t.getPixelForValue(n[r]),l();for(a=void 0,r=0,o=t.ticks.length;r<o;++r)s=t.getPixelForTick(r),l();return i}function aS(e,t,n,i){const r=n.barThickness;let o,s;return Fe(r)?(o=t.min*n.categoryPercentage,s=n.barPercentage):(o=r*i,s=1),{chunk:o/i,ratio:s,start:t.pixels[e]-o/2}}function lS(e,t,n,i){const r=t.pixels,o=r[e];let s=e>0?r[e-1]:null,a=e<r.length-1?r[e+1]:null;const l=n.categoryPercentage;s===null&&(s=o-(a===null?t.end-t.start:a-o)),a===null&&(a=o+o-s);const c=o-(o-Math.min(s,a))/2*l;return{chunk:Math.abs(a-s)/2*l/i,ratio:n.barPercentage,start:c}}function cS(e,t,n,i){const r=n.parse(e[0],i),o=n.parse(e[1],i),s=Math.min(r,o),a=Math.max(r,o);let l=s,c=a;Math.abs(s)>Math.abs(a)&&(l=a,c=s),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:r,end:o,min:s,max:a}}function Zh(e,t,n,i){return nt(e)?cS(e,t,n,i):t[n.axis]=n.parse(e,i),t}function rf(e,t,n,i){const r=e.iScale,o=e.vScale,s=r.getLabels(),a=r===o,l=[];let c,u,d,f;for(c=n,u=n+i;c<u;++c)f=t[c],d={},d[r.axis]=a||r.parse(s[c],c),l.push(Zh(f,d,o,c));return l}function g0(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function uS(e,t,n){return e!==0?yn(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function dS(e){let t,n,i,r,o;return e.horizontal?(t=e.base>e.x,n="left",i="right"):(t=e.base<e.y,n="bottom",i="top"),t?(r="end",o="start"):(r="start",o="end"),{start:n,end:i,reverse:t,top:r,bottom:o}}function fS(e,t,n,i){let r=t.borderSkipped;const o={};if(!r){e.borderSkipped=o;return}if(r===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:a,reverse:l,top:c,bottom:u}=dS(e);r==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===i?r=c:(n._bottom||0)===i?r=u:(o[of(u,s,a,l)]=!0,r=c)),o[of(r,s,a,l)]=!0,e.borderSkipped=o}function of(e,t,n,i){return i?(e=hS(e,t,n),e=sf(e,n,t)):e=sf(e,t,n),e}function hS(e,t,n){return e===t?n:e===n?t:e}function sf(e,t,n){return e==="start"?t:e==="end"?n:e}function gS(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class fo extends Kt{parsePrimitiveData(t,n,i,r){return rf(t,n,i,r)}parseArrayData(t,n,i,r){return rf(t,n,i,r)}parseObjectData(t,n,i,r){const{iScale:o,vScale:s}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=o.axis==="x"?a:l,u=s.axis==="x"?a:l,d=[];let f,h,g,p;for(f=i,h=i+r;f<h;++f)p=n[f],g={},g[o.axis]=o.parse(ci(p,c),f),d.push(Zh(ci(p,u),g,s,f));return d}updateRangeFromParsed(t,n,i,r){super.updateRangeFromParsed(t,n,i,r);const o=i._custom;o&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:i,vScale:r}=n,o=this.getParsed(t),s=o._custom,a=g0(s)?"["+s.start+", "+s.end+"]":""+r.getLabelForValue(o[r.axis]);return{label:""+i.getLabelForValue(o[i.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,i,r){const o=r==="reset",{index:s,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,r);for(let h=n;h<n+i;h++){const g=this.getParsed(h),p=o||Fe(g[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(h),m=this._calculateBarIndexPixels(h,u),C=(g._stacks||{})[a.axis],y={horizontal:c,base:p.base,enableBorderRadius:!C||g0(g._custom)||s===C._top||s===C._bottom,x:c?p.head:m.center,y:c?m.center:p.head,height:c?m.size:Math.abs(p.size),width:c?Math.abs(p.size):m.size};f&&(y.options=d||this.resolveDataElementOptions(h,t[h].active?"active":r));const x=y.options||t[h].options;fS(y,x,C,s),gS(y,x,u.ratio),this.updateElement(t[h],h,y,r)}}_getStacks(t,n){const{iScale:i}=this._cachedMeta,r=i.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),o=i.options.stacked,s=[],a=this._cachedMeta.controller.getParsed(n),l=a&&a[i.axis],c=u=>{const d=u._parsed.find(h=>h[i.axis]===l),f=d&&d[u.vScale.axis];if(Fe(f)||isNaN(f))return!0};for(const u of r)if(!(n!==void 0&&c(u))&&((o===!1||s.indexOf(u.stack)===-1||o===void 0&&u.stack===void 0)&&s.push(u.stack),u.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(t).filter(i=>t[i].axis===n).shift()}_getAxis(){const t={},n=this.getFirstScaleIdForIndexAxis();for(const i of this.chart.data.datasets)t[Ae(this.chart.options.indexAxis==="x"?i.xAxisID:i.yAxisID,n)]=!0;return Object.keys(t)}_getStackIndex(t,n,i){const r=this._getStacks(t,i),o=n!==void 0?r.indexOf(n):-1;return o===-1?r.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,i=n.iScale,r=[];let o,s;for(o=0,s=n.data.length;o<s;++o)r.push(i.getPixelForValue(this.getParsed(o)[i.axis],o));const a=t.barThickness;return{min:a||sS(n),pixels:r,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:i,index:r},options:{base:o,minBarLength:s}}=this,a=o||0,l=this.getParsed(t),c=l._custom,u=g0(c);let d=l[n.axis],f=0,h=i?this.applyStack(n,l,i):d,g,p;h!==d&&(f=h-d,h=d),u&&(d=c.barStart,h=c.barEnd-c.barStart,d!==0&&yn(d)!==yn(c.barEnd)&&(f=0),f+=d);const m=!Fe(o)&&!u?o:f;let C=n.getPixelForValue(m);if(this.chart.getDataVisibility(t)?g=n.getPixelForValue(f+h):g=C,p=g-C,Math.abs(p)<s){p=uS(p,n,a)*s,d===a&&(C-=p/2);const y=n.getPixelForDecimal(0),x=n.getPixelForDecimal(1),I=Math.min(y,x),w=Math.max(y,x);C=Math.max(Math.min(C,w),I),g=C+p,i&&!u&&(l._stacks[n.axis]._visualValues[r]=n.getValueForPixel(g)-n.getValueForPixel(C))}if(C===n.getPixelForValue(a)){const y=yn(p)*n.getLineWidthForValue(a)/2;C+=y,p-=y}return{size:p,base:C,head:g,center:g+p/2}}_calculateBarIndexPixels(t,n){const i=n.scale,r=this.options,o=r.skipNull,s=Ae(r.maxBarThickness,1/0);let a,l;const c=this._getAxisCount();if(n.grouped){const u=o?this._getStackCount(t):n.stackCount,d=r.barThickness==="flex"?lS(t,n,r,u*c):aS(t,n,r,u*c),f=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,h=this._getAxis().indexOf(Ae(f,this.getFirstScaleIdForIndexAxis())),g=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0)+h;a=d.start+d.chunk*g+d.chunk/2,l=Math.min(s,d.chunk*d.ratio)}else a=i.getPixelForValue(this.getParsed(t)[i.axis],t),l=Math.min(s,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,i=t.data,r=i.length;let o=0;for(;o<r;++o)this.getParsed(o)[n.axis]!==null&&!i[o].hidden&&i[o].draw(this._ctx)}}U(fo,"id","bar"),U(fo,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),U(fo,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class ia extends Kt{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,i,r){const o=super.parsePrimitiveData(t,n,i,r);for(let s=0;s<o.length;s++)o[s]._custom=this.resolveDataElementOptions(s+i).radius;return o}parseArrayData(t,n,i,r){const o=super.parseArrayData(t,n,i,r);for(let s=0;s<o.length;s++){const a=n[i+s];o[s]._custom=Ae(a[2],this.resolveDataElementOptions(s+i).radius)}return o}parseObjectData(t,n,i,r){const o=super.parseObjectData(t,n,i,r);for(let s=0;s<o.length;s++){const a=n[i+s];o[s]._custom=Ae(a&&a.r&&+a.r,this.resolveDataElementOptions(s+i).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let n=0;for(let i=t.length-1;i>=0;--i)n=Math.max(n,t[i].size(this.resolveDataElementOptions(i))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,i=this.chart.data.labels||[],{xScale:r,yScale:o}=n,s=this.getParsed(t),a=r.getLabelForValue(s.x),l=o.getLabelForValue(s.y),c=s._custom;return{label:i[t]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,i,r){const o=r==="reset",{iScale:s,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,r),u=s.axis,d=a.axis;for(let f=n;f<n+i;f++){const h=t[f],g=!o&&this.getParsed(f),p={},m=p[u]=o?s.getPixelForDecimal(.5):s.getPixelForValue(g[u]),C=p[d]=o?a.getBasePixel():a.getPixelForValue(g[d]);p.skip=isNaN(m)||isNaN(C),c&&(p.options=l||this.resolveDataElementOptions(f,h.active?"active":r),o&&(p.options.radius=0)),this.updateElement(h,f,p,r)}}resolveDataElementOptions(t,n){const i=this.getParsed(t);let r=super.resolveDataElementOptions(t,n);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const o=r.radius;return n!=="active"&&(r.radius=0),r.radius+=Ae(i&&i._custom,o),r}}U(ia,"id","bubble"),U(ia,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),U(ia,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function pS(e,t,n){let i=1,r=1,o=0,s=0;if(t<it){const a=e,l=a+t,c=Math.cos(a),u=Math.sin(a),d=Math.cos(l),f=Math.sin(l),h=(x,I,w)=>Fo(x,a,l,!0)?1:Math.max(I,I*n,w,w*n),g=(x,I,w)=>Fo(x,a,l,!0)?-1:Math.min(I,I*n,w,w*n),p=h(0,c,d),m=h(dt,u,f),C=g(Be,c,d),y=g(Be+dt,u,f);i=(p-C)/2,r=(m-y)/2,o=-(p+C)/2,s=-(m+y)/2}return{ratioX:i,ratioY:r,offsetX:o,offsetY:s}}class ii extends Kt{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const i=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=i;else{let o=l=>+i[l];if(De(i[t])){const{key:l="value"}=this._parsing;o=c=>+ci(i[c],l)}let s,a;for(s=t,a=t+n;s<a;++s)r._parsed[s]=o(s)}}_getRotation(){return cn(this.options.rotation-90)}_getCircumference(){return cn(this.options.circumference)}_getRotationExtents(){let t=it,n=-it;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const r=this.chart.getDatasetMeta(i).controller,o=r._getRotation(),s=r._getCircumference();t=Math.min(t,o),n=Math.max(n,o+s)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:i}=n,r=this._cachedMeta,o=r.data,s=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(i.width,i.height)-s)/2,0),l=Math.min(Ay(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:g,offsetY:p}=pS(d,u,l),m=(i.width-s)/f,C=(i.height-s)/h,y=Math.max(Math.min(m,C)/2,0),x=vh(this.options.radius,y),I=Math.max(x*l,0),w=(x-I)/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=p*x,r.total=this.calculateTotal(),this.outerRadius=x-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(o,0,o.length,t)}_circumference(t,n){const i=this.options,r=this._cachedMeta,o=this._getCircumference();return n&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||r._parsed[t]===null||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*o/it)}updateElements(t,n,i,r){const o=r==="reset",s=this.chart,a=s.chartArea,c=s.options.animation,u=(a.left+a.right)/2,d=(a.top+a.bottom)/2,f=o&&c.animateScale,h=f?0:this.innerRadius,g=f?0:this.outerRadius,{sharedOptions:p,includeOptions:m}=this._getSharedOptions(n,r);let C=this._getRotation(),y;for(y=0;y<n;++y)C+=this._circumference(y,o);for(y=n;y<n+i;++y){const x=this._circumference(y,o),I=t[y],w={x:u+this.offsetX,y:d+this.offsetY,startAngle:C,endAngle:C+x,circumference:x,outerRadius:g,innerRadius:h};m&&(w.options=p||this.resolveDataElementOptions(y,I.active?"active":r)),C+=x,this.updateElement(I,y,w,r)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let i=0,r;for(r=0;r<n.length;r++){const o=t._parsed[r];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(r)&&!n[r].hidden&&(i+=Math.abs(o))}return i}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?it*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,i=this.chart,r=i.data.labels||[],o=Qo(n._parsed[t],i.options.locale);return{label:r[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const i=this.chart;let r,o,s,a,l;if(!t){for(r=0,o=i.data.datasets.length;r<o;++r)if(i.isDatasetVisible(r)){s=i.getDatasetMeta(r),t=s.data,a=s.controller;break}}if(!t)return 0;for(r=0,o=t.length;r<o;++r)l=a.resolveDataElementOptions(r),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let i=0,r=t.length;i<r;++i){const o=this.resolveDataElementOptions(i);n=Math.max(n,o.offset||0,o.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(n+=this._getRingWeight(i));return n}_getRingWeight(t){return Math.max(Ae(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}U(ii,"id","doughnut"),U(ii,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),U(ii,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),U(ii,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data,{labels:{pointStyle:i,textAlign:r,color:o,useBorderRadius:s,borderRadius:a}}=t.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((l,c)=>{const d=t.getDatasetMeta(0).controller.getStyle(c);return{text:l,fillStyle:d.backgroundColor,fontColor:o,hidden:!t.getDataVisibility(c),lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:d.borderWidth,strokeStyle:d.borderColor,textAlign:r,pointStyle:i,borderRadius:s&&(a||d.borderRadius),index:c}}):[]}},onClick(t,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}}});class ra extends Kt{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:i,data:r=[],_dataset:o}=n,s=this.chart._animationsDisabled;let{start:a,count:l}=Ah(n,r,s);this._drawStart=a,this._drawCount=l,Eh(n)&&(a=0,l=r.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=r;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!s,options:c},t),this.updateElements(r,a,l,t)}updateElements(t,n,i,r){const o=r==="reset",{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,r),f=s.axis,h=a.axis,{spanGaps:g,segment:p}=this.options,m=br(g)?g:Number.POSITIVE_INFINITY,C=this.chart._animationsDisabled||o||r==="none",y=n+i,x=t.length;let I=n>0&&this.getParsed(n-1);for(let w=0;w<x;++w){const R=t[w],E=C?R:{};if(w<n||w>=y){E.skip=!0;continue}const S=this.getParsed(w),M=Fe(S[h]),_=E[f]=s.getPixelForValue(S[f],w),P=E[h]=o||M?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,S,l):S[h],w);E.skip=isNaN(_)||isNaN(P)||M,E.stop=w>0&&Math.abs(S[f]-I[f])>m,p&&(E.parsed=S,E.raw=c.data[w]),d&&(E.options=u||this.resolveDataElementOptions(w,R.active?"active":r)),C||this.updateElement(R,w,E,r),I=S}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,i=n.options&&n.options.borderWidth||0,r=t.data||[];if(!r.length)return i;const o=r[0].size(this.resolveDataElementOptions(0)),s=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(i,o,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}U(ra,"id","line"),U(ra,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),U(ra,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class ho extends Kt{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,i=this.chart,r=i.data.labels||[],o=Qo(n._parsed[t].r,i.options.locale);return{label:r[t]||"",value:o}}parseObjectData(t,n,i,r){return Th.bind(this)(t,n,i,r)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((i,r)=>{const o=this.getParsed(r).r;!isNaN(o)&&this.chart.getDataVisibility(r)&&(o<n.min&&(n.min=o),o>n.max&&(n.max=o))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,i=t.options,r=Math.min(n.right-n.left,n.bottom-n.top),o=Math.max(r/2,0),s=Math.max(i.cutoutPercentage?o/100*i.cutoutPercentage:1,0),a=(o-s)/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,i,r){const o=r==="reset",s=this.chart,l=s.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,d=c.yCenter,f=c.getIndexAngle(0)-.5*Be;let h=f,g;const p=360/this.countVisibleElements();for(g=0;g<n;++g)h+=this._computeAngle(g,r,p);for(g=n;g<n+i;g++){const m=t[g];let C=h,y=h+this._computeAngle(g,r,p),x=s.getDataVisibility(g)?c.getDistanceFromCenterForValue(this.getParsed(g).r):0;h=y,o&&(l.animateScale&&(x=0),l.animateRotate&&(C=y=f));const I={x:u,y:d,innerRadius:0,outerRadius:x,startAngle:C,endAngle:y,options:this.resolveDataElementOptions(g,m.active?"active":r)};this.updateElement(m,g,I,r)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((i,r)=>{!isNaN(this.getParsed(r).r)&&this.chart.getDataVisibility(r)&&n++}),n}_computeAngle(t,n,i){return this.chart.getDataVisibility(t)?cn(this.resolveDataElementOptions(t,n).angle||i):0}}U(ho,"id","polarArea"),U(ho,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),U(ho,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:r}}=t.legend.options;return n.labels.map((o,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:r,lineWidth:l.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class Ba extends ii{}U(Ba,"id","pie"),U(Ba,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class oa extends Kt{getLabelAndValue(t){const n=this._cachedMeta.vScale,i=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(i[n.axis])}}parseObjectData(t,n,i,r){return Th.bind(this)(t,n,i,r)}update(t){const n=this._cachedMeta,i=n.dataset,r=n.data||[],o=n.iScale.getLabels();if(i.points=r,t!=="resize"){const s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===r.length,options:s};this.updateElement(i,void 0,a,t)}this.updateElements(r,0,r.length,t)}updateElements(t,n,i,r){const o=this._cachedMeta.rScale,s=r==="reset";for(let a=n;a<n+i;a++){const l=t[a],c=this.resolveDataElementOptions(a,l.active?"active":r),u=o.getPointPositionForValue(a,this.getParsed(a).r),d=s?o.xCenter:u.x,f=s?o.yCenter:u.y,h={x:d,y:f,angle:u.angle,skip:isNaN(d)||isNaN(f),options:c};this.updateElement(l,a,h,r)}}}U(oa,"id","radar"),U(oa,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),U(oa,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class sa extends Kt{getLabelAndValue(t){const n=this._cachedMeta,i=this.chart.data.labels||[],{xScale:r,yScale:o}=n,s=this.getParsed(t),a=r.getLabelForValue(s.x),l=o.getLabelForValue(s.y);return{label:i[t]||"",value:"("+a+", "+l+")"}}update(t){const n=this._cachedMeta,{data:i=[]}=n,r=this.chart._animationsDisabled;let{start:o,count:s}=Ah(n,i,r);if(this._drawStart=o,this._drawCount=s,Eh(n)&&(o=0,s=i.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:a,_dataset:l}=n;a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!l._decimated,a.points=i;const c=this.resolveDatasetElementOptions(t);c.segment=this.options.segment,this.updateElement(a,void 0,{animated:!r,options:c},t)}else this.datasetElementType&&(delete n.dataset,this.datasetElementType=!1);this.updateElements(i,o,s,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,i,r){const o=r==="reset",{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(n,r),d=this.getSharedOptions(u),f=this.includeOptions(r,d),h=s.axis,g=a.axis,{spanGaps:p,segment:m}=this.options,C=br(p)?p:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||o||r==="none";let x=n>0&&this.getParsed(n-1);for(let I=n;I<n+i;++I){const w=t[I],R=this.getParsed(I),E=y?w:{},S=Fe(R[g]),M=E[h]=s.getPixelForValue(R[h],I),_=E[g]=o||S?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,R,l):R[g],I);E.skip=isNaN(M)||isNaN(_)||S,E.stop=I>0&&Math.abs(R[h]-x[h])>C,m&&(E.parsed=R,E.raw=c.data[I]),f&&(E.options=d||this.resolveDataElementOptions(I,w.active?"active":r)),y||this.updateElement(w,I,E,r),x=R}this.updateSharedOptions(d,r,u)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let l=n.length-1;l>=0;--l)a=Math.max(a,n[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const i=t.dataset,r=i.options&&i.options.borderWidth||0;if(!n.length)return r;const o=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(r,o,s)/2}}U(sa,"id","scatter"),U(sa,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),U(sa,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var mS=Object.freeze({__proto__:null,BarController:fo,BubbleController:ia,DoughnutController:ii,LineController:ra,PieController:Ba,PolarAreaController:ho,RadarController:oa,ScatterController:sa});function xi(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Vc{constructor(t){U(this,"options");this.options=t||{}}static override(t){Object.assign(Vc.prototype,t)}init(){}formats(){return xi()}parse(){return xi()}format(){return xi()}add(){return xi()}diff(){return xi()}startOf(){return xi()}endOf(){return xi()}}var bS={_date:Vc};function CS(e,t,n,i){const{controller:r,data:o,_sorted:s}=e,a=r._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(a&&t===a.axis&&t!=="r"&&s&&o.length){const c=a._reversePixels?By:Bn;if(i){if(r._sharedOptions){const u=o[0],d=typeof u.getRange=="function"&&u.getRange(t);if(d){const f=c(o,t,n-d),h=c(o,t,n+d);return{lo:f.lo,hi:h.hi}}}}else{const u=c(o,t,n);if(l){const{vScale:d}=r._cachedMeta,{_parsed:f}=e,h=f.slice(0,u.lo+1).reverse().findIndex(p=>!Fe(p[d.axis]));u.lo-=Math.max(0,h);const g=f.slice(u.hi).findIndex(p=>!Fe(p[d.axis]));u.hi+=Math.max(0,g)}return u}}return{lo:0,hi:o.length-1}}function S2(e,t,n,i,r){const o=e.getSortedVisibleDatasetMetas(),s=n[t];for(let a=0,l=o.length;a<l;++a){const{index:c,data:u}=o[a],{lo:d,hi:f}=CS(o[a],t,s,r);for(let h=d;h<=f;++h){const g=u[h];g.skip||i(g,c,h)}}}function vS(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(i,r){const o=t?Math.abs(i.x-r.x):0,s=n?Math.abs(i.y-r.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(s,2))}}function p0(e,t,n,i,r){const o=[];return!r&&!e.isPointInArea(t)||S2(e,n,t,function(a,l,c){!r&&!$n(a,e.chartArea,0)||a.inRange(t.x,t.y,i)&&o.push({element:a,datasetIndex:l,index:c})},!0),o}function xS(e,t,n,i){let r=[];function o(s,a,l){const{startAngle:c,endAngle:u}=s.getProps(["startAngle","endAngle"],i),{angle:d}=wh(s,{x:t.x,y:t.y});Fo(d,c,u)&&r.push({element:s,datasetIndex:a,index:l})}return S2(e,n,t,o),r}function yS(e,t,n,i,r,o){let s=[];const a=vS(n);let l=Number.POSITIVE_INFINITY;function c(u,d,f){const h=u.inRange(t.x,t.y,r);if(i&&!h)return;const g=u.getCenterPoint(r);if(!(!!o||e.isPointInArea(g))&&!h)return;const m=a(t,g);m<l?(s=[{element:u,datasetIndex:d,index:f}],l=m):m===l&&s.push({element:u,datasetIndex:d,index:f})}return S2(e,n,t,c),s}function m0(e,t,n,i,r,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!i?xS(e,t,n,r):yS(e,t,n,i,r,o)}function af(e,t,n,i,r){const o=[],s=n==="x"?"inXRange":"inYRange";let a=!1;return S2(e,n,t,(l,c,u)=>{l[s]&&l[s](t[n],r)&&(o.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(t.x,t.y,r))}),i&&!a?[]:o}var wS={modes:{index(e,t,n,i){const r=wi(t,e),o=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?p0(e,r,o,i,s):m0(e,r,o,!1,i,s),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,i){const r=wi(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?p0(e,r,o,i,s):m0(e,r,o,!1,i,s);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let u=0;u<c.length;++u)a.push({element:c[u],datasetIndex:l,index:u})}return a},point(e,t,n,i){const r=wi(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;return p0(e,r,o,i,s)},nearest(e,t,n,i){const r=wi(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;return m0(e,r,o,n.intersect,i,s)},x(e,t,n,i){const r=wi(t,e);return af(e,r,"x",n.intersect,i)},y(e,t,n,i){const r=wi(t,e);return af(e,r,"y",n.intersect,i)}}};const Xh=["left","top","right","bottom"];function Br(e,t){return e.filter(n=>n.pos===t)}function lf(e,t){return e.filter(n=>Xh.indexOf(n.pos)===-1&&n.box.axis===t)}function $r(e,t){return e.sort((n,i)=>{const r=t?i:n,o=t?n:i;return r.weight===o.weight?r.index-o.index:r.weight-o.weight})}function SS(e){const t=[];let n,i,r,o,s,a;for(n=0,i=(e||[]).length;n<i;++n)r=e[n],{position:o,options:{stack:s,stackWeight:a=1}}=r,t.push({index:n,box:r,pos:o,horizontal:r.isHorizontal(),weight:r.weight,stack:s&&o+s,stackWeight:a});return t}function IS(e){const t={};for(const n of e){const{stack:i,pos:r,stackWeight:o}=n;if(!i||!Xh.includes(r))continue;const s=t[i]||(t[i]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=o}return t}function MS(e,t){const n=IS(e),{vBoxMaxWidth:i,hBoxMaxHeight:r}=t;let o,s,a;for(o=0,s=e.length;o<s;++o){a=e[o];const{fullSize:l}=a.box,c=n[a.stack],u=c&&a.stackWeight/c.weight;a.horizontal?(a.width=u?u*i:l&&t.availableWidth,a.height=r):(a.width=i,a.height=u?u*r:l&&t.availableHeight)}return n}function _S(e){const t=SS(e),n=$r(t.filter(c=>c.box.fullSize),!0),i=$r(Br(t,"left"),!0),r=$r(Br(t,"right")),o=$r(Br(t,"top"),!0),s=$r(Br(t,"bottom")),a=lf(t,"x"),l=lf(t,"y");return{fullSize:n,leftAndTop:i.concat(o),rightAndBottom:r.concat(l).concat(s).concat(a),chartArea:Br(t,"chartArea"),vertical:i.concat(r).concat(l),horizontal:o.concat(s).concat(a)}}function cf(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function Yh(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function AS(e,t,n,i){const{pos:r,box:o}=n,s=e.maxPadding;if(!De(r)){n.size&&(e[r]-=n.size);const d=i[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?o.height:o.width),n.size=d.size/d.count,e[r]+=n.size}o.getPadding&&Yh(s,o.getPadding());const a=Math.max(0,t.outerWidth-cf(s,e,"left","right")),l=Math.max(0,t.outerHeight-cf(s,e,"top","bottom")),c=a!==e.w,u=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function ES(e){const t=e.maxPadding;function n(i){const r=Math.max(t[i]-e[i],0);return e[i]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function RS(e,t){const n=t.maxPadding;function i(r){const o={left:0,top:0,right:0,bottom:0};return r.forEach(s=>{o[s]=Math.max(t[s],n[s])}),o}return i(e?["left","right"]:["top","bottom"])}function Ur(e,t,n,i){const r=[];let o,s,a,l,c,u;for(o=0,s=e.length,c=0;o<s;++o){a=e[o],l=a.box,l.update(a.width||t.w,a.height||t.h,RS(a.horizontal,t));const{same:d,other:f}=AS(t,n,a,i);c|=d&&r.length,u=u||f,l.fullSize||r.push(a)}return c&&Ur(r,t,n,i)||u}function _s(e,t,n,i,r){e.top=n,e.left=t,e.right=t+i,e.bottom=n+r,e.width=i,e.height=r}function uf(e,t,n,i){const r=n.padding;let{x:o,y:s}=t;for(const a of e){const l=a.box,c=i[a.stack]||{placed:0,weight:1},u=a.stackWeight/c.weight||1;if(a.horizontal){const d=t.w*u,f=c.size||l.height;Lo(c.start)&&(s=c.start),l.fullSize?_s(l,r.left,s,n.outerWidth-r.right-r.left,f):_s(l,t.left+c.placed,s,d,f),c.start=s,c.placed+=d,s=l.bottom}else{const d=t.h*u,f=c.size||l.width;Lo(c.start)&&(o=c.start),l.fullSize?_s(l,o,r.top,f,n.outerHeight-r.bottom-r.top):_s(l,o,t.top+c.placed,f,d),c.start=o,c.placed+=d,o=l.right}}t.x=o,t.y=s}var Pt={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,i){if(!e)return;const r=St(e.options.layout.padding),o=Math.max(t-r.width,0),s=Math.max(n-r.height,0),a=_S(e.boxes),l=a.vertical,c=a.horizontal;Ye(e.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});const u=l.reduce((p,m)=>m.box.options&&m.box.options.display===!1?p:p+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/u,hBoxMaxHeight:s/2}),f=Object.assign({},r);Yh(f,St(i));const h=Object.assign({maxPadding:f,w:o,h:s,x:r.left,y:r.top},r),g=MS(l.concat(c),d);Ur(a.fullSize,h,d,g),Ur(l,h,d,g),Ur(c,h,d,g)&&Ur(l,h,d,g),ES(h),uf(a.leftAndTop,h,d,g),h.x+=h.w,h.y+=h.h,uf(a.rightAndBottom,h,d,g),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Ye(a.chartArea,p=>{const m=p.box;Object.assign(m,e.chartArea),m.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class Jh{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,i){}removeEventListener(t,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,i,r){return n=Math.max(0,n||t.width),i=i||t.height,{width:n,height:Math.max(0,r?Math.floor(n/r):i)}}isAttached(t){return!0}updateConfig(t){}}class kS extends Jh{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const aa="$chartjs",PS={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},df=e=>e===null||e==="";function LS(e,t){const n=e.style,i=e.getAttribute("height"),r=e.getAttribute("width");if(e[aa]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",df(r)){const o=Xd(e,"width");o!==void 0&&(e.width=o)}if(df(i))if(e.style.height==="")e.height=e.width/(t||2);else{const o=Xd(e,"height");o!==void 0&&(e.height=o)}return e}const Uh=Fw?{passive:!0}:!1;function FS(e,t,n){e&&e.addEventListener(t,n,Uh)}function OS(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,Uh)}function NS(e,t){const n=PS[e.type]||e.type,{x:i,y:r}=wi(e,t);return{type:n,chart:t,native:e,x:i!==void 0?i:null,y:r!==void 0?r:null}}function $a(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function TS(e,t,n){const i=e.canvas,r=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||$a(a.addedNodes,i),s=s&&!$a(a.removedNodes,i);s&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}function DS(e,t,n){const i=e.canvas,r=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||$a(a.removedNodes,i),s=s&&!$a(a.addedNodes,i);s&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}const No=new Map;let ff=0;function Qh(){const e=window.devicePixelRatio;e!==ff&&(ff=e,No.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function VS(e,t){No.size||window.addEventListener("resize",Qh),No.set(e,t)}function jS(e){No.delete(e),No.size||window.removeEventListener("resize",Qh)}function BS(e,t,n){const i=e.canvas,r=i&&Dc(i);if(!r)return;const o=_h((a,l)=>{const c=r.clientWidth;n(a,l),c<r.clientWidth&&n()},window),s=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return s.observe(r),VS(e,o),s}function b0(e,t,n){n&&n.disconnect(),t==="resize"&&jS(e)}function $S(e,t,n){const i=e.canvas,r=_h(o=>{e.ctx!==null&&n(NS(o,e))},e);return FS(i,t,r),r}class HS extends Jh{acquireContext(t,n){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(LS(t,n),i):null}releaseContext(t){const n=t.canvas;if(!n[aa])return!1;const i=n[aa].initial;["height","width"].forEach(o=>{const s=i[o];Fe(s)?n.removeAttribute(o):n.setAttribute(o,s)});const r=i.style||{};return Object.keys(r).forEach(o=>{n.style[o]=r[o]}),n.width=n.width,delete n[aa],!0}addEventListener(t,n,i){this.removeEventListener(t,n);const r=t.$proxies||(t.$proxies={}),s={attach:TS,detach:DS,resize:BS}[n]||$S;r[n]=s(t,n,i)}removeEventListener(t,n){const i=t.$proxies||(t.$proxies={}),r=i[n];if(!r)return;({attach:b0,detach:b0,resize:b0}[n]||OS)(t,n,r),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,i,r){return Lw(t,n,i,r)}isAttached(t){const n=t&&Dc(t);return!!(n&&n.isConnected)}}function GS(e){return!Tc()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?kS:HS}var Xs;let kn=(Xs=class{constructor(){U(this,"x");U(this,"y");U(this,"active",!1);U(this,"options");U(this,"$animations")}tooltipPosition(t){const{x:n,y:i}=this.getProps(["x","y"],t);return{x:n,y:i}}hasValue(){return br(this.x)&&br(this.y)}getProps(t,n){const i=this.$animations;if(!n||!i)return this;const r={};return t.forEach(o=>{r[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),r}},U(Xs,"defaults",{}),U(Xs,"defaultRoutes"),Xs);function zS(e,t){const n=e.options.ticks,i=WS(e),r=Math.min(n.maxTicksLimit||i,i),o=n.major.enabled?XS(t):[],s=o.length,a=o[0],l=o[s-1],c=[];if(s>r)return YS(t,c,o,s/r),c;const u=ZS(o,t,r);if(s>0){let d,f;const h=s>1?Math.round((l-a)/(s-1)):null;for(As(t,c,u,Fe(h)?0:a-h,a),d=0,f=s-1;d<f;d++)As(t,c,u,o[d],o[d+1]);return As(t,c,u,l,Fe(h)?t.length:l+h),c}return As(t,c,u),c}function WS(e){const t=e.options.offset,n=e._tickSize(),i=e._length/n+(t?0:1),r=e._maxLength/n;return Math.floor(Math.min(i,r))}function ZS(e,t,n){const i=JS(e),r=t.length/n;if(!i)return Math.max(r,1);const o=Ny(i);for(let s=0,a=o.length-1;s<a;s++){const l=o[s];if(l>r)return l}return Math.max(r,1)}function XS(e){const t=[];let n,i;for(n=0,i=e.length;n<i;n++)e[n].major&&t.push(n);return t}function YS(e,t,n,i){let r=0,o=n[0],s;for(i=Math.ceil(i),s=0;s<e.length;s++)s===o&&(t.push(e[s]),r++,o=n[r*i])}function As(e,t,n,i,r){const o=Ae(i,0),s=Math.min(Ae(r,e.length),e.length);let a=0,l,c,u;for(n=Math.ceil(n),r&&(l=r-i,n=l/Math.floor(l/n)),u=o;u<0;)a++,u=Math.round(o+a*n);for(c=Math.max(o,0);c<s;c++)c===u&&(t.push(e[c]),a++,u=Math.round(o+a*n))}function JS(e){const t=e.length;let n,i;if(t<2)return!1;for(i=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==i)return!1;return i}const US=e=>e==="left"?"right":e==="right"?"left":e,hf=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,gf=(e,t)=>Math.min(t||e,e);function pf(e,t){const n=[],i=e.length/t,r=e.length;let o=0;for(;o<r;o+=i)n.push(e[Math.floor(o)]);return n}function QS(e,t,n){const i=e.ticks.length,r=Math.min(t,i-1),o=e._startPixel,s=e._endPixel,a=1e-6;let l=e.getPixelForTick(r),c;if(!(n&&(i===1?c=Math.max(l-o,s-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(r-1))/2,l+=r<t?c:-c,l<o-a||l>s+a)))return l}function qS(e,t){Ye(e,n=>{const i=n.gc,r=i.length/2;let o;if(r>t){for(o=0;o<r;++o)delete n.data[i[o]];i.splice(0,r)}})}function Hr(e){return e.drawTicks?e.tickLength:0}function mf(e,t){if(!e.display)return 0;const n=gt(e.font,t),i=St(e.padding);return(nt(e.text)?e.text.length:1)*n.lineHeight+i.height}function KS(e,t){return gi(e,{scale:t,type:"scale"})}function eI(e,t,n){return gi(e,{tick:n,index:t,type:"tick"})}function tI(e,t,n){let i=kc(e);return(n&&t!=="right"||!n&&t==="right")&&(i=US(i)),i}function nI(e,t,n,i){const{top:r,left:o,bottom:s,right:a,chart:l}=e,{chartArea:c,scales:u}=l;let d=0,f,h,g;const p=s-r,m=a-o;if(e.isHorizontal()){if(h=_t(i,o,a),De(n)){const C=Object.keys(n)[0],y=n[C];g=u[C].getPixelForValue(y)+p-t}else n==="center"?g=(c.bottom+c.top)/2+p-t:g=hf(e,n,t);f=a-o}else{if(De(n)){const C=Object.keys(n)[0],y=n[C];h=u[C].getPixelForValue(y)-m+t}else n==="center"?h=(c.left+c.right)/2-m+t:h=hf(e,n,t);g=_t(i,s,r),d=n==="left"?-dt:dt}return{titleX:h,titleY:g,maxWidth:f,rotation:d}}class pi extends kn{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:i,_suggestedMax:r}=this;return t=$t(t,Number.POSITIVE_INFINITY),n=$t(n,Number.NEGATIVE_INFINITY),i=$t(i,Number.POSITIVE_INFINITY),r=$t(r,Number.NEGATIVE_INFINITY),{min:$t(t,i),max:$t(n,r),minDefined:ct(t),maxDefined:ct(n)}}getMinMax(t){let{min:n,max:i,minDefined:r,maxDefined:o}=this.getUserBounds(),s;if(r&&o)return{min:n,max:i};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)s=a[l].controller.getMinMax(this,t),r||(n=Math.min(n,s.min)),o||(i=Math.max(i,s.max));return n=o&&n>i?i:n,i=r&&n>i?n:i,{min:$t(n,$t(i,n)),max:$t(i,$t(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ue(this.options.beforeUpdate,[this])}update(t,n,i){const{beginAtZero:r,grace:o,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=uw(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?pf(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=zS(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,i;this.isHorizontal()?(n=this.left,i=this.right):(n=this.top,i=this.bottom,t=!t),this._startPixel=n,this._endPixel=i,this._reversePixels=t,this._length=i-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Ue(this.options.afterUpdate,[this])}beforeSetDimensions(){Ue(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Ue(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Ue(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ue(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let i,r,o;for(i=0,r=t.length;i<r;i++)o=t[i],o.label=Ue(n.callback,[o.value,i,t],this)}afterTickToLabelConversion(){Ue(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ue(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,i=gf(this.ticks.length,t.ticks.maxTicksLimit),r=n.minRotation||0,o=n.maxRotation;let s=r,a,l,c;if(!this._isVisible()||!n.display||r>=o||i<=1||!this.isHorizontal()){this.labelRotation=r;return}const u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,h=bt(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/i:h/(i-1),d+6>a&&(a=h/(i-(t.offset?.5:1)),l=this.maxHeight-Hr(t.grid)-n.padding-mf(t.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),s=Ec(Math.min(Math.asin(bt((u.highest.height+6)/a,-1,1)),Math.asin(bt(l/c,-1,1))-Math.asin(bt(f/c,-1,1)))),s=Math.max(r,Math.min(o,s))),this.labelRotation=s}afterCalculateLabelRotation(){Ue(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ue(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:i,title:r,grid:o}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=mf(r,n.options.font);if(a?(t.width=this.maxWidth,t.height=Hr(o)+l):(t.height=this.maxHeight,t.width=Hr(o)+l),i.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),h=i.padding*2,g=cn(this.labelRotation),p=Math.cos(g),m=Math.sin(g);if(a){const C=i.mirror?0:m*d.width+p*f.height;t.height=Math.min(this.maxHeight,t.height+C+h)}else{const C=i.mirror?0:p*d.width+m*f.height;t.width=Math.min(this.maxWidth,t.width+C+h)}this._calculatePadding(c,u,m,p)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,i,r){const{ticks:{align:o,padding:s},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,h=0;l?c?(f=r*t.width,h=i*n.height):(f=i*t.height,h=r*n.width):o==="start"?h=n.width:o==="end"?f=t.width:o!=="inner"&&(f=t.width/2,h=n.width/2),this.paddingLeft=Math.max((f-u+s)*this.width/(this.width-u),0),this.paddingRight=Math.max((h-d+s)*this.width/(this.width-d),0)}else{let u=n.height/2,d=t.height/2;o==="start"?(u=0,d=t.height):o==="end"&&(u=n.height,d=0),this.paddingTop=u+s,this.paddingBottom=d+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ue(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,i;for(n=0,i=t.length;n<i;n++)Fe(t[n].label)&&(t.splice(n,1),i--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let i=this.ticks;n<i.length&&(i=pf(i,n)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,i){const{ctx:r,_longestTextCache:o}=this,s=[],a=[],l=Math.floor(n/gf(n,i));let c=0,u=0,d,f,h,g,p,m,C,y,x,I,w;for(d=0;d<n;d+=l){if(g=t[d].label,p=this._resolveTickFontOptions(d),r.font=m=p.string,C=o[m]=o[m]||{data:{},gc:[]},y=p.lineHeight,x=I=0,!Fe(g)&&!nt(g))x=Da(r,C.data,C.gc,x,g),I=y;else if(nt(g))for(f=0,h=g.length;f<h;++f)w=g[f],!Fe(w)&&!nt(w)&&(x=Da(r,C.data,C.gc,x,w),I+=y);s.push(x),a.push(I),c=Math.max(x,c),u=Math.max(I,u)}qS(o,n);const R=s.indexOf(c),E=a.indexOf(u),S=M=>({width:s[M]||0,height:a[M]||0});return{first:S(0),last:S(n-1),widest:S(R),highest:S(E),widths:s,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return jy(this._alignToPixels?vi(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const i=n[t];return i.$context||(i.$context=eI(this.getContext(),t,i))}return this.$context||(this.$context=KS(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=cn(this.labelRotation),i=Math.abs(Math.cos(n)),r=Math.abs(Math.sin(n)),o=this._getLabelSizes(),s=t.autoSkipPadding||0,a=o?o.widest.width+s:0,l=o?o.highest.height+s:0;return this.isHorizontal()?l*i>a*r?a/i:l/r:l*r<a*i?l/i:a/r}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,i=this.chart,r=this.options,{grid:o,position:s,border:a}=r,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=Hr(o),h=[],g=a.setContext(this.getContext()),p=g.display?g.width:0,m=p/2,C=function(F){return vi(i,F,p)};let y,x,I,w,R,E,S,M,_,P,N,B;if(s==="top")y=C(this.bottom),E=this.bottom-f,M=y-m,P=C(t.top)+m,B=t.bottom;else if(s==="bottom")y=C(this.top),P=t.top,B=C(t.bottom)-m,E=y+m,M=this.top+f;else if(s==="left")y=C(this.right),R=this.right-f,S=y-m,_=C(t.left)+m,N=t.right;else if(s==="right")y=C(this.left),_=t.left,N=C(t.right)-m,R=y+m,S=this.left+f;else if(n==="x"){if(s==="center")y=C((t.top+t.bottom)/2+.5);else if(De(s)){const F=Object.keys(s)[0],O=s[F];y=C(this.chart.scales[F].getPixelForValue(O))}P=t.top,B=t.bottom,E=y+m,M=E+f}else if(n==="y"){if(s==="center")y=C((t.left+t.right)/2);else if(De(s)){const F=Object.keys(s)[0],O=s[F];y=C(this.chart.scales[F].getPixelForValue(O))}R=y-m,S=R-f,_=t.left,N=t.right}const T=Ae(r.ticks.maxTicksLimit,d),k=Math.max(1,Math.ceil(d/T));for(x=0;x<d;x+=k){const F=this.getContext(x),O=o.setContext(F),A=a.setContext(F),L=O.lineWidth,j=O.color,G=A.dash||[],H=A.dashOffset,$=O.tickWidth,J=O.tickColor,le=O.tickBorderDash||[],he=O.tickBorderDashOffset;I=QS(this,x,l),I!==void 0&&(w=vi(i,I,L),c?R=S=_=N=w:E=M=P=B=w,h.push({tx1:R,ty1:E,tx2:S,ty2:M,x1:_,y1:P,x2:N,y2:B,width:L,color:j,borderDash:G,borderDashOffset:H,tickWidth:$,tickColor:J,tickBorderDash:le,tickBorderDashOffset:he}))}return this._ticksLength=d,this._borderValue=y,h}_computeLabelItems(t){const n=this.axis,i=this.options,{position:r,ticks:o}=i,s=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=o,f=Hr(i.grid),h=f+u,g=d?-u:h,p=-cn(this.labelRotation),m=[];let C,y,x,I,w,R,E,S,M,_,P,N,B="middle";if(r==="top")R=this.bottom-g,E=this._getXAxisLabelAlignment();else if(r==="bottom")R=this.top+g,E=this._getXAxisLabelAlignment();else if(r==="left"){const k=this._getYAxisLabelAlignment(f);E=k.textAlign,w=k.x}else if(r==="right"){const k=this._getYAxisLabelAlignment(f);E=k.textAlign,w=k.x}else if(n==="x"){if(r==="center")R=(t.top+t.bottom)/2+h;else if(De(r)){const k=Object.keys(r)[0],F=r[k];R=this.chart.scales[k].getPixelForValue(F)+h}E=this._getXAxisLabelAlignment()}else if(n==="y"){if(r==="center")w=(t.left+t.right)/2-h;else if(De(r)){const k=Object.keys(r)[0],F=r[k];w=this.chart.scales[k].getPixelForValue(F)}E=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?B="top":l==="end"&&(B="bottom"));const T=this._getLabelSizes();for(C=0,y=a.length;C<y;++C){x=a[C],I=x.label;const k=o.setContext(this.getContext(C));S=this.getPixelForTick(C)+o.labelOffset,M=this._resolveTickFontOptions(C),_=M.lineHeight,P=nt(I)?I.length:1;const F=P/2,O=k.color,A=k.textStrokeColor,L=k.textStrokeWidth;let j=E;s?(w=S,E==="inner"&&(C===y-1?j=this.options.reverse?"left":"right":C===0?j=this.options.reverse?"right":"left":j="center"),r==="top"?c==="near"||p!==0?N=-P*_+_/2:c==="center"?N=-T.highest.height/2-F*_+_:N=-T.highest.height+_/2:c==="near"||p!==0?N=_/2:c==="center"?N=T.highest.height/2-F*_:N=T.highest.height-P*_,d&&(N*=-1),p!==0&&!k.showLabelBackdrop&&(w+=_/2*Math.sin(p))):(R=S,N=(1-P)*_/2);let G;if(k.showLabelBackdrop){const H=St(k.backdropPadding),$=T.heights[C],J=T.widths[C];let le=N-H.top,he=0-H.left;switch(B){case"middle":le-=$/2;break;case"bottom":le-=$;break}switch(E){case"center":he-=J/2;break;case"right":he-=J;break;case"inner":C===y-1?he-=J:C>0&&(he-=J/2);break}G={left:he,top:le,width:J+H.width,height:$+H.height,color:k.backdropColor}}m.push({label:I,font:M,textOffset:N,options:{rotation:p,color:O,strokeColor:A,strokeWidth:L,textAlign:j,textBaseline:B,translation:[w,R],backdrop:G}})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-cn(this.labelRotation))return t==="top"?"left":"right";let r="center";return n.align==="start"?r="left":n.align==="end"?r="right":n.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:i,mirror:r,padding:o}}=this.options,s=this._getLabelSizes(),a=t+o,l=s.widest.width;let c,u;return n==="left"?r?(u=this.right+o,i==="near"?c="left":i==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?r?(u=this.left+o,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,i==="near"?c="left":i==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:i,top:r,width:o,height:s}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(i,r,o,s),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const r=this.ticks.findIndex(o=>o.value===t);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){const n=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,s;const a=(l,c,u)=>{!u.width||!u.color||(i.save(),i.lineWidth=u.width,i.strokeStyle=u.color,i.setLineDash(u.borderDash||[]),i.lineDashOffset=u.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(n.display)for(o=0,s=r.length;o<s;++o){const l=r[o];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:i,grid:r}}=this,o=i.setContext(this.getContext()),s=i.display?o.width:0;if(!s)return;const a=r.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,f;this.isHorizontal()?(c=vi(t,this.left,s)-s/2,u=vi(t,this.right,a)+a/2,d=f=l):(d=vi(t,this.top,s)-s/2,f=vi(t,this.bottom,a)+a/2,c=u=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(c,d),n.lineTo(u,f),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const i=this.ctx,r=this._computeLabelArea();r&&Li(i,r);const o=this.getLabelItems(t);for(const s of o){const a=s.options,l=s.font,c=s.label,u=s.textOffset;zi(i,c,0,u,l,a)}r&&Fi(i)}drawTitle(){const{ctx:t,options:{position:n,title:i,reverse:r}}=this;if(!i.display)return;const o=gt(i.font),s=St(i.padding),a=i.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||De(n)?(l+=s.bottom,nt(i.text)&&(l+=o.lineHeight*(i.text.length-1))):l+=s.top;const{titleX:c,titleY:u,maxWidth:d,rotation:f}=nI(this,l,n,a);zi(t,i.text,0,0,o,{color:i.color,maxWidth:d,rotation:f,textAlign:tI(a,n,r),textBaseline:"middle",translation:[c,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,i=Ae(t.grid&&t.grid.z,-1),r=Ae(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==pi.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[];let o,s;for(o=0,s=n.length;o<s;++o){const a=n[o];a[i]===this.id&&(!t||a.type===t)&&r.push(a)}return r}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return gt(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Es{constructor(t,n,i){this.type=t,this.scope=n,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let i;oI(n)&&(i=this.register(n));const r=this.items,o=t.id,s=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in r||(r[o]=t,iI(t,s,i),this.override&&rt.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const n=this.items,i=t.id,r=this.scope;i in n&&delete n[i],r&&i in rt[r]&&(delete rt[r][i],this.override&&delete Gi[i])}}function iI(e,t,n){const i=Ct(Object.create(null),[n?rt.get(n):{},rt.get(t),e.defaults]);rt.set(t,i),e.defaultRoutes&&rI(t,e.defaultRoutes),e.descriptors&&rt.describe(t,e.descriptors)}function rI(e,t){Object.keys(t).forEach(n=>{const i=n.split("."),r=i.pop(),o=[e].concat(i).join("."),s=t[n].split("."),a=s.pop(),l=s.join(".");rt.route(o,r,l,a)})}function oI(e){return"id"in e&&"defaults"in e}class sI{constructor(){this.controllers=new Es(Kt,"datasets",!0),this.elements=new Es(kn,"elements"),this.plugins=new Es(Object,"plugins"),this.scales=new Es(pi,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,i){[...n].forEach(r=>{const o=i||this._getRegistryForType(r);i||o.isForType(r)||o===this.plugins&&r.id?this._exec(t,o,r):Ye(r,s=>{const a=i||this._getRegistryForType(s);this._exec(t,a,s)})})}_exec(t,n,i){const r=Ac(t);Ue(i["before"+r],[],i),n[t](i),Ue(i["after"+r],[],i)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const i=this._typedRegistries[n];if(i.isForType(t))return i}return this.plugins}_get(t,n,i){const r=n.get(t);if(r===void 0)throw new Error('"'+t+'" is not a registered '+i+".");return r}}var Ot=new sI;class aI{constructor(){this._init=void 0}notify(t,n,i,r){if(n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),this._init===void 0)return;const o=r?this._descriptors(t).filter(r):this._descriptors(t),s=this._notify(o,t,n,i);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),s}_notify(t,n,i,r){r=r||{};for(const o of t){const s=o.plugin,a=s[i],l=[n,r,o.options];if(Ue(a,l,s)===!1&&r.cancelable)return!1}return!0}invalidate(){Fe(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const i=t&&t.config,r=Ae(i.options&&i.options.plugins,{}),o=lI(i);return r===!1&&!n?[]:uI(t,o,r,n)}_notifyStateChanges(t){const n=this._oldCache||[],i=this._cache,r=(o,s)=>o.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(r(n,i),t,"stop"),this._notify(r(i,n),t,"start")}}function lI(e){const t={},n=[],i=Object.keys(Ot.plugins.items);for(let o=0;o<i.length;o++)n.push(Ot.getPlugin(i[o]));const r=e.plugins||[];for(let o=0;o<r.length;o++){const s=r[o];n.indexOf(s)===-1&&(n.push(s),t[s.id]=!0)}return{plugins:n,localIds:t}}function cI(e,t){return!t&&e===!1?null:e===!0?{}:e}function uI(e,{plugins:t,localIds:n},i,r){const o=[],s=e.getContext();for(const a of t){const l=a.id,c=cI(i[l],r);c!==null&&o.push({plugin:a,options:dI(e.config,{plugin:a,local:n[l]},c,s)})}return o}function dI(e,{plugin:t,local:n},i,r){const o=e.pluginScopeKeys(t),s=e.getOptionScopes(i,o);return n&&t.defaults&&s.push(t.defaults),e.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function dl(e,t){const n=rt.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function fI(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function hI(e,t){return e===t?"_index_":"_value_"}function bf(e){if(e==="x"||e==="y"||e==="r")return e}function gI(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function fl(e,...t){if(bf(e))return e;for(const n of t){const i=n.axis||gI(n.position)||e.length>1&&bf(e[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Cf(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function pI(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(i=>i.xAxisID===e||i.yAxisID===e);if(n.length)return Cf(e,"x",n[0])||Cf(e,"y",n[0])}return{}}function mI(e,t){const n=Gi[e.type]||{scales:{}},i=t.scales||{},r=dl(e.type,t),o=Object.create(null);return Object.keys(i).forEach(s=>{const a=i[s];if(!De(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=fl(s,a,pI(s,e),rt.scales[a.type]),c=hI(l,r),u=n.scales||{};o[s]=ao(Object.create(null),[{axis:l},a,u[l],u[c]])}),e.data.datasets.forEach(s=>{const a=s.type||e.type,l=s.indexAxis||dl(a,t),u=(Gi[a]||{}).scales||{};Object.keys(u).forEach(d=>{const f=fI(d,l),h=s[f+"AxisID"]||f;o[h]=o[h]||Object.create(null),ao(o[h],[{axis:f},i[h],u[d]])})}),Object.keys(o).forEach(s=>{const a=o[s];ao(a,[rt.scales[a.type],rt.scale])}),o}function qh(e){const t=e.options||(e.options={});t.plugins=Ae(t.plugins,{}),t.scales=mI(e,t)}function Kh(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function bI(e){return e=e||{},e.data=Kh(e.data),qh(e),e}const vf=new Map,e5=new Set;function Rs(e,t){let n=vf.get(e);return n||(n=t(),vf.set(e,n),e5.add(n)),n}const Gr=(e,t,n)=>{const i=ci(t,n);i!==void 0&&e.add(i)};class CI{constructor(t){this._config=bI(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Kh(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),qh(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Rs(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Rs(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Rs(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,i=this.type;return Rs(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const i=this._scopeCache;let r=i.get(t);return(!r||n)&&(r=new Map,i.set(t,r)),r}getOptionScopes(t,n,i){const{options:r,type:o}=this,s=this._cachedScopes(t,i),a=s.get(n);if(a)return a;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(d=>Gr(l,t,d))),u.forEach(d=>Gr(l,r,d)),u.forEach(d=>Gr(l,Gi[o]||{},d)),u.forEach(d=>Gr(l,rt,d)),u.forEach(d=>Gr(l,ul,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),e5.has(n)&&s.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Gi[n]||{},rt.datasets[n]||{},{type:n},rt,ul]}resolveNamedOptions(t,n,i,r=[""]){const o={$shared:!0},{resolver:s,subPrefixes:a}=xf(this._resolverCache,t,r);let l=s;if(xI(s,n)){o.$shared=!1,i=ui(i)?i():i;const c=this.createResolver(t,i,a);l=Cr(s,i,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,i=[""],r){const{resolver:o}=xf(this._resolverCache,t,i);return De(n)?Cr(o,n,void 0,r):o}}function xf(e,t,n){let i=e.get(t);i||(i=new Map,e.set(t,i));const r=n.join();let o=i.get(r);return o||(o={resolver:Fc(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},i.set(r,o)),o}const vI=e=>De(e)&&Object.getOwnPropertyNames(e).some(t=>ui(e[t]));function xI(e,t){const{isScriptable:n,isIndexable:i}=Lh(e);for(const r of t){const o=n(r),s=i(r),a=(s||o)&&e[r];if(o&&(ui(a)||vI(a))||s&&nt(a))return!0}return!1}var yI="4.5.1";const wI=["top","bottom","left","right","chartArea"];function yf(e,t){return e==="top"||e==="bottom"||wI.indexOf(e)===-1&&t==="x"}function wf(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}function Sf(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Ue(n&&n.onComplete,[e],t)}function SI(e){const t=e.chart,n=t.options.animation;Ue(n&&n.onProgress,[e],t)}function t5(e){return Tc()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const la={},If=e=>{const t=t5(e);return Object.values(la).filter(n=>n.canvas===t).pop()};function II(e,t,n){const i=Object.keys(e);for(const r of i){const o=+r;if(o>=t){const s=e[r];delete e[r],(n>0||o>t)&&(e[o+n]=s)}}}function MI(e,t,n,i){return!n||e.type==="mouseout"?null:i?t:e}var qn;let vt=(qn=class{static register(...t){Ot.add(...t),Mf()}static unregister(...t){Ot.remove(...t),Mf()}constructor(t,n){const i=this.config=new CI(n),r=t5(t),o=If(r);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const s=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||GS(r)),this.platform.updateConfig(i);const a=this.platform.acquireContext(r,s.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=_y(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new aI,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Gy(d=>this.update(d),s.resizeDelay||0),this._dataChanges=[],la[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Ln.listen(this,"complete",Sf),Ln.listen(this,"progress",SI),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:i,height:r,_aspectRatio:o}=this;return Fe(t)?n&&o?o:r?i/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Ot}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Zd(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Gd(this.canvas,this.ctx),this}stop(){return Ln.stop(this),this}resize(t,n){Ln.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const i=this.options,r=this.canvas,o=i.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(r,t,n,o),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,Zd(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),Ue(i.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Ye(n,(i,r)=>{i.id=r})}buildOrUpdateScales(){const t=this.options,n=t.scales,i=this.scales,r=Object.keys(i).reduce((s,a)=>(s[a]=!1,s),{});let o=[];n&&(o=o.concat(Object.keys(n).map(s=>{const a=n[s],l=fl(s,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Ye(o,s=>{const a=s.options,l=a.id,c=fl(l,a),u=Ae(a.type,s.dtype);(a.position===void 0||yf(a.position,c)!==yf(s.dposition))&&(a.position=s.dposition),r[l]=!0;let d=null;if(l in i&&i[l].type===u)d=i[l];else{const f=Ot.getScale(u);d=new f({id:l,type:u,ctx:this.ctx,chart:this}),i[d.id]=d}d.init(a,t)}),Ye(r,(s,a)=>{s||delete i[a]}),Ye(i,s=>{Pt.configure(this,s,s.options),Pt.addBox(this,s)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,i=t.length;if(t.sort((r,o)=>r.index-o.index),i>n){for(let r=n;r<i;++r)this._destroyDatasetMeta(r);t.splice(n,i-n)}this._sortedMetasets=t.slice(0).sort(wf("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((i,r)=>{n.filter(o=>o===i._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let i,r;for(this._removeUnreferencedMetasets(),i=0,r=n.length;i<r;i++){const o=n[i];let s=this.getDatasetMeta(i);const a=o.type||this.config.type;if(s.type&&s.type!==a&&(this._destroyDatasetMeta(i),s=this.getDatasetMeta(i)),s.type=a,s.indexAxis=o.indexAxis||dl(a,this.options),s.order=o.order||0,s.index=i,s.label=""+o.label,s.visible=this.isDatasetVisible(i),s.controller)s.controller.updateIndex(i),s.controller.linkScales();else{const l=Ot.getController(a),{datasetElementType:c,dataElementType:u}=rt.datasets[a];Object.assign(l,{dataElementType:Ot.getElement(u),datasetElementType:c&&Ot.getElement(c)}),s.controller=new l(this,i),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){Ye(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:d}=this.getDatasetMeta(c),f=!r&&o.indexOf(d)===-1;d.buildOrUpdateElements(f),s=Math.max(+d.getMaxOverflow(),s)}s=this._minPadding=i.layout.autoPadding?s:0,this._updateLayout(s),r||Ye(o,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(wf("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Ye(this.scales,t=>{Pt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!Od(n,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:r,count:o}of n){const s=i==="_removeElements"?-o:o;II(t,r,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=o=>new Set(t.filter(s=>s[0]===o).map((s,a)=>a+","+s.splice(1).join(","))),r=i(0);for(let o=1;o<n;o++)if(!Od(r,i(o)))return;return Array.from(r).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Pt.update(this,this.width,this.height,t);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],Ye(this.boxes,r=>{i&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,o)=>{r._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n<i;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,i=this.data.datasets.length;n<i;++n)this._updateDataset(n,ui(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const i=this.getDatasetMeta(t),r={meta:i,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",r)!==!1&&(i.controller._update(n),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Ln.has(this)?this.attached&&!Ln.running(this)&&Ln.start(this):(this.draw(),Sf({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:i,height:r}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(i,r)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,i=[];let r,o;for(r=0,o=n.length;r<o;++r){const s=n[r];(!t||s.visible)&&i.push(s)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,i={meta:t,index:t.index,cancelable:!0},r=Gh(this,t);this.notifyPlugins("beforeDatasetDraw",i)!==!1&&(r&&Li(n,r),t.controller.draw(),r&&Fi(n),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(t){return $n(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,i,r){const o=wS.modes[n];return typeof o=="function"?o(this,t,i,r):[]}getDatasetMeta(t){const n=this.data.datasets[t],i=this._metasets;let r=i.filter(o=>o&&o._dataset===n).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},i.push(r)),r}getContext(){return this.$context||(this.$context=gi(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(t,n){const i=this.getDatasetMeta(t);i.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,i){const r=i?"show":"hide",o=this.getDatasetMeta(t),s=o.controller._resolveAnimations(void 0,r);Lo(n)?(o.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),s.update(o,{visible:i}),this.update(a=>a.datasetIndex===t?r:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Ln.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Gd(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete la[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,i=(o,s)=>{n.addEventListener(this,o,s),t[o]=s},r=(o,s,a)=>{o.offsetX=s,o.offsetY=a,this._eventHandler(o)};Ye(this.options.events,o=>i(o,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,i=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},r=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let s;const a=()=>{r("attach",a),this.attached=!0,this.resize(),i("resize",o),i("detach",s)};s=()=>{this.attached=!1,r("resize",o),this._stop(),this._resize(0,0),i("attach",a)},n.isAttached(this.canvas)?a():s()}unbindEvents(){Ye(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Ye(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,i){const r=i?"set":"remove";let o,s,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+r+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){s=t[a];const c=s&&this.getDatasetMeta(s.datasetIndex).controller;c&&c[r+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],i=t.map(({datasetIndex:o,index:s})=>{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[s],index:s}});!Oa(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(t,n,i){return this._plugins.notify(this,t,n,i)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,i){const r=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),s=o(n,t),a=i?t:o(t,n);s.length&&this.updateHoverStyle(s,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(t,n){const i={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},r=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,r)===!1)return;const o=this._handleEvent(t,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,r),(o||i.changed)&&this.render(),this}_handleEvent(t,n,i){const{_active:r=[],options:o}=this,s=n,a=this._getActiveElements(t,r,i,s),l=Ly(t),c=MI(t,this._lastEvent,i,l);i&&(this._lastEvent=null,Ue(o.onHover,[t,a,this],this),l&&Ue(o.onClick,[t,a,this],this));const u=!Oa(a,r);return(u||n)&&(this._active=a,this._updateHoverStyles(a,r,n)),this._lastEvent=c,u}_getActiveElements(t,n,i,r){if(t.type==="mouseout")return[];if(!i)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,r)}},U(qn,"defaults",rt),U(qn,"instances",la),U(qn,"overrides",Gi),U(qn,"registry",Ot),U(qn,"version",yI),U(qn,"getChart",If),qn);function Mf(){return Ye(vt.instances,e=>e._plugins.invalidate())}function _I(e,t,n){const{startAngle:i,x:r,y:o,outerRadius:s,innerRadius:a,options:l}=t,{borderWidth:c,borderJoinStyle:u}=l,d=Math.min(c/s,Et(i-n));if(e.beginPath(),e.arc(r,o,s-c/2,i+d/2,n-d/2),a>0){const f=Math.min(c/a,Et(i-n));e.arc(r,o,a+c/2,n-f/2,i+f/2,!0)}else{const f=Math.min(c/2,s*Et(i-n));if(u==="round")e.arc(r,o,f,n-Be/2,i+Be/2,!0);else if(u==="bevel"){const h=2*f*f,g=-h*Math.cos(n+Be/2)+r,p=-h*Math.sin(n+Be/2)+o,m=h*Math.cos(i+Be/2)+r,C=h*Math.sin(i+Be/2)+o;e.lineTo(g,p),e.lineTo(m,C)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function AI(e,t,n){const{startAngle:i,pixelMargin:r,x:o,y:s,outerRadius:a,innerRadius:l}=t;let c=r/a;e.beginPath(),e.arc(o,s,a,i-c,n+c),l>r?(c=r/l,e.arc(o,s,l,n+c,i-c,!0)):e.arc(o,s,r,n+dt,i-dt),e.closePath(),e.clip()}function EI(e){return Lc(e,["outerStart","outerEnd","innerStart","innerEnd"])}function RI(e,t,n,i){const r=EI(e.options.borderRadius),o=(n-t)/2,s=Math.min(o,i*t/2),a=l=>{const c=(n-Math.min(o,l))*i/2;return bt(l,0,Math.min(o,c))};return{outerStart:a(r.outerStart),outerEnd:a(r.outerEnd),innerStart:bt(r.innerStart,0,s),innerEnd:bt(r.innerEnd,0,s)}}function nr(e,t,n,i){return{x:n+e*Math.cos(t),y:i+e*Math.sin(t)}}function Ha(e,t,n,i,r,o){const{x:s,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+i+n-c,0),f=u>0?u+i+n+c:0;let h=0;const g=r-l;if(i){const k=u>0?u-i:0,F=d>0?d-i:0,O=(k+F)/2,A=O!==0?g*O/(O+i):g;h=(g-A)/2}const p=Math.max(.001,g*d-n/Be)/d,m=(g-p)/2,C=l+m+h,y=r-m-h,{outerStart:x,outerEnd:I,innerStart:w,innerEnd:R}=RI(t,f,d,y-C),E=d-x,S=d-I,M=C+x/E,_=y-I/S,P=f+w,N=f+R,B=C+w/P,T=y-R/N;if(e.beginPath(),o){const k=(M+_)/2;if(e.arc(s,a,d,M,k),e.arc(s,a,d,k,_),I>0){const L=nr(S,_,s,a);e.arc(L.x,L.y,I,_,y+dt)}const F=nr(N,y,s,a);if(e.lineTo(F.x,F.y),R>0){const L=nr(N,T,s,a);e.arc(L.x,L.y,R,y+dt,T+Math.PI)}const O=(y-R/f+(C+w/f))/2;if(e.arc(s,a,f,y-R/f,O,!0),e.arc(s,a,f,O,C+w/f,!0),w>0){const L=nr(P,B,s,a);e.arc(L.x,L.y,w,B+Math.PI,C-dt)}const A=nr(E,C,s,a);if(e.lineTo(A.x,A.y),x>0){const L=nr(E,M,s,a);e.arc(L.x,L.y,x,C-dt,M)}}else{e.moveTo(s,a);const k=Math.cos(M)*d+s,F=Math.sin(M)*d+a;e.lineTo(k,F);const O=Math.cos(_)*d+s,A=Math.sin(_)*d+a;e.lineTo(O,A)}e.closePath()}function kI(e,t,n,i,r){const{fullCircles:o,startAngle:s,circumference:a}=t;let l=t.endAngle;if(o){Ha(e,t,n,i,l,r);for(let c=0;c<o;++c)e.fill();isNaN(a)||(l=s+(a%it||it))}return Ha(e,t,n,i,l,r),e.fill(),l}function PI(e,t,n,i,r){const{fullCircles:o,startAngle:s,circumference:a,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:f,borderRadius:h}=l,g=l.borderAlign==="inner";if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=f,g?(e.lineWidth=c*2,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let p=t.endAngle;if(o){Ha(e,t,n,i,p,r);for(let m=0;m<o;++m)e.stroke();isNaN(a)||(p=s+(a%it||it))}g&&AI(e,t,p),l.selfJoin&&p-s>=Be&&h===0&&u!=="miter"&&_I(e,t,p),o||(Ha(e,t,n,i,p,r),e.stroke())}class Hn extends kn{constructor(n){super();U(this,"circumference");U(this,"endAngle");U(this,"fullCircles");U(this,"innerRadius");U(this,"outerRadius");U(this,"pixelMargin");U(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,i,r){const o=this.getProps(["x","y"],r),{angle:s,distance:a}=wh(o,{x:n,y:i}),{startAngle:l,endAngle:c,innerRadius:u,outerRadius:d,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),h=(this.options.spacing+this.options.borderWidth)/2,g=Ae(f,c-l),p=Fo(s,l,c)&&l!==c,m=g>=it||p,C=jn(a,u+h,d+h);return m&&C}getCenterPoint(n){const{x:i,y:r,startAngle:o,endAngle:s,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:u}=this.options,d=(o+s)/2,f=(a+l+u+c)/2;return{x:i+Math.cos(d)*f,y:r+Math.sin(d)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:i,circumference:r}=this,o=(i.offset||0)/4,s=(i.spacing||0)/2,a=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=r>it?Math.floor(r/it):0,r===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*o,Math.sin(l)*o);const c=1-Math.sin(Math.min(Be,r||0)),u=o*c;n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,kI(n,this,u,s,a),PI(n,this,u,s,a),n.restore()}}U(Hn,"id","arc"),U(Hn,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),U(Hn,"defaultRoutes",{backgroundColor:"backgroundColor"}),U(Hn,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function n5(e,t,n=t){e.lineCap=Ae(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ae(n.borderDash,t.borderDash)),e.lineDashOffset=Ae(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ae(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ae(n.borderWidth,t.borderWidth),e.strokeStyle=Ae(n.borderColor,t.borderColor)}function LI(e,t,n){e.lineTo(n.x,n.y)}function FI(e){return e.stepped?tw:e.tension||e.cubicInterpolationMode==="monotone"?nw:LI}function i5(e,t,n={}){const i=e.length,{start:r=0,end:o=i-1}=n,{start:s,end:a}=t,l=Math.max(r,s),c=Math.min(o,a),u=r<s&&o<s||r>a&&o>a;return{count:i,start:l,loop:t.loop,ilen:c<l&&!u?i+c-l:c-l}}function OI(e,t,n,i){const{points:r,options:o}=t,{count:s,start:a,loop:l,ilen:c}=i5(r,n,i),u=FI(o);let{move:d=!0,reverse:f}=i||{},h,g,p;for(h=0;h<=c;++h)g=r[(a+(f?c-h:h))%s],!g.skip&&(d?(e.moveTo(g.x,g.y),d=!1):u(e,p,g,f,o.stepped),p=g);return l&&(g=r[(a+(f?c:0))%s],u(e,p,g,f,o.stepped)),!!l}function NI(e,t,n,i){const r=t.points,{count:o,start:s,ilen:a}=i5(r,n,i),{move:l=!0,reverse:c}=i||{};let u=0,d=0,f,h,g,p,m,C;const y=I=>(s+(c?a-I:I))%o,x=()=>{p!==m&&(e.lineTo(u,m),e.lineTo(u,p),e.lineTo(u,C))};for(l&&(h=r[y(0)],e.moveTo(h.x,h.y)),f=0;f<=a;++f){if(h=r[y(f)],h.skip)continue;const I=h.x,w=h.y,R=I|0;R===g?(w<p?p=w:w>m&&(m=w),u=(d*u+I)/++d):(x(),e.lineTo(I,w),g=R,d=0,p=m=w),C=w}x()}function hl(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?NI:OI}function TI(e){return e.stepped?Ow:e.tension||e.cubicInterpolationMode==="monotone"?Nw:Si}function DI(e,t,n,i){let r=t._path;r||(r=t._path=new Path2D,t.path(r,n,i)&&r.closePath()),n5(e,t.options),e.stroke(r)}function VI(e,t,n,i){const{segments:r,options:o}=t,s=hl(t);for(const a of r)n5(e,o,a.style),e.beginPath(),s(e,t,a,{start:n,end:n+i-1})&&e.closePath(),e.stroke()}const jI=typeof Path2D=="function";function BI(e,t,n,i){jI&&!t.options.segment?DI(e,t,n,i):VI(e,t,n,i)}class Gn extends kn{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const r=i.spanGaps?this._loop:this._fullLoop;_w(this._points,i,t,r,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=$w(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,i=t.length;return i&&n[t[i-1].end]}interpolate(t,n){const i=this.options,r=t[n],o=this.points,s=Hh(this,{property:n,start:r,end:r});if(!s.length)return;const a=[],l=TI(i);let c,u;for(c=0,u=s.length;c<u;++c){const{start:d,end:f}=s[c],h=o[d],g=o[f];if(h===g){a.push(h);continue}const p=Math.abs((r-h[n])/(g[n]-h[n])),m=l(h,g,p,i.stepped);m[n]=t[n],a.push(m)}return a.length===1?a[0]:a}pathSegment(t,n,i){return hl(this)(t,this,n,i)}path(t,n,i){const r=this.segments,o=hl(this);let s=this._loop;n=n||0,i=i||this.points.length-n;for(const a of r)s&=o(t,this,a,{start:n,end:n+i-1});return!!s}draw(t,n,i,r){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),BI(t,this,i,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}U(Gn,"id","line"),U(Gn,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),U(Gn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),U(Gn,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function _f(e,t,n,i){const r=e.options,{[n]:o}=e.getProps([n],i);return Math.abs(t-o)<r.radius+r.hitRadius}class Ti extends kn{constructor(n){super();U(this,"parsed");U(this,"skip");U(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,i,r){const o=this.options,{x:s,y:a}=this.getProps(["x","y"],r);return Math.pow(n-s,2)+Math.pow(i-a,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(n,i){return _f(this,n,"x",i)}inYRange(n,i){return _f(this,n,"y",i)}getCenterPoint(n){const{x:i,y:r}=this.getProps(["x","y"],n);return{x:i,y:r}}size(n){n=n||this.options||{};let i=n.radius||0;i=Math.max(i,i&&n.hoverRadius||0);const r=i&&n.borderWidth||0;return(i+r)*2}draw(n,i){const r=this.options;this.skip||r.radius<.1||!$n(this,i,this.size(r)/2)||(n.strokeStyle=r.borderColor,n.lineWidth=r.borderWidth,n.fillStyle=r.backgroundColor,Va(n,r,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}U(Ti,"id","point"),U(Ti,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),U(Ti,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function r5(e,t){const{x:n,y:i,base:r,width:o,height:s}=e.getProps(["x","y","base","width","height"],t);let a,l,c,u,d;return e.horizontal?(d=s/2,a=Math.min(n,r),l=Math.max(n,r),c=i-d,u=i+d):(d=o/2,a=n-d,l=n+d,c=Math.min(i,r),u=Math.max(i,r)),{left:a,top:c,right:l,bottom:u}}function ri(e,t,n,i){return e?0:bt(t,n,i)}function $I(e,t,n){const i=e.options.borderWidth,r=e.borderSkipped,o=Ph(i);return{t:ri(r.top,o.top,0,n),r:ri(r.right,o.right,0,t),b:ri(r.bottom,o.bottom,0,n),l:ri(r.left,o.left,0,t)}}function HI(e,t,n){const{enableBorderRadius:i}=e.getProps(["enableBorderRadius"]),r=e.options.borderRadius,o=Oi(r),s=Math.min(t,n),a=e.borderSkipped,l=i||De(r);return{topLeft:ri(!l||a.top||a.left,o.topLeft,0,s),topRight:ri(!l||a.top||a.right,o.topRight,0,s),bottomLeft:ri(!l||a.bottom||a.left,o.bottomLeft,0,s),bottomRight:ri(!l||a.bottom||a.right,o.bottomRight,0,s)}}function GI(e){const t=r5(e),n=t.right-t.left,i=t.bottom-t.top,r=$I(e,n/2,i/2),o=HI(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i,radius:o},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,o.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(r.b,r.r))}}}}function C0(e,t,n,i){const r=t===null,o=n===null,a=e&&!(r&&o)&&r5(e,i);return a&&(r||jn(t,a.left,a.right))&&(o||jn(n,a.top,a.bottom))}function zI(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function WI(e,t){e.rect(t.x,t.y,t.w,t.h)}function v0(e,t,n={}){const i=e.x!==n.x?-t:0,r=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-i,s=(e.y+e.h!==n.y+n.h?t:0)-r;return{x:e.x+i,y:e.y+r,w:e.w+o,h:e.h+s,radius:e.radius}}class wn extends kn{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:i,backgroundColor:r}}=this,{inner:o,outer:s}=GI(this),a=zI(s.radius)?Oo:WI;t.save(),(s.w!==o.w||s.h!==o.h)&&(t.beginPath(),a(t,v0(s,n,o)),t.clip(),a(t,v0(o,-n,s)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,v0(o,n)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,n,i){return C0(this,t,n,i)}inXRange(t,n){return C0(this,t,null,n)}inYRange(t,n){return C0(this,null,t,n)}getCenterPoint(t){const{x:n,y:i,base:r,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(n+r)/2:n,y:o?i:(i+r)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}U(wn,"id","bar"),U(wn,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),U(wn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var ZI=Object.freeze({__proto__:null,ArcElement:Hn,BarElement:wn,LineElement:Gn,PointElement:Ti});const gl=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Af=gl.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function o5(e){return gl[e%gl.length]}function s5(e){return Af[e%Af.length]}function XI(e,t){return e.borderColor=o5(t),e.backgroundColor=s5(t),++t}function YI(e,t){return e.backgroundColor=e.data.map(()=>o5(t++)),t}function JI(e,t){return e.backgroundColor=e.data.map(()=>s5(t++)),t}function UI(e){let t=0;return(n,i)=>{const r=e.getDatasetMeta(i).controller;r instanceof ii?t=YI(n,t):r instanceof ho?t=JI(n,t):r&&(t=XI(n,t))}}function Ef(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function QI(e){return e&&(e.borderColor||e.backgroundColor)}function qI(){return rt.borderColor!=="rgba(0,0,0,0.1)"||rt.backgroundColor!=="rgba(0,0,0,0.1)"}var KI={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:i},options:r}=e.config,{elements:o}=r,s=Ef(i)||QI(r)||o&&Ef(o)||qI();if(!n.forceOverride&&s)return;const a=UI(e);i.forEach(a)}};function eM(e,t,n,i,r){const o=r.samples||i;if(o>=n)return e.slice(t,t+n);const s=[],a=(n-2)/(o-2);let l=0;const c=t+n-1;let u=t,d,f,h,g,p;for(s[l++]=e[u],d=0;d<o-2;d++){let m=0,C=0,y;const x=Math.floor((d+1)*a)+1+t,I=Math.min(Math.floor((d+2)*a)+1,n)+t,w=I-x;for(y=x;y<I;y++)m+=e[y].x,C+=e[y].y;m/=w,C/=w;const R=Math.floor(d*a)+1+t,E=Math.min(Math.floor((d+1)*a)+1,n)+t,{x:S,y:M}=e[u];for(h=g=-1,y=R;y<E;y++)g=.5*Math.abs((S-m)*(e[y].y-M)-(S-e[y].x)*(C-M)),g>h&&(h=g,f=e[y],p=y);s[l++]=f,u=p}return s[l++]=e[c],s}function tM(e,t,n,i){let r=0,o=0,s,a,l,c,u,d,f,h,g,p;const m=[],C=t+n-1,y=e[t].x,I=e[C].x-y;for(s=t;s<t+n;++s){a=e[s],l=(a.x-y)/I*i,c=a.y;const w=l|0;if(w===u)c<g?(g=c,d=s):c>p&&(p=c,f=s),r=(o*r+a.x)/++o;else{const R=s-1;if(!Fe(d)&&!Fe(f)){const E=Math.min(d,f),S=Math.max(d,f);E!==h&&E!==R&&m.push({...e[E],x:r}),S!==h&&S!==R&&m.push({...e[S],x:r})}s>0&&R!==h&&m.push(e[R]),m.push(a),u=w,o=0,g=p=c,d=f=h=s}}return m}function a5(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function Rf(e){e.data.datasets.forEach(t=>{a5(t)})}function nM(e,t){const n=t.length;let i=0,r;const{iScale:o}=e,{min:s,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(i=bt(Bn(t,o.axis,s).lo,0,n-1)),c?r=bt(Bn(t,o.axis,a).hi+1,i,n)-i:r=n-i,{start:i,count:r}}var iM={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){Rf(e);return}const i=e.width;e.data.datasets.forEach((r,o)=>{const{_data:s,indexAxis:a}=r,l=e.getDatasetMeta(o),c=s||r.data;if(tt([a,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=e.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||e.options.parsing)return;let{start:d,count:f}=nM(l,c);const h=n.threshold||4*i;if(f<=h){a5(r);return}Fe(s)&&(r._data=c,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(p){this._data=p}}));let g;switch(n.algorithm){case"lttb":g=eM(c,d,f,i,n);break;case"min-max":g=tM(c,d,f,i);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}r._decimated=g})},destroy(e){Rf(e)}};function rM(e,t,n){const i=e.segments,r=e.points,o=t.points,s=[];for(const a of i){let{start:l,end:c}=a;c=I2(l,c,r);const u=pl(n,r[l],r[c],a.loop);if(!t.segments){s.push({source:a,target:u,start:r[l],end:r[c]});continue}const d=Hh(t,u);for(const f of d){const h=pl(n,o[f.start],o[f.end],f.loop),g=$h(a,r,h);for(const p of g)s.push({source:p,target:f,start:{[n]:kf(u,h,"start",Math.max)},end:{[n]:kf(u,h,"end",Math.min)}})}}return s}function pl(e,t,n,i){if(i)return;let r=t[e],o=n[e];return e==="angle"&&(r=Et(r),o=Et(o)),{property:e,start:r,end:o}}function oM(e,t){const{x:n=null,y:i=null}=e||{},r=t.points,o=[];return t.segments.forEach(({start:s,end:a})=>{a=I2(s,a,r);const l=r[s],c=r[a];i!==null?(o.push({x:l.x,y:i}),o.push({x:c.x,y:i})):n!==null&&(o.push({x:n,y:l.y}),o.push({x:n,y:c.y}))}),o}function I2(e,t,n){for(;t>e;t--){const i=n[t];if(!isNaN(i.x)&&!isNaN(i.y))break}return t}function kf(e,t,n,i){return e&&t?i(e[n],t[n]):e?e[n]:t?t[n]:0}function l5(e,t){let n=[],i=!1;return nt(e)?(i=!0,n=e):n=oM(e,t),n.length?new Gn({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function Pf(e){return e&&e.fill!==!1}function sM(e,t,n){let r=e[t].fill;const o=[t];let s;if(!n)return r;for(;r!==!1&&o.indexOf(r)===-1;){if(!ct(r))return r;if(s=e[r],!s)return!1;if(s.visible)return r;o.push(r),r=s.fill}return!1}function aM(e,t,n){const i=dM(e);if(De(i))return isNaN(i.value)?!1:i;let r=parseFloat(i);return ct(r)&&Math.floor(r)===r?lM(i[0],t,r,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function lM(e,t,n,i){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=i?!1:n}function cM(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:De(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function uM(e,t,n){let i;return e==="start"?i=n:e==="end"?i=t.options.reverse?t.min:t.max:De(e)?i=e.value:i=t.getBaseValue(),i}function dM(e){const t=e.options,n=t.fill;let i=Ae(n&&n.target,n);return i===void 0&&(i=!!t.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function fM(e){const{scale:t,index:n,line:i}=e,r=[],o=i.segments,s=i.points,a=hM(t,n);a.push(l5({x:null,y:t.bottom},i));for(let l=0;l<o.length;l++){const c=o[l];for(let u=c.start;u<=c.end;u++)gM(r,s[u],a)}return new Gn({points:r,options:{}})}function hM(e,t){const n=[],i=e.getMatchingVisibleMetas("line");for(let r=0;r<i.length;r++){const o=i[r];if(o.index===t)break;o.hidden||n.unshift(o.dataset)}return n}function gM(e,t,n){const i=[];for(let r=0;r<n.length;r++){const o=n[r],{first:s,last:a,point:l}=pM(o,t,"x");if(!(!l||s&&a)){if(s)i.unshift(l);else if(e.push(l),!a)break}}e.push(...i)}function pM(e,t,n){const i=e.interpolate(t,n);if(!i)return{};const r=i[n],o=e.segments,s=e.points;let a=!1,l=!1;for(let c=0;c<o.length;c++){const u=o[c],d=s[u.start][n],f=s[u.end][n];if(jn(r,d,f)){a=r===d,l=r===f;break}}return{first:a,last:l,point:i}}class c5{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,i){const{x:r,y:o,radius:s}=this;return n=n||{start:0,end:it},t.arc(r,o,s,n.end,n.start,!0),!i.bounds}interpolate(t){const{x:n,y:i,radius:r}=this,o=t.angle;return{x:n+Math.cos(o)*r,y:i+Math.sin(o)*r,angle:o}}}function mM(e){const{chart:t,fill:n,line:i}=e;if(ct(n))return bM(t,n);if(n==="stack")return fM(e);if(n==="shape")return!0;const r=CM(e);return r instanceof c5?r:l5(r,i)}function bM(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function CM(e){return(e.scale||{}).getPointPositionForValue?xM(e):vM(e)}function vM(e){const{scale:t={},fill:n}=e,i=cM(n,t);if(ct(i)){const r=t.isHorizontal();return{x:r?i:null,y:r?null:i}}return null}function xM(e){const{scale:t,fill:n}=e,i=t.options,r=t.getLabels().length,o=i.reverse?t.max:t.min,s=uM(n,t,o),a=[];if(i.grid.circular){const l=t.getPointPositionForValue(0,o);return new c5({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(s)})}for(let l=0;l<r;++l)a.push(t.getPointPositionForValue(l,s));return a}function x0(e,t,n){const i=mM(t),{chart:r,index:o,line:s,scale:a,axis:l}=t,c=s.options,u=c.fill,d=c.backgroundColor,{above:f=d,below:h=d}=u||{},g=r.getDatasetMeta(o),p=Gh(r,g);i&&s.points.length&&(Li(e,n),yM(e,{line:s,target:i,above:f,below:h,area:n,scale:a,axis:l,clip:p}),Fi(e))}function yM(e,t){const{line:n,target:i,above:r,below:o,area:s,scale:a,clip:l}=t,c=n._loop?"angle":t.axis;e.save();let u=o;o!==r&&(c==="x"?(Lf(e,i,s.top),y0(e,{line:n,target:i,color:r,scale:a,property:c,clip:l}),e.restore(),e.save(),Lf(e,i,s.bottom)):c==="y"&&(Ff(e,i,s.left),y0(e,{line:n,target:i,color:o,scale:a,property:c,clip:l}),e.restore(),e.save(),Ff(e,i,s.right),u=r)),y0(e,{line:n,target:i,color:u,scale:a,property:c,clip:l}),e.restore()}function Lf(e,t,n){const{segments:i,points:r}=t;let o=!0,s=!1;e.beginPath();for(const a of i){const{start:l,end:c}=a,u=r[l],d=r[I2(l,c,r)];o?(e.moveTo(u.x,u.y),o=!1):(e.lineTo(u.x,n),e.lineTo(u.x,u.y)),s=!!t.pathSegment(e,a,{move:s}),s?e.closePath():e.lineTo(d.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function Ff(e,t,n){const{segments:i,points:r}=t;let o=!0,s=!1;e.beginPath();for(const a of i){const{start:l,end:c}=a,u=r[l],d=r[I2(l,c,r)];o?(e.moveTo(u.x,u.y),o=!1):(e.lineTo(n,u.y),e.lineTo(u.x,u.y)),s=!!t.pathSegment(e,a,{move:s}),s?e.closePath():e.lineTo(n,d.y)}e.lineTo(n,t.first().y),e.closePath(),e.clip()}function y0(e,t){const{line:n,target:i,property:r,color:o,scale:s,clip:a}=t,l=rM(n,i,r);for(const{source:c,target:u,start:d,end:f}of l){const{style:{backgroundColor:h=o}={}}=c,g=i!==!0;e.save(),e.fillStyle=h,wM(e,s,a,g&&pl(r,d,f)),e.beginPath();const p=!!n.pathSegment(e,c);let m;if(g){p?e.closePath():Of(e,i,f,r);const C=!!i.pathSegment(e,u,{move:p,reverse:!0});m=p&&C,m||Of(e,i,d,r)}e.closePath(),e.fill(m?"evenodd":"nonzero"),e.restore()}}function wM(e,t,n,i){const r=t.chart.chartArea,{property:o,start:s,end:a}=i||{};if(o==="x"||o==="y"){let l,c,u,d;o==="x"?(l=s,c=r.top,u=a,d=r.bottom):(l=r.left,c=s,u=r.right,d=a),e.beginPath(),n&&(l=Math.max(l,n.left),u=Math.min(u,n.right),c=Math.max(c,n.top),d=Math.min(d,n.bottom)),e.rect(l,c,u-l,d-c),e.clip()}}function Of(e,t,n,i){const r=t.interpolate(n,i);r&&e.lineTo(r.x,r.y)}var SM={id:"filler",afterDatasetsUpdate(e,t,n){const i=(e.data.datasets||[]).length,r=[];let o,s,a,l;for(s=0;s<i;++s)o=e.getDatasetMeta(s),a=o.dataset,l=null,a&&a.options&&a instanceof Gn&&(l={visible:e.isDatasetVisible(s),index:s,fill:aM(a,s,i),chart:e,axis:o.controller.options.indexAxis,scale:o.vScale,line:a}),o.$filler=l,r.push(l);for(s=0;s<i;++s)l=r[s],!(!l||l.fill===!1)&&(l.fill=sM(r,s,n.propagate))},beforeDraw(e,t,n){const i=n.drawTime==="beforeDraw",r=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let s=r.length-1;s>=0;--s){const a=r[s].$filler;a&&(a.line.updateControlPoints(o,a.axis),i&&a.fill&&x0(e.ctx,a,o))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const i=e.getSortedVisibleDatasetMetas();for(let r=i.length-1;r>=0;--r){const o=i[r].$filler;Pf(o)&&x0(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const i=t.meta.$filler;!Pf(i)||n.drawTime!=="beforeDatasetDraw"||x0(e.ctx,i,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Nf=(e,t)=>{let{boxHeight:n=t,boxWidth:i=t}=e;return e.usePointStyle&&(n=Math.min(n,t),i=e.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(t,n)}},IM=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Tf extends kn{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,i){this.maxWidth=t,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Ue(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(i=>t.filter(i,this.chart.data))),t.sort&&(n=n.sort((i,r)=>t.sort(i,r,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const i=t.labels,r=gt(i.font),o=r.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Nf(i,o);let c,u;n.font=r.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(s,o,a,l)+10):(u=this.maxHeight,c=this._fitCols(s,r,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,i,r){const{ctx:o,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=r+a;let d=t;o.textAlign="left",o.textBaseline="middle";let f=-1,h=-u;return this.legendItems.forEach((g,p)=>{const m=i+n/2+o.measureText(g.text).width;(p===0||c[c.length-1]+m+2*a>s)&&(d+=u,c[c.length-(p>0?0:1)]=0,h+=u,f++),l[p]={left:0,top:h,row:f,width:m,height:r},c[c.length-1]+=m+a}),d}_fitCols(t,n,i,r){const{ctx:o,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=s-t;let d=a,f=0,h=0,g=0,p=0;return this.legendItems.forEach((m,C)=>{const{itemWidth:y,itemHeight:x}=MM(i,n,o,m,r);C>0&&h+x+2*a>u&&(d+=f+a,c.push({width:f,height:h}),g+=f+a,p++,f=h=0),l[C]={left:g,top:h,col:p,width:y,height:x},f=Math.max(f,y),h+=x+a}),d+=f,c.push({width:f,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:r},rtl:o}}=this,s=dr(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=_t(i,this.left+r,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=_t(i,this.left+r,this.right-this.lineWidths[a])),c.top+=this.top+t+r,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+r}else{let a=0,l=_t(i,this.top+t+r,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=_t(i,this.top+t+r,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+r,c.left=s.leftForLtr(s.x(c.left),c.width),l+=c.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Li(t,this),this._draw(),Fi(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:i,ctx:r}=this,{align:o,labels:s}=t,a=rt.color,l=dr(t.rtl,this.left,this.width),c=gt(s.font),{padding:u}=s,d=c.size,f=d/2;let h;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;const{boxWidth:g,boxHeight:p,itemHeight:m}=Nf(s,d),C=function(R,E,S){if(isNaN(g)||g<=0||isNaN(p)||p<0)return;r.save();const M=Ae(S.lineWidth,1);if(r.fillStyle=Ae(S.fillStyle,a),r.lineCap=Ae(S.lineCap,"butt"),r.lineDashOffset=Ae(S.lineDashOffset,0),r.lineJoin=Ae(S.lineJoin,"miter"),r.lineWidth=M,r.strokeStyle=Ae(S.strokeStyle,a),r.setLineDash(Ae(S.lineDash,[])),s.usePointStyle){const _={radius:p*Math.SQRT2/2,pointStyle:S.pointStyle,rotation:S.rotation,borderWidth:M},P=l.xPlus(R,g/2),N=E+f;kh(r,_,P,N,s.pointStyleWidth&&g)}else{const _=E+Math.max((d-p)/2,0),P=l.leftForLtr(R,g),N=Oi(S.borderRadius);r.beginPath(),Object.values(N).some(B=>B!==0)?Oo(r,{x:P,y:_,w:g,h:p,radius:N}):r.rect(P,_,g,p),r.fill(),M!==0&&r.stroke()}r.restore()},y=function(R,E,S){zi(r,S.text,R,E+m/2,c,{strikethrough:S.hidden,textAlign:l.textAlign(S.textAlign)})},x=this.isHorizontal(),I=this._computeTitleHeight();x?h={x:_t(o,this.left+u,this.right-i[0]),y:this.top+u+I,line:0}:h={x:this.left+u,y:_t(o,this.top+I+u,this.bottom-n[0].height),line:0},Vh(this.ctx,t.textDirection);const w=m+u;this.legendItems.forEach((R,E)=>{r.strokeStyle=R.fontColor,r.fillStyle=R.fontColor;const S=r.measureText(R.text).width,M=l.textAlign(R.textAlign||(R.textAlign=s.textAlign)),_=g+f+S;let P=h.x,N=h.y;l.setWidth(this.width),x?E>0&&P+_+u>this.right&&(N=h.y+=w,h.line++,P=h.x=_t(o,this.left+u,this.right-i[h.line])):E>0&&N+w>this.bottom&&(P=h.x=P+n[h.line].width+u,h.line++,N=h.y=_t(o,this.top+I+u,this.bottom-n[h.line].height));const B=l.x(P);if(C(B,N,R),P=zy(M,P+g+f,x?P+_:this.right,t.rtl),y(l.x(P),N,R),x)h.x+=_+u;else if(typeof R.text!="string"){const T=c.lineHeight;h.y+=u5(R,T)+u}else h.y+=w}),jh(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,i=gt(n.font),r=St(n.padding);if(!n.display)return;const o=dr(t.rtl,this.left,this.width),s=this.ctx,a=n.position,l=i.size/2,c=r.top+l;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=_t(t.align,d,this.right-f);else{const g=this.columnSizes.reduce((p,m)=>Math.max(p,m.height),0);u=c+_t(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const h=_t(a,d,d+f);s.textAlign=o.textAlign(kc(a)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=i.string,zi(s,n.text,h,u,i)}_computeTitleHeight(){const t=this.options.title,n=gt(t.font),i=St(t.padding);return t.display?n.lineHeight+i.height:0}_getLegendItemAt(t,n){let i,r,o;if(jn(t,this.left,this.right)&&jn(n,this.top,this.bottom)){for(o=this.legendHitBoxes,i=0;i<o.length;++i)if(r=o[i],jn(t,r.left,r.left+r.width)&&jn(n,r.top,r.top+r.height))return this.legendItems[i]}return null}handleEvent(t){const n=this.options;if(!EM(t.type,n))return;const i=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const r=this._hoveredItem,o=IM(r,i);r&&!o&&Ue(n.onLeave,[t,r,this],this),this._hoveredItem=i,i&&!o&&Ue(n.onHover,[t,i,this],this)}else i&&Ue(n.onClick,[t,i,this],this)}}function MM(e,t,n,i,r){const o=_M(i,e,t,n),s=AM(r,i,t.lineHeight);return{itemWidth:o,itemHeight:s}}function _M(e,t,n,i){let r=e.text;return r&&typeof r!="string"&&(r=r.reduce((o,s)=>o.length>s.length?o:s)),t+n.size/2+i.measureText(r).width}function AM(e,t,n){let i=e;return typeof t.text!="string"&&(i=u5(t,n)),i}function u5(e,t){const n=e.text?e.text.length:0;return t*n}function EM(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var Ji={id:"legend",_element:Tf,start(e,t,n){const i=e.legend=new Tf({ctx:e.ctx,options:n,chart:e});Pt.configure(e,i,n),Pt.addBox(e,i)},stop(e){Pt.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const i=e.legend;Pt.configure(e,i,n),i.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const i=t.datasetIndex,r=n.chart;r.isDatasetVisible(i)?(r.hide(i),t.hidden=!0):(r.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:r,color:o,useBorderRadius:s,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=St(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:r||c.textAlign,borderRadius:s&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class jc extends kn{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const r=nt(i.text)?i.text.length:1;this._padding=St(i.padding);const o=r*gt(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:i,bottom:r,right:o,options:s}=this,a=s.align;let l=0,c,u,d;return this.isHorizontal()?(u=_t(a,i,o),d=n+t,c=o-i):(s.position==="left"?(u=i+t,d=_t(a,r,n),l=Be*-.5):(u=o-t,d=_t(a,n,r),l=Be*.5),c=r-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const i=gt(n.font),o=i.lineHeight/2+this._padding.top,{titleX:s,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);zi(t,n.text,0,0,i,{color:n.color,maxWidth:l,rotation:c,textAlign:kc(n.align),textBaseline:"middle",translation:[s,a]})}}function RM(e,t){const n=new jc({ctx:e.ctx,options:t,chart:e});Pt.configure(e,n,t),Pt.addBox(e,n),e.titleBlock=n}var Bc={id:"title",_element:jc,start(e,t,n){RM(e,n)},stop(e){const t=e.titleBlock;Pt.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const i=e.titleBlock;Pt.configure(e,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ks=new WeakMap;var kM={id:"subtitle",start(e,t,n){const i=new jc({ctx:e.ctx,options:n,chart:e});Pt.configure(e,i,n),Pt.addBox(e,i),ks.set(e,i)},stop(e){Pt.removeBox(e,ks.get(e)),ks.delete(e)},beforeUpdate(e,t,n){const i=ks.get(e);Pt.configure(e,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Qr={average(e){if(!e.length)return!1;let t,n,i=new Set,r=0,o=0;for(t=0,n=e.length;t<n;++t){const a=e[t].element;if(a&&a.hasValue()){const l=a.tooltipPosition();i.add(l.x),r+=l.y,++o}}return o===0||i.size===0?!1:{x:[...i].reduce((a,l)=>a+l)/i.size,y:r/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,i=t.y,r=Number.POSITIVE_INFINITY,o,s,a;for(o=0,s=e.length;o<s;++o){const l=e[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=cl(t,c);u<r&&(r=u,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,i=l.y}return{x:n,y:i}}};function gn(e,t){return t&&(nt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Fn(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
99
+ `)>-1?e.split(`
100
+ `):e}function PM(e,t){const{element:n,datasetIndex:i,index:r}=t,o=e.getDatasetMeta(i).controller,{label:s,value:a}=o.getLabelAndValue(r);return{chart:e,label:s,parsed:o.getParsed(r),raw:e.data.datasets[i].data[r],formattedValue:a,dataset:o.getDataset(),dataIndex:r,datasetIndex:i,element:n}}function Df(e,t){const n=e.chart.ctx,{body:i,footer:r,title:o}=e,{boxWidth:s,boxHeight:a}=t,l=gt(t.bodyFont),c=gt(t.titleFont),u=gt(t.footerFont),d=o.length,f=r.length,h=i.length,g=St(t.padding);let p=g.height,m=0,C=i.reduce((I,w)=>I+w.before.length+w.lines.length+w.after.length,0);if(C+=e.beforeBody.length+e.afterBody.length,d&&(p+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),C){const I=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;p+=h*I+(C-h)*l.lineHeight+(C-1)*t.bodySpacing}f&&(p+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let y=0;const x=function(I){m=Math.max(m,n.measureText(I).width+y)};return n.save(),n.font=c.string,Ye(e.title,x),n.font=l.string,Ye(e.beforeBody.concat(e.afterBody),x),y=t.displayColors?s+2+t.boxPadding:0,Ye(i,I=>{Ye(I.before,x),Ye(I.lines,x),Ye(I.after,x)}),y=0,n.font=u.string,Ye(e.footer,x),n.restore(),m+=g.width,{width:m,height:p}}function LM(e,t){const{y:n,height:i}=t;return n<i/2?"top":n>e.height-i/2?"bottom":"center"}function FM(e,t,n,i){const{x:r,width:o}=i,s=n.caretSize+n.caretPadding;if(e==="left"&&r+o+s>t.width||e==="right"&&r-o-s<0)return!0}function OM(e,t,n,i){const{x:r,width:o}=n,{width:s,chartArea:{left:a,right:l}}=e;let c="center";return i==="center"?c=r<=(a+l)/2?"left":"right":r<=o/2?c="left":r>=s-o/2&&(c="right"),FM(c,e,t,n)&&(c="center"),c}function Vf(e,t,n){const i=n.yAlign||t.yAlign||LM(e,n);return{xAlign:n.xAlign||t.xAlign||OM(e,t,n,i),yAlign:i}}function NM(e,t){let{x:n,width:i}=e;return t==="right"?n-=i:t==="center"&&(n-=i/2),n}function TM(e,t,n){let{y:i,height:r}=e;return t==="top"?i+=n:t==="bottom"?i-=r+n:i-=r/2,i}function jf(e,t,n,i){const{caretSize:r,caretPadding:o,cornerRadius:s}=e,{xAlign:a,yAlign:l}=n,c=r+o,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:h}=Oi(s);let g=NM(t,a);const p=TM(t,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(u,f)+r:a==="right"&&(g+=Math.max(d,h)+r),{x:bt(g,0,i.width-t.width),y:bt(p,0,i.height-t.height)}}function Ps(e,t,n){const i=St(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-i.right:e.x+i.left}function Bf(e){return gn([],Fn(e))}function DM(e,t,n){return gi(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function $f(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const d5={beforeTitle:Pn,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return n[t.dataIndex]}return""},afterTitle:Pn,beforeBody:Pn,beforeLabel:Pn,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Fe(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Pn,afterBody:Pn,beforeFooter:Pn,footer:Pn,afterFooter:Pn};function Tt(e,t,n,i){const r=e[t].call(n,i);return typeof r>"u"?d5[t].call(n,i):r}class ml extends kn{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,i=this.options.setContext(this.getContext()),r=i.enabled&&n.options.animation&&i.animations,o=new zh(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=DM(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:i}=n,r=Tt(i,"beforeTitle",this,t),o=Tt(i,"title",this,t),s=Tt(i,"afterTitle",this,t);let a=[];return a=gn(a,Fn(r)),a=gn(a,Fn(o)),a=gn(a,Fn(s)),a}getBeforeBody(t,n){return Bf(Tt(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:i}=n,r=[];return Ye(t,o=>{const s={before:[],lines:[],after:[]},a=$f(i,o);gn(s.before,Fn(Tt(a,"beforeLabel",this,o))),gn(s.lines,Tt(a,"label",this,o)),gn(s.after,Fn(Tt(a,"afterLabel",this,o))),r.push(s)}),r}getAfterBody(t,n){return Bf(Tt(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:i}=n,r=Tt(i,"beforeFooter",this,t),o=Tt(i,"footer",this,t),s=Tt(i,"afterFooter",this,t);let a=[];return a=gn(a,Fn(r)),a=gn(a,Fn(o)),a=gn(a,Fn(s)),a}_createItems(t){const n=this._active,i=this.chart.data,r=[],o=[],s=[];let a=[],l,c;for(l=0,c=n.length;l<c;++l)a.push(PM(this.chart,n[l]));return t.filter&&(a=a.filter((u,d,f)=>t.filter(u,d,f,i))),t.itemSort&&(a=a.sort((u,d)=>t.itemSort(u,d,i))),Ye(a,u=>{const d=$f(t.callbacks,u);r.push(Tt(d,"labelColor",this,u)),o.push(Tt(d,"labelPointStyle",this,u)),s.push(Tt(d,"labelTextColor",this,u))}),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=s,this.dataPoints=a,a}update(t,n){const i=this.options.setContext(this.getContext()),r=this._active;let o,s=[];if(!r.length)this.opacity!==0&&(o={opacity:0});else{const a=Qr[i.position].call(this,r,this._eventPosition);s=this._createItems(i),this.title=this.getTitle(s,i),this.beforeBody=this.getBeforeBody(s,i),this.body=this.getBody(s,i),this.afterBody=this.getAfterBody(s,i),this.footer=this.getFooter(s,i);const l=this._size=Df(this,i),c=Object.assign({},a,l),u=Vf(this.chart,i,c),d=jf(i,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=s,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,i,r){const o=this.getCaretPosition(t,i,r);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,i){const{xAlign:r,yAlign:o}=this,{caretSize:s,cornerRadius:a}=i,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=Oi(a),{x:f,y:h}=t,{width:g,height:p}=n;let m,C,y,x,I,w;return o==="center"?(I=h+p/2,r==="left"?(m=f,C=m-s,x=I+s,w=I-s):(m=f+g,C=m+s,x=I-s,w=I+s),y=m):(r==="left"?C=f+Math.max(l,u)+s:r==="right"?C=f+g-Math.max(c,d)-s:C=this.caretX,o==="top"?(x=h,I=x-s,m=C-s,y=C+s):(x=h+p,I=x+s,m=C+s,y=C-s),w=x),{x1:m,x2:C,x3:y,y1:x,y2:I,y3:w}}drawTitle(t,n,i){const r=this.title,o=r.length;let s,a,l;if(o){const c=dr(i.rtl,this.x,this.width);for(t.x=Ps(this,i.titleAlign,i),n.textAlign=c.textAlign(i.titleAlign),n.textBaseline="middle",s=gt(i.titleFont),a=i.titleSpacing,n.fillStyle=i.titleColor,n.font=s.string,l=0;l<o;++l)n.fillText(r[l],c.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+a,l+1===o&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,n,i,r,o){const s=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:l,boxWidth:c}=o,u=gt(o.bodyFont),d=Ps(this,"left",o),f=r.x(d),h=l<u.lineHeight?(u.lineHeight-l)/2:0,g=n.y+h;if(o.usePointStyle){const p={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},m=r.leftForLtr(f,c)+c/2,C=g+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Va(t,p,m,C),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,Va(t,p,m,C)}else{t.lineWidth=De(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const p=r.leftForLtr(f,c),m=r.leftForLtr(r.xPlus(f,1),c-2),C=Oi(s.borderRadius);Object.values(C).some(y=>y!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Oo(t,{x:p,y:g,w:c,h:l,radius:C}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),Oo(t,{x:m,y:g+1,w:c-2,h:l-2,radius:C}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(p,g,c,l),t.strokeRect(p,g,c,l),t.fillStyle=s.backgroundColor,t.fillRect(m,g+1,c-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,n,i){const{body:r}=this,{bodySpacing:o,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=i,d=gt(i.bodyFont);let f=d.lineHeight,h=0;const g=dr(i.rtl,this.x,this.width),p=function(S){n.fillText(S,g.x(t.x+h),t.y+f/2),t.y+=f+o},m=g.textAlign(s);let C,y,x,I,w,R,E;for(n.textAlign=s,n.textBaseline="middle",n.font=d.string,t.x=Ps(this,m,i),n.fillStyle=i.bodyColor,Ye(this.beforeBody,p),h=a&&m!=="right"?s==="center"?c/2+u:c+2+u:0,I=0,R=r.length;I<R;++I){for(C=r[I],y=this.labelTextColors[I],n.fillStyle=y,Ye(C.before,p),x=C.lines,a&&x.length&&(this._drawColorBox(n,t,I,g,i),f=Math.max(d.lineHeight,l)),w=0,E=x.length;w<E;++w)p(x[w]),f=d.lineHeight;Ye(C.after,p)}h=0,f=d.lineHeight,Ye(this.afterBody,p),t.y-=o}drawFooter(t,n,i){const r=this.footer,o=r.length;let s,a;if(o){const l=dr(i.rtl,this.x,this.width);for(t.x=Ps(this,i.footerAlign,i),t.y+=i.footerMarginTop,n.textAlign=l.textAlign(i.footerAlign),n.textBaseline="middle",s=gt(i.footerFont),n.fillStyle=i.footerColor,n.font=s.string,a=0;a<o;++a)n.fillText(r[a],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+i.footerSpacing}}drawBackground(t,n,i,r){const{xAlign:o,yAlign:s}=this,{x:a,y:l}=t,{width:c,height:u}=i,{topLeft:d,topRight:f,bottomLeft:h,bottomRight:g}=Oi(r.cornerRadius);n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,n.lineWidth=r.borderWidth,n.beginPath(),n.moveTo(a+d,l),s==="top"&&this.drawCaret(t,n,i,r),n.lineTo(a+c-f,l),n.quadraticCurveTo(a+c,l,a+c,l+f),s==="center"&&o==="right"&&this.drawCaret(t,n,i,r),n.lineTo(a+c,l+u-g),n.quadraticCurveTo(a+c,l+u,a+c-g,l+u),s==="bottom"&&this.drawCaret(t,n,i,r),n.lineTo(a+h,l+u),n.quadraticCurveTo(a,l+u,a,l+u-h),s==="center"&&o==="left"&&this.drawCaret(t,n,i,r),n.lineTo(a,l+d),n.quadraticCurveTo(a,l,a+d,l),n.closePath(),n.fill(),r.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,i=this.$animations,r=i&&i.x,o=i&&i.y;if(r||o){const s=Qr[t.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=Df(this,t),l=Object.assign({},s,this._size),c=Vf(n,t,l),u=jf(t,l,c,n);(r._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const r={width:this.width,height:this.height},o={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const s=St(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(o,t,r,n),Vh(t,n.textDirection),o.y+=s.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),jh(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const i=this._active,r=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!Oa(i,r),s=this._positionChanged(r,n);(o||s)&&(this._active=r,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,o=this._active||[],s=this._getActiveElements(t,o,n,i),a=this._positionChanged(s,t),l=n||!Oa(s,o)||a;return l&&(this._active=s,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,i,r){const o=this.options;if(t.type==="mouseout")return[];if(!r)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const s=this.chart.getElementsAtEventForMode(t,o.mode,o,i);return o.reverse&&s.reverse(),s}_positionChanged(t,n){const{caretX:i,caretY:r,options:o}=this,s=Qr[o.position].call(this,t,n);return s!==!1&&(i!==s.x||r!==s.y)}}U(ml,"positioners",Qr);var Ui={id:"tooltip",_element:ml,positioners:Qr,afterInit(e,t,n){n&&(e.tooltip=new ml({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:d5},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},VM=Object.freeze({__proto__:null,Colors:KI,Decimation:iM,Filler:SM,Legend:Ji,SubTitle:kM,Title:Bc,Tooltip:Ui});const jM=(e,t,n,i)=>(typeof t=="string"?(n=e.push(t)-1,i.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function BM(e,t,n,i){const r=e.indexOf(t);if(r===-1)return jM(e,t,n,i);const o=e.lastIndexOf(t);return r!==o?n:r}const $M=(e,t)=>e===null?null:bt(Math.round(e),0,t);function Hf(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class xr extends pi{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const i=this.getLabels();for(const{index:r,label:o}of n)i[r]===o&&i.splice(r,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Fe(t))return null;const i=this.getLabels();return n=isFinite(n)&&i[n]===t?n:BM(i,t,Ae(n,t),this._addedLabels),$M(n,i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:i,max:r}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(i=0),n||(r=this.getLabels().length-1)),this.min=i,this.max=r}buildTicks(){const t=this.min,n=this.max,i=this.options.offset,r=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let s=t;s<=n;s++)r.push({value:s});return r}getLabelForValue(t){return Hf.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}U(xr,"id","category"),U(xr,"defaults",{ticks:{callback:Hf}});function HM(e,t){const n=[],{bounds:r,step:o,min:s,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=e,h=o||1,g=u-1,{min:p,max:m}=t,C=!Fe(s),y=!Fe(a),x=!Fe(c),I=(m-p)/(d+1);let w=Td((m-p)/g/h)*h,R,E,S,M;if(w<1e-14&&!C&&!y)return[{value:p},{value:m}];M=Math.ceil(m/w)-Math.floor(p/w),M>g&&(w=Td(M*w/g/h)*h),Fe(l)||(R=Math.pow(10,l),w=Math.ceil(w*R)/R),r==="ticks"?(E=Math.floor(p/w)*w,S=Math.ceil(m/w)*w):(E=p,S=m),C&&y&&o&&Dy((a-s)/o,w/1e3)?(M=Math.round(Math.min((a-s)/w,u)),w=(a-s)/M,E=s,S=a):x?(E=C?s:E,S=y?a:S,M=c-1,w=(S-E)/M):(M=(S-E)/w,lo(M,Math.round(M),w/1e3)?M=Math.round(M):M=Math.ceil(M));const _=Math.max(Dd(w),Dd(E));R=Math.pow(10,Fe(l)?_:l),E=Math.round(E*R)/R,S=Math.round(S*R)/R;let P=0;for(C&&(f&&E!==s?(n.push({value:s}),E<s&&P++,lo(Math.round((E+P*w)*R)/R,s,Gf(s,I,e))&&P++):E<s&&P++);P<M;++P){const N=Math.round((E+P*w)*R)/R;if(y&&N>a)break;n.push({value:N})}return y&&f&&S!==a?n.length&&lo(n[n.length-1].value,a,Gf(a,I,e))?n[n.length-1].value=a:n.push({value:a}):(!y||S===a)&&n.push({value:S}),n}function Gf(e,t,{horizontal:n,minRotation:i}){const r=cn(i),o=(n?Math.sin(r):Math.cos(r))||.001,s=.75*t*(""+e).length;return Math.min(t/o,s)}class Ga extends pi{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Fe(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:r,max:o}=this;const s=l=>r=n?r:l,a=l=>o=i?o:l;if(t){const l=yn(r),c=yn(o);l<0&&c<0?a(0):l>0&&c>0&&s(0)}if(r===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||s(r-l)}this.min=r,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=t,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),n=n||11),n&&(r=Math.min(n,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const r={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,s=HM(r,o);return t.bounds==="ticks"&&yh(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const r=(i-n)/Math.max(t.length-1,1)/2;n-=r,i+=r}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(t){return Qo(t,this.chart.options.locale,this.options.ticks.format)}}class Zn extends Ga{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=ct(t)?t:0,this.max=ct(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,i=cn(this.options.ticks.minRotation),r=(t?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/r))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}U(Zn,"id","linear"),U(Zn,"defaults",{ticks:{callback:y2.formatters.numeric}});const To=e=>Math.floor(ti(e)),yi=(e,t)=>Math.pow(10,To(e)+t);function zf(e){return e/Math.pow(10,To(e))===1}function Wf(e,t,n){const i=Math.pow(10,n),r=Math.floor(e/i);return Math.ceil(t/i)-r}function GM(e,t){const n=t-e;let i=To(n);for(;Wf(e,t,i)>10;)i++;for(;Wf(e,t,i)<10;)i--;return Math.min(i,To(e))}function zM(e,{min:t,max:n}){t=$t(e.min,t);const i=[],r=To(t);let o=GM(t,n),s=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=r>o?Math.pow(10,r):0,c=Math.round((t-l)*s)/s,u=Math.floor((t-l)/a/10)*a*10;let d=Math.floor((c-u)/Math.pow(10,o)),f=$t(e.min,Math.round((l+u+d*Math.pow(10,o))*s)/s);for(;f<n;)i.push({value:f,major:zf(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(o++,d=2,s=o>=0?1:s),f=Math.round((l+u+d*Math.pow(10,o))*s)/s;const h=$t(e.max,f);return i.push({value:h,major:zf(h),significand:d}),i}class Wi extends pi{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const i=Ga.prototype.parse.apply(this,[t,n]);if(i===0){this._zero=!0;return}return ct(i)&&i>0?i:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=ct(t)?Math.max(0,t):null,this.max=ct(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!ct(this._userMin)&&(this.min=t===yi(this.min,0)?yi(this.min,-1):yi(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let i=this.min,r=this.max;const o=a=>i=t?i:a,s=a=>r=n?r:a;i===r&&(i<=0?(o(1),s(10)):(o(yi(i,-1)),s(yi(r,1)))),i<=0&&o(yi(r,-1)),r<=0&&s(yi(i,1)),this.min=i,this.max=r}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},i=zM(n,this);return t.bounds==="ticks"&&yh(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(t){return t===void 0?"0":Qo(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=ti(t),this._valueRange=ti(this.max)-ti(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(ti(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}U(Wi,"id","logarithmic"),U(Wi,"defaults",{ticks:{callback:y2.formatters.logarithmic,major:{enabled:!0}}});function bl(e){const t=e.ticks;if(t.display&&e.display){const n=St(t.backdropPadding);return Ae(t.font&&t.font.size,rt.font.size)+n.height}return 0}function WM(e,t,n){return n=nt(n)?n:[n],{w:ew(e,t.string,n),h:n.length*t.lineHeight}}function Zf(e,t,n,i,r){return e===i||e===r?{start:t-n/2,end:t+n/2}:e<i||e>r?{start:t-n,end:t}:{start:t,end:t+n}}function ZM(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),i=[],r=[],o=e._pointLabels.length,s=e.options.pointLabels,a=s.centerPointLabels?Be/o:0;for(let l=0;l<o;l++){const c=s.setContext(e.getPointLabelContext(l));r[l]=c.padding;const u=e.getPointPosition(l,e.drawingArea+r[l],a),d=gt(c.font),f=WM(e.ctx,d,e._pointLabels[l]);i[l]=f;const h=Et(e.getIndexAngle(l)+a),g=Math.round(Ec(h)),p=Zf(g,u.x,f.w,0,180),m=Zf(g,u.y,f.h,90,270);XM(n,t,h,p,m)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=UM(e,i,r)}function XM(e,t,n,i,r){const o=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let a=0,l=0;i.start<t.l?(a=(t.l-i.start)/o,e.l=Math.min(e.l,t.l-a)):i.end>t.r&&(a=(i.end-t.r)/o,e.r=Math.max(e.r,t.r+a)),r.start<t.t?(l=(t.t-r.start)/s,e.t=Math.min(e.t,t.t-l)):r.end>t.b&&(l=(r.end-t.b)/s,e.b=Math.max(e.b,t.b+l))}function YM(e,t,n){const i=e.drawingArea,{extra:r,additionalAngle:o,padding:s,size:a}=n,l=e.getPointPosition(t,i+r+s,o),c=Math.round(Ec(Et(l.angle+dt))),u=KM(l.y,a.h,c),d=QM(c),f=qM(l.x,a.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:f,top:u,right:f+a.w,bottom:u+a.h}}function JM(e,t){if(!t)return!0;const{left:n,top:i,right:r,bottom:o}=e;return!($n({x:n,y:i},t)||$n({x:n,y:o},t)||$n({x:r,y:i},t)||$n({x:r,y:o},t))}function UM(e,t,n){const i=[],r=e._pointLabels.length,o=e.options,{centerPointLabels:s,display:a}=o.pointLabels,l={extra:bl(o)/2,additionalAngle:s?Be/r:0};let c;for(let u=0;u<r;u++){l.padding=n[u],l.size=t[u];const d=YM(e,u,l);i.push(d),a==="auto"&&(d.visible=JM(d,c),d.visible&&(c=d))}return i}function QM(e){return e===0||e===180?"center":e<180?"left":"right"}function qM(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function KM(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function e_(e,t,n){const{left:i,top:r,right:o,bottom:s}=n,{backdropColor:a}=t;if(!Fe(a)){const l=Oi(t.borderRadius),c=St(t.backdropPadding);e.fillStyle=a;const u=i-c.left,d=r-c.top,f=o-i+c.width,h=s-r+c.height;Object.values(l).some(g=>g!==0)?(e.beginPath(),Oo(e,{x:u,y:d,w:f,h,radius:l}),e.fill()):e.fillRect(u,d,f,h)}}function t_(e,t){const{ctx:n,options:{pointLabels:i}}=e;for(let r=t-1;r>=0;r--){const o=e._pointLabelItems[r];if(!o.visible)continue;const s=i.setContext(e.getPointLabelContext(r));e_(n,s,o);const a=gt(s.font),{x:l,y:c,textAlign:u}=o;zi(n,e._pointLabels[r],l,c+a.lineHeight/2,a,{color:s.color,textAlign:u,textBaseline:"middle"})}}function f5(e,t,n,i){const{ctx:r}=e;if(n)r.arc(e.xCenter,e.yCenter,t,0,it);else{let o=e.getPointPosition(0,t);r.moveTo(o.x,o.y);for(let s=1;s<i;s++)o=e.getPointPosition(s,t),r.lineTo(o.x,o.y)}}function n_(e,t,n,i,r){const o=e.ctx,s=t.circular,{color:a,lineWidth:l}=t;!s&&!i||!a||!l||n<0||(o.save(),o.strokeStyle=a,o.lineWidth=l,o.setLineDash(r.dash||[]),o.lineDashOffset=r.dashOffset,o.beginPath(),f5(e,n,s,i),o.closePath(),o.stroke(),o.restore())}function i_(e,t,n){return gi(e,{label:n,index:t,type:"pointLabel"})}class qr extends Ga{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=St(bl(this.options)/2),n=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(n,i)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=ct(t)&&!isNaN(t)?t:0,this.max=ct(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/bl(this.options))}generateTickLabels(t){Ga.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,i)=>{const r=Ue(this.options.pointLabels.callback,[n,i],this);return r||r===0?r:""}).filter((n,i)=>this.chart.getDataVisibility(i))}fit(){const t=this.options;t.display&&t.pointLabels.display?ZM(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,i,r){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,i,r))}getIndexAngle(t){const n=it/(this._pointLabels.length||1),i=this.options.startAngle||0;return Et(t*n+cn(i))}getDistanceFromCenterForValue(t){if(Fe(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(Fe(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const i=n[t];return i_(this.getContext(),t,i)}}getPointPosition(t,n,i=0){const r=this.getIndexAngle(t)-dt+i;return{x:Math.cos(r)*n+this.xCenter,y:Math.sin(r)*n+this.yCenter,angle:r}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:i,right:r,bottom:o}=this._pointLabelItems[t];return{left:n,top:i,right:r,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),f5(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:i,grid:r,border:o}=n,s=this._pointLabels.length;let a,l,c;if(n.pointLabels.display&&t_(this,s),r.display&&this.ticks.forEach((u,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);const f=this.getContext(d),h=r.setContext(f),g=o.setContext(f);n_(this,h,l,s,g)}}),i.display){for(t.save(),a=s-1;a>=0;a--){const u=i.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:f}=u;!f||!d||(t.lineWidth=f,t.strokeStyle=d,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.reverse?this.min:this.max),c=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,i=n.ticks;if(!i.display)return;const r=this.getIndexAngle(0);let o,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const c=i.setContext(this.getContext(l)),u=gt(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=u.string,s=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const d=St(c.backdropPadding);t.fillRect(-s/2-d.left,-o-u.size/2-d.top,s+d.width,u.size+d.height)}zi(t,a.label,0,-o,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}}U(qr,"id","radialLinear"),U(qr,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:y2.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),U(qr,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),U(qr,"descriptors",{angleLines:{_fallback:"grid"}});const M2={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Vt=Object.keys(M2);function Xf(e,t){return e-t}function Yf(e,t){if(Fe(t))return null;const n=e._adapter,{parser:i,round:r,isoWeekday:o}=e._parseOpts;let s=t;return typeof i=="function"&&(s=i(s)),ct(s)||(s=typeof i=="string"?n.parse(s,i):n.parse(s)),s===null?null:(r&&(s=r==="week"&&(br(o)||o===!0)?n.startOf(s,"isoWeek",o):n.startOf(s,r)),+s)}function Jf(e,t,n,i){const r=Vt.length;for(let o=Vt.indexOf(e);o<r-1;++o){const s=M2[Vt[o]],a=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-t)/(a*s.size))<=i)return Vt[o]}return Vt[r-1]}function r_(e,t,n,i,r){for(let o=Vt.length-1;o>=Vt.indexOf(n);o--){const s=Vt[o];if(M2[s].common&&e._adapter.diff(r,i,s)>=t-1)return s}return Vt[n?Vt.indexOf(n):0]}function o_(e){for(let t=Vt.indexOf(e)+1,n=Vt.length;t<n;++t)if(M2[Vt[t]].common)return Vt[t]}function Uf(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:i,hi:r}=Rc(n,t),o=n[i]>=t?n[i]:n[r];e[o]=!0}}function s_(e,t,n,i){const r=e._adapter,o=+r.startOf(t[0].value,i),s=t[t.length-1].value;let a,l;for(a=o;a<=s;a=+r.add(a,1,i))l=n[a],l>=0&&(t[l].major=!0);return t}function Qf(e,t,n){const i=[],r={},o=t.length;let s,a;for(s=0;s<o;++s)a=t[s],r[a]=s,i.push({value:a,major:!1});return o===0||!n?i:s_(e,i,r,n)}class Do extends pi{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const i=t.time||(t.time={}),r=this._adapter=new bS._date(t.adapters.date);r.init(n),ao(i.displayFormats,r.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:Yf(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,i=t.time.unit||"day";let{min:r,max:o,minDefined:s,maxDefined:a}=this.getUserBounds();function l(c){!s&&!isNaN(c.min)&&(r=Math.min(r,c.min)),!a&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!s||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),r=ct(r)&&!isNaN(r)?r:+n.startOf(Date.now(),i),o=ct(o)&&!isNaN(o)?o:+n.endOf(Date.now(),i)+1,this.min=Math.min(r,o-1),this.max=Math.max(r+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],i=t[t.length-1]),{min:n,max:i}}buildTicks(){const t=this.options,n=t.time,i=t.ticks,r=i.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const o=this.min,s=this.max,a=$y(r,o,s);return this._unit=n.unit||(i.autoSkip?Jf(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):r_(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:o_(this._unit),this.initOffsets(r),t.reverse&&a.reverse(),Qf(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,i=0,r,o;this.options.offset&&t.length&&(r=this.getDecimalForValue(t[0]),t.length===1?n=1-r:n=(this.getDecimalForValue(t[1])-r)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?i=o:i=(o-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=bt(n,0,s),i=bt(i,0,s),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const t=this._adapter,n=this.min,i=this.max,r=this.options,o=r.time,s=o.unit||Jf(o.minUnit,n,i,this._getLabelCapacity(n)),a=Ae(r.ticks.stepSize,1),l=s==="week"?o.isoWeekday:!1,c=br(l)||l===!0,u={};let d=n,f,h;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":s),t.diff(i,n,s)>1e5*a)throw new Error(n+" and "+i+" are too far apart with stepSize of "+a+" "+s);const g=r.ticks.source==="data"&&this.getDataTimestamps();for(f=d,h=0;f<i;f=+t.add(f,a,s),h++)Uf(u,f,g);return(f===i||r.bounds==="ticks"||h===1)&&Uf(u,f,g),Object.keys(u).sort(Xf).map(p=>+p)}getLabelForValue(t){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(t,i.tooltipFormat):n.format(t,i.displayFormats.datetime)}format(t,n){const r=this.options.time.displayFormats,o=this._unit,s=n||r[o];return this._adapter.format(t,s)}_tickFormatFunction(t,n,i,r){const o=this.options,s=o.ticks.callback;if(s)return Ue(s,[t,n,i],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],f=i[n],h=c&&d&&f&&f.major;return this._adapter.format(t,r||(h?d:u))}generateTickLabels(t){let n,i,r;for(n=0,i=t.length;n<i;++n)r=t[n],r.label=this._tickFormatFunction(r.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+i)*n.factor)}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,i=this.ctx.measureText(t).width,r=cn(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(r),s=Math.sin(r),a=this._resolveTickFontOptions(0).size;return{w:i*o+a*s,h:i*s+a*o}}_getLabelCapacity(t){const n=this.options.time,i=n.displayFormats,r=i[n.unit]||i.millisecond,o=this._tickFormatFunction(t,0,Qf(this,[t],this._majorUnit),r),s=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,i;if(t.length)return t;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(n=0,i=r.length;n<i;++n)t=t.concat(r[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,i;if(t.length)return t;const r=this.getLabels();for(n=0,i=r.length;n<i;++n)t.push(Yf(this,r[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Ih(t.sort(Xf))}}U(Do,"id","time"),U(Do,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Ls(e,t,n){let i=0,r=e.length-1,o,s,a,l;n?(t>=e[i].pos&&t<=e[r].pos&&({lo:i,hi:r}=Bn(e,"pos",t)),{pos:o,time:a}=e[i],{pos:s,time:l}=e[r]):(t>=e[i].time&&t<=e[r].time&&({lo:i,hi:r}=Bn(e,"time",t)),{time:o,pos:a}=e[i],{time:s,pos:l}=e[r]);const c=s-o;return c?a+(l-a)*(t-o)/c:a}class Cl extends Do{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Ls(n,this.min),this._tableRange=Ls(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:i}=this,r=[],o=[];let s,a,l,c,u;for(s=0,a=t.length;s<a;++s)c=t[s],c>=n&&c<=i&&r.push(c);if(r.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(s=0,a=r.length;s<a;++s)u=r[s+1],l=r[s-1],c=r[s],Math.round((u+l)/2)!==c&&o.push({time:c,pos:s/(a-1)});return o}_generate(){const t=this.min,n=this.max;let i=super.getDataTimestamps();return(!i.includes(t)||!i.length)&&i.splice(0,0,t),(!i.includes(n)||i.length===1)&&i.push(n),i.sort((r,o)=>r-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?t=this.normalize(n.concat(i)):t=n.length?n:i,t=this._cache.all=t,t}getDecimalForValue(t){return(Ls(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return Ls(this._table,i*this._tableRange+this._minPos,!0)}}U(Cl,"id","timeseries"),U(Cl,"defaults",Do.defaults);var a_=Object.freeze({__proto__:null,CategoryScale:xr,LinearScale:Zn,LogarithmicScale:Wi,RadialLinearScale:qr,TimeScale:Do,TimeSeriesScale:Cl});const l_=[mS,ZI,VM,a_],h5="label";function qf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function c_(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function g5(e,t){e.labels=t}function p5(e,t,n=h5){const i=[];e.datasets=t.map(r=>{const o=e.datasets.find(s=>s[n]===r[n]);return!o||!r.data||i.includes(o)?{...r}:(i.push(o),Object.assign(o,r),o)})}function u_(e,t=h5){const n={labels:[],datasets:[]};return g5(n,e.labels),p5(n,e.datasets,t),n}function d_(e,t){const{height:n=150,width:i=300,redraw:r=!1,datasetIdKey:o,type:s,data:a,options:l,plugins:c=[],fallbackContent:u,updateMode:d,...f}=e,h=v.useRef(null),g=v.useRef(null),p=()=>{h.current&&(g.current=new vt(h.current,{type:s,data:u_(a,o),options:l&&{...l},plugins:c}),qf(t,g.current))},m=()=>{qf(t,null),g.current&&(g.current.destroy(),g.current=null)};return v.useEffect(()=>{!r&&g.current&&l&&c_(g.current,l)},[r,l]),v.useEffect(()=>{!r&&g.current&&g5(g.current.config.data,a.labels)},[r,a.labels]),v.useEffect(()=>{!r&&g.current&&a.datasets&&p5(g.current.config.data,a.datasets,o)},[r,a.datasets]),v.useEffect(()=>{g.current&&(r?(m(),setTimeout(p)):g.current.update(d))},[r,l,a.labels,a.datasets,d]),v.useEffect(()=>{g.current&&(m(),setTimeout(p))},[s]),v.useEffect(()=>(p(),()=>m()),[]),b.jsx("canvas",{ref:h,role:"img",height:n,width:i,...f,children:u})}const $c=v.forwardRef(d_);function Hc(e,t){return vt.register(t),v.forwardRef((n,i)=>b.jsx($c,{...n,ref:i,type:e}))}const f_=Hc("bar",fo),m5=Hc("doughnut",ii),h_=Hc("pie",Ba);/*!
101
+ * chartjs-plugin-datalabels v2.2.0
102
+ * https://chartjs-plugin-datalabels.netlify.app
103
+ * (c) 2017-2022 chartjs-plugin-datalabels contributors
104
+ * Released under the MIT license
105
+ */var Kf=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;if(e)return(e.deviceXDPI||1)/(e.logicalXDPI||1)}return 1}(),go={toTextLines:function(e){var t=[],n;for(e=[].concat(e);e.length;)n=e.pop(),typeof n=="string"?t.unshift.apply(t,n.split(`
106
+ `)):Array.isArray(n)?e.push.apply(e,n):Fe(e)||t.unshift(""+n);return t},textSize:function(e,t,n){var i=[].concat(t),r=i.length,o=e.font,s=0,a;for(e.font=n.string,a=0;a<r;++a)s=Math.max(e.measureText(i[a]).width,s);return e.font=o,{height:r*n.lineHeight,width:s}},bound:function(e,t,n){return Math.max(e,Math.min(t,n))},arrayDiff:function(e,t){var n=e.slice(),i=[],r,o,s,a;for(r=0,s=t.length;r<s;++r)a=t[r],o=n.indexOf(a),o===-1?i.push([a,1]):n.splice(o,1);for(r=0,s=n.length;r<s;++r)i.push([n[r],-1]);return i},rasterize:function(e){return Math.round(e*Kf)/Kf}};function w0(e,t){var n=t.x,i=t.y;if(n===null)return{x:0,y:-1};if(i===null)return{x:1,y:0};var r=e.x-n,o=e.y-i,s=Math.sqrt(r*r+o*o);return{x:s?r/s:0,y:s?o/s:-1}}function g_(e,t,n,i,r){switch(r){case"center":n=i=0;break;case"bottom":n=0,i=1;break;case"right":n=1,i=0;break;case"left":n=-1,i=0;break;case"top":n=0,i=-1;break;case"start":n=-n,i=-i;break;case"end":break;default:r*=Math.PI/180,n=Math.cos(r),i=Math.sin(r);break}return{x:e,y:t,vx:n,vy:i}}var p_=0,b5=1,C5=2,v5=4,x5=8;function Fs(e,t,n){var i=p_;return e<n.left?i|=b5:e>n.right&&(i|=C5),t<n.top?i|=x5:t>n.bottom&&(i|=v5),i}function m_(e,t){for(var n=e.x0,i=e.y0,r=e.x1,o=e.y1,s=Fs(n,i,t),a=Fs(r,o,t),l,c,u;!(!(s|a)||s&a);)l=s||a,l&x5?(c=n+(r-n)*(t.top-i)/(o-i),u=t.top):l&v5?(c=n+(r-n)*(t.bottom-i)/(o-i),u=t.bottom):l&C5?(u=i+(o-i)*(t.right-n)/(r-n),c=t.right):l&b5&&(u=i+(o-i)*(t.left-n)/(r-n),c=t.left),l===s?(n=c,i=u,s=Fs(n,i,t)):(r=c,o=u,a=Fs(r,o,t));return{x0:n,x1:r,y0:i,y1:o}}function Os(e,t){var n=t.anchor,i=e,r,o;return t.clamp&&(i=m_(i,t.area)),n==="start"?(r=i.x0,o=i.y0):n==="end"?(r=i.x1,o=i.y1):(r=(i.x0+i.x1)/2,o=(i.y0+i.y1)/2),g_(r,o,e.vx,e.vy,t.align)}var Ns={arc:function(e,t){var n=(e.startAngle+e.endAngle)/2,i=Math.cos(n),r=Math.sin(n),o=e.innerRadius,s=e.outerRadius;return Os({x0:e.x+i*o,y0:e.y+r*o,x1:e.x+i*s,y1:e.y+r*s,vx:i,vy:r},t)},point:function(e,t){var n=w0(e,t.origin),i=n.x*e.options.radius,r=n.y*e.options.radius;return Os({x0:e.x-i,y0:e.y-r,x1:e.x+i,y1:e.y+r,vx:n.x,vy:n.y},t)},bar:function(e,t){var n=w0(e,t.origin),i=e.x,r=e.y,o=0,s=0;return e.horizontal?(i=Math.min(e.x,e.base),o=Math.abs(e.base-e.x)):(r=Math.min(e.y,e.base),s=Math.abs(e.base-e.y)),Os({x0:i,y0:r+s,x1:i+o,y1:r,vx:n.x,vy:n.y},t)},fallback:function(e,t){var n=w0(e,t.origin);return Os({x0:e.x,y0:e.y,x1:e.x+(e.width||0),y1:e.y+(e.height||0),vx:n.x,vy:n.y},t)}},zn=go.rasterize;function b_(e){var t=e.borderWidth||0,n=e.padding,i=e.size.height,r=e.size.width,o=-r/2,s=-i/2;return{frame:{x:o-n.left-t,y:s-n.top-t,w:r+n.width+t*2,h:i+n.height+t*2},text:{x:o,y:s,w:r,h:i}}}function C_(e,t){var n=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!n)return null;if(n.xCenter!==void 0&&n.yCenter!==void 0)return{x:n.xCenter,y:n.yCenter};var i=n.getBasePixel();return e.horizontal?{x:i,y:null}:{x:null,y:i}}function v_(e){return e instanceof Hn?Ns.arc:e instanceof Ti?Ns.point:e instanceof wn?Ns.bar:Ns.fallback}function x_(e,t,n,i,r,o){var s=Math.PI/2;if(o){var a=Math.min(o,r/2,i/2),l=t+a,c=n+a,u=t+i-a,d=n+r-a;e.moveTo(t,c),l<u&&c<d?(e.arc(l,c,a,-Math.PI,-s),e.arc(u,c,a,-s,0),e.arc(u,d,a,0,s),e.arc(l,d,a,s,Math.PI)):l<u?(e.moveTo(l,n),e.arc(u,c,a,-s,s),e.arc(l,c,a,s,Math.PI+s)):c<d?(e.arc(l,c,a,-Math.PI,0),e.arc(l,d,a,0,Math.PI)):e.arc(l,c,a,-Math.PI,Math.PI),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,i,r)}function y_(e,t,n){var i=n.backgroundColor,r=n.borderColor,o=n.borderWidth;!i&&(!r||!o)||(e.beginPath(),x_(e,zn(t.x)+o/2,zn(t.y)+o/2,zn(t.w)-o,zn(t.h)-o,n.borderRadius),e.closePath(),i&&(e.fillStyle=i,e.fill()),r&&o&&(e.strokeStyle=r,e.lineWidth=o,e.lineJoin="miter",e.stroke()))}function w_(e,t,n){var i=n.lineHeight,r=e.w,o=e.x,s=e.y+i/2;return t==="center"?o+=r/2:(t==="end"||t==="right")&&(o+=r),{h:i,w:r,x:o,y:s}}function S_(e,t,n){var i=e.shadowBlur,r=n.stroked,o=zn(n.x),s=zn(n.y),a=zn(n.w);r&&e.strokeText(t,o,s,a),n.filled&&(i&&r&&(e.shadowBlur=0),e.fillText(t,o,s,a),i&&r&&(e.shadowBlur=i))}function I_(e,t,n,i){var r=i.textAlign,o=i.color,s=!!o,a=i.font,l=t.length,c=i.textStrokeColor,u=i.textStrokeWidth,d=c&&u,f;if(!(!l||!s&&!d))for(n=w_(n,r,a),e.font=a.string,e.textAlign=r,e.textBaseline="middle",e.shadowBlur=i.textShadowBlur,e.shadowColor=i.textShadowColor,s&&(e.fillStyle=o),d&&(e.lineJoin="round",e.lineWidth=u,e.strokeStyle=c),f=0,l=t.length;f<l;++f)S_(e,t[f],{stroked:d,filled:s,w:n.w,x:n.x,y:n.y+n.h*f})}var y5=function(e,t,n,i){var r=this;r._config=e,r._index=i,r._model=null,r._rects=null,r._ctx=t,r._el=n};Ct(y5.prototype,{_modelize:function(e,t,n,i){var r=this,o=r._index,s=gt(tt([n.font,{}],i,o)),a=tt([n.color,rt.color],i,o);return{align:tt([n.align,"center"],i,o),anchor:tt([n.anchor,"center"],i,o),area:i.chart.chartArea,backgroundColor:tt([n.backgroundColor,null],i,o),borderColor:tt([n.borderColor,null],i,o),borderRadius:tt([n.borderRadius,0],i,o),borderWidth:tt([n.borderWidth,0],i,o),clamp:tt([n.clamp,!1],i,o),clip:tt([n.clip,!1],i,o),color:a,display:e,font:s,lines:t,offset:tt([n.offset,4],i,o),opacity:tt([n.opacity,1],i,o),origin:C_(r._el,i),padding:St(tt([n.padding,4],i,o)),positioner:v_(r._el),rotation:tt([n.rotation,0],i,o)*(Math.PI/180),size:go.textSize(r._ctx,t,s),textAlign:tt([n.textAlign,"start"],i,o),textShadowBlur:tt([n.textShadowBlur,0],i,o),textShadowColor:tt([n.textShadowColor,a],i,o),textStrokeColor:tt([n.textStrokeColor,a],i,o),textStrokeWidth:tt([n.textStrokeWidth,0],i,o)}},update:function(e){var t=this,n=null,i=null,r=t._index,o=t._config,s,a,l,c=tt([o.display,!0],e,r);c&&(s=e.dataset.data[r],a=Ae(Ue(o.formatter,[s,e]),s),l=Fe(a)?[]:go.toTextLines(a),l.length&&(n=t._modelize(c,l,o,e),i=b_(n))),t._model=n,t._rects=i},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,t){var n=this,i=e.ctx,r=n._model,o=n._rects,s;this.visible()&&(i.save(),r.clip&&(s=r.area,i.beginPath(),i.rect(s.left,s.top,s.right-s.left,s.bottom-s.top),i.clip()),i.globalAlpha=go.bound(0,r.opacity,1),i.translate(zn(t.x),zn(t.y)),i.rotate(r.rotation),y_(i,o.frame,r),I_(i,r.lines,o.text,r),i.restore())}});var M_=Number.MIN_SAFE_INTEGER||-9007199254740991,__=Number.MAX_SAFE_INTEGER||9007199254740991;function zr(e,t,n){var i=Math.cos(n),r=Math.sin(n),o=t.x,s=t.y;return{x:o+i*(e.x-o)-r*(e.y-s),y:s+r*(e.x-o)+i*(e.y-s)}}function e1(e,t){var n=__,i=M_,r=t.origin,o,s,a,l,c;for(o=0;o<e.length;++o)s=e[o],a=s.x-r.x,l=s.y-r.y,c=t.vx*a+t.vy*l,n=Math.min(n,c),i=Math.max(i,c);return{min:n,max:i}}function Ts(e,t){var n=t.x-e.x,i=t.y-e.y,r=Math.sqrt(n*n+i*i);return{vx:(t.x-e.x)/r,vy:(t.y-e.y)/r,origin:e,ln:r}}var w5=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};Ct(w5.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,t,n){this._rotation=n,this._rect={x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},contains:function(e){var t=this,n=1,i=t._rect;return e=zr(e,t.center(),-t._rotation),!(e.x<i.x-n||e.y<i.y-n||e.x>i.x+i.w+n*2||e.y>i.y+i.h+n*2)},intersects:function(e){var t=this._points(),n=e._points(),i=[Ts(t[0],t[1]),Ts(t[0],t[3])],r,o,s;for(this._rotation!==e._rotation&&i.push(Ts(n[0],n[1]),Ts(n[0],n[3])),r=0;r<i.length;++r)if(o=e1(t,i[r]),s=e1(n,i[r]),o.max<s.min||s.max<o.min)return!1;return!0},_points:function(){var e=this,t=e._rect,n=e._rotation,i=e.center();return[zr({x:t.x,y:t.y},i,n),zr({x:t.x+t.w,y:t.y},i,n),zr({x:t.x+t.w,y:t.y+t.h},i,n),zr({x:t.x,y:t.y+t.h},i,n)]}});function S5(e,t,n){var i=t.positioner(e,t),r=i.vx,o=i.vy;if(!r&&!o)return{x:i.x,y:i.y};var s=n.w,a=n.h,l=t.rotation,c=Math.abs(s/2*Math.cos(l))+Math.abs(a/2*Math.sin(l)),u=Math.abs(s/2*Math.sin(l))+Math.abs(a/2*Math.cos(l)),d=1/Math.max(Math.abs(r),Math.abs(o));return c*=r*d,u*=o*d,c+=t.offset*r,u+=t.offset*o,{x:i.x+c,y:i.y+u}}function A_(e,t){var n,i,r,o;for(n=e.length-1;n>=0;--n)for(r=e[n].$layout,i=n-1;i>=0&&r._visible;--i)o=e[i].$layout,o._visible&&r._box.intersects(o._box)&&t(r,o);return e}function E_(e){var t,n,i,r,o,s,a;for(t=0,n=e.length;t<n;++t)i=e[t],r=i.$layout,r._visible&&(a=new Proxy(i._el,{get:(l,c)=>l.getProps([c],!0)[c]}),o=i.geometry(),s=S5(a,i.model(),o),r._box.update(s,o,i.rotation()));return A_(e,function(l,c){var u=l._hidable,d=c._hidable;u&&d||d?c._visible=!1:u&&(l._visible=!1)})}var po={prepare:function(e){var t=[],n,i,r,o,s;for(n=0,r=e.length;n<r;++n)for(i=0,o=e[n].length;i<o;++i)s=e[n][i],t.push(s),s.$layout={_box:new w5,_hidable:!1,_visible:!0,_set:n,_idx:s._index};return t.sort(function(a,l){var c=a.$layout,u=l.$layout;return c._idx===u._idx?u._set-c._set:u._idx-c._idx}),this.update(t),t},update:function(e){var t=!1,n,i,r,o,s;for(n=0,i=e.length;n<i;++n)r=e[n],o=r.model(),s=r.$layout,s._hidable=o&&o.display==="auto",s._visible=r.visible(),t|=s._hidable;t&&E_(e)},lookup:function(e,t){var n,i;for(n=e.length-1;n>=0;--n)if(i=e[n].$layout,i&&i._visible&&i._box.contains(t))return e[n];return null},draw:function(e,t){var n,i,r,o,s,a;for(n=0,i=t.length;n<i;++n)r=t[n],o=r.$layout,o._visible&&(s=r.geometry(),a=S5(r._el,r.model(),s),o._box.update(a,s,r.rotation()),r.draw(e,a))}},R_=function(e){if(Fe(e))return null;var t=e,n,i,r;if(De(e))if(!Fe(e.label))t=e.label;else if(!Fe(e.r))t=e.r;else for(t="",n=Object.keys(e),r=0,i=n.length;r<i;++r)t+=(r!==0?", ":"")+n[r]+": "+e[n[r]];return""+t},k_={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:R_,labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},Dt="$datalabels",I5="$default";function P_(e,t){var n=e.datalabels,i={},r=[],o,s;return n===!1?null:(n===!0&&(n={}),t=Ct({},[t,n]),o=t.labels||{},s=Object.keys(o),delete t.labels,s.length?s.forEach(function(a){o[a]&&r.push(Ct({},[t,o[a],{_key:a}]))}):r.push(t),i=r.reduce(function(a,l){return Ye(l.listeners||{},function(c,u){a[u]=a[u]||{},a[u][l._key||I5]=c}),delete l.listeners,a},{}),{labels:r,listeners:i})}function vl(e,t,n,i){if(t){var r=n.$context,o=n.$groups,s;t[o._set]&&(s=t[o._set][o._key],s&&Ue(s,[r,i])===!0&&(e[Dt]._dirty=!0,n.update(r)))}}function L_(e,t,n,i,r){var o,s;!n&&!i||(n?i?n!==i&&(s=o=!0):s=!0:o=!0,s&&vl(e,t.leave,n,r),o&&vl(e,t.enter,i,r))}function F_(e,t){var n=e[Dt],i=n._listeners,r,o;if(!(!i.enter&&!i.leave)){if(t.type==="mousemove")o=po.lookup(n._labels,t);else if(t.type!=="mouseout")return;r=n._hovered,n._hovered=o,L_(e,i,r,o,t)}}function O_(e,t){var n=e[Dt],i=n._listeners.click,r=i&&po.lookup(n._labels,t);r&&vl(e,i,r,t)}var M5={id:"datalabels",defaults:k_,beforeInit:function(e){e[Dt]={_actives:[]}},beforeUpdate:function(e){var t=e[Dt];t._listened=!1,t._listeners={},t._datasets=[],t._labels=[]},afterDatasetUpdate:function(e,t,n){var i=t.index,r=e[Dt],o=r._datasets[i]=[],s=e.isDatasetVisible(i),a=e.data.datasets[i],l=P_(a,n),c=t.meta.data||[],u=e.ctx,d,f,h,g,p,m,C,y;for(u.save(),d=0,h=c.length;d<h;++d)if(C=c[d],C[Dt]=[],s&&C&&e.getDataVisibility(d)&&!C.skip)for(f=0,g=l.labels.length;f<g;++f)p=l.labels[f],m=p._key,y=new y5(p,u,C,d),y.$groups={_set:i,_key:m||I5},y.$context={active:!1,chart:e,dataIndex:d,dataset:a,datasetIndex:i},y.update(y.$context),C[Dt].push(y),o.push(y);u.restore(),Ct(r._listeners,l.listeners,{merger:function(x,I,w){I[x]=I[x]||{},I[x][t.index]=w[x],r._listened=!0}})},afterUpdate:function(e){e[Dt]._labels=po.prepare(e[Dt]._datasets)},afterDatasetsDraw:function(e){po.draw(e,e[Dt]._labels)},beforeEvent:function(e,t){if(e[Dt]._listened){var n=t.event;switch(n.type){case"mousemove":case"mouseout":F_(e,n);break;case"click":O_(e,n);break}}},afterEvent:function(e){var t=e[Dt],n=t._actives,i=t._actives=e.getActiveElements(),r=go.arrayDiff(n,i),o,s,a,l,c,u,d;for(o=0,s=r.length;o<s;++o)if(c=r[o],c[1])for(d=c[0].element[Dt]||[],a=0,l=d.length;a<l;++a)u=d[a],u.$context.active=c[1]===1,u.update(u.$context);(t._dirty||r.length)&&(po.update(t._labels),e.render()),delete t._dirty}};vt.register(Hn,Ui,Ji,M5);vt.defaults.font.family="'Rubik', 'Inter', sans-serif";const N_=({labels:e,dataValues:t,colors:n,title:i,tableHeader:r="",renderLegendTable:o})=>{const[s,a]=v.useState(!1),l=["#ff6503","#ff8533","#ffa366","#3a3a3a","#4a4a4a","#5a5a5a","#dae0e8","#c5cdd7","#b0b8c6","#9ba5b5"],c=n||l.slice(0,e.length>l.length?l.length:e.length),u={labels:e,datasets:[{data:t,backgroundColor:c,hoverBackgroundColor:c.map(p=>p+"CC"),borderWidth:2}]},d=t.reduce((p,m)=>p+m,0),f={responsive:!0,cutout:"70%",maintainAspectRatio:!1,plugins:{title:{display:!1},legend:{display:!1},datalabels:{color:"var(--chart-text-color)",formatter:(p,m)=>{const C=m.chart.data.datasets[0].data.reduce((x,I)=>x+I,0);return`${(p/C*100).toFixed(2)+"%"}
107
+ (${p})`},font:function(p){const m=p.chart.width,C=Math.round(m/32);return{weight:"bold",size:C>12?12:C}},backgroundColor:"var(--brand-light)",borderRadius:24,padding:{top:8,bottom:8,left:10,right:10},anchor:"end",display:!1},tooltip:{callbacks:{label:p=>{const m=p.raw;return`${(m/d*100).toFixed(2)}% (${m})`}}}}},h=e.map((p,m)=>({id:m+1,label:p,percentage:(t[m]/d*100).toFixed(2)+"%",value:t[m]})),g=b.jsx("div",{className:"space-y-2",children:h.map(p=>b.jsxs("div",{className:"flex items-center justify-between p-2 border-b",style:{borderColor:"var(--border-color)"},children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",backgroundColor:c[p.id-1]}}),b.jsx("span",{style:{color:"var(--text-color)"},children:p.label})]}),b.jsxs("div",{className:"flex gap-4",children:[b.jsx("span",{style:{color:"var(--secondary-text-color)"},children:p.percentage}),b.jsxs("span",{style:{color:"var(--secondary-text-color)"},children:["(",p.value,")"]})]})]},p.id))});return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"flex flex-row flex-1 items-end",children:[b.jsx("div",{className:"w-2/3 h-64",children:b.jsx(m5,{data:u,options:f})}),b.jsx(Sc,{legends:e,colors:c,dataValues:t,showAllLegends:s,onClick:()=>a(!s)})]}),b.jsx(ar,{isOpen:s,onClose:()=>{a(!1)},title:`${i||"Chart"} Legends:`,showFooter:!1,body:o?o(h):g})]})},je={brandOrange:"#ff6503",brandDark:"#3a3a3a",brandDarkSecondary:"#2c2c2c",brandLight:"#dae0e8",brandOrange10:"rgba(255, 101, 3, 0.1)",appBgColor:"#ffffff",appBgColorDark:"#111111",bgColor:"#ffffff",textColor:"#3a3a3a",hoverBgColor:"#f3f4f6",sidebarHoverBg:"#dae0e8",gridColor:"rgba(0, 0, 0, 0.08)",chartTextColor:"#3a3a3a",chartGridColor:"rgba(0, 0, 0, 0.08)",chartLabelColor:"#4b5563",borderColor:"#e5e7eb",secondaryTextColor:"#6b7280",disabledTextColor:"#9ca3af",statusErrorBg:"#fee2e2",statusErrorText:"#b91c1c",statusErrorBorder:"#fca5a5",statusWarningBg:"#fef3c7",statusWarningText:"#92400e",statusWarningBorder:"#fcd34d",statusSuccessBg:"#f0fdf4",statusSuccessText:"#166534",statusSuccessBorder:"#bbf7d0",fontFamily:"'Rubik', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",fontFamilyHeading:"'Afacad', 'Rubik', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"},T_={bgColor:"#3a3a3a",textColor:"#f9fafb",hoverBgColor:"#4b4b4b",sidebarHoverBg:"#2c2c2c",gridColor:"rgba(255, 255, 255, 0.1)",chartTextColor:"#f9fafb",chartGridColor:"rgba(255, 255, 255, 0.1)",chartLabelColor:"#d1d5db",borderColor:"#4b5563",secondaryTextColor:"#9ca3af",disabledTextColor:"#6b7280",statusErrorBg:"#450a0a",statusErrorText:"#fca5a5",statusErrorBorder:"#991b1b",statusWarningBg:"#451a03",statusWarningText:"#fcd34d",statusWarningBorder:"#b45309",statusSuccessBg:"rgba(20, 83, 45, 0.2)",statusSuccessText:"#bbf7d0",statusSuccessBorder:"#166534"},_5=v.createContext(void 0),A5=({children:e,defaultTheme:t,config:n={},storageKey:i="theme"})=>{const r=()=>{if(typeof window<"u"){const g=localStorage.getItem(i);if(g==="light"||g==="dark")return g}return t||(typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")},[o,s]=v.useState(r),[a,l]=v.useState(()=>({...je,...n})),c=v.useMemo(()=>o==="dark"?{...a,...T_,...n}:{...a,...n},[o,a,n]);v.useEffect(()=>{if(typeof window>"u")return;const g=window.document.documentElement;g.classList.remove(o==="light"?"dark":"light"),g.classList.add(o),localStorage.setItem(i,o);const p={"--brand-orange":c.brandOrange||je.brandOrange,"--brand-dark":c.brandDark||je.brandDark,"--brand-dark-secondary":c.brandDarkSecondary||je.brandDarkSecondary,"--brand-light":c.brandLight||je.brandLight,"--brand-orange-10":c.brandOrange10||je.brandOrange10,"--app-bg-color":c.appBgColor||je.appBgColor,"--app-bg-color-dark":c.appBgColorDark||je.appBgColorDark,"--bg-color":c.bgColor||je.bgColor,"--text-color":c.textColor||je.textColor,"--hover-bg-color":c.hoverBgColor||je.hoverBgColor,"--sidebar-hover-bg":c.sidebarHoverBg||je.sidebarHoverBg,"--grid-color":c.gridColor||je.gridColor,"--chart-text-color":c.chartTextColor||je.chartTextColor,"--chart-grid-color":c.chartGridColor||je.chartGridColor,"--chart-label-color":c.chartLabelColor||je.chartLabelColor,"--border-color":c.borderColor||je.borderColor,"--secondary-text-color":c.secondaryTextColor||je.secondaryTextColor,"--disabled-text-color":c.disabledTextColor||je.disabledTextColor,"--status-error-bg":c.statusErrorBg||je.statusErrorBg,"--status-error-text":c.statusErrorText||je.statusErrorText,"--status-error-border":c.statusErrorBorder||je.statusErrorBorder,"--status-warning-bg":c.statusWarningBg||je.statusWarningBg,"--status-warning-text":c.statusWarningText||je.statusWarningText,"--status-warning-border":c.statusWarningBorder||je.statusWarningBorder,"--status-success-bg":c.statusSuccessBg||je.statusSuccessBg,"--status-success-text":c.statusSuccessText||je.statusSuccessText,"--status-success-border":c.statusSuccessBorder||je.statusSuccessBorder,"--font-family":c.fontFamily||je.fontFamily,"--font-family-heading":c.fontFamilyHeading||je.fontFamilyHeading,...c.customVariables||{}};Object.entries(p).forEach(([m,C])=>{g.style.setProperty(m,C)}),c.fontFamily&&(document.body.style.fontFamily=c.fontFamily),document.body.style.backgroundColor=o==="dark"?c.appBgColorDark||je.appBgColorDark:c.appBgColor||je.appBgColor},[o,c,i]);const h={theme:o,toggleTheme:()=>{s(g=>g==="light"?"dark":"light")},setTheme:g=>{s(g)},config:c,updateConfig:g=>{l(p=>({...p,...g}))}};return b.jsx(_5.Provider,{value:h,children:e})},qo=()=>{const e=v.useContext(_5);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e};vt.register(Hn,Ui,Ji,M5);vt.defaults.font.family="'Rubik', 'Inter', sans-serif";const D_=({labels:e,dataValues:t,colors:n,title:i="",tableHeader:r="",renderLegendTable:o})=>{const[s,a]=v.useState(!1),{theme:l}=qo(),c=["#ff6503","#ff8533","#ffa366","#3a3a3a","#4a4a4a"],u=n||c.slice(0,e.length>c.length?c.length:e.length),d={labels:e,datasets:[{data:t,backgroundColor:u,hoverBackgroundColor:u.map(m=>m+"CC"),borderColor:"var(--border-color)",borderWidth:1}]},f=t.reduce((m,C)=>m+C,0),h={responsive:!0,maintainAspectRatio:!1,plugins:{title:{display:!1},legend:{display:!1},datalabels:{color:"#fff",anchor:"center",align:"center",formatter:(m,C)=>{const y=C.chart.data.datasets[0].data.reduce((w,R)=>{const E=Number(R);return isNaN(E)?w:w+E},0);return`${Math.round(m/y*100)+"%"}`},font:function(m){const C=m.chart.width,y=Math.round(C/24);return{weight:"bold",size:y>14?14:y}}},tooltip:{callbacks:{label:m=>{const C=m.raw,y=t.reduce((I,w)=>I+w,0);return` ${(C/y*100).toFixed(2)}% (${C})`}}}}},g=e.map((m,C)=>({id:C+1,label:m,percentage:(t[C]/f*100).toFixed(2)+"%",value:t[C]})),p=b.jsx("div",{className:"space-y-2",children:g.map(m=>b.jsxs("div",{className:"flex items-center justify-between p-2 border-b",style:{borderColor:"var(--border-color)"},children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",backgroundColor:u[m.id-1]}}),b.jsx("span",{style:{color:"var(--text-color)"},children:m.label})]}),b.jsxs("div",{className:"flex gap-4",children:[b.jsx("span",{style:{color:"var(--secondary-text-color)"},children:m.percentage}),b.jsxs("span",{style:{color:"var(--secondary-text-color)"},children:["(",m.value,")"]})]})]},m.id))});return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"pie-chart-container flex flex-row flex-1 items-end",children:[b.jsx("div",{className:"w-2/3 h-64",children:b.jsx(h_,{data:d,options:h})}),b.jsx(Sc,{legends:e,colors:u,dataValues:t,showAllLegends:s,onClick:()=>a(!s)})]}),b.jsx(ar,{isOpen:s,onClose:()=>{a(!1)},title:`${i||"Chart"} Legends:`,showFooter:!1,body:o?o(g):p})]})};vt.register(...l_);vt.register(xr,Zn,wn,Ti,Gn,Bc,Ui,Ji);vt.defaults.font.family="'Rubik', 'Inter', sans-serif";const V_=({chartData:e,title:t})=>{const{theme:n}=qo(),i=getComputedStyle(document.documentElement).getPropertyValue("--chart-text-color").trim()||(n==="dark"?"#fff":"#333333"),r=v.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"nearest",intersect:!1},scales:{y:{beginAtZero:!0,grid:{color:getComputedStyle(document.documentElement).getPropertyValue("--chart-grid-color").trim()},ticks:{maxTicksLimit:8,font:{size:12,weight:"bold"},color:i},border:{color:getComputedStyle(document.documentElement).getPropertyValue("--border-color").trim()}},x:{grid:{display:!1,color:getComputedStyle(document.documentElement).getPropertyValue("--chart-grid-color").trim()},ticks:{font:{size:12,weight:"bold"},color:i},border:{color:getComputedStyle(document.documentElement).getPropertyValue("--border-color").trim()}}},plugins:{datalabels:{color:i,font:{weight:"bold",size:14},anchor:"end",align:"left",formatter:(s,a)=>a.dataset.label==="Blue Bar"?s.toLocaleString():""},legend:{display:!1,labels:{color:i}},title:{display:!0,text:t||"",color:i,font:{weight:"600",size:20},position:"top",align:"start"},tooltip:{backgroundColor:getComputedStyle(document.documentElement).getPropertyValue("--bg-color").trim(),titleColor:i,bodyColor:i,borderColor:getComputedStyle(document.documentElement).getPropertyValue("--border-color").trim(),borderWidth:1,callbacks:{label:function(s){return`${s.dataset.type==="line"?"Trend":"Value"}: ${s.raw}`}}}}}),[t,n,i]),o=v.useMemo(()=>{var s;return e!=null&&e.monthlyData?{labels:(s=e.monthlyData)==null?void 0:s.map(a=>a.month),datasets:[{label:`${t}`,type:"line",data:e.monthlyData.map(a=>a.value),borderColor:getComputedStyle(document.documentElement).getPropertyValue("--brand-orange").trim(),borderWidth:3,pointRadius:4,pointBackgroundColor:getComputedStyle(document.documentElement).getPropertyValue("--bg-color").trim(),pointBorderColor:getComputedStyle(document.documentElement).getPropertyValue("--brand-orange").trim(),pointBorderWidth:3,tension:0,fill:!1,yAxisID:"y",stack:"stack 1"},{label:`${t}`,type:"bar",data:e.monthlyData.map(a=>a.value),backgroundColor:getComputedStyle(document.documentElement).getPropertyValue("--brand-light").trim(),borderSkipped:!1,maxBarThickness:30,stack:"Stack 0",borderRadius:{topLeft:20,topRight:20,bottomLeft:0,bottomRight:0}}]}:{labels:[],datasets:[]}},[e,t]);return b.jsx("div",{className:"vertical-bar-chart",style:{height:"400px"},children:b.jsx($c,{type:"bar",options:r,data:o})})};vt.register(xr,Wi,Zn,wn,Bc,Ui,Ji);vt.defaults.font.family="'Rubik', 'Inter', sans-serif";const j_=({data:e,maxValue:t=5e4,scaleType:n=Ii.LINEAR})=>{const{theme:i}=qo(),r=getComputedStyle(document.documentElement).getPropertyValue("--chart-text-color").trim()||(i==="dark"?"#fff":"#333333"),{processedData:o,computedMaxValue:s}=v.useMemo(()=>{const d=Object.values(e);let f=[...d],h=t;if(n===Ii.NORMALISED){const g=Math.min(...d),m=Math.max(...d)-g;f=d.map(C=>(C-g)/m*100),h=100}else n===Ii.LOG?(f=d.map(g=>Math.max(g,.1)),h=t||Math.max(...f)*1.1):h=t||Math.max(...d)*1.1;return{processedData:Object.keys(e).reduce((g,p,m)=>(g[p]=f[m],g),{}),computedMaxValue:h}},[e,n,t]),a=Math.max(300,Object.keys(e).length*50),l=d=>n===Ii.NORMALISED?`Value: ${e[Object.keys(e)[d.dataIndex]].toLocaleString()} (${d.raw.toFixed(2)}%)`:`Value: ${d.raw.toLocaleString()}`,c={indexAxis:"y",responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1,labels:{color:r}},title:{display:!1},datalabels:{color:"#ffff",font:{weight:"bold",size:14},anchor:"end",align:"left",formatter:(d,f)=>f.dataset.label==="Blue Bar"?d.toLocaleString():""},tooltip:{backgroundColor:getComputedStyle(document.documentElement).getPropertyValue("--bg-color").trim(),titleColor:r,bodyColor:r,borderColor:getComputedStyle(document.documentElement).getPropertyValue("--border-color").trim(),borderWidth:1,callbacks:{label:d=>l(d)}}},scales:{x:{type:n===Ii.LOG?"logarithmic":"linear",max:s,grid:{display:!1,offset:!1,color:getComputedStyle(document.documentElement).getPropertyValue("--chart-grid-color").trim()},ticks:{font:{size:11.19,weight:"400"},color:r},border:{color:getComputedStyle(document.documentElement).getPropertyValue("--border-color").trim()}},y:{grid:{display:!1,color:getComputedStyle(document.documentElement).getPropertyValue("--chart-grid-color").trim()},ticks:{font:{size:10.33,weight:"500"},color:r,align:"center",callback:function(d){const f=this.getLabelForValue(d),h=25;return f.length>h?f.slice(0,h)+"...":f}},border:{color:getComputedStyle(document.documentElement).getPropertyValue("--border-color").trim()}}}},u={labels:Object.keys(e),datasets:[{label:"Bar Chart",data:Object.values(o),backgroundColor:getComputedStyle(document.documentElement).getPropertyValue("--brand-orange").trim(),borderRadius:{topLeft:0,topRight:20,bottomLeft:0,bottomRight:20},barThickness:25,borderSkipped:!1,grouped:!1,maxBarThickness:30,stack:"foreground"}]};return b.jsx("div",{className:"horizontal-bar-chart-container",style:{height:`${a}px`},children:b.jsx(f_,{options:c,data:u})})};function Gc(e,t=2){if(e===0)return"0 bytes";const n=["bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,i)).toFixed(t)} ${n[i]}`}const B_=({icon:e,value:t,isSize:n=!1,label:i})=>{const r=v.useMemo(()=>{if(!n)return t;const o=typeof t=="number"?t:parseInt(t,10),s=Gc(o).split(" ");return{size:s[0],unit:s[1]}},[t,n]);return b.jsxs("div",{className:"flex flex-col select-none items-center justify-center rounded-lg relative w-full shadow-sm !p-0",style:{border:"1px solid var(--border-color)"},children:[b.jsxs("div",{className:"flex flex-col flex-1 items-center justify-center p-0",children:[b.jsx("div",{className:"p-2",style:{color:"var(--brand-orange)"},children:typeof e=="string"?b.jsx("img",{src:e,alt:i,className:"h-10 w-10 md:h-16 md:w-16 lg:h-20 lg:w-20 object-contain"}):b.jsx("div",{className:"text-4xl md:text-5xl lg:text-6xl",children:e})}),b.jsxs("div",{className:"font-bold text-center text-xl md:text-2xl lg:text-3xl mt-2",style:{color:"var(--chart-text-color)"},children:[n?r.size:r,n&&b.jsx("span",{className:"ml-1 text-sm md:text-base",style:{color:"var(--secondary-text-color)"},children:r.unit})]})]}),b.jsx("div",{className:"flex items-center justify-center font-bold p-2 w-full text-center text-sm md:text-base border-t",style:{backgroundColor:"var(--brand-light)",color:"var(--brand-dark)",borderTopColor:"var(--border-color)"},children:i})]})};vt.register(Hn,Ui,Ji);vt.defaults.font.family="'Rubik', 'Inter', sans-serif";const $_=e=>`
108
+ input[type=range] {
109
+ height: 4px;
110
+ -webkit-appearance: none;
111
+ width: 100%;
112
+ position: absolute;
113
+ top: 0;
114
+ margin: 0;
115
+ padding: 0;
116
+ background: none;
117
+ pointer-events: none;
118
+ }
119
+
120
+ /* Center thumbs vertically on the track */
121
+ input[type=range]::-webkit-slider-runnable-track {
122
+ height: 1px;
123
+ -webkit-appearance: none;
124
+ color: #13bba4;
125
+ }
126
+
127
+ input[type=range]::-webkit-slider-thumb {
128
+ -webkit-appearance: none;
129
+ width: ${e}px;
130
+ height: ${e}px;
131
+ border-radius: 50%;
132
+ background: #ffffff;
133
+ cursor: pointer;
134
+ box-shadow: 0 1px 3px rgba(0,0,0,0.3);
135
+ border: 2px solid gray;
136
+ margin-top: -0.8rem;
137
+ pointer-events: all;
138
+ z-index: 3;
139
+ }
140
+
141
+ input[type=range]::-moz-range-track {
142
+ height: 1px;
143
+ -moz-appearance: none;
144
+ color: #13bba4;
145
+ }
146
+
147
+ input[type=range]::-moz-range-thumb {
148
+ width: ${e}px;
149
+ height: ${e}px;
150
+ border-radius: 50%;
151
+ background: #ffffff;
152
+ cursor: pointer;
153
+ box-shadow: 0 1px 3px rgba(0,0,0,0.3);
154
+ border: 2px solid gray;
155
+ margin-top: -0.8rem;
156
+ pointer-events: all;
157
+ }
158
+ `,H_=({title:e,data:t,maxValue:n,minRange:i=0,maxRange:r=10,onMinRangeChange:o,onMaxRangeChange:s,showRangeSlider:a=!1,sliderMin:l=0,sliderMax:c=10,sliderStep:u=.1,formatSliderLabel:d=h=>`${h.toFixed(1)}Y`,hasData:f=!0})=>{const[h,g]=v.useState(0),p=v.useRef(null),[m,C]=v.useState(i),[y,x]=v.useState(r),I=t,w=n>0?I/n*100:0,R=25;v.useEffect(()=>{const L=()=>{if(p.current){const j=p.current.offsetWidth;g(G=>G!==j?j:G)}};return window.addEventListener("resize",L),L(),()=>window.removeEventListener("resize",L)},[]),v.useEffect(()=>{C(i)},[i]),v.useEffect(()=>{x(r)},[r]);const E=v.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,plugins:{title:{display:!1,text:e||"Gauge Chart",color:"#302d2eff",font:{weight:"bold",size:24},position:"top",align:"start",padding:{top:0}},legend:{display:!1},tooltip:{enabled:!1},datalabels:{display:!1}}}),[e]),S=v.useMemo(()=>({datasets:[{data:f?[w,100-w]:[0,100],backgroundColor:f?[getComputedStyle(document.documentElement).getPropertyValue("--brand-orange").trim()||"#ff6503",getComputedStyle(document.documentElement).getPropertyValue("--brand-light").trim()||"#dae0e8"]:[getComputedStyle(document.documentElement).getPropertyValue("--brand-light").trim()||"#dae0e8",getComputedStyle(document.documentElement).getPropertyValue("--brand-light").trim()||"#dae0e8"],borderWidth:0,cutout:"75%",circumference:300,rotation:-150}]}),[w,f]),M=v.useCallback(L=>{const j=parseFloat(L.target.value);C(j)},[]),_=v.useCallback(L=>{const j=parseFloat(L.target.value);x(j)},[]),P=v.useCallback(()=>{o==null||o(m)},[m,o]),N=v.useCallback(()=>{s==null||s(y)},[y,s]),B=c-l,T=B>0?(m-l)/B*100:0,k=B>0?(y-l)/B*100:0,F=`${T}%`,O=`${k}%`,A=v.useMemo(()=>{const L=getComputedStyle(document.documentElement).getPropertyValue("--brand-light").trim()||"#dae0e8",j=getComputedStyle(document.documentElement).getPropertyValue("--brand-orange").trim()||"#ff6503";return{background:`linear-gradient(to right, ${L} 0%, ${L} ${T}%,
159
+ ${j} ${T}%, ${j} ${k}%, ${L} ${k}%, ${L} 100%)`}},[T,k]);return b.jsxs("div",{className:"retention flex flex-col items-center rounded-xl select-none p-3",children:[b.jsx("div",{className:"w-full flex flex-col items-center justify-center p-2 mb-4",children:b.jsxs("div",{className:"relative w-11/12 h-64 flex items-center justify-center",children:[b.jsx(m5,{data:S,options:E}),b.jsx("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:f?b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"text-xl font-bold",style:{color:"var(--chart-text-color)"},children:I.toLocaleString()}),b.jsx("span",{className:"text-xs",style:{color:"var(--secondary-text-color)"},children:e})]}):b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"text-lg font-medium",style:{color:"var(--secondary-text-color)"},children:"No Data"}),b.jsx("span",{className:"text-xs",style:{color:"var(--secondary-text-color)"},children:"Available"})]})})]})}),a&&b.jsx("div",{className:"w-full px-6",children:b.jsxs("div",{className:"relative w-full",ref:p,children:[b.jsx("style",{children:$_(R)}),b.jsx("div",{className:"absolute top-0 w-full h-1 rounded-full",style:A}),b.jsx("input",{type:"range",min:l,max:c,step:u,value:m,onChange:M,onMouseUp:P,onTouchEnd:P,className:"w-full"}),b.jsx("input",{type:"range",min:l,max:c,step:u,value:y,onChange:_,onMouseUp:N,onTouchEnd:N,className:"w-full"}),b.jsx("div",{className:"absolute flex items-center justify-center w-8 h-8 text-white text-xs font-bold rounded",style:{left:F,top:"-40px",transform:"translateX(-50%)",clipPath:"polygon(0% 0%, 100% 0%, 100% 80%, 60% 80%, 50% 100%, 40% 80%, 0% 80%)",backgroundColor:"var(--brand-orange)"},children:d(m)}),b.jsx("div",{className:"absolute flex items-center justify-center w-8 h-8 text-white text-xs font-bold rounded",style:{left:O,top:"-40px",transform:"translateX(-50%)",clipPath:"polygon(0% 0%, 100% 0%, 100% 80%, 60% 80%, 50% 100%, 40% 80%, 0% 80%)",backgroundColor:"var(--brand-dark)"},children:d(y)})]})})]})};class di{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let i=0;for(let r=0;r<this._n&&r<32;r++){const o=n[r],s=t+o,a=Math.abs(t)<Math.abs(o)?t-(s-o):o-(s-t);a&&(n[i++]=a),t=s}return n[i]=t,this._n=i+1,this}valueOf(){const t=this._partials;let n=this._n,i,r,o,s=0;if(n>0){for(s=t[--n];n>0&&(i=s,r=t[--n],s=i+r,o=r-(s-i),!o););n>0&&(o<0&&t[n-1]<0||o>0&&t[n-1]>0)&&(r=o*2,i=s+r,r==i-s&&(s=i))}return s}}function*G_(e){for(const t of e)yield*t}function E5(e){return Array.from(G_(e))}function rr(e,t,n){e=+e,t=+t,n=(r=arguments.length)<2?(t=e,e=0,1):r<3?1:+n;for(var i=-1,r=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(r);++i<r;)o[i]=e+i*n;return o}var Se=1e-6,zc=1e-12,Te=Math.PI,lt=Te/2,t1=Te/4,Zt=Te*2,Ft=180/Te,Qe=Te/180,Ve=Math.abs,Pr=Math.atan,_n=Math.atan2,Le=Math.cos,Ds=Math.ceil,R5=Math.exp,za=Math.log,S0=Math.pow,ke=Math.sin,qt=Math.sign||function(e){return e>0?1:e<0?-1:0},Nt=Math.sqrt,Wc=Math.tan;function k5(e){return e>1?0:e<-1?Te:Math.acos(e)}function en(e){return e>1?lt:e<-1?-lt:Math.asin(e)}function mt(){}function Wa(e,t){e&&i1.hasOwnProperty(e.type)&&i1[e.type](e,t)}var n1={Feature:function(e,t){Wa(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,i=-1,r=n.length;++i<r;)Wa(n[i].geometry,t)}},i1={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)e=n[i],t.point(e[0],e[1],e[2])},LineString:function(e,t){xl(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)xl(n[i],t,0)},Polygon:function(e,t){r1(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)r1(n[i],t)},GeometryCollection:function(e,t){for(var n=e.geometries,i=-1,r=n.length;++i<r;)Wa(n[i],t)}};function xl(e,t,n){var i=-1,r=e.length-n,o;for(t.lineStart();++i<r;)o=e[i],t.point(o[0],o[1],o[2]);t.lineEnd()}function r1(e,t){var n=-1,i=e.length;for(t.polygonStart();++n<i;)xl(e[n],t,1);t.polygonEnd()}function Mi(e,t){e&&n1.hasOwnProperty(e.type)?n1[e.type](e,t):Wa(e,t)}function yl(e){return[_n(e[1],e[0]),en(e[2])]}function yr(e){var t=e[0],n=e[1],i=Le(n);return[i*Le(t),i*ke(t),ke(n)]}function Vs(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Za(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function I0(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function js(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function wl(e){var t=Nt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Sl(e,t){function n(i,r){return i=e(i,r),t(i[0],i[1])}return e.invert&&t.invert&&(n.invert=function(i,r){return i=t.invert(i,r),i&&e.invert(i[0],i[1])}),n}function Il(e,t){return Ve(e)>Te&&(e-=Math.round(e/Zt)*Zt),[e,t]}Il.invert=Il;function P5(e,t,n){return(e%=Zt)?t||n?Sl(s1(e),a1(t,n)):s1(e):t||n?a1(t,n):Il}function o1(e){return function(t,n){return t+=e,Ve(t)>Te&&(t-=Math.round(t/Zt)*Zt),[t,n]}}function s1(e){var t=o1(e);return t.invert=o1(-e),t}function a1(e,t){var n=Le(e),i=ke(e),r=Le(t),o=ke(t);function s(a,l){var c=Le(l),u=Le(a)*c,d=ke(a)*c,f=ke(l),h=f*n+u*i;return[_n(d*r-h*o,u*n-f*i),en(h*r+d*o)]}return s.invert=function(a,l){var c=Le(l),u=Le(a)*c,d=ke(a)*c,f=ke(l),h=f*r-d*o;return[_n(d*r+f*o,u*n+h*i),en(h*n-u*i)]},s}function z_(e){e=P5(e[0]*Qe,e[1]*Qe,e.length>2?e[2]*Qe:0);function t(n){return n=e(n[0]*Qe,n[1]*Qe),n[0]*=Ft,n[1]*=Ft,n}return t.invert=function(n){return n=e.invert(n[0]*Qe,n[1]*Qe),n[0]*=Ft,n[1]*=Ft,n},t}function W_(e,t,n,i,r,o){if(n){var s=Le(t),a=ke(t),l=i*n;r==null?(r=t+i*Zt,o=t-l/2):(r=l1(s,r),o=l1(s,o),(i>0?r<o:r>o)&&(r+=i*Zt));for(var c,u=r;i>0?u>o:u<o;u-=l)c=yl([s,-a*Le(u),-a*ke(u)]),e.point(c[0],c[1])}}function l1(e,t){t=yr(t),t[0]-=e,wl(t);var n=k5(-t[1]);return((-t[2]<0?-n:n)+Zt-Se)%Zt}function L5(){var e=[],t;return{point:function(n,i,r){t.push([n,i,r])},lineStart:function(){e.push(t=[])},lineEnd:mt,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function ca(e,t){return Ve(e[0]-t[0])<Se&&Ve(e[1]-t[1])<Se}function Bs(e,t,n,i){this.x=e,this.z=t,this.o=n,this.e=i,this.v=!1,this.n=this.p=null}function F5(e,t,n,i,r){var o=[],s=[],a,l;if(e.forEach(function(g){if(!((p=g.length-1)<=0)){var p,m=g[0],C=g[p],y;if(ca(m,C)){if(!m[2]&&!C[2]){for(r.lineStart(),a=0;a<p;++a)r.point((m=g[a])[0],m[1]);r.lineEnd();return}C[0]+=2*Se}o.push(y=new Bs(m,g,null,!0)),s.push(y.o=new Bs(m,null,y,!1)),o.push(y=new Bs(C,g,null,!1)),s.push(y.o=new Bs(C,null,y,!0))}}),!!o.length){for(s.sort(t),c1(o),c1(s),a=0,l=s.length;a<l;++a)s[a].e=n=!n;for(var c=o[0],u,d;;){for(var f=c,h=!0;f.v;)if((f=f.n)===c)return;u=f.z,r.lineStart();do{if(f.v=f.o.v=!0,f.e){if(h)for(a=0,l=u.length;a<l;++a)r.point((d=u[a])[0],d[1]);else i(f.x,f.n.x,1,r);f=f.n}else{if(h)for(u=f.p.z,a=u.length-1;a>=0;--a)r.point((d=u[a])[0],d[1]);else i(f.x,f.p.x,-1,r);f=f.p}f=f.o,u=f.z,h=!h}while(!f.v);r.lineEnd()}}}function c1(e){if(t=e.length){for(var t,n=0,i=e[0],r;++n<t;)i.n=r=e[n],r.p=i,i=r;i.n=r=e[0],r.p=i}}function M0(e){return Ve(e[0])<=Te?e[0]:qt(e[0])*((Ve(e[0])+Te)%Zt-Te)}function O5(e,t){var n=M0(t),i=t[1],r=ke(i),o=[ke(n),-Le(n),0],s=0,a=0,l=new di;r===1?i=lt+Se:r===-1&&(i=-lt-Se);for(var c=0,u=e.length;c<u;++c)if(f=(d=e[c]).length)for(var d,f,h=d[f-1],g=M0(h),p=h[1]/2+t1,m=ke(p),C=Le(p),y=0;y<f;++y,g=I,m=R,C=E,h=x){var x=d[y],I=M0(x),w=x[1]/2+t1,R=ke(w),E=Le(w),S=I-g,M=S>=0?1:-1,_=M*S,P=_>Te,N=m*R;if(l.add(_n(N*M*ke(_),C*E+N*Le(_))),s+=P?S+M*Zt:S,P^g>=n^I>=n){var B=Za(yr(h),yr(x));wl(B);var T=Za(o,B);wl(T);var k=(P^S>=0?-1:1)*en(T[2]);(i>k||i===k&&(B[0]||B[1]))&&(a+=P^S>=0?1:-1)}}return(s<-Se||s<Se&&l<-zc)^a&1}function N5(e,t,n,i){return function(r){var o=t(r),s=L5(),a=t(s),l=!1,c,u,d,f={point:h,lineStart:p,lineEnd:m,polygonStart:function(){f.point=C,f.lineStart=y,f.lineEnd=x,u=[],c=[]},polygonEnd:function(){f.point=h,f.lineStart=p,f.lineEnd=m,u=E5(u);var I=O5(c,i);u.length?(l||(r.polygonStart(),l=!0),F5(u,X_,I,n,r)):I&&(l||(r.polygonStart(),l=!0),r.lineStart(),n(null,null,1,r),r.lineEnd()),l&&(r.polygonEnd(),l=!1),u=c=null},sphere:function(){r.polygonStart(),r.lineStart(),n(null,null,1,r),r.lineEnd(),r.polygonEnd()}};function h(I,w){e(I,w)&&r.point(I,w)}function g(I,w){o.point(I,w)}function p(){f.point=g,o.lineStart()}function m(){f.point=h,o.lineEnd()}function C(I,w){d.push([I,w]),a.point(I,w)}function y(){a.lineStart(),d=[]}function x(){C(d[0][0],d[0][1]),a.lineEnd();var I=a.clean(),w=s.result(),R,E=w.length,S,M,_;if(d.pop(),c.push(d),d=null,!!E){if(I&1){if(M=w[0],(S=M.length-1)>0){for(l||(r.polygonStart(),l=!0),r.lineStart(),R=0;R<S;++R)r.point((_=M[R])[0],_[1]);r.lineEnd()}return}E>1&&I&2&&w.push(w.pop().concat(w.shift())),u.push(w.filter(Z_))}}return f}}function Z_(e){return e.length>1}function X_(e,t){return((e=e.x)[0]<0?e[1]-lt-Se:lt-e[1])-((t=t.x)[0]<0?t[1]-lt-Se:lt-t[1])}const u1=N5(function(){return!0},Y_,U_,[-Te,-lt]);function Y_(e){var t=NaN,n=NaN,i=NaN,r;return{lineStart:function(){e.lineStart(),r=1},point:function(o,s){var a=o>0?Te:-Te,l=Ve(o-t);Ve(l-Te)<Se?(e.point(t,n=(n+s)/2>0?lt:-lt),e.point(i,n),e.lineEnd(),e.lineStart(),e.point(a,n),e.point(o,n),r=0):i!==a&&l>=Te&&(Ve(t-i)<Se&&(t-=i*Se),Ve(o-a)<Se&&(o-=a*Se),n=J_(t,n,o,s),e.point(i,n),e.lineEnd(),e.lineStart(),e.point(a,n),r=0),e.point(t=o,n=s),i=a},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-r}}}function J_(e,t,n,i){var r,o,s=ke(e-n);return Ve(s)>Se?Pr((ke(t)*(o=Le(i))*ke(n)-ke(i)*(r=Le(t))*ke(e))/(r*o*s)):(t+i)/2}function U_(e,t,n,i){var r;if(e==null)r=n*lt,i.point(-Te,r),i.point(0,r),i.point(Te,r),i.point(Te,0),i.point(Te,-r),i.point(0,-r),i.point(-Te,-r),i.point(-Te,0),i.point(-Te,r);else if(Ve(e[0]-t[0])>Se){var o=e[0]<t[0]?Te:-Te;r=n*o/2,i.point(-o,r),i.point(0,r),i.point(o,r)}else i.point(t[0],t[1])}function Q_(e){var t=Le(e),n=2*Qe,i=t>0,r=Ve(t)>Se;function o(u,d,f,h){W_(h,e,n,f,u,d)}function s(u,d){return Le(u)*Le(d)>t}function a(u){var d,f,h,g,p;return{lineStart:function(){g=h=!1,p=1},point:function(m,C){var y=[m,C],x,I=s(m,C),w=i?I?0:c(m,C):I?c(m+(m<0?Te:-Te),C):0;if(!d&&(g=h=I)&&u.lineStart(),I!==h&&(x=l(d,y),(!x||ca(d,x)||ca(y,x))&&(y[2]=1)),I!==h)p=0,I?(u.lineStart(),x=l(y,d),u.point(x[0],x[1])):(x=l(d,y),u.point(x[0],x[1],2),u.lineEnd()),d=x;else if(r&&d&&i^I){var R;!(w&f)&&(R=l(y,d,!0))&&(p=0,i?(u.lineStart(),u.point(R[0][0],R[0][1]),u.point(R[1][0],R[1][1]),u.lineEnd()):(u.point(R[1][0],R[1][1]),u.lineEnd(),u.lineStart(),u.point(R[0][0],R[0][1],3)))}I&&(!d||!ca(d,y))&&u.point(y[0],y[1]),d=y,h=I,f=w},lineEnd:function(){h&&u.lineEnd(),d=null},clean:function(){return p|(g&&h)<<1}}}function l(u,d,f){var h=yr(u),g=yr(d),p=[1,0,0],m=Za(h,g),C=Vs(m,m),y=m[0],x=C-y*y;if(!x)return!f&&u;var I=t*C/x,w=-t*y/x,R=Za(p,m),E=js(p,I),S=js(m,w);I0(E,S);var M=R,_=Vs(E,M),P=Vs(M,M),N=_*_-P*(Vs(E,E)-1);if(!(N<0)){var B=Nt(N),T=js(M,(-_-B)/P);if(I0(T,E),T=yl(T),!f)return T;var k=u[0],F=d[0],O=u[1],A=d[1],L;F<k&&(L=k,k=F,F=L);var j=F-k,G=Ve(j-Te)<Se,H=G||j<Se;if(!G&&A<O&&(L=O,O=A,A=L),H?G?O+A>0^T[1]<(Ve(T[0]-k)<Se?O:A):O<=T[1]&&T[1]<=A:j>Te^(k<=T[0]&&T[0]<=F)){var $=js(M,(-_+B)/P);return I0($,E),[T,yl($)]}}}function c(u,d){var f=i?e:Te-e,h=0;return u<-f?h|=1:u>f&&(h|=2),d<-f?h|=4:d>f&&(h|=8),h}return N5(s,a,o,i?[0,-e]:[-Te,e-Te])}function q_(e,t,n,i,r,o){var s=e[0],a=e[1],l=t[0],c=t[1],u=0,d=1,f=l-s,h=c-a,g;if(g=n-s,!(!f&&g>0)){if(g/=f,f<0){if(g<u)return;g<d&&(d=g)}else if(f>0){if(g>d)return;g>u&&(u=g)}if(g=r-s,!(!f&&g<0)){if(g/=f,f<0){if(g>d)return;g>u&&(u=g)}else if(f>0){if(g<u)return;g<d&&(d=g)}if(g=i-a,!(!h&&g>0)){if(g/=h,h<0){if(g<u)return;g<d&&(d=g)}else if(h>0){if(g>d)return;g>u&&(u=g)}if(g=o-a,!(!h&&g<0)){if(g/=h,h<0){if(g>d)return;g>u&&(u=g)}else if(h>0){if(g<u)return;g<d&&(d=g)}return u>0&&(e[0]=s+u*f,e[1]=a+u*h),d<1&&(t[0]=s+d*f,t[1]=a+d*h),!0}}}}}var Kr=1e9,$s=-Kr;function K_(e,t,n,i){function r(c,u){return e<=c&&c<=n&&t<=u&&u<=i}function o(c,u,d,f){var h=0,g=0;if(c==null||(h=s(c,d))!==(g=s(u,d))||l(c,u)<0^d>0)do f.point(h===0||h===3?e:n,h>1?i:t);while((h=(h+d+4)%4)!==g);else f.point(u[0],u[1])}function s(c,u){return Ve(c[0]-e)<Se?u>0?0:3:Ve(c[0]-n)<Se?u>0?2:1:Ve(c[1]-t)<Se?u>0?1:0:u>0?3:2}function a(c,u){return l(c.x,u.x)}function l(c,u){var d=s(c,1),f=s(u,1);return d!==f?d-f:d===0?u[1]-c[1]:d===1?c[0]-u[0]:d===2?c[1]-u[1]:u[0]-c[0]}return function(c){var u=c,d=L5(),f,h,g,p,m,C,y,x,I,w,R,E={point:S,lineStart:N,lineEnd:B,polygonStart:_,polygonEnd:P};function S(k,F){r(k,F)&&u.point(k,F)}function M(){for(var k=0,F=0,O=h.length;F<O;++F)for(var A=h[F],L=1,j=A.length,G=A[0],H,$,J=G[0],le=G[1];L<j;++L)H=J,$=le,G=A[L],J=G[0],le=G[1],$<=i?le>i&&(J-H)*(i-$)>(le-$)*(e-H)&&++k:le<=i&&(J-H)*(i-$)<(le-$)*(e-H)&&--k;return k}function _(){u=d,f=[],h=[],R=!0}function P(){var k=M(),F=R&&k,O=(f=E5(f)).length;(F||O)&&(c.polygonStart(),F&&(c.lineStart(),o(null,null,1,c),c.lineEnd()),O&&F5(f,a,k,o,c),c.polygonEnd()),u=c,f=h=g=null}function N(){E.point=T,h&&h.push(g=[]),w=!0,I=!1,y=x=NaN}function B(){f&&(T(p,m),C&&I&&d.rejoin(),f.push(d.result())),E.point=S,I&&u.lineEnd()}function T(k,F){var O=r(k,F);if(h&&g.push([k,F]),w)p=k,m=F,C=O,w=!1,O&&(u.lineStart(),u.point(k,F));else if(O&&I)u.point(k,F);else{var A=[y=Math.max($s,Math.min(Kr,y)),x=Math.max($s,Math.min(Kr,x))],L=[k=Math.max($s,Math.min(Kr,k)),F=Math.max($s,Math.min(Kr,F))];q_(A,L,e,t,n,i)?(I||(u.lineStart(),u.point(A[0],A[1])),u.point(L[0],L[1]),O||u.lineEnd(),R=!1):O&&(u.lineStart(),u.point(k,F),R=!1)}y=k,x=F,I=O}return E}}var Ml,_l,ua,da,wr={sphere:mt,point:mt,lineStart:eA,lineEnd:mt,polygonStart:mt,polygonEnd:mt};function eA(){wr.point=nA,wr.lineEnd=tA}function tA(){wr.point=wr.lineEnd=mt}function nA(e,t){e*=Qe,t*=Qe,_l=e,ua=ke(t),da=Le(t),wr.point=iA}function iA(e,t){e*=Qe,t*=Qe;var n=ke(t),i=Le(t),r=Ve(e-_l),o=Le(r),s=ke(r),a=i*s,l=da*n-ua*i*o,c=ua*n+da*i*o;Ml.add(_n(Nt(a*a+l*l),c)),_l=e,ua=n,da=i}function rA(e){return Ml=new di,Mi(e,wr),+Ml}var Al=[null,null],oA={type:"LineString",coordinates:Al};function El(e,t){return Al[0]=e,Al[1]=t,rA(oA)}var d1={Feature:function(e,t){return Xa(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,i=-1,r=n.length;++i<r;)if(Xa(n[i].geometry,t))return!0;return!1}},f1={Sphere:function(){return!0},Point:function(e,t){return h1(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)if(h1(n[i],t))return!0;return!1},LineString:function(e,t){return g1(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)if(g1(n[i],t))return!0;return!1},Polygon:function(e,t){return p1(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)if(p1(n[i],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,i=-1,r=n.length;++i<r;)if(Xa(n[i],t))return!0;return!1}};function Xa(e,t){return e&&f1.hasOwnProperty(e.type)?f1[e.type](e,t):!1}function h1(e,t){return El(e,t)===0}function g1(e,t){for(var n,i,r,o=0,s=e.length;o<s;o++){if(i=El(e[o],t),i===0||o>0&&(r=El(e[o],e[o-1]),r>0&&n<=r&&i<=r&&(n+i-r)*(1-Math.pow((n-i)/r,2))<zc*r))return!0;n=i}return!1}function p1(e,t){return!!O5(e.map(sA),T5(t))}function sA(e){return e=e.map(T5),e.pop(),e}function T5(e){return[e[0]*Qe,e[1]*Qe]}function aA(e,t){return(e&&d1.hasOwnProperty(e.type)?d1[e.type]:Xa)(e,t)}function m1(e,t,n){var i=rr(e,t-Se,n).concat(t);return function(r){return i.map(function(o){return[r,o]})}}function b1(e,t,n){var i=rr(e,t-Se,n).concat(t);return function(r){return i.map(function(o){return[o,r]})}}function D5(){var e,t,n,i,r,o,s,a,l=10,c=l,u=90,d=360,f,h,g,p,m=2.5;function C(){return{type:"MultiLineString",coordinates:y()}}function y(){return rr(Ds(i/u)*u,n,u).map(g).concat(rr(Ds(a/d)*d,s,d).map(p)).concat(rr(Ds(t/l)*l,e,l).filter(function(x){return Ve(x%u)>Se}).map(f)).concat(rr(Ds(o/c)*c,r,c).filter(function(x){return Ve(x%d)>Se}).map(h))}return C.lines=function(){return y().map(function(x){return{type:"LineString",coordinates:x}})},C.outline=function(){return{type:"Polygon",coordinates:[g(i).concat(p(s).slice(1),g(n).reverse().slice(1),p(a).reverse().slice(1))]}},C.extent=function(x){return arguments.length?C.extentMajor(x).extentMinor(x):C.extentMinor()},C.extentMajor=function(x){return arguments.length?(i=+x[0][0],n=+x[1][0],a=+x[0][1],s=+x[1][1],i>n&&(x=i,i=n,n=x),a>s&&(x=a,a=s,s=x),C.precision(m)):[[i,a],[n,s]]},C.extentMinor=function(x){return arguments.length?(t=+x[0][0],e=+x[1][0],o=+x[0][1],r=+x[1][1],t>e&&(x=t,t=e,e=x),o>r&&(x=o,o=r,r=x),C.precision(m)):[[t,o],[e,r]]},C.step=function(x){return arguments.length?C.stepMajor(x).stepMinor(x):C.stepMinor()},C.stepMajor=function(x){return arguments.length?(u=+x[0],d=+x[1],C):[u,d]},C.stepMinor=function(x){return arguments.length?(l=+x[0],c=+x[1],C):[l,c]},C.precision=function(x){return arguments.length?(m=+x,f=m1(o,r,90),h=b1(t,e,m),g=m1(a,s,90),p=b1(i,n,m),C):m},C.extentMajor([[-180,-90+Se],[180,90-Se]]).extentMinor([[-180,-80-Se],[180,80+Se]])}function lA(){return D5()()}const Rl=e=>e;var _0=new di,kl=new di,V5,j5,Pl,Ll,Tn={point:mt,lineStart:mt,lineEnd:mt,polygonStart:function(){Tn.lineStart=cA,Tn.lineEnd=dA},polygonEnd:function(){Tn.lineStart=Tn.lineEnd=Tn.point=mt,_0.add(Ve(kl)),kl=new di},result:function(){var e=_0/2;return _0=new di,e}};function cA(){Tn.point=uA}function uA(e,t){Tn.point=B5,V5=Pl=e,j5=Ll=t}function B5(e,t){kl.add(Ll*e-Pl*t),Pl=e,Ll=t}function dA(){B5(V5,j5)}var Sr=1/0,Ya=Sr,Vo=-Sr,Ja=Vo,Ua={point:fA,lineStart:mt,lineEnd:mt,polygonStart:mt,polygonEnd:mt,result:function(){var e=[[Sr,Ya],[Vo,Ja]];return Vo=Ja=-(Ya=Sr=1/0),e}};function fA(e,t){e<Sr&&(Sr=e),e>Vo&&(Vo=e),t<Ya&&(Ya=t),t>Ja&&(Ja=t)}var Fl=0,Ol=0,eo=0,Qa=0,qa=0,or=0,Nl=0,Tl=0,to=0,$5,H5,bn,Cn,Qt={point:Zi,lineStart:C1,lineEnd:v1,polygonStart:function(){Qt.lineStart=pA,Qt.lineEnd=mA},polygonEnd:function(){Qt.point=Zi,Qt.lineStart=C1,Qt.lineEnd=v1},result:function(){var e=to?[Nl/to,Tl/to]:or?[Qa/or,qa/or]:eo?[Fl/eo,Ol/eo]:[NaN,NaN];return Fl=Ol=eo=Qa=qa=or=Nl=Tl=to=0,e}};function Zi(e,t){Fl+=e,Ol+=t,++eo}function C1(){Qt.point=hA}function hA(e,t){Qt.point=gA,Zi(bn=e,Cn=t)}function gA(e,t){var n=e-bn,i=t-Cn,r=Nt(n*n+i*i);Qa+=r*(bn+e)/2,qa+=r*(Cn+t)/2,or+=r,Zi(bn=e,Cn=t)}function v1(){Qt.point=Zi}function pA(){Qt.point=bA}function mA(){G5($5,H5)}function bA(e,t){Qt.point=G5,Zi($5=bn=e,H5=Cn=t)}function G5(e,t){var n=e-bn,i=t-Cn,r=Nt(n*n+i*i);Qa+=r*(bn+e)/2,qa+=r*(Cn+t)/2,or+=r,r=Cn*e-bn*t,Nl+=r*(bn+e),Tl+=r*(Cn+t),to+=r*3,Zi(bn=e,Cn=t)}function z5(e){this._context=e}z5.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:{this._context.moveTo(e,t),this._point=1;break}case 1:{this._context.lineTo(e,t);break}default:{this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,Zt);break}}},result:mt};var Dl=new di,A0,W5,Z5,no,io,jo={point:mt,lineStart:function(){jo.point=CA},lineEnd:function(){A0&&X5(W5,Z5),jo.point=mt},polygonStart:function(){A0=!0},polygonEnd:function(){A0=null},result:function(){var e=+Dl;return Dl=new di,e}};function CA(e,t){jo.point=X5,W5=no=e,Z5=io=t}function X5(e,t){no-=e,io-=t,Dl.add(Nt(no*no+io*io)),no=e,io=t}let x1,Ka,y1,w1;class S1{constructor(t){this._append=t==null?Y5:vA(t),this._radius=4.5,this._=""}pointRadius(t){return this._radius=+t,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+="Z"),this._point=NaN}point(t,n){switch(this._point){case 0:{this._append`M${t},${n}`,this._point=1;break}case 1:{this._append`L${t},${n}`;break}default:{if(this._append`M${t},${n}`,this._radius!==y1||this._append!==Ka){const i=this._radius,r=this._;this._="",this._append`m0,${i}a${i},${i} 0 1,1 0,${-2*i}a${i},${i} 0 1,1 0,${2*i}z`,y1=i,Ka=this._append,w1=this._,this._=r}this._+=w1;break}}}result(){const t=this._;return this._="",t.length?t:null}}function Y5(e){let t=1;this._+=e[0];for(const n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function vA(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return Y5;if(t!==x1){const n=10**t;x1=t,Ka=function(r){let o=1;this._+=r[0];for(const s=r.length;o<s;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}return Ka}function I1(e,t){let n=3,i=4.5,r,o;function s(a){return a&&(typeof i=="function"&&o.pointRadius(+i.apply(this,arguments)),Mi(a,r(o))),o.result()}return s.area=function(a){return Mi(a,r(Tn)),Tn.result()},s.measure=function(a){return Mi(a,r(jo)),jo.result()},s.bounds=function(a){return Mi(a,r(Ua)),Ua.result()},s.centroid=function(a){return Mi(a,r(Qt)),Qt.result()},s.projection=function(a){return arguments.length?(r=a==null?(e=null,Rl):(e=a).stream,s):e},s.context=function(a){return arguments.length?(o=a==null?(t=null,new S1(n)):new z5(t=a),typeof i!="function"&&o.pointRadius(i),s):t},s.pointRadius=function(a){return arguments.length?(i=typeof a=="function"?a:(o.pointRadius(+a),+a),s):i},s.digits=function(a){if(!arguments.length)return n;if(a==null)n=null;else{const l=Math.floor(a);if(!(l>=0))throw new RangeError(`invalid digits: ${a}`);n=l}return t===null&&(o=new S1(n)),s},s.projection(e).digits(n).context(t)}function Zc(e){return function(t){var n=new Vl;for(var i in e)n[i]=e[i];return n.stream=t,n}}function Vl(){}Vl.prototype={constructor:Vl,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Xc(e,t,n){var i=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),i!=null&&e.clipExtent(null),Mi(n,e.stream(Ua)),t(Ua.result()),i!=null&&e.clipExtent(i),e}function Yc(e,t,n){return Xc(e,function(i){var r=t[1][0]-t[0][0],o=t[1][1]-t[0][1],s=Math.min(r/(i[1][0]-i[0][0]),o/(i[1][1]-i[0][1])),a=+t[0][0]+(r-s*(i[1][0]+i[0][0]))/2,l=+t[0][1]+(o-s*(i[1][1]+i[0][1]))/2;e.scale(150*s).translate([a,l])},n)}function J5(e,t,n){return Yc(e,[[0,0],t],n)}function U5(e,t,n){return Xc(e,function(i){var r=+t,o=r/(i[1][0]-i[0][0]),s=(r-o*(i[1][0]+i[0][0]))/2,a=-o*i[0][1];e.scale(150*o).translate([s,a])},n)}function Q5(e,t,n){return Xc(e,function(i){var r=+t,o=r/(i[1][1]-i[0][1]),s=-o*i[0][0],a=(r-o*(i[1][1]+i[0][1]))/2;e.scale(150*o).translate([s,a])},n)}var M1=16,xA=Le(30*Qe);function _1(e,t){return+t?wA(e,t):yA(e)}function yA(e){return Zc({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function wA(e,t){function n(i,r,o,s,a,l,c,u,d,f,h,g,p,m){var C=c-i,y=u-r,x=C*C+y*y;if(x>4*t&&p--){var I=s+f,w=a+h,R=l+g,E=Nt(I*I+w*w+R*R),S=en(R/=E),M=Ve(Ve(R)-1)<Se||Ve(o-d)<Se?(o+d)/2:_n(w,I),_=e(M,S),P=_[0],N=_[1],B=P-i,T=N-r,k=y*B-C*T;(k*k/x>t||Ve((C*B+y*T)/x-.5)>.3||s*f+a*h+l*g<xA)&&(n(i,r,o,s,a,l,P,N,M,I/=E,w/=E,R,p,m),m.point(P,N),n(P,N,M,I,w,R,c,u,d,f,h,g,p,m))}}return function(i){var r,o,s,a,l,c,u,d,f,h,g,p,m={point:C,lineStart:y,lineEnd:I,polygonStart:function(){i.polygonStart(),m.lineStart=w},polygonEnd:function(){i.polygonEnd(),m.lineStart=y}};function C(S,M){S=e(S,M),i.point(S[0],S[1])}function y(){d=NaN,m.point=x,i.lineStart()}function x(S,M){var _=yr([S,M]),P=e(S,M);n(d,f,u,h,g,p,d=P[0],f=P[1],u=S,h=_[0],g=_[1],p=_[2],M1,i),i.point(d,f)}function I(){m.point=C,i.lineEnd()}function w(){y(),m.point=R,m.lineEnd=E}function R(S,M){x(r=S,M),o=d,s=f,a=h,l=g,c=p,m.point=x}function E(){n(d,f,u,h,g,p,o,s,r,a,l,c,M1,i),m.lineEnd=I,I()}return m}}var SA=Zc({point:function(e,t){this.stream.point(e*Qe,t*Qe)}});function IA(e){return Zc({point:function(t,n){var i=e(t,n);return this.stream.point(i[0],i[1])}})}function MA(e,t,n,i,r){function o(s,a){return s*=i,a*=r,[t+e*s,n-e*a]}return o.invert=function(s,a){return[(s-t)/e*i,(n-a)/e*r]},o}function A1(e,t,n,i,r,o){if(!o)return MA(e,t,n,i,r);var s=Le(o),a=ke(o),l=s*e,c=a*e,u=s/e,d=a/e,f=(a*n-s*t)/e,h=(a*t+s*n)/e;function g(p,m){return p*=i,m*=r,[l*p-c*m+t,n-c*p-l*m]}return g.invert=function(p,m){return[i*(u*p-d*m+f),r*(h-d*p-u*m)]},g}function Qn(e){return q5(function(){return e})()}function q5(e){var t,n=150,i=480,r=250,o=0,s=0,a=0,l=0,c=0,u,d=0,f=1,h=1,g=null,p=u1,m=null,C,y,x,I=Rl,w=.5,R,E,S,M,_;function P(k){return S(k[0]*Qe,k[1]*Qe)}function N(k){return k=S.invert(k[0],k[1]),k&&[k[0]*Ft,k[1]*Ft]}P.stream=function(k){return M&&_===k?M:M=SA(IA(u)(p(R(I(_=k)))))},P.preclip=function(k){return arguments.length?(p=k,g=void 0,T()):p},P.postclip=function(k){return arguments.length?(I=k,m=C=y=x=null,T()):I},P.clipAngle=function(k){return arguments.length?(p=+k?Q_(g=k*Qe):(g=null,u1),T()):g*Ft},P.clipExtent=function(k){return arguments.length?(I=k==null?(m=C=y=x=null,Rl):K_(m=+k[0][0],C=+k[0][1],y=+k[1][0],x=+k[1][1]),T()):m==null?null:[[m,C],[y,x]]},P.scale=function(k){return arguments.length?(n=+k,B()):n},P.translate=function(k){return arguments.length?(i=+k[0],r=+k[1],B()):[i,r]},P.center=function(k){return arguments.length?(o=k[0]%360*Qe,s=k[1]%360*Qe,B()):[o*Ft,s*Ft]},P.rotate=function(k){return arguments.length?(a=k[0]%360*Qe,l=k[1]%360*Qe,c=k.length>2?k[2]%360*Qe:0,B()):[a*Ft,l*Ft,c*Ft]},P.angle=function(k){return arguments.length?(d=k%360*Qe,B()):d*Ft},P.reflectX=function(k){return arguments.length?(f=k?-1:1,B()):f<0},P.reflectY=function(k){return arguments.length?(h=k?-1:1,B()):h<0},P.precision=function(k){return arguments.length?(R=_1(E,w=k*k),T()):Nt(w)},P.fitExtent=function(k,F){return Yc(P,k,F)},P.fitSize=function(k,F){return J5(P,k,F)},P.fitWidth=function(k,F){return U5(P,k,F)},P.fitHeight=function(k,F){return Q5(P,k,F)};function B(){var k=A1(n,0,0,f,h,d).apply(null,t(o,s)),F=A1(n,i-k[0],r-k[1],f,h,d);return u=P5(a,l,c),E=Sl(t,F),S=Sl(u,E),R=_1(E,w),T()}function T(){return M=_=null,P}return function(){return t=e.apply(this,arguments),P.invert=t.invert&&N,B()}}function Jc(e){var t=0,n=Te/3,i=q5(e),r=i(t,n);return r.parallels=function(o){return arguments.length?i(t=o[0]*Qe,n=o[1]*Qe):[t*Ft,n*Ft]},r}function _A(e){var t=Le(e);function n(i,r){return[i*t,ke(r)/t]}return n.invert=function(i,r){return[i/t,en(r*t)]},n}function AA(e,t){var n=ke(e),i=(n+ke(t))/2;if(Ve(i)<Se)return _A(e);var r=1+n*(2*i-n),o=Nt(r)/i;function s(a,l){var c=Nt(r-2*i*ke(l))/i;return[c*ke(a*=i),o-c*Le(a)]}return s.invert=function(a,l){var c=o-l,u=_n(a,Ve(c))*qt(c);return c*i<0&&(u-=Te*qt(a)*qt(c)),[u/i,en((r-(a*a+c*c)*i*i)/(2*i))]},s}function e2(){return Jc(AA).scale(155.424).center([0,33.6442])}function K5(){return e2().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function EA(e){var t=e.length;return{point:function(n,i){for(var r=-1;++r<t;)e[r].point(n,i)},sphere:function(){for(var n=-1;++n<t;)e[n].sphere()},lineStart:function(){for(var n=-1;++n<t;)e[n].lineStart()},lineEnd:function(){for(var n=-1;++n<t;)e[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<t;)e[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<t;)e[n].polygonEnd()}}}function RA(){var e,t,n=K5(),i,r=e2().rotate([154,0]).center([-2,58.5]).parallels([55,65]),o,s=e2().rotate([157,0]).center([-3,19.9]).parallels([8,18]),a,l,c={point:function(f,h){l=[f,h]}};function u(f){var h=f[0],g=f[1];return l=null,i.point(h,g),l||(o.point(h,g),l)||(a.point(h,g),l)}u.invert=function(f){var h=n.scale(),g=n.translate(),p=(f[0]-g[0])/h,m=(f[1]-g[1])/h;return(m>=.12&&m<.234&&p>=-.425&&p<-.214?r:m>=.166&&m<.234&&p>=-.214&&p<-.115?s:n).invert(f)},u.stream=function(f){return e&&t===f?e:e=EA([n.stream(t=f),r.stream(f),s.stream(f)])},u.precision=function(f){return arguments.length?(n.precision(f),r.precision(f),s.precision(f),d()):n.precision()},u.scale=function(f){return arguments.length?(n.scale(f),r.scale(f*.35),s.scale(f),u.translate(n.translate())):n.scale()},u.translate=function(f){if(!arguments.length)return n.translate();var h=n.scale(),g=+f[0],p=+f[1];return i=n.translate(f).clipExtent([[g-.455*h,p-.238*h],[g+.455*h,p+.238*h]]).stream(c),o=r.translate([g-.307*h,p+.201*h]).clipExtent([[g-.425*h+Se,p+.12*h+Se],[g-.214*h-Se,p+.234*h-Se]]).stream(c),a=s.translate([g-.205*h,p+.212*h]).clipExtent([[g-.214*h+Se,p+.166*h+Se],[g-.115*h-Se,p+.234*h-Se]]).stream(c),d()},u.fitExtent=function(f,h){return Yc(u,f,h)},u.fitSize=function(f,h){return J5(u,f,h)},u.fitWidth=function(f,h){return U5(u,f,h)},u.fitHeight=function(f,h){return Q5(u,f,h)};function d(){return e=t=null,u}return u.scale(1070)}function e6(e){return function(t,n){var i=Le(t),r=Le(n),o=e(i*r);return o===1/0?[2,0]:[o*r*ke(t),o*ke(n)]}}function Ko(e){return function(t,n){var i=Nt(t*t+n*n),r=e(i),o=ke(r),s=Le(r);return[_n(t*o,i*s),en(i&&n*o/i)]}}var t6=e6(function(e){return Nt(2/(1+e))});t6.invert=Ko(function(e){return 2*en(e/2)});function kA(){return Qn(t6).scale(124.75).clipAngle(180-.001)}var n6=e6(function(e){return(e=k5(e))&&e/ke(e)});n6.invert=Ko(function(e){return e});function PA(){return Qn(n6).scale(79.4188).clipAngle(180-.001)}function _2(e,t){return[e,za(Wc((lt+t)/2))]}_2.invert=function(e,t){return[e,2*Pr(R5(t))-lt]};function LA(){return i6(_2).scale(961/Zt)}function i6(e){var t=Qn(e),n=t.center,i=t.scale,r=t.translate,o=t.clipExtent,s=null,a,l,c;t.scale=function(d){return arguments.length?(i(d),u()):i()},t.translate=function(d){return arguments.length?(r(d),u()):r()},t.center=function(d){return arguments.length?(n(d),u()):n()},t.clipExtent=function(d){return arguments.length?(d==null?s=a=l=c=null:(s=+d[0][0],a=+d[0][1],l=+d[1][0],c=+d[1][1]),u()):s==null?null:[[s,a],[l,c]]};function u(){var d=Te*i(),f=t(z_(t.rotate()).invert([0,0]));return o(s==null?[[f[0]-d,f[1]-d],[f[0]+d,f[1]+d]]:e===_2?[[Math.max(f[0]-d,s),a],[Math.min(f[0]+d,l),c]]:[[s,Math.max(f[1]-d,a)],[l,Math.min(f[1]+d,c)]])}return u()}function Hs(e){return Wc((lt+e)/2)}function FA(e,t){var n=Le(e),i=e===t?ke(e):za(n/Le(t))/za(Hs(t)/Hs(e)),r=n*S0(Hs(e),i)/i;if(!i)return _2;function o(s,a){r>0?a<-lt+Se&&(a=-lt+Se):a>lt-Se&&(a=lt-Se);var l=r/S0(Hs(a),i);return[l*ke(i*s),r-l*Le(i*s)]}return o.invert=function(s,a){var l=r-a,c=qt(i)*Nt(s*s+l*l),u=_n(s,Ve(l))*qt(l);return l*i<0&&(u-=Te*qt(s)*qt(l)),[u/i,2*Pr(S0(r/c,1/i))-lt]},o}function OA(){return Jc(FA).scale(109.5).parallels([30,30])}function t2(e,t){return[e,t]}t2.invert=t2;function NA(){return Qn(t2).scale(152.63)}function TA(e,t){var n=Le(e),i=e===t?ke(e):(n-Le(t))/(t-e),r=n/i+e;if(Ve(i)<Se)return t2;function o(s,a){var l=r-a,c=i*s;return[l*ke(c),r-l*Le(c)]}return o.invert=function(s,a){var l=r-a,c=_n(s,Ve(l))*qt(l);return l*i<0&&(c-=Te*qt(s)*qt(l)),[c/i,r-qt(i)*Nt(s*s+l*l)]},o}function DA(){return Jc(TA).scale(131.154).center([0,13.9389])}var mo=1.340264,bo=-.081106,Co=893e-6,vo=.003796,n2=Nt(3)/2,VA=12;function r6(e,t){var n=en(n2*ke(t)),i=n*n,r=i*i*i;return[e*Le(n)/(n2*(mo+3*bo*i+r*(7*Co+9*vo*i))),n*(mo+bo*i+r*(Co+vo*i))]}r6.invert=function(e,t){for(var n=t,i=n*n,r=i*i*i,o=0,s,a,l;o<VA&&(a=n*(mo+bo*i+r*(Co+vo*i))-t,l=mo+3*bo*i+r*(7*Co+9*vo*i),n-=s=a/l,i=n*n,r=i*i*i,!(Ve(s)<zc));++o);return[n2*e*(mo+3*bo*i+r*(7*Co+9*vo*i))/Le(n),en(ke(n)/n2)]};function jA(){return Qn(r6).scale(177.158)}function o6(e,t){var n=Le(t),i=Le(e)*n;return[n*ke(e)/i,ke(t)/i]}o6.invert=Ko(Pr);function BA(){return Qn(o6).scale(144.049).clipAngle(60)}function s6(e,t){var n=t*t,i=n*n;return[e*(.8707-.131979*n+i*(-.013791+i*(.003971*n-.001529*i))),t*(1.007226+n*(.015085+i*(-.044475+.028874*n-.005916*i)))]}s6.invert=function(e,t){var n=t,i=25,r;do{var o=n*n,s=o*o;n-=r=(n*(1.007226+o*(.015085+s*(-.044475+.028874*o-.005916*s)))-t)/(1.007226+o*(.015085*3+s*(-.044475*7+.028874*9*o-.005916*11*s)))}while(Ve(r)>Se&&--i>0);return[e/(.8707+(o=n*n)*(-.131979+o*(-.013791+o*o*o*(.003971-.001529*o)))),n]};function $A(){return Qn(s6).scale(175.295)}function a6(e,t){return[Le(t)*ke(e),ke(t)]}a6.invert=Ko(en);function HA(){return Qn(a6).scale(249.5).clipAngle(90+Se)}function l6(e,t){var n=Le(t),i=1+Le(e)*n;return[n*ke(e)/i,ke(t)/i]}l6.invert=Ko(function(e){return 2*Pr(e)});function GA(){return Qn(l6).scale(250).clipAngle(142)}function c6(e,t){return[za(Wc((lt+t)/2)),-e]}c6.invert=function(e,t){return[-t,2*Pr(R5(e))-lt]};function zA(){var e=i6(c6),t=e.center,n=e.rotate;return e.center=function(i){return arguments.length?t([-i[1],i[0]]):(i=t(),[i[1],-i[0]])},e.rotate=function(i){return arguments.length?n([i[0],i[1],i.length>2?i[2]+90:90]):(i=n(),[i[0],i[1],i[2]-90])},n([0,0,90]).scale(159.155)}function We(e){for(var t=e.length/6|0,n=new Array(t),i=0;i<t;)n[i]="#"+e.slice(i*6,++i*6);return n}function A2(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Uc(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Lr(){}var Xi=.7,Ir=1/Xi,fr="\\s*([+-]?\\d+)\\s*",Bo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Sn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",WA=/^#([0-9a-f]{3,8})$/,ZA=new RegExp(`^rgb\\(${fr},${fr},${fr}\\)$`),XA=new RegExp(`^rgb\\(${Sn},${Sn},${Sn}\\)$`),YA=new RegExp(`^rgba\\(${fr},${fr},${fr},${Bo}\\)$`),JA=new RegExp(`^rgba\\(${Sn},${Sn},${Sn},${Bo}\\)$`),UA=new RegExp(`^hsl\\(${Bo},${Sn},${Sn}\\)$`),QA=new RegExp(`^hsla\\(${Bo},${Sn},${Sn},${Bo}\\)$`),E1={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};A2(Lr,E2,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:R1,formatHex:R1,formatHex8:qA,formatHsl:KA,formatRgb:k1,toString:k1});function R1(){return this.rgb().formatHex()}function qA(){return this.rgb().formatHex8()}function KA(){return d6(this).formatHsl()}function k1(){return this.rgb().formatRgb()}function E2(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=WA.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?P1(t):n===3?new Lt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Gs(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Gs(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ZA.exec(e))?new Lt(t[1],t[2],t[3],1):(t=XA.exec(e))?new Lt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=YA.exec(e))?Gs(t[1],t[2],t[3],t[4]):(t=JA.exec(e))?Gs(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=UA.exec(e))?O1(t[1],t[2]/100,t[3]/100,1):(t=QA.exec(e))?O1(t[1],t[2]/100,t[3]/100,t[4]):E1.hasOwnProperty(e)?P1(E1[e]):e==="transparent"?new Lt(NaN,NaN,NaN,0):null}function P1(e){return new Lt(e>>16&255,e>>8&255,e&255,1)}function Gs(e,t,n,i){return i<=0&&(e=t=n=NaN),new Lt(e,t,n,i)}function u6(e){return e instanceof Lr||(e=E2(e)),e?(e=e.rgb(),new Lt(e.r,e.g,e.b,e.opacity)):new Lt}function $o(e,t,n,i){return arguments.length===1?u6(e):new Lt(e,t,n,i??1)}function Lt(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}A2(Lt,$o,Uc(Lr,{brighter(e){return e=e==null?Ir:Math.pow(Ir,e),new Lt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Xi:Math.pow(Xi,e),new Lt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Lt(Di(this.r),Di(this.g),Di(this.b),i2(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:L1,formatHex:L1,formatHex8:eE,formatRgb:F1,toString:F1}));function L1(){return`#${ki(this.r)}${ki(this.g)}${ki(this.b)}`}function eE(){return`#${ki(this.r)}${ki(this.g)}${ki(this.b)}${ki((isNaN(this.opacity)?1:this.opacity)*255)}`}function F1(){const e=i2(this.opacity);return`${e===1?"rgb(":"rgba("}${Di(this.r)}, ${Di(this.g)}, ${Di(this.b)}${e===1?")":`, ${e})`}`}function i2(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Di(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ki(e){return e=Di(e),(e<16?"0":"")+e.toString(16)}function O1(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ln(e,t,n,i)}function d6(e){if(e instanceof ln)return new ln(e.h,e.s,e.l,e.opacity);if(e instanceof Lr||(e=E2(e)),!e)return new ln;if(e instanceof ln)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,r=Math.min(t,n,i),o=Math.max(t,n,i),s=NaN,a=o-r,l=(o+r)/2;return a?(t===o?s=(n-i)/a+(n<i)*6:n===o?s=(i-t)/a+2:s=(t-n)/a+4,a/=l<.5?o+r:2-o-r,s*=60):a=l>0&&l<1?0:s,new ln(s,a,l,e.opacity)}function tE(e,t,n,i){return arguments.length===1?d6(e):new ln(e,t,n,i??1)}function ln(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}A2(ln,tE,Uc(Lr,{brighter(e){return e=e==null?Ir:Math.pow(Ir,e),new ln(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Xi:Math.pow(Xi,e),new ln(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,r=2*n-i;return new Lt(E0(e>=240?e-240:e+120,r,i),E0(e,r,i),E0(e<120?e+240:e-120,r,i),this.opacity)},clamp(){return new ln(N1(this.h),zs(this.s),zs(this.l),i2(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=i2(this.opacity);return`${e===1?"hsl(":"hsla("}${N1(this.h)}, ${zs(this.s)*100}%, ${zs(this.l)*100}%${e===1?")":`, ${e})`}`}}));function N1(e){return e=(e||0)%360,e<0?e+360:e}function zs(e){return Math.max(0,Math.min(1,e||0))}function E0(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const nE=Math.PI/180,iE=180/Math.PI;var f6=-.14861,Qc=1.78277,qc=-.29227,R2=-.90649,Ho=1.97294,T1=Ho*R2,D1=Ho*Qc,V1=Qc*qc-R2*f6;function rE(e){if(e instanceof Vi)return new Vi(e.h,e.s,e.l,e.opacity);e instanceof Lt||(e=u6(e));var t=e.r/255,n=e.g/255,i=e.b/255,r=(V1*i+T1*t-D1*n)/(V1+T1-D1),o=i-r,s=(Ho*(n-r)-qc*o)/R2,a=Math.sqrt(s*s+o*o)/(Ho*r*(1-r)),l=a?Math.atan2(s,o)*iE-120:NaN;return new Vi(l<0?l+360:l,a,r,e.opacity)}function An(e,t,n,i){return arguments.length===1?rE(e):new Vi(e,t,n,i??1)}function Vi(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}A2(Vi,An,Uc(Lr,{brighter(e){return e=e==null?Ir:Math.pow(Ir,e),new Vi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Xi:Math.pow(Xi,e),new Vi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*nE,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),i=Math.cos(e),r=Math.sin(e);return new Lt(255*(t+n*(f6*i+Qc*r)),255*(t+n*(qc*i+R2*r)),255*(t+n*(Ho*i)),this.opacity)}}));function oE(e,t,n,i,r){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*n+(1+3*e+3*o-3*s)*i+s*r)/6}function sE(e){var t=e.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),r=e[i],o=e[i+1],s=i>0?e[i-1]:2*r-o,a=i<t-1?e[i+2]:2*o-r;return oE((n-i/t)*t,s,r,o,a)}}const Kc=e=>()=>e;function h6(e,t){return function(n){return e+n*t}}function aE(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function lE(e,t){var n=t-e;return n?h6(e,n>180||n<-180?n-360*Math.round(n/360):n):Kc(isNaN(e)?t:e)}function cE(e){return(e=+e)==1?hr:function(t,n){return n-t?aE(t,n,e):Kc(isNaN(t)?n:t)}}function hr(e,t){var n=t-e;return n?h6(e,n):Kc(isNaN(e)?t:e)}const uE=function e(t){var n=cE(t);function i(r,o){var s=n((r=$o(r)).r,(o=$o(o)).r),a=n(r.g,o.g),l=n(r.b,o.b),c=hr(r.opacity,o.opacity);return function(u){return r.r=s(u),r.g=a(u),r.b=l(u),r.opacity=c(u),r+""}}return i.gamma=e,i}(1);function dE(e){return function(t){var n=t.length,i=new Array(n),r=new Array(n),o=new Array(n),s,a;for(s=0;s<n;++s)a=$o(t[s]),i[s]=a.r||0,r[s]=a.g||0,o[s]=a.b||0;return i=e(i),r=e(r),o=e(o),a.opacity=1,function(l){return a.r=i(l),a.g=r(l),a.b=o(l),a+""}}}var fE=dE(sE);function g6(e){return function t(n){n=+n;function i(r,o){var s=e((r=An(r)).h,(o=An(o)).h),a=hr(r.s,o.s),l=hr(r.l,o.l),c=hr(r.opacity,o.opacity);return function(u){return r.h=s(u),r.s=a(u),r.l=l(Math.pow(u,n)),r.opacity=c(u),r+""}}return i.gamma=t,i}(1)}g6(lE);var eu=g6(hr);const Ke=e=>fE(e[e.length-1]);var hE=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(We);const gE=Ke(hE);var pE=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(We);const mE=Ke(pE);var bE=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(We);const CE=Ke(bE);var vE=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(We);const xE=Ke(vE);var yE=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(We);const wE=Ke(yE);var SE=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(We);const IE=Ke(SE);var ME=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(We);const _E=Ke(ME);var AE=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(We);const EE=Ke(AE);var RE=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(We);const kE=Ke(RE);var PE=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(We);const LE=Ke(PE);var FE=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(We);const OE=Ke(FE);var NE=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(We);const TE=Ke(NE);var DE=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(We);const VE=Ke(DE);var jE=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(We);const BE=Ke(jE);var $E=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(We);const HE=Ke($E);var GE=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(We);const zE=Ke(GE);var WE=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(We);const ZE=Ke(WE);var XE=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(We);const YE=Ke(XE);var JE=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(We);const UE=Ke(JE);var QE=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(We);const qE=Ke(QE);var KE=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(We);const eR=Ke(KE);var tR=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(We);const nR=Ke(tR);var iR=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(We);const rR=Ke(iR);var oR=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(We);const sR=Ke(oR);var aR=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(We);const lR=Ke(aR);var cR=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(We);const uR=Ke(cR);var dR=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(We);const fR=Ke(dR);function hR(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const gR=eu(An(300,.5,0),An(-240,.5,1));var pR=eu(An(-100,.75,.35),An(80,1.5,.8)),mR=eu(An(260,.75,.35),An(80,1.5,.8)),Ws=An();function bR(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Ws.h=360*e-100,Ws.s=1.5-1.5*t,Ws.l=.8-.9*t,Ws+""}var Zs=$o(),CR=Math.PI/3,vR=Math.PI*2/3;function xR(e){var t;return e=(.5-e)*Math.PI,Zs.r=255*(t=Math.sin(e))*t,Zs.g=255*(t=Math.sin(e+CR))*t,Zs.b=255*(t=Math.sin(e+vR))*t,Zs+""}function yR(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function k2(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const wR=k2(We("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var SR=k2(We("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),IR=k2(We("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),MR=k2(We("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));const xo={geoAzimuthalEqualArea:kA,geoAzimuthalEquidistant:PA,geoGnomonic:BA,geoOrthographic:HA,geoStereographic:GA,geoEqualEarth:jA,geoAlbers:K5,geoAlbersUsa:RA,geoConicConformal:OA,geoConicEqualArea:e2,geoConicEquidistant:DA,geoEquirectangular:NA,geoMercator:LA,geoTransverseMercator:zA,geoNaturalEarth1:$A};Object.keys(xo).forEach(e=>{xo[`${e.charAt(3).toLowerCase()}${e.slice(4)}`]=xo[e]});class Qi extends pi{constructor(t){super(t),this.outlineBounds=null,this.oldChartBounds=null,this.geoPath=I1()}init(t){t.position="chartArea",super.init(t),typeof t.projection=="function"?this.projection=t.projection:this.projection=(xo[t.projection]||xo.albersUsa)(),this.geoPath.projection(this.projection),this.outlineBounds=null,this.oldChartBounds=null}computeBounds(t){const n=I1(this.projection.fitWidth(1e3,t)).bounds(t),i=Math.ceil(n[1][1]-n[0][1]),r=Math.ceil(n[1][0]-n[0][0]),o=this.projection.translate();this.outlineBounds={width:r,height:i,aspectRatio:r/i,refScale:this.projection.scale(),refX:o[0],refY:o[1]}}updateBounds(){const t=this.chart.chartArea,n=this.outlineBounds;if(!n)return!1;const i=this.options.padding,r=typeof i=="number"?i:i.top,o=typeof i=="number"?i:i.left,s=typeof i=="number"?i:i.bottom,a=typeof i=="number"?i:i.right,l=t.right-t.left-o-a,c=t.bottom-t.top-r-s,u=this.oldChartBounds;this.oldChartBounds={chartWidth:l,chartHeight:c};const d=Math.min(l/n.width,c/n.height),f=n.width*d,h=n.height*d,g=(l-f)*.5+t.left+o,p=(c-h)*.5+t.top+r,m=this.options;return this.projection.scale(n.refScale*d*m.projectionScale).translate([d*n.refX+g+m.projectionOffset[0],d*n.refY+p+m.projectionOffset[1]]),!u||u.chartWidth!==this.oldChartBounds.chartWidth||u.chartHeight!==this.oldChartBounds.chartHeight}}Qi.id="projection";Qi.defaults={projection:"albersUsa",projectionScale:1,projectionOffset:[0,0],padding:0};Qi.descriptors={_scriptable:e=>e!=="projection",_indexable:e=>e!=="projectionOffset"};const P2={position:"chartArea",property:"value",grid:{z:1,drawOnChartArea:!1},ticks:{z:1},legend:{align:"right",position:"bottom-right",length:100,width:50,margin:8,indicatorWidth:10}};function _R(e){const{indicatorWidth:t,align:n,margin:i}=e,r=(typeof i=="number"?i:i.left)+(n==="right"?t:0),o=(typeof i=="number"?i:i.top)+(n==="bottom"?t:0),s=(typeof i=="number"?i:i.right)+(n==="left"?t:0),a=(typeof i=="number"?i:i.bottom)+(n==="top"?t:0);return{left:r,top:o,right:s,bottom:a}}function AR(e,t,n,i,r){const{indicatorWidth:o,align:s,position:a}=t,l=s==="top"||s==="bottom",c=(s==="left"?r.w:n)+(l?o:0),u=(s==="top"?r.h:i)+(l?0:o),d=_R(t);if(typeof a=="string")switch(a){case"top-left":return[d.left,d.top];case"top":return[(e.right-c)/2,d.top];case"left":return[d.left,(e.bottom-u)/2];case"top-right":return[e.right-c-d.right,d.top];case"bottom-right":return[e.right-c-d.right,e.bottom-u-d.bottom];case"bottom":return[(e.right-c)/2,e.bottom-u-d.bottom];case"bottom-left":return[d.left,e.bottom-u-d.bottom];default:return[e.right-c-d.right,(e.bottom-u)/2]}return[a.x,a.y]}class sr extends Zn{constructor(){super(...arguments),this.legendSize={w:0,h:0}}init(t){t.position="chartArea",super.init(t),this.axis="r"}parse(t,n){return t&&typeof t[this.options.property]=="number"?t[this.options.property]:super.parse(t,n)}isHorizontal(){return this.options.legend.align==="top"||this.options.legend.align==="bottom"}_getNormalizedValue(t){return t==null||Number.isNaN(t)?null:(t-this._startValue)/this._valueRange}update(t,n,i){const r=Math.min(n,this.bottom==null?Number.POSITIVE_INFINITY:this.bottom),o=Math.min(t,this.right==null?Number.POSITIVE_INFINITY:this.right),s=this.options.legend,a=this.isHorizontal(),l=(h,g)=>h<1?g*h:h,c=Math.min(o,l(a?s.length:s.width,o))-(a?0:s.indicatorWidth),u=Math.min(r,l(a?s.width:s.length,r))-(a?s.indicatorWidth:0);this.legendSize={w:c,h:u},this.bottom=u,this.height=u,this.right=c,this.width=c;const d=this.options.position;this.options.position=this.options.legend.align;const f=super.update(c,u,i);return this.options.position=d,this.height=Math.min(u,this.height),this.width=Math.min(c,this.width),f}_computeLabelArea(){}draw(t){if(!this._isVisible())return;const n=AR(t,this.options.legend,this.width,this.height,this.legendSize),{ctx:i}=this;i.save(),i.translate(n[0],n[1]);const r=this.options.position;this.options.position=this.options.legend.align,super.draw({...t,bottom:this.height+10,right:this.width}),this.options.position=r;const{indicatorWidth:o}=this.options.legend;switch(this.options.legend.align){case"left":i.translate(this.legendSize.w,0);break;case"top":i.translate(0,this.legendSize.h);break;case"bottom":i.translate(0,-o);break;default:i.translate(-o,0);break}this._drawIndicator(),i.restore()}_drawIndicator(){}}class p6 extends Wi{constructor(){super(...arguments),this.legendSize={w:0,h:0}}init(t){sr.prototype.init.call(this,t)}parse(t,n){return sr.prototype.parse.call(this,t,n)}isHorizontal(){return this.options.legend.align==="top"||this.options.legend.align==="bottom"}_getNormalizedValue(t){return t==null||Number.isNaN(t)?null:(Math.log10(t)-this._startValue)/this._valueRange}update(t,n,i){return sr.prototype.update.call(this,t,n,i)}_computeLabelArea(){}draw(t){return sr.prototype.draw.call(this,t)}_drawIndicator(){}}const Dn={interpolateBlues:nR,interpolateBrBG:gE,interpolateBuGn:LE,interpolateBuPu:OE,interpolateCividis:hR,interpolateCool:mR,interpolateCubehelixDefault:gR,interpolateGnBu:TE,interpolateGreens:rR,interpolateGreys:sR,interpolateInferno:IR,interpolateMagma:SR,interpolateOrRd:VE,interpolateOranges:fR,interpolatePRGn:mE,interpolatePiYG:CE,interpolatePlasma:MR,interpolatePuBu:HE,interpolatePuBuGn:BE,interpolatePuOr:xE,interpolatePuRd:zE,interpolatePurples:lR,interpolateRainbow:bR,interpolateRdBu:wE,interpolateRdGy:IE,interpolateRdPu:ZE,interpolateRdYlBu:_E,interpolateRdYlGn:EE,interpolateReds:uR,interpolateSinebow:xR,interpolateSpectral:kE,interpolateTurbo:yR,interpolateViridis:wR,interpolateWarm:pR,interpolateYlGn:UE,interpolateYlGnBu:YE,interpolateYlOrBr:qE,interpolateYlOrRd:eR};Object.keys(Dn).forEach(e=>{Dn[`${e.charAt(11).toLowerCase()}${e.slice(12)}`]=Dn[e],Dn[e.slice(11)]=Dn[e]});function m6(e,t){const n=1/t;if(e<=n)return 0;if(e>=1-n)return 1;for(let i=0;i<1;i+=n)if(e<i)return i-n/2;return e}const b6={interpolate:"blues",missing:"transparent",quantize:0};class fi extends sr{get interpolate(){const t=this.options;return t?typeof t.interpolate=="function"?t.interpolate:Dn[t.interpolate]||Dn.blues:n=>`rgb(${n},${n},${n})`}getColorForValue(t){const n=this._getNormalizedValue(t);return n==null||Number.isNaN(n)?this.options.missing:this.getColor(n)}getColor(t){let n=t;return this.options.quantize>0&&(n=m6(n,this.options.quantize)),this.interpolate(n)}_drawIndicator(){const{indicatorWidth:t}=this.options.legend,n=this._reversePixels;if(this.isHorizontal()){const i=this.width;if(this.options.quantize>0){const r=i/this.options.quantize,o=n?s=>i-r-s:s=>s;for(let s=0;s<i;s+=r){const a=(s+r/2)/i;this.ctx.fillStyle=this.getColor(a),this.ctx.fillRect(o(s),0,r,t)}}else{const r=n?o=>i-1-o:o=>o;for(let o=0;o<i;o+=1)this.ctx.fillStyle=this.getColor((o+.5)/i),this.ctx.fillRect(r(o),0,1,t)}}else{const i=this.height;if(this.options.quantize>0){const r=i/this.options.quantize,o=n?s=>i-r-s:s=>s;for(let s=0;s<i;s+=r){const a=(s+r/2)/i;this.ctx.fillStyle=this.getColor(a),this.ctx.fillRect(0,o(s),t,r)}}else{const r=n?o=>i-1-o:o=>o;for(let o=0;o<i;o+=1)this.ctx.fillStyle=this.getColor((o+.5)/i),this.ctx.fillRect(0,r(o),t,1)}}}}fi.id="color";fi.defaults=Ct({},[Zn.defaults,P2,b6]);fi.descriptors={_scriptable:e=>e!=="interpolate",_indexable:!1};class tu extends p6{constructor(){super(...arguments),this.interpolate=t=>`rgb(${t},${t},${t})`}init(t){super.init(t),typeof t.interpolate=="function"?this.interpolate=t.interpolate:this.interpolate=Dn[t.interpolate]||Dn.blues}getColorForValue(t){return fi.prototype.getColorForValue.call(this,t)}getColor(t){let n=t;return this.options.quantize>0&&(n=m6(n,this.options.quantize)),this.interpolate(n)}_drawIndicator(){return fi.prototype._drawIndicator.call(this)}}tu.id="colorLogarithmic";tu.defaults=Ct({},[Wi.defaults,P2,b6]);tu.descriptors={_scriptable:e=>e!=="interpolate",_indexable:!1};const C6={missing:1,mode:"area",range:[2,20],legend:{align:"bottom",length:90,width:70,indicatorWidth:42}};class Yi extends sr{constructor(){super(...arguments),this._model=null}getSizeForValue(t){const n=this._getNormalizedValue(t);return n==null||Number.isNaN(n)?this.options.missing:this.getSizeImpl(n)}getSizeImpl(t){const[n,i]=this.options.range;if(this.options.mode==="area"){const o=i*i*Math.PI,s=n*n*Math.PI,a=o-s,l=t*a+s;return Math.sqrt(l/Math.PI)}const r=i-n;return t*r+n}_drawIndicator(){const{ctx:t}=this,n=this.options.legend.indicatorWidth/2,i=this.isHorizontal(),r=this.ticks,o=this.getLabelItems(),s=o?o.map(a=>({[i?"x":"y"]:a.options.translation[i?0:1]})):r.map((a,l)=>({[i?"x":"y"]:this.getPixelForTick(l)}));if((this._gridLineItems||[]).forEach(a=>{if(t.save(),t.strokeStyle=a.color,t.lineWidth=a.width,t.setLineDash&&(t.setLineDash(a.borderDash),t.lineDashOffset=a.borderDashOffset),t.beginPath(),this.options.grid.drawTicks)switch(this.options.legend.align){case"left":t.moveTo(0,a.ty1),t.lineTo(n,a.ty2);break;case"top":t.moveTo(a.tx1,0),t.lineTo(a.tx2,n);break;case"bottom":t.moveTo(a.tx1,n),t.lineTo(a.tx2,n*2);break;default:t.moveTo(n,a.ty1),t.lineTo(n*2,a.ty2);break}t.stroke(),t.restore()}),this._model){const a=this._model;t.strokeStyle=a.borderColor,t.lineWidth=a.borderWidth||0,t.fillStyle=a.backgroundColor}else t.fillStyle="blue";r.forEach((a,l)=>{const c=s[l],u=this.getSizeForValue(a.value),d=i?c.x:n,f=i?n:c.y,h={pointStyle:"circle",borderWidth:0,...this._model||{},radius:u};Va(t,h,d,f)})}}Yi.id="size";Yi.defaults=Ct({},[Zn.defaults,P2,C6]);Yi.descriptors={_scriptable:!0,_indexable:e=>e!=="range"};class v6 extends p6{constructor(){super(...arguments),this._model=null}getSizeForValue(t){const n=this._getNormalizedValue(t);return n==null||Number.isNaN(n)?this.options.missing:this.getSizeImpl(n)}getSizeImpl(t){return Yi.prototype.getSizeImpl.call(this,t)}_drawIndicator(){Yi.prototype._drawIndicator.call(this)}}v6.id="sizeLogarithmic";v6.defaults=Ct({},[Wi.defaults,P2,C6]);function ER(e,t){return[[e[0][0]-t,e[0][1]-t],[e[1][0]+t,e[1][1]+t]]}class Xn extends kn{constructor(){super(...arguments),this.cache=void 0}updateExtras({scale:t,feature:n,center:i,pixelRatio:r,mode:o}){var s,a;const l=o==="resize"||o==="reset"||this.projectionScale!==t||this.feature!==n||((s=this.center)===null||s===void 0?void 0:s.longitude)!==(i==null?void 0:i.longitude)||((a=this.center)===null||a===void 0?void 0:a.latitude)!==(i==null?void 0:i.latitude)||this.pixelRatio!==r;return this.projectionScale=t,this.feature=n,this.center=i,this.pixelRatio=r,l&&(this.cache=void 0),this.getCenterPoint()}inRange(t,n){const i=this.getBounds(),r=(Number.isNaN(t)||t>=i.x&&t<=i.x2)&&(Number.isNaN(n)||n>=i.y&&n<=i.y2),o=this.projectionScale.geoPath.projection();if(r&&!Number.isNaN(t)&&!Number.isNaN(n)&&typeof o.invert=="function"){const s=o.invert([t,n]);return s!=null&&aA(this.feature,s)}return r}inXRange(t){return this.inRange(t,Number.NaN)}inYRange(t){return this.inRange(Number.NaN,t)}getCenterPoint(){if(this.cache&&this.cache.center)return this.cache.center;let t;if(this.center){const n=this.projectionScale.projection([this.center.longitude,this.center.latitude]);t={x:n[0],y:n[1]}}else{const n=this.projectionScale.geoPath.centroid(this.feature);t={x:n[0],y:n[1]}}return this.cache={...this.cache||{},center:t},t}getBounds(){if(this.cache&&this.cache.bounds)return this.cache.bounds;const t=ER(this.projectionScale.geoPath.bounds(this.feature),this.options.borderWidth/2),n={x:t[0][0],x2:t[1][0],y:t[0][1],y2:t[1][1],width:t[1][0]-t[0][0],height:t[1][1]-t[0][1]};return this.cache={...this.cache||{},bounds:n},n}_drawInCache(t){const n=this.getBounds();if(!Number.isFinite(n.x))return;const i=this.cache&&this.cache.canvas?this.cache.canvas:t.createElement("canvas"),r=Math.floor(n.x),o=Math.floor(n.y),s=Math.ceil(n.x+n.width),a=Math.ceil(n.y+n.height),l=this.pixelRatio||1,c=Math.ceil(Math.max(s-r,1)*l),u=Math.ceil(Math.max(a-o,1)*l);if(c<=0||u<=0)return;i.width=c,i.height=u;const d=i.getContext("2d");d&&(d.clearRect(0,0,i.width,i.height),d.save(),d.scale(l,l),d.translate(-r,-o),this._drawImpl(d),d.restore(),this.cache={...this.cache||{},canvas:i,canvasKey:this._optionsToKey()})}_optionsToKey(){const{options:t}=this;return`${t.backgroundColor};${t.borderColor};${t.borderWidth};${this.pixelRatio}`}_drawImpl(t){const{feature:n}=this,{options:i}=this;t.beginPath(),this.projectionScale.geoPath.context(t)(n),i.backgroundColor&&(t.fillStyle=i.backgroundColor,t.fill()),i.borderColor&&(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.stroke())}draw(t){const{feature:n}=this;if(!n)return;(!this.cache||this.cache.canvasKey!==this._optionsToKey())&&t.canvas.ownerDocument!=null&&this._drawInCache(t.canvas.ownerDocument);const i=this.getBounds();if(this.cache&&this.cache.canvas&&this.cache.canvas.width>0&&this.cache.canvas.height>0){const r=Math.floor(i.x),o=Math.floor(i.y),s=Math.ceil(i.x+i.width),a=Math.ceil(i.y+i.height),l=s-r,c=a-o;l>0&&c>0&&t.drawImage(this.cache.canvas,r,o,s-r,a-o)}else Number.isFinite(i.x)&&(t.save(),this._drawImpl(t),t.restore())}}Xn.id="geoFeature";Xn.defaults={...wn.defaults,outlineBackgroundColor:null,outlineBorderWidth:0,graticuleBorderColor:"#CCCCCC",graticuleBorderWidth:0};Xn.defaultRoutes={outlineBorderColor:"borderColor",...wn.defaultRoutes||{}};const x6={showOutline:!1,showGraticule:!1,clipMap:!0},y6={scales:{projection:{axis:"x",type:Qi.id,position:"chartArea",display:!1}}};function j1(e){const t={...e};return Object.keys(e).forEach(n=>{let i=n;if(n.startsWith("outline")){const r=n.slice(7);i=r[0].toLowerCase()+r.slice(1)}else if(n.startsWith("hoverOutline"))i=`hover${n.slice(12)}`;else return;delete t[n],t[i]=e[n]}),t}class w6 extends Kt{getGeoDataset(){return super.getDataset()}getGeoOptions(){return this.chart.options}getProjectionScale(){return this.getScaleForId("projection")}linkScales(){const t=this.getGeoDataset(),n=this.getMeta();n.xAxisID="projection",t.xAxisID="projection",n.yAxisID="projection",t.yAxisID="projection",n.xScale=this.getScaleForId("projection"),n.yScale=this.getScaleForId("projection"),this.getProjectionScale().computeBounds(this.resolveOutline())}showOutline(){return Ae(this.getGeoDataset().showOutline,this.getGeoOptions().showOutline)}clipMap(){return Ae(this.getGeoDataset().clipMap,this.getGeoOptions().clipMap)}getGraticule(){return Ae(this.getGeoDataset().showGraticule,this.getGeoOptions().showGraticule)}update(t){super.update(t);const n=this.getMeta(),i=this.getProjectionScale(),r=i.updateBounds()||t==="resize"||t==="reset";if(this.showOutline()){const o=n.dataset;if(r&&delete o.cache,o.projectionScale=i,o.pixelRatio=this.chart.currentDevicePixelRatio,t!=="resize"){const s=j1(this.resolveDatasetElementOptions(t)),a={feature:this.resolveOutline(),options:s};this.updateElement(o,void 0,a,t),this.getGraticule()&&(n.graticule=s)}}else this.getGraticule()&&t!=="resize"&&(n.graticule=j1(this.resolveDatasetElementOptions(t)));r&&n.data.forEach(o=>delete o.cache),this.updateElements(n.data,0,n.data.length,t)}resolveOutline(){const n=this.getGeoDataset().outline||{type:"Sphere"};return Array.isArray(n)?{type:"FeatureCollection",features:n}:n}showGraticule(){const t=this.getGraticule(),n=this.getMeta().graticule;if(!t||!n)return;const{ctx:i}=this.chart,o=this.getProjectionScale().geoPath.context(i);if(i.save(),i.beginPath(),typeof t=="boolean")t&&o(lA());else{const s=D5();t.stepMajor&&s.stepMajor(t.stepMajor),t.stepMinor&&s.stepMinor(t.stepMinor),o(s())}i.strokeStyle=n.graticuleBorderColor,i.lineWidth=n.graticuleBorderWidth,i.stroke(),i.restore()}draw(){const{chart:t}=this,n=this.clipMap();let i=!1;(n===!0||n==="outline"||n==="outline+graticule")&&(i=!0,Li(t.ctx,t.chartArea)),this.showOutline()&&this.getMeta().dataset&&this.getMeta().dataset.draw.call(this.getMeta().dataset,t.ctx,t.chartArea),n===!0||n==="graticule"||n==="outline+graticule"?i||Li(t.ctx,t.chartArea):i&&(i=!1,Fi(t.ctx)),this.showGraticule(),n===!0||n==="items"?i||Li(t.ctx,t.chartArea):i&&(i=!1,Fi(t.ctx)),this.getMeta().data.forEach(r=>r.draw.call(r,t.ctx,t.chartArea)),i&&(i=!1,Fi(t.ctx))}}function S6(e,t,n,i=[],r=[]){Ot.addControllers(n),Array.isArray(i)?Ot.addElements(...i):Ot.addElements(i),Array.isArray(r)?Ot.addScales(...r):Ot.addScales(r);const o=t;return o.type=e,o}class Fr extends w6{initialize(){super.initialize(),this.enableOptionSharing=!0}linkScales(){super.linkScales();const t=this.getGeoDataset(),n=this.getMeta();n.vAxisID="color",n.rAxisID="color",t.vAxisID="color",t.rAxisID="color",n.rScale=this.getScaleForId("color"),n.vScale=n.rScale,n.iScale=n.xScale,n.iAxisID=n.xAxisID,t.iAxisID=n.xAxisID}_getOtherScale(t){return t}parse(t,n){const i=this.getMeta().rScale,{data:r}=this.getDataset(),o=this._cachedMeta;for(let s=t;s<t+n;s+=1)o._parsed[s]={[i.axis]:i.parse(r[s],s)}}updateElements(t,n,i,r){const o=this.resolveDataElementOptions(n,r),s=this.getSharedOptions(o),a=this.includeOptions(r,s),l=this.getProjectionScale();this.updateSharedOptions(s,r,o);for(let c=n;c<n+i;c+=1){const u=t[c];u.projectionScale=l;const d=u.updateExtras({scale:l,feature:this._data[c].feature,center:this._data[c].center,pixelRatio:this.chart.currentDevicePixelRatio,mode:r}),f={x:d.x,y:d.y};a&&(f.options=s||this.resolveDataElementOptions(c,r)),this.updateElement(u,c,f,r)}}indexToColor(t){const n=this.getMeta().rScale;return n.getColorForValue(this.getParsed(t)[n.axis])}}Fr.id="choropleth";Fr.defaults=Ct({},[x6,{datasetElementType:Xn.id,dataElementType:Xn.id}]);Fr.overrides=Ct({},[y6,{plugins:{tooltip:{callbacks:{title(){return""},label(e){var t,n,i,r;return e.formattedValue==null?(n=(t=e.chart.data)===null||t===void 0?void 0:t.labels)===null||n===void 0?void 0:n[e.dataIndex]:`${(r=(i=e.chart.data)===null||i===void 0?void 0:i.labels)===null||r===void 0?void 0:r[e.dataIndex]}: ${e.formattedValue}`}}},colors:{enabled:!1}},scales:{color:{type:fi.id,axis:"x"}},elements:{geoFeature:{backgroundColor(e){return e.dataIndex==null?null:e.chart.getDatasetMeta(e.datasetIndex).controller.indexToColor(e.dataIndex)}}}}]);class RR extends vt{constructor(t,n){super(t,S6("choropleth",n,Fr,Xn,[fi,Qi]))}}RR.id=Fr.id;class es extends w6{initialize(){super.initialize(),this.enableOptionSharing=!0}linkScales(){super.linkScales();const t=this.getGeoDataset(),n=this.getMeta();n.vAxisID="size",n.rAxisID="size",t.vAxisID="size",t.rAxisID="size",n.rScale=this.getScaleForId("size"),n.vScale=n.rScale,n.iScale=n.xScale,n.iAxisID=n.xAxisID,t.iAxisID=n.xAxisID}_getOtherScale(t){return t}parse(t,n){const i=this.getMeta().rScale,r=this.getDataset().data,o=this._cachedMeta;for(let s=t;s<t+n;s+=1){const a=r[s];o._parsed[s]={x:a.longitude==null?a.x:a.longitude,y:a.latitude==null?a.y:a.latitude,[i.axis]:i.parse(a,s)}}}updateElements(t,n,i,r){const o=r==="reset",s=this.resolveDataElementOptions(n,r),a=this.getSharedOptions(s),l=this.includeOptions(r,a),c=this.getProjectionScale();this.getMeta().rScale._model=s,this.updateSharedOptions(a,r,s);for(let u=n;u<n+i;u+=1){const d=t[u],f=this.getParsed(u),h=c.projection([f.x,f.y]),g={x:h?h[0]:0,y:h?h[1]:0,skip:Number.isNaN(f.x)||Number.isNaN(f.y)};l&&(g.options=a||this.resolveDataElementOptions(u,r),o&&(g.options.radius=0)),this.updateElement(d,u,g,r)}}indexToRadius(t){const n=this.getMeta().rScale;return n.getSizeForValue(this.getParsed(t)[n.axis])}}es.id="bubbleMap";es.defaults=Ct({},[x6,{dataElementType:Ti.id,datasetElementType:Xn.id,showOutline:!0,clipMap:"outline+graticule"}]);es.overrides=Ct({},[y6,{plugins:{tooltip:{callbacks:{title(){return""},label(e){var t,n,i,r;return e.formattedValue==null?(n=(t=e.chart.data)===null||t===void 0?void 0:t.labels)===null||n===void 0?void 0:n[e.dataIndex]:`${(r=(i=e.chart.data)===null||i===void 0?void 0:i.labels)===null||r===void 0?void 0:r[e.dataIndex]}: ${e.formattedValue}`}}}},scales:{size:{axis:"x",type:Yi.id}},elements:{point:{radius(e){return e.dataIndex==null?null:e.chart.getDatasetMeta(e.datasetIndex).controller.indexToRadius(e.dataIndex)},hoverRadius(e){return e.dataIndex==null?null:e.chart.getDatasetMeta(e.datasetIndex).controller.indexToRadius(e.dataIndex)+1}}}}]);class kR extends vt{constructor(t,n){super(t,S6("bubbleMap",n,es,Xn,[Yi,Qi]))}}kR.id=es.id;vt.register(Fr,Xn,Qi,fi,Ui,Ji,xr,Zn,wn);vt.defaults.font.family="'Rubik', 'Inter', sans-serif";const PR=({data:e=new Map,defaultCountry:t="India",geoData:n,dataLabel:i="Data Points Found"})=>{const[r,o]=v.useState(null),[s,a]=v.useState(0),l=n?n.features.filter(d=>d.properties.name!=="Antarctica"):[];if(v.useEffect(()=>{if(e!=null&&e.size){let d=0;e.forEach((f,h)=>{r===h&&(d=f)}),a(d)}},[r,e]),!n||l.length===0)return b.jsx("div",{className:"geochart-container flex flex-col items-center justify-center p-8",style:{minHeight:"400px"},children:b.jsx("p",{style:{color:"var(--secondary-text-color)"},children:"Geo data not provided. Please provide geoData prop."})});const c={datasets:[{label:"Data Distribution",data:l.map(d=>({feature:d,value:e.get(d.properties.name)||0})),borderColor:"#fff",borderWidth:1,backgroundColor:d=>{var p;if(!((p=d==null?void 0:d.raw)!=null&&p.feature))return getComputedStyle(document.documentElement).getPropertyValue("--brand-light").trim()||"#dae0e8";const f=d.raw.feature.properties.name,h=getComputedStyle(document.documentElement).getPropertyValue("--brand-orange").trim()||"#ff6503",g=getComputedStyle(document.documentElement).getPropertyValue("--brand-light").trim()||"#dae0e8";return f===t?h:r===f?h+"99":g}}]},u={responsive:!0,maintainAspectRatio:!1,scales:{projection:{axis:"x",projection:"equirectangular"},color:{axis:"x",display:!1}},plugins:{legend:{display:!1},tooltip:{backgroundColor:getComputedStyle(document.documentElement).getPropertyValue("--bg-color").trim()||"#fff",titleColor:getComputedStyle(document.documentElement).getPropertyValue("--chart-text-color").trim()||"#333",bodyColor:getComputedStyle(document.documentElement).getPropertyValue("--chart-text-color").trim()||"#333",borderColor:getComputedStyle(document.documentElement).getPropertyValue("--border-color").trim()||"#e5e7eb",borderWidth:1,callbacks:{title:d=>{var f,h,g;return d.length?((g=(h=(f=d[0].raw)==null?void 0:f.feature)==null?void 0:h.properties)==null?void 0:g.name)??"Unknown":""},label:()=>`${i}: ${s}`}},datalabels:{display:!1}},onHover:(d,f)=>{var h,g;if(f.length>0){const p=f[0].index;o(((g=(h=l[p])==null?void 0:h.properties)==null?void 0:g.name)||null)}}};return b.jsx("div",{className:"geochart-container flex flex-col items-center",onMouseLeave:()=>o(null),style:{minHeight:"400px"},children:b.jsx($c,{type:"choropleth",data:c,options:u,className:"w-full h-full"})})};function I6(e){return e?e.replace(/\b\w/g,t=>t.toUpperCase()):""}function M6(e,t){if(!e)return{formatted:"",readableDate:""};let n;if(typeof e=="number"||/^\d+$/.test(String(e)))n=new Date(Number(e)*1e3);else{let l=String(e).trim();l=l.replace(/^[A-Za-z]{3},\s*/,"");const c=l.match(/^(\d{1,2})(st|nd|rd|th)\s([A-Za-z]+),\s(\d{4})/);if(c){const[,u,,d,f]=c;l=`${u} ${d} ${f}`}if(!l.endsWith("Z")&&!(l.split(" ").length>2)&&(l+="Z"),n=new Date(l),isNaN(n.getTime())){const u=l.replace(/\s([A-Za-z]{3})$/,"");n=new Date(u)}if(isNaN(n.getTime()))return{formatted:"",readableDate:""}}const i=Intl.DateTimeFormat().resolvedOptions().timeZone,r=new Date,s=n.toLocaleDateString("en-US",{timeZone:i})===r.toLocaleDateString("en-US",{timeZone:i})?n.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",timeZone:i}):t?t.replace("YYYY",String(n.getFullYear())).replace("MM",String(n.getMonth()+1).padStart(2,"0")).replace("DD",String(n.getDate()).padStart(2,"0")).replace("HH",String(n.getHours()).padStart(2,"0")).replace("mm",String(n.getMinutes()).padStart(2,"0")).replace("ss",String(n.getSeconds()).padStart(2,"0")):`${n.toLocaleDateString("en-US",{timeZone:i})} ${n.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",timeZone:i})}`,a=[n.toLocaleDateString("en-US",{day:"numeric",timeZone:i}),n.toLocaleString("en-US",{month:"short",timeZone:i}),n.toLocaleDateString("en-US",{year:"2-digit",timeZone:i}),n.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0,timeZone:i})].join(" ");return{formatted:s,readableDate:a}}const jl=(e,t)=>{const n=e.replace(/\\/g,"/"),i=t.replace(/\\/g,"/"),r=n.split("/"),o=i.split("/");return o.length>r.length&&o.slice(0,r.length).join("/")===r.join("/")};function LR(e){return Array.isArray(e)?e.reduce((t,n)=>(n.metadata_value!==null&&(t[n.metadata_key]=n.metadata_value),t),{}):{}}function Bl(e){return{...e,absolute_path:e.name||e.object_name,fullPath:e.fullPath||e.name||e.object_name,parentPath:e.parentPath||"",object_type:void 0,object_name:void 0,scan_object_metadata:void 0,scan_object_results:void 0,...LR(e.scan_object_metadata||[])}}function _6(e,t){const[n,i]=v.useState(e);return v.useEffect(()=>{const r=setTimeout(()=>{i(e)},t);return()=>{clearTimeout(r)}},[e,t]),n}const $l=50,A6="-",L2={attribute_mapping:"attribute_mapping",confidence_metadata:"confidence_metadata"},FR="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwIDRIMjBDMjAuNTUwNyA0IDIxIDQuNDQ5MjggMjEgNVYxOUMyMSAxOS41NTA3IDIwLjU1MDcgMjAgMjAgMjBINEMzLjQ0OTIyIDIwIDMgMTkuNTUwNyAzIDE5VjVDMyA0LjQ0OTI4IDMuNDQ5MjIgNCA0IDRIMTBMMTIgNkgxMFoiIGZpbGw9ImN1cnJlbnRDb2xvciIvPgo8L3N2Zz4K",OR="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0IDJINkMyLjg5NTQzIDIgMiAyLjg5NTQzIDIgNlYxOEMyIDE5LjEwNDYgMi44OTU0MyAyMCA0IDIwSDE4QzE5LjEwNDYgMjAgMjAgMTkuMTA0NiAyMCAxOFY4TDE0IDJaIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTE0IDJWOEgyMCIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=",NR=({scanConnectorUuid:e,api:t,bulkActions:n,handleBulkAction:i,isEditable:r,encryptedFilesFilter:o="",outlookContentTypeFilter:s="",fileSearch:a="",scanDetails:l})=>{const c=v.useRef(null),{showLoader:u,hideLoader:d}=x2(),f=_6(a,500),[h,g]=v.useState([]),[p,m]=v.useState(!1),[C,y]=v.useState(null),[x,I]=v.useState([]),[w,R]=v.useState(),[E,S]=v.useState([]),[M,_]=v.useState(""),[P,N]=v.useState(new Set),[B,T]=v.useState([]),[k,F]=v.useState(!1),[O,A]=v.useState(!1),L=v.useRef(null),j=v.useRef(!1),G=v.useRef(!1);let H=new Set;const $=new Map;v.useEffect(()=>{if(typeof window>"u")return;(async()=>{try{const oe=await Promise.resolve().then(()=>require("./jquery-DkYZhXT6.cjs")).then(Y=>Y.jquery);L.current=oe.default,F(!0),await Promise.resolve().then(()=>require("./jstree-B3NPxTf-.cjs")).then(Y=>Y.jstree),A(!0)}catch(oe){console.error("Failed to load jQuery or jstree:",oe)}})()},[]);const J=V=>typeof window>"u"||!L.current?null:L.current(V),le=V=>Object.keys(V).map(Y=>({value:Y,label:V[Y]})),he=V=>{R((V==null?void 0:V.value)||""),V!=null&&V.value&&i&&i(V.value,x,()=>{I([])},()=>{R("")})},Oe=(V,oe="",Y=!1)=>{const ne=[];if(V.filter(ee=>{const se=ee.fullPath||ee.absolute_path,pe=ee.name||ee.object_name;return se&&pe&&pe.trim()!==""}).forEach((ee,se)=>{if(ee.fullPath){const ae=ee.fullPath.replace(/\\/g,"/").split("/").filter(Q=>Q.trim()!=="");let K=0;oe&&oe!==""&&(K=oe.replace(/\\/g,"/").split("/").filter(ve=>ve.trim()!=="").length);let xe=ne;for(let Q=K;Q<ae.length;Q++){const ve=ae[Q],Re=Q===ae.length-1,$e=ae.slice(0,Q+1).join("/"),st=/^[A-Z]:$/.test(ve),He=Re&&!st&&(ee.object_type==="file"||ee.isFile===!0||ee.isDirectory===!1&&ee.object_type!=="folder"&&ee.object_type!=="directory");let et=xe.find(at=>at.text===ve&&at.full_path===$e&&at.type===(He?"file":"folder"));if(!et){const at=xe.find(fn=>fn.text===ve&&fn.type===(He?"file":"folder"));at?et=at:(et={text:ve,children:[],type:He?"file":"folder",id:$e+`_${se}_${Q}`,data:He?ee:null,full_path:$e,state:{opened:!1,disabled:!1,selected:!1},original:{full_path:$e,type:He?"file":"folder"},a_attr:{title:ee.fullPath||$e},...He?{}:{children:!0}},xe.push(et))}He||(xe=et.children)}}else if(ee.absolute_path){const ae=ee.absolute_path.replace(/\\/g,"/").split("/").filter(Q=>Q.trim()!=="");let K=0;oe&&oe!==""&&(K=oe.replace(/\\/g,"/").split("/").filter(ve=>ve.trim()!=="").length);let xe=ne;for(let Q=K;Q<ae.length;Q++){const ve=ae[Q],Re=Q===ae.length-1,$e=ae.slice(0,Q+1).join("/"),st=/^[A-Z]:$/.test(ve),He=Re&&!st&&(ee.object_type==="file"||ee.isFile===!0||ee.isDirectory===!1&&ee.object_type!=="folder"&&ee.object_type!=="directory");let et=xe.find(at=>at.text===ve&&at.full_path===$e&&at.type===(He?"file":"folder"));et||(et={text:ve,children:[],type:He?"file":"folder",id:$e+`_${se}_${Q}`,data:He?ee:null,full_path:$e,original:{full_path:$e,type:He?"file":"folder"},a_attr:{title:ee.absolute_path||$e}},xe.push(et)),He||(xe=et.children)}}}),Y&&oe!==void 0){const ee={text:"Load More...",children:[],type:"load_more",id:`load_more_${oe}`,data:null,full_path:oe,original:{full_path:oe,type:"load_more"},a_attr:{title:"Click to load more items",style:"cursor: pointer; color: #007bff; font-weight: bold;"}};ne.push(ee)}return ne},fe=async(V,oe=0,Y=!1)=>{var se;if(typeof window>"u"||!k||!O)return;if(V&&!V.includes("/")&&!V.includes("\\")&&c.current){const pe=J(c.current);if(pe){const K=pe.jstree(!0).get_json("#",{flat:!0}).find(xe=>xe.id===V||xe.text===V);K&&((se=K.original)!=null&&se.full_path)&&(V=K.original.full_path)}}const ne=`${V}_${o}_${s}_${f}`,te=$.get(ne);if(P.has(V)||te!=null&&te.loading||oe===0&&H.has(V)&&!Y||G.current)return;N(pe=>new Set(pe).add(V)),te?$.set(ne,{page:oe,hasMore:te.hasMore??!1,loading:!0}):$.set(ne,{page:0,hasMore:!1,loading:!0}),u();const ee=!!(l!=null&&l.end_time&&l.end_time.length>0);try{const pe=await t.readIndexScanObjectsForPath(e,V,o,s,f,oe,$l,ee);if(pe!=null&&pe.data){$.set(ne,{page:oe,hasMore:pe.hasMore??!1,loading:!1});const ae=pe.data.map(K=>Bl(K));Y&&oe>0?we(V,ae,pe.hasMore??!1):(H.add(V),ge(V,ae,pe.hasMore??!1)),$.set(ne,{page:oe,hasMore:pe.hasMore??!1,loading:!1})}}catch(pe){console.error("Error loading children for path:",pe),$.set(ne,{page:oe,hasMore:!1,loading:!1})}finally{d(),N(pe=>{const ae=new Set(pe);return ae.delete(V),ae})}},ge=(V,oe,Y=!1)=>{var ne;if(!(!c.current||G.current)&&!(typeof window>"u"||!k||!O)){G.current=!0;try{const te=J(c.current);if(!te){G.current=!1;return}const se=te.jstree(!0).get_json("#",{flat:!0}).find(Re=>{var $e;return Re.text===V||(($e=Re.a_attr)==null?void 0:$e.title)===V});if(!se){console.error("Parent node not found for path:",V);return}const pe=(ne=se.state)==null?void 0:ne.opened;se.children&&se.children.length>0&&se.children.forEach(Re=>{te.jstree("delete_node",Re)});const ae=te.jstree("get_children_dom",se.id);ae&&ae.length&&J(ae).each((Re,$e)=>{const st=J($e).attr("id");st&&(st.includes("_loading")||st.includes("_placeholder"))&&te.jstree("delete_node",st)}),Oe(oe,V,Y).map(Re=>Re.type==="folder"?{...Re,children:Re.children&&Re.children.length>0?Re.children:[{text:"",children:[],type:"placeholder",id:`${Re.id}_placeholder`,state:{opened:!1,disabled:!0,selected:!1},original:{full_path:Re.full_path,type:"placeholder"},li_attr:{style:"display: none;"}}],state:{opened:!1,disabled:!1,selected:!1}}:Re).forEach(Re=>{te.jstree("create_node",se.id,Re,"last")});const Q=`${V}_${o}_${s}_${f}`;$.get(Q)||$.set(Q,{page:0,hasMore:Y,loading:!1}),pe&&te.jstree("open_node",se.id),setTimeout(()=>{G.current=!1},100)}catch(te){console.error("Error in updateTreeWithChildren:",te),G.current=!1}}},we=(V,oe,Y=!1)=>{var xe;if(!c.current||typeof window>"u"||!k||!O)return;const ne=J(c.current);if(!ne)return;let te,ee;if(V==="")ee="#",te={id:"#",text:"root",type:"root"};else if(te=ne.jstree(!0).get_json("#",{flat:!0}).find(ve=>{var Re;return ve.text===V||((Re=ve.a_attr)==null?void 0:Re.title)===V}),ee=te==null?void 0:te.id,!te){console.error("Parent node not found for path:",V);return}const se=`load_more_${V}`,pe=ne.jstree("get_node",se);if(pe&&ne.jstree("delete_node",pe),V!==""&&te){const Q=ne.jstree("get_children_dom",te.id);Q&&Q.length&&J(Q).each((ve,Re)=>{const $e=J(Re).attr("id");$e&&($e.includes("_loading")||$e.includes("_placeholder"))&&ne.jstree("delete_node",$e)})}Oe(oe,V,Y).map(Q=>Q.type==="folder"?{...Q,children:Q.children&&Q.children.length>0?Q.children:[{text:"",children:[],type:"placeholder",id:`${Q.id}_placeholder`,state:{opened:!1,disabled:!0,selected:!1},original:{full_path:Q.full_path,type:"placeholder"},li_attr:{style:"display: none;"}}],state:{opened:!1,disabled:!1,selected:!1}}:Q).forEach((Q,ve)=>{try{ne.jstree("create_node",ee,Q,"last")}catch(Re){console.error(`appendChildrenToPath - Error creating child ${ve}:`,Re)}}),V!==""&&te&&((xe=te.state)!=null&&xe.opened)&&ne.jstree("open_node",te.id)},ce=async()=>{if(!j.current)try{j.current=!0,m(!1),u(),H=new Set,T([]),y(null);const V=!!(l!=null&&l.end_time&&l.end_time.length>0),oe=await t.readIndexScanObjectsForPath(e,"",o,s,f,0,$l,V);if(oe!=null&&oe.data){const Y=oe.data.map(se=>Bl(se));g(Y);const ne=`_${o}_${s}_${f}`,ee=Oe(Y,"",oe.hasMore??!1).map(se=>se.type==="folder"?{...se,children:se.children&&se.children.length>0?se.children:[{text:"",children:[],type:"placeholder",id:`${se.id}_placeholder`,state:{opened:!1,disabled:!0,selected:!1},original:{full_path:se.full_path,type:"placeholder"},li_attr:{style:"display: none;"}}],state:{opened:!1,disabled:!1,selected:!1}}:se);T(ee),H.add(""),$.set(ne,{page:0,hasMore:oe.hasMore??!1,loading:!1})}else g([]),T([])}catch(V){console.error("[FileBrowser] Error fetching root level data:",V),g([]),T([])}finally{j.current=!1,d(),m(!0)}};v.useEffect(()=>{e?ce():m(!0)},[e,o,s,f]),v.useEffect(()=>{if(p&&c.current&&k&&O&&typeof window<"u"){const V=J(c.current);if(!V)return;V.jstree(!0)&&V.jstree("destroy");const oe={plugins:["types","state"],types:{folder:{icon:FR},file:{icon:OR},load_more:{icon:"jstree-file"}}};r&&(oe.plugins.push("checkbox"),oe.checkbox={three_state:!0,whole_node:!1,tie_selection:!1}),V.jstree({core:{data:B,themes:{name:"default",responsive:!0},check_callback:!0},...oe}),V.on("open_node.jstree",(Y,ne)=>{var se,pe,ae;const te=ne.node;let ee=((se=te.original)==null?void 0:se.full_path)||te.full_path||te.id;if(ee&&!ee.includes("/")&&!ee.includes("\\")&&c.current&&k&&O){const K=J(c.current);if(K){const Q=K.jstree(!0).get_json("#",{flat:!0}).find(ve=>ve.id===te.id);Q&&((pe=Q.original)!=null&&pe.full_path)&&(ee=Q.original.full_path)}}if((!ee||!ee.includes("/")&&!ee.includes("\\"))&&c.current){const K=J(c.current).jstree(!0).get_json("#",{flat:!0}),xe=K.find(Q=>Q.id===te.id);if(xe&&xe.parent&&xe.parent!=="#"){const Q=K.find(ve=>ve.id===xe.parent);Q&&((ae=Q.original)!=null&&ae.full_path)&&(ee=`${Q.original.full_path}/${te.text}`)}}te.type==="folder"&&/^[A-Z]:$/.test(te.text)&&(ee=te.text),te.type==="folder"&&ee&&(H.has(ee)||fe(ee))}),V.on("click.jstree",Y=>{var ee;const ne=J(Y.target);if(!ne)return!0;const te=ne.closest("li").attr("id");if(te&&te.startsWith("load_more_")){const se=V.jstree("get_node",te),pe=((ee=se==null?void 0:se.original)==null?void 0:ee.full_path)||(se==null?void 0:se.full_path)||te.replace("load_more_",""),ae=pe===""?`_${o}_${s}_${f}`:`${pe}_${o}_${s}_${f}`,K=$.get(ae);if(K&&K.hasMore&&!K.loading){const xe=K.page+1;fe(pe,xe,!0)}else K||($.set(ae,{page:0,hasMore:!0,loading:!1}),fe(pe,1,!0));return Y.preventDefault(),Y.stopPropagation(),!1}return!0}),V.on("select_node.jstree",(Y,ne)=>{var ee;const te=ne.node;if(te.type==="load_more"&&((ee=te.original)!=null&&ee.full_path)){const se=te.original.full_path,pe=`${se}_${o}_${s}_${f}`,ae=$.get(pe);ae&&ae.hasMore&&!ae.loading&&fe(se,ae.page+1,!0);return}te.data?y(te.data):y(null)}),V.on("check_node.jstree uncheck_node.jstree",function(Y,ne){const te=ne.node,ee=te.original.full_path;te.state.checked?I(se=>{const pe=se.filter(K=>K!==ee&&!jl(ee,K));let ae=te;for(;ae.parent!=="#";){const K=V.jstree("get_node",ae.parent);if(K){if(K.children.every(Q=>{const ve=V.jstree("get_node",Q);return ve==null?void 0:ve.state.checked}))return pe.filter(Q=>!Q.startsWith(K.original.full_path)).concat(K.original.full_path);ae=K}}return pe.concat(ee)}):I(se=>{const pe=se.filter(K=>K!==ee&&!jl(ee,K));let ae=te;for(;ae.parent!=="#";){const K=V.jstree("get_node",ae.parent);if(K){if(K.children.some(Q=>{const ve=V.jstree("get_node",Q);return ve==null?void 0:ve.state.checked})){const Q=K.children.filter(ve=>{const Re=V.jstree("get_node",ve);return Re==null?void 0:Re.state.checked}).map(ve=>{const Re=V.jstree("get_node",ve);return Re==null?void 0:Re.original.full_path});return pe.filter(ve=>!ve.startsWith(K.original.full_path)).concat(Q)}ae=K}}return pe})})}return()=>{if(c.current&&k&&O&&typeof window<"u"){const V=J(c.current);V&&V.jstree("destroy").empty()}}},[B,p,k,O]);const z=[{header:"Key",accessorKey:"key",minSize:180,maxSize:180},{header:"Value",accessorKey:"value",cell:({row:{original:V}})=>b.jsx("p",{className:"break-words",title:V.value,children:V.value.length>30?V.value.substring(0,30)+"...":V.value})}],Ne=(V,oe)=>{if(typeof oe=="boolean"||V.startsWith("is_"))return oe===!0||oe===1||oe==="1"?"Yes":"No";if(V==="file_size")return Gc(+oe);if(["last_modified","creation_time","last_accessed","created_at","updated_at"].includes(V))try{return Fa(oe).format("ddd, DD MMM YYYY hh:mm:ss A")}catch{return M6(oe).readableDate}return oe};v.useEffect(()=>{if(C){const V=C.type==="Email"||C.type==="Attachment"||C.object_type==="Email"||C.object_type==="Attachment",oe=Object.entries(C).filter(([Y,ne])=>!["id","scan_id","created_at","updated_at","content_preview","file_system_type","file_system_flags",...V?["absolute_path"]:[]].includes(Y)&&ne!==null).map(([Y,ne])=>{let te=Ne(Y,ne);if(V&&Y==="name"&&typeof ne=="string"){const ee=ne.lastIndexOf("/");ee!==-1&&(te=ne.substring(ee+1))}return{id:Y,key:I6(Y.split("_").join(" ")),value:te}});S(oe)}else S([])},[C]);const ie=M&&E?E.filter(V=>V.key.toLowerCase().includes(M.toLowerCase())||String(V.value).toLowerCase().includes(M.toLowerCase())):E,re=()=>{if(c.current&&k&&O&&typeof window<"u"){const V=J(c.current);V&&V.jstree("close_all")}};return typeof window>"u"||!k||!O?b.jsxs("div",{className:"flex items-center gap-2 p-6 mt-2 text-lg font-semibold rounded-lg shadow-sm",style:{backgroundColor:"var(--hover-bg-color)",border:"1px solid var(--border-color)",color:"var(--text-color)"},children:[b.jsx(pa,{className:"w-6 h-6",style:{color:"var(--secondary-text-color)"}}),b.jsx("span",{children:"Loading file browser..."})]}):!h||h.length===0||!p?b.jsx("div",{className:"flex items-center gap-2 p-6 mt-2 text-lg font-semibold rounded-lg shadow-sm",style:{backgroundColor:"var(--hover-bg-color)",border:"1px solid var(--border-color)",color:"var(--text-color)"},children:p&&b.jsxs(b.Fragment,{children:[b.jsx(pa,{className:"w-6 h-6",style:{color:"var(--secondary-text-color)"}}),b.jsx("span",{children:"No metadata available to display."})]})}):b.jsxs("div",{className:"flex",style:{minHeight:"75vh"},children:[b.jsxs("div",{className:"w-1/2 border-r pt-4 pb-4 overflow-x-auto",children:[b.jsx("div",{className:"flex items-center gap-2 mb-4",children:b.jsx("button",{onClick:re,className:"px-3 py-1 text-sm text-white rounded-md transition-colors",style:{backgroundColor:"var(--brand-orange)"},onMouseEnter:V=>{V.currentTarget.style.backgroundColor="#e65a03"},onMouseLeave:V=>{V.currentTarget.style.backgroundColor="var(--brand-orange)"},children:"Collapse All"})}),b.jsx("div",{className:"overflow-y-auto file-browser-tree",children:b.jsx("div",{ref:c})})]}),b.jsx("div",{className:"w-1/2 pt-4 pl-4 pr-2",children:x.length>0&&n&&i?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"relative w-48 px-4 z-40",children:b.jsx(Po,{placeholder:"Bulk Action",options:le(n),selectedOptions:w?le(n).filter(V=>V.value===w):[],handleChange:he,isMulti:!1,isClearable:!0})}),b.jsx("div",{className:"py-4",children:b.jsx(sl,{type:yo.FILE,columns:[{header:"Folders",accessorKey:"folder"}],data:x.map(V=>({id:V,folder:V}))||[],paginationEnabled:!1,exportEnabled:!1})})]}):C?b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"flex w-full h-[2rem] rounded-md overflow-hidden shadow-sm",style:{border:"1px solid var(--border-color)"},children:[b.jsx("input",{type:"text",placeholder:"Search Metadata",value:M,onChange:V=>_(V.target.value),className:"flex-grow px-4 py-2 text-sm focus:outline-none w-full",style:{backgroundColor:"var(--bg-color)",color:"var(--text-color)"}}),b.jsx("button",{className:"px-4 py-0 transition-colors",style:{backgroundColor:"var(--brand-light)",color:"var(--brand-dark)"},onMouseEnter:V=>V.currentTarget.style.backgroundColor="var(--hover-bg-color)",onMouseLeave:V=>V.currentTarget.style.backgroundColor="var(--brand-light)",tabIndex:-1,type:"button","aria-label":"Search",disabled:!0,children:b.jsx(q4,{size:18})})]}),b.jsx(sl,{tableWrapperClass:"metadata-table overflow-y-auto",type:yo.FILEBROWSER,columns:z,data:ie||[],paginationEnabled:!1,exportEnabled:!1})]}):b.jsx("p",{className:"px-4",style:{color:"var(--secondary-text-color)"},children:"Select a file or folder to take action."})})]})};function TR(e,t,n,i,r=!1){if(!e||typeof e!="object"||Object.keys(e).length===0)return null;let o=`${t}.${n}`;r&&(o=n);const s=e[o];return!s||typeof s!="object"||Object.keys(s).length===0?null:s[i]??null}function E6(e,t,n=!1,i=""){const{id:r,uuid:o,scan_id:s,object_name:a,source:l,created_at:c,updated_at:u,scan_object_metadata:d}=e;let[f,...h]=a.split(".");(i==null?void 0:i.length)>0&&(f=i,h=[a]);const g=h.join(".");let p=(i==null?void 0:i.length)>0;const m=Object.keys(t??{});n&&m.length>0&&m[0].includes(".")&&g.includes(".")&&m[0].split(".").length===2&&(p=!0);const C={id:r,uuid:o,scan_id:s,db_name:(i==null?void 0:i.length)>0?i:f,table_name:g,column_name:l,created_at:c,updated_at:u};let y=null,x=null;for(const w of d||[]){const{metadata_key:R,metadata_value:E}=w;switch(R){case"total_values":C.total_rows=E;break;case"empty_values":C.empty_rows=E;break;case"referenced_table":y=E;break;case"referenced_column":x=E;break;default:C[R]=E;break}}const I=TR(t,f,g,l,p);return I&&(C[L2.attribute_mapping]=I),y&&x&&(C.foreign_key=`${y}.${x}`),{result:C,skipDbName:p}}function Hl(e){if(!Array.isArray(e))return{};const t=e.find(n=>n.metadata_key===L2.attribute_mapping);if(!t||typeof t.metadata_value!="string")return{};try{const n=JSON.parse(t.metadata_value);if(typeof n=="object"&&n!==null)return n}catch(n){console.error("Failed to parse attribute_mapping metadata_value:",n)}return{}}function R6(e){if(!Array.isArray(e))return{};const t=e.find(n=>n.metadata_key===L2.confidence_metadata);if(!t||typeof t.metadata_value!="string")return{};try{const n=JSON.parse(t.metadata_value);if(typeof n=="object"&&n!==null)return n}catch(n){console.error("Failed to parse confidence_metadata metadata_value:",n)}return{}}const k6=e=>e>=.8?"bg-green-600":e>=.4?"bg-yellow-600":"bg-red-600",R0="Unassigned",DR=(e,t)=>{const n=[],i=[],r={};e.forEach(g=>{const{db_name:p,table_name:m,column_name:C,column_type:y,is_primary_key:x,is_unique_key:I,foreign_key:w,total_rows:R,empty_rows:E,encryption_type:S,attribute_mapping:M}=g;r[p]||(r[p]={}),r[p][m]||(r[p][m]={columns:[],primaryKey:[],uniqueKey:[],foreignKeys:[],metadata:{total_rows:R,empty_rows:E}}),r[p][m].columns.push({id:`${p}-${m}-${C}`,title:C,type:y||"varchar",is_primary_key:x&&x!=="0",is_unique_key:I&&I!=="0",encryption_type:S,attribute_mapping:M}),x&&x!=="0"&&r[p][m].primaryKey.push(C),I&&I!=="0"&&r[p][m].uniqueKey.push(C),w&&r[p][m].foreignKeys.push({column:C,reference:w})});const l=[];Object.keys(r).forEach(g=>{Object.keys(r[g]).forEach(p=>{l.push({dbName:g,tableName:p,table:r[g][p]})})});const c=l.length,u=Math.ceil(Math.sqrt(c)),d=50,f=75,h=new Array(u).fill(0);return l.forEach(({dbName:g,tableName:p,table:m},C)=>{const y=50+m.columns.length*30,x=C%u,I=x*(500+d),w=h[x];h[x]=w+y+f,n.push({id:`table-${g}-${p}`,type:"databaseSchema",position:{x:I,y:w},data:{id:`table-${g}-${p}`,label:p,db_name:g,metadata:m.metadata,schema:m.columns,selected:!1}})}),l.forEach(({dbName:g,tableName:p,table:m})=>{const C=`table-${g}-${p}`;m.foreignKeys.forEach(y=>{if(y.reference&&y.reference.includes(".")){const[x,I]=y.reference.split("."),w=r[g][x],R=m.columns.find(S=>S.title===y.column),E=w==null?void 0:w.columns.find(S=>S.title===I);if(w&&E){const S={id:`fk-edge-${C}-${y.column}`,source:C,sourceHandle:R==null?void 0:R.id,target:`table-${g}-${x}`,targetHandle:E==null?void 0:E.id,style:{strokeWidth:2,stroke:"lightblue"},type:"smoothstep",label:`FK: ${y.column} -> ${I}`};t&&(S.markerEnd={type:t.ArrowClosed,width:15,height:15,color:"skyblue"}),i.push(S)}}})}),{nodes:n,edges:i}},VR=()=>{const[e,t]=v.useState(()=>typeof window<"u"&&document.documentElement.classList.contains("dark"));return v.useEffect(()=>{const n=new MutationObserver(()=>{t(document.documentElement.classList.contains("dark"))});return n.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>n.disconnect()},[]),e},jR=({bulkActions:e,handleBulkAction:t,scanConnectorUuid:n,api:i,connectorMetadata:r,updateAttributeMappingForConnector:o,isScanRunning:s,isEditable:a,connectionType:l,loadScanReports:c,handleScanStatus:u,setActiveScreen:d,resetStates:f,activeConnector:h,activeReport:g})=>{var Nr;const{showLoader:p,hideLoader:m}=x2(),{showToast:C}=xc(),[y,x]=v.useState(!1),[I,w]=v.useState([]),[R,E]=v.useState([]),[S,M]=v.useState({}),[_,P]=v.useState(""),[N,B]=v.useState([]),[T,k]=v.useState(!1),[F,O]=v.useState(!1),[A,L]=v.useState(!1),[j,G]=v.useState(null),[H,$]=v.useState(),[J,le]=v.useState(!1),[he,Oe]=v.useState(!1),fe=v.useRef(null),ge=v.useRef(null),[we,ce]=v.useState({x:0,y:0,zoom:1}),z=v.useRef(!1),[Ne,ie]=v.useState(!1),[re,V]=v.useState(null),[oe,Y]=v.useState([]),[ne,te]=v.useState([]),ee=VR();v.useEffect(()=>{if(typeof window>"u")return;(async()=>{try{const q=await Promise.resolve().then(()=>require("./index-z3URHOIw.cjs"));V({ReactFlow:q.default,MiniMap:q.MiniMap,Background:q.Background,Handle:q.Handle,Position:q.Position,MarkerType:q.MarkerType,Controls:q.Controls,useNodesState:q.useNodesState,useEdgesState:q.useEdgesState}),ie(!0)}catch(q){console.error("Failed to load ReactFlow:",q)}})()},[]);const{nodes:se,edges:pe}=v.useMemo(()=>DR(S[_]||[],re==null?void 0:re.MarkerType),[_,S,R,re]),[ae,K,xe]=re!=null&&re.useNodesState?re.useNodesState(se):[oe.length>0?oe:se,Y,()=>{}],[Q,ve,Re]=re!=null&&re.useEdgesState?re.useEdgesState(pe):[ne.length>0?ne:pe,te,()=>{}];v.useEffect(()=>{re!=null&&re.useNodesState||Y(se)},[se,re]),v.useEffect(()=>{re!=null&&re.useEdgesState||te(pe)},[pe,re]);const $e=v.useRef({});v.useEffect(()=>{ae.forEach(Z=>{$e.current[Z.id]||($e.current[Z.id]={x:Z.position.x,y:Z.position.y})})},[ae]);const st=Z=>Z.map(q=>({...q,position:$e.current[q.id]||q.position})),He=Z=>!!Z&&typeof Z.x=="number"&&typeof Z.y=="number"&&typeof Z.zoom=="number"&&Z.zoom>.001&&Z.zoom<=2,et=v.useCallback((Z,q)=>{ce(q)},[]);v.useEffect(()=>{ge.current&&ae.length>0&&He(we)&&ge.current.setViewport(we)},[_]),v.useEffect(()=>{ge.current&&ae.length>0&&!z.current&&(ge.current.fitView({padding:.2,duration:800}),z.current=!0)},[ae.length]),v.useEffect(()=>{const Z=st(se.map(q=>N.find(ue=>ue.table===q.data.label&&ue.db_name===_)?{...q,data:{...q.data,selected:!0}}:q));K(Z),ve(pe)},[_,se]);const at=v.useMemo(()=>Hl(r??[]),[r]),fn=v.useMemo(()=>R6(r??[]),[r]);v.useEffect(()=>{(!r||r&&typeof at=="object")&&(n?(async()=>{var q;x(!1),p();try{const{data:ue}=await i.readIndexScanObjects(n),Ee=await i.readConfig({onlyActive:!0});w(Ee.data??[]);const D=(q=ue==null?void 0:ue.filter(X=>X.object_type==="table"))==null?void 0:q.map(X=>{const{result:me,skipDbName:Pe}=E6(X,at,l==="mssql"||l==="salesforce",l==="salesforce"?"Default":"");return Pe&&!F&&O(!0),me});E(D);const de=D.reduce((X,me)=>{const Pe=me.db_name;return X[Pe]||(X[Pe]=[]),X[Pe].push(me),X},{});de&&Object.keys(de).length>0&&(M(de),(!_||!de[_])&&P(Object.keys(de)[0])),x(!0)}catch(ue){console.error("Error fetching scan metadata:",ue),x(!0)}finally{m()}})():x(!0))},[n,r,at,i]);const ts=(Z,q)=>{const ue=Z.schema.filter(Ee=>Ee!==q);G({...Z,schema:[{...q},...ue]}),$(q.attribute_mapping),L(!0)},F2=v.useMemo(()=>{if(!re||!Ne)return{};const{Handle:Z,Position:q}=re;return{databaseSchema:v.memo(({data:ue})=>b.jsxs("div",{className:"border-[3px] overflow-hidden rounded-lg min-w-[300px] shadow-md",style:{backgroundColor:"var(--bg-color)",borderColor:ue.selected?"var(--brand-orange)":"transparent"},children:[b.jsx("div",{className:"text-white px-1 py-2 text-center",style:{backgroundColor:ue.selected?"#10b981":"var(--brand-orange)"},children:b.jsx("strong",{children:ue.label})}),b.jsxs("div",{className:"py-2",style:{backgroundColor:"var(--hover-bg-color)"},children:[b.jsxs("div",{className:"flex justify-between px-2 pb-1",children:[b.jsx("span",{className:"font-normal text-[11px]",style:{color:"var(--secondary-text-color)"},children:"Total Rows:"}),b.jsx("span",{className:"font-semibold text-[11px]",style:{color:"var(--text-color)"},children:ue.metadata.total_rows})]}),b.jsxs("div",{className:"flex justify-between px-2",style:{backgroundColor:"var(--hover-bg-color)"},children:[b.jsx("span",{className:"font-normal text-[11px]",style:{color:"var(--secondary-text-color)"},children:"Empty Rows:"}),b.jsx("span",{className:"font-semibold text-[11px]",style:{color:"var(--text-color)"},children:ue.metadata.empty_rows})]})]}),b.jsx("table",{className:"border-spacing-10 overflow-visible w-full",children:b.jsx("tbody",{children:ue.schema.map(Ee=>{var D,de,X,me,Pe,ot,rn,Xt,nu,iu;return b.jsxs("tr",{className:"relative text-xs py-1 px-2 h-7",style:{borderBottom:"1px solid var(--border-color)"},children:[b.jsxs("td",{className:"pr-6 font-light pl-2",style:{verticalAlign:"middle",color:"var(--text-color)"},children:[b.jsx(Z,{type:"target",position:q.Left,id:Ee.id}),b.jsxs("span",{className:"flex gap-1",children:[Ee.title,Ee.is_primary_key&&b.jsx(ng,{style:{color:"var(--text-color)"}}),Ee.is_unique_key&&b.jsx(K6,{style:{color:"var(--text-color)"}}),!!Ee.encryption_type&&b.jsx(ig,{style:{color:"var(--text-color)"}})]})]}),b.jsxs("td",{className:"text-right font-thin pr-2",style:{verticalAlign:"middle",color:"var(--secondary-text-color)"},children:[b.jsx("span",{children:Ee.type}),b.jsx(Z,{type:"source",position:q.Right,id:Ee.id})]}),b.jsxs("td",{className:"text-right font-thin pr-2 pl-4",style:{verticalAlign:"middle"},children:[b.jsx("div",{className:"flex items-center justify-end gap-2",children:((de=(D=fn[ue.label])==null?void 0:D[Ee.title])==null?void 0:de.confidence_score)!==void 0?b.jsx(hh,{confidenceData:((X=fn[ue.label])==null?void 0:X[Ee.title])||{},position:"top",children:b.jsxs("span",{className:`text-xs rounded p-1 text-white ${k6(((Pe=(me=fn[ue.label])==null?void 0:me[Ee.title])==null?void 0:Pe.confidence_score)||0)}`,children:[(((rn=(ot=fn[ue.label])==null?void 0:ot[Ee.title])==null?void 0:rn.confidence_score)*100).toFixed(0),"%"]})}):b.jsx(gr,{text:"Confidence score not available",position:"top",children:b.jsx("span",{className:"text-xs px-2 py-1 rounded-full cursor-pointer",style:{backgroundColor:"var(--hover-bg-color)",color:"var(--secondary-text-color)"},children:A6})})}),b.jsx(Z,{type:"source",position:q.Right,id:Ee.id})]}),b.jsxs("td",{className:"text-right font-thin pr-2 pl-4",style:{verticalAlign:"middle"},children:[b.jsx("div",{className:"flex items-center justify-end gap-2",children:b.jsx("span",{className:"underline cursor-pointer font-bold",style:{color:!((Xt=Ee.attribute_mapping)!=null&&Xt.value)||((nu=Ee.attribute_mapping)==null?void 0:nu.value)==="undefined"?"var(--secondary-text-color)":"var(--brand-orange)"},onClick:()=>ts(ue,Ee),children:((iu=Ee.attribute_mapping)==null?void 0:iu.label)??R0})}),b.jsx(Z,{type:"source",position:q.Right,id:Ee.id})]})]},Ee.title)})})})]})),default:v.memo(({data:ue})=>b.jsxs("div",{className:"p-2 rounded-lg text-center",style:{backgroundColor:"var(--hover-bg-color)",border:"1px solid var(--border-color)",color:"var(--text-color)"},children:[b.jsx("strong",{children:ue.label}),b.jsx(Z,{type:"source",position:q.Bottom,className:"-bottom-2",style:{backgroundColor:"var(--border-color)"}})]}))}},[re,Ne,ts,fn]),O2=()=>{if(H&&j){const Z=`${j.db_name}.${j.label}`,q=j.schema[0].title,Ee={...Hl(r??[])};Ee[Z]||(Ee[Z]={}),Ee[Z][q]=H,o(Ee,()=>{L(!1),$(void 0),G(null)})}},ns=async()=>{if(N.length===0){C(pt.WARNING,"Please select at least one table to scan.");return}if(await(s==null?void 0:s())){C(pt.WARNING,"A scan is already running. Please wait for it to complete.");return}le(!0)},is=async()=>{var Z,q,ue,Ee;try{Oe(!0);let D=h==null?void 0:h.connector_id;if(!D&&((q=(Z=g==null?void 0:g.scan)==null?void 0:Z.connectors)!=null&&q.length)){const me=g.scan.connectors.find(Pe=>Pe.uuid===n);me!=null&&me.connector_id&&(D=me.connector_id)}if(!D&&n)try{const me=await i.readScanReportDetails({arg:n});if((Ee=(ue=me==null?void 0:me.scan)==null?void 0:ue.connectors)!=null&&Ee.length){const Pe=me.scan.connectors.find(ot=>ot.uuid===n);Pe!=null&&Pe.connector_id&&(D=Pe.connector_id)}}catch(me){console.error("Error getting scan details for fallback:",me)}if(!D){C(pt.WARNING,"Unable to find connector ID for this scan.");return}const de=N.map(me=>`${me.db_name}.${me.table}`),X=await i.startSelectedTableScan({connectionType:l||"",indexScan:!1,connectorIDs:D,selectedTables:de});X&&!X.startsWith("Error:")?(C(pt.SUCCESS,"Selected table scan started successfully!"),le(!1),B([]),d&&d("reports"),f&&f(),setTimeout(()=>{c&&c(),u&&u()},1e3)):C(pt.ERROR,`Failed to start scan: ${X}`)}catch(D){console.error("Error starting selected table scan:",D),C(pt.ERROR,"Failed to start selected table scan. Please try again.")}finally{Oe(!1)}},qi=v.useCallback(Z=>{Z.forEach(q=>{q.type==="position"&&q.position&&q.id&&($e.current[q.id]=q.position)}),xe(Z)},[xe]),mi=N.reduce((Z,q)=>(Z[q.db_name]||(Z[q.db_name]=[]),Z[q.db_name].push(q.table),Z),{}),N2=v.useMemo(()=>Object.keys(S).map(Z=>{const q=new Set(S[Z].map(ue=>ue.table_name));return{value:Z,label:`${Z} (${q.size})`}}),[S,R]),Or=v.useMemo(()=>I!=null&&I.length?I.map(Z=>({value:Z.uuid,label:Z.name,countries:Z.country_data||[]})):[],[I]),bi=v.useMemo(()=>{var q;const Z=new Set(((q=S[_])==null?void 0:q.map(ue=>ue.table_name))||[]);return`${_} (${Z.size||0})`},[S,_]),rs=v.useMemo(()=>b.jsx("div",{className:"flex flex-col items-center gap-4",children:b.jsx("div",{className:"w-full py-2",children:b.jsx("div",{className:"max-h-60 overflow-y-auto rounded p-3",style:{border:"1px solid var(--border-color)",backgroundColor:"var(--hover-bg-color)"},children:Object.entries(mi).map(([Z,q])=>b.jsxs("div",{className:"mb-3",children:[b.jsxs("div",{className:"font-semibold mb-1",style:{color:"var(--text-color)"},children:["Database: ",Z]}),b.jsx("ul",{className:"ml-4",children:q.map(ue=>b.jsx("li",{className:"text-sm list-disc",style:{color:"var(--secondary-text-color)"},children:ue},ue))})]},Z))})})}),[N,mi]),os=v.useMemo(()=>b.jsxs("div",{className:"flex flex-col items-center gap-4",children:[I.length===0&&b.jsx(fh,{}),b.jsx("div",{className:"w-full flex items-center gap-4",style:{color:"var(--text-color)"},children:he?"Scanning Selected Tables...":"Are you sure you want to scan the following selected tables?"}),b.jsxs("div",{className:"w-full",children:[b.jsxs("div",{className:"text-sm font-medium mb-2",style:{color:"var(--text-color)"},children:["Selected Tables (",N.length,"):"]}),b.jsx("div",{className:"max-h-60 overflow-y-auto rounded p-3",style:{border:"1px solid var(--border-color)",backgroundColor:"var(--hover-bg-color)"},children:Object.entries(mi).map(([Z,q])=>b.jsxs("div",{className:"mb-3",children:[b.jsxs("div",{className:"font-semibold mb-1",style:{color:"var(--text-color)"},children:["Database: ",Z]}),b.jsx("ul",{className:"ml-4",children:q.map(ue=>b.jsx("li",{className:"text-sm list-disc",style:{color:"var(--secondary-text-color)"},children:ue},ue))})]},Z))})]}),b.jsx("div",{className:"w-full text-sm",style:{color:"var(--secondary-text-color)"},children:b.jsx("p",{children:"This will initiate a scan for only the selected tables, which may be faster than scanning the entire database."})})]}),[N,mi,he,I.length]),ss=({data:Z,isSelected:q})=>{let ue=null;if(Z.countries&&Z.countries.length>0){const D=Z.countries.slice(0,3),de=Z.countries.length>3,X=de?Z.countries.map(Pe=>Pe.country).join(", "):"",me=D.map((Pe,ot)=>b.jsxs("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs border-[1px] flex-shrink-0",style:{borderColor:q?"white":"var(--brand-orange)",color:q?"white":"var(--brand-orange)"},children:[b.jsx(eg,{className:"mr-1 h-2.5 w-2.5 flex-shrink-0",style:{color:q?"white":"var(--brand-orange)"}}),b.jsx("span",{className:"truncate max-w-[80px]",children:Pe.country})]},`${Z.value}-${Pe.id}-${ot}`));de?ue=b.jsxs("div",{className:"flex items-center gap-1 ml-2 whitespace-nowrap",children:[me,b.jsx(gr,{text:X,position:"top",children:b.jsxs("span",{className:"text-xs cursor-pointer flex-shrink-0 px-1",style:{color:q?"white":"var(--secondary-text-color)"},children:["+",Z.countries.length-3," more"]})})]}):ue=b.jsx("div",{className:"flex items-center gap-1 ml-2 whitespace-nowrap",children:me})}return b.jsxs("div",{className:"flex items-center w-full min-w-0",children:[b.jsx("div",{className:`font-medium whitespace-nowrap mr-1 ${q?"text-white":""}`,children:Z.label}),ue]})},as=v.useMemo(()=>{const Z=H?Or.find(ue=>ue.value===H.value):null,q={value:(H==null?void 0:H.value)||"undefined",label:(Z==null?void 0:Z.label)??R0,countries:(Z==null?void 0:Z.countries)||[]};return b.jsx(Po,{className:"min-w-[400px] text-sm mt-2",menuPosition:"fixed",placeholder:"Select an attribute",options:[{label:R0,value:"undefined"},...Or],handleChange:ue=>{$(ue??void 0)},selectedOptions:[q],isMulti:!1,isClearable:!1,customOptionRenderer:ue=>b.jsx(ss,{...ue}),customStyles:{menu:ue=>({...ue,width:"auto",minWidth:"100%"}),option:(ue,Ee)=>({...ue,backgroundColor:Ee.isSelected?"var(--brand-orange)":ue.backgroundColor,color:Ee.isSelected?"#fff":ue.color,cursor:"pointer",whiteSpace:"normal",minHeight:"40px",":active":{backgroundColor:Ee.isSelected?"var(--brand-orange)":ue.backgroundColor}})}})},[Or,H]);return!R||R.length===0||!y?b.jsx("div",{className:"flex items-center gap-2 p-6 mt-2 text-lg font-semibold rounded-lg shadow-sm",style:{backgroundColor:"var(--hover-bg-color)",border:"1px solid var(--border-color)",color:"var(--text-color)"},children:y&&b.jsxs(b.Fragment,{children:[b.jsx(pa,{className:"w-6 h-6",style:{color:"var(--secondary-text-color)"}}),b.jsx("span",{children:"No metadata available to display."})]})}):b.jsxs("div",{style:{width:"100%",height:"80vh",overflow:"hidden"},className:"dbschema-wrapper",children:[b.jsx("div",{children:b.jsxs("div",{className:"flex justify-between items-center",children:[b.jsxs("div",{className:"py-2 flex items-center",children:[b.jsx("h2",{className:"text-lg font-semibold mr-3",children:"Databases"}),b.jsx(Po,{className:"w-52 text-sm",placeholder:"Select a database",options:N2,selectedOptions:[{value:_,label:bi}],handleChange:Z=>Z&&P(Z.value),isMulti:!1,isClearable:!1})]}),N.length>0&&b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("button",{onClick:()=>{k(!0)},className:"bg-brand-primary text-white px-4 py-2 rounded transition-colors duration-150 shadow-sm font-medium footer-button mr-2",style:{minWidth:140},children:"View Selections"}),b.jsx("button",{onClick:ns,className:"bg-brand-primary text-white px-4 py-2 rounded transition-colors duration-150 shadow-sm font-medium footer-button",style:{minWidth:170},disabled:!a,children:"Scan Selected Tables"})]})]})}),!Ne||!re?b.jsx("div",{className:"flex items-center justify-center",style:{maxHeight:N.length>0?"84%":"90%",minHeight:"400px",backgroundColor:"var(--bg-color)",border:"1px solid var(--border-color)",borderRadius:"8px"},children:b.jsxs("div",{className:"flex flex-col items-center gap-2",children:[b.jsx(pa,{className:"w-6 h-6",style:{color:"var(--secondary-text-color)"}}),b.jsx("span",{style:{color:"var(--text-color)"},children:"Loading schema browser..."})]})}):b.jsxs(re.ReactFlow,{ref:fe,onInit:Z=>{ge.current=Z,z.current||(Z.fitView({padding:.2,duration:800,minZoom:.15}),Z.setViewport({x:50,y:50,zoom:.15}),z.current=!0)},nodes:ae,edges:Q,onNodesChange:qi,onEdgesChange:Re,onMove:et,nodeTypes:F2,style:{maxHeight:N.length>0?"84%":"90%"},unselectable:"on",minZoom:.001,maxZoom:2,zoomOnDoubleClick:!1,defaultViewport:we,fitViewOptions:{padding:.2},fitView:!(ae.length>70),proOptions:{hideAttribution:!0},onNodeClick:(Z,q)=>{q.type==="default"||!a||(N.find(ue=>ue.db_name===_&&ue.table===q.data.label)?B(ue=>ue.filter(Ee=>!(Ee.db_name===_&&Ee.table===q.data.label))):B(ue=>[...ue,{db_name:_,table:q.data.label}]),K(ue=>ue.map(Ee=>{var D;return Ee.id===q.id?{...Ee,data:{...Ee.data,selected:!((D=Ee.data)!=null&&D.selected)}}:Ee})))},children:[b.jsx(re.MiniMap,{style:{background:"var(--bg-color)",border:"1px solid var(--border-color)",borderRadius:6},nodeColor:Z=>"var(--brand-orange)",maskColor:ee?"rgba(44, 44, 44, 0.6)":"rgba(218, 224, 232, 0.6)"}),b.jsx(re.Background,{}),b.jsx(re.Controls,{})]}),b.jsx(ar,{isOpen:T,title:"Selected Tables",customFooter:b.jsx("div",{className:"flex justify-end",children:b.jsx("button",{onClick:()=>{k(!1)},className:"bg-gray-100 text-gray-700 px-4 py-2 rounded hover:bg-gray-300 border border-gray-300 dark:bg-gray-800 dark:text-gray-100 dark:hover:bg-white dark:border-gray-400 footer-button",children:"Close"})}),onClose:()=>{k(!1)},body:rs,cancelButtonText:"Cancel"}),A&&j&&b.jsx(ar,{onClose:()=>L(!1),title:`${j.db_name}.${j.label}`,isOpen:A,isUuidSubtitle:!1,subtitle:b.jsxs("div",{className:"flex flex-col gap-1",children:[b.jsxs("div",{className:"flex gap-1 items-center",children:[b.jsx("b",{className:"text-black dark:text-gray-200",children:"Column Name:"}),b.jsx("span",{className:"dark:text-gray-300",children:j.schema[0].title})]}),b.jsxs("div",{className:"flex gap-1 items-center",children:[b.jsx("b",{className:"text-black dark:text-gray-200",children:"Current Mapping:"}),b.jsx("span",{className:"dark:text-gray-300",children:((Nr=j.schema[0].attribute_mapping)==null?void 0:Nr.label)??"-"})]})]}),body:as,onConfirm:O2}),b.jsx(ar,{isOpen:J,title:"Scan Selected Tables",onClose:()=>{he||le(!1)},onConfirm:()=>{he||is()},confirmButtonText:he?"Scanning...":"Start Scan",disableConfirm:he,body:os,customWidth:"w-full max-w-lg",customFooter:b.jsxs("div",{className:"flex justify-between mt-4 space-x-2",children:[b.jsx("button",{onClick:()=>{he||le(!1)},disabled:he,className:"bg-gray-100 text-gray-700 px-4 py-2 rounded hover:bg-gray-300 border border-gray-300 dark:bg-gray-800 dark:text-gray-100 dark:hover:bg-white dark:border-gray-400 footer-button",children:"Cancel"}),b.jsx("button",{onClick:()=>{he||is()},disabled:he,className:"bg-brand-primary text-white px-4 py-2 rounded-md hover:bg-[#0b86e6] footer-button",children:he?"Scanning...":"Start Scan"})]})})]})},BR="data:image/svg+xml,%3csvg%20width='480'%20height='85'%20viewBox='0%200%20480%2085'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='xMinYMid%20meet'%3e%3cpath%20d='M48.6448%2012.0775L40.9465%207.80469L11.7295%2024.9191C9.15284%2052.6189%2018.7082%2071.6223%2035.081%2082.6271C20.2649%2065.6636%2017.8134%2040.0395%2018.9765%2029.482L48.6448%2012.0775Z'%20fill='%23FF6503'/%3e%3cpath%20d='M58.163%206.39894L50.3792%202.3728L42.6836%206.80882L50.3068%2011.0328L58.163%206.39894Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M27.5232%2034.0452C23.4435%2059.5977%2030.8336%2077.08%2035.0386%2082.6272C35.0386%2082.6272%2033.7332%2077.5916%2033.1595%2074.3123C30.7189%2060.3615%2031.6833%2050.4718%2034.5016%2038.0713L65.3684%2020.3563C64.6742%2030.9236%2058.8596%2053.6481%2042.0229%2068.532C49.9949%2064.8357%2060.4902%2058.794%2064.1665%2052.0229C63.9761%2052.437%2065.5692%2049.5794%2065.3684%2049.9853C72.6494%2035.8555%2073.6399%2023.9785%2073.6892%2015.2564L66.1738%2010.9619L27.5232%2034.0452Z'%20fill='%23FF6503'/%3e%3cpath%20d='M63.0229%2054.6719C56.7853%2065.8166%2033.207%2074.5909%2033.207%2074.5909C33.207%2074.5909%2033.4213%2076.1014%2033.9555%2078.2836C34.4897%2080.4658%2035.0263%2082.6084%2035.0263%2082.6084C42.7193%2078.6579%2054.6229%2070.4325%2063.0229%2054.6719Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M468.223%2085V62.1985C466.739%2063.3228%20465.075%2064.1998%20463.231%2064.8294C461.387%2065.504%20459.386%2065.8413%20457.227%2065.8413C453.45%2065.8413%20450.032%2064.8744%20446.973%2062.9406C443.915%2061.0067%20441.464%2058.4432%20439.62%2055.2501C437.821%2052.012%20436.922%2048.4366%20436.922%2044.5239C436.922%2040.6112%20437.821%2037.0359%20439.62%2033.7978C441.464%2030.5597%20443.915%2027.9962%20446.973%2026.1073C450.032%2024.1735%20453.45%2023.2065%20457.227%2023.2065C459.791%2023.2065%20462.152%2023.6563%20464.311%2024.5557C466.469%2025.4552%20468.313%2026.692%20469.842%2028.266V24.2859H479.961V85H468.223ZM458.577%2055.5199C460.555%2055.5199%20462.354%2055.0252%20463.973%2054.0358C465.592%2053.0464%20466.874%2051.7197%20467.819%2050.0557C468.808%2048.3916%20469.303%2046.5477%20469.303%2044.5239C469.303%2042.5001%20468.808%2040.6562%20467.819%2038.9922C466.874%2037.3282%20465.592%2036.0015%20463.973%2035.0121C462.354%2034.0226%20460.555%2033.5279%20458.577%2033.5279C456.598%2033.5279%20454.799%2034.0226%20453.18%2035.0121C451.561%2036.0015%20450.256%2037.3282%20449.267%2038.9922C448.323%2040.6562%20447.85%2042.5001%20447.85%2044.5239C447.85%2046.5477%20448.323%2048.3916%20449.267%2050.0557C450.256%2051.7197%20451.561%2053.0464%20453.18%2054.0358C454.799%2055.0252%20456.598%2055.5199%20458.577%2055.5199Z'%20fill='%23FF6503'/%3e%3cpath%20d='M418.211%2064.7618V24.2857H429.949V64.7618H418.211ZM424.08%2018.4167C422.326%2018.4167%20420.842%2017.8096%20419.628%2016.5953C418.414%2015.381%20417.807%2013.8969%20417.807%2012.1429C417.807%2010.344%20418.414%208.85987%20419.628%207.69056C420.842%206.47628%20422.326%205.86914%20424.08%205.86914C425.879%205.86914%20427.363%206.47628%20428.533%207.69056C429.747%208.85987%20430.354%2010.344%20430.354%2012.1429C430.354%2013.8969%20429.747%2015.381%20428.533%2016.5953C427.363%2017.8096%20425.879%2018.4167%20424.08%2018.4167Z'%20fill='%23FF6503'/%3e%3cpath%20d='M387.055%2064.7617V24.2856H397.578V31.234C398.973%2028.8954%20400.727%2027.0965%20402.84%2025.8372C404.999%2024.533%20407.518%2023.8809%20410.396%2023.8809L412.959%2034.2697C412.105%2033.9999%20411.138%2033.865%20410.059%2033.865C406.686%2033.865%20403.965%2034.9668%20401.896%2037.1705C399.827%2039.3292%20398.793%2042.4324%20398.793%2046.48V64.7617H387.055Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M361.455%2066.1107C356.913%2066.1107%20352.91%2065.1663%20349.447%2063.2774C345.984%2061.3885%20343.286%2058.8026%20341.352%2055.5195C339.418%2052.1915%20338.451%2048.3912%20338.451%2044.1188C338.451%2040.0262%20339.396%2036.4058%20341.284%2033.2577C343.173%2030.0646%20345.714%2027.5461%20348.907%2025.7021C352.146%2023.8582%20355.721%2022.9363%20359.634%2022.9363C363.636%2022.9363%20367.212%2023.8582%20370.36%2025.7021C373.508%2027.5011%20375.981%2029.9746%20377.78%2033.1228C379.624%2036.2709%20380.546%2039.8463%20380.546%2043.8489V47.964H355.856C354.732%2047.964%20353.652%2047.8965%20352.618%2047.7616C351.583%2047.6267%20350.549%2047.4693%20349.515%2047.2894C350.054%2049.9878%20351.381%2052.1915%20353.495%2053.9005C355.653%2055.5645%20358.397%2056.3965%20361.725%2056.3965C364.288%2056.3965%20366.582%2055.8793%20368.606%2054.8449C370.675%2053.8105%20372.361%2052.5288%20373.665%2050.9997L376.229%2061.5235C374.205%2063.0526%20371.911%2064.1994%20369.348%2064.9639C366.829%2065.7285%20364.198%2066.1107%20361.455%2066.1107ZM349.245%2040.2061C351.493%2039.7114%20353.697%2039.464%20355.856%2039.464H363.007C364.266%2039.464%20365.458%2039.509%20366.582%2039.5989C367.706%2039.6889%20368.763%2039.8463%20369.753%2040.0711C369.078%2037.6426%20367.841%2035.7312%20366.042%2034.337C364.288%2032.9429%20362.107%2032.2458%20359.499%2032.2458C357.025%2032.2458%20354.866%2032.9654%20353.023%2034.4045C351.224%2035.7987%20349.964%2037.7325%20349.245%2040.2061Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M315.456%2066.7855L293.262%2024.2856H306.282L312.623%2037.3054C313.207%2038.4298%20313.747%2039.5541%20314.242%2040.6784C314.737%2041.7578%20315.231%2042.9946%20315.726%2044.3888C316.221%2042.9946%20316.715%2041.7578%20317.21%2040.6784C317.705%2039.5541%20318.244%2038.4298%20318.829%2037.3054L325.17%2024.2856H337.65L315.456%2066.7855Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M269.9%2066.1107C265.897%2066.1107%20262.232%2065.1438%20258.904%2063.21C255.576%2061.2761%20252.923%2058.6677%20250.944%2055.3846C249.01%2052.1015%20248.043%2048.4812%20248.043%2044.5235C248.043%2040.5209%20249.01%2036.9005%20250.944%2033.6624C252.923%2030.3794%20255.576%2027.7709%20258.904%2025.8371C262.232%2023.9032%20265.897%2022.9363%20269.9%2022.9363C273.948%2022.9363%20277.613%2023.9032%20280.896%2025.8371C284.224%2027.7709%20286.855%2030.3794%20288.789%2033.6624C290.768%2036.9005%20291.757%2040.5209%20291.757%2044.5235C291.757%2048.4812%20290.768%2052.1015%20288.789%2055.3846C286.855%2058.6677%20284.224%2061.2761%20280.896%2063.21C277.613%2065.1438%20273.948%2066.1107%20269.9%2066.1107ZM269.9%2055.587C271.924%2055.587%20273.745%2055.0923%20275.364%2054.1028C277.028%2053.1134%20278.333%2051.7867%20279.277%2050.1227C280.266%2048.4137%20280.761%2046.5473%20280.761%2044.5235C280.761%2042.4547%20280.266%2040.5883%20279.277%2038.9243C278.333%2037.2603%20277.028%2035.9336%20275.364%2034.9442C273.745%2033.9548%20271.924%2033.4601%20269.9%2033.4601C267.876%2033.4601%20266.032%2033.9548%20264.368%2034.9442C262.749%2035.9336%20261.445%2037.2603%20260.456%2038.9243C259.511%2040.5883%20259.039%2042.4547%20259.039%2044.5235C259.039%2046.5473%20259.511%2048.4137%20260.456%2050.1227C261.445%2051.7867%20262.749%2053.1134%20264.368%2054.1028C266.032%2055.0923%20267.876%2055.587%20269.9%2055.587Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M229.394%2066.1107C225.392%2066.1107%20221.726%2065.1438%20218.398%2063.21C215.07%2061.2761%20212.417%2058.6677%20210.438%2055.3846C208.504%2052.1015%20207.537%2048.4812%20207.537%2044.5235C207.537%2040.5209%20208.504%2036.9005%20210.438%2033.6624C212.417%2030.3794%20215.07%2027.7709%20218.398%2025.8371C221.726%2023.9032%20225.392%2022.9363%20229.394%2022.9363C232.183%2022.9363%20234.813%2023.4085%20237.287%2024.3529C239.806%2025.2524%20242.032%2026.6016%20243.966%2028.4005L240.93%2040.341C239.806%2038.4971%20238.299%2036.9005%20236.41%2035.5513C234.566%2034.1571%20232.385%2033.4601%20229.866%2033.4601C227.753%2033.4601%20225.864%2033.9548%20224.2%2034.9442C222.536%2035.9336%20221.232%2037.2603%20220.287%2038.9243C219.343%2040.5883%20218.87%2042.4547%20218.87%2044.5235C218.87%2046.5473%20219.343%2048.4137%20220.287%2050.1227C221.232%2051.7867%20222.536%2053.1134%20224.2%2054.1028C225.864%2055.0923%20227.753%2055.587%20229.866%2055.587C232.385%2055.587%20234.566%2054.9124%20236.41%2053.5632C238.299%2052.169%20239.806%2050.55%20240.93%2048.706L243.966%2060.6465C242.032%2062.4454%20239.806%2063.8171%20237.287%2064.7615C234.813%2065.661%20232.183%2066.1107%20229.394%2066.1107Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M187.086%2066.1107C184.343%2066.1107%20181.555%2065.661%20178.721%2064.7615C175.933%2063.8621%20173.752%2062.6478%20172.178%2061.1187L175.079%2050.0552C176.383%2051.8542%20178.182%2053.4283%20180.475%2054.7775C182.814%2056.1267%20185.22%2056.8013%20187.694%2056.8013C189.358%2056.8013%20190.549%2056.4864%20191.269%2055.8568C192.033%2055.2272%20192.416%2054.4626%20192.416%2053.5632C192.416%2052.5288%20192.033%2051.7867%20191.269%2051.337C190.504%2050.8423%20189.717%2050.4375%20188.908%2050.1227L183.241%2047.964C181.982%2047.4693%20180.543%2046.7947%20178.924%2045.9402C177.305%2045.0857%20175.888%2043.8714%20174.674%2042.2973C173.504%2040.7233%20172.92%2038.6545%20172.92%2036.091C172.92%2033.7524%20173.504%2031.5937%20174.674%2029.6148C175.843%2027.636%20177.53%2026.0394%20179.733%2024.8252C181.982%2023.5659%20184.68%2022.9363%20187.828%2022.9363C190.752%2022.9363%20193.473%2023.431%20195.991%2024.4204C198.555%2025.4098%20200.421%2026.5117%20201.59%2027.7259L198.892%2038.3846C197.363%2036.4058%20195.541%2034.8992%20193.428%2033.8648C191.359%2032.7855%20189.38%2032.2458%20187.491%2032.2458C186.052%2032.2458%20184.995%2032.5381%20184.321%2033.1228C183.646%2033.7074%20183.309%2034.382%20183.309%2035.1466C183.309%2035.7312%20183.534%2036.3159%20183.983%2036.9005C184.478%2037.4402%20185.287%2037.9349%20186.412%2038.3846L191.674%2040.341C193.203%2040.8807%20194.822%2041.6002%20196.531%2042.4997C198.285%2043.3992%20199.769%2044.6584%20200.983%2046.2775C202.197%2047.8515%20202.805%2050.0328%20202.805%2052.8211C202.805%2056.7338%20201.343%2059.9269%20198.42%2062.4004C195.541%2064.874%20191.764%2066.1107%20187.086%2066.1107Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M153.061%2064.7618V24.2857H164.799V64.7618H153.061ZM158.93%2018.4167C157.176%2018.4167%20155.692%2017.8096%20154.478%2016.5953C153.263%2015.381%20152.656%2013.8969%20152.656%2012.1429C152.656%2010.344%20153.263%208.85987%20154.478%207.69056C155.692%206.47628%20157.176%205.86914%20158.93%205.86914C160.729%205.86914%20162.213%206.47628%20163.382%207.69056C164.597%208.85987%20165.204%2010.344%20165.204%2012.1429C165.204%2013.8969%20164.597%2015.381%20163.382%2016.5953C162.213%2017.8096%20160.729%2018.4167%20158.93%2018.4167Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M121.307%2065.8411C117.53%2065.8411%20114.112%2064.8741%20111.054%2062.9403C107.995%2061.0064%20105.544%2058.4429%20103.7%2055.2498C101.901%2052.0117%20101.002%2048.4364%20101.002%2044.5237C101.002%2040.611%20101.901%2037.0356%20103.7%2033.7975C105.544%2030.5594%20107.995%2027.9959%20111.054%2026.1071C114.112%2024.1732%20117.53%2023.2063%20121.307%2023.2063C123.466%2023.2063%20125.467%2023.5211%20127.311%2024.1507C129.155%2024.7804%20130.819%2025.6798%20132.303%2026.8491V0H144.042V64.7617H133.922V60.7816C132.393%2062.3556%20130.549%2063.5924%20128.391%2064.4919C126.232%2065.3913%20123.871%2065.8411%20121.307%2065.8411ZM122.657%2055.5197C124.635%2055.5197%20126.434%2055.025%20128.053%2054.0355C129.672%2053.0461%20130.954%2051.7194%20131.899%2050.0554C132.888%2048.3914%20133.383%2046.5475%20133.383%2044.5237C133.383%2042.4999%20132.888%2040.656%20131.899%2038.9919C130.954%2037.3279%20129.672%2036.0012%20128.053%2035.0118C126.434%2034.0224%20124.635%2033.5277%20122.657%2033.5277C120.678%2033.5277%20118.879%2034.0224%20117.26%2035.0118C115.641%2036.0012%20114.337%2037.3279%20113.347%2038.9919C112.403%2040.656%20111.93%2042.4999%20111.93%2044.5237C111.93%2046.5475%20112.403%2048.3914%20113.347%2050.0554C114.337%2051.7194%20115.641%2053.0461%20117.26%2054.0355C118.879%2055.025%20120.678%2055.5197%20122.657%2055.5197Z'%20fill='%233A3A3A'/%3e%3c/svg%3e",$R="data:image/svg+xml,%3csvg%20width='480'%20height='85'%20viewBox='0%200%20480%2085'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='xMinYMid%20meet'%3e%3cpath%20d='M48.6448%2012.0775L40.9465%207.80469L11.7295%2024.9191C9.15284%2052.6189%2018.7082%2071.6223%2035.081%2082.6271C20.2649%2065.6636%2017.8134%2040.0395%2018.9765%2029.482L48.6448%2012.0775Z'%20fill='%23FF6503'/%3e%3cpath%20d='M58.163%206.39894L50.3792%202.3728L42.6836%206.80882L50.3068%2011.0328L58.163%206.39894Z'%20fill='%23ffffff'/%3e%3cpath%20d='M27.5232%2034.0452C23.4435%2059.5977%2030.8336%2077.08%2035.0386%2082.6272C35.0386%2082.6272%2033.7332%2077.5916%2033.1595%2074.3123C30.7189%2060.3615%2031.6833%2050.4718%2034.5016%2038.0713L65.3684%2020.3563C64.6742%2030.9236%2058.8596%2053.6481%2042.0229%2068.532C49.9949%2064.8357%2060.4902%2058.794%2064.1665%2052.0229C63.9761%2052.437%2065.5692%2049.5794%2065.3684%2049.9853C72.6494%2035.8555%2073.6399%2023.9785%2073.6892%2015.2564L66.1738%2010.9619L27.5232%2034.0452Z'%20fill='%23FF6503'/%3e%3cpath%20d='M63.0229%2054.6719C56.7853%2065.8166%2033.207%2074.5909%2033.207%2074.5909C33.207%2074.5909%2033.4213%2076.1014%2033.9555%2078.2836C34.4897%2080.4658%2035.0263%2082.6084%2035.0263%2082.6084C42.7193%2078.6579%2054.6229%2070.4325%2063.0229%2054.6719Z'%20fill='%23ffffff'/%3e%3cpath%20d='M468.223%2085V62.1985C466.739%2063.3228%20465.075%2064.1998%20463.231%2064.8294C461.387%2065.504%20459.386%2065.8413%20457.227%2065.8413C453.45%2065.8413%20450.032%2064.8744%20446.973%2062.9406C443.915%2061.0067%20441.464%2058.4432%20439.62%2055.2501C437.821%2052.012%20436.922%2048.4366%20436.922%2044.5239C436.922%2040.6112%20437.821%2037.0359%20439.62%2033.7978C441.464%2030.5597%20443.915%2027.9962%20446.973%2026.1073C450.032%2024.1735%20453.45%2023.2065%20457.227%2023.2065C459.791%2023.2065%20462.152%2023.6563%20464.311%2024.5557C466.469%2025.4552%20468.313%2026.692%20469.842%2028.266V24.2859H479.961V85H468.223ZM458.577%2055.5199C460.555%2055.5199%20462.354%2055.0252%20463.973%2054.0358C465.592%2053.0464%20466.874%2051.7197%20467.819%2050.0557C468.808%2048.3916%20469.303%2046.5477%20469.303%2044.5239C469.303%2042.5001%20468.808%2040.6562%20467.819%2038.9922C466.874%2037.3282%20465.592%2036.0015%20463.973%2035.0121C462.354%2034.0226%20460.555%2033.5279%20458.577%2033.5279C456.598%2033.5279%20454.799%2034.0226%20453.18%2035.0121C451.561%2036.0015%20450.256%2037.3282%20449.267%2038.9922C448.323%2040.6562%20447.85%2042.5001%20447.85%2044.5239C447.85%2046.5477%20448.323%2048.3916%20449.267%2050.0557C450.256%2051.7197%20451.561%2053.0464%20453.18%2054.0358C454.799%2055.0252%20456.598%2055.5199%20458.577%2055.5199Z'%20fill='%23FF6503'/%3e%3cpath%20d='M418.211%2064.7618V24.2857H429.949V64.7618H418.211ZM424.08%2018.4167C422.326%2018.4167%20420.842%2017.8096%20419.628%2016.5953C418.414%2015.381%20417.807%2013.8969%20417.807%2012.1429C417.807%2010.344%20418.414%208.85987%20419.628%207.69056C420.842%206.47628%20422.326%205.86914%20424.08%205.86914C425.879%205.86914%20427.363%206.47628%20428.533%207.69056C429.747%208.85987%20430.354%2010.344%20430.354%2012.1429C430.354%2013.8969%20429.747%2015.381%20428.533%2016.5953C427.363%2017.8096%20425.879%2018.4167%20424.08%2018.4167Z'%20fill='%23FF6503'/%3e%3cpath%20d='M387.055%2064.7617V24.2856H397.578V31.234C398.973%2028.8954%20400.727%2027.0965%20402.84%2025.8372C404.999%2024.533%20407.518%2023.8809%20410.396%2023.8809L412.959%2034.2697C412.105%2033.9999%20411.138%2033.865%20410.059%2033.865C406.686%2033.865%20403.965%2034.9668%20401.896%2037.1705C399.827%2039.3292%20398.793%2042.4324%20398.793%2046.48V64.7617H387.055Z'%20fill='%23ffffff'/%3e%3cpath%20d='M361.455%2066.1107C356.913%2066.1107%20352.91%2065.1663%20349.447%2063.2774C345.984%2061.3885%20343.286%2058.8026%20341.352%2055.5195C339.418%2052.1915%20338.451%2048.3912%20338.451%2044.1188C338.451%2040.0262%20339.396%2036.4058%20341.284%2033.2577C343.173%2030.0646%20345.714%2027.5461%20348.907%2025.7021C352.146%2023.8582%20355.721%2022.9363%20359.634%2022.9363C363.636%2022.9363%20367.212%2023.8582%20370.36%2025.7021C373.508%2027.5011%20375.981%2029.9746%20377.78%2033.1228C379.624%2036.2709%20380.546%2039.8463%20380.546%2043.8489V47.964H355.856C354.732%2047.964%20353.652%2047.8965%20352.618%2047.7616C351.583%2047.6267%20350.549%2047.4693%20349.515%2047.2894C350.054%2049.9878%20351.381%2052.1915%20353.495%2053.9005C355.653%2055.5645%20358.397%2056.3965%20361.725%2056.3965C364.288%2056.3965%20366.582%2055.8793%20368.606%2054.8449C370.675%2053.8105%20372.361%2052.5288%20373.665%2050.9997L376.229%2061.5235C374.205%2063.0526%20371.911%2064.1994%20369.348%2064.9639C366.829%2065.7285%20364.198%2066.1107%20361.455%2066.1107ZM349.245%2040.2061C351.493%2039.7114%20353.697%2039.464%20355.856%2039.464H363.007C364.266%2039.464%20365.458%2039.509%20366.582%2039.5989C367.706%2039.6889%20368.763%2039.8463%20369.753%2040.0711C369.078%2037.6426%20367.841%2035.7312%20366.042%2034.337C364.288%2032.9429%20362.107%2032.2458%20359.499%2032.2458C357.025%2032.2458%20354.866%2032.9654%20353.023%2034.4045C351.224%2035.7987%20349.964%2037.7325%20349.245%2040.2061Z'%20fill='%23ffffff'/%3e%3cpath%20d='M315.456%2066.7855L293.262%2024.2856H306.282L312.623%2037.3054C313.207%2038.4298%20313.747%2039.5541%20314.242%2040.6784C314.737%2041.7578%20315.231%2042.9946%20315.726%2044.3888C316.221%2042.9946%20316.715%2041.7578%20317.21%2040.6784C317.705%2039.5541%20318.244%2038.4298%20318.829%2037.3054L325.17%2024.2856H337.65L315.456%2066.7855Z'%20fill='%23ffffff'/%3e%3cpath%20d='M269.9%2066.1107C265.897%2066.1107%20262.232%2065.1438%20258.904%2063.21C255.576%2061.2761%20252.923%2058.6677%20250.944%2055.3846C249.01%2052.1015%20248.043%2048.4812%20248.043%2044.5235C248.043%2040.5209%20249.01%2036.9005%20250.944%2033.6624C252.923%2030.3794%20255.576%2027.7709%20258.904%2025.8371C262.232%2023.9032%20265.897%2022.9363%20269.9%2022.9363C273.948%2022.9363%20277.613%2023.9032%20280.896%2025.8371C284.224%2027.7709%20286.855%2030.3794%20288.789%2033.6624C290.768%2036.9005%20291.757%2040.5209%20291.757%2044.5235C291.757%2048.4812%20290.768%2052.1015%20288.789%2055.3846C286.855%2058.6677%20284.224%2061.2761%20280.896%2063.21C277.613%2065.1438%20273.948%2066.1107%20269.9%2066.1107ZM269.9%2055.587C271.924%2055.587%20273.745%2055.0923%20275.364%2054.1028C277.028%2053.1134%20278.333%2051.7867%20279.277%2050.1227C280.266%2048.4137%20280.761%2046.5473%20280.761%2044.5235C280.761%2042.4547%20280.266%2040.5883%20279.277%2038.9243C278.333%2037.2603%20277.028%2035.9336%20275.364%2034.9442C273.745%2033.9548%20271.924%2033.4601%20269.9%2033.4601C267.876%2033.4601%20266.032%2033.9548%20264.368%2034.9442C262.749%2035.9336%20261.445%2037.2603%20260.456%2038.9243C259.511%2040.5883%20259.039%2042.4547%20259.039%2044.5235C259.039%2046.5473%20259.511%2048.4137%20260.456%2050.1227C261.445%2051.7867%20262.749%2053.1134%20264.368%2054.1028C266.032%2055.0923%20267.876%2055.587%20269.9%2055.587Z'%20fill='%23ffffff'/%3e%3cpath%20d='M229.394%2066.1107C225.392%2066.1107%20221.726%2065.1438%20218.398%2063.21C215.07%2061.2761%20212.417%2058.6677%20210.438%2055.3846C208.504%2052.1015%20207.537%2048.4812%20207.537%2044.5235C207.537%2040.5209%20208.504%2036.9005%20210.438%2033.6624C212.417%2030.3794%20215.07%2027.7709%20218.398%2025.8371C221.726%2023.9032%20225.392%2022.9363%20229.394%2022.9363C232.183%2022.9363%20234.813%2023.4085%20237.287%2024.3529C239.806%2025.2524%20242.032%2026.6016%20243.966%2028.4005L240.93%2040.341C239.806%2038.4971%20238.299%2036.9005%20236.41%2035.5513C234.566%2034.1571%20232.385%2033.4601%20229.866%2033.4601C227.753%2033.4601%20225.864%2033.9548%20224.2%2034.9442C222.536%2035.9336%20221.232%2037.2603%20220.287%2038.9243C219.343%2040.5883%20218.87%2042.4547%20218.87%2044.5235C218.87%2046.5473%20219.343%2048.4137%20220.287%2050.1227C221.232%2051.7867%20222.536%2053.1134%20224.2%2054.1028C225.864%2055.0923%20227.753%2055.587%20229.866%2055.587C232.385%2055.587%20234.566%2054.9124%20236.41%2053.5632C238.299%2052.169%20239.806%2050.55%20240.93%2048.706L243.966%2060.6465C242.032%2062.4454%20239.806%2063.8171%20237.287%2064.7615C234.813%2065.661%20232.183%2066.1107%20229.394%2066.1107Z'%20fill='%23ffffff'/%3e%3cpath%20d='M187.086%2066.1107C184.343%2066.1107%20181.555%2065.661%20178.721%2064.7615C175.933%2063.8621%20173.752%2062.6478%20172.178%2061.1187L175.079%2050.0552C176.383%2051.8542%20178.182%2053.4283%20180.475%2054.7775C182.814%2056.1267%20185.22%2056.8013%20187.694%2056.8013C189.358%2056.8013%20190.549%2056.4864%20191.269%2055.8568C192.033%2055.2272%20192.416%2054.4626%20192.416%2053.5632C192.416%2052.5288%20192.033%2051.7867%20191.269%2051.337C190.504%2050.8423%20189.717%2050.4375%20188.908%2050.1227L183.241%2047.964C181.982%2047.4693%20180.543%2046.7947%20178.924%2045.9402C177.305%2045.0857%20175.888%2043.8714%20174.674%2042.2973C173.504%2040.7233%20172.92%2038.6545%20172.92%2036.091C172.92%2033.7524%20173.504%2031.5937%20174.674%2029.6148C175.843%2027.636%20177.53%2026.0394%20179.733%2024.8252C181.982%2023.5659%20184.68%2022.9363%20187.828%2022.9363C190.752%2022.9363%20193.473%2023.431%20195.991%2024.4204C198.555%2025.4098%20200.421%2026.5117%20201.59%2027.7259L198.892%2038.3846C197.363%2036.4058%20195.541%2034.8992%20193.428%2033.8648C191.359%2032.7855%20189.38%2032.2458%20187.491%2032.2458C186.052%2032.2458%20184.995%2032.5381%20184.321%2033.1228C183.646%2033.7074%20183.309%2034.382%20183.309%2035.1466C183.309%2035.7312%20183.534%2036.3159%20183.983%2036.9005C184.478%2037.4402%20185.287%2037.9349%20186.412%2038.3846L191.674%2040.341C193.203%2040.8807%20194.822%2041.6002%20196.531%2042.4997C198.285%2043.3992%20199.769%2044.6584%20200.983%2046.2775C202.197%2047.8515%20202.805%2050.0328%20202.805%2052.8211C202.805%2056.7338%20201.343%2059.9269%20198.42%2062.4004C195.541%2064.874%20191.764%2066.1107%20187.086%2066.1107Z'%20fill='%23ffffff'/%3e%3cpath%20d='M153.061%2064.7618V24.2857H164.799V64.7618H153.061ZM158.93%2018.4167C157.176%2018.4167%20155.692%2017.8096%20154.478%2016.5953C153.263%2015.381%20152.656%2013.8969%20152.656%2012.1429C152.656%2010.344%20153.263%208.85987%20154.478%207.69056C155.692%206.47628%20157.176%205.86914%20158.93%205.86914C160.729%205.86914%20162.213%206.47628%20163.382%207.69056C164.597%208.85987%20165.204%2010.344%20165.204%2012.1429C165.204%2013.8969%20164.597%2015.381%20163.382%2016.5953C162.213%2017.8096%20160.729%2018.4167%20158.93%2018.4167Z'%20fill='%23ffffff'/%3e%3cpath%20d='M121.307%2065.8411C117.53%2065.8411%20114.112%2064.8741%20111.054%2062.9403C107.995%2061.0064%20105.544%2058.4429%20103.7%2055.2498C101.901%2052.0117%20101.002%2048.4364%20101.002%2044.5237C101.002%2040.611%20101.901%2037.0356%20103.7%2033.7975C105.544%2030.5594%20107.995%2027.9959%20111.054%2026.1071C114.112%2024.1732%20117.53%2023.2063%20121.307%2023.2063C123.466%2023.2063%20125.467%2023.5211%20127.311%2024.1507C129.155%2024.7804%20130.819%2025.6798%20132.303%2026.8491V0H144.042V64.7617H133.922V60.7816C132.393%2062.3556%20130.549%2063.5924%20128.391%2064.4919C126.232%2065.3913%20123.871%2065.8411%20121.307%2065.8411ZM122.657%2055.5197C124.635%2055.5197%20126.434%2055.025%20128.053%2054.0355C129.672%2053.0461%20130.954%2051.7194%20131.899%2050.0554C132.888%2048.3914%20133.383%2046.5475%20133.383%2044.5237C133.383%2042.4999%20132.888%2040.656%20131.899%2038.9919C130.954%2037.3279%20129.672%2036.0012%20128.053%2035.0118C126.434%2034.0224%20124.635%2033.5277%20122.657%2033.5277C120.678%2033.5277%20118.879%2034.0224%20117.26%2035.0118C115.641%2036.0012%20114.337%2037.3279%20113.347%2038.9919C112.403%2040.656%20111.93%2042.4999%20111.93%2044.5237C111.93%2046.5475%20112.403%2048.3914%20113.347%2050.0554C114.337%2051.7194%20115.641%2053.0461%20117.26%2054.0355C118.879%2055.025%20120.678%2055.5197%20122.657%2055.5197Z'%20fill='%23ffffff'/%3e%3c/svg%3e",HR="data:image/svg+xml,%3csvg%20width='480'%20height='85'%20viewBox='0%200%20480%2085'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='xMinYMid%20meet'%3e%3cpath%20d='M48.6448%2012.0775L40.9465%207.80469L11.7295%2024.9191C9.15284%2052.6189%2018.7082%2071.6223%2035.081%2082.6271C20.2649%2065.6636%2017.8134%2040.0395%2018.9765%2029.482L48.6448%2012.0775Z'%20fill='%23FF6503'/%3e%3cpath%20d='M58.163%206.39894L50.3792%202.3728L42.6836%206.80882L50.3068%2011.0328L58.163%206.39894Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M27.5232%2034.0452C23.4435%2059.5977%2030.8336%2077.08%2035.0386%2082.6272C35.0386%2082.6272%2033.7332%2077.5916%2033.1595%2074.3123C30.7189%2060.3615%2031.6833%2050.4718%2034.5016%2038.0713L65.3684%2020.3563C64.6742%2030.9236%2058.8596%2053.6481%2042.0229%2068.532C49.9949%2064.8357%2060.4902%2058.794%2064.1665%2052.0229C63.9761%2052.437%2065.5692%2049.5794%2065.3684%2049.9853C72.6494%2035.8555%2073.6399%2023.9785%2073.6892%2015.2564L66.1738%2010.9619L27.5232%2034.0452Z'%20fill='%23FF6503'/%3e%3cpath%20d='M63.0229%2054.6719C56.7853%2065.8166%2033.207%2074.5909%2033.207%2074.5909C33.207%2074.5909%2033.4213%2076.1014%2033.9555%2078.2836C34.4897%2080.4658%2035.0263%2082.6084%2035.0263%2082.6084C42.7193%2078.6579%2054.6229%2070.4325%2063.0229%2054.6719Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M430.647%2084.9999V62.4135C429.177%2063.5272%20427.528%2064.3959%20425.702%2065.0196C423.875%2065.6879%20421.893%2066.022%20419.755%2066.022C416.012%2066.022%20412.627%2065.0642%20409.597%2063.1486C406.568%2061.2329%20404.14%2058.6936%20402.314%2055.5306C400.532%2052.3231%20399.641%2048.7814%20399.641%2044.9056C399.641%2041.0299%20400.532%2037.4882%20402.314%2034.2806C404.14%2031.0731%20406.568%2028.5338%20409.597%2026.6627C412.627%2024.7471%20416.012%2023.7893%20419.755%2023.7893C422.294%2023.7893%20424.633%2024.2348%20426.771%2025.1258C428.909%2026.0168%20430.736%2027.2419%20432.251%2028.8011V24.8585H442.274V84.9999H430.647ZM421.091%2055.7979C423.051%2055.7979%20424.833%2055.3079%20426.437%2054.3278C428.041%2053.3477%20429.31%2052.0335%20430.246%2050.3852C431.226%2048.7369%20431.716%2046.9104%20431.716%2044.9056C431.716%2042.9009%20431.226%2041.0744%20430.246%2039.4261C429.31%2037.7778%20428.041%2036.4636%20426.437%2035.4835C424.833%2034.5034%20423.051%2034.0134%20421.091%2034.0134C419.131%2034.0134%20417.349%2034.5034%20415.745%2035.4835C414.141%2036.4636%20412.849%2037.7778%20411.869%2039.4261C410.934%2041.0744%20410.466%2042.9009%20410.466%2044.9056C410.466%2046.9104%20410.934%2048.7369%20411.869%2050.3852C412.849%2052.0335%20414.141%2053.3477%20415.745%2054.3278C417.349%2055.3079%20419.131%2055.7979%20421.091%2055.7979Z'%20fill='%23FF6503'/%3e%3cpath%20d='M381.106%2064.9527V24.8584H392.733V64.9527H381.106ZM386.92%2019.0447C385.182%2019.0447%20383.712%2018.4433%20382.509%2017.2405C381.306%2016.0376%20380.705%2014.5675%20380.705%2012.8301C380.705%2011.0481%20381.306%209.578%20382.509%208.41972C383.712%207.21689%20385.182%206.61548%20386.92%206.61548C388.702%206.61548%20390.172%207.21689%20391.33%208.41972C392.533%209.578%20393.134%2011.0481%20393.134%2012.8301C393.134%2014.5675%20392.533%2016.0376%20391.33%2017.2405C390.172%2018.4433%20388.702%2019.0447%20386.92%2019.0447Z'%20fill='%23FF6503'/%3e%3cpath%20d='M333.831%2084.9996L347.196%2058.1364L330.824%2024.8582H343.654L350.738%2039.5594C351.361%2040.8959%20351.896%2042.121%20352.341%2043.2347C352.832%2044.3039%20353.232%2045.3508%20353.544%2046.3754C353.901%2045.3508%20354.324%2044.3039%20354.814%2043.2347C355.304%2042.121%20355.883%2040.8959%20356.551%2039.5594L363.768%2024.8582H376.131L346.327%2084.9996H333.831Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M309.439%2064.9528V34.0802H301.955V24.8585H309.64V14.6344C309.64%209.86766%20311.021%206.23689%20313.783%203.74213C316.59%201.24738%20320.042%200%20324.141%200C325.655%200%20327.103%200.178197%20328.484%200.534592C329.91%200.846437%20331.157%201.35875%20332.226%202.07154L329.954%2011.4937C328.618%209.84538%20327.059%209.02122%20325.277%209.02122C324.207%209.02122%20323.205%209.39989%20322.27%2010.1572C321.334%2010.9146%20320.866%2012.3179%20320.866%2014.3671V24.8585H328.818V34.0802H321.067V64.9528H309.439Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M284.221%2064.9527V24.8584H295.849V64.9527H284.221ZM290.035%2019.0447C288.298%2019.0447%20286.827%2018.4433%20285.625%2017.2405C284.422%2016.0376%20283.82%2014.5675%20283.82%2012.8301C283.82%2011.0481%20284.422%209.578%20285.625%208.41972C286.827%207.21689%20288.298%206.61548%20290.035%206.61548C291.817%206.61548%20293.287%207.21689%20294.445%208.41972C295.648%209.578%20296.25%2011.0481%20296.25%2012.8301C296.25%2014.5675%20295.648%2016.0376%20294.445%2017.2405C293.287%2018.4433%20291.817%2019.0447%20290.035%2019.0447Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M261.825%2066.289C259.107%2066.289%20256.345%2065.8435%20253.539%2064.9525C250.777%2064.0615%20248.616%2062.8587%20247.057%2061.344L249.93%2050.3849C251.222%2052.1669%20253.004%2053.7261%20255.276%2055.0626C257.593%2056.3991%20259.976%2057.0673%20262.426%2057.0673C264.074%2057.0673%20265.255%2056.7555%20265.968%2056.1318C266.725%2055.5081%20267.104%2054.7507%20267.104%2053.8598C267.104%2052.8351%20266.725%2052.1001%20265.968%2051.6546C265.21%2051.1645%20264.431%2050.7636%20263.629%2050.4517L258.016%2048.3134C256.768%2047.8233%20255.343%2047.1551%20253.739%2046.3087C252.135%2045.4622%20250.732%2044.2594%20249.529%2042.7002C248.371%2041.141%20247.792%2039.0917%20247.792%2036.5524C247.792%2034.2358%20248.371%2032.0975%20249.529%2030.1373C250.687%2028.1771%20252.358%2026.5956%20254.541%2025.3928C256.768%2024.1454%20259.441%2023.5217%20262.56%2023.5217C265.455%2023.5217%20268.151%2024.0118%20270.645%2024.9919C273.185%2025.9719%20275.034%2027.0634%20276.192%2028.2662L273.519%2038.8244C272.004%2036.8642%20270.2%2035.3718%20268.106%2034.3472C266.057%2033.278%20264.097%2032.7434%20262.226%2032.7434C260.8%2032.7434%20259.753%2033.033%20259.085%2033.6121C258.417%2034.1913%20258.083%2034.8595%20258.083%2035.6168C258.083%2036.196%20258.305%2036.7751%20258.751%2037.3543C259.241%2037.8889%20260.043%2038.3789%20261.156%2038.8244L266.369%2040.7623C267.883%2041.2969%20269.487%2042.0097%20271.18%2042.9006C272.917%2043.7916%20274.388%2045.039%20275.59%2046.6428C276.793%2048.202%20277.395%2050.3626%20277.395%2053.1247C277.395%2057.0005%20275.947%2060.1635%20273.051%2062.6137C270.2%2065.0639%20266.458%2066.289%20261.825%2066.289Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M226.399%2066.289C223.681%2066.289%20220.919%2065.8435%20218.113%2064.9525C215.351%2064.0615%20213.19%2062.8587%20211.631%2061.344L214.504%2050.3849C215.796%2052.1669%20217.578%2053.7261%20219.85%2055.0626C222.167%2056.3991%20224.55%2057.0673%20227%2057.0673C228.649%2057.0673%20229.829%2056.7555%20230.542%2056.1318C231.299%2055.5081%20231.678%2054.7507%20231.678%2053.8598C231.678%2052.8351%20231.299%2052.1001%20230.542%2051.6546C229.785%2051.1645%20229.005%2050.7636%20228.203%2050.4517L222.59%2048.3134C221.343%2047.8233%20219.917%2047.1551%20218.313%2046.3087C216.709%2045.4622%20215.306%2044.2594%20214.103%2042.7002C212.945%2041.141%20212.366%2039.0917%20212.366%2036.5524C212.366%2034.2358%20212.945%2032.0975%20214.103%2030.1373C215.262%2028.1771%20216.932%2026.5956%20219.115%2025.3928C221.343%2024.1454%20224.016%2023.5217%20227.134%2023.5217C230.03%2023.5217%20232.725%2024.0118%20235.22%2024.9919C237.759%2025.9719%20239.608%2027.0634%20240.766%2028.2662L238.093%2038.8244C236.578%2036.8642%20234.774%2035.3718%20232.68%2034.3472C230.631%2033.278%20228.671%2032.7434%20226.8%2032.7434C225.374%2032.7434%20224.327%2033.033%20223.659%2033.6121C222.991%2034.1913%20222.657%2034.8595%20222.657%2035.6168C222.657%2036.196%20222.88%2036.7751%20223.325%2037.3543C223.815%2037.8889%20224.617%2038.3789%20225.731%2038.8244L230.943%2040.7623C232.458%2041.2969%20234.061%2042.0097%20235.754%2042.9006C237.492%2043.7916%20238.962%2045.039%20240.165%2046.6428C241.367%2048.202%20241.969%2050.3626%20241.969%2053.1247C241.969%2057.0005%20240.521%2060.1635%20237.625%2062.6137C234.774%2065.0639%20231.032%2066.289%20226.399%2066.289Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M181.846%2066.022C178.148%2066.022%20174.785%2065.0642%20171.756%2063.1486C168.726%2061.2329%20166.298%2058.6936%20164.472%2055.5306C162.69%2052.3231%20161.799%2048.7814%20161.799%2044.9056C161.799%2041.0299%20162.69%2037.4882%20164.472%2034.2806C166.298%2031.0731%20168.726%2028.5338%20171.756%2026.6627C174.785%2024.7471%20178.148%2023.7893%20181.846%2023.7893C184.43%2023.7893%20186.791%2024.2571%20188.929%2025.1926C191.068%2026.0836%20192.894%2027.331%20194.409%2028.9347V24.8585H204.432V64.9528H194.409V60.8765C192.894%2062.4803%20191.068%2063.75%20188.929%2064.6855C186.791%2065.5765%20184.43%2066.022%20181.846%2066.022ZM183.249%2055.7979C185.209%2055.7979%20186.991%2055.3079%20188.595%2054.3278C190.199%2053.3477%20191.469%2052.0335%20192.404%2050.3852C193.384%2048.7369%20193.874%2046.9104%20193.874%2044.9056C193.874%2042.9009%20193.384%2041.0744%20192.404%2039.4261C191.469%2037.7778%20190.199%2036.4636%20188.595%2035.4835C186.991%2034.5034%20185.209%2034.0134%20183.249%2034.0134C181.289%2034.0134%20179.507%2034.5034%20177.903%2035.4835C176.3%2036.4636%20175.008%2037.7778%20174.028%2039.4261C173.092%2041.0744%20172.624%2042.9009%20172.624%2044.9056C172.624%2046.9104%20173.092%2048.7369%20174.028%2050.3852C175.008%2052.0335%20176.3%2053.3477%20177.903%2054.3278C179.507%2055.3079%20181.289%2055.7979%20183.249%2055.7979Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M143.264%2064.9527V0.801758H154.891V64.9527H143.264Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M122.651%2066.289C118.686%2066.289%20115.055%2065.3312%20111.759%2063.4156C108.462%2061.4999%20105.834%2058.9161%20103.873%2055.664C101.958%2052.4119%20101%2048.8257%20101%2044.9054C101%2040.9405%20101.958%2037.3543%20103.873%2034.1467C105.834%2030.8946%20108.462%2028.3108%20111.759%2026.3952C115.055%2024.4795%20118.686%2023.5217%20122.651%2023.5217C125.413%2023.5217%20128.019%2023.9895%20130.469%2024.925C132.964%2025.816%20135.169%2027.1525%20137.085%2028.9345L134.078%2040.7623C132.964%2038.9358%20131.472%2037.3543%20129.601%2036.0178C127.774%2034.6368%20125.613%2033.9462%20123.119%2033.9462C121.025%2033.9462%20119.154%2034.4363%20117.505%2035.4164C115.857%2036.3965%20114.565%2037.7107%20113.63%2039.359C112.694%2041.0073%20112.226%2042.8561%20112.226%2044.9054C112.226%2046.9101%20112.694%2048.7589%20113.63%2050.4517C114.565%2052.1001%20115.857%2053.4143%20117.505%2054.3943C119.154%2055.3744%20121.025%2055.8645%20123.119%2055.8645C125.613%2055.8645%20127.774%2055.1962%20129.601%2053.8598C131.472%2052.4787%20132.964%2050.875%20134.078%2049.0484L137.085%2060.8763C135.169%2062.6582%20132.964%2064.017%20130.469%2064.9525C128.019%2065.8435%20125.413%2066.289%20122.651%2066.289Z'%20fill='%233A3A3A'/%3e%3c/svg%3e",GR="data:image/svg+xml,%3csvg%20width='480'%20height='85'%20viewBox='0%200%20480%2085'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='xMinYMid%20meet'%3e%3cpath%20d='M48.6448%2012.0775L40.9465%207.80469L11.7295%2024.9191C9.15284%2052.6189%2018.7082%2071.6223%2035.081%2082.6271C20.2649%2065.6636%2017.8134%2040.0395%2018.9765%2029.482L48.6448%2012.0775Z'%20fill='%23FF6503'/%3e%3cpath%20d='M58.163%206.39894L50.3792%202.3728L42.6836%206.80882L50.3068%2011.0328L58.163%206.39894Z'%20fill='%23ffffff'/%3e%3cpath%20d='M27.5232%2034.0452C23.4435%2059.5977%2030.8336%2077.08%2035.0386%2082.6272C35.0386%2082.6272%2033.7332%2077.5916%2033.1595%2074.3123C30.7189%2060.3615%2031.6833%2050.4718%2034.5016%2038.0713L65.3684%2020.3563C64.6742%2030.9236%2058.8596%2053.6481%2042.0229%2068.532C49.9949%2064.8357%2060.4902%2058.794%2064.1665%2052.0229C63.9761%2052.437%2065.5692%2049.5794%2065.3684%2049.9853C72.6494%2035.8555%2073.6399%2023.9785%2073.6892%2015.2564L66.1738%2010.9619L27.5232%2034.0452Z'%20fill='%23FF6503'/%3e%3cpath%20d='M63.0229%2054.6719C56.7853%2065.8166%2033.207%2074.5909%2033.207%2074.5909C33.207%2074.5909%2033.4213%2076.1014%2033.9555%2078.2836C34.4897%2080.4658%2035.0263%2082.6084%2035.0263%2082.6084C42.7193%2078.6579%2054.6229%2070.4325%2063.0229%2054.6719Z'%20fill='%23ffffff'/%3e%3cpath%20d='M430.647%2084.9999V62.4135C429.177%2063.5272%20427.528%2064.3959%20425.702%2065.0196C423.875%2065.6879%20421.893%2066.022%20419.755%2066.022C416.012%2066.022%20412.627%2065.0642%20409.597%2063.1486C406.568%2061.2329%20404.14%2058.6936%20402.314%2055.5306C400.532%2052.3231%20399.641%2048.7814%20399.641%2044.9056C399.641%2041.0299%20400.532%2037.4882%20402.314%2034.2806C404.14%2031.0731%20406.568%2028.5338%20409.597%2026.6627C412.627%2024.7471%20416.012%2023.7893%20419.755%2023.7893C422.294%2023.7893%20424.633%2024.2348%20426.771%2025.1258C428.909%2026.0168%20430.736%2027.2419%20432.251%2028.8011V24.8585H442.274V84.9999H430.647ZM421.091%2055.7979C423.051%2055.7979%20424.833%2055.3079%20426.437%2054.3278C428.041%2053.3477%20429.31%2052.0335%20430.246%2050.3852C431.226%2048.7369%20431.716%2046.9104%20431.716%2044.9056C431.716%2042.9009%20431.226%2041.0744%20430.246%2039.4261C429.31%2037.7778%20428.041%2036.4636%20426.437%2035.4835C424.833%2034.5034%20423.051%2034.0134%20421.091%2034.0134C419.131%2034.0134%20417.349%2034.5034%20415.745%2035.4835C414.141%2036.4636%20412.849%2037.7778%20411.869%2039.4261C410.934%2041.0744%20410.466%2042.9009%20410.466%2044.9056C410.466%2046.9104%20410.934%2048.7369%20411.869%2050.3852C412.849%2052.0335%20414.141%2053.3477%20415.745%2054.3278C417.349%2055.3079%20419.131%2055.7979%20421.091%2055.7979Z'%20fill='%23FF6503'/%3e%3cpath%20d='M381.106%2064.9527V24.8584H392.733V64.9527H381.106ZM386.92%2019.0447C385.182%2019.0447%20383.712%2018.4433%20382.509%2017.2405C381.306%2016.0376%20380.705%2014.5675%20380.705%2012.8301C380.705%2011.0481%20381.306%209.578%20382.509%208.41972C383.712%207.21689%20385.182%206.61548%20386.92%206.61548C388.702%206.61548%20390.172%207.21689%20391.33%208.41972C392.533%209.578%20393.134%2011.0481%20393.134%2012.8301C393.134%2014.5675%20392.533%2016.0376%20391.33%2017.2405C390.172%2018.4433%20388.702%2019.0447%20386.92%2019.0447Z'%20fill='%23FF6503'/%3e%3cpath%20d='M333.831%2084.9996L347.196%2058.1364L330.824%2024.8582H343.654L350.738%2039.5594C351.361%2040.8959%20351.896%2042.121%20352.341%2043.2347C352.832%2044.3039%20353.232%2045.3508%20353.544%2046.3754C353.901%2045.3508%20354.324%2044.3039%20354.814%2043.2347C355.304%2042.121%20355.883%2040.8959%20356.551%2039.5594L363.768%2024.8582H376.131L346.327%2084.9996H333.831Z'%20fill='%23ffffff'/%3e%3cpath%20d='M309.439%2064.9528V34.0802H301.955V24.8585H309.64V14.6344C309.64%209.86766%20311.021%206.23689%20313.783%203.74213C316.59%201.24738%20320.042%200%20324.141%200C325.655%200%20327.103%200.178197%20328.484%200.534592C329.91%200.846437%20331.157%201.35875%20332.226%202.07154L329.954%2011.4937C328.618%209.84538%20327.059%209.02122%20325.277%209.02122C324.207%209.02122%20323.205%209.39989%20322.27%2010.1572C321.334%2010.9146%20320.866%2012.3179%20320.866%2014.3671V24.8585H328.818V34.0802H321.067V64.9528H309.439Z'%20fill='%23ffffff'/%3e%3cpath%20d='M284.221%2064.9527V24.8584H295.849V64.9527H284.221ZM290.035%2019.0447C288.298%2019.0447%20286.827%2018.4433%20285.625%2017.2405C284.422%2016.0376%20283.82%2014.5675%20283.82%2012.8301C283.82%2011.0481%20284.422%209.578%20285.625%208.41972C286.827%207.21689%20288.298%206.61548%20290.035%206.61548C291.817%206.61548%20293.287%207.21689%20294.445%208.41972C295.648%209.578%20296.25%2011.0481%20296.25%2012.8301C296.25%2014.5675%20295.648%2016.0376%20294.445%2017.2405C293.287%2018.4433%20291.817%2019.0447%20290.035%2019.0447Z'%20fill='%23ffffff'/%3e%3cpath%20d='M261.825%2066.289C259.107%2066.289%20256.345%2065.8435%20253.539%2064.9525C250.777%2064.0615%20248.616%2062.8587%20247.057%2061.344L249.93%2050.3849C251.222%2052.1669%20253.004%2053.7261%20255.276%2055.0626C257.593%2056.3991%20259.976%2057.0673%20262.426%2057.0673C264.074%2057.0673%20265.255%2056.7555%20265.968%2056.1318C266.725%2055.5081%20267.104%2054.7507%20267.104%2053.8598C267.104%2052.8351%20266.725%2052.1001%20265.968%2051.6546C265.21%2051.1645%20264.431%2050.7636%20263.629%2050.4517L258.016%2048.3134C256.768%2047.8233%20255.343%2047.1551%20253.739%2046.3087C252.135%2045.4622%20250.732%2044.2594%20249.529%2042.7002C248.371%2041.141%20247.792%2039.0917%20247.792%2036.5524C247.792%2034.2358%20248.371%2032.0975%20249.529%2030.1373C250.687%2028.1771%20252.358%2026.5956%20254.541%2025.3928C256.768%2024.1454%20259.441%2023.5217%20262.56%2023.5217C265.455%2023.5217%20268.151%2024.0118%20270.645%2024.9919C273.185%2025.9719%20275.034%2027.0634%20276.192%2028.2662L273.519%2038.8244C272.004%2036.8642%20270.2%2035.3718%20268.106%2034.3472C266.057%2033.278%20264.097%2032.7434%20262.226%2032.7434C260.8%2032.7434%20259.753%2033.033%20259.085%2033.6121C258.417%2034.1913%20258.083%2034.8595%20258.083%2035.6168C258.083%2036.196%20258.305%2036.7751%20258.751%2037.3543C259.241%2037.8889%20260.043%2038.3789%20261.156%2038.8244L266.369%2040.7623C267.883%2041.2969%20269.487%2042.0097%20271.18%2042.9006C272.917%2043.7916%20274.388%2045.039%20275.59%2046.6428C276.793%2048.202%20277.395%2050.3626%20277.395%2053.1247C277.395%2057.0005%20275.947%2060.1635%20273.051%2062.6137C270.2%2065.0639%20266.458%2066.289%20261.825%2066.289Z'%20fill='%23ffffff'/%3e%3cpath%20d='M226.399%2066.289C223.681%2066.289%20220.919%2065.8435%20218.113%2064.9525C215.351%2064.0615%20213.19%2062.8587%20211.631%2061.344L214.504%2050.3849C215.796%2052.1669%20217.578%2053.7261%20219.85%2055.0626C222.167%2056.3991%20224.55%2057.0673%20227%2057.0673C228.649%2057.0673%20229.829%2056.7555%20230.542%2056.1318C231.299%2055.5081%20231.678%2054.7507%20231.678%2053.8598C231.678%2052.8351%20231.299%2052.1001%20230.542%2051.6546C229.785%2051.1645%20229.005%2050.7636%20228.203%2050.4517L222.59%2048.3134C221.343%2047.8233%20219.917%2047.1551%20218.313%2046.3087C216.709%2045.4622%20215.306%2044.2594%20214.103%2042.7002C212.945%2041.141%20212.366%2039.0917%20212.366%2036.5524C212.366%2034.2358%20212.945%2032.0975%20214.103%2030.1373C215.262%2028.1771%20216.932%2026.5956%20219.115%2025.3928C221.343%2024.1454%20224.016%2023.5217%20227.134%2023.5217C230.03%2023.5217%20232.725%2024.0118%20235.22%2024.9919C237.759%2025.9719%20239.608%2027.0634%20240.766%2028.2662L238.093%2038.8244C236.578%2036.8642%20234.774%2035.3718%20232.68%2034.3472C230.631%2033.278%20228.671%2032.7434%20226.8%2032.7434C225.374%2032.7434%20224.327%2033.033%20223.659%2033.6121C222.991%2034.1913%20222.657%2034.8595%20222.657%2035.6168C222.657%2036.196%20222.88%2036.7751%20223.325%2037.3543C223.815%2037.8889%20224.617%2038.3789%20225.731%2038.8244L230.943%2040.7623C232.458%2041.2969%20234.061%2042.0097%20235.754%2042.9006C237.492%2043.7916%20238.962%2045.039%20240.165%2046.6428C241.367%2048.202%20241.969%2050.3626%20241.969%2053.1247C241.969%2057.0005%20240.521%2060.1635%20237.625%2062.6137C234.774%2065.0639%20231.032%2066.289%20226.399%2066.289Z'%20fill='%23ffffff'/%3e%3cpath%20d='M181.846%2066.022C178.148%2066.022%20174.785%2065.0642%20171.756%2063.1486C168.726%2061.2329%20166.298%2058.6936%20164.472%2055.5306C162.69%2052.3231%20161.799%2048.7814%20161.799%2044.9056C161.799%2041.0299%20162.69%2037.4882%20164.472%2034.2806C166.298%2031.0731%20168.726%2028.5338%20171.756%2026.6627C174.785%2024.7471%20178.148%2023.7893%20181.846%2023.7893C184.43%2023.7893%20186.791%2024.2571%20188.929%2025.1926C191.068%2026.0836%20192.894%2027.331%20194.409%2028.9347V24.8585H204.432V64.9528H194.409V60.8765C192.894%2062.4803%20191.068%2063.75%20188.929%2064.6855C186.791%2065.5765%20184.43%2066.022%20181.846%2066.022ZM183.249%2055.7979C185.209%2055.7979%20186.991%2055.3079%20188.595%2054.3278C190.199%2053.3477%20191.469%2052.0335%20192.404%2050.3852C193.384%2048.7369%20193.874%2046.9104%20193.874%2044.9056C193.874%2042.9009%20193.384%2041.0744%20192.404%2039.4261C191.469%2037.7778%20190.199%2036.4636%20188.595%2035.4835C186.991%2034.5034%20185.209%2034.0134%20183.249%2034.0134C181.289%2034.0134%20179.507%2034.5034%20177.903%2035.4835C176.3%2036.4636%20175.008%2037.7778%20174.028%2039.4261C173.092%2041.0744%20172.624%2042.9009%20172.624%2044.9056C172.624%2046.9104%20173.092%2048.7369%20174.028%2050.3852C175.008%2052.0335%20176.3%2053.3477%20177.903%2054.3278C179.507%2055.3079%20181.289%2055.7979%20183.249%2055.7979Z'%20fill='%23ffffff'/%3e%3cpath%20d='M143.264%2064.9527V0.801758H154.891V64.9527H143.264Z'%20fill='%23ffffff'/%3e%3cpath%20d='M122.651%2066.289C118.686%2066.289%20115.055%2065.3312%20111.759%2063.4156C108.462%2061.4999%20105.834%2058.9161%20103.873%2055.664C101.958%2052.4119%20101%2048.8257%20101%2044.9054C101%2040.9405%20101.958%2037.3543%20103.873%2034.1467C105.834%2030.8946%20108.462%2028.3108%20111.759%2026.3952C115.055%2024.4795%20118.686%2023.5217%20122.651%2023.5217C125.413%2023.5217%20128.019%2023.9895%20130.469%2024.925C132.964%2025.816%20135.169%2027.1525%20137.085%2028.9345L134.078%2040.7623C132.964%2038.9358%20131.472%2037.3543%20129.601%2036.0178C127.774%2034.6368%20125.613%2033.9462%20123.119%2033.9462C121.025%2033.9462%20119.154%2034.4363%20117.505%2035.4164C115.857%2036.3965%20114.565%2037.7107%20113.63%2039.359C112.694%2041.0073%20112.226%2042.8561%20112.226%2044.9054C112.226%2046.9101%20112.694%2048.7589%20113.63%2050.4517C114.565%2052.1001%20115.857%2053.4143%20117.505%2054.3943C119.154%2055.3744%20121.025%2055.8645%20123.119%2055.8645C125.613%2055.8645%20127.774%2055.1962%20129.601%2053.8598C131.472%2052.4787%20132.964%2050.875%20134.078%2049.0484L137.085%2060.8763C135.169%2062.6582%20132.964%2064.017%20130.469%2064.9525C128.019%2065.8435%20125.413%2066.289%20122.651%2066.289Z'%20fill='%23ffffff'/%3e%3c/svg%3e",zR="data:image/svg+xml,%3csvg%20width='480'%20height='85'%20viewBox='0%200%20480%2085'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='xMinYMid%20meet'%3e%3cpath%20d='M48.6448%2012.0775L40.9465%207.80469L11.7295%2024.9191C9.15284%2052.6189%2018.7082%2071.6223%2035.081%2082.6271C20.2649%2065.6636%2017.8134%2040.0395%2018.9765%2029.482L48.6448%2012.0775Z'%20fill='%23FF6503'/%3e%3cpath%20d='M58.163%206.39894L50.3792%202.3728L42.6836%206.80882L50.3068%2011.0328L58.163%206.39894Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M27.5232%2034.0452C23.4435%2059.5977%2030.8336%2077.08%2035.0386%2082.6272C35.0386%2082.6272%2033.7332%2077.5916%2033.1595%2074.3123C30.7189%2060.3615%2031.6833%2050.4718%2034.5016%2038.0713L65.3684%2020.3563C64.6742%2030.9236%2058.8596%2053.6481%2042.0229%2068.532C49.9949%2064.8357%2060.4902%2058.794%2064.1665%2052.0229C63.9761%2052.437%2065.5692%2049.5794%2065.3684%2049.9853C72.6494%2035.8555%2073.6399%2023.9785%2073.6892%2015.2564L66.1738%2010.9619L27.5232%2034.0452Z'%20fill='%23FF6503'/%3e%3cpath%20d='M63.0229%2054.6719C56.7853%2065.8166%2033.207%2074.5909%2033.207%2074.5909C33.207%2074.5909%2033.4213%2076.1014%2033.9555%2078.2836C34.4897%2080.4658%2035.0263%2082.6084%2035.0263%2082.6084C42.7193%2078.6579%2054.6229%2070.4325%2063.0229%2054.6719Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M394.949%2084.9999V60.5072C393.355%2061.715%20391.568%2062.657%20389.587%2063.3333C387.606%2064.0579%20385.457%2064.4203%20383.138%2064.4203C379.08%2064.4203%20375.408%2063.3816%20372.123%2061.3043C368.838%2059.227%20366.205%2056.4734%20364.225%2053.0435C362.292%2049.5652%20361.326%2045.7247%20361.326%2041.5218C361.326%2037.3189%20362.292%2033.4783%20364.225%2030.0001C366.205%2026.5218%20368.838%2023.7682%20372.123%2021.7392C375.408%2019.6619%20379.08%2018.6233%20383.138%2018.6233C385.891%2018.6233%20388.428%2019.1064%20390.746%2020.0726C393.065%2021.0387%20395.046%2022.3672%20396.688%2024.0581V19.7827H407.558V84.9999H394.949ZM384.587%2053.3333C386.713%2053.3333%20388.645%2052.8019%20390.384%2051.7391C392.123%2050.6763%20393.5%2049.2512%20394.514%2047.4638C395.577%2045.6764%20396.109%2043.6957%20396.109%2041.5218C396.109%2039.3479%20395.577%2037.3672%20394.514%2035.5798C393.5%2033.7923%20392.123%2032.3672%20390.384%2031.3044C388.645%2030.2416%20386.713%2029.7102%20384.587%2029.7102C382.461%2029.7102%20380.529%2030.2416%20378.79%2031.3044C377.051%2032.3672%20375.65%2033.7923%20374.587%2035.5798C373.573%2037.3672%20373.065%2039.3479%20373.065%2041.5218C373.065%2043.6957%20373.573%2045.6764%20374.587%2047.4638C375.65%2049.2512%20377.051%2050.6763%20378.79%2051.7391C380.529%2052.8019%20382.461%2053.3333%20384.587%2053.3333Z'%20fill='%23FF6503'/%3e%3cpath%20d='M341.228%2063.2607V19.7826H353.836V63.2607H341.228ZM347.532%2013.4782C345.648%2013.4782%20344.054%2012.826%20342.749%2011.5217C341.445%2010.2174%20340.793%208.62316%20340.793%206.73911C340.793%204.80675%20341.445%203.21255%20342.749%201.95651C344.054%200.65217%20345.648%200%20347.532%200C349.464%200%20351.059%200.65217%20352.315%201.95651C353.619%203.21255%20354.271%204.80675%20354.271%206.73911C354.271%208.62316%20353.619%2010.2174%20352.315%2011.5217C351.059%2012.826%20349.464%2013.4782%20347.532%2013.4782Z'%20fill='%23FF6503'/%3e%3cpath%20d='M290.336%2063.2607V19.7825H301.64V24.5651C303.186%2022.5361%20305.094%2020.9903%20307.365%2019.9275C309.635%2018.8647%20312.075%2018.3333%20314.684%2018.3333C317.775%2018.3333%20320.65%2019.082%20323.307%2020.5796C326.012%2022.0289%20328.186%2024.1787%20329.829%2027.0289C331.519%2029.8308%20332.365%2033.2366%20332.365%2037.2462V63.2607H319.756V38.9129C319.756%2036.4975%20319.031%2034.3477%20317.582%2032.4636C316.133%2030.5796%20314.056%2029.6376%20311.35%2029.6376C309.176%2029.6376%20307.22%2030.3864%20305.481%2031.8839C303.79%2033.3332%20302.945%2035.6279%20302.945%2038.768V63.2607H290.336Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M268.064%2063.2607V19.7826H280.672V63.2607H268.064ZM274.368%2013.4782C272.484%2013.4782%20270.89%2012.826%20269.585%2011.5217C268.281%2010.2174%20267.629%208.62316%20267.629%206.73911C267.629%204.80675%20268.281%203.21255%20269.585%201.95651C270.89%200.65217%20272.484%200%20274.368%200C276.3%200%20277.895%200.65217%20279.151%201.95651C280.455%203.21255%20281.107%204.80675%20281.107%206.73911C281.107%208.62316%20280.455%2010.2174%20279.151%2011.5217C277.895%2012.826%20276.3%2013.4782%20274.368%2013.4782Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M233.882%2064.4203C229.872%2064.4203%20226.225%2063.3816%20222.94%2061.3043C219.655%2059.227%20217.022%2056.4734%20215.041%2053.0435C213.109%2049.5652%20212.143%2045.7247%20212.143%2041.5218C212.143%2037.3189%20213.109%2033.4783%20215.041%2030.0001C217.022%2026.5218%20219.655%2023.7682%20222.94%2021.7392C226.225%2019.6619%20229.872%2018.6233%20233.882%2018.6233C236.684%2018.6233%20239.244%2019.1305%20241.563%2020.145C243.882%2021.1112%20245.862%2022.4639%20247.505%2024.203V19.7827H258.374V63.2608H247.505V58.8406C245.862%2060.5797%20243.882%2061.9565%20241.563%2062.971C239.244%2063.9372%20236.684%2064.4203%20233.882%2064.4203ZM235.403%2053.3333C237.529%2053.3333%20239.461%2052.8019%20241.2%2051.7391C242.94%2050.6763%20244.316%2049.2512%20245.331%2047.4638C246.394%2045.6764%20246.925%2043.6957%20246.925%2041.5218C246.925%2039.3479%20246.394%2037.3672%20245.331%2035.5798C244.316%2033.7923%20242.94%2032.3672%20241.2%2031.3044C239.461%2030.2416%20237.529%2029.7102%20235.403%2029.7102C233.278%2029.7102%20231.345%2030.2416%20229.606%2031.3044C227.867%2032.3672%20226.466%2033.7923%20225.403%2035.5798C224.389%2037.3672%20223.882%2039.3479%20223.882%2041.5218C223.882%2043.6957%20224.389%2045.6764%20225.403%2047.4638C226.466%2049.2512%20227.867%2050.6763%20229.606%2051.7391C231.345%2052.8019%20233.278%2053.3333%20235.403%2053.3333Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M188.921%2063.2607V29.7825H180.805V19.7825H189.138V5.28979H201.312V19.7825H209.935V29.7825H201.529V63.2607H188.921Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M156.351%2064.7099C151.471%2064.7099%20147.172%2063.6955%20143.452%2061.6665C139.732%2059.6375%20136.834%2056.8597%20134.757%2053.3332C132.679%2049.7583%20131.641%2045.6762%20131.641%2041.0868C131.641%2036.6907%20132.655%2032.8018%20134.684%2029.4202C136.713%2025.9902%20139.443%2023.2849%20142.872%2021.3043C146.351%2019.3236%20150.191%2018.3333%20154.394%2018.3333C158.694%2018.3333%20162.534%2019.3236%20165.916%2021.3043C169.298%2023.2366%20171.955%2025.8936%20173.887%2029.2753C175.868%2032.6569%20176.858%2036.4975%20176.858%2040.797V45.2172H150.336C149.128%2045.2172%20147.969%2045.1448%20146.858%2044.9998C145.747%2044.8549%20144.636%2044.6858%20143.525%2044.4926C144.104%2047.3911%20145.529%2049.7583%20147.8%2051.594C150.119%2053.3815%20153.066%2054.2752%20156.641%2054.2752C159.394%2054.2752%20161.858%2053.7196%20164.032%2052.6085C166.254%2051.4974%20168.066%2050.1206%20169.467%2048.4781L172.22%2059.7824C170.046%2061.4249%20167.583%2062.6568%20164.829%2063.4781C162.124%2064.2993%20159.298%2064.7099%20156.351%2064.7099ZM143.235%2036.8839C145.65%2036.3525%20148.017%2036.0868%20150.336%2036.0868H158.017C159.37%2036.0868%20160.65%2036.1351%20161.858%2036.2318C163.066%2036.3284%20164.201%2036.4975%20165.264%2036.739C164.539%2034.1303%20163.211%2032.0772%20161.278%2030.5796C159.394%2029.082%20157.051%2028.3332%20154.249%2028.3332C151.592%2028.3332%20149.273%2029.1062%20147.293%2030.6521C145.36%2032.1496%20144.008%2034.2269%20143.235%2036.8839Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M101.92%2063.2608V19.7827H113.224V27.2464C114.722%2024.7344%20116.606%2022.802%20118.876%2021.4493C121.195%2020.0484%20123.901%2019.3479%20126.992%2019.3479L129.746%2030.5073C128.828%2030.2174%20127.789%2030.0725%20126.63%2030.0725C123.007%2030.0725%20120.084%2031.2561%20117.862%2033.6232C115.64%2035.9421%20114.529%2039.2754%20114.529%2043.6232V63.2608H101.92Z'%20fill='%233A3A3A'/%3e%3c/svg%3e",WR="data:image/svg+xml,%3csvg%20width='480'%20height='85'%20viewBox='0%200%20480%2085'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='xMinYMid%20meet'%3e%3cpath%20d='M48.6448%2012.0775L40.9465%207.80469L11.7295%2024.9191C9.15284%2052.6189%2018.7082%2071.6223%2035.081%2082.6271C20.2649%2065.6636%2017.8134%2040.0395%2018.9765%2029.482L48.6448%2012.0775Z'%20fill='%23FF6503'/%3e%3cpath%20d='M58.163%206.39894L50.3792%202.3728L42.6836%206.80882L50.3068%2011.0328L58.163%206.39894Z'%20fill='%23ffffff'/%3e%3cpath%20d='M27.5232%2034.0452C23.4435%2059.5977%2030.8336%2077.08%2035.0386%2082.6272C35.0386%2082.6272%2033.7332%2077.5916%2033.1595%2074.3123C30.7189%2060.3615%2031.6833%2050.4718%2034.5016%2038.0713L65.3684%2020.3563C64.6742%2030.9236%2058.8596%2053.6481%2042.0229%2068.532C49.9949%2064.8357%2060.4902%2058.794%2064.1665%2052.0229C63.9761%2052.437%2065.5692%2049.5794%2065.3684%2049.9853C72.6494%2035.8555%2073.6399%2023.9785%2073.6892%2015.2564L66.1738%2010.9619L27.5232%2034.0452Z'%20fill='%23FF6503'/%3e%3cpath%20d='M63.0229%2054.6719C56.7853%2065.8166%2033.207%2074.5909%2033.207%2074.5909C33.207%2074.5909%2033.4213%2076.1014%2033.9555%2078.2836C34.4897%2080.4658%2035.0263%2082.6084%2035.0263%2082.6084C42.7193%2078.6579%2054.6229%2070.4325%2063.0229%2054.6719Z'%20fill='%23ffffff'/%3e%3cpath%20d='M394.949%2084.9999V60.5072C393.355%2061.715%20391.568%2062.657%20389.587%2063.3333C387.606%2064.0579%20385.457%2064.4203%20383.138%2064.4203C379.08%2064.4203%20375.408%2063.3816%20372.123%2061.3043C368.838%2059.227%20366.205%2056.4734%20364.225%2053.0435C362.292%2049.5652%20361.326%2045.7247%20361.326%2041.5218C361.326%2037.3189%20362.292%2033.4783%20364.225%2030.0001C366.205%2026.5218%20368.838%2023.7682%20372.123%2021.7392C375.408%2019.6619%20379.08%2018.6233%20383.138%2018.6233C385.891%2018.6233%20388.428%2019.1064%20390.746%2020.0726C393.065%2021.0387%20395.046%2022.3672%20396.688%2024.0581V19.7827H407.558V84.9999H394.949ZM384.587%2053.3333C386.713%2053.3333%20388.645%2052.8019%20390.384%2051.7391C392.123%2050.6763%20393.5%2049.2512%20394.514%2047.4638C395.577%2045.6764%20396.109%2043.6957%20396.109%2041.5218C396.109%2039.3479%20395.577%2037.3672%20394.514%2035.5798C393.5%2033.7923%20392.123%2032.3672%20390.384%2031.3044C388.645%2030.2416%20386.713%2029.7102%20384.587%2029.7102C382.461%2029.7102%20380.529%2030.2416%20378.79%2031.3044C377.051%2032.3672%20375.65%2033.7923%20374.587%2035.5798C373.573%2037.3672%20373.065%2039.3479%20373.065%2041.5218C373.065%2043.6957%20373.573%2045.6764%20374.587%2047.4638C375.65%2049.2512%20377.051%2050.6763%20378.79%2051.7391C380.529%2052.8019%20382.461%2053.3333%20384.587%2053.3333Z'%20fill='%23FF6503'/%3e%3cpath%20d='M341.228%2063.2607V19.7826H353.836V63.2607H341.228ZM347.532%2013.4782C345.648%2013.4782%20344.054%2012.826%20342.749%2011.5217C341.445%2010.2174%20340.793%208.62316%20340.793%206.73911C340.793%204.80675%20341.445%203.21255%20342.749%201.95651C344.054%200.65217%20345.648%200%20347.532%200C349.464%200%20351.059%200.65217%20352.315%201.95651C353.619%203.21255%20354.271%204.80675%20354.271%206.73911C354.271%208.62316%20353.619%2010.2174%20352.315%2011.5217C351.059%2012.826%20349.464%2013.4782%20347.532%2013.4782Z'%20fill='%23FF6503'/%3e%3cpath%20d='M290.336%2063.2607V19.7825H301.64V24.5651C303.186%2022.5361%20305.094%2020.9903%20307.365%2019.9275C309.635%2018.8647%20312.075%2018.3333%20314.684%2018.3333C317.775%2018.3333%20320.65%2019.082%20323.307%2020.5796C326.012%2022.0289%20328.186%2024.1787%20329.829%2027.0289C331.519%2029.8308%20332.365%2033.2366%20332.365%2037.2462V63.2607H319.756V38.9129C319.756%2036.4975%20319.031%2034.3477%20317.582%2032.4636C316.133%2030.5796%20314.056%2029.6376%20311.35%2029.6376C309.176%2029.6376%20307.22%2030.3864%20305.481%2031.8839C303.79%2033.3332%20302.945%2035.6279%20302.945%2038.768V63.2607H290.336Z'%20fill='%23ffffff'/%3e%3cpath%20d='M268.064%2063.2607V19.7826H280.672V63.2607H268.064ZM274.368%2013.4782C272.484%2013.4782%20270.89%2012.826%20269.585%2011.5217C268.281%2010.2174%20267.629%208.62316%20267.629%206.73911C267.629%204.80675%20268.281%203.21255%20269.585%201.95651C270.89%200.65217%20272.484%200%20274.368%200C276.3%200%20277.895%200.65217%20279.151%201.95651C280.455%203.21255%20281.107%204.80675%20281.107%206.73911C281.107%208.62316%20280.455%2010.2174%20279.151%2011.5217C277.895%2012.826%20276.3%2013.4782%20274.368%2013.4782Z'%20fill='%23ffffff'/%3e%3cpath%20d='M233.882%2064.4203C229.872%2064.4203%20226.225%2063.3816%20222.94%2061.3043C219.655%2059.227%20217.022%2056.4734%20215.041%2053.0435C213.109%2049.5652%20212.143%2045.7247%20212.143%2041.5218C212.143%2037.3189%20213.109%2033.4783%20215.041%2030.0001C217.022%2026.5218%20219.655%2023.7682%20222.94%2021.7392C226.225%2019.6619%20229.872%2018.6233%20233.882%2018.6233C236.684%2018.6233%20239.244%2019.1305%20241.563%2020.145C243.882%2021.1112%20245.862%2022.4639%20247.505%2024.203V19.7827H258.374V63.2608H247.505V58.8406C245.862%2060.5797%20243.882%2061.9565%20241.563%2062.971C239.244%2063.9372%20236.684%2064.4203%20233.882%2064.4203ZM235.403%2053.3333C237.529%2053.3333%20239.461%2052.8019%20241.2%2051.7391C242.94%2050.6763%20244.316%2049.2512%20245.331%2047.4638C246.394%2045.6764%20246.925%2043.6957%20246.925%2041.5218C246.925%2039.3479%20246.394%2037.3672%20245.331%2035.5798C244.316%2033.7923%20242.94%2032.3672%20241.2%2031.3044C239.461%2030.2416%20237.529%2029.7102%20235.403%2029.7102C233.278%2029.7102%20231.345%2030.2416%20229.606%2031.3044C227.867%2032.3672%20226.466%2033.7923%20225.403%2035.5798C224.389%2037.3672%20223.882%2039.3479%20223.882%2041.5218C223.882%2043.6957%20224.389%2045.6764%20225.403%2047.4638C226.466%2049.2512%20227.867%2050.6763%20229.606%2051.7391C231.345%2052.8019%20233.278%2053.3333%20235.403%2053.3333Z'%20fill='%23ffffff'/%3e%3cpath%20d='M188.921%2063.2607V29.7825H180.805V19.7825H189.138V5.28979H201.312V19.7825H209.935V29.7825H201.529V63.2607H188.921Z'%20fill='%23ffffff'/%3e%3cpath%20d='M156.351%2064.7099C151.471%2064.7099%20147.172%2063.6955%20143.452%2061.6665C139.732%2059.6375%20136.834%2056.8597%20134.757%2053.3332C132.679%2049.7583%20131.641%2045.6762%20131.641%2041.0868C131.641%2036.6907%20132.655%2032.8018%20134.684%2029.4202C136.713%2025.9902%20139.443%2023.2849%20142.872%2021.3043C146.351%2019.3236%20150.191%2018.3333%20154.394%2018.3333C158.694%2018.3333%20162.534%2019.3236%20165.916%2021.3043C169.298%2023.2366%20171.955%2025.8936%20173.887%2029.2753C175.868%2032.6569%20176.858%2036.4975%20176.858%2040.797V45.2172H150.336C149.128%2045.2172%20147.969%2045.1448%20146.858%2044.9998C145.747%2044.8549%20144.636%2044.6858%20143.525%2044.4926C144.104%2047.3911%20145.529%2049.7583%20147.8%2051.594C150.119%2053.3815%20153.066%2054.2752%20156.641%2054.2752C159.394%2054.2752%20161.858%2053.7196%20164.032%2052.6085C166.254%2051.4974%20168.066%2050.1206%20169.467%2048.4781L172.22%2059.7824C170.046%2061.4249%20167.583%2062.6568%20164.829%2063.4781C162.124%2064.2993%20159.298%2064.7099%20156.351%2064.7099ZM143.235%2036.8839C145.65%2036.3525%20148.017%2036.0868%20150.336%2036.0868H158.017C159.37%2036.0868%20160.65%2036.1351%20161.858%2036.2318C163.066%2036.3284%20164.201%2036.4975%20165.264%2036.739C164.539%2034.1303%20163.211%2032.0772%20161.278%2030.5796C159.394%2029.082%20157.051%2028.3332%20154.249%2028.3332C151.592%2028.3332%20149.273%2029.1062%20147.293%2030.6521C145.36%2032.1496%20144.008%2034.2269%20143.235%2036.8839Z'%20fill='%23ffffff'/%3e%3cpath%20d='M101.92%2063.2608V19.7827H113.224V27.2464C114.722%2024.7344%20116.606%2022.802%20118.876%2021.4493C121.195%2020.0484%20123.901%2019.3479%20126.992%2019.3479L129.746%2030.5073C128.828%2030.2174%20127.789%2030.0725%20126.63%2030.0725C123.007%2030.0725%20120.084%2031.2561%20117.862%2033.6232C115.64%2035.9421%20114.529%2039.2754%20114.529%2043.6232V63.2608H101.92Z'%20fill='%23ffffff'/%3e%3c/svg%3e",ZR="data:image/svg+xml,%3csvg%20width='480'%20height='85'%20viewBox='0%200%20480%2085'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='xMinYMid%20meet'%3e%3cpath%20d='M48.6448%2012.0775L40.9465%207.80469L11.7295%2024.9191C9.15284%2052.6189%2018.7082%2071.6223%2035.081%2082.6271C20.2649%2065.6636%2017.8134%2040.0395%2018.9765%2029.482L48.6448%2012.0775Z'%20fill='%23FF6503'/%3e%3cpath%20d='M58.163%206.39894L50.3792%202.3728L42.6836%206.80882L50.3068%2011.0328L58.163%206.39894Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M27.5232%2034.0452C23.4435%2059.5977%2030.8336%2077.08%2035.0386%2082.6272C35.0386%2082.6272%2033.7332%2077.5916%2033.1595%2074.3123C30.7189%2060.3615%2031.6833%2050.4718%2034.5016%2038.0713L65.3684%2020.3563C64.6742%2030.9236%2058.8596%2053.6481%2042.0229%2068.532C49.9949%2064.8357%2060.4902%2058.794%2064.1665%2052.0229C63.9761%2052.437%2065.5692%2049.5794%2065.3684%2049.9853C72.6494%2035.8555%2073.6399%2023.9785%2073.6892%2015.2564L66.1738%2010.9619L27.5232%2034.0452Z'%20fill='%23FF6503'/%3e%3cpath%20d='M63.0229%2054.672C56.7853%2065.8167%2033.207%2074.5911%2033.207%2074.5911C33.207%2074.5911%2033.4213%2076.1015%2033.9555%2078.2837C34.4897%2080.4659%2035.0263%2082.6085%2035.0263%2082.6085C42.7193%2078.658%2054.6229%2070.4326%2063.0229%2054.672Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M448.982%2085V60.5074C447.388%2061.7151%20445.601%2062.6571%20443.62%2063.3334C441.639%2064.0581%20439.49%2064.4204%20437.171%2064.4204C433.113%2064.4204%20429.441%2063.3817%20426.156%2061.3045C422.871%2059.2272%20420.239%2056.4736%20418.258%2053.0436C416.326%2049.5654%20415.359%2045.7248%20415.359%2041.5219C415.359%2037.319%20416.326%2033.4784%20418.258%2030.0002C420.239%2026.5219%20422.871%2023.7683%20426.156%2021.7393C429.441%2019.6621%20433.113%2018.6234%20437.171%2018.6234C439.925%2018.6234%20442.461%2019.1065%20444.78%2020.0727C447.098%2021.0389%20449.079%2022.3674%20450.722%2024.0582V19.7828H461.591V85H448.982ZM438.62%2053.3335C440.746%2053.3335%20442.678%2052.8021%20444.417%2051.7393C446.156%2050.6765%20447.533%2049.2513%20448.548%2047.4639C449.61%2045.6765%20450.142%2043.6958%20450.142%2041.5219C450.142%2039.348%20449.61%2037.3673%20448.548%2035.5799C447.533%2033.7925%20446.156%2032.3673%20444.417%2031.3045C442.678%2030.2417%20440.746%2029.7103%20438.62%2029.7103C436.495%2029.7103%20434.562%2030.2417%20432.823%2031.3045C431.084%2032.3673%20429.683%2033.7925%20428.62%2035.5799C427.606%2037.3673%20427.098%2039.348%20427.098%2041.5219C427.098%2043.6958%20427.606%2045.6765%20428.62%2047.4639C429.683%2049.2513%20431.084%2050.6765%20432.823%2051.7393C434.562%2052.8021%20436.495%2053.3335%20438.62%2053.3335Z'%20fill='%23FF6503'/%3e%3cpath%20d='M395.261%2063.2607V19.7826H407.87V63.2607H395.261ZM401.565%2013.4782C399.681%2013.4782%20398.087%2012.826%20396.783%2011.5217C395.478%2010.2174%20394.826%208.62316%20394.826%206.73911C394.826%204.80675%20395.478%203.21255%20396.783%201.95651C398.087%200.65217%20399.681%200%20401.565%200C403.498%200%20405.092%200.65217%20406.348%201.95651C407.652%203.21255%20408.304%204.80675%20408.304%206.73911C408.304%208.62316%20407.652%2010.2174%20406.348%2011.5217C405.092%2012.826%20403.498%2013.4782%20401.565%2013.4782Z'%20fill='%23FF6503'/%3e%3cpath%20d='M367.579%2063.2607V29.7825H359.463V19.7825H367.796V5.28979H379.97V19.7825H388.593V29.7825H380.187V63.2607H367.579Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M340.298%2064.7098C335.999%2064.7098%20332.062%2063.6712%20328.487%2061.5939C324.912%2059.5166%20322.062%2056.7147%20319.936%2053.1881C317.859%2049.6616%20316.82%2045.7727%20316.82%2041.5215C316.82%2037.222%20317.859%2033.3331%20319.936%2029.8548C322.062%2026.3283%20324.912%2023.5264%20328.487%2021.4491C332.062%2019.3718%20335.999%2018.3331%20340.298%2018.3331C343.294%2018.3331%20346.12%2018.8404%20348.777%2019.8549C351.482%2020.821%20353.873%2022.2703%20355.951%2024.2027L352.69%2037.0287C351.482%2035.0481%20349.864%2033.3331%20347.835%2031.8838C345.854%2030.3862%20343.511%2029.6374%20340.806%2029.6374C338.535%2029.6374%20336.506%2030.1688%20334.719%2031.2316C332.931%2032.2944%20331.53%2033.7196%20330.516%2035.507C329.501%2037.2944%20328.994%2039.2993%20328.994%2041.5215C328.994%2043.6954%20329.501%2045.7002%20330.516%2047.536C331.53%2049.3234%20332.931%2050.7485%20334.719%2051.8113C336.506%2052.8741%20338.535%2053.4055%20340.806%2053.4055C343.511%2053.4055%20345.854%2052.6809%20347.835%2051.2316C349.864%2049.734%20351.482%2047.9949%20352.69%2046.0142L355.951%2058.8403C353.873%2060.7726%20351.482%2062.2461%20348.777%2063.2605C346.12%2064.2267%20343.294%2064.7098%20340.298%2064.7098Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M291.495%2064.7098C286.616%2064.7098%20282.317%2063.6953%20278.597%2061.6664C274.877%2059.6374%20271.978%2056.8596%20269.901%2053.333C267.824%2049.7582%20266.785%2045.6761%20266.785%2041.0867C266.785%2036.6906%20267.8%2032.8017%20269.829%2029.4201C271.858%2025.9901%20274.587%2023.2848%20278.017%2021.3041C281.495%2019.3235%20285.336%2018.3331%20289.539%2018.3331C293.838%2018.3331%20297.679%2019.3235%20301.06%2021.3041C304.442%2023.2365%20307.099%2025.8935%20309.031%2029.2751C311.012%2032.6568%20312.002%2036.4973%20312.002%2040.7968V45.2171H285.481C284.273%2045.2171%20283.114%2045.1447%20282.003%2044.9997C280.891%2044.8548%20279.78%2044.6857%20278.669%2044.4925C279.249%2047.391%20280.674%2049.7582%20282.945%2051.5939C285.263%2053.3813%20288.21%2054.2751%20291.785%2054.2751C294.539%2054.2751%20297.002%2053.7195%20299.176%2052.6084C301.399%2051.4973%20303.21%2050.1205%20304.611%2048.478L307.365%2059.7823C305.191%2061.4248%20302.727%2062.6567%20299.973%2063.4779C297.268%2064.2992%20294.442%2064.7098%20291.495%2064.7098ZM278.379%2036.8838C280.795%2036.3524%20283.162%2036.0867%20285.481%2036.0867H293.162C294.515%2036.0867%20295.795%2036.135%20297.002%2036.2316C298.21%2036.3283%20299.345%2036.4973%20300.408%2036.7389C299.684%2034.1302%20298.355%2032.0771%20296.423%2030.5795C294.539%2029.0819%20292.196%2028.3331%20289.394%2028.3331C286.737%2028.3331%20284.418%2029.1061%20282.437%2030.6519C280.505%2032.1495%20279.152%2034.2268%20278.379%2036.8838Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M243.563%2063.2607V29.7825H235.447V19.7825H243.781V5.28979H255.954V19.7825H264.578V29.7825H256.172V63.2607H243.563Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M209.761%2064.7098C205.462%2064.7098%20201.525%2063.6712%20197.95%2061.5939C194.375%2059.5166%20191.525%2056.7147%20189.399%2053.1881C187.322%2049.6616%20186.283%2045.7727%20186.283%2041.5215C186.283%2037.222%20187.322%2033.3331%20189.399%2029.8548C191.525%2026.3283%20194.375%2023.5264%20197.95%2021.4491C201.525%2019.3718%20205.462%2018.3331%20209.761%2018.3331C214.109%2018.3331%20218.046%2019.3718%20221.573%2021.4491C225.148%2023.5264%20227.974%2026.3283%20230.051%2029.8548C232.177%2033.3331%20233.24%2037.222%20233.24%2041.5215C233.24%2045.7727%20232.177%2049.6616%20230.051%2053.1881C227.974%2056.7147%20225.148%2059.5166%20221.573%2061.5939C218.046%2063.6712%20214.109%2064.7098%20209.761%2064.7098ZM209.761%2053.4055C211.935%2053.4055%20213.892%2052.8741%20215.631%2051.8113C217.418%2050.7485%20218.819%2049.3234%20219.834%2047.536C220.897%2045.7002%20221.428%2043.6954%20221.428%2041.5215C221.428%2039.2993%20220.897%2037.2944%20219.834%2035.507C218.819%2033.7196%20217.418%2032.2944%20215.631%2031.2316C213.892%2030.1688%20211.935%2029.6374%20209.761%2029.6374C207.587%2029.6374%20205.607%2030.1688%20203.819%2031.2316C202.08%2032.2944%20200.679%2033.7196%20199.617%2035.507C198.602%2037.2944%20198.095%2039.2993%20198.095%2041.5215C198.095%2043.6954%20198.602%2045.7002%20199.617%2047.536C200.679%2049.3234%20202.08%2050.7485%20203.819%2051.8113C205.607%2052.8741%20207.587%2053.4055%20209.761%2053.4055Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M156.562%2063.2607V19.7826H167.867V27.2463C169.364%2024.7342%20171.248%2022.8019%20173.519%2021.4492C175.838%2020.0483%20178.543%2019.3478%20181.635%2019.3478L184.389%2030.5072C183.471%2030.2173%20182.432%2030.0724%20181.273%2030.0724C177.649%2030.0724%20174.727%2031.256%20172.504%2033.6231C170.282%2035.9419%20169.171%2039.2753%20169.171%2043.6231V63.2607H156.562Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M102.963%2085V19.7828H113.832V24.0582C115.523%2022.3674%20117.504%2021.0389%20119.774%2020.0727C122.093%2019.1065%20124.629%2018.6234%20127.383%2018.6234C131.441%2018.6234%20135.113%2019.6621%20138.398%2021.7393C141.683%2023.7683%20144.291%2026.5219%20146.224%2030.0002C148.204%2033.4784%20149.195%2037.319%20149.195%2041.5219C149.195%2045.7248%20148.204%2049.5654%20146.224%2053.0436C144.291%2056.4736%20141.683%2059.2272%20138.398%2061.3045C135.113%2063.3817%20131.441%2064.4204%20127.383%2064.4204C125.064%2064.4204%20122.915%2064.0581%20120.934%2063.3334C118.953%2062.6571%20117.166%2061.7151%20115.572%2060.5074V85H102.963ZM125.934%2053.3335C128.059%2053.3335%20129.992%2052.8021%20131.731%2051.7393C133.47%2050.6765%20134.847%2049.2513%20135.861%2047.4639C136.924%2045.6765%20137.456%2043.6958%20137.456%2041.5219C137.456%2039.348%20136.924%2037.3673%20135.861%2035.5799C134.847%2033.7925%20133.47%2032.3673%20131.731%2031.3045C129.992%2030.2417%20128.059%2029.7103%20125.934%2029.7103C123.808%2029.7103%20121.876%2030.2417%20120.137%2031.3045C118.398%2032.3673%20116.997%2033.7925%20115.934%2035.5799C114.919%2037.3673%20114.412%2039.348%20114.412%2041.5219C114.412%2043.6958%20114.919%2045.6765%20115.934%2047.4639C116.997%2049.2513%20118.398%2050.6765%20120.137%2051.7393C121.876%2052.8021%20123.808%2053.3335%20125.934%2053.3335Z'%20fill='%233A3A3A'/%3e%3c/svg%3e",XR="data:image/svg+xml,%3csvg%20width='480'%20height='85'%20viewBox='0%200%20480%2085'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='xMinYMid%20meet'%3e%3cpath%20d='M48.6448%2012.0775L40.9465%207.80469L11.7295%2024.9191C9.15284%2052.6189%2018.7082%2071.6223%2035.081%2082.6271C20.2649%2065.6636%2017.8134%2040.0395%2018.9765%2029.482L48.6448%2012.0775Z'%20fill='%23FF6503'/%3e%3cpath%20d='M58.163%206.39894L50.3792%202.3728L42.6836%206.80882L50.3068%2011.0328L58.163%206.39894Z'%20fill='%23ffffff'/%3e%3cpath%20d='M27.5232%2034.0452C23.4435%2059.5977%2030.8336%2077.08%2035.0386%2082.6272C35.0386%2082.6272%2033.7332%2077.5916%2033.1595%2074.3123C30.7189%2060.3615%2031.6833%2050.4718%2034.5016%2038.0713L65.3684%2020.3563C64.6742%2030.9236%2058.8596%2053.6481%2042.0229%2068.532C49.9949%2064.8357%2060.4902%2058.794%2064.1665%2052.0229C63.9761%2052.437%2065.5692%2049.5794%2065.3684%2049.9853C72.6494%2035.8555%2073.6399%2023.9785%2073.6892%2015.2564L66.1738%2010.9619L27.5232%2034.0452Z'%20fill='%23FF6503'/%3e%3cpath%20d='M63.0229%2054.672C56.7853%2065.8167%2033.207%2074.5911%2033.207%2074.5911C33.207%2074.5911%2033.4213%2076.1015%2033.9555%2078.2837C34.4897%2080.4659%2035.0263%2082.6085%2035.0263%2082.6085C42.7193%2078.658%2054.6229%2070.4326%2063.0229%2054.672Z'%20fill='%23ffffff'/%3e%3cpath%20d='M448.982%2085V60.5074C447.388%2061.7151%20445.601%2062.6571%20443.62%2063.3334C441.639%2064.0581%20439.49%2064.4204%20437.171%2064.4204C433.113%2064.4204%20429.441%2063.3817%20426.156%2061.3045C422.871%2059.2272%20420.239%2056.4736%20418.258%2053.0436C416.326%2049.5654%20415.359%2045.7248%20415.359%2041.5219C415.359%2037.319%20416.326%2033.4784%20418.258%2030.0002C420.239%2026.5219%20422.871%2023.7683%20426.156%2021.7393C429.441%2019.6621%20433.113%2018.6234%20437.171%2018.6234C439.925%2018.6234%20442.461%2019.1065%20444.78%2020.0727C447.098%2021.0389%20449.079%2022.3674%20450.722%2024.0582V19.7828H461.591V85H448.982ZM438.62%2053.3335C440.746%2053.3335%20442.678%2052.8021%20444.417%2051.7393C446.156%2050.6765%20447.533%2049.2513%20448.548%2047.4639C449.61%2045.6765%20450.142%2043.6958%20450.142%2041.5219C450.142%2039.348%20449.61%2037.3673%20448.548%2035.5799C447.533%2033.7925%20446.156%2032.3673%20444.417%2031.3045C442.678%2030.2417%20440.746%2029.7103%20438.62%2029.7103C436.495%2029.7103%20434.562%2030.2417%20432.823%2031.3045C431.084%2032.3673%20429.683%2033.7925%20428.62%2035.5799C427.606%2037.3673%20427.098%2039.348%20427.098%2041.5219C427.098%2043.6958%20427.606%2045.6765%20428.62%2047.4639C429.683%2049.2513%20431.084%2050.6765%20432.823%2051.7393C434.562%2052.8021%20436.495%2053.3335%20438.62%2053.3335Z'%20fill='%23FF6503'/%3e%3cpath%20d='M395.261%2063.2607V19.7826H407.87V63.2607H395.261ZM401.565%2013.4782C399.681%2013.4782%20398.087%2012.826%20396.783%2011.5217C395.478%2010.2174%20394.826%208.62316%20394.826%206.73911C394.826%204.80675%20395.478%203.21255%20396.783%201.95651C398.087%200.65217%20399.681%200%20401.565%200C403.498%200%20405.092%200.65217%20406.348%201.95651C407.652%203.21255%20408.304%204.80675%20408.304%206.73911C408.304%208.62316%20407.652%2010.2174%20406.348%2011.5217C405.092%2012.826%20403.498%2013.4782%20401.565%2013.4782Z'%20fill='%23FF6503'/%3e%3cpath%20d='M367.579%2063.2607V29.7825H359.463V19.7825H367.796V5.28979H379.97V19.7825H388.593V29.7825H380.187V63.2607H367.579Z'%20fill='%23ffffff'/%3e%3cpath%20d='M340.298%2064.7098C335.999%2064.7098%20332.062%2063.6712%20328.487%2061.5939C324.912%2059.5166%20322.062%2056.7147%20319.936%2053.1881C317.859%2049.6616%20316.82%2045.7727%20316.82%2041.5215C316.82%2037.222%20317.859%2033.3331%20319.936%2029.8548C322.062%2026.3283%20324.912%2023.5264%20328.487%2021.4491C332.062%2019.3718%20335.999%2018.3331%20340.298%2018.3331C343.294%2018.3331%20346.12%2018.8404%20348.777%2019.8549C351.482%2020.821%20353.873%2022.2703%20355.951%2024.2027L352.69%2037.0287C351.482%2035.0481%20349.864%2033.3331%20347.835%2031.8838C345.854%2030.3862%20343.511%2029.6374%20340.806%2029.6374C338.535%2029.6374%20336.506%2030.1688%20334.719%2031.2316C332.931%2032.2944%20331.53%2033.7196%20330.516%2035.507C329.501%2037.2944%20328.994%2039.2993%20328.994%2041.5215C328.994%2043.6954%20329.501%2045.7002%20330.516%2047.536C331.53%2049.3234%20332.931%2050.7485%20334.719%2051.8113C336.506%2052.8741%20338.535%2053.4055%20340.806%2053.4055C343.511%2053.4055%20345.854%2052.6809%20347.835%2051.2316C349.864%2049.734%20351.482%2047.9949%20352.69%2046.0142L355.951%2058.8403C353.873%2060.7726%20351.482%2062.2461%20348.777%2063.2605C346.12%2064.2267%20343.294%2064.7098%20340.298%2064.7098Z'%20fill='%23ffffff'/%3e%3cpath%20d='M291.495%2064.7098C286.616%2064.7098%20282.317%2063.6953%20278.597%2061.6664C274.877%2059.6374%20271.978%2056.8596%20269.901%2053.333C267.824%2049.7582%20266.785%2045.6761%20266.785%2041.0867C266.785%2036.6906%20267.8%2032.8017%20269.829%2029.4201C271.858%2025.9901%20274.587%2023.2848%20278.017%2021.3041C281.495%2019.3235%20285.336%2018.3331%20289.539%2018.3331C293.838%2018.3331%20297.679%2019.3235%20301.06%2021.3041C304.442%2023.2365%20307.099%2025.8935%20309.031%2029.2751C311.012%2032.6568%20312.002%2036.4973%20312.002%2040.7968V45.2171H285.481C284.273%2045.2171%20283.114%2045.1447%20282.003%2044.9997C280.891%2044.8548%20279.78%2044.6857%20278.669%2044.4925C279.249%2047.391%20280.674%2049.7582%20282.945%2051.5939C285.263%2053.3813%20288.21%2054.2751%20291.785%2054.2751C294.539%2054.2751%20297.002%2053.7195%20299.176%2052.6084C301.399%2051.4973%20303.21%2050.1205%20304.611%2048.478L307.365%2059.7823C305.191%2061.4248%20302.727%2062.6567%20299.973%2063.4779C297.268%2064.2992%20294.442%2064.7098%20291.495%2064.7098ZM278.379%2036.8838C280.795%2036.3524%20283.162%2036.0867%20285.481%2036.0867H293.162C294.515%2036.0867%20295.795%2036.135%20297.002%2036.2316C298.21%2036.3283%20299.345%2036.4973%20300.408%2036.7389C299.684%2034.1302%20298.355%2032.0771%20296.423%2030.5795C294.539%2029.0819%20292.196%2028.3331%20289.394%2028.3331C286.737%2028.3331%20284.418%2029.1061%20282.437%2030.6519C280.505%2032.1495%20279.152%2034.2268%20278.379%2036.8838Z'%20fill='%23ffffff'/%3e%3cpath%20d='M243.563%2063.2607V29.7825H235.447V19.7825H243.781V5.28979H255.954V19.7825H264.578V29.7825H256.172V63.2607H243.563Z'%20fill='%23ffffff'/%3e%3cpath%20d='M209.761%2064.7098C205.462%2064.7098%20201.525%2063.6712%20197.95%2061.5939C194.375%2059.5166%20191.525%2056.7147%20189.399%2053.1881C187.322%2049.6616%20186.283%2045.7727%20186.283%2041.5215C186.283%2037.222%20187.322%2033.3331%20189.399%2029.8548C191.525%2026.3283%20194.375%2023.5264%20197.95%2021.4491C201.525%2019.3718%20205.462%2018.3331%20209.761%2018.3331C214.109%2018.3331%20218.046%2019.3718%20221.573%2021.4491C225.148%2023.5264%20227.974%2026.3283%20230.051%2029.8548C232.177%2033.3331%20233.24%2037.222%20233.24%2041.5215C233.24%2045.7727%20232.177%2049.6616%20230.051%2053.1881C227.974%2056.7147%20225.148%2059.5166%20221.573%2061.5939C218.046%2063.6712%20214.109%2064.7098%20209.761%2064.7098ZM209.761%2053.4055C211.935%2053.4055%20213.892%2052.8741%20215.631%2051.8113C217.418%2050.7485%20218.819%2049.3234%20219.834%2047.536C220.897%2045.7002%20221.428%2043.6954%20221.428%2041.5215C221.428%2039.2993%20220.897%2037.2944%20219.834%2035.507C218.819%2033.7196%20217.418%2032.2944%20215.631%2031.2316C213.892%2030.1688%20211.935%2029.6374%20209.761%2029.6374C207.587%2029.6374%20205.607%2030.1688%20203.819%2031.2316C202.08%2032.2944%20200.679%2033.7196%20199.617%2035.507C198.602%2037.2944%20198.095%2039.2993%20198.095%2041.5215C198.095%2043.6954%20198.602%2045.7002%20199.617%2047.536C200.679%2049.3234%20202.08%2050.7485%20203.819%2051.8113C205.607%2052.8741%20207.587%2053.4055%20209.761%2053.4055Z'%20fill='%23ffffff'/%3e%3cpath%20d='M156.562%2063.2607V19.7826H167.867V27.2463C169.364%2024.7342%20171.248%2022.8019%20173.519%2021.4492C175.838%2020.0483%20178.543%2019.3478%20181.635%2019.3478L184.389%2030.5072C183.471%2030.2173%20182.432%2030.0724%20181.273%2030.0724C177.649%2030.0724%20174.727%2031.256%20172.504%2033.6231C170.282%2035.9419%20169.171%2039.2753%20169.171%2043.6231V63.2607H156.562Z'%20fill='%23ffffff'/%3e%3cpath%20d='M102.963%2085V19.7828H113.832V24.0582C115.523%2022.3674%20117.504%2021.0389%20119.774%2020.0727C122.093%2019.1065%20124.629%2018.6234%20127.383%2018.6234C131.441%2018.6234%20135.113%2019.6621%20138.398%2021.7393C141.683%2023.7683%20144.291%2026.5219%20146.224%2030.0002C148.204%2033.4784%20149.195%2037.319%20149.195%2041.5219C149.195%2045.7248%20148.204%2049.5654%20146.224%2053.0436C144.291%2056.4736%20141.683%2059.2272%20138.398%2061.3045C135.113%2063.3817%20131.441%2064.4204%20127.383%2064.4204C125.064%2064.4204%20122.915%2064.0581%20120.934%2063.3334C118.953%2062.6571%20117.166%2061.7151%20115.572%2060.5074V85H102.963ZM125.934%2053.3335C128.059%2053.3335%20129.992%2052.8021%20131.731%2051.7393C133.47%2050.6765%20134.847%2049.2513%20135.861%2047.4639C136.924%2045.6765%20137.456%2043.6958%20137.456%2041.5219C137.456%2039.348%20136.924%2037.3673%20135.861%2035.5799C134.847%2033.7925%20133.47%2032.3673%20131.731%2031.3045C129.992%2030.2417%20128.059%2029.7103%20125.934%2029.7103C123.808%2029.7103%20121.876%2030.2417%20120.137%2031.3045C118.398%2032.3673%20116.997%2033.7925%20115.934%2035.5799C114.919%2037.3673%20114.412%2039.348%20114.412%2041.5219C114.412%2043.6958%20114.919%2045.6765%20115.934%2047.4639C116.997%2049.2513%20118.398%2050.6765%20120.137%2051.7393C121.876%2052.8021%20123.808%2053.3335%20125.934%2053.3335Z'%20fill='%23ffffff'/%3e%3c/svg%3e",YR="data:image/svg+xml,%3csvg%20width='480'%20height='85'%20viewBox='0%200%20480%2085'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='xMinYMid%20meet'%3e%3cpath%20d='M48.6448%2012.0775L40.9465%207.80469L11.7295%2024.9191C9.15284%2052.6189%2018.7082%2071.6223%2035.081%2082.6271C20.2649%2065.6636%2017.8134%2040.0395%2018.9765%2029.482L48.6448%2012.0775Z'%20fill='%23FF6503'/%3e%3cpath%20d='M58.163%206.39894L50.3792%202.3728L42.6836%206.80882L50.3068%2011.0328L58.163%206.39894Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M27.5232%2034.0452C23.4435%2059.5977%2030.8336%2077.08%2035.0386%2082.6272C35.0386%2082.6272%2033.7332%2077.5916%2033.1595%2074.3123C30.7189%2060.3615%2031.6833%2050.4718%2034.5016%2038.0713L65.3684%2020.3563C64.6742%2030.9236%2058.8596%2053.6481%2042.0229%2068.532C49.9949%2064.8357%2060.4902%2058.794%2064.1665%2052.0229C63.9761%2052.437%2065.5692%2049.5794%2065.3684%2049.9853C72.6494%2035.8555%2073.6399%2023.9785%2073.6892%2015.2564L66.1738%2010.9619L27.5232%2034.0452Z'%20fill='%23FF6503'/%3e%3cpath%20d='M63.0229%2054.672C56.7853%2065.8167%2033.207%2074.5911%2033.207%2074.5911C33.207%2074.5911%2033.4213%2076.1015%2033.9555%2078.2837C34.4897%2080.4659%2035.0263%2082.6085%2035.0263%2082.6085C42.7193%2078.658%2054.6229%2070.4326%2063.0229%2054.672Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M402.579%2085V62.1985C401.095%2063.3228%20399.431%2064.1998%20397.587%2064.8294C395.743%2065.504%20393.742%2065.8413%20391.583%2065.8413C387.805%2065.8413%20384.387%2064.8744%20381.329%2062.9406C378.271%2061.0067%20375.82%2058.4432%20373.976%2055.2501C372.177%2052.012%20371.277%2048.4366%20371.277%2044.5239C371.277%2040.6112%20372.177%2037.0359%20373.976%2033.7978C375.82%2030.5597%20378.271%2027.9962%20381.329%2026.1073C384.387%2024.1735%20387.805%2023.2065%20391.583%2023.2065C394.146%2023.2065%20396.507%2023.6563%20398.666%2024.5557C400.825%2025.4552%20402.669%2026.692%20404.198%2028.266V24.2859H414.317V85H402.579ZM392.932%2055.5199C394.911%2055.5199%20396.71%2055.0252%20398.329%2054.0358C399.948%2053.0464%20401.23%2051.7197%20402.174%2050.0557C403.163%2048.3916%20403.658%2046.5477%20403.658%2044.5239C403.658%2042.5001%20403.163%2040.6562%20402.174%2038.9922C401.23%2037.3282%20399.948%2036.0015%20398.329%2035.0121C396.71%2034.0226%20394.911%2033.5279%20392.932%2033.5279C390.953%2033.5279%20389.154%2034.0226%20387.535%2035.0121C385.916%2036.0015%20384.612%2037.3282%20383.623%2038.9922C382.678%2040.6562%20382.206%2042.5001%20382.206%2044.5239C382.206%2046.5477%20382.678%2048.3916%20383.623%2050.0557C384.612%2051.7197%20385.916%2053.0464%20387.535%2054.0358C389.154%2055.0252%20390.953%2055.5199%20392.932%2055.5199Z'%20fill='%23FF6503'/%3e%3cpath%20d='M352.567%2064.7618V24.2857H364.305V64.7618H352.567ZM358.436%2018.4167C356.682%2018.4167%20355.198%2017.8096%20353.984%2016.5953C352.769%2015.381%20352.162%2013.8969%20352.162%2012.1429C352.162%2010.344%20352.769%208.85987%20353.984%207.69056C355.198%206.47628%20356.682%205.86914%20358.436%205.86914C360.235%205.86914%20361.719%206.47628%20362.888%207.69056C364.103%208.85987%20364.71%2010.344%20364.71%2012.1429C364.71%2013.8969%20364.103%2015.381%20362.888%2016.5953C361.719%2017.8096%20360.235%2018.4167%20358.436%2018.4167Z'%20fill='%23FF6503'/%3e%3cpath%20d='M305.189%2064.7617V0H316.928V27.3213C318.367%2025.8822%20320.008%2024.8028%20321.852%2024.0833C323.741%2023.3187%20325.742%2022.9364%20327.856%2022.9364C330.734%2022.9364%20333.41%2023.6335%20335.884%2025.0277C338.402%2026.3769%20340.426%2028.3782%20341.955%2031.0317C343.529%2033.6401%20344.316%2036.8107%20344.316%2040.5435V64.7617H332.578V42.0951C332.578%2039.8464%20331.904%2037.8451%20330.554%2036.0912C329.205%2034.3372%20327.271%2033.4602%20324.753%2033.4602C322.729%2033.4602%20320.908%2034.1573%20319.289%2035.5515C317.715%2036.9007%20316.928%2039.0369%20316.928%2041.9602V64.7617H305.189Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M284.513%2066.1107C280.511%2066.1107%20276.845%2065.1438%20273.517%2063.21C270.189%2061.2761%20267.536%2058.6677%20265.557%2055.3846C263.623%2052.1015%20262.656%2048.4812%20262.656%2044.5235C262.656%2040.5209%20263.623%2036.9005%20265.557%2033.6624C267.536%2030.3794%20270.189%2027.7709%20273.517%2025.8371C276.845%2023.9032%20280.511%2022.9363%20284.513%2022.9363C287.302%2022.9363%20289.933%2023.4085%20292.406%2024.3529C294.925%2025.2524%20297.151%2026.6016%20299.085%2028.4005L296.049%2040.341C294.925%2038.4971%20293.418%2036.9005%20291.529%2035.5513C289.685%2034.1571%20287.504%2033.4601%20284.986%2033.4601C282.872%2033.4601%20280.983%2033.9548%20279.319%2034.9442C277.655%2035.9336%20276.351%2037.2603%20275.406%2038.9243C274.462%2040.5883%20273.99%2042.4547%20273.99%2044.5235C273.99%2046.5473%20274.462%2048.4137%20275.406%2050.1227C276.351%2051.7867%20277.655%2053.1134%20279.319%2054.1028C280.983%2055.0923%20282.872%2055.587%20284.986%2055.587C287.504%2055.587%20289.685%2054.9124%20291.529%2053.5632C293.418%2052.169%20294.925%2050.55%20296.049%2048.706L299.085%2060.6465C297.151%2062.4454%20294.925%2063.8171%20292.406%2064.7615C289.933%2065.661%20287.302%2066.1107%20284.513%2066.1107Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M234.988%2064.7617V24.2856H245.512V31.234C246.906%2028.8954%20248.66%2027.0965%20250.774%2025.8372C252.933%2024.533%20255.451%2023.8809%20258.329%2023.8809L260.893%2034.2697C260.038%2033.9999%20259.072%2033.865%20257.992%2033.865C254.619%2033.865%20251.898%2034.9668%20249.83%2037.1705C247.761%2039.3292%20246.726%2042.4324%20246.726%2046.48V64.7617H234.988Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M203.302%2065.8413C199.57%2065.8413%20196.174%2064.8744%20193.116%2062.9406C190.058%2061.0067%20187.607%2058.4432%20185.763%2055.2501C183.964%2052.012%20183.064%2048.4366%20183.064%2044.5239C183.064%2040.6112%20183.964%2037.0359%20185.763%2033.7978C187.607%2030.5597%20190.058%2027.9962%20193.116%2026.1073C196.174%2024.1735%20199.57%2023.2065%20203.302%2023.2065C205.911%2023.2065%20208.295%2023.6788%20210.453%2024.6232C212.612%2025.5227%20214.456%2026.7819%20215.985%2028.401V24.2859H226.104V64.762H215.985V60.6469C214.456%2062.2659%20212.612%2063.5477%20210.453%2064.4921C208.295%2065.3916%20205.911%2065.8413%20203.302%2065.8413ZM204.719%2055.5199C206.698%2055.5199%20208.497%2055.0252%20210.116%2054.0358C211.735%2053.0464%20213.017%2051.7197%20213.961%2050.0557C214.951%2048.3916%20215.445%2046.5477%20215.445%2044.5239C215.445%2042.5001%20214.951%2040.6562%20213.961%2038.9922C213.017%2037.3282%20211.735%2036.0015%20210.116%2035.0121C208.497%2034.0226%20206.698%2033.5279%20204.719%2033.5279C202.74%2033.5279%20200.941%2034.0226%20199.322%2035.0121C197.703%2036.0015%20196.399%2037.3282%20195.41%2038.9922C194.465%2040.6562%20193.993%2042.5001%20193.993%2044.5239C193.993%2046.5477%20194.465%2048.3916%20195.41%2050.0557C196.399%2051.7197%20197.703%2053.0464%20199.322%2054.0358C200.941%2055.0252%20202.74%2055.5199%20204.719%2055.5199Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M159.488%2066.1107C154.946%2066.1107%20150.943%2065.1663%20147.48%2063.2774C144.017%2061.3885%20141.319%2058.8026%20139.385%2055.5195C137.451%2052.1915%20136.484%2048.3912%20136.484%2044.1188C136.484%2040.0262%20137.429%2036.4058%20139.318%2033.2577C141.207%2030.0646%20143.748%2027.5461%20146.941%2025.7021C150.179%2023.8582%20153.754%2022.9363%20157.667%2022.9363C161.669%2022.9363%20165.245%2023.8582%20168.393%2025.7021C171.541%2027.5011%20174.015%2029.9746%20175.814%2033.1228C177.658%2036.2709%20178.579%2039.8463%20178.579%2043.8489V47.964H153.889C152.765%2047.964%20151.685%2047.8965%20150.651%2047.7616C149.617%2047.6267%20148.582%2047.4693%20147.548%2047.2894C148.088%2049.9878%20149.414%2052.1915%20151.528%2053.9005C153.687%2055.5645%20156.43%2056.3965%20159.758%2056.3965C162.322%2056.3965%20164.615%2055.8793%20166.639%2054.8449C168.708%2053.8105%20170.394%2052.5288%20171.699%2050.9997L174.262%2061.5235C172.238%2063.0526%20169.945%2064.1994%20167.381%2064.9639C164.863%2065.7285%20162.232%2066.1107%20159.488%2066.1107ZM147.278%2040.2061C149.527%2039.7114%20151.73%2039.464%20153.889%2039.464H161.04C162.299%2039.464%20163.491%2039.509%20164.615%2039.5989C165.74%2039.6889%20166.796%2039.8463%20167.786%2040.0711C167.111%2037.6426%20165.874%2035.7312%20164.076%2034.337C162.322%2032.9429%20160.14%2032.2458%20157.532%2032.2458C155.058%2032.2458%20152.9%2032.9654%20151.056%2034.4045C149.257%2035.7987%20147.998%2037.7325%20147.278%2040.2061Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M116.036%2066.1107C113.292%2066.1107%20110.504%2065.661%20107.671%2064.7615C104.882%2063.8621%20102.701%2062.6478%20101.127%2061.1187L104.028%2050.0552C105.332%2051.8542%20107.131%2053.4283%20109.425%2054.7775C111.763%2056.1267%20114.169%2056.8013%20116.643%2056.8013C118.307%2056.8013%20119.499%2056.4864%20120.218%2055.8568C120.983%2055.2272%20121.365%2054.4626%20121.365%2053.5632C121.365%2052.5288%20120.983%2051.7867%20120.218%2051.337C119.454%2050.8423%20118.667%2050.4375%20117.857%2050.1227L112.19%2047.964C110.931%2047.4693%20109.492%2046.7947%20107.873%2045.9402C106.254%2045.0857%20104.837%2043.8714%20103.623%2042.2973C102.454%2040.7233%20101.869%2038.6545%20101.869%2036.091C101.869%2033.7524%20102.454%2031.5937%20103.623%2029.6148C104.792%2027.636%20106.479%2026.0394%20108.682%2024.8252C110.931%2023.5659%20113.63%2022.9363%20116.778%2022.9363C119.701%2022.9363%20122.422%2023.431%20124.94%2024.4204C127.504%2025.4098%20129.37%2026.5117%20130.54%2027.7259L127.841%2038.3846C126.312%2036.4058%20124.491%2034.8992%20122.377%2033.8648C120.308%2032.7855%20118.329%2032.2458%20116.44%2032.2458C115.001%2032.2458%20113.944%2032.5381%20113.27%2033.1228C112.595%2033.7074%20112.258%2034.382%20112.258%2035.1466C112.258%2035.7312%20112.483%2036.3159%20112.932%2036.9005C113.427%2037.4402%20114.237%2037.9349%20115.361%2038.3846L120.623%2040.341C122.152%2040.8807%20123.771%2041.6002%20125.48%2042.4997C127.234%2043.3992%20128.718%2044.6584%20129.932%2046.2775C131.147%2047.8515%20131.754%2050.0328%20131.754%2052.8211C131.754%2056.7338%20130.292%2059.9269%20127.369%2062.4004C124.491%2064.874%20120.713%2066.1107%20116.036%2066.1107Z'%20fill='%233A3A3A'/%3e%3c/svg%3e",JR="data:image/svg+xml,%3csvg%20width='480'%20height='85'%20viewBox='0%200%20480%2085'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='xMinYMid%20meet'%3e%3cpath%20d='M48.6448%2012.0775L40.9465%207.80469L11.7295%2024.9191C9.15284%2052.6189%2018.7082%2071.6223%2035.081%2082.6271C20.2649%2065.6636%2017.8134%2040.0395%2018.9765%2029.482L48.6448%2012.0775Z'%20fill='%23FF6503'/%3e%3cpath%20d='M58.163%206.39894L50.3792%202.3728L42.6836%206.80882L50.3068%2011.0328L58.163%206.39894Z'%20fill='%23ffffff'/%3e%3cpath%20d='M27.5232%2034.0452C23.4435%2059.5977%2030.8336%2077.08%2035.0386%2082.6272C35.0386%2082.6272%2033.7332%2077.5916%2033.1595%2074.3123C30.7189%2060.3615%2031.6833%2050.4718%2034.5016%2038.0713L65.3684%2020.3563C64.6742%2030.9236%2058.8596%2053.6481%2042.0229%2068.532C49.9949%2064.8357%2060.4902%2058.794%2064.1665%2052.0229C63.9761%2052.437%2065.5692%2049.5794%2065.3684%2049.9853C72.6494%2035.8555%2073.6399%2023.9785%2073.6892%2015.2564L66.1738%2010.9619L27.5232%2034.0452Z'%20fill='%23FF6503'/%3e%3cpath%20d='M63.0229%2054.672C56.7853%2065.8167%2033.207%2074.5911%2033.207%2074.5911C33.207%2074.5911%2033.4213%2076.1015%2033.9555%2078.2837C34.4897%2080.4659%2035.0263%2082.6085%2035.0263%2082.6085C42.7193%2078.658%2054.6229%2070.4326%2063.0229%2054.672Z'%20fill='%23ffffff'/%3e%3cpath%20d='M402.579%2085V62.1985C401.095%2063.3228%20399.431%2064.1998%20397.587%2064.8294C395.743%2065.504%20393.742%2065.8413%20391.583%2065.8413C387.805%2065.8413%20384.387%2064.8744%20381.329%2062.9406C378.271%2061.0067%20375.82%2058.4432%20373.976%2055.2501C372.177%2052.012%20371.277%2048.4366%20371.277%2044.5239C371.277%2040.6112%20372.177%2037.0359%20373.976%2033.7978C375.82%2030.5597%20378.271%2027.9962%20381.329%2026.1073C384.387%2024.1735%20387.805%2023.2065%20391.583%2023.2065C394.146%2023.2065%20396.507%2023.6563%20398.666%2024.5557C400.825%2025.4552%20402.669%2026.692%20404.198%2028.266V24.2859H414.317V85H402.579ZM392.932%2055.5199C394.911%2055.5199%20396.71%2055.0252%20398.329%2054.0358C399.948%2053.0464%20401.23%2051.7197%20402.174%2050.0557C403.163%2048.3916%20403.658%2046.5477%20403.658%2044.5239C403.658%2042.5001%20403.163%2040.6562%20402.174%2038.9922C401.23%2037.3282%20399.948%2036.0015%20398.329%2035.0121C396.71%2034.0226%20394.911%2033.5279%20392.932%2033.5279C390.953%2033.5279%20389.154%2034.0226%20387.535%2035.0121C385.916%2036.0015%20384.612%2037.3282%20383.623%2038.9922C382.678%2040.6562%20382.206%2042.5001%20382.206%2044.5239C382.206%2046.5477%20382.678%2048.3916%20383.623%2050.0557C384.612%2051.7197%20385.916%2053.0464%20387.535%2054.0358C389.154%2055.0252%20390.953%2055.5199%20392.932%2055.5199Z'%20fill='%23FF6503'/%3e%3cpath%20d='M352.567%2064.7618V24.2857H364.305V64.7618H352.567ZM358.436%2018.4167C356.682%2018.4167%20355.198%2017.8096%20353.984%2016.5953C352.769%2015.381%20352.162%2013.8969%20352.162%2012.1429C352.162%2010.344%20352.769%208.85987%20353.984%207.69056C355.198%206.47628%20356.682%205.86914%20358.436%205.86914C360.235%205.86914%20361.719%206.47628%20362.888%207.69056C364.103%208.85987%20364.71%2010.344%20364.71%2012.1429C364.71%2013.8969%20364.103%2015.381%20362.888%2016.5953C361.719%2017.8096%20360.235%2018.4167%20358.436%2018.4167Z'%20fill='%23FF6503'/%3e%3cpath%20d='M305.189%2064.7617V0H316.928V27.3213C318.367%2025.8822%20320.008%2024.8028%20321.852%2024.0833C323.741%2023.3187%20325.742%2022.9364%20327.856%2022.9364C330.734%2022.9364%20333.41%2023.6335%20335.884%2025.0277C338.402%2026.3769%20340.426%2028.3782%20341.955%2031.0317C343.529%2033.6401%20344.316%2036.8107%20344.316%2040.5435V64.7617H332.578V42.0951C332.578%2039.8464%20331.904%2037.8451%20330.554%2036.0912C329.205%2034.3372%20327.271%2033.4602%20324.753%2033.4602C322.729%2033.4602%20320.908%2034.1573%20319.289%2035.5515C317.715%2036.9007%20316.928%2039.0369%20316.928%2041.9602V64.7617H305.189Z'%20fill='%23ffffff'/%3e%3cpath%20d='M284.513%2066.1107C280.511%2066.1107%20276.845%2065.1438%20273.517%2063.21C270.189%2061.2761%20267.536%2058.6677%20265.557%2055.3846C263.623%2052.1015%20262.656%2048.4812%20262.656%2044.5235C262.656%2040.5209%20263.623%2036.9005%20265.557%2033.6624C267.536%2030.3794%20270.189%2027.7709%20273.517%2025.8371C276.845%2023.9032%20280.511%2022.9363%20284.513%2022.9363C287.302%2022.9363%20289.933%2023.4085%20292.406%2024.3529C294.925%2025.2524%20297.151%2026.6016%20299.085%2028.4005L296.049%2040.341C294.925%2038.4971%20293.418%2036.9005%20291.529%2035.5513C289.685%2034.1571%20287.504%2033.4601%20284.986%2033.4601C282.872%2033.4601%20280.983%2033.9548%20279.319%2034.9442C277.655%2035.9336%20276.351%2037.2603%20275.406%2038.9243C274.462%2040.5883%20273.99%2042.4547%20273.99%2044.5235C273.99%2046.5473%20274.462%2048.4137%20275.406%2050.1227C276.351%2051.7867%20277.655%2053.1134%20279.319%2054.1028C280.983%2055.0923%20282.872%2055.587%20284.986%2055.587C287.504%2055.587%20289.685%2054.9124%20291.529%2053.5632C293.418%2052.169%20294.925%2050.55%20296.049%2048.706L299.085%2060.6465C297.151%2062.4454%20294.925%2063.8171%20292.406%2064.7615C289.933%2065.661%20287.302%2066.1107%20284.513%2066.1107Z'%20fill='%23ffffff'/%3e%3cpath%20d='M234.988%2064.7617V24.2856H245.512V31.234C246.906%2028.8954%20248.66%2027.0965%20250.774%2025.8372C252.933%2024.533%20255.451%2023.8809%20258.329%2023.8809L260.893%2034.2697C260.038%2033.9999%20259.072%2033.865%20257.992%2033.865C254.619%2033.865%20251.898%2034.9668%20249.83%2037.1705C247.761%2039.3292%20246.726%2042.4324%20246.726%2046.48V64.7617H234.988Z'%20fill='%23ffffff'/%3e%3cpath%20d='M203.302%2065.8413C199.57%2065.8413%20196.174%2064.8744%20193.116%2062.9406C190.058%2061.0067%20187.607%2058.4432%20185.763%2055.2501C183.964%2052.012%20183.064%2048.4366%20183.064%2044.5239C183.064%2040.6112%20183.964%2037.0359%20185.763%2033.7978C187.607%2030.5597%20190.058%2027.9962%20193.116%2026.1073C196.174%2024.1735%20199.57%2023.2065%20203.302%2023.2065C205.911%2023.2065%20208.295%2023.6788%20210.453%2024.6232C212.612%2025.5227%20214.456%2026.7819%20215.985%2028.401V24.2859H226.104V64.762H215.985V60.6469C214.456%2062.2659%20212.612%2063.5477%20210.453%2064.4921C208.295%2065.3916%20205.911%2065.8413%20203.302%2065.8413ZM204.719%2055.5199C206.698%2055.5199%20208.497%2055.0252%20210.116%2054.0358C211.735%2053.0464%20213.017%2051.7197%20213.961%2050.0557C214.951%2048.3916%20215.445%2046.5477%20215.445%2044.5239C215.445%2042.5001%20214.951%2040.6562%20213.961%2038.9922C213.017%2037.3282%20211.735%2036.0015%20210.116%2035.0121C208.497%2034.0226%20206.698%2033.5279%20204.719%2033.5279C202.74%2033.5279%20200.941%2034.0226%20199.322%2035.0121C197.703%2036.0015%20196.399%2037.3282%20195.41%2038.9922C194.465%2040.6562%20193.993%2042.5001%20193.993%2044.5239C193.993%2046.5477%20194.465%2048.3916%20195.41%2050.0557C196.399%2051.7197%20197.703%2053.0464%20199.322%2054.0358C200.941%2055.0252%20202.74%2055.5199%20204.719%2055.5199Z'%20fill='%23ffffff'/%3e%3cpath%20d='M159.488%2066.1107C154.946%2066.1107%20150.943%2065.1663%20147.48%2063.2774C144.017%2061.3885%20141.319%2058.8026%20139.385%2055.5195C137.451%2052.1915%20136.484%2048.3912%20136.484%2044.1188C136.484%2040.0262%20137.429%2036.4058%20139.318%2033.2577C141.207%2030.0646%20143.748%2027.5461%20146.941%2025.7021C150.179%2023.8582%20153.754%2022.9363%20157.667%2022.9363C161.669%2022.9363%20165.245%2023.8582%20168.393%2025.7021C171.541%2027.5011%20174.015%2029.9746%20175.814%2033.1228C177.658%2036.2709%20178.579%2039.8463%20178.579%2043.8489V47.964H153.889C152.765%2047.964%20151.685%2047.8965%20150.651%2047.7616C149.617%2047.6267%20148.582%2047.4693%20147.548%2047.2894C148.088%2049.9878%20149.414%2052.1915%20151.528%2053.9005C153.687%2055.5645%20156.43%2056.3965%20159.758%2056.3965C162.322%2056.3965%20164.615%2055.8793%20166.639%2054.8449C168.708%2053.8105%20170.394%2052.5288%20171.699%2050.9997L174.262%2061.5235C172.238%2063.0526%20169.945%2064.1994%20167.381%2064.9639C164.863%2065.7285%20162.232%2066.1107%20159.488%2066.1107ZM147.278%2040.2061C149.527%2039.7114%20151.73%2039.464%20153.889%2039.464H161.04C162.299%2039.464%20163.491%2039.509%20164.615%2039.5989C165.74%2039.6889%20166.796%2039.8463%20167.786%2040.0711C167.111%2037.6426%20165.874%2035.7312%20164.076%2034.337C162.322%2032.9429%20160.14%2032.2458%20157.532%2032.2458C155.058%2032.2458%20152.9%2032.9654%20151.056%2034.4045C149.257%2035.7987%20147.998%2037.7325%20147.278%2040.2061Z'%20fill='%23ffffff'/%3e%3cpath%20d='M116.036%2066.1107C113.292%2066.1107%20110.504%2065.661%20107.671%2064.7615C104.882%2063.8621%20102.701%2062.6478%20101.127%2061.1187L104.028%2050.0552C105.332%2051.8542%20107.131%2053.4283%20109.425%2054.7775C111.763%2056.1267%20114.169%2056.8013%20116.643%2056.8013C118.307%2056.8013%20119.499%2056.4864%20120.218%2055.8568C120.983%2055.2272%20121.365%2054.4626%20121.365%2053.5632C121.365%2052.5288%20120.983%2051.7867%20120.218%2051.337C119.454%2050.8423%20118.667%2050.4375%20117.857%2050.1227L112.19%2047.964C110.931%2047.4693%20109.492%2046.7947%20107.873%2045.9402C106.254%2045.0857%20104.837%2043.8714%20103.623%2042.2973C102.454%2040.7233%20101.869%2038.6545%20101.869%2036.091C101.869%2033.7524%20102.454%2031.5937%20103.623%2029.6148C104.792%2027.636%20106.479%2026.0394%20108.682%2024.8252C110.931%2023.5659%20113.63%2022.9363%20116.778%2022.9363C119.701%2022.9363%20122.422%2023.431%20124.94%2024.4204C127.504%2025.4098%20129.37%2026.5117%20130.54%2027.7259L127.841%2038.3846C126.312%2036.4058%20124.491%2034.8992%20122.377%2033.8648C120.308%2032.7855%20118.329%2032.2458%20116.44%2032.2458C115.001%2032.2458%20113.944%2032.5381%20113.27%2033.1228C112.595%2033.7074%20112.258%2034.382%20112.258%2035.1466C112.258%2035.7312%20112.483%2036.3159%20112.932%2036.9005C113.427%2037.4402%20114.237%2037.9349%20115.361%2038.3846L120.623%2040.341C122.152%2040.8807%20123.771%2041.6002%20125.48%2042.4997C127.234%2043.3992%20128.718%2044.6584%20129.932%2046.2775C131.147%2047.8515%20131.754%2050.0328%20131.754%2052.8211C131.754%2056.7338%20130.292%2059.9269%20127.369%2062.4004C124.491%2064.874%20120.713%2066.1107%20116.036%2066.1107Z'%20fill='%23ffffff'/%3e%3c/svg%3e",UR="data:image/svg+xml,%3csvg%20width='487'%20height='85'%20viewBox='0%200%20487%2085'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M48.6448%2012.0775L40.9465%207.80469L11.7295%2024.9191C9.15284%2052.6189%2018.7082%2071.6223%2035.081%2082.6271C20.2649%2065.6636%2017.8134%2040.0395%2018.9765%2029.482L48.6448%2012.0775Z'%20fill='%23FF6503'/%3e%3cpath%20d='M58.163%206.39894L50.3792%202.3728L42.6836%206.80882L50.3068%2011.0328L58.163%206.39894Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M27.5232%2034.0452C23.4435%2059.5977%2030.8336%2077.08%2035.0386%2082.6272C35.0386%2082.6272%2033.7332%2077.5916%2033.1595%2074.3123C30.7189%2060.3615%2031.6833%2050.4718%2034.5016%2038.0713L65.3684%2020.3563C64.6742%2030.9236%2058.8596%2053.6481%2042.0229%2068.532C49.9949%2064.8357%2060.4902%2058.794%2064.1665%2052.0229C63.9761%2052.437%2065.5692%2049.5794%2065.3684%2049.9853C72.6494%2035.8555%2073.6399%2023.9785%2073.6892%2015.2564L66.1738%2010.9619L27.5232%2034.0452Z'%20fill='%23FF6503'/%3e%3cpath%20d='M63.0229%2054.672C56.7853%2065.8167%2033.207%2074.5911%2033.207%2074.5911C33.207%2074.5911%2033.4213%2076.1015%2033.9555%2078.2837C34.4897%2080.4659%2035.0263%2082.6085%2035.0263%2082.6085C42.7193%2078.658%2054.6229%2070.4326%2063.0229%2054.672Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M473.854%2085V60.5074C472.259%2061.7151%20470.472%2062.6571%20468.491%2063.3334C466.511%2064.0581%20464.361%2064.4204%20462.042%2064.4204C457.984%2064.4204%20454.313%2063.3817%20451.028%2061.3045C447.743%2059.2272%20445.11%2056.4736%20443.129%2053.0436C441.197%2049.5654%20440.23%2045.7248%20440.23%2041.5219C440.23%2037.319%20441.197%2033.4784%20443.129%2030.0002C445.11%2026.5219%20447.743%2023.7683%20451.028%2021.7393C454.313%2019.6621%20457.984%2018.6234%20462.042%2018.6234C464.796%2018.6234%20467.332%2019.1065%20469.651%2020.0727C471.969%2021.0389%20473.95%2022.3674%20475.593%2024.0582V19.7828H486.462V85H473.854ZM463.491%2053.3335C465.617%2053.3335%20467.549%2052.8021%20469.288%2051.7393C471.027%2050.6765%20472.404%2049.2513%20473.419%2047.4639C474.482%2045.6765%20475.013%2043.6958%20475.013%2041.5219C475.013%2039.348%20474.482%2037.3673%20473.419%2035.5799C472.404%2033.7925%20471.027%2032.3673%20469.288%2031.3045C467.549%2030.2417%20465.617%2029.7103%20463.491%2029.7103C461.366%2029.7103%20459.433%2030.2417%20457.694%2031.3045C455.955%2032.3673%20454.554%2033.7925%20453.491%2035.5799C452.477%2037.3673%20451.97%2039.348%20451.97%2041.5219C451.97%2043.6958%20452.477%2045.6765%20453.491%2047.4639C454.554%2049.2513%20455.955%2050.6765%20457.694%2051.7393C459.433%2052.8021%20461.366%2053.3335%20463.491%2053.3335Z'%20fill='%23FF6503'/%3e%3cpath%20d='M420.132%2063.2607V19.7826H432.741V63.2607H420.132ZM426.436%2013.4782C424.552%2013.4782%20422.958%2012.826%20421.654%2011.5217C420.349%2010.2174%20419.697%208.62316%20419.697%206.73911C419.697%204.80675%20420.349%203.21255%20421.654%201.95651C422.958%200.65217%20424.552%200%20426.436%200C428.369%200%20429.963%200.65217%20431.219%201.95651C432.523%203.21255%20433.175%204.80675%20433.175%206.73911C433.175%208.62316%20432.523%2010.2174%20431.219%2011.5217C429.963%2012.826%20428.369%2013.4782%20426.436%2013.4782Z'%20fill='%23FF6503'/%3e%3cpath%20d='M392.452%2063.2607V29.7825H384.336V19.7825H392.669V5.28979H404.843V19.7825H413.466V29.7825H405.061V63.2607H392.452Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M338.059%2063.2605V19.7824H349.363V24.565C350.909%2022.536%20352.817%2020.9901%20355.088%2019.9273C357.358%2018.8645%20359.798%2018.3331%20362.406%2018.3331C365.498%2018.3331%20368.373%2019.0819%20371.03%2020.5795C373.735%2022.0288%20375.909%2024.1785%20377.551%2027.0288C379.242%2029.8307%20380.087%2033.2365%20380.087%2037.2461V63.2605H367.479V38.9128C367.479%2036.4973%20366.754%2034.3476%20365.305%2032.4635C363.856%2030.5795%20361.778%2029.6374%20359.073%2029.6374C356.899%2029.6374%20354.943%2030.3862%20353.203%2031.8838C351.513%2033.3331%20350.667%2035.6278%20350.667%2038.7679V63.2605H338.059Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M310.56%2064.7098C305.68%2064.7098%20301.381%2063.6953%20297.661%2061.6664C293.941%2059.6374%20291.043%2056.8596%20288.966%2053.333C286.888%2049.7582%20285.85%2045.6761%20285.85%2041.0867C285.85%2036.6906%20286.864%2032.8017%20288.893%2029.4201C290.922%2025.9901%20293.652%2023.2848%20297.081%2021.3041C300.56%2019.3235%20304.4%2018.3331%20308.603%2018.3331C312.903%2018.3331%20316.743%2019.3235%20320.125%2021.3041C323.507%2023.2365%20326.164%2025.8935%20328.096%2029.2751C330.077%2032.6568%20331.067%2036.4973%20331.067%2040.7968V45.2171H304.545C303.337%2045.2171%20302.178%2045.1447%20301.067%2044.9997C299.956%2044.8548%20298.845%2044.6857%20297.734%2044.4925C298.313%2047.391%20299.738%2049.7582%20302.009%2051.5939C304.328%2053.3813%20307.275%2054.2751%20310.85%2054.2751C313.603%2054.2751%20316.067%2053.7195%20318.241%2052.6084C320.463%2051.4973%20322.275%2050.1205%20323.676%2048.478L326.429%2059.7823C324.255%2061.4248%20321.792%2062.6567%20319.038%2063.4779C316.333%2064.2992%20313.507%2064.7098%20310.56%2064.7098ZM297.444%2036.8838C299.859%2036.3524%20302.226%2036.0867%20304.545%2036.0867H312.226C313.579%2036.0867%20314.859%2036.135%20316.067%2036.2316C317.275%2036.3283%20318.41%2036.4973%20319.473%2036.7389C318.748%2034.1302%20317.42%2032.0771%20315.487%2030.5795C313.603%2029.0819%20311.26%2028.3331%20308.458%2028.3331C305.801%2028.3331%20303.482%2029.1061%20301.502%2030.6519C299.569%2032.1495%20298.217%2034.2268%20297.444%2036.8838Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M263.884%2064.7098C260.937%2064.7098%20257.942%2064.2267%20254.898%2063.2605C251.903%2062.2944%20249.56%2060.99%20247.869%2059.3475L250.985%2047.4635C252.386%2049.3959%20254.318%2051.0867%20256.782%2052.5359C259.294%2053.9852%20261.879%2054.7098%20264.536%2054.7098C266.323%2054.7098%20267.603%2054.3717%20268.376%2053.6954C269.198%2053.019%20269.608%2052.1978%20269.608%2051.2316C269.608%2050.1205%20269.198%2049.3234%20268.376%2048.8403C267.555%2048.3089%20266.71%2047.8741%20265.84%2047.536L259.753%2045.2171C258.401%2044.6857%20256.855%2043.9611%20255.115%2043.0432C253.376%2042.1253%20251.855%2040.821%20250.55%2039.1302C249.294%2037.4394%20248.666%2035.2171%20248.666%2032.4635C248.666%2029.9515%20249.294%2027.6326%20250.55%2025.507C251.806%2023.3814%20253.618%2021.6665%20255.985%2020.3621C258.401%2019.0095%20261.299%2018.3331%20264.681%2018.3331C267.821%2018.3331%20270.743%2018.8645%20273.449%2019.9273C276.202%2020.9901%20278.207%2022.1737%20279.463%2023.478L276.565%2034.9273C274.922%2032.8017%20272.966%2031.1833%20270.695%2030.0722C268.473%2028.9128%20266.347%2028.3331%20264.318%2028.3331C262.772%2028.3331%20261.637%2028.6471%20260.913%2029.2751C260.188%2029.9031%20259.826%2030.6278%20259.826%2031.449C259.826%2032.0771%20260.067%2032.7051%20260.55%2033.3331C261.082%2033.9128%20261.951%2034.4442%20263.159%2034.9273L268.811%2037.0287C270.454%2037.6084%20272.193%2038.3814%20274.028%2039.3476C275.913%2040.3137%20277.507%2041.6664%20278.811%2043.4055C280.115%2045.0963%20280.768%2047.4393%20280.768%2050.4345C280.768%2054.6374%20279.198%2058.0673%20276.057%2060.7243C272.966%2063.3813%20268.908%2064.7098%20263.884%2064.7098Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M198.861%2063.2605V19.7824H210.166V24.565C211.712%2022.536%20213.62%2020.9901%20215.89%2019.9273C218.161%2018.8645%20220.6%2018.3331%20223.209%2018.3331C226.301%2018.3331%20229.175%2019.0819%20231.832%2020.5795C234.538%2022.0288%20236.711%2024.1785%20238.354%2027.0288C240.045%2029.8307%20240.89%2033.2365%20240.89%2037.2461V63.2605H228.282V38.9128C228.282%2036.4973%20227.557%2034.3476%20226.108%2032.4635C224.658%2030.5795%20222.581%2029.6374%20219.876%2029.6374C217.702%2029.6374%20215.745%2030.3862%20214.006%2031.8838C212.315%2033.3331%20211.47%2035.6278%20211.47%2038.7679V63.2605H198.861Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M167.99%2064.7098C163.69%2064.7098%20159.753%2063.6712%20156.178%2061.5939C152.603%2059.5166%20149.753%2056.7147%20147.628%2053.1881C145.55%2049.6616%20144.512%2045.7727%20144.512%2041.5215C144.512%2037.222%20145.55%2033.3331%20147.628%2029.8548C149.753%2026.3283%20152.603%2023.5264%20156.178%2021.4491C159.753%2019.3718%20163.69%2018.3331%20167.99%2018.3331C172.338%2018.3331%20176.275%2019.3718%20179.801%2021.4491C183.376%2023.5264%20186.202%2026.3283%20188.28%2029.8548C190.405%2033.3331%20191.468%2037.222%20191.468%2041.5215C191.468%2045.7727%20190.405%2049.6616%20188.28%2053.1881C186.202%2056.7147%20183.376%2059.5166%20179.801%2061.5939C176.275%2063.6712%20172.338%2064.7098%20167.99%2064.7098ZM167.99%2053.4055C170.164%2053.4055%20172.12%2052.8741%20173.859%2051.8113C175.647%2050.7485%20177.048%2049.3234%20178.062%2047.536C179.125%2045.7002%20179.657%2043.6954%20179.657%2041.5215C179.657%2039.2993%20179.125%2037.2944%20178.062%2035.507C177.048%2033.7196%20175.647%2032.2944%20173.859%2031.2316C172.12%2030.1688%20170.164%2029.6374%20167.99%2029.6374C165.816%2029.6374%20163.835%2030.1688%20162.048%2031.2316C160.309%2032.2944%20158.908%2033.7196%20157.845%2035.507C156.831%2037.2944%20156.323%2039.2993%20156.323%2041.5215C156.323%2043.6954%20156.831%2045.7002%20157.845%2047.536C158.908%2049.3234%20160.309%2050.7485%20162.048%2051.8113C163.835%2052.8741%20165.816%2053.4055%20167.99%2053.4055Z'%20fill='%233A3A3A'/%3e%3cpath%20d='M124.478%2064.7098C120.179%2064.7098%20116.242%2063.6712%20112.667%2061.5939C109.092%2059.5166%20106.242%2056.7147%20104.116%2053.1881C102.039%2049.6616%20101%2045.7727%20101%2041.5215C101%2037.222%20102.039%2033.3331%20104.116%2029.8548C106.242%2026.3283%20109.092%2023.5264%20112.667%2021.4491C116.242%2019.3718%20120.179%2018.3331%20124.478%2018.3331C127.473%2018.3331%20130.299%2018.8404%20132.956%2019.8549C135.662%2020.821%20138.053%2022.2703%20140.13%2024.2027L136.869%2037.0287C135.662%2035.0481%20134.043%2033.3331%20132.014%2031.8838C130.034%2030.3862%20127.691%2029.6374%20124.985%2029.6374C122.715%2029.6374%20120.686%2030.1688%20118.899%2031.2316C117.111%2032.2944%20115.71%2033.7196%20114.696%2035.507C113.681%2037.2944%20113.174%2039.2993%20113.174%2041.5215C113.174%2043.6954%20113.681%2045.7002%20114.696%2047.536C115.71%2049.3234%20117.111%2050.7485%20118.899%2051.8113C120.686%2052.8741%20122.715%2053.4055%20124.985%2053.4055C127.691%2053.4055%20130.034%2052.6809%20132.014%2051.2316C134.043%2049.734%20135.662%2047.9949%20136.869%2046.0142L140.13%2058.8403C138.053%2060.7726%20135.662%2062.2461%20132.956%2063.2605C130.299%2064.2267%20127.473%2064.7098%20124.478%2064.7098Z'%20fill='%233A3A3A'/%3e%3c/svg%3e",QR="data:image/svg+xml,%3csvg%20width='528'%20height='165'%20viewBox='0%200%20528%20165'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='528'%20height='165'%20fill='black'/%3e%3cpath%20d='M69.6448%2052.0775L61.9465%2047.8047L32.7295%2064.9191C30.1528%2092.6189%2039.7082%20111.622%2056.081%20122.627C41.2649%20105.664%2038.8134%2080.0395%2039.9765%2069.482L69.6448%2052.0775Z'%20fill='%23FF6503'/%3e%3cpath%20d='M79.163%2046.3989L71.3792%2042.3728L63.6836%2046.8088L71.3068%2051.0328L79.163%2046.3989Z'%20fill='white'/%3e%3cpath%20d='M48.5232%2074.0452C44.4435%2099.5977%2051.8336%20117.08%2056.0386%20122.627C56.0386%20122.627%2054.7332%20117.592%2054.1595%20114.312C51.7189%20100.361%2052.6833%2090.4718%2055.5016%2078.0713L86.3684%2060.3563C85.6742%2070.9236%2079.8596%2093.6481%2063.0229%20108.532C70.9949%20104.836%2081.4902%2098.794%2085.1665%2092.0229C84.9761%2092.437%2086.5692%2089.5794%2086.3684%2089.9853C93.6494%2075.8555%2094.6399%2063.9785%2094.6892%2055.2564L87.1738%2050.9619L48.5232%2074.0452Z'%20fill='%23FF6503'/%3e%3cpath%20d='M84.0229%2094.672C77.7853%20105.817%2054.207%20114.591%2054.207%20114.591C54.207%20114.591%2054.4213%20116.102%2054.9555%20118.284C55.4897%20120.466%2056.0263%20122.609%2056.0263%20122.609C63.7193%20118.658%2075.6229%20110.433%2084.0229%2094.672Z'%20fill='white'/%3e%3cpath%20d='M494.854%20125V100.507C493.259%20101.715%20491.472%20102.657%20489.491%20103.333C487.511%20104.058%20485.361%20104.42%20483.042%20104.42C478.984%20104.42%20475.313%20103.382%20472.028%20101.304C468.743%2099.2271%20466.11%2096.4735%20464.129%2093.0435C462.197%2089.5653%20461.23%2085.7247%20461.23%2081.5218C461.23%2077.3189%20462.197%2073.4784%20464.129%2070.0001C466.11%2066.5219%20468.743%2063.7683%20472.028%2061.7393C475.313%2059.662%20478.984%2058.6234%20483.042%2058.6234C485.796%2058.6234%20488.332%2059.1064%20490.651%2060.0726C492.969%2061.0388%20494.95%2062.3673%20496.593%2064.0581V59.7828H507.462V125H494.854ZM484.491%2093.3334C486.617%2093.3334%20488.549%2092.802%20490.288%2091.7392C492.027%2090.6764%20493.404%2089.2513%20494.419%2087.4639C495.482%2085.6764%20496.013%2083.6957%20496.013%2081.5218C496.013%2079.3479%20495.482%2077.3673%20494.419%2075.5798C493.404%2073.7924%20492.027%2072.3673%20490.288%2071.3045C488.549%2070.2417%20486.617%2069.7103%20484.491%2069.7103C482.366%2069.7103%20480.433%2070.2417%20478.694%2071.3045C476.955%2072.3673%20475.554%2073.7924%20474.491%2075.5798C473.477%2077.3673%20472.97%2079.3479%20472.97%2081.5218C472.97%2083.6957%20473.477%2085.6764%20474.491%2087.4639C475.554%2089.2513%20476.955%2090.6764%20478.694%2091.7392C480.433%2092.802%20482.366%2093.3334%20484.491%2093.3334Z'%20fill='%23FF6503'/%3e%3cpath%20d='M441.132%20103.261V59.7826H453.741V103.261H441.132ZM447.436%2053.4782C445.552%2053.4782%20443.958%2052.826%20442.654%2051.5217C441.349%2050.2174%20440.697%2048.6232%20440.697%2046.7391C440.697%2044.8067%20441.349%2043.2125%20442.654%2041.9565C443.958%2040.6522%20445.552%2040%20447.436%2040C449.369%2040%20450.963%2040.6522%20452.219%2041.9565C453.523%2043.2125%20454.175%2044.8067%20454.175%2046.7391C454.175%2048.6232%20453.523%2050.2174%20452.219%2051.5217C450.963%2052.826%20449.369%2053.4782%20447.436%2053.4782Z'%20fill='%23FF6503'/%3e%3cpath%20d='M413.452%20103.261V69.7824H405.336V59.7824H413.669V45.2897H425.843V59.7824H434.466V69.7824H426.061V103.261H413.452Z'%20fill='white'/%3e%3cpath%20d='M359.059%20103.261V59.7825H370.363V64.5651C371.909%2062.5361%20373.817%2060.9902%20376.088%2059.9274C378.358%2058.8646%20380.798%2058.3332%20383.406%2058.3332C386.498%2058.3332%20389.373%2059.082%20392.03%2060.5796C394.735%2062.0288%20396.909%2064.1786%20398.551%2067.0288C400.242%2069.8307%20401.087%2073.2365%20401.087%2077.2462V103.261H388.479V78.9128C388.479%2076.4974%20387.754%2074.3476%20386.305%2072.4636C384.856%2070.5795%20382.778%2069.6375%20380.073%2069.6375C377.899%2069.6375%20375.943%2070.3863%20374.203%2071.8839C372.513%2073.3332%20371.667%2075.6278%20371.667%2078.7679V103.261H359.059Z'%20fill='white'/%3e%3cpath%20d='M331.56%20104.71C326.68%20104.71%20322.381%20103.695%20318.661%20101.666C314.941%2099.6374%20312.043%2096.8597%20309.966%2093.3331C307.888%2089.7582%20306.85%2085.6761%20306.85%2081.0868C306.85%2076.6906%20307.864%2072.8018%20309.893%2069.4201C311.922%2065.9902%20314.652%2063.2849%20318.081%2061.3042C321.56%2059.3235%20325.4%2058.3332%20329.603%2058.3332C333.903%2058.3332%20337.743%2059.3235%20341.125%2061.3042C344.507%2063.2366%20347.164%2065.8936%20349.096%2069.2752C351.077%2072.6568%20352.067%2076.4974%20352.067%2080.7969V85.2172H325.545C324.337%2085.2172%20323.178%2085.1447%20322.067%2084.9998C320.956%2084.8549%20319.845%2084.6858%20318.734%2084.4925C319.313%2087.3911%20320.738%2089.7582%20323.009%2091.594C325.328%2093.3814%20328.275%2094.2751%20331.85%2094.2751C334.603%2094.2751%20337.067%2093.7196%20339.241%2092.6085C341.463%2091.4974%20343.275%2090.1205%20344.676%2088.478L347.429%2099.7824C345.255%20101.425%20342.792%20102.657%20340.038%20103.478C337.333%20104.299%20334.507%20104.71%20331.56%20104.71ZM318.444%2076.8839C320.859%2076.3525%20323.226%2076.0868%20325.545%2076.0868H333.226C334.579%2076.0868%20335.859%2076.1351%20337.067%2076.2317C338.275%2076.3283%20339.41%2076.4974%20340.473%2076.7389C339.748%2074.1303%20338.42%2072.0771%20336.487%2070.5795C334.603%2069.082%20332.26%2068.3332%20329.458%2068.3332C326.801%2068.3332%20324.482%2069.1061%20322.502%2070.652C320.569%2072.1496%20319.217%2074.2269%20318.444%2076.8839Z'%20fill='white'/%3e%3cpath%20d='M284.884%20104.71C281.937%20104.71%20278.942%20104.227%20275.898%20103.261C272.903%20102.294%20270.56%20100.99%20268.869%2099.3476L271.985%2087.4635C273.386%2089.3959%20275.318%2091.0867%20277.782%2092.536C280.294%2093.9853%20282.879%2094.7099%20285.536%2094.7099C287.323%2094.7099%20288.603%2094.3717%20289.376%2093.6954C290.198%2093.0191%20290.608%2092.1978%20290.608%2091.2317C290.608%2090.1205%20290.198%2089.3234%20289.376%2088.8404C288.555%2088.309%20287.71%2087.8742%20286.84%2087.536L280.753%2085.2172C279.401%2084.6858%20277.855%2083.9611%20276.115%2083.0433C274.376%2082.1254%20272.855%2080.8211%20271.55%2079.1302C270.294%2077.4394%20269.666%2075.2172%20269.666%2072.4636C269.666%2069.9515%20270.294%2067.6327%20271.55%2065.5071C272.806%2063.3815%20274.618%2061.6665%20276.985%2060.3622C279.401%2059.0095%20282.299%2058.3332%20285.681%2058.3332C288.821%2058.3332%20291.743%2058.8646%20294.449%2059.9274C297.202%2060.9902%20299.207%2062.1738%20300.463%2063.4781L297.565%2074.9274C295.922%2072.8018%20293.966%2071.1834%20291.695%2070.0723C289.473%2068.9129%20287.347%2068.3332%20285.318%2068.3332C283.772%2068.3332%20282.637%2068.6472%20281.913%2069.2752C281.188%2069.9032%20280.826%2070.6278%20280.826%2071.4491C280.826%2072.0771%20281.067%2072.7051%20281.55%2073.3332C282.082%2073.9129%20282.951%2074.4443%20284.159%2074.9274L289.811%2077.0288C291.454%2077.6085%20293.193%2078.3814%20295.028%2079.3476C296.913%2080.3138%20298.507%2081.6665%20299.811%2083.4056C301.115%2085.0964%20301.768%2087.4394%20301.768%2090.4346C301.768%2094.6374%20300.198%2098.0674%20297.057%20100.724C293.966%20103.381%20289.908%20104.71%20284.884%20104.71Z'%20fill='white'/%3e%3cpath%20d='M219.861%20103.261V59.7825H231.166V64.5651C232.712%2062.5361%20234.62%2060.9902%20236.89%2059.9274C239.161%2058.8646%20241.6%2058.3332%20244.209%2058.3332C247.301%2058.3332%20250.175%2059.082%20252.832%2060.5796C255.538%2062.0288%20257.711%2064.1786%20259.354%2067.0288C261.045%2069.8307%20261.89%2073.2365%20261.89%2077.2462V103.261H249.282V78.9128C249.282%2076.4974%20248.557%2074.3476%20247.108%2072.4636C245.658%2070.5795%20243.581%2069.6375%20240.876%2069.6375C238.702%2069.6375%20236.745%2070.3863%20235.006%2071.8839C233.315%2073.3332%20232.47%2075.6278%20232.47%2078.7679V103.261H219.861Z'%20fill='white'/%3e%3cpath%20d='M188.99%20104.71C184.69%20104.71%20180.753%20103.671%20177.178%20101.594C173.603%2099.5167%20170.753%2096.7147%20168.628%2093.1882C166.55%2089.6616%20165.512%2085.7727%20165.512%2081.5215C165.512%2077.222%20166.55%2073.3331%20168.628%2069.8549C170.753%2066.3283%20173.603%2063.5264%20177.178%2061.4491C180.753%2059.3718%20184.69%2058.3332%20188.99%2058.3332C193.338%2058.3332%20197.275%2059.3718%20200.801%2061.4491C204.376%2063.5264%20207.202%2066.3283%20209.28%2069.8549C211.405%2073.3331%20212.468%2077.222%20212.468%2081.5215C212.468%2085.7727%20211.405%2089.6616%20209.28%2093.1882C207.202%2096.7147%20204.376%2099.5167%20200.801%20101.594C197.275%20103.671%20193.338%20104.71%20188.99%20104.71ZM188.99%2093.4056C191.164%2093.4056%20193.12%2092.8742%20194.859%2091.8114C196.647%2090.7486%20198.048%2089.3234%20199.062%2087.536C200.125%2085.7003%20200.657%2083.6954%20200.657%2081.5215C200.657%2079.2993%20200.125%2077.2945%20199.062%2075.5071C198.048%2073.7196%20196.647%2072.2945%20194.859%2071.2317C193.12%2070.1689%20191.164%2069.6375%20188.99%2069.6375C186.816%2069.6375%20184.835%2070.1689%20183.048%2071.2317C181.309%2072.2945%20179.908%2073.7196%20178.845%2075.5071C177.831%2077.2945%20177.323%2079.2993%20177.323%2081.5215C177.323%2083.6954%20177.831%2085.7003%20178.845%2087.536C179.908%2089.3234%20181.309%2090.7486%20183.048%2091.8114C184.835%2092.8742%20186.816%2093.4056%20188.99%2093.4056Z'%20fill='white'/%3e%3cpath%20d='M145.478%20104.71C141.179%20104.71%20137.242%20103.671%20133.667%20101.594C130.092%2099.5167%20127.242%2096.7147%20125.116%2093.1882C123.039%2089.6616%20122%2085.7727%20122%2081.5215C122%2077.222%20123.039%2073.3331%20125.116%2069.8549C127.242%2066.3283%20130.092%2063.5264%20133.667%2061.4491C137.242%2059.3718%20141.179%2058.3332%20145.478%2058.3332C148.473%2058.3332%20151.299%2058.8404%20153.956%2059.8549C156.662%2060.8211%20159.053%2062.2704%20161.13%2064.2027L157.869%2077.0288C156.662%2075.0481%20155.043%2073.3332%20153.014%2071.8839C151.034%2070.3863%20148.691%2069.6375%20145.985%2069.6375C143.715%2069.6375%20141.686%2070.1689%20139.899%2071.2317C138.111%2072.2945%20136.71%2073.7196%20135.696%2075.5071C134.681%2077.2945%20134.174%2079.2993%20134.174%2081.5215C134.174%2083.6954%20134.681%2085.7003%20135.696%2087.536C136.71%2089.3234%20138.111%2090.7486%20139.899%2091.8114C141.686%2092.8742%20143.715%2093.4056%20145.985%2093.4056C148.691%2093.4056%20151.034%2092.6809%20153.014%2091.2317C155.043%2089.7341%20156.662%2087.9949%20157.869%2086.0143L161.13%2098.8403C159.053%20100.773%20156.662%20102.246%20153.956%20103.261C151.299%20104.227%20148.473%20104.71%20145.478%20104.71Z'%20fill='white'/%3e%3c/svg%3e",qR="data:image/svg+xml,%3csvg%20width='1080'%20height='500'%20viewBox='0%200%201080%20500'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='1080'%20height='500'%20fill='%233a3a3a'/%3e%3cpath%20d='M218.892%20175.317L199.994%20164.828L128.27%20206.841C121.944%20274.841%20145.402%20321.492%20185.595%20348.507C149.223%20306.864%20143.205%20243.96%20146.06%20218.043L218.892%20175.317Z'%20fill='%23FF6503'/%3e%3cpath%20d='M242.258%20161.377L223.15%20151.493L204.258%20162.383L222.972%20172.752L242.258%20161.377Z'%20fill='white'/%3e%3cpath%20d='M167.041%20229.244C157.025%20291.973%20175.167%20334.89%20185.49%20348.507C185.49%20348.507%20182.285%20336.145%20180.877%20328.095C174.886%20293.848%20177.253%20269.57%20184.172%20239.128L259.946%20195.64C258.242%20221.581%20243.968%20277.367%20202.635%20313.905C222.206%20304.831%20247.971%20290%20256.995%20273.378C256.528%20274.394%20260.439%20267.379%20259.946%20268.375C277.82%20233.689%20280.252%20204.532%20280.373%20183.121L261.923%20172.578L167.041%20229.244Z'%20fill='%23FF6503'/%3e%3cpath%20d='M254.189%20279.881C238.876%20307.239%20180.994%20328.779%20180.994%20328.779C180.994%20328.779%20181.52%20332.487%20182.831%20337.844C184.143%20343.201%20185.46%20348.461%20185.46%20348.461C204.346%20338.763%20233.568%20318.571%20254.189%20279.881Z'%20fill='white'/%3e%3cpath%20d='M918.244%20301.838C912.221%20301.838%20906.099%20300.851%20899.878%20298.876C893.756%20296.901%20888.968%20294.235%20885.512%20290.878L891.88%20266.588C894.744%20270.538%20898.693%20273.994%20903.729%20276.956C908.864%20279.918%20914.146%20281.399%20919.577%20281.399C923.23%20281.399%20925.847%20280.708%20927.427%20279.326C929.105%20277.943%20929.945%20276.265%20929.945%20274.29C929.945%20272.019%20929.105%20270.39%20927.427%20269.402C925.748%20268.316%20924.02%20267.427%20922.243%20266.736L909.802%20261.997C907.037%20260.911%20903.877%20259.43%20900.323%20257.554C896.768%20255.677%20893.658%20253.011%20890.992%20249.556C888.425%20246.1%20887.141%20241.558%20887.141%20235.93C887.141%20230.795%20888.425%20226.056%20890.992%20221.711C893.559%20217.366%20897.262%20213.861%20902.1%20211.195C907.037%20208.431%20912.961%20207.048%20919.873%20207.048C926.291%20207.048%20932.265%20208.134%20937.794%20210.307C943.423%20212.479%20947.52%20214.898%20950.087%20217.564L944.163%20240.965C940.806%20236.621%20936.807%20233.313%20932.166%20231.042C927.624%20228.672%20923.28%20227.487%20919.133%20227.487C915.973%20227.487%20913.652%20228.129%20912.171%20229.413C910.69%20230.696%20909.95%20232.177%20909.95%20233.856C909.95%20235.14%20910.443%20236.423%20911.431%20237.707C912.517%20238.892%20914.294%20239.978%20916.763%20240.965L928.315%20245.26C931.673%20246.445%20935.227%20248.025%20938.979%20250C942.83%20251.975%20946.088%20254.739%20948.754%20258.294C951.42%20261.75%20952.753%20266.539%20952.753%20272.661C952.753%20281.251%20949.544%20288.262%20943.126%20293.692C936.807%20299.123%20928.513%20301.838%20918.244%20301.838Z'%20fill='white'/%3e%3cpath%20d='M849.021%20298.876L813.623%20250L842.801%20210.01H870.497L841.764%20247.778L879.384%20298.876H849.021ZM789.926%20298.876V156.691H815.697V298.876H789.926Z'%20fill='white'/%3e%3cpath%20d='M721.82%20298.876V210.01H744.925V225.266C747.986%20220.131%20751.837%20216.182%20756.478%20213.417C761.217%20210.554%20766.747%20209.122%20773.066%20209.122L778.694%20231.931C776.818%20231.338%20774.695%20231.042%20772.326%20231.042C764.92%20231.042%20758.946%20233.461%20754.404%20238.299C749.862%20243.039%20747.591%20249.852%20747.591%20258.738V298.876H721.82Z'%20fill='white'/%3e%3cpath%20d='M658.726%20301.838C649.938%20301.838%20641.891%20299.715%20634.584%20295.469C627.277%20291.224%20621.452%20285.497%20617.107%20278.289C612.861%20271.081%20610.738%20263.132%20610.738%20254.443C610.738%20245.655%20612.861%20237.707%20617.107%20230.598C621.452%20223.39%20627.277%20217.663%20634.584%20213.417C641.891%20209.171%20649.938%20207.048%20658.726%20207.048C667.612%20207.048%20675.66%20209.171%20682.868%20213.417C690.174%20217.663%20695.951%20223.39%20700.196%20230.598C704.541%20237.707%20706.713%20245.655%20706.713%20254.443C706.713%20263.132%20704.541%20271.081%20700.196%20278.289C695.951%20285.497%20690.174%20291.224%20682.868%20295.469C675.66%20299.715%20667.612%20301.838%20658.726%20301.838ZM658.726%20278.733C663.169%20278.733%20667.168%20277.647%20670.723%20275.475C674.376%20273.302%20677.239%20270.39%20679.313%20266.736C681.485%20262.984%20682.571%20258.886%20682.571%20254.443C682.571%20249.901%20681.485%20245.804%20679.313%20242.15C677.239%20238.497%20674.376%20235.584%20670.723%20233.412C667.168%20231.239%20663.169%20230.153%20658.726%20230.153C654.282%20230.153%20650.234%20231.239%20646.581%20233.412C643.026%20235.584%20640.163%20238.497%20637.99%20242.15C635.917%20245.804%20634.88%20249.901%20634.88%20254.443C634.88%20258.886%20635.917%20262.984%20637.99%20266.736C640.163%20270.39%20643.026%20273.302%20646.581%20275.475C650.234%20277.647%20654.282%20278.733%20658.726%20278.733Z'%20fill='white'/%3e%3cpath%20d='M506.867%20303.319L462.582%20210.01H490.278L503.905%20238.596C505.188%20241.064%20506.472%20243.779%20507.755%20246.742C509.039%20249.605%20510.323%20252.863%20511.606%20256.517C512.989%20253.061%20514.322%20250.049%20515.605%20247.482C516.988%20244.816%20518.321%20242.249%20519.604%20239.78L536.34%20207.048L553.669%20239.78C554.854%20241.953%20556.088%20244.372%20557.372%20247.038C558.754%20249.704%20560.087%20252.863%20561.371%20256.517C562.655%20252.567%20563.889%20249.21%20565.074%20246.445C566.357%20243.681%20567.592%20241.064%20568.776%20238.596L582.403%20210.01H608.914L564.629%20303.319L544.338%20269.106C542.759%20266.539%20541.277%20263.922%20539.895%20261.256C538.513%20258.59%20537.13%20255.776%20535.748%20252.814C534.464%20255.776%20533.082%20258.59%20531.601%20261.256C530.219%20263.922%20528.738%20266.539%20527.158%20269.106L506.867%20303.319Z'%20fill='white'/%3e%3cpath%20d='M426.191%20343.309V293.248C422.933%20295.717%20419.28%20297.642%20415.231%20299.024C411.183%20300.505%20406.789%20301.246%20402.05%20301.246C393.756%20301.246%20386.251%20299.123%20379.537%20294.877C372.823%20290.631%20367.441%20285.003%20363.393%20277.993C359.444%20270.884%20357.469%20263.034%20357.469%20254.443C357.469%20245.853%20359.444%20238.003%20363.393%20230.894C367.441%20223.785%20372.823%20218.157%20379.537%20214.01C386.251%20209.764%20393.756%20207.641%20402.05%20207.641C407.678%20207.641%20412.862%20208.628%20417.601%20210.603C422.341%20212.578%20426.389%20215.293%20429.746%20218.749V210.011H451.963V343.309H426.191ZM405.012%20278.585C409.356%20278.585%20413.306%20277.499%20416.861%20275.327C420.415%20273.155%20423.229%20270.242%20425.303%20266.588C427.475%20262.935%20428.561%20258.887%20428.561%20254.443C428.561%20250%20427.475%20245.952%20425.303%20242.298C423.229%20238.645%20420.415%20235.732%20416.861%20233.56C413.306%20231.388%20409.356%20230.302%20405.012%20230.302C400.667%20230.302%20396.718%20231.388%20393.163%20233.56C389.608%20235.732%20386.745%20238.645%20384.573%20242.298C382.499%20245.952%20381.462%20250%20381.462%20254.443C381.462%20258.887%20382.499%20262.935%20384.573%20266.588C386.745%20270.242%20389.608%20273.155%20393.163%20275.327C396.718%20277.499%20400.667%20278.585%20405.012%20278.585Z'%20fill='%23FF6503'/%3e%3cpath%20d='M316.389%20298.876V210.01H342.16V298.876H316.389ZM329.274%20197.125C325.423%20197.125%20322.165%20195.792%20319.499%20193.126C316.833%20190.46%20315.5%20187.202%20315.5%20183.351C315.5%20179.401%20316.833%20176.143%20319.499%20173.575C322.165%20170.91%20325.423%20169.577%20329.274%20169.577C333.224%20169.577%20336.482%20170.91%20339.049%20173.575C341.715%20176.143%20343.048%20179.401%20343.048%20183.351C343.048%20187.202%20341.715%20190.46%20339.049%20193.126C336.482%20195.792%20333.224%20197.125%20329.274%20197.125Z'%20fill='%23FF6503'/%3e%3c/svg%3e",KR="data:image/svg+xml,%3csvg%20width='392'%20height='85'%20viewBox='0%200%20392%2085'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M48.6448%2012.0775L40.9465%207.80469L11.7295%2024.9191C9.15284%2052.6189%2018.7082%2071.6223%2035.081%2082.6271C20.2649%2065.6636%2017.8134%2040.0395%2018.9765%2029.482L48.6448%2012.0775Z'%20fill='%23FF6503'/%3e%3cpath%20d='M58.163%206.39894L50.3792%202.3728L42.6836%206.80882L50.3068%2011.0328L58.163%206.39894Z'%20fill='%23ffffff'/%3e%3cpath%20d='M27.5232%2034.0452C23.4435%2059.5977%2030.8336%2077.08%2035.0386%2082.6272C35.0386%2082.6272%2033.7332%2077.5916%2033.1595%2074.3123C30.7189%2060.3615%2031.6833%2050.4718%2034.5016%2038.0713L65.3684%2020.3563C64.6742%2030.9236%2058.8596%2053.6481%2042.0229%2068.532C49.9949%2064.8357%2060.4902%2058.794%2064.1665%2052.0229C63.9761%2052.437%2065.5692%2049.5794%2065.3684%2049.9853C72.6494%2035.8555%2073.6399%2023.9785%2073.6892%2015.2564L66.1738%2010.9619L27.5232%2034.0452Z'%20fill='%23FF6503'/%3e%3cpath%20d='M63.0229%2054.6719C56.7853%2065.8166%2033.207%2074.5909%2033.207%2074.5909C33.207%2074.5909%2033.4213%2076.1014%2033.9555%2078.2836C34.4897%2080.4658%2035.0263%2082.6084%2035.0263%2082.6084C42.7193%2078.6579%2054.6229%2070.4325%2063.0229%2054.6719Z'%20fill='%23ffffff'/%3e%3cpath%20d='M375.536%2066.1111C372.792%2066.1111%20370.004%2065.6614%20367.171%2064.7619C364.382%2063.8624%20362.201%2062.6482%20360.627%2061.1191L363.528%2050.0556C364.832%2051.8545%20366.631%2053.4286%20368.925%2054.7778C371.263%2056.127%20373.669%2056.8016%20376.143%2056.8016C377.807%2056.8016%20378.999%2056.4868%20379.718%2055.8571C380.483%2055.2275%20380.865%2054.463%20380.865%2053.5635C380.865%2052.5291%20380.483%2051.787%20379.718%2051.3373C378.954%2050.8426%20378.167%2050.4378%20377.357%2050.123L371.69%2047.9643C370.431%2047.4696%20368.992%2046.795%20367.373%2045.9405C365.754%2045.086%20364.337%2043.8717%20363.123%2042.2976C361.954%2040.7236%20361.369%2038.6548%20361.369%2036.0913C361.369%2033.7527%20361.954%2031.5939%20363.123%2029.6151C364.292%2027.6363%20365.979%2026.0397%20368.183%2024.8254C370.431%2023.5662%20373.13%2022.9365%20376.278%2022.9365C379.201%2022.9365%20381.922%2023.4312%20384.44%2024.4206C387.004%2025.4101%20388.87%2026.5119%20390.04%2027.7262L387.341%2038.3849C385.812%2036.4061%20383.991%2034.8995%20381.877%2033.8651C379.808%2032.7857%20377.829%2032.246%20375.94%2032.246C374.501%2032.246%20373.444%2032.5384%20372.77%2033.123C372.095%2033.7077%20371.758%2034.3823%20371.758%2035.1468C371.758%2035.7315%20371.983%2036.3161%20372.432%2036.9008C372.927%2037.4405%20373.737%2037.9352%20374.861%2038.3849L380.123%2040.3413C381.652%2040.881%20383.271%2041.6005%20384.98%2042.5C386.734%2043.3995%20388.218%2044.6587%20389.432%2046.2778C390.647%2047.8519%20391.254%2050.0331%20391.254%2052.8214C391.254%2056.7341%20389.792%2059.9272%20386.869%2062.4008C383.991%2064.8743%20380.213%2066.1111%20375.536%2066.1111Z'%20fill='%23ffffff'/%3e%3cpath%20d='M344.006%2064.7619L327.883%2042.5L341.173%2024.2857H353.788L340.701%2041.4881L357.836%2064.7619H344.006ZM317.09%2064.7619V0H328.828V64.7619H317.09Z'%20fill='%23ffffff'/%3e%3cpath%20d='M286.068%2064.7618V24.2856H296.592V31.234C297.986%2028.8954%20299.74%2027.0965%20301.854%2025.8372C304.013%2024.533%20306.531%2023.8809%20309.41%2023.8809L311.973%2034.2697C311.119%2033.9999%20310.152%2033.865%20309.072%2033.865C305.699%2033.865%20302.978%2034.9668%20300.91%2037.1705C298.841%2039.3293%20297.806%2042.4324%20297.806%2046.4801V64.7618H286.068Z'%20fill='%23ffffff'/%3e%3cpath%20d='M257.33%2066.1111C253.327%2066.1111%20249.662%2065.1442%20246.334%2063.2103C243.006%2061.2765%20240.352%2058.668%20238.373%2055.3849C236.44%2052.1019%20235.473%2048.4815%20235.473%2044.5238C235.473%2040.5212%20236.44%2036.9008%20238.373%2033.6627C240.352%2030.3796%20243.006%2027.7712%20246.334%2025.8373C249.662%2023.9035%20253.327%2022.9365%20257.33%2022.9365C261.377%2022.9365%20265.043%2023.9035%20268.326%2025.8373C271.654%2027.7712%20274.285%2030.3796%20276.219%2033.6627C278.198%2036.9008%20279.187%2040.5212%20279.187%2044.5238C279.187%2048.4815%20278.198%2052.1019%20276.219%2055.3849C274.285%2058.668%20271.654%2061.2765%20268.326%2063.2103C265.043%2065.1442%20261.377%2066.1111%20257.33%2066.1111ZM257.33%2055.5873C259.354%2055.5873%20261.175%2055.0926%20262.794%2054.1032C264.458%2053.1138%20265.762%2051.787%20266.707%2050.123C267.696%2048.414%20268.191%2046.5476%20268.191%2044.5238C268.191%2042.455%20267.696%2040.5886%20266.707%2038.9246C265.762%2037.2606%20264.458%2035.9339%20262.794%2034.9445C261.175%2033.955%20259.354%2033.4603%20257.33%2033.4603C255.306%2033.4603%20253.462%2033.955%20251.798%2034.9445C250.179%2035.9339%20248.875%2037.2606%20247.885%2038.9246C246.941%2040.5886%20246.469%2042.455%20246.469%2044.5238C246.469%2046.5476%20246.941%2048.414%20247.885%2050.123C248.875%2051.787%20250.179%2053.1138%20251.798%2054.1032C253.462%2055.0926%20255.306%2055.5873%20257.33%2055.5873Z'%20fill='%23ffffff'/%3e%3cpath%20d='M188.163%2066.7857L167.992%2024.2857H180.607L186.814%2037.3056C187.398%2038.4299%20187.983%2039.6667%20188.568%2041.0159C189.152%2042.3201%20189.737%2043.8042%20190.322%2045.4683C190.951%2043.8942%20191.558%2042.5225%20192.143%2041.3532C192.773%2040.1389%20193.38%2038.9696%20193.964%2037.8453L201.587%2022.9365L209.48%2037.8453C210.02%2038.8347%20210.582%2039.9365%20211.167%2041.1508C211.796%2042.3651%20212.404%2043.8042%20212.988%2045.4683C213.573%2043.6693%20214.135%2042.1402%20214.675%2040.881C215.259%2039.6217%20215.822%2038.4299%20216.361%2037.3056L222.568%2024.2857H234.643L214.472%2066.7857L205.23%2051.2024C204.511%2050.0331%20203.836%2048.8413%20203.206%2047.627C202.577%2046.4127%20201.947%2045.131%20201.318%2043.7818C200.733%2045.131%20200.103%2046.4127%20199.429%2047.627C198.799%2048.8413%20198.124%2050.0331%20197.405%2051.2024L188.163%2066.7857Z'%20fill='%23ffffff'/%3e%3cpath%20d='M151.419%2084.9999V62.1984C149.935%2063.3227%20148.271%2064.1997%20146.427%2064.8293C144.583%2065.5039%20142.581%2065.8412%20140.423%2065.8412C136.645%2065.8412%20133.227%2064.8743%20130.169%2062.9404C127.111%2061.0066%20124.66%2058.4431%20122.816%2055.2499C121.017%2052.0118%20120.117%2048.4365%20120.117%2044.5238C120.117%2040.6111%20121.017%2037.0357%20122.816%2033.7976C124.66%2030.5595%20127.111%2027.996%20130.169%2026.1071C133.227%2024.1732%20136.645%2023.2063%20140.423%2023.2063C142.986%2023.2063%20145.347%2023.656%20147.506%2024.5555C149.665%2025.455%20151.509%2026.6917%20153.038%2028.2658V24.2857H163.157V84.9999H151.419ZM141.772%2055.5198C143.751%2055.5198%20145.55%2055.0251%20147.169%2054.0357C148.788%2053.0462%20150.07%2051.7195%20151.014%2050.0555C152.003%2048.3915%20152.498%2046.5476%20152.498%2044.5238C152.498%2042.4999%20152.003%2040.656%20151.014%2038.992C150.07%2037.328%20148.788%2036.0013%20147.169%2035.0119C145.55%2034.0224%20143.751%2033.5277%20141.772%2033.5277C139.793%2033.5277%20137.994%2034.0224%20136.375%2035.0119C134.756%2036.0013%20133.452%2037.328%20132.462%2038.992C131.518%2040.656%20131.046%2042.4999%20131.046%2044.5238C131.046%2046.5476%20131.518%2048.3915%20132.462%2050.0555C133.452%2051.7195%20134.756%2053.0462%20136.375%2054.0357C137.994%2055.0251%20139.793%2055.5198%20141.772%2055.5198Z'%20fill='%23FF6503'/%3e%3cpath%20d='M101.405%2064.762V24.2858H113.143V64.762H101.405ZM107.274%2018.4168C105.52%2018.4168%20104.036%2017.8096%20102.821%2016.5953C101.607%2015.381%20101%2013.8969%20101%2012.1429C101%2010.344%20101.607%208.85988%20102.821%207.69057C104.036%206.47628%20105.52%205.86914%20107.274%205.86914C109.073%205.86914%20110.557%206.47628%20111.726%207.69057C112.94%208.85988%20113.548%2010.344%20113.548%2012.1429C113.548%2013.8969%20112.94%2015.381%20111.726%2016.5953C110.557%2017.8096%20109.073%2018.4168%20107.274%2018.4168Z'%20fill='%23FF6503'/%3e%3c/svg%3e",P6={"discover-iq":{dark:BR,light:$R},"classify-iq":{dark:HR,light:GR},"retain-iq":{dark:zR,light:WR},"protect-iq":{dark:ZR,light:XR},"search-iq":{dark:YR,light:JR},"consent-iq":{dark:UR,light:QR},iqworks:{dark:qR,light:KR}},L6={"discover-iq":"DiscoverIQ","classify-iq":"ClassifyIQ","retain-iq":"RetainIQ","protect-iq":"ProtectIQ","search-iq":"SearchIQ","consent-iq":"ConsentIQ",iqworks:"IQWorks"};function ek({product:e,className:t="",width:n=120,height:i=30}){const{theme:r}=qo(),o=P6[e],s=L6[e];if(!o)return console.warn(`ProductLogo: Unknown product "${e}"`),null;const a=r==="dark"?o.light:o.dark;return b.jsx("img",{src:a,alt:s,width:n,height:i,className:t,style:{display:"block"}})}function tk(e){return P6[e]||null}function nk(e){return L6[e]||e}const ik=({children:e,customProviders:t=[],onToastShow:n,themeConfig:i,defaultTheme:r})=>[...[({children:a})=>b.jsx(A5,{defaultTheme:r,config:i,children:a}),oh,({children:a})=>b.jsx(eh,{onToastShow:n,children:a})],...t].reduceRight((a,l)=>b.jsx(l,{children:a}),b.jsx(b.Fragment,{children:e})),rk=({callback:e,onScroll:t=!0,onResize:n=!0,onEscape:i=!0})=>{const r=v.useRef(null);return v.useEffect(()=>{const o=l=>{var c;r.current&&((c=l.target)!=null&&c.closest("[data-dropdown-ref]")||r.current.contains(l.target)||e())},s=()=>{e()},a=l=>{l.key==="Escape"&&i&&e()};return document.addEventListener("mousedown",o),t&&window.addEventListener("scroll",s),n&&window.addEventListener("resize",s),i&&document.addEventListener("keydown",a),()=>{document.removeEventListener("mousedown",o),t&&window.removeEventListener("scroll",s),n&&window.removeEventListener("resize",s),i&&document.removeEventListener("keydown",a)}},[e,t,n,i]),r};let Gl=null,F6=null,O6=null,B1=!1;function ok(){if(!B1){B1=!0;try{const e=require("react-redux"),t=require("@reduxjs/toolkit");Gl=e.useDispatch,F6=e.useSelector,O6=t.createSelector}catch{}}}const sk=e=>{const{metric:t,fetchFunction:n,cacheKey:i,...r}=e,[o,s]=v.useState({}),[a,l]=v.useState(!1),[c,u]=v.useState(null),d=v.useMemo(()=>i||`${t}_${JSON.stringify(r)}`,[i,t,JSON.stringify(r)]);return ok(),Gl&&F6&&O6&&!Gl()?$1({metric:t,fetchFunction:n,cacheKey:d,...r}):$1({metric:t,fetchFunction:n,cacheKey:d,...r})};function $1(e){const{fetchFunction:t,cacheKey:n}=e,[i,r]=v.useState({}),[o,s]=v.useState(!1),[a,l]=v.useState(null),c=i[n||""]||{data:null,loading:!1,error:null};v.useEffect(()=>{!c.data&&!c.loading&&t&&(s(!0),t(e).then(d=>{r(f=>({...f,[n||""]:{data:d,loading:!1,error:null}})),s(!1)}).catch(d=>{l(d),s(!1)}))},[n,t]);const u=()=>{r(d=>{const f={...d};return delete f[n||""],f})};return{data:c.data,loading:c.loading||o,error:c.error||a,clearCache:u}}const r2=(e,t)=>{if(e===t)return!0;if(e==null||t==null)return e===t;if(typeof e!=typeof t)return!1;if(typeof e!="object")return e===t;if(Array.isArray(e)!==Array.isArray(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!r2(e[r],t[r]))return!1;return!0}const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!r2(e[r],t[r]))return!1;return!0},ak=(e,t)=>{const n=["country_iso2","department_name"];for(const i of n)if(!r2(e[i],t[i]))return!1;return!0};exports.Alert=U6;exports.ApiMetric=X1;exports.CHECKBOX_STYLE=ol;exports.CSVImporter=ty;exports.CSVType=Y1;exports.ChartHeader=iy;exports.ComponentErrorBoundary=jx;exports.ConfidenceScoreTooltip=hh;exports.ConfirmationModal=Lx;exports.ContextProvider=ik;exports.CountryBox=Zx;exports.CustomLegends=Sc;exports.DbSchemaBrowser=jR;exports.DonutChart=N_;exports.Dropdown=D7;exports.ErrorBoundary=Vx;exports.FILE_BROWSER_PAGE_SIZE=$l;exports.FileBrowser=NR;exports.FileTypeIcon=Wx;exports.GaugeChart=H_;exports.GeoChart=PR;exports.HorizontalBarChart=j_;exports.ImagePreviewModal=Jx;exports.InstallUpdateLoader=Yx;exports.Loader=Q6;exports.LoaderProvider=oh;exports.METADATA_KEYS=L2;exports.Modal=ar;exports.MultiSelect=Po;exports.NOT_APPLICABLE=A6;exports.NoActiveAttributeWarning=fh;exports.NoDataChart=ny;exports.NotificationType=J1;exports.PAGE_INDEX=na;exports.PAGE_SIZE=ta;exports.PAGINATION_INPUT_BUFFER_CH=rl;exports.PieChart=D_;exports.ProductLogo=ek;exports.ResourceUsageBadge=Bx;exports.RiskScoreLabel=zx;exports.STATUS_BADGE_CLASSES=on;exports.STATUS_CONFIGURATIONS=k0;exports.ScaleType=Ii;exports.ShowMultiData=$x;exports.StatusBadge=wg;exports.StatusIcon=ma;exports.StorageChart=B_;exports.Table=sl;exports.TableType=yo;exports.TaskResult=Xx;exports.ThemeProvider=A5;exports.Timer=Tx;exports.Toast=Cg;exports.ToastProvider=eh;exports.ToastType=pt;exports.ToggleSwitch=Sg;exports.ToolTip=gr;exports.VerticalBarChart=V_;exports.cn=zt;exports.color=E2;exports.commonjsGlobal=l2;exports.conditionalClass=ag;exports.convertScanObjectToDbSchema=E6;exports.convertScanObjectToFiledata=Bl;exports.deepEqual=r2;exports.extractAttributeMapping=Hl;exports.extractConfidenceMetadata=R6;exports.formatBytes=Gc;exports.formatDateTime=M6;exports.getConfidenceColor=k6;exports.getDefaultExportFromCjs=c2;exports.getProductLogoUrls=tk;exports.getProductName=nk;exports.getRiskLevel=wc;exports.getRiskScoreInfo=ch;exports.getStatusConfig=Wl;exports.globalFiltersEqual=ak;exports.interpolateRgb=uE;exports.isChildPath=jl;exports.isFailedStatus=xg;exports.isHighRisk=Gx;exports.isReduxAvailable=ih;exports.isRunningStatus=vg;exports.isSuccessStatus=yg;exports.switchClass=lg;exports.ucwords=I6;exports.useApiCache=sk;exports.useAppDispatch=th;exports.useAppSelector=nh;exports.useAssetPath=uh;exports.useBodyScrollLock=zl;exports.useClickOutside=rk;exports.useDebounce=_6;exports.useFileIconPath=dh;exports.useFilterCache=sh;exports.useLoader=x2;exports.useTheme=qo;exports.useToast=xc;