bromcom-ui 2.10.1-rc.2 → 2.10.1-rc.4
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/bromcom-ui/bromcom-ui.css +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/p-000670b6.js +5 -0
- package/dist/bromcom-ui/{p-7149c15e.entry.js → p-0c54af0a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b77e861c.entry.js → p-10661efa.entry.js} +1 -1
- package/dist/bromcom-ui/{p-893ecfd7.entry.js → p-135056db.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7814999e.entry.js → p-1772657f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-bc26bfcc.entry.js → p-182eccc7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9f67eec6.entry.js → p-1bd9d245.entry.js} +1 -1
- package/dist/bromcom-ui/{p-69eb7be7.entry.js → p-1d14255e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fcfc1a26.entry.js → p-2dd5f6ad.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8c1834d9.entry.js → p-2dda9287.entry.js} +1 -1
- package/dist/bromcom-ui/{p-82caef35.entry.js → p-30618ac6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f4af4e66.entry.js → p-359d9ed7.entry.js} +1 -1
- package/dist/bromcom-ui/p-3b705d79.entry.js +5 -0
- package/dist/bromcom-ui/{p-f3133898.entry.js → p-412a472d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9c31bd27.js → p-4246ca4f.js} +1 -1
- package/dist/bromcom-ui/{p-95e3e645.entry.js → p-4d0046a0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-313f3908.entry.js → p-56212e24.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5b5f9b00.entry.js → p-5b05c344.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c8b1c1c6.entry.js → p-5f74a6c9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d9ecc3d8.entry.js → p-5ff2ae19.entry.js} +1 -1
- package/dist/bromcom-ui/{p-027e818d.entry.js → p-60e4f239.entry.js} +1 -1
- package/dist/bromcom-ui/{p-bda74b16.entry.js → p-63963eca.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b193eb3a.entry.js → p-686e614c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f84d2e42.entry.js → p-7471cbf5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-cae90479.entry.js → p-76556edf.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4e5006b1.entry.js → p-78d95876.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9b9f36d5.entry.js → p-7908ee85.entry.js} +1 -1
- package/dist/bromcom-ui/{p-57c9904b.entry.js → p-7c6238b7.entry.js} +1 -1
- package/dist/bromcom-ui/p-7f7b3465.entry.js +7 -0
- package/dist/bromcom-ui/{p-1064895e.js → p-823a5d13.js} +1 -1
- package/dist/bromcom-ui/{p-3ec44b04.entry.js → p-89513231.entry.js} +1 -1
- package/dist/bromcom-ui/{p-dc6e9205.entry.js → p-8b383614.entry.js} +1 -1
- package/dist/bromcom-ui/{p-06071e98.entry.js → p-8fa7df49.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f7dbd393.entry.js → p-96c18c4e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f909d419.entry.js → p-994bc0b5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b2687899.entry.js → p-99a9bebb.entry.js} +1 -1
- package/dist/bromcom-ui/p-9b7af3c4.js +5 -0
- package/dist/bromcom-ui/p-9c6676f2.entry.js +5 -0
- package/dist/bromcom-ui/{p-43a281a4.js → p-9d7ec4f0.js} +1 -1
- package/dist/bromcom-ui/{p-b27218ea.entry.js → p-9f6fd146.entry.js} +1 -1
- package/dist/bromcom-ui/p-a18f6d11.js +5 -0
- package/dist/bromcom-ui/{p-21d98283.entry.js → p-a2583501.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7f1681e2.entry.js → p-aa2f32bb.entry.js} +1 -1
- package/dist/bromcom-ui/p-abc44b58.entry.js +5 -0
- package/dist/bromcom-ui/{p-8cbae172.entry.js → p-acf307e1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-be778e45.entry.js → p-ad8af495.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4b8f90ef.js → p-b1f4ebad.js} +1 -1
- package/dist/bromcom-ui/{p-752057b7.entry.js → p-b36fe678.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2ee20f32.entry.js → p-b5c650c6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2565ccce.js → p-b82041d3.js} +1 -1
- package/dist/bromcom-ui/{p-d498d79b.entry.js → p-c761e694.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d685ffff.entry.js → p-ca106284.entry.js} +1 -1
- package/dist/bromcom-ui/p-cb66612c.entry.js +5 -0
- package/dist/bromcom-ui/{p-33f3295e.entry.js → p-ced26b93.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d2f9f353.entry.js → p-d0fba40e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d9331f0f.entry.js → p-d4b23073.entry.js} +1 -1
- package/dist/bromcom-ui/{p-55547a6e.entry.js → p-d4fb5ac0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-56ec6518.entry.js → p-d9bbea7b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ceafe408.entry.js → p-dad263b2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-84089734.entry.js → p-ea888f01.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e02e88fb.js → p-f0c03fb4.js} +1 -1
- package/dist/bromcom-ui/{p-cd567621.entry.js → p-f56a74bd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8846b944.entry.js → p-f667ee85.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5da0f9ef.entry.js → p-fda7b812.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fc1942c6.js → p-fe953a0b.js} +1 -1
- package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
- package/dist/cjs/bcm-alert.cjs.entry.js +2 -2
- package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-button-group.cjs.entry.js +2 -2
- package/dist/cjs/{bcm-button_11.cjs.entry.js → bcm-button_12.cjs.entry.js} +172 -12
- package/dist/cjs/bcm-caption.cjs.entry.js +4 -4
- package/dist/cjs/bcm-card.cjs.entry.js +2 -2
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +3 -3
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2 -2
- package/dist/cjs/bcm-chip-group.cjs.entry.js +5 -5
- package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
- package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
- package/dist/cjs/bcm-color-input.cjs.entry.js +4 -4
- package/dist/cjs/bcm-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +3 -3
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-drawer.cjs.entry.js +4 -4
- package/dist/cjs/bcm-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +2 -2
- package/dist/cjs/bcm-form-2.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/bcm-item.cjs.entry.js +2 -2
- package/dist/cjs/bcm-items.cjs.entry.js +2 -2
- package/dist/cjs/bcm-list_3.cjs.entry.js +7 -7
- package/dist/cjs/bcm-menu.cjs.entry.js +5 -5
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal-2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal.cjs.entry.js +2 -2
- package/dist/cjs/bcm-number-input.cjs.entry.js +109 -0
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popover.cjs.entry.js +4 -4
- package/dist/cjs/bcm-progress.cjs.entry.js +2 -2
- package/dist/cjs/bcm-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/bcm-radio.cjs.entry.js +4 -4
- package/dist/cjs/bcm-range.cjs.entry.js +2 -2
- package/dist/cjs/bcm-shortcut.cjs.entry.js +4 -4
- package/dist/cjs/bcm-skeleton.cjs.entry.js +4 -4
- package/dist/cjs/bcm-step.cjs.entry.js +3 -3
- package/dist/cjs/bcm-stepper.cjs.entry.js +5 -5
- package/dist/cjs/bcm-tab-group.cjs.entry.js +4 -4
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +4 -4
- package/dist/cjs/bcm-tab-item.cjs.entry.js +4 -4
- package/dist/cjs/bcm-table.cjs.entry.js +4 -4
- package/dist/cjs/bcm-tag.cjs.entry.js +3 -3
- package/dist/cjs/bcm-textarea.cjs.entry.js +3 -3
- package/dist/cjs/bcm-time-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-toast.cjs.entry.js +2 -2
- package/dist/cjs/bcm-typography.cjs.entry.js +21 -0
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/{generate-f0d6805e.js → generate-eb7fd62b.js} +1 -1
- package/dist/cjs/{global-c61c9656.js → global-1210b4ea.js} +1 -1
- package/dist/cjs/{input-template-38924cda.js → input-template-69fc22ac.js} +1 -1
- package/dist/cjs/{json-parse-decarator-a2024131.js → json-parse-decarator-2d4f7d88.js} +1 -1
- package/dist/cjs/{label-template-8dc10d0a.js → label-template-a6f51ef2.js} +6 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{number-helper-7c3fefa2.js → number-helper-952bd974.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +3 -3
- package/dist/cjs/old-bcm-popover.cjs.entry.js +2 -2
- package/dist/cjs/{package-a737bf36.js → package-c0fd1b3c.js} +1 -1
- package/dist/cjs/{stepper-states-3b876d4d.js → stepper-states-79ced0f7.js} +1 -1
- package/dist/cjs/{tooltip-helper-f98dd7a7.js → tooltip-helper-20502cd7.js} +3 -3
- package/dist/cjs/{validators-f2869ecb.js → validators-18074a6e.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/atoms/label/label.js +1 -1
- package/dist/collection/components/molecules/number-input/number-input.css +137 -0
- package/dist/collection/components/molecules/number-input/number-input.js +425 -0
- package/dist/collection/components/molecules/number-input/number-input.style.js +45 -0
- package/dist/collection/components/molecules/switch/switch.css +1 -0
- package/dist/collection/components/organism/list/list.css +2 -0
- package/dist/collection/templates/label-template.js +6 -6
- package/dist/components/bcm-number-input.d.ts +11 -0
- package/dist/components/bcm-number-input.js +157 -0
- package/dist/components/bcm-switch.js +1 -1
- package/dist/components/generate.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/label.js +7 -4
- package/dist/components/list.js +1 -1
- package/dist/esm/bcm-accordion.entry.js +2 -2
- package/dist/esm/bcm-alert.entry.js +2 -2
- package/dist/esm/bcm-attendance.entry.js +2 -2
- package/dist/esm/bcm-avatar_2.entry.js +4 -4
- package/dist/esm/bcm-breadcrumb.entry.js +2 -2
- package/dist/esm/bcm-button-group.entry.js +2 -2
- package/dist/esm/{bcm-button_11.entry.js → bcm-button_12.entry.js} +172 -13
- package/dist/esm/bcm-caption.entry.js +4 -4
- package/dist/esm/bcm-card.entry.js +2 -2
- package/dist/esm/bcm-checkbox-group.entry.js +3 -3
- package/dist/esm/bcm-checkbox-lite_9.entry.js +2 -2
- package/dist/esm/bcm-chip-group.entry.js +5 -5
- package/dist/esm/bcm-chip.entry.js +2 -2
- package/dist/esm/bcm-collapse.entry.js +2 -2
- package/dist/esm/bcm-color-input.entry.js +4 -4
- package/dist/esm/bcm-date-picker.entry.js +2 -2
- package/dist/esm/bcm-datetime-picker.entry.js +3 -3
- package/dist/esm/bcm-default.entry.js +2 -2
- package/dist/esm/bcm-drawer.entry.js +4 -4
- package/dist/esm/bcm-dropdown.entry.js +3 -3
- package/dist/esm/bcm-expansion-panel.entry.js +2 -2
- package/dist/esm/bcm-form-2.entry.js +2 -2
- package/dist/esm/bcm-input-custom.entry.js +2 -2
- package/dist/esm/bcm-input-dropdown.entry.js +4 -4
- package/dist/esm/bcm-item.entry.js +2 -2
- package/dist/esm/bcm-items.entry.js +2 -2
- package/dist/esm/bcm-list_3.entry.js +7 -7
- package/dist/esm/bcm-menu.entry.js +5 -5
- package/dist/esm/bcm-modal-2-footer.entry.js +4 -4
- package/dist/esm/bcm-modal-2-header.entry.js +4 -4
- package/dist/esm/bcm-modal-2.entry.js +4 -4
- package/dist/esm/bcm-modal.entry.js +2 -2
- package/dist/esm/bcm-number-input.entry.js +105 -0
- package/dist/esm/bcm-popconfirm-box.entry.js +2 -2
- package/dist/esm/bcm-popconfirm.entry.js +2 -2
- package/dist/esm/bcm-popover.entry.js +4 -4
- package/dist/esm/bcm-progress.entry.js +2 -2
- package/dist/esm/bcm-radio-group.entry.js +4 -4
- package/dist/esm/bcm-radio.entry.js +4 -4
- package/dist/esm/bcm-range.entry.js +2 -2
- package/dist/esm/bcm-shortcut.entry.js +4 -4
- package/dist/esm/bcm-skeleton.entry.js +4 -4
- package/dist/esm/bcm-step.entry.js +3 -3
- package/dist/esm/bcm-stepper.entry.js +5 -5
- package/dist/esm/bcm-tab-group.entry.js +4 -4
- package/dist/esm/bcm-tab-item-header.entry.js +4 -4
- package/dist/esm/bcm-tab-item.entry.js +4 -4
- package/dist/esm/bcm-table.entry.js +4 -4
- package/dist/esm/bcm-tag.entry.js +3 -3
- package/dist/esm/bcm-textarea.entry.js +3 -3
- package/dist/esm/bcm-time-picker.entry.js +2 -2
- package/dist/esm/bcm-toast.entry.js +2 -2
- package/dist/esm/bcm-typography.entry.js +17 -0
- package/dist/esm/bromcom-ui.js +3 -3
- package/dist/esm/{generate-fff9c034.js → generate-aae94409.js} +1 -1
- package/dist/esm/{global-446a0022.js → global-8975e389.js} +1 -1
- package/dist/esm/{input-template-ff26f463.js → input-template-6b597dcd.js} +1 -1
- package/dist/esm/{json-parse-decarator-3e533274.js → json-parse-decarator-84d6e52c.js} +1 -1
- package/dist/esm/{label-template-989d1700.js → label-template-ad2e8119.js} +6 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{number-helper-c1ee913b.js → number-helper-8dade9f3.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +3 -3
- package/dist/esm/old-bcm-popover.entry.js +2 -2
- package/dist/esm/{package-7d8bb462.js → package-d5af5a81.js} +1 -1
- package/dist/esm/{stepper-states-500cb902.js → stepper-states-6923dc97.js} +1 -1
- package/dist/esm/{tooltip-helper-c22623e4.js → tooltip-helper-e0f7ed97.js} +3 -3
- package/dist/esm/{validators-93758ad4.js → validators-1e7b9d1d.js} +1 -1
- package/dist/types/components/molecules/number-input/number-input.d.ts +29 -0
- package/dist/types/components/molecules/number-input/number-input.style.d.ts +200 -0
- package/dist/types/components.d.ts +53 -0
- package/dist/types/templates/label-template.d.ts +2 -1
- package/package.json +1 -1
- package/dist/bromcom-ui/p-0208acef.entry.js +0 -7
- package/dist/bromcom-ui/p-0e2cff0d.js +0 -5
- package/dist/bromcom-ui/p-84307b0c.entry.js +0 -5
- package/dist/bromcom-ui/p-8b202d9e.js +0 -5
- package/dist/bromcom-ui/p-c35c11a7.js +0 -5
- package/dist/bromcom-ui/p-d2fe5024.entry.js +0 -5
- package/dist/bromcom-ui/p-f9739222.entry.js +0 -5
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -194
- package/dist/esm/bcm-checkbox_2.entry.js +0 -189
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import{h as t,r as n,c as e,H as r,g as i,a as o}from"./p-170cf07d.js";import{s as a,G as c}from"./p-43a281a4.js";import{B as u,a as s}from"./p-6369b73b.js";import{c as l}from"./p-64fad38b.js";import{c as f}from"./p-74e6d2b6.js";import{S as d}from"./p-f800e665.js";import{C as h}from"./p-61db1f1f.js";import{r as b,a as m,u as p,b as v,_ as g,w as x,c as w,d as y,e as _,f as k,s as z,g as M,R as S,i as D,h as C,j,k as Y,l as O}from"./p-3432a82d.js";import{c as N,a as E,g as T,b as A}from"./p-85eedabc.js";import{I as R}from"./p-9850cbce.js";import"./p-626a65e9.js";import{N as P}from"./p-c35c11a7.js";import{S as I}from"./p-157359d6.js";import{V as L}from"./p-0e2cff0d.js";import"./p-7e44e6b5.js";import{C as H}from"./p-a25c8a55.js";import"./p-3fac58f7.js";import"./p-2e73d572.js";import{d as F,g as $}from"./p-8c018ae0.js";import{I as U}from"./p-4b8f90ef.js";import{L as W}from"./p-8b202d9e.js";import{F as G}from"./p-518b9b80.js";import{T as V}from"./p-9c31bd27.js";import"./p-1064895e.js";import"./p-6edf985f.js";import"./p-436364c8.js";const B={save:{text:"Save",color:"emerald",icon:"far fa-save",iconPosition:"prefix"},ok:{text:"Ok",color:"emerald",icon:"far fa-check",iconPosition:"prefix"},new:{text:"New",color:"emerald",icon:"far fa-plus",iconPosition:"prefix"},add:{text:"Add",color:"emerald",icon:"far fa-plus",iconPosition:"prefix"},create:{text:"Create",color:"emerald",icon:"far fa-plus",iconPosition:"prefix"},prev:{text:"Prev",color:"",icon:"far fa-arrow-left",iconPosition:"prefix"},next:{text:"Next",color:"",icon:"far fa-arrow-right",iconPosition:"suffix"},apply:{text:"Apply",color:"",icon:"far fa-check-circle",iconPosition:"prefix"},submit:{text:"Submit",color:"",icon:"far fa-save",iconPosition:"prefix"},send:{text:"Send",color:"emerald",icon:"far fa-paper-plane",iconPosition:"prefix"},delete:{text:"Delete",color:"red",icon:"far fa-trash",iconPosition:"prefix"},cancel:{text:"Cancel",color:"red",icon:"far fa-times",iconPosition:"prefix"},decline:{text:"Decline",color:"red",icon:"far fa-ban",iconPosition:"prefix"},close:{text:"Close",color:"red",icon:"far fa-times-circle",iconPosition:"prefix"},archive:{text:"Archive",color:"red",icon:"far fa-folder-open",iconPosition:"prefix"},remove:{text:"Remove",color:"red",icon:"far fa-minus-circle",iconPosition:"prefix"},edit:{text:"Edit",color:"",icon:"far fa-edit",iconPosition:"prefix"},export:{text:"Export",color:"",icon:"far fa-sign-out",iconPosition:"prefix"},import:{text:"Import",color:"",icon:"far fa-sign-in",iconPosition:"prefix"},filter:{text:"Filter",color:"",icon:"far fa-filter",iconPosition:"prefix"},update:{text:"Update",color:"",icon:"far fa-sync",iconPosition:"prefix"},reset:{text:"Reset",color:"",icon:"far fa-sync",iconPosition:"prefix"},download:{text:"Download",color:"",icon:"far fa-download",iconPosition:"prefix"}};var q;!function(t){t.save="save",t.submit="submit",t.ok="ok",t.new="new",t.add="add",t.create="create",t.apply="apply",t.prev="prev",t.next="next",t.send="send",t.delete="delete",t.cancel="cancel",t.decline="decline",t.close="close",t.archive="archive",t.remove="remove",t.edit="edit",t.export="export",t.import="import",t.filter="filter",t.update="update",t.reset="Reset",t.download="download"}(q||(q={}));const{state:K}=f({value:new Map,setData:{},removeData:{}}),Z=({value:n,type:e,componentClass:r,disabled:i,href:o,target:a,loading:c,isIconOnly:s,icon:l,iconPosition:f,id:h})=>t(o?u.HtmlElementType.a:u.HtmlElementType.button,Object.assign({id:h},e==u.HtmlElementType.button&&{type:e},{class:r,disabled:i,href:o,target:a,tabindex:"0"}),t("span",{hidden:!0},t("slot",null)),c&&t("span",{class:"bcm-button__container-loading"}," ",t("span",{class:"bcm-button__container-icon"},t("i",{class:"far fa-spinner-third fa-spin"})," ")),l&&t("span",{class:`${f} bcm-button__container-icon`},t("i",{class:`${l}`})),!s&&t(d,{className:"bcm-button__container-text",value:n}),t("slot",{name:"suffix"})),X=class{constructor(t){n(this,t),this.bcmClick=e(this,"bcm-click",7),this._id=c.UID(),this.hidden=!1,this.type=u.ButtonType.button,this.size=u.Size.medium,this.disabled=!1,this.kind=u.Kind.solid,this.outline=!1,this.icon=void 0,this.href=void 0,this.target=void 0,this.value=void 0,this.loading=!1,this.variant=void 0,this.dataDismiss=!1,this.fullWidth=!1,this.iconPosition=u.IconPosition.prefix,this.color=void 0,this.checked=!1}handleOnClick(t){if(this.disabled)return t.preventDefault(),t.stopPropagation(),!1}componentWillRender(){const{size:t,kind:n,icon:e,iconPosition:r,disabled:i,outline:o,href:a,type:c,target:s,loading:l,variant:f,fullWidth:d,hidden:h,value:b}=this;(t=>{const n=Object.assign(Object.assign({},t),B[t.variant]&&{icon:B[t.variant].icon,value:B[t.variant].text,iconPosition:u.IconPosition[B[t.variant].iconPosition],variantColor:B[t.variant].color});K.value.set(n.id,n)})({id:this._id,size:t,type:c,kind:n,icon:e,iconPosition:r,disabled:i,outline:o,href:a,target:s,loading:l,variant:f,fullWidth:d,hidden:h,value:b,isIconOnly:!(!this.isHaveChildNodes()||!this.icon)})}getStateData(){return t=this._id,a((()=>K.value.get(t)),{});var t}isHaveChildNodes(){return void 0===Array.from(this.el.childNodes).find((t=>t.nodeType===Node.TEXT_NODE))}setColor(t=this.color){if(!t)return;const{kind:n}=this,e=`--bcm-button-${n}`;return"solid"===n?{[`${e}-color-default`]:h.dsColor("white"),[`${e}-color-hover`]:h.dsColor("white"),[`${e}-color-focus-visible`]:h.dsColor("white"),[`${e}-color-active`]:h.dsColor("white"),[`${e}-color-disabled`]:h.dsColor("white"),[`${e}-background-color-default`]:h.dsColor(t+"-500"),[`${e}-background-color-hover`]:h.dsColor(t+"-600"),[`${e}-background-color-focus-visible`]:h.dsColor(t+"-700"),[`${e}-background-color-active`]:h.dsColor(t+"-800"),[`${e}-background-color-disabled`]:h.dsColor("slate-400"),[`${e}-border-default`]:h.dsColor(t+"-500"),[`${e}-border-hover`]:h.dsColor(t+"-600"),[`${e}-border-focus-visible`]:h.dsColor(t+"-700"),[`${e}-border-active`]:h.dsColor(t+"-800"),[`${e}-border-disabled`]:h.dsColor("slate-400")}:"link"==n?{[`${e}-color-default`]:h.dsColor(t+"-500"),[`${e}-color-hover`]:h.dsColor(t+"-600"),[`${e}-color-focus-visible`]:h.dsColor(t+"-800"),[`${e}-color-active`]:h.dsColor(t+"-700"),[`${e}-color-disabled`]:h.dsColor("slate-400"),[`${e}-background-color-default`]:h.dsColor("transparent"),[`${e}-background-color-hover`]:h.dsColor("transparent"),[`${e}-background-color-focus-visible`]:h.dsColor("slate-50"),[`${e}-background-color-active`]:h.dsColor("slate-50"),[`${e}-background-color-disabled`]:h.dsColor("transparent"),[`${e}-border-default`]:h.dsColor("transparent"),[`${e}-border-hover`]:h.dsColor("transparent"),[`${e}-border-focus-visible`]:h.dsColor("slate-50"),[`${e}-border-active`]:h.dsColor("slate-50"),[`${e}-border-disabled`]:h.dsColor("transparent")}:"ghost"==n?{[`${e}-color-default`]:h.dsColor(t+"-600"),[`${e}-color-hover`]:h.dsColor(t+"-600"),[`${e}-color-focus-visible`]:h.dsColor(t+"-600"),[`${e}-color-active`]:h.dsColor(t+"-600"),[`${e}-color-disabled`]:h.dsColor(t+"-300"),[`${e}-background-color-default`]:h.dsColor(t+"-100"),[`${e}-background-color-hover`]:h.dsColor(t+"-200"),[`${e}-background-color-focus-visible`]:h.dsColor(t+"-400"),[`${e}-background-color-active`]:h.dsColor(t+"-300"),[`${e}-background-color-disabled`]:h.dsColor(t+"-50"),[`${e}-border-default`]:h.dsColor(t+"-300"),[`${e}-border-hover`]:h.dsColor(t+"-400"),[`${e}-border-focus-visible`]:h.dsColor(t+"-600"),[`${e}-border-active`]:h.dsColor(t+"-500"),[`${e}-border-disabled`]:h.dsColor(t+"-200")}:void 0}render(){const{size:n,kind:e,disabled:i,outline:o,type:a,href:c,target:u,loading:s,variantColor:f,fullWidth:d,hidden:h,icon:b,iconPosition:m,value:p,isIconOnly:v,iconSize:g}=this.getStateData();let x=l("bcm-button__container",`bcm-button__container-size-${n}`,`bcm-button__container-kind-${o?"ghost":e}`,{"full-width":d,checked:this.checked,disabled:i});const w=l("bcm-button",{hidden:h,"full-width":d});return t(r,{class:w,style:this.setColor(f),onClick:()=>!i&&this.bcmClick.emit(this.el)},t(Z,{type:a,value:p,componentClass:x,disabled:i,href:c,target:u,icon:b,loading:s,iconSize:g,isIconOnly:v,iconPosition:m}))}get el(){return i(this)}};function Q(){return(Q=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(this,arguments)}function J(t,n){if(null==t)return{};var e,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n.indexOf(e=o[r])>=0||(i[e]=t[e]);return i}function tt(t){var n=b.useRef(t),e=b.useRef((function(t){n.current&&n.current(t)}));return n.current=t,e.current}X.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-button{display:inline-flex;width:fit-content;height:fit-content;--bcm-button-solid-color-default:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-default:var(--bcm-new-ds-color-blue-500);--bcm-button-solid-border-default:var(--bcm-new-ds-color-blue-500);--bcm-button-solid-color-hover:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-button-solid-border-hover:var(--bcm-new-ds-color-blue-600);--bcm-button-solid-color-focus-visible:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-button-solid-border-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-button-solid-color-active:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-active:var(--bcm-new-ds-color-blue-700);--bcm-button-solid-border-active:var(--bcm-new-ds-color-blue-700);--bcm-button-solid-color-disabled:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-disabled:var(--bcm-new-ds-color-slate-400);--bcm-button-solid-border-disabled:var(--bcm-new-ds-color-slate-400);--bcm-button-ghost-color-default:var(--bcm-new-ds-color-slate-600);--bcm-button-ghost-background-color-default:var(--bcm-new-ds-color-slate-100);--bcm-button-ghost-border-default:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-color-hover:var(--bcm-new-ds-color-slate-600);--bcm-button-ghost-background-color-hover:var(--bcm-new-ds-color-slate-200);--bcm-button-ghost-border-hover:var(--bcm-new-ds-color-slate-400);--bcm-button-ghost-color-focus-visible:var(--bcm-new-ds-color-slate-600);--bcm-button-ghost-background-color-focus-visible:var(--bcm-new-ds-color-slate-400);--bcm-button-ghost-border-focus-visible:var(--bcm-new-ds-color-slate-600);--bcm-button-ghost-color-active:var(--bcm-new-ds-color-slate-600);--bcm-button-ghost-background-color-active:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-border-active:var(--bcm-new-ds-color-slate-500);--bcm-button-ghost-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-background-color-disabled:var(--bcm-new-ds-color-slate-50);--bcm-button-ghost-border-disabled:var(--bcm-new-ds-color-slate-200);--bcm-button-link-color-default:var(--bcm-new-ds-color-blue-500);--bcm-button-link-background-color-default:var(--bcm-new-ds-color-transparent);--bcm-button-link-border-default:var(--bcm-new-ds-color-transparent);--bcm-button-link-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-button-link-background-color-hover:var(--bcm-new-ds-color-transparent);--bcm-button-link-border-hover:var(--bcm-new-ds-color-transparent);--bcm-button-link-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-button-link-background-color-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-button-link-border-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-button-link-color-active:var(--bcm-new-ds-color-blue-700);--bcm-button-link-background-color-active:var(--bcm-new-ds-color-slate-50);--bcm-button-link-border-active:var(--bcm-new-ds-color-slate-50);--bcm-button-link-color-disabled:var(--bcm-new-ds-color-slate-400);--bcm-button-link-background-color-disabled:var(--bcm-new-ds-color-transparent);--bcm-button-link-border-disabled:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-color-default:var(--bcm-new-ds-color-slate-700);--bcm-button-ghost-link-background-color-default:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-border-default:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-color-hover:var(--bcm-new-ds-color-slate-700);--bcm-button-ghost-link-background-color-hover:var(--bcm-new-ds-color-slate-200);--bcm-button-ghost-link-border-hover:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-color-focus-visible:var(--bcm-new-ds-color-slate-700);--bcm-button-ghost-link-background-color-focus-visible:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-link-border-focus-visible:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-color-active:var(--bcm-new-ds-color-slate-700);--bcm-button-ghost-link-background-color-active:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-link-border-active:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-color-disabled:var(--bcm-new-ds-color-slate-500);--bcm-button-ghost-link-background-color-disabled:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-border-disabled:var(--bcm-new-ds-color-transparent)}.bcm-button.full-width{width:100%}.bcm-button.full-width .bcm-button__container{width:100%}.bcm-button:after,.bcm-button:before{content:"";clear:both}.bcm-button__container{border:none;color:inherit;background-color:inherit;padding:0;margin:0;font:inherit;cursor:pointer;outline:none;text-decoration:none;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:4px 12px;outline:none;border-radius:4px;transition:background-color 0.1s ease-in-out;position:relative;min-width:40px;border-width:1px;border-style:solid;border-color:initial}.bcm-button__container:hover,.bcm-button__container:focus,.bcm-button__container:active{outline:none;text-decoration:none}.bcm-button__container-loading{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:4px;display:flex;align-items:center;justify-content:center}.bcm-button__container-kind-solid{color:var(--bcm-button-solid-color-default);background-color:var(--bcm-button-solid-background-color-default);border-color:var(--bcm-button-solid-border-default)}.bcm-button__container-kind-solid:hover{color:var(--bcm-button-solid-color-hover);background-color:var(--bcm-button-solid-background-color-hover);border-color:var(--bcm-button-solid-border-hover)}.bcm-button__container-kind-solid:focus-visible{color:var(--bcm-button-solid-color-focus-visible);background-color:var(--bcm-button-solid-background-color-focus-visible);border-color:var(--bcm-button-solid-border-focus-visible)}.bcm-button__container-kind-solid:active{color:var(--bcm-button-solid-color-active);background-color:var(--bcm-button-solid-background-color-active);border-color:var(--bcm-button-solid-border-active)}.bcm-button__container-kind-solid:disabled{color:var(--bcm-button-solid-color-disabled);background-color:var(--bcm-button-solid-background-color-disabled);border-color:var(--bcm-button-solid-border-disabled)}.bcm-button__container-kind-solid.checked{color:var(--bcm-button-solid-color-active);background-color:var(--bcm-button-solid-background-color-active);border-color:var(--bcm-button-solid-border-active)}.bcm-button__container-kind-solid.disabled{color:var(--bcm-button-solid-color-disabled);background-color:var(--bcm-button-solid-background-color-disabled);border-color:var(--bcm-button-solid-border-disabled)}.bcm-button__container-kind-solid .bcm-button__container-loading{color:var(--bcm-button-solid-color-default);background-color:var(--bcm-button-solid-background-color-default);border-color:var(--bcm-button-solid-border-default)}.bcm-button__container-kind-ghost{color:var(--bcm-button-ghost-color-default);background-color:var(--bcm-button-ghost-background-color-default);border-color:var(--bcm-button-ghost-border-default)}.bcm-button__container-kind-ghost:not([disabled]) .bcm-icon{color:var(--bcm-new-ds-color-slate-500)}.bcm-button__container-kind-ghost:hover{color:var(--bcm-button-ghost-color-hover);background-color:var(--bcm-button-ghost-background-color-hover);border-color:var(--bcm-button-ghost-border-hover)}.bcm-button__container-kind-ghost:focus-visible{color:var(--bcm-button-ghost-color-focus-visible);background-color:var(--bcm-button-ghost-background-color-focus-visible);border-color:var(--bcm-button-ghost-border-focus-visible)}.bcm-button__container-kind-ghost:active{color:var(--bcm-button-ghost-color-active);background-color:var(--bcm-button-ghost-background-color-active);border-color:var(--bcm-button-ghost-border-active)}.bcm-button__container-kind-ghost:disabled{color:var(--bcm-button-ghost-color-disabled);background-color:var(--bcm-button-ghost-background-color-disabled);border-color:var(--bcm-button-ghost-border-disabled)}.bcm-button__container-kind-ghost.checked{color:var(--bcm-button-ghost-color-active);background-color:var(--bcm-button-ghost-background-color-active);border-color:var(--bcm-button-ghost-border-active)}.bcm-button__container-kind-ghost.disabled{color:var(--bcm-button-ghost-color-disabled);background-color:var(--bcm-button-ghost-background-color-disabled);border-color:var(--bcm-button-ghost-border-disabled)}.bcm-button__container-kind-ghost .bcm-button__container-loading{color:var(--bcm-button-ghost-color-default);background-color:var(--bcm-button-ghost-background-color-default);border-color:var(--bcm-button-ghost-border-default)}.bcm-button__container-kind-link{color:var(--bcm-button-link-color-default);background-color:var(--bcm-button-link-background-color-default);border-color:var(--bcm-button-link-border-default)}.bcm-button__container-kind-link:hover{color:var(--bcm-button-link-color-hover);background-color:var(--bcm-button-link-background-color-hover);border-color:var(--bcm-button-link-border-hover)}.bcm-button__container-kind-link:focus-visible{color:var(--bcm-button-link-color-focus-visible);background-color:var(--bcm-button-link-background-color-focus-visible);border-color:var(--bcm-button-link-border-focus-visible)}.bcm-button__container-kind-link:active{color:var(--bcm-button-link-color-active);background-color:var(--bcm-button-link-background-color-active);border-color:var(--bcm-button-link-border-active)}.bcm-button__container-kind-link:disabled{color:var(--bcm-button-link-color-disabled);background-color:var(--bcm-button-link-background-color-disabled);border-color:var(--bcm-button-link-border-disabled)}.bcm-button__container-kind-link.checked{color:var(--bcm-button-link-color-active);background-color:var(--bcm-button-link-background-color-active);border-color:var(--bcm-button-link-border-active)}.bcm-button__container-kind-link.disabled{color:var(--bcm-button-link-color-disabled);background-color:var(--bcm-button-link-background-color-disabled);border-color:var(--bcm-button-link-border-disabled)}.bcm-button__container-kind-link .bcm-button__container-loading{color:var(--bcm-button-link-color-default);background-color:var(--bcm-button-link-background-color-default);border-color:var(--bcm-button-link-border-default)}.bcm-button__container-kind-ghost-link{color:var(--bcm-button-ghost-link-color-default);background-color:var(--bcm-button-ghost-link-background-color-default);border-color:var(--bcm-button-ghost-link-border-default)}.bcm-button__container-kind-ghost-link:hover{color:var(--bcm-button-ghost-link-color-hover);background-color:var(--bcm-button-ghost-link-background-color-hover);border-color:var(--bcm-button-ghost-link-border-hover)}.bcm-button__container-kind-ghost-link:focus-visible{color:var(--bcm-button-ghost-link-color-focus-visible);background-color:var(--bcm-button-ghost-link-background-color-focus-visible);border-color:var(--bcm-button-ghost-link-border-focus-visible)}.bcm-button__container-kind-ghost-link:active{color:var(--bcm-button-ghost-link-color-active);background-color:var(--bcm-button-ghost-link-background-color-active);border-color:var(--bcm-button-ghost-link-border-active)}.bcm-button__container-kind-ghost-link:disabled{color:var(--bcm-button-ghost-link-color-disabled);background-color:var(--bcm-button-ghost-link-background-color-disabled);border-color:var(--bcm-button-ghost-link-border-disabled)}.bcm-button__container-kind-ghost-link.checked{color:var(--bcm-button-ghost-link-color-active);background-color:var(--bcm-button-ghost-link-background-color-active);border-color:var(--bcm-button-ghost-link-border-active)}.bcm-button__container-kind-ghost-link.disabled{color:var(--bcm-button-ghost-link-color-disabled);background-color:var(--bcm-button-ghost-link-background-color-disabled);border-color:var(--bcm-button-ghost-link-border-disabled)}.bcm-button__container-kind-ghost-link .bcm-button__container-loading{color:var(--bcm-button-ghost-link-color-default);background-color:var(--bcm-button-ghost-link-background-color-default);border-color:var(--bcm-button-ghost-link-border-default)}.bcm-button__container[disabled]{cursor:not-allowed}.bcm-button__container-text{order:3;display:flex;align-items:center;gap:8px;white-space:nowrap}.bcm-button__container-icon{min-height:calc(12px + 8px)}.bcm-button__container-icon.prefix{order:2}.bcm-button__container-icon.suffix{order:4}.bcm-button__container-size-small{font-size:12px;line-height:calc(12px + 8px);padding:calc(4px - 3px) 12px;min-height:calc(calc(12px + 8px) + calc(calc(4px - 2px)) * 2)}.bcm-button__container-size-small .bcm-button__container-icon{min-height:calc(12px + 8px)}.bcm-button__container-size-medium{font-size:calc(12px + 1px);line-height:calc(12px + 8px);padding:calc(4px + 1px) 12px;min-height:calc(calc(12px + 8px) + calc(calc(4px + 2px)) * 2)}.bcm-button__container-size-medium .bcm-button__container-icon{min-height:calc(12px + 8px)}.bcm-button__container-size-large{font-size:16px;line-height:calc(16px + 8px);padding:calc(8px - 1px) 12px;min-height:calc(calc(16px + 8px) + (calc(8px) * 2))}.bcm-button__container-size-large .bcm-button__container-icon{min-height:calc(16px + 8px)}';var nt=function(t,n,e){return void 0===n&&(n=0),void 0===e&&(e=1),t>e?e:t<n?n:t},et=function(t){return"touches"in t},rt=function(t){return t&&t.ownerDocument.defaultView||self},it=function(t,n,e){var r=t.getBoundingClientRect(),i=et(n)?function(t,n){for(var e=0;e<t.length;e++)if(t[e].identifier===n)return t[e];return t[0]}(n.touches,e):n;return{left:nt((i.pageX-(r.left+rt(t).pageXOffset))/r.width),top:nt((i.pageY-(r.top+rt(t).pageYOffset))/r.height)}},ot=function(t){!et(t)&&t.preventDefault()},at=b.memo((function(t){var n=t.onMove,e=t.onKey,r=J(t,["onMove","onKey"]),i=b.useRef(null),o=tt(n),a=tt(e),c=b.useRef(null),u=b.useRef(!1),s=b.useMemo((function(){var t=function(t){ot(t),(et(t)?t.touches.length>0:t.buttons>0)&&i.current?o(it(i.current,t,c.current)):e(!1)},n=function(){return e(!1)};function e(e){var r=u.current,o=rt(i.current),a=e?o.addEventListener:o.removeEventListener;a(r?"touchmove":"mousemove",t),a(r?"touchend":"mouseup",n)}return[function(t){var n=t.nativeEvent,r=i.current;if(r&&(ot(n),!function(t,n){return n&&!et(t)}(n,u.current)&&r)){if(et(n)){u.current=!0;var a=n.changedTouches||[];a.length&&(c.current=a[0].identifier)}r.focus(),o(it(r,n,c.current)),e(!0)}},function(t){var n=t.which||t.keyCode;n<37||n>40||(t.preventDefault(),a({left:39===n?.05:37===n?-.05:0,top:40===n?.05:38===n?-.05:0}))},e]}),[a,o]),l=s[0],f=s[1],d=s[2];return b.useEffect((function(){return d}),[d]),b.createElement("div",Q({},r,{onTouchStart:l,onMouseDown:l,className:"react-colorful__interactive",ref:i,onKeyDown:f,tabIndex:0,role:"slider"}))})),ct=function(t){return t.filter(Boolean).join(" ")},ut=function(t){var n=t.color,e=t.left,r=t.top,i=void 0===r?.5:r,o=ct(["react-colorful__pointer",t.className]);return b.createElement("div",{className:o,style:{top:100*i+"%",left:100*e+"%"}},b.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:n}}))},st=function(t,n,e){return void 0===n&&(n=0),void 0===e&&(e=Math.pow(10,n)),Math.round(e*t)/e},lt=function(t){return"#"===t[0]&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:4===t.length?st(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:8===t.length?st(parseInt(t.substring(6,8),16)/255,2):1}},ft=function(t){var n=function(t){var n=t.s,e=t.v,r=t.a,i=(200-n)*e/100;return{h:st(t.h),s:st(i>0&&i<200?n*e/100/(i<=100?i:200-i)*100:0),l:st(i/2),a:st(r,2)}}(t);return"hsl("+n.h+", "+n.s+"%, "+n.l+"%)"},dt=function(t){var n=t.toString(16);return n.length<2?"0"+n:n},ht=b.memo((function(t){var n=t.hue,e=t.onChange,r=ct(["react-colorful__hue",t.className]);return b.createElement("div",{className:r},b.createElement(at,{onMove:function(t){e({h:360*t.left})},onKey:function(t){e({h:nt(n+360*t.left,0,360)})},"aria-label":"Hue","aria-valuenow":st(n),"aria-valuemax":"360","aria-valuemin":"0"},b.createElement(ut,{className:"react-colorful__hue-pointer",left:n/360,color:ft({h:n,s:100,v:100,a:1})})))})),bt=b.memo((function(t){var n=t.hsva,e=t.onChange,r={backgroundColor:ft({h:n.h,s:100,v:100,a:1})};return b.createElement("div",{className:"react-colorful__saturation",style:r},b.createElement(at,{onMove:function(t){e({s:100*t.left,v:100-100*t.top})},onKey:function(t){e({s:nt(n.s+100*t.left,0,100),v:nt(n.v-100*t.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+st(n.s)+"%, Brightness "+st(n.v)+"%"},b.createElement(ut,{className:"react-colorful__saturation-pointer",top:1-n.v/100,left:n.s/100,color:ft(n)})))})),mt=function(t,n){if(t===n)return!0;for(var e in t)if(t[e]!==n[e])return!1;return!0};function pt(t,n,e){var r=tt(e),i=b.useState((function(){return t.toHsva(n)})),o=i[0],a=i[1],c=b.useRef({color:n,hsva:o});b.useEffect((function(){if(!t.equal(n,c.current.color)){var e=t.toHsva(n);c.current={hsva:e,color:n},a(e)}}),[n,t]),b.useEffect((function(){var n;mt(o,c.current.hsva)||t.equal(n=t.fromHsva(o),c.current.color)||(c.current={hsva:o,color:n},r(n))}),[o,t,r]);var u=b.useCallback((function(t){a((function(n){return Object.assign({},n,t)}))}),[]);return[o,u]}var vt="undefined"!=typeof window?b.useLayoutEffect:b.useEffect,gt=new Map,xt=function(t){var n,e=t.className,r=t.colorModel,i=t.color,o=void 0===i?r.defaultColor:i,a=t.onChange,c=J(t,["className","colorModel","color","onChange"]),u=b.useRef(null);n=u,vt((function(){var t=n.current?n.current.ownerDocument:document;if(void 0!==t&&!gt.has(t)){var e=t.createElement("style");e.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',gt.set(t,e);var r="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0;r&&e.setAttribute("nonce",r),t.head.appendChild(e)}}),[]);var s=pt(r,o,a),l=s[0],f=s[1],d=ct(["react-colorful",e]);return b.createElement("div",Q({},c,{ref:u,className:d}),b.createElement(bt,{hsva:l,onChange:f}),b.createElement(ht,{hue:l.h,onChange:f,className:"react-colorful__last-control"}))},wt={defaultColor:"000",toHsva:function(t){return function(t){var n=t.r,e=t.g,r=t.b,i=t.a,o=Math.max(n,e,r),a=o-Math.min(n,e,r),c=a?o===n?(e-r)/a:o===e?2+(r-n)/a:4+(n-e)/a:0;return{h:st(60*(c<0?c+6:c)),s:st(o?a/o*100:0),v:st(o/255*100),a:i}}(lt(t))},fromHsva:function(t){return function(t){return function(t){var n=t.r,e=t.g,r=t.b,i=t.a,o=i<1?dt(st(255*i)):"";return"#"+dt(n)+dt(e)+dt(r)+o}(function(t){var n=t.h,e=t.s,r=t.v,i=t.a;n=n/360*6,e/=100,r/=100;var o=Math.floor(n),a=r*(1-e),c=r*(1-(n-o)*e),u=r*(1-(1-n+o)*e),s=o%6;return{r:st(255*[r,c,a,a,u,r][s]),g:st(255*[u,r,r,c,a,a][s]),b:st(255*[a,a,u,r,r,c][s]),a:st(i,2)}}(t))}({h:t.h,s:t.s,v:t.v,a:1})},equal:function(t,n){return t.toLowerCase()===n.toLowerCase()||mt(lt(t),lt(n))}},yt=function(t){return b.createElement(xt,Q({},t,{colorModel:wt}))},_t=N((function(t,n){(function(){var e,r="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",a=32,c=128,u=1/0,s=9007199254740991,l=NaN,f=4294967295,d=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",a],["partialRight",64],["rearg",256]],h="[object Arguments]",b="[object Array]",m="[object Boolean]",p="[object Date]",v="[object Error]",g="[object Function]",x="[object GeneratorFunction]",w="[object Map]",y="[object Number]",_="[object Object]",k="[object Promise]",z="[object RegExp]",M="[object Set]",S="[object String]",D="[object Symbol]",C="[object WeakMap]",j="[object ArrayBuffer]",Y="[object DataView]",O="[object Float32Array]",N="[object Float64Array]",T="[object Int8Array]",A="[object Int16Array]",R="[object Int32Array]",P="[object Uint8Array]",I="[object Uint8ClampedArray]",L="[object Uint16Array]",H="[object Uint32Array]",F=/\b__p \+= '';/g,$=/\b(__p \+=) '' \+/g,U=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,V=RegExp(W.source),B=RegExp(G.source),q=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tt=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(tt.source),et=/^\s+/,rt=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,ct=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ut=/[()=,{}\[\]\/\s]/,st=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,ht=/^0b[01]+$/i,bt=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,pt=/^(?:0|[1-9]\d*)$/,vt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,gt=/($^)/,xt=/['\n\r\u2028\u2029\\]/g,wt="\\ud800-\\udfff",yt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_t="\\u2700-\\u27bf",kt="a-z\\xdf-\\xf6\\xf8-\\xff",zt="A-Z\\xc0-\\xd6\\xd8-\\xde",Mt="\\ufe0e\\ufe0f",St="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Dt="["+wt+"]",Ct="["+St+"]",jt="["+yt+"]",Yt="\\d+",Ot="["+_t+"]",Nt="["+kt+"]",Et="[^"+wt+St+Yt+_t+kt+zt+"]",Tt="\\ud83c[\\udffb-\\udfff]",At="[^"+wt+"]",Rt="(?:\\ud83c[\\udde6-\\uddff]){2}",Pt="[\\ud800-\\udbff][\\udc00-\\udfff]",It="["+zt+"]",Lt="\\u200d",Ht="(?:"+Nt+"|"+Et+")",Ft="(?:"+It+"|"+Et+")",$t="(?:['’](?:d|ll|m|re|s|t|ve))?",Ut="(?:['’](?:D|LL|M|RE|S|T|VE))?",Wt="(?:"+jt+"|"+Tt+")?",Gt="["+Mt+"]?",Vt=Gt+Wt+"(?:"+Lt+"(?:"+[At,Rt,Pt].join("|")+")"+Gt+Wt+")*",Bt="(?:"+[Ot,Rt,Pt].join("|")+")"+Vt,qt="(?:"+[At+jt+"?",jt,Rt,Pt,Dt].join("|")+")",Kt=RegExp("['’]","g"),Zt=RegExp(jt,"g"),Xt=RegExp(Tt+"(?="+Tt+")|"+qt+Vt,"g"),Qt=RegExp([It+"?"+Nt+"+"+$t+"(?="+[Ct,It,"$"].join("|")+")",Ft+"+"+Ut+"(?="+[Ct,It+Ht,"$"].join("|")+")",It+"?"+Ht+"+"+$t,It+"+"+Ut,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Yt,Bt].join("|"),"g"),Jt=RegExp("["+Lt+wt+yt+Mt+"]"),tn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],en=-1,rn={};rn[O]=rn[N]=rn[T]=rn[A]=rn[R]=rn[P]=rn[I]=rn[L]=rn[H]=!0,rn[h]=rn[b]=rn[j]=rn[m]=rn[Y]=rn[p]=rn[v]=rn[g]=rn[w]=rn[y]=rn[_]=rn[z]=rn[M]=rn[S]=rn[C]=!1;var on={};on[h]=on[b]=on[j]=on[Y]=on[m]=on[p]=on[O]=on[N]=on[T]=on[A]=on[R]=on[w]=on[y]=on[_]=on[z]=on[M]=on[S]=on[D]=on[P]=on[I]=on[L]=on[H]=!0,on[v]=on[g]=on[C]=!1;var an={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},cn=parseFloat,un=parseInt,sn="object"==typeof E&&E&&E.Object===Object&&E,ln="object"==typeof self&&self&&self.Object===Object&&self,fn=sn||ln||Function("return this")(),dn=n&&!n.nodeType&&n,hn=dn&&t&&!t.nodeType&&t,bn=hn&&hn.exports===dn,mn=bn&&sn.process,pn=function(){try{return hn&&hn.require&&hn.require("util").types||mn&&mn.binding&&mn.binding("util")}catch(t){}}(),vn=pn&&pn.isArrayBuffer,gn=pn&&pn.isDate,xn=pn&&pn.isMap,wn=pn&&pn.isRegExp,yn=pn&&pn.isSet,_n=pn&&pn.isTypedArray;function kn(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function zn(t,n,e,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];n(r,a,e(a),t)}return r}function Mn(t,n){for(var e=-1,r=null==t?0:t.length;++e<r&&!1!==n(t[e],e,t););return t}function Sn(t,n){for(var e=null==t?0:t.length;e--&&!1!==n(t[e],e,t););return t}function Dn(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(!n(t[e],e,t))return!1;return!0}function Cn(t,n){for(var e=-1,r=null==t?0:t.length,i=0,o=[];++e<r;){var a=t[e];n(a,e,t)&&(o[i++]=a)}return o}function jn(t,n){return!(null==t||!t.length)&&Ln(t,n,0)>-1}function Yn(t,n,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(e(n,t[r]))return!0;return!1}function On(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}function Nn(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}function En(t,n,e,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(e=t[++i]);++i<o;)e=n(e,t[i],i,t);return e}function Tn(t,n,e,r){var i=null==t?0:t.length;for(r&&i&&(e=t[--i]);i--;)e=n(e,t[i],i,t);return e}function An(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}var Rn=Un("length");function Pn(t,n,e){var r;return e(t,(function(t,e,i){if(n(t,e,i))return r=e,!1})),r}function In(t,n,e,r){for(var i=t.length,o=e+(r?1:-1);r?o--:++o<i;)if(n(t[o],o,t))return o;return-1}function Ln(t,n,e){return n==n?function(t,n,e){for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}(t,n,e):In(t,Fn,e)}function Hn(t,n,e,r){for(var i=e-1,o=t.length;++i<o;)if(r(t[i],n))return i;return-1}function Fn(t){return t!=t}function $n(t,n){var e=null==t?0:t.length;return e?Vn(t,n)/e:l}function Un(t){return function(n){return null==n?e:n[t]}}function Wn(t){return function(n){return null==t?e:t[n]}}function Gn(t,n,e,r,i){return i(t,(function(t,i,o){e=r?(r=!1,t):n(e,t,i,o)})),e}function Vn(t,n){for(var r,i=-1,o=t.length;++i<o;){var a=n(t[i]);a!==e&&(r=r===e?a:r+a)}return r}function Bn(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}function qn(t){return t?t.slice(0,de(t)+1).replace(et,""):t}function Kn(t){return function(n){return t(n)}}function Zn(t,n){return On(n,(function(n){return t[n]}))}function Xn(t,n){return t.has(n)}function Qn(t,n){for(var e=-1,r=t.length;++e<r&&Ln(n,t[e],0)>-1;);return e}function Jn(t,n){for(var e=t.length;e--&&Ln(n,t[e],0)>-1;);return e}function te(t,n){for(var e=t.length,r=0;e--;)t[e]===n&&++r;return r}var ne=Wn({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),ee=Wn({"&":"&","<":"<",">":">",'"':""","'":"'"});function re(t){return"\\"+an[t]}function ie(t){return Jt.test(t)}function oe(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}function ae(t,n){return function(e){return t(n(e))}}function ce(t,n){for(var e=-1,r=t.length,i=0,a=[];++e<r;){var c=t[e];c!==n&&c!==o||(t[e]=o,a[i++]=e)}return a}function ue(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=t})),e}function se(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=[t,t]})),e}function le(t){return ie(t)?function(t){for(var n=Xt.lastIndex=0;Xt.test(t);)++n;return n}(t):Rn(t)}function fe(t){return ie(t)?function(t){return t.match(Xt)||[]}(t):function(t){return t.split("")}(t)}function de(t){for(var n=t.length;n--&&rt.test(t.charAt(n)););return n}var he=Wn({"&":"&","<":"<",">":">",""":'"',"'":"'"}),be=function t(n){var E,rt=(n=null==n?fn:be.defaults(fn.Object(),n,be.pick(fn,nn))).Array,wt=n.Date,yt=n.Error,_t=n.Function,kt=n.Math,zt=n.Object,Mt=n.RegExp,St=n.String,Dt=n.TypeError,Ct=rt.prototype,jt=zt.prototype,Yt=n["__core-js_shared__"],Ot=_t.prototype.toString,Nt=jt.hasOwnProperty,Et=0,Tt=(E=/[^.]+$/.exec(Yt&&Yt.keys&&Yt.keys.IE_PROTO||""))?"Symbol(src)_1."+E:"",At=jt.toString,Rt=Ot.call(zt),Pt=fn._,It=Mt("^"+Ot.call(Nt).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lt=bn?n.Buffer:e,Ht=n.Symbol,Ft=n.Uint8Array,$t=Lt?Lt.allocUnsafe:e,Ut=ae(zt.getPrototypeOf,zt),Wt=zt.create,Gt=jt.propertyIsEnumerable,Vt=Ct.splice,Bt=Ht?Ht.isConcatSpreadable:e,qt=Ht?Ht.iterator:e,Xt=Ht?Ht.toStringTag:e,Jt=function(){try{var t=uo(zt,"defineProperty");return t({},"",{}),t}catch(t){}}(),an=n.clearTimeout!==fn.clearTimeout&&n.clearTimeout,sn=wt&&wt.now!==fn.Date.now&&wt.now,ln=n.setTimeout!==fn.setTimeout&&n.setTimeout,dn=kt.ceil,hn=kt.floor,mn=zt.getOwnPropertySymbols,pn=Lt?Lt.isBuffer:e,Rn=n.isFinite,Wn=Ct.join,me=ae(zt.keys,zt),pe=kt.max,ve=kt.min,ge=wt.now,xe=n.parseInt,we=kt.random,ye=Ct.reverse,_e=uo(n,"DataView"),ke=uo(n,"Map"),ze=uo(n,"Promise"),Me=uo(n,"Set"),Se=uo(n,"WeakMap"),De=uo(zt,"create"),Ce=Se&&new Se,je={},Ye=Io(_e),Oe=Io(ke),Ne=Io(ze),Ee=Io(Me),Te=Io(Se),Ae=Ht?Ht.prototype:e,Re=Ae?Ae.valueOf:e,Pe=Ae?Ae.toString:e;function Ie(t){if(nc(t)&&!Wa(t)&&!(t instanceof $e)){if(t instanceof Fe)return t;if(Nt.call(t,"__wrapped__"))return Lo(t)}return new Fe(t)}var Le=function(){function t(){}return function(n){if(!tc(n))return{};if(Wt)return Wt(n);t.prototype=n;var r=new t;return t.prototype=e,r}}();function He(){}function Fe(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=e}function $e(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Ue(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function We(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function Ge(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function Ve(t){var n=-1,e=null==t?0:t.length;for(this.__data__=new Ge;++n<e;)this.add(t[n])}function Be(t){var n=this.__data__=new We(t);this.size=n.size}function qe(t,n){var e=Wa(t),r=!e&&Ua(t),i=!e&&!r&&qa(t),o=!e&&!r&&!i&&sc(t),a=e||r||i||o,c=a?Bn(t.length,St):[],u=c.length;for(var s in t)!n&&!Nt.call(t,s)||a&&("length"==s||i&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||po(s,u))||c.push(s);return c}function Ke(t){var n=t.length;return n?t[Gr(0,n-1)]:e}function Ze(t,n){return Eo(Si(t),or(n,0,t.length))}function Xe(t){return Eo(Si(t))}function Qe(t,n,r){(r!==e&&!Ha(t[n],r)||r===e&&!(n in t))&&rr(t,n,r)}function Je(t,n,r){var i=t[n];Nt.call(t,n)&&Ha(i,r)&&(r!==e||n in t)||rr(t,n,r)}function tr(t,n){for(var e=t.length;e--;)if(Ha(t[e][0],n))return e;return-1}function nr(t,n,e,r){return lr(t,(function(t,i,o){n(r,t,e(t),o)})),r}function er(t,n){return t&&Di(n,Oc(n),t)}function rr(t,n,e){"__proto__"==n&&Jt?Jt(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}function ir(t,n){for(var r=-1,i=n.length,o=rt(i),a=null==t;++r<i;)o[r]=a?e:Sc(t,n[r]);return o}function or(t,n,r){return t==t&&(r!==e&&(t=t<=r?t:r),n!==e&&(t=t>=n?t:n)),t}function ar(t,n,r,i,o,a){var c,u=1&n,s=2&n,l=4&n;if(r&&(c=o?r(t,i,o,a):r(t)),c!==e)return c;if(!tc(t))return t;var f=Wa(t);if(f){if(c=function(t){var n=t.length,e=new t.constructor(n);return n&&"string"==typeof t[0]&&Nt.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(t),!u)return Si(t,c)}else{var d=fo(t),b=d==g||d==x;if(qa(t))return wi(t,u);if(d==_||d==h||b&&!o){if(c=s||b?{}:bo(t),!u)return s?function(t,n){return Di(t,lo(t),n)}(t,function(t,n){return t&&Di(n,Nc(n),t)}(c,t)):function(t,n){return Di(t,so(t),n)}(t,er(c,t))}else{if(!on[d])return o?t:{};c=function(t,n,e){var r=t.constructor;switch(n){case j:return yi(t);case m:case p:return new r(+t);case Y:return function(t,n){var e=n?yi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case O:case N:case T:case A:case R:case P:case I:case L:case H:return _i(t,e);case w:return new r;case y:case S:return new r(t);case z:return function(t){var n=new t.constructor(t.source,ft.exec(t));return n.lastIndex=t.lastIndex,n}(t);case M:return new r;case D:return Re?zt(Re.call(t)):{}}}(t,d,u)}}a||(a=new Be);var v=a.get(t);if(v)return v;a.set(t,c),ac(t)?t.forEach((function(e){c.add(ar(e,n,r,e,t,a))})):ec(t)&&t.forEach((function(e,i){c.set(i,ar(e,n,r,i,t,a))}));var k=f?e:(l?s?no:to:s?Nc:Oc)(t);return Mn(k||t,(function(e,i){k&&(e=t[i=e]),Je(c,i,ar(e,n,r,i,t,a))})),c}function cr(t,n,r){var i=r.length;if(null==t)return!i;for(t=zt(t);i--;){var o=r[i],a=t[o];if(a===e&&!(o in t)||!(0,n[o])(a))return!1}return!0}function ur(t,n,i){if("function"!=typeof t)throw new Dt(r);return jo((function(){t.apply(e,i)}),n)}function sr(t,n,e,r){var i=-1,o=jn,a=!0,c=t.length,u=[],s=n.length;if(!c)return u;e&&(n=On(n,Kn(e))),r?(o=Yn,a=!1):n.length>=200&&(o=Xn,a=!1,n=new Ve(n));t:for(;++i<c;){var l=t[i],f=null==e?l:e(l);if(l=r||0!==l?l:0,a&&f==f){for(var d=s;d--;)if(n[d]===f)continue t;u.push(l)}else o(n,f,r)||u.push(l)}return u}Ie.templateSettings={escape:q,evaluate:K,interpolate:Z,variable:"",imports:{_:Ie}},(Ie.prototype=He.prototype).constructor=Ie,(Fe.prototype=Le(He.prototype)).constructor=Fe,($e.prototype=Le(He.prototype)).constructor=$e,Ue.prototype.clear=function(){this.__data__=De?De(null):{},this.size=0},Ue.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},Ue.prototype.get=function(t){var n=this.__data__;if(De){var r=n[t];return r===i?e:r}return Nt.call(n,t)?n[t]:e},Ue.prototype.has=function(t){var n=this.__data__;return De?n[t]!==e:Nt.call(n,t)},Ue.prototype.set=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=De&&n===e?i:n,this},We.prototype.clear=function(){this.__data__=[],this.size=0},We.prototype.delete=function(t){var n=this.__data__,e=tr(n,t);return!(e<0||(e==n.length-1?n.pop():Vt.call(n,e,1),--this.size,0))},We.prototype.get=function(t){var n=this.__data__,r=tr(n,t);return r<0?e:n[r][1]},We.prototype.has=function(t){return tr(this.__data__,t)>-1},We.prototype.set=function(t,n){var e=this.__data__,r=tr(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},Ge.prototype.clear=function(){this.size=0,this.__data__={hash:new Ue,map:new(ke||We),string:new Ue}},Ge.prototype.delete=function(t){var n=ao(this,t).delete(t);return this.size-=n?1:0,n},Ge.prototype.get=function(t){return ao(this,t).get(t)},Ge.prototype.has=function(t){return ao(this,t).has(t)},Ge.prototype.set=function(t,n){var e=ao(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},Ve.prototype.add=Ve.prototype.push=function(t){return this.__data__.set(t,i),this},Ve.prototype.has=function(t){return this.__data__.has(t)},Be.prototype.clear=function(){this.__data__=new We,this.size=0},Be.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Be.prototype.get=function(t){return this.__data__.get(t)},Be.prototype.has=function(t){return this.__data__.has(t)},Be.prototype.set=function(t,n){var e=this.__data__;if(e instanceof We){var r=e.__data__;if(!ke||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new Ge(r)}return e.set(t,n),this.size=e.size,this};var lr=Yi(gr),fr=Yi(xr,!0);function dr(t,n){var e=!0;return lr(t,(function(t,r,i){return e=!!n(t,r,i)})),e}function hr(t,n,r){for(var i=-1,o=t.length;++i<o;){var a=t[i],c=n(a);if(null!=c&&(u===e?c==c&&!uc(c):r(c,u)))var u=c,s=a}return s}function br(t,n){var e=[];return lr(t,(function(t,r,i){n(t,r,i)&&e.push(t)})),e}function mr(t,n,e,r,i){var o=-1,a=t.length;for(e||(e=mo),i||(i=[]);++o<a;){var c=t[o];n>0&&e(c)?n>1?mr(c,n-1,e,r,i):Nn(i,c):r||(i[i.length]=c)}return i}var pr=Oi(),vr=Oi(!0);function gr(t,n){return t&&pr(t,n,Oc)}function xr(t,n){return t&&vr(t,n,Oc)}function wr(t,n){return Cn(n,(function(n){return Xa(t[n])}))}function yr(t,n){for(var r=0,i=(n=pi(n,t)).length;null!=t&&r<i;)t=t[Po(n[r++])];return r&&r==i?t:e}function _r(t,n,e){var r=n(t);return Wa(t)?r:Nn(r,e(t))}function kr(t){return null==t?t===e?"[object Undefined]":"[object Null]":Xt&&Xt in zt(t)?function(t){var n=Nt.call(t,Xt),r=t[Xt];try{t[Xt]=e;var i=!0}catch(t){}var o=At.call(t);return i&&(n?t[Xt]=r:delete t[Xt]),o}(t):function(t){return At.call(t)}(t)}function zr(t,n){return t>n}function Mr(t,n){return null!=t&&Nt.call(t,n)}function Sr(t,n){return null!=t&&n in zt(t)}function Dr(t,n,r){for(var i=r?Yn:jn,o=t[0].length,a=t.length,c=a,u=rt(a),s=1/0,l=[];c--;){var f=t[c];c&&n&&(f=On(f,Kn(n))),s=ve(f.length,s),u[c]=!r&&(n||o>=120&&f.length>=120)?new Ve(c&&f):e}f=t[0];var d=-1,h=u[0];t:for(;++d<o&&l.length<s;){var b=f[d],m=n?n(b):b;if(b=r||0!==b?b:0,!(h?Xn(h,m):i(l,m,r))){for(c=a;--c;){var p=u[c];if(!(p?Xn(p,m):i(t[c],m,r)))continue t}h&&h.push(m),l.push(b)}}return l}function Cr(t,n,r){var i=null==(t=Mo(t,n=pi(n,t)))?t:t[Po(Zo(n))];return null==i?e:kn(i,t,r)}function jr(t){return nc(t)&&kr(t)==h}function Yr(t,n,r,i,o){return t===n||(null==t||null==n||!nc(t)&&!nc(n)?t!=t&&n!=n:function(t,n,r,i,o,a){var c=Wa(t),u=Wa(n),s=c?b:fo(t),l=u?b:fo(n),f=(s=s==h?_:s)==_,d=(l=l==h?_:l)==_,g=s==l;if(g&&qa(t)){if(!qa(n))return!1;c=!0,f=!1}if(g&&!f)return a||(a=new Be),c||sc(t)?Qi(t,n,r,i,o,a):function(t,n,e,r,i,o,a){switch(e){case Y:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case j:return!(t.byteLength!=n.byteLength||!o(new Ft(t),new Ft(n)));case m:case p:case y:return Ha(+t,+n);case v:return t.name==n.name&&t.message==n.message;case z:case S:return t==n+"";case w:var c=oe;case M:if(c||(c=ue),t.size!=n.size&&!(1&r))return!1;var u=a.get(t);if(u)return u==n;r|=2,a.set(t,n);var s=Qi(c(t),c(n),r,i,o,a);return a.delete(t),s;case D:if(Re)return Re.call(t)==Re.call(n)}return!1}(t,n,s,r,i,o,a);if(!(1&r)){var x=f&&Nt.call(t,"__wrapped__"),k=d&&Nt.call(n,"__wrapped__");if(x||k){var C=x?t.value():t,O=k?n.value():n;return a||(a=new Be),o(C,O,r,i,a)}}return!!g&&(a||(a=new Be),function(t,n,r,i,o,a){var c=1&r,u=to(t),s=u.length;if(s!=to(n).length&&!c)return!1;for(var l=s;l--;){var f=u[l];if(!(c?f in n:Nt.call(n,f)))return!1}var d=a.get(t),h=a.get(n);if(d&&h)return d==n&&h==t;var b=!0;a.set(t,n),a.set(n,t);for(var m=c;++l<s;){var p=t[f=u[l]],v=n[f];if(i)var g=c?i(v,p,f,n,t,a):i(p,v,f,t,n,a);if(!(g===e?p===v||o(p,v,r,i,a):g)){b=!1;break}m||(m="constructor"==f)}if(b&&!m){var x=t.constructor,w=n.constructor;x==w||!("constructor"in t)||!("constructor"in n)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(b=!1)}return a.delete(t),a.delete(n),b}(t,n,r,i,o,a))}(t,n,r,i,Yr,o))}function Or(t,n,r,i){var o=r.length,a=o,c=!i;if(null==t)return!a;for(t=zt(t);o--;){var u=r[o];if(c&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<a;){var s=(u=r[o])[0],l=t[s],f=u[1];if(c&&u[2]){if(l===e&&!(s in t))return!1}else{var d=new Be;if(i)var h=i(l,f,s,t,n,d);if(!(h===e?Yr(f,l,3,i,d):h))return!1}}return!0}function Nr(t){return!(!tc(t)||(n=t,Tt&&Tt in n))&&(Xa(t)?It:bt).test(Io(t));var n}function Er(t){return"function"==typeof t?t:null==t?ru:"object"==typeof t?Wa(t)?Ir(t[0],t[1]):Pr(t):du(t)}function Tr(t){if(!yo(t))return me(t);var n=[];for(var e in zt(t))Nt.call(t,e)&&"constructor"!=e&&n.push(e);return n}function Ar(t,n){return t<n}function Rr(t,n){var e=-1,r=Va(t)?rt(t.length):[];return lr(t,(function(t,i,o){r[++e]=n(t,i,o)})),r}function Pr(t){var n=co(t);return 1==n.length&&n[0][2]?ko(n[0][0],n[0][1]):function(e){return e===t||Or(e,t,n)}}function Ir(t,n){return go(t)&&_o(n)?ko(Po(t),n):function(r){var i=Sc(r,t);return i===e&&i===n?Dc(r,t):Yr(n,i,3)}}function Lr(t,n,r,i,o){t!==n&&pr(n,(function(a,c){if(o||(o=new Be),tc(a))!function(t,n,r,i,o,a,c){var u=Do(t,r),s=Do(n,r),l=c.get(s);if(l)Qe(t,r,l);else{var f=a?a(u,s,r+"",t,n,c):e,d=f===e;if(d){var h=Wa(s),b=!h&&qa(s),m=!h&&!b&&sc(s);f=s,h||b||m?Wa(u)?f=u:Ba(u)?f=Si(u):b?(d=!1,f=wi(s,!0)):m?(d=!1,f=_i(s,!0)):f=[]:ic(s)||Ua(s)?(f=u,Ua(u)?f=vc(u):tc(u)&&!Xa(u)||(f=bo(s))):d=!1}d&&(c.set(s,f),o(f,s,i,a,c),c.delete(s)),Qe(t,r,f)}}(t,n,c,r,Lr,i,o);else{var u=i?i(Do(t,c),a,c+"",t,n,o):e;u===e&&(u=a),Qe(t,c,u)}}),Nc)}function Hr(t,n){var r=t.length;if(r)return po(n+=n<0?r:0,r)?t[n]:e}function Fr(t,n,e){n=n.length?On(n,(function(t){return Wa(t)?function(n){return yr(n,1===t.length?t[0]:t)}:t})):[ru];var r=-1;n=On(n,Kn(oo()));var i=Rr(t,(function(t){var e=On(n,(function(n){return n(t)}));return{criteria:e,index:++r,value:t}}));return function(t){var n=t.length;for(t.sort((function(t,n){return function(t,n,e){for(var r=-1,i=t.criteria,o=n.criteria,a=i.length,c=e.length;++r<a;){var u=ki(i[r],o[r]);if(u)return r>=c?u:u*("desc"==e[r]?-1:1)}return t.index-n.index}(t,n,e)}));n--;)t[n]=t[n].value;return t}(i)}function $r(t,n,e){for(var r=-1,i=n.length,o={};++r<i;){var a=n[r],c=yr(t,a);e(c,a)&&Zr(o,pi(a,t),c)}return o}function Ur(t,n,e,r){var i=r?Hn:Ln,o=-1,a=n.length,c=t;for(t===n&&(n=Si(n)),e&&(c=On(t,Kn(e)));++o<a;)for(var u=0,s=n[o],l=e?e(s):s;(u=i(c,l,u,r))>-1;)c!==t&&Vt.call(c,u,1),Vt.call(t,u,1);return t}function Wr(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==o){var o=i;po(i)?Vt.call(t,i,1):ui(t,i)}}return t}function Gr(t,n){return t+hn(we()*(n-t+1))}function Vr(t,n){var e="";if(!t||n<1||n>s)return e;do{n%2&&(e+=t),(n=hn(n/2))&&(t+=t)}while(n);return e}function Br(t,n){return Yo(zo(t,n,ru),t+"")}function qr(t){return Ke(Hc(t))}function Kr(t,n){var e=Hc(t);return Eo(e,or(n,0,e.length))}function Zr(t,n,r,i){if(!tc(t))return t;for(var o=-1,a=(n=pi(n,t)).length,c=a-1,u=t;null!=u&&++o<a;){var s=Po(n[o]),l=r;if("__proto__"===s||"constructor"===s||"prototype"===s)return t;if(o!=c){var f=u[s];(l=i?i(f,s,u):e)===e&&(l=tc(f)?f:po(n[o+1])?[]:{})}Je(u,s,l),u=u[s]}return t}var Xr=Ce?function(t,n){return Ce.set(t,n),t}:ru,Qr=Jt?function(t,n){return Jt(t,"toString",{configurable:!0,enumerable:!1,value:tu(n),writable:!0})}:ru;function Jr(t){return Eo(Hc(t))}function ti(t,n,e){var r=-1,i=t.length;n<0&&(n=-n>i?0:i+n),(e=e>i?i:e)<0&&(e+=i),i=n>e?0:e-n>>>0,n>>>=0;for(var o=rt(i);++r<i;)o[r]=t[r+n];return o}function ni(t,n){var e;return lr(t,(function(t,r,i){return!(e=n(t,r,i))})),!!e}function ei(t,n,e){var r=0,i=null==t?r:t.length;if("number"==typeof n&&n==n&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!uc(a)&&(e?a<=n:a<n)?r=o+1:i=o}return i}return ri(t,n,ru,e)}function ri(t,n,r,i){var o=0,a=null==t?0:t.length;if(0===a)return 0;for(var c=(n=r(n))!=n,u=null===n,s=uc(n),l=n===e;o<a;){var f=hn((o+a)/2),d=r(t[f]),h=d!==e,b=null===d,m=d==d,p=uc(d);if(c)var v=i||m;else v=l?m&&(i||h):u?m&&h&&(i||!b):s?m&&h&&!b&&(i||!p):!b&&!p&&(i?d<=n:d<n);v?o=f+1:a=f}return ve(a,4294967294)}function ii(t,n){for(var e=-1,r=t.length,i=0,o=[];++e<r;){var a=t[e],c=n?n(a):a;if(!e||!Ha(c,u)){var u=c;o[i++]=0===a?0:a}}return o}function oi(t){return"number"==typeof t?t:uc(t)?l:+t}function ai(t){if("string"==typeof t)return t;if(Wa(t))return On(t,ai)+"";if(uc(t))return Pe?Pe.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function ci(t,n,e){var r=-1,i=jn,o=t.length,a=!0,c=[],u=c;if(e)a=!1,i=Yn;else if(o>=200){var s=n?null:Vi(t);if(s)return ue(s);a=!1,i=Xn,u=new Ve}else u=n?[]:c;t:for(;++r<o;){var l=t[r],f=n?n(l):l;if(l=e||0!==l?l:0,a&&f==f){for(var d=u.length;d--;)if(u[d]===f)continue t;n&&u.push(f),c.push(l)}else i(u,f,e)||(u!==c&&u.push(f),c.push(l))}return c}function ui(t,n){return null==(t=Mo(t,n=pi(n,t)))||delete t[Po(Zo(n))]}function si(t,n,e,r){return Zr(t,n,e(yr(t,n)),r)}function li(t,n,e,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&n(t[o],o,t););return e?ti(t,r?0:o,r?o+1:i):ti(t,r?o+1:0,r?i:o)}function fi(t,n){var e=t;return e instanceof $e&&(e=e.value()),En(n,(function(t,n){return n.func.apply(n.thisArg,Nn([t],n.args))}),e)}function di(t,n,e){var r=t.length;if(r<2)return r?ci(t[0]):[];for(var i=-1,o=rt(r);++i<r;)for(var a=t[i],c=-1;++c<r;)c!=i&&(o[i]=sr(o[i]||a,t[c],n,e));return ci(mr(o,1),n,e)}function hi(t,n,r){for(var i=-1,o=t.length,a=n.length,c={};++i<o;)r(c,t[i],i<a?n[i]:e);return c}function bi(t){return Ba(t)?t:[]}function mi(t){return"function"==typeof t?t:ru}function pi(t,n){return Wa(t)?t:go(t,n)?[t]:Ro(gc(t))}var vi=Br;function gi(t,n,r){var i=t.length;return r=r===e?i:r,!n&&r>=i?t:ti(t,n,r)}var xi=an||function(t){return fn.clearTimeout(t)};function wi(t,n){if(n)return t.slice();var e=t.length,r=$t?$t(e):new t.constructor(e);return t.copy(r),r}function yi(t){var n=new t.constructor(t.byteLength);return new Ft(n).set(new Ft(t)),n}function _i(t,n){var e=n?yi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function ki(t,n){if(t!==n){var r=t!==e,i=null===t,o=t==t,a=uc(t),c=n!==e,u=null===n,s=n==n,l=uc(n);if(!u&&!l&&!a&&t>n||a&&c&&s&&!u&&!l||i&&c&&s||!r&&s||!o)return 1;if(!i&&!a&&!l&&t<n||l&&r&&o&&!i&&!a||u&&r&&o||!c&&o||!s)return-1}return 0}function zi(t,n,e,r){for(var i=-1,o=t.length,a=e.length,c=-1,u=n.length,s=pe(o-a,0),l=rt(u+s),f=!r;++c<u;)l[c]=n[c];for(;++i<a;)(f||i<o)&&(l[e[i]]=t[i]);for(;s--;)l[c++]=t[i++];return l}function Mi(t,n,e,r){for(var i=-1,o=t.length,a=-1,c=e.length,u=-1,s=n.length,l=pe(o-c,0),f=rt(l+s),d=!r;++i<l;)f[i]=t[i];for(var h=i;++u<s;)f[h+u]=n[u];for(;++a<c;)(d||i<o)&&(f[h+e[a]]=t[i++]);return f}function Si(t,n){var e=-1,r=t.length;for(n||(n=rt(r));++e<r;)n[e]=t[e];return n}function Di(t,n,r,i){var o=!r;r||(r={});for(var a=-1,c=n.length;++a<c;){var u=n[a],s=i?i(r[u],t[u],u,r,t):e;s===e&&(s=t[u]),o?rr(r,u,s):Je(r,u,s)}return r}function Ci(t,n){return function(e,r){var i=Wa(e)?zn:nr,o=n?n():{};return i(e,t,oo(r,2),o)}}function ji(t){return Br((function(n,r){var i=-1,o=r.length,a=o>1?r[o-1]:e,c=o>2?r[2]:e;for(a=t.length>3&&"function"==typeof a?(o--,a):e,c&&vo(r[0],r[1],c)&&(a=o<3?e:a,o=1),n=zt(n);++i<o;){var u=r[i];u&&t(n,u,i,a)}return n}))}function Yi(t,n){return function(e,r){if(null==e)return e;if(!Va(e))return t(e,r);for(var i=e.length,o=n?i:-1,a=zt(e);(n?o--:++o<i)&&!1!==r(a[o],o,a););return e}}function Oi(t){return function(n,e,r){for(var i=-1,o=zt(n),a=r(n),c=a.length;c--;){var u=a[t?c:++i];if(!1===e(o[u],u,o))break}return n}}function Ni(t){return function(n){var r=ie(n=gc(n))?fe(n):e,i=r?r[0]:n.charAt(0),o=r?gi(r,1).join(""):n.slice(1);return i[t]()+o}}function Ei(t){return function(n){return En(Xc(Uc(n).replace(Kt,"")),t,"")}}function Ti(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var e=Le(t.prototype),r=t.apply(e,n);return tc(r)?r:e}}function Ai(t){return function(n,r,i){var o=zt(n);if(!Va(n)){var a=oo(r,3);n=Oc(n),r=function(t){return a(o[t],t,o)}}var c=t(n,r,i);return c>-1?o[a?n[c]:c]:e}}function Ri(t){return Ji((function(n){var i=n.length,o=i,a=Fe.prototype.thru;for(t&&n.reverse();o--;){var c=n[o];if("function"!=typeof c)throw new Dt(r);if(a&&!u&&"wrapper"==ro(c))var u=new Fe([],!0)}for(o=u?o:i;++o<i;){var s=ro(c=n[o]),l="wrapper"==s?eo(c):e;u=l&&xo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[ro(l[0])].apply(u,l[3]):1==c.length&&xo(c)?u[s]():u.thru(c)}return function(){var t=arguments,e=t[0];if(u&&1==t.length&&Wa(e))return u.plant(e).value();for(var r=0,o=i?n[r].apply(this,t):e;++r<i;)o=n[r].call(this,o);return o}}))}function Pi(t,n,r,i,o,a,u,s,l,f){var d=n&c,h=1&n,b=2&n,m=24&n,p=512&n,v=b?e:Ti(t);return function e(){for(var c=arguments.length,g=rt(c),x=c;x--;)g[x]=arguments[x];if(m)var w=io(e),y=te(g,w);if(i&&(g=zi(g,i,o,m)),a&&(g=Mi(g,a,u,m)),c-=y,m&&c<f){var _=ce(g,w);return Wi(t,n,Pi,e.placeholder,r,g,_,s,l,f-c)}var k=h?r:this,z=b?k[t]:t;return c=g.length,s?g=So(g,s):p&&c>1&&g.reverse(),d&&l<c&&(g.length=l),this&&this!==fn&&this instanceof e&&(z=v||Ti(z)),z.apply(k,g)}}function Ii(t,n){return function(e,r){return function(t,n,e,r){return gr(t,(function(t,i,o){n(r,e(t),i,o)})),r}(e,t,n(r),{})}}function Li(t,n){return function(r,i){var o;if(r===e&&i===e)return n;if(r!==e&&(o=r),i!==e){if(o===e)return i;"string"==typeof r||"string"==typeof i?(r=ai(r),i=ai(i)):(r=oi(r),i=oi(i)),o=t(r,i)}return o}}function Hi(t){return Ji((function(n){return n=On(n,Kn(oo())),Br((function(e){var r=this;return t(n,(function(t){return kn(t,r,e)}))}))}))}function Fi(t,n){var r=(n=n===e?" ":ai(n)).length;if(r<2)return r?Vr(n,t):n;var i=Vr(n,dn(t/le(n)));return ie(n)?gi(fe(i),0,t).join(""):i.slice(0,t)}function $i(t){return function(n,r,i){return i&&"number"!=typeof i&&vo(n,r,i)&&(r=i=e),n=hc(n),r===e?(r=n,n=0):r=hc(r),function(t,n,e,r){for(var i=-1,o=pe(dn((n-t)/(e||1)),0),a=rt(o);o--;)a[r?o:++i]=t,t+=e;return a}(n,r,i=i===e?n<r?1:-1:hc(i),t)}}function Ui(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=pc(n),e=pc(e)),t(n,e)}}function Wi(t,n,r,i,o,c,u,s,l,f){var d=8&n;n|=d?a:64,4&(n&=~(d?64:a))||(n&=-4);var h=[t,n,o,d?c:e,d?u:e,d?e:c,d?e:u,s,l,f],b=r.apply(e,h);return xo(t)&&Co(b,h),b.placeholder=i,Oo(b,t,n)}function Gi(t){var n=kt[t];return function(t,e){if(t=pc(t),(e=null==e?0:ve(bc(e),292))&&Rn(t)){var r=(gc(t)+"e").split("e");return+((r=(gc(n(r[0]+"e"+(+r[1]+e)))+"e").split("e"))[0]+"e"+(+r[1]-e))}return n(t)}}var Vi=Me&&1/ue(new Me([,-0]))[1]==u?function(t){return new Me(t)}:uu;function Bi(t){return function(n){var e=fo(n);return e==w?oe(n):e==M?se(n):function(t,n){return On(n,(function(n){return[n,t[n]]}))}(n,t(n))}}function qi(t,n,i,u,s,l,f,d){var h=2&n;if(!h&&"function"!=typeof t)throw new Dt(r);var b=u?u.length:0;if(b||(n&=-97,u=s=e),f=f===e?f:pe(bc(f),0),d=d===e?d:bc(d),b-=s?s.length:0,64&n){var m=u,p=s;u=s=e}var v=h?e:eo(t),g=[t,n,i,u,s,m,p,l,f,d];if(v&&function(t,n){var e=t[1],r=n[1],i=e|r;if(!(i<131||(r==c&&8==e||r==c&&256==e&&t[7].length<=n[8]||384==r&&n[7].length<=n[8]&&8==e)))return t;1&r&&(t[2]=n[2],i|=1&e?0:4);var a=n[3];if(a){var u=t[3];t[3]=u?zi(u,a,n[4]):a,t[4]=u?ce(t[3],o):n[4]}(a=n[5])&&(t[5]=(u=t[5])?Mi(u,a,n[6]):a,t[6]=u?ce(t[5],o):n[6]),(a=n[7])&&(t[7]=a),r&c&&(t[8]=null==t[8]?n[8]:ve(t[8],n[8])),null==t[9]&&(t[9]=n[9]),t[0]=n[0],t[1]=i}(g,v),t=g[0],n=g[1],i=g[2],u=g[3],s=g[4],!(d=g[9]=g[9]===e?h?0:t.length:pe(g[9]-b,0))&&24&n&&(n&=-25),n&&1!=n)x=8==n||16==n?function(t,n,r){var i=Ti(t);return function o(){for(var a=arguments.length,c=rt(a),u=a,s=io(o);u--;)c[u]=arguments[u];var l=a<3&&c[0]!==s&&c[a-1]!==s?[]:ce(c,s);return(a-=l.length)<r?Wi(t,n,Pi,o.placeholder,e,c,l,e,e,r-a):kn(this&&this!==fn&&this instanceof o?i:t,this,c)}}(t,n,d):n!=a&&33!=n||s.length?Pi.apply(e,g):function(t,n,e,r){var i=1&n,o=Ti(t);return function n(){for(var a=-1,c=arguments.length,u=-1,s=r.length,l=rt(s+c),f=this&&this!==fn&&this instanceof n?o:t;++u<s;)l[u]=r[u];for(;c--;)l[u++]=arguments[++a];return kn(f,i?e:this,l)}}(t,n,i,u);else var x=function(t,n,e){var r=1&n,i=Ti(t);return function n(){return(this&&this!==fn&&this instanceof n?i:t).apply(r?e:this,arguments)}}(t,n,i);return Oo((v?Xr:Co)(x,g),t,n)}function Ki(t,n,r,i){return t===e||Ha(t,jt[r])&&!Nt.call(i,r)?n:t}function Zi(t,n,r,i,o,a){return tc(t)&&tc(n)&&(a.set(n,t),Lr(t,n,e,Zi,a),a.delete(n)),t}function Xi(t){return ic(t)?e:t}function Qi(t,n,r,i,o,a){var c=1&r,u=t.length,s=n.length;if(u!=s&&!(c&&s>u))return!1;var l=a.get(t),f=a.get(n);if(l&&f)return l==n&&f==t;var d=-1,h=!0,b=2&r?new Ve:e;for(a.set(t,n),a.set(n,t);++d<u;){var m=t[d],p=n[d];if(i)var v=c?i(p,m,d,n,t,a):i(m,p,d,t,n,a);if(v!==e){if(v)continue;h=!1;break}if(b){if(!An(n,(function(t,n){if(!Xn(b,n)&&(m===t||o(m,t,r,i,a)))return b.push(n)}))){h=!1;break}}else if(m!==p&&!o(m,p,r,i,a)){h=!1;break}}return a.delete(t),a.delete(n),h}function Ji(t){return Yo(zo(t,e,Go),t+"")}function to(t){return _r(t,Oc,so)}function no(t){return _r(t,Nc,lo)}var eo=Ce?function(t){return Ce.get(t)}:uu;function ro(t){for(var n=t.name+"",e=je[n],r=Nt.call(je,n)?e.length:0;r--;){var i=e[r],o=i.func;if(null==o||o==t)return i.name}return n}function io(t){return(Nt.call(Ie,"placeholder")?Ie:t).placeholder}function oo(){var t=Ie.iteratee||iu;return t=t===iu?Er:t,arguments.length?t(arguments[0],arguments[1]):t}function ao(t,n){var e,r,i=t.__data__;return("string"==(r=typeof(e=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?i["string"==typeof n?"string":"hash"]:i.map}function co(t){for(var n=Oc(t),e=n.length;e--;){var r=n[e],i=t[r];n[e]=[r,i,_o(i)]}return n}function uo(t,n){var r=function(t,n){return null==t?e:t[n]}(t,n);return Nr(r)?r:e}var so=mn?function(t){return null==t?[]:(t=zt(t),Cn(mn(t),(function(n){return Gt.call(t,n)})))}:mu,lo=mn?function(t){for(var n=[];t;)Nn(n,so(t)),t=Ut(t);return n}:mu,fo=kr;function ho(t,n,e){for(var r=-1,i=(n=pi(n,t)).length,o=!1;++r<i;){var a=Po(n[r]);if(!(o=null!=t&&e(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Ja(i)&&po(a,i)&&(Wa(t)||Ua(t))}function bo(t){return"function"!=typeof t.constructor||yo(t)?{}:Le(Ut(t))}function mo(t){return Wa(t)||Ua(t)||!!(Bt&&t&&t[Bt])}function po(t,n){var e=typeof t;return!!(n=null==n?s:n)&&("number"==e||"symbol"!=e&&pt.test(t))&&t>-1&&t%1==0&&t<n}function vo(t,n,e){if(!tc(e))return!1;var r=typeof n;return!!("number"==r?Va(e)&&po(n,e.length):"string"==r&&n in e)&&Ha(e[n],t)}function go(t,n){if(Wa(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!uc(t))||Q.test(t)||!X.test(t)||null!=n&&t in zt(n)}function xo(t){var n=ro(t),e=Ie[n];if("function"!=typeof e||!(n in $e.prototype))return!1;if(t===e)return!0;var r=eo(e);return!!r&&t===r[0]}(_e&&fo(new _e(new ArrayBuffer(1)))!=Y||ke&&fo(new ke)!=w||ze&&fo(ze.resolve())!=k||Me&&fo(new Me)!=M||Se&&fo(new Se)!=C)&&(fo=function(t){var n=kr(t),r=n==_?t.constructor:e,i=r?Io(r):"";if(i)switch(i){case Ye:return Y;case Oe:return w;case Ne:return k;case Ee:return M;case Te:return C}return n});var wo=Yt?Xa:pu;function yo(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||jt)}function _o(t){return t==t&&!tc(t)}function ko(t,n){return function(r){return null!=r&&r[t]===n&&(n!==e||t in zt(r))}}function zo(t,n,r){return n=pe(n===e?t.length-1:n,0),function(){for(var e=arguments,i=-1,o=pe(e.length-n,0),a=rt(o);++i<o;)a[i]=e[n+i];i=-1;for(var c=rt(n+1);++i<n;)c[i]=e[i];return c[n]=r(a),kn(t,this,c)}}function Mo(t,n){return n.length<2?t:yr(t,ti(n,0,-1))}function So(t,n){for(var r=t.length,i=ve(n.length,r),o=Si(t);i--;){var a=n[i];t[i]=po(a,r)?o[a]:e}return t}function Do(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}var Co=No(Xr),jo=ln||function(t,n){return fn.setTimeout(t,n)},Yo=No(Qr);function Oo(t,n,e){var r=n+"";return Yo(t,function(t,n){var e=n.length;if(!e)return t;var r=e-1;return n[r]=(e>1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(it,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return Mn(d,(function(e){var r="_."+e[0];n&e[1]&&!jn(t,r)&&t.push(r)})),t.sort()}(function(t){var n=t.match(ot);return n?n[1].split(at):[]}(r),e)))}function No(t){var n=0,r=0;return function(){var i=ge(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(e,arguments)}}function Eo(t,n){var r=-1,i=t.length,o=i-1;for(n=n===e?i:n;++r<n;){var a=Gr(r,o),c=t[a];t[a]=t[r],t[r]=c}return t.length=n,t}var To,Ao,Ro=(To=Ta((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(J,(function(t,e,r,i){n.push(r?i.replace(st,"$1"):e||t)})),n}),(function(t){return 500===Ao.size&&Ao.clear(),t})),Ao=To.cache,To);function Po(t){if("string"==typeof t||uc(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function Io(t){if(null!=t){try{return Ot.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Lo(t){if(t instanceof $e)return t.clone();var n=new Fe(t.__wrapped__,t.__chain__);return n.__actions__=Si(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}var Ho=Br((function(t,n){return Ba(t)?sr(t,mr(n,1,Ba,!0)):[]})),Fo=Br((function(t,n){var r=Zo(n);return Ba(r)&&(r=e),Ba(t)?sr(t,mr(n,1,Ba,!0),oo(r,2)):[]})),$o=Br((function(t,n){var r=Zo(n);return Ba(r)&&(r=e),Ba(t)?sr(t,mr(n,1,Ba,!0),e,r):[]}));function Uo(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:bc(e);return i<0&&(i=pe(r+i,0)),In(t,oo(n,3),i)}function Wo(t,n,r){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return r!==e&&(o=bc(r),o=r<0?pe(i+o,0):ve(o,i-1)),In(t,oo(n,3),o,!0)}function Go(t){return null!=t&&t.length?mr(t,1):[]}function Vo(t){return t&&t.length?t[0]:e}var Bo=Br((function(t){var n=On(t,bi);return n.length&&n[0]===t[0]?Dr(n):[]})),qo=Br((function(t){var n=Zo(t),r=On(t,bi);return n===Zo(r)?n=e:r.pop(),r.length&&r[0]===t[0]?Dr(r,oo(n,2)):[]})),Ko=Br((function(t){var n=Zo(t),r=On(t,bi);return(n="function"==typeof n?n:e)&&r.pop(),r.length&&r[0]===t[0]?Dr(r,e,n):[]}));function Zo(t){var n=null==t?0:t.length;return n?t[n-1]:e}var Xo=Br(Qo);function Qo(t,n){return t&&t.length&&n&&n.length?Ur(t,n):t}var Jo=Ji((function(t,n){var e=null==t?0:t.length,r=ir(t,n);return Wr(t,On(n,(function(t){return po(t,e)?+t:t})).sort(ki)),r}));function ta(t){return null==t?t:ye.call(t)}var na=Br((function(t){return ci(mr(t,1,Ba,!0))})),ea=Br((function(t){var n=Zo(t);return Ba(n)&&(n=e),ci(mr(t,1,Ba,!0),oo(n,2))})),ra=Br((function(t){var n=Zo(t);return n="function"==typeof n?n:e,ci(mr(t,1,Ba,!0),e,n)}));function ia(t){if(!t||!t.length)return[];var n=0;return t=Cn(t,(function(t){if(Ba(t))return n=pe(t.length,n),!0})),Bn(n,(function(n){return On(t,Un(n))}))}function oa(t,n){if(!t||!t.length)return[];var r=ia(t);return null==n?r:On(r,(function(t){return kn(n,e,t)}))}var aa=Br((function(t,n){return Ba(t)?sr(t,n):[]})),ca=Br((function(t){return di(Cn(t,Ba))})),ua=Br((function(t){var n=Zo(t);return Ba(n)&&(n=e),di(Cn(t,Ba),oo(n,2))})),sa=Br((function(t){var n=Zo(t);return n="function"==typeof n?n:e,di(Cn(t,Ba),e,n)})),la=Br(ia),fa=Br((function(t){var n=t.length,r=n>1?t[n-1]:e;return r="function"==typeof r?(t.pop(),r):e,oa(t,r)}));function da(t){var n=Ie(t);return n.__chain__=!0,n}function ha(t,n){return n(t)}var ba=Ji((function(t){var n=t.length,r=n?t[0]:0,i=this.__wrapped__,o=function(n){return ir(n,t)};return!(n>1||this.__actions__.length)&&i instanceof $e&&po(r)?((i=i.slice(r,+r+(n?1:0))).__actions__.push({func:ha,args:[o],thisArg:e}),new Fe(i,this.__chain__).thru((function(t){return n&&!t.length&&t.push(e),t}))):this.thru(o)})),ma=Ci((function(t,n,e){Nt.call(t,e)?++t[e]:rr(t,e,1)})),pa=Ai(Uo),va=Ai(Wo);function ga(t,n){return(Wa(t)?Mn:lr)(t,oo(n,3))}function xa(t,n){return(Wa(t)?Sn:fr)(t,oo(n,3))}var wa=Ci((function(t,n,e){Nt.call(t,e)?t[e].push(n):rr(t,e,[n])})),ya=Br((function(t,n,e){var r=-1,i="function"==typeof n,o=Va(t)?rt(t.length):[];return lr(t,(function(t){o[++r]=i?kn(n,t,e):Cr(t,n,e)})),o})),_a=Ci((function(t,n,e){rr(t,e,n)}));function ka(t,n){return(Wa(t)?On:Rr)(t,oo(n,3))}var za=Ci((function(t,n,e){t[e?0:1].push(n)}),(function(){return[[],[]]})),Ma=Br((function(t,n){if(null==t)return[];var e=n.length;return e>1&&vo(t,n[0],n[1])?n=[]:e>2&&vo(n[0],n[1],n[2])&&(n=[n[0]]),Fr(t,mr(n,1),[])})),Sa=sn||function(){return fn.Date.now()};function Da(t,n,r){return n=r?e:n,qi(t,c,e,e,e,e,n=t&&null==n?t.length:n)}function Ca(t,n){var i;if("function"!=typeof n)throw new Dt(r);return t=bc(t),function(){return--t>0&&(i=n.apply(this,arguments)),t<=1&&(n=e),i}}var ja=Br((function(t,n,e){var r=1;if(e.length){var i=ce(e,io(ja));r|=a}return qi(t,r,n,e,i)})),Ya=Br((function(t,n,e){var r=3;if(e.length){var i=ce(e,io(Ya));r|=a}return qi(n,r,t,e,i)}));function Oa(t,n,i){var o,a,c,u,s,l,f=0,d=!1,h=!1,b=!0;if("function"!=typeof t)throw new Dt(r);function m(n){var r=o,i=a;return o=a=e,f=n,u=t.apply(i,r)}function p(t){return f=t,s=jo(g,n),d?m(t):u}function v(t){var r=t-l;return l===e||r>=n||r<0||h&&t-f>=c}function g(){var t=Sa();if(v(t))return x(t);s=jo(g,function(t){var e=n-(t-l);return h?ve(e,c-(t-f)):e}(t))}function x(t){return s=e,b&&o?m(t):(o=a=e,u)}function w(){var t=Sa(),r=v(t);if(o=arguments,a=this,l=t,r){if(s===e)return p(l);if(h)return xi(s),s=jo(g,n),m(l)}return s===e&&(s=jo(g,n)),u}return n=pc(n)||0,tc(i)&&(d=!!i.leading,c=(h="maxWait"in i)?pe(pc(i.maxWait)||0,n):c,b="trailing"in i?!!i.trailing:b),w.cancel=function(){s!==e&&xi(s),f=0,o=l=a=s=e},w.flush=function(){return s===e?u:x(Sa())},w}var Na=Br((function(t,n){return ur(t,1,n)})),Ea=Br((function(t,n,e){return ur(t,pc(n)||0,e)}));function Ta(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new Dt(r);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return e.cache=o.set(i,a)||o,a};return e.cache=new(Ta.Cache||Ge),e}function Aa(t){if("function"!=typeof t)throw new Dt(r);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}Ta.Cache=Ge;var Ra=vi((function(t,n){var e=(n=1==n.length&&Wa(n[0])?On(n[0],Kn(oo())):On(mr(n,1),Kn(oo()))).length;return Br((function(r){for(var i=-1,o=ve(r.length,e);++i<o;)r[i]=n[i].call(this,r[i]);return kn(t,this,r)}))})),Pa=Br((function(t,n){var r=ce(n,io(Pa));return qi(t,a,e,n,r)})),Ia=Br((function(t,n){var r=ce(n,io(Ia));return qi(t,64,e,n,r)})),La=Ji((function(t,n){return qi(t,256,e,e,e,n)}));function Ha(t,n){return t===n||t!=t&&n!=n}var Fa=Ui(zr),$a=Ui((function(t,n){return t>=n})),Ua=jr(function(){return arguments}())?jr:function(t){return nc(t)&&Nt.call(t,"callee")&&!Gt.call(t,"callee")},Wa=rt.isArray,Ga=vn?Kn(vn):function(t){return nc(t)&&kr(t)==j};function Va(t){return null!=t&&Ja(t.length)&&!Xa(t)}function Ba(t){return nc(t)&&Va(t)}var qa=pn||pu,Ka=gn?Kn(gn):function(t){return nc(t)&&kr(t)==p};function Za(t){if(!nc(t))return!1;var n=kr(t);return n==v||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!ic(t)}function Xa(t){if(!tc(t))return!1;var n=kr(t);return n==g||n==x||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Qa(t){return"number"==typeof t&&t==bc(t)}function Ja(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}function tc(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function nc(t){return null!=t&&"object"==typeof t}var ec=xn?Kn(xn):function(t){return nc(t)&&fo(t)==w};function rc(t){return"number"==typeof t||nc(t)&&kr(t)==y}function ic(t){if(!nc(t)||kr(t)!=_)return!1;var n=Ut(t);if(null===n)return!0;var e=Nt.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Ot.call(e)==Rt}var oc=wn?Kn(wn):function(t){return nc(t)&&kr(t)==z},ac=yn?Kn(yn):function(t){return nc(t)&&fo(t)==M};function cc(t){return"string"==typeof t||!Wa(t)&&nc(t)&&kr(t)==S}function uc(t){return"symbol"==typeof t||nc(t)&&kr(t)==D}var sc=_n?Kn(_n):function(t){return nc(t)&&Ja(t.length)&&!!rn[kr(t)]},lc=Ui(Ar),fc=Ui((function(t,n){return t<=n}));function dc(t){if(!t)return[];if(Va(t))return cc(t)?fe(t):Si(t);if(qt&&t[qt])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[qt]());var n=fo(t);return(n==w?oe:n==M?ue:Hc)(t)}function hc(t){return t?(t=pc(t))===u||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function bc(t){var n=hc(t),e=n%1;return n==n?e?n-e:n:0}function mc(t){return t?or(bc(t),0,f):0}function pc(t){if("number"==typeof t)return t;if(uc(t))return l;if(tc(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=tc(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=qn(t);var e=ht.test(t);return e||mt.test(t)?un(t.slice(2),e?2:8):dt.test(t)?l:+t}function vc(t){return Di(t,Nc(t))}function gc(t){return null==t?"":ai(t)}var xc=ji((function(t,n){if(yo(n)||Va(n))Di(n,Oc(n),t);else for(var e in n)Nt.call(n,e)&&Je(t,e,n[e])})),wc=ji((function(t,n){Di(n,Nc(n),t)})),yc=ji((function(t,n,e,r){Di(n,Nc(n),t,r)})),_c=ji((function(t,n,e,r){Di(n,Oc(n),t,r)})),kc=Ji(ir),zc=Br((function(t,n){t=zt(t);var r=-1,i=n.length,o=i>2?n[2]:e;for(o&&vo(n[0],n[1],o)&&(i=1);++r<i;)for(var a=n[r],c=Nc(a),u=-1,s=c.length;++u<s;){var l=c[u],f=t[l];(f===e||Ha(f,jt[l])&&!Nt.call(t,l))&&(t[l]=a[l])}return t})),Mc=Br((function(t){return t.push(e,Zi),kn(Tc,e,t)}));function Sc(t,n,r){var i=null==t?e:yr(t,n);return i===e?r:i}function Dc(t,n){return null!=t&&ho(t,n,Sr)}var Cc=Ii((function(t,n,e){null!=n&&"function"!=typeof n.toString&&(n=At.call(n)),t[n]=e}),tu(ru)),jc=Ii((function(t,n,e){null!=n&&"function"!=typeof n.toString&&(n=At.call(n)),Nt.call(t,n)?t[n].push(e):t[n]=[e]}),oo),Yc=Br(Cr);function Oc(t){return Va(t)?qe(t):Tr(t)}function Nc(t){return Va(t)?qe(t,!0):function(t){if(!tc(t))return function(t){var n=[];if(null!=t)for(var e in zt(t))n.push(e);return n}(t);var n=yo(t),e=[];for(var r in t)("constructor"!=r||!n&&Nt.call(t,r))&&e.push(r);return e}(t)}var Ec=ji((function(t,n,e){Lr(t,n,e)})),Tc=ji((function(t,n,e,r){Lr(t,n,e,r)})),Ac=Ji((function(t,n){var e={};if(null==t)return e;var r=!1;n=On(n,(function(n){return n=pi(n,t),r||(r=n.length>1),n})),Di(t,no(t),e),r&&(e=ar(e,7,Xi));for(var i=n.length;i--;)ui(e,n[i]);return e})),Rc=Ji((function(t,n){return null==t?{}:function(t,n){return $r(t,n,(function(n,e){return Dc(t,e)}))}(t,n)}));function Pc(t,n){if(null==t)return{};var e=On(no(t),(function(t){return[t]}));return n=oo(n),$r(t,e,(function(t,e){return n(t,e[0])}))}var Ic=Bi(Oc),Lc=Bi(Nc);function Hc(t){return null==t?[]:Zn(t,Oc(t))}var Fc=Ei((function(t,n,e){return n=n.toLowerCase(),t+(e?$c(n):n)}));function $c(t){return Zc(gc(t).toLowerCase())}function Uc(t){return(t=gc(t))&&t.replace(vt,ne).replace(Zt,"")}var Wc=Ei((function(t,n,e){return t+(e?"-":"")+n.toLowerCase()})),Gc=Ei((function(t,n,e){return t+(e?" ":"")+n.toLowerCase()})),Vc=Ni("toLowerCase"),Bc=Ei((function(t,n,e){return t+(e?"_":"")+n.toLowerCase()})),qc=Ei((function(t,n,e){return t+(e?" ":"")+Zc(n)})),Kc=Ei((function(t,n,e){return t+(e?" ":"")+n.toUpperCase()})),Zc=Ni("toUpperCase");function Xc(t,n,r){return t=gc(t),(n=r?e:n)===e?function(t){return tn.test(t)}(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.match(ct)||[]}(t):t.match(n)||[]}var Qc=Br((function(t,n){try{return kn(t,e,n)}catch(t){return Za(t)?t:new yt(t)}})),Jc=Ji((function(t,n){return Mn(n,(function(n){n=Po(n),rr(t,n,ja(t[n],t))})),t}));function tu(t){return function(){return t}}var nu=Ri(),eu=Ri(!0);function ru(t){return t}function iu(t){return Er("function"==typeof t?t:ar(t,1))}var ou=Br((function(t,n){return function(e){return Cr(e,t,n)}})),au=Br((function(t,n){return function(e){return Cr(t,e,n)}}));function cu(t,n,e){var r=Oc(n),i=wr(n,r);null!=e||tc(n)&&(i.length||!r.length)||(e=n,n=t,t=this,i=wr(n,Oc(n)));var o=!(tc(e)&&"chain"in e&&!e.chain),a=Xa(t);return Mn(i,(function(e){var r=n[e];t[e]=r,a&&(t.prototype[e]=function(){var n=this.__chain__;if(o||n){var e=t(this.__wrapped__),i=e.__actions__=Si(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,Nn([this.value()],arguments))})})),t}function uu(){}var su=Hi(On),lu=Hi(Dn),fu=Hi(An);function du(t){return go(t)?Un(Po(t)):function(t){return function(n){return yr(n,t)}}(t)}var hu=$i(),bu=$i(!0);function mu(){return[]}function pu(){return!1}var vu,gu=Li((function(t,n){return t+n}),0),xu=Gi("ceil"),wu=Li((function(t,n){return t/n}),1),yu=Gi("floor"),_u=Li((function(t,n){return t*n}),1),ku=Gi("round"),zu=Li((function(t,n){return t-n}),0);return Ie.after=function(t,n){if("function"!=typeof n)throw new Dt(r);return t=bc(t),function(){if(--t<1)return n.apply(this,arguments)}},Ie.ary=Da,Ie.assign=xc,Ie.assignIn=wc,Ie.assignInWith=yc,Ie.assignWith=_c,Ie.at=kc,Ie.before=Ca,Ie.bind=ja,Ie.bindAll=Jc,Ie.bindKey=Ya,Ie.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Wa(t)?t:[t]},Ie.chain=da,Ie.chunk=function(t,n,r){n=(r?vo(t,n,r):n===e)?1:pe(bc(n),0);var i=null==t?0:t.length;if(!i||n<1)return[];for(var o=0,a=0,c=rt(dn(i/n));o<i;)c[a++]=ti(t,o,o+=n);return c},Ie.compact=function(t){for(var n=-1,e=null==t?0:t.length,r=0,i=[];++n<e;){var o=t[n];o&&(i[r++]=o)}return i},Ie.concat=function(){var t=arguments.length;if(!t)return[];for(var n=rt(t-1),e=arguments[0],r=t;r--;)n[r-1]=arguments[r];return Nn(Wa(e)?Si(e):[e],mr(n,1))},Ie.cond=function(t){var n=null==t?0:t.length,e=oo();return t=n?On(t,(function(t){if("function"!=typeof t[1])throw new Dt(r);return[e(t[0]),t[1]]})):[],Br((function(e){for(var r=-1;++r<n;){var i=t[r];if(kn(i[0],this,e))return kn(i[1],this,e)}}))},Ie.conforms=function(t){return function(t){var n=Oc(t);return function(e){return cr(e,t,n)}}(ar(t,1))},Ie.constant=tu,Ie.countBy=ma,Ie.create=function(t,n){var e=Le(t);return null==n?e:er(e,n)},Ie.curry=function t(n,r,i){var o=qi(n,8,e,e,e,e,e,r=i?e:r);return o.placeholder=t.placeholder,o},Ie.curryRight=function t(n,r,i){var o=qi(n,16,e,e,e,e,e,r=i?e:r);return o.placeholder=t.placeholder,o},Ie.debounce=Oa,Ie.defaults=zc,Ie.defaultsDeep=Mc,Ie.defer=Na,Ie.delay=Ea,Ie.difference=Ho,Ie.differenceBy=Fo,Ie.differenceWith=$o,Ie.drop=function(t,n,r){var i=null==t?0:t.length;return i?ti(t,(n=r||n===e?1:bc(n))<0?0:n,i):[]},Ie.dropRight=function(t,n,r){var i=null==t?0:t.length;return i?ti(t,0,(n=i-(n=r||n===e?1:bc(n)))<0?0:n):[]},Ie.dropRightWhile=function(t,n){return t&&t.length?li(t,oo(n,3),!0,!0):[]},Ie.dropWhile=function(t,n){return t&&t.length?li(t,oo(n,3),!0):[]},Ie.fill=function(t,n,r,i){var o=null==t?0:t.length;return o?(r&&"number"!=typeof r&&vo(t,n,r)&&(r=0,i=o),function(t,n,r,i){var o=t.length;for((r=bc(r))<0&&(r=-r>o?0:o+r),(i=i===e||i>o?o:bc(i))<0&&(i+=o),i=r>i?0:mc(i);r<i;)t[r++]=n;return t}(t,n,r,i)):[]},Ie.filter=function(t,n){return(Wa(t)?Cn:br)(t,oo(n,3))},Ie.flatMap=function(t,n){return mr(ka(t,n),1)},Ie.flatMapDeep=function(t,n){return mr(ka(t,n),u)},Ie.flatMapDepth=function(t,n,r){return r=r===e?1:bc(r),mr(ka(t,n),r)},Ie.flatten=Go,Ie.flattenDeep=function(t){return null!=t&&t.length?mr(t,u):[]},Ie.flattenDepth=function(t,n){return null!=t&&t.length?mr(t,n=n===e?1:bc(n)):[]},Ie.flip=function(t){return qi(t,512)},Ie.flow=nu,Ie.flowRight=eu,Ie.fromPairs=function(t){for(var n=-1,e=null==t?0:t.length,r={};++n<e;){var i=t[n];r[i[0]]=i[1]}return r},Ie.functions=function(t){return null==t?[]:wr(t,Oc(t))},Ie.functionsIn=function(t){return null==t?[]:wr(t,Nc(t))},Ie.groupBy=wa,Ie.initial=function(t){return null!=t&&t.length?ti(t,0,-1):[]},Ie.intersection=Bo,Ie.intersectionBy=qo,Ie.intersectionWith=Ko,Ie.invert=Cc,Ie.invertBy=jc,Ie.invokeMap=ya,Ie.iteratee=iu,Ie.keyBy=_a,Ie.keys=Oc,Ie.keysIn=Nc,Ie.map=ka,Ie.mapKeys=function(t,n){var e={};return n=oo(n,3),gr(t,(function(t,r,i){rr(e,n(t,r,i),t)})),e},Ie.mapValues=function(t,n){var e={};return n=oo(n,3),gr(t,(function(t,r,i){rr(e,r,n(t,r,i))})),e},Ie.matches=function(t){return Pr(ar(t,1))},Ie.matchesProperty=function(t,n){return Ir(t,ar(n,1))},Ie.memoize=Ta,Ie.merge=Ec,Ie.mergeWith=Tc,Ie.method=ou,Ie.methodOf=au,Ie.mixin=cu,Ie.negate=Aa,Ie.nthArg=function(t){return t=bc(t),Br((function(n){return Hr(n,t)}))},Ie.omit=Ac,Ie.omitBy=function(t,n){return Pc(t,Aa(oo(n)))},Ie.once=function(t){return Ca(2,t)},Ie.orderBy=function(t,n,r,i){return null==t?[]:(Wa(n)||(n=null==n?[]:[n]),Wa(r=i?e:r)||(r=null==r?[]:[r]),Fr(t,n,r))},Ie.over=su,Ie.overArgs=Ra,Ie.overEvery=lu,Ie.overSome=fu,Ie.partial=Pa,Ie.partialRight=Ia,Ie.partition=za,Ie.pick=Rc,Ie.pickBy=Pc,Ie.property=du,Ie.propertyOf=function(t){return function(n){return null==t?e:yr(t,n)}},Ie.pull=Xo,Ie.pullAll=Qo,Ie.pullAllBy=function(t,n,e){return t&&t.length&&n&&n.length?Ur(t,n,oo(e,2)):t},Ie.pullAllWith=function(t,n,r){return t&&t.length&&n&&n.length?Ur(t,n,e,r):t},Ie.pullAt=Jo,Ie.range=hu,Ie.rangeRight=bu,Ie.rearg=La,Ie.reject=function(t,n){return(Wa(t)?Cn:br)(t,Aa(oo(n,3)))},Ie.remove=function(t,n){var e=[];if(!t||!t.length)return e;var r=-1,i=[],o=t.length;for(n=oo(n,3);++r<o;){var a=t[r];n(a,r,t)&&(e.push(a),i.push(r))}return Wr(t,i),e},Ie.rest=function(t,n){if("function"!=typeof t)throw new Dt(r);return Br(t,n=n===e?n:bc(n))},Ie.reverse=ta,Ie.sampleSize=function(t,n,r){return n=(r?vo(t,n,r):n===e)?1:bc(n),(Wa(t)?Ze:Kr)(t,n)},Ie.set=function(t,n,e){return null==t?t:Zr(t,n,e)},Ie.setWith=function(t,n,r,i){return i="function"==typeof i?i:e,null==t?t:Zr(t,n,r,i)},Ie.shuffle=function(t){return(Wa(t)?Xe:Jr)(t)},Ie.slice=function(t,n,r){var i=null==t?0:t.length;return i?(r&&"number"!=typeof r&&vo(t,n,r)?(n=0,r=i):(n=null==n?0:bc(n),r=r===e?i:bc(r)),ti(t,n,r)):[]},Ie.sortBy=Ma,Ie.sortedUniq=function(t){return t&&t.length?ii(t):[]},Ie.sortedUniqBy=function(t,n){return t&&t.length?ii(t,oo(n,2)):[]},Ie.split=function(t,n,r){return r&&"number"!=typeof r&&vo(t,n,r)&&(n=r=e),(r=r===e?f:r>>>0)?(t=gc(t))&&("string"==typeof n||null!=n&&!oc(n))&&!(n=ai(n))&&ie(t)?gi(fe(t),0,r):t.split(n,r):[]},Ie.spread=function(t,n){if("function"!=typeof t)throw new Dt(r);return n=null==n?0:pe(bc(n),0),Br((function(e){var r=e[n],i=gi(e,0,n);return r&&Nn(i,r),kn(t,this,i)}))},Ie.tail=function(t){var n=null==t?0:t.length;return n?ti(t,1,n):[]},Ie.take=function(t,n,r){return t&&t.length?ti(t,0,(n=r||n===e?1:bc(n))<0?0:n):[]},Ie.takeRight=function(t,n,r){var i=null==t?0:t.length;return i?ti(t,(n=i-(n=r||n===e?1:bc(n)))<0?0:n,i):[]},Ie.takeRightWhile=function(t,n){return t&&t.length?li(t,oo(n,3),!1,!0):[]},Ie.takeWhile=function(t,n){return t&&t.length?li(t,oo(n,3)):[]},Ie.tap=function(t,n){return n(t),t},Ie.throttle=function(t,n,e){var i=!0,o=!0;if("function"!=typeof t)throw new Dt(r);return tc(e)&&(i="leading"in e?!!e.leading:i,o="trailing"in e?!!e.trailing:o),Oa(t,n,{leading:i,maxWait:n,trailing:o})},Ie.thru=ha,Ie.toArray=dc,Ie.toPairs=Ic,Ie.toPairsIn=Lc,Ie.toPath=function(t){return Wa(t)?On(t,Po):uc(t)?[t]:Si(Ro(gc(t)))},Ie.toPlainObject=vc,Ie.transform=function(t,n,e){var r=Wa(t),i=r||qa(t)||sc(t);if(n=oo(n,4),null==e){var o=t&&t.constructor;e=i?r?new o:[]:tc(t)&&Xa(o)?Le(Ut(t)):{}}return(i?Mn:gr)(t,(function(t,r,i){return n(e,t,r,i)})),e},Ie.unary=function(t){return Da(t,1)},Ie.union=na,Ie.unionBy=ea,Ie.unionWith=ra,Ie.uniq=function(t){return t&&t.length?ci(t):[]},Ie.uniqBy=function(t,n){return t&&t.length?ci(t,oo(n,2)):[]},Ie.uniqWith=function(t,n){return n="function"==typeof n?n:e,t&&t.length?ci(t,e,n):[]},Ie.unset=function(t,n){return null==t||ui(t,n)},Ie.unzip=ia,Ie.unzipWith=oa,Ie.update=function(t,n,e){return null==t?t:si(t,n,mi(e))},Ie.updateWith=function(t,n,r,i){return i="function"==typeof i?i:e,null==t?t:si(t,n,mi(r),i)},Ie.values=Hc,Ie.valuesIn=function(t){return null==t?[]:Zn(t,Nc(t))},Ie.without=aa,Ie.words=Xc,Ie.wrap=function(t,n){return Pa(mi(n),t)},Ie.xor=ca,Ie.xorBy=ua,Ie.xorWith=sa,Ie.zip=la,Ie.zipObject=function(t,n){return hi(t||[],n||[],Je)},Ie.zipObjectDeep=function(t,n){return hi(t||[],n||[],Zr)},Ie.zipWith=fa,Ie.entries=Ic,Ie.entriesIn=Lc,Ie.extend=wc,Ie.extendWith=yc,cu(Ie,Ie),Ie.add=gu,Ie.attempt=Qc,Ie.camelCase=Fc,Ie.capitalize=$c,Ie.ceil=xu,Ie.clamp=function(t,n,r){return r===e&&(r=n,n=e),r!==e&&(r=(r=pc(r))==r?r:0),n!==e&&(n=(n=pc(n))==n?n:0),or(pc(t),n,r)},Ie.clone=function(t){return ar(t,4)},Ie.cloneDeep=function(t){return ar(t,5)},Ie.cloneDeepWith=function(t,n){return ar(t,5,n="function"==typeof n?n:e)},Ie.cloneWith=function(t,n){return ar(t,4,n="function"==typeof n?n:e)},Ie.conformsTo=function(t,n){return null==n||cr(t,n,Oc(n))},Ie.deburr=Uc,Ie.defaultTo=function(t,n){return null==t||t!=t?n:t},Ie.divide=wu,Ie.endsWith=function(t,n,r){t=gc(t),n=ai(n);var i=t.length,o=r=r===e?i:or(bc(r),0,i);return(r-=n.length)>=0&&t.slice(r,o)==n},Ie.eq=Ha,Ie.escape=function(t){return(t=gc(t))&&B.test(t)?t.replace(G,ee):t},Ie.escapeRegExp=function(t){return(t=gc(t))&&nt.test(t)?t.replace(tt,"\\$&"):t},Ie.every=function(t,n,r){var i=Wa(t)?Dn:dr;return r&&vo(t,n,r)&&(n=e),i(t,oo(n,3))},Ie.find=pa,Ie.findIndex=Uo,Ie.findKey=function(t,n){return Pn(t,oo(n,3),gr)},Ie.findLast=va,Ie.findLastIndex=Wo,Ie.findLastKey=function(t,n){return Pn(t,oo(n,3),xr)},Ie.floor=yu,Ie.forEach=ga,Ie.forEachRight=xa,Ie.forIn=function(t,n){return null==t?t:pr(t,oo(n,3),Nc)},Ie.forInRight=function(t,n){return null==t?t:vr(t,oo(n,3),Nc)},Ie.forOwn=function(t,n){return t&&gr(t,oo(n,3))},Ie.forOwnRight=function(t,n){return t&&xr(t,oo(n,3))},Ie.get=Sc,Ie.gt=Fa,Ie.gte=$a,Ie.has=function(t,n){return null!=t&&ho(t,n,Mr)},Ie.hasIn=Dc,Ie.head=Vo,Ie.identity=ru,Ie.includes=function(t,n,e,r){t=Va(t)?t:Hc(t),e=e&&!r?bc(e):0;var i=t.length;return e<0&&(e=pe(i+e,0)),cc(t)?e<=i&&t.indexOf(n,e)>-1:!!i&&Ln(t,n,e)>-1},Ie.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:bc(e);return i<0&&(i=pe(r+i,0)),Ln(t,n,i)},Ie.inRange=function(t,n,r){return n=hc(n),r===e?(r=n,n=0):r=hc(r),function(t,n,e){return t>=ve(n,e)&&t<pe(n,e)}(t=pc(t),n,r)},Ie.invoke=Yc,Ie.isArguments=Ua,Ie.isArray=Wa,Ie.isArrayBuffer=Ga,Ie.isArrayLike=Va,Ie.isArrayLikeObject=Ba,Ie.isBoolean=function(t){return!0===t||!1===t||nc(t)&&kr(t)==m},Ie.isBuffer=qa,Ie.isDate=Ka,Ie.isElement=function(t){return nc(t)&&1===t.nodeType&&!ic(t)},Ie.isEmpty=function(t){if(null==t)return!0;if(Va(t)&&(Wa(t)||"string"==typeof t||"function"==typeof t.splice||qa(t)||sc(t)||Ua(t)))return!t.length;var n=fo(t);if(n==w||n==M)return!t.size;if(yo(t))return!Tr(t).length;for(var e in t)if(Nt.call(t,e))return!1;return!0},Ie.isEqual=function(t,n){return Yr(t,n)},Ie.isEqualWith=function(t,n,r){var i=(r="function"==typeof r?r:e)?r(t,n):e;return i===e?Yr(t,n,e,r):!!i},Ie.isError=Za,Ie.isFinite=function(t){return"number"==typeof t&&Rn(t)},Ie.isFunction=Xa,Ie.isInteger=Qa,Ie.isLength=Ja,Ie.isMap=ec,Ie.isMatch=function(t,n){return t===n||Or(t,n,co(n))},Ie.isMatchWith=function(t,n,r){return r="function"==typeof r?r:e,Or(t,n,co(n),r)},Ie.isNaN=function(t){return rc(t)&&t!=+t},Ie.isNative=function(t){if(wo(t))throw new yt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Nr(t)},Ie.isNil=function(t){return null==t},Ie.isNull=function(t){return null===t},Ie.isNumber=rc,Ie.isObject=tc,Ie.isObjectLike=nc,Ie.isPlainObject=ic,Ie.isRegExp=oc,Ie.isSafeInteger=function(t){return Qa(t)&&t>=-9007199254740991&&t<=s},Ie.isSet=ac,Ie.isString=cc,Ie.isSymbol=uc,Ie.isTypedArray=sc,Ie.isUndefined=function(t){return t===e},Ie.isWeakMap=function(t){return nc(t)&&fo(t)==C},Ie.isWeakSet=function(t){return nc(t)&&"[object WeakSet]"==kr(t)},Ie.join=function(t,n){return null==t?"":Wn.call(t,n)},Ie.kebabCase=Wc,Ie.last=Zo,Ie.lastIndexOf=function(t,n,r){var i=null==t?0:t.length;if(!i)return-1;var o=i;return r!==e&&(o=(o=bc(r))<0?pe(i+o,0):ve(o,i-1)),n==n?function(t,n,e){for(var r=e+1;r--;)if(t[r]===n)return r;return r}(t,n,o):In(t,Fn,o,!0)},Ie.lowerCase=Gc,Ie.lowerFirst=Vc,Ie.lt=lc,Ie.lte=fc,Ie.max=function(t){return t&&t.length?hr(t,ru,zr):e},Ie.maxBy=function(t,n){return t&&t.length?hr(t,oo(n,2),zr):e},Ie.mean=function(t){return $n(t,ru)},Ie.meanBy=function(t,n){return $n(t,oo(n,2))},Ie.min=function(t){return t&&t.length?hr(t,ru,Ar):e},Ie.minBy=function(t,n){return t&&t.length?hr(t,oo(n,2),Ar):e},Ie.stubArray=mu,Ie.stubFalse=pu,Ie.stubObject=function(){return{}},Ie.stubString=function(){return""},Ie.stubTrue=function(){return!0},Ie.multiply=_u,Ie.nth=function(t,n){return t&&t.length?Hr(t,bc(n)):e},Ie.noConflict=function(){return fn._===this&&(fn._=Pt),this},Ie.noop=uu,Ie.now=Sa,Ie.pad=function(t,n,e){t=gc(t);var r=(n=bc(n))?le(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return Fi(hn(i),e)+t+Fi(dn(i),e)},Ie.padEnd=function(t,n,e){t=gc(t);var r=(n=bc(n))?le(t):0;return n&&r<n?t+Fi(n-r,e):t},Ie.padStart=function(t,n,e){t=gc(t);var r=(n=bc(n))?le(t):0;return n&&r<n?Fi(n-r,e)+t:t},Ie.parseInt=function(t,n,e){return e||null==n?n=0:n&&(n=+n),xe(gc(t).replace(et,""),n||0)},Ie.random=function(t,n,r){if(r&&"boolean"!=typeof r&&vo(t,n,r)&&(n=r=e),r===e&&("boolean"==typeof n?(r=n,n=e):"boolean"==typeof t&&(r=t,t=e)),t===e&&n===e?(t=0,n=1):(t=hc(t),n===e?(n=t,t=0):n=hc(n)),t>n){var i=t;t=n,n=i}if(r||t%1||n%1){var o=we();return ve(t+o*(n-t+cn("1e-"+((o+"").length-1))),n)}return Gr(t,n)},Ie.reduce=function(t,n,e){var r=Wa(t)?En:Gn,i=arguments.length<3;return r(t,oo(n,4),e,i,lr)},Ie.reduceRight=function(t,n,e){var r=Wa(t)?Tn:Gn,i=arguments.length<3;return r(t,oo(n,4),e,i,fr)},Ie.repeat=function(t,n,r){return n=(r?vo(t,n,r):n===e)?1:bc(n),Vr(gc(t),n)},Ie.replace=function(){var t=arguments,n=gc(t[0]);return t.length<3?n:n.replace(t[1],t[2])},Ie.result=function(t,n,r){var i=-1,o=(n=pi(n,t)).length;for(o||(o=1,t=e);++i<o;){var a=null==t?e:t[Po(n[i])];a===e&&(i=o,a=r),t=Xa(a)?a.call(t):a}return t},Ie.round=ku,Ie.runInContext=t,Ie.sample=function(t){return(Wa(t)?Ke:qr)(t)},Ie.size=function(t){if(null==t)return 0;if(Va(t))return cc(t)?le(t):t.length;var n=fo(t);return n==w||n==M?t.size:Tr(t).length},Ie.snakeCase=Bc,Ie.some=function(t,n,r){var i=Wa(t)?An:ni;return r&&vo(t,n,r)&&(n=e),i(t,oo(n,3))},Ie.sortedIndex=function(t,n){return ei(t,n)},Ie.sortedIndexBy=function(t,n,e){return ri(t,n,oo(e,2))},Ie.sortedIndexOf=function(t,n){var e=null==t?0:t.length;if(e){var r=ei(t,n);if(r<e&&Ha(t[r],n))return r}return-1},Ie.sortedLastIndex=function(t,n){return ei(t,n,!0)},Ie.sortedLastIndexBy=function(t,n,e){return ri(t,n,oo(e,2),!0)},Ie.sortedLastIndexOf=function(t,n){if(null!=t&&t.length){var e=ei(t,n,!0)-1;if(Ha(t[e],n))return e}return-1},Ie.startCase=qc,Ie.startsWith=function(t,n,e){return t=gc(t),e=null==e?0:or(bc(e),0,t.length),n=ai(n),t.slice(e,e+n.length)==n},Ie.subtract=zu,Ie.sum=function(t){return t&&t.length?Vn(t,ru):0},Ie.sumBy=function(t,n){return t&&t.length?Vn(t,oo(n,2)):0},Ie.template=function(t,n,r){var i=Ie.templateSettings;r&&vo(t,n,r)&&(n=e),t=gc(t),n=yc({},n,i,Ki);var o,a,c=yc({},n.imports,i.imports,Ki),u=Oc(c),s=Zn(c,u),l=0,f=n.interpolate||gt,d="__p += '",h=Mt((n.escape||gt).source+"|"+f.source+"|"+(f===Z?lt:gt).source+"|"+(n.evaluate||gt).source+"|$","g"),b="//# sourceURL="+(Nt.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++en+"]")+"\n";t.replace(h,(function(n,e,r,i,c,u){return r||(r=i),d+=t.slice(l,u).replace(xt,re),e&&(o=!0,d+="' +\n__e("+e+") +\n'"),c&&(a=!0,d+="';\n"+c+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+n.length,n})),d+="';\n";var m=Nt.call(n,"variable")&&n.variable;if(m){if(ut.test(m))throw new yt("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(F,""):d).replace($,"$1").replace(U,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var p=Qc((function(){return _t(u,b+"return "+d).apply(e,s)}));if(p.source=d,Za(p))throw p;return p},Ie.times=function(t,n){if((t=bc(t))<1||t>s)return[];var e=f,r=ve(t,f);n=oo(n),t-=f;for(var i=Bn(r,n);++e<t;)n(e);return i},Ie.toFinite=hc,Ie.toInteger=bc,Ie.toLength=mc,Ie.toLower=function(t){return gc(t).toLowerCase()},Ie.toNumber=pc,Ie.toSafeInteger=function(t){return t?or(bc(t),-9007199254740991,s):0===t?t:0},Ie.toString=gc,Ie.toUpper=function(t){return gc(t).toUpperCase()},Ie.trim=function(t,n,r){if((t=gc(t))&&(r||n===e))return qn(t);if(!t||!(n=ai(n)))return t;var i=fe(t),o=fe(n);return gi(i,Qn(i,o),Jn(i,o)+1).join("")},Ie.trimEnd=function(t,n,r){if((t=gc(t))&&(r||n===e))return t.slice(0,de(t)+1);if(!t||!(n=ai(n)))return t;var i=fe(t);return gi(i,0,Jn(i,fe(n))+1).join("")},Ie.trimStart=function(t,n,r){if((t=gc(t))&&(r||n===e))return t.replace(et,"");if(!t||!(n=ai(n)))return t;var i=fe(t);return gi(i,Qn(i,fe(n))).join("")},Ie.truncate=function(t,n){var r=30,i="...";if(tc(n)){var o="separator"in n?n.separator:o;r="length"in n?bc(n.length):r,i="omission"in n?ai(n.omission):i}var a=(t=gc(t)).length;if(ie(t)){var c=fe(t);a=c.length}if(r>=a)return t;var u=r-le(i);if(u<1)return i;var s=c?gi(c,0,u).join(""):t.slice(0,u);if(o===e)return s+i;if(c&&(u+=s.length-u),oc(o)){if(t.slice(u).search(o)){var l,f=s;for(o.global||(o=Mt(o.source,gc(ft.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var d=l.index;s=s.slice(0,d===e?u:d)}}else if(t.indexOf(ai(o),u)!=u){var h=s.lastIndexOf(o);h>-1&&(s=s.slice(0,h))}return s+i},Ie.unescape=function(t){return(t=gc(t))&&V.test(t)?t.replace(W,he):t},Ie.uniqueId=function(t){var n=++Et;return gc(t)+n},Ie.upperCase=Kc,Ie.upperFirst=Zc,Ie.each=ga,Ie.eachRight=xa,Ie.first=Vo,cu(Ie,(vu={},gr(Ie,(function(t,n){Nt.call(Ie.prototype,n)||(vu[n]=t)})),vu),{chain:!1}),Ie.VERSION="4.17.21",Mn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Ie[t].placeholder=Ie})),Mn(["drop","take"],(function(t,n){$e.prototype[t]=function(r){r=r===e?1:pe(bc(r),0);var i=this.__filtered__&&!n?new $e(this):this.clone();return i.__filtered__?i.__takeCount__=ve(r,i.__takeCount__):i.__views__.push({size:ve(r,f),type:t+(i.__dir__<0?"Right":"")}),i},$e.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),Mn(["filter","map","takeWhile"],(function(t,n){var e=n+1,r=1==e||3==e;$e.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:oo(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}})),Mn(["head","last"],(function(t,n){var e="take"+(n?"Right":"");$e.prototype[t]=function(){return this[e](1).value()[0]}})),Mn(["initial","tail"],(function(t,n){var e="drop"+(n?"":"Right");$e.prototype[t]=function(){return this.__filtered__?new $e(this):this[e](1)}})),$e.prototype.compact=function(){return this.filter(ru)},$e.prototype.find=function(t){return this.filter(t).head()},$e.prototype.findLast=function(t){return this.reverse().find(t)},$e.prototype.invokeMap=Br((function(t,n){return"function"==typeof t?new $e(this):this.map((function(e){return Cr(e,t,n)}))})),$e.prototype.reject=function(t){return this.filter(Aa(oo(t)))},$e.prototype.slice=function(t,n){t=bc(t);var r=this;return r.__filtered__&&(t>0||n<0)?new $e(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),n!==e&&(r=(n=bc(n))<0?r.dropRight(-n):r.take(n-t)),r)},$e.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},$e.prototype.toArray=function(){return this.take(f)},gr($e.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),o=Ie[i?"take"+("last"==n?"Right":""):n],a=i||/^find/.test(n);o&&(Ie.prototype[n]=function(){var n=this.__wrapped__,c=i?[1]:arguments,u=n instanceof $e,s=c[0],l=u||Wa(n),f=function(t){var n=o.apply(Ie,Nn([t],c));return i&&d?n[0]:n};l&&r&&"function"==typeof s&&1!=s.length&&(u=l=!1);var d=this.__chain__,h=!!this.__actions__.length,b=a&&!d,m=u&&!h;if(!a&&l){n=m?n:new $e(this);var p=t.apply(n,c);return p.__actions__.push({func:ha,args:[f],thisArg:e}),new Fe(p,d)}return b&&m?t.apply(this,c):(p=this.thru(f),b?i?p.value()[0]:p.value():p)})})),Mn(["pop","push","shift","sort","splice","unshift"],(function(t){var n=Ct[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Ie.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return n.apply(Wa(i)?i:[],t)}return this[e]((function(e){return n.apply(Wa(e)?e:[],t)}))}})),gr($e.prototype,(function(t,n){var e=Ie[n];if(e){var r=e.name+"";Nt.call(je,r)||(je[r]=[]),je[r].push({name:n,func:e})}})),je[Pi(e,2).name]=[{name:"wrapper",func:e}],$e.prototype.clone=function(){var t=new $e(this.__wrapped__);return t.__actions__=Si(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Si(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Si(this.__views__),t},$e.prototype.reverse=function(){if(this.__filtered__){var t=new $e(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},$e.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=Wa(t),r=n<0,i=e?t.length:0,o=function(t,n,e){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":n-=a;break;case"take":n=ve(n,t+a);break;case"takeRight":t=pe(t,n-a)}}return{start:t,end:n}}(0,i,this.__views__),a=o.start,c=o.end,u=c-a,s=r?c:a-1,l=this.__iteratees__,f=l.length,d=0,h=ve(u,this.__takeCount__);if(!e||!r&&i==u&&h==u)return fi(t,this.__actions__);var b=[];t:for(;u--&&d<h;){for(var m=-1,p=t[s+=n];++m<f;){var v=l[m],g=v.type,x=(0,v.iteratee)(p);if(2==g)p=x;else if(!x){if(1==g)continue t;break t}}b[d++]=p}return b},Ie.prototype.at=ba,Ie.prototype.chain=function(){return da(this)},Ie.prototype.commit=function(){return new Fe(this.value(),this.__chain__)},Ie.prototype.next=function(){this.__values__===e&&(this.__values__=dc(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},Ie.prototype.plant=function(t){for(var n,r=this;r instanceof He;){var i=Lo(r);i.__index__=0,i.__values__=e,n?o.__wrapped__=i:n=i;var o=i;r=r.__wrapped__}return o.__wrapped__=t,n},Ie.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof $e){var n=t;return this.__actions__.length&&(n=new $e(this)),(n=n.reverse()).__actions__.push({func:ha,args:[ta],thisArg:e}),new Fe(n,this.__chain__)}return this.thru(ta)},Ie.prototype.toJSON=Ie.prototype.valueOf=Ie.prototype.value=function(){return fi(this.__wrapped__,this.__actions__)},Ie.prototype.first=Ie.prototype.head,qt&&(Ie.prototype[qt]=function(){return this}),Ie}();hn?((hn.exports=be)._=be,dn._=be):fn._=be}).call(E)}));const kt=class{constructor(t){n(this,t),this.bcmChange=e(this,"bcmChange",7),this.color="#3b82f6"}handleChange(t){this.bcmChange.emit(t)}componentDidRender(){const{color:t}=this;m.render(b.createElement(yt,{color:t,onChange:_t.debounce(this.handleChange.bind(this),150)}),this.el)}get el(){return i(this)}};kt.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-input{display:inline-flex;flex-direction:column;width:100%;max-width:256px;margin-bottom:8px}.bcm-input.full-width{max-width:100%}.bcm-input.hidden{display:none}.bcm-input__container{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;align-items:stretch;flex-direction:row;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%}.bcm-input__container.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-input__container.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-500)}.bcm-input__container.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.bcm-input__container.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.bcm-input__container:not(.disabled):hover .caret-container,.bcm-input__container:not(.disabled).focused .caret-container{opacity:1}.bcm-input__container:not(.disabled):hover .input-clear-button,.bcm-input__container:not(.disabled).focused .input-clear-button{opacity:1}.bcm-input__container:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.bcm-input__container:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.bcm-input__container.empty .input-clear-button{display:none}.bcm-input__container.invalid,.bcm-input__container.error{border-color:var(--bcm-new-ds-color-red-500)}.bcm-input__container .bcm-input-element{width:100%;color:var(--bcm-new-ds-color-slate-600);flex:1;border:none;background:transparent;box-shadow:unset;padding:0 4px;font-family:"Inter", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;text-overflow:ellipsis}.bcm-input__container .bcm-input-element::placeholder{font-family:"Inter", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.bcm-input__container .bcm-input-element::-webkit-search-decoration,.bcm-input__container .bcm-input-element::-webkit-search-cancel-button,.bcm-input__container .bcm-input-element::-webkit-search-results-button,.bcm-input__container .bcm-input-element::-webkit-search-results-decoration,.bcm-input__container .bcm-input-element::-webkit-calendar-picker-indicator,.bcm-input__container .bcm-input-element::-webkit-inner-spin-button,.bcm-input__container .bcm-input-element::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-input__container .caret-container{width:30px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;border-left:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box}.bcm-input__container .caret-container .bcm-input-caret{display:flex;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer;flex:1}.bcm-input__container .caret-container .bcm-input-caret bcm-icon{line-height:1}.bcm-input__container .caret-container .bcm-input-caret:hover{color:var(--bcm-color-prime-blue-6)}.bcm-input__container .caret-container .bcm-input-caret:active{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container .bcm-input-caret:last-child{border-top:1px solid #D9D9D9}.bcm-input__container .caret-container.disabled{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container.disabled .bcm-input-caret{cursor:not-allowed}.bcm-input__container .input-suffix-content{display:flex;align-items:center;justify-content:center}.bcm-input__container .input-prefix:not(:empty){padding-left:4px}.bcm-input__container .input-suffix:not(:empty){min-width:24px;padding-right:4px}.bcm-input__container .input-prefix:not(:empty),.bcm-input__container .input-suffix:not(:empty){display:flex;align-items:center;justify-content:center;cursor:default;color:#64748a}.bcm-input__container .input-prefix:not(:empty) .unit-prefix,.bcm-input__container .input-suffix:not(:empty) .unit-prefix{color:#64748a}.bcm-input__container .input-prefix-button:not(:empty),.bcm-input__container .input-suffix-button:not(:empty){cursor:pointer}.bcm-input__container .caret-container,.bcm-input__container .input-clear-button{opacity:0}.bcm-input__container--small{font-size:12px}.bcm-input__container--medium{font-size:14px}.bcm-input__container--large{font-size:16px}.bcm-input__textarea.clearable .bcm-input-element{padding-right:24px}.bcm-input__textarea .input-clear-button{position:absolute;top:4px;right:0}bcm-colorful{display:flex;flex-direction:column;width:256px;padding:8px;background-color:#fff;border-radius:4px}bcm-colorful .react-colorful{width:100%;gap:4px}bcm-colorful .react-colorful__saturation{margin:0 0 4px 0;border-radius:2px;border-bottom:none}bcm-colorful .react-colorful__hue,bcm-colorful .react-colorful__alpha{height:20px;border-radius:2px}bcm-colorful .react-colorful__hue-pointer,bcm-colorful .react-colorful__alpha-pointer{width:15px;height:15px}bcm-colorful .react-colorful__saturation-pointer{width:20px;height:20px}';const zt=new class{constructor(){}response(t,n){return Object.assign(Object.assign({valid:t},n&&{message:n}),!t&&{type:"error"})}required(t,n){let e=this.response(!0);return""!=t&&""!=t&&null!=t&&null!=t&&!1!==t||(e=this.response(!1,"This field is required.")),n&&(n.valid||(e=this.response(!1,n.errorText)),t instanceof Object&&t.isValid&&0==t.isValid&&(e=this.response(!1,"This field is required."))),e}selfValidation(t){let n=this.response(!0);return null==t.captionError&&"error"!=t.captionType||(n=this.response(!1,t.captionError)),n}};var Mt,St;function Dt(){return Mt.apply(null,arguments)}function Ct(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function jt(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function Yt(t){return void 0===t}function Ot(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function Nt(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function Et(t,n){var e,r=[];for(e=0;e<t.length;++e)r.push(n(t[e],e));return r}function Tt(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function At(t,n){for(var e in n)Tt(n,e)&&(t[e]=n[e]);return Tt(n,"toString")&&(t.toString=n.toString),Tt(n,"valueOf")&&(t.valueOf=n.valueOf),t}function Rt(t,n,e,r){return Be(t,n,e,r,!0).utc()}function Pt(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function It(t){if(null==t._isValid){var n=Pt(t),e=St.call(n.parsedDateParts,(function(t){return null!=t})),r=!isNaN(t._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&e);if(t._strict&&(r=r&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function Lt(t){var n=Rt(NaN);return null!=t?At(Pt(n),t):Pt(n).userInvalidated=!0,n}St=Array.prototype.some?Array.prototype.some:function(t){for(var n=Object(this),e=n.length>>>0,r=0;r<e;r++)if(r in n&&t.call(this,n[r],r,n))return!0;return!1};var Ht=Dt.momentProperties=[];function Ft(t,n){var e,r,i;if(Yt(n._isAMomentObject)||(t._isAMomentObject=n._isAMomentObject),Yt(n._i)||(t._i=n._i),Yt(n._f)||(t._f=n._f),Yt(n._l)||(t._l=n._l),Yt(n._strict)||(t._strict=n._strict),Yt(n._tzm)||(t._tzm=n._tzm),Yt(n._isUTC)||(t._isUTC=n._isUTC),Yt(n._offset)||(t._offset=n._offset),Yt(n._pf)||(t._pf=Pt(n)),Yt(n._locale)||(t._locale=n._locale),Ht.length>0)for(e=0;e<Ht.length;e++)Yt(i=n[r=Ht[e]])||(t[r]=i);return t}var $t=!1;function Ut(t){Ft(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===$t&&($t=!0,Dt.updateOffset(this),$t=!1)}function Wt(t){return t instanceof Ut||null!=t&&null!=t._isAMomentObject}function Gt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function Vt(t){var n=+t,e=0;return 0!==n&&isFinite(n)&&(e=Gt(n)),e}function Bt(t,n,e){var r,i=Math.min(t.length,n.length),o=Math.abs(t.length-n.length),a=0;for(r=0;r<i;r++)(e&&t[r]!==n[r]||!e&&Vt(t[r])!==Vt(n[r]))&&a++;return a+o}function qt(t){!1===Dt.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function Kt(t,n){var e=!0;return At((function(){if(null!=Dt.deprecationHandler&&Dt.deprecationHandler(null,t),e){for(var r,i=[],o=0;o<arguments.length;o++){if(r="","object"==typeof arguments[o]){for(var a in r+="\n["+o+"] ",arguments[0])r+=a+": "+arguments[0][a]+", ";r=r.slice(0,-2)}else r=arguments[o];i.push(r)}qt(t+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),e=!1}return n.apply(this,arguments)}),n)}var Zt,Xt={};function Qt(t,n){null!=Dt.deprecationHandler&&Dt.deprecationHandler(t,n),Xt[t]||(qt(n),Xt[t]=!0)}function Jt(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function tn(t,n){var e,r=At({},t);for(e in n)Tt(n,e)&&(jt(t[e])&&jt(n[e])?(r[e]={},At(r[e],t[e]),At(r[e],n[e])):null!=n[e]?r[e]=n[e]:delete r[e]);for(e in t)Tt(t,e)&&!Tt(n,e)&&jt(t[e])&&(r[e]=At({},r[e]));return r}function nn(t){null!=t&&this.set(t)}Dt.suppressDeprecationWarnings=!1,Dt.deprecationHandler=null,Zt=Object.keys?Object.keys:function(t){var n,e=[];for(n in t)Tt(t,n)&&e.push(n);return e};var en={};function rn(t,n){var e=t.toLowerCase();en[e]=en[e+"s"]=en[n]=t}function on(t){return"string"==typeof t?en[t]||en[t.toLowerCase()]:void 0}function an(t){var n,e,r={};for(e in t)Tt(t,e)&&(n=on(e))&&(r[n]=t[e]);return r}var cn={};function un(t,n){cn[t]=n}function sn(t,n,e){var r=""+Math.abs(t);return(t>=0?e?"+":"":"-")+Math.pow(10,Math.max(0,n-r.length)).toString().substr(1)+r}var ln=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,fn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,dn={},hn={};function bn(t,n,e,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(hn[t]=i),n&&(hn[n[0]]=function(){return sn(i.apply(this,arguments),n[1],n[2])}),e&&(hn[e]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function mn(t,n){return t.isValid()?(n=pn(n,t.localeData()),dn[n]=dn[n]||function(t){var n,e,r,i=t.match(ln);for(n=0,e=i.length;n<e;n++)i[n]=hn[i[n]]?hn[i[n]]:(r=i[n]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(n){var r,o="";for(r=0;r<e;r++)o+=Jt(i[r])?i[r].call(n,t):i[r];return o}}(n),dn[n](t)):t.localeData().invalidDate()}function pn(t,n){var e=5;function r(t){return n.longDateFormat(t)||t}for(fn.lastIndex=0;e>=0&&fn.test(t);)t=t.replace(fn,r),fn.lastIndex=0,e-=1;return t}var vn=/\d/,gn=/\d\d/,xn=/\d{3}/,wn=/\d{4}/,yn=/[+-]?\d{6}/,_n=/\d\d?/,kn=/\d\d\d\d?/,zn=/\d\d\d\d\d\d?/,Mn=/\d{1,3}/,Sn=/\d{1,4}/,Dn=/[+-]?\d{1,6}/,Cn=/\d+/,jn=/[+-]?\d+/,Yn=/Z|[+-]\d\d:?\d\d/gi,On=/Z|[+-]\d\d(?::?\d\d)?/gi,Nn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,En={};function Tn(t,n,e){En[t]=Jt(n)?n:function(t){return t&&e?e:n}}function An(t,n){return Tt(En,t)?En[t](n._strict,n._locale):new RegExp(function(t){return Rn(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,n,e,r,i){return n||e||r||i})))}(t))}function Rn(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Pn={};function In(t,n){var e,r=n;for("string"==typeof t&&(t=[t]),Ot(n)&&(r=function(t,e){e[n]=Vt(t)}),e=0;e<t.length;e++)Pn[t[e]]=r}function Ln(t,n){In(t,(function(t,e,r,i){r._w=r._w||{},n(t,r._w,r,i)}))}function Hn(t,n,e){null!=n&&Tt(Pn,t)&&Pn[t](n,e._a,e,t)}function Fn(t){return $n(t)?366:365}function $n(t){return t%4==0&&t%100!=0||t%400==0}bn("Y",0,0,(function(){var t=this.year();return t<=9999?""+t:"+"+t})),bn(0,["YY",2],0,(function(){return this.year()%100})),bn(0,["YYYY",4],0,"year"),bn(0,["YYYYY",5],0,"year"),bn(0,["YYYYYY",6,!0],0,"year"),rn("year","y"),un("year",1),Tn("Y",jn),Tn("YY",_n,gn),Tn("YYYY",Sn,wn),Tn("YYYYY",Dn,yn),Tn("YYYYYY",Dn,yn),In(["YYYYY","YYYYYY"],0),In("YYYY",(function(t,n){n[0]=2===t.length?Dt.parseTwoDigitYear(t):Vt(t)})),In("YY",(function(t,n){n[0]=Dt.parseTwoDigitYear(t)})),In("Y",(function(t,n){n[0]=parseInt(t,10)})),Dt.parseTwoDigitYear=function(t){return Vt(t)+(Vt(t)>68?1900:2e3)};var Un,Wn=Gn("FullYear",!0);function Gn(t,n){return function(e){return null!=e?(Bn(this,t,e),Dt.updateOffset(this,n),this):Vn(this,t)}}function Vn(t,n){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+n]():NaN}function Bn(t,n,e){t.isValid()&&!isNaN(e)&&("FullYear"===n&&$n(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+n](e,t.month(),qn(e,t.month())):t._d["set"+(t._isUTC?"UTC":"")+n](e))}function qn(t,n){if(isNaN(t)||isNaN(n))return NaN;var e=(n%12+12)%12;return t+=(n-e)/12,1===e?$n(t)?29:28:31-e%7%2}Un=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var n;for(n=0;n<this.length;++n)if(this[n]===t)return n;return-1},bn("M",["MM",2],"Mo",(function(){return this.month()+1})),bn("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),bn("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),rn("month","M"),un("month",8),Tn("M",_n),Tn("MM",_n,gn),Tn("MMM",(function(t,n){return n.monthsShortRegex(t)})),Tn("MMMM",(function(t,n){return n.monthsRegex(t)})),In(["M","MM"],(function(t,n){n[1]=Vt(t)-1})),In(["MMM","MMMM"],(function(t,n,e,r){var i=e._locale.monthsParse(t,r,e._strict);null!=i?n[1]=i:Pt(e).invalidMonth=t}));var Kn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Zn="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Xn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Qn(t,n,e){var r,i,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=Rt([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return e?"MMM"===n?-1!==(i=Un.call(this._shortMonthsParse,a))?i:null:-1!==(i=Un.call(this._longMonthsParse,a))?i:null:"MMM"===n?-1!==(i=Un.call(this._shortMonthsParse,a))||-1!==(i=Un.call(this._longMonthsParse,a))?i:null:-1!==(i=Un.call(this._longMonthsParse,a))||-1!==(i=Un.call(this._shortMonthsParse,a))?i:null}function Jn(t,n){var e;if(!t.isValid())return t;if("string"==typeof n)if(/^\d+$/.test(n))n=Vt(n);else if(!Ot(n=t.localeData().monthsParse(n)))return t;return e=Math.min(t.date(),qn(t.year(),n)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](n,e),t}function te(t){return null!=t?(Jn(this,t),Dt.updateOffset(this,!0),this):Vn(this,"Month")}var ne=Nn,ee=Nn;function re(){function t(t,n){return n.length-t.length}var n,e,r=[],i=[],o=[];for(n=0;n<12;n++)e=Rt([2e3,n]),r.push(this.monthsShort(e,"")),i.push(this.months(e,"")),o.push(this.months(e,"")),o.push(this.monthsShort(e,""));for(r.sort(t),i.sort(t),o.sort(t),n=0;n<12;n++)r[n]=Rn(r[n]),i[n]=Rn(i[n]);for(n=0;n<24;n++)o[n]=Rn(o[n]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ie(t,n,e,r,i,o,a){var c;return t<100&&t>=0?(c=new Date(t+400,n,e,r,i,o,a),isFinite(c.getFullYear())&&c.setFullYear(t)):c=new Date(t,n,e,r,i,o,a),c}function oe(t){var n;if(t<100&&t>=0){var e=Array.prototype.slice.call(arguments);e[0]=t+400,n=new Date(Date.UTC.apply(null,e)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(t)}else n=new Date(Date.UTC.apply(null,arguments));return n}function ae(t,n,e){var r=7+n-e;return-(7+oe(t,0,r).getUTCDay()-n)%7+r-1}function ce(t,n,e,r,i){var o,a,c=1+7*(n-1)+(7+e-r)%7+ae(t,r,i);return c<=0?a=Fn(o=t-1)+c:c>Fn(t)?(o=t+1,a=c-Fn(t)):(o=t,a=c),{year:o,dayOfYear:a}}function ue(t,n,e){var r,i,o=ae(t.year(),n,e),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?r=a+se(i=t.year()-1,n,e):a>se(t.year(),n,e)?(r=a-se(t.year(),n,e),i=t.year()+1):(i=t.year(),r=a),{week:r,year:i}}function se(t,n,e){var r=ae(t,n,e),i=ae(t+1,n,e);return(Fn(t)-r+i)/7}function le(t,n){return t.slice(n,7).concat(t.slice(0,n))}bn("w",["ww",2],"wo","week"),bn("W",["WW",2],"Wo","isoWeek"),rn("week","w"),rn("isoWeek","W"),un("week",5),un("isoWeek",5),Tn("w",_n),Tn("ww",_n,gn),Tn("W",_n),Tn("WW",_n,gn),Ln(["w","ww","W","WW"],(function(t,n,e,r){n[r.substr(0,1)]=Vt(t)})),bn("d",0,"do","day"),bn("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),bn("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),bn("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),bn("e",0,0,"weekday"),bn("E",0,0,"isoWeekday"),rn("day","d"),rn("weekday","e"),rn("isoWeekday","E"),un("day",11),un("weekday",11),un("isoWeekday",11),Tn("d",_n),Tn("e",_n),Tn("E",_n),Tn("dd",(function(t,n){return n.weekdaysMinRegex(t)})),Tn("ddd",(function(t,n){return n.weekdaysShortRegex(t)})),Tn("dddd",(function(t,n){return n.weekdaysRegex(t)})),Ln(["dd","ddd","dddd"],(function(t,n,e,r){var i=e._locale.weekdaysParse(t,r,e._strict);null!=i?n.d=i:Pt(e).invalidWeekday=t})),Ln(["d","e","E"],(function(t,n,e,r){n[r]=Vt(t)}));var fe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),de="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),he="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function be(t,n,e){var r,i,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=Rt([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return e?"dddd"===n?-1!==(i=Un.call(this._weekdaysParse,a))?i:null:"ddd"===n?-1!==(i=Un.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Un.call(this._minWeekdaysParse,a))?i:null:"dddd"===n?-1!==(i=Un.call(this._weekdaysParse,a))||-1!==(i=Un.call(this._shortWeekdaysParse,a))||-1!==(i=Un.call(this._minWeekdaysParse,a))?i:null:"ddd"===n?-1!==(i=Un.call(this._shortWeekdaysParse,a))||-1!==(i=Un.call(this._weekdaysParse,a))||-1!==(i=Un.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Un.call(this._minWeekdaysParse,a))||-1!==(i=Un.call(this._weekdaysParse,a))||-1!==(i=Un.call(this._shortWeekdaysParse,a))?i:null}var me=Nn,pe=Nn,ve=Nn;function ge(){function t(t,n){return n.length-t.length}var n,e,r,i,o,a=[],c=[],u=[],s=[];for(n=0;n<7;n++)e=Rt([2e3,1]).day(n),r=this.weekdaysMin(e,""),i=this.weekdaysShort(e,""),o=this.weekdays(e,""),a.push(r),c.push(i),u.push(o),s.push(r),s.push(i),s.push(o);for(a.sort(t),c.sort(t),u.sort(t),s.sort(t),n=0;n<7;n++)c[n]=Rn(c[n]),u[n]=Rn(u[n]),s[n]=Rn(s[n]);this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function xe(){return this.hours()%12||12}function we(t,n){bn(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)}))}function ye(t,n){return n._meridiemParse}bn("H",["HH",2],0,"hour"),bn("h",["hh",2],0,xe),bn("k",["kk",2],0,(function(){return this.hours()||24})),bn("hmm",0,0,(function(){return""+xe.apply(this)+sn(this.minutes(),2)})),bn("hmmss",0,0,(function(){return""+xe.apply(this)+sn(this.minutes(),2)+sn(this.seconds(),2)})),bn("Hmm",0,0,(function(){return""+this.hours()+sn(this.minutes(),2)})),bn("Hmmss",0,0,(function(){return""+this.hours()+sn(this.minutes(),2)+sn(this.seconds(),2)})),we("a",!0),we("A",!1),rn("hour","h"),un("hour",13),Tn("a",ye),Tn("A",ye),Tn("H",_n),Tn("h",_n),Tn("k",_n),Tn("HH",_n,gn),Tn("hh",_n,gn),Tn("kk",_n,gn),Tn("hmm",kn),Tn("hmmss",zn),Tn("Hmm",kn),Tn("Hmmss",zn),In(["H","HH"],3),In(["k","kk"],(function(t,n){var e=Vt(t);n[3]=24===e?0:e})),In(["a","A"],(function(t,n,e){e._isPm=e._locale.isPM(t),e._meridiem=t})),In(["h","hh"],(function(t,n,e){n[3]=Vt(t),Pt(e).bigHour=!0})),In("hmm",(function(t,n,e){var r=t.length-2;n[3]=Vt(t.substr(0,r)),n[4]=Vt(t.substr(r)),Pt(e).bigHour=!0})),In("hmmss",(function(t,n,e){var r=t.length-4,i=t.length-2;n[3]=Vt(t.substr(0,r)),n[4]=Vt(t.substr(r,2)),n[5]=Vt(t.substr(i)),Pt(e).bigHour=!0})),In("Hmm",(function(t,n){var e=t.length-2;n[3]=Vt(t.substr(0,e)),n[4]=Vt(t.substr(e))})),In("Hmmss",(function(t,n){var e=t.length-4,r=t.length-2;n[3]=Vt(t.substr(0,e)),n[4]=Vt(t.substr(e,2)),n[5]=Vt(t.substr(r))}));var _e,ke=Gn("Hours",!0),ze={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Zn,monthsShort:Xn,week:{dow:0,doy:6},weekdays:fe,weekdaysMin:he,weekdaysShort:de,meridiemParse:/[ap]\.?m?\.?/i},Me={},Se={};function De(t){return t?t.toLowerCase().replace("_","-"):t}function Ce(t){var n=null;if(!Me[t]&&"undefined"!=typeof module&&module&&module.exports)try{n=_e._abbr,require("./locale/"+t),je(n)}catch(t){}return Me[t]}function je(t,n){var e;return t&&((e=Yt(n)?Oe(t):Ye(t,n))?_e=e:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),_e._abbr}function Ye(t,n){if(null!==n){var e,r=ze;if(n.abbr=t,null!=Me[t])Qt("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Me[t]._config;else if(null!=n.parentLocale)if(null!=Me[n.parentLocale])r=Me[n.parentLocale]._config;else{if(null==(e=Ce(n.parentLocale)))return Se[n.parentLocale]||(Se[n.parentLocale]=[]),Se[n.parentLocale].push({name:t,config:n}),null;r=e._config}return Me[t]=new nn(tn(r,n)),Se[t]&&Se[t].forEach((function(t){Ye(t.name,t.config)})),je(t),Me[t]}return delete Me[t],null}function Oe(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return _e;if(!Ct(t)){if(n=Ce(t))return n;t=[t]}return function(t){for(var n,e,r,i,o=0;o<t.length;){for(n=(i=De(t[o]).split("-")).length,e=(e=De(t[o+1]))?e.split("-"):null;n>0;){if(r=Ce(i.slice(0,n).join("-")))return r;if(e&&e.length>=n&&Bt(i,e,!0)>=n-1)break;n--}o++}return _e}(t)}function Ne(t){var n,e=t._a;return e&&-2===Pt(t).overflow&&(n=e[1]<0||e[1]>11?1:e[2]<1||e[2]>qn(e[0],e[1])?2:e[3]<0||e[3]>24||24===e[3]&&(0!==e[4]||0!==e[5]||0!==e[6])?3:e[4]<0||e[4]>59?4:e[5]<0||e[5]>59?5:e[6]<0||e[6]>999?6:-1,Pt(t)._overflowDayOfYear&&(n<0||n>2)&&(n=2),Pt(t)._overflowWeeks&&-1===n&&(n=7),Pt(t)._overflowWeekday&&-1===n&&(n=8),Pt(t).overflow=n),t}function Ee(t,n,e){return null!=t?t:null!=n?n:e}function Te(t){var n,e,r,i,o,a=[];if(!t._d){for(r=function(t){var n=new Date(Dt.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var n,e,r,i,o,a,c,u;if(null!=(n=t._w).GG||null!=n.W||null!=n.E)o=1,a=4,e=Ee(n.GG,t._a[0],ue(qe(),1,4).year),r=Ee(n.W,1),((i=Ee(n.E,1))<1||i>7)&&(u=!0);else{o=t._locale._week.dow,a=t._locale._week.doy;var s=ue(qe(),o,a);e=Ee(n.gg,t._a[0],s.year),r=Ee(n.w,s.week),null!=n.d?((i=n.d)<0||i>6)&&(u=!0):null!=n.e?(i=n.e+o,(n.e<0||n.e>6)&&(u=!0)):i=o}r<1||r>se(e,o,a)?Pt(t)._overflowWeeks=!0:null!=u?Pt(t)._overflowWeekday=!0:(c=ce(e,r,i,o,a),t._a[0]=c.year,t._dayOfYear=c.dayOfYear)}(t),null!=t._dayOfYear&&(o=Ee(t._a[0],r[0]),(t._dayOfYear>Fn(o)||0===t._dayOfYear)&&(Pt(t)._overflowDayOfYear=!0),e=oe(o,0,t._dayOfYear),t._a[1]=e.getUTCMonth(),t._a[2]=e.getUTCDate()),n=0;n<3&&null==t._a[n];++n)t._a[n]=a[n]=r[n];for(;n<7;n++)t._a[n]=a[n]=null==t._a[n]?2===n?1:0:t._a[n];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?oe:ie).apply(null,a),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(Pt(t).weekdayMismatch=!0)}}var Ae=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Re=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Pe=/Z|[+-]\d\d(?::?\d\d)?/,Ie=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Le=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],He=/^\/?Date\((\-?\d+)/i;function Fe(t){var n,e,r,i,o,a,c=t._i,u=Ae.exec(c)||Re.exec(c);if(u){for(Pt(t).iso=!0,n=0,e=Ie.length;n<e;n++)if(Ie[n][1].exec(u[1])){i=Ie[n][0],r=!1!==Ie[n][2];break}if(null==i)return void(t._isValid=!1);if(u[3]){for(n=0,e=Le.length;n<e;n++)if(Le[n][1].exec(u[3])){o=(u[2]||" ")+Le[n][0];break}if(null==o)return void(t._isValid=!1)}if(!r&&null!=o)return void(t._isValid=!1);if(u[4]){if(!Pe.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=i+(o||"")+(a||""),Ge(t)}else t._isValid=!1}var $e=/^(?:(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{4}))$/;var Ue={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function We(t){var n,e,r,i,o,a,c,u,s=$e.exec(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(t._i));if(s){var l=(n=s[3],e=s[2],r=s[5],i=s[6],o=s[7],a=[(c=s[4],u=parseInt(c,10),u<=49?2e3+u:u<=999?1900+u:u),Xn.indexOf(n),parseInt(e,10),parseInt(r,10),parseInt(i,10)],o&&a.push(parseInt(o,10)),a);if(!function(t,n,e){return!t||de.indexOf(t)===new Date(n[0],n[1],n[2]).getDay()||(Pt(e).weekdayMismatch=!0,e._isValid=!1,!1)}(s[1],l,t))return;t._a=l,t._tzm=function(t,n,e){if(t)return Ue[t];if(n)return 0;var r=parseInt(e,10),i=r%100;return(r-i)/100*60+i}(s[8],s[9],s[10]),t._d=oe.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),Pt(t).rfc2822=!0}else t._isValid=!1}function Ge(t){if(t._f!==Dt.ISO_8601)if(t._f!==Dt.RFC_2822){t._a=[],Pt(t).empty=!0;var n,e,r,i,o,a=""+t._i,c=a.length,u=0;for(r=pn(t._f,t._locale).match(ln)||[],n=0;n<r.length;n++)(e=(a.match(An(i=r[n],t))||[])[0])&&((o=a.substr(0,a.indexOf(e))).length>0&&Pt(t).unusedInput.push(o),a=a.slice(a.indexOf(e)+e.length),u+=e.length),hn[i]?(e?Pt(t).empty=!1:Pt(t).unusedTokens.push(i),Hn(i,e,t)):t._strict&&!e&&Pt(t).unusedTokens.push(i);Pt(t).charsLeftOver=c-u,a.length>0&&Pt(t).unusedInput.push(a),t._a[3]<=12&&!0===Pt(t).bigHour&&t._a[3]>0&&(Pt(t).bigHour=void 0),Pt(t).parsedDateParts=t._a.slice(0),Pt(t).meridiem=t._meridiem,t._a[3]=function(t,n,e){var r;return null==e?n:null!=t.meridiemHour?t.meridiemHour(n,e):null!=t.isPM?((r=t.isPM(e))&&n<12&&(n+=12),r||12!==n||(n=0),n):n}(t._locale,t._a[3],t._meridiem),Te(t),Ne(t)}else We(t);else Fe(t)}function Ve(t){var n=t._i,e=t._f;return t._locale=t._locale||Oe(t._l),null===n||void 0===e&&""===n?Lt({nullInput:!0}):("string"==typeof n&&(t._i=n=t._locale.preparse(n)),Wt(n)?new Ut(Ne(n)):(Nt(n)?t._d=n:Ct(e)?function(t){var n,e,r,i,o;if(0===t._f.length)return Pt(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<t._f.length;i++)o=0,n=Ft({},t),null!=t._useUTC&&(n._useUTC=t._useUTC),n._f=t._f[i],Ge(n),It(n)&&(o+=Pt(n).charsLeftOver,o+=10*Pt(n).unusedTokens.length,Pt(n).score=o,(null==r||o<r)&&(r=o,e=n));At(t,e||n)}(t):e?Ge(t):function(t){var n=t._i;Yt(n)?t._d=new Date(Dt.now()):Nt(n)?t._d=new Date(n.valueOf()):"string"==typeof n?function(t){var n=He.exec(t._i);null===n?(Fe(t),!1===t._isValid&&(delete t._isValid,We(t),!1===t._isValid&&(delete t._isValid,Dt.createFromInputFallback(t)))):t._d=new Date(+n[1])}(t):Ct(n)?(t._a=Et(n.slice(0),(function(t){return parseInt(t,10)})),Te(t)):jt(n)?function(t){if(!t._d){var n=an(t._i);t._a=Et([n.year,n.month,n.day||n.date,n.hour,n.minute,n.second,n.millisecond],(function(t){return t&&parseInt(t,10)})),Te(t)}}(t):Ot(n)?t._d=new Date(n):Dt.createFromInputFallback(t)}(t),It(t)||(t._d=null),t))}function Be(t,n,e,r,i){var o,a={};return!0!==e&&!1!==e||(r=e,e=void 0),(jt(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var n;for(n in t)if(t.hasOwnProperty(n))return!1;return!0}(t)||Ct(t)&&0===t.length)&&(t=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=e,a._i=t,a._f=n,a._strict=r,(o=new Ut(Ne(Ve(a))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function qe(t,n,e,r){return Be(t,n,e,r,!1)}Dt.createFromInputFallback=Kt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),Dt.ISO_8601=function(){},Dt.RFC_2822=function(){};var Ke=Kt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=qe.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:Lt()})),Ze=Kt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=qe.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:Lt()}));function Xe(t,n){var e,r;if(1===n.length&&Ct(n[0])&&(n=n[0]),!n.length)return qe();for(e=n[0],r=1;r<n.length;++r)n[r].isValid()&&!n[r][t](e)||(e=n[r]);return e}var Qe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Je(t){var n=an(t),e=n.year||0,r=n.quarter||0,i=n.month||0,o=n.week||n.isoWeek||0,a=n.day||0,c=n.hour||0,u=n.minute||0,s=n.second||0,l=n.millisecond||0;this._isValid=function(t){for(var n in t)if(-1===Un.call(Qe,n)||null!=t[n]&&isNaN(t[n]))return!1;for(var e=!1,r=0;r<Qe.length;++r)if(t[Qe[r]]){if(e)return!1;parseFloat(t[Qe[r]])!==Vt(t[Qe[r]])&&(e=!0)}return!0}(n),this._milliseconds=+l+1e3*s+6e4*u+1e3*c*60*60,this._days=+a+7*o,this._months=+i+3*r+12*e,this._data={},this._locale=Oe(),this._bubble()}function tr(t){return t instanceof Je}function nr(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function er(t,n){bn(t,0,0,(function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+sn(~~(t/60),2)+n+sn(~~t%60,2)}))}er("Z",":"),er("ZZ",""),Tn("Z",On),Tn("ZZ",On),In(["Z","ZZ"],(function(t,n,e){e._useUTC=!0,e._tzm=ir(On,t)}));var rr=/([\+\-]|\d\d)/gi;function ir(t,n){var e=(n||"").match(t);if(null===e)return null;var r=((e[e.length-1]||[])+"").match(rr)||["-",0,0],i=60*r[1]+Vt(r[2]);return 0===i?0:"+"===r[0]?i:-i}function or(t,n){var e,r;return n._isUTC?(e=n.clone(),r=(Wt(t)||Nt(t)?t.valueOf():qe(t).valueOf())-e.valueOf(),e._d.setTime(e._d.valueOf()+r),Dt.updateOffset(e,!1),e):qe(t).local()}function ar(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function cr(){return!!this.isValid()&&this._isUTC&&0===this._offset}Dt.updateOffset=function(){};var ur=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,sr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function lr(t,n){var e,r,i,o,a,c,u=t,s=null;return tr(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:Ot(t)?(u={},n?u[n]=t:u.milliseconds=t):(s=ur.exec(t))?(e="-"===s[1]?-1:1,u={y:0,d:Vt(s[2])*e,h:Vt(s[3])*e,m:Vt(s[4])*e,s:Vt(s[5])*e,ms:Vt(nr(1e3*s[6]))*e}):(s=sr.exec(t))?u={y:fr(s[2],e="-"===s[1]?-1:1),M:fr(s[3],e),w:fr(s[4],e),d:fr(s[5],e),h:fr(s[6],e),m:fr(s[7],e),s:fr(s[8],e)}:null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(o=qe(u.from),a=qe(u.to),i=o.isValid()&&a.isValid()?(a=or(a,o),o.isBefore(a)?c=dr(o,a):((c=dr(a,o)).milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0},(u={}).ms=i.milliseconds,u.M=i.months),r=new Je(u),tr(t)&&Tt(t,"_locale")&&(r._locale=t._locale),r}function fr(t,n){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*n}function dr(t,n){var e={};return e.months=n.month()-t.month()+12*(n.year()-t.year()),t.clone().add(e.months,"M").isAfter(n)&&--e.months,e.milliseconds=+n-+t.clone().add(e.months,"M"),e}function hr(t,n){return function(e,r){var i;return null===r||isNaN(+r)||(Qt(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=e,e=r,r=i),br(this,lr(e="string"==typeof e?+e:e,r),t),this}}function br(t,n,e,r){var i=n._milliseconds,o=nr(n._days),a=nr(n._months);t.isValid()&&(r=null==r||r,a&&Jn(t,Vn(t,"Month")+a*e),o&&Bn(t,"Date",Vn(t,"Date")+o*e),i&&t._d.setTime(t._d.valueOf()+i*e),r&&Dt.updateOffset(t,o||a))}lr.fn=Je.prototype,lr.invalid=function(){return lr(NaN)};var mr=hr(1,"add"),pr=hr(-1,"subtract");function vr(t,n){var e=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(e,"months");return-(e+(n-r<0?(n-r)/(r-t.clone().add(e-1,"months")):(n-r)/(t.clone().add(e+1,"months")-r)))||0}function gr(t){var n;return void 0===t?this._locale._abbr:(null!=(n=Oe(t))&&(this._locale=n),this)}Dt.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",Dt.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var xr=Kt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function wr(){return this._locale}var yr=1e3,_r=6e4,kr=36e5,zr=126227808e5;function Mr(t,n){return(t%n+n)%n}function Sr(t,n,e){return t<100&&t>=0?new Date(t+400,n,e)-zr:new Date(t,n,e).valueOf()}function Dr(t,n,e){return t<100&&t>=0?Date.UTC(t+400,n,e)-zr:Date.UTC(t,n,e)}function Cr(t,n){bn(0,[t,t.length],0,n)}function jr(t,n,e,r,i){var o;return null==t?ue(this,r,i).year:(n>(o=se(t,r,i))&&(n=o),Yr.call(this,t,n,e,r,i))}function Yr(t,n,e,r,i){var o=ce(t,n,e,r,i),a=oe(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}bn(0,["gg",2],0,(function(){return this.weekYear()%100})),bn(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Cr("gggg","weekYear"),Cr("ggggg","weekYear"),Cr("GGGG","isoWeekYear"),Cr("GGGGG","isoWeekYear"),rn("weekYear","gg"),rn("isoWeekYear","GG"),un("weekYear",1),un("isoWeekYear",1),Tn("G",jn),Tn("g",jn),Tn("GG",_n,gn),Tn("gg",_n,gn),Tn("GGGG",Sn,wn),Tn("gggg",Sn,wn),Tn("GGGGG",Dn,yn),Tn("ggggg",Dn,yn),Ln(["gggg","ggggg","GGGG","GGGGG"],(function(t,n,e,r){n[r.substr(0,2)]=Vt(t)})),Ln(["gg","GG"],(function(t,n,e,r){n[r]=Dt.parseTwoDigitYear(t)})),bn("Q",0,"Qo","quarter"),rn("quarter","Q"),un("quarter",7),Tn("Q",vn),In("Q",(function(t,n){n[1]=3*(Vt(t)-1)})),bn("D",["DD",2],"Do","date"),rn("date","D"),un("date",9),Tn("D",_n),Tn("DD",_n,gn),Tn("Do",(function(t,n){return t?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient})),In(["D","DD"],2),In("Do",(function(t,n){n[2]=Vt(t.match(_n)[0])}));var Or=Gn("Date",!0);bn("DDD",["DDDD",3],"DDDo","dayOfYear"),rn("dayOfYear","DDD"),un("dayOfYear",4),Tn("DDD",Mn),Tn("DDDD",xn),In(["DDD","DDDD"],(function(t,n,e){e._dayOfYear=Vt(t)})),bn("m",["mm",2],0,"minute"),rn("minute","m"),un("minute",14),Tn("m",_n),Tn("mm",_n,gn),In(["m","mm"],4);var Nr=Gn("Minutes",!1);bn("s",["ss",2],0,"second"),rn("second","s"),un("second",15),Tn("s",_n),Tn("ss",_n,gn),In(["s","ss"],5);var Er,Tr=Gn("Seconds",!1);for(bn("S",0,0,(function(){return~~(this.millisecond()/100)})),bn(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),bn(0,["SSS",3],0,"millisecond"),bn(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),bn(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),bn(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),bn(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),bn(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),bn(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),rn("millisecond","ms"),un("millisecond",16),Tn("S",Mn,vn),Tn("SS",Mn,gn),Tn("SSS",Mn,xn),Er="SSSS";Er.length<=9;Er+="S")Tn(Er,Cn);function Ar(t,n){n[6]=Vt(1e3*("0."+t))}for(Er="S";Er.length<=9;Er+="S")In(Er,Ar);var Rr=Gn("Milliseconds",!1);bn("z",0,0,"zoneAbbr"),bn("zz",0,0,"zoneName");var Pr=Ut.prototype;function Ir(t){return t}Pr.add=mr,Pr.calendar=function(t,n){var e=t||qe(),r=or(e,this).startOf("day"),i=Dt.calendarFormat(this,r)||"sameElse",o=n&&(Jt(n[i])?n[i].call(this,e):n[i]);return this.format(o||this.localeData().calendar(i,this,qe(e)))},Pr.clone=function(){return new Ut(this)},Pr.diff=function(t,n,e){var r,i,o;if(!this.isValid())return NaN;if(!(r=or(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),n=on(n)){case"year":o=vr(this,r)/12;break;case"month":o=vr(this,r);break;case"quarter":o=vr(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return e?o:Gt(o)},Pr.endOf=function(t){var n;if(void 0===(t=on(t))||"millisecond"===t||!this.isValid())return this;var e=this._isUTC?Dr:Sr;switch(t){case"year":n=e(this.year()+1,0,1)-1;break;case"quarter":n=e(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=e(this.year(),this.month()+1,1)-1;break;case"week":n=e(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=e(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=kr-Mr(n+(this._isUTC?0:this.utcOffset()*_r),kr)-1;break;case"minute":n=this._d.valueOf(),n+=_r-Mr(n,_r)-1;break;case"second":n=this._d.valueOf(),n+=yr-Mr(n,yr)-1}return this._d.setTime(n),Dt.updateOffset(this,!0),this},Pr.format=function(t){t||(t=this.isUtc()?Dt.defaultFormatUtc:Dt.defaultFormat);var n=mn(this,t);return this.localeData().postformat(n)},Pr.from=function(t,n){return this.isValid()&&(Wt(t)&&t.isValid()||qe(t).isValid())?lr({to:this,from:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},Pr.fromNow=function(t){return this.from(qe(),t)},Pr.to=function(t,n){return this.isValid()&&(Wt(t)&&t.isValid()||qe(t).isValid())?lr({from:this,to:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},Pr.toNow=function(t){return this.to(qe(),t)},Pr.get=function(t){return Jt(this[t=on(t)])?this[t]():this},Pr.invalidAt=function(){return Pt(this).overflow},Pr.isAfter=function(t,n){var e=Wt(t)?t:qe(t);return!(!this.isValid()||!e.isValid())&&("millisecond"===(n=on(n)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(n).valueOf())},Pr.isBefore=function(t,n){var e=Wt(t)?t:qe(t);return!(!this.isValid()||!e.isValid())&&("millisecond"===(n=on(n)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(n).valueOf()<e.valueOf())},Pr.isBetween=function(t,n,e,r){var i=Wt(t)?t:qe(t),o=Wt(n)?n:qe(n);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,e):!this.isBefore(i,e))&&(")"===r[1]?this.isBefore(o,e):!this.isAfter(o,e))},Pr.isSame=function(t,n){var e,r=Wt(t)?t:qe(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(n=on(n)||"millisecond")?this.valueOf()===r.valueOf():(e=r.valueOf(),this.clone().startOf(n).valueOf()<=e&&e<=this.clone().endOf(n).valueOf()))},Pr.isSameOrAfter=function(t,n){return this.isSame(t,n)||this.isAfter(t,n)},Pr.isSameOrBefore=function(t,n){return this.isSame(t,n)||this.isBefore(t,n)},Pr.isValid=function(){return It(this)},Pr.lang=xr,Pr.locale=gr,Pr.localeData=wr,Pr.max=Ze,Pr.min=Ke,Pr.parsingFlags=function(){return At({},Pt(this))},Pr.set=function(t,n){if("object"==typeof t)for(var e=function(t){var n=[];for(var e in t)n.push({unit:e,priority:cn[e]});return n.sort((function(t,n){return t.priority-n.priority})),n}(t=an(t)),r=0;r<e.length;r++)this[e[r].unit](t[e[r].unit]);else if(Jt(this[t=on(t)]))return this[t](n);return this},Pr.startOf=function(t){var n;if(void 0===(t=on(t))||"millisecond"===t||!this.isValid())return this;var e=this._isUTC?Dr:Sr;switch(t){case"year":n=e(this.year(),0,1);break;case"quarter":n=e(this.year(),this.month()-this.month()%3,1);break;case"month":n=e(this.year(),this.month(),1);break;case"week":n=e(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=e(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=Mr(n+(this._isUTC?0:this.utcOffset()*_r),kr);break;case"minute":n=this._d.valueOf(),n-=Mr(n,_r);break;case"second":n=this._d.valueOf(),n-=Mr(n,yr)}return this._d.setTime(n),Dt.updateOffset(this,!0),this},Pr.subtract=pr,Pr.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Pr.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Pr.toDate=function(){return new Date(this.valueOf())},Pr.toISOString=function(t){if(!this.isValid())return null;var n=!0!==t,e=n?this.clone().utc():this;return e.year()<0||e.year()>9999?mn(e,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Jt(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",mn(e,"Z")):mn(e,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Pr.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",n="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z");var e="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(e+r+"-MM-DD[T]HH:mm:ss.SSS"+n+'[")]')},Pr.toJSON=function(){return this.isValid()?this.toISOString():null},Pr.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Pr.unix=function(){return Math.floor(this.valueOf()/1e3)},Pr.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Pr.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Pr.year=Wn,Pr.isLeapYear=function(){return $n(this.year())},Pr.weekYear=function(t){return jr.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Pr.isoWeekYear=function(t){return jr.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Pr.quarter=Pr.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Pr.month=te,Pr.daysInMonth=function(){return qn(this.year(),this.month())},Pr.week=Pr.weeks=function(t){var n=this.localeData().week(this);return null==t?n:this.add(7*(t-n),"d")},Pr.isoWeek=Pr.isoWeeks=function(t){var n=ue(this,1,4).week;return null==t?n:this.add(7*(t-n),"d")},Pr.weeksInYear=function(){var t=this.localeData()._week;return se(this.year(),t.dow,t.doy)},Pr.isoWeeksInYear=function(){return se(this.year(),1,4)},Pr.date=Or,Pr.day=Pr.days=function(t){if(!this.isValid())return null!=t?this:NaN;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,n){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-n,"d")):n},Pr.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return null==t?n:this.add(t-n,"d")},Pr.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var n=function(t,n){return"string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?n:n-7)}return this.day()||7},Pr.dayOfYear=function(t){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?n:this.add(t-n,"d")},Pr.hour=Pr.hours=ke,Pr.minute=Pr.minutes=Nr,Pr.second=Pr.seconds=Tr,Pr.millisecond=Pr.milliseconds=Rr,Pr.utcOffset=function(t,n,e){var r,i=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=ir(On,t)))return this}else Math.abs(t)<16&&!e&&(t*=60);return!this._isUTC&&n&&(r=ar(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==t&&(!n||this._changeInProgress?br(this,lr(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Dt.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:ar(this)},Pr.utc=function(t){return this.utcOffset(0,t)},Pr.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(ar(this),"m")),this},Pr.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=ir(Yn,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Pr.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?qe(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Pr.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Pr.isLocal=function(){return!!this.isValid()&&!this._isUTC},Pr.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Pr.isUtc=cr,Pr.isUTC=cr,Pr.zoneAbbr=function(){return this._isUTC?"UTC":""},Pr.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Pr.dates=Kt("dates accessor is deprecated. Use date instead.",Or),Pr.months=Kt("months accessor is deprecated. Use month instead",te),Pr.years=Kt("years accessor is deprecated. Use year instead",Wn),Pr.zone=Kt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,n){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,n),this):-this.utcOffset()})),Pr.isDSTShifted=Kt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!Yt(this._isDSTShifted))return this._isDSTShifted;var t={};if(Ft(t,this),(t=Ve(t))._a){var n=t._isUTC?Rt(t._a):qe(t._a);this._isDSTShifted=this.isValid()&&Bt(t._a,n.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var Lr=nn.prototype;function Hr(t,n,e,r){var i=Oe(),o=Rt().set(r,n);return i[e](o,t)}function Fr(t,n,e){if(Ot(t)&&(n=t,t=void 0),t=t||"",null!=n)return Hr(t,n,e,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Hr(t,r,e,"month");return i}function $r(t,n,e,r){"boolean"==typeof t?(Ot(n)&&(e=n,n=void 0),n=n||""):(e=n=t,t=!1,Ot(n)&&(e=n,n=void 0),n=n||"");var i,o=Oe(),a=t?o._week.dow:0;if(null!=e)return Hr(n,(e+a)%7,r,"day");var c=[];for(i=0;i<7;i++)c[i]=Hr(n,(i+a)%7,r,"day");return c}Lr.calendar=function(t,n,e){var r=this._calendar[t]||this._calendar.sameElse;return Jt(r)?r.call(n,e):r},Lr.longDateFormat=function(t){var n=this._longDateFormat[t],e=this._longDateFormat[t.toUpperCase()];return n||!e?n:(this._longDateFormat[t]=e.replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t])},Lr.invalidDate=function(){return this._invalidDate},Lr.ordinal=function(t){return this._ordinal.replace("%d",t)},Lr.preparse=Ir,Lr.postformat=Ir,Lr.relativeTime=function(t,n,e,r){var i=this._relativeTime[e];return Jt(i)?i(t,n,e,r):i.replace(/%d/i,t)},Lr.pastFuture=function(t,n){var e=this._relativeTime[t>0?"future":"past"];return Jt(e)?e(n):e.replace(/%s/i,n)},Lr.set=function(t){var n,e;for(e in t)Jt(n=t[e])?this[e]=n:this["_"+e]=n;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Lr.months=function(t,n){return t?Ct(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Kn).test(n)?"format":"standalone"][t.month()]:Ct(this._months)?this._months:this._months.standalone},Lr.monthsShort=function(t,n){return t?Ct(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Kn.test(n)?"format":"standalone"][t.month()]:Ct(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Lr.monthsParse=function(t,n,e){var r,i,o;if(this._monthsParseExact)return Qn.call(this,t,n,e);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=Rt([2e3,r]),e&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),e||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),e&&"MMMM"===n&&this._longMonthsParse[r].test(t))return r;if(e&&"MMM"===n&&this._shortMonthsParse[r].test(t))return r;if(!e&&this._monthsParse[r].test(t))return r}},Lr.monthsRegex=function(t){return this._monthsParseExact?(Tt(this,"_monthsRegex")||re.call(this),t?this._monthsStrictRegex:this._monthsRegex):(Tt(this,"_monthsRegex")||(this._monthsRegex=ee),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Lr.monthsShortRegex=function(t){return this._monthsParseExact?(Tt(this,"_monthsRegex")||re.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(Tt(this,"_monthsShortRegex")||(this._monthsShortRegex=ne),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Lr.week=function(t){return ue(t,this._week.dow,this._week.doy).week},Lr.firstDayOfYear=function(){return this._week.doy},Lr.firstDayOfWeek=function(){return this._week.dow},Lr.weekdays=function(t,n){var e=Ct(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(n)?"format":"standalone"];return!0===t?le(e,this._week.dow):t?e[t.day()]:e},Lr.weekdaysMin=function(t){return!0===t?le(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Lr.weekdaysShort=function(t){return!0===t?le(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Lr.weekdaysParse=function(t,n,e){var r,i,o;if(this._weekdaysParseExact)return be.call(this,t,n,e);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Rt([2e3,1]).day(r),e&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),e&&"dddd"===n&&this._fullWeekdaysParse[r].test(t))return r;if(e&&"ddd"===n&&this._shortWeekdaysParse[r].test(t))return r;if(e&&"dd"===n&&this._minWeekdaysParse[r].test(t))return r;if(!e&&this._weekdaysParse[r].test(t))return r}},Lr.weekdaysRegex=function(t){return this._weekdaysParseExact?(Tt(this,"_weekdaysRegex")||ge.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(Tt(this,"_weekdaysRegex")||(this._weekdaysRegex=me),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Lr.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(Tt(this,"_weekdaysRegex")||ge.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Tt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=pe),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Lr.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(Tt(this,"_weekdaysRegex")||ge.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Tt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ve),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Lr.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Lr.meridiem=function(t,n,e){return t>11?e?"pm":"PM":e?"am":"AM"},je("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var n=t%10;return t+(1===Vt(t%100/10)?"th":1===n?"st":2===n?"nd":3===n?"rd":"th")}}),Dt.lang=Kt("moment.lang is deprecated. Use moment.locale instead.",je),Dt.langData=Kt("moment.langData is deprecated. Use moment.localeData instead.",Oe);var Ur=Math.abs;function Wr(t,n,e,r){var i=lr(n,e);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function Gr(t){return t<0?Math.floor(t):Math.ceil(t)}function Vr(t){return 4800*t/146097}function Br(t){return 146097*t/4800}function qr(t){return function(){return this.as(t)}}var Kr=qr("ms"),Zr=qr("s"),Xr=qr("m"),Qr=qr("h"),Jr=qr("d"),ti=qr("w"),ni=qr("M"),ei=qr("Q"),ri=qr("y");function ii(t){return function(){return this.isValid()?this._data[t]:NaN}}var oi=ii("milliseconds"),ai=ii("seconds"),ci=ii("minutes"),ui=ii("hours"),si=ii("days"),li=ii("months"),fi=ii("years"),di=Math.round,hi={ss:44,s:45,m:45,h:22,d:26,M:11};function bi(t,n,e,r,i){return i.relativeTime(n||1,!!e,t,r)}var mi=Math.abs;function pi(t){return(t>0)-(t<0)||+t}function vi(){if(!this.isValid())return this.localeData().invalidDate();var t,n,e=mi(this._milliseconds)/1e3,r=mi(this._days),i=mi(this._months);t=Gt(e/60),n=Gt(t/60),e%=60,t%=60;var o=Gt(i/12),a=i%=12,c=r,u=n,s=t,l=e?e.toFixed(3).replace(/\.?0+$/,""):"",f=this.asSeconds();if(!f)return"P0D";var d=f<0?"-":"",h=pi(this._months)!==pi(f)?"-":"",b=pi(this._days)!==pi(f)?"-":"",m=pi(this._milliseconds)!==pi(f)?"-":"";return d+"P"+(o?h+o+"Y":"")+(a?h+a+"M":"")+(c?b+c+"D":"")+(u||s||l?"T":"")+(u?m+u+"H":"")+(s?m+s+"M":"")+(l?m+l+"S":"")}var gi=Je.prototype;gi.isValid=function(){return this._isValid},gi.abs=function(){var t=this._data;return this._milliseconds=Ur(this._milliseconds),this._days=Ur(this._days),this._months=Ur(this._months),t.milliseconds=Ur(t.milliseconds),t.seconds=Ur(t.seconds),t.minutes=Ur(t.minutes),t.hours=Ur(t.hours),t.months=Ur(t.months),t.years=Ur(t.years),this},gi.add=function(t,n){return Wr(this,t,n,1)},gi.subtract=function(t,n){return Wr(this,t,n,-1)},gi.as=function(t){if(!this.isValid())return NaN;var n,e,r=this._milliseconds;if("month"===(t=on(t))||"quarter"===t||"year"===t)switch(e=this._months+Vr(n=this._days+r/864e5),t){case"month":return e;case"quarter":return e/3;case"year":return e/12}else switch(n=this._days+Math.round(Br(this._months)),t){case"week":return n/7+r/6048e5;case"day":return n+r/864e5;case"hour":return 24*n+r/36e5;case"minute":return 1440*n+r/6e4;case"second":return 86400*n+r/1e3;case"millisecond":return Math.floor(864e5*n)+r;default:throw new Error("Unknown unit "+t)}},gi.asMilliseconds=Kr,gi.asSeconds=Zr,gi.asMinutes=Xr,gi.asHours=Qr,gi.asDays=Jr,gi.asWeeks=ti,gi.asMonths=ni,gi.asQuarters=ei,gi.asYears=ri,gi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Vt(this._months/12):NaN},gi._bubble=function(){var t,n,e,r,i,o=this._milliseconds,a=this._days,c=this._months,u=this._data;return o>=0&&a>=0&&c>=0||o<=0&&a<=0&&c<=0||(o+=864e5*Gr(Br(c)+a),a=0,c=0),u.milliseconds=o%1e3,t=Gt(o/1e3),u.seconds=t%60,n=Gt(t/60),u.minutes=n%60,e=Gt(n/60),u.hours=e%24,a+=Gt(e/24),c+=i=Gt(Vr(a)),a-=Gr(Br(i)),r=Gt(c/12),c%=12,u.days=a,u.months=c,u.years=r,this},gi.clone=function(){return lr(this)},gi.get=function(t){return t=on(t),this.isValid()?this[t+"s"]():NaN},gi.milliseconds=oi,gi.seconds=ai,gi.minutes=ci,gi.hours=ui,gi.days=si,gi.weeks=function(){return Gt(this.days()/7)},gi.months=li,gi.years=fi,gi.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var n=this.localeData(),e=function(t,n,e){var r=lr(t).abs(),i=di(r.as("s")),o=di(r.as("m")),a=di(r.as("h")),c=di(r.as("d")),u=di(r.as("M")),s=di(r.as("y")),l=i<=hi.ss&&["s",i]||i<hi.s&&["ss",i]||o<=1&&["m"]||o<hi.m&&["mm",o]||a<=1&&["h"]||a<hi.h&&["hh",a]||c<=1&&["d"]||c<hi.d&&["dd",c]||u<=1&&["M"]||u<hi.M&&["MM",u]||s<=1&&["y"]||["yy",s];return l[2]=n,l[3]=+t>0,l[4]=e,bi.apply(null,l)}(this,!t,n);return t&&(e=n.pastFuture(+this,e)),n.postformat(e)},gi.toISOString=vi,gi.toString=vi,gi.toJSON=vi,gi.locale=gr,gi.localeData=wr,gi.toIsoString=Kt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",vi),gi.lang=xr,bn("X",0,0,"unix"),bn("x",0,0,"valueOf"),Tn("x",jn),Tn("X",/[+-]?\d+(\.\d{1,3})?/),In("X",(function(t,n,e){e._d=new Date(1e3*parseFloat(t,10))})),In("x",(function(t,n,e){e._d=new Date(Vt(t))})),
|
|
6
|
-
//! moment.js
|
|
7
|
-
Dt.version="2.24.0",Mt=qe,Dt.fn=Pr,Dt.min=function(){var t=[].slice.call(arguments,0);return Xe("isBefore",t)},Dt.max=function(){var t=[].slice.call(arguments,0);return Xe("isAfter",t)},Dt.now=function(){return Date.now?Date.now():+new Date},Dt.utc=Rt,Dt.unix=function(t){return qe(1e3*t)},Dt.months=function(t,n){return Fr(t,n,"months")},Dt.isDate=Nt,Dt.locale=je,Dt.invalid=Lt,Dt.duration=lr,Dt.isMoment=Wt,Dt.weekdays=function(t,n,e){return $r(t,n,e,"weekdays")},Dt.parseZone=function(){return qe.apply(null,arguments).parseZone()},Dt.localeData=Oe,Dt.isDuration=tr,Dt.monthsShort=function(t,n){return Fr(t,n,"monthsShort")},Dt.weekdaysMin=function(t,n,e){return $r(t,n,e,"weekdaysMin")},Dt.defineLocale=Ye,Dt.updateLocale=function(t,n){if(null!=n){var e,r,i=ze;null!=(r=Ce(t))&&(i=r._config),(e=new nn(n=tn(i,n))).parentLocale=Me[t],Me[t]=e,je(t)}else null!=Me[t]&&(null!=Me[t].parentLocale?Me[t]=Me[t].parentLocale:null!=Me[t]&&delete Me[t]);return Me[t]},Dt.locales=function(){return Zt(Me)},Dt.weekdaysShort=function(t,n,e){return $r(t,n,e,"weekdaysShort")},Dt.normalizeUnits=on,Dt.relativeTimeRounding=function(t){return void 0===t?di:"function"==typeof t&&(di=t,!0)},Dt.relativeTimeThreshold=function(t,n){return void 0!==hi[t]&&(void 0===n?hi[t]:(hi[t]=n,"s"===t&&(hi.ss=n-1),!0))},Dt.calendarFormat=function(t,n){var e=t.diff(n,"days",!0);return e<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},Dt.prototype=Pr,Dt.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const xi=Object.freeze({__proto__:null,default:Dt});const wi=class{constructor(t){n(this,t),this.change=e(this,"bcm-change",7),this.onChange=t=>{this.value=this.getValueObject(t.detail),this.change.emit(this.value)},this.getFormat=()=>{if(!this.format){const t=this.use12Hours?"hh":"HH",n=`${this.showSecond?`${t}:mm:ss`:this.showMinute?`${t}:mm`:`${t}`}${this.use12Hours?" a":""}`;switch(this.type){case"time":return`${n}`;case"date":default:return"DD/MM/YYYY";case"datetime":return`DD/MM/YYYY ${n}`;case"week":return"YYYY-wo";case"month":return"MM/YYYY";case"year":return"YYYY"}}return this.format},this.getValueObject=t=>this.range?this.getRangeValueObject(t):this.createValueObject(t),this.getRangeValueObject=t=>{const[n,e]=t._i||[],r=this.createValueObject(n),i=this.createValueObject(e);return Object.assign({isValid:r.isValid&&i.isValid,start:r,end:i,date:[r.date,i.date],timestamp:[r.timestamp,i.timestamp],value:`${r.value} - ${i.value}`},"time"===this.type&&{time:`${r.time} - ${i.time}`})},this.createValueObject=t=>t&&Dt(t).isValid()?Object.assign({isValid:Dt(t).isValid(),date:Dt(t).toDate(),timestamp:Dt(t).valueOf(),dateObject:{year:Dt(t).year(),day:Dt(t).date(),month:Dt(t).month(),dayOfWeek:Dt(t).day(),monthFirstDay:Dt(t).startOf("month").day()},value:Dt(t).format(this.getFormat())},"time"===this.type&&{time:Dt(t).format(this.getFormat()),timeObject:{hour:Dt(t).hour(),minute:Dt(t).minute(),second:Dt(t).second()}}):null,this._id=c.UID(),this.label=void 0,this.placeholder=void 0,this.size=s.Size.medium,this.fullWidth=!1,this.required=!1,this.clearable=!1,this.disabled=!1,this.noMargin=!1,this.caption=void 0,this.noCaption=!1,this.captionType=s.Status.default,this.captionError=void 0,this.name=void 0,this.value=void 0,this.type="date",this.format=void 0,this.range=!1,this.showTime=!1,this.showNow=!0,this.showHour=!0,this.showMinute=!0,this.showSecond=!1,this.use12Hours=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.hideDisabledOptions=!1,this.disabledTime=void 0,this.showToday=!0,this.disabledDates=void 0}async getValue(){return this.value}async get(){var t;return(null===(t=this.value)||void 0===t?void 0:t.timestamp)||null}async set(t){this.getPickerElement().set(t)}async setClear(){this.getPickerElement().set(null)}async resetCaption(){this.captionType="default",this.captionError=null}async getInput(){return this.el.querySelector("input")}async isValid(){var t;return(null===(t=this.getValueObject(this.value))||void 0===t?void 0:t.isValid)||!1}getPickerElement(){return this.el.querySelector("bcm-rc-picker")}render(){const{label:n,size:e,captionType:i,required:o,_id:a}=this;return t(r,{class:l("bcm-ui-element bcm-ui-input","tw-relative tw-m-0 tw-inline-flex tw-w-full tw-flex-col",{"tw-max-w-[256px]":!this.fullWidth,"tw-mb-2":!this.noMargin})},n&&t("bcm-label",{size:e,type:i,value:n,required:o,htmlFor:a}),t("bcm-rc-picker",{id:a+"-picker",class:l("w-full tw-flex"),onBcmRCPickerChange:t=>this.onChange(t),disabled:this.disabled,clearable:this.clearable,size:e,placeholder:this.placeholder,error:"error"===this.captionType,type:this.type,format:this.getFormat(),range:this.range,showToday:this.showToday,disabledDates:this.disabledDates,showTime:this.showTime,showNow:this.showNow,showHour:this.showHour,showMinute:this.showMinute,showSecond:this.showSecond,use12Hours:this.use12Hours,hourStep:this.hourStep,minuteStep:this.minuteStep,secondStep:this.secondStep,hideDisabledOptions:this.hideDisabledOptions,disabledTime:this.disabledTime}),t(H,{noCaption:this.noCaption,captionType:this.captionType,captionError:this.captionError,caption:this.caption}))}get el(){return i(this)}};!function(t,n,e,r){var i,o=arguments.length,a=o<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,n,e,r);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(a=(o<3?i(a):o>3?i(n,e,a):i(n,e))||a);o>3&&a&&Object.defineProperty(n,e,a)}([R()],wi.prototype,"el",void 0);const yi=class{constructor(t){n(this,t),this.bcmForm=e(this,"bcm-form",7),this.formData={},this.inputs=[],this.duplicateInput=[],this.isValid=!0,this.returnCaption=[],this.Bromcom={errors:{targetFormNotExist:"target form is not exist --\x3e "},inputComponents:{CHIP_GROUP:"chip-group",INPUT:"input",TEXTAREA:"textarea",SWITCH:"switch",CHECKBOX:"checkbox",RADIO_GROUP:"radio-group",CHECKBOX_GROUP:"checkbox-group",RANGE:"range",FORM:"form",FORM_GROUP:"form-group",LIST:"list",COLORPICKER:"colorpicker",DATE:"date",DATE_PICKER:"date-picker",TIME_PICKER:"time-picker",DATETIME_PICKER:"datetime-picker",SELECT:"select",LISTBOX:"listbox"},helpers:{randomId:function(){return Math.random().toString(16).slice(2,-1)}}},this._id=(4*Math.random()).toString(16).replace(".",""),this.hidden=!1,this.validation=!1,this.name="",this.value=void 0,this.autocomplete=!1}handleSubmit(){}async submitFunction(){this.formData={},this.inputs=[],this.selector=this.el,await this.getInputs(),await F(10);const t=await this.userFormData();var n={isValid:!0,formData:t};return this.name&&(n=Object.assign(Object.assign({},n),{formName:this.name})),this.isValid?(this.bcmForm.emit(n),n):(this.returnCaption={isValid:!1,message:"Please fill in all inputs",errorDetails:this.returnCaption,formData:t},this.name&&(this.returnCaption=Object.assign(Object.assign({},this.returnCaption),{formName:this.name})),this.bcmForm.emit(this.returnCaption),this.returnCaption)}async submit(){return Promise.resolve(this.submitFunction())}async set(t){var n;const e=this.validation;if(this.validation=!1,this.selector=this.el,await this.getInputs(),t&&(null===(n=this.inputs)||void 0===n?void 0:n.length)>0)for(const n of Object.keys(t)){const e=this.inputs.find((t=>t.name===n));if(e)try{await e.set(t[n])}catch(t){console.log(e.nodeName,"set",t)}}this.validation=e}async get(){var t;let n={};this.selector=this.el;const e=this.inputs;return await this.getInputs(),(null===(t=this.inputs)||void 0===t?void 0:t.length)>0&&this.inputs.forEach((async t=>{try{const e=await t.get();n=Object.assign(Object.assign({},n),{[t.name]:e})}catch(n){console.log(`${t.nodeName} get error`)}})),this.inputs=e,await F(10),Promise.resolve(n)}async setClear(){this.formData={},this.inputs=[],this.selector=this.el;let t=[];return await this.getInputs(),this.inputs.forEach((async n=>{try{t.push(await n.setClear())}catch(t){console.log(t)}})),await Promise.all(t).then((()=>{this.formData={},this.inputs=[],this.duplicateInput=[],this.isValid=!0,this.returnCaption=[]})),await F(10),Promise.resolve(!0)}async resetCaption(){await F(10),this.formData={},this.inputs=[],this.selector=this.el,await this.getInputs();for(const t of this.inputs)try{await t.resetCaption()}catch(n){console.log(t.nodeName,"rc p")}return await F(10),Promise.resolve()}async config(t){return t.validation&&(this.validation="boolean"==typeof t.validation&&t.validation),!0}async getInputs(){var t=this.selector;if(!t)return void console.warn(this.Bromcom.errors.targetFormNotExist+this.selector);const n=Array.from(t.querySelectorAll("bcm-"+Object.values(this.Bromcom.inputComponents).join(",bcm-")));this.duplicateInput=[];const e=n.filter((t=>{var n;return!t["s-hn"]||"BcmForm"!==(null===(n=t["s-hn"])||void 0===n?void 0:n.nodeName)}));for(const t of e){if("bcm-checkbox-group"==I.lowercase(t.nodeName)){let n=t.querySelectorAll("bcm-checkbox");if(n)for(const t of n)this.duplicateInput.push(t.name)}if("bcm-form"==I.lowercase(t.nodeName)){const n=Array.from(t.querySelectorAll("bcm-"+Object.values(this.Bromcom.inputComponents).join(",bcm-")));let e={};for(const t of n){var r=t.name,i=t.value;e=Object.assign(Object.assign({},e),{[r]:i}),this.duplicateInput.push(t.name)}t.value=e;let o=t.querySelectorAll("bcm-checkbox");if(o)for(const t of o)this.duplicateInput.push(t.name)}}await F(10),this.inputs=e}getItemValue(t){return t.tagName.toLowerCase().replace("bcm-",""),t.value}isWrapperComponent(t){return["bcm-datetime-picker","bcm-date-picker","bcm-time-picker"].includes(t.toLowerCase())}isGroupComponent(t){return["bcm-checkbox-group"].includes(t.toLowerCase())}isListComponent(t){return["bcm-list"].includes(t.toLowerCase())}async userFormData(){this.formData={},this.isValid=!0,this.returnCaption=[];for(const n of this.inputs){const e=this.isGroupComponent(n.tagName),r=this.isWrapperComponent(n.tagName),i=r&&n,o=r?await n.getInput()&&n:n;if(this.validation){let t=null;if(r){const n=await i.isValid();t=zt.required(o.value,n),t&&(o.value instanceof Object?0==o.value.isValid&&(t=zt.required("",n)):t=zt.required(o.value,n))}else if(e){const n=$(o,"bcm-checkbox:not(#bcm-indeterminate-element)");if(n&&n.length>0)for(const e of n)e&&!0===e.required&&(t=zt.required(e.checked),t.valid?(e.noCaption=o.noCaption,e.captionError=null,e.captionType="default"):(e.noCaption=!1,e.captionError=t.message,e.captionType=t.type))}else t=zt.required(o.value);if(o.required){t.valid?(o.captionError=null,o.captionType="default"):(o.captionError=t.message,o.captionType=t.type),await F(10);const n=zt.selfValidation(o);t.valid&&(n.valid||(o.captionError=n.message,o.captionType=n.type))}let n=o.name,a=o.captionError;!o.hidden&&"error"==o.captionType&&(this.returnCaption=[...Array.from(this.returnCaption),{[n]:a}],this.isValid=!1)}if(o.name&&!this.duplicateInput.includes(o.name)){var t=this.getItemValue(o);t&&null!=t&&null!=t||(t=null),this.formData[o.name]=t}}return this.formData}async handleChange(t){const n=this.isWrapperComponent(t.target.tagName),e=this.isGroupComponent(t.target.tagName);let r;if(n)r=t.target.getInput&&await t.target.getInput()||t.target;else if(e){let n=!1;const e=$(t.target,"bcm-checkbox:not(#bcm-indeterminate-element)");e.length>0&&e.forEach((t=>{t&&!0===t.required&&(n=!0)})),r=Object.assign(Object.assign({},t.target),{required:n})}else r=t.target;const i=t.target.value,o=n&&t.target;var a;n&&(a=await o.isValid());const c=setTimeout((()=>{if(r.required){let o=null;if(n)o=zt.required(i,a),o&&(i instanceof Object?0==i.isValid&&(o=zt.required("",a)):o=zt.required(i,a));else if(e){const n=$(t.target,"bcm-checkbox:not(#bcm-indeterminate-element)");n.length>0&&n.forEach((n=>{n&&!0===n.required&&(o=zt.required(n.checked),o.valid?(n.noCaption=t.target.noCaption,n.captionError=null,n.captionType="default"):(n.noCaption=!1,n.captionError=o.message,n.captionType=o.type))}))}else o=zt.required(i);o.valid?(r.captionError=null,r.captionType=null):(r.captionError=o.message,r.captionType=o.type)}clearTimeout(c)}));this.value=await this.userFormData()}render(){const n=l(this.hidden?"hidden":null);return t(r,{class:n},t("form",{class:"bcm-form",autocomplete:this.autocomplete?"on":"off"},t("slot",null)))}get el(){return i(this)}};(function(t,n,e,r){var i,o=arguments.length,a=o<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,n,e,r);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(a=(o<3?i(a):o>3?i(n,e,a):i(n,e))||a);o>3&&a&&Object.defineProperty(n,e,a)})([R()],yi.prototype,"el",void 0),yi.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block;margin-bottom:8px}:host(.hidden){display:none}';const _i={"message-bot":"message-bot.svg"},ki=class{constructor(t){n(this,t),this.hidden=!1,this.icon=void 0}getIcon(){const{icon:n}=this;if(n in _i){const e=o("./static/"+_i[n]);return t("div",{class:"tw-flex tw-h-fit tw-w-fit tw-items-center tw-justify-center"},t("img",{src:`${e}`,alt:n,class:"tw-h-fit tw-w-fit"}))}return t("i",{class:`${n}`})}render(){const{hidden:n}=this;return t(r,{class:"bcm-icon fa "+(n?"hidden":"")},this.getIcon())}static get assetsDirs(){return["static"]}get el(){return i(this)}};ki.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-icon.hidden{display:none}';const zi=class{constructor(t){n(this,t),this.focus=e(this,"bcm-focus",7),this.blur=e(this,"bcm-blur",7),this.clear=e(this,"bcm-clear",7),this.change=e(this,"bcm-change",7),this.input=e(this,"bcm-input",7),this.isBlur=!1,this._id=c.UID(),this._internal_id=c.UID(),this.value="",this.size=u.Size.medium,this.label=void 0,this.pattern=void 0,this.tooltip=void 0,this.placeholder=void 0,this.disabled=!1,this.readonly=!1,this.clearable=!1,this.autocomplete=!1,this.name=void 0,this.type=u.InputType.text,this.hidden=!1,this.required=!1,this.fullWidth=!1,this.noDefaultIcon=void 0,this.disableWatchValue=!1,this.passwordToggle=!1,this.maxLength=null,this.minLength=null,this.unitPrefix=null,this.unit=void 0,this.decimal=!0,this.min=void 0,this.max=void 0,this.step=void 0,this.caption=void 0,this.noCaption=!1,this.captionType=u.Status.default,this.captionError=void 0,this.customErrorMessage=void 0,this._prefix=void 0,this._suffix=void 0,this.captionCache=void 0,this.captionTypeCache=void 0,this.inValid=!1,this.valueCache="",this.focused=!1,this.isPasswordVisible=!1}connectedCallback(){this.valueCache=this.value,this.captionCache=this.caption,this.captionTypeCache=this.captionType}componentWillRender(){const{type:t,isBlur:n,value:e}=this;if(e)switch(this.value.length>0&&this.checkPattern(),t){case"number":!this.checkValid("number")&&this.validationRange();break;case"email":n&&this.checkValid("email");break;case"tel":n&&this.checkValid("phone");break;case"text":n&&this.checkLength()}else!this.required&&this.resetCaption()}async onBcmFocus(){this.inputElement.focus()}async onBcmBlur(){this.inputElement.blur()}async onBcmSelect(){this.inputElement.select()}async set(t){await this.setValue(t)}async get(){return this.value||null}async setValue(t){return this.inputElement.value=t,this.handleChange(),t}async setClear(){return this.inputElement.value="",this.value="",await F(10),Promise.resolve()}async resetCaption(){return await F(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,this.inValid=!1,await F(10),Promise.resolve()}async getValue(){return this.value}watchValue(t){this.inputElement.value=t,this.disableWatchValue||"number"==this.type||this.handleChange()}listenKeyDown(t){if(!this.disabled&&!this.readonly&&(this.onBcmFocus(),"number"==this.type)){var n=t.which||0,e=t.key;38==n&&(t.preventDefault(),this.stepUpOrDown("up")),40==n&&(t.preventDefault(),this.stepUpOrDown("down")),(190==n||110==n||"."==e)&&this.value.indexOf(".")>-1&&t.preventDefault(),189!=n&&109!=n&&"-"!=e||("-"==this.value.charAt(0)||this.value.indexOf("-")>-1)&&t.preventDefault()}}handleFocus(){this.focused=!0,this.focus.emit(),this.whatchHasFocus()}handleBlur(){this.focused=!1,this.isBlur=!0,this.whatchHasFocus(),this.blur.emit()}handleChange(){this.valueSync()}handleInput(){if("number"==this.type&&this.maxLength){const t=this.inputElement.value;t&&t.length>0&&t.length>this.maxLength&&(this.inputElement.value=t.substring(0,this.maxLength))}this.valueSync()}valueSync(){return this.value!=this.inputElement.value?(this.value=this.inputElement.value,this.change.emit(this.value),!0):(this.input.emit(this.value),!1)}handleClear(t){this.inputElement.value="",this.value="",this.inputElement.focus(),this.clear.emit(t),this.change.emit(this.value),t.stopPropagation()}changePasswordVisibility(){this.isPasswordVisible=!this.isPasswordVisible}setCaption(t=null,n=null){this.caption=t||this.captionCache,this.captionType=n||this.captionTypeCache,this.captionError="error"==n?t:null}stepUpOrDown(t){if(!this.inValid&&!this.disabled&&!this.readonly){let n=+this.step||1,e=+this.value;e="up"==t?+(e+n):+(e-n),this.value=e.toString(),this.change.emit(this.value)}}validationRange(){const{min:t,max:n,value:e}=this;if(void 0!==e)if(void 0!==t&&void 0!==n){if(e<t||e>n)return this.setCaption(I.getMessage("between",[t,n]),"error"),!1}else if(void 0!==t){if(e<t)return this.setCaption(I.getMessage("min",[t]),"error"),!1}else if(void 0!==n&&e>n)return this.setCaption(I.getMessage("max",[n]),"error"),!1;return this.setCaption(),!0}checkLength(){const{minLength:t,maxLength:n,value:e}=this;t&&n?e.length<t||e.length>n?(this.setCaption(I.getMessage("betweenlength",[t,n]),"error"),this.inValid=!0):(this.setCaption(),this.inValid=!1):t?e.length<t?(this.setCaption(I.getMessage("minlength",[t]),"error"),this.inValid=!0):(this.setCaption(),this.inValid=!1):n&&(e.length>n?(this.setCaption(I.getMessage("maxlength",[n]),"error"),this.inValid=!0):(this.setCaption(),this.inValid=!1))}checkPattern(){const{pattern:t,value:n}=this;t&&(L.pattern(n,t)?(this.setCaption(),this.inValid=!1):(this.setCaption(I.getMessage("pattern"),"error"),this.inValid=!0))}checkValid(t){const{value:n}=this;return L.isValidate(n,t)?(this.setCaption(),this.inValid=!1):(this.setCaption(I.getMessage(t),"error"),this.inValid=!0),this.inValid}whatchHasFocus(){const{type:t,focused:n,valueCache:e,inValid:r}=this;t==u.InputType.number&&r&&(this.value=n?"":I.isNullOrEmpty(this.value)?e:this.value?this.fixToNumber(this.value):"")}fixToNumber(t){if(t){const n=P.getDecimalLength(this.step);return n>0?P.parseFloatFixed(t,n):t}return t}eyeDropper(){(new window.EyeDropper).open().then((t=>{this.setValue(t.sRGBHex)})).catch((t=>{"NotAllowedError"===t.name?console.log("Permission to access sensor was denied."):"NotSupportedError"===t.name&&console.log("Sensor not supported.")}))}isEyeDropperSupported(){return"undefined"!=typeof window&&"EyeDropper"in window}toggleLinked(){const t=document.getElementById(`${this._id}-linked`);t&&t.toggle()}render(){const{value:n,size:e,label:i,type:o,captionType:a,caption:c,captionError:s,placeholder:f,fullWidth:d,disabled:h,readonly:b,clearable:m,passwordToggle:p,isPasswordVisible:v,noDefaultIcon:g,unit:x,inValid:w,focused:y,unitPrefix:_,noCaption:k,required:z,hidden:M,_id:S,autocomplete:D}=this,C=(null==n?void 0:n.length)>0&&m,j=l("bcm-input",`bcm-input__container--${e}`,{hidden:M,"full-width":d});return t(r,{onfocus:()=>this.onBcmFocus(),class:j,onClick:()=>this.onBcmFocus()},i&&t("bcm-label",{onClick:()=>this.toggleLinked(),tooltip:this.tooltip,type:a,value:i,required:z,htmlFor:S}),t(U,{id:S,type:o,value:n,pattern:this.pattern,placeholder:f,disabled:h,readonly:b,clearable:C,passwordToggle:p,isPasswordVisible:v,noDefaultIcon:g,focused:y,inValid:w,unitPrefix:_,maxLength:this.maxLength,internalId:this._internal_id,captionType:a,unit:x,size:e,handleFocus:()=>this.handleFocus(),handleBlur:()=>this.handleBlur(),handleChange:()=>this.handleChange(),handleInput:()=>this.handleInput(),steps:t=>this.stepUpOrDown(t),changePasswordVisibility:()=>this.changePasswordVisibility(),handleClear:t=>this.handleClear(t),eyeDropper:()=>this.eyeDropper(),isEyeDropperSupported:()=>this.isEyeDropperSupported(),ref:t=>this.inputElement=t,_suffix:this._suffix,_prefix:this._prefix,autocomplete:D}),t(H,{noCaption:k,captionType:a,captionError:s,caption:c,customErrorMessage:this.customErrorMessage}),o==u.InputType.color&&t("bcm-linked",{targetId:this._id+"-container",id:this._id+"-linked"},t("bcm-colorful",{id:this._id+"-picker",color:this.value,onBcmChange:t=>this.setValue(t.detail)})))}static get watchers(){return{value:["watchValue"]}}};(function(t,n,e,r){var i,o=arguments.length,a=o<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,n,e,r);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(a=(o<3?i(a):o>3?i(n,e,a):i(n,e))||a);o>3&&a&&Object.defineProperty(n,e,a)})([R()],zi.prototype,"inputElement",void 0),zi.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-input{display:inline-flex;flex-direction:column;width:100%;max-width:256px;margin-bottom:8px}.bcm-input.full-width{max-width:100%}.bcm-input.hidden{display:none}.bcm-input__container{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;align-items:stretch;flex-direction:row;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%}.bcm-input__container.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-input__container.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-500)}.bcm-input__container.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.bcm-input__container.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.bcm-input__container:not(.disabled):hover .caret-container,.bcm-input__container:not(.disabled).focused .caret-container{opacity:1}.bcm-input__container:not(.disabled):hover .input-clear-button,.bcm-input__container:not(.disabled).focused .input-clear-button{opacity:1}.bcm-input__container:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.bcm-input__container:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.bcm-input__container.empty .input-clear-button{display:none}.bcm-input__container.invalid,.bcm-input__container.error{border-color:var(--bcm-new-ds-color-red-500)}.bcm-input__container .bcm-input-element{width:100%;color:var(--bcm-new-ds-color-slate-600);flex:1;border:none;background:transparent;box-shadow:unset;padding:0 4px;font-family:"Inter", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;text-overflow:ellipsis}.bcm-input__container .bcm-input-element::placeholder{font-family:"Inter", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.bcm-input__container .bcm-input-element::-webkit-search-decoration,.bcm-input__container .bcm-input-element::-webkit-search-cancel-button,.bcm-input__container .bcm-input-element::-webkit-search-results-button,.bcm-input__container .bcm-input-element::-webkit-search-results-decoration,.bcm-input__container .bcm-input-element::-webkit-calendar-picker-indicator,.bcm-input__container .bcm-input-element::-webkit-inner-spin-button,.bcm-input__container .bcm-input-element::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-input__container .caret-container{width:30px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;border-left:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box}.bcm-input__container .caret-container .bcm-input-caret{display:flex;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer;flex:1}.bcm-input__container .caret-container .bcm-input-caret bcm-icon{line-height:1}.bcm-input__container .caret-container .bcm-input-caret:hover{color:var(--bcm-color-prime-blue-6)}.bcm-input__container .caret-container .bcm-input-caret:active{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container .bcm-input-caret:last-child{border-top:1px solid #D9D9D9}.bcm-input__container .caret-container.disabled{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container.disabled .bcm-input-caret{cursor:not-allowed}.bcm-input__container .input-suffix-content{display:flex;align-items:center;justify-content:center}.bcm-input__container .input-prefix:not(:empty){padding-left:4px}.bcm-input__container .input-suffix:not(:empty){min-width:24px;padding-right:4px}.bcm-input__container .input-prefix:not(:empty),.bcm-input__container .input-suffix:not(:empty){display:flex;align-items:center;justify-content:center;cursor:default;color:#64748a}.bcm-input__container .input-prefix:not(:empty) .unit-prefix,.bcm-input__container .input-suffix:not(:empty) .unit-prefix{color:#64748a}.bcm-input__container .input-prefix-button:not(:empty),.bcm-input__container .input-suffix-button:not(:empty){cursor:pointer}.bcm-input__container .caret-container,.bcm-input__container .input-clear-button{opacity:0}.bcm-input__container--small{font-size:12px}.bcm-input__container--medium{font-size:14px}.bcm-input__container--large{font-size:16px}.bcm-input__textarea.clearable .bcm-input-element{padding-right:24px}.bcm-input__textarea .input-clear-button{position:absolute;top:4px;right:0}';const Mi=class{constructor(t){n(this,t),this._id=c.UID(),this.required=!1,this.value=void 0,this.label=void 0,this.size="medium",this.form=void 0,this.htmlFor=void 0,this.hidden=!1,this.type=u.Status.default,this.tooltip=void 0}render(){const{required:n,value:e,label:i,size:o,form:a,htmlFor:c,type:u,tooltip:s}=this;return t(r,{class:"tw-inline-flex tw-flex-row tw-gap-0.5 tw-items-center tw-justify-start"},t(W,{form:a,htmlFor:c,value:e||i,size:o,type:u,required:n}),s&&t("bcm-tooltip",{message:s,placement:"top",trigger:"hover"},t("bcm-icon",{icon:"far fa-question-circle"})))}get el(){return i(this)}};!function(t,n,e,r){var i,o=arguments.length,a=o<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,n,e,r);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(a=(o<3?i(a):o>3?i(n,e,a):i(n,e))||a);o>3&&a&&Object.defineProperty(n,e,a)}([R()],Mi.prototype,"el",void 0);const Si=class{constructor(t){n(this,t),this.bcmOpen=e(this,"bcm-open",7),this._id=c.UID(),this.placement=s.Placement["bottom-start"],this.trigger=s.TriggerType.click,this.targetId="",this.height=void 0,this.maxHeight=void 0,this.minHeight="50px",this.isOpen=!1,this.hideDelay=500,this.isMouseOverLink=!1,window.addEventListener("scroll",(()=>this.calculatePosition()),!0),window.addEventListener("wheel",(()=>this.calculatePosition()),!0),window.addEventListener("resize",(()=>this.calculatePosition()),!0)}target(){const t=document.querySelectorAll(`[id="${this.targetId}"]`);return t.length>0?(t.length>1&&console.warn(`[bcm-linked] - Target id "${this.targetId}" is duplicated`),t[0]):(this.el.remove(),null)}detectClone(){const t=document.querySelectorAll(`[target-id="${this.targetId}"]`);t.length>0&&t.forEach((t=>{t.id!==this._id&&(console.warn(`[bcm-linked] - id="${this._id}" was removed from the dom because id="${this.targetId}" is duplicated.`),t.remove())}))}dismissEvent(){document.dispatchEvent(new CustomEvent("linked-data-dismiss",{detail:{id:this._id}}))}checkDataDismiss(t){c.findEventPathHasAttribute(t,"data-dismiss")&&this.dismissEvent()}hideChildLinked(){this.el.querySelectorAll("[is-linked][linked-is-open]").forEach((t=>{var n;null===(n=document.querySelector(`#${t.getAttribute("is-linked")}[is-open]`))||void 0===n||n.hide(!1)}))}calculatePosition(){const t=this.el;t&&this.target()&&(this.isOpen?G({ref:this.target(),floating:t,placement:this.placement,offset:4,autoHidden:"true"!==t.getAttribute("main-linked"),autoSize:!0,style:{height:this.height,maxHeight:this.maxHeight,minHeight:this.minHeight}}):(t.style.visibility="hidden",t.style.opacity="0"))}init(){const t=this.target();this.trigger===s.TriggerType.hover&&this.listenMouseOver(),t&&(t.setAttribute("is-linked",this.el.id),c.getAncestor(t,"bcm-linked")?this.el.removeAttribute("main-linked"):this.el.setAttribute("main-linked","true"))}componentDidLoad(){this.init()}triggerWatch(t){t===s.TriggerType.hover&&this.listenMouseOver()}watchIsOpen(){this.bcmOpen.emit(this.isOpen)}onLinkedDataDismis(){this.hide(!1)}onBcmFloatingIsHide(t){t.detail.id===this._id&&this.hide(!1)}async show(t=!0){t&&await F(50),this.detectClone();const n=this.target();return n?(document.querySelector("#bcm-overlay-container").appendChild(this.el),n.setAttribute("linked-is-open","true"),this.isOpen=!0,this.calculatePosition()):this.hide(!1),this.isOpen}async hide(t=!0){t&&await F(50);const n=this.target();return this.isMouseOverLink=!1,n&&(n.removeAttribute("linked-is-open"),this.hideChildLinked(),this.isOpen=!1),this.isOpen}async toggle(t=!0){return this.isOpen?await this.hide(t):await this.show(t)}clickListener(t){if(!this.target())return;if(this.trigger===s.TriggerType.hover||this.trigger===s.TriggerType.custom)return;const n=c.findEventPath(t,this.target()),e=c.findEventPath(t,this.el),r=c.findEventPathWithNodeName(t,"BCM-LINKED");if(!n&&!e&&!r)return this.hide(),void this.bcmOpen.emit(this.isOpen);this.isOpen?(n&&this.hide(!1),e&&this.checkDataDismiss(t),"true"!==this.el.getAttribute("main-linked")||n||e||r||this.dismissEvent()):n&&this.show(!1)}listenMouseOver(){var t,n;this.el.addEventListener("mouseover",(()=>this.isMouseOverLink=!0)),this.el.addEventListener("mouseleave",(()=>{this.isMouseOverLink=!1,this.handleMouseLeave()})),null===(t=this.target())||void 0===t||t.addEventListener("mouseenter",this.handleMouseEnter.bind(this)),null===(n=this.target())||void 0===n||n.addEventListener("mouseleave",this.handleMouseLeave.bind(this))}handleMouseLeave(){setTimeout((()=>{!this.isMouseOverLink&&this.hide()}),this.hideDelay)}handleMouseEnter(){clearTimeout(this.timeoutId),this.isMouseOverLink=!1,this.show()}render(){return t(r,{class:"tw-invisible tw-absolute tw-left-0 tw-top-0 tw-z-tooltip tw-block tw-overscroll-contain tw-scroll-smooth tw-rounded tw-bg-white tw-opacity-0 tw-shadow tw-transition-opacity tw-duration-100",style:Object.assign(Object.assign({},this.isOpen?{visibility:"visible",opacity:"1"}:{visibility:"hidden",opacity:"0"}),{overflow:"auto"})},t("slot",null))}get el(){return i(this)}static get watchers(){return{trigger:["triggerWatch"],isOpen:["watchIsOpen"]}}};function Di(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function Ci(t){return Ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ci(t)}function ji(t){var n=function(t){if("object"!==Ci(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!==Ci(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ci(n)?n:String(n)}function Yi(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ji(r.key),r)}}function Oi(t,n,e){return n&&Yi(t.prototype,n),e&&Yi(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ni(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ei(t,n){return Ei=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},Ei(t,n)}function Ti(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&Ei(t,n)}function Ai(t){return Ai=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ai(t)}function Ri(t,n){if(n&&("object"===Ci(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return Ni(t)}function Pi(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=Ai(t);if(n){var i=Ai(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return Ri(this,e)}}function Ii(){return Ii=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Ii.apply(this,arguments)}function Li(t,n,e){return(n=ji(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function Hi(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function Fi(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?Hi(Object(e),!0).forEach((function(n){Li(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Hi(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function $i(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function Ui(t,n){if(t){if("string"==typeof t)return $i(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?$i(t,n):void 0}}function Wi(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,i,o,a,c=[],u=!0,s=!1;try{if(o=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;u=!1}else for(;!(u=(r=o.call(e)).done)&&(c.push(r.value),c.length!==n);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(t,n)||Ui(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gi(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function Vi(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,i,o,a,c=[],u=!0,s=!1;try{if(o=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;u=!1}else for(;!(u=(r=o.call(e)).done)&&(c.push(r.value),c.length!==n);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(t,n)||function(t,n){if(t){if("string"==typeof t)return Gi(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Gi(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bi(t){var n=b.useRef(!1),e=Vi(b.useState(t),2),r=e[0],i=e[1];return b.useEffect((function(){return n.current=!1,function(){n.current=!0}}),[]),[r,function(t,e){e&&n.current||i(t)}]}function qi(t){return void 0!==t}function Ki(t,n){var e=n||{},r=e.defaultValue,i=e.value,o=e.onChange,a=e.postState,c=Vi(Bi((function(){return qi(i)?i:qi(r)?"function"==typeof r?r():r:"function"==typeof t?t():t})),2),u=c[0],s=c[1],l=void 0!==i?i:u,f=a?a(l):l,d=p(o),h=Vi(Bi([l]),2),b=h[0],m=h[1];return v((function(){var t=b[0];u!==t&&d(u,t)}),[b]),v((function(){qi(i)||s(i)}),[i]),[f,p((function(t,n){s(t,n),m([l],n)}))]}function Zi(t,n,e){return(n=function(t){var n=function(t){if("object"!==g(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!==g(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===g(n)?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function Xi(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function Qi(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?Xi(Object(e),!0).forEach((function(n){Zi(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Xi(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var Ji="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),to="aria-",no="data-";function eo(t,n){return 0===t.indexOf(n)}function ro(t){var n,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n=!1===e?{aria:!0,data:!0,attr:!0}:!0===e?{aria:!0}:Qi({},e);var r={};return Object.keys(t).forEach((function(e){(n.aria&&("role"===e||eo(e,to))||n.data&&eo(e,no)||n.attr&&Ji.includes(e))&&(r[e]=t[e])})),r}function io(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;function i(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(x(!a,"Warning: There may be circular references"),a)return!1;if(t===n)return!0;if(e&&o>1)return!1;r.add(t);var c=o+1;if(Array.isArray(t)){if(!Array.isArray(n)||t.length!==n.length)return!1;for(var u=0;u<t.length;u++)if(!i(t[u],n[u],c))return!1;return!0}if(t&&n&&"object"===g(t)&&"object"===g(n)){var s=Object.keys(t);return s.length===Object.keys(n).length&&s.every((function(e){return i(t[e],n[e],c)}))}return!1}return i(t,n)}var oo=10,ao=100;function co(t,n){return!t&&!n||!(!t||!n)&&void 0}function uo(t,n,e){var r=co(n,e);return"boolean"==typeof r?r:t.getYear(n)===t.getYear(e)}function so(t,n){return Math.floor(t.getMonth(n)/3)+1}function lo(t,n,e){var r=co(n,e);return"boolean"==typeof r?r:uo(t,n,e)&&so(t,n)===so(t,e)}function fo(t,n,e){var r=co(n,e);return"boolean"==typeof r?r:uo(t,n,e)&&t.getMonth(n)===t.getMonth(e)}function ho(t,n,e){var r=co(n,e);return"boolean"==typeof r?r:t.getYear(n)===t.getYear(e)&&t.getMonth(n)===t.getMonth(e)&&t.getDate(n)===t.getDate(e)}function bo(t,n,e,r){var i=co(e,r);return"boolean"==typeof i?i:uo(t,e,r)&&t.locale.getWeek(n,e)===t.locale.getWeek(n,r)}function mo(t,n,e){return ho(t,n,e)&&function(t,n,e){var r=co(n,e);return"boolean"==typeof r?r:t.getHour(n)===t.getHour(e)&&t.getMinute(n)===t.getMinute(e)&&t.getSecond(n)===t.getSecond(e)}(t,n,e)}function po(t,n,e,r){return!!(n&&e&&r)&&!ho(t,n,r)&&!ho(t,e,r)&&t.isAfter(r,n)&&t.isAfter(e,r)}function vo(t,n,e){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;switch(n){case"year":return e.addYear(t,10*r);case"quarter":case"month":return e.addYear(t,r);default:return e.addMonth(t,r)}}function go(t,n){var e=n.generateConfig,r=n.locale,i=n.format;return"function"==typeof i?i(t):e.locale.format(r.locale,t,i)}function xo(t,n){var e=n.formatList;return t&&"function"!=typeof e[0]?n.generateConfig.locale.parse(n.locale.locale,t,e):null}function wo(t){var n=t.cellDate,e=t.disabledDate,r=t.generateConfig;if(!e)return!1;var i=function(t,i,o){for(var a=i;a<=o;){var c=void 0;switch(t){case"date":if(c=r.setDate(n,a),!e(c))return!1;break;case"month":if(!wo({cellDate:c=r.setMonth(n,a),mode:"month",generateConfig:r,disabledDate:e}))return!1;break;case"year":if(!wo({cellDate:c=r.setYear(n,a),mode:"year",generateConfig:r,disabledDate:e}))return!1}a+=1}return!0};switch(t.mode){case"date":case"week":return e(n);case"month":return i("date",1,r.getDate(r.getEndDate(n)));case"quarter":var o=3*Math.floor(r.getMonth(n)/3);return i("month",o,o+2);case"year":return i("month",0,11);case"decade":var a=r.getYear(n),c=Math.floor(a/oo)*oo;return i("year",c,c+oo-1)}}function yo(t,n){var e=n.formatList,r=n.generateConfig,i=n.locale;return w((function(){if(!t)return[[""],""];for(var n="",o=[],a=0;a<e.length;a+=1){var c=go(t,{generateConfig:r,locale:i,format:e[a]});o.push(c),0===a&&(n=c)}return[o,n]}),[t,e,i],(function(t,n){return!mo(r,t[0],n[0])||!io(t[1],n[1],!0)||!io(t[2],n[2],!0)}))}function _o(t,n){var e=n.formatList,r=n.generateConfig,i=n.locale,o=Wi(b.useState(null),2),a=o[0],c=o[1],u=b.useRef(null);function s(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];cancelAnimationFrame(u.current),n?c(t):u.current=requestAnimationFrame((function(){c(t)}))}var l=Wi(yo(a,{formatList:e,generateConfig:r,locale:i}),2)[1];function f(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s(null,t)}return b.useEffect((function(){f(!0)}),[t]),b.useEffect((function(){return function(){return cancelAnimationFrame(u.current)}}),[]),[l,function(t){s(t)},f]}var ko={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=ko.F1&&n<=ko.F12)return!1;switch(n){case ko.ALT:case ko.CAPS_LOCK:case ko.CONTEXT_MENU:case ko.CTRL:case ko.DOWN:case ko.END:case ko.ESC:case ko.HOME:case ko.INSERT:case ko.LEFT:case ko.MAC_FF_META:case ko.META:case ko.NUMLOCK:case ko.NUM_CENTER:case ko.PAGE_DOWN:case ko.PAGE_UP:case ko.PAUSE:case ko.PRINT_SCREEN:case ko.RIGHT:case ko.SHIFT:case ko.UP:case ko.WIN_KEY:case ko.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ko.ZERO&&t<=ko.NINE)return!0;if(t>=ko.NUM_ZERO&&t<=ko.NUM_MULTIPLY)return!0;if(t>=ko.A&&t<=ko.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===t)return!0;switch(t){case ko.SPACE:case ko.QUESTION_MARK:case ko.NUM_PLUS:case ko.NUM_MINUS:case ko.NUM_PERIOD:case ko.NUM_DIVISION:case ko.SEMICOLON:case ko.DASH:case ko.EQUALS:case ko.COMMA:case ko.PERIOD:case ko.SLASH:case ko.APOSTROPHE:case ko.SINGLE_QUOTE:case ko.OPEN_SQUARE_BRACKET:case ko.BACKSLASH:case ko.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};function zo(t){return function(t){if(Array.isArray(t))return $i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Ui(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const Mo=function(t){if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){var n=t.getBBox();if(n.width||n.height)return!0}if(t.getBoundingClientRect){var e=t.getBoundingClientRect();if(e.width||e.height)return!0}}return!1};var So=new Map;function Do(t,n,e){if(So.get(t)&&cancelAnimationFrame(So.get(t)),e<=0)So.set(t,requestAnimationFrame((function(){t.scrollTop=n})));else{var r=(n-t.scrollTop)/e*10;So.set(t,requestAnimationFrame((function(){t.scrollTop+=r,t.scrollTop!==n&&Do(t,n,e-10)})))}}function Co(t,n){var e=n.onLeftRight,r=n.onCtrlLeftRight,i=n.onUpDown,o=n.onPageUpDown,a=n.onEnter,c=t.ctrlKey,u=t.metaKey;switch(t.which){case ko.LEFT:if(c||u){if(r)return r(-1),!0}else if(e)return e(-1),!0;break;case ko.RIGHT:if(c||u){if(r)return r(1),!0}else if(e)return e(1),!0;break;case ko.UP:if(i)return i(-1),!0;break;case ko.DOWN:if(i)return i(1),!0;break;case ko.PAGE_UP:if(o)return o(-1),!0;break;case ko.PAGE_DOWN:if(o)return o(1),!0;break;case ko.ENTER:if(a)return a(),!0}return!1}function jo(t,n,e,r){var i=t;if(!i)switch(n){case"time":i=r?"hh:mm:ss a":"HH:mm:ss";break;case"week":i="gggg-wo";break;case"month":i="YYYY-MM";break;case"quarter":i="YYYY-[Q]Q";break;case"year":i="YYYY";break;default:i=e?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return i}function Yo(t,n,e){var r="time"===t?8:10,i="function"==typeof n?n(e.getNow()).length:n.length;return Math.max(r,i)+2}var Oo=null,No=new Set,Eo={year:function(t){return"month"===t||"date"===t?"year":t},month:function(t){return"date"===t?"month":t},quarter:function(t){return"month"===t||"date"===t?"quarter":t},week:function(t){return"date"===t?"week":t},time:null,date:null};function To(t,n){return t.some((function(t){return t&&t.contains(n)}))}function Ao(t){var n=t.open,e=t.value,r=t.isClickOutside,i=t.triggerOpen,o=t.forwardKeyDown,a=t.onKeyDown,c=t.blurToCancel,u=t.changeOnBlur,s=t.onSubmit,l=t.onCancel,f=t.onFocus,d=t.onBlur,h=Wi(b.useState(!1),2),m=h[0],p=h[1],v=Wi(b.useState(!1),2),g=v[0],x=v[1],w=b.useRef(!1),_=b.useRef(!1),k=b.useRef(!1),z={onMouseDown:function(){p(!0),i(!0)},onKeyDown:function(t){if(a(t,(function(){k.current=!0})),!k.current){switch(t.which){case ko.ENTER:return n?!1!==s()&&p(!0):i(!0),void t.preventDefault();case ko.TAB:return void(m&&n&&!t.shiftKey?(p(!1),t.preventDefault()):!m&&n&&!o(t)&&t.shiftKey&&(p(!0),t.preventDefault()));case ko.ESC:return p(!0),void l()}n||[ko.SHIFT].includes(t.which)?m||o(t):i(!0)}},onFocus:function(t){p(!0),x(!0),f&&f(t)},onBlur:function(t){!w.current&&r(document.activeElement)?(c?setTimeout((function(){for(var t=document.activeElement;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;r(t)&&l()}),0):n&&(i(!1),_.current&&s()),x(!1),null==d||d(t)):w.current=!1}};return b.useEffect((function(){_.current=!1}),[n]),b.useEffect((function(){_.current=!0}),[e]),b.useEffect((function(){return t=function(t){var e=function(t){var n,e=t.target;return t.composed&&e.shadowRoot&&(null===(n=t.composedPath)||void 0===n?void 0:n.call(t)[0])||e}(t),o=r(e);n&&(o?u||c||g&&!o||i(!1):(w.current=!0,y((function(){w.current=!1}))))},!Oo&&"undefined"!=typeof window&&window.addEventListener&&(Oo=function(t){zo(No).forEach((function(n){n(t)}))},window.addEventListener("mousedown",Oo)),No.add(t),function(){No.delete(t),0===No.size&&(window.removeEventListener("mousedown",Oo),Oo=null)};var t})),[z,{focused:g,typing:m}]}function Ro(t,n){return b.useMemo((function(){return t||(n?(x(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(n).map((function(t){var n=Wi(t,2);return{label:n[0],value:n[1]}}))):[])}),[t,n])}function Po(t){var n=t.valueTexts,e=t.onTextChange,r=Wi(b.useState(""),2),i=r[0],o=r[1],a=b.useRef([]);function c(){o(a.current[0])}return a.current=n,_((function(){n.every((function(t){return t!==i}))&&c()}),[n.join("||")]),[i,function(t){o(t),e(t)},c]}var Io=b.createContext({});function Lo(t){var n=t.cellRender,e=t.monthCellRender,r=t.dateRender;return b.useMemo((function(){return n||(e||r?function(t,n){var i=t;return r&&"date"===n.type?r(i,n.today):e&&"month"===n.type?e(i,n.locale):n.originNode}:void 0)}),[n,e,r])}function Ho(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(t);r.length<n;)r="".concat(e).concat(t);return r}function Fo(t){return null==t?[]:Array.isArray(t)?t:[t]}function $o(t,n){return t?t[n]:null}function Uo(t,n,e){var r=[$o(t,0),$o(t,1)];return r[e]="function"==typeof n?n(r[e]):n,r[0]||r[1]?r:null}function Wo(t){return"function"==typeof t?t():t}function Go(t){var n=t.cellPrefixCls,e=t.generateConfig,r=t.rangedValue,i=t.hoverRangedValue,o=t.isInView,a=t.isSameCell,c=t.offsetCell,u=t.today,s=t.value;return function(t){var l,f=c(t,-1),d=c(t,1),h=$o(r,0),b=$o(r,1),m=$o(i,0),p=$o(i,1),v=po(e,m,p,t);function g(t){return a(h,t)}function x(t){return a(b,t)}var w=a(m,t),y=a(p,t),_=(v||y)&&(!o(f)||x(f)),k=(v||w)&&(!o(d)||g(d));return Li(l={},"".concat(n,"-in-view"),o(t)),Li(l,"".concat(n,"-in-range"),po(e,h,b,t)),Li(l,"".concat(n,"-range-start"),g(t)),Li(l,"".concat(n,"-range-end"),x(t)),Li(l,"".concat(n,"-range-start-single"),g(t)&&!b),Li(l,"".concat(n,"-range-end-single"),x(t)&&!h),Li(l,"".concat(n,"-range-start-near-hover"),g(t)&&(a(f,m)||po(e,m,p,f))),Li(l,"".concat(n,"-range-end-near-hover"),x(t)&&(a(d,p)||po(e,m,p,d))),Li(l,"".concat(n,"-range-hover"),v),Li(l,"".concat(n,"-range-hover-start"),w),Li(l,"".concat(n,"-range-hover-end"),y),Li(l,"".concat(n,"-range-hover-edge-start"),_),Li(l,"".concat(n,"-range-hover-edge-end"),k),Li(l,"".concat(n,"-range-hover-edge-start-near-range"),_&&a(f,b)),Li(l,"".concat(n,"-range-hover-edge-end-near-range"),k&&a(d,h)),Li(l,"".concat(n,"-today"),a(u,t)),Li(l,"".concat(n,"-selected"),a(s,t)),l}}var Vo=b.createContext({});function Bo(t,n,e,r,i){var o=t.setHour(n,e);return o=t.setMinute(o,r),t.setSecond(o,i)}function qo(t,n,e){if(!e)return n;var r=n;return r=t.setHour(r,t.getHour(e)),r=t.setMinute(r,t.getMinute(e)),t.setSecond(r,t.getSecond(e))}function Ko(t,n){var e=t.getYear(n),r=t.getMonth(n)+1,i=t.getEndDate(t.getFixedDate("".concat(e,"-").concat(r,"-01"))),o=t.getDate(i),a=r<10?"0".concat(r):"".concat(r);return"".concat(e,"-").concat(a,"-").concat(o)}function Zo(t){for(var n=t.prefixCls,e=t.disabledDate,r=t.onSelect,i=t.picker,o=t.rowNum,a=t.colNum,c=t.prefixColumn,u=t.rowClassName,s=t.baseDate,f=t.getCellClassName,d=t.getCellText,h=t.getCellNode,m=t.getCellDate,p=t.generateConfig,v=t.titleCell,g=t.headerCells,x=b.useContext(Io),w=x.onDateMouseEnter,y=x.onDateMouseLeave,_=x.mode,k="".concat(n,"-cell"),z=[],M=0;M<o;M+=1){for(var S=[],D=void 0,C=function(){var t,n=m(s,M*a+j),o=wo({cellDate:n,mode:_,disabledDate:e,generateConfig:p});0===j&&(D=n,c&&S.push(c(D)));var u=v&&v(n),g=b.createElement("div",{className:"".concat(k,"-inner")},d(n));S.push(b.createElement("td",{key:j,title:u,className:l(k,Fi((t={},Li(t,"".concat(k,"-disabled"),o),Li(t,"".concat(k,"-start"),1===d(n)||"year"===i&&Number(u)%10==0),Li(t,"".concat(k,"-end"),u===Ko(p,n)||"year"===i&&Number(u)%10==9),t),f(n))),onClick:function(){o||r(n)},onMouseEnter:function(){!o&&w&&w(n)},onMouseLeave:function(){!o&&y&&y(n)}},h?h(n,g):g))},j=0;j<a;j+=1)C();z.push(b.createElement("tr",{key:M,className:u&&u(D)},S))}return b.createElement("div",{className:"".concat(n,"-body")},b.createElement("table",{className:"".concat(n,"-content")},g&&b.createElement("thead",null,b.createElement("tr",null,g)),b.createElement("tbody",null,z)))}function Xo(t){var n=t.prefixCls,e=t.generateConfig,r=t.prefixColumn,i=t.locale,o=t.rowCount,a=t.viewDate,c=t.value,u=t.cellRender,s=t.isSameCell,l=b.useContext(Vo),f=l.rangedValue,d=l.hoverRangedValue,h=function(t,n,e){var r=n.locale.getWeekFirstDay(t),i=n.setDate(e,1),o=n.getWeekDay(i),a=n.addDate(i,r-o);return n.getMonth(a)===n.getMonth(e)&&n.getDate(a)>1&&(a=n.addDate(a,-7)),a}(i.locale,e,a),m="".concat(n,"-cell"),p=e.locale.getWeekFirstDay(i.locale),v=e.getNow(),g=[],x=i.shortWeekDays||(e.locale.getShortWeekDays?e.locale.getShortWeekDays(i.locale):[]);r&&g.push(b.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var w=0;w<7;w+=1)g.push(b.createElement("th",{key:w},x[(w+p)%7]));var y=Go({cellPrefixCls:m,today:v,value:c,generateConfig:e,rangedValue:r?null:f,hoverRangedValue:r?null:d,isSameCell:s||function(t,n){return ho(e,t,n)},isInView:function(t){return fo(e,t,a)},offsetCell:function(t,n){return e.addDate(t,n)}});return b.createElement(Zo,Ii({},t,{rowNum:o,colNum:7,baseDate:h,getCellNode:u?function(t,n){return u(t,{originNode:n,today:v,type:"date",locale:i})}:void 0,getCellText:e.getDate,getCellClassName:y,getCellDate:e.addDate,titleCell:function(t){return go(t,{locale:i,format:"YYYY-MM-DD",generateConfig:e})},headerCells:g}))}var Qo={visibility:"hidden"};function Jo(t){var n=t.prefixCls,e=t.prevIcon,r=void 0===e?"‹":e,i=t.nextIcon,o=void 0===i?"›":i,a=t.superPrevIcon,c=void 0===a?"«":a,u=t.superNextIcon,s=void 0===u?"»":u,l=t.onSuperPrev,f=t.onSuperNext,d=t.onPrev,h=t.onNext,m=t.children,p=b.useContext(Io),v=p.hideNextBtn,g=p.hidePrevBtn;return b.createElement("div",{className:n},l&&b.createElement("button",{type:"button",onClick:l,tabIndex:-1,className:"".concat(n,"-super-prev-btn"),style:g?Qo:{}},c),d&&b.createElement("button",{type:"button",onClick:d,tabIndex:-1,className:"".concat(n,"-prev-btn"),style:g?Qo:{}},r),b.createElement("div",{className:"".concat(n,"-view")},m),h&&b.createElement("button",{type:"button",onClick:h,tabIndex:-1,className:"".concat(n,"-next-btn"),style:v?Qo:{}},o),f&&b.createElement("button",{type:"button",onClick:f,tabIndex:-1,className:"".concat(n,"-super-next-btn"),style:v?Qo:{}},s))}function ta(t){var n=t.prefixCls,e=t.generateConfig,r=t.locale,i=t.viewDate,o=t.onNextMonth,a=t.onPrevMonth,c=t.onNextYear,u=t.onPrevYear,s=t.onYearClick,l=t.onMonthClick;if(b.useContext(Io).hideHeader)return null;var f="".concat(n,"-header"),d=r.shortMonths||(e.locale.getShortMonths?e.locale.getShortMonths(r.locale):[]),h=e.getMonth(i),m=b.createElement("button",{type:"button",key:"year",onClick:s,tabIndex:-1,className:"".concat(n,"-year-btn")},go(i,{locale:r,format:r.yearFormat,generateConfig:e})),p=b.createElement("button",{type:"button",key:"month",onClick:l,tabIndex:-1,className:"".concat(n,"-month-btn")},r.monthFormat?go(i,{locale:r,format:r.monthFormat,generateConfig:e}):d[h]),v=r.monthBeforeYear?[p,m]:[m,p];return b.createElement(Jo,Ii({},t,{prefixCls:f,onSuperPrev:u,onPrev:a,onNext:o,onSuperNext:c}),v)}function na(t){var n=t.prefixCls,e=t.panelName,r=void 0===e?"date":e,i=t.keyboardConfig,o=t.active,a=t.operationRef,c=t.generateConfig,u=t.value,s=t.viewDate,f=t.onViewDateChange,d=t.onPanelChange,h=t.onSelect,m="".concat(n,"-").concat(r,"-panel");a.current={onKeyDown:function(t){return Co(t,Fi({onLeftRight:function(t){h(c.addDate(u||s,t),"key")},onCtrlLeftRight:function(t){h(c.addYear(u||s,t),"key")},onUpDown:function(t){h(c.addDate(u||s,7*t),"key")},onPageUpDown:function(t){h(c.addMonth(u||s,t),"key")}},i))}};var p=function(t){var n=c.addYear(s,t);f(n),d(null,n)},v=function(t){var n=c.addMonth(s,t);f(n),d(null,n)};return b.createElement("div",{className:l(m,Li({},"".concat(m,"-active"),o))},b.createElement(ta,Ii({},t,{prefixCls:n,value:u,viewDate:s,onPrevYear:function(){p(-1)},onNextYear:function(){p(1)},onPrevMonth:function(){v(-1)},onNextMonth:function(){v(1)},onMonthClick:function(){d("month",s)},onYearClick:function(){d("year",s)}})),b.createElement(Xo,Ii({},t,{onSelect:function(t){return h(t,"mouse")},prefixCls:n,value:u,viewDate:s,rowCount:6})))}function ea(t){var n=t.value,e=t.generateConfig,r=t.disabledMinutes,i=t.disabledSeconds,o=t.minutes,a=t.seconds,c=t.use12Hours;return function(t,u,s,l){var f=e.getNow(),d=n||f,h=u<0?e.getHour(f):u,b=s<0?e.getMinute(f):s,m=l<0?e.getSecond(f):l,p=r&&r(h);if(null!=p&&p.includes(b)){var v=o.find((function(t){return!p.includes(t.value)}));if(!v)return null;b=v.value}var g=i&&i(h,b);if(null!=g&&g.includes(m)){var x=a.find((function(t){return!g.includes(t.value)}));if(!x)return null;m=x.value}return Bo(e,d,c&&t?h+12:h,b,m)}}function ra(t){var n=t.prefixCls,e=t.units,r=t.onSelect,i=t.value,o=t.active,a=t.hideDisabledOptions,c=t.info,u=t.type,s="".concat(n,"-cell"),f=b.useContext(Io).open,d=b.useRef(null),h=b.useRef(new Map),m=b.useRef();return b.useLayoutEffect((function(){var t=h.current.get(i);t&&!1!==f&&Do(d.current,t.offsetTop,120)}),[i]),b.useLayoutEffect((function(){if(f){var t=h.current.get(i);t&&(m.current=(n=t,function r(){Mo(n)?Do(d.current,t.offsetTop,0):e=y((function(){r()}))}(),function(){y.cancel(e)}))}var n,e;return function(){var t;null===(t=m.current)||void 0===t||t.call(m)}}),[f]),b.createElement("ul",{className:l("".concat(n,"-column"),Li({},"".concat(n,"-column-active"),o)),ref:d,style:{position:"relative"}},e.map((function(t){var n;return a&&t.disabled?null:b.createElement("li",{key:t.value,ref:function(n){h.current.set(t.value,n)},className:l(s,(n={},Li(n,"".concat(s,"-disabled"),t.disabled),Li(n,"".concat(s,"-selected"),i===t.value),n)),onClick:function(){t.disabled||r(t.value)}},c.cellRender?c.cellRender(t.value,{today:c.today,locale:c.locale,originNode:b.createElement("div",{className:"".concat(s,"-inner")},t.label),type:"time",subType:u}):b.createElement("div",{className:"".concat(s,"-inner")},t.label))})))}function ia(t,n){if(t.length!==n.length)return!0;for(var e=0;e<t.length;e+=1)if(t[e].disabled!==n[e].disabled)return!0;return!1}function oa(t,n,e,r){for(var i=[],o=e>=1?0|e:1,a=t;a<=n;a+=o)i.push({label:Ho(a,2),value:a,disabled:(r||[]).includes(a)});return i}function aa(t){var n,e=t.generateConfig,r=t.prefixCls,i=t.operationRef,o=t.activeColumnIndex,a=t.value,c=t.showHour,u=t.showMinute,s=t.showSecond,l=t.use12Hours,f=t.hourStep,d=void 0===f?1:f,h=t.minuteStep,m=void 0===h?1:h,p=t.secondStep,v=void 0===p?1:p,g=t.disabledHours,x=t.disabledMinutes,y=t.disabledSeconds,_=t.disabledTime,k=t.hideDisabledOptions,z=t.onSelect,M=t.cellRender,S=t.locale,D=[],C="".concat(r,"-content"),j="".concat(r,"-time-panel"),Y=a?e.getHour(a):-1,O=Y,N=a?e.getMinute(a):-1,E=a?e.getSecond(a):-1,T=e.getNow(),A=Wi(b.useMemo((function(){if(_){var t=_(T);return[t.disabledHours,t.disabledMinutes,t.disabledSeconds]}return[g,x,y]}),[g,x,y,_,T]),3),R=A[0],P=A[1],I=A[2],L=oa(0,23,d,R&&R()),H=w((function(){return L}),L,ia);l&&(n=O>=12,O%=12);var F=Wi(b.useMemo((function(){if(!l)return[!1,!1];var t=[!0,!0];return H.forEach((function(n){n.disabled||(n.value>=12?t[1]=!1:t[0]=!1)})),t}),[l,H]),2),$=F[0],U=F[1],W=b.useMemo((function(){return l?H.filter(n?function(t){return t.value>=12}:function(t){return t.value<12}).map((function(t){var n=t.value%12,e=0===n?"12":Ho(n,2);return Fi(Fi({},t),{},{label:e,value:n})})):H}),[l,n,H]),G=oa(0,59,m,P&&P(Y)),V=oa(0,59,v,I&&I(Y,N)),B=ea({value:a,generateConfig:e,disabledMinutes:P,disabledSeconds:I,minutes:G,seconds:V,use12Hours:l});function q(t,n,e,r,i){!1!==t&&D.push({node:b.cloneElement(n,{prefixCls:j,value:e,active:o===D.length,onSelect:i,units:r,hideDisabledOptions:k}),onSelect:i,value:e,units:r})}i.current={onUpDown:function(t){var n=D[o];if(n)for(var e=n.units.findIndex((function(t){return t.value===n.value})),r=n.units.length,i=1;i<r;i+=1){var a=n.units[(e+t*i+r)%r];if(!0!==a.disabled){n.onSelect(a.value);break}}}},q(c,b.createElement(ra,{key:"hour",type:"hour",info:{today:T,locale:S,cellRender:M}}),O,W,(function(t){z(B(n,t,N,E),"mouse")})),q(u,b.createElement(ra,{key:"minute",type:"minute",info:{today:T,locale:S,cellRender:M}}),N,G,(function(t){z(B(n,O,t,E),"mouse")})),q(s,b.createElement(ra,{key:"second",type:"second",info:{today:T,locale:S,cellRender:M}}),E,V,(function(t){z(B(n,O,N,t),"mouse")}));var K=-1;return"boolean"==typeof n&&(K=n?1:0),q(!0===l,b.createElement(ra,{key:"meridiem",type:"meridiem",info:{today:T,locale:S,cellRender:M}}),K,[{label:"AM",value:0,disabled:$},{label:"PM",value:1,disabled:U}],(function(t){z(B(!!t,O,N,E),"mouse")})),b.createElement("div",{className:C},D.map((function(t){return t.node})))}function ca(t){if(b.useContext(Io).hideHeader)return null;var n=t.generateConfig,e=t.locale,r=t.value,i=t.format,o="".concat(t.prefixCls,"-header");return b.createElement(Jo,{prefixCls:o},r?go(r,{locale:e,format:i,generateConfig:n}):" ")}function ua(t){var n=t.generateConfig,e=t.format,r=void 0===e?"HH:mm:ss":e,i=t.prefixCls,o=t.active,a=t.operationRef,c=t.showHour,u=t.showMinute,s=t.showSecond,f=t.use12Hours,d=void 0!==f&&f,h=t.onSelect,m=t.value,p="".concat(i,"-time-panel"),v=b.useRef(),g=Wi(b.useState(-1),2),x=g[0],w=g[1],y=[c,u,s,d].filter((function(t){return!1!==t})).length;return a.current={onKeyDown:function(t){return Co(t,{onLeftRight:function(t){w((x+t+y)%y)},onUpDown:function(t){-1===x?w(0):v.current&&v.current.onUpDown(t)},onEnter:function(){h(m||n.getNow(),"key"),w(-1)}})},onBlur:function(){w(-1)}},b.createElement("div",{className:l(p,Li({},"".concat(p,"-active"),o))},b.createElement(ca,Ii({},t,{format:r,prefixCls:i})),b.createElement(aa,Ii({},t,{prefixCls:i,activeColumnIndex:x,operationRef:v})))}var sa=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return n}("date","time"),la=function(t,n){for(var e=new Set(t),r=0;r<=n;r++)if(!e.has(r))return r;return 0};function fa(t){var n=t.operationRef,e=t.generateConfig,r=t.value,i=t.defaultValue,o=t.disabledTime,a=t.showTime,c=t.onSelect,u=t.cellRender,s="".concat(t.prefixCls,"-datetime-panel"),f=Wi(b.useState(null),2),d=f[0],h=f[1],m=b.useRef({}),p=b.useRef({}),v="object"===Ci(a)?Fi({},a):{},g=function(t){p.current.onBlur&&p.current.onBlur(t),h(null)};n.current={onKeyDown:function(t){if(t.which===ko.TAB){var n=function(t){var n=sa.indexOf(d)+t;return sa[n]||null}(t.shiftKey?-1:1);return h(n),n&&t.preventDefault(),!0}if(d){var e="date"===d?m:p;return e.current&&e.current.onKeyDown&&e.current.onKeyDown(t),!0}return!![ko.LEFT,ko.RIGHT,ko.UP,ko.DOWN].includes(t.which)&&(h("date"),!0)},onBlur:g,onClose:g};var x=function(t,n){var a=t;if("date"===n&&!r&&v.defaultValue)a=e.setHour(a,e.getHour(v.defaultValue)),a=e.setMinute(a,e.getMinute(v.defaultValue)),a=e.setSecond(a,e.getSecond(v.defaultValue));else if("time"===n&&!r&&i)a=e.setYear(a,e.getYear(i)),a=e.setMonth(a,e.getMonth(i)),a=e.setDate(a,e.getDate(i));else if("date"===n&&r&&o){var u,s,l,f=o(r),d=la((null===(u=f.disabledHours)||void 0===u?void 0:u.call(f))||[-1],23),h=la((null===(s=f.disabledMinutes)||void 0===s?void 0:s.call(f,d))||[-1],59),b=la((null===(l=f.disabledSeconds)||void 0===l?void 0:l.call(f,d,h))||[-1],59);a=e.setHour(a,d),a=e.setMinute(a,h),a=e.setSecond(a,b)}c&&c(a,"mouse")},w=o?o(r||null):{};return b.createElement("div",{className:l(s,Li({},"".concat(s,"-active"),d))},b.createElement(na,Ii({},t,{cellRender:u,operationRef:m,active:"date"===d,onSelect:function(t){x(qo(e,t,r||"object"!==Ci(a)?null:a.defaultValue),"date")}})),b.createElement(ua,Ii({},t,{cellRender:u?function(t,n){return u(t,Fi(Fi({},n),{},{type:"time"}))}:void 0,format:void 0},v,w,{disabledTime:null,defaultValue:void 0,operationRef:p,active:"time"===d,onSelect:function(t){x(t,"time")}})))}function da(t){var n=t.prefixCls,e=t.generateConfig,r=t.viewDate,i=t.onPrevDecades,o=t.onNextDecades;if(b.useContext(Io).hideHeader)return null;var a="".concat(n,"-header"),c=e.getYear(r),u=Math.floor(c/ao)*ao,s=u+ao-1;return b.createElement(Jo,Ii({},t,{prefixCls:a,onSuperPrev:i,onSuperNext:o}),u,"-",s)}function ha(t){var n=t.viewDate,e=t.generateConfig,r=t.cellRender,i=t.locale,o="".concat(t.prefixCls,"-cell"),a=e.getYear(n),c=Math.floor(a/oo)*oo,u=Math.floor(a/ao)*ao,s=u+ao-1,l=e.setYear(n,u-Math.ceil(10));return b.createElement(Zo,Ii({},t,{rowNum:4,colNum:3,baseDate:l,getCellNode:r?function(t,n){return r(t,{originNode:n,today:e.getNow(),type:"decade",locale:i})}:void 0,getCellText:function(t){var n=e.getYear(t);return"".concat(n,"-").concat(n+9)},getCellClassName:function(t){var n,r=e.getYear(t),i=r+9;return Li(n={},"".concat(o,"-in-view"),u<=r&&i<=s),Li(n,"".concat(o,"-selected"),r===c),n},getCellDate:function(t,n){return e.addYear(t,n*oo)}}))}function ba(t){var n=t.prefixCls,e=t.onViewDateChange,r=t.generateConfig,i=t.viewDate,o=t.operationRef,a=t.onSelect,c=t.onPanelChange,u="".concat(n,"-decade-panel");o.current={onKeyDown:function(t){return Co(t,{onLeftRight:function(t){a(r.addYear(i,t*oo),"key")},onCtrlLeftRight:function(t){a(r.addYear(i,t*ao),"key")},onUpDown:function(t){a(r.addYear(i,t*oo*3),"key")},onEnter:function(){c("year",i)}})}};var s=function(t){var n=r.addYear(i,t*ao);e(n),c(null,n)};return b.createElement("div",{className:u},b.createElement(da,Ii({},t,{prefixCls:n,onPrevDecades:function(){s(-1)},onNextDecades:function(){s(1)}})),b.createElement(ha,Ii({},t,{prefixCls:n,onSelect:function(t){a(t,"mouse"),c("year",t)}})))}function ma(t){var n=t.prefixCls,e=t.generateConfig,r=t.locale,i=t.viewDate,o=t.onNextYear,a=t.onPrevYear,c=t.onYearClick;if(b.useContext(Io).hideHeader)return null;var u="".concat(n,"-header");return b.createElement(Jo,Ii({},t,{prefixCls:u,onSuperPrev:a,onSuperNext:o}),b.createElement("button",{type:"button",onClick:c,className:"".concat(n,"-year-btn")},go(i,{locale:r,format:r.yearFormat,generateConfig:e})))}function pa(t){var n=t.prefixCls,e=t.locale,r=t.value,i=t.viewDate,o=t.generateConfig,a=t.cellRender,c=b.useContext(Vo),u=c.rangedValue,s=c.hoverRangedValue,l=Go({cellPrefixCls:"".concat(n,"-cell"),value:r,generateConfig:o,rangedValue:u,hoverRangedValue:s,isSameCell:function(t,n){return fo(o,t,n)},isInView:function(){return!0},offsetCell:function(t,n){return o.addMonth(t,n)}}),f=e.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(e.locale):[]),d=o.setMonth(i,0);return b.createElement(Zo,Ii({},t,{rowNum:4,colNum:3,baseDate:d,getCellNode:a?function(t,n){return a(t,{originNode:n,locale:e,today:o.getNow(),type:"month"})}:void 0,getCellText:function(t){return e.monthFormat?go(t,{locale:e,format:e.monthFormat,generateConfig:o}):f[o.getMonth(t)]},getCellClassName:l,getCellDate:o.addMonth,titleCell:function(t){return go(t,{locale:e,format:"YYYY-MM",generateConfig:o})}}))}function va(t){var n=t.prefixCls,e=t.operationRef,r=t.onViewDateChange,i=t.generateConfig,o=t.value,a=t.viewDate,c=t.onPanelChange,u=t.onSelect,s="".concat(n,"-month-panel");e.current={onKeyDown:function(t){return Co(t,{onLeftRight:function(t){u(i.addMonth(o||a,t),"key")},onCtrlLeftRight:function(t){u(i.addYear(o||a,t),"key")},onUpDown:function(t){u(i.addMonth(o||a,3*t),"key")},onEnter:function(){c("date",o||a)}})}};var l=function(t){var n=i.addYear(a,t);r(n),c(null,n)};return b.createElement("div",{className:s},b.createElement(ma,Ii({},t,{prefixCls:n,onPrevYear:function(){l(-1)},onNextYear:function(){l(1)},onYearClick:function(){c("year",a)}})),b.createElement(pa,Ii({},t,{prefixCls:n,onSelect:function(t){u(t,"mouse"),c("date",t)}})))}function ga(t){var n=t.prefixCls,e=t.generateConfig,r=t.locale,i=t.viewDate,o=t.onNextYear,a=t.onPrevYear,c=t.onYearClick;if(b.useContext(Io).hideHeader)return null;var u="".concat(n,"-header");return b.createElement(Jo,Ii({},t,{prefixCls:u,onSuperPrev:a,onSuperNext:o}),b.createElement("button",{type:"button",onClick:c,className:"".concat(n,"-year-btn")},go(i,{locale:r,format:r.yearFormat,generateConfig:e})))}function xa(t){var n=t.prefixCls,e=t.locale,r=t.value,i=t.viewDate,o=t.generateConfig,a=t.cellRender,c=b.useContext(Vo),u=c.rangedValue,s=c.hoverRangedValue,l=Go({cellPrefixCls:"".concat(n,"-cell"),value:r,generateConfig:o,rangedValue:u,hoverRangedValue:s,isSameCell:function(t,n){return lo(o,t,n)},isInView:function(){return!0},offsetCell:function(t,n){return o.addMonth(t,3*n)}}),f=o.setDate(o.setMonth(i,0),1);return b.createElement(Zo,Ii({},t,{rowNum:1,colNum:4,baseDate:f,getCellNode:a?function(t,n){return a(t,{originNode:n,locale:e,today:o.getNow(),type:"quarter"})}:void 0,getCellText:function(t){return go(t,{locale:e,format:e.quarterFormat||"[Q]Q",generateConfig:o})},getCellClassName:l,getCellDate:function(t,n){return o.addMonth(t,3*n)},titleCell:function(t){return go(t,{locale:e,format:"YYYY-[Q]Q",generateConfig:o})}}))}function wa(t){var n=t.prefixCls,e=t.operationRef,r=t.onViewDateChange,i=t.generateConfig,o=t.value,a=t.viewDate,c=t.onPanelChange,u=t.onSelect,s="".concat(n,"-quarter-panel");e.current={onKeyDown:function(t){return Co(t,{onLeftRight:function(t){u(i.addMonth(o||a,3*t),"key")},onCtrlLeftRight:function(t){u(i.addYear(o||a,t),"key")},onUpDown:function(t){u(i.addYear(o||a,t),"key")}})}};var l=function(t){var n=i.addYear(a,t);r(n),c(null,n)};return b.createElement("div",{className:s},b.createElement(ga,Ii({},t,{prefixCls:n,onPrevYear:function(){l(-1)},onNextYear:function(){l(1)},onYearClick:function(){c("year",a)}})),b.createElement(xa,Ii({},t,{prefixCls:n,onSelect:function(t){u(t,"mouse")}})))}function ya(t){var n=t.prefixCls,e=t.generateConfig,r=t.locale,i=t.value,o=t.disabledDate,a=t.onSelect,c=b.useContext(Vo),u=c.rangedValue,s=c.hoverRangedValue,f=b.useContext(Io),d=f.onDateMouseEnter,h=f.onDateMouseLeave,m=(null==s?void 0:s[0])||(null==u?void 0:u[0]),p=(null==s?void 0:s[1])||(null==u?void 0:u[1]),v="".concat(n,"-cell"),g="".concat(n,"-week-panel-row");return b.createElement(na,Ii({},t,{panelName:"week",prefixColumn:function(t){var n=wo({cellDate:t,mode:"week",disabledDate:o,generateConfig:e});return b.createElement("td",{key:"week",className:l(v,"".concat(v,"-week")),onClick:function(){n||a(t,"mouse")},onMouseEnter:function(){!n&&d&&d(t)},onMouseLeave:function(){!n&&h&&h(t)}},b.createElement("div",{className:"".concat(v,"-inner")},e.locale.getWeek(r.locale,t)))},rowClassName:function(t){var n,o=bo(e,r.locale,m,t),a=bo(e,r.locale,p,t);return l(g,(Li(n={},"".concat(g,"-selected"),!u&&bo(e,r.locale,i,t)),Li(n,"".concat(g,"-range-start"),o),Li(n,"".concat(g,"-range-end"),a),Li(n,"".concat(g,"-range-hover"),!o&&!a&&po(e,m,p,t)),n))},keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var _a=10;function ka(t){var n=t.prefixCls,e=t.generateConfig,r=t.viewDate,i=t.onPrevDecade,o=t.onNextDecade,a=t.onDecadeClick;if(b.useContext(Io).hideHeader)return null;var c="".concat(n,"-header"),u=e.getYear(r),s=Math.floor(u/_a)*_a,l=s+_a-1;return b.createElement(Jo,Ii({},t,{prefixCls:c,onSuperPrev:i,onSuperNext:o}),b.createElement("button",{type:"button",onClick:a,className:"".concat(n,"-decade-btn")},s,"-",l))}function za(t){var n=t.prefixCls,e=t.value,r=t.viewDate,i=t.locale,o=t.generateConfig,a=t.cellRender,c=b.useContext(Vo),u=c.rangedValue,s=c.hoverRangedValue,l="".concat(n,"-cell"),f=o.getYear(r),d=Math.floor(f/_a)*_a,h=d+_a-1,m=o.setYear(r,d-Math.ceil(1)),p=o.getNow(),v=Go({cellPrefixCls:l,value:e,generateConfig:o,rangedValue:u,hoverRangedValue:s,isSameCell:function(t,n){return uo(o,t,n)},isInView:function(t){var n=o.getYear(t);return d<=n&&n<=h},offsetCell:function(t,n){return o.addYear(t,n)}});return b.createElement(Zo,Ii({},t,{rowNum:4,colNum:3,baseDate:m,getCellNode:a?function(t,n){return a(t,{originNode:n,today:p,type:"year",locale:i})}:void 0,getCellText:o.getYear,getCellClassName:v,getCellDate:o.addYear,titleCell:function(t){return go(t,{locale:i,format:"YYYY",generateConfig:o})}}))}function Ma(t){var n=t.prefixCls,e=t.operationRef,r=t.onViewDateChange,i=t.generateConfig,o=t.value,a=t.viewDate,c=t.sourceMode,u=t.onSelect,s=t.onPanelChange,l="".concat(n,"-year-panel");e.current={onKeyDown:function(t){return Co(t,{onLeftRight:function(t){u(i.addYear(o||a,t),"key")},onCtrlLeftRight:function(t){u(i.addYear(o||a,t*_a),"key")},onUpDown:function(t){u(i.addYear(o||a,3*t),"key")},onEnter:function(){s("date"===c?"date":"month",o||a)}})}};var f=function(t){var n=i.addYear(a,10*t);r(n),s(null,n)};return b.createElement("div",{className:l},b.createElement(ka,Ii({},t,{prefixCls:n,onPrevDecade:function(){f(-1)},onNextDecade:function(){f(1)},onDecadeClick:function(){s("decade",a)}})),b.createElement(za,Ii({},t,{prefixCls:n,onSelect:function(t){s("date"===c?"date":"month",t),u(t,"mouse")}})))}function Sa(t,n,e){return e?b.createElement("div",{className:"".concat(t,"-footer-extra")},e(n)):null}function Da(t){var n,e,r=t.prefixCls,i=t.components,o=t.needConfirmButton,a=t.onNow,c=t.onOk,u=t.okDisabled,s=t.locale;if(o){var l=(void 0===i?{}:i).button||"button";a&&!1!==t.showNow&&(n=b.createElement("li",{className:"".concat(r,"-now")},b.createElement("a",{className:"".concat(r,"-now-btn"),onClick:a},s.now))),e=o&&b.createElement("li",{className:"".concat(r,"-ok")},b.createElement(l,{disabled:u,onClick:c},s.ok))}return n||e?b.createElement("ul",{className:"".concat(r,"-ranges")},n,e):null}var Ca=["date","month"];function ja(t){var n,e=t.prefixCls,r=void 0===e?"rc-picker":e,i=t.className,o=t.style,a=t.locale,c=t.generateConfig,u=t.value,s=t.defaultValue,f=t.pickerValue,d=t.defaultPickerValue,h=t.disabledDate,m=t.mode,p=t.picker,v=void 0===p?"date":p,g=t.tabIndex,w=void 0===g?0:g,y=t.showNow,_=t.showTime,k=t.showToday,z=t.renderExtraFooter,M=t.hideHeader,S=t.onSelect,D=t.onChange,C=t.onPanelChange,j=t.onMouseDown,Y=t.onPickerValueChange,O=t.onOk,N=t.components,E=t.direction,T=t.hourStep,A=void 0===T?1:T,R=t.minuteStep,P=void 0===R?1:R,I=t.secondStep,L=void 0===I?1:I,H=t.dateRender,F=t.monthCellRender,$=t.cellRender,U="date"===v&&!!_||"time"===v,W=24%A==0,G=60%P==0,V=60%L==0,B=b.useContext(Io),q=B.operationRef,K=B.onSelect,Z=B.hideRanges,X=B.defaultOpenValue,Q=b.useContext(Vo),J=Q.inRange,tt=Q.panelPosition,nt=Q.rangedValue,et=Q.hoverRangedValue,rt=b.useRef({}),it=b.useRef(!0),ot=Wi(Ki(null,{value:u,defaultValue:s,postState:function(t){return!t&&X&&"time"===v?X:t}}),2),at=ot[0],ct=ot[1],ut=Ki(null,{value:f,defaultValue:d||at,postState:function(t){var n=c.getNow();if(!t)return n;if(!at&&_){var e="object"===Ci(_)?_.defaultValue:s;return qo(c,Array.isArray(t)?t[0]:t,e||n)}return Array.isArray(t)?t[0]:t}}),st=Wi(ut,2),lt=st[0],ft=st[1],dt=function(t){ft(t),Y&&Y(t)},ht=function(t){var n=Eo[v];return n?n(t):t},bt=Wi(Ki((function(){return"time"===v?"time":ht("date")}),{value:m}),2),mt=bt[0],pt=bt[1];b.useEffect((function(){pt(v)}),[v]);var vt,gt=Wi(b.useState((function(){return mt})),2),xt=gt[0],wt=gt[1],yt=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(mt===v||e)&&(ct(t),S&&S(t),K&&K(t,n),!D||mo(c,t,at)||null!=h&&h(t)||D(t))},_t=function(t){if(rt.current&&rt.current.onKeyDown){var n=!0,e=t.which;if([ko.LEFT,ko.RIGHT,ko.UP,ko.DOWN,ko.PAGE_UP,ko.PAGE_DOWN,ko.ENTER].includes(e)&&(t.preventDefault(),e!==ko.ENTER&&0===w&&(n=function(t){if(Ca.includes(mt)){var n,e,r="date"===mt;switch(e=t===ko.PAGE_UP||t===ko.PAGE_DOWN?r?c.addMonth:c.addYear:r?c.addDate:c.addMonth,t){case ko.LEFT:case ko.PAGE_UP:n=e(lt,-1);break;case ko.RIGHT:case ko.PAGE_DOWN:n=e(lt,1);break;case ko.UP:case ko.DOWN:n=e(lt,Number("".concat(t===ko.UP?"-":"").concat(r?7:3)))}if(n)return!(null!=h&&h(n))}return!0}(e))),n)return rt.current.onKeyDown(t)}return x(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1};q&&"right"!==tt&&(q.current={onKeyDown:_t,onClose:function(){rt.current&&rt.current.onClose&&rt.current.onClose()}}),b.useEffect((function(){u&&!it.current&&ft(u)}),[u]),b.useEffect((function(){it.current=!1}),[]);var kt,zt,Mt,St=Lo({cellRender:$,monthCellRender:F,dateRender:H}),Dt=Fi(Fi({},t),{},{cellRender:St,operationRef:rt,prefixCls:r,viewDate:lt,value:at,onViewDateChange:dt,sourceMode:xt,onPanelChange:function(t,n){var e=ht(t||mt);wt(mt),pt(e),C&&(mt!==e||mo(c,lt,lt))&&C(n,e)},disabledDate:h});switch(delete Dt.onChange,delete Dt.onSelect,mt){case"decade":vt=b.createElement(ba,Ii({},Dt,{onSelect:function(t,n){dt(t),yt(t,n)}}));break;case"year":vt=b.createElement(Ma,Ii({},Dt,{onSelect:function(t,n){dt(t),yt(t,n)}}));break;case"month":vt=b.createElement(va,Ii({},Dt,{onSelect:function(t,n){dt(t),yt(t,n)}}));break;case"quarter":vt=b.createElement(wa,Ii({},Dt,{onSelect:function(t,n){dt(t),yt(t,n)}}));break;case"week":vt=b.createElement(ya,Ii({},Dt,{onSelect:function(t,n){dt(t),yt(t,n)}}));break;case"time":delete Dt.showTime,vt=b.createElement(ua,Ii({},Dt,"object"===Ci(_)?_:null,{onSelect:function(t,n){dt(t),yt(t,n)}}));break;default:vt=b.createElement(_?fa:na,Ii({},Dt,{onSelect:function(t,n){dt(t),yt(t,n)}}))}if(Z||(kt=Sa(r,mt,z),zt=_&&"date"!==mt?null:Da({prefixCls:r,components:N,needConfirmButton:U,okDisabled:!at||h&&h(at),locale:a,showNow:y,onNow:U&&function(){var t=c.getNow(),n=function(t,n,e,r,i,o){var a=Math.floor(t/r)*r;if(a<t)return[a,60-i,60-o];var c=Math.floor(n/i)*i;return c<n?[a,c,60-o]:[a,c,Math.floor(e/o)*o]}(c.getHour(t),c.getMinute(t),c.getSecond(t),W?A:1,G?P:1,V?L:1),e=Bo(c,t,n[0],n[1],n[2]);yt(e,"submit")},onOk:function(){at&&(yt(at,"submit",!0),O&&O(at))}})),k&&"date"===mt&&"date"===v&&!_){var Ct=c.getNow(),jt="".concat(r,"-today-btn"),Yt=h&&h(Ct);Mt=b.createElement("a",{className:l(jt,Yt&&"".concat(jt,"-disabled")),"aria-disabled":Yt,onClick:function(){Yt||yt(Ct,"mouse",!0)}},a.today)}return b.createElement(Io.Provider,{value:Fi(Fi({},B),{},{mode:mt,hideHeader:"hideHeader"in t?M:B.hideHeader,hidePrevBtn:J&&"right"===tt,hideNextBtn:J&&"left"===tt})},b.createElement("div",{tabIndex:w,className:l("".concat(r,"-panel"),i,(n={},Li(n,"".concat(r,"-panel-has-range"),nt&&nt[0]&&nt[1]),Li(n,"".concat(r,"-panel-has-range-hover"),et&&et[0]&&et[1]),Li(n,"".concat(r,"-panel-rtl"),"rtl"===E),n)),style:o,onKeyDown:_t,onBlur:function(t){rt.current&&rt.current.onBlur&&rt.current.onBlur(t)},onMouseDown:j},vt,kt||zt||Mt?b.createElement("div",{className:"".concat(r,"-footer")},kt,zt,Mt):null))}function Ya(t){return Ya="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ya(t)}function Oa(t,n,e){return(n=function(t){var n=function(t){if("object"!==Ya(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!==Ya(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ya(n)?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function Na(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function Ea(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?Na(Object(e),!0).forEach((function(n){Oa(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Na(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function Ta(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function Aa(t,n){if(t){if("string"==typeof t)return Ta(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ta(t,n):void 0}}function Ra(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,i,o,a,c=[],u=!0,s=!1;try{if(o=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;u=!1}else for(;!(u=(r=o.call(e)).done)&&(c.push(r.value),c.length!==n);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(t,n)||Aa(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pa(t,n){if(null==t)return{};var e,r,i=function(t,n){if(null==t)return{};var e,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n.indexOf(e=o[r])>=0||(i[e]=t[e]);return i}(t,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n.indexOf(e=o[r])>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(i[e]=t[e])}return i}function Ia(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function La(t,n){if(t){if("string"==typeof t)return Ia(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ia(t,n):void 0}}function Ha(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,i,o,a,c=[],u=!0,s=!1;try{if(o=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;u=!1}else for(;!(u=(r=o.call(e)).done)&&(c.push(r.value),c.length!==n);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(t,n)||La(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Fa=b.createContext(null);var $a,Ua=[],Wa="data-rc-order",Ga="rc-util-key",Va=new Map;function Ba(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.mark;return n?n.startsWith("data-")?n:"data-".concat(n):Ga}function qa(t){return t.attachTo?t.attachTo:document.querySelector("head")||document.body}function Ka(t){return"queue"===t?"prependQueue":t?"prepend":"append"}function Za(t){return Array.from((Va.get(t)||t).children).filter((function(t){return"STYLE"===t.tagName}))}function Xa(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!k())return null;var e=n.csp,r=n.prepend,i=document.createElement("style");i.setAttribute(Wa,Ka(r)),null!=e&&e.nonce&&(i.nonce=null==e?void 0:e.nonce),i.innerHTML=t;var o=qa(n),a=o.firstChild;if(r){if("queue"===r){var c=Za(o).filter((function(t){return["prepend","prependQueue"].includes(t.getAttribute(Wa))}));if(c.length)return o.insertBefore(i,c[c.length-1].nextSibling),i}o.insertBefore(i,a)}else o.appendChild(i);return i}function Qa(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=qa(n);return Za(e).find((function(e){return e.getAttribute(Ba(n))===t}))}function Ja(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=Qa(t,n);if(e){var r=qa(n);r.removeChild(e)}}function tc(t,n){var e=Va.get(t);if(!e||!function(t,n){if(!t)return!1;if(t.contains)return t.contains(n);for(var e=n;e;){if(e===t)return!0;e=e.parentNode}return!1}(document,e)){var r=Xa("",n);Va.set(t,r.parentNode),t.removeChild(r)}}function nc(t){var n=t.match(/^(.*)px$/),e=Number(null==n?void 0:n[1]);return Number.isNaN(e)?function(){if("undefined"==typeof document)return 0;if(void 0===$a){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),e=n.style;e.position="absolute",e.top="0",e.left="0",e.pointerEvents="none",e.visibility="hidden",e.width="200px",e.height="150px",e.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var r=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;r===i&&(i=n.clientWidth),document.body.removeChild(n),$a=r-i}return $a}():e}var ec="rc-util-locker-".concat(Date.now()),rc=0;function ic(t){var n=!!t,e=Ha(b.useState((function(){return rc+=1,"".concat(ec,"_").concat(rc)})),1)[0];_((function(){if(n){var t=function(t){if(!("undefined"!=typeof document&&t&&t instanceof Element))return{width:0,height:0};var n=getComputedStyle(t,"::-webkit-scrollbar"),e=n.height;return{width:nc(n.width),height:nc(e)}}(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;!function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};tc(qa(e),e);var r,i,o,a=Qa(n,e);if(a)return null!==(r=e.csp)&&void 0!==r&&r.nonce&&a.nonce!==(null===(i=e.csp)||void 0===i?void 0:i.nonce)&&(a.nonce=null===(o=e.csp)||void 0===o?void 0:o.nonce),a.innerHTML!==t&&(a.innerHTML=t),a;var c=Xa(t,e);c.setAttribute(Ba(e),n)}("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(t,"px);"):"","\n}"),e)}else Ja(e);return function(){Ja(e)}}),[n,e])}var oc=!1,ac=function(t){return!1!==t&&(k()&&t?"string"==typeof t?document.querySelector(t):"function"==typeof t?t():t:null)},cc=b.forwardRef((function(t,n){var e=t.open,r=t.autoLock,i=t.getContainer,o=t.autoDestroy,a=void 0===o||o,c=t.children,u=Ha(b.useState(e),2),s=u[1],l=u[0]||e;b.useEffect((function(){(a||e)&&s(e)}),[e,a]);var f=Ha(b.useState((function(){return ac(i)})),2),d=f[0],h=f[1];b.useEffect((function(){var t=ac(i);h(null!=t?t:null)}));var p=function(t){var n=Ha(b.useState((function(){return k()?document.createElement("div"):null})),1)[0],e=b.useRef(!1),r=b.useContext(Fa),i=Ha(b.useState(Ua),2),o=i[0],a=i[1],c=r||(e.current?void 0:function(t){a((function(n){return[t].concat(function(t){if(Array.isArray(t))return Ia(t)}(e=n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||La(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var e}))});function u(){n.parentElement||document.body.appendChild(n),e.current=!0}function s(){var t;null===(t=n.parentElement)||void 0===t||t.removeChild(n),e.current=!1}return _((function(){return t?r?r(u):u():s(),s}),[t]),_((function(){o.length&&(o.forEach((function(t){return t()})),a(Ua))}),[o]),[n,c]}(l&&!d),v=Ha(p,2),g=v[0],x=v[1],w=null!=d?d:g;ic(r&&e&&k()&&(w===g||w===document.body));var y=null;c&&z(c)&&n&&(y=c.ref);var S=M(y,n);if(!l||!k()||void 0===d)return null;var D=!1===w||oc,C=c;return n&&(C=b.cloneElement(c,{ref:S})),b.createElement(Fa.Provider,{value:x},D?C:m.createPortal(C,w))}));function uc(t){var n;return null==t||null===(n=t.getRootNode)||void 0===n?void 0:n.call(t)}function sc(t){return function(t){return uc(t)!==(null==t?void 0:t.ownerDocument)}(t)?uc(t):null}var lc=0;function fc(t){var n=Vi(b.useState("ssr-id"),2),e=n[0],r=n[1],i=Qi({},S).useId,o=null==i?void 0:i();return b.useEffect((function(){if(!i){var t=lc;lc+=1,r("rc_unique_".concat(t))}}),[]),t||o||e}const dc=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var t=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==t?void 0:t.substr(0,4))};var hc=b.createContext(null);function bc(t){return t?Array.isArray(t)?t:[t]:[]}function mc(t,n,e,r){return b.useMemo((function(){var i=bc(null!=e?e:n),o=bc(null!=r?r:n),a=new Set(i),c=new Set(o);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),c.has("hover")&&(c.delete("hover"),c.add("click"))),[a,c]}),[t,n,e,r])}function pc(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2?arguments[2]:void 0;return e?t[0]===n[0]:t[0]===n[0]&&t[1]===n[1]}function vc(t,n,e,r){for(var i=e.points,o=Object.keys(t),a=0;a<o.length;a+=1){var c,u=o[a];if(pc(null===(c=t[u])||void 0===c?void 0:c.points,i,r))return"".concat(n,"-placement-").concat(u)}return""}function gc(t,n,e,r){return n||(e?{motionName:"".concat(t,"-").concat(e)}:r?{motionName:r}:null)}function xc(t){return t.ownerDocument.defaultView}function wc(t){for(var n=[],e=null==t?void 0:t.parentElement,r=["hidden","scroll","clip","auto"];e;){var i=xc(e).getComputedStyle(e);[i.overflowX,i.overflowY,i.overflow].some((function(t){return r.includes(t)}))&&n.push(e),e=e.parentElement}return n}function yc(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(t)?n:t}function _c(t){return yc(parseFloat(t),0)}function kc(t,n){var e=Ea({},t);return(n||[]).forEach((function(t){if(!(t instanceof HTMLBodyElement||t instanceof HTMLHtmlElement)){var n=xc(t).getComputedStyle(t),r=n.overflow,i=n.overflowClipMargin,o=n.borderTopWidth,a=n.borderBottomWidth,c=n.borderLeftWidth,u=n.borderRightWidth,s=t.getBoundingClientRect(),l=t.offsetHeight,f=t.clientHeight,d=t.offsetWidth,h=t.clientWidth,b=_c(o),m=_c(a),p=_c(c),v=_c(u),g=yc(Math.round(s.width/d*1e3)/1e3),x=yc(Math.round(s.height/l*1e3)/1e3),w=(d-h-p-v)*g,y=(l-f-b-m)*x,_=b*x,k=m*x,z=p*g,M=v*g,S=0,D=0;if("clip"===r){var C=_c(i);S=C*g,D=C*x}var j=s.x+z-S,Y=s.y+_-D,O=j+s.width+2*S-z-M-w,N=Y+s.height+2*D-_-k-y;e.left=Math.max(e.left,j),e.top=Math.max(e.top,Y),e.right=Math.min(e.right,O),e.bottom=Math.min(e.bottom,N)}})),e}function zc(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e="".concat(n),r=e.match(/^(.*)\%$/);return r?t*(parseFloat(r[1])/100):parseFloat(e)}function Mc(t,n){var e=Ra(n||[],2),r=e[1];return[zc(t.width,e[0]),zc(t.height,r)]}function Sc(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[t[0],t[1]]}function Dc(t,n){var e=n[0],r=n[1];return{x:"l"===r?t.x:"r"===r?t.x+t.width:t.x+t.width/2,y:"t"===e?t.y:"b"===e?t.y+t.height:t.y+t.height/2}}function Cc(t,n){var e={t:"b",b:"t",l:"r",r:"l"};return t.map((function(t,r){return r===n?e[t]||"c":t})).join("")}function jc(t,n,e,r,i,o,a){var c=Ra(b.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),2),u=c[0],s=c[1],l=b.useRef(0),f=b.useMemo((function(){return n?wc(n):[]}),[n]),d=b.useRef({});t||(d.current={});var h=p((function(){if(n&&e&&t){var c,u,l,h=n,b=h.ownerDocument,m=xc(h).getComputedStyle(h),p=m.width,v=m.height,g=m.position,x=h.style.left,w=h.style.top,y=h.style.right,_=h.style.bottom,k=Ea(Ea({},i[r]),o),z=b.createElement("div");if(null===(c=h.parentElement)||void 0===c||c.appendChild(z),z.style.left="".concat(h.offsetLeft,"px"),z.style.top="".concat(h.offsetTop,"px"),z.style.position=g,z.style.height="".concat(h.offsetHeight,"px"),z.style.width="".concat(h.offsetWidth,"px"),h.style.left="0",h.style.top="0",h.style.right="auto",h.style.bottom="auto",Array.isArray(e))l={x:e[0],y:e[1],width:0,height:0};else{var M=e.getBoundingClientRect();l={x:M.x,y:M.y,width:M.width,height:M.height}}var S=h.getBoundingClientRect(),C=b.documentElement,j=C.scrollTop,Y=C.scrollLeft,O=S.height,N=S.width,E=l.height,T=l.width,A={left:0,top:0,right:C.clientWidth,bottom:C.clientHeight},R=k.htmlRegion,P="visible",I="visibleFirst";"scroll"!==R&&R!==I&&(R=P);var L=R===I,H=kc({left:-Y,top:-j,right:C.scrollWidth-Y,bottom:C.scrollHeight-j},f),F=kc(A,f),$=R===P?F:H,U=L?F:$;h.style.left="auto",h.style.top="auto",h.style.right="0",h.style.bottom="0";var W=h.getBoundingClientRect();h.style.left=x,h.style.top=w,h.style.right=y,h.style.bottom=_,null===(u=h.parentElement)||void 0===u||u.removeChild(z);var G=yc(Math.round(N/parseFloat(p)*1e3)/1e3),V=yc(Math.round(O/parseFloat(v)*1e3)/1e3);if(0===G||0===V||D(e)&&!Mo(e))return;var B=k.targetOffset,q=Ra(Mc(S,k.offset),2),K=q[0],Z=q[1],X=Ra(Mc(l,B),2),Q=X[1];l.x-=X[0],l.y-=Q;var J=Ra(k.points||[],2),tt=J[0],nt=Sc(J[1]),et=Sc(tt),rt=Dc(l,nt),it=Dc(S,et),ot=Ea({},k),at=rt.x-it.x+K,ct=rt.y-it.y+Z;function ut(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$,r=S.x+t,i=S.y+n,o=r+N,a=i+O,c=Math.max(r,e.left),u=Math.max(i,e.top),s=Math.min(o,e.right),l=Math.min(a,e.bottom);return Math.max(0,(s-c)*(l-u))}var st,lt,ft,dt,ht=ut(at,ct),bt=ut(at,ct,F),mt=Dc(l,["t","l"]),pt=Dc(S,["t","l"]),vt=Dc(l,["b","r"]),gt=Dc(S,["b","r"]),xt=k.overflow||{},wt=xt.adjustX,yt=xt.adjustY,_t=xt.shiftX,kt=xt.shiftY,zt=function(t){return"boolean"==typeof t?t:t>=0};function Mt(){lt=(st=S.y+ct)+O,dt=(ft=S.x+at)+N}Mt();var St=zt(yt),Dt=et[0]===nt[0];if(St&&"t"===et[0]&&(lt>U.bottom||d.current.bt)){var Ct=ct;Dt?Ct-=O-E:Ct=mt.y-gt.y-Z;var jt=ut(at,Ct),Yt=ut(at,Ct,F);jt>ht||jt===ht&&(!L||Yt>=bt)?(d.current.bt=!0,ct=Ct,Z=-Z,ot.points=[Cc(et,0),Cc(nt,0)]):d.current.bt=!1}if(St&&"b"===et[0]&&(st<U.top||d.current.tb)){var Ot=ct;Dt?Ot+=O-E:Ot=vt.y-pt.y-Z;var Nt=ut(at,Ot),Et=ut(at,Ot,F);Nt>ht||Nt===ht&&(!L||Et>=bt)?(d.current.tb=!0,ct=Ot,Z=-Z,ot.points=[Cc(et,0),Cc(nt,0)]):d.current.tb=!1}var Tt=zt(wt),At=et[1]===nt[1];if(Tt&&"l"===et[1]&&(dt>U.right||d.current.rl)){var Rt=at;At?Rt-=N-T:Rt=mt.x-gt.x-K;var Pt=ut(Rt,ct),It=ut(Rt,ct,F);Pt>ht||Pt===ht&&(!L||It>=bt)?(d.current.rl=!0,at=Rt,K=-K,ot.points=[Cc(et,1),Cc(nt,1)]):d.current.rl=!1}if(Tt&&"r"===et[1]&&(ft<U.left||d.current.lr)){var Lt=at;At?Lt+=N-T:Lt=vt.x-pt.x-K;var Ht=ut(Lt,ct),Ft=ut(Lt,ct,F);Ht>ht||Ht===ht&&(!L||Ft>=bt)?(d.current.lr=!0,at=Lt,K=-K,ot.points=[Cc(et,1),Cc(nt,1)]):d.current.lr=!1}Mt();var $t=!0===_t?0:_t;"number"==typeof $t&&(ft<F.left&&(at-=ft-F.left-K,l.x+T<F.left+$t&&(at+=l.x-F.left+T-$t)),dt>F.right&&(at-=dt-F.right-K,l.x>F.right-$t&&(at+=l.x-F.right+$t)));var Ut=!0===kt?0:kt;"number"==typeof Ut&&(st<F.top&&(ct-=st-F.top-Z,l.y+E<F.top+Ut&&(ct+=l.y-F.top+E-Ut)),lt>F.bottom&&(ct-=lt-F.bottom-Z,l.y>F.bottom-Ut&&(ct+=l.y-F.bottom+Ut)));var Wt=S.x+at,Gt=Wt+N,Vt=S.y+ct,Bt=Vt+O,qt=l.x,Kt=qt+T,Zt=l.y,Xt=Zt+E,Qt=(Math.max(Wt,qt)+Math.min(Gt,Kt))/2-Wt,Jt=(Math.max(Vt,Zt)+Math.min(Bt,Xt))/2-Vt;null==a||a(n,ot),s({ready:!0,offsetX:at/G,offsetY:ct/V,offsetR:(W.right-S.x-(at+S.width))/G,offsetB:(W.bottom-S.y-(ct+S.height))/V,arrowX:Qt/G,arrowY:Jt/V,scaleX:G,scaleY:V,align:ot})}})),m=function(){s((function(t){return Ea(Ea({},t),{},{ready:!1})}))};return _(m,[r]),_((function(){t||m()}),[t]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,function(){l.current+=1;var t=l.current;Promise.resolve().then((function(){l.current===t&&h()}))}]}function Yc(t){return function(t){if(Array.isArray(t))return Ta(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Aa(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oc(t,n,e,r,i){_((function(){if(t&&n&&e){var o=e,a=wc(n),c=wc(o),u=xc(o),s=new Set([u].concat(Yc(a),Yc(c)));function l(){r(),i()}return s.forEach((function(t){t.addEventListener("scroll",l,{passive:!0})})),u.addEventListener("resize",l,{passive:!0}),r(),function(){s.forEach((function(t){t.removeEventListener("scroll",l),u.removeEventListener("resize",l)}))}}}),[t,n,e])}function Nc(t,n,e,r,i,o,a,c){var u=b.useRef(t),s=b.useRef(!1);u.current!==t&&(s.current=!0,u.current=t),b.useEffect((function(){var t=y((function(){s.current=!1}));return function(){y.cancel(t)}}),[t]),b.useEffect((function(){if(n&&r&&(!i||o)){var t=function(){var t=!1;return[function(n){t=a(n.target)},function(n){s.current||!u.current||t||a(n.target)||c(!1)}]},l=Ra(t(),2),f=l[0],d=l[1],h=Ra(t(),2),b=h[0],m=h[1],p=xc(r);p.addEventListener("mousedown",f,!0),p.addEventListener("click",d,!0),p.addEventListener("contextmenu",d,!0);var v=sc(e);return v&&(v.addEventListener("mousedown",b,!0),v.addEventListener("click",m,!0),v.addEventListener("contextmenu",m,!0)),function(){p.removeEventListener("mousedown",f,!0),p.removeEventListener("click",d,!0),p.removeEventListener("contextmenu",d,!0),v&&(v.removeEventListener("mousedown",b,!0),v.removeEventListener("click",m,!0),v.removeEventListener("contextmenu",m,!0))}}}),[n,e,r,i,o])}function Ec(){return Ec=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Ec.apply(this,arguments)}function Tc(t){return Tc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tc(t)}function Ac(t){var n=function(t){if("object"!==Tc(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!==Tc(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Tc(n)?n:String(n)}function Rc(t,n,e){return(n=Ac(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function Pc(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function Ic(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?Pc(Object(e),!0).forEach((function(n){Rc(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Pc(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function Lc(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function Hc(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,i,o,a,c=[],u=!0,s=!1;try{if(o=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;u=!1}else for(;!(u=(r=o.call(e)).done)&&(c.push(r.value),c.length!==n);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(t,n)||function(t,n){if(t){if("string"==typeof t)return Lc(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Lc(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fc(t,n){if(null==t)return{};var e,r,i=function(t,n){if(null==t)return{};var e,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n.indexOf(e=o[r])>=0||(i[e]=t[e]);return i}(t,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n.indexOf(e=o[r])>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(i[e]=t[e])}return i}var $c=b.createContext({});function Uc(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function Wc(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ac(r.key),r)}}function Gc(t,n,e){return n&&Wc(t.prototype,n),e&&Wc(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Vc(t,n){return Vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},Vc(t,n)}function Bc(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&Vc(t,n)}function qc(t){return qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qc(t)}function Kc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zc(t,n){if(n&&("object"===Tc(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return Kc(t)}function Xc(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=qc(t);if(n){var i=qc(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return Zc(this,e)}}var Qc=function(){Bc(n,b.Component);var t=Xc(n);function n(){return Uc(this,n),t.apply(this,arguments)}return Gc(n,[{key:"render",value:function(){return this.props.children}}]),n}(),Jc="none",tu="appear",nu="enter",eu="leave",ru="none",iu="prepare",ou="start",au="active",cu="end",uu="prepared";function su(t,n){var e={};return e[t.toLowerCase()]=n.toLowerCase(),e["Webkit".concat(t)]="webkit".concat(n),e["Moz".concat(t)]="moz".concat(n),e["ms".concat(t)]="MS".concat(n),e["O".concat(t)]="o".concat(n.toLowerCase()),e}var lu,fu,du,hu=(lu=k(),fu="undefined"!=typeof window?window:{},du={animationend:su("Animation","AnimationEnd"),transitionend:su("Transition","TransitionEnd")},lu&&("AnimationEvent"in fu||delete du.animationend.animation,"TransitionEvent"in fu||delete du.transitionend.transition),du),bu={};if(k()){var mu=document.createElement("div");bu=mu.style}var pu={};function vu(t){if(pu[t])return pu[t];var n=hu[t];if(n)for(var e=Object.keys(n),r=e.length,i=0;i<r;i+=1){var o=e[i];if(Object.prototype.hasOwnProperty.call(n,o)&&o in bu)return pu[t]=n[o],pu[t]}return""}var gu=vu("animationend"),xu=vu("transitionend"),wu=!(!gu||!xu),yu=gu||"animationend",_u=xu||"transitionend";function ku(t,n){if(!t)return null;if("object"===Tc(t)){var e=n.replace(/-\w/g,(function(t){return t[1].toUpperCase()}));return t[e]}return"".concat(t,"-").concat(n)}var zu=k()?b.useLayoutEffect:b.useEffect,Mu=[iu,ou,au,cu],Su=[iu,uu];function Du(t){return t===au||t===cu}function Cu(t,n,e,r){var i=r.motionEnter,o=void 0===i||i,a=r.motionAppear,c=void 0===a||a,u=r.motionLeave,s=void 0===u||u,l=r.motionDeadline,f=r.motionLeaveImmediately,d=r.onAppearPrepare,h=r.onEnterPrepare,m=r.onLeavePrepare,p=r.onAppearStart,v=r.onEnterStart,g=r.onLeaveStart,x=r.onAppearActive,w=r.onEnterActive,_=r.onLeaveActive,k=r.onAppearEnd,z=r.onEnterEnd,M=r.onLeaveEnd,S=r.onVisibleChanged,D=Hc(Bi(),2),C=D[0],j=D[1],Y=Hc(Bi(Jc),2),O=Y[0],N=Y[1],E=Hc(Bi(null),2),T=E[0],A=E[1],R=b.useRef(!1),P=b.useRef(null);function I(){return e()}var L=b.useRef(!1);function H(){N(Jc,!0),A(null,!0)}function F(t){var n=I();if(!t||t.deadline||t.target===n){var e,r=L.current;O===tu&&r?e=null==k?void 0:k(n,t):O===nu&&r?e=null==z?void 0:z(n,t):O===eu&&r&&(e=null==M?void 0:M(n,t)),O!==Jc&&r&&!1!==e&&H()}}var $=function(t){var n=b.useRef(),e=b.useRef(t);e.current=t;var r=b.useCallback((function(t){e.current(t)}),[]);function i(t){t&&(t.removeEventListener(_u,r),t.removeEventListener(yu,r))}return b.useEffect((function(){return function(){i(n.current)}}),[]),[function(t){n.current&&n.current!==t&&i(n.current),t&&t!==n.current&&(t.addEventListener(_u,r),t.addEventListener(yu,r),n.current=t)},i]}(F),U=Hc($,1)[0],W=function(t){var n,e,r;switch(t){case tu:return Rc(n={},iu,d),Rc(n,ou,p),Rc(n,au,x),n;case nu:return Rc(e={},iu,h),Rc(e,ou,v),Rc(e,au,w),e;case eu:return Rc(r={},iu,m),Rc(r,ou,g),Rc(r,au,_),r;default:return{}}},G=b.useMemo((function(){return W(O)}),[O]),V=Hc(function(t,n,e){var r=Hc(Bi(ru),2),i=r[0],o=r[1],a=function(){var t=b.useRef(null);function n(){y.cancel(t.current)}return b.useEffect((function(){return function(){n()}}),[]),[function e(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var o=y((function(){i<=1?r({isCanceled:function(){return o!==t.current}}):e(r,i-1)}));t.current=o},n]}(),c=Hc(a,2),u=c[0],s=c[1],l=n?Su:Mu;return zu((function(){if(i!==ru&&i!==cu){var t=l.indexOf(i),n=l[t+1],r=e(i);!1===r?o(n,!0):n&&u((function(t){function e(){t.isCanceled()||o(n,!0)}!0===r?e():Promise.resolve(r).then(e)}))}}),[t,i]),b.useEffect((function(){return function(){s()}}),[]),[function(){o(iu,!0)},i]}(O,!t,(function(t){if(t===iu){var n=G[iu];return!!n&&n(I())}var e;return q in G&&A((null===(e=G[q])||void 0===e?void 0:e.call(G,I(),null))||null),q===au&&(U(I()),l>0&&(clearTimeout(P.current),P.current=setTimeout((function(){F({deadline:!0})}),l))),q===uu&&H(),!0})),2),B=V[0],q=V[1],K=Du(q);L.current=K,zu((function(){j(n);var e,r=R.current;R.current=!0,!r&&n&&c&&(e=tu),r&&n&&o&&(e=nu),(r&&!n&&s||!r&&f&&!n&&s)&&(e=eu);var i=W(e);e&&(t||i[iu])?(N(e),B()):N(Jc)}),[n]),b.useEffect((function(){(O===tu&&!c||O===nu&&!o||O===eu&&!s)&&N(Jc)}),[c,o,s]),b.useEffect((function(){return function(){R.current=!1,clearTimeout(P.current)}}),[]);var Z=b.useRef(!1);b.useEffect((function(){C&&(Z.current=!0),void 0!==C&&O===Jc&&((Z.current||C)&&(null==S||S(C)),Z.current=!0)}),[C,O]);var X=T;return G[iu]&&q===ou&&(X=Ic({transition:"none"},X)),[O,q,X,null!=C?C:n]}const ju=function(t){var n=t;"object"===Tc(t)&&(n=t.transitionSupport);var e=b.forwardRef((function(t,e){var r=t.visible,i=void 0===r||r,o=t.removeOnLeave,a=void 0===o||o,c=t.forceRender,u=t.children,s=t.motionName,f=t.leavedClassName,d=t.eventProps,h=function(t,e){return!(!t.motionName||!n||!1===e)}(t,b.useContext($c).motion),m=b.useRef(),p=b.useRef(),v=Hc(Cu(h,i,(function(){try{return m.current instanceof HTMLElement?m.current:j(p.current)}catch(t){return null}}),t),4),g=v[0],x=v[1],w=v[2],y=v[3],_=b.useRef(y);y&&(_.current=!0);var k,M=b.useCallback((function(t){m.current=t,C(e,t)}),[e]),S=Ic(Ic({},d),{},{visible:i});if(u)if(g===Jc)k=y?u(Ic({},S),M):!a&&_.current&&f?u(Ic(Ic({},S),{},{className:f}),M):c||!a&&!f?u(Ic(Ic({},S),{},{style:{display:"none"}}),M):null;else{var D,Y;x===iu?Y="prepare":Du(x)?Y="active":x===ou&&(Y="start");var O=ku(s,"".concat(g,"-").concat(Y));k=u(Ic(Ic({},S),{},{className:l(ku(s,g),(D={},Rc(D,O,O&&Y),Rc(D,s,"string"==typeof s),D)),style:w}),M)}else k=null;return b.isValidElement(k)&&z(k)&&(k.ref||(k=b.cloneElement(k,{ref:M}))),b.createElement(Qc,{ref:p},k)}));return e.displayName="CSSMotion",e}(wu);function Yu(){return Yu=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Yu.apply(this,arguments)}var Ou="add",Nu="keep",Eu="remove",Tu="removed";function Au(t){var n;return Ic(Ic({},n=t&&"object"===Tc(t)&&"key"in t?t:{key:t}),{},{key:String(n.key)})}function Ru(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.map(Au)}function Pu(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=[],r=0,i=n.length,o=Ru(t),a=Ru(n);o.forEach((function(t){for(var n=!1,o=r;o<i;o+=1){var c=a[o];if(c.key===t.key){r<o&&(e=e.concat(a.slice(r,o).map((function(t){return Ic(Ic({},t),{},{status:Ou})}))),r=o),e.push(Ic(Ic({},c),{},{status:Nu})),r+=1,n=!0;break}}n||e.push(Ic(Ic({},t),{},{status:Eu}))})),r<i&&(e=e.concat(a.slice(r).map((function(t){return Ic(Ic({},t),{},{status:Ou})}))));var c={};e.forEach((function(t){var n=t.key;c[n]=(c[n]||0)+1}));var u=Object.keys(c).filter((function(t){return c[t]>1}));return u.forEach((function(t){(e=e.filter((function(n){return n.key!==t||n.status!==Eu}))).forEach((function(n){n.key===t&&(n.status=Nu)}))})),e}var Iu=["component","children","onVisibleChanged","onAllRemoved"],Lu=["status"],Hu=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Fu(t){var n=t.prefixCls,e=t.align,r=t.arrowPos,i=t.arrow||{},o=i.className,a=i.content,c=r.x,u=void 0===c?0:c,s=r.y,f=void 0===s?0:s,d=b.useRef();if(!e||!e.points)return null;var h={position:"absolute"};if(!1!==e.autoArrow){var m=e.points[0],p=e.points[1],v=m[0],g=m[1],x=p[1];v!==p[0]&&["t","b"].includes(v)?"t"===v?h.top=0:h.bottom=0:h.top=f,g!==x&&["l","r"].includes(g)?"l"===g?h.left=0:h.right=0:h.left=u}return b.createElement("div",{ref:d,className:l("".concat(n,"-arrow"),o),style:h},a)}function $u(t){var n=t.prefixCls,e=t.zIndex;return t.mask?b.createElement(ju,Ec({},t.motion,{motionAppear:!0,visible:t.open,removeOnLeave:!0}),(function(t){var r=t.className;return b.createElement("div",{style:{zIndex:e},className:l("".concat(n,"-mask"),r)})})):null}!function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ju,e=function(){Bc(e,b.Component);var t=Xc(e);function e(){var n;Uc(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Rc(Kc(n=t.call.apply(t,[this].concat(i))),"state",{keyEntities:[]}),Rc(Kc(n),"removeKey",(function(t){var e=n.state.keyEntities.map((function(n){return n.key!==t?n:Ic(Ic({},n),{},{status:Tu})}));return n.setState({keyEntities:e}),e.filter((function(t){return t.status!==Tu})).length})),n}return Gc(e,[{key:"render",value:function(){var t=this,e=this.state.keyEntities,r=this.props,i=r.component,o=r.children,a=r.onVisibleChanged,c=r.onAllRemoved,u=Fc(r,Iu),s=i||b.Fragment,l={};return Hu.forEach((function(t){l[t]=u[t],delete u[t]})),delete u.keys,b.createElement(s,u,e.map((function(e,r){var i=e.status,u=Fc(e,Lu);return b.createElement(n,Yu({},l,{key:u.key,visible:i===Ou||i===Nu,eventProps:u,onVisibleChanged:function(n){null==a||a(n,{key:u.key}),n||0===t.removeKey(u.key)&&c&&c()}}),(function(t,n){return o(Ic(Ic({},t),{},{index:r}),n)}))})))}}],[{key:"getDerivedStateFromProps",value:function(t,n){var e=n.keyEntities,r=Ru(t.keys);return{keyEntities:Pu(e,r).filter((function(t){var n=e.find((function(n){return t.key===n.key}));return!n||n.status!==Tu||t.status!==Eu}))}}}]),e}();Rc(e,"defaultProps",{component:"div"})}(wu);var Uu=b.memo((function(t){return t.children}),(function(t,n){return n.cache})),Wu=b.forwardRef((function(t,n){var e=t.popup,r=t.className,i=t.prefixCls,o=t.style,a=t.target,c=t.onVisibleChanged,u=t.open,s=t.keepDom,f=t.fresh,d=t.onClick,h=t.mask,m=t.arrow,p=t.arrowPos,v=t.align,g=t.motion,x=t.maskMotion,w=t.forceRender,y=t.getPopupContainer,k=t.autoDestroy,z=t.portal,M=t.zIndex,S=t.onMouseEnter,D=t.onMouseLeave,C=t.onPointerEnter,j=t.ready,N=t.offsetX,E=t.offsetY,T=t.offsetR,A=t.offsetB,R=t.onAlign,P=t.onPrepare,I=t.stretch,L=t.targetWidth,H=t.targetHeight,F="function"==typeof e?e():e,$=u||s,U=(null==y?void 0:y.length)>0,W=Ra(b.useState(!y||!U),2),G=W[0],V=W[1];if(_((function(){!G&&U&&a&&V(!0)}),[G,U,a]),!G)return null;var B="auto",q={left:"-1000vw",top:"-1000vh",right:B,bottom:B};if(j||!u){var K,Z=v.points,X=v.dynamicInset||(null===(K=v._experimental)||void 0===K?void 0:K.dynamicInset),Q=X&&"b"===Z[0][0];X&&"r"===Z[0][1]?(q.right=T,q.left=B):(q.left=N,q.right=B),Q?(q.bottom=A,q.top=B):(q.top=E,q.bottom=B)}var J={};return I&&(I.includes("height")&&H?J.height=H:I.includes("minHeight")&&H&&(J.minHeight=H),I.includes("width")&&L?J.width=L:I.includes("minWidth")&&L&&(J.minWidth=L)),u||(J.pointerEvents="none"),b.createElement(z,{open:w||$,getContainer:y&&function(){return y(a)},autoDestroy:k},b.createElement($u,{prefixCls:i,open:u,zIndex:M,mask:h,motion:x}),b.createElement(Y,{onResize:R,disabled:!u},(function(t){return b.createElement(ju,Ec({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(i,"-hidden")},g,{onAppearPrepare:P,onEnterPrepare:P,visible:u,onVisibleChanged:function(t){var n;null==g||null===(n=g.onVisibleChanged)||void 0===n||n.call(g,t),c(t)}}),(function(e,a){var c=e.style,s=l(i,e.className,r);return b.createElement("div",{ref:O(t,n,a),className:s,style:Ea(Ea(Ea(Ea({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},q),J),c),{},{boxSizing:"border-box",zIndex:M},o),onMouseEnter:S,onMouseLeave:D,onPointerEnter:C,onClick:d},m&&b.createElement(Fu,{prefixCls:i,arrow:m,arrowPos:p,align:v}),b.createElement(Uu,{cache:!u&&!f},F))}))})))})),Gu=b.forwardRef((function(t,n){var e=t.children,r=t.getTriggerDOMNode,i=z(e),o=b.useCallback((function(t){C(n,r?r(t):t)}),[r]),a=M(o,e.ref);return i?b.cloneElement(e,{ref:a}):e})),Vu=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const Bu=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cc,n=b.forwardRef((function(n,e){var r=n.prefixCls,i=void 0===r?"rc-trigger-popup":r,o=n.children,a=n.action,c=void 0===a?"hover":a,u=n.showAction,s=n.hideAction,f=n.popupVisible,d=n.defaultPopupVisible,h=n.onPopupVisibleChange,v=n.afterPopupVisibleChange,g=n.mouseEnterDelay,x=n.mouseLeaveDelay,w=void 0===x?.1:x,y=n.focusDelay,k=n.blurDelay,z=n.mask,M=n.maskClosable,S=void 0===M||M,C=n.getPopupContainer,j=n.forceRender,O=n.autoDestroy,N=n.destroyPopupOnHide,E=n.popup,T=n.popupClassName,A=n.popupStyle,R=n.popupPlacement,P=n.builtinPlacements,I=void 0===P?{}:P,L=n.popupAlign,H=n.zIndex,F=n.stretch,$=n.getPopupClassNameFromAlign,U=n.fresh,W=n.alignPoint,G=n.onPopupClick,V=n.onPopupAlign,B=n.arrow,q=n.popupMotion,K=n.maskMotion,Z=n.popupTransitionName,X=n.popupAnimation,Q=n.maskTransitionName,J=n.maskAnimation,tt=n.className,nt=n.getTriggerDOMNode,et=Pa(n,Vu),rt=O||N||!1,it=Ra(b.useState(!1),2),ot=it[0],at=it[1];_((function(){at(dc())}),[]);var ct=b.useRef({}),ut=b.useContext(hc),st=b.useMemo((function(){return{registerSubPopup:function(t,n){ct.current[t]=n,null==ut||ut.registerSubPopup(t,n)}}}),[ut]),lt=fc(),ft=Ra(b.useState(null),2),dt=ft[0],ht=ft[1],bt=p((function(t){D(t)&&dt!==t&&ht(t),null==ut||ut.registerSubPopup(lt,t)})),mt=Ra(b.useState(null),2),pt=mt[0],vt=mt[1],gt=p((function(t){D(t)&&pt!==t&&vt(t)})),xt=b.Children.only(o),wt=(null==xt?void 0:xt.props)||{},yt={},_t=p((function(t){var n,e,r=pt;return(null==r?void 0:r.contains(t))||(null===(n=sc(r))||void 0===n?void 0:n.host)===t||t===r||(null==dt?void 0:dt.contains(t))||(null===(e=sc(dt))||void 0===e?void 0:e.host)===t||t===dt||Object.values(ct.current).some((function(n){return(null==n?void 0:n.contains(t))||t===n}))})),kt=gc(i,q,X,Z),zt=gc(i,K,J,Q),Mt=Ra(b.useState(d||!1),2),St=Mt[1],Dt=null!=f?f:Mt[0],Ct=p((function(t){void 0===f&&St(t)}));_((function(){St(f||!1)}),[f]);var jt=b.useRef(Dt);jt.current=Dt;var Yt=p((function(t){m.flushSync((function(){Dt!==t&&(Ct(t),null==h||h(t))}))})),Ot=b.useRef(),Nt=function(){clearTimeout(Ot.current)},Et=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Nt(),0===n?Yt(t):Ot.current=setTimeout((function(){Yt(t)}),1e3*n)};b.useEffect((function(){return Nt}),[]);var Tt=Ra(b.useState(!1),2),At=Tt[0],Rt=Tt[1];_((function(t){t&&!Dt||Rt(!0)}),[Dt]);var Pt=Ra(b.useState(null),2),It=Pt[0],Lt=Pt[1],Ht=Ra(b.useState([0,0]),2),Ft=Ht[0],$t=Ht[1],Ut=function(t){$t([t.clientX,t.clientY])},Wt=Ra(jc(Dt,dt,W?Ft:pt,R,I,L,V),11),Gt=Wt[0],Vt=Wt[1],Bt=Wt[2],qt=Wt[3],Kt=Wt[4],Zt=Wt[5],Xt=Wt[6],Qt=Wt[7],Jt=Wt[8],tn=Wt[9],nn=Wt[10],en=Ra(mc(ot,c,u,s),2),rn=en[0],on=en[1],an=rn.has("click"),cn=on.has("click")||on.has("contextMenu"),un=p((function(){At||nn()}));Oc(Dt,pt,dt,un,(function(){jt.current&&W&&cn&&Et(!1)})),_((function(){un()}),[Ft,R]),_((function(){!Dt||null!=I&&I[R]||un()}),[JSON.stringify(L)]);var sn=b.useMemo((function(){var t=vc(I,i,tn,W);return l(t,null==$?void 0:$(tn))}),[tn,$,I,i,W]);b.useImperativeHandle(e,(function(){return{forceAlign:un}}));var ln=Ra(b.useState(0),2),fn=ln[0],dn=ln[1],hn=Ra(b.useState(0),2),bn=hn[0],mn=hn[1],pn=function(){if(F&&pt){var t=pt.getBoundingClientRect();dn(t.width),mn(t.height)}};function vn(t,n,e,r){yt[t]=function(i){var o;null==r||r(i),Et(n,e);for(var a=arguments.length,c=new Array(a>1?a-1:0),u=1;u<a;u++)c[u-1]=arguments[u];null===(o=wt[t])||void 0===o||o.call.apply(o,[wt,i].concat(c))}}_((function(){It&&(nn(),It(),Lt(null))}),[It]),(an||cn)&&(yt.onClick=function(t){var n;jt.current&&cn?Et(!1):!jt.current&&an&&(Ut(t),Et(!0));for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];null===(n=wt.onClick)||void 0===n||n.call.apply(n,[wt,t].concat(r))}),Nc(Dt,cn,pt,dt,z,S,_t,Et);var gn,xn,wn=rn.has("hover"),yn=on.has("hover");wn&&(vn("onMouseEnter",!0,g,(function(t){Ut(t)})),vn("onPointerEnter",!0,g,(function(t){Ut(t)})),gn=function(){(Dt||At)&&Et(!0,g)},W&&(yt.onMouseMove=function(t){var n;null===(n=wt.onMouseMove)||void 0===n||n.call(wt,t)})),yn&&(vn("onMouseLeave",!1,w),vn("onPointerLeave",!1,w),xn=function(){Et(!1,w)}),rn.has("focus")&&vn("onFocus",!0,y),on.has("focus")&&vn("onBlur",!1,k),rn.has("contextMenu")&&(yt.onContextMenu=function(t){var n;jt.current&&on.has("contextMenu")?Et(!1):(Ut(t),Et(!0)),t.preventDefault();for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];null===(n=wt.onContextMenu)||void 0===n||n.call.apply(n,[wt,t].concat(r))}),tt&&(yt.className=l(wt.className,tt));var _n=Ea(Ea({},wt),yt),kn={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(t){et[t]&&(kn[t]=function(){for(var n,e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];null===(n=_n[t])||void 0===n||n.call.apply(n,[_n].concat(r)),et[t].apply(et,r)})}));var zn=b.cloneElement(xt,Ea(Ea({},_n),kn)),Mn={x:Zt,y:Xt},Sn=B?Ea({},!0!==B?B:{}):null;return b.createElement(b.Fragment,null,b.createElement(Y,{disabled:!Dt,ref:gt,onResize:function(){pn(),un()}},b.createElement(Gu,{getTriggerDOMNode:nt},zn)),b.createElement(hc.Provider,{value:st},b.createElement(Wu,{portal:t,ref:bt,prefixCls:i,popup:E,className:l(T,sn),style:A,target:pt,onMouseEnter:gn,onMouseLeave:xn,onPointerEnter:gn,zIndex:H,open:Dt,keepDom:At,fresh:U,onClick:G,mask:z,motion:kt,maskMotion:zt,onVisibleChanged:function(t){Rt(!1),nn(),null==v||v(t)},onPrepare:function(){return new Promise((function(t){pn(),Lt((function(){return t}))}))},forceRender:j,autoDestroy:rt,getPopupContainer:C,align:tn,arrow:Sn,arrowPos:Mn,ready:Gt,offsetX:Vt,offsetY:Bt,offsetR:qt,offsetB:Kt,onAlign:un,stretch:F,targetWidth:fn/Qt,targetHeight:bn/Jt})))}));return n}(cc);var qu={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Ku(t){var n,e=t.popupElement,r=t.popupStyle,i=t.visible,o=t.dropdownClassName,a=t.dropdownAlign,c=t.transitionName,u=t.getPopupContainer,s=t.children,f=t.range,d=t.popupPlacement,h=t.direction,m="".concat(t.prefixCls,"-dropdown");return b.createElement(Bu,{showAction:[],hideAction:[],popupPlacement:void 0!==d?d:"rtl"===h?"bottomRight":"bottomLeft",builtinPlacements:qu,prefixCls:m,popupTransitionName:c,popup:e,popupAlign:a,popupVisible:i,popupClassName:l(o,(n={},Li(n,"".concat(m,"-range"),f),Li(n,"".concat(m,"-rtl"),"rtl"===h),n)),popupStyle:r,getPopupContainer:u},s)}function Zu(t){var n=t.presets,e=t.onClick,r=t.onHover;return n.length?b.createElement("div",{className:"".concat(t.prefixCls,"-presets")},b.createElement("ul",null,n.map((function(t,n){var i=t.value;return b.createElement("li",{key:n,onClick:function(){return null==e?void 0:e(Wo(i))},onMouseEnter:function(){return null==r?void 0:r(Wo(i))},onMouseLeave:function(){return null==r?void 0:r(null)}},t.label)})))):null}function Xu(t,n,e){return("object"===Ci(n)?n.clearIcon:e)||b.createElement("span",{className:"".concat(t,"-clear-btn")})}function Qu(t){var n,e=t.prefixCls,r=void 0===e?"rc-picker":e,i=t.id,o=t.name,a=t.tabIndex,c=t.style,u=t.className,s=t.dropdownClassName,f=t.dropdownAlign,d=t.popupStyle,h=t.transitionName,m=t.generateConfig,p=t.locale,v=t.inputReadOnly,g=t.allowClear,w=t.autoFocus,y=t.showTime,_=t.picker,k=void 0===_?"date":_,z=t.format,M=t.use12Hours,S=t.value,D=t.defaultValue,C=t.presets,j=t.open,Y=t.defaultOpen,O=t.defaultOpenValue,N=t.suffixIcon,E=t.clearIcon,T=t.disabled,A=t.disabledDate,R=t.placeholder,P=t.getPopupContainer,I=t.pickerRef,L=t.panelRender,H=t.onChange,F=t.onOpenChange,$=t.onFocus,U=t.onBlur,W=t.onMouseDown,G=t.onMouseUp,V=t.onMouseEnter,B=t.onMouseLeave,q=t.onContextMenu,K=t.onClick,Z=t.onKeyDown,X=t.onSelect,Q=t.direction,J=t.autoComplete,tt=void 0===J?"off":J,nt=t.inputRender,et=t.changeOnBlur,rt=b.useRef(null),it="date"===k&&!!y||"time"===k,ot=Ro(C),at=Fo(jo(z,k,y,M)),ct=b.useRef(null),ut=b.useRef(null),st=b.useRef(null),lt=Wi(Ki(null,{value:S,defaultValue:D}),2),ft=lt[0],dt=lt[1],ht=Wi(b.useState(ft),2),bt=ht[0],mt=ht[1],pt=b.useRef(null),vt=Wi(Ki(!1,{value:j,defaultValue:Y,postState:function(t){return!T&&t},onChange:function(t){F&&F(t),!t&&pt.current&&pt.current.onClose&&pt.current.onClose()}}),2),gt=vt[0],xt=vt[1],wt=Wi(yo(bt,{formatList:at,generateConfig:m,locale:p}),2),yt=wt[0],_t=wt[1],kt=Wi(Po({valueTexts:yt,onTextChange:function(t){var n=xo(t,{locale:p,formatList:at,generateConfig:m});!n||A&&A(n)||mt(n)}}),3),zt=kt[0],Mt=kt[1],St=kt[2],Dt=function(t){mt(t),dt(t),H&&!mo(m,ft,t)&&H(t,t?go(t,{generateConfig:m,locale:p,format:at[0]}):"")},Ct=function(t){T&&t||xt(t)},jt=Wi(Ao({blurToCancel:it,changeOnBlur:et,open:gt,value:zt,triggerOpen:Ct,forwardKeyDown:function(t){return gt&&pt.current&&pt.current.onKeyDown?pt.current.onKeyDown(t):(x(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},isClickOutside:function(t){return!To([ct.current,ut.current,st.current],t)},onSubmit:function(){return!(!bt||A&&A(bt)||(Dt(bt),Ct(!1),St(),0))},onCancel:function(){Ct(!1),mt(ft),St()},onKeyDown:function(t,n){null==Z||Z(t,n)},onFocus:$,onBlur:function(t){et&&Dt(bt),null==U||U(t)}}),2),Yt=jt[0],Ot=jt[1],Nt=Ot.focused,Et=Ot.typing;b.useEffect((function(){gt||(mt(ft),yt.length&&""!==yt[0]?_t!==zt&&St():Mt(""))}),[gt,yt]),b.useEffect((function(){gt||St()}),[k]),b.useEffect((function(){mt(ft)}),[ft]),I&&(I.current={focus:function(){var t;null===(t=rt.current)||void 0===t||t.focus()},blur:function(){var t;null===(t=rt.current)||void 0===t||t.blur()}});var Tt=Wi(_o(zt,{formatList:at,generateConfig:m,locale:p}),3),At=Tt[0],Rt=Tt[1],Pt=Tt[2],It=Fi(Fi({},t),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),Lt=b.createElement("div",{className:"".concat(r,"-panel-layout")},b.createElement(Zu,{prefixCls:r,presets:ot,onClick:function(t){Dt(t),Ct(!1)}}),b.createElement(ja,Ii({},It,{generateConfig:m,className:l(Li({},"".concat(r,"-panel-focused"),!Et)),value:bt,locale:p,tabIndex:-1,onSelect:function(t){null==X||X(t),mt(t)},direction:Q,onPanelChange:function(n,e){var r=t.onPanelChange;Pt(!0),null==r||r(n,e)}})));L&&(Lt=L(Lt));var Ht,Ft=b.createElement("div",{className:"".concat(r,"-panel-container"),ref:ct,onMouseDown:function(t){t.preventDefault()}},Lt);N&&(Ht=b.createElement("span",{className:"".concat(r,"-suffix"),onMouseDown:function(t){t.preventDefault()}},N));var $t=Xu(r,g,E),Ut=b.createElement("span",{onMouseDown:function(t){t.preventDefault(),t.stopPropagation()},onMouseUp:function(t){t.preventDefault(),t.stopPropagation(),Dt(null),Ct(!1)},className:"".concat(r,"-clear"),role:"button"},$t),Wt=!!g&&ft&&!T,Gt=Fi(Fi(Fi({id:i,tabIndex:a,disabled:T,readOnly:v||"function"==typeof at[0]||!Et,value:At||zt,onChange:function(t){Mt(t.target.value)},autoFocus:w,placeholder:R,ref:rt,title:zt},Yt),{},{size:Yo(k,at[0],m),name:o},ro(t,{aria:!0,data:!0})),{},{autoComplete:tt}),Vt=nt?nt(Gt):b.createElement("input",Gt);return b.createElement(Io.Provider,{value:{operationRef:pt,hideHeader:"time"===k,onSelect:function(t,n){("submit"===n||"key"!==n&&!it)&&(Dt(t),Ct(!1))},open:gt,defaultOpenValue:O,onDateMouseEnter:Rt,onDateMouseLeave:Pt}},b.createElement(Ku,{visible:gt,popupElement:Ft,popupStyle:d,prefixCls:r,dropdownClassName:s,dropdownAlign:f,getPopupContainer:P,transitionName:h,popupPlacement:"rtl"===Q?"bottomRight":"bottomLeft",direction:Q},b.createElement("div",{ref:st,className:l(r,u,(n={},Li(n,"".concat(r,"-disabled"),T),Li(n,"".concat(r,"-focused"),Nt),Li(n,"".concat(r,"-rtl"),"rtl"===Q),n)),style:c,onMouseDown:W,onMouseUp:G,onMouseEnter:V,onMouseLeave:B,onContextMenu:q,onClick:function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];null==K||K.apply(void 0,n),rt.current&&(rt.current.focus(),Ct(!0))}},b.createElement("div",{className:l("".concat(r,"-input"),Li({},"".concat(r,"-input-placeholder"),!!At)),ref:ut},Vt,Ht,Wt&&Ut))))}var Ju=function(){Ti(n,b.Component);var t=Pi(n);function n(){var e;Di(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Li(Ni(e=t.call.apply(t,[this].concat(i))),"pickerRef",b.createRef()),Li(Ni(e),"focus",(function(){e.pickerRef.current&&e.pickerRef.current.focus()})),Li(Ni(e),"blur",(function(){e.pickerRef.current&&e.pickerRef.current.blur()})),e}return Oi(n,[{key:"render",value:function(){return b.createElement(Qu,Ii({},this.props,{pickerRef:this.pickerRef}))}}]),n}();function ts(t){var n=t.values,e=t.picker,r=t.defaultDates,i=t.generateConfig,o=Wi(b.useState((function(){return[$o(r,0),$o(r,1)]})),2),a=o[0],c=o[1],u=Wi(b.useState(null),2),s=u[0],l=u[1],f=$o(n,0),d=$o(n,1);return[function(t){return a[t]?a[t]:$o(s,t)||function(t,n,e,r){var i=$o(t,0),o=$o(t,1);if(0===n)return i;if(i&&o)switch(function(t,n,e,r){var i=vo(t,e,r,1);function o(e){return e(t,n)?"same":e(i,n)?"closing":"far"}switch(e){case"year":return o((function(t,n){return function(t,n,e){var r=co(n,e);return"boolean"==typeof r?r:Math.floor(t.getYear(n)/10)===Math.floor(t.getYear(e)/10)}(r,t,n)}));case"quarter":case"month":return o((function(t,n){return uo(r,t,n)}));default:return o((function(t,n){return fo(r,t,n)}))}}(i,o,e,r)){case"same":case"closing":return i;default:return vo(o,e,r,-1)}return i}(n,t,e,i)||f||d||i.getNow()},function(t,e){if(t){var r=Uo(s,t,e);c(Uo(a,null,e)||[null,null]);var i=(e+1)%2;$o(n,i)||(r=Uo(r,t,i)),l(r)}else(f||d)&&l(null)}]}function ns(t,n){return t&&t[0]&&t[1]&&n.isAfter(t[0],t[1])?[t[1],t[0]]:t}function es(t,n,e,r){return!!t||!(!r||!r[n])||!!e[(n+1)%2]}function rs(t){var n,e,r,i=t.prefixCls,o=void 0===i?"rc-picker":i,a=t.id,c=t.style,u=t.className,s=t.popupStyle,f=t.dropdownClassName,d=t.transitionName,h=t.dropdownAlign,m=t.getPopupContainer,v=t.generateConfig,g=t.locale,w=t.placeholder,_=t.autoFocus,k=t.disabled,z=t.format,M=t.picker,S=void 0===M?"date":M,D=t.showTime,C=t.use12Hours,j=t.separator,Y=void 0===j?"~":j,O=t.value,N=t.defaultValue,E=t.defaultPickerValue,T=t.open,A=t.defaultOpen,R=t.disabledDate,P=t.disabledTime,I=t.dateRender,L=t.monthCellRender,H=t.cellRender,F=t.panelRender,$=t.presets,U=t.ranges,W=t.allowEmpty,G=t.allowClear,V=t.suffixIcon,B=t.clearIcon,q=t.pickerRef,K=t.inputReadOnly,Z=t.mode,X=t.renderExtraFooter,Q=t.onChange,J=t.onOpenChange,tt=t.onPanelChange,nt=t.onCalendarChange,et=t.onFocus,rt=t.onBlur,it=t.onMouseDown,ot=t.onMouseUp,at=t.onMouseEnter,ct=t.onMouseLeave,ut=t.onClick,st=t.onOk,lt=t.onKeyDown,ft=t.components,dt=t.order,ht=t.direction,bt=t.activePickerIndex,mt=t.autoComplete,pt=void 0===mt?"off":mt,vt=t.changeOnBlur,gt="date"===S&&!!D||"time"===S,xt=b.useRef(null),wt=b.useRef(null),yt=b.useRef(null),_t=b.useRef(null),kt=b.useRef(null),zt=b.useRef(null),Mt=b.useRef(null),St=b.useRef(null),Dt=Fo(jo(z,S,D,C)),Ct=function(t,n){return t&&t[n]?go(t[n],{generateConfig:v,locale:g,format:Dt[0]}):""},jt=b.useRef(null),Yt=b.useMemo((function(){return Array.isArray(k)?k:[k||!1,k||!1]}),[k]),Ot=Wi(Ki(null,{value:O,defaultValue:N,postState:function(t){return"time"!==S||dt?ns(t,v):t}}),2),Nt=Ot[0],Et=Ot[1],Tt=Wi(ts({values:Nt,picker:S,defaultDates:E,generateConfig:v}),2),At=Tt[0],Rt=Tt[1],Pt=Ki(Nt,{postState:function(t){var n=t;if(Yt[0]&&Yt[1])return n;for(var e=0;e<2;e+=1)!Yt[e]||n||$o(n,e)||$o(W,e)||(n=Uo(n,v.getNow(),e));return n}}),It=Wi(Pt,2),Lt=It[0],Ht=It[1],Ft=Wi(Ki([S,S],{value:Z}),2),$t=Ft[0],Ut=Ft[1];b.useEffect((function(){Ut([S,S])}),[S]);var Wt=function(t,n){Ut(t),tt&&tt(n,t)},Gt=function(t,n,e,r,i,o,a,c,u,s,l){var f=Wi(b.useState(!1),2),d=f[0],h=f[1],m=Wi(Ki(t||!1,{value:n}),2),v=m[0],g=m[1],x=Wi(Ki(t||!1,{value:n,onChange:function(t){null==l||l(t)}}),2),w=x[0],_=x[1],k=Wi(Ki(0,{value:e}),2),z=k[0],M=k[1],S=Wi(b.useState(null),2),D=S[0],C=S[1];b.useEffect((function(){w&&h(!0)}),[w]);var j=function(t){return 0===t?1:0},Y=p((function(t,n,e){if(!1===n)_(t);else if(t){M(n),_(t);var l=j(n);w&&[c,u][l]?(h(!1),null!==D&&C(null)):C(l)}else if("confirm"===e||"blur"===e&&r){var f=v&&!i?j(n):D;null!==f&&(h(!1),M(f)),C(null),null===f||s[f]?_(!1):y((function(){var t;null===(t=[o,a][f].current)||void 0===t||t.focus()}))}else _(!1),g(!1)}));return[w,z,d,Y]}(A,T,bt,vt,gt,zt,Mt,$o(Lt,0),$o(Lt,1),Yt,J),Vt=Wi(Gt,4),Bt=Vt[0],qt=Vt[1],Kt=Vt[3],Zt=Bt&&0===qt,Xt=Bt&&1===qt,Qt=function(t,n){var e=t.picker,r=t.locale,i=t.selectedValue,o=t.disabledDate,a=t.disabled,c=t.generateConfig,u=$o(i,0),s=$o(i,1);function l(t){return c.locale.getWeekFirstDate(r.locale,t)}function f(t){return 100*c.getYear(t)+c.getMonth(t)}function d(t){return 10*c.getYear(t)+so(c,t)}return[b.useCallback((function(t){if(a[0]||o&&o(t))return!0;if(a[1]&&s)return!ho(c,t,s)&&c.isAfter(t,s);if(!n&&s)switch(e){case"quarter":return d(t)>d(s);case"month":return f(t)>f(s);case"week":return l(t)>l(s);default:return!ho(c,t,s)&&c.isAfter(t,s)}return!1}),[o,a[1],s,n]),b.useCallback((function(t){if(a[1]||o&&o(t))return!0;if(a[0]&&u)return!ho(c,t,s)&&c.isAfter(u,t);if(!n&&u)switch(e){case"quarter":return d(t)<d(u);case"month":return f(t)<f(u);case"week":return l(t)<l(u);default:return!ho(c,t,u)&&c.isAfter(u,t)}return!1}),[o,a[0],u,n])]}({picker:S,selectedValue:Lt,locale:g,disabled:Yt,disabledDate:R,generateConfig:v},!Bt||Vt[2]),Jt=Wi(Qt,2),tn=Jt[0],nn=Jt[1],en=Wi(b.useState(0),2),rn=en[0],on=en[1];function an(t){Kt(!0,t,"open"),y((function(){var n;null===(n=[zt,Mt][t].current)||void 0===n||n.focus()}),0)}function cn(t,n,e){var r=t,i=$o(r,0),o=$o(r,1);i&&o&&v.isAfter(i,o)&&("week"===S&&!bo(v,g.locale,i,o)||"quarter"===S&&!lo(v,i,o)||"week"!==S&&"quarter"!==S&&"time"!==S&&!ho(v,i,o)?0===n?(r=[i,null],o=null):(i=null,r=[null,o]):"time"===S&&!1===dt||(r=ns(r,v))),Ht(r);var a=Ct(r,0),c=Ct(r,1);if(nt&&nt(r,[a,c],{range:0===n?"start":"end"}),!e){var u=es(i,0,Yt,W),s=es(o,1,Yt,W);(null===r||u&&s)&&(Et(r),!Q||mo(v,$o(Nt,0),i)&&mo(v,$o(Nt,1),o)||Q(r,[a,c]))}}b.useEffect((function(){!Bt&&xt.current&&on(xt.current.offsetWidth)}),[Bt]);var un=function(t){return Bt&&jt.current&&jt.current.onKeyDown?jt.current.onKeyDown(t):(x(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},sn={formatList:Dt,generateConfig:v,locale:g},ln=Wi(yo($o(Lt,0),sn),2),fn=ln[0],dn=ln[1],hn=Wi(yo($o(Lt,1),sn),2),bn=hn[0],mn=hn[1],pn=function(t,n){var e=xo(t,{locale:g,formatList:Dt,generateConfig:v});e&&!(0===n?tn:nn)(e)&&(Ht(Uo(Lt,e,n)),Rt(e,n))},vn=Wi(Po({valueTexts:fn,onTextChange:function(t){return pn(t,0)}}),3),gn=vn[0],xn=vn[1],wn=vn[2],yn=Wi(Po({valueTexts:bn,onTextChange:function(t){return pn(t,1)}}),3),_n=yn[0],kn=yn[1],zn=yn[2],Mn=Wi(b.useState(null),2),Sn=Mn[0],Dn=Mn[1],Cn=Wi(b.useState(null),2),jn=Cn[0],Yn=Cn[1],On=Wi(_o(gn,{formatList:Dt,generateConfig:v,locale:g}),3),Nn=On[0],En=On[1],Tn=On[2],An=Wi(_o(_n,{formatList:Dt,generateConfig:v,locale:g}),3),Rn=An[0],Pn=An[1],In=An[2],Ln=Wi(b.useState(Bt),2),Hn=Ln[0],Fn=Ln[1];b.useEffect((function(){Fn(Bt)}),[Bt]);var $n=function(t){if(Hn)if(gt){var n=qt?0:1;$o(Lt,n)&&cn(Lt,n,!0)}else vt&&$o(Lt,qt)&&cn(Lt,qt);return null==rt?void 0:rt(t)},Un=function(t,n){return{blurToCancel:!vt&>,changeOnBlur:vt,forwardKeyDown:un,onBlur:$n,isClickOutside:function(t){var n=[yt.current,_t.current,xt.current];return!To([].concat(zo(gt?[n[qt]]:n),[wt.current]),t)},onFocus:function(t){et&&et(t)},triggerOpen:function(n){n?Kt(n,t,"open"):Kt(n,!!$o(Lt,t)&&t,"blur")},onSubmit:function(){if(!Lt||R&&R(Lt[t]))return!1;cn(Lt,t),n(),Kt(!1,qt,"confirm")},onCancel:function(){Kt(!1,t,"cancel"),Ht(Nt),n()}}},Wn={onKeyDown:function(t,n){null==lt||lt(t,n)}},Gn=Wi(Ao(Fi(Fi({},Un(0,wn)),{},{open:Zt,value:gn},Wn)),2),Vn=Gn[0],Bn=Gn[1],qn=Bn.focused,Kn=Bn.typing,Zn=Wi(Ao(Fi(Fi({},Un(1,zn)),{},{open:Xt,value:_n},Wn)),2),Xn=Zn[0],Qn=Zn[1],Jn=Qn.focused,te=Qn.typing,ne=Nt&&Nt[0]?go(Nt[0],{locale:g,format:"YYYYMMDDHHmmss",generateConfig:v}):"",ee=Nt&&Nt[1]?go(Nt[1],{locale:g,format:"YYYYMMDDHHmmss",generateConfig:v}):"";b.useEffect((function(){Bt||(Ht(Nt),fn.length&&""!==fn[0]?dn!==gn&&wn():xn(""),bn.length&&""!==bn[0]?mn!==_n&&zn():kn(""))}),[Bt,fn,bn]),b.useEffect((function(){Ht(Nt)}),[ne,ee]);var re=Lo({cellRender:H,monthCellRender:L,dateRender:I}),ie=b.useMemo((function(){if(re)return function(t,n){return re(t,Fi(Fi({},n),{},{range:qt?"end":"start"}))}}),[qt,re]);q&&(q.current={focus:function(){zt.current&&zt.current.focus()},blur:function(){zt.current&&zt.current.blur(),Mt.current&&Mt.current.blur()}});var oe=Ro($,U);function ae(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;Bt&&jn&&jn[0]&&jn[1]&&v.isAfter(jn[1],jn[0])&&(r=jn);var i=D;if(D&&"object"===Ci(D)&&D.defaultValue){var a=D.defaultValue;i=Fi(Fi({},D),{},{defaultValue:$o(a,qt)||void 0})}return b.createElement(Vo.Provider,{value:{inRange:!0,panelPosition:n,rangedValue:Sn||Lt,hoverRangedValue:r}},b.createElement(ja,Ii({},t,e,{cellRender:ie,showTime:i,mode:$t[qt],generateConfig:v,style:void 0,direction:ht,disabledDate:0===qt?tn:nn,disabledTime:function(t){return!!P&&P(t,0===qt?"start":"end")},className:l(Li({},"".concat(o,"-panel-focused"),0===qt?!Kn:!te)),value:$o(Lt,qt),locale:g,tabIndex:-1,onPanelChange:function(t,e){0===qt&&Tn(!0),1===qt&&In(!0),Wt(Uo($t,e,qt),Uo(Lt,t,qt));var r=t;"right"===n&&$t[qt]===e&&(r=vo(r,e,v,-1)),Rt(r,qt)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:$o(Lt,0===qt?1:0)})))}var ce=0,ue=0;if(qt&&yt.current&&kt.current&&wt.current&&St.current){ce=yt.current.offsetWidth+kt.current.offsetWidth;var se=wt.current.offsetWidth,le=St.current.offsetWidth;se&&le&&ce>se-le-("rtl"===ht?0:St.current.offsetLeft>ce?St.current.offsetLeft-ce:St.current.offsetLeft)&&(ue=ce)}var fe,de="rtl"===ht?{right:ce}:{left:ce},he=b.createElement("div",{className:l("".concat(o,"-range-wrapper"),"".concat(o,"-").concat(S,"-range-wrapper")),style:{minWidth:rn}},b.createElement("div",{ref:St,className:"".concat(o,"-range-arrow"),style:de}),function(){var t,n=Sa(o,$t[qt],X),e=Da({prefixCls:o,components:ft,needConfirmButton:gt,okDisabled:!$o(Lt,qt)||R&&R(Lt[qt]),locale:g,onOk:function(){$o(Lt,qt)&&(cn(Lt,qt),null==st||st(Lt),Kt(!1,qt,"confirm"))}});if("time"===S||D)t=ae();else{var r=At(qt),i=vo(r,S,v),a=$t[qt]===S,c=ae(!!a&&"left",{pickerValue:r,onPickerValueChange:function(t){Rt(t,qt)}}),u=ae("right",{pickerValue:i,onPickerValueChange:function(t){Rt(vo(t,S,v,-1),qt)}});t="rtl"===ht?b.createElement(b.Fragment,null,u,a&&c):b.createElement(b.Fragment,null,c,a&&u)}var s=b.createElement("div",{className:"".concat(o,"-panel-layout")},b.createElement(Zu,{prefixCls:o,presets:oe,onClick:function(t){cn(t,null),Kt(!1,qt,"preset")},onHover:function(t){Dn(t)}}),b.createElement("div",null,b.createElement("div",{className:"".concat(o,"-panels")},t),(n||e)&&b.createElement("div",{className:"".concat(o,"-footer")},n,e)));return F&&(s=F(s)),b.createElement("div",{className:"".concat(o,"-panel-container"),style:{marginLeft:ue},ref:wt,onMouseDown:function(t){t.preventDefault()}},s)}());V&&(fe=b.createElement("span",{className:"".concat(o,"-suffix"),onMouseDown:function(t){t.preventDefault()}},V));var be=Xu(o,G,B),me=b.createElement("span",{onMouseDown:function(t){t.preventDefault(),t.stopPropagation()},onMouseUp:function(t){t.preventDefault(),t.stopPropagation();var n=Nt;Yt[0]||(n=Uo(n,null,0)),Yt[1]||(n=Uo(n,null,1)),cn(n,null),Kt(!1,qt,"clear")},className:"".concat(o,"-clear"),role:"button"},be),pe=G&&($o(Nt,0)&&!Yt[0]||$o(Nt,1)&&!Yt[1]),ve={size:Yo(S,Dt[0],v)},ge=0,xe=0;yt.current&&_t.current&&kt.current&&(0===qt?xe=yt.current.offsetWidth:(ge=ce,xe=_t.current.offsetWidth));var we="rtl"===ht?{right:ge}:{left:ge};return b.createElement(Io.Provider,{value:{operationRef:jt,hideHeader:"time"===S,onDateMouseEnter:function(t){Yn(Uo(Lt,t,qt)),0===qt?En(t):Pn(t)},onDateMouseLeave:function(){Yn(Uo(Lt,null,qt)),0===qt?Tn():In()},hideRanges:!0,onSelect:function(t,n){var e=Uo(Lt,t,qt);"submit"===n||"key"!==n&&!gt?(cn(e,qt),0===qt?Tn():In(),Kt(!1,!Yt[0===qt?1:0]&&qt,"confirm")):Ht(e)},open:Bt}},b.createElement(Ku,{visible:Bt,popupElement:he,popupStyle:s,prefixCls:o,dropdownClassName:f,dropdownAlign:h,getPopupContainer:m,transitionName:d,range:!0,direction:ht},b.createElement("div",Ii({ref:xt,className:l(o,"".concat(o,"-range"),u,(n={},Li(n,"".concat(o,"-disabled"),Yt[0]&&Yt[1]),Li(n,"".concat(o,"-focused"),0===qt?qn:Jn),Li(n,"".concat(o,"-rtl"),"rtl"===ht),n)),style:c,onClick:function(t){ut&&ut(t),Bt||zt.current.contains(t.target)||Mt.current.contains(t.target)||(Yt[0]?Yt[1]||an(1):an(0))},onMouseEnter:at,onMouseLeave:ct,onMouseDown:function(t){it&&it(t),!Bt||!qn&&!Jn||zt.current.contains(t.target)||Mt.current.contains(t.target)||t.preventDefault()},onMouseUp:ot},ro(t,{aria:!0,data:!0})),b.createElement("div",{className:l("".concat(o,"-input"),(e={},Li(e,"".concat(o,"-input-active"),0===qt),Li(e,"".concat(o,"-input-placeholder"),!!Nn),e)),ref:yt},b.createElement("input",Ii({id:a,disabled:Yt[0],readOnly:K||"function"==typeof Dt[0]||!Kn,value:Nn||gn,onChange:function(t){xn(t.target.value)},autoFocus:_,placeholder:$o(w,0)||"",ref:zt},Vn,ve,{autoComplete:pt}))),b.createElement("div",{className:"".concat(o,"-range-separator"),ref:kt},Y),b.createElement("div",{className:l("".concat(o,"-input"),(r={},Li(r,"".concat(o,"-input-active"),1===qt),Li(r,"".concat(o,"-input-placeholder"),!!Rn),r)),ref:_t},b.createElement("input",Ii({disabled:Yt[1],readOnly:K||"function"==typeof Dt[0]||!te,value:Rn||_n,onChange:function(t){kn(t.target.value)},placeholder:$o(w,1)||"",ref:Mt},Xn,ve,{autoComplete:pt}))),b.createElement("div",{className:"".concat(o,"-active-bar"),style:Fi(Fi({},we),{},{width:xe,position:"absolute"})}),fe,pe&&me)))}var is=function(){Ti(n,b.Component);var t=Pi(n);function n(){var e;Di(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Li(Ni(e=t.call.apply(t,[this].concat(i))),"pickerRef",b.createRef()),Li(Ni(e),"focus",(function(){e.pickerRef.current&&e.pickerRef.current.focus()})),Li(Ni(e),"blur",(function(){e.pickerRef.current&&e.pickerRef.current.blur()})),e}return Oi(n,[{key:"render",value:function(){return b.createElement(rs,Ii({},this.props,{pickerRef:this.pickerRef}))}}]),n}(),os=N((function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports})),as=N((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.call=c,n.default=void 0,n.note=o,n.noteOnce=s,n.preMessage=void 0,n.resetWarned=a,n.warning=i,n.warningOnce=u;var e={},r=function(){};function i(){}function o(){}function a(){e={}}function c(t,n,r){n||e[r]||(t(!1,r),e[r]=!0)}function u(t,n){c(i,t,n)}function s(t,n){c(o,t,n)}n.preMessage=r,u.preMessage=r,u.resetWarned=a,u.noteOnce=s,n.default=u}));const cs=T(xi);var us=N((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e=os(cs),r={getNow:function(){return(0,e.default)()},getFixedDate:function(t){return(0,e.default)(t,"YYYY-MM-DD")},getEndDate:function(t){return t.clone().endOf("month")},getWeekDay:function(t){var n=t.clone().locale("en_US");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},addYear:function(t,n){return t.clone().add(n,"year")},addMonth:function(t,n){return t.clone().add(n,"month")},addDate:function(t,n){return t.clone().add(n,"day")},setYear:function(t,n){return t.clone().year(n)},setMonth:function(t,n){return t.clone().month(n)},setDate:function(t,n){return t.clone().date(n)},setHour:function(t,n){return t.clone().hour(n)},setMinute:function(t,n){return t.clone().minute(n)},setSecond:function(t,n){return t.clone().second(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return(0,e.default)().locale(t).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.clone().locale(t).weekday(0)},getWeek:function(t,n){return n.clone().locale(t).week()},getShortWeekDays:function(t){return(0,e.default)().locale(t).localeData().weekdaysMin()},getShortMonths:function(t){return(0,e.default)().locale(t).localeData().monthsShort()},format:function(t,n,e){return n.clone().locale(t).format(e)},parse:function(t,n,r){for(var i=[],o=0;o<r.length;o+=1){var a=r[o],c=n;if(a.includes("wo")||a.includes("Wo")){var u=(a=a.replace(/wo/g,"w").replace(/Wo/g,"W")).match(/[-YyMmDdHhSsWwGg]+/g),s=c.match(/[-\d]+/g);u&&s?(a=u.join(""),c=s.join("")):i.push(a.replace(/o/g,""))}var l=(0,e.default)(c,a,t,!0);if(l.isValid())return l}for(var f=0;f<i.length;f+=1){var d=(0,e.default)(n,i[f],t,!1);if(d.isValid())return(0,as.noteOnce)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),d}return null}}};n.default=r}));const ss=A(us),ls=A(N((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}}))),fs=class{constructor(t){n(this,t),this.bcmRCPickerChange=e(this,"bcmRCPickerChange",7),this.manageDisabledDates=t=>{const{min:n,max:e,dates:r,custom:i}=this.disabledDates||{};return!(!n||!t.isBefore(this.convertDateToMoment(n)))||!(!e||!t.isAfter(this.convertDateToMoment(e)))||(r&&r.length>0?r.some((n=>t.isSame(this.convertDateToMoment(n),"day"))):!!i&&i(t))},this.manageDisabledTime=()=>{const{disabledHours:t,disabledMinutes:n,disabledSeconds:e}=this.disabledTime||{};return Object.assign(Object.assign(Object.assign({},t&&this.showHour&&{disabledHours:()=>t}),n&&this.showMinute&&{disabledMinutes:()=>n}),e&&this.showSecond&&{disabledSeconds:()=>e})},this.convertDateToMoment=t=>t&&"invalid date"!==t?Dt(t):null,this.placeholder=void 0,this.size=s.Size.medium,this.error=!1,this.disabled=!1,this.clearable=!1,this.type="date",this.format=void 0,this.range=!1,this.showToday=!0,this.disabledDates=void 0,this.showTime=!1,this.showNow=!0,this.showHour=!0,this.showMinute=!0,this.showSecond=!1,this.use12Hours=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.hideDisabledOptions=!1,this.disabledTime=void 0,this.newValue=null}async set(t){this.newValue=t?Dt(t):null,this.bcmRCPickerChange.emit(this.newValue)}componentDidRender(){const t={showToday:this.showToday,disabledDate:t=>this.manageDisabledDates(t)},n={showNow:this.showNow,showHour:this.showHour,showMinute:this.showMinute,showSecond:this.showSecond,use12Hours:this.use12Hours,hourStep:this.hourStep,minuteStep:this.minuteStep,secondStep:this.secondStep,hideDisabledOptions:this.hideDisabledOptions,disabledTime:()=>this.manageDisabledTime()},e={time:Object.assign({},n),date:Object.assign({},t),datetime:Object.assign(Object.assign(Object.assign({},t),n),{showTime:Object.assign({showSecond:this.showSecond},n)})},r=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({generateConfig:ss,value:this.newValue,onChange:t=>this.set(t)},this.format&&{format:this.format}),this.clearable&&{allowClear:this.clearable}),this.placeholder&&{placeholder:this.placeholder}),this.error&&{error:this.error}),this.disabled&&{disabled:this.disabled}),{picker:this.type}),e[this.type]),{prefixCls:"bcm-date",suffixIcon:" ",autofocus:!0,locale:ls,className:l(`bcm-date--${this.type}`,{[`bcm-date--${this.size}`]:this.size,"bcm-date--error":this.error})});m.render(b.createElement(this.range?is:Ju,Object.assign({},r)),this.el)}get el(){return i(this)}};fs.style='@charset "UTF-8";@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-date{font-family:"Inter", sans-serif;font-size:14px;line-height:22px;font-weight:500;display:flex;align-items:stretch;flex-direction:row;background-color:#fff;border:1px solid #cbd5e1;color:#334155;border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%;}.bcm-date--large{height:40px;font-size:16px}.bcm-date--medium{height:32px;font-size:14px}.bcm-date--small{height:24px;font-size:12px}.bcm-date:hover{border:1px solid #4293cf;}.bcm-date-focused{background-color:#f8fafc}.bcm-date-suffix{color:#334155}.bcm-date-suffix:not(:empty){display:flex;align-items:center;justify-content:center;order:2}.bcm-date-suffix::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1;font-family:"Font Awesome 6 Pro";font-weight:400;line-height:1;box-sizing:border-box;padding:0 4px;cursor:pointer}.bcm-date--datetime .bcm-date-suffix::before{content:"\\e0d2"}.bcm-date--date .bcm-date-suffix::before{content:"\\f133"}.bcm-date--time .bcm-date-suffix::before{content:"\\f017"}.bcm-date-input{position:relative;display:inline-flex;width:100%;padding:0 4px;color:#334155}.bcm-date-input-placeholder{color:#94a3b8}.bcm-date-input>input{color:inherit;width:100%;flex:1;border:none;background:transparent;box-shadow:unset;line-height:22px;font-family:"Inter", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;overflow:hidden;text-overflow:ellipsis;font-weight:500}.bcm-date-input>input::placeholder{font-family:"Inter", sans-serif;color:#cbd5e1;user-select:none}.bcm-date-input>input::-webkit-search-decoration,.bcm-date-input>input::-webkit-search-cancel-button,.bcm-date-input>input::-webkit-search-results-button,.bcm-date-input>input::-webkit-search-results-decoration,.bcm-date-input>input::-webkit-calendar-picker-indicator,.bcm-date-input>input::-webkit-inner-spin-button,.bcm-date-input>input::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-date-input>input::-moz-placeholder{opacity:1}.bcm-date-input>input:placeholder-shown{text-overflow:ellipsis}.bcm-date-clear{color:#334155;display:flex;flex-direction:column;align-items:center;justify-content:center;width:20px;font-size:20px;padding-bottom:3px;line-height:1;order:1;cursor:pointer;font-weight:400}.bcm-date-clear-btn::after{content:"×"}.bcm-date-disabled{background-color:#f8fafc;color:#a0aec0;cursor:not-allowed}.bcm-date-disabled input{color:#a0aec0}.bcm-date-disabled:hover{border:1px solid #cbd5e1}.bcm-date-disabled .bcm-date-input{cursor:not-allowed}.bcm-date-disabled .bcm-date-suffix:before{cursor:not-allowed}.bcm-date-disabled .bcm-date-clear{cursor:not-allowed}.bcm-date--error{border:1px solid #e53e3e}.bcm-date--error:hover{border:1px solid #e53e3e}.bcm-date-dropdown{position:absolute;z-index:10800;box-shadow:0 4px 12px 0 rgba(17, 24, 39, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);background-color:#fff;top:-9999;left:-9999;border-radius:4px}.bcm-date-dropdown-placement-bottomLeft,.bcm-date-dropdown-placement-bottomRight{top:0;display:block}.bcm-date-dropdown-placement-topLeft,.bcm-date-dropdown-placement-topRight{bottom:0;display:block}.bcm-date-dropdown-hidden{display:none}.bcm-date-dropdown .bcm-date-panel-container{font-family:"Inter", sans-serif;font-size:14px;line-height:22px;font-weight:400}.bcm-date-dropdown .bcm-date-panels{display:inline-flex}.bcm-date-dropdown .bcm-date-decade-panel,.bcm-date-dropdown .bcm-date-year-panel,.bcm-date-dropdown .bcm-date-month-panel,.bcm-date-dropdown .bcm-date-week-panel,.bcm-date-dropdown .bcm-date-date-panel,.bcm-date-dropdown .bcm-date-time-panel{width:256px}.bcm-date-dropdown .bcm-date-time-panel{width:auto;padding-top:4px}.bcm-date-dropdown .bcm-date-time-panel .bcm-date-content{width:100%;table-layout:fixed;border-collapse:collapse;text-align:center;display:flex;flex:auto;height:224px}.bcm-date-dropdown .bcm-date-time-panel-column{flex:1 0 auto;width:56px;margin:4px 0;padding:0;overflow-y:hidden;text-align:start;list-style:none;transition:background 0.2s;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0.45) transparent;position:relative}.bcm-date-dropdown .bcm-date-time-panel-column:not(:first-child){border-inline-start:1px solid rgba(5, 5, 5, 0.06)}.bcm-date-dropdown .bcm-date-time-panel-column-active{background:rgba(0, 0, 255, 0.1)}.bcm-date-dropdown .bcm-date-time-panel-column:hover{overflow-y:auto}.bcm-date-dropdown .bcm-date-time-panel-column>li{margin:0;padding:0}.bcm-date-dropdown .bcm-date-time-panel-column>li.disabled{opacity:0.5}.bcm-date-dropdown .bcm-date-time-panel-column>li.bcm-date-time-panel-cell{margin-inline:4px}.bcm-date-dropdown .bcm-date-time-panel-column>li.bcm-date-time-panel-cell .bcm-date-time-panel-cell-inner{display:block;width:48px;height:28px;margin:0;padding-block:0;padding-inline-end:0;padding-inline-start:14px;color:rgba(0, 0, 0, 0.88);line-height:28px;border-radius:4px;cursor:pointer;transition:background 0.2s}.bcm-date-dropdown .bcm-date-time-panel-column>li.bcm-date-time-panel-cell .bcm-date-time-panel-cell-inner:hover{background:rgba(0, 0, 0, 0.04)}.bcm-date-dropdown .bcm-date-time-panel-column>li.bcm-date-time-panel-cell-selected .bcm-date-time-panel-cell-inner{background:#e6f4ff}.bcm-date-dropdown .bcm-date-time-panel-column>li.bcm-date-time-panel-cell-disabled .bcm-date-time-panel-cell-inner{pointer-events:none;color:rgba(0, 0, 0, 0.25)}.bcm-date-dropdown .bcm-date-datetime-panel{display:flex;flex-direction:row;align-items:stretch}.bcm-date-dropdown .bcm-date-datetime-panel .bcm-date-time-panel{padding-top:8px}.bcm-date-dropdown .bcm-date-datetime-panel .bcm-date-time-panel .bcm-date-header{display:none}.bcm-date-dropdown .bcm-date-header{padding:0 8px;color:rgba(0, 0, 0, 0.88);border-bottom:1px solid rgba(5, 5, 5, 0.06);display:flex;flex-direction:row;align-items:center;justify-content:space-between;font-size:18px}.bcm-date-dropdown .bcm-date-header>*{flex:none}.bcm-date-dropdown .bcm-date-header>button{min-width:20px}.bcm-date-dropdown .bcm-date-header button{padding:0;color:rgba(0, 0, 0, 0.45);line-height:40px;background:transparent;border:0;cursor:pointer;transition:color 0.2s;font-size:inherit}.bcm-date-dropdown .bcm-date-header button:hover{color:#3b82f6}.bcm-date-dropdown .bcm-date-header-view{flex:auto;text-align:center;font-weight:600;line-height:40px;gap:8px;font-size:14px}.bcm-date-dropdown .bcm-date-header-view button{color:inherit;font-weight:inherit;vertical-align:top;padding:0 4px}.bcm-date-dropdown .bcm-date-body{padding:8px 18px}.bcm-date-dropdown .bcm-date-content{text-align:center;width:100%;table-layout:fixed;border-collapse:collapse}.bcm-date-dropdown .bcm-date-content thead tr th{color:#334155;font-weight:400;font-size:12px;line-height:16px;padding:8px 0;text-align:center;text-transform:uppercase}.bcm-date-dropdown .bcm-date-cell{position:relative}.bcm-date-dropdown .bcm-date-cell::before{position:absolute;top:50%;inset-inline-start:0;inset-inline-end:0;z-index:1;height:24px;transform:translateY(-50%);transition:all 0.3s;content:""}.bcm-date-dropdown .bcm-date-cell-inner{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;border-radius:4px;border:1px solid transparent;transition:background 0.2s, border 0.2s;cursor:pointer;color:#94a3b8}.bcm-date-dropdown .bcm-date-cell-inner:hover{background:#e2e8f0;color:#64748b}.bcm-date-dropdown .bcm-date-cell-in-view .bcm-date-cell-inner{color:#334155}.bcm-date-dropdown .bcm-date-cell-today .bcm-date-cell-inner{border:1px solid #3b82f6;color:#3b82f6}.bcm-date-dropdown .bcm-date-cell-today .bcm-date-cell-inner:hover{background:#e2e8f0;color:#64748b}.bcm-date-dropdown .bcm-date-cell-selected .bcm-date-cell-inner{color:#fff;background:#3b82f6}.bcm-date-dropdown .bcm-date-cell-selected .bcm-date-cell-inner:hover{background:#2563eb;color:#fff}.bcm-date-dropdown .bcm-date-cell-in-range .bcm-date-cell-inner{background:#bfdbfe}.bcm-date-dropdown .bcm-date-cell-in-range::before{background:#bfdbfe}.bcm-date-dropdown .bcm-date-cell-range-hover .bcm-date-cell-inner{background:#93c5fd;color:#334155}.bcm-date-dropdown .bcm-date-cell-range-hover::before{background:#93c5fd}.bcm-date-dropdown .bcm-date-cell-range-start .bcm-date-cell-inner{background-color:#3b82f6;color:#fff;border-radius:4px 0 0 4px}.bcm-date-dropdown .bcm-date-cell-range-start .bcm-date-cell-inner:hover{background:#3b82f6;color:#fff;border-radius:4px 0 0 4px}.bcm-date-dropdown .bcm-date-cell-range-start::before{background:#bfdbfe;inset-inline-start:50%}.bcm-date-dropdown .bcm-date-cell-range-end .bcm-date-cell-inner{background-color:#3b82f6;color:#fff;border-radius:0 4px 4px 0}.bcm-date-dropdown .bcm-date-cell-range-end .bcm-date-cell-inner:hover{background:#3b82f6;color:#fff;border-radius:4px 0 0 4px}.bcm-date-dropdown .bcm-date-cell-range-end::before{background:#bfdbfe;inset-inline-end:50%}.bcm-date-dropdown .bcm-date-cell-range-hover-start .bcm-date-cell-inner{background-color:#93c5fd;color:#334155}.bcm-date-dropdown .bcm-date-cell-range-hover-start .bcm-date-cell-inner:hover{background:#93c5fd;color:#334155;border-radius:4px 0 0 4px}.bcm-date-dropdown .bcm-date-cell-range-hover-end .bcm-date-cell-inner:hover{background:#93c5fd;color:#334155;border-radius:0 4px 4px 0}.bcm-date-dropdown .bcm-date-cell-disabled .bcm-date-cell-inner{pointer-events:none;color:rgba(0, 0, 0, 0.25)}.bcm-date-dropdown .bcm-date-cell-disabled::before{background:rgba(0, 0, 0, 0.04)}.bcm-date-dropdown .bcm-date-footer{border-top:1px solid rgba(5, 5, 5, 0.06);width:min-content;min-width:100%;line-height:38px;text-align:center}.bcm-date-dropdown .bcm-date-footer .bcm-date-today-btn{color:#3b82f6;cursor:pointer;padding:0 8px}.bcm-date-dropdown .bcm-date-footer .bcm-date-today-btn:hover{color:#2563eb}.bcm-date-dropdown .bcm-date-ranges{margin:0;margin-bottom:0;padding:4px 12px;overflow:hidden;line-height:34px;text-align:start;list-style:none;display:flex;justify-content:space-between}.bcm-date-dropdown .bcm-date-ranges>li{display:inline-block}.bcm-date-dropdown .bcm-date-ranges .bcm-date-ok{margin-inline-start:auto}.bcm-date-dropdown .bcm-date-ranges .bcm-date-ok>button{font-size:14px;color:#fff;background-color:#3b82f6;box-shadow:0 2px 0 rgba(5, 145, 255, 0.1);height:24px;padding:0 7px;border-radius:4px;outline:none;border:none;cursor:pointer;transition:background-color 0.3s}.bcm-date-dropdown .bcm-date-ranges .bcm-date-ok>button:hover{background-color:#2563eb}.bcm-date-dropdown .bcm-date-now{text-align:right}.bcm-date-dropdown .bcm-date-now-btn{color:#3b82f6;text-decoration:none;background-color:transparent;outline:none;cursor:pointer;transition:color 0.3s;-webkit-text-decoration-skip:objects}.bcm-date-dropdown .bcm-date-now-btn:hover{color:#2563eb}.bcm-date-dropdown .bcm-date-range-wrapper{display:flex;position:relative}';const ds=class{constructor(t){n(this,t),this.change=e(this,"bcm-change",7),this.focus=e(this,"bcm-focus",7),this.blur=e(this,"bcm-blur",7),this._id=c.UID(),this._internal_id=c.UID(),this.checked=!1,this.hidden=!1,this.value=!1,this.name=void 0,this.disabled=!1,this.required=!1,this.size=u.Size.medium,this.readonly=!1,this.activeIcon=void 0,this.activeText=void 0,this.inactiveIcon=void 0,this.inactiveText=void 0,this.pending=!1,this.label=void 0,this.labelPosition="top",this.tooltip=void 0,this.caption=void 0,this.noCaption=!1,this.captionError=void 0,this.captionType=u.Status.default,this.captionCache=void 0,this.captionTypeCache=void 0}connectedCallback(){this.captionCache=this.caption,this.captionTypeCache=this.captionType,this.value=this.checked}handleChange(){this.checked=this.inputElement.checked,this.value=this.checked,this.change.emit(this.checked)}componentWillRender(){this.pending&&(this.disabled=!0)}async onBcmFocus(){this.el.focus()}async onBcmBlur(){this.el.blur()}async set(t){"boolean"==typeof t&&await this.check(t)}async check(t=!0){this.inputElement.checked=t,this.handleChange()}async get(){return this.checked||!1}async setClear(){return 1==this.inputElement.checked&&(this.inputElement.checked=!1,this.checked=this.inputElement.checked,this.value=this.checked,this.change.emit(this.checked)),await F(10),Promise.resolve()}async resetCaption(){return await F(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await F(10),Promise.resolve()}handleKeyUp(t){if(t.keyCode==u.KeyCode.space||t.keyCode==u.KeyCode.enter)return this.disabled||this.readonly||(this.inputElement.checked=!this.inputElement.checked,this.handleChange()),t.stopPropagation(),t.preventDefault(),!1}render(){const{hidden:n,_internal_id:e,checked:i,size:o,activeIcon:a,inactiveIcon:c,activeText:s,inactiveText:f,pending:d,disabled:h,readonly:b,label:m,required:p,noCaption:v,captionType:g,captionError:x,caption:w}=this,y=l("bcm-switch__toggle","bcm-switch__size-"+o,{"switch-checked":i,disabled:h,readonly:b}),_=l("bcm-switch","bcm-switch__size-"+o,{hidden:n,checked:i,disabled:h,readonly:b}),k=l("bcm-switch__label","input-size-"+u.Size[o]),z=l("bcm-switch__container",`bcm-switch__container--${this.labelPosition}`),M=n=>o!=u.Size.small&&(s||f)&&t("span",{class:n+"-text"},"active"==n?s:f),S=n=>o!=u.Size.small&&(a||c)&&t("bcm-icon",{icon:"active"==n?a:c,class:" icon-"+n});return t(r,{tabindex:"0",onFocus:()=>this.focus.emit(this.el),onBlur:()=>this.blur.emit(this.el),class:_},t("span",{hidden:!0},t("slot",null)),t("div",{class:z},m&&t("bcm-label",{htmlFor:e,tooltip:this.tooltip,type:g,value:m,required:p}),t("input",{id:e,onChange:()=>this.handleChange(),ref:t=>this.inputElement=t,checked:i,type:"checkbox",class:"switch",disabled:h||b}),t("label",{htmlFor:e,class:k},M("inactive"),t("div",{class:y},S("active"),t("span",{class:"handle"},d&&t("span",{class:"switch-spinner"})),S("inactive")),M("active"))),t(H,{noCaption:v,captionType:g,captionError:x,caption:w}))}get el(){return i(this)}};(function(t,n,e,r){var i,o=arguments.length,a=o<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,n,e,r);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(a=(o<3?i(a):o>3?i(n,e,a):i(n,e))||a);o>3&&a&&Object.defineProperty(n,e,a)})([R()],ds.prototype,"el",void 0),ds.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-switch{display:inline-flex;user-select:none;flex-direction:column;margin-bottom:8px}.bcm-switch__container{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}.bcm-switch__container--left,.bcm-switch__container--right{align-items:center}.bcm-switch__container--left .bcm-label__text,.bcm-switch__container--right .bcm-label__text{margin:0}.bcm-switch__container--left{flex-direction:row}.bcm-switch__container--left .bcm-label__text{margin-right:4px}.bcm-switch__container--right{flex-direction:row-reverse}.bcm-switch__container--right .bcm-label__text{margin-left:4px}.bcm-switch:focus-visible{outline:none}.bcm-switch:focus-visible .bcm-switch__toggle{background-color:var(--bcm-new-ds-color-slate-400)}.bcm-switch:focus-visible .bcm-switch__toggle.switch-checked{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-switch:hover{outline:none}.bcm-switch:hover .bcm-switch__toggle .handle{background-color:var(--bcm-new-ds-color-slate-100)}.bcm-switch:hover .bcm-switch__toggle.switch-checked .handle{background-color:var(--bcm-new-ds-color-slate-100)}.bcm-switch *{box-sizing:border-box}.bcm-switch.hidden{display:none}.bcm-switch input{display:none}.bcm-switch.disabled .bcm-switch__toggle{cursor:not-allowed;opacity:40%}.bcm-switch.readonly .bcm-switch__toggle{cursor:default;opacity:80%}.bcm-switch__label{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-flex;align-items:center;margin:0}.bcm-switch__label .active-text{color:var(--bcm-new-ds-color-blue-500);margin:0 0 0 4px}.bcm-switch__label .inactive-text{color:var(--bcm-new-ds-color-slate-500);margin:0 4px 0 0}.bcm-switch__toggle{display:flex;justify-content:space-between;align-items:center;border-radius:16px;background-color:var(--bcm-new-ds-color-slate-300);position:relative;cursor:pointer}.bcm-switch__toggle .handle{padding:1px;position:absolute;background-color:var(--bcm-new-ds-color-slate-50);display:inline-flex;align-items:center;justify-content:center;border-radius:16px;transition:left 0.2s ease-in-out, width 0.2s ease-in-out;box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1)}.bcm-switch__toggle .icon-active{opacity:0;margin-left:2px}.bcm-switch__toggle .icon-inactive{opacity:1;margin-right:2px}.bcm-switch__toggle.bcm-switch__size-small{width:32px;min-width:32px;height:16px;padding:4px}.bcm-switch__toggle.bcm-switch__size-small .handle{width:12px;height:12px;left:2px}.bcm-switch__toggle.bcm-switch__size-small.switch-checked .handle{left:18px}.bcm-switch__toggle.bcm-switch__size-small:active:not(.disabled):not(.readonly) .handle{width:16px}.bcm-switch__toggle.bcm-switch__size-small:active.switch-checked:not(.disabled):not(.readonly) .handle{left:12px}.bcm-switch__toggle.bcm-switch__size-small .switch-spinner{box-sizing:border-box;display:inline-flex;width:9px;height:9px;border-radius:50%;border:1px solid var(--bcm-new-ds-color-white);border-top-color:var(--bcm-new-ds-color-slate-900);animation:switch-spinner 1.5s linear infinite}.bcm-switch__toggle.bcm-switch__size-medium{width:36px;min-width:36px;height:18px;padding:4px}.bcm-switch__toggle.bcm-switch__size-medium .handle{width:14px;height:14px;left:2px}.bcm-switch__toggle.bcm-switch__size-medium.switch-checked .handle{left:20px}.bcm-switch__toggle.bcm-switch__size-medium:active:not(.disabled):not(.readonly) .handle{width:18px}.bcm-switch__toggle.bcm-switch__size-medium:active.switch-checked:not(.disabled):not(.readonly) .handle{left:14px}.bcm-switch__toggle.bcm-switch__size-medium .switch-spinner{box-sizing:border-box;display:inline-flex;width:11px;height:11px;border-radius:50%;border:1px solid var(--bcm-new-ds-color-white);border-top-color:var(--bcm-new-ds-color-slate-900);animation:switch-spinner 1.5s linear infinite}.bcm-switch__toggle.bcm-switch__size-large{width:40px;min-width:40px;height:20px;padding:4px}.bcm-switch__toggle.bcm-switch__size-large .handle{width:16px;height:16px;left:2px}.bcm-switch__toggle.bcm-switch__size-large.switch-checked .handle{left:22px}.bcm-switch__toggle.bcm-switch__size-large:active:not(.disabled):not(.readonly) .handle{width:20px}.bcm-switch__toggle.bcm-switch__size-large:active.switch-checked:not(.disabled):not(.readonly) .handle{left:16px}.bcm-switch__toggle.bcm-switch__size-large .switch-spinner{box-sizing:border-box;display:inline-flex;width:13px;height:13px;border-radius:50%;border:1px solid var(--bcm-new-ds-color-white);border-top-color:var(--bcm-new-ds-color-slate-900);animation:switch-spinner 1.5s linear infinite}.bcm-switch__toggle.switch-checked{background-color:var(--bcm-new-ds-color-blue-500)}.bcm-switch__toggle.switch-checked .icon-active{color:var(--bcm-new-ds-color-slate-100);opacity:1}.bcm-switch__toggle.switch-checked .icon-inactive{opacity:0}.bcm-switch__toggle.switch-checked .switch-spinner{border-top-color:var(--bcm-new-ds-color-blue-600)}.bcm-switch__size-small .bcm-switch__label,.bcm-switch__size-small .bcm-label__text{font-size:12px}.bcm-switch__size-small .bcm-switch__toggle{font-size:8px}.bcm-switch__size-medium .bcm-switch__label,.bcm-switch__size-medium .bcm-label__text{font-size:13px}.bcm-switch__size-medium .bcm-switch__toggle{font-size:9px}.bcm-switch__size-large .bcm-switch__label,.bcm-switch__size-large .bcm-label__text{font-size:16px}.bcm-switch__size-large .bcm-switch__toggle{font-size:12px}@keyframes switch-spinner{to{transform:rotate(360deg)}}';const hs=class{constructor(t){n(this,t),this.bcmTooltipShow=e(this,"bcmTooltipShow",7),this.bcmTooltipHide=e(this,"bcmTooltipHide",7),this._id=c.UID(),this.message="",this.placement=s.Placement.top,this.trigger=s.TriggerType.click,this.open=!1,this.color="slate",this.size=s.Size.medium,this.openDelay=0,this.closeDelay=0,this.autoHide=!1,this.targetId=void 0,this.tooltip=void 0}emitShow(){this.bcmTooltipShow.emit()}emitHide(){this.bcmTooltipHide.emit()}connectedCallback(){this.tooltip=new V({targetId:this.targetId||this._id,message:this.message,placement:this.placement,color:this.color,trigger:this.trigger,size:this.size,openDelay:this.openDelay,closeDelay:this.closeDelay,autoHide:this.autoHide,emitShow:()=>this.emitShow(),emitHide:()=>this.emitHide()})}componentDidLoad(){this.tooltip.listener()}componentDidRender(){this.tooltip.message=this.message,this.tooltip.placement=this.placement,this.tooltip.color=this.color,this.tooltip.trigger=this.trigger,this.tooltip.size=this.size,this.tooltip.openDelay=this.openDelay,this.tooltip.closeDelay=this.closeDelay,this.tooltip.autoHide=this.autoHide,this.tooltip.update()}disconnectedCallback(){this.tooltip.destroy()}async show(){this.tooltip.show()}async hide(){this.tooltip.hide()}async toggle(){this.tooltip.toggle()}render(){return t(r,{class:"tw-inline-flex tw-h-fit tw-w-fit",role:"tooltip","aria-hidden":"true"},t("slot",null))}get el(){return i(this)}};export{X as bcm_button,kt as bcm_colorful,wi as bcm_date,yi as bcm_form,ki as bcm_icon,zi as bcm_input,Mi as bcm_label,Si as bcm_linked,fs as bcm_rc_picker,ds as bcm_switch,hs as bcm_tooltip}
|