PageSourceSearch

https://pandada.ai/_next/static/chunks/051920fa.95904379a8390840.js

js pandada.ai collected 2026-10-04 22:53:58 UTC 422,881 bytes, 242 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5521],{89972:(e,t,n)=>{let o;n.d(t,{$n:()=>eB,$z:()=>eO,AR:()=>dy,BS:()=>pX,Bd:()=>eV,Bq:()=>pn,Dr:()=>fI,Go:()=>f$,Hb:()=>cG,IE:()=>fK,Jz:()=>e8,Kz:()=>e3,QN:()=>fq,QO:()=>eY,RI:()=>e5,Sc:()=>to,Uh:()=>fF,Vv:()=>tt,W1:()=>fA,WE:()=>e2,XX:()=>pV,YI:()=>dg,Z2:()=>cJ,Zh:()=>fW,_f:()=>e6,cz:()=>e7,dO:()=>pu,eu:()=>eT,fo:()=>e9,g8:()=>fH,gW:()=>e1,iU:()=>fX,jI:()=>s3,jc:()=>dv,l$:()=>pM,l0:()=>tr,l6:()=>po,lG:()=>n5,m_:()=>fz,ms:()=>it,oN:()=>eQ,oR:()=>px,pT:()=>rs,pd:()=>dm,rI:()=>cX,sG:()=>eK,sk:()=>ra,sx:()=>pt,vp:()=>e4,vs:()=>pY,wv:()=>ps,z6:()=>pe,zD:()=>f7});var i=n(49798),a=n(9350),l=n(10419),s=n(27114);function u({ref:e,...t}){let{icon:n,id:o,className:a,extend:l,...s}=t,u=`univerjs-icon univerjs-icon-${o} ${a||""}`.trim(),c=(0,i.useRef)(`_${Math.random().toString(36).substring(2,8)}`);return function e(t,n,o,a,l){return(0,i.createElement)(t.tag,{key:n,...function(e,t,n){let o={...e.attrs};null!=n&&n.colorChannel1&&"colorChannel1"===o.fill&&(o.fill=n.colorChannel1),"mask"===e.tag&&o.id&&(o.id=o.id+t.idSuffix),Object.entries(o).forEach(([e,n])=>{"mask"===e&&"string"==typeof n&&(o[e]=n.replace(/url\(#(.*)\)/,`url(#$1${t.idSuffix})`))});let{defIds:i}=t;return i&&0!==i.length&&("use"===e.tag&&o["xlink:href"]&&(o["xlink:href"]=o["xlink:href"]+t.idSuffix),Object.entries(o).forEach(([e,n])=>{"string"==typeof n&&(o[e]=n.replace(/url\(#(.*)\)/,`url(#$1${t.idSuffix})`))})),o}(t,o,l),...a},((function(e,t){var n;let{defIds:o}=t;return o&&0!==o.length&&"defs"===e.tag&&null!=(n=e.children)&&n.length?{...e,children:e.children.map(e=>"string"==typeof e.attrs.id&&o&&o.includes(e.attrs.id)?{...e,attrs:{...e.attrs,id:e.attrs.id+t.idSuffix}}:e)}:e})(t,o).children||[]).map((i,a)=>e(i,`${n}-${t.tag}-${a}`,o,void 0,l)))}(n,`${o}`,{defIds:n.defIds,idSuffix:c.current},{ref:e,className:u,...s},l)}n(33624),u.displayName="UniverIcon";let c={tag:"svg",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 17 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.87598 11.8327C8.87598 11.5013 9.14461 11.2327 9.47598 11.2327H11.476C11.8073 11.2327 12.076 11.5013 12.076 11.8327C12.076 12.164 11.8073 12.4327 11.476 12.4327H9.47598C9.14461 12.4327 8.87598 12.164 8.87598 11.8327Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M4.80898 11.2327C4.47761 11.2327 4.20898 11.5013 4.20898 11.8327C4.20898 12.164 4.47761 12.4327 4.80898 12.4327H6.80898C7.14036 12.4327 7.40898 12.164 7.40898 11.8327C7.40898 11.5013 7.14036 11.2327 6.80898 11.2327H4.80898Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M8.87598 9.16592C8.87598 8.83455 9.14461 8.56592 9.47598 8.56592H11.476C11.8073 8.56592 12.076 8.83455 12.076 9.16592C12.076 9.49729 11.8073 9.76592 11.476 9.76592H9.47598C9.14461 9.76592 8.87598 9.49729 8.87598 9.16592Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M4.80898 8.56592C4.47761 8.56592 4.20898 8.83455 4.20898 9.16592C4.20898 9.49729 4.47761 9.76592 4.80898 9.76592H6.80898C7.14036 9.76592 7.40898 9.49729 7.40898 9.16592C7.40898 8.83455 7.14036 8.56592 6.80898 8.56592H4.80898Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M6.00615 1.69985C6.00615 1.36848 5.73752 1.09985 5.40615 1.09985C5.07478 1.09985 4.80615 1.36848 4.80615 1.69985V2.34009H3.64248C2.20654 2.34009 1.04248 3.50415 1.04248 4.94009V12.3C1.04248 13.7359 2.20654 14.9 3.64248 14.9H12.6425C14.0784 14.9 15.2425 13.7359 15.2425 12.3V4.94009C15.2425 3.50415 14.0784 2.34009 12.6425 2.34009H11.4798V1.69985C11.4798 1.36848 11.2112 1.09985 10.8798 1.09985C10.5484 1.09985 10.2798 1.36848 10.2798 1.69985V2.34009H6.00615V1.69985ZM14.0425 5.97021V4.94009C14.0425 4.16689 13.4157 3.54009 12.6425 3.54009H11.4798V4.09985C11.4798 4.43122 11.2112 4.69985 10.8798 4.69985C10.5484 4.69985 10.2798 4.43122 10.2798 4.09985V3.54009H6.00615V4.09985C6.00615 4.43122 5.73752 4.69985 5.40615 4.69985C5.07478 4.69985 4.80615 4.43122 4.80615 4.09985V3.54009H3.64248C2.86928 3.54009 2.24248 4.16689 2.24248 4.94009V5.97021H14.0425ZM2.24248 7.17021H14.0425V12.3C14.0425 13.0731 13.4157 13.7 12.6425 13.7H3.64248C2.86928 13.7 2.24248 13.0732 2.24248 12.3V7.17021Z",fillRule:"evenodd",clipRule:"evenodd"}}]};(0,i.forwardRef)(function(e,t){return(0,i.createElement)(u,Object.assign({},e,{id:"calendar-icon",ref:t,icon:c}))}
1).displayName="CalendarIcon";let d={tag:"svg",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M14.1544 3.75557C14.3887 3.98988 14.3887 4.36978 14.1544 4.6041L6.51409 12.2444C6.40157 12.3569 6.24896 12.4201 6.08983 12.4201C5.9307 12.4201 5.77808 12.3569 5.66556 12.2444L1.84541 8.42425C1.6111 8.18993 1.6111 7.81003 1.84541 7.57572C2.07973 7.34141 2.45963 7.34141 2.69394 7.57572L6.08983 10.9716L13.3059 3.75557C13.5402 3.52126 13.9201 3.52126 14.1544 3.75557Z",fillRule:"evenodd",clipRule:"evenodd"}}]},f=(0,i.forwardRef)(function(e,t){return(0,i.createElement)(u,Object.assign({},e,{id:"check-mark-icon",ref:t,icon:d}))});f.displayName="CheckMarkIcon";let p={tag:"svg",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 17 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.24483 4.80026C8.24487 4.46889 7.97627 4.20023 7.6449 4.2002C7.31353 4.20016 7.04487 4.46876 7.04483 4.80013L7.04443 8.40306C7.04442 8.56222 7.10763 8.71486 7.22017 8.82739L9.64664 11.2539C9.88095 11.4882 10.2608 11.4882 10.4952 11.2539C10.7295 11.0195 10.7295 10.6396 10.4952 10.4053L8.24446 8.15463L8.24483 4.80026Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M8.14248 0.899902C4.22126 0.899902 1.04248 4.07868 1.04248 7.9999C1.04248 11.9211 4.22126 15.0999 8.14248 15.0999C12.0637 15.0999 15.2425 11.9211 15.2425 7.9999C15.2425 4.07868 12.0637 0.899902 8.14248 0.899902ZM2.24248 7.9999C2.24248 4.74142 4.884 2.0999 8.14248 2.0999C11.401 2.0999 14.0425 4.74142 14.0425 7.9999C14.0425 11.2584 11.401 13.8999 8.14248 13.8999C4.884 13.8999 2.24248 11.2584 2.24248 7.9999Z",fillRule:"evenodd",clipRule:"evenodd"}}]},v=(0,i.forwardRef)(function(e,t){return(0,i.createElement)(u,Object.assign({},e,{id:"clock-icon",ref:t,icon:p}))});v.displayName="ClockIcon";let h={tag:"svg",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.71274 2.86421C3.47843 2.6299 3.09853 2.6299 2.86421 2.86421C2.6299 3.09853 2.6299 3.47843 2.86421 3.71274L7.15154 8.00007L2.86421 12.2874C2.6299 12.5217 2.6299 12.9016 2.86421 13.1359C3.09853 13.3702 3.47843 13.3702 3.71274 13.1359L8.00007 8.84859L12.2874 13.1359C12.5217 13.3702 12.9016 13.3702 13.1359 13.1359C13.3702 12.9016 13.3702 12.5217 13.1359 12.2874L8.84859 8.00007L13.1359 3.71274C13.3702 3.47843 13.3702 3.09853 13.1359 2.86421C12.9016 2.6299 12.5217 2.6299 12.2874 2.86421L8.00007 7.15154L3.71274 2.86421Z"}}]},m=(0,i.forwardRef)(function(e,t){return(0,i.createElement)(u,Object.assign({},e,{id:"close-icon",ref:t,icon:h}))});m.displayName="CloseIcon";let g={tag:"svg",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M10.5547 14.1884C10.2599 14.5214 9.74019 14.5214 9.4454 14.1884L3.71321 7.71335C3.29002 7.23532 3.6294 6.48161 4.26784 6.48161L15.7322 6.48161C16.3707 6.48161 16.7101 7.23532 16.2869 7.71335L10.5547 14.1884Z"}}]};(0,i.forwardRef)(function(e,t){return(0,i.createElement)(u,Object.assign({},e,{id:"down-icon",ref:t,icon:g}))}).displayName="DownIcon";let y={tag:"svg",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.85869 12.9216C8.38445 13.4708 7.61555 13.4708 7.14131 12.9216L0.358114 5.06726C-0.406895 4.18144 0.134916 2.66683 1.2168 2.66683L14.7832 2.66683C15.8651 2.66683 16.4069 4.18144 15.6419 5.06726L8.85869 12.9216Z"}}]};(0,i.forwardRef)(function(e,t){return(0,i.createElement)(u,Object.assign({},e,{id:"dropdown-icon",ref:t,icon:y}))}).displayName="DropdownIcon";let b={tag:"svg",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM10.3097 5.69014C10.544 5.92445 10.544 6.30435 10.3097 6.53867L8.84843 7.9999L10.3099 9.46137C10.5442 9.69569 10.5442 10.0756 10.3099 10.3099C10.0756 10.5442 9.69569 10.5442 9.46137 10.3099L7.9999 8.84843L6.53842 10.3099C6.30411 10.5442 5.92421 10.5442 5.6899 10.3099C5.45558 10.0756 5.45558 9.69569 5.6899 9.46137L7.15137 7.9999L5.69014 6.53867C5.45583 6.30435 5.45583 5.92445 5.
169014 5.69014C5.92445 5.45583 6.30435 5.45583 6.53867 5.69014L7.9999 7.15137L9.46113 5.69014C9.69544 5.45583 10.0753 5.45583 10.3097 5.69014Z",fillRule:"evenodd",clipRule:"evenodd"}}]},w=(0,i.forwardRef)(function(e,t){return(0,i.createElement)(u,Object.assign({},e,{id:"error-icon",ref:t,icon:b}))});w.displayName="ErrorIcon";let x={tag:"svg",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.00016 1.33203C6.68162 1.33203 5.39269 1.72302 4.29636 2.45557C3.20004 3.18811 2.34555 4.2293 1.84097 5.44747C1.33638 6.66565 1.20436 8.00609 1.4616 9.2993C1.71883 10.5925 2.35377 11.7804 3.28612 12.7127C4.21847 13.6451 5.40636 14.28 6.69956 14.5373C7.99277 14.7945 9.33321 14.6625 10.5514 14.1579C11.7696 13.6533 12.8108 12.7988 13.5433 11.7025C14.2758 10.6062 14.6668 9.31724 14.6668 7.9987C14.6649 6.23118 13.9619 4.53662 12.7121 3.2868C11.4622 2.03697 9.76768 1.33397 8.00016 1.33203ZM7.66683 3.9987C7.86461 3.9987 8.05795 4.05735 8.2224 4.16723C8.38685 4.27711 8.51502 4.43329 8.59071 4.61601C8.6664 4.79874 8.6862 4.99981 8.64762 5.19379C8.60903 5.38777 8.51379 5.56595 8.37394 5.7058C8.23409 5.84566 8.0559 5.9409 7.86192 5.97948C7.66794 6.01807 7.46687 5.99826 7.28415 5.92258C7.10142 5.84689 6.94524 5.71872 6.83536 5.55427C6.72548 5.38982 6.66683 5.19648 6.66683 4.9987C6.66683 4.73348 6.77219 4.47913 6.95972 4.29159C7.14726 4.10405 7.40162 3.9987 7.66683 3.9987ZM9.3335 11.332H6.66683C6.49002 11.332 6.32045 11.2618 6.19543 11.1368C6.0704 11.0117 6.00016 10.8422 6.00016 10.6654C6.00016 10.4886 6.0704 10.319 6.19543 10.194C6.32045 10.0689 6.49002 9.9987 6.66683 9.9987H7.3335V7.9987H6.66683C6.49002 7.9987 6.32045 7.92846 6.19543 7.80343C6.0704 7.67841 6.00016 7.50884 6.00016 7.33203C6.00016 7.15522 6.0704 6.98565 6.19543 6.86063C6.32045 6.7356 6.49002 6.66536 6.66683 6.66536H8.00016C8.17698 6.66536 8.34655 6.7356 8.47157 6.86063C8.59659 6.98565 8.66683 7.15522 8.66683 7.33203V9.9987H9.3335C9.51031 9.9987 9.67988 10.0689 9.8049 10.194C9.92993 10.319 10.0002 10.4886 10.0002 10.6654C10.0002 10.8422 9.92993 11.0117 9.8049 11.1368C9.67988 11.2618 9.51031 11.332 9.3335 11.332Z"}}]},C=(0,i.forwardRef)(function(e,t){return(0,i.createElement)(u,Object.assign({},e,{id:"info-icon",ref:t,icon:x}))});C.displayName="InfoIcon";let E={tag:"svg",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z",fillRule:"evenodd",clipRule:"evenodd"}}]},S=(0,i.forwardRef)(function(e,t){return(0,i.createElement)(u,Object.assign({},e,{id:"more-down-icon",ref:t,icon:E}))});S.displayName="MoreDownIcon";let R={tag:"svg",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 17 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M10.3536 12.3536C10.1583 12.5488 9.84171 12.5488 9.64645 12.3536L6.64645 9.35355C6.45118 9.15829 6.45118 8.84171 6.64645 8.64645L9.64645 5.64645C9.84171 5.45118 10.1583 5.45118 10.3536 5.64645C10.5488 5.84171 10.5488 6.15829 10.3536 6.35355L7.70711 9L10.3536 11.6464C10.5488 11.8417 10.5488 12.1583 10.3536 12.3536Z",fillRule:"evenodd",clipRule:"evenodd"}}]},k=(0,i.forwardRef)(function(e,t){return(0,i.createElement)(u,Object.assign({},e,{id:"more-left-icon",ref:t,icon:R}))});k.displayName="MoreLeftIcon";let M={tag:"svg",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M6.14645 4.64645C6.34171 4.45118 6.65829 4.45118 6.85355 4.64645L9.85355 7.64645C10.0488 7.84171 10.0488 8.15829 9.85355 8.35355L6.85355 11.3536C6.65829 11.5488 6.34171 11.5488 6.14645 11.3536C5.95118 11.1583 5.95118 10.8417 6.14645 10.6464L8.79289 8L6.14645 5.35355C5.95118 5.15829 5.95118 4.84171 6.14645 4.64645Z",fillRule:"evenodd",clipRule:"evenodd"}}]},j=(0,i.forwardRef)(function(e,t){return(0,i.createElement)(u,Object.assign({},e,{id:"more-right-icon",ref:t,icon:M}))});j.displayName="MoreRightIcon";let N={tag:"svg",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"}
1,children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.64645 9.85355C4.45118 9.65829 4.45118 9.34171 4.64645 9.14645L7.64645 6.14645C7.84171 5.95118 8.15829 5.95118 8.35355 6.14645L11.3536 9.14645C11.5488 9.34171 11.5488 9.65829 11.3536 9.85355C11.1583 10.0488 10.8417 10.0488 10.6464 9.85355L8 7.20711L5.35355 9.85355C5.15829 10.0488 4.84171 10.0488 4.64645 9.85355Z",fillRule:"evenodd",clipRule:"evenodd"}}]},O=(0,i.forwardRef)(function(e,t){return(0,i.createElement)(u,Object.assign({},e,{id:"more-up-icon",ref:t,icon:N}))});O.displayName="MoreUpIcon";let D={tag:"svg",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M5.65252 5.41446C5.86681 5.53124 6.00016 5.75579 6.00016 5.99984V9.99984C6.00016 10.368 5.70168 10.6665 5.3335 10.6665C4.96531 10.6665 4.66683 10.368 4.66683 9.99984V7.22312L4.36151 7.42005C4.05209 7.61961 3.63948 7.53056 3.43992 7.22115C3.24035 6.91173 3.3294 6.49912 3.63882 6.29956L4.97215 5.43959C5.17724 5.30731 5.43822 5.29767 5.65252 5.41446Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M12.3335 5.99984C12.3335 5.75579 12.2001 5.53124 11.9858 5.41446C11.7716 5.29767 11.5106 5.30731 11.3055 5.43959L9.97215 6.29956C9.66274 6.49912 9.57368 6.91173 9.77325 7.22115C9.97281 7.53056 10.3854 7.61961 10.6948 7.42005L11.0002 7.22312V9.99984C11.0002 10.368 11.2986 10.6665 11.6668 10.6665C12.035 10.6665 12.3335 10.368 12.3335 9.99984V5.99984Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M8.00008 5.99984C8.36827 5.99984 8.66675 6.29831 8.66675 6.6665V6.99984C8.66675 7.36803 8.36827 7.6665 8.00008 7.6665C7.63189 7.6665 7.33341 7.36803 7.33341 6.99984V6.6665C7.33341 6.29831 7.63189 5.99984 8.00008 5.99984Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M8.66675 8.99984C8.66675 8.63165 8.36827 8.33317 8.00008 8.33317C7.63189 8.33317 7.33341 8.63165 7.33341 8.99984V9.33317C7.33341 9.70136 7.63189 9.99984 8.00008 9.99984C8.36827 9.99984 8.66675 9.70136 8.66675 9.33317V8.99984Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M0.666748 2.99984C0.666748 2.26346 1.2637 1.6665 2.00008 1.6665H14.0001C14.7365 1.6665 15.3334 2.26346 15.3334 2.99984V12.9998C15.3334 13.7362 14.7365 14.3332 14.0001 14.3332H2.00008C1.26371 14.3332 0.666748 13.7362 0.666748 12.9998V2.99984ZM14.0001 2.99984H2.00008V12.9998H14.0001V2.99984Z",fillRule:"evenodd",clipRule:"evenodd"}}]},P=(0,i.forwardRef)(function(e,t){return(0,i.createElement)(u,Object.assign({},e,{id:"one-to-one-icon",ref:t,icon:D}))});P.displayName="OneToOneIcon";let _={tag:"svg",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15ZM11.7245 6.42417C11.9588 6.18985 11.9588 5.80995 11.7245 5.57564C11.4901 5.34132 11.1102 5.34132 10.8759 5.57564L7.3002 9.15137L5.72446 7.57564C5.49014 7.34132 5.11025 7.34132 4.87593 7.57564C4.64162 7.80995 4.64162 8.18985 4.87593 8.42417L6.87593 10.4242C7.11025 10.6585 7.49014 10.6585 7.72446 10.4242L11.7245 6.42417Z",fillRule:"evenodd",clipRule:"evenodd"}}]},T=(0,i.forwardRef)(function(e,t){return(0,i.createElement)(u,Object.assign({},e,{id:"success-icon",ref:t,icon:_}))});T.displayName="SuccessIcon";let L={tag:"svg",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM8.00008 12.3671C8.46031 12.3671 8.83342 11.994 8.83342 11.5338C8.83342 11.0735 8.46031 10.7004 8.00008 10.7004C7.53985 10.7004 7.16675 11.0735 7.16675 11.5338C7.16675 11.994 7.53985 12.3671 8.00008 12.3671ZM8.5999 4.4335C8.5999 4.10213 8.33127 3.8335 7.9999 3.8335C7.66853 3.8335 7.3999 4.10213 7.3999 4.4335V9.36683C7.3999 9.6982 7.66853 9.96683 7.9999 9.96683C8.33127 9.96683 8.5999 9.6982 8.5999 9.36683V4.4335Z",fillRule:"evenodd",clipRule:"evenodd"}}]},z=(0,i.forwardRef)(function(e,t){return(0,i.createElement)(u,Object.assign({},e,{id:"warning-icon",ref:t,icon:L}))});z.displayName="WarningIcon";let A={tag:"svg",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"}
1,children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.04883 5.38216C8.04883 5.01397 7.75035 4.71549 7.38216 4.71549C7.01397 4.71549 6.71549 5.01397 6.71549 5.38216V6.71897L5.3865 6.7207C5.01831 6.72117 4.72022 7.02004 4.7207 7.38823C4.72118 7.75642 5.02005 8.05451 5.38824 8.05403L6.71549 8.0523V9.38216C6.71549 9.75035 7.01397 10.0488 7.38216 10.0488C7.75035 10.0488 8.04883 9.75035 8.04883 9.38216V8.05056L9.38304 8.04883C9.75123 8.04835 10.0493 7.74948 10.0488 7.38129C10.0484 7.0131 9.74949 6.71502 9.3813 6.7155L8.04883 6.71723V5.38216Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M7.38216 1.04883C3.88437 1.04883 1.04883 3.88437 1.04883 7.38216C1.04883 10.88 3.88437 13.7155 7.38216 13.7155C8.89089 13.7155 10.2764 13.1879 11.3643 12.3072L13.813 14.7559C14.0733 15.0162 14.4954 15.0162 14.7558 14.7559C15.0161 14.4955 15.0161 14.0734 14.7558 13.8131L12.3071 11.3644C13.1879 10.2765 13.7155 8.89095 13.7155 7.38216C13.7155 3.88437 10.88 1.04883 7.38216 1.04883ZM2.38216 7.38216C2.38216 4.62075 4.62075 2.38216 7.38216 2.38216C10.1436 2.38216 12.3822 4.62075 12.3822 7.38216C12.3822 10.1436 10.1436 12.3822 7.38216 12.3822C4.62075 12.3822 2.38216 10.1436 2.38216 7.38216Z",fillRule:"evenodd",clipRule:"evenodd"}}]},I=(0,i.forwardRef)(function(e,t){return(0,i.createElement)(u,Object.assign({},e,{id:"zoom-in-icon",ref:t,icon:A}))});I.displayName="ZoomInIcon";let H={tag:"svg",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.71549 7.38216C4.71549 7.01397 5.01397 6.71549 5.38216 6.71549H9.38216C9.75035 6.71549 10.0488 7.01397 10.0488 7.38216C10.0488 7.75035 9.75035 8.04883 9.38216 8.04883H5.38216C5.01397 8.04883 4.71549 7.75035 4.71549 7.38216Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M1.04883 7.38216C1.04883 3.88437 3.88437 1.04883 7.38216 1.04883C10.88 1.04883 13.7155 3.88437 13.7155 7.38216C13.7155 8.89095 13.1879 10.2765 12.3071 11.3644L14.7558 13.8131C15.0161 14.0734 15.0161 14.4955 14.7558 14.7559C14.4954 15.0162 14.0733 15.0162 13.813 14.7559L11.3643 12.3072C10.2764 13.1879 8.89089 13.7155 7.38216 13.7155C3.88437 13.7155 1.04883 10.88 1.04883 7.38216ZM7.38216 2.38216C4.62075 2.38216 2.38216 4.62075 2.38216 7.38216C2.38216 10.1436 4.62075 12.3822 7.38216 12.3822C10.1436 12.3822 12.3822 10.1436 12.3822 7.38216C12.3822 4.62075 10.1436 2.38216 7.38216 2.38216Z",fillRule:"evenodd",clipRule:"evenodd"}}]},F=(0,i.forwardRef)(function(e,t){return(0,i.createElement)(u,Object.assign({},e,{id:"zoom-out-icon",ref:t,icon:H}))});F.displayName="ZoomOutIcon";let W={tag:"svg",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"#0B9EFB",d:"M8.79993 14.0166C8.79993 14.4585 8.44176 14.8166 7.99993 14.8166C4.23529 14.8166 1.18345 11.7648 1.18345 8.00017C1.18345 4.23554 4.23529 1.18369 7.99993 1.1837C11.7646 1.1837 14.8164 4.23554 14.8164 8.00017C14.8164 8.442 14.4582 8.80017 14.0164 8.80017C13.5746 8.80017 13.2164 8.442 13.2164 8.00017C13.2164 5.11919 10.8809 2.7837 7.99993 2.7837C5.11895 2.7837 2.78345 5.11919 2.78345 8.00017C2.78345 10.8812 5.11895 13.2166 7.99993 13.2166C8.44176 13.2166 8.79993 13.5748 8.79993 14.0166Z",fillOpacity:.2,fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"#0B9EFB",d:"M7.20007 1.98384C7.20007 1.54201 7.55824 1.18384 8.00007 1.18384C11.7647 1.18384 14.8165 4.23568 14.8165 8.00032C14.8165 11.765 11.7647 14.8168 8.00007 14.8168C4.23543 14.8168 1.18359 11.765 1.18359 8.00032C1.18359 7.55849 1.54177 7.20031 1.98359 7.20031C2.42542 7.20031 2.78359 7.55849 2.78359 8.00032C2.78359 10.8813 5.11909 13.2168 8.00007 13.2168C10.8811 13.2168 13.2165 10.8813 13.2165 8.00032C13.2165 5.11933 10.8811 2.78384 8.00007 2.78384C7.55824 2.78384 7.20007 2.42567 7.20007 1.98384Z",fillRule:"evenodd",clipRule:"evenodd"}}]},$=(0,i.forwardRef)(function(e,t){return(0,i.createElement)(u,Object.assign({},e,{id:"loading-multi-icon",ref:t,icon:W}))});function B(){for(var e,t,n=0,o="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,o,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(n=0;n<a;n++)t[n]&&(o=e(t[n]))&&(i&&(i+=" "),i+=o)}else for(o in t)t[o]&&(i&&(i+=" "),i+=o);return i}(e))&&(o&&(o+=" "),o+=t);return o}$.displayName="LoadingMultiIcon";let V=(e,t)=>{var n;if(0===e.length)return t.classGroupId;let o=e[0],i=t.nextPart.get(o),a=i?V(e.slice(1),i):void 0;if(a)return a;
1if(0===t.validators.length)return;let l=e.join("-");return null==(n=t.validators.find(({validator:e})=>e(l)))?void 0:n.classGroupId},Y=/^\[(.+)\]$/,K=(e,t,n,o)=>{e.forEach(e=>{if("string"==typeof e){(""===e?t:X(t,e)).classGroupId=n;return}if("function"==typeof e)return q(e)?void K(e(o),t,n,o):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,i])=>{K(i,X(t,e),n,o)})})},X=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},q=e=>e.isThemeGetter,G=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,U=e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},Z=/\s+/;function J(){let e=0,t,n,o="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Q(t))&&(o&&(o+=" "),o+=n);return o}let Q=e=>{if("string"==typeof e)return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=Q(e[o]))&&(n&&(n+=" "),n+=t);return n},ee=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},et=/^\[(?:([a-z-]+):)?(.+)\]$/i,en=/^\d+\/\d+$/,er=new Set(["px","full","screen"]),eo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ei=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ea=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,el=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,es=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,eu=e=>ed(e)||er.has(e)||en.test(e),ec=e=>eS(e,"length",eR),ed=e=>!!e&&!Number.isNaN(Number(e)),ef=e=>eS(e,"number",ed),ep=e=>!!e&&Number.isInteger(Number(e)),ev=e=>e.endsWith("%")&&ed(e.slice(0,-1)),eh=e=>et.test(e),em=e=>eo.test(e),eg=new Set(["length","size","percentage"]),ey=e=>eS(e,eg,ek),eb=e=>eS(e,"position",ek),ew=new Set(["image","url"]),ex=e=>eS(e,ew,ej),eC=e=>eS(e,"",eM),eE=()=>!0,eS=(e,t,n)=>{let o=et.exec(e);return!!o&&(o[1]?"string"==typeof t?o[1]===t:t.has(o[1]):n(o[2]))},eR=e=>ei.test(e)&&!ea.test(e),ek=()=>!1,eM=e=>el.test(e),ej=e=>es.test(e),eN=function(e,...t){let n,o,i,a=function(s){let u;return o=(n={cache:(e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map,i=(i,a)=>{n.set(i,a),++t>e&&(t=0,o=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=o.get(e))?(i(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}})((u=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{separator:t,experimentalParseClassName:n}=e,o=1===t.length,i=t[0],a=t.length,l=e=>{let n=[],l=0,s=0,u;for(let c=0;c<e.length;c++){let d=e[c];if(0===l){if(d===i&&(o||e.slice(c,c+a)===t)){n.push(e.slice(s,c)),s=c+a;continue}if("/"===d){u=c;continue}}"["===d?l++:"]"===d&&l--}let c=0===n.length?e:e.substring(s),d=c.startsWith("!"),f=d?c.substring(1):c;return{modifiers:n,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:u&&u>s?u-s:void 0}};return n?e=>n({className:e,parseClassName:l}):l})(u),...(e=>{let t=(e=>{let{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return G(Object.entries(e.classGroups),n).forEach(([e,n])=>{K(n,o,e,t)}),o})(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{let n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),V(n,t)||(e=>{if(Y.test(e)){let t=Y.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}})(e)},getConflictingClassGroupIds:(e,t)=>{let i=n[e]||[];return t&&o[e]?[...i,...o[e]]:i}}})(u)}).cache.get,i=n.cache.set,a=l,l(s)};function l(e){let t=o(e);if(t)return t;let a=((e,t)=>{let{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:i}=t,a=[],l=e.trim().split(Z),s="";for(let e=l.length-1;e>=0;e-=1){let t=l[e],{modifiers:u,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:f}=n(t),p=!!f,v=o(p?d.substring(0,f):d);if(!v){if(!p||!(v=o(d))){s=t+(s.length>0?" "+s:s);continue}p=!1}let h=U(u).join(":"),m=c?h+"!":h,g=m+v;if(a.includes(g))continue;a.push(g);let y=i(v,p);for(let e=0;e<y.length;++e){let t=y[e];a.push(m+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return i(e,a),a}return function(){return a(J.apply(null,arguments))}}(()=>{let e=ee("colors"),t=ee("spacing"),n=ee("blur"),o=ee("brightness"),i=ee("borderColor"),a=ee("borderRadius"),l=ee("borderSpacing"),s=ee("borderWidth"),u=ee("contrast"),c=ee("grayscale"),d=ee("hueRotate"),f=ee("invert"),p=ee
vendor: 13,010 bytes, line 1
1("gap"),v=ee("gradientColorStops"),h=ee("gradientColorStopPositions"),m=ee("inset"),g=ee("margin"),y=ee("opacity"),b=ee("padding"),w=ee("saturate"),x=ee("scale"),C=ee("sepia"),E=ee("skew"),S=ee("space"),R=ee("translate"),k=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto",eh,t],N=()=>[eh,t],O=()=>["",eu,ec],D=()=>["auto",ed,eh],P=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_=()=>["solid","dashed","dotted","double","none"],T=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],L=()=>["start","end","center","between","around","evenly","stretch"],z=()=>["","0",eh],A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>[ed,eh];return{cacheSize:500,separator:":",theme:{colors:[eE],spacing:[eu,ec],blur:["none","",em,eh],brightness:I(),borderColor:[e],borderRadius:["none","","full",em,eh],borderSpacing:N(),borderWidth:O(),contrast:I(),grayscale:z(),hueRotate:I(),invert:z(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[ev,ec],inset:j(),margin:j(),opacity:I(),padding:N(),saturate:I(),scale:I(),sepia:z(),skew:I(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",eh]}],container:["container"],columns:[{columns:[em]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...P(),eh]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ep,eh]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",eh]}],grow:[{grow:z()}],shrink:[{shrink:z()}],order:[{order:["first","last","none",ep,eh]}],"grid-cols":[{"grid-cols":[eE]}],"col-start-end":[{col:["auto",{span:["full",ep,eh]},eh]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[eE]}],"row-start-end":[{row:["auto",{span:[ep,eh]},eh]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",eh]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",eh]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...L()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...L(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...L(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",eh,t]}],"min-w":[{"min-w":[eh,t,"min","max","fit"]}],"max-w":[{"max-w":[eh,t,"none","full","min","max","fit","prose",{screen:[em]},em]}],h:[{h:[eh,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[eh,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[eh,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[eh,t,"auto","min","max","fit"]}],"font-size":[{text:["base",em,ec]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ef]}],"font-family":[{font:[eE]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",eh]}],"line-clamp":[{"line-clamp":["none",ed,ef]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",eu,eh]}],"list-image":[{"list-image":["none",eh]}],"list-style-type":[{list:["none","disc","decimal",eh]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",eu,ec]}],"underline-offset":[{"underline-offset":["auto",eu,eh]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",eh]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",eh]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...P(),eb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ey]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ex]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[..._(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:_()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",..._()]}],"outline-offset":[{"outline-offset":[eu,eh]}],"outline-w":[{outline:[eu,ec]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[eu,ec]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",em,eC]}],"shadow-color":[{shadow:[eE]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...T(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":T()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",em,eh]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",eh]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",eh]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",eh]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[ep,eh]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",eh]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",eh]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",eh]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[eu,ec,ef]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
1none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function eO(...e){return eN(B(e))}let eD=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,eP=(e,t)=>n=>{var o;if((null==t?void 0:t.variants)==null)return B(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:i,defaultVariants:a}=t,l=Object.keys(i).map(e=>{let t=null==n?void 0:n[e],o=null==a?void 0:a[e];if(null===t)return null;let l=eD(t)||eD(o);return i[e][l]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,o]=t;return void 0===o||(e[n]=o),e},{});return B(e,l,null==t||null==(o=t.compoundVariants)?void 0:o.reduce((e,t)=>{let{class:n,className:o,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...s}[t]):({...a,...s})[t]===n})?[...e,n,o]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)},e_=eP(`
2      univer-relative univer-inline-block univer-overflow-hidden univer-whitespace-nowrap univer-bg-gray-200
3      univer-text-center univer-align-middle univer-text-white
4    `,{variants:{shape:{circle:"univer-rounded-full",square:"univer-rounded"},size:{middle:"univer-size-9 univer-leading-9",small:"univer-size-7 univer-leading-7"}},defaultVariants:{shape:"circle",size:"middle"}});function eT(e){let{children:t,className:n,style:o,title:i,alt:l,shape:s="circle",size:u="middle",src:c,fit:d="fill",onError:f,onLoad:p}=e,v="number"==typeof u?{width:`${u}px`,height:`${u}px`,lineHeight:`${u}px`}:{};return(0,a.jsxs)("span",{className:eO(e_({shape:s,size:"number"==typeof u?"middle":u}),{"univer-bg-transparent":c},n),style:{...v,...o,...c&&{objectFit:d}},children:[c&&(0,a.jsx)("img",{className:"univer-block univer-size-full",src:c,title:i,alt:l,onError:f,onLoad:p}),t]})}function eL(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function ez(...e){return t=>{let n=!1,o=e.map(e=>{let o=eL(e,t);return n||"function"!=typeof o||(n=!0),o});if(n)return()=>{for(let t=0;t<o.length;t++){let n=o[t];"function"==typeof n?n():eL(e[t],null)}}}}function eA(...e){return i.useCallback(ez(...e),e)}function eI(e){let t=function(e){let t=i.forwardRef((e,t)=>
4{let{children:n,...o}=e;if(i.isValidElement(n)){var a,l,s;let e,u,c=(u=(e=null==(l=Object.getOwnPropertyDescriptor((a=n).props,"ref"))?void 0:l.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(u=(e=null==(s=Object.getOwnPropertyDescriptor(a,"ref"))?void 0:s.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref,d=function(e,t){let n={...t};for(let o in t){let i=e[o],a=t[o];/^on[A-Z]/.test(o)?i&&a?n[o]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[o]=i):"style"===o?n[o]={...i,...a}:"className"===o&&(n[o]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==i.Fragment&&(d.ref=t?ez(t,c):c),i.cloneElement(n,d)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=i.forwardRef((e,n)=>{let{children:o,...l}=e,s=i.Children.toArray(o),u=s.find(eW);if(u){let e=u.props.children,o=s.map(t=>t===u?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,a.jsx)(t,{...l,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,o):null})}return(0,a.jsx)(t,{...l,ref:n,children:o})});return n.displayName=`${e}.Slot`,n}var eH=eI("Slot"),eF=Symbol("radix.slottable");function eW(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eF}let e$=eP(`
5      univer-box-border univer-inline-flex univer-cursor-pointer univer-select-none univer-items-center
6      univer-justify-center univer-gap-2 univer-whitespace-nowrap univer-rounded-md univer-border univer-border-solid
7      univer-text-sm univer-font-medium univer-transition-colors
8      disabled:univer-pointer-events-none disabled:univer-cursor-not-allowed disabled:univer-opacity-50
9      [&_svg]:univer-pointer-events-none [&_svg]:univer-size-4 [&_svg]:univer-shrink-0
10    `,{variants:{variant:{default:`
11                  univer-border-gray-200 univer-bg-white univer-text-gray-700
12                  hover:univer-bg-gray-100
13                  active:univer-bg-gray-200
14                  dark:!univer-border-gray-600 dark:!univer-bg-gray-700 dark:!univer-text-white
15                  dark:hover:!univer-bg-gray-600 dark:active:!univer-bg-gray-700
16                `,primary:`
17                  univer-border-primary-600 univer-bg-primary-600 univer-text-white
18                  hover:univer-bg-primary-500
19                  active:univer-bg-primary-700
20                `,danger:`
21                  univer-border-red-500 univer-bg-red-500 univer-text-white
22                  hover:univer-border-red-400 hover:univer-bg-red-400
23                  active:univer-border-red-600 active:univer-bg-red-600
24                `,text:`
25                  univer-border-transparent univer-bg-transparent univer-text-gray-900
26                  hover:univer-bg-gray-100
27                  active:univer-bg-gray-200
28                  dark:!univer-text-white dark:hover:!univer-bg-gray-700 dark:active:!univer-bg-gray-600
29                `,link:`
30                  univer-underline-current univer-border-transparent univer-bg-transparent univer-text-primary-600
31                  univer-underline-offset-4
32                  hover:univer-text-primary-500 hover:univer-underline
33                  active:univer-text-primary-700
34                `,ghost:`
35                  univer-border-transparent univer-bg-transparent univer-text-gray-900
36                  hover:univer-bg-gray-100
37                  active:univer-bg-gray-200
38                  dark:!univer-text-white dark:hover:!univer-bg-gray-700 dark:active:!univer-bg-gray-600
39                `},size:{small:"univer-h-6 univer-rounded-md univer-px-1.5 univer-text-xs",middle:"univer-h-8 univer-rounded-lg univer-px-2 univer-text-sm",large:"univer-h-10 univer-rounded-lg univer-px-3 univer-text-sm"}},defaultVariants:{variant:"default",size:"middle"}}),eB=(0,i.forwardRef)(({className:e,variant:t,size:n,asChild:o=!1,...i},l)=>(0,a.jsx)(o?eH:"button",{className:eO(e$({variant:t,size:n,className:e})),ref:l,"data-u-comp":"button",...i}));function eV(){return"u">typeof window&&"u">typeof document}eB.displayName="Button";let eY=(0,i.createContext)({mountContainer:eV()?document.body:null});function eK(e){let{children:t,locale:n,mountContainer:o}=e,l=(0,i.useMemo)(()=>({locale:n,mountContainer:o}),[n,o]);return(0,a.jsx)(eY.Provider,{value:l,children:t})}
39function eX(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function eq(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),n}var eG,eU,eZ={exports:{}};eZ.exports;let eJ=eX(function(){var e,t,n,o,i,a,l,s,u,c,d,f,p,v,h,m,g,y,b,w,x,C;return eU||(eU=1,e="millisecond",t="second",n="minute",o="hour",i="week",a="month",l="quarter",s="year",u="date",c="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p=function(e,t,n){var o=String(e);return!o||o.length>=t?e:""+Array(t+1-o.length).join(n)+e},(h={})[v="en"]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m="$isDayjsObject",g=function(e){return e instanceof x||!(!e||!e[m])},y=function e(t,n,o){var i;if(!t)return v;if("string"==typeof t){var a=t.toLowerCase();h[a]&&(i=a),n&&(h[a]=n,i=a);var l=t.split("-");if(!i&&l.length>1)return e(l[0])}else{var s=t.name;h[s]=t,i=s}return!o&&i&&(v=i),i||!o&&v},b=function(e,t){if(g(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new x(n)},(w={s:p,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+p(Math.floor(n/60),2,"0")+":"+p(n%60,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var o=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(o,a),l=n-i<0,s=t.clone().add(o+(l?-1:1),a);return+(-(o+(n-i)/(l?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return({M:a,y:s,w:i,d:"day",D:u,h:o,m:n,s:t,ms:e,Q:l})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}}).l=y,w.i=g,w.w=function(e,t){return b(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})},C=(x=function(){function p(e){this.$L=y(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[m]=!0}var v=p.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(w.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var o=t.match(d);if(o){var i=o[2]-1||0,a=(o[7]||"0").substring(0,3);return n?new Date(Date.UTC(o[1],i,o[3]||1,o[4]||0,o[5]||0,o[6]||0,a)):new Date(o[1],i,o[3]||1,o[4]||0,o[5]||0,o[6]||0,a)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return w},v.isValid=function(){return this.$d.toString()!==c},v.isSame=function(e,t){var n=b(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return b(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<b(e)},v.$g=function(e,t,n){return w.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,l){var c=this,d=!!w.u(l)||l,f=w.p(e),p=function(e,t){var n=w.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return d?n:n.endOf("day")},v=function(e,t){return w.w(c.toDate()[e].apply(c.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},h=this.$W,m=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(f){case s:return d?p(1,0):p(31,11);case a:return d?p(1,m):p(0,m+1);case i:var b=this.$locale().weekStart||0,x=(h<b?h+7:h)-b;return p(d?g-x:g+(6-x),m);case"day":case u:return v(y+"Hours",0);case o:return v(y+"Minutes",1);case n:return v(y+"Seconds",2);case t:return v(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(i,l){var c,d=w.p(i),f="set"+(this.$u?"UTC":""),p=((c={}).day=f+"Date",c[u]=f+"Date",c[a]=f+"Month",c[s]=f+"FullYear",c[o]=f+"Hours",c[n]=f+"Minutes",c[t]=f+"Seconds",c[e]=f+"Milliseconds",c)[d],v="day"===d?this.$D+(l-this.$W):l;if(d===a||d===s){var h=this.clone().set(u,1);h.$d[p](v),h.init(),this.$d=h.set(u,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](v);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[w.p(e)]()},v.add=function(e,l){var u,c=this;e=Number(e);var d=w.p(l),f=function(t){var n=b(c);return w.w(n.date(n.date()+Math.round(t*e)),c)};if(d===a)return this.set(a,this.$M+e);if(d===s)return this.set(s,this.$y+e);if("day"===d)return f(1);if(d===i)return f(7);var p=((u={})[n]=6e4,u[o]=36e5,u[t]=1e3,u)[d]||1,v=this.$d.getTime()+e*p;return w.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||c;var o=e||"YYYY-MM-DDTHH:mm:ssZ",i=w.z(this),a=this.$H,l=this.$m,s=this.$M,u=n.weekdays,d=n.months,p=n.meridiem,v=function(e,n,i,a){return e&&(e[
39n]||e(t,o))||i[n].slice(0,a)},h=function(e){return w.s(a%12||12,e,"0")},m=p||function(e,t,n){var o=e<12?"AM":"PM";return n?o.toLowerCase():o};return o.replace(f,function(e,o){return o||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return w.s(t.$y,4,"0");case"M":return s+1;case"MM":return w.s(s+1,2,"0");case"MMM":return v(n.monthsShort,s,d,3);case"MMMM":return v(d,s);case"D":return t.$D;case"DD":return w.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return v(n.weekdaysMin,t.$W,u,2);case"ddd":return v(n.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(a);case"HH":return w.s(a,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return m(a,l,!0);case"A":return m(a,l,!1);case"m":return String(l);case"mm":return w.s(l,2,"0");case"s":return String(t.$s);case"ss":return w.s(t.$s,2,"0");case"SSS":return w.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},v.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},v.diff=function(e,u,c){var d,f=this,p=w.p(u),v=b(e),h=(v.utcOffset()-this.utcOffset())*6e4,m=this-v,g=function(){return w.m(f,v)};switch(p){case s:d=g()/12;break;case a:d=g();break;case l:d=g()/3;break;case i:d=(m-h)/6048e5;break;case"day":d=(m-h)/864e5;break;case o:d=m/36e5;break;case n:d=m/6e4;break;case t:d=m/1e3;break;default:d=m}return c?d:w.a(d)},v.daysInMonth=function(){return this.endOf(a).$D},v.$locale=function(){return h[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),o=y(e,t,!0);return o&&(n.$L=o),n},v.clone=function(){return w.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},p}()).prototype,b.prototype=C,[["$ms",e],["$s",t],["$m",n],["$H",o],["$W","day"],["$M",a],["$y",s],["$D",u]].forEach(function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),b.extend=function(e,t){return e.$i||(e(t,x,b),e.$i=!0),b},b.locale=y,b.isDayjs=g,b.unix=function(e){return b(1e3*e)},b.en=h[v],b.Ls=h,b.p={},eZ.exports=b),eZ.exports}()),eQ="univer-scrollbar-thin univer-scrollbar-track-gray-50 univer-scrollbar-thumb-gray-300 dark:!univer-scrollbar-track-gray-900 dark:!univer-scrollbar-thumb-gray-700",e0="univer-border-gray-200 dark:!univer-border-gray-600 univer-border-solid",e1=eO(e0,"univer-border"),e2=eO(e0,"univer-border-l univer-border-b univer-border-t-0 univer-border-r-0"),e5=eO(e0,"univer-border-l univer-border-b-0 univer-border-t-0 univer-border-r-0"),e4=eO(e0,"univer-border-l-0 univer-border-b-0 univer-border-t univer-border-r-0"),e8=eO(e0,"univer-border-l-0 univer-border-b univer-border-t-0 univer-border-r-0"),e6=eO(e0,"univer-border-l-0 univer-border-b-0 univer-border-t-0 univer-border-r"),e3="univer-divide-gray-200 dark:!univer-divide-gray-600 univer-divide-y univer-divide-x-0 univer-divide-solid",e9="univer-divide-gray-200 dark:!univer-divide-gray-600 univer-divide-x univer-divide-y-0 univer-divide-solid";function e7(e){let{className:t,value:n,onValueChange:o}=e;return(0,a.jsxs)("div",{"data-u-comp":"time-input",className:"univer-relative univer-mx-auto univer-mt-1 univer-w-fit",children:[(0,a.jsx)(v,{className:"univer-absolute univer-left-2 univer-top-1/2 -univer-translate-y-1/2 univer-text-gray-600 dark:!univer-text-gray-400"}),(0,a.jsx)("input",{className:eO("univer-block univer-h-7 univer-w-fit univer-appearance-none univer-rounded-md univer-bg-transparent univer-pl-6 univer-pr-2 univer-text-center univer-text-gray-800 univer-shadow univer-outline-none univer-transition-all univer-duration-200 focus:univer-border-primary-600 dark:!univer-text-white dark:focus:!univer-border-primary-500 [&::-webkit-calendar-picker-indicator]:univer-hidden [&::-webkit-calendar-picker-indicator]:univer-appearance-none",e1,t),type:"time",step:"1",value:eJ(n).format("HH:mm:ss"),onChange:function(e){let t=eJ(e.target.value,"HH:mm:ss").toDate();null==o||o(t)}})]})}function te(e){let{className:t,...n}=e;return(0,a.jsx)("button",{className:eO("univer-size-7 univer-rounded-md univer-border-none univer-bg-transparent univer-p-1 univer-transition-all hover:univer-bg-gray-200 dark:hover:!univer-bg-gray-600",t),type:"button",...n})}function tt(e){let{className:t,max:n,min:o,showTime:l=!1,value:s,onValueChange:u}=e,{locale:c}=(0,i.useContext)(eY),{year:d,weekDays:f,months:p}=null==c?void 0:c.Calendar,v=new Date,[h,m]=(0,i.useState)((null!=s?s:v).getFullYear()),[g,y]=(0,i.useState)((null!=s?s:v).getMonth()),b=new Date(h,g+1,0).getDate(),w=new Date(h,g,1).getDay(),x=(0,i.useMemo)(()=>{let e=[];for(let t=0;t<w;t++)e.push(null);for(let t=1;t<=b;t++)e.push(t);return e},[b,w]);function C(e){return e&&h===(null==s?void 0:s.getFullYear())&&g===(null==s?void 0:s.getMonth())&&e===(null==s?void 0:s.getDate())}function E(e){return e&&h===v.getFullYear()&&g===v.getMonth()&&e===v.getDate()}function S(e){var t,i,a;if(!e)return!1;let l=null!=(t=null==s?void 0:s.getHours())?t:v.getHours(),u=new Date(h,g,e,l,null!=(i=null==s?void 0:s.getMinutes())?i:v.getMinutes(),null!=(a=null==s?void 0:s.getSeconds())?a:v.getSeconds());return!!(o&&u<o||n&&u>n)}return(0,a.jsxs)("div",{"data-u-comp":"calendar",className:eO("univer-mx-auto univer-max-w-xs univer-select-none univer-rounded univer-bg-white univer-text-gray-900 dark:!univer-bg-gray-900 dark:!univer-text-white",t),children:[(0,a.jsxs)("nav",{className:"univer-mb-4 univer-flex univer-items-center univer-justify-between",children:[(0,a.jsx)(te,{className:"univer-text-lg univer-text-gray-500 dark:!univer-text-gray-200","aria-label":"Previous Month",onClick:function(){y(e=>
390===e?(m(e=>e-1),11):e-1)},children:(0,a.jsx)(j,{className:"univer-rotate-180"})}),(0,a.jsxs)("span",{className:"univer-flex univer-gap-0.5 univer-text-sm univer-font-medium",children:[(0,a.jsx)("span",{children:h}),(0,a.jsx)("span",{children:d}),(0,a.jsx)("span",{children:p[g]})]}),(0,a.jsx)(te,{className:"univer-text-lg univer-text-gray-500 dark:!univer-text-gray-200","aria-label":"Next Month",onClick:function(){y(e=>11===e?(m(e=>e+1),0):e+1)},children:(0,a.jsx)(j,{})})]}),(0,a.jsx)("div",{className:"univer-mb-1 univer-grid univer-grid-cols-7 univer-gap-1 univer-text-center univer-text-sm univer-text-gray-500 dark:!univer-text-gray-200",children:f.map(e=>(0,a.jsx)("div",{children:e},e))}),(0,a.jsx)("div",{className:"univer-grid univer-grid-cols-7 univer-gap-1 univer-text-center",children:x.map((e,t)=>e?(0,a.jsx)(te,{className:eO({"!univer-bg-primary-600 univer-font-bold univer-text-white":!E(e)&&C(e),"dark:!univer-text-white":!E(e)&&!C(e),"!univer-bg-primary-600 univer-text-white":E(e)&&C(e),"univer-font-semibold univer-text-primary-600 dark:!univer-text-primary-500":E(e)&&!C(e),"univer-cursor-not-allowed univer-opacity-40":S(e),"univer-hover:bg-primary-100 univer-cursor-pointer univer-text-gray-800":!C(e)&&!S(e)}),onClick:()=>(function(e){var t,n,o;if(S(e))return;let i=null!=(t=null==s?void 0:s.getHours())?t:v.getHours(),a=new Date(h,g,e,i,null!=(n=null==s?void 0:s.getMinutes())?n:v.getMinutes(),null!=(o=null==s?void 0:s.getSeconds())?o:v.getSeconds());null==u||u(a)})(e),disabled:S(e),children:e},t):(0,a.jsx)("div",{},t))}),l&&(0,a.jsx)(e7,{value:s,onValueChange:function(e){var t;let n=e.getHours(),o=e.getMinutes(),i=e.getSeconds(),a=new Date(h,g,null!=(t=null==s?void 0:s.getDate())?t:v.getDate(),n,o,i);null==u||u(a)}})]})}function tn({emptyText:e}){return(0,a.jsx)("section",{className:"univer-h-8 univer-px-2 univer-pr-32 univer-text-sm/8 univer-text-gray-600 dark:!univer-text-gray-200",children:e})}function tr(e){let{value:t,options:n=[],onChange:o,contentClassName:l,wrapperClassName:s}=e,{locale:u}=(0,i.useContext)(eY),c=(0,i.useMemo)(()=>{let e=[n];return t.forEach((t,n)=>{let o=e[n].find(e=>e.value===t);null!=o&&o.children&&e.push(o.children)}),e},[t]);return(0,a.jsxs)("section",{"data-u-comp":"cascader-list",className:eO("univer-overflow-auto-y univer-grid univer-h-full univer-max-h-80 univer-grid-flow-col univer-rounded univer-py-2 univer-text-gray-900 dark:!univer-text-white [&>ul:not(:last-child)]:univer-border-0 [&>ul:not(:last-child)]:univer-border-r [&>ul:not(:last-child)]:univer-border-solid [&>ul:not(:last-child)]:univer-border-r-gray-200",e1,eQ,s),children:[c.map((e,n)=>e.length?(0,a.jsx)("ul",{className:eO("univer-m-0 univer-h-full univer-max-h-full univer-list-none univer-overflow-auto univer-px-2",eQ,l),children:e.map(e=>(0,a.jsx)("li",{children:(0,a.jsxs)("a",{className:eO("univer-relative univer-block univer-h-8 univer-cursor-pointer univer-rounded univer-text-sm/8",{"univer-px-7":n>0,"univer-px-1.5":0===n,"univer-bg-gray-200 dark:!univer-bg-gray-600":e.value===t[n]}),onClick:()=>(function(e,n){if(n===t[e])return;if(t[e+1]){let i=t.slice(0,e+1);i[e]=n,o(i);return}let i=[...t];i[e]=n,o(i)})(n,e.value),children:[n>0&&(0,a.jsx)("span",{className:"univer-absolute univer-left-2 univer-flex univer-h-full univer-items-center",children:e.value===t[n]&&(0,a.jsx)(f,{className:"univer-text-primary-600"})}),(0,a.jsx)("span",{children:e.label})]})},e.value))},n):(0,a.jsx)(tn,{emptyText:null==u?void 0:u.CascaderList.empty},n)),t.length<=0&&(0,a.jsx)(tn,{emptyText:null==u?void 0:u.CascaderList.empty})]})}function to(e){let{children:t,className:n,style:o,checked:l=!1,indeterminate:s=!1,value:u,disabled:c=!1,onChange:d,contentClassName:p}=e,v=(0,i.useRef)(null);return(0,a.jsxs)("label",{"data-u-comp":"checkbox",className:eO("univer-box-border univer-inline-flex univer-items-center univer-gap-2 univer-text-sm",{"univer-cursor-pointer univer-text-gray-900 dark:!univer-text-white":!c,"univer-text-gray-400":c},n),style:o,children:[(0,a.jsxs)("span",{className:"univer-relative univer-block",children:[(0,a.jsx)("input",{ref:v,className:"univer-absolute univer-size-0 univer-opacity-0",type:"checkbox",checked:l,disabled:c,onChange:function(e){var t,n;if(e.stopPropagation(),!(!d||c))if("u">typeof u)null==d||d(u);else{let e=null!=(n=null==(t=null==v?void 0:v.current)?void 0:t.checked)&&n;null==d||d(e)}}}),(0,a.jsxs)("span",{className:eO("univer-relative univer-box-border univer-flex univer-size-4 univer-items-center univer-justify-center univer-overflow-hidden univer-rounded univer-border univer-border-solid univer-transition-colors",{"univer-opacity-50":c,"univer-border-primary-600 univer-bg-primary-600":l||s,"univer-border-gray-300 univer-bg-gray-50 dark:!univer-border-gray-500 dark:!univer-bg-gray-600":!l&&!s}),children:[l&&(0,a.jsx)(f,{className:"univer-absolute univer-left-1/2 univer-top-1/2 univer-block univer-size-3 -univer-translate-x-1/2 -univer-translate-y-1/2 univer-text-white"}),s&&!l&&(0,a.jsx)("span",{className:"univer-absolute univer-left-1/2 univer-top-1/2 univer-block univer-h-0.5 univer-w-2.5 -univer-translate-x-1/2 -univer-translate-y-1/2 univer-rounded univer-bg-white"})]})]}),(0,a.jsx)("span",{className:eO("univer-select-none",p),children:t})]})}function ti(e,t,{checkForDefaultPrevented:n=!0}={}
39){return function(o){if(null==e||e(o),!1===n||!o.defaultPrevented)return null==t?void 0:t(o)}}function ta(e,t=[]){let n=[],o=()=>{let t=n.map(e=>i.createContext(e));return function(n){let o=(null==n?void 0:n[e])||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(t,o){let l=i.createContext(o),s=n.length;n=[...n,o];let u=t=>{var n;let{scope:o,children:u,...c}=t,d=(null==(n=null==o?void 0:o[e])?void 0:n[s])||l,f=i.useMemo(()=>c,Object.values(c));return(0,a.jsx)(d.Provider,{value:f,children:u})};return u.displayName=t+"Provider",[u,function(n,a){var u;let c=(null==(u=null==a?void 0:a[e])?void 0:u[s])||l,d=i.useContext(c);if(d)return d;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:o})=>{let i=n(e)[`__scope${o}`];return{...t,...i}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(o,...t)]}var tl=null!=globalThis&&globalThis.document?i.useLayoutEffect:()=>{},ts=(eG||(eG=n.t(i,2)))[" useId ".trim().toString()]||(()=>{}),tu=0;function tc(e){let[t,n]=i.useState(ts());return tl(()=>{n(e=>null!=e?e:String(tu++))},[e]),e||(t?`radix-${t}`:"")}var td=(eG||(eG=n.t(i,2)))[" useInsertionEffect ".trim().toString()]||tl;function tf({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){let[a,l,s]=function({defaultProp:e,onChange:t}){let[n,o]=i.useState(e),a=i.useRef(n),l=i.useRef(t);return td(()=>{l.current=t},[t]),i.useEffect(()=>{var e;a.current!==n&&(null==(e=l.current)||e.call(l,n),a.current=n)},[n,a]),[n,o,l]}({defaultProp:t,onChange:n}),u=void 0!==e,c=u?e:a;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;e!==u&&console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=u},[u,o])}return[c,i.useCallback(t=>{var n;if(u){let o="function"==typeof t?t(e):t;o!==e&&(null==(n=s.current)||n.call(s,o))}else l(t)},[u,e,l,s])]}var tp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=eI(`Primitive.${t}`),o=i.forwardRef((e,o)=>{let{asChild:i,...l}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(i?n:t,{...l,ref:o})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function tv(e,t){e&&l.flushSync(()=>e.dispatchEvent(t))}function th(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)},[])}var tm,tg="dismissableLayer.update",ty=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tb=i.forwardRef((e,t)=>{var n;let{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:c,onDismiss:d,...f}=e,p=i.useContext(ty),[v,h]=i.useState(null),m=null!=(n=null==v?void 0:v.ownerDocument)?n:null==globalThis?void 0:globalThis.document,[,g]=i.useState({}),y=eA(t,e=>h(e)),b=Array.from(p.layers),[w]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),x=b.indexOf(w),C=v?b.indexOf(v):-1,E=p.layersWithOutsidePointerEventsDisabled.size>0,S=C>=x,R=function(e,t=null==globalThis?void 0:globalThis.document){let n=th(e),o=i.useRef(!1),a=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let o=function(){tx("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=o,t.addEventListener("click",a.current,{once:!0})):o()}else t.removeEventListener("click",a.current);o.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...p.branches].some(e=>e.contains(t));!S||n||(null==s||s(e),null==c||c(e),e.defaultPrevented||null==d||d())},m),k=function(e,t=null==globalThis?void 0:globalThis.document){let n=th(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>
39{e.target&&!o.current&&tx("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...p.branches].some(e=>e.contains(t))||(null==u||u(e),null==c||c(e),e.defaultPrevented||null==d||d())},m);return function(e,t=null==globalThis?void 0:globalThis.document){let n=th(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{C===p.layers.size-1&&(null==l||l(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))},m),i.useEffect(()=>{if(v)return o&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(tm=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(v)),p.layers.add(v),tw(),()=>{o&&1===p.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=tm)}},[v,m,o,p]),i.useEffect(()=>()=>{v&&(p.layers.delete(v),p.layersWithOutsidePointerEventsDisabled.delete(v),tw())},[v,p]),i.useEffect(()=>{let e=()=>g({});return document.addEventListener(tg,e),()=>document.removeEventListener(tg,e)},[]),(0,a.jsx)(tp.div,{...f,ref:y,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:ti(e.onFocusCapture,k.onFocusCapture),onBlurCapture:ti(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ti(e.onPointerDownCapture,R.onPointerDownCapture)})});function tw(){let e=new CustomEvent(tg);document.dispatchEvent(e)}function tx(e,t,n,{discrete:o}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?tv(i,a):i.dispatchEvent(a)}tb.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(ty),o=i.useRef(null),l=eA(t,o);return i.useEffect(()=>{let e=o.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,a.jsx)(tp.div,{...e,ref:l})}).displayName="DismissableLayerBranch";var tC="focusScope.autoFocusOnMount",tE="focusScope.autoFocusOnUnmount",tS={bubbles:!1,cancelable:!0},tR=i.forwardRef((e,t)=>{let{loop:n=!1,trapped:o=!1,onMountAutoFocus:l,onUnmountAutoFocus:s,...u}=e,[c,d]=i.useState(null),f=th(l),p=th(s),v=i.useRef(null),h=eA(t,e=>d(e)),m=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(o){let e=function(e){if(m.paused||!c)return;let t=e.target;c.contains(t)?v.current=t:tj(v.current,{select:!0})},t=function(e){if(m.paused||!c)return;let t=e.relatedTarget;null!==t&&(c.contains(t)||tj(v.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&tj(c)});return c&&n.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[o,c,m.paused]),i.useEffect(()=>{if(c){tN.add(m);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(tC,tS);c.addEventListener(tC,f),c.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let o of e)if(tj(o,{select:t}),document.activeElement!==n)return}(tk(c).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&tj(c))}return()=>{c.removeEventListener(tC,f),setTimeout(()=>{let t=new CustomEvent(tE,tS);c.addEventListener(tE,p),c.dispatchEvent(t),t.defaultPrevented||tj(null!=e?e:document.body,{select:!0}),c.removeEventListener(tE,p),tN.remove(m)},0)}}},[c,f,p,m]);let g=i.useCallback(e=>{if(!n&&!o||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[o,a]=function(e){let t=tk(e);return[tM(t,e),tM(t.reverse(),e)]}(t);o&&a?e.shiftKey||i!==a?e.shiftKey&&i===o&&(e.preventDefault(),n&&tj(a,{select:!0})):(e.preventDefault(),n&&tj(o,{select:!0})):i===t&&e.preventDefault()}},[n,o,m.paused]);return(0,a.jsx)(tp.div,{tabIndex:-1,...u,ref:h,onKeyDown:g})});function tk(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function tM(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function tj(e,{select:t=!1}={}){if(e&&e.focus){var n;let o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}tR.displayName="FocusScope";var tN=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=tO(e,t)).unshift(t)},remove(t){var n;null==(n=(e=tO(e,t))[0])||n.resume()}}}();function tO(e,t){let n=[...e],o=n.indexOf(t);return -1!==o&&n.splice(o,1),n}var tD=i.forwardRef((e,t)=>
39{var n;let{container:o,...s}=e,[u,c]=i.useState(!1);tl(()=>c(!0),[]);let d=o||u&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return d?l.createPortal((0,a.jsx)(tp.div,{...s,ref:t}),d):null});tD.displayName="Portal";var tP=e=>{let{present:t,children:n}=e,o=function(e){var t,n;let[o,a]=i.useState(),l=i.useRef(null),s=i.useRef(e),u=i.useRef("none"),[c,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,t)=>{let o=n[e][t];return null!=o?o:e},t));return i.useEffect(()=>{let e=t_(l.current);u.current="mounted"===c?e:"none"},[c]),tl(()=>{let t=l.current,n=s.current;if(n!==e){let o=u.current,i=t_(t);e?d("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):d(n&&o!==i?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,d]),tl(()=>{var e;if(o){let t,n=null!=(e=o.ownerDocument.defaultView)?e:window,i=e=>{let i=t_(l.current).includes(CSS.escape(e.animationName));if(e.target===o&&i&&(d("ANIMATION_END"),!s.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},a=e=>{e.target===o&&(u.current=t_(l.current))};return o.addEventListener("animationstart",a),o.addEventListener("animationcancel",i),o.addEventListener("animationend",i),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",a),o.removeEventListener("animationcancel",i),o.removeEventListener("animationend",i)}}d("ANIMATION_END")},[o,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(e=>{l.current=e?getComputedStyle(e):null,a(e)},[])}}(t),a="function"==typeof n?n({present:o.isPresent}):i.Children.only(n),l=eA(o.ref,function(e){var t,n;let o=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=o&&"isReactWarning"in o&&o.isReactWarning;return i?e.ref:(i=(o=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in o&&o.isReactWarning)?e.props.ref:e.props.ref||e.ref}(a));return"function"==typeof n||o.isPresent?i.cloneElement(a,{ref:l}):null};function t_(e){return(null==e?void 0:e.animationName)||"none"}tP.displayName="Presence";var tT=0;function tL(){i.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:tz()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:tz()),tT++,()=>{1===tT&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),tT--}},[])}function tz(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var tA=function(){return(tA=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function tI(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)0>t.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n}var tH="right-scroll-bar-position",tF="width-before-scroll-bar";function tW(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var t$="u">typeof window?i.useLayoutEffect:i.useEffect,tB=new WeakMap;function tV(e){return e}var tY=function(e){var t=e.sideCar,n=tI(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw Error("Sidecar medium not found");return i.createElement(o,tA({},n))};tY.isSideCarExport=!0;var tK=function(e){void 0===e&&(e={});var t,n,o,i=(void 0===t&&(t=tV),n=[],o=!1,{read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var i=t(e,o);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(o=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){o=!0;var t=[];if(n.length){var i=n;
39n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},l=function(){return Promise.resolve().then(a)};l(),n={push:function(e){t.push(e),l()},filter:function(e){return t=t.filter(e),n}}}});return i.options=tA({async:!0,ssr:!1},e),i}(),tX=function(){},tq=i.forwardRef(function(e,t){var n,o,a,l,s=i.useRef(null),u=i.useState({onScrollCapture:tX,onWheelCapture:tX,onTouchMoveCapture:tX}),c=u[0],d=u[1],f=e.forwardProps,p=e.children,v=e.className,h=e.removeScrollBar,m=e.enabled,g=e.shards,y=e.sideCar,b=e.noRelative,w=e.noIsolation,x=e.inert,C=e.allowPinchZoom,E=e.as,S=e.gapMode,R=tI(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(n=[s,t],o=function(e){return n.forEach(function(t){return tW(t,e)})},(a=(0,i.useState)(function(){return{value:null,callback:o,facade:{get current(){return a.value},set current(r){var e=a.value;e!==r&&(a.value=r,a.callback(r,e))}}}})[0]).callback=o,l=a.facade,t$(function(){var e=tB.get(l);if(e){var t=new Set(e),o=new Set(n),i=l.current;t.forEach(function(e){o.has(e)||tW(e,null)}),o.forEach(function(e){t.has(e)||tW(e,i)})}tB.set(l,n)},[n]),l),M=tA(tA({},R),c);return i.createElement(i.Fragment,null,m&&i.createElement(y,{sideCar:tK,removeScrollBar:h,shards:g,noRelative:b,noIsolation:w,inert:x,setCallbacks:d,allowPinchZoom:!!C,lockRef:s,gapMode:S}),f?i.cloneElement(i.Children.only(p),tA(tA({},M),{ref:k})):i.createElement(void 0===E?"div":E,tA({},M,{className:v,ref:k}),p))});tq.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tq.classNames={fullWidth:tF,zeroRight:tH};var tG=function(){var e=0,t=null;return{add:function(o){var i,a;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n.nc;return t&&e.setAttribute("nonce",t),e}())&&((i=t).styleSheet?i.styleSheet.cssText=o:i.appendChild(document.createTextNode(o)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)),e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tU=function(){var e=tG();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},tZ=function(){var e=tU();return function(t){return e(t.styles,t.dynamic),null}},tJ={left:0,top:0,right:0,gap:0},tQ=function(e){return parseInt(e||"",10)||0},t0=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],o=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[tQ(n),tQ(o),tQ(i)]},t1=function(e){if(void 0===e&&(e="margin"),typeof window>"u")return tJ;var t=t0(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},t2=tZ(),t5="data-scroll-locked",t4=function(e,t,n,o){var i=e.left,a=e.top,l=e.right,s=e.gap;return void 0===n&&(n="margin"),`
40  .`.concat("with-scroll-bars-hidden",` {
41   overflow: hidden `).concat(o,`;
42   padding-right: `).concat(s,"px ").concat(o,`;
43  }
44  body[`).concat(t5,`] {
45    overflow: hidden `).concat(o,`;
46    overscroll-behavior: contain;
47    `).concat([t&&"position: relative ".concat(o,";"),"margin"===n&&`
48    padding-left: `.concat(i,`px;
49    padding-top: `).concat(a,`px;
50    padding-right: `).concat(l,`px;
51    margin-left:0;
52    margin-top:0;
53    margin-right: `).concat(s,"px ").concat(o,`;
54    `),"padding"===n&&"padding-right: ".concat(s,"px ").concat(o,";")].filter(Boolean).join(""),`
55  }
56  
57  .`).concat(tH,` {
58    right: `).concat(s,"px ").concat(o,`;
59  }
60  
61  .`).concat(tF,` {
62    margin-right: `).concat(s,"px ").concat(o,`;
63  }
64  
65  .`).concat(tH," .").concat(tH,` {
66    right: 0 `).concat(o,`;
67  }
68  
69  .`).concat(tF," .").concat(tF,` {
70    margin-right: 0 `).concat(o,`;
71  }
72  
73  body[`).concat(t5,`] {
74    `).concat("--removed-body-scroll-bar-size",": ").concat(s,`px;
75  }
76`)},t8=function(){var e=parseInt(document.body.getAttribute(t5)||"0",10);return isFinite(e)?e:0},t6=function(){i.useEffect(function(){return document.body.setAttribute(t5,(t8()+1).toString()),function(){var e=t8()-1;e<=0?document.body.removeAttribute(t5):document.body.setAttribute(t5,e.toString())}},[])},t3=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,a=void 0===o?"margin":o;t6();var l=i.useMemo(function(){return t1(a)},[a]);return i.createElement(t2,{styles:t4(l,!t,a,n?"":"!important")})},t9=!1;if("u">typeof window)try{var t7=Object.defineProperty({},"passive",{get:function(){return t9=!0,!0}});window.addEventListener("test",t7,t7),window.removeEventListener("test",t7,t7)}catch{t9=!1}var ne=!!t9&&{passive:!1},nt=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},nn=function(e,t){var n=t.ownerDocument,o=t;do{if("u">typeof ShadowRoot&&o instanceof ShadowRoot&&(o=o.host),nr(e,o)){var i=no(e,o);if(i[1]>i[2])return!0}o=o.parentNode}while(o&&o!==n.body);return!1},nr=function(e,t){return"v"===e?nt(t,"overflowY"):nt(t,"overflowX")},no=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ni=function(e,t,n,o,i){var a,l=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),s=n.target,u=t.contains(s),c=!1,d=l*o>0,f=0,p=0;
76do{if(!s)break;var v=no(e,s),h=v[0],m=v[1]-v[2]-l*h;(h||m)&&nr(e,s)&&(f+=m,p+=h);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return(d&&1>Math.abs(f)||!d&&1>Math.abs(p))&&(c=!0),c},na=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nl=function(e){return[e.deltaX,e.deltaY]},ns=function(e){return e&&"current"in e?e.current:e},nu=0,nc=[];let nd=(ir=function(e){var t=i.useRef([]),n=i.useRef([0,0]),o=i.useRef(),a=i.useState(nu++)[0],l=i.useState(tZ)[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(function(e,t,n){if(n||2==arguments.length)for(var o,i=0,a=t.length;i<a;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(ns),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var u=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var i,a=na(e),l=n.current,u="deltaX"in e?e.deltaX:l[0]-a[0],c="deltaY"in e?e.deltaY:l[1]-a[1],d=e.target,f=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===f&&"range"===d.type)return!1;var p=nn(f,d);if(!p)return!0;if(p?i=f:(i="v"===f?"h":"v",p=nn(f,d)),!p)return!1;if(!o.current&&"changedTouches"in e&&(u||c)&&(o.current=i),!i)return!0;var v=o.current||i;return ni(v,t,e,"h"===v?u:c)},[]),c=i.useCallback(function(e){if(!(!nc.length||nc[nc.length-1]!==l)){var n="deltaY"in e?nl(e):na(e),o=t.current.filter(function(t){var o;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(o=t.delta,o[0]===n[0]&&o[1]===n[1])})[0];if(o&&o.should){e.cancelable&&e.preventDefault();return}if(!o){var i=(s.current.shards||[]).map(ns).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?u(e,i[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=i.useCallback(function(e,n,o,i){var a={name:e,delta:n,target:o,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(o)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),f=i.useCallback(function(e){n.current=na(e),o.current=void 0},[]),p=i.useCallback(function(t){d(t.type,nl(t),t.target,u(t,e.lockRef.current))},[]),v=i.useCallback(function(t){d(t.type,na(t),t.target,u(t,e.lockRef.current))},[]);i.useEffect(function(){return nc.push(l),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",c,ne),document.addEventListener("touchmove",c,ne),document.addEventListener("touchstart",f,ne),function(){nc=nc.filter(function(e){return e!==l}),document.removeEventListener("wheel",c,ne),document.removeEventListener("touchmove",c,ne),document.removeEventListener("touchstart",f,ne)}},[]);var h=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(l,{styles:`
77  .block-interactivity-`.concat(a,` {pointer-events: none;}
78  .allow-interactivity-`).concat(a,` {pointer-events: all;}
79`)}):null,h?i.createElement(t3,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},tK.useMedium(ir),tY);var nf=i.forwardRef(function(e,t){return i.createElement(tq,tA({},e,{ref:t,sideCar:nd}))});nf.classNames=tq.classNames;var np=new WeakMap,nv=new WeakMap,nh={},nm=0,ng=function(e){return e&&(e.host||ng(e.parentNode))},ny=function(e,t,n,o){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=ng(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});nh[n]||(nh[n]=new WeakMap);var a=nh[n],l=[],s=new Set,u=new Set(i),c=function(e){!e||s.has(e)||(s.add(e),c(e.parentNode))};
79i.forEach(c);var d=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))d(e);else try{var t=e.getAttribute(o),i=null!==t&&"false"!==t,u=(np.get(e)||0)+1,c=(a.get(e)||0)+1;np.set(e,u),a.set(e,c),l.push(e),1===u&&i&&nv.set(e,!0),1===c&&e.setAttribute(n,"true"),i||e.setAttribute(o,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return d(t),s.clear(),nm++,function(){l.forEach(function(e){var t=np.get(e)-1,i=a.get(e)-1;np.set(e,t),a.set(e,i),t||(nv.has(e)||e.removeAttribute(o),nv.delete(e)),i||e.removeAttribute(n)}),--nm||(np=new WeakMap,np=new WeakMap,nv=new WeakMap,nh={})}},nb=function(e,t,n){void 0===n&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),i=typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body;return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live], script"))),ny(o,i,n,"aria-hidden")):function(){return null}},nw="Dialog",[nx]=ta(nw),[nC,nE]=nx(nw),nS=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:l,onOpenChange:s,modal:u=!0}=e,c=i.useRef(null),d=i.useRef(null),[f,p]=tf({prop:o,defaultProp:null!=l&&l,onChange:s,caller:nw});return(0,a.jsx)(nC,{scope:t,triggerRef:c,contentRef:d,contentId:tc(),titleId:tc(),descriptionId:tc(),open:f,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(e=>!e),[p]),modal:u,children:n})};nS.displayName=nw;var nR="DialogTrigger";i.forwardRef((e,t)=>{let{__scopeDialog:n,...o}=e,i=nE(nR,n),l=eA(t,i.triggerRef);return(0,a.jsx)(tp.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":nY(i.open),...o,ref:l,onClick:ti(e.onClick,i.onOpenToggle)})}).displayName=nR;var nk="DialogPortal",[nM,nj]=nx(nk,{forceMount:void 0}),nN=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:l}=e,s=nE(nk,t);return(0,a.jsx)(nM,{scope:t,forceMount:n,children:i.Children.map(o,e=>(0,a.jsx)(tP,{present:n||s.open,children:(0,a.jsx)(tD,{asChild:!0,container:l,children:e})}))})};nN.displayName=nk;var nO="DialogOverlay",nD=i.forwardRef((e,t)=>{let n=nj(nO,e.__scopeDialog),{forceMount:o=n.forceMount,...i}=e,l=nE(nO,e.__scopeDialog);return l.modal?(0,a.jsx)(tP,{present:o||l.open,children:(0,a.jsx)(n_,{...i,ref:t})}):null});nD.displayName=nO;var nP=eI("DialogOverlay.RemoveScroll"),n_=i.forwardRef((e,t)=>{let{__scopeDialog:n,...o}=e,i=nE(nO,n);return(0,a.jsx)(nf,{as:nP,allowPinchZoom:!0,shards:[i.contentRef],children:(0,a.jsx)(tp.div,{"data-state":nY(i.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),nT="DialogContent",nL=i.forwardRef((e,t)=>{let n=nj(nT,e.__scopeDialog),{forceMount:o=n.forceMount,...i}=e,l=nE(nT,e.__scopeDialog);return(0,a.jsx)(tP,{present:o||l.open,children:l.modal?(0,a.jsx)(nz,{...i,ref:t}):(0,a.jsx)(nA,{...i,ref:t})})});nL.displayName=nT;var nz=i.forwardRef((e,t)=>{let n=nE(nT,e.__scopeDialog),o=i.useRef(null),l=eA(t,n.contentRef,o);return i.useEffect(()=>{let e=o.current;if(e)return nb(e)},[]),(0,a.jsx)(nI,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ti(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:ti(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:ti(e.onFocusOutside,e=>e.preventDefault())})}),nA=i.forwardRef((e,t)=>{let n=nE(nT,e.__scopeDialog),o=i.useRef(!1),l=i.useRef(!1);return(0,a.jsx)(nI,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;null==(i=e.onCloseAutoFocus)||i.call(e,t),t.defaultPrevented||(o.current||null==(a=n.triggerRef.current)||a.focus(),t.preventDefault()),o.current=!1,l.current=!1},onInteractOutside:t=>{var i,a;null==(i=e.onInteractOutside)||i.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(l.current=!0));let s=t.target;(null==(a=n.triggerRef.current)?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}})}),nI=i.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:s,...u}=e,c=nE(nT,n),d=i.useRef(null),f=eA(t,d);return tL(),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(tR,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:l,onUnmountAutoFocus:s,children:(0,a.jsx)(tb,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":nY(c.open),...u,ref:f,onDismiss:()=>c.onOpenChange(!1)})}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(nG,{titleId:c.titleId}),(0,a.jsx)(nU,{contentRef:d,descriptionId:c.descriptionId})]})]})}),nH="DialogTitle",nF=i.forwardRef((e,t)=>
79{let{__scopeDialog:n,...o}=e,i=nE(nH,n);return(0,a.jsx)(tp.h2,{id:i.titleId,...o,ref:t})});nF.displayName=nH;var nW="DialogDescription",n$=i.forwardRef((e,t)=>{let{__scopeDialog:n,...o}=e,i=nE(nW,n);return(0,a.jsx)(tp.p,{id:i.descriptionId,...o,ref:t})});n$.displayName=nW;var nB="DialogClose",nV=i.forwardRef((e,t)=>{let{__scopeDialog:n,...o}=e,i=nE(nB,n);return(0,a.jsx)(tp.button,{type:"button",...o,ref:t,onClick:ti(e.onClick,()=>i.onOpenChange(!1))})});function nY(e){return e?"open":"closed"}nV.displayName=nB;var nK="DialogTitleWarning",[nX,nq]=function(e,t){let n=i.createContext(t),o=e=>{let{children:t,...o}=e,l=i.useMemo(()=>o,Object.values(o));return(0,a.jsx)(n.Provider,{value:l,children:t})};return o.displayName=e+"Provider",[o,function(o){let a=i.useContext(n);if(a)return a;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}(nK,{contentName:nT,titleName:nH,docsSlug:"dialog"}),nG=({titleId:e})=>{let t=nq(nK),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
80
81If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
82
83For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},nU=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${nq("DialogDescriptionWarning").contentName}}.`;return i.useEffect(()=>{var o;let i=null==(o=e.current)?void 0:o.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null};let nZ=(0,i.forwardRef)(({className:e,...t},n)=>(0,a.jsx)(nD,{ref:n,className:eO(`
84              univer-bg-black/80 univer-fixed univer-inset-0 univer-z-[1080]
85              data-[state=open]:univer-animate-in data-[state=open]:univer-fade-in-0
86              data-[state=closed]:univer-animate-out data-[state=closed]:univer-fade-out-0
87            `,e),...t}));nZ.displayName=nD.displayName;let nJ=(0,i.forwardRef)(({className:e,children:t,closable:n=!0,onClickClose:o,...i},l)=>(0,a.jsxs)(nN,{children:[(0,a.jsx)(nZ,{}),(0,a.jsxs)(nL,{ref:l,className:eO(`
88                  data-[state=open]:univer-animate-in data-[state=open]:univer-fade-in-0
89                  data-[state=open]:univer-zoom-in-95 data-[state=open]:univer-slide-in-from-left-1/2
90                  data-[state=open]:univer-slide-in-from-top-[48%]
91                  data-[state=closed]:univer-animate-out data-[state=closed]:univer-fade-out-0
92                  data-[state=closed]:univer-zoom-out-95 data-[state=closed]:univer-slide-out-to-left-1/2
93                  data-[state=closed]:univer-slide-out-to-top-[48%]
94                  univer-fixed univer-left-1/2 univer-top-1/2 univer-z-[1080] univer-box-border univer-grid
95                  univer-w-full univer-max-w-lg -univer-translate-x-1/2 -univer-translate-y-1/2 univer-gap-4
96                  univer-bg-white univer-p-4 univer-text-gray-500 univer-shadow-md univer-duration-200
97                  sm:!univer-rounded-lg
98                  dark:!univer-bg-gray-700 dark:!univer-text-gray-400
99                `,e1,e),...i,children:[t,n&&(0,a.jsxs)(nV,{className:"univer-absolute univer-right-4 univer-top-4 univer-size-6 univer-cursor-pointer univer-rounded-sm univer-border-none univer-bg-transparent univer-p-0 univer-transition-opacity hover:univer-opacity-100 disabled:univer-pointer-events-none",onClick:o,children:[(0,a.jsx)(m,{className:"univer-size-4 univer-text-gray-400"}),(0,a.jsx)("span",{className:"univer-sr-only",children:"Close"})]})]})]}));nJ.displayName=nL.displayName;let nQ=({className:e,...t})=>(0,a.jsx)("div",{className:eO(`
100              univer-flex univer-flex-col univer-space-y-1.5 univer-text-center
101              sm:!univer-text-left
102            `,e),...t});nQ.displayName="DialogHeader";let n0=({className:e,...t})=>(0,a.jsx)("div",{className:eO(`
103              univer-flex univer-flex-col-reverse
104              sm:!univer-flex-row sm:!univer-justify-end sm:!univer-space-x-2
105            `,e),...t});n0.displayName="DialogFooter";let n1=(0,i.forwardRef)(({className:e,...t},n)=>(0,a.jsx)(nF,{ref:n,className:eO(`
106              univer-my-0 univer-text-lg univer-font-semibold univer-leading-none univer-tracking-tight
107              univer-text-gray-900
108              dark:!univer-text-white
109            `,e),...t}));n1.displayName=nF.displayName;let n2=(0,i.forwardRef)(({className:e,...t},n)=>(0,a.jsx)(n$,{ref:n,className:eO("univer-text-sm univer-text-gray-500",e),...t}));function n5(e){var t,n,o,l;let{className:s,children:u,style:c,open:d=!1,title:f,width:p,draggable:v=!1,defaultPosition:h,destroyOnClose:m=!1,footer:g,mask:y=!0,keyboard:b=!0,closable:w=!0,maskClosable:x=!0,showOk:C,showCancel:E,onOpenChange:S,onClose:R,onOk:k,onCancel:M}=e,{locale:j}=(0,i.useContext)(eY),{position:N,isDragging:O,setElementRef:D,handleMouseDown:P}=function(e={}){let t=(0,i.useCallback)(()=>
109{let{innerWidth:e,innerHeight:t}=window;return{x:Math.max(0,(e-0)/2),y:Math.max(0,(t-0)/2)}},[]),{defaultPosition:n=t(),enabled:o=!1}=e,[a,l]=(0,i.useState)(n),[s,u]=(0,i.useState)(!1),c=(0,i.useRef)(null),d=(0,i.useRef)({x:0,y:0}),f=(0,i.useRef)({x:0,y:0}),p=(0,i.useRef)(!1);(0,i.useEffect)(()=>{if(!c.current||p.current||e.defaultPosition)return;let{width:t,height:n}=c.current.getBoundingClientRect(),{innerWidth:o,innerHeight:i}=window,a=Math.max(0,(o-t)/2),s=Math.max(0,(i-n)/2);l({x:a,y:s}),d.current={x:a,y:s},p.current=!0},[e.defaultPosition]);let v=(0,i.useCallback)((e,t)=>{if(!c.current)return{x:e,y:t};let n=c.current.getBoundingClientRect(),{clientWidth:o,clientHeight:i}=document.documentElement,a=d.current.x+(e-f.current.x),l=d.current.y+(t-f.current.y);return a<0&&(a=0),l<0&&(l=0),a+n.width>o&&(a=o-n.width),l+n.height>i&&(l=i-n.height),{x:a,y:l}},[]),h=(0,i.useCallback)(e=>{o&&(e.preventDefault(),e.stopPropagation(),d.current={...a},f.current={x:e.clientX,y:e.clientY},u(!0),document.body.style.userSelect="none")},[o,a]),m=(0,i.useCallback)(e=>{s&&(e.preventDefault(),e.stopPropagation(),l(v(e.clientX,e.clientY)))},[s,v]),g=(0,i.useCallback)(()=>{u(!1),document.body.style.userSelect=""},[]);return(0,i.useEffect)(()=>{if(o)return document.addEventListener("mousemove",m),document.addEventListener("mouseup",g),()=>{document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",g)}},[o,m,g]),{position:a,isDragging:s,elementRef:c,setElementRef:t=>{if(c.current=t,t&&!p.current&&!e.defaultPosition){let{width:e,height:n}=t.getBoundingClientRect(),{innerWidth:o,innerHeight:i}=window,a=Math.max(0,(o-e)/2),s=Math.max(0,(i-n)/2);l({x:a,y:s}),d.current={x:a,y:s},p.current=!0}},handleMouseDown:h}}({defaultPosition:h,enabled:v}),_=null!=g?g:C||E?(0,a.jsxs)("div",{className:"univer-flex univer-justify-end univer-gap-2",children:[E&&(0,a.jsx)(eB,{onClick:M,children:null!=(n=null==(t=null==j?void 0:j.Confirm)?void 0:t.cancel)?n:"Cancel"}),C&&(0,a.jsx)(eB,{variant:"primary",onClick:k,children:null!=(l=null==(o=null==j?void 0:j.Confirm)?void 0:o.confirm)?l:"OK"})]}):null,T=(0,i.useCallback)(e=>{e&&v&&D(e)},[v,D]),L=(0,i.useCallback)(e=>{(x||e)&&(null==S||S(e),e||null==R||R())},[R,S]);return(0,a.jsx)(nS,{open:d,onOpenChange:L,modal:!1!==y,children:(0,a.jsxs)(nJ,{ref:T,className:eO(s,{"!univer-animate-none":v}),style:{...c,width:p?"number"==typeof p?`${p}px`:p:void 0,maxWidth:p?"initial":void 0,...v?{position:"absolute",margin:0,left:0,top:0,transform:`translate(${N.x}px, ${N.y}px)`,transition:O?"none":void 0,cursor:O?"grabbing":void 0}:{}},closable:w,onClickClose:function(){null==S||S(!1),null==R||R()},children:[(0,a.jsxs)(nQ,{className:eO({"!univer-hidden":!f}),"data-drag-handle":v?"true":void 0,style:{cursor:v?"grab":void 0,userSelect:v?"none":void 0,touchAction:v?"none":void 0},onMouseDown:v?P:void 0,children:[(0,a.jsx)(n1,{children:f}),(0,a.jsx)(n2,{className:"univer-hidden"})]}),u,_&&(0,a.jsx)(n0,{children:_})]})})}n2.displayName=n$.displayName;let n4=(e,t,n)=>{let o=(n/=100)*(t/=100),i=o*(1-Math.abs(e/60%2-1)),a=n-o,l=0,s=0,u=0;return e>=0&&e<60?(l=o,s=i,u=0):e>=60&&e<120?(l=i,s=o,u=0):e>=120&&e<180?(l=0,s=o,u=i):e>=180&&e<240?(l=0,s=i,u=o):e>=240&&e<300?(l=i,s=0,u=o):e>=300&&e<360&&(l=o,s=0,u=i),[Math.round((l+a)*255),Math.round((s+a)*255),Math.round((u+a)*255)]},n8=(e,t,n)=>{let o=e=>e.toString(16).padStart(2,"0");return`#${o(e)}${o(t)}${o(n)}`},n6=(e,t,n)=>{e/=255;let o=Math.max(e,t/=255,n/=255),i=o-Math.min(e,t,n),a=0,l=0;return 0!==o&&(l=i/o),0!==i&&(o===e?a=(t-n)/i+6*(t<n):o===t?a=(n-e)/i+2:o===n&&(a=(e-t)/i+4),a*=60),[a,100*l,100*o]},n3=e=>{4===e.length&&(e=`#${e.slice(1).split("").map(e=>e+e).join("")}`);let[t,n,o]=e.match(/\w\w/g).map(e=>Number.parseInt(e,16));return n6(t,n,o)},n9=(e,t,n)=>{let[o,i,a]=n4(e,t,n);return n8(o,i,a)};function n7({hsv:e,onChange:t}){let[n,o]=(0,i.useState)(""),l=(0,i.useMemo)(()=>n9(e[0],e[1],e[2]),[e]);(0,i.useEffect)(()=>{o(l.replace(/^#/,""))},[l]);let s=e=>/^[0-9A-Fa-f]{6}$/.test(e);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{className:eO("univer-w-full univer-px-2 !univer-pl-4 univer-uppercase focus:univer-border-primary-500 focus:univer-outline-none dark:!univer-text-white",e1),value:n,onChange:e=>{let n=e.target.value.trim();if(!(n.length>6)&&!(""!==n&&!/^[0-9A-Fa-f]*$/.test(n))&&(o(n),s(n))){let e=n3(n);e&&t&&t(...e)}},onBlur:()=>{s(n)||o(l.replace(/^#/,""))},maxLength:6,spellCheck:!1}),(0,a.jsx)("span",{className:"univer-absolute univer-left-1.5 univer-top-1/2 -univer-translate-y-1/2 univer-text-sm univer-text-gray-400",children:"#"})]})}function re({hsv:e,onChange:t}){let[n,o]=(0,i.useState)({r:0,g:0,b:0});(0,i.useEffect)(()=>{let[t,n,i]=n4(e[0],e[1],e[2]);o({r:Math.round(t),g:Math.round(n),b:Math.round(i)})},[e]);let l=(e,i)=>{if(""!==i&&!/^\d*$/.test(i))return;let a=""===i?0:Number.parseInt(i,10);if(a>255)return;let l={...n,[e]:a};o(l),t&&t(...n6(l.r,l.g,l.b))},s=()=>{let[t,n,i]=n4(e[0],e[1],e[2]);o({r:Math.round(t),g:Math.round(n),b:Math.round(i)})};return(0,a.jsxs)("div",{className:"univer-flex univer-items-center univer-gap-2 [&>input]:univer-w-11 [&>input]:univer-border-gray-200 [&>input]:focus:univer-border-primary-500 dark:[&>input]:!univer-border-gray-600 dark:[&>input]:!univer-text-white",children:[(0,a.jsx)("input",{value:n.r,onChange:e=>l("r",e.target.value),onBlur:s,maxLength:3}),(0,a.jsx)("input",{value:n.g,onChange:e=>l("g",e.target.value),onBlur:s,maxLength:3}),(0,a.jsx)("input",{value:n.b,onChange:e=>l("b",e.target.value),onBlur:s,maxLength:3})]})}let rt=[["#FFFFFF","#E1EFFE","#FDE8E8","#FEECDC","#FFF4B9","#DEF7EC","#D5F5F6","#EDEBFE","#FCE8F3"],["#CDD0D8","#A4CAFE","#F8B4B4","#FDBA8C","#FAC815","#84E1BC","#7EDCE2","#CABFFD","#F8B4D9"],["#979DAC","#3F83F8","#F05252","#FF5A1F","#D49D0F","#0DA471","#0694A2","#9061F9","#E74694"],["#414657","#1A56DB","#C81E1E","#B43403","#9A6D15","#046C4E","#036672","#6C2BD9","#BF125D"],["#000000","#233876","#771D1D","#771D1D","#634312","#014737","#014451","#4A1D96","#751A3D"]],rn=(0,i.memo)(function({hsv:e,onChange:t,onChanged:n}){let o=(0,i.useRef)(null),l=(0,i.useRef)(null),[s,u]=(0,i.useState)(!1);(0,i.useEffect)(()=>
109{let t=o.current;if(!t)return;let n=t.getContext("2d");if(!n)return;let i=n.createLinearGradient(0,0,t.width,0);i.addColorStop(0,`hsl(${e[0]}, 0%, 50%)`),i.addColorStop(1,`hsl(${e[0]}, 100%, 50%)`),n.fillStyle=i,n.fillRect(0,0,t.width,t.height);let a=n.createLinearGradient(0,0,0,t.height);a.addColorStop(0,"rgba(255, 255, 255, 0)"),a.addColorStop(1,"rgba(0, 0, 0, 1)"),n.fillStyle=a,n.fillRect(0,0,t.width,t.height)},[e]);let c=n=>{n.stopPropagation();let i=o.current;if(!i)return;let a=i.getBoundingClientRect(),l=Math.max(0,Math.min(n.clientX-a.left,a.width)),s=Math.max(0,Math.min(n.clientY-a.top,a.height)),u=l/a.width*100,c=100-s/a.height*100;t(e[0],u,c)},d=(0,i.useCallback)(()=>{u(!1)},[e]);function f(){null==n||n(e[0],e[1],e[2])}return(0,i.useEffect)(()=>{var e;return null==(e=l.current)||e.addEventListener("mouseup",f),window.addEventListener("pointerup",d),window.addEventListener("mouseup",d),()=>{var e;null==(e=l.current)||e.removeEventListener("mouseup",f),window.removeEventListener("pointerup",d),window.removeEventListener("mouseup",d)}},[e]),(0,i.useEffect)(()=>{let e=()=>{u(!1)};return window.addEventListener("pointerup",e),window.addEventListener("mouseup",e),()=>{window.removeEventListener("pointerup",e),window.removeEventListener("mouseup",e)}},[]),(0,a.jsxs)("div",{"data-u-comp":"color-picker-spectrum",ref:l,className:"univer-relative univer-overflow-hidden",children:[(0,a.jsx)("canvas",{ref:o,className:"univer-h-full univer-w-full univer-cursor-crosshair univer-rounded",onPointerDown:e=>{u(!0),c(e)},onPointerMove:e=>s&&c(e)}),(0,a.jsx)("div",{className:"univer-pointer-events-none univer-absolute univer-left-0 univer-top-0 univer-size-4 univer-rounded-full univer-border-2 univer-border-white univer-shadow-md univer-ring-2 univer-ring-white univer-will-change-transform",style:(()=>{var t,n,o,i;let a=null!=(n=null==(t=l.current)?void 0:t.clientWidth)?n:0,u=null!=(i=null==(o=l.current)?void 0:o.clientHeight)?i:0,c=e[1]/100*a-8,d=(100-e[2])/100*u-8;return{transform:`translate(${c}px, ${d}px)`,transition:s?"none":"transform 0.1s ease-out"}})()})]})}),rr=(0,i.memo)(function({hsv:e,onChange:t,onChanged:n}){var o;let[l,s]=(0,i.useState)(!1),u=(0,i.useRef)(null),c=(0,i.useRef)(null),d=(0,i.useMemo)(()=>{var e,t;return null!=(t=null==(e=c.current)?void 0:e.clientWidth)?t:0},[]),f=(0,i.useCallback)(n=>{let o=u.current;if(!o)return;let i=o.getBoundingClientRect(),a=i.width-d;t(Math.round(Math.max(0,Math.min(n-i.left,a))/a*360),e[1],e[2])},[e,d,t]),p=(0,i.useCallback)(e=>{e.stopPropagation(),l&&f(e.clientX)},[l,f]),v=(0,i.useCallback)(()=>{s(!1),null==n||n(e[0],e[1],e[2])},[e,n]);return(0,i.useEffect)(()=>(l&&(window.addEventListener("pointermove",p),window.addEventListener("pointerup",v),window.addEventListener("mouseup",v)),()=>{window.removeEventListener("pointermove",p),window.removeEventListener("pointerup",v),window.removeEventListener("mouseup",v)}),[l,p,v]),(0,a.jsx)("div",{"data-u-comp":"color-picker-hue-slider",className:"univer-relative univer-w-full univer-select-none",children:(0,a.jsx)("div",{ref:u,className:"univer-relative univer-h-2 univer-w-full univer-cursor-pointer univer-rounded-full univer-shadow-inner",style:{background:`linear-gradient(to right,
110                        hsl(0, 100%, 50%),
111                        hsl(60, 100%, 50%),
112                        hsl(120, 100%, 50%),
113                        hsl(180, 100%, 50%),
114                        hsl(240, 100%, 50%),
115                        hsl(300, 100%, 50%),
116                        hsl(360, 100%, 50%))`},onPointerDown:e=>{s(!0),f(e.clientX)},children:(0,a.jsx)("div",{ref:c,className:"univer-absolute univer-top-1/2 univer-box-border univer-size-2 univer-rounded-full univer-bg-transparent univer-shadow-md univer-ring-2 univer-ring-white univer-transition-transform univer-duration-75 univer-will-change-transform",style:{left:`${Math.min(Math.max(e[0],0),360)/360*(100-d/(null==(o=u.current)?void 0:o.clientWidth)*100)}%`,transform:"translateY(-50%)",transition:l?"none":"all 0.1s ease-out"}})})})}),ro=(0,i.memo)(function({hsv:e,onChange:t}){return(0,a.jsx)("div",{className:"dark:![&_input]:univer-border-gray-600 dark:![&_input]:univer-text-white univer-flex univer-gap-2 [&_input]:univer-box-border [&_input]:univer-flex [&_input]:univer-h-7 [&_input]:univer-items-center [&_input]:univer-rounded [&_input]:univer-border [&_input]:univer-border-solid [&_input]:univer-border-gray-200 [&_input]:univer-bg-transparent [&_input]:univer-px-1.5 [&_input]:univer-text-sm [&_input]:univer-text-gray-700 [&_input]:univer-outline-none",children:(0,a.jsxs)("div",{className:"univer-relative univer-flex univer-flex-1 univer-gap-2",children:[(0,a.jsx)(n7,{hsv:e,onChange:t}),(0,a.jsx)(re,{hsv:e,onChange:t})]})})}),ri=(0,i.memo)(function({hsv:e,onChange:t}){let n=(0,i.useCallback)(e=>{let[n,o,i]=n3(e);t(n,o,i)},[t]),o=n9(e[0],e[1],e[2]);
116return(0,a.jsx)("div",{"data-u-comp":"color-picker-presets",className:"univer-grid univer-content-center univer-gap-2",children:rt.map((e,t)=>(0,a.jsx)("div",{className:"univer-grid univer-grid-flow-col univer-items-center univer-justify-between univer-gap-2",children:e.map((e,i)=>(0,a.jsx)("button",{type:"button",className:eO("univer-box-border univer-h-5 univer-w-5 univer-cursor-pointer univer-rounded-full univer-border univer-border-solid univer-border-transparent univer-bg-gray-300 univer-transition-shadow",{"univer-ring-2 univer-ring-offset-2 univer-ring-offset-white dark:!univer-ring-primary-600 dark:!univer-ring-offset-gray-600":e.toUpperCase()===o.toUpperCase(),"!univer-border-gray-200":0===t&&0===i}),style:{backgroundColor:e},onClick:()=>n(e)},i))},t))})});function ra({format:e="hex",value:t="#000000",onChange:n}){if(!eV)return null;let{locale:o}=(0,i.useContext)(eY),[l,s]=(0,i.useState)([0,100,100]),[u,c]=(0,i.useState)(!1),d=(0,i.useCallback)((e,t,n)=>n4(e,t,n),[]);function f(e,t,n){s([e,t,n])}return(0,i.useEffect)(()=>{try{if("hex"===e){let[e,n,o]=t?n3(t):l;s([e,n,o])}}catch(e){console.error("Invalid value:",e)}},[t]),(0,a.jsxs)("div",{"data-u-comp":"color-picker",className:"univer-cursor-default univer-space-y-2 univer-rounded-lg univer-bg-white dark:!univer-bg-gray-700",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)(ri,{hsv:l,onChange:(t,o,i)=>{f(t,o,i),function(t,o,i){let[a,l,s]=d(t,o,i);if("hex"===e){let e=n8(a,l,s);null==n||n(e)}}(t,o,i)}}),(0,a.jsx)("div",{className:"univer-flex univer-h-7 univer-items-center",children:(0,a.jsx)("a",{className:"univer-cursor-pointer univer-gap-2 univer-text-sm univer-text-gray-900 univer-transition-opacity hover:univer-opacity-80 dark:!univer-text-white",onClick:()=>c(!0),children:null==o?void 0:o.ColorPicker.more})}),(0,a.jsx)(n5,{className:"!univer-w-fit !univer-p-2.5",closable:!1,maskClosable:!1,open:u,onOpenChange:c,children:(0,a.jsxs)("div",{className:"univer-grid univer-w-64 univer-gap-2",children:[(0,a.jsx)(rn,{hsv:l,onChange:f}),(0,a.jsxs)("div",{className:"univer-flex univer-items-center univer-gap-2",children:[(0,a.jsx)("div",{className:"univer-size-6 univer-flex-shrink-0 univer-rounded-sm",style:{backgroundColor:n9(...l)}}),(0,a.jsx)(rr,{hsv:l,onChange:f})]}),(0,a.jsx)(ro,{hsv:l,onChange:f}),(0,a.jsxs)("footer",{className:"univer-flex univer-items-center univer-justify-end univer-gap-2",children:[(0,a.jsx)(eB,{onClick:()=>c(!1),children:null==o?void 0:o.ColorPicker.cancel}),(0,a.jsx)(eB,{variant:"primary",onClick:function(){let[e,t,o]=l,i=n9(e,t,o);null==n||n(i),c(!1)},children:null==o?void 0:o.ColorPicker.confirm})]})]})})]})}function rl(e){let{locale:t,cancelText:n,confirmText:o,onClose:i,onConfirm:l}=e;return(0,a.jsxs)("footer",{className:"univer-flex univer-items-center univer-justify-end univer-gap-2",children:[(0,a.jsx)(eB,{onClick:i,children:null!=n?n:null==t?void 0:t.Confirm.cancel}),(0,a.jsx)(eB,{variant:"primary",onClick:l,children:null!=o?o:null==t?void 0:t.Confirm.confirm})]})}function rs(e){let{children:t,visible:n=!1,title:o,cancelText:l,confirmText:s,width:u,onClose:c,onConfirm:d}=e,{locale:f}=(0,i.useContext)(eY);return(0,a.jsx)(n5,{open:n,title:o,maskClosable:!1,footer:(0,a.jsx)(rl,{locale:f,cancelText:l,confirmText:s,onClose:c,onConfirm:d}),onClose:c,width:u,children:t})}let ru=["top","right","bottom","left"],rc=Math.min,rd=Math.max,rf=Math.round,rp=Math.floor,rv=e=>({x:e,y:e}),rh={left:"right",right:"left",bottom:"top",top:"bottom"},rm={start:"end",end:"start"};function rg(e,t){return"function"==typeof e?e(t):e}function ry(e){return e.split("-")[0]}function rb(e){return e.split("-")[1]}function rw(e){return"x"===e?"y":"x"}function rx(e){return"y"===e?"height":"width"}let rC=new Set(["top","bottom"]);function rE(e){return rC.has(ry(e))?"y":"x"}function rS(e){return e.replace(/start|end/g,e=>rm[e])}let rR=["left","right"],rk=["right","left"],rM=["top","bottom"],rj=["bottom","top"];function rN(e){return e.replace(/left|right|bottom|top/g,e=>rh[e])}function rO(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function rD(e){let{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}function rP(e,t,n){let o,{reference:i,floating:a}=e,l=rE(t),s=rw(rE(t)),u=rx(s),c=ry(t),d="y"===l,f=i.x+i.width/2-a.width/2,p=i.y+i.height/2-a.height/2,v=i[u]/2-a[u]/2;switch(c){case"top":o={x:f,y:i.y-a.height};break;case"bottom":o={x:f,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:p};break;case"left":o={x:i.x-a.width,y:p};break;default:o={x:i.x,y:i.y}}switch(rb(t)){case"start":o[s]-=v*(n&&d?-1:1);break;case"end":o[s]+=v*(n&&d?-1:1)}return o}let r_=async(e,t,n)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:l}
116=n,s=a.filter(Boolean),u=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=rP(c,o,u),p=o,v={},h=0;for(let n=0;n<s.length;n++){let{name:a,fn:m}=s[n],{x:g,y:y,data:b,reset:w}=await m({x:d,y:f,initialPlacement:o,placement:p,strategy:i,middlewareData:v,rects:c,platform:l,elements:{reference:e,floating:t}});d=null!=g?g:d,f=null!=y?y:f,v={...v,[a]:{...v[a],...b}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:d,y:f}=rP(c,p,u)),n=-1)}return{x:d,y:f,placement:p,strategy:i,middlewareData:v}};async function rT(e,t){var n;void 0===t&&(t={});let{x:o,y:i,platform:a,rects:l,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:v=0}=rg(t,e),h=rO(v),m=s[p?"floating"===f?"reference":"floating":f],g=rD(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:u})),y="floating"===f?{x:o,y:i,width:l.floating.width,height:l.floating.height}:l.reference,b=await (null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),w=await (null==a.isElement?void 0:a.isElement(b))&&await (null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},x=rD(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:u}):y);return{top:(g.top-x.top+h.top)/w.y,bottom:(x.bottom-g.bottom+h.bottom)/w.y,left:(g.left-x.left+h.left)/w.x,right:(x.right-g.right+h.right)/w.x}}function rL(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function rz(e){return ru.some(t=>e[t]>=0)}let rA=new Set(["left","top"]);async function rI(e,t){let{placement:n,platform:o,elements:i}=e,a=await (null==o.isRTL?void 0:o.isRTL(i.floating)),l=ry(n),s=rb(n),u="y"===rE(n),c=rA.has(l)?-1:1,d=a&&u?-1:1,f=rg(t,e),{mainAxis:p,crossAxis:v,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof h&&(v="end"===s?-1*h:h),u?{x:v*d,y:p*c}:{x:p*c,y:v*d}}function rH(){return"u">typeof window}function rF(e){return rB(e)?(e.nodeName||"").toLowerCase():"#document"}function rW(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function r$(e){var t;return null==(t=(rB(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function rB(e){return!!rH()&&(e instanceof Node||e instanceof rW(e).Node)}function rV(e){return!!rH()&&(e instanceof Element||e instanceof rW(e).Element)}function rY(e){return!!rH()&&(e instanceof HTMLElement||e instanceof rW(e).HTMLElement)}function rK(e){return!(!rH()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof rW(e).ShadowRoot)}let rX=new Set(["inline","contents"]);function rq(e){let{overflow:t,overflowX:n,overflowY:o,display:i}=r8(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!rX.has(i)}let rG=new Set(["table","td","th"]),rU=[":popover-open",":modal"];function rZ(e){return rU.some(t=>{try{return e.matches(t)}catch{return!1}})}let rJ=["transform","translate","scale","rotate","perspective"],rQ=["transform","translate","scale","rotate","perspective","filter"],r0=["paint","layout","strict","content"];function r1(e){let t=r2(),n=rV(e)?r8(e):e;return rJ.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||rQ.some(e=>(n.willChange||"").includes(e))||r0.some(e=>(n.contain||"").includes(e))}function r2(){return!(typeof CSS>"u")&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let r5=new Set(["html","body","#document"]);function r4(e){return r5.has(rF(e))}function r8(e){return rW(e).getComputedStyle(e)}function r6(e){return rV(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function r3(e){if("html"===rF(e))return e;let t=e.assignedSlot||e.parentNode||rK(e)&&e.host||r$(e);return rK(t)?t.host:t}function r9(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=r3(t);return r4(n)?t.ownerDocument?t.ownerDocument.body:t.body:rY(n)&&rq(n)?n:e(n)}(e),a=i===(null==(o=e.ownerDocument)?void 0:o.body),l=rW(i);if(a){let e=r7(l);
116return t.concat(l,l.visualViewport||[],rq(i)?i:[],e&&n?r9(e):[])}return t.concat(i,r9(i,[],n))}function r7(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function oe(e){let t=r8(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=rY(e),a=i?e.offsetWidth:n,l=i?e.offsetHeight:o,s=rf(n)!==a||rf(o)!==l;return s&&(n=a,o=l),{width:n,height:o,$:s}}function ot(e){return rV(e)?e:e.contextElement}function on(e){let t=ot(e);if(!rY(t))return rv(1);let n=t.getBoundingClientRect(),{width:o,height:i,$:a}=oe(t),l=(a?rf(n.width):n.width)/o,s=(a?rf(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}let or=rv(0);function oo(e){let t=rW(e);return r2()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:or}function oi(e,t,n,o){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),l=ot(e),s=rv(1);t&&(o?rV(o)&&(s=on(o)):s=on(e));let u=(void 0===(i=n)&&(i=!1),o&&(!i||o===rW(l))&&i)?oo(l):rv(0),c=(a.left+u.x)/s.x,d=(a.top+u.y)/s.y,f=a.width/s.x,p=a.height/s.y;if(l){let e=rW(l),t=o&&rV(o)?rW(o):o,n=e,i=r7(n);for(;i&&o&&t!==n;){let e=on(i),t=i.getBoundingClientRect(),o=r8(i),a=t.left+(i.clientLeft+parseFloat(o.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,p*=e.y,c+=a,d+=l,i=r7(n=rW(i))}}return rD({width:f,height:p,x:c,y:d})}function oa(e,t){let n=r6(e).scrollLeft;return t?t.left+n:oi(r$(e)).left+n}function ol(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-oa(e,n),y:n.top+t.scrollTop}}let os=new Set(["absolute","fixed"]);function ou(e,t,n){let o;if("viewport"===t)o=function(e,t){let n=rW(e),o=r$(e),i=n.visualViewport,a=o.clientWidth,l=o.clientHeight,s=0,u=0;if(i){a=i.width,l=i.height;let e=r2();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,u=i.offsetTop)}let c=oa(o);if(c<=0){let e=o.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(o.clientWidth-t.clientWidth-i);l<=25&&(a-=l)}else c<=25&&(a+=c);return{width:a,height:l,x:s,y:u}}(e,n);else if("document"===t)o=function(e){let t=r$(e),n=r6(e),o=e.ownerDocument.body,i=rd(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=rd(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),l=-n.scrollLeft+oa(e),s=-n.scrollTop;return"rtl"===r8(o).direction&&(l+=rd(t.clientWidth,o.clientWidth)-i),{width:i,height:a,x:l,y:s}}(r$(e));else if(rV(t))o=function(e,t){let n=oi(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,a=rY(e)?on(e):rv(1),l=e.clientWidth*a.x,s=e.clientHeight*a.y;return{width:l,height:s,x:i*a.x,y:o*a.y}}(t,n);else{let n=oo(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return rD(o)}function oc(e){return"static"===r8(e).position}function od(e,t){if(!rY(e)||"fixed"===r8(e).position)return null;if(t)return t(e);let n=e.offsetParent;return r$(e)===n&&(n=n.ownerDocument.body),n}function of(e,t){var n;let o=rW(e);if(rZ(e))return o;if(!rY(e)){let t=r3(e);for(;t&&!r4(t);){if(rV(t)&&!oc(t))return t;t=r3(t)}return o}let i=od(e,t);for(;i&&(n=i,rG.has(rF(n)))&&oc(i);)i=od(i,t);return i&&r4(i)&&oc(i)&&!r1(i)?o:i||function(e){let t=r3(e);for(;rY(t)&&!r4(t);){if(r1(t))return t;if(rZ(t))break;t=r3(t)}return null}(e)||o}let op=async function(e){let t=this.getOffsetParent||of,n=this.getDimensions,o=await n(e.floating);return{reference:function(e,t,n){let o=rY(t),i=r$(t),a="fixed"===n,l=oi(e,!0,a,t),s={scrollLeft:0,scrollTop:0},u=rv(0);if(o||!o&&!a)if(("body"!==rF(t)||rq(i))&&(s=r6(t)),o){let e=oi(t,!0,a,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=oa(i));a&&!o&&i&&(u.x=oa(i));let c=!i||o||a?rv(0):ol(i,s);return{x:l.left+s.scrollLeft-u.x-c.x,y:l.top+s.scrollTop-u.y-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},ov={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e,a="fixed"===i,l=r$(o),s=!!t&&rZ(t.floating);if(o===l||s&&a)return n;let u={scrollLeft:0,scrollTop:0},c=rv(1),d=rv(0),f=rY(o);
116if((f||!f&&!a)&&(("body"!==rF(o)||rq(l))&&(u=r6(o)),rY(o))){let e=oi(o);c=on(o),d.x=e.x+o.clientLeft,d.y=e.y+o.clientTop}let p=!l||f||a?rv(0):ol(l,u);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-u.scrollTop*c.y+d.y+p.y}},getDocumentElement:r$,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e,a=[..."clippingAncestors"===n?rZ(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let o=r9(e,[],!1).filter(e=>rV(e)&&"body"!==rF(e)),i=null,a="fixed"===r8(e).position,l=a?r3(e):e;for(;rV(l)&&!r4(l);){let t=r8(l),n=r1(l);n||"fixed"!==t.position||(i=null),(a?!n&&!i:!n&&"static"===t.position&&!!i&&os.has(i.position)||rq(l)&&!n&&function e(t,n){let o=r3(t);return!(o===n||!rV(o)||r4(o))&&("fixed"===r8(o).position||e(o,n))}(e,l))?o=o.filter(e=>e!==l):i=t,l=r3(l)}return t.set(e,o),o}(t,this._c):[].concat(n),o],l=a[0],s=a.reduce((e,n)=>{let o=ou(t,n,i);return e.top=rd(o.top,e.top),e.right=rc(o.right,e.right),e.bottom=rc(o.bottom,e.bottom),e.left=rd(o.left,e.left),e},ou(t,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:of,getElementRects:op,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=oe(e);return{width:t,height:n}},getScale:on,isElement:rV,isRTL:function(e){return"rtl"===r8(e).direction}};function oh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let om=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:i,rects:a,platform:l,elements:s,middlewareData:u}=t,{element:c,padding:d=0}=rg(e,t)||{};if(null==c)return{};let f=rO(d),p={x:n,y:o},v=rw(rE(i)),h=rx(v),m=await l.getDimensions(c),g="y"===v,y=g?"clientHeight":"clientWidth",b=a.reference[h]+a.reference[v]-p[v]-a.floating[h],w=p[v]-a.reference[v],x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),C=x?x[y]:0;C&&await (null==l.isElement?void 0:l.isElement(x))||(C=s.floating[y]||a.floating[h]);let E=C/2-m[h]/2-1,S=rc(f[g?"top":"left"],E),R=rc(f[g?"bottom":"right"],E),k=C-m[h]-R,M=C/2-m[h]/2+(b/2-w/2),j=rd(S,rc(M,k)),N=!u.arrow&&null!=rb(i)&&M!==j&&a.reference[h]/2-(M<S?S:R)-m[h]/2<0,O=N?M<S?M-S:M-k:0;return{[v]:p[v]+O,data:{[v]:j,centerOffset:M-j-O,...N&&{alignmentOffset:O}},reset:N}}});var og="u">typeof document?i.useLayoutEffect:function(){};function oy(e,t){let n,o,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(o=n;0!=o--;)if(!oy(e[o],t[o]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(o=n;0!=o--;)if(!({}).hasOwnProperty.call(t,i[o]))return!1;for(o=n;0!=o--;){let n=i[o];if(!("_owner"===n&&e.$$typeof)&&!oy(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ob(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ow(e,t){let n=ob(e);return Math.round(t*n)/n}function ox(e){let t=i.useRef(e);return og(()=>{t.current=e}),t}var oC=i.forwardRef((e,t)=>{let{children:n,width:o=10,height:i=5,...l}=e;return(0,a.jsx)(tp.svg,{...l,ref:t,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,a.jsx)("polygon",{points:"0,0 30,0 15,10"})})});oC.displayName="Arrow";var oE="Popper",[oS,oR]=ta(oE),[ok,oM]=oS(oE),oj=e=>{let{__scopePopper:t,children:n}=e,[o,l]=i.useState(null);return(0,a.jsx)(ok,{scope:t,anchor:o,onAnchorChange:l,children:n})};oj.displayName=oE;var oN="PopperAnchor",oO=i.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...l}=e,s=oM(oN,n),u=i.useRef(null),c=eA(t,u),d=i.useRef(null);return i.useEffect(()=>{let e=d.current;d.current=(null==o?void 0:o.current)||u.current,e!==d.current&&s.onAnchorChange(d.current)}),o?null:(0,a.jsx)(tp.div,{...l,ref:c})});oO.displayName=oN;var oD="PopperContent",[oP,o_]=oS(oD),oT=i.forwardRef((e,t)=>{var n,o,s,u,c,d,f,p;let{__scopePopper:v,side:h="bottom",sideOffset:m=0,align:g="center",alignOffset:y=0,arrowPadding:b=0,avoidCollisions:w=!0,collisionBoundary:x=[],collisionPadding:C=0,sticky:E="partial",hideWhenDetached:S=!1,updatePositionStrategy:R="optimized",onPlaced:k,...M}=e,j=oM(oD,v),[N,O]=i.useState(null),D=eA(t,e=>O(e)),[P,_]=i.useState(null),T=function(e){let[t,n]=i.useState(void 0);return tl(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let o,i;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(P),L=null!=(n=null==T?void 0:T.width)?n:0,z=null!=(o=null==T?void 0:T.height)?o:0,A="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},I=Array.isArray(x)?x:[x],H=I.length>0,F={padding:A,boundary:I.filter(oI),altBoundary:H},{refs:W,floatingStyles:$,placement:B,isPositioned:V,middlewareData:Y}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:a,elements:{reference:s,floating:u}={},transform:c=!0,whileElementsMounted:d,open:f}=e,[p,v]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=i.useState(o);oy(h,o)||m(o);let[g,y]=i.useState(null),[b,w]=i.useState(null),x=i.useCallback(e=>
116{e!==R.current&&(R.current=e,y(e))},[]),C=i.useCallback(e=>{e!==k.current&&(k.current=e,w(e))},[]),E=s||g,S=u||b,R=i.useRef(null),k=i.useRef(null),M=i.useRef(p),j=null!=d,N=ox(d),O=ox(a),D=ox(f),P=i.useCallback(()=>{if(!R.current||!k.current)return;let e={placement:t,strategy:n,middleware:h};O.current&&(e.platform=O.current),((e,t,n)=>{let o=new Map,i={platform:ov,...n},a={...i.platform,_c:o};return r_(e,t,{...i,platform:a})})(R.current,k.current,e).then(e=>{let t={...e,isPositioned:!1!==D.current};_.current&&!oy(M.current,t)&&(M.current=t,l.flushSync(()=>{v(t)}))})},[h,t,n,O,D]);og(()=>{!1===f&&M.current.isPositioned&&(M.current.isPositioned=!1,v(e=>({...e,isPositioned:!1})))},[f]);let _=i.useRef(!1);og(()=>(_.current=!0,()=>{_.current=!1}),[]),og(()=>{if(E&&(R.current=E),S&&(k.current=S),E&&S){if(N.current)return N.current(E,S,P);P()}},[E,S,P,N,j]);let T=i.useMemo(()=>({reference:R,floating:k,setReference:x,setFloating:C}),[x,C]),L=i.useMemo(()=>({reference:E,floating:S}),[E,S]),z=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!L.floating)return e;let t=ow(L.floating,p.x),o=ow(L.floating,p.y);return c?{...e,transform:"translate("+t+"px, "+o+"px)",...ob(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:o}},[n,c,L.floating,p.x,p.y]);return i.useMemo(()=>({...p,update:P,refs:T,elements:L,floatingStyles:z}),[p,P,T,L,z])}({strategy:"fixed",placement:h+("center"!==g?"-"+g:""),whileElementsMounted:(...e)=>(function(e,t,n,o){void 0===o&&(o={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=o,c=ot(e),d=i||a?[...c?r9(c):[],...r9(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let f=c&&s?function(e,t){let n=null,o,i=r$(e);function a(){var e;clearTimeout(o),null==(e=n)||e.disconnect(),n=null}return function l(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),a();let c=e.getBoundingClientRect(),{left:d,top:f,width:p,height:v}=c;if(s||t(),!p||!v)return;let h=rp(f),m=rp(i.clientWidth-(d+p)),g={rootMargin:-h+"px "+-m+"px "+-rp(i.clientHeight-(f+v))+"px "+-rp(d)+"px",threshold:rd(0,rc(1,u))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==u){if(!y)return l();n?l(!1,n):o=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==n||oh(c,e.getBoundingClientRect())||l(),y=!1}try{n=new IntersectionObserver(b,{...g,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,g)}n.observe(e)}(!0),a}(c,n):null,p=-1,v=null;l&&(v=new ResizeObserver(e=>{let[o]=e;o&&o.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),c&&!u&&v.observe(c),v.observe(t));let h,m=u?oi(e):null;return u&&function t(){let o=oi(e);m&&!oh(m,o)&&n(),m=o,h=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=v)||e.disconnect(),v=null,u&&cancelAnimationFrame(h)}})(...e,{animationFrame:"always"===R}),elements:{reference:j.anchor},middleware:[((e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;let{x:i,y:a,placement:l,middlewareData:s}=t,u=await rI(t,e);return l===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:i+u.x,y:a+u.y,data:{...u,placement:l}}}}}(e),options:[e,t]}))({mainAxis:m+z,alignmentAxis:y}),w&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:o,placement:i}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=rg(e,t),c={x:n,y:o},d=await rT(t,u),f=rE(ry(i)),p=rw(f),v=c[p],h=c[f];
116if(a){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=v+d[e],o=v-d[t];v=rd(n,rc(v,o))}if(l){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=h+d[e],o=h-d[t];h=rd(n,rc(h,o))}let m=s.fn({...t,[p]:v,[f]:h});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[p]:a,[f]:l}}}}}}(e),options:[e,t]}))({mainAxis:!0,crossAxis:!1,limiter:"partial"===E?((e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:o,placement:i,rects:a,middlewareData:l}=t,{offset:s=0,mainAxis:u=!0,crossAxis:c=!0}=rg(e,t),d={x:n,y:o},f=rE(i),p=rw(f),v=d[p],h=d[f],m=rg(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(u){let e="y"===p?"height":"width",t=a.reference[p]-a.floating[e]+g.mainAxis,n=a.reference[p]+a.reference[e]-g.mainAxis;v<t?v=t:v>n&&(v=n)}if(c){var y,b;let e="y"===p?"width":"height",t=rA.has(ry(i)),n=a.reference[f]-a.floating[e]+(t&&(null==(y=l.offset)?void 0:y[f])||0)+(t?0:g.crossAxis),o=a.reference[f]+a.reference[e]+(t?0:(null==(b=l.offset)?void 0:b[f])||0)-(t?g.crossAxis:0);h<n?h=n:h>o&&(h=o)}return{[p]:v,[f]:h}}}}(e),options:[e,t]}))():void 0,...F}),w&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o,i,a,l;let{placement:s,middlewareData:u,rects:c,initialPlacement:d,platform:f,elements:p}=t,{mainAxis:v=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:b=!0,...w}=rg(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let x=ry(s),C=rE(d),E=ry(d)===d,S=await (null==f.isRTL?void 0:f.isRTL(p.floating)),R=m||(E||!b?[rN(d)]:function(e){let t=rN(e);return[rS(e),t,rS(t)]}(d)),k="none"!==y;
116!m&&k&&R.push(...function(e,t,n,o){let i=rb(e),a=function(e,t,n){switch(e){case"top":case"bottom":return n?t?rk:rR:t?rR:rk;case"left":case"right":return t?rM:rj;default:return[]}}(ry(e),"start"===n,o);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(rS)))),a}(d,b,y,S));let M=[d,...R],j=await rT(t,w),N=[],O=(null==(o=u.flip)?void 0:o.overflows)||[];if(v&&N.push(j[x]),h){let e=function(e,t,n){void 0===n&&(n=!1);let o=rb(e),i=rw(rE(e)),a=rx(i),l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[a]>t.floating[a]&&(l=rN(l)),[l,rN(l)]}(s,c,S);N.push(j[e[0]],j[e[1]])}if(O=[...O,{placement:s,overflows:N}],!N.every(e=>e<=0)){let e=((null==(i=u.flip)?void 0:i.index)||0)+1,t=M[e];if(t&&("alignment"!==h||C===rE(t)||O.every(e=>rE(e.placement)!==C||e.overflows[0]>0)))return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(a=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(g){case"bestFit":{let e=null==(l=O.filter(e=>{if(k){let t=rE(e.placement);return t===C||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=d}if(s!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}))({...F}),((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,o;let i,a,{placement:l,rects:s,platform:u,elements:c}=t,{apply:d=()=>{},...f}=rg(e,t),p=await rT(t,f),v=ry(l),h=rb(l),m="y"===rE(l),{width:g,height:y}=s.floating;"top"===v||"bottom"===v?(i=v,a=h===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(a=v,i="end"===h?"top":"bottom");let b=y-p.top-p.bottom,w=g-p.left-p.right,x=rc(y-p[i],b),C=rc(g-p[a],w),E=!t.middlewareData.shift,S=x,R=C;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(R=w),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(S=b),E&&!h){let e=rd(p.left,0),t=rd(p.right,0),n=rd(p.top,0),o=rd(p.bottom,0);m?R=g-2*(0!==e||0!==t?e+t:rd(p.left,p.right)):S=y-2*(0!==n||0!==o?n+o:rd(p.top,p.bottom))}await d({...t,availableWidth:R,availableHeight:S});let k=await u.getDimensions(c.floating);return g!==k.width||y!==k.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}))({...F,apply:({elements:e,rects:t,availableWidth:n,availableHeight:o})=>{let{width:i,height:a}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${o}px`),l.setProperty("--radix-popper-anchor-width",`${i}px`),l.setProperty("--radix-popper-anchor-height",`${a}px`)}}),P&&((e,t)=>({...(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:o}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?om({element:n.current,padding:o}).fn(t):{}:n?om({element:n,padding:o}).fn(t):{}}}))(e),options:[e,t]}))({element:P,padding:b}),oH({arrowWidth:L,arrowHeight:z}),S&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:o="referenceHidden",...i}=rg(e,t);switch(o){case"referenceHidden":{let e=rL(await rT(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:rz(e)}}}case"escaped":{let e=rL(await rT(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:rz(e)}}}default:return{}}}}}(e),options:[e,t]}))({strategy:"referenceHidden",...F})]}),[K,X]=oF(B),q=th(k);tl(()=>{V&&(null==q||q())},[V,q]);let G=null==(s=Y.arrow)?void 0:s.x,U=null==(u=Y.arrow)?void 0:u.y,Z=(null==(c=Y.arrow)?void 0:c.centerOffset)!==0,[J,Q]=i.useState();return tl(()=>{N&&Q(window.getComputedStyle(N).zIndex)},[N]),(0,a.jsx)("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:V?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[null==(d=Y.transformOrigin)?void 0:d.x,null==(f=Y.transformOrigin)?void 0:f.y].join(" "),...(null==(p=Y.hide)?void 0:p.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,a.jsx)(oP,{scope:v,placedSide:K,onArrowChange:_,arrowX:G,arrowY:U,shouldHideArrow:Z,children:(0,a.jsx)(tp.div,{"data-side":K,"data-align":X,...M,ref:D,style:{...M.style,animation:V?void 0:"none"}})})})});oT.displayName=oD;var oL="PopperArrow",oz={top:"bottom",right:"left",bottom:"top",left:"r
116ight"},oA=i.forwardRef(function(e,t){let{__scopePopper:n,...o}=e,i=o_(oL,n),l=oz[i.placedSide];return(0,a.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,a.jsx)(oC,{...o,ref:t,style:{...o.style,display:"block"}})})});function oI(e){return null!==e}oA.displayName=oL;var oH=e=>({name:"transformOrigin",options:e,fn(t){var n,o,i,a,l;let{placement:s,rects:u,middlewareData:c}=t,d=(null==(n=c.arrow)?void 0:n.centerOffset)!==0,f=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[v,h]=oF(s),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!=(i=null==(o=c.arrow)?void 0:o.x)?i:0)+f/2,y=(null!=(l=null==(a=c.arrow)?void 0:a.y)?l:0)+p/2,b="",w="";return"bottom"===v?(b=d?m:`${g}px`,w=`${-p}px`):"top"===v?(b=d?m:`${g}px`,w=`${u.floating.height+p}px`):"right"===v?(b=`${-p}px`,w=d?m:`${y}px`):"left"===v&&(b=`${u.floating.width+p}px`,w=d?m:`${y}px`),{data:{x:b,y:w}}}});function oF(e){let[t,n="center"]=e.split("-");return[t,n]}var oW="Popover",[o$]=ta(oW,[oR]),oB=oR(),[oV,oY]=o$(oW),oK=e=>{let{__scopePopover:t,children:n,open:o,defaultOpen:l,onOpenChange:s,modal:u=!1}=e,c=oB(t),d=i.useRef(null),[f,p]=i.useState(!1),[v,h]=tf({prop:o,defaultProp:null!=l&&l,onChange:s,caller:oW});return(0,a.jsx)(oj,{...c,children:(0,a.jsx)(oV,{scope:t,contentId:tc(),triggerRef:d,open:v,onOpenChange:h,onOpenToggle:i.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:f,onCustomAnchorAdd:i.useCallback(()=>p(!0),[]),onCustomAnchorRemove:i.useCallback(()=>p(!1),[]),modal:u,children:n})})};oK.displayName=oW;var oX="PopoverAnchor";i.forwardRef((e,t)=>{let{__scopePopover:n,...o}=e,l=oY(oX,n),s=oB(n),{onCustomAnchorAdd:u,onCustomAnchorRemove:c}=l;return i.useEffect(()=>(u(),()=>c()),[u,c]),(0,a.jsx)(oO,{...s,...o,ref:t})}).displayName=oX;var oq="PopoverTrigger",oG=i.forwardRef((e,t)=>{let{__scopePopover:n,...o}=e,i=oY(oq,n),l=oB(n),s=eA(t,i.triggerRef),u=(0,a.jsx)(tp.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":o3(i.open
116),...o,ref:s,onClick:ti(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?u:(0,a.jsx)(oO,{asChild:!0,...l,children:u})});oG.displayName=oq;var oU="PopoverPortal",[oZ,oJ]=o$(oU,{forceMount:void 0}),oQ=e=>{let{__scopePopover:t,forceMount:n,children:o,container:i}=e,l=oY(oU,t);return(0,a.jsx)(oZ,{scope:t,forceMount:n,children:(0,a.jsx)(tP,{present:n||l.open,children:(0,a.jsx)(tD,{asChild:!0,container:i,children:o})})})};oQ.displayName=oU;var o0="PopoverContent",o1=i.forwardRef((e,t)=>{let n=oJ(o0,e.__scopePopover),{forceMount:o=n.forceMount,...i}=e,l=oY(o0,e.__scopePopover);return(0,a.jsx)(tP,{present:o||l.open,children:l.modal?(0,a.jsx)(o5,{...i,ref:t}):(0,a.jsx)(o4,{...i,ref:t})})});o1.displayName=o0;var o2=eI("PopoverContent.RemoveScroll"),o5=i.forwardRef((e,t)=>{let n=oY(o0,e.__scopePopover),o=i.useRef(null),l=eA(t,o),s=i.useRef(!1);return i.useEffect(()=>{let e=o.current;if(e)return nb(e)},[]),(0,a.jsx)(nf,{as:o2,allowPinchZoom:!0,children:(0,a.jsx)(o8,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ti(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),s.current||null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:ti(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;s.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:ti(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),o4=i.forwardRef((e,t)=>{let n=oY(o0,e.__scopePopover),o=i.useRef(!1),l=i.useRef(!1);return(0,a.jsx)(o8,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;null==(i=e.onCloseAutoFocus)||i.call(e,t),t.defaultPrevented||(o.current||null==(a=n.triggerRef.current)||a.focus(),t.preventDefault()),o.current=!1,l.current=!1},onInteractOutside:t=>{var i,a;null==(i=e.onInteractOutside)||i.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(l.current=!0));let s=t.target;(null==(a=n.triggerRef.current)?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}})}),o8=i.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,...p}=e,v=oY(o0,n),h=oB(n);return tL(),(0,a.jsx)(tR,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:l,children:(0,a.jsx)(tb,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>v.onOpenChange(!1),children:(0,a.jsx)(oT,{"data-state":o3(v.open),role:"dialog",id:v.contentId,...h,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),o6="PopoverClose";function o3(e){return e?"open":"closed"}function o9({...e}){return(0,a.jsx)(oK,{"data-slot":"popover",...e})}function o7({...e}){return(0,a.jsx)(oG,{"data-slot":"popover-trigger",...e})}function ie({className:e,align:t="center",sideOffset:n=4,...o}){return(0,a.jsx)(oQ,{children:(0,a.jsx)(o1,{"data-slot":"popover-content",align:t,sideOffset:n,className:eO(`
117                      univer-outline-hidden univer-z-[1080] univer-max-h-[var(--radix-popper-available-height)]
118                      univer-overflow-y-auto univer-rounded-md univer-bg-white univer-text-gray-900 univer-shadow-md
119                      data-[state=open]:univer-animate-in data-[state=open]:univer-fade-in-0
120                      data-[state=open]:univer-zoom-in-95
121                      data-[state=closed]:univer-animate-out data-[state=closed]:univer-fade-out-0
122                      data-[state=closed]:univer-zoom-out-95
123                      data-[side=bottom]:univer-slide-in-from-top-2
124                      data-[side=left]:univer-slide-in-from-right-2
125                      data-[side=right]:univer-slide-in-from-left-2
126                      data-[side=top]:univer-slide-in-from-bottom-2
127                      dark:!univer-bg-gray-900 dark:!univer-text-white dark:focus-visible:!univer-border-gray-600
128                    `,e1,eQ,e),...o})})}function it(e){let{children:t,overlay:n,disabled:o,open:l,onOpenChange:s,...u}=e,[c,d]=(0,i.useState)(!1),f=void 0!==l;return(0,a.jsxs)(o9,{open:f?l:c,onOpenChange:function(e){o||(f||d(e),null==s||s(e))},children:[(0,a.jsx)(o7,{asChild:!0,children:t}),(0,a.jsx)(ie,{...u,children:n})]})}i.forwardRef((e,t)=>
128{let{__scopePopover:n,...o}=e,i=oY(o6,n);return(0,a.jsx)(tp.button,{type:"button",...o,ref:t,onClick:ti(e.onClick,()=>i.onOpenChange(!1))})}).displayName=o6,i.forwardRef((e,t)=>{let{__scopePopover:n,...o}=e,i=oB(n);return(0,a.jsx)(oA,{...i,...o,ref:t})}).displayName="PopoverArrow";var ir,io,ii={exports:{}},ia={},il={exports:{}};function is(){return io||(io=1,function(e){function t(e){return function(t,n,o,i,a,l,s){return e(t,n,s)}}function n(e){return function(t,n,o,i){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,o,i);var a=i.get(t),l=i.get(n);if(a&&l)return a===n&&l===t;i.set(t,n),i.set(n,t);var s=e(t,n,o,i);return i.delete(t),i.delete(n),s}}function o(e,t){var n={};for(var o in e)n[o]=e[o];for(var o in t)n[o]=t[o];return n}function i(e){return e.constructor===Object||null==e.constructor}function a(e){return"function"==typeof e.then}function l(e,t){return e===t||e!=e&&t!=t}var s=Object.prototype.toString;function u(e){var t=e.areArraysEqual,n=e.areDatesEqual,o=e.areMapsEqual,u=e.areObjectsEqual,c=e.areRegExpsEqual,d=e.areSetsEqual,f=(0,e.createIsNestedEqual)(p);function p(e,p,v){if(e===p)return!0;if(!e||!p||"object"!=typeof e||"object"!=typeof p)return e!=e&&p!=p;if(i(e)&&i(p))return u(e,p,f,v);var h=Array.isArray(e),m=Array.isArray(p);if(h||m)return h===m&&t(e,p,f,v);var g=s.call(e);return g===s.call(p)&&("[object Date]"===g?n(e,p,f,v):"[object RegExp]"===g?c(e,p,f,v):"[object Map]"===g?o(e,p,f,v):"[object Set]"===g?d(e,p,f,v):"[object Object]"===g||"[object Arguments]"===g?!(a(e)||a(p))&&u(e,p,f,v):("[object Boolean]"===g||"[object Number]"===g||"[object String]"===g)&&l(e.valueOf(),p.valueOf()))}return p}function c(e,t,n,o){var i=e.length;if(t.length!==i)return!1;for(;i-- >0;)if(!n(e[i],t[i],i,i,e,t,o))return!1;return!0}var d=n(c);function f(e,t){return l(e.valueOf(),t.valueOf())}function p(e,t,n,o){var i=e.size===t.size;if(!i)return!1;if(!e.size)return!0;var a={},l=0;return e.forEach(function(s,u){if(i){var c=!1,d=0;t.forEach(function(i,f){!c&&!a[d]&&(c=n(u,f,l,d,e,t,o)&&n(s,i,u,f,e,t,o))&&(a[d]=!0),d++}),l++,i=c}}),i}var v=n(p),h=Object.prototype.hasOwnProperty;function m(e,t,n,o){var i,a=Object.keys(e),l=a.length;if(Object.keys(t).length!==l)return!1;for(;l-- >0;){if("_owner"===(i=a[l])){var s=!!e.$$typeof,u=!!t.$$typeof;if((s||u)&&s!==u)return!1}if(!h.call(t,i)||!n(e[i],t[i],i,i,e,t,o))return!1}return!0}var g=n(m);function y(e,t){return e.source===t.source&&e.flags===t.flags}function b(e,t,n,o){var i=e.size===t.size;if(!i)return!1;if(!e.size)return!0;var a={};return e.forEach(function(l,s){if(i){var u=!1,c=0;t.forEach(function(i,d){!u&&!a[c]&&(u=n(l,i,s,d,e,t,o))&&(a[c]=!0),c++}),i=u}}),i}var w=n(b),x=Object.freeze({areArraysEqual:c,areDatesEqual:f,areMapsEqual:p,areObjectsEqual:m,areRegExpsEqual:y,areSetsEqual:b,createIsNestedEqual:t}),C=Object.freeze({areArraysEqual:d,areDatesEqual:f,areMapsEqual:v,areObjectsEqual:g,areRegExpsEqual:y,areSetsEqual:w,createIsNestedEqual:t}),E=u(x),S=u(o(x,{createIsNestedEqual:function(){return l}})),R=u(C),k=u(o(C,{createIsNestedEqual:function(){return l}}));e.circularDeepEqual=function(e,t){return R(e,t,new WeakMap)},e.circularShallowEqual=function(e,t){return k(e,t,new WeakMap)},e.createCustomCircularEqual=function(e){var t=u(o(C,e(C)));return function(e,n,o){return void 0===o&&(o=new WeakMap),t(e,n,o)}},e.createCustomEqual=function(e){return u(o(x,e(x)))},e.deepEqual=function(e,t){return E(e,t,void 0)},e.sameValueZeroEqual=l,e.shallowEqual=function(e,t){return S(e,t,void 0)},Object.defineProperty(e,"__esModule",{value:!0})}(il.exports)),il.exports}il.exports;var iu,ic={exports:{}};function id(){if(iu)return ic.exports;function e(){for(var e,t,n=0,o="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,o,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(n=0;n<a;n++)t[n]&&(o=e(t[n]))&&(i&&(i+=" "),i+=o)}else for(o in t)t[o]&&(i&&(i+=" "),i+=o);return i}(e))&&(o&&(o+=" "),o+=t);return o}return iu=1,ic.exports=e,ic.exports.clsx=e,ic.exports}var ip,iv,ih={};function im(){if(ig)return ih;ig=1,Object.defineProperty(ih,"__esModule",{value:!0}),ih.bottom=o,ih.childrenEqual=function(e,o){return(0,t.deepEqual)(n.default.Children.map(e,e=>null==e?void 0:e.key),n.default.Children.map(o,e=>null==e?void 0:e.key))&&(0,t.deepEqual)(n.default.Children.map(e,e=>null==e?void 0:e.props["data-grid"]),n.default.Children.map(o,e=>null==e?void 0:e.props["data-grid"]))},ih.cloneLayout=a,ih.cloneLayoutItem=s,ih.collides=u,ih.compact=c,ih.compactItem=p,ih.compactType=function(e){let{verticalCompact:t,compactType:n}=e||{};return!1===t?null:n},ih.correctBounds=v,ih.fastPositionEqual=function(e,t){return e.left===t.left&&e.top===t.top&&e.width===t.width&&e.height===t.height},ih.fastRGLPropsEqual=void 0,ih.getAllCollisions=g,ih.getFirstCollision=m,ih.getLayoutItem=h,ih.getStatics=y,ih.modifyLayout=l,ih.moveElement=b,ih.moveElementAwayFromCollision=w,ih.noop=void 0,ih.perc=function(e){return 100*e+"%"},ih.resizeItemInDirection=function(e,t,n,o){let i=N[e];return i?i(t,{...t,...n},o):n},ih.setTopLeft=function(e){let{top:t,left:n,width:o,height:i}=e;return{top:`${t}px`,left:`${n}px`,width:`${o}px`,height:`${i}px`,position:"absolute"}},ih.setTransform=function(e){let{top:t,left:n,width:o,height:i}=e,a=`translate(${n}px,${t}px)`;return{transform:a,WebkitTransform:a,MozTransform:a,msTransform:a,OTransform:a,width:`${o}px`,height:`${i}px`,position:"absolute"}},ih.sortLayoutItems=O,ih.sortLayoutItemsByColRow=P,ih.sortLayoutItemsByRowCol=D,ih.synchronizeLayoutWithChildren=function(e,t,i,a,l){e=e||[];let u=[];
128n.default.Children.forEach(t,t=>{if((null==t?void 0:t.key)==null)return;let n=h(e,String(t.key)),i=t.props["data-grid"];n&&null==i?u.push(s(n)):i?u.push(s({...i,i:t.key})):u.push(s({w:1,h:1,x:0,y:o(u),i:String(t.key)}))});let d=v(u,{cols:i});return l?d:c(d,a,i)},ih.validateLayout=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Layout",n=["x","y","w","h"];if(!Array.isArray(e))throw Error(t+" must be an array!");for(let o=0,i=e.length;o<i;o++){let i=e[o];for(let e=0;e<n.length;e++){let a=n[e],l=i[a];if("number"!=typeof l||Number.isNaN(l))throw Error(`ReactGridLayout: ${t}[${o}].${a} must be a number! Received: ${l} (${typeof l})`)}if("u">typeof i.i&&"string"!=typeof i.i)throw Error(`ReactGridLayout: ${t}[${o}].i must be a string! Received: ${i.i} (${typeof i.i})`)}},ih.withLayoutItem=function(e,t,n){let o=h(e,t);return o?[e=l(e,o=n(s(o))),o]:[e,null]};var e,t=is(),n=(e=i)&&e.__esModule?e:{default:e};function o(e){let t=0,n;for(let o=0,i=e.length;o<i;o++)(n=e[o].y+e[o].h)>t&&(t=n);return t}function a(e){let t=Array(e.length);for(let n=0,o=e.length;n<o;n++)t[n]=s(e[n]);return t}function l(e,t){let n=Array(e.length);for(let o=0,i=e.length;o<i;o++)t.i===e[o].i?n[o]=t:n[o]=e[o];return n}function s(e){return{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,moved:!!e.moved,static:!!e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,isBounded:e.isBounded}}function u(e,t){return!(e.i===t.i||e.x+e.w<=t.x||e.x>=t.x+t.w||e.y+e.h<=t.y||e.y>=t.y+t.h)}function c(e,t,n,o){let i=y(e),a=O(e,t),l=Array(e.length);for(let u=0,c=a.length;u<c;u++){let c=s(a[u]);c.static||(c=p(i,c,t,n,a,o),i.push(c)),l[e.indexOf(a[u])]=c,c.moved=!1}return l}iv||(iv=1,ip=function(e,t,n){return e===t||e.className===t.className&&n(e.style,t.style)&&e.width===t.width&&e.autoSize===t.autoSize&&e.cols===t.cols&&e.draggableCancel===t.draggableCancel&&e.draggableHandle===t.draggableHandle&&n(e.verticalCompact,t.verticalCompact)&&n(e.compactType,t.compactType)&&n(e.layout,t.layout)&&n(e.margin,t.margin)&&n(e.containerPadding,t.containerPadding)&&e.rowHeight===t.rowHeight&&e.maxRows===t.maxRows&&e.isBounded===t.isBounded&&e.isDraggable===t.isDraggable&&e.isResizable===t.isResizable&&e.allowOverlap===t.allowOverlap&&e.preventCollision===t.preventCollision&&e.useCSSTransforms===t.useCSSTransforms&&e.transformScale===t.transformScale&&e.isDroppable===t.isDroppable&&n(e.resizeHandles,t.resizeHandles)&&n(e.resizeHandle,t.resizeHandle)&&e.onLayoutChange===t.onLayoutChange&&e.onDragStart===t.onDragStart&&e.onDrag===t.onDrag&&e.onDragStop===t.onDragStop&&e.onResizeStart===t.onResizeStart&&e.onResize===t.onResize&&e.onResizeStop===t.onResizeStop&&e.onDrop===t.onDrop&&n(e.droppingItem,t.droppingItem)&&n(e.innerRef,t.innerRef)}),ih.fastRGLPropsEqual=ip;let d={x:"w",y:"h"};function f(e,t,n,o){let i=d[o];t[o]+=1;let a=e.map(e=>e.i).indexOf(t.i);for(let l=a+1;l<e.length;l++){let a=e[l];if(!a.static){if(a.y>t.y+t.h)break;u(t,a)&&f(e,a,n+t[i],o)}}t[o]=n}function p(e,t,n,i,a,l){let s,u="horizontal"===n;if("vertical"===n)for(t.y=Math.min(o(e),t.y);t.y>0&&!m(e,t);)t.y--;else if(u)for(;t.x>0&&!m(e,t);)t.x--;for(;(s=m(e,t))&&!(null===n&&l);)if(u?f(a,t,s.x+s.w,"x"):f(a,t,s.y+s.h,"y"),u&&t.x+t.w>i)for(t.x=i-t.w,t.y++;t.x>0&&!m(e,t);)t.x--;return t.y=Math.max(t.y,0),t.x=Math.max(t.x,0),t}function v(e,t){let n=y(e);for(let o=0,i=e.length;o<i;o++){let i=e[o];if(i.x+i.w>t.cols&&(i.x=t.cols-i.w),i.x<0&&(i.x=0,i.w=t.cols),i.static)for(;m(n,i);)i.y++;else n.push(i)}return e}function h(e,t){for(let n=0,o=e.length;n<o;n++)if(e[n].i===t)return e[n]}function m(e,t){for(let n=0,o=e.length;n<o;n++)if(u(e[n],t))return e[n]}function g(e,t){return e.filter(e=>u(e,t))}function y(e){return e.filter(e=>e.static)}function b(e,t,n,o,i,l,s,u,c){if(t.static&&!0!==t.isDraggable||t.y===o&&t.x===n)return e;t.i,String(n),String(o),t.x,t.y;let d=t.x,f=t.y;"number"==typeof n&&(t.x=n),"number"==typeof o&&(t.y=o),t.moved=!0;let p=O(e,s);("vertical"===s&&"number"==typeof o?f>=o:"horizontal"===s&&"number"==typeof n&&d>=n)&&(p=p.reverse());let v=g(p,t),h=v.length>0;if(h&&c)return a(e);if(h&&l)return t.i,t.x=d,t.y=f,t.moved=!1,e;for(let n=0,o=v.length;n<o;n++){let o=v[n];t.i,t.x,t.y,o.i,o.x,o.y,o.moved||(e=o.static?w(e,o,t,i,s):w(e,t,o,i,s))}return e}function w(e,t,n,o,i,a){let l="horizontal"===i,s="vertical"===i,u=t.static;if(o){o=!1;let a={x:l?Math.max(t.x-n.w,0):n.x,y:s?Math.max(t.y-n.h,0):n.y,w:n.w,h:n.h,i:"-1"},c=m(e,a),d=c&&c.y+c.h>t.y,f=c&&t.x+t.w>c.x;if(!c)return n.i,a.x,a.y,b(e,n,l?a.x:void 0,s?a.y:void 0,o,u,i);if(d&&s)return b(e,n,void 0,t.y+1,o,u,i);if(d&&null==i)return t.y=n.y,n.y=n.y+n.h,e;if(f&&l)return b(e,t,n.x,void 0,o,u,i)}let c=l?n.x+1:void 0,d=s?n.y+1:void 0;return null==c&&null==d?e:b(e,n,l?n.x+1:void 0,s?n.y+1:void 0,o,u,i)}let x=(e,t,n,o)=>e+n>o?t:n,C=(e,t,n)=>e<0?t:n,E=e=>Math.max(0,e),S=e=>Math.max(0,e),R=(e,t,n)=>{let{left:o,height:i,width:a}=t,l=e.top-(i-e.height);return{left:o,width:a,height:C(l,e.height,i),top:S(l)}}
128,k=(e,t,n)=>{let{top:o,left:i,height:a,width:l}=t;return{top:o,height:a,width:x(e.left,e.width,l,n),left:E(i)}},M=(e,t,n)=>{let{top:o,height:i,width:a}=t,l=e.left-(a-e.width);return{height:i,width:l<0?e.width:x(e.left,e.width,a,n),top:S(o),left:E(l)}},j=(e,t,n)=>{let{top:o,left:i,height:a,width:l}=t;return{width:l,left:i,height:C(o,e.height,a),top:S(o)}},N={n:R,ne:function(){return R(arguments.length<=0?void 0:arguments[0],k(...arguments))},e:k,se:function(){return j(arguments.length<=0?void 0:arguments[0],k(...arguments))},s:j,sw:function(){return j(arguments.length<=0?void 0:arguments[0],M(...arguments))},w:M,nw:function(){return R(arguments.length<=0?void 0:arguments[0],M(...arguments))}};function O(e,t){return"horizontal"===t?P(e):"vertical"===t?D(e):e}function D(e){return e.slice(0).sort(function(e,t){return e.y>t.y||e.y===t.y&&e.x>t.x?1:e.y===t.y&&e.x===t.x?0:-1})}function P(e){return e.slice(0).sort(function(e,t){return e.x>t.x||e.x===t.x&&e.y>t.y?1:-1})}return ih.noop=()=>{},ih}var ig,iy,ib={};function iw(){if(iy)return ib;function e(e){let{margin:t,containerPadding:n,containerWidth:o,cols:i}=e;return(o-t[0]*(i-1)-2*n[0])/i}function t(e,t,n){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*n):e}function n(e,t,n){return Math.max(Math.min(e,n),t)}return iy=1,Object.defineProperty(ib,"__esModule",{value:!0}),ib.calcGridColWidth=e,ib.calcGridItemPosition=function(n,o,i,a,l,s){let{margin:u,containerPadding:c,rowHeight:d}=n,f=e(n),p={};return s&&s.resizing?(p.width=Math.round(s.resizing.width),p.height=Math.round(s.resizing.height)):(p.width=t(a,f,u[0]),p.height=t(l,d,u[1])),s&&s.dragging?(p.top=Math.round(s.dragging.top),p.left=Math.round(s.dragging.left)):s&&s.resizing&&"number"==typeof s.resizing.top&&"number"==typeof s.resizing.left?(p.top=Math.round(s.resizing.top),p.left=Math.round(s.resizing.left)):(p.top=Math.round((d+u[1])*i+c[1]),p.left=Math.round((f+u[0])*o+c[0])),p},ib.calcGridItemWHPx=t,ib.calcWH=function(t,o,i,a,l,s){let{margin:u,maxRows:c,cols:d,rowHeight:f}=t,p=e(t),v=Math.round((o+u[0])/(p+u[0])),h=Math.round((i+u[1])/(f+u[1])),m=n(v,0,d-a),g=n(h,0,c-l);return -1!==["sw","w","nw"].indexOf(s)&&(m=n(v,0,d)),-1!==["nw","n","ne"].indexOf(s)&&(g=n(h,0,c)),{w:m,h:g}},ib.calcXY=function(t,o,i,a,l){let{margin:s,containerPadding:u,cols:c,rowHeight:d,maxRows:f}=t,p=e(t),v=Math.round((i-u[0])/(p+s[0])),h=Math.round((o-u[1])/(d+s[1]));return{x:v=n(v,0,c-a),y:h=n(h,0,f-l)}},ib.clamp=n,ib}var ix,iC,iE={},iS={exports:{}};function iR(){return iP||(iP=1,iS.exports=(function(){if(iD)return iO;iD=1;var e=iC?ix:(iC=1,ix="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,iO=function(){function o(t,n,o,i,a,l){if(l!==e){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return o}o.isRequired=o;var a={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:i,element:o,elementType:o,instanceOf:i,node:o,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a}})()()),iS.exports}var ik={exports:{}},iM={};function ij(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,o,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(o=e(t[n]))&&(i&&(i+=" "),i+=o);else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(o&&(o+=" "),o+=t);return o}let iN=eq(Object.freeze(Object.defineProperty({__proto__:null,clsx:ij,default:ij},Symbol.toStringTag,{value:"Module"})));var iO,iD,iP,i_,iT={},iL={};function iz(){return i_||(i_=1,Object.defineProperty(iL,"__esModule",{value:!0}),iL.dontSetMe=function(e,t,n){if(e[t])return Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},iL.findInArray=function(e,t){for(let n=0,o=e.length;n<o;n++)if(t.apply(t,[e[n],n,e]))return e[n]},iL.int=function(e){return parseInt(e,10)},iL.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},iL.isNum=function(e){return"number"==typeof e&&!isNaN(e)}),iL}var iA,iI={};function iH(){if(iF)return iT;
128iF=1,Object.defineProperty(iT,"__esModule",{value:!0}),iT.addClassName=l,iT.addEvent=function(e,t,n,o){if(!e)return;let i={capture:!0,...o};e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},iT.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
129`,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
130`,e.getElementsByTagName("head")[0].appendChild(t)),e.body&&l(e.body,"react-draggable-transparent-selection")},iT.createCSSTransform=function(e,n){let o=a(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:o}},iT.createSVGTransform=function(e,t){return a(e,t,"")},iT.getTouch=function(t,n){return t.targetTouches&&(0,e.findInArray)(t.targetTouches,e=>n===e.identifier)||t.changedTouches&&(0,e.findInArray)(t.changedTouches,e=>n===e.identifier)},iT.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},iT.getTranslation=a,iT.innerHeight=function(t){let n=t.clientHeight,o=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(o.paddingTop),n-=(0,e.int)(o.paddingBottom)},iT.innerWidth=function(t){let n=t.clientWidth,o=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(o.paddingLeft),n-=(0,e.int)(o.paddingRight)},iT.matchesSelector=i,iT.matchesSelectorAndParentsTo=function(e,t,n){let o=e;do{if(i(o,t))return!0;if(o===n)break;o=o.parentNode}while(o);return!1},iT.offsetXYFromParent=function(e,t,n){let o=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-o.left)/n,y:(e.clientY+t.scrollTop-o.top)/n}},iT.outerHeight=function(t){let n=t.clientHeight,o=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(o.borderTopWidth),n+=(0,e.int)(o.borderBottomWidth)},iT.outerWidth=function(t){let n=t.clientWidth,o=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(o.borderLeftWidth),n+=(0,e.int)(o.borderRightWidth)},iT.removeClassName=s,iT.removeEvent=function(e,t,n,o){if(!e)return;let i={capture:!0,...o};e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},iT.removeUserSelectStyles=function(e){if(e)try{if(e.body&&s(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{let t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch{}};var e=iz(),t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(void 0);if(o&&o.has(e))return o.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var s=a?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(i,l,s):i[l]=e[l]}return i.default=e,o&&o.set(e,i),i}(function(){if(iA)return iI;iA=1,Object.defineProperty(iI,"__esModule",{value:!0}),iI.browserPrefixToKey=n,iI.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},iI.default=void 0,iI.getPrefix=t;let e=["Moz","Webkit","O","ms"];function t(){var t;let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if(typeof window>"u")return"";let i=null==(t=window.document)||null==(t=t.documentElement)?void 0:t.style;if(!i||o in i)return"";for(let t=0;t<e.length;t++)if(n(o,e[t])in i)return e[t];return""}function n(e,t){return t?"".concat(t).concat(function(e){let t="",n=!0;for(let o=0;o<e.length;o++)n?(t+=e[o].toUpperCase(),n=!1):"-"===e[o]?n=!0:t+=e[o];return t}(e)):e}return iI.default=t(),iI}());function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}let o="";function i(t,n){return o||(o=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,e.isFunction)(t[n])})),!!(0,e.isFunction)(t[o])&&t[o](n)}function a(e,t,n){let{x:o,y:i}
130=e,a="translate(".concat(o).concat(n,",").concat(i).concat(n,")");if(t){let e="".concat("string"==typeof t.x?t.x:t.x+n),o="".concat("string"==typeof t.y?t.y:t.y+n);a="translate(".concat(e,", ").concat(o,")")+a}return a}function l(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function s(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}return iT}var iF,iW,i$={};function iB(){if(iW)return i$;iW=1,Object.defineProperty(i$,"__esModule",{value:!0}),i$.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},i$.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},i$.createCoreData=function(t,o,i){let a=!(0,e.isNum)(t.lastX),l=n(t);return a?{node:l,deltaX:0,deltaY:0,lastX:o,lastY:i,x:o,y:i}:{node:l,deltaX:o-t.lastX,deltaY:i-t.lastY,lastX:t.lastX,lastY:t.lastY,x:o,y:i}},i$.createDraggableData=function(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},i$.getBoundPosition=function(o,i,a){var l;if(!o.props.bounds)return[i,a];let{bounds:s}=o.props;s="string"==typeof s?s:{left:(l=s).left,top:l.top,right:l.right,bottom:l.bottom};let u=n(o);if("string"==typeof s){let n,{ownerDocument:o}=u,i=o.defaultView;if(!((n="parent"===s?u.parentNode:o.querySelector(s))instanceof i.HTMLElement))throw Error('Bounds selector "'+s+'" could not find an element.');let a=i.getComputedStyle(u),l=i.getComputedStyle(n);s={left:-u.offsetLeft+(0,e.int)(l.paddingLeft)+(0,e.int)(a.marginLeft),top:-u.offsetTop+(0,e.int)(l.paddingTop)+(0,e.int)(a.marginTop),right:(0,t.innerWidth)(n)-(0,t.outerWidth)(u)-u.offsetLeft+(0,e.int)(l.paddingRight)-(0,e.int)(a.marginRight),bottom:(0,t.innerHeight)(n)-(0,t.outerHeight)(u)-u.offsetTop+(0,e.int)(l.paddingBottom)-(0,e.int)(a.marginBottom)}}return(0,e.isNum)(s.right)&&(i=Math.min(i,s.right)),(0,e.isNum)(s.bottom)&&(a=Math.min(a,s.bottom)),(0,e.isNum)(s.left)&&(i=Math.max(i,s.left)),(0,e.isNum)(s.top)&&(a=Math.max(a,s.top)),[i,a]},i$.getControlPosition=function(e,o,i){let a="number"==typeof o?(0,t.getTouch)(e,o):null;if("number"==typeof o&&!a)return null;let l=n(i),s=i.props.offsetParent||l.offsetParent||l.ownerDocument.body;return(0,t.offsetXYFromParent)(a||e,s,i.props.scale)},i$.snapToGrid=function(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]};var e=iz(),t=iH();function n(e){let t=e.findDOMNode();if(!t)throw Error("<DraggableCore>: Unmounted during event!");return t}return i$}var iV,iY={},iK={};function iX(){return iV||(iV=1,Object.defineProperty(iK,"__esModule",{value:!0}),iK.default=function(){}),iK}function iq(){if(iZ)return ik.exports;iZ=1;let{default:e,DraggableCore:t}=(iU||(iU=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return d.default}}),e.default=void 0;var t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=v(void 0);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(i),n=p(iR()),o=p(l),a=p(iN),s=iH(),u=iB(),c=iz(),d=p(function(){if(iG)return iY;iG=1,Object.defineProperty(iY,"__esModule",{value:!0}),iY.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(void 0);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(i),t=c(iR()),n=c(l),o=iH(),a=iB(),s=iz(),u=c(iX());
130function c(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function f(e,t,n){var o;return(t="symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let p={start:"touchstart",move:"touchmove",stop:"touchend"},v={start:"mousedown",move:"mousemove",stop:"mouseup"},h=v,m=class extends e.Component{constructor(){super(...arguments),f(this,"dragging",!1),f(this,"lastX",NaN),f(this,"lastY",NaN),f(this,"touchIdentifier",null),f(this,"mounted",!1),f(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw Error("<DraggableCore> not mounted on DragStart!");let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,o.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,o.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"===e.type&&e.preventDefault();let i=(0,o.getTouchIdentifier)(e);this.touchIdentifier=i;let l=(0,a.getControlPosition)(e,i,this);if(null==l)return;let{x:s,y:c}=l,d=(0,a.createCoreData)(this,s,c);(0,u.default)("DraggableCore: handleDragStart: %j",d),(0,u.default)("calling",this.props.onStart),!1!==this.props.onStart(e,d)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,o.addUserSelectStyles)(n),this.dragging=!0,this.lastX=s,this.lastY=c,(0,o.addEvent)(n,h.move,this.handleDrag),(0,o.addEvent)(n,h.stop,this.handleDragStop))}),f(this,"handleDrag",e=>{let t=(0,a.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:o}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=o-this.lastY;
130if([e,t]=(0,a.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,o=this.lastY+t}let i=(0,a.createCoreData)(this,n,o);if((0,u.default)("DraggableCore: handleDrag: %j",i),!1===this.props.onDrag(e,i)||!1===this.mounted){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{let e=document.createEvent("MouseEvents");e.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(e)}return}this.lastX=n,this.lastY=o}),f(this,"handleDragStop",e=>{if(!this.dragging)return;let t=(0,a.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:i}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=i-this.lastY||0;[e,t]=(0,a.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,i=this.lastY+t}let l=(0,a.createCoreData)(this,n,i);if(!1===this.props.onStop(e,l)||!1===this.mounted)return!1;let s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,o.removeUserSelectStyles)(s.ownerDocument),(0,u.default)("DraggableCore: handleDragStop: %j",l),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,u.default)("DraggableCore: Removing handlers"),(0,o.removeEvent)(s.ownerDocument,h.move,this.handleDrag),(0,o.removeEvent)(s.ownerDocument,h.stop,this.handleDragStop))}),f(this,"onMouseDown",e=>(h=v,this.handleDragStart(e))),f(this,"onMouseUp",e=>(h=v,this.handleDragStop(e))),f(this,"onTouchStart",e=>(h=p,this.handleDragStart(e))),f(this,"onTouchEnd",e=>(h=p,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&(0,o.addEvent)(e,p.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;(0,o.removeEvent)(t,v.move,this.handleDrag),(0,o.removeEvent)(t,p.move,this.handleDrag),(0,o.removeEvent)(t,v.stop,this.handleDragStop),(0,o.removeEvent)(t,p.stop,this.handleDragStop),(0,o.removeEvent)(e,p.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,o.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!=(e=this.props)&&e.nodeRef?null==(t=this.props)||null==(t=t.nodeRef)?void 0:t.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return iY.default=m,f(m,"displayName","DraggableCore"),f(m,"propTypes",{allowAnyClick:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),f(m,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),iY}()),f=p(iX());function p(e){return e&&e.__esModule?e:{default:e}}function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function m(e,t,n){var o;return(t="symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class g extends t.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:o}=t;return n&&(!o||n.x!==o.x||n.y!==o.y)?((0,f.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:o}),{x:n.x,y:n.y,prevPropsPosition:{...n}}):null}constructor(e){super(e),m(this,"onDragStart",(e,t)=>{if((0,f.default)("Draggable: onDragStart: %j",t),!1===this.props.onStart(e,(0,u.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})}),m(this,"onDrag",(e,t)=>{if(!this.state.dragging)return!1;(0,f.default)("Draggable: onDrag: %j",t);let n=(0,u.createDraggableData)(this,t),o={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){let{x:e,y:t}=o;o.x+=this.state.slackX,o.y+=this.state.slackY;let[i,a]=(0,u.getBoundPosition)(this,o.x,o.y);o.x=i,o.y=a,o.slackX=this.state.slackX+(e-o.x),o.slackY=this.state.slackY+(t-o.y),n.x=o.x,n.y=o.y,n.deltaX=o.x-this.state.x,n.deltaY=o.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(o)}),m(this,"onDragStop",(e,t)=>{if(!this.state.dragging||!1===this.props.onStop(e,(0,u.createDraggableData)(this,t)))return!1;(0,f.default)("Draggable: onDragStop: %j",t);let n={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)}),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){"u">typeof window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var e,t;return null!=(e=null==(t=this.props)||null==(t=t.nodeRef)?void 0:t.current)?e:o.default.findDOMNode(this)}render(){let{axis:e,bounds:n,children:o,defaultPosition:i,defaultClassName:l,defaultClassNameDragging:c,defaultClassNameDragged:f,position:p,positionOffset:v,scale:m,...g}=this.props,y={},b=null,w=!p||this.state.dragging,x=p||i,C={x:(0,u.canDragX)(this)&&w?this.state.x:x.x,y:(0,u.canDragY)(this)&&w?this.state.y:x.y};this.state.isElementSVG?b=(0,s.createSVGTransform)(C,v):y=(0,s.createCSSTransform)(C,v);let E=(0,a.default)(o.props.className||"",l,{[c]:this.state.dragging,[f]:this.state.dragged});return t.createElement(d.default,h({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(o),{className:E,style:{...o.props.style,...y},transform:b}))}}e.default=g,m(g,"displayName","Draggable"),m(g,"propTypes",{...d.default.propT
130ypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),m(g,"defaultProps",{...d.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(iM)),iM);return ik.exports=e,ik.exports.default=e,ik.exports.DraggableCore=t,ik.exports}var iG,iU,iZ,iJ,iQ,i0={exports:{}},i1={},i2={},i5={};function i4(){if(iQ)return i5;iQ=1,i5.__esModule=!0,i5.resizableProps=void 0;var e,t=(e=iR())&&e.__esModule?e:{default:e};return iq(),i5.resizableProps={axis:t.default.oneOf(["both","x","y","none"]),className:t.default.string,children:t.default.element.isRequired,draggableOpts:t.default.shape({allowAnyClick:t.default.bool,cancel:t.default.string,children:t.default.node,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:t.default.node,grid:t.default.arrayOf(t.default.number),handle:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number}),height:function(){for(var e,n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o[0];return"both"===a.axis||"y"===a.axis?(e=t.default.number).isRequired.apply(e,o):t.default.number.apply(t.default,o)},handle:t.default.oneOfType([t.default.node,t.default.func]),handleSize:t.default.arrayOf(t.default.number),lockAspectRatio:t.default.bool,maxConstraints:t.default.arrayOf(t.default.number),minConstraints:t.default.arrayOf(t.default.number),onResizeStop:t.default.func,onResizeStart:t.default.func,onResize:t.default.func,resizeHandles:t.default.arrayOf(t.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:t.default.number,width:function(){for(var e,n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o[0];return"both"===a.axis||"x"===a.axis?(e=t.default.number).isRequired.apply(e,o):t.default.number.apply(t.default,o)}},i5}function i8(){if(i6)return i1;i6=1,i1.__esModule=!0,i1.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(void 0);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(i),t=iq(),n=function(){if(iJ)return i2;iJ=1,i2.__esModule=!0,i2.cloneElement=function(e,n){return n.style&&e.props.style&&(n.style=o(o({},e.props.style),n.style)),n.className&&e.props.className&&(n.className=e.props.className+" "+n.className),t.default.cloneElement(e,n)};var e,t=(e=i)&&e.__esModule?e:{default:e};function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function o(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?n(Object(o),!0).forEach(function(t){var n,i,a;n=e,i=t,a=o[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEac
130h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}return i2}(),o=i4(),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){var o,i,a;o=e,i=t,a=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var f=function(o){function i(){for(var e,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=o.call.apply(o,[this].concat(n))||this).handleRefs={},e.lastHandleRect=null,e.slack=null,e}i.prototype=Object.create(o.prototype),i.prototype.constructor=i,d(i,o);var l=i.prototype;return l.componentWillUnmount=function(){this.resetData()},l.resetData=function(){this.lastHandleRect=this.slack=null},l.runConstraints=function(e,t){var n=this.props,o=n.minConstraints,i=n.maxConstraints,a=n.lockAspectRatio;if(!o&&!i&&!a)return[e,t];if(a){var l=this.props.width/this.props.height;Math.abs(e-this.props.width)>Math.abs((t-this.props.height)*l)?t=e/l:e=t*l}var s=e,u=t,c=this.slack||[0,0],d=c[0],f=c[1];return e+=d,t+=f,o&&(e=Math.max(o[0],e),t=Math.max(o[1],t)),i&&(e=Math.min(i[0],e),t=Math.min(i[1],t)),this.slack=[d+(s-e),f+(u-t)],[e,t]},l.resizeHandler=function(e,t){var n=this;return function(o,i){var a=i.node,l=i.deltaX,s=i.deltaY;"onResizeStart"===e&&n.resetData();var u=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==t&&"s"!==t,c=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==t&&"w"!==t;if(!(!u&&!c)){var d=t[0],f=t[t.length-1],p=a.getBoundingClientRect();null!=n.lastHandleRect&&("w"===f&&(l+=p.left-n.lastHandleRect.left),"n"===d&&(s+=p.top-n.lastHandleRect.top)),n.lastHandleRect=p,"w"===f&&(l=-l),"n"===d&&(s=-s);var v=n.props.width+(u?l/n.props.transformScale:0),h=n.props.height+(c?s/n.props.transformScale:0),m=n.runConstraints(v,h);v=m[0],h=m[1];var g=v!==n.props.width||h!==n.props.height,y="function"==typeof n.props[e]?n.props[e]:null;y&&!("onResize"===e&&!g)&&(null==o.persist||o.persist(),y(o,{node:a,size:{width:v,height:h},handle:t})),"onResizeStop"===e&&n.resetData()}}},l.renderResizeHandle=function(t,n){var o=this.props.handle;if(!o)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t,ref:n});if("function"==typeof o)return o(t,n);var i=c({ref:n},"string"==typeof o.type?{}:{handleAxis:t});return e.cloneElement(o,i)},l.render=function(){var o=this,i=this.props,l=i.children,u=i.className,d=i.draggableOpts;i.width,i.height,i.handle,i.handleSize,i.lockAspectRatio,i.axis,i.minConstraints,i.maxConstraints,i.onResize,i.onResizeStop,i.onResizeStart;var f=i.resizeHandles;i.transformScale;var p=function(e,t){if(null==e)return{};var n,o,i={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}(i,a);return(0,n.cloneElement)(l,c(c({},p),{},{className:(u?u+" ":"")+"react-resizable",children:[].concat(l.props.children,f.map(function(n){var i,a=null!=(i=o.handleRefs[n])?i:o.handleRefs[n]=e.createRef();return e.createElement(t.DraggableCore,s({},d,{nodeRef:a,key:"resizableHandle-"+n,onStop:o.resizeHandler("onResizeStop",n),onStart:
130o.resizeHandler("onResizeStart",n),onDrag:o.resizeHandler("onResize",n)}),o.renderResizeHandle(n,a))}))}))},i}(e.Component);return i1.default=f,f.propTypes=o.resizableProps,f.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},i1}var i6,i3,i9,i7,ae={},at={};function an(){if(i7)return at;i7=1,Object.defineProperty(at,"__esModule",{value:!0}),at.resizeHandleType=at.resizeHandleAxesType=at.default=void 0;var e=n(iR()),t=n(i);function n(e){return e&&e.__esModule?e:{default:e}}let o=at.resizeHandleAxesType=e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),a=at.resizeHandleType=e.default.oneOfType([e.default.node,e.default.func]);return at.default={className:e.default.string,style:e.default.object,width:e.default.number,autoSize:e.default.bool,cols:e.default.number,draggableCancel:e.default.string,draggableHandle:e.default.string,verticalCompact:function(e){e.verticalCompact},compactType:e.default.oneOf(["vertical","horizontal"]),layout:function(e){var t=e.layout;void 0!==t&&im().validateLayout(t,"layout")},margin:e.default.arrayOf(e.default.number),containerPadding:e.default.arrayOf(e.default.number),rowHeight:e.default.number,maxRows:e.default.number,isBounded:e.default.bool,isDraggable:e.default.bool,isResizable:e.default.bool,allowOverlap:e.default.bool,preventCollision:e.default.bool,useCSSTransforms:e.default.bool,transformScale:e.default.number,isDroppable:e.default.bool,resizeHandles:o,resizeHandle:a,onLayoutChange:e.default.func,onDragStart:e.default.func,onDrag:e.default.func,onDragStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,onResizeStop:e.default.func,onDrop:e.default.func,droppingItem:e.default.shape({i:e.default.string.isRequired,w:e.default.number.isRequired,h:e.default.number.isRequired}),children:function(e,n){let o=e[n],i={};t.default.Children.forEach(o,function(e){if((null==e?void 0:e.key)!=null){if(i[e.key])throw Error('Duplicate child key "'+e.key+'" found! This will cause problems in ReactGridLayout.');i[e.key]=!0}})},innerRef:e.default.any},at}function ar(){if(ai)return ia;ai=1,Object.defineProperty(ia,"__esModule",{value:!0}),ia.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(void 0);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(i),t=is(),n=c(id()),o=im(),a=iw(),s=c(function(){if(ao)return iE;ao=1,Object.defineProperty(iE,"__esModule",{value:!0}),iE.default=void 0;var e=d(i),t=d(iR()),n=iq(),o=(i9||(i9=1,i0.exports=function(){throw Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},i0.exports.Resizable=i8().default,i0.exports.ResizableBox=function(){if(i3)return ae;i3=1,ae.__esModule=!0,ae.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(void 0);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(i),t=l(iR()),n=l(i8()),o=i4(),a=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function l(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
130t%2?c(Object(n),!0).forEach(function(t){var o,i,a;o=e,i=t,a=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var p=function(t){function o(){for(var e,n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))||this).state={width:e.props.width,height:e.props.height,propsWidth:e.props.width,propsHeight:e.props.height},e.onResize=function(t,n){var o=n.size;e.props.onResize?(null==t.persist||t.persist(),e.setState(o,function(){return e.props.onResize&&e.props.onResize(t,n)})):e.setState(o)},e}return o.prototype=Object.create(t.prototype),o.prototype.constructor=o,f(o,t),o.getDerivedStateFromProps=function(e,t){return t.propsWidth!==e.width||t.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null},o.prototype.render=function(){var t=this.props,o=t.handle,i=t.handleSize;t.onResize;var l=t.onResizeStart,s=t.onResizeStop,c=t.draggableOpts,f=t.minConstraints,p=t.maxConstraints,v=t.lockAspectRatio,h=t.axis;t.width,t.height;var m=t.resizeHandles,g=t.style,y=t.transformScale,b=function(e,t){if(null==e)return{};var n,o,i={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,a);return e.createElement(n.default,{axis:h,draggableOpts:c,handle:o,handleSize:i,height:this.state.height,lockAspectRatio:v,maxConstraints:p,minConstraints:f,onResizeStart:l,onResize:this.onResize,onResizeStop:s,resizeHandles:m,transformScale:y,width:this.state.width},e.createElement("div",u({},b,{style:d(d({},g),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},o}(e.Component);return ae.default=p,p.propTypes=d(d({},o.resizableProps),{},{children:t.default.element}),ae}().default),i0.exports),a=im(),s=iw(),u=an(),c=d(id());function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){var o;return(t="symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let p=class extends e.default.Component{constructor(){super(...arguments),f(this,"state",{resizing:null,dragging:null,className:""}),f(this,"elementRef",e.default.createRef()),f(this,"onDragStart",(e,t)=>{let{node:n}=t,{onDragStart:o,transformScale:i}=this.props;if(!o)return;let a={top:0,left:0},{offsetParent:l}=n;if(!l)return;let u=l.getBoundingClientRect(),c=n.getBoundingClientRect(),d=c.left/i,f=u.left/i,p=c.top/i,v=u.top/i;a.left=d-f+l.scrollLeft,a.top=p-v+l.scrollTop,this.setState({dragging:a});let{x:h,y:m}=(0,s.calcXY)(this.getPositionParams(),a.top,a.left,this.props.w,this.props.h);return o.call(this,this.props.i,h,m,{e:e,node:n,newPosition:a})}),f(this,"onDrag",(e,t,n)=>{let{node:o,deltaX:i,deltaY:a}=t,{onDrag:u}=this.props;if(!u)return;if(!this.state.dragging)throw Error("onDrag called before onDragStart.");let c=this.state.dragging.top+a,d=this.state.dragging.left+i,{isBounded:f,i:p,w:v,h:h,containerWidth:m}=this.props,g=this.getPositionParams();if(f){let{offsetParent:e}=o;if(e){let{margin:t,rowHeight:n,containerPadding:o}=this.props,i=e.clientHeight-(0,s.calcGridItemWHPx)(h,n,t[1]);c=(0,s.clamp)(c-o[1],0,i);let a=(0,s.calcGridColWidth)(g),l=m-(0,s.calcGridItemWHPx)(v,a,t[0]);d=(0,s.clamp)(d-o[0],0,l)}}let y={top:c,left:d};n?this.setState({dragging:y}):(0,l.flushSync)(()=>{this.setState({dragging:y})});let{x:b,y:w}=(0,s.calcXY)(g,c,d,v,h);return u.call(this,p,b,w,{e:e,node:o,newPosition:y})}),f(this,"onDragStop",(e,t)=>{let{node:n}=t,{onDragStop:o}=this.props;if(!o)return;if(!this.state.dragging)throw Error("onDragEnd called before onDragStart.");let{w:i,h:a,i:l}=this.props,{left:u,top:c}=this.state.dragging;this.setState({dragging:null});let{x:d,y:f}=(0,s.calcXY)(this.getPositionParams(),c,u,i,a);return o.call(this,l,d,f,{e:e,node:n,newPosition:{top:c,left:u}})}),f(this,"onResizeStop",(e,t,n)=>this.onResizeHandler(e,t,n,"onResizeStop")),f(this,"onResizeStart",(e,t,n)=>this.onResizeHandler(e,t,n,"onResizeStart")),f(this,"onResize",(e,t,n)=>this.onResizeHandler(e,t,n,"onResize"))}shouldComponentUpdate(e,t){if(this.props.children!==e.children||this.props.droppingPosition!==e.droppingPosition)return!0;let n=(0,s.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),o=(0,s.calcGridItemPosition)(this.getPositionParams(e),e.x,e.y,e.w,e.h,t);return!(0,a.fastPositionEqual)(n,o)||this.props.useCSSTransforms!==e.useCSSTransforms}componentDidMount(){this.moveDroppingItem({})}componentDidUpdate(e){this.moveDroppingItem(e)}moveDroppingItem(e){let{droppingPosition:t}=this.props;if(!t)return;let n=this.elementRef.current;if(!n)return;let o=e.droppingPosition||{left:0,top:0},{dragging:i}=this.state,a=i&&t.left!==o.left||t.top!==o.top;if(i){if(a){let e=t.left-i.left,o=t.top-i.top;this.onDrag(t.e,{node:n,deltaX:e,deltaY:o},!0)}}else this.onDragStart(t.e,{node:n,deltaX:t.left,deltaY:t.top})}getPositionParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return{cols:e.cols,containerPadding:e.containerPadding,containerWidth:e.containerWidth,margin:e.margin,maxRows:e.maxR
130ows,rowHeight:e.rowHeight}}createStyle(e){let t,{usePercentages:n,containerWidth:o,useCSSTransforms:i}=this.props;return i?t=(0,a.setTransform)(e):(t=(0,a.setTopLeft)(e),n&&(t.left=(0,a.perc)(e.left/o),t.width=(0,a.perc)(e.width/o))),t}mixinDraggable(t,o){return e.default.createElement(n.DraggableCore,{disabled:!o,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},t)}curryResizeHandler(e,t){return(n,o)=>t(n,o,e)}mixinResizable(t,n,i){let{cols:a,minW:l,minH:u,maxW:c,maxH:d,transformScale:f,resizeHandles:p,resizeHandle:v}=this.props,h=this.getPositionParams(),m=(0,s.calcGridItemPosition)(h,0,0,a,0).width,g=(0,s.calcGridItemPosition)(h,0,0,l,u),y=(0,s.calcGridItemPosition)(h,0,0,c,d),b=[g.width,g.height],w=[Math.min(y.width,m),Math.min(y.height,1/0)];return e.default.createElement(o.Resizable,{draggableOpts:{disabled:!i},className:i?void 0:"react-resizable-hide",width:n.width,height:n.height,minConstraints:b,maxConstraints:w,onResizeStop:this.curryResizeHandler(n,this.onResizeStop),onResizeStart:this.curryResizeHandler(n,this.onResizeStart),onResize:this.curryResizeHandler(n,this.onResize),transformScale:f,resizeHandles:p,handle:v},t)}onResizeHandler(e,t,n,o){let{node:i,size:u,handle:c}=t,d=this.props[o];if(!d)return;let{x:f,y:p,i:v,maxH:h,minH:m,containerWidth:g}=this.props,{minW:y,maxW:b}=this.props,w=u;i&&(w=(0,a.resizeItemInDirection)(c,n,u,g),(0,l.flushSync)(()=>{this.setState({resizing:"onResizeStop"===o?null:w})}));let{w:x,h:C}=(0,s.calcWH)(this.getPositionParams(),w.width,w.height,f,p,c);x=(0,s.clamp)(x,Math.max(y,1),b),C=(0,s.clamp)(C,m,h),d.call(this,v,x,C,{e:e,node:i,size:w,handle:c})}render(){let{x:t,y:n,w:o,h:i,isDraggable:a,isResizable:l,droppingPosition:u,useCSSTransforms:d}=this.props,f=(0,s.calcGridItemPosition)(this.getPositionParams(),t,n,o,i,this.state),p=e.default.Children.only(this.props.children),v=e.default.cloneElement(p,{ref:this.elementRef,className:(0,c.default)("react-grid-item",p.props.className,this.props.className,{static:this.props.static,resizing:!!this.state.resizing,"react-draggable":a,"react-draggable-dragging":!!this.state.dragging,dropping:!!u,cssTransforms:d}),style:{...this.props.style,...p.props.style,...this.createStyle(f)}});return v=this.mixinResizable(v,f,l),v=this.mixinDraggable(v,a)}};return iE.default=p,f(p,"propTypes",{children:t.default.element,cols:t.default.number.isRequired,containerWidth:t.default.number.isRequired,rowHeight:t.default.number.isRequired,margin:t.default.array.isRequired,maxRows:t.default.number.isRequired,containerPadding:t.default.array.isRequired,x:t.default.number.isRequired,y:t.default.number.isRequired,w:t.default.number.isRequired,h:t.default.number.isRequired,minW:function(e,t){let n=e[t];return"number"!=typeof n?Error("minWidth not Number"):n>e.w||n>e.maxW?Error("minWidth larger than item width/maxWidth"):void 0},maxW:function(e,t){let n=e[t];return"number"!=typeof n?Error("maxWidth not Number"):n<e.w||n<e.minW?Error("maxWidth smaller than item width/minWidth"):void 0},minH:function(e,t){let n=e[t];return"number"!=typeof n?Error("minHeight not Number"):n>e.h||n>e.maxH?Error("minHeight larger than item height/maxHeight"):void 0},maxH:function(e,t){let n=e[t];return"number"!=typeof n?Error("maxHeight not Number"):n<e.h||n<e.minH?Error("maxHeight smaller than item height/minHeight"):void 0},i:t.default.string.isRequired,resizeHandles:u.resizeHandleAxesType,resizeHandle:u.resizeHandleType,onDragStop:t.default.func,onDragStart:t.default.func,onDrag:t.default.func,onResizeStop:t.default.func,onResizeStart:t.default.func,onResize:t.default.func,isDraggable:t.default.bool.isRequired,isResizable:t.default.bool.isRequired,isBounded:t.default.bool.isRequired,static:t.default.bool,useCSSTransforms:t.default.bool.isRequired,transformScale:t.default.number,className:t.default.string,handle:t.default.string,cancel:t.default.string,droppingPosition:t.default.shape({e:t.default.object.isRequired,left:t.default.number.isRequired,top:t.default.number.isRequired})}),f(p,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1}),iE}()),u=c(an());
130function c(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function f(e,t,n){var o;return(t="symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let p="react-grid-layout",v=!1;try{v=/firefox/i.test(navigator.userAgent)}catch{}class h extends e.Component{constructor(){super(...arguments),f(this,"state",{activeDrag:null,layout:(0,o.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,(0,o.compactType)(this.props),this.props.allowOverlap),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,resizing:!1,droppingDOMNode:null,children:[]}),f(this,"dragEnterCounter",0),f(this,"onDragStart",(e,t,n,i)=>{let{e:a,node:l}=i,{layout:s}=this.state,u=(0,o.getLayoutItem)(s,e);if(!u)return;let c={w:u.w,h:u.h,x:u.x,y:u.y,placeholder:!0,i:e};return this.setState({oldDragItem:(0,o.cloneLayoutItem)(u),oldLayout:s,activeDrag:c}),this.props.onDragStart(s,u,u,null,a,l)}),f(this,"onDrag",(e,t,n,i)=>{let{e:a,node:l}=i,{oldDragItem:s}=this.state,{layout:u}=this.state,{cols:c,allowOverlap:d,preventCollision:f}=this.props,p=(0,o.getLayoutItem)(u,e);if(!p)return;let v={w:p.w,h:p.h,x:p.x,y:p.y,placeholder:!0,i:e};u=(0,o.moveElement)(u,p,t,n,!0,f,(0,o.compactType)(this.props),c,d),this.props.onDrag(u,s,p,v,a,l),this.setState({layout:d?u:(0,o.compact)(u,(0,o.compactType)(this.props),c),activeDrag:v})}),f(this,"onDragStop",(e,t,n,i)=>{let{e:a,node:l}=i;if(!this.state.activeDrag)return;let{oldDragItem:s}=this.state,{layout:u}=this.state,{cols:c,preventCollision:d,allowOverlap:f}=this.props,p=(0,o.getLayoutItem)(u,e);if(!p)return;u=(0,o.moveElement)(u,p,t,n,!0,d,(0,o.compactType)(this.props),c,f);let v=f?u:(0,o.compact)(u,(0,o.compactType)(this.props),c);this.props.onDragStop(v,s,p,null,a,l);let{oldLayout:h}=this.state;this.setState({activeDrag:null,layout:v,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(v,h)}),f(this,"onResizeStart",(e,t,n,i)=>{let{e:a,node:l}=i,{layout:s}=this.state,u=(0,o.getLayoutItem)(s,e);u&&(this.setState({oldResizeItem:(0,o.cloneLayoutItem)(u),oldLayout:this.state.layout,resizing:!0}),this.props.onResizeStart(s,u,u,null,a,l))}),f(this,"onResize",(e,t,n,i)=>{let{e:a,node:l,size:s,handle:u}=i,{oldResizeItem:c}=this.state,{layout:d}=this.state,{cols:f,preventCollision:p,allowOverlap:v}=this.props,h=!1,m,g,y,[b,w]=(0,o.withLayoutItem)(d,e,e=>(g=e.x,y=e.y,-1!==["sw","w","nw","n","ne"].indexOf(u)&&(-1!==["sw","nw","w"].indexOf(u)&&(g=e.x+(e.w-t),t=e.x!==g&&g<0?e.w:t,g=g<0?0:g),-1!==["ne","n","nw"].indexOf(u)&&(y=e.y+(e.h-n),n=e.y!==y&&y<0?e.h:n,y=y<0?0:y),h=!0),p&&!v&&(0,o.getAllCollisions)(d,{...e,w:t,h:n,x:g,y:y}).filter(t=>t.i!==e.i).length>0&&(y=e.y,n=e.h,g=e.x,t=e.w,h=!1),e.w=t,e.h=n,e));if(!w)return;m=b,h&&(m=(0,o.moveElement)(b,w,g,y,!0,this.props.preventCollision,(0,o.compactType)(this.props),f,v));let x={w:w.w,h:w.h,x:w.x,y:w.y,static:!0,i:e};this.props.onResize(m,c,w,x,a,l),this.setState({layout:v?m:(0,o.compact)(m,(0,o.compactType)(this.props),f),activeDrag:x})}),f(this,"onResizeStop",(e,t,n,i)=>{let{e:a,node:l}=i,{layout:s,oldResizeItem:u}=this.state,{cols:c,allowOverlap:d}=this.props,f=(0,o.getLayoutItem)(s,e),p=d?s:(0,o.compact)(s,(0,o.compactType)(this.props),c);this.props.onResizeStop(p,u,f,null,a,l);let{oldLayout:v}=this.state;this.setState({activeDrag:null,layout:p,oldResizeItem:null,oldLayout:null,resizing:!1}),this.onLayoutMaybeChanged(p,v)}),f(this,"onDragOver",t=>{var n;if(t.preventDefault(),t.stopPropagation(),v&&!(null!=(n=t.nativeEvent.target)&&n.classList.contains(p)))return!1;let{droppingItem:o,onDropDragOver:i,margin:l,cols:s,rowHeight:u,maxRows:c,width:d,containerPadding:f,transformScale:h}=this.props,m=null==i?void 0:i(t);if(!1===m)return this.state.droppingDOMNode&&this.removeDroppingPlaceholder(),!1;let g={...o,...m},{layout:y}=this.state,b=t.currentTarget.getBoundingClientRect(),w=t.clientX-b.left,x=t.clientY-b.top,C={left:w/h,top:x/h,e:t};if(this.state.droppingDOMNode){if(this.state.droppingPosition){let{left:e,top:t}=this.state.droppingPosition;(e!=w||t!=x)&&this.setState({droppingPosition:C})}}else{let t=(0,a.calcXY)({cols:s,margin:l,maxRows:c,rowHeight:u,containerWidth:d,containerPadding:f||l},x,w,g.w,g.h);this.setState({droppingDOMNode:e.createElement("div",{key:g.i}),droppingPosition:C,layout:[...y,{...g,x:t.x,y:t.y,static:!1,isDraggable:!0}]})}}),f(this,"removeDroppingPlaceholder",()=>{let{droppingItem:e,cols:t}=this.props,{layout:n}=this.state,i=(0,o.compact)(n.filter(t=>t.i!==e.i),(0,o.compactType)(this.props),t,this.props.allowOverlap);this.setState({layout:i,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),f(this,"onDragLeave",e=>{e.preventDefault(),e.stopPropagation(),this.dragEnterCounter--,0===this.dragEnterCounter&&this.removeDroppingPlaceholder()}),f(this,"onDragEnter",e=>{e.preventDefault(),e.stopPropagation(),this.dragEnterCounter++}),f(this,"onDrop",e=>{e.preventDefault(),e.stopPropagation();let{droppingItem:t}=this.props,{layout:n}=this.state,o=n.find(e=>e.i===t.i);this.dragEnterCounter=0,this.removeDroppingPlaceholder(),this.props.onDrop(n,o,e)})}componentDidMount(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}static getDerivedStateFromProps(e,n){let i;return n.activeDrag?null:((0,t.deepEqual)(e.layout,n.propsLayout)&&e.compactType===n.compactType?(0,o.childrenEqual)(e.children,n.children)||(i=n.layout):i=e.layout,i?{layout:(0,o.synchronizeLayoutWithChildren)(i,e.children,e.cols,(0,o.compactType)(e),e.allowOverlap),compactType:e.compactType,children:e.children,propsLayout:e.layout}:null)}shouldComponentUpdate(e,n){return this.props.children!==e.children||!(0,o.fastRGLPropsEqual)(this.props,e,t.deepEqual)||this.state.activeDrag!==n.activeDrag||this.state.mounted!==n.mounted||this.state.droppingPosition!==n.droppingPosition}componentDidUpdate(e,t){if(!this.state.activeDrag){let e=this.state.layout,n=t.layout;this.onLayoutMaybeChanged(e,n)}}containerHeight(){if(!this.props.autoSize)return;let e=(0,o.bottom)(this.state.layout),t=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return e*this.props.rowHeight+(e-1)*this.props.margin[1]+2*t+"px"}
130onLayoutMaybeChanged(e,n){n||(n=this.state.layout),(0,t.deepEqual)(n,e)||this.props.onLayoutChange(e)}placeholder(){let{activeDrag:t}=this.state;if(!t)return null;let{width:n,cols:o,margin:i,containerPadding:a,rowHeight:l,maxRows:u,useCSSTransforms:c,transformScale:d}=this.props;return e.createElement(s.default,{w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,className:`react-grid-placeholder ${this.state.resizing?"placeholder-resizing":""}`,containerWidth:n,cols:o,margin:i,containerPadding:a||i,maxRows:u,rowHeight:l,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:c,transformScale:d},e.createElement("div",null))}processGridItem(t,n){if(!t||!t.key)return;let i=(0,o.getLayoutItem)(this.state.layout,String(t.key));if(!i)return null;let{width:a,cols:l,margin:u,containerPadding:c,rowHeight:d,maxRows:f,isDraggable:p,isResizable:v,isBounded:h,useCSSTransforms:m,transformScale:g,draggableCancel:y,draggableHandle:b,resizeHandles:w,resizeHandle:x}=this.props,{mounted:C,droppingPosition:E}=this.state,S="boolean"==typeof i.isDraggable?i.isDraggable:!i.static&&p,R="boolean"==typeof i.isResizable?i.isResizable:!i.static&&v,k=i.resizeHandles||w,M=S&&h&&!1!==i.isBounded;return e.createElement(s.default,{containerWidth:a,cols:l,margin:u,containerPadding:c||u,maxRows:f,rowHeight:d,cancel:y,handle:b,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:S,isResizable:R,isBounded:M,useCSSTransforms:m&&C,usePercentages:!C,transformScale:g,w:i.w,h:i.h,x:i.x,y:i.y,i:i.i,minH:i.minH,minW:i.minW,maxH:i.maxH,maxW:i.maxW,static:i.static,droppingPosition:n?E:void 0,resizeHandles:k,resizeHandle:x},t)}render(){let{className:t,style:i,isDroppable:a,innerRef:l}=this.props,s=(0,n.default)(p,t),u={height:this.containerHeight(),...i};return e.createElement("div",{ref:l,className:s,style:u,onDrop:a?this.onDrop:o.noop,onDragLeave:a?this.onDragLeave:o.noop,onDragEnter:a?this.onDragEnter:o.noop,onDragOver:a?this.onDragOver:o.noop},e.Children.map(this.props.children,e=>this.processGridItem(e)),a&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}return ia.default=h,f(h,"displayName","ReactGridLayout"),f(h,"propTypes",u.default),f(h,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,allowOverlap:!1,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:o.noop,onDragStart:o.noop,onDrag:o.noop,onDragStop:o.noop,onResizeStart:o.noop,onResize:o.noop,onResizeStop:o.noop,onDrop:o.noop,onDropDragOver:o.noop}),ia}var ao,ai,aa,al={},as={};function au(){if(aa)return as;aa=1,Object.defineProperty(as,"__esModule",{value:!0}),as.findOrGenerateResponsiveLayout=function(n,o,i,a,l,s){if(n[i])return(0,e.cloneLayout)(n[i]);let u=n[a],c=t(o),d=c.slice(c.indexOf(i));for(let e=0,t=d.length;e<t;e++){let t=d[e];if(n[t]){u=n[t];break}}return u=(0,e.cloneLayout)(u||[]),(0,e.compact)((0,e.correctBounds)(u,{cols:l}),s,l)},as.getBreakpointFromWidth=function(e,n){let o=t(e),i=o[0];for(let t=1,a=o.length;t<a;t++){let a=o[t];n>e[a]&&(i=a)}return i},as.getColsFromBreakpoint=function(e,t){if(!t[e])throw Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+e+" is missing!");return t[e]},as.sortBreakpoints=t;var e=im();function t(e){return Object.keys(e).sort(function(t,n){return e[t]-e[n]})}return as}var ac={},ad=function(){if("u">typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,o){return e[0]===t&&(n=o,!0)}),n}function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var i=o[n];e.call(t,i[1],i[0])}},t}(),af="u">typeof window&&"u">typeof document&&window.document===document,ap="u">typeof n.g&&n.g.Math===Math?n.g:"u">typeof self&&self.Math===Math?self:"u">typeof window&&window.Math===Math?window:Function("return this")(),av="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ap):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},ah=["top","right","bottom","left","width","height","size","weight"],am="u">typeof MutationObserver,ag=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,i=0;function a(){n&&(n=!1,e()),o&&s()}function l(){av(a)}function s(){var e=Date.now();if(n){if(e-i<2)return;o=!0}else n=!0,o=!1,setTimeout(l,20);i=e}return s}(this.refresh.bind(this),0)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){!af||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),am?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){af&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;ah.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=ne
130w e),this.instance_},e.instance_=null,e}(),ay=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var i=o[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},ab=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||ap},aw=aS(0,0,0,0);function ax(e){return parseFloat(e)||0}function aC(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+ax(e["border-"+n+"-width"])},0)}var aE="u">typeof SVGGraphicsElement?function(e){return e instanceof ab(e).SVGGraphicsElement}:function(e){return e instanceof ab(e).SVGElement&&"function"==typeof e.getBBox};function aS(e,t,n,o){return{x:e,y:t,width:n,height:o}}var aR=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=aS(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e,t,n=(e=this.target,af?aE(e)?aS(0,0,(t=e.getBBox()).width,t.height):function(e){var t,n=e.clientWidth,o=e.clientHeight;if(!n&&!o)return aw;var i=ab(e).getComputedStyle(e),a=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var i=o[n],a=e["padding-"+i];t[i]=ax(a)}return t}(i),l=a.left+a.right,s=a.top+a.bottom,u=ax(i.width),c=ax(i.height);if("border-box"===i.boxSizing&&(Math.round(u+l)!==n&&(u-=aC(i,"left","right")+l),Math.round(c+s)!==o&&(c-=aC(i,"top","bottom")+s)),(t=e)!==ab(t).document.documentElement){var d=Math.round(u+l)-n,f=Math.round(c+s)-o;1!==Math.abs(d)&&(u-=d),1!==Math.abs(f)&&(c-=f)}return aS(a.left,a.top,u,c)}(e):aw);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),ak=function(e,t){var n,o,i,a,l,s=(n=t.x,o=t.y,i=t.width,a=t.height,ay(l=Object.create(("u">typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype),{x:n,y:o,width:i,height:a,top:o,right:n+i,bottom:a+o,left:n}),l);ay(this,{target:e,contentRect:s})},aM=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new ad,"function"!=typeof e)throw TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ab(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new aR(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ab(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new ak(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),aj="u">typeof WeakMap?new WeakMap:new ad,aN=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var n=new aM(t,ag.getInstance(),this);aj.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){aN.prototype[e]=function(){var t;return(t=aj.get(this))[e].apply(t,arguments)}});var aO="u">typeof ap.ResizeObserver?ap.ResizeObserver:aN;let aD=eq(Object.freeze(Object.defineProperty({__proto__:null,default:aO},Symbol.toStringTag,{value:"Module"})));var aP=function(){return c1||(c1=1,ii.exports=ar().default,ii.exports.utils=im(),ii.exports.calculateUtils=iw(),ii.exports.Responsive=function(){if(cQ)return al;
130cQ=1,Object.defineProperty(al,"__esModule",{value:!0}),al.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(void 0);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(i),t=s(iR()),n=is(),o=im(),a=au(),l=s(ar());function s(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function d(e,t,n){var o;return(t="symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let f=e=>Object.prototype.toString.call(e);function p(e,t){return null==e?null:Array.isArray(e)?e:e[t]}let v=class extends e.Component{constructor(){super(...arguments),d(this,"state",this.generateInitialState()),d(this,"onLayoutChange",e=>{this.props.onLayoutChange(e,{...this.props.layouts,[this.state.breakpoint]:e})})}generateInitialState(){let{width:e,breakpoints:t,layouts:n,cols:o}=this.props,i=(0,a.getBreakpointFromWidth)(t,e),l=(0,a.getColsFromBreakpoint)(i,o),s=!1===this.props.verticalCompact?null:this.props.compactType;return{layout:(0,a.findOrGenerateResponsiveLayout)(n,t,i,i,l,s),breakpoint:i,cols:l}}static getDerivedStateFromProps(e,t){if(!(0,n.deepEqual)(e.layouts,t.layouts)){let{breakpoint:n,cols:o}=t;return{layout:(0,a.findOrGenerateResponsiveLayout)(e.layouts,e.breakpoints,n,n,o,e.compactType),layouts:e.layouts}}return null}componentDidUpdate(e){this.props.width==e.width&&this.props.breakpoint===e.breakpoint&&(0,n.deepEqual)(this.props.breakpoints,e.breakpoints)&&(0,n.deepEqual)(this.props.cols,e.cols)||this.onWidthChange(e)}onWidthChange(e){let{breakpoints:t,cols:n,layouts:i,compactType:l}=this.props,s=this.props.breakpoint||(0,a.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),u=this.state.breakpoint,c=(0,a.getColsFromBreakpoint)(s,n),d={...i};if(u!==s||e.breakpoints!==t||e.cols!==n){u in d||(d[u]=(0,o.cloneLayout)(this.state.layout));let e=(0,a.findOrGenerateResponsiveLayout)(d,t,s,u,c,l);e=(0,o.synchronizeLayoutWithChildren)(e,this.props.children,c,l,this.props.allowOverlap),d[s]=e,this.props.onBreakpointChange(s,c),this.props.onLayoutChange(e,d),this.setState({breakpoint:s,layout:e,cols:c})}let f=p(this.props.margin,s),v=p(this.props.containerPadding,s);this.props.onWidthChange(this.props.width,f,c,v)}render(){let{breakpoint:t,breakpoints:n,cols:o,layouts:i,margin:a,containerPadding:s,onBreakpointChange:u,onLayoutChange:d,onWidthChange:f,...v}=this.props;return e.createElement(l.default,c({},v,{margin:p(a,this.state.breakpoint),containerPadding:p(s,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}};return al.default=v,d(v,"propTypes",{breakpoint:t.default.string,breakpoints:t.default.object,allowOverlap:t.default.bool,cols:t.default.object,margin:t.default.oneOfType([t.default.array,t.default.object]),containerPadding:t.default.oneOfType([t.default.array,t.default.object]),layouts(e,t){if("[object Object]"!==f(e[t]))throw Error("Layout property must be an object. Received: "+f(e[t]));Object.keys(e[t]).forEach(t=>{if(!(t in e.breakpoints))throw Error("Each key in layouts must align with a key in breakpoints.");(0,o.validateLayout)(e.layouts[t],"layouts."+t)})},width:t.default.number.isRequired,onBreakpointChange:t.default.func,onLayoutChange:t.default.func,onWidthChange:t.default.func}),d(v,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],allowOverlap:!1,onBreakpointChange:o.noop,onLayoutChange:o.noop,onWidthChange:o.noop}),al}().default,ii.exports.Responsive.utils=au(),ii.exports.WidthProvider=function(){if(c0)return ac;c0=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.default=function(i){var a;return a=class extends e.Component{constructor(){super(...arguments),u(this,"state",{width:1280}),u(this,"elementRef",e.createRef()),u(this,"mounted",!1),u(this,"resizeObserver",void 0)}componentDidMount(){this.mounted=!0,this.resizeObserver=new n.default(e=>{if(this.elementRef.current instanceof HTMLElement){let t=e[0].contentRect.width;this.setState({width:t})}});let e=this.elementRef.current;e instanceof HTMLElement&&this.resizeObserver.observe(e)}componentWillUnmount(){this.mounted=!1;let e=this.elementRef.current;e instanceof HTMLElement&&this.resizeObserver.unobserve(e),this.resizeObserver.disconnect()}render(){let{measureBeforeMount:t,...n}=this.props;return t&&!this.mounted?e.createElement("div",{className:(0,o.default)(this.props.className,"react-grid-layout"),style:this.props.style,ref:this.elementRef}):e.createElement(i,s({innerRef:this.elementRef},n,this.state))}},u(a,"defaultProps",{measureBeforeMount:!1}
130),u(a,"propTypes",{measureBeforeMount:t.default.bool}),a};var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(void 0);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(i),t=a(iR()),n=a(aD),o=a(id());function a(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function u(e,t,n){var o;return(t="symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}return ac}().default),ii.exports}();let a_=eX(aP);function aT(){return(aT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function aL(e){return(aL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function az(e){var t=function(e,t){if("object"!=aL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=aL(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==aL(t)?t:t+""}function aA(e,t,n){return(t=az(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function aH(e,t){if(e){if("string"==typeof e)return aI(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aI(e,t):void 0}}function aF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,a,l,s=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(o=a.call(n)).done)&&(s.push(o.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw i}}return s}}(e,t)||aH(e,t)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
131In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function aW(e,t){if(null==e)return{};var n={};for(var o in e)if(({}).hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}function a$(e,t){if(null==e)return{};var n,o,i=aW(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function aB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function aV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aB(Object(n),!0).forEach(function(t){aA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aB(Object(n)).forEac
131h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aY(){return!!("u">typeof window&&window.document&&window.document.createElement)}aP.WidthProvider(a_);var aK={};function aX(e,t){}function aq(e,t){}function aG(e,t,n){t||aK[n]||(e(!1,n),aK[n]=!0)}function aU(e,t){aG(aX,e,t)}aU.preMessage=function(e){},aU.resetWarned=function(){aK={}},aU.noteOnce=function(e,t){aG(aq,e,t)};var aZ={exports:{}},aJ={},aQ=(c5||(c5=1,aZ.exports=function(){if(c2)return aJ;c2=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case o:case a:case i:case d:case f:return e;default:switch(e=e&&e.$$typeof){case u:case s:case c:case v:case p:case l:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),aJ.ContextConsumer=s,aJ.ContextProvider=l,aJ.Element=t,aJ.ForwardRef=c,aJ.Fragment=o,aJ.Lazy=v,aJ.Memo=p,aJ.Portal=n,aJ.Profiler=a,aJ.StrictMode=i,aJ.Suspense=d,aJ.SuspenseList=f,aJ.isAsyncMode=function(){return!1},aJ.isConcurrentMode=function(){return!1},aJ.isContextConsumer=function(e){return m(e)===s},aJ.isContextProvider=function(e){return m(e)===l},aJ.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},aJ.isForwardRef=function(e){return m(e)===c},aJ.isFragment=function(e){return m(e)===o},aJ.isLazy=function(e){return m(e)===v},aJ.isMemo=function(e){return m(e)===p},aJ.isPortal=function(e){return m(e)===n},aJ.isProfiler=function(e){return m(e)===a},aJ.isStrictMode=function(e){return m(e)===i},aJ.isSuspense=function(e){return m(e)===d},aJ.isSuspenseList=function(e){return m(e)===f},aJ.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===a||t===i||t===d||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===v||t.$$typeof===p||t.$$typeof===l||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},aJ.typeOf=m,aJ}()),aZ.exports);function a0(e,t,n){var o=i.useRef({});return(!("value"in o.current)||n(o.current.condition,t))&&(o.current.value=e(),o.current.condition=t),o.current.value}var a1=Symbol.for("react.element"),a2=Symbol.for("react.transitional.element"),a5=Symbol.for("react.fragment");function a4(e){return e&&"object"===aL(e)&&(e.$$typeof===a1||e.$$typeof===a2)&&e.type===a5}var a8=Number(i.version.split(".")[0]),a6=function(e,t){"function"==typeof e?e(t):"object"===aL(e)&&e&&"current"in e&&(e.current=t)},a3=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.filter(Boolean);return o.length<=1?o[0]:function(e){t.forEach(function(t){a6(t,e)})}},a9=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return a0(function(){return a3.apply(void 0,t)},t,function(e,t){return e.length!==t.length||e.every(function(e,n){return e!==t[n]})})},a7=function(e){if(!e)return!1;if(le(e)&&a8>=19)return!0;var t,n,o=aQ.isMemo(e)?e.type.type:e.type;return!("function"==typeof o&&!(null!=(t=o.prototype)&&t.render)&&o.$$typeof!==aQ.ForwardRef||"function"==typeof e&&!(null!=(n=e.prototype)&&n.render)&&e.$$typeof!==aQ.ForwardRef)};function le(e){return(0,i.isValidElement)(e)&&!a4(e)}var lt=function(e){return e&&le(e)?e.props.propertyIsEnumerable("ref")?e.props.ref:e.ref:null},ln=i.createContext(null);function lr(e){return function(e){if(Array.isArray(e))return aI(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||aH(e)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance.
132In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var lo=aY()?i.useLayoutEffect:i.useEffect,li=function(e,t){var n=i.useRef(!0);lo(function(){return e(n.current)},t),lo(function(){return n.current=!1,function(){n.current=!0}},[])},la=function(e,t){li(function(t){if(!t)return e()},t)},ll=[],ls="data-rc-order",lu="data-rc-priority",lc=new Map;function ld(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function lf(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function lp(e){return Array.from((lc.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function lv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!aY())return null;var n=t.csp,o=t.prepend,i=t.priority,a=void 0===i?0:i,l="queue"===o?"prependQueue":o?"prepend":"append",s="prependQueue"===l,u=document.createElement("style");u.setAttribute(ls,l),s&&a&&u.setAttribute(lu,"".concat(a)),null!=n&&n.nonce&&(u.nonce=null==n?void 0:n.nonce),u.innerHTML=e;var c=lf(t),d=c.firstChild;if(o){if(s){var f=(t.styles||lp(c)).filter(function(e){return!!["prepend","prepe
132ndQueue"].includes(e.getAttribute(ls))&&a>=Number(e.getAttribute(lu)||0)});if(f.length)return c.insertBefore(u,f[f.length-1].nextSibling),u}c.insertBefore(u,d)}else c.appendChild(u);return u}function lh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=lf(t);return(t.styles||lp(n)).find(function(n){return n.getAttribute(ld(t))===e})}function lm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=lh(e,t);n&&lf(t).removeChild(n)}function lg(e,t){var n,o,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=lf(a),s=lp(l),u=aV(aV({},a),{},{styles:s}),c=lc.get(l);if(!c||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,c)){var d=lv("",u),f=d.parentNode;lc.set(l,f),l.removeChild(d)}var p=lh(t,u);if(p)return null!=(n=u.csp)&&n.nonce&&p.nonce!==(null==(o=u.csp)?void 0:o.nonce)&&(p.nonce=null==(i=u.csp)?void 0:i.nonce),p.innerHTML!==e&&(p.innerHTML=e),p;var v=lv(e,u);return v.setAttribute(ld(u),t),v}var ly="rc-util-locker-".concat(Date.now()),lb=0,lw=function(e){return!1!==e&&(aY()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},lx=i.forwardRef(function(e,t){var n,o,a=e.open,s=e.autoLock,u=e.getContainer;e.debug;var c=e.autoDestroy,d=void 0===c||c,f=e.children,p=aF(i.useState(a),2),v=p[0],h=p[1],m=v||a;i.useEffect(function(){(d||a)&&h(a)},[a,d]);var g=aF(i.useState(function(){return lw(u)}),2),y=g[0],b=g[1];i.useEffect(function(){var e=lw(u);b(null!=e?e:null)});var w=function(e,t){var n=aF(i.useState(function(){return aY()?document.createElement("div"):null}),1)[0],o=i.useRef(!1),a=i.useContext(ln),l=aF(i.useState(ll),2),s=l[0],u=l[1],c=a||(o.current?void 0:function(e){u(function(t){return[e].concat(lr(t))})});function d(){n.parentElement||document.body.appendChild(n),o.current=!0}function f(){var e;null==(e=n.parentElement)||e.removeChild(n),o.current=!1}return li(function(){return e?a?a(d):d():f(),f},[e]),li(function(){s.length&&(s.forEach(function(e){return e()}),u(ll))},[s]),[n,c]}(m&&!y),x=aF(w,2),C=x[0],E=x[1],S=null!=y?y:C;li(function(){if(n){var e,t=(e=document.body,!(typeof document>"u")&&e&&e instanceof Element?function(e){var t,n,o="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),i=document.createElement("div");i.id=o;var a=i.style;if(a.position="absolute",a.left="0",a.top="0",a.width="100px",a.height="100px",a.overflow="scroll",e){var l=getComputedStyle(e);a.scrollbarColor=l.scrollbarColor,a.scrollbarWidth=l.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),u=parseInt(s.width,10),c=parseInt(s.height,10);try{var d=u?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";lg(`
133#`.concat(o,`::-webkit-scrollbar {
134`).concat(d,`
135`).concat(f,`
136}`),o)}catch(e){console.error(e),t=u,n=c}}document.body.appendChild(i);var p=e&&t&&!isNaN(t)?t:i.offsetWidth-i.clientWidth,v=e&&n&&!isNaN(n)?n:i.offsetHeight-i.clientHeight;return document.body.removeChild(i),lm(o),{width:p,height:v}}(e):{width:0,height:0}).width,i=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;lg(`
137html body {
138  overflow-y: hidden;
139  `.concat(i?"width: calc(100% - ".concat(t,"px);"):"",`
140}`),o)}else lm(o);return function(){lm(o)}},[n=!!(s&&a&&aY()&&(S===C||S===document.body)),o=aF(i.useState(function(){return lb+=1,"".concat(ly,"_").concat(lb)}),1)[0]]);var R=null;f&&a7(f)&&t&&(R=f.ref);var k=a9(R,t);if(!m||!aY()||void 0===y)return null;var M=!1===S,j=f;return t&&(j=i.cloneElement(f,{ref:k})),i.createElement(ln.Provider,{value:E},M?j:(0,l.createPortal)(j,S))}),lC={exports:{}};let lE=eX((c4||(c4=1,function(e){var t={}.hasOwnProperty;function n(){for(var e="",i=0;i<arguments.length;i++){var a=arguments[i];a&&(e=o(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var i="";for(var a in e)t.call(e,a)&&e[a]&&(i=o(i,a));return i}(a)))}return e}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}(lC)),lC.exports));function lS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return i.Children.forEach(e,function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(lS(e)):a4(e)&&e.props?n=n.concat(lS(e.props.children,t)):n.push(e))}),n}function lR(e){return e instanceof HTMLElement||e instanceof SVGElement}function lk(e){var t,n=e&&"object"===aL(e)&&lR(e.nativeElement)?e.nativeElement:lR(e)?e:null;return n||(e instanceof i.Component?null==(t=l.findDOMNode)?void 0:t.call(l,e):null)}var lM=i.createContext(null),lj=new Map,lN=new aO(function(e){e.forEach(function(e){var t,n=e.target;null==(t=lj.get(n))||t.forEach(function(e){return e(n)})})});function lO(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function lD(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,az(o.key),o)}}function lP(e,t,n){return t&&lD(e.prototype,t),n&&lD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l_(e,t){return(l_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function lT(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l_(e,t)}function lL(e){return(lL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function lz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lz=function(){return!!e})()}function lA(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lI(e){var t=lz();return function(){var n,o=lL(e);n=t?Reflect.construct(o,arguments,lL(this).constructor):o.apply(this,arguments);if(n&&("object"==aL(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return lA(this)}}var lH=function(e){lT(n,e);var t=lI(n);function n(){return lO(this,n),t.apply(this,arguments)}return lP(n,[{key:"render",value:function(){return this.props.children}}]),n}(i.Component),lF=i.forwardRef(function(e,t){var n=e.children,o=e.disabled,a=i.useRef(null),l=i.useRef(null),s=i.useContext(lM),u="function"==typeof n,c=u?n(a):n,d=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!u&&i.isValidElement(c)&&a7(c),p=a9(f?lt(c):null,a),v=function(){var e;return lk(a.current)||(a.current&&"object"===aL(a.current)?lk(null==(e=a.current)?void 0:e.nativeElement):null)||lk(l.current)};i.useImperativeHandle(t,function(){return v()});var h=i.useRef(e);h.current=e;var m=i.useCallback(function(e){var t=h.current,n=t.onResize,o=t.data,i=e.getBoundingClientRect(),a=i.width,l=i.height,u=e.offsetWidth,c=e.offsetHeight,f=Math.floor(a),p=Math.floor(l);if(d.current.width!==f||d.current.height!==p||d.current.offsetWidth!==u||d.current.offsetHeight!==c){var v={width:f,height:p,offsetWidth:u,offsetHeight:c};d.current=v;var m=u===Math.round(a)?a:u,g=c===Math.round(l)?l:c,y=aV(aV({},v),{},{offsetWidth:m,offsetHeight:g});null==s||s(y,e,o),n&&Promise.resolve().then(function(){n(y,e)})}},[]);return i.useEffect(function(){var e=v();return e&&!o&&(lj.has(e)||(lj.set(e,new Set),lN.observe(e)),lj.get(e).add(m)),function(){lj.has(e)&&(lj.get(e).delete(m),lj.get(e).size||(lN.unobserve(e),lj.delete(e)))}},[a.current,o]),i.createElement(lH,{ref:l},f?i.cloneElement(c,{ref:p}):c)}),lW=i.forwardRef(function(e,t){var n=e.children;return("function"==typeof n?[n]:lS(n)).map(function(n,o){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return i.createElement(lF,aT({},e,{key:a,ref:0===o?t:void 0}),n)})});function l$(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}function lB(e){return l$(e)instanceof ShadowRoot?l$(e):null}function lV(e){var t=i.useRef();return t.current=e,i.useCallback(function(){for(var e,n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return null==(e=t.current)?void 0:e.call.apply(e,[t].concat(o))},[])}lW.Collection=function(e){var t=e.children,n=e.onBatchResize,o=i.useRef(0),a=i.useRef([]),l=i.useContext(lM),s=i.useCallback(function(e,t,i){o.current+=1;var s=o.current;a.current.push({size:e,element:t,data:i}),Promise.resolve().then(function(){s===o.current&&(null==n||n(a.current),a.current=[])}),null==l||l(e,t,i)},[n,l]);return i.createElement(lM.Provider,{value:s},t)};var lY=0,lK=aV({},eG||(eG=n.t(i,2))).useId;let lX=lK?function(e){var t=lK();return e||t}:function(e){var t=aF(i.useState("ssr-id"),2),n=t[0],o=t[1];return i.useEffect(function(){var e=lY;lY+=1,o("rc_unique_".concat(e))},[]),e||n},lq=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=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(e)||/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==e?void 0:e.substr(0,4))};var lG=i.createContext({}),lU=function(e){lT(n,e);var t=lI(n);function n(){return lO(this,n),t.apply(this,arguments)}return lP(n,[{key:"render",value:function(){return this.props.children}}]),n}(i.Component);function lZ(e){var t=i.useRef(!1),n=aF(i.useState(e),2),o=n[0],a=n[1];return i.useEffect(function(){return t.current=!1,function(){t.current=!0}}
140,[]),[o,function(e,n){n&&t.current||a(e)}]}function lJ(e){return void 0!==e}function lQ(e,t){var n=t||{},o=n.defaultValue,i=n.value,a=n.onChange,l=n.postState,s=aF(lZ(function(){return lJ(i)?i:lJ(o)?"function"==typeof o?o():o:"function"==typeof e?e():e}),2),u=s[0],c=s[1],d=void 0!==i?i:u,f=l?l(d):d,p=lV(a),v=aF(lZ([d]),2),h=v[0],m=v[1];return la(function(){var e=h[0];u!==e&&p(u,e)},[h]),la(function(){lJ(i)||c(i)},[i]),[f,lV(function(e,t){c(e,t),m([d],t)})]}var l0="none",l1="appear",l2="enter",l5="leave",l4="none",l8="prepare",l6="start",l3="active",l9="prepared";function l7(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var se=function(e,t){var n={animationend:l7("Animation","AnimationEnd"),transitionend:l7("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(aY(),"u">typeof window?window:{}),st={};aY()&&(st=document.createElement("div").style);var sn={};function sr(e){if(sn[e])return sn[e];var t=se[e];
140if(t)for(var n=Object.keys(t),o=n.length,i=0;i<o;i+=1){var a=n[i];if(Object.prototype.hasOwnProperty.call(t,a)&&a in st)return sn[e]=t[a],sn[e]}return""}var so=sr("animationend"),si=sr("transitionend"),sa=!!(so&&si),sl=so||"animationend",ss=si||"transitionend";function su(e,t){return e?"object"===aL(e)?e[t.replace(/-\w/g,function(e){return e[1].toUpperCase()})]:"".concat(e,"-").concat(t):null}let sc=function(e){var t=(0,i.useRef)();function n(t){t&&(t.removeEventListener(ss,e),t.removeEventListener(sl,e))}return i.useEffect(function(){return function(){n(t.current)}},[]),[function(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(ss,e),o.addEventListener(sl,e),t.current=o)},n]};var sd=aY()?i.useLayoutEffect:i.useEffect,sf=function(e){return+setTimeout(e,16)},sp=function(e){return clearTimeout(e)};"u">typeof window&&"requestAnimationFrame"in window&&(sf=function(e){return window.requestAnimationFrame(e)},sp=function(e){return window.cancelAnimationFrame(e)});var sv=0,sh=new Map,sm=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=sv+=1;return function t(o){if(0===o)sh.delete(n),e();else{var i=sf(function(){t(o-1)});sh.set(n,i)}}(t),n};sm.cancel=function(e){var t=sh.get(e);return sh.delete(e),sp(t)};let sg=function(){var e=i.useRef(null);function t(){sm.cancel(e.current)}return i.useEffect(function(){return function(){t()}},[]),[function n(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var a=sm(function(){i<=1?o({isCanceled:function(){return a!==e.current}}):n(o,i-1)});e.current=a},t]};var sy=[l8,l6,l3,"end"],sb=[l8,l9];function sw(e){return e===l3||"end"===e}let sx=function(e,t,n){var o=aF(lZ(l4),2),a=o[0],l=o[1],s=aF(sg(),2),u=s[0],c=s[1],d=t?sb:sy;return sd(function(){if(a!==l4&&"end"!==a){var e=d.indexOf(a),t=d[e+1],o=n(a);!1===o?l(t,!0):t&&u(function(e){function n(){e.isCanceled()||l(t,!0)}!0===o?n():Promise.resolve(o).then(n)})}},[e,a]),i.useEffect(function(){return function(){c()}},[]),[function(){l(l8,!0)},a]},sC=function(e){var t=e;"object"===aL(e)&&(t=e.transitionSupport);var n=i.forwardRef(function(e,n){var o=e.visible,a=void 0===o||o,l=e.removeOnLeave,s=void 0===l||l,u=e.forceRender,c=e.children,d=e.motionName,f=e.leavedClassName,p=e.eventProps,v=i.useContext(lG).motion,h=!!(e.motionName&&t&&!1!==v),m=(0,i.useRef)(),g=(0,i.useRef)(),y=function(e,t,n,o){var a,l,s=o.motionEnter,u=void 0===s||s,c=o.motionAppear,d=void 0===c||c,f=o.motionLeave,p=void 0===f||f,v=o.motionDeadline,h=o.motionLeaveImmediately,m=o.onAppearPrepare,g=o.onEnterPrepare,y=o.onLeavePrepare,b=o.onAppearStart,w=o.onEnterStart,x=o.onLeaveStart,C=o.onAppearActive,E=o.onEnterActive,S=o.onLeaveActive,R=o.onAppearEnd,k=o.onEnterEnd,M=o.onLeaveEnd,j=o.onVisibleChanged,N=aF(lZ(),2),O=N[0],D=N[1],P=(a=aF(i.useReducer(function(e){return e+1},0),2)[1],l=i.useRef(l0),[lV(function(){return l.current}),lV(function(e){l.current="function"==typeof e?e(l.current):e,a()})]),_=aF(P,2),T=_[0],L=_[1],z=aF(lZ(null),2),A=z[0],I=z[1],H=T(),F=(0,i.useRef)(!1),W=(0,i.useRef)(null),$=(0,i.useRef)(!1);function B(){L(l0),I(null,!0)}var V=lV(function(e){var t=T();if(t!==l0){var o=n();if(!(e&&!e.deadline&&e.target!==o)){var i,a=$.current;t===l1&&a?i=null==R?void 0:R(o,e):t===l2&&a?i=null==k?void 0:k(o,e):t===l5&&a&&(i=null==M?void 0:M(o,e)),a&&!1!==i&&B()}}}),Y=aF(sc(V),1)[0],K=function(e){switch(e){case l1:return aA(aA(aA({},l8,m),l6,b),l3,C);case l2:return aA(aA(aA({},l8,g),l6,w),l3,E);case l5:return aA(aA(aA({},l8,y),l6,x),l3,S);default:return{}}},X=i.useMemo(function(){return K(H)},[H]),q=aF(sx(H,!e,function(e){if(e===l8){var t,o=X[l8];return!!o&&o(n())}return U in X&&I((null==(t=X[U])?void 0:t.call(X,n(),null))||null),U===l3&&H!==l0&&(Y(n()),v>0&&(clearTimeout(W.current),W.current=setTimeout(function(){V({deadline:!0})},v))),U===l9&&B(),!0}),2),G=q[0],U=q[1];$.current=sw(U);var Z=(0,i.useRef)(null);sd(function(){if(!(F.current&&Z.current===t)){D(t);var n,o=F.current;F.current=!0,!o&&t&&d&&(n=l1),o&&t&&u&&(n=l2),(o&&!t&&p||!o&&h&&!t&&p)&&(n=l5);var i=K(n);n&&(e||i[l8])?(L(n),G()):L(l0),Z.current=t}},[t]),(0,i.useEffect)(function(){(H!==l1||d)&&(H!==l2||u)&&(H!==l5||p)||L(l0)},[d,u,p]),(0,i.useEffect)(function(){return function(){F.current=!1,clearTimeout(W.current)}},[]);var J=i.useRef(!1);(0,i.useEffect)(function(){O&&(J.current=!0),void 0!==O&&H===l0&&((J.current||O)&&(null==j||j(O)),J.current=!0)},[O,H]);var Q=A;return X[l8]&&U===l6&&(Q=aV({transition:"none"},Q)),[H,U,Q,null!=O?O:t]}(h,a,function(){try{return m.current instanceof HTMLElement?m.current:lk(g.current)}catch{return null}},e),b=aF(y,4),w=b[0],x=b[1],C=b[2],E=b[3],S=i.useRef(E);E&&(S.current=!0);var R,k=i.useCallback(function(e){m.current=e,a6(n,e)},[n]),M=aV(aV({},p),{},{visible:a});if(c)if(w===l0)R=E?c(aV({},M),k):!s&&S.current&&f?c(aV(aV({},M),{},{className:f}),k):!u&&(s||f)?null:c(aV(aV({},M),{},{style:{display:"none"}}),k);else{x===l8?j="prepare":sw(x)?j="active":x===l6&&(j="start");var j,N=su(d,"".concat(w,"-").concat(j));R=c(aV(aV({},M),{},{className:lE(su(d,w),aA(aA({},N,N&&j),d,"string"==typeof d)),style:C}),k)}else R=null;return i.isValidElement(R)&&a7(R)&&(lt(R)||(R=i.cloneElement(R,{ref:k}))),i.createElement(lU,{ref:g},R)});return n.displayName="CSSMotion",n}(sa);var sE="keep",sS="remove",sR="removed";function sk(e){var t;return aV(aV({},t=e&&"object"===aL(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function sM(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(sk)}var sj=["component","children","onVisibleChanged","onAllRemoved"],sN=["status"],sO=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function sD(e){var t=e.prefixCls,n=e.align,o=e.arrow,a=e.arrowPos,l=o||{},s=l.className,u=l.content,c=a.x,d=a.y,f=i.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var v=n.points[0],h=n.points[1],m=v[0],g=v[1],y=h[0],b=h[1];m!==y&&["t","b"].includes(m)?"t"===m?p.top=0:p.bottom=0:p.top=void 0===d?0:d,g!==b&&["l","r"].includes(g)?"l"===g?p.left=0:p.right=0:p.left=void 0===c?0:c}return i.createElement("div",{ref:f,className:lE("".concat(t,"-arrow"),s),style:p},u)}function sP(e){var t=e.prefixCls,n=e.open,o=e.zIndex,a=e.mask,l=e.motion;return a?i.createElement(sC,aT({},l,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return i.createElement("div",{style:{zIndex:o},className:lE("".concat(t,"-mask"),n)})}):null}!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sC,n=function(e){lT(o,e);var n=lI(o);function o(){var e;lO(this,o);for(var t=arguments.length,i=Array(t),a=0;a<t;a++)i[a]=arguments[a];return aA(lA(e=n.call.apply(n,[this].concat(i))),"state",{keyEntities:[]}),aA(lA(e),"removeKey",function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key!==t?e:aV(aV({},e),{},{status:sR})})}},function(){0===e.state.keyEntities.filter(function(e){return e.status!==sR}).length&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return lP(o,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,o=this.props,a=o.component,l=o.children,s=o.onVisibleChanged;o.onAllRemoved;var u=a$(o,sj),c=a||i.Fragment,d={};return sO.forEach(function(e){d[e]=u[e],delete u[e]}),delete u.keys,i.createElement(c,u,n.map(function(n,o){var a=n.status,u=a$(n,sN);return i.createElement(t,aT({},d,{key:u.key,visible:"add"===a||a===sE,eventProps:u,onVisibleChanged:function(t){null==s||s(t,{key:u.key}),t||e.removeKey(u.key)}}),function(e,t){return l(aV(aV({},e),{},{index:o}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities;return{keyEntities:(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,i=t.length,a=sM(e),l=sM(t);a.forEach(function(e){for(var t=!1,a=o;a<i;a+=1){var s=l[a];if(s.key===e.key){o<a&&(n=n.concat(l.slice(o,a).map(function(e){return aV(aV({},e),{},{status:"add"})})),o=a),n.push(aV(aV({},s),{},{status:sE})),o+=1,t=!0;break}}t||n.push(aV(aV({},e),{},{status:sS}))}),o<i&&(n=n.concat(l.slice(o).map(function(e){return aV(aV({},e),{},{status:"add"})})));var s={};
140return n.forEach(function(e){var t=e.key;s[t]=(s[t]||0)+1}),Object.keys(s).filter(function(e){return s[e]>1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,o=t.status;return n!==e||o!==sS})).forEach(function(t){t.key===e&&(t.status=sE)})}),n})(o,sM(n)).filter(function(e){var t=o.find(function(t){var n=t.key;return e.key===n});return!(t&&t.status===sR&&e.status===sS)})}}}]),o}(i.Component);aA(n,"defaultProps",{component:"div"})}(sa);var s_=i.memo(function(e){return e.children},function(e,t){return t.cache}),sT=i.forwardRef(function(e,t){var n=e.popup,o=e.className,a=e.prefixCls,l=e.style,s=e.target,u=e.onVisibleChanged,c=e.open,d=e.keepDom,f=e.fresh,p=e.onClick,v=e.mask,h=e.arrow,m=e.arrowPos,g=e.align,y=e.motion,b=e.maskMotion,w=e.forceRender,x=e.getPopupContainer,C=e.autoDestroy,E=e.portal,S=e.zIndex,R=e.onMouseEnter,k=e.onMouseLeave,M=e.onPointerEnter,j=e.onPointerDownCapture,N=e.ready,O=e.offsetX,D=e.offsetY,P=e.offsetR,_=e.offsetB,T=e.onAlign,L=e.onPrepare,z=e.stretch,A=e.targetWidth,I=e.targetHeight,H="function"==typeof n?n():n,F=c||d,W=(null==x?void 0:x.length)>0,$=aF(i.useState(!x||!W),2),B=$[0],V=$[1];if(li(function(){!B&&W&&s&&V(!0)},[B,W,s]),!B)return null;var Y="auto",K={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(N||!c){var X,q=g.points,G=g.dynamicInset||(null==(X=g._experimental)?void 0:X.dynamicInset),U=G&&"r"===q[0][1],Z=G&&"b"===q[0][0];U?(K.right=P,K.left=Y):(K.left=O,K.right=Y),Z?(K.bottom=_,K.top=Y):(K.top=D,K.bottom=Y)}var J={};return z&&(z.includes("height")&&I?J.height=I:z.includes("minHeight")&&I&&(J.minHeight=I),z.includes("width")&&A?J.width=A:z.includes("minWidth")&&A&&(J.minWidth=A)),c||(J.pointerEvents="none"),i.createElement(E,{open:w||F,getContainer:x&&function(){return x(s)},autoDestroy:C},i.createElement(sP,{prefixCls:a,open:c,zIndex:S,mask:v,motion:b}),i.createElement(lW,{onResize:T,disabled:!c},function(e){return i.createElement(sC,aT({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(a,"-hidden")},y,{onAppearPrepare:L,onEnterPrepare:L,visible:c,onVisibleChanged:function(e){var t;null==y||null==(t=y.onVisibleChanged)||t.call(y,e),u(e)}}),function(n,s){var u=n.className,d=n.style,v=lE(a,u,o);return i.createElement("div",{ref:a3(e,t,s),className:v,style:aV(aV(aV(aV({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},K),J),d),{},{boxSizing:"border-box",zIndex:S},l),onMouseEnter:R,onMouseLeave:k,onPointerEnter:M,onClick:p,onPointerDownCapture:j},h&&i.createElement(sD,{prefixCls:a,arrow:h,arrowPos:m,align:g}),i.createElement(s_,{cache:!c&&!f},H))})}))}),sL=i.forwardRef(function(e,t){var n=e.children,o=e.getTriggerDOMNode,a=a7(n),l=a9(i.useCallback(function(e){a6(t,o?o(e):e)},[o]),lt(n));return a?i.cloneElement(n,{ref:l}):n}),sz=i.createContext(null);function sA(e){return e?Array.isArray(e)?e:[e]:[]}let sI=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,o=t.height;if(n||o)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),a=i.width,l=i.height;if(a||l)return!0}}return!1};function sH(e,t,n,o){return t||(n?{motionName:"".concat(e,"-").concat(n)}:o?{motionName:o}:null)}function sF(e){return e.ownerDocument.defaultView}function sW(e){for(var t=[],n=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];n;){var i=sF(n).getComputedStyle(n);[i.overflowX,i.overflowY,i.overflow].some(function(e){return o.includes(e)})&&t.push(n),n=n.parentElement}return t}function s$(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function sB(e){return s$(parseFloat(e),0)}function sV(e,t){var n=aV({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=sF(e).getComputedStyle(e),o=t.overflow,i=t.overflowClipMargin,a=t.borderTopWidth,l=t.borderBottomWidth,s=t.borderLeftWidth,u=t.borderRightWidth,c=e.getBoundingClientRect(),d=e.offsetHeight,f=e.clientHeight,p=e.offsetWidth,v=e.clientWidth,h=sB(a),m=sB(l),g=sB(s),y=sB(u),b=s$(Math.round(c.width/p*1e3)/1e3),w=s$(Math.round(c.height/d*1e3)/1e3),x=h*w,C=g*b,E=0,S=0;if("clip"===o){var R=sB(i);E=R*b,S=R*w}var k=c.x+C-E,M=c.y+x-S,j=k+c.width+2*E-C-y*b-(p-v-g-y)*b,N=M+c.height+2*S-x-m*w-(d-f-h-m)*w;n.left=Math.max(n.left,k),n.top=Math.max(n.top,M),n.right=Math.min(n.right,j),n.bottom=Math.min(n.bottom,N)}}),n}function sY(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),o=n.match(/^(.*)\%$/);return o?e*(parseFloat(o[1])/100):parseFloat(n)}function sK(e,t){var n=aF(t||[],2),o=n[0],i=n[1];return[sY(e.width,o),sY(e.height,i)]}function sX(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function sq(e,t){var n,o=t[0],i=t[1];return n="t"===o?e.y:"b"===o?e.y+e.height:e.y+e.height/2,{x:"l"===i?e.x:"r"===i?e.x+e.width:e.x+e.width/2,y:n}}function sG(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,o){return o===t?n[e]||"c":e}).join("")}var sU=["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"];let sZ=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lx;return i.forwardRef(function(t,n){var o=t.prefixCls,a=void 0===o?"rc-trigger-popup":o,l=t.children,s=t.action,u=t.showAction,c=t.hideAction,d=t.popupVisible,f=t.defaultPopupVisible,p=t.onPopupVisibleChange,v=t.afterPopupVisibleChange,h=t.mouseEnterDelay,m=t.mouseLeaveDelay,g=void 0===m?.1:m,y=t.focusDelay,b=t.blurDelay,w=t.mask,x=t.maskClosable,C=t.getPopupContainer,E=t.forceRender,S=t.autoDestroy,R=t.destroyPopupOnHide,k=t.popup,M=t.popupClassName,j=t.popupStyle,N=t.popupPlacement,O=t.builtinPlacements,D=void 0===O?{}:O,P=t.popupAlign,_=t.zIndex,T=t.stretch,L=t.getPopupClassNameFromAlign,z=t.fresh,A=t.alignPoint,I=t.onPopupClick,H=t.onPopupAlign,F=t.arrow,W=t.popupMotion,$=t.maskMotion,B=t.popupTransitionName,V=t.popupAnimation,Y=t.maskTransitionName,K=t.maskAnimation,X=t.className,q=t.getTriggerDOMNode,G=a$(t,sU),U=aF(i.useState(!1),2),Z=U[0],J=U[1];li(function(){J(lq())},[]);var Q=i.useRef({}),ee=i.useContext(sz),et=i.useMemo(function(){return{registerSubPopup:function(e,t){Q.current[e]=t,null==ee||ee.registerSubPopup(e,t)}}},[ee]),en=lX(),er=aF(i.useState(null),2),eo=er[0],ei=er[1],ea=i.useRef(null),el=lV(function(e){ea.current=e,lR(e)&&eo!==e&&ei(e),null==ee||ee.registerSubPopup(en,e)}),es=aF(i.useState(null),2),eu=es[0],ec=es[1],ed=i.useRef(null),ef=lV(function(e){lR(e)&&eu!==e&&(ec(e),ed.current=e)}),ep=i.Children.only(l),ev=(null==ep?void 0:ep.props)||{},eh={},em=lV(function(e){var t,n;return(null==eu?void 0:eu.contains(e))||(null==(t=lB(eu))?void 0:t.host)===e||e===eu||(null==eo?void 0:eo.contains(e))||(null==(n=lB(eo))?void 0:n.host)===e||e===eo||Object.values(Q.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),eg=sH(a,W,V,B),ey=sH(a,$,K,Y),eb=aF(i.useState(f||!1),2),ew=eb[0],ex=eb[1],eC=null!=d?d:ew,eE=lV(function(e){void 0===d&&ex(e)});li(function(){ex(d||!1)},[d]);var eS=i.useRef(eC);eS.current=eC;var eR=i.useRef([]);eR.current=[];var ek=lV(function(e){var t;eE(e),(null!=(t=eR.current[eR.current.length-1])?t:eC)!==e&&(eR.current.push(e),null==p||p(e))}),eM=i.useRef(),ej=function(){clearTimeout(eM.current)},eN=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;ej(),0===t?ek(e):eM.current=setTimeout(function(){ek(e)},1e3*t)};i.useEffect(function(){return ej},[]);var eO=aF(i.useState(!1),2),eD=eO[0],eP=eO[1];li(function(e){(!e||eC)&&eP(!0)},[eC]);var e_=aF(i.useState(null),2),eT=e_[0],eL=e_[1],ez=aF(i.useState(null),2),eA=ez[0],eI=ez[1],eH=function(e){eI([e.clientX,e.clientY])},eF=(to=A&&null!==eA?eA:eu,ta=(ti=aF(i.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:D[N]||{}}),2))[0],tl=ti[1],ts=i.useRef(0),tu=i.useMemo(function(){return eo?sW(eo):[]},[eo]),tc=i.useRef({}),eC||(tc.current={}
140),td=lV(function(){if(eo&&to&&eC){let eC=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:B,o=x.x+e,i=x.y+t,a=Math.max(o,n.left),l=Math.max(i,n.top);return Math.max(0,(Math.min(o+_,n.right)-a)*(Math.min(i+O,n.bottom)-l))},e5=function(){er=(en=x.y+eh)+O,ea=(ei=x.x+ev)+_};var e,t,n,o,i=eo.ownerDocument,a=sF(eo).getComputedStyle(eo),l=a.width,s=a.height,u=a.position,c=eo.style.left,d=eo.style.top,f=eo.style.right,p=eo.style.bottom,v=eo.style.overflow,h=aV(aV({},D[N]),P),m=i.createElement("div");if(null==(e=eo.parentElement)||e.appendChild(m),m.style.left="".concat(eo.offsetLeft,"px"),m.style.top="".concat(eo.offsetTop,"px"),m.style.position=u,m.style.height="".concat(eo.offsetHeight,"px"),m.style.width="".concat(eo.offsetWidth,"px"),eo.style.left="0",eo.style.top="0",eo.style.right="auto",eo.style.bottom="auto",eo.style.overflow="hidden",Array.isArray(to))g={x:to[0],y:to[1],width:0,height:0};else{var g,y,b,w=to.getBoundingClientRect();w.x=null!=(y=w.x)?y:w.left,w.y=null!=(b=w.y)?b:w.top,g={x:w.x,y:w.y,width:w.width,height:w.height}}var x=eo.getBoundingClientRect();x.x=null!=(t=x.x)?t:x.left,x.y=null!=(n=x.y)?n:x.top;var C=i.documentElement,E=C.clientWidth,S=C.clientHeight,R=C.scrollWidth,k=C.scrollHeight,M=C.scrollTop,j=C.scrollLeft,O=x.height,_=x.width,T=g.height,L=g.width,z=h.htmlRegion,A="visible",I="visibleFirst";"scroll"!==z&&z!==I&&(z=A);var F=z===I,W=sV({left:-j,top:-M,right:R-j,bottom:k-M},tu),$=sV({left:0,top:0,right:E,bottom:S},tu),B=z===A?$:W,V=F?$:B;eo.style.left="auto",eo.style.top="auto",eo.style.right="0",eo.style.bottom="0";var Y=eo.getBoundingClientRect();eo.style.left=c,eo.style.top=d,eo.style.right=f,eo.style.bottom=p,eo.style.overflow=v,null==(o=eo.parentElement)||o.removeChild(m);var K=s$(Math.round(_/parseFloat(l)*1e3)/1e3),X=s$(Math.round(O/parseFloat(s)*1e3)/1e3);if(!(0===K||0===X||lR(to)&&!sI(to))){var q=h.offset,G=h.targetOffset,U=aF(sK(x,q),2),Z=U[0],J=U[1],Q=aF(sK(g,G),2),ee=Q[0],et=Q[1];g.x-=ee,g.y-=et;var en,er,ei,ea,el=aF(h.points||[],2),es=el[0],eu=sX(el[1]),ec=sX(es),ed=sq(g,eu),ef=sq(x,ec),ep=aV({},h),ev=ed.x-ef.x+Z,eh=ed.y-ef.y+J,em=eC(ev,eh),eg=eC(ev,eh,$),ey=sq(g,["t","l"]),eb=sq(x,["t","l"]),ew=sq(g,["b","r"]),ex=sq(x,["b","r"]),eE=h.overflow||{},eS=eE.adjustX,eR=eE.adjustY,ek=eE.shiftX,eM=eE.shiftY,ej=function(e){return"boolean"==typeof e?e:e>=0};e5();var eN=ej(eR),eO=ec[0]===eu[0];if(eN&&"t"===ec[0]&&(er>V.bottom||tc.current.bt)){var eD=eh;eO?eD-=O-T:eD=ey.y-ex.y-J;var eP=eC(ev,eD),e_=eC(ev,eD,$);eP>em||eP===em&&(!F||e_>=eg)?(tc.current.bt=!0,eh=eD,J=-J,ep.points=[sG(ec,0),sG(eu,0)]):tc.current.bt=!1}if(eN&&"b"===ec[0]&&(en<V.top||tc.current.tb)){var eT=eh;eO?eT+=O-T:eT=ew.y-eb.y-J;var eL=eC(ev,eT),ez=eC(ev,eT,$);eL>em||eL===em&&(!F||ez>=eg)?(tc.current.tb=!0,eh=eT,J=-J,ep.points=[sG(ec,0),sG(eu,0)]):tc.current.tb=!1}var eA=ej(eS),eI=ec[1]===eu[1];if(eA&&"l"===ec[1]&&(ea>V.right||tc.current.rl)){var eH=ev;eI?eH-=_-L:eH=ey.x-ex.x-Z;var eF=eC(eH,eh),eW=eC(eH,eh,$);eF>em||eF===em&&(!F||eW>=eg)?(tc.current.rl=!0,ev=eH,Z=-Z,ep.points=[sG(ec,1),sG(eu,1)]):tc.current.rl=!1}if(eA&&"r"===ec[1]&&(ei<V.left||tc.current.lr)){var e$=ev;eI?e$+=_-L:e$=ew.x-eb.x-Z;var eB=eC(e$,eh),eV=eC(e$,eh,$);eB>em||eB===em&&(!F||eV>=eg)?(tc.current.lr=!0,ev=e$,Z=-Z,ep.points=[sG(ec,1),sG(eu,1)]):tc.current.lr=!1}e5();var eY=!0===ek?0:ek;"number"==typeof eY&&(ei<$.left&&(ev-=ei-$.left-Z,g.x+L<$.left+eY&&(ev+=g.x-$.left+L-eY)),ea>$.right&&(ev-=ea-$.right-Z,g.x>$.right-eY&&(ev+=g.x-$.right+eY)));var eK=!0===eM?0:eM;"number"==typeof eK&&(en<$.top&&(eh-=en-$.top-J,g.y+T<$.top+eK&&(eh+=g.y-$.top+T-eK)),er>$.bottom&&(eh-=er-$.bottom-J,g.y>$.bottom-eK&&(eh+=g.y-$.bottom+eK)));
140var eX=x.x+ev,eq=x.y+eh,eG=g.x,eU=g.y,eZ=Math.max(eX,eG),eJ=Math.min(eX+_,eG+L),eQ=Math.max(eq,eU),e0=Math.min(eq+O,eU+T);null==H||H(eo,ep);var e1=Y.right-x.x-(ev+x.width),e2=Y.bottom-x.y-(eh+x.height);1===K&&(ev=Math.round(ev),e1=Math.round(e1)),1===X&&(eh=Math.round(eh),e2=Math.round(e2)),tl({ready:!0,offsetX:ev/K,offsetY:eh/X,offsetR:e1/K,offsetB:e2/X,arrowX:((eZ+eJ)/2-eX)/K,arrowY:((eQ+e0)/2-eq)/X,scaleX:K,scaleY:X,align:ep})}}}),li(tf=function(){tl(function(e){return aV(aV({},e),{},{ready:!1})})},[N]),li(function(){eC||tf()},[eC]),[ta.ready,ta.offsetX,ta.offsetY,ta.offsetR,ta.offsetB,ta.arrowX,ta.arrowY,ta.scaleX,ta.scaleY,ta.align,function(){ts.current+=1;var e=ts.current;Promise.resolve().then(function(){ts.current===e&&td()})}]),eW=aF(eF,11),e$=eW[0],eB=eW[1],eV=eW[2],eY=eW[3],eK=eW[4],eX=eW[5],eq=eW[6],eG=eW[7],eU=eW[8],eZ=eW[9],eJ=eW[10],eQ=aF((tp=void 0===s?"hover":s,i.useMemo(function(){var e=sA(null!=u?u:tp),t=sA(null!=c?c:tp),n=new Set(e),o=new Set(t);return Z&&(n.has("hover")&&(n.delete("hover"),n.add("click")),o.has("hover")&&(o.delete("hover"),o.add("click"))),[n,o]},[Z,tp,u,c])),2),e0=eQ[0],e1=eQ[1],e2=e0.has("click"),e5=e1.has("click")||e1.has("contextMenu"),e4=lV(function(){eD||eJ()});tv=function(){eS.current&&A&&e5&&eN(!1)},li(function(){if(eC&&eu&&eo){let i=function(){e4(),tv()};var e=sW(eu),t=sW(eo),n=sF(eo),o=new Set([n].concat(lr(e),lr(t)));return o.forEach(function(e){e.addEventListener("scroll",i,{passive:!0})}),n.addEventListener("resize",i,{passive:!0}),e4(),function(){o.forEach(function(e){e.removeEventListener("scroll",i),n.removeEventListener("resize",i)})}}},[eC,eu,eo]),li(function(){e4()},[eA,N]),li(function(){eC&&!(null!=D&&D[N])&&e4()},[JSON.stringify(P)]);var e8=i.useMemo(function(){return lE(function(e,t,n,o){for(var i=n.points,a=Object.keys(e),l=0;l<a.length;l+=1){var s,u=a[l];if(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}(null==(s=e[u])?void 0:s.points,i,o))return"".concat(t,"-placement-").concat(u)}return""}(D,a,eZ,A),null==L?void 0:L(eZ))},[eZ,L,D,a,A]);i.useImperativeHandle(n,function(){return{nativeElement:ed.current,popupElement:ea.current,forceAlign:e4}});var e6=aF(i.useState(0),2),e3=e6[0],e9=e6[1],e7=aF(i.useState(0),2),te=e7[0],tt=e7[1],tn=function(){if(T&&eu){var e=eu.getBoundingClientRect();e9(e.width),tt(e.height)}};function tr(e,t,n,o){eh[e]=function(i){var a;null==o||o(i),eN(t,n);for(var l=arguments.length,s=Array(l>1?l-1:0),u=1;u<l;u++)s[u-1]=arguments[u];null==(a=ev[e])||a.call.apply(a,[ev,i].concat(s))}}li(function(){eT&&(eJ(),eT(),eL(null))},[eT]),(e2||e5)&&(eh.onClick=function(e){var t;eS.current&&e5?eN(!1):!eS.current&&e2&&(eH(e),eN(!0));for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];null==(t=ev.onClick)||t.call.apply(t,[ev,e].concat(o))});var to,ti,ta,tl,ts,tu,tc,td,tf,tp,tv,th,tm,tg,ty,tb,tw=(th=void 0===x||x,(tm=i.useRef(eC)).current=eC,tg=i.useRef(!1),i.useEffect(function(){if(e5&&eo&&(!w||th)){var e=function(){tg.current=!1},t=function(e){var t;!tm.current||em((null==(t=e.composedPath)||null==(t=t.call(e))?void 0:t[0])||e.target)||tg.current||eN(!1)},n=sF(eo);n.addEventListener("pointerdown",e,!0),n.addEventListener("mousedown",t,!0),n.addEventListener("contextmenu",t,!0);var o=lB(eu);return o&&(o.addEventListener("mousedown",t,!0),o.addEventListener("contextmenu",t,!0)),function(){n.removeEventListener("pointerdown",e,!0),n.removeEventListener("mousedown",t,!0),n.removeEventListener("contextmenu",t,!0),o&&(o.removeEventListener("mousedown",t,!0),o.removeEventListener("contextmenu",t,!0))}}},[e5,eu,eo,w,th]),function(){tg.current=!0}),tx=e0.has("hover"),tC=e1.has("hover");tx&&(tr("onMouseEnter",!0,h,function(e){eH(e)}),tr("onPointerEnter",!0,h,function(e){eH(e)}),ty=function(e){(eC||eD)&&null!=eo&&eo.contains(e.target)&&eN(!0,h)},A&&(eh.onMouseMove=function(e){var t;null==(t=ev.onMouseMove)||t.call(ev,e)})),tC&&(tr("onMouseLeave",!1,g),tr("onPointerLeave",!1,g),tb=function(){eN(!1,g)}
140),e0.has("focus")&&tr("onFocus",!0,y),e1.has("focus")&&tr("onBlur",!1,b),e0.has("contextMenu")&&(eh.onContextMenu=function(e){var t;eS.current&&e1.has("contextMenu")?eN(!1):(eH(e),eN(!0)),e.preventDefault();for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];null==(t=ev.onContextMenu)||t.call.apply(t,[ev,e].concat(o))}),X&&(eh.className=lE(ev.className,X));var tE=aV(aV({},ev),eh),tS={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){G[e]&&(tS[e]=function(){for(var t,n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];null==(t=tE[e])||t.call.apply(t,[tE].concat(o)),G[e].apply(G,o)})});var tR=i.cloneElement(ep,aV(aV({},tE),tS)),tk=F?aV({},!0!==F?F:{}):null;return i.createElement(i.Fragment,null,i.createElement(lW,{disabled:!eC,ref:ef,onResize:function(){tn(),e4()}},i.createElement(sL,{getTriggerDOMNode:q},tR)),i.createElement(sz.Provider,{value:et},i.createElement(sT,{portal:e,ref:el,prefixCls:a,popup:k,className:lE(M,e8),style:j,target:eu,onMouseEnter:ty,onMouseLeave:tb,onPointerEnter:ty,zIndex:_,open:eC,keepDom:eD,fresh:z,onClick:I,onPointerDownCapture:tw,mask:w,motion:eg,maskMotion:ey,onVisibleChanged:function(e){eP(!1),eJ(),null==v||v(e)},onPrepare:function(){return new Promise(function(e){tn(),eL(function(){return e})})},forceRender:E,autoDestroy:S||R||!1,getPopupContainer:C,align:eZ,arrow:tk,arrowPos:{x:eX,y:eq},ready:e$,offsetX:eB,offsetY:eV,offsetR:eY,offsetB:eK,onAlign:e4,stretch:T,targetWidth:e3/eG,targetHeight:te/eU})))})}(lx);var sJ={TAB:9,ENTER:13,ESC:27,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40},sQ=sJ.ESC,s0=sJ.TAB,s1=(0,i.forwardRef)(function(e,t){var n=e.overlay,o=e.arrow,a=e.prefixCls,l=(0,i.useMemo)(function(){return"function"==typeof n?n():n},[n]),s=a3(t,lt(l));return i.createElement(i.Fragment,null,o&&i.createElement("div",{className:"".concat(a,"-arrow")}),i.cloneElement(l,{ref:a7(l)?s:void 0}))}),s2={adjustX:1,adjustY:1},s5=[0,0],s4={topLeft:{points:["bl","tl"],overflow:s2,offset:[0,-4],targetOffset:s5},top:{points:["bc","tc"],overflow:s2,offset:[0,-4],targetOffset:s5},topRight:{points:["br","tr"],overflow:s2,offset:[0,-4],targetOffset:s5},bottomLeft:{points:["tl","bl"],overflow:s2,offset:[0,4],targetOffset:s5},bottom:{points:["tc","bc"],overflow:s2,offset:[0,4],targetOffset:s5},bottomRight:{points:["tr","br"],overflow:s2,offset:[0,4],targetOffset:s5}},s8=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];let s6=i.forwardRef(function(e,t){var n,o,a,l,s,u,c,d,f,p,v,h,m,g,y=e.arrow,b=void 0!==y&&y,w=e.prefixCls,x=void 0===w?"rc-dropdown":w,C=e.transitionName,E=e.animation,S=e.align,R=e.placement,k=e.placements,M=e.getPopupContainer,j=e.showAction,N=e.hideAction,O=e.overlayClassName,D=e.overlayStyle,P=e.visible,_=e.trigger,T=void 0===_?["hover"]:_,L=e.autoFocus,z=e.overlay,A=e.children,I=e.onVisibleChange,H=a$(e,s8),F=aF(i.useState(),2),W=F[0],$=F[1],B="visible"in e?P:W,V=i.useRef(null),Y=i.useRef(null),K=i.useRef(null);i.useImperativeHandle(t,function(){return V.current});var X=function(e){$(e),null==I||I(e)};o=(n={visible:B,triggerRef:K,onVisibleChange:X,autoFocus:L,overlayRef:Y}).visible,a=n.triggerRef,l=n.onVisibleChange,s=n.autoFocus,u=n.overlayRef,c=i.useRef(!1),d=function(){if(o){var e,t;null==(e=a.current)||null==(t=e.focus)||t.call(e),null==l||l(!1)}},f=function(){var e;return null!=(e=u.current)&&!!e.focus&&(u.current.focus(),c.current=!0,!0)},p=function(e){switch(e.keyCode){case sQ:d();break;case s0:var t=!1;c.current||(t=f()),t?e.preventDefault():d()}},i.useEffect(function(){return o?(window.addEventListener("keydown",p),s&&sm(f,3),function(){window.removeEventListener("keydown",p),c.current=!1}):function(){c.current=!1}},[o]);var q=function(){return i.createElement(s1,{ref:Y,overlay:z,prefixCls:x,arrow:b})},G=i.cloneElement(A,{className:lE(null==(g=A.props)?void 0:g.className,B&&(void 0!==(v=e.openClassName)?v:"".concat(x,"-open"))),ref:a7(A)?a3(K,lt(A)):void 0}),U=N;return U||-1===T.indexOf("contextMenu")||(U=["click"]),i.createElement(sZ,aT({builtinPlacements:void 0===k?s4:k},H,{prefixCls:x,ref:V,popupClassName:lE(O,aA({},"".concat(x,"-show-arrow"),b)),popupStyle:D,action:T,showAction:j,hideAction:U,popupPlacement:void 0===R?"bottomLeft":R,popupAlign:S,popupTransitionName:C,popupAnimation:E,popupVisible:B,stretch:(h=e.minOverlayWidthMatchTrigger,m=e.alignPoint,"minOverlayWidthMatchTrigger"in e?h:!m)?"minWidth":"",popup:"function"==typeof z?q:q(),onPopupVisibleChange:X,onPopupClick:function(t){var n=e.onOverlayClick;$(!1),n&&n(t)},getPopupContainer:M}),G)});function s3(e){let{className:t,placement:n,children:o,overlay:l,alignPoint:s=!1,align:u,disabled:c,onVisibleChange:d}=e,f=c?[]:e.trigger||["click"],{mountContainer:p}=(0,i.useContext)(eY);return p&&(0,a.jsx)(s6,{...e,overlayClassName:t,prefixCls:"univer-dropdown",getPopupContainer:()=>p,trigger:f,animation:"slide-up",placement:n,overlay:l,alignPoint:s,align:u,onVisibleChange:d,children:o})}function s9(e){let t=e+"CollectionProvider",[n,o]=ta(t),[l,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=e=>{let{scope:t,children:n}=e,o=i.useRef(null),s=i.useRef(new Map).current;return(0,a.jsx)(l,{scope:t,itemMap:s,collectionRef:o,children:n})};u.displayName=t;let c=e+"CollectionSlot",d=eI(c),f=i.forwardRef((e,t)=>
140{let{scope:n,children:o}=e,i=eA(t,s(c,n).collectionRef);return(0,a.jsx)(d,{ref:i,children:o})});f.displayName=c;let p=e+"CollectionItemSlot",v="data-radix-collection-item",h=eI(p),m=i.forwardRef((e,t)=>{let{scope:n,children:o,...l}=e,u=i.useRef(null),c=eA(t,u),d=s(p,n);return i.useEffect(()=>(d.itemMap.set(u,{ref:u,...l}),()=>void d.itemMap.delete(u))),(0,a.jsx)(h,{[v]:"",ref:c,children:o})});return m.displayName=p,[{Provider:u,Slot:f,ItemSlot:m},function(t){let n=s(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},o]}var s7=i.createContext(void 0);function ue(e){let t=i.useContext(s7);return e||t||"ltr"}var ut="rovingFocusGroup.onEntryFocus",un={bubbles:!1,cancelable:!0},ur="RovingFocusGroup",[uo,ui,ua]=s9(ur),[ul,us]=ta(ur,[ua]),[uu,uc]=ul(ur),ud=i.forwardRef((e,t)=>(0,a.jsx)(uo.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,a.jsx)(uo.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,a.jsx)(uf,{...e,ref:t})})}));ud.displayName=ur;var uf=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:o,loop:l=!1,dir:s,currentTabStopId:u,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:f,preventScrollOnEntryFocus:p=!1,...v}=e,h=i.useRef(null),m=eA(t,h),g=ue(s),[y,b]=tf({prop:u,defaultProp:null!=c?c:null,onChange:d,caller:ur}),[w,x]=i.useState(!1),C=th(f),E=ui(n),S=i.useRef(!1),[R,k]=i.useState(0);return i.useEffect(()=>{let e=h.current;if(e)return e.addEventListener(ut,C),()=>e.removeEventListener(ut,C)},[C]),(0,a.jsx)(uu,{scope:n,orientation:o,dir:g,loop:l,currentTabStopId:y,onItemFocus:i.useCallback(e=>b(e),[b]),onItemShiftTab:i.useCallback(()=>x(!0),[]),onFocusableItemAdd:i.useCallback(()=>k(e=>e+1),[]),onFocusableItemRemove:i.useCallback(()=>k(e=>e-1),[]),children:(0,a.jsx)(tp.div,{tabIndex:w||0===R?-1:0,"data-orientation":o,...v,ref:m,style:{outline:"none",...e.style},onMouseDown:ti(e.onMouseDown,()=>{S.current=!0}),onFocus:ti(e.onFocus,e=>{let t=!S.current;if(e.target===e.currentTarget&&t&&!w){let t=new CustomEvent(ut,un);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=E().filter(e=>e.focusable);um([e.find(e=>e.active),e.find(e=>e.id===y),...e].filter(Boolean).map(e=>e.ref.current),p)}}S.current=!1}),onBlur:ti(e.onBlur,()=>x(!1))})})}),up="RovingFocusGroupItem",uv=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:o=!0,active:l=!1,tabStopId:s,children:u,...c}=e,d=tc(),f=s||d,p=uc(up,n),v=p.currentTabStopId===f,h=ui(n),{onFocusableItemAdd:m,onFocusableItemRemove:g,currentTabStopId:y}=p;return i.useEffect(()=>{if(o)return m(),()=>g()},[o,m,g]),(0,a.jsx)(uo.ItemSlot,{scope:n,id:f,focusable:o,active:l,children:(0,a.jsx)(tp.span,{tabIndex:v?0:-1,"data-orientation":p.orientation,...c,ref:t,onMouseDown:ti(e.onMouseDown,e=>{o?p.onItemFocus(f):e.preventDefault()}),onFocus:ti(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:ti(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var o;let i=(o=e.key,"rtl"!==n?o:"ArrowLeft"===o?"ArrowRight":"ArrowRight"===o?"ArrowLeft":o);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return uh[i]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let o=n.indexOf(e.currentTarget);n=p.loop?function(e,t){return e.map((n,o)=>e[(t+o)%e.length])}(n,o+1):n.slice(o+1)}setTimeout(()=>um(n))}}),children:"function"==typeof u?u({isCurrentTabStop:v,hasTabStop:null!=y}):u})})});uv.displayName=up;var uh={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function um(e,t=!1){let n=document.activeElement;for(let o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}var ug=["Enter"," "],uy=["ArrowUp","PageDown","End"],ub=["ArrowDown","PageUp","Home",...uy],uw={ltr:[...ug,"ArrowRight"],rtl:[...ug,"ArrowLeft"]},ux={ltr:["ArrowLeft"],rtl:["ArrowRight"]},uC="Menu",[uE,uS,uR]=s9(uC),[uk,uM]=ta(uC,[uR,oR,us]),uj=oR(),uN=us(),[uO,uD]=uk(uC),[uP,u_]=uk(uC),uT=e=>{let{__scopeMenu:t,open:n=!1,children:o,dir:l,onOpenChange:s,modal:u=!0}=e,c=uj(t),[d,f]=i.useState(null),p=i.useRef(!1),v=th(s),h=ue(l);return i.useEffect(()=>{let e=()=>{p.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>p.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,a.jsx)(oj,{...c,children:(0,a.jsx)(uO,{scope:t,open:n,onOpenChange:v,content:d,onContentChange:f,children:(0,a.jsx)(uP,{scope:t,onClose:i.useCallback(()=>v(!1),[v]),isUsingKeyboardRef:p,dir:h,modal:u,children:o})})})};uT.displayName=uC;var uL=i.forwardRef((e,t)=>
140{let{__scopeMenu:n,...o}=e,i=uj(n);return(0,a.jsx)(oO,{...i,...o,ref:t})});uL.displayName="MenuAnchor";var uz="MenuPortal",[uA,uI]=uk(uz,{forceMount:void 0}),uH=e=>{let{__scopeMenu:t,forceMount:n,children:o,container:i}=e,l=uD(uz,t);return(0,a.jsx)(uA,{scope:t,forceMount:n,children:(0,a.jsx)(tP,{present:n||l.open,children:(0,a.jsx)(tD,{asChild:!0,container:i,children:o})})})};uH.displayName=uz;var uF="MenuContent",[uW,u$]=uk(uF),uB=i.forwardRef((e,t)=>{let n=uI(uF,e.__scopeMenu),{forceMount:o=n.forceMount,...i}=e,l=uD(uF,e.__scopeMenu),s=u_(uF,e.__scopeMenu);return(0,a.jsx)(uE.Provider,{scope:e.__scopeMenu,children:(0,a.jsx)(tP,{present:o||l.open,children:(0,a.jsx)(uE.Slot,{scope:e.__scopeMenu,children:s.modal?(0,a.jsx)(uV,{...i,ref:t}):(0,a.jsx)(uY,{...i,ref:t})})})})}),uV=i.forwardRef((e,t)=>{let n=uD(uF,e.__scopeMenu),o=i.useRef(null),l=eA(t,o);return i.useEffect(()=>{let e=o.current;if(e)return nb(e)},[]),(0,a.jsx)(uX,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ti(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),uY=i.forwardRef((e,t)=>{let n=uD(uF,e.__scopeMenu);return(0,a.jsx)(uX,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),uK=eI("MenuContent.ScrollLock"),uX=i.forwardRef((e,t)=>{let{__scopeMenu:n,loop:o=!1,trapFocus:l,onOpenAutoFocus:s,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:v,onInteractOutside:h,onDismiss:m,disableOutsideScroll:g,...y}=e,b=uD(uF,n),w=u_(uF,n),x=uj(n),C=uN(n),E=uS(n),[S,R]=i.useState(null),k=i.useRef(null),M=eA(t,k,b.onContentChange),j=i.useRef(0),N=i.useRef(""),O=i.useRef(0),D=i.useRef(null),P=i.useRef("right"),_=i.useRef(0),T=g?nf:i.Fragment;i.useEffect(()=>()=>window.clearTimeout(j.current),[]),tL();let L=i.useCallback(e=>{var t,n;return P.current===(null==(t=D.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:o}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let l=t[e],s=t[a],u=l.x,c=l.y,d=s.x,f=s.y;c>o!=f>o&&n<(d-u)*(o-c)/(f-c)+u&&(i=!i)}return i}({x:e.clientX,y:e.clientY},t)}(e,null==(n=D.current)?void 0:n.area)},[]);return(0,a.jsx)(uW,{scope:n,searchRef:N,onItemEnter:i.useCallback(e=>{L(e)&&e.preventDefault()},[L]),onItemLeave:i.useCallback(e=>{var t;L(e)||(null==(t=k.current)||t.focus(),R(null))},[L]),onTriggerLeave:i.useCallback(e=>{L(e)&&e.preventDefault()},[L]),pointerGraceTimerRef:O,onPointerGraceIntentChange:i.useCallback(e=>{D.current=e},[]),children:(0,a.jsx)(T,{...g?{as:uK,allowPinchZoom:!0}:void 0,children:(0,a.jsx)(tR,{asChild:!0,trapped:l,onMountAutoFocus:ti(s,e=>{var t;e.preventDefault(),null==(t=k.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,a.jsx)(tb,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:v,onInteractOutside:h,onDismiss:m,children:(0,a.jsx)(ud,{asChild:!0,...C,dir:w.dir,orientation:"vertical",loop:o,currentTabStopId:S,onCurrentTabStopIdChange:R,onEntryFocus:ti(d,e=>{w.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,a.jsx)(oT,{role:"menu","aria-orientation":"vertical","data-state":cd(b.open),"data-radix-menu-content":"",dir:w.dir,...x,...y,ref:M,style:{outline:"none",...y.style},onKeyDown:ti(y.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,o=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&o&&(e=>{var t,n;let o=N.current+e,i=E().filter(e=>!e.disabled),a=document.activeElement,l=null==(t=i.find(e=>
140e.ref.current===a))?void 0:t.textValue,s=function(e,t,n){var o;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=n?e.indexOf(n):-1,l=(o=Math.max(a,0),e.map((t,n)=>e[(o+n)%e.length]));1===i.length&&(l=l.filter(e=>e!==n));let s=l.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return s!==n?s:void 0}(i.map(e=>e.textValue),o,l),u=null==(n=i.find(e=>e.textValue===s))?void 0:n.ref.current;(function e(t){N.current=t,window.clearTimeout(j.current),""!==t&&(j.current=window.setTimeout(()=>e(""),1e3))})(o),u&&setTimeout(()=>u.focus())})(e.key));let i=k.current;if(e.target!==i||!ub.includes(e.key))return;e.preventDefault();let a=E().filter(e=>!e.disabled).map(e=>e.ref.current);uy.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(a)}),onBlur:ti(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(j.current),N.current="")}),onPointerMove:ti(e.onPointerMove,cv(e=>{let t=e.target,n=_.current!==e.clientX;e.currentTarget.contains(t)&&n&&(P.current=e.clientX>_.current?"right":"left",_.current=e.clientX)}))})})})})})})});uB.displayName=uF;var uq=i.forwardRef((e,t)=>{let{__scopeMenu:n,...o}=e;return(0,a.jsx)(tp.div,{role:"group",...o,ref:t})});uq.displayName="MenuGroup";var uG=i.forwardRef((e,t)=>{let{__scopeMenu:n,...o}=e;return(0,a.jsx)(tp.div,{...o,ref:t})});uG.displayName="MenuLabel";var uU="MenuItem",uZ="menu.itemSelect",uJ=i.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:o,...l}=e,s=i.useRef(null),u=u_(uU,e.__scopeMenu),c=u$(uU,e.__scopeMenu),d=eA(t,s),f=i.useRef(!1);return(0,a.jsx)(uQ,{...l,ref:d,disabled:n,onClick:ti(e.onClick,()=>{let e=s.current;if(!n&&e){let t=new CustomEvent(uZ,{bubbles:!0,cancelable:!0});e.addEventListener(uZ,e=>null==o?void 0:o(e),{once:!0}),tv(e,t),t.defaultPrevented?f.current=!1:u.onClose()}}),onPointerDown:t=>{var n;null==(n=e.onPointerDown)||n.call(e,t),f.current=!0},onPointerUp:ti(e.onPointerUp,e=>{var t;f.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:ti(e.onKeyDown,e=>{let t=""!==c.searchRef.current;n||t&&" "===e.key||ug.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});uJ.displayName=uU;var uQ=i.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:o=!1,textValue:l,...s}=e,u=u$(uU,n),c=uN(n),d=i.useRef(null),f=eA(t,d),[p,v]=i.useState(!1),[h,m]=i.useState("");return i.useEffect(()=>{var e;let t=d.current;t&&m((null!=(e=t.textContent)?e:"").trim())},[s.children]),(0,a.jsx)(uE.ItemSlot,{scope:n,disabled:o,textValue:null!=l?l:h,children:(0,a.jsx)(uv,{asChild:!0,...c,focusable:!o,children:(0,a.jsx)(tp.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:f,onPointerMove:ti(e.onPointerMove,cv(e=>{o?u.onItemLeave(e):(u.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ti(e.onPointerLeave,cv(e=>u.onItemLeave(e))),onFocus:ti(e.onFocus,()=>v(!0)),onBlur:ti(e.onBlur,()=>v(!1))})})})}),u0=i.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:o,...i}=e;return(0,a.jsx)(u9,{scope:e.__scopeMenu,checked:n,children:(0,a.jsx)(uJ,{role:"menuitemcheckbox","aria-checked":cf(n)?"mixed":n,...i,ref:t,"data-state":cp(n),onSelect:ti(i.onSelect,()=>null==o?void 0:o(!!cf(n)||!n),{checkForDefaultPrevented:!1})})})});u0.displayName="MenuCheckboxItem";var u1="MenuRadioGroup",[u2,u5]=uk(u1,{value:void 0,onValueChange:()=>{}}),u4=i.forwardRef((e,t)=>{let{value:n,onValueChange:o,...i}=e,l=th(o);return(0,a.jsx)(u2,{scope:e.__scopeMenu,value:n,onValueChange:l,children:(0,a.jsx)(uq,{...i,ref:t})})});u4.displayName=u1;var u8="MenuRadioItem",u6=i.forwardRef((e,t)=>{let{value:n,...o}=e,i=u5(u8,e.__scopeMenu),l=n===i.value;return(0,a.jsx)(u9,{scope:e.__scopeMenu,checked:l,children:(0,a.jsx)(uJ,{role:"menuitemradio","aria-checked":l,...o,ref:t,"data-state":cp(l),onSelect:ti(o.onSelect,()=>{var e;return null==(e=i.onValueChange)?void 0:e.call(i,n)},{checkForDefaultPrevented:!1})})})});u6.displayName=u8;var u3="MenuItemIndicator",[u9,u7]=uk(u3,{checked:!1}),ce=i.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:o,...i}=e,l=u7(u3,n);return(0,a.jsx)(tP,{present:o||cf(l.checked)||!0===l.checked,children:(0,a.jsx)(tp.span,{...i,ref:t,"data-state":cp(l.checked)})})});ce.displayName=u3;var ct=i.forwardRef((e,t)=>
140{let{__scopeMenu:n,...o}=e;return(0,a.jsx)(tp.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});ct.displayName="MenuSeparator";var cn=i.forwardRef((e,t)=>{let{__scopeMenu:n,...o}=e,i=uj(n);return(0,a.jsx)(oA,{...i,...o,ref:t})});cn.displayName="MenuArrow";var cr="MenuSub",[co,ci]=uk(cr),ca=e=>{let{__scopeMenu:t,children:n,open:o=!1,onOpenChange:l}=e,s=uD(cr,t),u=uj(t),[c,d]=i.useState(null),[f,p]=i.useState(null),v=th(l);return i.useEffect(()=>(!1===s.open&&v(!1),()=>v(!1)),[s.open,v]),(0,a.jsx)(oj,{...u,children:(0,a.jsx)(uO,{scope:t,open:o,onOpenChange:v,content:f,onContentChange:p,children:(0,a.jsx)(co,{scope:t,contentId:tc(),triggerId:tc(),trigger:c,onTriggerChange:d,children:n})})})};ca.displayName=cr;var cl="MenuSubTrigger",cs=i.forwardRef((e,t)=>{let n=uD(cl,e.__scopeMenu),o=u_(cl,e.__scopeMenu),l=ci(cl,e.__scopeMenu),s=u$(cl,e.__scopeMenu),u=i.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=s,f={__scopeMenu:e.__scopeMenu},p=i.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return i.useEffect(()=>p,[p]),i.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,a.jsx)(uL,{asChild:!0,...f,children:(0,a.jsx)(uQ,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":l.contentId,"data-state":cd(n.open),...e,ref:ez(t,l.onTriggerChange),onClick:t=>{var o;null==(o=e.onClick)||o.call(e,t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ti(e.onPointerMove,cv(t=>{s.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||u.current||(s.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:ti(e.onPointerLeave,cv(e=>{var t,o;p();let i=null==(t=n.content)?void 0:t.getBoundingClientRect();if(i){let t=null==(o=n.content)?void 0:o.dataset.side,a="right"===t,l=i[a?"left":"right"],u=i[a?"right":"left"];s.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:l,y:i.top},{x:u,y:i.top},{x:u,y:i.bottom},{x:l,y:i.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:ti(e.onKeyDown,t=>{var i;let a=""!==s.searchRef.current;e.disabled||a&&" "===t.key||uw[o.dir].includes(t.key)&&(n.onOpenChange(!0),null==(i=n.content)||i.focus(),t.preventDefault())})})})});cs.displayName=cl;var cu="MenuSubContent",cc=i.forwardRef((e,t)=>{let n=uI(uF,e.__scopeMenu),{forceMount:o=n.forceMount,...l}=e,s=uD(uF,e.__scopeMenu),u=u_(uF,e.__scopeMenu),c=ci(cu,e.__scopeMenu),d=i.useRef(null),f=eA(t,d);return(0,a.jsx)(uE.Provider,{scope:e.__scopeMenu,children:(0,a.jsx)(tP,{present:o||s.open,children:(0,a.jsx)(uE.Slot,{scope:e.__scopeMenu,children:(0,a.jsx)(uX,{id:c.contentId,"aria-labelledby":c.triggerId,...l,ref:f,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null==(t=d.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:ti(e.onFocusOutside,e=>{e.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:ti(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:ti(e.onKeyDown,e=>{var t;let n=e.currentTarget.contains(e.target),o=ux[u.dir].includes(e.key);n&&o&&(s.onOpenChange(!1),null==(t=c.trigger)||t.focus(),e.preventDefault())})})})})})});function cd(e){return e?"open":"closed"}function cf(e){return"indeterminate"===e}function cp(e){return cf(e)?"indeterminate":e?"checked":"unchecked"}function cv(e){return t=>"mouse"===t.pointerType?e(t):void 0}cc.displayName=cu;var ch="DropdownMenu",[cm]=ta(ch,[uM]),cg=uM(),[cy,cb]=cm(ch),cw=e=>{let{__scopeDropdownMenu:t,children:n,dir:o,open:l,defaultOpen:s,onOpenChange:u,modal:c=!0}=e,d=cg(t),f=i.useRef(null),[p,v]=tf({prop:l,defaultProp:null!=s&&s,onChange:u,caller:ch});return(0,a.jsx)(cy,{scope:t,triggerId:tc(),triggerRef:f,contentId:tc(),open:p,onOpenChange:v,onOpenToggle:i.useCallback(()=>v(e=>!e),[v]),modal:c,children:(0,a.jsx)(uT,{...d,open:p,onOpenChange:v,dir:o,modal:c,children:n})})};cw.displayName=ch;var cx="DropdownMenuTrigger",cC=i.forwardRef((e,t)=>
140{let{__scopeDropdownMenu:n,disabled:o=!1,...i}=e,l=cb(cx,n),s=cg(n);return(0,a.jsx)(uL,{asChild:!0,...s,children:(0,a.jsx)(tp.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...i,ref:ez(t,l.triggerRef),onPointerDown:ti(e.onPointerDown,e=>{!o&&0===e.button&&!1===e.ctrlKey&&(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:ti(e.onKeyDown,e=>{o||(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});cC.displayName=cx;var cE=e=>{let{__scopeDropdownMenu:t,...n}=e,o=cg(t);return(0,a.jsx)(uH,{...o,...n})};cE.displayName="DropdownMenuPortal";var cS="DropdownMenuContent",cR=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,l=cb(cS,n),s=cg(n),u=i.useRef(!1);return(0,a.jsx)(uB,{id:l.contentId,"aria-labelledby":l.triggerId,...s,...o,ref:t,onCloseAutoFocus:ti(e.onCloseAutoFocus,e=>{var t;u.current||null==(t=l.triggerRef.current)||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:ti(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,o=2===t.button||n;(!l.modal||o)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});cR.displayName=cS,i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,i=cg(n);return(0,a.jsx)(uq,{...i,...o,ref:t})}).displayName="DropdownMenuGroup",i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,i=cg(n);return(0,a.jsx)(uG,{...i,...o,ref:t})}).displayName="DropdownMenuLabel";var ck=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,i=cg(n);return(0,a.jsx)(uJ,{...i,...o,ref:t})});ck.displayName="DropdownMenuItem";var cM=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,i=cg(n);return(0,a.jsx)(u0,{...i,...o,ref:t})});cM.displayName="DropdownMenuCheckboxItem";var cj=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,i=cg(n);return(0,a.jsx)(u4,{...i,...o,ref:t})});cj.displayName="DropdownMenuRadioGroup";var cN=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,i=cg(n);return(0,a.jsx)(u6,{...i,...o,ref:t})});cN.displayName="DropdownMenuRadioItem";var cO=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,i=cg(n);return(0,a.jsx)(ce,{...i,...o,ref:t})});cO.displayName="DropdownMenuItemIndicator";var cD=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,i=cg(n);return(0,a.jsx)(ct,{...i,...o,ref:t})});cD.displayName="DropdownMenuSeparator",i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,i=cg(n);return(0,a.jsx)(cn,{...i,...o,ref:t})}).displayName="DropdownMenuArrow";var cP=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,i=cg(n);return(0,a.jsx)(cs,{...i,...o,ref:t})});cP.displayName="DropdownMenuSubTrigger";var c_=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,i=cg(n);return(0,a.jsx)(cc,{...i,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});c_.displayName="DropdownMenuSubContent";var cT=e=>{let{__scopeDropdownMenu:t,children:n,open:o,onOpenChange:i,defaultOpen:l}=e,s=cg(t),[u,c]=tf({prop:o,defaultProp:null!=l&&l,onChange:i,caller:"DropdownMenuSub"});return(0,a.jsx)(ca,{...s,open:u,onOpenChange:c,children:n})};function cL({...e}){return(0,a.jsx)(cw,{"data-slot":"dropdown-menu",...e})}function cz({...e}){return(0,a.jsx)(cE,{"data-slot":"dropdown-menu-portal",...e})}function cA({...e}){return(0,a.jsx)(cC,{"data-slot":"dropdown-menu-trigger",...e})}function cI({...e}){return(0,a.jsx)(cT,{"data-slot":"dropdown-menu-sub",...e})}function cH({...e}){return(0,a.jsx)(cj,{"data-slot":"dropdown-menu-radio-group",...e})}function cF({className:e,inset:t,children:n,...o}){return(0,a.jsxs)(cP,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:eO(`
141                  univer-flex univer-cursor-default univer-select-none univer-items-center univer-justify-between
142                  univer-gap-2 univer-rounded univer-px-2 univer-py-1.5 univer-text-sm univer-outline-none
143                  data-[state=open]:univer-bg-gray-100
144                  focus:univer-bg-gray-100
145                  dark:data-[state=open]:!univer-bg-gray-600 dark:focus:!univer-bg-gray-600
146                  [&_svg]:univer-pointer-events-none [&_svg]:univer-size-4 [&_svg]:univer-shrink-0
147                `,e),...o,children:[n,(0,a.jsx)(j,{className:"ml-auto"})]})}function cW({className:e,...t}){return(0,a.jsx)(c_,{"data-slot":"dropdown-menu-sub-content",className:eO(`
148                  data-[state=open]:univer-animate-in data-[state=open]:univer-fade-in-0
149                  data-[state=open]:univer-zoom-in-95
150                  data-[state=closed]:univer-animate-out data-[state=closed]:univer-fade-out-0
151                  data-[state=closed]:univer-zoom-out-95
152                  data-[side=bottom]:univer-slide-in-from-top-2
153                  data-[side=left]:univer-slide-in-from-right-2
154                  data-[side=right]:univer-slide-in-from-left-2
155                  data-[side=top]:univer-slide-in-from-bottom-2
156                  univer-z-[1080] univer-box-border univer-max-h-[var(--radix-popper-available-height)]
157                  univer-overflow-y-auto univer-rounded-md univer-bg-white univer-p-1.5 univer-text-gray-900
158                  univer-shadow-md
159                  dark:!univer-bg-gray-700 dark:!univer-text-white
160                `,e1,eQ,e),...t})}function c$({className:e,sideOffset:t=4,...n}){return(0,a.jsx)(cE,{children:(0,a.jsx)(cR,{"data-slot":"dropdown-menu-content",sideOffset:t,className:eO(`
161                      data-[state=open]:univer-animate-in data-[state=open]:univer-fade-in-0
162                      data-[state=open]:univer-zoom-in-95
163                      data-[state=closed]:univer-animate-out data-[state=closed]:univer-fade-out-0
164                      data-[state=closed]:univer-zoom-out-95
165                      data-[side=bottom]:univer-slide-in-from-top-2
166                      data-[side=left]:univer-slide-in-from-right-2
167                      data-[side=right]:univer-slide-in-from-left-2
168                      data-[side=top]:univer-slide-in-from-bottom-2
169                      univer-z-[1080] univer-box-border univer-max-h-[var(--radix-popper-available-height)]
170                      univer-overflow-y-auto univer-rounded-md univer-bg-white univer-p-1.5 univer-text-gray-900
171                      univer-shadow-md
172                      dark:!univer-bg-gray-700 dark:!univer-text-white
173                    `,e1,eQ,e),...n})})}function cB({className:e,inset:t,variant:n="default",...o}){return(0,a.jsx)(ck,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:eO(`
174                  univer-relative univer-flex univer-cursor-default univer-select-none univer-items-center univer-gap-2
175                  univer-rounded univer-px-2 univer-py-1.5 univer-text-sm univer-outline-none univer-transition-colors
176                  data-[disabled]:univer-pointer-events-none data-[disabled]:univer-opacity-50
177                  focus:univer-bg-gray-100
178                  dark:focus:!univer-bg-gray-600
179                  [&>svg]:univer-size-4 [&>svg]:univer-shrink-0
180                `,e),...o})}function cV({className:e,children:t,hideIndicator:n,checked:o,...i}){return(0,a.jsxs)(cM,{"data-slot":"dropdown-menu-checkbox-item",className:eO(`
181                  univer-relative univer-flex univer-cursor-default univer-select-none univer-items-center
182                  univer-rounded univer-py-1.5 univer-pr-2 univer-text-sm univer-outline-none univer-transition-colors
183                  data-[disabled]:univer-pointer-events-none data-[disabled]:univer-opacity-50
184                  focus:univer-bg-gray-100
185                  dark:focus:!univer-bg-gray-600
186                `,{"univer-pl-8":!n,"univer-pl-2":n},e),checked:o,...i,children:[!n&&(0,a.jsx)("span",{className:"univer-absolute univer-left-2 univer-flex univer-h-3.5 univer-w-3.5 univer-items-center univer-justify-center",children:(0,a.jsx)(cO,{children:(0,a.jsx)(f,{className:"univer-block univer-size-4 univer-fill-current univer-text-primary-600"})})}),t]})}function cY({className:e,children:t,hideIndicator:n,...o}){return(0,a.jsxs)(cN,{"data-slot":"dropdown-menu-radio-item",className:eO(`
187                  univer-relative univer-flex univer-cursor-default univer-select-none univer-items-center
188                  univer-rounded univer-py-1.5 univer-pr-2 univer-text-sm univer-outline-none univer-transition-colors
189                  data-[disabled]:univer-pointer-events-none data-[disabled]:univer-opacity-50
190                  focus:univer-bg-gray-100
191                  dark:focus:!univer-bg-gray-600
192                `,{"univer-pl-8":!n,"univer-pl-2":n},e),...o,children:[!n&&(0,a.jsx)("span",{className:"univer-absolute univer-left-2 univer-flex univer-h-3.5 univer-w-3.5 univer-items-center univer-justify-center",children:(0,a.jsx)(cO,{children:(0,a.jsx)(f,{className:"univer-block univer-size-4 univer-fill-current univer-text-primary-600"})})}),t]})}function cK({className:e,...t}){return(0,a.jsx)(cD,{className:eO("-univer-mx-1 univer-my-1 univer-h-px univer-bg-gray-200 dark:!univer-bg-gray-600",e),...t})}function cX(e){let{children:t,items:n,disabled:o,open:l,onOpenChange:s,...u}=e,[c,d]=(0,i.useState)(!1),f=void 0!==l;return(0,a.jsxs)(cL,{modal:!1,open:f?l:c,onOpenChange:function(e){o||(f||d(e),null==s||s(e))},children:[(0,a.jsx)(cA,{asChild:!0,children:t}),(0,a.jsx)(c$,{className:"univer-text-sm",collisionPadding:{top:12,bottom:12},onWheel:e=>e.stopPropagation(),...u,children:n.map((e,t)=>(function e(t,n){var o;let{className:i,type:l}=t;return"separator"===l?(0,a.jsx)(cK,{className:i},n):"radio"===l?(0,a.jsx)(cH,{className:i,value:t.value,onValueChange:t.onSelect,children:t.options.map((e,n)=>{if("type"in e){if("separator"===e.type)return(0,a.jsx)(cK,{className:e.className},n)}else{if(void 0===e.value)throw Error("[DropdownMenu]: `value` is required");return(0,a.jsx)(cY,{value:e.value,disabled:e.disabled,hideIndicator:t.hideIndicator,children:e.label},e.value)}return null})},n):"checkbox"===l?(0,a.jsx)(cV,{className:i,disabled:t.disabled,checked:t.checked,onSelect:()=>{var e;null==(e=t.onSelect)||e.call(t,t.value)},children:t.label},n):"item"===l?(0,a.jsx)(cB,{className:i,disabled:t.disabled,onSelect:()=>{var e;null==(e=t.onSelect)||e.call(t,t)},children:t.children},n):"subItem"===l?(0,a.jsxs)(cI,{children:[(0,a.jsx)(cF,{children:t.children}),(0,a.jsx)(cz,{children:(0,a.jsx)(cW,{sideOffset:12,children:null==(o=t.options)?void 0:o.map((t,n)=>e(t,n))})})]},n):void 0})(e,t))})]})}let cq=(0,i.createContext)(!1),cG=e=>{let{label:t,desc:n,children:o,style:l,className:s,error:u,contentStyle:c,collapsable:d=!1,defaultCollapsed:f=!1}=e,[p,v]=(0,i.useState)(f);return(0,a.jsx)(cq.Provider,{value:!0,children:(0,a.jsxs)("div",{"data-u-comp":"form-layout",className:eO("univer-mb-3 univer-flex univer-flex-col",s),style:l,children:[t&&(0,a.jsxs)("div",{className:eO("univer-mb-2 univer-flex univer-min-h-3.5 univer-items-center univer-text-sm univer-text-gray-900 dark:!univer-text-white",{"univer-cursor-pointer":d}),onClick:()=>v(!p),children:[t,d&&(0,a.jsx)(O,{className:eO("univer-ml-1 univer-transition-transform",{"univer-rotate-180":p})})]}),p&&d?null:(0,a.jsxs)(a.Fragment,{children:[n&&(0,a.jsx)("div",{className:"univer-mt-1 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",children:n}),o?(0,a.jsxs)("div",{className:eO("last:univer-mb-0 [&_[data-u-comp=in
192put]]:univer-w-full [&_[data-u-comp=select]]:univer-w-full",{"[&_[data-u-comp=input]]:univer-border-red-500":u,"[&_[data-u-comp=select]]:univer-border-red-500":u}),style:c,children:[o,u?(0,a.jsx)("div",{className:"univer-mt-1 univer-text-xs univer-text-red-500",children:u}):null]}):null]})]})})};function cU(e){let{className:t,value:n=0,total:o=0,loop:l,text:s,onChange:u}=e,c=(0,i.useMemo)(()=>null!=s?s:`${n}/${o}`,[n,o,s]),d=o>0;return(0,a.jsx)("div",{"data-u-comp":"pager",className:eO("univer-flex univer-flex-shrink-0 univer-items-center univer-text-sm univer-text-gray-700 dark:!univer-text-gray-400",t),children:d?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{"data-u-comp":"pager-left-arrow",className:"univer-inline-flex univer-size-4 univer-cursor-pointer univer-items-center univer-rounded univer-border-none univer-bg-transparent univer-p-0 hover:univer-bg-gray-50 dark:hover:!univer-bg-gray-600",type:"button",role:"button",onClick:()=>{1===n?l&&(null==u||u(o)):null==u||u(n-1)},children:(0,a.jsx)(k,{})}),(0,a.jsx)("span",{className:"univer-mx-1",children:c}),(0,a.jsx)("button",{"data-u-comp":"pager-right-arrow",className:"univer-inline-flex univer-size-4 univer-cursor-pointer univer-items-center univer-rounded univer-border-none univer-bg-transparent univer-p-0 hover:univer-bg-gray-50 dark:hover:!univer-bg-gray-600",type:"button",role:"button",onClick:()=>{n===o?l&&(null==u||u(1)):null==u||u(n+1)},children:(0,a.jsx)(j,{})})]}):(0,a.jsx)("div",{className:"univer-mx-1",children:c})})}let cZ=`
193    univer-flex univer-cursor-pointer univer-items-center univer-justify-center univer-border-none
194    univer-bg-transparent univer-p-0 univer-text-current
195    hover:univer-text-white
196`;function cJ(e){let{className:t,images:n,open:o,onOpenChange:s}=e,[u,c]=(0,i.useState)(!1),[d,f]=(0,i.useState)(0),[p,v]=(0,i.useState)(1),h=(0,i.useRef)(null),m=(0,i.useMemo)(()=>n[d],[d,n]);if((0,i.useEffect)(()=>{o&&h.current&&h.current.focus()},[o]),(0,i.useEffect)(()=>{if(!o)return;let e=e=>{"Escape"===e.key&&(null==s||s(!1))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[o,s]),(0,i.useEffect)(()=>{if(o)c(!0);else{let e=setTimeout(()=>{c(!1)},150);return()=>clearTimeout(e)}},[o]),!o&&!u)return null;function g(e){if("reset"===e)return void v(1);let t=p+e;t<.5||t>2||v(t)}return(0,l.createPortal)((0,a.jsxs)("div",{"data-u-comp":"gallery",role:"dialog","aria-modal":"true","aria-label":"Image gallery",tabIndex:-1,ref:h,className:eO(`
197                  univer-absolute univer-inset-0 univer-z-[1080] univer-flex univer-size-full univer-select-none
198                  univer-items-center univer-justify-center
199                `,{"univer-animate-in univer-fade-in":o,"univer-animate-out univer-fade-out":!o},t),children:[(0,a.jsx)("div",{className:"univer-absolute univer-inset-0 univer-size-full univer-bg-gray-900 univer-opacity-80","aria-hidden":"true",onClick:()=>null==s?void 0:s(!1)}),(0,a.jsx)("div",{className:"univer-relative",children:m&&(0,a.jsx)("img",{className:"univer-max-h-[40vh] univer-max-w-[60vw] univer-transition-transform univer-duration-300 univer-ease-out",style:{transform:`scale(${p})`},src:m,alt:`Image ${d+1} of ${n.length}`,draggable:!1})}),(0,a.jsxs)("footer",{className:"univer-absolute univer-bottom-6 univer-left-1/2 univer-flex -univer-translate-x-1/2 univer-items-center univer-gap-3 univer-rounded-full univer-bg-gray-800 univer-px-6 univer-py-3 univer-text-gray-400",children:[(0,a.jsx)(cU,{className:"!univer-text-gray-400 [&_[data-u-comp=pager-left-arrow]:hover]:!univer-bg-gray-600 [&_[data-u-comp=pager-right-arrow]:hover]:!univer-bg-gray-600",value:d+1,total:n.length,onChange:e=>f(e-1)}),(0,a.jsx)("button",{type:"button","aria-label":"Zoom in",className:cZ,onClick:()=>g(.25),children:(0,a.jsx)(I,{"aria-hidden":"true"})}),(0,a.jsx)("button",{type:"button","aria-label":"Zoom out",className:cZ,onClick:()=>g(-.25),children:(0,a.jsx)(F,{"aria-hidden":"true"})}),(0,a.jsx)("button",{type:"button","aria-label":"Reset zoom",className:cZ,onClick:()=>g("reset"),children:(0,a.jsx)(P,{"aria-hidden":"true"})})]})]}),document.body)}var cQ,c0,c1,c2,c5,c4,c8,c6="HoverCard",[c3]=ta(c6,[oR]),c9=oR(),[c7,de]=c3(c6),dt=e=>{let{__scopeHoverCard:t,children:n,open:o,defaultOpen:l,onOpenChange:s,openDelay:u=700,closeDelay:c=300}=e,d=c9(t),f=i.useRef(0),p=i.useRef(0),v=i.useRef(!1),h=i.useRef(!1),[m,g]=tf({prop:o,defaultProp:null!=l&&l,onChange:s,caller:c6}),y=i.useCallback(()=>{clearTimeout(p.current),f.current=window.setTimeout(()=>g(!0),u)},[u,g]),b=i.useCallback(()=>{clearTimeout(f.current),v.current||h.current||(p.current=window.setTimeout(()=>g(!1),c))},[c,g]),w=i.useCallback(()=>g(!1),[g]);return i.useEffect(()=>()=>{clearTimeout(f.current),clearTimeout(p.current)},[]),(0,a.jsx)(c7,{scope:t,open:m,onOpenChange:g,onOpen:y,onClose:b,onDismiss:w,hasSelectionRef:v,isPointerDownOnContentRef:h,children:(0,a.jsx)(oj,{...d,children:n})})};dt.displayName=c6;var dn="HoverCardTrigger",dr=i.forwardRef((e,t)=>
199{let{__scopeHoverCard:n,...o}=e,i=de(dn,n),l=c9(n);return(0,a.jsx)(oO,{asChild:!0,...l,children:(0,a.jsx)(tp.a,{"data-state":i.open?"open":"closed",...o,ref:t,onPointerEnter:ti(e.onPointerEnter,df(i.onOpen)),onPointerLeave:ti(e.onPointerLeave,df(i.onClose)),onFocus:ti(e.onFocus,i.onOpen),onBlur:ti(e.onBlur,i.onClose),onTouchStart:ti(e.onTouchStart,e=>e.preventDefault())})})});dr.displayName=dn;var di="HoverCardPortal",[da,dl]=c3(di,{forceMount:void 0}),ds=e=>{let{__scopeHoverCard:t,forceMount:n,children:o,container:i}=e,l=de(di,t);return(0,a.jsx)(da,{scope:t,forceMount:n,children:(0,a.jsx)(tP,{present:n||l.open,children:(0,a.jsx)(tD,{asChild:!0,container:i,children:o})})})};ds.displayName=di;var du="HoverCardContent",dc=i.forwardRef((e,t)=>{let n=dl(du,e.__scopeHoverCard),{forceMount:o=n.forceMount,...i}=e,l=de(du,e.__scopeHoverCard);return(0,a.jsx)(tP,{present:o||l.open,children:(0,a.jsx)(dd,{"data-state":l.open?"open":"closed",...i,onPointerEnter:ti(e.onPointerEnter,df(l.onOpen)),onPointerLeave:ti(e.onPointerLeave,df(l.onClose)),ref:t})})});dc.displayName=du;var dd=i.forwardRef((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:s,onInteractOutside:u,...c}=e,d=de(du,n),f=c9(n),p=i.useRef(null),v=eA(t,p),[h,m]=i.useState(!1);return i.useEffect(()=>{if(h){let e=document.body;return c8=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=c8,e.style.webkitUserSelect=c8}}},[h]),i.useEffect(()=>{if(p.current){let e=()=>{m(!1),d.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;
199(null==(e=document.getSelection())?void 0:e.toString())!==""&&(d.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!1}}},[d.isPointerDownOnContentRef,d.hasSelectionRef]),i.useEffect(()=>{p.current&&(function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t})(p.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,a.jsx)(tb,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:u,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:ti(s,e=>{e.preventDefault()}),onDismiss:d.onDismiss,children:(0,a.jsx)(oT,{...f,...c,onPointerDown:ti(c.onPointerDown,e=>{e.currentTarget.contains(e.target)&&m(!0),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!0}),ref:v,style:{...c.style,userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})});function df(e){return t=>"touch"===t.pointerType?void 0:e()}i.forwardRef((e,t)=>{let{__scopeHoverCard:n,...o}=e,i=c9(n);return(0,a.jsx)(oA,{...i,...o,ref:t})}).displayName="HoverCardArrow";let dp=(0,i.forwardRef)(({className:e,align:t="center",sideOffset:n=4,...o},i)=>(0,a.jsx)(dc,{ref:i,align:t,sideOffset:n,className:eO(`
200              data-[state=open]:univer-animate-in data-[state=open]:univer-fade-in-0 data-[state=open]:univer-zoom-in-95
201              data-[state=closed]:univer-animate-out data-[state=closed]:univer-fade-out-0
202              data-[state=closed]:univer-zoom-out-95
203              data-[side=bottom]:univer-slide-in-from-top-2
204              data-[side=left]:univer-slide-in-from-right-2
205              data-[side=right]:univer-slide-in-from-left-2
206              data-[side=top]:univer-slide-in-from-bottom-2
207              univer-z-[1080] univer-w-64 univer-origin-[--radix-hover-card-content-transform-origin] univer-rounded-md
208              univer-bg-white univer-text-gray-900 univer-shadow-md univer-outline-none
209              dark:!univer-bg-gray-900 dark:!univer-text-white
210            `,e1,e),...o}));function dv(e){let{children:t,overlay:n,disabled:o,openDelay:l=200,open:s,onOpenChange:u,...c}=e,[d,f]=(0,i.useState)(!1),p=void 0!==s;return(0,a.jsxs)(dt,{open:p?s:d,onOpenChange:function(e){o||(p||f(e),null==u||u(e))},openDelay:l,children:[(0,a.jsx)(dr,{asChild:!0,children:t}),(0,a.jsx)(ds,{children:(0,a.jsx)(dp,{...c,children:n})})]})}dp.displayName=dc.displayName;let dh=eP(`
211      univer-box-border univer-w-full univer-rounded-md univer-bg-white univer-transition-colors univer-duration-200
212      placeholder:univer-text-gray-400
213      focus:univer-border-primary-600 focus:univer-outline-none focus:univer-ring-2 focus:univer-ring-primary-50
214      dark:!univer-bg-gray-700 dark:!univer-text-white dark:focus:!univer-ring-primary-900
215    `,{variants:{size:{mini:"univer-h-7 univer-px-1.5 univer-text-sm",small:"univer-h-8 univer-px-2 univer-text-sm",middle:"univer-h-10 univer-px-3 univer-text-base",large:"univer-h-12 univer-px-4 univer-text-lg"}},defaultVariants:{size:"small"}}),dm=(0,i.forwardRef)(({autoFocus:e=!1,className:t,style:n,type:o="text",placeholder:l,value:s,size:u="small",allowClear:c=!1,disabled:d=!1,onClick:f,onKeyDown:p,onChange:v,onFocus:h,onBlur:g,slot:y,inputClass:b,inputStyle:w,...x},C)=>{let E=(0,i.useMemo)(()=>c&&s&&!d||y,[c,d,y,s]),[S,R]=(0,i.useState)(0),k=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=null;return y&&k.current&&((e=new MutationObserver(()=>{k.current&&R(k.current.offsetWidth+8)})).observe(k.current,{childList:!0,subtree:!0}),R(k.current.offsetWidth+8)),()=>null==e?void 0:e.disconnect()},[k.current]),(0,a.jsxs)("div",{"data-u-comp":"input",className:eO("univer-relative univer-inline-flex univer-w-full univer-items-center univer-rounded-md",d&&"univer-cursor-not-allowed",t),style:n,children:[(0,a.jsx)("input",{ref:C,type:o,className:eO(dh({size:u}),e1,d&&`
216                          univer-cursor-not-allowed univer-bg-gray-50 univer-text-gray-400
217                          dark:!univer-text-gray-500
218                        `,c&&!y&&"univer-pr-8",b),placeholder:l,value:s,disabled:d,autoFocus:e,onClick:f,onKeyDown:p,onChange:e=>{null==v||v(e.target.value)},onFocus:h,onBlur:g,style:{...w,paddingRight:S},...x}),E&&(0,a.jsxs)("div",{className:"univer-absolute univer-right-2 univer-flex univer-items-center univer-gap-1 univer-rounded-full",ref:k,children:[y,c&&s&&!d&&(0,a.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),null==v||v("")},className:"univer-flex univer-size-4 univer-cursor-pointer univer-items-center univer-rounded-full univer-border-none univer-bg-transparent univer-p-1 univer-text-gray-400 univer-transition-colors univer-duration-200 hover:univer-text-gray-500 focus:univer-outline-none",children:(0,a.jsx)(m,{className:"univer-size-3"})})]})]})}),dg=(0,i.forwardRef)(({value:e,defaultValue:t,size:n="small",min:o=Number.MIN_SAFE_INTEGER,max:l=Number.MAX_SAFE_INTEGER,step:s=1,precision:u,formatter:c,parser:d,controls:f=!0,className:p,inputClassName:v,controlsClassName:h,disabled:m,onChange:g,onKeyDown:y,onPressEnter:b,onF
218ocus:w,onBlur:x,allowEmpty:C=!1},E)=>{let[S,R]=(0,i.useState)(void 0!==e?e:void 0!==t?t:null),k=(0,i.useRef)(S),[M,j]=(0,i.useState)(P(S)),N=(0,i.useRef)(null),O=(0,i.useRef)(null),D=(0,i.useRef)(null);function P(e){if(null==e)return"";let t=e;return void 0!==u&&(t=Number(e).toFixed(u)),c?c(t):String(t)}function _(e){let t;if(m)return;let n=(t=null!==S?S:null!==k.current?k.current:o>0?o:0)+(e?s:-s);void 0!==l&&n>l&&(n=l),void 0!==o&&n<o&&(n=o),n!==t&&(R(n),k.current=n,j(P(n)),null==g||g(n))}function T(e){var t;m||(_(e),null==(t=N.current)||t.focus())}return(0,i.useEffect)(()=>{void 0!==e&&e!==S&&(R(e),k.current=e,j(P(e)))},[e]),(0,i.useEffect)(()=>{null!==S&&(k.current=S)},[S]),(0,i.useEffect)(()=>()=>{O.current&&clearTimeout(O.current),D.current&&clearInterval(D.current)},[]),(0,a.jsx)("div",{className:eO("univer-inline-block",p),children:(0,a.jsxs)("div",{className:"univer-relative univer-w-full",children:[(0,a.jsx)(dm,{ref:e=>{E&&("function"==typeof E?E(e):E.current=e),N.current=e},className:eO("univer-box-border",v),size:n,value:M,disabled:m,onChange:function(e){if(j(e),C&&""===e){R(null),null==g||g(null);return}let t=function(e){if(!e)return null;let t=e;d&&(t=d(e));try{let e,n=t.replace(/[^\d.-]/g,"").split("."),i=n[0],a=n.length>1?n.slice(1).join(""):"",s=i+(a?`.${a}`:""),c=Number(s);if(Number.isNaN(c))return null;if(void 0!==u){let t=10**u,n=Math.round(c*t)/t;e=n.toString().includes("e")?Number.parseFloat(n.toFixed(u)):n}else e=c.toString().includes("e")?Number.parseFloat(c.toFixed(16).replace(/\.?0+$/,"")):c;return void 0!==l&&e>l&&(e=l),void 0!==o&&e<o&&(e=o),e}catch{return null}}(e);R(t),null==g||g(t)},onFocus:w,onBlur:function(e){if(null===S){if(""===M&&C)g&&g(null);else{let e=k.current;R(e),j(P(e)),g&&g(e)}null==x||x(e);return}let t=S;void 0!==l&&t>l&&(t=l),void 0!==o&&t<o&&(t=o),t!==S?(R(t),j(P(t)),null==g||g(t)):j(P(S)),null==x||x(e)},onKeyDown:function(e){m||(null==y||y(e),"ArrowUp"===e.key?(e.preventDefault(),_(!0)):"ArrowDown"===e.key?(e.preventDefault(),_(!1)):"Enter"===e.key&&(null==b||b(e)))}}),f&&(0,a.jsxs)("div",{className:eO(`
219                                  univer-absolute univer-right-px univer-top-px univer-flex univer-h-[calc(100%-2px)]
220                                  univer-flex-col univer-overflow-hidden univer-rounded-r-md
221                                  before:univer-absolute before:univer-top-1/2 before:univer-block before:univer-h-px
222                                  before:univer-w-full before:-univer-translate-y-1/2 before:univer-bg-gray-200
223                                  before:univer-content-[""]
224                                  dark:before:!univer-bg-gray-600
225                                `,e5,h),children:[(0,a.jsx)("button",{className:"univer-box-border univer-flex univer-h-1/2 univer-w-5 univer-cursor-pointer univer-items-center univer-justify-center univer-border-none univer-bg-transparent univer-p-0 univer-transition-colors hover:univer-bg-gray-100 dark:!univer-text-white dark:hover:!univer-bg-gray-600",type:"button","aria-label":"increment",tabIndex:-1,disabled:m||void 0!==l&&null!==S&&S>=l,onClick:()=>T(!0),children:"+"}),(0,a.jsx)("button",{className:"univer-box-border univer-flex univer-h-1/2 univer-w-5 univer-cursor-pointer univer-items-center univer-justify-center univer-border-none univer-bg-transparent univer-p-0 univer-transition-colors hover:univer-bg-gray-100 dark:!univer-text-white dark:hover:!univer-bg-gray-600",type:"button","aria-label":"decrement",tabIndex:-1,disabled:m||void 0!==o&&null!==S&&S<=o,onClick:()=>T(!1),children:"-"})]})]})})});function dy(e){let{keyboard:t,className:n}=e,o=t.split("+");return(0,a.jsx)("span",{className:eO("univer-inline-block univer-h-6 univer-select-none univer-whitespace-nowrap univer-rounded-md univer-bg-gray-50 univer-px-2 univer-font-mono univer-text-xs/6 univer-font-medium univer-text-gray-700 dark:!univer-bg-gray-700 dark:!univer-text-white",e1,n),children:o.map((e,t)=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("kbd",{className:"univer-inline-block univer-h-full",children:e}),t<o.length-1&&(0,a.jsx)("span",{className:"univer-inline-block univer-h-full univer-px-1",children:"+"})]},t))})}
225var db=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],dw=void 0,dx=i.forwardRef(function(e,t){var n=e.prefixCls,o=e.invalidate,a=e.item,l=e.renderItem,s=e.responsive,u=e.responsiveDisabled,c=e.registerSize,d=e.itemKey,f=e.className,p=e.style,v=e.children,h=e.display,m=e.order,g=e.component,y=a$(e,db),b=s&&!h;i.useEffect(function(){return function(){c(d,null)}},[]);var w,x=l&&a!==dw?l(a,{index:m}):v;o||(w={opacity:+!b,height:b?0:dw,overflowY:b?"hidden":dw,order:s?m:dw,pointerEvents:b?"none":dw,position:b?"absolute":dw});var C={};b&&(C["aria-hidden"]=!0);var E=i.createElement(void 0===g?"div":g,aT({className:lE(!o&&n,f),style:aV(aV({},w),p)},C,y,{ref:t}),x);return s&&(E=i.createElement(lW,{onResize:function(e){c(d,e.offsetWidth)},disabled:u},E)),E});function dC(e,t){var n=aF(i.useState(t),2),o=n[0],a=n[1];return[o,lV(function(t){e(function(){a(t)})})]}dx.displayName="Item";var dE=i.createContext(null),dS=["component"],dR=["className"],dk=["className"],dM=i.forwardRef(function(e,t){var n=i.useContext(dE);if(!n){var o=e.component,a=a$(e,dS);return i.createElement(void 0===o?"div":o,aT({},a,{ref:t}))}var l=n.className,s=a$(n,dR),u=e.className,c=a$(e,dk);return i.createElement(dE.Provider,{value:null},i.createElement(dx,aT({ref:t,className:lE(l,u)},s,c)))});dM.displayName="RawItem";var dj=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],dN="responsive",dO="invalidate";function dD(e){return"+ ".concat(e.length," ...")}var dP=i.forwardRef(function(e,t){var n,o=e.prefixCls,a=void 0===o?"rc-overflow":o,s=e.data,u=void 0===s?[]:s,c=e.renderItem,d=e.renderRawItem,f=e.itemKey,p=e.itemWidth,v=void 0===p?10:p,h=e.ssr,m=e.style,g=e.className,y=e.maxCount,b=e.renderRest,w=e.renderRawRest,x=e.suffix,C=e.component,E=e.itemComponent,S=e.onVisibleChange,R=a$(e,dj),k="full"===h,M=(n=i.useRef(null),function(e){n.current||(n.current=[],function(e){if(typeof MessageChannel>"u")sm(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}(function(){(0,l.unstable_batchedUpdates)(function(){n.current.forEach(function(e){e()}),n.current=null})})),n.current.push(e)}),j=aF(dC(M,null),2),N=j[0],O=j[1],D=N||0,P=aF(dC(M,new Map),2),_=P[0],T=P[1],L=aF(dC(M,0),2),z=L[0],A=L[1],I=aF(dC(M,0),2),H=I[0],F=I[1],W=aF(dC(M,0),2),$=W[0],B=W[1],V=aF((0,i.useState)(null),2),Y=V[0],K=V[1],X=aF((0,i.useState)(null),2),q=X[0],G=X[1],U=i.useMemo(function(){return null===q&&k?Number.MAX_SAFE_INTEGER:q||0},[q,N]),Z=aF((0,i.useState)(!1),2),J=Z[0],Q=Z[1],ee="".concat(a,"-item"),et=Math.max(z,H),en=y===dN,er=u.length&&en,eo=y===dO,ei=er||"number"==typeof y&&u.length>y,ea=(0,i.useMemo)(function(){var e=u;return er?e=null===N&&k?u:u.slice(0,Math.min(u.length,D/v)):"number"==typeof y&&(e=u.slice(0,y)),e},[u,v,N,y,er]),el=(0,i.useMemo)(function(){return er?u.slice(U+1):u.slice(ea.length)},[u,ea,er,U]),es=(0,i.useCallback)(function(e,t){var n;return"function"==typeof f?f(e):null!=(n=f&&(null==e?void 0:e[f]))?n:t},[f]),eu=(0,i.useCallback)(c||function(e){return e},[c]);function ec(e,t,n){q===e&&(void 0===t||t===Y)||(G(e),n||(Q(e<u.length-1),null==S||S(e)),void 0!==t&&K(t))}function ed(e,t){T(function(n){var o=new Map(n);return null===t?o.delete(e):o.set(e,t),o})}function ef(e){return _.get(es(ea[e],e))}li(function(){if(D&&"number"==typeof et&&ea){var e=$,t=ea.length,n=t-1;if(!t)return void ec(0,null);for(var o=0;o<t;o+=1){var i=ef(o);if(k&&(i=i||0),void 0===i){ec(o-1,void 0,!0);break}if(e+=i,0===n&&e<=D||o===n-1&&e+ef(n)<=D){ec(n,null);break}if(e+et>D){ec(o-1,e-i-$+H);break}}x&&ef(0)+$>D&&K(null)}},[D,_,H,$,es,ea]);var ep=J&&!!el.length,ev={};null!==Y&&er&&(ev={position:"absolute",left:Y,top:0});var eh={prefixCls:ee,responsive:er,component:E,invalidate:eo},em=d?function(e,t){var n=es(e,t);return i.createElement(dE.Provider,{key:n,value:aV(aV({},eh),{},{order:t,item:e,itemKey:n,registerSize:ed,display:t<=U})},d(e,t))}:function(e,t){var n=es(e,t);return i.createElement(dx,aT({},eh,{order:t,key:n,item:e,renderItem:eu,itemKey:n,registerSize:ed,display:t<=U}))},eg={order:ep?U:Number.MAX_SAFE_INTEGER,className:"".concat(ee,"-rest"),registerSize:function(e,t){F(t),A(H)},display:ep},ey=b||dD,eb=w?i.createElement(dE.Provider,{value:aV(aV({},eh),eg)},w(el)):i.createElement(dx,aT({},eh,eg),"function"==typeof ey?ey(el):ey),ew=i.createElement(void 0===C?"div":C,aT({className:lE(!eo&&a,g),style:m,ref:t},R),ea.map(em),ei?eb:null,x&&i.createElement(dx,aT({},eh,{responsive:en,responsiveDisabled:!er,order:U,className:"".concat(ee,"-suffix"),registerSize:function(e,t){B(t)},display:!0,style:ev}),x));return en?i.createElement(lW,{onResize:function(e,t){O(t.clientWidth)},disabled:!er},ew):ew});function d_(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new Set;return function e(t,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=o.has(t);if(aU(!l,"Warning: There may be circular references"),l)return!1;if(t===i)return!0;
225if(n&&a>1)return!1;o.add(t);var s=a+1;if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(var u=0;u<t.length;u++)if(!e(t[u],i[u],s))return!1;return!0}if(t&&i&&"object"===aL(t)&&"object"===aL(i)){var c=Object.keys(t);return c.length===Object.keys(i).length&&c.every(function(n){return e(t[n],i[n],s)})}return!1}(e,t)}dP.displayName="Overflow",dP.Item=dM,dP.RESPONSIVE=dN,dP.INVALIDATE=dO;var dT=i.createContext(null);function dL(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function dz(e){return dL(i.useContext(dT),e)}var dA=["children","locked"],dI=i.createContext(null);function dH(e){var t=e.children,n=e.locked,o=a$(e,dA),a=i.useContext(dI),l=a0(function(){var e;return e=aV({},a),Object.keys(o).forEach(function(t){var n=o[t];void 0!==n&&(e[t]=n)}),e},[a,o],function(e,t){return!n&&(e[0]!==t[0]||!d_(e[1],t[1],!0))});return i.createElement(dI.Provider,{value:l},t)}var dF=i.createContext(null);function dW(){return i.useContext(dF)}var d$=i.createContext([]);function dB(e){var t=i.useContext(d$);return i.useMemo(function(){return void 0!==e?[].concat(lr(t),[e]):t},[t,e])}var dV=i.createContext(null),dY=i.createContext({});function dK(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(sI(e)){var n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),a=Number(i),l=null;return i&&!Number.isNaN(a)?l=a:o&&null===l&&(l=0),o&&e.disabled&&(l=null),null!==l&&(l>=0||t&&l<0)}return!1}var dX=sJ.LEFT,dq=sJ.RIGHT,dG=sJ.UP,dU=sJ.DOWN,dZ=sJ.ENTER,dJ=sJ.ESC,dQ=sJ.HOME,d0=sJ.END,d1=[dG,dU,dX,dq];function d2(e,t){return(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=lr(e.querySelectorAll("*")).filter(function(e){return dK(e,t)});return dK(e,t)&&n.unshift(e),n})(e,!0).filter(function(e){return t.has(e)})}function d5(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var i=d2(e,t),a=i.length,l=i.findIndex(function(e){return n===e});return o<0?-1===l?l=a-1:l-=1:o>0&&(l+=1),i[l=(l+a)%a]}var d4=function(e,t){var n=new Set,o=new Map,i=new Map;return e.forEach(function(e){var a=document.querySelector("[data-menu-id='".concat(dL(t,e),"']"));a&&(n.add(a),i.set(a,e),o.set(e,a))}),{elements:n,key2element:o,element2key:i}},d8="__RC_UTIL_PATH_SPLIT__",d6=function(e){return e.join(d8)},d3="rc-menu-more";function d9(e){var t=i.useRef(e);t.current=e;var n=i.useCallback(function(){for(var e,n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return null==(e=t.current)?void 0:e.call.apply(e,[t].concat(o))},[]);return e?n:void 0}var d7=Math.random().toFixed(5).toString().slice(2),fe=0;function ft(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(e){delete n[e]}),n}function fn(e,t,n,o){var a=i.useContext(dI),l=a.activeKey,s=a.onActive,u=a.onInactive,c={active:l===e};return t||(c.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),s(e)},c.onMouseLeave=function(t){null==o||o({key:e,domEvent:t}),u(e)}),c}function fr(e){var t=i.useContext(dI),n=t.mode,o=t.rtl,a=t.inlineIndent;return"inline"!==n?null:o?{paddingRight:e*a}:{paddingLeft:e*a}}function fo(e){var t,n=e.icon,o=e.props,a=e.children;return null===n||!1===n?null:("function"==typeof n?t=i.createElement(n,aV({},o)):"boolean"!=typeof n&&(t=n),t||a||null)}var fi=["item"];function fa(e){var t=e.item,n=a$(e,fi);return Object.defineProperty(n,"item",{get:function(){return aU(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var fl=["title","attribute","elementRef"],fs=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],fu=["active"],fc=function(e){lT(n,e);var t=lI(n);function n(){return lO(this,n),t.apply(this,arguments)}return lP(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,o=e.elementRef,a=ft(a$(e,fl),["eventKey","popupClassName","popupOffset","onTitleClick"]);return aU(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),i.createElement(dP.Item,aT({},n,{title:"string"==typeof t?t:void 0},a,{ref:o}))}}]),n}(i.Component),fd=i.forwardRef(function(e,t){var n=e.style,o=e.className,a=e.eventKe
225y;e.warnKey;var l=e.disabled,s=e.itemIcon,u=e.children,c=e.role,d=e.onMouseEnter,f=e.onMouseLeave,p=e.onClick,v=e.onKeyDown,h=e.onFocus,m=a$(e,fs),g=dz(a),y=i.useContext(dI),b=y.prefixCls,w=y.onItemClick,x=y.disabled,C=y.overflowDisabled,E=y.itemIcon,S=y.selectedKeys,R=y.onActive,k=i.useContext(dY)._internalRenderMenuItem,M="".concat(b,"-item"),j=i.useRef(),N=i.useRef(),O=x||l,D=a9(t,N),P=dB(a),_=function(e){return{key:a,keyPath:lr(P).reverse(),item:j.current,domEvent:e}},T=fn(a,O,d,f),L=T.active,z=a$(T,fu),A=S.includes(a),I=fr(P.length),H={};"option"===e.role&&(H["aria-selected"]=A);var F=i.createElement(fc,aT({ref:j,elementRef:D,role:null===c?"none":c||"menuitem",tabIndex:l?null:-1,"data-menu-id":C&&g?null:g},ft(m,["extra"]),z,H,{component:"li","aria-disabled":l,style:aV(aV({},I),n),className:lE(M,aA(aA(aA({},"".concat(M,"-active"),L),"".concat(M,"-selected"),A),"".concat(M,"-disabled"),O),o),onClick:function(e){if(!O){var t=_(e);null==p||p(fa(t)),w(t)}},onKeyDown:function(e){if(null==v||v(e),e.which===sJ.ENTER){var t=_(e);null==p||p(fa(t)),w(t)}},onFocus:function(e){R(a),null==h||h(e)}}),u,i.createElement(fo,{props:aV(aV({},e),{},{isSelected:A}),icon:s||E}));return k&&(F=k(F,e,{selected:A})),F});let ff=i.forwardRef(function(e,t){var n=e.eventKey,o=dW(),a=dB(n);return i.useEffect(function(){if(o)return o.registerPath(n,a),function(){o.unregisterPath(n,a)}},[a]),o?null:i.createElement(fd,aT({},e,{ref:t}))});var fp=["className","children"],fv=i.forwardRef(function(e,t){var n=e.className,o=e.children,a=a$(e,fp),l=i.useContext(dI),s=l.prefixCls,u=l.mode,c=l.rtl;return i.createElement("ul",aT({className:lE(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat("inline"===u?"inline":"vertical"),n),role:"menu"},a,{"data-menu-list":!0,ref:t}),o)});function fh(e,t){return lS(e).map(function(e,n){if(i.isValidElement(e)){var o,a,l=e.key,s=null!=(o=null==(a=e.props)?void 0:a.eventKey)?o:l;null==s&&(s="tmp_key-".concat([].concat(lr(t),[n]).join("-")));var u={key:s,eventKey:s};return i.cloneElement(e,u)}return e})}fv.displayName="SubMenuList";var fm={adjustX:1,adjustY:1},fg={topLeft:{points:["bl","tl"],overflow:fm},topRight:{points:["br","tr"],overflow:fm},bottomLeft:{points:["tl","bl"],overflow:fm},bottomRight:{points:["tr","br"],overflow:fm},leftTop:{points:["tr","tl"],overflow:fm},leftBottom:{points:["br","bl"],overflow:fm},rightTop:{points:["tl","tr"],overflow:fm},rightBottom:{points:["bl","br"],overflow:fm}},fy={topLeft:{points:["bl","tl"],overflow:fm},topRight:{points:["br","tr"],overflow:fm},bottomLeft:{points:["tl","bl"],overflow:fm},bottomRight:{points:["tr","br"],overflow:fm},rightTop:{points:["tr","tl"],overflow:fm},rightBottom:{points:["br","bl"],overflow:fm},leftTop:{points:["tl","tr"],overflow:fm},leftBottom:{points:["bl","br"],overflow:fm}};function fb(e,t,n){return t||(n?n[e]||n.other:void 0)}var fw={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function fx(e){var t=e.prefixCls,n=e.visible,o=e.children,a=e.popup,l=e.popupStyle,s=e.popupClassName,u=e.popupOffset,c=e.disabled,d=e.mode,f=e.onVisibleChange,p=i.useContext(dI),v=p.getPopupContainer,h=p.rtl,m=p.subMenuOpenDelay,g=p.subMenuCloseDelay,y=p.builtinPlacements,b=p.triggerSubMenuAction,w=p.forceSubMenuRender,x=p.rootClassName,C=p.motion,E=p.defaultMotions,S=aF(i.useState(!1),2),R=S[0],k=S[1],M=aV(h?aV({},fy):aV({},fg),y),j=fw[d],N=fb(d,C,E),O=i.useRef(N);"inline"!==d&&(O.current=N);var D=aV(aV({},O.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),P=i.useRef();return i.useEffect(function(){return P.current=sm(function(){k(n)}),function(){sm.cancel(P.current)}},[n]),i.createElement(sZ,{prefixCls:t,popupClassName:lE("".concat(t,"-popup"),aA({},"".concat(t,"-rtl"),h),s,x),stretch:"horizontal"===d?"minWidth":null,getPopupContainer:v,builtinPlacements:M,popupPlacement:j,popupVisible:R,popup:a,popupStyle:l,popupAlign:u&&{offset:u},action:c?[]:[b],mouseEnterDelay:m,mouseLeaveDelay:g,onPopupVisibleChange:f,forceRender:w,popupMotion:D,fresh:!0},o)}function fC(e){var t=e.id,n=e.open,o=e.keyPath,a=e.children,l="inline",s=i.useContext(dI),u=s.prefixCls,c=s.forceSubMenuRender,d=s.motion,f=s.defaultMotions,p=s.mode,v=i.useRef(!1);v.current=p===l;var h=aF(i.useState(!v.current),2),m=h[0],g=h[1],y=!!v.current&&n;i.useEffect(function(){v.current&&g(!1)},[p]);var b=aV({},fb(l,d,f));o.length>1&&(b.motionAppear=!1);var w=b.onVisibleChanged;return b.onVisibleChanged=function(e){return v.current||e||g(!0),null==w?void 0:w(e)},m?null:i.createElement(dH,{mode:l,locked:!v.current},i.createElement(sC,aT({visible:y},b,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),function(e){var n=e.className,o=e.style;return i.createElement(fv,{id:t,className:n,style:o},a)}))}
225var fE=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],fS=["active"],fR=i.forwardRef(function(e,t){var n=e.style,o=e.className,a=e.title,l=e.eventKey;e.warnKey;var s=e.disabled,u=e.internalPopupClose,c=e.children,d=e.itemIcon,f=e.expandIcon,p=e.popupClassName,v=e.popupOffset,h=e.popupStyle,m=e.onClick,g=e.onMouseEnter,y=e.onMouseLeave,b=e.onTitleClick,w=e.onTitleMouseEnter,x=e.onTitleMouseLeave,C=a$(e,fE),E=dz(l),S=i.useContext(dI),R=S.prefixCls,k=S.mode,M=S.openKeys,j=S.disabled,N=S.overflowDisabled,O=S.activeKey,D=S.selectedKeys,P=S.itemIcon,_=S.expandIcon,T=S.onItemClick,L=S.onOpenChange,z=S.onActive,A=i.useContext(dY)._internalRenderSubMenuItem,I=i.useContext(dV).isSubPathKey,H=dB(),F="".concat(R,"-submenu"),W=j||s,$=i.useRef(),B=i.useRef(),V=null!=f?f:_,Y=M.includes(l),K=!N&&Y,X=I(D,l),q=fn(l,W,w,x),G=q.active,U=a$(q,fS),Z=aF(i.useState(!1),2),J=Z[0],Q=Z[1],ee=function(e){W||Q(e)},et=i.useMemo(function(){return G||"inline"!==k&&(J||I([O],l))},[k,G,O,J,l,I]),en=fr(H.length),er=d9(function(e){null==m||m(fa(e)),T(e)}),eo=E&&"".concat(E,"-popup"),ei=i.useMemo(function(){return i.createElement(fo,{icon:"horizontal"!==k?V:void 0,props:aV(aV({},e),{},{isOpen:K,isSubMenu:!0})},i.createElement("i",{className:"".concat(F,"-arrow")}))},[k,V,e,K,F]),ea=i.createElement("div",aT({role:"menuitem",style:en,className:"".concat(F,"-title"),tabIndex:W?null:-1,ref:$,title:"string"==typeof a?a:null,"data-menu-id":N&&E?null:E,"aria-expanded":K,"aria-haspopup":!0,"aria-controls":eo,"aria-disabled":W,onClick:function(e){W||(null==b||b({key:l,domEvent:e}),"inline"===k&&L(l,!Y))},onFocus:function(){z(l)}},U),a,ei),el=i.useRef(k);if("inline"!==k&&H.length>1?el.current="vertical":el.current=k,!N){var es=el.current;ea=i.createElement(fx,{mode:es,prefixCls:F,visible:!u&&K&&"inline"!==k,popupClassName:p,popupOffset:v,popupStyle:h,popup:i.createElement(dH,{mode:"horizontal"===es?"vertical":es},i.createElement(fv,{id:eo,ref:B},c)),disabled:W,onVisibleChange:function(e){"inline"!==k&&L(l,e)}},ea)}var eu=i.createElement(dP.Item,aT({ref:t,role:"none"},C,{component:"li",style:n,className:lE(F,"".concat(F,"-").concat(k),o,aA(aA(aA(aA({},"".concat(F,"-open"),K),"".concat(F,"-active"),et),"".concat(F,"-selected"),X),"".concat(F,"-disabled"),W)),onMouseEnter:function(e){ee(!0),null==g||g({key:l,domEvent:e})},onMouseLeave:function(e){ee(!1),null==y||y({key:l,domEvent:e})}}),ea,!N&&i.createElement(fC,{id:eo,open:K,keyPath:H},c));return A&&(eu=A(eu,e,{selected:X,active:et,open:K,disabled:W})),i.createElement(dH,{onItemClick:er,mode:"horizontal"===k?"vertical":k,itemIcon:null!=d?d:P,expandIcon:V},eu)}),fk=i.forwardRef(function(e,t){var n,o=e.eventKey,a=e.children,l=dB(o),s=fh(a,l),u=dW();return i.useEffect(function(){if(u)return u.registerPath(o,l),function(){u.unregisterPath(o,l)}},[l]),n=u?s:i.createElement(fR,aT({ref:t},e),s),i.createElement(d$.Provider,{value:l},n)});function fM(e){var t=e.className,n=e.style,o=i.useContext(dI).prefixCls;return dW()?null:i.createElement("li",{role:"separator",className:lE("".concat(o,"-item-divider"),t),style:n})}var fj=["className","title","eventKey","children"],fN=i.forwardRef(function(e,t){var n=e.className,o=e.title;e.eventKey;var a=e.children,l=a$(e,fj),s=i.useContext(dI).prefixCls,u="".concat(s,"-item-group");return i.createElement("li",aT({ref:t,role:"presentation"},l,{onClick:function(e){return e.stopPropagation()},className:lE(u,n)}),i.createElement("div",{role:"presentation",className:"".concat(u,"-title"),title:"string"==typeof o?o:void 0},o),i.createElement("ul",{role:"group",className:"".concat(u,"-list")},a))}),fO=i.forwardRef(function(e,t){var n=e.eventKey,o=fh(e.children,dB(n));return dW()?o:i.createElement(fN,aT({ref:t},ft(e,["warnKey"])),o)}),fD=["label","children","key","type","extra"];function fP(e,t,n,o,a){var l=e,s=aV({divider:fM,item:ff,group:fO,submenu:fk},o);return t&&(l=function e(t,n,o){var a=n.item,l=n.group,s=n.submenu,u=n.divider;return(t||[]).map(function(t,c){if(t&&"object"===aL(t)){var d=t.label,f=t.children,p=t.key,v=t.type,h=t.extra,m=a$(t,fD),g=null!=p?p:"tmp-".concat(c);return f||"group"===v?"group"===v?i.createElement(l,aT({key:g},m,{title:d}),e(f,n,o)):i.createElement(s,aT({key:g},m,{title:d}),e(f,n,o)):"divider"===v?i.createElement(u,aT({key:g},m)):i.createElement(a,aT({key:g},m,{extra:h}),d,(!!h||0===h)&&i.createElement("span",{className:"".concat(o,"-item-extra")},h))}return null}).filter(function(e){return e})}(t,s,a)),fh(l,n)}var f_=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],fT=[],fL=i.forwardRef(function(e,t){var n,o,a,s,u,c,d,f,p,v,h,m,g,y,b,w,x,C,E,S,R,k,M,j=e.prefixCls,N=void 0===j?"rc-menu":j,O=e.rootClassName,D=e.style,P=e.className,_=e.tabIndex,T=e.items,L=e.children,z=e.direction,A=e.id,I=e.mode,H=void 0===I?"vertical":I,F=e.inlineCollapsed,W=e.disabled,$=e.disabledOverflow,B=e.subMenuOpenDelay,V=e.subMenuCloseDelay,Y=e.forceSubMenuRender,K=e.defaultOpenKeys,X=e.openKeys,q=e.activeKey,G=e.defaultActiveFirst,U=e.selectable,Z=void 0===U||U,J=e.multiple,Q=void 0!==J&&J,ee=e.defaultSelectedKeys,et=e.selectedKeys,en=e.onSelect,er=e.onDeselect,eo=e.inlineIndent,ei=e.motion,ea=e.defaultMotions,el=e.triggerSubMenuAction,es=e.builtinPlacements,eu=e.itemIcon,ec=e.expandIcon,ed=e.overflowedIndicator,ef=void 0===ed?"...":ed,ep=e.overflowedIndicatorPopupClassName,ev=e.getPopupContainer,eh=e.onClick,em=e.onOpenChange,eg=e.onKeyDown;e.openAnimation,e.openTransitionName;var ey=e._internalRenderMenuItem,eb=e._internalRenderSubMenuItem,ew=e._internalComponents,ex=a$(e,f_),eC=aF(i.useMemo(function(){return[fP(L,T,fT,ew,N),fP(L,T,fT,{},N)]},[L,T,ew]),2),eE=eC[0],eS=eC[1],eR=aF(i.useState(!1),2),ek=eR[0],eM=eR[1],ej=i.useRef(),eN=(o=(n=aF(lQ(A,{value:A}),2))[0],a=n[1],i.useEffect(function(){fe+=1;var e="".concat(d7,"-").concat(fe);a("rc-menu-uuid-".concat(e))},[]),o),eO="rtl"===z,eD=aF(lQ(K,{value:X,postState:function(e){return e||fT}}),2),eP=eD[0],e_=eD[1],eT=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){e_(e),null==em||em(e)}t?(0,l.flushSync)(n):n()},eL=aF(i.useState(eP),2),ez=eL[0],eA=eL[1],eI=i.useRef(!1),eH=aF(i.useMemo(function(){return("inline"===H||"vertical"===H)&&F?["vertical",F]:[H,
225!1]},[H,F]),2),eF=eH[0],eW=eH[1],e$="inline"===eF,eB=aF(i.useState(eF),2),eV=eB[0],eY=eB[1],eK=aF(i.useState(eW),2),eX=eK[0],eq=eK[1];i.useEffect(function(){eY(eF),eq(eW),eI.current&&(e$?e_(ez):eT(fT))},[eF,eW]);var eG=aF(i.useState(0),2),eU=eG[0],eZ=eG[1],eJ=eU>=eE.length-1||"horizontal"!==eV||$;i.useEffect(function(){e$&&eA(eP)},[eP]),i.useEffect(function(){return eI.current=!0,function(){eI.current=!1}},[]);var eQ=(s=aF(i.useState({}),2)[1],u=(0,i.useRef)(new Map),c=(0,i.useRef)(new Map),f=(d=aF(i.useState([]),2))[0],p=d[1],v=(0,i.useRef)(0),h=(0,i.useRef)(!1),m=function(){h.current||s({})},g=(0,i.useCallback)(function(e,t){var n=d6(t);c.current.set(n,e),u.current.set(e,n),v.current+=1;var o=v.current;Promise.resolve().then(function(){o===v.current&&m()})},[]),y=(0,i.useCallback)(function(e,t){var n=d6(t);c.current.delete(n),u.current.delete(e)},[]),b=(0,i.useCallback)(function(e){p(e)},[]),w=(0,i.useCallback)(function(e,t){var n=(u.current.get(e)||"").split(d8);return t&&f.includes(n[0])&&n.unshift(d3),n},[f]),x=(0,i.useCallback)(function(e,t){return e.filter(function(e){return void 0!==e}).some(function(e){return w(e,!0).includes(t)})},[w]),C=(0,i.useCallback)(function(e){var t="".concat(u.current.get(e)).concat(d8),n=new Set;return lr(c.current.keys()).forEach(function(e){e.startsWith(t)&&n.add(c.current.get(e))}),n},[]),i.useEffect(function(){return function(){h.current=!0}},[]),{registerPath:g,unregisterPath:y,refreshOverflowKeys:b,isSubPathKey:x,getKeyPath:w,getKeys:function(){var e=lr(u.current.keys());return f.length&&e.push(d3),e},getSubPathKeys:C}),e0=eQ.registerPath,e1=eQ.unregisterPath,e2=eQ.refreshOverflowKeys,e5=eQ.isSubPathKey,e4=eQ.getKeyPath,e8=eQ.getKeys,e6=eQ.getSubPathKeys,e3=i.useMemo(function(){return{registerPath:e0,unregisterPath:e1}},[e0,e1]),e9=i.useMemo(function(){return{isSubPathKey:e5}},[e5]);i.useEffect(function(){e2(eJ?fT:eE.slice(eU+1).map(function(e){return e.key}))},[eU,eJ]);var e7=aF(lQ(q||G&&(null==(M=eE[0])?void 0:M.key),{value:q}),2),te=e7[0],tt=e7[1],tn=d9(function(e){tt(e)}),tr=d9(function(){tt(void 0)});(0,i.useImperativeHandle)(t,function(){return{list:ej.current,focus:function(e){var t,n,o=d4(e8(),eN),i=o.elements,a=o.key2element,l=o.element2key,s=d2(ej.current,i),u=null!=te?te:s[0]?l.get(s[0]):null==(n=eE.find(function(e){return!e.props.disabled}))?void 0:n.key,c=a.get(u);u&&c&&(null==c||null==(t=c.focus)||t.call(c,e))}}});var to=aF(lQ(ee||[],{value:et,postState:function(e){return Array.isArray(e)?e:null==e?fT:[e]}}),2),ti=to[0],ta=to[1],tl=function(e){if(Z){var t,n=e.key,o=ti.includes(n);ta(t=Q?o?ti.filter(function(e){return e!==n}):[].concat(lr(ti),[n]):[n]);var i=aV(aV({},e),{},{selectedKeys:t});o?null==er||er(i):null==en||en(i)}!Q&&eP.length&&"inline"!==eV&&eT(fT)},ts=d9(function(e){null==eh||eh(fa(e)),tl(e)}),tu=d9(function(e,t){var n=eP.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==eV){var o=e6(e);n=n.filter(function(e){return!o.has(e)})}d_(eP,n,!0)||eT(n,!0)}),tc=(E=function(e,t){var n=null!=t?t:!eP.includes(e);tu(e,n)},S=i.useRef(),(R=i.useRef()).current=te,k=function(){sm.cancel(S.current)},i.useEffect(function(){return function(){k()}},[]),function(e){var t=e.which;if([].concat(d1,[dZ,dJ,dQ,d0]).includes(t)){var n=e8(),o=d4(n,eN),i=o,a=i.elements,l=i.key2element,s=i.element2key,u=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(l.get(te),a),c=s.get(u),d=function(e,t,n,o){var i,a="prev",l="next",s="children",u="parent";if("inline"===e&&o===dZ)return{inlineTrigger:!0};var c=aA(aA({},dG,a),dU,l),d=aA(aA(aA(aA({},dX,n?l:a),dq,n?a:l),dU,s),dZ,s),f=aA(aA(aA(aA(aA(aA({},dG,a),dU,l),dZ,s),dJ,u),dX,n?s:u),dq,n?u:s);switch(null==(i=({inline:c,horizontal:d,vertical:f,inlineSub:c,horizontalSub:f,verticalSub:f})["".concat(e).concat(t?"":"Sub")])?void 0:i[o]){case a:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case u:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}(eV,1===e4(c,!0).length,eO,t);if(!d&&t!==dQ&&t!==d0)return;(d1.includes(t)||[dQ,d0].includes(t))&&e.preventDefault();var f=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var o=s.get(e);
225tt(o),k(),S.current=sm(function(){R.current===o&&t.focus()})}};if([dQ,d0].includes(t)||d.sibling||!u){var p=u&&"inline"!==eV?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(u):ej.current,v=d2(p,a);f(t===dQ?v[0]:t===d0?v[v.length-1]:d5(p,a,u,d.offset))}else if(d.inlineTrigger)E(c);else if(d.offset>0)E(c,!0),k(),S.current=sm(function(){o=d4(n,eN);var e=u.getAttribute("aria-controls");f(d5(document.getElementById(e),o.elements))},5);else if(d.offset<0){var h=e4(c,!0),m=h[h.length-2],g=l.get(m);E(m,!1),f(g)}}null==eg||eg(e)});i.useEffect(function(){eM(!0)},[]);var td=i.useMemo(function(){return{_internalRenderMenuItem:ey,_internalRenderSubMenuItem:eb}},[ey,eb]),tf="horizontal"!==eV||$?eE:eE.map(function(e,t){return i.createElement(dH,{key:e.key,overflowDisabled:t>eU},e)}),tp=i.createElement(dP,aT({id:A,ref:ej,prefixCls:"".concat(N,"-overflow"),component:"ul",itemComponent:ff,className:lE(N,"".concat(N,"-root"),"".concat(N,"-").concat(eV),P,aA(aA({},"".concat(N,"-inline-collapsed"),eX),"".concat(N,"-rtl"),eO),O),dir:z,style:D,role:"menu",tabIndex:void 0===_?0:_,data:tf,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?eE.slice(-t):null;return i.createElement(fk,{eventKey:d3,title:ef,disabled:eJ,internalPopupClose:0===t,popupClassName:ep},n)},maxCount:"horizontal"!==eV||$?dP.INVALIDATE:dP.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){eZ(e)},onKeyDown:tc},ex));return i.createElement(dY.Provider,{value:td},i.createElement(dT.Provider,{value:eN},i.createElement(dH,{prefixCls:N,rootClassName:O,mode:eV,openKeys:eP,rtl:eO,disabled:W,motion:ek?ei:null,defaultMotions:ek?ea:null,activeKey:te,onActive:tn,onInactive:tr,selectedKeys:ti,inlineIndent:void 0===eo?24:eo,subMenuOpenDelay:void 0===B?.1:B,subMenuCloseDelay:void 0===V?.1:V,forceSubMenuRender:Y,builtinPlacements:es,triggerSubMenuAction:void 0===el?"hover":el,getPopupContainer:ev,itemIcon:eu,expandIcon:ec,onItemClick:ts,onOpenChange:tu},i.createElement(dV.Provider,{value:e9},tp),i.createElement("div",{style:{display:"none"},"aria-hidden":!0},i.createElement(dF.Provider,{value:e3},eS)))))});function fz(e){var t,n;let{children:o,className:s,asChild:u=!0,title:c,placement:d="bottom",showIfEllipsis:f=!1,visible:p,onVisibleChange:v}=e,[h,m]=(0,i.useState)(!1),g=void 0!==p,y=g?p:h,b=(0,i.useRef)(null),w=(0,i.useRef)(null),x=(0,i.useRef)(null),[C,E]=(0,i.useState)(null),[S,R]=(0,i.useState)(d);function k(){g?null==v||v(!0):m(!0)}function M(){g?null==v||v(!1):m(!1)}(0,i.useLayoutEffect)(()=>{if(!y)return;let e=b.current,t=w.current;if(!e||!t)return;let n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),i=window.innerWidth,a=window.innerHeight,l=[d,"bottom","top","right","left"],s=d,u=0,c=0,f=e=>{let t=0,i=0;return"bottom"===e?(t=n.bottom+8,i=n.left+n.width/2-o.width/2):"top"===e?(t=n.top-o.height-8,i=n.left+n.width/2-o.width/2):"left"===e?(t=n.top+n.height/2-o.height/2,i=n.left-o.width-8):(t=n.top+n.height/2-o.height/2,i=n.right+8),{t:t,l:i}};for(let e of l){let{t:t,l:n}=f(e),l=n>=0&&n+o.width<=i,d=t>=0&&t+o.height<=a;if(l&&d){s=e,u=t,c=n;break}}if(!u&&!c){let e=f(d);u=Math.min(Math.max(0,e.t),a-o.height),c=Math.min(Math.max(0,e.l),i-o.width)}R(s),E({top:Math.round(u+window.scrollY),left:Math.round(c+window.scrollX)})},[y,d]),(0,i.useEffect)(()=>{if(!y)return;let e=()=>{if(!b.current||!w.current)return;let e=b.current.getBoundingClientRect(),t=w.current.getBoundingClientRect(),n=0,o=0;"bottom"===S?(n=e.bottom+8,o=e.left+e.width/2-t.width/2):"top"===S?(n=e.top-t.height-8,o=e.left+e.width/2-t.width/2):"left"===S?(n=e.top+e.height/2-t.height/2,o=e.left-t.width-8):(n=e.top+e.height/2-t.height/2,o=e.right+8),E({top:Math.round(n+window.scrollY),left:Math.round(o+window.scrollX)})};return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[y,S]);let j={ref:e=>b.current=e,onMouseEnter:()=>{var e;f&&b.current&&!(Math.abs((e=b.current).scrollWidth-e.clientWidth)>1)||k()},onMouseLeave:()=>M(),onFocus:()=>k(),onBlur:()=>M()}
225,N=u?(0,a.jsx)("span",{...j,className:"univer-inline-block univer-max-w-full univer-truncate",children:o}):(0,a.jsx)("button",{type:"button",...j,children:o}),O=null;return"u">typeof document&&y&&c&&document.body&&(O=(0,l.createPortal)((0,a.jsxs)("div",{ref:w,role:"tooltip",className:eO("univer-animate-in univer-fade-in-0 univer-zoom-in-95 univer-pointer-events-auto univer-absolute univer-z-[1081] univer-box-border univer-w-fit univer-max-w-sm univer-text-balance univer-rounded-lg univer-bg-gray-700 univer-px-2.5 univer-py-2 univer-text-xs univer-font-medium univer-text-white univer-shadow-lg univer-drop-shadow-sm dark:!univer-bg-gray-100 dark:!univer-text-gray-900",s),style:{top:null!=(t=null==C?void 0:C.top)?t:-9999,left:null!=(n=null==C?void 0:C.left)?n:-9999},onMouseEnter:()=>k(),onMouseLeave:()=>M(),children:[(0,a.jsx)("div",{className:"univer-break-words",children:c}),(0,a.jsx)("div",{ref:x,className:"univer-absolute univer-size-2.5 univer-rotate-45 univer-rounded-sm univer-bg-gray-700 dark:!univer-bg-gray-100",style:{..."bottom"===S&&{top:-5,left:"50%",transform:"translateX(-50%) rotate(45deg)"},..."top"===S&&{bottom:-5,left:"50%",transform:"translateX(-50%) rotate(45deg)"},..."left"===S&&{right:-5,top:"50%",transform:"translateY(-50%) rotate(45deg)"},..."right"===S&&{left:-5,top:"50%",transform:"translateY(-50%) rotate(45deg)"}}})]}),document.body)),(0,a.jsxs)(a.Fragment,{children:[N,O]})}fL.Item=ff,fL.SubMenu=fk,fL.ItemGroup=fO,fL.Divider=fM;let fA=(0,i.forwardRef)((e,t)=>{let{mountContainer:n}=(0,i.useContext)(eY),{wrapperClass:o,...l}=e;return n&&(0,a.jsx)(fL,{ref:t,prefixCls:eO("univer-menu",e.className),getPopupContainer:()=>n,...l,className:o})});function fI(e){return(0,a.jsx)(ff,{...e})}function fH(e){return(0,a.jsx)(fk,{...e})}function fF(e){return(0,a.jsx)(fO,{...e})}function fW({items:e}
225){return(0,a.jsx)("div",{className:"univer-menu-item-group univer-flex univer-flex-wrap univer-gap-2.5 univer-p-1 univer-pl-0 univer-pr-0",children:e.map(e=>{let t=(0,a.jsx)("div",{className:eO("univer-flex univer-size-6 univer-cursor-pointer univer-items-center univer-justify-center univer-rounded-md hover:univer-bg-gray-50 dark:hover:!univer-bg-gray-900",{"univer-bg-gray-50 dark:!univer-bg-gray-900":e.active},e.className),onClick:()=>e.onClick(),children:(0,a.jsx)(e.Icon,{className:"univer-size-4 univer-text-gray-900 dark:!univer-text-gray-200"})},e.key);return e.tooltip?(0,a.jsx)(fz,{title:e.tooltip,children:t},e.key):t})})}var f$=(e=>(e.Success="success",e.Info="info",e.Warning="warning",e.Error="error",e.Loading="loading",e))(f$||{});let fB={success:(0,a.jsx)(T,{className:"univer-text-green-500"}),info:(0,a.jsx)(C,{className:"univer-text-indigo-600 dark:!univer-text-primary-500"}),warning:(0,a.jsx)(z,{className:"univer-text-yellow-400"}),error:(0,a.jsx)(w,{className:"univer-text-red-500"}),loading:(0,a.jsx)($,{className:"univer-animate-spin univer-text-yellow-400"})},fV=({content:e,type:t="info"})=>{let n=(0,i.useMemo)(()=>fB[t],[t]);return(0,a.jsx)("div",{className:eO(`
226                  univer-animate-in univer-fade-in univer-slide-in-from-top-4 univer-min-w-[320px] univer-max-w-[480px]
227                  univer-rounded-xl univer-border univer-border-solid univer-border-gray-200 univer-bg-white univer-p-4
228                  univer-font-sans univer-shadow-md univer-transition-all univer-duration-300
229                  dark:!univer-border-gray-600 dark:!univer-bg-gray-700
230                `),children:(0,a.jsxs)("div",{className:"univer-flex univer-gap-2",children:[(0,a.jsx)("span",{className:"[&>svg]:univer-relative [&>svg]:univer-top-0.5 [&>svg]:univer-block",children:n}),(0,a.jsx)("p",{className:"univer-m-0 univer-text-sm univer-text-gray-500 univer-opacity-90 dark:!univer-text-gray-400",children:e})]})})},fY=0,{Messager:fK,message:fX,removeMessage:fq}=(()=>{let e=()=>{},t=()=>{};return{Messager:()=>{if(!eV())return null;let[n,o]=(0,i.useState)({messages:[]});return t=e=>{e||o({messages:[]}),o(t=>({messages:t.messages.filter(t=>t.id!==e)}))},(0,i.useEffect)(()=>{let t=[];return e=e=>{let n=String(fY++);if(o(t=>({messages:[...t.messages,{...e,id:n}]})),e.duration!==1/0){let i=window.setTimeout(()=>{o(e=>({messages:e.messages.filter(e=>e.id!==n)}))},e.duration||3e3);t.push(i)}},()=>{t.forEach(e=>{window.clearTimeout(e)})}},[]),(0,l.createPortal)((0,a.jsx)("div",{className:"univer-fixed univer-left-1/2 univer-top-4 univer-z-50 univer-flex -univer-translate-x-1/2 univer-flex-col univer-items-center univer-gap-1",children:n.messages.map((e,n)=>(0,a.jsx)("div",{style:{position:"relative",top:`${4*n}px`,zIndex:50-n},children:(0,a.jsx)(fV,{...e,onClose:()=>t(e.id)})},e.id))}),document.body)},message:t=>e(t),removeMessage:t}})();function fG(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,l_(e,t)}
230function fU(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}let fZ={disabled:!1},fJ=i.createContext(null);var fQ=function(e){return e.scrollTop},f0="unmounted",f1="exited",f2="entering",f5="entered",f4="exiting",f8=function(e){function t(t,n){var o,i=e.call(this,t,n)||this,a=n&&!n.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?a?(o=f1,i.appearStatus=f2):o=f5:o=t.unmountOnExit||t.mountOnEnter?f0:f1,i.state={status:o},i.nextCallback=null,i}fG(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f0?{status:f1}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==f2&&n!==f5&&(t=f2):(n===f2||n===f5)&&(t=f4)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===f2){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this);n&&fQ(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===f1&&this.setState({status:f0})},n.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,i=this.props.nodeRef?[o]:[l.findDOMNode(this),o],a=i[0],s=i[1],u=this.getTimeouts(),c=o?u.appear:u.enter;if(!e&&!n||fZ.disabled)return void this.safeSetState({status:f5},function(){t.props.onEntered(a)});this.props.onEnter(a,s),this.safeSetState({status:f2},function(){t.props.onEntering(a,s),t.onTransitionEnd(c,function(){t.safeSetState({status:f5},function(){t.props.onEntered(a,s)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:l.findDOMNode(this);if(!t||fZ.disabled)return void this.safeSetState({status:f1},function(){e.props.onExited(o)});this.props.onExit(o),this.safeSetState({status:f4},function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:f1},function(){e.props.onExited(o)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(!n||o)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],s=i[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===f0)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var o=aW(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return i.createElement(fJ.Provider,{value:null},"function"==typeof n?n(e,o):i.cloneElement(i.Children.only(n),o))},t}(i.Component);function f6(){}f8.contextType=fJ,f8.propTypes={},f8.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:f6,onEntering:f6,onEntered:f6,onExit:f6,onExiting:f6,onExited:f6},f8.UNMOUNTED=f0,f8.EXITED=f1,f8.ENTERING=f2,f8.ENTERED=f5,f8.EXITING=f4;var f3=function(e,t){return e&&t&&t.split(" ").forEach(function(t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=fU(e.className,t):e.setAttribute("class",fU(e.className&&e.className.baseVal||"",t))})},f9=function(e){function t(){for(var t,n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];
230return(t=e.call.apply(e,[this].concat(o))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var o=t.resolveArguments(e,n),i=o[0],a=o[1];t.removeClasses(i,"exit"),t.addClass(i,a?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var o=t.resolveArguments(e,n),i=o[0],a=o[1];t.addClass(i,a?"appear":"enter","active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var o=t.resolveArguments(e,n),i=o[0],a=o[1]?"appear":"enter";t.removeClasses(i,a),t.addClass(i,a,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,o="string"==typeof n,i=o&&n?n+"-":"",a=o?""+i+e:n[e],l=o?a+"-active":n[e+"Active"],s=o?a+"-done":n[e+"Done"];return{baseClassName:a,activeClassName:l,doneClassName:s}},t}fG(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var o,i=this.getClassNames(t)[n+"ClassName"],a=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&a&&(i+=" "+a),"active"===n&&e&&fQ(e),i&&(this.appliedClasses[t][n]=i,o=i,e&&o&&o.split(" ").forEach(function(t){e.classList?e.classList.add(t):(e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" "))||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],o=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},o&&f3(e,o),i&&f3(e,i),a&&f3(e,a)},n.render=function(){var e=this.props;e.classNames;var t=aW(e,["classNames"]);return i.createElement(f8,aT({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(i.Component);function f7(e){let{children:t,visible:n=!1,offset:o=[0,0]}=e,s=(0,i.useRef)(null),[u,c]=(0,i.useState)(o),{mountContainer:d}=(0,i.useContext)(eY);return(0,i.useEffect)(()=>{if(!n)return void c([-9999,-9999]);let[e,t]=o,{clientWidth:i,clientHeight:a}=s.current,{innerWidth:l,innerHeight:u}=window;c([e+i>l?l-i:e,t+a>u?u-a:t])},[o,n]),(0,l.createPortal)((0,a.jsx)(f9,{in:n,nodeRef:s,timeout:500,classNames:{enter:"univer-popup-enter",enterActive:"univer-popup-enter-active",enterDone:"univer-popup-enter-done",exitActive:"univer-popup-exit",exitDone:"univer-popup-exit-active"},children:(0,a.jsx)("section",{ref:s,className:"univer-popup",style:{left:u[0]+2,top:u[1]+2},onContextMenu:function(e){e.preventDefault()},children:t})}),d)}function pe(e){let{children:t,className:n,style:o,value:l,disabled:s=!1,direction:u="horizontal",onChange:c}=e,d=e=>{c(e)};return(0,a.jsx)("div",{className:eO("univer-flex univer-gap-2",{"univer-flex-col":"vertical"===u},n),style:o,children:i.Children.map(t,(e,t)=>(0,i.isValidElement)(e)?(0,i.cloneElement)(e,{key:t,children:e.props.children,value:e.props.value,checked:l===e.props.value,disabled:null!=s?s:e.props.disabled,onChange:d}):e)})}function pt(e){let{children:t,checked:n,value:o,disabled:l=!1,onChange:s}=e,u=(0,i.useRef)(null);return(0,a.jsxs)("label",{"data-u-comp":"radio",className:eO("univer-box-border univer-inline-flex univer-items-center univer-gap-2 univer-text-sm",{"univer-cursor-pointer univer-text-gray-900 dark:!univer-text-white":!l,"univer-text-gray-400":l}),children:[(0,a.jsxs)("span",{className:"univer-relative univer-block",children:[(0,a.jsx)("input",{ref:u,className:"univer-absolute univer-size-0 univer-opacity-0",type:"radio",checked:n,disabled:l,onChange:function(e){var t;if(e.stopPropagation(),!(!s||l))if("u">typeof o)s&&s(o);else{let e=null==(t=null==u?void 0:u.current)?void 0:t.checked;s&&s(e)}}}),(0,a.jsx)("span",{className:eO("univer-relative univer-box-border univer-flex univer-size-4 univer-items-center univer-justify-center univer-overflow-hidden univer-rounded-full univer-border univer-border-solid univer-transition-colors",{"univer-opacity-50":l,"univer-border-primary-600 univer-bg-primary-600 dark:!univer-bg-primary-600":n,"univer-border-gray-300 univer-bg-gray-50 dark:!univer-border-gray-500 dark:!univer-bg-gray-600":!n}),children:n&&(0,a.jsx)("span",{className:"univer-absolute univer-left-1/2 univer-top-1/2 univer-block univer-size-2 -univer-translate-x-1/2 -univer-translate-y-1/2 univer-rounded-full univer-bg-white"})})]}),(0,a.jsx)("span",{children:t})]})}function pn(e){let{value:t,options:n=[],hideCheckMark:o=!1,onChange:i,multiple:l,className:s,optionClassName:u}=e,c=Array.isArray(t)?t:[t];return(0,a.jsx)("ul",{className:eO("univer-m-0 univer-grid univer-max-h-80 univer-list-none univer-gap-1 univer-overflow-y-auto univer-rounded univer-p-1.5",e1,eQ,s),children:n.map((e,t)=>{let n=c.indexOf(e.value)>-1;return(0,a.jsx)("li",{children:(0,a.jsxs)("a",{className:eO("univer-relative univer-block univer-cursor-pointer univer-select-none univer-rounded univer-py-1.5 univer-pl-8 univer-pr-2 univer-text-sm univer-text-gray-900 univer-transition-colors hover:univer-bg-gray-100 dark:!univer-text-white dark:hover:!univer-bg-gray-600",u,{"univer-bg-gray-200 dark:!univer-bg-gray-500":n}),onClick:()=>(function(e){let t=c.indexOf(e);l?t>-1?i(c.filter(t=>t===e)):i([...c,e]):t>-1?i(void 0):i(e)}
230)(e.value),children:[!o&&n&&(0,a.jsx)(f,{className:"univer-absolute univer-left-0 univer-top-1/2 -univer-translate-y-1/2 univer-pl-2 univer-text-primary-600"}),(0,a.jsx)("span",{style:{color:e.color},children:e.label})]})},t)})})}f9.defaultProps={classNames:""},f9.propTypes={};let pr=eO("univer-box-border univer-inline-flex univer-h-8 univer-min-w-36 univer-items-center univer-justify-between univer-gap-2 univer-rounded-lg univer-bg-white univer-px-2.5 univer-transition-colors univer-duration-200 dark:!univer-bg-gray-700 dark:!univer-text-white",e1);function po(e){let{className:t,value:n,disabled:o=!1,options:l=[],borderless:s=!1,onChange:u}=e,[c,d]=(0,i.useState)(!1),f=(0,i.useMemo)(()=>{let e=[];for(let t of l)t.options?(t.options.forEach(t=>{e.push({label:t.label,value:t.value,disabled:t.disabled})}),e.push({type:"separator"})):e.push({label:t.label,value:t.value,disabled:t.disabled});return[{type:"radio",value:n,hideIndicator:!0,options:e,onSelect:e=>{u(e)}}]},[l]),p=(0,i.useMemo)(()=>{let e=null;for(let t of l)if(t.options){for(let o of t.options)if(o.value===n){e=o.label;break}}else if(t.value===n){e=t.label;break}return e||n},[l,n]);return(0,a.jsx)(cX,{className:"max-h univer-w-[var(--radix-popper-anchor-width)] univer-min-w-36",align:"start",open:c,items:f,disabled:o,onOpenChange:function(e){d(e)},children:(0,a.jsxs)("div",{"data-u-comp":"select",className:eO(pr,{"univer-border-primary-600 univer-outline-none univer-ring-2 univer-ring-primary-50 dark:!univer-ring-primary-900":c&&!s,"univer-border-transparent univer-bg-transparent hover:univer-border-transparent":s,"univer-cursor-not-allowed":o,"hover:univer-border-primary-600":!o&&!s,"univer-cursor-pointer":!o&&!c},t),children:[(0,a.jsx)("div",{className:"univer-flex-1 univer-truncate univer-text-sm univer-text-gray-500 dark:!univer-text-white",children:p}),(0,a.jsx)(S,{className:"univer-flex-shrink-0 dark:!univer-text-white"})]})})}var pi="horizontal",pa=["horizontal","vertical"],pl=i.forwardRef((e,t)=>{var n;let{decorative:o,orientation:i=pi,...l}=e,s=(n=i,pa.includes(n))?i:pi,u=o?{role:"none"}:{"aria-orientation":"vertical"===s?s:void 0,role:"separator"};return(0,a.jsx)(tp.div,{"data-orientation":s,...u,...l,ref:t})});function ps({className:e,orientation:t="horizontal",decorative:n=!0,...o}){return(0,a.jsx)(pl,{"data-u-comp":"separator","data-slot":"separator-root",decorative:n,orientation:t,className:eO(`
231                  univer-shrink-0 univer-bg-gray-200
232                  data-[orientation=horizontal]:univer-h-px data-[orientation=horizontal]:univer-w-full
233                  data-[orientation=vertical]:univer-h-full data-[orientation=vertical]:univer-w-px
234                  dark:!univer-bg-gray-600
235                `,e),...o})}pl.displayName="Separator";let pu=e=>{let{defaultChecked:t=!1,onChange:n}=e,[o,l]=(0,i.useState)(t);return(0,i.useEffect)(()=>
235{l(t)},[t]),(0,a.jsx)("div",{className:"univer-h-4",children:(0,a.jsxs)("label",{className:"univer-relative univer-inline-block univer-h-4 univer-w-7",children:[(0,a.jsx)("input",{className:"univer-size-0 univer-opacity-0",type:"checkbox",checked:o,onChange:()=>{l(!o),null==n||n(!o)}}),(0,a.jsx)("span",{className:eO("univer-absolute univer-inset-0 univer-cursor-pointer univer-rounded-2xl univer-transition-colors univer-duration-200",{"univer-bg-primary-600":o,"univer-bg-gray-200 dark:!univer-bg-gray-600":!o}),children:(0,a.jsx)("span",{className:eO("univer-absolute univer-bottom-0.5 univer-left-0.5 univer-h-3 univer-w-3 univer-rounded-full univer-bg-white univer-transition-transform univer-duration-200",{"univer-translate-x-3":o})})})]})})};(0,i.forwardRef)((e,t)=>{let n=(0,i.useRef)(null),o=(0,i.useRef)({width:0,height:0}),{className:l,onResize:s,onValueChange:u,...c}=e;return(0,i.useImperativeHandle)(t,()=>n.current,[]),(0,i.useLayoutEffect)(()=>{let e=n.current;if(e&&s){let t=new ResizeObserver(e=>{let{width:t,height:n}=e[0].target.getBoundingClientRect();0===t||0===n||(o.current.width!==t||o.current.height!==n)&&(o.current={width:t,height:n},s(t,n))});return t.observe(e),()=>{t.unobserve(e),t.disconnect()}}},[s]),(0,a.jsx)("textarea",{ref:n,"data-u-comp":"textarea","data-slot":"textarea",className:eO(`
236                  univer-box-border univer-flex univer-w-full univer-resize univer-rounded-md univer-bg-transparent
237                  univer-p-2 univer-text-base univer-text-gray-900 univer-outline-none
238                  univer-transition-[color,box-shadow]
239                  placeholder:univer-text-gray-200
240                  disabled:univer-cursor-not-allowed disabled:univer-opacity-50
241                  dark:!univer-text-white
242                `,e1,eQ,l),onChange:function(e){let t=e.target.value;null==u||u(t)},...c})});let pc=Array(12).fill(0),pd=({visible:e,className:t})=>i.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},i.createElement("div",{className:"sonner-spinner"},pc.map((e,t)=>i.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`})))),pf=i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},i.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),pp=i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},i.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),pv=i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},i.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),ph=i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},i.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),pm=i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},i.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),i.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),pg=1;class py{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>
vendor: 1,076 bytes, line 242
242{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...o}=e,i="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:pg++,a=this.toasts.find(e=>e.id===i),l=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),a?this.toasts=this.toasts.map(t=>t.id===i?(this.publish({...t,...e,id:i,title:n}),{...t,...e,id:i,dismissible:l,title:n}):t):this.addToast({title:n,...o,dismissible:l,id:i}),i},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
242this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let n;if(!t)return;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let o=Promise.resolve(e instanceof Function?e():e),a=void 0!==n,l,s=o.then(async e=>{if(l=["resolve",e],i.isValidElement(e))a=!1,this.create({id:n,type:"default",message:e});else if(pw(e)&&!e.ok){a=!1;let o="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,l="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description,s="object"!=typeof o||i.isValidElement(o)?{message:o}:o;this.create({id:n,type:"error",description:l,...s})}else if(e instanceof Error){a=!1;let o="function"==typeof t.error?await t.error(e):t.error,l="function"==typeof t.description?await t.description(e):t.description,s="object"!=typeof o||i.isValidElement(o)?{message:o}:o;this.create({id:n,type:"error",description:l,...s})}else if(void 0!==t.success){a=!1;let o="function"==typeof t.success?await t.success(e):t.success,l="function"==typeof t.description?await t.description(e):t.description,s="object"!=typeof o||i.isValidElement(o)?{message:o}:o;this.create({id:n,type:"success",description:l,...s})}}).catch(async e=>{if(l=["reject",e],void 0!==t.error){a=!1;let o="function"==typeof t.error?await t.error(e):t.error,l="function"==typeof t.description?await t.description(e):t.description,s="object"!=typeof o||i.isValidElement(o)?{message:o}:o;this.create({id:n,type:"error",description:l,...s})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),null==t.finally||t.finally.call(t)}),u=()=>new Promise((e,t)=>s.then(()=>"reject"===l[0]?t(l[1]):e(l[1])).catch(t));return"string"!=typeof n&&"number"!=typeof n?{unwrap:u}:Object.assign(n,{unwrap:u})},this.custom=(e,t)=>{let n=(null==t?void 0:t.id)||pg++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}let pb=new py,pw=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,px=Object.assign((e,t)=>{let n=(null==t?void 0:t.id)||pg++;return pb.addToast({title:e,...t,id:n}),n},{success:pb.success,info:pb.info,warning:pb.warning,error:pb.error,custom:pb.custom,message:pb.message,promise:pb.promise,dismiss:pb.dismiss,loading:pb.loading},{getHistory:()=>pb.toasts,getToasts:()=>pb.getActiveToasts()});function pC(e){return void 0!==e.label}function pE(...e){return e.filter(Boolean).join(" ")}!function(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}
vendor: 14,864 bytes, line 242
242("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
vendor: 699 bytes, line 242
242let pS=e=>{var t,n,o,a,l,s,u,c,d,f,p;let{invert:v,toast:h,unstyled:m,interacting:g,setHeights:y,visibleToasts:b,heights:w,index:x,toasts:C,expanded:E,removeToast:S,defaultRichColors:R,closeButton:k,style:M,cancelButtonStyle:j,actionButtonStyle:N,className:O="",descriptionClassName:D="",duration:P,position:_,gap:T,expandByDefault:L,classNames:z,icons:A,closeButtonAriaLabel:I="Close toast"}=e,[H,F]=i.useState(null),[W,$]=i.useState(null),[B,V]=i.useState(!1),[Y,K]=i.useState(!1),[X,q]=i.useState(!1),[G,U]=i.useState(!1),[Z,J]=i.useState(!1),[Q,ee]=i.useState(0),[et,en]=i.useState(0),er=i.useRef(h.duration||P||4e3),eo=i.useRef(null),ei=i.useRef(null),ea=0===x,el=x+1<=b,es=h.type,eu=!1!==h.dism
242issible,ec=h.className||"",ed=h.descriptionClassName||"",ef=i.useMemo(()=>w.findIndex(e=>e.toastId===h.id)||0,[w,h.id]),ep=i.useMemo(()=>{var e;return null!=(e=h.closeButton)?e:k},[h.closeButton,k]),ev=i.useMemo(()=>h.duration||P||4e3,[h.duration,P]),eh=i.useRef(0),em=i.useRef(0),eg=i.useRef(0),ey=i.useRef(null),[eb,ew]=_.split("-"),ex=i.useMemo(()=>w.reduce((e,t,n)=>n>=ef?e:e+t.height,0),[w,ef]),eC=(()=>{let[e,t]=i.useState(document.hidden);return i.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e})(),eE=h.invert||v,eS="loading"===es;em.current=i.useMemo(()=>ef*T+ex,[ef,ex]),i.useEffect(()=>{er.current=ev},[ev]),i.useEffect(()=>{V(!0)},[]),i.useEffect(()=>{let e=ei.current;if(e){let t=e.getBoundingClientRect().height;return en(t),y(e=>[{toastId:h.id,height:t,position:h.position},...e]),()=>y(e=>e.filter(e=>e.toastId!==h.id))}},[y,h.id]),i.useLayoutEffect(()=>{if(!B)return;let e=ei.current,t=e.style.height;e.style.height="auto";let n=e.getBoundingClientRect().height;e.style.height=t,en(n),y(e=>e.find(e=>e.toastId===h.id)?e.map(e=>e.toastId===h.id?{...e,height:n}:e):[{toastId:h.id,height:n,position:h.position},...e])},[B,h.title,h.description,y,h.id,h.jsx,h.action,h.cancel]);let eR=i.useCallback(()=>{K(!0),ee(em.current),y(e=>e.filter(e=>e.toastId!==h.id)),setTimeout(()=>{S(h)},200)},[h,S,y,em]);i.useEffect(()=>{let e;if((!h.promise||"loading"!==es)&&h.duration!==1/0&&"loading"!==h.type)return E||g||eC?(()=>{if(eg.current<eh.current){let e=new Date().getTime()-eh.current;er.current=er.current-e}eg.current=new Date().getTime()})():er.current!==1/0&&(eh.current=new Date().getTime(),e=setTimeout(()=>{null==h.onAutoClose||h.onAutoClose.call(h,h),eR()},er.current)),()=>clearTimeout(e)},[E,g,h,es,eC,eR]),i.useEffect(()=>{h.delete&&(eR(),null==h.onDismiss||h.onDismiss.call(h,h))},[eR,h.delete]);let ek=h.icon||(null==A?void 0:A[es])||(e=>{switch(e){case"success":return pf;case"info":return pv;case"warning":return pp;case"error":return ph;default:return null}})(es);return i.createElement("li",{tabIndex:0,ref:ei,className:pE(O,ec,null==z?void 0:z.toast,null==h||null==(t=h.classNames)?void 0:t.toast,null==z?void 0:z.default,null==z?void 0:z[es],null==h||null==(n=h.classNames)?void 0:n[es]),"data-sonner-toast":"","data-rich-colors":null!=(f=h.richColors)?f:R,"data-styled":!(h.jsx||h.unstyled||m),"data-mounted":B,"data-promise":!!h.promise,"data-swiped":Z,"data-removed":Y,"data-visible":el,"data-y-position":eb,"data-x-position":ew,"data-index":x,"data-front":ea,"data-swiping":X,"data-dismissible":eu,"data-type":es,"data-invert":eE,"data-swipe-out":G,"data-swipe-direction":W,"data-expanded":!!(E||L&&B),"data-testid":h.testId,style:{"--index":x,"--toasts-before":x,"--z-index":C.length-x,"--offset":`${Y?Q:em.current}px`,"--initial-height":L?"auto":`${et}px`,...M,...h.style},onDragEnd:()=>{q(!1),F(null),ey.current=null},onPointerDown:e=>{2!==e.button&&(eS||!eu||(eo.current=new Date,ee(em.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(q(!0),ey.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{var e,t,n,o,i;if(G||!eu)return;ey.current=null;let a=Number((null==(e=ei.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),l=Number((null==(t=ei.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),s=new Date().getTime()-(null==(n=eo.current)?void 0:n.getTime()),u="x"===H?a:l,c=Math.abs(u)/s;if(Math.abs(u)>=45||c>.11){ee(em.current),null==h.onDismiss||h.onDismiss.call(h,h),$("x"===H?a>0?"right":"left":l>0?"down":"up"),eR(),U(!0);return}null==(o=ei.current)||o.style.setProperty("--swipe-amount-x","0px"),null==(i=ei.current)||i.style.setProperty("--swipe-amount-y","0px"),J(!1),q(!1),F(null)},onPointerMove:t=>{var n,o,i,a;if(!ey.current||!eu||(null==(n=window.getSelection())?void 0:n.toString().length)>0)return;let l=t.clientY-ey.current.y,s=t.clientX-ey.current.x,u=null!=(a=e.swipeDirections)?a:function(e){let[t,n]=e.split("-"),o=[];return t&&o.push(t),n&&o.push(n),o}(_);!H&&(Math.abs(s)>1||Math.abs(l)>1)&&F(Math.abs(s)>Math.abs(l)?"x":"y");let c={x:0,y:0},d=e=>1/(1.5+Math.abs(e)/20);if("y"===H){if(u.includes("top")||u.includes("bottom"))if(u.includes("top")&&l<0||u.includes("bottom")&&l>0)c.y=l;else{let e=l*d(l);c.y=Math.abs(e)<Math.abs(l)?e:l}}else if("x"===H&&(u.includes("left")||u.includes("right")))if(u.includes("left")&&s<0||u.includes("right")&&s>0)c.x=s;else{let e=s*d(s);c.x=Math.abs(e)<Math.abs(s)?e:s}(Math.abs(c.x)>0||Math.abs(c.y)>0)&&J(!0),null==(o=ei.current)||o.style.setProperty("--swipe-amount-x",`${c.x}
242px`),null==(i=ei.current)||i.style.setProperty("--swipe-amount-y",`${c.y}px`)}},ep&&!h.jsx&&"loading"!==es?i.createElement("button",{"aria-label":I,"data-disabled":eS,"data-close-button":!0,onClick:eS||!eu?()=>{}:()=>{eR(),null==h.onDismiss||h.onDismiss.call(h,h)},className:pE(null==z?void 0:z.closeButton,null==h||null==(o=h.classNames)?void 0:o.closeButton)},null!=(p=null==A?void 0:A.close)?p:pm):null,(es||h.icon||h.promise)&&null!==h.icon&&((null==A?void 0:A[es])!==null||h.icon)?i.createElement("div",{"data-icon":"",className:pE(null==z?void 0:z.icon,null==h||null==(a=h.classNames)?void 0:a.icon)},h.promise||"loading"===h.type&&!h.icon?h.icon||function(){var e,t;return null!=A&&A.loading?i.createElement("div",{className:pE(null==z?void 0:z.loader,null==h||null==(t=h.classNames)?void 0:t.loader,"sonner-loader"),"data-visible":"loading"===es},A.loading):i.createElement(pd,{className:pE(null==z?void 0:z.loader,null==h||null==(e=h.classNames)?void 0:e.loader),visible:"loading"===es})}():null,"loading"!==h.type?ek:null):null,i.createElement("div",{"data-content":"",className:pE(null==z?void 0:z.content,null==h||null==(l=h.classNames)?void 0:l.content)},i.createElement("div",{"data-title":"",className:pE(null==z?void 0:z.title,null==h||null==(s=h.classNames)?void 0:s.title)},h.jsx?h.jsx:"function"==typeof h.title?h.title():h.title),h.description?i.createElement("div",{"data-description":"",className:pE(D,ed,null==z?void 0:z.description,null==h||null==(u=h.classNames)?void 0:u.description)},"function"==typeof h.description?h.description():h.description):null),i.isValidElement(h.cancel)?h.cancel:h.cancel&&pC(h.cancel)?i.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||j,onClick:e=>{pC(h.cancel)&&eu&&(null==h.cancel.onClick||h.cancel.onClick.call(h.cancel,e),eR())},className:pE(null==z?void 0:z.cancelButton,null==h||null==(c=h.classNames)?void 0:c.cancelButton)},h.cancel.label):null,i.isValidElement(h.action)?h.action:h.action&&pC(h.action)?i.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||N,onClick:e=>{pC(h.action)&&(null==h.action.onClick||h.action.onClick.call(h.action,e),e.defaultPrevented||eR())},className:pE(null==z?void 0:z.actionButton,null==h||null==(d=h.classNames)?void 0:d.actionButton)},h.action.label):null)};function pR(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}let pk=i.forwardRef(function(e,t){let{id:n,invert:o,position:a="bottom-right",hotkey:s=["altKey","KeyT"],expand:u,closeButton:c,className:d,offset:f,mobileOffset:p,theme:v="light",richColors:h,duration:m,style:g,visibleToasts:y=3,toastOptions:b,dir:w=pR(),gap:x=14,icons:C,containerAriaLabel:E="Notifications"}=e,[S,R]=i.useState([]),k=i.useMemo(()=>n?S.filter(e=>e.toasterId===n):S.filter(e=>!e.toasterId),[S,n]),M=i.useMemo(()=>Array.from(new Set([a].concat(k.filter(e=>e.position).map(e=>e.position)))),[k,a]),[j,N]=i.useState([]),[O,D]=i.useState(!1),[P,_]=i.useState(!1),[T,L]=i.useState("system"!==v?v:"u">typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),z=i.useRef(null),A=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=i.useRef(null),H=i.useRef(!1),F=i.useCallback(e=>{R(t=>{var n;return null!=(n=t.find(t=>t.id===e.id))&&n.delete||pb.dismiss(e.id),t.filter(({id:t})=>t!==e.id)})},[]);return i.useEffect(()=>pb.subscribe(e=>{if(e.dismiss)return void requestAnimationFrame(()=>{R(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});setTimeout(()=>{l.flushSync(()=>{R(t=>{let n=t.findIndex(t=>t.id===e.id);return -1!==n?[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]:[e,...t]})})})}),[S]),i.useEffect(()=>{if("system"!==v)return void L(v);if("system"===v&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),typeof window>"u")return;let e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",({matches:e})=>{L(e?"dark":"light")})}catch{e.addListener(({matches:e})=>
242{try{L(e?"dark":"light")}catch(e){console.error(e)}})}},[v]),i.useEffect(()=>{S.length<=1&&D(!1)},[S]),i.useEffect(()=>{let e=e=>{var t,n;s.every(t=>e[t]||e.code===t)&&(D(!0),null==(n=z.current)||n.focus()),"Escape"===e.code&&(document.activeElement===z.current||null!=(t=z.current)&&t.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s]),i.useEffect(()=>{if(z.current)return()=>{I.current&&(I.current.focus({preventScroll:!0}),I.current=null,H.current=!1)}},[z.current]),i.createElement("section",{ref:t,"aria-label":`${E} ${A}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},M.map((t,n)=>{var a;let[l,s]=t.split("-");return k.length?i.createElement("ol",{key:t,dir:"auto"===w?pR():w,tabIndex:-1,ref:z,className:d,"data-sonner-toaster":!0,"data-sonner-theme":T,"data-y-position":l,"data-x-position":s,style:{"--front-toast-height":`${(null==(a=j[0])?void 0:a.height)||0}px`,"--width":"356px","--gap":`${x}px`,...g,...function(e,t){let n={};return[e,t].forEach((e,t)=>{let o=1===t,i=o?"--mobile-offset":"--offset",a=o?"16px":"24px";function l(e){["top","right","bottom","left"].forEach(t=>{n[`${i}-${t}`]="number"==typeof e?`${e}px`:e})}"number"==typeof e||"string"==typeof e?l(e):"object"==typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?n[`${i}-${t}`]=a:n[`${i}-${t}`]="number"==typeof e[t]?`${e[t]}px`:e[t]}):l(a)}),n}(f,p)},onBlur:e=>{H.current&&!e.currentTarget.contains(e.relatedTarget)&&(H.current=!1,I.current&&(I.current.focus({preventScroll:!0}),I.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||H.current||(H.current=!0,I.current=e.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{P||D(!1)},onDragEnd:()=>D(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||_(!0)},onPointerUp:()=>_(!1)},k.filter(e=>!e.position&&0===n||e.position===t).map((n,a)=>{var l,s;return i.createElement(pS,{key:n.id,icons:C,index:a,toast:n,defaultRichColors:h,duration:null!=(l=null==b?void 0:b.duration)?l:m,className:null==b?void 0:b.className,descriptionClassName:null==b?void 0:b.descriptionClassName,invert:o,visibleToasts:y,closeButton:null!=(s=null==b?void 0:b.closeButton)?s:c,interacting:P,position:t,style:null==b?void 0:b.style,unstyled:null==b?void 0:b.unstyled,classNames:null==b?void 0:b.classNames,cancelButtonStyle:null==b?void 0:b.cancelButtonStyle,actionButtonStyle:null==b?void 0:b.actionButtonStyle,closeButtonAriaLabel:null==b?void 0:b.closeButtonAriaLabel,removeToast:F,toasts:k.filter(e=>e.position==n.position),heights:j.filter(e=>e.position==n.position),setHeights:N,expandByDefault:u,gap:x,expanded:O,swipeDirections:e.swipeDirections})})):null}))});function pM({visibleToasts:e,...t}){return(0,a.jsx)(pk,{className:"dark:![&_[data-description]]:univer-text-gray-200 [&_[data-description]]:univer-text-sm [&_[data-description]]:univer-text-gray-600 [&_[data-icon]>svg]:univer-relative [&_[data-icon]>svg]:univer-top-1 [&_[data-icon]]:univer-self-baseline [&_[data-sonner-toast]]:univer-shadow-md [&_[data-title]]:univer-text-sm [&_[data-title]]:univer-text-gray-900",toastOptions:{classNames:{content:"univer-leading-normal",success:"[&_[data-icon]]:univer-text-green-500",info:"[&_[data-icon]]:univer-text-primary-600",error:"[&_[data-icon]]:univer-text-red-500",warning:"[&_[data-icon]]:univer-text-yellow-500"}},visibleToasts:null!=e?e:5,...t})}var pj=i.forwardRef(function(e,t){var n=e.height,o=e.offsetY,a=e.offsetX,l=e.children,s=e.prefixCls,u=e.onInnerResize,c=e.innerProps,d=e.rtl,f=e.extra,p={},v={display:"flex",flexDirection:"column"};return void 0!==o&&(p={height:n,position:"relative",overflow:"hidden"},v=aV(aV({},v),{},aA(aA(aA(aA(aA({transform:"translateY(".concat(o,"px)")},d?"marginRight":"marginLeft",-a),"position","absolute"),"left",0),"right",0),"top",0))),i.createElement("div",{style:p},i.createElement(lW,{onResize:function(e){e.offsetHeight&&u&&u()}},i.createElement("div",aT({style:v,className:lE(aA({},"".concat(s,"-holder-inner"),s)),ref:t},c),l,f)))});function pN(e){var t=e.children,n=e.setRef,o=i.useCallback(function(e){n(e)},[]);return i.cloneElement(t,{ref:o})}pj.displayName="Filler";var pO=(typeof navigator>"u"?"undefined":aL(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);let pD=function(e,t,n,o){var a=(0,i.useRef)(!1),l=(0,i.useRef)(null),s=(0,i.useRef)({top:e,bottom:t,left:n,right:o});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=o,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e?t<0&&s.current.left||t>0&&s.current.right:t<0&&s.current.top||t>0&&s.current.bottom;return n&&o?(clearTimeout(l.current),a.current=!1):(!o||a.current)&&(clearTimeout(l.current),a.current=!0,l.current=setTimeout(function(){a.current=!1}
242,50)),!a.current&&o}};var pP=function(){function e(){lO(this,e),aA(this,"maps",void 0),aA(this,"id",0),aA(this,"diffRecords",new Map),this.maps=Object.create(null)}return lP(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function p_(e){var t=parseFloat(e);return isNaN(t)?0:t}var pT=14/15;function pL(e){return Math.floor(Math.pow(e,.5))}function pz(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var pA=i.forwardRef(function(e,t){var n=e.prefixCls,o=e.rtl,a=e.scrollOffset,l=e.scrollRange,s=e.onStartMove,u=e.onStopMove,c=e.onScroll,d=e.horizontal,f=e.spinSize,p=e.containerSize,v=e.style,h=e.thumbStyle,m=e.showScrollBar,g=aF(i.useState(!1),2),y=g[0],b=g[1],w=aF(i.useState(null),2),x=w[0],C=w[1],E=aF(i.useState(null),2),S=E[0],R=E[1],k=!o,M=i.useRef(),j=i.useRef(),N=aF(i.useState(m),2),O=N[0],D=N[1],P=i.useRef(),_=function(){!0===m||!1===m||(clearTimeout(P.current),D(!0),P.current=setTimeout(function(){D(!1)},3e3))},T=l-p||0,L=p-f||0,z=i.useMemo(function(){return 0===a||0===T?0:a/T*L},[a,T,L]),A=i.useRef({top:z,dragging:y,pageY:x,startTop:S});A.current={top:z,dragging:y,pageY:x,startTop:S};var I=function(e){b(!0),C(pz(e,d)),R(A.current.top),s(),e.stopPropagation(),e.preventDefault()};i.useEffect(function(){var e=function(e){e.preventDefault()},t=M.current,n=j.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",I,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",I)}},[]);var H=i.useRef();H.current=T;var F=i.useRef();F.current=L,i.useEffect(function(){if(y){var e,t=function(t){var n=A.current,o=n.dragging,i=n.pageY,a=n.startTop;sm.cancel(e);var l=M.current.getBoundingClientRect(),s=p/(d?l.width:l.height);if(o){var u=(pz(t,d)-i)*s,f=a;!k&&d?f-=u:f+=u;var v=H.current,h=F.current,m=Math.ceil((h?f/h:0)*v);m=Math.min(m=Math.max(m,0),v),e=sm(function(){c(m,d)})}},n=function(){b(!1),u()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),sm.cancel(e)}}},[y]),i.useEffect(function(){return _(),function(){clearTimeout(P.current)}},[a]),i.useImperativeHandle(t,function(){return{delayHidden:_}});var W="".concat(n,"-scrollbar"),$={position:"absolute",visibility:O?null:"hidden"},B={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return d?($.height=8,$.left=0,$.right=0,$.bottom=0,B.height="100%",B.width=f,k?B.left=z:B.right=z):($.width=8,$.top=0,$.bottom=0,k?$.right=0:$.left=0,B.width="100%",B.height=f,B.top=z),i.createElement("div",{ref:M,className:lE(W,aA(aA(aA({},"".concat(W,"-horizontal"),d),"".concat(W,"-vertical"),!d),"".concat(W,"-visible"),O)),style:aV(aV({},$),v),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:_},i.createElement("div",{ref:j,className:lE("".concat(W,"-thumb"),aA({},"".concat(W,"-thumb-moving"),y)),style:aV(aV({},B),h),onMouseDown:I}))});function pI(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),Math.floor(n=Math.max(n,20))}var pH=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],pF=[],pW={overflowY:"auto",overflowAnchor:"none"};i.forwardRef(function(e,t){var n,o,a,s,u,c,d,f,p,v,h,m,g,y,b,w,x,C,E,S,R,k,M,j,N,O,D,P,_,T,L,z,A,I=e.prefixCls,H=void 0===I?"rc-virtual-list":I,F=e.className,W=e.height,$=e.itemHeight,B=e.fullHeight,V=e.style,Y=e.data,K=e.children,X=e.itemKey,q=e.virtual,G=e.direction,U=e.scrollWidth,Z=e.component,J=e.onScroll,Q=e.onVirtualScroll,ee=e.onVisibleChange,et=e.innerProps,en=e.extraRender,er=e.styles,eo=e.showScrollBar,ei=void 0===eo?"optional":eo,ea=a$(e,pH),el=i.useCallback(function(e){return"function"==typeof X?X(e):null==e?void 0:e[X]},[X]),es=function(e,t,n){var o=aF(i.useState(0),2),a=o[0],l=o[1],s=(0,i.useRef)(new Map),u=(0,i.useRef)(new pP),c=(0,i.useRef)(0);function d(){c.current+=1}function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d();var t=function(){var e=!1;s.current.forEach(function(t,n){if(t&&t.offsetParent){var o=t.offsetHeight,i=getComputedStyle(t),a=i.marginTop,l=i.marginBottom,s=o+p_(a)+p_(l);u.current.get(n)!==s&&(u.current.set(n,s),e=!0)}}),e&&l(function(e){return e+1})};if(e)t();else{c.current+=1;var n=c.current;Promise.resolve().then(function(){n===c.current&&t()})}}return(0,i.useEffect)(function(){return d},[]),[function(t,n){var o=e(t);s.current.get(o),n?(s.current.set(o,n),f()):s.current.delete(o)},f,u.current,a]}(el),eu=aF(es,4),ec=eu[0],ed=eu[1],ef=eu[2],ep=eu[3],ev=!!(!1!==q&&W&&$),eh=i.useMemo(function(){return Object.values(ef.maps).reduce(function(e,t){return e+t},0)},[ef.id,ef.maps]),em=ev&&Y&&(Math.max($*Y.length,eh)>W||!!U),eg="rtl"===G,ey=lE(H,aA({},"".concat(H,"-rtl"),eg),F),eb=Y||pF,ew=(0,i.useRef)(),ex=(0,i.useRef)(),eC=(0,i.useRef)(),eE=aF((0,i.useState)(0),2),eS=eE[0],eR=eE[1],ek=aF((0,i.useState)(0),2),eM=ek[0],ej=ek[1],eN=aF((0,i.useState)(!1),2),eO=eN[0],eD=eN[1],eP=function(){eD(!0)},e_=function(){eD(!1)};function eT(e){eR(function(t){var n,o=(n="function"==typeof e?e(t):e,Number.isNaN(eZ.current)||(n=Math.min(n,eZ.current)),n=Math.max(n,0));return ew.current.scrollTop=o,o})}var eL=(0,i.useRef)({start:0,end:eb.length}),ez=(0,i.useRef)(),eA=(o=(n=aF(i.useState(eb),2))[0],a=n[1],u=(s=aF(i.useState(null),2))[0],c=s[1],i.useEffect(function(){var e=function(e,t,n){var o,i,a=e.length,l=t.length;if(0===a&&0===l)return null;a<l?(o=e,i=t):(o=t,i=e);var s={__EMPTY_ITEM__:!0};function u(e){return void 0!==e?n(e):s}for(var c=null,d=1!==Math.abs(a-l),f=0;f<i.length;f+=1){var p=u(o[f]);if(p!==u(i[f])){c=f,d=d||p!==u(i[f+1]);break}}return null===c?null:{index:c,multiple:d}}(o||[],eb||[],el);(null==e?void 0:e.index)!==void 0&&c(eb[e.index]),a(eb)},[eb]),[u]);ez.current=aF(eA,1)[0];var eI=i.useMemo(function(){if(!ev)return{scrollHeight:void 0,start:0,end:eb.length-1,offset:void 0};if(!em)return{scrollHeight:(null==(e=ex.current)?void 0:e.offsetHeight)||0,start:0,end:eb.length-1,offset:void 0};for(var e,t,n,o,i=0,a=eb.length,l=0;l<a;l+=1){var s=el(eb[l]),u=ef.get(s),c=i+(void 0===u?$:u);c>=eS&&void 0===t&&(t=l,n=i),c>eS+W&&void 0===o&&(o=l),i=c}return void 0===t&&(t=0,n=0,o=Math.ceil(W/$)),void 0===o&&(o=eb.length-1),{scrollHeight:i,start:t,end:o=Math.min(o+1,eb.length-1),offset:n}},[em,ev,eS,eb,ep,W]),eH=eI.scrollHeight,eF=eI.start,eW=eI.end,e$=eI.offset;eL.current.start=eF,eL.current.end=eW,i.useLayoutEffect(function(){var e=ef.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),o=eb[eF];if(o&&void 0===n&&el(o)===t){var i=ef.get(t)-$;eT(function(e){return e+i})}}ef.resetRecord()},[eH]);var eB=aF(i.useState({width:0,height:W}),2),eV=eB[0],eY=eB[1],eK=(0,i.useRef)(),eX=(0,i.useRef)(),eq=i.useMemo(function(){return pI(eV.width,U)},[eV.width,U]),eG=i.useMemo(function(){return pI(eV.height,eH)}
242,[eV.height,eH]),eU=eH-W,eZ=(0,i.useRef)(eU);eZ.current=eU;var eJ=eS<=0,eQ=eS>=eU,e0=eM<=0,e1=eM>=U,e2=pD(eJ,eQ,e0,e1),e5=function(){return{x:eg?-eM:eM,y:eS}},e4=(0,i.useRef)(e5()),e8=lV(function(e){if(Q){var t=aV(aV({},e5()),e);(e4.current.x!==t.x||e4.current.y!==t.y)&&(Q(t),e4.current=t)}});function e6(e,t){t?((0,l.flushSync)(function(){ej(e)}),e8()):eT(e)}var e3=function(e){var t=e,n=U?U-eV.width:0;return Math.min(t=Math.max(t,0),n)},e9=lV(function(e,t){t?((0,l.flushSync)(function(){ej(function(t){return e3(t+(eg?-e:e))})}),e8()):eT(function(t){return t+e})}),e7=aF((d=!!U,f=(0,i.useRef)(0),p=(0,i.useRef)(null),v=(0,i.useRef)(null),h=(0,i.useRef)(!1),m=pD(eJ,eQ,e0,e1),g=(0,i.useRef)(null),y=(0,i.useRef)(null),[function(e){if(ev){sm.cancel(y.current),y.current=sm(function(){g.current=null},2);var t,n,o=e.deltaX,i=e.deltaY,a=e.shiftKey,l=o,s=i;("sx"===g.current||!g.current&&a&&i&&!o)&&(l=i,s=0,g.current="sx");var u=Math.abs(l),c=Math.abs(s);null===g.current&&(g.current=d&&u>c?"x":"y"),"y"===g.current?(t=e,n=s,sm.cancel(p.current),!m(!1,n)&&(t._virtualHandled||(t._virtualHandled=!0,f.current+=n,v.current=n,pO||t.preventDefault(),p.current=sm(function(){var e=h.current?10:1;e9(f.current*e,!1),f.current=0})))):(e9(l,!0),pO||e.preventDefault())}},function(e){ev&&(h.current=e.detail===v.current)}]),2),te=e7[0],tt=e7[1];b=function(e,t,n,o){return!e2(e,t,n)&&(!o||!o._virtualHandled)&&(o&&(o._virtualHandled=!0),te({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0)},x=(0,i.useRef)(!1),C=(0,i.useRef)(0),E=(0,i.useRef)(0),S=(0,i.useRef)(null),R=(0,i.useRef)(null),k=function(e){if(x.current){var t=Math.ceil(e.touches[0].pageX),n=Math.ceil(e.touches[0].pageY),o=C.current-t,i=E.current-n,a=Math.abs(o)>Math.abs(i);a?C.current=t:E.current=n;var l=b(a,a?o:i,!1,e);l&&e.preventDefault(),clearInterval(R.current),l&&(R.current=setInterval(function(){a?o*=pT:i*=pT;var e=Math.floor(a?o:i);(!b(a,e,!0)||.1>=Math.abs(e))&&clearInterval(R.current)},16))}},M=function(){x.current=!1,w()},j=function(e){w(),1!==e.touches.length||x.current||(x.current=!0,C.current=Math.ceil(e.touches[0].pageX),E.current=Math.ceil(e.touches[0].pageY),S.current=e.target,S.current.addEventListener("touchmove",k,{passive:!1}),S.current.addEventListener("touchend",M,{passive:!0}))},w=function(){S.current&&(S.current.removeEventListener("touchmove",k),S.current.removeEventListener("touchend",M))},li(function(){return ev&&ew.current.addEventListener("touchstart",j,{passive:!0}),function(){var e;null==(e=ew.current)||e.removeEventListener("touchstart",j),w(),clearInterval(R.current)}},[ev]),N=function(e){eT(function(t){return t+e})},i.useEffect(function(){var e=ew.current;if(em&&e){var t,n,o=!1,i=function(){sm.cancel(t)},a=function e(){i(),t=sm(function(){N(n),e()})},l=function(e){!(e.target.draggable||0!==e.button)&&(e._virtualHandled||(e._virtualHandled=!0,o=!0))},s=function(){o=!1,i()},u=function(t){if(o){var l=pz(t,!1),s=e.getBoundingClientRect(),u=s.top,c=s.bottom;l<=u?(n=-pL(u-l),a()):l>=c?(n=pL(l-c),a()):i()}};return e.addEventListener("mousedown",l),e.ownerDocument.addEventListener("mouseup",s),e.ownerDocument.addEventListener("mousemove",u),function(){e.removeEventListener("mousedown",l),e.ownerDocument.removeEventListener("mouseup",s),e.ownerDocument.removeEventListener("mousemove",u),i()}}},[em]),li(function(){function e(e){var t=eJ&&e.detail<0,n=eQ&&e.detail>0;!ev||t||n||e.preventDefault()}var t=ew.current;return t.addEventListener("wheel",te,{passive:!1}),t.addEventListener("DOMMouseScroll",tt,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",te),t.removeEventListener("DOMMouseScroll",tt),t.removeEventListener("MozMousePixelScroll",e)}},[ev,eJ,eQ]),li(function(){if(U){var e=e3(eM);ej(e),e8({x:e})}},[eV.width,U]);var tn=function(){var e,t;null==(e=eK.current)||e.delayHidden(),null==(t=eX.current)||t.delayHidden()},tr=(O=function(){return ed(!0)},D=i.useRef(),_=(P=aF(i.useState(null),2))[0],T=P[1],li(function(){if(_&&_.times<10){if(!ew.current)return void T(function(e){return aV({},e)});O();var e=_.targetAlign,t=_.originAlign,n=_.index,o=_.offset,i=ew.current.clientHeight,a=!1,l=e,s=null;if(i){for(var u=e||t,c=0,d=0,f=0,p=Math.min(eb.length-1,n),v=0;v<=p;v+=1){var h=el(eb[v]);d=c;var m=ef.get(h);c=f=d+(void 0===m?$:m)}for(var g="top"===u?o:i-o,y=p;y>=0;y-=1){var b=el(eb[y]),w=ef.get(b);if(void 0===w){a=!0;break}if((g-=w)<=0)break}switch(u){case"top":s=d-o;break;case"bottom":s=f-i+o;break;default:var x=ew.current.scrollTop;d<x?l="top":f>x+i&&(l="bottom")}null!==s&&eT(s),s!==_.lastTop&&(a=!0)}a&&T(aV(aV({},_),{},{times:_.times+1,targetAlign:l,lastTop:s}))}},[_,ew.current]),function(e){if(null==e)return void tn();if(sm.cancel(D.current),"number"==typeof e)eT(e);else if(e&&"object"===aL(e)){var t,n=e.align;t="index"in e?e.index:eb.findIndex(function(t){return el(t)===e.ke
242y});var o=e.offset;T({times:0,index:t,offset:void 0===o?0:o,originAlign:n})}});i.useImperativeHandle(t,function(){return{nativeElement:eC.current,getScrollInfo:e5,scrollTo:function(e){e&&"object"===aL(e)&&("left"in e||"top"in e)?(void 0!==e.left&&ej(e3(e.left)),tr(e.top)):tr(e)}}}),li(function(){ee&&ee(eb.slice(eF,eW+1),eb)},[eF,eW,eb]);var to=(z=(L=aF(i.useMemo(function(){return[new Map,[]]},[eb,ef.id,$]),2))[0],A=L[1],function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=z.get(e),o=z.get(t);if(void 0===n||void 0===o)for(var i=eb.length,a=A.length;a<i;a+=1){var l,s=el(eb[a]);z.set(s,a);var u=null!=(l=ef.get(s))?l:$;if(A[a]=(A[a-1]||0)+u,s===e&&(n=a),s===t&&(o=a),void 0!==n&&void 0!==o)break}return{top:A[n-1]||0,bottom:A[o]}}),ti=null==en?void 0:en({start:eF,end:eW,virtual:em,offsetX:eM,offsetY:e$,rtl:eg,getSize:to}),ta=eb.slice(eF,eW+1).map(function(e,t){var n=K(e,eF+t,{style:{width:U},offsetX:eM}),o=el(e);return i.createElement(pN,{key:o,setRef:function(t){return ec(e,t)}},n)}),tl=null;W&&(tl=aV(aA({},void 0===B||B?"height":"maxHeight",W),pW),ev&&(tl.overflowY="hidden",U&&(tl.overflowX="hidden"),eO&&(tl.pointerEvents="none")));var ts={};return eg&&(ts.dir="rtl"),i.createElement("div",aT({ref:eC,style:aV(aV({},V),{},{position:"relative"}),className:ey},ts,ea),i.createElement(lW,{onResize:function(e){eY({width:e.offsetWidth,height:e.offsetHeight})}},i.createElement(void 0===Z?"div":Z,{className:"".concat(H,"-holder"),style:tl,ref:ew,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==eS&&eT(t),null==J||J(e),e8()},onMouseEnter:tn},i.createElement(pj,{prefixCls:H,height:eH,offsetX:eM,offsetY:e$,scrollWidth:U,onInnerResize:ed,ref:ex,innerProps:et,rtl:eg,extra:ti},ta))),em&&eH>W&&i.createElement(pA,{ref:eK,prefixCls:H,scrollOffset:eS,scrollRange:eH,rtl:eg,onScroll:e6,onStartMove:eP,onStopMove:e_,spinSize:eG,containerSize:eV.height,style:null==er?void 0:er.verticalScrollBar,thumbStyle:null==er?void 0:er.verticalScrollBarThumb,showScrollBar:ei}),em&&U>eV.width&&i.createElement(pA,{ref:eX,prefixCls:H,scrollOffset:eM,scrollRange:U,rtl:eg,onScroll:e6,onStartMove:eP,onStopMove:e_,spinSize:eq,containerSize:eV.width,horizontal:!0,style:null==er?void 0:er.horizontalScrollBar,thumbStyle:null==er?void 0:er.horizontalScrollBarThumb,showScrollBar:ei}))}).displayName="List";var p$=(e=>(e[e.ONLY_LEAF_NODE=0]="ONLY_LEAF_NODE",e[e.ALL=1]="ALL",e))(p$||{});let pB=new WeakMap;function pV(e,t){let n=pB.get(t);n||(n=(0,s.createRoot)(t),pB.set(t,n)),n.render(e)}function pY(e){let t=pB.get(e);t&&(t.unmount(),pB.delete(e))}let pK=new Set;function pX(e){return o||(o=new ResizeObserver((...e)=>{pK.forEach(t=>t(...e))})),{observe(t,n){pK.add(e),o.observe(t,n)},unobserve(t){pK.delete(e),o.unobserve(t)}}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.