@reshape-biotech/design-system 0.0.47 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.css +115 -0
- package/dist/components/activity/Activity.stories.svelte +106 -0
- package/dist/components/activity/Activity.stories.svelte.d.ts +19 -0
- package/dist/components/activity/Activity.svelte +79 -0
- package/dist/components/activity/Activity.svelte.d.ts +17 -0
- package/dist/components/activity/index.d.ts +1 -0
- package/dist/components/activity/index.js +1 -0
- package/dist/components/avatar/Avatar.stories.svelte +51 -0
- package/dist/components/avatar/Avatar.stories.svelte.d.ts +19 -0
- package/dist/components/avatar/Avatar.svelte +63 -0
- package/dist/components/avatar/Avatar.svelte.d.ts +8 -0
- package/dist/components/avatar/index.d.ts +1 -0
- package/dist/components/avatar/index.js +1 -0
- package/dist/components/banner/Banner.stories.svelte +129 -0
- package/dist/components/banner/Banner.stories.svelte.d.ts +19 -0
- package/dist/components/banner/Banner.svelte +59 -0
- package/dist/components/banner/Banner.svelte.d.ts +11 -0
- package/dist/components/banner/index.d.ts +1 -0
- package/dist/components/banner/index.js +1 -0
- package/dist/components/button/Button.stories.svelte +43 -0
- package/dist/components/button/Button.stories.svelte.d.ts +19 -0
- package/dist/components/button/Button.svelte +263 -0
- package/dist/components/button/Button.svelte.d.ts +20 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/button/index.js +1 -0
- package/dist/components/collapsible/Collapsible.stories.svelte +40 -0
- package/dist/components/collapsible/Collapsible.stories.svelte.d.ts +19 -0
- package/dist/components/collapsible/components/collapsible-content.svelte +26 -0
- package/dist/components/collapsible/components/collapsible-content.svelte.d.ts +10 -0
- package/dist/components/collapsible/components/collapsible-trigger.svelte +36 -0
- package/dist/components/collapsible/components/collapsible-trigger.svelte.d.ts +4 -0
- package/dist/components/collapsible/index.d.ts +5 -0
- package/dist/components/collapsible/index.js +4 -0
- package/dist/components/collapsible/types.d.ts +9 -0
- package/dist/components/collapsible/types.js +1 -0
- package/dist/components/combobox/Combobox.stories.svelte +440 -0
- package/dist/components/combobox/Combobox.stories.svelte.d.ts +19 -0
- package/dist/components/combobox/components/combobox-add.svelte +30 -0
- package/dist/components/combobox/components/combobox-add.svelte.d.ts +8 -0
- package/dist/components/combobox/components/combobox-content.svelte +137 -0
- package/dist/components/combobox/components/combobox-content.svelte.d.ts +4 -0
- package/dist/components/combobox/components/combobox-indicator.svelte +5 -0
- package/dist/components/combobox/components/combobox-indicator.svelte.d.ts +18 -0
- package/dist/components/combobox/index.d.ts +14 -0
- package/dist/components/combobox/index.js +15 -0
- package/dist/components/combobox/types.d.ts +20 -0
- package/dist/components/combobox/types.js +1 -0
- package/dist/components/datepicker/DatePicker.svelte +345 -0
- package/dist/components/datepicker/DatePicker.svelte.d.ts +8 -0
- package/dist/components/datepicker/index.d.ts +1 -0
- package/dist/components/datepicker/index.js +1 -0
- package/dist/components/divider/Divider.stories.svelte +14 -0
- package/dist/components/divider/Divider.stories.svelte.d.ts +27 -0
- package/dist/components/divider/Divider.svelte +9 -0
- package/dist/components/divider/Divider.svelte.d.ts +6 -0
- package/dist/components/divider/index.d.ts +1 -0
- package/dist/components/divider/index.js +1 -0
- package/dist/components/drawer/Drawer.stories.svelte +64 -0
- package/dist/components/drawer/Drawer.stories.svelte.d.ts +27 -0
- package/dist/components/drawer/Drawer.svelte +41 -0
- package/dist/components/drawer/Drawer.svelte.d.ts +12 -0
- package/dist/components/drawer/DrawerLabel.svelte +62 -0
- package/dist/components/drawer/DrawerLabel.svelte.d.ts +9 -0
- package/dist/components/drawer/index.d.ts +1 -0
- package/dist/components/drawer/index.js +1 -0
- package/dist/components/dropdown/Dropdown.stories.svelte +236 -0
- package/dist/components/dropdown/Dropdown.stories.svelte.d.ts +27 -0
- package/dist/components/dropdown/Dropdown.svelte +69 -0
- package/dist/components/dropdown/Dropdown.svelte.d.ts +26 -0
- package/dist/components/dropdown/components/DropdownContent.svelte +29 -0
- package/dist/components/dropdown/components/DropdownContent.svelte.d.ts +10 -0
- package/dist/components/dropdown/components/DropdownMenu.svelte +23 -0
- package/dist/components/dropdown/components/DropdownMenu.svelte.d.ts +8 -0
- package/dist/components/dropdown/components/DropdownTrigger.svelte +46 -0
- package/dist/components/dropdown/components/DropdownTrigger.svelte.d.ts +13 -0
- package/dist/components/dropdown/components/OutlinedButton.svelte +61 -0
- package/dist/components/dropdown/components/OutlinedButton.svelte.d.ts +8 -0
- package/dist/components/dropdown/index.d.ts +1 -0
- package/dist/components/dropdown/index.js +1 -0
- package/dist/components/empty-content/EmptyContent.svelte +19 -0
- package/dist/components/empty-content/EmptyContent.svelte.d.ts +8 -0
- package/dist/components/graphs/chart/Chart.stories.svelte +128 -0
- package/dist/components/graphs/chart/Chart.stories.svelte.d.ts +19 -0
- package/dist/components/graphs/chart/Chart.svelte +145 -0
- package/dist/components/graphs/chart/Chart.svelte.d.ts +17 -0
- package/dist/components/graphs/index.d.ts +4 -0
- package/dist/components/graphs/index.js +4 -0
- package/dist/components/graphs/line/LineChart.stories.svelte +73 -0
- package/dist/components/graphs/line/LineChart.stories.svelte.d.ts +19 -0
- package/dist/components/graphs/line/LineChart.svelte +102 -0
- package/dist/components/graphs/line/LineChart.svelte.d.ts +18 -0
- package/dist/components/graphs/multiline/MultiLineChart.stories.svelte +77 -0
- package/dist/components/graphs/multiline/MultiLineChart.stories.svelte.d.ts +19 -0
- package/dist/components/graphs/multiline/MultiLineChart.svelte +108 -0
- package/dist/components/graphs/multiline/MultiLineChart.svelte.d.ts +22 -0
- package/dist/components/graphs/scatterplot/Scatterplot.stories.svelte +78 -0
- package/dist/components/graphs/scatterplot/Scatterplot.stories.svelte.d.ts +19 -0
- package/dist/components/graphs/scatterplot/Scatterplot.svelte +67 -0
- package/dist/components/graphs/scatterplot/Scatterplot.svelte.d.ts +16 -0
- package/dist/components/icon-button/IconButton.stories.svelte +82 -0
- package/dist/components/icon-button/IconButton.stories.svelte.d.ts +19 -0
- package/dist/components/icon-button/IconButton.svelte +152 -0
- package/dist/components/icon-button/IconButton.svelte.d.ts +16 -0
- package/dist/components/icon-button/index.d.ts +1 -0
- package/dist/components/icon-button/index.js +1 -0
- package/dist/components/icons/AnalysisIcon.stories.svelte +38 -0
- package/dist/components/icons/AnalysisIcon.stories.svelte.d.ts +27 -0
- package/dist/components/icons/AnalysisIcon.svelte +113 -0
- package/dist/components/icons/AnalysisIcon.svelte.d.ts +10 -0
- package/dist/components/icons/Icon.stories.svelte +127 -0
- package/dist/components/icons/Icon.stories.svelte.d.ts +19 -0
- package/dist/components/icons/Icon.svelte +24 -0
- package/dist/components/icons/Icon.svelte.d.ts +4 -0
- package/dist/components/icons/custom/Halo.svelte +32 -0
- package/dist/components/icons/custom/Halo.svelte.d.ts +26 -0
- package/dist/components/icons/custom/Well.svelte +26 -0
- package/dist/components/icons/custom/Well.svelte.d.ts +26 -0
- package/dist/components/icons/index.d.ts +19 -0
- package/dist/components/icons/index.js +187 -0
- package/dist/components/icons/types.d.ts +0 -0
- package/dist/components/icons/types.js +1 -0
- package/dist/components/image/Image.svelte +55 -0
- package/dist/components/image/Image.svelte.d.ts +7 -0
- package/dist/components/image/index.d.ts +1 -0
- package/dist/components/image/index.js +1 -0
- package/dist/components/input/Input.stories.svelte +93 -0
- package/dist/components/input/Input.stories.svelte.d.ts +27 -0
- package/dist/components/input/Input.svelte +204 -0
- package/dist/components/input/Input.svelte.d.ts +24 -0
- package/dist/components/input/index.d.ts +1 -0
- package/dist/components/input/index.js +1 -0
- package/dist/components/list/List.stories.svelte +97 -0
- package/dist/components/list/List.stories.svelte.d.ts +19 -0
- package/dist/components/list/List.svelte +69 -0
- package/dist/components/list/List.svelte.d.ts +24 -0
- package/dist/components/list/index.d.ts +1 -0
- package/dist/components/list/index.js +1 -0
- package/dist/components/logo/Logo.stories.svelte +21 -0
- package/dist/components/logo/Logo.stories.svelte.d.ts +27 -0
- package/dist/components/logo/Logo.svelte +39 -0
- package/dist/components/logo/Logo.svelte.d.ts +7 -0
- package/dist/components/logo/index.d.ts +1 -0
- package/dist/components/logo/index.js +1 -0
- package/dist/components/markdown/Markdown.stories.svelte +41 -0
- package/dist/components/markdown/Markdown.stories.svelte.d.ts +27 -0
- package/dist/components/markdown/Markdown.svelte +12 -0
- package/dist/components/markdown/Markdown.svelte.d.ts +6 -0
- package/dist/components/markdown/index.d.ts +1 -0
- package/dist/components/markdown/index.js +1 -0
- package/dist/components/modal/Modal.stories.svelte +39 -0
- package/dist/components/modal/Modal.stories.svelte.d.ts +19 -0
- package/dist/components/modal/Modal.svelte +76 -0
- package/dist/components/modal/Modal.svelte.d.ts +17 -0
- package/dist/components/modal/index.d.ts +1 -0
- package/dist/components/modal/index.js +1 -0
- package/dist/components/notification-popup/NotificationPopup.stories.svelte +26 -0
- package/dist/components/notification-popup/NotificationPopup.stories.svelte.d.ts +27 -0
- package/dist/components/notification-popup/NotificationPopup.svelte +33 -0
- package/dist/components/notification-popup/NotificationPopup.svelte.d.ts +11 -0
- package/dist/components/notification-popup/index.d.ts +1 -0
- package/dist/components/notification-popup/index.js +1 -0
- package/dist/components/pill/Pill.svelte +39 -0
- package/dist/components/pill/Pill.svelte.d.ts +10 -0
- package/dist/components/pill/index.d.ts +1 -0
- package/dist/components/pill/index.js +1 -0
- package/dist/components/progress-circle/ProgressCircle.svelte +79 -0
- package/dist/components/progress-circle/ProgressCircle.svelte.d.ts +7 -0
- package/dist/components/progress-circle/index.d.ts +1 -0
- package/dist/components/progress-circle/index.js +1 -0
- package/dist/components/segmented-control-buttons/ControlButton.svelte +57 -0
- package/dist/components/segmented-control-buttons/ControlButton.svelte.d.ts +14 -0
- package/dist/components/segmented-control-buttons/SegmentedControlButtons.stories.svelte +45 -0
- package/dist/components/segmented-control-buttons/SegmentedControlButtons.stories.svelte.d.ts +19 -0
- package/dist/components/segmented-control-buttons/SegmentedControlButtons.svelte +21 -0
- package/dist/components/segmented-control-buttons/SegmentedControlButtons.svelte.d.ts +12 -0
- package/dist/components/segmented-control-buttons/index.d.ts +1 -0
- package/dist/components/segmented-control-buttons/index.js +1 -0
- package/dist/components/select/Select.stories.svelte +113 -0
- package/dist/components/select/Select.stories.svelte.d.ts +19 -0
- package/dist/components/select/Select.svelte +141 -0
- package/dist/components/select/Select.svelte.d.ts +60 -0
- package/dist/components/select/index.d.ts +7 -0
- package/dist/components/select/index.js +1 -0
- package/dist/components/skeleton-loader/SkeletonLoader.stories.svelte +45 -0
- package/dist/components/skeleton-loader/SkeletonLoader.stories.svelte.d.ts +27 -0
- package/dist/components/skeleton-loader/SkeletonLoader.svelte +17 -0
- package/dist/components/skeleton-loader/SkeletonLoader.svelte.d.ts +14 -0
- package/dist/components/skeleton-loader/StatcardSkeleton.svelte +14 -0
- package/dist/components/skeleton-loader/StatcardSkeleton.svelte.d.ts +18 -0
- package/dist/components/skeleton-loader/components/Skeleton.svelte +14 -0
- package/dist/components/skeleton-loader/components/Skeleton.svelte.d.ts +8 -0
- package/dist/components/skeleton-loader/components/SkeletonImage.svelte +14 -0
- package/dist/components/skeleton-loader/components/SkeletonImage.svelte.d.ts +26 -0
- package/dist/components/skeleton-loader/index.d.ts +3 -0
- package/dist/components/skeleton-loader/index.js +3 -0
- package/dist/components/slider/Slider.stories.svelte +37 -0
- package/dist/components/slider/Slider.stories.svelte.d.ts +27 -0
- package/dist/components/slider/Slider.svelte +127 -0
- package/dist/components/slider/Slider.svelte.d.ts +31 -0
- package/dist/components/slider/index.d.ts +1 -0
- package/dist/components/slider/index.js +1 -0
- package/dist/components/spinner/Spinner.svelte +27 -0
- package/dist/components/spinner/Spinner.svelte.d.ts +6 -0
- package/dist/components/spinner/index.d.ts +1 -0
- package/dist/components/spinner/index.js +1 -0
- package/dist/components/stat-card/StatCard.stories.svelte +32 -0
- package/dist/components/stat-card/StatCard.stories.svelte.d.ts +27 -0
- package/dist/components/stat-card/StatCard.svelte +52 -0
- package/dist/components/stat-card/StatCard.svelte.d.ts +10 -0
- package/dist/components/stat-card/index.d.ts +1 -0
- package/dist/components/stat-card/index.js +1 -0
- package/dist/components/status-badge/StatusBadge.stories.svelte +393 -0
- package/dist/components/status-badge/StatusBadge.stories.svelte.d.ts +19 -0
- package/dist/components/status-badge/StatusBadge.svelte +147 -0
- package/dist/components/status-badge/StatusBadge.svelte.d.ts +12 -0
- package/dist/components/status-badge/index.d.ts +1 -0
- package/dist/components/status-badge/index.js +1 -0
- package/dist/components/table/Table.stories.svelte +94 -0
- package/dist/components/table/Table.stories.svelte.d.ts +24 -0
- package/dist/components/table/Table.svelte +47 -0
- package/dist/components/table/Table.svelte.d.ts +21 -0
- package/dist/components/table/components/TBody.svelte +14 -0
- package/dist/components/table/components/TBody.svelte.d.ts +8 -0
- package/dist/components/table/components/THead.svelte +14 -0
- package/dist/components/table/components/THead.svelte.d.ts +8 -0
- package/dist/components/table/components/Td.svelte +14 -0
- package/dist/components/table/components/Td.svelte.d.ts +8 -0
- package/dist/components/table/components/Th.svelte +15 -0
- package/dist/components/table/components/Th.svelte.d.ts +9 -0
- package/dist/components/table/components/Tr.svelte +31 -0
- package/dist/components/table/components/Tr.svelte.d.ts +8 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/index.js +1 -0
- package/dist/components/tabs/Tabs.stories.svelte +28 -0
- package/dist/components/tabs/Tabs.stories.svelte.d.ts +27 -0
- package/dist/components/tabs/Tabs.svelte +13 -0
- package/dist/components/tabs/Tabs.svelte.d.ts +14 -0
- package/dist/components/tabs/components/Content.svelte +15 -0
- package/dist/components/tabs/components/Content.svelte.d.ts +9 -0
- package/dist/components/tabs/components/Tab.svelte +21 -0
- package/dist/components/tabs/components/Tab.svelte.d.ts +10 -0
- package/dist/components/tabs/components/Tabs.svelte +14 -0
- package/dist/components/tabs/components/Tabs.svelte.d.ts +8 -0
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/tag/Tag.stories.svelte +51 -0
- package/dist/components/tag/Tag.stories.svelte.d.ts +19 -0
- package/dist/components/tag/Tag.svelte +102 -0
- package/dist/components/tag/Tag.svelte.d.ts +12 -0
- package/dist/components/tag/index.d.ts +1 -0
- package/dist/components/tag/index.js +1 -0
- package/dist/components/toggle/Toggle.stories.svelte +15 -0
- package/dist/components/toggle/Toggle.stories.svelte.d.ts +27 -0
- package/dist/components/toggle/Toggle.svelte +73 -0
- package/dist/components/toggle/Toggle.svelte.d.ts +8 -0
- package/dist/components/toggle/index.d.ts +1 -0
- package/dist/components/toggle/index.js +1 -0
- package/dist/components/tooltip/Tooltip.stories.svelte +126 -0
- package/dist/components/tooltip/Tooltip.stories.svelte.d.ts +27 -0
- package/dist/components/tooltip/Tooltip.svelte +49 -0
- package/dist/components/tooltip/Tooltip.svelte.d.ts +13 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/tooltip/index.js +1 -0
- package/dist/fonts/MDSystemMono-Regular.woff +0 -0
- package/dist/fonts/MDSystemMono-Regular.woff2 +0 -0
- package/dist/fonts/afAnotherSans-Medium.woff2 +0 -0
- package/dist/fonts/afAnotherSans-Regular.woff2 +0 -0
- package/dist/fonts/afAnotherSans-SemiBold.woff2 +0 -0
- package/dist/fonts/afAnotherSans.woff2 +0 -0
- package/dist/fonts/index.d.ts +4 -0
- package/dist/fonts/index.js +6 -0
- package/dist/icons.d.ts +0 -0
- package/dist/icons.js +0 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.js +39 -68464
- package/dist/tailwind-safelist.d.ts +27 -0
- package/dist/tailwind-safelist.js +475 -0
- package/dist/tailwind.d.ts +11 -0
- package/dist/tailwind.js +1 -0
- package/dist/tailwind.preset.d.ts +344 -0
- package/dist/tailwind.preset.js +55 -0
- package/dist/tokens.d.ts +598 -0
- package/dist/tokens.js +285 -0
- package/dist/types/fonts.d.ts +4 -0
- package/package.json +2 -1
- package/dist/index.css +0 -1
- package/dist/index.umd.cjs +0 -148
package/dist/index.umd.cjs
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
(function(Ie,Mt){typeof exports=="object"&&typeof module<"u"?Mt(exports):typeof define=="function"&&define.amd?define(["exports"],Mt):(Ie=typeof globalThis<"u"?globalThis:Ie||self,Mt(Ie.DesignSystem={}))})(this,function(Ie){"use strict";var Cwe=Object.defineProperty;var Dwe=Object.getPrototypeOf;var Mwe=Reflect.get;var az=Ie=>{throw TypeError(Ie)};var Iwe=(Ie,Mt,Jt)=>Mt in Ie?Cwe(Ie,Mt,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):Ie[Mt]=Jt;var pe=(Ie,Mt,Jt)=>Iwe(Ie,typeof Mt!="symbol"?Mt+"":Mt,Jt),dC=(Ie,Mt,Jt)=>Mt.has(Ie)||az("Cannot "+Jt);var X=(Ie,Mt,Jt)=>(dC(Ie,Mt,"read from private field"),Jt?Jt.call(Ie):Mt.get(Ie)),ue=(Ie,Mt,Jt)=>Mt.has(Ie)?az("Cannot add the same private member more than once"):Mt instanceof WeakSet?Mt.add(Ie):Mt.set(Ie,Jt),Lr=(Ie,Mt,Jt,gu)=>(dC(Ie,Mt,"write to private field"),gu?gu.call(Ie,Jt):Mt.set(Ie,Jt),Jt),pu=(Ie,Mt,Jt)=>(dC(Ie,Mt,"access private method"),Jt);var oz=(Ie,Mt,Jt)=>Mwe(Dwe(Ie),Jt,Mt);var Ma,Ia,vo,gf,N1,mf,hd,po,vd,dd,pd,go,yf,hu,Ss,_f,wf,Ts,gd,md,mo,My,bf,sz,Iy,xf,Ey,Ly,ky,Py,yd,lz,Ny,Oy,Ry,Vy,Sf,_d,zy,uz,By,wd,bd,Fy,Tf,Af,Cf,Df,Hy,Gy,Wy,vu,Zy,xd,Uy,Sd,Yy,Td,Xy,Ad,qy,jy,Cd,Dd,Md,Id,Ky,Jy,Qy,$y,e1,t1,Ed,r1,n1,i1,a1,Ld,kd,Pd,Nd,Od,Rd,Vd,o1,s1,l1,u1,c1,f1,h1,v1,d1,p1,zd,Bd,g1,m1,y1,_1,w1,Fd,b1,x1,Hd,S1,T1,A1,C1,Gd,D1,Wd,M1,Zd,I1,Ud,E1,L1;const Mt="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Mt);const Jt=1,gu=2,pC=4,cz=8,fz=16,hz=1,vz=2,gC=4,dz=8,pz=16,gz=1,mz=2,yz=4,mC=1,_z=2,Jr=Symbol(),O1="http://www.w3.org/2000/svg",R1=!1,pi=2,yC=4,Jd=8,Qd=16,La=32,mu=64,$d=128,Vn=256,ep=512,Fr=1024,Ui=2048,wo=4096,ka=8192,tp=16384,_C=32768,Es=65536,wz=1<<17,bz=1<<19,wC=1<<20,bo=Symbol("$state"),bC=Symbol("legacy props"),xz=Symbol("");var Lf=Array.isArray,Sz=Array.prototype.indexOf,V1=Array.from,Tz=Object.defineProperty,Pa=Object.getOwnPropertyDescriptor,xC=Object.getOwnPropertyDescriptors,Az=Object.prototype,Cz=Array.prototype,z1=Object.getPrototypeOf;function yu(r){return typeof r=="function"}const Pe=()=>{};function Dz(r){return r()}function B1(r){for(var e=0;e<r.length;e++)r[e]()}let rp=!1,F1=[];function SC(){rp=!1;const r=F1.slice();F1=[],B1(r)}function kf(r){rp||(rp=!0,queueMicrotask(SC)),F1.push(r)}function Mz(){rp&&SC()}function TC(r){return r===this.v}function H1(r,e){return r!=r?e==e:r!==e||r!==null&&typeof r=="object"||typeof r=="function"}function Iz(r,e){return r!==e}function G1(r){return!H1(r,this.v)}function Ez(r){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Lz(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function kz(r){throw new Error("https://svelte.dev/e/effect_orphan")}function Pz(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nz(r){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function Oz(r){throw new Error("https://svelte.dev/e/props_invalid_value")}function Rz(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Vz(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function zz(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Bz(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let _u=!1,Fz=!1;function Hz(){_u=!0}function ar(r,e){var t={f:0,v:r,reactions:null,equals:TC,rv:0,wv:0};return t}function Ye(r){return AC(ar(r))}function W1(r,e=!1){var n;const t=ar(r);return e||(t.equals=G1),_u&&yt!==null&&yt.l!==null&&((n=yt.l).s??(n.s=[])).push(t),t}function Pt(r,e=!1){return AC(W1(r,e))}function AC(r){return Nt!==null&&!gi&&Nt.f&pi&&(ji===null?qz([r]):ji.push(r)),r}function Ls(r,e){return ie(r,Hr(()=>D(r))),e}function ie(r,e){return Nt!==null&&!gi&&Su()&&Nt.f&(pi|Qd)&&(ji===null||!ji.includes(r))&&Bz(),Z1(r,e)}function Z1(r,e){return r.equals(e)||(r.v,r.v=e,r.wv=BC(),DC(r,Ui),Su()&&Tt!==null&&Tt.f&Fr&&!(Tt.f&(La|mu))&&(Na===null?jz([r]):Na.push(r))),e}function CC(r,e=1){var t=D(r),n=e===1?t++:t--;return ie(r,t),n}function DC(r,e){var t=r.reactions;if(t!==null)for(var n=Su(),i=t.length,a=0;a<i;a++){var o=t[a],s=o.f;s&Ui||!n&&o===Tt||(zn(o,e),s&(Fr|Vn)&&(s&pi?DC(o,wo):fp(o)))}}function q(r){var e=pi|Ui,t=Nt!==null&&Nt.f&pi?Nt:null;return Tt===null||t!==null&&t.f&Vn?e|=Vn:Tt.f|=wC,{ctx:yt,deps:null,effects:null,equals:TC,f:e,fn:r,reactions:null,rv:0,v:null,wv:0,parent:t??Tt}}function kr(r){const e=q(r);return e.equals=G1,e}function MC(r){var e=r.effects;if(e!==null){r.effects=null;for(var t=0;t<e.length;t+=1)Bn(e[t])}}function Gz(r){for(var e=r.parent;e!==null;){if(!(e.f&pi))return e;e=e.parent}return null}function Wz(r){var e,t=Tt;qi(Gz(r));try{MC(r),e=HC(r)}finally{qi(t)}return e}function IC(r){var e=Wz(r),t=(xo||r.f&Vn)&&r.deps!==null?wo:Fr;zn(r,t),r.equals(e)||(r.v=e,r.wv=BC())}function Zz(r){console.warn("https://svelte.dev/e/legacy_recursive_reactive_block")}let EC=!1;function Ee(r,e=null,t){if(typeof r!="object"||r===null||bo in r)return r;const n=z1(r);if(n!==Az&&n!==Cz)return r;var i=new Map,a=Lf(r),o=ar(0);a&&i.set("length",ar(r.length));var s;return new Proxy(r,{defineProperty(l,u,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&Rz();var f=i.get(u);return f===void 0?(f=ar(c.value),i.set(u,f)):ie(f,Ee(c.value,s)),!0},deleteProperty(l,u){var c=i.get(u);if(c===void 0)u in l&&i.set(u,ar(Jr));else{if(a&&typeof u=="string"){var f=i.get("length"),h=Number(u);Number.isInteger(h)&&h<f.v&&ie(f,h)}ie(c,Jr),LC(o)}return!0},get(l,u,c){var d;if(u===bo)return r;var f=i.get(u),h=u in l;if(f===void 0&&(!h||(d=Pa(l,u))!=null&&d.writable)&&(f=ar(Ee(h?l[u]:Jr,s)),i.set(u,f)),f!==void 0){var v=D(f);return v===Jr?void 0:v}return Reflect.get(l,u,c)},getOwnPropertyDescriptor(l,u){var c=Reflect.getOwnPropertyDescriptor(l,u);if(c&&"value"in c){var f=i.get(u);f&&(c.value=D(f))}else if(c===void 0){var h=i.get(u),v=h==null?void 0:h.v;if(h!==void 0&&v!==Jr)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return c},has(l,u){var v;if(u===bo)return!0;var c=i.get(u),f=c!==void 0&&c.v!==Jr||Reflect.has(l,u);if(c!==void 0||Tt!==null&&(!f||(v=Pa(l,u))!=null&&v.writable)){c===void 0&&(c=ar(f?Ee(l[u],s):Jr),i.set(u,c));var h=D(c);if(h===Jr)return!1}return f},set(l,u,c,f){var _;var h=i.get(u),v=u in l;if(a&&u==="length")for(var d=c;d<h.v;d+=1){var g=i.get(d+"");g!==void 0?ie(g,Jr):d in l&&(g=ar(Jr),i.set(d+"",g))}h===void 0?(!v||(_=Pa(l,u))!=null&&_.writable)&&(h=ar(void 0),ie(h,Ee(c,s)),i.set(u,h)):(v=h.v!==Jr,ie(h,Ee(c,s)));var p=Reflect.getOwnPropertyDescriptor(l,u);if(p!=null&&p.set&&p.set.call(f,c),!v){if(a&&typeof u=="string"){var m=i.get("length"),y=Number(u);Number.isInteger(y)&&y>=m.v&&ie(m,y+1)}LC(o)}return!0},ownKeys(l){D(o);var u=Reflect.ownKeys(l).filter(h=>{var v=i.get(h);return v===void 0||v.v!==Jr});for(var[c,f]of i)f.v!==Jr&&!(c in l)&&u.push(c);return u},setPrototypeOf(){Vz()}})}function LC(r,e=1){ie(r,r.v+e)}var np,kC,PC,NC;function Uz(){if(np===void 0){np=window,kC=/Firefox/.test(navigator.userAgent);var r=Element.prototype,e=Node.prototype;PC=Pa(e,"firstChild").get,NC=Pa(e,"nextSibling").get,r.__click=void 0,r.__className="",r.__attributes=null,r.__styles=null,r.__e=void 0,Text.prototype.__t=void 0}}function Pf(r=""){return document.createTextNode(r)}function Yi(r){return PC.call(r)}function ip(r){return NC.call(r)}function K(r,e){return Yi(r)}function G(r,e){{var t=Yi(r);return t instanceof Comment&&t.data===""?ip(t):t}}function _e(r,e=1,t=!1){let n=r;for(;e--;)n=ip(n);return n}function Yz(r){r.textContent=""}const OC=0,Xz=1;let ap=!1,op=OC,Nf=!1,Of=null,wu=!1,U1=!1;function RC(r){wu=r}function VC(r){U1=r}let ks=[],bu=0,Ewe=[],Nt=null,gi=!1;function Xi(r){Nt=r}let Tt=null;function qi(r){Tt=r}let ji=null;function qz(r){ji=r}let Qr=null,Tn=0,Na=null;function jz(r){Na=r}let zC=1,sp=0,xo=!1;function BC(){return++zC}function xu(r){var f;var e=r.f;if(e&Ui)return!0;if(e&wo){var t=r.deps,n=(e&Vn)!==0;if(t!==null){var i,a,o=(e&ep)!==0,s=n&&Tt!==null&&!xo,l=t.length;if(o||s){var u=r,c=u.parent;for(i=0;i<l;i++)a=t[i],(o||!((f=a==null?void 0:a.reactions)!=null&&f.includes(u)))&&(a.reactions??(a.reactions=[])).push(u);o&&(u.f^=ep),s&&c!==null&&!(c.f&Vn)&&(u.f^=Vn)}for(i=0;i<l;i++)if(a=t[i],xu(a)&&IC(a),a.wv>r.wv)return!0}(!n||Tt!==null&&!xo)&&zn(r,Fr)}return!1}function Kz(r,e){for(var t=e;t!==null;){if(t.f&$d)try{t.fn(r);return}catch{t.f^=$d}t=t.parent}throw ap=!1,r}function Jz(r){return(r.f&tp)===0&&(r.parent===null||(r.parent.f&$d)===0)}function lp(r,e,t,n){if(ap){if(t===null&&(ap=!1),Jz(e))throw r;return}t!==null&&(ap=!0);{Kz(r,e);return}}function FC(r,e,t=!0){var n=r.reactions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];a.f&pi?FC(a,e,!1):e===a&&(t?zn(a,Ui):a.f&Fr&&zn(a,wo),fp(a))}}function HC(r){var v;var e=Qr,t=Tn,n=Na,i=Nt,a=xo,o=ji,s=yt,l=gi,u=r.f;Qr=null,Tn=0,Na=null,Nt=u&(La|mu)?null:r,xo=(u&Vn)!==0&&(!wu||i===null||l),ji=null,JC(r.ctx),gi=!1,sp++;try{var c=(0,r.fn)(),f=r.deps;if(Qr!==null){var h;if(up(r,Tn),f!==null&&Tn>0)for(f.length=Tn+Qr.length,h=0;h<Qr.length;h++)f[Tn+h]=Qr[h];else r.deps=f=Qr;if(!xo)for(h=Tn;h<f.length;h++)((v=f[h]).reactions??(v.reactions=[])).push(r)}else f!==null&&Tn<f.length&&(up(r,Tn),f.length=Tn);if(Su()&&Na!==null&&!gi&&f!==null&&!(r.f&(pi|wo|Ui)))for(h=0;h<Na.length;h++)FC(Na[h],r);return i!==null&&sp++,c}finally{Qr=e,Tn=t,Na=n,Nt=i,xo=a,ji=o,JC(s),gi=l}}function Qz(r,e){let t=e.reactions;if(t!==null){var n=Sz.call(t,r);if(n!==-1){var i=t.length-1;i===0?t=e.reactions=null:(t[n]=t[i],t.pop())}}t===null&&e.f&pi&&(Qr===null||!Qr.includes(e))&&(zn(e,wo),e.f&(Vn|ep)||(e.f^=ep),MC(e),up(e,0))}function up(r,e){var t=r.deps;if(t!==null)for(var n=e;n<t.length;n++)Qz(r,t[n])}function cp(r){var e=r.f;if(!(e&tp)){zn(r,Fr);var t=Tt,n=yt;Tt=r;try{e&Qd?sB(r):XC(r),YC(r);var i=HC(r);r.teardown=typeof i=="function"?i:null,r.wv=zC;var a=r.deps,o;R1&&Fz&&r.f&Ui}catch(s){lp(s,r,t,n||r.ctx)}finally{Tt=t}}}function GC(){if(bu>1e3){bu=0;try{Pz()}catch(r){if(Of!==null)lp(r,Of,null);else throw r}}bu++}function WC(r){var e=r.length;if(e!==0){GC();var t=wu;wu=!0;try{for(var n=0;n<e;n++){var i=r[n];i.f&Fr||(i.f^=Fr);var a=tB(i);$z(a)}}finally{wu=t}}}function $z(r){var e=r.length;if(e!==0)for(var t=0;t<e;t++){var n=r[t];if(!(n.f&(tp|ka)))try{xu(n)&&(cp(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?qC(n):n.fn=null))}catch(i){lp(i,n,null,n.ctx)}}}function eB(){if(Nf=!1,bu>1001)return;const r=ks;ks=[],WC(r),Nf||(bu=0,Of=null)}function fp(r){op===OC&&(Nf||(Nf=!0,queueMicrotask(eB))),Of=r;for(var e=r;e.parent!==null;){e=e.parent;var t=e.f;if(t&(mu|La)){if(!(t&Fr))return;e.f^=Fr}}ks.push(e)}function tB(r){var e=[],t=r.first;e:for(;t!==null;){var n=t.f,i=(n&La)!==0,a=i&&(n&Fr)!==0,o=t.next;if(!a&&!(n&ka)){if(n&yC)e.push(t);else if(i)t.f^=Fr;else{var s=Nt;try{Nt=t,xu(t)&&cp(t)}catch(c){lp(c,t,null,t.ctx)}finally{Nt=s}}var l=t.first;if(l!==null){t=l;continue}}if(o===null){let c=t.parent;for(;c!==null;){if(r===c)break e;var u=c.next;if(u!==null){t=u;continue e}c=c.parent}}t=o}return e}function ZC(r){var e=op,t=ks;try{GC();const i=[];op=Xz,ks=i,Nf=!1,WC(t);var n=r==null?void 0:r();return Mz(),(ks.length>0||i.length>0)&&ZC(),bu=0,Of=null,n}finally{op=e,ks=t}}async function Y1(){await Promise.resolve(),ZC()}function D(r){var e=r.f,t=(e&pi)!==0;if(Nt!==null&&!gi){ji!==null&&ji.includes(r)&&zz();var n=Nt.deps;r.rv<sp&&(r.rv=sp,Qr===null&&n!==null&&n[Tn]===r?Tn++:Qr===null?Qr=[r]:(!xo||!Qr.includes(r))&&Qr.push(r))}else if(t&&r.deps===null&&r.effects===null){var i=r,a=i.parent;a!==null&&!(a.f&Vn)&&(i.f^=Vn)}return t&&(i=r,xu(i)&&IC(i)),r.v}function Hr(r){var e=gi;try{return gi=!0,r()}finally{gi=e}}const rB=-7169;function zn(r,e){r.f=r.f&rB|e}function ge(r){if(!(typeof r!="object"||!r||r instanceof EventTarget)){if(bo in r)X1(r);else if(!Array.isArray(r))for(let e in r){const t=r[e];typeof t=="object"&&t&&bo in t&&X1(t)}}}function X1(r,e=new Set){if(typeof r=="object"&&r!==null&&!(r instanceof EventTarget)&&!e.has(r)){e.add(r),r instanceof Date&&r.getTime();for(let n in r)try{X1(r[n],e)}catch{}const t=z1(r);if(t!==Object.prototype&&t!==Array.prototype&&t!==Map.prototype&&t!==Set.prototype&&t!==Date.prototype){const n=xC(t);for(let i in n){const a=n[i].get;if(a)try{a.call(r)}catch{}}}}}function UC(r){Tt===null&&Nt===null&&kz(),Nt!==null&&Nt.f&Vn&&Tt===null&&Lz(),U1&&Ez()}function nB(r,e){var t=e.last;t===null?e.last=e.first=r:(t.next=r,r.prev=t,e.last=r)}function Ps(r,e,t,n=!0){var i=(r&mu)!==0,a=Tt,o={ctx:yt,deps:null,nodes_start:null,nodes_end:null,f:r|Ui,first:null,fn:e,last:null,next:null,parent:i?null:a,prev:null,teardown:null,transitions:null,wv:0};if(t){var s=wu;try{RC(!0),cp(o),o.f|=_C}catch(c){throw Bn(o),c}finally{RC(s)}}else e!==null&&fp(o);var l=t&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&(wC|$d))===0;if(!l&&!i&&n&&(a!==null&&nB(o,a),Nt!==null&&Nt.f&pi)){var u=Nt;(u.effects??(u.effects=[])).push(o)}return o}function iB(){return Nt!==null&&!gi}function q1(r){const e=Ps(Jd,null,!1);return zn(e,Fr),e.teardown=r,e}function Ht(r){UC();var e=Tt!==null&&(Tt.f&La)!==0&&yt!==null&&!yt.m;if(e){var t=yt;(t.e??(t.e=[])).push({fn:r,effect:Tt,reaction:Nt})}else{var n=Oa(r);return n}}function Rf(r){return UC(),Ra(r)}function aB(r){const e=Ps(mu,r,!0);return()=>{Bn(e)}}function oB(r){const e=Ps(mu,r,!0);return(t={})=>new Promise(n=>{t.outro?Ns(e,()=>{Bn(e),n(void 0)}):(Bn(e),n(void 0))})}function Oa(r){return Ps(yC,r,!1)}function Ke(r,e){var t=yt,n={effect:null,ran:!1};t.l.r1.push(n),n.effect=Ra(()=>{r(),!n.ran&&(n.ran=!0,ie(t.l.r2,!0),Hr(e))})}function Vf(){var r=yt;Ra(()=>{if(D(r.l.r2)){for(var e of r.l.r1){var t=e.effect;t.f&Fr&&zn(t,wo),xu(t)&&cp(t),e.ran=!1}r.l.r2.v=!1}})}function Ra(r){return Ps(Jd,r,!0)}function ce(r,e=[],t=q){const n=e.map(t);return So(()=>r(...n.map(D)))}function So(r,e=0){return Ps(Jd|Qd|e,r,!0)}function Ki(r,e=!0){return Ps(Jd|La,r,!0,e)}function YC(r){var e=r.teardown;if(e!==null){const t=U1,n=Nt;VC(!0),Xi(null);try{e.call(null)}finally{VC(t),Xi(n)}}}function XC(r,e=!1){var t=r.first;for(r.first=r.last=null;t!==null;){var n=t.next;Bn(t,e),t=n}}function sB(r){for(var e=r.first;e!==null;){var t=e.next;e.f&La||Bn(e),e=t}}function Bn(r,e=!0){var t=!1;if((e||r.f&bz)&&r.nodes_start!==null){for(var n=r.nodes_start,i=r.nodes_end;n!==null;){var a=n===i?null:ip(n);n.remove(),n=a}t=!0}XC(r,e&&!t),up(r,0),zn(r,tp);var o=r.transitions;if(o!==null)for(const l of o)l.stop();YC(r);var s=r.parent;s!==null&&s.first!==null&&qC(r),r.next=r.prev=r.teardown=r.ctx=r.deps=r.fn=r.nodes_start=r.nodes_end=null}function qC(r){var e=r.parent,t=r.prev,n=r.next;t!==null&&(t.next=n),n!==null&&(n.prev=t),e!==null&&(e.first===r&&(e.first=n),e.last===r&&(e.last=t))}function Ns(r,e){var t=[];j1(r,t,!0),jC(t,()=>{Bn(r),e&&e()})}function jC(r,e){var t=r.length;if(t>0){var n=()=>--t||e();for(var i of r)i.out(n)}else e()}function j1(r,e,t){if(!(r.f&ka)){if(r.f^=ka,r.transitions!==null)for(const o of r.transitions)(o.is_global||t)&&e.push(o);for(var n=r.first;n!==null;){var i=n.next,a=(n.f&Es)!==0||(n.f&La)!==0;j1(n,e,a?t:!1),n=i}}}function zf(r){KC(r,!0)}function KC(r,e){if(r.f&ka){r.f^=ka,r.f&Fr||(r.f^=Fr),xu(r)&&(zn(r,Ui),fp(r));for(var t=r.first;t!==null;){var n=t.next,i=(t.f&Es)!==0||(t.f&La)!==0;KC(t,i?e:!1),t=n}if(r.transitions!==null)for(const a of r.transitions)(a.is_global||e)&&a.in()}}function Bf(r){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let yt=null;function JC(r){yt=r}function K1(r){return hp().get(r)}function J1(r,e){return hp().set(r,e),e}function QC(r){return hp().has(r)}function lB(){return hp()}function Ae(r,e=!1,t){yt={p:yt,c:null,e:null,m:!1,s:r,x:null,l:null},_u&&!e&&(yt.l={s:null,u:null,r1:[],r2:ar(!1)})}function Ce(r){const e=yt;if(e!==null){r!==void 0&&(e.x=r);const o=e.e;if(o!==null){var t=Tt,n=Nt;e.e=null;try{for(var i=0;i<o.length;i++){var a=o[i];qi(a.effect),Xi(a.reaction),Oa(a.fn)}}finally{qi(t),Xi(n)}}yt=e.p,e.m=!0}return r||{}}function Su(){return!_u||yt!==null&&yt.l===null}function hp(r){return yt===null&&Bf(),yt.c??(yt.c=new Map(uB(yt)||void 0))}function uB(r){let e=r.p;for(;e!==null;){const t=e.c;if(t!==null)return t;e=e.p}return null}function cB(r){return r.endsWith("capture")&&r!=="gotpointercapture"&&r!=="lostpointercapture"}const fB=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function hB(r){return fB.includes(r)}const vB={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function dB(r){return r=r.toLowerCase(),vB[r]??r}const pB=["touchstart","touchmove"];function gB(r){return pB.includes(r)}function Q1(r,e){if(e){const t=document.body;r.autofocus=!0,kf(()=>{document.activeElement===t&&r.focus()})}}let $C=!1;function mB(){$C||($C=!0,document.addEventListener("reset",r=>{Promise.resolve().then(()=>{var e;if(!r.defaultPrevented)for(const t of r.target.elements)(e=t.__on_r)==null||e.call(t)})},{capture:!0}))}function $1(r){var e=Nt,t=Tt;Xi(null),qi(null);try{return r()}finally{Xi(e),qi(t)}}function eD(r,e,t,n=t){r.addEventListener(e,()=>$1(t));const i=r.__on_r;i?r.__on_r=()=>{i(),n(!0)}:r.__on_r=()=>n(!0),mB()}const tD=new Set,e_=new Set;function t_(r,e,t,n={}){function i(a){if(n.capture||Ff.call(e,a),!a.cancelBubble)return $1(()=>t==null?void 0:t.call(this,a))}return r.startsWith("pointer")||r.startsWith("touch")||r==="wheel"?kf(()=>{e.addEventListener(r,i,n)}):e.addEventListener(r,i,n),i}function Pr(r,e,t,n={}){var i=t_(e,r,t,n);return()=>{r.removeEventListener(e,i,n)}}function At(r,e,t,n,i){var a={capture:n,passive:i},o=t_(r,e,t,a);(e===document.body||e===window||e===document)&&q1(()=>{e.removeEventListener(r,o,a)})}function mi(r){for(var e=0;e<r.length;e++)tD.add(r[e]);for(var t of e_)t(r)}function Ff(r){var y;var e=this,t=e.ownerDocument,n=r.type,i=((y=r.composedPath)==null?void 0:y.call(r))||[],a=i[0]||r.target,o=0,s=r.__root;if(s){var l=i.indexOf(s);if(l!==-1&&(e===document||e===window)){r.__root=e;return}var u=i.indexOf(e);if(u===-1)return;l<=u&&(o=l)}if(a=i[o]||r.target,a!==e){Tz(r,"currentTarget",{configurable:!0,get(){return a||t}});var c=Nt,f=Tt;Xi(null),qi(null);try{for(var h,v=[];a!==null;){var d=a.assignedSlot||a.parentNode||a.host||null;try{var g=a["__"+n];if(g!==void 0&&(!a.disabled||r.target===a))if(Lf(g)){var[p,...m]=g;p.apply(a,[r,...m])}else g.call(a,r)}catch(_){h?v.push(_):h=_}if(r.cancelBubble||d===e||d===null)break;a=d}if(h){for(let _ of v)queueMicrotask(()=>{throw _});throw h}}finally{r.__root=e,delete r.currentTarget,Xi(c),qi(f)}}}function r_(r){var e=document.createElement("template");return e.innerHTML=r,e.content}function To(r,e){var t=Tt;t.nodes_start===null&&(t.nodes_start=r,t.nodes_end=e)}function se(r,e){var t=(e&mC)!==0,n=(e&_z)!==0,i,a=!r.startsWith("<!>");return()=>{i===void 0&&(i=r_(a?r:"<!>"+r),t||(i=Yi(i)));var o=n||kC?document.importNode(i,!0):i.cloneNode(!0);if(t){var s=Yi(o),l=o.lastChild;To(s,l)}else To(o,o);return o}}function J(r,e,t="svg"){var n=!r.startsWith("<!>"),i=(e&mC)!==0,a=`<${t}>${n?r:"<!>"+r}</${t}>`,o;return()=>{if(!o){var s=r_(a),l=Yi(s);if(i)for(o=document.createDocumentFragment();Yi(l);)o.appendChild(Yi(l));else o=Yi(l)}var u=o.cloneNode(!0);if(i){var c=Yi(u),f=u.lastChild;To(c,f)}else To(u,u);return u}}function Gt(r=""){{var e=Pf(r+"");return To(e,e),e}}function Z(){var r=document.createDocumentFragment(),e=document.createComment(""),t=Pf();return r.append(e,t),To(e,t),r}function I(r,e){r!==null&&r.before(e)}let vp=!0;function rD(r){vp=r}function Ut(r,e){var t=e==null?"":typeof e=="object"?e+"":e;t!==(r.__t??(r.__t=r.nodeValue))&&(r.__t=t,r.nodeValue=t+"")}function yB(r,e){return _B(r,e)}const Tu=new Map;function _B(r,{target:e,anchor:t,props:n={},events:i,context:a,intro:o=!0}){Uz();var s=new Set,l=f=>{for(var h=0;h<f.length;h++){var v=f[h];if(!s.has(v)){s.add(v);var d=gB(v);e.addEventListener(v,Ff,{passive:d});var g=Tu.get(v);g===void 0?(document.addEventListener(v,Ff,{passive:d}),Tu.set(v,1)):Tu.set(v,g+1)}}};l(V1(tD)),e_.add(l);var u=void 0,c=oB(()=>{var f=t??e.appendChild(Pf());return Ki(()=>{if(a){Ae({});var h=yt;h.c=a}i&&(n.$$events=i),vp=o,u=r(f,n)||{},vp=!0,a&&Ce()}),()=>{var d;for(var h of s){e.removeEventListener(h,Ff);var v=Tu.get(h);--v===0?(document.removeEventListener(h,Ff),Tu.delete(h)):Tu.set(h,v)}e_.delete(l),f!==t&&((d=f.parentNode)==null||d.removeChild(f))}});return n_.set(u,c),u}let n_=new WeakMap;function wB(r,e){const t=n_.get(r);return t?(n_.delete(r),t(e)):Promise.resolve()}function W(r,e,t=!1){var n=r,i=null,a=null,o=Jr,s=t?Es:0,l=!1;const u=(f,h=!0)=>{l=!0,c(h,f)},c=(f,h)=>{o!==(o=f)&&(o?(i?zf(i):h&&(i=Ki(()=>h(n))),a&&Ns(a,()=>{a=null})):(a?zf(a):h&&(a=Ki(()=>h(n))),i&&Ns(i,()=>{i=null})))};So(()=>{l=!1,e(u),l||c(null,null)},s)}function bB(r,e,t){var n=r,i=Jr,a,o=Su()?Iz:H1;So(()=>{o(i,i=e())&&(a&&Ns(a),a=Ki(()=>t(n)))})}function xB(r,e){Ra(()=>{var t=e();for(var n in t){var i=t[n];i?r.style.setProperty(n,i):r.style.removeProperty(n)}}),q1(()=>{r.remove()})}function Ao(r,e){return e}function SB(r,e,t,n){for(var i=[],a=e.length,o=0;o<a;o++)j1(e[o].e,i,!0);var s=a>0&&i.length===0&&t!==null;if(s){var l=t.parentNode;Yz(l),l.append(t),n.clear(),Do(r,e[0].prev,e[a-1].next)}jC(i,()=>{for(var u=0;u<a;u++){var c=e[u];s||(n.delete(c.k),Do(r,c.prev,c.next)),Bn(c.e,!s)}})}function Co(r,e,t,n,i,a=null){var o=r,s={flags:e,items:new Map,first:null},l=(e&pC)!==0;if(l){var u=r;o=u.appendChild(Pf())}var c=null,f=!1,h=kr(()=>{var v=t();return Lf(v)?v:v==null?[]:V1(v)});So(()=>{var v=D(h),d=v.length;f&&d===0||(f=d===0,TB(v,s,o,i,e,n,t),a!==null&&(d===0?c?zf(c):c=Ki(()=>a(o)):c!==null&&Ns(c,()=>{c=null})),D(h))})}function TB(r,e,t,n,i,a,o){var P,E,O,V;var s=(i&cz)!==0,l=(i&(Jt|gu))!==0,u=r.length,c=e.items,f=e.first,h=f,v,d=null,g,p=[],m=[],y,_,w,b;if(s)for(b=0;b<u;b+=1)y=r[b],_=a(y,b),w=c.get(_),w!==void 0&&((P=w.a)==null||P.measure(),(g??(g=new Set)).add(w));for(b=0;b<u;b+=1){if(y=r[b],_=a(y,b),w=c.get(_),w===void 0){var x=h?h.e.nodes_start:t;d=CB(x,e,d,d===null?e.first:d.next,y,_,b,n,i,o),c.set(_,d),p=[],m=[],h=d.next;continue}if(l&&AB(w,y,b,i),w.e.f&ka&&(zf(w.e),s&&((E=w.a)==null||E.unfix(),(g??(g=new Set)).delete(w))),w!==h){if(v!==void 0&&v.has(w)){if(p.length<m.length){var S=m[0],T;d=S.prev;var C=p[0],A=p[p.length-1];for(T=0;T<p.length;T+=1)nD(p[T],S,t);for(T=0;T<m.length;T+=1)v.delete(m[T]);Do(e,C.prev,A.next),Do(e,d,C),Do(e,A,S),h=S,d=A,b-=1,p=[],m=[]}else v.delete(w),nD(w,h,t),Do(e,w.prev,w.next),Do(e,w,d===null?e.first:d.next),Do(e,d,w),d=w;continue}for(p=[],m=[];h!==null&&h.k!==_;)h.e.f&ka||(v??(v=new Set)).add(h),m.push(h),h=h.next;if(h===null)continue;w=h}p.push(w),d=w,h=w.next}if(h!==null||v!==void 0){for(var M=v===void 0?[]:V1(v);h!==null;)h.e.f&ka||M.push(h),h=h.next;var k=M.length;if(k>0){var L=i&pC&&u===0?t:null;if(s){for(b=0;b<k;b+=1)(O=M[b].a)==null||O.measure();for(b=0;b<k;b+=1)(V=M[b].a)==null||V.fix()}SB(e,M,L,c)}}s&&kf(()=>{var z;if(g!==void 0)for(w of g)(z=w.a)==null||z.apply()}),Tt.first=e.first&&e.first.e,Tt.last=d&&d.e}function AB(r,e,t,n){n&Jt&&Z1(r.v,e),n&gu?Z1(r.i,t):r.i=t}function CB(r,e,t,n,i,a,o,s,l,u){var c=(l&Jt)!==0,f=(l&fz)===0,h=c?f?W1(i):ar(i):i,v=l&gu?ar(o):o,d={i:v,v:h,k:a,a:null,e:null,prev:t,next:n};try{return d.e=Ki(()=>s(r,h,v,u),EC),d.e.prev=t&&t.e,d.e.next=n&&n.e,t===null?e.first=d:(t.next=d,t.e.next=d.e),n!==null&&(n.prev=d,n.e.prev=d.e),d}finally{}}function nD(r,e,t){for(var n=r.next?r.next.e.nodes_start:t,i=e?e.e.nodes_start:t,a=r.e.nodes_start;a!==n;){var o=ip(a);i.before(a),a=o}}function Do(r,e,t){e===null?r.first=t:(e.next=t,e.e.next=t&&t.e),t!==null&&(t.prev=e,t.e.prev=e&&e.e)}function DB(r,e,t,n,i){var a=r,o="",s;So(()=>{o!==(o=e()??"")&&(s!==void 0&&(Bn(s),s=void 0),o!==""&&(s=Ki(()=>{var l=o+"",u=r_(l);To(Yi(u),u.lastChild),a.before(u)})))})}function or(r,e,t,n,i){var s;var a=(s=e.$$slots)==null?void 0:s[t],o=!1;a===!0&&(a=e[t==="default"?"children":t],o=!0),a===void 0?i!==null&&i(r):a(r,o?()=>n:n)}function iD(r){const e={};r.children&&(e.default=!0);for(const t in r.$$slots)e[t]=!0;return e}function he(r,e,...t){var n=r,i=Pe,a;So(()=>{i!==(i=e())&&(a&&(Bn(a),a=null),a=Ki(()=>i(n,...t)))},Es)}function Fn(r,e,t){var n=r,i,a;So(()=>{i!==(i=e())&&(a&&(Ns(a),a=null),i&&(a=Ki(()=>t(n,i))))},Es)}function aD(r,e,t,n,i,a){var o,s,l=null,u=r,c;So(()=>{const f=e()||null;var h=f==="svg"?O1:null;f!==o&&(c&&(f===null?Ns(c,()=>{c=null,s=null}):f===s?zf(c):(Bn(c),rD(!1))),f&&f!==s&&(c=Ki(()=>{if(l=h?document.createElementNS(h,f):document.createElement(f),To(l,l),n){var v=l.appendChild(Pf());n(l,v)}Tt.nodes_end=l,u.before(l)})),o=f,o&&(s=o),rD(!0))},Es)}function Os(r,e,t){Oa(()=>{var n=Hr(()=>e(r,t==null?void 0:t())||{});if(t&&(n!=null&&n.update)){var i=!1,a={};Ra(()=>{var o=t();ge(o),i&&H1(a,o)&&(a=o,n.update(o))}),i=!0}if(n!=null&&n.destroy)return()=>n.destroy()})}function oD(r){var e,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r)){var i=r.length;for(e=0;e<i;e++)r[e]&&(t=oD(r[e]))&&(n&&(n+=" "),n+=t)}else for(t in r)r[t]&&(n&&(n+=" "),n+=t);return n}function dp(){for(var r,e,t=0,n="",i=arguments.length;t<i;t++)(r=arguments[t])&&(e=oD(r))&&(n&&(n+=" "),n+=e);return n}function pp(r){return typeof r=="object"?dp(r):r??""}function i_(r,e){var t=r.__attributes??(r.__attributes={});t.value===(t.value=e??void 0)||r.value===e&&(e!==0||r.nodeName!=="PROGRESS")||(r.value=e??"")}function MB(r,e){e?r.hasAttribute("selected")||r.setAttribute("selected",""):r.removeAttribute("selected")}function Fe(r,e,t,n){var i=r.__attributes??(r.__attributes={});i[e]!==(i[e]=t)&&(e==="style"&&"__styles"in r&&(r.__styles={}),e==="loading"&&(r[xz]=t),t==null?r.removeAttribute(e):typeof t!="string"&&lD(r).includes(e)?r[e]=t:r.setAttribute(e,t))}function it(r,e,t,n,i=!1,a=!1,o=!1){var s=e||{},l=r.tagName==="OPTION";for(var u in e)u in t||(t[u]=null);t.class&&(t.class=pp(t.class)),n!==void 0&&(t.class=t.class?t.class+" "+n:n);var c=lD(r),f=r.__attributes??(r.__attributes={});for(const m in t){let y=t[m];if(l&&m==="value"&&y==null){r.value=r.__value="",s[m]=y;continue}var h=s[m];if(y!==h){s[m]=y;var v=m[0]+m[1];if(v!=="$$"){if(v==="on"){const _={},w="$$"+m;let b=m.slice(2);var d=hB(b);if(cB(b)&&(b=b.slice(0,-7),_.capture=!0),!d&&h){if(y!=null)continue;r.removeEventListener(b,s[w],_),s[w]=null}if(y!=null)if(d)r[`__${b}`]=y,mi([b]);else{let x=function(S){s[m].call(this,S)};s[w]=t_(b,r,x,_)}else d&&(r[`__${b}`]=void 0)}else if(m==="style"&&y!=null)r.style.cssText=y+"";else if(m==="autofocus")Q1(r,!!y);else if(!a&&(m==="__value"||m==="value"&&y!=null))r.value=r.__value=y;else if(m==="selected"&&l)MB(r,y);else{var g=m;i||(g=dB(g));var p=g==="defaultValue"||g==="defaultChecked";if(y==null&&!a&&!p)if(f[m]=null,g==="value"||g==="checked"){let _=r;const w=e===void 0;if(g==="value"){let b=_.defaultValue;_.removeAttribute(g),_.defaultValue=b,_.value=_.__value=w?b:null}else{let b=_.defaultChecked;_.removeAttribute(g),_.defaultChecked=b,_.checked=w?b:!1}}else r.removeAttribute(m);else p||c.includes(g)&&(a||typeof y!="string")?r[g]=y:typeof y!="function"&&Fe(r,g,y)}m==="style"&&"__styles"in r&&(r.__styles={})}}}return s}var sD=new Map;function lD(r){var e=sD.get(r.nodeName);if(e)return e;sD.set(r.nodeName,e=[]);for(var t,n=r,i=Element.prototype;i!==n;){t=xC(n);for(var a in t)t[a].set&&e.push(a);n=z1(n)}return e}function ft(r,e,t){var n=r.__className,i=IB(e,t);(n!==i||EC)&&(e==null&&!t?r.removeAttribute("class"):r.className=i,r.__className=i)}function IB(r,e){return(r??"")+(e?" "+e:"")}function dt(r,e,t){if(t){if(r.classList.contains(e))return;r.classList.add(e)}else{if(!r.classList.contains(e))return;r.classList.remove(e)}}const EB=()=>performance.now(),Va={tick:r=>requestAnimationFrame(r),now:()=>EB(),tasks:new Set};function uD(){const r=Va.now();Va.tasks.forEach(e=>{e.c(r)||(Va.tasks.delete(e),e.f())}),Va.tasks.size!==0&&Va.tick(uD)}function LB(r){let e;return Va.tasks.size===0&&Va.tick(uD),{promise:new Promise(t=>{Va.tasks.add(e={c:r,f:t})}),abort(){Va.tasks.delete(e)}}}function gp(r,e){$1(()=>{r.dispatchEvent(new CustomEvent(e))})}function kB(r){if(r==="float")return"cssFloat";if(r==="offset")return"cssOffset";if(r.startsWith("--"))return r;const e=r.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(t=>t[0].toUpperCase()+t.slice(1)).join("")}function cD(r){const e={},t=r.split(";");for(const n of t){const[i,a]=n.split(":");if(!i||a===void 0)break;const o=kB(i.trim());e[o]=a.trim()}return e}const PB=r=>r;function mp(r,e,t,n){var i=(r&gz)!==0,a=(r&mz)!==0,o=i&&a,s=(r&yz)!==0,l=o?"both":i?"in":"out",u,c=e.inert,f=e.style.overflow,h,v;function d(){var _=Nt,w=Tt;Xi(null),qi(null);try{return u??(u=t()(e,(n==null?void 0:n())??{},{direction:l}))}finally{Xi(_),qi(w)}}var g={is_global:s,in(){var _;if(e.inert=c,!i){v==null||v.abort(),(_=v==null?void 0:v.reset)==null||_.call(v);return}a||h==null||h.abort(),gp(e,"introstart"),h=a_(e,d(),v,1,()=>{gp(e,"introend"),h==null||h.abort(),h=u=void 0,e.style.overflow=f})},out(_){if(!a){_==null||_(),u=void 0;return}e.inert=!0,gp(e,"outrostart"),v=a_(e,d(),h,0,()=>{gp(e,"outroend"),_==null||_()})},stop:()=>{h==null||h.abort(),v==null||v.abort()}},p=Tt;if((p.transitions??(p.transitions=[])).push(g),i&&vp){var m=s;if(!m){for(var y=p.parent;y&&y.f&Es;)for(;(y=y.parent)&&!(y.f&Qd););m=!y||(y.f&_C)!==0}m&&Oa(()=>{Hr(()=>g.in())})}}function a_(r,e,t,n,i){var a=n===1;if(yu(e)){var o,s=!1;return kf(()=>{if(!s){var p=e({direction:a?"in":"out"});o=a_(r,p,t,n,i)}}),{abort:()=>{s=!0,o==null||o.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(t==null||t.deactivate(),!(e!=null&&e.duration))return i(),{abort:Pe,deactivate:Pe,reset:Pe,t:()=>n};const{delay:l=0,css:u,tick:c,easing:f=PB}=e;var h=[];if(a&&t===void 0&&(c&&c(0,1),u)){var v=cD(u(0,1));h.push(v,v)}var d=()=>1-n,g=r.animate(h,{duration:l});return g.onfinish=()=>{var p=(t==null?void 0:t.t())??1-n;t==null||t.abort();var m=n-p,y=e.duration*Math.abs(m),_=[];if(y>0){var w=!1;if(u)for(var b=Math.ceil(y/16.666666666666668),x=0;x<=b;x+=1){var S=p+m*f(x/b),T=cD(u(S,1-S));_.push(T),w||(w=T.overflow==="hidden")}w&&(r.style.overflow="hidden"),d=()=>{var C=g.currentTime;return p+m*f(C/y)},c&&LB(()=>{if(g.playState!=="running")return!1;var C=d();return c(C,1-C),!0})}g=r.animate(_,{duration:y,fill:"forwards"}),g.onfinish=()=>{d=()=>n,c==null||c(n,1-n),i()}},{abort:()=>{g&&(g.cancel(),g.effect=null,g.onfinish=Pe)},deactivate:()=>{i=Pe},reset:()=>{n===0&&(c==null||c(1,0))},t:()=>d()}}function o_(r,e,t=e){var n=Su();eD(r,"input",i=>{var a=i?r.defaultValue:r.value;if(a=s_(r)?l_(a):a,t(a),n&&a!==(a=e())){var o=r.selectionStart,s=r.selectionEnd;r.value=a??"",s!==null&&(r.selectionStart=o,r.selectionEnd=Math.min(s,r.value.length))}}),Hr(e)==null&&r.value&&t(s_(r)?l_(r.value):r.value),Ra(()=>{var i=e();s_(r)&&i===l_(r.value)||r.type==="date"&&!i&&!r.value||i!==r.value&&(r.value=i??"")})}function fD(r,e,t=e){eD(r,"change",n=>{var i=n?r.defaultChecked:r.checked;t(i)}),Hr(e)==null&&t(r.checked),Ra(()=>{var n=e();r.checked=!!n})}function s_(r){var e=r.type;return e==="number"||e==="range"}function l_(r){return r===""?null:+r}function hD(r,e,t){var n=Pa(r,e);n&&n.set&&(r[e]=t,q1(()=>{r[e]=null}))}function vD(r,e){return r===e||(r==null?void 0:r[bo])===e}function za(r={},e,t,n){return Oa(()=>{var i,a;return Ra(()=>{i=a,a=[],Hr(()=>{r!==t(...a)&&(e(r,...a),i&&vD(t(...i),r)&&e(null,...i))})}),()=>{kf(()=>{a&&vD(t(...a),r)&&e(null,...a)})}}),r}function Au(r){return function(...e){var t=e[0];return t.stopPropagation(),r==null?void 0:r.apply(this,e)}}function Rs(r){return function(...e){var t=e[0];return t.preventDefault(),r==null?void 0:r.apply(this,e)}}function Hf(r=!1){const e=yt,t=e.l.u;if(!t)return;let n=()=>ge(e.s);if(r){let i=0,a={};const o=q(()=>{let s=!1;const l=e.s;for(const u in l)l[u]!==a[u]&&(a[u]=l[u],s=!0);return s&&i++,i});n=()=>D(o)}t.b.length&&Rf(()=>{dD(e,n),B1(t.b)}),Ht(()=>{const i=Hr(()=>t.m.map(Dz));return()=>{for(const a of i)typeof a=="function"&&a()}}),t.a.length&&Ht(()=>{dD(e,n),B1(t.a)})}function dD(r,e){if(r.l.s)for(const t of r.l.s)D(t);e()}function $r(r,e){var a;var t=(a=r.$$events)==null?void 0:a[e.type],n=Lf(t)?t.slice():t==null?[]:[t];for(var i of n)i.call(this,e)}function Cu(r){yt===null&&Bf(),_u&&yt.l!==null?gD(yt).m.push(r):Ht(()=>{const e=Hr(r);if(typeof e=="function")return e})}function pD(r){yt===null&&Bf(),Cu(()=>()=>Hr(r))}function NB(r,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(r,{detail:e,bubbles:t,cancelable:n})}function yp(){const r=yt;return r===null&&Bf(),(e,t,n)=>{var a;const i=(a=r.s.$$events)==null?void 0:a[e];if(i){const o=Lf(i)?i.slice():[i],s=NB(e,t,n);for(const l of o)l.call(r.x,s);return!s.defaultPrevented}return!0}}function OB(r){yt===null&&Bf(),yt.l===null&&Nz(),gD(yt).b.push(r)}function gD(r){var e=r.l;return e.u??(e.u={a:[],b:[],m:[]})}let _p=!1;function RB(r){var e=_p;try{return _p=!1,[r(),_p]}finally{_p=e}}const VB={get(r,e){if(!r.exclude.includes(e))return r.props[e]},set(r,e){return!1},getOwnPropertyDescriptor(r,e){if(!r.exclude.includes(e)&&e in r.props)return{enumerable:!0,configurable:!0,value:r.props[e]}},has(r,e){return r.exclude.includes(e)?!1:e in r.props},ownKeys(r){return Reflect.ownKeys(r.props).filter(e=>!r.exclude.includes(e))}};function tt(r,e,t){return new Proxy({props:r,exclude:e},VB)}const zB={get(r,e){if(!r.exclude.includes(e))return D(r.version),e in r.special?r.special[e]():r.props[e]},set(r,e,t){return e in r.special||(r.special[e]=R({get[e](){return r.props[e]}},e,gC)),r.special[e](t),CC(r.version),!0},getOwnPropertyDescriptor(r,e){if(!r.exclude.includes(e)&&e in r.props)return{enumerable:!0,configurable:!0,value:r.props[e]}},deleteProperty(r,e){return r.exclude.includes(e)||(r.exclude.push(e),CC(r.version)),!0},has(r,e){return r.exclude.includes(e)?!1:e in r.props},ownKeys(r){return Reflect.ownKeys(r.props).filter(e=>!r.exclude.includes(e))}};function Du(r,e){return new Proxy({props:r,exclude:e,special:{},version:ar(0)},zB)}const BB={get(r,e){let t=r.props.length;for(;t--;){let n=r.props[t];if(yu(n)&&(n=n()),typeof n=="object"&&n!==null&&e in n)return n[e]}},set(r,e,t){let n=r.props.length;for(;n--;){let i=r.props[n];yu(i)&&(i=i());const a=Pa(i,e);if(a&&a.set)return a.set(t),!0}return!1},getOwnPropertyDescriptor(r,e){let t=r.props.length;for(;t--;){let n=r.props[t];if(yu(n)&&(n=n()),typeof n=="object"&&n!==null&&e in n){const i=Pa(n,e);return i&&!i.configurable&&(i.configurable=!0),i}}},has(r,e){if(e===bo||e===bC)return!1;for(let t of r.props)if(yu(t)&&(t=t()),t!=null&&e in t)return!0;return!1},ownKeys(r){const e=[];for(let t of r.props){yu(t)&&(t=t());for(const n in t)e.includes(n)||e.push(n)}return e}};function An(...r){return new Proxy({props:r},BB)}function R(r,e,t,n){var x;var i=(t&hz)!==0,a=!_u||(t&vz)!==0,o=(t&dz)!==0,s=(t&pz)!==0,l=!1,u;o?[u,l]=RB(()=>r[e]):u=r[e];var c=bo in r||bC in r,f=o&&(((x=Pa(r,e))==null?void 0:x.set)??(c&&e in r&&(S=>r[e]=S)))||void 0,h=n,v=!0,d=!1,g=()=>(d=!0,v&&(v=!1,s?h=Hr(n):h=n),h);u===void 0&&n!==void 0&&(f&&a&&Oz(),u=g(),f&&f(u));var p;if(a)p=()=>{var S=r[e];return S===void 0?g():(v=!0,d=!1,S)};else{var m=(i?q:kr)(()=>r[e]);m.f|=wz,p=()=>{var S=D(m);return S!==void 0&&(h=void 0),S===void 0?h:S}}if(!(t&gC))return p;if(f){var y=r.$$legacy;return function(S,T){return arguments.length>0?((!a||!T||y||l)&&f(T?p():S),S):p()}}var _=!1,w=W1(u),b=q(()=>{var S=p(),T=D(w);return _?(_=!1,T):w.v=S});return i||(b.equals=G1),function(S,T){if(arguments.length>0){const C=T?D(b):a&&o?Ee(S):S;return b.equals(C)||(_=!0,ie(w,C),d&&h!==void 0&&(h=C),Hr(()=>D(b))),S}return D(b)}}function FB(r){Rf(()=>{r();var e=Tt;e.f&Ui&&(Zz(),zn(e,wo))})}class Vs extends Error{}class HB extends Vs{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class GB extends Vs{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class WB extends Vs{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Mu extends Vs{}class mD extends Vs{constructor(e){super(`Invalid unit ${e}`)}}class Gr extends Vs{}class Mo extends Vs{constructor(){super("Zone is an abstract class")}}const De="numeric",yi="short",Cn="long",wp={year:De,month:De,day:De},yD={year:De,month:yi,day:De},ZB={year:De,month:yi,day:De,weekday:yi},_D={year:De,month:Cn,day:De},wD={year:De,month:Cn,day:De,weekday:Cn},bD={hour:De,minute:De},xD={hour:De,minute:De,second:De},SD={hour:De,minute:De,second:De,timeZoneName:yi},TD={hour:De,minute:De,second:De,timeZoneName:Cn},AD={hour:De,minute:De,hourCycle:"h23"},CD={hour:De,minute:De,second:De,hourCycle:"h23"},DD={hour:De,minute:De,second:De,hourCycle:"h23",timeZoneName:yi},MD={hour:De,minute:De,second:De,hourCycle:"h23",timeZoneName:Cn},ID={year:De,month:De,day:De,hour:De,minute:De},ED={year:De,month:De,day:De,hour:De,minute:De,second:De},LD={year:De,month:yi,day:De,hour:De,minute:De},kD={year:De,month:yi,day:De,hour:De,minute:De,second:De},UB={year:De,month:yi,day:De,weekday:yi,hour:De,minute:De},PD={year:De,month:Cn,day:De,hour:De,minute:De,timeZoneName:yi},ND={year:De,month:Cn,day:De,hour:De,minute:De,second:De,timeZoneName:yi},OD={year:De,month:Cn,day:De,weekday:Cn,hour:De,minute:De,timeZoneName:Cn},RD={year:De,month:Cn,day:De,weekday:Cn,hour:De,minute:De,second:De,timeZoneName:Cn};class Gf{get type(){throw new Mo}get name(){throw new Mo}get ianaName(){return this.name}get isUniversal(){throw new Mo}offsetName(e,t){throw new Mo}formatOffset(e,t){throw new Mo}offset(e){throw new Mo}equals(e){throw new Mo}get isValid(){throw new Mo}}let u_=null;class bp extends Gf{static get instance(){return u_===null&&(u_=new bp),u_}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return sM(e,t,n)}formatOffset(e,t){return Yf(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let xp={};function YB(r){return xp[r]||(xp[r]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),xp[r]}const XB={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function qB(r,e){const t=r.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(t),[,i,a,o,s,l,u,c]=n;return[o,i,a,s,l,u,c]}function jB(r,e){const t=r.formatToParts(e),n=[];for(let i=0;i<t.length;i++){const{type:a,value:o}=t[i],s=XB[a];a==="era"?n[s]=o:rt(s)||(n[s]=parseInt(o,10))}return n}let Sp={};class Ba extends Gf{static create(e){return Sp[e]||(Sp[e]=new Ba(e)),Sp[e]}static resetCache(){Sp={},xp={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Ba.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return sM(e,t,n,this.name)}formatOffset(e,t){return Yf(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=YB(this.name);let[i,a,o,s,l,u,c]=n.formatToParts?jB(n,t):qB(n,t);s==="BC"&&(i=-Math.abs(i)+1);const h=Mp({year:i,month:a,day:o,hour:l===24?0:l,minute:u,second:c,millisecond:0});let v=+t;const d=v%1e3;return v-=d>=0?d:1e3+d,(h-v)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let VD={};function KB(r,e={}){const t=JSON.stringify([r,e]);let n=VD[t];return n||(n=new Intl.ListFormat(r,e),VD[t]=n),n}let c_={};function f_(r,e={}){const t=JSON.stringify([r,e]);let n=c_[t];return n||(n=new Intl.DateTimeFormat(r,e),c_[t]=n),n}let h_={};function JB(r,e={}){const t=JSON.stringify([r,e]);let n=h_[t];return n||(n=new Intl.NumberFormat(r,e),h_[t]=n),n}let v_={};function QB(r,e={}){const{base:t,...n}=e,i=JSON.stringify([r,n]);let a=v_[i];return a||(a=new Intl.RelativeTimeFormat(r,e),v_[i]=a),a}let Wf=null;function $B(){return Wf||(Wf=new Intl.DateTimeFormat().resolvedOptions().locale,Wf)}let zD={};function eF(r){let e=zD[r];if(!e){const t=new Intl.Locale(r);e="getWeekInfo"in t?t.getWeekInfo():t.weekInfo,zD[r]=e}return e}function tF(r){const e=r.indexOf("-x-");e!==-1&&(r=r.substring(0,e));const t=r.indexOf("-u-");if(t===-1)return[r];{let n,i;try{n=f_(r).resolvedOptions(),i=r}catch{const l=r.substring(0,t);n=f_(l).resolvedOptions(),i=l}const{numberingSystem:a,calendar:o}=n;return[i,a,o]}}function rF(r,e,t){return(t||e)&&(r.includes("-u-")||(r+="-u"),t&&(r+=`-ca-${t}`),e&&(r+=`-nu-${e}`)),r}function nF(r){const e=[];for(let t=1;t<=12;t++){const n=We.utc(2009,t,1);e.push(r(n))}return e}function iF(r){const e=[];for(let t=1;t<=7;t++){const n=We.utc(2016,11,13+t);e.push(r(n))}return e}function Tp(r,e,t,n){const i=r.listingMode();return i==="error"?null:i==="en"?t(e):n(e)}function aF(r){return r.numberingSystem&&r.numberingSystem!=="latn"?!1:r.numberingSystem==="latn"||!r.locale||r.locale.startsWith("en")||new Intl.DateTimeFormat(r.intl).resolvedOptions().numberingSystem==="latn"}class oF{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:i,floor:a,...o}=n;if(!t||Object.keys(o).length>0){const s={useGrouping:!1,...n};n.padTo>0&&(s.minimumIntegerDigits=n.padTo),this.inf=JB(e,s)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):b_(e,3);return pr(t,this.padTo)}}}class sF{constructor(e,t,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const o=-1*(e.offset/60),s=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&Ba.create(s).valid?(i=s,this.dt=e):(i="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const a={...this.opts};a.timeZone=a.timeZone||i,this.dtf=f_(t,a)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(t=>{if(t.type==="timeZoneName"){const n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:n}}else return t}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class lF{constructor(e,t,n){this.opts={style:"long",...n},!t&&nM()&&(this.rtf=QB(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):LF(t,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const uF={firstDay:1,minimalDays:4,weekend:[6,7]};class It{static fromOpts(e){return It.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,i,a=!1){const o=e||er.defaultLocale,s=o||(a?"en-US":$B()),l=t||er.defaultNumberingSystem,u=n||er.defaultOutputCalendar,c=__(i)||er.defaultWeekSettings;return new It(s,l,u,c,o)}static resetCache(){Wf=null,c_={},h_={},v_={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:i}={}){return It.create(e,t,n,i)}constructor(e,t,n,i,a){const[o,s,l]=tF(e);this.locale=o,this.numberingSystem=t||s||null,this.outputCalendar=n||l||null,this.weekSettings=i,this.intl=rF(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=aF(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:It.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,__(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Tp(this,e,cM,()=>{const n=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=nF(a=>this.extract(a,n,"month"))),this.monthsCache[i][e]})}weekdays(e,t=!1){return Tp(this,e,vM,()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=iF(a=>this.extract(a,n,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return Tp(this,void 0,()=>dM,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[We.utc(2016,11,13,9),We.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Tp(this,e,pM,()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[We.utc(-40,1,1),We.utc(2017,1,1)].map(n=>this.extract(n,t,"era"))),this.eraCache[e]})}extract(e,t,n){const i=this.dtFormatter(e,t),a=i.formatToParts(),o=a.find(s=>s.type.toLowerCase()===n);return o?o.value:null}numberFormatter(e={}){return new oF(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new sF(e,this.intl,t)}relFormatter(e={}){return new lF(this.intl,this.isEnglish(),e)}listFormatter(e={}){return KB(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:iM()?eF(this.locale):uF}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let d_=null;class en extends Gf{static get utcInstance(){return d_===null&&(d_=new en(0)),d_}static instance(e){return e===0?en.utcInstance:new en(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new en(Ip(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Yf(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Yf(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Yf(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class cF extends Gf{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Io(r,e){if(rt(r)||r===null)return e;if(r instanceof Gf)return r;if(gF(r)){const t=r.toLowerCase();return t==="default"?e:t==="local"||t==="system"?bp.instance:t==="utc"||t==="gmt"?en.utcInstance:en.parseSpecifier(t)||Ba.create(r)}else return Eo(r)?en.instance(r):typeof r=="object"&&"offset"in r&&typeof r.offset=="function"?r:new cF(r)}const p_={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},BD={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},fF=p_.hanidec.replace(/[\[|\]]/g,"").split("");function hF(r){let e=parseInt(r,10);if(isNaN(e)){e="";for(let t=0;t<r.length;t++){const n=r.charCodeAt(t);if(r[t].search(p_.hanidec)!==-1)e+=fF.indexOf(r[t]);else for(const i in BD){const[a,o]=BD[i];n>=a&&n<=o&&(e+=n-a)}}return parseInt(e,10)}else return e}let Iu={};function vF(){Iu={}}function _i({numberingSystem:r},e=""){const t=r||"latn";return Iu[t]||(Iu[t]={}),Iu[t][e]||(Iu[t][e]=new RegExp(`${p_[t]}${e}`)),Iu[t][e]}let FD=()=>Date.now(),HD="system",GD=null,WD=null,ZD=null,UD=60,YD,XD=null;class er{static get now(){return FD}static set now(e){FD=e}static set defaultZone(e){HD=e}static get defaultZone(){return Io(HD,bp.instance)}static get defaultLocale(){return GD}static set defaultLocale(e){GD=e}static get defaultNumberingSystem(){return WD}static set defaultNumberingSystem(e){WD=e}static get defaultOutputCalendar(){return ZD}static set defaultOutputCalendar(e){ZD=e}static get defaultWeekSettings(){return XD}static set defaultWeekSettings(e){XD=__(e)}static get twoDigitCutoffYear(){return UD}static set twoDigitCutoffYear(e){UD=e%100}static get throwOnInvalid(){return YD}static set throwOnInvalid(e){YD=e}static resetCaches(){It.resetCache(),Ba.resetCache(),We.resetCache(),vF()}}class wi{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const qD=[0,31,59,90,120,151,181,212,243,273,304,334],jD=[0,31,60,91,121,152,182,213,244,274,305,335];function Hn(r,e){return new wi("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${r}, which is invalid`)}function g_(r,e,t){const n=new Date(Date.UTC(r,e-1,t));r<100&&r>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const i=n.getUTCDay();return i===0?7:i}function KD(r,e,t){return t+(Zf(r)?jD:qD)[e-1]}function JD(r,e){const t=Zf(r)?jD:qD,n=t.findIndex(a=>a<e),i=e-t[n];return{month:n+1,day:i}}function m_(r,e){return(r-e+7)%7+1}function Ap(r,e=4,t=1){const{year:n,month:i,day:a}=r,o=KD(n,i,a),s=m_(g_(n,i,a),t);let l=Math.floor((o-s+14-e)/7),u;return l<1?(u=n-1,l=Uf(u,e,t)):l>Uf(n,e,t)?(u=n+1,l=1):u=n,{weekYear:u,weekNumber:l,weekday:s,...Lp(r)}}function QD(r,e=4,t=1){const{weekYear:n,weekNumber:i,weekday:a}=r,o=m_(g_(n,1,e),t),s=Lu(n);let l=i*7+a-o-7+e,u;l<1?(u=n-1,l+=Lu(u)):l>s?(u=n+1,l-=Lu(n)):u=n;const{month:c,day:f}=JD(u,l);return{year:u,month:c,day:f,...Lp(r)}}function y_(r){const{year:e,month:t,day:n}=r,i=KD(e,t,n);return{year:e,ordinal:i,...Lp(r)}}function $D(r){const{year:e,ordinal:t}=r,{month:n,day:i}=JD(e,t);return{year:e,month:n,day:i,...Lp(r)}}function eM(r,e){if(!rt(r.localWeekday)||!rt(r.localWeekNumber)||!rt(r.localWeekYear)){if(!rt(r.weekday)||!rt(r.weekNumber)||!rt(r.weekYear))throw new Mu("Cannot mix locale-based week fields with ISO-based week fields");return rt(r.localWeekday)||(r.weekday=r.localWeekday),rt(r.localWeekNumber)||(r.weekNumber=r.localWeekNumber),rt(r.localWeekYear)||(r.weekYear=r.localWeekYear),delete r.localWeekday,delete r.localWeekNumber,delete r.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function dF(r,e=4,t=1){const n=Cp(r.weekYear),i=Gn(r.weekNumber,1,Uf(r.weekYear,e,t)),a=Gn(r.weekday,1,7);return n?i?a?!1:Hn("weekday",r.weekday):Hn("week",r.weekNumber):Hn("weekYear",r.weekYear)}function pF(r){const e=Cp(r.year),t=Gn(r.ordinal,1,Lu(r.year));return e?t?!1:Hn("ordinal",r.ordinal):Hn("year",r.year)}function tM(r){const e=Cp(r.year),t=Gn(r.month,1,12),n=Gn(r.day,1,Dp(r.year,r.month));return e?t?n?!1:Hn("day",r.day):Hn("month",r.month):Hn("year",r.year)}function rM(r){const{hour:e,minute:t,second:n,millisecond:i}=r,a=Gn(e,0,23)||e===24&&t===0&&n===0&&i===0,o=Gn(t,0,59),s=Gn(n,0,59),l=Gn(i,0,999);return a?o?s?l?!1:Hn("millisecond",i):Hn("second",n):Hn("minute",t):Hn("hour",e)}function rt(r){return typeof r>"u"}function Eo(r){return typeof r=="number"}function Cp(r){return typeof r=="number"&&r%1===0}function gF(r){return typeof r=="string"}function mF(r){return Object.prototype.toString.call(r)==="[object Date]"}function nM(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function iM(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function yF(r){return Array.isArray(r)?r:[r]}function aM(r,e,t){if(r.length!==0)return r.reduce((n,i)=>{const a=[e(i),i];return n&&t(n[0],a[0])===n[0]?n:a},null)[1]}function _F(r,e){return e.reduce((t,n)=>(t[n]=r[n],t),{})}function Eu(r,e){return Object.prototype.hasOwnProperty.call(r,e)}function __(r){if(r==null)return null;if(typeof r!="object")throw new Gr("Week settings must be an object");if(!Gn(r.firstDay,1,7)||!Gn(r.minimalDays,1,7)||!Array.isArray(r.weekend)||r.weekend.some(e=>!Gn(e,1,7)))throw new Gr("Invalid week settings");return{firstDay:r.firstDay,minimalDays:r.minimalDays,weekend:Array.from(r.weekend)}}function Gn(r,e,t){return Cp(r)&&r>=e&&r<=t}function wF(r,e){return r-e*Math.floor(r/e)}function pr(r,e=2){const t=r<0;let n;return t?n="-"+(""+-r).padStart(e,"0"):n=(""+r).padStart(e,"0"),n}function Lo(r){if(!(rt(r)||r===null||r===""))return parseInt(r,10)}function zs(r){if(!(rt(r)||r===null||r===""))return parseFloat(r)}function w_(r){if(!(rt(r)||r===null||r==="")){const e=parseFloat("0."+r)*1e3;return Math.floor(e)}}function b_(r,e,t=!1){const n=10**e;return(t?Math.trunc:Math.round)(r*n)/n}function Zf(r){return r%4===0&&(r%100!==0||r%400===0)}function Lu(r){return Zf(r)?366:365}function Dp(r,e){const t=wF(e-1,12)+1,n=r+(e-t)/12;return t===2?Zf(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}function Mp(r){let e=Date.UTC(r.year,r.month-1,r.day,r.hour,r.minute,r.second,r.millisecond);return r.year<100&&r.year>=0&&(e=new Date(e),e.setUTCFullYear(r.year,r.month-1,r.day)),+e}function oM(r,e,t){return-m_(g_(r,1,e),t)+e-1}function Uf(r,e=4,t=1){const n=oM(r,e,t),i=oM(r+1,e,t);return(Lu(r)-n+i)/7}function x_(r){return r>99?r:r>er.twoDigitCutoffYear?1900+r:2e3+r}function sM(r,e,t,n=null){const i=new Date(r),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(a.timeZone=n);const o={timeZoneName:e,...a},s=new Intl.DateTimeFormat(t,o).formatToParts(i).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function Ip(r,e){let t=parseInt(r,10);Number.isNaN(t)&&(t=0);const n=parseInt(e,10)||0,i=t<0||Object.is(t,-0)?-n:n;return t*60+i}function lM(r){const e=Number(r);if(typeof r=="boolean"||r===""||Number.isNaN(e))throw new Gr(`Invalid unit value ${r}`);return e}function Ep(r,e){const t={};for(const n in r)if(Eu(r,n)){const i=r[n];if(i==null)continue;t[e(n)]=lM(i)}return t}function Yf(r,e){const t=Math.trunc(Math.abs(r/60)),n=Math.trunc(Math.abs(r%60)),i=r>=0?"+":"-";switch(e){case"short":return`${i}${pr(t,2)}:${pr(n,2)}`;case"narrow":return`${i}${t}${n>0?`:${n}`:""}`;case"techie":return`${i}${pr(t,2)}${pr(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Lp(r){return _F(r,["hour","minute","second","millisecond"])}const bF=["January","February","March","April","May","June","July","August","September","October","November","December"],uM=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],xF=["J","F","M","A","M","J","J","A","S","O","N","D"];function cM(r){switch(r){case"narrow":return[...xF];case"short":return[...uM];case"long":return[...bF];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const fM=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],hM=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],SF=["M","T","W","T","F","S","S"];function vM(r){switch(r){case"narrow":return[...SF];case"short":return[...hM];case"long":return[...fM];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const dM=["AM","PM"],TF=["Before Christ","Anno Domini"],AF=["BC","AD"],CF=["B","A"];function pM(r){switch(r){case"narrow":return[...CF];case"short":return[...AF];case"long":return[...TF];default:return null}}function DF(r){return dM[r.hour<12?0:1]}function MF(r,e){return vM(e)[r.weekday-1]}function IF(r,e){return cM(e)[r.month-1]}function EF(r,e){return pM(e)[r.year<0?0:1]}function LF(r,e,t="always",n=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=["hours","minutes","seconds"].indexOf(r)===-1;if(t==="auto"&&a){const f=r==="days";switch(e){case 1:return f?"tomorrow":`next ${i[r][0]}`;case-1:return f?"yesterday":`last ${i[r][0]}`;case 0:return f?"today":`this ${i[r][0]}`}}const o=Object.is(e,-0)||e<0,s=Math.abs(e),l=s===1,u=i[r],c=n?l?u[1]:u[2]||u[1]:l?i[r][0]:r;return o?`${s} ${c} ago`:`in ${s} ${c}`}function gM(r,e){let t="";for(const n of r)n.literal?t+=n.val:t+=e(n.val);return t}const kF={D:wp,DD:yD,DDD:_D,DDDD:wD,t:bD,tt:xD,ttt:SD,tttt:TD,T:AD,TT:CD,TTT:DD,TTTT:MD,f:ID,ff:LD,fff:PD,ffff:OD,F:ED,FF:kD,FFF:ND,FFFF:RD};class Wr{static create(e,t={}){return new Wr(e,t)}static parseFormat(e){let t=null,n="",i=!1;const a=[];for(let o=0;o<e.length;o++){const s=e.charAt(o);s==="'"?(n.length>0&&a.push({literal:i||/^\s+$/.test(n),val:n}),t=null,n="",i=!i):i||s===t?n+=s:(n.length>0&&a.push({literal:/^\s+$/.test(n),val:n}),n=s,t=s)}return n.length>0&&a.push({literal:i||/^\s+$/.test(n),val:n}),a}static macroTokenToFormatOpts(e){return kF[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return pr(e,t);const n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){const n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",a=(v,d)=>this.loc.extract(e,v,d),o=v=>e.isOffsetFixed&&e.offset===0&&v.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,v.format):"",s=()=>n?DF(e):a({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(v,d)=>n?IF(e,v):a(d?{month:v}:{month:v,day:"numeric"},"month"),u=(v,d)=>n?MF(e,v):a(d?{weekday:v}:{weekday:v,month:"long",day:"numeric"},"weekday"),c=v=>{const d=Wr.macroTokenToFormatOpts(v);return d?this.formatWithSystemDefault(e,d):v},f=v=>n?EF(e,v):a({era:v},"era"),h=v=>{switch(v){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return s();case"d":return i?a({day:"numeric"},"day"):this.num(e.day);case"dd":return i?a({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return i?a({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?a({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?a({month:"numeric"},"month"):this.num(e.month);case"MM":return i?a({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?a({year:"numeric"},"year"):this.num(e.year);case"yy":return i?a({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?a({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?a({year:"numeric"},"year"):this.num(e.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return c(v)}};return gM(Wr.parseFormat(t),h)}formatDurationFromString(e,t){const n=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=l=>u=>{const c=n(u);return c?this.num(l.get(c),u.length):u},a=Wr.parseFormat(t),o=a.reduce((l,{literal:u,val:c})=>u?l:l.concat(c),[]),s=e.shiftTo(...o.map(n).filter(l=>l));return gM(a,i(s))}}const mM=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ku(...r){const e=r.reduce((t,n)=>t+n.source,"");return RegExp(`^${e}$`)}function Pu(...r){return e=>r.reduce(([t,n,i],a)=>{const[o,s,l]=a(e,i);return[{...t,...o},s||n,l]},[{},null,1]).slice(0,2)}function Nu(r,...e){if(r==null)return[null,null];for(const[t,n]of e){const i=t.exec(r);if(i)return n(i)}return[null,null]}function yM(...r){return(e,t)=>{const n={};let i;for(i=0;i<r.length;i++)n[r[i]]=Lo(e[t+i]);return[n,null,t+i]}}const _M=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,PF=`(?:${_M.source}?(?:\\[(${mM.source})\\])?)?`,S_=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,wM=RegExp(`${S_.source}${PF}`),T_=RegExp(`(?:T${wM.source})?`),NF=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,OF=/(\d{4})-?W(\d\d)(?:-?(\d))?/,RF=/(\d{4})-?(\d{3})/,VF=yM("weekYear","weekNumber","weekDay"),zF=yM("year","ordinal"),BF=/(\d{4})-(\d\d)-(\d\d)/,bM=RegExp(`${S_.source} ?(?:${_M.source}|(${mM.source}))?`),FF=RegExp(`(?: ${bM.source})?`);function Ou(r,e,t){const n=r[e];return rt(n)?t:Lo(n)}function HF(r,e){return[{year:Ou(r,e),month:Ou(r,e+1,1),day:Ou(r,e+2,1)},null,e+3]}function Ru(r,e){return[{hours:Ou(r,e,0),minutes:Ou(r,e+1,0),seconds:Ou(r,e+2,0),milliseconds:w_(r[e+3])},null,e+4]}function Xf(r,e){const t=!r[e]&&!r[e+1],n=Ip(r[e+1],r[e+2]),i=t?null:en.instance(n);return[{},i,e+3]}function qf(r,e){const t=r[e]?Ba.create(r[e]):null;return[{},t,e+1]}const GF=RegExp(`^T?${S_.source}$`),WF=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function ZF(r){const[e,t,n,i,a,o,s,l,u]=r,c=e[0]==="-",f=l&&l[0]==="-",h=(v,d=!1)=>v!==void 0&&(d||v&&c)?-v:v;return[{years:h(zs(t)),months:h(zs(n)),weeks:h(zs(i)),days:h(zs(a)),hours:h(zs(o)),minutes:h(zs(s)),seconds:h(zs(l),l==="-0"),milliseconds:h(w_(u),f)}]}const UF={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function A_(r,e,t,n,i,a,o){const s={year:e.length===2?x_(Lo(e)):Lo(e),month:uM.indexOf(t)+1,day:Lo(n),hour:Lo(i),minute:Lo(a)};return o&&(s.second=Lo(o)),r&&(s.weekday=r.length>3?fM.indexOf(r)+1:hM.indexOf(r)+1),s}const YF=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function XF(r){const[,e,t,n,i,a,o,s,l,u,c,f]=r,h=A_(e,i,n,t,a,o,s);let v;return l?v=UF[l]:u?v=0:v=Ip(c,f),[h,new en(v)]}function qF(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const jF=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,KF=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,JF=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function xM(r){const[,e,t,n,i,a,o,s]=r;return[A_(e,i,n,t,a,o,s),en.utcInstance]}function QF(r){const[,e,t,n,i,a,o,s]=r;return[A_(e,s,t,n,i,a,o),en.utcInstance]}const $F=ku(NF,T_),eH=ku(OF,T_),tH=ku(RF,T_),rH=ku(wM),SM=Pu(HF,Ru,Xf,qf),nH=Pu(VF,Ru,Xf,qf),iH=Pu(zF,Ru,Xf,qf),aH=Pu(Ru,Xf,qf);function oH(r){return Nu(r,[$F,SM],[eH,nH],[tH,iH],[rH,aH])}function sH(r){return Nu(qF(r),[YF,XF])}function lH(r){return Nu(r,[jF,xM],[KF,xM],[JF,QF])}function uH(r){return Nu(r,[WF,ZF])}const cH=Pu(Ru);function fH(r){return Nu(r,[GF,cH])}const hH=ku(BF,FF),vH=ku(bM),dH=Pu(Ru,Xf,qf);function pH(r){return Nu(r,[hH,SM],[vH,dH])}const TM="Invalid Duration",AM={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},gH={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...AM},Wn=146097/400,Vu=146097/4800,mH={years:{quarters:4,months:12,weeks:Wn/7,days:Wn,hours:Wn*24,minutes:Wn*24*60,seconds:Wn*24*60*60,milliseconds:Wn*24*60*60*1e3},quarters:{months:3,weeks:Wn/28,days:Wn/4,hours:Wn*24/4,minutes:Wn*24*60/4,seconds:Wn*24*60*60/4,milliseconds:Wn*24*60*60*1e3/4},months:{weeks:Vu/7,days:Vu,hours:Vu*24,minutes:Vu*24*60,seconds:Vu*24*60*60,milliseconds:Vu*24*60*60*1e3},...AM},Bs=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],yH=Bs.slice(0).reverse();function ko(r,e,t=!1){const n={values:t?e.values:{...r.values,...e.values||{}},loc:r.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||r.conversionAccuracy,matrix:e.matrix||r.matrix};return new _t(n)}function CM(r,e){let t=e.milliseconds??0;for(const n of yH.slice(1))e[n]&&(t+=e[n]*r[n].milliseconds);return t}function DM(r,e){const t=CM(r,e)<0?-1:1;Bs.reduceRight((n,i)=>{if(rt(e[i]))return n;if(n){const a=e[n]*t,o=r[i][n],s=Math.floor(a/o);e[i]+=s*t,e[n]-=s*o*t}return i},null),Bs.reduce((n,i)=>{if(rt(e[i]))return n;if(n){const a=e[n]%1;e[n]-=a,e[i]+=a*r[n][i]}return i},null)}function _H(r){const e={};for(const[t,n]of Object.entries(r))n!==0&&(e[t]=n);return e}class _t{constructor(e){const t=e.conversionAccuracy==="longterm"||!1;let n=t?mH:gH;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||It.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return _t.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!="object")throw new Gr(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new _t({values:Ep(e,_t.normalizeUnit),loc:It.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(Eo(e))return _t.fromMillis(e);if(_t.isDuration(e))return e;if(typeof e=="object")return _t.fromObject(e);throw new Gr(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=uH(e);return n?_t.fromObject(n,t):_t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=fH(e);return n?_t.fromObject(n,t):_t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new Gr("need to specify a reason the Duration is invalid");const n=e instanceof wi?e:new wi(e,t);if(er.throwOnInvalid)throw new WB(n);return new _t({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!t)throw new mD(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:t.round!==!1&&t.floor!==!1};return this.isValid?Wr.create(this.loc,n).formatDurationFromString(this,e):TM}toHuman(e={}){if(!this.isValid)return TM;const t=Bs.map(n=>{const i=this.values[n];return rt(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(i)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=b_(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},We.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?CM(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=_t.fromDurationLike(e),n={};for(const i of Bs)(Eu(t.values,i)||Eu(this.values,i))&&(n[i]=t.get(i)+this.get(i));return ko(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=_t.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=lM(e(this.values[n],n));return ko(this,{values:t},!0)}get(e){return this[_t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...Ep(e,_t.normalizeUnit)};return ko(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:i}={}){const o={loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:i,conversionAccuracy:n};return ko(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return DM(this.matrix,e),ko(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=_H(this.normalize().shiftToAll().toObject());return ko(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>_t.normalizeUnit(o));const t={},n={},i=this.toObject();let a;for(const o of Bs)if(e.indexOf(o)>=0){a=o;let s=0;for(const u in n)s+=this.matrix[u][o]*n[u],n[u]=0;Eo(i[o])&&(s+=i[o]);const l=Math.trunc(s);t[o]=l,n[o]=(s*1e3-l*1e3)/1e3}else Eo(i[o])&&(n[o]=i[o]);for(const o in n)n[o]!==0&&(t[a]+=o===a?n[o]:n[o]/this.matrix[a][o]);return DM(this.matrix,t),ko(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return ko(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(const n of Bs)if(!t(this.values[n],e.values[n]))return!1;return!0}}const zu="Invalid Interval";function wH(r,e){return!r||!r.isValid?tr.invalid("missing or invalid start"):!e||!e.isValid?tr.invalid("missing or invalid end"):e<r?tr.invalid("end before start",`The end of an interval must be after its start, but you had start=${r.toISO()} and end=${e.toISO()}`):null}class tr{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new Gr("need to specify a reason the Interval is invalid");const n=e instanceof wi?e:new wi(e,t);if(er.throwOnInvalid)throw new GB(n);return new tr({invalid:n})}static fromDateTimes(e,t){const n=Kf(e),i=Kf(t),a=wH(n,i);return a??new tr({start:n,end:i})}static after(e,t){const n=_t.fromDurationLike(t),i=Kf(e);return tr.fromDateTimes(i,i.plus(n))}static before(e,t){const n=_t.fromDurationLike(t),i=Kf(e);return tr.fromDateTimes(i.minus(n),i)}static fromISO(e,t){const[n,i]=(e||"").split("/",2);if(n&&i){let a,o;try{a=We.fromISO(n,t),o=a.isValid}catch{o=!1}let s,l;try{s=We.fromISO(i,t),l=s.isValid}catch{l=!1}if(o&&l)return tr.fromDateTimes(a,s);if(o){const u=_t.fromISO(i,t);if(u.isValid)return tr.after(a,u)}else if(l){const u=_t.fromISO(n,t);if(u.isValid)return tr.before(s,u)}}return tr.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const n=this.start.startOf(e,t);let i;return t!=null&&t.useLocaleWeeks?i=this.end.reconfigure({locale:n.locale}):i=this.end,i=i.startOf(e,t),Math.floor(i.diff(n,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:t}={}){return this.isValid?tr.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(Kf).filter(o=>this.contains(o)).sort((o,s)=>o.toMillis()-s.toMillis()),n=[];let{s:i}=this,a=0;for(;i<this.e;){const o=t[a]||this.e,s=+o>+this.e?this.e:o;n.push(tr.fromDateTimes(i,s)),i=s,a+=1}return n}splitBy(e){const t=_t.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0)return[];let{s:n}=this,i=1,a;const o=[];for(;n<this.e;){const s=this.start.plus(t.mapUnits(l=>l*i));a=+s>+this.e?this.e:s,o.push(tr.fromDateTimes(n,a)),n=a,i+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:tr.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return tr.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort((i,a)=>i.s-a.s).reduce(([i,a],o)=>a?a.overlaps(o)||a.abutsStart(o)?[i,a.union(o)]:[i.concat([a]),o]:[i,o],[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const i=[],a=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...a),s=o.sort((l,u)=>l.time-u.time);for(const l of s)n+=l.type==="s"?1:-1,n===1?t=l.time:(t&&+t!=+l.time&&i.push(tr.fromDateTimes(t,l.time)),t=null);return tr.merge(i)}difference(...e){return tr.xor([this].concat(e)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:zu}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=wp,t={}){return this.isValid?Wr.create(this.s.loc.clone(t),e).formatInterval(this):zu}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:zu}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:zu}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:zu}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:zu}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):_t.invalid(this.invalidReason)}mapEndpoints(e){return tr.fromDateTimes(e(this.s),e(this.e))}}let kp=class{static hasDST(e=er.defaultZone){const t=We.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Ba.isValidZone(e)}static normalizeZone(e){return Io(e,er.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||It.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||It.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||It.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:a="gregory"}={}){return(i||It.create(t,n,a)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:a="gregory"}={}){return(i||It.create(t,n,a)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||It.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||It.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return It.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return It.create(t,null,"gregory").eras(e)}static features(){return{relative:nM(),localeWeek:iM()}}};function MM(r,e){const t=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=t(e)-t(r);return Math.floor(_t.fromMillis(n).as("days"))}function bH(r,e,t){const n=[["years",(l,u)=>u.year-l.year],["quarters",(l,u)=>u.quarter-l.quarter+(u.year-l.year)*4],["months",(l,u)=>u.month-l.month+(u.year-l.year)*12],["weeks",(l,u)=>{const c=MM(l,u);return(c-c%7)/7}],["days",MM]],i={},a=r;let o,s;for(const[l,u]of n)t.indexOf(l)>=0&&(o=l,i[l]=u(r,e),s=a.plus(i),s>e?(i[l]--,r=a.plus(i),r>e&&(s=r,i[l]--,r=a.plus(i))):r=s);return[r,i,s,o]}function xH(r,e,t,n){let[i,a,o,s]=bH(r,e,t);const l=e-i,u=t.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);u.length===0&&(o<e&&(o=i.plus({[s]:1})),o!==i&&(a[s]=(a[s]||0)+l/(o-i)));const c=_t.fromObject(a,n);return u.length>0?_t.fromMillis(l,n).shiftTo(...u).plus(c):c}const SH="missing Intl.DateTimeFormat.formatToParts support";function Ct(r,e=t=>t){return{regex:r,deser:([t])=>e(hF(t))}}const IM="[ ]",EM=new RegExp(IM,"g");function TH(r){return r.replace(/\./g,"\\.?").replace(EM,IM)}function LM(r){return r.replace(/\./g,"").replace(EM," ").toLowerCase()}function bi(r,e){return r===null?null:{regex:RegExp(r.map(TH).join("|")),deser:([t])=>r.findIndex(n=>LM(t)===LM(n))+e}}function kM(r,e){return{regex:r,deser:([,t,n])=>Ip(t,n),groups:e}}function Pp(r){return{regex:r,deser:([e])=>e}}function AH(r){return r.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function CH(r,e){const t=_i(e),n=_i(e,"{2}"),i=_i(e,"{3}"),a=_i(e,"{4}"),o=_i(e,"{6}"),s=_i(e,"{1,2}"),l=_i(e,"{1,3}"),u=_i(e,"{1,6}"),c=_i(e,"{1,9}"),f=_i(e,"{2,4}"),h=_i(e,"{4,6}"),v=p=>({regex:RegExp(AH(p.val)),deser:([m])=>m,literal:!0}),g=(p=>{if(r.literal)return v(p);switch(p.val){case"G":return bi(e.eras("short"),0);case"GG":return bi(e.eras("long"),0);case"y":return Ct(u);case"yy":return Ct(f,x_);case"yyyy":return Ct(a);case"yyyyy":return Ct(h);case"yyyyyy":return Ct(o);case"M":return Ct(s);case"MM":return Ct(n);case"MMM":return bi(e.months("short",!0),1);case"MMMM":return bi(e.months("long",!0),1);case"L":return Ct(s);case"LL":return Ct(n);case"LLL":return bi(e.months("short",!1),1);case"LLLL":return bi(e.months("long",!1),1);case"d":return Ct(s);case"dd":return Ct(n);case"o":return Ct(l);case"ooo":return Ct(i);case"HH":return Ct(n);case"H":return Ct(s);case"hh":return Ct(n);case"h":return Ct(s);case"mm":return Ct(n);case"m":return Ct(s);case"q":return Ct(s);case"qq":return Ct(n);case"s":return Ct(s);case"ss":return Ct(n);case"S":return Ct(l);case"SSS":return Ct(i);case"u":return Pp(c);case"uu":return Pp(s);case"uuu":return Ct(t);case"a":return bi(e.meridiems(),0);case"kkkk":return Ct(a);case"kk":return Ct(f,x_);case"W":return Ct(s);case"WW":return Ct(n);case"E":case"c":return Ct(t);case"EEE":return bi(e.weekdays("short",!1),1);case"EEEE":return bi(e.weekdays("long",!1),1);case"ccc":return bi(e.weekdays("short",!0),1);case"cccc":return bi(e.weekdays("long",!0),1);case"Z":case"ZZ":return kM(new RegExp(`([+-]${s.source})(?::(${n.source}))?`),2);case"ZZZ":return kM(new RegExp(`([+-]${s.source})(${n.source})?`),2);case"z":return Pp(/[a-z_+-/]{1,256}?/i);case" ":return Pp(/[^\S\n\r]/);default:return v(p)}})(r)||{invalidReason:SH};return g.token=r,g}const DH={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function MH(r,e,t){const{type:n,value:i}=r;if(n==="literal"){const l=/^\s+$/.test(i);return{literal:!l,val:l?" ":i}}const a=e[n];let o=n;n==="hour"&&(e.hour12!=null?o=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?o="hour12":o="hour24":o=t.hour12?"hour12":"hour24");let s=DH[o];if(typeof s=="object"&&(s=s[a]),s)return{literal:!1,val:s}}function IH(r){return[`^${r.map(t=>t.regex).reduce((t,n)=>`${t}(${n.source})`,"")}$`,r]}function EH(r,e,t){const n=r.match(e);if(n){const i={};let a=1;for(const o in t)if(Eu(t,o)){const s=t[o],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(n.slice(a,a+l))),a+=l}return[n,i]}else return[n,{}]}function LH(r){const e=a=>{switch(a){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null,n;return rt(r.z)||(t=Ba.create(r.z)),rt(r.Z)||(t||(t=new en(r.Z)),n=r.Z),rt(r.q)||(r.M=(r.q-1)*3+1),rt(r.h)||(r.h<12&&r.a===1?r.h+=12:r.h===12&&r.a===0&&(r.h=0)),r.G===0&&r.y&&(r.y=-r.y),rt(r.u)||(r.S=w_(r.u)),[Object.keys(r).reduce((a,o)=>{const s=e(o);return s&&(a[s]=r[o]),a},{}),t,n]}let C_=null;function kH(){return C_||(C_=We.fromMillis(1555555555555)),C_}function PH(r,e){if(r.literal)return r;const t=Wr.macroTokenToFormatOpts(r.val),n=RM(t,e);return n==null||n.includes(void 0)?r:n}function PM(r,e){return Array.prototype.concat(...r.map(t=>PH(t,e)))}class NM{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=PM(Wr.parseFormat(t),e),this.units=this.tokens.map(n=>CH(n,e)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){const[n,i]=IH(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(e){if(this.isValid){const[t,n]=EH(e,this.regex,this.handlers),[i,a,o]=n?LH(n):[null,null,void 0];if(Eu(n,"a")&&Eu(n,"H"))throw new Mu("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:i,zone:a,specificOffset:o}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function OM(r,e,t){return new NM(r,t).explainFromTokens(e)}function NH(r,e,t){const{result:n,zone:i,specificOffset:a,invalidReason:o}=OM(r,e,t);return[n,i,a,o]}function RM(r,e){if(!r)return null;const n=Wr.create(e,r).dtFormatter(kH()),i=n.formatToParts(),a=n.resolvedOptions();return i.map(o=>MH(o,r,a))}const D_="Invalid DateTime",OH=864e13;function jf(r){return new wi("unsupported zone",`the zone "${r.name}" is not supported`)}function M_(r){return r.weekData===null&&(r.weekData=Ap(r.c)),r.weekData}function I_(r){return r.localWeekData===null&&(r.localWeekData=Ap(r.c,r.loc.getMinDaysInFirstWeek(),r.loc.getStartOfWeek())),r.localWeekData}function Fs(r,e){const t={ts:r.ts,zone:r.zone,c:r.c,o:r.o,loc:r.loc,invalid:r.invalid};return new We({...t,...e,old:t})}function VM(r,e,t){let n=r-e*60*1e3;const i=t.offset(n);if(e===i)return[n,e];n-=(i-e)*60*1e3;const a=t.offset(n);return i===a?[n,i]:[r-Math.min(i,a)*60*1e3,Math.max(i,a)]}function Np(r,e){r+=e*60*1e3;const t=new Date(r);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function Op(r,e,t){return VM(Mp(r),e,t)}function zM(r,e){const t=r.o,n=r.c.year+Math.trunc(e.years),i=r.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,a={...r.c,year:n,month:i,day:Math.min(r.c.day,Dp(n,i))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=_t.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),s=Mp(a);let[l,u]=VM(s,t,r.zone);return o!==0&&(l+=o,u=r.zone.offset(l)),{ts:l,o:u}}function Bu(r,e,t,n,i,a){const{setZone:o,zone:s}=t;if(r&&Object.keys(r).length!==0||e){const l=e||s,u=We.fromObject(r,{...t,zone:l,specificOffset:a});return o?u:u.setZone(s)}else return We.invalid(new wi("unparsable",`the input "${i}" can't be parsed as ${n}`))}function Rp(r,e,t=!0){return r.isValid?Wr.create(It.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(r,e):null}function E_(r,e){const t=r.c.year>9999||r.c.year<0;let n="";return t&&r.c.year>=0&&(n+="+"),n+=pr(r.c.year,t?6:4),e?(n+="-",n+=pr(r.c.month),n+="-",n+=pr(r.c.day)):(n+=pr(r.c.month),n+=pr(r.c.day)),n}function BM(r,e,t,n,i,a){let o=pr(r.c.hour);return e?(o+=":",o+=pr(r.c.minute),(r.c.millisecond!==0||r.c.second!==0||!t)&&(o+=":")):o+=pr(r.c.minute),(r.c.millisecond!==0||r.c.second!==0||!t)&&(o+=pr(r.c.second),(r.c.millisecond!==0||!n)&&(o+=".",o+=pr(r.c.millisecond,3))),i&&(r.isOffsetFixed&&r.offset===0&&!a?o+="Z":r.o<0?(o+="-",o+=pr(Math.trunc(-r.o/60)),o+=":",o+=pr(Math.trunc(-r.o%60))):(o+="+",o+=pr(Math.trunc(r.o/60)),o+=":",o+=pr(Math.trunc(r.o%60)))),a&&(o+="["+r.zone.ianaName+"]"),o}const FM={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},RH={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},VH={ordinal:1,hour:0,minute:0,second:0,millisecond:0},HM=["year","month","day","hour","minute","second","millisecond"],zH=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],BH=["year","ordinal","hour","minute","second","millisecond"];function FH(r){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[r.toLowerCase()];if(!e)throw new mD(r);return e}function GM(r){switch(r.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return FH(r)}}function HH(r){return zp[r]||(Vp===void 0&&(Vp=er.now()),zp[r]=r.offset(Vp)),zp[r]}function WM(r,e){const t=Io(e.zone,er.defaultZone);if(!t.isValid)return We.invalid(jf(t));const n=It.fromObject(e);let i,a;if(rt(r.year))i=er.now();else{for(const l of HM)rt(r[l])&&(r[l]=FM[l]);const o=tM(r)||rM(r);if(o)return We.invalid(o);const s=HH(t);[i,a]=Op(r,s,t)}return new We({ts:i,zone:t,loc:n,o:a})}function ZM(r,e,t){const n=rt(t.round)?!0:t.round,i=(o,s)=>(o=b_(o,n||t.calendary?0:2,!0),e.loc.clone(t).relFormatter(t).format(o,s)),a=o=>t.calendary?e.hasSame(r,o)?0:e.startOf(o).diff(r.startOf(o),o).get(o):e.diff(r,o).get(o);if(t.unit)return i(a(t.unit),t.unit);for(const o of t.units){const s=a(o);if(Math.abs(s)>=1)return i(s,o)}return i(r>e?-0:0,t.units[t.units.length-1])}function UM(r){let e={},t;return r.length>0&&typeof r[r.length-1]=="object"?(e=r[r.length-1],t=Array.from(r).slice(0,r.length-1)):t=Array.from(r),[e,t]}let Vp,zp={};class We{constructor(e){const t=e.zone||er.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new wi("invalid input"):null)||(t.isValid?null:jf(t));this.ts=rt(e.ts)?er.now():e.ts;let i=null,a=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[i,a]=[e.old.c,e.old.o];else{const s=Eo(e.o)&&!e.old?e.o:t.offset(this.ts);i=Np(this.ts,s),n=Number.isNaN(i.year)?new wi("invalid input"):null,i=n?null:i,a=n?null:s}this._zone=t,this.loc=e.loc||It.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=a,this.isLuxonDateTime=!0}static now(){return new We({})}static local(){const[e,t]=UM(arguments),[n,i,a,o,s,l,u]=t;return WM({year:n,month:i,day:a,hour:o,minute:s,second:l,millisecond:u},e)}static utc(){const[e,t]=UM(arguments),[n,i,a,o,s,l,u]=t;return e.zone=en.utcInstance,WM({year:n,month:i,day:a,hour:o,minute:s,second:l,millisecond:u},e)}static fromJSDate(e,t={}){const n=mF(e)?e.valueOf():NaN;if(Number.isNaN(n))return We.invalid("invalid input");const i=Io(t.zone,er.defaultZone);return i.isValid?new We({ts:n,zone:i,loc:It.fromObject(t)}):We.invalid(jf(i))}static fromMillis(e,t={}){if(Eo(e))return e<-864e13||e>OH?We.invalid("Timestamp out of range"):new We({ts:e,zone:Io(t.zone,er.defaultZone),loc:It.fromObject(t)});throw new Gr(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(Eo(e))return new We({ts:e*1e3,zone:Io(t.zone,er.defaultZone),loc:It.fromObject(t)});throw new Gr("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=Io(t.zone,er.defaultZone);if(!n.isValid)return We.invalid(jf(n));const i=It.fromObject(t),a=Ep(e,GM),{minDaysInFirstWeek:o,startOfWeek:s}=eM(a,i),l=er.now(),u=rt(t.specificOffset)?n.offset(l):t.specificOffset,c=!rt(a.ordinal),f=!rt(a.year),h=!rt(a.month)||!rt(a.day),v=f||h,d=a.weekYear||a.weekNumber;if((v||c)&&d)throw new Mu("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&c)throw new Mu("Can't mix ordinal dates with month/day");const g=d||a.weekday&&!v;let p,m,y=Np(l,u);g?(p=zH,m=RH,y=Ap(y,o,s)):c?(p=BH,m=VH,y=y_(y)):(p=HM,m=FM);let _=!1;for(const A of p){const M=a[A];rt(M)?_?a[A]=m[A]:a[A]=y[A]:_=!0}const w=g?dF(a,o,s):c?pF(a):tM(a),b=w||rM(a);if(b)return We.invalid(b);const x=g?QD(a,o,s):c?$D(a):a,[S,T]=Op(x,u,n),C=new We({ts:S,zone:n,o:T,loc:i});return a.weekday&&v&&e.weekday!==C.weekday?We.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${C.toISO()}`):C.isValid?C:We.invalid(C.invalid)}static fromISO(e,t={}){const[n,i]=oH(e);return Bu(n,i,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,i]=sH(e);return Bu(n,i,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,i]=lH(e);return Bu(n,i,t,"HTTP",t)}static fromFormat(e,t,n={}){if(rt(e)||rt(t))throw new Gr("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:a=null}=n,o=It.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0}),[s,l,u,c]=NH(o,e,t);return c?We.invalid(c):Bu(s,l,n,`format ${t}`,e,u)}static fromString(e,t,n={}){return We.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,i]=pH(e);return Bu(n,i,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new Gr("need to specify a reason the DateTime is invalid");const n=e instanceof wi?e:new wi(e,t);if(er.throwOnInvalid)throw new HB(n);return new We({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=RM(e,It.fromObject(t));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(e,t={}){return PM(Wr.parseFormat(e),It.fromObject(t)).map(i=>i.val).join("")}static resetCache(){Vp=void 0,zp={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?M_(this).weekYear:NaN}get weekNumber(){return this.isValid?M_(this).weekNumber:NaN}get weekday(){return this.isValid?M_(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?I_(this).weekday:NaN}get localWeekNumber(){return this.isValid?I_(this).weekNumber:NaN}get localWeekYear(){return this.isValid?I_(this).weekYear:NaN}get ordinal(){return this.isValid?y_(this.c).ordinal:NaN}get monthShort(){return this.isValid?kp.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?kp.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?kp.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?kp.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,n=Mp(this.c),i=this.zone.offset(n-e),a=this.zone.offset(n+e),o=this.zone.offset(n-i*t),s=this.zone.offset(n-a*t);if(o===s)return[this];const l=n-o*t,u=n-s*t,c=Np(l,o),f=Np(u,s);return c.hour===f.hour&&c.minute===f.minute&&c.second===f.second&&c.millisecond===f.millisecond?[Fs(this,{ts:l}),Fs(this,{ts:u})]:[this]}get isInLeapYear(){return Zf(this.year)}get daysInMonth(){return Dp(this.year,this.month)}get daysInYear(){return this.isValid?Lu(this.year):NaN}get weeksInWeekYear(){return this.isValid?Uf(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Uf(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:i}=Wr.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:i}}toUTC(e=0,t={}){return this.setZone(en.instance(e),t)}toLocal(){return this.setZone(er.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if(e=Io(e,er.defaultZone),e.equals(this.zone))return this;if(e.isValid){let i=this.ts;if(t||n){const a=e.offset(this.ts),o=this.toObject();[i]=Op(o,a,e)}return Fs(this,{ts:i,zone:e})}else return We.invalid(jf(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){const i=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n});return Fs(this,{loc:i})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=Ep(e,GM),{minDaysInFirstWeek:n,startOfWeek:i}=eM(t,this.loc),a=!rt(t.weekYear)||!rt(t.weekNumber)||!rt(t.weekday),o=!rt(t.ordinal),s=!rt(t.year),l=!rt(t.month)||!rt(t.day),u=s||l,c=t.weekYear||t.weekNumber;if((u||o)&&c)throw new Mu("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new Mu("Can't mix ordinal dates with month/day");let f;a?f=QD({...Ap(this.c,n,i),...t},n,i):rt(t.ordinal)?(f={...this.toObject(),...t},rt(t.day)&&(f.day=Math.min(Dp(f.year,f.month),f.day))):f=$D({...y_(this.c),...t});const[h,v]=Op(f,this.o,this.zone);return Fs(this,{ts:h,o:v})}plus(e){if(!this.isValid)return this;const t=_t.fromDurationLike(e);return Fs(this,zM(this,t))}minus(e){if(!this.isValid)return this;const t=_t.fromDurationLike(e).negate();return Fs(this,zM(this,t))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const n={},i=_t.normalizeUnit(e);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(i==="weeks")if(t){const a=this.loc.getStartOfWeek(),{weekday:o}=this;o<a&&(n.weekNumber=this.weekNumber-1),n.weekday=a}else n.weekday=1;if(i==="quarters"){const a=Math.ceil(this.month/3);n.month=(a-1)*3+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?Wr.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):D_}toLocaleString(e=wp,t={}){return this.isValid?Wr.create(this.loc.clone(t),e).formatDateTime(this):D_}toLocaleParts(e={}){return this.isValid?Wr.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:a=!1}={}){if(!this.isValid)return null;const o=e==="extended";let s=E_(this,o);return s+="T",s+=BM(this,o,t,n,i,a),s}toISODate({format:e="extended"}={}){return this.isValid?E_(this,e==="extended"):null}toISOWeekDate(){return Rp(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:a=!1,format:o="extended"}={}){return this.isValid?(i?"T":"")+BM(this,o==="extended",t,e,n,a):null}toRFC2822(){return Rp(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Rp(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?E_(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(t||e)&&(n&&(i+=" "),t?i+="z":e&&(i+="ZZ")),Rp(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():D_}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return _t.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...n},a=yF(t).map(_t.normalizeUnit),o=e.valueOf()>this.valueOf(),s=o?this:e,l=o?e:this,u=xH(s,l,a,i);return o?u.negate():u}diffNow(e="milliseconds",t={}){return this.diff(We.now(),e,t)}until(e){return this.isValid?tr.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;const i=e.valueOf(),a=this.setZone(e.zone,{keepLocalTime:!0});return a.startOf(t,n)<=i&&i<=a.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||We.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0;let i=["years","months","days","hours","minutes","seconds"],a=e.unit;return Array.isArray(e.unit)&&(i=e.unit,a=void 0),ZM(t,this.plus(n),{...e,numeric:"always",units:i,unit:a})}toRelativeCalendar(e={}){return this.isValid?ZM(e.base||We.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(We.isDateTime))throw new Gr("min requires all arguments be DateTimes");return aM(e,t=>t.valueOf(),Math.min)}static max(...e){if(!e.every(We.isDateTime))throw new Gr("max requires all arguments be DateTimes");return aM(e,t=>t.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:i=null,numberingSystem:a=null}=n,o=It.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0});return OM(o,e,t)}static fromStringExplain(e,t,n={}){return We.fromFormatExplain(e,t,n)}static buildFormatParser(e,t={}){const{locale:n=null,numberingSystem:i=null}=t,a=It.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new NM(a,e)}static fromFormatParser(e,t,n={}){if(rt(e)||rt(t))throw new Gr("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:a=null}=n,o=It.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0});if(!o.equals(t.locale))throw new Gr(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${t.locale}`);const{result:s,zone:l,specificOffset:u,invalidReason:c}=t.explainFromTokens(e);return c?We.invalid(c):Bu(s,l,n,`format ${t.format}`,e,u)}static get DATE_SHORT(){return wp}static get DATE_MED(){return yD}static get DATE_MED_WITH_WEEKDAY(){return ZB}static get DATE_FULL(){return _D}static get DATE_HUGE(){return wD}static get TIME_SIMPLE(){return bD}static get TIME_WITH_SECONDS(){return xD}static get TIME_WITH_SHORT_OFFSET(){return SD}static get TIME_WITH_LONG_OFFSET(){return TD}static get TIME_24_SIMPLE(){return AD}static get TIME_24_WITH_SECONDS(){return CD}static get TIME_24_WITH_SHORT_OFFSET(){return DD}static get TIME_24_WITH_LONG_OFFSET(){return MD}static get DATETIME_SHORT(){return ID}static get DATETIME_SHORT_WITH_SECONDS(){return ED}static get DATETIME_MED(){return LD}static get DATETIME_MED_WITH_SECONDS(){return kD}static get DATETIME_MED_WITH_WEEKDAY(){return UB}static get DATETIME_FULL(){return PD}static get DATETIME_FULL_WITH_SECONDS(){return ND}static get DATETIME_HUGE(){return OD}static get DATETIME_HUGE_WITH_SECONDS(){return RD}}function Kf(r){if(We.isDateTime(r))return r;if(r&&r.valueOf&&Eo(r.valueOf()))return We.fromJSDate(r);if(r&&typeof r=="object")return We.fromObject(r);throw new Gr(`Unknown datetime argument: ${r}, of type ${typeof r}`)}let YM=Symbol("phosphor-svelte");function sr(){return QC(YM)?K1(YM):{}}var GH=J('<path d="M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm16-84a16,16,0,1,1-16-16A16,16,0,0,1,144,128Zm16-16a16,16,0,1,1,16-16A16,16,0,0,1,160,112Zm32,24a16,16,0,1,1-16-16A16,16,0,0,1,192,136Z"></path>'),WH=J('<path d="M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z" opacity="0.2"></path><path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-100a12,12,0,1,1-12-12A12,12,0,0,1,144,116Zm20-12a12,12,0,1,1,12-12A12,12,0,0,1,164,104Zm20,28a12,12,0,1,1-12-12A12,12,0,0,1,184,132Z"></path>',1),ZH=J('<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm4,104a12,12,0,1,1,12-12A12,12,0,0,1,132,128Zm20-36a12,12,0,1,1,12,12A12,12,0,0,1,152,92Zm20,52a12,12,0,1,1,12-12A12,12,0,0,1,172,144Z"></path>'),UH=J('<path d="M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm14-102a10,10,0,1,1-10-10A10,10,0,0,1,142,116Zm22-14a10,10,0,1,1,10-10A10,10,0,0,1,164,102Zm18,30a10,10,0,1,1-10-10A10,10,0,0,1,182,132Z"></path>'),YH=J('<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-100a12,12,0,1,1-12-12A12,12,0,0,1,144,116Zm20-12a12,12,0,1,1,12-12A12,12,0,0,1,164,104Zm20,28a12,12,0,1,1-12-12A12,12,0,0,1,184,132Z"></path>'),XH=J('<path d="M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm12-104a8,8,0,1,1-8-8A8,8,0,0,1,140,116Zm24-16a8,8,0,1,1,8-8A8,8,0,0,1,164,100Zm16,32a8,8,0,1,1-8-8A8,8,0,0,1,180,132Z"></path>'),qH=J('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function jH(r,e){Ae(e,!0);const t=sr();let n=tt(e,["$$slots","$$events","$$legacy","children"]),i=q(()=>e.weight??t.weight??"regular"),a=q(()=>e.color??t.color??"currentColor"),o=q(()=>e.size??t.size??"1em"),s=q(()=>e.mirrored??t.mirrored??!1);function l(p){let{weight:m,color:y,size:_,mirrored:w,...b}=p;return b}var u=qH();let c;var f=K(u);{var h=p=>{var m=Z(),y=G(m);he(y,()=>e.children),I(p,m)};W(f,p=>{e.children&&p(h)})}var v=_e(f,2);{var d=p=>{var m=GH();I(p,m)},g=p=>{var m=Z(),y=G(m);{var _=b=>{var x=WH();I(b,x)},w=b=>{var x=Z(),S=G(x);{var T=A=>{var M=ZH();I(A,M)},C=A=>{var M=Z(),k=G(M);{var L=E=>{var O=UH();I(E,O)},P=E=>{var O=Z(),V=G(O);{var z=B=>{var F=YH();I(B,F)},H=B=>{var F=Z(),ee=G(F);{var ae=U=>{var j=XH();I(U,j)},le=U=>{var j=Gt();j.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),I(U,j)};W(ee,U=>{D(i)==="thin"?U(ae):U(le,!1)},!0)}I(B,F)};W(V,B=>{D(i)==="regular"?B(z):B(H,!1)},!0)}I(E,O)};W(k,E=>{D(i)==="light"?E(L):E(P,!1)},!0)}I(A,M)};W(S,A=>{D(i)==="fill"?A(T):A(C,!1)},!0)}I(b,x)};W(y,b=>{D(i)==="duotone"?b(_):b(w,!1)},!0)}I(p,m)};W(v,p=>{D(i)==="bold"?p(d):p(g,!1)})}ce((p,m)=>c=it(u,c,{xmlns:"http://www.w3.org/2000/svg",role:"img",width:D(o),height:D(o),fill:D(a),transform:D(s)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...p,...m},void 0,!0),[()=>l(t),()=>l(n)]),I(r,u),Ce()}var KH=J('<path d="M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"></path>'),JH=J('<path d="M208,96l-80,80L48,96Z" opacity="0.2"></path><path d="M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"></path>',1),QH=J('<path d="M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"></path>'),$H=J('<path d="M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"></path>'),eG=J('<path d="M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"></path>'),tG=J('<path d="M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"></path>'),rG=J('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function L_(r,e){Ae(e,!0);const t=sr();let n=tt(e,["$$slots","$$events","$$legacy","children"]),i=q(()=>e.weight??t.weight??"regular"),a=q(()=>e.color??t.color??"currentColor"),o=q(()=>e.size??t.size??"1em"),s=q(()=>e.mirrored??t.mirrored??!1);function l(p){let{weight:m,color:y,size:_,mirrored:w,...b}=p;return b}var u=rG();let c;var f=K(u);{var h=p=>{var m=Z(),y=G(m);he(y,()=>e.children),I(p,m)};W(f,p=>{e.children&&p(h)})}var v=_e(f,2);{var d=p=>{var m=KH();I(p,m)},g=p=>{var m=Z(),y=G(m);{var _=b=>{var x=JH();I(b,x)},w=b=>{var x=Z(),S=G(x);{var T=A=>{var M=QH();I(A,M)},C=A=>{var M=Z(),k=G(M);{var L=E=>{var O=$H();I(E,O)},P=E=>{var O=Z(),V=G(O);{var z=B=>{var F=eG();I(B,F)},H=B=>{var F=Z(),ee=G(F);{var ae=U=>{var j=tG();I(U,j)},le=U=>{var j=Gt();j.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),I(U,j)};W(ee,U=>{D(i)==="thin"?U(ae):U(le,!1)},!0)}I(B,F)};W(V,B=>{D(i)==="regular"?B(z):B(H,!1)},!0)}I(E,O)};W(k,E=>{D(i)==="light"?E(L):E(P,!1)},!0)}I(A,M)};W(S,A=>{D(i)==="fill"?A(T):A(C,!1)},!0)}I(b,x)};W(y,b=>{D(i)==="duotone"?b(_):b(w,!1)},!0)}I(p,m)};W(v,p=>{D(i)==="bold"?p(d):p(g,!1)})}ce((p,m)=>c=it(u,c,{xmlns:"http://www.w3.org/2000/svg",role:"img",width:D(o),height:D(o),fill:D(a),transform:D(s)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...p,...m},void 0,!0),[()=>l(t),()=>l(n)]),I(r,u),Ce()}var nG=J('<path d="M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"></path>'),iG=J('<path d="M160,48V208L80,128Z" opacity="0.2"></path><path d="M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"></path>',1),aG=J('<path d="M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"></path>'),oG=J('<path d="M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"></path>'),sG=J('<path d="M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"></path>'),lG=J('<path d="M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"></path>'),uG=J('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function cG(r,e){Ae(e,!0);const t=sr();let n=tt(e,["$$slots","$$events","$$legacy","children"]),i=q(()=>e.weight??t.weight??"regular"),a=q(()=>e.color??t.color??"currentColor"),o=q(()=>e.size??t.size??"1em"),s=q(()=>e.mirrored??t.mirrored??!1);function l(p){let{weight:m,color:y,size:_,mirrored:w,...b}=p;return b}var u=uG();let c;var f=K(u);{var h=p=>{var m=Z(),y=G(m);he(y,()=>e.children),I(p,m)};W(f,p=>{e.children&&p(h)})}var v=_e(f,2);{var d=p=>{var m=nG();I(p,m)},g=p=>{var m=Z(),y=G(m);{var _=b=>{var x=iG();I(b,x)},w=b=>{var x=Z(),S=G(x);{var T=A=>{var M=aG();I(A,M)},C=A=>{var M=Z(),k=G(M);{var L=E=>{var O=oG();I(E,O)},P=E=>{var O=Z(),V=G(O);{var z=B=>{var F=sG();I(B,F)},H=B=>{var F=Z(),ee=G(F);{var ae=U=>{var j=lG();I(U,j)},le=U=>{var j=Gt();j.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),I(U,j)};W(ee,U=>{D(i)==="thin"?U(ae):U(le,!1)},!0)}I(B,F)};W(V,B=>{D(i)==="regular"?B(z):B(H,!1)},!0)}I(E,O)};W(k,E=>{D(i)==="light"?E(L):E(P,!1)},!0)}I(A,M)};W(S,A=>{D(i)==="fill"?A(T):A(C,!1)},!0)}I(b,x)};W(y,b=>{D(i)==="duotone"?b(_):b(w,!1)},!0)}I(p,m)};W(v,p=>{D(i)==="bold"?p(d):p(g,!1)})}ce((p,m)=>c=it(u,c,{xmlns:"http://www.w3.org/2000/svg",role:"img",width:D(o),height:D(o),fill:D(a),transform:D(s)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...p,...m},void 0,!0),[()=>l(t),()=>l(n)]),I(r,u),Ce()}var fG=J('<path d="M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"></path>'),hG=J('<path d="M176,128,96,208V48Z" opacity="0.2"></path><path d="M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"></path>',1),vG=J('<path d="M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"></path>'),dG=J('<path d="M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"></path>'),pG=J('<path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"></path>'),gG=J('<path d="M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"></path>'),mG=J('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function yG(r,e){Ae(e,!0);const t=sr();let n=tt(e,["$$slots","$$events","$$legacy","children"]),i=q(()=>e.weight??t.weight??"regular"),a=q(()=>e.color??t.color??"currentColor"),o=q(()=>e.size??t.size??"1em"),s=q(()=>e.mirrored??t.mirrored??!1);function l(p){let{weight:m,color:y,size:_,mirrored:w,...b}=p;return b}var u=mG();let c;var f=K(u);{var h=p=>{var m=Z(),y=G(m);he(y,()=>e.children),I(p,m)};W(f,p=>{e.children&&p(h)})}var v=_e(f,2);{var d=p=>{var m=fG();I(p,m)},g=p=>{var m=Z(),y=G(m);{var _=b=>{var x=hG();I(b,x)},w=b=>{var x=Z(),S=G(x);{var T=A=>{var M=vG();I(A,M)},C=A=>{var M=Z(),k=G(M);{var L=E=>{var O=dG();I(E,O)},P=E=>{var O=Z(),V=G(O);{var z=B=>{var F=pG();I(B,F)},H=B=>{var F=Z(),ee=G(F);{var ae=U=>{var j=gG();I(U,j)},le=U=>{var j=Gt();j.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),I(U,j)};W(ee,U=>{D(i)==="thin"?U(ae):U(le,!1)},!0)}I(B,F)};W(V,B=>{D(i)==="regular"?B(z):B(H,!1)},!0)}I(E,O)};W(k,E=>{D(i)==="light"?E(L):E(P,!1)},!0)}I(A,M)};W(S,A=>{D(i)==="fill"?A(T):A(C,!1)},!0)}I(b,x)};W(y,b=>{D(i)==="duotone"?b(_):b(w,!1)},!0)}I(p,m)};W(v,p=>{D(i)==="bold"?p(d):p(g,!1)})}ce((p,m)=>c=it(u,c,{xmlns:"http://www.w3.org/2000/svg",role:"img",width:D(o),height:D(o),fill:D(a),transform:D(s)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...p,...m},void 0,!0),[()=>l(t),()=>l(n)]),I(r,u),Ce()}var _G=J('<path d="M184.49,167.51a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-48-48a12,12,0,0,1,17-17L128,207l39.51-39.52A12,12,0,0,1,184.49,167.51Zm-96-79L128,49l39.51,39.52a12,12,0,0,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,0,0,17,17Z"></path>'),wG=J('<path d="M80,176h96l-48,48ZM128,32,80,80h96Z" opacity="0.2"></path><path d="M176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Zm-48,44.69L99.31,184h57.38ZM80,88h96a8,8,0,0,0,5.66-13.66l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,80,88Zm48-44.69L156.69,72H99.31Z"></path>',1),bG=J('<path d="M72.61,83.06a8,8,0,0,1,1.73-8.72l48-48a8,8,0,0,1,11.32,0l48,48A8,8,0,0,1,176,88H80A8,8,0,0,1,72.61,83.06ZM176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Z"></path>'),xG=J('<path d="M180.24,171.76a6,6,0,0,1,0,8.48l-48,48a6,6,0,0,1-8.48,0l-48-48a6,6,0,0,1,8.48-8.48L128,215.51l43.76-43.75A6,6,0,0,1,180.24,171.76Zm-96-87.52L128,40.49l43.76,43.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48Z"></path>'),SG=J('<path d="M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,85.66Z"></path>'),TG=J('<path d="M178.83,173.17a4,4,0,0,1,0,5.66l-48,48a4,4,0,0,1-5.66,0l-48-48a4,4,0,0,1,5.66-5.66L128,218.34l45.17-45.17A4,4,0,0,1,178.83,173.17Zm-96-90.34L128,37.66l45.17,45.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66Z"></path>'),AG=J('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function CG(r,e){Ae(e,!0);const t=sr();let n=tt(e,["$$slots","$$events","$$legacy","children"]),i=q(()=>e.weight??t.weight??"regular"),a=q(()=>e.color??t.color??"currentColor"),o=q(()=>e.size??t.size??"1em"),s=q(()=>e.mirrored??t.mirrored??!1);function l(p){let{weight:m,color:y,size:_,mirrored:w,...b}=p;return b}var u=AG();let c;var f=K(u);{var h=p=>{var m=Z(),y=G(m);he(y,()=>e.children),I(p,m)};W(f,p=>{e.children&&p(h)})}var v=_e(f,2);{var d=p=>{var m=_G();I(p,m)},g=p=>{var m=Z(),y=G(m);{var _=b=>{var x=wG();I(b,x)},w=b=>{var x=Z(),S=G(x);{var T=A=>{var M=bG();I(A,M)},C=A=>{var M=Z(),k=G(M);{var L=E=>{var O=xG();I(E,O)},P=E=>{var O=Z(),V=G(O);{var z=B=>{var F=SG();I(B,F)},H=B=>{var F=Z(),ee=G(F);{var ae=U=>{var j=TG();I(U,j)},le=U=>{var j=Gt();j.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),I(U,j)};W(ee,U=>{D(i)==="thin"?U(ae):U(le,!1)},!0)}I(B,F)};W(V,B=>{D(i)==="regular"?B(z):B(H,!1)},!0)}I(E,O)};W(k,E=>{D(i)==="light"?E(L):E(P,!1)},!0)}I(A,M)};W(S,A=>{D(i)==="fill"?A(T):A(C,!1)},!0)}I(b,x)};W(y,b=>{D(i)==="duotone"?b(_):b(w,!1)},!0)}I(p,m)};W(v,p=>{D(i)==="bold"?p(d):p(g,!1)})}ce((p,m)=>c=it(u,c,{xmlns:"http://www.w3.org/2000/svg",role:"img",width:D(o),height:D(o),fill:D(a),transform:D(s)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...p,...m},void 0,!0),[()=>l(t),()=>l(n)]),I(r,u),Ce()}var DG=J('<path d="M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z"></path>'),MG=J('<path d="M208,160H48l80-80Z" opacity="0.2"></path><path d="M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z"></path>',1),IG=J('<path d="M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z"></path>'),EG=J('<path d="M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"></path>'),LG=J('<path d="M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z"></path>'),kG=J('<path d="M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z"></path>'),PG=J('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function NG(r,e){Ae(e,!0);const t=sr();let n=tt(e,["$$slots","$$events","$$legacy","children"]),i=q(()=>e.weight??t.weight??"regular"),a=q(()=>e.color??t.color??"currentColor"),o=q(()=>e.size??t.size??"1em"),s=q(()=>e.mirrored??t.mirrored??!1);function l(p){let{weight:m,color:y,size:_,mirrored:w,...b}=p;return b}var u=PG();let c;var f=K(u);{var h=p=>{var m=Z(),y=G(m);he(y,()=>e.children),I(p,m)};W(f,p=>{e.children&&p(h)})}var v=_e(f,2);{var d=p=>{var m=DG();I(p,m)},g=p=>{var m=Z(),y=G(m);{var _=b=>{var x=MG();I(b,x)},w=b=>{var x=Z(),S=G(x);{var T=A=>{var M=IG();I(A,M)},C=A=>{var M=Z(),k=G(M);{var L=E=>{var O=EG();I(E,O)},P=E=>{var O=Z(),V=G(O);{var z=B=>{var F=LG();I(B,F)},H=B=>{var F=Z(),ee=G(F);{var ae=U=>{var j=kG();I(U,j)},le=U=>{var j=Gt();j.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),I(U,j)};W(ee,U=>{D(i)==="thin"?U(ae):U(le,!1)},!0)}I(B,F)};W(V,B=>{D(i)==="regular"?B(z):B(H,!1)},!0)}I(E,O)};W(k,E=>{D(i)==="light"?E(L):E(P,!1)},!0)}I(A,M)};W(S,A=>{D(i)==="fill"?A(T):A(C,!1)},!0)}I(b,x)};W(y,b=>{D(i)==="duotone"?b(_):b(w,!1)},!0)}I(p,m)};W(v,p=>{D(i)==="bold"?p(d):p(g,!1)})}ce((p,m)=>c=it(u,c,{xmlns:"http://www.w3.org/2000/svg",role:"img",width:D(o),height:D(o),fill:D(a),transform:D(s)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...p,...m},void 0,!0),[()=>l(t),()=>l(n)]),I(r,u),Ce()}var OG=J('<path d="M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"></path>'),RG=J('<path d="M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z" opacity="0.2"></path><path d="M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"></path>',1),VG=J('<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"></path>'),zG=J('<path d="M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"></path>'),BG=J('<path d="M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"></path>'),FG=J('<path d="M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"></path>'),HG=J('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function GG(r,e){Ae(e,!0);const t=sr();let n=tt(e,["$$slots","$$events","$$legacy","children"]),i=q(()=>e.weight??t.weight??"regular"),a=q(()=>e.color??t.color??"currentColor"),o=q(()=>e.size??t.size??"1em"),s=q(()=>e.mirrored??t.mirrored??!1);function l(p){let{weight:m,color:y,size:_,mirrored:w,...b}=p;return b}var u=HG();let c;var f=K(u);{var h=p=>{var m=Z(),y=G(m);he(y,()=>e.children),I(p,m)};W(f,p=>{e.children&&p(h)})}var v=_e(f,2);{var d=p=>{var m=OG();I(p,m)},g=p=>{var m=Z(),y=G(m);{var _=b=>{var x=RG();I(b,x)},w=b=>{var x=Z(),S=G(x);{var T=A=>{var M=VG();I(A,M)},C=A=>{var M=Z(),k=G(M);{var L=E=>{var O=zG();I(E,O)},P=E=>{var O=Z(),V=G(O);{var z=B=>{var F=BG();I(B,F)},H=B=>{var F=Z(),ee=G(F);{var ae=U=>{var j=FG();I(U,j)},le=U=>{var j=Gt();j.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),I(U,j)};W(ee,U=>{D(i)==="thin"?U(ae):U(le,!1)},!0)}I(B,F)};W(V,B=>{D(i)==="regular"?B(z):B(H,!1)},!0)}I(E,O)};W(k,E=>{D(i)==="light"?E(L):E(P,!1)},!0)}I(A,M)};W(S,A=>{D(i)==="fill"?A(T):A(C,!1)},!0)}I(b,x)};W(y,b=>{D(i)==="duotone"?b(_):b(w,!1)},!0)}I(p,m)};W(v,p=>{D(i)==="bold"?p(d):p(g,!1)})}ce((p,m)=>c=it(u,c,{xmlns:"http://www.w3.org/2000/svg",role:"img",width:D(o),height:D(o),fill:D(a),transform:D(s)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...p,...m},void 0,!0),[()=>l(t),()=>l(n)]),I(r,u),Ce()}var WG=J('<path d="M246.15,65.46l-.07-.08L222.15,41.85a20,20,0,0,0-28.23-.05l-90,88.83L70.06,97.78a20,20,0,0,0-28.21.08l-24,24a20,20,0,0,0,0,28.26l71.62,72a20,20,0,0,0,28.29,0L246.15,93.74A20,20,0,0,0,246.15,65.46ZM103.61,202.33,37.64,136,56,117.61,95.65,156a12,12,0,0,0,16.78-.08L208,61.61l18.32,18Z"></path>'),ZG=J('<path d="M237.66,85.26l-128.4,128.4a8,8,0,0,1-11.32,0l-71.6-72a8,8,0,0,1,0-11.31l24-24a8,8,0,0,1,11.32,0L104,147.43l98.34-97.09a8,8,0,0,1,11.32,0l24,23.6A8,8,0,0,1,237.66,85.26Z" opacity="0.2"></path><path d="M243.28,68.24l-24-23.56a16,16,0,0,0-22.59,0L104,136.23l-36.69-35.6a16,16,0,0,0-22.58.05l-24,24a16,16,0,0,0,0,22.61l71.62,72a16,16,0,0,0,22.63,0L243.33,90.91A16,16,0,0,0,243.28,68.24ZM103.62,208,32,136l24-24a.6.6,0,0,1,.08.08l42.35,41.09a8,8,0,0,0,11.19,0L208.06,56,232,79.6Z"></path>',1),UG=J('<path d="M243.31,90.91l-128.4,128.4a16,16,0,0,1-22.62,0l-71.62-72a16,16,0,0,1,0-22.61l20-20a16,16,0,0,1,22.58,0L104,144.22l96.76-95.57a16,16,0,0,1,22.59,0l19.95,19.54A16,16,0,0,1,243.31,90.91Z"></path>'),YG=J('<path d="M241.87,69.66l-24-23.56a14,14,0,0,0-19.77,0L104,139,65.9,102.1a14,14,0,0,0-19.8,0l-24,24a14,14,0,0,0,0,19.79l71.62,72a14,14,0,0,0,19.8,0L241.91,89.5A14,14,0,0,0,241.87,69.66ZM233.42,81,105,209.41a2,2,0,0,1-2.81,0l-71.62-72a2,2,0,0,1,0-2.82l24-24A2,2,0,0,1,56,110a2.12,2.12,0,0,1,1.5.64l42.35,41.08a6,6,0,0,0,8.39,0l98.37-97.11a2,2,0,0,1,2.87,0l24,23.56A2,2,0,0,1,233.42,81Z"></path>'),XG=J('<path d="M243.28,68.24l-24-23.56a16,16,0,0,0-22.59,0L104,136.23l-36.69-35.6a16,16,0,0,0-22.58.05l-24,24a16,16,0,0,0,0,22.61l71.62,72a16,16,0,0,0,22.63,0L243.33,90.91A16,16,0,0,0,243.28,68.24ZM103.62,208,32,136l24-24a.6.6,0,0,1,.08.08l42.35,41.09a8,8,0,0,0,11.19,0L208.06,56,232,79.6Z"></path>'),qG=J('<path d="M240.47,71.09l-24-23.58a12,12,0,0,0-17,0L104,141.83l-39.5-38.32a12,12,0,0,0-17,0l-24,24a12,12,0,0,0,0,17l71.61,72a12,12,0,0,0,17,0L240.49,88.08A12,12,0,0,0,240.47,71.09Zm-5.63,11.34L106.43,210.83a4,4,0,0,1-5.65,0l-71.61-72a4,4,0,0,1,0-5.66l24-24A3.94,3.94,0,0,1,56,108a4.11,4.11,0,0,1,2.89,1.21l42.35,41.08a4,4,0,0,0,5.59,0l98.37-97.1a4,4,0,0,1,5.68,0l24,23.58A4,4,0,0,1,234.84,82.43Z"></path>'),jG=J('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function KG(r,e){Ae(e,!0);const t=sr();let n=tt(e,["$$slots","$$events","$$legacy","children"]),i=q(()=>e.weight??t.weight??"regular"),a=q(()=>e.color??t.color??"currentColor"),o=q(()=>e.size??t.size??"1em"),s=q(()=>e.mirrored??t.mirrored??!1);function l(p){let{weight:m,color:y,size:_,mirrored:w,...b}=p;return b}var u=jG();let c;var f=K(u);{var h=p=>{var m=Z(),y=G(m);he(y,()=>e.children),I(p,m)};W(f,p=>{e.children&&p(h)})}var v=_e(f,2);{var d=p=>{var m=WG();I(p,m)},g=p=>{var m=Z(),y=G(m);{var _=b=>{var x=ZG();I(b,x)},w=b=>{var x=Z(),S=G(x);{var T=A=>{var M=UG();I(A,M)},C=A=>{var M=Z(),k=G(M);{var L=E=>{var O=YG();I(E,O)},P=E=>{var O=Z(),V=G(O);{var z=B=>{var F=XG();I(B,F)},H=B=>{var F=Z(),ee=G(F);{var ae=U=>{var j=qG();I(U,j)},le=U=>{var j=Gt();j.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),I(U,j)};W(ee,U=>{D(i)==="thin"?U(ae):U(le,!1)},!0)}I(B,F)};W(V,B=>{D(i)==="regular"?B(z):B(H,!1)},!0)}I(E,O)};W(k,E=>{D(i)==="light"?E(L):E(P,!1)},!0)}I(A,M)};W(S,A=>{D(i)==="fill"?A(T):A(C,!1)},!0)}I(b,x)};W(y,b=>{D(i)==="duotone"?b(_):b(w,!1)},!0)}I(p,m)};W(v,p=>{D(i)==="bold"?p(d):p(g,!1)})}ce((p,m)=>c=it(u,c,{xmlns:"http://www.w3.org/2000/svg",role:"img",width:D(o),height:D(o),fill:D(a),transform:D(s)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...p,...m},void 0,!0),[()=>l(t),()=>l(n)]),I(r,u),Ce()}var JG=J('<path d="M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"></path>'),QG=J('<path d="M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z" opacity="0.2"></path><path d="M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"></path>',1),$G=J('<path d="M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"></path>'),eW=J('<path d="M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"></path>'),tW=J('<path d="M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"></path>'),rW=J('<path d="M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"></path>'),nW=J('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function iW(r,e){Ae(e,!0);const t=sr();let n=tt(e,["$$slots","$$events","$$legacy","children"]),i=q(()=>e.weight??t.weight??"regular"),a=q(()=>e.color??t.color??"currentColor"),o=q(()=>e.size??t.size??"1em"),s=q(()=>e.mirrored??t.mirrored??!1);function l(p){let{weight:m,color:y,size:_,mirrored:w,...b}=p;return b}var u=nW();let c;var f=K(u);{var h=p=>{var m=Z(),y=G(m);he(y,()=>e.children),I(p,m)};W(f,p=>{e.children&&p(h)})}var v=_e(f,2);{var d=p=>{var m=JG();I(p,m)},g=p=>{var m=Z(),y=G(m);{var _=b=>{var x=QG();I(b,x)},w=b=>{var x=Z(),S=G(x);{var T=A=>{var M=$G();I(A,M)},C=A=>{var M=Z(),k=G(M);{var L=E=>{var O=eW();I(E,O)},P=E=>{var O=Z(),V=G(O);{var z=B=>{var F=tW();I(B,F)},H=B=>{var F=Z(),ee=G(F);{var ae=U=>{var j=rW();I(U,j)},le=U=>{var j=Gt();j.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),I(U,j)};W(ee,U=>{D(i)==="thin"?U(ae):U(le,!1)},!0)}I(B,F)};W(V,B=>{D(i)==="regular"?B(z):B(H,!1)},!0)}I(E,O)};W(k,E=>{D(i)==="light"?E(L):E(P,!1)},!0)}I(A,M)};W(S,A=>{D(i)==="fill"?A(T):A(C,!1)},!0)}I(b,x)};W(y,b=>{D(i)==="duotone"?b(_):b(w,!1)},!0)}I(p,m)};W(v,p=>{D(i)==="bold"?p(d):p(g,!1)})}ce((p,m)=>c=it(u,c,{xmlns:"http://www.w3.org/2000/svg",role:"img",width:D(o),height:D(o),fill:D(a),transform:D(s)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...p,...m},void 0,!0),[()=>l(t),()=>l(n)]),I(r,u),Ce()}var aW=J('<path d="M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Z"></path>'),oW=J('<path d="M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z" opacity="0.2"></path><path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z"></path>',1),sW=J('<path d="M232,128A104,104,0,1,1,128,24,104.13,104.13,0,0,1,232,128Z"></path>'),lW=J('<path d="M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Z"></path>'),uW=J('<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z"></path>'),cW=J('<path d="M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Z"></path>'),fW=J('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function hW(r,e){Ae(e,!0);const t=sr();let n=tt(e,["$$slots","$$events","$$legacy","children"]),i=q(()=>e.weight??t.weight??"regular"),a=q(()=>e.color??t.color??"currentColor"),o=q(()=>e.size??t.size??"1em"),s=q(()=>e.mirrored??t.mirrored??!1);function l(p){let{weight:m,color:y,size:_,mirrored:w,...b}=p;return b}var u=fW();let c;var f=K(u);{var h=p=>{var m=Z(),y=G(m);he(y,()=>e.children),I(p,m)};W(f,p=>{e.children&&p(h)})}var v=_e(f,2);{var d=p=>{var m=aW();I(p,m)},g=p=>{var m=Z(),y=G(m);{var _=b=>{var x=oW();I(b,x)},w=b=>{var x=Z(),S=G(x);{var T=A=>{var M=sW();I(A,M)},C=A=>{var M=Z(),k=G(M);{var L=E=>{var O=lW();I(E,O)},P=E=>{var O=Z(),V=G(O);{var z=B=>{var F=uW();I(B,F)},H=B=>{var F=Z(),ee=G(F);{var ae=U=>{var j=cW();I(U,j)},le=U=>{var j=Gt();j.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),I(U,j)};W(ee,U=>{D(i)==="thin"?U(ae):U(le,!1)},!0)}I(B,F)};W(V,B=>{D(i)==="regular"?B(z):B(H,!1)},!0)}I(E,O)};W(k,E=>{D(i)==="light"?E(L):E(P,!1)},!0)}I(A,M)};W(S,A=>{D(i)==="fill"?A(T):A(C,!1)},!0)}I(b,x)};W(y,b=>{D(i)==="duotone"?b(_):b(w,!1)},!0)}I(p,m)};W(v,p=>{D(i)==="bold"?p(d):p(g,!1)})}ce((p,m)=>c=it(u,c,{xmlns:"http://www.w3.org/2000/svg",role:"img",width:D(o),height:D(o),fill:D(a),transform:D(s)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...p,...m},void 0,!0),[()=>l(t),()=>l(n)]),I(r,u),Ce()}var vW=J('<path d="M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"></path>'),dW=J('<path d="M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z" opacity="0.2"></path><path d="M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"></path>',1),pW=J('<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"></path>'),gW=J('<path d="M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"></path>'),mW=J('<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"></path>'),yW=J('<path d="M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"></path>'),_W=J('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function wW(r,e){Ae(e,!0);const t=sr();let n=tt(e,["$$slots","$$events","$$legacy","children"]),i=q(()=>e.weight??t.weight??"regular"),a=q(()=>e.color??t.color??"currentColor"),o=q(()=>e.size??t.size??"1em"),s=q(()=>e.mirrored??t.mirrored??!1);function l(p){let{weight:m,color:y,size:_,mirrored:w,...b}=p;return b}var u=_W();let c;var f=K(u);{var h=p=>{var m=Z(),y=G(m);he(y,()=>e.children),I(p,m)};W(f,p=>{e.children&&p(h)})}var v=_e(f,2);{var d=p=>{var m=vW();I(p,m)},g=p=>{var m=Z(),y=G(m);{var _=b=>{var x=dW();I(b,x)},w=b=>{var x=Z(),S=G(x);{var T=A=>{var M=pW();I(A,M)},C=A=>{var M=Z(),k=G(M);{var L=E=>{var O=gW();I(E,O)},P=E=>{var O=Z(),V=G(O);{var z=B=>{var F=mW();I(B,F)},H=B=>{var F=Z(),ee=G(F);{var ae=U=>{var j=yW();I(U,j)},le=U=>{var j=Gt();j.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),I(U,j)};W(ee,U=>{D(i)==="thin"?U(ae):U(le,!1)},!0)}I(B,F)};W(V,B=>{D(i)==="regular"?B(z):B(H,!1)},!0)}I(E,O)};W(k,E=>{D(i)==="light"?E(L):E(P,!1)},!0)}I(A,M)};W(S,A=>{D(i)==="fill"?A(T):A(C,!1)},!0)}I(b,x)};W(y,b=>{D(i)==="duotone"?b(_):b(w,!1)},!0)}I(p,m)};W(v,p=>{D(i)==="bold"?p(d):p(g,!1)})}ce((p,m)=>c=it(u,c,{xmlns:"http://www.w3.org/2000/svg",role:"img",width:D(o),height:D(o),fill:D(a),transform:D(s)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...p,...m},void 0,!0),[()=>l(t),()=>l(n)]),I(r,u),Ce()}var bW=J('<path d="M200,28H160a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V48A20,20,0,0,0,200,28Zm-4,176H164V52h32ZM96,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H96a20,20,0,0,0,20-20V48A20,20,0,0,0,96,28ZM92,204H60V52H92Z"></path>'),xW=J('<path d="M208,48V208a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8h40A8,8,0,0,1,208,48ZM96,40H56a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z" opacity="0.2"></path><path d="M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"></path>',1),SW=J('<path d="M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z"></path>'),TW=J('<path d="M200,34H160a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,200,34Zm2,174a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2ZM96,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H96a14,14,0,0,0,14-14V48A14,14,0,0,0,96,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H96a2,2,0,0,1,2,2Z"></path>'),AW=J('<path d="M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"></path>'),CW=J('<path d="M200,36H160a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,200,36Zm4,172a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4ZM96,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H96a4,4,0,0,1,4,4Z"></path>'),DW=J('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function MW(r,e){Ae(e,!0);const t=sr();let n=tt(e,["$$slots","$$events","$$legacy","children"]),i=q(()=>e.weight??t.weight??"regular"),a=q(()=>e.color??t.color??"currentColor"),o=q(()=>e.size??t.size??"1em"),s=q(()=>e.mirrored??t.mirrored??!1);function l(p){let{weight:m,color:y,size:_,mirrored:w,...b}=p;return b}var u=DW();let c;var f=K(u);{var h=p=>{var m=Z(),y=G(m);he(y,()=>e.children),I(p,m)};W(f,p=>{e.children&&p(h)})}var v=_e(f,2);{var d=p=>{var m=bW();I(p,m)},g=p=>{var m=Z(),y=G(m);{var _=b=>{var x=xW();I(b,x)},w=b=>{var x=Z(),S=G(x);{var T=A=>{var M=SW();I(A,M)},C=A=>{var M=Z(),k=G(M);{var L=E=>{var O=TW();I(E,O)},P=E=>{var O=Z(),V=G(O);{var z=B=>{var F=AW();I(B,F)},H=B=>{var F=Z(),ee=G(F);{var ae=U=>{var j=CW();I(U,j)},le=U=>{var j=Gt();j.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),I(U,j)};W(ee,U=>{D(i)==="thin"?U(ae):U(le,!1)},!0)}I(B,F)};W(V,B=>{D(i)==="regular"?B(z):B(H,!1)},!0)}I(E,O)};W(k,E=>{D(i)==="light"?E(L):E(P,!1)},!0)}I(A,M)};W(S,A=>{D(i)==="fill"?A(T):A(C,!1)},!0)}I(b,x)};W(y,b=>{D(i)==="duotone"?b(_):b(w,!1)},!0)}I(p,m)};W(v,p=>{D(i)==="bold"?p(d):p(g,!1)})}ce((p,m)=>c=it(u,c,{xmlns:"http://www.w3.org/2000/svg",role:"img",width:D(o),height:D(o),fill:D(a),transform:D(s)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...p,...m},void 0,!0),[()=>l(t),()=>l(n)]),I(r,u),Ce()}var IW=J('<path d="M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM93,180l71-71,11,11-71,71ZM76,163,65,152l71-71,11,11ZM52,173l15.51,15.51h0L83,204H52ZM192,103,153,64l18.34-18.34,39,39Z"></path>'),EW=J('<path d="M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z" opacity="0.2"></path><path d="M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"></path>',1),LW=J('<path d="M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160l90.35-90.35,16.68,16.69L68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188l90.35-90.35h0l16.68,16.69Z"></path>'),kW=J('<path d="M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM48.49,160,136,72.48,155.51,92,68,179.51ZM46,208V174.48L81.51,210H48A2,2,0,0,1,46,208Zm50-.49L76.49,188,164,100.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z"></path>'),PW=J('<path d="M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"></path>'),NW=J('<path d="M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17ZM45.66,160,136,69.65,158.34,92,68,182.34ZM44,208V169.66l21.17,21.17h0L86.34,212H48A4,4,0,0,1,44,208Zm52,2.34L73.66,188,164,97.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z"></path>'),OW=J('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function RW(r,e){Ae(e,!0);const t=sr();let n=tt(e,["$$slots","$$events","$$legacy","children"]),i=q(()=>e.weight??t.weight??"regular"),a=q(()=>e.color??t.color??"currentColor"),o=q(()=>e.size??t.size??"1em"),s=q(()=>e.mirrored??t.mirrored??!1);function l(p){let{weight:m,color:y,size:_,mirrored:w,...b}=p;return b}var u=OW();let c;var f=K(u);{var h=p=>{var m=Z(),y=G(m);he(y,()=>e.children),I(p,m)};W(f,p=>{e.children&&p(h)})}var v=_e(f,2);{var d=p=>{var m=IW();I(p,m)},g=p=>{var m=Z(),y=G(m);{var _=b=>{var x=EW();I(b,x)},w=b=>{var x=Z(),S=G(x);{var T=A=>{var M=LW();I(A,M)},C=A=>{var M=Z(),k=G(M);{var L=E=>{var O=kW();I(E,O)},P=E=>{var O=Z(),V=G(O);{var z=B=>{var F=PW();I(B,F)},H=B=>{var F=Z(),ee=G(F);{var ae=U=>{var j=NW();I(U,j)},le=U=>{var j=Gt();j.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),I(U,j)};W(ee,U=>{D(i)==="thin"?U(ae):U(le,!1)},!0)}I(B,F)};W(V,B=>{D(i)==="regular"?B(z):B(H,!1)},!0)}I(E,O)};W(k,E=>{D(i)==="light"?E(L):E(P,!1)},!0)}I(A,M)};W(S,A=>{D(i)==="fill"?A(T):A(C,!1)},!0)}I(b,x)};W(y,b=>{D(i)==="duotone"?b(_):b(w,!1)},!0)}I(p,m)};W(v,p=>{D(i)==="bold"?p(d):p(g,!1)})}ce((p,m)=>c=it(u,c,{xmlns:"http://www.w3.org/2000/svg",role:"img",width:D(o),height:D(o),fill:D(a),transform:D(s)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...p,...m},void 0,!0),[()=>l(t),()=>l(n)]),I(r,u),Ce()}var VW=J('<path d="M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z"></path>'),zW=J('<path d="M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z" opacity="0.2"></path><path d="M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"></path>',1),BW=J('<path d="M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z"></path>'),FW=J('<path d="M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z"></path>'),HW=J('<path d="M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"></path>'),GW=J('<path d="M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z"></path>'),WW=J('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function ZW(r,e){Ae(e,!0);const t=sr();let n=tt(e,["$$slots","$$events","$$legacy","children"]),i=q(()=>e.weight??t.weight??"regular"),a=q(()=>e.color??t.color??"currentColor"),o=q(()=>e.size??t.size??"1em"),s=q(()=>e.mirrored??t.mirrored??!1);function l(p){let{weight:m,color:y,size:_,mirrored:w,...b}=p;return b}var u=WW();let c;var f=K(u);{var h=p=>{var m=Z(),y=G(m);he(y,()=>e.children),I(p,m)};W(f,p=>{e.children&&p(h)})}var v=_e(f,2);{var d=p=>{var m=VW();I(p,m)},g=p=>{var m=Z(),y=G(m);{var _=b=>{var x=zW();I(b,x)},w=b=>{var x=Z(),S=G(x);{var T=A=>{var M=BW();I(A,M)},C=A=>{var M=Z(),k=G(M);{var L=E=>{var O=FW();I(E,O)},P=E=>{var O=Z(),V=G(O);{var z=B=>{var F=HW();I(B,F)},H=B=>{var F=Z(),ee=G(F);{var ae=U=>{var j=GW();I(U,j)},le=U=>{var j=Gt();j.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),I(U,j)};W(ee,U=>{D(i)==="thin"?U(ae):U(le,!1)},!0)}I(B,F)};W(V,B=>{D(i)==="regular"?B(z):B(H,!1)},!0)}I(E,O)};W(k,E=>{D(i)==="light"?E(L):E(P,!1)},!0)}I(A,M)};W(S,A=>{D(i)==="fill"?A(T):A(C,!1)},!0)}I(b,x)};W(y,b=>{D(i)==="duotone"?b(_):b(w,!1)},!0)}I(p,m)};W(v,p=>{D(i)==="bold"?p(d):p(g,!1)})}ce((p,m)=>c=it(u,c,{xmlns:"http://www.w3.org/2000/svg",role:"img",width:D(o),height:D(o),fill:D(a),transform:D(s)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...p,...m},void 0,!0),[()=>l(t),()=>l(n)]),I(r,u),Ce()}var UW=J('<path d="M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"></path>'),YW=J('<path d="M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z" opacity="0.2"></path><path d="M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"></path>',1),XW=J('<path d="M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"></path>'),qW=J('<path d="M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"></path>'),jW=J('<path d="M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"></path>'),KW=J('<path d="M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"></path>'),JW=J('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function XM(r,e){Ae(e,!0);const t=sr();let n=tt(e,["$$slots","$$events","$$legacy","children"]),i=q(()=>e.weight??t.weight??"regular"),a=q(()=>e.color??t.color??"currentColor"),o=q(()=>e.size??t.size??"1em"),s=q(()=>e.mirrored??t.mirrored??!1);function l(p){let{weight:m,color:y,size:_,mirrored:w,...b}=p;return b}var u=JW();let c;var f=K(u);{var h=p=>{var m=Z(),y=G(m);he(y,()=>e.children),I(p,m)};W(f,p=>{e.children&&p(h)})}var v=_e(f,2);{var d=p=>{var m=UW();I(p,m)},g=p=>{var m=Z(),y=G(m);{var _=b=>{var x=YW();I(b,x)},w=b=>{var x=Z(),S=G(x);{var T=A=>{var M=XW();I(A,M)},C=A=>{var M=Z(),k=G(M);{var L=E=>{var O=qW();I(E,O)},P=E=>{var O=Z(),V=G(O);{var z=B=>{var F=jW();I(B,F)},H=B=>{var F=Z(),ee=G(F);{var ae=U=>{var j=KW();I(U,j)},le=U=>{var j=Gt();j.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),I(U,j)};W(ee,U=>{D(i)==="thin"?U(ae):U(le,!1)},!0)}I(B,F)};W(V,B=>{D(i)==="regular"?B(z):B(H,!1)},!0)}I(E,O)};W(k,E=>{D(i)==="light"?E(L):E(P,!1)},!0)}I(A,M)};W(S,A=>{D(i)==="fill"?A(T):A(C,!1)},!0)}I(b,x)};W(y,b=>{D(i)==="duotone"?b(_):b(w,!1)},!0)}I(p,m)};W(v,p=>{D(i)==="bold"?p(d):p(g,!1)})}ce((p,m)=>c=it(u,c,{xmlns:"http://www.w3.org/2000/svg",role:"img",width:D(o),height:D(o),fill:D(a),transform:D(s)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...p,...m},void 0,!0),[()=>l(t),()=>l(n)]),I(r,u),Ce()}var QW=J('<path d="M228.75,100.05c-3.52-3.67-7.15-7.46-8.34-10.33-1.06-2.56-1.14-7.83-1.21-12.47-.15-10-.34-22.44-9.18-31.27s-21.27-9-31.27-9.18c-4.64-.07-9.91-.15-12.47-1.21-2.87-1.19-6.66-4.82-10.33-8.34C148.87,20.46,140.05,12,128,12s-20.87,8.46-27.95,15.25c-3.67,3.52-7.46,7.15-10.33,8.34-2.56,1.06-7.83,1.14-12.47,1.21C67.25,37,54.81,37.14,46,46S37,67.25,36.8,77.25c-.07,4.64-.15,9.91-1.21,12.47-1.19,2.87-4.82,6.66-8.34,10.33C20.46,107.13,12,116,12,128S20.46,148.87,27.25,156c3.52,3.67,7.15,7.46,8.34,10.33,1.06,2.56,1.14,7.83,1.21,12.47.15,10,.34,22.44,9.18,31.27s21.27,9,31.27,9.18c4.64.07,9.91.15,12.47,1.21,2.87,1.19,6.66,4.82,10.33,8.34C107.13,235.54,116,244,128,244s20.87-8.46,27.95-15.25c3.67-3.52,7.46-7.15,10.33-8.34,2.56-1.06,7.83-1.14,12.47-1.21,10-.15,22.44-.34,31.27-9.18s9-21.27,9.18-31.27c.07-4.64.15-9.91,1.21-12.47,1.19-2.87,4.82-6.66,8.34-10.33C235.54,148.87,244,140.05,244,128S235.54,107.13,228.75,100.05Zm-17.32,39.29c-4.82,5-10.28,10.72-13.19,17.76-2.82,6.8-2.93,14.16-3,21.29-.08,5.36-.19,12.71-2.15,14.66s-9.3,2.07-14.66,2.15c-7.13.11-14.49.22-21.29,3-7,2.91-12.73,8.37-17.76,13.19C135.78,214.84,130.4,220,128,220s-7.78-5.16-11.34-8.57c-5-4.82-10.72-10.28-17.76-13.19-6.8-2.82-14.16-2.93-21.29-3-5.36-.08-12.71-.19-14.66-2.15s-2.07-9.3-2.15-14.66c-.11-7.13-.22-14.49-3-21.29-2.91-7-8.37-12.73-13.19-17.76C41.16,135.78,36,130.4,36,128s5.16-7.78,8.57-11.34c4.82-5,10.28-10.72,13.19-17.76,2.82-6.8,2.93-14.16,3-21.29C60.88,72.25,61,64.9,63,63s9.3-2.07,14.66-2.15c7.13-.11,14.49-.22,21.29-3,7-2.91,12.73-8.37,17.76-13.19C120.22,41.16,125.6,36,128,36s7.78,5.16,11.34,8.57c5,4.82,10.72,10.28,17.76,13.19,6.8,2.82,14.16,2.93,21.29,3,5.36.08,12.71.19,14.66,2.15s2.07,9.3,2.15,14.66c.11,7.13.22,14.49,3,21.29,2.91,7,8.37,12.73,13.19,17.76,3.41,3.56,8.57,8.94,8.57,11.34S214.84,135.78,211.43,139.34ZM144,180a16,16,0,1,1-16-16A16,16,0,0,1,144,180Zm28-72c0,18.37-13.69,33.88-32.27,38.56A12,12,0,0,1,116,144v-8a12,12,0,0,1,12-12c11,0,20-7.18,20-16s-9-16-20-16-20,7.18-20,16v4a12,12,0,0,1-24,0v-4c0-22.06,19.74-40,44-40S172,85.94,172,108Z"></path>'),$W=J('<path d="M232,128c0,12.51-17.82,21.95-22.68,33.69-4.68,11.32,1.42,30.64-7.78,39.85s-28.53,3.1-39.85,7.78C150,214.18,140.5,232,128,232s-22-17.82-33.69-22.68c-11.32-4.68-30.65,1.42-39.85-7.78s-3.1-28.53-7.78-39.85C41.82,150,24,140.5,24,128s17.82-22,22.68-33.69C51.36,83,45.26,63.66,54.46,54.46S83,51.36,94.31,46.68C106.05,41.82,115.5,24,128,24S150,41.82,161.69,46.68c11.32,4.68,30.65-1.42,39.85,7.78s3.1,28.53,7.78,39.85C214.18,106.05,232,115.5,232,128Z" opacity="0.2"></path><path d="M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-11.55,39.29c-4.79,5-9.75,10.17-12.38,16.52-2.52,6.1-2.63,13.07-2.73,19.82-.1,7-.21,14.33-3.32,17.43s-10.39,3.22-17.43,3.32c-6.75.1-13.72.21-19.82,2.73-6.35,2.63-11.52,7.59-16.52,12.38S132,224,128,224s-9.15-4.92-14.11-9.69-10.17-9.75-16.52-12.38c-6.1-2.52-13.07-2.63-19.82-2.73-7-.1-14.33-.21-17.43-3.32s-3.22-10.39-3.32-17.43c-.1-6.75-.21-13.72-2.73-19.82-2.63-6.35-7.59-11.52-12.38-16.52S32,132,32,128s4.92-9.15,9.69-14.11,9.75-10.17,12.38-16.52c2.52-6.1,2.63-13.07,2.73-19.82.1-7,.21-14.33,3.32-17.43S70.51,56.9,77.55,56.8c6.75-.1,13.72-.21,19.82-2.73,6.35-2.63,11.52-7.59,16.52-12.38S124,32,128,32s9.15,4.92,14.11,9.69,10.17,9.75,16.52,12.38c6.1,2.52,13.07,2.63,19.82,2.73,7,.1,14.33.21,17.43,3.32s3.22,10.39,3.32,17.43c.1,6.75.21,13.72,2.73,19.82,2.63,6.35,7.59,11.52,12.38,16.52S224,124,224,128,219.08,137.15,214.31,142.11ZM140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180Zm28-72c0,17.38-13.76,31.93-32,35.28V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36S168,88.15,168,108Z"></path>',1),eZ=J('<path d="M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82ZM128,192a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z"></path>'),tZ=J('<path d="M224.42,104.2c-3.9-4.07-7.93-8.27-9.55-12.18-1.5-3.63-1.58-9-1.67-14.68-.14-9.38-.3-20-7.42-27.12S188,42.94,178.66,42.8c-5.68-.09-11-.17-14.68-1.67-3.91-1.62-8.11-5.65-12.18-9.55C145.16,25.22,137.64,18,128,18s-17.16,7.22-23.8,13.58c-4.07,3.9-8.27,7.93-12.18,9.55-3.63,1.5-9,1.58-14.68,1.67-9.38.14-20,.3-27.12,7.42S42.94,68,42.8,77.34c-.09,5.68-.17,11-1.67,14.68-1.62,3.91-5.65,8.11-9.55,12.18C25.22,110.84,18,118.36,18,128s7.22,17.16,13.58,23.8c3.9,4.07,7.93,8.27,9.55,12.18,1.5,3.63,1.58,9,1.67,14.68.14,9.38.3,20,7.42,27.12S68,213.06,77.34,213.2c5.68.09,11,.17,14.68,1.67,3.91,1.62,8.11,5.65,12.18,9.55C110.84,230.78,118.36,238,128,238s17.16-7.22,23.8-13.58c4.07-3.9,8.27-7.93,12.18-9.55,3.63-1.5,9-1.58,14.68-1.67,9.38-.14,20-.3,27.12-7.42s7.28-17.74,7.42-27.12c.09-5.68.17-11,1.67-14.68,1.62-3.91,5.65-8.11,9.55-12.18C230.78,145.16,238,137.64,238,128S230.78,110.84,224.42,104.2Zm-8.66,39.3c-4.67,4.86-9.5,9.9-12,15.9-2.38,5.74-2.48,12.52-2.58,19.08-.11,7.44-.23,15.14-3.9,18.82s-11.38,3.79-18.82,3.9c-6.56.1-13.34.2-19.08,2.58-6,2.48-11,7.31-15.91,12-5.25,5-10.68,10.24-15.49,10.24s-10.24-5.21-15.5-10.24c-4.86-4.67-9.9-9.5-15.9-12-5.74-2.38-12.52-2.48-19.08-2.58-7.44-.11-15.14-.23-18.82-3.9s-3.79-11.38-3.9-18.82c-.1-6.56-.2-13.34-2.58-19.08-2.48-6-7.31-11-12-15.91C35.21,138.24,30,132.81,30,128s5.21-10.24,10.24-15.5c4.67-4.86,9.5-9.9,12-15.9,2.38-5.74,2.48-12.52,2.58-19.08.11-7.44.23-15.14,3.9-18.82s11.38-3.79,18.82-3.9c6.56-.1,13.34-.2,19.08-2.58,6-2.48,11-7.31,15.91-12C117.76,35.21,123.19,30,128,30s10.24,5.21,15.5,10.24c4.86,4.67,9.9,9.5,15.9,12,5.74,2.38,12.52,2.48,19.08,2.58,7.44.11,15.14.23,18.82,3.9s3.79,11.38,3.9,18.82c.1,6.56.2,13.34,2.58,19.08,2.48,6,7.31,11,12,15.91,5,5.25,10.24,10.68,10.24,15.49S220.79,138.24,215.76,143.5ZM138,180a10,10,0,1,1-10-10A10,10,0,0,1,138,180Zm28-72c0,16.92-13.89,31-32,33.58V144a6,6,0,0,1-12,0v-8a6,6,0,0,1,6-6c14.34,0,26-9.87,26-22s-11.66-22-26-22-26,9.87-26,22v4a6,6,0,0,1-12,0v-4c0-18.75,17-34,38-34S166,89.25,166,108Z"></path>'),rZ=J('<path d="M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-11.55,39.29c-4.79,5-9.75,10.17-12.38,16.52-2.52,6.1-2.63,13.07-2.73,19.82-.1,7-.21,14.33-3.32,17.43s-10.39,3.22-17.43,3.32c-6.75.1-13.72.21-19.82,2.73-6.35,2.63-11.52,7.59-16.52,12.38S132,224,128,224s-9.15-4.92-14.11-9.69-10.17-9.75-16.52-12.38c-6.1-2.52-13.07-2.63-19.82-2.73-7-.1-14.33-.21-17.43-3.32s-3.22-10.39-3.32-17.43c-.1-6.75-.21-13.72-2.73-19.82-2.63-6.35-7.59-11.52-12.38-16.52S32,132,32,128s4.92-9.15,9.69-14.11,9.75-10.17,12.38-16.52c2.52-6.1,2.63-13.07,2.73-19.82.1-7,.21-14.33,3.32-17.43S70.51,56.9,77.55,56.8c6.75-.1,13.72-.21,19.82-2.73,6.35-2.63,11.52-7.59,16.52-12.38S124,32,128,32s9.15,4.92,14.11,9.69,10.17,9.75,16.52,12.38c6.1,2.52,13.07,2.63,19.82,2.73,7,.1,14.33.21,17.43,3.32s3.22,10.39,3.32,17.43c.1,6.75.21,13.72,2.73,19.82,2.63,6.35,7.59,11.52,12.38,16.52S224,124,224,128,219.08,137.15,214.31,142.11ZM140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180Zm28-72c0,17.38-13.76,31.93-32,35.28V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36S168,88.15,168,108Z"></path>'),nZ=J('<path d="M223,105.58c-4-4.2-8.2-8.54-10-12.8-1.65-4-1.73-9.53-1.82-15.41-.14-9-.29-19.19-6.83-25.74s-16.74-6.69-25.74-6.83c-5.88-.09-11.43-.17-15.41-1.82-4.26-1.76-8.6-5.93-12.8-9.95-6.68-6.41-13.59-13-22.42-13s-15.74,6.62-22.42,13c-4.2,4-8.54,8.2-12.8,10-4,1.65-9.53,1.73-15.41,1.82-9,.14-19.19.29-25.74,6.83S44.94,68.37,44.8,77.37c-.09,5.88-.17,11.43-1.82,15.41-1.76,4.26-5.93,8.6-9.95,12.8-6.41,6.68-13,13.59-13,22.42s6.62,15.74,13,22.42c4,4.2,8.2,8.54,10,12.8,1.65,4,1.73,9.53,1.82,15.41.14,9,.29,19.19,6.83,25.74s16.74,6.69,25.74,6.83c5.88.09,11.43.17,15.41,1.82,4.26,1.76,8.6,5.93,12.8,9.95,6.68,6.41,13.59,13,22.42,13s15.74-6.62,22.42-13c4.2-4,8.54-8.2,12.8-10,4-1.65,9.53-1.73,15.41-1.82,9-.14,19.19-.29,25.74-6.83s6.69-16.74,6.83-25.74c.09-5.88.17-11.43,1.82-15.41,1.76-4.26,5.93-8.6,9.95-12.8,6.41-6.68,13-13.59,13-22.42S229.38,112.26,223,105.58Zm-5.78,39.3c-4.54,4.73-9.24,9.63-11.57,15.28-2.23,5.39-2.33,12-2.43,18.35-.12,8.2-.24,16-4.49,20.2s-12,4.37-20.2,4.49c-6.37.1-13,.2-18.35,2.43-5.65,2.33-10.55,7-15.28,11.57C139.09,222.75,133.62,228,128,228s-11.09-5.25-16.88-10.8c-4.73-4.54-9.63-9.24-15.28-11.57-5.39-2.23-12-2.33-18.35-2.43-8.2-.12-15.95-.24-20.2-4.49s-4.37-12-4.49-20.2c-.1-6.37-.2-13-2.43-18.35-2.33-5.65-7-10.55-11.57-15.28C33.25,139.09,28,133.62,28,128s5.25-11.09,10.8-16.88c4.54-4.73,9.24-9.63,11.57-15.28,2.23-5.39,2.33-12,2.43-18.35.12-8.2.24-15.95,4.49-20.2s12-4.37,20.2-4.49c6.37-.1,13-.2,18.35-2.43,5.65-2.33,10.55-7,15.28-11.57C116.91,33.25,122.38,28,128,28s11.09,5.25,16.88,10.8c4.73,4.54,9.63,9.24,15.28,11.57,5.39,2.23,12,2.33,18.35,2.43,8.2.12,16,.24,20.2,4.49s4.37,12,4.49,20.2c.1,6.37.2,13,2.43,18.35,2.33,5.65,7,10.55,11.57,15.28,5.55,5.79,10.8,11.26,10.8,16.88S222.75,139.09,217.2,144.88ZM136,180a8,8,0,1,1-8-8A8,8,0,0,1,136,180Zm28-72c0,16.44-14,30-32,31.8V144a4,4,0,0,1-8,0v-8a4,4,0,0,1,4-4c15.44,0,28-10.77,28-24s-12.56-24-28-24-28,10.77-28,24v4a4,4,0,0,1-8,0v-4c0-17.64,16.15-32,36-32S164,90.36,164,108Z"></path>'),iZ=J('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function aZ(r,e){Ae(e,!0);const t=sr();let n=tt(e,["$$slots","$$events","$$legacy","children"]),i=q(()=>e.weight??t.weight??"regular"),a=q(()=>e.color??t.color??"currentColor"),o=q(()=>e.size??t.size??"1em"),s=q(()=>e.mirrored??t.mirrored??!1);function l(p){let{weight:m,color:y,size:_,mirrored:w,...b}=p;return b}var u=iZ();let c;var f=K(u);{var h=p=>{var m=Z(),y=G(m);he(y,()=>e.children),I(p,m)};W(f,p=>{e.children&&p(h)})}var v=_e(f,2);{var d=p=>{var m=QW();I(p,m)},g=p=>{var m=Z(),y=G(m);{var _=b=>{var x=$W();I(b,x)},w=b=>{var x=Z(),S=G(x);{var T=A=>{var M=eZ();I(A,M)},C=A=>{var M=Z(),k=G(M);{var L=E=>{var O=tZ();I(E,O)},P=E=>{var O=Z(),V=G(O);{var z=B=>{var F=rZ();I(B,F)},H=B=>{var F=Z(),ee=G(F);{var ae=U=>{var j=nZ();I(U,j)},le=U=>{var j=Gt();j.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),I(U,j)};W(ee,U=>{D(i)==="thin"?U(ae):U(le,!1)},!0)}I(B,F)};W(V,B=>{D(i)==="regular"?B(z):B(H,!1)},!0)}I(E,O)};W(k,E=>{D(i)==="light"?E(L):E(P,!1)},!0)}I(A,M)};W(S,A=>{D(i)==="fill"?A(T):A(C,!1)},!0)}I(b,x)};W(y,b=>{D(i)==="duotone"?b(_):b(w,!1)},!0)}I(p,m)};W(v,p=>{D(i)==="bold"?p(d):p(g,!1)})}ce((p,m)=>c=it(u,c,{xmlns:"http://www.w3.org/2000/svg",role:"img",width:D(o),height:D(o),fill:D(a),transform:D(s)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...p,...m},void 0,!0),[()=>l(t),()=>l(n)]),I(r,u),Ce()}var oZ=J('<path d="M200,36H56A20,20,0,0,0,36,56V200a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,160H60V60H196Z"></path>'),sZ=J('<path d="M208,56V200a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z" opacity="0.2"></path><path d="M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,160H56V56H200V200Z"></path>',1),lZ=J('<path d="M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z"></path>'),uZ=J('<path d="M200,42H56A14,14,0,0,0,42,56V200a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,158a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H200a2,2,0,0,1,2,2Z"></path>'),cZ=J('<path d="M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,160H56V56H200V200Z"></path>'),fZ=J('<path d="M200,44H56A12,12,0,0,0,44,56V200a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,156a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4Z"></path>'),hZ=J('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function vZ(r,e){Ae(e,!0);const t=sr();let n=tt(e,["$$slots","$$events","$$legacy","children"]),i=q(()=>e.weight??t.weight??"regular"),a=q(()=>e.color??t.color??"currentColor"),o=q(()=>e.size??t.size??"1em"),s=q(()=>e.mirrored??t.mirrored??!1);function l(p){let{weight:m,color:y,size:_,mirrored:w,...b}=p;return b}var u=hZ();let c;var f=K(u);{var h=p=>{var m=Z(),y=G(m);he(y,()=>e.children),I(p,m)};W(f,p=>{e.children&&p(h)})}var v=_e(f,2);{var d=p=>{var m=oZ();I(p,m)},g=p=>{var m=Z(),y=G(m);{var _=b=>{var x=sZ();I(b,x)},w=b=>{var x=Z(),S=G(x);{var T=A=>{var M=lZ();I(A,M)},C=A=>{var M=Z(),k=G(M);{var L=E=>{var O=uZ();I(E,O)},P=E=>{var O=Z(),V=G(O);{var z=B=>{var F=cZ();I(B,F)},H=B=>{var F=Z(),ee=G(F);{var ae=U=>{var j=fZ();I(U,j)},le=U=>{var j=Gt();j.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),I(U,j)};W(ee,U=>{D(i)==="thin"?U(ae):U(le,!1)},!0)}I(B,F)};W(V,B=>{D(i)==="regular"?B(z):B(H,!1)},!0)}I(E,O)};W(k,E=>{D(i)==="light"?E(L):E(P,!1)},!0)}I(A,M)};W(S,A=>{D(i)==="fill"?A(T):A(C,!1)},!0)}I(b,x)};W(y,b=>{D(i)==="duotone"?b(_):b(w,!1)},!0)}I(p,m)};W(v,p=>{D(i)==="bold"?p(d):p(g,!1)})}ce((p,m)=>c=it(u,c,{xmlns:"http://www.w3.org/2000/svg",role:"img",width:D(o),height:D(o),fill:D(a),transform:D(s)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...p,...m},void 0,!0),[()=>l(t),()=>l(n)]),I(r,u),Ce()}var dZ=J('<path d="M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"></path>'),pZ=J('<path d="M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z" opacity="0.2"></path><path d="M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"></path>',1),gZ=J('<path d="M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"></path>'),mZ=J('<path d="M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"></path>'),yZ=J('<path d="M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"></path>'),_Z=J('<path d="M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"></path>'),wZ=J('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function bZ(r,e){Ae(e,!0);const t=sr();let n=tt(e,["$$slots","$$events","$$legacy","children"]),i=q(()=>e.weight??t.weight??"regular"),a=q(()=>e.color??t.color??"currentColor"),o=q(()=>e.size??t.size??"1em"),s=q(()=>e.mirrored??t.mirrored??!1);function l(p){let{weight:m,color:y,size:_,mirrored:w,...b}=p;return b}var u=wZ();let c;var f=K(u);{var h=p=>{var m=Z(),y=G(m);he(y,()=>e.children),I(p,m)};W(f,p=>{e.children&&p(h)})}var v=_e(f,2);{var d=p=>{var m=dZ();I(p,m)},g=p=>{var m=Z(),y=G(m);{var _=b=>{var x=pZ();I(b,x)},w=b=>{var x=Z(),S=G(x);{var T=A=>{var M=gZ();I(A,M)},C=A=>{var M=Z(),k=G(M);{var L=E=>{var O=mZ();I(E,O)},P=E=>{var O=Z(),V=G(O);{var z=B=>{var F=yZ();I(B,F)},H=B=>{var F=Z(),ee=G(F);{var ae=U=>{var j=_Z();I(U,j)},le=U=>{var j=Gt();j.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),I(U,j)};W(ee,U=>{D(i)==="thin"?U(ae):U(le,!1)},!0)}I(B,F)};W(V,B=>{D(i)==="regular"?B(z):B(H,!1)},!0)}I(E,O)};W(k,E=>{D(i)==="light"?E(L):E(P,!1)},!0)}I(A,M)};W(S,A=>{D(i)==="fill"?A(T):A(C,!1)},!0)}I(b,x)};W(y,b=>{D(i)==="duotone"?b(_):b(w,!1)},!0)}I(p,m)};W(v,p=>{D(i)==="bold"?p(d):p(g,!1)})}ce((p,m)=>c=it(u,c,{xmlns:"http://www.w3.org/2000/svg",role:"img",width:D(o),height:D(o),fill:D(a),transform:D(s)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...p,...m},void 0,!0),[()=>l(t),()=>l(n)]),I(r,u),Ce()}var xZ=J('<path d="M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"></path>'),SZ=J('<path d="M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z" opacity="0.2"></path><path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"></path>',1),TZ=J('<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"></path>'),AZ=J('<path d="M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"></path>'),CZ=J('<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"></path>'),DZ=J('<path d="M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"></path>'),MZ=J('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function qM(r,e){Ae(e,!0);const t=sr();let n=tt(e,["$$slots","$$events","$$legacy","children"]),i=q(()=>e.weight??t.weight??"regular"),a=q(()=>e.color??t.color??"currentColor"),o=q(()=>e.size??t.size??"1em"),s=q(()=>e.mirrored??t.mirrored??!1);function l(p){let{weight:m,color:y,size:_,mirrored:w,...b}=p;return b}var u=MZ();let c;var f=K(u);{var h=p=>{var m=Z(),y=G(m);he(y,()=>e.children),I(p,m)};W(f,p=>{e.children&&p(h)})}var v=_e(f,2);{var d=p=>{var m=xZ();I(p,m)},g=p=>{var m=Z(),y=G(m);{var _=b=>{var x=SZ();I(b,x)},w=b=>{var x=Z(),S=G(x);{var T=A=>{var M=TZ();I(A,M)},C=A=>{var M=Z(),k=G(M);{var L=E=>{var O=AZ();I(E,O)},P=E=>{var O=Z(),V=G(O);{var z=B=>{var F=CZ();I(B,F)},H=B=>{var F=Z(),ee=G(F);{var ae=U=>{var j=DZ();I(U,j)},le=U=>{var j=Gt();j.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),I(U,j)};W(ee,U=>{D(i)==="thin"?U(ae):U(le,!1)},!0)}I(B,F)};W(V,B=>{D(i)==="regular"?B(z):B(H,!1)},!0)}I(E,O)};W(k,E=>{D(i)==="light"?E(L):E(P,!1)},!0)}I(A,M)};W(S,A=>{D(i)==="fill"?A(T):A(C,!1)},!0)}I(b,x)};W(y,b=>{D(i)==="duotone"?b(_):b(w,!1)},!0)}I(p,m)};W(v,p=>{D(i)==="bold"?p(d):p(g,!1)})}ce((p,m)=>c=it(u,c,{xmlns:"http://www.w3.org/2000/svg",role:"img",width:D(o),height:D(o),fill:D(a),transform:D(s)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...p,...m},void 0,!0),[()=>l(t),()=>l(n)]),I(r,u),Ce()}var IZ=J('<path d="M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"></path>'),EZ=J('<path d="M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z" opacity="0.2"></path><path d="M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"></path>',1),LZ=J('<path d="M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"></path>'),kZ=J('<path d="M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"></path>'),PZ=J('<path d="M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"></path>'),NZ=J('<path d="M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"></path>'),OZ=J('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function RZ(r,e){Ae(e,!0);const t=sr();let n=tt(e,["$$slots","$$events","$$legacy","children"]),i=q(()=>e.weight??t.weight??"regular"),a=q(()=>e.color??t.color??"currentColor"),o=q(()=>e.size??t.size??"1em"),s=q(()=>e.mirrored??t.mirrored??!1);function l(p){let{weight:m,color:y,size:_,mirrored:w,...b}=p;return b}var u=OZ();let c;var f=K(u);{var h=p=>{var m=Z(),y=G(m);he(y,()=>e.children),I(p,m)};W(f,p=>{e.children&&p(h)})}var v=_e(f,2);{var d=p=>{var m=IZ();I(p,m)},g=p=>{var m=Z(),y=G(m);{var _=b=>{var x=EZ();I(b,x)},w=b=>{var x=Z(),S=G(x);{var T=A=>{var M=LZ();I(A,M)},C=A=>{var M=Z(),k=G(M);{var L=E=>{var O=kZ();I(E,O)},P=E=>{var O=Z(),V=G(O);{var z=B=>{var F=PZ();I(B,F)},H=B=>{var F=Z(),ee=G(F);{var ae=U=>{var j=NZ();I(U,j)},le=U=>{var j=Gt();j.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),I(U,j)};W(ee,U=>{D(i)==="thin"?U(ae):U(le,!1)},!0)}I(B,F)};W(V,B=>{D(i)==="regular"?B(z):B(H,!1)},!0)}I(E,O)};W(k,E=>{D(i)==="light"?E(L):E(P,!1)},!0)}I(A,M)};W(S,A=>{D(i)==="fill"?A(T):A(C,!1)},!0)}I(b,x)};W(y,b=>{D(i)==="duotone"?b(_):b(w,!1)},!0)}I(p,m)};W(v,p=>{D(i)==="bold"?p(d):p(g,!1)})}ce((p,m)=>c=it(u,c,{xmlns:"http://www.w3.org/2000/svg",role:"img",width:D(o),height:D(o),fill:D(a),transform:D(s)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...p,...m},void 0,!0),[()=>l(t),()=>l(n)]),I(r,u),Ce()}var VZ=J('<path d="M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"></path>'),zZ=J('<path d="M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z" opacity="0.2"></path><path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path>',1),BZ=J('<path d="M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path>'),FZ=J('<path d="M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"></path>'),HZ=J('<path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path>'),GZ=J('<path d="M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"></path>'),WZ=J('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function Fu(r,e){Ae(e,!0);const t=sr();let n=tt(e,["$$slots","$$events","$$legacy","children"]),i=q(()=>e.weight??t.weight??"regular"),a=q(()=>e.color??t.color??"currentColor"),o=q(()=>e.size??t.size??"1em"),s=q(()=>e.mirrored??t.mirrored??!1);function l(p){let{weight:m,color:y,size:_,mirrored:w,...b}=p;return b}var u=WZ();let c;var f=K(u);{var h=p=>{var m=Z(),y=G(m);he(y,()=>e.children),I(p,m)};W(f,p=>{e.children&&p(h)})}var v=_e(f,2);{var d=p=>{var m=VZ();I(p,m)},g=p=>{var m=Z(),y=G(m);{var _=b=>{var x=zZ();I(b,x)},w=b=>{var x=Z(),S=G(x);{var T=A=>{var M=BZ();I(A,M)},C=A=>{var M=Z(),k=G(M);{var L=E=>{var O=FZ();I(E,O)},P=E=>{var O=Z(),V=G(O);{var z=B=>{var F=HZ();I(B,F)},H=B=>{var F=Z(),ee=G(F);{var ae=U=>{var j=GZ();I(U,j)},le=U=>{var j=Gt();j.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),I(U,j)};W(ee,U=>{D(i)==="thin"?U(ae):U(le,!1)},!0)}I(B,F)};W(V,B=>{D(i)==="regular"?B(z):B(H,!1)},!0)}I(E,O)};W(k,E=>{D(i)==="light"?E(L):E(P,!1)},!0)}I(A,M)};W(S,A=>{D(i)==="fill"?A(T):A(C,!1)},!0)}I(b,x)};W(y,b=>{D(i)==="duotone"?b(_):b(w,!1)},!0)}I(p,m)};W(v,p=>{D(i)==="bold"?p(d):p(g,!1)})}ce((p,m)=>c=it(u,c,{xmlns:"http://www.w3.org/2000/svg",role:"img",width:D(o),height:D(o),fill:D(a),transform:D(s)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...p,...m},void 0,!0),[()=>l(t),()=>l(n)]),I(r,u),Ce()}var ZZ=se('<span>from <span class="text-primary"> </span></span>'),UZ=se('<span>to <span class="text-primary"> </span></span>'),YZ=se('<span>by <span class="text-primary"> </span></span>'),XZ=se('<div><div class="flex min-h-12 flex-col items-center gap-1.5"><div class="w-0.5 grow bg-neutral group-first:invisible"></div> <div class="flex h-5 w-5 shrink-0 items-center justify-center rounded bg-neutral p-0.5 text-secondary"><!></div> <div class="w-0.5 grow bg-neutral group-last:invisible"></div></div> <div class="flex items-center py-4"><div class="text-secondary"><span class="text-primary"> </span> <!> <!> <span class="px-0.5">⸱</span> <span> </span> <!></div></div></div>');function qZ(r,e){Ae(e,!0);const t={add:XM,edit:RW,success:KG,start:ZW,pause:MW,stop:vZ,delete:bZ,failed:qM};function n(b){try{const x=We.fromISO(b);return x.isValid?x.toLocaleString(We.DATETIME_MED,{locale:navigator.language??"en-US"}):b}catch{return b}}let i=R(e,"class",3,"");var a=XZ(),o=K(a),s=_e(K(o),2),l=K(s);Fn(l,()=>t[e.activity.icon],(b,x)=>{x(b,{})});var u=_e(o,2),c=K(u),f=K(c),h=K(f),v=_e(f,2);{var d=b=>{var x=ZZ(),S=_e(K(x)),T=K(S);ce(()=>Ut(T,e.activity.previous_value)),I(b,x)};W(v,b=>{e.activity.previous_value&&b(d)})}var g=_e(v,2);{var p=b=>{var x=UZ(),S=_e(K(x)),T=K(S);ce(()=>Ut(T,e.activity.value)),I(b,x)};W(g,b=>{e.activity.value&&b(p)})}var m=_e(g,4),y=K(m),_=_e(m,2);{var w=b=>{var x=YZ(),S=_e(K(x)),T=K(S);ce(()=>Ut(T,e.activity.author)),I(b,x)};W(_,b=>{e.activity.author&&b(w)})}ce(b=>{ft(a,`group flex items-stretch gap-3 ${i()}`),Ut(h,e.activity.label),Ut(y,b)},[()=>n(e.activity.timestamp)]),I(r,a),Ce()}Hz();function Hu(r){ie(r,r.v+1)}function jZ(r){let e=0,t=ar(0),n;return()=>{iB()&&(D(t),Ra(()=>(e===0&&(n=Hr(()=>r(()=>Hu(t)))),e+=1,()=>{Y1().then(()=>{e-=1,e===0&&(n==null||n(),n=void 0)})})))}}const k_="-",KZ=r=>{const e=QZ(r),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=r;return{getClassGroupId:o=>{const s=o.split(k_);return s[0]===""&&s.length!==1&&s.shift(),jM(s,e)||JZ(o)},getConflictingClassGroupIds:(o,s)=>{const l=t[o]||[];return s&&n[o]?[...l,...n[o]]:l}}},jM=(r,e)=>{var o;if(r.length===0)return e.classGroupId;const t=r[0],n=e.nextPart.get(t),i=n?jM(r.slice(1),n):void 0;if(i)return i;if(e.validators.length===0)return;const a=r.join(k_);return(o=e.validators.find(({validator:s})=>s(a)))==null?void 0:o.classGroupId},KM=/^\[(.+)\]$/,JZ=r=>{if(KM.test(r)){const e=KM.exec(r)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}},QZ=r=>{const{theme:e,prefix:t}=r,n={nextPart:new Map,validators:[]};return eU(Object.entries(r.classGroups),t).forEach(([a,o])=>{P_(o,n,a,e)}),n},P_=(r,e,t,n)=>{r.forEach(i=>{if(typeof i=="string"){const a=i===""?e:JM(e,i);a.classGroupId=t;return}if(typeof i=="function"){if($Z(i)){P_(i(n),e,t,n);return}e.validators.push({validator:i,classGroupId:t});return}Object.entries(i).forEach(([a,o])=>{P_(o,JM(e,a),t,n)})})},JM=(r,e)=>{let t=r;return e.split(k_).forEach(n=>{t.nextPart.has(n)||t.nextPart.set(n,{nextPart:new Map,validators:[]}),t=t.nextPart.get(n)}),t},$Z=r=>r.isThemeGetter,eU=(r,e)=>e?r.map(([t,n])=>{const i=n.map(a=>typeof a=="string"?e+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,s])=>[e+o,s])):a);return[t,i]}):r,tU=r=>{if(r<1)return{get:()=>{},set:()=>{}};let e=0,t=new Map,n=new Map;const i=(a,o)=>{t.set(a,o),e++,e>r&&(e=0,n=t,t=new Map)};return{get(a){let o=t.get(a);if(o!==void 0)return o;if((o=n.get(a))!==void 0)return i(a,o),o},set(a,o){t.has(a)?t.set(a,o):i(a,o)}}},QM="!",rU=r=>{const{separator:e,experimentalParseClassName:t}=r,n=e.length===1,i=e[0],a=e.length,o=s=>{const l=[];let u=0,c=0,f;for(let p=0;p<s.length;p++){let m=s[p];if(u===0){if(m===i&&(n||s.slice(p,p+a)===e)){l.push(s.slice(c,p)),c=p+a;continue}if(m==="/"){f=p;continue}}m==="["?u++:m==="]"&&u--}const h=l.length===0?s:s.substring(c),v=h.startsWith(QM),d=v?h.substring(1):h,g=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:v,baseClassName:d,maybePostfixModifierPosition:g}};return t?s=>t({className:s,parseClassName:o}):o},nU=r=>{if(r.length<=1)return r;const e=[];let t=[];return r.forEach(n=>{n[0]==="["?(e.push(...t.sort(),n),t=[]):t.push(n)}),e.push(...t.sort()),e},iU=r=>({cache:tU(r.cacheSize),parseClassName:rU(r),...KZ(r)}),aU=/\s+/,oU=(r,e)=>{const{parseClassName:t,getClassGroupId:n,getConflictingClassGroupIds:i}=e,a=[],o=r.trim().split(aU);let s="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:v}=t(u);let d=!!v,g=n(d?h.substring(0,v):h);if(!g){if(!d){s=u+(s.length>0?" "+s:s);continue}if(g=n(h),!g){s=u+(s.length>0?" "+s:s);continue}d=!1}const p=nU(c).join(":"),m=f?p+QM:p,y=m+g;if(a.includes(y))continue;a.push(y);const _=i(g,d);for(let w=0;w<_.length;++w){const b=_[w];a.push(m+b)}s=u+(s.length>0?" "+s:s)}return s};function $M(){let r=0,e,t,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=e8(e))&&(n&&(n+=" "),n+=t);return n}const e8=r=>{if(typeof r=="string")return r;let e,t="";for(let n=0;n<r.length;n++)r[n]&&(e=e8(r[n]))&&(t&&(t+=" "),t+=e);return t};function sU(r,...e){let t,n,i,a=o;function o(l){const u=e.reduce((c,f)=>f(c),r());return t=iU(u),n=t.cache.get,i=t.cache.set,a=s,s(l)}function s(l){const u=n(l);if(u)return u;const c=oU(l,t);return i(l,c),c}return function(){return a($M.apply(null,arguments))}}const Yt=r=>{const e=t=>t[r]||[];return e.isThemeGetter=!0,e},t8=/^\[(?:([a-z-]+):)?(.+)\]$/i,lU=/^\d+\/\d+$/,uU=new Set(["px","full","screen"]),cU=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fU=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,hU=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,vU=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dU=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Fa=r=>Gu(r)||uU.has(r)||lU.test(r),Po=r=>Wu(r,"length",xU),Gu=r=>!!r&&!Number.isNaN(Number(r)),N_=r=>Wu(r,"number",Gu),Jf=r=>!!r&&Number.isInteger(Number(r)),pU=r=>r.endsWith("%")&&Gu(r.slice(0,-1)),lt=r=>t8.test(r),No=r=>cU.test(r),gU=new Set(["length","size","percentage"]),mU=r=>Wu(r,gU,r8),yU=r=>Wu(r,"position",r8),_U=new Set(["image","url"]),wU=r=>Wu(r,_U,TU),bU=r=>Wu(r,"",SU),Qf=()=>!0,Wu=(r,e,t)=>{const n=t8.exec(r);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):t(n[2]):!1},xU=r=>fU.test(r)&&!hU.test(r),r8=()=>!1,SU=r=>vU.test(r),TU=r=>dU.test(r),n8=sU(()=>{const r=Yt("colors"),e=Yt("spacing"),t=Yt("blur"),n=Yt("brightness"),i=Yt("borderColor"),a=Yt("borderRadius"),o=Yt("borderSpacing"),s=Yt("borderWidth"),l=Yt("contrast"),u=Yt("grayscale"),c=Yt("hueRotate"),f=Yt("invert"),h=Yt("gap"),v=Yt("gradientColorStops"),d=Yt("gradientColorStopPositions"),g=Yt("inset"),p=Yt("margin"),m=Yt("opacity"),y=Yt("padding"),_=Yt("saturate"),w=Yt("scale"),b=Yt("sepia"),x=Yt("skew"),S=Yt("space"),T=Yt("translate"),C=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto",lt,e],k=()=>[lt,e],L=()=>["",Fa,Po],P=()=>["auto",Gu,lt],E=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],H=()=>["","0",lt],B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>[Gu,lt];return{cacheSize:500,separator:":",theme:{colors:[Qf],spacing:[Fa,Po],blur:["none","",No,lt],brightness:F(),borderColor:[r],borderRadius:["none","","full",No,lt],borderSpacing:k(),borderWidth:L(),contrast:F(),grayscale:H(),hueRotate:F(),invert:H(),gap:k(),gradientColorStops:[r],gradientColorStopPositions:[pU,Po],inset:M(),margin:M(),opacity:F(),padding:k(),saturate:F(),scale:F(),sepia:H(),skew:F(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",lt]}],container:["container"],columns:[{columns:[No]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...E(),lt]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Jf,lt]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",lt]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",Jf,lt]}],"grid-cols":[{"grid-cols":[Qf]}],"col-start-end":[{col:["auto",{span:["full",Jf,lt]},lt]}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":[Qf]}],"row-start-end":[{row:["auto",{span:[Jf,lt]},lt]}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",lt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",lt]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",lt,e]}],"min-w":[{"min-w":[lt,e,"min","max","fit"]}],"max-w":[{"max-w":[lt,e,"none","full","min","max","fit","prose",{screen:[No]},No]}],h:[{h:[lt,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[lt,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[lt,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[lt,e,"auto","min","max","fit"]}],"font-size":[{text:["base",No,Po]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",N_]}],"font-family":[{font:[Qf]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",lt]}],"line-clamp":[{"line-clamp":["none",Gu,N_]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Fa,lt]}],"list-image":[{"list-image":["none",lt]}],"list-style-type":[{list:["none","disc","decimal",lt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Fa,Po]}],"underline-offset":[{"underline-offset":["auto",Fa,lt]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",lt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",lt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...E(),yU]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",mU]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},wU]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[d]}],"gradient-via-pos":[{via:[d]}],"gradient-to-pos":[{to:[d]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:O()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[Fa,lt]}],"outline-w":[{outline:[Fa,Po]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Fa,Po]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",No,bU]}],"shadow-color":[{shadow:[Qf]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",No,lt]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[_]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",lt]}],duration:[{duration:F()}],ease:[{ease:["linear","in","out","in-out",lt]}],delay:[{delay:F()}],animate:[{animate:["none","spin","ping","pulse","bounce",lt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Jf,lt]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[x]}],"skew-y":[{"skew-y":[x]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",lt]}],accent:[{accent:["auto",r]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",lt]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",lt]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[Fa,Po,N_]}],stroke:[{stroke:[r,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),AU=r=>r;function i8(r){const e=r-1;return e*e*e+1}function a8(r){const e=typeof r=="string"&&r.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[r,"px"]}function CU(r,{delay:e=0,duration:t=400,easing:n=AU}={}){const i=+getComputedStyle(r).opacity;return{delay:e,duration:t,easing:n,css:a=>`opacity: ${a*i}`}}function DU(r,{delay:e=0,duration:t=400,easing:n=i8,x:i=0,y:a=0,opacity:o=0}={}){const s=getComputedStyle(r),l=+s.opacity,u=s.transform==="none"?"":s.transform,c=l*(1-o),[f,h]=a8(i),[v,d]=a8(a);return{delay:e,duration:t,easing:n,css:(g,p)=>`
|
|
2
|
-
transform: ${u} translate(${(1-g)*f}${h}, ${(1-g)*v}${d});
|
|
3
|
-
opacity: ${l-c*p}`}}function MU(r,{delay:e=0,duration:t=400,easing:n=i8,axis:i="y"}={}){const a=getComputedStyle(r),o=+a.opacity,s=i==="y"?"height":"width",l=parseFloat(a[s]),u=i==="y"?["top","bottom"]:["left","right"],c=u.map(m=>`${m[0].toUpperCase()}${m.slice(1)}`),f=parseFloat(a[`padding${c[0]}`]),h=parseFloat(a[`padding${c[1]}`]),v=parseFloat(a[`margin${c[0]}`]),d=parseFloat(a[`margin${c[1]}`]),g=parseFloat(a[`border${c[0]}Width`]),p=parseFloat(a[`border${c[1]}Width`]);return{delay:e,duration:t,easing:n,css:m=>`overflow: hidden;opacity: ${Math.min(m*20,1)*o};${s}: ${m*l}px;padding-${u[0]}: ${m*f}px;padding-${u[1]}: ${m*h}px;margin-${u[0]}: ${m*v}px;margin-${u[1]}: ${m*d}px;border-${u[0]}-width: ${m*g}px;border-${u[1]}-width: ${m*p}px;min-${s}: 0`}}const IU={gray:"bg-gray-50 dark:bg-gray-800",red:"bg-red-50 dark:bg-gray-800",yellow:"bg-yellow-50 dark:bg-gray-800 ",green:"bg-green-50 dark:bg-gray-800 ",indigo:"bg-indigo-50 dark:bg-gray-800 ",purple:"bg-purple-50 dark:bg-gray-800 ",pink:"bg-pink-50 dark:bg-gray-800 ",blue:"bg-blue-50 dark:bg-gray-800 ",light:"bg-gray-50 dark:bg-gray-700",dark:"bg-gray-50 dark:bg-gray-800",default:"bg-white dark:bg-gray-800",dropdown:"bg-white dark:bg-gray-700",navbar:"bg-white dark:bg-gray-900",navbarUl:"bg-gray-50 dark:bg-gray-800",form:"bg-gray-50 dark:bg-gray-700",primary:"bg-primary-50 dark:bg-gray-800 ",orange:"bg-orange-50 dark:bg-orange-800",none:""};function EU(r,e){const t=Du(e,["children","$$slots","$$events","$$legacy"]),n=Du(t,["tag","color","rounded","border","shadow","node","use","options","role","transition","params","open"]);Ae(e,!1);const i=()=>{};J1("background",!0);let a=R(e,"tag",24,()=>n.href?"a":"div"),o=R(e,"color",12,"default"),s=R(e,"rounded",8,!1),l=R(e,"border",8,!1),u=R(e,"shadow",8,!1),c=R(e,"node",28,()=>{}),f=R(e,"use",8,i),h=R(e,"options",24,()=>({})),v=R(e,"role",24,()=>{}),d=R(e,"transition",24,()=>{}),g=R(e,"params",24,()=>({})),p=R(e,"open",8,!0);const m=yp(),y={gray:"text-gray-800 dark:text-gray-300",red:"text-red-800 dark:text-red-400",yellow:"text-yellow-800 dark:text-yellow-300",green:"text-green-800 dark:text-green-400",indigo:"text-indigo-800 dark:text-indigo-400",purple:"text-purple-800 dark:text-purple-400",pink:"text-pink-800 dark:text-pink-400",blue:"text-blue-800 dark:text-blue-400",light:"text-gray-700 dark:text-gray-300",dark:"text-gray-700 dark:text-gray-300",default:"text-gray-500 dark:text-gray-400",dropdown:"text-gray-700 dark:text-gray-200",navbar:"text-gray-700 dark:text-gray-200",navbarUl:"text-gray-700 dark:text-gray-400",form:"text-gray-900 dark:text-white",primary:"text-primary-800 dark:text-primary-400",orange:"text-orange-800 dark:text-orange-400",none:""},_={gray:"border-gray-300 dark:border-gray-800 divide-gray-300 dark:divide-gray-800",red:"border-red-300 dark:border-red-800 divide-red-300 dark:divide-red-800",yellow:"border-yellow-300 dark:border-yellow-800 divide-yellow-300 dark:divide-yellow-800",green:"border-green-300 dark:border-green-800 divide-green-300 dark:divide-green-800",indigo:"border-indigo-300 dark:border-indigo-800 divide-indigo-300 dark:divide-indigo-800",purple:"border-purple-300 dark:border-purple-800 divide-purple-300 dark:divide-purple-800",pink:"border-pink-300 dark:border-pink-800 divide-pink-300 dark:divide-pink-800",blue:"border-blue-300 dark:border-blue-800 divide-blue-300 dark:divide-blue-800",light:"border-gray-500 divide-gray-500",dark:"border-gray-500 divide-gray-500",default:"border-gray-200 dark:border-gray-700 divide-gray-200 dark:divide-gray-700",dropdown:"border-gray-100 dark:border-gray-600 divide-gray-100 dark:divide-gray-600",navbar:"border-gray-100 dark:border-gray-700 divide-gray-100 dark:divide-gray-700",navbarUl:"border-gray-100 dark:border-gray-700 divide-gray-100 dark:divide-gray-700",form:"border-gray-300 dark:border-gray-700 divide-gray-300 dark:divide-gray-700",primary:"border-primary-500 dark:border-primary-200 divide-primary-500 dark:divide-primary-200 ",orange:"border-orange-300 dark:border-orange-800 divide-orange-300 dark:divide-orange-800",none:""};let w=Pt();Ke(()=>ge(p()),()=>{m(p()?"open":"close")}),Ke(()=>ge(p()),()=>{m("show",p())}),Ke(()=>ge(o()),()=>{o(o()??"default")}),Ke(()=>ge(o()),()=>{J1("color",o())}),Ke(()=>(ge(o()),ge(s()),ge(l()),ge(u()),ge(t)),()=>{ie(w,n8(IU[o()],y[o()],s()&&"rounded-lg",l()&&"border",_[o()],u()&&"shadow-md",t.class))}),Vf(),Hf();var b=Z(),x=G(b);{var S=C=>{var A=Z(),M=G(A);aD(M,a,!1,(k,L)=>{Os(k,(V,z)=>{var H;return(H=f())==null?void 0:H(V,z)},h),za(k,V=>c(V),()=>c());let P;ce(()=>P=it(k,P,{role:v(),...n,class:D(w)},void 0,k.namespaceURI===O1,k.nodeName.includes("-"))),mp(3,k,d,g),At("click",k,function(V){$r.call(this,e,V)}),At("mouseenter",k,function(V){$r.call(this,e,V)}),At("mouseleave",k,function(V){$r.call(this,e,V)}),At("focusin",k,function(V){$r.call(this,e,V)}),At("focusout",k,function(V){$r.call(this,e,V)});var E=Z(),O=G(E);or(O,e,"default",{},null),I(L,E)}),I(C,A)},T=C=>{var A=Z(),M=G(A);{var k=L=>{var P=Z(),E=G(P);aD(E,a,!1,(O,V)=>{Os(O,(F,ee)=>{var ae;return(ae=f())==null?void 0:ae(F,ee)},h),za(O,F=>c(F),()=>c());let z;ce(()=>z=it(O,z,{role:v(),...n,class:D(w)},void 0,O.namespaceURI===O1,O.nodeName.includes("-"))),At("click",O,function(F){$r.call(this,e,F)}),At("mouseenter",O,function(F){$r.call(this,e,F)}),At("mouseleave",O,function(F){$r.call(this,e,F)}),At("focusin",O,function(F){$r.call(this,e,F)}),At("focusout",O,function(F){$r.call(this,e,F)});var H=Z(),B=G(H);or(B,e,"default",{},null),I(V,H)}),I(L,P)};W(M,L=>{p()&&L(k)},!0)}I(C,A)};W(x,C=>{d()&&p()?C(S):C(T,!1)})}I(r,b),Ce()}const Zu=Math.min,Hs=Math.max,Bp=Math.round,Fp=Math.floor,Ji=r=>({x:r,y:r}),LU={left:"right",right:"left",bottom:"top",top:"bottom"},kU={start:"end",end:"start"};function O_(r,e,t){return Hs(r,Zu(e,t))}function $f(r,e){return typeof r=="function"?r(e):r}function Gs(r){return r.split("-")[0]}function eh(r){return r.split("-")[1]}function o8(r){return r==="x"?"y":"x"}function R_(r){return r==="y"?"height":"width"}function Uu(r){return["top","bottom"].includes(Gs(r))?"y":"x"}function V_(r){return o8(Uu(r))}function PU(r,e,t){t===void 0&&(t=!1);const n=eh(r),i=V_(r),a=R_(i);let o=i==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(o=Hp(o)),[o,Hp(o)]}function NU(r){const e=Hp(r);return[z_(r),e,z_(e)]}function z_(r){return r.replace(/start|end/g,e=>kU[e])}function OU(r,e,t){const n=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(r){case"top":case"bottom":return t?e?i:n:e?n:i;case"left":case"right":return e?a:o;default:return[]}}function RU(r,e,t,n){const i=eh(r);let a=OU(Gs(r),t==="start",n);return i&&(a=a.map(o=>o+"-"+i),e&&(a=a.concat(a.map(z_)))),a}function Hp(r){return r.replace(/left|right|bottom|top/g,e=>LU[e])}function VU(r){return{top:0,right:0,bottom:0,left:0,...r}}function s8(r){return typeof r!="number"?VU(r):{top:r,right:r,bottom:r,left:r}}function Gp(r){const{x:e,y:t,width:n,height:i}=r;return{width:n,height:i,top:t,left:e,right:e+n,bottom:t+i,x:e,y:t}}function l8(r,e,t){let{reference:n,floating:i}=r;const a=Uu(e),o=V_(e),s=R_(o),l=Gs(e),u=a==="y",c=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,h=n[s]/2-i[s]/2;let v;switch(l){case"top":v={x:c,y:n.y-i.height};break;case"bottom":v={x:c,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:f};break;case"left":v={x:n.x-i.width,y:f};break;default:v={x:n.x,y:n.y}}switch(eh(e)){case"start":v[o]-=h*(t&&u?-1:1);break;case"end":v[o]+=h*(t&&u?-1:1);break}return v}const zU=async(r,e,t)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:o}=t,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let u=await o.getElementRects({reference:r,floating:e,strategy:i}),{x:c,y:f}=l8(u,n,l),h=n,v={},d=0;for(let g=0;g<s.length;g++){const{name:p,fn:m}=s[g],{x:y,y:_,data:w,reset:b}=await m({x:c,y:f,initialPlacement:n,placement:h,strategy:i,middlewareData:v,rects:u,platform:o,elements:{reference:r,floating:e}});c=y??c,f=_??f,v={...v,[p]:{...v[p],...w}},b&&d<=50&&(d++,typeof b=="object"&&(b.placement&&(h=b.placement),b.rects&&(u=b.rects===!0?await o.getElementRects({reference:r,floating:e,strategy:i}):b.rects),{x:c,y:f}=l8(u,h,l)),g=-1)}return{x:c,y:f,placement:h,strategy:i,middlewareData:v}};async function u8(r,e){var t;e===void 0&&(e={});const{x:n,y:i,platform:a,rects:o,elements:s,strategy:l}=r,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:h=!1,padding:v=0}=$f(e,r),d=s8(v),p=s[h?f==="floating"?"reference":"floating":f],m=Gp(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(p)))==null||t?p:p.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y=f==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),w=await(a.isElement==null?void 0:a.isElement(_))?await(a.getScale==null?void 0:a.getScale(_))||{x:1,y:1}:{x:1,y:1},b=Gp(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:_,strategy:l}):y);return{top:(m.top-b.top+d.top)/w.y,bottom:(b.bottom-m.bottom+d.bottom)/w.y,left:(m.left-b.left+d.left)/w.x,right:(b.right-m.right+d.right)/w.x}}const BU=r=>({name:"arrow",options:r,async fn(e){const{x:t,y:n,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=e,{element:u,padding:c=0}=$f(r,e)||{};if(u==null)return{};const f=s8(c),h={x:t,y:n},v=V_(i),d=R_(v),g=await o.getDimensions(u),p=v==="y",m=p?"top":"left",y=p?"bottom":"right",_=p?"clientHeight":"clientWidth",w=a.reference[d]+a.reference[v]-h[v]-a.floating[d],b=h[v]-a.reference[v],x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let S=x?x[_]:0;(!S||!await(o.isElement==null?void 0:o.isElement(x)))&&(S=s.floating[_]||a.floating[d]);const T=w/2-b/2,C=S/2-g[d]/2-1,A=Zu(f[m],C),M=Zu(f[y],C),k=A,L=S-g[d]-M,P=S/2-g[d]/2+T,E=O_(k,P,L),O=!l.arrow&&eh(i)!=null&&P!==E&&a.reference[d]/2-(P<k?A:M)-g[d]/2<0,V=O?P<k?P-k:P-L:0;return{[v]:h[v]+V,data:{[v]:E,centerOffset:P-E-V,...O&&{alignmentOffset:V}},reset:O}}}),FU=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(e){var t,n;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:u}=e,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:g=!0,...p}=$f(r,e);if((t=a.arrow)!=null&&t.alignmentOffset)return{};const m=Gs(i),y=Uu(s),_=Gs(s)===s,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=h||(_||!g?[Hp(s)]:NU(s)),x=d!=="none";!h&&x&&b.push(...RU(s,g,d,w));const S=[s,...b],T=await u8(e,p),C=[];let A=((n=a.flip)==null?void 0:n.overflows)||[];if(c&&C.push(T[m]),f){const P=PU(i,o,w);C.push(T[P[0]],T[P[1]])}if(A=[...A,{placement:i,overflows:C}],!C.every(P=>P<=0)){var M,k;const P=(((M=a.flip)==null?void 0:M.index)||0)+1,E=S[P];if(E)return{data:{index:P,overflows:A},reset:{placement:E}};let O=(k=A.filter(V=>V.overflows[0]<=0).sort((V,z)=>V.overflows[1]-z.overflows[1])[0])==null?void 0:k.placement;if(!O)switch(v){case"bestFit":{var L;const V=(L=A.filter(z=>{if(x){const H=Uu(z.placement);return H===y||H==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(H=>H>0).reduce((H,B)=>H+B,0)]).sort((z,H)=>z[1]-H[1])[0])==null?void 0:L[0];V&&(O=V);break}case"initialPlacement":O=s;break}if(i!==O)return{reset:{placement:O}}}return{}}}};async function HU(r,e){const{placement:t,platform:n,elements:i}=r,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=Gs(t),s=eh(t),l=Uu(t)==="y",u=["left","top"].includes(o)?-1:1,c=a&&l?-1:1,f=$f(e,r);let{mainAxis:h,crossAxis:v,alignmentAxis:d}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof d=="number"&&(v=s==="end"?d*-1:d),l?{x:v*c,y:h*u}:{x:h*u,y:v*c}}const GU=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var t,n;const{x:i,y:a,placement:o,middlewareData:s}=e,l=await HU(e,r);return o===((t=s.offset)==null?void 0:t.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},WU=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){const{x:t,y:n,placement:i}=e,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:p=>{let{x:m,y}=p;return{x:m,y}}},...l}=$f(r,e),u={x:t,y:n},c=await u8(e,l),f=Uu(Gs(i)),h=o8(f);let v=u[h],d=u[f];if(a){const p=h==="y"?"top":"left",m=h==="y"?"bottom":"right",y=v+c[p],_=v-c[m];v=O_(y,v,_)}if(o){const p=f==="y"?"top":"left",m=f==="y"?"bottom":"right",y=d+c[p],_=d-c[m];d=O_(y,d,_)}const g=s.fn({...e,[h]:v,[f]:d});return{...g,data:{x:g.x-t,y:g.y-n,enabled:{[h]:a,[f]:o}}}}}};function Wp(){return typeof window<"u"}function Yu(r){return c8(r)?(r.nodeName||"").toLowerCase():"#document"}function Dn(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function Qi(r){var e;return(e=(c8(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function c8(r){return Wp()?r instanceof Node||r instanceof Dn(r).Node:!1}function xi(r){return Wp()?r instanceof Element||r instanceof Dn(r).Element:!1}function $i(r){return Wp()?r instanceof HTMLElement||r instanceof Dn(r).HTMLElement:!1}function f8(r){return!Wp()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Dn(r).ShadowRoot}function th(r){const{overflow:e,overflowX:t,overflowY:n,display:i}=Si(r);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!["inline","contents"].includes(i)}function ZU(r){return["table","td","th"].includes(Yu(r))}function Zp(r){return[":popover-open",":modal"].some(e=>{try{return r.matches(e)}catch{return!1}})}function B_(r){const e=F_(),t=xi(r)?Si(r):r;return["transform","translate","scale","rotate","perspective"].some(n=>t[n]?t[n]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(t.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(t.contain||"").includes(n))}function UU(r){let e=Oo(r);for(;$i(e)&&!Xu(e);){if(B_(e))return e;if(Zp(e))return null;e=Oo(e)}return null}function F_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Xu(r){return["html","body","#document"].includes(Yu(r))}function Si(r){return Dn(r).getComputedStyle(r)}function Up(r){return xi(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function Oo(r){if(Yu(r)==="html")return r;const e=r.assignedSlot||r.parentNode||f8(r)&&r.host||Qi(r);return f8(e)?e.host:e}function h8(r){const e=Oo(r);return Xu(e)?r.ownerDocument?r.ownerDocument.body:r.body:$i(e)&&th(e)?e:h8(e)}function rh(r,e,t){var n;e===void 0&&(e=[]),t===void 0&&(t=!0);const i=h8(r),a=i===((n=r.ownerDocument)==null?void 0:n.body),o=Dn(i);if(a){const s=H_(o);return e.concat(o,o.visualViewport||[],th(i)?i:[],s&&t?rh(s):[])}return e.concat(i,rh(i,[],t))}function H_(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function v8(r){const e=Si(r);let t=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=$i(r),a=i?r.offsetWidth:t,o=i?r.offsetHeight:n,s=Bp(t)!==a||Bp(n)!==o;return s&&(t=a,n=o),{width:t,height:n,$:s}}function G_(r){return xi(r)?r:r.contextElement}function qu(r){const e=G_(r);if(!$i(e))return Ji(1);const t=e.getBoundingClientRect(),{width:n,height:i,$:a}=v8(e);let o=(a?Bp(t.width):t.width)/n,s=(a?Bp(t.height):t.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const YU=Ji(0);function d8(r){const e=Dn(r);return!F_()||!e.visualViewport?YU:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function XU(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==Dn(r)?!1:e}function Ws(r,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);const i=r.getBoundingClientRect(),a=G_(r);let o=Ji(1);e&&(n?xi(n)&&(o=qu(n)):o=qu(r));const s=XU(a,t,n)?d8(a):Ji(0);let l=(i.left+s.x)/o.x,u=(i.top+s.y)/o.y,c=i.width/o.x,f=i.height/o.y;if(a){const h=Dn(a),v=n&&xi(n)?Dn(n):n;let d=h,g=H_(d);for(;g&&n&&v!==d;){const p=qu(g),m=g.getBoundingClientRect(),y=Si(g),_=m.left+(g.clientLeft+parseFloat(y.paddingLeft))*p.x,w=m.top+(g.clientTop+parseFloat(y.paddingTop))*p.y;l*=p.x,u*=p.y,c*=p.x,f*=p.y,l+=_,u+=w,d=Dn(g),g=H_(d)}}return Gp({width:c,height:f,x:l,y:u})}function W_(r,e){const t=Up(r).scrollLeft;return e?e.left+t:Ws(Qi(r)).left+t}function p8(r,e,t){t===void 0&&(t=!1);const n=r.getBoundingClientRect(),i=n.left+e.scrollLeft-(t?0:W_(r,n)),a=n.top+e.scrollTop;return{x:i,y:a}}function qU(r){let{elements:e,rect:t,offsetParent:n,strategy:i}=r;const a=i==="fixed",o=Qi(n),s=e?Zp(e.floating):!1;if(n===o||s&&a)return t;let l={scrollLeft:0,scrollTop:0},u=Ji(1);const c=Ji(0),f=$i(n);if((f||!f&&!a)&&((Yu(n)!=="body"||th(o))&&(l=Up(n)),$i(n))){const v=Ws(n);u=qu(n),c.x=v.x+n.clientLeft,c.y=v.y+n.clientTop}const h=o&&!f&&!a?p8(o,l,!0):Ji(0);return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-l.scrollLeft*u.x+c.x+h.x,y:t.y*u.y-l.scrollTop*u.y+c.y+h.y}}function jU(r){return Array.from(r.getClientRects())}function KU(r){const e=Qi(r),t=Up(r),n=r.ownerDocument.body,i=Hs(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=Hs(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-t.scrollLeft+W_(r);const s=-t.scrollTop;return Si(n).direction==="rtl"&&(o+=Hs(e.clientWidth,n.clientWidth)-i),{width:i,height:a,x:o,y:s}}function JU(r,e){const t=Dn(r),n=Qi(r),i=t.visualViewport;let a=n.clientWidth,o=n.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;const u=F_();(!u||u&&e==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}function QU(r,e){const t=Ws(r,!0,e==="fixed"),n=t.top+r.clientTop,i=t.left+r.clientLeft,a=$i(r)?qu(r):Ji(1),o=r.clientWidth*a.x,s=r.clientHeight*a.y,l=i*a.x,u=n*a.y;return{width:o,height:s,x:l,y:u}}function g8(r,e,t){let n;if(e==="viewport")n=JU(r,t);else if(e==="document")n=KU(Qi(r));else if(xi(e))n=QU(e,t);else{const i=d8(r);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Gp(n)}function m8(r,e){const t=Oo(r);return t===e||!xi(t)||Xu(t)?!1:Si(t).position==="fixed"||m8(t,e)}function $U(r,e){const t=e.get(r);if(t)return t;let n=rh(r,[],!1).filter(s=>xi(s)&&Yu(s)!=="body"),i=null;const a=Si(r).position==="fixed";let o=a?Oo(r):r;for(;xi(o)&&!Xu(o);){const s=Si(o),l=B_(o);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||th(o)&&!l&&m8(r,o))?n=n.filter(c=>c!==o):i=s,o=Oo(o)}return e.set(r,n),n}function eY(r){let{element:e,boundary:t,rootBoundary:n,strategy:i}=r;const o=[...t==="clippingAncestors"?Zp(e)?[]:$U(e,this._c):[].concat(t),n],s=o[0],l=o.reduce((u,c)=>{const f=g8(e,c,i);return u.top=Hs(f.top,u.top),u.right=Zu(f.right,u.right),u.bottom=Zu(f.bottom,u.bottom),u.left=Hs(f.left,u.left),u},g8(e,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function tY(r){const{width:e,height:t}=v8(r);return{width:e,height:t}}function rY(r,e,t){const n=$i(e),i=Qi(e),a=t==="fixed",o=Ws(r,!0,a,e);let s={scrollLeft:0,scrollTop:0};const l=Ji(0);if(n||!n&&!a)if((Yu(e)!=="body"||th(i))&&(s=Up(e)),n){const h=Ws(e,!0,a,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else i&&(l.x=W_(i));const u=i&&!n&&!a?p8(i,s):Ji(0),c=o.left+s.scrollLeft-l.x-u.x,f=o.top+s.scrollTop-l.y-u.y;return{x:c,y:f,width:o.width,height:o.height}}function Z_(r){return Si(r).position==="static"}function y8(r,e){if(!$i(r)||Si(r).position==="fixed")return null;if(e)return e(r);let t=r.offsetParent;return Qi(r)===t&&(t=t.ownerDocument.body),t}function _8(r,e){const t=Dn(r);if(Zp(r))return t;if(!$i(r)){let i=Oo(r);for(;i&&!Xu(i);){if(xi(i)&&!Z_(i))return i;i=Oo(i)}return t}let n=y8(r,e);for(;n&&ZU(n)&&Z_(n);)n=y8(n,e);return n&&Xu(n)&&Z_(n)&&!B_(n)?t:n||UU(r)||t}const nY=async function(r){const e=this.getOffsetParent||_8,t=this.getDimensions,n=await t(r.floating);return{reference:rY(r.reference,await e(r.floating),r.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function iY(r){return Si(r).direction==="rtl"}const aY={convertOffsetParentRelativeRectToViewportRelativeRect:qU,getDocumentElement:Qi,getClippingRect:eY,getOffsetParent:_8,getElementRects:nY,getClientRects:jU,getDimensions:tY,getScale:qu,isElement:xi,isRTL:iY};function w8(r,e){return r.x===e.x&&r.y===e.y&&r.width===e.width&&r.height===e.height}function oY(r,e){let t=null,n;const i=Qi(r);function a(){var s;clearTimeout(n),(s=t)==null||s.disconnect(),t=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const u=r.getBoundingClientRect(),{left:c,top:f,width:h,height:v}=u;if(s||e(),!h||!v)return;const d=Fp(f),g=Fp(i.clientWidth-(c+h)),p=Fp(i.clientHeight-(f+v)),m=Fp(c),_={rootMargin:-d+"px "+-g+"px "+-p+"px "+-m+"px",threshold:Hs(0,Zu(1,l))||1};let w=!0;function b(x){const S=x[0].intersectionRatio;if(S!==l){if(!w)return o();S?o(!1,S):n=setTimeout(()=>{o(!1,1e-7)},1e3)}S===1&&!w8(u,r.getBoundingClientRect())&&o(),w=!1}try{t=new IntersectionObserver(b,{..._,root:i.ownerDocument})}catch{t=new IntersectionObserver(b,_)}t.observe(r)}return o(!0),a}function b8(r,e,t,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=G_(r),c=i||a?[...u?rh(u):[],...rh(e)]:[];c.forEach(m=>{i&&m.addEventListener("scroll",t,{passive:!0}),a&&m.addEventListener("resize",t)});const f=u&&s?oY(u,t):null;let h=-1,v=null;o&&(v=new ResizeObserver(m=>{let[y]=m;y&&y.target===u&&v&&(v.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var _;(_=v)==null||_.observe(e)})),t()}),u&&!l&&v.observe(u),v.observe(e));let d,g=l?Ws(r):null;l&&p();function p(){const m=Ws(r);g&&!w8(g,m)&&t(),g=m,d=requestAnimationFrame(p)}return t(),()=>{var m;c.forEach(y=>{i&&y.removeEventListener("scroll",t),a&&y.removeEventListener("resize",t)}),f==null||f(),(m=v)==null||m.disconnect(),v=null,l&&cancelAnimationFrame(d)}}const sY=GU,lY=WU,uY=FU,cY=BU,fY=(r,e,t)=>{const n=new Map,i={platform:aY,...t},a={...i.platform,_c:n};return zU(r,e,{...i,platform:a})};var hY=se("<div></div>"),vY=se("<div></div>"),dY=se("<!> <!>",1),pY=se("<!> <!>",1);function gY(r,e){const t=Du(e,["children","$$slots","$$events","$$legacy"]),n=Du(t,["activeContent","arrow","offset","placement","trigger","triggeredBy","reference","strategy","open","yOnly","middlewares"]);Ae(e,!1);const i=Pt();let a=R(e,"activeContent",8,!1),o=R(e,"arrow",8,!0),s=R(e,"offset",8,8),l=R(e,"placement",8,"top"),u=R(e,"trigger",8,"hover"),c=R(e,"triggeredBy",24,()=>{}),f=R(e,"reference",24,()=>{}),h=R(e,"strategy",8,"absolute"),v=R(e,"open",12,!1),d=R(e,"yOnly",8,!1),g=R(e,"middlewares",24,()=>[uY(),lY()]);const p=yp();let m=Pt(),y=Pt(),_=Pt(),w=Pt(),b,x=Pt(),S=Pt(),T=[];const C=j=>{D(w)===void 0&&console.error("trigger undefined"),!(!f()&&T.includes(j.target)&&D(w)!==j.target&&(ie(w,j.target),v()))&&v(j.type==="click"?!v():!0)},A=j=>j.matches(":hover"),M=j=>j?`${j}px`:"",k=j=>{if(a()&&D(_)){const Xe=[D(w),b,...T].filter(Boolean);setTimeout(()=>{j.type==="mouseleave"&&!Xe.some(A)&&v(!1)},100)}else v(!1)};let L=Pt();const P={left:"right",right:"left",bottom:"top",top:"bottom"};function E(){fY(D(w),b,{placement:l(),strategy:h(),middleware:D(i)}).then(({x:j,y:Xe,middlewareData:Te,placement:xe,strategy:Be})=>{b.style.position=Be,b.style.left=d()?"0":M(j),b.style.top=M(Xe),Te.arrow&&D(x)instanceof HTMLDivElement&&(Ls(x,D(x).style.left=M(Te.arrow.x)),Ls(x,D(x).style.top=M(Te.arrow.y)),ie(L,P[xe.split("-")[0]]),Ls(x,D(x).style[D(L)]=M(-D(x).offsetWidth/2-(t.border?1:0))))})}function O(j,Xe){b=j;let Te=b8(Xe,b,E);return{update(xe){Te(),Te=b8(xe,b,E)},destroy(){Te()}}}Cu(()=>{const j=[["focusin",C,D(m)],["focusout",k,D(m)],["click",C,D(y)],["mouseenter",C,D(_)],["mouseleave",k,D(_)]];return c()?T=[...document.querySelectorAll(c())]:T=D(S).previousElementSibling?[D(S).previousElementSibling]:[],T.length||console.error("No triggers found."),T.forEach(Xe=>{Xe.tabIndex<0&&(Xe.tabIndex=0);for(const[Te,xe,Be]of j)Be&&Xe.addEventListener(Te,xe)}),f()?(ie(w,document.querySelector(f())??document.body),D(w)===document.body?console.error(`Popup reference not found: '${f()}'`):(D(m)&&D(w).addEventListener("focusout",k),D(_)&&D(w).addEventListener("mouseleave",k))):ie(w,T[0]),D(y)&&document.addEventListener("click",V),()=>{T.forEach(Xe=>{if(Xe)for(const[Te,xe]of j)Xe.removeEventListener(Te,xe)}),D(w)&&(D(w).removeEventListener("focusout",k),D(w).removeEventListener("mouseleave",k)),document.removeEventListener("click",V)}});function V(j){v()&&!j.composedPath().includes(b)&&!T.some(Xe=>j.composedPath().includes(Xe))&&k(j)}function z(j,Xe){return j?Xe:()=>{}}let H=Pt();function B(j){return ie(x,j),{destroy(){ie(x,null)}}}Ke(()=>ge(u()),()=>{ie(m,u()==="focus")}),Ke(()=>ge(u()),()=>{ie(y,u()==="click")}),Ke(()=>ge(u()),()=>{ie(_,u()==="hover")}),Ke(()=>ge(v()),()=>{p("show",v())}),Ke(()=>(ge(l()),D(w)),()=>{l()&&ie(w,D(w))}),Ke(()=>(ge(g()),ge(s()),D(x)),()=>{ie(i,[...g(),sY(+s()),D(x)&&cY({element:D(x),padding:10})])}),Ke(()=>(ge(t),D(L)),()=>{ie(H,$M("absolute pointer-events-none block w-[10px] h-[10px] rotate-45 bg-inherit border-inherit",t.border&&D(L)==="bottom"&&"border-b border-e",t.border&&D(L)==="top"&&"border-t border-s ",t.border&&D(L)==="right"&&"border-t border-e ",t.border&&D(L)==="left"&&"border-b border-s "))}),Vf(),Hf();var F=pY(),ee=G(F);{var ae=j=>{var Xe=hY();za(Xe,Te=>ie(S,Te),()=>D(S)),I(j,Xe)};W(ee,j=>{D(w)||j(ae)})}var le=_e(ee,2);{var U=j=>{const Xe=kr(()=>a()?-1:void 0);var Te=q(()=>z(a()&&D(m),C)),xe=q(()=>z(a()&&D(m),k)),Be=q(()=>z(a()&&D(_),C)),be=q(()=>z(a()&&D(_),k));EU(j,An({use:O,get options(){return D(w)},role:"tooltip",get tabindex(){return D(Xe)}},()=>n,{get open(){return v()},set open(fe){v(fe)},$$events:{focusin(...fe){var et;(et=D(Te))==null||et.apply(this,fe)},focusout(...fe){var et;(et=D(xe))==null||et.apply(this,fe)},mouseenter(...fe){var et;(et=D(Be))==null||et.apply(this,fe)},mouseleave(...fe){var et;(et=D(be))==null||et.apply(this,fe)}},children:(fe,et)=>{var vt=dY(),xt=G(vt);or(xt,e,"default",{},null);var kt=_e(xt,2);{var jt=Cr=>{var dr=vY();Os(dr,Gi=>B==null?void 0:B(Gi)),ce(()=>ft(dr,pp(D(H)))),I(Cr,dr)};W(kt,Cr=>{o()&&Cr(jt)})}I(fe,vt)},$$slots:{default:!0},$$legacy:!0}))};W(le,j=>{D(w)&&j(U)})}I(r,F),Ce()}const $A=class $A extends Map{constructor(t){super();ue(this,gf);ue(this,Ma,new Map);ue(this,Ia,ar(0));ue(this,vo,ar(0));if(t){for(var[n,i]of t)super.set(n,i);X(this,vo).v=super.size}}has(t){var n=X(this,Ma),i=n.get(t);if(i===void 0){var a=super.get(t);if(a!==void 0)i=ar(0),n.set(t,i);else return D(X(this,Ia)),!1}return D(i),!0}forEach(t,n){pu(this,gf,N1).call(this),super.forEach(t,n)}get(t){var n=X(this,Ma),i=n.get(t);if(i===void 0){var a=super.get(t);if(a!==void 0)i=ar(0),n.set(t,i);else{D(X(this,Ia));return}}return D(i),super.get(t)}set(t,n){var f;var i=X(this,Ma),a=i.get(t),o=super.get(t),s=super.set(t,n),l=X(this,Ia);if(a===void 0)i.set(t,ar(0)),ie(X(this,vo),super.size),Hu(l);else if(o!==n){Hu(a);var u=l.reactions===null?null:new Set(l.reactions),c=u===null||!((f=a.reactions)!=null&&f.every(h=>u.has(h)));c&&Hu(l)}return s}delete(t){var n=X(this,Ma),i=n.get(t),a=super.delete(t);return i!==void 0&&(n.delete(t),ie(X(this,vo),super.size),ie(i,-1),Hu(X(this,Ia))),a}clear(){if(super.size!==0){super.clear();var t=X(this,Ma);ie(X(this,vo),0);for(var n of t.values())ie(n,-1);Hu(X(this,Ia)),t.clear()}}keys(){return D(X(this,Ia)),super.keys()}values(){return pu(this,gf,N1).call(this),super.values()}entries(){return pu(this,gf,N1).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return D(X(this,vo)),super.size}};Ma=new WeakMap,Ia=new WeakMap,vo=new WeakMap,gf=new WeakSet,N1=function(){D(X(this,Ia));var t=X(this,Ma);if(X(this,vo).v!==t.size)for(var n of oz($A.prototype,this,"keys").call(this))t.has(n)||t.set(n,ar(0));for(var[,i]of X(this,Ma))D(i)};let U_=$A;function mY(r,e){const t=Du(e,["children","$$slots","$$events","$$legacy"]),n=Du(t,["type","defaultClass"]);Ae(e,!1);let i=R(e,"type",12,"dark"),a=R(e,"defaultClass",8,"py-2 px-3 text-sm font-medium");const o={dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border-gray-200 bg-white text-gray-900",auto:" bg-white text-gray-900 dark:bg-gray-700 dark:text-white border-gray-200 dark:border-gray-700",custom:""};let s=Pt();Ke(()=>(ge(n),ge(i()),ge(a()),ge(t)),()=>{n.color?i("custom"):n.color="none",["light","auto"].includes(i())&&(n.border=!0),ie(s,n8("tooltip",a(),o[i()],t.class))}),Vf(),Hf(),gY(r,An({rounded:!0,shadow:!0},()=>n,{get class(){return D(s)},$$events:{show(l){$r.call(this,e,l)}},children:(l,u)=>{var c=Z(),f=G(c);or(f,e,"default",{},null),I(l,c)},$$slots:{default:!0}})),Ce()}var yY=se("<!> <!>",1);function Yp(r,e){let t=R(e,"class",3,""),n=R(e,"forceOpen",3,!1),i=R(e,"showArrow",3,!0),a=R(e,"placement",3,"top"),o=q(()=>`${t()} ${i()?"with-arrow":""}`);var s=yY(),l=G(s);he(l,()=>e.trigger??Pe);var u=_e(l,2);const c=q(()=>`${D(o)} rounded bg-base-inverse px-2 py-1 text-sm font-normal text-primary-inverse shadow`);mY(u,{get open(){return n()},get arrow(){return i()},get placement(){return a()},get class(){return D(c)},children:(f,h)=>{var v=Z(),d=G(v);he(d,()=>e.content??Pe),I(f,v)},$$slots:{default:!0}}),I(r,s)}var _Y=se("<div> </div>"),wY=se("<span> </span>");function bY(r,e){Ae(e,!0);const t=v=>{var d=_Y(),g=K(d);ce(()=>{ft(d,`${D(o)??""} flex items-center justify-center rounded-full border border-static bg-accent text-accent`),Ut(g,D(l))}),I(v,d)};let n=R(e,"size",3,"md"),i=R(e,"showTooltip",3,!0);const a={sm:"h-6 w-6 min-w-6 text-xxs font-semibold tracking-wide",md:"h-8 w-8 min-w-8 text-xs font-semibold tracking-wide"};let o=q(()=>a[n()]);const s=v=>{if(!v)return"?";if(v.includes("@"))return v.slice(0,2).toUpperCase();const g=v.split(" ");if(g.length===1||g.length===1&&g[0].length<=2)return v.slice(0,2).toUpperCase();const p=g[0][0],m=g[g.length-1][0];return(p+m).toUpperCase()};let l=q(()=>s(e.name));var u=Z(),c=G(u);{var f=v=>{Yp(v,{trigger:p=>{t(p)},content:p=>{var m=wY(),y=K(m);ce(()=>Ut(y,e.name?e.name:"Unknown")),I(p,m)},$$slots:{trigger:!0,content:!0}})},h=v=>{t(v)};W(c,v=>{i()?v(f):v(h,!1)})}I(r,u),Ce()}var xY=se('<div class="spinner svelte-1d1eipx"></div>');function Xp(r,e){let t=R(e,"testID",3,"");var n=xY();ce(()=>Fe(n,"data-testid",t())),I(r,n)}var SY=r=>{r.preventDefault()},TY=se("<button><!></button>"),AY=se("<button><!></button>");function ju(r,e){let t=R(e,"variant",3,"transparent"),n=R(e,"type",3,"button"),i=R(e,"loading",3,!1),a=R(e,"disabled",3,!1),o=R(e,"size",3,"sm"),s=R(e,"rounded",3,!0),l=q(()=>`size-${o()}`),u=q(()=>`color-${t()}`);var c=Z(),f=G(c);{var h=d=>{var g=TY();g.__click=[SY];var p=K(g);{var m=_=>{Xp(_,{})},y=_=>{var w=Z(),b=G(w);he(b,()=>e.children??Pe),I(_,w)};W(p,_=>{i()?_(m):_(y,!1)})}ce(()=>{Fe(g,"type",n()),g.disabled=a(),ft(g,`${D(l)??""} ${D(u)??""} disabled svelte-1l9qfn`),dt(g,"rounded",s())}),I(d,g)},v=d=>{var g=AY();g.__click=function(...m){var y;(y=e.onclick)==null||y.apply(this,m)};var p=K(g);he(p,()=>e.children??Pe),ce(()=>{Fe(g,"type",n()),g.disabled=a(),Fe(g,"tabindex",e.tabindex),ft(g,`${D(l)??""} ${D(u)??""} svelte-1l9qfn`),dt(g,"rounded",s())}),I(d,g)};W(f,d=>{a()||i()?d(h):d(v,!1)})}I(r,c)}mi(["click"]);var CY=se("<div><!></div>"),DY=se('<div><div class="inline-flex w-full items-center justify-start gap-3"><!> <div class="content w-full text-sm svelte-1iohjq0"><!></div></div> <!></div>');function MY(r,e){Ae(e,!0);let t=R(e,"type",3,"neutral"),n=R(e,"show",15,!0),i=R(e,"closable",3,!0);const a={neutral:"neutral",success:"success",progress:"blue",warning:"warning",error:"danger"}[t()];var o=Z(),s=G(o);{var l=u=>{var c=DY();ft(c,`rounded-lg bg-${a??""} flex h-11 w-full items-center justify-between p-3 svelte-1iohjq0`);var f=K(c),h=K(f);{var v=y=>{var _=CY();ft(_,`size-5 text-icon-${a??""} svelte-1iohjq0`);var w=K(_);he(w,()=>e.icon??Pe),I(y,_)};W(h,y=>{e.icon&&y(v)})}var d=_e(h,2),g=K(d);he(g,()=>e.content??Pe);var p=_e(f,2);{var m=y=>{ju(y,{size:"sm",onclick:()=>n(!1),children:(_,w)=>{Fu(_,{class:"text-icon-secondary",weight:"bold"})},$$slots:{default:!0}})};W(p,y=>{i()&&y(m)})}I(u,c)};W(s,u=>{n()&&u(l)})}I(r,o),Ce()}var IY=(r,e,t)=>{e()?r.preventDefault():t()(r)},EY=se("<button><!></button>");function x8(r,e){Ae(e,!0);let t=R(e,"class",3,""),n=R(e,"onClick",3,()=>{}),i=R(e,"type",3,"button"),a=R(e,"loading",3,!1),o=R(e,"disabled",3,!1),s=R(e,"accessibilityLabel",3,""),l=R(e,"size",3,"lg"),u=R(e,"id",3,void 0),c=R(e,"tabindex",3,void 0),f=R(e,"variant",3,"primary"),h=R(e,"dataTestId",3,void 0),v=R(e,"rounded",3,!1),d=q(()=>`btn-${f()}`),g=q(()=>`btn-size-${l()}`);var p=EY();p.__click=[IY,a,n];var m=K(p);{var y=w=>{Xp(w,{})},_=w=>{var b=Z(),x=G(b);he(x,()=>e.children??Pe),I(w,b)};W(m,w=>{a()?w(y):w(_,!1)})}ce(()=>{Fe(p,"aria-label",s()),Fe(p,"type",i()),p.disabled=o(),Fe(p,"id",u()),Fe(p,"tabindex",c()),ft(p,`button ${D(d)??""} ${D(g)??""} ${t()??""} svelte-1to882b`),Fe(p,"data-testid",h()),dt(p,"cursor-wait",a()),dt(p,"rounded",v())}),I(r,p),Ce()}mi(["click"]);function LY(r){return typeof r=="function"}function kY(r){return r!==null&&typeof r=="object"}const PY=["string","number","bigint","boolean"];function Y_(r){return r==null||PY.includes(typeof r)?!0:Array.isArray(r)?r.every(e=>Y_(e)):typeof r=="object"?Object.getPrototypeOf(r)===Object.prototype:!1}const nh=Symbol("box"),X_=Symbol("is-writable");function NY(r){return kY(r)&&nh in r}function OY(r){return oe.isBox(r)&&X_ in r}function oe(r){let e=Ye(Ee(r));return{[nh]:!0,[X_]:!0,get current(){return D(e)},set current(t){ie(e,Ee(t))}}}function RY(r,e){const t=q(r);return e?{[nh]:!0,[X_]:!0,get current(){return D(t)},set current(n){e(n)}}:{[nh]:!0,get current(){return r()}}}function VY(r){return oe.isBox(r)?r:LY(r)?oe.with(r):oe(r)}function zY(r){return Object.entries(r).reduce((e,[t,n])=>oe.isBox(n)?(oe.isWritableBox(n)?Object.defineProperty(e,t,{get(){return n.current},set(i){n.current=i}}):Object.defineProperty(e,t,{get(){return n.current}}),e):Object.assign(e,{[t]:n}),{})}function BY(r){return oe.isWritableBox(r)?{[nh]:!0,get current(){return r.current}}:r}oe.from=VY,oe.with=RY,oe.flatten=zY,oe.readonly=BY,oe.isBox=NY,oe.isWritableBox=OY;function S8(...r){return function(e){var t;for(const n of r)if(n){if(e.defaultPrevented)return;typeof n=="function"?n.call(this,e):(t=n.current)==null||t.call(this,e)}}}function FY(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Ku={},q_,T8;function HY(){if(T8)return q_;T8=1;var r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,t=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
|
|
4
|
-
`,u="/",c="*",f="",h="comment",v="declaration";q_=function(g,p){if(typeof g!="string")throw new TypeError("First argument must be a string");if(!g)return[];p=p||{};var m=1,y=1;function _(L){var P=L.match(e);P&&(m+=P.length);var E=L.lastIndexOf(l);y=~E?L.length-E:y+L.length}function w(){var L={line:m,column:y};return function(P){return P.position=new b(L),T(),P}}function b(L){this.start=L,this.end={line:m,column:y},this.source=p.source}b.prototype.content=g;function x(L){var P=new Error(p.source+":"+m+":"+y+": "+L);if(P.reason=L,P.filename=p.source,P.line=m,P.column=y,P.source=g,!p.silent)throw P}function S(L){var P=L.exec(g);if(P){var E=P[0];return _(E),g=g.slice(E.length),P}}function T(){S(t)}function C(L){var P;for(L=L||[];P=A();)P!==!1&&L.push(P);return L}function A(){var L=w();if(!(u!=g.charAt(0)||c!=g.charAt(1))){for(var P=2;f!=g.charAt(P)&&(c!=g.charAt(P)||u!=g.charAt(P+1));)++P;if(P+=2,f===g.charAt(P-1))return x("End of comment missing");var E=g.slice(2,P-2);return y+=2,_(E),g=g.slice(P),y+=2,L({type:h,comment:E})}}function M(){var L=w(),P=S(n);if(P){if(A(),!S(i))return x("property missing ':'");var E=S(a),O=L({type:v,property:d(P[0].replace(r,f)),value:E?d(E[0].replace(r,f)):f});return S(o),O}}function k(){var L=[];C(L);for(var P;P=M();)P!==!1&&(L.push(P),C(L));return L}return T(),k()};function d(g){return g?g.replace(s,f):f}return q_}var A8;function GY(){if(A8)return Ku;A8=1;var r=Ku&&Ku.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ku,"__esModule",{value:!0}),Ku.default=t;var e=r(HY());function t(n,i){var a=null;if(!n||typeof n!="string")return a;var o=(0,e.default)(n),s=typeof i=="function";return o.forEach(function(l){if(l.type==="declaration"){var u=l.property,c=l.value;s?i(u,c,l):c&&(a=a||{},a[u]=c)}}),a}return Ku}var WY=GY();const C8=FY(WY),ZY=C8.default||C8,UY=/\d/,YY=["-","_","/","."];function XY(r=""){if(!UY.test(r))return r!==r.toLowerCase()}function qY(r){const e=[];let t="",n,i;for(const a of r){const o=YY.includes(a);if(o===!0){e.push(t),t="",n=void 0;continue}const s=XY(a);if(i===!1){if(n===!1&&s===!0){e.push(t),t=a,n=s;continue}if(n===!0&&s===!1&&t.length>1){const l=t.at(-1);e.push(t.slice(0,Math.max(0,t.length-1))),t=l+a,n=s;continue}}t+=a,n=s,i=o}return e.push(t),e}function D8(r){return r?qY(r).map(e=>KY(e)).join(""):""}function jY(r){return JY(D8(r||""))}function KY(r){return r?r[0].toUpperCase()+r.slice(1):""}function JY(r){return r?r[0].toLowerCase()+r.slice(1):""}function ih(r){if(!r)return{};const e={};function t(n,i){if(n.startsWith("-moz-")||n.startsWith("-webkit-")||n.startsWith("-ms-")||n.startsWith("-o-")){e[D8(n)]=i;return}if(n.startsWith("--")){e[n]=i;return}e[jY(n)]=i}return ZY(r,t),e}function Zs(...r){return(...e)=>{for(const t of r)typeof t=="function"&&t(...e)}}function QY(r,e){const t=RegExp(r,"g");return n=>{if(typeof n!="string")throw new TypeError(`expected an argument of type string, but got ${typeof n}`);return n.match(t)?n.replace(t,e):n}}const $Y=QY(/[A-Z]/,r=>`-${r.toLowerCase()}`);function eX(r){if(!r||typeof r!="object"||Array.isArray(r))throw new TypeError(`expected an argument of type object, but got ${typeof r}`);return Object.keys(r).map(e=>`${$Y(e)}: ${r[e]};`).join(`
|
|
5
|
-
`)}function qp(r={}){return eX(r).replace(`
|
|
6
|
-
`," ")}const M8={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"};qp(M8);function tX(r){var e;return r.length>2&&r.startsWith("on")&&r[2]===((e=r[2])==null?void 0:e.toLowerCase())}function _r(...r){const e={...r[0]};for(let t=1;t<r.length;t++){const n=r[t];for(const i in n){const a=e[i],o=n[i],s=typeof a=="function",l=typeof o=="function";if(s&&tX(i)){const u=a,c=o;e[i]=S8(u,c)}else if(s&&l)e[i]=Zs(a,o);else if(i==="class"){const u=Y_(a),c=Y_(o);u&&c?e[i]=dp(a,o):u?e[i]=dp(a):c&&(e[i]=dp(o))}else if(i==="style"){const u=typeof a=="object",c=typeof o=="object",f=typeof a=="string",h=typeof o=="string";if(u&&c)e[i]={...a,...o};else if(u&&h){const v=ih(o);e[i]={...a,...v}}else if(f&&c){const v=ih(a);e[i]={...v,...o}}else if(f&&h){const v=ih(a),d=ih(o);e[i]={...v,...d}}else u?e[i]=a:c?e[i]=o:f?e[i]=a:h&&(e[i]=o)}else e[i]=o!==void 0?o:a}}return typeof e.style=="object"&&(e.style=qp(e.style).replaceAll(`
|
|
7
|
-
`," ")),e.hidden!==!0&&(e.hidden=void 0,delete e.hidden),e.disabled!==!0&&(e.disabled=void 0,delete e.disabled),e}const I8=typeof window<"u"?window:void 0;function rX(r){let e=r.activeElement;for(;e!=null&&e.shadowRoot;){const t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}class nX{constructor(e={}){ue(this,mf);ue(this,hd);const{window:t=I8,document:n=t==null?void 0:t.document}=e;t!==void 0&&(Lr(this,mf,n),Lr(this,hd,jZ(i=>{const a=Pr(t,"focusin",i),o=Pr(t,"focusout",i);return()=>{a(),o()}})))}get current(){var e;return(e=X(this,hd))==null||e.call(this),X(this,mf)?rX(X(this,mf)):null}}mf=new WeakMap,hd=new WeakMap,new nX;function iX(r){return typeof r=="function"}function aX(r,e){switch(r){case"post":Ht(e);break;case"pre":Rf(e);break}}function E8(r,e,t,n={}){const{lazy:i=!1}=n;let a=!i,o=Array.isArray(r)?[]:void 0;aX(e,()=>{const s=Array.isArray(r)?r.map(u=>u()):r();if(!a){a=!0,o=s;return}const l=Hr(()=>t(s,o));return o=s,l})}function Wt(r,e,t){E8(r,"post",e,t)}function oX(r,e,t){E8(r,"pre",e,t)}Wt.pre=oX;function sX(r){return iX(r)?r():r}class lX{constructor(e,t={box:"border-box"}){ue(this,po,Ye(Ee({width:0,height:0})));var i,a;const n=t.window??I8;X(this,po).v=Ee({width:((i=t.initialSize)==null?void 0:i.width)??0,height:((a=t.initialSize)==null?void 0:a.height)??0}),Ht(()=>{if(!n)return;const o=sX(e);if(!o)return;const s=new n.ResizeObserver(l=>{for(const u of l){const c=t.box==="content-box"?u.contentBoxSize:u.borderBoxSize,f=Array.isArray(c)?c:[c];D(X(this,po)).width=f.reduce((h,v)=>Math.max(h,v.inlineSize),0),D(X(this,po)).height=f.reduce((h,v)=>Math.max(h,v.blockSize),0)}});return s.observe(o),()=>{s.disconnect()}})}get current(){return D(X(this,po))}get width(){return D(X(this,po)).width}get height(){return D(X(this,po)).height}}po=new WeakMap;class L8{constructor(e){ue(this,vd,Ye(void 0));ue(this,dd);Ht(()=>{ie(X(this,vd),Ee(X(this,dd))),Lr(this,dd,e())})}get current(){return D(X(this,vd))}}vd=new WeakMap,dd=new WeakMap;class Us{constructor(e){ue(this,pd);ue(this,go);Lr(this,pd,e),Lr(this,go,Symbol(e))}get key(){return X(this,go)}exists(){return QC(X(this,go))}get(){const e=K1(X(this,go));if(e===void 0)throw new Error(`Context "${X(this,pd)}" not found`);return e}getOr(e){const t=K1(X(this,go));return t===void 0?e:t}set(e){return J1(X(this,go),e)}}pd=new WeakMap,go=new WeakMap;function j_(r){Ht(()=>()=>{r()})}function Dr({id:r,ref:e,deps:t=()=>!0,onRefChange:n,getRootNode:i}){Wt([()=>r.current,t],([a])=>{const o=(i==null?void 0:i())??document,s=o==null?void 0:o.getElementById(a);s?e.current=s:e.current=null,n==null||n(e.current)}),j_(()=>{e.current=null,n==null||n(null)})}function jp(r,e){return setTimeout(e,r)}function Ys(r){Y1().then(r)}function uX(r){Ht(()=>Hr(()=>r()))}function Ju(r){return r?"open":"closed"}function k8(r){return r?"true":"false"}function Qu(r){return r?"":void 0}function Pwe(r){return r}function P8(r){return r?"true":void 0}function Nwe(r){return r}function cX(r){return r?!0:void 0}function fX(r){return r?!0:void 0}const hX="Alt",Kp="ArrowDown",vX="ArrowLeft",dX="ArrowRight",ah="ArrowUp",pX="Backspace",gX="CapsLock",mX="Control",N8="End",Jp="Enter",K_="Escape",yX="F1",_X="F10",wX="F11",bX="F12",xX="F2",SX="F3",TX="F4",AX="F5",CX="F6",DX="F7",MX="F8",IX="F9",O8="Home",EX="Meta",R8="PageDown",V8="PageUp",LX="Shift",z8=" ",J_="Tab",Q_=typeof document<"u",$_=kX();function kX(){var r,e;return Q_&&((r=window==null?void 0:window.navigator)==null?void 0:r.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function e2(r){return r instanceof HTMLElement}function PX(r){return r instanceof Element}function NX(r){return r!==null}function OX(r){return r instanceof HTMLInputElement&&"select"in r}function RX(r,e){if(getComputedStyle(r).visibility==="hidden")return!0;for(;r;){if(e!==void 0&&r===e)return!1;if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});function Mr(r="bits"){return globalThis.bitsIdCounter.current++,`${r}-${globalThis.bitsIdCounter.current}`}function rr(){}function VX(r,e){const t=oe(r);function n(a){return e[t.current][a]??t.current}return{state:t,dispatch:a=>{t.current=n(a)}}}function zX(r,e){let t=Ye(Ee({})),n=Ye("none");const i=r.current?"mounted":"unmounted";let a=Ye(null);const o=new L8(()=>r.current);Wt([()=>e.current,()=>r.current],([h,v])=>{!h||!v||Ys(()=>{ie(a,Ee(document.getElementById(h)))})});const{state:s,dispatch:l}=VX(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});Wt(()=>r.current,h=>{if(D(a)||ie(a,Ee(document.getElementById(e.current))),!D(a)||!(h!==o.current))return;const d=D(n),g=Qp(D(a));h?l("MOUNT"):g==="none"||D(t).display==="none"?l("UNMOUNT"):l(o&&d!==g?"ANIMATION_OUT":"UNMOUNT")});function u(h){if(D(a)||ie(a,Ee(document.getElementById(e.current))),!D(a))return;const v=Qp(D(a)),d=v.includes(h.animationName)||v==="none";h.target===D(a)&&d&&l("ANIMATION_END")}function c(h){D(a)||ie(a,Ee(document.getElementById(e.current))),D(a)&&h.target===D(a)&&ie(n,Ee(Qp(D(a))))}Wt(()=>s.current,()=>{if(D(a)||ie(a,Ee(document.getElementById(e.current))),!D(a))return;const h=Qp(D(a));ie(n,Ee(s.current==="mounted"?h:"none"))}),Wt(()=>D(a),h=>{if(h)return ie(t,Ee(getComputedStyle(h))),Zs(Pr(h,"animationstart",c),Pr(h,"animationcancel",u),Pr(h,"animationend",u))});const f=q(()=>["mounted","unmountSuspended"].includes(s.current));return{get current(){return D(f)}}}function Qp(r){return r&&getComputedStyle(r).animationName||"none"}function B8(r,e){Ae(e,!0);const t=zX(oe.with(()=>e.present),oe.with(()=>e.id));var n=Z(),i=G(n);{var a=o=>{var s=Z(),l=G(s);he(l,()=>e.presence??Pe,()=>({present:t})),I(o,s)};W(i,o=>{(e.forceMount||e.present||t.current)&&o(a)})}I(r,n),Ce()}function BX(r,e){var t=Z(),n=G(t);bB(n,()=>e.children,i=>{var a=Z(),o=G(a);he(o,()=>e.children??Pe),I(i,a)}),I(r,t)}function F8(r,e){Ae(e,!0);let t=R(e,"to",3,"body");const n=lB();let i=q(a);function a(){if(!Q_||e.disabled)return null;let f=null;return typeof t()=="string"?f=document.querySelector(t()):(t()instanceof HTMLElement||t()instanceof DocumentFragment)&&(f=t()),f}let o;function s(){o&&(wB(o),o=null)}Wt([()=>D(i),()=>e.disabled],([f,h])=>{if(!f||h){s();return}return o=yB(BX,{target:f,props:{children:e.children},context:n}),()=>{s()}});var l=Z(),u=G(l);{var c=f=>{var h=Z(),v=G(h);he(v,()=>e.children??Pe),I(f,h)};W(u,f=>{e.disabled&&f(c)})}I(r,l),Ce()}function H8(r,e,t,n){const i=Array.isArray(e)?e:[e];return i.forEach(a=>r.addEventListener(a,t,n)),()=>{i.forEach(a=>r.removeEventListener(a,t,n))}}class G8{constructor(e,t={bubbles:!0,cancelable:!0}){pe(this,"eventName");pe(this,"options");this.eventName=e,this.options=t}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,t){const n=this.createEvent(t);return e.dispatchEvent(n),n}listen(e,t,n){const i=a=>{t(a)};return Pr(e,this.eventName,i,n)}}function W8(r,e=500){let t=null;const n=(...i)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{r(...i)},e)};return n.destroy=()=>{t!==null&&(clearTimeout(t),t=null)},n}function t2(r,e){return r===e||r.contains(e)}function Z8(r){return(r==null?void 0:r.ownerDocument)??document}function FX(r,e){const{clientX:t,clientY:n}=r,i=e.getBoundingClientRect();return t<i.left||t>i.right||n<i.top||n>i.bottom}globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map);class HX{constructor(e){ue(this,bf);pe(this,"opts");ue(this,yf);ue(this,hu);ue(this,Ss,{pointerdown:!1});ue(this,_f,!1);ue(this,wf,!1);pe(this,"node",oe(null));ue(this,Ts);ue(this,gd);ue(this,md,Ye(null));ue(this,mo,rr);ue(this,My,e=>{e.defaultPrevented||this.currNode&&Ys(()=>{var t,n;!this.currNode||X(this,Py).call(this,e.target)||e.target&&!X(this,wf)&&((n=(t=X(this,gd)).current)==null||n.call(t,e))})});ue(this,Iy,e=>{let t=e;t.defaultPrevented&&(t=U8(e)),X(this,yf).current(e)});ue(this,xf,W8(e=>{if(!this.currNode){X(this,mo).call(this);return}const t=this.opts.isValidEvent.current(e,this.currNode)||UX(e,this.currNode);if(!X(this,_f)||pu(this,bf,lz).call(this)||!t){X(this,mo).call(this);return}let n=e;if(n.defaultPrevented&&(n=U8(n)),X(this,hu).current!=="close"&&X(this,hu).current!=="defer-otherwise-close"){X(this,mo).call(this);return}e.pointerType==="touch"?(X(this,mo).call(this),Lr(this,mo,H8(X(this,Ts),"click",X(this,Iy),{once:!0}))):X(this,yf).current(n)},10));ue(this,Ey,e=>{X(this,Ss)[e.type]=!0});ue(this,Ly,e=>{X(this,Ss)[e.type]=!1});ue(this,ky,()=>{this.node.current&&Lr(this,_f,ZX(this.node.current))});ue(this,Py,e=>this.node.current?t2(this.node.current,e):!1);ue(this,yd,W8(()=>{for(const e in X(this,Ss))X(this,Ss)[e]=!1;Lr(this,_f,!1)},20));ue(this,Ny,()=>{Lr(this,wf,!0)});ue(this,Oy,()=>{Lr(this,wf,!1)});pe(this,"props",{onfocuscapture:X(this,Ny),onblurcapture:X(this,Oy)});this.opts=e,Dr({id:e.id,ref:this.node,deps:()=>e.enabled.current,onRefChange:i=>{this.currNode=i}}),Lr(this,hu,e.interactOutsideBehavior),Lr(this,yf,e.onInteractOutside),Lr(this,gd,e.onFocusOutside),Ht(()=>{Lr(this,Ts,Z8(this.currNode))});let t=rr;const n=()=>{X(this,yd).call(this),globalThis.bitsDismissableLayers.delete(this),X(this,xf).destroy(),t()};Wt([()=>this.opts.enabled.current,()=>this.currNode],([i,a])=>{if(!(!i||!a))return jp(1,()=>{this.currNode&&(globalThis.bitsDismissableLayers.set(this,X(this,hu)),t(),t=pu(this,bf,sz).call(this))}),n}),j_(()=>{X(this,yd).destroy(),globalThis.bitsDismissableLayers.delete(this),X(this,xf).destroy(),X(this,mo).call(this),t()})}get currNode(){return D(X(this,md))}set currNode(e){ie(X(this,md),Ee(e))}}yf=new WeakMap,hu=new WeakMap,Ss=new WeakMap,_f=new WeakMap,wf=new WeakMap,Ts=new WeakMap,gd=new WeakMap,md=new WeakMap,mo=new WeakMap,My=new WeakMap,bf=new WeakSet,sz=function(){return Zs(Pr(X(this,Ts),"pointerdown",Zs(X(this,Ey),X(this,ky)),{capture:!0}),Pr(X(this,Ts),"pointerdown",Zs(X(this,Ly),X(this,xf))),Pr(X(this,Ts),"focusin",X(this,My)))},Iy=new WeakMap,xf=new WeakMap,Ey=new WeakMap,Ly=new WeakMap,ky=new WeakMap,Py=new WeakMap,yd=new WeakMap,lz=function(){return Object.values(X(this,Ss)).some(Boolean)},Ny=new WeakMap,Oy=new WeakMap;function GX(r){return new HX(r)}function WX(r){return r.findLast(([e,{current:t}])=>t==="close"||t==="ignore")}function ZX(r){const e=[...globalThis.bitsDismissableLayers],t=WX(e);if(t)return t[0].node.current===r;const[n]=e[0];return n.node.current===r}function UX(r,e){if("button"in r&&r.button>0)return!1;const t=r.target;return PX(t)?Z8(t).documentElement.contains(t)&&!t2(e,t)&&FX(r,e):!1}function U8(r){const e=r.currentTarget,t=r.target;let n;r instanceof PointerEvent?n=new PointerEvent(r.type,r):n=new PointerEvent("pointerdown",r);let i=!1;return new Proxy(n,{get:(o,s)=>s==="currentTarget"?e:s==="target"?t:s==="preventDefault"?()=>{i=!0,typeof o.preventDefault=="function"&&o.preventDefault()}:s==="defaultPrevented"?i:s in o?o[s]:r[s]})}function YX(r,e){Ae(e,!0);let t=R(e,"interactOutsideBehavior",3,"close"),n=R(e,"onInteractOutside",3,rr),i=R(e,"onFocusOutside",3,rr),a=R(e,"isValidEvent",3,()=>!1);const o=GX({id:oe.with(()=>e.id),interactOutsideBehavior:oe.with(()=>t()),onInteractOutside:oe.with(()=>n()),enabled:oe.with(()=>e.enabled),onFocusOutside:oe.with(()=>i()),isValidEvent:oe.with(()=>a())});var s=Z(),l=G(s);he(l,()=>e.children??Pe,()=>({props:o.props})),I(r,s),Ce()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);class XX{constructor(e){pe(this,"opts");ue(this,Ry,()=>Pr(document,"keydown",X(this,Vy),{passive:!1}));ue(this,Vy,e=>{if(e.key!==K_||!jX(this))return;const t=new KeyboardEvent(e.type,e);e.preventDefault();const n=this.opts.escapeKeydownBehavior.current;n!=="close"&&n!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(t)});this.opts=e;let t=rr;Wt(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),t=X(this,Ry).call(this)),()=>{t(),globalThis.bitsEscapeLayers.delete(this)}))}}Ry=new WeakMap,Vy=new WeakMap;function qX(r){return new XX(r)}function jX(r){const e=[...globalThis.bitsEscapeLayers],t=e.findLast(([i,{current:a}])=>a==="close"||a==="ignore");if(t)return t[0]===r;const[n]=e[0];return n===r}function KX(r,e){Ae(e,!0);let t=R(e,"escapeKeydownBehavior",3,"close"),n=R(e,"onEscapeKeydown",3,rr);qX({escapeKeydownBehavior:oe.with(()=>t()),onEscapeKeydown:oe.with(()=>n()),enabled:oe.with(()=>e.enabled)});var i=Z(),a=G(i);he(a,()=>e.children??Pe),I(r,i),Ce()}const Ro=oe([]);function JX(){return{add(r){const e=Ro.current[0];e&&r.id!==e.id&&e.pause(),Ro.current=Y8(Ro.current,r),Ro.current.unshift(r)},remove(r){var e;Ro.current=Y8(Ro.current,r),(e=Ro.current[0])==null||e.resume()},get current(){return Ro.current}}}function QX(){let r=Ye(!1),e=Ye(!1);return{id:Mr(),get paused(){return D(r)},get isHandlingFocus(){return D(e)},set isHandlingFocus(t){ie(e,Ee(t))},pause(){ie(r,!0)},resume(){ie(r,!1)}}}function Y8(r,e){return[...r].filter(t=>t.id!==e.id)}function $X(r){return r.filter(e=>e.tagName!=="A")}function Vo(r,{select:e=!1}={}){if(!(r&&r.focus)||document.activeElement===r)return;const t=document.activeElement;r.focus({preventScroll:!0}),r!==t&&OX(r)&&e&&r.select()}function eq(r,{select:e=!1}={}){const t=document.activeElement;for(const n of r)if(Vo(n,{select:e}),document.activeElement!==t)return!0}function X8(r,e){for(const t of r)if(!RX(t,e))return t}function q8(r){const e=[],t=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)e.push(t.currentNode);return e}function tq(r){const e=q8(r),t=X8(e,r),n=X8(e.reverse(),r);return[t,n]}/*!
|
|
8
|
-
* tabbable 6.2.0
|
|
9
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
10
|
-
*/var rq=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],nq=rq.join(","),j8=typeof Element>"u",$p=j8?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,eg=!j8&&Element.prototype.getRootNode?function(r){var e;return r==null||(e=r.getRootNode)===null||e===void 0?void 0:e.call(r)}:function(r){return r==null?void 0:r.ownerDocument},iq=function r(e,t){var n;t===void 0&&(t=!0);var i=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),a=i===""||i==="true",o=a||t&&e&&r(e.parentNode);return o},aq=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},oq=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},sq=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||aq(e))&&!oq(e)?0:e.tabIndex},K8=function(e){return e.tagName==="INPUT"},lq=function(e){return K8(e)&&e.type==="hidden"},uq=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},cq=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},fq=function(e){if(!e.name)return!0;var t=e.form||eg(e),n=function(s){return t.querySelectorAll('input[type="radio"][name="'+s+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(e.name));else try{i=n(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var a=cq(i,e.form);return!a||a===e},hq=function(e){return K8(e)&&e.type==="radio"},vq=function(e){return hq(e)&&!fq(e)},dq=function(e){var t,n=e&&eg(e),i=(t=n)===null||t===void 0?void 0:t.host,a=!1;if(n&&n!==e){var o,s,l;for(a=!!((o=i)!==null&&o!==void 0&&(s=o.ownerDocument)!==null&&s!==void 0&&s.contains(i)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!a&&i;){var u,c,f;n=eg(i),i=(u=n)===null||u===void 0?void 0:u.host,a=!!((c=i)!==null&&c!==void 0&&(f=c.ownerDocument)!==null&&f!==void 0&&f.contains(i))}}return a},J8=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return n===0&&i===0},pq=function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var a=$p.call(e,"details>summary:first-of-type"),o=a?e.parentElement:e;if($p.call(o,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof i=="function"){for(var s=e;e;){var l=e.parentElement,u=eg(e);if(l&&!l.shadowRoot&&i(l)===!0)return J8(e);e.assignedSlot?e=e.assignedSlot:!l&&u!==e.ownerDocument?e=u.host:e=l}e=s}if(dq(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return J8(e);return!1},gq=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if(i.tagName==="LEGEND")return $p.call(t,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}t=t.parentElement}return!1},mq=function(e,t){return!(t.disabled||iq(t)||lq(t)||pq(t,e)||uq(t)||gq(t))},yq=function(e,t){return!(vq(t)||sq(t)<0||!mq(e,t))},_q=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return $p.call(e,nq)===!1?!1:yq(t,e)};const wq=new G8("focusScope.autoFocusOnMount",{bubbles:!1,cancelable:!0}),bq=new G8("focusScope.autoFocusOnDestroy",{bubbles:!1,cancelable:!0}),xq=new Us("FocusScope");function Sq({id:r,loop:e,enabled:t,onOpenAutoFocus:n,onCloseAutoFocus:i,forceMount:a}){const o=JX(),s=QX(),l=oe(null),u=xq.getOr({ignoreCloseAutoFocus:!1});let c=null;Dr({id:r,ref:l,deps:()=>t.current});function f(m){if(!(s.paused||!l.current||s.isHandlingFocus)){s.isHandlingFocus=!0;try{const y=m.target;if(!e2(y))return;const _=l.current.contains(y);if(m.type==="focusin")if(_)c=y;else{if(u.ignoreCloseAutoFocus)return;Vo(c,{select:!0})}else m.type==="focusout"&&!_&&!u.ignoreCloseAutoFocus&&Vo(c,{select:!0})}finally{s.isHandlingFocus=!1}}}function h(m){var _;!((_=l.current)==null?void 0:_.contains(c))&&l.current&&Vo(l.current)}Wt([()=>l.current,()=>t.current],([m,y])=>{if(!m||!y)return;const _=Zs(Pr(document,"focusin",f),Pr(document,"focusout",f)),w=new MutationObserver(h);return w.observe(m,{childList:!0,subtree:!0}),()=>{_(),w.disconnect()}}),Wt([()=>a.current,()=>l.current],([m,y])=>{if(m)return;const _=document.activeElement;return v(y,_),()=>{y&&d(_)}}),Wt([()=>a.current,()=>l.current,()=>t.current],([m,y])=>{if(!m)return;const _=document.activeElement;return v(y,_),()=>{y&&d(_)}});function v(m,y){if(m||(m=document.getElementById(r.current)),!m||!t.current)return;if(o.add(s),!m.contains(y)){const w=wq.createEvent();n.current(w),w.defaultPrevented||Ys(()=>{m&&(eq($X(q8(m)),{select:!0}),document.activeElement===y&&Vo(m))})}}function d(m){const y=bq.createEvent();i.current(y);const _=u.ignoreCloseAutoFocus;jp(0,()=>{!y.defaultPrevented&&m&&!_&&Vo(_q(m)?m:document.body,{select:!0}),o.remove(s)})}function g(m){if(!t.current||!e.current&&!t.current||s.paused)return;const y=m.key===J_&&!m.ctrlKey&&!m.altKey&&!m.metaKey,_=document.activeElement;if(!(y&&_))return;const w=l.current;if(!w)return;const[b,x]=tq(w);b&&x?!m.shiftKey&&_===x?(m.preventDefault(),e.current&&Vo(b,{select:!0})):m.shiftKey&&_===b&&(m.preventDefault(),e.current&&Vo(x,{select:!0})):_===w&&m.preventDefault()}const p=q(()=>({id:r.current,tabindex:-1,onkeydown:g}));return{get props(){return D(p)}}}function Tq(r,e){Ae(e,!0);let t=R(e,"trapFocus",3,!1),n=R(e,"loop",3,!1),i=R(e,"onCloseAutoFocus",3,rr),a=R(e,"onOpenAutoFocus",3,rr),o=R(e,"forceMount",3,!1);const s=Sq({enabled:oe.with(()=>t()),loop:oe.with(()=>n()),onCloseAutoFocus:oe.with(()=>i()),onOpenAutoFocus:oe.with(()=>a()),id:oe.with(()=>e.id),forceMount:oe.with(()=>o())});var l=Z(),u=G(l);he(u,()=>e.focusScope??Pe,()=>({props:s.props})),I(r,l),Ce()}globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);class Aq{constructor(e){ue(this,zy);pe(this,"opts");ue(this,Sf,rr);ue(this,_d,oe(null));ue(this,By,e=>{const t=X(this,_d).current,n=e.target;!e2(t)||!e2(n)||!this.opts.enabled.current||!Mq(this)||!t2(t,n)||(this.opts.onPointerDown.current(e),!e.defaultPrevented&&Lr(this,Sf,Dq(t)))});ue(this,wd,()=>{X(this,Sf).call(this),Lr(this,Sf,rr)});this.opts=e,Dr({id:e.id,ref:X(this,_d),deps:()=>this.opts.enabled.current});let t=rr;Wt(()=>this.opts.enabled.current,n=>(n&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),t(),t=pu(this,zy,uz).call(this)),()=>{t(),X(this,wd).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}}Sf=new WeakMap,_d=new WeakMap,zy=new WeakSet,uz=function(){return Zs(Pr(document,"pointerdown",X(this,By)),Pr(document,"pointerup",S8(X(this,wd),this.opts.onPointerUp.current)))},By=new WeakMap,wd=new WeakMap;function Cq(r){return new Aq(r)}const Q8=r=>r.style.userSelect||r.style.webkitUserSelect;function Dq(r){const e=document.body,t=Q8(e),n=Q8(r);return tg(e,"none"),tg(r,"text"),()=>{tg(e,t),tg(r,n)}}function tg(r,e){r.style.userSelect=e,r.style.webkitUserSelect=e}function Mq(r){const e=[...globalThis.bitsTextSelectionLayers];if(!e.length)return!1;const t=e.at(-1);return t?t[0]===r:!1}function Iq(r,e){Ae(e,!0);let t=R(e,"preventOverflowTextSelection",3,!0),n=R(e,"onPointerDown",3,rr),i=R(e,"onPointerUp",3,rr);Cq({id:oe.with(()=>e.id),preventOverflowTextSelection:oe.with(()=>t()),onPointerDown:oe.with(()=>n()),onPointerUp:oe.with(()=>i()),enabled:oe.with(()=>e.enabled)});var a=Z(),o=G(a);he(o,()=>e.children??Pe),I(r,a),Ce()}function Eq(r){let e=0,t=Ye(void 0),n;function i(){e-=1,n&&e<=0&&(n(),ie(t,void 0),n=void 0)}return(...a)=>(e+=1,D(t)===void 0&&(n=aB(()=>{ie(t,Ee(r(...a)))})),Ht(()=>()=>{i()}),D(t))}const Lq=Eq(()=>{const r=new U_,e=q(()=>{for(const a of r.values())if(a)return!0;return!1});let t=Ye(null),n=null;function i(){Q_&&(document.body.setAttribute("style",D(t)??""),document.body.style.removeProperty("--scrollbar-width"),$_&&(n==null||n()))}return Ht(()=>{const a=D(e);return Hr(()=>{if(!a)return;ie(t,Ee(document.body.getAttribute("style")));const o=getComputedStyle(document.body),s=window.innerWidth-document.documentElement.clientWidth,u={padding:Number.parseInt(o.paddingRight??"0",10)+s,margin:Number.parseInt(o.marginRight??"0",10)};s>0&&(document.body.style.paddingRight=`${u.padding}px`,document.body.style.marginRight=`${u.margin}px`,document.body.style.setProperty("--scrollbar-width",`${s}px`),document.body.style.overflow="hidden"),$_&&(n=H8(document,"touchmove",c=>{c.target===document.documentElement&&(c.touches.length>1||c.preventDefault())},{passive:!1})),Ys(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})})}),Ht(()=>()=>{n==null||n()}),{get map(){return r},resetBodyStyle:i}});function kq(r,e=()=>null){const t=Mr(),n=Lq();if(!n)return;const i=q(e);n.map.set(t,r??!1);const a=oe.with(()=>n.map.get(t)??!1,o=>n.map.set(t,o));return Ht(()=>()=>{n.map.delete(t),!Pq(n.map)&&(D(i)===null?requestAnimationFrame(()=>n.resetBodyStyle()):jp(D(i),()=>n.resetBodyStyle()))}),a}function Pq(r){for(const[e,t]of r)if(t)return!0;return!1}function $8(r,e){Ae(e,!0);let t=R(e,"preventScroll",3,!0),n=R(e,"restoreScrollDelay",3,null);kq(t(),()=>n()),Ce()}function Nq(r,e,t=!0){if(!(r.length===0||e<0||e>=r.length))return r.length===1&&e===0?r[0]:e===r.length-1?t?r[0]:void 0:r[e+1]}function Oq(r,e,t=!0){if(!(r.length===0||e<0||e>=r.length))return r.length===1&&e===0?r[0]:e===0?t?r[r.length-1]:void 0:r[e-1]}function Rq(r,e,t,n=!0){if(r.length===0||e<0||e>=r.length)return;let i=e+t;return n?i=(i%r.length+r.length)%r.length:i=Math.max(0,Math.min(i,r.length-1)),r[i]}function Vq(r,e,t,n=!0){if(r.length===0||e<0||e>=r.length)return;let i=e-t;return n?i=(i%r.length+r.length)%r.length:i=Math.max(0,Math.min(i,r.length-1)),r[i]}var zq=se("<span><!></span>");function Bq(r,e){Ae(e,!0);let t=tt(e,["$$slots","$$events","$$legacy","children","child"]);const n={position:"absolute",border:0,width:"1px",display:"inline-block",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0 0 0 0)",whiteSpace:"nowrap",wordWrap:"normal"},i=q(()=>_r(t,{style:n}));var a=Z(),o=G(a);{var s=u=>{var c=Z(),f=G(c);he(f,()=>e.child,()=>({props:D(i)})),I(u,c)},l=u=>{var c=zq();let f;var h=K(c);he(h,()=>e.children??Pe),ce(()=>f=it(c,f,{...D(i)})),I(u,c)};W(o,u=>{e.child?u(s):u(l,!1)})}I(r,a),Ce()}const Fq="data-collapsible-root",Hq="data-collapsible-content",Gq="data-collapsible-trigger";class Wq{constructor(e){pe(this,"opts");ue(this,bd,Ye(null));ue(this,Fy,q(()=>({id:this.opts.id.current,"data-state":Ju(this.opts.open.current),"data-disabled":Qu(this.opts.disabled.current),[Fq]:""})));this.opts=e,this.toggleOpen=this.toggleOpen.bind(this),Dr(e)}get contentNode(){return D(X(this,bd))}set contentNode(e){ie(X(this,bd),Ee(e))}toggleOpen(){this.opts.open.current=!this.opts.open.current}get props(){return D(X(this,Fy))}}bd=new WeakMap,Fy=new WeakMap;class Zq{constructor(e,t){pe(this,"opts");pe(this,"root");ue(this,Tf);ue(this,Af,Ye(!1));ue(this,Cf,Ye(0));ue(this,Df,Ye(0));ue(this,Hy,q(()=>this.opts.forceMount.current||this.root.opts.open.current));ue(this,Gy,q(()=>({open:this.root.opts.open.current})));ue(this,Wy,q(()=>({id:this.opts.id.current,style:{"--bits-collapsible-content-height":D(X(this,Df))?`${D(X(this,Df))}px`:void 0,"--bits-collapsible-content-width":D(X(this,Cf))?`${D(X(this,Cf))}px`:void 0},"data-state":Ju(this.root.opts.open.current),"data-disabled":Qu(this.root.opts.disabled.current),[Hq]:""})));this.opts=e,this.root=t,X(this,Af).v=Ee(t.opts.open.current),Dr({...e,deps:()=>this.present,onRefChange:n=>{this.root.contentNode=n}}),Rf(()=>{const n=requestAnimationFrame(()=>{ie(X(this,Af),!1)});return()=>{cancelAnimationFrame(n)}}),Wt([()=>this.opts.ref.current,()=>this.present],([n])=>{n&&Ys(()=>{if(!this.opts.ref.current)return;Lr(this,Tf,X(this,Tf)||{transitionDuration:n.style.transitionDuration,animationName:n.style.animationName}),n.style.transitionDuration="0s",n.style.animationName="none";const i=n.getBoundingClientRect();if(ie(X(this,Df),Ee(i.height)),ie(X(this,Cf),Ee(i.width)),!D(X(this,Af))){const{animationName:a,transitionDuration:o}=X(this,Tf);n.style.transitionDuration=o,n.style.animationName=a}})})}get present(){return D(X(this,Hy))}get snippetProps(){return D(X(this,Gy))}get props(){return D(X(this,Wy))}}Tf=new WeakMap,Af=new WeakMap,Cf=new WeakMap,Df=new WeakMap,Hy=new WeakMap,Gy=new WeakMap,Wy=new WeakMap;class Uq{constructor(e,t){pe(this,"opts");pe(this,"root");ue(this,vu,q(()=>this.opts.disabled.current||this.root.opts.disabled.current));ue(this,Zy,q(()=>{var e;return{id:this.opts.id.current,type:"button",disabled:D(X(this,vu)),"aria-controls":(e=this.root.contentNode)==null?void 0:e.id,"aria-expanded":k8(this.root.opts.open.current),"data-state":Ju(this.root.opts.open.current),"data-disabled":Qu(D(X(this,vu))),[Gq]:"",onclick:this.onclick,onkeydown:this.onkeydown}}));this.opts=e,this.root=t,this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),Dr(e)}onclick(e){if(!D(X(this,vu))){if(e.button!==0)return e.preventDefault();this.root.toggleOpen()}}onkeydown(e){D(X(this,vu))||(e.key===z8||e.key===Jp)&&(e.preventDefault(),this.root.toggleOpen())}get props(){return D(X(this,Zy))}}vu=new WeakMap,Zy=new WeakMap;const r2=new Us("Collapsible.Root");function Yq(r){return r2.set(new Wq(r))}function Xq(r){return new Uq(r,r2.get())}function qq(r){return new Zq(r,r2.get())}var jq=se("<div><!></div>");function Kq(r,e){Ae(e,!0);let t=R(e,"id",19,Mr),n=R(e,"ref",15,null),i=R(e,"open",15,!1),a=R(e,"disabled",3,!1),o=R(e,"onOpenChange",3,rr),s=tt(e,["$$slots","$$events","$$legacy","children","child","id","ref","open","disabled","onOpenChange"]);const l=Yq({open:oe.with(()=>i(),d=>{i(d),o()(d)}),disabled:oe.with(()=>a()),id:oe.with(()=>t()),ref:oe.with(()=>n(),d=>n(d))}),u=q(()=>_r(s,l.props));var c=Z(),f=G(c);{var h=d=>{var g=Z(),p=G(g);he(p,()=>e.child,()=>({props:D(u)})),I(d,g)},v=d=>{var g=jq();let p;var m=K(g);he(m,()=>e.children??Pe),ce(()=>p=it(g,p,{...D(u)})),I(d,g)};W(f,d=>{e.child?d(h):d(v,!1)})}I(r,c),Ce()}var Jq=se("<div><!></div>");function Qq(r,e){Ae(e,!0);let t=R(e,"ref",15,null),n=R(e,"forceMount",3,!1),i=R(e,"id",19,Mr),a=tt(e,["$$slots","$$events","$$legacy","child","ref","forceMount","children","id"]);const o=qq({id:oe.with(()=>i()),forceMount:oe.with(()=>n()),ref:oe.with(()=>t(),s=>t(s))});B8(r,{forceMount:!0,get present(){return o.present},get id(){return i()},presence:(l,u)=>{let c=()=>u==null?void 0:u().present;var f=Z();const h=q(()=>_r(a,o.props,{hidden:n()?void 0:!c().current}));var v=G(f);{var d=p=>{var m=Z(),y=G(m),_=kr(()=>({...o.snippetProps,props:D(h)}));he(y,()=>e.child,()=>D(_)),I(p,m)},g=p=>{var m=Jq();let y;var _=K(m);he(_,()=>e.children??Pe),ce(()=>y=it(m,y,{...D(h)})),I(p,m)};W(v,p=>{e.child?p(d):p(g,!1)})}I(l,f)},$$slots:{presence:!0}}),Ce()}var $q=se("<button><!></button>");function ej(r,e){Ae(e,!0);let t=R(e,"ref",15,null),n=R(e,"id",19,Mr),i=R(e,"disabled",3,!1),a=tt(e,["$$slots","$$events","$$legacy","children","child","ref","id","disabled"]);const o=Xq({id:oe.with(()=>n()),ref:oe.with(()=>t(),h=>t(h)),disabled:oe.with(()=>i())}),s=q(()=>_r(a,o.props));var l=Z(),u=G(l);{var c=h=>{var v=Z(),d=G(v);he(d,()=>e.child,()=>({props:D(s)})),I(h,v)},f=h=>{var v=$q();let d;var g=K(v);he(g,()=>e.children??Pe),ce(()=>d=it(v,d,{...D(s)})),I(h,v)};W(u,h=>{e.child?h(c):h(f,!1)})}I(r,l),Ce()}const tj=["top","right","bottom","left"],zo=Math.min,Mn=Math.max,rg=Math.round,ng=Math.floor,ea=r=>({x:r,y:r}),rj={left:"right",right:"left",bottom:"top",top:"bottom"},nj={start:"end",end:"start"};function n2(r,e,t){return Mn(r,zo(e,t))}function Ha(r,e){return typeof r=="function"?r(e):r}function Ga(r){return r.split("-")[0]}function $u(r){return r.split("-")[1]}function i2(r){return r==="x"?"y":"x"}function a2(r){return r==="y"?"height":"width"}function Bo(r){return["top","bottom"].includes(Ga(r))?"y":"x"}function o2(r){return i2(Bo(r))}function ij(r,e,t){t===void 0&&(t=!1);const n=$u(r),i=o2(r),a=a2(i);let o=i==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(o=ig(o)),[o,ig(o)]}function aj(r){const e=ig(r);return[s2(r),e,s2(e)]}function s2(r){return r.replace(/start|end/g,e=>nj[e])}function oj(r,e,t){const n=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(r){case"top":case"bottom":return t?e?i:n:e?n:i;case"left":case"right":return e?a:o;default:return[]}}function sj(r,e,t,n){const i=$u(r);let a=oj(Ga(r),t==="start",n);return i&&(a=a.map(o=>o+"-"+i),e&&(a=a.concat(a.map(s2)))),a}function ig(r){return r.replace(/left|right|bottom|top/g,e=>rj[e])}function lj(r){return{top:0,right:0,bottom:0,left:0,...r}}function e4(r){return typeof r!="number"?lj(r):{top:r,right:r,bottom:r,left:r}}function ag(r){const{x:e,y:t,width:n,height:i}=r;return{width:n,height:i,top:t,left:e,right:e+n,bottom:t+i,x:e,y:t}}function t4(r,e,t){let{reference:n,floating:i}=r;const a=Bo(e),o=o2(e),s=a2(o),l=Ga(e),u=a==="y",c=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,h=n[s]/2-i[s]/2;let v;switch(l){case"top":v={x:c,y:n.y-i.height};break;case"bottom":v={x:c,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:f};break;case"left":v={x:n.x-i.width,y:f};break;default:v={x:n.x,y:n.y}}switch($u(e)){case"start":v[o]-=h*(t&&u?-1:1);break;case"end":v[o]+=h*(t&&u?-1:1);break}return v}const uj=async(r,e,t)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:o}=t,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let u=await o.getElementRects({reference:r,floating:e,strategy:i}),{x:c,y:f}=t4(u,n,l),h=n,v={},d=0;for(let g=0;g<s.length;g++){const{name:p,fn:m}=s[g],{x:y,y:_,data:w,reset:b}=await m({x:c,y:f,initialPlacement:n,placement:h,strategy:i,middlewareData:v,rects:u,platform:o,elements:{reference:r,floating:e}});c=y??c,f=_??f,v={...v,[p]:{...v[p],...w}},b&&d<=50&&(d++,typeof b=="object"&&(b.placement&&(h=b.placement),b.rects&&(u=b.rects===!0?await o.getElementRects({reference:r,floating:e,strategy:i}):b.rects),{x:c,y:f}=t4(u,h,l)),g=-1)}return{x:c,y:f,placement:h,strategy:i,middlewareData:v}};async function oh(r,e){var t;e===void 0&&(e={});const{x:n,y:i,platform:a,rects:o,elements:s,strategy:l}=r,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:h=!1,padding:v=0}=Ha(e,r),d=e4(v),p=s[h?f==="floating"?"reference":"floating":f],m=ag(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(p)))==null||t?p:p.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y=f==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),w=await(a.isElement==null?void 0:a.isElement(_))?await(a.getScale==null?void 0:a.getScale(_))||{x:1,y:1}:{x:1,y:1},b=ag(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:_,strategy:l}):y);return{top:(m.top-b.top+d.top)/w.y,bottom:(b.bottom-m.bottom+d.bottom)/w.y,left:(m.left-b.left+d.left)/w.x,right:(b.right-m.right+d.right)/w.x}}const cj=r=>({name:"arrow",options:r,async fn(e){const{x:t,y:n,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=e,{element:u,padding:c=0}=Ha(r,e)||{};if(u==null)return{};const f=e4(c),h={x:t,y:n},v=o2(i),d=a2(v),g=await o.getDimensions(u),p=v==="y",m=p?"top":"left",y=p?"bottom":"right",_=p?"clientHeight":"clientWidth",w=a.reference[d]+a.reference[v]-h[v]-a.floating[d],b=h[v]-a.reference[v],x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let S=x?x[_]:0;(!S||!await(o.isElement==null?void 0:o.isElement(x)))&&(S=s.floating[_]||a.floating[d]);const T=w/2-b/2,C=S/2-g[d]/2-1,A=zo(f[m],C),M=zo(f[y],C),k=A,L=S-g[d]-M,P=S/2-g[d]/2+T,E=n2(k,P,L),O=!l.arrow&&$u(i)!=null&&P!==E&&a.reference[d]/2-(P<k?A:M)-g[d]/2<0,V=O?P<k?P-k:P-L:0;return{[v]:h[v]+V,data:{[v]:E,centerOffset:P-E-V,...O&&{alignmentOffset:V}},reset:O}}}),fj=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(e){var t,n;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:u}=e,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:g=!0,...p}=Ha(r,e);if((t=a.arrow)!=null&&t.alignmentOffset)return{};const m=Ga(i),y=Bo(s),_=Ga(s)===s,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=h||(_||!g?[ig(s)]:aj(s)),x=d!=="none";!h&&x&&b.push(...sj(s,g,d,w));const S=[s,...b],T=await oh(e,p),C=[];let A=((n=a.flip)==null?void 0:n.overflows)||[];if(c&&C.push(T[m]),f){const P=ij(i,o,w);C.push(T[P[0]],T[P[1]])}if(A=[...A,{placement:i,overflows:C}],!C.every(P=>P<=0)){var M,k;const P=(((M=a.flip)==null?void 0:M.index)||0)+1,E=S[P];if(E)return{data:{index:P,overflows:A},reset:{placement:E}};let O=(k=A.filter(V=>V.overflows[0]<=0).sort((V,z)=>V.overflows[1]-z.overflows[1])[0])==null?void 0:k.placement;if(!O)switch(v){case"bestFit":{var L;const V=(L=A.filter(z=>{if(x){const H=Bo(z.placement);return H===y||H==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(H=>H>0).reduce((H,B)=>H+B,0)]).sort((z,H)=>z[1]-H[1])[0])==null?void 0:L[0];V&&(O=V);break}case"initialPlacement":O=s;break}if(i!==O)return{reset:{placement:O}}}return{}}}};function r4(r,e){return{top:r.top-e.height,right:r.right-e.width,bottom:r.bottom-e.height,left:r.left-e.width}}function n4(r){return tj.some(e=>r[e]>=0)}const hj=function(r){return r===void 0&&(r={}),{name:"hide",options:r,async fn(e){const{rects:t}=e,{strategy:n="referenceHidden",...i}=Ha(r,e);switch(n){case"referenceHidden":{const a=await oh(e,{...i,elementContext:"reference"}),o=r4(a,t.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:n4(o)}}}case"escaped":{const a=await oh(e,{...i,altBoundary:!0}),o=r4(a,t.floating);return{data:{escapedOffsets:o,escaped:n4(o)}}}default:return{}}}}};async function vj(r,e){const{placement:t,platform:n,elements:i}=r,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=Ga(t),s=$u(t),l=Bo(t)==="y",u=["left","top"].includes(o)?-1:1,c=a&&l?-1:1,f=Ha(e,r);let{mainAxis:h,crossAxis:v,alignmentAxis:d}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof d=="number"&&(v=s==="end"?d*-1:d),l?{x:v*c,y:h*u}:{x:h*u,y:v*c}}const dj=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var t,n;const{x:i,y:a,placement:o,middlewareData:s}=e,l=await vj(e,r);return o===((t=s.offset)==null?void 0:t.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},pj=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){const{x:t,y:n,placement:i}=e,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:p=>{let{x:m,y}=p;return{x:m,y}}},...l}=Ha(r,e),u={x:t,y:n},c=await oh(e,l),f=Bo(Ga(i)),h=i2(f);let v=u[h],d=u[f];if(a){const p=h==="y"?"top":"left",m=h==="y"?"bottom":"right",y=v+c[p],_=v-c[m];v=n2(y,v,_)}if(o){const p=f==="y"?"top":"left",m=f==="y"?"bottom":"right",y=d+c[p],_=d-c[m];d=n2(y,d,_)}const g=s.fn({...e,[h]:v,[f]:d});return{...g,data:{x:g.x-t,y:g.y-n,enabled:{[h]:a,[f]:o}}}}}},gj=function(r){return r===void 0&&(r={}),{options:r,fn(e){const{x:t,y:n,placement:i,rects:a,middlewareData:o}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Ha(r,e),c={x:t,y:n},f=Bo(i),h=i2(f);let v=c[h],d=c[f];const g=Ha(s,e),p=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const _=h==="y"?"height":"width",w=a.reference[h]-a.floating[_]+p.mainAxis,b=a.reference[h]+a.reference[_]-p.mainAxis;v<w?v=w:v>b&&(v=b)}if(u){var m,y;const _=h==="y"?"width":"height",w=["top","left"].includes(Ga(i)),b=a.reference[f]-a.floating[_]+(w&&((m=o.offset)==null?void 0:m[f])||0)+(w?0:p.crossAxis),x=a.reference[f]+a.reference[_]+(w?0:((y=o.offset)==null?void 0:y[f])||0)-(w?p.crossAxis:0);d<b?d=b:d>x&&(d=x)}return{[h]:v,[f]:d}}}},mj=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){var t,n;const{placement:i,rects:a,platform:o,elements:s}=e,{apply:l=()=>{},...u}=Ha(r,e),c=await oh(e,u),f=Ga(i),h=$u(i),v=Bo(i)==="y",{width:d,height:g}=a.floating;let p,m;f==="top"||f==="bottom"?(p=f,m=h===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(m=f,p=h==="end"?"top":"bottom");const y=g-c.top-c.bottom,_=d-c.left-c.right,w=zo(g-c[p],y),b=zo(d-c[m],_),x=!e.middlewareData.shift;let S=w,T=b;if((t=e.middlewareData.shift)!=null&&t.enabled.x&&(T=_),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(S=y),x&&!h){const A=Mn(c.left,0),M=Mn(c.right,0),k=Mn(c.top,0),L=Mn(c.bottom,0);v?T=d-2*(A!==0||M!==0?A+M:Mn(c.left,c.right)):S=g-2*(k!==0||L!==0?k+L:Mn(c.top,c.bottom))}await l({...e,availableWidth:T,availableHeight:S});const C=await o.getDimensions(s.floating);return d!==C.width||g!==C.height?{reset:{rects:!0}}:{}}}};function og(){return typeof window<"u"}function ec(r){return i4(r)?(r.nodeName||"").toLowerCase():"#document"}function In(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function ta(r){var e;return(e=(i4(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function i4(r){return og()?r instanceof Node||r instanceof In(r).Node:!1}function Ti(r){return og()?r instanceof Element||r instanceof In(r).Element:!1}function ra(r){return og()?r instanceof HTMLElement||r instanceof In(r).HTMLElement:!1}function a4(r){return!og()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof In(r).ShadowRoot}function sh(r){const{overflow:e,overflowX:t,overflowY:n,display:i}=Ai(r);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!["inline","contents"].includes(i)}function yj(r){return["table","td","th"].includes(ec(r))}function sg(r){return[":popover-open",":modal"].some(e=>{try{return r.matches(e)}catch{return!1}})}function l2(r){const e=u2(),t=Ti(r)?Ai(r):r;return["transform","translate","scale","rotate","perspective"].some(n=>t[n]?t[n]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(t.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(t.contain||"").includes(n))}function _j(r){let e=Fo(r);for(;ra(e)&&!tc(e);){if(l2(e))return e;if(sg(e))return null;e=Fo(e)}return null}function u2(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function tc(r){return["html","body","#document"].includes(ec(r))}function Ai(r){return In(r).getComputedStyle(r)}function lg(r){return Ti(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function Fo(r){if(ec(r)==="html")return r;const e=r.assignedSlot||r.parentNode||a4(r)&&r.host||ta(r);return a4(e)?e.host:e}function o4(r){const e=Fo(r);return tc(e)?r.ownerDocument?r.ownerDocument.body:r.body:ra(e)&&sh(e)?e:o4(e)}function lh(r,e,t){var n;e===void 0&&(e=[]),t===void 0&&(t=!0);const i=o4(r),a=i===((n=r.ownerDocument)==null?void 0:n.body),o=In(i);if(a){const s=c2(o);return e.concat(o,o.visualViewport||[],sh(i)?i:[],s&&t?lh(s):[])}return e.concat(i,lh(i,[],t))}function c2(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function s4(r){const e=Ai(r);let t=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=ra(r),a=i?r.offsetWidth:t,o=i?r.offsetHeight:n,s=rg(t)!==a||rg(n)!==o;return s&&(t=a,n=o),{width:t,height:n,$:s}}function f2(r){return Ti(r)?r:r.contextElement}function rc(r){const e=f2(r);if(!ra(e))return ea(1);const t=e.getBoundingClientRect(),{width:n,height:i,$:a}=s4(e);let o=(a?rg(t.width):t.width)/n,s=(a?rg(t.height):t.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const wj=ea(0);function l4(r){const e=In(r);return!u2()||!e.visualViewport?wj:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function bj(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==In(r)?!1:e}function Xs(r,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);const i=r.getBoundingClientRect(),a=f2(r);let o=ea(1);e&&(n?Ti(n)&&(o=rc(n)):o=rc(r));const s=bj(a,t,n)?l4(a):ea(0);let l=(i.left+s.x)/o.x,u=(i.top+s.y)/o.y,c=i.width/o.x,f=i.height/o.y;if(a){const h=In(a),v=n&&Ti(n)?In(n):n;let d=h,g=c2(d);for(;g&&n&&v!==d;){const p=rc(g),m=g.getBoundingClientRect(),y=Ai(g),_=m.left+(g.clientLeft+parseFloat(y.paddingLeft))*p.x,w=m.top+(g.clientTop+parseFloat(y.paddingTop))*p.y;l*=p.x,u*=p.y,c*=p.x,f*=p.y,l+=_,u+=w,d=In(g),g=c2(d)}}return ag({width:c,height:f,x:l,y:u})}function h2(r,e){const t=lg(r).scrollLeft;return e?e.left+t:Xs(ta(r)).left+t}function u4(r,e,t){t===void 0&&(t=!1);const n=r.getBoundingClientRect(),i=n.left+e.scrollLeft-(t?0:h2(r,n)),a=n.top+e.scrollTop;return{x:i,y:a}}function xj(r){let{elements:e,rect:t,offsetParent:n,strategy:i}=r;const a=i==="fixed",o=ta(n),s=e?sg(e.floating):!1;if(n===o||s&&a)return t;let l={scrollLeft:0,scrollTop:0},u=ea(1);const c=ea(0),f=ra(n);if((f||!f&&!a)&&((ec(n)!=="body"||sh(o))&&(l=lg(n)),ra(n))){const v=Xs(n);u=rc(n),c.x=v.x+n.clientLeft,c.y=v.y+n.clientTop}const h=o&&!f&&!a?u4(o,l,!0):ea(0);return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-l.scrollLeft*u.x+c.x+h.x,y:t.y*u.y-l.scrollTop*u.y+c.y+h.y}}function Sj(r){return Array.from(r.getClientRects())}function Tj(r){const e=ta(r),t=lg(r),n=r.ownerDocument.body,i=Mn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=Mn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-t.scrollLeft+h2(r);const s=-t.scrollTop;return Ai(n).direction==="rtl"&&(o+=Mn(e.clientWidth,n.clientWidth)-i),{width:i,height:a,x:o,y:s}}function Aj(r,e){const t=In(r),n=ta(r),i=t.visualViewport;let a=n.clientWidth,o=n.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;const u=u2();(!u||u&&e==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}function Cj(r,e){const t=Xs(r,!0,e==="fixed"),n=t.top+r.clientTop,i=t.left+r.clientLeft,a=ra(r)?rc(r):ea(1),o=r.clientWidth*a.x,s=r.clientHeight*a.y,l=i*a.x,u=n*a.y;return{width:o,height:s,x:l,y:u}}function c4(r,e,t){let n;if(e==="viewport")n=Aj(r,t);else if(e==="document")n=Tj(ta(r));else if(Ti(e))n=Cj(e,t);else{const i=l4(r);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return ag(n)}function f4(r,e){const t=Fo(r);return t===e||!Ti(t)||tc(t)?!1:Ai(t).position==="fixed"||f4(t,e)}function Dj(r,e){const t=e.get(r);if(t)return t;let n=lh(r,[],!1).filter(s=>Ti(s)&&ec(s)!=="body"),i=null;const a=Ai(r).position==="fixed";let o=a?Fo(r):r;for(;Ti(o)&&!tc(o);){const s=Ai(o),l=l2(o);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||sh(o)&&!l&&f4(r,o))?n=n.filter(c=>c!==o):i=s,o=Fo(o)}return e.set(r,n),n}function Mj(r){let{element:e,boundary:t,rootBoundary:n,strategy:i}=r;const o=[...t==="clippingAncestors"?sg(e)?[]:Dj(e,this._c):[].concat(t),n],s=o[0],l=o.reduce((u,c)=>{const f=c4(e,c,i);return u.top=Mn(f.top,u.top),u.right=zo(f.right,u.right),u.bottom=zo(f.bottom,u.bottom),u.left=Mn(f.left,u.left),u},c4(e,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Ij(r){const{width:e,height:t}=s4(r);return{width:e,height:t}}function Ej(r,e,t){const n=ra(e),i=ta(e),a=t==="fixed",o=Xs(r,!0,a,e);let s={scrollLeft:0,scrollTop:0};const l=ea(0);if(n||!n&&!a)if((ec(e)!=="body"||sh(i))&&(s=lg(e)),n){const h=Xs(e,!0,a,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else i&&(l.x=h2(i));const u=i&&!n&&!a?u4(i,s):ea(0),c=o.left+s.scrollLeft-l.x-u.x,f=o.top+s.scrollTop-l.y-u.y;return{x:c,y:f,width:o.width,height:o.height}}function v2(r){return Ai(r).position==="static"}function h4(r,e){if(!ra(r)||Ai(r).position==="fixed")return null;if(e)return e(r);let t=r.offsetParent;return ta(r)===t&&(t=t.ownerDocument.body),t}function v4(r,e){const t=In(r);if(sg(r))return t;if(!ra(r)){let i=Fo(r);for(;i&&!tc(i);){if(Ti(i)&&!v2(i))return i;i=Fo(i)}return t}let n=h4(r,e);for(;n&&yj(n)&&v2(n);)n=h4(n,e);return n&&tc(n)&&v2(n)&&!l2(n)?t:n||_j(r)||t}const Lj=async function(r){const e=this.getOffsetParent||v4,t=this.getDimensions,n=await t(r.floating);return{reference:Ej(r.reference,await e(r.floating),r.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function kj(r){return Ai(r).direction==="rtl"}const Pj={convertOffsetParentRelativeRectToViewportRelativeRect:xj,getDocumentElement:ta,getClippingRect:Mj,getOffsetParent:v4,getElementRects:Lj,getClientRects:Sj,getDimensions:Ij,getScale:rc,isElement:Ti,isRTL:kj};function d4(r,e){return r.x===e.x&&r.y===e.y&&r.width===e.width&&r.height===e.height}function Nj(r,e){let t=null,n;const i=ta(r);function a(){var s;clearTimeout(n),(s=t)==null||s.disconnect(),t=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const u=r.getBoundingClientRect(),{left:c,top:f,width:h,height:v}=u;if(s||e(),!h||!v)return;const d=ng(f),g=ng(i.clientWidth-(c+h)),p=ng(i.clientHeight-(f+v)),m=ng(c),_={rootMargin:-d+"px "+-g+"px "+-p+"px "+-m+"px",threshold:Mn(0,zo(1,l))||1};let w=!0;function b(x){const S=x[0].intersectionRatio;if(S!==l){if(!w)return o();S?o(!1,S):n=setTimeout(()=>{o(!1,1e-7)},1e3)}S===1&&!d4(u,r.getBoundingClientRect())&&o(),w=!1}try{t=new IntersectionObserver(b,{..._,root:i.ownerDocument})}catch{t=new IntersectionObserver(b,_)}t.observe(r)}return o(!0),a}function p4(r,e,t,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=f2(r),c=i||a?[...u?lh(u):[],...lh(e)]:[];c.forEach(m=>{i&&m.addEventListener("scroll",t,{passive:!0}),a&&m.addEventListener("resize",t)});const f=u&&s?Nj(u,t):null;let h=-1,v=null;o&&(v=new ResizeObserver(m=>{let[y]=m;y&&y.target===u&&v&&(v.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var _;(_=v)==null||_.observe(e)})),t()}),u&&!l&&v.observe(u),v.observe(e));let d,g=l?Xs(r):null;l&&p();function p(){const m=Xs(r);g&&!d4(g,m)&&t(),g=m,d=requestAnimationFrame(p)}return t(),()=>{var m;c.forEach(y=>{i&&y.removeEventListener("scroll",t),a&&y.removeEventListener("resize",t)}),f==null||f(),(m=v)==null||m.disconnect(),v=null,l&&cancelAnimationFrame(d)}}const g4=dj,m4=pj,y4=fj,Oj=mj,Rj=hj,Vj=cj,zj=gj,_4=(r,e,t)=>{const n=new Map,i={platform:Pj,...t},a={...i.platform,_c:n};return uj(r,e,{...i,platform:a})};function uh(r){return typeof r=="function"?r():r}function w4(r){return typeof window>"u"?1:(r.ownerDocument.defaultView||window).devicePixelRatio||1}function b4(r,e){const t=w4(r);return Math.round(e*t)/t}function Bj(r){const e=r.whileElementsMounted,t=q(()=>uh(r.open)??!0),n=q(()=>uh(r.middleware)),i=q(()=>uh(r.transform)??!0),a=q(()=>uh(r.placement)??"bottom"),o=q(()=>uh(r.strategy)??"absolute"),s=r.reference;let l=Ye(0),u=Ye(0);const c=oe(null);let f=Ye(Ee(D(o))),h=Ye(Ee(D(a))),v=Ye(Ee({})),d=Ye(!1);const g=q(()=>{const b={position:D(f),left:"0",top:"0"};if(!c.current)return b;const x=b4(c.current,D(l)),S=b4(c.current,D(u));return D(i)?{...b,transform:`translate(${x}px, ${S}px)`,...w4(c.current)>=1.5&&{willChange:"transform"}}:{position:D(f),left:`${x}px`,top:`${S}px`}});let p;function m(){s.current===null||c.current===null||_4(s.current,c.current,{middleware:D(n),placement:D(a),strategy:D(o)}).then(b=>{ie(l,Ee(b.x)),ie(u,Ee(b.y)),ie(f,Ee(b.strategy)),ie(h,Ee(b.placement)),ie(v,Ee(b.middlewareData)),ie(d,!0)})}function y(){typeof p=="function"&&(p(),p=void 0)}function _(){if(y(),e===void 0){m();return}s.current===null||c.current===null||(p=e(s.current,c.current,m))}function w(){D(t)||ie(d,!1)}return Ht(m),Ht(_),Ht(w),Ht(()=>y),{floating:c,reference:s,get strategy(){return D(f)},get placement(){return D(h)},get middlewareData(){return D(v)},get isPositioned(){return D(d)},get floatingStyles(){return D(g)},get update(){return m}}}const Fj={top:"bottom",right:"left",bottom:"top",left:"right"};class Hj{constructor(){pe(this,"anchorNode",oe(null));pe(this,"customAnchorNode",oe(null));pe(this,"triggerNode",oe(null));Ht(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class Gj{constructor(e,t){pe(this,"opts");pe(this,"root");pe(this,"contentRef",oe(null));pe(this,"wrapperRef",oe(null));pe(this,"arrowRef",oe(null));pe(this,"arrowId",oe(Mr()));ue(this,xd,q(()=>{if(typeof this.opts.style=="string")return ih(this.opts.style);if(!this.opts.style)return{}}));ue(this,Uy);ue(this,Sd,new lX(()=>this.arrowRef.current??void 0));ue(this,Yy,q(()=>{var e;return((e=X(this,Sd))==null?void 0:e.width)??0}));ue(this,Td,q(()=>{var e;return((e=X(this,Sd))==null?void 0:e.height)??0}));ue(this,Xy,q(()=>{var e;return((e=this.opts.side)==null?void 0:e.current)+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")}));ue(this,Ad,q(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));ue(this,qy,q(()=>D(X(this,Ad)).length>0));ue(this,jy,q(()=>({padding:this.opts.collisionPadding.current,boundary:D(X(this,Ad)).filter(NX),altBoundary:this.hasExplicitBoundaries})));ue(this,Cd,Ye(void 0));ue(this,Dd,Ye(void 0));ue(this,Md,Ye(void 0));ue(this,Id,Ye(void 0));ue(this,Ky,q(()=>[g4({mainAxis:this.opts.sideOffset.current+D(X(this,Td)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&m4({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?zj():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&y4({...this.detectOverflowOptions}),Oj({...this.detectOverflowOptions,apply:({rects:e,availableWidth:t,availableHeight:n})=>{const{width:i,height:a}=e.reference;ie(X(this,Cd),Ee(t)),ie(X(this,Dd),Ee(n)),ie(X(this,Md),Ee(i)),ie(X(this,Id),Ee(a))}}),this.arrowRef.current&&Vj({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),qj({arrowWidth:D(X(this,Yy)),arrowHeight:D(X(this,Td))}),this.opts.hideWhenDetached.current&&Rj({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));pe(this,"floating");ue(this,Jy,q(()=>jj(this.floating.placement)));ue(this,Qy,q(()=>Kj(this.floating.placement)));ue(this,$y,q(()=>{var e;return((e=this.floating.middlewareData.arrow)==null?void 0:e.x)??0}));ue(this,e1,q(()=>{var e;return((e=this.floating.middlewareData.arrow)==null?void 0:e.y)??0}));ue(this,t1,q(()=>{var e;return((e=this.floating.middlewareData.arrow)==null?void 0:e.centerOffset)!==0}));ue(this,Ed,Ye());ue(this,r1,q(()=>Fj[this.placedSide]));ue(this,n1,q(()=>{var e,t,n;return{id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${(e=this.floating.middlewareData.transformOrigin)==null?void 0:e.x} ${(t=this.floating.middlewareData.transformOrigin)==null?void 0:t.y}`,"--bits-floating-available-width":`${D(X(this,Cd))}px`,"--bits-floating-available-height":`${D(X(this,Dd))}px`,"--bits-floating-anchor-width":`${D(X(this,Md))}px`,"--bits-floating-anchor-height":`${D(X(this,Id))}px`,...((n=this.floating.middlewareData.hide)==null?void 0:n.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...D(X(this,xd))},dir:this.opts.dir.current}}));ue(this,i1,q(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:qp({...D(X(this,xd))})})));ue(this,a1,q(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0})));this.opts=e,this.root=t,e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),Wt(()=>e.customAnchor.current,n=>{this.root.customAnchorNode.current=n}),Dr({id:this.opts.wrapperId,ref:this.wrapperRef,deps:()=>this.opts.enabled.current}),Dr({id:this.opts.id,ref:this.contentRef,deps:()=>this.opts.enabled.current}),this.floating=Bj({strategy:()=>this.opts.strategy.current,placement:()=>D(X(this,Xy)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...n)=>{var a;return p4(...n,{animationFrame:((a=X(this,Uy))==null?void 0:a.current)==="always"})},open:()=>this.opts.enabled.current}),Ht(()=>{var n;this.floating.isPositioned&&((n=this.opts.onPlaced)==null||n.current())}),Wt(()=>this.contentRef.current,n=>{n&&(this.contentZIndex=window.getComputedStyle(n).zIndex)}),Ht(()=>{this.floating.floating.current=this.wrapperRef.current})}get hasExplicitBoundaries(){return D(X(this,qy))}get detectOverflowOptions(){return D(X(this,jy))}get middleware(){return D(X(this,Ky))}get placedSide(){return D(X(this,Jy))}get placedAlign(){return D(X(this,Qy))}get arrowX(){return D(X(this,$y))}get arrowY(){return D(X(this,e1))}get cannotCenterArrow(){return D(X(this,t1))}get contentZIndex(){return D(X(this,Ed))}set contentZIndex(e){ie(X(this,Ed),Ee(e))}get arrowBaseSide(){return D(X(this,r1))}get wrapperProps(){return D(X(this,n1))}get props(){return D(X(this,i1))}get arrowStyle(){return D(X(this,a1))}}xd=new WeakMap,Uy=new WeakMap,Sd=new WeakMap,Yy=new WeakMap,Td=new WeakMap,Xy=new WeakMap,Ad=new WeakMap,qy=new WeakMap,jy=new WeakMap,Cd=new WeakMap,Dd=new WeakMap,Md=new WeakMap,Id=new WeakMap,Ky=new WeakMap,Jy=new WeakMap,Qy=new WeakMap,$y=new WeakMap,e1=new WeakMap,t1=new WeakMap,Ed=new WeakMap,r1=new WeakMap,n1=new WeakMap,i1=new WeakMap,a1=new WeakMap;class Wj{constructor(e,t){pe(this,"opts");pe(this,"root");pe(this,"ref",oe(null));this.opts=e,this.root=t,e.virtualEl&&e.virtualEl.current?t.triggerNode=oe.from(e.virtualEl.current):Dr({id:e.id,ref:this.ref,onRefChange:n=>{t.triggerNode.current=n}})}}const d2=new Us("Floating.Root"),Zj=new Us("Floating.Content");function Uj(){return d2.set(new Hj)}function Yj(r){return Zj.set(new Gj(r,d2.get()))}function Xj(r){return new Wj(r,d2.get())}function qj(r){return{name:"transformOrigin",options:r,fn(e){var p,m,y;const{placement:t,rects:n,middlewareData:i}=e,o=((p=i.arrow)==null?void 0:p.centerOffset)!==0,s=o?0:r.arrowWidth,l=o?0:r.arrowHeight,[u,c]=p2(t),f={start:"0%",center:"50%",end:"100%"}[c],h=(((m=i.arrow)==null?void 0:m.x)??0)+s/2,v=(((y=i.arrow)==null?void 0:y.y)??0)+l/2;let d="",g="";return u==="bottom"?(d=o?f:`${h}px`,g=`${-l}px`):u==="top"?(d=o?f:`${h}px`,g=`${n.floating.height+l}px`):u==="right"?(d=`${-l}px`,g=o?f:`${v}px`):u==="left"&&(d=`${n.floating.width+l}px`,g=o?f:`${v}px`),{data:{x:d,y:g}}}}}function p2(r){const[e,t="center"]=r.split("-");return[e,t]}function jj(r){return p2(r)[0]}function Kj(r){return p2(r)[1]}function Jj(r,e){Ae(e,!0),Uj();var t=Z(),n=G(t);he(n,()=>e.children??Pe),I(r,t),Ce()}const x4=[vX,K_,dX,LX,gX,mX,hX,EX,Jp,yX,xX,SX,TX,AX,CX,DX,MX,IX,_X,wX,bX],Qj=[Kp,V8,O8],$j=[ah,R8,N8],eK=[...Qj,...$j];class S4{constructor(e){pe(this,"opts");ue(this,Ld,Ye(!1));ue(this,kd,Ye(""));ue(this,Pd,Ye(null));ue(this,Nd,Ye(null));ue(this,Od,Ye(null));ue(this,Rd,Ye(""));ue(this,Vd,Ye(null));ue(this,o1,q(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));ue(this,s1,q(()=>{if(this.highlightedNode)return this.highlightedNode.id}));ue(this,l1,q(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));pe(this,"isUsingKeyboard",!1);pe(this,"isCombobox",!1);pe(this,"bitsAttrs");this.opts=e,this.isCombobox=e.isCombobox,this.bitsAttrs=AK(this),Rf(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return D(X(this,Ld))}set touchedInput(e){ie(X(this,Ld),Ee(e))}get inputValue(){return D(X(this,kd))}set inputValue(e){ie(X(this,kd),Ee(e))}get inputNode(){return D(X(this,Pd))}set inputNode(e){ie(X(this,Pd),Ee(e))}get contentNode(){return D(X(this,Nd))}set contentNode(e){ie(X(this,Nd),Ee(e))}get triggerNode(){return D(X(this,Od))}set triggerNode(e){ie(X(this,Od),Ee(e))}get valueId(){return D(X(this,Rd))}set valueId(e){ie(X(this,Rd),Ee(e))}get highlightedNode(){return D(X(this,Vd))}set highlightedNode(e){ie(X(this,Vd),Ee(e))}get highlightedValue(){return D(X(this,o1))}get highlightedId(){return D(X(this,s1))}get highlightedLabel(){return D(X(this,l1))}setHighlightedNode(e,t=!1){this.highlightedNode=e,e&&(this.isUsingKeyboard||t)&&e.scrollIntoView({block:"nearest"})}getCandidateNodes(){const e=this.contentNode;return e?Array.from(e.querySelectorAll(`[${this.bitsAttrs.item}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(){this.setHighlightedNode(null);const e=this.getCandidateNodes();e.length&&this.setHighlightedNode(e[0])}getNodeByValue(e){return this.getCandidateNodes().find(n=>n.dataset.value===e)??null}setOpen(e){this.opts.open.current=e}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}}Ld=new WeakMap,kd=new WeakMap,Pd=new WeakMap,Nd=new WeakMap,Od=new WeakMap,Rd=new WeakMap,Vd=new WeakMap,o1=new WeakMap,s1=new WeakMap,l1=new WeakMap;class tK extends S4{constructor(t){super(t);pe(this,"opts");pe(this,"isMulti",!1);ue(this,u1,q(()=>this.opts.value.current!==""));ue(this,c1,q(()=>{var n;return this.opts.items.current.length?((n=this.opts.items.current.find(i=>i.value===this.opts.value.current))==null?void 0:n.label)??"":""}));ue(this,f1,q(()=>this.opts.items.current.length?this.opts.items.current.filter(n=>!n.disabled).map(n=>n.label):[]));ue(this,h1,q(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=t,Ht(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),Wt(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return D(X(this,u1))}get currentLabel(){return D(X(this,c1))}get candidateLabels(){return D(X(this,f1))}get dataTypeaheadEnabled(){return D(X(this,h1))}includesItem(t){return this.opts.value.current===t}toggleItem(t,n=t){this.opts.value.current=this.includesItem(t)?"":t,this.inputValue=n}setInitialHighlightedNode(){Ys(()=>{if(this.highlightedNode&&document.contains(this.highlightedNode))return;if(this.opts.value.current!==""){const n=this.getNodeByValue(this.opts.value.current);if(n){this.setHighlightedNode(n,!0);return}}const t=this.getCandidateNodes()[0];t&&this.setHighlightedNode(t,!0)})}}u1=new WeakMap,c1=new WeakMap,f1=new WeakMap,h1=new WeakMap;class rK extends S4{constructor(t){super(t);pe(this,"opts");pe(this,"isMulti",!0);ue(this,v1,q(()=>this.opts.value.current.length>0));this.opts=t,Ht(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),Wt(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return D(X(this,v1))}includesItem(t){return this.opts.value.current.includes(t)}toggleItem(t,n=t){this.includesItem(t)?this.opts.value.current=this.opts.value.current.filter(i=>i!==t):this.opts.value.current=[...this.opts.value.current,t],this.inputValue=n}setInitialHighlightedNode(){Ys(()=>{if(this.highlightedNode&&document.contains(this.highlightedNode))return;if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const n=this.getNodeByValue(this.opts.value.current[0]);if(n){this.setHighlightedNode(n,!0);return}}const t=this.getCandidateNodes()[0];t&&this.setHighlightedNode(t,!0)})}}v1=new WeakMap;class nK{constructor(e,t){pe(this,"opts");pe(this,"root");ue(this,d1,q(()=>({id:this.opts.id.current,role:"combobox",disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":"list","aria-expanded":k8(this.root.opts.open.current),"data-state":Ju(this.root.opts.open.current),"data-disabled":Qu(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.bitsAttrs.input]:""})));this.opts=e,this.root=t,Dr({...e,onRefChange:n=>{this.root.inputNode=n}}),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),Wt([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([n,i],[a])=>{i&&(Array.isArray(n)&&Array.isArray(a)?n.length===0&&a.length!==0&&(this.root.inputValue=""):n===""&&a!==""&&(this.root.inputValue=""))})}onkeydown(e){if(this.root.isUsingKeyboard=!0,e.key!==K_){if((e.key===ah||e.key===Kp)&&e.preventDefault(),!this.root.opts.open.current){if(x4.includes(e.key)||e.key===J_||e.key===pX&&this.root.inputValue===""||(this.root.handleOpen(),this.root.hasValue))return;const t=this.root.getCandidateNodes();if(!t.length)return;if(e.key===Kp){const n=t[0];this.root.setHighlightedNode(n)}else if(e.key===ah){const n=t[t.length-1];this.root.setHighlightedNode(n)}return}if(e.key===J_){this.root.handleClose();return}if(e.key===Jp&&!e.isComposing){e.preventDefault();const t=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t&&this.root.handleClose()}if(e.key===ah&&e.altKey&&this.root.handleClose(),eK.includes(e.key)){e.preventDefault();const t=this.root.getCandidateNodes(),n=this.root.highlightedNode,i=n?t.indexOf(n):-1,a=this.root.opts.loop.current;let o;if(e.key===Kp?o=Nq(t,i,a):e.key===ah?o=Oq(t,i,a):e.key===R8?o=Rq(t,i,10,a):e.key===V8?o=Vq(t,i,10,a):e.key===O8?o=t[0]:e.key===N8&&(o=t[t.length-1]),!o)return;this.root.setHighlightedNode(o);return}x4.includes(e.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(e){this.root.inputValue=e.currentTarget.value,this.root.setHighlightedToFirstCandidate()}get props(){return D(X(this,d1))}}d1=new WeakMap;class iK{constructor(e,t){pe(this,"opts");pe(this,"root");ue(this,p1,q(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","data-state":Ju(this.root.opts.open.current),"data-disabled":Qu(this.root.opts.disabled.current),[this.root.bitsAttrs.trigger]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown})));this.opts=e,this.root=t,Dr(e),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this)}onkeydown(e){var t;(e.key===Jp||e.key===z8)&&(e.preventDefault(),document.activeElement!==this.root.inputNode&&((t=this.root.inputNode)==null||t.focus()),this.root.toggleMenu())}onpointerdown(e){var t;this.root.opts.disabled.current||(e.preventDefault(),document.activeElement!==this.root.inputNode&&((t=this.root.inputNode)==null||t.focus()),this.root.toggleMenu())}get props(){return D(X(this,p1))}}p1=new WeakMap;class aK{constructor(e,t){pe(this,"opts");pe(this,"root");ue(this,zd,Ye(null));ue(this,Bd,Ye(!1));ue(this,g1,q(()=>{const e=this.root.isCombobox?"--bits-combobox":"--bits-select";return{[`${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`${e}-content-available-width`]:"var(--bits-floating-available-width)",[`${e}-content-available-height`]:"var(--bits-floating-available-height)",[`${e}-anchor-width`]:" var(--bits-floating-anchor-width)",[`${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}));pe(this,"onInteractOutside",e=>{if(e.target===this.root.triggerNode||e.target===this.root.inputNode){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()});pe(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()});pe(this,"onOpenAutoFocus",e=>{e.preventDefault()});pe(this,"onCloseAutoFocus",e=>{e.preventDefault()});ue(this,m1,q(()=>({open:this.root.opts.open.current})));ue(this,y1,q(()=>({id:this.opts.id.current,role:"listbox","data-state":Ju(this.root.opts.open.current),[this.root.bitsAttrs.content]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...D(X(this,g1))},onpointermove:this.onpointermove})));pe(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.isPositioned=!0}});this.opts=e,this.root=t,Dr({...e,onRefChange:n=>{this.root.contentNode=n},deps:()=>this.root.opts.open.current}),j_(()=>{this.root.contentNode=null,this.isPositioned=!1}),Wt(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.isPositioned=!1)}),this.onpointermove=this.onpointermove.bind(this)}get viewportNode(){return D(X(this,zd))}set viewportNode(e){ie(X(this,zd),Ee(e))}get isPositioned(){return D(X(this,Bd))}set isPositioned(e){ie(X(this,Bd),Ee(e))}onpointermove(e){this.root.isUsingKeyboard=!1}get snippetProps(){return D(X(this,m1))}get props(){return D(X(this,y1))}}zd=new WeakMap,Bd=new WeakMap,g1=new WeakMap,m1=new WeakMap,y1=new WeakMap;class oK{constructor(e,t){pe(this,"opts");pe(this,"root");ue(this,_1,q(()=>this.root.includesItem(this.opts.value.current)));ue(this,w1,q(()=>this.root.highlightedValue===this.opts.value.current));pe(this,"prevHighlighted",new L8(()=>this.isHighlighted));ue(this,Fd,Ye(!1));ue(this,b1,q(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));ue(this,x1,q(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Qu(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.bitsAttrs.item]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup})));this.opts=e,this.root=t,Dr({...e,deps:()=>this.mounted}),Wt([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),Wt(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}get isSelected(){return D(X(this,_1))}get isHighlighted(){return D(X(this,w1))}get mounted(){return D(X(this,Fd))}set mounted(e){ie(X(this,Fd),Ee(e))}handleSelect(){if(this.opts.disabled.current)return;const e=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!e&&this.root.handleClose()}get snippetProps(){return D(X(this,b1))}onpointerdown(e){e.preventDefault()}onpointerup(e){if(!(e.defaultPrevented||!this.opts.ref.current)){if(e.pointerType==="touch"&&!$_){Pr(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}e.preventDefault(),this.handleSelect(),e.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(e){e.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}get props(){return D(X(this,x1))}}_1=new WeakMap,w1=new WeakMap,Fd=new WeakMap,b1=new WeakMap,x1=new WeakMap;class sK{constructor(e,t){pe(this,"opts");pe(this,"root");ue(this,Hd,Ye(null));ue(this,S1,q(()=>{var e;return{id:this.opts.id.current,role:"group",[this.root.bitsAttrs.group]:"","aria-labelledby":((e=this.labelNode)==null?void 0:e.id)??void 0}}));this.opts=e,this.root=t,Dr(e)}get labelNode(){return D(X(this,Hd))}set labelNode(e){ie(X(this,Hd),Ee(e))}get props(){return D(X(this,S1))}}Hd=new WeakMap,S1=new WeakMap;class lK{constructor(e,t){pe(this,"opts");pe(this,"group");ue(this,T1,q(()=>({id:this.opts.id.current,[this.group.root.bitsAttrs["group-label"]]:""})));this.opts=e,this.group=t,Dr({...e,onRefChange:n=>{t.labelNode=n}})}get props(){return D(X(this,T1))}}T1=new WeakMap;class uK{constructor(e,t){pe(this,"opts");pe(this,"root");ue(this,A1,q(()=>this.root.opts.name.current!==""));ue(this,C1,q(()=>({disabled:cX(this.root.opts.disabled.current),required:fX(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,style:qp(M8),tabindex:-1,onfocus:this.onfocus})));this.opts=e,this.root=t,this.onfocus=this.onfocus.bind(this)}get shouldRender(){return D(X(this,A1))}onfocus(e){var t,n;e.preventDefault(),this.root.isCombobox?(n=this.root.inputNode)==null||n.focus():(t=this.root.triggerNode)==null||t.focus()}get props(){return D(X(this,C1))}}A1=new WeakMap,C1=new WeakMap;class cK{constructor(e,t){pe(this,"opts");pe(this,"content");pe(this,"root");ue(this,Gd,Ye(0));ue(this,D1,q(()=>({id:this.opts.id.current,role:"presentation",[this.root.bitsAttrs.viewport]:"",style:{position:"relative",flex:1,overflow:"auto"}})));this.opts=e,this.content=t,this.root=t.root,Dr({...e,onRefChange:n=>{this.content.viewportNode=n},deps:()=>this.root.opts.open.current})}get prevScrollTop(){return D(X(this,Gd))}set prevScrollTop(e){ie(X(this,Gd),Ee(e))}get props(){return D(X(this,D1))}}Gd=new WeakMap,D1=new WeakMap;class T4{constructor(e,t){pe(this,"opts");pe(this,"content");pe(this,"root");pe(this,"autoScrollInterval",null);pe(this,"userScrollTimer",-1);pe(this,"isUserScrolling",!1);pe(this,"onAutoScroll",rr);ue(this,Wd,Ye(!1));ue(this,M1,q(()=>({id:this.opts.id.current,"aria-hidden":P8(!0),style:{flexShrink:0},onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave})));this.opts=e,this.content=t,this.root=t.root,Dr({...e,deps:()=>this.mounted}),Wt([()=>this.mounted],()=>{if(!this.mounted){this.isUserScrolling=!1;return}this.isUserScrolling}),Ht(()=>{this.mounted||this.clearAutoScrollInterval()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}get mounted(){return D(X(this,Wd))}set mounted(e){ie(X(this,Wd),Ee(e))}handleUserScroll(){window.clearTimeout(this.userScrollTimer),this.isUserScrolling=!0,this.userScrollTimer=window.setTimeout(()=>{this.isUserScrolling=!1},200)}clearAutoScrollInterval(){this.autoScrollInterval!==null&&(window.clearInterval(this.autoScrollInterval),this.autoScrollInterval=null)}onpointerdown(e){this.autoScrollInterval===null&&(this.autoScrollInterval=window.setInterval(()=>{this.onAutoScroll()},50))}onpointermove(e){this.autoScrollInterval===null&&(this.autoScrollInterval=window.setInterval(()=>{this.onAutoScroll()},50))}onpointerleave(e){this.clearAutoScrollInterval()}get props(){return D(X(this,M1))}}Wd=new WeakMap,M1=new WeakMap;class fK{constructor(e){pe(this,"state");pe(this,"content");pe(this,"root");ue(this,Zd,Ye(!1));pe(this,"scrollIntoViewTimer",null);pe(this,"handleScroll",(e=!1)=>{if(e||this.state.handleUserScroll(),!this.content.viewportNode)return;const t=this.content.viewportNode.scrollHeight-this.content.viewportNode.clientHeight,n=Number.parseInt(getComputedStyle(this.content.viewportNode).paddingTop,10);this.canScrollDown=Math.ceil(this.content.viewportNode.scrollTop)<t-n});pe(this,"handleAutoScroll",()=>{const e=this.content.viewportNode,t=this.root.highlightedNode;!e||!t||(e.scrollTop=e.scrollTop+t.offsetHeight)});ue(this,I1,q(()=>({...this.state.props,[this.root.bitsAttrs["scroll-down-button"]]:""})));this.state=e,this.content=e.content,this.root=e.root,this.state.onAutoScroll=this.handleAutoScroll,Wt([()=>this.content.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.content.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),Pr(this.content.viewportNode,"scroll",()=>this.handleScroll())}),Wt(()=>this.state.mounted,()=>{this.state.mounted&&(this.scrollIntoViewTimer&&clearTimeout(this.scrollIntoViewTimer),this.scrollIntoViewTimer=jp(5,()=>{const t=this.root.highlightedNode;t==null||t.scrollIntoView({block:"nearest"})}))})}get canScrollDown(){return D(X(this,Zd))}set canScrollDown(e){ie(X(this,Zd),Ee(e))}get props(){return D(X(this,I1))}}Zd=new WeakMap,I1=new WeakMap;class hK{constructor(e){pe(this,"state");pe(this,"content");pe(this,"root");ue(this,Ud,Ye(!1));pe(this,"handleScroll",(e=!1)=>{if(e||this.state.handleUserScroll(),!this.content.viewportNode)return;const t=Number.parseInt(getComputedStyle(this.content.viewportNode).paddingTop,10);this.canScrollUp=this.content.viewportNode.scrollTop-t>.1});pe(this,"handleAutoScroll",()=>{!this.content.viewportNode||!this.root.highlightedNode||(this.content.viewportNode.scrollTop=this.content.viewportNode.scrollTop-this.root.highlightedNode.offsetHeight)});ue(this,E1,q(()=>({...this.state.props,[this.root.bitsAttrs["scroll-up-button"]]:""})));this.state=e,this.content=e.content,this.root=e.root,this.state.onAutoScroll=this.handleAutoScroll,Wt([()=>this.content.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.content.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),Pr(this.content.viewportNode,"scroll",()=>this.handleScroll())})}get canScrollUp(){return D(X(this,Ud))}set canScrollUp(e){ie(X(this,Ud),Ee(e))}get props(){return D(X(this,E1))}}Ud=new WeakMap,E1=new WeakMap;const qs=new Us("Select.Root | Combobox.Root"),A4=new Us("Select.Group | Combobox.Group"),ug=new Us("Select.Content | Combobox.Content");function vK(r){const{type:e,...t}=r,n=e==="single"?new tK(t):new rK(t);return qs.set(n)}function dK(r){return new nK(r,qs.get())}function pK(r){return ug.set(new aK(r,qs.get()))}function gK(r){return new iK(r,qs.get())}function mK(r){return new oK(r,qs.get())}function yK(r){return new cK(r,ug.get())}function _K(r){return new hK(new T4(r,ug.get()))}function wK(r){return new fK(new T4(r,ug.get()))}function bK(r){return A4.set(new sK(r,qs.get()))}function xK(r){return new lK(r,A4.get())}function SK(r){return new uK(r,qs.get())}const TK=["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"];function AK(r){const e=r.isCombobox,t={};for(const n of TK)t[n]=e?`data-combobox-${n}`:`data-select-${n}`;return t}var CK=se("<input>");function C4(r,e){Ae(e,!0);let t=R(e,"value",15,"");const n=SK({value:oe.with(()=>t())});Bq(r,{children:(i,a)=>{var o=Z(),s=G(o);{var l=u=>{var c=CK();let f;ce(()=>f=it(c,f,{...n.props})),o_(c,t),I(u,c)};W(s,u=>{n.shouldRender&&u(l)})}I(i,o)},$$slots:{default:!0}}),Ce()}var DK=se("<!> <!>",1);function MK(r,e){Ae(e,!0);let t=R(e,"value",15),n=R(e,"onValueChange",3,rr),i=R(e,"name",3,""),a=R(e,"disabled",3,!1),o=R(e,"open",15,!1),s=R(e,"onOpenChange",3,rr),l=R(e,"loop",3,!1),u=R(e,"scrollAlignment",3,"nearest"),c=R(e,"required",3,!1),f=R(e,"items",19,()=>[]),h=R(e,"allowDeselect",3,!0);if(t()===void 0){const _=e.type==="single"?"":[];t(_)}const v=vK({type:e.type,value:oe.with(()=>t(),_=>{t(_),n()(_)}),disabled:oe.with(()=>a()),required:oe.with(()=>c()),open:oe.with(()=>o(),_=>{o(_),s()(_)}),loop:oe.with(()=>l()),scrollAlignment:oe.with(()=>u()),name:oe.with(()=>i()),isCombobox:!0,items:oe.with(()=>f()),allowDeselect:oe.with(()=>h())});var d=DK(),g=G(d);Jj(g,{children:(_,w)=>{var b=Z(),x=G(b);he(x,()=>e.children??Pe),I(_,b)},$$slots:{default:!0}});var p=_e(g,2);{var m=_=>{var w=Z(),b=G(w);{var x=S=>{var T=Z(),C=G(T);Co(C,17,()=>v.opts.value.current,Ao,(A,M)=>{C4(A,{get value(){return D(M)}})}),I(S,T)};W(b,S=>{v.opts.value.current.length&&S(x)})}I(_,w)},y=_=>{C4(_,{get value(){return v.opts.value.current},set value(w){v.opts.value.current=w}})};W(p,_=>{Array.isArray(v.opts.value.current)?_(m):_(y,!1)})}I(r,d),Ce()}function IK(r,e){Ae(e,!0),Xj({id:oe.with(()=>e.id),virtualEl:oe.with(()=>e.virtualEl)});var t=Z(),n=G(t);he(n,()=>e.children??Pe),I(r,t),Ce()}var EK=J('<svg viewBox="0 0 30 10" preserveAspectRatio="none" data-arrow=""><polygon points="0,0 30,0 15,10" fill="currentColor"></polygon></svg>'),LK=se("<span><!></span>");function kK(r,e){Ae(e,!0);let t=R(e,"id",19,Mr),n=R(e,"width",3,10),i=R(e,"height",3,5),a=tt(e,["$$slots","$$events","$$legacy","id","children","child","width","height"]);const o=q(()=>_r(a,{id:t()}));var s=Z(),l=G(s);{var u=f=>{var h=Z(),v=G(h);he(v,()=>e.child,()=>({props:D(o)})),I(f,h)},c=f=>{var h=LK();let v;var d=K(h);{var g=m=>{var y=Z(),_=G(y);he(_,()=>e.children??Pe),I(m,y)},p=m=>{var y=EK();ce(()=>{Fe(y,"width",n()),Fe(y,"height",i())}),I(m,y)};W(d,m=>{e.children?m(g):m(p,!1)})}ce(()=>v=it(h,v,{...D(o)})),I(f,h)};W(l,f=>{e.child?f(u):f(c,!1)})}I(r,s),Ce()}function PK(r,e){Ae(e,!0);let t=R(e,"side",3,"bottom"),n=R(e,"sideOffset",3,0),i=R(e,"align",3,"center"),a=R(e,"alignOffset",3,0),o=R(e,"arrowPadding",3,0),s=R(e,"avoidCollisions",3,!0),l=R(e,"collisionBoundary",19,()=>[]),u=R(e,"collisionPadding",3,0),c=R(e,"hideWhenDetached",3,!1),f=R(e,"onPlaced",3,()=>{}),h=R(e,"sticky",3,"partial"),v=R(e,"updatePositionStrategy",3,"optimized"),d=R(e,"strategy",3,"fixed"),g=R(e,"dir",3,"ltr"),p=R(e,"style",19,()=>({})),m=R(e,"wrapperId",19,Mr),y=R(e,"customAnchor",3,null);const _=Yj({side:oe.with(()=>t()),sideOffset:oe.with(()=>n()),align:oe.with(()=>i()),alignOffset:oe.with(()=>a()),id:oe.with(()=>e.id),arrowPadding:oe.with(()=>o()),avoidCollisions:oe.with(()=>s()),collisionBoundary:oe.with(()=>l()),collisionPadding:oe.with(()=>u()),hideWhenDetached:oe.with(()=>c()),onPlaced:oe.with(()=>f()),sticky:oe.with(()=>h()),updatePositionStrategy:oe.with(()=>v()),strategy:oe.with(()=>d()),dir:oe.with(()=>g()),style:oe.with(()=>p()),enabled:oe.with(()=>e.enabled),wrapperId:oe.with(()=>m()),customAnchor:oe.with(()=>y())}),w=q(()=>_r(_.wrapperProps,{style:{pointerEvents:"auto"}}));var b=Z(),x=G(b);he(x,()=>e.content??Pe,()=>({props:_.props,wrapperProps:D(w)})),I(r,b),Ce()}function NK(r,e){Ae(e,!0),Cu(()=>{var i;(i=e.onPlaced)==null||i.call(e)});var t=Z(),n=G(t);he(n,()=>e.content??Pe,()=>({props:{},wrapperProps:{}})),I(r,t),Ce()}var OK=se("<input>");function RK(r,e){Ae(e,!0);let t=R(e,"id",19,Mr),n=R(e,"ref",15,null),i=R(e,"clearOnDeselect",3,!1),a=tt(e,["$$slots","$$events","$$legacy","id","ref","child","defaultValue","clearOnDeselect"]);const o=dK({id:oe.with(()=>t()),ref:oe.with(()=>n(),c=>n(c)),clearOnDeselect:oe.with(()=>i())});e.defaultValue&&(o.root.inputValue=e.defaultValue);const s=q(()=>_r(a,o.props,{value:o.root.inputValue}));var l=Z(),u=G(l);Fn(u,()=>IK,(c,f)=>{f(c,{get id(){return t()},children:(h,v)=>{var d=Z(),g=G(d);{var p=y=>{var _=Z(),w=G(_);he(w,()=>e.child,()=>({props:D(s)})),I(y,_)},m=y=>{var _=OK();let w;ce(()=>w=it(_,w,{...D(s)})),I(y,_)};W(g,y=>{e.child?y(p):y(m,!1)})}I(h,d)},$$slots:{default:!0}})}),I(r,l),Ce()}const VK="data-separator-root";class zK{constructor(e){pe(this,"opts");ue(this,L1,q(()=>({id:this.opts.id.current,role:this.opts.decorative.current?"none":"separator","aria-orientation":this.opts.orientation.current,"aria-hidden":P8(this.opts.decorative.current),"data-orientation":this.opts.orientation.current,[VK]:""})));this.opts=e,Dr(e)}get props(){return D(X(this,L1))}}L1=new WeakMap;function BK(r){return new zK(r)}var FK=se("<div><!></div>");function HK(r,e){Ae(e,!0);let t=R(e,"id",19,Mr),n=R(e,"ref",15,null),i=R(e,"decorative",3,!1),a=R(e,"orientation",3,"horizontal"),o=tt(e,["$$slots","$$events","$$legacy","id","ref","child","children","decorative","orientation"]);const s=BK({ref:oe.with(()=>n(),v=>n(v)),id:oe.with(()=>t()),decorative:oe.with(()=>i()),orientation:oe.with(()=>a())}),l=q(()=>_r(o,s.props));var u=Z(),c=G(u);{var f=v=>{var d=Z(),g=G(d);he(g,()=>e.child,()=>({props:D(l)})),I(v,d)},h=v=>{var d=FK();let g;var p=K(d);he(p,()=>e.children??Pe),ce(()=>g=it(d,g,{...D(l)})),I(v,d)};W(c,v=>{e.child?v(f):v(h,!1)})}I(r,u),Ce()}var GK=se("<button><!></button>");function WK(r,e){Ae(e,!0);let t=R(e,"id",19,Mr),n=R(e,"ref",15,null),i=R(e,"type",3,"button"),a=tt(e,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const o=gK({id:oe.with(()=>t()),ref:oe.with(()=>n(),h=>n(h))}),s=q(()=>_r(a,o.props,{type:i()}));var l=Z(),u=G(l);{var c=h=>{var v=Z(),d=G(v);he(d,()=>e.child,()=>({props:D(s)})),I(h,v)},f=h=>{var v=GK();let d;var g=K(v);he(g,()=>e.children??Pe),ce(()=>d=it(v,d,{...D(s)})),I(h,v)};W(u,h=>{e.child?h(c):h(f,!1)})}I(r,l),Ce()}function ZK(r,e){let t=R(e,"isStatic",3,!1),n=tt(e,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var i=Z(),a=G(i);{var o=l=>{NK(l,{get content(){return e.content},get onPlaced(){return e.onPlaced}})},s=l=>{PK(l,An({get content(){return e.content},get onPlaced(){return e.onPlaced}},()=>n))};W(a,l=>{t()?l(o):l(s,!1)})}I(r,i)}var UK=se("<!> <!>",1);function D4(r,e){Ae(e,!0);let t=R(e,"interactOutsideBehavior",3,"close"),n=R(e,"trapFocus",3,!0),i=R(e,"isValidEvent",3,()=>!1),a=R(e,"customAnchor",3,null),o=R(e,"isStatic",3,!1),s=tt(e,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);ZK(r,{get isStatic(){return o()},get id(){return e.id},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return a()},get enabled(){return e.enabled},content:(u,c)=>{let f=()=>c==null?void 0:c().props,h=()=>c==null?void 0:c().wrapperProps;var v=UK(),d=G(v);{var g=_=>{$8(_,{get preventScroll(){return e.preventScroll}})},p=_=>{var w=Z(),b=G(w);{var x=S=>{$8(S,{get preventScroll(){return e.preventScroll}})};W(b,S=>{e.forceMount||S(x)},!0)}I(_,w)};W(d,_=>{e.forceMount&&e.enabled?_(g):_(p,!1)})}var m=_e(d,2);const y=q(()=>e.enabled&&n());Tq(m,{get id(){return e.id},get onOpenAutoFocus(){return e.onOpenAutoFocus},get onCloseAutoFocus(){return e.onCloseAutoFocus},get loop(){return e.loop},get trapFocus(){return D(y)},get forceMount(){return e.forceMount},focusScope:(w,b)=>{let x=()=>b==null?void 0:b().props;KX(w,{get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get enabled(){return e.enabled},children:(S,T)=>{YX(S,{get id(){return e.id},get onInteractOutside(){return e.onInteractOutside},get onFocusOutside(){return e.onFocusOutside},get interactOutsideBehavior(){return t()},get isValidEvent(){return i()},get enabled(){return e.enabled},children:(A,M)=>{let k=()=>M==null?void 0:M().props;Iq(A,{get id(){return e.id},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get enabled(){return e.enabled},children:(L,P)=>{var E=Z(),O=G(E),V=kr(()=>({props:_r(s,f(),k(),x(),{style:{pointerEvents:"auto"}}),wrapperProps:h()}));he(O,()=>e.popper??Pe,()=>D(V)),I(L,E)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),I(u,v)},$$slots:{content:!0}}),Ce()}function YK(r,e){let t=R(e,"interactOutsideBehavior",3,"close"),n=R(e,"trapFocus",3,!0),i=R(e,"isValidEvent",3,()=>!1),a=R(e,"customAnchor",3,null),o=R(e,"isStatic",3,!1),s=tt(e,["$$slots","$$events","$$legacy","popper","present","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic"]);B8(r,An({get id(){return e.id},get present(){return e.present}},()=>s,{presence:u=>{D4(u,An({get popper(){return e.popper},get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get id(){return e.id},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get preventScroll(){return e.preventScroll},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return a()},get isStatic(){return o()},get enabled(){return e.present},get onInteractOutside(){return e.onInteractOutside},get onCloseAutoFocus(){return e.onCloseAutoFocus},get onOpenAutoFocus(){return e.onOpenAutoFocus},get interactOutsideBehavior(){return t()},get loop(){return e.loop},get trapFocus(){return n()},get isValidEvent(){return i()},get onFocusOutside(){return e.onFocusOutside},forceMount:!1},()=>s))},$$slots:{presence:!0}}))}function XK(r,e){let t=R(e,"interactOutsideBehavior",3,"close"),n=R(e,"trapFocus",3,!0),i=R(e,"isValidEvent",3,()=>!1),a=R(e,"customAnchor",3,null),o=R(e,"isStatic",3,!1),s=tt(e,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);D4(r,An({get popper(){return e.popper},get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get id(){return e.id},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get preventScroll(){return e.preventScroll},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return a()},get isStatic(){return o()},get enabled(){return e.enabled},get onInteractOutside(){return e.onInteractOutside},get onCloseAutoFocus(){return e.onCloseAutoFocus},get onOpenAutoFocus(){return e.onOpenAutoFocus},get interactOutsideBehavior(){return t()},get loop(){return e.loop},get trapFocus(){return n()},get isValidEvent(){return i()},get onFocusOutside(){return e.onFocusOutside}},()=>s,{forceMount:!0}))}var qK=se("<div><div><!></div></div>"),jK=se("<div><div><!></div></div>");function KK(r,e){Ae(e,!0);let t=R(e,"id",19,Mr),n=R(e,"ref",15,null),i=R(e,"forceMount",3,!1),a=R(e,"side",3,"bottom"),o=R(e,"onInteractOutside",3,rr),s=R(e,"onEscapeKeydown",3,rr),l=R(e,"preventScroll",3,!1),u=tt(e,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll"]);const c=pK({id:oe.with(()=>t()),ref:oe.with(()=>n(),p=>n(p)),onInteractOutside:oe.with(()=>o()),onEscapeKeydown:oe.with(()=>s())}),f=q(()=>_r(u,c.props));var h=Z(),v=G(h);{var d=p=>{XK(p,An(()=>D(f),()=>c.popperProps,{get side(){return a()},get enabled(){return c.root.opts.open.current},get id(){return t()},get preventScroll(){return l()},forceMount:!0,popper:(y,_)=>{let w=()=>_==null?void 0:_().props,b=()=>_==null?void 0:_().wrapperProps;var x=Z();const S=q(()=>_r(w(),{style:c.props.style}));var T=G(x);{var C=M=>{var k=Z(),L=G(k),P=kr(()=>({props:D(S),wrapperProps:b(),...c.snippetProps}));he(L,()=>e.child,()=>D(P)),I(M,k)},A=M=>{var k=qK();let L;var P=K(k);let E;var O=K(P);he(O,()=>e.children??Pe),ce(()=>{L=it(k,L,{...b()}),E=it(P,E,{...D(S)})}),I(M,k)};W(T,M=>{e.child?M(C):M(A,!1)})}I(y,x)},$$slots:{popper:!0}}))},g=p=>{var m=Z(),y=G(m);{var _=w=>{YK(w,An(()=>D(f),()=>c.popperProps,{get side(){return a()},get present(){return c.root.opts.open.current},get id(){return t()},get preventScroll(){return l()},forceMount:!1,popper:(x,S)=>{let T=()=>S==null?void 0:S().props,C=()=>S==null?void 0:S().wrapperProps;var A=Z();const M=q(()=>_r(T(),{style:c.props.style}));var k=G(A);{var L=E=>{var O=Z(),V=G(O),z=kr(()=>({props:D(M),wrapperProps:C(),...c.snippetProps}));he(V,()=>e.child,()=>D(z)),I(E,O)},P=E=>{var O=jK();let V;var z=K(O);let H;var B=K(z);he(B,()=>e.children??Pe),ce(()=>{V=it(O,V,{...C()}),H=it(z,H,{...D(M)})}),I(E,O)};W(k,E=>{e.child?E(L):E(P,!1)})}I(x,A)},$$slots:{popper:!0}}))};W(y,w=>{i()||w(_)},!0)}I(p,m)};W(v,p=>{i()?p(d):p(g,!1)})}I(r,h),Ce()}function g2(r,e){Ae(e,!0);let t=R(e,"mounted",15,!1),n=R(e,"onMountedChange",3,rr);uX(()=>(t(!0),n()(!0),()=>{t(!1),n()(!1)})),Ce()}var JK=se("<div><!></div>"),QK=se("<!> <!>",1);function $K(r,e){Ae(e,!0);let t=R(e,"id",19,Mr),n=R(e,"ref",15,null),i=R(e,"label",19,()=>e.value),a=R(e,"disabled",3,!1),o=R(e,"onHighlight",3,rr),s=R(e,"onUnhighlight",3,rr),l=tt(e,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const u=mK({id:oe.with(()=>t()),ref:oe.with(()=>n(),p=>n(p)),value:oe.with(()=>e.value),disabled:oe.with(()=>a()),label:oe.with(()=>i()),onHighlight:oe.with(()=>o()),onUnhighlight:oe.with(()=>s())}),c=q(()=>_r(l,u.props));var f=QK(),h=G(f);{var v=p=>{var m=Z(),y=G(m),_=kr(()=>({props:D(c),...u.snippetProps}));he(y,()=>e.child,()=>D(_)),I(p,m)},d=p=>{var m=JK();let y;var _=K(m);he(_,()=>e.children??Pe,()=>u.snippetProps),ce(()=>y=it(m,y,{...D(c)})),I(p,m)};W(h,p=>{e.child?p(v):p(d,!1)})}var g=_e(h,2);g2(g,{get mounted(){return u.mounted},set mounted(p){u.mounted=p}}),I(r,f),Ce()}var eJ=se("<div><!></div>");function tJ(r,e){Ae(e,!0);let t=R(e,"id",19,Mr),n=R(e,"ref",15,null),i=tt(e,["$$slots","$$events","$$legacy","id","ref","children","child"]);const a=bK({id:oe.with(()=>t()),ref:oe.with(()=>n(),f=>n(f))}),o=q(()=>_r(i,a.props));var s=Z(),l=G(s);{var u=f=>{var h=Z(),v=G(h);he(v,()=>e.child,()=>({props:D(o)})),I(f,h)},c=f=>{var h=eJ();let v;var d=K(h);he(d,()=>e.children??Pe),ce(()=>v=it(h,v,{...D(o)})),I(f,h)};W(l,f=>{e.child?f(u):f(c,!1)})}I(r,s),Ce()}var rJ=se("<div><!></div>");function nJ(r,e){Ae(e,!0);let t=R(e,"id",19,Mr),n=R(e,"ref",15,null),i=tt(e,["$$slots","$$events","$$legacy","id","ref","child","children"]);const a=xK({id:oe.with(()=>t()),ref:oe.with(()=>n(),f=>n(f))}),o=q(()=>_r(i,a.props));var s=Z(),l=G(s);{var u=f=>{var h=Z(),v=G(h);he(v,()=>e.child,()=>({props:D(o)})),I(f,h)},c=f=>{var h=rJ();let v;var d=K(h);he(d,()=>e.children??Pe),ce(()=>v=it(h,v,{...D(o)})),I(f,h)};W(l,f=>{e.child?f(u):f(c,!1)})}I(r,s),Ce()}var iJ=se("<div><!></div>");function aJ(r,e){Ae(e,!0);let t=R(e,"id",19,Mr),n=R(e,"ref",15,null),i=tt(e,["$$slots","$$events","$$legacy","id","ref","children","child"]);const a=yK({id:oe.with(()=>t()),ref:oe.with(()=>n(),f=>n(f))}),o=q(()=>_r(i,a.props));var s=Z(),l=G(s);{var u=f=>{var h=Z(),v=G(h);he(v,()=>e.child,()=>({props:D(o)})),I(f,h)},c=f=>{var h=iJ();let v;var d=K(h);he(d,()=>e.children??Pe),ce(()=>v=it(h,v,{...D(o)},"svelte-uf90i5")),I(f,h)};W(l,f=>{e.child?f(u):f(c,!1)})}I(r,s),Ce()}var oJ=se("<div><!></div>"),sJ=se("<!> <!>",1);function lJ(r,e){Ae(e,!0);let t=R(e,"id",19,Mr),n=R(e,"ref",15,null),i=tt(e,["$$slots","$$events","$$legacy","id","ref","child","children"]);const a=wK({id:oe.with(()=>t()),ref:oe.with(()=>n(),c=>n(c))}),o=q(()=>_r(i,a.props));var s=Z(),l=G(s);{var u=c=>{var f=sJ(),h=G(f);g2(h,{get mounted(){return a.state.mounted},set mounted(p){a.state.mounted=p}});var v=_e(h,2);{var d=p=>{var m=Z(),y=G(m);he(y,()=>e.child,()=>({props:i})),I(p,m)},g=p=>{var m=oJ();let y;var _=K(m);he(_,()=>e.children??Pe),ce(()=>y=it(m,y,{...D(o)})),I(p,m)};W(v,p=>{e.child?p(d):p(g,!1)})}I(c,f)};W(l,c=>{a.canScrollDown&&c(u)})}I(r,s),Ce()}var uJ=se("<div><!></div>"),cJ=se("<!> <!>",1);function fJ(r,e){Ae(e,!0);let t=R(e,"id",19,Mr),n=R(e,"ref",15,null),i=tt(e,["$$slots","$$events","$$legacy","id","ref","child","children"]);const a=_K({id:oe.with(()=>t()),ref:oe.with(()=>n(),c=>n(c))}),o=q(()=>_r(i,a.props));var s=Z(),l=G(s);{var u=c=>{var f=cJ(),h=G(f);g2(h,{get mounted(){return a.state.mounted},set mounted(p){a.state.mounted=p}});var v=_e(h,2);{var d=p=>{var m=Z(),y=G(m);he(y,()=>e.child,()=>({props:i})),I(p,m)},g=p=>{var m=uJ();let y;var _=K(m);he(_,()=>e.children??Pe),ce(()=>y=it(m,y,{...D(o)})),I(p,m)};W(v,p=>{e.child?p(d):p(g,!1)})}I(c,f)};W(l,c=>{a.canScrollUp&&c(u)})}I(r,s),Ce()}var hJ=se('<div class="container svelte-1e11hpv"><!> <!></div>');function vJ(r,e){Ae(e,!0);let t=R(e,"withIcon",3,!0),n=tt(e,["$$slots","$$events","$$legacy","children","withIcon"]);var i=Z(),a=G(i);Fn(a,()=>ej,(o,s)=>{s(o,An(()=>n,{get class(){return`transition-all ${e.class??""}`},children:(l,u)=>{var c=hJ(),f=K(c);he(f,()=>e.children);var h=_e(f,2);{var v=d=>{L_(d,{class:"icon"})};W(h,d=>{t()&&d(v)})}I(l,c)},$$slots:{default:!0}}))}),I(r,i),Ce()}var dJ=se("<div><!></div>");function pJ(r,e){let t=R(e,"ref",15,null),n=R(e,"duration",3,200),i=tt(e,["$$slots","$$events","$$legacy","ref","duration","children"]);var a=Z(),o=G(a);Fn(o,()=>Qq,(s,l)=>{l(s,An({forceMount:!0},()=>i,{get ref(){return t()},set ref(c){t(c)},child:(c,f)=>{let h=()=>f==null?void 0:f().props,v=()=>f==null?void 0:f().open;var d=Z(),g=G(d);{var p=m=>{var y=dJ();let _;var w=K(y);he(w,()=>e.children??Pe),ce(()=>_=it(y,_,{...h()})),mp(3,y,()=>MU,()=>({duration:n()})),I(m,y)};W(g,m=>{v()&&m(p)})}I(c,d)},$$slots:{child:!0}}))}),I(r,a)}const gJ=Object.freeze(Object.defineProperty({__proto__:null,Content:pJ,Root:Kq,Trigger:vJ},Symbol.toStringTag,{value:"Module"}));var mJ=se("<button><!> <!></button>");function yJ(r,e){let t=tt(e,["$$slots","$$events","$$legacy","children"]);var n=mJ();let i;var a=K(n);XM(a,{});var o=_e(a,2);he(o,()=>e.children),ce(()=>i=it(n,i,{...t},"svelte-jwd6hm")),I(r,n)}var _J=se("<!> <!> <!>",1);function wJ(r,e){const t=c=>{var f=Z(),h=G(f);Fn(h,()=>KK,(v,d)=>{d(v,An(()=>a,{get class(){return e.class},children:(g,p)=>{var m=Z(),y=G(m);{var _=b=>{var x=_J(),S=G(x);Fn(S,()=>fJ,(A,M)=>{M(A,{class:"flex justify-center",children:(k,L)=>{NG(k,{})},$$slots:{default:!0}})});var T=_e(S,2);Fn(T,()=>aJ,(A,M)=>{M(A,{class:"p-1",children:(k,L)=>{var P=Z(),E=G(P);he(E,()=>e.children),I(k,P)},$$slots:{default:!0}})});var C=_e(T,2);Fn(C,()=>lJ,(A,M)=>{M(A,{class:"flex justify-center",children:(k,L)=>{L_(k,{})},$$slots:{default:!0}})}),I(b,x)},w=b=>{var x=Z(),S=G(x);he(S,()=>e.children),I(b,x)};W(y,b=>{n()?b(_):b(w,!1)})}I(g,m)},$$slots:{default:!0}}))}),I(c,f)};let n=R(e,"showScroll",3,!0),i=R(e,"portalled",3,!0),a=tt(e,["$$slots","$$events","$$legacy","children","class","showScroll","portalled"]);var o=Z(),s=G(o);{var l=c=>{var f=Z(),h=G(f);Fn(h,()=>F8,(v,d)=>{d(v,{children:(g,p)=>{t(g)},$$slots:{default:!0}})}),I(c,f)},u=c=>{t(c)};W(s,c=>{i()?c(l):c(u,!1)})}I(r,o)}function bJ(r){iW(r,{size:16})}const xJ=Object.freeze(Object.defineProperty({__proto__:null,Add:yJ,Arrow:kK,Content:wJ,Group:tJ,GroupHeading:nJ,Indicator:bJ,Input:RK,Item:$K,Portal:F8,Root:MK,Separator:HK,Trigger:WK},Symbol.toStringTag,{value:"Module"})),te={base:{mist:"#fbfbfb",snow:"#f6f7f7",white:{default:"#FFFFFF",5:"#FFFFFF0D",10:"#FFFFFF1A",15:"#FFFFFF26",25:"#FFFFFF40",50:"#FFFFFF80",70:"#FFFFFFB3",90:"#FFFFFFE6"},midnight:{default:"#12192a",5:"#12192a0d",8:"#12192a14",10:"#12192A1A",15:"#12192A26",25:"#12192A40",50:"#12192A80",70:"#12192AB3",90:"#12192AE6"}},gray:{1:"#ecedee",2:"#dbdddf",3:"#c4c6ca",4:"#888c94",5:"#595e6a",6:"#2A303F"},periwinkle:{1:"#eeeefd",2:"#cbc9fa",3:{default:"#8e8af4",10:"#8e8af41A",25:"#8e8af440",50:"#8e8af480"},4:{default:"#7973f1",10:"#7973f11A",25:"#7973f140",50:"#7973f180"},5:{default:"#5750ee",10:"#5750ee1A",25:"#5750ee40",50:"#5750ee80"},6:"#4741c1"},orange:{1:"#fff2e6",2:"#ffd6b0",3:"#ffa654",4:{default:"#ff9533",10:"#ff95331A",25:"#ff953340"},5:{default:"#ff7a00",10:"#ff7a001A",25:"#ff7a0040"},6:"#cf6300"},sky:{1:"#f3fafc",2:"#D2F0F6",3:"#89D8E6",4:{default:"#65CCDF",10:"#65CCDF1A",25:"#65CCDF40"},5:{default:"#43C1D8",10:"#43C1D81A",25:"#43C1D840"},6:"#3597a9"},blue:{1:"#e8f4fe",2:"#b8defd",3:"#66b8fb",4:{default:"#49aafa",10:"#49aafa1A",25:"#49aafa40"},5:{default:"#1b95f9",10:"#1b95f91A",25:"#1b95f940"},6:"#146db6"},green:{1:"#e7f7f1",2:"#c4ebdc",3:"#65cba4",4:{default:"#36bc88",10:"#36bc881A",25:"#36bc8840"},5:{default:"#0aad6e",5:"#0aad6e0D",10:"#0aad6e1A",25:"#0aad6e40"},6:"#088756"},yellow:{1:"#fff8e9",2:"#feeabb",3:"#fed16c",4:{default:"#fdc850",10:"#fdc8501A",25:"#fdc85040"},5:{default:"#f1b123",10:"#f1b1231A",25:"#f1b12340"},6:"#cc951e"},red:{1:"#fdeded",2:"#f9c6c6",3:"#f28384",4:{default:"#ef6b6c",10:"#ef6b6c1A",25:"#ef6b6c40"},5:{default:"#eb4647",10:"#eb46471A",25:"#eb464740"},6:"#bf393a"},shadow:{2:"rgba(18, 25, 42, 0.02)",4:"rgba(18, 25, 42, 0.04)",6:"rgba(18, 25, 42, 0.06)",8:"rgba(18, 25, 42, 0.08)",12:"rgba(18, 25, 42, 0.12)",16:"rgba(18, 25, 42, 0.16)"}},SJ={primary:te.base.midnight.default,secondary:te.gray[5],tertiary:te.gray[4],"primary-inverse":te.base.white.default,"secondary-inverse":te.base.white[70],"tertiary-inverse":te.base.white[50],accent:te.periwinkle[6],success:te.green[6],warning:te.yellow[6],danger:te.red[6]},TJ={"icon-primary":te.base.midnight.default,"icon-secondary":te.gray[5],"icon-tertiary":te.gray[4],"icon-primary-inverse":te.base.white.default,"icon-secondary-inverse":te.base.white[70],"icon-accent":te.periwinkle[5].default,"icon-success":te.green[5].default,"icon-warning":te.yellow[5].default,"icon-danger":te.red[5].default,"icon-blue":te.blue[5].default,"icon-orange":te.orange[5].default,"icon-sky":te.sky[5].default},AJ={static:te.base.midnight[8],input:te.base.midnight[10],interactive:te.base.midnight[15],hover:te.periwinkle[5][25],focus:te.periwinkle[5].default,danger:te.red[5].default},CJ={static:te.base.midnight[8],input:te.base.midnight[10],interactive:te.base.midnight[15],hover:te.periwinkle[5][50],focus:te.periwinkle[5].default},DJ={surface:te.base.white.default,"surface-secondary":te.base.snow,base:te.base.mist,"base-inverse":te.gray[6],overlay:"#090D1566",neutral:te.base.midnight[5],"neutral-hover":te.base.midnight[10],"neutral-darker":te.base.midnight[15],"neutral-darker-hover":te.base.midnight[25],"neutral-inverse":te.base.white[5],"neutral-inverse-hover":te.base.white[15],accent:te.periwinkle[5][10],"accent-hover":te.periwinkle[5][25],"accent-inverse":te.periwinkle[5].default,"accent-inverse-hover":te.periwinkle[6],success:te.green[5][10],"success-hover":te.green[5][25],"success-inverse":te.green[5].default,"success-inverse-hover":te.green[6],warning:te.yellow[5][10],"warning-hover":te.yellow[5][25],"warning-inverse":te.yellow[5].default,"warning-inverse-hover":te.yellow[6],danger:te.red[5][10],"danger-hover":te.red[5][25],"danger-inverse":te.red[5].default,"danger-inverse-hover":te.red[6],blue:te.blue[5][10],"blue-hover":te.blue[5][25],orange:te.orange[5][10],"orange-hover":te.orange[5][25],"orange-inverse":te.orange[5].default,"orange-inverse-hover":te.orange[6],sky:te.sky[5][10],"sky-hover":te.sky[5][25],"sky-inverse":te.sky[5].default,"sky-inverse-hover":te.sky[6]},MJ={"dark-primary":te.base.white.default,"dark-secondary":te.gray[3],"dark-tertiary":te.gray[4],"dark-primary-inverse":te.base.midnight.default,"dark-secondary-inverse":te.base.midnight[70],"dark-tertiary-inverse":te.base.midnight[50],"dark-accent":te.periwinkle[3].default,"dark-success":te.green[3],"dark-warning":te.yellow[3],"dark-danger":te.red[3]};te.base.white.default,te.gray[3],te.gray[4],te.base.midnight.default,te.periwinkle[4].default,te.green[4].default,te.yellow[4].default,te.red[4].default,te.blue[4].default,te.orange[4].default,te.sky[4].default;const IJ={"dark-static":te.base.white[10],"dark-input":te.base.white[10],"dark-interactive":te.base.white[15],"dark-hover":te.periwinkle[3][25],"dark-focus":te.periwinkle[4].default,"dark-danger":te.red[4].default},EJ={"dark-static":te.base.white[10],"dark-input":te.base.white[10],"dark-interactive":te.base.white[15],"dark-hover":te.periwinkle[3][50],"dark-focus":te.periwinkle[3].default},LJ={...{"dark-primary":te.gray[6],"dark-secondary":te.base.midnight.default,"dark-base":te.base.midnight.default,"dark-base-inverse":te.base.snow,"dark-overlay":"#090D1566"},"dark-neutral":te.base.white[5],"dark-neutral-hover":te.base.white[15],"dark-neutral-darker":te.base.white[15],"dark-neutral-darker-hover":te.base.white[25],"dark-accent":te.periwinkle[3][10],"dark-accent-hover":te.periwinkle[3][25],"dark-accent-inverse":te.periwinkle[4].default,"dark-accent-inverse-hover":te.periwinkle[5].default,"dark-success":te.green[4][10],"dark-success-hover":te.green[4][25],"dark-success-inverse":te.green[4].default,"dark-success-inverse-hover":te.green[5].default,"dark-warning":te.yellow[4][10],"dark-warning-hover":te.yellow[4][25],"dark-warning-inverse":te.yellow[4].default,"dark-warning-inverse-hover":te.yellow[5].default,"dark-danger":te.red[4][10],"dark-danger-hover":te.red[4][25],"dark-danger-inverse":te.red[4].default,"dark-danger-inverse-hover":te.red[5].default,"dark-blue":te.blue[4][10],"dark-blue-hover":te.blue[4][25],"dark-orange":te.orange[4][10],"dark-orange-hover":te.orange[4][25],"dark-sky":te.sky[4][10],"dark-sky-hover":te.sky[4][25]},cg={...AJ,...IJ},Ci={...SJ,...MJ,...TJ},m2={...DJ,...LJ},kJ={...CJ,...EJ},PJ={input:`0 1px 4px 0 ${te.shadow[4]}`,container:`0 2px 16px 0 ${te.shadow[2]}`,menu:`0 4px 20px 0 ${te.shadow[6]}, 0 0 0 0.5px ${te.shadow[8]}`},NJ={colors:te,borderColor:cg,textColor:Ci,backgroundColor:m2,boxShadow:PJ,outlineColor:kJ};/*! *****************************************************************************
|
|
11
|
-
Copyright (c) Microsoft Corporation.
|
|
12
|
-
|
|
13
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
14
|
-
purpose with or without fee is hereby granted.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
17
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
18
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
19
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
20
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
21
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
22
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
23
|
-
***************************************************************************** */var y2=function(r,e){return y2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},y2(r,e)};function Y(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");y2(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var OJ=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),RJ=function(){function r(){this.browser=new OJ,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),Je=new RJ;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Je.wxa=!0,Je.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Je.worker=!0:!Je.hasGlobalWindow||"Deno"in window?(Je.node=!0,Je.svgSupported=!0):VJ(navigator.userAgent,Je);function VJ(r,e){var t=e.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(t.firefox=!0,t.version=n[1]),i&&(t.ie=!0,t.version=i[1]),a&&(t.edge=!0,t.version=a[1],t.newEdge=+a[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var _2=12,M4="sans-serif",Ho=_2+"px "+M4,zJ=20,BJ=100,FJ="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function HJ(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var n=String.fromCharCode(t+32),i=(r.charCodeAt(t)-zJ)/BJ;e[n]=i}return e}var GJ=HJ(FJ),Go={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,n){if(!r){var i=Go.createCanvas();r=i&&i.getContext("2d")}if(r)return e!==n&&(e=r.font=n||Ho),r.measureText(t);t=t||"",n=n||Ho;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||_2,s=0;if(n.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=GJ[t[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,e,t){var n=new Image;return n.onload=e,n.onerror=t,n.src=r,n}},I4=na(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),E4=na(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),nc=Object.prototype.toString,fg=Array.prototype,WJ=fg.forEach,ZJ=fg.filter,w2=fg.slice,UJ=fg.map,L4=(function(){}).constructor,hg=L4?L4.prototype:null,b2="__proto__",YJ=2311;function k4(){return YJ++}function Di(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function Oe(r){if(r==null||typeof r!="object")return r;var e=r,t=nc.call(r);if(t==="[object Array]"){if(!ch(r)){e=[];for(var n=0,i=r.length;n<i;n++)e[n]=Oe(r[n])}}else if(E4[t]){if(!ch(r)){var a=r.constructor;if(a.from)e=a.from(r);else{e=new a(r.length);for(var n=0,i=r.length;n<i;n++)e[n]=r[n]}}}else if(!I4[t]&&!ch(r)&&!js(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==b2&&(e[o]=Oe(r[o]))}return e}function Ge(r,e,t){if(!Le(e)||!Le(r))return t?Oe(e):r;for(var n in e)if(e.hasOwnProperty(n)&&n!==b2){var i=r[n],a=e[n];Le(a)&&Le(i)&&!re(a)&&!re(i)&&!js(a)&&!js(i)&&!P4(a)&&!P4(i)&&!ch(a)&&!ch(i)?Ge(i,a,t):(t||!(n in r))&&(r[n]=Oe(e[n]))}return r}function x2(r,e){for(var t=r[0],n=1,i=r.length;n<i;n++)t=Ge(t,r[n],e);return t}function $(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==b2&&(r[t]=e[t]);return r}function Ne(r,e,t){for(var n=nt(e),i=0,a=n.length;i<a;i++){var o=n[i];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function qe(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t}return-1}function XJ(r,e){var t=r.prototype;function n(){}n.prototype=e.prototype,r.prototype=new n;for(var i in t)t.hasOwnProperty(i)&&(r.prototype[i]=t[i]);r.prototype.constructor=r,r.superClass=e}function lr(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(t?e[a]!=null:r[a]==null)&&(r[a]=e[a])}else Ne(r,e,t)}function Zr(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function N(r,e,t){if(r&&e)if(r.forEach&&r.forEach===WJ)r.forEach(e,t);else if(r.length===+r.length)for(var n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r);else for(var a in r)r.hasOwnProperty(a)&&e.call(t,r[a],a,r)}function ne(r,e,t){if(!r)return[];if(!e)return S2(r);if(r.map&&r.map===UJ)return r.map(e,t);for(var n=[],i=0,a=r.length;i<a;i++)n.push(e.call(t,r[i],i,r));return n}function na(r,e,t,n){if(r&&e){for(var i=0,a=r.length;i<a;i++)t=e.call(n,t,r[i],i,r);return t}}function pt(r,e,t){if(!r)return[];if(!e)return S2(r);if(r.filter&&r.filter===ZJ)return r.filter(e,t);for(var n=[],i=0,a=r.length;i<a;i++)e.call(t,r[i],i,r)&&n.push(r[i]);return n}function qJ(r,e,t){if(r&&e){for(var n=0,i=r.length;n<i;n++)if(e.call(t,r[n],n,r))return r[n]}}function nt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function jJ(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return function(){return r.apply(e,t.concat(w2.call(arguments)))}}var ye=hg&&Me(hg.bind)?hg.call.bind(hg.bind):jJ;function He(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(w2.call(arguments)))}}function re(r){return Array.isArray?Array.isArray(r):nc.call(r)==="[object Array]"}function Me(r){return typeof r=="function"}function me(r){return typeof r=="string"}function vg(r){return nc.call(r)==="[object String]"}function ct(r){return typeof r=="number"}function Le(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function P4(r){return!!I4[nc.call(r)]}function tn(r){return!!E4[nc.call(r)]}function js(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function dg(r){return r.colorStops!=null}function KJ(r){return r.image!=null}function N4(r){return nc.call(r)==="[object RegExp]"}function Ks(r){return r!==r}function ur(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,n=r.length;t<n;t++)if(r[t]!=null)return r[t]}function Ve(r,e){return r??e}function Zn(r,e,t){return r??e??t}function S2(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return w2.apply(r,e)}function T2(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function ke(r,e){if(!r)throw new Error(e)}function Mi(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var O4="__ec_primitive__";function pg(r){r[O4]=!0}function ch(r){return r[O4]}var JJ=function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return nt(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},r}(),R4=typeof Map=="function";function QJ(){return R4?new Map:new JJ}var $J=function(){function r(e){var t=re(e);this.data=QJ();var n=this;e instanceof r?e.each(i):e&&N(e,i);function i(a,o){t?n.set(a,o):n.set(o,a)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(n,i){e.call(t,n,i)})},r.prototype.keys=function(){var e=this.data.keys();return R4?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r}();function Se(r){return new $J(r)}function fh(r,e){for(var t=new r.constructor(r.length+e.length),n=0;n<r.length;n++)t[n]=r[n];for(var i=r.length,n=0;n<e.length;n++)t[n+i]=e[n];return t}function gg(r,e){var t;if(Object.create)t=Object.create(r);else{var n=function(){};n.prototype=r,t=new n}return e&&$(t,e),t}function V4(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function we(r,e){return r.hasOwnProperty(e)}function nr(){}var mg=180/Math.PI;function Js(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function rn(r,e){return r[0]=e[0],r[1]=e[1],r}function Wa(r){return[r[0],r[1]]}function eQ(r,e,t){return r[0]=e,r[1]=t,r}function z4(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function A2(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r}function Qs(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function C2(r){return Math.sqrt(tQ(r))}function tQ(r){return r[0]*r[0]+r[1]*r[1]}function yg(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function ic(r,e){var t=C2(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function D2(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var Wo=D2;function rQ(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var $s=rQ;function _g(r,e,t,n){return r[0]=e[0]+n*(t[0]-e[0]),r[1]=e[1]+n*(t[1]-e[1]),r}function Nr(r,e,t){var n=e[0],i=e[1];return r[0]=t[0]*n+t[2]*i+t[4],r[1]=t[1]*n+t[3]*i+t[5],r}function Zo(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Uo(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var ac=function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r}(),nQ=function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new ac(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,t.drift(a,o,e),this.handler.dispatchToElement(new ac(t,e),"drag",e.event);var s=this.handler.findHover(n,i,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ac(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new ac(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new ac(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ac(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r}(),Un=function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof t=="function"&&(i=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:t,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,c=a[e][u];return c&&c.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==t&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},r.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=t.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=t.length,s=t[o-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(a&&a.filter&&c.query!=null&&!a.filter(e,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,t[0]);break;case 2:c.h.call(s,t[0],t[1]);break;default:c.h.apply(s,t.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},r}(),iQ=Math.log(2);function M2(r,e,t,n,i,a){var o=n+"-"+i,s=r.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/iQ);return r[t][l]}for(var u=n|1<<t,c=t+1;n&1<<c;)c++;for(var f=0,h=0,v=0;h<s;h++){var d=1<<h;d&i||(f+=(v%2?-1:1)*r[t][h]*M2(r,e-1,c,u,i|d,a),v++)}return a[o]=f,f}function B4(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],n={},i=M2(t,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*M2(t,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,c){var f=u*a[6]+c*a[7]+1;l[0]=(u*a[0]+c*a[1]+a[2])/f,l[1]=(u*a[3]+c*a[4]+a[5])/f}}}var F4="___zrEVENTSAVED",I2=[];function aQ(r,e,t,n,i){return E2(I2,e,n,i,!0)&&E2(r,t,I2[0],I2[1])}function E2(r,e,t,n,i){if(e.getBoundingClientRect&&Je.domSupported&&!H4(e)){var a=e[F4]||(e[F4]={}),o=oQ(e,a),s=sQ(o,a,i);if(s)return s(r,t,n),!0}return!1}function oQ(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function sQ(r,e,t){for(var n=t?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=r[u].getBoundingClientRect(),f=2*u,h=c.left,v=c.top;o.push(h,v),l=l&&a&&h===a[f]&&v===a[f+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=t?B4(s,o):B4(o,s))}function H4(r){return r.nodeName.toUpperCase()==="CANVAS"}var lQ=/([&<>"'])/g,uQ={"&":"&","<":"<",">":">",'"':""","'":"'"};function nn(r){return r==null?"":(r+"").replace(lQ,function(e,t){return uQ[t]})}var cQ=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,L2=[],fQ=Je.browser.firefox&&+Je.browser.version.split(".")[0]<39;function k2(r,e,t,n){return t=t||{},n?G4(r,e,t):fQ&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):G4(r,e,t),t}function G4(r,e,t){if(Je.domSupported&&r.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(H4(r)){var a=r.getBoundingClientRect();t.zrX=n-a.left,t.zrY=i-a.top;return}else if(E2(L2,r,n,i)){t.zrX=L2[0],t.zrY=L2[1];return}}t.zrX=t.zrY=0}function P2(r){return r||window.event}function Yn(r,e,t){if(e=P2(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&k2(r,o,e,t)}else{k2(r,e,e,t);var a=hQ(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&cQ.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function hQ(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,n=r.deltaY;if(t==null||n==null)return e;var i=Math.abs(n!==0?n:t),a=n>0?-1:n<0?1:t>0?-1:1;return 3*i*a}function N2(r,e,t,n){r.addEventListener(e,t,n)}function vQ(r,e,t,n){r.removeEventListener(e,t,n)}var Za=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function W4(r){return r.which===2||r.which===3}var dQ=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:t,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=k2(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(e){for(var t in O2)if(O2.hasOwnProperty(t)){var n=O2[t](this._track,e);if(n)return n}},r}();function Z4(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function pQ(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var O2={pinch:function(r,e){var t=r.length;if(t){var n=(r[t-1]||{}).points,i=(r[t-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Z4(n)/Z4(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=pQ(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function En(){return[1,0,0,1,0,0]}function wg(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function R2(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Ua(r,e,t){var n=e[0]*t[0]+e[2]*t[1],i=e[1]*t[0]+e[3]*t[1],a=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function ia(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function el(r,e,t,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(t),f=Math.cos(t);return r[0]=i*f+s*c,r[1]=-i*c+s*f,r[2]=a*f+l*c,r[3]=-a*c+f*l,r[4]=f*(o-n[0])+c*(u-n[1])+n[0],r[5]=f*(u-n[1])-c*(o-n[0])+n[1],r}function V2(r,e,t){var n=t[0],i=t[1];return r[0]=e[0]*n,r[1]=e[1]*i,r[2]=e[2]*n,r[3]=e[3]*i,r[4]=e[4]*n,r[5]=e[5]*i,r}function oc(r,e){var t=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=t*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=t*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-t*s)*l,r):null}function gQ(r){var e=En();return R2(e,r),e}var Ze=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,n){e.x=t,e.y=n},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},r.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},r.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},r.scaleAndAdd=function(e,t,n,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},r.lerp=function(e,t,n,i){var a=1-i;e.x=a*t.x+i*n.x,e.y=a*t.y+i*n.y},r}(),bg=Math.min,xg=Math.max,tl=new Ze,rl=new Ze,nl=new Ze,il=new Ze,hh=new Ze,vh=new Ze,Ue=function(){function r(e,t,n,i){n<0&&(e=e+n,n=-n),i<0&&(t=t+i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}return r.prototype.union=function(e){var t=bg(e.x,this.x),n=bg(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=xg(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=xg(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,i=e.height/t.height,a=En();return ia(a,a,[-t.x,-t.y]),V2(a,a,[n,i]),ia(a,a,[e.x,e.y]),a},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,c=e.y,f=e.y+e.height,h=!(a<l||u<i||s<c||f<o);if(t){var v=1/0,d=0,g=Math.abs(a-l),p=Math.abs(u-i),m=Math.abs(s-c),y=Math.abs(f-o),_=Math.min(g,p),w=Math.min(m,y);a<l||u<i?_>d&&(d=_,g<p?Ze.set(vh,-g,0):Ze.set(vh,p,0)):_<v&&(v=_,g<p?Ze.set(hh,g,0):Ze.set(hh,-p,0)),s<c||f<o?w>d&&(d=w,m<y?Ze.set(vh,0,-m):Ze.set(vh,0,y)):_<v&&(v=_,m<y?Ze.set(hh,0,m):Ze.set(hh,0,-y))}return t&&Ze.copy(t,h?hh:vh),h},r.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,n){if(!n){e!==t&&r.copy(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=t.x*i+o,e.y=t.y*a+s,e.width=t.width*i,e.height=t.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}tl.x=nl.x=t.x,tl.y=il.y=t.y,rl.x=il.x=t.x+t.width,rl.y=nl.y=t.y+t.height,tl.transform(n),il.transform(n),rl.transform(n),nl.transform(n),e.x=bg(tl.x,rl.x,nl.x,il.x),e.y=bg(tl.y,rl.y,nl.y,il.y);var l=xg(tl.x,rl.x,nl.x,il.x),u=xg(tl.y,rl.y,nl.y,il.y);e.width=l-e.x,e.height=u-e.y},r}(),U4="silent";function mQ(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:yQ}}function yQ(){Za(this.event)}var _Q=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Un),dh=function(){function r(e,t){this.x=e,this.y=t}return r}(),wQ=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],z2=new Ue(0,0,0,0),Y4=function(r){Y(e,r);function e(t,n,i,a,o){var s=r.call(this)||this;return s._hovered=new dh(0,0),s.storage=t,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new _Q,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new nQ(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(N(wQ,function(n){t.on&&t.on(n,this[n],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var n=t.zrX,i=t.zrY,a=q4(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new dh(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var n=t.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new dh(0,0)},e.prototype.dispatch=function(t,n){var i=this[t];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var n=this.proxy;n.setCursor&&n.setCursor(t)},e.prototype.dispatchToElement=function(t,n,i){t=t||{};var a=t.target;if(!(a&&a.silent)){for(var o="on"+n,s=mQ(n,t,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(t,n,i){var a=this.storage.getDisplayList(),o=new dh(t,n);if(X4(a,o,t,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Ue(t-u,n-u,l,l),f=a.length-1;f>=0;f--){var h=a[f];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(z2.copy(h.getBoundingRect()),h.transform&&z2.applyTransform(h.transform),z2.intersect(c)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,p=0;p<u;p+=v)for(var m=0;m<g;m+=d){var y=t+p*Math.cos(m),_=n+p*Math.sin(m);if(X4(s,o,y,_,i),o.target)return o}}return o},e.prototype.processGesture=function(t,n){this._gestureMgr||(this._gestureMgr=new dQ);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;t.gestureEvent=o;var s=new dh;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e}(Un);N(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Y4.prototype[r]=function(e){var t=e.zrX,n=e.zrY,i=q4(this,t,n),a,o;if((r!=="mouseup"||!i)&&(a=this.findHover(t,n),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Wo(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,e)}});function bQ(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,t))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?U4:!0}return!1}function X4(r,e,t,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=bQ(o,t,n))&&(!e.topTarget&&(e.topTarget=o),s!==U4)){e.target=o;break}}}function q4(r,e,t){var n=r.painter;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var j4=32,ph=7;function xQ(r){for(var e=0;r>=j4;)e|=r&1,r>>=1;return r+e}function K4(r,e,t,n){var i=e+1;if(i===t)return 1;if(n(r[i++],r[e])<0){for(;i<t&&n(r[i],r[i-1])<0;)i++;SQ(r,e,i)}else for(;i<t&&n(r[i],r[i-1])>=0;)i++;return i-e}function SQ(r,e,t){for(t--;e<t;){var n=r[e];r[e++]=r[t],r[t--]=n}}function J4(r,e,t,n,i){for(n===e&&n++;n<t;n++){for(var a=r[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function B2(r,e,t,n,i,a){var o=0,s=0,l=1;if(a(r,e[t+i])>0){for(s=n-i;l<s&&a(r,e[t+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(r,e[t+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var c=o+(l-o>>>1);a(r,e[t+c])>0?o=c+1:l=c}return l}function F2(r,e,t,n,i,a){var o=0,s=0,l=1;if(a(r,e[t+i])<0){for(s=i+1;l<s&&a(r,e[t+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(r,e[t+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var c=o+(l-o>>>1);a(r,e[t+c])<0?l=c:o=c+1}return l}function TQ(r,e){var t=ph,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;c(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,c(v)}}function c(v){var d=n[v],g=i[v],p=n[v+1],m=i[v+1];i[v]=g+m,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var y=F2(r[p],r,d,g,0,e);d+=y,g-=y,g!==0&&(m=B2(r[d+g-1],r,p,m,m-1,e),m!==0&&(g<=m?f(d,g,p,m):h(d,g,p,m)))}function f(v,d,g,p){var m=0;for(m=0;m<d;m++)o[m]=r[v+m];var y=0,_=g,w=v;if(r[w++]=r[_++],--p===0){for(m=0;m<d;m++)r[w+m]=o[y+m];return}if(d===1){for(m=0;m<p;m++)r[w+m]=r[_+m];r[w+p]=o[y];return}for(var b=t,x,S,T;;){x=0,S=0,T=!1;do if(e(r[_],o[y])<0){if(r[w++]=r[_++],S++,x=0,--p===0){T=!0;break}}else if(r[w++]=o[y++],x++,S=0,--d===1){T=!0;break}while((x|S)<b);if(T)break;do{if(x=F2(r[_],o,y,d,0,e),x!==0){for(m=0;m<x;m++)r[w+m]=o[y+m];if(w+=x,y+=x,d-=x,d<=1){T=!0;break}}if(r[w++]=r[_++],--p===0){T=!0;break}if(S=B2(o[y],r,_,p,0,e),S!==0){for(m=0;m<S;m++)r[w+m]=r[_+m];if(w+=S,_+=S,p-=S,p===0){T=!0;break}}if(r[w++]=o[y++],--d===1){T=!0;break}b--}while(x>=ph||S>=ph);if(T)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),d===1){for(m=0;m<p;m++)r[w+m]=r[_+m];r[w+p]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)r[w+m]=o[y+m]}}function h(v,d,g,p){var m=0;for(m=0;m<p;m++)o[m]=r[g+m];var y=v+d-1,_=p-1,w=g+p-1,b=0,x=0;if(r[w--]=r[y--],--d===0){for(b=w-(p-1),m=0;m<p;m++)r[b+m]=o[m];return}if(p===1){for(w-=d,y-=d,x=w+1,b=y+1,m=d-1;m>=0;m--)r[x+m]=r[b+m];r[w]=o[_];return}for(var S=t;;){var T=0,C=0,A=!1;do if(e(o[_],r[y])<0){if(r[w--]=r[y--],T++,C=0,--d===0){A=!0;break}}else if(r[w--]=o[_--],C++,T=0,--p===1){A=!0;break}while((T|C)<S);if(A)break;do{if(T=d-F2(o[_],r,v,d,d-1,e),T!==0){for(w-=T,y-=T,d-=T,x=w+1,b=y+1,m=T-1;m>=0;m--)r[x+m]=r[b+m];if(d===0){A=!0;break}}if(r[w--]=o[_--],--p===1){A=!0;break}if(C=p-B2(r[y],o,0,p,p-1,e),C!==0){for(w-=C,_-=C,p-=C,x=w+1,b=_+1,m=0;m<C;m++)r[x+m]=o[b+m];if(p<=1){A=!0;break}}if(r[w--]=r[y--],--d===0){A=!0;break}S--}while(T>=ph||C>=ph);if(A)break;S<0&&(S=0),S+=2}if(t=S,t<1&&(t=1),p===1){for(w-=d,y-=d,x=w+1,b=y+1,m=d-1;m>=0;m--)r[x+m]=r[b+m];r[w]=o[_]}else{if(p===0)throw new Error;for(b=w-(p-1),m=0;m<p;m++)r[b+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Sg(r,e,t,n){t||(t=0),n||(n=r.length);var i=n-t;if(!(i<2)){var a=0;if(i<j4){a=K4(r,t,n,e),J4(r,t,n,t+a,e);return}var o=TQ(r,e),s=xQ(i);do{if(a=K4(r,t,n,e),a<s){var l=i;l>s&&(l=s),J4(r,t,t+l,t+a,e),a=l}o.pushRun(t,a),o.mergeRuns(),i-=a,t+=a}while(i!==0);o.forceMergeRuns()}}var aa=1,Tg=2,gh=4,Q4=!1;function H2(){Q4||(Q4=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function $4(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var AQ=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=$4}return r.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,a=t.length;i<a;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,Sg(n,$4)},r.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)t=null;else if(i){t?t=t.slice():t=[];for(var a=i,o=e;a;)a.parent=o,a.updateTransform(),t.push(a),o=a,a=a.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=aa),this._updateAndAddDisplayable(u,t,n)}e.__dirty=0}else{var c=e;t&&t.length?c.__clipPaths=t:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(H2(),c.z=0),isNaN(c.z2)&&(H2(),c.z2=0),isNaN(c.zlevel)&&(H2(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=e.getDecalElement&&e.getDecalElement();f&&this._updateAndAddDisplayable(f,t,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,t,n);var v=e.getTextContent();v&&this._updateAndAddDisplayable(v,t,n)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var i=qe(this._roots,e);i>=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),Ag;Ag=Je.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var mh={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)))},elasticOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-mh.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?mh.bounceIn(r*2)*.5:mh.bounceOut(r*2-1)*.5+.5}},Cg=Math.pow,Yo=Math.sqrt,eI=1e-8,tI=1e-4,rI=Yo(3),Dg=1/3,oa=Js(),Xn=Js(),sc=Js();function Xo(r){return r>-1e-8&&r<eI}function nI(r){return r>eI||r<-1e-8}function wr(r,e,t,n,i){var a=1-i;return a*a*(a*r+3*i*e)+i*i*(i*n+3*a*t)}function iI(r,e,t,n,i){var a=1-i;return 3*(((e-r)*a+2*(t-e)*i)*a+(n-t)*i*i)}function Mg(r,e,t,n,i,a){var o=n+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-i,c=s*s-3*o*l,f=s*l-9*o*u,h=l*l-3*s*u,v=0;if(Xo(c)&&Xo(f))if(Xo(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var g=f*f-4*c*h;if(Xo(g)){var p=f/c,d=-s/o+p,m=-p/2;d>=0&&d<=1&&(a[v++]=d),m>=0&&m<=1&&(a[v++]=m)}else if(g>0){var y=Yo(g),_=c*s+1.5*o*(-f+y),w=c*s+1.5*o*(-f-y);_<0?_=-Cg(-_,Dg):_=Cg(_,Dg),w<0?w=-Cg(-w,Dg):w=Cg(w,Dg);var d=(-s-(_+w))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var b=(2*c*s-3*o*f)/(2*Yo(c*c*c)),x=Math.acos(b)/3,S=Yo(c),T=Math.cos(x),d=(-s-2*S*T)/(3*o),m=(-s+S*(T+rI*Math.sin(x)))/(3*o),C=(-s+S*(T-rI*Math.sin(x)))/(3*o);d>=0&&d<=1&&(a[v++]=d),m>=0&&m<=1&&(a[v++]=m),C>=0&&C<=1&&(a[v++]=C)}}return v}function aI(r,e,t,n,i){var a=6*t-12*e+6*r,o=9*e+3*n-3*r-9*t,s=3*e-3*r,l=0;if(Xo(o)){if(nI(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Xo(c))i[0]=-a/(2*o);else if(c>0){var f=Yo(c),u=(-a+f)/(2*o),h=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function qo(r,e,t,n,i,a){var o=(e-r)*i+r,s=(t-e)*i+e,l=(n-t)*i+t,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function oI(r,e,t,n,i,a,o,s,l,u,c){var f,h=.005,v=1/0,d,g,p,m;oa[0]=l,oa[1]=u;for(var y=0;y<1;y+=.05)Xn[0]=wr(r,t,i,o,y),Xn[1]=wr(e,n,a,s,y),p=$s(oa,Xn),p<v&&(f=y,v=p);v=1/0;for(var _=0;_<32&&!(h<tI);_++)d=f-h,g=f+h,Xn[0]=wr(r,t,i,o,d),Xn[1]=wr(e,n,a,s,d),p=$s(Xn,oa),d>=0&&p<v?(f=d,v=p):(sc[0]=wr(r,t,i,o,g),sc[1]=wr(e,n,a,s,g),m=$s(sc,oa),g<=1&&m<v?(f=g,v=m):h*=.5);return c&&(c[0]=wr(r,t,i,o,f),c[1]=wr(e,n,a,s,f)),Yo(v)}function CQ(r,e,t,n,i,a,o,s,l){for(var u=r,c=e,f=0,h=1/l,v=1;v<=l;v++){var d=v*h,g=wr(r,t,i,o,d),p=wr(e,n,a,s,d),m=g-u,y=p-c;f+=Math.sqrt(m*m+y*y),u=g,c=p}return f}function Ir(r,e,t,n){var i=1-n;return i*(i*r+2*n*e)+n*n*t}function G2(r,e,t,n){return 2*((1-n)*(e-r)+n*(t-e))}function DQ(r,e,t,n,i){var a=r-2*e+t,o=2*(e-r),s=r-n,l=0;if(Xo(a)){if(nI(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Xo(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=Yo(c),u=(-o+f)/(2*a),h=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function sI(r,e,t){var n=r+t-2*e;return n===0?.5:(r-e)/n}function yh(r,e,t,n,i){var a=(e-r)*n+r,o=(t-e)*n+e,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=t}function lI(r,e,t,n,i,a,o,s,l){var u,c=.005,f=1/0;oa[0]=o,oa[1]=s;for(var h=0;h<1;h+=.05){Xn[0]=Ir(r,t,i,h),Xn[1]=Ir(e,n,a,h);var v=$s(oa,Xn);v<f&&(u=h,f=v)}f=1/0;for(var d=0;d<32&&!(c<tI);d++){var g=u-c,p=u+c;Xn[0]=Ir(r,t,i,g),Xn[1]=Ir(e,n,a,g);var v=$s(Xn,oa);if(g>=0&&v<f)u=g,f=v;else{sc[0]=Ir(r,t,i,p),sc[1]=Ir(e,n,a,p);var m=$s(sc,oa);p<=1&&m<f?(u=p,f=m):c*=.5}}return l&&(l[0]=Ir(r,t,i,u),l[1]=Ir(e,n,a,u)),Yo(f)}function MQ(r,e,t,n,i,a,o){for(var s=r,l=e,u=0,c=1/o,f=1;f<=o;f++){var h=f*c,v=Ir(r,t,i,h),d=Ir(e,n,a,h),g=v-s,p=d-l;u+=Math.sqrt(g*g+p*p),s=v,l=d}return u}var IQ=/cubic-bezier\(([0-9,\.e ]+)\)/;function W2(r){var e=r&&IQ.exec(r);if(e){var t=e[1].split(","),n=+Mi(t[0]),i=+Mi(t[1]),a=+Mi(t[2]),o=+Mi(t[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Mg(0,n,a,1,l,s)&&wr(0,i,o,1,s[0])}}}var EQ=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||nr,this.ondestroy=e.ondestroy||nr,this.onrestart=e.onrestart||nr,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Me(e)?e:mh[e]||W2(e)},r}(),uI=function(){function r(e){this.value=e}return r}(),LQ=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new uI(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),_h=function(){function r(e){this._list=new LQ,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new uI(t),s.key=e,n.insertEntry(s),i[e]=s}return a},r.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),cI={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Ii(r){return r=Math.round(r),r<0?0:r>255?255:r}function kQ(r){return r=Math.round(r),r<0?0:r>360?360:r}function wh(r){return r<0?0:r>1?1:r}function Z2(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Ii(parseFloat(e)/100*255):Ii(parseInt(e,10))}function al(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?wh(parseFloat(e)/100):wh(parseFloat(e))}function U2(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function jo(r,e,t){return r+(e-r)*t}function qn(r,e,t,n,i){return r[0]=e,r[1]=t,r[2]=n,r[3]=i,r}function Y2(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var fI=new _h(20),Ig=null;function lc(r,e){Ig&&Y2(Ig,e),Ig=fI.put(r,Ig||e.slice())}function Ln(r,e){if(r){e=e||[];var t=fI.get(r);if(t)return Y2(e,t);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in cI)return Y2(e,cI[n]),lc(r,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){qn(e,0,0,0,1);return}return qn(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),lc(r,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){qn(e,0,0,0,1);return}return qn(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),lc(r,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?qn(e,+u[0],+u[1],+u[2],1):qn(e,0,0,0,1);c=al(u.pop());case"rgb":if(u.length>=3)return qn(e,Z2(u[0]),Z2(u[1]),Z2(u[2]),u.length===3?c:al(u[3])),lc(r,e),e;qn(e,0,0,0,1);return;case"hsla":if(u.length!==4){qn(e,0,0,0,1);return}return u[3]=al(u[3]),X2(u,e),lc(r,e),e;case"hsl":if(u.length!==3){qn(e,0,0,0,1);return}return X2(u,e),lc(r,e),e;default:return}}qn(e,0,0,0,1)}}function X2(r,e){var t=(parseFloat(r[0])%360+360)%360/360,n=al(r[1]),i=al(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],qn(e,Ii(U2(o,a,t+1/3)*255),Ii(U2(o,a,t)*255),Ii(U2(o,a,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function PQ(r){if(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,i=Math.min(e,t,n),a=Math.max(e,t,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-e)/6+o/2)/o,f=((a-t)/6+o/2)/o,h=((a-n)/6+o/2)/o;e===a?l=h-f:t===a?l=1/3+c-h:n===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function q2(r,e){var t=Ln(r);if(t){for(var n=0;n<3;n++)e<0?t[n]=t[n]*(1-e)|0:t[n]=(255-t[n])*e+t[n]|0,t[n]>255?t[n]=255:t[n]<0&&(t[n]=0);return Ya(t,t.length===4?"rgba":"rgb")}}function j2(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var n=r*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],l=n-i;return t[0]=Ii(jo(o[0],s[0],l)),t[1]=Ii(jo(o[1],s[1],l)),t[2]=Ii(jo(o[2],s[2],l)),t[3]=wh(jo(o[3],s[3],l)),t}}function NQ(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var n=r*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Ln(e[i]),s=Ln(e[a]),l=n-i,u=Ya([Ii(jo(o[0],s[0],l)),Ii(jo(o[1],s[1],l)),Ii(jo(o[2],s[2],l)),wh(jo(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function bh(r,e,t,n){var i=Ln(r);if(r)return i=PQ(i),e!=null&&(i[0]=kQ(e)),t!=null&&(i[1]=al(t)),n!=null&&(i[2]=al(n)),Ya(X2(i),"rgba")}function Eg(r,e){var t=Ln(r);if(t&&e!=null)return t[3]=wh(e),Ya(t,"rgba")}function Ya(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Lg(r,e){var t=Ln(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var hI=new _h(100);function K2(r){if(me(r)){var e=hI.get(r);return e||(e=q2(r,-.1),hI.put(r,e)),e}else if(dg(r)){var t=$({},r);return t.colorStops=ne(r.colorStops,function(n){return{offset:n.offset,color:q2(n.color,-.1)}}),t}return r}var kg=Math.round;function xh(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Ln(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var OQ=1e-4;function Ko(r){return r<OQ&&r>-1e-4}function Pg(r){return kg(r*1e3)/1e3}function J2(r){return kg(r*1e4)/1e4}function RQ(r){return"matrix("+Pg(r[0])+","+Pg(r[1])+","+Pg(r[2])+","+Pg(r[3])+","+J2(r[4])+","+J2(r[5])+")"}var VQ={left:"start",right:"end",center:"middle",middle:"middle"};function zQ(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function BQ(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function FQ(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function vI(r){return r&&!!r.image}function HQ(r){return r&&!!r.svgElement}function Q2(r){return vI(r)||HQ(r)}function dI(r){return r.type==="linear"}function pI(r){return r.type==="radial"}function gI(r){return r&&(r.type==="linear"||r.type==="radial")}function Ng(r){return"url(#"+r+")"}function mI(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function yI(r){var e=r.x||0,t=r.y||0,n=(r.rotation||0)*mg,i=Ve(r.scaleX,1),a=Ve(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+kg(o*mg)+"deg, "+kg(s*mg)+"deg)"),l.join(" ")}var GQ=function(){return Je.hasGlobalWindow&&Me(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return process.env.NODE_ENV!=="production"&&Di("Base64 isn't natively supported in the current environment."),null}}(),$2=Array.prototype.slice;function Xa(r,e,t){return(e-r)*t+r}function ew(r,e,t,n){for(var i=e.length,a=0;a<i;a++)r[a]=Xa(e[a],t[a],n);return r}function WQ(r,e,t,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=Xa(e[o][s],t[o][s],n)}return r}function Og(r,e,t,n){for(var i=e.length,a=0;a<i;a++)r[a]=e[a]+t[a]*n;return r}function _I(r,e,t,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=e[o][s]+t[o][s]*n}return r}function ZQ(r,e){for(var t=r.length,n=e.length,i=t>n?e:r,a=Math.min(t,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(t,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function UQ(r,e,t){var n=r,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(t===1?i[l]:$2.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(t===1)isNaN(n[l])&&(n[l]=i[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=i[l][c])}}function Sh(r){if(Zr(r)){var e=r.length;if(Zr(r[0])){for(var t=[],n=0;n<e;n++)t.push($2.call(r[n]));return t}return $2.call(r)}return r}function Rg(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function YQ(r){return Zr(r&&r[0])?2:1}var Vg=0,zg=1,wI=2,Th=3,tw=4,rw=5,bI=6;function xI(r){return r===tw||r===rw}function Bg(r){return r===zg||r===wI}var Ah=[0,0,0,0],XQ=function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=bI,l=t;if(Zr(t)){var u=YQ(t);s=u,(u===1&&!ct(t[0])||u===2&&!ct(t[0][0]))&&(o=!0)}else if(ct(t)&&!Ks(t))s=Vg;else if(me(t))if(!isNaN(+t))s=Vg;else{var c=Ln(t);c&&(l=c,s=Th)}else if(dg(t)){var f=$({},l);f.colorStops=ne(t.colorStops,function(v){return{offset:v.offset,color:Ln(v.color)}}),dI(t)?s=tw:pI(t)&&(s=rw),l=f}a===0?this.valType=s:(s!==this.valType||s===bI)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:t,percent:0};return n&&(h.easing=n,h.easingFunc=Me(n)?n:mh[n]||W2(n)),i.push(h),h},r.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Bg(i),u=xI(i),c=0;c<a;c++){var f=n[c],h=f.value,v=o.value;f.percent=f.time/e,s||(l&&c!==a-1?UQ(h,v,i):u&&ZQ(h.colorStops,v.colorStops))}if(!s&&i!==rw&&t&&this.needsAnimate()&&t.needsAnimate()&&i===t.valType&&!t._finished){this._additiveTrack=t;for(var d=n[0].value,c=0;c<a;c++)i===Vg?n[c].additiveValue=n[c].value-d:i===Th?n[c].additiveValue=Og([],n[c].value,d,-1):Bg(i)&&(n[c].additiveValue=i===zg?Og([],n[c].value,d,-1):_I([],n[c].value,d,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Th,c,f=this._lastFr,h=Math.min,v,d;if(s===1)v=d=o[0];else{if(t<0)c=0;else if(t<this._lastFrP){var g=h(f+1,s-1);for(c=g;c>=0&&!(o[c].percent<=t);c--);c=h(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>t);c++);c=h(c-1,s-2)}d=o[c+1],v=o[c]}if(v&&d){this._lastFr=c,this._lastFrP=t;var p=d.percent-v.percent,m=p===0?1:h((t-v.percent)/p,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:u?Ah:e[l];if((Bg(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?v.rawValue:d.rawValue;else if(Bg(a))a===zg?ew(y,v[i],d[i],m):WQ(y,v[i],d[i],m);else if(xI(a)){var _=v[i],w=d[i],b=a===tw;e[l]={type:b?"linear":"radial",x:Xa(_.x,w.x,m),y:Xa(_.y,w.y,m),colorStops:ne(_.colorStops,function(S,T){var C=w.colorStops[T];return{offset:Xa(S.offset,C.offset,m),color:Rg(ew([],S.color,C.color,m))}}),global:w.global},b?(e[l].x2=Xa(_.x2,w.x2,m),e[l].y2=Xa(_.y2,w.y2,m)):e[l].r=Xa(_.r,w.r,m)}else if(u)ew(y,v[i],d[i],m),n||(e[l]=Rg(y));else{var x=Xa(v[i],d[i],m);n?this._additiveValue=x:e[l]=x}n&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;t===Vg?e[n]=e[n]+i:t===Th?(Ln(e[n],Ah),Og(Ah,Ah,i,1),e[n]=Rg(Ah)):t===zg?Og(e[n],e[n],i,1):t===wI&&_I(e[n],e[n],i,1)},r}(),nw=function(){function r(e,t,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i){Di("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,nt(t),n)},r.prototype.whenWithKeys=function(e,t,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new XQ(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,h=f[f.length-1];u=h&&h.value,c.valType===Th&&u&&(u=Rg(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Sh(u),i),this._trackKeys.push(s)}l.addKeyframe(e,Sh(t[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(t=a)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(t._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new EQ({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){t._started=2;var d=t._additiveAnimators;if(d){for(var g=!1,p=0;p<d.length;p++)if(d[p]._clip){g=!0;break}g||(t._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(t._target,v);var m=t._onframeCbs;if(m)for(var p=0;p<m.length;p++)m[p](t._target,v)},ondestroy:function(){t._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&h.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return ne(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var i=0;i<t.length;i++){var a=t[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=Sh(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||nt(e);for(var n=0;n<t.length;n++){var i=t[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();function uc(){return new Date().getTime()}var qQ=function(r){Y(e,r);function e(t){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var n=t.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(t){if(t.animation){var n=t.prev,i=t.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var n=t.getClip();n&&this.removeClip(n),t.animation=null},e.prototype.update=function(t){for(var n=uc()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function n(){t._running&&(Ag(n),!t._paused&&t.update())}Ag(n)},e.prototype.start=function(){this._running||(this._time=uc(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=uc(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=uc()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var n=t.next;t.prev=t.next=t.animation=null,t=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,n){n=n||{},this.start();var i=new nw(t,n.loop);return this.addAnimator(i),i},e}(Un),jQ=300,iw=Je.domSupported,aw=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=ne(r,function(i){var a=i.replace("mouse","pointer");return t.hasOwnProperty(a)?a:i});return{mouse:r,touch:e,pointer:n}}(),SI={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},TI=!1;function ow(r){var e=r.pointerType;return e==="pen"||e==="touch"}function KQ(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function sw(r){r&&(r.zrByTouch=!0)}function JQ(r,e){return Yn(r.dom,new QQ(r,e),!0)}function AI(r,e){for(var t=e,n=!1;t&&t.nodeType!==9&&!(n=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return n}var QQ=function(){function r(e,t){this.stopPropagation=nr,this.stopImmediatePropagation=nr,this.preventDefault=nr,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),Ei={mousedown:function(r){r=Yn(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Yn(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Yn(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Yn(this.dom,r);var e=r.toElement||r.relatedTarget;AI(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){TI=!0,r=Yn(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){TI||(r=Yn(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Yn(this.dom,r),sw(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Ei.mousemove.call(this,r),Ei.mousedown.call(this,r)},touchmove:function(r){r=Yn(this.dom,r),sw(r),this.handler.processGesture(r,"change"),Ei.mousemove.call(this,r)},touchend:function(r){r=Yn(this.dom,r),sw(r),this.handler.processGesture(r,"end"),Ei.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<jQ&&Ei.click.call(this,r)},pointerdown:function(r){Ei.mousedown.call(this,r)},pointermove:function(r){ow(r)||Ei.mousemove.call(this,r)},pointerup:function(r){Ei.mouseup.call(this,r)},pointerout:function(r){ow(r)||Ei.mouseout.call(this,r)}};N(["click","dblclick","contextmenu"],function(r){Ei[r]=function(e){e=Yn(this.dom,e),this.trigger(r,e)}});var lw={pointermove:function(r){ow(r)||lw.mousemove.call(this,r)},pointerup:function(r){lw.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function $Q(r,e){var t=e.domHandlers;Je.pointerEventsSupported?N(aw.pointer,function(n){Fg(e,n,function(i){t[n].call(r,i)})}):(Je.touchEventsSupported&&N(aw.touch,function(n){Fg(e,n,function(i){t[n].call(r,i),KQ(e)})}),N(aw.mouse,function(n){Fg(e,n,function(i){i=P2(i),e.touching||t[n].call(r,i)})}))}function e$(r,e){Je.pointerEventsSupported?N(SI.pointer,t):Je.touchEventsSupported||N(SI.mouse,t);function t(n){function i(a){a=P2(a),AI(r,a.target)||(a=JQ(r,a),e.domHandlers[n].call(r,a))}Fg(e,n,i,{capture:!0})}}function Fg(r,e,t,n){r.mounted[e]=t,r.listenerOpts[e]=n,N2(r.domTarget,e,t,n)}function uw(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&vQ(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var CI=function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r}(),t$=function(r){Y(e,r);function e(t,n){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=n,i._localHandlerScope=new CI(t,Ei),iw&&(i._globalHandlerScope=new CI(document,lw)),$Q(i,i._localHandlerScope),i}return e.prototype.dispose=function(){uw(this._localHandlerScope),iw&&uw(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,iw&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var n=this._globalHandlerScope;t?e$(this,n):uw(n)}},e}(Un),DI=1;Je.hasGlobalWindow&&(DI=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Hg=DI,cw=.4,fw="#333",hw="#ccc",r$="#eee",MI=wg,n$=5e-5;function ol(r){return r>n$||r<-5e-5}var sl=[],cc=[],vw=En(),dw=Math.abs,qa=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return ol(this.rotation)||ol(this.x)||ol(this.y)||ol(this.scaleX-1)||ol(this.scaleY-1)||ol(this.skewX)||ol(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(MI(n),this.invTransform=null);return}n=n||En(),t?this.getLocalTransform(n):MI(n),e&&(t?Ua(n,e,n):R2(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(sl);var n=sl[0]<0?-1:1,i=sl[1]<0?-1:1,a=((sl[0]-n)*t+n)/sl[0]||0,o=((sl[1]-i)*t+i)/sl[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||En(),oc(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),t=Math.sqrt(t),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||En(),Ua(cc,e.invTransform,t),t=cc);var n=this.originX,i=this.originY;(n||i)&&(vw[4]=n,vw[5]=i,Ua(cc,t,vw),cc[4]-=n,cc[5]-=i,t=cc),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&Nr(n,n,i),n},r.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&Nr(n,n,i),n},r.prototype.getLineScale=function(){var e=this.transform;return e&&dw(e[0]-1)>1e-10&&dw(e[3]-1)>1e-10?Math.sqrt(dw(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){II(this,e)},r.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,f=e.y,h=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var d=n+s,g=i+l;t[4]=-d*a-h*g*o,t[5]=-g*o-v*d*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=v*a,t[2]=h*o,u&&el(t,t,u),t[4]+=n+c,t[5]+=i+f,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),sa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function II(r,e){for(var t=0;t<sa.length;t++){var n=sa[t];r[n]=e[n]}}var EI={};function kn(r,e){e=e||Ho;var t=EI[e];t||(t=EI[e]=new _h(500));var n=t.get(r);return n==null&&(n=Go.measureText(r,e).width,t.put(r,n)),n}function LI(r,e,t,n){var i=kn(r,e),a=Gg(e),o=Dh(0,i,t),s=fc(0,a,n),l=new Ue(o,s,i,a);return l}function Ch(r,e,t,n){var i=((r||"")+"").split(`
|
|
24
|
-
`),a=i.length;if(a===1)return LI(i[0],e,t,n);for(var o=new Ue(0,0,0,0),s=0;s<i.length;s++){var l=LI(i[s],e,t,n);s===0?o.copy(l):o.union(l)}return o}function Dh(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function fc(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function Gg(r){return kn("国",r)}function Li(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Wg(r,e,t){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=t.height,o=t.width,s=a/2,l=t.x,u=t.y,c="left",f="top";if(n instanceof Array)l+=Li(n[0],t.width),u+=Li(n[1],t.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=c,r.verticalAlign=f,r}var pw="__zr_normal__",gw=sa.concat(["ignore"]),i$=na(sa,function(r,e){return r[e]=!0,r},{ignore:!1}),hc={},a$=new Ue(0,0,0,0),Zg=function(){function r(e){this.id=k4(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=t.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(t),n.position!=null){var c=a$;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(hc,n,c):Wg(hc,n,c),a.x=hc.x,a.y=hc.y,o=hc.align,s=hc.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var h=void 0,v=void 0;f==="center"?(h=c.width*.5,v=c.height*.5):(h=Li(f[0],c.width),v=Li(f[1],c.height)),u=!0,a.originX=-a.x+h+(i?0:c.x),a.originY=-a.y+v+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;g&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==p.fill||y!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=m,p.stroke=y,p.autoStroke=_,p.align=o,p.verticalAlign=s,t.setDefaultTextStyle(p)),t.__dirty|=aa,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?hw:fw},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t=="string"&&Ln(t);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Ya(n,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},$(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(Le(e))for(var n=e,i=nt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==pw)){var o=i.targetName,s=o?t[o]:t;i.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,gw)},r.prototype._savePrimaryToNormal=function(e,t,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in t)&&(t[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(pw,!1,e)},r.prototype.useState=function(e,t,n,i){var a=e===pw,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(qe(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){Di("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,h=this._textGuide;return f&&f.useState(e,t,n,c),h&&h.useState(e,t,n,c),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),u}}},r.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&i.push(c)}var f=i[o-1],h=!!(f&&f.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,!t&&!this.__inHover&&d&&d.duration>0,d);var g=this._textContent,p=this._textGuide;g&&g.useStates(e,t,h),p&&p.useStates(e,t,h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},r.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=qe(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},r.prototype.replaceState=function(e,t,n){var i=this.currentStates.slice(),a=qe(i,e),o=qe(i,t)>=0;a>=0?o?i.splice(a,1):i[a]=t:n&&!o&&i.push(t),this.useStates(i)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},n,i=0;i<e.length;i++){var a=e[i];$(t,a),a.textConfig&&(n=n||{},$(n,a.textConfig))}return n&&(t.textConfig=n),t},r.prototype._applyStateObj=function(e,t,n,i,a,o){var s=!(t&&i);t&&t.textConfig?(this.textConfig=$({},i?this.textConfig:n.textConfig),$(this.textConfig,t.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<gw.length;c++){var f=gw[c],h=a&&i$[f];t&&t[f]!=null?h?(u=!0,l[f]=t[f]):this[f]=t[f]:s&&n[f]!=null&&(h?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!a)for(var c=0;c<this.animators.length;c++){var v=this.animators[c],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(t||n)[d]:t||n)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(e===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;if(t!==e){if(t&&t!==e&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new qa,this._attachComponent(e),this._textContent=e,this.markRedraw()}},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),$(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=aa;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,n){var i=e?this[e]:this;if(process.env.NODE_ENV!=="production"&&!i){Di('Property "'+e+'" is not existed in element '+this.id);return}var a=new nw(i,t,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},r.prototype.addAnimator=function(e,t){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(t)}).done(function(){var a=i.animators,o=qe(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(t):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(e,t,n){mw(this,e,t,n)},r.prototype.animateFrom=function(e,t,n){mw(this,e,t,n,!0)},r.prototype._transitionState=function(e,t,n,i){for(var a=mw(this,t,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=aa;var t={};function n(a,o,s){t[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),t[a+o+s]=!0)}function i(a,o,s,l){Object.defineProperty(e,a,{get:function(){if(process.env.NODE_ENV!=="production"&&n(a,s,l),!this[o]){var c=this[o]=[];u(this,c)}return this[o]},set:function(c){process.env.NODE_ENV!=="production"&&n(a,s,l),this[s]=c[0],this[l]=c[1],this[o]=c,u(this,c)}});function u(c,f){Object.defineProperty(f,0,{get:function(){return c[s]},set:function(h){c[s]=h}}),Object.defineProperty(f,1,{get:function(){return c[l]},set:function(h){c[l]=h}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),r}();lr(Zg,Un),lr(Zg,qa);function mw(r,e,t,n,i){t=t||{};var a=[];kI(r,"",r,e,t,n,a,i);var o=a.length,s=!1,l=t.done,u=t.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&t.during&&a[0].during(function(d,g){t.during(g)});for(var h=0;h<a.length;h++){var v=a[h];c&&v.done(c),f&&v.aborted(f),t.force&&v.duration(t.duration),v.start(t.easing)}return a}function yw(r,e,t){for(var n=0;n<t;n++)r[n]=e[n]}function o$(r){return Zr(r[0])}function s$(r,e,t){if(Zr(e[t]))if(Zr(r[t])||(r[t]=[]),tn(e[t])){var n=e[t].length;r[t].length!==n&&(r[t]=new e[t].constructor(n),yw(r[t],e[t],n))}else{var i=e[t],a=r[t],o=i.length;if(o$(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?yw(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else yw(a,i,o);a.length=i.length}else r[t]=e[t]}function l$(r,e){return r===e||Zr(r)&&Zr(e)&&u$(r,e)}function u$(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++)if(r[n]!==e[n])return!1;return!0}function kI(r,e,t,n,i,a,o,s){for(var l=nt(n),u=i.duration,c=i.delay,f=i.additive,h=i.setToFinal,v=!Le(a),d=r.animators,g=[],p=0;p<l.length;p++){var m=l[p],y=n[m];if(y!=null&&t[m]!=null&&(v||a[m]))if(Le(y)&&!Zr(y)&&!dg(y)){if(e){s||(t[m]=y,r.updateDuringAnimation(e));continue}kI(r,m,t[m],y,i,a&&a[m],o,s)}else g.push(m);else s||(t[m]=y,r.updateDuringAnimation(e),g.push(m))}var _=g.length;if(!f&&_)for(var w=0;w<d.length;w++){var b=d[w];if(b.targetName===e){var x=b.stopTracks(g);if(x){var S=qe(d,b);d.splice(S,1)}}}if(i.force||(g=pt(g,function(M){return!l$(n[M],t[M])}),_=g.length),_>0||i.force&&!o.length){var T=void 0,C=void 0,A=void 0;if(s){C={},h&&(T={});for(var w=0;w<_;w++){var m=g[w];C[m]=t[m],h?T[m]=n[m]:t[m]=n[m]}}else if(h){A={};for(var w=0;w<_;w++){var m=g[w];A[m]=Sh(t[m]),s$(t,n,m)}}var b=new nw(t,!1,!1,f?pt(d,function(k){return k.targetName===e}):null);b.targetName=e,i.scope&&(b.scope=i.scope),h&&T&&b.whenWithKeys(0,T,g),A&&b.whenWithKeys(0,A,g),b.whenWithKeys(u??500,s?C:n,g).delay(c||0),r.addAnimator(b,e),o.push(b)}}var Re=function(r){Y(e,r);function e(t){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===t)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),process.env.NODE_ENV!=="production"&&t.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.prototype.addBefore=function(t,n){if(t&&t!==this&&t.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,n){var i=qe(this._children,t);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(t,n){var i=this._children,a=i[n];if(t&&t!==this&&t.parent!==this&&t!==a){i[n]=t,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var n=this.__zr;n&&n!==t.__zr&&t.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(t){var n=this.__zr,i=this._children,a=qe(i,t);return a<0?this:(i.splice(a,1),t.parent=null,n&&t.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,n=this.__zr,i=0;i<t.length;i++){var a=t[i];n&&a.removeSelfFromZr(n),a.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];t.call(n,o,a)}return this},e.prototype.traverse=function(t,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=t.call(n,a);a.isGroup&&!o&&a.traverse(t,n)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var n=new Ue(0,0,0,0),i=t||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(a);c?(Ue.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e}(Zg);Re.prototype.type="group";/*!
|
|
25
|
-
* ZRender, a high performance 2d drawing library.
|
|
26
|
-
*
|
|
27
|
-
* Copyright (c) 2013, Baidu Inc.
|
|
28
|
-
* All rights reserved.
|
|
29
|
-
*
|
|
30
|
-
* LICENSE
|
|
31
|
-
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
32
|
-
*/var Mh={},PI={};function c$(r){delete PI[r]}function f$(r){if(!r)return!1;if(typeof r=="string")return Lg(r,1)<cw;if(r.colorStops){for(var e=r.colorStops,t=0,n=e.length,i=0;i<n;i++)t+=Lg(e[i].color,1);return t/=n,t<cw}return!1}var h$=function(){function r(e,t,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var a=new AQ,o=n.renderer||"canvas";if(Mh[o]||(o=nt(Mh)[0]),process.env.NODE_ENV!=="production"&&!Mh[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Mh[o](t,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!Je.node&&!Je.worker&&!l?new t$(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?Je.touchEventsSupported:!!c,h=44,v;f&&(v=Ve(n.pointerSize,h)),this.handler=new Y4(a,s,u,s.root,v),this.animation=new qQ({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=f$(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(e){var t,n=uc();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var i=uc();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Re&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,c$(this.id))},r}();function NI(r,e){var t=new h$(k4(),r,e);return PI[t.id]=t,t}function v$(r,e){Mh[r]=e}var _w;function d$(r){if(typeof _w=="function")return _w(r)}function p$(r){_w=r}var g$=1e-4,OI=20;function m$(r){return r.replace(/^\s+|\s+$/g,"")}function wt(r,e,t,n){var i=e[0],a=e[1],o=t[0],s=t[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/l*u+o}function de(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return me(r)?m$(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Qt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),OI),r=(+r).toFixed(e),t?r:+r}function jn(r){return r.sort(function(e,t){return e-t}),r}function la(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return ww(r)}function ww(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),n=t>0?+e.slice(t+1):0,i=t>0?t:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function RI(r,e){var t=Math.log,n=Math.LN10,i=Math.floor(t(r[1]-r[0])/n),a=Math.round(t(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function y$(r,e){var t=na(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(t===0)return[];for(var n=Math.pow(10,e),i=ne(r,function(v){return(isNaN(v)?0:v)/t*n*100}),a=n*100,o=ne(i,function(v){return Math.floor(v)}),s=na(o,function(v,d){return v+d},0),l=ne(i,function(v,d){return v-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,h=l.length;f<h;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return ne(o,function(v){return v/n})}function _$(r,e){var t=Math.max(la(r),la(e)),n=r+e;return t>OI?n:Qt(n,t)}var VI=9007199254740991;function zI(r){var e=Math.PI*2;return(r%e+e)%e}function Ih(r){return r>-1e-4&&r<g$}var w$=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function ua(r){if(r instanceof Date)return r;if(me(r)){var e=w$.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function b$(r){return Math.pow(10,Ug(r))}function Ug(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function BI(r,e){var t=Ug(r),n=Math.pow(10,t),i=r/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,r=a*n,t>=-20?+r.toFixed(t<0?-t:0):r}function bw(r,e){var t=(r.length-1)*e+1,n=Math.floor(t),i=+r[n-1],a=t-n;return a?i+a*(r[n]-i):i}function FI(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,n=0;n<r.length;){for(var i=r[n].interval,a=r[n].close,o=0;o<2;o++)i[o]<=e&&(i[o]=e,a[o]=o?1:1-t),e=i[o],t=a[o];i[0]===i[1]&&a[0]*a[1]!==1?r.splice(n,1):n++}return r;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function ja(r){var e=parseFloat(r);return e==r&&(e!==0||!me(r)||r.indexOf("x")<=0)?e:NaN}function xw(r){return!isNaN(ja(r))}function HI(){return Math.round(Math.random()*9)}function GI(r,e){return e===0?r:GI(e,r%e)}function WI(r,e){return r==null?e:e==null?r:r*e/GI(r,e)}var x$="[ECharts] ",ZI={},S$=typeof console<"u"&&console.warn&&console.log;function Yg(r,e,t){if(S$){if(t){if(ZI[e])return;ZI[e]=!0}console[r](x$+e)}}function T$(r,e){Yg("log",r,e)}function Xt(r,e){Yg("warn",r,e)}function Or(r,e){Yg("error",r,e)}function ki(r){process.env.NODE_ENV!=="production"&&Yg("warn","DEPRECATED: "+r,!0)}function cr(r,e,t){process.env.NODE_ENV!=="production"&&ki((t?"["+t+"]":"")+(r+" is deprecated, use "+e+" instead."))}function an(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t="";if(process.env.NODE_ENV!=="production"){var n=function(i){return i===void 0?"undefined":i===1/0?"Infinity":i===-1/0?"-Infinity":Ks(i)?"NaN":i instanceof Date?"Date("+i.toISOString()+")":Me(i)?"function () { ... }":N4(i)?i+"":null};t=ne(r,function(i){if(me(i))return i;var a=n(i);if(a!=null)return a;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(i,function(o,s){var l=n(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return t}function gt(r){throw new Error(r)}function UI(r,e,t){return(e-r)*t+r}var YI="series\0",XI="\0_ec_\0";function St(r){return r instanceof Array?r:r==null?[]:[r]}function ll(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var n=0,i=t.length;n<i;n++){var a=t[n];!r.emphasis[e].hasOwnProperty(a)&&r[e].hasOwnProperty(a)&&(r.emphasis[e][a]=r[e][a])}}}var qI=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function vc(r){return Le(r)&&!re(r)&&!(r instanceof Date)?r.value:r}function A$(r){return Le(r)&&!(r instanceof Array)}function jI(r,e,t){var n=t==="normalMerge",i=t==="replaceMerge",a=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=Se();N(e,function(l,u){if(!Le(l)){e[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!QI(l.id)&&JI(l.id),l.name!=null&&!QI(l.name)&&JI(l.name))});var s=C$(r,o,t);return(n||i)&&D$(s,r,o,e),n&&M$(s,e),n||i?I$(s,e,i):a&&E$(s,e),L$(s),s}function C$(r,e,t){var n=[];if(t==="replaceAll")return n;for(var i=0;i<r.length;i++){var a=r[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:t==="replaceMerge"||dc(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function D$(r,e,t,n){N(n,function(i,a){if(!(!i||i.id==null)){var o=Eh(i.id),s=t.get(o);if(s!=null){var l=r[s];ke(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function M$(r,e){N(e,function(t,n){if(!(!t||t.name==null))for(var i=0;i<r.length;i++){var a=r[i].existing;if(!r[i].newOption&&a&&(a.id==null||t.id==null)&&!dc(t)&&!dc(a)&&KI("name",a,t)){r[i].newOption=t,e[n]=null;return}}})}function I$(r,e,t){N(e,function(n){if(n){for(var i,a=0;(i=r[a])&&(i.newOption||dc(i.existing)||i.existing&&n.id!=null&&!KI("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=t):r.push({newOption:n,brandNew:t,existing:null,keyInfo:null}),a++}})}function E$(r,e){N(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function L$(r){var e=Se();N(r,function(t){var n=t.existing;n&&e.set(n.id,t)}),N(r,function(t){var n=t.newOption;ke(!n||n.id==null||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),N(r,function(t,n){var i=t.existing,a=t.newOption,o=t.keyInfo;if(Le(a)){if(o.name=a.name!=null?Eh(a.name):i?i.name:YI+n,i)o.id=Eh(i.id);else if(a.id!=null)o.id=Eh(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function KI(r,e,t){var n=gr(e[r],null),i=gr(t[r],null);return n!=null&&i!=null&&n===i}function Eh(r){if(process.env.NODE_ENV!=="production"&&r==null)throw new Error;return gr(r,"")}function gr(r,e){return r==null?e:me(r)?r:ct(r)||vg(r)?r+"":e}function JI(r){process.env.NODE_ENV!=="production"&&Xt("`"+r+"` is invalid id or name. Must be a string or number.")}function QI(r){return vg(r)||xw(r)}function Sw(r){var e=r.name;return!!(e&&e.indexOf(YI))}function dc(r){return r&&r.id!=null&&Eh(r.id).indexOf(XI)===0}function k$(r){return XI+r}function P$(r,e,t){N(r,function(n){var i=n.newOption;Le(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=N$(e,i,n.existing,t))})}function N$(r,e,t,n){var i=e.type?e.type:t?t.subType:n.determineSubType(r,e);return i}function O$(r,e){var t={},n={};return i(r||[],t),i(e||[],n,t),[a(t),a(n)];function i(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=gr(o[u].seriesId,null);if(f==null)return;for(var h=St(o[u].dataIndex),v=l&&l[f],d=0,g=h.length;d<g;d++){var p=h[d];v&&v[p]?v[p]=null:(s[f]||(s[f]={}))[p]=1}}}function a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=a(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function ul(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return re(e.dataIndex)?ne(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return re(e.name)?ne(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function ot(){var r="__ec_inner_"+R$++;return function(e){return e[r]||(e[r]={})}}var R$=HI();function Lh(r,e,t){var n=Tw(e,t),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=t?t.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,c){var f=kh(r,c,u,{useDefault:l===c,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function Tw(r,e){var t;if(me(r)){var n={};n[r+"Index"]=0,t=n}else t=r;var i=Se(),a={},o=!1;return N(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||e&&e.includeMainTypes&&qe(e.includeMainTypes,c)<0)){o=o||!!c;var h=i.get(c)||i.set(c,{});h[f]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var fr={useDefault:!0,enableAll:!1,enableNone:!1},V$={useDefault:!1,enableAll:!0,enableNone:!0};function kh(r,e,t,n){n=n||fr;var i=t.index,a=t.id,o=t.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(e))?[l]:[],s}return i==="none"||i===!1?(ke(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(ke(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=r.queryComponents({mainType:e,index:i,id:a,name:o}),s)}function $I(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function z$(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function B$(r){return r==="auto"?Je.domSupported?"html":"richText":r||"html"}function Aw(r,e){var t=Se(),n=[];return N(r,function(i){var a=e(i);(t.get(a)||(n.push(a),t.set(a,[]))).push(i)}),{keys:n,buckets:t}}function eE(r,e,t,n,i){var a=e==null||e==="auto";if(n==null)return n;if(ct(n)){var o=UI(t||0,n,i);return Qt(o,a?Math.max(la(t||0),la(n)):e)}else{if(me(n))return i<1?t:n;for(var s=[],l=t,u=n,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var h=r.getDimensionInfo(f);if(h&&h.type==="ordinal")s[f]=(i<1&&l?l:u)[f];else{var v=l&&l[f]?l[f]:0,d=u[f],o=UI(v,d,i);s[f]=Qt(o,a?Math.max(la(v),la(d)):e)}}return s}}var F$=".",cl="___EC__COMPONENT__CONTAINER___",tE="___EC__EXTENDED_CLASS___";function ca(r){var e={main:"",sub:""};if(r){var t=r.split(F$);e.main=t[0]||"",e.sub=t[1]||""}return e}function H$(r){ke(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function G$(r){return!!(r&&r[tE])}function Cw(r,e){r.$constructor=r,r.extend=function(t){process.env.NODE_ENV!=="production"&&N(e,function(a){t[a]||console.warn("Method `"+a+"` should be implemented"+(t.type?" in "+t.type:"")+".")});var n=this,i;return W$(n)?i=function(a){Y(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(t.$constructor||n).apply(this,arguments)},XJ(i,this)),$(i.prototype,t),i[tE]=!0,i.extend=this.extend,i.superCall=Y$,i.superApply=X$,i.superClass=n,i}}function W$(r){return Me(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function rE(r,e){r.extend=e.extend}var Z$=Math.round(Math.random()*10);function U$(r){var e=["__\0is_clz",Z$++].join("_");r.prototype[e]=!0,process.env.NODE_ENV!=="production"&&ke(!r.isInstance,'The method "is" can not be defined.'),r.isInstance=function(t){return!!(t&&t[e])}}function Y$(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return this.superClass.prototype[e].apply(r,t)}function X$(r,e,t){return this.superClass.prototype[e].apply(r,t)}function Xg(r){var e={};r.registerClass=function(n){var i=n.type||n.prototype.type;if(i){H$(i),n.prototype.type=i;var a=ca(i);if(!a.sub)process.env.NODE_ENV!=="production"&&e[a.main]&&console.warn(a.main+" exists."),e[a.main]=n;else if(a.sub!==cl){var o=t(a);o[a.sub]=n}}return n},r.getClass=function(n,i,a){var o=e[n];if(o&&o[cl]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var i=ca(n),a=[],o=e[i.main];return o&&o[cl]?N(o,function(s,l){l!==cl&&a.push(s)}):a.push(o),a},r.hasClass=function(n){var i=ca(n);return!!e[i.main]},r.getAllClassMainTypes=function(){var n=[];return N(e,function(i,a){n.push(a)}),n},r.hasSubTypes=function(n){var i=ca(n),a=e[i.main];return a&&a[cl]};function t(n){var i=e[n.main];return(!i||!i[cl])&&(i=e[n.main]={},i[cl]=!0),i}}function fl(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(i&&qe(i,l)>=0||a&&qe(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var q$=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],j$=fl(q$),K$=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return j$(this,e,t)},r}(),Dw=new _h(50);function J$(r){if(typeof r=="string"){var e=Dw.get(r);return e&&e.image}else return r}function Mw(r,e,t,n,i){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var a=Dw.get(r),o={hostEl:t,cb:n,cbPayload:i};return a?(e=a.image,!qg(e)&&a.pending.push(o)):(e=Go.loadImage(r,nE,nE),e.__zrImageSrc=r,Dw.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function nE(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],n=t.cb;n&&n(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function qg(r){return r&&r.width&&r.height}var Iw=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Q$(r,e,t,n,i,a){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
|
|
33
|
-
`);a=iE(t,n,i,a);for(var s=!1,l={},u=0,c=o.length;u<c;u++)aE(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
|
|
34
|
-
`),r.isTruncated=s}function iE(r,e,t,n){n=n||{};var i=$({},n);i.font=e,t=Ve(t,"..."),i.maxIterations=Ve(n.maxIterations,2);var a=i.minChar=Ve(n.minChar,0);i.cnCharWidth=kn("国",e);var o=i.ascCharWidth=kn("a",e);i.placeholder=Ve(n.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<a&&s>=o;l++)s-=o;var u=kn(t,e);return u>s&&(t="",u=0),s=r-u,i.ellipsis=t,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=r,i}function aE(r,e,t){var n=t.containerWidth,i=t.font,a=t.contentWidth;if(!n){r.textLine="",r.isTruncated=!1;return}var o=kn(e,i);if(o<=n){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?$$(e,a,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*a/o):0;e=e.substr(0,l),o=kn(e,i)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function $$(r,e,t,n){for(var i=0,a=0,o=r.length;a<o&&i<e;a++){var s=r.charCodeAt(a);i+=0<=s&&s<=127?t:n}return a}function eee(r,e){r!=null&&(r+="");var t=e.overflow,n=e.padding,i=e.font,a=t==="truncate",o=Gg(i),s=Ve(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",c=!1,f=e.width,h;f!=null&&(t==="break"||t==="breakAll")?h=r?sE(r,e.font,f,t==="breakAll",0).lines:[]:h=r?r.split(`
|
|
35
|
-
`):[];var v=h.length*s,d=Ve(e.height,v);if(v>d&&u){var g=Math.floor(d/s);c=c||h.length>g,h=h.slice(0,g)}if(r&&a&&f!=null)for(var p=iE(f,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m={},y=0;y<h.length;y++)aE(m,h[y],p),h[y]=m.textLine,c=c||m.isTruncated;for(var _=d,w=0,y=0;y<h.length;y++)w=Math.max(kn(h[y],i),w);f==null&&(f=w);var b=w;return n&&(_+=n[0]+n[2],b+=n[1]+n[3],f+=n[1]+n[3]),l&&(b=f),{lines:h,height:d,outerWidth:b,outerHeight:_,lineHeight:s,calculatedLineHeight:o,contentWidth:w,contentHeight:v,width:f,isTruncated:c}}var tee=function(){function r(){}return r}(),oE=function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r}(),ree=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();function nee(r,e){var t=new ree;if(r!=null&&(r+=""),!r)return t;for(var n=e.width,i=e.height,a=e.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=Iw.lastIndex=0,l;(l=Iw.exec(r))!=null;){var u=l.index;u>s&&Ew(t,r.substring(s,u),e,o),Ew(t,l[2],e,o,l[1]),s=Iw.lastIndex}s<r.length&&Ew(t,r.substring(s,r.length),e,o);var c=[],f=0,h=0,v=e.padding,d=a==="truncate",g=e.lineOverflow==="truncate",p={};function m(B,F,ee){B.width=F,B.lineHeight=ee,f+=ee,h=Math.max(h,F)}e:for(var y=0;y<t.lines.length;y++){for(var _=t.lines[y],w=0,b=0,x=0;x<_.tokens.length;x++){var S=_.tokens[x],T=S.styleName&&e.rich[S.styleName]||{},C=S.textPadding=T.padding,A=C?C[1]+C[3]:0,M=S.font=T.font||e.font;S.contentHeight=Gg(M);var k=Ve(T.height,S.contentHeight);if(S.innerHeight=k,C&&(k+=C[0]+C[2]),S.height=k,S.lineHeight=Zn(T.lineHeight,e.lineHeight,k),S.align=T&&T.align||e.align,S.verticalAlign=T&&T.verticalAlign||"middle",g&&i!=null&&f+S.lineHeight>i){var L=t.lines.length;x>0?(_.tokens=_.tokens.slice(0,x),m(_,b,w),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y),t.isTruncated=t.isTruncated||t.lines.length<L;break e}var P=T.width,E=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")S.percentWidth=P,c.push(S),S.contentWidth=kn(S.text,M);else{if(E){var O=T.backgroundColor,V=O&&O.image;V&&(V=J$(V),qg(V)&&(S.width=Math.max(S.width,V.width*k/V.height)))}var z=d&&n!=null?n-b:null;z!=null&&z<S.width?!E||z<A?(S.text="",S.width=S.contentWidth=0):(Q$(p,S.text,z-A,M,e.ellipsis,{minChar:e.truncateMinChar}),S.text=p.text,t.isTruncated=t.isTruncated||p.isTruncated,S.width=S.contentWidth=kn(S.text,M)):S.contentWidth=kn(S.text,M)}S.width+=A,b+=S.width,T&&(w=Math.max(w,S.lineHeight))}m(_,b,w)}t.outerWidth=t.width=Ve(n,h),t.outerHeight=t.height=Ve(i,f),t.contentHeight=f,t.contentWidth=h,v&&(t.outerWidth+=v[1]+v[3],t.outerHeight+=v[0]+v[2]);for(var y=0;y<c.length;y++){var S=c[y],H=S.percentWidth;S.width=parseInt(H,10)/100*t.width}return t}function Ew(r,e,t,n,i){var a=e==="",o=i&&t.rich[i]||{},s=r.lines,l=o.font||t.font,u=!1,c,f;if(n){var h=o.padding,v=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Li(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(c=e.split(`
|
|
36
|
-
`),u=!0),n.accumWidth=d}else{var g=sE(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+v,f=g.linesWidths,c=g.lines}}else c=e.split(`
|
|
37
|
-
`);for(var p=0;p<c.length;p++){var m=c[p],y=new tee;if(y.styleName=i,y.text=m,y.isLineHolder=!m&&!a,typeof o.width=="number"?y.width=o.width:y.width=f?f[p]:kn(m,l),!p&&!u){var _=(s[s.length-1]||(s[0]=new oE)).tokens,w=_.length;w===1&&_[0].isLineHolder?_[0]=y:(m||!w||a)&&_.push(y)}else s.push(new oE([y]))}}function iee(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var aee=na(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function oee(r){return iee(r)?!!aee[r]:!0}function sE(r,e,t,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;f<r.length;f++){var h=r.charAt(f);if(h===`
|
|
38
|
-
`){l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var v=kn(h,e),d=n?!1:!oee(h);if(a.length?c+v>t:i+c+v>t){c?(s||l)&&(d?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=h,u+=v,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=h,c=v)):d?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}c+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var Lw="__zr_style_"+Math.round(Math.random()*10),hl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},jg={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};hl[Lw]=!0;var lE=["z","z2","invisible"],see=["invisible"],Kn=function(r){Y(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var n=nt(t),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(t[a]):r.prototype.attrKV.call(this,a,t[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&lee(this,t,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,n){return this.rectContain(t,n)},e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.rectContain=function(t,n){var i=this.transformCoordToLocal(t,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Ue(0,0,0,0)),n?Ue.applyTransform(t,i,n):t.copy(i),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Ue(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,n){t!=="style"?r.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,n){return typeof t=="string"?this.style[t]=n:$(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Tg,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Tg)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return gg(hl,t)},e.prototype.useStyle=function(t){t[Lw]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Lw]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,lE)},e.prototype._applyStateObj=function(t,n,i,a,o,s){r.prototype._applyStateObj.call(this,t,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=nt(c),h=0;h<f.length;h++){var v=f[h];v in u&&(u[v]=u[v],this.style[v]=c[v])}for(var d=nt(u),h=0;h<d.length;h++){var v=d[h];this.style[v]=this.style[v]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?see:lE,h=0;h<g.length;h++){var v=g[h];n&&n[v]!=null?this[v]=n[v]:l&&i[v]!=null&&(this[v]=i[v])}},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),i,a=0;a<t.length;a++){var o=t[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(t,n){return $(t,n),t},e.prototype.getAnimationStyleProps=function(){return jg},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=aa|Tg}(),e}(Zg),kw=new Ue(0,0,0,0),Pw=new Ue(0,0,0,0);function lee(r,e,t){return kw.copy(r.getBoundingRect()),r.transform&&kw.applyTransform(r.transform),Pw.width=e,Pw.height=t,!kw.intersect(Pw)}var mn=Math.min,yn=Math.max,Nw=Math.sin,Ow=Math.cos,vl=Math.PI*2,Kg=Js(),Jg=Js(),Qg=Js();function $g(r,e,t){if(r.length!==0){for(var n=r[0],i=n[0],a=n[0],o=n[1],s=n[1],l=1;l<r.length;l++)n=r[l],i=mn(i,n[0]),a=yn(a,n[0]),o=mn(o,n[1]),s=yn(s,n[1]);e[0]=i,e[1]=o,t[0]=a,t[1]=s}}function uE(r,e,t,n,i,a){i[0]=mn(r,t),i[1]=mn(e,n),a[0]=yn(r,t),a[1]=yn(e,n)}var cE=[],fE=[];function uee(r,e,t,n,i,a,o,s,l,u){var c=aI,f=wr,h=c(r,t,i,o,cE);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<h;v++){var d=f(r,t,i,o,cE[v]);l[0]=mn(d,l[0]),u[0]=yn(d,u[0])}h=c(e,n,a,s,fE);for(var v=0;v<h;v++){var g=f(e,n,a,s,fE[v]);l[1]=mn(g,l[1]),u[1]=yn(g,u[1])}l[0]=mn(r,l[0]),u[0]=yn(r,u[0]),l[0]=mn(o,l[0]),u[0]=yn(o,u[0]),l[1]=mn(e,l[1]),u[1]=yn(e,u[1]),l[1]=mn(s,l[1]),u[1]=yn(s,u[1])}function cee(r,e,t,n,i,a,o,s){var l=sI,u=Ir,c=yn(mn(l(r,t,i),1),0),f=yn(mn(l(e,n,a),1),0),h=u(r,t,i,c),v=u(e,n,a,f);o[0]=mn(r,i,h),o[1]=mn(e,a,v),s[0]=yn(r,i,h),s[1]=yn(e,a,v)}function fee(r,e,t,n,i,a,o,s,l){var u=Zo,c=Uo,f=Math.abs(i-a);if(f%vl<1e-4&&f>1e-4){s[0]=r-t,s[1]=e-n,l[0]=r+t,l[1]=e+n;return}if(Kg[0]=Ow(i)*t+r,Kg[1]=Nw(i)*n+e,Jg[0]=Ow(a)*t+r,Jg[1]=Nw(a)*n+e,u(s,Kg,Jg),c(l,Kg,Jg),i=i%vl,i<0&&(i=i+vl),a=a%vl,a<0&&(a=a+vl),i>a&&!o?a+=vl:i<a&&o&&(i+=vl),o){var h=a;a=i,i=h}for(var v=0;v<a;v+=Math.PI/2)v>i&&(Qg[0]=Ow(v)*t+r,Qg[1]=Nw(v)*n+e,u(s,Qg,s),c(l,Qg,l))}var Et={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},dl=[],pl=[],fa=[],Jo=[],ha=[],va=[],Rw=Math.min,Vw=Math.max,gl=Math.cos,ml=Math.sin,Ka=Math.abs,zw=Math.PI,Qo=zw*2,Bw=typeof Float32Array<"u",Ph=[];function Fw(r){var e=Math.round(r/zw*1e8)/1e8;return e%2*zw}function Hw(r,e){var t=Fw(r[0]);t<0&&(t+=Qo);var n=t-r[0],i=r[1];i+=n,!e&&i-t>=Qo?i=t+Qo:e&&t-i>=Qo?i=t-Qo:!e&&t>i?i=t+(Qo-Fw(t-i)):e&&t<i&&(i=t-(Qo-Fw(i-t))),r[0]=t,r[1]=i}var da=function(){function r(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,n){n=n||0,n>0&&(this._ux=Ka(n/Hg/e)||0,this._uy=Ka(n/Hg/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Et.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var n=Ka(e-this._xi),i=Ka(t-this._yi),a=n>this._ux||i>this._uy;if(this.addData(Et.L,e,t),this._ctx&&a&&this._ctx.lineTo(e,t),a)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,n,i,a,o){return this._drawPendingPt(),this.addData(Et.C,e,t,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(Et.Q,e,t,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(e,t,n,i,a,o){this._drawPendingPt(),Ph[0]=i,Ph[1]=a,Hw(Ph,o),i=Ph[0],a=Ph[1];var s=a-i;return this.addData(Et.A,e,t,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,i,a,o),this._xi=gl(a)*n+e,this._yi=ml(a)*n+t,this},r.prototype.arcTo=function(e,t,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,a),this},r.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(Et.R,e,t,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Et.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&Bw&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},r.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,i=this._len,a=0;a<t;a++)n+=e[a].len();Bw&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<t;a++)for(var o=e[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},r.prototype.addData=function(e,t,n,i,a,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Bw&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){fa[0]=fa[1]=ha[0]=ha[1]=Number.MAX_VALUE,Jo[0]=Jo[1]=va[0]=va[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],n=e[o+1],i=t,a=n),s){case Et.M:t=i=e[o++],n=a=e[o++],ha[0]=i,ha[1]=a,va[0]=i,va[1]=a;break;case Et.L:uE(t,n,e[o],e[o+1],ha,va),t=e[o++],n=e[o++];break;case Et.C:uee(t,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],ha,va),t=e[o++],n=e[o++];break;case Et.Q:cee(t,n,e[o++],e[o++],e[o],e[o+1],ha,va),t=e[o++],n=e[o++];break;case Et.A:var u=e[o++],c=e[o++],f=e[o++],h=e[o++],v=e[o++],d=e[o++]+v;o+=1;var g=!e[o++];l&&(i=gl(v)*f+u,a=ml(v)*h+c),fee(u,c,f,h,v,d,g,ha,va),t=gl(d)*f+u,n=ml(d)*h+c;break;case Et.R:i=t=e[o++],a=n=e[o++];var p=e[o++],m=e[o++];uE(i,a,i+p,a+m,ha,va);break;case Et.Z:t=i,n=a;break}Zo(fa,fa,ha),Uo(Jo,Jo,va)}return o===0&&(fa[0]=fa[1]=Jo[0]=Jo[1]=0),new Ue(fa[0],fa[1],Jo[0]-fa[0],Jo[1]-fa[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,h=0;h<t;){var v=e[h++],d=h===1;d&&(a=e[h],o=e[h+1],s=a,l=o);var g=-1;switch(v){case Et.M:a=s=e[h++],o=l=e[h++];break;case Et.L:{var p=e[h++],m=e[h++],y=p-a,_=m-o;(Ka(y)>n||Ka(_)>i||h===t-1)&&(g=Math.sqrt(y*y+_*_),a=p,o=m);break}case Et.C:{var w=e[h++],b=e[h++],p=e[h++],m=e[h++],x=e[h++],S=e[h++];g=CQ(a,o,w,b,p,m,x,S,10),a=x,o=S;break}case Et.Q:{var w=e[h++],b=e[h++],p=e[h++],m=e[h++];g=MQ(a,o,w,b,p,m,10),a=p,o=m;break}case Et.A:var T=e[h++],C=e[h++],A=e[h++],M=e[h++],k=e[h++],L=e[h++],P=L+k;h+=1,d&&(s=gl(k)*A+T,l=ml(k)*M+C),g=Vw(A,M)*Rw(Qo,Math.abs(L)),a=gl(P)*A+T,o=ml(P)*M+C;break;case Et.R:{s=a=e[h++],l=o=e[h++];var E=e[h++],O=e[h++];g=E*2+O*2;break}case Et.Z:{var y=s-a,_=l-o;g=Math.sqrt(y*y+_*_),a=s,o=l;break}}g>=0&&(u[f++]=g,c+=g)}return this._pathLen=c,c},r.prototype.rebuildPath=function(e,t){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,h,v=t<1,d,g,p=0,m=0,y,_=0,w,b;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,y=t*g,!y)))e:for(var x=0;x<o;){var S=n[x++],T=x===1;switch(T&&(u=n[x],c=n[x+1],s=u,l=c),S!==Et.L&&_>0&&(e.lineTo(w,b),_=0),S){case Et.M:s=u=n[x++],l=c=n[x++],e.moveTo(u,c);break;case Et.L:{f=n[x++],h=n[x++];var C=Ka(f-u),A=Ka(h-c);if(C>i||A>a){if(v){var M=d[m++];if(p+M>y){var k=(y-p)/M;e.lineTo(u*(1-k)+f*k,c*(1-k)+h*k);break e}p+=M}e.lineTo(f,h),u=f,c=h,_=0}else{var L=C*C+A*A;L>_&&(w=f,b=h,_=L)}break}case Et.C:{var P=n[x++],E=n[x++],O=n[x++],V=n[x++],z=n[x++],H=n[x++];if(v){var M=d[m++];if(p+M>y){var k=(y-p)/M;qo(u,P,O,z,k,dl),qo(c,E,V,H,k,pl),e.bezierCurveTo(dl[1],pl[1],dl[2],pl[2],dl[3],pl[3]);break e}p+=M}e.bezierCurveTo(P,E,O,V,z,H),u=z,c=H;break}case Et.Q:{var P=n[x++],E=n[x++],O=n[x++],V=n[x++];if(v){var M=d[m++];if(p+M>y){var k=(y-p)/M;yh(u,P,O,k,dl),yh(c,E,V,k,pl),e.quadraticCurveTo(dl[1],pl[1],dl[2],pl[2]);break e}p+=M}e.quadraticCurveTo(P,E,O,V),u=O,c=V;break}case Et.A:var B=n[x++],F=n[x++],ee=n[x++],ae=n[x++],le=n[x++],U=n[x++],j=n[x++],Xe=!n[x++],Te=ee>ae?ee:ae,xe=Ka(ee-ae)>.001,Be=le+U,be=!1;if(v){var M=d[m++];p+M>y&&(Be=le+U*(y-p)/M,be=!0),p+=M}if(xe&&e.ellipse?e.ellipse(B,F,ee,ae,j,le,Be,Xe):e.arc(B,F,Te,le,Be,Xe),be)break e;T&&(s=gl(le)*ee+B,l=ml(le)*ae+F),u=gl(Be)*ee+B,c=ml(Be)*ae+F;break;case Et.R:s=u=n[x],l=c=n[x+1],f=n[x++],h=n[x++];var fe=n[x++],et=n[x++];if(v){var M=d[m++];if(p+M>y){var vt=y-p;e.moveTo(f,h),e.lineTo(f+Rw(vt,fe),h),vt-=fe,vt>0&&e.lineTo(f+fe,h+Rw(vt,et)),vt-=et,vt>0&&e.lineTo(f+Vw(fe-vt,0),h+et),vt-=fe,vt>0&&e.lineTo(f,h+Vw(et-vt,0));break e}p+=M}e.rect(f,h,fe,et);break;case Et.Z:if(v){var M=d[m++];if(p+M>y){var k=(y-p)/M;e.lineTo(u*(1-k)+s*k,c*(1-k)+l*k);break e}p+=M}e.closePath(),u=s,c=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=Et,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}();function $o(r,e,t,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>r+s&&a>t+s||a<r-s&&a<t-s)return!1;if(r!==t)l=(e-n)/(r-t),u=(r*n-t*e)/(r-t);else return Math.abs(a-r)<=s/2;var c=l*a-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function hee(r,e,t,n,i,a,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>e+f&&c>n+f&&c>a+f&&c>s+f||c<e-f&&c<n-f&&c<a-f&&c<s-f||u>r+f&&u>t+f&&u>i+f&&u>o+f||u<r-f&&u<t-f&&u<i-f&&u<o-f)return!1;var h=oI(r,e,t,n,i,a,o,s,u,c,null);return h<=f/2}function hE(r,e,t,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>a+u||l<e-u&&l<n-u&&l<a-u||s>r+u&&s>t+u&&s>i+u||s<r-u&&s<t-u&&s<i-u)return!1;var c=lI(r,e,t,n,i,a,s,l,null);return c<=u/2}var vE=Math.PI*2;function Pn(r){return r%=vE,r<0&&(r+=vE),r}var Nh=Math.PI*2;function vee(r,e,t,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>t||c+u<t)return!1;if(Math.abs(n-i)%Nh<1e-4)return!0;if(a){var f=n;n=Pn(i),i=Pn(f)}else n=Pn(n),i=Pn(i);n>i&&(i+=Nh);var h=Math.atan2(l,s);return h<0&&(h+=Nh),h>=n&&h<=i||h+Nh>=n&&h+Nh<=i}function Ja(r,e,t,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(t-r)+r;return l===i?1/0:l>i?s:0}var es=da.CMD,yl=Math.PI*2,dee=1e-4;function pee(r,e){return Math.abs(r-e)<dee}var on=[-1,-1,-1],Jn=[-1,-1];function gee(){var r=Jn[0];Jn[0]=Jn[1],Jn[1]=r}function mee(r,e,t,n,i,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var c=Mg(e,n,a,s,u,on);if(c===0)return 0;for(var f=0,h=-1,v=void 0,d=void 0,g=0;g<c;g++){var p=on[g],m=p===0||p===1?.5:1,y=wr(r,t,i,o,p);y<l||(h<0&&(h=aI(e,n,a,s,Jn),Jn[1]<Jn[0]&&h>1&&gee(),v=wr(e,n,a,s,Jn[0]),h>1&&(d=wr(e,n,a,s,Jn[1]))),h===2?p<Jn[0]?f+=v<e?m:-m:p<Jn[1]?f+=d<v?m:-m:f+=s<d?m:-m:p<Jn[0]?f+=v<e?m:-m:f+=s<v?m:-m)}return f}function yee(r,e,t,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=DQ(e,n,a,s,on);if(l===0)return 0;var u=sI(e,n,a);if(u>=0&&u<=1){for(var c=0,f=Ir(e,n,a,u),h=0;h<l;h++){var v=on[h]===0||on[h]===1?.5:1,d=Ir(r,t,i,on[h]);d<o||(on[h]<u?c+=f<e?v:-v:c+=a<f?v:-v)}return c}else{var v=on[0]===0||on[0]===1?.5:1,d=Ir(r,t,i,on[0]);return d<o?0:a<e?v:-v}}function _ee(r,e,t,n,i,a,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);on[0]=-l,on[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=yl-1e-4){n=0,i=yl;var c=a?1:-1;return o>=on[0]+r&&o<=on[1]+r?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=yl,i+=yl);for(var h=0,v=0;v<2;v++){var d=on[v];if(d+r>o){var g=Math.atan2(s,d),c=a?1:-1;g<0&&(g=yl+g),(g>=n&&g<=i||g+yl>=n&&g+yl<=i)&&(g>Math.PI/2&&g<Math.PI*1.5&&(c=-c),h+=c)}}return h}function dE(r,e,t,n,i){for(var a=r.data,o=r.len(),s=0,l=0,u=0,c=0,f=0,h,v,d=0;d<o;){var g=a[d++],p=d===1;switch(g===es.M&&d>1&&(t||(s+=Ja(l,u,c,f,n,i))),p&&(l=a[d],u=a[d+1],c=l,f=u),g){case es.M:c=a[d++],f=a[d++],l=c,u=f;break;case es.L:if(t){if($o(l,u,a[d],a[d+1],e,n,i))return!0}else s+=Ja(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case es.C:if(t){if(hee(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=mee(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case es.Q:if(t){if(hE(l,u,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=yee(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case es.A:var m=a[d++],y=a[d++],_=a[d++],w=a[d++],b=a[d++],x=a[d++];d+=1;var S=!!(1-a[d++]);h=Math.cos(b)*_+m,v=Math.sin(b)*w+y,p?(c=h,f=v):s+=Ja(l,u,h,v,n,i);var T=(n-m)*w/_+m;if(t){if(vee(m,y,w,b,b+x,S,e,T,i))return!0}else s+=_ee(m,y,w,b,b+x,S,T,i);l=Math.cos(b+x)*_+m,u=Math.sin(b+x)*w+y;break;case es.R:c=l=a[d++],f=u=a[d++];var C=a[d++],A=a[d++];if(h=c+C,v=f+A,t){if($o(c,f,h,f,e,n,i)||$o(h,f,h,v,e,n,i)||$o(h,v,c,v,e,n,i)||$o(c,v,c,f,e,n,i))return!0}else s+=Ja(h,f,h,v,n,i),s+=Ja(c,v,c,f,n,i);break;case es.Z:if(t){if($o(l,u,c,f,e,n,i))return!0}else s+=Ja(l,u,c,f,n,i);l=c,u=f;break}}return!t&&!pee(u,f)&&(s+=Ja(l,u,c,f,n,i)||0),s!==0}function wee(r,e,t){return dE(r,0,!1,e,t)}function bee(r,e,t,n){return dE(r,e,!0,t,n)}var e0=Ne({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},hl),xee={style:Ne({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},jg.style)},Gw=sa.concat(["invisible","culling","z","z2","zlevel","parent"]),Qe=function(r){Y(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){t.buildPath(l,t.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Gw.length;++s)i[Gw[s]]=this[Gw[s]];i.__dirty|=aa}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var n=nt(t);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=t[o];o==="style"?this.style?$(this.style,s):this.useStyle(s):o==="shape"?$(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(me(t)){var n=Lg(t,0);return n>.5?fw:n>.2?r$:hw}else if(t)return hw}return fw},e.prototype.getInsideTextStroke=function(t){var n=this.style.fill;if(me(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Lg(t,0)<cw;if(a===o)return n}},e.prototype.buildPath=function(t,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new da(!1)},e.prototype.hasStroke=function(){var t=this.style,n=t.stroke;return!(n==null||n==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,n=this.style,i=!t;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&gh)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||i){s.copy(t);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,n){var i=this.transformCoordToLocal(t,n),a=this.getBoundingRect(),o=this.style;if(t=i[0],n=i[1],a.contain(t,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),bee(s,l/u,t,n)))return!0}if(this.hasFill())return wee(s,t,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=gh,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,n){t==="shape"?this.setShape(n):r.prototype.attrKV.call(this,t,n)},e.prototype.setShape=function(t,n){var i=this.shape;return i||(i=this.shape={}),typeof t=="string"?i[t]=n:$(i,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&gh)},e.prototype.createStyle=function(t){return gg(e0,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=$({},this.shape))},e.prototype._applyStateObj=function(t,n,i,a,o,s){r.prototype._applyStateObj.call(this,t,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=$({},i.shape),$(u,n.shape)):(u=$({},a?this.shape:i.shape),$(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=$({},this.shape);for(var c={},f=nt(u),h=0;h<f.length;h++){var v=f[h];typeof u[v]=="object"?this.shape[v]=u[v]:c[v]=u[v]}this._transitionState(t,{shape:c},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),i,a=0;a<t.length;a++){var o=t[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return xee},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(a){Y(o,a);function o(s){var l=a.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Oe(t.style)},o.prototype.getDefaultShape=function(){return Oe(t.shape)},o}(e);for(var i in t)typeof t[i]=="function"&&(n.prototype[i]=t[i]);return n},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=aa|Tg|gh}(),e}(Kn),See=Ne({strokeFirst:!0,font:Ho,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},e0),pc=function(r){Y(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var t=this.style,n=t.stroke;return n!=null&&n!=="none"&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(t){return gg(See,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var n=t.text;n!=null?n+="":n="";var i=Ch(n,t.font,t.textAlign,t.textBaseline);if(i.x+=t.x||0,i.y+=t.y||0,this.hasStroke()){var a=t.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Kn);pc.prototype.type="tspan";var Tee=Ne({x:0,y:0},hl),Aee={style:Ne({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},jg.style)};function Cee(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Er=function(r){Y(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return gg(Tee,t)},e.prototype._getSize=function(t){var n=this.style,i=n[t];if(i!=null)return i;var a=Cee(n.image)?n.image:this.__image;if(!a)return 0;var o=t==="width"?"height":"width",s=n[o];return s==null?a[t]:a[t]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Aee},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Ue(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Kn);Er.prototype.type="image";function Dee(r,e){var t=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,c;i<0&&(t=t+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),r.moveTo(t+s,n),r.lineTo(t+i-l,n),l!==0&&r.arc(t+i-l,n+l,l,-Math.PI/2,0),r.lineTo(t+i,n+a-u),u!==0&&r.arc(t+i-u,n+a-u,u,0,Math.PI/2),r.lineTo(t+c,n+a),c!==0&&r.arc(t+c,n+a-c,c,Math.PI/2,Math.PI),r.lineTo(t,n+s),s!==0&&r.arc(t+s,n+s,s,Math.PI,Math.PI*1.5)}var gc=Math.round;function pE(r,e,t){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=t&&t.lineWidth;return s&&(gc(n*2)===gc(i*2)&&(r.x1=r.x2=_l(n,s,!0)),gc(a*2)===gc(o*2)&&(r.y1=r.y2=_l(a,s,!0))),r}}function gE(r,e,t){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=_l(n,s,!0),r.y=_l(i,s,!0),r.width=Math.max(_l(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(_l(i+o,s,!1)-r.y,o===0?0:1)),r}}function _l(r,e,t){if(!e)return r;var n=gc(r*2);return(n+gc(e))%2===0?n/2:(n+(t?1:-1))/2}var Mee=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),Iee={},st=function(r){Y(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Mee},e.prototype.buildPath=function(t,n){var i,a,o,s;if(this.subPixelOptimize){var l=gE(Iee,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?Dee(t,n):t.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Qe);st.prototype.type="rect";var mE={fill:"#000"},yE=2,Eee={style:Ne({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},jg.style)},ut=function(r){Y(e,r);function e(t){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=mE,n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,Pee(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Ue(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(t.copy(l),t.applyTransform(u),a=a||t.clone(),a.union(t)):(a=a||l.clone(),a.union(l))}this._rect=a||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||mE},e.prototype.setTextContent=function(t){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(t,n){if(!n)return t;var i=n.rich,a=t.rich||i&&{};return $(t,n),i&&a?(this._mergeRich(a,i),t.rich=a):a&&(t.rich=a),t},e.prototype._mergeRich=function(t,n){for(var i=nt(n),a=0;a<i.length;a++){var o=i[a];t[o]=t[o]||{},$(t[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return Eee},e.prototype._getOrCreateChild=function(t){var n=this._children[this._childCursor];return(!n||!(n instanceof t))&&(n=new t),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var t=this.style,n=t.font||Ho,i=t.padding,a=DE(t),o=eee(a,t),s=Ww(t),l=!!t.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,h=o.lines,v=o.lineHeight,d=this._defaultStyle;this.isTruncated=!!o.isTruncated;var g=t.x||0,p=t.y||0,m=t.align||d.align||"left",y=t.verticalAlign||d.verticalAlign||"top",_=g,w=fc(p,o.contentHeight,y);if(s||i){var b=Dh(g,c,m),x=fc(p,u,y);s&&this._renderBackground(t,t,b,x,c,u)}w+=v/2,i&&(_=CE(g,m,i),y==="top"?w+=i[0]:y==="bottom"&&(w-=i[2]));for(var S=0,T=!1,C=AE("fill"in t?t.fill:(T=!0,d.fill)),A=TE("stroke"in t?t.stroke:!l&&(!d.autoStroke||T)?(S=yE,d.stroke):null),M=t.textShadowBlur>0,k=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P<h.length;P++){var E=this._getOrCreateChild(pc),O=E.createStyle();E.useStyle(O),O.text=h[P],O.x=_,O.y=w,O.textAlign=m,O.textBaseline="middle",O.opacity=t.opacity,O.strokeFirst=!0,M&&(O.shadowBlur=t.textShadowBlur||0,O.shadowColor=t.textShadowColor||"transparent",O.shadowOffsetX=t.textShadowOffsetX||0,O.shadowOffsetY=t.textShadowOffsetY||0),O.stroke=A,O.fill=C,A&&(O.lineWidth=t.lineWidth||S,O.lineDash=t.lineDash,O.lineDashOffset=t.lineDashOffset||0),O.font=n,bE(O,t),w+=v,k&&E.setBoundingRect(new Ue(Dh(O.x,f,O.textAlign),fc(O.y,L,O.textBaseline),f,L))}},e.prototype._updateRichTexts=function(){var t=this.style,n=DE(t),i=nee(n,t),a=i.width,o=i.outerWidth,s=i.outerHeight,l=t.padding,u=t.x||0,c=t.y||0,f=this._defaultStyle,h=t.align||f.align,v=t.verticalAlign||f.verticalAlign;this.isTruncated=!!i.isTruncated;var d=Dh(u,o,h),g=fc(c,s,v),p=d,m=g;l&&(p+=l[3],m+=l[0]);var y=p+a;Ww(t)&&this._renderBackground(t,t,d,g,o,s);for(var _=!!t.backgroundColor,w=0;w<i.lines.length;w++){for(var b=i.lines[w],x=b.tokens,S=x.length,T=b.lineHeight,C=b.width,A=0,M=p,k=y,L=S-1,P=void 0;A<S&&(P=x[A],!P.align||P.align==="left");)this._placeToken(P,t,T,m,M,"left",_),C-=P.width,M+=P.width,A++;for(;L>=0&&(P=x[L],P.align==="right");)this._placeToken(P,t,T,m,k,"right",_),C-=P.width,k-=P.width,L--;for(M+=(a-(M-p)-(y-k)-C)/2;A<=L;)P=x[A],this._placeToken(P,t,T,m,M+P.width/2,"center",_),M+=P.width,A++;m+=T}},e.prototype._placeToken=function(t,n,i,a,o,s,l){var u=n.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,f=a+i/2;c==="top"?f=a+t.height/2:c==="bottom"&&(f=a+i-t.height/2);var h=!t.isLineHolder&&Ww(u);h&&this._renderBackground(u,n,s==="right"?o-t.width:s==="center"?o-t.width/2:o,f-t.height/2,t.width,t.height);var v=!!u.backgroundColor,d=t.textPadding;d&&(o=CE(o,s,d),f-=t.height/2-d[0]-t.innerHeight/2);var g=this._getOrCreateChild(pc),p=g.createStyle();g.useStyle(p);var m=this._defaultStyle,y=!1,_=0,w=AE("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),b=TE("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!m.autoStroke||y)?(_=yE,m.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;p.text=t.text,p.x=o,p.y=f,x&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=t.font||Ho,p.opacity=Zn(u.opacity,n.opacity,1),bE(p,u),b&&(p.lineWidth=Zn(u.lineWidth,n.lineWidth,_),p.lineDash=Ve(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=b),w&&(p.fill=w);var S=t.contentWidth,T=t.contentHeight;g.setBoundingRect(new Ue(Dh(p.x,S,p.textAlign),fc(p.y,T,p.textBaseline),S,T))},e.prototype._renderBackground=function(t,n,i,a,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,f=l&&l.image,h=l&&!f,v=t.borderRadius,d=this,g,p;if(h||t.lineHeight||u&&c){g=this._getOrCreateChild(st),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=v,g.dirtyShape()}if(h){var y=g.style;y.fill=l||null,y.fillOpacity=Ve(t.fillOpacity,1)}else if(f){p=this._getOrCreateChild(Er),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&c){var y=g.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=Ve(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var w=(g||p).style;w.shadowBlur=t.shadowBlur||0,w.shadowColor=t.shadowColor||"transparent",w.shadowOffsetX=t.shadowOffsetX||0,w.shadowOffsetY=t.shadowOffsetY||0,w.opacity=Zn(t.opacity,n.opacity,1)},e.makeFont=function(t){var n="";return xE(t)&&(n=[t.fontStyle,t.fontWeight,wE(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),n&&Mi(n)||t.textFont||t.font},e}(Kn),Lee={left:!0,right:1,center:1},kee={top:1,bottom:1,middle:1},_E=["fontStyle","fontWeight","fontSize","fontFamily"];function wE(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?_2+"px":r+"px"}function bE(r,e){for(var t=0;t<_E.length;t++){var n=_E[t],i=e[n];i!=null&&(r[n]=i)}}function xE(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function Pee(r){return SE(r),N(r.rich,SE),r}function SE(r){if(r){r.font=ut.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||Lee[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||kee[t]?t:"top";var n=r.padding;n&&(r.padding=T2(r.padding))}}function TE(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function AE(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function CE(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function DE(r){var e=r.text;return e!=null&&(e+=""),e}function Ww(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var ze=ot(),Zw=function(r,e,t,n){if(n){var i=ze(n);i.dataIndex=t,i.dataType=e,i.seriesIndex=r,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=ze(a);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},ME=1,IE={},EE=ot(),Uw=ot(),Yw=0,Oh=1,t0=2,sn=["emphasis","blur","select"],Rh=["normal","emphasis","blur","select"],mc=10,Nee=9,wl="highlight",r0="downplay",Vh="select",n0="unselect",zh="toggleSelect";function yc(r){return r!=null&&r!=="none"}function i0(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function LE(r){i0(r,"emphasis",t0)}function kE(r){r.hoverState===t0&&i0(r,"normal",Yw)}function Xw(r){i0(r,"blur",Oh)}function PE(r){r.hoverState===Oh&&i0(r,"normal",Yw)}function Oee(r){r.selected=!0}function Ree(r){r.selected=!1}function NE(r,e,t){e(r,t)}function Qa(r,e,t){NE(r,e,t),r.isGroup&&r.traverse(function(n){NE(n,e,t)})}function a0(r,e){switch(e){case"emphasis":r.hoverState=t0;break;case"normal":r.hoverState=Yw;break;case"blur":r.hoverState=Oh;break;case"select":r.selected=!0}}function Vee(r,e,t,n){for(var i=r.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function zee(r,e,t,n){var i=t&&qe(t,"select")>=0,a=!1;if(r instanceof Qe){var o=EE(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(yc(s)||yc(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=$({},n),u=$({},u),u.fill=s):!yc(u.fill)&&yc(s)?(a=!0,n=$({},n),u=$({},u),u.fill=K2(s)):!yc(u.stroke)&&yc(l)&&(a||(n=$({},n),u=$({},u)),u.stroke=K2(l)),n.style=u}}if(n&&n.z2==null){a||(n=$({},n));var c=r.z2EmphasisLift;n.z2=r.z2+(c??mc)}return n}function Bee(r,e,t){if(t&&t.z2==null){t=$({},t);var n=r.z2SelectLift;t.z2=r.z2+(n??Nee)}return t}function Fee(r,e,t){var n=qe(r.currentStates,e)>=0,i=r.style.opacity,a=n?null:Vee(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=$({},t),o=$({opacity:n?i:a.opacity*.1},o),t.style=o),t}function qw(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return zee(this,r,e,t);if(r==="blur")return Fee(this,r,t);if(r==="select")return Bee(this,r,t)}return t}function bl(r){r.stateProxy=qw;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=qw),t&&(t.stateProxy=qw)}function OE(r,e){!FE(r,e)&&!r.__highByOuter&&Qa(r,LE)}function RE(r,e){!FE(r,e)&&!r.__highByOuter&&Qa(r,kE)}function $a(r,e){r.__highByOuter|=1<<(e||0),Qa(r,LE)}function eo(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Qa(r,kE)}function VE(r){Qa(r,Xw)}function jw(r){Qa(r,PE)}function zE(r){Qa(r,Oee)}function BE(r){Qa(r,Ree)}function FE(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function HE(r){var e=r.getModel(),t=[],n=[];e.eachComponent(function(i,a){var o=Uw(a),s=i==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){PE(u)}),s&&t.push(a)),o.isBlured=!1}),N(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(t,!1,e)})}function Kw(r,e,t,n){var i=n.getModel();t=t||"coordinateSystem";function a(u,c){for(var f=0;f<c.length;f++){var h=u.getItemGraphicEl(c[f]);h&&jw(h)}}if(r!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var h=f&&s?f===s:c;if(!(t==="series"&&!c||t==="coordinateSystem"&&!h||e==="series"&&c)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(p){p.__highByOuter&&c&&e==="self"||Xw(p)}),Zr(e))a(u.getData(),e);else if(Le(e))for(var d=nt(e),g=0;g<d.length;g++)a(u.getData(d[g]),e[d[g]]);l.push(u),Uw(u).isBlured=!0}}),i.eachComponent(function(u,c){if(u!=="series"){var f=n.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,i)}})}}function Jw(r,e,t){if(!(r==null||e==null)){var n=t.getModel().getComponent(r,e);if(n){Uw(n).isBlured=!0;var i=t.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Xw(a)})}}}function Hee(r,e,t){var n=r.seriesIndex,i=r.getData(e.dataType);if(!i){process.env.NODE_ENV!=="production"&&Or("Unknown dataType "+e.dataType);return}var a=ul(i,e);a=(re(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=ze(o);Kw(n,u.focus,u.blurScope,t)}else{var c=r.get(["emphasis","focus"]),f=r.get(["emphasis","blurScope"]);c!=null&&Kw(n,c,f,t)}}function Qw(r,e,t,n){var i={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return i;var a=n.getModel().getComponent(r,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!ts(s[u])&&Or("param should be highDownDispatcher"),ze(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Gee(r,e,t){process.env.NODE_ENV!=="production"&&!ts(r)&&Or("param should be highDownDispatcher");var n=ze(r),i=Qw(n.componentMainType,n.componentIndex,n.componentHighDownName,t),a=i.dispatchers,o=i.focusSelf;a?(o&&Jw(n.componentMainType,n.componentIndex,t),N(a,function(s){return OE(s,e)})):(Kw(n.seriesIndex,n.focus,n.blurScope,t),n.focus==="self"&&Jw(n.componentMainType,n.componentIndex,t),OE(r,e))}function Wee(r,e,t){process.env.NODE_ENV!=="production"&&!ts(r)&&Or("param should be highDownDispatcher"),HE(t);var n=ze(r),i=Qw(n.componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers;i?N(i,function(a){return RE(a,e)}):RE(r,e)}function Zee(r,e,t){if(eb(e)){var n=e.dataType,i=r.getData(n),a=ul(i,e);re(a)||(a=[a]),r[e.type===zh?"toggleSelect":e.type===Vh?"select":"unselect"](a,n)}}function GE(r){var e=r.getAllData();N(e,function(t){var n=t.data,i=t.type;n.eachItemGraphicEl(function(a,o){r.isSelected(o,i)?zE(a):BE(a)})})}function Uee(r){var e=[];return r.eachSeries(function(t){var n=t.getAllData();N(n,function(i){i.data;var a=i.type,o=t.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:t.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function xl(r,e,t){Sl(r,!0),Qa(r,bl),$w(r,e,t)}function Yee(r){Sl(r,!1)}function qt(r,e,t,n){n?Yee(r):xl(r,e,t)}function $w(r,e,t){var n=ze(r);e!=null?(n.focus=e,n.blurScope=t):n.focus&&(n.focus=null)}var WE=["emphasis","blur","select"],Xee={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Rr(r,e,t,n){t=t||"itemStyle";for(var i=0;i<WE.length;i++){var a=WE[i],o=e.getModel([a,t]),s=r.ensureState(a);s.style=n?n(o):o[Xee[t]]()}}function Sl(r,e){var t=e===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!t)}function ts(r){return!!(r&&r.__highDownDispatcher)}function qee(r,e,t){var n=ze(r);n.componentMainType=e.mainType,n.componentIndex=e.componentIndex,n.componentHighDownName=t}function jee(r){var e=IE[r];return e==null&&ME<=32&&(e=IE[r]=ME++),e}function eb(r){var e=r.type;return e===Vh||e===n0||e===zh}function ZE(r){var e=r.type;return e===wl||e===r0}function Kee(r){var e=EE(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var _c=da.CMD,Jee=[[],[],[]],UE=Math.sqrt,Qee=Math.atan2;function YE(r,e){if(e){var t=r.data,n=r.len(),i,a,o,s,l,u,c=_c.M,f=_c.C,h=_c.L,v=_c.R,d=_c.A,g=_c.Q;for(o=0,s=0;o<n;){switch(i=t[o++],s=o,a=0,i){case c:a=1;break;case h:a=1;break;case f:a=3;break;case g:a=2;break;case d:var p=e[4],m=e[5],y=UE(e[0]*e[0]+e[1]*e[1]),_=UE(e[2]*e[2]+e[3]*e[3]),w=Qee(-e[1]/_,e[0]/y);t[o]*=y,t[o++]+=p,t[o]*=_,t[o++]+=m,t[o++]*=y,t[o++]*=_,t[o++]+=w,t[o++]+=w,o+=2,s=o;break;case v:u[0]=t[o++],u[1]=t[o++],Nr(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],Nr(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<a;l++){var b=Jee[l];b[0]=t[o++],b[1]=t[o++],Nr(b,b,e),t[s++]=b[0],t[s++]=b[1]}}r.increaseVersion()}}var tb=Math.sqrt,o0=Math.sin,s0=Math.cos,Bh=Math.PI;function XE(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function rb(r,e){return(r[0]*e[0]+r[1]*e[1])/(XE(r)*XE(e))}function qE(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(rb(r,e))}function jE(r,e,t,n,i,a,o,s,l,u,c){var f=l*(Bh/180),h=s0(f)*(r-t)/2+o0(f)*(e-n)/2,v=-1*o0(f)*(r-t)/2+s0(f)*(e-n)/2,d=h*h/(o*o)+v*v/(s*s);d>1&&(o*=tb(d),s*=tb(d));var g=(i===a?-1:1)*tb((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,p=g*o*v/s,m=g*-s*h/o,y=(r+t)/2+s0(f)*p-o0(f)*m,_=(e+n)/2+o0(f)*p+s0(f)*m,w=qE([1,0],[(h-p)/o,(v-m)/s]),b=[(h-p)/o,(v-m)/s],x=[(-1*h-p)/o,(-1*v-m)/s],S=qE(b,x);if(rb(b,x)<=-1&&(S=Bh),rb(b,x)>=1&&(S=0),S<0){var T=Math.round(S/Bh*1e6)/1e6;S=Bh*2+T%2*Bh}c.addData(u,y,_,o,s,w,S,f,a)}var $ee=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,ete=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function tte(r){var e=new da;if(!r)return e;var t=0,n=0,i=t,a=n,o,s=da.CMD,l=r.match($ee);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),h=void 0,v=c.match(ete)||[],d=v.length,g=0;g<d;g++)v[g]=parseFloat(v[g]);for(var p=0;p<d;){var m=void 0,y=void 0,_=void 0,w=void 0,b=void 0,x=void 0,S=void 0,T=t,C=n,A=void 0,M=void 0;switch(f){case"l":t+=v[p++],n+=v[p++],h=s.L,e.addData(h,t,n);break;case"L":t=v[p++],n=v[p++],h=s.L,e.addData(h,t,n);break;case"m":t+=v[p++],n+=v[p++],h=s.M,e.addData(h,t,n),i=t,a=n,f="l";break;case"M":t=v[p++],n=v[p++],h=s.M,e.addData(h,t,n),i=t,a=n,f="L";break;case"h":t+=v[p++],h=s.L,e.addData(h,t,n);break;case"H":t=v[p++],h=s.L,e.addData(h,t,n);break;case"v":n+=v[p++],h=s.L,e.addData(h,t,n);break;case"V":n=v[p++],h=s.L,e.addData(h,t,n);break;case"C":h=s.C,e.addData(h,v[p++],v[p++],v[p++],v[p++],v[p++],v[p++]),t=v[p-2],n=v[p-1];break;case"c":h=s.C,e.addData(h,v[p++]+t,v[p++]+n,v[p++]+t,v[p++]+n,v[p++]+t,v[p++]+n),t+=v[p-2],n+=v[p-1];break;case"S":m=t,y=n,A=e.len(),M=e.data,o===s.C&&(m+=t-M[A-4],y+=n-M[A-3]),h=s.C,T=v[p++],C=v[p++],t=v[p++],n=v[p++],e.addData(h,m,y,T,C,t,n);break;case"s":m=t,y=n,A=e.len(),M=e.data,o===s.C&&(m+=t-M[A-4],y+=n-M[A-3]),h=s.C,T=t+v[p++],C=n+v[p++],t+=v[p++],n+=v[p++],e.addData(h,m,y,T,C,t,n);break;case"Q":T=v[p++],C=v[p++],t=v[p++],n=v[p++],h=s.Q,e.addData(h,T,C,t,n);break;case"q":T=v[p++]+t,C=v[p++]+n,t+=v[p++],n+=v[p++],h=s.Q,e.addData(h,T,C,t,n);break;case"T":m=t,y=n,A=e.len(),M=e.data,o===s.Q&&(m+=t-M[A-4],y+=n-M[A-3]),t=v[p++],n=v[p++],h=s.Q,e.addData(h,m,y,t,n);break;case"t":m=t,y=n,A=e.len(),M=e.data,o===s.Q&&(m+=t-M[A-4],y+=n-M[A-3]),t+=v[p++],n+=v[p++],h=s.Q,e.addData(h,m,y,t,n);break;case"A":_=v[p++],w=v[p++],b=v[p++],x=v[p++],S=v[p++],T=t,C=n,t=v[p++],n=v[p++],h=s.A,jE(T,C,t,n,x,S,_,w,b,h,e);break;case"a":_=v[p++],w=v[p++],b=v[p++],x=v[p++],S=v[p++],T=t,C=n,t+=v[p++],n+=v[p++],h=s.A,jE(T,C,t,n,x,S,_,w,b,h,e);break}}(f==="z"||f==="Z")&&(h=s.Z,e.addData(h),t=i,n=a),o=h}return e.toStatic(),e}var KE=function(r){Y(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e}(Qe);function JE(r){return r.setData!=null}function QE(r,e){var t=tte(r),n=$({},e);return n.buildPath=function(i){if(JE(i)){i.setData(t.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;t.rebuildPath(a,1)}},n.applyTransform=function(i){YE(t,i),this.dirtyShape()},n}function $E(r,e){return new KE(QE(r,e))}function rte(r,e){var t=QE(r,e),n=function(i){Y(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return a}(KE);return n}function nte(r,e){for(var t=[],n=r.length,i=0;i<n;i++){var a=r[i];t.push(a.getUpdatedPathProxy(!0))}var o=new Qe(e);return o.createPathProxy(),o.buildPath=function(s){if(JE(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function nb(r,e){e=e||{};var t=new Qe;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?YE(t.path,r.getComputedTransform()):e.toLocal?t.setLocalTransform(r.getComputedTransform()):t.copyTransform(r),t.buildPath=r.buildPath,t.applyTransform=t.applyTransform,t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t}var ite=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),to=function(r){Y(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new ite},e.prototype.buildPath=function(t,n){t.moveTo(n.cx+n.r,n.cy),t.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e}(Qe);to.prototype.type="circle";var ate=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),l0=function(r){Y(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new ate},e.prototype.buildPath=function(t,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,c=l*i;t.moveTo(a-s,o),t.bezierCurveTo(a-s,o-c,a-u,o-l,a,o-l),t.bezierCurveTo(a+u,o-l,a+s,o-c,a+s,o),t.bezierCurveTo(a+s,o+c,a+u,o+l,a,o+l),t.bezierCurveTo(a-u,o+l,a-s,o+c,a-s,o),t.closePath()},e}(Qe);l0.prototype.type="ellipse";var e6=Math.PI,ib=e6*2,Tl=Math.sin,wc=Math.cos,ote=Math.acos,Ur=Math.atan2,t6=Math.abs,Fh=Math.sqrt,Hh=Math.max,pa=Math.min,Pi=1e-4;function ste(r,e,t,n,i,a,o,s){var l=t-r,u=n-e,c=o-i,f=s-a,h=f*l-c*u;if(!(h*h<Pi))return h=(c*(e-a)-f*(r-i))/h,[r+h*l,e+h*u]}function u0(r,e,t,n,i,a,o){var s=r-t,l=e-n,u=(o?a:-a)/Fh(s*s+l*l),c=u*l,f=-u*s,h=r+c,v=e+f,d=t+c,g=n+f,p=(h+d)/2,m=(v+g)/2,y=d-h,_=g-v,w=y*y+_*_,b=i-a,x=h*g-d*v,S=(_<0?-1:1)*Fh(Hh(0,b*b*w-x*x)),T=(x*_-y*S)/w,C=(-x*y-_*S)/w,A=(x*_+y*S)/w,M=(-x*y+_*S)/w,k=T-p,L=C-m,P=A-p,E=M-m;return k*k+L*L>P*P+E*E&&(T=A,C=M),{cx:T,cy:C,x0:-c,y0:-f,x1:T*(i/b-1),y1:C*(i/b-1)}}function lte(r){var e;if(re(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function ute(r,e){var t,n=Hh(e.r,0),i=Hh(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,f=e.cy,h=!!e.clockwise,v=t6(u-l),d=v>ib&&v%ib;if(d>Pi&&(v=d),!(n>Pi))r.moveTo(c,f);else if(v>ib-Pi)r.moveTo(c+n*wc(l),f+n*Tl(l)),r.arc(c,f,n,l,u,!h),i>Pi&&(r.moveTo(c+i*wc(u),f+i*Tl(u)),r.arc(c,f,i,u,l,h));else{var g=void 0,p=void 0,m=void 0,y=void 0,_=void 0,w=void 0,b=void 0,x=void 0,S=void 0,T=void 0,C=void 0,A=void 0,M=void 0,k=void 0,L=void 0,P=void 0,E=n*wc(l),O=n*Tl(l),V=i*wc(u),z=i*Tl(u),H=v>Pi;if(H){var B=e.cornerRadius;B&&(t=lte(B),g=t[0],p=t[1],m=t[2],y=t[3]);var F=t6(n-i)/2;if(_=pa(F,m),w=pa(F,y),b=pa(F,g),x=pa(F,p),C=S=Hh(_,w),A=T=Hh(b,x),(S>Pi||T>Pi)&&(M=n*wc(u),k=n*Tl(u),L=i*wc(l),P=i*Tl(l),v<e6)){var ee=ste(E,O,L,P,M,k,V,z);if(ee){var ae=E-ee[0],le=O-ee[1],U=M-ee[0],j=k-ee[1],Xe=1/Tl(ote((ae*U+le*j)/(Fh(ae*ae+le*le)*Fh(U*U+j*j)))/2),Te=Fh(ee[0]*ee[0]+ee[1]*ee[1]);C=pa(S,(n-Te)/(Xe+1)),A=pa(T,(i-Te)/(Xe-1))}}}if(!H)r.moveTo(c+E,f+O);else if(C>Pi){var xe=pa(m,C),Be=pa(y,C),be=u0(L,P,E,O,n,xe,h),fe=u0(M,k,V,z,n,Be,h);r.moveTo(c+be.cx+be.x0,f+be.cy+be.y0),C<S&&xe===Be?r.arc(c+be.cx,f+be.cy,C,Ur(be.y0,be.x0),Ur(fe.y0,fe.x0),!h):(xe>0&&r.arc(c+be.cx,f+be.cy,xe,Ur(be.y0,be.x0),Ur(be.y1,be.x1),!h),r.arc(c,f,n,Ur(be.cy+be.y1,be.cx+be.x1),Ur(fe.cy+fe.y1,fe.cx+fe.x1),!h),Be>0&&r.arc(c+fe.cx,f+fe.cy,Be,Ur(fe.y1,fe.x1),Ur(fe.y0,fe.x0),!h))}else r.moveTo(c+E,f+O),r.arc(c,f,n,l,u,!h);if(!(i>Pi)||!H)r.lineTo(c+V,f+z);else if(A>Pi){var xe=pa(g,A),Be=pa(p,A),be=u0(V,z,M,k,i,-Be,h),fe=u0(E,O,L,P,i,-xe,h);r.lineTo(c+be.cx+be.x0,f+be.cy+be.y0),A<T&&xe===Be?r.arc(c+be.cx,f+be.cy,A,Ur(be.y0,be.x0),Ur(fe.y0,fe.x0),!h):(Be>0&&r.arc(c+be.cx,f+be.cy,Be,Ur(be.y0,be.x0),Ur(be.y1,be.x1),!h),r.arc(c,f,i,Ur(be.cy+be.y1,be.cx+be.x1),Ur(fe.cy+fe.y1,fe.cx+fe.x1),h),xe>0&&r.arc(c+fe.cx,f+fe.cy,xe,Ur(fe.y1,fe.x1),Ur(fe.y0,fe.x0),!h))}else r.lineTo(c+V,f+z),r.arc(c,f,i,u,l,h)}r.closePath()}}}var cte=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),ln=function(r){Y(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new cte},e.prototype.buildPath=function(t,n){ute(t,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Qe);ln.prototype.type="sector";var fte=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Gh=function(r){Y(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new fte},e.prototype.buildPath=function(t,n){var i=n.cx,a=n.cy,o=Math.PI*2;t.moveTo(i+n.r,a),t.arc(i,a,n.r,0,o,!1),t.moveTo(i+n.r0,a),t.arc(i,a,n.r0,0,o,!0)},e}(Qe);Gh.prototype.type="ring";function hte(r,e,t,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var h=0,v=r.length;h<v;h++)Zo(c,c,r[h]),Uo(f,f,r[h]);Zo(c,c,n[0]),Uo(f,f,n[1])}for(var h=0,v=r.length;h<v;h++){var d=r[h];if(t)l=r[h?h-1:v-1],u=r[(h+1)%v];else if(h===0||h===v-1){i.push(Wa(r[h]));continue}else l=r[h-1],u=r[h+1];Qs(a,u,l),yg(a,a,e);var g=D2(d,l),p=D2(d,u),m=g+p;m!==0&&(g/=m,p/=m),yg(o,a,-g),yg(s,a,p);var y=z4([],d,o),_=z4([],d,s);n&&(Uo(y,y,c),Zo(y,y,f),Uo(_,_,c),Zo(_,_,f)),i.push(y),i.push(_)}return t&&i.push(i.shift()),i}function r6(r,e,t){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=hte(i,n,t,e.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(t?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;s<f;s++)r.lineTo(i[s][0],i[s][1])}t&&r.closePath()}}var vte=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),un=function(r){Y(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new vte},e.prototype.buildPath=function(t,n){r6(t,n,!0)},e}(Qe);un.prototype.type="polygon";var dte=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),cn=function(r){Y(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new dte},e.prototype.buildPath=function(t,n){r6(t,n,!1)},e}(Qe);cn.prototype.type="polyline";var pte={},gte=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),br=function(r){Y(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new gte},e.prototype.buildPath=function(t,n){var i,a,o,s;if(this.subPixelOptimize){var l=pE(pte,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(t.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var n=this.shape;return[n.x1*(1-t)+n.x2*t,n.y1*(1-t)+n.y2*t]},e}(Qe);br.prototype.type="line";var _n=[],mte=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function n6(r,e,t){var n=r.cpx2,i=r.cpy2;return n!=null||i!=null?[(t?iI:wr)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?iI:wr)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?G2:Ir)(r.x1,r.cpx1,r.x2,e),(t?G2:Ir)(r.y1,r.cpy1,r.y2,e)]}var Wh=function(r){Y(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new mte},e.prototype.buildPath=function(t,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,f=n.cpy2,h=n.percent;h!==0&&(t.moveTo(i,a),c==null||f==null?(h<1&&(yh(i,l,o,h,_n),l=_n[1],o=_n[2],yh(a,u,s,h,_n),u=_n[1],s=_n[2]),t.quadraticCurveTo(l,u,o,s)):(h<1&&(qo(i,l,c,o,h,_n),l=_n[1],c=_n[2],o=_n[3],qo(a,u,f,s,h,_n),u=_n[1],f=_n[2],s=_n[3]),t.bezierCurveTo(l,u,c,f,o,s)))},e.prototype.pointAt=function(t){return n6(this.shape,t,!1)},e.prototype.tangentAt=function(t){var n=n6(this.shape,t,!0);return ic(n,n)},e}(Qe);Wh.prototype.type="bezier-curve";var yte=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),c0=function(r){Y(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new yte},e.prototype.buildPath=function(t,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),f=Math.sin(s);t.moveTo(c*o+i,f*o+a),t.arc(i,a,o,s,l,!u)},e}(Qe);c0.prototype.type="arc";var ab=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,n=this.shapeChanged(),i=0;i<t.length;i++)n=n||t[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(n[0],n[1],t[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(t,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],n=0;n<t.length;n++)t[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Qe.prototype.getBoundingRect.call(this)},e}(Qe),i6=function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r}(),Zh=function(r){Y(e,r);function e(t,n,i,a,o,s){var l=r.call(this,o)||this;return l.x=t??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e}(i6),a6=function(r){Y(e,r);function e(t,n,i,a,o){var s=r.call(this,a)||this;return s.x=t??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return e}(i6),Al=[0,0],Cl=[0,0],f0=new Ze,h0=new Ze,v0=function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Ze;for(var n=0;n<2;n++)this._axes[n]=new Ze;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),t)for(var u=0;u<4;u++)n[u].transform(t);Ze.sub(i[0],n[1],n[0]),Ze.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},r.prototype.intersect=function(e,t){var n=!0,i=!t;return f0.set(1/0,1/0),h0.set(0,0),!this._intersectCheckOneSide(this,e,f0,h0,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,f0,h0,i,-1)&&(n=!1,i)||i||Ze.copy(t,n?f0:h0),n},r.prototype._intersectCheckOneSide=function(e,t,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,Al),this._getProjMinMaxOnAxis(l,t._corners,Cl),Al[1]<Cl[0]||Al[0]>Cl[1]){if(s=!1,a)return s;var c=Math.abs(Cl[0]-Al[1]),f=Math.abs(Al[0]-Cl[1]);Math.min(c,f)>i.len()&&(c<f?Ze.scale(i,u,-c*o):Ze.scale(i,u,f*o))}else if(n){var c=Math.abs(Cl[0]-Al[1]),f=Math.abs(Al[0]-Cl[1]);Math.min(c,f)<n.len()&&(c<f?Ze.scale(n,u,c*o):Ze.scale(n,u,-f*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var i=this._axes[e],a=this._origin,o=t[0].dot(i)+a[e],s=o,l=o,u=1;u<t.length;u++){var c=t[u].dot(i)+a[e];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},r}(),_te=[],wte=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,n){n?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,n){n=n||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var n=this._cursor;n<this._displayables.length;n++)t&&t(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)t&&t(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var n=this._displayables[t];n.parent=this,n.update(),n.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var n=this._temporaryDisplayables[t];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Ue(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(_te)),t.union(a)}this._rect=t}return this._rect},e.prototype.contain=function(t,n){var i=this.transformCoordToLocal(t,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,n))return!0}return!1},e}(Kn),o6=ot();function bc(r,e,t,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=Ve(n.duration,200),c=Ve(n.easing,"cubicOut"),f=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),f=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(f=a.delay)),Me(f)&&(f=f(t,i)),Me(u)&&(u=u(t));var h={duration:u||0,delay:f,easing:c};return h}else return null}function ob(r,e,t,n,i,a,o){var s=!1,l;Me(i)?(o=a,a=i,i=null):Le(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var c=bc(r,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var f=c.duration,h=c.delay,v=c.easing,d={duration:f,delay:h||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,d):e.animateTo(t,d)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),a&&a()}function ht(r,e,t,n,i,a){ob("update",r,e,t,n,i,a)}function Ft(r,e,t,n,i,a){ob("enter",r,e,t,n,i,a)}function xc(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function rs(r,e,t,n,i,a){xc(r)||ob("leave",r,e,t,n,i,a)}function s6(r,e,t,n){r.removeTextContent(),r.removeTextGuideLine(),rs(r,{style:{opacity:0}},e,t,n)}function Uh(r,e,t){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(i){i.isGroup||s6(i,e,t,n)}):s6(r,e,t,n)}function Ni(r){o6(r).oldStyle=r.style}function bte(r){return o6(r).oldStyle}var d0=Math.max,p0=Math.min,sb={};function xte(r){return Qe.extend(r)}var Ste=rte;function Tte(r,e){return Ste(r,e)}function Oi(r,e){sb[r]=e}function lb(r){if(sb.hasOwnProperty(r))return sb[r]}function g0(r,e,t,n){var i=$E(r,e);return t&&(n==="center"&&(t=u6(t,i.getBoundingRect())),c6(i,t)),i}function l6(r,e,t){var n=new Er({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(t==="center"){var a={width:i.width,height:i.height};n.setStyle(u6(e,a))}}});return n}function u6(r,e){var t=e.width/e.height,n=r.height*t,i;n<=r.width?i=r.height:(n=r.width,i=n/t);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var Qn=nte;function c6(r,e){if(r.applyTransform){var t=r.getBoundingRect(),n=t.calculateTransform(e);r.applyTransform(n)}}function Sc(r,e){return pE(r,r,{lineWidth:e}),r}function Ate(r){return gE(r.shape,r.shape,r.style),r}var m0=_l;function Dl(r,e){for(var t=wg([]);r&&r!==e;)Ua(t,r.getLocalTransform(),t),r=r.parent;return t}function Ri(r,e,t){return e&&!Zr(e)&&(e=qa.getLocalTransform(e)),t&&(e=oc([],e)),Nr([],r,e)}function y0(r,e,t){var n=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),a=[r==="left"?-n:r==="right"?n:0,r==="top"?-i:r==="bottom"?i:0];return a=Ri(a,e,t),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function f6(r){return!r.isGroup}function Cte(r){return r.shape!=null}function Yh(r,e,t){if(!r||!e)return;function n(o){var s={};return o.traverse(function(l){f6(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Cte(o)&&(s.shape=$({},o.shape)),s}var a=n(r);e.traverse(function(o){if(f6(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),ht(o,l,t,ze(o).dataIndex)}}})}function h6(r,e){return ne(r,function(t){var n=t[0];n=d0(n,e.x),n=p0(n,e.x+e.width);var i=t[1];return i=d0(i,e.y),i=p0(i,e.y+e.height),[n,i]})}function Dte(r,e){var t=d0(r.x,e.x),n=p0(r.x+r.width,e.x+e.width),i=d0(r.y,e.y),a=p0(r.y+r.height,e.y+e.height);if(n>=t&&a>=i)return{x:t,y:i,width:n-t,height:a-i}}function Xh(r,e,t){var n=$({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),Ne(i,t),new Er(n)):g0(r.replace("path://",""),n,t,"center")}function qh(r,e,t,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(v6(r,e,t,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function v6(r,e,t,n,i,a,o,s){var l=t-r,u=n-e,c=o-i,f=s-a,h=ub(c,f,l,u);if(Mte(h))return!1;var v=r-i,d=e-a,g=ub(v,d,l,u)/h;if(g<0||g>1)return!1;var p=ub(v,d,c,f)/h;return!(p<0||p>1)}function ub(r,e,t,n){return r*n-t*e}function Mte(r){return r<=1e-6&&r>=-1e-6}function Ml(r){var e=r.itemTooltipOption,t=r.componentModel,n=r.itemName,i=me(e)?{formatter:e}:e,a=t.mainType,o=t.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&N(nt(l),function(c){we(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=ze(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Ne({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function d6(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function ns(r,e){if(r)if(re(r))for(var t=0;t<r.length;t++)d6(r[t],e);else d6(r,e)}Oi("circle",to),Oi("ellipse",l0),Oi("sector",ln),Oi("ring",Gh),Oi("polygon",un),Oi("polyline",cn),Oi("rect",st),Oi("line",br),Oi("bezierCurve",Wh),Oi("arc",c0);const Il=Object.freeze(Object.defineProperty({__proto__:null,Arc:c0,BezierCurve:Wh,BoundingRect:Ue,Circle:to,CompoundPath:ab,Ellipse:l0,Group:Re,Image:Er,IncrementalDisplayable:wte,Line:br,LinearGradient:Zh,OrientedBoundingRect:v0,Path:Qe,Point:Ze,Polygon:un,Polyline:cn,RadialGradient:a6,Rect:st,Ring:Gh,Sector:ln,Text:ut,applyTransform:Ri,clipPointsByRect:h6,clipRectByRect:Dte,createIcon:Xh,extendPath:Tte,extendShape:xte,getShapeClass:lb,getTransform:Dl,groupTransition:Yh,initProps:Ft,isElementRemoved:xc,lineLineIntersect:v6,linePolygonIntersect:qh,makeImage:l6,makePath:g0,mergePath:Qn,registerShape:Oi,removeElement:rs,removeElementWithFadeOut:Uh,resizePath:c6,setTooltipConfig:Ml,subPixelOptimize:m0,subPixelOptimizeLine:Sc,subPixelOptimizeRect:Ate,transformDirection:y0,traverseElements:ns,updateProps:ht},Symbol.toStringTag,{value:"Module"}));var _0={};function p6(r,e){for(var t=0;t<sn.length;t++){var n=sn[t],i=e[n],a=r.ensureState(n);a.style=a.style||{},a.style.text=i}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function cb(r,e,t){var n=r.labelFetcher,i=r.labelDataIndex,a=r.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=Me(r.defaultText)?r.defaultText(i,r,t):r.defaultText);for(var l={normal:s},u=0;u<sn.length;u++){var c=sn[u],f=e[c];l[c]=Ve(n?n.getFormattedLabel(i,c,null,a,f&&f.get("formatter")):null,s)}return l}function Vr(r,e,t,n){t=t||_0;for(var i=r instanceof ut,a=!1,o=0;o<Rh.length;o++){var s=e[Rh[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?r:r.getTextContent();if(a){i||(l||(l=new ut,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=cb(t,e),c=e.normal,f=!!c.getShallow("show"),h=Ot(c,n&&n.normal,t,!1,!i);h.text=u.normal,i||r.setTextConfig(w0(c,t,!1));for(var o=0;o<sn.length;o++){var v=sn[o],s=e[v];if(s){var d=l.ensureState(v),g=!!Ve(s.getShallow("show"),f);if(g!==f&&(d.ignore=!g),d.style=Ot(s,n&&n[v],t,!0,!i),d.style.text=u[v],!i){var p=r.ensureState(v);p.textConfig=w0(s,t,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!f,l.useStyle(h),l.dirty(),t.enableTextSetter&&(Tc(l).setLabelText=function(m){var y=cb(t,e,m);p6(l,y)})}else l&&(l.ignore=!0);r.dirty()}function xr(r,e){e=e||"label";for(var t={normal:r.getModel(e)},n=0;n<sn.length;n++){var i=sn[n];t[i]=r.getModel([i,e])}return t}function Ot(r,e,t,n,i){var a={};return Ite(a,r,t,n,i),e&&$(a,e),a}function w0(r,e,t){e=e||{};var n={},i,a=r.getShallow("rotate"),o=Ve(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return i=r.getShallow("position")||(t?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",n}function Ite(r,e,t,n,i){t=t||_0;var a=e.ecModel,o=a&&a.option.textStyle,s=Ete(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=e.getModel(["rich",u]);_6(l[u]={},c,o,t,n,i,!1,!0)}}l&&(r.rich=l);var f=e.get("overflow");f&&(r.overflow=f);var h=e.get("minMargin");h!=null&&(r.margin=h),_6(r,e,o,t,n,i,!0,!1)}function Ete(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||_0).rich;if(t){e=e||{};for(var n=nt(t),i=0;i<n.length;i++){var a=n[i];e[a]=1}}r=r.parentModel}return e}var g6=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],m6=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],y6=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function _6(r,e,t,n,i,a,o,s){t=!i&&t||_0;var l=n&&n.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),f=Ve(e.getShallow("opacity"),t.opacity);(u==="inherit"||u==="auto")&&(process.env.NODE_ENV!=="production"&&u==="auto"&&cr("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&cr("color: 'auto'","color: 'inherit'"),l?c=l:c=null),a||(u=u||t.color,c=c||t.textBorderColor),u!=null&&(r.fill=u),c!=null&&(r.stroke=c);var h=Ve(e.getShallow("textBorderWidth"),t.textBorderWidth);h!=null&&(r.lineWidth=h);var v=Ve(e.getShallow("textBorderType"),t.textBorderType);v!=null&&(r.lineDash=v);var d=Ve(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!i&&f==null&&!s&&(f=n&&n.defaultOpacity),f!=null&&(r.opacity=f),!i&&!a&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var g=0;g<g6.length;g++){var p=g6[g],m=Ve(e.getShallow(p),t[p]);m!=null&&(r[p]=m)}for(var g=0;g<m6.length;g++){var p=m6[g],m=e.getShallow(p);m!=null&&(r[p]=m)}if(r.verticalAlign==null){var y=e.getShallow("baseline");y!=null&&(r.verticalAlign=y)}if(!o||!n.disableBox){for(var g=0;g<y6.length;g++){var p=y6[g],m=e.getShallow(p);m!=null&&(r[p]=m)}var _=e.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&r.backgroundColor==="auto"&&cr("backgroundColor: 'auto'","backgroundColor: 'inherit'"),r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&r.borderColor==="auto"&&cr("borderColor: 'auto'","borderColor: 'inherit'"),r.borderColor=l)}}function fb(r,e){var t=e&&e.getModel("textStyle");return Mi([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var Tc=ot();function w6(r,e,t,n){if(r){var i=Tc(r);i.prevValue=i.value,i.value=t;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=e)}}function b6(r,e,t,n,i){var a=Tc(r);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=Ve(a.interpolatedValue,a.prevValue),l=a.value;function u(c){var f=eE(t,a.precision,s,l,c);a.interpolatedValue=c===1?null:f;var h=cb({labelDataIndex:e,labelFetcher:i,defaultText:o?o(f):f+""},a.statesModels,f);p6(r,h)}r.percent=0,(a.prevValue==null?Ft:ht)(r,{percent:1},n,e,null,u)}var Lte=["textStyle","color"],hb=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],vb=new ut,kte=function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(Lte):null)},r.prototype.getFont=function(){return fb({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<hb.length;n++)t[hb[n]]=this.getShallow(hb[n]);return vb.useStyle(t),vb.update(),vb.getBoundingRect()},r}(),x6=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Pte=fl(x6),Nte=function(){function r(){}return r.prototype.getLineStyle=function(e){return Pte(this,e)},r}(),S6=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Ote=fl(S6),Rte=function(){function r(){}return r.prototype.getItemStyle=function(e,t){return Ote(this,e,t)},r}(),bt=function(){function r(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return r.prototype.init=function(e,t,n){},r.prototype.mergeOption=function(e,t){Ge(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var n=this.option,i=n==null?n:n[e];if(i==null&&!t){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},r.prototype.getModel=function(e,t){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new r(a,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(Oe(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!Je.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},r}();Cw(bt),U$(bt),lr(bt,Nte),lr(bt,Rte),lr(bt,K$),lr(bt,kte);var Vte=Math.round(Math.random()*10);function Ac(r){return[r||"",Vte++].join("_")}function zte(r){var e={};r.registerSubTypeDefaulter=function(t,n){var i=ca(t);e[i.main]=n},r.determineSubType=function(t,n){var i=n.type;if(!i){var a=ca(t).main;r.hasSubTypes(t)&&e[a]&&(i=e[a](n))}return i}}function Bte(r,e){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=t(o),c=u.graph,f=u.noEntryList,h={};for(N(a,function(y){h[y]=!0});f.length;){var v=f.pop(),d=c[v],g=!!h[v];g&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),N(d.successor,g?m:p)}N(h,function(){var y="";throw process.env.NODE_ENV!=="production"&&(y=an("Circular dependency may exists: ",h,a,o)),new Error(y)});function p(y){c[y].entryCount--,c[y].entryCount===0&&f.push(y)}function m(y){h[y]=!0,p(y)}};function t(a){var o={},s=[];return N(a,function(l){var u=n(o,l),c=u.originalDeps=e(l),f=i(c,a);u.entryCount=f.length,u.entryCount===0&&s.push(l),N(f,function(h){qe(u.predecessor,h)<0&&u.predecessor.push(h);var v=n(o,h);qe(v.successor,h)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return N(a,function(l){qe(o,l)>=0&&s.push(l)}),s}}function is(r,e){return Ge(Ge({},r,!0),e,!0)}const Fte={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Hte={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var b0="ZH",db="EN",Cc=db,x0={},pb={},T6=Je.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Cc).toUpperCase();return r.indexOf(b0)>-1?b0:Cc}():Cc;function A6(r,e){r=r.toUpperCase(),pb[r]=new bt(e),x0[r]=e}function Gte(r){if(me(r)){var e=x0[r.toUpperCase()]||{};return r===b0||r===db?Oe(e):Ge(Oe(e),Oe(x0[Cc]),!1)}else return Ge(Oe(r),Oe(x0[Cc]),!1)}function gb(r){return pb[r]}function Wte(){return pb[Cc]}A6(db,Fte),A6(b0,Hte);var mb=1e3,yb=mb*60,jh=yb*60,$n=jh*24,C6=$n*365,Kh={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},S0="{yyyy}-{MM}-{dd}",D6={year:"{yyyy}",month:"{yyyy}-{MM}",day:S0,hour:S0+" "+Kh.hour,minute:S0+" "+Kh.minute,second:S0+" "+Kh.second,millisecond:Kh.none},_b=["year","month","day","hour","minute","second","millisecond"],M6=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function as(r,e){return r+="","0000".substr(0,e-r.length)+r}function Dc(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function Zte(r){return r===Dc(r)}function Ute(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function T0(r,e,t,n){var i=ua(r),a=i[wb(t)](),o=i[Mc(t)]()+1,s=Math.floor((o-1)/3)+1,l=i[A0(t)](),u=i["get"+(t?"UTC":"")+"Day"](),c=i[Jh(t)](),f=(c-1)%12+1,h=i[C0(t)](),v=i[D0(t)](),d=i[M0(t)](),g=c>=12?"pm":"am",p=g.toUpperCase(),m=n instanceof bt?n:gb(n||T6)||Wte(),y=m.getModel("time"),_=y.get("month"),w=y.get("monthAbbr"),b=y.get("dayOfWeek"),x=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,as(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,as(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,as(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,as(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,as(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,as(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,as(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,as(d,3)).replace(/{S}/g,d+"")}function Yte(r,e,t,n,i){var a=null;if(me(t))a=t;else if(Me(t))a=t(r.value,e,{level:r.level});else{var o=$({},Kh);if(r.level>0)for(var s=0;s<_b.length;++s)o[_b[s]]="{primary|"+o[_b[s]]+"}";var l=t?t.inherit===!1?t:Ne(t,o):o,u=I6(r.value,i);if(l[u])a=l[u];else if(l.inherit){for(var c=M6.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(re(a)){var f=r.level==null?0:r.level>=0?r.level:a.length+r.level;f=Math.min(f,a.length-1),a=a[f]}}return T0(new Date(r.value),a,i,n)}function I6(r,e){var t=ua(r),n=t[Mc(e)]()+1,i=t[A0(e)](),a=t[Jh(e)](),o=t[C0(e)](),s=t[D0(e)](),l=t[M0(e)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&a===0,v=h&&i===1,d=v&&n===1;return d?"year":v?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function E6(r,e,t){var n=ct(r)?ua(r):r;switch(e=e||I6(r,t),e){case"year":return n[wb(t)]();case"half-year":return n[Mc(t)]()>=6?1:0;case"quarter":return Math.floor((n[Mc(t)]()+1)/4);case"month":return n[Mc(t)]();case"day":return n[A0(t)]();case"half-day":return n[Jh(t)]()/24;case"hour":return n[Jh(t)]();case"minute":return n[C0(t)]();case"second":return n[D0(t)]();case"millisecond":return n[M0(t)]()}}function wb(r){return r?"getUTCFullYear":"getFullYear"}function Mc(r){return r?"getUTCMonth":"getMonth"}function A0(r){return r?"getUTCDate":"getDate"}function Jh(r){return r?"getUTCHours":"getHours"}function C0(r){return r?"getUTCMinutes":"getMinutes"}function D0(r){return r?"getUTCSeconds":"getSeconds"}function M0(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Xte(r){return r?"setUTCFullYear":"setFullYear"}function L6(r){return r?"setUTCMonth":"setMonth"}function k6(r){return r?"setUTCDate":"setDate"}function P6(r){return r?"setUTCHours":"setHours"}function N6(r){return r?"setUTCMinutes":"setMinutes"}function O6(r){return r?"setUTCSeconds":"setSeconds"}function R6(r){return r?"setUTCMilliseconds":"setMilliseconds"}function V6(r){if(!xw(r))return me(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function z6(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Ic=T2;function bb(r,e,t){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Mi(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?ua(r):r;if(isNaN(+l)){if(s)return"-"}else return T0(l,n,t)}if(e==="ordinal")return vg(r)?i(r):ct(r)&&a(r)?r+"":"-";var u=ja(r);return a(u)?V6(u):vg(r)?i(r):typeof r=="boolean"?r+"":"-"}var B6=["a","b","c","d","e","f","g"],xb=function(r,e){return"{"+r+(e??"")+"}"};function F6(r,e,t){re(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=B6[a];r=r.replace(xb(o),xb(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];r=r.replace(xb(B6[l],s),t?nn(u):u)}return r}function qte(r,e,t){return N(e,function(n,i){r=r.replace("{"+i+"}",n)}),r}function jte(r,e){var t=me(r)?{color:r,extraCssText:e}:r||{},n=t.color,i=t.type;e=t.extraCssText;var a=t.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+nn(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+nn(n)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function El(r,e){return e=e||"transparent",me(r)?r:Le(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function I0(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var E0=N,H6=["left","right","top","bottom","width","height"],Ll=[["width","left","right"],["height","top","bottom"]];function Sb(r,e,t,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),f=e.childAt(u+1),h=f&&f.getBoundingRect(),v,d;if(r==="horizontal"){var g=c.width+(h?-h.x+c.x:0);v=a+g,v>n||l.newline?(a=0,v=g,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var p=c.height+(h?-h.y+c.y:0);d=o+p,d>i||l.newline?(a+=s+t,o=0,d=p,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=v+t:o=d+t)})}var kl=Sb;He(Sb,"vertical"),He(Sb,"horizontal");function Kte(r,e,t){var n=e.width,i=e.height,a=de(r.left,n),o=de(r.top,i),s=de(r.right,n),l=de(r.bottom,i);return(isNaN(a)||isNaN(parseFloat(r.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=i),t=Ic(t||0),{width:Math.max(s-a-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function mr(r,e,t){t=Ic(t||0);var n=e.width,i=e.height,a=de(r.left,n),o=de(r.top,i),s=de(r.right,n),l=de(r.bottom,i),u=de(r.width,n),c=de(r.height,i),f=t[2]+t[0],h=t[1]+t[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(c)&&(c=i-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-c-f),r.left||r.right){case"center":a=n/2-u/2-t[3];break;case"right":a=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-c/2-t[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var d=new Ue(a+t[3],o+t[0],u,c);return d.margin=t,d}function L0(r,e,t,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||r,a.x=r.x,a.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new Ue(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=mr(Ne({width:u.width,height:u.height},e),t,n),h=o?f.x-u.x:0,v=s?f.y-u.y:0;return l==="raw"?(a.x=h,a.y=v):(a.x+=h,a.y+=v),a===r&&r.markRedraw(),!0}function Jte(r,e){return r[Ll[e][0]]!=null||r[Ll[e][1]]!=null&&r[Ll[e][2]]!=null}function Qh(r){var e=r.layoutMode||r.constructor.layoutMode;return Le(e)?e:e?{type:e}:null}function os(r,e,t){var n=t&&t.ignoreSize;!re(n)&&(n=[n,n]);var i=o(Ll[0],0),a=o(Ll[1],1);u(Ll[0],r,i),u(Ll[1],r,a);function o(c,f){var h={},v=0,d={},g=0,p=2;if(E0(c,function(_){d[_]=r[_]}),E0(c,function(_){s(e,_)&&(h[_]=d[_]=e[_]),l(h,_)&&v++,l(d,_)&&g++}),n[f])return l(e,c[1])?d[c[2]]=null:l(e,c[2])&&(d[c[1]]=null),d;if(g===p||!v)return d;if(v>=p)return h;for(var m=0;m<c.length;m++){var y=c[m];if(!s(h,y)&&s(r,y)){h[y]=r[y];break}}return h}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,h){E0(c,function(v){f[v]=h[v]})}}function Ec(r){return G6({},r)}function G6(r,e){return e&&r&&E0(H6,function(t){e.hasOwnProperty(t)&&(r[t]=e[t])}),r}var Qte=ot(),$e=function(r){Y(e,r);function e(t,n,i){var a=r.call(this,t,n,i)||this;return a.uid=Ac("ec_cpt_model"),a}return e.prototype.init=function(t,n,i){this.mergeDefaultAndTheme(t,i)},e.prototype.mergeDefaultAndTheme=function(t,n){var i=Qh(this),a=i?Ec(t):{},o=n.getTheme();Ge(t,o.get(this.mainType)),Ge(t,this.getDefaultOption()),i&&os(t,a,i)},e.prototype.mergeOption=function(t,n){Ge(this.option,t,!0);var i=Qh(this);i&&os(this.option,t,i)},e.prototype.optionUpdated=function(t,n){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!G$(t))return t.defaultOption;var n=Qte(this);if(!n.defaultOption){for(var i=[],a=t;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Ge(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(t,n){var i=t+"Index",a=t+"Id";return kh(this.ecModel,t,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(bt);rE($e,bt),Xg($e),zte($e),Bte($e,$te);function $te(r){var e=[];return N($e.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=ne(e,function(t){return ca(t).main}),r!=="dataset"&&qe(e,"dataset")<=0&&e.unshift("dataset"),e}var W6="";typeof navigator<"u"&&(W6=navigator.platform||"");var Lc="rgba(0, 0, 0, 0.2)";const ere={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Lc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Lc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Lc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Lc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Lc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Lc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:W6.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Tb=Se(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ei="original",Yr="arrayRows",ti="objectRows",ga="keyedColumns",ro="typedArray",Z6="unknown",ma="column",kc="row",zr={Must:1,Might:2,Not:3},U6=ot();function tre(r){U6(r).datasetMap=Se()}function Y6(r,e,t){var n={},i=Cb(e);if(!i||!r)return n;var a=[],o=[],s=e.ecModel,l=U6(s).datasetMap,u=i.uid+"_"+t.seriesLayoutBy,c,f;r=r.slice(),N(r,function(g,p){var m=Le(g)?g:r[p]={name:g};m.type==="ordinal"&&c==null&&(c=p,f=d(m)),n[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});N(r,function(g,p){var m=g.name,y=d(g);if(c==null){var _=h.valueWayDim;v(n[m],_,y),v(o,_,y),h.valueWayDim+=y}else if(c===p)v(n[m],0,y),v(a,0,y);else{var _=h.categoryWayDim;v(n[m],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(g,p,m){for(var y=0;y<m;y++)g.push(p+y)}function d(g){var p=g.dimsDef;return p?p.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function Ab(r,e,t){var n={},i=Cb(r);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===ti||a===ga)&&N(o,function(c,f){(Le(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},h=[],v=0,d=Math.min(5,t);v<d;v++){var g=q6(e.data,a,e.seriesLayoutBy,o,e.startIndex,v);h.push(g);var p=g===zr.Not;if(p&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v||!p&&h[c.n]===zr.Not)&&(c.n=v),m(c)&&h[c.n]!==zr.Not)return c;p||(g===zr.Might&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v)&&(f.n=v))}function m(y){return y.v!=null&&y.n!=null}return m(c)?c:m(f)?f:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function Cb(r){var e=r.get("data",!0);if(!e)return kh(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},fr).models[0]}function rre(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:kh(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},fr).models}function X6(r,e){return q6(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function q6(r,e,t,n,i,a){var o,s=5;if(tn(r))return zr.Not;var l,u;if(n){var c=n[a];Le(c)?(l=c.name,u=c.type):me(c)&&(l=c)}if(u!=null)return u==="ordinal"?zr.Must:zr.Not;if(e===Yr){var f=r;if(t===kc){for(var h=f[a],v=0;v<(h||[]).length&&v<s;v++)if((o=w(h[i+v]))!=null)return o}else for(var v=0;v<f.length&&v<s;v++){var d=f[i+v];if(d&&(o=w(d[a]))!=null)return o}}else if(e===ti){var g=r;if(!l)return zr.Not;for(var v=0;v<g.length&&v<s;v++){var p=g[v];if(p&&(o=w(p[l]))!=null)return o}}else if(e===ga){var m=r;if(!l)return zr.Not;var h=m[l];if(!h||tn(h))return zr.Not;for(var v=0;v<h.length&&v<s;v++)if((o=w(h[v]))!=null)return o}else if(e===ei)for(var y=r,v=0;v<y.length&&v<s;v++){var p=y[v],_=vc(p);if(!re(_))return zr.Not;if((o=w(_[a]))!=null)return o}function w(b){var x=me(b);if(b!=null&&Number.isFinite(Number(b))&&b!=="")return x?zr.Might:zr.Not;if(x&&b!=="-")return zr.Must}return zr.Not}var Db=Se();function nre(r,e){ke(Db.get(r)==null&&e),Db.set(r,e)}function ire(r,e,t){var n=Db.get(e);if(!n)return t;var i=n(r);if(!i)return t;if(process.env.NODE_ENV!=="production")for(var a=0;a<i.length;a++)ke(dc(i[a]));return t.concat(i)}var j6=ot(),are=ot(),Mb=function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,n){var i=St(this.get("color",!0)),a=this.get("colorLayer",!0);return K6(this,j6,i,a,e,t,n)},r.prototype.clearColorPalette=function(){sre(this,j6)},r}();function Ib(r,e,t,n){var i=St(r.get(["aria","decal","decals"]));return K6(r,are,i,null,e,t,n)}function ore(r,e){for(var t=r.length,n=0;n<t;n++)if(r[n].length>e)return r[n];return r[t-1]}function K6(r,e,t,n,i,a,o){a=a||r;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?t:ore(n,o);if(c=c||t,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function sre(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var k0,$h,J6,Eb="\0_ec_inner",Q6=1,lre={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},ure={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},P0={};function cre(r){N(r,function(e,t){if(!$e.hasClass(t)){var n=lre[t];n&&!P0[n]&&(Or("Component "+t+` is used but not imported.
|
|
39
|
-
import { `+n+` } from 'echarts/components';
|
|
40
|
-
echarts.use([`+n+"]);"),P0[n]=!0)}})}var Lb=function(r){Y(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,n,i,a,o,s){a=a||{},this.option=null,this._theme=new bt(a),this._locale=new bt(o),this._optionManager=s},e.prototype.setOption=function(t,n,i){process.env.NODE_ENV!=="production"&&(ke(t!=null,"option is null/undefined"),ke(t[Eb]!==Q6,"please use chart.getOption()"));var a=t3(n);this._optionManager.setOption(t,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(t,n){return this._resetOption(t,t3(n))},e.prototype._resetOption=function(t,n){var i=!1,a=this._optionManager;if(!t||t==="recreate"){var o=a.mountOption(t==="recreate");process.env.NODE_ENV!=="production"&&cre(o),!this.option||t==="recreate"?J6(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!t||t==="recreate"||t==="media"){var l=a.getMediaOption(this);l.length&&N(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Se(),u=n&&n.replaceMergeMainTypeMap;tre(this),N(t,function(f,h){f!=null&&($e.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?Oe(f):Ge(i[h],f,!0))}),u&&u.each(function(f,h){$e.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),$e.topologicalTravel(s,$e.getAllClassMainTypes(),c,this);function c(f){var h=ire(this,f,St(t[f])),v=a.get(f),d=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",g=jI(v,h,d);P$(g,f,$e),i[f]=null,a.set(f,null),o.set(f,0);var p=[],m=[],y=0,_,w;N(g,function(b,x){var S=b.existing,T=b.newOption;if(!T)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var C=f==="series",A=$e.getClass(f,b.keyInfo.subType,!C);if(!A){if(process.env.NODE_ENV!=="production"){var M=b.keyInfo.subType,k=ure[M];P0[M]||(P0[M]=!0,Or(k?"Series "+M+` is used but not imported.
|
|
41
|
-
import { `+k+` } from 'echarts/charts';
|
|
42
|
-
echarts.use([`+k+"]);":"Unknown series "+M))}return}if(f==="tooltip"){if(_){process.env.NODE_ENV!=="production"&&(w||(Xt("Currently only one tooltip component is allowed."),w=!0));return}_=!0}if(S&&S.constructor===A)S.name=b.keyInfo.name,S.mergeOption(T,this),S.optionUpdated(T,!1);else{var L=$({componentIndex:x},b.keyInfo);S=new A(T,this,this,L),$(S,L),b.brandNew&&(S.__requireNewView=!0),S.init(T,this,this),S.optionUpdated(null,!0)}}S?(p.push(S.option),m.push(S),y++):(p.push(void 0),m.push(void 0))},this),i[f]=p,a.set(f,m),o.set(f,y),f==="series"&&k0(this)}this._seriesIndices||k0(this)},e.prototype.getOption=function(){var t=Oe(this.option);return N(t,function(n,i){if($e.hasClass(i)){for(var a=St(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!dc(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,t[i]=a}}),delete t[Eb],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,n){var i=this._componentsMap.get(t);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(t){var n=t.mainType;if(!n)return[];var i=t.index,a=t.id,o=t.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],N(St(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=$6("id",a,s):o!=null?l=$6("name",o,s):l=pt(s,function(u){return!!u}),e3(l,t)},e.prototype.findComponents=function(t){var n=t.query,i=t.mainType,a=s(n),o=a?this.queryComponents(a):pt(this._componentsMap.get(i),function(u){return!!u});return l(e3(o,t));function s(u){var c=i+"Index",f=i+"Id",h=i+"Name";return u&&(u[c]!=null||u[f]!=null||u[h]!=null)?{mainType:i,index:u[c],id:u[f],name:u[h]}:null}function l(u){return t.filter?pt(u,t.filter):u}},e.prototype.eachComponent=function(t,n,i){var a=this._componentsMap;if(Me(t)){var o=n,s=t;a.each(function(f,h){for(var v=0;f&&v<f.length;v++){var d=f[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=me(t)?a.get(t):Le(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(i,c,c.componentIndex)}},e.prototype.getSeriesByName=function(t){var n=gr(t,null);return pt(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return pt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===t})},e.prototype.getSeries=function(){return pt(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,n){$h(this),N(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];t.call(n,a,i)},this)},e.prototype.eachRawSeries=function(t,n){N(this._componentsMap.get("series"),function(i){i&&t.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(t,n,i){$h(this),N(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===t&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(t,n,i){return N(this.getSeriesByType(t),n,i)},e.prototype.isSeriesFiltered=function(t){return $h(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,n){$h(this);var i=[];N(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];t.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=Se(i)},e.prototype.restoreData=function(t){k0(this);var n=this._componentsMap,i=[];n.each(function(a,o){$e.hasClass(o)&&i.push(o)}),$e.topologicalTravel(i,$e.getAllClassMainTypes(),function(a){N(n.get(a),function(o){o&&(a!=="series"||!fre(o,t))&&o.restoreData()})})},e.internalField=function(){k0=function(t){var n=t._seriesIndices=[];N(t._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),t._seriesIndicesMap=Se(n)},$h=function(t){if(process.env.NODE_ENV!=="production"&&!t._seriesIndices)throw new Error("Option should contains series.")},J6=function(t,n){t.option={},t.option[Eb]=Q6,t._componentsMap=Se({series:[]}),t._componentsCount=Se();var i=n.aria;Le(i)&&i.enabled==null&&(i.enabled=!0),hre(n,t._theme.option),Ge(n,ere,!1),t._mergeOption(n,null)}}(),e}(bt);function fre(r,e){if(e){var t=e.seriesIndex,n=e.seriesId,i=e.seriesName;return t!=null&&r.componentIndex!==t||n!=null&&r.id!==n||i!=null&&r.name!==i}}function hre(r,e){var t=r.color&&!r.colorLayer;N(e,function(n,i){i==="colorLayer"&&t||$e.hasClass(i)||(typeof n=="object"?r[i]=r[i]?Ge(r[i],n,!1):Oe(n):r[i]==null&&(r[i]=n))})}function $6(r,e,t){if(re(e)){var n=Se();return N(e,function(a){if(a!=null){var o=gr(a,null);o!=null&&n.set(a,!0)}}),pt(t,function(a){return a&&n.get(a[r])})}else{var i=gr(e,null);return pt(t,function(a){return a&&i!=null&&a[r]===i})}}function e3(r,e){return e.hasOwnProperty("subType")?pt(r,function(t){return t&&t.subType===e.subType}):r}function t3(r){var e=Se();return r&&N(St(r.replaceMerge),function(t){process.env.NODE_ENV!=="production"&&ke($e.hasClass(t),'"'+t+'" is not valid component main type in "replaceMerge"'),e.set(t,!0)}),{replaceMergeMainTypeMap:e}}lr(Lb,Mb);var vre=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],r3=function(){function r(e){N(vre,function(t){this[t]=ye(e[t],e)},this)}return r}(),kb={},Pc=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(e,t){var n=[];N(kb,function(i,a){var o=i.create(e,t);n=n.concat(o||[])}),this._coordinateSystems=n},r.prototype.update=function(e,t){N(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(e,t){kb[e]=t},r.get=function(e){return kb[e]},r}(),dre=/^(min|max)?(.+)$/,pre=function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,n){e&&(N(St(e.series),function(o){o&&o.data&&tn(o.data)&&pg(o.data)}),N(St(e.dataset),function(o){o&&o.source&&tn(o.source)&&pg(o.source)})),e=Oe(e);var i=this._optionBackup,a=gre(e,t,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],Oe(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(t=Oe(n[i.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)mre(i[l].query,t,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!_re(o,this._currentMediaIndices)&&(s=ne(o,function(c){return Oe(c===-1?a.option:i[c].option)})),this._currentMediaIndices=o,s},r}();function gre(r,e,t){var n=[],i,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,c=!!r.media,f=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((f||c)&&(r.options=r.media=null),a=r),c&&(re(u)?N(u,function(v){process.env.NODE_ENV!=="production"&&v&&!v.option&&Le(v.query)&&Le(v.query.option)&&Or("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),v&&v.option&&(v.query?n.push(v):i||(i=v))}):process.env.NODE_ENV!=="production"&&Or("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),h(a),N(l,function(v){return h(v)}),N(n,function(v){return h(v.option)});function h(v){N(e,function(d){d(v,t)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function mre(r,e,t){var n={width:e,height:t,aspectratio:e/t},i=!0;return N(r,function(a,o){var s=o.match(dre);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();yre(n[u],a,l)||(i=!1)}}),i}function yre(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function _re(r,e){return r.join(",")===e.join(",")}var ri=N,ev=Le,n3=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Pb(r){var e=r&&r.itemStyle;if(e)for(var t=0,n=n3.length;t<n;t++){var i=n3[t],a=e.normal,o=e.emphasis;a&&a[i]&&(process.env.NODE_ENV!=="production"&&cr("itemStyle.normal."+i,i),r[i]=r[i]||{},r[i].normal?Ge(r[i].normal,a[i]):r[i].normal=a[i],a[i]=null),o&&o[i]&&(process.env.NODE_ENV!=="production"&&cr("itemStyle.emphasis."+i,"emphasis."+i),r[i]=r[i]||{},r[i].emphasis?Ge(r[i].emphasis,o[i]):r[i].emphasis=o[i],o[i]=null)}}function Xr(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var n=r[e].normal,i=r[e].emphasis;n&&(process.env.NODE_ENV!=="production"&&ki("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),t?(r[e].normal=r[e].emphasis=null,Ne(r[e],n)):r[e]=n),i&&(process.env.NODE_ENV!=="production"&&ki(e+".emphasis has been changed to emphasis."+e+" since 4.0"),r.emphasis=r.emphasis||{},r.emphasis[e]=i,i.focus&&(r.emphasis.focus=i.focus),i.blurScope&&(r.emphasis.blurScope=i.blurScope))}}function tv(r){Xr(r,"itemStyle"),Xr(r,"lineStyle"),Xr(r,"areaStyle"),Xr(r,"label"),Xr(r,"labelLine"),Xr(r,"upperLabel"),Xr(r,"edgeLabel")}function hr(r,e){var t=ev(r)&&r[e],n=ev(t)&&t.textStyle;if(n){process.env.NODE_ENV!=="production"&&ki("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var i=0,a=qI.length;i<a;i++){var o=qI[i];n.hasOwnProperty(o)&&(t[o]=n[o])}}}function ni(r){r&&(tv(r),hr(r,"label"),r.emphasis&&hr(r.emphasis,"label"))}function wre(r){if(ev(r)){Pb(r),tv(r),hr(r,"label"),hr(r,"upperLabel"),hr(r,"edgeLabel"),r.emphasis&&(hr(r.emphasis,"label"),hr(r.emphasis,"upperLabel"),hr(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(Pb(e),ni(e));var t=r.markLine;t&&(Pb(t),ni(t));var n=r.markArea;n&&ni(n);var i=r.data;if(r.type==="graph"){i=i||r.nodes;var a=r.links||r.edges;if(a&&!tn(a))for(var o=0;o<a.length;o++)ni(a[o]);N(r.categories,function(u){tv(u)})}if(i&&!tn(i))for(var o=0;o<i.length;o++)ni(i[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)ni(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)re(l[o])?(ni(l[o][0]),ni(l[o][1])):ni(l[o]);r.type==="gauge"?(hr(r,"axisLabel"),hr(r,"title"),hr(r,"detail")):r.type==="treemap"?(Xr(r.breadcrumb,"itemStyle"),N(r.levels,function(u){tv(u)})):r.type==="tree"&&tv(r.leaves)}}function no(r){return re(r)?r:r?[r]:[]}function i3(r){return(re(r)?r[0]:r)||{}}function bre(r,e){ri(no(r.series),function(n){ev(n)&&wre(n)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),ri(t,function(n){ri(no(r[n]),function(i){i&&(hr(i,"axisLabel"),hr(i.axisPointer,"label"))})}),ri(no(r.parallel),function(n){var i=n&&n.parallelAxisDefault;hr(i,"axisLabel"),hr(i&&i.axisPointer,"label")}),ri(no(r.calendar),function(n){Xr(n,"itemStyle"),hr(n,"dayLabel"),hr(n,"monthLabel"),hr(n,"yearLabel")}),ri(no(r.radar),function(n){hr(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,process.env.NODE_ENV!=="production"&&ki("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,process.env.NODE_ENV!=="production"&&ki("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&ri(n.indicator,function(i){i.text&&cr("text","name","radar.indicator")})}),ri(no(r.geo),function(n){ev(n)&&(ni(n),ri(no(n.regions),function(i){ni(i)}))}),ri(no(r.timeline),function(n){ni(n),Xr(n,"label"),Xr(n,"itemStyle"),Xr(n,"controlStyle",!0);var i=n.data;re(i)&&N(i,function(a){Le(a)&&(Xr(a,"label"),Xr(a,"itemStyle"))})}),ri(no(r.toolbox),function(n){Xr(n,"iconStyle"),ri(n.feature,function(i){Xr(i,"iconStyle")})}),hr(i3(r.axisPointer),"label"),hr(i3(r.tooltip).axisPointer,"label")}function xre(r,e){for(var t=e.split(","),n=r,i=0;i<t.length&&(n=n&&n[t[i]],n!=null);i++);return n}function Sre(r,e,t,n){for(var i=e.split(","),a=r,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=t)}function a3(r){r&&N(Tre,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var Tre=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Are=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Nb=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function rv(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<Nb.length;t++){var n=Nb[t][1],i=Nb[t][0];e[n]!=null&&(e[i]=e[n],process.env.NODE_ENV!=="production"&&cr(n,i))}}function o3(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&cr("label.margin","label.edgeDistance","pie"),r.edgeDistance=r.margin)}function s3(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay,process.env.NODE_ENV!=="production"&&cr("downplay","blur","sunburst"))}function Cre(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&cr("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),r.emphasis.focus="adjacency"))}function l3(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&l3(r[t].children,e)}function u3(r,e){bre(r,e),r.series=St(r.series),N(r.series,function(t){if(Le(t)){var n=t.type;if(n==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow,process.env.NODE_ENV!=="production"&&cr("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise,process.env.NODE_ENV!=="production"&&cr("clockWise","clockwise")),o3(t.label);var i=t.data;if(i&&!tn(i))for(var a=0;a<i.length;a++)o3(i[a]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&cr("hoverOffset","emphasis.scaleSize"),t.emphasis.scaleSize=t.hoverOffset))}else if(n==="gauge"){var o=xre(t,"pointer.color");o!=null&&Sre(t,"itemStyle.color",o)}else if(n==="bar"){rv(t),rv(t.backgroundStyle),rv(t.emphasis);var i=t.data;if(i&&!tn(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(rv(i[a]),rv(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s,process.env.NODE_ENV!=="production"&&cr("highlightPolicy","emphasis.focus","sunburst"))),s3(t),l3(t.data,s3)}else n==="graph"||n==="sankey"?Cre(t):n==="map"&&(t.mapType&&!t.map&&(process.env.NODE_ENV!=="production"&&cr("mapType","map","map"),t.map=t.mapType),t.mapLocation&&(process.env.NODE_ENV!=="production"&&ki("`mapLocation` is not used anymore."),Ne(t,t.mapLocation)));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&cr("hoverAnimation","emphasis.scale"),t.emphasis.scale=t.hoverAnimation)),a3(t)}}),r.dataRange&&(r.visualMap=r.dataRange),N(Are,function(t){var n=r[t];n&&(re(n)||(n=[n]),N(n,function(i){a3(i)}))})}function Dre(r){var e=Se();r.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=t.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(Mre)}function Mre(r){N(r,function(e,t){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,c,f){var h=o.get(e.stackedDimension,f);if(isNaN(h))return i;var v,d;s?d=o.getRawIndex(f):v=o.get(e.stackedByDimension,f);for(var g=NaN,p=t-1;p>=0;p--){var m=r[p];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=_$(h,y),g=y;break}}}return n[0]=h,n[1]=g,n})})}var N0=function(){function r(e){this.data=e.data||(e.sourceFormat===ga?{}:[]),this.sourceFormat=e.sourceFormat||Z6,this.seriesLayoutBy=e.seriesLayoutBy||ma,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var i=t[n];i.type==null&&X6(this,n)===zr.Must&&(i.type="ordinal")}}return r}();function Ob(r){return r instanceof N0}function Rb(r,e,t){t=t||c3(r);var n=e.seriesLayoutBy,i=Ere(r,t,n,e.sourceHeader,e.dimensions),a=new N0({data:r,sourceFormat:t,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Oe(e)});return a}function Vb(r){return new N0({data:r,sourceFormat:tn(r)?ro:ei})}function Ire(r){return new N0({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:Oe(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function c3(r){var e=Z6;if(tn(r))e=ro;else if(re(r)){r.length===0&&(e=Yr);for(var t=0,n=r.length;t<n;t++){var i=r[t];if(i!=null){if(re(i)||tn(i)){e=Yr;break}else if(Le(i)){e=ti;break}}}}else if(Le(r)){for(var a in r)if(we(r,a)&&Zr(r[a])){e=ga;break}}return e}function Ere(r,e,t,n,i){var a,o;if(!r)return{dimensionsDefine:f3(i),startIndex:o,dimensionsDetectedCount:a};if(e===Yr){var s=r;n==="auto"||n==null?h3(function(u){u!=null&&u!=="-"&&(me(u)?o==null&&(o=1):o=0)},t,s,10):o=ct(n)?n:n?1:0,!i&&o===1&&(i=[],h3(function(u,c){i[c]=u!=null?u+"":""},t,s,1/0)),a=i?i.length:t===kc?s.length:s[0]?s[0].length:null}else if(e===ti)i||(i=Lre(r));else if(e===ga)i||(i=[],N(r,function(u,c){i.push(c)}));else if(e===ei){var l=vc(r[0]);a=re(l)&&l.length||1}else e===ro&&process.env.NODE_ENV!=="production"&&ke(!!i,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:f3(i),dimensionsDetectedCount:a}}function Lre(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return nt(t)}function f3(r){if(r){var e=Se();return ne(r,function(t,n){t=Le(t)?t:{name:t};var i={name:t.name,displayName:t.displayName,type:t.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function h3(r,e,t,n){if(e===kc)for(var i=0;i<t.length&&i<n;i++)r(t[i]?t[i][0]:null,i);else for(var a=t[0]||[],i=0;i<a.length&&i<n;i++)r(a[i],i)}function v3(r){var e=r.sourceFormat;return e===ti||e===ga}var Pl,Nl,Ol,d3,p3,g3=function(){function r(e,t){var n=Ob(e)?e:Vb(e);this._source=n;var i=this._data=n.data;if(n.sourceFormat===ro){if(process.env.NODE_ENV!=="production"&&t==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=t,this._data=i}p3(this,i,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=function(){var e=r.prototype;e.pure=!1,e.persistent=!0}(),r.internalField=function(){var e;p3=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,h=l.dimensionsDefine,v=d3[Bb(u,c)];if(process.env.NODE_ENV!=="production"&&ke(v,"Invalide sourceFormat: "+u),$(o,v),u===ro)o.getItem=t,o.count=i,o.fillStorage=n;else{var d=y3(u,c);o.getItem=ye(d,null,s,f,h);var g=w3(u,c);o.count=ye(g,null,s,f,h)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},n=function(o,s,l,u){for(var c=this._data,f=this._dimSize,h=0;h<f;h++){for(var v=u[h],d=v[0]==null?1/0:v[0],g=v[1]==null?-1/0:v[1],p=s-o,m=l[h],y=0;y<p;y++){var _=c[y*f+h];m[o+y]=_,_<d&&(d=_),_>g&&(g=_)}v[0]=d,v[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};d3=(e={},e[Yr+"_"+ma]={pure:!0,appendData:a},e[Yr+"_"+kc]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[ti]={pure:!0,appendData:a},e[ga]={pure:!0,appendData:function(o){var s=this._data;N(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},e[ei]={appendData:a},e[ro]={persistent:!1,pure:!0,appendData:function(o){process.env.NODE_ENV!=="production"&&ke(tn(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),m3=function(r,e,t,n){return r[n]},kre=(Pl={},Pl[Yr+"_"+ma]=function(r,e,t,n){return r[n+e]},Pl[Yr+"_"+kc]=function(r,e,t,n,i){n+=e;for(var a=i||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},Pl[ti]=m3,Pl[ga]=function(r,e,t,n,i){for(var a=i||[],o=0;o<t.length;o++){var s=t[o].name;if(process.env.NODE_ENV!=="production"&&s==null)throw new Error;var l=r[s];a[o]=l?l[n]:null}return a},Pl[ei]=m3,Pl);function y3(r,e){var t=kre[Bb(r,e)];return process.env.NODE_ENV!=="production"&&ke(t,'Do not support get item on "'+r+'", "'+e+'".'),t}var _3=function(r,e,t){return r.length},Pre=(Nl={},Nl[Yr+"_"+ma]=function(r,e,t){return Math.max(0,r.length-e)},Nl[Yr+"_"+kc]=function(r,e,t){var n=r[0];return n?Math.max(0,n.length-e):0},Nl[ti]=_3,Nl[ga]=function(r,e,t){var n=t[0].name;if(process.env.NODE_ENV!=="production"&&n==null)throw new Error;var i=r[n];return i?i.length:0},Nl[ei]=_3,Nl);function w3(r,e){var t=Pre[Bb(r,e)];return process.env.NODE_ENV!=="production"&&ke(t,'Do not support count on "'+r+'", "'+e+'".'),t}var zb=function(r,e,t){return r[e]},Nre=(Ol={},Ol[Yr]=zb,Ol[ti]=function(r,e,t){return r[t]},Ol[ga]=zb,Ol[ei]=function(r,e,t){var n=vc(r);return n instanceof Array?n[e]:n},Ol[ro]=zb,Ol);function b3(r){var e=Nre[r];return process.env.NODE_ENV!=="production"&&ke(e,'Do not support get value on "'+r+'".'),e}function Bb(r,e){return r===Yr?r+"_"+e:r}function Nc(r,e,t){if(r){var n=r.getRawDataItem(e);if(n!=null){var i=r.getStore(),a=i.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=i.getDimensionProperty(o);return b3(a)(n,o,s)}else{var l=n;return a===ei&&(l=vc(n)),l}}}}var Ore=/\{@(.+?)\}/g,O0=function(){function r(){}return r.prototype.getDataParams=function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,h=f==="series",v=n.userOutput&&n.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:a,data:s,dataType:t,value:i,color:u,borderColor:c,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,n,i,a,o){t=t||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),i!=null&&re(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(Me(a))return l.status=t,l.dimensionIndex=i,a(l);if(me(a)){var c=F6(a,l);return c.replace(Ore,function(f,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1),process.env.NODE_ENV!=="production"&&isNaN(d)&&Or("Invalide label formatter: @"+h+", only support @[0], @[1], @[2], ..."));var g=Nc(s,e,d);if(o&&re(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},r.prototype.getRawValue=function(e,t){return Nc(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,n){},r}();function x3(r){var e,t;return Le(r)?r.type?t=r:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+an(r)):e=r,{text:e,frag:t}}function nv(r){return new Rre(r)}var Rre=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var i=this.context;i.data=i.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(t?(process.env.NODE_ENV!=="production"&&ke(t._outputDueEnd!=null),this._dueEnd=t._outputDueEnd):(process.env.NODE_ENV!=="production"&&ke(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(f||v<d)){var g=this._progress;if(re(g))for(var p=0;p<g.length;p++)this._doProgress(g[p],v,d,l,u);else this._doProgress(g,v,d,l,u)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;process.env.NODE_ENV!=="production"&&ke(m>=this._outputDueEnd),this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(e,t,n,i,a){S3.reset(t,n,i,a),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:S3.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),re(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){process.env.NODE_ENV!=="production"&&ke(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r}(),S3=function(){var r,e,t,n,i,a={reset:function(l,u,c,f){e=l,r=u,t=c,n=f,i=Math.ceil(n/t),a.next=t>1&&n>0?s:o}};return a;function o(){return e<r?e++:null}function s(){var l=e%i*t+Math.ceil(e/i),u=e>=r?null:l<n?l:e;return e++,u}}();function ss(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!ct(r)&&r!=null&&r!=="-"&&(r=+ua(r)),r==null||r===""?NaN:Number(r))}var Vre=Se({number:function(r){return parseFloat(r)},time:function(r){return+ua(r)},trim:function(r){return me(r)?Mi(r):r}});function T3(r){return Vre.get(r)}var A3={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},zre=function(){function r(e,t){if(!ct(t)){var n="";process.env.NODE_ENV!=="production"&&(n='rvalue of "<", ">", "<=", ">=" can only be number in filter.'),gt(n)}this._opFn=A3[e],this._rvalFloat=ja(t)}return r.prototype.evaluate=function(e){return ct(e)?this._opFn(e,this._rvalFloat):this._opFn(ja(e),this._rvalFloat)},r}(),C3=function(){function r(e,t){var n=e==="desc";this._resultLT=n?1:-1,t==null&&(t=n?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var n=ct(e)?e:ja(e),i=ct(t)?t:ja(t),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=me(e),l=me(t);s&&(n=l?e:0),l&&(i=s?t:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},r}(),Bre=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ja(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(t=ja(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function Fre(r,e){return r==="eq"||r==="ne"?new Bre(r==="eq",e):we(A3,r)?new zre(r,e):null}var Hre=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return ss(e,t)},r}();function Gre(r,e){var t=new Hre,n=r.data,i=t.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==ma&&(process.env.NODE_ENV!=="production"&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),gt(o));var s=[],l={},u=r.dimensionsDefine;if(u)N(u,function(g,p){var m=g.name,y={index:p,name:m,displayName:g.displayName};if(s.push(y),m!=null){var _="";we(l,m)&&(process.env.NODE_ENV!=="production"&&(_='dimension name "'+m+'" duplicated.'),gt(_)),l[m]=y}});else for(var c=0;c<r.dimensionsDetectedCount;c++)s.push({index:c});var f=y3(i,ma);e.__isBuiltIn&&(t.getRawDataItem=function(g){return f(n,a,s,g)},t.getRawData=ye(Wre,null,r)),t.cloneRawData=ye(Zre,null,r);var h=w3(i,ma);t.count=ye(h,null,n,a,s);var v=b3(i);t.retrieveValue=function(g,p){var m=f(n,a,s,g);return d(m,p)};var d=t.retrieveValueFromItem=function(g,p){if(g!=null){var m=s[p];if(m)return v(g,p,m.name)}};return t.getDimensionInfo=ye(Ure,null,s,l),t.cloneAllDimensionInfo=ye(Yre,null,s),t}function Wre(r){var e=r.sourceFormat;if(!Fb(e)){var t="";process.env.NODE_ENV!=="production"&&(t="`getRawData` is not supported in source format "+e),gt(t)}return r.data}function Zre(r){var e=r.sourceFormat,t=r.data;if(!Fb(e)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+e),gt(n)}if(e===Yr){for(var i=[],a=0,o=t.length;a<o;a++)i.push(t[a].slice());return i}else if(e===ti){for(var i=[],a=0,o=t.length;a<o;a++)i.push($({},t[a]));return i}}function Ure(r,e,t){if(t!=null){if(ct(t)||!isNaN(t)&&!we(e,t))return r[t];if(we(e,t))return e[t]}}function Yre(r){return Oe(r)}var D3=Se();function Xre(r){r=Oe(r);var e=r.type,t="";e||(process.env.NODE_ENV!=="production"&&(t="Must have a `type` when `registerTransform`."),gt(t));var n=e.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(t='Name must include namespace like "ns:regression".'),gt(t));var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),r.__isBuiltIn=i,D3.set(e,r)}function qre(r,e,t){var n=St(r),i=n.length,a="";i||(process.env.NODE_ENV!=="production"&&(a="If `transform` declared, it should at least contain one transform."),gt(a));for(var o=0,s=i;o<s;o++){var l=n[o];e=jre(l,e,t,i===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function jre(r,e,t,n){var i="";e.length||(process.env.NODE_ENV!=="production"&&(i="Must have at least one upstream dataset."),gt(i)),Le(r)||(process.env.NODE_ENV!=="production"&&(i="transform declaration must be an object rather than "+typeof r+"."),gt(i));var a=r.type,o=D3.get(a);o||(process.env.NODE_ENV!=="production"&&(i='Can not find transform on type "'+a+'".'),gt(i));var s=ne(e,function(c){return Gre(c,o)}),l=St(o.transform({upstream:s[0],upstreamList:s,config:Oe(r.config)}));if(process.env.NODE_ENV!=="production"&&r.print){var u=ne(l,function(c){var f=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+t.datasetIndex+f+" ===","- transform result data:",an(c.data),"- transform result dimensions:",an(c.dimensions)].join(`
|
|
43
|
-
`)}).join(`
|
|
44
|
-
`);T$(u)}return ne(l,function(c,f){var h="";Le(c)||(process.env.NODE_ENV!=="production"&&(h="A transform should not return some empty results."),gt(h)),c.data||(process.env.NODE_ENV!=="production"&&(h="Transform result data should be not be null or undefined"),gt(h));var v=c3(c.data);Fb(v)||(process.env.NODE_ENV!=="production"&&(h="Transform result data should be array rows or object rows."),gt(h));var d,g=e[0];if(g&&f===0&&!c.dimensions){var p=g.startIndex;p&&(c.data=g.data.slice(0,p).concat(c.data)),d={seriesLayoutBy:ma,sourceHeader:p,dimensions:g.metaRawOption.dimensions}}else d={seriesLayoutBy:ma,sourceHeader:0,dimensions:c.dimensions};return Rb(c.data,d,null)})}function Fb(r){return r===Yr||r===ti}var R0="undefined",Kre=typeof Uint32Array===R0?Array:Uint32Array,Jre=typeof Uint16Array===R0?Array:Uint16Array,M3=typeof Int32Array===R0?Array:Int32Array,I3=typeof Float64Array===R0?Array:Float64Array,E3={float:I3,int:M3,ordinal:Array,number:Array,time:I3},Hb;function Oc(r){return r>65535?Kre:Jre}function Rc(){return[1/0,-1/0]}function Qre(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function L3(r,e,t,n,i){var a=E3[t||"float"];if(i){var o=r[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new a(n)}var Gb=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Se()}return r.prototype.initData=function(e,t,n){process.env.NODE_ENV!=="production"&&ke(Me(e.getItem)&&Me(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=Hb[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[];var o=v3(i);this._dimensions=ne(t,function(s){return process.env.NODE_ENV!=="production"&&o&&ke(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===t)return a}else a=i.length;return i[a]={type:t},n.set(e,a),this._chunks[a]=new E3[t||"float"](this._rawCount),this._rawExtent[a]=Rc(),a},r.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=Rc());for(var l=a[e],u=o;u<s;u++){var c=n[u]=t.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}i.ordinalMeta=t,i.ordinalOffset=s,i.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],n=t.ordinalMeta;return n},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){process.env.NODE_ENV!=="production"&&ke(!this._indices,"appendData can only be called on raw data.");var t=this._provider,n=this.count();t.appendData(e);var i=t.count();return t.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},r.prototype.appendValues=function(e,t){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<a;u++){var c=i[u];L3(n,u,c.type,l,!0)}for(var f=[],h=s;h<l;h++)for(var v=h-s,d=0;d<a;d++){var c=i[d],g=Hb.arrayRows.call(this,e[v]||f,c.property,v,d);n[d][h]=g;var p=o[d];g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=ne(o,function(y){return y.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Rc()),L3(a,c,f.type,t,n)}if(i.fillStorage)i.fillStorage(e,t,a,l);else for(var h=[],v=e;v<t;v++){h=i.getItem(v,h);for(var d=0;d<s;d++){var g=a[d],p=this._dimValueGetter(h,u[d],v,d);g[v]=p;var m=l[d];p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var n=[],i=[];if(t==null){t=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],t));return n},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(e){var t=[];this.each([e],function(a){isNaN(a)||t.push(a)});var n=t.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(t[o]<e)i=o+1;else if(t[o]>e)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,n){var i=this._chunks,a=i[e],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var h=this.getRawIndex(c),v=t-a[h],d=Math.abs(v);d<=n&&((d<s||d===s&&v>=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=c))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=t[a]}else e=new n(t.buffer,0,i)}else{var n=Oc(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Oc(n._rawCount),o=new a(i),s=[],l=e.length,u=0,c=e[0],f=n._chunks,h=0;h<i;h++){var v=void 0,d=n.getRawIndex(h);if(l===0)v=t(h);else if(l===1){var g=f[c][d];v=t(g,h)}else{for(var p=0;p<l;p++)s[p]=f[e[p]][d];s[p]=h,v=t.apply(null,s)}v&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var i=nt(e),a=i.length;if(!a)return this;var o=t.count(),s=Oc(t._rawCount),l=new s(o),u=0,c=i[0],f=e[c][0],h=e[c][1],v=t._chunks,d=!1;if(!t._indices){var g=0;if(a===1){for(var p=v[i[0]],m=0;m<n;m++){var y=p[m];(y>=f&&y<=h||isNaN(y))&&(l[u++]=g),g++}d=!0}else if(a===2){for(var p=v[i[0]],_=v[i[1]],w=e[i[1]][0],b=e[i[1]][1],m=0;m<n;m++){var y=p[m],x=_[m];(y>=f&&y<=h||isNaN(y))&&(x>=w&&x<=b||isNaN(x))&&(l[u++]=g),g++}d=!0}}if(!d)if(a===1)for(var m=0;m<o;m++){var S=t.getRawIndex(m),y=v[i[0]][S];(y>=f&&y<=h||isNaN(y))&&(l[u++]=S)}else for(var m=0;m<o;m++){for(var T=!0,S=t.getRawIndex(m),C=0;C<a;C++){var A=i[C],y=v[A][S];(y<e[A][0]||y>e[A][1])&&(T=!1)}T&&(l[u++]=t.getRawIndex(m))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,n){for(var i=e._chunks,a=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<t.length;c++)u[t[c]]=Rc();for(var f=0;f<s;f++){for(var h=e.getRawIndex(f),v=0;v<o;v++)l[v]=i[t[v]][h];l[o]=f;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var c=0;c<d.length;c++){var g=t[c],p=d[c],m=u[g],y=i[g];y&&(y[h]=p),p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}}}},r.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,f,h,v=new(Oc(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var g=Math.min(d+l,o-1),p=Math.min(d+l*2,o),m=(p+g)/2,y=0,_=g;_<p;_++){var w=this.getRawIndex(_),b=a[w];isNaN(b)||(y+=b)}y/=p-g;var x=d,S=Math.min(d+l,o),T=d-1,C=a[u];c=-1,h=x;for(var A=-1,M=0,_=x;_<S;_++){var w=this.getRawIndex(_),b=a[w];if(isNaN(b)){M++,A<0&&(A=w);continue}f=Math.abs((T-m)*(b-C)-(T-_)*(y-C)),f>c&&(c=f,h=w)}M>0&&M<S-x&&(v[s++]=Math.min(A,h),h=Math.max(A,h)),v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},r.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/t),o=i[e],s=this.count(),l=new(Oc(this._rawCount))(Math.ceil(s/a)*2),u=0,c=0;c<s;c+=a){var f=c,h=o[this.getRawIndex(f)],v=c,d=o[this.getRawIndex(v)],g=a;c+a>s&&(g=s-c);for(var p=0;p<g;p++){var m=this.getRawIndex(c+p),y=o[m];y<h&&(h=y,f=c+p),y>d&&(d=y,v=c+p)}var _=this.getRawIndex(f),w=this.getRawIndex(v);f<v?(l[u++]=_,l[u++]=w):(l[u++]=w,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},r.prototype.downSample=function(e,t,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/t),u=o[e],c=this.count(),f=a._rawExtent[e]=Rc(),h=new(Oc(this._rawCount))(Math.ceil(c/l)),v=0,d=0;d<c;d+=l){l>c-d&&(l=c-d,s.length=l);for(var g=0;g<l;g++){var p=this.getRawIndex(d+g);s[g]=u[p]}var m=n(s),y=this.getRawIndex(Math.min(d+i(s,m)||0,c-1));u[y]=m,m<f[0]&&(f[0]=m),m>f[1]&&(f[1]=m),h[v++]=y}return a._count=v,a._indices=h,a._updateGetRawIdx(),a},r.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:t(a);break;case 1:t(i[e[0]][s],a);break;case 2:t(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[e[l]][s];u[l]=a,t.apply(null,u)}}},r.prototype.getDataExtent=function(e){var t=this._chunks[e],n=Rc();if(!t)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var c=this.getRawIndex(u),f=t[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][t]);return n},r.prototype.clone=function(e,t){var n=new r,i=this._chunks,a=e&&na(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?Qre(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),t||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Oe(this._extent),e._rawExtent=Oe(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var i=0;i<n;i++)t[i]=this._indices[i]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,n,i,a){return ss(t[a],this._dimensions[a])}Hb={arrayRows:e,objectRows:function(t,n,i,a){return ss(t[n],this._dimensions[a])},keyedColumns:e,original:function(t,n,i,a){var o=t&&(t.value==null?t:t.value);return ss(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(t,n,i,a){return t[a]}}}(),r}(),k3=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,i,a;if(iv(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=tn(s)?ro:ei,a=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=Ve(f.seriesLayoutBy,h.seriesLayoutBy)||null,d=Ve(f.sourceHeader,h.sourceHeader),g=Ve(f.dimensions,h.dimensions),p=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||g;i=p?[Rb(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},l)]:[]}else{var m=e;if(n){var y=this._applyTransform(t);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[Rb(_,this._getSourceMetaRawOption(),null)],a=[]}}process.env.NODE_ENV!=="production"&&ke(i&&a),this._setLocalSource(i,a)},r.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get("transform",!0),i=t.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&ke(i!=null||n!=null),i!=null){var a="";e.length!==1&&(process.env.NODE_ENV!=="production"&&(a="When using `fromTransformResult`, there should be only one upstream dataset"),N3(a))}var o,s=[],l=[];return N(e,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&(process.env.NODE_ENV!=="production"&&(f="Can not retrieve result by `fromTransformResult`: "+i),N3(f)),s.push(c),l.push(u._getVersionSign())}),n?o=qre(n,s,{datasetIndex:t.componentIndex}):i!=null&&(o=[Ire(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){process.env.NODE_ENV!=="production"&&ke(iv(this._sourceHost),"Can only call getDataStore on series source manager.");var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];iv(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,n):(s=new Gb,s.initData(new g3(t,e.length),e)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(iv(e)){var t=Cb(e);return t?[t.getSourceManager()]:[]}else return ne(rre(e),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,i;if(iv(e))t=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;t=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:i}},r}();function P3(r){var e=r.option.transform;e&&pg(r.option.transform)}function iv(r){return r.mainType==="series"}function N3(r){throw new Error(r)}var $re="line-height:1";function O3(r){var e=r.lineHeight;return e==null?$re:"line-height:"+nn(e+"")+"px"}function R3(r,e){var t=r.color||"#6e7079",n=r.fontSize||12,i=r.fontWeight||"400",a=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+nn(n+"")+"px;color:"+nn(t)+";font-weight:"+nn(i+""),valueStyle:"font-size:"+nn(o+"")+"px;color:"+nn(a)+";font-weight:"+nn(s+"")}:{nameStyle:{fontSize:n,fill:t,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var ene=[0,10,20,30],tne=["",`
|
|
45
|
-
`,`
|
|
46
|
-
|
|
47
|
-
`,`
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
`];function Sr(r,e){return e.type=r,e}function Wb(r){return r.type==="section"}function V3(r){return Wb(r)?rne:nne}function z3(r){if(Wb(r)){var e=0,t=r.blocks.length,n=t>1||t>0&&!r.noHeader;return N(r.blocks,function(i){var a=z3(i);a>=e&&(e=a+ +(n&&(!a||Wb(i)&&!i.noHeader)))}),e}return 0}function rne(r,e,t,n){var i=e.noHeader,a=ine(z3(e)),o=[],s=e.blocks||[];ke(!s||re(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(we(u,l)){var c=new C3(u[l],null);s.sort(function(g,p){return c.evaluate(g.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}N(s,function(g,p){var m=e.valueFormatter,y=V3(g)(m?$($({},r),{valueFormatter:m}):r,g,p>0?a.html:0,n);y!=null&&o.push(y)});var f=r.renderMode==="richText"?o.join(a.richText):Zb(n,o.join(""),i?t:a.html);if(i)return f;var h=bb(e.header,"ordinal",r.useUTC),v=R3(n,r.renderMode).nameStyle,d=O3(n);return r.renderMode==="richText"?F3(r,h,v)+a.richText+f:Zb(n,'<div style="'+v+";"+d+';">'+nn(h)+"</div>"+f,t)}function nne(r,e,t,n){var i=r.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,c=e.valueFormatter||r.valueFormatter||function(w){return w=re(w)?w:[w],ne(w,function(b,x){return bb(b,re(v)?v[x]:v,u)})};if(!(a&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),h=a?"":bb(l,"ordinal",u),v=e.valueType,d=o?[]:c(e.value,e.dataIndex),g=!s||!a,p=!s&&a,m=R3(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":F3(r,h,y))+(o?"":sne(r,d,g,p,_)):Zb(n,(s?"":f)+(a?"":ane(h,!s,y))+(o?"":one(d,g,p,_)),t)}}function B3(r,e,t,n,i,a){if(r){var o=V3(r),s={useUTC:i,renderMode:t,orderMode:n,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function ine(r){return{html:ene[r],richText:tne[r]}}function Zb(r,e,t){var n='<div style="clear:both"></div>',i="margin: "+t+"px 0 0",a=O3(r);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function ane(r,e,t){var n=e?"margin-left:2px":"";return'<span style="'+t+";"+n+'">'+nn(r)+"</span>"}function one(r,e,t,n){var i=t?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return r=re(r)?r:[r],'<span style="'+a+";"+n+'">'+ne(r,function(o){return nn(o)}).join(" ")+"</span>"}function F3(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function sne(r,e,t,n,i){var a=[i],o=n?10:20;return t&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(re(e)?e.join(" "):e,a)}function H3(r,e){var t=r.getData().getItemVisual(e,"style"),n=t[r.visualDrawType];return El(n)}function G3(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Ub=function(){function r(){this.richTextStyles={},this._nextStyleNameId=HI()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,n){var i=n==="richText"?this._generateStyleName():null,a=jte({color:t,type:e,renderMode:n,markerId:i});return me(a)?a:(process.env.NODE_ENV!=="production"&&ke(i),this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(e,t){var n={};re(t)?N(t,function(a){return $(n,a)}):$(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},r}();function W3(r){var e=r.series,t=r.dataIndex,n=r.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(t),l=re(s),u=H3(e,t),c,f,h,v;if(o>1||l&&!o){var d=lne(s,e,t,a,u);c=d.inlineValues,f=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);v=c=Nc(i,t,a[0]),f=g.type}else v=c=l?s[0]:s;var p=Sw(e),m=p&&e.name||"",y=i.getName(t),_=n?m:y;return Sr("section",{header:m,noHeader:n||!p,sortParam:v,blocks:[Sr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Mi(_),value:c,valueType:f,dataIndex:t})].concat(h||[])})}function lne(r,e,t,n,i){var a=e.getData(),o=na(r,function(f,h,v){var d=a.getDimensionInfo(v);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?N(n,function(f){c(Nc(a,t,f),f)}):N(r,c);function c(f,h){var v=a.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Sr("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ls=ot();function V0(r,e){return r.getName(e)||r.getId(e)}var z0="__universalTransitionEnabled",Rt=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,n,i){this.seriesIndex=this.componentIndex,this.dataTask=nv({count:cne,reset:fne}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i);var a=ls(this).sourceManager=new k3(this);a.prepareSource();var o=this.getInitialData(t,i);U3(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&ke(o,"getInitialData returned invalid data."),ls(this).dataBeforeProcessed=o,Z3(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,n){var i=Qh(this),a=i?Ec(t):{},o=this.subType;$e.hasClass(o)&&(o+="Series"),Ge(t,n.getTheme().get(this.subType)),Ge(t,this.getDefaultOption()),ll(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&os(t,a,i)},e.prototype.mergeOption=function(t,n){t=Ge(this.option,t,!0),this.fillDataTextStyle(t.data);var i=Qh(this);i&&os(this.option,t,i);var a=ls(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(t,n);U3(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ls(this).dataBeforeProcessed=o,Z3(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!tn(t))for(var n=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&ll(t[i],"label",n)},e.prototype.getInitialData=function(t,n){},e.prototype.appendData=function(t){var n=this.getRawData();n.appendData(t.data)},e.prototype.getData=function(t){var n=Yb(this);if(n){var i=n.context.data;return t==null||!i.getLinkedData?i:i.getLinkedData(t)}else return ls(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var n=Yb(this);if(n){var i=n.context;i.outputData=t,n!==this.dataTask&&(i.data=t)}ls(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return Se(t)},e.prototype.getSourceManager=function(){return ls(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return ls(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,n,i){return W3({series:this,dataIndex:t,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Je.node&&!(t&&t.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,n,i){var a=this.ecModel,o=Mb.prototype.getColorFromPalette.call(this,t,n,i);return o||(o=a.getColorFromPalette(t,n,i)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,n){this._innerSelect(this.getData(n),t)},e.prototype.unselect=function(t,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=V0(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,n){for(var i=[],a=0;a<t.length;a++)i[0]=t[a],this.isSelected(t[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,n=nt(t),i=[],a=0;a<n.length;a++){var o=t[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(t,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[V0(a,t)])&&!a.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[z0])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Le(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=n[c],h=V0(t,f);u[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(f)}}else if(s==="single"||s===!0){var v=n[l-1],h=V0(t,v);o.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(a={},a[h]=t.getRawIndex(v),a)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var n=[];t.hasItemOption&&t.each(function(i){var a=t.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(t,n)}},e.registerClass=function(t){return $e.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}($e);lr(Rt,O0),lr(Rt,Mb),rE(Rt,$e);function Z3(r){var e=r.name;Sw(r)||(r.name=une(r)||e)}function une(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),n=[];return N(t,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function cne(r){return r.model.getRawData().count()}function fne(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),hne}function hne(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function U3(r,e){N(fh(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,He(vne,e))})}function vne(r,e){var t=Yb(r);return t&&t.setOutputEnd((e||this).count()),e}function Yb(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var n=t.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}var Zt=function(){function r(){this.group=new Re,this.uid=Ac("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,i){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,i){},r.prototype.updateLayout=function(e,t,n,i){},r.prototype.updateVisual=function(e,t,n,i){},r.prototype.toggleBlurSeries=function(e,t,n){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();Cw(Zt),Xg(Zt);function Vc(){var r=ot();return function(e){var t=r(e),n=e.pipelineContext,i=!!t.large,a=!!t.progressiveRender,o=t.large=!!(n&&n.large),s=t.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var Y3=ot(),dne=Vc(),Dt=function(){function r(){this.group=new Re,this.uid=Ac("viewChart"),this.renderTask=nv({plan:pne,reset:gne}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,i){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},r.prototype.highlight=function(e,t,n,i){var a=e.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&Or("Unknown dataType "+i.dataType);return}q3(a,i,"emphasis")},r.prototype.downplay=function(e,t,n,i){var a=e.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&Or("Unknown dataType "+i.dataType);return}q3(a,i,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,i){this.render(e,t,n,i)},r.prototype.updateLayout=function(e,t,n,i){this.render(e,t,n,i)},r.prototype.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},r.prototype.eachRendered=function(e){ns(this.group,e)},r.markUpdateMethod=function(e,t){Y3(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function X3(r,e,t){r&&ts(r)&&(e==="emphasis"?$a:eo)(r,t)}function q3(r,e,t){var n=ul(r,e),i=e&&e.highlightKey!=null?jee(e.highlightKey):null;n!=null?N(St(n),function(a){X3(r.getItemGraphicEl(a),t,i)}):r.eachItemGraphicEl(function(a){X3(a,t,i)})}Cw(Dt,["dispose"]),Xg(Dt);function pne(r){return dne(r.model)}function gne(r){var e=r.model,t=r.ecModel,n=r.api,i=r.payload,a=e.pipelineContext.progressiveRender,o=r.view,s=i&&Y3(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,n,i),mne[l]}var mne={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},B0="\0__throttleOriginMethod",j3="\0__throttleRate",K3="\0__throttleType";function Xb(r,e,t){var n,i=0,a=0,o=null,s,l,u,c;e=e||0;function f(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),l=this,u=v;var g=c||e,p=c||t;c=null,s=n-(p?i:a)-g,clearTimeout(o),p?o=setTimeout(f,g):s>=0?f():o=setTimeout(f,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){c=v},h}function zc(r,e,t,n){var i=r[e];if(i){var a=i[B0]||i,o=i[K3],s=i[j3];if(s!==t||o!==n){if(t==null||!n)return r[e]=a;i=r[e]=Xb(a,t,n==="debounce"),i[B0]=a,i[K3]=n,i[j3]=t}return i}}function av(r,e){var t=r[e];t&&t[B0]&&(t.clear&&t.clear(),r[e]=t[B0])}var J3=ot(),Q3={itemStyle:fl(S6,!0),lineStyle:fl(x6,!0)},yne={lineStyle:"stroke",itemStyle:"fill"};function $3(r,e){var t=r.visualStyleMapper||Q3[e];return t||(console.warn("Unknown style type '"+e+"'."),Q3.itemStyle)}function eL(r,e){var t=r.visualDrawType||yne[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var _ne={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=$3(r,n),o=a(i),s=i.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=eL(r,n),u=o[l],c=Me(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=h,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Me(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||Me(o.stroke)?h:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var g=r.getDataParams(d),p=$({},o);p[l]=c(g),v.setItemVisual(d,"style",p)}}}},ov=new bt,wne={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=$3(r,n),a=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){ov.option=l[n];var u=i(ov),c=o.ensureUniqueItemVisual(s,"style");$(c,u),ov.option.decal&&(o.setItemVisual(s,"decal",ov.option.decal),ov.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},bne={performRawSeries:!0,overallReset:function(r){var e=Se();r.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,a=e.get(i);a||(a={},e.set(i,a)),J3(t).scope=a}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var n=t.getRawData(),i={},a=t.getData(),o=J3(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=eL(t,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var h=a.ensureUniqueItemVisual(c,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=t.getColorFromPalette(v,o,d)}})}})}},F0=Math.PI;function xne(r,e){e=e||{},Ne(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Re,n=new st({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(n);var i=new ut({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new st({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(a);var o;return e.showSpinner&&(o=new c0({shape:{startAngle:-F0/2,endAngle:-F0/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:F0*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:F0*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var tL=function(){function r(e,t,n,i){this._stageTaskMap=Se(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&a>=n.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Se();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),t._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;N(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";process.env.NODE_ENV!=="production"&&(o='"reset" and "overallReset" must not be both specified.'),ke(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,t,n),i.overallReset&&this._createOverallStageTask(i,a,t,n)},this)},r.prototype.prepareView=function(e,t,n,i){var a=e.renderTask,o=a.context;o.model=t,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(t,a)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},r.prototype._performStageTasks=function(e,t,n,i){i=i||{};var a=!1,o=this;N(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var g=o.getPerformArgs(h,i.block);d.each(function(p){p.perform(g)}),h.perform(g)&&(a=!0)}else f&&f.each(function(p,m){s(i,p)&&p.dirty();var y=o.getPerformArgs(p,i.block);y.skip=!l.performRawSeries&&t.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(n){t=n.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,n,i){var a=this,o=t.seriesTaskMap,s=t.seriesTaskMap=Se(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var h=f.uid,v=s.set(h,o&&o.get(h)||nv({plan:Dne,reset:Mne,count:Ene}));v.context={model:f,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(f,v)}},r.prototype._createOverallStageTask=function(e,t,n,i){var a=this,o=t.overallTask=t.overallTask||nv({reset:Sne});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Se(),u=e.seriesType,c=e.getTargetSeries,f=!0,h=!1,v="";process.env.NODE_ENV!=="production"&&(v='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),ke(!e.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):c?c(n,i).each(d):(f=!1,N(n.getSeries(),d));function d(g){var p=g.uid,m=l.set(p,s&&s.get(p)||(h=!0,nv({reset:Tne,onDirty:Cne})));m.context={model:g,overallProgress:f},m.agent=o,m.__block=f,a._pipe(g,m)}h&&o.dirty()},r.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},r.wrapStageHandler=function(e,t){return Me(e)&&(e={overallReset:e,seriesType:Lne(e)}),e.uid=Ac("stageHandler"),t&&(e.visualType=t),e},r}();function Sne(r){r.overallReset(r.ecModel,r.api,r.payload)}function Tne(r){return r.overallProgress&&Ane}function Ane(){this.agent.dirty(),this.getDownstream().dirty()}function Cne(){this.agent&&this.agent.dirty()}function Dne(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function Mne(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=St(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?ne(e,function(t,n){return rL(n)}):Ine}var Ine=rL(0);function rL(r){return function(e,t){var n=t.data,i=t.resetDefines[r];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function Ene(r){return r.data.count()}function Lne(r){H0=null;try{r(sv,nL)}catch{}return H0}var sv={},nL={},H0;iL(sv,Lb),iL(nL,r3),sv.eachSeriesByType=sv.eachRawSeriesByType=function(r){H0=r},sv.eachComponent=function(r){r.mainType==="series"&&r.subType&&(H0=r.subType)};function iL(r,e){for(var t in e.prototype)r[t]=nr}var aL=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const kne={color:aL,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],aL]};var qr="#B9B8CE",oL="#100C2A",G0=function(){return{axisLine:{lineStyle:{color:qr}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},sL=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],lL={darkMode:!0,color:sL,backgroundColor:oL,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:qr},pageTextStyle:{color:qr}},textStyle:{color:qr},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:qr}},dataZoom:{borderColor:"#71708A",textStyle:{color:qr},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:qr}},timeline:{lineStyle:{color:qr},label:{color:qr},controlStyle:{color:qr,borderColor:qr}},calendar:{itemStyle:{color:oL},dayLabel:{color:qr},monthLabel:{color:qr},yearLabel:{color:qr}},timeAxis:G0(),logAxis:G0(),valueAxis:G0(),categoryAxis:G0(),line:{symbol:"circle"},graph:{color:sL},gauge:{title:{color:qr},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:qr},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};lL.categoryAxis.splitLine.show=!1;var Pne=function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},n={},i={};if(me(e)){var a=ca(e);t.mainType=a.main||null,t.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};N(e,function(l,u){for(var c=!1,f=0;f<o.length;f++){var h=o[f],v=u.lastIndexOf(h);if(v>0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(t.mainType=d,t[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:t,dataQuery:n,otherQuery:i}},r.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,i,a));function c(f,h,v,d){return f[v]==null||h[d||v]===f[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),qb=["symbol","symbolSize","symbolRotate","symbolOffset"],uL=qb.concat(["symbolKeepAspect"]),Nne={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<qb.length;o++){var s=qb[o],l=r.get(s);Me(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,t.setVisual($({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),e.isSeriesFiltered(r))return;var u=nt(i);function c(f,h){for(var v=r.getRawValue(h),d=r.getDataParams(h),g=0;g<u.length;g++){var p=u[g];f.setItemVisual(h,p,i[p](v,d))}}return{dataEach:a?c:null}}},One={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<uL.length;s++){var l=uL[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:t.hasItemOption?n:null}}};function jb(r,e,t){switch(t){case"color":var n=r.getItemVisual(e,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function lv(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+e)}}function cL(r,e,t,n){switch(t){case"color":var i=r.ensureUniqueItemVisual(e,"style");i[r.getVisual("drawType")]=n,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,n);break;default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function fL(r,e){function t(n,i){var a=[];return n.eachComponent({mainType:"series",subType:r,query:i},function(o){a.push(o.seriesIndex)}),a}N([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=$({},i),process.env.NODE_ENV!=="production"&&cr(i.type,n[1]),o.dispatchAction($(i,{type:n[1],seriesIndex:t(a,i)}))})})}function Bc(r,e,t,n,i){var a=r+e;t.isSilent(a)||(process.env.NODE_ENV!=="production"&&ki("event "+a+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),h=ul(f,i.fromActionPayload);t.trigger(a,{type:a,seriesId:o.id,name:re(h)?f.getName(h[0]):f.getName(h),selected:me(l)?l:$({},l)})}}))}function Rne(r,e,t){r.on("selectchanged",function(n){var i=t.getModel();n.isFromClick?(Bc("map","selectchanged",e,i,n),Bc("pie","selectchanged",e,i,n)):n.fromAction==="select"?(Bc("map","selected",e,i,n),Bc("pie","selected",e,i,n)):n.fromAction==="unselect"&&(Bc("map","unselected",e,i,n),Bc("pie","unselected",e,i,n))})}function Rl(r,e,t){for(var n;r&&!(e(r)&&(n=r,t));)r=r.__hostTarget||r.parent;return n}var Vne=Math.round(Math.random()*9),zne=typeof Object.defineProperty=="function",Bne=function(){function r(){this._id="__ec_inner_"+Vne++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var n=this._guard(e);return zne?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r}(),Fne=Qe.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,i=e.width/2,a=e.height/2;r.moveTo(t,n-a),r.lineTo(t+i,n+a),r.lineTo(t-i,n+a),r.closePath()}}),Hne=Qe.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,i=e.width/2,a=e.height/2;r.moveTo(t,n-a),r.lineTo(t+i,n),r.lineTo(t,n+a),r.lineTo(t-i,n),r.closePath()}}),Gne=Qe.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),h=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(t-c,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+c-f*v,l+s+h*v,t,n-d,t,n),r.bezierCurveTo(t,n-d,t-c+f*v,l+s+h*v,t-c,l+s),r.closePath()}}),Wne=Qe.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;r.moveTo(i,a),r.lineTo(i+o,a+t),r.lineTo(i,a+t/4*3),r.lineTo(i-o,a+t),r.lineTo(i,a),r.closePath()}}),Zne={line:br,rect:st,roundRect:st,square:st,circle:to,diamond:Hne,pin:Gne,arrow:Wne,triangle:Fne},Une={line:function(r,e,t,n,i){i.x1=r,i.y1=e+n/2,i.x2=r+t,i.y2=e+n/2},rect:function(r,e,t,n,i){i.x=r,i.y=e,i.width=t,i.height=n},roundRect:function(r,e,t,n,i){i.x=r,i.y=e,i.width=t,i.height=n,i.r=Math.min(t,n)/4},square:function(r,e,t,n,i){var a=Math.min(t,n);i.x=r,i.y=e,i.width=a,i.height=a},circle:function(r,e,t,n,i){i.cx=r+t/2,i.cy=e+n/2,i.r=Math.min(t,n)/2},diamond:function(r,e,t,n,i){i.cx=r+t/2,i.cy=e+n/2,i.width=t,i.height=n},pin:function(r,e,t,n,i){i.x=r+t/2,i.y=e+n/2,i.width=t,i.height=n},arrow:function(r,e,t,n,i){i.x=r+t/2,i.y=e+n/2,i.width=t,i.height=n},triangle:function(r,e,t,n,i){i.cx=r+t/2,i.cy=e+n/2,i.width=t,i.height=n}},W0={};N(Zne,function(r,e){W0[e]=new r});var Yne=Qe.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var n=Wg(r,e,t),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=t.y+t.height*.4),n},buildPath:function(r,e,t){var n=e.symbolType;if(n!=="none"){var i=W0[n];i||(n="rect",i=W0[n]),Une[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(r,i.shape,t)}}});function Xne(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function vr(r,e,t,n,i,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=l6(r.slice(8),new Ue(e,t,n,i),o?"center":"cover"):r.indexOf("path://")===0?l=g0(r.slice(7),{},new Ue(e,t,n,i),o?"center":"cover"):l=new Yne({shape:{symbolType:r,x:e,y:t,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=Xne,a&&l.setColor(a),l}function Fc(r){return re(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Vl(r,e){if(r!=null)return re(r)||(r=[r,r]),[de(r[0],e[0])||0,de(Ve(r[1],r[0]),e[1])||0]}function zl(r){return isFinite(r)}function qne(r,e,t){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*t.width+t.x,i=i*t.width+t.x,a=a*t.height+t.y,o=o*t.height+t.y),n=zl(n)?n:0,i=zl(i)?i:1,a=zl(a)?a:0,o=zl(o)?o:0;var s=r.createLinearGradient(n,a,i,o);return s}function jne(r,e,t){var n=t.width,i=t.height,a=Math.min(n,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+t.x,s=s*i+t.y,l=l*a),o=zl(o)?o:.5,s=zl(s)?s:.5,l=l>=0&&zl(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Kb(r,e,t){for(var n=e.type==="radial"?jne(r,e,t):qne(r,e,t),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function Kne(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function Z0(r){return parseInt(r,10)}function Hc(r,e,t){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[n]!=null&&t[n]!=="auto")return parseFloat(t[n]);var s=document.defaultView.getComputedStyle(r);return(r[i]||Z0(s[n])||Z0(r.style[n]))-(Z0(s[a])||0)-(Z0(s[o])||0)|0}function Jne(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:ct(r)?[r]:re(r)?r:null}function Jb(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&Jne(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(t){var i=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(t=ne(t,function(a){return a/i}),n/=i)}return[t,n]}var Qne=new da(!0);function U0(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function hL(r){return typeof r=="string"&&r!=="none"}function Y0(r){var e=r.fill;return e!=null&&e!=="none"}function vL(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function dL(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function Qb(r,e,t){var n=Mw(e.image,e.__image,t);if(qg(n)){var i=r.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*mg),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function $ne(r,e,t,n){var i,a=U0(t),o=Y0(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||Qne,f=e.__dirty;if(!n){var h=t.fill,v=t.stroke,d=o&&!!h.colorStops,g=a&&!!v.colorStops,p=o&&!!h.image,m=a&&!!v.image,y=void 0,_=void 0,w=void 0,b=void 0,x=void 0;(d||g)&&(x=e.getBoundingRect()),d&&(y=f?Kb(r,h,x):e.__canvasFillGradient,e.__canvasFillGradient=y),g&&(_=f?Kb(r,v,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),p&&(w=f||!e.__canvasFillPattern?Qb(r,h,e):e.__canvasFillPattern,e.__canvasFillPattern=w),m&&(b=f||!e.__canvasStrokePattern?Qb(r,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),d?r.fillStyle=y:p&&(w?r.fillStyle=w:o=!1),g?r.strokeStyle=_:m&&(b?r.strokeStyle=b:a=!1)}var S=e.getGlobalScale();c.setScale(S[0],S[1],e.segmentIgnoreThreshold);var T,C;r.setLineDash&&t.lineDash&&(i=Jb(e),T=i[0],C=i[1]);var A=!0;(u||f&gh)&&(c.setDPR(r.dpr),l?c.setContext(null):(c.setContext(r),A=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),A&&c.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),n||(t.strokeFirst?(a&&dL(r,t),o&&vL(r,t)):(o&&vL(r,t),a&&dL(r,t))),T&&r.setLineDash([])}function eie(r,e,t){var n=e.__image=Mw(t.image,e.__image,e,e.onload);if(!(!n||!qg(n))){var i=t.x||0,a=t.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;r.drawImage(n,u,c,t.sWidth,t.sHeight,i,a,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,f=o-u,h=s-c;r.drawImage(n,u,c,f,h,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function tie(r,e,t){var n,i=t.text;if(i!=null&&(i+=""),i){r.font=t.font||Ho,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var a=void 0,o=void 0;r.setLineDash&&t.lineDash&&(n=Jb(e),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),t.strokeFirst?(U0(t)&&r.strokeText(i,t.x,t.y),Y0(t)&&r.fillText(i,t.x,t.y)):(Y0(t)&&r.fillText(i,t.x,t.y),U0(t)&&r.strokeText(i,t.x,t.y)),a&&r.setLineDash([])}}var pL=["shadowBlur","shadowOffsetX","shadowOffsetY"],gL=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function mL(r,e,t,n,i){var a=!1;if(!n&&(t=t||{},e===t))return!1;if(n||e.opacity!==t.opacity){wn(r,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?hl.opacity:o}(n||e.blend!==t.blend)&&(a||(wn(r,i),a=!0),r.globalCompositeOperation=e.blend||hl.blend);for(var s=0;s<pL.length;s++){var l=pL[s];(n||e[l]!==t[l])&&(a||(wn(r,i),a=!0),r[l]=r.dpr*(e[l]||0))}return(n||e.shadowColor!==t.shadowColor)&&(a||(wn(r,i),a=!0),r.shadowColor=e.shadowColor||hl.shadowColor),a}function yL(r,e,t,n,i){var a=uv(e,i.inHover),o=n?null:t&&uv(t,i.inHover)||{};if(a===o)return!1;var s=mL(r,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(wn(r,i),s=!0),hL(a.fill)&&(r.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(wn(r,i),s=!0),hL(a.stroke)&&(r.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(wn(r,i),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(wn(r,i),s=!0),r.lineWidth=u)}for(var c=0;c<gL.length;c++){var f=gL[c],h=f[0];(n||a[h]!==o[h])&&(s||(wn(r,i),s=!0),r[h]=a[h]||f[1])}return s}function rie(r,e,t,n,i){return mL(r,uv(e,i.inHover),t&&uv(t,i.inHover),n,i)}function _L(r,e){var t=e.transform,n=r.dpr||1;t?r.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):r.setTransform(n,0,0,n,0,0)}function nie(r,e,t){for(var n=!1,i=0;i<r.length;i++){var a=r[i];n=n||a.isZeroArea(),_L(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}t.allClipped=n}function iie(r,e){return r&&e?r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5]:!(!r&&!e)}var wL=1,bL=2,xL=3,SL=4;function aie(r){var e=Y0(r),t=U0(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function wn(r,e){e.batchFill&&r.fill(),e.batchStroke&&r.stroke(),e.batchFill="",e.batchStroke=""}function uv(r,e){return e&&r.__hoverStyle||r.style}function TL(r,e){Bl(r,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Bl(r,e,t,n){var i=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=-2,e.__isRendered=!1;return}var a=e.__clipPaths,o=t.prevElClipPaths,s=!1,l=!1;if((!o||Kne(a,o))&&(o&&o.length&&(wn(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),a&&a.length&&(wn(r,t),r.save(),nie(a,r,t),s=!0),t.prevElClipPaths=a),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var c=e instanceof Qe&&e.autoBatch&&aie(e.style);s||iie(i,u.transform)?(wn(r,t),_L(r,e)):c||wn(r,t);var f=uv(e,t.inHover);e instanceof Qe?(t.lastDrawType!==wL&&(l=!0,t.lastDrawType=wL),yL(r,e,u,l,t),(!c||!t.batchFill&&!t.batchStroke)&&r.beginPath(),$ne(r,e,f,c),c&&(t.batchFill=f.fill||"",t.batchStroke=f.stroke||"")):e instanceof pc?(t.lastDrawType!==xL&&(l=!0,t.lastDrawType=xL),yL(r,e,u,l,t),tie(r,e,f)):e instanceof Er?(t.lastDrawType!==bL&&(l=!0,t.lastDrawType=bL),rie(r,e,u,l,t),eie(r,e,f)):e.getTemporalDisplayables&&(t.lastDrawType!==SL&&(l=!0,t.lastDrawType=SL),oie(r,e,t)),c&&n&&wn(r,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function oie(r,e,t){var n=e.getDisplayables(),i=e.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Bl(r,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Bl(r,l,a,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var $b=new Bne,AL=new _h(100),CL=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Gc(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";r.dirty&&$b.delete(r);var a=$b.get(r);if(a)return a;var o=Ne(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/t,$b.set(r,s),r.dirty=!1,s;function l(u){for(var c=[t],f=!0,h=0;h<CL.length;++h){var v=o[CL[h]];if(v!=null&&!re(v)&&!me(v)&&!ct(v)&&typeof v!="boolean"){f=!1;break}c.push(v)}var d;if(f){d=c.join(",")+(i?"-svg":"");var g=AL.get(d);g&&(i?u.svgElement=g:u.image=g)}var p=ML(o.dashArrayX),m=sie(o.dashArrayY),y=DL(o.symbol),_=lie(p),w=IL(m),b=!i&&Go.createCanvas(),x=i&&{tag:"g",attrs:{},key:"dcl",children:[]},S=C(),T;b&&(b.width=S.width*t,b.height=S.height*t,T=b.getContext("2d")),A(),f&&AL.put(d,b||x),u.image=b,u.svgElement=x,u.svgWidth=S.width,u.svgHeight=S.height;function C(){for(var M=1,k=0,L=_.length;k<L;++k)M=WI(M,_[k]);for(var P=1,k=0,L=y.length;k<L;++k)P=WI(P,y[k].length);M*=P;var E=w*_.length*y.length;if(process.env.NODE_ENV!=="production"){var O=function(V){console.warn("Calculated decal size is greater than "+V+" due to decal option settings so "+V+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+V+" to be larger to avoid incontinuity.")};M>o.maxTileWidth&&O("maxTileWidth"),E>o.maxTileHeight&&O("maxTileHeight")}return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(E,o.maxTileHeight))}}function A(){T&&(T.clearRect(0,0,b.width,b.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,b.width,b.height)));for(var M=0,k=0;k<m.length;++k)M+=m[k];if(M<=0)return;for(var L=-w,P=0,E=0,O=0;L<S.height;){if(P%2===0){for(var V=E/2%y.length,z=0,H=0,B=0;z<S.width*2;){for(var F=0,k=0;k<p[O].length;++k)F+=p[O][k];if(F<=0)break;if(H%2===0){var ee=(1-o.symbolSize)*.5,ae=z+p[O][H]*ee,le=L+m[P]*ee,U=p[O][H]*o.symbolSize,j=m[P]*o.symbolSize,Xe=B/2%y[V].length;Te(ae,le,U,j,y[V][Xe])}z+=p[O][H],++B,++H,H===p[O].length&&(H=0)}++O,O===p.length&&(O=0)}L+=m[P],++E,++P,P===m.length&&(P=0)}function Te(xe,Be,be,fe,et){var vt=i?1:t,xt=vr(et,xe*vt,Be*vt,be*vt,fe*vt,o.color,o.symbolKeepAspect);if(i){var kt=n.painter.renderOneToVNode(xt);kt&&x.children.push(kt)}else TL(T,xt)}}}}function DL(r){if(!r||r.length===0)return[["rect"]];if(me(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!me(r[t])){e=!1;break}if(e)return DL([r]);for(var n=[],t=0;t<r.length;++t)me(r[t])?n.push([r[t]]):n.push(r[t]);return n}function ML(r){if(!r||r.length===0)return[[0,0]];if(ct(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,n=0;n<r.length;++n)if(!ct(r[n])){t=!1;break}if(t)return ML([r]);for(var i=[],n=0;n<r.length;++n)if(ct(r[n])){var e=Math.ceil(r[n]);i.push([e,e])}else{var e=ne(r[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function sie(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(ct(r)){var e=Math.ceil(r);return[e,e]}var t=ne(r,function(n){return Math.ceil(n)});return r.length%2?t.concat(t):t}function lie(r){return ne(r,function(e){return IL(e)})}function IL(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function uie(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var n=t.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Gc(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Gc(i,e)}}})}var Vi=new Un,X0={};function cie(r,e){process.env.NODE_ENV!=="production"&&X0[r]&&Or("Already has an implementation of "+r+"."),X0[r]=e}function fie(r){return process.env.NODE_ENV!=="production"&&(X0[r]||Or("Implementation of "+r+" doesn't exists.")),X0[r]}var hie=1,vie=800,die=900,pie=1e3,gie=2e3,mie=5e3,EL=1e3,yie=1100,ex=2e3,LL=3e3,_ie=4e3,q0=4500,wie=4600,bie=5e3,xie=6e3,kL=7e3,Sie={PROCESSOR:{FILTER:pie,SERIES_FILTER:vie,STATISTIC:mie},VISUAL:{LAYOUT:EL,PROGRESSIVE_LAYOUT:yie,GLOBAL:ex,CHART:LL,POST_CHART_LAYOUT:wie,COMPONENT:_ie,BRUSH:bie,CHART_ITEM:q0,ARIA:xie,DECAL:kL}},jr="__flagInMainProcess",bn="__pendingUpdate",tx="__needsUpdateStatus",PL=/^[a-zA-Z0-9_]+$/,rx="__connectUpdateStatus",NL=0,Tie=1,Aie=2;function OL(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){Nn(this.id);return}return VL(this,r,e)}}function RL(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return VL(this,r,e)}}function VL(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Un.prototype[e].apply(r,t)}var zL=function(r){Y(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(Un),BL=zL.prototype;BL.on=RL("on"),BL.off=RL("off");var Wc,nx,j0,us,ix,ax,ox,cv,fv,FL,HL,sx,GL,K0,WL,ZL,ii,UL,YL=function(r){Y(e,r);function e(t,n,i){var a=r.call(this,new Pne)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},me(n)&&(n=XL[n]),a._dom=t;var o="canvas",s="auto",l=!1;if(process.env.NODE_ENV!=="production"){var u=Je.hasGlobalWindow?window:global;u&&(o=Ve(u.__ECHARTS__DEFAULT__RENDERER__,o),s=Ve(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=Ve(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}i.ssr&&p$(function(v){var d=ze(v),g=d.dataIndex;if(g!=null){var p=Se();return p.set("series_index",d.seriesIndex),p.set("data_index",g),d.ssrType&&p.set("ssr_type",d.ssrType),p}});var c=a._zr=NI(t,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Ve(i.useDirtyRect,l),useCoarsePointer:Ve(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Xb(ye(c.flush,c),17),n=Oe(n),n&&u3(n,!0),a._theme=n,a._locale=Gte(i.locale||T6),a._coordSysMgr=new Pc;var f=a._api=WL(a);function h(v,d){return v.__prio-d.__prio}return Sg(Q0,h),Sg(ux,h),a._scheduler=new tL(a,f,ux,Q0),a._messageCenter=new zL,a._initEvents(),a.resize=ye(a.resize,a),c.animation.on("frame",a._onframe,a),FL(c,a),HL(c,a),pg(a),a}return e.prototype._onframe=function(){if(!this._disposed){UL(this);var t=this._scheduler;if(this[bn]){var n=this[bn].silent;this[jr]=!0;try{Wc(this),us.update.call(this,null,this[bn].updateParams)}catch(l){throw this[jr]=!1,this[bn]=null,l}this._zr.flush(),this[jr]=!1,this[bn]=null,cv.call(this,n),fv.call(this,n)}else if(t.unfinished){var i=hie,a=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(a),t.performDataProcessorTasks(a),ax(this,a),t.performVisualTasks(a),K0(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,n,i){if(this[jr]){process.env.NODE_ENV!=="production"&&Or("`setOption` should not be called during main process.");return}if(this._disposed){Nn(this.id);return}var a,o,s;if(Le(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[jr]=!0,!this._model||n){var l=new pre(this._api),u=this._theme,c=this._model=new Lb;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},cx);var f={seriesTransition:s,optionChanged:!0};if(i)this[bn]={silent:a,updateParams:f},this[jr]=!1,this.getZr().wakeUp();else{try{Wc(this),us.update.call(this,null,f)}catch(h){throw this[bn]=null,this[jr]=!1,h}this._ssr||this._zr.flush(),this[bn]=null,this[jr]=!1,cv.call(this,a),fv.call(this,a)}},e.prototype.setTheme=function(){ki("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Je.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return process.env.NODE_ENV!=="production"&&cr("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(Je.svgSupported){var t=this._zr,n=t.storage.getDisplayList();return N(n,function(i){i.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){Nn(this.id);return}t=t||{};var n=t.excludeComponents,i=this._model,a=[],o=this;N(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return N(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){Nn(this.id);return}var n=t.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(qL[i]){var l=s,u=s,c=-s,f=-s,h=[],v=t&&t.pixelRatio||this.getDevicePixelRatio();N(vv,function(_,w){if(_.group===i){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Oe(t)),x=_.getDom().getBoundingClientRect();l=a(x.left,l),u=a(x.top,u),c=o(x.right,c),f=o(x.bottom,f),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,c*=v,f*=v;var d=c-l,g=f-u,p=Go.createCanvas(),m=NI(p,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:g}),n){var y="";return N(h,function(_){var w=_.left-l,b=_.top-u;y+='<g transform="translate('+w+","+b+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&m.painter.setBackgroundColor(t.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return t.connectedBackgroundColor&&m.add(new st({shape:{x:0,y:0,width:d,height:g},style:{fill:t.connectedBackgroundColor}})),N(h,function(_){var w=new Er({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});m.add(w)}),m.refreshImmediately(),p.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,n){return ix(this,"convertToPixel",t,n)},e.prototype.convertFromPixel=function(t,n){return ix(this,"convertFromPixel",t,n)},e.prototype.containPixel=function(t,n){if(this._disposed){Nn(this.id);return}var i=this._model,a,o=Lh(i,t);return N(o,function(s,l){l.indexOf("Models")>=0&&N(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint?a=a||f.containPoint(n,u):process.env.NODE_ENV!=="production"&&Xt(l+": "+(f?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&Xt(l+": containPoint is not supported")},this)},this),!!a},e.prototype.getVisual=function(t,n){var i=this._model,a=Lh(i,t,{defaultMainType:"series"}),o=a.seriesModel;process.env.NODE_ENV!=="production"&&(o||Xt("There is no specified series model"));var s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?jb(s,l,n):lv(s,n)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;N(Cie,function(n){var i=function(a){var o=t.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Rl(s,function(d){var g=ze(d);if(g&&g.dataIndex!=null){var p=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=p&&p.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=$({},g.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var h=c&&f!=null&&o.getComponent(c,f),v=h&&t[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];process.env.NODE_ENV!=="production"&&!u&&!(h&&v)&&Xt("model or view can not be found by params"),l.event=a,l.type=n,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},t.trigger(n,l)}};i.zrEventfulCallAtLast=!0,t._zr.on(n,i,t)}),N(hv,function(n,i){t._messageCenter.on(i,function(a){this.trigger(i,a)},t)}),N(["selectchanged"],function(n){t._messageCenter.on(n,function(i){this.trigger(n,i)},t)}),Rne(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){Nn(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){Nn(this.id);return}this._disposed=!0;var t=this.getDom();t&&$I(this.getDom(),hx,"");var n=this,i=n._api,a=n._model;N(n._componentsViews,function(o){o.dispose(a,i)}),N(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete vv[n.id]},e.prototype.resize=function(t){if(this[jr]){process.env.NODE_ENV!=="production"&&Or("`resize` should not be called during main process.");return}if(this._disposed){Nn(this.id);return}this._zr.resize(t);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=t&&t.silent;this[bn]&&(a==null&&(a=this[bn].silent),i=!0,this[bn]=null),this[jr]=!0;try{i&&Wc(this),us.update.call(this,{type:"resize",animation:$({duration:0},t&&t.animation)})}catch(o){throw this[jr]=!1,o}this[jr]=!1,cv.call(this,a),fv.call(this,a)}},e.prototype.showLoading=function(t,n){if(this._disposed){Nn(this.id);return}if(Le(t)&&(n=t,t=""),t=t||"default",this.hideLoading(),!fx[t]){process.env.NODE_ENV!=="production"&&Xt("Loading effects "+t+" not exists.");return}var i=fx[t](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)},e.prototype.hideLoading=function(){if(this._disposed){Nn(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var n=$({},t);return n.type=hv[t.type],n},e.prototype.dispatchAction=function(t,n){if(this._disposed){Nn(this.id);return}if(Le(n)||(n={silent:!!n}),!!J0[t.type]&&this._model){if(this[jr]){this._pendingActions.push(t);return}var i=n.silent;ox.call(this,t,i);var a=n.flush;a?this._zr.flush():a!==!1&&Je.browser.weChat&&this._throttledZrFlush(),cv.call(this,i),fv.call(this,i)}},e.prototype.updateLabelLayout=function(){Vi.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){Nn(this.id);return}var n=t.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&ke(t.data&&a),a.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Wc=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),nx(f,!0),nx(f,!1),h.plan()},nx=function(f,h){for(var v=f._model,d=f._scheduler,g=h?f._componentsViews:f._chartsViews,p=h?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,_=0;_<g.length;_++)g[_].__alive=!1;h?v.eachComponent(function(x,S){x!=="series"&&w(S)}):v.eachSeries(w);function w(x){var S=x.__requireNewView;x.__requireNewView=!1;var T="_ec_"+x.id+"_"+x.type,C=!S&&p[T];if(!C){var A=ca(x.type),M=h?Zt.getClass(A.main,A.sub):Dt.getClass(A.sub);process.env.NODE_ENV!=="production"&&ke(M,A.sub+" does not exist."),C=new M,C.init(v,y),p[T]=C,g.push(C),m.add(C.group)}x.__viewId=C.__id=T,C.__alive=!0,C.__model=x,C.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!h&&d.prepareView(C,x,v,y)}for(var _=0;_<g.length;){var b=g[_];b.__alive?_++:(!h&&b.renderTask.dispose(),m.remove(b.group),b.dispose(v,y),g.splice(_,1),p[b.__id]===b&&delete p[b.__id],b.__id=b.group.__ecComponentInfo=null)}},j0=function(f,h,v,d,g){var p=f._model;if(p.setUpdatePayload(v),!d){N([].concat(f._componentsViews).concat(f._chartsViews),b);return}var m={};m[d+"Id"]=v[d+"Id"],m[d+"Index"]=v[d+"Index"],m[d+"Name"]=v[d+"Name"];var y={mainType:d,query:m};g&&(y.subType=g);var _=v.excludeSeriesId,w;_!=null&&(w=Se(),N(St(_),function(x){var S=gr(x,null);S!=null&&w.set(S,!0)})),p&&p.eachComponent(y,function(x){var S=w&&w.get(x.id)!=null;if(!S)if(ZE(v))if(x instanceof Rt)v.type===wl&&!v.notBlur&&!x.get(["emphasis","disabled"])&&Hee(x,v,f._api);else{var T=Qw(x.mainType,x.componentIndex,v.name,f._api),C=T.focusSelf,A=T.dispatchers;v.type===wl&&C&&!v.notBlur&&Jw(x.mainType,x.componentIndex,f._api),A&&N(A,function(M){v.type===wl?$a(M):eo(M)})}else eb(v)&&x instanceof Rt&&(Zee(x,v,f._api),GE(x),ii(f))},f),p&&p.eachComponent(y,function(x){var S=w&&w.get(x.id)!=null;S||b(f[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},f);function b(x){x&&x.__alive&&x[h]&&x[h](x.__model,p,f._api,v)}},us={prepareAndUpdate:function(f){Wc(this),us.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,h){var v=this._model,d=this._api,g=this._zr,p=this._coordSysMgr,m=this._scheduler;if(v){v.setUpdatePayload(f),m.restoreData(v,f),m.performSeriesTasks(v),p.create(v,d),m.performDataProcessorTasks(v,f),ax(this,v),p.update(v,d),t(v),m.performVisualTasks(v,f),sx(this,v,d,f,h);var y=v.get("backgroundColor")||"transparent",_=v.get("darkMode");g.setBackgroundColor(y),_!=null&&_!=="auto"&&g.setDarkMode(_),Vi.trigger("afterupdate",v,d)}},updateTransform:function(f){var h=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(f);var g=[];v.eachComponent(function(m,y){if(m!=="series"){var _=h.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var w=_.updateTransform(y,v,d,f);w&&w.update&&g.push(_)}else g.push(_)}});var p=Se();v.eachSeries(function(m){var y=h._chartsMap[m.__viewId];if(y.updateTransform){var _=y.updateTransform(m,v,d,f);_&&_.update&&p.set(m.uid,1)}else p.set(m.uid,1)}),t(v),this._scheduler.performVisualTasks(v,f,{setDirty:!0,dirtyMap:p}),K0(this,v,d,f,{},p),Vi.trigger("afterupdate",v,d)}},updateView:function(f){var h=this._model;h&&(h.setUpdatePayload(f),Dt.markUpdateMethod(f,"updateView"),t(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0}),sx(this,h,this._api,f,{}),Vi.trigger("afterupdate",h,this._api))},updateVisual:function(f){var h=this,v=this._model;v&&(v.setUpdatePayload(f),v.eachSeries(function(d){d.getData().clearAllVisual()}),Dt.markUpdateMethod(f,"updateVisual"),t(v),this._scheduler.performVisualTasks(v,f,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,g){if(d!=="series"){var p=h.getViewOfComponentModel(g);p&&p.__alive&&p.updateVisual(g,v,h._api,f)}}),v.eachSeries(function(d){var g=h._chartsMap[d.__viewId];g.updateVisual(d,v,h._api,f)}),Vi.trigger("afterupdate",v,this._api))},updateLayout:function(f){us.update.call(this,f)}},ix=function(f,h,v,d){if(f._disposed){Nn(f.id);return}for(var g=f._model,p=f._coordSysMgr.getCoordinateSystems(),m,y=Lh(g,v),_=0;_<p.length;_++){var w=p[_];if(w[h]&&(m=w[h](g,y,d))!=null)return m}process.env.NODE_ENV!=="production"&&Xt("No coordinate system that supports "+h+" found by the given finder.")},ax=function(f,h){var v=f._chartsMap,d=f._scheduler;h.eachSeries(function(g){d.updateStreamModes(g,v[g.__viewId])})},ox=function(f,h){var v=this,d=this.getModel(),g=f.type,p=f.escapeConnect,m=J0[g],y=m.actionInfo,_=(y.update||"update").split(":"),w=_.pop(),b=_[0]!=null&&ca(_[0]);this[jr]=!0;var x=[f],S=!1;f.batch&&(S=!0,x=ne(f.batch,function(P){return P=Ne($({},P),f),P.batch=null,P}));var T=[],C,A=eb(f),M=ZE(f);if(M&&HE(this._api),N(x,function(P){if(C=m.action(P,v._model,v._api),C=C||$({},P),C.type=y.event||C.type,T.push(C),M){var E=Tw(f),O=E.queryOptionMap,V=E.mainTypeSpecified,z=V?O.keys()[0]:"series";j0(v,w,P,z),ii(v)}else A?(j0(v,w,P,"series"),ii(v)):b&&j0(v,w,P,b.main,b.sub)}),w!=="none"&&!M&&!A&&!b)try{this[bn]?(Wc(this),us.update.call(this,f),this[bn]=null):us[w].call(this,f)}catch(P){throw this[jr]=!1,P}if(S?C={type:y.event||g,escapeConnect:p,batch:T}:C=T[0],this[jr]=!1,!h){var k=this._messageCenter;if(k.trigger(C.type,C),A){var L={type:"selectchanged",escapeConnect:p,selected:Uee(d),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};k.trigger(L.type,L)}}},cv=function(f){for(var h=this._pendingActions;h.length;){var v=h.shift();ox.call(this,v,f)}},fv=function(f){!f&&this.trigger("updated")},FL=function(f,h){f.on("rendered",function(v){h.trigger("rendered",v),f.animation.isFinished()&&!h[bn]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},HL=function(f,h){f.on("mouseover",function(v){var d=v.target,g=Rl(d,ts);g&&(Gee(g,v,h._api),ii(h))}).on("mouseout",function(v){var d=v.target,g=Rl(d,ts);g&&(Wee(g,v,h._api),ii(h))}).on("click",function(v){var d=v.target,g=Rl(d,function(y){return ze(y).dataIndex!=null},!0);if(g){var p=g.selected?"unselect":"select",m=ze(g);h._api.dispatchAction({type:p,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function t(f){f.clearColorPalette(),f.eachSeries(function(h){h.clearColorPalette()})}function n(f){var h=[],v=[],d=!1;if(f.eachComponent(function(y,_){var w=_.get("zlevel")||0,b=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(y==="series"?v:h).push({zlevel:w,z:b,idx:_.componentIndex,type:y,key:x})}),d){var g=h.concat(v),p,m;Sg(g,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),N(g,function(y){var _=f.getComponent(y.type,y.idx),w=y.zlevel,b=y.key;p!=null&&(w=Math.max(p,w)),b?(w===p&&b!==m&&w++,m=b):m&&(w===p&&w++,m=""),p=w,_.setZLevel(w)})}}sx=function(f,h,v,d,g){n(h),GL(f,h,v,d,g),N(f._chartsViews,function(p){p.__alive=!1}),K0(f,h,v,d,g),N(f._chartsViews,function(p){p.__alive||p.remove(h,v)})},GL=function(f,h,v,d,g,p){N(p||f._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,h,v,d),s(y,m),c(y,m)})},K0=function(f,h,v,d,g,p){var m=f._scheduler;g=$(g||{},{updatedSeries:h.getSeries()}),Vi.trigger("series:beforeupdate",h,v,g);var y=!1;h.eachSeries(function(_){var w=f._chartsMap[_.__viewId];w.__alive=!0;var b=w.renderTask;m.updatePayload(b,d),u(_,w),p&&p.get(_.uid)&&b.dirty(),b.perform(m.getPerformArgs(b))&&(y=!0),w.group.silent=!!_.get("silent"),o(_,w),GE(_)}),m.unfinished=y||m.unfinished,Vi.trigger("series:layoutlabels",h,v,g),Vi.trigger("series:transition",h,v,g),h.eachSeries(function(_){var w=f._chartsMap[_.__viewId];s(_,w),c(_,w)}),a(f,h),Vi.trigger("series:afterupdate",h,v,g)},ii=function(f){f[tx]=!0,f.getZr().wakeUp()},UL=function(f){f[tx]&&(f.getZr().storage.traverse(function(h){xc(h)||i(h)}),f[tx]=!1)};function i(f){for(var h=[],v=f.currentStates,d=0;d<v.length;d++){var g=v[d];g==="emphasis"||g==="blur"||g==="select"||h.push(g)}f.selected&&f.states.select&&h.push("select"),f.hoverState===t0&&f.states.emphasis?h.push("emphasis"):f.hoverState===Oh&&f.states.blur&&h.push("blur"),f.useStates(h)}function a(f,h){var v=f._zr,d=v.storage,g=0;d.traverse(function(p){p.isGroup||g++}),g>h.get("hoverLayerThreshold")&&!Je.node&&!Je.worker&&h.eachSeries(function(p){if(!p.preventUsingHoverLayer){var m=f._chartsMap[p.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,h){var v=f.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(f,h){if(!f.preventAutoZ){var v=f.get("z")||0,d=f.get("zlevel")||0;h.eachRendered(function(g){return l(g,v,d,-1/0),!0})}}function l(f,h,v,d){var g=f.getTextContent(),p=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),_=0;_<y.length;_++)d=Math.max(l(y[_],h,v,d),d);else f.z=h,f.zlevel=v,d=Math.max(f.z2,d);if(g&&(g.z=h,g.zlevel=v,isFinite(d)&&(g.z2=d+2)),p){var w=f.textGuideLineConfig;p.z=h,p.zlevel=v,isFinite(d)&&(p.z2=d+(w&&w.showAbove?1:-1))}return d}function u(f,h){h.eachRendered(function(v){if(!xc(v)){var d=v.getTextContent(),g=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function c(f,h){var v=f.getModel("stateAnimation"),d=f.isAnimationEnabled(),g=v.get("duration"),p=g>0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(xc(m))return;if(m instanceof Qe&&Kee(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=p;var _=m.getTextContent(),w=m.getTextGuideLine();_&&(_.stateTransition=p),w&&(w.stateTransition=p)}m.__dirty&&i(m)}})}WL=function(f){return new(function(h){Y(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return f._model.getComponent(g.mainType,g.index);d=d.parent}},v.prototype.enterEmphasis=function(d,g){$a(d,g),ii(f)},v.prototype.leaveEmphasis=function(d,g){eo(d,g),ii(f)},v.prototype.enterBlur=function(d){VE(d),ii(f)},v.prototype.leaveBlur=function(d){jw(d),ii(f)},v.prototype.enterSelect=function(d){zE(d),ii(f)},v.prototype.leaveSelect=function(d){BE(d),ii(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},v}(r3))(f)},ZL=function(f){function h(v,d){for(var g=0;g<v.length;g++){var p=v[g];p[rx]=d}}N(hv,function(v,d){f._messageCenter.on(d,function(g){if(qL[f.group]&&f[rx]!==NL){if(g&&g.escapeConnect)return;var p=f.makeActionFromEvent(g),m=[];N(vv,function(y){y!==f&&y.group===f.group&&m.push(y)}),h(m,NL),N(m,function(y){y[rx]!==Tie&&y.dispatchAction(p)}),h(m,Aie)}})})}}(),e}(Un),lx=YL.prototype;lx.on=OL("on"),lx.off=OL("off"),lx.one=function(r,e,t){var n=this;ki("ECharts#one is deprecated.");function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(r,i)}this.on.call(this,r,i,t)};var Cie=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Nn(r){process.env.NODE_ENV!=="production"&&Xt("Instance "+r+" has been disposed")}var J0={},hv={},ux=[],cx=[],Q0=[],XL={},fx={},vv={},qL={},Die=+new Date-0,hx="_echarts_instance_";function Mie(r,e,t){var n=!(t&&t.ssr);if(n){if(process.env.NODE_ENV!=="production"&&!r)throw new Error("Initialize failed: invalid dom.");var i=Iie(r);if(i)return process.env.NODE_ENV!=="production"&&Xt("There is a chart instance already initialized on the dom."),i;process.env.NODE_ENV!=="production"&&js(r)&&r.nodeName.toUpperCase()!=="CANVAS"&&(!r.clientWidth&&(!t||t.width==null)||!r.clientHeight&&(!t||t.height==null))&&Xt("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var a=new YL(r,e,t);return a.id="ec_"+Die++,vv[a.id]=a,n&&$I(r,hx,a.id),ZL(a),Vi.trigger("afterinit",a),a}function Iie(r){return vv[z$(r,hx)]}function jL(r,e){XL[r]=e}function KL(r){qe(cx,r)<0&&cx.push(r)}function JL(r,e){dx(ux,r,e,gie)}function Eie(r){vx("afterinit",r)}function Lie(r){vx("afterupdate",r)}function vx(r,e){Vi.on(r,e)}function ya(r,e,t){Me(e)&&(t=e,e="");var n=Le(r)?r.type:[r,r={event:e}][0];r.event=(r.event||n).toLowerCase(),e=r.event,!hv[e]&&(ke(PL.test(n)&&PL.test(e)),J0[n]||(J0[n]={action:t,actionInfo:r}),hv[e]=n)}function kie(r,e){Pc.register(r,e)}function Pie(r,e){dx(Q0,r,e,EL,"layout")}function Fl(r,e){dx(Q0,r,e,LL,"visual")}var QL=[];function dx(r,e,t,n,i){if((Me(e)||Le(e))&&(t=e,e=n),process.env.NODE_ENV!=="production"){if(isNaN(e)||e==null)throw new Error("Illegal priority");N(r,function(o){ke(o.__raw!==t)})}if(!(qe(QL,t)>=0)){QL.push(t);var a=tL.wrapStageHandler(t,i);a.__prio=e,a.__raw=t,r.push(a)}}function $L(r,e){fx[r]=e}function Nie(r,e,t){var n=fie("registerMap");n&&n(r,e,t)}var Oie=Xre;Fl(ex,_ne),Fl(q0,wne),Fl(q0,bne),Fl(ex,Nne),Fl(q0,One),Fl(kL,uie),KL(u3),JL(die,Dre),$L("default",xne),ya({type:wl,event:wl,update:wl},nr),ya({type:r0,event:r0,update:r0},nr),ya({type:Vh,event:Vh,update:Vh},nr),ya({type:n0,event:n0,update:n0},nr),ya({type:zh,event:zh,update:zh},nr),jL("light",kne),jL("dark",lL);var ek=[],Rie={registerPreprocessor:KL,registerProcessor:JL,registerPostInit:Eie,registerPostUpdate:Lie,registerUpdateLifecycle:vx,registerAction:ya,registerCoordinateSystem:kie,registerLayout:Pie,registerVisual:Fl,registerTransform:Oie,registerLoading:$L,registerMap:Nie,registerImpl:cie,PRIORITY:Sie,ComponentModel:$e,ComponentView:Zt,SeriesModel:Rt,ChartView:Dt,registerComponentModel:function(r){$e.registerClass(r)},registerComponentView:function(r){Zt.registerClass(r)},registerSeriesModel:function(r){Rt.registerClass(r)},registerChartView:function(r){Dt.registerClass(r)},registerSubTypeDefaulter:function(r,e){$e.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){v$(r,e)}};function je(r){if(re(r)){N(r,function(e){je(e)});return}qe(ek,r)>=0||(ek.push(r),Me(r)&&(r={install:r}),r.install(Rie))}function dv(r){return r==null?0:r.length||1}function tk(r){return r}var io=function(){function r(e,t,n,i,a,o){this._old=e,this._new=t,this._oldKeyGetter=n||tk,this._newKeyGetter=i||tk,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},i=new Array(e.length),a=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=dv(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],c=i[l],f=dv(u),h=dv(c);if(f>1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var v=0;v<f;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},r.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var i=e[n],a=t[i],o=dv(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);t[i]=null}},r.prototype._initIndexMap=function(e,t,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!t){var l=t[s],u=dv(l);u===0?(t[s]=o,a&&n.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r}(),Vie=function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function zie(r,e){var t={},n=t.encode={},i=Se(),a=[],o=[],s={};N(r.dimensions,function(h){var v=r.getDimensionInfo(h),d=v.coordDim;if(d){process.env.NODE_ENV!=="production"&&ke(Tb.get(d)==null);var g=v.coordDimIndex;px(n,d)[g]=h,v.isExtraCoord||(i.set(d,1),Bie(v.type)&&(a[0]=h),px(s,d)[g]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}Tb.each(function(p,m){var y=px(n,m),_=v.otherDims[m];_!=null&&_!==!1&&(y[_]=v.name)})});var l=[],u={};i.each(function(h,v){var d=n[v];u[v]=d[0],l=l.concat(d)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=ne(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),t.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(a=c.slice());var f=n.tooltip;return f&&f.length?o=f.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,t.userOutput=new Vie(s,e),t}function px(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function $0(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function Bie(r){return!(r==="ordinal"||r==="time")}var em=function(){function r(e){this.otherDims={},e!=null&&$(this,e)}return r}(),Fie=ot(),Hie={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},rk=function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=ak(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return Ve(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=v3(this.source),n=!ok(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=t?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=t?h.name:null,u=h.type)}a.push({property:l,type:u,ordinalMeta:c}),t&&l!=null&&(!f||!f.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=Hie[u]||"f",c&&(i+=c.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:a,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===t)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(t);o&&(i=o.name)}e.push(i)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function nk(r){return r instanceof rk}function ik(r){for(var e=Se(),t=0;t<(r||[]).length;t++){var n=r[t],i=Le(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,t)}return e}function ak(r){var e=Fie(r);return e.dimNameMap||(e.dimNameMap=ik(r.dimensionsDefine))}function ok(r){return r>30}var pv=Le,cs=ne,Gie=typeof Int32Array>"u"?Array:Int32Array,Wie="e\0\0",sk=-1,Zie=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Uie=["_approximateExtent"],lk,tm,gv,Zc,gx,mv,mx,fn=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;nk(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c<n.length;c++){var f=n[c],h=me(f)?new em({name:f}):f instanceof em?f:new em(f),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),a[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=c),d.itemId===0&&(this._idDimIdx=c),process.env.NODE_ENV!=="production"&&ke(i||h.storeDimIndex>=0),i&&(h.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=Se();N(o,function(p){g.set(a[p].storeDimIndex,p)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var i=this._schema.getSourceDimension(t);if(i)return i.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(ct(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);if(process.env.NODE_ENV!=="production"&&t==null)throw new Error("Unknown dimension "+e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(n){return t.hasOwnProperty(n)?t[n]:void 0}:function(n){return t[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,n){var i=this,a;if(e instanceof Gb&&(a=e),!a){var o=this.dimensions,s=Ob(e)||Zr(e)?new g3(e,o.length):e;a=new Gb;var l=cs(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=zie(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=t[l],o&&mx(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var i=this._dimInfos[t[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==ro&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===ei;if(l&&!i.pure)for(var u=[],c=e;c<t;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&A$(f)&&(this.hasItemOption=!0),f){var h=f.name;a[c]==null&&h!=null&&(a[c]=gr(h,null));var v=f.id;o[c]==null&&v!=null&&(o[c]=gr(v,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<t;c++)mx(this,c);lk(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){pv(e)?$(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=gv(this,this._nameDimIdx,t)),n==null&&(n=""),n},r.prototype._getCategory=function(e,t){var n=this._store.get(e,t),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},r.prototype.getId=function(e){return tm(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var n=this,i=this._store;return re(e)?i.getValues(cs(e,function(a){return n._getStoreDimIndex(a)}),t):i.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,i=t.length;n<i;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Do not supported yet");var i=n&&n[t];return i==null||isNaN(i)?sk:i},r.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},r.prototype.each=function(e,t,n){Me(e)&&(n=t,t=e,e=[]);var i=n||this,a=cs(Zc(e),this._getStoreDimIndex,this);this._store.each(a,i?ye(t,i):t)},r.prototype.filterSelf=function(e,t,n){Me(e)&&(n=t,t=e,e=[]);var i=n||this,a=cs(Zc(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?ye(t,i):t),this},r.prototype.selectRange=function(e){var t=this,n={},i=nt(e);return N(i,function(a){var o=t._getStoreDimIndex(a);n[o]=e[a]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(e,t,n){Me(e)&&(n=t,t=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(t&&t.apply(this,arguments))},n),i},r.prototype.map=function(e,t,n,i){var a=n||i||this,o=cs(Zc(e),this._getStoreDimIndex,this),s=mv(this);return s._store=this._store.map(o,a?ye(t,a):t),s},r.prototype.modify=function(e,t,n,i){var a=this,o=n||i||this;process.env.NODE_ENV!=="production"&&N(Zc(e),function(l){var u=a.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=cs(Zc(e),this._getStoreDimIndex,this);this._store.modify(s,o?ye(t,o):t)},r.prototype.downSample=function(e,t,n,i){var a=mv(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),t,n,i),a},r.prototype.minmaxDownSample=function(e,t){var n=mv(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},r.prototype.lttbDownSample=function(e,t){var n=mv(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new bt(n,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new io(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return tm(e,n)},function(n){return tm(t,n)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},pv(e)?$(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],i=n&&n[t];return i??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[t];return a==null&&(a=this.getVisual(t),re(a)?a=a.slice():pv(a)&&(a=$({},a)),i[t]=a),a},r.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,pv(t)?$(i,t):i[t]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){pv(e)?$(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?$(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;Zw(n,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){N(this._graphicEls,function(n,i){n&&e&&e.call(t,n,i)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:cs(this.dimensions,this._getDimInfo,this),this.hostModel)),gx(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var n=this[e];Me(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return t.apply(this,[i].concat(S2(arguments)))})},r.internalField=function(){lk=function(e){var t=e._invertedIndicesMap;N(t,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=t[i]=new Gie(o.categories.length);for(var l=0;l<n.length;l++)n[l]=sk;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},gv=function(e,t,n){return gr(e._getCategory(t,n),null)},tm=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=gv(e,e._idDimIdx,t)),n==null&&(n=Wie+t),n},Zc=function(e){return re(e)||(e=e!=null?[e]:[]),e},mv=function(e){var t=new r(e._schema?e._schema:cs(e.dimensions,e._getDimInfo,e),e.hostModel);return gx(t,e),t},gx=function(e,t){N(Zie.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,N(Uie,function(n){e[n]=Oe(t[n])}),e._calculationInfo=$({},t._calculationInfo)},mx=function(e,t){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[t],l=i[t];if(s==null&&a!=null&&(n[t]=s=gv(e,a,t)),l==null&&o!=null&&(i[t]=l=gv(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[t]=l}}}(),r}();function yv(r,e){Ob(r)||(r=Vb(r)),e=e||{};var t=e.coordDimensions||[],n=e.dimensionsDefine||r.dimensionsDefine||[],i=Se(),a=[],o=Xie(r,t,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&ok(o),l=n===r.dimensionsDefine,u=l?ak(r):ik(n),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(r,o));for(var f=Se(c),h=new M3(o),v=0;v<h.length;v++)h[v]=-1;function d(C){var A=h[C];if(A<0){var M=n[C],k=Le(M)?M:{name:M},L=new em,P=k.name;P!=null&&u.get(P)!=null&&(L.name=L.displayName=P),k.type!=null&&(L.type=k.type),k.displayName!=null&&(L.displayName=k.displayName);var E=a.length;return h[C]=E,L.storeDimIndex=C,a.push(L),L}return a[A]}if(!s)for(var v=0;v<o;v++)d(v);f.each(function(C,A){var M=St(C).slice();if(M.length===1&&!me(M[0])&&M[0]<0){f.set(A,!1);return}var k=f.set(A,[]);N(M,function(L,P){var E=me(L)?u.get(L):L;E!=null&&E<o&&(k[P]=E,p(d(E),A,P))})});var g=0;N(t,function(C){var A,M,k,L;if(me(C))A=C,L={};else{L=C,A=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=$({},L),L.ordinalMeta=P,M=L.dimsDef,k=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var E=f.get(A);if(E!==!1){if(E=St(E),!E.length)for(var O=0;O<(M&&M.length||1);O++){for(;g<o&&d(g).coordDim!=null;)g++;g<o&&E.push(g++)}N(E,function(V,z){var H=d(V);if(l&&L.type!=null&&(H.type=L.type),p(Ne(H,L),A,z),H.name==null&&M){var B=M[z];!Le(B)&&(B={name:B}),H.name=H.displayName=B.name,H.defaultTooltip=B.defaultTooltip}k&&Ne(H.otherDims,k)})}});function p(C,A,M){Tb.get(A)!=null?C.otherDims[A]=M:(C.coordDim=A,C.coordDimIndex=M,i.set(A,!0))}var m=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=m?y||1:0;var w=m||"value";function b(C){C.name==null&&(C.name=C.coordDim)}if(s)N(a,function(C){b(C)}),a.sort(function(C,A){return C.storeDimIndex-A.storeDimIndex});else for(var x=0;x<o;x++){var S=d(x),T=S.coordDim;T==null&&(S.coordDim=qie(w,i,_),S.coordDimIndex=0,(!m||y<=0)&&(S.isExtraCoord=!0),y--),b(S),S.type==null&&(X6(r,x)===zr.Must||S.isExtraCoord&&(S.otherDims.itemName!=null||S.otherDims.seriesName!=null))&&(S.type="ordinal")}return Yie(a),new rk({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function Yie(r){for(var e=Se(),t=0;t<r.length;t++){var n=r[t],i=n.name,a=e.get(i)||0;a>0&&(n.name=i+(a-1)),a++,e.set(i,a)}}function Xie(r,e,t,n){var i=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,n||0);return N(e,function(a){var o;Le(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function qie(r,e,t){if(t||e.hasKey(r)){for(var n=0;e.hasKey(r+n);)n++;r+=n}return e.set(r,!0),r}var jie=function(){function r(e){this.coordSysDims=[],this.axisMap=Se(),this.categoryAxisMap=Se(),this.coordSysName=e}return r}();function Kie(r){var e=r.get("coordinateSystem"),t=new jie(e),n=Jie[e];if(n)return n(r,t,t.axisMap,t.categoryAxisMap),t}var Jie={cartesian2d:function(r,e,t,n){var i=r.getReferringComponents("xAxis",fr).models[0],a=r.getReferringComponents("yAxis",fr).models[0];if(process.env.NODE_ENV!=="production"){if(!i)throw new Error('xAxis "'+ur(r.get("xAxisIndex"),r.get("xAxisId"),0)+'" not found');if(!a)throw new Error('yAxis "'+ur(r.get("xAxisIndex"),r.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],t.set("x",i),t.set("y",a),Uc(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),Uc(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,n){var i=r.getReferringComponents("singleAxis",fr).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],t.set("single",i),Uc(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(r,e,t,n){var i=r.getReferringComponents("polar",fr).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!o)throw new Error("angleAxis option not found");if(!a)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],t.set("radius",a),t.set("angle",o),Uc(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),Uc(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,n){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();N(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];t.set(c,u),Uc(u)&&(n.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Uc(r){return r.get("type")==="category"}function Qie(r,e,t){t=t||{};var n=t.byIndex,i=t.stackedCoordDimension,a,o,s;$ie(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,c,f,h;if(N(a,function(y,_){me(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,d=c.type,g=0;N(a,function(y){y.coordDim===v&&g++});var p={name:f,coordDim:v,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:h,coordDim:h,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(h,d),m.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(m)):(a.push(p),a.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:f}}function $ie(r){return!nk(r.schema)}function fs(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function uk(r,e){return fs(r,e)?r.getCalculationInfo("stackResultDimension"):e}function eae(r,e){var t=r.get("coordinateSystem"),n=Pc.get(t),i;return e&&e.coordSysDims&&(i=ne(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=$0(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function tae(r,e,t){var n,i;return t&&N(r,function(a,o){var s=a.coordDim,l=t.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function ao(r,e,t){t=t||{};var n=e.getSourceManager(),i,a=!1;r?(a=!0,i=Vb(r)):(i=n.getSource(),a=i.sourceFormat===ei);var o=Kie(e),s=eae(e,o),l=t.useEncodeDefaulter,u=Me(l)?l:l?He(Y6,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=yv(i,c),h=tae(f.dimensions,t.createInvertedIndices,o),v=a?null:n.getSharedDataStore(f),d=Qie(e,{schema:f,store:v}),g=new fn(f,e);g.setCalculationInfo(d);var p=h!=null&&rae(i)?function(m,y,_,w){return w===h?_:this.defaultDimValueGetter(m,y,_,w)}:null;return g.hasItemOption=!1,g.initData(a?i:v,null,p),g}function rae(r){if(r.sourceFormat===ei){var e=nae(r.data||[]);return!re(vc(e))}}function nae(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var _a=function(){function r(e){this._setting=e||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();Xg(_a);var iae=0,yx=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++iae}return r.createByAxisModel=function(e){var t=e.option,n=t.data,i=n&&ne(n,aae);return new r({categories:i,needCollect:!i,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!me(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return t=i.get(e),t==null&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Se(this.categories))},r}();function aae(r){return Le(r)&&r.value!=null?r.value:r+""}function oae(r){var e=Math.pow(10,Ug(Math.abs(r))),t=Math.abs(r/e);return t===0||t===1||t===2||t===3||t===5}function _x(r){return r.type==="interval"||r.type==="log"}function sae(r,e,t,n){var i={},a=r[1]-r[0],o=i.interval=BI(a/e);t!=null&&o<t&&(o=i.interval=t),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=ck(o),l=i.niceTickExtent=[Qt(Math.ceil(r[0]/o)*o,s),Qt(Math.floor(r[1]/o)*o,s)];return lae(l,r),i}function bx(r){var e=Math.pow(10,Ug(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Qt(t*e)}function ck(r){return la(r)+2}function fk(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function lae(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),fk(r,0,e),fk(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function rm(r,e){return r>=e[0]&&r<=e[1]}function nm(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function im(r,e){return r*(e[1]-e[0])+e[0]}var am=function(r){Y(e,r);function e(t){var n=r.call(this,t)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new yx({})),re(i)&&(i=new yx({categories:ne(i,function(a){return Le(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return e.prototype.parse=function(t){return t==null?NaN:me(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),rm(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),nm(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(im(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],n=this._extent,i=n[0];i<=n[1];)t.push({value:i}),i++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var c=0;o<s;++o){for(;a[c]!=null;)c++;i.push(c),a[c]=o}},e.prototype._getTickNumber=function(t){var n=this._ticksByOrdinalNumber;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getRawOrdinalNumber=function(t){var n=this._ordinalNumbersByTick;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var n=this.getRawOrdinalNumber(t.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(_a);_a.registerClass(am);var Hl=Qt,oo=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return rm(t,this._extent)},e.prototype.normalize=function(t){return nm(t,this._extent)},e.prototype.scale=function(t){return im(t,this._extent)},e.prototype.setExtent=function(t,n){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(n)||(i[1]=parseFloat(n))},e.prototype.unionExtent=function(t){var n=this._extent;t[0]<n[0]&&(n[0]=t[0]),t[1]>n[1]&&(n[1]=t[1]),this.setExtent(n[0],n[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=ck(t)},e.prototype.getTicks=function(t){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(t?s.push({value:Hl(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Hl(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(t?s.push({value:Hl(c+n,o)}):s.push({value:i[1]})),s},e.prototype.getMinorTicks=function(t){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,c=[],f=s.value-l.value,h=f/t;u<t-1;){var v=Hl(l.value+(u+1)*h);v>a[0]&&v<a[1]&&c.push(v),u++}i.push(c)}return i},e.prototype.getLabel=function(t,n){if(t==null)return"";var i=n&&n.precision;i==null?i=la(t.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Hl(t.value,i,!0);return V6(a)},e.prototype.calcNiceTicks=function(t,n,i){t=t||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=sae(a,t,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);t.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(n[0]=Hl(Math.floor(n[0]/o)*o)),t.fixMax||(n[1]=Hl(Math.ceil(n[1]/o)*o))},e.prototype.setNiceExtent=function(t,n){this._niceExtent=[t,n]},e.type="interval",e}(_a);_a.registerClass(oo);var hk=typeof Float32Array<"u",uae=hk?Float32Array:Array;function wa(r){return re(r)?hk?new Float32Array(r):r:new uae(r)}var xx="__ec_stack_";function vk(r){return r.get("stack")||xx+r.seriesIndex}function Sx(r){return r.dim+r.index}function cae(r){var e=[],t=r.axis,n="axis0";if(t.type==="category"){for(var i=t.getBandWidth(),a=0;a<r.count;a++)e.push(Ne({bandWidth:i,axisKey:n,stackId:xx+a},r));for(var o=gk(e),s=[],a=0;a<r.count;a++){var l=o[n][xx+a];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function dk(r,e){var t=[];return e.eachSeriesByType(r,function(n){_k(n)&&t.push(n)}),t}function fae(r){var e={};N(r,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),h=c.dim+"_"+c.index,v=f.getDimensionIndex(f.mapDimension(c.dim)),d=f.getStore(),g=0,p=d.count();g<p;++g){var m=d.get(v,g);e[h]?e[h].push(m):e[h]=[m]}});var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}t[n]=a}}return t}function pk(r){var e=fae(r),t=[];return N(r,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=e[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=de(n.get("barWidth"),s),g=de(n.get("barMaxWidth"),s),p=de(n.get("barMinWidth")||(wk(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");t.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:p,barGap:m,barCategoryGap:y,axisKey:Sx(a),stackId:vk(n)})}),gk(t)}function gk(r){var e={};N(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var t={};return N(e,function(n,i){t[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=nt(a).length;s=Math.max(35-l*4,15)+"%"}var u=de(s,o),c=de(n.gap,1),f=n.remainedWidth,h=n.autoWidthCount,v=(f-u)/(h+(h-1)*c);v=Math.max(v,0),N(a,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var w=m.width;y&&(w=Math.min(w,y)),_&&(w=Math.max(w,_)),m.width=w,f-=w+c*w,h--}else{var w=v;y&&y<w&&(w=Math.min(y,f)),_&&_>w&&(w=_),w!==v&&(m.width=w,f-=w+c*w,h--)}}),v=(f-u)/(h+(h-1)*c),v=Math.max(v,0);var d=0,g;N(a,function(m,y){m.width||(m.width=v),g=m,d+=m.width*(1+c)}),g&&(d-=g.width*c);var p=-d/2;N(a,function(m,y){t[i][y]=t[i][y]||{bandWidth:o,offset:p,width:m.width},p+=m.width*(1+c)})}),t}function hae(r,e,t){if(r&&e){var n=r[Sx(e)];return n}}function mk(r,e){var t=dk(r,e),n=pk(t);N(t,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=vk(i),u=n[Sx(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function yk(r){return{seriesType:r,plan:Vc(),reset:function(e){if(_k(e)){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=t.getDimensionIndex(t.mapDimension(a.dim)),s=t.getDimensionIndex(t.mapDimension(i.dim)),l=e.get("showBackground",!0),u=t.mapDimension(a.dim),c=t.getCalculationInfo("stackResultDimension"),f=fs(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),v=vae(i,a),d=wk(e),g=e.get("barMinHeight")||0,p=c&&t.getDimensionIndex(c),m=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(_,w){for(var b=_.count,x=d&&wa(b*3),S=d&&l&&wa(b*3),T=d&&wa(b),C=n.master.getRect(),A=h?C.width:C.height,M,k=w.getStore(),L=0;(M=_.next())!=null;){var P=k.get(f?p:o,M),E=k.get(s,M),O=v,V=void 0;f&&(V=+P-k.get(o,M));var z=void 0,H=void 0,B=void 0,F=void 0;if(h){var ee=n.dataToPoint([P,E]);if(f){var ae=n.dataToPoint([V,E]);O=ae[0]}z=O,H=ee[1]+y,B=ee[0]-O,F=m,Math.abs(B)<g&&(B=(B<0?-1:1)*g)}else{var ee=n.dataToPoint([E,P]);if(f){var ae=n.dataToPoint([E,V]);O=ae[1]}z=ee[0]+y,H=O,B=m,F=ee[1]-O,Math.abs(F)<g&&(F=(F<=0?-1:1)*g)}d?(x[L]=z,x[L+1]=H,x[L+2]=h?B:F,S&&(S[L]=h?C.x:z,S[L+1]=h?H:C.y,S[L+2]=A),T[M]=M):w.setItemLayout(M,{x:z,y:H,width:B,height:F}),L+=3}d&&w.setLayout({largePoints:x,largeDataIndices:T,largeBackgroundPoints:S,valueAxisHorizontal:h})}}}}}}function _k(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function wk(r){return r.pipelineContext&&r.pipelineContext.large}function vae(r,e){var t=e.model.get("startValue");return t||(t=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?t>0?t:1:t))}var dae=function(r,e,t,n){for(;t<n;){var i=t+n>>>1;r[i][1]<e?t=i+1:n=i}return t},Tx=function(r){Y(e,r);function e(t){var n=r.call(this,t)||this;return n.type="time",n}return e.prototype.getLabel=function(t){var n=this.getSetting("useUTC");return T0(t.value,D6[Ute(Dc(this._minLevelUnit))]||D6.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return Yte(t,n,i,o,a)},e.prototype.getTicks=function(){var t=this._interval,n=this._extent,i=[];if(!t)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=bae(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},e.prototype.calcNiceExtent=function(t){var n=this._extent;if(n[0]===n[1]&&(n[0]-=$n,n[1]+=$n),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-$n}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,n,i){t=t||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/t,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=om.length,l=Math.min(dae(om,this._approxInterval,0,s),s-1);this._interval=om[l][1],this._minLevelUnit=om[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return ct(t)?t:+ua(t)},e.prototype.contain=function(t){return rm(this.parse(t),this._extent)},e.prototype.normalize=function(t){return nm(this.parse(t),this._extent)},e.prototype.scale=function(t){return im(t,this._extent)},e.type="time",e}(oo),om=[["second",mb],["minute",yb],["hour",jh],["quarter-day",jh*6],["half-day",jh*12],["day",$n*1.2],["half-week",$n*3.5],["week",$n*7],["month",$n*31],["quarter",$n*95],["half-year",C6/2],["year",C6]];function pae(r,e,t,n){var i=ua(e),a=ua(t),o=function(d){return E6(i,d,n)===E6(a,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},h=function(){return f()&&o("second")},v=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return h();case"millisecond":return v()}}function gae(r,e){return r/=$n,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function mae(r){var e=30*$n;return r/=e,r>6?6:r>3?3:r>2?2:1}function yae(r){return r/=jh,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function bk(r,e){return r/=e?yb:mb,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function _ae(r){return BI(r)}function wae(r,e,t){var n=new Date(r);switch(Dc(e)){case"year":case"month":n[L6(t)](0);case"day":n[k6(t)](1);case"hour":n[P6(t)](0);case"minute":n[N6(t)](0);case"second":n[O6(t)](0),n[R6(t)](0)}return n.getTime()}function bae(r,e,t,n){var i=1e4,a=M6,o=0;function s(A,M,k,L,P,E,O){for(var V=new Date(M),z=M,H=V[L]();z<k&&z<=n[1];)O.push({value:z}),H+=A,V[P](H),z=V.getTime();O.push({value:z,notAdd:!0})}function l(A,M,k){var L=[],P=!M.length;if(!pae(Dc(A),n[0],n[1],t)){P&&(M=[{value:wae(new Date(n[0]),A,t)},{value:n[1]}]);for(var E=0;E<M.length-1;E++){var O=M[E].value,V=M[E+1].value;if(O!==V){var z=void 0,H=void 0,B=void 0,F=!1;switch(A){case"year":z=Math.max(1,Math.round(e/$n/365)),H=wb(t),B=Xte(t);break;case"half-year":case"quarter":case"month":z=mae(e),H=Mc(t),B=L6(t);break;case"week":case"half-week":case"day":z=gae(e),H=A0(t),B=k6(t),F=!0;break;case"half-day":case"quarter-day":case"hour":z=yae(e),H=Jh(t),B=P6(t);break;case"minute":z=bk(e,!0),H=C0(t),B=N6(t);break;case"second":z=bk(e,!1),H=D0(t),B=O6(t);break;case"millisecond":z=_ae(e),H=M0(t),B=R6(t);break}s(z,O,V,H,B,F,L),A==="year"&&k.length>1&&E===0&&k.unshift({value:k[0].value-z})}}for(var E=0;E<L.length;E++)k.push(L[E]);return L}}for(var u=[],c=[],f=0,h=0,v=0;v<a.length&&o++<i;++v){var d=Dc(a[v]);if(Zte(a[v])){l(a[v],u[u.length-1]||[],c);var g=a[v+1]?Dc(a[v+1]):null;if(d!==g){if(c.length){h=f,c.sort(function(A,M){return A.value-M.value});for(var p=[],m=0;m<c.length;++m){var y=c[m].value;(m===0||c[m-1].value!==y)&&(p.push(c[m]),y>=n[0]&&y<=n[1]&&f++)}var _=(n[1]-n[0])/e;if(f>_*1.5&&h>_/1.5||(u.push(p),f>_||r===a[v]))break}c=[]}}}process.env.NODE_ENV!=="production"&&o>=i&&Xt("Exceed safe limit.");for(var w=pt(ne(u,function(A){return pt(A,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(A){return A.length>0}),b=[],x=w.length-1,v=0;v<w.length;++v)for(var S=w[v],T=0;T<S.length;++T)b.push({value:S[T].value,level:x-v});b.sort(function(A,M){return A.value-M.value});for(var C=[],v=0;v<b.length;++v)(v===0||b[v].value!==b[v-1].value)&&C.push(b[v]);return C}_a.registerClass(Tx);var xk=_a.prototype,_v=oo.prototype,xae=Qt,Sae=Math.floor,Tae=Math.ceil,sm=Math.pow,zi=Math.log,Ax=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new oo,t._interval=0,t}return e.prototype.getTicks=function(t){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=_v.getTicks.call(this,t);return ne(o,function(s){var l=s.value,u=Qt(sm(this.base,l));return u=l===i[0]&&this._fixMin?lm(u,a[0]):u,u=l===i[1]&&this._fixMax?lm(u,a[1]):u,{value:u}},this)},e.prototype.setExtent=function(t,n){var i=zi(this.base);t=zi(Math.max(0,t))/i,n=zi(Math.max(0,n))/i,_v.setExtent.call(this,t,n)},e.prototype.getExtent=function(){var t=this.base,n=xk.getExtent.call(this);n[0]=sm(t,n[0]),n[1]=sm(t,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=lm(n[0],a[0])),this._fixMax&&(n[1]=lm(n[1],a[1])),n},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var n=this.base;t[0]=zi(t[0])/zi(n),t[1]=zi(t[1])/zi(n),xk.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.calcNiceTicks=function(t){t=t||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=b$(i),o=t/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Qt(Tae(n[0]/a)*a),Qt(Sae(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){_v.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=zi(t)/zi(this.base),rm(t,this._extent)},e.prototype.normalize=function(t){return t=zi(t)/zi(this.base),nm(t,this._extent)},e.prototype.scale=function(t){return t=im(t,this._extent),sm(this.base,t)},e.type="log",e}(_a),Sk=Ax.prototype;Sk.getMinorTicks=_v.getMinorTicks,Sk.getLabel=_v.getLabel;function lm(r,e){return xae(r,la(e))}_a.registerClass(Ax);var Aae=function(){function r(e,t,n){this._prepareParams(e,t,n)}return r.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var a=t.get("min",!0);a==null&&(a=t.get("startValue",!0));var o=this._modelMinRaw=a;Me(o)?this._modelMinNum=um(e,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=um(e,o));var s=this._modelMaxRaw=t.get("max",!0);if(Me(s)?this._modelMaxNum=um(e,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=um(e,s)),i)this._axisDataLen=t.getCategories().length;else{var l=t.get("boundaryGap"),u=re(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?(process.env.NODE_ENV!=="production"&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[Li(u[0],1),Li(u[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=e?i?0:NaN:t-a[0]*o),l==null&&(l=e?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=Ks(s)||Ks(l)||e&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},r.prototype.modifyDataMinMax=function(e,t){process.env.NODE_ENV!=="production"&&ke(!this.frozen),this[Dae[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var n=Cae[e];process.env.NODE_ENV!=="production"&&ke(!this.frozen&&this[n]==null),this[n]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),Cae={min:"_determinedMin",max:"_determinedMax"},Dae={min:"_dataMin",max:"_dataMax"};function Tk(r,e,t){var n=r.rawExtentInfo;return n||(n=new Aae(r,e,t),r.rawExtentInfo=n,n)}function um(r,e){return e==null?null:Ks(e)?NaN:r.parse(e)}function Ak(r,e){var t=r.type,n=Tk(r,e,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=e.ecModel;if(o&&t==="time"){var s=dk("bar",o),l=!1;if(N(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var u=pk(s),c=Mae(i,a,e,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function Mae(r,e,t,n){var i=t.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=hae(n,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;N(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;N(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-r,f=1-(s+l)/a,h=c/f-c;return e+=h*(l/u),r-=h*(s/u),{min:r,max:e}}function Yc(r,e){var t=e,n=Ak(r,t),i=n.extent,a=t.get("splitNumber");r instanceof Ax&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function cm(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new am({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Tx({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(_a.getClass(e)||oo)}}function Iae(r){var e=r.scale.getExtent(),t=e[0],n=e[1];return!(t>0&&n>0||t<0&&n<0)}function Xc(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(i,a){return r.scale.getFormattedLabel(i,a,n)}}(e):me(e)?function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(e):Me(e)?function(n){return function(i,a){return t!=null&&(a=i.value-t),n(Cx(r,i),a,i.level!=null?{level:i.level}:null)}}(e):function(n){return r.scale.getLabel(n)}}function Cx(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function Eae(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var n,i,a=t.getExtent();t instanceof am?i=t.count():(n=t.getTicks(),i=n.length);var o=r.getLabelModel(),s=Xc(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var f=n?n[c]:{value:a[0]+c},h=s(f,c),v=o.getTextRect(h),d=Lae(v,o.get("rotate")||0);l?l.union(d):l=d}return l}}function Lae(r,e){var t=e*Math.PI/180,n=r.width,i=r.height,a=n*Math.abs(Math.cos(t))+Math.abs(i*Math.sin(t)),o=n*Math.abs(Math.sin(t))+Math.abs(i*Math.cos(t)),s=new Ue(r.x,r.y,a,o);return s}function Dx(r){var e=r.get("interval");return e??"auto"}function Ck(r){return r.type==="category"&&Dx(r.getLabelModel())===0}function fm(r,e){var t={};return N(r.mapDimensionsAll(e),function(n){t[uk(r,n)]=!0}),nt(t)}function kae(r,e,t){e&&N(fm(e,t),function(n){var i=e.getApproximateExtent(n);i[0]<r[0]&&(r[0]=i[0]),i[1]>r[1]&&(r[1]=i[1])})}var wv=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}(),Pae=1e-8;function Dk(r,e){return Math.abs(r-e)<Pae}function Gl(r,e,t){var n=0,i=r[0];if(!i)return!1;for(var a=1;a<r.length;a++){var o=r[a];n+=Ja(i[0],i[1],o[0],o[1],e,t),i=o}var s=r[0];return(!Dk(i[0],s[0])||!Dk(i[1],s[1]))&&(n+=Ja(i[0],i[1],s[0],s[1],e,t)),n!==0}var Nae=[];function Mx(r,e){for(var t=0;t<r.length;t++)Nr(r[t],r[t],e)}function Mk(r,e,t,n){for(var i=0;i<r.length;i++){var a=r[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Zo(e,e,a),Uo(t,t,a))}}function Oae(r){for(var e=0,t=0,n=0,i=r.length,a=r[i-1][0],o=r[i-1][1],s=0;s<i;s++){var l=r[s][0],u=r[s][1],c=a*u-l*o;e+=c,t+=(a+l)*c,n+=(o+u)*c,a=l,o=u}return e?[t/e/3,n/e/3,e]:[r[0][0]||0,r[0][1]||0]}var Ik=function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r}(),Ek=function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r}(),Lk=function(){function r(e){this.type="linestring",this.points=e}return r}(),kk=function(r){Y(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return e.prototype.calcCenter=function(){for(var t=this.geometries,n,i=0,a=0;a<t.length;a++){var o=t[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return Oae(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var n=this._rect;if(n&&!t)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return N(o,function(s){s.type==="polygon"?Mk(s.exterior,i,a,t):N(s.points,function(l){Mk(l,i,a,t)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new Ue(i[0],i[1],a[0]-i[0],a[1]-i[1]),t||(this._rect=n),n},e.prototype.contain=function(t){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(t[0],t[1]))return!1;e:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Gl(l,t[0],t[1])){for(var c=0;c<(u?u.length:0);c++)if(Gl(u[c],t[0],t[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(t,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new Ue(t,n,i,a),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var h=c[f];h.type==="polygon"?(Mx(h.exterior,u),N(h.interiors,function(v){Mx(v,u)})):N(h.points,function(v){Mx(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(Ik),Rae=function(r){Y(e,r);function e(t,n){var i=r.call(this,t)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,n=t.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=wg(Nae),o=t;o&&!o.isGeoSVGGraphicRoot;)Ua(a,o.getLocalTransform(),a),o=o.parent;return oc(a,a),Nr(i,i,a),i},e}(Ik);function Vae(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var n=e.features;return N(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=Pk(s,o,t);break;case"Polygon":Ix(s,o,t);break;case"MultiLineString":Ix(s,o,t);break;case"MultiPolygon":N(s,function(l,u){return Ix(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function Ix(r,e,t){for(var n=0;n<r.length;n++)r[n]=Pk(r[n],e[n],t)}function Pk(r,e,t){for(var n=[],i=e[0],a=e[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/t,l/t])}return n}function zae(r,e){return r=Vae(r),ne(pt(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,i=t.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new Ek(o[0],o.slice(1)));break;case"MultiPolygon":N(i.coordinates,function(l){l[0]&&a.push(new Ek(l[0],l.slice(1)))});break;case"LineString":a.push(new Lk([i.coordinates]));break;case"MultiLineString":a.push(new Lk(i.coordinates))}var s=new kk(n[e||"name"],a,n.cp);return s.properties=n,s})}var bv=ot();function Nk(r,e){var t=ne(e,function(n){return r.scale.parse(n)});return r.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function Bae(r){var e=r.getLabelModel().get("customValues");if(e){var t=Xc(r),n=r.scale.getExtent(),i=Nk(r,e),a=pt(i,function(o){return o>=n[0]&&o<=n[1]});return{labels:ne(a,function(o){var s={value:o};return{formattedLabel:t(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?Hae(r):Wae(r)}function Fae(r,e){var t=r.getTickModel().get("customValues");if(t){var n=r.scale.getExtent(),i=Nk(r,t);return{ticks:pt(i,function(a){return a>=n[0]&&a<=n[1]})}}return r.type==="category"?Gae(r,e):{ticks:ne(r.scale.getTicks(),function(a){return a.value})}}function Hae(r){var e=r.getLabelModel(),t=Ok(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function Ok(r,e){var t=Rk(r,"labels"),n=Dx(e),i=Vk(t,n);if(i)return i;var a,o;return Me(n)?a=Fk(r,n):(o=n==="auto"?Zae(r):n,a=Bk(r,o)),zk(t,n,{labels:a,labelCategoryInterval:o})}function Gae(r,e){var t=Rk(r,"ticks"),n=Dx(e),i=Vk(t,n);if(i)return i;var a,o;if((!e.get("show")||r.scale.isBlank())&&(a=[]),Me(n))a=Fk(r,n,!0);else if(n==="auto"){var s=Ok(r,r.getLabelModel());o=s.labelCategoryInterval,a=ne(s.labels,function(l){return l.tickValue})}else o=n,a=Bk(r,o,!0);return zk(t,n,{ticks:a,tickCategoryInterval:o})}function Wae(r){var e=r.scale.getTicks(),t=Xc(r);return{labels:ne(e,function(n,i){return{level:n.level,formattedLabel:t(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function Rk(r,e){return bv(r)[e]||(bv(r)[e]=[])}function Vk(r,e){for(var t=0;t<r.length;t++)if(r[t].key===e)return r[t].value}function zk(r,e,t){return r.push({key:e,value:t}),t}function Zae(r){var e=bv(r).autoInterval;return e??(bv(r).autoInterval=r.calculateCategoryInterval())}function Uae(r){var e=Yae(r),t=Xc(r),n=(e.axisRotate-e.labelRotate)/180*Math.PI,i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),h=0,v=0;l<=a[1];l+=s){var d=0,g=0,p=Ch(t({value:l}),e.font,"center","top");d=p.width*1.3,g=p.height*1.3,h=Math.max(h,d,7),v=Math.max(v,g,7)}var m=h/c,y=v/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),w=bv(r.model),b=r.getExtent(),x=w.lastAutoInterval,S=w.lastTickCount;return x!=null&&S!=null&&Math.abs(x-_)<=1&&Math.abs(S-o)<=1&&x>_&&w.axisExtent0===b[0]&&w.axisExtent1===b[1]?_=x:(w.lastTickCount=o,w.lastAutoInterval=_,w.axisExtent0=b[0],w.axisExtent1=b[1]),_}function Yae(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Bk(r,e,t){var n=Xc(r),i=r.scale,a=i.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=Ck(r),h=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;h&&u!==a[0]&&g(a[0]);for(var d=u;d<=a[1];d+=l)g(d);v&&d-l!==a[1]&&g(a[1]);function g(p){var m={value:p};s.push(t?p:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:p})}return s}function Fk(r,e,t){var n=r.scale,i=Xc(r),a=[];return N(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&a.push(t?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var Hk=[0,1],Bi=function(){function r(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return r.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return RI(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},r.prototype.dataToCoord=function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Gk(n,i.count())),wt(e,Hk,n,t)},r.prototype.coordToData=function(e,t){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Gk(n,i.count()));var a=wt(e,n,Hk,t);return this.scale.scale(a)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=Fae(this,t),i=n.ticks,a=ne(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return Xae(this,a,o,e.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),i=ne(n,function(a){return ne(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return Bae(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return Uae(this)},r}();function Gk(r,e){var t=r[1]-r[0],n=e,i=t/n/2;r[0]+=i,r[1]-=i}function Xae(r,e,t,n){var i=e.length;if(!r.onBand||t||!i)return;var a=r.getExtent(),o,s;if(i===1)e[0].coord=a[0],o=e[1]={coord:a[1],tickValue:e[0].tickValue};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;N(e,function(v){v.coord-=u/2});var c=r.scale.getExtent();s=1+c[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s,tickValue:c[1]+1},e.push(o)}var f=a[0]>a[1];h(e[0].coord,a[0])&&(n?e[0].coord=a[0]:e.shift()),n&&h(a[0],e[0].coord)&&e.unshift({coord:a[0]}),h(a[1],o.coord)&&(n?o.coord=a[1]:e.pop()),n&&h(o.coord,a[1])&&e.push({coord:a[1]});function h(v,d){return v=Qt(v),d=Qt(d),f?v>d:v<d}}var xv=Math.PI*2,Wl=da.CMD,qae=["top","right","bottom","left"];function jae(r,e,t,n,i){var a=t.width,o=t.height;switch(r){case"top":n.set(t.x+a/2,t.y-e),i.set(0,-1);break;case"bottom":n.set(t.x+a/2,t.y+o+e),i.set(0,1);break;case"left":n.set(t.x-e,t.y+o/2),i.set(-1,0);break;case"right":n.set(t.x+a+e,t.y+o/2),i.set(1,0);break}}function Kae(r,e,t,n,i,a,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*t+r,f=s*t+e;if(Math.abs(n-i)%xv<1e-4)return l[0]=c,l[1]=f,u-t;if(a){var h=n;n=Pn(i),i=Pn(h)}else n=Pn(n),i=Pn(i);n>i&&(i+=xv);var v=Math.atan2(s,o);if(v<0&&(v+=xv),v>=n&&v<=i||v+xv>=n&&v+xv<=i)return l[0]=c,l[1]=f,u-t;var d=t*Math.cos(n)+r,g=t*Math.sin(n)+e,p=t*Math.cos(i)+r,m=t*Math.sin(i)+e,y=(d-o)*(d-o)+(g-s)*(g-s),_=(p-o)*(p-o)+(m-s)*(m-s);return y<_?(l[0]=d,l[1]=g,Math.sqrt(y)):(l[0]=p,l[1]=m,Math.sqrt(_))}function hm(r,e,t,n,i,a,o,s){var l=i-r,u=a-e,c=t-r,f=n-e,h=Math.sqrt(c*c+f*f);c/=h,f/=h;var v=l*c+u*f,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var g=o[0]=r+d*c,p=o[1]=e+d*f;return Math.sqrt((g-i)*(g-i)+(p-a)*(p-a))}function Wk(r,e,t,n,i,a,o){t<0&&(r=r+t,t=-t),n<0&&(e=e+n,n=-n);var s=r+t,l=e+n,u=o[0]=Math.min(Math.max(i,r),s),c=o[1]=Math.min(Math.max(a,e),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var Fi=[];function Jae(r,e,t){var n=Wk(e.x,e.y,e.width,e.height,r.x,r.y,Fi);return t.set(Fi[0],Fi[1]),n}function Qae(r,e,t){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,c=e.data,f=r.x,h=r.y,v=0;v<c.length;){var d=c[v++];v===1&&(n=c[v],i=c[v+1],a=n,o=i);var g=u;switch(d){case Wl.M:a=c[v++],o=c[v++],n=a,i=o;break;case Wl.L:g=hm(n,i,c[v],c[v+1],f,h,Fi,!0),n=c[v++],i=c[v++];break;case Wl.C:g=oI(n,i,c[v++],c[v++],c[v++],c[v++],c[v],c[v+1],f,h,Fi),n=c[v++],i=c[v++];break;case Wl.Q:g=lI(n,i,c[v++],c[v++],c[v],c[v+1],f,h,Fi),n=c[v++],i=c[v++];break;case Wl.A:var p=c[v++],m=c[v++],y=c[v++],_=c[v++],w=c[v++],b=c[v++];v+=1;var x=!!(1-c[v++]);s=Math.cos(w)*y+p,l=Math.sin(w)*_+m,v<=1&&(a=s,o=l);var S=(f-p)*_/y+p;g=Kae(p,m,_,w,w+b,x,S,h,Fi),n=Math.cos(w+b)*y+p,i=Math.sin(w+b)*_+m;break;case Wl.R:a=n=c[v++],o=i=c[v++];var T=c[v++],C=c[v++];g=Wk(a,o,T,C,f,h,Fi);break;case Wl.Z:g=hm(n,i,a,o,f,h,Fi,!0),n=a,i=o;break}g<u&&(u=g,t.set(Fi[0],Fi[1]))}return u}var Hi=new Ze,Vt=new Ze,ir=new Ze,ba=new Ze,xa=new Ze;function Zk(r,e){if(r){var t=r.getTextGuideLine(),n=r.getTextContent();if(n&&t){var i=r.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||qae,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,c=r.getComputedTransform(),f=c&&oc([],c),h=e.get("length2")||0;u&&ir.copy(u);for(var v=0;v<o.length;v++){var d=o[v];jae(d,0,s,Hi,ba),Ze.scaleAndAdd(Vt,Hi,ba,h),Vt.transform(f);var g=r.getBoundingRect(),p=u?u.distance(Vt):r instanceof Qe?Qae(Vt,r.path,ir):Jae(Vt,g,ir);p<l&&(l=p,Vt.transform(c),ir.transform(c),ir.toArray(a[0]),Vt.toArray(a[1]),Hi.toArray(a[2]))}Uk(a,e.get("minTurnAngle")),t.setShape({points:a})}}}var vm=[],hn=new Ze;function Uk(r,e){if(e<=180&&e>0){e=e/180*Math.PI,Hi.fromArray(r[0]),Vt.fromArray(r[1]),ir.fromArray(r[2]),Ze.sub(ba,Hi,Vt),Ze.sub(xa,ir,Vt);var t=ba.len(),n=xa.len();if(!(t<.001||n<.001)){ba.scale(1/t),xa.scale(1/n);var i=ba.dot(xa),a=Math.cos(e);if(a<i){var o=hm(Vt.x,Vt.y,ir.x,ir.y,Hi.x,Hi.y,vm,!1);hn.fromArray(vm),hn.scaleAndAdd(xa,o/Math.tan(Math.PI-e));var s=ir.x!==Vt.x?(hn.x-Vt.x)/(ir.x-Vt.x):(hn.y-Vt.y)/(ir.y-Vt.y);if(isNaN(s))return;s<0?Ze.copy(hn,Vt):s>1&&Ze.copy(hn,ir),hn.toArray(r[1])}}}}function $ae(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Hi.fromArray(r[0]),Vt.fromArray(r[1]),ir.fromArray(r[2]),Ze.sub(ba,Vt,Hi),Ze.sub(xa,ir,Vt);var n=ba.len(),i=xa.len();if(!(n<.001||i<.001)){ba.scale(1/n),xa.scale(1/i);var a=ba.dot(e),o=Math.cos(t);if(a<o){var s=hm(Vt.x,Vt.y,ir.x,ir.y,Hi.x,Hi.y,vm,!1);hn.fromArray(vm);var l=Math.PI/2,u=Math.acos(xa.dot(e)),c=l+u-t;if(c>=l)Ze.copy(hn,ir);else{hn.scaleAndAdd(xa,s/Math.tan(Math.PI/2-c));var f=ir.x!==Vt.x?(hn.x-Vt.x)/(ir.x-Vt.x):(hn.y-Vt.y)/(ir.y-Vt.y);if(isNaN(f))return;f<0?Ze.copy(hn,Vt):f>1&&Ze.copy(hn,ir)}hn.toArray(r[1])}}}}function Ex(r,e,t,n){var i=t==="normal",a=i?r:r.ensureState(t);a.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function eoe(r,e){var t=e.smooth,n=e.points;if(n)if(r.moveTo(n[0][0],n[0][1]),t>0&&n.length>=3){var i=Wo(n[0],n[1]),a=Wo(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*t,s=_g([],n[1],n[0],o/i),l=_g([],n[1],n[2],o/a),u=_g([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)r.lineTo(n[c][0],n[c][1])}function Lx(r,e,t){var n=r.getTextGuideLine(),i=r.getTextContent();if(!i){n&&r.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=i.ignore,l=0;l<Rh.length;l++){var u=Rh[l],c=e[u],f=u==="normal";if(c){var h=c.get("show"),v=f?s:Ve(i.states[u]&&i.states[u].ignore,s);if(v||!Ve(h,o)){var d=f?n:n&&n.states[u];d&&(d.ignore=!0),n&&Ex(n,!0,u,c);continue}n||(n=new cn,r.setTextGuideLine(n),!f&&(s||!o)&&Ex(n,!0,"normal",e.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),Ex(n,!1,u,c)}}if(n){Ne(n.style,t),n.style.fill=null;var g=a.get("showAbove"),p=r.textGuideLineConfig=r.textGuideLineConfig||{};p.showAbove=g||!1,n.buildPath=eoe}}function kx(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},n=0;n<sn.length;n++){var i=sn[n];t[i]=r.getModel([i,e])}return t}function Yk(r){for(var e=[],t=0;t<r.length;t++){var n=r[t];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new v0(o,a):null;e.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return e}function Xk(r,e,t,n,i,a){var o=r.length;if(o<2)return;r.sort(function(x,S){return x.rect[e]-S.rect[e]});for(var s=0,l,u=!1,c=0;c<o;c++){var f=r[c],h=f.rect;l=h[e]-s,l<0&&(h[e]-=l,f.label[e]-=l,u=!0),s=h[e]+h[t]}var v=r[0],d=r[o-1],g,p;m(),g<0&&w(-g,.8),p<0&&w(p,.8),m(),y(g,p,1),y(p,g,-1),m(),g<0&&b(-g),p<0&&b(p);function m(){g=v.rect[e]-n,p=i-d.rect[e]-d.rect[t]}function y(x,S,T){if(x<0){var C=Math.min(S,-x);if(C>0){_(C*T,0,o);var A=C+x;A<0&&w(-A*T,1)}else w(-x*T,1)}}function _(x,S,T){x!==0&&(u=!0);for(var C=S;C<T;C++){var A=r[C],M=A.rect;M[e]+=x,A.label[e]+=x}}function w(x,S){for(var T=[],C=0,A=1;A<o;A++){var M=r[A-1].rect,k=Math.max(r[A].rect[e]-M[e]-M[t],0);T.push(k),C+=k}if(C){var L=Math.min(Math.abs(x)/C,S);if(x>0)for(var A=0;A<o-1;A++){var P=T[A]*L;_(P,0,A+1)}else for(var A=o-1;A>0;A--){var P=T[A-1]*L;_(-P,A,o)}}}function b(x){var S=x<0?-1:1;x=Math.abs(x);for(var T=Math.ceil(x/(o-1)),C=0;C<o-1;C++)if(S>0?_(T,0,C+1):_(-T,o-C-1,o),x-=T,x<=0)return}return u}function toe(r,e,t,n){return Xk(r,"x","width",e,t)}function qk(r,e,t,n){return Xk(r,"y","height",e,t)}function jk(r){var e=[];r.sort(function(g,p){return p.priority-g.priority});var t=new Ue(0,0,0,0);function n(g){if(!g.ignore){var p=g.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}g.ignore=!0}for(var i=0;i<r.length;i++){var a=r[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,c=a.labelLine;t.copy(a.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var f=a.obb,h=!1,v=0;v<e.length;v++){var d=e[v];if(t.intersect(d.rect)){if(o&&d.axisAligned){h=!0;break}if(d.obb||(d.obb=new v0(d.localRect,d.transform)),f||(f=new v0(s,l)),f.intersect(d.obb)){h=!0;break}}}h?(n(u),c&&n(c)):(u.attr("ignore",a.defaultAttr.ignore),c&&c.attr("ignore",a.defaultAttr.labelGuideIgnore),e.push(a))}}function roe(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function noe(r,e){var t=r.label,n=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:roe(n&&n.shape.points)}}var Kk=["align","verticalAlign","width","height","fontSize"],vn=new qa,Px=ot(),ioe=ot();function dm(r,e,t){for(var n=0;n<t.length;n++){var i=t[n];e[i]!=null&&(r[i]=e[i])}}var pm=["x","y","rotation"],aoe=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),c=i.getBoundingRect().plain();Ue.applyTransform(c,c,u),u?vn.setLocalTransform(u):(vn.x=vn.y=vn.rotation=vn.originX=vn.originY=0,vn.scaleX=vn.scaleY=1),vn.rotation=Pn(vn.rotation);var f=i.__hostTarget,h;if(f){h=f.getBoundingRect().plain();var v=f.getComputedTransform();Ue.applyTransform(h,h,v)}var d=h&&f.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:e,dataType:t,layoutOption:a,computedLayoutOption:null,rect:c,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:vn.x,y:vn.y,scaleX:vn.scaleX,scaleY:vn.scaleY,rotation:vn.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,i=n.get("labelLayout");(Me(i)||nt(i).length)&&e.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=ze(a);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,n,o,i)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function i(_,w){return function(){Zk(_,w)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;Me(o.layoutOption)?c=o.layoutOption(noe(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var h=!1;if(c.x!=null?(s.x=de(c.x,t),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=de(c.y,n),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:c.labelLinePoints}),h=!1)}var d=Px(s);d.needsUpdateLabelLine=h,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var g=0;g<Kk.length;g++){var p=Kk[g];s.setStyle(p,c[p]!=null?c[p]:u.style[p])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var m=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);m=y.getItemModel(o.dataIndex)}s.on("drag",i(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),i=Yk(this._labelList),a=pt(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=pt(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});toe(a,0,t),qk(o,0,n);var s=pt(i,function(l){return l.layoutOption.hideOverlap});jk(s)},r.prototype.processLabelsOverall=function(){var e=this;N(this._chartViewList,function(t){var n=t.__model,i=t.ignoreLabelLineUpdate,a=n.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=Px(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),a&&e._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),i=ze(e),a=i.dataIndex;if(n&&a!=null){var o=t.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");Lx(e,kx(s),l),Zk(e,f)}},r.prototype._animateLabels=function(e,t){var n=e.getTextContent(),i=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!xc(e))){var a=Px(n),o=a.oldLayout,s=ze(e),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=t.getData(s.dataType);if(o){n.attr(o);var h=e.prevStates;h&&(qe(h,"select")>=0&&n.attr(a.oldLayoutSelect),qe(h,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),ht(n,u,t,l)}else if(n.attr(u),!Tc(n).valueAnimation){var f=Ve(n.style.opacity,1);n.style.opacity=0,Ft(n,{style:{opacity:f}},t,l)}if(a.oldLayout=u,n.states.select){var v=a.oldLayoutSelect={};dm(v,u,pm),dm(v,n.states.select,pm)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};dm(d,u,pm),dm(d,n.states.emphasis,pm)}b6(n,l,c,t,t)}if(i&&!i.ignore&&!i.invisible){var a=ioe(i),o=a.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),ht(i,{shape:g},t)):(i.setShape(g),i.style.strokePercent=0,Ft(i,{style:{strokePercent:1}},t)),a.oldLayout=g}},r}(),Nx=ot();function ooe(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var i=Nx(t).labelManager;i||(i=Nx(t).labelManager=new aoe),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var i=Nx(t).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(t.getViewOfSeriesModel(a))}),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()})}var Ox=Math.sin,Rx=Math.cos,Jk=Math.PI,Zl=Math.PI*2,soe=180/Jk,Qk=function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,n,i,a,o){this._add("C",e,t,n,i,a,o)},r.prototype.quadraticCurveTo=function(e,t,n,i){this._add("Q",e,t,n,i)},r.prototype.arc=function(e,t,n,i,a,o){this.ellipse(e,t,n,n,0,i,a,o)},r.prototype.ellipse=function(e,t,n,i,a,o,s,l){var u=s-o,c=!l,f=Math.abs(u),h=Ko(f-Zl)||(c?u>=Zl:-u>=Zl),v=u>0?u%Zl:u%Zl+Zl,d=!1;h?d=!0:Ko(f)?d=!1:d=v>=Jk==!!c;var g=e+n*Rx(o),p=t+i*Ox(o);this._start&&this._add("M",g,p);var m=Math.round(a*soe);if(h){var y=1/this._p,_=(c?1:-1)*(Zl-y);this._add("A",n,i,m,1,+c,e+n*Rx(o+_),t+i*Ox(o+_)),y>.01&&this._add("A",n,i,m,0,+c,g,p)}else{var w=e+n*Rx(s),b=t+i*Ox(s);this._add("A",n,i,m,+d,+c,w,b)}},r.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,n,i,a,o,s,l,u){for(var c=[],f=this._p,h=1;h<arguments.length;h++){var v=arguments[h];if(isNaN(v)){this._invalid=!0;return}c.push(Math.round(v*f)/f)}this._d.push(e+c.join(" ")),this._start=e==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r}(),Vx="none",loe=Math.round;function uoe(r){var e=r.fill;return e!=null&&e!==Vx}function coe(r){var e=r.stroke;return e!=null&&e!==Vx}var zx=["lineCap","miterLimit","lineJoin"],foe=ne(zx,function(r){return"stroke-"+r.toLowerCase()});function hoe(r,e,t,n){var i=e.opacity==null?1:e.opacity;if(t instanceof Er){r("opacity",i);return}if(uoe(e)){var a=xh(e.fill);r("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*i:a.opacity*i;o<1&&r("fill-opacity",o)}else r("fill",Vx);if(coe(e)){var s=xh(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*i:s.opacity*i,f=e.strokeFirst;if(u!==1&&r("stroke-width",u),f&&r("paint-order",f?"stroke":"fill"),c<1&&r("stroke-opacity",c),e.lineDash){var h=Jb(t),v=h[0],d=h[1];v&&(d=loe(d||0),r("stroke-dasharray",v.join(",")),(d||n)&&r("stroke-dashoffset",d))}for(var g=0;g<zx.length;g++){var p=zx[g];if(e[p]!==e0[p]){var m=e[p]||e0[p];m&&r(foe[g],m)}}}}var $k="http://www.w3.org/2000/svg",e5="http://www.w3.org/1999/xlink",voe="http://www.w3.org/2000/xmlns/",doe="http://www.w3.org/XML/1998/namespace",t5="ecmeta_";function r5(r){return document.createElementNS($k,r)}function Tr(r,e,t,n,i){return{tag:r,attrs:t||{},children:n,text:i,key:e}}function poe(r,e){var t=[];if(e)for(var n in e){var i=e[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),t.push(a))}return"<"+r+" "+t.join(" ")+">"}function goe(r){return"</"+r+">"}function Bx(r,e){e=e||{};var t=e.newline?`
|
|
51
|
-
`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return poe(o,s)+(o!=="style"?nn(l):l||"")+(a?""+t+ne(a,function(u){return n(u)}).join(t)+t:"")+goe(o)}return n(r)}function moe(r,e,t){t=t||{};var n=t.newline?`
|
|
52
|
-
`:"",i=" {"+n,a=n+"}",o=ne(nt(r),function(l){return l+i+ne(nt(r[l]),function(u){return u+":"+r[l][u]+";"}).join(n)+a}).join(n),s=ne(nt(e),function(l){return"@keyframes "+l+i+ne(nt(e[l]),function(u){return u+i+ne(nt(e[l][u]),function(c){var f=e[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function Fx(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function n5(r,e,t,n){return Tr("svg","root",{width:r,height:e,xmlns:$k,"xmlns:xlink":e5,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+e:!1},t)}var yoe=0;function i5(){return yoe++}var a5={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Ul="transform-origin";function _oe(r,e,t){var n=$({},r.shape);$(n,e),r.buildPath(t,n);var i=new Qk;return i.reset(mI(r)),t.rebuildPath(i,1),i.generateStr(),i.getStr()}function woe(r,e){var t=e.originX,n=e.originY;(t||n)&&(r[Ul]=t+"px "+n+"px")}var boe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function o5(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function xoe(r,e,t){var n=r.shape.paths,i={},a,o;if(N(n,function(l){var u=Fx(t.zrId);u.animation=!0,gm(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,h=nt(c),v=h.length;if(v){o=h[v-1];var d=c[o];for(var g in d){var p=d[g];i[g]=i[g]||{d:""},i[g].d+=p.d||""}for(var m in f){var y=f[m].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){e.d=!1;var s=o5(i,t);return a.replace(o,s)}}function s5(r){return me(r)?a5[r]?"cubic-bezier("+a5[r]+")":W2(r)?r:"":""}function gm(r,e,t,n){var i=r.animators,a=i.length,o=[];if(r instanceof ab){var s=xoe(r,e,t);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var c=i[u],f=[c.getMaxTime()/1e3+"s"],h=s5(c.getClip().easing),v=c.getDelay();h?f.push(h):f.push("linear"),v&&f.push(v/1e3+"s"),c.getLoop()&&f.push("infinite");var d=f.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(c)}function g(y){var _=y[1],w=_.length,b={},x={},S={},T="animation-timing-function";function C(Te,xe,Be){for(var be=Te.getTracks(),fe=Te.getMaxTime(),et=0;et<be.length;et++){var vt=be[et];if(vt.needsAnimate()){var xt=vt.keyframes,kt=vt.propName;if(Be&&(kt=Be(kt)),kt)for(var jt=0;jt<xt.length;jt++){var Cr=xt[jt],dr=Math.round(Cr.time/fe*100)+"%",Gi=s5(Cr.easing),mt=Cr.rawValue;(me(mt)||ct(mt))&&(xe[dr]=xe[dr]||{},xe[dr][kt]=Cr.rawValue,Gi&&(xe[dr][T]=Gi))}}}}for(var A=0;A<w;A++){var M=_[A],k=M.targetName;k?k==="shape"&&C(M,x):!n&&C(M,b)}for(var L in b){var P={};II(P,r),$(P,b[L]);var E=yI(P),O=b[L][T];S[L]=E?{transform:E}:{},woe(S[L],P),O&&(S[L][T]=O)}var V,z=!0;for(var L in x){S[L]=S[L]||{};var H=!V,O=x[L][T];H&&(V=new da);var B=V.len();V.reset(),S[L].d=_oe(r,x[L],V);var F=V.len();if(!H&&B!==F){z=!1;break}O&&(S[L][T]=O)}if(!z)for(var L in S)delete S[L].d;if(!n)for(var A=0;A<w;A++){var M=_[A],k=M.targetName;k==="style"&&C(M,S,function(be){return boe[be]})}for(var ee=nt(S),ae=!0,le,A=1;A<ee.length;A++){var U=ee[A-1],j=ee[A];if(S[U][Ul]!==S[j][Ul]){ae=!1;break}le=S[U][Ul]}if(ae&&le){for(var L in S)S[L][Ul]&&delete S[L][Ul];e[Ul]=le}if(pt(ee,function(Te){return nt(S[Te]).length>0}).length){var Xe=o5(S,t);return Xe+" "+y[0]+" both"}}for(var p in l){var s=g(l[p]);s&&o.push(s)}if(o.length){var m=t.zrId+"-cls-"+i5();t.cssNodes["."+m]={animation:o.join(",")},e.class=m}}function Soe(r,e,t){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};l5(n,e,t)}else{var i=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},a=i.fill;if(!a){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(a=K2(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&r.transform?r.transform[0]:1;u=u/c}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),l5(n,e,t)}}function l5(r,e,t,n){var i=JSON.stringify(r),a=t.cssStyleCache[i];a||(a=t.zrId+"-cls-"+i5(),t.cssStyleCache[i]=a,t.cssNodes["."+a+":hover"]=r),e.class=e.class?e.class+" "+a:a}var Sv=Math.round;function u5(r){return r&&me(r.src)}function c5(r){return r&&Me(r.toDataURL)}function Hx(r,e,t,n){hoe(function(i,a){var o=i==="fill"||i==="stroke";o&&gI(a)?g5(e,r,i,n):o&&Q2(a)?m5(t,r,i,n):r[i]=a,o&&n.ssr&&a==="none"&&(r["pointer-events"]="visible")},e,t,!1),Eoe(t,r,n)}function Gx(r,e){var t=d$(e);t&&(t.each(function(n,i){n!=null&&(r[(t5+i).toLowerCase()]=n+"")}),e.isSilent()&&(r[t5+"silent"]="true"))}function f5(r){return Ko(r[0]-1)&&Ko(r[1])&&Ko(r[2])&&Ko(r[3]-1)}function Toe(r){return Ko(r[4])&&Ko(r[5])}function Wx(r,e,t){if(e&&!(Toe(e)&&f5(e))){var n=1e4;r.transform=f5(e)?"translate("+Sv(e[4]*n)/n+" "+Sv(e[5]*n)/n+")":RQ(e)}}function h5(r,e,t){for(var n=r.points,i=[],a=0;a<n.length;a++)i.push(Sv(n[a][0]*t)/t),i.push(Sv(n[a][1]*t)/t);e.points=i.join(" ")}function v5(r){return!r.smooth}function Aoe(r){var e=ne(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,n,i){for(var a=0;a<e.length;a++){var o=e[a],s=t[o[0]];s!=null&&(n[o[1]]=Sv(s*i)/i)}}}var Coe={circle:[Aoe(["cx","cy","r"])],polyline:[h5,v5],polygon:[h5,v5]};function Doe(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function d5(r,e){var t=r.style,n=r.shape,i=Coe[r.type],a={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&mI(r)||4;if(i&&!e.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&Doe(r))&&!(l<1)){s=r.type;var c=Math.pow(10,u);i[0](n,a,c)}else{var f=!r.path||r.shapeChanged();r.path||r.createPathProxy();var h=r.path;f&&(h.beginPath(),r.buildPath(h,r.shape),r.pathUpdated());var v=h.getVersion(),d=r,g=d.__svgPathBuilder;(d.__svgPathVersion!==v||!g||l!==d.__svgPathStrokePercent)&&(g||(g=d.__svgPathBuilder=new Qk),g.reset(u),h.rebuildPath(g,l),g.generateStr(),d.__svgPathVersion=v,d.__svgPathStrokePercent=l),a.d=g.getStr()}return Wx(a,r.transform),Hx(a,t,r,e),Gx(a,r),e.animation&&gm(r,a,e),e.emphasis&&Soe(r,a,e),Tr(s,r.id+"",a)}function Moe(r,e){var t=r.style,n=t.image;if(n&&!me(n)&&(u5(n)?n=n.src:c5(n)&&(n=n.toDataURL())),!!n){var i=t.x||0,a=t.y||0,o=t.width,s=t.height,l={href:n,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),Wx(l,r.transform),Hx(l,t,r,e),Gx(l,r),e.animation&&gm(r,l,e),Tr("image",r.id+"",l)}}function Ioe(r,e){var t=r.style,n=t.text;if(n!=null&&(n+=""),!(!n||isNaN(t.x)||isNaN(t.y))){var i=t.font||Ho,a=t.x||0,o=zQ(t.y||0,Gg(i),t.textBaseline),s=VQ[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(xE(t)){var u="",c=t.fontStyle,f=wE(t.fontSize);if(!parseFloat(f))return;var h=t.fontFamily||M4,v=t.fontWeight;u+="font-size:"+f+";font-family:"+h+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),Wx(l,r.transform),Hx(l,t,r,e),Gx(l,r),e.animation&&gm(r,l,e),Tr("text",r.id+"",l,void 0,n)}}function p5(r,e){if(r instanceof Qe)return d5(r,e);if(r instanceof Er)return Moe(r,e);if(r instanceof pc)return Ioe(r,e)}function Eoe(r,e,t){var n=r.style;if(BQ(n)){var i=FQ(r),a=t.shadowCache,o=a[i];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=n.shadowOffsetX||0,f=n.shadowOffsetY||0,h=n.shadowBlur,v=xh(n.shadowColor),d=v.opacity,g=v.color,p=h/2/l,m=h/2/u,y=p+" "+m;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=Tr("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Tr("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:y,"flood-color":g,"flood-opacity":d})]),a[i]=o}e.filter=Ng(o)}}function g5(r,e,t,n){var i=r[t],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(dI(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(pI(i))a="radialGradient",o.cx=Ve(i.x,.5),o.cy=Ve(i.y,.5),o.r=Ve(i.r,.5);else{process.env.NODE_ENV!=="production"&&Di("Illegal gradient type.");return}for(var s=i.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=J2(s[u].offset)*100+"%",h=s[u].color,v=xh(h),d=v.color,g=v.opacity,p={offset:f};p["stop-color"]=d,g<1&&(p["stop-opacity"]=g),l.push(Tr("stop",u+"",p))}var m=Tr(a,"",o,l),y=Bx(m),_=n.gradientCache,w=_[y];w||(w=n.zrId+"-g"+n.gradientIdx++,_[y]=w,o.id=w,n.defs[w]=Tr(a,w,o,l)),e[t]=Ng(w)}function m5(r,e,t,n){var i=r.style[t],a=r.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(vI(i)){var h=i.imageWidth,v=i.imageHeight,d=void 0,g=i.image;if(me(g)?d=g:u5(g)?d=g.src:c5(g)&&(d=g.toDataURL()),typeof Image>"u"){var p="Image width/height must been given explictly in svg-ssr renderer.";ke(h,p),ke(v,p)}else if(h==null||v==null){var m=function(A,M){if(A){var k=A.elm,L=h||M.width,P=v||M.height;A.tag==="pattern"&&(u?(P=1,L/=a.width):c&&(L=1,P/=a.height)),A.attrs.width=L,A.attrs.height=P,k&&(k.setAttribute("width",L),k.setAttribute("height",P))}},y=Mw(d,null,r,function(A){l||m(x,A),m(f,A)});y&&y.width&&y.height&&(h=h||y.width,v=v||y.height)}f=Tr("image","img",{href:d,width:h,height:v}),o.width=h,o.height=v}else i.svgElement&&(f=Oe(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var _,w;l?_=w=1:u?(w=1,_=o.width/a.width):c?(_=1,w=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),w!=null&&!isNaN(w)&&(o.height=w);var b=yI(i);b&&(o.patternTransform=b);var x=Tr("pattern","",o,[f]),S=Bx(x),T=n.patternCache,C=T[S];C||(C=n.zrId+"-p"+n.patternIdx++,T[S]=C,o.id=C,x=n.defs[C]=Tr("pattern",C,o,[f])),e[t]=Ng(C)}}function Loe(r,e,t){var n=t.clipPathCache,i=t.defs,a=n[r.id];if(!a){a=t.zrId+"-c"+t.clipPathIdx++;var o={id:a};n[r.id]=a,i[a]=Tr("clipPath",a,o,[d5(r,t)])}e["clip-path"]=Ng(a)}function y5(r){return document.createTextNode(r)}function Yl(r,e,t){r.insertBefore(e,t)}function _5(r,e){r.removeChild(e)}function w5(r,e){r.appendChild(e)}function b5(r){return r.parentNode}function x5(r){return r.nextSibling}function Zx(r,e){r.textContent=e}var S5=58,koe=120,Poe=Tr("","");function Ux(r){return r===void 0}function Sa(r){return r!==void 0}function Noe(r,e,t){for(var n={},i=e;i<=t;++i){var a=r[i].key;a!==void 0&&(process.env.NODE_ENV!=="production"&&n[a]!=null&&console.error("Duplicate key "+a),n[a]=i)}return n}function Tv(r,e){var t=r.key===e.key,n=r.tag===e.tag;return n&&t}function Av(r){var e,t=r.children,n=r.tag;if(Sa(n)){var i=r.elm=r5(n);if(Yx(Poe,r),re(t))for(e=0;e<t.length;++e){var a=t[e];a!=null&&w5(i,Av(a))}else Sa(r.text)&&!Le(r.text)&&w5(i,y5(r.text))}else r.elm=y5(r.text);return r.elm}function T5(r,e,t,n,i){for(;n<=i;++n){var a=t[n];a!=null&&Yl(r,Av(a),e)}}function mm(r,e,t,n){for(;t<=n;++t){var i=e[t];if(i!=null)if(Sa(i.tag)){var a=b5(i.elm);_5(a,i.elm)}else _5(r,i.elm)}}function Yx(r,e){var t,n=e.elm,i=r&&r.attrs||{},a=e.attrs||{};if(i!==a){for(t in a){var o=a[t],s=i[t];s!==o&&(o===!0?n.setAttribute(t,""):o===!1?n.removeAttribute(t):t==="style"?n.style.cssText=o:t.charCodeAt(0)!==koe?n.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?n.setAttributeNS(voe,t,o):t.charCodeAt(3)===S5?n.setAttributeNS(doe,t,o):t.charCodeAt(5)===S5?n.setAttributeNS(e5,t,o):n.setAttribute(t,o))}for(t in i)t in a||n.removeAttribute(t)}}function Ooe(r,e,t){for(var n=0,i=0,a=e.length-1,o=e[0],s=e[a],l=t.length-1,u=t[0],c=t[l],f,h,v,d;n<=a&&i<=l;)o==null?o=e[++n]:s==null?s=e[--a]:u==null?u=t[++i]:c==null?c=t[--l]:Tv(o,u)?(qc(o,u),o=e[++n],u=t[++i]):Tv(s,c)?(qc(s,c),s=e[--a],c=t[--l]):Tv(o,c)?(qc(o,c),Yl(r,o.elm,x5(s.elm)),o=e[++n],c=t[--l]):Tv(s,u)?(qc(s,u),Yl(r,s.elm,o.elm),s=e[--a],u=t[++i]):(Ux(f)&&(f=Noe(e,n,a)),h=f[u.key],Ux(h)?Yl(r,Av(u),o.elm):(v=e[h],v.tag!==u.tag?Yl(r,Av(u),o.elm):(qc(v,u),e[h]=void 0,Yl(r,v.elm,o.elm))),u=t[++i]);(n<=a||i<=l)&&(n>a?(d=t[l+1]==null?null:t[l+1].elm,T5(r,d,t,i,l)):mm(r,e,n,a))}function qc(r,e){var t=e.elm=r.elm,n=r.children,i=e.children;r!==e&&(Yx(r,e),Ux(e.text)?Sa(n)&&Sa(i)?n!==i&&Ooe(t,n,i):Sa(i)?(Sa(r.text)&&Zx(t,""),T5(t,null,i,0,i.length-1)):Sa(n)?mm(t,n,0,n.length-1):Sa(r.text)&&Zx(t,""):r.text!==e.text&&(Sa(n)&&mm(t,n,0,n.length-1),Zx(t,e.text)))}function Roe(r,e){if(Tv(r,e))qc(r,e);else{var t=r.elm,n=b5(t);Av(e),n!==null&&(Yl(n,e.elm,x5(t)),mm(n,[r],0,0))}return e}var Voe=0,zoe=function(){function r(e,t,n){if(this.type="svg",this.refreshHover=A5("refreshHover"),this.configLayer=A5("configLayer"),this.storage=t,this._opts=n=$({},n),this.root=e,this._id="zr"+Voe++,this._oldVNode=n5(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=r5("svg");Yx(null,this._oldVNode),i.appendChild(a),e.appendChild(i)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Roe(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return p5(e,Fx(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=Fx(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=Boe(n,i,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=Tr("g","main",{},[]);this._paintList(t,a,l?l.children:o),l&&o.push(l);var u=ne(nt(a.defs),function(h){return a.defs[h]});if(u.length&&o.push(Tr("defs","defs",{},u)),e.animation){var c=moe(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=Tr("style","stl",{},[],c);o.push(f)}}return n5(n,i,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},Bx(this.renderToVNode({animation:Ve(e.cssAnimation,!0),emphasis:Ve(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Ve(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,n){for(var i=e.length,a=[],o=0,s,l,u=0,c=0;c<i;c++){var f=e[c];if(!f.invisible){var h=f.__clipPaths,v=h&&h.length||0,d=l&&l.length||0,g=void 0;for(g=Math.max(v-1,d-1);g>=0&&!(h&&l&&h[g]===l[g]);g--);for(var p=d-1;p>g;p--)o--,s=a[o-1];for(var m=g+1;m<v;m++){var y={};Loe(h[m],y,t);var _=Tr("g","clip-g-"+u++,y,[]);(s?s.children:n).push(_),a[o++]=_,s=_}l=h;var w=p5(f,t);w&&(s?s.children:n).push(w)}}},r.prototype.resize=function(e,t){var n=this._opts,i=this.root,a=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),i&&a&&(a.style.display="none",e=Hc(i,0,n),t=Hc(i,1,n),a.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,a){var o=a.style;o.width=e+"px",o.height=t+"px"}if(Q2(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=this.renderToString(),n="data:image/svg+xml;";return e?(t=GQ(t),t&&n+"base64,"+t):n+"charset=UTF-8,"+encodeURIComponent(t)},r}();function A5(r){return function(){process.env.NODE_ENV!=="production"&&Di('In SVG mode painter not support method "'+r+'"')}}function Boe(r,e,t,n){var i;if(t&&t!=="none")if(i=Tr("rect","bg",{width:r,height:e,x:"0",y:"0"}),gI(t))g5({fill:t},i.attrs,"fill",n);else if(Q2(t))m5({style:{fill:t},dirty:nr,getBoundingRect:function(){return{width:r,height:e}}},i.attrs,"fill",n);else{var a=xh(t),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}function Foe(r){r.registerPainter("svg",zoe)}function C5(r,e,t){var n=Go.createCanvas(),i=e.getWidth(),a=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",r)),n.width=i*t,n.height=a*t,n}var Xx=function(r){Y(e,r);function e(t,n,i){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||Hg,typeof t=="string"?o=C5(t,n,i):Le(t)&&(o=t,t=o.id),a.id=t,a.dom=o;var s=o.style;return s&&(V4(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=C5("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Ue(0,0,0,0);function c(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new Ue(0,0,0,0);_.copy(y),o.push(_)}else{for(var w=!1,b=1/0,x=0,S=0;S<o.length;++S){var T=o[S];if(T.intersect(y)){var C=new Ue(0,0,0,0);C.copy(T),C.union(y),o[S]=C,w=!0;break}else if(l){u.copy(y),u.union(T);var A=y.width*y.height,M=T.width*T.height,k=u.width*u.height,L=k-A-M;L<b&&(b=L,x=S)}}if(l&&(o[x].union(y),w=!0),!w){var _=new Ue(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var h=t[f];if(h){var v=h.shouldBePainted(i,a,!0,!0),d=h.__isRendered&&(h.__dirty&aa||!v)?h.getPrevPaintRect():null;d&&c(d);var g=v&&(h.__dirty&aa||!h.__isRendered)?h.getPaintRect():null;g&&c(g)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var h=n[f],v=h&&h.shouldBePainted(i,a,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var d=h.getPrevPaintRect();d&&c(d)}}var p;do{p=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var m=f+1;m<o.length;)o[f].intersect(o[m])?(p=!0,o[f].union(o[m]),o.splice(m,1)):m++;f++}}while(p);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=t+"px",o.height=n+"px"),a.width=t*i,a.height=n*i,s&&(s.width=t*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},e.prototype.clear=function(t,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!t,c=this.lastFrameAlpha,f=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/f,l/f));var v=this.domBack;function d(g,p,m,y){if(o.clearRect(g,p,m,y),n&&n!=="transparent"){var _=void 0;if(dg(n)){var w=n.global||n.__width===m&&n.__height===y;_=w&&n.__canvasGradient||Kb(o,n,{x:0,y:0,width:m,height:y}),n.__canvasGradient=_,n.__width=m,n.__height=y}else KJ(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,_=Qb(o,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(g,p,m,y),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(v,g,p,m,y),o.restore())}!i||u?d(0,0,s,l):i.length&&N(i,function(g){d(g.x*f,g.y*f,g.width*f,g.height*f)})},e}(Un),D5=1e5,Xl=314159,ym=.01,Hoe=.001;function Goe(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function Woe(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}var Zoe=function(){function r(e,t,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=$({},n||{}),this.dpr=n.devicePixelRatio||Hg,this._singleCanvas=a,this.root=e;var o=e.style;o&&(V4(e),e.innerHTML=""),this.storage=t;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var c=e,f=c.width,h=c.height;n.width!=null&&(f=n.width),n.height!=null&&(h=n.height),this.dpr=n.devicePixelRatio||1,c.width=f*this.dpr,c.height=h*this.dpr,this._width=f,this._height=h;var v=new Xx(c,this,this.dpr);v.__builtin__=!0,v.initContext(),l[Xl]=v,v.zlevel=Xl,s.push(Xl),this._domRoot=e}else{this._width=Hc(e,0,n),this._height=Hc(e,1,n);var u=this._domRoot=Woe(this._width,this._height);e.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),!!t){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<t;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(D5)),a||(a=n.ctx,a.save()),Bl(a,s,i,o===t-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(D5)},r.prototype.paintOne=function(e,t){TL(e,t)},r.prototype._paintList=function(e,t,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var a=this._doPaintList(e,t,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Ag(function(){l._paintList(e,t,n,i)})}}},r.prototype._compositeManually=function(){var e=this.getLayer(Xl).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(i){i.virtual&&e.drawImage(i.dom,0,0,t,n)})},r.prototype._doPaintList=function(e,t,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var c=!0,f=!1,h=function(g){var p=a[g],m=p.ctx,y=o&&p.createRepaintRects(e,t,v._width,v._height),_=n?p.__startIndex:p.__drawIndex,w=!n&&p.incremental&&Date.now,b=w&&Date.now(),x=p.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,x,y);else if(_===p.__startIndex){var S=e[_];(!S.incremental||!S.notClear||n)&&p.clear(!1,x,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=p.__startIndex);var T,C=function(L){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(T=_;T<p.__endIndex;T++){var E=e[T];if(E.__inHover&&(f=!0),i._doPaintEl(E,p,o,L,P,T===p.__endIndex-1),w){var O=Date.now()-b;if(O>15)break}}P.prevElClipPaths&&m.restore()};if(y)if(y.length===0)T=p.__endIndex;else for(var A=v.dpr,M=0;M<y.length;++M){var k=y[M];m.save(),m.beginPath(),m.rect(k.x*A,k.y*A,k.width*A,k.height*A),m.clip(),C(k),m.restore()}else m.save(),C(),m.restore();p.__drawIndex=T,p.__drawIndex<p.__endIndex&&(c=!1)},v=this,d=0;d<a.length;d++)h(d);return Je.wxa&&N(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:c,needsRefreshHover:f}},r.prototype._doPaintEl=function(e,t,n,i,a,o){var s=t.ctx;if(n){var l=e.getPaintRect();(!i||l&&l.intersect(i))&&(Bl(s,e,a,o),e.setPrevPaintRect(l))}else Bl(s,e,a,o)},r.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Xl);var n=this._layers[e];return n||(n=new Xx("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?Ge(n,this._layerConfig[e],!0):this._layerConfig[e-ym]&&Ge(n,this._layerConfig[e-ym],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},r.prototype.insertLayer=function(e,t){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(n[e]){process.env.NODE_ENV!=="production"&&Di("ZLevel "+e+" has been used already");return}if(!Goe(t)){process.env.NODE_ENV!=="production"&&Di("Layer of zlevel "+e+" is not valid");return}if(a>0&&e>i[0]){for(l=0;l<a-1&&!(i[l]<e&&i[l+1]>e);l++);s=n[i[l]]}if(i.splice(l+1,0,e),n[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)},r.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];e.call(t,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&e.call(t,o,a)}},r.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||e.call(t,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(f,h){f.__dirty=f.__used=!1});function t(f){a&&(a.__endIndex!==f&&(a.__dirty=!0),a.__endIndex=f)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var i=e[n];if(i.zlevel!==e[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<e.length;l++){var i=e[l],u=i.zlevel,c=void 0;s!==u&&(s=u,o=0),i.incremental?(c=this.getLayer(u+Hoe,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?ym:0),this._needsManuallyCompositing),c.__builtin__||Di("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),a=c),i.__dirty&aa&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(f,h){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,N(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?Ge(n[e],t,!0):n[e]=t;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===e||a===e+ym){var o=this._layers[a];Ge(o,n[e],!0)}}}},r.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,i=t[e];i&&(i.dom.parentNode.removeChild(i.dom),delete t[e],n.splice(qe(n,e),1))},r.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(e!=null&&(i.width=e),t!=null&&(i.height=t),e=Hc(a,0,i),t=Hc(a,1,i),n.style.display="",this._width!==e||t!==this._height){n.style.width=e+"px",n.style.height=t+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(Xl).resize(e,t)}return this},r.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Xl].dom;var t=new Xx("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=t.dom.width,a=t.dom.height;this.eachLayer(function(f){f.__builtin__?n.drawImage(f.dom,0,0,i,a):f.renderToCanvas&&(n.save(),f.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Bl(n,c,o,l===u-1)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();function Uoe(r){r.registerPainter("canvas",Zoe)}var Yoe=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){if(process.env.NODE_ENV!=="production"){var n=t.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return ao(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var n=new Re,i=vr("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);n.add(i),i.setStyle(t.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=t.itemHeight*.8,u=vr(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);n.add(u),u.setStyle(t.itemStyle);var c=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Rt);function jc(r,e){var t=r.mapDimensionsAll("defaultedLabel"),n=t.length;if(n===1){var i=Nc(r,e,t[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<t.length;o++)a.push(Nc(r,e,t[o]));return a.join(" ")}}function M5(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!re(e))return e+"";for(var n=[],i=0;i<t.length;i++){var a=r.getDimensionIndex(t[i]);a>=0&&n.push(e[a])}return n.join(" ")}var Cv=function(r){Y(e,r);function e(t,n,i,a){var o=r.call(this)||this;return o.updateData(t,n,i,a),o}return e.prototype._createSymbol=function(t,n,i,a,o){this.removeAll();var s=vr(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=Xoe,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){$a(this.childAt(0))},e.prototype.downplay=function(){eo(this.childAt(0))},e.prototype.setZ=function(t,n){var i=this.childAt(0);i.zlevel=t,i.z=n},e.prototype.setDraggable=function(t,n){var i=this.childAt(0);i.draggable=t,i.cursor=!n&&t?"move":i.cursor},e.prototype.updateData=function(t,n,i,a){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var f=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,l,f)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):ht(h,v,s,n),Ni(h)}if(this._updateCommon(t,n,l,i,a),u){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Ft(h,v,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,n,i,a,o){var s=this.childAt(0),l=t.hostModel,u,c,f,h,v,d,g,p,m;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,h=a.focus,v=a.blurScope,g=a.labelStatesModels,p=a.hoverScale,m=a.cursorStyle,d=a.emphasisDisabled),!a||t.hasItemOption){var y=a&&a.itemModel?a.itemModel:t.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),g=xr(y),p=_.getShallow("scale"),m=y.getShallow("cursor")}var w=t.getItemVisual(n,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var b=Vl(t.getItemVisual(n,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),m&&s.attr("cursor",m);var x=t.getItemVisual(n,"style"),S=x.fill;if(s instanceof Er){var T=s.style;s.useStyle($({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle($({},x)):s.useStyle(x),s.style.decal=null,s.setColor(S,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(n,"liftZ"),A=this._z2;C!=null?A==null&&(this._z2=s.z2,s.z2+=C):A!=null&&(s.z2=A,this._z2=null);var M=o&&o.useNameLabel;Vr(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:k,inheritColor:S,defaultOpacity:x.opacity});function k(E){return M?t.getName(E):jc(t,E)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var P=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),qt(this,h,v,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,n,i){var a=this.childAt(0),o=ze(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&rs(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();rs(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,n){return Fc(t.getItemVisual(n,"symbolSize"))},e}(Re);function Xoe(r,e){this.parent.drift(r,e)}function qx(r,e,t,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(t))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function I5(r){return r!=null&&!Le(r)&&(r={isIgnore:r}),r||{}}function E5(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:xr(e),cursorStyle:e.get("cursor")}}var Dv=function(){function r(e){this.group=new Re,this._SymbolCtor=e||Cv}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=I5(t);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=E5(e),u={disableAnimation:s},c=t.getSymbolPoint||function(f){return e.getItemLayout(f)};a||n.removeAll(),e.diff(a).add(function(f){var h=c(f);if(qx(e,h,f,t)){var v=new o(e,f,l,u);v.setPosition(h),e.setItemGraphicEl(f,v),n.add(v)}}).update(function(f,h){var v=a.getItemGraphicEl(h),d=c(f);if(!qx(e,d,f,t)){n.remove(v);return}var g=e.getItemVisual(f,"symbol")||"circle",p=v&&v.getSymbolType&&v.getSymbolType();if(!v||p&&p!==g)n.remove(v),v=new o(e,f,l,u),v.setPosition(d);else{v.updateData(e,f,l,u);var m={x:d[0],y:d[1]};s?v.attr(m):ht(v,m,i)}n.add(v),e.setItemGraphicEl(f,v)}).remove(function(f){var h=a.getItemGraphicEl(f);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=c,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(n,i){var a=e._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=E5(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=I5(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var o=t.getItemLayout(a);if(qx(t,o,a,n)){var s=new this._SymbolCtor(t,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){ns(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){t.remove(i)},n.hostModel)}):t.removeAll()},r}();function L5(r,e,t){var n=r.getBaseAxis(),i=r.getOtherAxis(n),a=qoe(i,t),o=n.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=ne(r.dimensions,function(d){return e.mapDimension(d)}),h=!1,v=e.getCalculationInfo("stackResultDimension");return fs(e,f[0])&&(h=!0,f[0]=v),fs(e,f[1])&&(h=!0,f[1]=v),{dataDimsForPoint:f,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function qoe(r,e){var t=0,n=r.scale.getExtent();return e==="start"?t=n[0]:e==="end"?t=n[1]:ct(e)&&!isNaN(e)?t=e:n[0]>0?t=n[0]:n[1]<0&&(t=n[1]),t}function k5(r,e,t,n){var i=NaN;r.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=t.get(r.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function joe(r,e){var t=[];return e.diff(r).add(function(n){t.push({cmd:"+",idx:n})}).update(function(n,i){t.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){t.push({cmd:"-",idx:n})}).execute(),t}function Koe(r,e,t,n,i,a,o,s){for(var l=joe(r,e),u=[],c=[],f=[],h=[],v=[],d=[],g=[],p=L5(i,e,o),m=r.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var w=l[_],b=!0,x=void 0,S=void 0;switch(w.cmd){case"=":x=w.idx*2,S=w.idx1*2;var T=m[x],C=m[x+1],A=y[S],M=y[S+1];(isNaN(T)||isNaN(C))&&(T=A,C=M),u.push(T,C),c.push(A,M),f.push(t[x],t[x+1]),h.push(n[S],n[S+1]),g.push(e.getRawIndex(w.idx1));break;case"+":var k=w.idx,L=p.dataDimsForPoint,P=i.dataToPoint([e.get(L[0],k),e.get(L[1],k)]);S=k*2,u.push(P[0],P[1]),c.push(y[S],y[S+1]);var E=k5(p,i,e,k);f.push(E[0],E[1]),h.push(n[S],n[S+1]),g.push(e.getRawIndex(k));break;case"-":b=!1}b&&(v.push(w),d.push(d.length))}d.sort(function(U,j){return g[U]-g[j]});for(var O=u.length,V=wa(O),z=wa(O),H=wa(O),B=wa(O),F=[],_=0;_<d.length;_++){var ee=d[_],ae=_*2,le=ee*2;V[ae]=u[le],V[ae+1]=u[le+1],z[ae]=c[le],z[ae+1]=c[le+1],H[ae]=f[le],H[ae+1]=f[le+1],B[ae]=h[le],B[ae+1]=h[le+1],F[_]=v[ee]}return{current:V,next:z,stackedOnCurrent:H,stackedOnNext:B,status:F}}var hs=Math.min,vs=Math.max;function ql(r,e){return isNaN(r)||isNaN(e)}function jx(r,e,t,n,i,a,o,s,l){for(var u,c,f,h,v,d,g=t,p=0;p<n;p++){var m=e[g*2],y=e[g*2+1];if(g>=i||g<0)break;if(ql(m,y)){if(l){g+=a;continue}break}if(g===t)r[a>0?"moveTo":"lineTo"](m,y),f=m,h=y;else{var _=m-u,w=y-c;if(_*_+w*w<.5){g+=a;continue}if(o>0){for(var b=g+a,x=e[b*2],S=e[b*2+1];x===m&&S===y&&p<n;)p++,b+=a,g+=a,x=e[b*2],S=e[b*2+1],m=e[g*2],y=e[g*2+1],_=m-u,w=y-c;var T=p+1;if(l)for(;ql(x,S)&&T<n;)T++,b+=a,x=e[b*2],S=e[b*2+1];var C=.5,A=0,M=0,k=void 0,L=void 0;if(T>=n||ql(x,S))v=m,d=y;else{A=x-u,M=S-c;var P=m-u,E=x-m,O=y-c,V=S-y,z=void 0,H=void 0;if(s==="x"){z=Math.abs(P),H=Math.abs(E);var B=A>0?1:-1;v=m-B*z*o,d=y,k=m+B*H*o,L=y}else if(s==="y"){z=Math.abs(O),H=Math.abs(V);var F=M>0?1:-1;v=m,d=y-F*z*o,k=m,L=y+F*H*o}else z=Math.sqrt(P*P+O*O),H=Math.sqrt(E*E+V*V),C=H/(H+z),v=m-A*o*(1-C),d=y-M*o*(1-C),k=m+A*o*C,L=y+M*o*C,k=hs(k,vs(x,m)),L=hs(L,vs(S,y)),k=vs(k,hs(x,m)),L=vs(L,hs(S,y)),A=k-m,M=L-y,v=m-A*z/H,d=y-M*z/H,v=hs(v,vs(u,m)),d=hs(d,vs(c,y)),v=vs(v,hs(u,m)),d=vs(d,hs(c,y)),A=m-v,M=y-d,k=m+A*H/z,L=y+M*H/z}r.bezierCurveTo(f,h,v,d,m,y),f=k,h=L}else r.lineTo(m,y)}u=m,c=y,g+=a}return p}var P5=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),Joe=function(r){Y(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new P5},e.prototype.buildPath=function(t,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&ql(i[o*2-2],i[o*2-1]);o--);for(;a<o&&ql(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=jx(t,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(t,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=da.CMD,s,l,u=n==="x",c=[],f=0;f<a.length;){var h=a[f++],v=void 0,d=void 0,g=void 0,p=void 0,m=void 0,y=void 0,_=void 0;switch(h){case o.M:s=a[f++],l=a[f++];break;case o.L:if(v=a[f++],d=a[f++],_=u?(t-s)/(v-s):(t-l)/(d-l),_<=1&&_>=0){var w=u?(d-l)*_+l:(v-s)*_+s;return u?[t,w]:[w,t]}s=v,l=d;break;case o.C:v=a[f++],d=a[f++],g=a[f++],p=a[f++],m=a[f++],y=a[f++];var b=u?Mg(s,v,g,m,t,c):Mg(l,d,p,y,t,c);if(b>0)for(var x=0;x<b;x++){var S=c[x];if(S<=1&&S>=0){var w=u?wr(l,d,p,y,S):wr(s,v,g,m,S);return u?[t,w]:[w,t]}}s=m,l=y;break}}},e}(Qe),Qoe=function(r){Y(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(P5),N5=function(r){Y(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new Qoe},e.prototype.buildPath=function(t,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&ql(i[s*2-2],i[s*2-1]);s--);for(;o<s&&ql(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=jx(t,i,o,s,s,1,n.smooth,l,n.connectNulls);jx(t,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,t.closePath()}},e}(Qe);function O5(r,e,t,n,i){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=t.get(["lineStyle","width"])||0;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new st({shape:{x:o,y:s,width:l,height:u}});if(e){var h=r.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(f.shape.x+=l),f.shape.width=0):(d||(f.shape.y+=u),f.shape.height=0);var g=Me(i)?function(p){i(p,f)}:null;Ft(f,{shape:{width:l,height:u,x:o,y:s}},t,null,n,g)}return f}function R5(r,e,t){var n=r.getArea(),i=Qt(n.r0,1),a=Qt(n.r,1),o=new ln({shape:{cx:Qt(r.cx,1),cy:Qt(r.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Ft(o,{shape:{endAngle:n.endAngle,r:a}},t)}return o}function Mv(r,e,t,n,i){if(r){if(r.type==="polar")return R5(r,e,t);if(r.type==="cartesian2d")return O5(r,e,t,n,i)}else return null;return null}function jl(r,e){return r.type===e}function V5(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function z5(r){for(var e=1/0,t=1/0,n=-1/0,i=-1/0,a=0;a<r.length;){var o=r[a++],s=r[a++];isNaN(o)||(e=Math.min(o,e),n=Math.max(o,n)),isNaN(s)||(t=Math.min(s,t),i=Math.max(s,i))}return[[e,t],[n,i]]}function B5(r,e){var t=z5(r),n=t[0],i=t[1],a=z5(e),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function F5(r){return ct(r)?r:r?.5:0}function $oe(r,e,t){if(!t.valueDim)return[];for(var n=e.count(),i=wa(n*2),a=0;a<n;a++){var o=k5(t,r,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function ds(r,e,t,n,i){var a=t.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],c=[],f=[],h=[];if(i){for(l=0;l<r.length;l+=2){var v=e||r;!isNaN(v[l])&&!isNaN(v[l+1])&&h.push(r[l],r[l+1])}r=h}for(l=0;l<r.length-2;l+=2)switch(f[0]=r[l+2],f[1]=r[l+3],c[0]=r[l],c[1]=r[l+1],s.push(c[0],c[1]),n){case"end":u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var d=(c[o]+f[o])/2,g=[];u[o]=g[o]=d,u[1-o]=c[1-o],g[1-o]=f[1-o],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function ese(r,e){var t=[],n=r.length,i,a;function o(c,f,h){var v=c.coord,d=(h-v)/(f.coord-v),g=NQ(d,[c.color,f.color]);return{coord:h,color:g}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)i=l;else if(u>e){a?t.push(o(a,l,e)):i&&t.push(o(i,l,0),o(i,l,e));break}else i&&(t.push(o(i,l,0)),i=null),t.push(l),a=l}return t}function tse(r,e,t){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())){if(e.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(!a){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=e.getAxis(i),u=ne(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=ese(u,i==="x"?t.getWidth():t.getHeight()),v=h.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var d=10,g=h[0].coord-d,p=h[v-1].coord+d,m=p-g;if(m<.001)return"transparent";N(h,function(_){_.offset=(_.coord-g)/m}),h.push({offset:v?h[v-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:f[0]||"transparent"});var y=new Zh(0,0,0,0,h,!0);return y[i]=g,y[i+"2"]=p,y}}function rse(r,e,t){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=t.getAxesByScale("ordinal")[0];if(a&&!(i&&nse(a,e))){var o=e.mapDimension(a.dim),s={};return N(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function nse(r,e){var t=r.getExtent(),n=Math.abs(t[1]-t[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Cv.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function ise(r,e){return isNaN(r)||isNaN(e)}function ase(r){for(var e=r.length/2;e>0&&ise(r[e*2-2],r[e*2-1]);e--);return e-1}function H5(r,e){return[r[e*2],r[e*2+1]]}function ose(r,e,t){for(var n=r.length/2,i=t==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+i],!(isNaN(o)||isNaN(r[u*2+1-i]))){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function G5(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<sn.length;e++)if(r.get([sn[e],"endLabel","show"]))return!0;return!1}function Kx(r,e,t,n){if(jl(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=G5(n)?function(v,d){r._endLabelOnDuring(v,d,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=O5(e,t,n,function(){var v=r._endLabel;v&&t&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var f=c.shape,h=Math.max(f.width,f.height);u?(f.y-=h,f.height+=h*2):(f.x-=h,f.width+=h*2)}return l&&l(1,c),c}else return process.env.NODE_ENV!=="production"&&n.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),R5(e,t,n)}function sse(r,e){var t=e.getBaseAxis(),n=t.isHorizontal(),i=t.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var lse=function(r){Y(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new Re,n=new Dv;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=t,this._changePolyState=ye(this._changePolyState,this)},e.prototype.render=function(t,n,i){var a=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),c=s.getLayout("points")||[],f=a.type==="polar",h=this._coordSys,v=this._symbolDraw,d=this._polyline,g=this._polygon,p=this._lineGroup,m=!n.ssr&&t.get("animation"),y=!u.isEmpty(),_=u.get("origin"),w=L5(a,s,_),b=y&&$oe(a,s,w),x=t.get("showSymbol"),S=t.get("connectNulls"),T=x&&!f&&rse(t,s,a),C=this._data;C&&C.eachItemGraphicEl(function(U,j){U.__temp&&(o.remove(U),C.setItemGraphicEl(j,null))}),x||v.remove(),o.add(p);var A=f?!1:t.get("step"),M;a&&a.getArea&&t.get("clip",!0)&&(M=a.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var k=tse(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===a.type&&A===this._step))x&&v.updateData(s,{isIgnore:T,clipShape:M,disableAnimation:!0,getSymbolPoint:function(U){return[c[U*2],c[U*2+1]]}}),m&&this._initSymbolLabelAnimation(s,a,M),A&&(b&&(b=ds(b,c,a,A,S)),c=ds(c,null,a,A,S)),d=this._newPolyline(c),y?g=this._newPolygon(c,b):g&&(p.remove(g),g=this._polygon=null),f||this._initOrUpdateEndLabel(t,a,El(k)),p.setClipPath(Kx(this,a,!0,t));else{y&&!g?g=this._newPolygon(c,b):g&&!y&&(p.remove(g),g=this._polygon=null),f||this._initOrUpdateEndLabel(t,a,El(k));var L=p.getClipPath();if(L){var P=Kx(this,a,!1,t);Ft(L,{shape:P.shape},t)}else p.setClipPath(Kx(this,a,!0,t));x&&v.updateData(s,{isIgnore:T,clipShape:M,disableAnimation:!0,getSymbolPoint:function(U){return[c[U*2],c[U*2+1]]}}),(!V5(this._stackedOnPoints,b)||!V5(this._points,c))&&(m?this._doUpdateAnimation(s,b,a,i,A,_,S):(A&&(b&&(b=ds(b,c,a,A,S)),c=ds(c,null,a,A,S)),d.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:b})))}var E=t.getModel("emphasis"),O=E.get("focus"),V=E.get("blurScope"),z=E.get("disabled");if(d.useStyle(Ne(l.getLineStyle(),{fill:"none",stroke:k,lineJoin:"bevel"})),Rr(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var H=d.getState("emphasis").style;H.lineWidth=+d.style.lineWidth+1}ze(d).seriesIndex=t.seriesIndex,qt(d,O,V,z);var B=F5(t.get("smooth")),F=t.get("smoothMonotone");if(d.setShape({smooth:B,smoothMonotone:F,connectNulls:S}),g){var ee=s.getCalculationInfo("stackedOnSeries"),ae=0;g.useStyle(Ne(u.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),ee&&(ae=F5(ee.get("smooth"))),g.setShape({smooth:B,stackedOnSmooth:ae,smoothMonotone:F,connectNulls:S}),Rr(g,t,"areaStyle"),ze(g).seriesIndex=t.seriesIndex,qt(g,O,V,z)}var le=this._changePolyState;s.eachItemGraphicEl(function(U){U&&(U.onHoverStateChange=le)}),this._polyline.onHoverStateChange=le,this._data=s,this._coordSys=a,this._stackedOnPoints=b,this._points=c,this._step=A,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,d),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,n){ze(n).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,n,i,a){var o=t.getData(),s=ul(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var h=t.get("zlevel")||0,v=t.get("z")||0;u=new Cv(o,s),u.x=c,u.y=f,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Dt.prototype.highlight.call(this,t,n,i,a)},e.prototype.downplay=function(t,n,i,a){var o=t.getData(),s=ul(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Dt.prototype.downplay.call(this,t,n,i,a)},e.prototype._changePolyState=function(t){var n=this._polygon;a0(this._polyline,t),n&&a0(n,t)},e.prototype._newPolyline=function(t){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new Joe({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(t,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new N5({shape:{points:t,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");Me(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=Me(f)?f(null):f;t.eachItemGraphicEl(function(v,d){var g=v;if(g){var p=[v.x,v.y],m=void 0,y=void 0,_=void 0;if(i)if(o){var w=i,b=n.pointToCoord(p);a?(m=w.startAngle,y=w.endAngle,_=-b[1]/180*Math.PI):(m=w.r0,y=w.r,_=b[0])}else{var x=i;a?(m=x.x,y=x.x+x.width,_=v.x):(m=x.y+x.height,y=x.y,_=v.y)}var S=y===m?0:(_-m)/(y-m);l&&(S=1-S);var T=Me(f)?f(d):c*S+h,C=g.getSymbolPath(),A=C.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,n,i){var a=t.getModel("endLabel");if(G5(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new ut({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=ase(l);c>=0&&(Vr(s,xr(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:c,defaultText:function(f,h,v){return v!=null?M5(o,v):jc(o,f)},enableTextSetter:!0},sse(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=i.getLayout("points"),h=i.hostModel,v=h.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,p=l.getBaseAxis(),m=p.isHorizontal(),y=p.inverse,_=n.shape,w=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,b=(m?g:0)*(y?-1:1),x=(m?0:-g)*(y?-1:1),S=m?"x":"y",T=ose(f,w,S),C=T.range,A=C[1]-C[0],M=void 0;if(A>=1){if(A>1&&!v){var k=H5(f,C[0]);u.attr({x:k[0]+b,y:k[1]+x}),o&&(M=h.getRawValue(C[0]))}else{var k=c.getPointOn(w,S);k&&u.attr({x:k[0]+b,y:k[1]+x});var L=h.getRawValue(C[0]),P=h.getRawValue(C[1]);o&&(M=eE(i,d,L,P,T.t))}a.lastFrameIndex=C[0]}else{var E=t===1||a.lastFrameIndex>0?C[0]:0,k=H5(f,E);o&&(M=h.getRawValue(E)),u.attr({x:k[0]+b,y:k[1]+x})}if(o){var O=Tc(u);typeof O.setLabelText=="function"&&O.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=t.hostModel,h=Koe(this._data,t,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,g=h.next,p=h.stackedOnNext;if(o&&(d=ds(h.stackedOnCurrent,h.current,i,o,l),v=ds(h.current,null,i,o,l),p=ds(h.stackedOnNext,h.next,i,o,l),g=ds(h.next,null,i,o,l)),B5(v,g)>3e3||c&&B5(d,p)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:p}));return}u.shape.__points=h.current,u.shape.points=v;var m={shape:{points:g}};h.current!==v&&(m.shape.__points=h.next),u.stopAnimation(),ht(u,m,f),c&&(c.setShape({points:v,stackedOnPoints:d}),c.stopAnimation(),ht(c,{shape:{stackedOnPoints:p}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],_=h.status,w=0;w<_.length;w++){var b=_[w].cmd;if(b==="="){var x=t.getItemGraphicEl(_[w].idx1);x&&y.push({el:x,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var S=u.shape.__points,T=0;T<y.length;T++){var C=y[T].el,A=y[T].ptIdx*2;C.x=S[A],C.y=S[A+1],C.markRedraw()}})},e.prototype.remove=function(t){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(Dt);function Iv(r,e){return{seriesType:r,plan:Vc(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,a=t.pipelineContext,o=e||a.large;if(i){var s=ne(i.dimensions,function(v){return n.mapDimension(v)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");fs(n,s[0])&&(s[0]=u),fs(n,s[1])&&(s[1]=u);var c=n.getStore(),f=n.getDimensionIndex(s[0]),h=n.getDimensionIndex(s[1]);return l&&{progress:function(v,d){for(var g=v.end-v.start,p=o&&wa(g*l),m=[],y=[],_=v.start,w=0;_<v.end;_++){var b=void 0;if(l===1){var x=c.get(f,_);b=i.dataToPoint(x,null,y)}else m[0]=c.get(f,_),m[1]=c.get(h,_),b=i.dataToPoint(m,null,y);o?(p[w++]=b[0],p[w++]=b[1]):d.setItemLayout(_,b.slice())}o&&d.setLayout("points",p)}}}}}}var use={average:function(r){for(var e=0,t=0,n=0;n<r.length;n++)isNaN(r[n])||(e+=r[n],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},cse=function(r){return Math.round(r.length/2)};function W5(r){return{seriesType:r,reset:function(e,t,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/h);if(isFinite(v)&&v>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/v));var d=void 0;me(a)?d=use[a]:Me(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/v,d,cse))}}}}}function fse(r){r.registerChartView(lse),r.registerSeriesModel(Yoe),r.registerLayout(Iv("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,W5("line"))}var Ev=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return ao(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(t),s=a.dataToPoint(o);if(i)N(a.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),g=h.getTickModel().get("alignWithLabel"),p=o[v],m=n[v]==="x1"||n[v]==="y1";if(m&&!g&&(p+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,w=1,b=0;b<d.length;b++){var x=d[b].coord,S=b===d.length-1?d[b-1].tickValue+w:d[b].tickValue;if(S===p){_=x;break}else if(S<p)y=x;else if(y!=null&&S>p){_=(x+y)/2;break}b===1&&(w=S-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Rt);Rt.registerClass(Ev);var hse=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return ao(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>t&&(t=n),t},e.prototype.brushSelector=function(t,n,i){return i.rect(n.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=is(Ev.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Ev),vse=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),_m=function(r){Y(e,r);function e(t){var n=r.call(this,t)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new vse},e.prototype.buildPath=function(t,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?f-c<v:c-f<v;d||(c=f-(h?v:-v));var g=Math.cos(c),p=Math.sin(c),m=Math.cos(f),y=Math.sin(f);d?(t.moveTo(g*o+i,p*o+a),t.arc(g*u+i,p*u+a,l,-Math.PI+c,c,!h)):t.moveTo(g*s+i,p*s+a),t.arc(i,a,s,c,f,!h),t.arc(m*u+i,y*u+a,l,f-Math.PI*2,f-Math.PI,!h),o!==0&&t.arc(i,a,o,f,c,h)},e}(Qe);function dse(r,e){e=e||{};var t=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return Wg(n,i,a);var s=r(o),l=i.distance!=null?i.distance:5,u=this.shape,c=u.cx,f=u.cy,h=u.r,v=u.r0,d=(h+v)/2,g=u.startAngle,p=u.endAngle,m=(g+p)/2,y=t?Math.abs(h-v)/2:0,_=Math.cos,w=Math.sin,b=c+h*_(g),x=f+h*w(g),S="left",T="top";switch(s){case"startArc":b=c+(v-l)*_(m),x=f+(v-l)*w(m),S="center",T="top";break;case"insideStartArc":b=c+(v+l)*_(m),x=f+(v+l)*w(m),S="center",T="bottom";break;case"startAngle":b=c+d*_(g)+wm(g,l+y,!1),x=f+d*w(g)+bm(g,l+y,!1),S="right",T="middle";break;case"insideStartAngle":b=c+d*_(g)+wm(g,-l+y,!1),x=f+d*w(g)+bm(g,-l+y,!1),S="left",T="middle";break;case"middle":b=c+d*_(m),x=f+d*w(m),S="center",T="middle";break;case"endArc":b=c+(h+l)*_(m),x=f+(h+l)*w(m),S="center",T="bottom";break;case"insideEndArc":b=c+(h-l)*_(m),x=f+(h-l)*w(m),S="center",T="top";break;case"endAngle":b=c+d*_(p)+wm(p,l+y,!0),x=f+d*w(p)+bm(p,l+y,!0),S="left",T="middle";break;case"insideEndAngle":b=c+d*_(p)+wm(p,-l+y,!0),x=f+d*w(p)+bm(p,-l+y,!0),S="right",T="middle";break;default:return Wg(n,i,a)}return n=n||{},n.x=b,n.y=x,n.align=S,n.verticalAlign=T,n}}function pse(r,e,t,n){if(ct(n)){r.setTextConfig({rotation:n});return}else if(re(e)){r.setTextConfig({rotation:0});return}var i=r.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),r.setTextConfig({rotation:c})}function wm(r,e,t){return e*Math.sin(r)*(t?-1:1)}function bm(r,e,t){return e*Math.cos(r)*(t?1:-1)}function Kl(r,e,t){var n=r.get("borderRadius");if(n==null)return t?{cornerRadius:0}:null;re(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:ne(n,function(a){return Li(a,i)})}}var Jx=Math.max,Qx=Math.min;function gse(r,e){var t=r.getArea&&r.getArea();if(jl(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=e.getLayout("bandWidth");n.isHorizontal()?(t.x-=i,t.width+=i*2):(t.y-=i,t.height+=i*2)}}return t}var mse=function(r){Y(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,n,i,a){this._model=t,this._removeOnRenderedListener(i),this._updateDrawMode(t);var o=t.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,n,i):this._renderNormal(t,n,i,a)):process.env.NODE_ENV!=="production"&&Xt("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,n){this._progressiveEls=[],this._incrementalRenderLarge(t,n)},e.prototype.eachRendered=function(t){ns(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t,n,i,a){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var h=t.isAnimationEnabled()?t:null,v=yse(t,u);v&&this._enableRealtimeSort(v,s,i);var d=t.get("clip",!0)||v,g=gse(u,s);o.removeClipPath();var p=t.get("roundCap",!0),m=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),_=y.get("borderRadius")||0,w=[],b=this._backgroundEls,x=a&&a.isInitSort,S=a&&a.type==="changeAxisOrder";function T(M){var k=xm[u.type](s,M),L=Ase(u,f,k);return L.useStyle(y.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),w[M]=L,L}s.diff(l).add(function(M){var k=s.getItemModel(M),L=xm[u.type](s,M,k);if(m&&T(M),!(!s.hasValue(M)||!q5[u.type](L))){var P=!1;d&&(P=Z5[u.type](g,L));var E=U5[u.type](t,s,M,L,f,h,c.model,!1,p);v&&(E.forceLabelAnimation=!0),K5(E,s,M,k,L,t,f,u.type==="polar"),x?E.attr({shape:L}):v?Y5(v,h,E,L,M,f,!1,!1):Ft(E,{shape:L},t,M),s.setItemGraphicEl(M,E),o.add(E),E.ignore=P}}).update(function(M,k){var L=s.getItemModel(M),P=xm[u.type](s,M,L);if(m){var E=void 0;b.length===0?E=T(k):(E=b[k],E.useStyle(y.getItemStyle()),u.type==="cartesian2d"?E.setShape("r",_):E.setShape("cornerRadius",_),w[M]=E);var O=xm[u.type](s,M),V=eP(f,O,u);ht(E,{shape:V},h,M)}var z=l.getItemGraphicEl(k);if(!s.hasValue(M)||!q5[u.type](P)){o.remove(z);return}var H=!1;if(d&&(H=Z5[u.type](g,P),H&&o.remove(z)),z?Ni(z):z=U5[u.type](t,s,M,P,f,h,c.model,!!z,p),v&&(z.forceLabelAnimation=!0),S){var B=z.getTextContent();if(B){var F=Tc(B);F.prevValue!=null&&(F.prevValue=F.value)}}else K5(z,s,M,L,P,t,f,u.type==="polar");x?z.attr({shape:P}):v?Y5(v,h,z,P,M,f,!0,S):ht(z,{shape:P},t,M,null),s.setItemGraphicEl(M,z),z.ignore=H,o.add(z)}).remove(function(M){var k=l.getItemGraphicEl(M);k&&Uh(k,t,M)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new Re);C.removeAll();for(var A=0;A<w.length;++A)C.add(w[A]);o.add(C),this._backgroundEls=w,this._data=s},e.prototype._renderLarge=function(t,n,i){this._clear(),Q5(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,n){this._removeBackground(),Q5(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var n=t.get("clip",!0)&&Mv(t.coordinateSystem,!1,t),i=this.group;n?i.setClipPath(n):i.removeClipPath()},e.prototype._enableRealtimeSort=function(t,n,i){var a=this;if(n.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,t,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,n,i){var a=[];return t.each(t.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:ne(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,n,i){for(var a=i.scale,o=t.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var c=t.rawIndexOf(o,a.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:n(t.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},e.prototype._isOrderDifferentInView=function(t,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,n,i,a){if(this._isOrderChangedWithinSameData(t,n,i)){var o=this._dataSort(t,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,n,i){var a=n.baseAxis,o=this._dataSort(t,a,function(s){return t.get(t.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(t,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(t,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var n=this.group,i=this._data;t&&t.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Uh(a,t,ze(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Dt),Z5={cartesian2d:function(r,e){var t=e.width<0?-1:1,n=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=r.x+r.width,a=r.y+r.height,o=Jx(e.x,r.x),s=Qx(e.x+e.width,i),l=Jx(e.y,r.y),u=Qx(e.y+e.height,a),c=s<o,f=u<l;return e.x=c&&o>i?s:o,e.y=f&&l>a?u:l,e.width=c?0:s-o,e.height=f?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),c||f},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}var i=Qx(e.r,r.r),a=Jx(e.r0,r.r0);e.r=i,e.r0=a;var o=i-a<0;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},U5={cartesian2d:function(r,e,t,n,i,a,o,s,l){var u=new st({shape:$({},n),z2:1});if(u.__dataIndex=t,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(r,e,t,n,i,a,o,s,l){var u=!i&&l?_m:ln,c=new u({shape:n,z2:1});c.name="item";var f=j5(i);if(c.calculateTextPosition=dse(f,{isRoundCap:u===_m}),a){var h=c.shape,v=i?"r":"endAngle",d={};h[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?ht:Ft)(c,{shape:d},a)}return c}};function yse(r,e){var t=r.get("realtimeSort",!0),n=e.getBaseAxis();if(process.env.NODE_ENV!=="production"&&t&&(n.type!=="category"&&Xt("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&Xt("`realtimeSort` will not work because this bar series is not on cartesian2d.")),t&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function Y5(r,e,t,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?ht:Ft)(t,{shape:l},e,i,null);var c=e?r.baseAxis.model:null;(o?ht:Ft)(t,{shape:u},c,i)}function X5(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var _se=["x","y","width","height"],wse=["cx","cy","r","startAngle","endAngle"],q5={cartesian2d:function(r){return!X5(r,_se)},polar:function(r){return!X5(r,wse)}},xm={cartesian2d:function(r,e,t){var n=r.getItemLayout(e),i=t?xse(t,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(r,e,t){var n=r.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function bse(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function j5(r){return function(e){var t=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+t;default:return n}}}(r)}function K5(r,e,t,n,i,a,o,s){var l=e.getItemVisual(t,"style");if(s){if(!a.get("roundCap")){var c=r.shape,f=Kl(n.getModel("itemStyle"),c,!0);$(c,f),r.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=n.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=xr(n);Vr(r,d,{labelFetcher:a,labelDataIndex:t,defaultText:jc(a.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var g=r.getTextContent();if(s&&g){var p=n.get(["label","position"]);r.textConfig.inside=p==="middle"?!0:null,pse(r,p==="outside"?v:p,j5(o),n.get(["label","rotate"]))}w6(g,d,a.getRawValue(t),function(y){return M5(e,y)});var m=n.getModel(["emphasis"]);qt(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),Rr(r,n),bse(i)&&(r.style.fill="none",r.style.stroke="none",N(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function xse(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}var Sse=function(){function r(){}return r}(),J5=function(r){Y(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new Sse},e.prototype.buildPath=function(t,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<i.length;c+=3)l[a]=u,l[o]=i[c+2],s[a]=i[c+a],s[o]=i[c+o],t.rect(s[0],s[1],l[0],l[1])},e}(Qe);function Q5(r,e,t,n){var i=r.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=r.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new J5({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),t&&t.push(c)}var f=new J5({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,e.add(f),f.useStyle(i.getVisual("style")),f.style.stroke=null,ze(f).seriesIndex=r.seriesIndex,r.get("silent")||(f.on("mousedown",$5),f.on("mousemove",$5)),t&&t.push(f)}var $5=Xb(function(r){var e=this,t=Tse(e,r.offsetX,r.offsetY);ze(e).dataIndex=t>=0?t:null},30,!1);function Tse(r,e,t){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,f=a.length/3;c<f;c++){var h=c*3;if(l[n]=u,l[i]=a[h+2],s[n]=a[h+n],s[i]=a[h+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function eP(r,e,t){if(jl(t,"cartesian2d")){var n=e,i=t.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=t.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function Ase(r,e,t){var n=r.type==="polar"?ln:st;return new n({shape:eP(e,t,r),silent:!0,z2:0})}function Cse(r){r.registerChartView(mse),r.registerSeriesModel(hse),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,He(mk,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,yk("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,W5("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var tP=Math.PI*2,Sm=Math.PI/180;function rP(r,e){return mr(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function nP(r,e){var t=rP(r,e),n=r.get("center"),i=r.get("radius");re(i)||(i=[0,i]);var a=de(t.width,e.getWidth()),o=de(t.height,e.getHeight()),s=Math.min(a,o),l=de(i[0],s/2),u=de(i[1],s/2),c,f,h=r.coordinateSystem;if(h){var v=h.dataToPoint(n);c=v[0]||0,f=v[1]||0}else re(n)||(n=[n,n]),c=de(n[0],a)+t.x,f=de(n[1],o)+t.y;return{cx:c,cy:f,r0:l,r:u}}function Dse(r,e,t){e.eachSeriesByType(r,function(n){var i=n.getData(),a=i.mapDimension("value"),o=rP(n,t),s=nP(n,t),l=s.cx,u=s.cy,c=s.r,f=s.r0,h=-n.get("startAngle")*Sm,v=n.get("endAngle"),d=n.get("padAngle")*Sm;v=v==="auto"?h-tP:-v*Sm;var g=n.get("minAngle")*Sm,p=g+d,m=0;i.each(a,function(V){!isNaN(V)&&m++});var y=i.getSum(a),_=Math.PI/(y||m)*2,w=n.get("clockwise"),b=n.get("roseType"),x=n.get("stillShowZeroSum"),S=i.getDataExtent(a);S[0]=0;var T=w?1:-1,C=[h,v],A=T*d/2;Hw(C,!w),h=C[0],v=C[1];var M=iP(n);M.startAngle=h,M.endAngle=v,M.clockwise=w;var k=Math.abs(v-h),L=k,P=0,E=h;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(V,z){var H;if(isNaN(V)){i.setItemLayout(z,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:l,cy:u,r0:f,r:b?NaN:c});return}b!=="area"?H=y===0&&x?_:V*_:H=k/m,H<p?(H=p,L-=p):P+=V;var B=E+T*H,F=0,ee=0;d>H?(F=E+T*H/2,ee=F):(F=E+A,ee=B-A),i.setItemLayout(z,{angle:H,startAngle:F,endAngle:ee,clockwise:w,cx:l,cy:u,r0:f,r:b?wt(V,S,[f,c]):c}),E=B}),L<tP&&m)if(L<=.001){var O=k/m;i.each(a,function(V,z){if(!isNaN(V)){var H=i.getItemLayout(z);H.angle=O;var B=0,F=0;O<d?(B=h+T*(z+1/2)*O,F=B):(B=h+T*z*O+A,F=h+T*(z+1)*O-A),H.startAngle=B,H.endAngle=F}})}else _=L/P,E=h,i.each(a,function(V,z){if(!isNaN(V)){var H=i.getItemLayout(z),B=H.angle===p?p:V*_,F=0,ee=0;B<d?(F=E+T*B/2,ee=F):(F=E+A,ee=E+T*B-A),H.startAngle=F,H.endAngle=ee,E+=T*B}})})}var iP=ot();function Lv(r){return{seriesType:r,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=e.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var Mse=Math.PI/180;function aP(r,e,t,n,i,a,o,s,l,u){if(r.length<2)return;function c(g){for(var p=g.rB,m=p*p,y=0;y<g.list.length;y++){var _=g.list[y],w=Math.abs(_.label.y-t),b=n+_.len,x=b*b,S=Math.sqrt(Math.abs((1-w*w/m)*x)),T=e+(S+_.len2)*i,C=T-_.label.x,A=_.targetTextWidth-C*i;oP(_,A,!0),_.label.x=T}}function f(g){for(var p={list:[],maxY:0},m={list:[],maxY:0},y=0;y<g.length;y++)if(g[y].labelAlignTo==="none"){var _=g[y],w=_.label.y>t?m:p,b=Math.abs(_.label.y-t);if(b>=w.maxY){var x=_.label.x-e-_.len2*i,S=n+_.len,T=Math.abs(x)<S?Math.sqrt(b*b/(1-x*x/S/S)):S;w.rB=T,w.maxY=b}w.list.push(_)}c(p),c(m)}for(var h=r.length,v=0;v<h;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}qk(r,l,l+o)&&f(r)}function Ise(r,e,t,n,i,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,h=0;h<r.length;h++){var v=r[h].label;$x(r[h])||(v.x<e?(c=Math.min(c,v.x),l.push(r[h])):(f=Math.max(f,v.x),u.push(r[h])))}for(var h=0;h<r.length;h++){var d=r[h];if(!$x(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,g=d.linePoints,p=void 0;d.labelAlignTo==="edge"?v.x<e?p=g[2][0]-d.labelDistance-o-d.edgeDistance:p=o+i-d.edgeDistance-g[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<e?p=c-o-d.bleedMargin:p=o+i-f-d.bleedMargin:v.x<e?p=v.x-o-d.bleedMargin:p=o+i-v.x-d.bleedMargin,d.targetTextWidth=p,oP(d,p)}}aP(u,e,t,n,1,i,a,o,s,f),aP(l,e,t,n,-1,i,a,o,s,c);for(var h=0;h<r.length;h++){var d=r[h];if(!$x(d)&&d.linePoints){var v=d.label,g=d.linePoints,m=d.labelAlignTo==="edge",y=v.style.padding,_=y?y[1]+y[3]:0,w=v.style.backgroundColor?0:_,b=d.rect.width+w,x=g[1][0]-g[2][0];m?v.x<e?g[2][0]=o+d.edgeDistance+b+d.labelDistance:g[2][0]=o+i-d.edgeDistance-b-d.labelDistance:(v.x<e?g[2][0]=v.x+d.labelDistance:g[2][0]=v.x-d.labelDistance,g[1][0]=g[2][0]+x),g[1][1]=g[2][1]=v.y}}}function oP(r,e,t){if(t===void 0&&(t=!1),r.labelStyleWidth==null){var n=r.label,i=n.style,a=r.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=a.width+(o?0:l);if(e<c||t){var f=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var v=e-l,d=e<c?v:t?v>r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var g=n.getBoundingRect();a.width=g.width;var p=(n.style.margin||0)+2.1;a.height=g.height+p,a.y-=(a.height-f)/2}}}function $x(r){return r.position==="center"}function Ese(r){var e=r.getData(),t=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*Mse,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var S in x.states)if(x.states[S].ignore===!1)return!0;return!1}e.each(function(x){var S=e.getItemGraphicEl(x),T=S.shape,C=S.getTextContent(),A=S.getTextGuideLine(),M=e.getItemModel(x),k=M.getModel("label"),L=k.get("position")||M.get(["emphasis","label","position"]),P=k.get("distanceToLabelLine"),E=k.get("alignTo"),O=de(k.get("edgeDistance"),u),V=k.get("bleedMargin"),z=M.getModel("labelLine"),H=z.get("length");H=de(H,u);var B=z.get("length2");if(B=de(B,u),Math.abs(T.endAngle-T.startAngle)<o){N(C.states,v),C.ignore=!0,A&&(N(A.states,v),A.ignore=!0);return}if(d(C)){var F=(T.startAngle+T.endAngle)/2,ee=Math.cos(F),ae=Math.sin(F),le,U,j,Xe;n=T.cx,i=T.cy;var Te=L==="inside"||L==="inner";if(L==="center")le=T.cx,U=T.cy,Xe="center";else{var xe=(Te?(T.r+T.r0)/2*ee:T.r*ee)+n,Be=(Te?(T.r+T.r0)/2*ae:T.r*ae)+i;if(le=xe+ee*3,U=Be+ae*3,!Te){var be=xe+ee*(H+l-T.r),fe=Be+ae*(H+l-T.r),et=be+(ee<0?-1:1)*B,vt=fe;E==="edge"?le=ee<0?c+O:c+u-O:le=et+(ee<0?-P:P),U=vt,j=[[xe,Be],[be,fe],[et,vt]]}Xe=Te?"center":E==="edge"?ee>0?"right":"left":ee>0?"left":"right"}var xt=Math.PI,kt=0,jt=k.get("rotate");if(ct(jt))kt=jt*(xt/180);else if(L==="center")kt=0;else if(jt==="radial"||jt===!0){var Cr=ee<0?-F+xt:-F;kt=Cr}else if(jt==="tangential"&&L!=="outside"&&L!=="outer"){var dr=Math.atan2(ee,ae);dr<0&&(dr=xt*2+dr);var Gi=ae>0;Gi&&(dr=xt+dr),kt=dr-xt}if(a=!!kt,C.x=le,C.y=U,C.rotation=kt,C.setStyle({verticalAlign:"middle"}),Te){C.setStyle({align:Xe});var Yd=C.states.select;Yd&&(Yd.x+=C.x,Yd.y+=C.y)}else{var mt=C.getBoundingRect().clone();mt.applyTransform(C.getComputedTransform());var As=(C.style.margin||0)+2.1;mt.y-=As/2,mt.height+=As,t.push({label:C,labelLine:A,position:L,len:H,len2:B,minTurnAngle:z.get("minTurnAngle"),maxSurfaceAngle:z.get("maxSurfaceAngle"),surfaceNormal:new Ze(ee,ae),linePoints:j,textAlign:Xe,labelDistance:P,labelAlignTo:E,edgeDistance:O,bleedMargin:V,rect:mt,unconstrainedWidth:mt.width,labelStyleWidth:C.style.width})}S.setTextConfig({inside:Te})}}),!a&&r.get("avoidLabelOverlap")&&Ise(t,n,i,l,u,h,c,f);for(var g=0;g<t.length;g++){var p=t[g],m=p.label,y=p.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:p.textAlign}),_&&(N(m.states,v),m.ignore=!0);var w=m.states.select;w&&(w.x+=m.x,w.y+=m.y)}if(y){var b=p.linePoints;_||!b?(N(y.states,v),y.ignore=!0):(Uk(b,p.minTurnAngle),$ae(b,p.surfaceNormal,p.maxSurfaceAngle),y.setShape({points:b}),m.__hostTarget.textGuideLineConfig={anchor:new Ze(b[0][0],b[0][1])})}}}var Lse=function(r){Y(e,r);function e(t,n,i){var a=r.call(this)||this;a.z2=2;var o=new ut;return a.setTextContent(o),a.updateData(t,n,i,!0),a}return e.prototype.updateData=function(t,n,i,a){var o=this,s=t.hostModel,l=t.getItemModel(n),u=l.getModel("emphasis"),c=t.getItemLayout(n),f=$(Kl(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(a){o.setShape(f);var h=s.getShallow("animationType");s.ecModel.ssr?(Ft(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):h==="scale"?(o.shape.r=c.r0,Ft(o,{shape:{r:c.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Ft(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,ht(o,{shape:{endAngle:c.endAngle}},s,n))}else Ni(o),ht(o,{shape:f},s,n);o.useStyle(t.getItemVisual(n,"style")),Rr(o,l);var v=(c.startAngle+c.endAngle)/2,d=s.get("selectedOffset"),g=Math.cos(v)*d,p=Math.sin(v)*d,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,t,n),o.ensureState("emphasis").shape=$({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Kl(u.getModel("itemStyle"),c)),$(o.ensureState("select"),{x:g,y:p,shape:Kl(l.getModel(["select","itemStyle"]),c)}),$(o.ensureState("blur"),{shape:Kl(l.getModel(["blur","itemStyle"]),c)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&$(y.ensureState("select"),{x:g,y:p}),$(_.ensureState("select"),{x:g,y:p}),qt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,c=l&&l.opacity;Vr(a,xr(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:c,defaultText:t.getFormattedLabel(i,"normal")||n.getName(i)});var f=a.getTextContent();a.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var h=t.get(["label","position"]);if(h!=="outside"&&h!=="outer")a.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new cn,this.setTextGuideLine(v)),Lx(this,kx(o),{stroke:u,opacity:Zn(s.get(["lineStyle","opacity"]),c,1)})}},e}(ln),kse=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,i,a){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var h=iP(t),v=new ln({shape:$(nP(t,i),h)});v.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var g=new Lse(o,d,u);o.setItemGraphicEl(d,g),l.add(g)}).update(function(d,g){var p=s.getItemGraphicEl(g);p.updateData(o,d,u),p.off("click"),l.add(p),o.setItemGraphicEl(d,p)}).remove(function(d){var g=s.getItemGraphicEl(d);Uh(g,t,d)}).execute(),Ese(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=t[0]-a.cx,s=t[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type="pie",e}(Dt);function Kc(r,e,t){e=re(e)&&{coordDimensions:e}||$({encodeDefine:r.getEncode()},e);var n=r.getSource(),i=yv(n,e).dimensions,a=new fn(i,r);return a.initData(n,t),a}var kv=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},r}(),Pse=ot(),Nse=function(r){Y(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new kv(ye(this.getData,this),ye(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Kc(this,{coordDimensions:["value"],encodeDefaulter:He(Ab,this)})},e.prototype.getDataParams=function(t){var n=this.getData(),i=Pse(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=y$(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=a[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){ll(t,"labelLine",["show"]);var n=t.labelLine,i=t.emphasis.labelLine;n.show=n.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Rt);function Ose(r){return{seriesType:r,reset:function(e,t){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(ct(o)&&!isNaN(o)&&o<0)})}}}function Rse(r){r.registerChartView(kse),r.registerSeriesModel(Nse),fL("pie",r.registerAction),r.registerLayout(He(Dse,"pie")),r.registerProcessor(Lv("pie")),r.registerProcessor(Ose("pie"))}var Vse=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,n){return ao(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,n,i){return i.point(n.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Rt),sP=4,zse=function(){function r(){}return r}(),Bse=function(r){Y(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new zse},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&a[0]<sP,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<i.length;){var h=i[f++],v=i[f++];isNaN(h)||isNaN(v)||c&&!c.contain(h,v)||(s.x=h-a[0]/2,s.y=v-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,n=t.points,i=t.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var c=u*2,f=a[c]-s/2,h=a[c+1]-l/2;if(t>=f&&n>=h&&t<=f+s&&n<=h+l)return u}return-1},e.prototype.contain=function(t,n){var i=this.transformCoordToLocal(t,n),a=this.getBoundingRect();if(t=i[0],n=i[1],a.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,f=-1/0,h=0;h<i.length;){var v=i[h++],d=i[h++];l=Math.min(v,l),c=Math.max(v,c),u=Math.min(d,u),f=Math.max(d,f)}t=this._rect=new Ue(l-o/2,u-s/2,c-l+o,f-u+s)}return t},e}(Qe),Fse=function(){function r(){this.group=new Re}return r.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},r.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var i=(n.endIndex-n.startIndex)*2,a=n.startIndex*4*2;t=new Float32Array(t.buffer,a,i)}n.setShape("points",t),n.reset()})},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,n){var i=this._newAdded[0],a=t.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),i.endIndex=e.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:a}),this._setCommon(u,t,n)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new Bse({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,n){var i=t.hostModel;n=n||{};var a=t.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=n.clipShape||null,e.symbolProxy=vr(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<sP;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=ze(e);u.seriesIndex=i.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var f=e.hoverDataIdx;f>=0&&(u.dataIndex=f+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),Hse=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){var a=t.getData(),o=this._updateSymbolDraw(a,t);o.updateData(a,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,i){var a=t.getData(),o=this._updateSymbolDraw(a,t);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(t,n,i){this._symbolDraw.incrementalUpdate(t,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=t.end===n.getData().count()},e.prototype.updateTransform=function(t,n,i){var a=t.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=Iv("").reset(t,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var n=t.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new Fse:new Dv,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Dt),Gse=function(r){Y(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}($e),eS=function(r){Y(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",fr).models[0]},e.type="cartesian2dAxis",e}($e);lr(eS,wv);var lP={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Wse=Ge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},lP),tS=Ge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},lP),Zse=Ge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},tS),Use=Ne({logBase:10},tS);const uP={category:Wse,value:tS,time:Zse,log:Use};var Yse={value:1,category:1,time:1,log:1};function Jc(r,e,t,n){N(Yse,function(i,a){var o=Ge(Ge({},uP[a],!0),n,!0),s=function(l){Y(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=Qh(this),v=h?Ec(c):{},d=f.getTheme();Ge(c,d.get(a+"Axis")),Ge(c,this.getDefaultOption()),c.type=cP(c),h&&os(c,v,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=yx.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+a,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",cP)}function cP(r){return r.type||(r.data?"category":"value")}var Xse=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return ne(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),pt(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),rS=["x","y"];function fP(r){return r.type==="interval"||r.type==="time"}var qse=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=rS,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!fP(t)||!fP(n))){var i=t.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,h=o[0]-i[0]*c,v=o[1]-a[0]*f,d=this._transform=[c,0,0,f,h,v];this._invTransform=oc([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,n){var i=this.dataToPoint(t),a=this.dataToPoint(n),o=this.getArea(),s=new Ue(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,n,i){i=i||[];var a=t[0],o=t[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Nr(i,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},e.prototype.clampData=function(t,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(t[0]),u=a.parse(t[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(t,n){var i=[];if(this._invTransform)return Nr(i,t,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(t[0]),n),i[1]=o.coordToData(o.toLocalCoord(t[1]),n),i},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-t,o=Math.min(i[0],i[1])-t,s=Math.max(n[0],n[1])-a+t,l=Math.max(i[0],i[1])-o+t;return new Ue(a,o,s,l)},e}(Xse),jse=function(r){Y(e,r);function e(t,n,i,a,o){var s=r.call(this,t,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),t&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(t,n){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Bi);function nS(r,e,t){t=t||{};var n=r.coordinateSystem,i=e.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=e.get("offset")||0,d=u==="x"?[f[2]-v,f[3]+v]:[f[0]-v,f[1]+v];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(g,d[1]),d[0])}a.position=[u==="y"?d[h[l]]:f[0],u==="x"?d[h[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[h[s]]-d[h.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),ur(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=e.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function hP(r){return r.get("coordinateSystem")==="cartesian2d"}function vP(r){var e={xAxisModel:null,yAxisModel:null};return N(e,function(t,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,fr).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error(i+' "'+Zn(r.get(i+"Index"),r.get(i+"Id"),0)+'" not found');e[n]=a}),e}var iS=Math.log;function dP(r,e,t){var n=oo.prototype,i=n.getTicks.call(t),a=n.getTicks.call(t,!0),o=i.length-1,s=n.getInterval.call(t),l=Ak(r,e),u=l.extent,c=l.fixMin,f=l.fixMax;if(r.type==="log"){var h=iS(r.base);u=[iS(u[0])/h,iS(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var v=n.getExtent.call(r);c&&(u[0]=v[0]),f&&(u[1]=v[1]);var d=n.getInterval.call(r),g=u[0],p=u[1];if(c&&f)d=(p-g)/o;else if(c)for(p=u[0]+d*o;p<u[1]&&isFinite(p)&&isFinite(u[1]);)d=bx(d),p=u[0]+d*o;else if(f)for(g=u[1]-d*o;g>u[0]&&isFinite(g)&&isFinite(u[0]);)d=bx(d),g=u[1]-d*o;else{var m=r.getTicks().length-1;m>o&&(d=bx(d));var y=d*o;p=Math.ceil(u[1]/d)*d,g=Qt(p-y),g<0&&u[0]>=0?(g=0,p=Qt(y)):p>0&&u[1]<=0&&(p=0,g=-Qt(y))}var _=(i[0].value-a[0].value)/s,w=(i[o].value-a[o].value)/s;if(n.setExtent.call(r,g+d*_,p+d*w),n.setInterval.call(r,d),(_||w)&&n.setNiceExtent.call(r,g+d,p-d),process.env.NODE_ENV!=="production"){var b=n.getTicks.call(r);b[1]&&(!oae(d)||ww(b[1].value)>ww(d))&&Xt("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+" and alignTicks: true")}}var Kse=function(){function r(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=rS,this._initCartesian(e,t,n),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=nt(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],v=o[h],d=v.model,g=v.scale;_x(g)&&d.get("alignTicks")&&d.get("interval")==null?c.push(v):(Yc(g,d),_x(g)&&(s=v))}c.length&&(s||(s=c.pop(),Yc(s.scale,s.model)),N(c,function(p){dP(p.scale,p.model,s.scale)}))}}i(n.x),i(n.y);var a={};N(n.x,function(o){pP(n,"y",o,a)}),N(n.y,function(o){pP(n,"x",o,a)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,n){var i=e.getBoxLayoutParams(),a=!n&&e.get("containLabel"),o=mr(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(N(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Eae(u);if(c){var f=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),l()),N(this._coordsList,function(u){u.calcAffineTransform()});function l(){N(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(f[h],f[1-h]),Jse(u,c?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n="x"+e+"y"+t;return this._coordsMap[n]}Le(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===t)return a[i]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents("xAxis",fr).models[0],i=e.yAxisModel||t&&t.getReferringComponents("yAxis",fr).models[0],a=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,qe(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,N(s.x,function(c,f){N(s.y,function(h,v){var d="x"+f+"y"+v,g=new qse(d);g.master=i,g.model=e,i._coordsMap[d]=g,i._coordsList.push(g),g.addAxis(c),g.addAxis(h)})});function u(c){return function(f,h){if(aS(f,e)){var v=f.get("position");c==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new jse(c,cm(f),[0,0],f.get("type"),v),g=d.type==="category";d.onBand=g&&f.get("boundaryGap"),d.inverse=f.get("inverse"),f.axis=d,d.model=f,d.grid=a,d.index=h,a._axesList.push(d),s[c][h]=d,l[c]++}}}},r.prototype._updateScale=function(e,t){N(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),e.eachSeries(function(i){if(hP(i)){var a=vP(i),o=a.xAxisModel,s=a.yAxisModel;if(!aS(o,t)||!aS(s,t))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),c=l.getAxis("x"),f=l.getAxis("y");n(u,c),n(u,f)}},this);function n(i,a){N(fm(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],n=[];return N(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);qe(t,a)<0&&t.push(a),qe(n,o)<0&&n.push(o)}),{baseAxes:t,otherAxes:n}},r.create=function(e,t){var n=[];return e.eachComponent("grid",function(i,a){var o=new r(i,e,t);o.name="grid_"+a,o.resize(i,t,!0),i.coordinateSystem=o,n.push(o)}),e.eachSeries(function(i){if(hP(i)){var a=vP(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+Zn(o.get("gridIndex"),o.get("gridId"),0)+'" not found');if(o.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},r.dimensions=rS,r}();function aS(r,e){return r.getCoordSysModel()===e}function pP(r,e,t,n){t.getAxesOnZeroOf=function(){return a?[a]:[]};var i=r[e],a,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)gP(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&gP(i[u])&&!n[c(i[u])]){a=i[u];break}a&&(n[c(a)]=!0);function c(f){return f.dim+"_"+f.index}}function gP(r){return r&&r.type!=="category"&&r.type!=="time"&&Iae(r)}function Jse(r,e){var t=r.getExtent(),n=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(i){return i+e}:function(i){return n-i+e},r.toLocalCoord=r.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}var ps=Math.PI,dn=function(){function r(e,t){this.group=new Re,this.opt=t,this.axisModel=e,Ne(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Re({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return r.prototype.hasBuilder=function(e){return!!mP[e]},r.prototype.add=function(e){mP[e](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(e,t,n){var i=zI(t-e),a,o;return Ih(i)?(o=n>0?"top":"bottom",a="center"):Ih(i-ps)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<ps?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),mP={axisLine:function(r,e,t,n){var i=e.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var a=e.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Nr(s,s,o),Nr(l,l,o));var c=$({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new br({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Sc(f.shape,f.style.lineWidth),f.anid="line",t.add(f);var h=e.get(["axisLine","symbol"]);if(h!=null){var v=e.get(["axisLine","symbolSize"]);me(h)&&(h=[h,h]),(me(v)||ct(v))&&(v=[v,v]);var d=Vl(e.get(["axisLine","symbolOffset"])||0,v),g=v[0],p=v[1];N([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(h[y]!=="none"&&h[y]!=null){var _=vr(h[y],-g/2,-p/2,g,p,c.stroke,!0),w=m.r+m.offset,b=u?l:s;_.attr({rotation:m.rotate,x:b[0]+w*Math.cos(r.rotation),y:b[1]-w*Math.sin(r.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(r,e,t,n){var i=ele(t,n,e,r),a=rle(t,n,e,r);if($se(e,a,i),tle(t,n,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Yk(ne(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));jk(o)}},axisName:function(r,e,t,n){var i=ur(r.axisName,e.get("name"));if(i){var a=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,_P(a)?r.labelOffset+o*l:0],h,v=e.get("nameRotate");v!=null&&(v=v*ps/180);var d;_P(a)?h=dn.innerTextLayout(r.rotation,v??r.rotation,o):(h=Qse(r.rotation,a,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var g=s.getFont(),p=e.get("nameTruncate",!0)||{},m=p.ellipsis,y=ur(r.nameTruncateMaxWidth,p.maxWidth,d),_=new ut({x:f[0],y:f[1],rotation:h.rotation,silent:dn.isLabelSilent(e),style:Ot(s,{text:i,font:g,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Ml({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var w=dn.makeAxisEventDataBase(e);w.targetType="axisName",w.name=i,ze(_).eventData=w}n.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function Qse(r,e,t,n){var i=zI(t-r),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Ih(i-ps/2)?(o=l?"bottom":"top",a="center"):Ih(i-ps*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<ps*1.5&&i>ps/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function $se(r,e,t){if(!Ck(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],f=t[t.length-1],h=t[t.length-2];n===!1?(ai(a),ai(u)):yP(a,o)&&(n?(ai(o),ai(c)):(ai(a),ai(u))),i===!1?(ai(s),ai(f)):yP(l,s)&&(i?(ai(l),ai(h)):(ai(s),ai(f)))}}function ai(r){r&&(r.ignore=!0)}function yP(r,e){var t=r&&r.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!t||!n)){var i=wg([]);return el(i,i,-r.rotation),t.applyTransform(Ua([],i,r.getLocalTransform())),n.applyTransform(Ua([],i,e.getLocalTransform())),t.intersect(n)}}function _P(r){return r==="middle"||r==="center"}function wP(r,e,t,n,i){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(Nr(o,o,e),Nr(s,s,e));var c=new br({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Sc(c.shape,c.style.lineWidth),c.anid=i+"_"+r[l].tickValue,a.push(c)}return a}function ele(r,e,t,n){var i=t.axis,a=t.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),c=wP(u,e.transform,l,Ne(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)r.add(c[f]);return c}}function tle(r,e,t,n){var i=t.axis,a=t.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=Ne(s.getLineStyle(),Ne(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=wP(o[c],e.transform,l,u,"minorticks_"+c),h=0;h<f.length;h++)r.add(f[h])}}function rle(r,e,t,n){var i=t.axis,a=ur(n.axisLabelShow,t.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=t.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(ur(n.labelRotate,o.get("rotate"))||0)*ps/180,c=dn.innerTextLayout(n.rotation,u,n.labelDirection),f=t.getCategories&&t.getCategories(!0),h=[],v=dn.isLabelSilent(t),d=t.get("triggerEvent");return N(l,function(g,p){var m=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,y=g.formattedLabel,_=g.rawLabel,w=o;if(f&&f[m]){var b=f[m];Le(b)&&b.textStyle&&(w=new bt(b.textStyle,o,t.ecModel))}var x=w.getTextColor()||t.get(["axisLine","lineStyle","color"]),S=i.dataToCoord(m),T=w.getShallow("align",!0)||c.textAlign,C=Ve(w.getShallow("alignMinLabel",!0),T),A=Ve(w.getShallow("alignMaxLabel",!0),T),M=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||c.textVerticalAlign,k=Ve(w.getShallow("verticalAlignMinLabel",!0),M),L=Ve(w.getShallow("verticalAlignMaxLabel",!0),M),P=new ut({x:S,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:v,z2:10+(g.level||0),style:Ot(w,{text:y,align:p===0?C:p===l.length-1?A:T,verticalAlign:p===0?k:p===l.length-1?L:M,fill:Me(x)?x(i.type==="category"?_:i.type==="value"?m+"":m,p):x})});if(P.anid="label_"+m,Ml({el:P,componentModel:t,itemName:y,formatterParamsExtra:{isTruncated:function(){return P.isTruncated},value:_,tickIndex:p}}),d){var E=dn.makeAxisEventDataBase(t);E.targetType="axisLabel",E.value=_,E.tickIndex=p,i.type==="category"&&(E.dataIndex=m),ze(P).eventData=E}e.add(P),P.updateTransform(),h.push(P),r.add(P),P.decomposeTransform()}),h}}function nle(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return ile(t,r,e),t.seriesInvolved&&ole(t,r),t}function ile(r,e,t){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];N(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Pv(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(N(s.getAxes(),He(g,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var h=f.get("trigger")==="axis",v=f.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(f.get(["axisPointer","axis"]));(h||v)&&N(d.baseAxes,He(g,v?"cross":!0,h)),v&&N(d.otherAxes,He(g,"cross",!1))}function g(p,m,y){var _=y.model.getModel("axisPointer",i),w=_.get("show");if(!(!w||w==="auto"&&!p&&!lS(_))){m==null&&(m=_.get("triggerTooltip")),_=p?ale(y,f,i,e,p,m):_;var b=_.get("snap"),x=_.get("triggerEmphasis"),S=Pv(y.model),T=m||b||y.type==="category",C=r.axesInfo[S]={key:S,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:x,involveSeries:T,snap:b,useHandle:lS(_),seriesModels:[],linkGroup:null};u[S]=C,r.seriesInvolved=r.seriesInvolved||T;var A=sle(a,y);if(A!=null){var M=o[A]||(o[A]={axesInfo:{}});M.axesInfo[S]=C,M.mapper=a[A].mapper,C.linkGroup=M}}}})}function ale(r,e,t,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};N(s,function(h){l[h]=Oe(o.get(h))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!a){var f=l.lineStyle=o.get("crossStyle");f&&Ne(u,f.textStyle)}}return r.model.getModel("axisPointer",new bt(l,t,n))}function ole(r,e){e.eachSeries(function(t){var n=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),a=t.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||t.get(["axisPointer","show"],!0)===!1||N(r.coordSysAxesInfo[Pv(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function sle(r,e){for(var t=e.model,n=e.dim,i=0;i<r.length;i++){var a=r[i]||{};if(oS(a[n+"AxisId"],t.id)||oS(a[n+"AxisIndex"],t.componentIndex)||oS(a[n+"AxisName"],t.name))return i}}function oS(r,e){return r==="all"||re(r)&&qe(r,e)>=0||r===e}function lle(r){var e=sS(r);if(e){var t=e.axisPointerModel,n=e.axis.scale,i=t.option,a=t.get("status"),o=t.get("value");o!=null&&(o=n.parse(o));var s=lS(t);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function sS(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Pv(r)]}function ule(r){var e=sS(r);return e&&e.axisPointerModel}function lS(r){return!!r.get(["handle","show"])}function Pv(r){return r.type+"||"+r.id}var uS={},Jl=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i,a){this.axisPointerClass&&lle(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},e.prototype.updateAxisPointer=function(t,n,i,a){this._doUpdateAxisPointerClass(t,i,!1)},e.prototype.remove=function(t,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(t,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=ule(t);o?(this._axisPointer||(this._axisPointer=new a)).render(t,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,n){if(process.env.NODE_ENV!=="production"&&uS[t])throw new Error("axisPointer "+t+" exists");uS[t]=n},e.getAxisPointerClass=function(t){return t&&uS[t]},e.type="axis",e}(Zt),cS=ot();function bP(r,e,t,n){var i=t.axis;if(!i.scale.isBlank()){var a=t.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var c=s.length,f=cS(r).splitAreaColors,h=Se(),v=0;if(f)for(var d=0;d<u.length;d++){var g=f.get(u[d].tickValue);if(g!=null){v=(g+(c-1)*d)%c;break}}var p=i.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=re(s)?s:[s];for(var d=1;d<u.length;d++){var y=i.toGlobalCoord(u[d].coord),_=void 0,w=void 0,b=void 0,x=void 0;i.isHorizontal()?(_=p,w=l.y,b=y-_,x=l.height,p=_+b):(_=l.x,w=p,b=l.width,x=y-w,p=w+x);var S=u[d-1].tickValue;S!=null&&h.set(S,v),e.add(new st({anid:S!=null?"area_"+S:null,shape:{x:_,y:w,width:b,height:x},style:Ne({fill:s[v]},m),autoBatch:!0,silent:!0})),v=(v+1)%c}cS(r).splitAreaColors=h}}}function xP(r){cS(r).splitAreaColors=null}var cle=["axisLine","axisTickLabel","axisName"],fle=["splitArea","splitLine","minorSplitLine"],SP=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Re,this.group.add(this._axisGroup),!!t.get("show")){var s=t.getCoordSysModel(),l=nS(s,t),u=new dn(t,$({handleAutoShown:function(f){for(var h=s.coordinateSystem.getCartesians(),v=0;v<h.length;v++)if(_x(h[v].getOtherAxis(t.axis).scale))return!0;return!1}},l));N(cle,u.add,u),this._axisGroup.add(u.getGroup()),N(fle,function(f){t.get([f,"show"])&&hle[f](this,this._axisGroup,t,s)},this);var c=a&&a.type==="changeAxisOrder"&&a.isInitSort;c||Yh(o,this._axisGroup,t),r.prototype.render.call(this,t,n,i,a)}},e.prototype.remove=function(){xP(this)},e.type="cartesianAxis",e}(Jl),hle={splitLine:function(r,e,t,n){var i=t.axis;if(!i.scale.isBlank()){var a=t.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color"),l=a.get("showMinLine")!==!1,u=a.get("showMaxLine")!==!1;s=re(s)?s:[s];for(var c=n.coordinateSystem.getRect(),f=i.isHorizontal(),h=0,v=i.getTicksCoords({tickModel:a}),d=[],g=[],p=o.getLineStyle(),m=0;m<v.length;m++){var y=i.toGlobalCoord(v[m].coord);if(!(m===0&&!l||m===v.length-1&&!u)){var _=v[m].tickValue;f?(d[0]=y,d[1]=c.y,g[0]=y,g[1]=c.y+c.height):(d[0]=c.x,d[1]=y,g[0]=c.x+c.width,g[1]=y);var w=h++%s.length,b=new br({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:g[0],y2:g[1]},style:Ne({stroke:s[w]},p),silent:!0});Sc(b.shape,p.lineWidth),e.add(b)}}}},minorSplitLine:function(r,e,t,n){var i=t.axis,a=t.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],f=[],h=o.getLineStyle(),v=0;v<u.length;v++)for(var d=0;d<u[v].length;d++){var g=i.toGlobalCoord(u[v][d].coord);l?(c[0]=g,c[1]=s.y,f[0]=g,f[1]=s.y+s.height):(c[0]=s.x,c[1]=g,f[0]=s.x+s.width,f[1]=g);var p=new br({anid:"minor_line_"+u[v][d].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:h,silent:!0});Sc(p.shape,h.lineWidth),e.add(p)}},splitArea:function(r,e,t,n){bP(r,e,t,n)}},TP=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(SP),vle=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=TP.type,t}return e.type="yAxis",e}(SP),dle=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,n){this.group.removeAll(),t.get("show")&&this.group.add(new st({shape:t.coordinateSystem.getRect(),style:Ne({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Zt),AP={offset:0};function CP(r){r.registerComponentView(dle),r.registerComponentModel(Gse),r.registerCoordinateSystem("cartesian2d",Kse),Jc(r,"x",eS,AP),Jc(r,"y",eS,AP),r.registerComponentView(TP),r.registerComponentView(vle),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function ple(r){je(CP),r.registerSeriesModel(Vse),r.registerChartView(Hse),r.registerLayout(Iv("scatter"))}function gle(r){r.eachSeriesByType("radar",function(e){var t=e.getData(),n=[],i=e.coordinateSystem;if(i){var a=i.getIndicatorAxes();N(a,function(o,s){t.each(t.mapDimension(a[s].dim),function(l,u){n[u]=n[u]||[];var c=i.dataToPoint(l,s);n[u][s]=DP(c)?c:MP(i)})}),t.each(function(o){var s=qJ(n[o],function(l){return DP(l)})||MP(i);n[o].push(s.slice()),t.setItemLayout(o,n[o])})}})}function DP(r){return!isNaN(r[0])&&!isNaN(r[1])}function MP(r){return[r.cx,r.cy]}function mle(r){var e=r.polar;if(e){re(e)||(e=[e]);var t=[];N(e,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],re(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):t.push(n)}),r.polar=t}N(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var yle=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){var a=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(h,v){var d=h.getItemVisual(v,"symbol")||"circle";if(d!=="none"){var g=Fc(h.getItemVisual(v,"symbolSize")),p=vr(d,-1,-1,2,2),m=h.getItemVisual(v,"symbolRotate")||0;return p.attr({style:{strokeNoScale:!0},z2:100,scaleX:g[0]/2,scaleY:g[1]/2,rotation:m*Math.PI/180||0}),p}}function c(h,v,d,g,p,m){d.removeAll();for(var y=0;y<v.length-1;y++){var _=u(g,p);_&&(_.__dimIdx=y,h[y]?(_.setPosition(h[y]),Il[m?"initProps":"updateProps"](_,{x:v[y][0],y:v[y][1]},t,p)):_.setPosition(v[y]),d.add(_))}}function f(h){return ne(h,function(v){return[a.cx,a.cy]})}s.diff(l).add(function(h){var v=s.getItemLayout(h);if(v){var d=new un,g=new cn,p={shape:{points:v}};d.shape.points=f(v),g.shape.points=f(v),Ft(d,p,t,h),Ft(g,p,t,h);var m=new Re,y=new Re;m.add(g),m.add(d),m.add(y),c(g.shape.points,v,y,s,h,!0),s.setItemGraphicEl(h,m)}}).update(function(h,v){var d=l.getItemGraphicEl(v),g=d.childAt(0),p=d.childAt(1),m=d.childAt(2),y={shape:{points:s.getItemLayout(h)}};y.shape.points&&(c(g.shape.points,y.shape.points,m,s,h,!1),Ni(p),Ni(g),ht(g,y,t),ht(p,y,t),s.setItemGraphicEl(h,d))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,v){var d=s.getItemModel(v),g=h.childAt(0),p=h.childAt(1),m=h.childAt(2),y=s.getItemVisual(v,"style"),_=y.fill;o.add(h),g.useStyle(Ne(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),Rr(g,d,"lineStyle"),Rr(p,d,"areaStyle");var w=d.getModel("areaStyle"),b=w.isEmpty()&&w.parentModel.isEmpty();p.ignore=b,N(["emphasis","select","blur"],function(T){var C=d.getModel([T,"areaStyle"]),A=C.isEmpty()&&C.parentModel.isEmpty();p.ensureState(T).ignore=A&&b}),p.useStyle(Ne(w.getAreaStyle(),{fill:_,opacity:.7,decal:y.decal}));var x=d.getModel("emphasis"),S=x.getModel("itemStyle").getItemStyle();m.eachChild(function(T){if(T instanceof Er){var C=T.style;T.useStyle($({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},y))}else T.useStyle(y),T.setColor(_),T.style.strokeNoScale=!0;var A=T.ensureState("emphasis");A.style=Oe(S);var M=s.getStore().get(s.getDimensionIndex(T.__dimIdx),v);(M==null||isNaN(M))&&(M=""),Vr(T,xr(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:T.__dimIdx,defaultText:M,inheritColor:_,defaultOpacity:y.opacity})}),qt(h,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(Dt),_le=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new kv(ye(this.getData,this),ye(this.getRawData,this))},e.prototype.getInitialData=function(t,n){return Kc(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,n,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,c=H3(this,t);return Sr("section",{header:u,sortBlocks:!0,blocks:ne(s,function(f){var h=a.get(a.mapDimension(f.dim),t);return Sr("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:h,sortParam:h})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var n=this.getData(),i=this.coordinateSystem,a=n.getValues(ne(i.dimensions,function(u){return n.mapDimension(u)}),t),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(a[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Rt),Nv=uP.value;function Tm(r,e){return Ne({show:e},r)}var wle=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("scale"),a=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),h=this.get("triggerEvent"),v=ne(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var g=l;d.color!=null&&(g=Ne({color:d.color},l));var p=Ge(Oe(d),{boundaryGap:t,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:g,triggerEvent:h},!1);if(me(c)){var m=p.name;p.name=c.replace("{value}",m??"")}else Me(c)&&(p.name=c(p.name,p));var y=new bt(p,null,this.ecModel);return lr(y,wv.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=v},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ge({lineStyle:{color:"#bbb"}},Nv.axisLine),axisLabel:Tm(Nv.axisLabel,!1),axisTick:Tm(Nv.axisTick,!1),splitLine:Tm(Nv.splitLine,!0),splitArea:Tm(Nv.splitArea,!0),indicator:[]},e}($e),ble=["axisLine","axisTickLabel","axisName"],xle=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){var a=this.group;a.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var n=t.coordinateSystem,i=n.getIndicatorAxes(),a=ne(i,function(o){var s=o.model.get("showName")?o.name:"",l=new dn(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});N(a,function(o){N(ble,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var n=t.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),h=l.get("color"),v=u.get("color"),d=re(h)?h:[h],g=re(v)?v:[v],p=[],m=[];function y(E,O,V){var z=V%O.length;return E[z]=E[z]||[],z}if(a==="circle")for(var _=i[0].getTicksCoords(),w=n.cx,b=n.cy,x=0;x<_.length;x++){if(c){var S=y(p,d,x);p[S].push(new to({shape:{cx:w,cy:b,r:_[x].coord}}))}if(f&&x<_.length-1){var S=y(m,g,x);m[S].push(new Gh({shape:{cx:w,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,C=ne(i,function(E,O){var V=E.getTicksCoords();return T=T==null?V.length-1:Math.min(V.length-1,T),ne(V,function(z){return n.coordToPoint(z.coord,O)})}),A=[],x=0;x<=T;x++){for(var M=[],k=0;k<i.length;k++)M.push(C[k][x]);if(M[0]?M.push(M[0].slice()):process.env.NODE_ENV!=="production"&&console.error("Can't draw value axis "+x),c){var S=y(p,d,x);p[S].push(new cn({shape:{points:M}}))}if(f&&A){var S=y(m,g,x-1);m[S].push(new un({shape:{points:M.concat(A)}}))}A=M.slice().reverse()}var L=l.getLineStyle(),P=u.getAreaStyle();N(m,function(E,O){this.group.add(Qn(E,{style:Ne({stroke:"none",fill:g[O%g.length]},P),silent:!0}))},this),N(p,function(E,O){this.group.add(Qn(E,{style:Ne({fill:"none",stroke:d[O%d.length]},L),silent:!0}))},this)},e.type="radar",e}(Zt),Sle=function(r){Y(e,r);function e(t,n,i){var a=r.call(this,t,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return e}(Bi),Tle=function(){function r(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=ne(e.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new Sle(o,new oo);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],i=n.angle,a=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[a,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(t*t+n*n);t/=i,n/=i;for(var a=Math.atan2(-n,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(a-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(i))]},r.prototype.resize=function(e,t){var n=e.get("center"),i=t.getWidth(),a=t.getHeight(),o=Math.min(i,a)/2;this.cx=de(n[0],i),this.cy=de(n[1],a),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(me(s)||ct(s))&&(s=[0,s]),this.r0=de(s[0],o),this.r=de(s[1],o),N(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},r.prototype.update=function(e,t){var n=this._indicatorAxes,i=this._model;N(n,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();N(n,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var a=i.get("splitNumber"),o=new oo;o.setExtent(0,a),o.setInterval(1),N(n,function(s,l){dP(s.scale,s.model,o)})},r.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var n=[];return e.eachComponent("radar",function(i){var a=new r(i,e,t);n.push(a),i.coordinateSystem=a}),e.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=n[i.get("radarIndex")||0])}),n},r.dimensions=[],r}();function Ale(r){r.registerCoordinateSystem("radar",Tle),r.registerComponentModel(wle),r.registerComponentView(xle),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(n){t.setItemVisual(n,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function Cle(r){je(Ale),r.registerChartView(yle),r.registerSeriesModel(_le),r.registerLayout(gle),r.registerProcessor(Lv("radar")),r.registerPreprocessor(mle)}var IP="\0_ec_interaction_mutex";function Dle(r,e,t){var n=fS(r);n[e]=t}function Mle(r,e,t){var n=fS(r),i=n[e];i===t&&(n[e]=null)}function EP(r,e){return!!fS(r)[e]}function fS(r){return r[IP]||(r[IP]={})}ya({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},nr);var Ov=function(r){Y(e,r);function e(t){var n=r.call(this)||this;n._zr=t;var i=ye(n._mousedownHandler,n),a=ye(n._mousemoveHandler,n),o=ye(n._mouseupHandler,n),s=ye(n._mousewheelHandler,n),l=ye(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=Ne(Oe(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",i),t.on("mousemove",a),t.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},n.disable=function(){t.off("mousedown",i),t.off("mousemove",a),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",l)},n}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!W4(t)){for(var n=t.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=t.offsetX,a=t.offsetY;this.pointerChecker&&this.pointerChecker(t,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!Am("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||EP(this._zr,"globalPan"))){var n=t.offsetX,i=t.offsetY,a=this._x,o=this._y,s=n-a,l=i-o;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&Za(t.event),LP(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:a,oldY:o,newX:n,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){W4(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var n=Am("zoomOnMouseWheel",t,this._opt),i=Am("moveOnMouseWheel",t,this._opt),a=t.wheelDelta,o=Math.abs(a),s=t.offsetX,l=t.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;hS(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(a),h=(a>0?1:-1)*(f>3?.4:f>1?.15:.05);hS(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!EP(this._zr,"globalPan")){var n=t.pinchScale>1?1.1:1/1.1;hS(this,"zoom",null,t,{scale:n,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(Un);function hS(r,e,t,n,i){r.pointerChecker&&r.pointerChecker(n,i.originX,i.originY)&&(Za(n.event),LP(r,e,t,n,i))}function LP(r,e,t,n,i){i.isAvailableBehavior=ye(Am,null,t,n),r.trigger(e,i)}function Am(r,e,t){var n=t[r];return!r||n&&(!me(n)||e.event[n+"Key"])}function vS(r,e,t){var n=r.target;n.x+=e,n.y+=t,n.dirty()}function dS(r,e,t,n){var i=r.target,a=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,i.x-=(t-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var Ile={axisPointer:1,tooltip:1,brush:1};function Cm(r,e,t){var n=e.getComponentByElement(r.topTarget),i=n&&n.coordinateSystem;return n&&n!==t&&!Ile.hasOwnProperty(n.mainType)&&i&&i.model!==t}function kP(r){if(me(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var pS,Dm={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},PP=nt(Dm),Mm={"alignment-baseline":"textBaseline","stop-color":"stopColor"},NP=nt(Mm),Ele=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var n=kP(e);if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Illegal svg");this._defsUsePending=[];var i=new Re;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||t.width),l=parseFloat(n.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),On(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;Ple(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var h=Im(o);h.length>=4&&(c={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(c&&s!=null&&l!=null&&(f=GP(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var v=i;i=new Re,i.add(v),v.scaleX=v.scaleY=f.scale,v.x=f.x,v.y=f.y}return!t.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new st({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:a}},r.prototype._parseNode=function(e,t,n,i,a,o){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!a){var c=pS[s];if(c&&we(pS,s)){l=c.call(this,e,t);var f=e.getAttribute("name");if(f){var h={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(h),s==="g"&&(u=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});t.add(l)}}var v=OP[s];if(v&&we(OP,s)){var d=v.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=d)}}if(l&&l.isGroup)for(var p=e.firstChild;p;)p.nodeType===1?this._parseNode(p,l,n,u,a,o):p.nodeType===3&&o&&this._parseText(p,l),p=p.nextSibling},r.prototype._parseText=function(e,t){var n=new pc({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});oi(t,n),On(e,n,this._defsUsePending,!1,!1),Lle(n,t);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,t.add(n),n},r.internalField=function(){pS={g:function(e,t){var n=new Re;return oi(t,n),On(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new st;return oi(t,n),On(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new to;return oi(t,n),On(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new br;return oi(t,n),On(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new l0;return oi(t,n),On(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n=e.getAttribute("points"),i;n&&(i=zP(n));var a=new un({shape:{points:i||[]},silent:!0});return oi(t,a),On(e,a,this._defsUsePending,!1,!1),a},polyline:function(e,t){var n=e.getAttribute("points"),i;n&&(i=zP(n));var a=new cn({shape:{points:i||[]},silent:!0});return oi(t,a),On(e,a,this._defsUsePending,!1,!1),a},image:function(e,t){var n=new Er;return oi(t,n),On(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new Re;return oi(t,s),On(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Re;return oi(t,s),On(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(e,t){var n=e.getAttribute("d")||"",i=$E(n);return oi(t,i),On(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),r}(),OP={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),i=parseInt(r.getAttribute("y2")||"0",10),a=new Zh(e,t,n,i);return RP(r,a),VP(r,a),a},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),i=new a6(e,t,n);return RP(r,i),VP(r,i),i}};function RP(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function VP(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var n=t.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};HP(t,a,a);var o=a.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:o})}t=t.nextSibling}}function oi(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Ne(e.__inheritedStyle,r.__inheritedStyle))}function zP(r){for(var e=Im(r),t=[],n=0;n<e.length;n+=2){var i=parseFloat(e[n]),a=parseFloat(e[n+1]);t.push([i,a])}return t}function On(r,e,t,n,i){var a=e,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};r.nodeType===1&&(Rle(r,e),HP(r,o,s),n||Vle(r,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=BP(a,"fill",o.fill,t)),o.stroke!=null&&(a.style.stroke=BP(a,"stroke",o.stroke,t)),N(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(a.style[l]=parseFloat(o[l]))}),N(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(a.style[l]=o[l])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=ne(Im(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(a.invisible=!0),o.display==="none"&&(a.ignore=!0)}function Lle(r,e){var t=e.__selfStyle;if(t){var n=t.textBaseline,i=n;!n||n==="auto"||n==="baseline"?i="alphabetic":n==="before-edge"||n==="text-before-edge"?i="top":n==="after-edge"||n==="text-after-edge"?i="bottom":(n==="central"||n==="mathematical")&&(i="middle"),r.style.textBaseline=i}var a=e.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var kle=/^url\(\s*#(.*?)\)/;function BP(r,e,t,n){var i=t&&t.match(kle);if(i){var a=Mi(i[1]);n.push([r,e,a]);return}return t==="none"&&(t=null),t}function Ple(r,e){for(var t=0;t<e.length;t++){var n=e[t];n[0].style[n[1]]=r[n[2]]}}var Nle=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Im(r){return r.match(Nle)||[]}var Ole=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,gS=Math.PI/180;function Rle(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var n=[],i=null;t.replace(Ole,function(f,h,v){return n.push(h,v),""});for(var a=n.length-1;a>0;a-=2){var o=n[a],s=n[a-1],l=Im(o);switch(i=i||En(),s){case"translate":ia(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":V2(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":el(i,i,-parseFloat(l[0])*gS,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*gS);Ua(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*gS);Ua(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var FP=/([^\s:;]+)\s*:\s*([^:;]+)/g;function HP(r,e,t){var n=r.getAttribute("style");if(n){FP.lastIndex=0;for(var i;(i=FP.exec(n))!=null;){var a=i[1],o=we(Dm,a)?Dm[a]:null;o&&(e[o]=i[2]);var s=we(Mm,a)?Mm[a]:null;s&&(t[s]=i[2])}}}function Vle(r,e,t){for(var n=0;n<PP.length;n++){var i=PP[n],a=r.getAttribute(i);a!=null&&(e[Dm[i]]=a)}for(var n=0;n<NP.length;n++){var i=NP[n],a=r.getAttribute(i);a!=null&&(t[Mm[i]]=a)}}function GP(r,e){var t=e.width/r.width,n=e.height/r.height,i=Math.min(t,n);return{scale:i,x:-(r.x+r.width/2)*i+(e.x+e.width/2),y:-(r.y+r.height/2)*i+(e.y+e.height/2)}}function zle(r,e){var t=new Ele;return t.parse(r,e)}var Ble=Se(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Fle=function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=Se(),this._freedGraphics=[],this._mapName=e,this._parsedXML=kP(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=Gle(e.named),n=t.regions,i=t.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,n;try{t=e&&zle(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,ke(n!=null)}catch(p){throw new Error(`Invalid svg format
|
|
53
|
-
`+p.message)}var i=new Re;i.add(n),i.isGeoSVGGraphicRoot=!0;var a=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,h=void 0;if(a!=null?(u=0,f=a):s&&(u=s.x,f=s.width),o!=null?(c=0,h=o):s&&(c=s.y,h=s.height),u==null||c==null){var v=n.getBoundingRect();u==null&&(u=v.x,f=v.width),c==null&&(c=v.y,h=v.height)}l=this._boundingRect=new Ue(u,c,f,h)}if(s){var d=GP(s,l);n.scaleX=n.scaleY=d.scale,n.x=d.x,n.y=d.y}i.setClipPath(new st({shape:l.plain()}));var g=[];return N(t.named,function(p){Ble.get(p.svgNodeTagLower)!=null&&(g.push(p),Hle(p.el))}),{root:i,boundingRect:l,named:g}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},r}();function Hle(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function Gle(r){var e=[],t=Se();return N(r,function(n){if(n.namedFrom==null){var i=new Rae(n.name,n.el);e.push(i),t.set(n.name,i)}}),{regions:e,regionsMap:t}}for(var mS=[126,25],WP="南海诸岛",Ql=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],$l=0;$l<Ql.length;$l++)for(var Qc=0;Qc<Ql[$l].length;Qc++)Ql[$l][Qc][0]/=10.5,Ql[$l][Qc][1]/=-10.5/.75,Ql[$l][Qc][0]+=mS[0],Ql[$l][Qc][1]+=mS[1];function Wle(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===WP)return;e.push(new kk(WP,ne(Ql,function(n){return{type:"polygon",exterior:n}}),mS))}}var Zle={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function Ule(r,e){if(r==="china"){var t=Zle[e.name];if(t){var n=e.getCenter();n[0]+=t[0]/10.5,n[1]+=-t[1]/(10.5/.75),e.setCenter(n)}}}var Yle=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Xle(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:Yle[0]})}var qle="name",jle=function(){function r(e,t,n){this.type="geoJSON",this._parsedMap=Se(),this._mapName=e,this._specialAreas=n,this._geoJSON=Jle(t)}return r.prototype.load=function(e,t){t=t||qle;var n=this._parsedMap.get(t);if(!n){var i=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:i,boundingRect:Kle(i)})}var a=Se(),o=[];return N(n.regions,function(s){var l=s.name;e&&we(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),a.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new Ue(0,0,0,0),regionsMap:a}},r.prototype._parseToRegions=function(e){var t=this._mapName,n=this._geoJSON,i;try{i=n?zae(n,e):[]}catch(a){throw new Error(`Invalid geoJson format
|
|
54
|
-
`+a.message)}return Wle(t,i),N(i,function(a){var o=a.name;Ule(t,a),Xle(t,a);var s=this._specialAreas&&this._specialAreas[o];s&&a.transformTo(s.left,s.top,s.width,s.height)},this),i},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function Kle(r){for(var e,t=0;t<r.length;t++){var n=r[t].getBoundingRect();e=e||n.clone(),e.union(n)}return e}function Jle(r){return me(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Rv=Se();const so={registerMap:function(r,e,t){if(e.svg){var n=new Fle(r,e.svg);Rv.set(r,n)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?t=e.specialAreas:i=e;var n=new jle(r,i,t);Rv.set(r,n)}},getGeoResource:function(r){return Rv.get(r)},getMapForUser:function(r){var e=Rv.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var n=Rv.get(r);if(!n){process.env.NODE_ENV!=="production"&&console.error("Map "+r+" not exists. The GeoJSON of the map must be provided.");return}return n.load(e,t)}};var yS=["rect","circle","line","ellipse","polygon","polyline","path"],Qle=Se(yS),$le=Se(yS.concat(["g"])),eue=Se(yS.concat(["g"])),ZP=ot();function Em(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function UP(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var YP=function(){function r(e){var t=new Re;this.uid=Ac("ec_map_draw"),this._controller=new Ov(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new Re),t.add(this._svgGroup=new Re)}return r.prototype.draw=function(e,t,n,i,a){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(m){!s&&m.getHostGeoModel()===e&&(s=m.getData())});var l=e.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),h=f.raw,v=f.roam,d=!u.childAt(0)||a;d?(c.x=v.x,c.y=v.y,c.scaleX=v.scaleX,c.scaleY=v.scaleY,c.dirty()):ht(c,v,e);var g=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,p={api:n,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(p):l.resourceType==="geoSVG"&&this._buildSVG(p),this._updateController(e,t,n),this._updateMapSelectHandler(e,u,n,i)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=Se(),n=Se(),i=this._regionsGroup,a=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(v,d){return d&&(v=d(v)),v&&[v[0]*a.scaleX+a.x,v[1]*a.scaleY+a.y]}function f(v){for(var d=[],g=!u&&l&&l.project,p=0;p<v.length;++p){var m=c(v[p],g);m&&d.push(m)}return d}function h(v){return{shape:{points:f(v)}}}i.removeAll(),N(e.geo.regions,function(v){var d=v.name,g=t.get(d),p=n.get(d)||{},m=p.dataIdx,y=p.regionModel;if(!g){g=t.set(d,new Re),i.add(g),m=s?s.indexOfName(d):null,y=e.isGeo?o.getRegionModel(d):s?s.getItemModel(m):null;var _=y.get("silent",!0);_!=null&&(g.silent=_),n.set(d,{dataIdx:m,regionModel:y})}var w=[],b=[];N(v.geometries,function(T){if(T.type==="polygon"){var C=[T.exterior].concat(T.interiors||[]);u&&(C=QP(C,u)),N(C,function(M){w.push(new un(h(M)))})}else{var A=T.points;u&&(A=QP(A,u,!0)),N(A,function(M){b.push(new cn(h(M)))})}});var x=c(v.getCenter(),l&&l.project);function S(T,C){if(T.length){var A=new ab({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});g.add(A),XP(e,A,m,y),qP(e,A,d,y,o,m,x),C&&(UP(A),N(A.states,UP))}}S(w),S(b,!0)}),t.each(function(v,d){var g=n.get(d),p=g.dataIdx,m=g.regionModel;jP(e,v,d,m,o,p),KP(e,v,d,m,o),JP(e,v,d,m,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=Se(),a=!1;N(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,c=o.svgNodeTagLower,f=o.el,h=u?u.indexOfName(s):null,v=l.getRegionModel(s);Qle.get(c)!=null&&f instanceof Kn&&XP(e,f,h,v),f instanceof Kn&&(f.culling=!0);var d=v.get("silent",!0);if(d!=null&&(f.silent=d),f.z2EmphasisLift=0,!o.namedFrom&&(eue.get(c)!=null&&qP(e,f,s,v,l,h,null),jP(e,f,s,v,l,h),KP(e,f,s,v,l),$le.get(c)!=null)){var g=JP(e,f,s,v,l);g==="self"&&(a=!0);var p=i.get(s)||i.set(s,[]);p.push(f)}},this),this._enableBlurEntireSVG(a,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse(function(a){if(!a.isGroup){bl(a);var o=a.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),a.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var n=t.coordinateSystem;if(n.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var a=i.get(e);return a?[a]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=so.getGeoResource(e);if(t&&t.type==="geoSVG"){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=so.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(e,t,n){var i=e.coordinateSystem,a=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=i.getZoom(),a.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}a.off("pan").on("pan",function(u){this._mouseDownFlag=!1,vS(o,u.dx,u.dy),n.dispatchAction($(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),a.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,dS(o,u.scale,u.originX,u.originY),n.dispatchAction($(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),a.setPointerChecker(function(u,c,f){return i.containPoint([c,f])&&!Cm(u,n,e)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=ZP(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,n,i){var a=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){a._mouseDownFlag=!0}),t.on("click",function(o){a._mouseDownFlag&&(a._mouseDownFlag=!1)}))},r}();function XP(r,e,t,n){var i=n.getModel("itemStyle"),a=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=Em(i),u=Em(a),c=Em(s),f=Em(o),h=r.data;if(h){var v=h.getItemVisual(t,"style"),d=h.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),d&&(l.decal=Gc(d,r.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=f,bl(e)}function qP(r,e,t,n,i,a,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),c=s&&s.getItemLayout(a);if(l||u||c&&c.showLabel){var f=l?t:a,h=void 0;(!s||a>=0)&&(h=i);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Vr(e,xr(n),{labelFetcher:h,labelDataIndex:f,defaultText:t},v);var d=e.getTextContent();if(d&&(ZP(d).ignore=d.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function jP(r,e,t,n,i,a){r.data?r.data.setItemGraphicEl(a,e):ze(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:t,region:n&&n.option||{}}}function KP(r,e,t,n,i){r.data||Ml({el:e,componentModel:i,itemName:t,itemTooltipOption:n.get("tooltip")})}function JP(r,e,t,n,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return qt(e,o,a.get("blurScope"),a.get("disabled")),r.isGeo&&qee(e,i,t),o}function QP(r,e,t){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=e({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),N(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),n}var tue=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i,a){if(!(a&&a.type==="mapToggleSelect"&&a.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&a&&a.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),a&&a.type==="geoRoam"&&a.componentType==="series"&&a.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new YP(i);o.add(s.group),s.draw(t,n,i,this,a),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(t,n,i)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,n,i){var a=t.originalData,o=this.group;a.each(a.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=a.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,f=u.offset,h=new to({style:{fill:t.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:mc+1)});if(!f){var v=t.mainSeries.getData(),d=a.getName(l),g=v.indexOfName(d),p=a.getItemModel(l),m=p.getModel("label"),y=v.getItemGraphicEl(g);Vr(h,xr(p),{labelFetcher:{getFormattedLabel:function(_,w){return t.getFormattedLabel(g,w)}},defaultText:d}),h.disableLabelAnimation=!0,m.get("position")||h.setTextConfig({position:"bottom"}),y.onHoverStateChange=function(_){a0(h,_)}}o.add(h)}}})},e.type="map",e}(Dt),rue=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(n){if(n!=null){var i=this.getData().getName(n),a=this.coordinateSystem,o=a.getRegion(i);return o&&a.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var n=Kc(this,{coordDimensions:["value"],encodeDefaulter:He(Ab,this)}),i=Se(),a=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);i.set(l,o)}var u=so.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return N(u.regions,function(c){var f=c.name,h=i.get(f),v=c.properties&&c.properties.echartsStyle,d;h==null?(d={name:f},a.push(d)):d=n.getRawDataItem(h),v&&Ge(d,v)}),n.appendData(a),n},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var n=this.getData();return n.get(n.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var n=this.getData();return n.getItemModel(n.indexOfName(t))},e.prototype.formatTooltip=function(t,n,i){for(var a=this.getData(),o=this.getRawValue(t),s=a.getName(t),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),h=a.mapDimension("value");isNaN(l[c].originalData.get(h,f))||u.push(l[c].name)}return Sr("section",{header:u.join(", "),noHeader:!u.length,blocks:[Sr("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var n=t.icon||"roundRect",i=vr(n,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return i.setStyle(t.itemStyle),i.style.stroke="none",n.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Rt);function nue(r,e){var t={};return N(r,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);t[o]=t[o]||[],isNaN(i)||t[o].push(i)})}),r[0].map(r[0].mapDimension("value"),function(n,i){for(var a="ec-"+r[0].getName(i),o=0,s=1/0,l=-1/0,u=t[a].length,c=0;c<u;c++)s=Math.min(s,t[a][c]),l=Math.max(l,t[a][c]),o+=t[a][c];var f;return e==="min"?f=s:e==="max"?f=l:e==="average"?f=o/u:f=o,u===0?NaN:f})}function iue(r){var e={};r.eachSeriesByType("map",function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)}),N(e,function(t,n){for(var i=nue(ne(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),a=0;a<t.length;a++)t[a].originalData=t[a].getData();for(var a=0;a<t.length;a++)t[a].seriesGroup=t,t[a].needsDrawMap=a===0&&!t[a].getHostGeoModel(),t[a].setData(i.cloneShallow()),t[a].mainSeries=t[0]})}function aue(r){var e={};r.eachSeriesByType("map",function(t){var n=t.getMapType();if(!(t.getHostGeoModel()||e[n])){var i={};N(t.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),h=s.getRegion(f);if(!(!h||isNaN(u))){var v=i[f]||0,d=s.dataToPoint(h.getCenter());i[f]=v+1,l.setItemLayout(c,{point:d,offset:v})}})});var a=t.getData();a.each(function(o){var s=a.getName(o),l=a.getItemLayout(o)||{};l.showLabel=!i[s],a.setItemLayout(o,l)}),e[n]=!0}})}var $P=Nr,Vv=function(r){Y(e,r);function e(t){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new qa,n._rawTransformable=new qa,n.name=t,n}return e.prototype.setBoundingRect=function(t,n,i,a){return this._rect=new Ue(t,n,i,a),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,n,i,a){this._transformTo(t,n,i,a),this._viewRect=new Ue(t,n,i,a)},e.prototype._transformTo=function(t,n,i,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Ue(t,n,i,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,n){t&&(this._center=[de(t[0],n.getWidth()),de(t[1],n.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var n=this.zoomLimit;n&&(n.max!=null&&(t=Math.min(n.max,t)),n.min!=null&&(t=Math.max(n.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),n=t.x+t.width/2,i=t.y+t.height/2;return[n,i]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,i=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=Nr([],a,t),i=Nr([],i,t),n.originX=a[0],n.originY=a[1],n.x=i[0]-a[0],n.y=i[1]-a[1],n.scaleX=n.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,n=this._rawTransformable;n.parent=t,t.updateTransform(),n.updateTransform(),R2(this.transform||(this.transform=[]),n.transform||En()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],oc(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,n=this._roamTransformable,i=new qa;return i.transform=n.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,n,i){var a=n?this._rawTransform:this.transform;return i=i||[],a?$P(i,t,a):rn(i,t)},e.prototype.pointToData=function(t){var n=this.invTransform;return n?$P([],t,n):[t[0],t[1]]},e.prototype.convertToPixel=function(t,n,i){var a=eN(n);return a===this?a.dataToPoint(i):null},e.prototype.convertFromPixel=function(t,n,i){var a=eN(n);return a===this?a.pointToData(i):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(qa);function eN(r){var e=r.seriesModel;return e?e.coordinateSystem:null}var oue={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},tN=["lng","lat"],_S=function(r){Y(e,r);function e(t,n,i){var a=r.call(this,t)||this;a.dimensions=tN,a.type="geo",a._nameCoordMap=Se(),a.map=n;var o=i.projection,s=so.load(n,i.nameMap,i.nameProperty),l=so.getGeoResource(n),u=a.resourceType=l?l.type:null,c=a.regions=s.regions,f=oue[l.type];a._regionsMap=s.regionsMap,a.regions=s.regions,process.env.NODE_ENV!=="production"&&o&&(u==="geoSVG"&&(process.env.NODE_ENV!=="production"&&Xt("Map "+n+" with SVG source can't use projection. Only GeoJSON source supports projection."),o=null),o.project&&o.unproject||(process.env.NODE_ENV!=="production"&&Xt("project and unproject must be both provided in the projeciton."),o=null)),a.projection=o;var h;if(o)for(var v=0;v<c.length;v++){var d=c[v].getBoundingRect(o);h=h||d.clone(),h.union(d)}else h=s.boundingRect;return a.setBoundingRect(h.x,h.y,h.width,h.height),a.aspectScale=o?1:Ve(i.aspectScale,f.aspectScale),a._invertLongitute=o?!1:f.invertLongitute,a}return e.prototype._transformTo=function(t,n,i,a){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new Ue(t,n,i,a));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var n=this.regions,i=0;i<n.length;i++){var a=n[i];if(a.type==="geoJSON"&&a.contain(t))return n[i]}},e.prototype.addGeoCoord=function(t,n){this._nameCoordMap.set(t,n)},e.prototype.getGeoCoord=function(t){var n=this._regionsMap.get(t);return this._nameCoordMap.get(t)||n&&n.getCenter()},e.prototype.dataToPoint=function(t,n,i){if(me(t)&&(t=this.getGeoCoord(t)),t){var a=this.projection;return a&&(t=a.project(t)),t&&this.projectedToPoint(t,n,i)}},e.prototype.pointToData=function(t){var n=this.projection;return n&&(t=n.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return r.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,n,i){return r.prototype.dataToPoint.call(this,t,n,i)},e.prototype.convertToPixel=function(t,n,i){var a=rN(n);return a===this?a.dataToPoint(i):null},e.prototype.convertFromPixel=function(t,n,i){var a=rN(n);return a===this?a.pointToData(i):null},e}(Vv);lr(_S,Vv);function rN(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",fr).models[0]||{}).coordinateSystem:null}function nN(r,e){var t=r.get("boundingCoords");if(t!=null){var n=t[0],i=t[1];if(!(isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])))process.env.NODE_ENV!=="production"&&console.error("Invalid boundingCoords");else{var a=this.projection;if(a){var o=n[0],s=n[1],l=i[0],u=i[1];n=[1/0,1/0],i=[-1/0,-1/0];var c=function(x,S,T,C){for(var A=T-x,M=C-S,k=0;k<=100;k++){var L=k/100,P=a.project([x+A*L,S+M*L]);Zo(n,n,P),Uo(i,i,P)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(n[0],n[1],i[0]-n[0],i[1]-n[1])}}var f=this.getBoundingRect(),h=r.get("layoutCenter"),v=r.get("layoutSize"),d=e.getWidth(),g=e.getHeight(),p=f.width/f.height*this.aspectScale,m=!1,y,_;h&&v&&(y=[de(h[0],d),de(h[1],g)],_=de(v,Math.min(d,g)),!isNaN(y[0])&&!isNaN(y[1])&&!isNaN(_)?m=!0:process.env.NODE_ENV!=="production"&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."));var w;if(m)w={},p>1?(w.width=_,w.height=_/p):(w.height=_,w.width=_*p),w.y=y[1]-w.height/2,w.x=y[0]-w.width/2;else{var b=r.getBoxLayoutParams();b.aspect=p,w=mr(b,{width:d,height:g})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function sue(r,e){N(e.get("geoCoord"),function(t,n){r.addGeoCoord(n,t)})}var lue=function(){function r(){this.dimensions=tN}return r.prototype.create=function(e,t){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new _S(l+s,l,$({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=nN,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),N(a,function(o,s){var l=ne(o,function(c){return c.get("nameMap")}),u=new _S(s,s,$({nameMap:x2(l)},i(o[0])));u.zoomLimit=ur.apply(null,ne(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=nN,u.resize(o[0],t),N(o,function(c){c.coordinateSystem=u,sue(u,c)})}),n},r.prototype.getFilledRegions=function(e,t,n,i){for(var a=(e||[]).slice(),o=Se(),s=0;s<a.length;s++)o.set(a[s].name,a[s]);var l=so.load(t,n,i);return N(l.regions,function(u){var c=u.name,f=o.get(c),h=u.properties&&u.properties.echartsStyle;f||(f={name:c},a.push(f)),h&&Ge(f,h)}),a},r}(),iN=new lue,uue=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n,i){var a=so.getGeoResource(t.map);if(a&&a.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,i),ll(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,n=this.option;n.regions=iN.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var i={};this._optionModelMap=na(n.regions||[],function(a,o){var s=o.name;return s&&(a.set(s,new bt(o,t,t.ecModel)),o.selected&&(i[s]=!0)),a},Se()),n.selectedMap||(n.selectedMap=i)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new bt(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,n){var i=this.getRegionModel(t),a=n==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),o={name:t};if(Me(a))return o.status=n,a(o);if(me(a))return a.replace("{a}",t??"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var n=this.option,i=n.selectedMode;if(i){i!=="multiple"&&(n.selectedMap=null);var a=n.selectedMap||(n.selectedMap={});a[t]=!0}},e.prototype.unSelect=function(t){var n=this.option.selectedMap;n&&(n[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var n=this.option.selectedMap;return!!(n&&n[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}($e);function aN(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function wS(r,e,t,n){var i=r.getZoom(),a=r.getCenter(),o=e.zoom,s=r.projectedToPoint?r.projectedToPoint(a):r.dataToPoint(a);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,r.setCenter(aN(r,s),n)),o!=null){if(t){var l=t.min||0,u=t.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}r.scaleX*=o,r.scaleY*=o;var c=(e.originX-r.x)*(o-1),f=(e.originY-r.y)*(o-1);r.x-=c,r.y-=f,r.updateTransform(),r.setCenter(aN(r,s),n),r.setZoom(o*i)}return{center:r.getCenter(),zoom:r.getZoom()}}var cue=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,n){this._api=n},e.prototype.render=function(t,n,i,a){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new YP(i));var o=this._mapDraw;o.draw(t,n,i,this,a),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,n,i)},e.prototype._handleRegionClick=function(t){var n;Rl(t.target,function(i){return(n=ze(i).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},e.prototype.updateSelectStatus=function(t,n,i){var a=this;this._mapDraw.group.traverse(function(o){var s=ze(o).eventData;if(s)return a._model.isSelected(s.name)?i.enterSelect(o):i.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Zt);function fue(r,e,t){so.registerMap(r,e,t)}function oN(r){r.registerCoordinateSystem("geo",iN),r.registerComponentModel(uue),r.registerComponentView(cue),r.registerImpl("registerMap",fue),r.registerImpl("getMap",function(t){return so.getMapForUser(t)});function e(t,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(i,a){var o={},s=[];return a.eachComponent({mainType:"geo",query:i},function(l){l[t](i.name);var u=l.coordinateSystem;N(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];N(o,function(f,h){o[h]&&c.push(h)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:i.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,n,i){var a=t.componentType||"series";n.eachComponent({mainType:a,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=wS(s,t,o.get("scaleLimit"),i);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),a==="series"&&N(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function hue(r){je(oN),r.registerChartView(tue),r.registerSeriesModel(rue),r.registerLayout(aue),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,iue),fL("map",r.registerAction)}function vue(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],n,i;n=t.pop();)if(i=n.children,n.isExpand&&i.length)for(var a=i.length,o=a-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function due(r,e){var t=r.isExpand?r.children:[],n=r.parentNode.children,i=r.hierNode.i?n[r.hierNode.i-1]:null;if(t.length){mue(r);var a=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;i?(r.hierNode.prelim=i.hierNode.prelim+e(r,i),r.hierNode.modifier=r.hierNode.prelim-a):r.hierNode.prelim=a}else i&&(r.hierNode.prelim=i.hierNode.prelim+e(r,i));r.parentNode.hierNode.defaultAncestor=yue(r,i,r.parentNode.hierNode.defaultAncestor||n[0],e)}function pue(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function sN(r){return arguments.length?r:bue}function zv(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function gue(r,e){return mr(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function mue(r){for(var e=r.children,t=e.length,n=0,i=0;--t>=0;){var a=e[t];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function yue(r,e,t,n){if(e){for(var i=r,a=r,o=a.parentNode.children[0],s=e,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=bS(s),a=xS(a),s&&a;){i=bS(i),o=xS(o),i.hierNode.ancestor=r;var h=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);h>0&&(wue(_ue(s,r,t),r,h),u+=h,l+=h),f+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!bS(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!xS(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,t=r)}return t}function bS(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function xS(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function _ue(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function wue(r,e,t){var n=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=n}function bue(r,e){return r.parentNode===e.parentNode?1:2}var xue=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),Sue=function(r){Y(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new xue},e.prototype.buildPath=function(t,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,h=de(n.forkPosition,1),v=[];v[c]=o[c],v[f]=o[f]+(l[f]-o[f])*h,t.moveTo(o[0],o[1]),t.lineTo(v[0],v[1]),t.moveTo(s[0],s[1]),v[c]=s[c],t.lineTo(v[0],v[1]),v[c]=l[c],t.lineTo(v[0],v[1]),t.lineTo(l[0],l[1]);for(var d=1;d<a-1;d++){var g=i[d];t.moveTo(g[0],g[1]),v[c]=g[c],t.lineTo(v[0],v[1])}},e}(Qe),Tue=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new Re,t}return e.prototype.init=function(t,n){this._controller=new Ov(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,n,i){var a=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,i),this._updateController(t,n,i);var u=this._data;a.diff(u).add(function(c){lN(a,c)&&uN(a,c,null,s,t)}).update(function(c,f){var h=u.getItemGraphicEl(f);if(!lN(a,c)){h&&hN(u,f,h,s,t);return}uN(a,c,h,s,t)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&hN(u,c,f,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&a.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:f})})}),this._data=a},e.prototype._updateViewCoordSys=function(t,n){var i=t.getData(),a=[];i.each(function(f){var h=i.getItemLayout(f);h&&!isNaN(h.x)&&!isNaN(h.y)&&a.push([+h.x,+h.y])});var o=[],s=[];$g(a,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=t.coordinateSystem=new Vv;c.zoomLimit=t.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(t.get("center"),n),c.setZoom(t.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(t,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,f){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,f)&&!Cm(u,i,t)}),o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){vS(s,u.dx,u.dy),i.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){dS(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(t),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var n=t.getData(),i=this._getNodeGlobalScale(t);n.eachItemGraphicEl(function(a,o){a.setSymbolScale(i)})},e.prototype._getNodeGlobalScale=function(t){var n=t.coordinateSystem;if(n.type!=="view")return 1;var i=this._nodeScaleRatio,a=n.scaleX||1,o=n.getZoom(),s=(o-1)*i+1;return s/a},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(Dt);function lN(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function uN(r,e,t,n,i){var a=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=r.tree.root,f=o.parentNode===c?o:o.parentNode||o,h=r.getItemGraphicEl(f.dataIndex),v=f.getLayout(),d=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:v,g=o.getLayout();a?(t=new Cv(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=d.x,t.y=d.y):t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=g.rawX,t.__radialRawY=g.rawY,n.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,ht(t,{x:g.x,y:g.y},i);var p=t.getSymbolPath();if(i.get("layout")==="radial"){var m=c.children[0],y=m.getLayout(),_=m.children.length,w=void 0,b=void 0;if(g.x===y.x&&o.isExpand===!0&&m.children.length){var x={x:(m.children[0].getLayout().x+m.children[_-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[_-1].getLayout().y)/2};w=Math.atan2(x.y-y.y,x.x-y.x),w<0&&(w=Math.PI*2+w),b=x.x<y.x,b&&(w=w-Math.PI)}else w=Math.atan2(g.y-y.y,g.x-y.x),w<0&&(w=Math.PI*2+w),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(b=g.x<y.x,b&&(w=w-Math.PI)):(b=g.x>y.x,b||(w=w-Math.PI));var S=b?"left":"right",T=s.getModel("label"),C=T.get("rotate"),A=C*(Math.PI/180),M=p.getTextContent();M&&(p.setTextConfig({position:T.get("position")||S,rotation:C==null?-w:A,origin:"center"}),M.setStyle("verticalAlign","middle"))}var k=s.get(["emphasis","focus"]),L=k==="relative"?fh(o.getAncestorsIndices(),o.getDescendantIndices()):k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():null;L&&(ze(t).focus=L),Aue(i,o,c,t,d,v,g,n),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var E=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);E&&E.hoverState===Oh||a0(t.__edge,P)}})}function Aue(r,e,t,n,i,a,o,s){var l=e.getModel(),u=r.get("edgeShape"),c=r.get("layout"),f=r.getOrient(),h=r.get(["lineStyle","curveness"]),v=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),g=n.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(g||(g=n.__edge=new Wh({shape:SS(c,f,h,i,i)})),ht(g,{shape:SS(c,f,h,a,o)},r));else if(u==="polyline"){if(c==="orthogonal"){if(e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var p=e.children,m=[],y=0;y<p.length;y++){var _=p[y].getLayout();m.push([_.x,_.y])}g||(g=n.__edge=new Sue({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:v}})),ht(g,{shape:{parentPoint:[o.x,o.y],childPoints:m}},r)}}else if(process.env.NODE_ENV!=="production")throw new Error("The polyline edgeShape can only be used in orthogonal layout")}g&&!(u==="polyline"&&!e.isExpand)&&(g.useStyle(Ne({strokeNoScale:!0,fill:null},d)),Rr(g,l,"lineStyle"),bl(g),s.add(g))}function cN(r,e,t,n,i){var a=e.tree.root,o=fN(a,r),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(r.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),f=c.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),v=n.get("edgeShape"),d=n.get("layout"),g=n.get("orient"),p=n.get(["lineStyle","curveness"]);h&&(v==="curve"?rs(h,{shape:SS(d,g,p,l,l),style:{opacity:0}},n,{cb:function(){t.remove(h)},removeOpt:i}):v==="polyline"&&n.get("layout")==="orthogonal"&&rs(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){t.remove(h)},removeOpt:i}))}}function fN(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,n;n=t.getLayout(),n==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:n}}function hN(r,e,t,n,i){var a=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=fN(o,a).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};rs(t,{x:s.x+1,y:s.y+1},i,{cb:function(){n.remove(t),r.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),a.children.forEach(function(u){cN(u,r,n,i,l)}),cN(a,r,n,i,l)}function SS(r,e,t,n,i){var a,o,s,l,u,c,f,h;if(r==="radial"){u=n.rawX,f=n.rawY,c=i.rawX,h=i.rawY;var v=zv(u,f),d=zv(u,f+(h-f)*t),g=zv(c,h+(f-h)*t),p=zv(c,h);return{x1:v.x||0,y1:v.y||0,x2:p.x||0,y2:p.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:g.x||0,cpy2:g.y||0}}else u=n.x,f=n.y,c=i.x,h=i.y,(e==="LR"||e==="RL")&&(a=u+(c-u)*t,o=f,s=c+(u-c)*t,l=h),(e==="TB"||e==="BT")&&(a=u,o=f+(h-f)*t,s=c,l=h+(f-h)*t);return{x1:u,y1:f,x2:c,y2:h,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}var si=ot();function vN(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,dN(e,t,r),N(t,function(n){N(e.TRANSFERABLE_METHODS,function(i){n.wrapMethod(i,He(Cue,r))})}),e.wrapMethod("cloneShallow",He(Mue,r)),N(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,He(Due,r))}),ke(t[e.dataType]===e)}function Cue(r,e){if(Lue(this)){var t=$({},si(this).datas);t[this.dataType]=e,dN(e,t,r)}else TS(e,this.dataType,si(this).mainData,r);return e}function Due(r,e){return r.struct&&r.struct.update(),e}function Mue(r,e){return N(si(e).datas,function(t,n){t!==e&&TS(t.cloneShallow(),n,e,r)}),e}function Iue(r){var e=si(this).mainData;return r==null||e==null?e:si(e).datas[r]}function Eue(){var r=si(this).mainData;return r==null?[{data:r}]:ne(nt(si(r).datas),function(e){return{type:e,data:si(r).datas[e]}})}function Lue(r){return si(r).mainData===r}function dN(r,e,t){si(r).datas={},N(e,function(n,i){TS(n,i,r,t)})}function TS(r,e,t,n){si(t).datas[e]=r,si(r).mainData=t,r.dataType=e,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=r),r.getLinkedData=Iue,r.getLinkedDataAll=Eue}var kue=function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,n){Me(e)&&(n=t,t=e,e=null),e=e||{},me(e)&&(e={order:e});var i=e.order||"preorder",a=this[e.attr||"children"],o;i==="preorder"&&(o=t.call(n,this));for(var s=0;!o&&s<a.length;s++)a[s].eachNode(e,t,n);i==="postorder"&&t.call(n,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t<i;t++){var a=n[t].getNodeById(e);if(a)return a}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,i=n.length;t<i;t++){var a=n[t].contains(e);if(a)return a}},r.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r}(),AS=function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,i=t.length;n<i;n++)t[n].dataIndex=-1;for(var n=0,i=e.count();n<i;n++)t[e.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,n){var i=new r(t),a=[],o=1;s(e);function s(c,f){var h=c.value;o=Math.max(o,re(h)?h.length:1),a.push(c);var v=new kue(gr(c.name,""),i);f?Pue(v,f):i.root=v,i._nodes.push(v);var d=c.children;if(d)for(var g=0;g<d.length;g++)s(d[g],v)}i.root.updateDepthAndHeight(0);var l=yv(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new fn(l,t);return u.initData(a),n&&n(u),vN({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},r}();function Pue(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}function Bv(r,e,t){if(r&&qe(e,r.type)>=0){var n=t.getData().tree.root,i=r.targetNode;if(me(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=r.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function pN(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function CS(r,e){var t=pN(r);return qe(t,e)>=0}function Lm(r,e){for(var t=[];r;){var n=r.dataIndex;t.push({name:r.name,dataIndex:n,value:e.getRawValue(n)}),r=r.parentNode}return t.reverse(),t}var Nue=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var n={name:t.name,children:t.data},i=t.leaves||{},a=new bt(i,this,this.ecModel),o=AS.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(h,v){var d=o.getNodeByDataIndex(v);return d&&d.children.length&&d.isExpand||(h.parentModel=a),h})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var h=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=h&&h.collapsed!=null?!h.collapsed:f.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Sr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=Lm(i,this),n.collapsed=!i.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Rt);function Oue(r,e,t){for(var n=[r],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;a=i.pop();)e(a,t)}function Fv(r,e){for(var t=[r],n;n=t.pop();)if(e(n),n.isExpand){var i=n.children;if(i.length)for(var a=i.length-1;a>=0;a--)t.push(i[a])}}function Rue(r,e){r.eachSeriesByType("tree",function(t){Vue(t,e)})}function Vue(r,e){var t=gue(r,e);r.layoutInfo=t;var n=r.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(t.height,t.width)/2,o=sN(function(_,w){return(_.parentNode===w.parentNode?1:2)/_.depth})):(i=t.width,a=t.height,o=sN());var s=r.getData().tree.root,l=s.children[0];if(l){vue(s),Oue(l,due,o),s.hierNode.modifier=-l.hierNode.prelim,Fv(l,pue);var u=l,c=l,f=l;Fv(l,function(_){var w=_.getLayout().x;w<u.getLayout().x&&(u=_),w>c.getLayout().x&&(c=_),_.depth>f.depth&&(f=_)});var h=u===c?1:o(u,c)/2,v=h-u.getLayout().x,d=0,g=0,p=0,m=0;if(n==="radial")d=i/(c.getLayout().x+h+v),g=a/(f.depth-1||1),Fv(l,function(_){p=(_.getLayout().x+v)*d,m=(_.depth-1)*g;var w=zv(p,m);_.setLayout({x:w.x,y:w.y,rawX:p,rawY:m},!0)});else{var y=r.getOrient();y==="RL"||y==="LR"?(g=a/(c.getLayout().x+h+v),d=i/(f.depth-1||1),Fv(l,function(_){m=(_.getLayout().x+v)*g,p=y==="LR"?(_.depth-1)*d:i-(_.depth-1)*d,_.setLayout({x:p,y:m},!0)})):(y==="TB"||y==="BT")&&(d=i/(c.getLayout().x+h+v),g=a/(f.depth-1||1),Fv(l,function(_){p=(_.getLayout().x+v)*d,m=y==="TB"?(_.depth-1)*g:a-(_.depth-1)*g,_.setLayout({x:p,y:m},!0)}))}}}function zue(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),n=t.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(i.dataIndex,"style");$(s,o)})})}function Bue(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var i=e.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},function(i){var a=i.coordinateSystem,o=wS(a,e,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function Fue(r){r.registerChartView(Tue),r.registerSeriesModel(Nue),r.registerLayout(Rue),r.registerVisual(zue),Bue(r)}var gN=["treemapZoomToNode","treemapRender","treemapMove"];function Hue(r){for(var e=0;e<gN.length;e++)r.registerAction({type:gN[e],update:"updateView"},nr);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"treemap",query:t},i);function i(a,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Bv(t,s,a);if(l){var u=a.getViewRoot();u&&(t.direction=CS(u,l.node)?"rollUp":"drillDown"),a.resetViewRoot(l.node)}}})}function mN(r){var e=r.getData(),t=e.tree,n={};t.eachNode(function(i){for(var a=i;a&&a.depth>1;)a=a.parentNode;var o=Ib(r.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var Gue=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,n){var i={name:t.name,children:t.data};yN(i);var a=t.levels||[],o=this.designatedVisualItemStyle={},s=new bt({itemStyle:o},this,n);a=t.levels=Wue(a,n);var l=ne(a||[],function(f){return new bt(f,s,n)},this),u=AS.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(h,v){var d=u.getNodeByDataIndex(v),g=d?l[d.depth]:null;return h.parentModel=g||s,h})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,n,i){var a=this.getData(),o=this.getRawValue(t),s=a.getName(t);return Sr("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=Lm(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},$(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var n=this._idIndexMap;n||(n=this._idIndexMap=Se(),this._idIndexMapCount=0);var i=n.get(t);return i==null&&n.set(t,i=this._idIndexMapCount++),i},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){mN(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Rt);function yN(r){var e=0;N(r.children,function(n){yN(n);var i=n.value;re(i)&&(i=i[0]),e+=i});var t=r.value;re(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),re(r.value)?r.value[0]=t:r.value=t}function Wue(r,e){var t=St(e.get("color")),n=St(e.get(["aria","decal","decals"]));if(t){r=r||[];var i,a;N(r,function(s){var l=new bt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(a=!0)});var o=r[0]||(r[0]={});return i||(o.color=t.slice()),!a&&n&&(o.decal=n.slice()),r}}var Zue=8,_N=8,DS=5,Uue=function(){function r(e){this.group=new Re,e.add(this.group)}return r.prototype.render=function(e,t,n,i){var a=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,u),this._renderContent(e,f,s,l,u,c,i),L0(o,f.pos,f.box)}},r.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var a=gr(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+Zue*2,t.emptyItemWidth);t.totalWidth+=s+_N,t.renderList.push({node:i,text:a,width:s})}},r.prototype._renderContent=function(e,t,n,i,a,o,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),f=Kte(t.pos,t.box),h=t.totalWidth,v=t.renderList,d=i.getModel("itemStyle").getItemStyle(),g=v.length-1;g>=0;g--){var p=v[g],m=p.node,y=p.width,_=p.text;h>f.width&&(h-=y-u,y=u,_=null);var w=new un({shape:{points:Yue(l,0,y,c,g===v.length-1,g===0)},style:Ne(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new ut({style:Ot(a,{text:_})}),textConfig:{position:"inside"},z2:mc*1e4,onclick:He(s,m)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=Ot(o,{text:_}),w.ensureState("emphasis").style=d,qt(w,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(w),Xue(w,e,m),l+=y+_N}},r.prototype.remove=function(){this.group.removeAll()},r}();function Yue(r,e,t,n,i,a){var o=[[i?r:r-DS,e],[r+t,e],[r+t,e+n],[i?r:r-DS,e+n]];return!a&&o.splice(2,0,[r+t+DS,e+n/2]),!i&&o.push([r,e+n/2]),o}function Xue(r,e,t){ze(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Lm(t,e)}}var que=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,n,i,a){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:a}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,a=this._storage.length;i<a;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},r}();function jue(){return new que}var MS=Re,wN=st,bN=3,xN="label",SN="upperLabel",Kue=mc*10,Jue=mc*2,Que=mc*3,eu=fl([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),TN=function(r){var e=eu(r);return e.stroke=e.fill=e.lineWidth=null,e},km=ot(),$ue=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=Hv(),t}return e.prototype.render=function(t,n,i,a){var o=n.findComponents({mainType:"series",subType:"treemap",query:a});if(!(qe(o,t)<0)){this.seriesModel=t,this.api=i,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=Bv(a,s,t),u=a&&a.type,c=t.layoutInfo,f=!this._oldTree,h=this._storage,v=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:a.direction}:null,d=this._giveContainerGroup(c),g=t.get("animation"),p=this._doRender(d,t,v);g&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,p,t,v):p.renderFinally(),this._resetController(i),this._renderBreadcrumb(t,i,l)}},e.prototype._giveContainerGroup=function(t){var n=this._containerGroup;return n||(n=this._containerGroup=new MS,this._initEvents(n),this.group.add(n)),n.x=t.x,n.y=t.y,n},e.prototype._doRender=function(t,n,i){var a=n.getData().tree,o=this._oldTree,s=Hv(),l=Hv(),u=this._storage,c=[];function f(y,_,w,b){return ece(n,l,u,i,s,c,y,_,w,b)}g(a.root?[a.root]:[],o&&o.root?[o.root]:[],t,a===o||!o,0);var h=p(u);if(this._oldTree=a,this._storage=l,this._controllerHost){var v=this.seriesModel.layoutInfo,d=a.root.getLayout();d.width===v.width&&d.height===v.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:h,renderFinally:m};function g(y,_,w,b,x){b?(_=y,N(y,function(C,A){!C.isRemoved()&&T(A,A)})):new io(_,y,S,S).add(T).update(T).remove(He(T,null)).execute();function S(C){return C.getId()}function T(C,A){var M=C!=null?y[C]:null,k=A!=null?_[A]:null,L=f(M,k,w,x);L&&g(M&&M.viewChildren||[],k&&k.viewChildren||[],L,b,x+1)}}function p(y){var _=Hv();return y&&N(y,function(w,b){var x=_[b];N(w,function(S){S&&(x.push(S),km(S).willDelete=!0)})}),_}function m(){N(h,function(y){N(y,function(_){_.parent&&_.parent.remove(_)})}),N(c,function(y){y.invisible=!0,y.dirty()})}},e.prototype._doAnimation=function(t,n,i,a){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(Me(o)?0:o)||0,u=(Me(s)?null:s)||"cubicOut",c=jue();N(n.willDeleteEls,function(f,h){N(f,function(v,d){if(!v.invisible){var g=v.parent,p,m=km(g);if(a&&a.direction==="drillDown")p=g===a.rootNodeGroup?{shape:{x:0,y:0,width:m.nodeWidth,height:m.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var y=0,_=0;m.willDelete||(y=m.nodeWidth/2,_=m.nodeHeight/2),p=h==="nodeGroup"?{x:y,y:_,style:{opacity:0}}:{shape:{x:y,y:_,width:0,height:0},style:{opacity:0}}}p&&c.add(v,p,l,0,u)}})}),N(this._storage,function(f,h){N(f,function(v,d){var g=n.lastsForAnimation[h][d],p={};g&&(v instanceof Re?g.oldX!=null&&(p.x=v.x,p.y=v.y,v.x=g.oldX,v.y=g.oldY):(g.oldShape&&(p.shape=$({},v.shape),v.setShape(g.oldShape)),g.fadein?(v.setStyle("opacity",0),p.style={opacity:1}):v.style.opacity!==1&&(p.style={opacity:1})),c.add(v,p,l,0,u))})},this),this._state="animating",c.finished(ye(function(){this._state="ready",n.renderFinally()},this)).start()},e.prototype._resetController=function(t){var n=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost),n||(n=this._controller=new Ov(t.getZr()),n.enable(this.seriesModel.get("roam")),i.zoomLimit=this.seriesModel.get("scaleLimit"),i.zoom=this.seriesModel.get("zoom"),n.on("pan",ye(this._onPan,this)),n.on("zoom",ye(this._onZoom,this)));var a=new Ue(0,0,t.getWidth(),t.getHeight());n.setPointerChecker(function(o,s,l){return a.contain(s,l)})},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>bN||Math.abs(t.dy)>bN)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+t.dx,y:i.y+t.dy,width:i.width,height:i.height}})}},e.prototype._onZoom=function(t){var n=t.originX,i=t.originY,a=t.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new Ue(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var f=c.zoom=c.zoom||1;if(f*=a,u){var h=u.min||0,v=u.max||1/0;f=Math.max(Math.min(v,f),h)}var d=f/c.zoom;c.zoom=f;var g=this.seriesModel.layoutInfo;n-=g.x,i-=g.y;var p=En();ia(p,p,[-n,-i]),V2(p,p,[d,d]),ia(p,p,[n,i]),l.applyTransform(p),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(t){var n=this;t.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&I0(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,n,i){var a=this;i||(i=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Uue(this.group))).render(t,n,i.node,function(o){a._state!=="animating"&&(CS(t.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Hv(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},e.type="treemap",e}(Dt);function Hv(){return{nodeGroup:[],background:[],content:[]}}function ece(r,e,t,n,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),f=r.getData(),h=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var v=c.width,d=c.height,g=c.borderWidth,p=c.invisible,m=o.getRawIndex(),y=s&&s.getRawIndex(),_=o.viewChildren,w=c.upperHeight,b=_&&_.length,x=h.getModel("itemStyle"),S=h.getModel(["emphasis","itemStyle"]),T=h.getModel(["blur","itemStyle"]),C=h.getModel(["select","itemStyle"]),A=x.get("borderRadius")||0,M=U("nodeGroup",MS);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),km(M).nodeWidth=v,km(M).nodeHeight=d,c.isAboveViewRoot)return M;var k=U("background",wN,u,Jue);k&&B(M,k,b&&c.upperLabelHeight);var L=h.getModel("emphasis"),P=L.get("focus"),E=L.get("blurScope"),O=L.get("disabled"),V=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(b)ts(M)&&Sl(M,!1),k&&(Sl(k,!O),f.setItemGraphicEl(o.dataIndex,k),$w(k,V,E));else{var z=U("content",wN,u,Que);z&&F(M,z),k.disableMorphing=!0,k&&ts(k)&&Sl(k,!1),Sl(M,!O),f.setItemGraphicEl(o.dataIndex,M);var H=h.getShallow("cursor");H&&z.attr("cursor",H),$w(M,V,E)}return M;function B(Te,xe,Be){var be=ze(xe);if(be.dataIndex=o.dataIndex,be.seriesIndex=r.seriesIndex,xe.setShape({x:0,y:0,width:v,height:d,r:A}),p)ee(xe);else{xe.invisible=!1;var fe=o.getVisual("style"),et=fe.stroke,vt=TN(x);vt.fill=et;var xt=eu(S);xt.fill=S.get("borderColor");var kt=eu(T);kt.fill=T.get("borderColor");var jt=eu(C);if(jt.fill=C.get("borderColor"),Be){var Cr=v-2*g;ae(xe,et,fe.opacity,{x:g,y:0,width:Cr,height:w})}else xe.removeTextContent();xe.setStyle(vt),xe.ensureState("emphasis").style=xt,xe.ensureState("blur").style=kt,xe.ensureState("select").style=jt,bl(xe)}Te.add(xe)}function F(Te,xe){var Be=ze(xe);Be.dataIndex=o.dataIndex,Be.seriesIndex=r.seriesIndex;var be=Math.max(v-2*g,0),fe=Math.max(d-2*g,0);if(xe.culling=!0,xe.setShape({x:g,y:g,width:be,height:fe,r:A}),p)ee(xe);else{xe.invisible=!1;var et=o.getVisual("style"),vt=et.fill,xt=TN(x);xt.fill=vt,xt.decal=et.decal;var kt=eu(S),jt=eu(T),Cr=eu(C);ae(xe,vt,et.opacity,null),xe.setStyle(xt),xe.ensureState("emphasis").style=kt,xe.ensureState("blur").style=jt,xe.ensureState("select").style=Cr,bl(xe)}Te.add(xe)}function ee(Te){!Te.invisible&&a.push(Te)}function ae(Te,xe,Be,be){var fe=h.getModel(be?SN:xN),et=gr(h.get("name"),null),vt=fe.getShallow("show");Vr(Te,xr(h,be?SN:xN),{defaultText:vt?et:null,inheritColor:xe,defaultOpacity:Be,labelFetcher:r,labelDataIndex:o.dataIndex});var xt=Te.getTextContent();if(xt){var kt=xt.style,jt=T2(kt.padding||0);be&&(Te.setTextConfig({layoutRect:be}),xt.disableLabelLayout=!0),xt.beforeUpdate=function(){var dr=Math.max((be?be.width:Te.shape.width)-jt[1]-jt[3],0),Gi=Math.max((be?be.height:Te.shape.height)-jt[0]-jt[2],0);(kt.width!==dr||kt.height!==Gi)&&xt.setStyle({width:dr,height:Gi})},kt.truncateMinChar=2,kt.lineOverflow="truncate",le(kt,be,c);var Cr=xt.getState("emphasis");le(Cr?Cr.style:null,be,c)}}function le(Te,xe,Be){var be=Te?Te.text:null;if(!xe&&Be.isLeafRoot&&be!=null){var fe=r.get("drillDownIcon",!0);Te.text=fe?fe+" "+be:be}}function U(Te,xe,Be,be){var fe=y!=null&&t[Te][y],et=i[Te];return fe?(t[Te][y]=null,j(et,fe)):p||(fe=new xe,fe instanceof Kn&&(fe.z2=tce(Be,be)),Xe(et,fe)),e[Te][m]=fe}function j(Te,xe){var Be=Te[m]={};xe instanceof MS?(Be.oldX=xe.x,Be.oldY=xe.y):Be.oldShape=$({},xe.shape)}function Xe(Te,xe){var Be=Te[m]={},be=o.parentNode,fe=xe instanceof Re;if(be&&(!n||n.direction==="drillDown")){var et=0,vt=0,xt=i.background[be.getRawIndex()];!n&&xt&&xt.oldShape&&(et=xt.oldShape.width,vt=xt.oldShape.height),fe?(Be.oldX=0,Be.oldY=vt):Be.oldShape={x:et,y:vt,width:0,height:0}}Be.fadein=!fe}}function tce(r,e){return r*Kue+e}var Gv=N,rce=Le,Pm=-1,Ar=function(){function r(e){var t=e.mappingMethod,n=e.type,i=this.option=Oe(e);this.type=n,this.mappingMethod=t,this._normalizeData=ace[t];var a=r.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[t],t==="piecewise"?(IS(i),nce(i)):t==="category"?i.categories?ice(i):IS(i,!0):(ke(t!=="linear"||i.dataExtent),IS(i))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return ye(this._normalizeData,this)},r.listVisualTypes=function(){return nt(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,n){Le(e)?N(e,t,n):t.call(n,e)},r.mapVisual=function(e,t,n){var i,a=re(e)?[]:Le(e)?{}:(i=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(n,o,s);i?a=l:a[s]=l}),a},r.retrieveVisuals=function(e){var t={},n;return e&&Gv(r.visualHandlers,function(i,a){e.hasOwnProperty(a)&&(t[a]=e[a],n=!0)}),n?t:null},r.prepareVisualTypes=function(e){if(re(e))e=e.slice();else if(rce(e)){var t=[];Gv(e,function(n,i){t.push(i)}),e=t}else return[];return e.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,n){for(var i,a=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||me(l)&&l===e+"")return o;n&&h(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(Om(f[1],e,c[1]))return o}else if(c[1]===1/0){if(Om(f[0],c[0],e))return o}else if(Om(f[0],c[0],e)&&Om(f[1],e,c[1]))return o;n&&h(c[0],o),n&&h(c[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:i;function h(v,d){var g=Math.abs(v-e);g<a&&(a=g,i=d)}},r.visualHandlers={color:{applyVisual:Wv("color"),getColorMapper:function(){var e=this.option;return ye(e.mappingMethod==="category"?function(t,n){return!n&&(t=this._normalizeData(t)),Zv.call(this,t)}:function(t,n,i){var a=!!i;return!n&&(t=this._normalizeData(t)),i=j2(t,e.parsedVisual,i),a?i:Ya(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Ya(j2(e,this.option.parsedVisual),"rgba")},category:Zv,piecewise:function(e,t){var n=LS.call(this,t);return n==null&&(n=Ya(j2(e,this.option.parsedVisual),"rgba")),n},fixed:tu}},colorHue:Nm(function(e,t){return bh(e,t)}),colorSaturation:Nm(function(e,t){return bh(e,null,t)}),colorLightness:Nm(function(e,t){return bh(e,null,null,t)}),colorAlpha:Nm(function(e,t){return Eg(e,t)}),decal:{applyVisual:Wv("decal"),_normalizedToVisual:{linear:null,category:Zv,piecewise:null,fixed:null}},opacity:{applyVisual:Wv("opacity"),_normalizedToVisual:ES([0,1])},liftZ:{applyVisual:Wv("liftZ"),_normalizedToVisual:{linear:tu,category:tu,piecewise:tu,fixed:tu}},symbol:{applyVisual:function(e,t,n){var i=this.mapValueToVisual(e);n("symbol",i)},_normalizedToVisual:{linear:AN,category:Zv,piecewise:function(e,t){var n=LS.call(this,t);return n==null&&(n=AN.call(this,e)),n},fixed:tu}},symbolSize:{applyVisual:Wv("symbolSize"),_normalizedToVisual:ES([0,1])}},r}();function nce(r){var e=r.pieceList;r.hasSpecialVisual=!1,N(e,function(t,n){t.originIndex=n,t.visual!=null&&(r.hasSpecialVisual=!0)})}function ice(r){var e=r.categories,t=r.categoryMap={},n=r.visual;if(Gv(e,function(o,s){t[o]=s}),!re(n)){var i=[];Le(n)?Gv(n,function(o,s){var l=t[s];i[l??Pm]=o}):i[Pm]=n,n=CN(r,i)}for(var a=e.length-1;a>=0;a--)n[a]==null&&(delete t[e[a]],e.pop())}function IS(r,e){var t=r.visual,n=[];Le(t)?Gv(t,function(a){n.push(a)}):t!=null&&n.push(t);var i={color:1,symbol:1};!e&&n.length===1&&!i.hasOwnProperty(r.type)&&(n[1]=n[0]),CN(r,n)}function Nm(r){return{applyVisual:function(e,t,n){var i=this.mapValueToVisual(e);n("color",r(t("color"),i))},_normalizedToVisual:ES([0,1])}}function AN(r){var e=this.option.visual;return e[Math.round(wt(r,[0,1],[0,e.length-1],!0))]||{}}function Wv(r){return function(e,t,n){n(r,this.mapValueToVisual(e))}}function Zv(r){var e=this.option.visual;return e[this.option.loop&&r!==Pm?r%e.length:r]}function tu(){return this.option.visual[0]}function ES(r){return{linear:function(e){return wt(e,r,this.option.visual,!0)},category:Zv,piecewise:function(e,t){var n=LS.call(this,t);return n==null&&(n=wt(e,r,this.option.visual,!0)),n},fixed:tu}}function LS(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var n=Ar.findPieceIndex(r,t),i=t[n];if(i&&i.visual)return i.visual[this.type]}}function CN(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=ne(e,function(t){var n=Ln(t);return!n&&process.env.NODE_ENV!=="production"&&Xt("'"+t+"' is an illegal color, fallback to '#000000'",!0),n||[0,0,0,1]})),e}var ace={linear:function(r){return wt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=Ar.findPieceIndex(r,e,!0);if(t!=null)return wt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??Pm},fixed:nr};function Om(r,e,t){return r?e<=t:e<t}var oce="itemStyle",DN=ot();const sce={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||MN(t,{},r.getViewRoot().getAncestors(),r)}};function MN(r,e,t,n){var i=r.getModel(),a=r.getLayout(),o=r.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(oce),l=lce(s,e,n),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),h;f!=null&&(h=IN(l),c=uce(f,h)),u.stroke=c;var v=r.viewChildren;if(!v||!v.length)h=IN(l),u.fill=h;else{var d=cce(r,i,a,s,l,v);N(v,function(g,p){if(g.depth>=t.length||g===t[g.depth]){var m=fce(i,l,g,p,d,n);MN(g,m,t,n)}})}}}function lce(r,e,t){var n=$({},e),i=t.designatedVisualItemStyle;return N(["color","colorAlpha","colorSaturation"],function(a){i[a]=e[a];var o=r.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function IN(r){var e=kS(r,"color");if(e){var t=kS(r,"colorAlpha"),n=kS(r,"colorSaturation");return n&&(e=bh(e,null,null,n)),t&&(e=Eg(e,t)),e}}function uce(r,e){return e!=null?bh(e,null,null,r):null}function kS(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function cce(r,e,t,n,i,a){if(!(!a||!a.length)){var o=PS(e,"color")||i.color!=null&&i.color!=="none"&&(PS(e,"colorAlpha")||PS(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var h=new Ar(f);return DN(h).drColorMappingBy=c,h}}}function PS(r,e){var t=r.get(e);return re(t)&&t.length?{name:e,range:t}:null}function fce(r,e,t,n,i,a){var o=$({},e);if(i){var s=i.type,l=s==="color"&&DN(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Uv=Math.max,Rm=Math.min,EN=ur,NS=N,LN=["itemStyle","borderWidth"],hce=["itemStyle","gapWidth"],vce=["upperLabel","show"],dce=["upperLabel","height"];const pce={seriesType:"treemap",reset:function(r,e,t,n){var i=t.getWidth(),a=t.getHeight(),o=r.option,s=mr(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=de(EN(s.width,l[0]),i),c=de(EN(s.height,l[1]),a),f=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],v=Bv(n,h,r),d=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,g=r.getViewRoot(),p=pN(g);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?bce(r,v,g,u,c):d?[d.width,d.height]:[u,c],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var _={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var w={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};g.setLayout(w),kN(g,_,!1,0),w=g.getLayout(),NS(p,function(x,S){var T=(p[S+1]||g).getValue();x.setLayout($({dataExtent:[T,T],borderWidth:0,upperHeight:0},w))})}var b=r.getData().tree.root;b.setLayout(xce(s,d,v),!0),r.setLayoutInfo(s),NN(b,new Ue(-s.x,-s.y,i,a),p,g,0)}};function kN(r,e,t,n){var i,a;if(!r.isRemoved()){var o=r.getLayout();i=o.width,a=o.height;var s=r.getModel(),l=s.get(LN),u=s.get(hce)/2,c=ON(s),f=Math.max(l,c),h=l-u,v=f-u;r.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=Uv(i-2*h,0),a=Uv(a-h-v,0);var d=i*a,g=gce(r,s,d,e,t,n);if(g.length){var p={x:h,y:v,width:i,height:a},m=Rm(i,a),y=1/0,_=[];_.area=0;for(var w=0,b=g.length;w<b;){var x=g[w];_.push(x),_.area+=x.getLayout().area;var S=wce(_,m,e.squareRatio);S<=y?(w++,y=S):(_.area-=_.pop().getLayout().area,PN(_,m,p,u,!1),m=Rm(p.width,p.height),_.length=_.area=0,y=1/0)}if(_.length&&PN(_,m,p,u,!0),!t){var T=s.get("childrenVisibleMin");T!=null&&d<T&&(t=!0)}for(var w=0,b=g.length;w<b;w++)kN(g[w],e,t,n+1)}}}function gce(r,e,t,n,i,a){var o=r.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=a;if(i&&!l)return r.viewChildren=[];o=pt(o,function(v){return!v.isRemoved()}),yce(o,s);var u=_ce(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=mce(e,t,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var c=0,f=o.length;c<f;c++){var h=o[c].getValue()/u.sum*t;o[c].setLayout({area:h})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function mce(r,e,t,n,i){if(!n)return t;for(var a=r.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/t*e<a&&(s=l,t-=u)}return n==="asc"?i.splice(0,o-s):i.splice(s,o-s),t}function yce(r,e){return e&&r.sort(function(t,n){var i=e==="asc"?t.getValue()-n.getValue():n.getValue()-t.getValue();return i===0?e==="asc"?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:i}),r}function _ce(r,e,t){for(var n=0,i=0,a=e.length;i<a;i++)n+=e[i].getValue();var o=r.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],NS(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function wce(r,e,t){for(var n=0,i=1/0,a=0,o=void 0,s=r.length;a<s;a++)o=r[a].getLayout().area,o&&(o<i&&(i=o),o>n&&(n=o));var l=r.area*r.area,u=e*e*t;return l?Uv(u*n/l,l/(u*i)):1/0}function PN(r,e,t,n,i){var a=e===t.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=t[s[a]],c=e?r.area/e:0;(i||c>t[l[o]])&&(c=t[l[o]]);for(var f=0,h=r.length;f<h;f++){var v=r[f],d={},g=c?v.getLayout().area/c:0,p=d[l[o]]=Uv(c-2*n,0),m=t[s[a]]+t[l[a]]-u,y=f===h-1||m<g?m:g,_=d[l[a]]=Uv(y-2*n,0);d[s[o]]=t[s[o]]+Rm(n,p/2),d[s[a]]=u+Rm(n,_/2),u+=y,v.setLayout(d,!0)}t[s[o]]+=c,t[l[o]]-=c}function bce(r,e,t,n,i){var a=(e||{}).node,o=[n,i];if(!a||a===t)return o;for(var s,l=n*i,u=l*r.option.zoomToNodeRatio;s=a.parentNode;){for(var c=0,f=s.children,h=0,v=f.length;h<v;h++)c+=f[h].getValue();var d=a.getValue();if(d===0)return o;u*=c/d;var g=s.getModel(),p=g.get(LN),m=Math.max(p,ON(g));u+=4*p*p+(3*p+m)*Math.pow(u,.5),u>VI&&(u=VI),a=s}u<l&&(u=l);var y=Math.pow(u/l,.5);return[n*y,i*y]}function xce(r,e,t){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!t)return n;var i=t.node,a=i.getLayout();if(!a)return n;for(var o=[a.width/2,a.height/2],s=i;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function NN(r,e,t,n,i){var a=r.getLayout(),o=t[i],s=o&&o===r;if(!(o&&!s||i===t.length&&r!==n)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(a),isAboveViewRoot:s},!0);var l=new Ue(e.x-a.x,e.y-a.y,e.width,e.height);NS(r.viewChildren||[],function(u){NN(u,l,t,n,i+1)})}}function ON(r){return r.get(vce)?r.get(dce):0}function Sce(r){r.registerSeriesModel(Gue),r.registerChartView($ue),r.registerVisual(sce),r.registerLayout(pce),Hue(r)}function Tce(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),i=t.getGraph(),a=i.data,o=n.mapArray(n.getName);a.filterSelf(function(s){var l=a.getItemModel(s),u=l.getShallow("category");if(u!=null){ct(u)&&(u=o[u]);for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}function Ace(r){var e={};r.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),i=t.getData(),a={};n.each(function(o){var s=n.getName(o);a["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),n.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var h=l.getShallow(c[f],!0);h!=null&&n.setItemVisual(o,c[f],h)}}),n.count()&&i.each(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){me(l)&&(l=a["ec-"+l]);var u=n.getItemVisual(l,"style"),c=i.ensureUniqueItemVisual(o,"style");$(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],h=0;h<f.length;h++)i.setItemVisual(o,f[h],n.getItemVisual(l,f[h]))}})})}function Vm(r){return r instanceof Array||(r=[r,r]),r}function Cce(r){r.eachSeriesByType("graph",function(e){var t=e.getGraph(),n=e.getEdgeData(),i=Vm(e.get("edgeSymbol")),a=Vm(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=t.getEdgeByIndex(o),u=Vm(s.getShallow("symbol",!0)),c=Vm(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),h=n.ensureUniqueItemVisual(o,"style");switch($(h,f),h.stroke){case"source":{var v=l.node1.getVisual("style");h.stroke=v&&v.fill;break}case"target":{var v=l.node2.getVisual("style");h.stroke=v&&v.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var OS="-->",zm=function(r){return r.get("autoCurveness")||null},RN=function(r,e){var t=zm(r),n=20,i=[];if(ct(t))n=t;else if(re(t)){r.__curvenessList=t;return}e>n&&(n=e);var a=n%2?n+2:n+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=i},Yv=function(r,e,t){var n=[r.id,r.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[t.uid,n,i].join(OS)},VN=function(r){var e=r.split(OS);return[e[0],e[2],e[1]].join(OS)},Dce=function(r,e){var t=Yv(r.node1,r.node2,e);return e.__edgeMap[t]},Mce=function(r,e){var t=RS(Yv(r.node1,r.node2,e),e),n=RS(Yv(r.node2,r.node1,e),e);return t+n},RS=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function Ice(r){zm(r)&&(r.__curvenessList=[],r.__edgeMap={},RN(r))}function Ece(r,e,t,n){if(zm(t)){var i=Yv(r,e,t),a=t.__edgeMap,o=a[VN(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(n)}}function VS(r,e,t,n){var i=zm(e),a=re(i);if(!i)return null;var o=Dce(r,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=Mce(r,e);RN(e,u),r.lineStyle=r.lineStyle||{};var c=Yv(r.node1,r.node2,e),f=e.__curvenessList,h=a||u%2?0:1;if(o.isForward)return f[h+s];var v=VN(c),d=RS(v,e),g=f[s+d+h];return n?a?i&&i[0]===0?(d+h)%2?g:-g:((d%2?0:1)+h)%2?g:-g:(d+h)%2?g:-g:f[s+d+h]}function zN(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(n){var i=n.getModel();n.setLayout([+i.get("x"),+i.get("y")])}),zS(t,r)}}function zS(r,e){r.eachEdge(function(t,n){var i=Zn(t.getModel().get(["lineStyle","curveness"]),-VS(t,e,n,!0),0),a=Wa(t.node1.getLayout()),o=Wa(t.node2.getLayout()),s=[a,o];+i&&s.push([(a[0]+o[0])/2-(a[1]-o[1])*i,(a[1]+o[1])/2-(o[0]-a[0])*i]),t.setLayout(s)})}function Lce(r,e){r.eachSeriesByType("graph",function(t){var n=t.get("layout"),i=t.coordinateSystem;if(i&&i.type!=="view"){var a=t.getData(),o=[];N(i.dimensions,function(h){o=o.concat(a.mapDimensionsAll(h))});for(var s=0;s<a.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var f=a.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?a.setItemLayout(s,i.dataToPoint(l)):a.setItemLayout(s,[NaN,NaN])}zS(a.graph,t)}else(!n||n==="none")&&zN(t)})}function Xv(r){var e=r.coordinateSystem;if(e.type!=="view")return 1;var t=r.option.nodeScaleRatio,n=e.scaleX,i=e.getZoom(),a=(i-1)*t+1;return a/n}function qv(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var BN=Math.PI,BS=[];function FS(r,e,t,n){var i=r.coordinateSystem;if(!(i&&i.type!=="view")){var a=i.getBoundingRect(),o=r.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,c=Math.min(a.width,a.height)/2,f=o.count();if(o.setLayout({cx:l,cy:u}),!!f){if(t){var h=i.pointToData(n),v=h[0],d=h[1],g=[v-l,d-u];ic(g,g),yg(g,g,c),t.setLayout([l+g[0],u+g[1]],!0);var p=r.get(["circular","rotateLabel"]);FN(t,p,l,u)}kce[e](r,s,o,c,l,u,f),s.eachEdge(function(m,y){var _=Zn(m.getModel().get(["lineStyle","curveness"]),VS(m,r,y),0),w=Wa(m.node1.getLayout()),b=Wa(m.node2.getLayout()),x,S=(w[0]+b[0])/2,T=(w[1]+b[1])/2;+_&&(_*=3,x=[l*_+S*(1-_),u*_+T*(1-_)]),m.setLayout([w,b,x])})}}}var kce={value:function(r,e,t,n,i,a,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(c){var f=c.getValue("value"),h=u*(l?f:1)/2;s+=h,c.setLayout([n*Math.cos(s)+i,n*Math.sin(s)+a]),s+=h})},symbolSize:function(r,e,t,n,i,a,o){var s=0;BS.length=o;var l=Xv(r);e.eachNode(function(f){var h=qv(f);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var v=Math.asin(h/2/n);isNaN(v)&&(v=BN/2),BS[f.dataIndex]=v,s+=v*2});var u=(2*BN-s)/o/2,c=0;e.eachNode(function(f){var h=u+BS[f.dataIndex];c+=h,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([n*Math.cos(c)+i,n*Math.sin(c)+a]),c+=h})}};function FN(r,e,t,n){var i=r.getGraphicEl();if(i){var a=r.getModel(),o=a.get(["label","rotate"])||0,s=i.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-n,l[0]-t);u<0&&(u=Math.PI*2+u);var c=l[0]<t;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var h=s.ensureState("emphasis");$(h.textConfig||(h.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function Pce(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&FS(e,"symbolSize")})}var $c=A2;function Nce(r,e,t){for(var n=r,i=e,a=t.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=t.gravity==null?.1:t.gravity,c=0;c<n.length;c++){var f=n[c];f.p||(f.p=Js(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=Wa(f.p),f.edges=null}var h=t.friction==null?.6:t.friction,v=h,d,g;return{warmUp:function(){v=h*.8},setFixed:function(p){n[p].fixed=!0},setUnfixed:function(p){n[p].fixed=!1},beforeStep:function(p){d=p},afterStep:function(p){g=p},step:function(p){d&&d(n,i);for(var m=[],y=n.length,_=0;_<i.length;_++){var w=i[_];if(!w.ignoreForceLayout){var b=w.n1,x=w.n2;Qs(m,x.p,b.p);var S=C2(m)-w.d,T=x.w/(b.w+x.w);isNaN(T)&&(T=0),ic(m,m),!b.fixed&&$c(b.p,b.p,m,T*S*v),!x.fixed&&$c(x.p,x.p,m,-(1-T)*S*v)}}for(var _=0;_<y;_++){var C=n[_];C.fixed||(Qs(m,l,C.p),$c(C.p,C.p,m,u*v))}for(var _=0;_<y;_++)for(var b=n[_],A=_+1;A<y;A++){var x=n[A];Qs(m,x.p,b.p);var S=C2(m);S===0&&(eQ(m,Math.random()-.5,Math.random()-.5),S=1);var M=(b.rep+x.rep)/S/S;!b.fixed&&$c(b.pp,b.pp,m,M),!x.fixed&&$c(x.pp,x.pp,m,-M)}for(var k=[],_=0;_<y;_++){var C=n[_];C.fixed||(Qs(k,C.p,C.pp),$c(C.p,C.p,k,v),rn(C.pp,C.p))}v=v*.992;var L=v<.01;g&&g(n,i,L),p&&p(L)}}}function Oce(r){r.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var n=e.preservedPoints||{},i=e.getGraph(),a=i.data,o=i.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?a.each(function(_){var w=a.getId(_);a.setItemLayout(_,n[w]||[NaN,NaN])}):!l||l==="none"?zN(e):l==="circular"&&FS(e,"value");var u=a.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),h=s.get("edgeLength"),v=re(f)?f:[f,f],d=re(h)?h:[h,h];d=[d[1],d[0]];var g=a.mapArray("value",function(_,w){var b=a.getItemLayout(w),x=wt(_,u,v);return isNaN(x)&&(x=(v[0]+v[1])/2),{w:x,rep:x,fixed:a.getItemModel(w).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),p=o.mapArray("value",function(_,w){var b=i.getEdgeByIndex(w),x=wt(_,c,d);isNaN(x)&&(x=(d[0]+d[1])/2);var S=b.getModel(),T=Zn(b.getModel().get(["lineStyle","curveness"]),-VS(b,e,w,!0),0);return{n1:g[b.node1.dataIndex],n2:g[b.node2.dataIndex],d:x,curveness:T,ignoreForceLayout:S.get("ignoreForceLayout")}}),m=t.getBoundingRect(),y=Nce(g,p,{rect:m,gravity:s.get("gravity"),friction:s.get("friction")});y.beforeStep(function(_,w){for(var b=0,x=_.length;b<x;b++)_[b].fixed&&rn(_[b].p,i.getNodeByIndex(b).getLayout())}),y.afterStep(function(_,w,b){for(var x=0,S=_.length;x<S;x++)_[x].fixed||i.getNodeByIndex(x).setLayout(_[x].p),n[a.getId(x)]=_[x].p;for(var x=0,S=w.length;x<S;x++){var T=w[x],C=i.getEdgeByIndex(x),A=T.n1.p,M=T.n2.p,k=C.getLayout();k=k?k.slice():[],k[0]=k[0]||[],k[1]=k[1]||[],rn(k[0],A),rn(k[1],M),+T.curveness&&(k[2]=[(A[0]+M[0])/2-(A[1]-M[1])*T.curveness,(A[1]+M[1])/2-(M[0]-A[0])*T.curveness]),C.setLayout(k)}}),e.forceLayout=y,e.preservedPoints=n,y.step()}else e.forceLayout=null})}function Rce(r,e,t){var n=$(r.getBoxLayoutParams(),{aspect:t});return mr(n,{width:e.getWidth(),height:e.getHeight()})}function Vce(r,e){var t=[];return r.eachSeriesByType("graph",function(n){var i=n.get("coordinateSystem");if(!i||i==="view"){var a=n.getData(),o=a.mapArray(function(p){var m=a.getItemModel(p);return[+m.get("x"),+m.get("y")]}),s=[],l=[];$g(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=Rce(n,e,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],h=l[1]-s[1],v=c.width,d=c.height,g=n.coordinateSystem=new Vv;g.zoomLimit=n.get("scaleLimit"),g.setBoundingRect(s[0],s[1],f,h),g.setViewRect(c.x,c.y,v,d),g.setCenter(n.get("center"),e),g.setZoom(n.get("zoom")),t.push(g)}}),t}var HN=br.prototype,HS=Wh.prototype,GN=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){Y(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(GN);function GS(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var zce=function(r){Y(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new GN},e.prototype.buildPath=function(t,n){GS(n)?HN.buildPath.call(this,t,n):HS.buildPath.call(this,t,n)},e.prototype.pointAt=function(t){return GS(this.shape)?HN.pointAt.call(this,t):HS.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var n=this.shape,i=GS(n)?[n.x2-n.x1,n.y2-n.y1]:HS.tangentAt.call(this,t);return ic(i,i)},e}(Qe),WS=["fromSymbol","toSymbol"];function WN(r){return"_"+r+"Type"}function ZN(r,e,t){var n=e.getItemVisual(t,r);if(!n||n==="none")return n;var i=e.getItemVisual(t,r+"Size"),a=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Fc(i),u=Vl(o||0,l);return n+l+u+(a||"")+(s||"")}function UN(r,e,t){var n=e.getItemVisual(t,r);if(!(!n||n==="none")){var i=e.getItemVisual(t,r+"Size"),a=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Fc(i),u=Vl(o||0,l),c=vr(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,c.name=r,c}}function Bce(r){var e=new zce({name:"line",subPixelOptimize:!0});return ZS(e.shape,r),e}function ZS(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var US=function(r){Y(e,r);function e(t,n,i){var a=r.call(this)||this;return a._createLine(t,n,i),a}return e.prototype._createLine=function(t,n,i){var a=t.hostModel,o=t.getItemLayout(n),s=Bce(o);s.shape.percent=0,Ft(s,{shape:{percent:1}},a,n),this.add(s),N(WS,function(l){var u=UN(l,t,n);this.add(u),this[WN(l)]=ZN(l,t,n)},this),this._updateCommonStl(t,n,i)},e.prototype.updateData=function(t,n,i){var a=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(n),l={shape:{}};ZS(l.shape,s),ht(o,l,a,n),N(WS,function(u){var c=ZN(u,t,n),f=WN(u);if(this[f]!==c){this.remove(this.childOfName(u));var h=UN(u,t,n);this.add(h)}this[f]=c},this),this._updateCommonStl(t,n,i)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,n,i){var a=t.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,c=i&&i.labelStatesModels,f=i&&i.emphasisDisabled,h=i&&i.focus,v=i&&i.blurScope;if(!i||t.hasItemOption){var d=t.getItemModel(n),g=d.getModel("emphasis");s=g.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),f=g.get("disabled"),h=g.get("focus"),v=g.get("blurScope"),c=xr(d)}var p=t.getItemVisual(n,"style"),m=p.stroke;o.useStyle(p),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,N(WS,function(x){var S=this.childOfName(x);if(S){S.setColor(m),S.style.opacity=p.opacity;for(var T=0;T<sn.length;T++){var C=sn[T],A=o.getState(C);if(A){var M=A.style||{},k=S.ensureState(C),L=k.style||(k.style={});M.stroke!=null&&(L[S.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(L.opacity=M.opacity)}}S.markRedraw()}},this);var y=a.getRawValue(n);Vr(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(x,S){return a.getFormattedLabel(x,S,t.dataType)}},inheritColor:m||"#000",defaultOpacity:p.opacity,defaultText:(y==null?t.getName(n):isFinite(y)?Qt(y):y)+""});var _=this.getTextContent();if(_){var w=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=w.get("position")||"middle";var b=w.get("distance");re(b)||(b=[b,b]),_.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),qt(this,h,v,f)},e.prototype.highlight=function(){$a(this)},e.prototype.downplay=function(){eo(this)},e.prototype.updateLayout=function(t,n){this.setLinePoints(t.getItemLayout(n))},e.prototype.setLinePoints=function(t){var n=this.childOfName("line");ZS(n.shape,t),n.dirty()},e.prototype.beforeUpdate=function(){var t=this,n=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),a=t.getTextContent();if(!n&&!i&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),h=Qs([],f,c);ic(h,h);function v(A,M){var k=A.__specifiedRotation;if(k==null){var L=l.tangentAt(M);A.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else A.attr("rotation",k)}if(n&&(n.setPosition(c),v(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&(i.setPosition(f),v(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var d=void 0,g=void 0,p=a.__labelDistance,m=p[0]*o,y=p[1]*o,_=u/2,w=l.tangentAt(_),b=[w[1],-w[0]],x=l.pointAt(_);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var S=w[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var T=-Math.atan2(w[1],w[0]);f[0]<c[0]&&(T=Math.PI+T),a.rotation=T}var C=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-y,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=y,g="top";break;default:C=0,g="middle"}switch(a.__position){case"end":a.x=h[0]*m+f[0],a.y=h[1]*y+f[1],d=h[0]>.8?"left":h[0]<-.8?"right":"center",g=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":a.x=-h[0]*m+c[0],a.y=-h[1]*y+c[1],d=h[0]>.8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=m*S+c[0],a.y=c[1]+C,d=w[0]<0?"right":"left",a.originX=-m*S,a.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=x[0],a.y=x[1]+C,d="center",a.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-m*S+f[0],a.y=f[1]+C,d=w[0]>=0?"right":"left",a.originX=m*S,a.originY=-C;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||g,align:a.__align||d})}},e}(Re),YS=function(){function r(e){this.group=new Re,this._LineCtor=e||US}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=e,a||i.removeAll();var o=YN(e);e.diff(a).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(a,e,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=YN(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function n(s){!s.isGroup&&!Fce(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var a=t.getItemLayout(i);if(XS(a)){var o=new this._LineCtor(t,i,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){ns(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,n){var i=e.getItemLayout(t);if(XS(i)){var a=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,a),this.group.add(a)}},r.prototype._doUpdate=function(e,t,n,i,a){var o=e.getItemGraphicEl(n);if(!XS(t.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(t,i,a):o=new this._LineCtor(t,i,a),t.setItemGraphicEl(i,o),this.group.add(o)},r}();function Fce(r){return r.animators&&r.animators.length>0}function YN(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:xr(e)}}function XN(r){return isNaN(r[0])||isNaN(r[1])}function XS(r){return r&&!XN(r[0])&&!XN(r[1])}var qS=[],jS=[],KS=[],ef=Ir,JS=$s,qN=Math.abs;function jN(r,e,t){for(var n=r[0],i=r[1],a=r[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){qS[0]=ef(n[0],i[0],a[0],c),qS[1]=ef(n[1],i[1],a[1],c);var f=qN(JS(qS,e)-l);f<o&&(o=f,s=c)}for(var h=0;h<32;h++){var v=s+u;jS[0]=ef(n[0],i[0],a[0],s),jS[1]=ef(n[1],i[1],a[1],s),KS[0]=ef(n[0],i[0],a[0],v),KS[1]=ef(n[1],i[1],a[1],v);var f=JS(jS,e)-l;if(qN(f)<.01)break;var d=JS(KS,e)-l;u/=2,f<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function QS(r,e){var t=[],n=yh,i=[[],[],[]],a=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Wa(u[0]),Wa(u[1])],u[2]&&u.__original.push(Wa(u[2])));var h=u.__original;if(u[2]!=null){if(rn(i[0],h[0]),rn(i[1],h[2]),rn(i[2],h[1]),c&&c!=="none"){var v=qv(s.node1),d=jN(i,h[0],v*e);n(i[0][0],i[1][0],i[2][0],d,t),i[0][0]=t[3],i[1][0]=t[4],n(i[0][1],i[1][1],i[2][1],d,t),i[0][1]=t[3],i[1][1]=t[4]}if(f&&f!=="none"){var v=qv(s.node2),d=jN(i,h[1],v*e);n(i[0][0],i[1][0],i[2][0],d,t),i[1][0]=t[1],i[2][0]=t[2],n(i[0][1],i[1][1],i[2][1],d,t),i[1][1]=t[1],i[2][1]=t[2]}rn(u[0],i[0]),rn(u[1],i[2]),rn(u[2],i[1])}else{if(rn(a[0],h[0]),rn(a[1],h[1]),Qs(o,a[1],a[0]),ic(o,o),c&&c!=="none"){var v=qv(s.node1);A2(a[0],a[0],o,v*e)}if(f&&f!=="none"){var v=qv(s.node2);A2(a[1],a[1],o,-v*e)}rn(u[0],a[0]),rn(u[1],a[1])}})}function KN(r){return r.type==="view"}var Hce=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){var i=new Dv,a=new YS,o=this.group;this._controller=new Ov(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},e.prototype.render=function(t,n,i){var a=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(KN(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):ht(u,c,t)}QS(t.getGraph(),Xv(t));var f=t.getData();s.updateData(f);var h=t.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,n,i),clearTimeout(this._layoutTimeout);var v=t.forceLayout,d=t.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,d);var g=t.get("layout");f.graph.eachNode(function(_){var w=_.dataIndex,b=_.getGraphicEl(),x=_.getModel();if(b){b.off("drag").off("dragend");var S=x.get("draggable");S&&b.on("drag",function(C){switch(g){case"force":v.warmUp(),!a._layouting&&a._startForceLayoutIteration(v,d),v.setFixed(w),f.setItemLayout(w,[b.x,b.y]);break;case"circular":f.setItemLayout(w,[b.x,b.y]),_.setLayout({fixed:!0},!0),FS(t,"symbolSize",_,[C.offsetX,C.offsetY]),a.updateLayout(t);break;case"none":default:f.setItemLayout(w,[b.x,b.y]),zS(t.getGraph(),t),a.updateLayout(t);break}}).on("dragend",function(){v&&v.setUnfixed(w)}),b.setDraggable(S,!!x.get("cursor"));var T=x.get(["emphasis","focus"]);T==="adjacency"&&(ze(b).focus=_.getAdjacentDataIndices())}}),f.graph.eachEdge(function(_){var w=_.getGraphicEl(),b=_.getModel().get(["emphasis","focus"]);w&&b==="adjacency"&&(ze(w).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var p=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),m=f.getLayout("cx"),y=f.getLayout("cy");f.graph.eachNode(function(_){FN(_,p,m,y)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,n){var i=this;(function a(){t.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},e.prototype._updateController=function(t,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,f)&&!Cm(u,i,t)}),!KN(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){vS(s,u.dx,u.dy),i.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){dS(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),QS(t.getGraph(),Xv(t)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,n=t.getData(),i=Xv(t);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},e.prototype.updateLayout=function(t){QS(t.getGraph(),Xv(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Dt);function tf(r){return"_EC_"+r}var Gce=function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var n=this._nodesMap;if(n[tf(e)]){process.env.NODE_ENV!=="production"&&console.error("Graph nodes have duplicate name or id");return}var i=new ru(e,t);return i.hostGraph=this,this.nodes.push(i),n[tf(e)]=i,i},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[tf(e)]},r.prototype.addEdge=function(e,t,n){var i=this._nodesMap,a=this._edgesMap;if(ct(e)&&(e=this.nodes[e]),ct(t)&&(t=this.nodes[t]),e instanceof ru||(e=i[tf(e)]),t instanceof ru||(t=i[tf(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new JN(e,t,n);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),a[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof ru&&(e=e.id),t instanceof ru&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var n=this.nodes,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&e.call(t,n[a],a)},r.prototype.eachEdge=function(e,t){for(var n=this.edges,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&e.call(t,n[a],a)},r.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof ru||(t=this._nodesMap[tf(t)]),!!t){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(i,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[a],o=0;o<u.length;o++){var c=u[o],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(e.call(i,f,l))return;s.push(f),f.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,i=this.edges,a=0,o=n.length;a<o;a++)n[a].dataIndex=-1;for(var a=0,o=e.count();a<o;a++)n[e.getRawIndex(a)].dataIndex=a;t.filterSelf(function(s){var l=i[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=t.count();a<o;a++)i[t.getRawIndex(a)].dataIndex=a},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,n=this.edges,i=0;i<t.length;i++)e.addNode(t[i].id,t[i].dataIndex);for(var i=0;i<n.length;i++){var a=n[i];e.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return e},r}(),ru=function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=Se(),t=Se(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var a=[i.node1],o=[i.node2],s=0;s<a.length;){var l=a[s];s++,t.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),a.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,t.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)e.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:e.keys(),node:t.keys()}},r}(),JN=function(){function r(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=Se(),t=Se();e.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],a=0;a<n.length;){var o=n[a];a++,t.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)e.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}for(a=0;a<i.length;){var l=i[a];a++,t.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)e.set(l.outEdges[s].dataIndex,!0),i.push(l.outEdges[s].node2)}return{edge:e.keys(),node:t.keys()}},r}();function QN(r,e){return{getValue:function(t){var n=this[r][e];return n.getStore().get(n.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,n){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,n)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,n){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,n)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}lr(ru,QN("hostGraph","data")),lr(JN,QN("hostGraph","edgeData"));function $N(r,e,t,n,i){for(var a=new Gce(n),o=0;o<r.length;o++)a.addNode(ur(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var c=e[o],f=c.source,h=c.target;a.addEdge(f,h,u)&&(l.push(c),s.push(ur(gr(c.id,null),f+" > "+h)),u++)}var v=t.get("coordinateSystem"),d;if(v==="cartesian2d"||v==="polar")d=ao(r,t);else{var g=Pc.get(v),p=g?g.dimensions||[]:[];qe(p,"value")<0&&p.concat(["value"]);var m=yv(r,{coordDimensions:p,encodeDefine:t.getEncode()}).dimensions;d=new fn(m,t),d.initData(r)}var y=new fn(["value"],t);return y.initData(l,s),i&&i(d,y),vN({mainData:d,struct:a,structAttr:"graph",datas:{node:d,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var Wce=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new kv(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),ll(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,n){var i=t.edges||t.links||[],a=t.data||t.nodes||[],o=this;if(a&&i){Ice(this);var s=$N(a,i,this,!0,l);return N(s.edges,function(u){Ece(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(d){var g=o._categoriesModels,p=d.getShallow("category"),m=g[p];return m&&(m.parentModel=d.parentModel,d.parentModel=m),d});var f=bt.prototype.getModel;function h(d,g){var p=f.call(this,d,g);return p.resolveParentPath=v,p}c.wrapMethod("getItemModel",function(d){return d.resolveParentPath=v,d.getModel=h,d});function v(d){if(d&&(d[0]==="label"||d[1]==="label")){var g=d.slice();return d[0]==="label"?g[0]="edgeLabel":d[1]==="label"&&(g[1]="edgeLabel"),g}return d}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(t,i),s=a.graph.getEdgeByIndex(t),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Sr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=W3({series:this,dataIndex:t,multipleSeries:n});return f},e.prototype._updateCategoriesData=function(){var t=ne(this.option.categories||[],function(i){return i.value!=null?i:$({value:0},i)}),n=new fn(["value"],this);n.initData(t),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Rt),Zce={type:"graphRoam",event:"graphRoam",update:"none"};function Uce(r){r.registerChartView(Hce),r.registerSeriesModel(Wce),r.registerProcessor(Tce),r.registerVisual(Ace),r.registerVisual(Cce),r.registerLayout(Lce),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,Pce),r.registerLayout(Oce),r.registerCoordinateSystem("graphView",{dimensions:Vv.dimensions,create:Vce}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},nr),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},nr),r.registerAction(Zce,function(e,t,n){t.eachComponent({mainType:"series",query:e},function(i){var a=i.coordinateSystem,o=wS(a,e,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var Yce=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),Xce=function(r){Y(e,r);function e(t){var n=r.call(this,t)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new Yce},e.prototype.buildPath=function(t,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),c=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(n.x+i(l)*s,n.y+a(l)*s),t.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),t.lineTo(n.x-i(l)*s,n.y-a(l)*s),t.lineTo(u,c)},e}(Qe);function qce(r,e){var t=r.get("center"),n=e.getWidth(),i=e.getHeight(),a=Math.min(n,i),o=de(t[0],e.getWidth()),s=de(t[1],e.getHeight()),l=de(r.get("radius"),a/2);return{cx:o,cy:s,r:l}}function Bm(r,e){var t=r==null?"":r+"";return e&&(me(e)?t=e.replace("{value}",t):Me(e)&&(t=e(r))),t}var jce=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){this.group.removeAll();var a=t.get(["axisLine","lineStyle","color"]),o=qce(t,i);this._renderMain(t,n,i,a,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,n,i,a,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,f=t.getModel("axisLine"),h=f.get("roundCap"),v=h?_m:ln,d=f.get("show"),g=f.getModel("lineStyle"),p=g.get("width"),m=[u,c];Hw(m,!l),u=m[0],c=m[1];for(var y=c-u,_=u,w=[],b=0;d&&b<a.length;b++){var x=Math.min(Math.max(a[b][0],0),1);c=u+y*x;var S=new v({shape:{startAngle:_,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-p,r:o.r},silent:!0});S.setStyle({fill:a[b][1]}),S.setStyle(g.getLineStyle(["color","width"])),w.push(S),_=c}w.reverse(),N(w,function(C){return s.add(C)});var T=function(C){if(C<=0)return a[0][1];var A;for(A=0;A<a.length;A++)if(a[A][0]>=C&&(A===0?0:a[A-1][0])<C)return a[A][1];return a[A-1][1]};this._renderTicks(t,n,i,T,o,u,c,l,p),this._renderTitleAndDetail(t,n,i,T,o),this._renderAnchor(t,o),this._renderPointer(t,n,i,T,o,u,c,l,p)},e.prototype._renderTicks=function(t,n,i,a,o,s,l,u,c){for(var f=this.group,h=o.cx,v=o.cy,d=o.r,g=+t.get("min"),p=+t.get("max"),m=t.getModel("splitLine"),y=t.getModel("axisTick"),_=t.getModel("axisLabel"),w=t.get("splitNumber"),b=y.get("splitNumber"),x=de(m.get("length"),d),S=de(y.get("length"),d),T=s,C=(l-s)/w,A=C/b,M=m.getModel("lineStyle").getLineStyle(),k=y.getModel("lineStyle").getLineStyle(),L=m.get("distance"),P,E,O=0;O<=w;O++){if(P=Math.cos(T),E=Math.sin(T),m.get("show")){var V=L?L+c:c,z=new br({shape:{x1:P*(d-V)+h,y1:E*(d-V)+v,x2:P*(d-x-V)+h,y2:E*(d-x-V)+v},style:M,silent:!0});M.stroke==="auto"&&z.setStyle({stroke:a(O/w)}),f.add(z)}if(_.get("show")){var V=_.get("distance")+L,H=Bm(Qt(O/w*(p-g)+g),_.get("formatter")),B=a(O/w),F=P*(d-x-V)+h,ee=E*(d-x-V)+v,ae=_.get("rotate"),le=0;ae==="radial"?(le=-T+2*Math.PI,le>Math.PI/2&&(le+=Math.PI)):ae==="tangential"?le=-T-Math.PI/2:ct(ae)&&(le=ae*Math.PI/180),le===0?f.add(new ut({style:Ot(_,{text:H,x:F,y:ee,verticalAlign:E<-.8?"top":E>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:B}),silent:!0})):f.add(new ut({style:Ot(_,{text:H,x:F,y:ee,verticalAlign:"middle",align:"center"},{inheritColor:B}),silent:!0,originX:F,originY:ee,rotation:le}))}if(y.get("show")&&O!==w){var V=y.get("distance");V=V?V+c:c;for(var U=0;U<=b;U++){P=Math.cos(T),E=Math.sin(T);var j=new br({shape:{x1:P*(d-V)+h,y1:E*(d-V)+v,x2:P*(d-S-V)+h,y2:E*(d-S-V)+v},silent:!0,style:k});k.stroke==="auto"&&j.setStyle({stroke:a((O+U/b)/w)}),f.add(j),T+=A}T-=A}else T+=C}},e.prototype._renderPointer=function(t,n,i,a,o,s,l,u,c){var f=this.group,h=this._data,v=this._progressEls,d=[],g=t.get(["pointer","show"]),p=t.getModel("progress"),m=p.get("show"),y=t.getData(),_=y.mapDimension("value"),w=+t.get("min"),b=+t.get("max"),x=[w,b],S=[s,l];function T(A,M){var k=y.getItemModel(A),L=k.getModel("pointer"),P=de(L.get("width"),o.r),E=de(L.get("length"),o.r),O=t.get(["pointer","icon"]),V=L.get("offsetCenter"),z=de(V[0],o.r),H=de(V[1],o.r),B=L.get("keepAspect"),F;return O?F=vr(O,z-P/2,H-E,P,E,null,B):F=new Xce({shape:{angle:-Math.PI/2,width:P,r:E,x:z,y:H}}),F.rotation=-(M+Math.PI/2),F.x=o.cx,F.y=o.cy,F}function C(A,M){var k=p.get("roundCap"),L=k?_m:ln,P=p.get("overlap"),E=P?p.get("width"):c/y.count(),O=P?o.r-E:o.r-(A+1)*E,V=P?o.r:o.r-A*E,z=new L({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:O,r:V}});return P&&(z.z2=wt(y.get(_,A),[w,b],[100,0],!0)),z}(m||g)&&(y.diff(h).add(function(A){var M=y.get(_,A);if(g){var k=T(A,s);Ft(k,{rotation:-((isNaN(+M)?S[0]:wt(M,x,S,!0))+Math.PI/2)},t),f.add(k),y.setItemGraphicEl(A,k)}if(m){var L=C(A,s),P=p.get("clip");Ft(L,{shape:{endAngle:wt(M,x,S,P)}},t),f.add(L),Zw(t.seriesIndex,y.dataType,A,L),d[A]=L}}).update(function(A,M){var k=y.get(_,A);if(g){var L=h.getItemGraphicEl(M),P=L?L.rotation:s,E=T(A,P);E.rotation=P,ht(E,{rotation:-((isNaN(+k)?S[0]:wt(k,x,S,!0))+Math.PI/2)},t),f.add(E),y.setItemGraphicEl(A,E)}if(m){var O=v[M],V=O?O.shape.endAngle:s,z=C(A,V),H=p.get("clip");ht(z,{shape:{endAngle:wt(k,x,S,H)}},t),f.add(z),Zw(t.seriesIndex,y.dataType,A,z),d[A]=z}}).execute(),y.each(function(A){var M=y.getItemModel(A),k=M.getModel("emphasis"),L=k.get("focus"),P=k.get("blurScope"),E=k.get("disabled");if(g){var O=y.getItemGraphicEl(A),V=y.getItemVisual(A,"style"),z=V.fill;if(O instanceof Er){var H=O.style;O.useStyle($({image:H.image,x:H.x,y:H.y,width:H.width,height:H.height},V))}else O.useStyle(V),O.type!=="pointer"&&O.setColor(z);O.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",a(wt(y.get(_,A),x,[0,1],!0))),O.z2EmphasisLift=0,Rr(O,M),qt(O,L,P,E)}if(m){var B=d[A];B.useStyle(y.getItemVisual(A,"style")),B.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),B.z2EmphasisLift=0,Rr(B,M),qt(B,L,P,E)}}),this._progressEls=d)},e.prototype._renderAnchor=function(t,n){var i=t.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=vr(s,n.cx-o/2+de(l[0],n.r),n.cy-o/2+de(l[1],n.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,n,i,a,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),f=+t.get("max"),h=new Re,v=[],d=[],g=t.isAnimationEnabled(),p=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){v[m]=new ut({silent:!0}),d[m]=new ut({silent:!0})}).update(function(m,y){v[m]=s._titleEls[y],d[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),_=l.get(u,m),w=new Re,b=a(wt(_,[c,f],[0,1],!0)),x=y.getModel("title");if(x.get("show")){var S=x.get("offsetCenter"),T=o.cx+de(S[0],o.r),C=o.cy+de(S[1],o.r),A=v[m];A.attr({z2:p?0:2,style:Ot(x,{x:T,y:C,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:b})}),w.add(A)}var M=y.getModel("detail");if(M.get("show")){var k=M.get("offsetCenter"),L=o.cx+de(k[0],o.r),P=o.cy+de(k[1],o.r),E=de(M.get("width"),o.r),O=de(M.get("height"),o.r),V=t.get(["progress","show"])?l.getItemVisual(m,"style").fill:b,A=d[m],z=M.get("formatter");A.attr({z2:p?0:2,style:Ot(M,{x:L,y:P,text:Bm(_,z),width:isNaN(E)?null:E,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:V})}),w6(A,{normal:M},_,function(B){return Bm(B,z)}),g&&b6(A,m,l,t,{getFormattedLabel:function(B,F,ee,ae,le,U){return Bm(U?U.interpolatedValue:_,z)}}),w.add(A)}h.add(w)}),this.group.add(h),this._titleEls=v,this._detailEls=d},e.type="gauge",e}(Dt),Kce=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,n){return Kc(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Rt);function Jce(r){r.registerChartView(jce),r.registerSeriesModel(Kce)}var Qce=["itemStyle","opacity"],$ce=function(r){Y(e,r);function e(t,n){var i=r.call(this)||this,a=i,o=new cn,s=new ut;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(t,n,!0),i}return e.prototype.updateData=function(t,n,i){var a=this,o=t.hostModel,s=t.getItemModel(n),l=t.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(Qce);c=c??1,i||Ni(a),a.useStyle(t.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,Ft(a,{style:{opacity:c}},o,n)):ht(a,{style:{opacity:c},shape:{points:l.points}},o,n),Rr(a,s),this._updateLabel(t,n),qt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=t.hostModel,l=t.getItemModel(n),u=t.getItemLayout(n),c=u.label,f=t.getItemVisual(n,"style"),h=f.fill;Vr(o,xr(l),{labelFetcher:t.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:t.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:h,outsideFill:h});var v=c.linePoints;a.setShape({points:v}),i.textGuideLineConfig={anchor:v?new Ze(v[0][0],v[0][1]):null},ht(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),Lx(i,kx(l),{stroke:h})},e}(un),efe=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,i){var a=t.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new $ce(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);Uh(u,t,l)}).execute(),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Dt),tfe=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new kv(ye(this.getData,this),ye(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,n){return Kc(this,{coordDimensions:["value"],encodeDefaulter:He(Ab,this)})},e.prototype._defaultLabelLine=function(t){ll(t,"labelLine",["show"]);var n=t.labelLine,i=t.emphasis.labelLine;n.show=n.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var n=this.getData(),i=r.prototype.getDataParams.call(this,t),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Rt);function rfe(r,e){return mr(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function nfe(r,e){for(var t=r.mapDimension("value"),n=r.mapArray(t,function(l){return l}),i=[],a=e==="ascending",o=0,s=r.count();o<s;o++)i[o]=o;return Me(e)?i.sort(e):e!=="none"&&i.sort(function(l,u){return a?n[l]-n[u]:n[u]-n[l]}),i}function ife(r){var e=r.hostModel,t=e.get("orient");r.each(function(n){var i=r.getItemModel(n),a=i.getModel("label"),o=a.get("position"),s=i.getModel("labelLine"),l=r.getItemLayout(n),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,h,v,d;if(c)o==="insideLeft"?(h=(u[0][0]+u[3][0])/2+5,v=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(h=(u[1][0]+u[2][0])/2-5,v=(u[1][1]+u[2][1])/2,f="right"):(h=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,v=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),d=[[h,v],[h,v]];else{var g=void 0,p=void 0,m=void 0,y=void 0,_=s.get("length");process.env.NODE_ENV!=="production"&&(t==="vertical"&&["top","bottom"].indexOf(o)>-1&&(o="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),t==="horizontal"&&["left","right"].indexOf(o)>-1&&(o="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),o==="left"?(g=(u[3][0]+u[0][0])/2,p=(u[3][1]+u[0][1])/2,m=g-_,h=m-5,f="right"):o==="right"?(g=(u[1][0]+u[2][0])/2,p=(u[1][1]+u[2][1])/2,m=g+_,h=m+5,f="left"):o==="top"?(g=(u[3][0]+u[0][0])/2,p=(u[3][1]+u[0][1])/2,y=p-_,v=y-5,f="center"):o==="bottom"?(g=(u[1][0]+u[2][0])/2,p=(u[1][1]+u[2][1])/2,y=p+_,v=y+5,f="center"):o==="rightTop"?(g=t==="horizontal"?u[3][0]:u[1][0],p=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(y=p-_,v=y-5,f="center"):(m=g+_,h=m+5,f="top")):o==="rightBottom"?(g=u[2][0],p=u[2][1],t==="horizontal"?(y=p+_,v=y+5,f="center"):(m=g+_,h=m+5,f="bottom")):o==="leftTop"?(g=u[0][0],p=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(y=p-_,v=y-5,f="center"):(m=g-_,h=m-5,f="right")):o==="leftBottom"?(g=t==="horizontal"?u[1][0]:u[3][0],p=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(y=p+_,v=y+5,f="center"):(m=g-_,h=m-5,f="right")):(g=(u[1][0]+u[2][0])/2,p=(u[1][1]+u[2][1])/2,t==="horizontal"?(y=p+_,v=y+5,f="center"):(m=g+_,h=m+5,f="left")),t==="horizontal"?(m=g,h=m):(y=p,v=y),d=[[g,p],[m,y]]}l.label={linePoints:d,x:h,y:v,verticalAlign:"middle",textAlign:f,inside:c}})}function afe(r,e){r.eachSeriesByType("funnel",function(t){var n=t.getData(),i=n.mapDimension("value"),a=t.get("sort"),o=rfe(t,e),s=t.get("orient"),l=o.width,u=o.height,c=nfe(n,a),f=o.x,h=o.y,v=s==="horizontal"?[de(t.get("minSize"),u),de(t.get("maxSize"),u)]:[de(t.get("minSize"),l),de(t.get("maxSize"),l)],d=n.getDataExtent(i),g=t.get("min"),p=t.get("max");g==null&&(g=Math.min(d[0],0)),p==null&&(p=d[1]);var m=t.get("funnelAlign"),y=t.get("gap"),_=s==="horizontal"?l:u,w=(_-y*(n.count()-1))/n.count(),b=function(P,E){if(s==="horizontal"){var O=n.get(i,P)||0,V=wt(O,[g,p],v,!0),z=void 0;switch(m){case"top":z=h;break;case"center":z=h+(u-V)/2;break;case"bottom":z=h+(u-V);break}return[[E,z],[E,z+V]]}var H=n.get(i,P)||0,B=wt(H,[g,p],v,!0),F;switch(m){case"left":F=f;break;case"center":F=f+(l-B)/2;break;case"right":F=f+l-B;break}return[[F,E],[F+B,E]]};a==="ascending"&&(w=-w,y=-y,s==="horizontal"?f+=l:h+=u,c=c.reverse());for(var x=0;x<c.length;x++){var S=c[x],T=c[x+1],C=n.getItemModel(S);if(s==="horizontal"){var A=C.get(["itemStyle","width"]);A==null?A=w:(A=de(A,l),a==="ascending"&&(A=-A));var M=b(S,f),k=b(T,f+A);f+=A+y,n.setItemLayout(S,{points:M.concat(k.slice().reverse())})}else{var L=C.get(["itemStyle","height"]);L==null?L=w:(L=de(L,u),a==="ascending"&&(L=-L));var M=b(S,h),k=b(T,h+L);h+=L+y,n.setItemLayout(S,{points:M.concat(k.slice().reverse())})}}ife(n)})}function ofe(r){r.registerChartView(efe),r.registerSeriesModel(tfe),r.registerLayout(afe),r.registerProcessor(Lv("funnel"))}var sfe=.3,lfe=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new Re,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,n,i,a){this._progressiveEls=null;var o=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.dimensions,f=rO(t);s.diff(l).add(h).update(v).remove(d).execute();function h(p){var m=tO(s,o,p,c,u);$S(m,s,p,f)}function v(p,m){var y=l.getItemGraphicEl(m),_=eO(s,p,c,u);s.setItemGraphicEl(p,y),ht(y,{shape:{points:_}},t,p),Ni(y),$S(y,s,p,f)}function d(p){var m=l.getItemGraphicEl(p);o.remove(m)}if(!this._initialized){this._initialized=!0;var g=ufe(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(g)}this._data=s},e.prototype.incrementalPrepareRender=function(t,n,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,n,i){for(var a=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=rO(n),u=this._progressiveEls=[],c=t.start;c<t.end;c++){var f=tO(a,this._dataGroup,c,s,o);f.incremental=!0,$S(f,a,c,l),u.push(f)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(Dt);function ufe(r,e,t){var n=r.model,i=r.getRect(),a=new st({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=n.get("layout")==="horizontal"?"width":"height";return a.setShape(o,0),Ft(a,{shape:{width:i.width,height:i.height}},e,t),a}function eO(r,e,t,n){for(var i=[],a=0;a<t.length;a++){var o=t[a],s=r.get(r.mapDimension(o),e);cfe(s,n.getAxis(o).type)||i.push(n.dataToPoint(s,o))}return i}function tO(r,e,t,n,i){var a=eO(r,t,n,i),o=new cn({shape:{points:a},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function rO(r){var e=r.get("smooth",!0);return e===!0&&(e=sfe),e=ja(e),Ks(e)&&(e=0),{smooth:e}}function $S(r,e,t,n){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",n.smooth);var i=e.getItemModel(t),a=i.getModel("emphasis");Rr(r,i,"lineStyle"),qt(r,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function cfe(r,e){return e==="category"?r==null:r==null||isNaN(r)}var ffe=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,n){return ao(null,this,{useEncodeDefaulter:ye(hfe,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var n=this.coordinateSystem,i=this.getData(),a=[];return n.eachActiveState(i,function(o,s){t===o&&a.push(i.getRawIndex(s))}),a},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(Rt);function hfe(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(e){var t={};return N(e.dimensions,function(n){var i=vfe(n);t[n]=i}),t}}function vfe(r){return+r.replace("dim","")}var dfe=["lineStyle","opacity"],pfe={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,n={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(i,a){t.eachActiveState(a,function(o,s){var l=n[o];if(o==="normal"&&a.hasItemOption){var u=a.getItemModel(s).get(dfe,!0);u!=null&&(l=u)}var c=a.ensureUniqueItemVisual(s,"style");c.opacity=l},i.start,i.end)}}}};function gfe(r){mfe(r),yfe(r)}function mfe(r){if(!r.parallel){var e=!1;N(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function yfe(r){var e=St(r.parallelAxis);N(e,function(t){if(Le(t)){var n=t.parallelIndex||0,i=St(r.parallel)[n];i&&i.parallelAxisDefault&&Ge(t,i.parallelAxisDefault,!1)}})}var _fe=5,wfe=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){this._model=t,this._api=i,this._handlers||(this._handlers={},N(bfe,function(a,o){i.getZr().on(o,this._handlers[o]=ye(a,this))},this)),zc(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,n){av(this,"_throttledDispatchExpand"),N(this._handlers,function(i,a){n.getZr().off(a,i)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction($({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Zt),bfe={mousedown:function(r){eT(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(eT(this,"click")&&e){var t=[r.offsetX,r.offsetY],n=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(n>_fe)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!eT(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=t.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function eT(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var xfe=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var n=this.option;t&&Ge(n,t,!0),this._initDimensions()},e.prototype.contains=function(t,n){var i=t.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(t){N(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){t.hasOwnProperty(n)&&(this.option[n]=t[n])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],n=this.parallelAxisIndex=[],i=pt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);N(i,function(a){t.push("dim"+a.get("dim")),n.push(a.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}($e),Sfe=function(r){Y(e,r);function e(t,n,i,a,o){var s=r.call(this,t,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(Bi);function nu(r,e,t,n,i,a){r=r||0;var o=t[1]-t[0];if(i!=null&&(i=rf(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(e[1]-e[0]);s=rf(s,[0,o]),i=a=rf(s,[i,a]),n=0}e[0]=rf(e[0],t),e[1]=rf(e[1],t);var l=tT(e,n);e[n]+=r;var u=i||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[n]=rf(e[n],c);var f;return f=tT(e,n),i!=null&&(f.sign!==l.sign||f.span<i)&&(e[1-n]=e[n]+l.sign*i),f=tT(e,n),a!=null&&f.span>a&&(e[1-n]=e[n]+f.sign*a),e}function tT(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function rf(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var rT=N,nO=Math.min,iO=Math.max,aO=Math.floor,Tfe=Math.ceil,oO=Qt,Afe=Math.PI,Cfe=function(){function r(e,t,n){this.type="parallel",this._axesMap=Se(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var i=e.dimensions,a=e.parallelAxisIndex;rT(i,function(o,s){var l=a[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new Sfe(o,cm(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,a=t.pixelDimIndex,o=e[1-a],s=e[a];return o>=n&&o<=n+t.axisLength&&s>=i&&s<=i+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(n){if(e.contains(n,t)){var i=n.getData();rT(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Yc(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=mr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=["x","y"],i=["width","height"],a=e.get("layout"),o=a==="horizontal"?0:1,s=t[i[o]],l=[0,s],u=this.dimensions.length,c=Fm(e.get("axisExpandWidth"),l),f=Fm(e.get("axisExpandCount")||0,[0,u]),h=e.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,v=e.get("axisExpandWindow"),d;if(v)d=Fm(v[1]-v[0],l),v[1]=v[0]+d;else{d=Fm(c*(f-1),l);var g=e.get("axisExpandCenter")||aO(u/2);v=[c*g-d/2],v[1]=v[0]+d}var p=(s-d)/(u-f);p<3&&(p=0);var m=[aO(oO(v[0]/c,1))+1,Tfe(oO(v[1]/c,1))-1],y=p/c*v[0];return{layout:a,pixelDimIndex:o,layoutBase:t[n[o]],layoutLength:s,axisBase:t[n[1-o]],axisLength:t[i[1-o]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:p,axisExpandWindow:v,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:y}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;t.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),rT(n,function(o,s){var l=(i.axisExpandable?Mfe:Dfe)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:Afe/2,vertical:0},f=[u[a].x+e.x,u[a].y+e.y],h=c[a],v=En();el(v,v,h),ia(v,v,f),this._axesLayout[o]={position:f,rotation:h,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,n,i){n==null&&(n=0),i==null&&(i=e.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];N(o,function(p){s.push(e.mapDimension(p)),l.push(a.get(p).model)});for(var u=this.hasAxisBrushed(),c=n;c<i;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var h=e.getValues(s,c),v=0,d=o.length;v<d;v++){var g=l[v].getActiveState(h[v]);if(g==="inactive"){f="inactive";break}}}t(f,c)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,i=0,a=e.length;i<a;i++)t.get(e[i]).model.getActiveState()!=="normal"&&(n=!0);return n},r.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return Ri([e,0],n.transform)},r.prototype.getAxisLayout=function(e){return Oe(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,i=t.axisExpandWindow.slice(),a=i[1]-i[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",c=t.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),h=f[0]!=null;if(c)h&&c&&s<a*f[0]?(u="jump",l=s-a*f[2]):h&&c&&s>a*(1-f[0])?(u="jump",l=s-a*(1-f[2])):(l=s-a*f[1])>=0&&(l=s-a*(1-f[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?nu(l,i,o,"all"):u="none";else{var v=i[1]-i[0],d=o[1]*s/v;i=[iO(0,d-v/2)],i[1]=nO(o[1],i[0]+v),i[0]=i[1]-v}return{axisExpandWindow:i,behavior:u}},r}();function Fm(r,e){return nO(iO(r,e[0]),e[1])}function Dfe(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function Mfe(r,e){var t=e.layoutLength,n=e.axisExpandWidth,i=e.axisCount,a=e.axisCollapseWidth,o=e.winInnerIndices,s,l=a,u=!1,c;return r<o[0]?(s=r*a,c=a):r<=o[1]?(s=e.axisExpandWindow0Pos+r*n-e.axisExpandWindow[0],l=n,u=!0):(s=t-(i-1-r)*a,c=a),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function Ife(r,e){var t=[];return r.eachComponent("parallel",function(n,i){var a=new Cfe(n,r,e);a.name="parallel_"+i,a.resize(n,e),n.coordinateSystem=a,a.model=n,t.push(a)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var i=n.getReferringComponents("parallel",fr).models[0];n.coordinateSystem=i.coordinateSystem}}),t}var Efe={create:Ife},nT=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return fl([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var n=this.activeIntervals=Oe(t);if(n)for(var i=n.length-1;i>=0;i--)jn(n[i])},e.prototype.getActiveState=function(t){var n=this.activeIntervals;if(!n.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var a=0,o=n.length;a<o;a++)if(n[a][0]<=t&&t<=n[a][1])return"active";return"inactive"},e}($e);lr(nT,wv);var iu=!0,jv=Math.min,nf=Math.max,Lfe=Math.pow,kfe=1e4,Pfe=6,Nfe=6,sO="globalPan",Ofe={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Rfe={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},lO={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Vfe=0,iT=function(r){Y(e,r);function e(t){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},process.env.NODE_ENV!=="production"&&ke(t),n._zr=t,n.group=new Re,n._uid="brushController_"+Vfe++,N(Zfe,function(i,a){this._handlers[a]=ye(i,this)},n),n}return e.prototype.enableBrush=function(t){return process.env.NODE_ENV!=="production"&&ke(this._mounted),this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var n=this._zr;this._enableGlobalPan||Dle(n,sO,this._uid),N(this._handlers,function(i,a){n.on(a,i)}),this._brushType=t.brushType,this._brushOption=Ge(Oe(lO),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;Mle(t,sO,this._uid),N(this._handlers,function(n,i){t.off(i,n)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var n=this._panels={};N(t,function(i){n[i.panelId]=Oe(i)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},process.env.NODE_ENV!=="production"&&(this._mounted=!0),this._enableGlobalPan=t.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=n.getLocalTransform(),this},e.prototype.updateCovers=function(t){process.env.NODE_ENV!=="production"&&ke(this._mounted),t=ne(t,function(h){return Ge(Oe(lO),h,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new io(i,t,u,l).add(c).update(c).remove(f).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function c(h,v){var d=t[h];if(v!=null&&i[v]===s)a[h]=i[v];else{var g=a[h]=v!=null?(i[v].__brushOption=d,i[v]):cO(o,uO(o,d));aT(o,g)}}function f(h){i[h]!==s&&o.group.remove(i[h])}},e.prototype.unmount=function(){if(!(process.env.NODE_ENV!=="production"&&!this._mounted))return this.enableBrush(!1),lT(this),this._zr.remove(this.group),process.env.NODE_ENV!=="production"&&(this._mounted=!1),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Un);function uO(r,e){var t=Hm[e.brushType].createCover(r,e);return t.__brushOption=e,hO(t,e),r.group.add(t),t}function cO(r,e){var t=oT(e);return t.endCreating&&(t.endCreating(r,e),hO(e,e.__brushOption)),e}function fO(r,e){var t=e.__brushOption;oT(e).updateCoverShape(r,e,t.range,t)}function hO(r,e){var t=e.z;t==null&&(t=kfe),r.traverse(function(n){n.z=t,n.z2=t})}function aT(r,e){oT(e).updateCommon(r,e),fO(r,e)}function oT(r){return Hm[r.__brushOption.brushType]}function sT(r,e,t){var n=r._panels;if(!n)return iu;var i,a=r._transform;return N(n,function(o){o.isTargetByCursor(e,t,a)&&(i=o)}),i}function vO(r,e){var t=r._panels;if(!t)return iu;var n=e.__brushOption.panelId;return n!=null?t[n]:iu}function lT(r){var e=r._covers,t=e.length;return N(e,function(n){r.group.remove(n)},r),e.length=0,!!t}function au(r,e){var t=ne(r._covers,function(n){var i=n.__brushOption,a=Oe(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function zfe(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],n=e[0],i=t[0]-n[0],a=t[1]-n[1],o=Lfe(i*i+a*a,.5);return o>Pfe}function dO(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function pO(r,e,t,n){var i=new Re;return i.add(new st({name:"main",style:cT(t),silent:!0,draggable:!0,cursor:"move",drift:He(yO,r,e,i,["n","s","w","e"]),ondragend:He(au,e,{isEnd:!0})})),N(n,function(a){i.add(new st({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:He(yO,r,e,i,a),ondragend:He(au,e,{isEnd:!0})}))}),i}function gO(r,e,t,n){var i=n.brushStyle.lineWidth||0,a=nf(i,Nfe),o=t[0][0],s=t[1][0],l=o-i/2,u=s-i/2,c=t[0][1],f=t[1][1],h=c-a+i/2,v=f-a+i/2,d=c-o,g=f-s,p=d+i,m=g+i;lo(r,e,"main",o,s,d,g),n.transformable&&(lo(r,e,"w",l,u,a,m),lo(r,e,"e",h,u,a,m),lo(r,e,"n",l,u,p,a),lo(r,e,"s",l,v,p,a),lo(r,e,"nw",l,u,a,a),lo(r,e,"ne",h,u,a,a),lo(r,e,"sw",l,v,a,a),lo(r,e,"se",h,v,a,a))}function uT(r,e){var t=e.__brushOption,n=t.transformable,i=e.childAt(0);i.useStyle(cT(t)),i.attr({silent:!n,cursor:n?"move":"default"}),N([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=e.childOfName(a.join("")),s=a.length===1?fT(r,a[0]):Ffe(r,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?Rfe[s]+"-resize":null})})}function lo(r,e,t,n,i,a,o){var s=e.childOfName(t);s&&s.setShape(Gfe(hT(r,e,[[n,i],[n+a,i+o]])))}function cT(r){return Ne({strokeNoScale:!0},r.brushStyle)}function mO(r,e,t,n){var i=[jv(r,t),jv(e,n)],a=[nf(r,t),nf(e,n)];return[[i[0],a[0]],[i[1],a[1]]]}function Bfe(r){return Dl(r.group)}function fT(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=y0(t[e],Bfe(r));return n[i]}function Ffe(r,e){var t=[fT(r,e[0]),fT(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function yO(r,e,t,n,i,a){var o=t.__brushOption,s=r.toRectRange(o.range),l=_O(e,i,a);N(n,function(u){var c=Ofe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(mO(s[0][0],s[1][0],s[0][1],s[1][1])),aT(e,t),au(e,{isEnd:!1})}function Hfe(r,e,t,n){var i=e.__brushOption.range,a=_O(r,t,n);N(i,function(o){o[0]+=a[0],o[1]+=a[1]}),aT(r,e),au(r,{isEnd:!1})}function _O(r,e,t){var n=r.group,i=n.transformCoordToLocal(e,t),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function hT(r,e,t){var n=vO(r,e);return n&&n!==iu?n.clipPath(t,r._transform):Oe(t)}function Gfe(r){var e=jv(r[0][0],r[1][0]),t=jv(r[0][1],r[1][1]),n=nf(r[0][0],r[1][0]),i=nf(r[0][1],r[1][1]);return{x:e,y:t,width:n-e,height:i-t}}function Wfe(r,e,t){if(!(!r._brushType||Ufe(r,e.offsetX,e.offsetY))){var n=r._zr,i=r._covers,a=sT(r,e,t);if(!r._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===iu||s.panelId===a.panelId)&&Hm[s.brushType].contain(i[o],t[0],t[1]))return}a&&n.setCursorStyle("crosshair")}}function vT(r){var e=r.event;e.preventDefault&&e.preventDefault()}function dT(r,e,t){return r.childOfName("main").contain(e,t)}function wO(r,e,t,n){var i=r._creatingCover,a=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),zfe(r)||i){if(a&&!i){o.brushMode==="single"&&lT(r);var l=Oe(o);l.brushType=bO(l.brushType,a),l.panelId=a===iu?null:a.panelId,i=r._creatingCover=uO(r,l),r._covers.push(i)}if(i){var u=Hm[bO(r._brushType,a)],c=i.__brushOption;c.range=u.getCreatingRange(hT(r,i,r._track)),n&&(cO(r,i),u.updateCommon(r,i)),fO(r,i),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&sT(r,e,t)&&lT(r)&&(s={isEnd:n,removeOnClick:!0});return s}function bO(r,e){return r==="auto"?(process.env.NODE_ENV!=="production"&&ke(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),e.defaultBrushType):r}var Zfe={mousedown:function(r){if(this._dragging)xO(this,r);else if(!r.target||!r.target.draggable){vT(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=sT(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,n=this.group.transformCoordToLocal(e,t);if(Wfe(this,r,n),this._dragging){vT(r);var i=wO(this,r,n,!1);i&&au(this,i)}},mouseup:function(r){xO(this,r)}};function xO(r,e){if(r._dragging){vT(e);var t=e.offsetX,n=e.offsetY,i=r.group.transformCoordToLocal(t,n),a=wO(r,e,i,!0);r._dragging=!1,r._track=[],r._creatingCover=null,a&&au(r,a)}}function Ufe(r,e,t){var n=r._zr;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var Hm={lineX:SO(0),lineY:SO(1),rect:{createCover:function(r,e){function t(n){return n}return pO({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=dO(r);return mO(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,n){gO(r,e,t,n)},updateCommon:uT,contain:dT},polygon:{createCover:function(r,e){var t=new Re;return t.add(new cn({name:"main",style:cT(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new un({name:"main",draggable:!0,drift:He(Hfe,r,e),ondragend:He(au,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,n){e.childAt(0).setShape({points:hT(r,e,t)})},updateCommon:uT,contain:dT}};function SO(r){return{createCover:function(e,t){return pO({toRectRange:function(n){var i=[n,[0,100]];return r&&i.reverse(),i},fromRectRange:function(n){return n[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=dO(e),n=jv(t[0][r],t[1][r]),i=nf(t[0][r],t[1][r]);return[n,i]},updateCoverShape:function(e,t,n,i){var a,o=vO(e,t);if(o!==iu&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(r);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,a];r&&l.reverse(),gO(e,t,l,i)},updateCommon:uT,contain:dT}}function TO(r){return r=pT(r),function(e){return h6(e,r)}}function AO(r,e){return r=pT(r),function(t){var n=e??t,i=n?r.width:r.height,a=n?r.x:r.y;return[a,a+(i||0)]}}function CO(r,e,t){var n=pT(r);return function(i,a){return n.contain(a[0],a[1])&&!Cm(i,e,t)}}function pT(r){return Ue.create(r)}var Yfe=["axisLine","axisTickLabel","axisName"],Xfe=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){r.prototype.init.apply(this,arguments),(this._brushController=new iT(n.getZr())).on("brush",ye(this._onBrush,this))},e.prototype.render=function(t,n,i,a){if(!qfe(t,n,a)){this.axisModel=t,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Re,this.group.add(this._axisGroup),!!t.get("show")){var s=Kfe(t,n),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,f=t.axis.dim,h=l.getAxisLayout(f),v=$({strokeContainThreshold:c},h),d=new dn(t,v);N(Yfe,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(v,u,t,s,c,i),Yh(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Ue.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:TO(f),isTargetByCursor:CO(f,s,a),getLinearBrushOtherExtent:AO(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(jfe(i))},e.prototype._onBrush=function(t){var n=t.areas,i=this.axisModel,a=i.axis,o=ne(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Zt);function qfe(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function jfe(r){var e=r.axis;return ne(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Kfe(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var Jfe={type:"axisAreaSelect",event:"axisAreaSelected"};function Qfe(r){r.registerAction(Jfe,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(n){n.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(n){n.setAxisExpand(e)})})}var $fe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function DO(r){r.registerComponentView(wfe),r.registerComponentModel(xfe),r.registerCoordinateSystem("parallel",Efe),r.registerPreprocessor(gfe),r.registerComponentModel(nT),r.registerComponentView(Xfe),Jc(r,"parallel",nT,$fe),Qfe(r)}function ehe(r){je(DO),r.registerChartView(lfe),r.registerSeriesModel(ffe),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,pfe)}var the=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),rhe=function(r){Y(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new the},e.prototype.buildPath=function(t,n){var i=n.extent;t.moveTo(n.x1,n.y1),t.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(t.lineTo(n.x2+i,n.y2),t.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(t.lineTo(n.x2,n.y2+i),t.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),t.closePath()},e.prototype.highlight=function(){$a(this)},e.prototype.downplay=function(){eo(this)},e}(Qe),nhe=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,n,i){var a=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,f=t.getData(),h=t.getData("edge"),v=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(d){var g=new rhe,p=ze(g);p.dataIndex=d.dataIndex,p.seriesIndex=t.seriesIndex,p.dataType="edge";var m=d.getModel(),y=m.getModel("lineStyle"),_=y.get("curveness"),w=d.node1.getLayout(),b=d.node1.getModel(),x=b.get("localX"),S=b.get("localY"),T=d.node2.getLayout(),C=d.node2.getModel(),A=C.get("localX"),M=C.get("localY"),k=d.getLayout(),L,P,E,O,V,z,H,B;g.shape.extent=Math.max(1,k.dy),g.shape.orient=v,v==="vertical"?(L=(x!=null?x*u:w.x)+k.sy,P=(S!=null?S*c:w.y)+w.dy,E=(A!=null?A*u:T.x)+k.ty,O=M!=null?M*c:T.y,V=L,z=P*(1-_)+O*_,H=E,B=P*_+O*(1-_)):(L=(x!=null?x*u:w.x)+w.dx,P=(S!=null?S*c:w.y)+k.sy,E=A!=null?A*u:T.x,O=(M!=null?M*c:T.y)+k.ty,V=L*(1-_)+E*_,z=P,H=L*_+E*(1-_),B=O),g.setShape({x1:L,y1:P,x2:E,y2:O,cpx1:V,cpy1:z,cpx2:H,cpy2:B}),g.useStyle(y.getItemStyle()),MO(g.style,v,d);var F=""+m.get("value"),ee=xr(m,"edgeLabel");Vr(g,ee,{labelFetcher:{getFormattedLabel:function(U,j,Xe,Te,xe,Be){return t.getFormattedLabel(U,j,"edge",Te,Zn(xe,ee.normal&&ee.normal.get("formatter"),F),Be)}},labelDataIndex:d.dataIndex,defaultText:F}),g.setTextConfig({position:"inside"});var ae=m.getModel("emphasis");Rr(g,m,"lineStyle",function(U){var j=U.getItemStyle();return MO(j,v,d),j}),s.add(g),h.setItemGraphicEl(d.dataIndex,g);var le=ae.get("focus");qt(g,le==="adjacency"?d.getAdjacentDataIndices():le==="trajectory"?d.getTrajectoryDataIndices():le,ae.get("blurScope"),ae.get("disabled"))}),o.eachNode(function(d){var g=d.getLayout(),p=d.getModel(),m=p.get("localX"),y=p.get("localY"),_=p.getModel("emphasis"),w=p.get(["itemStyle","borderRadius"])||0,b=new st({shape:{x:m!=null?m*u:g.x,y:y!=null?y*c:g.y,width:g.dx,height:g.dy,r:w},style:p.getModel("itemStyle").getItemStyle(),z2:10});Vr(b,xr(p),{labelFetcher:{getFormattedLabel:function(S,T){return t.getFormattedLabel(S,T,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),b.disableLabelAnimation=!0,b.setStyle("fill",d.getVisual("color")),b.setStyle("decal",d.getVisual("style").decal),Rr(b,p),s.add(b),f.setItemGraphicEl(d.dataIndex,b),ze(b).dataType="node";var x=_.get("focus");qt(b,x==="adjacency"?d.getAdjacentDataIndices():x==="trajectory"?d.getTrajectoryDataIndices():x,_.get("blurScope"),_.get("disabled"))}),f.eachItemGraphicEl(function(d,g){var p=f.getItemModel(g);p.get("draggable")&&(d.drift=function(m,y){a._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=y,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:f.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},d.ondragend=function(){a._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(ihe(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Dt);function MO(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var n=t.node1.getVisual("color"),i=t.node2.getVisual("color");me(n)&&me(i)&&(r.fill=new Zh(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function ihe(r,e,t){var n=new st({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ft(n,{shape:{width:r.width+20}},e,t),n}var ahe=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){var i=t.edges||t.links||[],a=t.data||t.nodes||[],o=t.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)if(o[l].depth!=null&&o[l].depth>=0)s[o[l].depth]=new bt(o[l],this,n);else if(process.env.NODE_ENV!=="production")throw new Error("levels[i].depth is mandatory and should be natural number");var u=$N(a,i,this,!0,c);return u.data;function c(f,h){f.wrapMethod("getItemModel",function(v,d){var g=v.parentModel,p=g.getData().getItemLayout(d);if(p){var m=p.depth,y=g.levelModels[m];y&&(v.parentModel=y)}return v}),h.wrapMethod("getItemModel",function(v,d){var g=v.parentModel,p=g.getGraph().getEdgeByIndex(d),m=p.node1.getLayout();if(m){var y=m.depth,_=g.levelModels[y];_&&(v.parentModel=_)}return v})}},e.prototype.setNodePosition=function(t,n){var i=this.option.data||this.option.nodes,a=i[t];a.localX=n[0],a.localY=n[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,n,i){function a(v){return isNaN(v)||v==null}if(i==="edge"){var o=this.getDataParams(t,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Sr("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(t),f=c.getLayout().value,h=this.getDataParams(t,i).data.name;return Sr("nameValue",{name:h!=null?h+"":null,value:f,noValue:a(f)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,n){var i=r.prototype.getDataParams.call(this,t,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(t),o=a.getLayout().value;i.value=o}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Rt);function ohe(r,e){r.eachSeriesByType("sankey",function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),a=she(t,e);t.layoutInfo=a;var o=a.width,s=a.height,l=t.getGraph(),u=l.nodes,c=l.edges;uhe(u);var f=pt(u,function(g){return g.getLayout().value===0}),h=f.length!==0?0:t.get("layoutIterations"),v=t.get("orient"),d=t.get("nodeAlign");lhe(u,c,n,i,o,s,h,v,d)})}function she(r,e){return mr(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function lhe(r,e,t,n,i,a,o,s,l){che(r,e,t,i,a,s,l),dhe(r,e,a,i,n,o,s),She(r,s)}function uhe(r){N(r,function(e){var t=ms(e.outEdges,Gm),n=ms(e.inEdges,Gm),i=e.getValue()||0,a=Math.max(t,n,i);e.setLayout({value:a},!0)})}function che(r,e,t,n,i,a,o){for(var s=[],l=[],u=[],c=[],f=0,h=0;h<e.length;h++)s[h]=1;for(var h=0;h<r.length;h++)l[h]=r[h].inEdges.length,l[h]===0&&u.push(r[h]);for(var v=-1;u.length;){for(var d=0;d<u.length;d++){var g=u[d],p=g.hostGraph.data.getRawDataItem(g.dataIndex),m=p.depth!=null&&p.depth>=0;m&&p.depth>v&&(v=p.depth),g.setLayout({depth:m?p.depth:f},!0),a==="vertical"?g.setLayout({dy:t},!0):g.setLayout({dx:t},!0);for(var y=0;y<g.outEdges.length;y++){var _=g.outEdges[y],w=e.indexOf(_);s[w]=0;var b=_.node2,x=r.indexOf(b);--l[x]===0&&c.indexOf(b)<0&&c.push(b)}}++f,u=c,c=[]}for(var h=0;h<s.length;h++)if(s[h]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var S=v>f-1?v:f-1;o&&o!=="left"&&fhe(r,o,a,S);var T=a==="vertical"?(i-t)/S:(n-t)/S;vhe(r,T,a)}function IO(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function fhe(r,e,t,n){if(e==="right"){for(var i=[],a=r,o=0;a.length;){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}a=i,i=[],++o}N(r,function(f){IO(f)||f.setLayout({depth:Math.max(0,n-f.getLayout().skNodeHeight)},!0)})}else e==="justify"&&hhe(r,n)}function hhe(r,e){N(r,function(t){!IO(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function vhe(r,e,t){N(r,function(n){var i=n.getLayout().depth*e;t==="vertical"?n.setLayout({y:i},!0):n.setLayout({x:i},!0)})}function dhe(r,e,t,n,i,a,o){var s=phe(r,o);ghe(s,e,t,n,i,o),gT(s,i,t,n,o);for(var l=1;a>0;a--)l*=.99,mhe(s,l,o),gT(s,i,t,n,o),xhe(s,l,o),gT(s,i,t,n,o)}function phe(r,e){var t=[],n=e==="vertical"?"y":"x",i=Aw(r,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),N(i.keys,function(a){t.push(i.buckets.get(a))}),t}function ghe(r,e,t,n,i,a){var o=1/0;N(r,function(s){var l=s.length,u=0;N(s,function(f){u+=f.getLayout().value});var c=a==="vertical"?(n-(l-1)*i)/u:(t-(l-1)*i)/u;c<o&&(o=c)}),N(r,function(s){N(s,function(l,u){var c=l.getLayout().value*o;a==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),N(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function gT(r,e,t,n,i){var a=i==="vertical"?"x":"y";N(r,function(o){o.sort(function(g,p){return g.getLayout()[a]-p.getLayout()[a]});for(var s,l,u,c=0,f=o.length,h=i==="vertical"?"dx":"dy",v=0;v<f;v++)l=o[v],u=c-l.getLayout()[a],u>0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[h]+e;var d=i==="vertical"?n:t;if(u=c-e-d,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var v=f-2;v>=0;--v)l=o[v],u=l.getLayout()[a]+l.getLayout()[h]+e-c,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function mhe(r,e,t){N(r.slice().reverse(),function(n){N(n,function(i){if(i.outEdges.length){var a=ms(i.outEdges,yhe,t)/ms(i.outEdges,Gm);if(isNaN(a)){var o=i.outEdges.length;a=o?ms(i.outEdges,_he,t)/o:0}if(t==="vertical"){var s=i.getLayout().x+(a-gs(i,t))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-gs(i,t))*e;i.setLayout({y:l},!0)}}})})}function yhe(r,e){return gs(r.node2,e)*r.getValue()}function _he(r,e){return gs(r.node2,e)}function whe(r,e){return gs(r.node1,e)*r.getValue()}function bhe(r,e){return gs(r.node1,e)}function gs(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Gm(r){return r.getValue()}function ms(r,e,t){for(var n=0,i=r.length,a=-1;++a<i;){var o=+e(r[a],t);isNaN(o)||(n+=o)}return n}function xhe(r,e,t){N(r,function(n){N(n,function(i){if(i.inEdges.length){var a=ms(i.inEdges,whe,t)/ms(i.inEdges,Gm);if(isNaN(a)){var o=i.inEdges.length;a=o?ms(i.inEdges,bhe,t)/o:0}if(t==="vertical"){var s=i.getLayout().x+(a-gs(i,t))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-gs(i,t))*e;i.setLayout({y:l},!0)}}})})}function She(r,e){var t=e==="vertical"?"x":"y";N(r,function(n){n.outEdges.sort(function(i,a){return i.node2.getLayout()[t]-a.node2.getLayout()[t]}),n.inEdges.sort(function(i,a){return i.node1.getLayout()[t]-a.node1.getLayout()[t]})}),N(r,function(n){var i=0,a=0;N(n.outEdges,function(o){o.setLayout({sy:i},!0),i+=o.getLayout().dy}),N(n.inEdges,function(o){o.setLayout({ty:a},!0),a+=o.getLayout().dy})})}function The(r){r.eachSeriesByType("sankey",function(e){var t=e.getGraph(),n=t.nodes,i=t.edges;if(n.length){var a=1/0,o=-1/0;N(n,function(s){var l=s.getLayout().value;l<a&&(a=l),l>o&&(o=l)}),N(n,function(s){var l=new Ar({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&N(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Ahe(r){r.registerChartView(nhe),r.registerSeriesModel(ahe),r.registerLayout(ohe),r.registerVisual(The),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(n){n.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var EO=function(){function r(){}return r.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},r.prototype.getInitialData=function(e,t){var n,i=t.getComponent("xAxis",this.get("xAxisIndex")),a=t.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(e.layout="horizontal",n=i.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(e.layout="vertical",n=a.getOrdinalMeta(),l=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],h=u[1-c],v=[i,a],d=v[c].get("type"),g=v[1-c].get("type"),p=e.data;if(p&&l){var m=[];N(p,function(w,b){var x;re(w)?(x=w.slice(),w.unshift(b)):re(w.value)?(x=$({},w),x.value=x.value.slice(),w.value.unshift(b)):x=w,m.push(x)}),e.data=m}var y=this.defaultValueDimensions,_=[{name:f,type:$0(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:$0(g),dimsDef:y.slice()}];return Kc(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:He(Y6,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),LO=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Rt);lr(LO,EO,!0);var Che=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){var a=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),f=kO(c,a,u,l,!0);a.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!a.hasValue(u)){o.remove(f);return}var h=a.getItemLayout(u);f?(Ni(f),PO(h,f,a,u)):f=kO(h,a,u,l),o.add(f),a.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=a},e.prototype.remove=function(t){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},e.type="boxplot",e}(Dt),Dhe=function(){function r(){}return r}(),Mhe=function(r){Y(e,r);function e(t){var n=r.call(this,t)||this;return n.type="boxplotBoxPath",n}return e.prototype.getDefaultShape=function(){return new Dhe},e.prototype.buildPath=function(t,n){var i=n.points,a=0;for(t.moveTo(i[a][0],i[a][1]),a++;a<4;a++)t.lineTo(i[a][0],i[a][1]);for(t.closePath();a<i.length;a++)t.moveTo(i[a][0],i[a][1]),a++,t.lineTo(i[a][0],i[a][1])},e}(Qe);function kO(r,e,t,n,i){var a=r.ends,o=new Mhe({shape:{points:i?Ihe(a,n,r):a}});return PO(r,o,e,t,i),o}function PO(r,e,t,n,i){var a=t.hostModel,o=Il[i?"initProps":"updateProps"];o(e,{shape:{points:r.ends}},a,n),e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(n),l=s.getModel("emphasis");Rr(e,s),qt(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function Ihe(r,e,t){return ne(r,function(n){return n=n.slice(),n[e]=t.initBaseline,n})}var Kv=N;function Ehe(r){var e=Lhe(r);Kv(e,function(t){var n=t.seriesModels;n.length&&(khe(t),Kv(n,function(i,a){Phe(i,t.boxOffsetList[a],t.boxWidthList[a])}))})}function Lhe(r){var e=[],t=[];return r.eachSeriesByType("boxplot",function(n){var i=n.getBaseAxis(),a=qe(t,i);a<0&&(a=t.length,t[a]=i,e[a]={axis:i,seriesModels:[]}),e[a].seriesModels.push(n)}),e}function khe(r){var e=r.axis,t=r.seriesModels,n=t.length,i=r.boxWidthList=[],a=r.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;Kv(t,function(d){l=Math.max(l,d.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}Kv(t,function(d){var g=d.get("boxWidth");re(g)||(g=[g,g]),o.push([de(g[0],s)||0,de(g[1],s)||0])});var c=s*.8-2,f=c/n*.3,h=(c-f*(n-1))/n,v=h/2-c/2;Kv(t,function(d,g){a.push(v),v+=f+h,i.push(Math.min(Math.max(h,o[g][0]),o[g][1]))})}function Phe(r,e,t){var n=r.coordinateSystem,i=r.getData(),a=t/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=i.mapDimension(l[o]),c=i.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<i.count();f++){var h=i.get(u,f),v=_(h,c[2],f),d=_(h,c[0],f),g=_(h,c[1],f),p=_(h,c[3],f),m=_(h,c[4],f),y=[];w(y,g,!1),w(y,p,!0),y.push(d,g,m,p),b(y,d),b(y,m),b(y,v),i.setItemLayout(f,{initBaseline:v[s],ends:y})}function _(x,S,T){var C=i.get(S,T),A=[];A[o]=x,A[s]=C;var M;return isNaN(x)||isNaN(C)?M=[NaN,NaN]:(M=n.dataToPoint(A),M[o]+=e),M}function w(x,S,T){var C=S.slice(),A=S.slice();C[o]+=a,A[o]-=a,T?x.push(C,A):x.push(A,C)}function b(x,S){var T=S.slice(),C=S.slice();T[o]-=a,C[o]+=a,x.push(T,C)}}function Nhe(r,e){e=e||{};for(var t=[],n=[],i=e.boundIQR,a=i==="none"||i===0,o=0;o<r.length;o++){var s=jn(r[o].slice()),l=bw(s,.25),u=bw(s,.5),c=bw(s,.75),f=s[0],h=s[s.length-1],v=(i??1.5)*(c-l),d=a?f:Math.max(f,l-v),g=a?h:Math.min(h,c+v),p=e.itemNameFormatter,m=Me(p)?p({value:o}):me(p)?p.replace("{value}",o+""):o+"";t.push([m,d,l,u,c,g]);for(var y=0;y<s.length;y++){var _=s[y];if(_<d||_>g){var w=[m,_];n.push(w)}}}return{boxData:t,outliers:n}}var Ohe={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Yr){var n="";process.env.NODE_ENV!=="production"&&(n=an("source data is not applicable for this boxplot transform. Expect number[][].")),gt(n)}var i=Nhe(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Rhe(r){r.registerSeriesModel(LO),r.registerChartView(Che),r.registerLayout(Ehe),r.registerTransform(Ohe)}var Vhe=["itemStyle","borderColor"],zhe=["itemStyle","borderColor0"],Bhe=["itemStyle","borderColorDoji"],Fhe=["itemStyle","color"],Hhe=["itemStyle","color0"];function mT(r,e){return e.get(r>0?Fhe:Hhe)}function yT(r,e){return e.get(r===0?Bhe:r>0?Vhe:zhe)}var Ghe={seriesType:"candlestick",plan:Vc(),performRawSeries:!0,reset:function(r,e){if(!e.isSeriesFiltered(r)){var t=r.pipelineContext.large;return!t&&{progress:function(n,i){for(var a;(a=n.next())!=null;){var o=i.getItemModel(a),s=i.getItemLayout(a).sign,l=o.getItemStyle();l.fill=mT(s,o),l.stroke=yT(s,o)||l.fill;var u=i.ensureUniqueItemVisual(a,"style");$(u,l)}}}}}},Whe=["color","borderColor"],Zhe=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,n,i){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,n):this._incrementalRenderNormal(t,n)},e.prototype.eachRendered=function(t){ns(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t){var n=t.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&NO(u,f))return;var h=_T(f,c,!0);Ft(h,{shape:{points:f.ends}},t,c),wT(h,n,c,o),a.add(h),n.setItemGraphicEl(c,h)}}).update(function(c,f){var h=i.getItemGraphicEl(f);if(!n.hasValue(c)){a.remove(h);return}var v=n.getItemLayout(c);if(s&&NO(u,v)){a.remove(h);return}h?(ht(h,{shape:{points:v.ends}},t,c),Ni(h)):h=_T(v),wT(h,n,c,o),a.add(h),n.setItemGraphicEl(c,h)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&a.remove(f)}).execute(),this._data=n},e.prototype._renderLarge=function(t){this._clear(),OO(t,this.group);var n=t.get("clip",!0)?Mv(t.coordinateSystem,!1,t):null;n?this.group.setClipPath(n):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=i.getItemLayout(o),l=_T(s);wT(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,n){OO(n,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Dt),Uhe=function(){function r(){}return r}(),Yhe=function(r){Y(e,r);function e(t){var n=r.call(this,t)||this;return n.type="normalCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new Uhe},e.prototype.buildPath=function(t,n){var i=n.points;this.__simpleBox?(t.moveTo(i[4][0],i[4][1]),t.lineTo(i[6][0],i[6][1])):(t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]),t.lineTo(i[3][0],i[3][1]),t.closePath(),t.moveTo(i[4][0],i[4][1]),t.lineTo(i[5][0],i[5][1]),t.moveTo(i[6][0],i[6][1]),t.lineTo(i[7][0],i[7][1]))},e}(Qe);function _T(r,e,t){var n=r.ends;return new Yhe({shape:{points:t?Xhe(n,r):n},z2:100})}function NO(r,e){for(var t=!0,n=0;n<e.ends.length;n++)if(r.contain(e.ends[n][0],e.ends[n][1])){t=!1;break}return t}function wT(r,e,t,n){var i=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0,r.__simpleBox=n,Rr(r,i);var a=e.getItemLayout(t).sign;N(r.states,function(s,l){var u=i.getModel(l),c=mT(a,u),f=yT(a,u)||c,h=s.style||(s.style={});c&&(h.fill=c),f&&(h.stroke=f)});var o=i.getModel("emphasis");qt(r,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function Xhe(r,e){return ne(r,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var qhe=function(){function r(){}return r}(),bT=function(r){Y(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new qhe},e.prototype.buildPath=function(t,n){for(var i=n.points,a=0;a<i.length;)if(this.__sign===i[a++]){var o=i[a++];t.moveTo(o,i[a++]),t.lineTo(o,i[a++])}else a+=3},e}(Qe);function OO(r,e,t,n){var i=r.getData(),a=i.getLayout("largePoints"),o=new bT({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new bT({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new bT({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});e.add(l),xT(1,o,r),xT(-1,s,r),xT(0,l,r),n&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function xT(r,e,t,n){var i=yT(r,t)||mT(r,t),a=t.getModel("itemStyle").getItemStyle(Whe);e.useStyle(a),e.style.fill=null,e.style.stroke=i}var RO=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,n,i){var a=n.getItemLayout(t);return a&&i.rect(a.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Rt);lr(RO,EO,!0);function jhe(r){!r||!re(r.series)||N(r.series,function(e){Le(e)&&e.type==="k"&&(e.type="candlestick")})}var Khe={seriesType:"candlestick",plan:Vc(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),n=Jhe(r,t),i=0,a=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[i])),l=ne(t.mapDimensionsAll(o[a]),t.getDimensionIndex,t),u=l[0],c=l[1],f=l[2],h=l[3];if(t.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:v};function v(g,p){for(var m,y=p.getStore();(m=g.next())!=null;){var _=y.get(s,m),w=y.get(u,m),b=y.get(c,m),x=y.get(f,m),S=y.get(h,m),T=Math.min(w,b),C=Math.max(w,b),A=V(T,_),M=V(C,_),k=V(x,_),L=V(S,_),P=[];z(P,M,0),z(P,A,1),P.push(B(L),B(M),B(k),B(A));var E=p.getItemModel(m),O=!!E.get(["itemStyle","borderColorDoji"]);p.setItemLayout(m,{sign:VO(y,m,w,b,c,O),initBaseline:w>b?M[a]:A[a],ends:P,brushRect:H(x,S,_)})}function V(F,ee){var ae=[];return ae[i]=ee,ae[a]=F,isNaN(ee)||isNaN(F)?[NaN,NaN]:e.dataToPoint(ae)}function z(F,ee,ae){var le=ee.slice(),U=ee.slice();le[i]=m0(le[i]+n/2,1,!1),U[i]=m0(U[i]-n/2,1,!0),ae?F.push(le,U):F.push(U,le)}function H(F,ee,ae){var le=V(F,ae),U=V(ee,ae);return le[i]-=n/2,U[i]-=n/2,{x:le[0],y:le[1],width:n,height:U[1]-le[1]}}function B(F){return F[i]=m0(F[i],1),F}}function d(g,p){for(var m=wa(g.count*4),y=0,_,w=[],b=[],x,S=p.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=g.next())!=null;){var C=S.get(s,x),A=S.get(u,x),M=S.get(c,x),k=S.get(f,x),L=S.get(h,x);if(isNaN(C)||isNaN(k)||isNaN(L)){m[y++]=NaN,y+=3;continue}m[y++]=VO(S,x,A,M,c,T),w[i]=C,w[a]=k,_=e.dataToPoint(w,null,b),m[y++]=_?_[0]:NaN,m[y++]=_?_[1]:NaN,w[a]=L,_=e.dataToPoint(w,null,b),m[y++]=_?_[1]:NaN}p.setLayout("largePoints",m)}}};function VO(r,e,t,n,i,a){var o;return t>n?o=-1:t<n?o=1:o=a?0:e>0?r.get(i,e-1)<=n?1:-1:1,o}function Jhe(r,e){var t=r.getBaseAxis(),n,i=t.type==="category"?t.getBandWidth():(n=t.getExtent(),Math.abs(n[1]-n[0])/e.count()),a=de(Ve(r.get("barMaxWidth"),i),i),o=de(Ve(r.get("barMinWidth"),1),i),s=r.get("barWidth");return s!=null?de(s,i):Math.max(Math.min(i/2,a),o)}function Qhe(r){r.registerChartView(Zhe),r.registerSeriesModel(RO),r.registerPreprocessor(jhe),r.registerVisual(Ghe),r.registerLayout(Khe)}function zO(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(n){n.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var $he=function(r){Y(e,r);function e(t,n){var i=r.call(this)||this,a=new Cv(t,n),o=new Re;return i.add(a),i.add(o),i.updateData(t,n),i}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var n=t.symbolType,i=t.color,a=t.rippleNumber,o=this.childAt(1),s=0;s<a;s++){var l=vr(n,-1,-1,2,2,i);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/a*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}zO(o,t)},e.prototype.updateEffectAnimation=function(t){for(var n=this._effectCfg,i=this.childAt(1),a=["symbolType","period","rippleScale","rippleNumber"],o=0;o<a.length;o++){var s=a[o];if(n[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}zO(i,t)},e.prototype.highlight=function(){$a(this)},e.prototype.downplay=function(){eo(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,n){var i=this,a=t.hostModel;this.childAt(0).updateData(t,n);var o=this.childAt(1),s=t.getItemModel(n),l=t.getItemVisual(n,"symbol"),u=Fc(t.getItemVisual(n,"symbolSize")),c=t.getItemVisual(n,"style"),f=c&&c.fill,h=s.getModel("emphasis");o.setScale(u),o.traverse(function(p){p.setStyle("fill",f)});var v=Vl(t.getItemVisual(n,"symbolOffset"),u);v&&(o.x=v[0],o.y=v[1]);var d=t.getItemVisual(n,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var g={};g.showEffectOn=a.get("showEffectOn"),g.rippleScale=s.get(["rippleEffect","scale"]),g.brushType=s.get(["rippleEffect","brushType"]),g.period=s.get(["rippleEffect","period"])*1e3,g.effectOffset=n/t.count(),g.z=a.getShallow("z")||0,g.zlevel=a.getShallow("zlevel")||0,g.symbolType=l,g.color=f,g.rippleEffectColor=s.get(["rippleEffect","color"]),g.rippleNumber=s.get(["rippleEffect","number"]),g.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(g):this.startEffectAnimation(g),this._effectCfg=g):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(p){p==="emphasis"?g.showEffectOn!=="render"&&i.startEffectAnimation(g):p==="normal"&&g.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=g,qt(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(Re),eve=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new Dv($he)},e.prototype.render=function(t,n,i){var a=t.getData(),o=this._symbolDraw;o.updateData(a,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var n=t.coordinateSystem,i=n&&n.getArea&&n.getArea();return t.get("clip",!0)?i:null},e.prototype.updateTransform=function(t,n,i){var a=t.getData();this.group.dirty();var o=Iv("").reset(t,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var n=t.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=gQ(n.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(Dt),tve=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,n){return ao(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,n,i){return i.point(n.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Rt);function rve(r){r.registerChartView(eve),r.registerSeriesModel(tve),r.registerLayout(Iv("effectScatter"))}var BO=function(r){Y(e,r);function e(t,n,i){var a=r.call(this)||this;return a.add(a.createLine(t,n,i)),a._updateEffectSymbol(t,n),a}return e.prototype.createLine=function(t,n,i){return new US(t,n,i)},e.prototype._updateEffectSymbol=function(t,n){var i=t.getItemModel(n),a=i.getModel("effect"),o=a.get("symbolSize"),s=a.get("symbol");re(o)||(o=[o,o]);var l=t.getItemVisual(n,"style"),u=a.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=vr(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(a.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,a,n))},e.prototype._updateEffectAnimation=function(t,n,i){var a=this.childAt(1);if(a){var o=t.getItemLayout(i),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),c=n.get("constantSpeed"),f=ur(n.get("delay"),function(v){return v/t.count()*s/3});if(a.ignore=!0,this._updateAnimationPoints(a,o),c>0&&(s=this._getLineLength(a)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var h=void 0;Me(f)?h=f(i):h=f,a.__t>0&&(h=-s*a.__t),this._animateSymbol(a,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,n,i,a,o){if(n>0){t.__t=0;var s=this,l=t.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(t)});a||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Wo(t.__p1,t.__cp1)+Wo(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,n){t.__p1=n[0],t.__p2=n[1],t.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},e.prototype.updateData=function(t,n,i){this.childAt(0).updateData(t,n,i),this._updateEffectSymbol(t,n)},e.prototype._updateSymbolPosition=function(t){var n=t.__p1,i=t.__p2,a=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Ir,c=G2;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var f=t.__t<1?c(n[0],a[0],i[0],o):c(i[0],a[0],n[0],1-o),h=t.__t<1?c(n[1],a[1],i[1],o):c(i[1],a[1],n[1],1-o);t.rotation=-Math.atan2(h,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=Wo(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.__lastT===1?t.scaleY=2*Wo(n,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,n){this.childAt(0).updateLayout(t,n);var i=t.getItemModel(n).getModel("effect");this._updateEffectAnimation(t,i,n)},e}(Re),FO=function(r){Y(e,r);function e(t,n,i){var a=r.call(this)||this;return a._createPolyline(t,n,i),a}return e.prototype._createPolyline=function(t,n,i){var a=t.getItemLayout(n),o=new cn({shape:{points:a}});this.add(o),this._updateCommonStl(t,n,i)},e.prototype.updateData=function(t,n,i){var a=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(n)}};ht(o,s,a,n),this._updateCommonStl(t,n,i)},e.prototype._updateCommonStl=function(t,n,i){var a=this.childAt(0),o=t.getItemModel(n),s=i&&i.emphasisLineStyle,l=i&&i.focus,u=i&&i.blurScope,c=i&&i.emphasisDisabled;if(!i||t.hasItemOption){var f=o.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}a.useStyle(t.getItemVisual(n,"style")),a.style.fill=null,a.style.strokeNoScale=!0;var h=a.ensureState("emphasis");h.style=s,qt(this,l,u,c)},e.prototype.updateLayout=function(t,n){var i=this.childAt(0);i.setShape("points",t.getItemLayout(n))},e}(Re),nve=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,n,i){return new FO(t,n,i)},e.prototype._updateAnimationPoints=function(t,n){this._points=n;for(var i=[0],a=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];a+=Wo(s,l),i.push(a)}if(a===0){this._length=0;return}for(var o=0;o<i.length;o++)i[o]/=a;this._offsets=i,this._length=a},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var n=t.__t<1?t.__t:2-t.__t,i=this._points,a=this._offsets,o=i.length;if(a){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(a[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(a[l]>n);l++);l=Math.min(l-1,o-2)}var c=(n-a[l])/(a[l+1]-a[l]),f=i[l],h=i[l+1];t.x=f[0]*(1-c)+c*h[0],t.y=f[1]*(1-c)+c*h[1];var v=t.__t<1?h[0]-f[0]:f[0]-h[0],d=t.__t<1?h[1]-f[1]:f[1]-h[1];t.rotation=-Math.atan2(d,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,t.ignore=!1}},e}(BO),ive=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),ave=function(r){Y(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ive},e.prototype.buildPath=function(t,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o<i.length;){var s=i[o++];if(s>0){t.moveTo(i[o++],i[o++]);for(var l=1;l<s;l++)t.lineTo(i[o++],i[o++])}}else for(o=this._off;o<i.length;){var u=i[o++],c=i[o++],f=i[o++],h=i[o++];if(t.moveTo(u,c),a>0){var v=(u+f)/2-(c-h)*a,d=(c+h)/2-(f-u)*a;t.quadraticCurveTo(v,d,f,h)}else t.lineTo(f,h)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,n){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u<a.length;){var c=a[u++];if(c>0)for(var f=a[u++],h=a[u++],v=1;v<c;v++){var d=a[u++],g=a[u++];if($o(f,h,d,g,s,t,n))return l}l++}else for(var l=0,u=0;u<a.length;){var f=a[u++],h=a[u++],d=a[u++],g=a[u++];if(o>0){var p=(f+d)/2-(h-g)*o,m=(h+g)/2-(d-f)*o;if(hE(f,h,p,m,d,g,s,t,n))return l}else if($o(f,h,d,g,s,t,n))return l;l++}return-1},e.prototype.contain=function(t,n){var i=this.transformCoordToLocal(t,n),a=this.getBoundingRect();if(t=i[0],n=i[1],a.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,i=n.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<i.length;){var c=i[u++],f=i[u++];a=Math.min(c,a),s=Math.max(c,s),o=Math.min(f,o),l=Math.max(f,l)}t=this._rect=new Ue(a,o,s,l)}return t},e}(Qe),ove=function(){function r(){this.group=new Re}return r.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],i=t.getLayout("linesPoints"),a=n&&n.shape.segs;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+i.length);s.set(a),s.set(i,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:i}),this._setCommon(l,t),l.__startIndex=e.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new ave({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,n){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var a=t.getVisual("style");a&&a.stroke&&e.setStyle("stroke",a.stroke),e.setStyle("fill",null);var o=ze(e);o.seriesIndex=i.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),HO={seriesType:"lines",plan:Vc(),reset:function(r){var e=r.coordinateSystem;if(!e){process.env.NODE_ENV!=="production"&&Or("The lines series must have a coordinate system.");return}var t=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(t){for(var u=0,c=i.start;c<i.end;c++)u+=r.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,h=[],c=i.start;c<i.end;c++){var v=r.getLineCoords(c,o);t&&(s[f++]=v);for(var d=0;d<v;d++)h=e.dataToPoint(o[d],!1,h),s[f++]=h[0],s[f++]=h[1]}a.setLayout("linesPoints",s)}else for(var c=i.start;c<i.end;c++){var g=a.getItemModel(c),v=r.getLineCoords(c,o),p=[];if(t)for(var m=0;m<v;m++)p.push(e.dataToPoint(o[m]));else{p[0]=e.dataToPoint(o[0]),p[1]=e.dataToPoint(o[1]);var y=g.get(["lineStyle","curveness"]);+y&&(p[2]=[(p[0][0]+p[1][0])/2-(p[0][1]-p[1][1])*y,(p[0][1]+p[1][1])/2-(p[1][0]-p[0][0])*y])}a.setItemLayout(c,p)}}}}},sve=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){var a=t.getData(),o=this._updateLineDraw(a,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=i.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&(c?process.env.NODE_ENV!=="production"&&console.warn("SVG render mode doesn't support lines with trail effect"):u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var f=t.get("clip",!0)&&Mv(t.coordinateSystem,!1,t);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,i){var a=t.getData(),o=this._updateLineDraw(a,t);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},e.prototype.incrementalRender=function(t,n,i){this._lineDraw.incrementalUpdate(t,n.getData()),this._finished=t.end===n.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,n,i){var a=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=HO.reset(t,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},e.prototype._updateLineDraw=function(t,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return process.env.NODE_ENV!=="production"&&a&&l&&console.warn("Large lines not support effect"),(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new ove:new YS(o?a?nve:FO:a?BO:US),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var n=t.getZr(),i=n.painter.getType()==="svg";!i&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.type="lines",e}(Dt),lve=typeof Uint32Array>"u"?Array:Uint32Array,uve=typeof Float64Array>"u"?Array:Float64Array;function GO(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(process.env.NODE_ENV!=="production"&&console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),r.data=ne(e,function(t){var n=[t[0].coord,t[1].coord],i={coords:n};return t[0].name&&(i.fromName=t[0].name),t[1].name&&(i.toName=t[1].name),x2([i,t[0],t[1]])}))}var cve=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],GO(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(GO(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var n=this._processFlatCoordsArray(t.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=fh(this._flatCoords,n.flatCoords),this._flatCoordsOffset=fh(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),t.data=new Float32Array(n.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var n=this.getData().getItemModel(t),i=n.option instanceof Array?n.option:n.getShallow("coords");if(process.env.NODE_ENV!=="production"&&!(i instanceof Array&&i.length>0&&i[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(i)+". Lines must have 2d coords array in data item.");return i},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[t*2],a=this._flatCoordsOffset[t*2+1],o=0;o<a;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[i+o*2],n[o][1]=this._flatCoords[i+o*2+1];return a}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),ct(t[0])){for(var i=t.length,a=new lve(i),o=new uve(i),s=0,l=0,u=0,c=0;c<i;){u++;var f=t[c++];a[l++]=s+n,a[l++]=f;for(var h=0;h<f;h++){var v=t[c++],d=t[c++];if(o[s++]=v,o[s++]=d,c>i&&process.env.NODE_ENV!=="production")throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(a.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,n){if(process.env.NODE_ENV!=="production"){var i=Pc.get(t.coordinateSystem);if(!i)throw new Error("Unknown coordinate system "+t.coordinateSystem)}var a=new fn(["value"],this);return a.hasItemOption=!1,a.initData(t.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;a.hasItemOption=!0;var c=o.value;if(c!=null)return c instanceof Array?c[u]:c}),a},e.prototype.formatTooltip=function(t,n,i){var a=this.getData(),o=a.getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Sr("nameValue",{name:c.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),n=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&n>0?n+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Rt);function Wm(r){return r instanceof Array||(r=[r,r]),r}var fve={seriesType:"lines",reset:function(r){var e=Wm(r.get("symbol")),t=Wm(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",e&&e[0]),n.setVisual("toSymbol",e&&e[1]),n.setVisual("fromSymbolSize",t&&t[0]),n.setVisual("toSymbolSize",t&&t[1]);function i(a,o){var s=a.getItemModel(o),l=Wm(s.getShallow("symbol",!0)),u=Wm(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?i:null}}};function hve(r){r.registerChartView(sve),r.registerSeriesModel(cve),r.registerLayout(HO),r.registerVisual(fve)}var vve=256,dve=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Go.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,h=f.getContext("2d"),v=e.length;f.width=t,f.height=n;for(var d=0;d<v;++d){var g=e[d],p=g[0],m=g[1],y=g[2],_=i(y);h.globalAlpha=_,h.drawImage(s,p-c,m-c)}if(!f.width||!f.height)return f;for(var w=h.getImageData(0,0,f.width,f.height),b=w.data,x=0,S=b.length,T=this.minOpacity,C=this.maxOpacity,A=C-T;x<S;){var _=b[x+3]/256,M=Math.floor(_*(vve-1))*4;if(_>0){var k=o(_)?l:u;_>0&&(_=_*A+T),b[x++]=k[M],b[x++]=k[M+1],b[x++]=k[M+2],b[x++]=k[M+3]*_*256}else x+=4}return h.putImageData(w,0,0),f},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Go.createCanvas()),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),e},r.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,i=n[t]||(n[t]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},r}();function pve(r,e,t){var n=r[1]-r[0];e=ne(e,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var i=e.length,a=0;return function(o){var s;for(s=a;s<i;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}if(s===i)for(s=a-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s<i&&t[s]}}function gve(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(n){return n>=e[0]&&n<=e[1]}}function WO(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var mve=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){var a;if(n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(a=s)})}),process.env.NODE_ENV!=="production"&&!a)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):WO(o)&&this._renderOnGeo(o,t,a,i)},e.prototype.incrementalPrepareRender=function(t,n,i){this.group.removeAll()},e.prototype.incrementalRender=function(t,n,i,a){var o=n.coordinateSystem;o&&(WO(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){ns(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,n,i,a,o){var s=t.coordinateSystem,l=jl(s,"cartesian2d"),u,c,f,h;if(l){var v=s.getAxis("x"),d=s.getAxis("y");if(process.env.NODE_ENV!=="production"){if(!(v.type==="category"&&d.type==="category"))throw new Error("Heatmap on cartesian must have two category axes");if(!(v.onBand&&d.onBand))throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}u=v.getBandWidth()+.5,c=d.getBandWidth()+.5,f=v.scale.getExtent(),h=d.scale.getExtent()}for(var g=this.group,p=t.getData(),m=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),w=t.get(["itemStyle","borderRadius"]),b=xr(t),x=t.getModel("emphasis"),S=x.get("focus"),T=x.get("blurScope"),C=x.get("disabled"),A=l?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],M=i;M<a;M++){var k=void 0,L=p.getItemVisual(M,"style");if(l){var P=p.get(A[0],M),E=p.get(A[1],M);if(isNaN(p.get(A[2],M))||isNaN(P)||isNaN(E)||P<f[0]||P>f[1]||E<h[0]||E>h[1])continue;var O=s.dataToPoint([P,E]);k=new st({shape:{x:O[0]-u/2,y:O[1]-c/2,width:u,height:c},style:L})}else{if(isNaN(p.get(A[1],M)))continue;k=new st({z2:1,shape:s.dataToRect([p.get(A[0],M)]).contentShape,style:L})}if(p.hasItemOption){var V=p.getItemModel(M),z=V.getModel("emphasis");m=z.getModel("itemStyle").getItemStyle(),y=V.getModel(["blur","itemStyle"]).getItemStyle(),_=V.getModel(["select","itemStyle"]).getItemStyle(),w=V.get(["itemStyle","borderRadius"]),S=z.get("focus"),T=z.get("blurScope"),C=z.get("disabled"),b=xr(V)}k.shape.r=w;var H=t.getRawValue(M),B="-";H&&H[2]!=null&&(B=H[2]+""),Vr(k,b,{labelFetcher:t,labelDataIndex:M,defaultOpacity:L.opacity,defaultText:B}),k.ensureState("emphasis").style=m,k.ensureState("blur").style=y,k.ensureState("select").style=_,qt(k,S,T,C),k.incremental=o,o&&(k.states.emphasis.hoverLayer=!0),g.add(k),p.setItemGraphicEl(M,k),this._progressiveEls&&this._progressiveEls.push(k)}},e.prototype._renderOnGeo=function(t,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new dve;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=t.getViewRect().clone(),f=t.getRoamTransform();c.applyTransform(f);var h=Math.max(c.x,0),v=Math.max(c.y,0),d=Math.min(c.width+c.x,a.getWidth()),g=Math.min(c.height+c.y,a.getHeight()),p=d-h,m=g-v,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(y,function(S,T,C){var A=t.dataToPoint([S,T]);return A[0]-=h,A[1]-=v,A.push(C),A}),w=i.getExtent(),b=i.type==="visualMap.continuous"?gve(w,i.option.range):pve(w,i.getPieceList(),i.option.selected);u.update(_,p,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new Er({style:{width:p,height:m,x:h,y:v,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(Dt),yve=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return ao(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Pc.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Rt);function _ve(r){r.registerChartView(mve),r.registerSeriesModel(yve)}var wve=["itemStyle","borderWidth"],ZO=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],ST=new to,bve=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){var a=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),h={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:ZO[+c],categoryDim:ZO[1-+c]};o.diff(s).add(function(d){if(o.hasValue(d)){var g=JO(o,d),p=UO(o,d,g,h),m=QO(o,h,p);o.setItemGraphicEl(d,m),a.add(m),tR(m,h,p)}}).update(function(d,g){var p=s.getItemGraphicEl(g);if(!o.hasValue(d)){a.remove(p);return}var m=JO(o,d),y=UO(o,d,m,h),_=eR(o,y);p&&_!==p.__pictorialShapeStr&&(a.remove(p),o.setItemGraphicEl(d,null),p=null),p?Mve(p,h,y):p=QO(o,h,y,!0),o.setItemGraphicEl(d,p),p.__pictorialSymbolMeta=y,a.add(p),tR(p,h,y)}).remove(function(d){var g=s.getItemGraphicEl(d);g&&$O(s,d,g.__pictorialSymbolMeta.animationModel,g)}).execute();var v=t.get("clip",!0)?Mv(t.coordinateSystem,!1,t):null;return v?a.setClipPath(v):a.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,n){var i=this.group,a=this._data;t.get("animation")?a&&a.eachItemGraphicEl(function(o){$O(a,ze(o).dataIndex,t,o)}):i.removeAll()},e.type="pictorialBar",e}(Dt);function UO(r,e,t,n){var i=r.getItemLayout(e),a=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,f=t.isAnimationEnabled(),h={dataIndex:e,layout:i,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?t:null,hoverScale:f&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};xve(t,a,i,n,h),Sve(r,e,i,a,o,h.boundingLength,h.pxSign,c,n,h),Tve(t,h.symbolScale,u,n,h);var v=h.symbolSize,d=Vl(t.get("symbolOffset"),v);return Ave(t,v,i,a,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function xve(r,e,t,n,i){var a=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[a.wh]<=0),c;if(re(o)){var f=[TT(s,o[0])-l,TT(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=TT(s,o)-l:e?c=n.coordSysExtent[a.index][u]-l:c=t[a.wh];i.boundingLength=c,e&&(i.repeatCutLength=t[a.wh]);var h=a.xy==="x",v=s.inverse;i.pxSign=h&&!v||!h&&v?c>=0?1:-1:c>0?1:-1}function TT(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function Sve(r,e,t,n,i,a,o,s,l,u){var c=l.valueDim,f=l.categoryDim,h=Math.abs(t[f.wh]),v=r.getItemVisual(e,"symbolSize"),d;re(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[f.index]=de(d[f.index],h),d[c.index]=de(d[c.index],n?h:Math.abs(a)),u.symbolSize=d;var g=u.symbolScale=[d[0]/s,d[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Tve(r,e,t,n,i){var a=r.get(wve)||0;a&&(ST.attr({scaleX:e[0],scaleY:e[1],rotation:t}),ST.updateTransform(),a/=ST.getLineScale(),a*=e[n.valueDim.index]),i.valueLineWidth=a||0}function Ave(r,e,t,n,i,a,o,s,l,u,c,f){var h=c.categoryDim,v=c.valueDim,d=f.pxSign,g=Math.max(e[v.index]+s,0),p=g;if(n){var m=Math.abs(l),y=ur(r.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var w=de(y,e[v.index]),b=Math.max(g+w*2,0),x=_?0:w*2,S=xw(n),T=S?n:rR((m+x)/b),C=m-T*g;w=C/2/(_?T:Math.max(T-1,1)),b=g+w*2,x=_?0:w*2,!S&&n!=="fixed"&&(T=u?rR((Math.abs(u)+x)/b):0),p=T*b-x,f.repeatTimes=T,f.symbolMargin=w}var A=d*(p/2),M=f.pathPosition=[];M[h.index]=t[h.wh]/2,M[v.index]=o==="start"?A:o==="end"?l-A:l/2,a&&(M[0]+=a[0],M[1]+=a[1]);var k=f.bundlePosition=[];k[h.index]=t[h.xy],k[v.index]=t[v.xy];var L=f.barRectShape=$({},t);L[v.wh]=d*Math.max(Math.abs(t[v.wh]),Math.abs(M[v.index]+A)),L[h.wh]=t[h.wh];var P=f.clipShape={};P[h.xy]=-t[h.xy],P[h.wh]=c.ecSize[h.wh],P[v.xy]=0,P[v.wh]=t[v.wh]}function YO(r){var e=r.symbolPatternSize,t=vr(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function XO(r,e,t,n){var i=r.__pictorialBundle,a=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,f=a[e.valueDim.index]+o+t.symbolMargin*2;for(AT(r,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c<u?af(g,null,d(c),t,n):af(g,null,{scaleX:0,scaleY:0},t,n,function(){i.remove(g)}),c++});c<u;c++){var h=YO(t);h.__pictorialAnimationIndex=c,h.__pictorialRepeatTimes=u,i.add(h);var v=d(c);af(h,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},t,n)}function d(g){var p=s.slice(),m=t.pxSign,y=g;return(t.symbolRepeatDirection==="start"?m>0:m<0)&&(y=u-1-g),p[l.index]=f*(y-u/2+.5)+s[l.index],{x:p[0],y:p[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function qO(r,e,t,n){var i=r.__pictorialBundle,a=r.__pictorialMainPath;a?af(a,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,n):(a=r.__pictorialMainPath=YO(t),i.add(a),af(a,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,n))}function jO(r,e,t){var n=$({},e.barRectShape),i=r.__pictorialBarRect;i?af(i,null,{shape:n},e,t):(i=r.__pictorialBarRect=new st({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,r.add(i))}function KO(r,e,t,n){if(t.symbolClip){var i=r.__pictorialClipPath,a=$({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(i)ht(i,{shape:a},s,l);else{a[o.wh]=0,i=new st({shape:a}),r.__pictorialBundle.setClipPath(i),r.__pictorialClipPath=i;var u={};u[o.wh]=t.clipShape[o.wh],Il[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function JO(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=Cve,t.isAnimationEnabled=Dve,t}function Cve(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function Dve(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function QO(r,e,t,n){var i=new Re,a=new Re;return i.add(a),i.__pictorialBundle=a,a.x=t.bundlePosition[0],a.y=t.bundlePosition[1],t.symbolRepeat?XO(i,e,t):qO(i,e,t),jO(i,t,n),KO(i,e,t,n),i.__pictorialShapeStr=eR(r,t),i.__pictorialSymbolMeta=t,i}function Mve(r,e,t){var n=t.animationModel,i=t.dataIndex,a=r.__pictorialBundle;ht(a,{x:t.bundlePosition[0],y:t.bundlePosition[1]},n,i),t.symbolRepeat?XO(r,e,t,!0):qO(r,e,t,!0),jO(r,t,!0),KO(r,e,t,!0)}function $O(r,e,t,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];AT(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(t=null),N(a,function(o){rs(o,{scaleX:0,scaleY:0},t,e,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(e,null)}function eR(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function AT(r,e,t){N(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&e.call(t,n)})}function af(r,e,t,n,i,a){e&&r.attr(e),n.symbolClip&&!i?t&&r.attr(t):t&&Il[i?"updateProps":"initProps"](r,t,n.animationModel,n.dataIndex,a)}function tR(r,e,t){var n=t.dataIndex,i=t.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),f=a.get("blurScope"),h=a.get("scale");AT(r,function(g){if(g instanceof Er){var p=g.style;g.useStyle($({image:p.image,x:p.x,y:p.y,width:p.width,height:p.height},t.style))}else g.useStyle(t.style);var m=g.ensureState("emphasis");m.style=o,h&&(m.scaleX=g.scaleX*1.1,m.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var v=e.valueDim.posDesc[+(t.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Vr(d,xr(i),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:jc(e.seriesModel.getData(),n),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:v}),qt(r,c,f,a.get("disabled"))}function rR(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var Ive=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=is(Ev.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Ev);function Eve(r){r.registerChartView(bve),r.registerSeriesModel(Ive),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,He(mk,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,yk("pictorialBar"))}var Lve=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,n,i){var a=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function h(p){return p.name}var v=new io(this._layersSeries||[],l,h,h),d=[];v.add(ye(g,this,"add")).update(ye(g,this,"update")).remove(ye(g,this,"remove")).execute();function g(p,m,y){var _=o._layers;if(p==="remove"){s.remove(_[m]);return}for(var w=[],b=[],x,S=l[m].indices,T=0;T<S.length;T++){var C=a.getItemLayout(S[T]),A=C.x,M=C.y0,k=C.y;w.push(A,M),b.push(A,M+k),x=a.getItemVisual(S[T],"style")}var L,P=a.getItemLayout(S[0]),E=t.getModel("label"),O=E.get("margin"),V=t.getModel("emphasis");if(p==="add"){var z=d[m]=new Re;L=new N5({shape:{points:w,stackedOnPoints:b,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),z.add(L),s.add(z),t.isAnimationEnabled()&&L.setClipPath(kve(L.getBoundingRect(),t,function(){L.removeClipPath()}))}else{var z=_[y];L=z.childAt(0),s.add(z),d[m]=z,ht(L,{shape:{points:w,stackedOnPoints:b}},t),Ni(L)}Vr(L,xr(t),{labelDataIndex:S[T-1],defaultText:a.getName(S[T-1]),inheritColor:x.fill},{normal:{verticalAlign:"middle"}}),L.setTextConfig({position:null,local:!0});var H=L.getTextContent();H&&(H.x=P.x-O,H.y=P.y0+P.y/2),L.useStyle(x),a.setItemGraphicEl(m,L),Rr(L,t),qt(L,V.get("focus"),V.get("blurScope"),V.get("disabled"))}this._layersSeries=l,this._layers=d},e.type="themeRiver",e}(Dt);function kve(r,e,t){var n=new st({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ft(n,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),n}var CT=2,Pve=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new kv(ye(this.getData,this),ye(this.getRawData,this))},e.prototype.fixData=function(t){var n=t.length,i={},a=Aw(t,function(h){return i.hasOwnProperty(h[0]+"")||(i[h[0]+""]=-1),h[2]}),o=[];a.buckets.each(function(h,v){o.push({name:v,dataList:h})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var f=o[l].dataList[c][0]+"";i[f]=l}for(var f in i)i.hasOwnProperty(f)&&i[f]!==l&&(i[f]=l,t[n]=[f,0,u],n++)}return t},e.prototype.getInitialData=function(t,n){for(var i=this.getReferringComponents("singleAxis",fr).models[0],a=i.get("type"),o=pt(t.data,function(d){return d[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=Se(),c=0,f=0;f<s.length;++f)l.push(s[f][CT]),u.get(s[f][CT])||(u.set(s[f][CT],c),c++);var h=yv(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:$0(a)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,v=new fn(h,this);return v.initData(s),v},e.prototype.getLayerSeries=function(){for(var t=this.getData(),n=t.count(),i=[],a=0;a<n;++a)i[a]=a;var o=t.mapDimension("single"),s=Aw(i,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,h){return t.get(o,f)-t.get(o,h)}),l.push({name:c,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,n,i){re(t)||(t=t?[t]:[]);for(var a=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,h=-1,v=o[c].indices.length,d=0;d<v;++d){var g=a.get(t[0],o[c].indices[d]),p=Math.abs(g-n);p<=f&&(u=g,f=p,h=o[c].indices[d])}s.push(h)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,n,i){var a=this.getData(),o=a.getName(t),s=a.get(a.mapDimension("value"),t);return Sr("nameValue",{name:o,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Rt);function Nve(r,e){r.eachSeriesByType("themeRiver",function(t){var n=t.getData(),i=t.coordinateSystem,a={},o=i.getRect();a.rect=o;var s=t.get("boundaryGap"),l=i.getAxis();if(a.boundaryGap=s,l.orient==="horizontal"){s[0]=de(s[0],o.height),s[1]=de(s[1],o.height);var u=o.height-s[0]-s[1];nR(n,t,u)}else{s[0]=de(s[0],o.width),s[1]=de(s[1],o.width);var c=o.width-s[0]-s[1];nR(n,t,c)}n.setLayout("layoutInfo",a)})}function nR(r,e,t){if(r.count())for(var n=e.coordinateSystem,i=e.getLayerSeries(),a=r.mapDimension("single"),o=r.mapDimension("value"),s=ne(i,function(p){return ne(p.indices,function(m){var y=n.dataToPoint(r.get(a,m));return y[1]=r.get(o,m),y})}),l=Ove(s),u=l.y0,c=t/l.max,f=i.length,h=i[0].indices.length,v,d=0;d<h;++d){v=u[d]*c,r.setItemLayout(i[0].indices[d],{layerIndex:0,x:s[0][d][0],y0:v,y:s[0][d][1]*c});for(var g=1;g<f;++g)v+=s[g-1][d][1]*c,r.setItemLayout(i[g].indices[d],{layerIndex:g,x:s[g][d][0],y0:v,y:s[g][d][1]*c})}}function Ove(r){for(var e=r.length,t=r[0].length,n=[],i=[],a=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=r[l][o][1];s>a&&(a=s),n.push(s)}for(var u=0;u<t;++u)i[u]=(a-n[u])/2;a=0;for(var c=0;c<t;++c){var f=n[c]+i[c];f>a&&(a=f)}return{y0:i,max:a}}function Rve(r){r.registerChartView(Lve),r.registerSeriesModel(Pve),r.registerLayout(Nve),r.registerProcessor(Lv("themeRiver"))}var Vve=2,zve=4,iR=function(r){Y(e,r);function e(t,n,i,a){var o=r.call(this)||this;o.z2=Vve,o.textConfig={inside:!0},ze(o).seriesIndex=n.seriesIndex;var s=new ut({z2:zve,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,n,i,a),o}return e.prototype.updateData=function(t,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;ze(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=$({},c);f.label=null;var h=n.getVisual("style");h.lineJoin="bevel";var v=n.getVisual("decal");v&&(h.decal=Gc(v,o));var d=Kl(l.getModel("itemStyle"),f,!0);$(f,d),N(sn,function(y){var _=s.ensureState(y),w=l.getModel([y,"itemStyle"]);_.style=w.getItemStyle();var b=Kl(w,f);b&&(_.shape=b)}),t?(s.setShape(f),s.shape.r=c.r0,Ft(s,{shape:{r:c.r}},i,n.dataIndex)):(ht(s,{shape:f},i),Ni(s)),s.useStyle(h),this._updateLabel(i);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var p=u.get("focus"),m=p==="relative"?fh(n.getAncestorsIndices(),n.getDescendantIndices()):p==="ancestor"?n.getAncestorsIndices():p==="descendant"?n.getDescendantIndices():p;qt(this,m,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var n=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,h=f.getTextContent(),v=this.node.dataIndex,d=a.get("minAngle")/180*Math.PI,g=a.get("show")&&!(d!=null&&Math.abs(s)<d);h.ignore=!g,N(Rh,function(m){var y=m==="normal"?i.getModel("label"):i.getModel([m,"label"]),_=m==="normal",w=_?h:h.ensureState(m),b=t.getFormattedLabel(v,m);_&&(b=b||n.node.name),w.style=Ot(y,{},null,m!=="normal",!0),b&&(w.style.text=b);var x=y.get("show");x!=null&&!_&&(w.ignore=!x);var S=p(y,"position"),T=_?f:f.states[m],C=T.style.fill;T.textConfig={outsideFill:y.get("color")==="inherit"?C:null,inside:S!=="outside"};var A,M=p(y,"distance")||0,k=p(y,"align"),L=p(y,"rotate"),P=Math.PI*.5,E=Math.PI*1.5,O=Pn(L==="tangential"?Math.PI/2-l:l),V=O>P&&!Ih(O-P)&&O<E;S==="outside"?(A=o.r+M,k=V?"right":"left"):!k||k==="center"?(s===2*Math.PI&&o.r0===0?A=0:A=(o.r+o.r0)/2,k="center"):k==="left"?(A=o.r0+M,k=V?"right":"left"):k==="right"&&(A=o.r-M,k=V?"left":"right"),w.style.align=k,w.style.verticalAlign=p(y,"verticalAlign")||"middle",w.x=A*u+o.cx,w.y=A*c+o.cy;var z=0;L==="radial"?z=Pn(-l)+(V?Math.PI:0):L==="tangential"?z=Pn(Math.PI/2-l)+(V?Math.PI:0):ct(L)&&(z=L*Math.PI/180),w.rotation=Pn(z)});function p(m,y){var _=m.get(y);return _??a.get(y)}h.dirtyStyle()},e}(ln),DT="sunburstRootToNode",aR="sunburstHighlight",Bve="sunburstUnhighlight";function Fve(r){r.registerAction({type:DT,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(i,a){var o=Bv(e,[DT],i);if(o){var s=i.getViewRoot();s&&(e.direction=CS(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),r.registerAction({type:aR,update:"none"},function(e,t,n){e=$({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(a){var o=Bv(e,[aR],a);o&&(e.dataIndex=o.node.dataIndex)}process.env.NODE_ENV!=="production"&&cr("sunburstHighlight","highlight"),n.dispatchAction($(e,{type:"highlight"}))}),r.registerAction({type:Bve,update:"updateView"},function(e,t,n){e=$({},e),process.env.NODE_ENV!=="production"&&cr("sunburstUnhighlight","downplay"),n.dispatchAction($(e,{type:"downplay"}))})}var Hve=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i,a){var o=this;this.seriesModel=t,this.api=i,this.ecModel=n;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,f=t.get("renderLabelForZeroData"),h=[];u.eachNode(function(y){h.push(y)});var v=this._oldChildren||[];d(h,v),m(l,u),this._initEvents(),this._oldChildren=h;function d(y,_){if(y.length===0&&_.length===0)return;new io(_,y,w,w).add(b).update(b).remove(He(b,null)).execute();function w(x){return x.getId()}function b(x,S){var T=x==null?null:y[x],C=S==null?null:_[S];g(T,C)}}function g(y,_){if(!f&&y&&!y.getValue()&&(y=null),y!==l&&_!==l){if(_&&_.piece)y?(_.piece.updateData(!1,y,t,n,i),s.setItemGraphicEl(y.dataIndex,_.piece)):p(_);else if(y){var w=new iR(y,t,n,i);c.add(w),s.setItemGraphicEl(y.dataIndex,w)}}}function p(y){y&&y.piece&&(c.remove(y.piece),y.piece=null)}function m(y,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,t,n,i):(o.virtualPiece=new iR(y,t,n,i),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(w){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(n){var i=!1,a=t.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";I0(u,c)}}i=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:DT,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=t[0]-a.cx,s=t[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type="sunburst",e}(Dt),Gve=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,n){var i={name:t.name,children:t.data};oR(i);var a=this._levelModels=ne(t.levels||[],function(l){return new bt(l,this,n)},this),o=AS.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),h=a[f.depth];return h&&(u.parentModel=h),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=Lm(i,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){mN(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Rt);function oR(r){var e=0;N(r.children,function(n){oR(n);var i=n.value;re(i)&&(i=i[0]),e+=i});var t=r.value;re(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),re(r.value)?r.value[0]=t:r.value=t}var sR=Math.PI/180;function Wve(r,e,t){e.eachSeriesByType(r,function(n){var i=n.get("center"),a=n.get("radius");re(a)||(a=[0,a]),re(i)||(i=[i,i]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=de(i[0],o),c=de(i[1],s),f=de(a[0],l/2),h=de(a[1],l/2),v=-n.get("startAngle")*sR,d=n.get("minAngle")*sR,g=n.getData().tree.root,p=n.getViewRoot(),m=p.depth,y=n.get("sort");y!=null&&lR(p,y);var _=0;N(p.children,function(O){!isNaN(O.getValue())&&_++});var w=p.getValue(),b=Math.PI/(w||_)*2,x=p.depth>0,S=p.height-(x?-1:1),T=(h-f)/(S||1),C=n.get("clockwise"),A=n.get("stillShowZeroSum"),M=C?1:-1,k=function(O,V){if(O){var z=V;if(O!==g){var H=O.getValue(),B=w===0&&A?b:H*b;B<d&&(B=d),z=V+M*B;var F=O.depth-m-(x?-1:1),ee=f+T*F,ae=f+T*(F+1),le=n.getLevelModel(O);if(le){var U=le.get("r0",!0),j=le.get("r",!0),Xe=le.get("radius",!0);Xe!=null&&(U=Xe[0],j=Xe[1]),U!=null&&(ee=de(U,l/2)),j!=null&&(ae=de(j,l/2))}O.setLayout({angle:B,startAngle:V,endAngle:z,clockwise:C,cx:u,cy:c,r0:ee,r:ae})}if(O.children&&O.children.length){var Te=0;N(O.children,function(xe){Te+=k(xe,V+Te)})}return z-V}};if(x){var L=f,P=f+T,E=Math.PI*2;g.setLayout({angle:E,startAngle:v,endAngle:v+E,clockwise:C,cx:u,cy:c,r0:L,r:P})}k(p,v)})}function lR(r,e){var t=r.children||[];r.children=Zve(t,e),t.length&&N(r.children,function(n){lR(n,e)})}function Zve(r,e){if(Me(e)){var t=ne(r,function(i,a){var o=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return o}},index:a}});return t.sort(function(i,a){return e(i.params,a.params)}),ne(t,function(i){return r[i.index]})}else{var n=e==="asc";return r.sort(function(i,a){var o=(i.getValue()-a.getValue())*(n?1:-1);return o===0?(i.dataIndex-a.dataIndex)*(n?-1:1):o})}}function Uve(r){var e={};function t(n,i,a){for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",e);return n.depth>1&&me(s)&&(s=q2(s,(n.depth-1)/(a-1)*.5)),s}r.eachSeriesByType("sunburst",function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");$(u,l)})})}function Yve(r){r.registerChartView(Hve),r.registerSeriesModel(Gve),r.registerLayout(He(Wve,"sunburst")),r.registerProcessor(He(Lv,"sunburst")),r.registerVisual(Uve),Fve(r)}var uR={color:"fill",borderColor:"stroke"},Xve={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},uo=ot(),qve=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,n){return ao(null,this)},e.prototype.getDataParams=function(t,n,i){var a=r.prototype.getDataParams.call(this,t,n);return i&&(a.info=uo(i).info),a},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Rt);function jve(r,e){return e=e||[0,0],ne(["x","y"],function(t,n){var i=this.getAxis(t),a=e[n],o=r[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function Kve(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:ye(jve,r)}}}function Jve(r,e){return e=e||[0,0],ne([0,1],function(t){var n=e[t],i=r[t]/2,a=[],o=[];return a[t]=n-i,o[t]=n+i,a[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(a)[t]-this.dataToPoint(o)[t])},this)}function Qve(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:ye(Jve,r)}}}function $ve(r,e){var t=this.getAxis(),n=e instanceof Array?e[0]:e,i=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(n-i)-t.dataToCoord(n+i))}function ede(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:ye($ve,r)}}}function tde(r,e){return e=e||[0,0],ne(["Radius","Angle"],function(t,n){var i="get"+t+"Axis",a=this[i](),o=e[n],s=r[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function rde(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=e.dataToRadius(i[0]),o=t.dataToAngle(i[1]),s=r.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:ye(tde,r)}}}function nde(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(n,i){return r.dataToPoint(n,i)}}}}var cR={};function fR(r,e,t,n){return r&&(r.legacy||r.legacy!==!1&&!t&&!n&&e!=="tspan"&&(e==="text"||we(r,"text")))}function hR(r,e,t){var n=r,i,a,o;if(e==="text")o=n;else{o={},we(n,"text")&&(o.text=n.text),we(n,"rich")&&(o.rich=n.rich),we(n,"textFill")&&(o.fill=n.textFill),we(n,"textStroke")&&(o.stroke=n.textStroke),we(n,"fontFamily")&&(o.fontFamily=n.fontFamily),we(n,"fontSize")&&(o.fontSize=n.fontSize),we(n,"fontStyle")&&(o.fontStyle=n.fontStyle),we(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=we(n,"textPosition");t?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),we(n,"textPosition")&&(i.position=n.textPosition),we(n,"textOffset")&&(i.offset=n.textOffset),we(n,"textRotation")&&(i.rotation=n.textRotation),we(n,"textDistance")&&(i.distance=n.textDistance)}return vR(o,r),N(o.rich,function(l){vR(l,l)}),{textConfig:i,textContent:a}}function vR(r,e){e&&(e.font=e.textFont||e.font,we(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),we(e,"textAlign")&&(r.align=e.textAlign),we(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),we(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),we(e,"textWidth")&&(r.width=e.textWidth),we(e,"textHeight")&&(r.height=e.textHeight),we(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),we(e,"textPadding")&&(r.padding=e.textPadding),we(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),we(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),we(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),we(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),we(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),we(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),we(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function dR(r,e,t){var n=r;n.textPosition=n.textPosition||t.position||"inside",t.offset!=null&&(n.textOffset=t.offset),t.rotation!=null&&(n.textRotation=t.rotation),t.distance!=null&&(n.textDistance=t.distance);var i=n.textPosition.indexOf("inside")>=0,a=r.fill||"#000";pR(n,e);var o=n.textFill==null;return i?o&&(n.textFill=t.insideFill||"#fff",!n.textStroke&&t.insideStroke&&(n.textStroke=t.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=r.fill||t.outsideFill||"#000"),!n.textStroke&&t.outsideStroke&&(n.textStroke=t.outsideStroke)),n.text=e.text,n.rich=e.rich,N(e.rich,function(s){pR(s,s)}),n}function pR(r,e){e&&(we(e,"fill")&&(r.textFill=e.fill),we(e,"stroke")&&(r.textStroke=e.fill),we(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),we(e,"font")&&(r.font=e.font),we(e,"fontStyle")&&(r.fontStyle=e.fontStyle),we(e,"fontWeight")&&(r.fontWeight=e.fontWeight),we(e,"fontSize")&&(r.fontSize=e.fontSize),we(e,"fontFamily")&&(r.fontFamily=e.fontFamily),we(e,"align")&&(r.textAlign=e.align),we(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),we(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),we(e,"width")&&(r.textWidth=e.width),we(e,"height")&&(r.textHeight=e.height),we(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),we(e,"padding")&&(r.textPadding=e.padding),we(e,"borderColor")&&(r.textBorderColor=e.borderColor),we(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),we(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),we(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),we(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),we(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),we(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),we(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),we(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),we(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),we(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}function gR(r,e){if(process.env.NODE_ENV!=="production"){var t=r+"^_^"+e;cR[t]||(console.warn('[ECharts] DEPRECATED: "'+r+'" has been deprecated. '+e),cR[t]=!0)}}var mR={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},yR=nt(mR),Zm=na(sa,function(r,e){return r[e]=1,r},{}),_R=sa.join(", "),Um=["","style","shape","extra"],of=ot();function MT(r,e,t,n,i){var a=r+"Animation",o=bc(r,n,i)||{},s=of(e).userDuring;return o.duration>0&&(o.during=s?ye(lde,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),$(o,t[a]),o}function Ym(r,e,t,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=t.isAnimationEnabled(),l=of(r),u=e.style;l.userDuring=e.during;var c={},f={};if(cde(r,e,f),xR("shape",e,f),xR("extra",e,f),!a&&s&&(ude(r,e,c),bR("shape",r,e,c),bR("extra",r,e,c),fde(r,e,u,c)),f.style=u,ide(r,f,o),ode(r,e),s)if(a){var h={};N(Um,function(d){var g=d?e[d]:e;g&&g.enterFrom&&(d&&(h[d]=h[d]||{}),$(d?h[d]:h,g.enterFrom))});var v=MT("enter",r,e,t,i);v.duration>0&&r.animateFrom(h,v)}else ade(r,e,i||0,t,c);wR(r,e),u?r.dirty():r.markRedraw()}function wR(r,e){for(var t=of(r).leaveToProps,n=0;n<Um.length;n++){var i=Um[n],a=i?e[i]:e;a&&a.leaveTo&&(t||(t=of(r).leaveToProps={}),i&&(t[i]=t[i]||{}),$(i?t[i]:t,a.leaveTo))}}function Xm(r,e,t,n){if(r){var i=r.parent,a=of(r).leaveToProps;if(a){var o=MT("update",r,e,t,0);o.done=function(){i.remove(r)},r.animateTo(a,o)}else i.remove(r)}}function ou(r){return r==="all"}function ide(r,e,t){var n=e.style;if(!r.isGroup&&n){if(t){r.useStyle({});for(var i=r.animators,a=0;a<i.length;a++){var o=i[a];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(n)}e&&(e.style=null,e&&r.attr(e),e.style=n)}function ade(r,e,t,n,i){if(i){var a=MT("update",r,e,n,t);a.duration>0&&r.animateFrom(i,a)}}function ode(r,e){we(e,"silent")&&(r.silent=e.silent),we(e,"ignore")&&(r.ignore=e.ignore),r instanceof Kn&&we(e,"invisible")&&(r.invisible=e.invisible),r instanceof Qe&&we(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var Ta={},sde={setTransform:function(r,e){return process.env.NODE_ENV!=="production"&&ke(we(Zm,r),"Only "+_R+" available in `setTransform`."),Ta.el[r]=e,this},getTransform:function(r){return process.env.NODE_ENV!=="production"&&ke(we(Zm,r),"Only "+_R+" available in `getTransform`."),Ta.el[r]},setShape:function(r,e){process.env.NODE_ENV!=="production"&&sf(r);var t=Ta.el,n=t.shape||(t.shape={});return n[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){process.env.NODE_ENV!=="production"&&sf(r);var e=Ta.el.shape;if(e)return e[r]},setStyle:function(r,e){process.env.NODE_ENV!=="production"&&sf(r);var t=Ta.el,n=t.style;return n&&(process.env.NODE_ENV!=="production"&&Ks(e)&&Xt("style."+r+" must not be assigned with NaN."),n[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){process.env.NODE_ENV!=="production"&&sf(r);var e=Ta.el.style;if(e)return e[r]},setExtra:function(r,e){process.env.NODE_ENV!=="production"&&sf(r);var t=Ta.el.extra||(Ta.el.extra={});return t[r]=e,this},getExtra:function(r){process.env.NODE_ENV!=="production"&&sf(r);var e=Ta.el.extra;if(e)return e[r]}};function sf(r){if(process.env.NODE_ENV!=="production"&&(r==="transition"||r==="enterFrom"||r==="leaveTo"))throw new Error('key must not be "'+r+'"')}function lde(){var r=this,e=r.el;if(e){var t=of(e).userDuring,n=r.userDuring;if(t!==n){r.el=r.userDuring=null;return}Ta.el=e,n(sde)}}function bR(r,e,t,n){var i=t[r];if(i){var a=e[r],o;if(a){var s=t.transition,l=i.transition;if(l)if(!o&&(o=n[r]={}),ou(l))$(o,a);else for(var u=St(l),c=0;c<u.length;c++){var f=u[c],h=a[f];o[f]=h}else if(ou(s)||qe(s,r)>=0){!o&&(o=n[r]={});for(var v=nt(a),c=0;c<v.length;c++){var f=v[c],h=a[f];hde(i[f],h)&&(o[f]=h)}}}}}function xR(r,e,t){var n=e[r];if(n)for(var i=t[r]={},a=nt(n),o=0;o<a.length;o++){var s=a[o];i[s]=Sh(n[s])}}function ude(r,e,t){for(var n=e.transition,i=ou(n)?sa:St(n||[]),a=0;a<i.length;a++){var o=i[a];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];process.env.NODE_ENV!=="production"&&SR(o,"el.transition"),t[o]=s}}}function cde(r,e,t){for(var n=0;n<yR.length;n++){var i=yR[n],a=mR[i],o=e[i];o&&(t[a[0]]=o[0],t[a[1]]=o[1])}for(var n=0;n<sa.length;n++){var s=sa[n];e[s]!=null&&(t[s]=e[s])}}function fde(r,e,t,n){if(t){var i=r.style,a;if(i){var o=t.transition,s=e.transition;if(o&&!ou(o)){var l=St(o);!a&&(a=n.style={});for(var u=0;u<l.length;u++){var c=l[u],f=i[c];a[c]=f}}else if(r.getAnimationStyleProps&&(ou(s)||ou(o)||qe(s,"style")>=0)){var h=r.getAnimationStyleProps(),v=h?h.style:null;if(v){!a&&(a=n.style={});for(var d=nt(t),u=0;u<d.length;u++){var c=d[u];if(v[c]){var f=i[c];a[c]=f}}}}}}}function hde(r,e){return Zr(r)?r!==e:r!=null&&isFinite(r)}var SR;process.env.NODE_ENV!=="production"&&(SR=function(r,e){we(Zm,r)||Xt("Prop `"+r+"` is not a permitted in `"+e+"`. Only `"+nt(Zm).join("`, `")+"` are permitted.")});var TR=ot(),vde=["percent","easing","shape","style","extra"];function AR(r){r.stopAnimation("keyframe"),r.attr(TR(r))}function qm(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(re(e)){N(e,function(s){qm(r,s,t)});return}var n=e.keyframes,i=e.duration;if(t&&i==null){var a=bc("enter",t,0);i=a&&a.duration}if(!(!n||!i)){var o=TR(r);N(Um,function(s){if(!(s&&!r[s])){var l,u=!1;n.sort(function(c,f){return c.percent-f.percent}),N(n,function(c){var f=r.animators,h=s?c[s]:c;if(process.env.NODE_ENV!=="production"&&c.percent>=1&&(u=!0),!!h){var v=nt(h);if(s||(v=pt(v,function(p){return qe(vde,p)<0})),!!v.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var d=0;d<f.length;d++)f[d]!==l&&f[d].targetName===l.targetName&&f[d].stopTracks(v);s&&(o[s]=o[s]||{});var g=s?o[s]:o;N(v,function(p){g[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(i*c.percent,h,v,c.easing)}}}),l&&(process.env.NODE_ENV!=="production"&&(u||Xt("End frame with percent: 1 is missing in the keyframeAnimation.",!0)),l.delay(e.delay||0).duration(i).start(e.easing))}})}}}var co="emphasis",ys="normal",IT="blur",ET="select",_s=[ys,co,IT,ET],LT={normal:["itemStyle"],emphasis:[co,"itemStyle"],blur:[IT,"itemStyle"],select:[ET,"itemStyle"]},kT={normal:["label"],emphasis:[co,"label"],blur:[IT,"label"],select:[ET,"label"]},dde=["x","y"],pde="e\0\0",li={normal:{},emphasis:{},blur:{},select:{}},CR={cartesian2d:Kve,geo:Qve,single:ede,polar:rde,calendar:nde};function jm(r){return r instanceof Qe}function PT(r){return r instanceof Kn}function gde(r,e){e.copyTransform(r),PT(e)&&PT(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,jm(e)&&jm(r)&&e.setShape(r.shape))}var mde=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i,a){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=MR(t,s,n,i);o||l.removeAll(),s.diff(o).add(function(f){RT(i,null,f,u(f,a),t,l,s)}).remove(function(f){var h=o.getItemGraphicEl(f);h&&Xm(h,uo(h).option,t)}).update(function(f,h){var v=o.getItemGraphicEl(h);RT(i,v,f,u(f,a),t,l,s)}).execute();var c=t.get("clip",!0)?Mv(t.coordinateSystem,!1,t):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,n,i){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,n,i,a,o){var s=n.getData(),l=MR(n,s,i,a),u=this._progressiveEls=[];function c(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}for(var f=t.start;f<t.end;f++){var h=RT(null,null,f,l(f,o),n,this.group,s);h&&(h.traverse(c),u.push(h))}},e.prototype.eachRendered=function(t){ns(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,n,i,a){var o=n.element;if(o==null||i.name===o)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===o)return!0;return!1},e.type="custom",e}(Dt);function NT(r){var e=r.type,t;if(e==="path"){var n=r.shape,i=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,a=PR(n);t=g0(a,null,i,n.layout||"center"),uo(t).customPathData=a}else if(e==="image")t=new Er({}),uo(t).customImagePath=r.style.image;else if(e==="text")t=new ut({});else if(e==="group")t=new Re;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=lb(e);if(!o){var s="";process.env.NODE_ENV!=="production"&&(s='graphic type "'+e+'" can not be found.'),gt(s)}t=new o}return uo(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function OT(r,e,t,n,i,a,o){AR(e);var s=i&&i.normal.cfg;s&&e.setTextConfig(s),n&&n.transition==null&&(n.transition=dde);var l=n&&n.style;if(l){if(e.type==="text"){var u=l;we(u,"textFill")&&(u.fill=u.textFill),we(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=jm(e)?l.decal:null;r&&f&&(f.dirty=!0,c=Gc(f,r)),l.__decalPattern=c}if(PT(e)&&l){var c=l.__decalPattern;c&&(l.decal=c)}Ym(e,n,a,{dataIndex:t,isInit:o,clearStyle:!0}),qm(e,n.keyframeAnimation,a)}function DR(r,e,t,n,i){var a=e.isGroup?null:e,o=i&&i[r].cfg;if(a){var s=a.ensureState(r);if(n===!1){var l=a.getState(r);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),bl(a)}}function yde(r,e,t){if(!r.isGroup){var n=r,i=t.currentZ,a=t.currentZLevel;n.z=i,n.zlevel=a;var o=e.z2;o!=null&&(n.z2=o||0);for(var s=0;s<_s.length;s++)_de(n,e,_s[s])}}function _de(r,e,t){var n=t===ys,i=n?e:Km(e,t),a=i?i.z2:null,o;a!=null&&(o=n?r:r.ensureState(t),o.z2=a||0)}function MR(r,e,t,n){var i=r.get("renderItem"),a=r.coordinateSystem,o={};a&&(process.env.NODE_ENV!=="production"&&(ke(i,"series.render is required."),ke(a.prepareCustoms||CR[a.type],"This coordSys does not support custom series.")),o=a.prepareCustoms?a.prepareCustoms(a):CR[a.type](a));for(var s=Ne({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:w,style:x,ordinalRawValue:b,styleEmphasis:S,visual:A,barLayout:M,currentSeriesIndices:k,font:L},o.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:wde(r.getData())},u,c,f={},h={},v={},d={},g=0;g<_s.length;g++){var p=_s[g];v[p]=r.getModel(LT[p]),d[p]=r.getModel(kT[p])}function m(P){return P===u?c||(c=e.getItemModel(P)):e.getItemModel(P)}function y(P,E){return e.hasItemOption?P===u?f[E]||(f[E]=m(P).getModel(LT[E])):m(P).getModel(LT[E]):v[E]}function _(P,E){return e.hasItemOption?P===u?h[E]||(h[E]=m(P).getModel(kT[E])):m(P).getModel(kT[E]):d[E]}return function(P,E){return u=P,c=null,f={},h={},i&&i(Ne({dataIndexInside:P,dataIndex:e.getRawIndex(P),actionType:E?E.type:null},l),s)};function w(P,E){return E==null&&(E=u),e.getStore().get(e.getDimensionIndex(P||0),E)}function b(P,E){E==null&&(E=u),P=P||0;var O=e.getDimensionInfo(P);if(!O){var V=e.getDimensionIndex(P);return V>=0?e.getStore().get(V,E):void 0}var z=e.get(O.name,E),H=O&&O.ordinalMeta;return H?H.categories[z]:z}function x(P,E){process.env.NODE_ENV!=="production"&&gR("api.style","Please write literal style directly instead."),E==null&&(E=u);var O=e.getItemVisual(E,"style"),V=O&&O.fill,z=O&&O.opacity,H=y(E,ys).getItemStyle();V!=null&&(H.fill=V),z!=null&&(H.opacity=z);var B={inheritColor:me(V)?V:"#000"},F=_(E,ys),ee=Ot(F,null,B,!1,!0);ee.text=F.getShallow("show")?Ve(r.getFormattedLabel(E,ys),jc(e,E)):null;var ae=w0(F,B,!1);return C(P,H),H=dR(H,ee,ae),P&&T(H,P),H.legacy=!0,H}function S(P,E){process.env.NODE_ENV!=="production"&&gR("api.styleEmphasis","Please write literal style directly instead."),E==null&&(E=u);var O=y(E,co).getItemStyle(),V=_(E,co),z=Ot(V,null,null,!0,!0);z.text=V.getShallow("show")?Zn(r.getFormattedLabel(E,co),r.getFormattedLabel(E,ys),jc(e,E)):null;var H=w0(V,null,!0);return C(P,O),O=dR(O,z,H),P&&T(O,P),O.legacy=!0,O}function T(P,E){for(var O in E)we(E,O)&&(P[O]=E[O])}function C(P,E){P&&(P.textFill&&(E.textFill=P.textFill),P.textPosition&&(E.textPosition=P.textPosition))}function A(P,E){if(E==null&&(E=u),we(uR,P)){var O=e.getItemVisual(E,"style");return O?O[uR[P]]:null}if(we(Xve,P))return e.getItemVisual(E,P)}function M(P){if(a.type==="cartesian2d"){var E=a.getBaseAxis();return cae(Ne({axis:E},P))}}function k(){return t.getCurrentSeriesIndices()}function L(P){return fb(P,t)}}function wde(r){var e={};return N(r.dimensions,function(t){var n=r.getDimensionInfo(t);if(!n.isExtraCoord){var i=n.coordDim,a=e[i]=e[i]||[];a[n.coordDimIndex]=r.getDimensionIndex(t)}}),e}function RT(r,e,t,n,i,a,o){if(!n){a.remove(e);return}var s=VT(r,e,t,n,i,a);return s&&o.setItemGraphicEl(t,s),s&&qt(s,n.focus,n.blurScope,n.emphasisDisabled),s}function VT(r,e,t,n,i,a){process.env.NODE_ENV!=="production"&&ke(n,"should not have an null/undefined element setting");var o=-1,s=e;e&&IR(e,n,i)&&(o=qe(a.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=NT(n),s&&gde(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),li.normal.cfg=li.normal.conOpt=li.emphasis.cfg=li.emphasis.conOpt=li.blur.cfg=li.blur.conOpt=li.select.cfg=li.select.conOpt=null,li.isLegacy=!1,xde(u,t,n,i,l,li),bde(u,t,n,i,l),OT(r,u,t,n,li,i,l),we(n,"info")&&(uo(u).info=n.info);for(var c=0;c<_s.length;c++){var f=_s[c];if(f!==ys){var h=Km(n,f),v=zT(n,h,f);DR(f,u,h,v,li)}}return yde(u,n,i),n.type==="group"&&Sde(r,u,t,n,i),o>=0?a.replaceAt(u,o):a.add(u),u}function IR(r,e,t){var n=uo(r),i=e.type,a=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&Dde(a)&&PR(a)!==n.customPathData||i==="image"&&we(o,"image")&&o.image!==n.customImagePath}function bde(r,e,t,n,i){var a=t.clipPath;if(a===!1)r&&r.getClipPath()&&r.removeClipPath();else if(a){var o=r.getClipPath();o&&IR(o,a,n)&&(o=null),o||(o=NT(a),process.env.NODE_ENV!=="production"&&ke(jm(o),"Only any type of `path` can be used in `clipPath`, rather than "+o.type+"."),r.setClipPath(o)),OT(null,o,e,a,null,n,i)}}function xde(r,e,t,n,i,a){if(!r.isGroup){ER(t,null,a),ER(t,co,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=r.getTextContent();if(o===!1)c&&r.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=NT(o),r.setTextContent(c)),OT(null,c,e,o,null,n,i);for(var f=o&&o.style,h=0;h<_s.length;h++){var v=_s[h];if(v!==ys){var d=a[v].conOpt;DR(v,c,d,zT(o,d,v),null)}}f?c.dirty():c.markRedraw()}}}}function ER(r,e,t){var n=e?Km(r,e):r,i=e?zT(r,n,co):r.style,a=r.type,o=n?n.textConfig:null,s=r.textContent,l=s?e?Km(s,e):s:null;if(i&&(t.isLegacy||fR(i,a,!!o,!!l))){t.isLegacy=!0;var u=hR(i,a,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text"),process.env.NODE_ENV!=="production"&&ke(c.type==="text",'textContent.type must be "text"')}var f=e?t[e]:t.normal;f.cfg=o,f.conOpt=l}function Km(r,e){return e?r?r[e]:null:r}function zT(r,e,t){var n=e&&e.style;return n==null&&t===co&&r&&(n=r.styleEmphasis),n}function Sde(r,e,t,n,i){var a=n.children,o=a?a.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){Ade({api:r,oldChildren:e.children()||[],newChildren:a||[],dataIndex:t,seriesModel:i,group:e});return}u&&e.removeAll();for(var c=0;c<o;c++){var f=a[c],h=e.childAt(c);f?(f.ignore==null&&(f.ignore=!1),VT(r,h,t,f,i,e)):(process.env.NODE_ENV!=="production"&&ke(h,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),h.ignore=!0)}for(var v=e.childCount()-1;v>=c;v--){var d=e.childAt(v);Tde(e,d,i)}}}function Tde(r,e,t){e&&Xm(e,uo(r).option,t)}function Ade(r){new io(r.oldChildren,r.newChildren,LR,LR,r).add(kR).update(kR).remove(Cde).execute()}function LR(r,e){var t=r&&r.name;return t??pde+e}function kR(r,e){var t=this.context,n=r!=null?t.newChildren[r]:null,i=e!=null?t.oldChildren[e]:null;VT(t.api,i,t.dataIndex,n,t.seriesModel,t.group)}function Cde(r){var e=this.context,t=e.oldChildren[r];t&&Xm(t,uo(t).option,e.seriesModel)}function PR(r){return r&&(r.pathData||r.d)}function Dde(r){return r&&(we(r,"pathData")||we(r,"d"))}function Mde(r){r.registerChartView(mde),r.registerSeriesModel(qve)}var su=ot(),NR=Oe,BT=ye,FT=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,n,i){var a=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,t,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Re,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),n.getZr().add(s);else{var h=He(OR,t,f);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,t)}zR(s,t,!0),this._renderHandle(a)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var n=t.get("animation"),i=e.axis,a=i.type==="category",o=t.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=sS(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,i,a){},r.prototype.createPointerEl=function(e,t,n,i){var a=t.pointer;if(a){var o=su(e).pointerEl=new Il[a.type](NR(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,i){if(t.label){var a=su(e).labelEl=new ut(NR(t.label));e.add(a),VR(a,i)}},r.prototype.updatePointerEl=function(e,t,n){var i=su(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,i){var a=su(e).labelEl;a&&(a.setStyle(t.label.style),n(a,{x:t.label.x,y:t.label.y}),VR(a,i))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=t.getModel("handle"),o=t.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Xh(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Za(u.event)},onmousedown:BT(this._onHandleDragMove,this,0,0),drift:BT(this._onHandleDragMove,this),ondragend:BT(this._onHandleDragEnd,this)}),n.add(i)),zR(i,t,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");re(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,zc(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){OR(this._axisPointerModel,!t&&this._moveAnimation,this._handle,HT(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(HT(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(HT(i)),su(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),av(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},r}();function OR(r,e,t,n){RR(su(t).lastProp,n)||(su(t).lastProp=n,e?ht(t,n,r):(t.stopAnimation(),t.attr(n)))}function RR(r,e){if(Le(r)&&Le(e)){var t=!0;return N(e,function(n,i){t=t&&RR(r[i],n)}),!!t}else return r===e}function VR(r,e){r[e.get(["label","show"])?"show":"hide"]()}function HT(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function zR(r,e,t){var n=e.get("z"),i=e.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=t)})}function GT(r){var e=r.get("type"),t=r.getModel(e+"Style"),n;return e==="line"?(n=t.getLineStyle(),n.fill=null):e==="shadow"&&(n=t.getAreaStyle(),n.stroke=null),n}function BR(r,e,t,n,i){var a=t.get("value"),o=FR(a,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Ic(s.get("padding")||0),u=s.getFont(),c=Ch(o,u),f=i.position,h=c.width+l[1]+l[3],v=c.height+l[0]+l[2],d=i.align;d==="right"&&(f[0]-=h),d==="center"&&(f[0]-=h/2);var g=i.verticalAlign;g==="bottom"&&(f[1]-=v),g==="middle"&&(f[1]-=v/2),Ide(f,h,v,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=e.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:Ot(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function Ide(r,e,t,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+e,i)-e,r[1]=Math.min(r[1]+t,a)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function FR(r,e,t,n,i){r=e.scale.parse(r);var a=e.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:Cx(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};N(n,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),me(o)?a=o.replace("{value}",a):Me(o)&&(a=o(s))}return a}function WT(r,e,t){var n=En();return el(n,n,t.rotation),ia(n,n,t.position),Ri([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function HR(r,e,t,n,i,a){var o=dn.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=i.get(["label","margin"]),BR(e,n,i,a,{position:WT(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function ZT(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function GR(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function WR(r,e,t,n,i,a){return{cx:r,cy:e,r0:t,r:n,startAngle:i,endAngle:a,clockwise:!0}}var Ede=function(r){Y(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=ZR(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=GT(a),v=Lde[u](s,f,c);v.style=h,t.graphicKey=v.type,t.pointer=v}var d=nS(l.model,i);HR(n,t,d,i,a,o)},e.prototype.getHandleTransform=function(t,n,i){var a=nS(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=WT(n.axis,t,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=ZR(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[t.x,t.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var h=(u[1]+u[0])/2,v=[h,h];v[c]=f[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:v,tooltipOption:d[c]}},e}(FT);function ZR(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var Lde={line:function(r,e,t){var n=ZT([e,t[0]],[e,t[1]],UR(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=Math.max(1,r.getBandWidth()),i=t[1]-t[0];return{type:"Rect",shape:GR([e-n/2,t[0]],[n,i],UR(r))}}};function UR(r){return r.dim==="x"?0:1}var kde=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}($e),fo=ot(),Pde=N;function YR(r,e,t){if(!Je.node){var n=e.getZr();fo(n).records||(fo(n).records={}),Nde(n,e);var i=fo(n).records[r]||(fo(n).records[r]={});i.handler=t}}function Nde(r,e){if(fo(r).initialized)return;fo(r).initialized=!0,t("click",He(XR,"click")),t("mousemove",He(XR,"mousemove")),t("globalout",Rde);function t(n,i){r.on(n,function(a){var o=Vde(e);Pde(fo(r).records,function(s){s&&i(s,a,o.dispatchAction)}),Ode(o.pendings,e)})}}function Ode(r,e){var t=r.showTip.length,n=r.hideTip.length,i;t?i=r.showTip[t-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function Rde(r,e,t){r.handler("leave",null,t)}function XR(r,e,t,n){e.handler(r,t,n)}function Vde(r){var e={showTip:[],hideTip:[]},t=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function UT(r,e){if(!Je.node){var t=e.getZr(),n=(fo(t).records||{})[r];n&&(fo(t).records[r]=null)}}var zde=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){var a=n.getComponent("tooltip"),o=t.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";YR("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,n){UT("axisPointer",n)},e.prototype.dispose=function(t,n){UT("axisPointer",n)},e.type="axisPointer",e}(Zt);function qR(r,e){var t=[],n=r.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=ul(a,r);if(o==null||o<0||re(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)t=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,v=f==="x"||f==="radius"?1:0,d=a.mapDimension(h),g=[];g[v]=a.get(d,o),g[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(a.getValues(ne(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),t=[p.x+p.width/2,p.y+p.height/2]}return{point:t,el:s}}var jR=ot();function Bde(r,e,t){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||ye(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Jm(i)&&(i=qR({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Jm(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||Jm(i),h={},v={},d={list:[],map:{}},g={showPointer:He(Hde,v),showTooltip:He(Gde,d)};N(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);N(s.coordSysAxesInfo[y],function(w,b){var x=w.axis,S=Yde(u,w);if(!f&&_&&(!u||S)){var T=S&&S.value;T==null&&!l&&(T=x.pointToData(i)),T!=null&&KR(w,T,g,!1,h)}})});var p={};return N(c,function(m,y){var _=m.linkGroup;_&&!v[y]&&N(_.axesInfo,function(w,b){var x=v[b];if(w!==m&&x){var S=x.value;_.mapper&&(S=m.axis.scale.parse(_.mapper(S,JR(w),JR(m)))),p[m.key]=S}})}),N(p,function(m,y){KR(c[y],m,g,!0,h)}),Wde(v,c,h),Zde(d,i,r,o),Ude(c,o,t),h}}function KR(r,e,t,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=Fde(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&$(i,s[0]),!n&&r.snap&&a.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function Fde(r,e){var t=e.axis,n=t.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return N(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,r,t);h=v.dataIndices,f=v.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],r,t.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var d=r-f,g=Math.abs(d);g<=o&&((g<o||d>=0&&s<0)&&(o=g,s=d,i=f,a.length=0),N(h,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function Hde(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function Gde(r,e,t,n){var i=t.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=Pv(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Wde(r,e,t){var n=t.axesInfo=[];N(e,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function Zde(r,e,t,n){if(Jm(e)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function Ude(r,e,t){var n=t.getZr(),i="axisPointerLastHighlights",a=jR(n)[i]||{},o=jR(n)[i]={};N(r,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&N(f.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];N(a,function(u,c){!o[c]&&l.push(u)}),N(o,function(u,c){!a[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Yde(r,e){for(var t=0;t<(r||[]).length;t++){var n=r[t];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function JR(r){var e=r.axis.model,t={},n=t.axisDim=r.axis.dim;return t.axisIndex=t[n+"AxisIndex"]=e.componentIndex,t.axisName=t[n+"AxisName"]=e.name,t.axisId=t[n+"AxisId"]=e.id,t}function Jm(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Jv(r){Jl.registerAxisPointerClass("CartesianAxisPointer",Ede),r.registerComponentModel(kde),r.registerComponentView(zde),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!re(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=nle(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Bde)}function Xde(r){je(CP),je(Jv)}var qde=function(r){Y(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(n),h=a.get("type");if(h&&h!=="none"){var v=GT(a),d=Kde[h](s,l,f,c);d.style=v,t.graphicKey=d.type,t.pointer=d}var g=a.get(["label","margin"]),p=jde(n,i,a,l,g);BR(t,i,a,o,p)},e}(FT);function jde(r,e,t,n,i){var a=e.axis,o=a.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(a.dim==="radius"){var h=En();el(h,h,s),ia(h,h,[n.cx,n.cy]),u=Ri([o,-i],h);var v=e.getModel("axisLabel").get("rotate")||0,d=dn.innerTextLayout(s,v*Math.PI/180,-1);c=d.textAlign,f=d.textVerticalAlign}else{var g=l[1];u=n.coordToPoint([g+i,o]);var p=n.cx,m=n.cy;c=Math.abs(u[0]-p)/g<.3?"center":u[0]>p?"left":"right",f=Math.abs(u[1]-m)/g<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var Kde={line:function(r,e,t,n){return r.dim==="angle"?{type:"Line",shape:ZT(e.coordToPoint([n[0],t]),e.coordToPoint([n[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,n){var i=Math.max(1,r.getBandWidth()),a=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:WR(e.cx,e.cy,n[0],n[1],(-t-i/2)*a,(-t+i/2)*a)}:{type:"Sector",shape:WR(e.cx,e.cy,t-i/2,t+i/2,0,Math.PI*2)}}},Jde=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var n,i=this.ecModel;return i.eachComponent(t,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}($e),YT=function(r){Y(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",fr).models[0]},e.type="polarAxis",e}($e);lr(YT,wv);var Qde=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(YT),$de=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(YT),XT=function(r){Y(e,r);function e(t,n){return r.call(this,"radius",t,n)||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e}(Bi);XT.prototype.dataToRadius=Bi.prototype.dataToCoord,XT.prototype.radiusToData=Bi.prototype.coordToData;var epe=ot(),qT=function(r){Y(e,r);function e(t,n){return r.call(this,"angle",t,n||[0,360])||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,n=t.getLabelModel(),i=t.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=Ch(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),h=f/u;isNaN(h)&&(h=1/0);var v=Math.max(0,Math.floor(h)),d=epe(t.model),g=d.lastAutoInterval,p=d.lastTickCount;return g!=null&&p!=null&&Math.abs(g-v)<=1&&Math.abs(p-o)<=1&&g>v?v=g:(d.lastTickCount=o,d.lastAutoInterval=v),v},e}(Bi);qT.prototype.dataToAngle=Bi.prototype.dataToCoord,qT.prototype.angleToData=Bi.prototype.coordToData;var QR=["radius","angle"],tpe=function(){function r(e){this.dimensions=QR,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new XT,this._angleAxis=new qT,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+n*n);t/=l,n/=l;for(var u=Math.atan2(-n,t)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,i=Math.cos(n)*t+this.cx,a=-Math.sin(n)*t+this.cy;return[i,a]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),a=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,c=l-this.cy,f=u*u+c*c,h=this.r,v=this.r0;return h!==v&&f-o<=h*h&&f+o>=v*v}}},r.prototype.convertToPixel=function(e,t,n){var i=$R(t);return i===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var i=$R(t);return i===this?this.pointToData(n):null},r}();function $R(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function rpe(r,e,t){var n=e.get("center"),i=t.getWidth(),a=t.getHeight();r.cx=de(n[0],i),r.cy=de(n[1],a);var o=r.getRadiusAxis(),s=Math.min(i,a)/2,l=e.get("radius");l==null?l=[0,"100%"]:re(l)||(l=[0,l]);var u=[de(l[0],s),de(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function npe(r,e){var t=this,n=t.getAngleAxis(),i=t.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();N(fm(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),N(fm(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Yc(n.scale,n.model),Yc(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function ipe(r){return r.mainType==="angleAxis"}function eV(r,e){var t;if(r.type=e.get("type"),r.scale=cm(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),ipe(e)){r.inverse=r.inverse!==e.get("clockwise");var n=e.get("startAngle"),i=(t=e.get("endAngle"))!==null&&t!==void 0?t:n+(r.inverse?-360:360);r.setExtent(n,i)}e.axis=r,r.model=e}var ape={dimensions:QR,create:function(r,e){var t=[];return r.eachComponent("polar",function(n,i){var a=new tpe(i+"");a.update=npe;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");eV(o,l),eV(s,u),rpe(a,n,e),t.push(a),n.coordinateSystem=a,a.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",fr).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error('Polar "'+ur(n.get("polarIndex"),n.get("polarId"),0)+'" not found');n.coordinateSystem=i.coordinateSystem}}),t}},ope=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Qm(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var n=r.coordToPoint([e[0],t]),i=r.coordToPoint([e[1],t]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function $m(r){var e=r.getRadiusAxis();return e.inverse?0:1}function tV(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var spe=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,n){if(this.group.removeAll(),!!t.get("show")){var i=t.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=ne(i.getViewLabels(),function(c){c=Oe(c);var f=i.scale,h=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(h),c});tV(u),tV(s),N(ope,function(c){t.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&lpe[c](this.group,t,a,s,l,o,u)},this)}},e.type="angleAxis",e}(Jl),lpe={axisLine:function(r,e,t,n,i,a){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=$m(t),f=c?0:1,h,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[f]===0?h=new Il[v]({shape:{cx:t.cx,cy:t.cy,r:a[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new Gh({shape:{cx:t.cx,cy:t.cy,r:a[c],r0:a[f]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,r.add(h)},axisTick:function(r,e,t,n,i,a){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[$m(t)],u=ne(n,function(c){return new br({shape:Qm(t,[l,l+s],c.coord)})});r.add(Qn(u,{style:Ne(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,n,i,a){if(i.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[$m(t)],c=[],f=0;f<i.length;f++)for(var h=0;h<i[f].length;h++)c.push(new br({shape:Qm(t,[u,u+l],i[f][h].coord)}));r.add(Qn(c,{style:Ne(s.getModel("lineStyle").getLineStyle(),Ne(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,n,i,a,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");N(o,function(f,h){var v=l,d=f.tickValue,g=a[$m(t)],p=t.coordToPoint([g+u,f.coord]),m=t.cx,y=t.cy,_=Math.abs(p[0]-m)/g<.3?"center":p[0]>m?"left":"right",w=Math.abs(p[1]-y)/g<.3?"middle":p[1]>y?"top":"bottom";if(s&&s[d]){var b=s[d];Le(b)&&b.textStyle&&(v=new bt(b.textStyle,l,l.ecModel))}var x=new ut({silent:dn.isLabelSilent(e),style:Ot(v,{x:p[0],y:p[1],fill:v.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:_,verticalAlign:w})});if(r.add(x),c){var S=dn.makeAxisEventDataBase(e);S.targetType="axisLabel",S.value=f.rawLabel,ze(x).eventData=S}},this)},splitLine:function(r,e,t,n,i,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<n.length;f++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new br({shape:Qm(t,a,n[f].coord)}))}for(var f=0;f<c.length;f++)r.add(Qn(c[f],{style:Ne({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,n,i,a){if(i.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;c++)l.push(new br({shape:Qm(t,a,i[u][c].coord)}));r.add(Qn(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,n,i,a){if(n.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,h=-n[0].coord*f,v=Math.min(a[0],a[1]),d=Math.max(a[0],a[1]),g=e.get("clockwise"),p=1,m=n.length;p<=m;p++){var y=p===m?n[0].coord:n[p].coord,_=u++%l.length;c[_]=c[_]||[],c[_].push(new ln({shape:{cx:t.cx,cy:t.cy,r0:v,r:d,startAngle:h,endAngle:-y*f,clockwise:g},silent:!0})),h=-y*f}for(var p=0;p<c.length;p++)r.add(Qn(c[p],{style:Ne({fill:l[p%l.length]},s.getAreaStyle()),silent:!0}))}}},upe=["axisLine","axisTickLabel","axisName"],cpe=["splitLine","splitArea","minorSplitLine"],fpe=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,n){if(this.group.removeAll(),!!t.get("show")){var i=this._axisGroup,a=this._axisGroup=new Re;this.group.add(a);var o=t.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],h=o.getExtent(),v=vpe(s,t,f),d=new dn(t,v);N(upe,d.add,d),a.add(d.getGroup()),Yh(i,a,t),N(cpe,function(g){t.get([g,"show"])&&!o.scale.isBlank()&&hpe[g](this.group,t,s,f,h,u,c)},this)}},e.type="radiusAxis",e}(Jl),hpe={splitLine:function(r,e,t,n,i,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=t.getAngleAxis(),f=Math.PI/180,h=c.getExtent(),v=Math.abs(h[1]-h[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var d=[],g=0;g<a.length;g++){var p=u++%l.length;d[p]=d[p]||[],d[p].push(new Il[v]({shape:{cx:t.cx,cy:t.cy,r:Math.max(a[g].coord,0),startAngle:-h[0]*f,endAngle:-h[1]*f,clockwise:c.inverse}}))}for(var g=0;g<d.length;g++)r.add(Qn(d[g],{style:Ne({stroke:l[g%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,n,i,a,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new to({shape:{cx:t.cx,cy:t.cy,r:o[c][f].coord}}));r.add(Qn(u,{style:Ne({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,n,i,a){if(a.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=a[0].coord,h=1;h<a.length;h++){var v=u++%l.length;c[v]=c[v]||[],c[v].push(new ln({shape:{cx:t.cx,cy:t.cy,r0:f,r:a[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=a[h].coord}for(var h=0;h<c.length;h++)r.add(Qn(c[h],{style:Ne({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function vpe(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}function rV(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function nV(r,e){return e.dim+r.model.componentIndex}function dpe(r,e,t){var n={},i=ppe(pt(e.getSeriesByType(r),function(a){return!e.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));e.eachSeriesByType(r,function(a){if(a.coordinateSystem.type==="polar"){var o=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),u=nV(s,l),c=rV(a),f=i[u][c],h=f.offset,v=f.width,d=s.getOtherAxis(l),g=a.coordinateSystem.cx,p=a.coordinateSystem.cy,m=a.get("barMinHeight")||0,y=a.get("barMinAngle")||0;n[c]=n[c]||[];for(var _=o.mapDimension(d.dim),w=o.mapDimension(l.dim),b=fs(o,_),x=l.dim!=="radius"||!a.get("roundCap",!0),S=d.model,T=S.get("startValue"),C=d.dataToCoord(T||0),A=0,M=o.count();A<M;A++){var k=o.get(_,A),L=o.get(w,A),P=k>=0?"p":"n",E=C;b&&(n[c][L]||(n[c][L]={p:C,n:C}),E=n[c][L][P]);var O=void 0,V=void 0,z=void 0,H=void 0;if(d.dim==="radius"){var B=d.dataToCoord(k)-C,F=l.dataToCoord(L);Math.abs(B)<m&&(B=(B<0?-1:1)*m),O=E,V=E+B,z=F-h,H=z-v,b&&(n[c][L][P]=V)}else{var ee=d.dataToCoord(k,x)-C,ae=l.dataToCoord(L);Math.abs(ee)<y&&(ee=(ee<0?-1:1)*y),O=ae+h,V=O+v,z=E,H=E+ee,b&&(n[c][L][P]=H)}o.setItemLayout(A,{cx:g,cy:p,r0:O,r:V,startAngle:-z*Math.PI/180,endAngle:-H*Math.PI/180,clockwise:z>=H})}}})}function ppe(r){var e={};N(r,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=nV(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),f=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=f.stacks;e[l]=f;var v=rV(n);h[v]||f.autoWidthCount++,h[v]=h[v]||{width:0,maxWidth:0};var d=de(n.get("barWidth"),c),g=de(n.get("barMaxWidth"),c),p=n.get("barGap"),m=n.get("barCategoryGap");d&&!h[v].width&&(d=Math.min(f.remainedWidth,d),h[v].width=d,f.remainedWidth-=d),g&&(h[v].maxWidth=g),p!=null&&(f.gap=p),m!=null&&(f.categoryGap=m)});var t={};return N(e,function(n,i){t[i]={};var a=n.stacks,o=n.bandWidth,s=de(n.categoryGap,o),l=de(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),N(a,function(g,p){var m=g.maxWidth;m&&m<f&&(m=Math.min(m,u),g.width&&(m=Math.min(m,g.width)),u-=m,g.width=m,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var h=0,v;N(a,function(g,p){g.width||(g.width=f),v=g,h+=g.width*(1+l)}),v&&(h-=v.width*l);var d=-h/2;N(a,function(g,p){t[i][p]=t[i][p]||{offset:d,width:g.width},d+=g.width*(1+l)})}),t}var gpe={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},mpe={splitNumber:5},ype=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e}(Zt);function _pe(r){je(Jv),Jl.registerAxisPointerClass("PolarAxisPointer",qde),r.registerCoordinateSystem("polar",ape),r.registerComponentModel(Jde),r.registerComponentView(ype),Jc(r,"angle",Qde,gpe),Jc(r,"radius",$de,mpe),r.registerComponentView(spe),r.registerComponentView(fpe),r.registerLayout(He(dpe,"bar"))}function jT(r,e){e=e||{};var t=r.coordinateSystem,n=r.axis,i={},a=n.position,o=n.orient,s=t.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=[o==="vertical"?u.vertical[a]:l[0],o==="horizontal"?u.horizontal[a]:l[3]];var c={horizontal:0,vertical:1};i.rotation=Math.PI/2*c[o];var f={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=f[a],r.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),ur(e.labelInside,r.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var h=e.rotate;return h==null&&(h=r.get(["axisLabel","rotate"])),i.labelRotation=a==="top"?-h:h,i.z2=1,i}var wpe=["axisLine","axisTickLabel","axisName"],bpe=["splitArea","splitLine"],xpe=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,n,i,a){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new Re;var l=jT(t),u=new dn(t,l);N(wpe,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),N(bpe,function(c){t.get([c,"show"])&&Spe[c](this,this.group,this._axisGroup,t)},this),Yh(s,this._axisGroup,t),r.prototype.render.call(this,t,n,i,a)},e.prototype.remove=function(){xP(this)},e.type="singleAxis",e}(Jl),Spe={splitLine:function(r,e,t,n){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=n.coordinateSystem.getRect(),c=i.isHorizontal(),f=[],h=0,v=i.getTicksCoords({tickModel:a}),d=[],g=[],p=0;p<v.length;++p){var m=i.toGlobalCoord(v[p].coord);c?(d[0]=m,d[1]=u.y,g[0]=m,g[1]=u.y+u.height):(d[0]=u.x,d[1]=m,g[0]=u.x+u.width,g[1]=m);var y=new br({shape:{x1:d[0],y1:d[1],x2:g[0],y2:g[1]},silent:!0});Sc(y.shape,l);var _=h++%s.length;f[_]=f[_]||[],f[_].push(y)}for(var w=o.getLineStyle(["color"]),p=0;p<f.length;++p)e.add(Qn(f[p],{style:Ne({stroke:s[p%s.length]},w),silent:!0}))}},splitArea:function(r,e,t,n){bP(r,t,n,n)}},ey=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}($e);lr(ey,wv.prototype);var Tpe=function(r){Y(e,r);function e(t,n,i,a,o){var s=r.call(this,t,n,i)||this;return s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,n){return this.coordinateSystem.pointToData(t)[0]},e}(Bi),iV=["single"],Ape=function(){function r(e,t,n){this.type="single",this.dimension="single",this.dimensions=iV,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var i=this.dimension,a=new Tpe(i,cm(e),[0,0],e.get("type"),e.get("position")),o=a.type==="category";a.onBand=o&&e.get("boundaryGap"),a.inverse=e.get("inverse"),a.orient=e.get("orient"),e.axis=a,a.model=e,a.coordinateSystem=this,this._axis=a},r.prototype.update=function(e,t){e.eachSeries(function(n){if(n.coordinateSystem===this){var i=n.getData();N(i.mapDimensionsAll(this.dimension),function(a){this._axis.scale.unionExtentFromData(i,a)},this),Yc(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(e,t){this._rect=mr({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),i=n?[0,e.width]:[0,e.height],a=t.inverse?1:0;t.setExtent(i[a],i[1-a]),this._updateAxisTransform(t,n?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),i=n[0]+n[1],a=e.isHorizontal();e.toGlobalCoord=a?function(o){return o+t}:function(o){return i-o+t},e.toLocalCoord=a?function(o){return o-t}:function(o){return i-o+t}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis(),i=n.orient;return i==="horizontal"?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),i=[],a=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),i[a]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,i},r.prototype.convertToPixel=function(e,t,n){var i=aV(t);return i===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var i=aV(t);return i===this?this.pointToData(n):null},r}();function aV(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function Cpe(r,e){var t=[];return r.eachComponent("singleAxis",function(n,i){var a=new Ape(n,r,e);a.name="single_"+i,a.resize(n,e),n.coordinateSystem=a,t.push(a)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",fr).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),t}var Dpe={create:Cpe,dimensions:iV},oV=["x","y"],Mpe=["width","height"],Ipe=function(r){Y(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=KT(l,1-ty(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var h=GT(a),v=Epe[f](s,c,u);v.style=h,t.graphicKey=v.type,t.pointer=v}var d=jT(i);HR(n,t,d,i,a,o)},e.prototype.getHandleTransform=function(t,n,i){var a=jT(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=WT(n.axis,t,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,i,a){var o=i.axis,s=o.coordinateSystem,l=ty(o),u=KT(s,l),c=[t.x,t.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=KT(s,1-l),h=(f[1]+f[0])/2,v=[h,h];return v[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},e}(FT),Epe={line:function(r,e,t){var n=ZT([e,t[0]],[e,t[1]],ty(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=r.getBandWidth(),i=t[1]-t[0];return{type:"Rect",shape:GR([e-n/2,t[0]],[n,i],ty(r))}}};function ty(r){return r.isHorizontal()?0:1}function KT(r,e){var t=r.getRect();return[t[oV[e]],t[oV[e]]+t[Mpe[e]]]}var Lpe=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Zt);function kpe(r){je(Jv),Jl.registerAxisPointerClass("SingleAxisPointer",Ipe),r.registerComponentView(Lpe),r.registerComponentView(xpe),r.registerComponentModel(ey),Jc(r,"single",ey,ey.defaultOption),r.registerCoordinateSystem("single",Dpe)}var Ppe=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n,i){var a=Ec(t);r.prototype.init.apply(this,arguments),sV(t,a)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),sV(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}($e);function sV(r,e){var t=r.cellSize,n;re(t)?n=t:n=r.cellSize=[t,t],n.length===1&&(n[1]=n[0]);var i=ne([0,1],function(a){return Jte(e,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});os(r,e,{type:"box",ignoreSize:i})}var Npe=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){var a=this.group;a.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(t,s,a),this._renderLines(t,s,l,a),this._renderYearText(t,s,l,a),this._renderMonthText(t,u,l,a),this._renderWeekText(t,u,s,l,a)},e.prototype._renderDayRect=function(t,n,i){for(var a=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,f=new st({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(f)}},e.prototype._renderLines=function(t,n,i,a){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,h=0;f.time<=n.end.time;h++){d(f.formatedDate),h===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var v=f.date;v.setMonth(v.getMonth()+1),f=s.getDateInfo(v)}d(s.getNextNDay(n.end.time,1).formatedDate);function d(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var p=o._getLinePointsOfOneWeek(t,g,i);o._tlpoints.push(p[0]),o._blpoints.push(p[p.length-1]),u&&o._drawSplitline(p,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,i),l,a)},e.prototype._getEdgesPoints=function(t,n,i){var a=[t[0].slice(),t[t.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},e.prototype._drawSplitline=function(t,n,i){var a=new cn({z2:20,shape:{points:t},style:n});i.add(a)},e.prototype._getLinePointsOfOneWeek=function(t,n,i){for(var a=t.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,n){return me(t)&&t?qte(t,n):Me(t)?t(n):n.nameMap},e.prototype._yearTextPositionControl=function(t,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(a==="left"||a==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,n,i,a){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,h=i==="horizontal"?0:1,v={top:[c,u[h][1]],bottom:[c,u[1-h][1]],left:[u[1-h][0],f],right:[u[h][0],f]},d=n.start.y;+n.end.y>+n.start.y&&(d=d+"-"+n.end.y);var g=o.get("formatter"),p={start:n.start.y,end:n.end.y,nameMap:d},m=this._formatterLabel(g,p),y=new ut({z2:30,style:Ot(o,{text:m}),silent:o.get("silent")});y.attr(this._yearTextPositionControl(y,v[l],i,l,s)),a.add(y)}},e.prototype._monthTextPositionControl=function(t,n,i,a,o){var s="left",l="top",u=t[0],c=t[1];return i==="horizontal"?(c=c+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,n,i,a){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||me(s))&&(s&&(n=gb(s)||n),s=n.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=c==="center",g=o.get("silent"),p=0;p<f[h].length-1;p++){var m=f[h][p].slice(),y=this._firstDayOfMonth[p];if(d){var _=this._firstDayPoints[p];m[v]=(_[v]+f[0][p+1][v])/2}var w=o.get("formatter"),b=s[+y.m-1],x={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:b},S=this._formatterLabel(w,x),T=new ut({z2:30,style:$(Ot(o,{text:S}),this._monthTextPositionControl(m,d,i,u,l)),silent:g});a.add(T)}}},e.prototype._weekTextPositionControl=function(t,n,i,a,o){var s="center",l="middle",u=t[0],c=t[1],f=i==="start";return n==="horizontal"?(u=u+a+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+a+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,n,i,a,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),h=l.getFirstDayOfWeek();if(!c||me(c)){c&&(n=gb(c)||n);var v=n.get(["time","dayOfWeekShort"]);c=v||ne(n.get(["time","dayOfWeekAbbr"]),function(x){return x[0]})}var d=l.getNextNDay(i.end.time,7-i.lweek).time,g=[l.getCellWidth(),l.getCellHeight()];f=de(f,Math.min(g[1],g[0])),u==="start"&&(d=l.getNextNDay(i.start.time,-(7+i.fweek)).time,f=-f);for(var p=s.get("silent"),m=0;m<7;m++){var y=l.getNextNDay(d,m),_=l.dataToRect([y.time],!1).center,w=m;w=Math.abs((m+h)%7);var b=new ut({z2:30,style:$(Ot(s,{text:c[w]}),this._weekTextPositionControl(_,a,u,f,g)),silent:p});o.add(b)}}},e.type="calendar",e}(Zt),JT=864e5,Ope=function(){function r(e,t,n){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){e=ua(e);var t=e.getFullYear(),n=e.getMonth()+1,i=n<10?"0"+n:""+n,a=e.getDate(),o=a<10?"0"+a:""+a,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:i,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+i+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},r.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],a=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];N([0,1],function(f){c(a,f)&&(o[i[f]]=a[f]*s[f])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=mr(o,l);N([0,1],function(f){c(a,f)||(a[f]=u[i[f]]/s[f])});function c(f,h){return f[h]!=null&&f[h]!=="auto"}this._sw=a[0],this._sh=a[1]},r.prototype.dataToPoint=function(e,t){re(e)&&(e=e[0]),t==null&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,a=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+JT))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([i.start.time,a]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,t-1,i):this._getDateByWeeksAndDay(t,n-1,i)},r.prototype.convertToPixel=function(e,t,n){var i=lV(t);return i===this?i.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var i=lV(t);return i===this?i.pointToData(n):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(re(e)&&e.length===1&&(e=e[0]),re(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),a=i.date;a.setMonth(a.getMonth()+1);var o=this.getNextNDay(a,-1);t=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return process.env.NODE_ENV!=="production"&&Di("Invalid date range."),e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;t[0].time>t[1].time&&(n=!0,t.reverse());var i=Math.floor(t[1].time/JT)-Math.floor(t[0].time/JT)+1,a=new Date(t[0].time),o=a.getDate(),s=t[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-t[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-t[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+t[0].day+6)/7),f=n?-c+1:c-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:c,nthWeek:f,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||e===0&&t<i.fweek||e===i.weeks&&t>i.lweek)return null;var a=(e-1)*7-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},r.create=function(e,t){var n=[];return e.eachComponent("calendar",function(i){var a=new r(i);n.push(a),i.coordinateSystem=a}),e.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r}();function lV(r){var e=r.calendarModel,t=r.seriesModel,n=e?e.coordinateSystem:t?t.coordinateSystem:null;return n}function Rpe(r){r.registerComponentModel(Ppe),r.registerComponentView(Npe),r.registerCoordinateSystem("calendar",Ope)}function Vpe(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var n=e.parentOption;n?e.parentId=n.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function uV(r,e){var t;return N(e,function(n){r[n]!=null&&r[n]!=="auto"&&(t=!0)}),t}function zpe(r,e,t){var n=$({},t),i=r[e],a=t.$action||"merge";if(a==="merge")if(i){if(process.env.NODE_ENV!=="production"){var o=t.type;ke(!o||i.type===o,'Please set $action: "replace" to change `type`')}Ge(i,n,!0),os(i,n,{ignoreSize:!0}),G6(t,i),ry(t,i),ry(t,i,"shape"),ry(t,i,"style"),ry(t,i,"extra"),t.clipPath=i.clipPath}else r[e]=n;else a==="replace"?r[e]=n:a==="remove"&&i&&(r[e]=null)}var cV=["transition","enterFrom","leaveTo"],Bpe=cV.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function ry(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var n=t?cV:Bpe,i=0;i<n.length;i++){var a=n[i];r[a]==null&&e[a]!=null&&(r[a]=e[a])}}function Fpe(r,e){if(r&&(r.hv=e.hv=[uV(e,["left","right"]),uV(e,["top","bottom"])],r.type==="group")){var t=r,n=e;t.width==null&&(t.width=n.width=0),t.height==null&&(t.height=n.height=0)}}var Hpe=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,n){var i=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,n),this.option.elements=i},e.prototype.optionUpdated=function(t,n){var i=this.option,a=(n?i:t).elements,o=i.elements=n?[]:i.elements,s=[];this._flatten(a,s,null);var l=jI(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];N(l,function(c,f){var h=c.newOption;process.env.NODE_ENV!=="production"&&ke(Le(h)||c.existing,"Empty graphic option definition"),h&&(u.push(h),Vpe(c,h),zpe(o,f,h),Fpe(o[f],h))},this),i.elements=pt(o,function(c){return c&&delete c.$action,c!=null})},e.prototype._flatten=function(t,n,i){N(t,function(a){if(a){i&&(a.parentOption=i),n.push(a);var o=a.children;o&&o.length&&this._flatten(o,n,a),delete a.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}($e),fV={path:null,compoundPath:null,group:Re,image:Er,text:ut},ui=ot(),Gpe=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=Se()},e.prototype.render=function(t,n,i){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,i)},e.prototype._updateElements=function(t){var n=t.useElOptionsToUpdate();if(n){var i=this._elMap,a=this.group,o=t.get("z"),s=t.get("zlevel");N(n,function(l){var u=gr(l.id,null),c=u!=null?i.get(u):null,f=gr(l.parentId,null),h=f!=null?i.get(f):a,v=l.type,d=l.style;v==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var g=l.textContent,p=l.textConfig;if(d&&fR(d,v,!!p,!!g)){var m=hR(d,v,!0);!p&&m.textConfig&&(p=l.textConfig=m.textConfig),!g&&m.textContent&&(g=m.textContent)}var y=Wpe(l);process.env.NODE_ENV!=="production"&&c&&ke(h===c.parent,"Changing parent is not supported.");var _=l.$action||"merge",w=_==="merge",b=_==="replace";if(w){var x=!c,S=c;x?S=hV(u,h,l.type,i):(S&&(ui(S).isNew=!1),AR(S)),S&&(Ym(S,y,t,{isInit:x}),vV(S,l,o,s))}else if(b){ny(c,l,i,t);var T=hV(u,h,l.type,i);T&&(Ym(T,y,t,{isInit:!0}),vV(T,l,o,s))}else _==="remove"&&(wR(c,l),ny(c,l,i,t));var C=i.get(u);if(C&&g)if(w){var A=C.getTextContent();A?A.attr(g):C.setTextContent(new ut(g))}else b&&C.setTextContent(new ut(g));if(C){var M=l.clipPath;if(M){var k=M.type,L=void 0,x=!1;if(w){var P=C.getClipPath();x=!P||ui(P).type!==k,L=x?QT(k):P}else b&&(x=!0,L=QT(k));C.setClipPath(L),Ym(L,M,t,{isInit:x}),qm(L,M.keyframeAnimation,t)}var E=ui(C);C.setTextConfig(p),E.option=l,Zpe(C,t,l),Ml({el:C,componentModel:t,itemName:C.name,itemTooltipOption:l.tooltip}),qm(C,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,n){for(var i=t.option.elements,a=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],c=0;c<i.length;c++){var f=i[c],h=gr(f.id,null),v=h!=null?o.get(h):null;if(!(!v||!v.isGroup)){var d=v.parent,g=d===a,p=ui(v),m=ui(d);p.width=de(p.option.width,g?s:m.width)||0,p.height=de(p.option.height,g?l:m.height)||0}}for(var c=i.length-1;c>=0;c--){var f=i[c],h=gr(f.id,null),v=h!=null?o.get(h):null;if(v){var d=v.parent,m=ui(d),y=d===a?{width:s,height:l}:{width:m.width,height:m.height},_={},w=L0(v,f,y,null,{hv:f.hv,boundingMode:f.bounding},_);if(!ui(v).isNew&&w){for(var b=f.transition,x={},S=0;S<u.length;S++){var T=u[S],C=_[T];b&&(ou(b)||qe(b,T)>=0)?x[T]=C:v[T]=C}ht(v,x,t,0)}else v.attr(_)}}},e.prototype._clear=function(){var t=this,n=this._elMap;n.each(function(i){ny(i,ui(i).option,n,t._lastGraphicModel)}),this._elMap=Se()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Zt);function QT(r){process.env.NODE_ENV!=="production"&&ke(r,"graphic type MUST be set");var e=we(fV,r)?fV[r]:lb(r);process.env.NODE_ENV!=="production"&&ke(e,"graphic type "+r+" can not be found");var t=new e({});return ui(t).type=r,t}function hV(r,e,t,n){var i=QT(t);return e.add(i),n.set(r,i),ui(i).id=r,ui(i).isNew=!0,i}function ny(r,e,t,n){var i=r&&r.parent;i&&(r.type==="group"&&r.traverse(function(a){ny(a,e,t,n)}),Xm(r,e,n),t.removeKey(ui(r).id))}function vV(r,e,t,n){r.isGroup||N([["cursor",Kn.prototype.cursor],["zlevel",n||0],["z",t||0],["z2",0]],function(i){var a=i[0];we(e,a)?r[a]=Ve(e[a],i[1]):r[a]==null&&(r[a]=i[1])}),N(nt(e),function(i){if(i.indexOf("on")===0){var a=e[i];r[i]=Me(a)?a:null}}),we(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function Wpe(r){return r=$({},r),N(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(H6),function(e){delete r[e]}),r}function Zpe(r,e,t){var n=ze(r).eventData;!r.silent&&!r.ignore&&!n&&(n=ze(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),n&&(n.info=t.info)}function Upe(r){r.registerComponentModel(Hpe),r.registerComponentView(Gpe),r.registerPreprocessor(function(e){var t=e.graphic;re(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var dV=["x","y","radius","angle","single"],Ype=["cartesian2d","polar","singleAxis"];function Xpe(r){var e=r.get("coordinateSystem");return qe(Ype,e)>=0}function ws(r){return process.env.NODE_ENV!=="production"&&ke(r),r+"Axis"}function qpe(r,e){var t=Se(),n=[],i=Se();r.eachComponent({mainType:"dataZoom",query:e},function(c){i.get(c.uid)||s(c)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){i.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(h,v){var d=t.get(h);d&&d[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,h){(t.get(f)||t.set(f,[]))[h]=!0})}return n}function pV(r){var e=r.ecModel,t={infoList:[],infoMap:Se()};return r.eachTargetAxis(function(n,i){var a=e.getComponent(ws(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(a)}}}),t}var $T=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),Qv=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,n,i){var a=gV(t);this.settledOption=a,this.mergeDefaultAndTheme(t,i),this._doInit(a)},e.prototype.mergeOption=function(t){var n=gV(t);Ge(this.option,t,!0),Ge(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(t){var n=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;N([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),n=this._targetAxisInfoMap=Se(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var n=!1;return N(dV,function(i){var a=this.getReferringComponents(ws(i),V$);if(a.specified){n=!0;var o=new $T;N(a.models,function(s){o.add(s.componentIndex)}),t.set(i,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(t,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var h=new $T;if(h.add(f.componentIndex),t.set(c,h),a=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",fr).models[0];v&&N(u,function(d){f.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",fr).models[0]&&h.add(d.componentIndex)})}}}a&&N(dV,function(u){if(a){var c=i.findComponents({mainType:ws(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new $T;f.add(c[0].componentIndex),t.set(u,f),a=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(n){!t&&(t=n)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var n=this._rangePropMode,i=this.get("rangeMode");N([["start","startValue"],["end","endValue"]],function(a,o){var s=t[a[0]]!=null,l=t[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(n,i){t==null&&(t=this.ecModel.getComponent(ws(n),i))},this),t},e.prototype.eachTargetAxis=function(t,n){this._targetAxisInfoMap.each(function(i,a){N(i.indexList,function(o){t.call(n,a,o)})})},e.prototype.getAxisProxy=function(t,n){var i=this.getAxisModel(t,n);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(t,n){process.env.NODE_ENV!=="production"&&ke(t&&n!=null);var i=this._targetAxisInfoMap.get(t);if(i&&i.indexMap[n])return this.ecModel.getComponent(ws(t),n)},e.prototype.setRawRange=function(t){var n=this.option,i=this.settledOption;N([["start","startValue"],["end","endValue"]],function(a){(t[a[0]]!=null||t[a[1]]!=null)&&(n[a[0]]=i[a[0]]=t[a[0]],n[a[1]]=i[a[1]]=t[a[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var n=this.option;N(["start","startValue","end","endValue"],function(i){n[i]=t[i]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,n){if(t==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(t,n).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var o=i[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return process.env.NODE_ENV!=="production"&&ke(this._orient),this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}($e);function gV(r){var e={};return N(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var jpe=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(Qv),eA=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i,a){this.dataZoomModel=t,this.ecModel=n,this.api=i},e.type="dataZoom",e}(Zt),Kpe=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(eA),lf=N,mV=jn,Jpe=function(){function r(e,t,n,i){this._dimName=e,this._axisIndex=t,this.ecModel=i,this._dataZoomModel=n}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(Xpe(t)){var n=ws(this._dimName),i=t.getReferringComponents(n,fr).models[0];i&&this._axisIndex===i.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return Oe(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;lf(["start","end"],function(h,v){var d=e[h],g=e[h+"Value"];a[v]==="percent"?(d==null&&(d=o[v]),g=i.parse(wt(d,o,t))):(u=!0,g=g==null?t[v]:i.parse(g),d=wt(g,t,o)),l[v]=g==null||isNaN(g)?t[v]:g,s[v]=d==null||isNaN(d)?o[v]:d}),mV(l),mV(s);var c=this._minMaxSpan;u?f(l,s,t,o,!1):f(s,l,o,t,!0);function f(h,v,d,g,p){var m=p?"Span":"ValueSpan";nu(0,h,d,"all",c["min"+m],c["max"+m]);for(var y=0;y<2;y++)v[y]=wt(h[y],d,g,!0),p&&(v[y]=i.parse(v[y]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=Qpe(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var n=this._dimName,i=this.getTargetSeriesModels(),a=e.get("filterMode"),o=this._valueWindow;if(a==="none")return;lf(i,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(a==="weakFilter"){var f=u.getStore(),h=ne(c,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var d,g,p,m=0;m<c.length;m++){var y=f.get(h[m],v),_=!isNaN(y),w=y<o[0],b=y>o[1];if(_&&!w&&!b)return!0;_&&(p=!0),w&&(d=!0),b&&(g=!0)}return p&&d&&g})}else lf(c,function(v){if(a==="empty")l.setData(u=u.map(v,function(g){return s(g)?g:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});lf(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;lf(["min","max"],function(i){var a=t.get(i+"Span"),o=t.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=wt(n[0]+o,n,[0,100],!0):a!=null&&(o=wt(a,[0,100],n,!0)-n[0]),e[i+"Span"]=a,e[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=RI(n,[0,500]);i=Math.min(i,20);var a=e.axis.scale.rawExtentInfo;t[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),t[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},r}();function Qpe(r,e,t){var n=[1/0,-1/0];lf(t,function(o){kae(n,o.getData(),e)});var i=r.getAxisModel(),a=Tk(i.axis.scale,i,n).calculate();return[a.min,a.max]}var $pe={getTargetSeries:function(r){function e(i){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=r.getComponent(ws(o),s);i(o,s,l,a)})})}e(function(i,a,o,s){o.__dzAxisProxy=null});var t=[];e(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Jpe(i,a,s,r),t.push(o.__dzAxisProxy))});var n=Se();return N(t,function(i){N(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).reset(t)}),t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var n=t.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();t.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};function ege(r){r.registerAction("dataZoom",function(e,t){var n=qpe(t,e);N(n,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var yV=!1;function tA(r){yV||(yV=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,$pe),ege(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function tge(r){r.registerComponentModel(jpe),r.registerComponentView(Kpe),tA(r)}var ci=function(){function r(){}return r}(),_V={};function uf(r,e){_V[r]=e}function wV(r){return _V[r]}var rge=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;N(this.option.feature,function(n,i){var a=wV(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(t)),Ge(n,a.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}($e);function nge(r,e,t){var n=e.getBoxLayoutParams(),i=e.get("padding"),a={width:t.getWidth(),height:t.getHeight()},o=mr(n,a,i);kl(e.get("orient"),r,e.get("itemGap"),o.width,o.height),L0(r,n,a,i)}function bV(r,e){var t=Ic(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),r=new st({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var ige=function(r){Y(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,i,a){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),f=[];N(u,function(d,g){f.push(g)}),new io(this._featureNames||[],f).add(h).update(h).remove(He(h,null)).execute(),this._featureNames=f;function h(d,g){var p=f[d],m=f[g],y=u[p],_=new bt(y,t,t.ecModel),w;if(a&&a.newTitle!=null&&a.featureName===p&&(y.title=a.newTitle),p&&!m){if(age(p))w={onclick:_.option.onclick,featureName:p};else{var b=wV(p);if(!b)return;w=new b}c[p]=w}else if(w=c[m],!w)return;w.uid=Ac("toolbox-feature"),w.model=_,w.ecModel=n,w.api=i;var x=w instanceof ci;if(!p&&m){x&&w.dispose&&w.dispose(n,i);return}if(!_.get("show")||x&&w.unusable){x&&w.remove&&w.remove(n,i);return}v(_,w,p),_.setIconStatus=function(S,T){var C=this.option,A=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[S]=T,A[S]&&(T==="emphasis"?$a:eo)(A[S])},w instanceof ci&&w.render&&w.render(_,n,i,a)}function v(d,g,p){var m=d.getModel("iconStyle"),y=d.getModel(["emphasis","iconStyle"]),_=g instanceof ci&&g.getIcons?g.getIcons():d.get("icon"),w=d.get("title")||{},b,x;me(_)?(b={},b[p]=_):b=_,me(w)?(x={},x[p]=w):x=w;var S=d.iconPaths={};N(b,function(T,C){var A=Xh(T,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(m.getItemStyle());var M=A.ensureState("emphasis");M.style=y.getItemStyle();var k=new ut({style:{text:x[C],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:fb({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},n)},ignore:!0});A.setTextContent(k),Ml({el:A,componentModel:t,itemName:C,formatterParamsExtra:{title:x[C]}}),A.__title=x[C],A.on("mouseover",function(){var L=y.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";k.setStyle({fill:y.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),A.setTextConfig({position:y.get("textPosition")||P}),k.ignore=!t.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",C])!=="emphasis"&&i.leaveEmphasis(this),k.hide()}),(d.get(["iconStatus",C])==="emphasis"?$a:eo)(A),o.add(A),A.on("click",ye(g.onclick,g,n,i,C)),S[C]=A})}nge(o,t,i),o.add(bV(o.getBoundingRect(),t)),l||o.eachChild(function(d){var g=d.__title,p=d.ensureState("emphasis"),m=p.textConfig||(p.textConfig={}),y=d.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!Me(_)&&g){var w=_.style||(_.style={}),b=Ch(g,ut.makeFont(w)),x=d.x+o.x,S=d.y+o.y+s,T=!1;S+b.height>i.getHeight()&&(m.position="top",T=!0);var C=T?-5-b.height:s+10;x+b.width/2>i.getWidth()?(m.position=["100%",C],w.align="right"):x-b.width/2<0&&(m.position=[0,C],w.align="left")}})},e.prototype.updateView=function(t,n,i,a){N(this._features,function(o){o instanceof ci&&o.updateView&&o.updateView(o.model,n,i,a)})},e.prototype.remove=function(t,n){N(this._features,function(i){i instanceof ci&&i.remove&&i.remove(t,n)}),this.group.removeAll()},e.prototype.dispose=function(t,n){N(this._features,function(i){i instanceof ci&&i.dispose&&i.dispose(t,n)})},e.type="toolbox",e}(Zt);function age(r){return r.indexOf("my")===0}var oge=function(r){Y(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){var i=this.model,a=i.get("name")||t.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=Je.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var g=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var p=d.length,m=new Uint8Array(p);p--;)m[p]=d.charCodeAt(p);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var w=_.contentWindow,b=w.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),w.focus(),b.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var x=i.get("lang"),S='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',T=window.open();T.document.write(S),T.document.title=a}},e.getDefaultOption=function(t){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e}(ci),xV="__ec_magicType_stack__",sge=[["line","bar"],["stack"]],lge=function(r){Y(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,n=t.get("icon"),i={};return N(t.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},e.getDefaultOption=function(t){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},e.prototype.onclick=function(t,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(SV[i]){var s={series:[]},l=function(f){var h=f.subType,v=f.id,d=SV[i](h,v,f,a);d&&(Ne(d,f.option),s.series.push(d));var g=f.coordinateSystem;if(g&&g.type==="cartesian2d"&&(i==="line"||i==="bar")){var p=g.getAxesByScale("ordinal")[0];if(p){var m=p.dim,y=m+"Axis",_=f.getReferringComponents(y,fr).models[0],w=_.componentIndex;s[y]=s[y]||[];for(var b=0;b<=w;b++)s[y][w]=s[y][w]||{};s[y][w].boundaryGap=i==="bar"}}};N(sge,function(f){qe(f,i)>=0&&N(f,function(h){a.setIconStatus(h,"normal")})}),a.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=Ge({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(ci),SV={line:function(r,e,t,n){if(r==="bar")return Ge({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,e,t,n){if(r==="line")return Ge({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,e,t,n){var i=t.get("stack")===xV;if(r==="line"||r==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Ge({id:e,stack:i?"":xV},n.get(["option","stack"])||{},!0)}};ya({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var iy=new Array(60).join("-"),cf=" ";function uge(r){var e={},t=[],n=[];return r.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(i)}else t.push(i)}else t.push(i)}),{seriesGroupByCategoryAxis:e,other:t,meta:n}}function cge(r){var e=[];return N(r,function(t,n){var i=t.categoryAxis,a=t.valueAxis,o=a.dim,s=[" "].concat(ne(t.series,function(v){return v.name})),l=[i.model.getCategories()];N(t.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(g){return g}))});for(var u=[s.join(cf)],c=0;c<l[0].length;c++){for(var f=[],h=0;h<l.length;h++)f.push(l[h][c]);u.push(f.join(cf))}e.push(u.join(`
|
|
55
|
-
`))}),e.join(`
|
|
56
|
-
|
|
57
|
-
`+iy+`
|
|
58
|
-
|
|
59
|
-
`)}function fge(r){return ne(r,function(e){var t=e.getRawData(),n=[e.name],i=[];return t.each(t.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=t.getName(o),l=0;l<a-1;l++)i[l]=arguments[l];n.push((s?s+cf:"")+i.join(cf))}),n.join(`
|
|
60
|
-
`)}).join(`
|
|
61
|
-
|
|
62
|
-
`+iy+`
|
|
63
|
-
|
|
64
|
-
`)}function hge(r){var e=uge(r);return{value:pt([cge(e.seriesGroupByCategoryAxis),fge(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
|
|
65
|
-
|
|
66
|
-
`+iy+`
|
|
67
|
-
|
|
68
|
-
`),meta:e.meta}}function ay(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function vge(r){var e=r.slice(0,r.indexOf(`
|
|
69
|
-
`));if(e.indexOf(cf)>=0)return!0}var rA=new RegExp("["+cf+"]+","g");function dge(r){for(var e=r.split(/\n+/g),t=ay(e.shift()).split(rA),n=[],i=ne(t,function(l){return{name:l,data:[]}}),a=0;a<e.length;a++){var o=ay(e[a]).split(rA);n.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:n}}function pge(r){for(var e=r.split(/\n+/g),t=ay(e.shift()),n=[],i=0;i<e.length;i++){var a=ay(e[i]);if(a){var o=a.split(rA),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[i]={name:s,value:[]},l=n[i].value):l=n[i]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?n[i].value=l[0]:n[i]=l[0])}}return{name:t,data:n}}function gge(r,e){var t=r.split(new RegExp(`
|
|
70
|
-
*`+iy+`
|
|
71
|
-
*`,"g")),n={series:[]};return N(t,function(i,a){if(vge(i)){var o=dge(i),s=e[a],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=pge(i);n.series.push(o)}}),n}var mge=function(r){Y(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var i=n.getDom(),a=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=a.get("optionToContent"),h=a.get("contentToOption"),v=hge(t);if(Me(f)){var d=f(n.getOption());me(d)?u.innerHTML=d:js(d)&&u.appendChild(d)}else{c.readOnly=a.get("readOnly");var g=c.style;g.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",g.color=a.get("textColor"),g.borderColor=a.get("textareaBorderColor"),g.backgroundColor=a.get("textareaColor"),c.value=v.value,u.appendChild(c)}var p=v.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),w=document.createElement("div");y+=";background-color:"+a.get("buttonColor"),y+=";color:"+a.get("buttonTextColor");var b=this;function x(){i.removeChild(o),b._dom=null}N2(_,"click",x),N2(w,"click",function(){if(h==null&&f!=null||h!=null&&f==null){process.env.NODE_ENV!=="production"&&Xt("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),x();return}var S;try{Me(h)?S=h(u,n.getOption()):S=gge(c.value,p)}catch(T){throw x(),new Error("Data view format error "+T)}S&&n.dispatchAction({type:"changeDataView",newOption:S}),x()}),_.innerHTML=l[1],w.innerHTML=l[2],w.style.cssText=_.style.cssText=y,!a.get("readOnly")&&m.appendChild(w),m.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(m),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},e.prototype.remove=function(t,n){this._dom&&n.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.getDefaultOption=function(t){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},e}(ci);function yge(r,e){return ne(r,function(t,n){var i=e&&e[n];if(Le(i)&&!re(i)){var a=Le(t)&&!re(t);a||(t={value:t});var o=i.name!=null&&t.name==null;return t=Ne(t,i),o&&delete t.name,t}else return t})}ya({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];N(r.newOption.series,function(n){var i=e.getSeriesByName(n.name)[0];if(!i)t.push($({type:"scatter"},n));else{var a=i.get("data");t.push({name:n.name,data:yge(n.data,a)})}}),e.mergeOption(Ne({series:t},r.newOption))});var TV=N,AV=ot();function _ge(r,e){var t=nA(r);TV(e,function(n,i){for(var a=t.length-1;a>=0;a--){var o=t[a];if(o[i])break}if(a<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();t[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),t.push(e)}function wge(r){var e=nA(r),t=e[e.length-1];e.length>1&&e.pop();var n={};return TV(t,function(i,a){for(var o=e.length-1;o>=0;o--)if(i=e[o][a],i){n[a]=i;break}}),n}function bge(r){AV(r).snapshots=null}function xge(r){return nA(r).length}function nA(r){var e=AV(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Sge=function(r){Y(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){bge(t),n.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return n},e}(ci);ya({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var Tge=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],iA=function(){function r(e,t,n){var i=this;this._targetInfoList=[];var a=CV(t,e);N(Age,function(o,s){(!n||!n.include||qe(n.include,s)>=0)&&o(a,i._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=oA[n.brushType](0,a,i);n.__rangeOffset={offset:EV[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,n){N(e,function(i){var a=this.findTargetInfo(i,t);a&&a!==!0&&N(a.coordSyses,function(o){var s=oA[i.brushType](1,o,i.range,!0);n(i,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){N(e,function(n){var i=this.findTargetInfo(n,t);if(process.env.NODE_ENV!=="production"&&(ke(!i||i===!0||n.coordRange,"coordRange must be specified when coord index specified."),ke(!i||i!==!0||n.range,"range must be specified in global brush.")),n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=oA[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?EV[n.brushType](a.values,o.offset,Cge(a.xyMinMax,o.xyMinMax)):a.values}},this)},r.prototype.makePanelOpts=function(e,t){return ne(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:TO(i),isTargetByCursor:CO(i,e,n.coordSysModel),getLinearBrushOtherExtent:AO(i)}})},r.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return i===!0||i&&qe(i.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=CV(t,e),a=0;a<n.length;a++){var o=n[a],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<DV.length;l++)if(DV[l](i,o))return o}return!0},r}();function aA(r){return r[0]>r[1]&&r.reverse(),r}function CV(r,e){return Lh(r,e,{includeMainTypes:Tge})}var Age={grid:function(r,e){var t=r.xAxisModels,n=r.yAxisModels,i=r.gridModels,a=Se(),o={},s={};!t&&!n&&!i||(N(t,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),N(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),N(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];N(u.getCartesians(),function(f,h){(qe(t,f.getAxis("x").model)>=0||qe(n,f.getAxis("y").model)>=0)&&c.push(f)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:MV.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){N(r.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:MV.geo})})}},DV=[function(r,e){var t=r.xAxisModel,n=r.yAxisModel,i=r.gridModel;return!i&&t&&(i=t.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],MV={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(Dl(r)),e}},oA={lineX:He(IV,0),lineY:He(IV,1),rect:function(r,e,t,n){var i=r?e.pointToData([t[0][0],t[1][0]],n):e.dataToPoint([t[0][0],t[1][0]],n),a=r?e.pointToData([t[0][1],t[1][1]],n):e.dataToPoint([t[0][1],t[1][1]],n),o=[aA([i[0],a[0]]),aA([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=ne(t,function(o){var s=r?e.pointToData(o,n):e.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function IV(r,e,t,n){process.env.NODE_ENV!=="production"&&ke(t.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var i=t.getAxis(["x","y"][r]),a=aA(ne([0,1],function(s){return e?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[r]=a,o[1-r]=[NaN,NaN],{values:a,xyMinMax:o}}var EV={lineX:He(LV,0),lineY:He(LV,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return ne(r,function(n,i){return[n[0]-t[0]*e[i][0],n[1]-t[1]*e[i][1]]})}};function LV(r,e,t,n){return[e[0]-n[r]*t[0],e[1]-n[r]*t[1]]}function Cge(r,e){var t=kV(r),n=kV(e),i=[t[0]/n[0],t[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function kV(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var sA=N,Dge=k$("toolbox-dataZoom_"),Mge=function(r){Y(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,i,a){this._brushController||(this._brushController=new iT(i.getZr()),this._brushController.on("brush",ye(this._onBrush,this)).mount()),Lge(t,n,this,a,i),Ege(t,n)},e.prototype.onclick=function(t,n,i){Ige[i].call(this)},e.prototype.remove=function(t,n){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,n){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var n=t.areas;if(!t.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new iA(lA(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,c,f){if(f.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[h],f,c)}}),_ge(a,i),this._dispatchZoomAction(i);function s(u,c,f){var h=c.getAxis(u),v=h.model,d=l(u,v,a),g=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(f=nu(0,f.slice(),h.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),d&&(i[d.id]={dataZoomId:d.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var h;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,c.componentIndex);d&&(h=v)}),h}},e.prototype._dispatchZoomAction=function(t){var n=[];sA(t,function(i,a){n.push(Oe(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(t){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},e}(ci),Ige={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(wge(this.ecModel))}};function lA(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function Ege(r,e){r.setIconStatus("back",xge(e)>1?"emphasis":"normal")}function Lge(r,e,t,n,i){var a=t._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),t._isZoomActive=a,r.setIconStatus("zoom",a?"emphasis":"normal");var o=new iA(lA(r),e,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}nre("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var n=e.getModel(t),i=[],a=lA(n),o=Lh(r,a);sA(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),sA(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:Dge+u+f};h[c]=f,i.push(h)}return i});function kge(r){r.registerComponentModel(rge),r.registerComponentView(ige),uf("saveAsImage",oge),uf("magicType",lge),uf("dataView",mge),uf("dataZoom",Mge),uf("restore",Sge),je(tge)}var Pge=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}($e);function PV(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function NV(r){if(Je.domSupported){for(var e=document.documentElement.style,t=0,n=r.length;t<n;t++)if(r[t]in e)return r[t]}}var OV=NV(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Nge=NV(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function RV(r,e){if(!r)return e;e=z6(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function Oge(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?t[e]:null}var Rge=RV(Nge,"transition"),uA=RV(OV,"transform"),Vge="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Je.transform3dSupported?"will-change:transform;":"");function zge(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function Bge(r,e,t){if(!me(t)||t==="inside")return"";var n=r.get("backgroundColor"),i=r.get("borderWidth");e=El(e);var a=zge(t),o=Math.max(Math.round(i)*1.5,6),s="",l=uA+":",u;qe(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-f)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=e+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+g.join("")+'"></div>'}function Fge(r,e){var t="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+t,i="opacity"+n+",visibility"+n;return e||(n=" "+r+"s "+t,i+=Je.transformSupported?","+uA+n:",left"+n+",top"+n),Rge+":"+i}function VV(r,e,t){var n=r.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!Je.transformSupported)return t?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=Je.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return t?"top:0;left:0;"+uA+":"+o+";":[["top",0],["left",0],[OV,o]]}function Hge(r){var e=[],t=r.get("fontSize"),n=r.getTextColor();n&&e.push("color:"+n),e.push("font:"+r.getFont());var i=Ve(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+i+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),N(["decoration","align"],function(u){var c=r.get(u);c&&e.push("text-"+u+":"+c)}),e.join(";")}function Gge(r,e,t){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),f=G3(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),e&&i&&n.push(Fge(i,t)),a&&n.push("background-color:"+a),N(["width","color","radius"],function(v){var d="border-"+v,g=z6(d),p=r.get(g);p!=null&&n.push(d+":"+p+(v==="color"?"":"px"))}),n.push(Hge(c)),f!=null&&n.push("padding:"+Ic(f).join("px ")+"px"),n.join(";")+";"}function zV(r,e,t,n,i){var a=e&&e.painter;if(t){var o=a&&a.getViewportRoot();o&&aQ(r,o,t,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var Wge=function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Je.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=t.appendTo,o=a&&(me(a)?document.querySelector(a):js(a)?a:Me(a)&&a(e.getDom()));zV(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();Yn(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=Oge(t,"position"),i=t.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=Vge+Gge(e,!this._firstShow,this._longHide)+VV(a[0],a[1],!0)+("border-color:"+El(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(me(a)&&n.get("trigger")==="item"&&!PV(n)&&(s=Bge(n,i,a)),me(e))o.innerHTML=e+s;else if(e){o.innerHTML="",re(e)||(e=[e]);for(var l=0;l<e.length;l++)js(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(zV(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var i=this.el.style,a=VV(n[0],n[1]);N(a,function(o){i[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",Je.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ye(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},r}(),Zge=function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),FV(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,n,i,a){var o=this;Le(e)&>(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new ut({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:G3(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),N(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),N(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=BV(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},r.prototype.moveTo=function(e,t){var n=this.el;if(n){var i=this._styleCoord;FV(i,this._zr,e,t),e=i[0],t=i[1];var a=n.style,o=bs(a.borderWidth||0),s=BV(a);n.x=e+o+s.left,n.y=t+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ye(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function bs(r){return Math.max(0,r)}function BV(r){var e=bs(r.shadowBlur||0),t=bs(r.shadowOffsetX||0),n=bs(r.shadowOffsetY||0);return{left:bs(e-t),right:bs(e+t),top:bs(e-n),bottom:bs(e+n)}}function FV(r,e,t,n){r[0]=t,r[1]=n,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var Uge=new st({shape:{x:-1,y:-1,width:2,height:2}}),Yge=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){if(!(Je.node||!n.getDom())){var i=t.getComponent("tooltip"),a=this._renderMode=B$(i.get("renderMode"));this._tooltipContent=a==="richText"?new Zge(n):new Wge(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(t,n,i){if(!(Je.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(t),a.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?zc(this,"_updatePosition",50,"fixRate"):av(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,n=t.get("triggerOn");YR("itemTooltip",this._api,ye(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,n=this._ecModel,i=this._api,a=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(t,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,n,i,a){if(!(a.from===this.uid||Je.node||!i.getDom())){var o=HV(a,i);this._ticket="";var s=a.dataByCoordSys,l=Kge(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=Uge;c.x=a.x,c.y=a.y,c.update(),ze(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(t,n,i,a))return;var f=qR(a,n),h=f.point[0],v=f.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(t,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(HV(a,i))},e.prototype._manuallyAxisShowTip=function(t,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=$v([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(t,n){var i=t.target,a=this._tooltipModel;if(a){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(i){var s=ze(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Rl(i,function(c){if(ze(c).dataIndex!=null)return l=c,!0;if(ze(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(t,l,n):u?this._showComponentItemTooltip(t,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(t,n){var i=t.get("showDelay");n=ye(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(t,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=$v([n.tooltipOption],a),l=this._renderMode,u=[],c=Sr("section",{blocks:[],noHeader:!0}),f=[],h=new Ub;N(t,function(y){N(y.dataByAxis,function(_){var w=i.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!w||b==null)){var x=FR(b,w.axis,i,_.seriesDataIndices,_.valueLabelOpt),S=Sr("section",{header:x,noHeader:!Mi(x),sortBlocks:!0,blocks:[]});c.blocks.push(S),N(_.seriesDataIndices,function(T){var C=i.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,M=C.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Cx(w.axis,{value:b}),M.axisValueLabel=x,M.marker=h.makeTooltipMarker("item",El(M.color),l);var k=x3(C.formatTooltip(A,!0,null)),L=k.frag;if(L){var P=$v([C],a).get("valueFormatter");S.blocks.push(P?$({valueFormatter:P},L):L)}k.text&&f.push(k.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var v=n.position,d=s.get("order"),g=B3(c,h,l,d,i.get("useUTC"),s.get("textStyle"));g&&f.unshift(g);var p=l==="richText"?`
|
|
72
|
-
|
|
73
|
-
`:"<br/>",m=f.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,h)})},e.prototype._showSeriesItemTooltip=function(t,n,i){var a=this._ecModel,o=ze(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),v=this._renderMode,d=t.positionDefault,g=$v([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var m=u.getDataParams(c,f),y=new Ub;m.marker=y.makeTooltipMarker("item",El(m.color),v);var _=x3(u.formatTooltip(c,!1,f)),w=g.get("order"),b=g.get("valueFormatter"),x=_.frag,S=x?B3(b?$({valueFormatter:b},x):x,y,v,w,a.get("useUTC"),g.get("textStyle")):_.text,T="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,S,m,T,t.offsetX,t.offsetY,t.position,t.target,y)}),i({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,n,i){var a=this._renderMode==="html",o=ze(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(me(l)){var c=l;l={content:c,formatter:c},u=!0}u&&a&&l.content&&(l=Oe(l),l.content=nn(l.content));var f=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&f.push(h),f.push({formatter:l.content});var v=t.positionDefault,d=$v(f,this._tooltipModel,v?{position:v}:null),g=d.get("content"),p=Math.random()+"",m=new Ub;this._showOrMove(d,function(){var y=Oe(d.get("formatterParams")||{});this._showTooltipContent(d,g,y,p,t.offsetX,t.offsetY,t.position,n,m)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,n,i,a,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var f=this._tooltipContent;f.setEnterable(t.get("enterable"));var h=t.get("formatter");l=l||t.get("position");var v=n,d=this._getNearestPoint([o,s],i,t.get("trigger"),t.get("borderColor")),g=d.color;if(h)if(me(h)){var p=t.ecModel.get("useUTC"),m=re(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=T0(m.axisValue,v,p)),v=F6(v,i,!0)}else if(Me(h)){var _=ye(function(w,b){w===this._ticket&&(f.setContent(b,c,t,g,l),this._updatePosition(t,l,o,s,f,i,u))},this);this._ticket=a,v=h(i,a,_)}else v=h;f.setContent(v,c,t,g,l),f.show(t,g),this._updatePosition(t,l,o,s,f,i,u)}},e.prototype._getNearestPoint=function(t,n,i,a){if(i==="axis"||re(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!re(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(t,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||t.get("position");var f=o.getSize(),h=t.get("align"),v=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),Me(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),re(n))i=de(n[0],u),a=de(n[1],c);else if(Le(n)){var g=n;g.width=f[0],g.height=f[1];var p=mr(g,{width:u,height:c});i=p.x,a=p.y,h=null,v=null}else if(me(n)&&l){var m=jge(n,d,f,t.get("borderWidth"));i=m[0],a=m[1]}else{var m=Xge(i,a,o,u,c,h?null:20,v?null:20);i=m[0],a=m[1]}if(h&&(i-=GV(h)?f[0]/2:h==="right"?f[0]:0),v&&(a-=GV(v)?f[1]/2:v==="bottom"?f[1]:0),PV(t)){var m=qge(i,a,o,u,c);i=m[0],a=m[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(t,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===t.length;return o&&N(i,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&N(u,function(h,v){var d=f[v]||{},g=h.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&g.length===p.length,o&&N(g,function(m,y){var _=p[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&N(h.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],w=a[y];_&&w&&w.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=n,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,n){Je.node||!n.getDom()||(av(this,"_updatePosition"),this._tooltipContent.dispose(),UT("itemTooltip",n))},e.type="tooltip",e}(Zt);function $v(r,e,t){var n=e.ecModel,i;t?(i=new bt(t,n,n),i=new bt(e.option,i,n)):i=e;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof bt&&(o=o.get("tooltip",!0)),me(o)&&(o={formatter:o}),o&&(i=new bt(o,i,n)))}return i}function HV(r,e){return r.dispatchAction||ye(e.dispatchAction,e)}function Xge(r,e,t,n,i,a,o){var s=t.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>n?r-=l+a:r+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[r,e]}function qge(r,e,t,n,i){var a=t.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,e=Math.min(e+s,i)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function jge(r,e,t,n){var i=t[0],a=t[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,c=e.height;switch(r){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+o;break;case"left":s=e.x-i-o,l=e.y+c/2-a/2;break;case"right":s=e.x+u+o,l=e.y+c/2-a/2}return[s,l]}function GV(r){return r==="center"||r==="middle"}function Kge(r,e,t){var n=Tw(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=kh(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=ze(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function Jge(r){je(Jv),r.registerComponentModel(Pge),r.registerComponentView(Yge),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},nr),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},nr)}var Qge=["rect","polygon","keep","clear"];function $ge(r,e){var t=St(r?r.brush:[]);if(t.length){var n=[];N(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=r&&r.toolbox;re(i)&&(i=i[0]),i||(i={feature:{}},r.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),e0e(s),e&&!s.length&&s.push.apply(s,Qge)}}function e0e(r){var e={};N(r,function(t){e[t]=1}),r.length=0,N(e,function(t,n){r.push(n)})}var WV=N;function ZV(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function cA(r,e,t){var n={};return WV(e,function(a){var o=n[a]=i();WV(r[a],function(s,l){if(Ar.isValidType(l)){var u={type:l,visual:s};t&&t(u,a),o[l]=new Ar(u),l==="opacity"&&(u=Oe(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Ar(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function UV(r,e,t){var n;N(t,function(i){e.hasOwnProperty(i)&&ZV(e[i])&&(n=!0)}),n&&N(t,function(i){e.hasOwnProperty(i)&&ZV(e[i])?r[i]=Oe(e[i]):delete r[i]})}function t0e(r,e,t,n,i,a){var o={};N(r,function(f){var h=Ar.prepareVisualTypes(e[f]);o[f]=h});var s;function l(f){return jb(t,s,f)}function u(f,h){cL(t,s,f,h)}t.each(c);function c(f,h){s=f;var v=t.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var d=n.call(i,f),g=e[d],p=o[d],m=0,y=p.length;m<y;m++){var _=p[m];g[_]&&g[_].applyVisual(f,l,u)}}}function r0e(r,e,t,n){var i={};return N(r,function(a){var o=Ar.prepareVisualTypes(e[a]);i[a]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(b){return jb(s,f,b)}function c(b,x){cL(s,f,b,x)}for(var f,h=s.getStore();(f=o.next())!=null;){var v=s.getRawDataItem(f);if(!(v&&v.visualMap===!1))for(var d=n!=null?h.get(l,f):f,g=t(d),p=e[g],m=i[g],y=0,_=m.length;y<_;y++){var w=m[y];p[w]&&p[w].applyVisual(d,u,c)}}}}}function n0e(r){var e=r.brushType,t={point:function(n){return YV[e].point(n,t,r)},rect:function(n){return YV[e].rect(n,t,r)}};return t}var YV={lineX:XV(0),lineY:XV(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&Gl(t.range,r[0],r[1])},rect:function(r,e,t){var n=t.range;if(!r||n.length<=1)return!1;var i=r.x,a=r.y,o=r.width,s=r.height,l=n[0];if(Gl(n,i,a)||Gl(n,i+o,a)||Gl(n,i,a+s)||Gl(n,i+o,a+s)||Ue.create(r).contain(l[0],l[1])||qh(i,a,i+o,a,n)||qh(i,a,i,a+s,n)||qh(i+o,a,i+o,a+s,n)||qh(i,a+s,i+o,a+s,n))return!0}}};function XV(r){var e=["x","y"],t=["width","height"];return{point:function(n,i,a){if(n){var o=a.range,s=n[r];return ed(s,o)}},rect:function(n,i,a){if(n){var o=a.range,s=[n[e[r]],n[e[r]]+n[t[r]]];return s[1]<s[0]&&s.reverse(),ed(s[0],o)||ed(s[1],o)||ed(o[0],s)||ed(o[1],s)}}}}function ed(r,e){return e[0]<=r&&r<=e[1]}var qV=["inBrush","outOfBrush"],fA="__ecBrushSelect",hA="__ecInBrushSelectEvent";function jV(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new iA(e.option,r);t.setInputRanges(e.areas,r)})}function i0e(r,e,t){var n=[],i,a;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),jV(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:Oe(o.areas),selected:[]};n.push(l);var u=o.option,c=u.brushLink,f=[],h=[],v=[],d=!1;s||(i=u.throttleType,a=u.throttleDelay);var g=ne(o.areas,function(b){var x=l0e[b.brushType],S=Ne({boundingRect:x?x(b):void 0},b);return S.selectors=n0e(S),S}),p=cA(o.option,qV,function(b){b.mappingMethod="fixed"});re(c)&&N(c,function(b){f[b]=1});function m(b){return c==="all"||!!f[b]}function y(b){return!!b.length}r.eachSeries(function(b,x){var S=v[x]=[];b.subType==="parallel"?_(b,x):w(b,x,S)});function _(b,x){var S=b.coordinateSystem;d=d||S.hasAxisBrushed(),m(x)&&S.eachActiveState(b.getData(),function(T,C){T==="active"&&(h[C]=1)})}function w(b,x,S){if(!(!b.brushSelector||s0e(o,x))&&(N(g,function(C){o.brushTargetManager.controlSeries(C,b,r)&&S.push(C),d=d||y(S)}),m(x)&&y(S))){var T=b.getData();T.each(function(C){KV(b,S,T,C)&&(h[C]=1)})}}r.eachSeries(function(b,x){var S={seriesId:b.id,seriesIndex:x,seriesName:b.name,dataIndex:[]};l.selected.push(S);var T=v[x],C=b.getData(),A=m(x)?function(M){return h[M]?(S.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return KV(b,T,C,M)?(S.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"};(m(x)?d:y(T))&&t0e(qV,p,C,A)})}),a0e(e,i,a,n,t)}function a0e(r,e,t,n,i){if(i){var a=r.getZr();if(!a[hA]){a[fA]||(a[fA]=o0e);var o=zc(a,fA,t,e);o(r,n)}}}function o0e(r,e){if(!r.isDisposed()){var t=r.getZr();t[hA]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[hA]=!1}}function KV(r,e,t,n){for(var i=0,a=e.length;i<a;i++){var o=e[i];if(r.brushSelector(n,t,o.selectors,o))return!0}}function s0e(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(re(t)?qe(t,e)<0:e!==t)}var l0e={rect:function(r){return JV(r.range)},polygon:function(r){for(var e,t=r.range,n=0,i=t.length;n<i;n++){e=e||[[1/0,-1/0],[1/0,-1/0]];var a=t[n];a[0]<e[0][0]&&(e[0][0]=a[0]),a[0]>e[0][1]&&(e[0][1]=a[0]),a[1]<e[1][0]&&(e[1][0]=a[1]),a[1]>e[1][1]&&(e[1][1]=a[1])}return e&&JV(e)}};function JV(r){return new Ue(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var u0e=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n,this.model,(this._brushController=new iT(n.getZr())).on("brush",ye(this._onBrush,this)).mount()},e.prototype.render=function(t,n,i,a){this.model=t,this._updateController(t,n,i,a)},e.prototype.updateTransform=function(t,n,i,a){jV(n),this._updateController(t,n,i,a)},e.prototype.updateVisual=function(t,n,i,a){this.updateTransform(t,n,i,a)},e.prototype.updateView=function(t,n,i,a){this._updateController(t,n,i,a)},e.prototype._updateController=function(t,n,i,a){(!a||a.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(i)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:Oe(i),$from:n}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Oe(i),$from:n})},e.type="brush",e}(Zt),c0e="#ddd",f0e=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,n){var i=this.option;!n&&UV(i,t,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:c0e},a.hasOwnProperty("liftZ")||(a.liftZ=5)},e.prototype.setAreas=function(t){process.env.NODE_ENV!=="production"&&(ke(re(t)),N(t,function(n){ke(n.brushType,"Illegal areas")})),t&&(this.areas=ne(t,function(n){return QV(this.option,n)},this))},e.prototype.setBrushOption=function(t){this.brushOption=QV(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}($e);function QV(r,e){return Ge({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new bt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var h0e=["rect","polygon","lineX","lineY","keep","clear"],v0e=function(r){Y(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,N(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},e.prototype.updateView=function(t,n,i){this.render(t,n,i)},e.prototype.getIcons=function(){var t=this.model,n=t.get("icon",!0),i={};return N(t.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},e.prototype.onclick=function(t,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var n={show:!0,type:h0e.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return n},e}(ci);function d0e(r){r.registerComponentView(u0e),r.registerComponentModel(f0e),r.registerPreprocessor($ge),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,i0e),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(n){n.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},nr),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},nr),uf("brush",v0e)}var p0e=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}($e),g0e=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){if(this.group.removeAll(),!!t.get("show")){var a=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Ve(t.get("textBaseline"),t.get("textVerticalAlign")),c=new ut({style:Ot(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=t.get("subtext"),v=new ut({style:Ot(s,{text:h,fill:s.getTextColor(),y:f.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),g=t.get("sublink"),p=t.get("triggerEvent",!0);c.silent=!d&&!p,v.silent=!g&&!p,d&&c.on("click",function(){I0(d,"_"+t.get("target"))}),g&&v.on("click",function(){I0(g,"_"+t.get("subtarget"))}),ze(c).eventData=ze(v).eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,a.add(c),h&&a.add(v);var m=a.getBoundingRect(),y=t.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=mr(y,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var w={align:l,verticalAlign:u};c.setStyle(w),v.setStyle(w),m=a.getBoundingRect();var b=_.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var S=new st({shape:{x:m.x-b[3],y:m.y-b[0],width:m.width+b[1]+b[3],height:m.height+b[0]+b[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(S)}},e.type="title",e}(Zt);function m0e(r){r.registerComponentModel(p0e),r.registerComponentView(g0e)}var $V=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,n,i){this.mergeDefaultAndTheme(t,i),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var n=this._data.count();this.option.loop?t=(t%n+n)%n:(t>=n&&(t=n-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,n=t.data||[],i=t.axisType,a=this._names=[],o;i==="category"?(o=[],N(n,function(u,c){var f=gr(vc(u),""),h;Le(u)?(h=Oe(u),h.value=c):h=c,o.push(h),a.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new fn([{name:"value",type:s}],this);l.initData(o,a)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}($e),e7=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=is($V.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}($V);lr(e7,O0.prototype);var y0e=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Zt),_0e=function(r){Y(e,r);function e(t,n,i,a){var o=r.call(this,t,n,i)||this;return o.type=a||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(Bi),vA=Math.PI,t7=ot(),w0e=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){this.api=n},e.prototype.render=function(t,n,i){if(this.model=t,this.api=i,this.ecModel=n,this.group.removeAll(),t.get("show",!0)){var a=this._layout(t,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Sr("nameValue",{noName:!0,value:c})},N(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,t)},this),this._renderAxisLabel(a,s,l,t),this._position(a,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,n){var i=t.get(["label","position"]),a=t.get("orient"),o=x0e(t,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":me(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:vA/2},f=a==="vertical"?o.height:o.width,h=t.getModel("controlStyle"),v=h.get("show",!0),d=v?h.get("itemSize"):0,g=v?h.get("itemGap"):0,p=d+g,m=t.get(["label","rotate"])||0;m=m*vA/180;var y,_,w,b=h.get("position",!0),x=v&&h.get("showPlayBtn",!0),S=v&&h.get("showPrevBtn",!0),T=v&&h.get("showNextBtn",!0),C=0,A=f;b==="left"||b==="bottom"?(x&&(y=[0,0],C+=p),S&&(_=[C,0],C+=p),T&&(w=[A-d,0],A-=p)):(x&&(y=[A-d,0],A-=p),S&&(_=[0,0],C+=p),T&&(w=[A-d,0],A-=p));var M=[C,A];return t.get("inverse")&&M.reverse(),{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:m,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[a],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[a],playPosition:y,prevBtnPosition:_,nextBtnPosition:w,axisExtent:M,controlSize:d,controlGap:g}},e.prototype._position=function(t,n){var i=this._mainGroup,a=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=En(),l=o.x,u=o.y+o.height;ia(s,s,[-l,-u]),el(s,s,-vA/2),ia(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=y(o),f=y(i.getBoundingRect()),h=y(a.getBoundingRect()),v=[i.x,i.y],d=[a.x,a.y];d[0]=v[0]=c[0][0];var g=t.labelPosOpt;if(g==null||me(g)){var p=g==="+"?0:1;_(v,f,c,1,p),_(d,h,c,1,1-p)}else{var p=g>=0?0:1;_(v,f,c,1,p),d[1]=v[1]+g}i.setPosition(v),a.setPosition(d),i.rotation=a.rotation=t.rotation,m(i),m(a);function m(w){w.originX=c[0][0]-w.x,w.originY=c[1][0]-w.y}function y(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function _(w,b,x,S,T){w[S]+=x[S][T]-b[S][T]}},e.prototype._createAxis=function(t,n){var i=n.getData(),a=n.get("axisType"),o=b0e(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new _0e("value",o,t.axisExtent,a);return l.model=n,l},e.prototype._createGroup=function(t){var n=this[t]=new Re;return this.group.add(n),n},e.prototype._renderAxisLine=function(t,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new br({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:$({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new br({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Ne({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},e.prototype._renderAxisTick=function(t,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],N(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),h=f.getModel("itemStyle"),v=f.getModel(["emphasis","itemStyle"]),d=f.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:ye(o._changeTimeline,o,u.value)},p=r7(f,h,n,g);p.ensureState("emphasis").style=v.getItemStyle(),p.ensureState("progress").style=d.getItemStyle(),xl(p);var m=ze(p);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=a):m.dataIndex=m.dataModel=null,o._tickSymbols.push(p)})},e.prototype._renderAxisLabel=function(t,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],N(u,function(c){var f=c.tickValue,h=l.getItemModel(f),v=h.getModel("label"),d=h.getModel(["emphasis","label"]),g=h.getModel(["progress","label"]),p=i.dataToCoord(c.tickValue),m=new ut({x:p,y:0,rotation:t.labelRotation-t.rotation,onclick:ye(o._changeTimeline,o,f),silent:!1,style:Ot(v,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});m.ensureState("emphasis").style=Ot(d),m.ensureState("progress").style=Ot(g),n.add(m),xl(m),t7(m).dataIndex=f,o._tickLabels.push(m)})}},e.prototype._renderControl=function(t,n,i,a){var o=t.controlSize,s=t.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);h(t.nextBtnPosition,"next",ye(this._changeTimeline,this,f?"-":"+")),h(t.prevBtnPosition,"prev",ye(this._changeTimeline,this,f?"+":"-")),h(t.playPosition,c?"stop":"play",ye(this._handlePlayClick,this,!c),!0);function h(v,d,g,p){if(v){var m=Li(Ve(a.get(["controlStyle",d+"BtnSize"]),o),o),y=[0,-m/2,m,m],_=S0e(a,d+"Icon",y,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:p?-s:0,rectHover:!0,style:l,onclick:g});_.ensureState("emphasis").style=u,n.add(_),xl(_)}}},e.prototype._renderCurrentPointer=function(t,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=ye(u._handlePointerDrag,u),f.ondragend=ye(u._handlePointerDragend,u),n7(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){n7(f,u._progressLine,s,i,a)}};this._currentPointer=r7(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,n){var i=this._toAxisCoord(t)[0],a=this._axis,o=jn(a.getExtent().slice());i>o[1]&&(i=o[1]),i<o[0]&&(i=o[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=i,s.dirty());var l=this._findNearestTick(i),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=t.model;t._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var n=this._mainGroup.getLocalTransform();return Ri(t,n,!0)},e.prototype._findNearestTick=function(t){var n=this.model.getData(),i=1/0,a,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-t);c<i&&(i=c,a=l)}),a},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var n=this.model.getCurrentIndex();t==="+"?t=n+1:t==="-"&&(t=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),n=this._tickSymbols,i=this._tickLabels;if(n)for(var a=0;a<n.length;a++)n&&n[a]&&n[a].toggleState("progress",a<t);if(i)for(var a=0;a<i.length;a++)i&&i[a]&&i[a].toggleState("progress",t7(i[a]).dataIndex<=t)},e.type="timeline.slider",e}(y0e);function b0e(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new am({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new Tx({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new oo}}function x0e(r,e){return mr(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},r.get("padding"))}function S0e(r,e,t,n){var i=n.style,a=Xh(r.get(["controlStyle",e]),n||{},new Ue(t[0],t[1],t[2],t[3]));return i&&a.setStyle(i),a}function r7(r,e,t,n,i,a){var o=e.get("color");if(i)i.setColor(o),t.add(i),a&&a.onUpdate(i);else{var s=r.get("symbol");i=vr(s,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),t.add(i),a&&a.onCreate(i)}var l=e.getItemStyle(["color"]);i.setStyle(l),n=Ge({rectHover:!0,z2:100},n,!0);var u=Fc(r.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=Vl(r.get("symbolOffset"),u);c&&(n.x=(n.x||0)+c[0],n.y=(n.y||0)+c[1]);var f=r.get("symbolRotate");return n.rotation=(f||0)*Math.PI/180||0,i.attr(n),i.updateTransform(),i}function n7(r,e,t,n,i,a){if(!r.dragging){var o=i.getModel("checkpointStyle"),s=n.dataToCoord(i.getData().get("value",t));if(a||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function T0e(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,n){var i=t.getComponent("timeline");return i&&e.currentIndex!=null&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Ne({currentIndex:i.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var n=t.getComponent("timeline");n&&e.playState!=null&&n.setPlayState(e.playState)})}function A0e(r){var e=r&&r.timeline;re(e)||(e=e?[e]:[]),N(e,function(t){t&&C0e(t)})}function C0e(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),i7(r),lu(r,"controlPosition")){var n=r.controlStyle||(r.controlStyle={});lu(n,"position")||(n.position=r.controlPosition),n.position==="none"&&!lu(n,"show")&&(n.show=!1,delete n.position),delete r.controlPosition}N(r.data||[],function(i){Le(i)&&!re(i)&&(!lu(i,"value")&&lu(i,"name")&&(i.value=i.name),i7(i))})}function i7(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),n=r.label||r.label||{},i=n.normal||(n.normal={}),a={normal:1,emphasis:1};N(n,function(o,s){!a[s]&&!lu(i,s)&&(i[s]=o)}),t.label&&!lu(n,"emphasis")&&(n.emphasis=t.label,delete t.label)}function lu(r,e){return r.hasOwnProperty(e)}function D0e(r){r.registerComponentModel(e7),r.registerComponentView(w0e),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),T0e(r),r.registerPreprocessor(A0e)}function dA(r,e){if(!r)return!1;for(var t=re(r)?r:[r],n=0;n<t.length;n++)if(t[n]&&t[n][e])return!0;return!1}function oy(r){ll(r,"label",["show"])}var sy=ot(),ho=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,n,i){if(process.env.NODE_ENV!=="production"&&this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(t,i),this._mergeOption(t,i,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Je.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,n){this._mergeOption(t,n,!1,!1)},e.prototype._mergeOption=function(t,n,i,a){var o=this.mainType;i||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=sy(s)[o];if(!l||!l.data){sy(s)[o]=null;return}u?u._mergeOption(l,n,!0):(a&&oy(l),N(l.data,function(c){c instanceof Array?(oy(c[0]),oy(c[1])):oy(c)}),u=this.createMarkerModelFromSeries(l,this,n),$(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),sy(s)[o]=u},this)},e.prototype.formatTooltip=function(t,n,i){var a=this.getData(),o=this.getRawValue(t),s=a.getName(t);return Sr("section",{header:this.name,blocks:[Sr("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,n){var i=O0.prototype.getDataParams.call(this,t,n),a=this.__hostSeries;return a&&(i.seriesId=a.id,i.seriesName=a.name,i.seriesType=a.subType),i},e.getMarkerModelFromSeries=function(t,n){return sy(t)[n]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}($e);lr(ho,O0.prototype);var M0e=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(ho);function pA(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function I0e(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function ly(r,e,t,n,i,a){var o=[],s=fs(e,n),l=s?e.getCalculationInfo("stackResultDimension"):n,u=mA(e,l,r),c=e.indicesOfNearest(l,u)[0];o[i]=e.get(t,c),o[a]=e.get(l,c);var f=e.get(n,c),h=la(e.get(n,c));return h=Math.min(h,20),h>=0&&(o[a]=+o[a].toFixed(h)),[o,f]}var gA={min:He(ly,"min"),max:He(ly,"max"),average:He(ly,"average"),median:He(ly,"median")};function td(r,e){if(e){var t=r.getData(),n=r.coordinateSystem,i=n&&n.dimensions;if(!I0e(e)&&!re(e.coord)&&re(i)){var a=a7(e,t,n,r);if(e=Oe(e),e.type&&gA[e.type]&&a.baseAxis&&a.valueAxis){var o=qe(i,a.baseAxis.dim),s=qe(i,a.valueAxis.dim),l=gA[e.type](t,a.baseDataDim,a.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!re(i))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)gA[u[c]]&&(u[c]=mA(t,t.mapDimension(i[c]),u[c]));return e}}function a7(r,e,t,n){var i={};return r.valueIndex!=null||r.valueDim!=null?(i.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,i.valueAxis=t.getAxis(E0e(n,i.valueDataDim)),i.baseAxis=t.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=t.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function E0e(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function rd(r,e){return r&&r.containData&&e.coord&&!pA(e)?r.containData(e.coord):!0}function L0e(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!pA(e)&&!pA(t)?r.containZone(e.coord,t.coord):!0}function o7(r,e){return r?function(t,n,i,a){var o=a<2?t.coord&&t.coord[a]:t.value;return ss(o,e[a])}:function(t,n,i,a){return ss(t.value,e[a])}}function mA(r,e,t){if(t==="average"){var n=0,i=0;return r.each(e,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var yA=ot(),_A=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=Se()},e.prototype.render=function(t,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){yA(s).keep=!1}),n.eachSeries(function(s){var l=ho.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!yA(s).keep&&a.group.remove(s.group)})},e.prototype.markKeep=function(t){yA(t).keep=!0},e.prototype.toggleBlurSeries=function(t,n){var i=this;N(t,function(a){var o=ho.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?VE(l):jw(l))})}})},e.type="marker",e}(Zt);function s7(r,e,t){var n=e.coordinateSystem;r.each(function(i){var a=r.getItemModel(i),o,s=de(a.get("x"),t.getWidth()),l=de(a.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,i));else if(n){var u=r.get(n.dimensions[0],i),c=r.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(i,o)})}var k0e=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,i){n.eachSeries(function(a){var o=ho.getMarkerModelFromSeries(a,"markPoint");o&&(s7(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},e.prototype.renderSeries=function(t,n,i,a){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Dv),f=P0e(o,t,n);n.setData(f),s7(n.getData(),t,a),f.each(function(h){var v=f.getItemModel(h),d=v.getShallow("symbol"),g=v.getShallow("symbolSize"),p=v.getShallow("symbolRotate"),m=v.getShallow("symbolOffset"),y=v.getShallow("symbolKeepAspect");if(Me(d)||Me(g)||Me(p)||Me(m)){var _=n.getRawValue(h),w=n.getDataParams(h);Me(d)&&(d=d(_,w)),Me(g)&&(g=g(_,w)),Me(p)&&(p=p(_,w)),Me(m)&&(m=m(_,w))}var b=v.getModel("itemStyle").getItemStyle(),x=lv(l,"color");b.fill||(b.fill=x),f.setItemVisual(h,{symbol:d,symbolSize:g,symbolRotate:p,symbolOffset:m,symbolKeepAspect:y,style:b})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(h){h.traverse(function(v){ze(v).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||t.get("silent")},e.type="markPoint",e}(_A);function P0e(r,e,t){var n;r?n=ne(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return $($({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new fn(n,t),a=ne(t.get("data"),He(td,e));r&&(a=pt(a,He(rd,r)));var o=o7(!!r,n);return i.initData(a,null,o),i}function N0e(r){r.registerComponentModel(M0e),r.registerComponentView(k0e),r.registerPreprocessor(function(e){dA(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var O0e=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(ho),uy=ot(),R0e=function(r,e,t,n){var i=r.getData(),a;if(re(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=e.getAxis(n.yAxis!=null?"y":"x"),l=ur(n.yAxis,n.xAxis);else{var u=a7(n,i,e,r);s=u.valueAxis;var c=uk(i,u.valueDataDim);l=mA(i,c,o)}var f=s.dim==="x"?0:1,h=1-f,v=Oe(n),d={coord:[]};v.type=null,v.coord=[],v.coord[h]=-1/0,d.coord[h]=1/0;var g=t.get("precision");g>=0&&ct(l)&&(l=+l.toFixed(Math.min(g,20))),v.coord[f]=d.coord[f]=l,a=[v,d,{type:o,valueIndex:n.valueIndex,value:l}]}else process.env.NODE_ENV!=="production"&&Di("Invalid markLine data."),a=[]}var p=[td(r,a[0]),td(r,a[1]),$({},a[2])];return p[2].type=p[2].type||null,Ge(p[2],p[0]),Ge(p[2],p[1]),p};function cy(r){return!isNaN(r)&&!isFinite(r)}function l7(r,e,t,n){var i=1-r,a=n.dimensions[r];return cy(e[i])&&cy(t[i])&&e[r]===t[r]&&n.getAxis(a).containData(e[r])}function V0e(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,n=e[1].coord;if(t&&n&&(l7(1,t,n,r)||l7(0,t,n,r)))return!0}return rd(r,e[0])&&rd(r,e[1])}function wA(r,e,t,n,i){var a=n.coordinateSystem,o=r.getItemModel(e),s,l=de(o.get("x"),i.getWidth()),u=de(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,e));else{var c=a.dimensions,f=r.get(c[0],e),h=r.get(c[1],e);s=a.dataToPoint([f,h])}if(jl(a,"cartesian2d")){var v=a.getAxis("x"),d=a.getAxis("y"),c=a.dimensions;cy(r.get(c[0],e))?s[0]=v.toGlobalCoord(v.getExtent()[t?0:1]):cy(r.get(c[1],e))&&(s[1]=d.toGlobalCoord(d.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var z0e=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,i){n.eachSeries(function(a){var o=ho.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=uy(o).from,u=uy(o).to;l.each(function(c){wA(l,c,!0,a,i),wA(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,n,i,a){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new YS);this.group.add(c.group);var f=B0e(o,t,n),h=f.from,v=f.to,d=f.line;uy(n).from=h,uy(n).to=v,n.setData(d);var g=n.get("symbol"),p=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");re(g)||(g=[g,g]),re(p)||(p=[p,p]),re(m)||(m=[m,m]),re(y)||(y=[y,y]),f.from.each(function(w){_(h,w,!0),_(v,w,!1)}),d.each(function(w){var b=d.getItemModel(w).getModel("lineStyle").getLineStyle();d.setItemLayout(w,[h.getItemLayout(w),v.getItemLayout(w)]),b.stroke==null&&(b.stroke=h.getItemVisual(w,"style").fill),d.setItemVisual(w,{fromSymbolKeepAspect:h.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(w,"symbolOffset"),fromSymbolRotate:h.getItemVisual(w,"symbolRotate"),fromSymbolSize:h.getItemVisual(w,"symbolSize"),fromSymbol:h.getItemVisual(w,"symbol"),toSymbolKeepAspect:v.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(w,"symbolOffset"),toSymbolRotate:v.getItemVisual(w,"symbolRotate"),toSymbolSize:v.getItemVisual(w,"symbolSize"),toSymbol:v.getItemVisual(w,"symbol"),style:b})}),c.updateData(d),f.line.eachItemGraphicEl(function(w){ze(w).dataModel=n,w.traverse(function(b){ze(b).dataModel=n})});function _(w,b,x){var S=w.getItemModel(b);wA(w,b,x,t,a);var T=S.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=lv(l,"color")),w.setItemVisual(b,{symbolKeepAspect:S.get("symbolKeepAspect"),symbolOffset:Ve(S.get("symbolOffset",!0),y[x?0:1]),symbolRotate:Ve(S.get("symbolRotate",!0),m[x?0:1]),symbolSize:Ve(S.get("symbolSize"),p[x?0:1]),symbol:Ve(S.get("symbol",!0),g[x?0:1]),style:T})}this.markKeep(c),c.group.silent=n.get("silent")||t.get("silent")},e.type="markLine",e}(_A);function B0e(r,e,t){var n;r?n=ne(r&&r.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return $($({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new fn(n,t),a=new fn(n,t),o=new fn([],t),s=ne(t.get("data"),He(R0e,e,r,t));r&&(s=pt(s,He(V0e,r)));var l=o7(!!r,n);return i.initData(ne(s,function(u){return u[0]}),null,l),a.initData(ne(s,function(u){return u[1]}),null,l),o.initData(ne(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function F0e(r){r.registerComponentModel(O0e),r.registerComponentView(z0e),r.registerPreprocessor(function(e){dA(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var H0e=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(ho),fy=ot(),G0e=function(r,e,t,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=td(r,i),s=td(r,a),l=o.coord,u=s.coord;l[0]=ur(l[0],-1/0),l[1]=ur(l[1],-1/0),u[0]=ur(u[0],1/0),u[1]=ur(u[1],1/0);var c=x2([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function hy(r){return!isNaN(r)&&!isFinite(r)}function u7(r,e,t,n){var i=1-r;return hy(e[i])&&hy(t[i])}function W0e(r,e){var t=e.coord[0],n=e.coord[1],i={coord:t,x:e.x0,y:e.y0},a={coord:n,x:e.x1,y:e.y1};return jl(r,"cartesian2d")?t&&n&&(u7(1,t,n)||u7(0,t,n))?!0:L0e(r,i,a):rd(r,i)||rd(r,a)}function c7(r,e,t,n,i){var a=n.coordinateSystem,o=r.getItemModel(e),s,l=de(o.get(t[0]),i.getWidth()),u=de(o.get(t[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=r.getValues(["x0","y0"],e),f=r.getValues(["x1","y1"],e),h=a.clampData(c),v=a.clampData(f),d=[];t[0]==="x0"?d[0]=h[0]>v[0]?f[0]:c[0]:d[0]=h[0]>v[0]?c[0]:f[0],t[1]==="y0"?d[1]=h[1]>v[1]?f[1]:c[1]:d[1]=h[1]>v[1]?c[1]:f[1],s=n.getMarkerPosition(d,t,!0)}else{var g=r.get(t[0],e),p=r.get(t[1],e),m=[g,p];a.clampData&&a.clampData(m,m),s=a.dataToPoint(m,!0)}if(jl(a,"cartesian2d")){var y=a.getAxis("x"),_=a.getAxis("y"),g=r.get(t[0],e),p=r.get(t[1],e);hy(g)?s[0]=y.toGlobalCoord(y.getExtent()[t[0]==="x0"?0:1]):hy(p)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var f7=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Z0e=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,i){n.eachSeries(function(a){var o=ho.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=ne(f7,function(f){return c7(s,l,f,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,n,i,a){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Re});this.group.add(c.group),this.markKeep(c);var f=U0e(o,t,n);n.setData(f),f.each(function(h){var v=ne(f7,function(T){return c7(f,h,T,t,a)}),d=o.getAxis("x").scale,g=o.getAxis("y").scale,p=d.getExtent(),m=g.getExtent(),y=[d.parse(f.get("x0",h)),d.parse(f.get("x1",h))],_=[g.parse(f.get("y0",h)),g.parse(f.get("y1",h))];jn(y),jn(_);var w=!(p[0]>y[1]||p[1]<y[0]||m[0]>_[1]||m[1]<_[0]),b=!w;f.setItemLayout(h,{points:v,allClipped:b});var x=f.getItemModel(h).getModel("itemStyle").getItemStyle(),S=lv(l,"color");x.fill||(x.fill=S,me(x.fill)&&(x.fill=Eg(x.fill,.4))),x.stroke||(x.stroke=S),f.setItemVisual(h,"style",x)}),f.diff(fy(c).data).add(function(h){var v=f.getItemLayout(h);if(!v.allClipped){var d=new un({shape:{points:v.points}});f.setItemGraphicEl(h,d),c.group.add(d)}}).update(function(h,v){var d=fy(c).data.getItemGraphicEl(v),g=f.getItemLayout(h);g.allClipped?d&&c.group.remove(d):(d?ht(d,{shape:{points:g.points}},n,h):d=new un({shape:{points:g.points}}),f.setItemGraphicEl(h,d),c.group.add(d))}).remove(function(h){var v=fy(c).data.getItemGraphicEl(h);c.group.remove(v)}).execute(),f.eachItemGraphicEl(function(h,v){var d=f.getItemModel(v),g=f.getItemVisual(v,"style");h.useStyle(f.getItemVisual(v,"style")),Vr(h,xr(d),{labelFetcher:n,labelDataIndex:v,defaultText:f.getName(v)||"",inheritColor:me(g.fill)?Eg(g.fill,1):"#000"}),Rr(h,d),qt(h,null,null,d.get(["emphasis","disabled"])),ze(h).dataModel=n}),fy(c).data=f,c.group.silent=n.get("silent")||t.get("silent")},e.type="markArea",e}(_A);function U0e(r,e,t){var n,i,a=["x0","y0","x1","y1"];if(r){var o=ne(r&&r.dimensions,function(u){var c=e.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return $($({},f),{name:u,ordinalMeta:null})});i=ne(a,function(u,c){return{name:u,type:o[c%2].type}}),n=new fn(i,t)}else i=[{name:"value",type:"float"}],n=new fn(i,t);var s=ne(t.get("data"),He(G0e,e,r,t));r&&(s=pt(s,He(W0e,r)));var l=r?function(u,c,f,h){var v=u.coord[Math.floor(h/2)][h%2];return ss(v,i[h])}:function(u,c,f,h){return ss(u.value,i[h])};return n.initData(s,null,l),n.hasItemOption=!0,n}function Y0e(r){r.registerComponentModel(H0e),r.registerComponentView(Z0e),r.registerPreprocessor(function(e){dA(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var X0e=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},bA=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,n,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},e.prototype._updateSelector=function(t){var n=t.selector,i=this.ecModel;n===!0&&(n=t.selector=["all","inverse"]),re(n)&&N(n,function(a,o){me(a)&&(a={type:a}),n[o]=Ge(a,X0e(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<t.length;i++){var a=t[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var n=[],i=[];t.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,h=f.getAllNames();t.isSeriesFiltered(l)||(i=i.concat(h)),h.length?n=n.concat(h):c=!0}else c=!0;c&&Sw(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=Se(),s=ne(a,function(l){return(me(l)||ct(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new bt(l,this,this.ecModel))},this);this._data=pt(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;N(a,function(o){n[o.get("name")]=!1})}n[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var n=this.option.selected;n.hasOwnProperty(t)||(n[t]=!0),this[n[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,n=this.option.selected;N(t,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,n=this.option.selected;N(t,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(t){var n=this.option.selected;return!(n.hasOwnProperty(t)&&!n[t])&&qe(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}($e),ff=He,xA=N,vy=Re,h7=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new vy),this.group.add(this._selectorGroup=new vy),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,n,i,l,s,u);var c=t.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},h=t.get("padding"),v=mr(c,f,h),d=this.layoutInner(t,o,v,a,l,u),g=mr(Ne({width:d.width,height:d.height},c),f,h);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=bV(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,n,i,a,o,s,l){var u=this.getContentGroup(),c=Se(),f=n.get("selectedMode"),h=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),xA(n.getData(),function(v,d){var g=v.get("name");if(!this.newlineDisabled&&(g===""||g===`
|
|
74
|
-
`)){var p=new vy;p.newline=!0,u.add(p);return}var m=i.getSeriesByName(g)[0];if(!c.get(g)){if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},w=y.getVisual("legendIcon"),b=y.getVisual("style"),x=this._createItem(m,g,d,v,n,t,_,b,w,f,a);x.on("click",ff(v7,g,null,a,h)).on("mouseover",ff(SA,m.name,null,a,h)).on("mouseout",ff(TA,m.name,null,a,h)),i.ssr&&x.eachChild(function(S){var T=ze(S);T.seriesIndex=m.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),c.set(g,!0)}else i.eachRawSeries(function(S){if(!c.get(g)&&S.legendVisualProvider){var T=S.legendVisualProvider;if(!T.containName(g))return;var C=T.indexOfName(g),A=T.getItemVisual(C,"style"),M=T.getItemVisual(C,"legendIcon"),k=Ln(A.fill);k&&k[3]===0&&(k[3]=.2,A=$($({},A),{fill:Ya(k,"rgba")}));var L=this._createItem(S,g,d,v,n,t,{},A,M,f,a);L.on("click",ff(v7,null,g,a,h)).on("mouseover",ff(SA,null,g,a,h)).on("mouseout",ff(TA,null,g,a,h)),i.ssr&&L.eachChild(function(P){var E=ze(P);E.seriesIndex=S.seriesIndex,E.dataIndex=d,E.ssrType="legend"}),c.set(g,!0)}},this);process.env.NODE_ENV!=="production"&&(c.get(g)||console.warn(g+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,n,a,s,l)},e.prototype._createSelector=function(t,n,i,a,o){var s=this.getSelectorGroup();xA(t,function(u){var c=u.type,f=new ut({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(f);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Vr(f,{normal:h,emphasis:v},{defaultText:u.title}),xl(f)})},e.prototype._createItem=function(t,n,i,a,o,s,l,u,c,f,h){var v=t.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");c=_||c||"roundRect";var w=q0e(c,a,l,u,v,p,h),b=new vy,x=a.getModel("textStyle");if(Me(t.getLegendIcon)&&(!_||_==="inherit"))b.add(t.getLegendIcon({itemWidth:d,itemHeight:g,icon:c,iconRotate:m,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}));else{var S=_==="inherit"&&t.getData().getVisual("symbol")?m==="inherit"?t.getData().getVisual("symbolRotate"):m:0;b.add(j0e({itemWidth:d,itemHeight:g,icon:c,iconRotate:S,itemStyle:w.itemStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,C=s,A=o.get("formatter"),M=n;me(A)&&A?M=A.replace("{name}",n??""):Me(A)&&(M=A(n));var k=p?x.getTextColor():a.get("inactiveColor");b.add(new ut({style:Ot(x,{text:M,x:T,y:g/2,fill:k,align:C,verticalAlign:"middle"},{inheritColor:k})}));var L=new st({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&Ml({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(E){E.silent=!0}),L.silent=!f,this.getContentGroup().add(b),xl(b),b.__legendDataIndex=i,b},e.prototype.layoutInner=function(t,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();kl(t.get("orient"),l,t.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){kl("horizontal",u,t.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=t.get("selectorButtonGap",!0),g=t.getOrient().index,p=g===0?"width":"height",m=g===0?"height":"width",y=g===0?"y":"x";s==="end"?v[g]+=c[p]+d:f[g]+=h[p]+d,v[1-g]+=c[m]/2-h[m]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[p]=c[p]+d+h[p],_[m]=Math.max(c[m],h[m]),_[y]=Math.min(0,h[y]+v[1-g]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Zt);function q0e(r,e,t,n,i,a,o){function s(p,m){p.lineWidth==="auto"&&(p.lineWidth=m.lineWidth>0?2:0),xA(p,function(y,_){p[_]==="inherit"&&(p[_]=m[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Gc(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:t).opacity),s(u,n);var h=e.getModel("lineStyle"),v=h.getLineStyle();if(s(v,t),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth=d==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function j0e(r){var e=r.icon||"roundRect",t=vr(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function v7(r,e,t,n){TA(r,e,t,n),t.dispatchAction({type:"legendToggleSelect",name:r??e}),SA(r,e,t,n)}function d7(r){for(var e=r.getZr().storage.getDisplayList(),t,n=0,i=e.length;n<i&&!(t=e[n].states.emphasis);)n++;return t&&t.hoverLayer}function SA(r,e,t,n){d7(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:n})}function TA(r,e,t,n){d7(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:n})}function K0e(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function nd(r,e,t){var n=r==="allSelect"||r==="inverseSelect",i={},a=[];t.eachComponent({mainType:"legend",query:e},function(s){n?s[r]():s[r](e.name),p7(s,i),a.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){N(i,function(l,u){s[l?"select":"unSelect"](u)}),p7(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function p7(r,e){var t=e||{};return N(r.getData(),function(n){var i=n.get("name");if(!(i===`
|
|
75
|
-
`||i==="")){var a=r.isSelected(i);we(t,i)?t[i]=t[i]&&a:t[i]=a}}),t}function J0e(r){r.registerAction("legendToggleSelect","legendselectchanged",He(nd,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",He(nd,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",He(nd,"inverseSelect")),r.registerAction("legendSelect","legendselected",He(nd,"select")),r.registerAction("legendUnSelect","legendunselected",He(nd,"unSelect"))}function g7(r){r.registerComponentModel(bA),r.registerComponentView(h7),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,K0e),r.registerSubTypeDefaulter("legend",function(){return"plain"}),J0e(r)}var Q0e=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,n,i){var a=Ec(t);r.prototype.init.call(this,t,n,i),m7(this,t,a)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),m7(this,this.option,t)},e.type="legend.scroll",e.defaultOption=is(bA.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(bA);function m7(r,e,t){var n=r.getOrient(),i=[1,1];i[n.index]=0,os(e,t,{type:"box",ignoreSize:!!i})}var y7=Re,AA=["width","height"],CA=["x","y"],$0e=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new y7),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new y7)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,n,i,a,o,s,l){var u=this;r.prototype.renderInner.call(this,t,n,i,a,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),h=re(f)?f:[f,f];d("pagePrev",0);var v=n.getModel("pageTextStyle");c.add(new ut({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(g,p){var m=g+"DataIndex",y=Xh(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:ye(u._pageGo,u,m,n,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});y.name=g,c.add(y)}},e.prototype.layoutInner=function(t,n,i,a,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,c=AA[u],f=CA[u],h=AA[1-u],v=CA[1-u];o&&kl("horizontal",l,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),g=l.getBoundingRect(),p=[-g.x,-g.y],m=Oe(i);o&&(m[c]=i[c]-g[c]-d);var y=this._layoutContentAndController(t,a,m,u,c,h,v,f);if(o){if(s==="end")p[u]+=y[c]+d;else{var _=g[c]+d;p[u]-=_,y[f]-=_}y[c]+=g[c]+d,p[1-u]+=y[v]+y[h]/2-g[h]/2,y[h]=Math.max(y[h],g[h]),y[v]=Math.min(y[v],g[v]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,n,i,a,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,h=this._controllerGroup;kl(t.get("orient"),c,t.get("itemGap"),a?i.width:null,a?null:i.height),kl("horizontal",h,t.get("pageButtonItemGap",!0));var v=c.getBoundingRect(),d=h.getBoundingRect(),g=this._showController=v[o]>i[o],p=[-v.x,-v.y];n||(p[a]=c[u]);var m=[0,0],y=[-d.x,-d.y],_=Ve(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var w=t.get("pageButtonPosition",!0);w==="end"?y[a]+=i[o]-d[o]:m[a]+=d[o]+_}y[1-a]+=v[s]/2-d[s]/2,c.setPosition(p),f.setPosition(m),h.setPosition(y);var b={x:0,y:0};if(b[o]=g?i[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+y[1-a]),f.__rectSize=i[o],g){var x={x:0,y:0};x[o]=Math.max(i[o]-d[o]-_,0),x[s]=b[s],f.setClipPath(new st({shape:x})),f.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var S=this._getPageInfo(t);return S.pageIndex!=null&&ht(c,{x:S.contentPosition[0],y:S.contentPosition[1]},g?t:null),this._updatePageInfoView(t,S),b},e.prototype._pageGo=function(t,n,i){var a=this._getPageInfo(n)[t];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(t,n){var i=this._controllerGroup;N(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=n[f]!=null,v=i.childOfName(c);v&&(v.setStyle("fill",h?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),o=t.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",me(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var n=t.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=t.getOrient().index,s=AA[o],l=CA[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],h=c.length,v=h?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var g=w(f);d.contentPosition[o]=-g.s;for(var p=u+1,m=g,y=g,_=null;p<=h;++p)_=w(c[p]),(!_&&y.e>m.s+a||_&&!b(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var p=u-1,m=g,y=g,_=null;p>=-1;--p)_=w(c[p]),(!_||!b(y,_.s))&&m.i<y.i&&(y=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=_;return d;function w(x){if(x){var S=x.getBoundingRect(),T=S[l]+x[l];return{s:T,e:T+S[s],i:x.__legendDataIndex}}}function b(x,S){return x.e>=S&&x.s<=S+a}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===t&&(n=s)}),n??a},e.type="legend.scroll",e}(h7);function eme(r){r.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function tme(r){je(g7),r.registerComponentModel(Q0e),r.registerComponentView($0e),eme(r)}function rme(r){je(g7),je(tme)}var nme=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=is(Qv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Qv),DA=ot();function ime(r,e,t){DA(r).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(e.uid);i&&(i.getRange=t)})}function ame(r,e){for(var t=DA(r).coordSysRecordMap,n=t.keys(),i=0;i<n.length;i++){var a=n[i],o=t.get(a),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||_7(t,o))}}}function _7(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function ome(r,e){var t={model:e,containsPoint:He(lme,e),dispatchAction:He(sme,r),dataZoomInfoMap:null,controller:null},n=t.controller=new Ov(r.getZr());return N(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];t.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function sme(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function lme(r,e,t,n){return r.coordinateSystem.containPoint([t,n])}function ume(r){var e,t="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return r.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[t+s]>n[t+e]&&(e=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function cme(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=DA(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=Se());i.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=pV(a);N(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,ome(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Se());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){_7(i,a);return}var c=ume(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),zc(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var fme=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,n,i){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),ime(i,t,{pan:ye(MA.pan,this),zoom:ye(MA.zoom,this),scrollMove:ye(MA.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){ame(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(eA),MA={zoom:function(r,e,t,n){var i=this.range,a=i.slice(),o=r.axisModels[0];if(o){var s=IA[e](null,[n.originX,n.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(nu(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:w7(function(r,e,t,n,i,a){var o=IA[n]([a.oldX,a.oldY],[a.newX,a.newY],e,i,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:w7(function(r,e,t,n,i,a){var o=IA[n]([0,0],[a.scrollDelta,a.scrollDelta],e,i,t);return o.signal*(r[1]-r[0])*a.scrollDelta})};function w7(r){return function(e,t,n,i){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,n,i);if(nu(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var IA={grid:function(r,e,t,n,i){var a=t.axis,o={},s=i.model.coordinateSystem.getRect();return r=r||[0,0],a.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(r,e,t,n,i){var a=t.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(r,e,t,n,i){var a=t.axis,o=i.model.coordinateSystem.getRect(),s={};return r=r||[0,0],a.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function b7(r){tA(r),r.registerComponentModel(nme),r.registerComponentView(fme),cme(r)}var hme=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=is(Qv.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Qv),id=st,x7=7,vme=1,EA=30,dme=7,ad="horizontal",S7="vertical",pme=5,gme=["line","bar","candlestick","scatter"],mme={easing:"cubicOut",duration:100,delay:0},yme=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,n){this.api=n,this._onBrush=ye(this._onBrush,this),this._onBrushEnd=ye(this._onBrushEnd,this)},e.prototype.render=function(t,n,i,a){if(r.prototype.render.apply(this,arguments),zc(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){av(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Re;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,n=this.api,i=t.get("brushSelect"),a=i?dme:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===ad?{right:s.width-o.x-o.width,top:s.height-EA-x7-a,width:o.width,height:EA}:{right:x7,top:o.y,width:EA,height:o.height},u=Ec(t.option);N(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=mr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===S7&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===ad&&!o?{scaleY:l?1:-1,scaleX:1}:i===ad&&o?{scaleY:l?1:-1,scaleX:-1}:i===S7&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=n.x-u.x,t.y=n.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=t.get("brushSelect");i.add(new id({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new id({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ye(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var n=this._size,i=this._shadowSize||[],a=t.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),h=(f[1]-f[0])*.3;f=[f[0]-h,f[1]+h];var v=[0,n[1]],d=[0,n[0]],g=[[n[0],0],[0,0]],p=[],m=d[1]/(o.count()-1),y=0,_=Math.round(o.count()/n[0]),w;o.each([l],function(C,A){if(_>0&&A%_){y+=m;return}var M=C==null||isNaN(C)||C==="",k=M?0:wt(C,f,v,!0);M&&!w&&A?(g.push([g[g.length-1][0],0]),p.push([p[p.length-1][0],0])):!M&&w&&(g.push([y,0]),p.push([y,0])),g.push([y,k]),p.push([y,k]),y+=m,w=M}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=p}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var b=this.dataZoomModel;function x(C){var A=b.getModel(C?"selectedDataBackground":"dataBackground"),M=new Re,k=new un({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new cn({shape:{points:c},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(k),M.add(L),M}for(var S=0;S<3;S++){var T=x(S===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,n=t.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();N(l,function(u){if(!i&&!(n!==!0&&qe(gme,u.get("type"))<0)){var c=a.getComponent(ws(o),s).axis,f=_me(o),h,v=u.coordinateSystem;f!=null&&v.getOtherAxis&&(h=v.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:h}}},this)},this),i}},e.prototype._renderHandle=function(){var t=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),h=n.filler=new id({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new id({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:vme,fill:"rgba(0,0,0,0)"}})),N([0,1],function(_){var w=l.get("handleIcon");!W0[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w,process.env.NODE_ENV!=="production"&&ki("handleIcon now needs 'path://' prefix when using a path string"));var b=vr(w,-1,0,2,2,null,!0);b.attr({cursor:T7(this._orient),draggable:!0,drift:ye(this._onDragMove,this,_),ondragend:ye(this._onDragEnd,this),onmouseover:ye(this._showDataInfo,this,!0),onmouseout:ye(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),S=l.get("handleSize");this._handleHeight=de(S,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),xl(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(i[_]=b);var C=l.getModel("textStyle"),A=l.get("handleLabel")||{},M=A.show||!1;t.add(a[_]=new ut({silent:!0,invisible:!M,style:Ot(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var v=h;if(f){var d=de(l.get("moveHandleSize"),s[1]),g=n.moveHandle=new st({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),p=d*.8,m=n.moveHandleIcon=vr(l.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);m.silent=!0,m.y=s[1]+d/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(d,10));v=n.moveZone=new st({invisible:!0,shape:{y:s[1]-y,height:d+y}}),v.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(m),o.add(v)}v.attr({draggable:!0,cursor:T7(this._orient),drift:ye(this._onDragMove,this,"all"),ondragstart:ye(this._showDataInfo,this,!0),ondragend:ye(this._onDragEnd,this),onmouseover:ye(this._showDataInfo,this,!0),onmouseout:ye(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[wt(t[0],[0,100],n,!0),wt(t[1],[0,100],n,!0)]},e.prototype._updateInterval=function(t,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];nu(n,a,o,i.get("zoomLock")?"all":t,s.minSpan!=null?wt(s.minSpan,l,o,!0):null,s.maxSpan!=null?wt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=jn([wt(a[0],o,l,!0),wt(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var n=this._displayables,i=this._handleEnds,a=jn(i.slice()),o=this._size;N([0,1],function(v){var d=n.handles[v],g=this._handleHeight;d.attr({scaleX:g/2,scaleY:g/2,x:i[v]+(v?-1:1),y:o[1]/2-g/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;c<l.length;c++){var f=l[c],h=f.getClipPath();h||(h=new st,f.setClipPath(h)),h.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=t?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var h=jn(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(d){var g=Dl(i.handles[d].parent,this.group),p=y0(d===0?"right":"left",g),m=this._handleWidth/2+pme,y=Ri([h[d]+(d===0?-m:m),this._size[1]/2],g);a[d].setStyle({x:y[0],y:y[1],verticalAlign:o===ad?"middle":p,align:o===ad?p:"center",text:s[d]})}},e.prototype._formatLabel=function(t,n){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=t==null||isNaN(t)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return Me(a)?a(t,s):me(a)?a.replace("{value}",s):s},e.prototype._showDataInfo=function(t){var n=this.dataZoomModel.get("handleLabel")||{},i=n.show||!1,a=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=a.get("show")||!1,s=t||this._dragging?o:i,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onDragMove=function(t,n,i,a){this._dragging=!0,Za(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Ri([n,i],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var n=t.offsetX,i=t.offsetY;this._brushStart=new Ze(n,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=jn([wt(i.x,o,s,!0),wt(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Za(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new id({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},e.prototype._dispatchZoomAction=function(t){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?mme:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var t,n=pV(this.dataZoomModel).infoList;if(!t&&n.length){var i=n[0].model.coordinateSystem;t=i.getRect&&i.getRect()}if(!t){var a=this.api.getWidth(),o=this.api.getHeight();t={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(eA);function _me(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function T7(r){return r==="vertical"?"ns-resize":"ew-resize"}function A7(r){r.registerComponentModel(hme),r.registerComponentView(yme),tA(r)}function wme(r){je(b7),je(A7)}var C7={get:function(r,e,t){var n=Oe((bme[r]||{})[e]);return t&&re(n)?n[n.length-1]:n}},bme={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},D7=Ar.mapVisual,xme=Ar.eachVisual,Sme=re,M7=N,Tme=jn,Ame=wt,dy=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,n,i){this.mergeDefaultAndTheme(t,i)},e.prototype.optionUpdated=function(t,n){var i=this.option;!n&&UV(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var n=this.stateList;t=ye(t,this),this.controllerVisuals=cA(this.option.controller,n,t),this.targetVisuals=cA(this.option.target,n,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,n=[];return t==null||t==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=St(t),n},e.prototype.eachTargetSeries=function(t,n){N(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&t.call(n,a)},this)},e.prototype.isTargetSeries=function(t){var n=!1;return this.eachTargetSeries(function(i){i===t&&(n=!0)}),n},e.prototype.formatValueText=function(t,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],re(t)&&(t=t.slice(),u=!0);var c=n?t:u?[f(t[0]),f(t[1])]:f(t);if(me(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Me(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?i[0]+" "+c[1]:t[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,n=Tme([t.min,t.max]);this._dataExtent=n},e.prototype.getDataDimensionIndex=function(t){var n=this.option.dimension;if(n!=null)return t.getDimensionIndex(n);for(var i=t.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Ge(a,i),Ge(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){Sme(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:t.get("gradientColor")}}function u(f,h,v){var d=f[h],g=f[v];d&&!g&&(g=f[v]={},M7(d,function(p,m){if(Ar.isValidType(m)){var y=C7.get(m,"inactive",s);y!=null&&(g[m]=y,m==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(f){var h=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,v=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),g=this.getItemSymbol(),p=g||"roundRect";M7(this.stateList,function(m){var y=this.itemSize,_=f[m];_||(_=f[m]={color:s?d:[d]}),_.symbol==null&&(_.symbol=h&&Oe(h)||(s?p:[p])),_.symbolSize==null&&(_.symbolSize=v&&Oe(v)||(s?y[0]:[y[0],y[0]])),_.symbol=D7(_.symbol,function(x){return x==="none"?p:x});var w=_.symbolSize;if(w!=null){var b=-1/0;xme(w,function(x){x>b&&(b=x)}),_.symbolSize=D7(w,function(x){return Ame(x,[0,b],[0,y[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}($e),I7=[20,140],Cme=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=I7[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=I7[1])},e.prototype._resetRange=function(){var t=this.getExtent(),n=this.option.range;!n||n.auto?(t.auto=1,this.option.range=t):re(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],t[0]),n[1]=Math.min(n[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),N(this.stateList,function(t){var n=this.option.controller[t].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),n=jn((this.get("range")||[]).slice());return n[0]>t[1]&&(n[0]=t[1]),n[1]>t[1]&&(n[1]=t[1]),n[0]<t[0]&&(n[0]=t[0]),n[1]<t[0]&&(n[1]=t[0]),n},e.prototype.getValueState=function(t){var n=this.option.range,i=this.getExtent();return(n[0]<=i[0]||n[0]<=t)&&(n[1]>=i[1]||t<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},e.prototype.getVisualMeta=function(t){var n=E7(this,"outOfRange",this.getExtent()),i=E7(this,"inRange",this.option.range.slice()),a=[];function o(v,d){a.push({value:v,color:t(v,d)})}for(var s=0,l=0,u=i.length,c=n.length;l<c&&(!i.length||n[l]<=i[0]);l++)n[l]<i[s]&&o(n[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var f=1;l<c;l++)(!i.length||i[i.length-1]<n[l])&&(f&&(a.length&&o(a[a.length-1].value,"outOfRange"),f=0),o(n[l],"outOfRange"));var h=a.length;return{stops:a,outerColors:[h?a[0].color:"transparent",h?a[h-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=is(dy.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(dy);function E7(r,e,t){if(t[0]===t[1])return t.slice();for(var n=200,i=(t[1]-t[0])/n,a=t[0],o=[],s=0;s<=n&&a<t[1];s++)o.push(a),a+=i;return o.push(t[1]),o}var L7=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n},e.prototype.render=function(t,n,i,a){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,n,i,a)},e.prototype.renderBackground=function(t){var n=this.visualMapModel,i=Ic(n.get("padding")||0),a=t.getBoundingRect();t.add(new st({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,n,i){i=i||{};var a=i.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function c(v,d){s[v]=d}var f=o.controllerVisuals[a||o.getValueState(t)],h=Ar.prepareVisualTypes(f);return N(h,function(v){var d=f[v];i.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",d=f.__alphaForOpacity),Ar.dependsOn(v,n)&&d&&d.applyVisual(t,u,c)}),s[n]},e.prototype.positionGroup=function(t){var n=this.visualMapModel,i=this.api;L0(t,n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},e.prototype.doRender=function(t,n,i,a){},e.type="visualMap",e}(Zt),k7=[["left","right","width"],["top","bottom","height"]];function P7(r,e,t){var n=r.option,i=n.align;if(i!=null&&i!=="auto")return i;for(var a={width:e.getWidth(),height:e.getHeight()},o=n.orient==="horizontal"?1:0,s=k7[o],l=[0,null,10],u={},c=0;c<3;c++)u[k7[1-o][c]]=l[c],u[s[c]]=c===2?t[0]:n[s[c]];var f=[["x","width",3],["y","height",0]][o],h=mr(u,a,n.padding);return s[(h.margin[f[2]]||0)+h[f[0]]+h[f[1]]*.5<a[f[1]]*.5?0:1]}function py(r,e){return N(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var Aa=wt,Dme=N,N7=Math.min,LA=Math.max,Mme=12,Ime=6,Eme=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,n){r.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=ye(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=ye(this._hideIndicator,this)},e.prototype.doRender=function(t,n,i,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,n=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(n);var i=t.get("text");this._renderEndsText(n,i,0),this._renderEndsText(n,i,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},e.prototype._renderEndsText=function(t,n,i){if(n){var a=n[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),f=this._applyTransform(i===0?"bottom":"top",u),h=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new ut({style:Ot(v,{x:c[0],y:c[1],verticalAlign:h==="horizontal"?"middle":f,align:h==="horizontal"?f:"center",text:a})}))}},e.prototype._renderBar=function(t){var n=this.visualMapModel,i=this._shapes,a=n.itemSize,o=this._orient,s=this._useHandle,l=P7(n,this.api,a),u=i.mainGroup=this._createBarGroup(l),c=new Re;u.add(c),c.add(i.outOfRange=O7()),c.add(i.inRange=O7(null,s?V7(this._orient):null,ye(this._dragHandle,this,"all",!1),ye(this._dragHandle,this,"all",!0))),c.setClipPath(new st({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var f=n.textStyleModel.getTextRect("国"),h=LA(f.width,f.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(n,u,0,a,h,o),this._createHandle(n,u,1,a,h,o)),this._createIndicator(n,u,a,h,o),t.add(u)},e.prototype._createHandle=function(t,n,i,a,o,s){var l=ye(this._dragHandle,this,i,!1),u=ye(this._dragHandle,this,i,!0),c=Li(t.get("handleSize"),a[0]),f=vr(t.get("handleIcon"),-c/2,-c/2,c,c,null,!0),h=V7(this._orient);f.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){Za(m.event)}}),f.x=a[0]/2,f.useStyle(t.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Sl(f,!0),n.add(f);var v=this.visualMapModel.textStyleModel,d=new ut({cursor:h,draggable:!0,drift:l,onmousemove:function(m){Za(m.event)},ondragend:u,style:Ot(v,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var g=[c,0],p=this._shapes;p.handleThumbs[i]=f,p.handleLabelPoints[i]=g,p.handleLabels[i]=d},e.prototype._createIndicator=function(t,n,i,a,o){var s=Li(t.get("indicatorSize"),i[0]),l=vr(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof Er){var c=l.style;l.useStyle($({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var f=this.visualMapModel.textStyleModel,h=new ut({silent:!0,invisible:!0,style:Ot(f,{x:0,y:0,text:""})});this.group.add(h);var v=[(o==="horizontal"?a/2:Ime)+i[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=h,d.indicatorLabelPoint=v,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,n,i,a){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():R7(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,n=this._dataInterval=t.getSelected(),i=t.getExtent(),a=[0,t.itemSize[1]];this._handleEnds=[Aa(n[0],i,a,!0),Aa(n[1],i,a,!0)]},e.prototype._updateInterval=function(t,n){n=n||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];nu(n,a,o,t,0);var s=i.getExtent();this._dataInterval=[Aa(a[0],o,s,!0),Aa(a[1],o,s,!0)]},e.prototype._updateView=function(t){var n=this.visualMapModel,i=n.getExtent(),a=this._shapes,o=[0,n.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,n,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new Zh(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,n){var i=100,a=[],o=(t[1]-t[0])/i;a.push({color:this.getControllerVisual(t[0],"color",n),offset:0});for(var s=1;s<i;s++){var l=t[0]+o*s;if(l>t[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(t[1],"color",n),offset:1}),a},e.prototype._createBarPoints=function(t,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-n[1],t[1]]]},e.prototype._createBarGroup=function(t){var n=this._orient,i=this.visualMapModel.get("inverse");return new Re(n==="horizontal"&&!i?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent(),c=this._applyTransform("left",i.mainGroup);Dme([0,1],function(f){var h=o[f];h.setStyle("fill",n.handlesColor[f]),h.y=t[f];var v=Aa(t[f],[0,l[1]],u,!0),d=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=d/l[0],h.x=l[0]-d/2;var g=Ri(i.handleLabelPoints[f],Dl(h,this.group));if(this._orient==="horizontal"){var p=c==="left"||c==="top"?(l[0]-d)/2:(l[0]-d)/-2;g[1]+=p}s[f].setStyle({x:g[0],y:g[1],text:a.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(t,"color",h),d=this.getControllerVisual(t,"symbolSize"),g=Aa(t,s,u,!0),p=l[0]-d/2,m={x:f.x,y:f.y};f.y=g,f.x=p;var y=Ri(c.indicatorLabelPoint,Dl(f,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:x?w:"middle",align:x?"center":w});var S={x:p,y:g,style:{fill:v}},T={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(S,C),_.animateTo(T,C)}else f.attr(S),_.attr(T);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var M=0;M<A.length;M++)this.api.enterBlur(A[M])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(n){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,a=t._applyTransform([n.offsetX,n.offsetY],t._shapes.mainGroup,!0,!0);a[1]=N7(LA(0,a[1]),i[1]),t._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,n){var i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();t=N7(LA(o[0],t),o[1]);var l=Lme(i,s,o),u=[t-l,t+l],c=Aa(t,o,s,!0),f=[Aa(u[0],o,s,!0),Aa(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var h=this._hoverLinkDataIndices,v=[];(n||R7(i))&&(v=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var d=O$(h,v);this._dispatchHighDown("downplay",py(d[0],i)),this._dispatchHighDown("highlight",py(d[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var n;if(Rl(t.target,function(l){var u=ze(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i<n.length;i++)this.api.leaveBlur(n[i])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",py(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,n,i,a){var o=Dl(n,a?null:this.group);return re(t)?Ri(t,o,i):y0(t,o,i)},e.prototype._dispatchHighDown=function(t,n){n&&n.length&&this.api.dispatchAction({type:t,batch:n})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(L7);function O7(r,e,t,n){return new un({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(i){Za(i.event)},ondragend:n})}function Lme(r,e,t){var n=Mme/2,i=r.get("hoverLinkDataSize");return i&&(n=Aa(i,e,t,!0)/2),n}function R7(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function V7(r){return r==="vertical"?"ns-resize":"ew-resize"}var kme={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Pme=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},Nme=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(n){var i=r.pipelineContext;!n.isTargetSeries(r)||i&&i.large||t.push(r0e(n.stateList,n.targetVisuals,ye(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),n=[];e.eachComponent("visualMap",function(i){if(i.isTargetSeries(r)){var a=i.getVisualMeta(ye(Ome,null,r,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(t);o>=0&&(a.dimension=o,n.push(a))}}),r.getData().setVisual("visualMeta",n)}}];function Ome(r,e,t,n){for(var i=e.targetVisuals[n],a=Ar.prepareVisualTypes(i),o={color:lv(r.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=i[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(t,f,h)}return o.color;function f(v){return o[v]}function h(v,d){o[v]=d}}var z7=N;function Rme(r){var e=r&&r.visualMap;re(e)||(e=e?[e]:[]),z7(e,function(t){if(t){hf(t,"splitList")&&!hf(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var n=t.pieces;n&&re(n)&&z7(n,function(i){Le(i)&&(hf(i,"start")&&!hf(i,"min")&&(i.min=i.start),hf(i,"end")&&!hf(i,"max")&&(i.max=i.end))})}})}function hf(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var B7=!1;function F7(r){B7||(B7=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(kme,Pme),N(Nme,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(Rme))}function H7(r){r.registerComponentModel(Cme),r.registerComponentView(Eme),F7(r)}var Vme=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],zme[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Oe(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=ne(this._pieceList,function(l){return l=Oe(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,n={},i=Ar.listVisualTypes(),a=this.isCategory();N(t.pieces,function(s){N(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),N(n,function(s,l){var u=!1;N(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&N(this.stateList,function(c){(t[c]||(t[c]={}))[l]=C7.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,n){var i=this.option,a=this._pieceList,o=(n?i:t).selected||{};if(i.selected=o,N(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;N(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Oe(t)},e.prototype.getValueState=function(t){var n=Ar.findPieceIndex(t,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Ar.findPieceIndex(l,i);c===t&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(t){var n;if(this.isCategory())n=t.value;else if(t.value!=null)n=t.value;else{var i=t.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var h=a.getRepresentValue({interval:c});f||(f=a.getValueState(h));var v=t(h,f);c[0]===-1/0?i[0]=v:c[1]===1/0?i[1]=v:n.push({value:c[0],color:v},{value:c[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return N(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=is(dy.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(dy),zme={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),n=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(t)!==a&&t<5;)t++;e.precision=t,a=+a.toFixed(t),e.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<i;s+=a,o++){var l=o===i-1?n[1]:s+a;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),FI(r),N(r,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;N(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),G7(e,r)},pieces:function(r){var e=this.option;N(e.pieces,function(t,n){Le(t)||(t={value:t});var i={text:"",index:n};if(t.label!=null&&(i.text=t.label),t.hasOwnProperty("value")){var a=i.value=t.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var h=[["gte","gt","min"],["lte","lt","max"]][f],v=0;v<3&&o[f]==null;v++)o[f]=t[h[v]],s[f]=l[v],c[f]=v===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),process.env.NODE_ENV!=="production"&&o[0]>o[1]&&console.warn("Piece "+n+"is illegal: "+o+" lower bound should not greater then uppper bound."),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=Ar.retrieveVisuals(t),r.push(i)},this),G7(e,r),FI(r),N(r,function(t){var n=t.close,i=[["<","≤"][n[1]],[">","≥"][n[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,i)},this)}};function G7(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var Bme=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,h=ur(n.get("showLabel",!0),!f),v=!n.get("selectedMode");f&&this._renderEndsText(t,f[0],u,h,l),N(c.viewPieceList,function(d){var g=d.piece,p=new Re;p.onclick=ye(this._onItemClick,this,g),this._enableHoverLink(p,d.indexInModelPieceList);var m=n.getRepresentValue(g);if(this._createItemSymbol(p,m,[0,0,u[0],u[1]],v),h){var y=this.visualMapModel.getValueState(m);p.add(new ut({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:g.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1},silent:v}))}t.add(p)},this),f&&this._renderEndsText(t,f[1],u,h,l),kl(n.get("orient"),t,n.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,n){var i=this;t.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:py(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,n=t.option;if(n.orient==="vertical")return P7(t,this.api,t.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(t,n,i,a,o){if(n){var s=new Re,l=this.visualMapModel.textStyleModel;s.add(new ut({style:Ot(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,n=ne(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=t.get("text"),a=t.get("orient"),o=t.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},e.prototype._createItemSymbol=function(t,n,i,a){var o=vr(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color"));o.silent=a,t.add(o)},e.prototype._onItemClick=function(t){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=Oe(i.selected),s=n.getSelectedMapKey(t);a==="single"||a===!0?(o[s]=!0,N(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(L7);function W7(r){r.registerComponentModel(Vme),r.registerComponentView(Bme),F7(r)}function Fme(r){je(H7),je(W7)}var Hme={label:{enabled:!0},decal:{show:!1}},Z7=ot(),Gme={};function Wme(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var n=Oe(Hme);Ge(n.label,r.getLocaleModel().get("aria"),!1),Ge(t.option,n,!1),i(),a();function i(){var u=t.getModel("decal"),c=u.get("show");if(c){var f=Se();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=f.get(h.type);v||(v={},f.set(h.type,v)),Z7(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(Me(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var y=Ib(h.ecModel,h.name,Gme,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",w(_,y))}else{var d=h.getRawData(),g={},p=Z7(h).scope;v.each(function(b){var x=v.getRawIndex(b);g[x]=b});var m=d.count();d.each(function(b){var x=g[b],S=d.getName(b)||b+"",T=Ib(h.ecModel,S,p,m),C=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",w(C,T))})}function w(b,x){var S=b?$($({},x),b):x;return S.dirty=!0,S}})}}function a(){var u=e.getZr().dom;if(u){var c=r.getLocaleModel().get("aria"),f=t.getModel("label");if(f.option=Ne(f.option,c),!!f.get("enabled")){if(u.setAttribute("role","img"),f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var h=r.getSeriesCount(),v=f.get(["data","maxCount"])||10,d=f.get(["series","maxCount"])||10,g=Math.min(h,d),p;if(!(h<1)){var m=s();if(m){var y=f.get(["general","withTitle"]);p=o(y,{title:m})}else p=f.get(["general","withoutTitle"]);var _=[],w=h>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);p+=o(w,{seriesCount:h}),r.eachSeries(function(T,C){if(C<g){var A=void 0,M=T.get("name"),k=M?"withName":"withoutName";A=h>1?f.get(["series","multiple",k]):f.get(["series","single",k]),A=o(A,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>v){var P=f.get(["data","partialData"]);A+=o(P,{displayCnt:v})}else A+=f.get(["data","allData"]);for(var E=f.get(["data","separator","middle"]),O=f.get(["data","separator","end"]),V=f.get(["data","excludeDimensionId"]),z=[],H=0;H<L.count();H++)if(H<v){var B=L.getName(H),F=V?pt(L.getValues(H),function(ae,le){return qe(V,le)===-1}):L.getValues(H),ee=f.get(["data",B?"withName":"withoutName"]);z.push(o(ee,{name:B,value:F.join(E)}))}A+=z.join(E)+O,_.push(A)}});var b=f.getModel(["series","multiple","separator"]),x=b.get("middle"),S=b.get("end");p+=_.join(x)+S,u.setAttribute("aria-label",p)}}}}function o(u,c){if(!me(u))return u;var f=u;return N(c,function(h,v){f=f.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),h)}),f}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=r.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function Zme(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},N(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function Ume(r){r.registerPreprocessor(Zme),r.registerVisual(r.PRIORITY.VISUAL.ARIA,Wme)}var U7={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Yme=function(){function r(e){var t=this._condVal=me(e)?new RegExp(e):N4(e)?e:null;if(t==null){var n="";process.env.NODE_ENV!=="production"&&(n=an("Illegal regexp",e,"in")),gt(n)}}return r.prototype.evaluate=function(e){var t=typeof e;return me(t)?this._condVal.test(e):ct(t)?this._condVal.test(e+""):!1},r}(),Xme=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),qme=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r}(),jme=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r}(),Kme=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),Jme=function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),i=e?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(e?i:n))return!1;return!0},r}();function kA(r,e){if(r===!0||r===!1){var t=new Xme;return t.value=r,t}var n="";return X7(r)||(process.env.NODE_ENV!=="production"&&(n=an("Illegal config. Expect a plain object but actually",r)),gt(n)),r.and?Y7("and",r,e):r.or?Y7("or",r,e):r.not?Qme(r,e):$me(r,e)}function Y7(r,e,t){var n=e[r],i="";process.env.NODE_ENV!=="production"&&(i=an('"and"/"or" condition should only be `'+r+": [...]` and must not be empty array.","Illegal condition:",e)),re(n)||gt(i),n.length||gt(i);var a=r==="and"?new qme:new jme;return a.children=ne(n,function(o){return kA(o,t)}),a.children.length||gt(i),a}function Qme(r,e){var t=r.not,n="";process.env.NODE_ENV!=="production"&&(n=an('"not" condition should only be `not: {}`.',"Illegal condition:",r)),X7(t)||gt(n);var i=new Kme;return i.child=kA(t,e),i.child||gt(n),i}function $me(r,e){for(var t="",n=e.prepareGetValue(r),i=[],a=nt(r),o=r.parser,s=o?T3(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=we(U7,u)?U7[u]:u,f=r[u],h=s?s(f):f,v=Fre(c,h)||c==="reg"&&new Yme(h);v||(process.env.NODE_ENV!=="production"&&(t=an('Illegal relational operation: "'+u+'" in condition:',r)),gt(t)),i.push(v)}}i.length||(process.env.NODE_ENV!=="production"&&(t=an("Relational condition must have at least one operator.","Illegal condition:",r)),gt(t));var d=new Jme;return d.valueGetterParam=n,d.valueParser=s,d.getValue=e.getValue,d.subCondList=i,d}function X7(r){return Le(r)&&!Zr(r)}var eye=function(){function r(e,t){this._cond=kA(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function tye(r,e){return new eye(r,e)}var rye={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,n=tye(r.config,{valueGetterAttrMap:Se({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;we(s,"dimension")||(process.env.NODE_ENV!=="production"&&(l=an('Relation condition must has prop "dimension" specified.',"Illegal condition:",s)),gt(l));var c=e.getDimensionInfo(u);return c||(process.env.NODE_ENV!=="production"&&(l=an("Can not find dimension info via: "+u+`.
|
|
76
|
-
`,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
|
|
77
|
-
`,"Illegal condition:",s,`.
|
|
78
|
-
`)),gt(l)),{dimIdx:c.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),i=[],a=0,o=e.count();a<o;a++)t=e.getRawDataItem(a),n.evaluate()&&i.push(t);return{data:i}}},PA="";process.env.NODE_ENV!=="production"&&(PA=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));var nye={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,n="",i=St(t);i.length||(process.env.NODE_ENV!=="production"&&(n="Empty `config` in sort transform."),gt(n));var a=[];N(i,function(c){var f=c.dimension,h=c.order,v=c.parser,d=c.incomparable;if(f==null&&(process.env.NODE_ENV!=="production"&&(n='Sort transform config must has "dimension" specified.'+PA),gt(n)),h!=="asc"&&h!=="desc"&&(process.env.NODE_ENV!=="production"&&(n='Sort transform config must has "order" specified.'+PA),gt(n)),d&&d!=="min"&&d!=="max"){var g="";process.env.NODE_ENV!=="production"&&(g='incomparable must be "min" or "max" rather than "'+d+'".'),gt(g)}if(h!=="asc"&&h!=="desc"){var p="";process.env.NODE_ENV!=="production"&&(p='order must be "asc" or "desc" rather than "'+h+'".'),gt(p)}var m=e.getDimensionInfo(f);m||(process.env.NODE_ENV!=="production"&&(n=an("Can not find dimension info via: "+f+`.
|
|
79
|
-
`,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
|
|
80
|
-
`,"Illegal config:",c,`.
|
|
81
|
-
`)),gt(n));var y=v?T3(v):null;v&&!y&&(process.env.NODE_ENV!=="production"&&(n=an("Invalid parser name "+v+`.
|
|
82
|
-
`,"Illegal config:",c,`.
|
|
83
|
-
`)),gt(n)),a.push({dimIdx:m.index,parser:y,comparator:new C3(h,d)})});var o=e.sourceFormat;o!==Yr&&o!==ti&&(process.env.NODE_ENV!=="production"&&(n='sourceFormat "'+o+'" is not supported yet'),gt(n));for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(c,f){for(var h=0;h<a.length;h++){var v=a[h],d=e.retrieveValueFromItem(c,v.dimIdx),g=e.retrieveValueFromItem(f,v.dimIdx);v.parser&&(d=v.parser(d),g=v.parser(g));var p=v.comparator.evaluate(d,g);if(p!==0)return p}return 0}),{data:s}}};function iye(r){r.registerTransform(rye),r.registerTransform(nye)}var aye=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,n,i){r.prototype.init.call(this,t,n,i),this._sourceManager=new k3(this),P3(this)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),P3(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:ma},e}($e),oye=function(r){Y(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(Zt);function sye(r){r.registerComponentModel(aye),r.registerComponentView(oye)}var Ca=da.CMD;function vf(r,e){return Math.abs(r-e)<1e-5}function NA(r){var e=r.data,t=r.len(),n=[],i,a=0,o=0,s=0,l=0;function u(L,P){i&&i.length>2&&n.push(i),i=[L,P]}function c(L,P,E,O){vf(L,E)&&vf(P,O)||i.push(L,P,E,O,E,O)}function f(L,P,E,O,V,z){var H=Math.abs(P-L),B=Math.tan(H/4)*4/3,F=P<L?-1:1,ee=Math.cos(L),ae=Math.sin(L),le=Math.cos(P),U=Math.sin(P),j=ee*V+E,Xe=ae*z+O,Te=le*V+E,xe=U*z+O,Be=V*B*F,be=z*B*F;i.push(j-Be*ae,Xe+be*ee,Te+Be*U,xe-be*le,Te,xe)}for(var h,v,d,g,p=0;p<t;){var m=e[p++],y=p===1;switch(y&&(a=e[p],o=e[p+1],s=a,l=o,(m===Ca.L||m===Ca.C||m===Ca.Q)&&(i=[s,l])),m){case Ca.M:a=s=e[p++],o=l=e[p++],u(s,l);break;case Ca.L:h=e[p++],v=e[p++],c(a,o,h,v),a=h,o=v;break;case Ca.C:i.push(e[p++],e[p++],e[p++],e[p++],a=e[p++],o=e[p++]);break;case Ca.Q:h=e[p++],v=e[p++],d=e[p++],g=e[p++],i.push(a+2/3*(h-a),o+2/3*(v-o),d+2/3*(h-d),g+2/3*(v-g),d,g),a=d,o=g;break;case Ca.A:var _=e[p++],w=e[p++],b=e[p++],x=e[p++],S=e[p++],T=e[p++]+S;p+=1;var C=!e[p++];h=Math.cos(S)*b+_,v=Math.sin(S)*x+w,y?(s=h,l=v,u(s,l)):c(a,o,h,v),a=Math.cos(T)*b+_,o=Math.sin(T)*x+w;for(var A=(C?-1:1)*Math.PI/2,M=S;C?M>T:M<T;M+=A){var k=C?Math.max(M+A,T):Math.min(M+A,T);f(M,k,_,w,b,x)}break;case Ca.R:s=a=e[p++],l=o=e[p++],h=s+e[p++],v=l+e[p++],u(h,l),c(h,l,h,v),c(h,v,s,v),c(s,v,s,l),c(s,l,h,l);break;case Ca.Z:i&&c(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}function OA(r,e,t,n,i,a,o,s,l,u){if(vf(r,t)&&vf(e,n)&&vf(i,o)&&vf(a,s)){l.push(o,s);return}var c=2/u,f=c*c,h=o-r,v=s-e,d=Math.sqrt(h*h+v*v);h/=d,v/=d;var g=t-r,p=n-e,m=i-o,y=a-s,_=g*g+p*p,w=m*m+y*y;if(_<f&&w<f){l.push(o,s);return}var b=h*g+v*p,x=-h*m-v*y,S=_-b*b,T=w-x*x;if(S<f&&b>=0&&T<f&&x>=0){l.push(o,s);return}var C=[],A=[];qo(r,t,i,o,.5,C),qo(e,n,a,s,.5,A),OA(C[0],A[0],C[1],A[1],C[2],A[2],C[3],A[3],l,u),OA(C[4],A[4],C[5],A[5],C[6],A[6],C[7],A[7],l,u)}function lye(r,e){var t=NA(r),n=[];e=e||1;for(var i=0;i<t.length;i++){var a=t[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],f=a[u++],h=a[u++],v=a[u++],d=a[u++],g=a[u++];OA(s,l,c,f,h,v,d,g,o,e),s=d,l=g}n.push(o)}return n}function q7(r,e,t){var n=r[e],i=r[1-e],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=t-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function j7(r,e,t){for(var n=r.r0,i=r.r,a=r.startAngle,o=r.endAngle,s=Math.abs(o-a),l=s*i,u=i-n,c=l>Math.abs(u),f=q7([l,u],c?0:1,e),h=(c?s:u)/f.length,v=0;v<f.length;v++)for(var d=(c?u:s)/f[v],g=0;g<f[v];g++){var p={};c?(p.startAngle=a+h*v,p.endAngle=a+h*(v+1),p.r0=n+d*g,p.r=n+d*(g+1)):(p.startAngle=a+d*g,p.endAngle=a+d*(g+1),p.r0=n+h*v,p.r=n+h*(v+1)),p.clockwise=r.clockwise,p.cx=r.cx,p.cy=r.cy,t.push(p)}}function uye(r,e,t){for(var n=r.width,i=r.height,a=n>i,o=q7([n,i],a?0:1,e),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=r[s]/o.length,h=0;h<o.length;h++)for(var v=r[l]/o[h],d=0;d<o[h];d++){var g={};g[u]=h*f,g[c]=d*v,g[s]=f,g[l]=v,g.x+=r.x,g.y+=r.y,t.push(g)}}function K7(r,e,t,n){return r*n-t*e}function cye(r,e,t,n,i,a,o,s){var l=t-r,u=n-e,c=o-i,f=s-a,h=K7(c,f,l,u);if(Math.abs(h)<1e-6)return null;var v=r-i,d=e-a,g=K7(v,d,c,f)/h;return g<0||g>1?null:new Ze(g*l+r,g*u+e)}function fye(r,e,t){var n=new Ze;Ze.sub(n,t,e),n.normalize();var i=new Ze;Ze.sub(i,r,e);var a=i.dot(n);return a}function df(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function hye(r,e,t){for(var n=r.length,i=[],a=0;a<n;a++){var o=r[a],s=r[(a+1)%n],l=cye(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&i.push({projPt:fye(l,e,t),pt:l,idx:a})}if(i.length<2)return[{points:r},{points:r}];i.sort(function(p,m){return p.projPt-m.projPt});var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var h=[u.pt.x,u.pt.y],v=[c.pt.x,c.pt.y],d=[h],g=[v],a=u.idx+1;a<=c.idx;a++)df(d,r[a].slice());df(d,v),df(d,h);for(var a=c.idx+1;a<=u.idx+n;a++)df(g,r[a%n].slice());return df(g,h),df(g,v),[{points:d},{points:g}]}function J7(r){var e=r.points,t=[],n=[];$g(e,t,n);var i=new Ue(t[0],t[1],n[0]-t[0],n[1]-t[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new Ze,c=new Ze;return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),hye(e,u,c)}function gy(r,e,t,n){if(t===1)n.push(e);else{var i=Math.floor(t/2),a=r(e);gy(r,a[0],i,n),gy(r,a[1],t-i,n)}return n}function vye(r,e){for(var t=[],n=0;n<e;n++)t.push(nb(r));return t}function dye(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function pye(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function gye(r,e){var t=[],n=r.shape,i;switch(r.type){case"rect":uye(n,e,t),i=st;break;case"sector":j7(n,e,t),i=ln;break;case"circle":j7({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},e,t),i=ln;break;default:var a=r.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=ne(lye(r.getUpdatedPathProxy(),o),function(m){return pye(m)}),l=s.length;if(l===0)gy(J7,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var c=0,f=ne(s,function(m){var y=[],_=[];$g(m,y,_);var w=(_[1]-y[1])*(_[0]-y[0]);return c+=w,{poly:m,area:w}});f.sort(function(m,y){return y.area-m.area});for(var h=e,u=0;u<l;u++){var v=f[u];if(h<=0)break;var d=u===l-1?h:Math.ceil(v.area/c*e);d<0||(gy(J7,{points:v.poly},d,t),h-=d)}}i=un;break}if(!i)return vye(r,e);for(var g=[],u=0;u<t.length;u++){var p=new i;p.setShape(t[u]),dye(r,p),g.push(p)}return g}function mye(r,e){var t=r.length,n=e.length;if(t===n)return[r,e];for(var i=[],a=[],o=t<n?r:e,s=Math.min(t,n),l=Math.abs(n-t)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],h=l,v=2;v<s;){var d=o[v-2],g=o[v-1],p=o[v++],m=o[v++],y=o[v++],_=o[v++],w=o[v++],b=o[v++];if(h<=0){f.push(p,m,y,_,w,b);continue}for(var x=Math.min(h,c-1)+1,S=1;S<=x;S++){var T=S/x;qo(d,p,y,w,T,i),qo(g,m,_,b,T,a),d=i[3],g=a[3],f.push(i[1],a[1],i[2],a[2],d,g),p=i[5],m=a[5],y=i[6],_=a[6]}h-=x-1}return o===r?[f,e]:[r,f]}function Q7(r,e){for(var t=r.length,n=r[t-2],i=r[t-1],a=[],o=0;o<e.length;)a[o++]=n,a[o++]=i;return a}function yye(r,e){for(var t,n,i,a=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],c=void 0,f=void 0;l?u?(t=mye(l,u),c=t[0],f=t[1],n=c,i=f):(f=Q7(i||l,l),c=l):(c=Q7(n||u,u),f=u),a.push(c),o.push(f)}return[a,o]}function $7(r){for(var e=0,t=0,n=0,i=r.length,a=0,o=i-2;a<i;o=a,a+=2){var s=r[o],l=r[o+1],u=r[a],c=r[a+1],f=s*c-u*l;e+=f,t+=(s+u)*f,n+=(l+c)*f}return e===0?[r[0]||0,r[1]||0]:[t/e/3,n/e/3,e]}function _ye(r,e,t,n){for(var i=(r.length-2)/6,a=1/0,o=0,s=r.length,l=s-2,u=0;u<i;u++){for(var c=u*6,f=0,h=0;h<s;h+=2){var v=h===0?c:(c+h-2)%l+2,d=r[v]-t[0],g=r[v+1]-t[1],p=e[h]-n[0],m=e[h+1]-n[1],y=p-d,_=m-g;f+=y*y+_*_}f<a&&(a=f,o=u)}return o}function wye(r){for(var e=[],t=r.length,n=0;n<t;n+=2)e[n]=r[t-n-2],e[n+1]=r[t-n-1];return e}function bye(r,e,t,n){for(var i=[],a,o=0;o<r.length;o++){var s=r[o],l=e[o],u=$7(s),c=$7(l);a==null&&(a=u[2]<0!=c[2]<0);var f=[],h=[],v=0,d=1/0,g=[],p=s.length;a&&(s=wye(s));for(var m=_ye(s,l,u,c)*6,y=p-2,_=0;_<y;_+=2){var w=(m+_)%y+2;f[_+2]=s[w]-u[0],f[_+3]=s[w+1]-u[1]}f[0]=s[m]-u[0],f[1]=s[m+1]-u[1];for(var b=n/t,x=-n/2;x<=n/2;x+=b){for(var S=Math.sin(x),T=Math.cos(x),C=0,_=0;_<s.length;_+=2){var A=f[_],M=f[_+1],k=l[_]-c[0],L=l[_+1]-c[1],P=k*T-L*S,E=k*S+L*T;g[_]=P,g[_+1]=E;var O=P-A,V=E-M;C+=O*O+V*V}if(C<d){d=C,v=x;for(var z=0;z<g.length;z++)h[z]=g[z]}}i.push({from:f,to:h,fromCp:u,toCp:c,rotation:-v})}return i}function my(r){return r.__isCombineMorphing}var e9="__mOriginal_";function yy(r,e,t){var n=e9+e,i=r[n]||r[e];r[n]||(r[n]=r[e]);var a=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function od(r,e){var t=e9+e;r[t]&&(r[e]=r[t],r[t]=null)}function t9(r,e){for(var t=0;t<r.length;t++)for(var n=r[t],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=e[0]*a+e[2]*o+e[4],n[i++]=e[1]*a+e[3]*o+e[5]}}function r9(r,e){var t=r.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),i=yye(NA(t),NA(n)),a=i[0],o=i[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&t9(a,s),l&&t9(o,l),yy(e,"updateTransform",{replace:u}),e.transform=null;var c=bye(a,o,10,Math.PI),f=[];yy(e,"buildPath",{replace:function(h){for(var v=e.__morphT,d=1-v,g=[],p=0;p<c.length;p++){var m=c[p],y=m.from,_=m.to,w=m.rotation*v,b=m.fromCp,x=m.toCp,S=Math.sin(w),T=Math.cos(w);_g(g,b,x,v);for(var C=0;C<y.length;C+=2){var A=y[C],M=y[C+1],k=_[C],L=_[C+1],P=A*d+k*v,E=M*d+L*v;f[C]=P*T-E*S+g[0],f[C+1]=P*S+E*T+g[1]}var O=f[0],V=f[1];h.moveTo(O,V);for(var C=2;C<y.length;){var k=f[C++],L=f[C++],z=f[C++],H=f[C++],B=f[C++],F=f[C++];O===k&&V===L&&z===B&&H===F?h.lineTo(B,F):h.bezierCurveTo(k,L,z,H,B,F),O=B,V=F}}}})}function RA(r,e,t){if(!r||!e)return e;var n=t.done,i=t.during;r9(r,e),e.__morphT=0;function a(){od(e,"buildPath"),od(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Ne({during:function(o){e.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},t)),e}function xye(r,e,t,n,i,a){var o=16;r=i===t?0:Math.round(32767*(r-t)/(i-t)),e=a===n?0:Math.round(32767*(e-n)/(a-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(r&u)>0&&(c=1),(e&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function _y(r){var e=1/0,t=1/0,n=-1/0,i=-1/0,a=ne(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(f,t),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=ne(a,function(s,l){return{cp:s,z:xye(s[0],s[1],e,t,n,i),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function n9(r){return gye(r.path,r.count)}function VA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Sye(r,e,t){var n=[];function i(b){for(var x=0;x<b.length;x++){var S=b[x];my(S)?i(S.childrenRef()):S instanceof Qe&&n.push(S)}}i(r);var a=n.length;if(!a)return VA();var o=t.dividePath||n9,s=o({path:e,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),VA();n=_y(n),s=_y(s);for(var l=t.done,u=t.during,c=t.individualDelay,f=new qa,h=0;h<a;h++){var v=n[h],d=s[h];d.parent=e,d.copyTransform(f),c||r9(v,d)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function g(b){for(var x=0;x<s.length;x++)s[x].addSelfToZr(b)}yy(e,"addSelfToZr",{after:function(b){g(b)}}),yy(e,"removeSelfFromZr",{after:function(b){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(b)}});function p(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,od(e,"addSelfToZr"),od(e,"removeSelfFromZr")}var m=s.length;if(c)for(var y=m,_=function(){y--,y===0&&(p(),l&&l())},h=0;h<m;h++){var w=c?Ne({delay:(t.delay||0)+c(h,m,n[h],s[h]),done:_},t):t;RA(n[h],s[h],w)}else e.__morphT=0,e.animateTo({__morphT:1},Ne({during:function(b){for(var x=0;x<m;x++){var S=s[x];S.__morphT=e.__morphT,S.dirtyShape()}u&&u(b)},done:function(){p();for(var b=0;b<r.length;b++)od(r[b],"updateTransform");l&&l()}},t));return e.__zr&&g(e.__zr),{fromIndividuals:n,toIndividuals:s,count:m}}function Tye(r,e,t){var n=e.length,i=[],a=t.dividePath||n9;function o(v){for(var d=0;d<v.length;d++){var g=v[d];my(g)?o(g.childrenRef()):g instanceof Qe&&i.push(g)}}if(my(r)){o(r.childrenRef());var s=i.length;if(s<n)for(var l=0,u=s;u<n;u++)i.push(nb(i[l++%s]));i.length=n}else{i=a({path:r,count:n});for(var c=r.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),VA()}i=_y(i),e=_y(e);for(var f=t.individualDelay,u=0;u<n;u++){var h=f?Ne({delay:(t.delay||0)+f(u,n,i[u],e[u])},t):t;RA(i[u],e[u],h)}return{fromIndividuals:i,toIndividuals:e,count:e.length}}function i9(r){return re(r[0])}function a9(r,e){for(var t=[],n=r.length,i=0;i<n;i++)t.push({one:r[i],many:[]});for(var i=0;i<e.length;i++){var a=e[i].length,o=void 0;for(o=0;o<a;o++)t[o%n].many.push(e[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!t[i].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var a=l.length,u=Math.ceil(a/2);t[i].many=l.slice(u,a),t[s].many=l.slice(0,u),s++}return t}var Aye={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var i=nb(r.path);i.setStyle("opacity",t),e.push(i)}return e},split:null};function zA(r,e,t,n,i,a){if(!r.length||!e.length)return;var o=bc("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;i9(r)&&(u=r,c=e),i9(e)&&(u=e,c=r);function f(m,y,_,w,b){var x=m.many,S=m.one;if(x.length===1&&!b){var T=y?x[0]:S,C=y?S:x[0];if(my(T))f({many:[T],one:C},!0,_,w,!0);else{var A=s?Ne({delay:s(_,w)},l):l;RA(T,C,A),a(T,C,T,C,A)}}else for(var M=Ne({dividePath:Aye[t],individualDelay:s&&function(V,z,H,B){return s(V+_,w)}},l),k=y?Sye(x,S,M):Tye(S,x,M),L=k.fromIndividuals,P=k.toIndividuals,E=L.length,O=0;O<E;O++){var A=s?Ne({delay:s(O,E)},l):l;a(L[O],P[O],y?x[O]:m.one,y?m.one:x[O],A)}}for(var h=u?u===r:r.length>e.length,v=u?a9(c,u):a9(h?e:r,[h?r:e]),d=0,g=0;g<v.length;g++)d+=v[g].many.length;for(var p=0,g=0;g<v.length;g++)f(v[g],h,p,d),p+=v[g].many.length}function uu(r){if(!r)return[];if(re(r)){for(var e=[],t=0;t<r.length;t++)e.push(uu(r[t]));return e}var n=[];return r.traverse(function(i){i instanceof Qe&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var o9=1e4,Cye=0,s9=1,l9=2,Dye=ot();function Mye(r,e){for(var t=r.dimensions,n=0;n<t.length;n++){var i=r.getDimensionInfo(t[n]);if(i&&i.otherDims[e]===0)return t[n]}}function Iye(r,e,t){var n=r.getDimensionInfo(t),i=n&&n.ordinalMeta;if(n){var a=r.get(n.name,e);return i&&i.categories[a]||a+""}}function u9(r,e,t,n){var i=n?"itemChildGroupId":"itemGroupId",a=Mye(r,i);if(a){var o=Iye(r,e,a);return o}var s=r.getRawDataItem(e),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return t||r.getId(e)}function c9(r){var e=[];return N(r,function(t){var n=t.data,i=t.dataGroupId;if(n.count()>o9){process.env.NODE_ENV!=="production"&&Xt("Universal transition is disabled on large data > 10k.");return}for(var a=n.getIndices(),o=0;o<a.length;o++)e.push({data:n,groupId:u9(n,o,i,!1),childGroupId:u9(n,o,i,!0),divide:t.divide,dataIndex:o})}),e}function BA(r,e,t){r.traverse(function(n){n instanceof Qe&&Ft(n,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function FA(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function pf(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function Eye(r,e,t){var n=bc("update",t,e);n&&r.traverse(function(i){if(i instanceof Kn){var a=bte(i);a&&i.animateFrom({style:a},n)}})}function Lye(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++){var i=r[n],a=e[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function f9(r,e,t){var n=c9(r),i=c9(e);function a(_,w,b,x,S){(b||_)&&w.animateFrom({style:b&&b!==_?$($({},b.style),_.style):_.style},S)}var o=!1,s=Cye,l=Se(),u=Se();n.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var c=0;c<i.length;c++){var f=i[c].groupId;if(u.get(f)){s=s9;break}var h=i[c].childGroupId;if(h&&l.get(h)){s=l9;break}}function v(_,w){return function(b){var x=b.data,S=b.dataIndex;return w?x.getId(S):_?s===s9?b.childGroupId:b.groupId:s===l9?b.childGroupId:b.groupId}}var d=Lye(n,i),g={};if(!d)for(var c=0;c<i.length;c++){var p=i[c],m=p.data.getItemGraphicEl(p.dataIndex);m&&(g[m.id]=!0)}function y(_,w){var b=n[w],x=i[_],S=x.data.hostModel,T=b.data.getItemGraphicEl(b.dataIndex),C=x.data.getItemGraphicEl(x.dataIndex);if(T===C){C&&Eye(C,x.dataIndex,S);return}T&&g[T.id]||C&&(pf(C),T?(pf(T),FA(T),o=!0,zA(uu(T),uu(C),x.divide,S,_,a)):BA(C,S,_))}new io(n,i,v(!0,d),v(!1,d),null,"multiple").update(y).updateManyToOne(function(_,w){var b=i[_],x=b.data,S=x.hostModel,T=x.getItemGraphicEl(b.dataIndex),C=pt(ne(w,function(A){return n[A].data.getItemGraphicEl(n[A].dataIndex)}),function(A){return A&&A!==T&&!g[A.id]});T&&(pf(T),C.length?(N(C,function(A){pf(A),FA(A)}),o=!0,zA(uu(C),uu(T),b.divide,S,_,a)):BA(T,S,b.dataIndex))}).updateOneToMany(function(_,w){var b=n[w],x=b.data.getItemGraphicEl(b.dataIndex);if(!(x&&g[x.id])){var S=pt(ne(_,function(C){return i[C].data.getItemGraphicEl(i[C].dataIndex)}),function(C){return C&&C!==x}),T=i[_[0]].data.hostModel;S.length&&(N(S,function(C){return pf(C)}),x?(pf(x),FA(x),o=!0,zA(uu(x),uu(S),b.divide,T,_[0],a)):N(S,function(C){return BA(C,T,_[0])}))}}).updateManyToMany(function(_,w){new io(w,_,function(b){return n[b].data.getId(n[b].dataIndex)},function(b){return i[b].data.getId(i[b].dataIndex)}).update(function(b,x){y(_[b],w[x])}).execute()}).execute(),o&&N(e,function(_){var w=_.data,b=w.hostModel,x=b&&t.getViewOfSeriesModel(b),S=bc("update",b,0);x&&b.isAnimationEnabled()&&S&&S.duration>0&&x.group.traverse(function(T){T instanceof Qe&&!T.animators.length&&T.animateFrom({style:{opacity:0}},S)})})}function h9(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function v9(r){return re(r)?r.sort().join(","):r}function xs(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function kye(r,e){var t=Se(),n=Se(),i=Se();N(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],c=h9(o),f=v9(c);n.set(f,{dataGroupId:l,data:u}),re(c)&&N(c,function(h){i.set(h,{key:f,dataGroupId:l,data:u})})});function a(o){t.get(o)&&Xt("Duplicated seriesKey in universalTransition "+o)}return N(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=h9(o),c=v9(u),f=n.get(c);if(f)process.env.NODE_ENV!=="production"&&a(c),t.set(c,{oldSeries:[{dataGroupId:f.dataGroupId,divide:xs(f.data),data:f.data}],newSeries:[{dataGroupId:s,divide:xs(l),data:l}]});else if(re(u)){process.env.NODE_ENV!=="production"&&a(c);var h=[];N(u,function(g){var p=n.get(g);p.data&&h.push({dataGroupId:p.dataGroupId,divide:xs(p.data),data:p.data})}),h.length&&t.set(c,{oldSeries:h,newSeries:[{dataGroupId:s,data:l,divide:xs(l)}]})}else{var v=i.get(u);if(v){var d=t.get(v.key);d||(d={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:xs(v.data)}],newSeries:[]},t.set(v.key,d)),d.newSeries.push({dataGroupId:s,data:l,divide:xs(l)})}}}}),t}function d9(r,e){for(var t=0;t<r.length;t++){var n=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(n)return t}}function Pye(r,e,t,n){var i=[],a=[];N(St(r.from),function(o){var s=d9(e.oldSeries,o);s>=0&&i.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:xs(e.oldData[s]),groupIdDim:o.dimension})}),N(St(r.to),function(o){var s=d9(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();a.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:xs(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&f9(i,a,n)}function Nye(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){N(St(n.seriesTransition),function(i){N(St(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][z0]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,n){var i=Dye(t);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)N(St(a),function(v){Pye(v,i,n,t)});else{var o=kye(i,n);N(o.keys(),function(v){var d=o.get(v);f9(d.oldSeries,d.newSeries,t)})}N(n.updatedSeries,function(v){v[z0]&&(v[z0]=!1)})}for(var s=e.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],c=i.oldData=[],f=0;f<s.length;f++){var h=s[f].getData();h.count()<o9&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(h))}})}je([Uoe]),je([Foe]),je([fse,Cse,Rse,ple,Cle,hue,Fue,Sce,Uce,Jce,ofe,ehe,Ahe,Rhe,Qhe,rve,hve,_ve,Eve,Rve,Yve,Mde]),je(Xde),je(_pe),je(oN),je(kpe),je(DO),je(Rpe),je(Upe),je(kge),je(Jge),je(Jv),je(d0e),je(m0e),je(D0e),je(N0e),je(F0e),je(Y0e),je(rme),je(wme),je(b7),je(A7),je(Fme),je(H7),je(W7),je(Ume),je(iye),je(sye),je(Nye),je(ooe);var Oye=se('<div class="chart-container svelte-1ja1f3p"></div>');function wy(r,e){Ae(e,!0);const t=R(e,"renderer",3,"svg"),n=R(e,"height",3,"100%"),i=R(e,"width",3,"100%"),a=R(e,"autoResize",3,!0),o=R(e,"loading",3,!1);let s=Ye(null),l;function u(d,g){for(const p in g)g[p]instanceof Object&&p in d?u(d[p],g[p]):d[p]=g[p];return d}const c={grid:{left:"48px",right:"16px",top:"16px",bottom:"48px"},xAxis:{nameLocation:"middle",nameGap:32,axisLabel:{fontSize:10,lineHeight:14,align:"center",fontWeight:450,color:Ci.secondary,margin:16,fontFamily:"monospace"},axisLine:{lineStyle:{color:te.gray[2]}},nameTextStyle:{fontSize:12,color:Ci.secondary}},yAxis:{nameLocation:"middle",nameGap:32,nameRotate:90,axisLabel:{fontSize:10,lineHeight:14,align:"center",fontWeight:450,color:Ci.secondary,margin:16,fontFamily:"monospace"},axisLine:{lineStyle:{color:te.gray[2]}},nameTextStyle:{fontSize:12,color:Ci.secondary}}},f=u(structuredClone(c),e.options);function h(){l&&(ie(s,Ee(Mie(l,e.theme,{renderer:t()}))),D(s).setOption(f),e.onitemclick&&D(s).on("click",e.onitemclick),e.onmouseover&&D(s).on("mouseover",e.onmouseover),e.onmouseout&&D(s).on("mouseout",e.onmouseout),o()&&D(s).showLoading())}Ht(()=>{var d,g;o()?(d=D(s))==null||d.showLoading():(g=D(s))==null||g.hideLoading()}),Cu(()=>{if(h(),a()){const d=new ResizeObserver(()=>{var g;return(g=D(s))==null?void 0:g.resize()});return d.observe(l),()=>{var g;d.disconnect(),(g=D(s))==null||g.dispose()}}});var v=Oye();za(v,d=>l=d,()=>l),ce(()=>Fe(v,"style",`width: ${i()??""}; height: ${n()??""};`)),I(r,v),Ce()}function Rye(r,e){Ae(e,!0);const t=R(e,"loading",3,!1);function n(a){var o;(o=e.onitemclick)==null||o.call(e,a)}let i={xAxis:{type:"value",name:e.xAxis,...e.xAxisOptions},yAxis:{type:"value",name:e.yAxis,...e.yAxisOptions},series:[{symbolSize:8,data:e.data,type:"scatter",itemStyle:{color:te.blue[5].default}},{type:"line",data:e.lineData,lineStyle:{type:"dashed",color:te.blue[6]},showSymbol:!1}]};wy(r,{options:i,onitemclick:n,get onmouseover(){return e.onmouseover},get onmouseout(){return e.onmouseout},get loading(){return t()}}),Ce()}function Vye(r,e){Ae(e,!0);const t=(o,s=0,l=void 0)=>(o==null?void 0:o.toLocaleString(l,{minimumFractionDigits:s,maximumFractionDigits:s}))??"";let n=tt(e,["$$slots","$$events","$$legacy","data","xAxis","xAxisOptions","yAxis","yAxisOptions","captureInterval"]);const i=e.captureInterval?Array(e.data.length).fill(null).map((o,s)=>{const l=s*e.captureInterval,u=_t.fromObject({seconds:l}).shiftTo("days","hours","minutes");return u.days>=1?u.toFormat("dd:hh:mm"):u.toFormat("hh:mm")}):void 0;Ht(()=>{console.log(i)});let a={color:["#5750EE","#FF7100","#50EEA6","#E7EE50","#EE5098"],grid:{top:10,bottom:10,left:10,right:10,containLabel:!0},textStyle:{color:Ci.secondary},xAxis:{type:"category",boundaryGap:!1,axisLine:{onZero:!1},name:e.xAxis,data:i,...e.xAxisOptions},yAxis:{type:"value",alignTicks:!0,axisLabel:{formatter:o=>o.toLocaleString()},axisPointer:{label:{formatter:o=>t(o.value,2)}},name:e.yAxis,...e.yAxisOptions},selectedMode:"multiple",series:{animation:!1,seriesLayoutBy:"row",emphasis:{focus:"series"},tooltip:{show:!1},type:"line",symbol:e.data.length>1?"none":"circle",data:e.data}};wy(r,An({options:a},()=>n)),Ce()}function zye(r,e){Ae(e,!0);const t=(s,l=0,u=void 0)=>(s==null?void 0:s.toLocaleString(u,{minimumFractionDigits:l,maximumFractionDigits:l}))??"";let n=tt(e,["$$slots","$$events","$$legacy","data","xAxis","xAxisOptions","yAxis","yAxisOptions","captureInterval"]);const i=e.data.reduce((s,l)=>l.series.length>s.length?l.series:s,[]).length,a=e.captureInterval?Array(i).fill(null).map((s,l)=>{const u=l*e.captureInterval,c=_t.fromObject({seconds:u}).shiftTo("days","hours","minutes");return c.days>=1?c.toFormat("dd:hh:mm"):c.toFormat("hh:mm")}):void 0;let o={color:["#5750EE","#FF7100","#50EEA6","#E7EE50","#EE5098"],grid:{top:10,bottom:10,left:10,right:10,containLabel:!0},textStyle:{color:Ci.secondary},xAxis:{type:"category",boundaryGap:!1,axisLine:{onZero:!1},name:e.xAxis,data:a,...e.xAxisOptions},yAxis:{type:"value",alignTicks:!0,axisLabel:{formatter:s=>s.toLocaleString()},axisPointer:{label:{formatter:s=>t(s.value,2)}},name:e.yAxis,...e.yAxisOptions},selectedMode:"multiple",series:e.data.map(s=>({animation:!1,seriesLayoutBy:"row",emphasis:{focus:"series"},tooltip:{show:!1},type:"line",symbol:s.series.length>1?"none":"circle",data:s.series}))};wy(r,An({options:o},()=>n)),Ce()}var Bye=r=>r.stopPropagation(),Fye=se('<th class="svelte-6zuo8h"><p class="svelte-6zuo8h"> </p></th>'),Hye=(r,e,t,n,i)=>{e(D(t),D(n),D(i))},Gye=J('<svg class="current-date-indicator text-accent svelte-6zuo8h" xmlns="http://www.w3.org/2000/svg" width="4" height="4" viewBox="0 0 4 4"><circle cx="2" cy="2" r="2" fill="currentColor"></circle></svg>'),Wye=se('<div class="date-container svelte-6zuo8h"><p><button class="svelte-6zuo8h"> </button></p> <!></div>'),Zye=se('<td class="svelte-6zuo8h"><!></td>'),Uye=se('<tr class="svelte-6zuo8h"></tr>'),Yye=se('<div class="calendar-container svelte-6zuo8h"><div class="calendar svelte-6zuo8h"><div class="calendar-header"><div class="month-year svelte-6zuo8h"><!> <h5> </h5> <!></div></div> <div class="calendar-body svelte-6zuo8h"><table class="svelte-6zuo8h"><thead class="svelte-6zuo8h"><tr class="svelte-6zuo8h"></tr></thead><tbody></tbody></table></div></div></div>');function Xye(r,e){Ae(e,!0);let t=R(e,"selectedDate",15),n=R(e,"onClick",3,V=>{});const i=["Mo","Tu","We","Th","Fr","Sa","Su"];let a=We.local();const o=a.day,s=a.month,l=a.year;let u=Ye(Ee(a.month)),c=Ye(Ee(a.year)),f=Ye(void 0),h=Ye(void 0),v=Ye(void 0),d=Ye(Ee(g()));FB(()=>{t()&&(ie(f,Ee(t().day)),ie(h,Ee(t().month)),ie(v,Ee(t().year)))}),p();function g(){return[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]]}function p(){ie(d,Ee(g()));const V=We.local(D(c),D(u),1).weekday-1,z=We.local(D(c),D(u),1).daysInMonth;if(z===void 0)return;let H=0,B=V,F=1;for(H=0;H<6;H++){for(;B<7&&F<=z;)D(d)[H][B]=F++,B++;B=0}}function m(){let V=We.local(D(c),D(u)).minus({months:1});ie(u,Ee(V.month)),ie(c,Ee(V.year)),p()}function y(){let V=We.local(D(c),D(u)).plus({months:1});ie(u,Ee(V.month)),ie(c,Ee(V.year)),p()}function _(V,z,H){t(We.local(V,z,H)),n()(t())}var w=Yye();w.__click=[Bye];var b=K(w),x=K(b),S=K(x),T=K(S);ju(T,{onclick:m,children:(V,z)=>{cG(V,{class:"text-secondary",weight:"bold",size:"0.75rem"})},$$slots:{default:!0}});var C=_e(T,2),A=K(C),M=_e(C,2);ju(M,{onclick:y,children:(V,z)=>{yG(V,{class:"text-secondary",weight:"bold",size:"0.75rem"})},$$slots:{default:!0}});var k=_e(x,2),L=K(k),P=K(L),E=K(P);Co(E,21,()=>i,Ao,(V,z)=>{var H=Fye(),B=K(H),F=K(B);ce(()=>Ut(F,D(z))),I(V,H)});var O=_e(P);Co(O,21,()=>D(d),Ao,(V,z)=>{var H=Uye();Co(H,21,()=>D(z),Ao,(B,F)=>{var ee=Zye(),ae=K(ee);{var le=U=>{var j=Wye(),Xe=K(j),Te=K(Xe);Te.__click=[Hye,_,c,u,F];var xe=K(Te),Be=_e(Xe,2);{var be=fe=>{var et=Gye();I(fe,et)};W(Be,fe=>{D(F)===o&&D(u)===s&&D(c)===l&&D(F)!=D(f)&&fe(be)})}ce(()=>{ft(Xe,pp(D(F)===D(f)&&D(h)===D(u)&&D(v)===D(c)?"date selected-date":"date"),"svelte-6zuo8h"),Ut(xe,D(F))}),I(U,j)};W(ae,U=>{D(F)>0&&U(le)})}I(B,ee)}),I(V,H)}),ce(V=>Ut(A,V),[()=>We.local(D(c),D(u)).toFormat("MMM yyyy")]),I(r,w),Ce()}mi(["click"]);var qye=se("<div></div>");function jye(r,e){let t=R(e,"class",3,"");var n=qye();ce(()=>ft(n,`h-0 w-full border-b border-static ${t()}`)),I(r,n)}var Kye=se('<input type="checkbox" class="drawer-toggle">'),Jye=se('<input type="checkbox" class="drawer-toggle">'),Qye=se('<div><!> <div class="drawer-content"><!></div> <div class="drawer-side"><label aria-label="close sidebar" class="drawer-overlay"></label> <div class="h-screen bg-surface sm:w-[460px]"><!></div></div></div>');function $ye(r,e){let t=R(e,"controlled",3,!1),n=R(e,"open",15,!1),i=R(e,"side",3,"right");var a=Qye();ft(a,"drawer-auto-gutter drawer");var o=K(a);{var s=g=>{var p=Kye();ce(()=>Fe(p,"id",e.id)),fD(p,n),I(g,p)},l=g=>{var p=Jye();ce(()=>Fe(p,"id",e.id)),I(g,p)};W(o,g=>{t()?g(s):g(l,!1)})}var u=_e(o,2),c=K(u);he(c,()=>e.trigger??Pe);var f=_e(u,2),h=K(f),v=_e(h,2),d=K(v);he(d,()=>e.content),ce(()=>{dt(a,"drawer-end",i()==="right"),f.inert=t()?!n():!1,Fe(h,"for",e.id)}),I(r,a)}var e1e=se('<div tabindex="0"><!></div>');function t1e(r,e){const t={primary:"bg-surface text-primary",secondary:"bg-base-inverse text-primary-inverse"};let n=R(e,"class",3,""),i=R(e,"variant",3,"primary"),a=q(()=>t[i()]);var o=e1e(),s=K(o);he(s,()=>e.children??Pe),ce(()=>ft(o,`dropdown-content z-[1] mb-2 rounded-md p-1 shadow-2xl ${D(a)} ${n()}`)),I(r,o)}var r1e=se('<ul tabIndex="0"><!></ul>');function n1e(r,e){let t=R(e,"class",3,"");var n=r1e(),i=K(n);he(i,()=>e.children??Pe),ce(()=>ft(n,`menu dropdown-content menu-md z-[1] rounded-lg bg-surface p-1 shadow-menu ${t()}`)),I(r,n)}var i1e=se('<div role="button" tabindex="0"><!></div>');function a1e(r,e){let t=R(e,"size",3,"md"),n=R(e,"class",3,""),i=R(e,"variant",3,"primary"),a=R(e,"noPadding",3,!1),o=R(e,"iconButton",3,!1);const s=q(()=>({sm:`h-8 ${a()?"px-0":o()?"px-2":"px-3"} ${a()?"py-0":o()?"py-2":"py-3"}`,md:"h-10 px-5 py-3",lg:"h-12 px-6 py-4"})),l={primary:"bg-accent-inverse text-primary-inverse hover:bg-accent-inverse-hover disabled:bg-neutral disabled:text-tertiary",secondary:"bg-neutral text-primary hover:bg-neutral-hover disabled:bg-neutral disabled:text-tertiary",transparent:"bg-transparent text-primary hover:bg-neutral disabled:bg-neutral disabled:text-tertiary",danger:"bg-danger text-primary-inverse hover:bg-danger-hover disabled:bg-neutral disabled:text-tertiary"};var u=i1e(),c=K(u);he(c,()=>e.children??Pe),ce(()=>ft(u,`inline-flex items-center justify-center gap-2 rounded-full text-base font-medium leading-6 ${l[i()]} ${D(s)[t()]} ${n()}`)),I(r,u)}var o1e=se('<div role="button" tabindex="0"><!></div>');function s1e(r,e){let t=R(e,"class",3,"");var n=o1e(),i=K(n);he(i,()=>e.children),ce(()=>ft(n,`${`${t()}`??""} svelte-12gdjkt`)),I(r,n)}function l1e(r,e,t){e()&&t()}function u1e(r,e){r.key==="Escape"&&e()}var c1e=se('<div><!> <div class="dropdown-content z-10 w-full" role="menu" tabindex="-1"><!></div></div>');function f1e(r,e){let t=R(e,"side",3,"dropdown-bottom"),n=R(e,"open",15,!1),i=R(e,"alignEnd",3,!1),a=R(e,"openOnHover",3,!1),o=R(e,"closeOnItemClick",3,!1),s=R(e,"class",3,"");const l=()=>{n(!1),document.activeElement instanceof HTMLElement&&document.activeElement.blur()};var u=c1e(),c=K(u);he(c,()=>e.trigger??Pe,()=>({Trigger:a1e,OutlinedButton:s1e}));var f=_e(c,2);f.__keydown=[u1e,l],f.__click=[l1e,o,l];var h=K(f);he(h,()=>e.content??Pe,()=>({DropdownMenu:n1e,DropdownContent:t1e})),ce(()=>{ft(u,`dropdown ${t()??""} ${s()??""}`),dt(u,"dropdown-end",i()),dt(u,"dropdown-open",n()),dt(u,"dropdown-hover",a())}),I(r,u)}mi(["keydown","click"]);function h1e(r,e){Ae(e,!0);let t=R(e,"weight",3,"regular"),n=R(e,"width",3,16),i=R(e,"height",3,16);var a=Z(),o=G(a);Fn(o,()=>g9(e.iconName??"SealQuestion"),(s,l)=>{l(s,{get color(){return Ci[e.color??"icon-primary"]},get class(){return e.class},get weight(){return t()},get width(){return n()},get height(){return i()}})}),I(r,a),Ce()}const p9={BowlingBall:jH,Circle:hW,SealQuestion:aZ,CheckCircle:GG,X:Fu,Warning:RZ,WarningCircle:qM};function g9(r){return p9[r]}var v1e=se("<div><!></div>");function d1e(r,e){let t=R(e,"class",3,"");var n=v1e(),i=K(n);he(i,()=>e.children??Pe),ce(()=>ft(n,`bg-neutral ${t()}`)),I(r,n)}var p1e=J('<svg width="100%" height="100%" viewBox="0 0 160 97" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M71 46.4792C67.1348 46.4792 64 43.3117 64 39.4062C64 35.5008 67.1348 32.3333 71 32.3333C74.8652 32.3333 78 35.5008 78 39.4062C78.0045 43.3117 74.8697 46.4792 71 46.4792Z" fill="#FFFFFF"></path><path d="M89 46.4792C85.1348 46.4792 82 43.3117 82 39.4062C82 35.5008 85.1348 32.3333 89 32.3333C92.8652 32.3333 96 35.5008 96 39.4062C96.0045 43.3117 92.8697 46.4792 89 46.4792Z" fill="#FFFFFF"></path><path d="M64 57.5937C64 53.6883 67.1348 50.5208 71 50.5208C74.8652 50.5208 78 53.6883 78 57.5937C78 61.4992 74.8652 64.6667 71 64.6667C67.1348 64.6667 64 61.4992 64 57.5937Z" fill="#FFFFFF"></path></svg>');function m9(r){var e=p1e();I(r,e)}var g1e=se('<div role="status"><!></div>');function HA(r,e){let t=R(e,"class",3,""),n=R(e,"dataTestId",3,"");var i=g1e(),a=K(i);he(a,()=>e.children??Pe,()=>({Skeleton:d1e,SkeletonImage:m9})),ce(()=>{ft(i,`h-full w-full animate-pulse ${t()}`),Fe(i,"data-testid",n())}),I(r,i)}var m1e=se('<div class="flex h-[92px] flex-1 flex-col justify-between gap-2 rounded-lg bg-neutral p-4"><!> <div class="flex items-baseline gap-2"><!></div></div>');function y1e(r){HA(r,{children:(t,n)=>{let i=()=>n==null?void 0:n().Skeleton;var a=m1e(),o=K(a);i()(o,{class:"h-4 w-1/2 "});var s=_e(o,2),l=K(s);i()(l,{class:"h-8 w-16"}),I(t,a)},$$slots:{default:!0}})}var _1e=J('<svg xmlns="http://www.w3.org/2000/svg"><path d="M5.25 10.5C2.3511 10.5 0 8.1489 0 5.25C0 2.3511 2.3511 0 5.25 0C8.1489 0 10.5 2.3511 10.5 5.25C10.5034 8.1489 8.1523 10.5 5.25 10.5Z"></path><path d="M18.75 10.5C15.8511 10.5 13.5 8.1489 13.5 5.25C13.5 2.3511 15.8511 0 18.75 0C21.6489 0 24 2.3511 24 5.25C24.0034 8.1489 21.6523 10.5 18.75 10.5Z"></path><path d="M0 18.75C0 15.8511 2.3511 13.5 5.25 13.5C8.1489 13.5 10.5 15.8511 10.5 18.75C10.5 21.6489 8.1489 24 5.25 24C2.3511 24 0 21.6489 0 18.75Z"></path></svg>');function y9(r,e){let t=R(e,"size",3,"md"),n=R(e,"color",3,"default");const i={default:"#ff7a00",white:"#ffffff"},a={xs:16,sm:20,md:24,lg:32,xl:40};var o=_1e();Fe(o,"viewBox","0 0 24 24"),ce(()=>{Fe(o,"width",a[t()]),Fe(o,"height",a[t()]),Fe(o,"fill",i[n()])}),I(r,o)}var w1e=se('<img class="h-full w-full object-cover">'),b1e=se('<div class="flex h-full w-full items-center justify-center bg-neutral-darker"><!></div>'),x1e=se('<div class="flex h-full flex-grow flex-col content-center justify-center"><!></div>'),S1e=se('<div class="h-full w-full"><!></div>');function T1e(r,e){Ae(e,!0);let t=Ye(!1),n=Ye(!1),i=Ye(!1);Cu(()=>{const u=new Image;u.src=e.src,ie(i,!0),u.onload=()=>{ie(i,!1),ie(t,!0)},u.onerror=()=>{ie(i,!1),ie(n,!0)}});var a=S1e(),o=K(a);{var s=u=>{var c=w1e();ce(()=>{Fe(c,"src",e.src),Fe(c,"alt",e.alt)}),I(u,c)},l=u=>{var c=Z(),f=G(c);{var h=d=>{var g=b1e(),p=K(g);y9(p,{color:"white",size:"lg"}),I(d,g)},v=d=>{var g=Z(),p=G(g);{var m=y=>{var _=x1e(),w=K(_);HA(w,{children:(x,S)=>{let T=()=>S==null?void 0:S().Skeleton,C=()=>S==null?void 0:S().SkeletonImage;var A=Z(),M=G(A);Fn(M,T,(k,L)=>{L(k,{class:" h-full w-full rounded-s-lg bg-[#D9E6E9]",children:(P,E)=>{var O=Z(),V=G(O);Fn(V,C,(z,H)=>{H(z,{})}),I(P,O)},$$slots:{default:!0}})}),I(x,A)},$$slots:{default:!0}}),I(y,_)};W(p,y=>{D(i)&&y(m)},!0)}I(d,g)};W(f,d=>{D(n)?d(h):d(v,!1)},!0)}I(u,c)};W(o,u=>{D(t)?u(s):u(l,!1)})}I(r,a),Ce()}function _9(r,e,t,n,i){if(e())return;const a=r.target;t(a.value),n()==="textarea"&&i(a)}var A1e=se('<label class="block px-1 py-2 text-sm text-secondary"> </label>'),C1e=se('<textarea rows="3" class="svelte-b03foa"></textarea>'),D1e=se('<div class="whitespace-nowrap text-secondary svelte-b03foa"><!></div> <input class="inline leading-none svelte-b03foa"> <div class="whitespace-nowrap text-secondary svelte-b03foa"><!></div>',1),M1e=se('<div class="w-full svelte-b03foa"><!> <div><!></div> <!></div>');function I1e(r,e){Ae(e,!0);let t=R(e,"label",3,null),n=R(e,"value",15),i=R(e,"type",3,"text"),a=R(e,"required",3,!1),o=R(e,"autofocus",3,!1),s=R(e,"placeholder",3,""),l=R(e,"id",3,void 0),u=R(e,"validator",3,L=>!0),c=R(e,"onBlur",3,()=>{}),f=R(e,"onkeydown",3,()=>{}),h=R(e,"input",15),v=R(e,"maxlength",3,null),d=R(e,"size",3,"md"),g=R(e,"readonly",3,!1),p=Ye(!0);const m=Math.random().toString(36).substring(7);function y(L){L.style.height="auto",L.scrollHeight<200?(L.style.height=`${L.scrollHeight}px`,L.style.overflowY="hidden"):(L.style.height="200px",L.style.overflowY="auto")}function _(L){ie(p,Ee(u()(n()))),c()(L)}var w=M1e(),b=K(w);{var x=L=>{var P=A1e(),E=K(P);ce(()=>{Fe(P,"for",l()??m),Ut(E,t())}),I(L,P)};W(b,L=>{t()&&L(x)})}var S=_e(b,2),T=K(S);{var C=L=>{var P=C1e();P.__input=[_9,g,n,i,y],P.__keydown=function(...E){var O;(O=f())==null||O.apply(this,E)},Q1(P,o()),za(P,E=>h(E),()=>h()),ce(()=>{Fe(P,"id",l()??m),Fe(P,"aria-label",t()),i_(P,n()),P.required=a(),Fe(P,"placeholder",s()),Fe(P,"maxlength",v()),Fe(P,"name",e.name),P.readOnly=g(),dt(P,"has-text",n()),dt(P,"has-placeholder",s())}),At("blur",P,_),I(L,P)},A=L=>{var P=D1e(),E=G(P),O=K(E);he(O,()=>e.prefix??Pe,()=>({valid:D(p)}));var V=_e(E,2);V.__input=[_9,g,n,i,y],V.__keydown=function(...B){var F;(F=f())==null||F.apply(this,B)},Q1(V,o()),za(V,B=>h(B),()=>h());var z=_e(V,2),H=K(z);he(H,()=>e.suffix??Pe),ce(()=>{Fe(V,"id",l()??m),Fe(V,"aria-label",t()),Fe(V,"type",i()),Fe(V,"name",e.name),V.required=a(),i_(V,n()),Fe(V,"placeholder",s()),Fe(V,"maxlength",v()),V.readOnly=g(),dt(V,"has-text",n()),dt(V,"has-placeholder",s())}),At("blur",V,_),I(L,P)};W(T,L=>{i()==="textarea"?L(C):L(A,!1)})}var M=_e(S,2);{var k=L=>{var P=Z(),E=G(P);he(E,()=>e.error??Pe),I(L,P)};W(M,L=>{D(p)||L(k)})}ce(()=>{ft(S,`flex w-full items-center gap-1 rounded-lg border border-input bg-surface shadow-input size-${d()??""} svelte-b03foa`),dt(S,"!border-error",!D(p))}),I(r,w),Ce()}mi(["input","keydown"]);var E1e=se('<div class="item"><!></div>'),L1e=se("<div></div>");function k1e(r,e){let t=R(e,"overflow",3,"overflow-y-auto"),n=R(e,"variant",3,"default");var i=L1e();Co(i,21,()=>e.items,Ao,(a,o)=>{var s=E1e(),l=K(s);he(l,()=>e.item,()=>D(o)),I(a,s)}),ce(()=>ft(i,`${`listStyles ${n()==="compact"?"compact":"default"} ${t()} `??""}} svelte-pnvtx0`)),I(r,i)}function GA(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let cu=GA();function w9(r){cu=r}const sd={exec:()=>null};function Lt(r,e=""){let t=typeof r=="string"?r:r.source;const n={replace:(i,a)=>{let o=typeof a=="string"?a:a.source;return o=o.replace(pn.caret,"$1"),t=t.replace(i,o),n},getRegex:()=>new RegExp(t,e)};return n}const pn={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i")},P1e=/^(?:[ \t]*(?:\n|$))+/,N1e=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,O1e=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ld=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,R1e=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,WA=/(?:[*+-]|\d{1,9}[.)])/,b9=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,x9=Lt(b9).replace(/bull/g,WA).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),V1e=Lt(b9).replace(/bull/g,WA).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ZA=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,z1e=/^[^\n]+/,UA=/(?!\s*\])(?:\\.|[^\[\]\\])+/,B1e=Lt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",UA).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),F1e=Lt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,WA).getRegex(),by="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",YA=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,H1e=Lt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",YA).replace("tag",by).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),S9=Lt(ZA).replace("hr",ld).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",by).getRegex(),XA={blockquote:Lt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",S9).getRegex(),code:N1e,def:B1e,fences:O1e,heading:R1e,hr:ld,html:H1e,lheading:x9,list:F1e,newline:P1e,paragraph:S9,table:sd,text:z1e},T9=Lt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ld).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",by).getRegex(),G1e={...XA,lheading:V1e,table:T9,paragraph:Lt(ZA).replace("hr",ld).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",T9).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",by).getRegex()},W1e={...XA,html:Lt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",YA).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:sd,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Lt(ZA).replace("hr",ld).replace("heading",` *#{1,6} *[^
|
|
84
|
-
]`).replace("lheading",x9).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Z1e=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,U1e=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,A9=/^( {2,}|\\)\n(?!\s*$)/,Y1e=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,xy=/[\p{P}\p{S}]/u,qA=/[\s\p{P}\p{S}]/u,C9=/[^\s\p{P}\p{S}]/u,X1e=Lt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,qA).getRegex(),D9=/(?!~)[\p{P}\p{S}]/u,q1e=/(?!~)[\s\p{P}\p{S}]/u,j1e=/(?:[^\s\p{P}\p{S}]|~)/u,K1e=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,M9=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,J1e=Lt(M9,"u").replace(/punct/g,xy).getRegex(),Q1e=Lt(M9,"u").replace(/punct/g,D9).getRegex(),I9="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",$1e=Lt(I9,"gu").replace(/notPunctSpace/g,C9).replace(/punctSpace/g,qA).replace(/punct/g,xy).getRegex(),e_e=Lt(I9,"gu").replace(/notPunctSpace/g,j1e).replace(/punctSpace/g,q1e).replace(/punct/g,D9).getRegex(),t_e=Lt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,C9).replace(/punctSpace/g,qA).replace(/punct/g,xy).getRegex(),r_e=Lt(/\\(punct)/,"gu").replace(/punct/g,xy).getRegex(),n_e=Lt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),i_e=Lt(YA).replace("(?:-->|$)","-->").getRegex(),a_e=Lt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",i_e).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Sy=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,o_e=Lt(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Sy).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),E9=Lt(/^!?\[(label)\]\[(ref)\]/).replace("label",Sy).replace("ref",UA).getRegex(),L9=Lt(/^!?\[(ref)\](?:\[\])?/).replace("ref",UA).getRegex(),s_e=Lt("reflink|nolink(?!\\()","g").replace("reflink",E9).replace("nolink",L9).getRegex(),jA={_backpedal:sd,anyPunctuation:r_e,autolink:n_e,blockSkip:K1e,br:A9,code:U1e,del:sd,emStrongLDelim:J1e,emStrongRDelimAst:$1e,emStrongRDelimUnd:t_e,escape:Z1e,link:o_e,nolink:L9,punctuation:X1e,reflink:E9,reflinkSearch:s_e,tag:a_e,text:Y1e,url:sd},l_e={...jA,link:Lt(/^!?\[(label)\]\((.*?)\)/).replace("label",Sy).getRegex(),reflink:Lt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Sy).getRegex()},KA={...jA,emStrongRDelimAst:e_e,emStrongLDelim:Q1e,url:Lt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},u_e={...KA,br:Lt(A9).replace("{2,}","*").getRegex(),text:Lt(KA.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ty={normal:XA,gfm:G1e,pedantic:W1e},ud={normal:jA,gfm:KA,breaks:u_e,pedantic:l_e},c_e={"&":"&","<":"<",">":">",'"':""","'":"'"},k9=r=>c_e[r];function Da(r,e){if(e){if(pn.escapeTest.test(r))return r.replace(pn.escapeReplace,k9)}else if(pn.escapeTestNoEncode.test(r))return r.replace(pn.escapeReplaceNoEncode,k9);return r}function P9(r){try{r=encodeURI(r).replace(pn.percentDecode,"%")}catch{return null}return r}function N9(r,e){var a;const t=r.replace(pn.findPipe,(o,s,l)=>{let u=!1,c=s;for(;--c>=0&&l[c]==="\\";)u=!u;return u?"|":" |"}),n=t.split(pn.splitPipe);let i=0;if(n[0].trim()||n.shift(),n.length>0&&!((a=n.at(-1))!=null&&a.trim())&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(pn.slashPipe,"|");return n}function cd(r,e,t){const n=r.length;if(n===0)return"";let i=0;for(;i<n&&r.charAt(n-i-1)===e;)i++;return r.slice(0,n-i)}function f_e(r,e){if(r.indexOf(e[1])===-1)return-1;let t=0;for(let n=0;n<r.length;n++)if(r[n]==="\\")n++;else if(r[n]===e[0])t++;else if(r[n]===e[1]&&(t--,t<0))return n;return-1}function O9(r,e,t,n,i){const a=e.href,o=e.title||null,s=r[1].replace(i.other.outputLinkReplace,"$1");if(r[0].charAt(0)!=="!"){n.state.inLink=!0;const l={type:"link",raw:t,href:a,title:o,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,l}return{type:"image",raw:t,href:a,title:o,text:s}}function h_e(r,e,t){const n=r.match(t.other.indentCodeCompensation);if(n===null)return e;const i=n[1];return e.split(`
|
|
85
|
-
`).map(a=>{const o=a.match(t.other.beginningSpace);if(o===null)return a;const[s]=o;return s.length>=i.length?a.slice(i.length):a}).join(`
|
|
86
|
-
`)}class Ay{constructor(e){pe(this,"options");pe(this,"rules");pe(this,"lexer");this.options=e||cu}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:cd(n,`
|
|
87
|
-
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],i=h_e(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){const i=cd(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(n=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:cd(t[0],`
|
|
88
|
-
`)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let n=cd(t[0],`
|
|
89
|
-
`).split(`
|
|
90
|
-
`),i="",a="";const o=[];for(;n.length>0;){let s=!1;const l=[];let u;for(u=0;u<n.length;u++)if(this.rules.other.blockquoteStart.test(n[u]))l.push(n[u]),s=!0;else if(!s)l.push(n[u]);else break;n=n.slice(u);const c=l.join(`
|
|
91
|
-
`),f=c.replace(this.rules.other.blockquoteSetextReplace,`
|
|
92
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
|
|
93
|
-
${c}`:c,a=a?`${a}
|
|
94
|
-
${f}`:f;const h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,o,!0),this.lexer.state.top=h,n.length===0)break;const v=o.at(-1);if((v==null?void 0:v.type)==="code")break;if((v==null?void 0:v.type)==="blockquote"){const d=v,g=d.raw+`
|
|
95
|
-
`+n.join(`
|
|
96
|
-
`),p=this.blockquote(g);o[o.length-1]=p,i=i.substring(0,i.length-d.raw.length)+p.raw,a=a.substring(0,a.length-d.text.length)+p.text;break}else if((v==null?void 0:v.type)==="list"){const d=v,g=d.raw+`
|
|
97
|
-
`+n.join(`
|
|
98
|
-
`),p=this.list(g);o[o.length-1]=p,i=i.substring(0,i.length-v.raw.length)+p.raw,a=a.substring(0,a.length-d.raw.length)+p.raw,n=g.substring(o.at(-1).raw.length).split(`
|
|
99
|
-
`);continue}}return{type:"blockquote",raw:i,tokens:o,text:a}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const i=n.length>1,a={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");const o=this.rules.other.listItemRegex(n);let s=!1;for(;e;){let u=!1,c="",f="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;c=t[0],e=e.substring(c.length);let h=t[2].split(`
|
|
100
|
-
`,1)[0].replace(this.rules.other.listReplaceTabs,y=>" ".repeat(3*y.length)),v=e.split(`
|
|
101
|
-
`,1)[0],d=!h.trim(),g=0;if(this.options.pedantic?(g=2,f=h.trimStart()):d?g=t[1].length+1:(g=t[2].search(this.rules.other.nonSpaceChar),g=g>4?1:g,f=h.slice(g),g+=t[1].length),d&&this.rules.other.blankLine.test(v)&&(c+=v+`
|
|
102
|
-
`,e=e.substring(v.length+1),u=!0),!u){const y=this.rules.other.nextBulletRegex(g),_=this.rules.other.hrRegex(g),w=this.rules.other.fencesBeginRegex(g),b=this.rules.other.headingBeginRegex(g),x=this.rules.other.htmlBeginRegex(g);for(;e;){const S=e.split(`
|
|
103
|
-
`,1)[0];let T;if(v=S,this.options.pedantic?(v=v.replace(this.rules.other.listReplaceNesting," "),T=v):T=v.replace(this.rules.other.tabCharGlobal," "),w.test(v)||b.test(v)||x.test(v)||y.test(v)||_.test(v))break;if(T.search(this.rules.other.nonSpaceChar)>=g||!v.trim())f+=`
|
|
104
|
-
`+T.slice(g);else{if(d||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||w.test(h)||b.test(h)||_.test(h))break;f+=`
|
|
105
|
-
`+v}!d&&!v.trim()&&(d=!0),c+=S+`
|
|
106
|
-
`,e=e.substring(S.length+1),h=T.slice(g)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(s=!0));let p=null,m;this.options.gfm&&(p=this.rules.other.listIsTask.exec(f),p&&(m=p[0]!=="[ ] ",f=f.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:c,task:!!p,checked:m,loose:!1,text:f,tokens:[]}),a.raw+=c}const l=a.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let u=0;u<a.items.length;u++)if(this.lexer.state.top=!1,a.items[u].tokens=this.lexer.blockTokens(a.items[u].text,[]),!a.loose){const c=a.items[u].tokens.filter(h=>h.type==="space"),f=c.length>0&&c.some(h=>this.rules.other.anyLine.test(h.raw));a.loose=f}if(a.loose)for(let u=0;u<a.items.length;u++)a.items[u].loose=!0;return a}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:i,title:a}}}table(e){var s;const t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;const n=N9(t[1]),i=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(s=t[3])!=null&&s.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
107
|
-
`):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===i.length){for(const l of i)this.rules.other.tableAlignRight.test(l)?o.align.push("right"):this.rules.other.tableAlignCenter.test(l)?o.align.push("center"):this.rules.other.tableAlignLeft.test(l)?o.align.push("left"):o.align.push(null);for(let l=0;l<n.length;l++)o.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:o.align[l]});for(const l of a)o.rows.push(N9(l,o.header.length).map((u,c)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:o.align[c]})));return o}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const n=t[1].charAt(t[1].length-1)===`
|
|
108
|
-
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;const o=cd(n.slice(0,-1),"\\");if((n.length-o.length)%2===0)return}else{const o=f_e(t[2],"()");if(o>-1){const l=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let i=t[2],a="";if(this.options.pedantic){const o=this.rules.other.pedanticHrefTitle.exec(i);o&&(i=o[1],a=o[3])}else a=t[3]?t[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i=i.slice(1):i=i.slice(1,-1)),O9(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const i=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=t[i.toLowerCase()];if(!a){const o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return O9(n,a,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!i||i[3]&&n.match(this.rules.other.unicodeAlphaNumeric))return;if(!(i[1]||i[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const o=[...i[0]].length-1;let s,l,u=o,c=0;const f=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,t=t.slice(-1*e.length+o);(i=f.exec(t))!=null;){if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!s)continue;if(l=[...s].length,i[3]||i[4]){u+=l;continue}else if((i[5]||i[6])&&o%3&&!((o+l)%3)){c+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u+c);const h=[...i[0]][0].length,v=e.slice(0,o+i.index+h+l);if(Math.min(o,l)%2){const g=v.slice(1,-1);return{type:"em",raw:v,text:g,tokens:this.lexer.inlineTokens(g)}}const d=v.slice(2,-2);return{type:"strong",raw:v,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," ");const i=this.rules.other.nonSpaceChar.test(n),a=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return i&&a&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let n,i;return t[2]==="@"?(n=t[1],i="mailto:"+n):(n=t[1],i=n),{type:"link",raw:t[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let i,a;if(t[2]==="@")i=t[0],a="mailto:"+i;else{let o;do o=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(o!==t[0]);i=t[0],t[1]==="www."?a="http://"+t[0]:a=t[0]}return{type:"link",raw:t[0],text:i,href:a,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}}class fi{constructor(e){pe(this,"tokens");pe(this,"options");pe(this,"state");pe(this,"tokenizer");pe(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||cu,this.options.tokenizer=this.options.tokenizer||new Ay,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={other:pn,block:Ty.normal,inline:ud.normal};this.options.pedantic?(t.block=Ty.pedantic,t.inline=ud.pedantic):this.options.gfm&&(t.block=Ty.gfm,this.options.breaks?t.inline=ud.breaks:t.inline=ud.gfm),this.tokenizer.rules=t}static get rules(){return{block:Ty,inline:ud}}static lex(e,t){return new fi(t).lex(e)}static lexInline(e,t){return new fi(t).inlineTokens(e)}lex(e){e=e.replace(pn.carriageReturn,`
|
|
109
|
-
`),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const n=this.inlineQueue[t];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){var i,a,o;for(this.options.pedantic&&(e=e.replace(pn.tabCharGlobal," ").replace(pn.spaceLine,""));e;){let s;if((a=(i=this.options.extensions)==null?void 0:i.block)!=null&&a.some(u=>(s=u.call({lexer:this},e,t))?(e=e.substring(s.raw.length),t.push(s),!0):!1))continue;if(s=this.tokenizer.space(e)){e=e.substring(s.raw.length);const u=t.at(-1);s.raw.length===1&&u!==void 0?u.raw+=`
|
|
110
|
-
`:t.push(s);continue}if(s=this.tokenizer.code(e)){e=e.substring(s.raw.length);const u=t.at(-1);(u==null?void 0:u.type)==="paragraph"||(u==null?void 0:u.type)==="text"?(u.raw+=`
|
|
111
|
-
`+s.raw,u.text+=`
|
|
112
|
-
`+s.text,this.inlineQueue.at(-1).src=u.text):t.push(s);continue}if(s=this.tokenizer.fences(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.heading(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.hr(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.blockquote(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.list(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.html(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.def(e)){e=e.substring(s.raw.length);const u=t.at(-1);(u==null?void 0:u.type)==="paragraph"||(u==null?void 0:u.type)==="text"?(u.raw+=`
|
|
113
|
-
`+s.raw,u.text+=`
|
|
114
|
-
`+s.raw,this.inlineQueue.at(-1).src=u.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.lheading(e)){e=e.substring(s.raw.length),t.push(s);continue}let l=e;if((o=this.options.extensions)!=null&&o.startBlock){let u=1/0;const c=e.slice(1);let f;this.options.extensions.startBlock.forEach(h=>{f=h.call({lexer:this},c),typeof f=="number"&&f>=0&&(u=Math.min(u,f))}),u<1/0&&u>=0&&(l=e.substring(0,u+1))}if(this.state.top&&(s=this.tokenizer.paragraph(l))){const u=t.at(-1);n&&(u==null?void 0:u.type)==="paragraph"?(u.raw+=`
|
|
115
|
-
`+s.raw,u.text+=`
|
|
116
|
-
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):t.push(s),n=l.length!==e.length,e=e.substring(s.raw.length);continue}if(s=this.tokenizer.text(e)){e=e.substring(s.raw.length);const u=t.at(-1);(u==null?void 0:u.type)==="text"?(u.raw+=`
|
|
117
|
-
`+s.raw,u.text+=`
|
|
118
|
-
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):t.push(s);continue}if(e){const u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var s,l,u;let n=e,i=null;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)c.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a=!1,o="";for(;e;){a||(o=""),a=!1;let c;if((l=(s=this.options.extensions)==null?void 0:s.inline)!=null&&l.some(h=>(c=h.call({lexer:this},e,t))?(e=e.substring(c.raw.length),t.push(c),!0):!1))continue;if(c=this.tokenizer.escape(e)){e=e.substring(c.raw.length),t.push(c);continue}if(c=this.tokenizer.tag(e)){e=e.substring(c.raw.length),t.push(c);continue}if(c=this.tokenizer.link(e)){e=e.substring(c.raw.length),t.push(c);continue}if(c=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(c.raw.length);const h=t.at(-1);c.type==="text"&&(h==null?void 0:h.type)==="text"?(h.raw+=c.raw,h.text+=c.text):t.push(c);continue}if(c=this.tokenizer.emStrong(e,n,o)){e=e.substring(c.raw.length),t.push(c);continue}if(c=this.tokenizer.codespan(e)){e=e.substring(c.raw.length),t.push(c);continue}if(c=this.tokenizer.br(e)){e=e.substring(c.raw.length),t.push(c);continue}if(c=this.tokenizer.del(e)){e=e.substring(c.raw.length),t.push(c);continue}if(c=this.tokenizer.autolink(e)){e=e.substring(c.raw.length),t.push(c);continue}if(!this.state.inLink&&(c=this.tokenizer.url(e))){e=e.substring(c.raw.length),t.push(c);continue}let f=e;if((u=this.options.extensions)!=null&&u.startInline){let h=1/0;const v=e.slice(1);let d;this.options.extensions.startInline.forEach(g=>{d=g.call({lexer:this},v),typeof d=="number"&&d>=0&&(h=Math.min(h,d))}),h<1/0&&h>=0&&(f=e.substring(0,h+1))}if(c=this.tokenizer.inlineText(f)){e=e.substring(c.raw.length),c.raw.slice(-1)!=="_"&&(o=c.raw.slice(-1)),a=!0;const h=t.at(-1);(h==null?void 0:h.type)==="text"?(h.raw+=c.raw,h.text+=c.text):t.push(c);continue}if(e){const h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return t}}class Cy{constructor(e){pe(this,"options");pe(this,"parser");this.options=e||cu}space(e){return""}code({text:e,lang:t,escaped:n}){var o;const i=(o=(t||"").match(pn.notSpaceStart))==null?void 0:o[0],a=e.replace(pn.endingNewline,"")+`
|
|
119
|
-
`;return i?'<pre><code class="language-'+Da(i)+'">'+(n?a:Da(a,!0))+`</code></pre>
|
|
120
|
-
`:"<pre><code>"+(n?a:Da(a,!0))+`</code></pre>
|
|
121
|
-
`}blockquote({tokens:e}){return`<blockquote>
|
|
122
|
-
${this.parser.parse(e)}</blockquote>
|
|
123
|
-
`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
124
|
-
`}hr(e){return`<hr>
|
|
125
|
-
`}list(e){const t=e.ordered,n=e.start;let i="";for(let s=0;s<e.items.length;s++){const l=e.items[s];i+=this.listitem(l)}const a=t?"ol":"ul",o=t&&n!==1?' start="'+n+'"':"";return"<"+a+o+`>
|
|
126
|
-
`+i+"</"+a+`>
|
|
127
|
-
`}listitem(e){var n;let t="";if(e.task){const i=this.checkbox({checked:!!e.checked});e.loose?((n=e.tokens[0])==null?void 0:n.type)==="paragraph"?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=i+" "+Da(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):t+=i+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
|
|
128
|
-
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
129
|
-
`}table(e){let t="",n="";for(let a=0;a<e.header.length;a++)n+=this.tablecell(e.header[a]);t+=this.tablerow({text:n});let i="";for(let a=0;a<e.rows.length;a++){const o=e.rows[a];n="";for(let s=0;s<o.length;s++)n+=this.tablecell(o[s]);i+=this.tablerow({text:n})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
|
|
130
|
-
<thead>
|
|
131
|
-
`+t+`</thead>
|
|
132
|
-
`+i+`</table>
|
|
133
|
-
`}tablerow({text:e}){return`<tr>
|
|
134
|
-
${e}</tr>
|
|
135
|
-
`}tablecell(e){const t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
136
|
-
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Da(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){const i=this.parser.parseInline(n),a=P9(e);if(a===null)return i;e=a;let o='<a href="'+e+'"';return t&&(o+=' title="'+Da(t)+'"'),o+=">"+i+"</a>",o}image({href:e,title:t,text:n}){const i=P9(e);if(i===null)return Da(n);e=i;let a=`<img src="${e}" alt="${n}"`;return t&&(a+=` title="${Da(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Da(e.text)}}class JA{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class hi{constructor(e){pe(this,"options");pe(this,"renderer");pe(this,"textRenderer");this.options=e||cu,this.options.renderer=this.options.renderer||new Cy,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new JA}static parse(e,t){return new hi(t).parse(e)}static parseInline(e,t){return new hi(t).parseInline(e)}parse(e,t=!0){var i,a;let n="";for(let o=0;o<e.length;o++){const s=e[o];if((a=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&a[s.type]){const u=s,c=this.options.extensions.renderers[u.type].call({parser:this},u);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type)){n+=c||"";continue}}const l=s;switch(l.type){case"space":{n+=this.renderer.space(l);continue}case"hr":{n+=this.renderer.hr(l);continue}case"heading":{n+=this.renderer.heading(l);continue}case"code":{n+=this.renderer.code(l);continue}case"table":{n+=this.renderer.table(l);continue}case"blockquote":{n+=this.renderer.blockquote(l);continue}case"list":{n+=this.renderer.list(l);continue}case"html":{n+=this.renderer.html(l);continue}case"paragraph":{n+=this.renderer.paragraph(l);continue}case"text":{let u=l,c=this.renderer.text(u);for(;o+1<e.length&&e[o+1].type==="text";)u=e[++o],c+=`
|
|
137
|
-
`+this.renderer.text(u);t?n+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c,escaped:!0}]}):n+=c;continue}default:{const u='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return n}parseInline(e,t=this.renderer){var i,a;let n="";for(let o=0;o<e.length;o++){const s=e[o];if((a=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&a[s.type]){const u=this.options.extensions.renderers[s.type].call({parser:this},s);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=u||"";continue}}const l=s;switch(l.type){case"escape":{n+=t.text(l);break}case"html":{n+=t.html(l);break}case"link":{n+=t.link(l);break}case"image":{n+=t.image(l);break}case"strong":{n+=t.strong(l);break}case"em":{n+=t.em(l);break}case"codespan":{n+=t.codespan(l);break}case"br":{n+=t.br(l);break}case"del":{n+=t.del(l);break}case"text":{n+=t.text(l);break}default:{const u='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return n}}class fd{constructor(e){pe(this,"options");pe(this,"block");this.options=e||cu}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?fi.lex:fi.lexInline}provideParser(){return this.block?hi.parse:hi.parseInline}}pe(fd,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class v_e{constructor(...e){pe(this,"defaults",GA());pe(this,"options",this.setOptions);pe(this,"parse",this.parseMarkdown(!0));pe(this,"parseInline",this.parseMarkdown(!1));pe(this,"Parser",hi);pe(this,"Renderer",Cy);pe(this,"TextRenderer",JA);pe(this,"Lexer",fi);pe(this,"Tokenizer",Ay);pe(this,"Hooks",fd);this.use(...e)}walkTokens(e,t){var i,a;let n=[];for(const o of e)switch(n=n.concat(t.call(this,o)),o.type){case"table":{const s=o;for(const l of s.header)n=n.concat(this.walkTokens(l.tokens,t));for(const l of s.rows)for(const u of l)n=n.concat(this.walkTokens(u.tokens,t));break}case"list":{const s=o;n=n.concat(this.walkTokens(s.items,t));break}default:{const s=o;(a=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&a[s.type]?this.defaults.extensions.childTokens[s.type].forEach(l=>{const u=s[l].flat(1/0);n=n.concat(this.walkTokens(u,t))}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{const i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){const o=t.renderers[a.name];o?t.renderers[a.name]=function(...s){let l=a.renderer.apply(this,s);return l===!1&&(l=o.apply(this,s)),l}:t.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=t[a.level];o?o.unshift(a.tokenizer):t[a.level]=[a.tokenizer],a.start&&(a.level==="block"?t.startBlock?t.startBlock.push(a.start):t.startBlock=[a.start]:a.level==="inline"&&(t.startInline?t.startInline.push(a.start):t.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(t.childTokens[a.name]=a.childTokens)}),i.extensions=t),n.renderer){const a=this.defaults.renderer||new Cy(this.defaults);for(const o in n.renderer){if(!(o in a))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const s=o,l=n.renderer[s],u=a[s];a[s]=(...c)=>{let f=l.apply(a,c);return f===!1&&(f=u.apply(a,c)),f||""}}i.renderer=a}if(n.tokenizer){const a=this.defaults.tokenizer||new Ay(this.defaults);for(const o in n.tokenizer){if(!(o in a))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const s=o,l=n.tokenizer[s],u=a[s];a[s]=(...c)=>{let f=l.apply(a,c);return f===!1&&(f=u.apply(a,c)),f}}i.tokenizer=a}if(n.hooks){const a=this.defaults.hooks||new fd;for(const o in n.hooks){if(!(o in a))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;const s=o,l=n.hooks[s],u=a[s];fd.passThroughHooks.has(o)?a[s]=c=>{if(this.defaults.async)return Promise.resolve(l.call(a,c)).then(h=>u.call(a,h));const f=l.call(a,c);return u.call(a,f)}:a[s]=(...c)=>{let f=l.apply(a,c);return f===!1&&(f=u.apply(a,c)),f}}i.hooks=a}if(n.walkTokens){const a=this.defaults.walkTokens,o=n.walkTokens;i.walkTokens=function(s){let l=[];return l.push(o.call(this,s)),a&&(l=l.concat(a.call(this,s))),l}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return fi.lex(e,t??this.defaults)}parser(e,t){return hi.parse(e,t??this.defaults)}parseMarkdown(e){return(n,i)=>{const a={...i},o={...this.defaults,...a},s=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&a.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=e);const l=o.hooks?o.hooks.provideLexer():e?fi.lex:fi.lexInline,u=o.hooks?o.hooks.provideParser():e?hi.parse:hi.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(n):n).then(c=>l(c,o)).then(c=>o.hooks?o.hooks.processAllTokens(c):c).then(c=>o.walkTokens?Promise.all(this.walkTokens(c,o.walkTokens)).then(()=>c):c).then(c=>u(c,o)).then(c=>o.hooks?o.hooks.postprocess(c):c).catch(s);try{o.hooks&&(n=o.hooks.preprocess(n));let c=l(n,o);o.hooks&&(c=o.hooks.processAllTokens(c)),o.walkTokens&&this.walkTokens(c,o.walkTokens);let f=u(c,o);return o.hooks&&(f=o.hooks.postprocess(f)),f}catch(c){return s(c)}}}onError(e,t){return n=>{if(n.message+=`
|
|
138
|
-
Please report this to https://github.com/markedjs/marked.`,e){const i="<p>An error occurred:</p><pre>"+Da(n.message+"",!0)+"</pre>";return t?Promise.resolve(i):i}if(t)return Promise.reject(n);throw n}}}const fu=new v_e;function zt(r,e){return fu.parse(r,e)}zt.options=zt.setOptions=function(r){return fu.setOptions(r),zt.defaults=fu.defaults,w9(zt.defaults),zt},zt.getDefaults=GA,zt.defaults=cu,zt.use=function(...r){return fu.use(...r),zt.defaults=fu.defaults,w9(zt.defaults),zt},zt.walkTokens=function(r,e){return fu.walkTokens(r,e)},zt.parseInline=fu.parseInline,zt.Parser=hi,zt.parser=hi.parse,zt.Renderer=Cy,zt.TextRenderer=JA,zt.Lexer=fi,zt.lexer=fi.lex,zt.Tokenizer=Ay,zt.Hooks=fd,zt.parse=zt,zt.options,zt.setOptions,zt.use,zt.walkTokens,zt.parseInline,hi.parse,fi.lex;var d_e=se('<div class="prose text-sm text-tertiary dark:prose-invert"><!></div>');function p_e(r,e){Ae(e,!0);var t=d_e(),n=K(t);DB(n,()=>zt.parse(e.markdown??"")),I(r,t),Ce()}let Dy;const g_e=new Uint8Array(16);function m_e(){if(!Dy&&(Dy=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Dy))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Dy(g_e)}const Br=[];for(let r=0;r<256;++r)Br.push((r+256).toString(16).slice(1));function y_e(r,e=0){return Br[r[e+0]]+Br[r[e+1]]+Br[r[e+2]]+Br[r[e+3]]+"-"+Br[r[e+4]]+Br[r[e+5]]+"-"+Br[r[e+6]]+Br[r[e+7]]+"-"+Br[r[e+8]]+Br[r[e+9]]+"-"+Br[r[e+10]]+Br[r[e+11]]+Br[r[e+12]]+Br[r[e+13]]+Br[r[e+14]]+Br[r[e+15]]}const R9={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function __e(r,e,t){if(R9.randomUUID&&!r)return R9.randomUUID();r=r||{};const n=r.random||(r.rng||m_e)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,y_e(n)}var w_e=se('<div class="close-button svelte-17jptgw"><!></div>'),b_e=se('<form method="dialog" class="modal-backdrop"><button>close</button></form>'),x_e=se('<!> <dialog class="modal w-full max-w-full"><div><!> <!></div> <!></dialog>',1);function S_e(r,e){Ae(e,!0);let t=R(e,"defaultOpen",3,!1),n=R(e,"id",19,()=>"modal-"+__e()),i=R(e,"withClose",3,!0),a=R(e,"closeOnClickOutside",3,!0);const o=Ee(t()),s=()=>{const _=document.getElementById(n());_==null||_.showModal()},l=()=>{var w;const _=document.getElementById(n());_==null||_.close(),(w=e.onclose)==null||w.call(e)};var u=x_e(),c=G(u);{var f=_=>{var w=Z(),b=G(w);he(b,()=>e.Trigger,()=>({openModal:s,closeModal:l})),I(_,w)};W(c,_=>{e.Trigger&&_(f)})}var h=_e(c,2),v=K(h),d=K(v);{var g=_=>{var w=w_e(),b=K(w);ju(b,{onclick:l,size:"md",variant:"secondary",children:(x,S)=>{Fu(x,{})},$$slots:{default:!0}}),I(_,w)};W(d,_=>{i()&&_(g)})}var p=_e(d,2);he(p,()=>e.Content);var m=_e(v,2);{var y=_=>{var w=b_e(),b=K(w);b.__click=l,I(_,w)};W(m,_=>{a()&&_(y)})}ce(()=>{Fe(h,"id",n()),dt(h,"modal-open",o),ft(v,`modal-box ${e.class??""} svelte-17jptgw`)}),I(r,u),Ce()}mi(["click"]);var T_e=se('<div class="flex w-[200px] justify-between rounded-lg bg-surface p-3 shadow-menu"><div class="flex flex-col gap-2"><h6 class="flex h-6 items-center"> </h6> <!></div> <!></div>');function A_e(r,e){let t=R(e,"id",3,void 0);var n=Z(),i=G(n);{var a=o=>{var s=T_e(),l=K(s),u=K(l),c=K(u),f=_e(u,2);he(f,()=>e.children??Pe);var h=_e(l,2);ju(h,{size:"xs",variant:"transparent",rounded:!1,get onclick(){return e.onClose},children:(v,d)=>{Fu(v,{class:"text-icon-tertiary",weight:"bold"})},$$slots:{default:!0}}),ce(()=>{Fe(s,"id",t()),Ut(c,e.title)}),mp(1,s,()=>DU,()=>({y:100,duration:1e3})),mp(2,s,()=>CU),I(o,s)};W(i,o=>{e.visible&&o(a)})}I(r,n)}var C_e=se("<button> <!></button>");function D_e(r,e){let t=R(e,"class",3,""),n=R(e,"type",3,"button"),i=R(e,"testID",3,"");var a=C_e();a.__click=function(...l){var u;(u=e.onclick)==null||u.apply(this,l)};var o=K(a),s=_e(o);Fu(s,{class:"opacity-50",weight:"bold"}),ce(()=>{ft(a,`${t()??""} svelte-p8fw63`),Fe(a,"type",n()),Fe(a,"data-testid",i()),Ut(o,`${e.text??""} `)}),I(r,a)}mi(["click"]);var M_e=se('<div class="progress-wrapper svelte-1jo74b1"><svg xmlns="http://www.w3.org/2000/svg" fill="none" class="svelte-1jo74b1"><path stroke="currentColor" stroke-opacity="0.25" stroke-width="2" fill="none" class="svelte-1jo74b1"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" fill="none" pathLength="1" class="svelte-1jo74b1"></path></svg></div>');function I_e(r,e){Ae(e,!0),Ht(()=>{t(t()>90?Math.floor(Math.min(100,t())/10)*10:Math.min(100,Math.max(0,t())))});let t=R(e,"progress",15),n=R(e,"size",3,"md");const i=n()==="md"?"0 0 20 20":"0 0 16 16",a=n()==="md"?10:8,o=n()==="md"?7:6,s=`M ${a} ${a-o}
|
|
139
|
-
A ${o} ${o} 0 1 1 ${a-.01} ${a-o}`;var l=M_e(),u=K(l);Fe(u,"viewBox",i);var c=K(u);Fe(c,"d",s);var f=_e(c);Fe(f,"d",s),ce(()=>{dt(l,"sm",n()==="sm"),dt(l,"md",n()==="md"),Fe(f,"style",`stroke-dasharray: var(--pathLength);
|
|
140
|
-
stroke-dashoffset: calc(var(--pathLength) * (1 - ${t()/100}));`)}),I(r,l),Ce()}var E_e=se('<div class="join-item flex h-full flex-1"><button type="button"><!></button></div>');function L_e(r,e){let t=R(e,"class",3,""),n=R(e,"color",3,"primary"),i=R(e,"disabled",3,!1),a=R(e,"active",3,!1);const o={primary:"bg-transparent text-primary hover:bg-neutral disabled:text-tertiary",secondary:"bg-transparent text-primary hover:bg-neutral disabled:text-tertiary"};var s=E_e(),l=K(s);l.__click=function(...c){var f;(f=e.onclick)==null||f.apply(this,c)};var u=K(l);he(u,()=>e.children??Pe),ce(()=>{ft(l,`${`control-button flex flex-1 items-center justify-center gap-2 rounded-md text-sm leading-4 ${o[n()]} ${t()} ${n()}`??""} svelte-1p7le7t`),l.disabled=i(),Fe(l,"data-testid",e.dataTestId),dt(l,"active",a())}),I(r,s)}mi(["click"]);var k_e=se("<div><!></div>");function P_e(r,e){let t=R(e,"class",3,""),n=R(e,"size",3,"md");const i={md:"h-10 ",lg:"h-16 [&>*>.control-button]:flex-col"};var a=k_e(),o=K(a);he(o,()=>e.children??Pe,()=>({ControlButton:L_e})),ce(()=>ft(a,`join flex gap-1 rounded-lg bg-neutral p-1 ${i[n()]} ${n()} ${t()}`)),I(r,a)}function N_e(r){let e,t;const n={autoUpdate:!0};let i=r;const a=c=>({...n,...r||{},...c||{}}),o=c=>{e&&t&&(i=a(c),_4(e,t,i).then(f=>{Object.assign(t.style,{position:f.strategy,left:`${f.x}px`,top:`${f.y}px`}),i!=null&&i.onComputed&&i.onComputed(f)}))},s=c=>{if("subscribe"in c)return u(c),{};e=c,o()},l=(c,f)=>{let h;t=c,i=a(f),setTimeout(()=>o(f),0),o(f);const v=()=>{h&&(h(),h=void 0)},d=({autoUpdate:g}=i||{})=>{v(),g!==!1&&Y1().then(()=>p4(e,t,()=>o(i),g===!0?{}:g))};return h=d(),{update(g){o(g),h=d(g)},destroy(){v()}}},u=c=>{const f=c.subscribe(h=>{e===void 0?(e=h,o()):(Object.assign(e,h),o())});pD(f)};return[s,l,o]}function O_e({loadOptions:r,filterText:e,items:t,multiple:n,value:i,itemId:a,groupBy:o,filterSelectedItems:s,itemFilter:l,convertStringItemsToObjects:u,filterGroupedItems:c,label:f}){if(t&&r)return t;if(!t)return[];t&&t.length>0&&typeof t[0]!="object"&&(t=u(t));let h=t.filter(v=>{let d=l(v[f],e,v);return d&&n&&(i!=null&&i.length)&&(d=!i.some(g=>s?g[a]===v[a]:!1)),d});return o&&(h=c(h)),h}async function R_e({dispatch:r,loadOptions:e,convertStringItemsToObjects:t,filterText:n}){let i=await e(n).catch(a=>{console.warn("svelte-select loadOptions error :>> ",a),r("error",{type:"loadOptions",details:a})});if(i&&!i.cancelled)return i?(i&&i.length>0&&typeof i[0]!="object"&&(i=t(i)),r("loaded",{items:i})):i=[],{filteredItems:i,loading:!1,focused:!0,listOpen:!0}}var V_e=J(`<svg width="100%" height="100%" viewBox="0 0 20 20" focusable="false" aria-hidden="true" class="svelte-qbd276"><path fill="currentColor" d="M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747
|
|
141
|
-
3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0
|
|
142
|
-
1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502
|
|
143
|
-
0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0
|
|
144
|
-
0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"></path></svg>`);function z_e(r){var e=V_e();I(r,e)}var B_e=J(`<svg width="100%" height="100%" viewBox="-2 -2 50 50" focusable="false" aria-hidden="true" role="presentation" class="svelte-whdbu1"><path fill="currentColor" d="M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124
|
|
145
|
-
l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"></path></svg>`);function QA(r){var e=B_e();I(r,e)}var F_e=J('<svg class="loading svelte-1p3nqvd" viewBox="25 25 50 50"><circle class="circle_path svelte-1p3nqvd" cx="50" cy="50" r="20" fill="none" stroke="currentColor" stroke-width="5" stroke-miterlimit="10"></circle></svg>');function H_e(r){var e=F_e();I(r,e)}var G_e=se('<div class="list-item svelte-u3g5ju" tabindex="-1" role="none"><div class="item svelte-u3g5ju"><!></div></div>'),W_e=se('<div class="empty svelte-u3g5ju">No options</div>'),Z_e=se('<div class="svelte-select-list svelte-u3g5ju" role="none"><!> <!> <!></div>'),U_e=se('<span id="aria-selection" class="svelte-u3g5ju"> </span> <span id="aria-context" class="svelte-u3g5ju"> </span>',1),Y_e=se('<div class="multi-item-clear svelte-u3g5ju"><!></div>'),X_e=se('<div class="multi-item svelte-u3g5ju" role="none"><span class="multi-item-text svelte-u3g5ju"><!></span> <!></div>'),q_e=se('<div class="selected-item svelte-u3g5ju"><!></div>'),j_e=se('<div class="icon loading svelte-u3g5ju" aria-hidden="true"><!></div>'),K_e=se('<button type="button" class="icon clear-select svelte-u3g5ju"><!></button>'),J_e=se('<div class="icon chevron svelte-u3g5ju" aria-hidden="true"><!></div>'),Q_e=se('<input type="hidden" class="svelte-u3g5ju">'),$_e=se('<select class="required svelte-u3g5ju" required tabindex="-1" aria-hidden="true"></select>'),e2e=se('<div role="none"><!> <span aria-live="polite" aria-atomic="false" aria-relevant="additions text" class="a11y-text svelte-u3g5ju"><!></span> <div class="prepend svelte-u3g5ju"><!></div> <div class="value-container svelte-u3g5ju"><!> <input></div> <div class="indicators svelte-u3g5ju"><!> <!> <!></div> <!> <!></div>');function t2e(r,e){const t=iD(e);Ae(e,!1);const n=Pt(),i=Pt(),a=Pt(),o=Pt(),s=Pt(),l=Pt(),u=Pt(),c=Pt(),f=Pt(),h=yp();let v=R(e,"justValue",12,null),d=R(e,"filter",8,O_e),g=R(e,"getItems",8,R_e),p=R(e,"id",8,null),m=R(e,"name",8,null),y=R(e,"container",12,void 0),_=R(e,"input",12,void 0),w=R(e,"multiple",8,!1),b=R(e,"multiFullItemClearable",8,!1),x=R(e,"disabled",8,!1),S=R(e,"focused",12,!1),T=R(e,"value",12,null),C=R(e,"filterText",12,""),A=R(e,"placeholder",8,"Please select"),M=R(e,"placeholderAlwaysShow",8,!1),k=R(e,"items",12,null),L=R(e,"label",8,"label"),P=R(e,"itemFilter",8,(Q,ve,at)=>`${Q}`.toLowerCase().includes(ve.toLowerCase())),E=R(e,"groupBy",8,void 0),O=R(e,"groupFilter",8,Q=>Q),V=R(e,"groupHeaderSelectable",8,!1),z=R(e,"itemId",8,"value"),H=R(e,"loadOptions",8,void 0),B=R(e,"containerStyles",8,""),F=R(e,"hasError",8,!1),ee=R(e,"filterSelectedItems",8,!0),ae=R(e,"required",8,!1),le=R(e,"closeListOnChange",8,!0),U=R(e,"clearFilterTextOnBlur",8,!0),j=R(e,"createGroupHeaderItem",8,(Q,ve)=>({value:Q,[L()]:Q}));const Xe=()=>D(u);let Te=R(e,"searchable",8,!0),xe=R(e,"inputStyles",8,""),Be=R(e,"clearable",8,!0),be=R(e,"loading",12,!1),fe=R(e,"listOpen",12,!1),et,vt=R(e,"debounce",8,(Q,ve=1)=>{clearTimeout(et),et=setTimeout(Q,ve)}),xt=R(e,"debounceWait",8,300),kt=R(e,"hideEmptyState",8,!1),jt=R(e,"inputAttributes",24,()=>({})),Cr=R(e,"listAutoWidth",8,!0),dr=R(e,"showChevron",8,!1),Gi=R(e,"listOffset",8,5),mt=R(e,"hoverItemIndex",12,0),As=R(e,"floatingConfig",24,()=>({})),Yd=R(e,"class",8,""),Kt=Pt(),Cs=Pt(),eC=Pt(),tC=Pt();function Z2e(){if(typeof T()=="string"){let Q=(k()||[]).find(ve=>ve[z()]===T());T(Q||{[z()]:T(),label:T()})}else w()&&Array.isArray(T())&&T().length>0&&T(T().map(Q=>typeof Q=="string"?{value:Q,label:Q}:Q))}let Mf=Pt();function U2e(){ie(Mf,Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},jt())),p()&&Ls(Mf,D(Mf).id=p()),Te()||Ls(Mf,D(Mf).readonly=!0)}function V9(Q){return Q.map((ve,at)=>({index:at,value:ve,label:`${ve}`}))}function z9(Q){const ve=[],at={};Q.forEach(gn=>{const yr=E()(gn);ve.includes(yr)||(ve.push(yr),at[yr]=[],yr&&at[yr].push(Object.assign(j()(yr,gn),{id:yr,groupHeader:!0,selectable:V()}))),at[yr].push(Object.assign({groupItem:!!yr},gn))});const $t=[];return O()(ve).forEach(gn=>{at[gn]&&$t.push(...at[gn])}),$t}function Y2e(){if(w()){JSON.stringify(T())!==JSON.stringify(D(Cs))&&F9()&&h("input",T());return}(!D(Cs)||JSON.stringify(T()[z()])!==JSON.stringify(D(Cs)[z()]))&&h("input",T())}function X2e(){T()&&(Array.isArray(T())?T([...T()]):T([T()]))}function q2e(){T()&&T(null)}function j2e(){const Q=D(u).findIndex(ve=>ve[z()]===T()[z()]);B9(Q,!0)}function K2e(Q){h("hoverItem",Q)}function B9(Q=0,ve){mt(Q<0?0:Q),!ve&&E()&&D(u)[mt()]&&!D(u)[mt()].selectable&&k1(1)}function J2e(){!H()&&C().length===0||(H()?vt()(async function(){be(!0);let Q=await g()({dispatch:h,loadOptions:H(),convertStringItemsToObjects:V9,filterText:C()});Q?(be(Q.loading),fe(fe()?Q.listOpen:C().length>0),S(fe()&&Q.focused),k(E()?z9(Q.filteredItems):Q.filteredItems)):(be(!1),S(!0),fe(!0))},xt()):(fe(!0),w()&&ie(Kt,void 0)))}function Q2e(Q){fe()&&h("filter",Q)}OB(async()=>{ie(Cs,T()),ie(eC,C()),ie(tC,w())});function $2e(){return w()?T()?T().map(Q=>Q[z()]):null:T()?T()[z()]:T()}function F9(){let Q=!0;if(T()){const ve=[],at=[];T().forEach($t=>{ve.includes($t[z()])?Q=!1:(ve.push($t[z()]),at.push($t))}),Q||T(at)}return Q}function H9(Q){let ve=Q?Q[z()]:T()[z()];return k().find(at=>at[z()]===ve)}function ewe(Q){!Q||Q.length===0||Q.some(ve=>typeof ve!="object")||!T()||(w()?T().some(ve=>!ve||!ve[z()]):!T()[z()])||(Array.isArray(T())?T(T().map(ve=>H9(ve)||ve)):T(H9()||T()))}async function rC(Q){const ve=T()[Q];T().length===1?T(void 0):T(T().filter(at=>at!==ve)),h("clear",ve)}function G9(Q){if(S())switch(Q.stopPropagation(),Q.key){case"Escape":Q.preventDefault(),yo();break;case"Enter":if(Q.preventDefault(),fe()){if(D(u).length===0)break;const ve=D(u)[mt()];if(T()&&!w()&&T()[z()]===ve[z()]){yo();break}else oC(D(u)[mt()])}break;case"ArrowDown":Q.preventDefault(),fe()?k1(1):(fe(!0),ie(Kt,void 0));break;case"ArrowUp":Q.preventDefault(),fe()?k1(-1):(fe(!0),ie(Kt,void 0));break;case"Tab":if(fe()&&S()){if(D(u).length===0||T()&&T()[z()]===D(u)[mt()][z()])return yo();Q.preventDefault(),oC(D(u)[mt()]),yo()}break;case"Backspace":if(!w()||C().length>0)return;if(w()&&T()&&T().length>0){if(rC(D(Kt)!==void 0?D(Kt):T().length-1),D(Kt)===0||D(Kt)===void 0)break;ie(Kt,T().length>D(Kt)?D(Kt)-1:void 0)}break;case"ArrowLeft":if(!T()||!w()||C().length>0)return;D(Kt)===void 0?ie(Kt,T().length-1):T().length>D(Kt)&&D(Kt)!==0&&ie(Kt,D(Kt)-1);break;case"ArrowRight":if(!T()||!w()||C().length>0||D(Kt)===void 0)return;D(Kt)===T().length-1?ie(Kt,void 0):D(Kt)<T().length-1&&ie(Kt,D(Kt)+1);break}}function nC(Q){var ve;S()&&_()===(document==null?void 0:document.activeElement)||(Q&&h("focus",Q),(ve=_())==null||ve.focus(),S(!0))}async function W9(Q){var ve;aC||(fe()||S())&&(h("blur",Q),yo(),S(!1),ie(Kt,void 0),(ve=_())==null||ve.blur())}function twe(){if(!x()){if(C().length>0)return fe(!0);fe(!fe())}}function iC(){h("clear",T()),T(void 0),yo(),nC()}Cu(()=>{fe()&&S(!0),S()&&_()&&_().focus()});function rwe(Q){if(Q){C("");const ve=Object.assign({},Q);if(ve.groupHeader&&!ve.selectable)return;T(w()?T()?T().concat([ve]):[ve]:T(ve)),setTimeout(()=>{le()&&yo(),ie(Kt,void 0),h("change",T()),h("select",Q)})}}function yo(){U()&&C(""),fe(!1)}let nwe=R(e,"ariaValues",8,Q=>`Option ${Q}, selected.`),iwe=R(e,"ariaListOpen",8,(Q,ve)=>`You are currently focused on option ${Q}. There are ${ve} results available.`),awe=R(e,"ariaFocused",8,()=>"Select is focused, type to refine list, press down to open the menu.");function owe(Q){let ve;return Q&&T().length>0?ve=T().map(at=>at[L()]).join(", "):ve=T()[L()],nwe()(ve)}function swe(){if(!D(u)||D(u).length===0)return"";let Q=D(u)[mt()];if(fe()&&Q){let ve=D(u)?D(u).length:0;return iwe()(Q[L()],ve)}else return awe()()}let vi=Pt(null),Z9;function U9(){clearTimeout(Z9),Z9=setTimeout(()=>{aC=!1},100)}function lwe(Q){var ve;!fe()&&!S()&&y()&&!y().contains(Q.target)&&!((ve=D(vi))!=null&&ve.contains(Q.target))&&W9()}pD(()=>{var Q;(Q=D(vi))==null||Q.remove()});let aC=!1;function oC(Q){!Q||Q.selectable===!1||rwe(Q)}function Y9(Q){aC||mt(Q)}function uwe(Q){const{item:ve,i:at}=Q;if((ve==null?void 0:ve.selectable)!==!1){if(T()&&!w()&&T()[z()]===ve[z()])return yo();fwe(ve)&&(mt(at),oC(ve))}}function k1(Q){if(D(u).filter($t=>!Object.hasOwn($t,"selectable")||$t.selectable===!0).length===0)return mt(0);Q>0&&mt()===D(u).length-1?mt(0):Q<0&&mt()===0?mt(D(u).length-1):mt(mt()+Q);const at=D(u)[mt()];if(at&&at.selectable===!1){(Q===1||Q===-1)&&k1(Q);return}}function X9(Q,ve,at){if(!w())return ve&&ve[at]===Q[at]}function cwe(Q){return Q===0}function fwe(Q){return Q.groupHeader&&Q.selectable||Q.selectable||!Q.hasOwnProperty("selectable")}const sC=q9,lC=q9;function q9(Q){return{update(ve){ve.scroll&&(U9(),Q.scrollIntoView({behavior:"auto",block:"nearest"}))}}}function hwe(){const{width:Q}=y().getBoundingClientRect();Ls(vi,D(vi).style.width=Cr()?Q+"px":"auto")}let Xd=Pt({strategy:"absolute",placement:"bottom-start",middleware:[g4(Gi()),y4(),m4()],autoUpdate:!1});const[uC,cC,vwe]=N_e(D(Xd));let fC=Pt(!0);function dwe(Q,ve){if(!Q||!ve)return ie(fC,!0);setTimeout(()=>{ie(fC,!1)},0)}Ke(()=>(ge(k()),ge(T())),()=>{k(),T()&&Z2e()}),Ke(()=>(ge(jt()),ge(Te())),()=>{(jt()||!Te())&&U2e()}),Ke(()=>ge(w()),()=>{w()&&X2e()}),Ke(()=>(D(tC),ge(w())),()=>{D(tC)&&!w()&&q2e()}),Ke(()=>(ge(w()),ge(T())),()=>{w()&&T()&&T().length>1&&F9()}),Ke(()=>ge(T()),()=>{T()&&Y2e()}),Ke(()=>(ge(T()),ge(w()),D(Cs)),()=>{!T()&&w()&&D(Cs)&&h("input",T())}),Ke(()=>(ge(S()),ge(_())),()=>{!S()&&_()&&yo()}),Ke(()=>(ge(C()),D(eC)),()=>{C()!==D(eC)&&J2e()}),Ke(()=>(ge(d()),ge(H()),ge(C()),ge(k()),ge(w()),ge(T()),ge(z()),ge(E()),ge(L()),ge(ee()),ge(P())),()=>{ie(u,d()({loadOptions:H(),filterText:C(),items:k(),multiple:w(),value:T(),itemId:z(),groupBy:E(),label:L(),filterSelectedItems:ee(),itemFilter:P(),convertStringItemsToObjects:V9,filterGroupedItems:z9}))}),Ke(()=>(ge(w()),ge(fe()),ge(T()),D(u)),()=>{!w()&&fe()&&T()&&D(u)&&j2e()}),Ke(()=>(ge(fe()),ge(w())),()=>{fe()&&w()&&mt(0)}),Ke(()=>ge(C()),()=>{C()&&mt(0)}),Ke(()=>ge(mt()),()=>{K2e(mt())}),Ke(()=>(ge(w()),ge(T())),()=>{ie(n,w()?T()&&T().length>0:T())}),Ke(()=>(D(n),ge(C())),()=>{ie(i,D(n)&&C().length>0)}),Ke(()=>(D(n),ge(Be()),ge(x()),ge(be())),()=>{ie(a,D(n)&&Be()&&!x()&&!be())}),Ke(()=>(ge(M()),ge(w()),ge(A()),ge(T())),()=>{var Q;ie(o,M()&&w()||w()&&((Q=T())==null?void 0:Q.length)===0?A():T()?"":A())}),Ke(()=>(ge(T()),ge(w())),()=>{ie(s,T()?owe(w()):"")}),Ke(()=>(D(u),ge(mt()),ge(S()),ge(fe())),()=>{ie(l,swe({filteredItems:D(u),hoverItemIndex:mt(),focused:S(),listOpen:fe()}))}),Ke(()=>ge(k()),()=>{ewe(k())}),Ke(()=>(ge(w()),ge(T()),ge(z())),()=>{v($2e(w(),T(),z()))}),Ke(()=>(ge(w()),D(Cs),ge(T())),()=>{!w()&&D(Cs)&&!T()&&h("input",T())}),Ke(()=>(ge(fe()),D(u),ge(w()),ge(T())),()=>{fe()&&D(u)&&!w()&&!T()&&B9()}),Ke(()=>D(u),()=>{Q2e(D(u))}),Ke(()=>(ge(y()),ge(As()),D(Xd)),()=>{y()&&As()&&vwe(Object.assign(D(Xd),As()))}),Ke(()=>D(vi),()=>{ie(c,!!D(vi))}),Ke(()=>(D(vi),ge(fe())),()=>{dwe(D(vi),fe())}),Ke(()=>(ge(fe()),ge(y()),D(vi)),()=>{fe()&&y()&&D(vi)&&hwe()}),Ke(()=>ge(mt()),()=>{ie(f,mt())}),Ke(()=>(ge(_()),ge(fe()),ge(S())),()=>{_()&&fe()&&!S()&&nC()}),Ke(()=>(ge(y()),ge(As())),()=>{var Q;y()&&((Q=As())==null?void 0:Q.autoUpdate)===void 0&&Ls(Xd,D(Xd).autoUpdate=!0)}),Vf(),Hf();var Rn=e2e();At("click",np,lwe),At("keydown",np,G9);var j9=K(Rn);{var pwe=Q=>{var ve=Z_e(),at=K(ve);{var $t=Bt=>{var Kr=Z(),xn=G(Kr);or(xn,e,"list-prepend",{},null),I(Bt,Kr)};W(at,Bt=>{t["list-prepend"]&&Bt($t)})}var gn=_e(at,2);{var yr=Bt=>{var Kr=Z(),xn=G(Kr);or(xn,e,"list",{get filteredItems(){return D(u)}},null),I(Bt,Kr)},Ds=Bt=>{var Kr=Z(),xn=G(Kr);{var P1=Ms=>{var du=Z(),Wi=G(du);Co(Wi,1,()=>D(u),Ao,(Ea,Sn,di)=>{var Is=G_e(),Zi=K(Is),vC=K(Zi);or(vC,e,"item",{get item(){return D(Sn)},index:di},_o=>{var Ef=Gt();ce(()=>{var Kd;return Ut(Ef,(Kd=D(Sn))==null?void 0:Kd[L()])}),I(_o,Ef)}),Os(Zi,(_o,Ef)=>sC==null?void 0:sC(_o),()=>({scroll:X9(D(Sn),T(),z()),listDom:D(c)})),Os(Zi,(_o,Ef)=>lC==null?void 0:lC(_o),()=>({scroll:D(f)===di,listDom:D(c)})),ce((_o,Ef)=>{var Kd;dt(Zi,"list-group-title",D(Sn).groupHeader),dt(Zi,"active",_o),dt(Zi,"first",Ef),dt(Zi,"hover",mt()===di),dt(Zi,"group-item",D(Sn).groupItem),dt(Zi,"not-selectable",((Kd=D(Sn))==null?void 0:Kd.selectable)===!1)},[()=>X9(D(Sn),T(),z()),()=>cwe(di)],kr),At("mouseover",Is,()=>Y9(di)),At("focus",Is,()=>Y9(di)),At("click",Is,Au(()=>uwe({item:D(Sn),i:di}))),At("keydown",Is,Rs(Au(function(_o){$r.call(this,e,_o)}))),I(Ea,Is)}),I(Ms,du)},hC=Ms=>{var du=Z(),Wi=G(du);{var Ea=Sn=>{var di=Z(),Is=G(di);or(Is,e,"empty",{},Zi=>{var vC=W_e();I(Zi,vC)}),I(Sn,di)};W(Wi,Sn=>{kt()||Sn(Ea)},!0)}I(Ms,du)};W(xn,Ms=>{D(u).length>0?Ms(P1):Ms(hC,!1)},!0)}I(Bt,Kr)};W(gn,Bt=>{t.list?Bt(yr):Bt(Ds,!1)})}var qd=_e(gn,2);{var jd=Bt=>{var Kr=Z(),xn=G(Kr);or(xn,e,"list-append",{},null),I(Bt,Kr)};W(qd,Bt=>{t["list-append"]&&Bt(jd)})}Os(ve,Bt=>cC==null?void 0:cC(Bt)),za(ve,Bt=>ie(vi,Bt),()=>D(vi)),Oa(()=>At("scroll",ve,U9)),Oa(()=>At("pointerup",ve,Rs(Au(function(Bt){$r.call(this,e,Bt)})))),Oa(()=>At("mousedown",ve,Rs(Au(function(Bt){$r.call(this,e,Bt)})))),ce(()=>dt(ve,"prefloat",D(fC))),I(Q,ve)};W(j9,Q=>{fe()&&Q(pwe)})}var K9=_e(j9,2),gwe=K(K9);{var mwe=Q=>{var ve=U_e(),at=G(ve),$t=K(at),gn=_e(at,2),yr=K(gn);ce(()=>{Ut($t,D(s)),Ut(yr,D(l))}),I(Q,ve)};W(gwe,Q=>{S()&&Q(mwe)})}var J9=_e(K9,2),ywe=K(J9);or(ywe,e,"prepend",{},null);var Q9=_e(J9,2),$9=K(Q9);{var _we=Q=>{var ve=Z(),at=G(ve);{var $t=yr=>{var Ds=Z(),qd=G(Ds);Co(qd,1,T,Ao,(jd,Bt,Kr)=>{var xn=X_e(),P1=K(xn),hC=K(P1);or(hC,e,"selection",{get selection(){return D(Bt)},index:Kr},Wi=>{var Ea=Gt();ce(()=>Ut(Ea,D(Bt)[L()])),I(Wi,Ea)});var Ms=_e(P1,2);{var du=Wi=>{var Ea=Y_e(),Sn=K(Ea);or(Sn,e,"multi-clear-icon",{},di=>{QA(di)}),At("pointerup",Ea,Rs(Au(()=>rC(Kr)))),I(Wi,Ea)};W(Ms,Wi=>{!x()&&!b()&&QA&&Wi(du)})}ce(()=>{dt(xn,"active",D(Kt)===Kr),dt(xn,"disabled",x())}),At("click",xn,Rs(()=>b()?rC(Kr):{})),At("keydown",xn,Rs(Au(function(Wi){$r.call(this,e,Wi)}))),I(jd,xn)}),I(yr,Ds)},gn=yr=>{var Ds=q_e(),qd=K(Ds);or(qd,e,"selection",{get selection(){return T()}},jd=>{var Bt=Gt();ce(()=>Ut(Bt,T()[L()])),I(jd,Bt)}),ce(()=>dt(Ds,"hide-selected-item",D(i))),I(yr,Ds)};W(at,yr=>{w()?yr($t):yr(gn,!1)})}I(Q,ve)};W($9,Q=>{D(n)&&Q(_we)})}var If=_e($9,2);let ez;za(If,Q=>_(Q),()=>_());var tz=_e(Q9,2),rz=K(tz);{var wwe=Q=>{var ve=j_e(),at=K(ve);or(at,e,"loading-icon",{},$t=>{H_e($t)}),I(Q,ve)};W(rz,Q=>{be()&&Q(wwe)})}var nz=_e(rz,2);{var bwe=Q=>{var ve=K_e(),at=K(ve);or(at,e,"clear-icon",{},$t=>{QA($t)}),At("click",ve,iC),I(Q,ve)};W(nz,Q=>{D(a)&&Q(bwe)})}var xwe=_e(nz,2);{var Swe=Q=>{var ve=J_e(),at=K(ve);or(at,e,"chevron-icon",{get listOpen(){return fe()}},$t=>{z_e($t)}),I(Q,ve)};W(xwe,Q=>{dr()&&Q(Swe)})}var iz=_e(tz,2);or(iz,e,"input-hidden",{get value(){return T()}},Q=>{var ve=Q_e();ce(at=>{Fe(ve,"name",m()),i_(ve,at)},[()=>T()?JSON.stringify(T()):null],kr),I(Q,ve)});var Twe=_e(iz,2);{var Awe=Q=>{var ve=Z(),at=G(ve);or(at,e,"required",{get value(){return T()}},$t=>{var gn=$_e();I($t,gn)}),I(Q,ve)};W(Twe,Q=>{ae()&&(!T()||T().length===0)&&Q(Awe)})}return Oa(()=>At("pointerup",Rn,Rs(twe))),za(Rn,Q=>y(Q),()=>y()),Os(Rn,Q=>uC==null?void 0:uC(Q)),ce(()=>{ft(Rn,`svelte-select ${Yd()??""} svelte-u3g5ju`),Fe(Rn,"style",B()),dt(Rn,"multi",w()),dt(Rn,"disabled",x()),dt(Rn,"focused",S()),dt(Rn,"list-open",fe()),dt(Rn,"show-chevron",dr()),dt(Rn,"error",F()),ez=it(If,ez,{readOnly:!Te(),...D(Mf),placeholder:D(o),style:xe(),disabled:x()},"svelte-u3g5ju")}),At("keydown",If,G9),At("blur",If,W9),At("focus",If,nC),o_(If,C),I(r,Rn),hD(e,"getFilteredItems",Xe),hD(e,"handleClear",iC),Ce({getFilteredItems:Xe,handleClear:iC})}var r2e=se('<div slot="chevron-icon"><!></div>'),n2e=se('<div slot="selection"><!></div>'),i2e=se('<div slot="clear-icon"><!></div>'),a2e=se('<div class="flex h-full flex-1 items-center text-ellipsis whitespace-nowrap"><p> </p></div>'),o2e=se('<div slot="item" class="flex"><div class="relative flex flex-1 justify-between"><!></div> <!></div>'),s2e=se('<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>',1);function l2e(r,e){const t=iD(e);Ae(e,!1);let n=R(e,"class",8,"");const i=yp();let a=R(e,"items",24,()=>[]),o=R(e,"id",8,void 0),s=R(e,"value",12,null),l=R(e,"searchable",8,!1),u=R(e,"listOpen",12,!1),c=R(e,"placeholder",8,void 0),f=R(e,"disabled",8,!1),h=R(e,"hasError",8,!1),v=R(e,"withGroup",8,!1),d=R(e,"multiple",8,!1),g=R(e,"clearable",8,!0),p=R(e,"required",8,!1),m=R(e,"onChange",8,()=>{});const y=v()?x=>x.group:void 0;Hf();var _=s2e(),w=G(_);const b=kr(()=>`select ${n()} h-10`);xB(w,()=>({"--group-title-border-style":"1px solid black","--group-item-padding-left":"1rem","--item-height":"100%","--group-title-color":Ci.secondary,"--group-title-font-size":"0.75rem","--group-title-font-weight":"400","--group-title-text-transform":"none","--placeholder-color":Ci.secondary,"--item-is-active-bg":m2.accent,"--item-is-active-color":Ci.primary,"--item-hover-bg":m2.neutral,"--border":`1px solid ${cg.input??""}`,"--border-hover":`1px solid ${cg.hover??""}`,"--border-focused":`1px solid ${cg.focus??""}`,"--border-radius":"8px","--font-size":"text-sm"})),t2e(w.lastChild,{get items(){return a()},get searchable(){return l()},get placeholder(){return c()},get disabled(){return f()},get id(){return o()},get hasError(){return h()},get multiple(){return d()},get clearable(){return g()},groupBy:y,get class(){return D(b)},get required(){return p()},showChevron:!0,floatingConfig:{placement:"bottom"},createGroupHeaderItem:x=>({value:x,label:x}),get value(){return s()},set value(x){s(x)},get listOpen(){return u()},set listOpen(x){u(x)},$$events:{select:x=>i("change",x.detail),input:x=>i("input",x.detail),change:x=>{i("change",x.detail),m()(x.detail)}},$$slots:{"chevron-icon":(x,S)=>{var T=r2e(),C=K(T);L_(C,{weight:"bold",size:"1rem",class:"text-icon-secondary"}),I(x,T)},selection:(x,S)=>{var T=n2e();const C=kr(()=>S.selection);var A=K(T);{var M=L=>{var P=Z(),E=G(P);or(E,e,"custom-selection",{get selection(){return D(C)}},null),I(L,P)},k=L=>{var P=Gt();ce(()=>Ut(P,D(C).label)),I(L,P)};W(A,L=>{t["custom-selection"]?L(M):L(k,!1)})}I(x,T)},"clear-icon":(x,S)=>{var T=i2e(),C=K(T);Fu(C,{weight:"bold",size:"1rem"}),I(x,T)},item:(x,S)=>{var T=o2e();const C=kr(()=>S.item),A=kr(()=>S.index);var M=K(T),k=K(M);{var L=O=>{var V=Z(),z=G(V);or(z,e,"custom-item",{get item(){return D(C)},get index(){return D(A)}},null),I(O,V)},P=O=>{var V=a2e(),z=K(V),H=K(z);ce(()=>Ut(H,D(C).label)),I(O,V)};W(k,O=>{t["custom-item"]?O(L):O(P,!1)})}var E=_e(M,2);or(E,e,"default",{},null),I(x,T)}},$$legacy:!0}),I(r,_),Ce()}var u2e=se("<div></div>"),c2e=se('<div class="absolute h-1.5 w-1.5 translate-y-[2px] rounded-full bg-surface ring ring-1 ring-gray-950/10"></div>'),f2e=se('<div class="h-2.5"></div>'),h2e=se('<div><div class="track-overlay svelte-77njrt"></div> <div></div> <!> <!> <input type="range" class="svelte-77njrt"> <div class="thumb-overlay svelte-77njrt"><!></div></div>');function v2e(r,e){Ae(e,!1);const t=Pt();let n=R(e,"class",8,""),i=R(e,"value",12,0),a=R(e,"max",8),o=R(e,"buffer",12,0),s=R(e,"bufferMin",8,0),l=R(e,"bufferColorClass",8,"bg-neutral"),u=R(e,"filledColorClass",8,"bg-accent-inverse"),c=R(e,"showFilled",8,!1),f=R(e,"showSteps",8,!1),h=R(e,"onMousedown",8,()=>{}),v=R(e,"onMouseup",8,()=>{}),d=R(e,"id",8,void 0);function g(C){return`calc((${C/D(t)} * (100% - 1rem))`}Ke(()=>(ge(i()),ge(a())),()=>{i()>a()?i(a()):i()<0&&i(0)}),Ke(()=>ge(a()),()=>{ie(t,Math.max(a(),1))}),Ke(()=>(ge(o()),D(t)),()=>{o(Math.min(o(),D(t)))}),Vf();var p=h2e(),m=_e(K(p),2),y=_e(m,2);{var _=C=>{var A=u2e();ce(M=>{ft(A,`absolute h-2.5 rounded-full ${u()??""} svelte-77njrt`),Fe(A,"style",`width: ${M??""} + 1rem);left: 0;`)},[()=>g(i())],kr),I(C,A)};W(y,C=>{c()&&C(_)})}var w=_e(y,2);{var b=C=>{var A=f2e();Co(A,5,()=>Array(D(t)+1),Ao,(M,k,L)=>{var P=c2e();ce(E=>Fe(P,"style",`left: ${E??""} + 0.25rem`),[()=>g(L)],kr),I(M,P)}),I(C,A)};W(w,C=>{f()&&C(b)})}var x=_e(w,2),S=_e(x,2),T=K(S);CG(T,{class:"rotate-90 text-primary",size:"1rem",weight:"bold"}),ce((C,A,M)=>{ft(p,`${`relative flex h-10 items-center ${n()}`??""} svelte-77njrt`),ft(m,`pointer-events-none absolute h-2.5 rounded-full ${l()??""} svelte-77njrt`),Fe(m,"style",`
|
|
146
|
-
width: ${C??""} + 1rem);
|
|
147
|
-
left: ${A??""}
|
|
148
|
-
`),Fe(x,"id",d()),Fe(x,"data-testid",d()),Fe(x,"max",D(t)),Fe(S,"style",`left: ${M??""} + 0.5rem)`)},[()=>g(o()-s()),()=>g(s()),()=>g(i())],kr),o_(x,i),At("mousedown",x,function(...C){var A;(A=h())==null||A.apply(this,C)}),At("mouseup",x,function(...C){var A;(A=v())==null||A.apply(this,C)}),I(r,p),Ce()}var d2e=se("<span> </span>"),p2e=se('<p class="truncate text-2xl font-medium text-tertiary"> </p>'),g2e=se('<p class="text-2xl font-medium"> </p> <!>',1),m2e=se('<div class="flex w-full flex-shrink-0 flex-grow basis-0 flex-col items-start gap-2 overflow-clip rounded-lg bg-neutral p-4"><p class="flex items-center justify-start gap-2 truncate font-medium text-secondary"> <!></p> <div class="flex items-baseline gap-1"><!></div></div>');function y2e(r,e){Ae(e,!0);let t=R(e,"value",3,null),n=R(e,"unit",3,""),i=R(e,"titleTooltip",3,""),a=R(e,"showTitleTooltip",3,!1);const o=q(()=>typeof t()=="number"?t().toLocaleString():t());var s=m2e(),l=K(s),u=K(l),c=_e(u);{var f=p=>{Yp(p,{trigger:_=>{wW(_,{class:"icon text-icon-tertiary",size:"1rem",weight:"bold"})},content:_=>{var w=d2e(),b=K(w);ce(()=>Ut(b,i())),I(_,w)},$$slots:{trigger:!0,content:!0}})};W(c,p=>{i()&&a()&&p(f)})}var h=_e(l,2),v=K(h);{var d=p=>{var m=g2e(),y=G(m),_=K(y),w=_e(y,2);{var b=x=>{var S=p2e(),T=K(S);ce(()=>Ut(T,n())),I(x,S)};W(w,x=>{n()&&x(b)})}ce(()=>Ut(_,D(o))),I(p,m)},g=p=>{Xp(p,{})};W(v,p=>{t()!==null?p(d):p(g,!1)})}ce(()=>Ut(u,`${e.title??""} `)),I(r,s),Ce()}var _2e=se('<div data-testid="status-badge"><div><!></div> <div class="gap-2"><!> <!></div></div>');function w2e(r,e){let t=R(e,"type",3,"neutral"),n=R(e,"size",3,"md"),i=R(e,"iconOnly",3,!1),a=q(()=>e.content===void 0&&e.progress===void 0||i());var o=_2e(),s=K(o);ft(s,"icon svelte-1aftdv8");var l=K(s);he(l,()=>e.icon??Pe);var u=_e(s,2),c=K(u);he(c,()=>e.content??Pe);var f=_e(c,2);he(f,()=>e.progress??Pe),ce(()=>{ft(o,`${`badge badge-${t()} badge-${n()}`??""} svelte-1aftdv8`),dt(o,"badge-icon-only",D(a))}),I(r,o)}var b2e=se("<td><!></td>");function x2e(r,e){let t=R(e,"dataTestId",3,"");var n=b2e();ft(n,"text-left text-sm font-normal");var i=K(n);he(i,()=>e.children??Pe),ce(()=>Fe(n,"data-testid",t())),I(r,n)}var S2e=se("<th><!></th>");function T2e(r,e){let t=R(e,"class",3,"");var n=S2e(),i=K(n);he(i,()=>e.children??Pe),ce(()=>ft(n,`text-left text-xs font-medium text-tertiary ${t()}`)),I(r,n)}var A2e=se('<tr class="my-2 border-static [&.disabled]:text-tertiary"><!></tr>');function C2e(r,e){let t=R(e,"disabled",3,!1);var n=A2e(),i=K(n);he(i,()=>e.children??Pe),ce(()=>dt(n,"disabled",t())),I(r,n)}var D2e=se("<thead><!></thead>");function M2e(r,e){let t=R(e,"class",3,"");var n=D2e(),i=K(n);he(i,()=>e.children??Pe),ce(()=>ft(n,`${t()}`)),I(r,n)}var I2e=se("<tbody><!></tbody>");function E2e(r,e){let t=R(e,"class",3,"");var n=I2e(),i=K(n);he(i,()=>e.children??Pe),ce(()=>ft(n,`${t()}`)),I(r,n)}var L2e=se('<div class="w-full rounded-lg border border-static bg-surface px-5 py-2 shadow-container"><table><!></table></div>');function k2e(r,e){let t=R(e,"tableLayout",3,"fixed");var n=L2e(),i=K(n),a=K(i);he(a,()=>e.children??Pe,()=>({THead:M2e,TBody:E2e,Tr:C2e,Th:T2e,Td:x2e})),ce(()=>ft(i,`w-full table-fixed sm:table-auto xl:table-${t()}`)),I(r,n)}var P2e=se("<div><!></div>");function N2e(r,e){let t=R(e,"class",3,""),n=R(e,"show",3,!1);var i=P2e(),a=K(i);he(a,()=>e.children??Pe),ce(()=>{ft(i,pp(t())),dt(i,"hidden",!n())}),I(r,i)}function O2e(r,e){let t=R(e,"active",3,!1),n=R(e,"class",3,"");const i=q(()=>`tab flex !h-10 gap-2 !rounded-md !px-0 !py-0 ${t()?"tab-active":""} ${n()}`);x8(r,{get onClick(){return e.onClick},variant:"transparent",size:"md",get class(){return D(i)},children:(a,o)=>{var s=Z(),l=G(s);he(l,()=>e.children??Pe),I(a,s)},$$slots:{default:!0}})}var R2e=se('<div role="tablist"><!></div>');function V2e(r,e){let t=R(e,"class",3,"");var n=R2e(),i=K(n);he(i,()=>e.children??Pe),ce(()=>ft(n,`tabs-boxed tabs h-[48px] gap-1 rounded-lg ${t()}`)),I(r,n)}function z2e(r,e){var t=Z(),n=G(t);he(n,()=>e.children??Pe,()=>({Tabs:V2e,Tab:O2e,Content:N2e})),I(r,t)}var B2e=se("<button><!></button>"),F2e=se("<div><!></div>");function H2e(r,e){const t=g=>{var p=Z(),m=G(p);{var y=w=>{var b=B2e();b.__click=function(...S){var T;(T=e.onclick)==null||T.apply(this,S)};var x=K(b);he(x,()=>e.children),ce(()=>{ft(b,`outer ${D(u)??""} ${D(o)??""} ${D(c)??""} hover:cursor-pointer ${e.class??""} svelte-j3ohdt`),Fe(b,"title",e.tooltip)}),I(w,b)},_=w=>{var b=F2e(),x=K(b);he(x,()=>e.children),ce(()=>{ft(b,`outer ${D(u)??""} ${D(o)??""} no-underline ${e.class??""} svelte-j3ohdt`),Fe(b,"title",e.tooltip)}),I(w,b)};W(m,w=>{e.onclick?w(y):w(_,!1)})}I(g,p)};let n=R(e,"variant",3,"default"),i=R(e,"size",3,"md");const a={sm:"h-6 text-xs p-1.5",md:"h-7 text-sm p-2"};let o=q(()=>a[i()]);const s={default:"bg-neutral text-primary",outline:"bg-transparent text-secondary border",transparent:"bg-transparent text-secondary"},l={default:"hover:bg-neutral-hover",outline:"hover:bg-neutral hover:text-primary",transparent:"hover:bg-neutral hover:text-primary"};let u=q(()=>s[n()]),c=q(()=>l[n()]);var f=Z(),h=G(f);{var v=g=>{Yp(g,{trigger:y=>{t(y)},content:y=>{var _=Gt();ce(()=>Ut(_,e.tooltip)),I(y,_)},$$slots:{trigger:!0,content:!0}})},d=g=>{t(g)};W(h,g=>{e.tooltip?g(v):g(d,!1)})}I(r,f)}mi(["click"]);var G2e=se('<label class="switch svelte-1ho3b7t"><input type="checkbox" class="svelte-1ho3b7t"> <span class="slider round svelte-1ho3b7t"></span></label>');function W2e(r,e){let t=R(e,"value",15,!1);var n=G2e(),i=K(n);i.__click=function(...a){var o;(o=e.onclick)==null||o.apply(this,a)},ce(()=>Fe(i,"id",e.id)),fD(i,t),I(r,n)}mi(["click"]),Ie.Activity=qZ,Ie.Avatar=bY,Ie.Banner=MY,Ie.Button=x8,Ie.Chart=wy,Ie.Collapsible=gJ,Ie.Combobox=xJ,Ie.DatePicker=Xye,Ie.Divider=jye,Ie.Drawer=$ye,Ie.Dropdown=f1e,Ie.Icon=h1e,Ie.IconButton=ju,Ie.Image=T1e,Ie.Input=I1e,Ie.LineChart=Vye,Ie.List=k1e,Ie.Logo=y9,Ie.Markdown=p_e,Ie.Modal=S_e,Ie.MultiLineChart=zye,Ie.NotificationPopup=A_e,Ie.Pill=D_e,Ie.ProgressCircle=I_e,Ie.Scatterplot=Rye,Ie.SegmentedControlButtons=P_e,Ie.Select=l2e,Ie.SkeletonImage=m9,Ie.SkeletonLoader=HA,Ie.Slider=v2e,Ie.Spinner=Xp,Ie.StatCard=y2e,Ie.StatcardSkeleton=y1e,Ie.StatusBadge=w2e,Ie.Table=k2e,Ie.Tabs=z2e,Ie.Tag=H2e,Ie.Toggle=W2e,Ie.Tooltip=Yp,Ie.iconMap=p9,Ie.renderIcon=g9,Ie.tokens=NJ,Object.defineProperty(Ie,Symbol.toStringTag,{value:"Module"})});
|