@editora/ui-react 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/components/Accordion.d.ts +31 -0
- package/dist/components/Accordion.d.ts.map +1 -0
- package/dist/components/Alert.d.ts +294 -0
- package/dist/components/Alert.d.ts.map +1 -0
- package/dist/components/AlertDialog.d.ts +79 -0
- package/dist/components/AlertDialog.d.ts.map +1 -0
- package/dist/components/AlertDialogProvider.d.ts +16 -0
- package/dist/components/AlertDialogProvider.d.ts.map +1 -0
- package/dist/components/Anchor.d.ts +9 -0
- package/dist/components/Anchor.d.ts.map +1 -0
- package/dist/components/AppHeader.d.ts +40 -0
- package/dist/components/AppHeader.d.ts.map +1 -0
- package/dist/components/AspectRatio.d.ts +16 -0
- package/dist/components/AspectRatio.d.ts.map +1 -0
- package/dist/components/Avatar.d.ts +30 -0
- package/dist/components/Avatar.d.ts.map +1 -0
- package/dist/components/Badge.d.ts +295 -0
- package/dist/components/Badge.d.ts.map +1 -0
- package/dist/components/BlockControls.d.ts +28 -0
- package/dist/components/BlockControls.d.ts.map +1 -0
- package/dist/components/Box.d.ts +74 -0
- package/dist/components/Box.d.ts.map +1 -0
- package/dist/components/Breadcrumb.d.ts +23 -0
- package/dist/components/Breadcrumb.d.ts.map +1 -0
- package/dist/components/Button.d.ts +25 -0
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/components/Calendar.d.ts +105 -0
- package/dist/components/Calendar.d.ts.map +1 -0
- package/dist/components/Card.d.ts +33 -0
- package/dist/components/Card.d.ts.map +1 -0
- package/dist/components/Chart.d.ts +76 -0
- package/dist/components/Chart.d.ts.map +1 -0
- package/dist/components/Checkbox.d.ts +21 -0
- package/dist/components/Checkbox.d.ts.map +1 -0
- package/dist/components/Collapsible.d.ts +32 -0
- package/dist/components/Collapsible.d.ts.map +1 -0
- package/dist/components/Collection.d.ts +20 -0
- package/dist/components/Collection.d.ts.map +1 -0
- package/dist/components/ColorPicker.d.ts +105 -0
- package/dist/components/ColorPicker.d.ts.map +1 -0
- package/dist/components/Combobox.d.ts +46 -0
- package/dist/components/Combobox.d.ts.map +1 -0
- package/dist/components/Command.d.ts +15 -0
- package/dist/components/Command.d.ts.map +1 -0
- package/dist/components/CommandPalette.d.ts +47 -0
- package/dist/components/CommandPalette.d.ts.map +1 -0
- package/dist/components/Container.d.ts +7 -0
- package/dist/components/Container.d.ts.map +1 -0
- package/dist/components/ContextMenu.d.ts +59 -0
- package/dist/components/ContextMenu.d.ts.map +1 -0
- package/dist/components/DataTable.d.ts +408 -0
- package/dist/components/DataTable.d.ts.map +1 -0
- package/dist/components/DateField.d.ts +44 -0
- package/dist/components/DateField.d.ts.map +1 -0
- package/dist/components/DatePicker.d.ts +106 -0
- package/dist/components/DatePicker.d.ts.map +1 -0
- package/dist/components/DateRangePicker.d.ts +96 -0
- package/dist/components/DateRangePicker.d.ts.map +1 -0
- package/dist/components/DateRangeTimePicker.d.ts +87 -0
- package/dist/components/DateRangeTimePicker.d.ts.map +1 -0
- package/dist/components/DateTimePicker.d.ts +84 -0
- package/dist/components/DateTimePicker.d.ts.map +1 -0
- package/dist/components/Dialog.d.ts +71 -0
- package/dist/components/Dialog.d.ts.map +1 -0
- package/dist/components/DialogProvider.d.ts +14 -0
- package/dist/components/DialogProvider.d.ts.map +1 -0
- package/dist/components/DirectionProvider.d.ts +3 -0
- package/dist/components/DirectionProvider.d.ts.map +1 -0
- package/dist/components/DismissableLayer.d.ts +41 -0
- package/dist/components/DismissableLayer.d.ts.map +1 -0
- package/dist/components/Drawer.d.ts +29 -0
- package/dist/components/Drawer.d.ts.map +1 -0
- package/dist/components/Dropdown.d.ts +66 -0
- package/dist/components/Dropdown.d.ts.map +1 -0
- package/dist/components/EmptyState.d.ts +280 -0
- package/dist/components/EmptyState.d.ts.map +1 -0
- package/dist/components/Field.d.ts +288 -0
- package/dist/components/Field.d.ts.map +1 -0
- package/dist/components/FieldSemantics.d.ts +77 -0
- package/dist/components/FieldSemantics.d.ts.map +1 -0
- package/dist/components/FileUpload.d.ts +76 -0
- package/dist/components/FileUpload.d.ts.map +1 -0
- package/dist/components/Flex.d.ts +17 -0
- package/dist/components/Flex.d.ts.map +1 -0
- package/dist/components/FloatingToolbar.d.ts +301 -0
- package/dist/components/FloatingToolbar.d.ts.map +1 -0
- package/dist/components/FocusScope.d.ts +29 -0
- package/dist/components/FocusScope.d.ts.map +1 -0
- package/dist/components/Form.d.ts +61 -0
- package/dist/components/Form.d.ts.map +1 -0
- package/dist/components/Gantt.d.ts +21 -0
- package/dist/components/Gantt.d.ts.map +1 -0
- package/dist/components/Grid.d.ts +24 -0
- package/dist/components/Grid.d.ts.map +1 -0
- package/dist/components/HoverCard.d.ts +35 -0
- package/dist/components/HoverCard.d.ts.map +1 -0
- package/dist/components/Icon.d.ts +49 -0
- package/dist/components/Icon.d.ts.map +1 -0
- package/dist/components/InlineEdit.d.ts +43 -0
- package/dist/components/InlineEdit.d.ts.map +1 -0
- package/dist/components/Input.d.ts +81 -0
- package/dist/components/Input.d.ts.map +1 -0
- package/dist/components/Label.d.ts +31 -0
- package/dist/components/Label.d.ts.map +1 -0
- package/dist/components/Layout.d.ts +21 -0
- package/dist/components/Layout.d.ts.map +1 -0
- package/dist/components/Listbox.d.ts +21 -0
- package/dist/components/Listbox.d.ts.map +1 -0
- package/dist/components/Menu.d.ts +45 -0
- package/dist/components/Menu.d.ts.map +1 -0
- package/dist/components/Menubar.d.ts +304 -0
- package/dist/components/Menubar.d.ts.map +1 -0
- package/dist/components/Meter.d.ts +30 -0
- package/dist/components/Meter.d.ts.map +1 -0
- package/dist/components/MultiSelect.d.ts +47 -0
- package/dist/components/MultiSelect.d.ts.map +1 -0
- package/dist/components/NavigationMenu.d.ts +317 -0
- package/dist/components/NavigationMenu.d.ts.map +1 -0
- package/dist/components/NumberField.d.ts +37 -0
- package/dist/components/NumberField.d.ts.map +1 -0
- package/dist/components/Pagination.d.ts +47 -0
- package/dist/components/Pagination.d.ts.map +1 -0
- package/dist/components/PanelGroup.d.ts +31 -0
- package/dist/components/PanelGroup.d.ts.map +1 -0
- package/dist/components/PasswordField.d.ts +97 -0
- package/dist/components/PasswordField.d.ts.map +1 -0
- package/dist/components/PinInput.d.ts +66 -0
- package/dist/components/PinInput.d.ts.map +1 -0
- package/dist/components/PluginPanel.d.ts +35 -0
- package/dist/components/PluginPanel.d.ts.map +1 -0
- package/dist/components/Popover.d.ts +37 -0
- package/dist/components/Popover.d.ts.map +1 -0
- package/dist/components/Portal.d.ts +18 -0
- package/dist/components/Portal.d.ts.map +1 -0
- package/dist/components/Positioner.d.ts +42 -0
- package/dist/components/Positioner.d.ts.map +1 -0
- package/dist/components/Presence.d.ts +22 -0
- package/dist/components/Presence.d.ts.map +1 -0
- package/dist/components/Progress.d.ts +32 -0
- package/dist/components/Progress.d.ts.map +1 -0
- package/dist/components/QuickActions.d.ts +36 -0
- package/dist/components/QuickActions.d.ts.map +1 -0
- package/dist/components/RadioGroup.d.ts +26 -0
- package/dist/components/RadioGroup.d.ts.map +1 -0
- package/dist/components/RovingFocusGroup.d.ts +22 -0
- package/dist/components/RovingFocusGroup.d.ts.map +1 -0
- package/dist/components/ScrollArea.d.ts +20 -0
- package/dist/components/ScrollArea.d.ts.map +1 -0
- package/dist/components/Section.d.ts +11 -0
- package/dist/components/Section.d.ts.map +1 -0
- package/dist/components/Select.d.ts +62 -0
- package/dist/components/Select.d.ts.map +1 -0
- package/dist/components/SelectionPopup.d.ts +292 -0
- package/dist/components/SelectionPopup.d.ts.map +1 -0
- package/dist/components/Separator.d.ts +22 -0
- package/dist/components/Separator.d.ts.map +1 -0
- package/dist/components/Sidebar.d.ts +122 -0
- package/dist/components/Sidebar.d.ts.map +1 -0
- package/dist/components/Skeleton.d.ts +286 -0
- package/dist/components/Skeleton.d.ts.map +1 -0
- package/dist/components/Slider.d.ts +78 -0
- package/dist/components/Slider.d.ts.map +1 -0
- package/dist/components/Slot.d.ts +36 -0
- package/dist/components/Slot.d.ts.map +1 -0
- package/dist/components/SplitButton.d.ts +49 -0
- package/dist/components/SplitButton.d.ts.map +1 -0
- package/dist/components/Stepper.d.ts +41 -0
- package/dist/components/Stepper.d.ts.map +1 -0
- package/dist/components/Switch.d.ts +45 -0
- package/dist/components/Switch.d.ts.map +1 -0
- package/dist/components/Table.d.ts +310 -0
- package/dist/components/Table.d.ts.map +1 -0
- package/dist/components/Tabs.d.ts +52 -0
- package/dist/components/Tabs.d.ts.map +1 -0
- package/dist/components/TagsInput.d.ts +51 -0
- package/dist/components/TagsInput.d.ts.map +1 -0
- package/dist/components/Textarea.d.ts +72 -0
- package/dist/components/Textarea.d.ts.map +1 -0
- package/dist/components/ThemeProvider.d.ts +20 -0
- package/dist/components/ThemeProvider.d.ts.map +1 -0
- package/dist/components/TimePicker.d.ts +76 -0
- package/dist/components/TimePicker.d.ts.map +1 -0
- package/dist/components/Timeline.d.ts +20 -0
- package/dist/components/Timeline.d.ts.map +1 -0
- package/dist/components/Toast.d.ts +29 -0
- package/dist/components/Toast.d.ts.map +1 -0
- package/dist/components/ToastAPI.d.ts +33 -0
- package/dist/components/ToastAPI.d.ts.map +1 -0
- package/dist/components/Toggle.d.ts +45 -0
- package/dist/components/Toggle.d.ts.map +1 -0
- package/dist/components/ToggleGroup.d.ts +49 -0
- package/dist/components/ToggleGroup.d.ts.map +1 -0
- package/dist/components/Toolbar.d.ts +26 -0
- package/dist/components/Toolbar.d.ts.map +1 -0
- package/dist/components/Tooltip.d.ts +46 -0
- package/dist/components/Tooltip.d.ts.map +1 -0
- package/dist/components/TransferList.d.ts +41 -0
- package/dist/components/TransferList.d.ts.map +1 -0
- package/dist/components/Tree.d.ts +27 -0
- package/dist/components/Tree.d.ts.map +1 -0
- package/dist/components/VisuallyHidden.d.ts +3 -0
- package/dist/components/VisuallyHidden.d.ts.map +1 -0
- package/dist/components/Wizard.d.ts +74 -0
- package/dist/components/Wizard.d.ts.map +1 -0
- package/dist/components/_internals.d.ts +3 -0
- package/dist/components/_internals.d.ts.map +1 -0
- package/dist/components/index.d.ts +103 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/hooks/useFloating.d.ts +49 -0
- package/dist/hooks/useFloating.d.ts.map +1 -0
- package/dist/hooks/useForm.d.ts +11 -0
- package/dist/hooks/useForm.d.ts.map +1 -0
- package/dist/hooks/useTheme.d.ts +2 -0
- package/dist/hooks/useTheme.d.ts.map +1 -0
- package/dist/index.cjs.js +170 -1
- package/dist/index.d.ts +107 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +15903 -3515
- package/package.json +30 -6
- package/LICENSE +0 -21
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1,170 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const v=require("react"),V=require("@editora/ui-core");function Rt(h){if(h&&h.__esModule)return h;const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(h){for(const t in h)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(h,t);Object.defineProperty(o,t,l.get?l:{enumerable:!0,get:()=>h[t]})}}return o.default=h,Object.freeze(o)}const N=Rt(v);function Ht(h){const{children:o,onClick:t,variant:l,size:i,icon:s,loading:b,block:n,headless:r,disabled:a,animation:m,theme:u,...y}=h,p=v.useRef(null),g=typeof window<"u"?N.default.useLayoutEffect:N.default.useEffect;v.useEffect(()=>{const d=p.current;if(!d)return;const E=e=>t&&t(e);return t&&d.addEventListener("click",E),()=>{t&&d.removeEventListener("click",E)}},[t]),g(()=>{const d=p.current;d&&(l?d.setAttribute("variant",l):d.removeAttribute("variant"),i?d.setAttribute("size",i):d.removeAttribute("size"),s?d.setAttribute("icon",s):d.removeAttribute("icon"),b?d.setAttribute("loading",""):d.removeAttribute("loading"),n?d.setAttribute("block",""):d.removeAttribute("block"),r?d.setAttribute("headless",""):d.removeAttribute("headless"),a?d.setAttribute("disabled",""):d.removeAttribute("disabled"),m?d.setAttribute("animation",m):d.removeAttribute("animation"),u&&u!=="default"?d.setAttribute("theme",u):d.removeAttribute("theme"))},[l,i,s,b,n,r,a,m,u]);const A={ref:p,...y,variant:l,size:i,icon:s,animation:m,theme:u&&u!=="default"?u:void 0,loading:b?"":void 0,block:n?"":void 0,headless:r?"":void 0,disabled:a?"":void 0};return N.default.createElement("ui-button",A,o)}const de=N.default.forwardRef(function({children:o,text:t,placement:l,open:i,disabled:s,headless:b,variant:n,size:r,tone:a,delay:m,closeDelay:u,trigger:y,offset:p,interactive:g,arrow:A,onOpen:d,onClose:E,onOpenChange:e,...c},w){const L=v.useRef(null);return v.useImperativeHandle(w,()=>L.current),v.useEffect(()=>{const H=L.current;if(!H)return;const f=()=>{d==null||d()},P=()=>{E==null||E()},R=S=>{const T=S.detail;T&&typeof T.open=="boolean"&&(e==null||e(T.open))};return H.addEventListener("open",f),H.addEventListener("close",P),H.addEventListener("change",R),()=>{H.removeEventListener("open",f),H.removeEventListener("close",P),H.removeEventListener("change",R)}},[d,E,e]),v.useEffect(()=>{const H=L.current;if(!H)return;const f=(R,S)=>{const T=H.getAttribute(R);if(S==null){T!=null&&H.removeAttribute(R);return}T!==S&&H.setAttribute(R,S)},P=(R,S)=>{S?f(R,""):f(R,null)};f("text",t||null),f("placement",l||null),P("open",i),P("disabled",s),P("headless",b),f("variant",n&&n!=="default"?n:null),f("size",r&&r!=="md"?r:null),f("tone",a&&a!=="default"?a:null),f("delay",typeof m=="number"&&Number.isFinite(m)?String(m):null),f("close-delay",typeof u=="number"&&Number.isFinite(u)?String(u):null),f("trigger",y||null),f("offset",typeof p=="number"&&Number.isFinite(p)?String(p):null),P("interactive",g),typeof A=="boolean"?f("arrow",A?"true":"false"):f("arrow",null)},[t,l,i,s,b,n,r,a,m,u,y,p,g,A]),N.default.createElement("ui-tooltip",{ref:L,...c},o)});de.displayName="Tooltip";function Nt(h){const{title:o,description:t,tone:l,variant:i,layout:s,dismissible:b,open:n,headless:r,onClose:a,children:m,...u}=h,y=v.useRef(null);return v.useEffect(()=>{const p=y.current;if(!p)return;const g=()=>a==null?void 0:a();return p.addEventListener("close",g),()=>p.removeEventListener("close",g)},[a]),v.useEffect(()=>{const p=y.current;p&&(o?p.setAttribute("title",o):p.removeAttribute("title"),t?p.setAttribute("description",t):p.removeAttribute("description"),l?p.setAttribute("tone",l):p.removeAttribute("tone"),i?p.setAttribute("variant",i):p.removeAttribute("variant"),s?p.setAttribute("layout",s):p.removeAttribute("layout"),b?p.setAttribute("dismissible",""):p.removeAttribute("dismissible"),r?p.setAttribute("headless",""):p.removeAttribute("headless"),typeof n=="boolean"&&(n?p.removeAttribute("hidden"):p.setAttribute("hidden","")))},[o,t,l,i,s,b,n,r]),N.default.createElement("ui-alert",{ref:y,...u},m)}const be=N.default.forwardRef(function({children:o,open:t,placement:l,variant:i,density:s,shape:b,elevation:n,tone:r,closeOnSelect:a,typeahead:m,onOpen:u,onClose:y,onChange:p,onSelect:g,...A},d){const E=v.useRef(null);return N.default.useImperativeHandle(d,()=>E.current),v.useEffect(()=>{const e=E.current;if(!e)return;const c=()=>u==null?void 0:u(),w=()=>y==null?void 0:y(),L=f=>{var R;const P=(R=f.detail)==null?void 0:R.open;typeof P=="boolean"&&(p==null||p(P))},H=f=>{g==null||g(f.detail||{})};return e.addEventListener("open",c),e.addEventListener("close",w),e.addEventListener("change",L),e.addEventListener("select",H),()=>{e.removeEventListener("open",c),e.removeEventListener("close",w),e.removeEventListener("change",L),e.removeEventListener("select",H)}},[u,y,p,g]),v.useEffect(()=>{const e=E.current;!e||t==null||(t?e.setAttribute("open",""):e.removeAttribute("open"))},[t]),v.useEffect(()=>{const e=E.current;e&&(l?e.setAttribute("placement",l):e.removeAttribute("placement"))},[l]),v.useEffect(()=>{const e=E.current;e&&(i&&i!=="default"?e.setAttribute("variant",i):e.removeAttribute("variant"))},[i]),v.useEffect(()=>{const e=E.current;e&&(s&&s!=="default"?e.setAttribute("density",s):e.removeAttribute("density"))},[s]),v.useEffect(()=>{const e=E.current;e&&(b&&b!=="default"?e.setAttribute("shape",b):e.removeAttribute("shape"))},[b]),v.useEffect(()=>{const e=E.current;e&&(n&&n!=="default"?e.setAttribute("elevation",n):e.removeAttribute("elevation"))},[n]),v.useEffect(()=>{const e=E.current;e&&(r&&r!=="default"&&r!=="brand"?e.setAttribute("tone",r):e.removeAttribute("tone"))},[r]),v.useEffect(()=>{const e=E.current;if(e){if(a==null){e.removeAttribute("close-on-select");return}e.setAttribute("close-on-select",a?"true":"false")}},[a]),v.useEffect(()=>{const e=E.current;if(e){if(m==null){e.removeAttribute("typeahead");return}e.setAttribute("typeahead",m?"true":"false")}},[m]),N.default.createElement("ui-dropdown",{ref:E,...A},o)});be.displayName="Dropdown";const me=N.default.forwardRef(function(o,t){const{value:l,onChange:i,onInput:s,onDebouncedInput:b,onClear:n,clearable:r,debounce:a,validation:m,size:u,minlength:y,maxlength:p,readOnly:g,autofocus:A,disabled:d,counter:E,floatingLabel:e,type:c,name:w,required:L,pattern:H,inputMode:f,autoComplete:P,min:R,max:S,step:T,spellCheck:q,placeholder:x,headless:k,variant:K,tone:F,density:D,shape:B,color:$,radius:J,label:G,description:M,children:_,...I}=o,Q=v.useRef(null);return v.useImperativeHandle(t,()=>Q.current),v.useEffect(()=>{const j=Q.current;if(!j)return;const Z=C=>{const z=C.detail;typeof(z==null?void 0:z.value)=="string"&&(s==null||s(z.value))},Y=C=>{const z=C.detail;typeof(z==null?void 0:z.value)=="string"&&(i==null||i(z.value))},re=C=>{const z=C.detail;typeof(z==null?void 0:z.value)=="string"&&(b==null||b(z.value))},ie=()=>{n==null||n()};return j.addEventListener("input",Z),j.addEventListener("change",Y),j.addEventListener("debounced-input",re),j.addEventListener("clear",ie),()=>{j.removeEventListener("input",Z),j.removeEventListener("change",Y),j.removeEventListener("debounced-input",re),j.removeEventListener("clear",ie)}},[i,s,b,n]),v.useEffect(()=>{const j=Q.current;j&&(r?j.setAttribute("clearable",""):j.removeAttribute("clearable"),typeof a=="number"&&Number.isFinite(a)?j.setAttribute("debounce",String(a)):j.removeAttribute("debounce"),m&&m!=="none"?j.setAttribute("validation",m):j.removeAttribute("validation"),u&&u!=="md"&&u!=="2"?j.setAttribute("size",String(u)):j.removeAttribute("size"),typeof y=="number"?j.setAttribute("minlength",String(y)):j.removeAttribute("minlength"),typeof p=="number"?j.setAttribute("maxlength",String(p)):j.removeAttribute("maxlength"),g?j.setAttribute("readonly",""):j.removeAttribute("readonly"),A?j.setAttribute("autofocus",""):j.removeAttribute("autofocus"),d?j.setAttribute("disabled",""):j.removeAttribute("disabled"),E?j.setAttribute("counter",""):j.removeAttribute("counter"),e?j.setAttribute("floating-label",""):j.removeAttribute("floating-label"),c?j.setAttribute("type",c):j.removeAttribute("type"),w?j.setAttribute("name",w):j.removeAttribute("name"),L?j.setAttribute("required",""):j.removeAttribute("required"),H?j.setAttribute("pattern",H):j.removeAttribute("pattern"),f?j.setAttribute("inputmode",f):j.removeAttribute("inputmode"),P?j.setAttribute("autocomplete",P):j.removeAttribute("autocomplete"),R!=null&&R!==""?j.setAttribute("min",String(R)):j.removeAttribute("min"),S!=null&&S!==""?j.setAttribute("max",String(S)):j.removeAttribute("max"),T!=null&&T!==""?j.setAttribute("step",String(T)):j.removeAttribute("step"),typeof q=="boolean"?j.setAttribute("spellcheck",q?"true":"false"):j.removeAttribute("spellcheck"),x?j.setAttribute("placeholder",x):j.removeAttribute("placeholder"),k?j.setAttribute("headless",""):j.removeAttribute("headless"),K&&K!=="classic"?j.setAttribute("variant",K):j.removeAttribute("variant"),F&&F!=="default"?j.setAttribute("tone",F):j.removeAttribute("tone"),D&&D!=="default"?j.setAttribute("density",D):j.removeAttribute("density"),B&&B!=="default"?j.setAttribute("shape",B):j.removeAttribute("shape"),$?j.setAttribute("color",$):j.removeAttribute("color"),J?j.setAttribute("radius",String(J)):j.removeAttribute("radius"),G?j.setAttribute("label",G):j.removeAttribute("label"),M?j.setAttribute("description",M):j.removeAttribute("description"))},[r,a,m,u,y,p,g,A,d,E,e,c,w,L,H,f,P,R,S,T,q,x,k,K,F,D,B,$,J,G,M]),N.default.createElement("ui-input",{ref:Q,value:l??void 0,...I},_)});me.displayName="Input";const ve=N.default.forwardRef(function({value:o,onChange:t,onInput:l,onDebouncedInput:i,onClear:s,clearable:b,debounce:n,validation:r,size:a,minlength:m,maxlength:u,rows:y,readOnly:p,autofocus:g,disabled:A,name:d,required:E,placeholder:e,resize:c,variant:w,color:L,radius:H,label:f,description:P,autosize:R,maxRows:S,showCount:T,density:q,tone:x,headless:k,children:K,...F},D){const B=v.useRef(null);return v.useImperativeHandle(D,()=>B.current),v.useEffect(()=>{const $=B.current;if(!$)return;const J=I=>{const Q=I.detail;Q&&(l==null||l(Q.value))},G=I=>{const Q=I.detail;Q&&(t==null||t(Q.value))},M=I=>{const Q=I.detail;Q&&(i==null||i(Q.value))},_=()=>s==null?void 0:s();return $.addEventListener("input",J),$.addEventListener("change",G),$.addEventListener("debounced-input",M),$.addEventListener("clear",_),()=>{$.removeEventListener("input",J),$.removeEventListener("change",G),$.removeEventListener("debounced-input",M),$.removeEventListener("clear",_)}},[t,l,i,s]),v.useEffect(()=>{const $=B.current;if(!$)return;const J=(M,_)=>{const I=$.getAttribute(M);if(_==null){I!=null&&$.removeAttribute(M);return}I!==_&&$.setAttribute(M,_)},G=(M,_)=>{_?J(M,""):J(M,null)};J("value",o!=null?String(o):null),G("clearable",b),G("readonly",p),G("autofocus",g),G("disabled",A),G("required",E),G("autosize",R),G("show-count",T),G("headless",k),J("debounce",typeof n=="number"&&Number.isFinite(n)?String(n):null),J("validation",r&&r!=="none"?r:null),J("size",a&&a!=="md"&&a!=="2"?String(a):null),J("minlength",typeof m=="number"?String(m):null),J("maxlength",typeof u=="number"?String(u):null),J("rows",typeof y=="number"?String(y):null),J("name",d||null),J("placeholder",e||null),J("resize",c||null),J("variant",w&&w!=="classic"?w:null),J("color",L||null),J("radius",H?String(H):null),J("label",f||null),J("description",P||null),J("max-rows",typeof S=="number"?String(S):null),J("density",q&&q!=="default"?q:null),J("tone",x&&x!=="brand"?x:null)},[o,b,n,r,a,m,u,y,p,g,A,d,E,e,c,w,L,H,f,P,R,S,T,q,x,k]),N.default.createElement("ui-textarea",{ref:B,...F},K)});ve.displayName="Textarea";function kt(h){const{children:o,label:t,description:l,error:i,htmlFor:s,required:b,invalid:n,orientation:r,variant:a,tone:m,density:u,shape:y,labelWidth:p,headless:g,...A}=h,d=v.useRef(null);return v.useEffect(()=>{const E=d.current;E&&(t!=null&&t!==""?E.setAttribute("label",t):E.removeAttribute("label"),l!=null&&l!==""?E.setAttribute("description",l):E.removeAttribute("description"),i!=null&&i!==""?E.setAttribute("error",i):E.removeAttribute("error"),s?E.setAttribute("for",s):E.removeAttribute("for"),b?E.setAttribute("required",""):E.removeAttribute("required"),n?E.setAttribute("invalid",""):E.removeAttribute("invalid"),r&&r!=="vertical"?E.setAttribute("orientation",r):E.removeAttribute("orientation"),a&&a!=="default"?E.setAttribute("variant",a):E.removeAttribute("variant"),m&&m!=="default"?E.setAttribute("tone",m):E.removeAttribute("tone"),u&&u!=="default"?E.setAttribute("density",u):E.removeAttribute("density"),y&&y!=="default"?E.setAttribute("shape",y):E.removeAttribute("shape"),p?E.setAttribute("label-width",p):E.removeAttribute("label-width"),g?E.setAttribute("headless",""):E.removeAttribute("headless"))},[t,l,i,s,b,n,r,a,m,u,y,p,g]),N.default.createElement("ui-field",{ref:d,...A},o)}function Pt(h){const{value:o,onChange:t,onInput:l,onDebouncedInput:i,onSelect:s,onOpen:b,onClose:n,onClear:r,clearable:a,debounce:m,validation:u,size:y,maxlength:p,readOnly:g,autofocus:A,disabled:d,name:E,required:e,placeholder:c,variant:w,radius:L,label:H,description:f,emptyText:P,noFilter:R,allowCustom:S,children:T,...q}=h,x=v.useRef(null);return v.useEffect(()=>{const k=x.current;if(!k)return;const K=M=>{var I;const _=(I=M.detail)==null?void 0:I.query;typeof _=="string"&&(l==null||l(_))},F=M=>{var I;const _=(I=M.detail)==null?void 0:I.value;typeof _=="string"&&(t==null||t(_))},D=M=>{var I;const _=(I=M.detail)==null?void 0:I.query;typeof _=="string"&&(i==null||i(_))},B=M=>{const _=M.detail;typeof(_==null?void 0:_.value)=="string"&&(s==null||s(_.value,_.label||_.value))},$=()=>b==null?void 0:b(),J=()=>n==null?void 0:n(),G=()=>r==null?void 0:r();return k.addEventListener("input",K),k.addEventListener("change",F),k.addEventListener("debounced-input",D),k.addEventListener("select",B),k.addEventListener("open",$),k.addEventListener("close",J),k.addEventListener("clear",G),()=>{k.removeEventListener("input",K),k.removeEventListener("change",F),k.removeEventListener("debounced-input",D),k.removeEventListener("select",B),k.removeEventListener("open",$),k.removeEventListener("close",J),k.removeEventListener("clear",G)}},[t,l,i,s,b,n,r]),v.useEffect(()=>{const k=x.current;k&&(a?k.setAttribute("clearable",""):k.removeAttribute("clearable"),typeof m=="number"&&Number.isFinite(m)?k.setAttribute("debounce",String(m)):k.removeAttribute("debounce"),u&&u!=="none"?k.setAttribute("validation",u):k.removeAttribute("validation"),y&&y!=="md"&&y!=="2"?k.setAttribute("size",String(y)):k.removeAttribute("size"),typeof p=="number"?k.setAttribute("maxlength",String(p)):k.removeAttribute("maxlength"),g?k.setAttribute("readonly",""):k.removeAttribute("readonly"),A?k.setAttribute("autofocus",""):k.removeAttribute("autofocus"),d?k.setAttribute("disabled",""):k.removeAttribute("disabled"),E?k.setAttribute("name",E):k.removeAttribute("name"),e?k.setAttribute("required",""):k.removeAttribute("required"),c?k.setAttribute("placeholder",c):k.removeAttribute("placeholder"),w?k.setAttribute("variant",w):k.removeAttribute("variant"),L?k.setAttribute("radius",String(L)):k.removeAttribute("radius"),H?k.setAttribute("label",H):k.removeAttribute("label"),f?k.setAttribute("description",f):k.removeAttribute("description"),P?k.setAttribute("empty-text",P):k.removeAttribute("empty-text"),R?k.setAttribute("no-filter",""):k.removeAttribute("no-filter"),S?k.setAttribute("allow-custom",""):k.removeAttribute("allow-custom"))},[a,m,u,y,p,g,A,d,E,e,c,w,L,H,f,P,R,S]),N.default.createElement("ui-combobox",{ref:x,value:o,...q},T)}function St(h){const{text:o,tone:t,variant:l,size:i,radius:s,pill:b,dot:n,removable:r,autoRemove:a,iconOnly:m,disabled:u,onRemove:y,children:p,...g}=h,A=v.useRef(null);return v.useEffect(()=>{const d=A.current;if(!d)return;const E=()=>y==null?void 0:y();return d.addEventListener("remove",E),()=>d.removeEventListener("remove",E)},[y]),v.useEffect(()=>{const d=A.current;d&&(o?d.setAttribute("text",o):d.removeAttribute("text"),t?d.setAttribute("tone",t):d.removeAttribute("tone"),l?d.setAttribute("variant",l):d.removeAttribute("variant"),i&&i!=="md"&&i!=="2"?d.setAttribute("size",i):d.removeAttribute("size"),s?d.setAttribute("radius",String(s)):d.removeAttribute("radius"),b?d.setAttribute("pill",""):d.removeAttribute("pill"),n?d.setAttribute("dot",""):d.removeAttribute("dot"),r?d.setAttribute("removable",""):d.removeAttribute("removable"),a?d.setAttribute("auto-remove",""):d.removeAttribute("auto-remove"),m?d.setAttribute("icon-only",""):d.removeAttribute("icon-only"),u?d.setAttribute("disabled",""):d.removeAttribute("disabled"))},[o,t,l,i,s,b,n,r,a,m,u]),N.default.createElement("ui-badge",{ref:A,...g},p)}function Ft(h){const{title:o,description:t,actionLabel:l,tone:i,compact:s,headless:b,onAction:n,children:r,...a}=h,m=v.useRef(null);return v.useEffect(()=>{const u=m.current;if(!u)return;const y=()=>n==null?void 0:n();return u.addEventListener("action",y),()=>u.removeEventListener("action",y)},[n]),v.useEffect(()=>{const u=m.current;u&&(o?u.setAttribute("title",o):u.removeAttribute("title"),t?u.setAttribute("description",t):u.removeAttribute("description"),l?u.setAttribute("action-label",l):u.removeAttribute("action-label"),i?u.setAttribute("tone",i):u.removeAttribute("tone"),s?u.setAttribute("compact",""):u.removeAttribute("compact"),b?u.setAttribute("headless",""):u.removeAttribute("headless"))},[o,t,l,i,s,b]),N.default.createElement("ui-empty-state",{ref:m,...a},r)}function Tt(h){const{sortable:o,selectable:t,multiSelect:l,striped:i,hover:s,compact:b,bordered:n,stickyHeader:r,loading:a,headless:m,emptyText:u,onSortChange:y,onRowSelect:p,children:g,...A}=h,d=v.useRef(null);return v.useEffect(()=>{const E=d.current;if(!E)return;const e=w=>{const L=w.detail;L&&(y==null||y(L))},c=w=>{const L=w.detail;L&&(p==null||p(L))};return E.addEventListener("sort-change",e),E.addEventListener("row-select",c),()=>{E.removeEventListener("sort-change",e),E.removeEventListener("row-select",c)}},[y,p]),N.default.createElement("ui-table",{ref:d,...A,...o?{sortable:""}:{},...t?{selectable:""}:{},...l?{"multi-select":""}:{},...i?{striped:""}:{},...s?{hover:""}:{},...b?{compact:""}:{},...n?{bordered:""}:{},...r?{"sticky-header":""}:{},...a?{loading:""}:{},...m?{headless:""}:{},...u?{"empty-text":u}:{}},g)}function xt(h){const{sortable:o,selectable:t,multiSelect:l,striped:i,hover:s,compact:b,bordered:n,stickyHeader:r,loading:a,headless:m,hideSummary:u,emptyText:y,page:p,pageSize:g,paginationId:A,filterQuery:d,filterColumn:E,filterRules:e,columnOrder:c,pinColumns:w,draggableColumns:L,resizableColumns:H,bulkActionsLabel:f,bulkClearLabel:P,virtualize:R,rowHeight:S,overscan:T,onSortChange:q,onRowSelect:x,onPageChange:k,onFilterChange:K,onColumnResize:F,onVirtualRangeChange:D,onColumnOrderChange:B,onBulkClear:$,children:J,...G}=h,M=v.useRef(null);v.useEffect(()=>{const Q=M.current;if(!Q)return;const j=W=>{const X=W.detail;X&&(q==null||q(X))},Z=W=>{const X=W.detail;X&&(x==null||x(X))},Y=W=>{const X=W.detail;X&&(k==null||k(X))},re=W=>{const X=W.detail;X&&(K==null||K(X))},ie=W=>{const X=W.detail;X&&(F==null||F(X))},C=W=>{const X=W.detail;X&&(D==null||D(X))},z=W=>{const X=W.detail;X&&(B==null||B(X))},le=W=>{const X=W.detail;X&&($==null||$(X))};return Q.addEventListener("sort-change",j),Q.addEventListener("row-select",Z),Q.addEventListener("page-change",Y),Q.addEventListener("filter-change",re),Q.addEventListener("column-resize",ie),Q.addEventListener("virtual-range-change",C),Q.addEventListener("column-order-change",z),Q.addEventListener("bulk-clear",le),()=>{Q.removeEventListener("sort-change",j),Q.removeEventListener("row-select",Z),Q.removeEventListener("page-change",Y),Q.removeEventListener("filter-change",re),Q.removeEventListener("column-resize",ie),Q.removeEventListener("virtual-range-change",C),Q.removeEventListener("column-order-change",z),Q.removeEventListener("bulk-clear",le)}},[q,x,k,K,F,D,B,$]);const _=e&&e.length?(()=>{try{return JSON.stringify(e)}catch{return}})():void 0,I=typeof w=="string"?w.trim()||void 0:w&&typeof w=="object"?(()=>{try{return JSON.stringify(w)}catch{return}})():void 0;return N.default.createElement("ui-data-table",{ref:M,...G,...o?{sortable:""}:{},...t?{selectable:""}:{},...l?{"multi-select":""}:{},...i?{striped:""}:{},...s?{hover:""}:{},...b?{compact:""}:{},...n?{bordered:""}:{},...r?{"sticky-header":""}:{},...a?{loading:""}:{},...m?{headless:""}:{},...u?{"hide-summary":""}:{},...y?{"empty-text":y}:{},...typeof p=="number"&&Number.isFinite(p)?{page:String(p)}:{},...typeof g=="number"&&Number.isFinite(g)?{"page-size":String(g)}:{},...A?{"pagination-id":A}:{},...typeof d=="string"?{"filter-query":d}:{},...typeof E=="number"&&Number.isFinite(E)?{"filter-column":String(E)}:typeof E=="string"&&E.trim()?{"filter-column":E}:{},..._?{filters:_}:{},...c?{"column-order":c}:{},...I?{"pin-columns":I}:{},...L?{"draggable-columns":""}:{},...H?{"resizable-columns":""}:{},...f?{"bulk-actions-label":f}:{},...P?{"bulk-clear-label":P}:{},...R?{virtualize:""}:{},...typeof S=="number"&&Number.isFinite(S)?{"row-height":String(S)}:{},...typeof T=="number"&&Number.isFinite(T)?{overscan:String(T)}:{}},J)}const Ae=N.default.forwardRef(function({data:o,values:t,labels:l,type:i,variant:s,title:b,subtitle:n,headless:r,children:a,...m},u){const y=v.useRef(null);return v.useImperativeHandle(u,()=>y.current),v.useEffect(()=>{const p=y.current;if(!p)return;const g=(d,E)=>{const e=p.getAttribute(d);if(E==null){e!=null&&p.removeAttribute(d);return}e!==E&&p.setAttribute(d,E)},A=(d,E)=>{E?g(d,""):g(d,null)};if(o&&o.length)try{g("data",JSON.stringify(o))}catch{g("data",null)}else g("data",null);t&&t.length?g("values",t.join(",")):g("values",null),l&&l.length?g("labels",l.join(",")):g("labels",null),g("type",i&&i!=="line"?i:null),g("variant",s&&s!=="default"?s:null),g("title",b||null),g("subtitle",n||null),A("headless",r)},[o,t,l,i,s,b,n,r]),N.default.createElement("ui-chart",{ref:y,...m},a)});Ae.displayName="Chart";const Ee=N.default.forwardRef(function({items:o,variant:t,headless:l,children:i,...s},b){const n=v.useRef(null);return v.useImperativeHandle(b,()=>n.current),v.useEffect(()=>{const r=n.current;if(!r)return;const a=(u,y)=>{const p=r.getAttribute(u);if(y==null){p!=null&&r.removeAttribute(u);return}p!==y&&r.setAttribute(u,y)},m=(u,y)=>{y?a(u,""):a(u,null)};if(o&&o.length)try{a("items",JSON.stringify(o))}catch{a("items",null)}else a("items",null);a("variant",t&&t!=="default"?t:null),m("headless",l)},[o,t,l]),N.default.createElement("ui-timeline",{ref:n,...s},i)});Ee.displayName="Timeline";const pe=N.default.forwardRef(function({year:o,month:t,value:l,events:i,variant:s,selection:b,min:n,max:r,disabled:a,readOnly:m,locale:u,weekStart:y,outsideClick:p,eventsMax:g,eventsDisplay:A,maxSelections:d,size:E,headless:e,hideToday:c,showToday:w,onSelect:L,onChange:H,onCalendarChange:f,onValueChange:P,children:R,...S},T){const q=v.useRef(null);return v.useImperativeHandle(T,()=>q.current),v.useEffect(()=>{const x=q.current;if(!x)return;const k=F=>{const D=F.detail;D&&(L==null||L(D),H==null||H(D),P==null||P(D.value))},K=F=>{const D=F.detail;D&&(f==null||f(D))};return x.addEventListener("select",k),x.addEventListener("change",K),()=>{x.removeEventListener("select",k),x.removeEventListener("change",K)}},[L,H,f,P]),v.useEffect(()=>{const x=q.current;if(!x)return;const k=(F,D)=>{const B=x.getAttribute(F);if(D==null){B!=null&&x.removeAttribute(F);return}B!==D&&x.setAttribute(F,D)},K=(F,D)=>{D?x.hasAttribute(F)||x.setAttribute(F,""):x.hasAttribute(F)&&x.removeAttribute(F)};if(typeof o=="number"&&Number.isFinite(o)?k("year",String(o)):k("year",null),typeof t=="number"&&Number.isFinite(t)?k("month",String(t)):k("month",null),k("value",l||null),k("selection",b&&b!=="single"?b:null),k("min",n||null),k("max",r||null),k("locale",u||null),k("week-start",typeof y=="number"?String(y):null),k("outside-click",p&&p!=="navigate"?p:null),k("events-max",typeof g=="number"&&Number.isFinite(g)?String(g):null),k("events-display",A&&A!=="dots"?A:null),k("max-selections",typeof d=="number"&&Number.isFinite(d)?String(d):null),k("size",E&&E!=="md"?E:null),k("show-today",typeof w=="boolean"?w?"true":"false":null),K("disabled",a),K("readonly",m),K("hide-today",c),K("headless",e),i&&i.length)try{k("events",JSON.stringify(i))}catch{k("events",null)}else k("events",null);k("variant",s&&s!=="default"?s:null)},[o,t,l,i,s,b,n,r,a,m,u,y,p,g,A,d,E,e,c,w]),N.default.createElement("ui-calendar",{ref:q,...S},R)});pe.displayName="Calendar";const ye=N.default.forwardRef(function({value:o,format:t,alpha:l,disabled:i,readOnly:s,size:b,variant:n,mode:r,open:a,placeholder:m,presets:u,recent:y,maxRecent:p,persist:g,onInput:A,onChange:d,onValueChange:E,onOpen:e,onClose:c,onInvalid:w,children:L,...H},f){const P=v.useRef(null);v.useImperativeHandle(f,()=>P.current),v.useEffect(()=>{const S=P.current;if(!S)return;const T=k=>{const K=k.detail;K&&(A==null||A(K))},q=k=>{const K=k.detail;K&&(d==null||d(K),E==null||E(K.value))},x=k=>{const K=k.detail;K&&(w==null||w(K))};return S.addEventListener("input",T),S.addEventListener("change",q),S.addEventListener("open",e),S.addEventListener("close",c),S.addEventListener("invalid",x),()=>{S.removeEventListener("input",T),S.removeEventListener("change",q),S.removeEventListener("open",e),S.removeEventListener("close",c),S.removeEventListener("invalid",x)}},[A,d,E,e,c,w]),v.useEffect(()=>{const S=P.current;if(!S)return;const T=(x,k)=>{const K=S.getAttribute(x);k==null?K!=null&&S.removeAttribute(x):K!==k&&S.setAttribute(x,k)},q=(x,k)=>{k?T(x,""):T(x,null)};if(T("value",o??null),T("format",t&&t!=="hex"?t:null),q("alpha",l),q("disabled",i),q("readonly",s),T("size",b&&b!=="md"?b:null),T("variant",n&&n!=="default"?n:null),T("mode",r&&r!=="inline"?r:null),typeof a=="boolean"?q("open",a):T("open",null),T("placeholder",m??null),q("recent",y),T("max-recent",typeof p=="number"?String(p):null),q("persist",g),u&&u.length>0)try{T("presets",JSON.stringify(u))}catch{T("presets",null)}else T("presets",null)},[o,t,l,i,s,b,n,r,a,m,u,y,p,g]);const R={ref:P,...H};if(r&&r!=="inline"&&(R.mode=r),typeof a=="boolean"&&a&&(R.open=""),o!=null&&(R.value=o),t&&t!=="hex"&&(R.format=t),l&&(R.alpha=""),i&&(R.disabled=""),s&&(R.readonly=""),b&&b!=="md"&&(R.size=b),n&&n!=="default"&&(R.variant=n),m&&(R.placeholder=m),y&&(R.recent=""),typeof p=="number"&&(R["max-recent"]=String(p)),g&&(R.persist=""),u&&u.length>0)try{R.presets=JSON.stringify(u)}catch{}return N.default.createElement("ui-color-picker",R,L)});ye.displayName="ColorPicker";const Le=N.default.forwardRef(function({value:o,defaultValue:t,open:l,defaultOpen:i,min:s,max:b,locale:n,weekStart:r,size:a,variant:m,placeholder:u,label:y,hint:p,error:g,clearable:A,allowInput:d,closeOnSelect:E,outsideClick:e,disabled:c,readOnly:w,required:L,name:H,mode:f,events:P,eventsMax:R,eventsDisplay:S,format:T,displayFormat:q,onInput:x,onChange:k,onValueChange:K,onOpen:F,onClose:D,onInvalid:B,children:$,...J},G){const M=v.useRef(null);return v.useImperativeHandle(G,()=>M.current),v.useEffect(()=>{const _=M.current;if(!_)return;const I=Z=>{const Y=Z.detail;Y&&(x==null||x(Y))},Q=Z=>{const Y=Z.detail;Y&&(k==null||k(Y),K==null||K(Y.value))},j=Z=>{const Y=Z.detail;Y&&(B==null||B(Y))};return _.addEventListener("input",I),_.addEventListener("change",Q),_.addEventListener("open",F),_.addEventListener("close",D),_.addEventListener("invalid",j),()=>{_.removeEventListener("input",I),_.removeEventListener("change",Q),_.removeEventListener("open",F),_.removeEventListener("close",D),_.removeEventListener("invalid",j)}},[x,k,K,F,D,B]),v.useEffect(()=>{const _=M.current;if(!_)return;const I=(j,Z)=>{const Y=_.getAttribute(j);Z==null?Y!=null&&_.removeAttribute(j):Y!==Z&&_.setAttribute(j,Z)},Q=(j,Z)=>{Z?I(j,""):I(j,null)};if(I("value",o??null),I("default-value",t??null),typeof l=="boolean"?Q("open",l):I("open",null),Q("default-open",i),I("min",s??null),I("max",b??null),I("locale",n??null),I("week-start",typeof r=="number"?String(r):null),I("size",a&&a!=="md"?a:null),I("variant",m&&m!=="default"?m:null),I("placeholder",u??null),I("label",y??null),I("hint",p??null),I("error",g??null),Q("clearable",A),Q("allow-input",d),Q("close-on-select",E),I("outside-click",e&&e!=="navigate"?e:null),Q("disabled",c),Q("readonly",w),Q("required",L),I("name",H??null),I("mode",f&&f!=="popover"?f:null),I("events-max",typeof R=="number"?String(R):null),I("events-display",S&&S!=="dots"?S:null),I("format",T&&T!=="locale"?T:null),I("display-format",q??null),P!=null&&P.length)try{I("events",JSON.stringify(P))}catch{I("events",null)}else I("events",null)},[o,t,l,i,s,b,n,r,a,m,u,y,p,g,A,d,E,e,c,w,L,H,f,P,R,S,T,q]),N.default.createElement("ui-date-picker",{ref:M,...J},$)});Le.displayName="DatePicker";const ge=N.default.forwardRef(function({value:o,defaultValue:t,open:l,defaultOpen:i,min:s,max:b,locale:n,weekStart:r,size:a,variant:m,rangeVariant:u,label:y,hint:p,error:g,allowSameDay:A,allowPartial:d,closeOnSelect:E,clearable:e,disabled:c,readOnly:w,required:L,name:H,nameStart:f,nameEnd:P,mode:R,onInput:S,onChange:T,onValueChange:q,onOpen:x,onClose:k,onInvalid:K,children:F,...D},B){const $=v.useRef(null);return v.useImperativeHandle(B,()=>$.current),v.useEffect(()=>{const J=$.current;if(!J)return;const G=I=>{const Q=I.detail;Q&&(S==null||S(Q))},M=I=>{const Q=I.detail;Q&&(T==null||T(Q),q==null||q(Q.value?JSON.stringify(Q.value):null))},_=I=>{const Q=I.detail;Q&&(K==null||K(Q))};return J.addEventListener("input",G),J.addEventListener("change",M),J.addEventListener("open",x),J.addEventListener("close",k),J.addEventListener("invalid",_),()=>{J.removeEventListener("input",G),J.removeEventListener("change",M),J.removeEventListener("open",x),J.removeEventListener("close",k),J.removeEventListener("invalid",_)}},[S,T,q,x,k,K]),v.useEffect(()=>{const J=$.current;if(!J)return;const G=(_,I)=>{const Q=J.getAttribute(_);I==null?Q!=null&&J.removeAttribute(_):Q!==I&&J.setAttribute(_,I)},M=(_,I)=>{I?G(_,""):G(_,null)};G("value",o??null),G("default-value",t??null),typeof l=="boolean"?M("open",l):G("open",null),M("default-open",i),G("min",s??null),G("max",b??null),G("locale",n??null),G("week-start",typeof r=="number"?String(r):null),G("size",a&&a!=="md"?a:null),G("variant",m&&m!=="default"?m:null),G("range-variant",u&&u!=="two-fields"?u:null),G("label",y??null),G("hint",p??null),G("error",g??null),M("allow-same-day",A),M("allow-partial",d),M("close-on-select",E),M("clearable",e),M("disabled",c),M("readonly",w),M("required",L),G("name",H??null),G("name-start",f??null),G("name-end",P??null),G("mode",R&&R!=="popover"?R:null)},[o,t,l,i,s,b,n,r,a,m,u,y,p,g,A,d,E,e,c,w,L,H,f,P,R]),N.default.createElement("ui-date-range-picker",{ref:$,...D},F)});ge.displayName="DateRangePicker";const he=N.default.forwardRef(function({value:o,defaultValue:t,open:l,defaultOpen:i,format:s,step:b,seconds:n,stepSeconds:r,min:a,max:m,disabled:u,readOnly:y,required:p,name:g,clearable:A,allowInput:d,mode:E,label:e,hint:c,error:w,locale:L,variant:H,onInput:f,onChange:P,onValueChange:R,onOpen:S,onClose:T,onInvalid:q,children:x,...k},K){const F=v.useRef(null);return v.useImperativeHandle(K,()=>F.current),v.useEffect(()=>{const D=F.current;if(!D)return;const B=G=>{const M=G.detail;M&&(f==null||f(M))},$=G=>{const M=G.detail;M&&(P==null||P(M),R==null||R(M.value))},J=G=>{const M=G.detail;M&&(q==null||q(M))};return D.addEventListener("input",B),D.addEventListener("change",$),D.addEventListener("open",S),D.addEventListener("close",T),D.addEventListener("invalid",J),()=>{D.removeEventListener("input",B),D.removeEventListener("change",$),D.removeEventListener("open",S),D.removeEventListener("close",T),D.removeEventListener("invalid",J)}},[f,P,R,S,T,q]),v.useEffect(()=>{const D=F.current;if(!D)return;const B=(J,G)=>{const M=D.getAttribute(J);G==null?M!=null&&D.removeAttribute(J):M!==G&&D.setAttribute(J,G)},$=(J,G)=>{G?B(J,""):B(J,null)};B("value",o??null),B("default-value",t??null),typeof l=="boolean"?$("open",l):B("open",null),$("default-open",i),B("format",s&&s!=="24h"?s:null),B("step",typeof b=="number"?String(b):null),$("seconds",n),B("step-seconds",typeof r=="number"?String(r):null),B("min",a??null),B("max",m??null),$("disabled",u),$("readonly",y),$("required",p),B("name",g??null),$("clearable",A),$("allow-input",d),B("mode",E&&E!=="popover"?E:null),B("label",e??null),B("hint",c??null),B("error",w??null),B("locale",L??null),B("variant",H&&H!=="default"?H:null)},[o,t,l,i,s,b,n,r,a,m,u,y,p,g,A,d,E,e,c,w,L,H]),N.default.createElement("ui-time-picker",{ref:F,...k},x)});he.displayName="TimePicker";const we=N.default.forwardRef(function({value:o,defaultValue:t,open:l,defaultOpen:i,min:s,max:b,locale:n,weekStart:r,size:a,variant:m,step:u,format:y,disabled:p,readOnly:g,required:A,name:d,closeOnSelect:E,clearable:e,allowInput:c,mode:w,label:L,hint:H,error:f,onInput:P,onChange:R,onValueChange:S,onOpen:T,onClose:q,onInvalid:x,children:k,...K},F){const D=v.useRef(null);return v.useImperativeHandle(F,()=>D.current),v.useEffect(()=>{const B=D.current;if(!B)return;const $=M=>{const _=M.detail;_&&(P==null||P(_))},J=M=>{const _=M.detail;_&&(R==null||R(_),S==null||S(_.value))},G=M=>{const _=M.detail;_&&(x==null||x(_))};return B.addEventListener("input",$),B.addEventListener("change",J),B.addEventListener("open",T),B.addEventListener("close",q),B.addEventListener("invalid",G),()=>{B.removeEventListener("input",$),B.removeEventListener("change",J),B.removeEventListener("open",T),B.removeEventListener("close",q),B.removeEventListener("invalid",G)}},[P,R,S,T,q,x]),v.useEffect(()=>{const B=D.current;if(!B)return;const $=(G,M)=>{const _=B.getAttribute(G);M==null?_!=null&&B.removeAttribute(G):_!==M&&B.setAttribute(G,M)},J=(G,M)=>{M?$(G,""):$(G,null)};$("value",o??null),$("default-value",t??null),typeof l=="boolean"?J("open",l):$("open",null),J("default-open",i),$("min",s??null),$("max",b??null),$("locale",n??null),$("week-start",typeof r=="number"?String(r):null),$("size",a&&a!=="md"?a:null),$("variant",m&&m!=="default"?m:null),$("step",typeof u=="number"?String(u):null),$("format",y&&y!=="24h"?y:null),J("disabled",p),J("readonly",g),J("required",A),$("name",d??null),J("close-on-select",E),J("clearable",e),J("allow-input",c),$("mode",w&&w!=="popover"?w:null),$("label",L??null),$("hint",H??null),$("error",f??null)},[o,t,l,i,s,b,n,r,a,m,u,y,p,g,A,d,E,e,c,w,L,H,f]),N.default.createElement("ui-date-time-picker",{ref:D,...K},k)});we.displayName="DateTimePicker";const Re=N.default.forwardRef(function({value:o,defaultValue:t,open:l,defaultOpen:i,min:s,max:b,locale:n,weekStart:r,size:a,variant:m,step:u,autoNormalize:y,allowPartial:p,disabled:g,readOnly:A,required:d,name:E,closeOnSelect:e,clearable:c,mode:w,label:L,hint:H,error:f,onInput:P,onChange:R,onValueChange:S,onOpen:T,onClose:q,onInvalid:x,children:k,...K},F){const D=v.useRef(null);return v.useImperativeHandle(F,()=>D.current),v.useEffect(()=>{const B=D.current;if(!B)return;const $=M=>{const _=M.detail;_&&(P==null||P(_))},J=M=>{const _=M.detail;_&&(R==null||R(_),S==null||S(_.value?JSON.stringify(_.value):null))},G=M=>{const _=M.detail;_&&(x==null||x(_))};return B.addEventListener("input",$),B.addEventListener("change",J),B.addEventListener("open",T),B.addEventListener("close",q),B.addEventListener("invalid",G),()=>{B.removeEventListener("input",$),B.removeEventListener("change",J),B.removeEventListener("open",T),B.removeEventListener("close",q),B.removeEventListener("invalid",G)}},[P,R,S,T,q,x]),v.useEffect(()=>{const B=D.current;if(!B)return;const $=(G,M)=>{const _=B.getAttribute(G);M==null?_!=null&&B.removeAttribute(G):_!==M&&B.setAttribute(G,M)},J=(G,M)=>{M?$(G,""):$(G,null)};$("value",o??null),$("default-value",t??null),typeof l=="boolean"?J("open",l):$("open",null),J("default-open",i),$("min",s??null),$("max",b??null),$("locale",n??null),$("week-start",typeof r=="number"?String(r):null),$("size",a&&a!=="md"?a:null),$("variant",m&&m!=="default"?m:null),$("step",typeof u=="number"?String(u):null),J("auto-normalize",y),J("allow-partial",p),J("disabled",g),J("readonly",A),J("required",d),$("name",E??null),J("close-on-select",e),J("clearable",c),$("mode",w&&w!=="popover"?w:null),$("label",L??null),$("hint",H??null),$("error",f??null)},[o,t,l,i,s,b,n,r,a,m,u,y,p,g,A,d,E,e,c,w,L,H,f]),N.default.createElement("ui-date-range-time-picker",{ref:D,...K},k)});Re.displayName="DateRangeTimePicker";const He=N.default.forwardRef(function({tasks:o,variant:t,headless:l,children:i,...s},b){const n=v.useRef(null);return v.useImperativeHandle(b,()=>n.current),v.useEffect(()=>{const r=n.current;if(!r)return;const a=(u,y)=>{const p=r.getAttribute(u);if(y==null){p!=null&&r.removeAttribute(u);return}p!==y&&r.setAttribute(u,y)},m=(u,y)=>{y?a(u,""):a(u,null)};if(o&&o.length)try{a("tasks",JSON.stringify(o))}catch{a("tasks",null)}else a("tasks",null);a("variant",t&&t!=="default"?t:null),m("headless",l)},[o,t,l]),N.default.createElement("ui-gantt",{ref:n,...s},i)});He.displayName="Gantt";const Ne=N.default.forwardRef(function({steps:o,value:t,orientation:l,variant:i,size:s,clickable:b,linear:n,headless:r,onChange:a,onSelect:m,children:u,...y},p){const g=v.useRef(null);return v.useImperativeHandle(p,()=>g.current),v.useEffect(()=>{const A=g.current;if(!A)return;const d=e=>{const c=e.detail;c&&(a==null||a(c))},E=e=>{const c=e.detail;c&&(m==null||m(c))};return A.addEventListener("change",d),A.addEventListener("select",E),()=>{A.removeEventListener("change",d),A.removeEventListener("select",E)}},[a,m]),v.useEffect(()=>{const A=g.current;if(!A)return;const d=(e,c)=>{const w=A.getAttribute(e);if(c==null){w!=null&&A.removeAttribute(e);return}w!==c&&A.setAttribute(e,c)},E=(e,c)=>{c?d(e,""):d(e,null)};if(o&&o.length)try{d("steps",JSON.stringify(o))}catch{d("steps",null)}else d("steps",null);d("value",t||null),d("orientation",l&&l!=="horizontal"?l:null),d("variant",i&&i!=="default"?i:null),d("size",s&&s!=="md"?s:null),E("clickable",b),E("linear",n),E("headless",r)},[o,t,l,i,s,b,n,r]),N.default.createElement("ui-stepper",{ref:g,...y},u)});Ne.displayName="Stepper";const ke=N.default.forwardRef(function({value:o,linear:t,showStepper:l,stepperPosition:i,hideControls:s,keepMounted:b,variant:n,headless:r,nextLabel:a,prevLabel:m,finishLabel:u,onBeforeChange:y,onChange:p,onStepChange:g,onComplete:A,children:d,...E},e){const c=v.useRef(null);return v.useImperativeHandle(e,()=>c.current),v.useEffect(()=>{const w=c.current;if(!w)return;const L=R=>{if(!y)return;const S=R.detail;y(S)===!1&&R.preventDefault()},H=R=>{const S=R.detail;S&&(p==null||p(S))},f=R=>{const S=R.detail;S&&(g==null||g(S))},P=R=>{const S=R.detail;S&&(A==null||A(S))};return w.addEventListener("before-change",L),w.addEventListener("change",H),w.addEventListener("step-change",f),w.addEventListener("complete",P),()=>{w.removeEventListener("before-change",L),w.removeEventListener("change",H),w.removeEventListener("step-change",f),w.removeEventListener("complete",P)}},[y,p,g,A]),v.useEffect(()=>{const w=c.current;if(!w)return;const L=(f,P)=>{const R=w.getAttribute(f);if(P==null){R!=null&&w.removeAttribute(f);return}R!==P&&w.setAttribute(f,P)},H=(f,P,R)=>{if(typeof P=="boolean"){P?L(f,""):L(f,null);return}R!==void 0&&(R?L(f,""):L(f,null))};L("value",o||null),H("linear",t),typeof l=="boolean"?L("show-stepper",l?"true":"false"):L("show-stepper",null),L("stepper-position",i&&i!=="top"?i:null),H("hide-controls",s),H("keep-mounted",b),L("variant",n&&n!=="default"?n:null),H("headless",r),L("next-label",a||null),L("prev-label",m||null),L("finish-label",u||null)},[o,t,l,i,s,b,n,r,a,m,u]),N.default.createElement("ui-wizard",{ref:c,...E},d)});ke.displayName="Wizard";const Pe=N.default.forwardRef(function({open:o,mode:t,orientation:l,variant:i,floating:s,placement:b,collapsible:n,label:r,headless:a,onSelect:m,onOpenChange:u,onToggle:y,children:p,...g},A){const d=v.useRef(null);return v.useImperativeHandle(A,()=>d.current),v.useEffect(()=>{const E=d.current;if(!E)return;const e=L=>{const H=L.detail;H&&(m==null||m(H))},c=L=>{var f;const H=(f=L.detail)==null?void 0:f.open;typeof H=="boolean"&&(u==null||u(H))},w=L=>{var f;const H=(f=L.detail)==null?void 0:f.open;typeof H=="boolean"&&(y==null||y(H))};return E.addEventListener("select",e),E.addEventListener("change",c),E.addEventListener("toggle",w),()=>{E.removeEventListener("select",e),E.removeEventListener("change",c),E.removeEventListener("toggle",w)}},[m,u,y]),v.useEffect(()=>{const E=d.current;if(!E)return;const e=(w,L)=>{const H=E.getAttribute(w);if(L==null){H!=null&&E.removeAttribute(w);return}H!==L&&E.setAttribute(w,L)},c=(w,L)=>{L?e(w,""):e(w,null)};typeof o=="boolean"?c("open",o):e("open",null),e("mode",t&&t!=="bar"?t:null),e("orientation",l&&l!=="horizontal"?l:null),e("variant",i&&i!=="default"?i:null),c("floating",s),e("placement",b&&b!=="bottom-right"?b:null),c("collapsible",n),e("label",r||null),c("headless",a)},[o,t,l,i,s,b,n,r,a]),N.default.createElement("ui-quick-actions",{ref:d,...g},p)});Pe.displayName="QuickActions";function Dt(h){const{selected:o,orientation:t,activation:l,loop:i,collapsible:s,headless:b,onChange:n,onSelect:r,children:a,...m}=h,u=v.useRef(null);return v.useEffect(()=>{const y=u.current;if(!y)return;const p=g=>{const A=g.detail;A&&(n==null||n(A),r==null||r(A.selected))};return y.addEventListener("change",p),()=>y.removeEventListener("change",p)},[n,r]),v.useEffect(()=>{const y=u.current;y&&(typeof o=="number"?y.setAttribute("selected",String(o)):y.removeAttribute("selected"),t?y.setAttribute("orientation",t):y.removeAttribute("orientation"),l?y.setAttribute("activation",l):y.removeAttribute("activation"),typeof i=="boolean"?y.setAttribute("loop",String(i)):y.removeAttribute("loop"),s?y.setAttribute("collapsible",""):y.removeAttribute("collapsible"),b?y.setAttribute("headless",""):y.removeAttribute("headless"))},[o,t,l,i,s,b]),N.default.createElement("ui-navigation-menu",{ref:u,...m},a)}function Bt(h){const{selected:o,open:t,loop:l,headless:i,orientation:s,placement:b,variant:n,density:r,shape:a,elevation:m,tone:u,closeOnSelect:y,typeahead:p,onChange:g,onOpen:A,onClose:d,onSelect:E,children:e,...c}=h,w=v.useRef(null);return v.useEffect(()=>{const L=w.current;if(!L)return;const H=S=>{const T=S.detail;T&&(g==null||g(T))},f=S=>{const T=S.detail;typeof(T==null?void 0:T.selected)=="number"?A==null||A(T.selected):A==null||A(-1)},P=()=>d==null?void 0:d(),R=S=>{const T=S.detail;T&&(E==null||E(T))};return L.addEventListener("change",H),L.addEventListener("open",f),L.addEventListener("close",P),L.addEventListener("select",R),()=>{L.removeEventListener("change",H),L.removeEventListener("open",f),L.removeEventListener("close",P),L.removeEventListener("select",R)}},[g,A,d,E]),v.useEffect(()=>{const L=w.current;L&&(typeof o=="number"?L.setAttribute("selected",String(o)):L.removeAttribute("selected"),typeof t=="boolean"&&t?L.setAttribute("open",""):L.removeAttribute("open"),typeof l=="boolean"?L.setAttribute("loop",String(l)):L.removeAttribute("loop"),i?L.setAttribute("headless",""):L.removeAttribute("headless"),s&&s!=="horizontal"?L.setAttribute("orientation",s):L.removeAttribute("orientation"),b?L.setAttribute("placement",b):L.removeAttribute("placement"),n&&n!=="default"?L.setAttribute("variant",n):L.removeAttribute("variant"),r&&r!=="default"?L.setAttribute("density",r):L.removeAttribute("density"),a&&a!=="default"?L.setAttribute("shape",a):L.removeAttribute("shape"),m&&m!=="default"?L.setAttribute("elevation",m):L.removeAttribute("elevation"),u&&u!=="default"&&u!=="brand"?L.setAttribute("tone",u):L.removeAttribute("tone"),y==null?L.removeAttribute("close-on-select"):L.setAttribute("close-on-select",y?"true":"false"),p==null?L.removeAttribute("typeahead"):L.setAttribute("typeahead",p?"true":"false"))},[o,t,l,i,s,b,n,r,a,m,u,y,p]),N.default.createElement("ui-menubar",{ref:w,...c},e)}const qt=typeof window<"u"?N.default.useLayoutEffect:N.default.useEffect,Se=N.default.forwardRef(function(o,t){const{open:l,title:i,description:s,closable:b,dismissible:n,closeOnOverlay:r,closeOnEsc:a,lockWhileLoading:m,roleType:u,size:y,state:p,initialFocus:g,submitText:A,cancelText:d,loadingText:E,dialogId:e,config:c,headless:w,onOpen:L,onClose:H,onRequestClose:f,onDialogOpen:P,onDialogSubmit:R,onDialogCancel:S,onDialogDismiss:T,onDialogClose:q,children:x,...k}=o,K=v.useRef(null);return N.default.useImperativeHandle(t,()=>K.current),v.useEffect(()=>{const F=K.current;if(!F)return;const D=()=>L==null?void 0:L(),B=()=>H==null?void 0:H(),$=Q=>{const j=Q.detail;j&&(f==null||f(j))},J=Q=>P==null?void 0:P(Q.detail),G=Q=>R==null?void 0:R(Q.detail),M=Q=>S==null?void 0:S(Q.detail),_=Q=>T==null?void 0:T(Q.detail),I=Q=>q==null?void 0:q(Q.detail);return F.addEventListener("open",D),F.addEventListener("close",B),F.addEventListener("request-close",$),F.addEventListener("ui-open",J),F.addEventListener("ui-submit",G),F.addEventListener("ui-cancel",M),F.addEventListener("ui-dismiss",_),F.addEventListener("ui-close",I),()=>{F.removeEventListener("open",D),F.removeEventListener("close",B),F.removeEventListener("request-close",$),F.removeEventListener("ui-open",J),F.removeEventListener("ui-submit",G),F.removeEventListener("ui-cancel",M),F.removeEventListener("ui-dismiss",_),F.removeEventListener("ui-close",I)}},[L,H,f,P,R,S,T,q]),qt(()=>{const F=K.current;if(!F)return;typeof l=="boolean"&&(l?F.setAttribute("open",""):F.removeAttribute("open")),i?F.setAttribute("title",i):F.removeAttribute("title"),s?F.setAttribute("description",s):F.removeAttribute("description");const D=typeof n=="boolean"?n:b;typeof D=="boolean"?(F.setAttribute("dismissible",String(D)),F.setAttribute("closable",String(D))):(F.removeAttribute("dismissible"),F.removeAttribute("closable")),typeof r=="boolean"?(F.setAttribute("close-on-overlay",String(r)),F.setAttribute("close-on-backdrop",String(r))):(F.removeAttribute("close-on-overlay"),F.removeAttribute("close-on-backdrop")),typeof a=="boolean"?F.setAttribute("close-on-esc",String(a)):F.removeAttribute("close-on-esc"),typeof m=="boolean"?F.setAttribute("lock-while-loading",String(m)):F.removeAttribute("lock-while-loading"),u?F.setAttribute("role",u):F.removeAttribute("role"),y&&y!=="md"&&y!=="2"?F.setAttribute("size",y):F.removeAttribute("size"),p&&p!=="idle"?F.setAttribute("state",p):F.removeAttribute("state"),g?F.setAttribute("initial-focus",g):F.removeAttribute("initial-focus"),A?F.setAttribute("submit-text",A):F.removeAttribute("submit-text"),d?F.setAttribute("cancel-text",d):F.removeAttribute("cancel-text"),E?F.setAttribute("loading-text",E):F.removeAttribute("loading-text"),e&&(F.dialogId=e),c&&(F.config=c),w?F.setAttribute("headless",""):F.removeAttribute("headless")},[l,i,s,b,n,r,a,m,u,y,p,g,A,d,E,e,c,w]),N.default.createElement("ui-dialog",{ref:K,...k},x)});Se.displayName="Dialog";const Fe=v.createContext(null);function $t({children:h,hostId:o="ui-dialog-react-host"}){const t=v.useRef(null);t.current||(t.current=V.createDialogManager()),v.useEffect(()=>{var s;if(typeof document>"u")return;let i=document.getElementById(o);return i||(i=document.createElement("div"),i.id=o,i.setAttribute("data-ui-dialog-react-host","true"),document.body.appendChild(i)),(s=t.current)==null||s.setContainer(i),()=>{var b;(b=t.current)==null||b.destroy("unmount"),t.current=null,i&&i.parentElement&&i.parentElement.removeChild(i)}},[o]);const l=v.useMemo(()=>({open:(i={})=>{var s;return((s=t.current)==null?void 0:s.open(i))??Promise.resolve({id:"",action:"dismiss"})},confirm:(i={})=>{var s;return((s=t.current)==null?void 0:s.confirm(i))??Promise.resolve({id:"",action:"dismiss"})}}),[]);return N.default.createElement(Fe.Provider,{value:l},h)}function Jt(){const h=v.useContext(Fe);if(!h)throw new Error("useDialog must be used within <DialogProvider>.");return h}const Te=N.default.forwardRef(function({children:o,onOpen:t,onClose:l,...i},s){const b=v.useRef(null);return N.default.useImperativeHandle(s,()=>b.current),v.useEffect(()=>{const n=b.current;if(!n)return;const r=()=>t==null?void 0:t(),a=()=>l==null?void 0:l();return n.addEventListener("open",r),n.addEventListener("close",a),()=>{n.removeEventListener("open",r),n.removeEventListener("close",a)}},[t,l]),N.default.createElement("ui-popover",{ref:b,...i},o)});Te.displayName="Popover";const xe=N.default.forwardRef(function({children:o,selected:t,value:l,orientation:i,activation:s,variant:b,size:n,tone:r,stretched:a,headless:m,onChange:u,onTabChange:y,...p},g){const A=v.useRef(null);return v.useImperativeHandle(g,()=>A.current),v.useEffect(()=>{const d=A.current;if(!d)return;const E=e=>{const c=e.detail;c&&(u==null||u(c.index),y==null||y(c))};return d.addEventListener("change",E),()=>{d.removeEventListener("change",E)}},[u,y]),v.useEffect(()=>{const d=A.current;if(!d)return;const E=(c,w)=>{const L=d.getAttribute(c);if(w==null){L!=null&&d.removeAttribute(c);return}L!==w&&d.setAttribute(c,w)},e=(c,w)=>{w?E(c,""):E(c,null)};E("selected",t!=null?String(t):null),E("value",l||null),E("orientation",i&&i!=="horizontal"?i:null),E("activation",s&&s!=="auto"?s:null),E("variant",b&&b!=="default"?b:null),E("size",n&&n!=="md"?n:null),E("tone",r&&r!=="brand"?r:null),e("stretched",a),e("headless",m)},[t,l,i,s,b,n,r,a,m]),N.default.createElement("ui-tabs",{ref:A,...p},o)});xe.displayName="Tabs";const De=N.default.forwardRef(function({children:o,open:t,placement:l,variant:i,density:s,shape:b,elevation:n,tone:r,closeOnSelect:a,typeahead:m,onOpen:u,onClose:y,onChange:p,onSelect:g,onSelectDetail:A,...d},E){const e=v.useRef(null);return N.default.useImperativeHandle(E,()=>e.current),v.useEffect(()=>{const c=e.current;if(!c)return;const w=()=>u==null?void 0:u(),L=()=>y==null?void 0:y(),H=P=>{var S;const R=(S=P.detail)==null?void 0:S.open;typeof R=="boolean"&&(p==null||p(R))},f=P=>{const R=P.detail||{};A==null||A(R),typeof R.index=="number"&&(g==null||g(R.index))};return c.addEventListener("open",w),c.addEventListener("close",L),c.addEventListener("change",H),c.addEventListener("select",f),()=>{c.removeEventListener("open",w),c.removeEventListener("close",L),c.removeEventListener("change",H),c.removeEventListener("select",f)}},[u,y,p,g,A]),v.useEffect(()=>{const c=e.current;!c||t==null||(t?c.setAttribute("open",""):c.removeAttribute("open"))},[t]),v.useEffect(()=>{const c=e.current;c&&(l?c.setAttribute("placement",l):c.removeAttribute("placement"))},[l]),v.useEffect(()=>{const c=e.current;c&&(i&&i!=="default"?c.setAttribute("variant",i):c.removeAttribute("variant"))},[i]),v.useEffect(()=>{const c=e.current;c&&(s&&s!=="default"?c.setAttribute("density",s):c.removeAttribute("density"))},[s]),v.useEffect(()=>{const c=e.current;c&&(b&&b!=="default"?c.setAttribute("shape",b):c.removeAttribute("shape"))},[b]),v.useEffect(()=>{const c=e.current;c&&(n&&n!=="default"?c.setAttribute("elevation",n):c.removeAttribute("elevation"))},[n]),v.useEffect(()=>{const c=e.current;c&&(r&&r!=="default"&&r!=="brand"?c.setAttribute("tone",r):c.removeAttribute("tone"))},[r]),v.useEffect(()=>{const c=e.current;if(c){if(a==null){c.removeAttribute("close-on-select");return}c.setAttribute("close-on-select",a?"true":"false")}},[a]),v.useEffect(()=>{const c=e.current;if(c){if(m==null){c.removeAttribute("typeahead");return}c.setAttribute("typeahead",m?"true":"false")}},[m]),N.default.createElement("ui-menu",{ref:e,...d},o)});De.displayName="Menu";const Be=N.default.forwardRef(function({children:o,name:t,iconVariant:l,size:i,color:s,secondaryColor:b,variant:n,tone:r,shape:a,spin:m,pulse:u,badge:y,label:p,decorative:g,strokeWidth:A,absoluteStrokeWidth:d,strokeLinecap:E,strokeLinejoin:e,rotate:c,flip:w,rtl:L,...H},f){const P=v.useRef(null);return v.useImperativeHandle(f,()=>P.current),v.useEffect(()=>{const R=P.current;R&&(t?R.setAttribute("name",t):R.removeAttribute("name"),l?R.setAttribute("icon-variant",l):R.removeAttribute("icon-variant"),i!=null&&i!==""?R.setAttribute("size",String(i)):R.removeAttribute("size"),s?R.setAttribute("color",s):R.removeAttribute("color"),b?R.setAttribute("secondary-color",b):R.removeAttribute("secondary-color"),n&&n!=="default"?R.setAttribute("variant",n):R.removeAttribute("variant"),r&&r!=="default"?R.setAttribute("tone",r):R.removeAttribute("tone"),a&&a!=="default"?R.setAttribute("shape",a):R.removeAttribute("shape"),m?R.setAttribute("spin",""):R.removeAttribute("spin"),u?R.setAttribute("pulse",""):R.removeAttribute("pulse"),y?R.setAttribute("badge",""):R.removeAttribute("badge"),p?R.setAttribute("label",p):R.removeAttribute("label"),g?R.setAttribute("decorative",""):R.removeAttribute("decorative"),A!=null&&A!==""?R.setAttribute("stroke-width",String(A)):R.removeAttribute("stroke-width"),d?R.setAttribute("absolute-stroke-width",""):R.removeAttribute("absolute-stroke-width"),E?R.setAttribute("stroke-linecap",E):R.removeAttribute("stroke-linecap"),e?R.setAttribute("stroke-linejoin",e):R.removeAttribute("stroke-linejoin"),c!=null&&Number.isFinite(c)?R.setAttribute("rotate",String(c)):R.removeAttribute("rotate"),w?R.setAttribute("flip",w):R.removeAttribute("flip"),L?R.setAttribute("rtl",""):R.removeAttribute("rtl"))},[t,l,i,s,b,n,r,a,m,u,y,p,g,A,d,E,e,c,w,L]),N.default.createElement("ui-icon",{ref:P,...H},o)});Be.displayName="Icon";const ue={default:"",success:"Success: ",error:"Error: ",warning:"Warning: ",info:"Info: "};function jt(h,o={}){return V.showToast(h,o)}const Gt={show(h,o={}){return V.showToast(h,o)},success(h,o={}){return V.showToast(`${ue.success}${h}`,o)},error(h,o={}){return V.showToast(`${ue.error}${h}`,o)},warning(h,o={}){return V.showToast(`${ue.warning}${h}`,o)},info(h,o={}){return V.showToast(`${ue.info}${h}`,o)}};function _t(){return null}const qe=N.default.forwardRef(function({children:o,headless:t,onShow:l,onHide:i,...s},b){const n=v.useRef(null);return N.default.useImperativeHandle(b,()=>n.current),v.useEffect(()=>{const r=n.current;if(!r)return;const a=u=>{const y=u.detail;y&&(l==null||l(y))},m=u=>{const y=u.detail;y&&(i==null||i(y))};return r.addEventListener("show",a),r.addEventListener("hide",m),()=>{r.removeEventListener("show",a),r.removeEventListener("hide",m)}},[l,i]),v.useEffect(()=>{const r=n.current;r&&(t?r.setAttribute("headless",""):r.removeAttribute("headless"))},[t]),N.default.createElement("ui-toast",{ref:n,...s},o)});qe.displayName="Toast";function ee(h,o){if(typeof window>"u"||typeof customElements>"u"||customElements.get(h))return;const t=`__editora_warned_${h}`,l=window;l[t]||(l[t]=!0,console.warn(`[ui-react/${o}] ${h} is not registered. Import/register the matching web component before using this wrapper.`))}function Mt(h){const{children:o,anchorId:t,open:l,...i}=h,s=v.useRef(null);return v.useEffect(()=>{ee("ui-floating-toolbar","FloatingToolbar")},[]),v.useEffect(()=>{var n,r;const b=s.current;b&&(l&&t?(n=b.showForAnchorId)==null||n.call(b,t):(r=b.hide)==null||r.call(b))},[l,t]),N.default.createElement("ui-floating-toolbar",{ref:s,...i},o)}const $e=N.forwardRef(function({children:o,orientation:t,density:l,ariaLabel:i,...s},b){const n=N.useRef(null);return N.useImperativeHandle(b,()=>n.current),N.useEffect(()=>{ee("ui-block-controls","BlockControls")},[]),N.useEffect(()=>{const r=n.current;r&&(t?r.setAttribute("orientation",t):r.removeAttribute("orientation"),l?r.setAttribute("density",l):r.removeAttribute("density"),i?r.setAttribute("aria-label",i):r.removeAttribute("aria-label"))},[t,l,i]),N.createElement("ui-block-controls",{ref:n,...s},o)});$e.displayName="BlockControls";function Qt(h){const{children:o,open:t,onSelect:l,...i}=h,s=v.useRef(null);return v.useEffect(()=>{ee("ui-command-palette","CommandPalette")},[]),v.useEffect(()=>{const b=s.current;if(!b)return;const n=r=>{var m;const a=(m=r.detail)==null?void 0:m.index;typeof a=="number"&&(l==null||l(a))};return b.addEventListener("select",n),t?b.setAttribute("open",""):b.removeAttribute("open"),()=>b.removeEventListener("select",n)},[t,l]),N.default.createElement("ui-command-palette",{ref:s,...i},o)}function It(h){const{items:o,anchorId:t,anchorPoint:l,open:i,variant:s,density:b,shape:n,elevation:r,tone:a,closeOnSelect:m,typeahead:u,children:y,onOpen:p,onClose:g,onChange:A,onSelect:d,...E}=h,e=v.useRef(null);v.useEffect(()=>{const H=e.current;if(!H)return;const f=()=>p==null?void 0:p(),P=()=>g==null?void 0:g(),R=T=>{var x;const q=(x=T.detail)==null?void 0:x.open;typeof q=="boolean"&&(A==null||A(q))},S=T=>{d==null||d(T.detail)};return H.addEventListener("open",f),H.addEventListener("close",P),H.addEventListener("change",R),H.addEventListener("select",S),()=>{H.removeEventListener("open",f),H.removeEventListener("close",P),H.removeEventListener("change",R),H.removeEventListener("select",S)}},[p,g,A,d]),v.useEffect(()=>{const H=e.current;if(!(!H||i==null)){if(!i){H.close?H.close():H.open=!1;return}if(l&&H.openAt){H.openAt(l);return}if(t){if(H.openForAnchorId){H.openForAnchorId(t);return}if(H.showForAnchorId){H.showForAnchorId(t);return}}H.open=!0}},[i,t,l]);const c=H=>H?H.map((f,P)=>{if(f.separator)return N.default.createElement("div",{key:P,className:"separator",role:"separator"});let R=null;f.icon&&(R=typeof f.icon=="string"?N.default.createElement("span",{className:"icon"},f.icon):f.icon);let S=null;return f.submenu&&(S=N.default.createElement("div",{className:"submenu"},c(f.submenu))),N.default.createElement("div",{key:P,className:"menuitem",role:"menuitem",tabIndex:f.disabled?-1:0,"aria-disabled":f.disabled?"true":void 0,"data-value":f.value,onClick:f.disabled?void 0:f.onClick},R,N.default.createElement("span",{className:"label"},f.label),f.submenu&&N.default.createElement("span",{className:"submenu-arrow"},"▶"),S)}):null,w=N.default.Children.count(y)>0,L=!!i&&!l&&!t;return N.default.createElement("ui-context-menu",{ref:e,...E,...L?{open:""}:{},...s&&s!=="default"?{variant:s}:{},...b&&b!=="default"?{density:b}:{},...n&&n!=="default"?{shape:n}:{},...r&&r!=="default"?{elevation:r}:{},...a&&a!=="default"&&a!=="brand"?{tone:a}:{},...m==null?{}:{"close-on-select":m?"true":"false"},...u==null?{}:{typeahead:u?"true":"false"}},w?y:N.default.createElement("div",{slot:"menu"},c(o)))}function Kt(h){const{children:o,anchorId:t,open:l,placement:i,offset:s,strategy:b,arrow:n,variant:r,tone:a,radius:m,size:u,closeOnOutside:y,closeOnEscape:p,onOpen:g,onClose:A,onOpenChange:d,...E}=h,e=v.useRef(null);return v.useEffect(()=>{ee("ui-selection-popup","SelectionPopup")},[]),v.useEffect(()=>{const c=e.current;if(!c)return;const w=()=>{g==null||g(),d==null||d(!0)},L=()=>{A==null||A(),d==null||d(!1)};return c.addEventListener("open",w),c.addEventListener("close",L),()=>{c.removeEventListener("open",w),c.removeEventListener("close",L)}},[g,A,d]),v.useEffect(()=>{var H,f;const c=e.current;if(!c)return;const w=(P,R)=>{const S=c.getAttribute(P);if(R==null){S!=null&&c.removeAttribute(P);return}S!==R&&c.setAttribute(P,R)},L=(P,R,S=void 0)=>{if(R==null){S!==void 0&&w(P,S?null:"false");return}R?w(P,""):w(P,"false")};w("anchor-id",t??null),w("placement",i&&i!=="top"?i:null),w("offset",typeof s=="number"&&Number.isFinite(s)?String(s):null),w("strategy",b&&b!=="fixed"?b:null),w("variant",r&&r!=="default"?r:null),w("tone",a&&a!=="brand"?a:null),w("radius",m?String(m):null),w("size",u&&u!=="md"?u:null),L("arrow",n),L("close-on-outside",y,!0),L("close-on-escape",p,!0),l&&t?(H=c.openFor)==null||H.call(c,t):l?c.setAttribute("open",""):l===!1?(f=c.close)==null||f.call(c):c.removeAttribute("open")},[l,t,i,s,b,n,r,a,m,u,y,p]),N.default.createElement("ui-selection-popup",{ref:e,...E},o)}function Ut(h){const{children:o,open:t,position:l,...i}=h,s=v.useRef(null);return v.useEffect(()=>{ee("ui-plugin-panel","PluginPanel")},[]),v.useEffect(()=>{const b=s.current;b&&(t?b.setAttribute("open",""):b.removeAttribute("open"),l&&b.setAttribute("position",l))},[t,l]),N.default.createElement("ui-plugin-panel",{ref:s,...i},o)}const Je=N.default.forwardRef(function(o,t){const{children:l,onSubmit:i,onInvalid:s,onValidate:b,onAutosave:n,onDirtyChange:r,novalidate:a,autosave:m,autosaveDelay:u,guardUnsaved:y,variant:p,tone:g,density:A,shape:d,elevation:E,gap:e,headless:c,loading:w,...L}=o,H=v.useRef(null);return v.useImperativeHandle(t,()=>H.current),v.useEffect(()=>{const f=H.current;if(!f)return;const P=x=>{const k=x.detail||{};i==null||i(k.values||{})},R=x=>{const k=x.detail||{};s==null||s(k.errors||{},k.values||{})},S=x=>{const k=x.detail||{};b==null||b({valid:!!k.valid,errors:k.errors||{}})},T=x=>{const k=x.detail||{};n==null||n(k.values||{})},q=x=>{const k=x.detail||{};r==null||r(!!k.dirty,k.values||{})};return f.addEventListener("submit",P),f.addEventListener("invalid",R),f.addEventListener("validate",S),f.addEventListener("autosave",T),f.addEventListener("dirty-change",q),()=>{f.removeEventListener("submit",P),f.removeEventListener("invalid",R),f.removeEventListener("validate",S),f.removeEventListener("autosave",T),f.removeEventListener("dirty-change",q)}},[i,s,b,n,r]),v.useEffect(()=>{const f=H.current;f&&(a?f.setAttribute("novalidate",""):f.removeAttribute("novalidate"),m?f.setAttribute("autosave",""):f.removeAttribute("autosave"),typeof u=="number"&&Number.isFinite(u)?f.setAttribute("autosave-delay",String(u)):f.removeAttribute("autosave-delay"),y?f.setAttribute("guard-unsaved",""):f.removeAttribute("guard-unsaved"),p&&p!=="default"?f.setAttribute("variant",p):f.removeAttribute("variant"),g&&g!=="default"?f.setAttribute("tone",g):f.removeAttribute("tone"),A&&A!=="default"?f.setAttribute("density",A):f.removeAttribute("density"),d&&d!=="default"?f.setAttribute("shape",d):f.removeAttribute("shape"),E&&E!=="default"?f.setAttribute("elevation",E):f.removeAttribute("elevation"),e?f.setAttribute("gap",e):f.removeAttribute("gap"),c?f.setAttribute("headless",""):f.removeAttribute("headless"),w?f.setAttribute("loading",""):f.removeAttribute("loading"))},[a,m,u,y,p,g,A,d,E,e,c,w]),N.default.createElement("ui-form",{ref:H,...L},l)});Je.displayName="Form";function Xt(){const h=v.useRef(null),o=v.useCallback(async()=>{const n=h.current;return n?await n.submit():!1},[]),t=v.useCallback(async()=>{const n=h.current;return n?await n.validate():{valid:!0,errors:{}}},[]),l=v.useCallback(()=>{var r;const n=h.current;return n?(r=n.getValues)==null?void 0:r.call(n):{}},[]),i=v.useCallback(n=>{var a;const r=h.current;return(a=r==null?void 0:r.reset)==null?void 0:a.call(r,n)},[]),s=v.useCallback(()=>{var r;const n=h.current;return n?typeof n.isDirty=="function"?!!n.isDirty():((r=n.hasAttribute)==null?void 0:r.call(n,"dirty"))||!1:!1},[]),b=v.useCallback(n=>{var a;const r=h.current;return(a=r==null?void 0:r.markClean)==null?void 0:a.call(r,n)},[]);return{ref:h,submit:o,validate:t,getValues:l,reset:i,isDirty:s,markClean:b}}function Yt(h){const{placement:o="bottom",offset:t=8,open:l,onOpen:i,onClose:s,role:b="menu"}=h||{},n=v.useRef(null),r=v.useRef(null),a=v.useRef(null),[m,u]=v.useState({top:0,left:0,placement:o}),y=typeof l<"u",[p,g]=v.useState(!!l),A=y?l:p,d=F=>{y||g(F),F?i&&i():s&&s()},E=()=>d(!A),e=()=>d(!0),c=()=>d(!1),w=v.useCallback(()=>{const F=n.current,D=r.current;if(!F||!D)return;const B=V.computePosition(F,D,{placement:o,offset:t});u({top:Math.round(B.top),left:Math.round(B.left),placement:B.placement,arrow:B.x||B.y?{x:B.x,y:B.y}:void 0})},[o,t]);v.useEffect(()=>{if(!A)return;const F=n.current,D=r.current;if(!F||!D)return;w();const B=()=>{a.current&&cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>w())},$=()=>{a.current&&cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>w())};window.addEventListener("scroll",B,!0),window.addEventListener("resize",$);let J=null,G=null;try{typeof ResizeObserver<"u"&&(J=new ResizeObserver($),G=new ResizeObserver($),J.observe(F),G.observe(D))}catch{J=G=null}return()=>{window.removeEventListener("scroll",B,!0),window.removeEventListener("resize",$),J&&J.disconnect(),G&&G.disconnect(),a.current&&cancelAnimationFrame(a.current)}},[A,w]);const L=v.useCallback(F=>{n.current=F},[]),H=v.useCallback(F=>{r.current=F},[]),f=v.useRef(`floating-${Math.random().toString(36).slice(2,9)}`),P=()=>r.current?Array.from(r.current.querySelectorAll('[role="menuitem"], .item, [data-menu-item]')).filter(Boolean):[],R=F=>{const D=P();if(!D.length)return;const B=Math.max(0,Math.min(D.length-1,F));try{D[B].focus()}catch{}},S=()=>R(0),T=()=>{const F=P();F.length&&R(F.length-1)},q=()=>{const F=P(),D=F.findIndex(B=>B===document.activeElement);R(D<0?0:(D+1)%F.length)},x=()=>{const F=P(),D=F.findIndex(B=>B===document.activeElement);R(D<=0?F.length-1:D-1)};return{referenceRef:L,floatingRef:H,coords:m,update:w,open:A,setOpen:d,toggle:E,openPopup:e,closePopup:c,getReferenceProps:(F={})=>({ref:L,"aria-haspopup":b,"aria-controls":f.current,"aria-expanded":A?"true":"false",onClick:D=>{F.onClick&&F.onClick(D),E()},onKeyDown:D=>{F.onKeyDown&&F.onKeyDown(D),D.key==="ArrowDown"&&(D.preventDefault(),e(),setTimeout(()=>S(),0))},...F}),getFloatingProps:(F={})=>({id:f.current,ref:H,role:b,tabIndex:-1,style:{position:"absolute",top:`${m.top}px`,left:`${m.left}px`},hidden:!A,onKeyDown:D=>{F.onKeyDown&&F.onKeyDown(D),D.key==="Escape"?(D.preventDefault(),c()):D.key==="ArrowDown"?(D.preventDefault(),q()):D.key==="ArrowUp"?(D.preventDefault(),x()):D.key==="Home"?(D.preventDefault(),S()):D.key==="End"&&(D.preventDefault(),T())},...F}),focusFirstItem:S,focusLastItem:T,focusNext:q,focusPrev:x}}function U(h){if(h!=null){if(typeof h=="object")try{return JSON.stringify(h)}catch{return}return String(h)}}function Zt(h){const{children:o,className:t,variant:l,tone:i,elevation:s,radius:b,interactive:n,headless:r,p:a,px:m,py:u,pt:y,pr:p,pb:g,pl:A,m:d,mx:E,my:e,mt:c,mr:w,mb:L,ml:H,width:f,w:P,minWidth:R,minW:S,maxWidth:T,maxW:q,height:x,h:k,minHeight:K,minH:F,maxHeight:D,maxH:B,display:$,position:J,inset:G,top:M,right:_,bottom:I,left:Q,flexBasis:j,flexGrow:Z,flexShrink:Y,gridArea:re,gridColumn:ie,gridColumnStart:C,gridColumnEnd:z,gridRow:le,gridRowStart:W,gridRowEnd:X,align:yt,bg:Lt,color:gt,...ht}=h,wt={className:t,...ht,p:U(a),px:U(m),py:U(u),pt:U(y),pr:U(p),pb:U(g),pl:U(A),m:U(d),mx:U(E),my:U(e),mt:U(c),mr:U(w),mb:U(L),ml:U(H),width:U(f),w:U(P),minwidth:U(R??S),maxwidth:U(T??q),height:U(x),h:U(k),minheight:U(K??F),maxheight:U(D??B),display:U($),position:U(J),inset:U(G),top:U(M),right:U(_),bottom:U(I),left:U(Q),flexbasis:U(j),flexgrow:U(Z),flexshrink:U(Y),gridarea:U(re),gridcolumn:U(ie),gridcolumnstart:U(C),gridcolumnend:U(z),gridrow:U(le),gridrowstart:U(W),gridrowend:U(X),align:U(yt),bg:U(Lt),color:U(gt),variant:l&&l!=="default"?l:void 0,tone:i&&i!=="default"?i:void 0,elevation:s&&s!=="default"?s:void 0,radius:b&&b!=="default"?b:void 0,interactive:n?"":void 0,headless:r?"":void 0};return N.default.createElement("ui-box",wt,o)}function te(h){if(h!=null){if(typeof h=="object")try{return JSON.stringify(h)}catch{return}return String(h)}}function zt(h){const{children:o,className:t,direction:l,align:i,justify:s,wrap:b,gap:n,rowGap:r,columnGap:a,display:m,headless:u,...y}=h,p={className:t,...y,direction:te(l),align:te(i),justify:te(s),wrap:te(b),gap:te(n),rowgap:te(r),columngap:te(a),display:te(m),headless:u?"":void 0};return N.default.createElement("ui-flex",p,o)}function O(h){if(h!=null){if(typeof h=="object")try{return JSON.stringify(h)}catch{return}return String(h)}}function Wt(h){const{children:o,className:t,columns:l,rows:i,gap:s,rowGap:b,columnGap:n,autoFlow:r,autoRows:a,autoColumns:m,align:u,justify:y,place:p,alignContent:g,justifyContent:A,placeContent:d,display:E,headless:e,...c}=h,w={className:t,...c,columns:O(l),rows:O(i),gap:O(s),rowgap:O(b),columngap:O(n),autoflow:O(r),autorows:O(a),autocolumns:O(m),align:O(u),justify:O(y),place:O(p),aligncontent:O(g),justifycontent:O(A),placecontent:O(d),display:O(E),headless:e?"":void 0};return N.default.createElement("ui-grid",w,o)}const je=N.default.forwardRef(function({size:o="medium",variant:t="default",tone:l="neutral",radius:i="md",density:s="comfortable",inset:b,children:n,...r},a){const m=v.useRef(null);return N.default.useImperativeHandle(a,()=>m.current),v.useEffect(()=>{const u=m.current;if(!u)return;const y=(g,A)=>{const d=u.getAttribute(g);if(A==null){d!=null&&u.removeAttribute(g);return}d!==A&&u.setAttribute(g,A)},p=(g,A)=>{A?u.hasAttribute(g)||u.setAttribute(g,""):u.hasAttribute(g)&&u.removeAttribute(g)};y("size",o!=="medium"?o:null),y("variant",t!=="default"?t:null),y("tone",l!=="neutral"?l:null),y("radius",i!=="md"?i:null),y("density",s!=="comfortable"?s:null),p("inset",b)},[o,t,l,i,s,b]),N.default.createElement("ui-section",{ref:m,...r},n)});je.displayName="Section";function Ot(h){const{children:o,size:t="md",...l}=h;return N.default.createElement("ui-container",{size:t,...l},o)}const Ge=N.default.forwardRef(function({children:o,collapsed:t,collapsible:l,rail:i,position:s,value:b,items:n,variant:r,size:a,density:m,tone:u,showIcons:y,showBadges:p,headless:g,onSelect:A,onChange:d,onToggle:E,onCollapseChange:e,...c},w){const L=v.useRef(null);return v.useImperativeHandle(w,()=>L.current),v.useEffect(()=>{const H=L.current;if(!H)return;const f=T=>{const q=T.detail;q&&(A==null||A(q))},P=T=>{const q=T.detail;q&&(d==null||d(q))},R=T=>{var x;const q=(x=T.detail)==null?void 0:x.collapsed;typeof q=="boolean"&&(E==null||E(q))},S=T=>{var x;const q=(x=T.detail)==null?void 0:x.collapsed;typeof q=="boolean"&&(e==null||e(q))};return H.addEventListener("select",f),H.addEventListener("change",P),H.addEventListener("toggle",R),H.addEventListener("collapse-change",S),()=>{H.removeEventListener("select",f),H.removeEventListener("change",P),H.removeEventListener("toggle",R),H.removeEventListener("collapse-change",S)}},[A,d,E,e]),v.useEffect(()=>{const H=L.current;if(!H)return;const f=(R,S)=>{const T=H.getAttribute(R);if(S==null){T!=null&&H.removeAttribute(R);return}T!==S&&H.setAttribute(R,S)},P=(R,S,T)=>{if(S==null){T!==void 0&&T===!1&&f(R,null);return}S?f(R,""):f(R,null)};if(P("collapsed",t),P("collapsible",l),P("rail",i),P("headless",g),f("position",s&&s!=="left"?s:null),f("value",b!=null&&b!==""?String(b):null),n&&n.length)try{f("items",JSON.stringify(n))}catch{f("items",null)}else f("items",null);f("variant",r&&r!=="surface"?r:null),f("size",a&&a!=="md"?a:null),f("density",m&&m!=="default"?m:null),f("tone",u&&u!=="default"?u:null),typeof y=="boolean"?f("show-icons",y?"true":"false"):f("show-icons",null),typeof p=="boolean"?f("show-badges",p?"true":"false"):f("show-badges",null)},[t,l,i,g,s,b,n,r,a,m,u,y,p]),N.default.createElement("ui-sidebar",{ref:L,...c},o)});Ge.displayName="Sidebar";const _e=N.default.forwardRef(function({children:o,separator:t,maxItems:l,onSelect:i,...s},b){const n=v.useRef(null);return v.useImperativeHandle(b,()=>n.current),v.useEffect(()=>{const r=n.current;if(!r||!i)return;const a=m=>{const u=m.detail;u&&i(u)};return r.addEventListener("select",a),()=>r.removeEventListener("select",a)},[i]),v.useEffect(()=>{const r=n.current;r&&(t!=null&&t!==""?r.setAttribute("separator",t):r.removeAttribute("separator"))},[t]),v.useEffect(()=>{const r=n.current;r&&(typeof l=="number"&&Number.isFinite(l)?r.setAttribute("max-items",String(l)):r.removeAttribute("max-items"))},[l]),N.default.createElement("ui-breadcrumb",{ref:n,...s},o)});_e.displayName="Breadcrumb";const Me=N.default.forwardRef(function({children:o,sticky:t,bordered:l,dense:i,showMenuButton:s,onMenuTrigger:b,...n},r){const a=v.useRef(null);return v.useImperativeHandle(r,()=>a.current),v.useEffect(()=>{const m=a.current;if(!m||!b)return;const u=()=>b();return m.addEventListener("menu-trigger",u),()=>m.removeEventListener("menu-trigger",u)},[b]),v.useEffect(()=>{const m=a.current;m&&(t?m.setAttribute("sticky",""):m.removeAttribute("sticky"))},[t]),v.useEffect(()=>{const m=a.current;m&&(l?m.setAttribute("bordered",""):m.removeAttribute("bordered"))},[l]),v.useEffect(()=>{const m=a.current;m&&(i?m.setAttribute("dense",""):m.removeAttribute("dense"))},[i]),v.useEffect(()=>{const m=a.current;m&&(s?m.setAttribute("show-menu-button",""):m.removeAttribute("show-menu-button"))},[s]),N.default.createElement("ui-app-header",{ref:a,...n},o)});Me.displayName="AppHeader";const Qe=N.default.forwardRef(function({children:o,open:t,side:l,variant:i,density:s,shape:b,elevation:n,tone:r,size:a,inset:m,dismissible:u,onOpen:y,onClose:p,onChange:g,...A},d){const E=v.useRef(null);return v.useImperativeHandle(d,()=>E.current),v.useEffect(()=>{const e=E.current;if(!e)return;const c=()=>y==null?void 0:y(),w=()=>p==null?void 0:p(),L=H=>{var P;const f=(P=H.detail)==null?void 0:P.open;typeof f=="boolean"&&(g==null||g(f))};return e.addEventListener("open",c),e.addEventListener("close",w),e.addEventListener("change",L),()=>{e.removeEventListener("open",c),e.removeEventListener("close",w),e.removeEventListener("change",L)}},[y,p,g]),v.useEffect(()=>{const e=E.current;e&&(t?e.setAttribute("open",""):e.removeAttribute("open"))},[t]),v.useEffect(()=>{const e=E.current;e&&(l?e.setAttribute("side",l):e.removeAttribute("side"))},[l]),v.useEffect(()=>{const e=E.current;e&&(u?e.setAttribute("dismissible",""):e.removeAttribute("dismissible"))},[u]),v.useEffect(()=>{const e=E.current;e&&(i&&i!=="default"?e.setAttribute("variant",i):e.removeAttribute("variant"))},[i]),v.useEffect(()=>{const e=E.current;e&&(s&&s!=="default"?e.setAttribute("density",s):e.removeAttribute("density"))},[s]),v.useEffect(()=>{const e=E.current;e&&(b&&b!=="default"?e.setAttribute("shape",b):e.removeAttribute("shape"))},[b]),v.useEffect(()=>{const e=E.current;e&&(n&&n!=="default"?e.setAttribute("elevation",n):e.removeAttribute("elevation"))},[n]),v.useEffect(()=>{const e=E.current;e&&(r&&r!=="default"&&r!=="brand"?e.setAttribute("tone",r):e.removeAttribute("tone"))},[r]),v.useEffect(()=>{const e=E.current;e&&(a&&a!=="default"?e.setAttribute("size",a):e.removeAttribute("size"))},[a]),v.useEffect(()=>{const e=E.current;e&&(m?e.setAttribute("inset",""):e.removeAttribute("inset"))},[m]),N.default.createElement("ui-drawer",{ref:E,...A},o)});Qe.displayName="Drawer";const Ie=N.default.forwardRef(function({children:o,mode:t,variant:l,density:i,maxWidth:s,sidebarSide:b,collapsed:n,headless:r,sidebarWidth:a,asideWidth:m,onLayoutChange:u,...y},p){const g=v.useRef(null);return N.default.useImperativeHandle(p,()=>g.current),v.useEffect(()=>{const A=g.current;if(!A)return;const d=()=>u==null?void 0:u();return A.addEventListener("layoutchange",d),()=>A.removeEventListener("layoutchange",d)},[u]),v.useEffect(()=>{const A=g.current;A&&(t&&t!=="dashboard"?A.setAttribute("mode",t):A.removeAttribute("mode"),l&&l!=="default"?A.setAttribute("variant",l):A.removeAttribute("variant"),i&&i!=="default"?A.setAttribute("density",i):A.removeAttribute("density"),s?A.setAttribute("max-width",s):A.removeAttribute("max-width"),b&&b!=="start"?A.setAttribute("sidebar-side",b):A.removeAttribute("sidebar-side"),n?A.setAttribute("collapsed",""):A.removeAttribute("collapsed"),r?A.setAttribute("headless",""):A.removeAttribute("headless"),a?A.setAttribute("sidebar-width",a):A.removeAttribute("sidebar-width"),m?A.setAttribute("aside-width",m):A.removeAttribute("aside-width"))},[t,l,i,s,b,n,r,a,m]),N.default.createElement("ui-layout",{ref:g,...y},o)});Ie.displayName="Layout";const Ke=v.createContext(null);function Vt(){try{const h=getComputedStyle(document.documentElement),o=h.getPropertyValue("--ui-color-primary").trim();return o?{colors:{primary:o||void 0,text:h.getPropertyValue("--ui-color-text").trim()||void 0,background:h.getPropertyValue("--ui-color-background").trim()||void 0}}:{}}catch{return{}}}function Ct({tokens:h,children:o,storageKey:t="editora.theme.tokens"}){const l=()=>{if(typeof window<"u"&&t)try{const n=localStorage.getItem(t);if(n)return JSON.parse(n)}catch{}if(h&&Object.keys(h).length)return{...V.defaultTokens,...h};if(typeof window<"u"){const n=Vt();if(n.colors&&n.colors.primary)return{...V.defaultTokens,...n}}return{...V.defaultTokens,...h||{}}},[i,s]=v.useState(()=>l());v.useEffect(()=>{h&&Object.keys(h).length&&s(n=>({...n,...h}))},[h]),v.useEffect(()=>{V.applyTheme(i);try{V.registerThemeHost(document.documentElement)}catch{}if(typeof window<"u"&&t){const n=JSON.stringify(i);let r;const a=()=>{try{localStorage.setItem(t,n)}catch{}};return window.requestIdleCallback?r=window.requestIdleCallback(a,{timeout:1e3}):r=window.setTimeout(a,250),()=>{try{window.cancelIdleCallback&&r?window.cancelIdleCallback(r):r&&clearTimeout(r)}catch{}}}},[i,t]);const b=n=>s(n);return N.default.createElement(Ke.Provider,{value:{tokens:i,setTokens:b}},o)}function er(){const h=v.useContext(Ke);if(!h)throw new Error("useTheme must be used within ThemeProvider");return h}function ne(h,o,t){if(t==null){h.removeAttribute(o);return}t?h.setAttribute(o,""):h.removeAttribute(o)}function se(h,o,t,l){const i=t&&t!==l?t:void 0;if(!i){h.removeAttribute(o);return}h.setAttribute(o,i)}const Ue=N.forwardRef(function({checked:o,disabled:t,indeterminate:l,loading:i,headless:s,invalid:b,density:n,preset:r,onCheckedChange:a,onChange:m,onInput:u,children:y,...p},g){const A=N.useRef(null);N.useImperativeHandle(g,()=>A.current);const d=typeof window<"u"?N.useLayoutEffect:N.useEffect;N.useEffect(()=>{ee("ui-checkbox","Checkbox")},[]),d(()=>{const e=A.current;e&&(ne(e,"checked",o),ne(e,"disabled",t),ne(e,"indeterminate",l),ne(e,"loading",i),ne(e,"headless",s),ne(e,"invalid",b),se(e,"density",n,"default"),se(e,"preset",r,"default"))},[o,t,l,i,s,b,n,r]),N.useEffect(()=>{const e=A.current;if(!e||!a&&!m&&!u)return;const c=L=>{var f;const H=L;u==null||u(H),typeof((f=H.detail)==null?void 0:f.checked)=="boolean"&&(a==null||a(H.detail.checked,H.detail))},w=L=>{const H=L;m==null||m(H)};return e.addEventListener("input",c),e.addEventListener("change",w),()=>{e.removeEventListener("input",c),e.removeEventListener("change",w)}},[a,m,u]);const E={ref:A,...p,checked:o?"":void 0,disabled:t?"":void 0,indeterminate:l?"":void 0,loading:i?"":void 0,headless:s?"":void 0,invalid:b?"":void 0,density:n&&n!=="default"?n:void 0,preset:r&&r!=="default"?r:void 0};return N.createElement("ui-checkbox",E,y)});Ue.displayName="Checkbox";const Xe=N.default.forwardRef(function({value:o,disabled:t,required:l,name:i,orientation:s,variant:b,size:n,tone:r,options:a,onValueChange:m,children:u,...y},p){const g=v.useRef(null);return N.default.useImperativeHandle(p,()=>g.current),v.useEffect(()=>{const A=g.current;if(!A)return;const d=E=>{const e=E.detail;e&&(m==null||m(e))};return A.addEventListener("change",d),()=>A.removeEventListener("change",d)},[m]),v.useEffect(()=>{const A=g.current;if(!A)return;const d=(e,c)=>{const w=A.getAttribute(e);if(c==null){w!=null&&A.removeAttribute(e);return}w!==c&&A.setAttribute(e,c)},E=(e,c)=>{c?A.hasAttribute(e)||A.setAttribute(e,""):A.hasAttribute(e)&&A.removeAttribute(e)};d("value",o??null),E("disabled",t),E("required",l),d("name",i||null),d("orientation",s&&s!=="vertical"?s:null),d("variant",b&&b!=="default"?b:null),d("size",n&&n!=="md"?n:null),d("tone",r&&r!=="brand"?r:null),a&&a.length?d("options",JSON.stringify(a)):d("options",null)},[o,t,l,i,s,b,n,r,a]),N.default.createElement("ui-radio-group",{ref:g,...y},u)});Xe.displayName="RadioGroup";const Ye=N.default.forwardRef(function({children:o,checked:t,disabled:l,headless:i,loading:s,size:b,variant:n,tone:r,label:a,description:m,name:u,value:y,required:p,onInput:g,onChange:A,...d},E){const e=v.useRef(null);return v.useImperativeHandle(E,()=>e.current),v.useEffect(()=>{const c=e.current;if(!c)return;const w=H=>{const f=H.detail;f&&(g==null||g(f))},L=H=>{const f=H.detail;f&&(A==null||A(f))};return c.addEventListener("input",w),c.addEventListener("change",L),()=>{c.removeEventListener("input",w),c.removeEventListener("change",L)}},[g,A]),v.useEffect(()=>{const c=e.current;if(!c)return;const w=(H,f)=>{const P=c.getAttribute(H);if(f==null){P!=null&&c.removeAttribute(H);return}P!==f&&c.setAttribute(H,f)},L=(H,f)=>{f?w(H,""):w(H,null)};L("checked",t),L("disabled",l),L("headless",i),L("loading",s),L("required",p),w("size",b&&b!=="md"?b:null),w("variant",n&&n!=="default"?n:null),w("tone",r&&r!=="brand"?r:null),w("label",a||null),w("description",m||null),w("name",u||null),w("value",y||null)},[t,l,i,s,p,b,n,r,a,m,u,y]),N.default.createElement("ui-switch",{ref:e,...d},o)});Ye.displayName="Switch";const Ze=N.default.forwardRef(function({children:o,pressed:t,disabled:l,loading:i,headless:s,size:b,variant:n,tone:r,name:a,value:m,required:u,iconOn:y,iconOff:p,onInput:g,onChange:A,...d},E){const e=v.useRef(null);return v.useImperativeHandle(E,()=>e.current),v.useEffect(()=>{const c=e.current;if(!c)return;const w=H=>{const f=H.detail;f&&(g==null||g(f))},L=H=>{const f=H.detail;f&&(A==null||A(f))};return c.addEventListener("input",w),c.addEventListener("change",L),()=>{c.removeEventListener("input",w),c.removeEventListener("change",L)}},[g,A]),v.useEffect(()=>{const c=e.current;if(!c)return;const w=(H,f)=>{const P=c.getAttribute(H);if(f==null){P!=null&&c.removeAttribute(H);return}P!==f&&c.setAttribute(H,f)},L=(H,f)=>{f?w(H,""):w(H,null)};L("pressed",t),L("disabled",l),L("loading",i),L("headless",s),L("required",u),w("size",b&&b!=="md"?b:null),w("variant",n&&n!=="default"?n:null),w("tone",r&&r!=="brand"?r:null),w("name",a||null),w("value",m||null),w("icon-on",y||null),w("icon-off",p||null)},[t,l,i,s,u,b,n,r,a,m,y,p]),N.default.createElement("ui-toggle",{ref:e,...d},o)});Ze.displayName="Toggle";const ze=N.default.forwardRef(function({children:o,value:t,multiple:l,disabled:i,headless:s,orientation:b,variant:n,size:r,density:a,allowEmpty:m,required:u,activation:y,onInput:p,onChange:g,onValueChange:A,...d},E){const e=v.useRef(null);return v.useImperativeHandle(E,()=>e.current),v.useEffect(()=>{const c=e.current;if(!c)return;const w=H=>{const f=H.detail;f&&(p==null||p(f),A==null||A(f))},L=H=>{const f=H.detail;f&&(g==null||g(f),A==null||A(f))};return c.addEventListener("input",w),c.addEventListener("change",L),()=>{c.removeEventListener("input",w),c.removeEventListener("change",L)}},[p,g,A]),v.useEffect(()=>{const c=e.current;if(!c)return;const w=(H,f)=>{const P=c.getAttribute(H);if(f==null){P!=null&&c.removeAttribute(H);return}P!==f&&c.setAttribute(H,f)},L=(H,f)=>{f?w(H,""):w(H,null)};L("multiple",l),L("disabled",i),L("headless",s),L("allow-empty",m),L("required",u),t==null?w("value",null):Array.isArray(t)?w("value",JSON.stringify(t)):w("value",String(t)),w("orientation",b&&b!=="horizontal"?b:null),w("variant",n&&n!=="default"?n:null),w("size",r&&r!=="md"?r:null),w("density",a&&a!=="default"?a:null),w("activation",y&&y!=="auto"?y:null)},[t,l,i,s,m,u,b,n,r,a,y]),N.default.createElement("ui-toggle-group",{ref:e,...d},o)});ze.displayName="ToggleGroup";function tr(h){if(h!=null){if(typeof h=="string")return h;if(!(!Number.isFinite(h)||h<=0))return Math.abs(h-16/9)<.01?"16/9":Math.abs(h-4/3)<.01?"4/3":Math.abs(h-1)<.01?"1/1":`${h}/1`}}const We=N.forwardRef(function({ratio:o,fit:t,children:l,...i},s){const b=N.useRef(null);return N.useImperativeHandle(s,()=>b.current),N.useEffect(()=>{ee("ui-aspect-ratio","AspectRatio")},[]),N.useEffect(()=>{const n=b.current;if(!n)return;const r=tr(o);r?n.setAttribute("ratio",r):n.removeAttribute("ratio"),t?n.setAttribute("fit",t):n.removeAttribute("fit")},[o,t]),N.createElement("ui-aspect-ratio",{ref:b,...i},l)});We.displayName="AspectRatio";function ce(h){const o=h.trim().split(/\s+/).filter(Boolean);return o.length===0?"?":o.length===1?o[0].slice(0,2).toUpperCase():`${o[0][0]||""}${o[1][0]||""}`.toUpperCase()}function rr(h){if(h!=null)return h==="lazy"||h==="eager"?h:h?"eager":"lazy"}function ir(h,o,t){return h&&h.trim()?h.trim().slice(0,2).toUpperCase():o&&o.trim()?ce(o):typeof t=="string"&&t.trim()?ce(t):"?"}const Oe=N.forwardRef(function({src:o,alt:t,initials:l,size:i,bg:s,color:b,radius:n,fontWeight:r,shape:a,status:m,ring:u,loading:y,children:p,...g},A){const d=N.useRef(null),E=N.useMemo(()=>ir(l,t,p),[l,t,p]);return N.useImperativeHandle(A,()=>d.current),N.useEffect(()=>{ee("ui-avatar","Avatar")},[]),N.useEffect(()=>{const e=d.current;if(!e)return;o?e.setAttribute("src",o):e.removeAttribute("src"),t?e.setAttribute("alt",t):e.removeAttribute("alt"),l?e.setAttribute("initials",l):e.removeAttribute("initials"),i!=null?e.setAttribute("size",String(i)):e.removeAttribute("size"),s?e.setAttribute("bg",s):e.removeAttribute("bg"),b?e.setAttribute("color",b):e.removeAttribute("color"),n?e.setAttribute("radius",n):e.removeAttribute("radius"),r!=null?e.setAttribute("fontweight",String(r)):e.removeAttribute("fontweight"),a?e.setAttribute("shape",a):e.removeAttribute("shape"),m?e.setAttribute("status",m):e.removeAttribute("status"),u==null?e.removeAttribute("ring"):u?e.setAttribute("ring",""):e.removeAttribute("ring");const c=rr(y);c?e.setAttribute("loading",c):e.removeAttribute("loading")},[o,t,l,i,s,b,n,r,a,m,u,y]),N.createElement("ui-avatar",{ref:d,...g},E)});Oe.displayName="Avatar";const Ve=N.default.forwardRef(function({present:o,headless:t,mode:l,size:i,variant:s,keepMounted:b,lazy:n,enterDuration:r,exitDuration:a,delay:m,onBeforeEnter:u,onEnter:y,onAfterEnter:p,onBeforeExit:g,onExit:A,onAfterExit:d,children:E,...e},c){const w=v.useRef(null);return N.default.useImperativeHandle(c,()=>w.current),v.useEffect(()=>{const L=w.current;if(!L)return;const H=x=>{const k=x.detail;return(k==null?void 0:k.state)||"hidden"},f=x=>u==null?void 0:u(H(x)),P=x=>y==null?void 0:y(H(x)),R=x=>p==null?void 0:p(H(x)),S=x=>g==null?void 0:g(H(x)),T=x=>A==null?void 0:A(H(x)),q=x=>d==null?void 0:d(H(x));return L.addEventListener("before-enter",f),L.addEventListener("enter",P),L.addEventListener("after-enter",R),L.addEventListener("before-exit",S),L.addEventListener("exit",T),L.addEventListener("after-exit",q),()=>{L.removeEventListener("before-enter",f),L.removeEventListener("enter",P),L.removeEventListener("after-enter",R),L.removeEventListener("before-exit",S),L.removeEventListener("exit",T),L.removeEventListener("after-exit",q)}},[u,y,p,g,A,d]),v.useEffect(()=>{const L=w.current;L&&(o?L.setAttribute("present",""):L.removeAttribute("present"),t?L.setAttribute("headless",""):L.removeAttribute("headless"),l&&l!=="fade"?L.setAttribute("mode",l):L.removeAttribute("mode"),i&&i!=="md"?L.setAttribute("size",i):L.removeAttribute("size"),s&&s!=="default"?L.setAttribute("variant",s):L.removeAttribute("variant"),b?L.setAttribute("keep-mounted",""):L.removeAttribute("keep-mounted"),n?L.setAttribute("lazy",""):L.removeAttribute("lazy"),typeof r=="number"?L.setAttribute("enter-duration",String(r)):L.removeAttribute("enter-duration"),typeof a=="number"?L.setAttribute("exit-duration",String(a)):L.removeAttribute("exit-duration"),typeof m=="number"?L.setAttribute("delay",String(m)):L.removeAttribute("delay"))},[o,t,l,i,s,b,n,r,a,m]),N.default.createElement("ui-presence",{ref:w,...e},E)});Ve.displayName="Presence";const Ce=N.default.forwardRef(function({value:o,buffer:t,max:l,min:i,indeterminate:s,striped:b,animated:n,showLabel:r,label:a,format:m,precision:u,size:y,variant:p,tone:g,shape:A,mode:d,onValueChange:E,onComplete:e,children:c,...w},L){const H=v.useRef(null);return N.default.useImperativeHandle(L,()=>H.current),v.useEffect(()=>{const f=H.current;if(!f)return;const P=S=>{const T=S.detail;T&&(E==null||E(T))},R=S=>{const T=S.detail;T&&(e==null||e(T))};return f.addEventListener("change",P),f.addEventListener("complete",R),()=>{f.removeEventListener("change",P),f.removeEventListener("complete",R)}},[E,e]),v.useEffect(()=>{const f=H.current;if(!f)return;const P=(S,T)=>{const q=f.getAttribute(S);if(T==null){q!=null&&f.removeAttribute(S);return}q!==T&&f.setAttribute(S,T)},R=(S,T)=>{T?f.hasAttribute(S)||f.setAttribute(S,""):f.hasAttribute(S)&&f.removeAttribute(S)};P("value",o!=null?String(o):null),P("buffer",t!=null?String(t):null),P("max",l!=null?String(l):null),P("min",i!=null?String(i):null),R("indeterminate",s),R("striped",b),R("animated",n),R("show-label",r),P("label",a!=null&&a!==""?a:null),P("format",m!=null&&m!=="percent"?m:null),P("precision",u!=null?String(u):null),P("size",y&&y!=="md"?y:null),P("variant",p&&p!=="default"?p:null),P("tone",g&&g!=="brand"?g:null),P("shape",A&&A!=="pill"?A:null),P("mode",d&&d!=="line"?d:null)},[o,t,l,i,s,b,n,r,a,m,u,y,p,g,A,d]),N.default.createElement("ui-progress",{ref:H,...w},c)});Ce.displayName="Progress";const et=N.default.forwardRef(function({target:o,headless:t,disabled:l,strategy:i,onMount:s,onUnmount:b,onSync:n,onTargetMissing:r,children:a,...m},u){const y=v.useRef(null);return N.default.useImperativeHandle(u,()=>y.current),v.useEffect(()=>{const p=y.current;if(!p)return;const g=e=>s==null?void 0:s(e.detail||{count:0}),A=e=>b==null?void 0:b(e.detail||{count:0}),d=e=>n==null?void 0:n(e.detail||{count:0}),E=e=>{const c=e.detail;c&&(r==null||r(c))};return p.addEventListener("mount",g),p.addEventListener("unmount",A),p.addEventListener("sync",d),p.addEventListener("target-missing",E),()=>{p.removeEventListener("mount",g),p.removeEventListener("unmount",A),p.removeEventListener("sync",d),p.removeEventListener("target-missing",E)}},[s,b,n,r]),v.useEffect(()=>{const p=y.current;p&&(o?p.setAttribute("target",o):p.removeAttribute("target"),i&&i!=="append"?p.setAttribute("strategy",i):p.removeAttribute("strategy"),t?p.setAttribute("headless",""):p.removeAttribute("headless"),l?p.setAttribute("disabled",""):p.removeAttribute("disabled"))},[o,i,t,l]),N.default.createElement("ui-portal",{ref:y,...m},a)});et.displayName="Portal";const tt=N.default.forwardRef(function({orientation:o,size:t,variant:l,tone:i,autoHide:s,shadows:b,onScrollChange:n,onReachStart:r,onReachEnd:a,children:m,...u},y){const p=v.useRef(null);return N.default.useImperativeHandle(y,()=>p.current),v.useEffect(()=>{const g=p.current;if(!g)return;const A=e=>{const c=e.detail;c&&(n==null||n(c))},d=()=>r==null?void 0:r(),E=()=>a==null?void 0:a();return g.addEventListener("scroll",A),g.addEventListener("reach-start",d),g.addEventListener("reach-end",E),()=>{g.removeEventListener("scroll",A),g.removeEventListener("reach-start",d),g.removeEventListener("reach-end",E)}},[n,r,a]),v.useEffect(()=>{const g=p.current;if(!g)return;const A=(E,e)=>{const c=g.getAttribute(E);if(e==null){c!=null&&g.removeAttribute(E);return}c!==e&&g.setAttribute(E,e)},d=(E,e)=>{const c=g.getAttribute(E);if(e==null){c!=null&&g.removeAttribute(E);return}const w=e?"true":"false";c!==w&&g.setAttribute(E,w)};A("orientation",o&&o!=="vertical"?o:null),A("size",t&&t!=="md"?t:null),A("variant",l&&l!=="default"?l:null),A("tone",i&&i!=="neutral"?i:null),d("auto-hide",s),d("shadows",b)},[o,t,l,i,s,b]),N.default.createElement("ui-scroll-area",{ref:p,...u},m)});tt.displayName="ScrollArea";const rt=N.forwardRef((h,o)=>N.createElement("ui-separator",{ref:o,...h}));rt.displayName="Separator";const it=N.default.forwardRef(function({children:o,name:t,fallback:l,required:i,inline:s,align:b,size:n,variant:r,tone:a,headless:m,onSlotChange:u,onMissing:y,onResolved:p,...g},A){const d=v.useRef(null);return v.useImperativeHandle(A,()=>d.current),v.useEffect(()=>{const E=d.current;if(!E)return;const e=L=>{const H=L.detail;H&&(u==null||u(H))},c=()=>y==null?void 0:y(),w=()=>p==null?void 0:p();return E.addEventListener("slotchange",e),E.addEventListener("missing",c),E.addEventListener("resolved",w),()=>{E.removeEventListener("slotchange",e),E.removeEventListener("missing",c),E.removeEventListener("resolved",w)}},[u,y,p]),v.useEffect(()=>{const E=d.current;if(!E)return;const e=(w,L)=>{const H=E.getAttribute(w);if(L==null){H!=null&&E.removeAttribute(w);return}H!==L&&E.setAttribute(w,L)},c=(w,L)=>{L?e(w,""):e(w,null)};e("name",t||null),e("fallback",l||null),c("required",i),typeof s=="boolean"?e("inline",s?"true":"false"):e("inline",null),e("align",b&&b!=="start"?b:null),e("size",n&&n!=="md"?n:null),e("variant",r&&r!=="plain"?r:null),e("tone",a&&a!=="brand"?a:null),c("headless",m)},[t,l,i,s,b,n,r,a,m]),N.default.createElement("ui-slot",{ref:d,...g},o)});it.displayName="Slot";const nt=N.default.forwardRef(function({children:o,orientation:t,variant:l,size:i,density:s,wrap:b,loop:n,headless:r,...a},m){const u=v.useRef(null);return v.useImperativeHandle(m,()=>u.current),v.useEffect(()=>{const y=u.current;if(!y)return;const p=(A,d)=>{const E=y.getAttribute(A);if(d==null){E!=null&&y.removeAttribute(A);return}E!==d&&y.setAttribute(A,d)},g=(A,d)=>{d?p(A,""):p(A,null)};p("orientation",t&&t!=="horizontal"?t:null),p("variant",l&&l!=="default"?l:null),p("size",i&&i!=="md"?i:null),p("density",s&&s!=="default"?s:null),g("wrap",b),typeof n=="boolean"?g("loop",n):p("loop",null),g("headless",r)},[t,l,i,s,b,n,r]),N.default.createElement("ui-toolbar",{ref:u,...a},o)});nt.displayName="Toolbar";const lt=N.forwardRef((h,o)=>N.createElement("ui-visually-hidden",{ref:o,...h}));lt.displayName="VisuallyHidden";function oe(h,o,t){if(t==null){h.removeAttribute(o);return}t?h.setAttribute(o,""):h.removeAttribute(o)}function fe(h){var o;return(o=h.detail)==null?void 0:o.open}const ut=N.forwardRef(function({header:o,open:t,headless:l,onToggle:i,onChangeOpen:s,children:b,...n},r){const a=N.useRef(null);N.useImperativeHandle(r,()=>a.current),N.useEffect(()=>{ee("ui-collapsible","Collapsible")},[]),N.useEffect(()=>{const u=a.current;u&&(oe(u,"open",t),oe(u,"headless",l))},[t,l]),N.useEffect(()=>{const u=a.current;if(!u||!i&&!s)return;const y=g=>{const A=fe(g);typeof A=="boolean"&&(i==null||i(A))},p=g=>{const A=fe(g);typeof A=="boolean"&&(s==null||s(A))};return u.addEventListener("toggle",y),u.addEventListener("change",p),()=>{u.removeEventListener("toggle",y),u.removeEventListener("change",p)}},[i,s]);let m=null;return o!=null&&(typeof o=="string"||typeof o=="number"?m=N.createElement("span",{slot:"header"},o):N.isValidElement(o)?m=N.cloneElement(o,{slot:"header"}):m=N.createElement("span",{slot:"header"},o)),N.createElement("ui-collapsible",{ref:a,...n},m,b)});ut.displayName="Collapsible";const st=N.forwardRef((h,o)=>N.createElement("ui-pagination",{ref:o,...h}));st.displayName="Pagination";function nr(h,o,t){if(t==null){h.removeAttribute(o);return}t?h.setAttribute(o,""):h.removeAttribute(o)}function ae(h){var o;return(o=h.detail)==null?void 0:o.open}const ct=N.forwardRef(function({multiple:o,collapsible:t,open:l,onToggle:i,onChangeOpen:s,children:b,...n},r){const a=N.useRef(null);return N.useImperativeHandle(r,()=>a.current),N.useEffect(()=>{ee("ui-accordion","Accordion")},[]),N.useEffect(()=>{const m=a.current;m&&(nr(m,"multiple",o),t==null?m.removeAttribute("collapsible"):m.setAttribute("collapsible",String(!!t)),l==null?m.removeAttribute("open"):m.setAttribute("open",Array.isArray(l)?JSON.stringify(l):String(l)))},[o,t,l]),N.useEffect(()=>{const m=a.current;if(!m||!i&&!s)return;const u=p=>{const g=ae(p);g!=null&&(i==null||i(g))},y=p=>{const g=ae(p);g!=null&&(s==null||s(g))};return m.addEventListener("toggle",u),m.addEventListener("change",y),()=>{m.removeEventListener("toggle",u),m.removeEventListener("change",y)}},[i,s]),N.createElement("ui-accordion",{ref:a,...n},b)});ct.displayName="Accordion";const ot=N.forwardRef(function({disabled:o,children:t,...l},i){const s={ref:i,"data-ui-accordion-item":"",...l};return o&&(s.disabled=!0),N.createElement("div",s,t)});ot.displayName="AccordionItem";const ft=N.forwardRef(function({type:o,children:t,...l},i){return N.createElement("button",{ref:i,type:o||"button","data-ui-accordion-trigger":"",...l},t)});ft.displayName="AccordionTrigger";const at=N.forwardRef(function({children:o,...t},l){return N.createElement("div",{ref:l,"data-ui-accordion-panel":"",...t},o)});at.displayName="AccordionPanel";const dt=N.forwardRef((h,o)=>N.createElement("ui-direction-provider",{ref:o,...h}));dt.displayName="DirectionProvider";const bt=N.default.forwardRef(function({children:o,open:t,delay:l,closeDelay:i,placement:s,offset:b,variant:n,tone:r,density:a,shape:m,elevation:u,headless:y,onOpen:p,onClose:g,onChange:A,...d},E){const e=v.useRef(null);return v.useImperativeHandle(E,()=>e.current),v.useEffect(()=>{const c=e.current;if(!c)return;const w=()=>p==null?void 0:p(),L=()=>g==null?void 0:g(),H=f=>{var R;const P=(R=f.detail)==null?void 0:R.open;typeof P=="boolean"&&(A==null||A(P))};return c.addEventListener("open",w),c.addEventListener("close",L),c.addEventListener("change",H),()=>{c.removeEventListener("open",w),c.removeEventListener("close",L),c.removeEventListener("change",H)}},[p,g,A]),v.useEffect(()=>{const c=e.current;!c||t==null||(t?c.setAttribute("open",""):c.removeAttribute("open"))},[t]),v.useEffect(()=>{const c=e.current;c&&(typeof l=="number"?c.setAttribute("delay",String(l)):c.removeAttribute("delay"),typeof i=="number"?c.setAttribute("close-delay",String(i)):c.removeAttribute("close-delay"),s?c.setAttribute("placement",s):c.removeAttribute("placement"),typeof b=="number"?c.setAttribute("offset",String(b)):c.removeAttribute("offset"),n&&n!=="default"?c.setAttribute("variant",n):c.removeAttribute("variant"),r&&r!=="default"?c.setAttribute("tone",r):c.removeAttribute("tone"),a&&a!=="default"?c.setAttribute("density",a):c.removeAttribute("density"),m&&m!=="default"?c.setAttribute("shape",m):c.removeAttribute("shape"),u&&u!=="default"?c.setAttribute("elevation",u):c.removeAttribute("elevation"),y?c.setAttribute("headless",""):c.removeAttribute("headless"))},[l,i,s,b,n,r,a,m,u,y]),N.default.createElement("ui-hover-card",{ref:e,...d},o)});bt.displayName="HoverCard";const mt=N.default.forwardRef(function({children:o,htmlFor:t,for:l,required:i,description:s,variant:b,tone:n,size:r,density:a,shape:m,disabled:u,headless:y,...p},g){const A=v.useRef(null);return v.useImperativeHandle(g,()=>A.current),v.useEffect(()=>{const d=A.current;if(!d)return;const E=t||l;E?d.setAttribute("for",E):d.removeAttribute("for"),i?d.setAttribute("required",""):d.removeAttribute("required"),s?d.setAttribute("description",s):d.removeAttribute("description"),b&&b!=="default"?d.setAttribute("variant",b):d.removeAttribute("variant"),n&&n!=="default"?d.setAttribute("tone",n):d.removeAttribute("tone"),r&&r!=="md"&&r!=="2"?d.setAttribute("size",r):d.removeAttribute("size"),a&&a!=="default"?d.setAttribute("density",a):d.removeAttribute("density"),m&&m!=="default"?d.setAttribute("shape",m):d.removeAttribute("shape"),u?d.setAttribute("disabled",""):d.removeAttribute("disabled"),y?d.setAttribute("headless",""):d.removeAttribute("headless")},[t,l,i,s,b,n,r,a,m,u,y]),N.default.createElement("ui-label",{ref:A,...p},o)});mt.displayName="Label";const lr=typeof window<"u"?N.default.useLayoutEffect:N.default.useEffect,vt=N.default.forwardRef(function({children:o,open:t,headless:l,dismissible:i,closeOnEsc:s,closeOnBackdrop:b,lockWhileLoading:n,roleType:r,size:a,state:m,initialFocus:u,dialogId:y,config:p,onOpen:g,onConfirm:A,onCancel:d,onDismiss:E,onClose:e,onChange:c,...w},L){const H=v.useRef(null);return N.default.useImperativeHandle(L,()=>H.current),v.useEffect(()=>{const f=H.current;if(!f)return;const P=k=>g==null?void 0:g(k.detail),R=k=>A==null?void 0:A(k.detail),S=k=>d==null?void 0:d(k.detail),T=k=>E==null?void 0:E(k.detail),q=k=>e==null?void 0:e(k.detail),x=k=>c==null?void 0:c(k.detail);return f.addEventListener("ui-open",P),f.addEventListener("ui-confirm",R),f.addEventListener("ui-cancel",S),f.addEventListener("ui-dismiss",T),f.addEventListener("ui-close",q),f.addEventListener("ui-change",x),()=>{f.removeEventListener("ui-open",P),f.removeEventListener("ui-confirm",R),f.removeEventListener("ui-cancel",S),f.removeEventListener("ui-dismiss",T),f.removeEventListener("ui-close",q),f.removeEventListener("ui-change",x)}},[g,A,d,E,e,c]),lr(()=>{const f=H.current;f&&(typeof t=="boolean"&&(t?f.setAttribute("open",""):f.removeAttribute("open")),l?f.setAttribute("headless",""):f.removeAttribute("headless"),typeof i=="boolean"?f.setAttribute("dismissible",String(i)):f.removeAttribute("dismissible"),typeof s=="boolean"?f.setAttribute("close-on-esc",String(s)):f.removeAttribute("close-on-esc"),typeof b=="boolean"?f.setAttribute("close-on-backdrop",String(b)):f.removeAttribute("close-on-backdrop"),typeof n=="boolean"?f.setAttribute("lock-while-loading",String(n)):f.removeAttribute("lock-while-loading"),r?f.setAttribute("role",r):f.removeAttribute("role"),a&&a!=="md"?f.setAttribute("size",a):f.removeAttribute("size"),m&&m!=="idle"?f.setAttribute("state",m):f.removeAttribute("state"),u?f.setAttribute("initial-focus",u):f.removeAttribute("initial-focus"),y&&(f.dialogId=y),p&&(f.config=p))},[t,l,i,s,b,n,r,a,m,u,y,p]),N.default.createElement("ui-alert-dialog",{ref:H,...w},o)});vt.displayName="AlertDialog";const At=v.createContext(null);function ur({children:h,hostId:o="ui-alert-dialog-react-host"}){const t=v.useRef(null);t.current||(t.current=V.createAlertDialogManager()),v.useEffect(()=>{var s;if(typeof document>"u")return;let i=document.getElementById(o);return i||(i=document.createElement("div"),i.id=o,i.setAttribute("data-ui-alert-dialog-react-host","true"),document.body.appendChild(i)),(s=t.current)==null||s.setContainer(i),()=>{var b;(b=t.current)==null||b.destroy("unmount"),t.current=null,i&&i.parentElement&&i.parentElement.removeChild(i)}},[o]);const l=v.useMemo(()=>({alert:(i={})=>{var s;return((s=t.current)==null?void 0:s.alert(i))??Promise.resolve({id:"",action:"dismiss"})},confirm:(i={})=>{var s;return((s=t.current)==null?void 0:s.confirm(i))??Promise.resolve({id:"",action:"dismiss"})},prompt:(i={})=>{var s;return((s=t.current)==null?void 0:s.prompt(i))??Promise.resolve({id:"",action:"dismiss",value:""})}}),[]);return N.default.createElement(At.Provider,{value:l},h)}function sr(){const h=v.useContext(At);if(!h)throw new Error("useAlertDialog must be used within <AlertDialogProvider>.");return h}const Et=N.default.forwardRef(function({children:o,value:t,disabled:l,required:i,invalid:s,headless:b,placeholder:n,name:r,label:a,description:m,error:u,size:y,variant:p,tone:g,density:A,radius:d,validation:E,onChange:e,onInput:c,onValueChange:w,...L},H){const f=v.useRef(null);return v.useImperativeHandle(H,()=>f.current),v.useEffect(()=>{const P=f.current;if(!P)return;const R=q=>{var x,k;return((x=q.detail)==null?void 0:x.value)??((k=q.target)==null?void 0:k.value)??""},S=q=>{c==null||c(R(q))},T=q=>{const x=R(q);e==null||e(x),w==null||w(x)};return P.addEventListener("input",S),P.addEventListener("change",T),()=>{P.removeEventListener("input",S),P.removeEventListener("change",T)}},[e,c,w]),v.useEffect(()=>{const P=f.current;if(!P)return;const R=(T,q)=>{const x=P.getAttribute(T);if(q==null){x!=null&&P.removeAttribute(T);return}x!==q&&P.setAttribute(T,q)},S=(T,q)=>{q?P.hasAttribute(T)||P.setAttribute(T,""):P.hasAttribute(T)&&P.removeAttribute(T)};R("value",t!=null?String(t):null),S("disabled",l),S("required",i),S("headless",b),S("invalid",s),R("placeholder",n||null),R("name",r||null),R("label",a||null),R("description",m||null),R("error",u||null),R("size",y&&y!=="md"&&y!=="2"?y:null),R("variant",p&&p!=="classic"?p:null),R("tone",g&&g!=="default"?g:null),R("density",A&&A!=="default"?A:null),R("radius",d?String(d):null),R("validation",E&&E!=="none"?E:null)},[t,l,i,s,b,n,r,a,m,u,y,p,g,A,d,E]),N.default.createElement("ui-select",{ref:f,...L},o)});Et.displayName="Select";const pt=N.default.forwardRef(function({children:o,value:t,valueStart:l,valueEnd:i,min:s,max:b,step:n,range:r,disabled:a,headless:m,orientation:u,size:y,variant:p,tone:g,showValue:A,format:d,label:E,description:e,marks:c,name:w,nameStart:L,nameEnd:H,onInput:f,onChange:P,onValueChange:R,...S},T){const q=v.useRef(null);return v.useImperativeHandle(T,()=>q.current),v.useEffect(()=>{const x=q.current;if(!x)return;const k=F=>{const D=F.detail;D&&(f==null||f(Number(D.value)),R==null||R(D))},K=F=>{const D=F.detail;D&&(P==null||P(Number(D.value)),R==null||R(D))};return x.addEventListener("input",k),x.addEventListener("change",K),()=>{x.removeEventListener("input",k),x.removeEventListener("change",K)}},[f,P,R]),v.useEffect(()=>{const x=q.current;if(!x)return;const k=(F,D)=>{const B=x.getAttribute(F);if(D==null){B!=null&&x.removeAttribute(F);return}B!==D&&x.setAttribute(F,D)},K=(F,D,B)=>{if(D==null){B!==void 0&&B===!1&&k(F,null);return}D?k(F,""):k(F,null)};if(k("value",typeof t=="number"&&Number.isFinite(t)?String(t):null),k("value-start",typeof l=="number"&&Number.isFinite(l)?String(l):null),k("value-end",typeof i=="number"&&Number.isFinite(i)?String(i):null),k("min",typeof s=="number"&&Number.isFinite(s)?String(s):null),k("max",typeof b=="number"&&Number.isFinite(b)?String(b):null),k("step",typeof n=="number"&&Number.isFinite(n)?String(n):null),K("range",r),K("disabled",a),K("headless",m),k("orientation",u&&u!=="horizontal"?u:null),k("size",y&&y!=="md"?y:null),k("variant",p&&p!=="default"?p:null),k("tone",g&&g!=="brand"?g:null),typeof A=="boolean"?k("show-value",A?"true":"false"):k("show-value",null),k("format",d||null),k("label",E||null),k("description",e||null),k("name",w||null),k("name-start",L||null),k("name-end",H||null),c&&c.length)try{k("marks",JSON.stringify(c))}catch{k("marks",null)}else k("marks",null)},[t,l,i,s,b,n,r,a,m,u,y,p,g,A,d,E,e,c,w,L,H]),N.default.createElement("ui-slider",{ref:q,...S},o)});pt.displayName="Slider";function cr(h){const{count:o,width:t,height:l,radius:i,gap:s,variant:b,animated:n,headless:r,...a}=h,m=v.useRef(null);return v.useEffect(()=>{const u=m.current;u&&(typeof o=="number"&&Number.isFinite(o)?u.setAttribute("count",String(o)):u.removeAttribute("count"),t?u.setAttribute("width",t):u.removeAttribute("width"),l?u.setAttribute("height",l):u.removeAttribute("height"),i?u.setAttribute("radius",i):u.removeAttribute("radius"),s?u.setAttribute("gap",s):u.removeAttribute("gap"),b?u.setAttribute("variant",b):u.removeAttribute("variant"),n?u.setAttribute("animated",""):u.removeAttribute("animated"),r?u.setAttribute("headless",""):u.removeAttribute("headless"))},[o,t,l,i,s,b,n,r]),N.default.createElement("ui-skeleton",{ref:m,...a})}exports.Accordion=ct;exports.AccordionItem=ot;exports.AccordionPanel=at;exports.AccordionTrigger=ft;exports.Alert=Nt;exports.AlertDialog=vt;exports.AlertDialogProvider=ur;exports.AppHeader=Me;exports.AspectRatio=We;exports.Avatar=Oe;exports.Badge=St;exports.BlockControls=$e;exports.Box=Zt;exports.Breadcrumb=_e;exports.Button=Ht;exports.Calendar=pe;exports.Chart=Ae;exports.Checkbox=Ue;exports.Collapsible=ut;exports.ColorPicker=ye;exports.Combobox=Pt;exports.CommandPalette=Qt;exports.Container=Ot;exports.ContextMenu=It;exports.DataTable=xt;exports.DatePicker=Le;exports.DateRangePicker=ge;exports.DateRangeTimePicker=Re;exports.DateTimePicker=we;exports.Dialog=Se;exports.DialogProvider=$t;exports.DirectionProvider=dt;exports.Drawer=Qe;exports.Dropdown=be;exports.EmptyState=Ft;exports.Field=kt;exports.Flex=zt;exports.FloatingToolbar=Mt;exports.Form=Je;exports.Gantt=He;exports.Grid=Wt;exports.HoverCard=bt;exports.Icon=Be;exports.Input=me;exports.Label=mt;exports.Layout=Ie;exports.Menu=De;exports.Menubar=Bt;exports.NavigationMenu=Dt;exports.Pagination=st;exports.PluginPanel=Ut;exports.Popover=Te;exports.Portal=et;exports.Presence=Ve;exports.Progress=Ce;exports.QuickActions=Pe;exports.RadioGroup=Xe;exports.ScrollArea=tt;exports.Section=je;exports.Select=Et;exports.SelectionPopup=Kt;exports.Separator=rt;exports.Sidebar=Ge;exports.Skeleton=cr;exports.Slider=pt;exports.Slot=it;exports.Stepper=Ne;exports.Switch=Ye;exports.Table=Tt;exports.Tabs=xe;exports.Textarea=ve;exports.ThemeProvider=Ct;exports.TimePicker=he;exports.Timeline=Ee;exports.Toast=qe;exports.ToastAPI=_t;exports.Toggle=Ze;exports.ToggleGroup=ze;exports.Toolbar=nt;exports.Tooltip=de;exports.VisuallyHidden=lt;exports.Wizard=ke;exports.toast=jt;exports.toastApi=Gt;exports.useAlertDialog=sr;exports.useDialog=Jt;exports.useFloating=Yt;exports.useForm=Xt;exports.useTheme=er;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const I=require("react"),Gn=require("@editora/ui-core"),at=require("@editora/toast"),df=require("react-dom"),pf=R=>R&&R.__esModule?R:{default:R};function vf(R){if(R&&R.__esModule)return R;const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(R){for(const f in R)if(f!=="default"){const h=Object.getOwnPropertyDescriptor(R,f);Object.defineProperty(u,f,h.get?h:{enumerable:!0,get:()=>R[f]})}}return u.default=R,Object.freeze(u)}const H=vf(I),mf=pf(at);function St(R,u){if(typeof window>"u"||typeof customElements>"u"||customElements.get(R))return;const f=`__editora_warned_${R}`,h=window;h[f]||(h[f]=!0,console.warn(`[ui-react/${u}] ${R} is not registered. Import/register the matching web component before using this wrapper.`))}function _o(R){if(!R)return null;if(typeof R=="string")return R;try{return JSON.stringify(R)}catch{return null}}function Cu(R,u,f){if(f==null||!f){R.removeAttribute(u);return}R.setAttribute(u,"")}function qt(R,u,f){if(!f){R.removeAttribute(u);return}R.setAttribute(u,f)}const sa=H.default.forwardRef(function({children:u,onClick:f,variant:h,size:i,recipe:b,radius:S,scale:y,icon:s,startIcon:a,endIcon:T,loading:p,loadingLabel:A,state:P,tone:F,block:w,headless:v,disabled:c,animation:C,theme:_,type:D,ariaLabel:E,...B},M){const G=I.useRef(null),$=typeof window<"u"?H.default.useLayoutEffect:H.default.useEffect;I.useImperativeHandle(M,()=>G.current),I.useEffect(()=>{St("ui-button","Button")},[]),I.useEffect(()=>{const U=G.current;if(!U||!f)return;const le=me=>f(me);return U.addEventListener("click",le),()=>U.removeEventListener("click",le)},[f]),$(()=>{const U=G.current;if(!U)return;qt(U,"variant",h),i&&i!=="md"?qt(U,"size",i):U.removeAttribute("size"),qt(U,"icon",s);const le=P||(p?"loading":"idle");le==="idle"?U.removeAttribute("state"):qt(U,"state",le),Cu(U,"loading",!!p),Cu(U,"block",!!w),Cu(U,"headless",!!v),Cu(U,"disabled",!!c),qt(U,"animation",C),_&&_!=="default"?qt(U,"theme",_):U.removeAttribute("theme"),qt(U,"tone",F),D&&D!=="button"?qt(U,"type",D):U.removeAttribute("type"),A!==void 0&&qt(U,"loading-label",A),E!==void 0&&qt(U,"aria-label",E),qt(U,"recipe",b),qt(U,"radius",S!=null?String(S):void 0),qt(U,"scale",y)},[h,i,b,S,y,s,p,P,w,v,c,C,_,F,D,A,E]);const re={ref:G,...B,variant:h,size:i&&i!=="md"?i:void 0,recipe:b,radius:S!=null?String(S):void 0,scale:y,icon:s,animation:C,tone:F,type:D&&D!=="button"?D:void 0,loading:p?"":void 0,block:w?"":void 0,headless:v?"":void 0,disabled:c?"":void 0,theme:_&&_!=="default"?_:void 0,state:P&&P!=="idle"?P:void 0,"loading-label":A,"aria-label":E},K=a==null?null:H.default.createElement("span",{slot:"prefix","aria-hidden":"true"},a),Z=T==null?null:H.default.createElement("span",{slot:"suffix","aria-hidden":"true"},T);return H.default.createElement("ui-button",re,K,u,Z)});sa.displayName="Button";const hf=typeof window<"u"?I.useLayoutEffect:I.useEffect,aa=H.default.forwardRef(function({children:u,text:f,placement:h,open:i,disabled:b,headless:S,variant:y,size:s,tone:a,delay:T,closeDelay:p,trigger:A,offset:P,interactive:F,arrow:w,onOpen:v,onClose:c,onOpenChange:C,..._},D){const E=I.useRef(null);return I.useImperativeHandle(D,()=>E.current),I.useEffect(()=>{const B=E.current;if(!B)return;const M=()=>{v==null||v()},G=()=>{c==null||c()},$=re=>{const K=re.detail;K&&typeof K.open=="boolean"&&(C==null||C(K.open))};return B.addEventListener("open",M),B.addEventListener("close",G),B.addEventListener("change",$),()=>{B.removeEventListener("open",M),B.removeEventListener("close",G),B.removeEventListener("change",$)}},[v,c,C]),hf(()=>{const B=E.current;if(!B)return;const M=($,re)=>{const K=B.getAttribute($);if(re==null){K!=null&&B.removeAttribute($);return}K!==re&&B.setAttribute($,re)},G=($,re)=>{re?M($,""):M($,null)};M("text",f||null),M("placement",h||null),G("open",i),G("disabled",b),G("headless",S),M("variant",y&&y!=="default"?y:null),M("size",s&&s!=="md"?s:null),M("tone",a&&a!=="default"?a:null),M("delay",typeof T=="number"&&Number.isFinite(T)?String(T):null),M("close-delay",typeof p=="number"&&Number.isFinite(p)?String(p):null),M("trigger",A||null),M("offset",typeof P=="number"&&Number.isFinite(P)?String(P):null),G("interactive",F),typeof w=="boolean"?M("arrow",w?"true":"false"):M("arrow",null)},[f,h,i,b,S,y,s,a,T,p,A,P,F,w]),H.default.createElement("ui-tooltip",{ref:E,..._},u)});aa.displayName="Tooltip";const bf=typeof window<"u"?I.useLayoutEffect:I.useEffect;function yf(R){const{title:u,description:f,tone:h,variant:i,layout:b,size:S,radius:y,elevation:s,indicator:a,dismissible:T,open:p,headless:A,onClose:P,children:F,...w}=R,v=I.useRef(null);return I.useEffect(()=>{const c=v.current;if(!c)return;const C=()=>P==null?void 0:P();return c.addEventListener("close",C),()=>c.removeEventListener("close",C)},[P]),bf(()=>{const c=v.current;c&&(u?c.setAttribute("title",u):c.removeAttribute("title"),f?c.setAttribute("description",f):c.removeAttribute("description"),h?c.setAttribute("tone",h):c.removeAttribute("tone"),i?c.setAttribute("variant",i):c.removeAttribute("variant"),b?c.setAttribute("layout",b):c.removeAttribute("layout"),S&&S!=="md"?c.setAttribute("size",S):c.removeAttribute("size"),y!=null?c.setAttribute("radius",String(y)):c.removeAttribute("radius"),s&&s!=="low"?c.setAttribute("elevation",s):c.removeAttribute("elevation"),a&&a!=="line"?c.setAttribute("indicator",a):c.removeAttribute("indicator"),T?c.setAttribute("dismissible",""):c.removeAttribute("dismissible"),A?c.setAttribute("headless",""):c.removeAttribute("headless"),typeof p=="boolean"?p?c.removeAttribute("hidden"):c.setAttribute("hidden",""):c.removeAttribute("hidden"))},[u,f,h,i,b,S,y,s,a,T,p,A]),H.default.createElement("ui-alert",{ref:v,...w},F)}function _u(R,u,f,h){const i=H.default.forwardRef(function({as:S,children:y,style:s,...a},T){const p=S||R,A={ref:T,...a};return f&&(A.slot=f),h&&(A[h]=""),s&&(A.style=s),H.default.createElement(p,A,y)});return i.displayName=u,i}const gf=_u("span","AlertIcon","icon","data-ui-alert-icon"),Ef=_u("div","AlertTitle","title","data-ui-alert-title"),Af=_u("div","AlertDescription",void 0,"data-ui-alert-description"),wf=_u("div","AlertActions","actions","data-ui-alert-actions"),Sf=typeof window<"u"?I.useLayoutEffect:I.useEffect,ca=H.default.forwardRef(function({children:u,open:f,placement:h,variant:i,size:b,density:S,radius:y,shape:s,elevation:a,tone:T,closeOnSelect:p,typeahead:A,onOpen:P,onClose:F,onChange:w,onChangeDetail:v,onRequestClose:c,onSelect:C,..._},D){const E=I.useRef(null);return I.useImperativeHandle(D,()=>E.current),I.useEffect(()=>{const B=E.current;if(!B)return;const M=()=>P==null?void 0:P(),G=()=>F==null?void 0:F(),$=Z=>{const U=Z.detail||{};typeof U.open=="boolean"&&(w==null||w(U.open)),typeof U.open=="boolean"&&(v==null||v({open:U.open,reason:U.reason}))},re=Z=>{const U=Z.detail||{};typeof U.reason=="string"&&(c==null||c({reason:U.reason}))},K=Z=>{C==null||C(Z.detail||{})};return B.addEventListener("open",M),B.addEventListener("close",G),B.addEventListener("change",$),B.addEventListener("request-close",re),B.addEventListener("select",K),()=>{B.removeEventListener("open",M),B.removeEventListener("close",G),B.removeEventListener("change",$),B.removeEventListener("request-close",re),B.removeEventListener("select",K)}},[P,F,w,v,c,C]),Sf(()=>{const B=E.current;if(!B)return;const M=($,re)=>{const K=B.getAttribute($);if(re==null){K!=null&&B.removeAttribute($);return}K!==re&&B.setAttribute($,re)},G=($,re,K="presence")=>{if(K==="presence"){re?B.hasAttribute($)||B.setAttribute($,""):B.hasAttribute($)&&B.removeAttribute($);return}if(re==null){B.hasAttribute($)&&B.removeAttribute($);return}const Z=re?"true":"false";B.getAttribute($)!==Z&&B.setAttribute($,Z)};G("open",f),M("placement",h||null),M("variant",i&&i!=="default"&&i!=="surface"?i:null),M("size",b&&b!=="md"&&b!=="2"?b:null),M("density",S&&S!=="default"?S:null),M("radius",y==null||y===""||y==="default"?null:String(y)),M("shape",s&&s!=="default"&&s!=="rounded"?s:null),M("elevation",a&&a!=="default"?a:null),M("tone",T&&T!=="default"&&T!=="brand"?T:null),G("close-on-select",p,"value"),G("typeahead",A,"value")},[f,h,i,b,S,y,s,a,T,p,A]),H.default.createElement("ui-dropdown",{ref:E,..._},u)});ca.displayName="Dropdown";const xf=typeof window<"u"?I.useLayoutEffect:I.useEffect,fa=H.default.forwardRef(function(u,f){const{value:h,onChange:i,onInput:b,onDebouncedInput:S,onClear:y,clearable:s,debounce:a,validation:T,size:p,minlength:A,maxlength:P,readOnly:F,autofocus:w,disabled:v,counter:c,floatingLabel:C,type:_,name:D,required:E,pattern:B,inputMode:M,autoComplete:G,min:$,max:re,step:K,spellCheck:Z,placeholder:U,headless:le,variant:me,tone:Q,density:oe,shape:se,color:ie,radius:W,label:te,description:ae,children:Ae,...ke}=u,be=I.useRef(null);return I.useImperativeHandle(f,()=>be.current),I.useEffect(()=>{const q=be.current;if(!q)return;const ge=Ie=>{const Ne=Ie.detail;typeof(Ne==null?void 0:Ne.value)=="string"&&(b==null||b(Ne.value))},Re=Ie=>{const Ne=Ie.detail;typeof(Ne==null?void 0:Ne.value)=="string"&&(i==null||i(Ne.value))},Ee=Ie=>{const Ne=Ie.detail;typeof(Ne==null?void 0:Ne.value)=="string"&&(S==null||S(Ne.value))},Te=()=>{y==null||y()};return q.addEventListener("input",ge),q.addEventListener("change",Re),q.addEventListener("debounced-input",Ee),q.addEventListener("clear",Te),()=>{q.removeEventListener("input",ge),q.removeEventListener("change",Re),q.removeEventListener("debounced-input",Ee),q.removeEventListener("clear",Te)}},[i,b,S,y]),xf(()=>{const q=be.current;q&&(s?q.setAttribute("clearable",""):q.removeAttribute("clearable"),typeof a=="number"&&Number.isFinite(a)?q.setAttribute("debounce",String(a)):q.removeAttribute("debounce"),T&&T!=="none"?q.setAttribute("validation",T):q.removeAttribute("validation"),p&&p!=="md"&&p!=="2"?q.setAttribute("size",String(p)):q.removeAttribute("size"),typeof A=="number"?q.setAttribute("minlength",String(A)):q.removeAttribute("minlength"),typeof P=="number"?q.setAttribute("maxlength",String(P)):q.removeAttribute("maxlength"),F?q.setAttribute("readonly",""):q.removeAttribute("readonly"),w?q.setAttribute("autofocus",""):q.removeAttribute("autofocus"),v?q.setAttribute("disabled",""):q.removeAttribute("disabled"),c?q.setAttribute("counter",""):q.removeAttribute("counter"),C?q.setAttribute("floating-label",""):q.removeAttribute("floating-label"),_?q.setAttribute("type",_):q.removeAttribute("type"),D?q.setAttribute("name",D):q.removeAttribute("name"),E?q.setAttribute("required",""):q.removeAttribute("required"),B?q.setAttribute("pattern",B):q.removeAttribute("pattern"),M?q.setAttribute("inputmode",M):q.removeAttribute("inputmode"),G?q.setAttribute("autocomplete",G):q.removeAttribute("autocomplete"),$!=null&&$!==""?q.setAttribute("min",String($)):q.removeAttribute("min"),re!=null&&re!==""?q.setAttribute("max",String(re)):q.removeAttribute("max"),K!=null&&K!==""?q.setAttribute("step",String(K)):q.removeAttribute("step"),typeof Z=="boolean"?q.setAttribute("spellcheck",Z?"true":"false"):q.removeAttribute("spellcheck"),U?q.setAttribute("placeholder",U):q.removeAttribute("placeholder"),le?q.setAttribute("headless",""):q.removeAttribute("headless"),me&&me!=="classic"?q.setAttribute("variant",me):q.removeAttribute("variant"),Q&&Q!=="default"?q.setAttribute("tone",Q):q.removeAttribute("tone"),oe&&oe!=="default"?q.setAttribute("density",oe):q.removeAttribute("density"),se&&se!=="default"?q.setAttribute("shape",se):q.removeAttribute("shape"),ie?q.setAttribute("color",ie):q.removeAttribute("color"),W?q.setAttribute("radius",String(W)):q.removeAttribute("radius"),te?q.setAttribute("label",te):q.removeAttribute("label"),ae?q.setAttribute("description",ae):q.removeAttribute("description"))},[s,a,T,p,A,P,F,w,v,c,C,_,D,E,B,M,G,$,re,K,Z,U,le,me,Q,oe,se,ie,W,te,ae]),H.default.createElement("ui-input",{ref:be,value:h??void 0,...ke},Ae)});fa.displayName="Input";const kf=typeof window<"u"?I.useLayoutEffect:I.useEffect,da=H.default.forwardRef(function(u,f){const{value:h,onChange:i,onInput:b,onDebouncedInput:S,onClear:y,onVisibilityChange:s,onStrengthChange:a,clearable:T,debounce:p,validation:A,size:P,minlength:F,maxlength:w,readOnly:v,autofocus:c,disabled:C,counter:_,floatingLabel:D,name:E,required:B,pattern:M,autoComplete:G,spellCheck:$,placeholder:re,variant:K,tone:Z,density:U,shape:le,color:me,radius:Q,label:oe,description:se,error:ie,showStrength:W,revealable:te,strengthEvaluator:ae,children:Ae,...ke}=u,be=I.useRef(null);return I.useImperativeHandle(f,()=>be.current),I.useEffect(()=>{const q=be.current;if(!q)return;const ge=Pe=>{const Ce=Pe.detail;typeof(Ce==null?void 0:Ce.value)=="string"&&(b==null||b(Ce.value))},Re=Pe=>{const Ce=Pe.detail;typeof(Ce==null?void 0:Ce.value)=="string"&&(i==null||i(Ce.value))},Ee=Pe=>{const Ce=Pe.detail;typeof(Ce==null?void 0:Ce.value)=="string"&&(S==null||S(Ce.value))},Te=()=>y==null?void 0:y(),Ie=Pe=>{const Ce=Pe.detail;s==null||s(!!(Ce!=null&&Ce.revealed))},Ne=Pe=>{const Ce=Pe.detail;Ce&&(a==null||a(Ce))};return q.addEventListener("input",ge),q.addEventListener("change",Re),q.addEventListener("debounced-input",Ee),q.addEventListener("clear",Te),q.addEventListener("visibility-change",Ie),q.addEventListener("strength-change",Ne),()=>{q.removeEventListener("input",ge),q.removeEventListener("change",Re),q.removeEventListener("debounced-input",Ee),q.removeEventListener("clear",Te),q.removeEventListener("visibility-change",Ie),q.removeEventListener("strength-change",Ne)}},[i,y,S,b,a,s]),kf(()=>{const q=be.current;if(!q)return;const ge=(Ee,Te)=>{const Ie=q.getAttribute(Ee);if(Te==null){Ie!=null&&q.removeAttribute(Ee);return}Ie!==Te&&q.setAttribute(Ee,Te)},Re=(Ee,Te)=>{Te?q.hasAttribute(Ee)||q.setAttribute(Ee,""):q.hasAttribute(Ee)&&q.removeAttribute(Ee)};h!==void 0&&ge("value",h??null),ge("debounce",typeof p=="number"&&Number.isFinite(p)?String(p):null),ge("validation",A&&A!=="none"?A:null),ge("size",P&&P!=="md"&&P!=="2"?String(P):null),ge("minlength",typeof F=="number"?String(F):null),ge("maxlength",typeof w=="number"?String(w):null),ge("pattern",M??null),ge("autocomplete",G??null),ge("spellcheck",typeof $=="boolean"?String($):null),ge("placeholder",re??null),ge("variant",K&&K!=="classic"?K:null),ge("tone",Z&&Z!=="default"?Z:null),ge("density",U&&U!=="default"?U:null),ge("shape",le&&le!=="default"?le:null),ge("color",me??null),ge("radius",Q?String(Q):null),ge("label",oe??null),ge("description",se??null),ge("data-error",ie??null),ge("name",E??null),Re("clearable",T),Re("readonly",v),Re("autofocus",c),Re("disabled",C),Re("counter",_),Re("floating-label",D),Re("required",B),Re("show-strength",W),typeof te=="boolean"?ge("revealable",String(te)):q.removeAttribute("revealable"),q.strengthEvaluator=ae??null},[G,c,T,me,_,p,U,se,C,ie,D,oe,w,F,E,M,re,Q,v,B,te,W,le,P,$,ae,Z,A,h,K]),H.default.createElement("ui-password-field",{ref:be,...ke},Ae)});da.displayName="PasswordField";const Rf=typeof window<"u"?I.useLayoutEffect:I.useEffect;function Tf(R){return R==null?null:Array.isArray(R)?JSON.stringify(R):R}const pa=H.default.forwardRef(function({value:u,name:f,label:h,description:i,placeholder:b,required:S,disabled:y,readOnly:s,counter:a,maxTags:T,allowDuplicates:p,addOnBlur:A,onChange:P,onTagAdd:F,onTagRemove:w,children:v,...c},C){const _=I.useRef(null);return I.useImperativeHandle(C,()=>_.current),I.useEffect(()=>{const D=_.current;if(!D)return;const E=G=>{const $=G.detail;Array.isArray($==null?void 0:$.value)&&(P==null||P($.value))},B=G=>{const $=G.detail;$&&(F==null||F($))},M=G=>{const $=G.detail;$&&(w==null||w($))};return D.addEventListener("change",E),D.addEventListener("tag-add",B),D.addEventListener("tag-remove",M),()=>{D.removeEventListener("change",E),D.removeEventListener("tag-add",B),D.removeEventListener("tag-remove",M)}},[P,F,w]),Rf(()=>{const D=_.current;if(!D)return;const E=(M,G)=>{const $=D.getAttribute(M);if(G==null){$!=null&&D.removeAttribute(M);return}$!==G&&D.setAttribute(M,G)},B=(M,G)=>{G?D.hasAttribute(M)||D.setAttribute(M,""):D.hasAttribute(M)&&D.removeAttribute(M)};E("value",Tf(u)),E("name",f??null),E("label",h??null),E("description",i??null),E("placeholder",b??null),B("required",S),B("disabled",y),B("readonly",s),B("counter",a),B("allow-duplicates",p),B("add-on-blur",A),E("max-tags",typeof T=="number"?String(T):null)},[u,f,h,i,b,S,y,s,a,p,A,T]),H.default.createElement("ui-tags-input",{ref:_,...c},v)});pa.displayName="TagsInput";const Lf=typeof window<"u"?I.useLayoutEffect:I.useEffect,Us=H.default.forwardRef(function({value:u,onChange:f,onComplete:h,length:i,name:b,label:S,description:y,error:s,mode:a,mask:T,required:p,disabled:A,readOnly:P,placeholderChar:F,size:w,density:v,shape:c,invalid:C,children:_,...D},E){const B=I.useRef(null);return I.useImperativeHandle(E,()=>B.current),I.useEffect(()=>{const M=B.current;if(!M)return;const G=re=>{f==null||f(re.detail.value||"")},$=re=>{h==null||h(re.detail.value||"")};return M.addEventListener("change",G),M.addEventListener("complete",$),()=>{M.removeEventListener("change",G),M.removeEventListener("complete",$)}},[f,h]),Lf(()=>{const M=B.current;M&&(u!=null&&u!==""?M.setAttribute("value",u):M.removeAttribute("value"),typeof i=="number"&&Number.isFinite(i)?M.setAttribute("length",String(i)):M.removeAttribute("length"),b?M.setAttribute("name",b):M.removeAttribute("name"),S?M.setAttribute("label",S):M.removeAttribute("label"),y?M.setAttribute("description",y):M.removeAttribute("description"),s?M.setAttribute("error",s):M.removeAttribute("error"),a&&a!=="numeric"?M.setAttribute("mode",a):M.removeAttribute("mode"),T?M.setAttribute("mask",""):M.removeAttribute("mask"),p?M.setAttribute("required",""):M.removeAttribute("required"),A?M.setAttribute("disabled",""):M.removeAttribute("disabled"),P?M.setAttribute("readonly",""):M.removeAttribute("readonly"),F?M.setAttribute("placeholder-char",F):M.removeAttribute("placeholder-char"),w&&w!=="md"&&w!=="2"?M.setAttribute("size",w):M.removeAttribute("size"),v&&v!=="default"?M.setAttribute("density",v):M.removeAttribute("density"),c&&c!=="default"?M.setAttribute("shape",c):M.removeAttribute("shape"),C?M.setAttribute("invalid",""):M.removeAttribute("invalid"))},[u,i,b,S,y,s,a,T,p,A,P,F,w,v,c,C]),H.default.createElement("ui-pin-input",{ref:B,...D},_)});Us.displayName="PinInput";const If=Us,Cf=typeof window<"u"?I.useLayoutEffect:I.useEffect;function va(R,{onChange:u,onReject:f,onUploadStart:h,onUploadProgress:i,onUploadSuccess:b,onUploadError:S,onUploadCancel:y,onUploadComplete:s}){I.useEffect(()=>{const a=R.current;if(!a)return;const T=_=>{const D=_.detail;Array.isArray(D==null?void 0:D.files)&&(u==null||u(D.files))},p=_=>{const D=_.detail;Array.isArray(D==null?void 0:D.rejected)&&(f==null||f(D.rejected))},A=_=>D=>{_==null||_(D.detail||{})},P=A(h),F=A(i),w=A(b),v=A(S),c=A(y),C=A(s);return a.addEventListener("change",T),a.addEventListener("reject",p),a.addEventListener("upload-start",P),a.addEventListener("upload-progress",F),a.addEventListener("upload-success",w),a.addEventListener("upload-error",v),a.addEventListener("upload-cancel",c),a.addEventListener("upload-complete",C),()=>{a.removeEventListener("change",T),a.removeEventListener("reject",p),a.removeEventListener("upload-start",P),a.removeEventListener("upload-progress",F),a.removeEventListener("upload-success",w),a.removeEventListener("upload-error",v),a.removeEventListener("upload-cancel",c),a.removeEventListener("upload-complete",C)}},[u,f,y,s,S,i,h,b,R])}function ma(R,{name:u,label:f,description:h,accept:i,multiple:b,disabled:S,required:y,maxFiles:s,maxSize:a,buttonText:T,dropLabel:p,showPreviews:A,progress:P,uploadOnSelect:F,uploadButtonText:w,onUploadRequest:v}){Cf(()=>{const c=R.current;if(!c)return;const C=(D,E)=>{const B=c.getAttribute(D);if(E==null){B!=null&&c.removeAttribute(D);return}B!==E&&c.setAttribute(D,E)},_=(D,E)=>{E?c.hasAttribute(D)||c.setAttribute(D,""):c.hasAttribute(D)&&c.removeAttribute(D)};C("name",u??null),C("label",f??null),C("description",h??null),C("accept",i??null),_("multiple",b),_("disabled",S),_("required",y),C("max-files",typeof s=="number"?String(s):null),C("max-size",typeof a=="number"?String(a):null),C("button-text",T??null),C("drop-label",p??null),_("show-previews",A),_("upload-on-select",F),C("upload-button-text",w??null),C("progress",P?JSON.stringify(P):null),c.uploadRequest=v??null},[i,T,h,S,p,f,s,a,b,u,R,y,A,P,F,w,v])}const ha=H.default.forwardRef(function({onChange:u,onReject:f,children:h,...i},b){const S=I.useRef(null);return I.useImperativeHandle(b,()=>S.current),va(S,{onChange:u,onReject:f,...i}),ma(S,i),H.default.createElement("ui-file-upload",{ref:S,...i},h)}),ba=H.default.forwardRef(function({onChange:u,onReject:f,children:h,...i},b){const S=I.useRef(null);return I.useImperativeHandle(b,()=>S.current),va(S,{onChange:u,onReject:f,...i}),ma(S,i),H.default.createElement("ui-dropzone",{ref:S,...i},h)});ha.displayName="FileUpload";ba.displayName="Dropzone";const Pf=typeof window<"u"?I.useLayoutEffect:I.useEffect,ya=H.default.forwardRef(function({value:u,onChange:f,onInput:h,onDebouncedInput:i,onClear:b,clearable:S,debounce:y,validation:s,size:a,minlength:T,maxlength:p,rows:A,readOnly:P,autofocus:F,disabled:w,name:v,required:c,placeholder:C,resize:_,variant:D,color:E,radius:B,label:M,description:G,autosize:$,maxRows:re,showCount:K,density:Z,tone:U,headless:le,children:me,...Q},oe){const se=I.useRef(null);return I.useImperativeHandle(oe,()=>se.current),I.useEffect(()=>{const ie=se.current;if(!ie)return;const W=ke=>{const be=ke.detail;be&&(h==null||h(be.value))},te=ke=>{const be=ke.detail;be&&(f==null||f(be.value))},ae=ke=>{const be=ke.detail;be&&(i==null||i(be.value))},Ae=()=>b==null?void 0:b();return ie.addEventListener("input",W),ie.addEventListener("change",te),ie.addEventListener("debounced-input",ae),ie.addEventListener("clear",Ae),()=>{ie.removeEventListener("input",W),ie.removeEventListener("change",te),ie.removeEventListener("debounced-input",ae),ie.removeEventListener("clear",Ae)}},[f,h,i,b]),Pf(()=>{const ie=se.current;if(!ie)return;const W=(ae,Ae)=>{const ke=ie.getAttribute(ae);if(Ae==null){ke!=null&&ie.removeAttribute(ae);return}ke!==Ae&&ie.setAttribute(ae,Ae)},te=(ae,Ae)=>{Ae?W(ae,""):W(ae,null)};W("value",u!=null?String(u):null),te("clearable",S),te("readonly",P),te("autofocus",F),te("disabled",w),te("required",c),te("autosize",$),te("show-count",K),te("headless",le),W("debounce",typeof y=="number"&&Number.isFinite(y)?String(y):null),W("validation",s&&s!=="none"?s:null),W("size",a&&a!=="md"&&a!=="2"?String(a):null),W("minlength",typeof T=="number"?String(T):null),W("maxlength",typeof p=="number"?String(p):null),W("rows",typeof A=="number"?String(A):null),W("name",v||null),W("placeholder",C||null),W("resize",_||null),W("variant",D&&D!=="classic"?D:null),W("color",E||null),W("radius",B?String(B):null),W("label",M||null),W("description",G||null),W("max-rows",typeof re=="number"?String(re):null),W("density",Z&&Z!=="default"?Z:null),W("tone",U&&U!=="brand"?U:null)},[u,S,y,s,a,T,p,A,P,F,w,v,c,C,_,D,E,B,M,G,$,re,K,Z,U,le]),H.default.createElement("ui-textarea",{ref:se,...Q},me)});ya.displayName="Textarea";const Ff=typeof window<"u"?I.useLayoutEffect:I.useEffect;function Df(R){const{children:u,label:f,description:h,error:i,htmlFor:b,required:S,invalid:y,orientation:s,variant:a,tone:T,density:p,shape:A,shell:P,labelWidth:F,headless:w,...v}=R,c=I.useRef(null);return Ff(()=>{const C=c.current;C&&(f!=null&&f!==""?C.setAttribute("label",f):C.removeAttribute("label"),h!=null&&h!==""?C.setAttribute("description",h):C.removeAttribute("description"),i!=null&&i!==""?C.setAttribute("error",i):C.removeAttribute("error"),b?C.setAttribute("for",b):C.removeAttribute("for"),S?C.setAttribute("required",""):C.removeAttribute("required"),y?C.setAttribute("invalid",""):C.removeAttribute("invalid"),s&&s!=="vertical"?C.setAttribute("orientation",s):C.removeAttribute("orientation"),a&&a!=="default"?C.setAttribute("variant",a):C.removeAttribute("variant"),T&&T!=="default"?C.setAttribute("tone",T):C.removeAttribute("tone"),p&&p!=="default"?C.setAttribute("density",p):C.removeAttribute("density"),A&&A!=="default"?C.setAttribute("shape",A):C.removeAttribute("shape"),P&&P!=="none"?C.setAttribute("shell",P):C.removeAttribute("shell"),F?C.setAttribute("label-width",F):C.removeAttribute("label-width"),w?C.setAttribute("headless",""):C.removeAttribute("headless"))},[f,h,i,b,S,y,s,a,T,p,A,P,F,w]),H.default.createElement("ui-field",{ref:c,...v},u)}const Bu=typeof window<"u"?I.useLayoutEffect:I.useEffect,ga=H.default.forwardRef(function({children:u,htmlFor:f,for:h,tone:i,size:b,variant:S,hidden:y,...s},a){const T=I.useRef(null);return I.useImperativeHandle(a,()=>T.current),Bu(()=>{const p=T.current;if(!p)return;const A=f||h;A?p.setAttribute("for",A):p.removeAttribute("for"),i&&i!=="default"?p.setAttribute("tone",i):p.removeAttribute("tone"),b&&b!=="md"&&b!=="2"?p.setAttribute("size",b):p.removeAttribute("size"),S&&S!=="default"?p.setAttribute("variant",S):p.removeAttribute("variant"),y?p.setAttribute("hidden",""):p.removeAttribute("hidden")},[f,h,i,b,S,y]),H.default.createElement("ui-description",{ref:T,...s},u)});ga.displayName="Description";const Ea=H.default.forwardRef(function({children:u,htmlFor:f,for:h,active:i,size:b,variant:S,hidden:y,...s},a){const T=I.useRef(null);return I.useImperativeHandle(a,()=>T.current),Bu(()=>{const p=T.current;if(!p)return;const A=f||h;A?p.setAttribute("for",A):p.removeAttribute("for"),i?p.setAttribute("active",""):p.removeAttribute("active"),b&&b!=="md"&&b!=="2"?p.setAttribute("size",b):p.removeAttribute("size"),S&&S!=="default"?p.setAttribute("variant",S):p.removeAttribute("variant"),y?p.setAttribute("hidden",""):p.removeAttribute("hidden")},[f,h,i,b,S,y]),H.default.createElement("ui-field-error",{ref:T,...s},u)});Ea.displayName="FieldError";const Aa=H.default.forwardRef(function({children:u,label:f,orientation:h,variant:i,density:b,hidden:S,...y},s){const a=I.useRef(null);return I.useImperativeHandle(s,()=>a.current),Bu(()=>{const T=a.current;T&&(f?T.setAttribute("label",f):T.removeAttribute("label"),h&&h!=="vertical"?T.setAttribute("orientation",h):T.removeAttribute("orientation"),i&&i!=="default"?T.setAttribute("variant",i):T.removeAttribute("variant"),b&&b!=="default"?T.setAttribute("density",b):T.removeAttribute("density"),S?T.setAttribute("hidden",""):T.removeAttribute("hidden"))},[f,h,i,b,S]),H.default.createElement("ui-control-group",{ref:a,...y},u)});Aa.displayName="ControlGroup";const wa=H.default.forwardRef(function({children:u,legend:f,description:h,error:i,required:b,invalid:S,orientation:y,variant:s,tone:a,density:T,shape:p,headless:A,...P},F){const w=I.useRef(null);return I.useImperativeHandle(F,()=>w.current),Bu(()=>{const v=w.current;v&&(f!=null&&f!==""?v.setAttribute("legend",f):v.removeAttribute("legend"),h!=null&&h!==""?v.setAttribute("description",h):v.removeAttribute("description"),i!=null&&i!==""?v.setAttribute("error",i):v.removeAttribute("error"),b?v.setAttribute("required",""):v.removeAttribute("required"),S?v.setAttribute("invalid",""):v.removeAttribute("invalid"),y&&y!=="vertical"?v.setAttribute("orientation",y):v.removeAttribute("orientation"),s&&s!=="default"?v.setAttribute("variant",s):v.removeAttribute("variant"),a&&a!=="default"?v.setAttribute("tone",a):v.removeAttribute("tone"),T&&T!=="default"?v.setAttribute("density",T):v.removeAttribute("density"),p&&p!=="default"?v.setAttribute("shape",p):v.removeAttribute("shape"),A?v.setAttribute("headless",""):v.removeAttribute("headless"))},[f,h,i,b,S,y,s,a,T,p,A]),H.default.createElement("ui-fieldset",{ref:w,...P},u)});wa.displayName="Fieldset";const Mf=typeof window<"u"?I.useLayoutEffect:I.useEffect;function Hf(R){const{value:u,open:f,state:h,stateText:i,onChange:b,onInput:S,onDebouncedInput:y,onSelect:s,onOpenDetail:a,onCloseDetail:T,onOpen:p,onClose:A,onClear:P,clearable:F,debounce:w,validation:v,size:c,maxlength:C,readOnly:_,autofocus:D,disabled:E,name:B,required:M,placeholder:G,variant:$,radius:re,label:K,description:Z,emptyText:U,noFilter:le,allowCustom:me,children:Q,...oe}=R,se=I.useRef(null);I.useEffect(()=>{const W=se.current;if(!W)return;const te=Re=>{var Te;const Ee=(Te=Re.detail)==null?void 0:Te.query;typeof Ee=="string"&&(S==null||S(Ee))},ae=Re=>{var Te;const Ee=(Te=Re.detail)==null?void 0:Te.value;typeof Ee=="string"&&(b==null||b(Ee))},Ae=Re=>{var Te;const Ee=(Te=Re.detail)==null?void 0:Te.query;typeof Ee=="string"&&(y==null||y(Ee))},ke=Re=>{const Ee=Re.detail;typeof(Ee==null?void 0:Ee.value)=="string"&&(s==null||s(Ee.value,Ee.label||Ee.value))},be=Re=>{const Ee=Re.detail;p==null||p(),Ee&&(a==null||a(Ee))},q=Re=>{const Ee=Re.detail;A==null||A(),Ee&&(T==null||T(Ee))},ge=()=>P==null?void 0:P();return W.addEventListener("input",te),W.addEventListener("change",ae),W.addEventListener("debounced-input",Ae),W.addEventListener("select",ke),W.addEventListener("open",be),W.addEventListener("close",q),W.addEventListener("clear",ge),()=>{W.removeEventListener("input",te),W.removeEventListener("change",ae),W.removeEventListener("debounced-input",Ae),W.removeEventListener("select",ke),W.removeEventListener("open",be),W.removeEventListener("close",q),W.removeEventListener("clear",ge)}},[b,S,y,s,p,A,a,T,P]),Mf(()=>{const W=se.current;W&&(F?W.setAttribute("clearable",""):W.removeAttribute("clearable"),typeof w=="number"&&Number.isFinite(w)?W.setAttribute("debounce",String(w)):W.removeAttribute("debounce"),v&&v!=="none"?W.setAttribute("validation",v):W.removeAttribute("validation"),h&&h!=="idle"?W.setAttribute("state",h):W.removeAttribute("state"),i?W.setAttribute("state-text",i):W.removeAttribute("state-text"),c&&c!=="md"&&c!=="2"?W.setAttribute("size",String(c)):W.removeAttribute("size"),typeof C=="number"?W.setAttribute("maxlength",String(C)):W.removeAttribute("maxlength"),_?W.setAttribute("readonly",""):W.removeAttribute("readonly"),D?W.setAttribute("autofocus",""):W.removeAttribute("autofocus"),E?W.setAttribute("disabled",""):W.removeAttribute("disabled"),B?W.setAttribute("name",B):W.removeAttribute("name"),M?W.setAttribute("required",""):W.removeAttribute("required"),G?W.setAttribute("placeholder",G):W.removeAttribute("placeholder"),$?W.setAttribute("variant",$):W.removeAttribute("variant"),re?W.setAttribute("radius",String(re)):W.removeAttribute("radius"),K?W.setAttribute("label",K):W.removeAttribute("label"),Z?W.setAttribute("description",Z):W.removeAttribute("description"),U?W.setAttribute("empty-text",U):W.removeAttribute("empty-text"),le?W.setAttribute("no-filter",""):W.removeAttribute("no-filter"),me?W.setAttribute("allow-custom",""):W.removeAttribute("allow-custom"),typeof f=="boolean"&&(f?W.setAttribute("open",""):W.removeAttribute("open")))},[f,h,i,F,w,v,c,C,_,D,E,B,M,G,$,re,K,Z,U,le,me]);const ie={ref:se,...oe};return u!=null&&(ie.value=u),typeof f=="boolean"&&f&&(ie.open=""),h&&h!=="idle"&&(ie.state=h),i&&(ie["state-text"]=i),H.default.createElement("ui-combobox",ie,Q)}const _f=typeof window<"u"?I.useLayoutEffect:I.useEffect;function Bf(R){const{text:u,tone:f,variant:h,size:i,radius:b,elevation:S,state:y,pill:s,dot:a,interactive:T,truncate:p,maxWidth:A,removable:P,autoRemove:F,iconOnly:w,disabled:v,onRemove:c,children:C,..._}=R,D=I.useRef(null);return I.useEffect(()=>{const E=D.current;if(!E)return;const B=M=>c==null?void 0:c(M.detail);return E.addEventListener("remove",B),()=>E.removeEventListener("remove",B)},[c]),_f(()=>{const E=D.current;E&&(u?E.setAttribute("text",u):E.removeAttribute("text"),f?E.setAttribute("tone",f):E.removeAttribute("tone"),h&&h!=="surface"?E.setAttribute("variant",h):E.removeAttribute("variant"),i&&i!=="md"&&i!=="2"?E.setAttribute("size",i):E.removeAttribute("size"),b!=null?E.setAttribute("radius",String(b)):E.removeAttribute("radius"),S&&S!=="none"?E.setAttribute("elevation",S):E.removeAttribute("elevation"),y&&y!=="idle"?E.setAttribute("state",y):E.removeAttribute("state"),s?E.setAttribute("pill",""):E.removeAttribute("pill"),a?E.setAttribute("dot",""):E.removeAttribute("dot"),T?E.setAttribute("interactive",""):E.removeAttribute("interactive"),p?E.setAttribute("truncate",""):E.removeAttribute("truncate"),A?E.setAttribute("max-width",A):E.removeAttribute("max-width"),P?E.setAttribute("removable",""):E.removeAttribute("removable"),F?E.setAttribute("auto-remove",""):E.removeAttribute("auto-remove"),w?E.setAttribute("icon-only",""):E.removeAttribute("icon-only"),v?E.setAttribute("disabled",""):E.removeAttribute("disabled"))},[u,f,h,i,b,S,y,s,a,T,p,A,P,F,w,v]),H.default.createElement("ui-badge",{ref:D,..._},C)}const Nf=typeof window<"u"?I.useLayoutEffect:I.useEffect;function Uf(R){const{title:u,description:f,actionLabel:h,tone:i,compact:b,headless:S,onAction:y,children:s,...a}=R,T=I.useRef(null);return I.useEffect(()=>{const p=T.current;if(!p)return;const A=()=>y==null?void 0:y();return p.addEventListener("action",A),()=>p.removeEventListener("action",A)},[y]),Nf(()=>{const p=T.current;p&&(u?p.setAttribute("title",u):p.removeAttribute("title"),f?p.setAttribute("description",f):p.removeAttribute("description"),h?p.setAttribute("action-label",h):p.removeAttribute("action-label"),i?p.setAttribute("tone",i):p.removeAttribute("tone"),b?p.setAttribute("compact",""):p.removeAttribute("compact"),S?p.setAttribute("headless",""):p.removeAttribute("headless"))},[u,f,h,i,b,S]),H.default.createElement("ui-empty-state",{ref:T,...a},s)}function Of(R){const{sortable:u,selectable:f,multiSelect:h,striped:i,hover:b,compact:S,bordered:y,stickyHeader:s,loading:a,headless:T,emptyText:p,onSortChange:A,onRowSelect:P,children:F,...w}=R,v=I.useRef(null);return I.useEffect(()=>{const c=v.current;if(!c)return;const C=D=>{const E=D.detail;E&&(A==null||A(E))},_=D=>{const E=D.detail;E&&(P==null||P(E))};return c.addEventListener("sort-change",C),c.addEventListener("row-select",_),()=>{c.removeEventListener("sort-change",C),c.removeEventListener("row-select",_)}},[A,P]),H.default.createElement("ui-table",{ref:v,...w,...u?{sortable:""}:{},...f?{selectable:""}:{},...h?{"multi-select":""}:{},...i?{striped:""}:{},...b?{hover:""}:{},...S?{compact:""}:{},...y?{bordered:""}:{},...s?{"sticky-header":""}:{},...a?{loading:""}:{},...T?{headless:""}:{},...p?{"empty-text":p}:{}},F)}function jf(R){const{sortable:u,selectable:f,multiSelect:h,shape:i,variant:b,elevation:S,striped:y,hover:s,compact:a,bordered:T,stickyHeader:p,stickyFooter:A,loading:P,state:F,stateText:w,headless:v,hideSummary:c,emptyText:C,page:_,pageSize:D,paginationId:E,filterQuery:B,filterColumn:M,filterRules:G,columnOrder:$,pinColumns:re,draggableColumns:K,resizableColumns:Z,bulkActionsLabel:U,bulkClearLabel:le,virtualize:me,rowHeight:Q,overscan:oe,onSortChange:se,onRowSelect:ie,onPageChange:W,onFilterChange:te,onColumnResize:ae,onVirtualRangeChange:Ae,onColumnOrderChange:ke,onBulkClear:be,children:q,...ge}=R,Re=I.useRef(null);I.useEffect(()=>{const Ie=Re.current;if(!Ie)return;const Ne=Xe=>{const We=Xe.detail;We&&(se==null||se(We))},Pe=Xe=>{const We=Xe.detail;We&&(ie==null||ie(We))},Ce=Xe=>{const We=Xe.detail;We&&(W==null||W(We))},Ve=Xe=>{const We=Xe.detail;We&&(te==null||te(We))},ct=Xe=>{const We=Xe.detail;We&&(ae==null||ae(We))},xt=Xe=>{const We=Xe.detail;We&&(Ae==null||Ae(We))},ot=Xe=>{const We=Xe.detail;We&&(ke==null||ke(We))},ft=Xe=>{const We=Xe.detail;We&&(be==null||be(We))};return Ie.addEventListener("sort-change",Ne),Ie.addEventListener("row-select",Pe),Ie.addEventListener("page-change",Ce),Ie.addEventListener("filter-change",Ve),Ie.addEventListener("column-resize",ct),Ie.addEventListener("virtual-range-change",xt),Ie.addEventListener("column-order-change",ot),Ie.addEventListener("bulk-clear",ft),()=>{Ie.removeEventListener("sort-change",Ne),Ie.removeEventListener("row-select",Pe),Ie.removeEventListener("page-change",Ce),Ie.removeEventListener("filter-change",Ve),Ie.removeEventListener("column-resize",ct),Ie.removeEventListener("virtual-range-change",xt),Ie.removeEventListener("column-order-change",ot),Ie.removeEventListener("bulk-clear",ft)}},[se,ie,W,te,ae,Ae,ke,be]);const Ee=G&&G.length?(()=>{try{return JSON.stringify(G)}catch{return}})():void 0,Te=typeof re=="string"?re.trim()||void 0:re&&typeof re=="object"?(()=>{try{return JSON.stringify(re)}catch{return}})():void 0;return H.default.createElement("ui-data-table",{ref:Re,...ge,...u?{sortable:""}:{},...f?{selectable:""}:{},...h?{"multi-select":""}:{},...i&&i!=="default"?{shape:i}:{},...b&&b!=="default"?{variant:b}:{},...S&&S!=="default"?{elevation:S}:{},...y?{striped:""}:{},...s?{hover:""}:{},...a?{compact:""}:{},...T?{bordered:""}:{},...p?{"sticky-header":""}:{},...A?{"sticky-footer":""}:{},...P?{loading:""}:{},...F&&F!=="idle"?{state:F}:{},...w?{"state-text":w}:{},...v?{headless:""}:{},...c?{"hide-summary":""}:{},...C?{"empty-text":C}:{},...typeof _=="number"&&Number.isFinite(_)?{page:String(_)}:{},...typeof D=="number"&&Number.isFinite(D)?{"page-size":String(D)}:{},...E?{"pagination-id":E}:{},...typeof B=="string"?{"filter-query":B}:{},...typeof M=="number"&&Number.isFinite(M)?{"filter-column":String(M)}:typeof M=="string"&&M.trim()?{"filter-column":M}:{},...Ee?{filters:Ee}:{},...$?{"column-order":$}:{},...Te?{"pin-columns":Te}:{},...K?{"draggable-columns":""}:{},...Z?{"resizable-columns":""}:{},...U?{"bulk-actions-label":U}:{},...le?{"bulk-clear-label":le}:{},...me?{virtualize:""}:{},...typeof Q=="number"&&Number.isFinite(Q)?{"row-height":String(Q)}:{},...typeof oe=="number"&&Number.isFinite(oe)?{overscan:String(oe)}:{}},q)}const $f=typeof window<"u"?I.useLayoutEffect:I.useEffect,Ms=H.default.forwardRef(function({data:u,series:f,values:h,labels:i,type:b,variant:S,title:y,subtitle:s,state:a,disabled:T,interactive:p,showLegend:A,showSummary:P,headless:F,valuePrefix:w,valueSuffix:v,ariaLabel:c,onPointSelect:C,children:_,...D},E){const B=I.useRef(null);return I.useImperativeHandle(E,()=>B.current),I.useEffect(()=>{St("ui-chart","Chart")},[]),I.useEffect(()=>{const M=B.current;if(!M||!C)return;const G=$=>{const re=$.detail;re&&C(re)};return M.addEventListener("ui-point-select",G),()=>{M.removeEventListener("ui-point-select",G)}},[C]),$f(()=>{const M=B.current;if(!M)return;const G=(re,K)=>{const Z=M.getAttribute(re);if(K==null){Z!=null&&M.removeAttribute(re);return}Z!==K&&M.setAttribute(re,K)},$=(re,K)=>{K?G(re,""):G(re,null)};if(u&&u.length)try{G("data",JSON.stringify(u))}catch{G("data",null)}else G("data",null);if(f&&f.length)try{G("series",JSON.stringify(f))}catch{G("series",null)}else G("series",null);h&&h.length?G("values",h.join(",")):G("values",null),i&&i.length?G("labels",i.join(",")):G("labels",null),G("type",b&&b!=="line"?b:null),G("variant",S&&S!=="default"?S:null),G("title",y||null),G("subtitle",s||null),G("state",a&&a!=="idle"?a:null),G("interactive",p===!1?"false":null),G("show-legend",typeof A=="boolean"?A?"true":"false":null),G("show-summary",typeof P=="boolean"?P?"true":"false":null),G("value-prefix",w||null),G("value-suffix",v||null),G("aria-label",c||null),$("disabled",T),$("headless",F)},[u,f,h,i,b,S,y,s,a,T,p,A,P,F,w,v,c]),H.default.createElement("ui-chart",{ref:B,...D},_)});Ms.displayName="Chart";const Sa=H.default.forwardRef(function({children:u,...f},h){return H.default.createElement("div",{ref:h,slot:"header",...f},u)});Sa.displayName="ChartHeader";const xa=H.default.forwardRef(function({children:u,...f},h){return H.default.createElement("h3",{ref:h,slot:"title",...f},u)});xa.displayName="ChartTitle";const ka=H.default.forwardRef(function({children:u,...f},h){return H.default.createElement("p",{ref:h,slot:"subtitle",...f},u)});ka.displayName="ChartSubtitle";const zf=Object.assign(Ms,{Root:Ms,Header:Sa,Title:xa,Subtitle:ka}),Wf=typeof window<"u"?I.useLayoutEffect:I.useEffect,Ra=H.default.forwardRef(function({items:u,variant:f,headless:h,children:i,...b},S){const y=I.useRef(null);return I.useImperativeHandle(S,()=>y.current),Wf(()=>{const s=y.current;if(!s)return;const a=(p,A)=>{const P=s.getAttribute(p);if(A==null){P!=null&&s.removeAttribute(p);return}P!==A&&s.setAttribute(p,A)},T=(p,A)=>{A?a(p,""):a(p,null)};if(u&&u.length)try{a("items",JSON.stringify(u))}catch{a("items",null)}else a("items",null);a("variant",f&&f!=="default"?f:null),T("headless",h)},[u,f,h]),H.default.createElement("ui-timeline",{ref:y,...b},i)});Ra.displayName="Timeline";const Gf=typeof window<"u"?I.useLayoutEffect:I.useEffect,Ta=H.default.forwardRef(function({year:u,month:f,value:h,events:i,variant:b,selection:S,min:y,max:s,disabled:a,readOnly:T,locale:p,translations:A,weekStart:P,outsideClick:F,eventsMax:w,eventsDisplay:v,maxSelections:c,size:C,bare:_,tone:D,state:E,headless:B,hideToday:M,showToday:G,ariaLabel:$,onSelect:re,onChange:K,onCalendarChange:Z,onMonthChange:U,onValueChange:le,children:me,...Q},oe){const se=I.useRef(null);return I.useImperativeHandle(oe,()=>se.current),I.useEffect(()=>{St("ui-calendar","Calendar")},[]),I.useEffect(()=>{const ie=se.current;if(!ie)return;const W=Ae=>{const ke=Ae.detail;ke&&(re==null||re(ke),K==null||K(ke),le==null||le(ke.value))},te=Ae=>{const ke=Ae.detail;ke&&(Z==null||Z(ke))},ae=Ae=>{const ke=Ae.detail;ke&&(U==null||U(ke))};return ie.addEventListener("ui-select",W),ie.addEventListener("ui-change",te),ie.addEventListener("ui-month-change",ae),()=>{ie.removeEventListener("ui-select",W),ie.removeEventListener("ui-change",te),ie.removeEventListener("ui-month-change",ae)}},[re,K,Z,U,le]),Gf(()=>{const ie=se.current;if(!ie)return;const W=(ae,Ae)=>{const ke=ie.getAttribute(ae);if(Ae==null){ke!=null&&ie.removeAttribute(ae);return}ke!==Ae&&ie.setAttribute(ae,Ae)},te=(ae,Ae)=>{Ae?ie.hasAttribute(ae)||ie.setAttribute(ae,""):ie.hasAttribute(ae)&&ie.removeAttribute(ae)};if(typeof u=="number"&&Number.isFinite(u)?W("year",String(u)):W("year",null),typeof f=="number"&&Number.isFinite(f)?W("month",String(f)):W("month",null),W("value",h||null),W("selection",S&&S!=="single"?S:null),W("min",y||null),W("max",s||null),W("locale",p||null),W("translations",_o(A)),W("week-start",typeof P=="number"?String(P):null),W("outside-click",F&&F!=="navigate"?F:null),W("events-max",typeof w=="number"&&Number.isFinite(w)?String(w):null),W("events-display",v&&v!=="dots"?v:null),W("max-selections",typeof c=="number"&&Number.isFinite(c)?String(c):null),W("size",C&&C!=="md"?C:null),te("bare",_),W("tone",D||null),W("state",E&&E!=="idle"?E:null),W("show-today",typeof G=="boolean"?G?"true":"false":null),W("aria-label",$||null),te("disabled",a),te("readonly",T),te("hide-today",M),te("headless",B),i&&i.length)try{W("events",JSON.stringify(i))}catch{W("events",null)}else W("events",null);W("variant",b&&b!=="default"?b:null)},[u,f,h,i,b,S,y,s,a,T,p,A,P,F,w,v,c,C,_,D,E,B,M,G,$]),H.default.createElement("ui-calendar",{ref:se,...Q},me)});Ta.displayName="Calendar";const Yf=typeof window<"u"?I.useLayoutEffect:I.useEffect,La=H.default.forwardRef(function({value:u,format:f,alpha:h,disabled:i,readOnly:b,size:S,variant:y,state:s,tone:a,mode:T,open:p,closeOnEscape:A,placeholder:P,presets:F,recent:w,maxRecent:v,persist:c,onInput:C,onChange:_,onValueChange:D,onOpen:E,onClose:B,onOpenDetail:M,onCloseDetail:G,onInvalid:$,children:re,...K},Z){const U=I.useRef(null);I.useImperativeHandle(Z,()=>U.current),I.useEffect(()=>{const me=U.current;if(!me)return;const Q=te=>{const ae=te.detail;ae&&(C==null||C(ae))},oe=te=>{const ae=te.detail;ae&&(_==null||_(ae),D==null||D(ae.value))},se=te=>{const ae=te.detail;ae&&($==null||$(ae))},ie=te=>{const ae=te.detail;E==null||E(),ae&&(M==null||M(ae))},W=te=>{const ae=te.detail;B==null||B(),ae&&(G==null||G(ae))};return me.addEventListener("input",Q),me.addEventListener("change",oe),me.addEventListener("open",ie),me.addEventListener("close",W),me.addEventListener("invalid",se),()=>{me.removeEventListener("input",Q),me.removeEventListener("change",oe),me.removeEventListener("open",ie),me.removeEventListener("close",W),me.removeEventListener("invalid",se)}},[C,_,D,E,B,M,G,$]),Yf(()=>{const me=U.current;if(!me)return;const Q=(se,ie)=>{const W=me.getAttribute(se);ie==null?W!=null&&me.removeAttribute(se):W!==ie&&me.setAttribute(se,ie)},oe=(se,ie)=>{ie?Q(se,""):Q(se,null)};if(Q("value",u??null),Q("format",f&&f!=="hex"?f:null),oe("alpha",h),oe("disabled",i),oe("readonly",b),Q("size",S&&S!=="md"?S:null),Q("variant",y&&y!=="default"?y:null),Q("state",s&&s!=="idle"?s:null),Q("tone",a&&a!=="brand"?a:null),Q("mode",T&&T!=="inline"?T:null),typeof p=="boolean"?oe("open",p):Q("open",null),Q("close-on-escape",typeof A=="boolean"?A?"true":"false":null),Q("placeholder",P??null),oe("recent",w),Q("max-recent",typeof v=="number"?String(v):null),oe("persist",c),F&&F.length>0)try{Q("presets",JSON.stringify(F))}catch{Q("presets",null)}else Q("presets",null)},[u,f,h,i,b,S,y,s,a,T,p,A,P,F,w,v,c]);const le={ref:U,...K};if(T&&T!=="inline"&&(le.mode=T),typeof p=="boolean"&&p&&(le.open=""),u!=null&&(le.value=u),f&&f!=="hex"&&(le.format=f),h&&(le.alpha=""),i&&(le.disabled=""),b&&(le.readonly=""),S&&S!=="md"&&(le.size=S),y&&y!=="default"&&(le.variant=y),s&&s!=="idle"&&(le.state=s),a&&a!=="brand"&&(le.tone=a),P&&(le.placeholder=P),typeof A=="boolean"&&(le["close-on-escape"]=A?"true":"false"),w&&(le.recent=""),typeof v=="number"&&(le["max-recent"]=String(v)),c&&(le.persist=""),F&&F.length>0)try{le.presets=JSON.stringify(F)}catch{}return H.default.createElement("ui-color-picker",le,re)});La.displayName="ColorPicker";const Jf=typeof window<"u"?I.useLayoutEffect:I.useEffect,Ia=H.default.forwardRef(function({value:u,defaultValue:f,open:h,defaultOpen:i,min:b,max:S,locale:y,translations:s,weekStart:a,size:T,shape:p,bare:A,variant:P,state:F,placeholder:w,label:v,hint:c,error:C,clearable:_,allowInput:D,closeOnSelect:E,outsideClick:B,disabled:M,readOnly:G,required:$,name:re,mode:K,showFooter:Z,events:U,eventsMax:le,eventsDisplay:me,format:Q,displayFormat:oe,onInput:se,onChange:ie,onValueChange:W,onOpen:te,onClose:ae,onInvalid:Ae,children:ke,...be},q){const ge=I.useRef(null);return I.useImperativeHandle(q,()=>ge.current),I.useEffect(()=>{const Re=ge.current;if(!Re)return;const Ee=Ne=>{const Pe=Ne.detail;Pe&&(se==null||se(Pe))},Te=Ne=>{const Pe=Ne.detail;Pe&&(ie==null||ie(Pe),W==null||W(Pe.value))},Ie=Ne=>{const Pe=Ne.detail;Pe&&(Ae==null||Ae(Pe))};return Re.addEventListener("input",Ee),Re.addEventListener("change",Te),Re.addEventListener("open",te),Re.addEventListener("close",ae),Re.addEventListener("invalid",Ie),()=>{Re.removeEventListener("input",Ee),Re.removeEventListener("change",Te),Re.removeEventListener("open",te),Re.removeEventListener("close",ae),Re.removeEventListener("invalid",Ie)}},[se,ie,W,te,ae,Ae]),Jf(()=>{const Re=ge.current;if(!Re)return;const Ee=(Ie,Ne)=>{const Pe=Re.getAttribute(Ie);Ne==null?Pe!=null&&Re.removeAttribute(Ie):Pe!==Ne&&Re.setAttribute(Ie,Ne)},Te=(Ie,Ne)=>{Ne?Ee(Ie,""):Ee(Ie,null)};if(Ee("value",u??null),Ee("default-value",f??null),typeof h=="boolean"?Te("open",h):Ee("open",null),Te("default-open",i),Ee("min",b??null),Ee("max",S??null),Ee("locale",y??null),Ee("translations",_o(s)),Ee("week-start",typeof a=="number"?String(a):null),Ee("size",T&&T!=="md"?T:null),Ee("shape",p&&p!=="default"?p:null),Te("bare",A),Ee("variant",P&&P!=="default"?P:null),Ee("state",F&&F!=="idle"?F:null),Ee("placeholder",w??null),Ee("label",v??null),Ee("hint",c??null),Ee("error",C??null),Te("clearable",_),Te("allow-input",D),Te("close-on-select",E),Ee("outside-click",B&&B!=="navigate"?B:null),Te("disabled",M),Te("readonly",G),Te("required",$),Ee("name",re??null),Ee("mode",K&&K!=="popover"?K:null),Ee("show-footer",typeof Z=="boolean"?String(Z):null),Ee("events-max",typeof le=="number"?String(le):null),Ee("events-display",me&&me!=="dots"?me:null),Ee("format",Q&&Q!=="locale"?Q:null),Ee("display-format",oe??null),U!=null&&U.length)try{Ee("events",JSON.stringify(U))}catch{Ee("events",null)}else Ee("events",null)},[u,f,h,i,b,S,y,s,a,T,p,A,P,F,w,v,c,C,_,D,E,B,M,G,$,re,K,Z,U,le,me,Q,oe]),H.default.createElement("ui-date-picker",{ref:ge,...be},ke)});Ia.displayName="DatePicker";const Xf=typeof window<"u"?I.useLayoutEffect:I.useEffect,Ca=H.default.forwardRef(function({value:u,defaultValue:f,open:h,defaultOpen:i,min:b,max:S,locale:y,translations:s,weekStart:a,size:T,shape:p,bare:A,variant:P,state:F,rangeVariant:w,label:v,hint:c,error:C,allowSameDay:_,allowPartial:D,closeOnSelect:E,clearable:B,disabled:M,readOnly:G,required:$,name:re,nameStart:K,nameEnd:Z,mode:U,showFooter:le,onInput:me,onChange:Q,onValueChange:oe,onOpen:se,onClose:ie,onInvalid:W,children:te,...ae},Ae){const ke=I.useRef(null);return I.useImperativeHandle(Ae,()=>ke.current),I.useEffect(()=>{const be=ke.current;if(!be)return;const q=Ee=>{const Te=Ee.detail;Te&&(me==null||me(Te))},ge=Ee=>{const Te=Ee.detail;Te&&(Q==null||Q(Te),oe==null||oe(Te.value?JSON.stringify(Te.value):null))},Re=Ee=>{const Te=Ee.detail;Te&&(W==null||W(Te))};return be.addEventListener("input",q),be.addEventListener("change",ge),be.addEventListener("open",se),be.addEventListener("close",ie),be.addEventListener("invalid",Re),()=>{be.removeEventListener("input",q),be.removeEventListener("change",ge),be.removeEventListener("open",se),be.removeEventListener("close",ie),be.removeEventListener("invalid",Re)}},[me,Q,oe,se,ie,W]),Xf(()=>{const be=ke.current;if(!be)return;const q=(Re,Ee)=>{const Te=be.getAttribute(Re);Ee==null?Te!=null&&be.removeAttribute(Re):Te!==Ee&&be.setAttribute(Re,Ee)},ge=(Re,Ee)=>{Ee?q(Re,""):q(Re,null)};q("value",u??null),q("default-value",f??null),typeof h=="boolean"?ge("open",h):q("open",null),ge("default-open",i),q("min",b??null),q("max",S??null),q("locale",y??null),q("translations",_o(s)),q("week-start",typeof a=="number"?String(a):null),q("size",T&&T!=="md"?T:null),q("shape",p&&p!=="default"?p:null),ge("bare",A),q("variant",P&&P!=="default"?P:null),q("state",F&&F!=="idle"?F:null),q("range-variant",w&&w!=="two-fields"?w:null),q("label",v??null),q("hint",c??null),q("error",C??null),ge("allow-same-day",_),ge("allow-partial",D),ge("close-on-select",E),ge("clearable",B),ge("disabled",M),ge("readonly",G),ge("required",$),q("name",re??null),q("name-start",K??null),q("name-end",Z??null),q("mode",U&&U!=="popover"?U:null),q("show-footer",typeof le=="boolean"?String(le):null)},[u,f,h,i,b,S,y,s,a,T,p,A,P,F,w,v,c,C,_,D,E,B,M,G,$,re,K,Z,U,le]),H.default.createElement("ui-date-range-picker",{ref:ke,...ae},te)});Ca.displayName="DateRangePicker";const Pa=typeof window<"u"?I.useLayoutEffect:I.useEffect;function Fa(R,u,f){I.useEffect(()=>{const h=R.current;if(!h)return;const i=b=>{const S=b.detail;S&&(u==null||u(S),f==null||f(S.value))};return h.addEventListener("change",i),()=>{h.removeEventListener("change",i)}},[u,f,R])}const Da=H.default.forwardRef(function({value:u,min:f,max:h,locale:i,label:b,description:S,error:y,name:s,required:a,disabled:T,readOnly:p,onChange:A,onValueChange:P,children:F,...w},v){const c=I.useRef(null);return I.useImperativeHandle(v,()=>c.current),Fa(c,A,P),Pa(()=>{const C=c.current;if(!C)return;const _=(E,B)=>{const M=C.getAttribute(E);if(B==null){M!=null&&C.removeAttribute(E);return}M!==B&&C.setAttribute(E,B)},D=(E,B)=>{B?C.hasAttribute(E)||C.setAttribute(E,""):C.hasAttribute(E)&&C.removeAttribute(E)};_("value",u??null),_("min",f??null),_("max",h??null),_("locale",i??null),_("label",b??null),_("description",S??null),_("data-error",y??null),_("name",s??null),D("required",a),D("disabled",T),D("readonly",p)},[u,f,h,i,b,S,y,s,a,T,p]),H.default.createElement("ui-date-field",{ref:c,...w},F)}),Ma=H.default.forwardRef(function({value:u,min:f,max:h,locale:i,label:b,description:S,error:y,name:s,required:a,disabled:T,readOnly:p,format:A,seconds:P,onChange:F,onValueChange:w,children:v,...c},C){const _=I.useRef(null);return I.useImperativeHandle(C,()=>_.current),Fa(_,F,w),Pa(()=>{const D=_.current;if(!D)return;const E=(M,G)=>{const $=D.getAttribute(M);if(G==null){$!=null&&D.removeAttribute(M);return}$!==G&&D.setAttribute(M,G)},B=(M,G)=>{G?D.hasAttribute(M)||D.setAttribute(M,""):D.hasAttribute(M)&&D.removeAttribute(M)};E("value",u??null),E("min",f??null),E("max",h??null),E("locale",i??null),E("label",b??null),E("description",S??null),E("data-error",y??null),E("name",s??null),E("format",A&&A!=="24h"?A:null),B("seconds",P),B("required",a),B("disabled",T),B("readonly",p)},[u,f,h,i,b,S,y,s,a,T,p,A,P]),H.default.createElement("ui-time-field",{ref:_,...c},v)});Da.displayName="DateField";Ma.displayName="TimeField";const Zf=typeof window<"u"?I.useLayoutEffect:I.useEffect,Ha=H.default.forwardRef(function({value:u,min:f,max:h,step:i,precision:b,locale:S,format:y,placeholder:s,label:a,description:T,error:p,name:A,required:P,disabled:F,readOnly:w,allowWheel:v,showSteppers:c,clampOnBlur:C,autoComplete:_,inputMode:D,invalid:E,prefix:B,suffix:M,incrementTrigger:G,decrementTrigger:$,children:re,onValueChange:K,onInvalidValue:Z,...U},le){const me=I.useRef(null);return I.useImperativeHandle(le,()=>me.current),I.useEffect(()=>{const Q=me.current;if(!Q)return;const oe=ie=>{const W=ie.detail;W&&(K==null||K(W))},se=ie=>{const W=ie.detail;W!=null&&W.reason&&(Z==null||Z(W.reason))};return Q.addEventListener("value-change",oe),Q.addEventListener("invalid",se),()=>{Q.removeEventListener("value-change",oe),Q.removeEventListener("invalid",se)}},[Z,K]),Zf(()=>{const Q=me.current;if(!Q)return;const oe=(ie,W)=>{const te=Q.getAttribute(ie);if(W==null){te!=null&&Q.removeAttribute(ie);return}te!==W&&Q.setAttribute(ie,W)},se=(ie,W)=>{W?Q.hasAttribute(ie)||Q.setAttribute(ie,""):Q.hasAttribute(ie)&&Q.removeAttribute(ie)};oe("value",u!=null&&u!==""?String(u):null),oe("min",f!=null?String(f):null),oe("max",h!=null?String(h):null),oe("step",i!=null?String(i):null),oe("precision",b!=null?String(b):null),oe("locale",S??null),oe("format",y&&y!=="grouped"?y:null),oe("placeholder",s??null),oe("label",a??null),oe("description",T??null),oe("data-error",p??null),oe("name",A??null),oe("autocomplete",_??null),oe("inputmode",D??null),se("required",P),se("disabled",F),se("readonly",w),se("allow-wheel",v),se("show-steppers",c),se("clamp-on-blur",C),se("invalid",E)},[_,v,C,T,F,p,y,D,E,a,S,h,f,A,s,b,w,P,c,i,u]),H.default.createElement("ui-number-field",{ref:me,...U},B!=null?H.default.createElement("span",{slot:"prefix"},B):null,M!=null?H.default.createElement("span",{slot:"suffix"},M):null,$!=null?H.default.createElement("span",{slot:"decrement-trigger"},$):null,G!=null?H.default.createElement("span",{slot:"increment-trigger"},G):null,re)});Ha.displayName="NumberField";const Vf=typeof window<"u"?I.useLayoutEffect:I.useEffect,_a=H.default.forwardRef(function({options:u,value:f,placeholder:h,label:i,description:b,error:S,name:y,required:s,disabled:a,readOnly:T,loading:p,loadingText:A,clearable:P,maxSelections:F,renderLimit:w,selectionIndicator:v,optionBorder:c,variant:C,tone:_,density:D,shape:E,radius:B,optionRadius:M,elevation:G,size:$,onChange:re,onValueChange:K,children:Z,...U},le){const me=I.useRef(null);return I.useImperativeHandle(le,()=>me.current),I.useEffect(()=>{const Q=me.current;if(!Q)return;const oe=se=>{const ie=se.detail;ie&&(re==null||re(ie),K==null||K(ie.value))};return Q.addEventListener("change",oe),()=>{Q.removeEventListener("change",oe)}},[re,K]),Vf(()=>{const Q=me.current;if(!Q)return;const oe=(ie,W)=>{const te=Q.getAttribute(ie);if(W==null){te!=null&&Q.removeAttribute(ie);return}te!==W&&Q.setAttribute(ie,W)},se=(ie,W)=>{W?Q.hasAttribute(ie)||Q.setAttribute(ie,""):Q.hasAttribute(ie)&&Q.removeAttribute(ie)};oe("options",JSON.stringify(u||[])),oe("value",f!=null&&f.length?JSON.stringify(f):null),oe("placeholder",h??null),oe("label",i??null),oe("description",b??null),oe("data-error",S??null),oe("name",y??null),oe("max-selections",typeof F=="number"?String(F):null),oe("render-limit",typeof w=="number"?String(w):null),oe("loading-text",A??null),oe("selection-indicator",v??null),se("option-border",c),oe("variant",C&&C!=="default"?C:null),oe("tone",_&&_!=="default"?_:null),oe("density",D&&D!=="default"?D:null),oe("shape",E&&E!=="default"?E:null),oe("radius",B!=null?String(B):null),oe("option-radius",M!=null?String(M):null),oe("elevation",G&&G!=="low"?G:null),oe("size",$&&$!=="md"&&$!=="2"?$:null),se("required",s),se("disabled",a),se("readonly",T),se("loading",p),se("clearable",P)},[u,f,h,i,b,S,y,s,a,T,p,A,P,F,w,v,c,C,_,D,E,B,M,G,$]),H.default.createElement("ui-multi-select",{ref:me,...U},Z)});_a.displayName="MultiSelect";const Qf=typeof window<"u"?I.useLayoutEffect:I.useEffect,Ba=H.default.forwardRef(function({children:u,label:f,menuLabel:h,menuHeading:i,menuDescription:b,variant:S,density:y,menuDensity:s,menuShape:a,disabled:T,items:p,onPrimaryAction:A,onSelect:P,...F},w){const v=I.useRef(null);I.useImperativeHandle(w,()=>v.current),I.useEffect(()=>{const C=v.current;if(!C)return;const _=()=>A==null?void 0:A(),D=E=>P==null?void 0:P(E.detail);return C.addEventListener("primary-action",_),C.addEventListener("select",D),()=>{C.removeEventListener("primary-action",_),C.removeEventListener("select",D)}},[A,P]),Qf(()=>{const C=v.current;C&&(f?C.setAttribute("label",f):C.removeAttribute("label"),h?C.setAttribute("menu-label",h):C.removeAttribute("menu-label"),i?C.setAttribute("menu-heading",i):C.removeAttribute("menu-heading"),b?C.setAttribute("menu-description",b):C.removeAttribute("menu-description"),S&&S!=="primary"?C.setAttribute("variant",S):C.removeAttribute("variant"),y&&y!=="default"?C.setAttribute("density",y):C.removeAttribute("density"),s&&s!=="default"?C.setAttribute("menu-density",s):C.removeAttribute("menu-density"),a&&a!=="default"?C.setAttribute("menu-shape",a):C.removeAttribute("menu-shape"),T?C.setAttribute("disabled",""):C.removeAttribute("disabled"))},[f,h,i,b,S,y,s,a,T]);const c=(p==null?void 0:p.map(C=>H.default.createElement("button",{key:C.value,slot:"menuitem",type:"button","data-value":C.value,"data-label":C.label,"data-tone":C.tone||"default",disabled:C.disabled},H.default.createElement("span",{"data-menu-text":"true"},H.default.createElement("span",{"data-menu-label":"true"},C.label),C.description?H.default.createElement("span",{"data-menu-description":"true"},C.description):null),C.shortcut?H.default.createElement("span",{"data-menu-shortcut":"true"},C.shortcut):null)))||null;return H.default.createElement("ui-split-button",{ref:v,...F},c,u)});Ba.displayName="SplitButton";const Kf=typeof window<"u"?I.useLayoutEffect:I.useEffect,Na=H.default.forwardRef(function({options:u,value:f,label:h,description:i,error:b,name:S,disabled:y,onChange:s,onValueChange:a,children:T,...p},A){const P=I.useRef(null);return I.useImperativeHandle(A,()=>P.current),I.useEffect(()=>{const F=P.current;if(!F)return;const w=v=>{const c=v.detail;s==null||s(c),a==null||a(c.value)};return F.addEventListener("change",w),()=>F.removeEventListener("change",w)},[s,a]),Kf(()=>{const F=P.current;if(!F)return;const w=(v,c)=>{c==null?F.removeAttribute(v):F.setAttribute(v,c)};w("options",JSON.stringify(u||[])),w("value",f!=null&&f.length?JSON.stringify(f):null),w("label",h??null),w("description",i??null),w("error",b??null),w("name",S??null),y?F.setAttribute("disabled",""):F.removeAttribute("disabled")},[u,f,h,i,b,S,y]),H.default.createElement("ui-transfer-list",{ref:P,...p},T)});Na.displayName="TransferList";const qf=typeof window<"u"?I.useLayoutEffect:I.useEffect,Ua=H.default.forwardRef(function({value:u,placeholder:f,editing:h,multiline:i,disabled:b,readOnly:S,name:y,onChange:s,onValueChange:a,onSave:T,onCancel:p,children:A,...P},F){const w=I.useRef(null);return I.useImperativeHandle(F,()=>w.current),I.useEffect(()=>{const v=w.current;if(!v)return;const c=D=>{const E=D.detail;s==null||s(E),a==null||a(E.value)},C=D=>T==null?void 0:T(D.detail),_=D=>p==null?void 0:p(D.detail.value);return v.addEventListener("change",c),v.addEventListener("save",C),v.addEventListener("cancel",_),()=>{v.removeEventListener("change",c),v.removeEventListener("save",C),v.removeEventListener("cancel",_)}},[s,a,T,p]),qf(()=>{const v=w.current;if(!v)return;const c=(C,_)=>{_==null?v.removeAttribute(C):v.setAttribute(C,_)};c("value",u??null),c("placeholder",f??null),c("name",y??null),h?v.setAttribute("editing",""):v.removeAttribute("editing"),i?v.setAttribute("multiline",""):v.removeAttribute("multiline"),b?v.setAttribute("disabled",""):v.removeAttribute("disabled"),S?v.setAttribute("readonly",""):v.removeAttribute("readonly")},[u,f,y,h,i,b,S]),H.default.createElement("ui-inline-edit",{ref:w,...P},A)});Ua.displayName="InlineEdit";const ed=typeof window<"u"?I.useLayoutEffect:I.useEffect,Oa=H.default.forwardRef(function({value:u,defaultValue:f,open:h,defaultOpen:i,format:b,step:S,seconds:y,stepSeconds:s,min:a,max:T,disabled:p,readOnly:A,required:P,name:F,clearable:w,allowInput:v,mode:c,label:C,hint:_,error:D,locale:E,translations:B,variant:M,onInput:G,onChange:$,onValueChange:re,onOpen:K,onClose:Z,onInvalid:U,children:le,...me},Q){const oe=I.useRef(null);return I.useImperativeHandle(Q,()=>oe.current),I.useEffect(()=>{const se=oe.current;if(!se)return;const ie=ae=>{const Ae=ae.detail;Ae&&(G==null||G(Ae))},W=ae=>{const Ae=ae.detail;Ae&&($==null||$(Ae),re==null||re(Ae.value))},te=ae=>{const Ae=ae.detail;Ae&&(U==null||U(Ae))};return se.addEventListener("input",ie),se.addEventListener("change",W),se.addEventListener("open",K),se.addEventListener("close",Z),se.addEventListener("invalid",te),()=>{se.removeEventListener("input",ie),se.removeEventListener("change",W),se.removeEventListener("open",K),se.removeEventListener("close",Z),se.removeEventListener("invalid",te)}},[G,$,re,K,Z,U]),ed(()=>{const se=oe.current;if(!se)return;const ie=(te,ae)=>{const Ae=se.getAttribute(te);ae==null?Ae!=null&&se.removeAttribute(te):Ae!==ae&&se.setAttribute(te,ae)},W=(te,ae)=>{ae?ie(te,""):ie(te,null)};ie("value",u??null),ie("default-value",f??null),typeof h=="boolean"?W("open",h):ie("open",null),W("default-open",i),ie("format",b&&b!=="24h"?b:null),ie("step",typeof S=="number"?String(S):null),W("seconds",y),ie("step-seconds",typeof s=="number"?String(s):null),ie("min",a??null),ie("max",T??null),W("disabled",p),W("readonly",A),W("required",P),ie("name",F??null),W("clearable",w),W("allow-input",v),ie("mode",c&&c!=="popover"?c:null),ie("label",C??null),ie("hint",_??null),ie("error",D??null),ie("locale",E??null),ie("translations",_o(B)),ie("variant",M&&M!=="default"?M:null)},[u,f,h,i,b,S,y,s,a,T,p,A,P,F,w,v,c,C,_,D,E,B,M]),H.default.createElement("ui-time-picker",{ref:oe,...me},le)});Oa.displayName="TimePicker";const td=typeof window<"u"?I.useLayoutEffect:I.useEffect,ja=H.default.forwardRef(function({value:u,defaultValue:f,open:h,defaultOpen:i,min:b,max:S,locale:y,translations:s,weekStart:a,size:T,bare:p,variant:A,step:P,format:F,disabled:w,readOnly:v,required:c,name:C,closeOnSelect:_,clearable:D,allowInput:E,mode:B,showFooter:M,label:G,hint:$,error:re,onInput:K,onChange:Z,onValueChange:U,onOpen:le,onClose:me,onInvalid:Q,children:oe,...se},ie){const W=I.useRef(null);return I.useImperativeHandle(ie,()=>W.current),I.useEffect(()=>{const te=W.current;if(!te)return;const ae=be=>{const q=be.detail;q&&(K==null||K(q))},Ae=be=>{const q=be.detail;q&&(Z==null||Z(q),U==null||U(q.value))},ke=be=>{const q=be.detail;q&&(Q==null||Q(q))};return te.addEventListener("input",ae),te.addEventListener("change",Ae),te.addEventListener("open",le),te.addEventListener("close",me),te.addEventListener("invalid",ke),()=>{te.removeEventListener("input",ae),te.removeEventListener("change",Ae),te.removeEventListener("open",le),te.removeEventListener("close",me),te.removeEventListener("invalid",ke)}},[K,Z,U,le,me,Q]),td(()=>{const te=W.current;if(!te)return;const ae=(ke,be)=>{const q=te.getAttribute(ke);be==null?q!=null&&te.removeAttribute(ke):q!==be&&te.setAttribute(ke,be)},Ae=(ke,be)=>{be?ae(ke,""):ae(ke,null)};ae("value",u??null),ae("default-value",f??null),typeof h=="boolean"?Ae("open",h):ae("open",null),Ae("default-open",i),ae("min",b??null),ae("max",S??null),ae("locale",y??null),ae("translations",_o(s)),ae("week-start",typeof a=="number"?String(a):null),ae("size",T&&T!=="md"?T:null),Ae("bare",p),ae("variant",A&&A!=="default"?A:null),ae("step",typeof P=="number"?String(P):null),ae("format",F&&F!=="24h"?F:null),Ae("disabled",w),Ae("readonly",v),Ae("required",c),ae("name",C??null),Ae("close-on-select",_),Ae("clearable",D),Ae("allow-input",E),ae("mode",B&&B!=="popover"?B:null),ae("show-footer",typeof M=="boolean"?String(M):null),ae("label",G??null),ae("hint",$??null),ae("error",re??null)},[u,f,h,i,b,S,y,s,a,T,p,A,P,F,w,v,c,C,_,D,E,B,M,G,$,re]),H.default.createElement("ui-date-time-picker",{ref:W,...se},oe)});ja.displayName="DateTimePicker";const rd=typeof window<"u"?I.useLayoutEffect:I.useEffect,$a=H.default.forwardRef(function({value:u,defaultValue:f,open:h,defaultOpen:i,min:b,max:S,locale:y,translations:s,weekStart:a,size:T,bare:p,variant:A,step:P,autoNormalize:F,allowPartial:w,disabled:v,readOnly:c,required:C,name:_,closeOnSelect:D,clearable:E,mode:B,showFooter:M,label:G,hint:$,error:re,onInput:K,onChange:Z,onValueChange:U,onOpen:le,onClose:me,onInvalid:Q,children:oe,...se},ie){const W=I.useRef(null);return I.useImperativeHandle(ie,()=>W.current),I.useEffect(()=>{const te=W.current;if(!te)return;const ae=be=>{const q=be.detail;q&&(K==null||K(q))},Ae=be=>{const q=be.detail;q&&(Z==null||Z(q),U==null||U(q.value?JSON.stringify(q.value):null))},ke=be=>{const q=be.detail;q&&(Q==null||Q(q))};return te.addEventListener("input",ae),te.addEventListener("change",Ae),te.addEventListener("open",le),te.addEventListener("close",me),te.addEventListener("invalid",ke),()=>{te.removeEventListener("input",ae),te.removeEventListener("change",Ae),te.removeEventListener("open",le),te.removeEventListener("close",me),te.removeEventListener("invalid",ke)}},[K,Z,U,le,me,Q]),rd(()=>{const te=W.current;if(!te)return;const ae=(ke,be)=>{const q=te.getAttribute(ke);be==null?q!=null&&te.removeAttribute(ke):q!==be&&te.setAttribute(ke,be)},Ae=(ke,be)=>{be?ae(ke,""):ae(ke,null)};ae("value",u??null),ae("default-value",f??null),typeof h=="boolean"?Ae("open",h):ae("open",null),Ae("default-open",i),ae("min",b??null),ae("max",S??null),ae("locale",y??null),ae("translations",_o(s)),ae("week-start",typeof a=="number"?String(a):null),ae("size",T&&T!=="md"?T:null),Ae("bare",p),ae("variant",A&&A!=="default"?A:null),ae("step",typeof P=="number"?String(P):null),Ae("auto-normalize",F),Ae("allow-partial",w),Ae("disabled",v),Ae("readonly",c),Ae("required",C),ae("name",_??null),Ae("close-on-select",D),Ae("clearable",E),ae("mode",B&&B!=="popover"?B:null),ae("show-footer",typeof M=="boolean"?String(M):null),ae("label",G??null),ae("hint",$??null),ae("error",re??null)},[u,f,h,i,b,S,y,s,a,T,p,A,P,F,w,v,c,C,_,D,E,B,M,G,$,re]),H.default.createElement("ui-date-range-time-picker",{ref:W,...se},oe)});$a.displayName="DateRangeTimePicker";const nd=typeof window<"u"?I.useLayoutEffect:I.useEffect,za=H.default.forwardRef(function({tasks:u,variant:f,headless:h,children:i,...b},S){const y=I.useRef(null);return I.useImperativeHandle(S,()=>y.current),nd(()=>{const s=y.current;if(!s)return;const a=(p,A)=>{const P=s.getAttribute(p);if(A==null){P!=null&&s.removeAttribute(p);return}P!==A&&s.setAttribute(p,A)},T=(p,A)=>{A?a(p,""):a(p,null)};if(u&&u.length)try{a("tasks",JSON.stringify(u))}catch{a("tasks",null)}else a("tasks",null);a("variant",f&&f!=="default"?f:null),T("headless",h)},[u,f,h]),H.default.createElement("ui-gantt",{ref:y,...b},i)});za.displayName="Gantt";const id=typeof window<"u"?I.useLayoutEffect:I.useEffect,Wa=H.default.forwardRef(function({steps:u,value:f,orientation:h,variant:i,size:b,clickable:S,linear:y,headless:s,onChange:a,onSelect:T,children:p,...A},P){const F=I.useRef(null);return I.useImperativeHandle(P,()=>F.current),I.useEffect(()=>{const w=F.current;if(!w)return;const v=C=>{const _=C.detail;_&&(a==null||a(_))},c=C=>{const _=C.detail;_&&(T==null||T(_))};return w.addEventListener("change",v),w.addEventListener("select",c),()=>{w.removeEventListener("change",v),w.removeEventListener("select",c)}},[a,T]),id(()=>{const w=F.current;if(!w)return;const v=(C,_)=>{const D=w.getAttribute(C);if(_==null){D!=null&&w.removeAttribute(C);return}D!==_&&w.setAttribute(C,_)},c=(C,_)=>{_?v(C,""):v(C,null)};if(u&&u.length)try{v("steps",JSON.stringify(u))}catch{v("steps",null)}else v("steps",null);v("value",f||null),v("orientation",h&&h!=="horizontal"?h:null),v("variant",i&&i!=="default"?i:null),v("size",b&&b!=="md"?b:null),c("clickable",S),c("linear",y),c("headless",s)},[u,f,h,i,b,S,y,s]),H.default.createElement("ui-stepper",{ref:F,...A},p)});Wa.displayName="Stepper";const od=typeof window<"u"?I.useLayoutEffect:I.useEffect,Ga=H.default.forwardRef(function({value:u,linear:f,showStepper:h,stepperPosition:i,hideControls:b,keepMounted:S,variant:y,orientation:s,density:a,shape:T,showProgress:p,busy:A,headless:P,title:F,description:w,emptyLabel:v,nextLabel:c,prevLabel:C,finishLabel:_,onBeforeChange:D,onChange:E,onStepChange:B,onComplete:M,children:G,...$},re){const K=I.useRef(null);return I.useImperativeHandle(re,()=>K.current),I.useEffect(()=>{const Z=K.current;if(!Z)return;const U=oe=>{if(!D)return;const se=oe.detail;D(se)===!1&&oe.preventDefault()},le=oe=>{const se=oe.detail;se&&(E==null||E(se))},me=oe=>{const se=oe.detail;se&&(B==null||B(se))},Q=oe=>{const se=oe.detail;se&&(M==null||M(se))};return Z.addEventListener("before-change",U),Z.addEventListener("change",le),Z.addEventListener("step-change",me),Z.addEventListener("complete",Q),()=>{Z.removeEventListener("before-change",U),Z.removeEventListener("change",le),Z.removeEventListener("step-change",me),Z.removeEventListener("complete",Q)}},[D,E,B,M]),od(()=>{const Z=K.current;if(!Z)return;const U=(me,Q)=>{const oe=Z.getAttribute(me);if(Q==null){oe!=null&&Z.removeAttribute(me);return}oe!==Q&&Z.setAttribute(me,Q)},le=(me,Q,oe)=>{if(typeof Q=="boolean"){Q?U(me,""):U(me,null);return}oe!==void 0&&(oe?U(me,""):U(me,null))};U("value",u||null),le("linear",f),typeof h=="boolean"?U("show-stepper",h?"true":"false"):U("show-stepper",null),U("stepper-position",i&&i!=="top"?i:null),le("hide-controls",b),le("keep-mounted",S),U("variant",y&&y!=="default"?y:null),U("orientation",s&&s!=="horizontal"?s:null),U("density",a&&a!=="default"?a:null),U("shape",T&&T!=="rounded"?T:null),typeof p=="boolean"?U("show-progress",p?"true":"false"):U("show-progress",null),le("busy",A),le("headless",P),U("title",F||null),U("description",w||null),U("empty-label",v||null),U("next-label",c||null),U("prev-label",C||null),U("finish-label",_||null)},[u,f,h,i,b,S,y,s,a,T,p,A,P,F,w,v,c,C,_]),H.default.createElement("ui-wizard",{ref:K,...$},G)});Ga.displayName="Wizard";const ld=typeof window<"u"?I.useLayoutEffect:I.useEffect,Ya=H.default.forwardRef(function({open:u,mode:f,orientation:h,variant:i,floating:b,placement:S,collapsible:y,label:s,headless:a,onSelect:T,onOpenChange:p,onToggle:A,children:P,...F},w){const v=I.useRef(null);return I.useImperativeHandle(w,()=>v.current),I.useEffect(()=>{const c=v.current;if(!c)return;const C=E=>{const B=E.detail;B&&(T==null||T(B))},_=E=>{var M;const B=(M=E.detail)==null?void 0:M.open;typeof B=="boolean"&&(p==null||p(B))},D=E=>{var M;const B=(M=E.detail)==null?void 0:M.open;typeof B=="boolean"&&(A==null||A(B))};return c.addEventListener("select",C),c.addEventListener("change",_),c.addEventListener("toggle",D),()=>{c.removeEventListener("select",C),c.removeEventListener("change",_),c.removeEventListener("toggle",D)}},[T,p,A]),ld(()=>{const c=v.current;if(!c)return;const C=(D,E)=>{const B=c.getAttribute(D);if(E==null){B!=null&&c.removeAttribute(D);return}B!==E&&c.setAttribute(D,E)},_=(D,E)=>{E?C(D,""):C(D,null)};typeof u=="boolean"?_("open",u):C("open",null),C("mode",f&&f!=="bar"?f:null),C("orientation",h&&h!=="horizontal"?h:null),C("variant",i&&i!=="default"?i:null),_("floating",b),C("placement",S&&S!=="bottom-right"?S:null),_("collapsible",y),C("label",s||null),_("headless",a)},[u,f,h,i,b,S,y,s,a]),H.default.createElement("ui-quick-actions",{ref:v,...F},P)});Ya.displayName="QuickActions";const ud=typeof window<"u"?I.useLayoutEffect:I.useEffect,Nu=H.default.createContext(null);function Hs(R){const{selected:u,orientation:f,activation:h,variant:i,size:b,radius:S,elevation:y,tone:s,loop:a,collapsible:T,headless:p,onChange:A,onSelect:P,children:F,...w}=R,v=I.useRef(null);return I.useEffect(()=>{const c=v.current;if(!c)return;const C=_=>{const D=_.detail;D&&(A==null||A(D),P==null||P(D.selected))};return c.addEventListener("change",C),()=>c.removeEventListener("change",C)},[A,P]),ud(()=>{const c=v.current;c&&(typeof u=="number"?c.setAttribute("selected",String(u)):c.removeAttribute("selected"),f?c.setAttribute("orientation",f):c.removeAttribute("orientation"),h?c.setAttribute("activation",h):c.removeAttribute("activation"),i&&i!=="surface"?c.setAttribute("variant",i):c.removeAttribute("variant"),b&&b!=="md"&&b!=="2"?c.setAttribute("size",b):c.removeAttribute("size"),S==null||S===""||S==="default"?c.removeAttribute("radius"):c.setAttribute("radius",String(S)),y&&y!=="low"?c.setAttribute("elevation",y):c.removeAttribute("elevation"),s&&s!=="default"?c.setAttribute("tone",s):c.removeAttribute("tone"),typeof a=="boolean"?c.setAttribute("loop",String(a)):c.removeAttribute("loop"),T?c.setAttribute("collapsible",""):c.removeAttribute("collapsible"),p?c.setAttribute("headless",""):c.removeAttribute("headless"))},[u,f,h,i,b,S,y,s,a,T,p]),H.default.createElement("ui-navigation-menu",{ref:v,...w},F)}function Ja({children:R}){return H.default.createElement(H.default.Fragment,null,R)}function Xa({children:R}){const u=I.useRef(`ui-nav-item-${Math.random().toString(36).slice(2,10)}`),[f,h]=I.useState(!1);return H.default.createElement(Nu.Provider,{value:{itemKey:u.current,hasContent:f,setHasContent:h}},R)}function Za({children:R,...u}){const f=H.default.useContext(Nu),h=I.useRef(null),[i,b]=I.useState(!1);return I.useEffect(()=>{const S=h.current;if(!S)return;const y=()=>{b(S.getAttribute("aria-expanded")==="true")};y();const s=new MutationObserver(y);return s.observe(S,{attributes:!0,attributeFilter:["aria-expanded"]}),()=>s.disconnect()},[]),H.default.createElement("button",{type:"button",ref:h,slot:"item","data-nav-key":(f==null?void 0:f.itemKey)??void 0,...u},R,f!=null&&f.hasContent?H.default.createElement("span",{"aria-hidden":"true",style:{marginLeft:6,display:"inline-flex",alignItems:"center",lineHeight:1}},H.default.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{display:"block",transform:i?"rotate(180deg)":"rotate(0deg)",transition:"transform 180ms cubic-bezier(0.2, 0.9, 0.24, 1)"}},H.default.createElement("path",{d:"M3 4.75L6 7.25L9 4.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):null)}function Va({children:R,...u}){const f=H.default.useContext(Nu);return H.default.createElement("a",{slot:"item","data-nav-key":(f==null?void 0:f.itemKey)??void 0,...u},R)}function Qa({children:R,...u}){const f=H.default.useContext(Nu);return I.useEffect(()=>{if(f)return f.setHasContent(!0),()=>f.setHasContent(!1)},[f]),H.default.createElement("section",{slot:"panel","data-nav-panel-for":(f==null?void 0:f.itemKey)??void 0,...u},R)}function Ka(){return null}function qa(){return null}const sd=Object.assign(Hs,{Root:Hs,List:Ja,Item:Xa,Trigger:Za,Link:Va,Content:Qa,Indicator:Ka,Viewport:qa}),ad=typeof window<"u"?I.useLayoutEffect:I.useEffect;function cd(R){const{selected:u,open:f,loop:h,headless:i,orientation:b,placement:S,variant:y,size:s,density:a,radius:T,shape:p,elevation:A,tone:P,closeOnSelect:F,typeahead:w,onChange:v,onOpen:c,onClose:C,onSelect:_,children:D,...E}=R,B=I.useRef(null);return I.useEffect(()=>{const M=B.current;if(!M)return;const G=Z=>{const U=Z.detail;U&&(v==null||v(U))},$=Z=>{const U=Z.detail;typeof(U==null?void 0:U.selected)=="number"?c==null||c(U.selected):c==null||c(-1)},re=()=>C==null?void 0:C(),K=Z=>{const U=Z.detail;U&&(_==null||_(U))};return M.addEventListener("change",G),M.addEventListener("open",$),M.addEventListener("close",re),M.addEventListener("select",K),()=>{M.removeEventListener("change",G),M.removeEventListener("open",$),M.removeEventListener("close",re),M.removeEventListener("select",K)}},[v,c,C,_]),ad(()=>{const M=B.current;M&&(typeof u=="number"?M.setAttribute("selected",String(u)):M.removeAttribute("selected"),typeof f=="boolean"&&f?M.setAttribute("open",""):M.removeAttribute("open"),typeof h=="boolean"?M.setAttribute("loop",String(h)):M.removeAttribute("loop"),i?M.setAttribute("headless",""):M.removeAttribute("headless"),b&&b!=="horizontal"?M.setAttribute("orientation",b):M.removeAttribute("orientation"),S?M.setAttribute("placement",S):M.removeAttribute("placement"),y&&y!=="default"&&y!=="surface"?M.setAttribute("variant",y):M.removeAttribute("variant"),s&&s!=="md"&&s!=="2"?M.setAttribute("size",s):M.removeAttribute("size"),a&&a!=="default"?M.setAttribute("density",a):M.removeAttribute("density"),T==null||T===""||T==="default"?M.removeAttribute("radius"):M.setAttribute("radius",String(T)),p&&p!=="default"?M.setAttribute("shape",p):M.removeAttribute("shape"),A&&A!=="default"?M.setAttribute("elevation",A):M.removeAttribute("elevation"),P&&P!=="default"&&P!=="brand"?M.setAttribute("tone",P):M.removeAttribute("tone"),F==null?M.removeAttribute("close-on-select"):M.setAttribute("close-on-select",F?"true":"false"),w==null?M.removeAttribute("typeahead"):M.setAttribute("typeahead",w?"true":"false"))},[u,f,h,i,b,S,y,s,a,T,p,A,P,F,w]),H.default.createElement("ui-menubar",{ref:B,...E},D)}const fd=typeof window<"u"?H.default.useLayoutEffect:H.default.useEffect,ec=H.default.forwardRef(function(u,f){const{open:h,title:i,description:b,closable:S,dismissible:y,closeOnOverlay:s,closeOnEsc:a,lockWhileLoading:T,roleType:p,size:A,state:P,initialFocus:F,submitText:w,cancelText:v,loadingText:c,dialogId:C,config:_,headless:D,onOpen:E,onClose:B,onRequestClose:M,onDialogOpen:G,onDialogSubmit:$,onDialogCancel:re,onDialogDismiss:K,onDialogClose:Z,children:U,...le}=u,me=I.useRef(null);return H.default.useImperativeHandle(f,()=>me.current),I.useEffect(()=>{const Q=me.current;if(!Q)return;const oe=()=>E==null?void 0:E(),se=()=>B==null?void 0:B(),ie=be=>{const q=be.detail;q&&(M==null||M(q))},W=be=>G==null?void 0:G(be.detail),te=be=>$==null?void 0:$(be.detail),ae=be=>re==null?void 0:re(be.detail),Ae=be=>K==null?void 0:K(be.detail),ke=be=>Z==null?void 0:Z(be.detail);return Q.addEventListener("open",oe),Q.addEventListener("close",se),Q.addEventListener("request-close",ie),Q.addEventListener("ui-open",W),Q.addEventListener("ui-submit",te),Q.addEventListener("ui-cancel",ae),Q.addEventListener("ui-dismiss",Ae),Q.addEventListener("ui-close",ke),()=>{Q.removeEventListener("open",oe),Q.removeEventListener("close",se),Q.removeEventListener("request-close",ie),Q.removeEventListener("ui-open",W),Q.removeEventListener("ui-submit",te),Q.removeEventListener("ui-cancel",ae),Q.removeEventListener("ui-dismiss",Ae),Q.removeEventListener("ui-close",ke)}},[E,B,M,G,$,re,K,Z]),fd(()=>{const Q=me.current;if(!Q)return;typeof h=="boolean"&&(h?Q.setAttribute("open",""):Q.removeAttribute("open")),i?Q.setAttribute("title",i):Q.removeAttribute("title"),b?Q.setAttribute("description",b):Q.removeAttribute("description");const oe=typeof y=="boolean"?y:S;typeof oe=="boolean"?(Q.setAttribute("dismissible",String(oe)),Q.setAttribute("closable",String(oe))):(Q.removeAttribute("dismissible"),Q.removeAttribute("closable")),typeof s=="boolean"?(Q.setAttribute("close-on-overlay",String(s)),Q.setAttribute("close-on-backdrop",String(s))):(Q.removeAttribute("close-on-overlay"),Q.removeAttribute("close-on-backdrop")),typeof a=="boolean"?Q.setAttribute("close-on-esc",String(a)):Q.removeAttribute("close-on-esc"),typeof T=="boolean"?Q.setAttribute("lock-while-loading",String(T)):Q.removeAttribute("lock-while-loading"),p?Q.setAttribute("role",p):Q.removeAttribute("role"),A&&A!=="md"&&A!=="2"?Q.setAttribute("size",A):Q.removeAttribute("size"),P&&P!=="idle"?Q.setAttribute("state",P):Q.removeAttribute("state"),F?Q.setAttribute("initial-focus",F):Q.removeAttribute("initial-focus"),w?Q.setAttribute("submit-text",w):Q.removeAttribute("submit-text"),v?Q.setAttribute("cancel-text",v):Q.removeAttribute("cancel-text"),c?Q.setAttribute("loading-text",c):Q.removeAttribute("loading-text"),C&&(Q.dialogId=C),_&&(Q.config=_),D?Q.setAttribute("headless",""):Q.removeAttribute("headless")},[h,i,b,S,y,s,a,T,p,A,P,F,w,v,c,C,_,D]),H.default.createElement("ui-dialog",{ref:me,...le},U)});ec.displayName="Dialog";const tc=I.createContext(null),_l="data-ui-dialog-react-host-refcount";function dd({children:R,hostId:u="ui-dialog-react-host"}){const f=I.useRef(null);f.current||(f.current=Gn.createDialogManager()),I.useEffect(()=>{var y;if(typeof document>"u")return;let i=document.getElementById(u);const b=!i;i||(i=document.createElement("div"),i.id=u,i.setAttribute("data-ui-dialog-react-host","true"),document.body.appendChild(i));const S=Number(i.getAttribute(_l)||"0");return i.setAttribute(_l,String(Math.max(0,S)+1)),(y=f.current)==null||y.setContainer(i),()=>{var T,p;if((T=f.current)==null||T.destroy("unmount"),f.current=null,!i||!i.isConnected)return;const s=Number(i.getAttribute(_l)||"1"),a=Math.max(0,s-1);a===0?(i.removeAttribute(_l),b&&((p=i.parentElement)==null||p.removeChild(i))):i.setAttribute(_l,String(a))}},[u]);const h=I.useMemo(()=>({open:(i={})=>{var b;return((b=f.current)==null?void 0:b.open(i))??Promise.resolve({id:"",action:"dismiss"})},confirm:(i={})=>{var b;return((b=f.current)==null?void 0:b.confirm(i))??Promise.resolve({id:"",action:"dismiss"})}}),[]);return H.default.createElement(tc.Provider,{value:h},R)}function pd(){const R=I.useContext(tc);if(!R)throw new Error("useDialog must be used within <DialogProvider>.");return R}const vd=typeof window<"u"?H.useLayoutEffect:H.useEffect,rc=H.forwardRef(function({children:u,open:f,placement:h,offset:i,shift:b,flip:S,closeOnEscape:y,closeOnOutside:s,onOpen:a,onClose:T,onOpenChange:p,...A},P){const F=H.useRef(null);return H.useImperativeHandle(P,()=>F.current),H.useEffect(()=>{St("ui-popover","Popover")},[]),H.useEffect(()=>{const w=F.current;if(!w)return;const v=()=>a==null?void 0:a(),c=()=>T==null?void 0:T(),C=_=>{const D=_.detail;D&&(p==null||p(D))};return w.addEventListener("open",v),w.addEventListener("close",c),w.addEventListener("open-change",C),()=>{w.removeEventListener("open",v),w.removeEventListener("close",c),w.removeEventListener("open-change",C)}},[a,T,p]),vd(()=>{const w=F.current;if(!w)return;const v=(c,C,_=!0)=>{if(!_)return;const D=w.getAttribute(c);if(C==null){D!=null&&w.removeAttribute(c);return}D!==C&&w.setAttribute(c,C)};typeof f=="boolean"&&v("open",f?"":null),v("placement",h??null,h!==void 0),v("offset",typeof i=="number"&&Number.isFinite(i)?String(i):null,i!==void 0),v("shift",b===void 0?null:String(b),b!==void 0),v("flip",S===void 0?null:String(S),S!==void 0),v("close-on-escape",y===void 0?null:String(y),y!==void 0),v("close-on-outside",s===void 0?null:String(s),s!==void 0)},[f,h,i,b,S,y,s]),H.createElement("ui-popover",{ref:F,...A},u)});rc.displayName="Popover";const md=typeof window<"u"?I.useLayoutEffect:I.useEffect,nc=H.default.forwardRef(function({children:u,selected:f,value:h,orientation:i,activation:b,variant:S,size:y,density:s,tone:a,stretched:T,shape:p,elevation:A,loop:P,bare:F,headless:w,onChange:v,onTabChange:c,...C},_){const D=I.useRef(null);return I.useImperativeHandle(_,()=>D.current),I.useEffect(()=>{const E=D.current;if(!E)return;const B=M=>{const G=M.detail;G&&(v==null||v(G.index),c==null||c(G))};return E.addEventListener("change",B),()=>{E.removeEventListener("change",B)}},[v,c]),md(()=>{const E=D.current;if(!E)return;const B=(G,$)=>{const re=E.getAttribute(G);if($==null){re!=null&&E.removeAttribute(G);return}re!==$&&E.setAttribute(G,$)},M=(G,$)=>{$?B(G,""):B(G,null)};B("selected",f!=null?String(f):null),B("value",h||null),B("orientation",i&&i!=="horizontal"?i:null),B("activation",b&&b!=="auto"?b:null),B("variant",S&&S!=="default"?S:null),B("size",y&&y!=="md"?y:null),B("density",s&&s!=="default"?s:null),B("tone",a&&a!=="brand"?a:null),B("shape",p&&p!=="rounded"?p:null),B("elevation",A&&A!=="low"?A:null),B("loop",P===!1?"false":P===!0?"":null),M("stretched",T),M("bare",F),M("headless",w)},[f,h,i,b,S,y,s,a,T,p,A,P,F,w]),H.default.createElement("ui-tabs",{ref:D,...C},u)});nc.displayName="Tabs";const Pr=typeof window<"u"?I.useLayoutEffect:I.useEffect,ic=H.default.forwardRef(function({children:u,open:f,placement:h,variant:i,size:b,density:S,radius:y,shape:s,elevation:a,tone:T,closeOnSelect:p,typeahead:A,onOpen:P,onClose:F,onChange:w,onSelect:v,onSelectDetail:c,...C},_){const D=I.useRef(null);return H.default.useImperativeHandle(_,()=>D.current),I.useEffect(()=>{const E=D.current;if(!E)return;const B=()=>P==null?void 0:P(),M=()=>F==null?void 0:F(),G=re=>{var Z;const K=(Z=re.detail)==null?void 0:Z.open;typeof K=="boolean"&&(w==null||w(K))},$=re=>{const K=re.detail||{};c==null||c(K),typeof K.index=="number"&&(v==null||v(K.index))};return E.addEventListener("open",B),E.addEventListener("close",M),E.addEventListener("change",G),E.addEventListener("select",$),()=>{E.removeEventListener("open",B),E.removeEventListener("close",M),E.removeEventListener("change",G),E.removeEventListener("select",$)}},[P,F,w,v,c]),Pr(()=>{const E=D.current;!E||f==null||(f?E.setAttribute("open",""):E.removeAttribute("open"))},[f]),Pr(()=>{const E=D.current;E&&(h?E.setAttribute("placement",h):E.removeAttribute("placement"))},[h]),Pr(()=>{const E=D.current;E&&(i&&i!=="default"&&i!=="surface"?E.setAttribute("variant",i):E.removeAttribute("variant"))},[i]),Pr(()=>{const E=D.current;E&&(b&&b!=="md"&&b!=="2"?E.setAttribute("size",b):E.removeAttribute("size"))},[b]),Pr(()=>{const E=D.current;E&&(S&&S!=="default"?E.setAttribute("density",S):E.removeAttribute("density"))},[S]),Pr(()=>{const E=D.current;if(E){if(y==null||y===""||y==="default"){E.removeAttribute("radius");return}E.setAttribute("radius",String(y))}},[y]),Pr(()=>{const E=D.current;E&&(s&&s!=="default"?E.setAttribute("shape",s):E.removeAttribute("shape"))},[s]),Pr(()=>{const E=D.current;E&&(a&&a!=="default"?E.setAttribute("elevation",a):E.removeAttribute("elevation"))},[a]),Pr(()=>{const E=D.current;E&&(T&&T!=="default"&&T!=="brand"?E.setAttribute("tone",T):E.removeAttribute("tone"))},[T]),Pr(()=>{const E=D.current;if(E){if(p==null){E.removeAttribute("close-on-select");return}E.setAttribute("close-on-select",p?"true":"false")}},[p]),Pr(()=>{const E=D.current;if(E){if(A==null){E.removeAttribute("typeahead");return}E.setAttribute("typeahead",A?"true":"false")}},[A]),H.default.createElement("ui-menu",{ref:D,...C},u)});ic.displayName="Menu";const hd=H.default.forwardRef(function({children:u,icon:f,shortcut:h,caption:i,tone:b,role:S="menuitem",checked:y,className:s,...a},T){const p=["item",s].filter(Boolean).join(" "),A=S==="menuitemcheckbox"||S==="menuitemradio"?H.default.createElement("span",{className:"selection-icon","aria-hidden":"true"}):null;return H.default.createElement("div",{...a,ref:T,role:S,tabIndex:a.tabIndex??-1,className:p,"data-tone":b,"aria-checked":S==="menuitemcheckbox"||S==="menuitemradio"?y?"true":"false":void 0},A,f?H.default.createElement("span",{className:"icon","aria-hidden":"true"},f):null,H.default.createElement("span",{className:"label"},H.default.createElement("span",{className:"text"},u),i?H.default.createElement("span",{className:"caption"},i):null),h?H.default.createElement("span",{className:"shortcut"},h):null)}),bd=H.default.forwardRef(function({className:u,...f},h){const i=["separator",u].filter(Boolean).join(" ");return H.default.createElement("div",{...f,ref:h,role:"separator",className:i})}),yd=H.default.forwardRef(function({children:u,className:f,...h},i){const b=["section-label",f].filter(Boolean).join(" ");return H.default.createElement("div",{...h,ref:i,className:b},u)}),gd=typeof window<"u"?I.useLayoutEffect:I.useEffect,oc=H.default.forwardRef(function({children:u,name:f,iconVariant:h,size:i,color:b,secondaryColor:S,variant:y,tone:s,shape:a,spin:T,pulse:p,badge:A,label:P,decorative:F,strokeWidth:w,absoluteStrokeWidth:v,strokeLinecap:c,strokeLinejoin:C,rotate:_,flip:D,rtl:E,...B},M){const G=I.useRef(null);return I.useImperativeHandle(M,()=>G.current),gd(()=>{const $=G.current;$&&(f?$.setAttribute("name",f):$.removeAttribute("name"),h?$.setAttribute("icon-variant",h):$.removeAttribute("icon-variant"),i!=null&&i!==""?$.setAttribute("size",String(i)):$.removeAttribute("size"),b?$.setAttribute("color",b):$.removeAttribute("color"),S?$.setAttribute("secondary-color",S):$.removeAttribute("secondary-color"),y&&y!=="default"?$.setAttribute("variant",y):$.removeAttribute("variant"),s&&s!=="default"?$.setAttribute("tone",s):$.removeAttribute("tone"),a&&a!=="default"?$.setAttribute("shape",a):$.removeAttribute("shape"),T?$.setAttribute("spin",""):$.removeAttribute("spin"),p?$.setAttribute("pulse",""):$.removeAttribute("pulse"),A?$.setAttribute("badge",""):$.removeAttribute("badge"),P?$.setAttribute("label",P):$.removeAttribute("label"),F?$.setAttribute("decorative",""):$.removeAttribute("decorative"),w!=null&&w!==""?$.setAttribute("stroke-width",String(w)):$.removeAttribute("stroke-width"),v?$.setAttribute("absolute-stroke-width",""):$.removeAttribute("absolute-stroke-width"),c?$.setAttribute("stroke-linecap",c):$.removeAttribute("stroke-linecap"),C?$.setAttribute("stroke-linejoin",C):$.removeAttribute("stroke-linejoin"),_!=null&&Number.isFinite(_)?$.setAttribute("rotate",String(_)):$.removeAttribute("rotate"),D?$.setAttribute("flip",D):$.removeAttribute("flip"),E?$.setAttribute("rtl",""):$.removeAttribute("rtl"))},[f,h,i,b,S,y,s,a,T,p,A,P,F,w,v,c,C,_,D,E]),H.default.createElement("ui-icon",{ref:G,...B},u)});oc.displayName="Icon";function Mi(R){if(!R)return{};const u={...R};return u.type!=null&&u.level==null&&(u.level=u.type),delete u.type,u}function Ed(R,u={}){return at.toastAdvanced.show({message:R,level:"info",...Mi(u)})}const Os={show(R,u={}){return at.toastAdvanced.show({message:R,...Mi(u)})},success(R,u={}){return at.toastAdvanced.success(R,Mi(u))},error(R,u={}){return at.toastAdvanced.error(R,Mi(u))},warning(R,u={}){return at.toastAdvanced.warning(R,Mi(u))},info(R,u={}){return at.toastAdvanced.info(R,Mi(u))},loading(R,u={}){return at.toastAdvanced.loading(R,Mi(u))},dismiss(R){return at.toastAdvanced.dismiss(String(R))},clear(){return at.toastAdvanced.clear()},configure(R){return at.toastAdvanced.configure(R)}},lc=I.createContext(null);function Ad({config:R}={}){return I.useEffect(()=>{R&&at.toastAdvanced.configure(R)},[R]),null}function wd({children:R,config:u}){I.useEffect(()=>{u&&at.toastAdvanced.configure(u)},[u]);const f=I.useMemo(()=>Os,[]);return H.default.createElement(lc.Provider,{value:f},R)}function Sd(){const R=I.useContext(lc);return R||Os}const xd=typeof window<"u"?I.useLayoutEffect:I.useEffect;function kd(R){if(!R)return{};const u={...R};return u.type!=null&&u.level==null&&(u.level=u.type),delete u.type,u}const uc=H.default.forwardRef(function({children:u,position:f,maxVisible:h,theme:i,config:b,headless:S,onShow:y,onHide:s,...a},T){const p=I.useRef(y),A=I.useRef(s);return I.useEffect(()=>{p.current=y},[y]),I.useEffect(()=>{A.current=s},[s]),I.useImperativeHandle(T,()=>({show(P,F){let w="";const v=kd(F),c=v.onShow,C=v.onHide;return w=at.toastAdvanced.show({message:P,...v,onShow:()=>{var D;c==null||c(),(D=p.current)==null||D.call(p,{id:w,message:P})},onHide:()=>{var D;C==null||C(),(D=A.current)==null||D.call(A,{id:w})}}).id,w},hide(P){at.toastAdvanced.dismiss(String(P))},clear(){at.toastAdvanced.clear()},configure(P){at.toastAdvanced.configure(P)}}),[]),xd(()=>{const P={...b||{}};f&&(P.position=f),i&&(P.theme=i),typeof h=="number"&&Number.isFinite(h)&&(P.maxVisible=Math.max(1,Math.trunc(h))),Object.keys(P).length>0&&at.toastAdvanced.configure(P)},[f,h,i,b]),u==null&&Object.keys(a).length===0?null:H.default.createElement("div",{...a},u)});uc.displayName="Toast";const Rd=typeof window<"u"?I.useLayoutEffect:I.useEffect;function Td(R){const{children:u,anchorId:f,open:h,placement:i,align:b,offset:S,variant:y,density:s,shape:a,elevation:T,tone:p,closeOnOutside:A,closeOnEscape:P,onOpen:F,onClose:w,onOpenChange:v,onRequestClose:c,...C}=R,_=I.useRef(null);return I.useEffect(()=>{St("ui-floating-toolbar","FloatingToolbar")},[]),I.useEffect(()=>{const D=_.current;if(!D)return;const E=()=>{F==null||F(),v==null||v(!0)},B=G=>{const $=G.detail||{};w==null||w($),v==null||v(!1,$)},M=G=>{const $=G.detail||{};typeof $.reason=="string"&&(c==null||c({reason:$.reason}))};return D.addEventListener("open",E),D.addEventListener("close",B),D.addEventListener("request-close",M),()=>{D.removeEventListener("open",E),D.removeEventListener("close",B),D.removeEventListener("request-close",M)}},[F,w,v,c]),Rd(()=>{var M,G,$;const D=_.current;if(!D)return;const E=(re,K)=>{const Z=D.getAttribute(re);if(K==null){Z!=null&&D.removeAttribute(re);return}Z!==K&&D.setAttribute(re,K)},B=(re,K,Z=void 0)=>{if(K==null){Z!==void 0&&E(re,Z?null:"false");return}E(re,K?"":"false")};if(E("anchor-id",f??null),E("placement",i&&i!=="auto"?i:null),E("align",b&&b!=="center"?b:null),E("offset",typeof S=="number"&&Number.isFinite(S)?String(S):null),E("variant",y&&y!=="default"?y:null),E("density",s&&s!=="default"?s:null),E("shape",a&&a!=="default"?a:null),E("elevation",T&&T!=="default"?T:null),E("tone",p&&p!=="default"&&p!=="brand"?p:null),B("close-on-outside",A,!0),B("close-on-escape",P,!0),h&&f){(M=D.showForAnchorId)==null||M.call(D,f);return}if(h){(G=D.openToolbar)==null||G.call(D);return}if(h===!1){($=D.closeToolbar)==null||$.call(D,"programmatic");return}D.removeAttribute("open")},[h,f,i,b,S,y,s,a,T,p,A,P]),H.default.createElement("ui-floating-toolbar",{ref:_,...C},u)}const Ld=typeof window<"u"?H.useLayoutEffect:H.useEffect,sc=H.forwardRef(function({children:u,orientation:f,variant:h,tone:i,state:b,elevation:S,size:y,radius:s,density:a,wrap:T,loop:p,disabled:A,activeIndex:P,ariaLabel:F,onNavigate:w,...v},c){const C=H.useRef(null);return H.useImperativeHandle(c,()=>C.current),H.useEffect(()=>{St("ui-block-controls","BlockControls")},[]),H.useEffect(()=>{const _=C.current;if(!_||!w)return;const D=E=>w(E.detail);return _.addEventListener("ui-navigate",D),()=>_.removeEventListener("ui-navigate",D)},[w]),Ld(()=>{const _=C.current;_&&(f?_.setAttribute("orientation",f):_.removeAttribute("orientation"),h&&h!=="surface"&&h!=="floating"?_.setAttribute("variant",h):_.removeAttribute("variant"),i&&i!=="neutral"?_.setAttribute("tone",i):_.removeAttribute("tone"),b&&b!=="idle"?_.setAttribute("state",b):_.removeAttribute("state"),S&&S!=="low"&&S!=="md"?_.setAttribute("elevation",S):_.removeAttribute("elevation"),y&&y!=="md"&&y!=="2"?_.setAttribute("size",y):_.removeAttribute("size"),s!=null?_.setAttribute("radius",String(s)):_.removeAttribute("radius"),a?_.setAttribute("density",a):_.removeAttribute("density"),T==null?_.removeAttribute("wrap"):T?_.setAttribute("wrap",""):_.removeAttribute("wrap"),p==null?(_.removeAttribute("loop"),_.removeAttribute("no-loop")):p?(_.setAttribute("loop",""),_.removeAttribute("no-loop")):(_.removeAttribute("loop"),_.setAttribute("no-loop","")),A==null?_.removeAttribute("disabled"):A?_.setAttribute("disabled",""):_.removeAttribute("disabled"),typeof P=="number"&&Number.isFinite(P)?_.setAttribute("active-index",String(P)):_.removeAttribute("active-index"),F?_.setAttribute("aria-label",F):_.removeAttribute("aria-label"))},[f,h,i,b,S,y,s,a,T,p,A,P,F]),H.createElement("ui-block-controls",{ref:C,...v},u)});sc.displayName="BlockControls";const Id=typeof window<"u"?I.useLayoutEffect:I.useEffect,ac=H.default.forwardRef(function({placeholder:u,emptyText:f,children:h,onSelect:i,onQueryChange:b,...S},y){const s=I.useRef(null);return I.useImperativeHandle(y,()=>s.current),I.useEffect(()=>{St("ui-command","Command")},[]),I.useEffect(()=>{const a=s.current;if(!a)return;const T=A=>{const P=A.detail;P&&(i==null||i(P))},p=A=>{const P=A.detail;typeof(P==null?void 0:P.value)=="string"&&(b==null||b(P.value))};return a.addEventListener("select",T),a.addEventListener("query-change",p),()=>{a.removeEventListener("select",T),a.removeEventListener("query-change",p)}},[b,i]),Id(()=>{const a=s.current;if(!a)return;const T=(p,A)=>{const P=a.getAttribute(p);if(A==null){P!=null&&a.removeAttribute(p);return}P!==A&&a.setAttribute(p,A)};T("placeholder",u??null),T("empty-text",f??null)},[f,u]),H.default.createElement("ui-command",{ref:s,...S},h)});ac.displayName="Command";const Cd=typeof window<"u"?H.useLayoutEffect:H.useEffect,cc=H.forwardRef(function({children:u,open:f,query:h,placeholder:i,emptyText:b,headless:S,onOpen:y,onClose:s,onOpenChange:a,onSelect:T,onQueryChange:p,...A},P){const F=H.useRef(null);return H.useImperativeHandle(P,()=>F.current),H.useEffect(()=>{St("ui-command-palette","CommandPalette")},[]),H.useEffect(()=>{const w=F.current;if(!w)return;const v=D=>{const E=D.detail;E&&(T==null||T(E))},c=D=>{const E=D.detail;E&&(p==null||p(E))},C=()=>{y==null||y(),a==null||a({open:!0})},_=()=>{s==null||s(),a==null||a({open:!1})};return w.addEventListener("select",v),w.addEventListener("query-change",c),w.addEventListener("open",C),w.addEventListener("close",_),()=>{w.removeEventListener("select",v),w.removeEventListener("query-change",c),w.removeEventListener("open",C),w.removeEventListener("close",_)}},[s,y,a,p,T]),Cd(()=>{const w=F.current;if(!w)return;const v=(c,C,_=!0)=>{if(!_)return;const D=w.getAttribute(c);if(C==null){D!=null&&w.removeAttribute(c);return}D!==C&&w.setAttribute(c,C)};typeof f=="boolean"&&v("open",f?"":null),v("placeholder",i??null,i!==void 0),v("empty-text",b??null,b!==void 0),typeof h=="string"&&w.query!==h&&(w.query=h),typeof S=="boolean"&&v("headless",S?"":null)},[f,i,b,h,S]),H.createElement("ui-command-palette",{ref:F,...A},u)});cc.displayName="CommandPalette";function Pd(R){const{items:u,anchorId:f,anchorEl:h,anchorPoint:i,open:b,disabled:S,state:y,stateText:s,variant:a,size:T,radius:p,density:A,shape:P,elevation:F,tone:w,closeOnSelect:v,closeOnEscape:c,typeahead:C,children:_,onOpenDetail:D,onCloseDetail:E,onOpen:B,onClose:M,onChange:G,onSelect:$,...re}=R,K=I.useRef(null),Z=I.useRef(""),[U,le]=I.useState(null),me=W=>{queueMicrotask(()=>{var te;le(((te=W.getPortalContentHost)==null?void 0:te.call(W))||null)}),requestAnimationFrame(()=>{var te;le(((te=W.getPortalContentHost)==null?void 0:te.call(W))||null)}),window.setTimeout(()=>{var te;le(((te=W.getPortalContentHost)==null?void 0:te.call(W))||null)},0)};I.useEffect(()=>{const W=K.current;if(!W)return;const te=be=>{var ge;const q=be.detail;le(((ge=W.getPortalContentHost)==null?void 0:ge.call(W))||null),B==null||B(),q&&(D==null||D(q))},ae=be=>{const q=be.detail;le(null),M==null||M(),q&&(E==null||E(q))},Ae=be=>{var ge;const q=(ge=be.detail)==null?void 0:ge.open;typeof q=="boolean"&&(G==null||G(q))},ke=be=>{const q=be.detail;$==null||$(q)};return W.addEventListener("open",te),W.addEventListener("close",ae),W.addEventListener("change",Ae),W.addEventListener("select",ke),()=>{W.removeEventListener("open",te),W.removeEventListener("close",ae),W.removeEventListener("change",Ae),W.removeEventListener("select",ke)}},[B,M,D,E,G,$]),I.useEffect(()=>{var te,ae,Ae,ke,be,q;const W=K.current;if(!(!W||b==null)){if(!b){Z.current="closed",le(null),W.close?W.close():W.open=!1;return}if(i&&W.openAt){const ge=`point:${i.x}:${i.y}`;(Z.current!==ge||!W.open)&&(W.openAt(i),Z.current=ge),le(((te=W.getPortalContentHost)==null?void 0:te.call(W))||null),me(W);return}if(h){const ge="anchor:element";if(W.openForAnchor){(Z.current!==ge||!W.open)&&(W.openForAnchor(h),Z.current=ge),le(((ae=W.getPortalContentHost)==null?void 0:ae.call(W))||null),me(W);return}if(W.openFor){(Z.current!==ge||!W.open)&&(W.openFor(h),Z.current=ge),le(((Ae=W.getPortalContentHost)==null?void 0:Ae.call(W))||null),me(W);return}}if(f){const ge=`anchor:${f}`;if(W.openForAnchorId){(Z.current!==ge||!W.open)&&(W.openForAnchorId(f),Z.current=ge),le(((ke=W.getPortalContentHost)==null?void 0:ke.call(W))||null),me(W);return}if(W.showForAnchorId){(Z.current!==ge||!W.open)&&(W.showForAnchorId(f),Z.current=ge),le(((be=W.getPortalContentHost)==null?void 0:be.call(W))||null),me(W);return}}W.open||(W.open=!0),Z.current="open",le(((q=W.getPortalContentHost)==null?void 0:q.call(W))||null),me(W)}},[b,f,h,i]),I.useEffect(()=>{var te;const W=K.current;!U||!W||!b||(te=W.refreshLayout)==null||te.call(W)},[_,u,b,U]);const Q=W=>W?W.map((te,ae)=>{if(te.separator)return H.default.createElement("div",{key:ae,className:"separator",role:"separator"});let Ae=null;te.icon&&(Ae=H.default.createElement("span",{className:"icon"},te.icon));let ke=null;return te.submenu&&(ke=H.default.createElement("div",{className:"submenu"},Q(te.submenu))),H.default.createElement("div",{key:ae,className:"menuitem",role:"menuitem",tabIndex:te.disabled?-1:0,"aria-disabled":te.disabled?"true":void 0,"data-value":te.value,"data-tone":te.tone&&te.tone!=="default"?te.tone:void 0,onClick:te.disabled?void 0:te.onClick},Ae,H.default.createElement("span",{className:"label"},H.default.createElement("span",{className:"text"},te.label),te.description?H.default.createElement("span",{className:"caption"},te.description):null),te.shortcut?H.default.createElement("span",{className:"shortcut"},te.shortcut):null,te.submenu&&H.default.createElement("span",{className:"submenu-arrow"},"▶"),ke)}):null,oe=H.default.Children.count(_)>0,se=!!b&&!i&&!f,ie=oe?_:Q(u);return H.default.createElement(H.default.Fragment,null,H.default.createElement("ui-context-menu",{ref:K,...re,...se?{open:""}:{},...a&&a!=="default"&&a!=="surface"?{variant:a}:{},...T&&T!=="md"&&T!=="2"?{size:T}:{},...p!=null&&p!==""&&p!=="md"?{radius:String(p)}:{},...!T&&A&&A!=="default"?{density:A}:{},...!p&&P&&P!=="default"?{shape:P}:{},...F&&F!=="default"?{elevation:F}:{},...w&&w!=="default"&&w!=="brand"?{tone:w}:{},...S?{disabled:""}:{},...y&&y!=="idle"?{state:y}:{},...s?{"state-text":s}:{},...v==null?{}:{"close-on-select":v?"true":"false"},...c==null?{}:{"close-on-escape":c?"true":"false"},...C==null?{}:{typeahead:C?"true":"false"}}),U?df.createPortal(H.default.createElement("div",{slot:"menu"},ie),U):null)}const Fd=typeof window<"u"?I.useLayoutEffect:I.useEffect;function Dd(R){const{children:u,anchorId:f,open:h,placement:i,offset:b,strategy:S,arrow:y,variant:s,tone:a,radius:T,size:p,closeOnOutside:A,closeOnEscape:P,onOpen:F,onClose:w,onOpenChange:v,...c}=R,C=I.useRef(null);return I.useEffect(()=>{St("ui-selection-popup","SelectionPopup")},[]),I.useEffect(()=>{const _=C.current;if(!_)return;const D=()=>{F==null||F(),v==null||v(!0)},E=()=>{w==null||w(),v==null||v(!1)};return _.addEventListener("open",D),_.addEventListener("close",E),()=>{_.removeEventListener("open",D),_.removeEventListener("close",E)}},[F,w,v]),Fd(()=>{var B,M;const _=C.current;if(!_)return;const D=(G,$)=>{const re=_.getAttribute(G);if($==null){re!=null&&_.removeAttribute(G);return}re!==$&&_.setAttribute(G,$)},E=(G,$,re=void 0)=>{if($==null){re!==void 0&&D(G,re?null:"false");return}$?D(G,""):D(G,"false")};D("anchor-id",f??null),D("placement",i&&i!=="top"?i:null),D("offset",typeof b=="number"&&Number.isFinite(b)?String(b):null),D("strategy",S&&S!=="fixed"?S:null),D("variant",s&&s!=="default"?s:null),D("tone",a&&a!=="brand"?a:null),D("radius",T?String(T):null),D("size",p&&p!=="md"?p:null),E("arrow",y),E("close-on-outside",A,!0),E("close-on-escape",P,!0),h&&f?(B=_.openFor)==null||B.call(_,f):h?_.setAttribute("open",""):h===!1?(M=_.close)==null||M.call(_):_.removeAttribute("open")},[h,f,i,b,S,y,s,a,T,p,A,P]),H.default.createElement("ui-selection-popup",{ref:C,...c},u)}const Md=typeof window<"u"?H.useLayoutEffect:H.useEffect,fc=H.forwardRef(function({children:u,open:f,position:h,size:i,title:b,description:S,headless:y,dismissible:s,onOpen:a,onClose:T,onOpenChange:p,...A},P){const F=H.useRef(null);return H.useImperativeHandle(P,()=>F.current),H.useEffect(()=>{St("ui-plugin-panel","PluginPanel")},[]),H.useEffect(()=>{const w=F.current;if(!w)return;const v=()=>a==null?void 0:a(),c=()=>T==null?void 0:T(),C=_=>{const D=_.detail;D&&(p==null||p(D))};return w.addEventListener("open",v),w.addEventListener("close",c),w.addEventListener("open-change",C),()=>{w.removeEventListener("open",v),w.removeEventListener("close",c),w.removeEventListener("open-change",C)}},[T,a,p]),Md(()=>{const w=F.current;if(!w)return;const v=(c,C,_=!0)=>{if(!_)return;const D=w.getAttribute(c);if(C==null){D!=null&&w.removeAttribute(c);return}D!==C&&w.setAttribute(c,C)};typeof f=="boolean"&&v("open",f?"":null),v("position",h??null,h!==void 0),v("size",i&&i!=="md"?i:null,i!==void 0),v("title",b??null,b!==void 0),v("description",S??null,S!==void 0),typeof y=="boolean"&&v("headless",y?"":null),typeof s=="boolean"&&v("dismissible",s?"":null)},[f,h,i,b,S,y,s]),H.createElement("ui-plugin-panel",{ref:F,...A},u)});fc.displayName="PluginPanel";const Hd=typeof window<"u"?I.useLayoutEffect:I.useEffect,dc=H.default.forwardRef(function(u,f){const{children:h,onSubmit:i,onInvalid:b,onValidate:S,onAutosave:y,onDirtyChange:s,novalidate:a,autosave:T,autosaveDelay:p,guardUnsaved:A,heading:P,description:F,state:w,stateText:v,loadingText:c,variant:C,tone:_,density:D,shape:E,elevation:B,gap:M,headless:G,loading:$,disabled:re,...K}=u,Z=I.useRef(null);return I.useImperativeHandle(f,()=>Z.current),I.useEffect(()=>{const U=Z.current;if(!U)return;const le=ie=>{const W=ie.detail||{};i==null||i(W.values||{})},me=ie=>{const W=ie.detail||{};b==null||b(W.errors||{},W.values||{})},Q=ie=>{const W=ie.detail||{};S==null||S({valid:!!W.valid,errors:W.errors||{}})},oe=ie=>{const W=ie.detail||{};y==null||y(W.values||{})},se=ie=>{const W=ie.detail||{};s==null||s(!!W.dirty,W.values||{})};return U.addEventListener("submit",le),U.addEventListener("invalid",me),U.addEventListener("validate",Q),U.addEventListener("autosave",oe),U.addEventListener("dirty-change",se),()=>{U.removeEventListener("submit",le),U.removeEventListener("invalid",me),U.removeEventListener("validate",Q),U.removeEventListener("autosave",oe),U.removeEventListener("dirty-change",se)}},[i,b,S,y,s]),Hd(()=>{const U=Z.current;U&&(a?U.setAttribute("novalidate",""):U.removeAttribute("novalidate"),T?U.setAttribute("autosave",""):U.removeAttribute("autosave"),typeof p=="number"&&Number.isFinite(p)?U.setAttribute("autosave-delay",String(p)):U.removeAttribute("autosave-delay"),A?U.setAttribute("guard-unsaved",""):U.removeAttribute("guard-unsaved"),P!=null&&P!==""?U.setAttribute("heading",P):U.removeAttribute("heading"),F!=null&&F!==""?U.setAttribute("description",F):U.removeAttribute("description"),w&&w!=="default"?U.setAttribute("state",w):U.removeAttribute("state"),v!=null&&v!==""?U.setAttribute("state-text",v):U.removeAttribute("state-text"),c!=null&&c!==""?U.setAttribute("loading-text",c):U.removeAttribute("loading-text"),C&&C!=="default"?U.setAttribute("variant",C):U.removeAttribute("variant"),_&&_!=="default"?U.setAttribute("tone",_):U.removeAttribute("tone"),D&&D!=="default"?U.setAttribute("density",D):U.removeAttribute("density"),E&&E!=="default"?U.setAttribute("shape",E):U.removeAttribute("shape"),B&&B!=="default"?U.setAttribute("elevation",B):U.removeAttribute("elevation"),M?U.setAttribute("gap",M):U.removeAttribute("gap"),G?U.setAttribute("headless",""):U.removeAttribute("headless"),$?U.setAttribute("loading",""):U.removeAttribute("loading"),re?U.setAttribute("disabled",""):U.removeAttribute("disabled"))},[a,T,p,A,P,F,w,v,c,C,_,D,E,B,M,G,$,re]),H.default.createElement("ui-form",{ref:Z,...K},h)});dc.displayName="Form";function _d(){const R=I.useRef(null),u=I.useCallback(async()=>{const y=R.current;return y?await y.submit():!1},[]),f=I.useCallback(async()=>{const y=R.current;return y?await y.validate():{valid:!0,errors:{}}},[]),h=I.useCallback(()=>{var s;const y=R.current;return y?(s=y.getValues)==null?void 0:s.call(y):{}},[]),i=I.useCallback(y=>{var a;const s=R.current;return(a=s==null?void 0:s.reset)==null?void 0:a.call(s,y)},[]),b=I.useCallback(()=>{var s;const y=R.current;return y?typeof y.isDirty=="function"?!!y.isDirty():((s=y.hasAttribute)==null?void 0:s.call(y,"dirty"))||!1:!1},[]),S=I.useCallback(y=>{var a;const s=R.current;return(a=s==null?void 0:s.markClean)==null?void 0:a.call(s,y)},[]);return{ref:R,submit:u,validate:f,getValues:h,reset:i,isDirty:b,markClean:S}}function Vs(R,u){if(R){if(typeof R=="function"){R(u);return}R.current=u}}function Bd(R){const{placement:u="bottom",offset:f=8,open:h,onOpen:i,onClose:b,role:S="menu"}=R||{},y=I.useRef(null),s=I.useRef(null),a=I.useRef(null),T=I.useRef(`floating-${Math.random().toString(36).slice(2,9)}`),[p,A]=I.useState({top:0,left:0,placement:u}),P=typeof h<"u",[F,w]=I.useState(!!h),v=P?!!h:F,c=I.useCallback(()=>{const Q=y.current,oe=s.current;if(!Q||!oe)return;const se=Gn.computePosition(Q,oe,{placement:u,offset:f});A({top:Math.round(se.top),left:Math.round(se.left),placement:se.placement,arrow:se.x||se.y?{x:se.x,y:se.y}:void 0})},[u,f]),C=I.useCallback(Q=>{P||w(Q),Q?i==null||i():b==null||b()},[P,i,b]),_=I.useCallback(()=>C(!v),[v,C]),D=I.useCallback(()=>C(!0),[C]),E=I.useCallback(()=>C(!1),[C]);I.useEffect(()=>{if(!v)return;const Q=y.current,oe=s.current;if(!Q||!oe)return;c();const se=()=>{a.current&&cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>c())},ie=()=>{a.current&&cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>c())};window.addEventListener("scroll",se,!0),window.addEventListener("resize",ie);let W=null,te=null;try{typeof ResizeObserver<"u"&&(W=new ResizeObserver(ie),te=new ResizeObserver(ie),W.observe(Q),te.observe(oe))}catch{W=te=null}return()=>{window.removeEventListener("scroll",se,!0),window.removeEventListener("resize",ie),W==null||W.disconnect(),te==null||te.disconnect(),a.current&&cancelAnimationFrame(a.current),a.current=null}},[v,c]);const B=I.useCallback(Q=>{y.current=Q},[]),M=I.useCallback(Q=>{s.current=Q},[]),G=()=>s.current?Array.from(s.current.querySelectorAll('[role="menuitem"], .item, [data-menu-item]')).filter(Boolean):[],$=Q=>{const oe=G();if(!oe.length)return;const se=Math.max(0,Math.min(oe.length-1,Q));try{oe[se].focus()}catch{}},re=()=>$(0),K=()=>{const Q=G();Q.length&&$(Q.length-1)},Z=()=>{const Q=G(),oe=Q.findIndex(se=>se===document.activeElement);$(oe<0?0:(oe+1)%Q.length)},U=()=>{const Q=G(),oe=Q.findIndex(se=>se===document.activeElement);$(oe<=0?Q.length-1:oe-1)};return{referenceRef:B,floatingRef:M,coords:p,update:c,open:v,setOpen:C,toggle:_,openPopup:D,closePopup:E,getReferenceProps:(Q={})=>{const{onClick:oe,onKeyDown:se,ref:ie,...W}=Q;return{...W,ref:te=>{B(te),Vs(ie,te)},"aria-haspopup":S,"aria-controls":T.current,"aria-expanded":v?"true":"false",onClick:te=>{oe==null||oe(te),!te.defaultPrevented&&_()},onKeyDown:te=>{se==null||se(te),!te.defaultPrevented&&te.key==="ArrowDown"&&(te.preventDefault(),D(),setTimeout(()=>re(),0))}}},getFloatingProps:(Q={})=>{const{onKeyDown:oe,style:se,ref:ie,...W}=Q;return{...W,id:T.current,ref:te=>{M(te),Vs(ie,te)},role:S,tabIndex:-1,style:{...se||{},position:"absolute",top:`${p.top}px`,left:`${p.left}px`},hidden:!v,onKeyDown:te=>{oe==null||oe(te),!te.defaultPrevented&&(te.key==="Escape"?(te.preventDefault(),E()):te.key==="ArrowDown"?(te.preventDefault(),Z()):te.key==="ArrowUp"?(te.preventDefault(),U()):te.key==="Home"?(te.preventDefault(),re()):te.key==="End"&&(te.preventDefault(),K()))}}},focusFirstItem:re,focusLastItem:K,focusNext:Z,focusPrev:U}}function Be(R){if(R!=null){if(typeof R=="object")try{return JSON.stringify(R)}catch{return}return String(R)}}function Nd(R){const{children:u,className:f,variant:h,tone:i,state:b,elevation:S,radius:y,interactive:s,disabled:a,headless:T,p,px:A,py:P,pt:F,pr:w,pb:v,pl:c,m:C,mx:_,my:D,mt:E,mr:B,mb:M,ml:G,width:$,w:re,minWidth:K,minW:Z,maxWidth:U,maxW:le,height:me,h:Q,minHeight:oe,minH:se,maxHeight:ie,maxH:W,display:te,position:ae,inset:Ae,top:ke,right:be,bottom:q,left:ge,justify:Re,alignSelf:Ee,alignContent:Te,gap:Ie,rowGap:Ne,columnGap:Pe,flexBasis:Ce,flexGrow:Ve,flexShrink:ct,gridArea:xt,gridColumn:ot,gridColumnStart:ft,gridColumnEnd:Xe,gridRow:We,gridRowStart:yt,gridRowEnd:lt,align:rt,bg:hr,color:br,opacity:yr,overflow:qe,overflowX:gr,overflowY:Fr,zIndex:Dr,...Er}=R,er={className:f,...Er,p:Be(p),px:Be(A),py:Be(P),pt:Be(F),pr:Be(w),pb:Be(v),pl:Be(c),m:Be(C),mx:Be(_),my:Be(D),mt:Be(E),mr:Be(B),mb:Be(M),ml:Be(G),width:Be($),w:Be(re),minwidth:Be(K??Z),maxwidth:Be(U??le),height:Be(me),h:Be(Q),minheight:Be(oe??se),maxheight:Be(ie??W),display:Be(te),position:Be(ae),inset:Be(Ae),top:Be(ke),right:Be(be),bottom:Be(q),left:Be(ge),justify:Be(Re),flexbasis:Be(Ce),flexgrow:Be(Ve),flexshrink:Be(ct),alignself:Be(Ee),aligncontent:Be(Te),gap:Be(Ie),rowgap:Be(Ne),columngap:Be(Pe),gridarea:Be(xt),gridcolumn:Be(ot),gridcolumnstart:Be(ft),gridcolumnend:Be(Xe),gridrow:Be(We),gridrowstart:Be(yt),gridrowend:Be(lt),align:Be(rt),bg:Be(hr),color:Be(br),opacity:Be(yr),overflow:Be(qe),overflowx:Be(gr),overflowy:Be(Fr),zindex:Be(Dr),variant:h&&h!=="default"?h:void 0,tone:i&&i!=="default"?i:void 0,state:b&&b!=="idle"?b:void 0,elevation:S&&S!=="default"?S:void 0,radius:y&&y!=="default"?y:void 0,interactive:s?"":void 0,disabled:a?"":void 0,headless:T?"":void 0};return H.default.createElement("ui-box",er,u)}function Wn(R){if(R!=null){if(typeof R=="object")try{return JSON.stringify(R)}catch{return}return String(R)}}function Ud(R){const{children:u,className:f,direction:h,align:i,justify:b,wrap:S,gap:y,rowGap:s,columnGap:a,display:T,headless:p,...A}=R,P={className:f,...A,direction:Wn(h),align:Wn(i),justify:Wn(b),wrap:Wn(S),gap:Wn(y),rowgap:Wn(s),columngap:Wn(a),display:Wn(T),headless:p?"":void 0};return H.default.createElement("ui-flex",P,u)}function Mt(R){if(R!=null){if(typeof R=="object")try{return JSON.stringify(R)}catch{return}return String(R)}}function Od(R){const{children:u,className:f,columns:h,rows:i,gap:b,rowGap:S,columnGap:y,autoFlow:s,autoRows:a,autoColumns:T,align:p,justify:A,place:P,alignContent:F,justifyContent:w,placeContent:v,display:c,headless:C,..._}=R,D={className:f,..._,columns:Mt(h),rows:Mt(i),gap:Mt(b),rowgap:Mt(S),columngap:Mt(y),autoflow:Mt(s),autorows:Mt(a),autocolumns:Mt(T),align:Mt(p),justify:Mt(A),place:Mt(P),aligncontent:Mt(F),justifycontent:Mt(w),placecontent:Mt(v),display:Mt(c),headless:C?"":void 0};return H.default.createElement("ui-grid",D,u)}const jd=typeof window<"u"?I.useLayoutEffect:I.useEffect,pc=H.default.forwardRef(function({size:u="medium",variant:f="default",tone:h="neutral",radius:i="md",density:b="comfortable",inset:S,children:y,...s},a){const T=I.useRef(null);return H.default.useImperativeHandle(a,()=>T.current),jd(()=>{const p=T.current;if(!p)return;const A=(F,w)=>{const v=p.getAttribute(F);if(w==null){v!=null&&p.removeAttribute(F);return}v!==w&&p.setAttribute(F,w)},P=(F,w)=>{w?p.hasAttribute(F)||p.setAttribute(F,""):p.hasAttribute(F)&&p.removeAttribute(F)};A("size",u!=="medium"?u:null),A("variant",f!=="default"?f:null),A("tone",h!=="neutral"?h:null),A("radius",i!=="md"?i:null),A("density",b!=="comfortable"?b:null),P("inset",S)},[u,f,h,i,b,S]),H.default.createElement("ui-section",{ref:T,...s},y)});pc.displayName="Section";function $d(R){const{children:u,size:f="md",...h}=R;return H.default.createElement("ui-container",{size:f,...h},u)}var Ci={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-dom-server-legacy.browser.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Qs;function zd(){if(Qs)return Ci;Qs=1;var R=H.default;function u(o){for(var x="https://reactjs.org/docs/error-decoder.html?invariant="+o,j=1;j<arguments.length;j++)x+="&args[]="+encodeURIComponent(arguments[j]);return"Minified React error #"+o+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var f=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,i={},b={};function S(o){return f.call(b,o)?!0:f.call(i,o)?!1:h.test(o)?b[o]=!0:(i[o]=!0,!1)}function y(o,x,j,Y,fe,ue,he){this.acceptsBooleans=x===2||x===3||x===4,this.attributeName=Y,this.attributeNamespace=fe,this.mustUseProperty=j,this.propertyName=o,this.type=x,this.sanitizeURL=ue,this.removeEmptyString=he}var s={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){s[o]=new y(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var x=o[0];s[x]=new y(x,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){s[o]=new y(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){s[o]=new y(o,2,!1,o,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(o){s[o]=new y(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){s[o]=new y(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){s[o]=new y(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){s[o]=new y(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){s[o]=new y(o,5,!1,o.toLowerCase(),null,!1,!1)});var a=/[\-:]([a-z])/g;function T(o){return o[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(o){var x=o.replace(a,T);s[x]=new y(x,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var x=o.replace(a,T);s[x]=new y(x,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var x=o.replace(a,T);s[x]=new y(x,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){s[o]=new y(o,1,!1,o.toLowerCase(),null,!1,!1)}),s.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){s[o]=new y(o,1,!1,o.toLowerCase(),null,!0,!0)});var p={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},A=["Webkit","ms","Moz","O"];Object.keys(p).forEach(function(o){A.forEach(function(x){x=x+o.charAt(0).toUpperCase()+o.substring(1),p[x]=p[o]})});var P=/["'&<>]/;function F(o){if(typeof o=="boolean"||typeof o=="number")return""+o;o=""+o;var x=P.exec(o);if(x){var j="",Y,fe=0;for(Y=x.index;Y<o.length;Y++){switch(o.charCodeAt(Y)){case 34:x=""";break;case 38:x="&";break;case 39:x="'";break;case 60:x="<";break;case 62:x=">";break;default:continue}fe!==Y&&(j+=o.substring(fe,Y)),fe=Y+1,j+=x}o=fe!==Y?j+o.substring(fe,Y):j}return o}var w=/([A-Z])/g,v=/^ms-/,c=Array.isArray;function C(o,x){return{insertionMode:o,selectedValue:x}}function _(o,x,j){switch(x){case"select":return C(1,j.value!=null?j.value:j.defaultValue);case"svg":return C(2,null);case"math":return C(3,null);case"foreignObject":return C(1,null);case"table":return C(4,null);case"thead":case"tbody":case"tfoot":return C(5,null);case"colgroup":return C(7,null);case"tr":return C(6,null)}return 4<=o.insertionMode||o.insertionMode===0?C(1,null):o}var D=new Map;function E(o,x,j){if(typeof j!="object")throw Error(u(62));x=!0;for(var Y in j)if(f.call(j,Y)){var fe=j[Y];if(fe!=null&&typeof fe!="boolean"&&fe!==""){if(Y.indexOf("--")===0){var ue=F(Y);fe=F((""+fe).trim())}else{ue=Y;var he=D.get(ue);he!==void 0||(he=F(ue.replace(w,"-$1").toLowerCase().replace(v,"-ms-")),D.set(ue,he)),ue=he,fe=typeof fe=="number"?fe===0||f.call(p,Y)?""+fe:fe+"px":F((""+fe).trim())}x?(x=!1,o.push(' style="',ue,":",fe)):o.push(";",ue,":",fe)}}x||o.push('"')}function B(o,x,j,Y){switch(j){case"style":E(o,x,Y);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<j.length)||j[0]!=="o"&&j[0]!=="O"||j[1]!=="n"&&j[1]!=="N"){if(x=s.hasOwnProperty(j)?s[j]:null,x!==null){switch(typeof Y){case"function":case"symbol":return;case"boolean":if(!x.acceptsBooleans)return}switch(j=x.attributeName,x.type){case 3:Y&&o.push(" ",j,'=""');break;case 4:Y===!0?o.push(" ",j,'=""'):Y!==!1&&o.push(" ",j,'="',F(Y),'"');break;case 5:isNaN(Y)||o.push(" ",j,'="',F(Y),'"');break;case 6:!isNaN(Y)&&1<=Y&&o.push(" ",j,'="',F(Y),'"');break;default:x.sanitizeURL&&(Y=""+Y),o.push(" ",j,'="',F(Y),'"')}}else if(S(j)){switch(typeof Y){case"function":case"symbol":return;case"boolean":if(x=j.toLowerCase().slice(0,5),x!=="data-"&&x!=="aria-")return}o.push(" ",j,'="',F(Y),'"')}}}function M(o,x,j){if(x!=null){if(j!=null)throw Error(u(60));if(typeof x!="object"||!("__html"in x))throw Error(u(61));x=x.__html,x!=null&&o.push(""+x)}}function G(o){var x="";return R.Children.forEach(o,function(j){j!=null&&(x+=j)}),x}function $(o,x,j,Y){o.push(Z(j));var fe=j=null,ue;for(ue in x)if(f.call(x,ue)){var he=x[ue];if(he!=null)switch(ue){case"children":j=he;break;case"dangerouslySetInnerHTML":fe=he;break;default:B(o,Y,ue,he)}}return o.push(">"),M(o,fe,j),typeof j=="string"?(o.push(F(j)),null):j}var re=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,K=new Map;function Z(o){var x=K.get(o);if(x===void 0){if(!re.test(o))throw Error(u(65,o));x="<"+o,K.set(o,x)}return x}function U(o,x,j,Y,fe){switch(x){case"select":o.push(Z("select"));var ue=null,he=null;for(Me in j)if(f.call(j,Me)){var Se=j[Me];if(Se!=null)switch(Me){case"children":ue=Se;break;case"dangerouslySetInnerHTML":he=Se;break;case"defaultValue":case"value":break;default:B(o,Y,Me,Se)}}return o.push(">"),M(o,he,ue),ue;case"option":he=fe.selectedValue,o.push(Z("option"));var Fe=Se=null,He=null,Me=null;for(ue in j)if(f.call(j,ue)){var $e=j[ue];if($e!=null)switch(ue){case"children":Se=$e;break;case"selected":He=$e;break;case"dangerouslySetInnerHTML":Me=$e;break;case"value":Fe=$e;default:B(o,Y,ue,$e)}}if(he!=null)if(j=Fe!==null?""+Fe:G(Se),c(he)){for(Y=0;Y<he.length;Y++)if(""+he[Y]===j){o.push(' selected=""');break}}else""+he===j&&o.push(' selected=""');else He&&o.push(' selected=""');return o.push(">"),M(o,Me,Se),Se;case"textarea":o.push(Z("textarea")),Me=he=ue=null;for(Se in j)if(f.call(j,Se)&&(Fe=j[Se],Fe!=null))switch(Se){case"children":Me=Fe;break;case"value":ue=Fe;break;case"defaultValue":he=Fe;break;case"dangerouslySetInnerHTML":throw Error(u(91));default:B(o,Y,Se,Fe)}if(ue===null&&he!==null&&(ue=he),o.push(">"),Me!=null){if(ue!=null)throw Error(u(92));if(c(Me)&&1<Me.length)throw Error(u(93));ue=""+Me}return typeof ue=="string"&&ue[0]===`
|
|
10
|
+
`&&o.push(`
|
|
11
|
+
`),ue!==null&&o.push(F(""+ue)),null;case"input":o.push(Z("input")),Fe=Me=Se=ue=null;for(he in j)if(f.call(j,he)&&(He=j[he],He!=null))switch(he){case"children":case"dangerouslySetInnerHTML":throw Error(u(399,"input"));case"defaultChecked":Fe=He;break;case"defaultValue":Se=He;break;case"checked":Me=He;break;case"value":ue=He;break;default:B(o,Y,he,He)}return Me!==null?B(o,Y,"checked",Me):Fe!==null&&B(o,Y,"checked",Fe),ue!==null?B(o,Y,"value",ue):Se!==null&&B(o,Y,"value",Se),o.push("/>"),null;case"menuitem":o.push(Z("menuitem"));for(var gt in j)if(f.call(j,gt)&&(ue=j[gt],ue!=null))switch(gt){case"children":case"dangerouslySetInnerHTML":throw Error(u(400));default:B(o,Y,gt,ue)}return o.push(">"),null;case"title":o.push(Z("title")),ue=null;for($e in j)if(f.call(j,$e)&&(he=j[$e],he!=null))switch($e){case"children":ue=he;break;case"dangerouslySetInnerHTML":throw Error(u(434));default:B(o,Y,$e,he)}return o.push(">"),ue;case"listing":case"pre":o.push(Z(x)),he=ue=null;for(Fe in j)if(f.call(j,Fe)&&(Se=j[Fe],Se!=null))switch(Fe){case"children":ue=Se;break;case"dangerouslySetInnerHTML":he=Se;break;default:B(o,Y,Fe,Se)}if(o.push(">"),he!=null){if(ue!=null)throw Error(u(60));if(typeof he!="object"||!("__html"in he))throw Error(u(61));j=he.__html,j!=null&&(typeof j=="string"&&0<j.length&&j[0]===`
|
|
12
|
+
`?o.push(`
|
|
13
|
+
`,j):o.push(""+j))}return typeof ue=="string"&&ue[0]===`
|
|
14
|
+
`&&o.push(`
|
|
15
|
+
`),ue;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":o.push(Z(x));for(var dt in j)if(f.call(j,dt)&&(ue=j[dt],ue!=null))switch(dt){case"children":case"dangerouslySetInnerHTML":throw Error(u(399,x));default:B(o,Y,dt,ue)}return o.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return $(o,j,x,Y);case"html":return fe.insertionMode===0&&o.push("<!DOCTYPE html>"),$(o,j,x,Y);default:if(x.indexOf("-")===-1&&typeof j.is!="string")return $(o,j,x,Y);o.push(Z(x)),he=ue=null;for(He in j)if(f.call(j,He)&&(Se=j[He],Se!=null))switch(He){case"children":ue=Se;break;case"dangerouslySetInnerHTML":he=Se;break;case"style":E(o,Y,Se);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:S(He)&&typeof Se!="function"&&typeof Se!="symbol"&&o.push(" ",He,'="',F(Se),'"')}return o.push(">"),M(o,he,ue),ue}}function le(o,x,j){if(o.push('<!--$?--><template id="'),j===null)throw Error(u(395));return o.push(j),o.push('"></template>')}function me(o,x,j,Y){switch(j.insertionMode){case 0:case 1:return o.push('<div hidden id="'),o.push(x.segmentPrefix),x=Y.toString(16),o.push(x),o.push('">');case 2:return o.push('<svg aria-hidden="true" style="display:none" id="'),o.push(x.segmentPrefix),x=Y.toString(16),o.push(x),o.push('">');case 3:return o.push('<math aria-hidden="true" style="display:none" id="'),o.push(x.segmentPrefix),x=Y.toString(16),o.push(x),o.push('">');case 4:return o.push('<table hidden id="'),o.push(x.segmentPrefix),x=Y.toString(16),o.push(x),o.push('">');case 5:return o.push('<table hidden><tbody id="'),o.push(x.segmentPrefix),x=Y.toString(16),o.push(x),o.push('">');case 6:return o.push('<table hidden><tr id="'),o.push(x.segmentPrefix),x=Y.toString(16),o.push(x),o.push('">');case 7:return o.push('<table hidden><colgroup id="'),o.push(x.segmentPrefix),x=Y.toString(16),o.push(x),o.push('">');default:throw Error(u(397))}}function Q(o,x){switch(x.insertionMode){case 0:case 1:return o.push("</div>");case 2:return o.push("</svg>");case 3:return o.push("</math>");case 4:return o.push("</table>");case 5:return o.push("</tbody></table>");case 6:return o.push("</tr></table>");case 7:return o.push("</colgroup></table>");default:throw Error(u(397))}}var oe=/[<\u2028\u2029]/g;function se(o){return JSON.stringify(o).replace(oe,function(x){switch(x){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function ie(o,x){return x=x===void 0?"":x,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:x+"P:",segmentPrefix:x+"S:",boundaryPrefix:x+"B:",idPrefix:x,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:o}}function W(o,x,j,Y){return j.generateStaticMarkup?(o.push(F(x)),!1):(x===""?o=Y:(Y&&o.push("<!-- -->"),o.push(F(x)),o=!0),o)}var te=Object.assign,ae=Symbol.for("react.element"),Ae=Symbol.for("react.portal"),ke=Symbol.for("react.fragment"),be=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),ge=Symbol.for("react.provider"),Re=Symbol.for("react.context"),Ee=Symbol.for("react.forward_ref"),Te=Symbol.for("react.suspense"),Ie=Symbol.for("react.suspense_list"),Ne=Symbol.for("react.memo"),Pe=Symbol.for("react.lazy"),Ce=Symbol.for("react.scope"),Ve=Symbol.for("react.debug_trace_mode"),ct=Symbol.for("react.legacy_hidden"),xt=Symbol.for("react.default_value"),ot=Symbol.iterator;function ft(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case ke:return"Fragment";case Ae:return"Portal";case q:return"Profiler";case be:return"StrictMode";case Te:return"Suspense";case Ie:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case Re:return(o.displayName||"Context")+".Consumer";case ge:return(o._context.displayName||"Context")+".Provider";case Ee:var x=o.render;return o=o.displayName,o||(o=x.displayName||x.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case Ne:return x=o.displayName||null,x!==null?x:ft(o.type)||"Memo";case Pe:x=o._payload,o=o._init;try{return ft(o(x))}catch{}}return null}var Xe={};function We(o,x){if(o=o.contextTypes,!o)return Xe;var j={},Y;for(Y in o)j[Y]=x[Y];return j}var yt=null;function lt(o,x){if(o!==x){o.context._currentValue2=o.parentValue,o=o.parent;var j=x.parent;if(o===null){if(j!==null)throw Error(u(401))}else{if(j===null)throw Error(u(401));lt(o,j)}x.context._currentValue2=x.value}}function rt(o){o.context._currentValue2=o.parentValue,o=o.parent,o!==null&&rt(o)}function hr(o){var x=o.parent;x!==null&&hr(x),o.context._currentValue2=o.value}function br(o,x){if(o.context._currentValue2=o.parentValue,o=o.parent,o===null)throw Error(u(402));o.depth===x.depth?lt(o,x):br(o,x)}function yr(o,x){var j=x.parent;if(j===null)throw Error(u(402));o.depth===j.depth?lt(o,j):yr(o,j),x.context._currentValue2=x.value}function qe(o){var x=yt;x!==o&&(x===null?hr(o):o===null?rt(x):x.depth===o.depth?lt(x,o):x.depth>o.depth?br(x,o):yr(x,o),yt=o)}var gr={isMounted:function(){return!1},enqueueSetState:function(o,x){o=o._reactInternals,o.queue!==null&&o.queue.push(x)},enqueueReplaceState:function(o,x){o=o._reactInternals,o.replace=!0,o.queue=[x]},enqueueForceUpdate:function(){}};function Fr(o,x,j,Y){var fe=o.state!==void 0?o.state:null;o.updater=gr,o.props=j,o.state=fe;var ue={queue:[],replace:!1};o._reactInternals=ue;var he=x.contextType;if(o.context=typeof he=="object"&&he!==null?he._currentValue2:Y,he=x.getDerivedStateFromProps,typeof he=="function"&&(he=he(j,fe),fe=he==null?fe:te({},fe,he),o.state=fe),typeof x.getDerivedStateFromProps!="function"&&typeof o.getSnapshotBeforeUpdate!="function"&&(typeof o.UNSAFE_componentWillMount=="function"||typeof o.componentWillMount=="function"))if(x=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),x!==o.state&&gr.enqueueReplaceState(o,o.state,null),ue.queue!==null&&0<ue.queue.length)if(x=ue.queue,he=ue.replace,ue.queue=null,ue.replace=!1,he&&x.length===1)o.state=x[0];else{for(ue=he?x[0]:o.state,fe=!0,he=he?1:0;he<x.length;he++){var Se=x[he];Se=typeof Se=="function"?Se.call(o,ue,j,Y):Se,Se!=null&&(fe?(fe=!1,ue=te({},ue,Se)):te(ue,Se))}o.state=ue}else ue.queue=null}var Dr={id:1,overflow:""};function Er(o,x,j){var Y=o.id;o=o.overflow;var fe=32-er(Y)-1;Y&=~(1<<fe),j+=1;var ue=32-er(x)+fe;if(30<ue){var he=fe-fe%5;return ue=(Y&(1<<he)-1).toString(32),Y>>=he,fe-=he,{id:1<<32-er(x)+fe|j<<fe|Y,overflow:ue+o}}return{id:1<<ue|j<<fe|Y,overflow:o}}var er=Math.clz32?Math.clz32:tr,Yn=Math.log,Vr=Math.LN2;function tr(o){return o>>>=0,o===0?32:31-(Yn(o)/Vr|0)|0}function Qr(o,x){return o===x&&(o!==0||1/o===1/x)||o!==o&&x!==x}var wn=typeof Object.is=="function"?Object.is:Qr,ht=null,Ht=null,rr=null,Ge=null,nr=!1,Mr=!1,Ar=0,_t=null,Hr=0;function Jt(){if(ht===null)throw Error(u(321));return ht}function nt(){if(0<Hr)throw Error(u(312));return{memoizedState:null,queue:null,next:null}}function Kr(){return Ge===null?rr===null?(nr=!1,rr=Ge=nt()):(nr=!0,Ge=rr):Ge.next===null?(nr=!1,Ge=Ge.next=nt()):(nr=!0,Ge=Ge.next),Ge}function qr(){Ht=ht=null,Mr=!1,rr=null,Hr=0,Ge=_t=null}function Sn(o,x){return typeof x=="function"?x(o):x}function it(o,x,j){if(ht=Jt(),Ge=Kr(),nr){var Y=Ge.queue;if(x=Y.dispatch,_t!==null&&(j=_t.get(Y),j!==void 0)){_t.delete(Y),Y=Ge.memoizedState;do Y=o(Y,j.action),j=j.next;while(j!==null);return Ge.memoizedState=Y,[Y,x]}return[Ge.memoizedState,x]}return o=o===Sn?typeof x=="function"?x():x:j!==void 0?j(x):x,Ge.memoizedState=o,o=Ge.queue={last:null,dispatch:null},o=o.dispatch=Jn.bind(null,ht,o),[Ge.memoizedState,o]}function en(o,x){if(ht=Jt(),Ge=Kr(),x=x===void 0?null:x,Ge!==null){var j=Ge.memoizedState;if(j!==null&&x!==null){var Y=j[1];e:if(Y===null)Y=!1;else{for(var fe=0;fe<Y.length&&fe<x.length;fe++)if(!wn(x[fe],Y[fe])){Y=!1;break e}Y=!0}if(Y)return j[0]}}return o=o(),Ge.memoizedState=[o,x],o}function Jn(o,x,j){if(25<=Hr)throw Error(u(301));if(o===ht)if(Mr=!0,o={action:j,next:null},_t===null&&(_t=new Map),j=_t.get(x),j===void 0)_t.set(x,o);else{for(x=j;x.next!==null;)x=x.next;x.next=o}}function Xn(){throw Error(u(394))}function Bt(){}var tn={readContext:function(o){return o._currentValue2},useContext:function(o){return Jt(),o._currentValue2},useMemo:en,useReducer:it,useRef:function(o){ht=Jt(),Ge=Kr();var x=Ge.memoizedState;return x===null?(o={current:o},Ge.memoizedState=o):x},useState:function(o){return it(Sn,o)},useInsertionEffect:Bt,useLayoutEffect:function(){},useCallback:function(o,x){return en(function(){return o},x)},useImperativeHandle:Bt,useEffect:Bt,useDebugValue:Bt,useDeferredValue:function(o){return Jt(),o},useTransition:function(){return Jt(),[!1,Xn]},useId:function(){var o=Ht.treeContext,x=o.overflow;o=o.id,o=(o&~(1<<32-er(o)-1)).toString(32)+x;var j=_r;if(j===null)throw Error(u(404));return x=Ar++,o=":"+j.idPrefix+"R"+o,0<x&&(o+="H"+x.toString(32)),o+":"},useMutableSource:function(o,x){return Jt(),x(o._source)},useSyncExternalStore:function(o,x,j){if(j===void 0)throw Error(u(407));return j()}},_r=null,rn=R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function wr(o){return console.error(o),null}function ir(){}function Zn(o,x,j,Y,fe,ue,he,Se,Fe){var He=[],Me=new Set;return x={destination:null,responseState:x,progressiveChunkSize:Y===void 0?12800:Y,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Me,pingedTasks:He,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:fe===void 0?wr:fe,onAllReady:ue===void 0?ir:ue,onShellReady:he===void 0?ir:he,onShellError:Se===void 0?ir:Se,onFatalError:Fe===void 0?ir:Fe},j=Br(x,0,null,j,!1,!1),j.parentFlushed=!0,o=nn(x,o,null,j,Me,Xe,null,Dr),He.push(o),x}function nn(o,x,j,Y,fe,ue,he,Se){o.allPendingTasks++,j===null?o.pendingRootTasks++:j.pendingTasks++;var Fe={node:x,ping:function(){var He=o.pingedTasks;He.push(Fe),He.length===1&&bt(o)},blockedBoundary:j,blockedSegment:Y,abortSet:fe,legacyContext:ue,context:he,treeContext:Se};return fe.add(Fe),Fe}function Br(o,x,j,Y,fe,ue){return{status:0,id:-1,index:x,parentFlushed:!1,chunks:[],children:[],formatContext:Y,boundary:j,lastPushedText:fe,textEmbedded:ue}}function or(o,x){if(o=o.onError(x),o!=null&&typeof o!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof o+'" instead');return o}function Xt(o,x){var j=o.onShellError;j(x),j=o.onFatalError,j(x),o.destination!==null?(o.status=2,o.destination.destroy(x)):(o.status=1,o.fatalError=x)}function Nt(o,x,j,Y,fe){for(ht={},Ht=x,Ar=0,o=j(Y,fe);Mr;)Mr=!1,Ar=0,Hr+=1,Ge=null,o=j(Y,fe);return qr(),o}function Sr(o,x,j,Y){var fe=j.render(),ue=Y.childContextTypes;if(ue!=null){var he=x.legacyContext;if(typeof j.getChildContext!="function")Y=he;else{j=j.getChildContext();for(var Se in j)if(!(Se in ue))throw Error(u(108,ft(Y)||"Unknown",Se));Y=te({},he,j)}x.legacyContext=Y,et(o,x,fe),x.legacyContext=he}else et(o,x,fe)}function xr(o,x){if(o&&o.defaultProps){x=te({},x),o=o.defaultProps;for(var j in o)x[j]===void 0&&(x[j]=o[j]);return x}return x}function kt(o,x,j,Y,fe){if(typeof j=="function")if(j.prototype&&j.prototype.isReactComponent){fe=We(j,x.legacyContext);var ue=j.contextType;ue=new j(Y,typeof ue=="object"&&ue!==null?ue._currentValue2:fe),Fr(ue,j,Y,fe),Sr(o,x,ue,j)}else{ue=We(j,x.legacyContext),fe=Nt(o,x,j,Y,ue);var he=Ar!==0;if(typeof fe=="object"&&fe!==null&&typeof fe.render=="function"&&fe.$$typeof===void 0)Fr(fe,j,Y,ue),Sr(o,x,fe,j);else if(he){Y=x.treeContext,x.treeContext=Er(Y,1,0);try{et(o,x,fe)}finally{x.treeContext=Y}}else et(o,x,fe)}else if(typeof j=="string"){switch(fe=x.blockedSegment,ue=U(fe.chunks,j,Y,o.responseState,fe.formatContext),fe.lastPushedText=!1,he=fe.formatContext,fe.formatContext=_(he,j,Y),Rt(o,x,ue),fe.formatContext=he,j){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:fe.chunks.push("</",j,">")}fe.lastPushedText=!1}else{switch(j){case ct:case Ve:case be:case q:case ke:et(o,x,Y.children);return;case Ie:et(o,x,Y.children);return;case Ce:throw Error(u(343));case Te:e:{j=x.blockedBoundary,fe=x.blockedSegment,ue=Y.fallback,Y=Y.children,he=new Set;var Se={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:he,errorDigest:null},Fe=Br(o,fe.chunks.length,Se,fe.formatContext,!1,!1);fe.children.push(Fe),fe.lastPushedText=!1;var He=Br(o,0,null,fe.formatContext,!1,!1);He.parentFlushed=!0,x.blockedBoundary=Se,x.blockedSegment=He;try{if(Rt(o,x,Y),o.responseState.generateStaticMarkup||He.lastPushedText&&He.textEmbedded&&He.chunks.push("<!-- -->"),He.status=1,Ot(Se,He),Se.pendingTasks===0)break e}catch(Me){He.status=4,Se.forceClientRender=!0,Se.errorDigest=or(o,Me)}finally{x.blockedBoundary=j,x.blockedSegment=fe}x=nn(o,ue,j,Fe,he,x.legacyContext,x.context,x.treeContext),o.pingedTasks.push(x)}return}if(typeof j=="object"&&j!==null)switch(j.$$typeof){case Ee:if(Y=Nt(o,x,j.render,Y,fe),Ar!==0){j=x.treeContext,x.treeContext=Er(j,1,0);try{et(o,x,Y)}finally{x.treeContext=j}}else et(o,x,Y);return;case Ne:j=j.type,Y=xr(j,Y),kt(o,x,j,Y,fe);return;case ge:if(fe=Y.children,j=j._context,Y=Y.value,ue=j._currentValue2,j._currentValue2=Y,he=yt,yt=Y={parent:he,depth:he===null?0:he.depth+1,context:j,parentValue:ue,value:Y},x.context=Y,et(o,x,fe),o=yt,o===null)throw Error(u(403));Y=o.parentValue,o.context._currentValue2=Y===xt?o.context._defaultValue:Y,o=yt=o.parent,x.context=o;return;case Re:Y=Y.children,Y=Y(j._currentValue2),et(o,x,Y);return;case Pe:fe=j._init,j=fe(j._payload),Y=xr(j,Y),kt(o,x,j,Y,void 0);return}throw Error(u(130,j==null?j:typeof j,""))}}function et(o,x,j){if(x.node=j,typeof j=="object"&&j!==null){switch(j.$$typeof){case ae:kt(o,x,j.type,j.props,j.ref);return;case Ae:throw Error(u(257));case Pe:var Y=j._init;j=Y(j._payload),et(o,x,j);return}if(c(j)){Ut(o,x,j);return}if(j===null||typeof j!="object"?Y=null:(Y=ot&&j[ot]||j["@@iterator"],Y=typeof Y=="function"?Y:null),Y&&(Y=Y.call(j))){if(j=Y.next(),!j.done){var fe=[];do fe.push(j.value),j=Y.next();while(!j.done);Ut(o,x,fe)}return}throw o=Object.prototype.toString.call(j),Error(u(31,o==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":o))}typeof j=="string"?(Y=x.blockedSegment,Y.lastPushedText=W(x.blockedSegment.chunks,j,o.responseState,Y.lastPushedText)):typeof j=="number"&&(Y=x.blockedSegment,Y.lastPushedText=W(x.blockedSegment.chunks,""+j,o.responseState,Y.lastPushedText))}function Ut(o,x,j){for(var Y=j.length,fe=0;fe<Y;fe++){var ue=x.treeContext;x.treeContext=Er(ue,Y,fe);try{Rt(o,x,j[fe])}finally{x.treeContext=ue}}}function Rt(o,x,j){var Y=x.blockedSegment.formatContext,fe=x.legacyContext,ue=x.context;try{return et(o,x,j)}catch(Fe){if(qr(),typeof Fe=="object"&&Fe!==null&&typeof Fe.then=="function"){j=Fe;var he=x.blockedSegment,Se=Br(o,he.chunks.length,null,he.formatContext,he.lastPushedText,!0);he.children.push(Se),he.lastPushedText=!1,o=nn(o,x.node,x.blockedBoundary,Se,x.abortSet,x.legacyContext,x.context,x.treeContext).ping,j.then(o,o),x.blockedSegment.formatContext=Y,x.legacyContext=fe,x.context=ue,qe(ue)}else throw x.blockedSegment.formatContext=Y,x.legacyContext=fe,x.context=ue,qe(ue),Fe}}function ut(o){var x=o.blockedBoundary;o=o.blockedSegment,o.status=3,jt(this,x,o)}function Nr(o,x,j){var Y=o.blockedBoundary;o.blockedSegment.status=3,Y===null?(x.allPendingTasks--,x.status!==2&&(x.status=2,x.destination!==null&&x.destination.push(null))):(Y.pendingTasks--,Y.forceClientRender||(Y.forceClientRender=!0,o=j===void 0?Error(u(432)):j,Y.errorDigest=x.onError(o),Y.parentFlushed&&x.clientRenderedBoundaries.push(Y)),Y.fallbackAbortableTasks.forEach(function(fe){return Nr(fe,x,j)}),Y.fallbackAbortableTasks.clear(),x.allPendingTasks--,x.allPendingTasks===0&&(Y=x.onAllReady,Y()))}function Ot(o,x){if(x.chunks.length===0&&x.children.length===1&&x.children[0].boundary===null){var j=x.children[0];j.id=x.id,j.parentFlushed=!0,j.status===1&&Ot(o,j)}else o.completedSegments.push(x)}function jt(o,x,j){if(x===null){if(j.parentFlushed){if(o.completedRootSegment!==null)throw Error(u(389));o.completedRootSegment=j}o.pendingRootTasks--,o.pendingRootTasks===0&&(o.onShellError=ir,x=o.onShellReady,x())}else x.pendingTasks--,x.forceClientRender||(x.pendingTasks===0?(j.parentFlushed&&j.status===1&&Ot(x,j),x.parentFlushed&&o.completedBoundaries.push(x),x.fallbackAbortableTasks.forEach(ut,o),x.fallbackAbortableTasks.clear()):j.parentFlushed&&j.status===1&&(Ot(x,j),x.completedSegments.length===1&&x.parentFlushed&&o.partialBoundaries.push(x)));o.allPendingTasks--,o.allPendingTasks===0&&(o=o.onAllReady,o())}function bt(o){if(o.status!==2){var x=yt,j=rn.current;rn.current=tn;var Y=_r;_r=o.responseState;try{var fe=o.pingedTasks,ue;for(ue=0;ue<fe.length;ue++){var he=fe[ue],Se=o,Fe=he.blockedSegment;if(Fe.status===0){qe(he.context);try{et(Se,he,he.node),Se.responseState.generateStaticMarkup||Fe.lastPushedText&&Fe.textEmbedded&&Fe.chunks.push("<!-- -->"),he.abortSet.delete(he),Fe.status=1,jt(Se,he.blockedBoundary,Fe)}catch(pt){if(qr(),typeof pt=="object"&&pt!==null&&typeof pt.then=="function"){var He=he.ping;pt.then(He,He)}else{he.abortSet.delete(he),Fe.status=4;var Me=he.blockedBoundary,$e=pt,gt=or(Se,$e);if(Me===null?Xt(Se,$e):(Me.pendingTasks--,Me.forceClientRender||(Me.forceClientRender=!0,Me.errorDigest=gt,Me.parentFlushed&&Se.clientRenderedBoundaries.push(Me))),Se.allPendingTasks--,Se.allPendingTasks===0){var dt=Se.onAllReady;dt()}}}finally{}}}fe.splice(0,ue),o.destination!==null&&ur(o,o.destination)}catch(pt){or(o,pt),Xt(o,pt)}finally{_r=Y,rn.current=j,j===tn&&qe(x)}}}function Zt(o,x,j){switch(j.parentFlushed=!0,j.status){case 0:var Y=j.id=o.nextSegmentId++;return j.lastPushedText=!1,j.textEmbedded=!1,o=o.responseState,x.push('<template id="'),x.push(o.placeholderPrefix),o=Y.toString(16),x.push(o),x.push('"></template>');case 1:j.status=2;var fe=!0;Y=j.chunks;var ue=0;j=j.children;for(var he=0;he<j.length;he++){for(fe=j[he];ue<fe.index;ue++)x.push(Y[ue]);fe=lr(o,x,fe)}for(;ue<Y.length-1;ue++)x.push(Y[ue]);return ue<Y.length&&(fe=x.push(Y[ue])),fe;default:throw Error(u(390))}}function lr(o,x,j){var Y=j.boundary;if(Y===null)return Zt(o,x,j);if(Y.parentFlushed=!0,Y.forceClientRender)return o.responseState.generateStaticMarkup||(Y=Y.errorDigest,x.push("<!--$!-->"),x.push("<template"),Y&&(x.push(' data-dgst="'),Y=F(Y),x.push(Y),x.push('"')),x.push("></template>")),Zt(o,x,j),o=o.responseState.generateStaticMarkup?!0:x.push("<!--/$-->"),o;if(0<Y.pendingTasks){Y.rootSegmentID=o.nextSegmentId++,0<Y.completedSegments.length&&o.partialBoundaries.push(Y);var fe=o.responseState,ue=fe.nextSuspenseID++;return fe=fe.boundaryPrefix+ue.toString(16),Y=Y.id=fe,le(x,o.responseState,Y),Zt(o,x,j),x.push("<!--/$-->")}if(Y.byteSize>o.progressiveChunkSize)return Y.rootSegmentID=o.nextSegmentId++,o.completedBoundaries.push(Y),le(x,o.responseState,Y.id),Zt(o,x,j),x.push("<!--/$-->");if(o.responseState.generateStaticMarkup||x.push("<!--$-->"),j=Y.completedSegments,j.length!==1)throw Error(u(391));return lr(o,x,j[0]),o=o.responseState.generateStaticMarkup?!0:x.push("<!--/$-->"),o}function on(o,x,j){return me(x,o.responseState,j.formatContext,j.id),lr(o,x,j),Q(x,j.formatContext)}function ln(o,x,j){for(var Y=j.completedSegments,fe=0;fe<Y.length;fe++)Ur(o,x,j,Y[fe]);if(Y.length=0,o=o.responseState,Y=j.id,j=j.rootSegmentID,x.push(o.startInlineScript),o.sentCompleteBoundaryFunction?x.push('$RC("'):(o.sentCompleteBoundaryFunction=!0,x.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),Y===null)throw Error(u(395));return j=j.toString(16),x.push(Y),x.push('","'),x.push(o.segmentPrefix),x.push(j),x.push('")<\/script>')}function Ur(o,x,j,Y){if(Y.status===2)return!0;var fe=Y.id;if(fe===-1){if((Y.id=j.rootSegmentID)===-1)throw Error(u(392));return on(o,x,Y)}return on(o,x,Y),o=o.responseState,x.push(o.startInlineScript),o.sentCompleteSegmentFunction?x.push('$RS("'):(o.sentCompleteSegmentFunction=!0,x.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),x.push(o.segmentPrefix),fe=fe.toString(16),x.push(fe),x.push('","'),x.push(o.placeholderPrefix),x.push(fe),x.push('")<\/script>')}function ur(o,x){try{var j=o.completedRootSegment;if(j!==null&&o.pendingRootTasks===0){lr(o,x,j),o.completedRootSegment=null;var Y=o.responseState.bootstrapChunks;for(j=0;j<Y.length-1;j++)x.push(Y[j]);j<Y.length&&x.push(Y[j])}var fe=o.clientRenderedBoundaries,ue;for(ue=0;ue<fe.length;ue++){var he=fe[ue];Y=x;var Se=o.responseState,Fe=he.id,He=he.errorDigest,Me=he.errorMessage,$e=he.errorComponentStack;if(Y.push(Se.startInlineScript),Se.sentClientRenderFunction?Y.push('$RX("'):(Se.sentClientRenderFunction=!0,Y.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),Fe===null)throw Error(u(395));if(Y.push(Fe),Y.push('"'),He||Me||$e){Y.push(",");var gt=se(He||"");Y.push(gt)}if(Me||$e){Y.push(",");var dt=se(Me||"");Y.push(dt)}if($e){Y.push(",");var pt=se($e);Y.push(pt)}if(!Y.push(")<\/script>")){o.destination=null,ue++,fe.splice(0,ue);return}}fe.splice(0,ue);var Vt=o.completedBoundaries;for(ue=0;ue<Vt.length;ue++)if(!ln(o,x,Vt[ue])){o.destination=null,ue++,Vt.splice(0,ue);return}Vt.splice(0,ue);var Tt=o.partialBoundaries;for(ue=0;ue<Tt.length;ue++){var $r=Tt[ue];e:{fe=o,he=x;var sr=$r.completedSegments;for(Se=0;Se<sr.length;Se++)if(!Ur(fe,he,$r,sr[Se])){Se++,sr.splice(0,Se);var kr=!1;break e}sr.splice(0,Se),kr=!0}if(!kr){o.destination=null,ue++,Tt.splice(0,ue);return}}Tt.splice(0,ue);var Qt=o.completedBoundaries;for(ue=0;ue<Qt.length;ue++)if(!ln(o,x,Qt[ue])){o.destination=null,ue++,Qt.splice(0,ue);return}Qt.splice(0,ue)}finally{o.allPendingTasks===0&&o.pingedTasks.length===0&&o.clientRenderedBoundaries.length===0&&o.completedBoundaries.length===0&&x.push(null)}}function un(o,x){try{var j=o.abortableTasks;j.forEach(function(Y){return Nr(Y,o,x)}),j.clear(),o.destination!==null&&ur(o,o.destination)}catch(Y){or(o,Y),Xt(o,Y)}}function Or(){}function jr(o,x,j,Y){var fe=!1,ue=null,he="",Se={push:function(He){return He!==null&&(he+=He),!0},destroy:function(He){fe=!0,ue=He}},Fe=!1;if(o=Zn(o,ie(j,x?x.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,Or,void 0,function(){Fe=!0},void 0,void 0),bt(o),un(o,Y),o.status===1)o.status=2,Se.destroy(o.fatalError);else if(o.status!==2&&o.destination===null){o.destination=Se;try{ur(o,Se)}catch(He){or(o,He),Xt(o,He)}}if(fe)throw ue;if(!Fe)throw Error(u(426));return he}return Ci.renderToNodeStream=function(){throw Error(u(207))},Ci.renderToStaticMarkup=function(o,x){return jr(o,x,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Ci.renderToStaticNodeStream=function(){throw Error(u(208))},Ci.renderToString=function(o,x){return jr(o,x,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Ci.version="18.3.1",Ci}var Pu={};/**
|
|
16
|
+
* @license React
|
|
17
|
+
* react-dom-server.browser.production.min.js
|
|
18
|
+
*
|
|
19
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
20
|
+
*
|
|
21
|
+
* This source code is licensed under the MIT license found in the
|
|
22
|
+
* LICENSE file in the root directory of this source tree.
|
|
23
|
+
*/var Ks;function Wd(){if(Ks)return Pu;Ks=1;var R=H.default;function u(l){for(var k="https://reactjs.org/docs/error-decoder.html?invariant="+l,O=1;O<arguments.length;O++)k+="&args[]="+encodeURIComponent(arguments[O]);return"Minified React error #"+l+"; visit "+k+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var f=null,h=0;function i(l,k){if(k.length!==0)if(512<k.length)0<h&&(l.enqueue(new Uint8Array(f.buffer,0,h)),f=new Uint8Array(512),h=0),l.enqueue(k);else{var O=f.length-h;O<k.length&&(O===0?l.enqueue(f):(f.set(k.subarray(0,O),h),l.enqueue(f),k=k.subarray(O)),f=new Uint8Array(512),h=0),f.set(k,h),h+=k.length}}function b(l,k){return i(l,k),!0}function S(l){f&&0<h&&(l.enqueue(new Uint8Array(f.buffer,0,h)),f=null,h=0)}var y=new TextEncoder;function s(l){return y.encode(l)}function a(l){return y.encode(l)}function T(l,k){typeof l.error=="function"?l.error(k):l.close()}var p=Object.prototype.hasOwnProperty,A=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,P={},F={};function w(l){return p.call(F,l)?!0:p.call(P,l)?!1:A.test(l)?F[l]=!0:(P[l]=!0,!1)}function v(l,k,O,J,de,ce,ye){this.acceptsBooleans=k===2||k===3||k===4,this.attributeName=J,this.attributeNamespace=de,this.mustUseProperty=O,this.propertyName=l,this.type=k,this.sanitizeURL=ce,this.removeEmptyString=ye}var c={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(l){c[l]=new v(l,0,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var k=l[0];c[k]=new v(k,1,!1,l[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){c[l]=new v(l,2,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){c[l]=new v(l,2,!1,l,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(l){c[l]=new v(l,3,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){c[l]=new v(l,3,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){c[l]=new v(l,4,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){c[l]=new v(l,6,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){c[l]=new v(l,5,!1,l.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function _(l){return l[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(l){var k=l.replace(C,_);c[k]=new v(k,1,!1,l,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(l){var k=l.replace(C,_);c[k]=new v(k,1,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var k=l.replace(C,_);c[k]=new v(k,1,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){c[l]=new v(l,1,!1,l.toLowerCase(),null,!1,!1)}),c.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){c[l]=new v(l,1,!1,l.toLowerCase(),null,!0,!0)});var D={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},E=["Webkit","ms","Moz","O"];Object.keys(D).forEach(function(l){E.forEach(function(k){k=k+l.charAt(0).toUpperCase()+l.substring(1),D[k]=D[l]})});var B=/["'&<>]/;function M(l){if(typeof l=="boolean"||typeof l=="number")return""+l;l=""+l;var k=B.exec(l);if(k){var O="",J,de=0;for(J=k.index;J<l.length;J++){switch(l.charCodeAt(J)){case 34:k=""";break;case 38:k="&";break;case 39:k="'";break;case 60:k="<";break;case 62:k=">";break;default:continue}de!==J&&(O+=l.substring(de,J)),de=J+1,O+=k}l=de!==J?O+l.substring(de,J):O}return l}var G=/([A-Z])/g,$=/^ms-/,re=Array.isArray,K=a("<script>"),Z=a("<\/script>"),U=a('<script src="'),le=a('<script type="module" src="'),me=a('" async=""><\/script>'),Q=/(<\/|<)(s)(cript)/gi;function oe(l,k,O,J){return""+k+(O==="s"?"\\u0073":"\\u0053")+J}function se(l,k,O,J,de){l=l===void 0?"":l,k=k===void 0?K:a('<script nonce="'+M(k)+'">');var ce=[];if(O!==void 0&&ce.push(k,s((""+O).replace(Q,oe)),Z),J!==void 0)for(O=0;O<J.length;O++)ce.push(U,s(M(J[O])),me);if(de!==void 0)for(J=0;J<de.length;J++)ce.push(le,s(M(de[J])),me);return{bootstrapChunks:ce,startInlineScript:k,placeholderPrefix:a(l+"P:"),segmentPrefix:a(l+"S:"),boundaryPrefix:l+"B:",idPrefix:l,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function ie(l,k){return{insertionMode:l,selectedValue:k}}function W(l){return ie(l==="http://www.w3.org/2000/svg"?2:l==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function te(l,k,O){switch(k){case"select":return ie(1,O.value!=null?O.value:O.defaultValue);case"svg":return ie(2,null);case"math":return ie(3,null);case"foreignObject":return ie(1,null);case"table":return ie(4,null);case"thead":case"tbody":case"tfoot":return ie(5,null);case"colgroup":return ie(7,null);case"tr":return ie(6,null)}return 4<=l.insertionMode||l.insertionMode===0?ie(1,null):l}var ae=a("<!-- -->");function Ae(l,k,O,J){return k===""?J:(J&&l.push(ae),l.push(s(M(k))),!0)}var ke=new Map,be=a(' style="'),q=a(":"),ge=a(";");function Re(l,k,O){if(typeof O!="object")throw Error(u(62));k=!0;for(var J in O)if(p.call(O,J)){var de=O[J];if(de!=null&&typeof de!="boolean"&&de!==""){if(J.indexOf("--")===0){var ce=s(M(J));de=s(M((""+de).trim()))}else{ce=J;var ye=ke.get(ce);ye!==void 0||(ye=a(M(ce.replace(G,"-$1").toLowerCase().replace($,"-ms-"))),ke.set(ce,ye)),ce=ye,de=typeof de=="number"?de===0||p.call(D,J)?s(""+de):s(de+"px"):s(M((""+de).trim()))}k?(k=!1,l.push(be,ce,q,de)):l.push(ge,ce,q,de)}}k||l.push(Ie)}var Ee=a(" "),Te=a('="'),Ie=a('"'),Ne=a('=""');function Pe(l,k,O,J){switch(O){case"style":Re(l,k,J);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<O.length)||O[0]!=="o"&&O[0]!=="O"||O[1]!=="n"&&O[1]!=="N"){if(k=c.hasOwnProperty(O)?c[O]:null,k!==null){switch(typeof J){case"function":case"symbol":return;case"boolean":if(!k.acceptsBooleans)return}switch(O=s(k.attributeName),k.type){case 3:J&&l.push(Ee,O,Ne);break;case 4:J===!0?l.push(Ee,O,Ne):J!==!1&&l.push(Ee,O,Te,s(M(J)),Ie);break;case 5:isNaN(J)||l.push(Ee,O,Te,s(M(J)),Ie);break;case 6:!isNaN(J)&&1<=J&&l.push(Ee,O,Te,s(M(J)),Ie);break;default:k.sanitizeURL&&(J=""+J),l.push(Ee,O,Te,s(M(J)),Ie)}}else if(w(O)){switch(typeof J){case"function":case"symbol":return;case"boolean":if(k=O.toLowerCase().slice(0,5),k!=="data-"&&k!=="aria-")return}l.push(Ee,s(O),Te,s(M(J)),Ie)}}}var Ce=a(">"),Ve=a("/>");function ct(l,k,O){if(k!=null){if(O!=null)throw Error(u(60));if(typeof k!="object"||!("__html"in k))throw Error(u(61));k=k.__html,k!=null&&l.push(s(""+k))}}function xt(l){var k="";return R.Children.forEach(l,function(O){O!=null&&(k+=O)}),k}var ot=a(' selected=""');function ft(l,k,O,J){l.push(lt(O));var de=O=null,ce;for(ce in k)if(p.call(k,ce)){var ye=k[ce];if(ye!=null)switch(ce){case"children":O=ye;break;case"dangerouslySetInnerHTML":de=ye;break;default:Pe(l,J,ce,ye)}}return l.push(Ce),ct(l,de,O),typeof O=="string"?(l.push(s(M(O))),null):O}var Xe=a(`
|
|
24
|
+
`),We=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,yt=new Map;function lt(l){var k=yt.get(l);if(k===void 0){if(!We.test(l))throw Error(u(65,l));k=a("<"+l),yt.set(l,k)}return k}var rt=a("<!DOCTYPE html>");function hr(l,k,O,J,de){switch(k){case"select":l.push(lt("select"));var ce=null,ye=null;for(Oe in O)if(p.call(O,Oe)){var xe=O[Oe];if(xe!=null)switch(Oe){case"children":ce=xe;break;case"dangerouslySetInnerHTML":ye=xe;break;case"defaultValue":case"value":break;default:Pe(l,J,Oe,xe)}}return l.push(Ce),ct(l,ye,ce),ce;case"option":ye=de.selectedValue,l.push(lt("option"));var _e=xe=null,je=null,Oe=null;for(ce in O)if(p.call(O,ce)){var Ze=O[ce];if(Ze!=null)switch(ce){case"children":xe=Ze;break;case"selected":je=Ze;break;case"dangerouslySetInnerHTML":Oe=Ze;break;case"value":_e=Ze;default:Pe(l,J,ce,Ze)}}if(ye!=null)if(O=_e!==null?""+_e:xt(xe),re(ye)){for(J=0;J<ye.length;J++)if(""+ye[J]===O){l.push(ot);break}}else""+ye===O&&l.push(ot);else je&&l.push(ot);return l.push(Ce),ct(l,Oe,xe),xe;case"textarea":l.push(lt("textarea")),Oe=ye=ce=null;for(xe in O)if(p.call(O,xe)&&(_e=O[xe],_e!=null))switch(xe){case"children":Oe=_e;break;case"value":ce=_e;break;case"defaultValue":ye=_e;break;case"dangerouslySetInnerHTML":throw Error(u(91));default:Pe(l,J,xe,_e)}if(ce===null&&ye!==null&&(ce=ye),l.push(Ce),Oe!=null){if(ce!=null)throw Error(u(92));if(re(Oe)&&1<Oe.length)throw Error(u(93));ce=""+Oe}return typeof ce=="string"&&ce[0]===`
|
|
25
|
+
`&&l.push(Xe),ce!==null&&l.push(s(M(""+ce))),null;case"input":l.push(lt("input")),_e=Oe=xe=ce=null;for(ye in O)if(p.call(O,ye)&&(je=O[ye],je!=null))switch(ye){case"children":case"dangerouslySetInnerHTML":throw Error(u(399,"input"));case"defaultChecked":_e=je;break;case"defaultValue":xe=je;break;case"checked":Oe=je;break;case"value":ce=je;break;default:Pe(l,J,ye,je)}return Oe!==null?Pe(l,J,"checked",Oe):_e!==null&&Pe(l,J,"checked",_e),ce!==null?Pe(l,J,"value",ce):xe!==null&&Pe(l,J,"value",xe),l.push(Ve),null;case"menuitem":l.push(lt("menuitem"));for(var wt in O)if(p.call(O,wt)&&(ce=O[wt],ce!=null))switch(wt){case"children":case"dangerouslySetInnerHTML":throw Error(u(400));default:Pe(l,J,wt,ce)}return l.push(Ce),null;case"title":l.push(lt("title")),ce=null;for(Ze in O)if(p.call(O,Ze)&&(ye=O[Ze],ye!=null))switch(Ze){case"children":ce=ye;break;case"dangerouslySetInnerHTML":throw Error(u(434));default:Pe(l,J,Ze,ye)}return l.push(Ce),ce;case"listing":case"pre":l.push(lt(k)),ye=ce=null;for(_e in O)if(p.call(O,_e)&&(xe=O[_e],xe!=null))switch(_e){case"children":ce=xe;break;case"dangerouslySetInnerHTML":ye=xe;break;default:Pe(l,J,_e,xe)}if(l.push(Ce),ye!=null){if(ce!=null)throw Error(u(60));if(typeof ye!="object"||!("__html"in ye))throw Error(u(61));O=ye.__html,O!=null&&(typeof O=="string"&&0<O.length&&O[0]===`
|
|
26
|
+
`?l.push(Xe,s(O)):l.push(s(""+O)))}return typeof ce=="string"&&ce[0]===`
|
|
27
|
+
`&&l.push(Xe),ce;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":l.push(lt(k));for(var It in O)if(p.call(O,It)&&(ce=O[It],ce!=null))switch(It){case"children":case"dangerouslySetInnerHTML":throw Error(u(399,k));default:Pe(l,J,It,ce)}return l.push(Ve),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ft(l,O,k,J);case"html":return de.insertionMode===0&&l.push(rt),ft(l,O,k,J);default:if(k.indexOf("-")===-1&&typeof O.is!="string")return ft(l,O,k,J);l.push(lt(k)),ye=ce=null;for(je in O)if(p.call(O,je)&&(xe=O[je],xe!=null))switch(je){case"children":ce=xe;break;case"dangerouslySetInnerHTML":ye=xe;break;case"style":Re(l,J,xe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:w(je)&&typeof xe!="function"&&typeof xe!="symbol"&&l.push(Ee,s(je),Te,s(M(xe)),Ie)}return l.push(Ce),ct(l,ye,ce),ce}}var br=a("</"),yr=a(">"),qe=a('<template id="'),gr=a('"></template>'),Fr=a("<!--$-->"),Dr=a('<!--$?--><template id="'),Er=a('"></template>'),er=a("<!--$!-->"),Yn=a("<!--/$-->"),Vr=a("<template"),tr=a('"'),Qr=a(' data-dgst="');a(' data-msg="'),a(' data-stck="');var wn=a("></template>");function ht(l,k,O){if(i(l,Dr),O===null)throw Error(u(395));return i(l,O),b(l,Er)}var Ht=a('<div hidden id="'),rr=a('">'),Ge=a("</div>"),nr=a('<svg aria-hidden="true" style="display:none" id="'),Mr=a('">'),Ar=a("</svg>"),_t=a('<math aria-hidden="true" style="display:none" id="'),Hr=a('">'),Jt=a("</math>"),nt=a('<table hidden id="'),Kr=a('">'),qr=a("</table>"),Sn=a('<table hidden><tbody id="'),it=a('">'),en=a("</tbody></table>"),Jn=a('<table hidden><tr id="'),Xn=a('">'),Bt=a("</tr></table>"),tn=a('<table hidden><colgroup id="'),_r=a('">'),rn=a("</colgroup></table>");function wr(l,k,O,J){switch(O.insertionMode){case 0:case 1:return i(l,Ht),i(l,k.segmentPrefix),i(l,s(J.toString(16))),b(l,rr);case 2:return i(l,nr),i(l,k.segmentPrefix),i(l,s(J.toString(16))),b(l,Mr);case 3:return i(l,_t),i(l,k.segmentPrefix),i(l,s(J.toString(16))),b(l,Hr);case 4:return i(l,nt),i(l,k.segmentPrefix),i(l,s(J.toString(16))),b(l,Kr);case 5:return i(l,Sn),i(l,k.segmentPrefix),i(l,s(J.toString(16))),b(l,it);case 6:return i(l,Jn),i(l,k.segmentPrefix),i(l,s(J.toString(16))),b(l,Xn);case 7:return i(l,tn),i(l,k.segmentPrefix),i(l,s(J.toString(16))),b(l,_r);default:throw Error(u(397))}}function ir(l,k){switch(k.insertionMode){case 0:case 1:return b(l,Ge);case 2:return b(l,Ar);case 3:return b(l,Jt);case 4:return b(l,qr);case 5:return b(l,en);case 6:return b(l,Bt);case 7:return b(l,rn);default:throw Error(u(397))}}var Zn=a('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),nn=a('$RS("'),Br=a('","'),or=a('")<\/script>'),Xt=a('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Nt=a('$RC("'),Sr=a('","'),xr=a('")<\/script>'),kt=a('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),et=a('$RX("'),Ut=a('"'),Rt=a(")<\/script>"),ut=a(","),Nr=/[<\u2028\u2029]/g;function Ot(l){return JSON.stringify(l).replace(Nr,function(k){switch(k){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var jt=Object.assign,bt=Symbol.for("react.element"),Zt=Symbol.for("react.portal"),lr=Symbol.for("react.fragment"),on=Symbol.for("react.strict_mode"),ln=Symbol.for("react.profiler"),Ur=Symbol.for("react.provider"),ur=Symbol.for("react.context"),un=Symbol.for("react.forward_ref"),Or=Symbol.for("react.suspense"),jr=Symbol.for("react.suspense_list"),o=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),j=Symbol.for("react.scope"),Y=Symbol.for("react.debug_trace_mode"),fe=Symbol.for("react.legacy_hidden"),ue=Symbol.for("react.default_value"),he=Symbol.iterator;function Se(l){if(l==null)return null;if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case lr:return"Fragment";case Zt:return"Portal";case ln:return"Profiler";case on:return"StrictMode";case Or:return"Suspense";case jr:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case ur:return(l.displayName||"Context")+".Consumer";case Ur:return(l._context.displayName||"Context")+".Provider";case un:var k=l.render;return l=l.displayName,l||(l=k.displayName||k.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case o:return k=l.displayName||null,k!==null?k:Se(l.type)||"Memo";case x:k=l._payload,l=l._init;try{return Se(l(k))}catch{}}return null}var Fe={};function He(l,k){if(l=l.contextTypes,!l)return Fe;var O={},J;for(J in l)O[J]=k[J];return O}var Me=null;function $e(l,k){if(l!==k){l.context._currentValue=l.parentValue,l=l.parent;var O=k.parent;if(l===null){if(O!==null)throw Error(u(401))}else{if(O===null)throw Error(u(401));$e(l,O)}k.context._currentValue=k.value}}function gt(l){l.context._currentValue=l.parentValue,l=l.parent,l!==null&>(l)}function dt(l){var k=l.parent;k!==null&&dt(k),l.context._currentValue=l.value}function pt(l,k){if(l.context._currentValue=l.parentValue,l=l.parent,l===null)throw Error(u(402));l.depth===k.depth?$e(l,k):pt(l,k)}function Vt(l,k){var O=k.parent;if(O===null)throw Error(u(402));l.depth===O.depth?$e(l,O):Vt(l,O),k.context._currentValue=k.value}function Tt(l){var k=Me;k!==l&&(k===null?dt(l):l===null?gt(k):k.depth===l.depth?$e(k,l):k.depth>l.depth?pt(k,l):Vt(k,l),Me=l)}var $r={isMounted:function(){return!1},enqueueSetState:function(l,k){l=l._reactInternals,l.queue!==null&&l.queue.push(k)},enqueueReplaceState:function(l,k){l=l._reactInternals,l.replace=!0,l.queue=[k]},enqueueForceUpdate:function(){}};function sr(l,k,O,J){var de=l.state!==void 0?l.state:null;l.updater=$r,l.props=O,l.state=de;var ce={queue:[],replace:!1};l._reactInternals=ce;var ye=k.contextType;if(l.context=typeof ye=="object"&&ye!==null?ye._currentValue:J,ye=k.getDerivedStateFromProps,typeof ye=="function"&&(ye=ye(O,de),de=ye==null?de:jt({},de,ye),l.state=de),typeof k.getDerivedStateFromProps!="function"&&typeof l.getSnapshotBeforeUpdate!="function"&&(typeof l.UNSAFE_componentWillMount=="function"||typeof l.componentWillMount=="function"))if(k=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),k!==l.state&&$r.enqueueReplaceState(l,l.state,null),ce.queue!==null&&0<ce.queue.length)if(k=ce.queue,ye=ce.replace,ce.queue=null,ce.replace=!1,ye&&k.length===1)l.state=k[0];else{for(ce=ye?k[0]:l.state,de=!0,ye=ye?1:0;ye<k.length;ye++){var xe=k[ye];xe=typeof xe=="function"?xe.call(l,ce,O,J):xe,xe!=null&&(de?(de=!1,ce=jt({},ce,xe)):jt(ce,xe))}l.state=ce}else ce.queue=null}var kr={id:1,overflow:""};function Qt(l,k,O){var J=l.id;l=l.overflow;var de=32-sn(J)-1;J&=~(1<<de),O+=1;var ce=32-sn(k)+de;if(30<ce){var ye=de-de%5;return ce=(J&(1<<ye)-1).toString(32),J>>=ye,de-=ye,{id:1<<32-sn(k)+de|O<<de|J,overflow:ce+l}}return{id:1<<ce|O<<de|J,overflow:l}}var sn=Math.clz32?Math.clz32:Vn,No=Math.log,Uo=Math.LN2;function Vn(l){return l>>>=0,l===0?32:31-(No(l)/Uo|0)|0}function Oo(l,k){return l===k&&(l!==0||1/l===1/k)||l!==l&&k!==k}var Qn=typeof Object.is=="function"?Object.is:Oo,Kt=null,an=null,xn=null,Je=null,ar=!1,Et=!1,Rr=0,cr=null,kn=0;function fr(){if(Kt===null)throw Error(u(321));return Kt}function Lt(){if(0<kn)throw Error(u(312));return{memoizedState:null,queue:null,next:null}}function Kn(){return Je===null?xn===null?(ar=!1,xn=Je=Lt()):(ar=!0,Je=xn):Je.next===null?(ar=!1,Je=Je.next=Lt()):(ar=!0,Je=Je.next),Je}function qn(){an=Kt=null,Et=!1,xn=null,kn=0,Je=cr=null}function _i(l,k){return typeof k=="function"?k(l):k}function Bi(l,k,O){if(Kt=fr(),Je=Kn(),ar){var J=Je.queue;if(k=J.dispatch,cr!==null&&(O=cr.get(J),O!==void 0)){cr.delete(J),J=Je.memoizedState;do J=l(J,O.action),O=O.next;while(O!==null);return Je.memoizedState=J,[J,k]}return[Je.memoizedState,k]}return l=l===_i?typeof k=="function"?k():k:O!==void 0?O(k):k,Je.memoizedState=l,l=Je.queue={last:null,dispatch:null},l=l.dispatch=jo.bind(null,Kt,l),[Je.memoizedState,l]}function Ni(l,k){if(Kt=fr(),Je=Kn(),k=k===void 0?null:k,Je!==null){var O=Je.memoizedState;if(O!==null&&k!==null){var J=O[1];e:if(J===null)J=!1;else{for(var de=0;de<J.length&&de<k.length;de++)if(!Qn(k[de],J[de])){J=!1;break e}J=!0}if(J)return O[0]}}return l=l(),Je.memoizedState=[l,k],l}function jo(l,k,O){if(25<=kn)throw Error(u(301));if(l===Kt)if(Et=!0,l={action:O,next:null},cr===null&&(cr=new Map),O=cr.get(k),O===void 0)cr.set(k,l);else{for(k=O;k.next!==null;)k=k.next;k.next=l}}function $o(){throw Error(u(394))}function Rn(){}var Tn={readContext:function(l){return l._currentValue},useContext:function(l){return fr(),l._currentValue},useMemo:Ni,useReducer:Bi,useRef:function(l){Kt=fr(),Je=Kn();var k=Je.memoizedState;return k===null?(l={current:l},Je.memoizedState=l):k},useState:function(l){return Bi(_i,l)},useInsertionEffect:Rn,useLayoutEffect:function(){},useCallback:function(l,k){return Ni(function(){return l},k)},useImperativeHandle:Rn,useEffect:Rn,useDebugValue:Rn,useDeferredValue:function(l){return fr(),l},useTransition:function(){return fr(),[!1,$o]},useId:function(){var l=an.treeContext,k=l.overflow;l=l.id,l=(l&~(1<<32-sn(l)-1)).toString(32)+k;var O=Ln;if(O===null)throw Error(u(404));return k=Rr++,l=":"+O.idPrefix+"R"+l,0<k&&(l+="H"+k.toString(32)),l+":"},useMutableSource:function(l,k){return fr(),k(l._source)},useSyncExternalStore:function(l,k,O){if(O===void 0)throw Error(u(407));return O()}},Ln=null,cn=R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function zo(l){return console.error(l),null}function fn(){}function ei(l,k,O,J,de,ce,ye,xe,_e){var je=[],Oe=new Set;return k={destination:null,responseState:k,progressiveChunkSize:J===void 0?12800:J,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Oe,pingedTasks:je,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:de===void 0?zo:de,onAllReady:ce===void 0?fn:ce,onShellReady:ye===void 0?fn:ye,onShellError:xe===void 0?fn:xe,onFatalError:_e===void 0?fn:_e},O=zr(k,0,null,O,!1,!1),O.parentFlushed=!0,l=ti(k,l,null,O,Oe,Fe,null,kr),je.push(l),k}function ti(l,k,O,J,de,ce,ye,xe){l.allPendingTasks++,O===null?l.pendingRootTasks++:O.pendingTasks++;var _e={node:k,ping:function(){var je=l.pingedTasks;je.push(_e),je.length===1&&Wi(l)},blockedBoundary:O,blockedSegment:J,abortSet:de,legacyContext:ce,context:ye,treeContext:xe};return de.add(_e),_e}function zr(l,k,O,J,de,ce){return{status:0,id:-1,index:k,parentFlushed:!1,chunks:[],children:[],formatContext:J,boundary:O,lastPushedText:de,textEmbedded:ce}}function Wr(l,k){if(l=l.onError(k),l!=null&&typeof l!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof l+'" instead');return l}function In(l,k){var O=l.onShellError;O(k),O=l.onFatalError,O(k),l.destination!==null?(l.status=2,T(l.destination,k)):(l.status=1,l.fatalError=k)}function Ui(l,k,O,J,de){for(Kt={},an=k,Rr=0,l=O(J,de);Et;)Et=!1,Rr=0,kn+=1,Je=null,l=O(J,de);return qn(),l}function ri(l,k,O,J){var de=O.render(),ce=J.childContextTypes;if(ce!=null){var ye=k.legacyContext;if(typeof O.getChildContext!="function")J=ye;else{O=O.getChildContext();for(var xe in O)if(!(xe in ce))throw Error(u(108,Se(J)||"Unknown",xe));J=jt({},ye,O)}k.legacyContext=J,At(l,k,de),k.legacyContext=ye}else At(l,k,de)}function Oi(l,k){if(l&&l.defaultProps){k=jt({},k),l=l.defaultProps;for(var O in l)k[O]===void 0&&(k[O]=l[O]);return k}return k}function Cn(l,k,O,J,de){if(typeof O=="function")if(O.prototype&&O.prototype.isReactComponent){de=He(O,k.legacyContext);var ce=O.contextType;ce=new O(J,typeof ce=="object"&&ce!==null?ce._currentValue:de),sr(ce,O,J,de),ri(l,k,ce,O)}else{ce=He(O,k.legacyContext),de=Ui(l,k,O,J,ce);var ye=Rr!==0;if(typeof de=="object"&&de!==null&&typeof de.render=="function"&&de.$$typeof===void 0)sr(de,O,J,ce),ri(l,k,de,O);else if(ye){J=k.treeContext,k.treeContext=Qt(J,1,0);try{At(l,k,de)}finally{k.treeContext=J}}else At(l,k,de)}else if(typeof O=="string"){switch(de=k.blockedSegment,ce=hr(de.chunks,O,J,l.responseState,de.formatContext),de.lastPushedText=!1,ye=de.formatContext,de.formatContext=te(ye,O,J),Pn(l,k,ce),de.formatContext=ye,O){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:de.chunks.push(br,s(O),yr)}de.lastPushedText=!1}else{switch(O){case fe:case Y:case on:case ln:case lr:At(l,k,J.children);return;case jr:At(l,k,J.children);return;case j:throw Error(u(343));case Or:e:{O=k.blockedBoundary,de=k.blockedSegment,ce=J.fallback,J=J.children,ye=new Set;var xe={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:ye,errorDigest:null},_e=zr(l,de.chunks.length,xe,de.formatContext,!1,!1);de.children.push(_e),de.lastPushedText=!1;var je=zr(l,0,null,de.formatContext,!1,!1);je.parentFlushed=!0,k.blockedBoundary=xe,k.blockedSegment=je;try{if(Pn(l,k,J),je.lastPushedText&&je.textEmbedded&&je.chunks.push(ae),je.status=1,Fn(xe,je),xe.pendingTasks===0)break e}catch(Oe){je.status=4,xe.forceClientRender=!0,xe.errorDigest=Wr(l,Oe)}finally{k.blockedBoundary=O,k.blockedSegment=de}k=ti(l,ce,O,_e,ye,k.legacyContext,k.context,k.treeContext),l.pingedTasks.push(k)}return}if(typeof O=="object"&&O!==null)switch(O.$$typeof){case un:if(J=Ui(l,k,O.render,J,de),Rr!==0){O=k.treeContext,k.treeContext=Qt(O,1,0);try{At(l,k,J)}finally{k.treeContext=O}}else At(l,k,J);return;case o:O=O.type,J=Oi(O,J),Cn(l,k,O,J,de);return;case Ur:if(de=J.children,O=O._context,J=J.value,ce=O._currentValue,O._currentValue=J,ye=Me,Me=J={parent:ye,depth:ye===null?0:ye.depth+1,context:O,parentValue:ce,value:J},k.context=J,At(l,k,de),l=Me,l===null)throw Error(u(403));J=l.parentValue,l.context._currentValue=J===ue?l.context._defaultValue:J,l=Me=l.parent,k.context=l;return;case ur:J=J.children,J=J(O._currentValue),At(l,k,J);return;case x:de=O._init,O=de(O._payload),J=Oi(O,J),Cn(l,k,O,J,void 0);return}throw Error(u(130,O==null?O:typeof O,""))}}function At(l,k,O){if(k.node=O,typeof O=="object"&&O!==null){switch(O.$$typeof){case bt:Cn(l,k,O.type,O.props,O.ref);return;case Zt:throw Error(u(257));case x:var J=O._init;O=J(O._payload),At(l,k,O);return}if(re(O)){ji(l,k,O);return}if(O===null||typeof O!="object"?J=null:(J=he&&O[he]||O["@@iterator"],J=typeof J=="function"?J:null),J&&(J=J.call(O))){if(O=J.next(),!O.done){var de=[];do de.push(O.value),O=J.next();while(!O.done);ji(l,k,de)}return}throw l=Object.prototype.toString.call(O),Error(u(31,l==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":l))}typeof O=="string"?(J=k.blockedSegment,J.lastPushedText=Ae(k.blockedSegment.chunks,O,l.responseState,J.lastPushedText)):typeof O=="number"&&(J=k.blockedSegment,J.lastPushedText=Ae(k.blockedSegment.chunks,""+O,l.responseState,J.lastPushedText))}function ji(l,k,O){for(var J=O.length,de=0;de<J;de++){var ce=k.treeContext;k.treeContext=Qt(ce,J,de);try{Pn(l,k,O[de])}finally{k.treeContext=ce}}}function Pn(l,k,O){var J=k.blockedSegment.formatContext,de=k.legacyContext,ce=k.context;try{return At(l,k,O)}catch(_e){if(qn(),typeof _e=="object"&&_e!==null&&typeof _e.then=="function"){O=_e;var ye=k.blockedSegment,xe=zr(l,ye.chunks.length,null,ye.formatContext,ye.lastPushedText,!0);ye.children.push(xe),ye.lastPushedText=!1,l=ti(l,k.node,k.blockedBoundary,xe,k.abortSet,k.legacyContext,k.context,k.treeContext).ping,O.then(l,l),k.blockedSegment.formatContext=J,k.legacyContext=de,k.context=ce,Tt(ce)}else throw k.blockedSegment.formatContext=J,k.legacyContext=de,k.context=ce,Tt(ce),_e}}function Wo(l){var k=l.blockedBoundary;l=l.blockedSegment,l.status=3,zi(this,k,l)}function $i(l,k,O){var J=l.blockedBoundary;l.blockedSegment.status=3,J===null?(k.allPendingTasks--,k.status!==2&&(k.status=2,k.destination!==null&&k.destination.close())):(J.pendingTasks--,J.forceClientRender||(J.forceClientRender=!0,l=O===void 0?Error(u(432)):O,J.errorDigest=k.onError(l),J.parentFlushed&&k.clientRenderedBoundaries.push(J)),J.fallbackAbortableTasks.forEach(function(de){return $i(de,k,O)}),J.fallbackAbortableTasks.clear(),k.allPendingTasks--,k.allPendingTasks===0&&(J=k.onAllReady,J()))}function Fn(l,k){if(k.chunks.length===0&&k.children.length===1&&k.children[0].boundary===null){var O=k.children[0];O.id=k.id,O.parentFlushed=!0,O.status===1&&Fn(l,O)}else l.completedSegments.push(k)}function zi(l,k,O){if(k===null){if(O.parentFlushed){if(l.completedRootSegment!==null)throw Error(u(389));l.completedRootSegment=O}l.pendingRootTasks--,l.pendingRootTasks===0&&(l.onShellError=fn,k=l.onShellReady,k())}else k.pendingTasks--,k.forceClientRender||(k.pendingTasks===0?(O.parentFlushed&&O.status===1&&Fn(k,O),k.parentFlushed&&l.completedBoundaries.push(k),k.fallbackAbortableTasks.forEach(Wo,l),k.fallbackAbortableTasks.clear()):O.parentFlushed&&O.status===1&&(Fn(k,O),k.completedSegments.length===1&&k.parentFlushed&&l.partialBoundaries.push(k)));l.allPendingTasks--,l.allPendingTasks===0&&(l=l.onAllReady,l())}function Wi(l){if(l.status!==2){var k=Me,O=cn.current;cn.current=Tn;var J=Ln;Ln=l.responseState;try{var de=l.pingedTasks,ce;for(ce=0;ce<de.length;ce++){var ye=de[ce],xe=l,_e=ye.blockedSegment;if(_e.status===0){Tt(ye.context);try{At(xe,ye,ye.node),_e.lastPushedText&&_e.textEmbedded&&_e.chunks.push(ae),ye.abortSet.delete(ye),_e.status=1,zi(xe,ye.blockedBoundary,_e)}catch(Ct){if(qn(),typeof Ct=="object"&&Ct!==null&&typeof Ct.then=="function"){var je=ye.ping;Ct.then(je,je)}else{ye.abortSet.delete(ye),_e.status=4;var Oe=ye.blockedBoundary,Ze=Ct,wt=Wr(xe,Ze);if(Oe===null?In(xe,Ze):(Oe.pendingTasks--,Oe.forceClientRender||(Oe.forceClientRender=!0,Oe.errorDigest=wt,Oe.parentFlushed&&xe.clientRenderedBoundaries.push(Oe))),xe.allPendingTasks--,xe.allPendingTasks===0){var It=xe.onAllReady;It()}}}finally{}}}de.splice(0,ce),l.destination!==null&&ni(l,l.destination)}catch(Ct){Wr(l,Ct),In(l,Ct)}finally{Ln=J,cn.current=O,O===Tn&&Tt(k)}}}function Dn(l,k,O){switch(O.parentFlushed=!0,O.status){case 0:var J=O.id=l.nextSegmentId++;return O.lastPushedText=!1,O.textEmbedded=!1,l=l.responseState,i(k,qe),i(k,l.placeholderPrefix),l=s(J.toString(16)),i(k,l),b(k,gr);case 1:O.status=2;var de=!0;J=O.chunks;var ce=0;O=O.children;for(var ye=0;ye<O.length;ye++){for(de=O[ye];ce<de.index;ce++)i(k,J[ce]);de=Mn(l,k,de)}for(;ce<J.length-1;ce++)i(k,J[ce]);return ce<J.length&&(de=b(k,J[ce])),de;default:throw Error(u(390))}}function Mn(l,k,O){var J=O.boundary;if(J===null)return Dn(l,k,O);if(J.parentFlushed=!0,J.forceClientRender)J=J.errorDigest,b(k,er),i(k,Vr),J&&(i(k,Qr),i(k,s(M(J))),i(k,tr)),b(k,wn),Dn(l,k,O);else if(0<J.pendingTasks){J.rootSegmentID=l.nextSegmentId++,0<J.completedSegments.length&&l.partialBoundaries.push(J);var de=l.responseState,ce=de.nextSuspenseID++;de=a(de.boundaryPrefix+ce.toString(16)),J=J.id=de,ht(k,l.responseState,J),Dn(l,k,O)}else if(J.byteSize>l.progressiveChunkSize)J.rootSegmentID=l.nextSegmentId++,l.completedBoundaries.push(J),ht(k,l.responseState,J.id),Dn(l,k,O);else{if(b(k,Fr),O=J.completedSegments,O.length!==1)throw Error(u(391));Mn(l,k,O[0])}return b(k,Yn)}function Gi(l,k,O){return wr(k,l.responseState,O.formatContext,O.id),Mn(l,k,O),ir(k,O.formatContext)}function Yi(l,k,O){for(var J=O.completedSegments,de=0;de<J.length;de++)Ji(l,k,O,J[de]);if(J.length=0,l=l.responseState,J=O.id,O=O.rootSegmentID,i(k,l.startInlineScript),l.sentCompleteBoundaryFunction?i(k,Nt):(l.sentCompleteBoundaryFunction=!0,i(k,Xt)),J===null)throw Error(u(395));return O=s(O.toString(16)),i(k,J),i(k,Sr),i(k,l.segmentPrefix),i(k,O),b(k,xr)}function Ji(l,k,O,J){if(J.status===2)return!0;var de=J.id;if(de===-1){if((J.id=O.rootSegmentID)===-1)throw Error(u(392));return Gi(l,k,J)}return Gi(l,k,J),l=l.responseState,i(k,l.startInlineScript),l.sentCompleteSegmentFunction?i(k,nn):(l.sentCompleteSegmentFunction=!0,i(k,Zn)),i(k,l.segmentPrefix),de=s(de.toString(16)),i(k,de),i(k,Br),i(k,l.placeholderPrefix),i(k,de),b(k,or)}function ni(l,k){f=new Uint8Array(512),h=0;try{var O=l.completedRootSegment;if(O!==null&&l.pendingRootTasks===0){Mn(l,k,O),l.completedRootSegment=null;var J=l.responseState.bootstrapChunks;for(O=0;O<J.length-1;O++)i(k,J[O]);O<J.length&&b(k,J[O])}var de=l.clientRenderedBoundaries,ce;for(ce=0;ce<de.length;ce++){var ye=de[ce];J=k;var xe=l.responseState,_e=ye.id,je=ye.errorDigest,Oe=ye.errorMessage,Ze=ye.errorComponentStack;if(i(J,xe.startInlineScript),xe.sentClientRenderFunction?i(J,et):(xe.sentClientRenderFunction=!0,i(J,kt)),_e===null)throw Error(u(395));i(J,_e),i(J,Ut),(je||Oe||Ze)&&(i(J,ut),i(J,s(Ot(je||"")))),(Oe||Ze)&&(i(J,ut),i(J,s(Ot(Oe||"")))),Ze&&(i(J,ut),i(J,s(Ot(Ze)))),b(J,Rt)}de.splice(0,ce);var wt=l.completedBoundaries;for(ce=0;ce<wt.length;ce++)Yi(l,k,wt[ce]);wt.splice(0,ce),S(k),f=new Uint8Array(512),h=0;var It=l.partialBoundaries;for(ce=0;ce<It.length;ce++){var Ct=It[ce];e:{de=l,ye=k;var Hn=Ct.completedSegments;for(xe=0;xe<Hn.length;xe++)if(!Ji(de,ye,Ct,Hn[xe])){xe++,Hn.splice(0,xe);var Zi=!1;break e}Hn.splice(0,xe),Zi=!0}if(!Zi){l.destination=null,ce++,It.splice(0,ce);return}}It.splice(0,ce);var ii=l.completedBoundaries;for(ce=0;ce<ii.length;ce++)Yi(l,k,ii[ce]);ii.splice(0,ce)}finally{S(k),l.allPendingTasks===0&&l.pingedTasks.length===0&&l.clientRenderedBoundaries.length===0&&l.completedBoundaries.length===0&&k.close()}}function Xi(l,k){try{var O=l.abortableTasks;O.forEach(function(J){return $i(J,l,k)}),O.clear(),l.destination!==null&&ni(l,l.destination)}catch(J){Wr(l,J),In(l,J)}}return Pu.renderToReadableStream=function(l,k){return new Promise(function(O,J){var de,ce,ye=new Promise(function(Oe,Ze){ce=Oe,de=Ze}),xe=ei(l,se(k?k.identifierPrefix:void 0,k?k.nonce:void 0,k?k.bootstrapScriptContent:void 0,k?k.bootstrapScripts:void 0,k?k.bootstrapModules:void 0),W(k?k.namespaceURI:void 0),k?k.progressiveChunkSize:void 0,k?k.onError:void 0,ce,function(){var Oe=new ReadableStream({type:"bytes",pull:function(Ze){if(xe.status===1)xe.status=2,T(Ze,xe.fatalError);else if(xe.status!==2&&xe.destination===null){xe.destination=Ze;try{ni(xe,Ze)}catch(wt){Wr(xe,wt),In(xe,wt)}}},cancel:function(){Xi(xe)}},{highWaterMark:0});Oe.allReady=ye,O(Oe)},function(Oe){ye.catch(function(){}),J(Oe)},de);if(k&&k.signal){var _e=k.signal,je=function(){Xi(xe,_e.reason),_e.removeEventListener("abort",je)};_e.addEventListener("abort",je)}Wi(xe)})},Pu.version="18.3.1",Pu}var Pi={};/**
|
|
28
|
+
* @license React
|
|
29
|
+
* react-dom-server-legacy.browser.development.js
|
|
30
|
+
*
|
|
31
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
32
|
+
*
|
|
33
|
+
* This source code is licensed under the MIT license found in the
|
|
34
|
+
* LICENSE file in the root directory of this source tree.
|
|
35
|
+
*/var qs;function Gd(){return qs||(qs=1,process.env.NODE_ENV!=="production"&&function(){var R=H.default,u="18.3.1",f=R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function h(e){{for(var r=arguments.length,d=new Array(r>1?r-1:0),g=1;g<r;g++)d[g-1]=arguments[g];b("warn",e,d)}}function i(e){{for(var r=arguments.length,d=new Array(r>1?r-1:0),g=1;g<r;g++)d[g-1]=arguments[g];b("error",e,d)}}function b(e,r,d){{var g=f.ReactDebugCurrentFrame,N=g.getStackAddendum();N!==""&&(r+="%s",d=d.concat([N]));var X=d.map(function(ee){return String(ee)});X.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,X)}}function S(e){e()}function y(e){}function s(e,r){a(e,r)}function a(e,r){return e.push(r)}function T(e){}function p(e){e.push(null)}function A(e){return e}function P(e){return e}function F(e,r){e.destroy(r)}function w(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,d=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return d}}function v(e){try{return c(e),!1}catch{return!0}}function c(e){return""+e}function C(e,r){if(v(e))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",r,w(e)),c(e)}function _(e,r){if(v(e))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",r,w(e)),c(e)}function D(e){if(v(e))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",w(e)),c(e)}var E=Object.prototype.hasOwnProperty,B=0,M=1,G=2,$=3,re=4,K=5,Z=6,U=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",le=U+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",me=new RegExp("^["+U+"]["+le+"]*$"),Q={},oe={};function se(e){return E.call(oe,e)?!0:E.call(Q,e)?!1:me.test(e)?(oe[e]=!0,!0):(Q[e]=!0,i("Invalid attribute name: `%s`",e),!1)}function ie(e,r,d,g){if(d!==null&&d.type===B)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":{if(g)return!1;if(d!==null)return!d.acceptsBooleans;var N=e.toLowerCase().slice(0,5);return N!=="data-"&&N!=="aria-"}default:return!1}}function W(e){return ae.hasOwnProperty(e)?ae[e]:null}function te(e,r,d,g,N,X,ee){this.acceptsBooleans=r===G||r===$||r===re,this.attributeName=g,this.attributeNamespace=N,this.mustUseProperty=d,this.propertyName=e,this.type=r,this.sanitizeURL=X,this.removeEmptyString=ee}var ae={},Ae=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Ae.forEach(function(e){ae[e]=new te(e,B,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var r=e[0],d=e[1];ae[r]=new te(r,M,!1,d,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ae[e]=new te(e,G,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ae[e]=new te(e,G,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){ae[e]=new te(e,$,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){ae[e]=new te(e,$,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){ae[e]=new te(e,re,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){ae[e]=new te(e,Z,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){ae[e]=new te(e,K,!1,e.toLowerCase(),null,!1,!1)});var ke=/[\-\:]([a-z])/g,be=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var r=e.replace(ke,be);ae[r]=new te(r,M,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var r=e.replace(ke,be);ae[r]=new te(r,M,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var r=e.replace(ke,be);ae[r]=new te(r,M,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){ae[e]=new te(e,M,!1,e.toLowerCase(),null,!1,!1)});var q="xlinkHref";ae[q]=new te("xlinkHref",M,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){ae[e]=new te(e,M,!1,e.toLowerCase(),null,!0,!0)});var ge={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Re(e,r){return e+r.charAt(0).toUpperCase()+r.substring(1)}var Ee=["Webkit","ms","Moz","O"];Object.keys(ge).forEach(function(e){Ee.forEach(function(r){ge[Re(r,e)]=ge[e]})});var Te={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Ie(e,r){Te[r.type]||r.onChange||r.onInput||r.readOnly||r.disabled||r.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),r.onChange||r.readOnly||r.disabled||r.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Ne(e,r){if(e.indexOf("-")===-1)return typeof r.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Pe={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Ce={},Ve=new RegExp("^(aria)-["+le+"]*$"),ct=new RegExp("^(aria)[A-Z]["+le+"]*$");function xt(e,r){{if(E.call(Ce,r)&&Ce[r])return!0;if(ct.test(r)){var d="aria-"+r.slice(4).toLowerCase(),g=Pe.hasOwnProperty(d)?d:null;if(g==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",r),Ce[r]=!0,!0;if(r!==g)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",r,g),Ce[r]=!0,!0}if(Ve.test(r)){var N=r.toLowerCase(),X=Pe.hasOwnProperty(N)?N:null;if(X==null)return Ce[r]=!0,!1;if(r!==X)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",r,X),Ce[r]=!0,!0}}return!0}function ot(e,r){{var d=[];for(var g in r){var N=xt(e,g);N||d.push(g)}var X=d.map(function(ee){return"`"+ee+"`"}).join(", ");d.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",X,e):d.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",X,e)}}function ft(e,r){Ne(e,r)||ot(e,r)}var Xe=!1;function We(e,r){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;r!=null&&r.value===null&&!Xe&&(Xe=!0,e==="select"&&r.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var yt={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},lt=function(){};{var rt={},hr=/^on./,br=/^on[^A-Z]/,yr=new RegExp("^(aria)-["+le+"]*$"),qe=new RegExp("^(aria)[A-Z]["+le+"]*$");lt=function(e,r,d,g){if(E.call(rt,r)&&rt[r])return!0;var N=r.toLowerCase();if(N==="onfocusin"||N==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),rt[r]=!0,!0;if(g!=null){var X=g.registrationNameDependencies,ee=g.possibleRegistrationNames;if(X.hasOwnProperty(r))return!0;var pe=ee.hasOwnProperty(N)?ee[N]:null;if(pe!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",r,pe),rt[r]=!0,!0;if(hr.test(r))return i("Unknown event handler property `%s`. It will be ignored.",r),rt[r]=!0,!0}else if(hr.test(r))return br.test(r)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",r),rt[r]=!0,!0;if(yr.test(r)||qe.test(r))return!0;if(N==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),rt[r]=!0,!0;if(N==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),rt[r]=!0,!0;if(N==="is"&&d!==null&&d!==void 0&&typeof d!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof d),rt[r]=!0,!0;if(typeof d=="number"&&isNaN(d))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",r),rt[r]=!0,!0;var we=W(r),Le=we!==null&&we.type===B;if(yt.hasOwnProperty(N)){var De=yt[N];if(De!==r)return i("Invalid DOM property `%s`. Did you mean `%s`?",r,De),rt[r]=!0,!0}else if(!Le&&r!==N)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",r,N),rt[r]=!0,!0;return typeof d=="boolean"&&ie(r,d,we,!1)?(d?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',d,r,r,d,r):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',d,r,r,d,r,r,r),rt[r]=!0,!0):Le?!0:ie(r,d,we,!1)?(rt[r]=!0,!1):((d==="false"||d==="true")&&we!==null&&we.type===$&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",d,r,d==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',r,d),rt[r]=!0),!0)}}var gr=function(e,r,d){{var g=[];for(var N in r){var X=lt(e,N,r[N],d);X||g.push(N)}var ee=g.map(function(pe){return"`"+pe+"`"}).join(", ");g.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",ee,e):g.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",ee,e)}};function Fr(e,r,d){Ne(e,r)||gr(e,r,d)}var Dr=function(){};{var Er=/^(?:webkit|moz|o)[A-Z]/,er=/^-ms-/,Yn=/-(.)/g,Vr=/;\s*$/,tr={},Qr={},wn=!1,ht=!1,Ht=function(e){return e.replace(Yn,function(r,d){return d.toUpperCase()})},rr=function(e){tr.hasOwnProperty(e)&&tr[e]||(tr[e]=!0,i("Unsupported style property %s. Did you mean %s?",e,Ht(e.replace(er,"ms-"))))},Ge=function(e){tr.hasOwnProperty(e)&&tr[e]||(tr[e]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},nr=function(e,r){Qr.hasOwnProperty(r)&&Qr[r]||(Qr[r]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,r.replace(Vr,"")))},Mr=function(e,r){wn||(wn=!0,i("`NaN` is an invalid value for the `%s` css style property.",e))},Ar=function(e,r){ht||(ht=!0,i("`Infinity` is an invalid value for the `%s` css style property.",e))};Dr=function(e,r){e.indexOf("-")>-1?rr(e):Er.test(e)?Ge(e):Vr.test(r)&&nr(e,r),typeof r=="number"&&(isNaN(r)?Mr(e,r):isFinite(r)||Ar(e,r))}}var _t=Dr,Hr=/["'&<>]/;function Jt(e){D(e);var r=""+e,d=Hr.exec(r);if(!d)return r;var g,N="",X,ee=0;for(X=d.index;X<r.length;X++){switch(r.charCodeAt(X)){case 34:g=""";break;case 38:g="&";break;case 39:g="'";break;case 60:g="<";break;case 62:g=">";break;default:continue}ee!==X&&(N+=r.substring(ee,X)),ee=X+1,N+=g}return ee!==X?N+r.substring(ee,X):N}function nt(e){return typeof e=="boolean"||typeof e=="number"?""+e:Jt(e)}var Kr=/([A-Z])/g,qr=/^ms-/;function Sn(e){return e.replace(Kr,"-$1").toLowerCase().replace(qr,"-ms-")}var it=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,en=!1;function Jn(e){!en&&it.test(e)&&(en=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}var Xn=Array.isArray;function Bt(e){return Xn(e)}var tn="<script>",_r="<\/script>",rn='<script src="',wr='<script type="module" src="',ir='" async=""><\/script>';function Zn(e){return D(e),(""+e).replace(nn,Br)}var nn=/(<\/|<)(s)(cript)/gi,Br=function(e,r,d,g){return""+r+(d==="s"?"\\u0073":"\\u0053")+g};function or(e,r,d,g,N){var X=e===void 0?"":e,ee=r===void 0?tn:'<script nonce="'+nt(r)+'">',pe=[];if(d!==void 0&&pe.push(ee,Zn(d),_r),g!==void 0)for(var we=0;we<g.length;we++)pe.push(rn,nt(g[we]),ir);if(N!==void 0)for(var Le=0;Le<N.length;Le++)pe.push(wr,nt(N[Le]),ir);return{bootstrapChunks:pe,startInlineScript:ee,placeholderPrefix:X+"P:",segmentPrefix:X+"S:",boundaryPrefix:X+"B:",idPrefix:X,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Xt=0,Nt=1,Sr=2,xr=3,kt=4,et=5,Ut=6,Rt=7;function ut(e,r){return{insertionMode:e,selectedValue:r}}function Nr(e,r,d){switch(r){case"select":return ut(Nt,d.value!=null?d.value:d.defaultValue);case"svg":return ut(Sr,null);case"math":return ut(xr,null);case"foreignObject":return ut(Nt,null);case"table":return ut(kt,null);case"thead":case"tbody":case"tfoot":return ut(et,null);case"colgroup":return ut(Rt,null);case"tr":return ut(Ut,null)}return e.insertionMode>=kt||e.insertionMode===Xt?ut(Nt,null):e}var Ot=null;function jt(e){var r=e.nextSuspenseID++;return e.boundaryPrefix+r.toString(16)}function bt(e,r,d){var g=e.idPrefix,N=":"+g+"R"+r;return d>0&&(N+="H"+d.toString(32)),N+":"}function Zt(e){return nt(e)}var lr="<!-- -->";function on(e,r,d,g){return r===""?g:(g&&e.push(lr),e.push(Zt(r)),!0)}function ln(e,r,d,g){d&&g&&e.push(lr)}var Ur=new Map;function ur(e){var r=Ur.get(e);if(r!==void 0)return r;var d=nt(Sn(e));return Ur.set(e,d),d}var un=' style="',Or=":",jr=";";function o(e,r,d){if(typeof d!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var g=!0;for(var N in d)if(E.call(d,N)){var X=d[N];if(!(X==null||typeof X=="boolean"||X==="")){var ee=void 0,pe=void 0,we=N.indexOf("--")===0;we?(ee=nt(N),_(X,N),pe=nt((""+X).trim())):(_t(N,X),ee=ur(N),typeof X=="number"?X!==0&&!E.call(ge,N)?pe=X+"px":pe=""+X:(_(X,N),pe=nt((""+X).trim()))),g?(g=!1,e.push(un,ee,Or,pe)):e.push(jr,ee,Or,pe)}}g||e.push(Y)}var x=" ",j='="',Y='"',fe='=""';function ue(e,r,d,g){switch(d){case"style":{o(e,r,g);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(d.length>2&&(d[0]==="o"||d[0]==="O")&&(d[1]==="n"||d[1]==="N"))){var N=W(d);if(N!==null){switch(typeof g){case"function":case"symbol":return;case"boolean":if(!N.acceptsBooleans)return}var X=N.attributeName,ee=X;switch(N.type){case $:g&&e.push(x,ee,fe);return;case re:g===!0?e.push(x,ee,fe):g===!1||e.push(x,ee,j,nt(g),Y);return;case K:isNaN(g)||e.push(x,ee,j,nt(g),Y);break;case Z:!isNaN(g)&&g>=1&&e.push(x,ee,j,nt(g),Y);break;default:N.sanitizeURL&&(C(g,X),g=""+g,Jn(g)),e.push(x,ee,j,nt(g),Y)}}else if(se(d)){switch(typeof g){case"function":case"symbol":return;case"boolean":{var pe=d.toLowerCase().slice(0,5);if(pe!=="data-"&&pe!=="aria-")return}}e.push(x,d,j,nt(g),Y)}}}var he=">",Se="/>";function Fe(e,r,d){if(r!=null){if(d!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof r!="object"||!("__html"in r))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var g=r.__html;g!=null&&(D(g),e.push(""+g))}}var He=!1,Me=!1,$e=!1,gt=!1,dt=!1,pt=!1,Vt=!1;function Tt(e,r){{var d=e[r];if(d!=null){var g=Bt(d);e.multiple&&!g?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",r):!e.multiple&&g&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",r)}}}function $r(e,r,d){Ie("select",r),Tt(r,"value"),Tt(r,"defaultValue"),r.value!==void 0&&r.defaultValue!==void 0&&!$e&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),$e=!0),e.push(Et("select"));var g=null,N=null;for(var X in r)if(E.call(r,X)){var ee=r[X];if(ee==null)continue;switch(X){case"children":g=ee;break;case"dangerouslySetInnerHTML":N=ee;break;case"defaultValue":case"value":break;default:ue(e,d,X,ee);break}}return e.push(he),Fe(e,N,g),g}function sr(e){var r="";return R.Children.forEach(e,function(d){d!=null&&(r+=d,!dt&&typeof d!="string"&&typeof d!="number"&&(dt=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),r}var kr=' selected=""';function Qt(e,r,d,g){var N=g.selectedValue;e.push(Et("option"));var X=null,ee=null,pe=null,we=null;for(var Le in r)if(E.call(r,Le)){var De=r[Le];if(De==null)continue;switch(Le){case"children":X=De;break;case"selected":pe=De,Vt||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Vt=!0);break;case"dangerouslySetInnerHTML":we=De;break;case"value":ee=De;default:ue(e,d,Le,De);break}}if(N!=null){var Ue;if(ee!==null?(C(ee,"value"),Ue=""+ee):(we!==null&&(pt||(pt=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Ue=sr(X)),Bt(N))for(var Ke=0;Ke<N.length;Ke++){C(N[Ke],"value");var mt=""+N[Ke];if(mt===Ue){e.push(kr);break}}else C(N,"select.value"),""+N===Ue&&e.push(kr)}else pe&&e.push(kr);return e.push(he),Fe(e,we,X),X}function sn(e,r,d){Ie("input",r),r.checked!==void 0&&r.defaultChecked!==void 0&&!Me&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",r.type),Me=!0),r.value!==void 0&&r.defaultValue!==void 0&&!He&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",r.type),He=!0),e.push(Et("input"));var g=null,N=null,X=null,ee=null;for(var pe in r)if(E.call(r,pe)){var we=r[pe];if(we==null)continue;switch(pe){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":ee=we;break;case"defaultValue":N=we;break;case"checked":X=we;break;case"value":g=we;break;default:ue(e,d,pe,we);break}}return X!==null?ue(e,d,"checked",X):ee!==null&&ue(e,d,"checked",ee),g!==null?ue(e,d,"value",g):N!==null&&ue(e,d,"value",N),e.push(Se),null}function No(e,r,d){Ie("textarea",r),r.value!==void 0&&r.defaultValue!==void 0&&!gt&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),gt=!0),e.push(Et("textarea"));var g=null,N=null,X=null;for(var ee in r)if(E.call(r,ee)){var pe=r[ee];if(pe==null)continue;switch(ee){case"children":X=pe;break;case"value":g=pe;break;case"defaultValue":N=pe;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:ue(e,d,ee,pe);break}}if(g===null&&N!==null&&(g=N),e.push(he),X!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),g!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Bt(X)){if(X.length>1)throw new Error("<textarea> can only have at most one child.");D(X[0]),g=""+X[0]}D(X),g=""+X}return typeof g=="string"&&g[0]===`
|
|
36
|
+
`&&e.push(an),g!==null&&(C(g,"value"),e.push(Zt(""+g))),null}function Uo(e,r,d,g){e.push(Et(d));for(var N in r)if(E.call(r,N)){var X=r[N];if(X==null)continue;switch(N){case"children":case"dangerouslySetInnerHTML":throw new Error(d+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ue(e,g,N,X);break}}return e.push(Se),null}function Vn(e,r,d){e.push(Et("menuitem"));for(var g in r)if(E.call(r,g)){var N=r[g];if(N==null)continue;switch(g){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:ue(e,d,g,N);break}}return e.push(he),null}function Oo(e,r,d){e.push(Et("title"));var g=null;for(var N in r)if(E.call(r,N)){var X=r[N];if(X==null)continue;switch(N){case"children":g=X;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:ue(e,d,N,X);break}}e.push(he);{var ee=Array.isArray(g)&&g.length<2?g[0]||null:g;Array.isArray(g)&&g.length>1?i("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):ee!=null&&ee.$$typeof!=null?i("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):ee!=null&&typeof ee!="string"&&typeof ee!="number"&&i("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return g}function Qn(e,r,d,g){e.push(Et(d));var N=null,X=null;for(var ee in r)if(E.call(r,ee)){var pe=r[ee];if(pe==null)continue;switch(ee){case"children":N=pe;break;case"dangerouslySetInnerHTML":X=pe;break;default:ue(e,g,ee,pe);break}}return e.push(he),Fe(e,X,N),typeof N=="string"?(e.push(Zt(N)),null):N}function Kt(e,r,d,g){e.push(Et(d));var N=null,X=null;for(var ee in r)if(E.call(r,ee)){var pe=r[ee];if(pe==null)continue;switch(ee){case"children":N=pe;break;case"dangerouslySetInnerHTML":X=pe;break;case"style":o(e,g,pe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:se(ee)&&typeof pe!="function"&&typeof pe!="symbol"&&e.push(x,ee,j,nt(pe),Y);break}}return e.push(he),Fe(e,X,N),N}var an=`
|
|
37
|
+
`;function xn(e,r,d,g){e.push(Et(d));var N=null,X=null;for(var ee in r)if(E.call(r,ee)){var pe=r[ee];if(pe==null)continue;switch(ee){case"children":N=pe;break;case"dangerouslySetInnerHTML":X=pe;break;default:ue(e,g,ee,pe);break}}if(e.push(he),X!=null){if(N!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof X!="object"||!("__html"in X))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var we=X.__html;we!=null&&(typeof we=="string"&&we.length>0&&we[0]===`
|
|
38
|
+
`?e.push(an,we):(D(we),e.push(""+we)))}return typeof N=="string"&&N[0]===`
|
|
39
|
+
`&&e.push(an),N}var Je=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ar=new Map;function Et(e){var r=ar.get(e);if(r===void 0){if(!Je.test(e))throw new Error("Invalid tag: "+e);r="<"+e,ar.set(e,r)}return r}var Rr="<!DOCTYPE html>";function cr(e,r,d,g,N){switch(ft(r,d),We(r,d),Fr(r,d,null),!d.suppressContentEditableWarning&&d.contentEditable&&d.children!=null&&i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),N.insertionMode!==Sr&&N.insertionMode!==xr&&r.indexOf("-")===-1&&typeof d.is!="string"&&r.toLowerCase()!==r&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),r){case"select":return $r(e,d,g);case"option":return Qt(e,d,g,N);case"textarea":return No(e,d,g);case"input":return sn(e,d,g);case"menuitem":return Vn(e,d,g);case"title":return Oo(e,d,g);case"listing":case"pre":return xn(e,d,r,g);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return Uo(e,d,r,g);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Qn(e,d,r,g);case"html":return N.insertionMode===Xt&&e.push(Rr),Qn(e,d,r,g);default:return r.indexOf("-")===-1&&typeof d.is!="string"?Qn(e,d,r,g):Kt(e,d,r,g)}}var kn="</",fr=">";function Lt(e,r,d){switch(r){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:e.push(kn,r,fr)}}function Kn(e,r){for(var d=r.bootstrapChunks,g=0;g<d.length-1;g++)s(e,d[g]);return g<d.length?a(e,d[g]):!0}var qn='<template id="',_i='"></template>';function Bi(e,r,d){s(e,qn),s(e,r.placeholderPrefix);var g=d.toString(16);return s(e,g),a(e,_i)}var Ni="<!--$-->",jo='<!--$?--><template id="',$o='"></template>',Rn="<!--$!-->",Tn="<!--/$-->",Ln="<template",cn='"',zo=' data-dgst="',fn=' data-msg="',ei=' data-stck="',ti="></template>";function zr(e,r){return a(e,Ni)}function Wr(e,r,d){if(s(e,jo),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return s(e,d),a(e,$o)}function In(e,r,d,g,N){var X;return X=a(e,Rn),s(e,Ln),d&&(s(e,zo),s(e,nt(d)),s(e,cn)),g&&(s(e,fn),s(e,nt(g)),s(e,cn)),N&&(s(e,ei),s(e,nt(N)),s(e,cn)),X=a(e,ti),X}function Ui(e,r){return a(e,Tn)}function ri(e,r){return a(e,Tn)}function Oi(e,r){return a(e,Tn)}var Cn='<div hidden id="',At='">',ji="</div>",Pn='<svg aria-hidden="true" style="display:none" id="',Wo='">',$i="</svg>",Fn='<math aria-hidden="true" style="display:none" id="',zi='">',Wi="</math>",Dn='<table hidden id="',Mn='">',Gi="</table>",Yi='<table hidden><tbody id="',Ji='">',ni="</tbody></table>",Xi='<table hidden><tr id="',l='">',k="</tr></table>",O='<table hidden><colgroup id="',J='">',de="</colgroup></table>";function ce(e,r,d,g){switch(d.insertionMode){case Xt:case Nt:return s(e,Cn),s(e,r.segmentPrefix),s(e,g.toString(16)),a(e,At);case Sr:return s(e,Pn),s(e,r.segmentPrefix),s(e,g.toString(16)),a(e,Wo);case xr:return s(e,Fn),s(e,r.segmentPrefix),s(e,g.toString(16)),a(e,zi);case kt:return s(e,Dn),s(e,r.segmentPrefix),s(e,g.toString(16)),a(e,Mn);case et:return s(e,Yi),s(e,r.segmentPrefix),s(e,g.toString(16)),a(e,Ji);case Ut:return s(e,Xi),s(e,r.segmentPrefix),s(e,g.toString(16)),a(e,l);case Rt:return s(e,O),s(e,r.segmentPrefix),s(e,g.toString(16)),a(e,J);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function ye(e,r){switch(r.insertionMode){case Xt:case Nt:return a(e,ji);case Sr:return a(e,$i);case xr:return a(e,Wi);case kt:return a(e,Gi);case et:return a(e,ni);case Ut:return a(e,k);case Rt:return a(e,de);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var xe="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",_e='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',je='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',Oe=xe+';$RS("',Ze='$RS("',wt='","',It='")<\/script>';function Ct(e,r,d){s(e,r.startInlineScript),r.sentCompleteSegmentFunction?s(e,Ze):(r.sentCompleteSegmentFunction=!0,s(e,Oe)),s(e,r.segmentPrefix);var g=d.toString(16);return s(e,g),s(e,wt),s(e,r.placeholderPrefix),s(e,g),a(e,It)}var Hn=_e+';$RC("',Zi='$RC("',ii='","',ju='")<\/script>';function $u(e,r,d,g){if(s(e,r.startInlineScript),r.sentCompleteBoundaryFunction?s(e,Zi):(r.sentCompleteBoundaryFunction=!0,s(e,Hn)),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var N=g.toString(16);return s(e,d),s(e,ii),s(e,r.segmentPrefix),s(e,N),a(e,ju)}var zu=je+';$RX("',Wu='$RX("',Gu='"',Yu=")<\/script>",Go=",";function Ju(e,r,d,g,N,X){if(s(e,r.startInlineScript),r.sentClientRenderFunction?s(e,Wu):(r.sentClientRenderFunction=!0,s(e,zu)),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return s(e,d),s(e,Gu),(g||N||X)&&(s(e,Go),s(e,Yo(g||""))),(N||X)&&(s(e,Go),s(e,Yo(N||""))),X&&(s(e,Go),s(e,Yo(X))),a(e,Yu)}var Xu=/[<\u2028\u2029]/g;function Yo(e){var r=JSON.stringify(e);return r.replace(Xu,function(d){switch(d){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function Zu(e,r){var d=or(r,void 0);return{bootstrapChunks:d.bootstrapChunks,startInlineScript:d.startInlineScript,placeholderPrefix:d.placeholderPrefix,segmentPrefix:d.segmentPrefix,boundaryPrefix:d.boundaryPrefix,idPrefix:d.idPrefix,nextSuspenseID:d.nextSuspenseID,sentCompleteSegmentFunction:d.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:d.sentCompleteBoundaryFunction,sentClientRenderFunction:d.sentClientRenderFunction,generateStaticMarkup:e}}function Jo(){return{insertionMode:Nt,selectedValue:null}}function $l(e,r,d,g){return d.generateStaticMarkup?(e.push(nt(r)),!1):on(e,r,d,g)}function zl(e,r,d,g){if(!r.generateStaticMarkup)return ln(e,r,d,g)}function Xo(e,r){return r.generateStaticMarkup?!0:zr(e)}function $t(e,r,d,g,N){return r.generateStaticMarkup?!0:In(e,r,d,g,N)}function Vu(e,r){return r.generateStaticMarkup?!0:Ui(e)}function Wl(e,r){return r.generateStaticMarkup?!0:Oi(e)}var Pt=Object.assign,Gl=Symbol.for("react.element"),Zo=Symbol.for("react.portal"),Vi=Symbol.for("react.fragment"),Qi=Symbol.for("react.strict_mode"),Ki=Symbol.for("react.profiler"),oi=Symbol.for("react.provider"),li=Symbol.for("react.context"),ui=Symbol.for("react.forward_ref"),_n=Symbol.for("react.suspense"),Vo=Symbol.for("react.suspense_list"),Qo=Symbol.for("react.memo"),qi=Symbol.for("react.lazy"),Qu=Symbol.for("react.scope"),Yl=Symbol.for("react.debug_trace_mode"),Ku=Symbol.for("react.legacy_hidden"),qu=Symbol.for("react.default_value"),Jl=Symbol.iterator,Xl="@@iterator";function tt(e){if(e===null||typeof e!="object")return null;var r=Jl&&e[Jl]||e[Xl];return typeof r=="function"?r:null}function si(e,r,d){var g=e.displayName;if(g)return g;var N=r.displayName||r.name||"";return N!==""?d+"("+N+")":d}function Ko(e){return e.displayName||"Context"}function Qe(e){if(e==null)return null;if(typeof e.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Vi:return"Fragment";case Zo:return"Portal";case Ki:return"Profiler";case Qi:return"StrictMode";case _n:return"Suspense";case Vo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case li:var r=e;return Ko(r)+".Consumer";case oi:var d=e;return Ko(d._context)+".Provider";case ui:return si(e,e.render,"ForwardRef");case Qo:var g=e.displayName||null;return g!==null?g:Qe(e.type)||"Memo";case qi:{var N=e,X=N._payload,ee=N._init;try{return Qe(ee(X))}catch{return null}}}return null}var Bn=0,qo,el,tl,rl,nl,Zl,Vl;function eo(){}eo.__reactDisabledLog=!0;function il(){{if(Bn===0){qo=console.log,el=console.info,tl=console.warn,rl=console.error,nl=console.group,Zl=console.groupCollapsed,Vl=console.groupEnd;var e={configurable:!0,enumerable:!0,value:eo,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Bn++}}function ai(){{if(Bn--,Bn===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Pt({},e,{value:qo}),info:Pt({},e,{value:el}),warn:Pt({},e,{value:tl}),error:Pt({},e,{value:rl}),group:Pt({},e,{value:nl}),groupCollapsed:Pt({},e,{value:Zl}),groupEnd:Pt({},e,{value:Vl})})}Bn<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ci=f.ReactCurrentDispatcher,Nn;function fi(e,r,d){{if(Nn===void 0)try{throw Error()}catch(N){var g=N.stack.trim().match(/\n( *(at )?)/);Nn=g&&g[1]||""}return`
|
|
40
|
+
`+Nn+e}}var di=!1,to;{var Ql=typeof WeakMap=="function"?WeakMap:Map;to=new Ql}function ol(e,r){if(!e||di)return"";{var d=to.get(e);if(d!==void 0)return d}var g;di=!0;var N=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var X;X=ci.current,ci.current=null,il();try{if(r){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(Yt){g=Yt}Reflect.construct(e,[],ee)}else{try{ee.call()}catch(Yt){g=Yt}e.call(ee.prototype)}}else{try{throw Error()}catch(Yt){g=Yt}e()}}catch(Yt){if(Yt&&g&&typeof Yt.stack=="string"){for(var pe=Yt.stack.split(`
|
|
41
|
+
`),we=g.stack.split(`
|
|
42
|
+
`),Le=pe.length-1,De=we.length-1;Le>=1&&De>=0&&pe[Le]!==we[De];)De--;for(;Le>=1&&De>=0;Le--,De--)if(pe[Le]!==we[De]){if(Le!==1||De!==1)do if(Le--,De--,De<0||pe[Le]!==we[De]){var Ue=`
|
|
43
|
+
`+pe[Le].replace(" at new "," at ");return e.displayName&&Ue.includes("<anonymous>")&&(Ue=Ue.replace("<anonymous>",e.displayName)),typeof e=="function"&&to.set(e,Ue),Ue}while(Le>=1&&De>=0);break}}}finally{di=!1,ci.current=X,ai(),Error.prepareStackTrace=N}var Ke=e?e.displayName||e.name:"",mt=Ke?fi(Ke):"";return typeof e=="function"&&to.set(e,mt),mt}function ll(e,r,d){return ol(e,!0)}function ul(e,r,d){return ol(e,!1)}function Kl(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function Un(e,r,d){if(e==null)return"";if(typeof e=="function")return ol(e,Kl(e));if(typeof e=="string")return fi(e);switch(e){case _n:return fi("Suspense");case Vo:return fi("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case ui:return ul(e.render);case Qo:return Un(e.type,r,d);case qi:{var g=e,N=g._payload,X=g._init;try{return Un(X(N),r,d)}catch{}}}return""}var sl={},ro=f.ReactDebugCurrentFrame;function dn(e){if(e){var r=e._owner,d=Un(e.type,e._source,r?r.type:null);ro.setExtraStackFrame(d)}else ro.setExtraStackFrame(null)}function al(e,r,d,g,N){{var X=Function.call.bind(E);for(var ee in e)if(X(e,ee)){var pe=void 0;try{if(typeof e[ee]!="function"){var we=Error((g||"React class")+": "+d+" type `"+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[ee]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw we.name="Invariant Violation",we}pe=e[ee](r,ee,g,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Le){pe=Le}pe&&!(pe instanceof Error)&&(dn(N),i("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",g||"React class",d,ee,typeof pe),dn(null)),pe instanceof Error&&!(pe.message in sl)&&(sl[pe.message]=!0,dn(N),i("Failed %s type: %s",d,pe.message),dn(null))}}}var cl;cl={};var Gr={};Object.freeze(Gr);function ql(e,r){{var d=e.contextTypes;if(!d)return Gr;var g={};for(var N in d)g[N]=r[N];{var X=Qe(e)||"Unknown";al(d,g,"context",X)}return g}}function pn(e,r,d,g){{if(typeof e.getChildContext!="function"){{var N=Qe(r)||"Unknown";cl[N]||(cl[N]=!0,i("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",N,N))}return d}var X=e.getChildContext();for(var ee in X)if(!(ee in g))throw new Error((Qe(r)||"Unknown")+'.getChildContext(): key "'+ee+'" is not defined in childContextTypes.');{var pe=Qe(r)||"Unknown";al(g,X,"child context",pe)}return Pt({},d,X)}}var vn;vn={};var fl=null,dr=null;function no(e){e.context._currentValue2=e.parentValue}function io(e){e.context._currentValue2=e.value}function pi(e,r){if(e!==r){no(e);var d=e.parent,g=r.parent;if(d===null){if(g!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(g===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");pi(d,g)}io(r)}}function dl(e){no(e);var r=e.parent;r!==null&&dl(r)}function vi(e){var r=e.parent;r!==null&&vi(r),io(e)}function eu(e,r){no(e);var d=e.parent;if(d===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");d.depth===r.depth?pi(d,r):eu(d,r)}function tu(e,r){var d=r.parent;if(d===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");e.depth===d.depth?pi(e,d):tu(e,d),io(r)}function oo(e){var r=dr,d=e;r!==d&&(r===null?vi(d):d===null?dl(r):r.depth===d.depth?pi(r,d):r.depth>d.depth?eu(r,d):tu(r,d),dr=d)}function mi(e,r){var d;d=e._currentValue2,e._currentValue2=r,e._currentRenderer2!==void 0&&e._currentRenderer2!==null&&e._currentRenderer2!==vn&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),e._currentRenderer2=vn;var g=dr,N={parent:g,depth:g===null?0:g.depth+1,context:e,parentValue:d,value:r};return dr=N,N}function pl(e){var r=dr;if(r===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");r.context!==e&&i("The parent context is not the expected context. This is probably a bug in React.");{var d=r.parentValue;d===qu?r.context._currentValue2=r.context._defaultValue:r.context._currentValue2=d,e._currentRenderer2!==void 0&&e._currentRenderer2!==null&&e._currentRenderer2!==vn&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),e._currentRenderer2=vn}return dr=r.parent}function es(){return dr}function On(e){var r=e._currentValue2;return r}function lo(e){return e._reactInternals}function vl(e,r){e._reactInternals=r}var uo={},so={},hi,ao,jn,bi,co,$n,fo,po,vo;{hi=new Set,ao=new Set,jn=new Set,fo=new Set,bi=new Set,po=new Set,vo=new Set;var ru=new Set;$n=function(e,r){if(!(e===null||typeof e=="function")){var d=r+"_"+e;ru.has(d)||(ru.add(d),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r,e))}},co=function(e,r){if(r===void 0){var d=Qe(e)||"Component";bi.has(d)||(bi.add(d),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",d))}}}function nu(e,r){{var d=e.constructor,g=d&&Qe(d)||"ReactClass",N=g+"."+r;if(uo[N])return;i(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
44
|
+
|
|
45
|
+
Please check the code for the %s component.`,r,r,g),uo[N]=!0}}var iu={isMounted:function(e){return!1},enqueueSetState:function(e,r,d){var g=lo(e);g.queue===null?nu(e,"setState"):(g.queue.push(r),d!=null&&$n(d,"setState"))},enqueueReplaceState:function(e,r,d){var g=lo(e);g.replace=!0,g.queue=[r],d!=null&&$n(d,"setState")},enqueueForceUpdate:function(e,r){var d=lo(e);d.queue===null?nu(e,"forceUpdate"):r!=null&&$n(r,"setState")}};function ts(e,r,d,g,N){var X=d(N,g);co(r,X);var ee=X==null?g:Pt({},g,X);return ee}function rs(e,r,d){var g=Gr,N=e.contextType;if("contextType"in e){var X=N===null||N!==void 0&&N.$$typeof===li&&N._context===void 0;if(!X&&!vo.has(e)){vo.add(e);var ee="";N===void 0?ee=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof N!="object"?ee=" However, it is set to a "+typeof N+".":N.$$typeof===oi?ee=" Did you accidentally pass the Context.Provider instead?":N._context!==void 0?ee=" Did you accidentally pass the Context.Consumer instead?":ee=" However, it is set to an object with keys {"+Object.keys(N).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Qe(e)||"Component",ee)}}typeof N=="object"&&N!==null?g=On(N):g=d;var pe=new e(r,g);{if(typeof e.getDerivedStateFromProps=="function"&&(pe.state===null||pe.state===void 0)){var we=Qe(e)||"Component";hi.has(we)||(hi.add(we),i("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",we,pe.state===null?"null":"undefined",we))}if(typeof e.getDerivedStateFromProps=="function"||typeof pe.getSnapshotBeforeUpdate=="function"){var Le=null,De=null,Ue=null;if(typeof pe.componentWillMount=="function"&&pe.componentWillMount.__suppressDeprecationWarning!==!0?Le="componentWillMount":typeof pe.UNSAFE_componentWillMount=="function"&&(Le="UNSAFE_componentWillMount"),typeof pe.componentWillReceiveProps=="function"&&pe.componentWillReceiveProps.__suppressDeprecationWarning!==!0?De="componentWillReceiveProps":typeof pe.UNSAFE_componentWillReceiveProps=="function"&&(De="UNSAFE_componentWillReceiveProps"),typeof pe.componentWillUpdate=="function"&&pe.componentWillUpdate.__suppressDeprecationWarning!==!0?Ue="componentWillUpdate":typeof pe.UNSAFE_componentWillUpdate=="function"&&(Ue="UNSAFE_componentWillUpdate"),Le!==null||De!==null||Ue!==null){var Ke=Qe(e)||"Component",mt=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";jn.has(Ke)||(jn.add(Ke),i(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
46
|
+
|
|
47
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
48
|
+
|
|
49
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
50
|
+
https://reactjs.org/link/unsafe-component-lifecycles`,Ke,mt,Le!==null?`
|
|
51
|
+
`+Le:"",De!==null?`
|
|
52
|
+
`+De:"",Ue!==null?`
|
|
53
|
+
`+Ue:""))}}}return pe}function ou(e,r,d){{var g=Qe(r)||"Component",N=e.render;N||(r.prototype&&typeof r.prototype.render=="function"?i("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",g):i("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",g)),e.getInitialState&&!e.getInitialState.isReactClassApproved&&!e.state&&i("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",g),e.getDefaultProps&&!e.getDefaultProps.isReactClassApproved&&i("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",g),e.propTypes&&i("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",g),e.contextType&&i("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",g),e.contextTypes&&i("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",g),r.contextType&&r.contextTypes&&!po.has(r)&&(po.add(r),i("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",g)),typeof e.componentShouldUpdate=="function"&&i("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",g),r.prototype&&r.prototype.isPureReactComponent&&typeof e.shouldComponentUpdate<"u"&&i("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Qe(r)||"A pure component"),typeof e.componentDidUnmount=="function"&&i("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",g),typeof e.componentDidReceiveProps=="function"&&i("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",g),typeof e.componentWillRecieveProps=="function"&&i("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",g),typeof e.UNSAFE_componentWillRecieveProps=="function"&&i("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",g);var X=e.props!==d;e.props!==void 0&&X&&i("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",g,g),e.defaultProps&&i("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",g,g),typeof e.getSnapshotBeforeUpdate=="function"&&typeof e.componentDidUpdate!="function"&&!ao.has(r)&&(ao.add(r),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Qe(r))),typeof e.getDerivedStateFromProps=="function"&&i("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",g),typeof e.getDerivedStateFromError=="function"&&i("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",g),typeof r.getSnapshotBeforeUpdate=="function"&&i("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",g);var ee=e.state;ee&&(typeof ee!="object"||Bt(ee))&&i("%s.state: must be set to an object or null",g),typeof e.getChildContext=="function"&&typeof r.childContextTypes!="object"&&i("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",g)}}function ns(e,r){var d=r.state;if(typeof r.componentWillMount=="function"){if(r.componentWillMount.__suppressDeprecationWarning!==!0){var g=Qe(e)||"Unknown";so[g]||(h(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
54
|
+
|
|
55
|
+
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
56
|
+
|
|
57
|
+
Please update the following components: %s`,g),so[g]=!0)}r.componentWillMount()}typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),d!==r.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Qe(e)||"Component"),iu.enqueueReplaceState(r,r.state,null))}function is(e,r,d,g){if(e.queue!==null&&e.queue.length>0){var N=e.queue,X=e.replace;if(e.queue=null,e.replace=!1,X&&N.length===1)r.state=N[0];else{for(var ee=X?N[0]:r.state,pe=!0,we=X?1:0;we<N.length;we++){var Le=N[we],De=typeof Le=="function"?Le.call(r,ee,d,g):Le;De!=null&&(pe?(pe=!1,ee=Pt({},ee,De)):Pt(ee,De))}r.state=ee}}else e.queue=null}function mo(e,r,d,g){ou(e,r,d);var N=e.state!==void 0?e.state:null;e.updater=iu,e.props=d,e.state=N;var X={queue:[],replace:!1};vl(e,X);var ee=r.contextType;if(typeof ee=="object"&&ee!==null?e.context=On(ee):e.context=g,e.state===d){var pe=Qe(r)||"Component";fo.has(pe)||(fo.add(pe),i("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",pe))}var we=r.getDerivedStateFromProps;typeof we=="function"&&(e.state=ts(e,r,we,N,d)),typeof r.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function"&&(typeof e.UNSAFE_componentWillMount=="function"||typeof e.componentWillMount=="function")&&(ns(r,e),is(X,e,d,g))}var ho={id:1,overflow:""};function os(e){var r=e.overflow,d=e.id,g=d&~ls(d);return g.toString(32)+r}function ml(e,r,d){var g=e.id,N=e.overflow,X=bo(g)-1,ee=g&~(1<<X),pe=d+1,we=bo(r)+X;if(we>30){var Le=X-X%5,De=(1<<Le)-1,Ue=(ee&De).toString(32),Ke=ee>>Le,mt=X-Le,Yt=bo(r)+mt,Tu=pe<<mt,Lu=Tu|Ke,Iu=Ue+N;return{id:1<<Yt|Lu,overflow:Iu}}else{var Do=pe<<X,cf=Do|ee,ff=N;return{id:1<<we|cf,overflow:ff}}}function bo(e){return 32-us(e)}function ls(e){return 1<<bo(e)-1}var us=Math.clz32?Math.clz32:Tr,ss=Math.log,as=Math.LN2;function Tr(e){var r=e>>>0;return r===0?32:31-(ss(r)/as|0)|0}function hl(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var yo=typeof Object.is=="function"?Object.is:hl,ze=null,mn=null,hn=null,Ye=null,zt=!1,bn=!1,go=0,vt=null,Lr=0,yn=25,pr=!1,gn;function Ir(){if(ze===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
58
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
59
|
+
2. You might be breaking the Rules of Hooks
|
|
60
|
+
3. You might have more than one copy of React in the same app
|
|
61
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return pr&&i("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),ze}function cs(e,r){if(r===null)return i("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",gn),!1;e.length!==r.length&&i(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
62
|
+
|
|
63
|
+
Previous: %s
|
|
64
|
+
Incoming: %s`,gn,"["+e.join(", ")+"]","["+r.join(", ")+"]");for(var d=0;d<r.length&&d<e.length;d++)if(!yo(e[d],r[d]))return!1;return!0}function lu(){if(Lr>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Eo(){return Ye===null?hn===null?(zt=!1,hn=Ye=lu()):(zt=!0,Ye=hn):Ye.next===null?(zt=!1,Ye=Ye.next=lu()):(zt=!0,Ye=Ye.next),Ye}function bl(e,r){ze=r,mn=e,pr=!1,go=0}function fs(e,r,d,g){for(;bn;)bn=!1,go=0,Lr+=1,Ye=null,d=e(r,g);return yi(),d}function uu(){var e=go!==0;return e}function yi(){pr=!1,ze=null,mn=null,bn=!1,hn=null,Lr=0,vt=null,Ye=null}function ds(e){return pr&&i("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),On(e)}function su(e){return gn="useContext",Ir(),On(e)}function Ao(e,r){return typeof r=="function"?r(e):r}function ps(e){return gn="useState",au(Ao,e)}function au(e,r,d){if(e!==Ao&&(gn="useReducer"),ze=Ir(),Ye=Eo(),zt){var g=Ye.queue,N=g.dispatch;if(vt!==null){var X=vt.get(g);if(X!==void 0){vt.delete(g);var ee=Ye.memoizedState,pe=X;do{var we=pe.action;pr=!0,ee=e(ee,we),pr=!1,pe=pe.next}while(pe!==null);return Ye.memoizedState=ee,[ee,N]}}return[Ye.memoizedState,N]}else{pr=!0;var Le;e===Ao?Le=typeof r=="function"?r():r:Le=d!==void 0?d(r):r,pr=!1,Ye.memoizedState=Le;var De=Ye.queue={last:null,dispatch:null},Ue=De.dispatch=hs.bind(null,ze,De);return[Ye.memoizedState,Ue]}}function cu(e,r){ze=Ir(),Ye=Eo();var d=r===void 0?null:r;if(Ye!==null){var g=Ye.memoizedState;if(g!==null&&d!==null){var N=g[1];if(cs(d,N))return g[0]}}pr=!0;var X=e();return pr=!1,Ye.memoizedState=[X,d],X}function vs(e){ze=Ir(),Ye=Eo();var r=Ye.memoizedState;if(r===null){var d={current:e};return Object.seal(d),Ye.memoizedState=d,d}else return r}function ms(e,r){gn="useLayoutEffect",i("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function hs(e,r,d){if(Lr>=yn)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(e===ze){bn=!0;var g={action:d,next:null};vt===null&&(vt=new Map);var N=vt.get(r);if(N===void 0)vt.set(r,g);else{for(var X=N;X.next!==null;)X=X.next;X.next=g}}}function bs(e,r){return cu(function(){return e},r)}function ys(e,r,d){return Ir(),r(e._source)}function gs(e,r,d){if(d===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return d()}function Es(e){return Ir(),e}function wo(){throw new Error("startTransition cannot be called during server rendering.")}function fu(){return Ir(),[!1,wo]}function yl(){var e=mn,r=os(e.treeContext),d=Ei;if(d===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var g=go++;return bt(d,r,g)}function gi(){}var du={readContext:ds,useContext:su,useMemo:cu,useReducer:au,useRef:vs,useState:ps,useInsertionEffect:gi,useLayoutEffect:ms,useCallback:bs,useImperativeHandle:gi,useEffect:gi,useDebugValue:gi,useDeferredValue:Es,useTransition:fu,useId:yl,useMutableSource:ys,useSyncExternalStore:gs},Ei=null;function So(e){Ei=e}function gl(e){try{var r="",d=e;do{switch(d.tag){case 0:r+=fi(d.type,null,null);break;case 1:r+=ul(d.type,null,null);break;case 2:r+=ll(d.type,null,null);break}d=d.parent}while(d);return r}catch(g){return`
|
|
65
|
+
Error generating stack: `+g.message+`
|
|
66
|
+
`+g.stack}}var Yr=f.ReactCurrentDispatcher,xo=f.ReactDebugCurrentFrame,ko=0,En=1,pu=2,El=3,An=4,As=0,vu=1,vr=2,ws=12800;function Ss(e){return console.error(e),null}function Ai(){}function Al(e,r,d,g,N,X,ee,pe,we){var Le=[],De=new Set,Ue={destination:null,responseState:r,progressiveChunkSize:g===void 0?ws:g,status:As,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:De,pingedTasks:Le,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:N===void 0?Ss:N,onAllReady:X===void 0?Ai:X,onShellReady:ee===void 0?Ai:ee,onShellError:pe===void 0?Ai:pe,onFatalError:we===void 0?Ai:we},Ke=Jr(Ue,0,null,d,!1,!1);Ke.parentFlushed=!0;var mt=wi(Ue,e,null,Ke,De,Gr,fl,ho);return Le.push(mt),Ue}function Ro(e,r){var d=e.pingedTasks;d.push(r),d.length===1&&S(function(){return ku(e)})}function Cr(e,r){return{id:Ot,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:r,errorDigest:null}}function wi(e,r,d,g,N,X,ee,pe){e.allPendingTasks++,d===null?e.pendingRootTasks++:d.pendingTasks++;var we={node:r,ping:function(){return Ro(e,we)},blockedBoundary:d,blockedSegment:g,abortSet:N,legacyContext:X,context:ee,treeContext:pe};return we.componentStack=null,N.add(we),we}function Jr(e,r,d,g,N,X){return{status:ko,id:-1,index:r,parentFlushed:!1,chunks:[],children:[],formatContext:g,boundary:d,lastPushedText:N,textEmbedded:X}}var mr=null;function wl(){return mr===null||mr.componentStack===null?"":gl(mr.componentStack)}function Wt(e,r){e.componentStack={tag:0,parent:e.componentStack,type:r}}function zn(e,r){e.componentStack={tag:1,parent:e.componentStack,type:r}}function Sl(e,r){e.componentStack={tag:2,parent:e.componentStack,type:r}}function Gt(e){e.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):e.componentStack=e.componentStack.parent}var Xr=null;function xl(e,r){{var d;typeof r=="string"?d=r:r&&typeof r.message=="string"?d=r.message:d=String(r);var g=Xr||wl();Xr=null,e.errorMessage=d,e.errorComponentStack=g}}function Si(e,r){var d=e.onError(r);if(d!=null&&typeof d!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof d+'" instead');return d}function To(e,r){var d=e.onShellError;d(r);var g=e.onFatalError;g(r),e.destination!==null?(e.status=vr,F(e.destination,r)):(e.status=vu,e.fatalError=r)}function mu(e,r,d){Wt(r,"Suspense");var g=r.blockedBoundary,N=r.blockedSegment,X=d.fallback,ee=d.children,pe=new Set,we=Cr(e,pe),Le=N.chunks.length,De=Jr(e,Le,we,N.formatContext,!1,!1);N.children.push(De),N.lastPushedText=!1;var Ue=Jr(e,0,null,N.formatContext,!1,!1);Ue.parentFlushed=!0,r.blockedBoundary=we,r.blockedSegment=Ue;try{if(Lo(e,r,ee),zl(Ue.chunks,e.responseState,Ue.lastPushedText,Ue.textEmbedded),Ue.status=En,Ri(we,Ue),we.pendingTasks===0){Gt(r);return}}catch(mt){Ue.status=An,we.forceClientRender=!0,we.errorDigest=Si(e,mt),xl(we,mt)}finally{r.blockedBoundary=g,r.blockedSegment=N}var Ke=wi(e,X,g,De,pe,r.legacyContext,r.context,r.treeContext);Ke.componentStack=r.componentStack,e.pingedTasks.push(Ke),Gt(r)}function hu(e,r,d,g){Wt(r,d);var N=r.blockedSegment,X=cr(N.chunks,d,g,e.responseState,N.formatContext);N.lastPushedText=!1;var ee=N.formatContext;N.formatContext=Nr(ee,d,g),Lo(e,r,X),N.formatContext=ee,Lt(N.chunks,d),N.lastPushedText=!1,Gt(r)}function xs(e){return e.prototype&&e.prototype.isReactComponent}function kl(e,r,d,g,N){var X={};bl(r,X);var ee=d(g,N);return fs(d,g,ee,N)}function xi(e,r,d,g,N){var X=d.render();d.props!==N&&(Il||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Qe(g)||"a component"),Il=!0);{var ee=g.childContextTypes;if(ee!=null){var pe=r.legacyContext,we=pn(d,g,pe,ee);r.legacyContext=we,Dt(e,r,X),r.legacyContext=pe;return}}Dt(e,r,X)}function bu(e,r,d,g){Sl(r,d);var N=ql(d,r.legacyContext),X=rs(d,g,N);mo(X,d,g,N),xi(e,r,X,d,g),Gt(r)}var Rl={},ki={},Tl={},Ll={},Il=!1,Cl={},yu=!1,gu=!1,Pl=!1;function ks(e,r,d,g){var N;if(N=ql(d,r.legacyContext),zn(r,d),d.prototype&&typeof d.prototype.render=="function"){var X=Qe(d)||"Unknown";Rl[X]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",X,X),Rl[X]=!0)}var ee=kl(e,r,d,g,N),pe=uu();if(typeof ee=="object"&&ee!==null&&typeof ee.render=="function"&&ee.$$typeof===void 0){var we=Qe(d)||"Unknown";ki[we]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",we,we,we),ki[we]=!0)}if(typeof ee=="object"&&ee!==null&&typeof ee.render=="function"&&ee.$$typeof===void 0){{var Le=Qe(d)||"Unknown";ki[Le]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Le,Le,Le),ki[Le]=!0)}mo(ee,d,g,N),xi(e,r,ee,d,g)}else if(Rs(d),pe){var De=r.treeContext,Ue=1,Ke=0;r.treeContext=ml(De,Ue,Ke);try{Dt(e,r,ee)}finally{r.treeContext=De}}else Dt(e,r,ee);Gt(r)}function Rs(e){{if(e&&e.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",e.displayName||e.name||"Component"),e.defaultProps!==void 0){var r=Qe(e)||"Unknown";Cl[r]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",r),Cl[r]=!0)}if(typeof e.getDerivedStateFromProps=="function"){var d=Qe(e)||"Unknown";Ll[d]||(i("%s: Function components do not support getDerivedStateFromProps.",d),Ll[d]=!0)}if(typeof e.contextType=="object"&&e.contextType!==null){var g=Qe(e)||"Unknown";Tl[g]||(i("%s: Function components do not support contextType.",g),Tl[g]=!0)}}}function Eu(e,r){if(e&&e.defaultProps){var d=Pt({},r),g=e.defaultProps;for(var N in g)d[N]===void 0&&(d[N]=g[N]);return d}return r}function Ts(e,r,d,g,N){zn(r,d.render);var X=kl(e,r,d.render,g,N),ee=uu();if(ee){var pe=r.treeContext,we=1,Le=0;r.treeContext=ml(pe,we,Le);try{Dt(e,r,X)}finally{r.treeContext=pe}}else Dt(e,r,X);Gt(r)}function Ls(e,r,d,g,N){var X=d.type,ee=Eu(X,g);Dl(e,r,X,ee,N)}function Fl(e,r,d,g){d._context===void 0?d!==d.Consumer&&(Pl||(Pl=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):d=d._context;var N=g.children;typeof N!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var X=On(d),ee=N(X);Dt(e,r,ee)}function Is(e,r,d,g){var N=d._context,X=g.value,ee=g.children,pe;pe=r.context,r.context=mi(N,X),Dt(e,r,ee),r.context=pl(N),pe!==r.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Ft(e,r,d,g,N){Wt(r,"Lazy");var X=d._payload,ee=d._init,pe=ee(X),we=Eu(pe,g);Dl(e,r,pe,we,N),Gt(r)}function Dl(e,r,d,g,N){if(typeof d=="function")if(xs(d)){bu(e,r,d,g);return}else{ks(e,r,d,g);return}if(typeof d=="string"){hu(e,r,d,g);return}switch(d){case Ku:case Yl:case Qi:case Ki:case Vi:{Dt(e,r,g.children);return}case Vo:{Wt(r,"SuspenseList"),Dt(e,r,g.children),Gt(r);return}case Qu:throw new Error("ReactDOMServer does not yet support scope components.");case _n:{mu(e,r,g);return}}if(typeof d=="object"&&d!==null)switch(d.$$typeof){case ui:{Ts(e,r,d,g,N);return}case Qo:{Ls(e,r,d,g,N);return}case oi:{Is(e,r,d,g);return}case li:{Fl(e,r,d,g);return}case qi:{Ft(e,r,d,g);return}}var X="";throw(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(X+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(d==null?d:typeof d)+"."+X))}function Au(e,r){typeof Symbol=="function"&&e[Symbol.toStringTag]==="Generator"&&(yu||i("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),yu=!0),e.entries===r&&(gu||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),gu=!0)}function Dt(e,r,d){try{return Ml(e,r,d)}catch(g){throw typeof g=="object"&&g!==null&&typeof g.then=="function"||(Xr=Xr!==null?Xr:wl()),g}}function Ml(e,r,d){if(r.node=d,typeof d=="object"&&d!==null){switch(d.$$typeof){case Gl:{var g=d,N=g.type,X=g.props,ee=g.ref;Dl(e,r,N,X,ee);return}case Zo:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case qi:{var pe=d,we=pe._payload,Le=pe._init,De;try{De=Le(we)}catch(Do){throw typeof Do=="object"&&Do!==null&&typeof Do.then=="function"&&Wt(r,"Lazy"),Do}Dt(e,r,De);return}}if(Bt(d)){wu(e,r,d);return}var Ue=tt(d);if(Ue){Au(d,Ue);var Ke=Ue.call(d);if(Ke){var mt=Ke.next();if(!mt.done){var Yt=[];do Yt.push(mt.value),mt=Ke.next();while(!mt.done);wu(e,r,Yt);return}return}}var Tu=Object.prototype.toString.call(d);throw new Error("Objects are not valid as a React child (found: "+(Tu==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":Tu)+"). If you meant to render a collection of children, use an array instead.")}if(typeof d=="string"){var Lu=r.blockedSegment;Lu.lastPushedText=$l(r.blockedSegment.chunks,d,e.responseState,Lu.lastPushedText);return}if(typeof d=="number"){var Iu=r.blockedSegment;Iu.lastPushedText=$l(r.blockedSegment.chunks,""+d,e.responseState,Iu.lastPushedText);return}typeof d=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function wu(e,r,d){for(var g=d.length,N=0;N<g;N++){var X=r.treeContext;r.treeContext=ml(X,g,N);try{Lo(e,r,d[N])}finally{r.treeContext=X}}}function Cs(e,r,d){var g=r.blockedSegment,N=g.chunks.length,X=Jr(e,N,null,g.formatContext,g.lastPushedText,!0);g.children.push(X),g.lastPushedText=!1;var ee=wi(e,r.node,r.blockedBoundary,X,r.abortSet,r.legacyContext,r.context,r.treeContext);r.componentStack!==null&&(ee.componentStack=r.componentStack.parent);var pe=ee.ping;d.then(pe,pe)}function Lo(e,r,d){var g=r.blockedSegment.formatContext,N=r.legacyContext,X=r.context,ee=null;ee=r.componentStack;try{return Dt(e,r,d)}catch(pe){if(yi(),typeof pe=="object"&&pe!==null&&typeof pe.then=="function"){Cs(e,r,pe),r.blockedSegment.formatContext=g,r.legacyContext=N,r.context=X,oo(X),r.componentStack=ee;return}else throw r.blockedSegment.formatContext=g,r.legacyContext=N,r.context=X,oo(X),r.componentStack=ee,pe}}function Io(e,r,d,g){var N=Si(e,g);if(r===null?To(e,g):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,r.errorDigest=N,xl(r,g),r.parentFlushed&&e.clientRenderedBoundaries.push(r))),e.allPendingTasks--,e.allPendingTasks===0){var X=e.onAllReady;X()}}function Su(e){var r=this,d=e.blockedBoundary,g=e.blockedSegment;g.status=El,Ti(r,d,g)}function xu(e,r,d){var g=e.blockedBoundary,N=e.blockedSegment;if(N.status=El,g===null)r.allPendingTasks--,r.status!==vr&&(r.status=vr,r.destination!==null&&p(r.destination));else{if(g.pendingTasks--,!g.forceClientRender){g.forceClientRender=!0;var X=d===void 0?new Error("The render was aborted by the server without a reason."):d;g.errorDigest=r.onError(X);{var ee="The server did not finish this Suspense boundary: ";X&&typeof X.message=="string"?X=ee+X.message:X=ee+String(X);var pe=mr;mr=e;try{xl(g,X)}finally{mr=pe}}g.parentFlushed&&r.clientRenderedBoundaries.push(g)}if(g.fallbackAbortableTasks.forEach(function(Le){return xu(Le,r,d)}),g.fallbackAbortableTasks.clear(),r.allPendingTasks--,r.allPendingTasks===0){var we=r.onAllReady;we()}}}function Ri(e,r){if(r.chunks.length===0&&r.children.length===1&&r.children[0].boundary===null){var d=r.children[0];d.id=r.id,d.parentFlushed=!0,d.status===En&&Ri(e,d)}else{var g=e.completedSegments;g.push(r)}}function Ti(e,r,d){if(r===null){if(d.parentFlushed){if(e.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");e.completedRootSegment=d}if(e.pendingRootTasks--,e.pendingRootTasks===0){e.onShellError=Ai;var g=e.onShellReady;g()}}else if(r.pendingTasks--,!r.forceClientRender){if(r.pendingTasks===0)d.parentFlushed&&d.status===En&&Ri(r,d),r.parentFlushed&&e.completedBoundaries.push(r),r.fallbackAbortableTasks.forEach(Su,e),r.fallbackAbortableTasks.clear();else if(d.parentFlushed&&d.status===En){Ri(r,d);var N=r.completedSegments;N.length===1&&r.parentFlushed&&e.partialBoundaries.push(r)}}if(e.allPendingTasks--,e.allPendingTasks===0){var X=e.onAllReady;X()}}function Co(e,r){var d=r.blockedSegment;if(d.status===ko){oo(r.context);var g=null;g=mr,mr=r;try{Dt(e,r,r.node),zl(d.chunks,e.responseState,d.lastPushedText,d.textEmbedded),r.abortSet.delete(r),d.status=En,Ti(e,r.blockedBoundary,d)}catch(X){if(yi(),typeof X=="object"&&X!==null&&typeof X.then=="function"){var N=r.ping;X.then(N,N)}else r.abortSet.delete(r),d.status=An,Io(e,r.blockedBoundary,d,X)}finally{mr=g}}}function ku(e){if(e.status!==vr){var r=es(),d=Yr.current;Yr.current=du;var g;g=xo.getCurrentStack,xo.getCurrentStack=wl;var N=Ei;So(e.responseState);try{var X=e.pingedTasks,ee;for(ee=0;ee<X.length;ee++){var pe=X[ee];Co(e,pe)}X.splice(0,ee),e.destination!==null&&Fo(e,e.destination)}catch(we){Si(e,we),To(e,we)}finally{So(N),Yr.current=d,xo.getCurrentStack=g,d===du&&oo(r)}}}function Li(e,r,d){switch(d.parentFlushed=!0,d.status){case ko:{var g=d.id=e.nextSegmentId++;return d.lastPushedText=!1,d.textEmbedded=!1,Bi(r,e.responseState,g)}case En:{d.status=pu;for(var N=!0,X=d.chunks,ee=0,pe=d.children,we=0;we<pe.length;we++){for(var Le=pe[we];ee<Le.index;ee++)s(r,X[ee]);N=Ii(e,r,Le)}for(;ee<X.length-1;ee++)s(r,X[ee]);return ee<X.length&&(N=a(r,X[ee])),N}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Ii(e,r,d){var g=d.boundary;if(g===null)return Li(e,r,d);if(g.parentFlushed=!0,g.forceClientRender)return $t(r,e.responseState,g.errorDigest,g.errorMessage,g.errorComponentStack),Li(e,r,d),Wl(r,e.responseState);if(g.pendingTasks>0){g.rootSegmentID=e.nextSegmentId++,g.completedSegments.length>0&&e.partialBoundaries.push(g);var N=g.id=jt(e.responseState);return Wr(r,e.responseState,N),Li(e,r,d),ri(r,e.responseState)}else{if(g.byteSize>e.progressiveChunkSize)return g.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(g),Wr(r,e.responseState,g.id),Li(e,r,d),ri(r,e.responseState);Xo(r,e.responseState);var X=g.completedSegments;if(X.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var ee=X[0];return Ii(e,r,ee),Vu(r,e.responseState)}}function Ps(e,r,d){return Ju(r,e.responseState,d.id,d.errorDigest,d.errorMessage,d.errorComponentStack)}function Hl(e,r,d){return ce(r,e.responseState,d.formatContext,d.id),Ii(e,r,d),ye(r,d.formatContext)}function Po(e,r,d){for(var g=d.completedSegments,N=0;N<g.length;N++){var X=g[N];Ru(e,r,d,X)}return g.length=0,$u(r,e.responseState,d.id,d.rootSegmentID)}function Fs(e,r,d){for(var g=d.completedSegments,N=0;N<g.length;N++){var X=g[N];if(!Ru(e,r,d,X))return N++,g.splice(0,N),!1}return g.splice(0,N),!0}function Ru(e,r,d,g){if(g.status===pu)return!0;var N=g.id;if(N===-1){var X=g.id=d.rootSegmentID;if(X===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Hl(e,r,g)}else return Hl(e,r,g),Ct(r,e.responseState,N)}function Fo(e,r){try{var d=e.completedRootSegment;d!==null&&e.pendingRootTasks===0&&(Ii(e,r,d),e.completedRootSegment=null,Kn(r,e.responseState));var g=e.clientRenderedBoundaries,N;for(N=0;N<g.length;N++){var X=g[N];if(!Ps(e,r,X)){e.destination=null,N++,g.splice(0,N);return}}g.splice(0,N);var ee=e.completedBoundaries;for(N=0;N<ee.length;N++){var pe=ee[N];if(!Po(e,r,pe)){e.destination=null,N++,ee.splice(0,N);return}}ee.splice(0,N);var we=e.partialBoundaries;for(N=0;N<we.length;N++){var Le=we[N];if(!Fs(e,r,Le)){e.destination=null,N++,we.splice(0,N);return}}we.splice(0,N);var De=e.completedBoundaries;for(N=0;N<De.length;N++){var Ue=De[N];if(!Po(e,r,Ue)){e.destination=null,N++,De.splice(0,N);return}}De.splice(0,N)}finally{e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&(e.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),p(r))}}function Ds(e){S(function(){return ku(e)})}function t(e,r){if(e.status===vu){e.status=vr,F(r,e.fatalError);return}if(e.status!==vr&&e.destination===null){e.destination=r;try{Fo(e,r)}catch(d){Si(e,d),To(e,d)}}}function n(e,r){try{var d=e.abortableTasks;d.forEach(function(g){return xu(g,e,r)}),d.clear(),e.destination!==null&&Fo(e,e.destination)}catch(g){Si(e,g),To(e,g)}}function m(){}function L(e,r,d,g){var N=!1,X=null,ee="",pe={push:function(Ue){return Ue!==null&&(ee+=Ue),!0},destroy:function(Ue){N=!0,X=Ue}},we=!1;function Le(){we=!0}var De=Al(e,Zu(d,r?r.identifierPrefix:void 0),Jo(),1/0,m,void 0,Le,void 0,void 0);if(Ds(De),n(De,g),t(De,pe),N)throw X;if(!we)throw new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return ee}function z(e,r){return L(e,r,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function V(e,r){return L(e,r,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function ne(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function ve(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}Pi.renderToNodeStream=ne,Pi.renderToStaticMarkup=V,Pi.renderToStaticNodeStream=ve,Pi.renderToString=z,Pi.version=u}()),Pi}var Fu={};/**
|
|
67
|
+
* @license React
|
|
68
|
+
* react-dom-server.browser.development.js
|
|
69
|
+
*
|
|
70
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the MIT license found in the
|
|
73
|
+
* LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/var ea;function Yd(){return ea||(ea=1,process.env.NODE_ENV!=="production"&&function(){var R=H.default,u="18.3.1",f=R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function h(t){{for(var n=arguments.length,m=new Array(n>1?n-1:0),L=1;L<n;L++)m[L-1]=arguments[L];b("warn",t,m)}}function i(t){{for(var n=arguments.length,m=new Array(n>1?n-1:0),L=1;L<n;L++)m[L-1]=arguments[L];b("error",t,m)}}function b(t,n,m){{var L=f.ReactDebugCurrentFrame,z=L.getStackAddendum();z!==""&&(n+="%s",m=m.concat([z]));var V=m.map(function(ne){return String(ne)});V.unshift("Warning: "+n),Function.prototype.apply.call(console[t],console,V)}}function S(t){t()}var y=512,s=null,a=0;function T(t){s=new Uint8Array(y),a=0}function p(t,n){if(n.length!==0){if(n.length>y){a>0&&(t.enqueue(new Uint8Array(s.buffer,0,a)),s=new Uint8Array(y),a=0),t.enqueue(n);return}var m=n,L=s.length-a;L<m.length&&(L===0?t.enqueue(s):(s.set(m.subarray(0,L),a),t.enqueue(s),m=m.subarray(L)),s=new Uint8Array(y),a=0),s.set(m,a),a+=m.length}}function A(t,n){return p(t,n),!0}function P(t){s&&a>0&&(t.enqueue(new Uint8Array(s.buffer,0,a)),s=null,a=0)}function F(t){t.close()}var w=new TextEncoder;function v(t){return w.encode(t)}function c(t){return w.encode(t)}function C(t,n){typeof t.error=="function"?t.error(n):t.close()}function _(t){{var n=typeof Symbol=="function"&&Symbol.toStringTag,m=n&&t[Symbol.toStringTag]||t.constructor.name||"Object";return m}}function D(t){try{return E(t),!1}catch{return!0}}function E(t){return""+t}function B(t,n){if(D(t))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",n,_(t)),E(t)}function M(t,n){if(D(t))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",n,_(t)),E(t)}function G(t){if(D(t))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",_(t)),E(t)}var $=Object.prototype.hasOwnProperty,re=0,K=1,Z=2,U=3,le=4,me=5,Q=6,oe=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",se=oe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ie=new RegExp("^["+oe+"]["+se+"]*$"),W={},te={};function ae(t){return $.call(te,t)?!0:$.call(W,t)?!1:ie.test(t)?(te[t]=!0,!0):(W[t]=!0,i("Invalid attribute name: `%s`",t),!1)}function Ae(t,n,m,L){if(m!==null&&m.type===re)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":{if(L)return!1;if(m!==null)return!m.acceptsBooleans;var z=t.toLowerCase().slice(0,5);return z!=="data-"&&z!=="aria-"}default:return!1}}function ke(t){return q.hasOwnProperty(t)?q[t]:null}function be(t,n,m,L,z,V,ne){this.acceptsBooleans=n===Z||n===U||n===le,this.attributeName=L,this.attributeNamespace=z,this.mustUseProperty=m,this.propertyName=t,this.type=n,this.sanitizeURL=V,this.removeEmptyString=ne}var q={},ge=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ge.forEach(function(t){q[t]=new be(t,re,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var n=t[0],m=t[1];q[n]=new be(n,K,!1,m,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){q[t]=new be(t,Z,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){q[t]=new be(t,Z,!1,t,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(t){q[t]=new be(t,U,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){q[t]=new be(t,U,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){q[t]=new be(t,le,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){q[t]=new be(t,Q,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){q[t]=new be(t,me,!1,t.toLowerCase(),null,!1,!1)});var Re=/[\-\:]([a-z])/g,Ee=function(t){return t[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(t){var n=t.replace(Re,Ee);q[n]=new be(n,K,!1,t,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(t){var n=t.replace(Re,Ee);q[n]=new be(n,K,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var n=t.replace(Re,Ee);q[n]=new be(n,K,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){q[t]=new be(t,K,!1,t.toLowerCase(),null,!1,!1)});var Te="xlinkHref";q[Te]=new be("xlinkHref",K,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){q[t]=new be(t,K,!1,t.toLowerCase(),null,!0,!0)});var Ie={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Ne(t,n){return t+n.charAt(0).toUpperCase()+n.substring(1)}var Pe=["Webkit","ms","Moz","O"];Object.keys(Ie).forEach(function(t){Pe.forEach(function(n){Ie[Ne(n,t)]=Ie[t]})});var Ce={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Ve(t,n){Ce[n.type]||n.onChange||n.onInput||n.readOnly||n.disabled||n.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),n.onChange||n.readOnly||n.disabled||n.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function ct(t,n){if(t.indexOf("-")===-1)return typeof n.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xt={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},ot={},ft=new RegExp("^(aria)-["+se+"]*$"),Xe=new RegExp("^(aria)[A-Z]["+se+"]*$");function We(t,n){{if($.call(ot,n)&&ot[n])return!0;if(Xe.test(n)){var m="aria-"+n.slice(4).toLowerCase(),L=xt.hasOwnProperty(m)?m:null;if(L==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",n),ot[n]=!0,!0;if(n!==L)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",n,L),ot[n]=!0,!0}if(ft.test(n)){var z=n.toLowerCase(),V=xt.hasOwnProperty(z)?z:null;if(V==null)return ot[n]=!0,!1;if(n!==V)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",n,V),ot[n]=!0,!0}}return!0}function yt(t,n){{var m=[];for(var L in n){var z=We(t,L);z||m.push(L)}var V=m.map(function(ne){return"`"+ne+"`"}).join(", ");m.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",V,t):m.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",V,t)}}function lt(t,n){ct(t,n)||yt(t,n)}var rt=!1;function hr(t,n){{if(t!=="input"&&t!=="textarea"&&t!=="select")return;n!=null&&n.value===null&&!rt&&(rt=!0,t==="select"&&n.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",t):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",t))}}var br={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},yr=function(){};{var qe={},gr=/^on./,Fr=/^on[^A-Z]/,Dr=new RegExp("^(aria)-["+se+"]*$"),Er=new RegExp("^(aria)[A-Z]["+se+"]*$");yr=function(t,n,m,L){if($.call(qe,n)&&qe[n])return!0;var z=n.toLowerCase();if(z==="onfocusin"||z==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),qe[n]=!0,!0;if(L!=null){var V=L.registrationNameDependencies,ne=L.possibleRegistrationNames;if(V.hasOwnProperty(n))return!0;var ve=ne.hasOwnProperty(z)?ne[z]:null;if(ve!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",n,ve),qe[n]=!0,!0;if(gr.test(n))return i("Unknown event handler property `%s`. It will be ignored.",n),qe[n]=!0,!0}else if(gr.test(n))return Fr.test(n)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",n),qe[n]=!0,!0;if(Dr.test(n)||Er.test(n))return!0;if(z==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),qe[n]=!0,!0;if(z==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),qe[n]=!0,!0;if(z==="is"&&m!==null&&m!==void 0&&typeof m!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof m),qe[n]=!0,!0;if(typeof m=="number"&&isNaN(m))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",n),qe[n]=!0,!0;var e=ke(n),r=e!==null&&e.type===re;if(br.hasOwnProperty(z)){var d=br[z];if(d!==n)return i("Invalid DOM property `%s`. Did you mean `%s`?",n,d),qe[n]=!0,!0}else if(!r&&n!==z)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",n,z),qe[n]=!0,!0;return typeof m=="boolean"&&Ae(n,m,e,!1)?(m?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',m,n,n,m,n):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',m,n,n,m,n,n,n),qe[n]=!0,!0):r?!0:Ae(n,m,e,!1)?(qe[n]=!0,!1):((m==="false"||m==="true")&&e!==null&&e.type===U&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",m,n,m==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',n,m),qe[n]=!0),!0)}}var er=function(t,n,m){{var L=[];for(var z in n){var V=yr(t,z,n[z],m);V||L.push(z)}var ne=L.map(function(ve){return"`"+ve+"`"}).join(", ");L.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",ne,t):L.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",ne,t)}};function Yn(t,n,m){ct(t,n)||er(t,n,m)}var Vr=function(){};{var tr=/^(?:webkit|moz|o)[A-Z]/,Qr=/^-ms-/,wn=/-(.)/g,ht=/;\s*$/,Ht={},rr={},Ge=!1,nr=!1,Mr=function(t){return t.replace(wn,function(n,m){return m.toUpperCase()})},Ar=function(t){Ht.hasOwnProperty(t)&&Ht[t]||(Ht[t]=!0,i("Unsupported style property %s. Did you mean %s?",t,Mr(t.replace(Qr,"ms-"))))},_t=function(t){Ht.hasOwnProperty(t)&&Ht[t]||(Ht[t]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1)))},Hr=function(t,n){rr.hasOwnProperty(n)&&rr[n]||(rr[n]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(ht,"")))},Jt=function(t,n){Ge||(Ge=!0,i("`NaN` is an invalid value for the `%s` css style property.",t))},nt=function(t,n){nr||(nr=!0,i("`Infinity` is an invalid value for the `%s` css style property.",t))};Vr=function(t,n){t.indexOf("-")>-1?Ar(t):tr.test(t)?_t(t):ht.test(n)&&Hr(t,n),typeof n=="number"&&(isNaN(n)?Jt(t,n):isFinite(n)||nt(t,n))}}var Kr=Vr,qr=/["'&<>]/;function Sn(t){G(t);var n=""+t,m=qr.exec(n);if(!m)return n;var L,z="",V,ne=0;for(V=m.index;V<n.length;V++){switch(n.charCodeAt(V)){case 34:L=""";break;case 38:L="&";break;case 39:L="'";break;case 60:L="<";break;case 62:L=">";break;default:continue}ne!==V&&(z+=n.substring(ne,V)),ne=V+1,z+=L}return ne!==V?z+n.substring(ne,V):z}function it(t){return typeof t=="boolean"||typeof t=="number"?""+t:Sn(t)}var en=/([A-Z])/g,Jn=/^ms-/;function Xn(t){return t.replace(en,"-$1").toLowerCase().replace(Jn,"-ms-")}var Bt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,tn=!1;function _r(t){!tn&&Bt.test(t)&&(tn=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(t)))}var rn=Array.isArray;function wr(t){return rn(t)}var ir=c("<script>"),Zn=c("<\/script>"),nn=c('<script src="'),Br=c('<script type="module" src="'),or=c('" async=""><\/script>');function Xt(t){return G(t),(""+t).replace(Nt,Sr)}var Nt=/(<\/|<)(s)(cript)/gi,Sr=function(t,n,m,L){return""+n+(m==="s"?"\\u0073":"\\u0053")+L};function xr(t,n,m,L,z){var V=t===void 0?"":t,ne=n===void 0?ir:c('<script nonce="'+it(n)+'">'),ve=[];if(m!==void 0&&ve.push(ne,v(Xt(m)),Zn),L!==void 0)for(var e=0;e<L.length;e++)ve.push(nn,v(it(L[e])),or);if(z!==void 0)for(var r=0;r<z.length;r++)ve.push(Br,v(it(z[r])),or);return{bootstrapChunks:ve,startInlineScript:ne,placeholderPrefix:c(V+"P:"),segmentPrefix:c(V+"S:"),boundaryPrefix:V+"B:",idPrefix:V,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var kt=0,et=1,Ut=2,Rt=3,ut=4,Nr=5,Ot=6,jt=7;function bt(t,n){return{insertionMode:t,selectedValue:n}}function Zt(t){var n=t==="http://www.w3.org/2000/svg"?Ut:t==="http://www.w3.org/1998/Math/MathML"?Rt:kt;return bt(n,null)}function lr(t,n,m){switch(n){case"select":return bt(et,m.value!=null?m.value:m.defaultValue);case"svg":return bt(Ut,null);case"math":return bt(Rt,null);case"foreignObject":return bt(et,null);case"table":return bt(ut,null);case"thead":case"tbody":case"tfoot":return bt(Nr,null);case"colgroup":return bt(jt,null);case"tr":return bt(Ot,null)}return t.insertionMode>=ut||t.insertionMode===kt?bt(et,null):t}var on=null;function ln(t){var n=t.nextSuspenseID++;return c(t.boundaryPrefix+n.toString(16))}function Ur(t,n,m){var L=t.idPrefix,z=":"+L+"R"+n;return m>0&&(z+="H"+m.toString(32)),z+":"}function ur(t){return it(t)}var un=c("<!-- -->");function Or(t,n,m,L){return n===""?L:(L&&t.push(un),t.push(v(ur(n))),!0)}function jr(t,n,m,L){m&&L&&t.push(un)}var o=new Map;function x(t){var n=o.get(t);if(n!==void 0)return n;var m=c(it(Xn(t)));return o.set(t,m),m}var j=c(' style="'),Y=c(":"),fe=c(";");function ue(t,n,m){if(typeof m!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var L=!0;for(var z in m)if($.call(m,z)){var V=m[z];if(!(V==null||typeof V=="boolean"||V==="")){var ne=void 0,ve=void 0,e=z.indexOf("--")===0;e?(ne=v(it(z)),M(V,z),ve=v(it((""+V).trim()))):(Kr(z,V),ne=x(z),typeof V=="number"?V!==0&&!$.call(Ie,z)?ve=v(V+"px"):ve=v(""+V):(M(V,z),ve=v(it((""+V).trim())))),L?(L=!1,t.push(j,ne,Y,ve)):t.push(fe,ne,Y,ve)}}L||t.push(Fe)}var he=c(" "),Se=c('="'),Fe=c('"'),He=c('=""');function Me(t,n,m,L){switch(m){case"style":{ue(t,n,L);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(m.length>2&&(m[0]==="o"||m[0]==="O")&&(m[1]==="n"||m[1]==="N"))){var z=ke(m);if(z!==null){switch(typeof L){case"function":case"symbol":return;case"boolean":if(!z.acceptsBooleans)return}var V=z.attributeName,ne=v(V);switch(z.type){case U:L&&t.push(he,ne,He);return;case le:L===!0?t.push(he,ne,He):L===!1||t.push(he,ne,Se,v(it(L)),Fe);return;case me:isNaN(L)||t.push(he,ne,Se,v(it(L)),Fe);break;case Q:!isNaN(L)&&L>=1&&t.push(he,ne,Se,v(it(L)),Fe);break;default:z.sanitizeURL&&(B(L,V),L=""+L,_r(L)),t.push(he,ne,Se,v(it(L)),Fe)}}else if(ae(m)){switch(typeof L){case"function":case"symbol":return;case"boolean":{var ve=m.toLowerCase().slice(0,5);if(ve!=="data-"&&ve!=="aria-")return}}t.push(he,v(m),Se,v(it(L)),Fe)}}}var $e=c(">"),gt=c("/>");function dt(t,n,m){if(n!=null){if(m!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof n!="object"||!("__html"in n))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var L=n.__html;L!=null&&(G(L),t.push(v(""+L)))}}var pt=!1,Vt=!1,Tt=!1,$r=!1,sr=!1,kr=!1,Qt=!1;function sn(t,n){{var m=t[n];if(m!=null){var L=wr(m);t.multiple&&!L?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",n):!t.multiple&&L&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",n)}}}function No(t,n,m){Ve("select",n),sn(n,"value"),sn(n,"defaultValue"),n.value!==void 0&&n.defaultValue!==void 0&&!Tt&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Tt=!0),t.push(Lt("select"));var L=null,z=null;for(var V in n)if($.call(n,V)){var ne=n[V];if(ne==null)continue;switch(V){case"children":L=ne;break;case"dangerouslySetInnerHTML":z=ne;break;case"defaultValue":case"value":break;default:Me(t,m,V,ne);break}}return t.push($e),dt(t,z,L),L}function Uo(t){var n="";return R.Children.forEach(t,function(m){m!=null&&(n+=m,!sr&&typeof m!="string"&&typeof m!="number"&&(sr=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),n}var Vn=c(' selected=""');function Oo(t,n,m,L){var z=L.selectedValue;t.push(Lt("option"));var V=null,ne=null,ve=null,e=null;for(var r in n)if($.call(n,r)){var d=n[r];if(d==null)continue;switch(r){case"children":V=d;break;case"selected":ve=d,Qt||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Qt=!0);break;case"dangerouslySetInnerHTML":e=d;break;case"value":ne=d;default:Me(t,m,r,d);break}}if(z!=null){var g;if(ne!==null?(B(ne,"value"),g=""+ne):(e!==null&&(kr||(kr=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),g=Uo(V)),wr(z))for(var N=0;N<z.length;N++){B(z[N],"value");var X=""+z[N];if(X===g){t.push(Vn);break}}else B(z,"select.value"),""+z===g&&t.push(Vn)}else ve&&t.push(Vn);return t.push($e),dt(t,e,V),V}function Qn(t,n,m){Ve("input",n),n.checked!==void 0&&n.defaultChecked!==void 0&&!Vt&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",n.type),Vt=!0),n.value!==void 0&&n.defaultValue!==void 0&&!pt&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",n.type),pt=!0),t.push(Lt("input"));var L=null,z=null,V=null,ne=null;for(var ve in n)if($.call(n,ve)){var e=n[ve];if(e==null)continue;switch(ve){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":ne=e;break;case"defaultValue":z=e;break;case"checked":V=e;break;case"value":L=e;break;default:Me(t,m,ve,e);break}}return V!==null?Me(t,m,"checked",V):ne!==null&&Me(t,m,"checked",ne),L!==null?Me(t,m,"value",L):z!==null&&Me(t,m,"value",z),t.push(gt),null}function Kt(t,n,m){Ve("textarea",n),n.value!==void 0&&n.defaultValue!==void 0&&!$r&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),$r=!0),t.push(Lt("textarea"));var L=null,z=null,V=null;for(var ne in n)if($.call(n,ne)){var ve=n[ne];if(ve==null)continue;switch(ne){case"children":V=ve;break;case"value":L=ve;break;case"defaultValue":z=ve;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Me(t,m,ne,ve);break}}if(L===null&&z!==null&&(L=z),t.push($e),V!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),L!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(wr(V)){if(V.length>1)throw new Error("<textarea> can only have at most one child.");G(V[0]),L=""+V[0]}G(V),L=""+V}return typeof L=="string"&&L[0]===`
|
|
75
|
+
`&&t.push(Rr),L!==null&&(B(L,"value"),t.push(v(ur(""+L)))),null}function an(t,n,m,L){t.push(Lt(m));for(var z in n)if($.call(n,z)){var V=n[z];if(V==null)continue;switch(z){case"children":case"dangerouslySetInnerHTML":throw new Error(m+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Me(t,L,z,V);break}}return t.push(gt),null}function xn(t,n,m){t.push(Lt("menuitem"));for(var L in n)if($.call(n,L)){var z=n[L];if(z==null)continue;switch(L){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:Me(t,m,L,z);break}}return t.push($e),null}function Je(t,n,m){t.push(Lt("title"));var L=null;for(var z in n)if($.call(n,z)){var V=n[z];if(V==null)continue;switch(z){case"children":L=V;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:Me(t,m,z,V);break}}t.push($e);{var ne=Array.isArray(L)&&L.length<2?L[0]||null:L;Array.isArray(L)&&L.length>1?i("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):ne!=null&&ne.$$typeof!=null?i("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):ne!=null&&typeof ne!="string"&&typeof ne!="number"&&i("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return L}function ar(t,n,m,L){t.push(Lt(m));var z=null,V=null;for(var ne in n)if($.call(n,ne)){var ve=n[ne];if(ve==null)continue;switch(ne){case"children":z=ve;break;case"dangerouslySetInnerHTML":V=ve;break;default:Me(t,L,ne,ve);break}}return t.push($e),dt(t,V,z),typeof z=="string"?(t.push(v(ur(z))),null):z}function Et(t,n,m,L){t.push(Lt(m));var z=null,V=null;for(var ne in n)if($.call(n,ne)){var ve=n[ne];if(ve==null)continue;switch(ne){case"children":z=ve;break;case"dangerouslySetInnerHTML":V=ve;break;case"style":ue(t,L,ve);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:ae(ne)&&typeof ve!="function"&&typeof ve!="symbol"&&t.push(he,v(ne),Se,v(it(ve)),Fe);break}}return t.push($e),dt(t,V,z),z}var Rr=c(`
|
|
76
|
+
`);function cr(t,n,m,L){t.push(Lt(m));var z=null,V=null;for(var ne in n)if($.call(n,ne)){var ve=n[ne];if(ve==null)continue;switch(ne){case"children":z=ve;break;case"dangerouslySetInnerHTML":V=ve;break;default:Me(t,L,ne,ve);break}}if(t.push($e),V!=null){if(z!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof V!="object"||!("__html"in V))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var e=V.__html;e!=null&&(typeof e=="string"&&e.length>0&&e[0]===`
|
|
77
|
+
`?t.push(Rr,v(e)):(G(e),t.push(v(""+e))))}return typeof z=="string"&&z[0]===`
|
|
78
|
+
`&&t.push(Rr),z}var kn=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,fr=new Map;function Lt(t){var n=fr.get(t);if(n===void 0){if(!kn.test(t))throw new Error("Invalid tag: "+t);n=c("<"+t),fr.set(t,n)}return n}var Kn=c("<!DOCTYPE html>");function qn(t,n,m,L,z){switch(lt(n,m),hr(n,m),Yn(n,m,null),!m.suppressContentEditableWarning&&m.contentEditable&&m.children!=null&&i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),z.insertionMode!==Ut&&z.insertionMode!==Rt&&n.indexOf("-")===-1&&typeof m.is!="string"&&n.toLowerCase()!==n&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),n){case"select":return No(t,m,L);case"option":return Oo(t,m,L,z);case"textarea":return Kt(t,m,L);case"input":return Qn(t,m,L);case"menuitem":return xn(t,m,L);case"title":return Je(t,m,L);case"listing":case"pre":return cr(t,m,n,L);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return an(t,m,n,L);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ar(t,m,n,L);case"html":return z.insertionMode===kt&&t.push(Kn),ar(t,m,n,L);default:return n.indexOf("-")===-1&&typeof m.is!="string"?ar(t,m,n,L):Et(t,m,n,L)}}var _i=c("</"),Bi=c(">");function Ni(t,n,m){switch(n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:t.push(_i,v(n),Bi)}}function jo(t,n){for(var m=n.bootstrapChunks,L=0;L<m.length-1;L++)p(t,m[L]);return L<m.length?A(t,m[L]):!0}var $o=c('<template id="'),Rn=c('"></template>');function Tn(t,n,m){p(t,$o),p(t,n.placeholderPrefix);var L=v(m.toString(16));return p(t,L),A(t,Rn)}var Ln=c("<!--$-->"),cn=c('<!--$?--><template id="'),zo=c('"></template>'),fn=c("<!--$!-->"),ei=c("<!--/$-->"),ti=c("<template"),zr=c('"'),Wr=c(' data-dgst="'),In=c(' data-msg="'),Ui=c(' data-stck="'),ri=c("></template>");function Oi(t,n){return A(t,Ln)}function Cn(t,n,m){if(p(t,cn),m===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return p(t,m),A(t,zo)}function At(t,n,m,L,z){var V;return V=A(t,fn),p(t,ti),m&&(p(t,Wr),p(t,v(it(m))),p(t,zr)),L&&(p(t,In),p(t,v(it(L))),p(t,zr)),z&&(p(t,Ui),p(t,v(it(z))),p(t,zr)),V=A(t,ri),V}function ji(t,n){return A(t,ei)}function Pn(t,n){return A(t,ei)}function Wo(t,n){return A(t,ei)}var $i=c('<div hidden id="'),Fn=c('">'),zi=c("</div>"),Wi=c('<svg aria-hidden="true" style="display:none" id="'),Dn=c('">'),Mn=c("</svg>"),Gi=c('<math aria-hidden="true" style="display:none" id="'),Yi=c('">'),Ji=c("</math>"),ni=c('<table hidden id="'),Xi=c('">'),l=c("</table>"),k=c('<table hidden><tbody id="'),O=c('">'),J=c("</tbody></table>"),de=c('<table hidden><tr id="'),ce=c('">'),ye=c("</tr></table>"),xe=c('<table hidden><colgroup id="'),_e=c('">'),je=c("</colgroup></table>");function Oe(t,n,m,L){switch(m.insertionMode){case kt:case et:return p(t,$i),p(t,n.segmentPrefix),p(t,v(L.toString(16))),A(t,Fn);case Ut:return p(t,Wi),p(t,n.segmentPrefix),p(t,v(L.toString(16))),A(t,Dn);case Rt:return p(t,Gi),p(t,n.segmentPrefix),p(t,v(L.toString(16))),A(t,Yi);case ut:return p(t,ni),p(t,n.segmentPrefix),p(t,v(L.toString(16))),A(t,Xi);case Nr:return p(t,k),p(t,n.segmentPrefix),p(t,v(L.toString(16))),A(t,O);case Ot:return p(t,de),p(t,n.segmentPrefix),p(t,v(L.toString(16))),A(t,ce);case jt:return p(t,xe),p(t,n.segmentPrefix),p(t,v(L.toString(16))),A(t,_e);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Ze(t,n){switch(n.insertionMode){case kt:case et:return A(t,zi);case Ut:return A(t,Mn);case Rt:return A(t,Ji);case ut:return A(t,l);case Nr:return A(t,J);case Ot:return A(t,ye);case jt:return A(t,je);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var wt="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",It='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',Ct='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',Hn=c(wt+';$RS("'),Zi=c('$RS("'),ii=c('","'),ju=c('")<\/script>');function $u(t,n,m){p(t,n.startInlineScript),n.sentCompleteSegmentFunction?p(t,Zi):(n.sentCompleteSegmentFunction=!0,p(t,Hn)),p(t,n.segmentPrefix);var L=v(m.toString(16));return p(t,L),p(t,ii),p(t,n.placeholderPrefix),p(t,L),A(t,ju)}var zu=c(It+';$RC("'),Wu=c('$RC("'),Gu=c('","'),Yu=c('")<\/script>');function Go(t,n,m,L){if(p(t,n.startInlineScript),n.sentCompleteBoundaryFunction?p(t,Wu):(n.sentCompleteBoundaryFunction=!0,p(t,zu)),m===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var z=v(L.toString(16));return p(t,m),p(t,Gu),p(t,n.segmentPrefix),p(t,z),A(t,Yu)}var Ju=c(Ct+';$RX("'),Xu=c('$RX("'),Yo=c('"'),Zu=c(")<\/script>"),Jo=c(",");function $l(t,n,m,L,z,V){if(p(t,n.startInlineScript),n.sentClientRenderFunction?p(t,Xu):(n.sentClientRenderFunction=!0,p(t,Ju)),m===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return p(t,m),p(t,Yo),(L||z||V)&&(p(t,Jo),p(t,v(Xo(L||"")))),(z||V)&&(p(t,Jo),p(t,v(Xo(z||"")))),V&&(p(t,Jo),p(t,v(Xo(V)))),A(t,Zu)}var zl=/[<\u2028\u2029]/g;function Xo(t){var n=JSON.stringify(t);return n.replace(zl,function(m){switch(m){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var $t=Object.assign,Vu=Symbol.for("react.element"),Wl=Symbol.for("react.portal"),Pt=Symbol.for("react.fragment"),Gl=Symbol.for("react.strict_mode"),Zo=Symbol.for("react.profiler"),Vi=Symbol.for("react.provider"),Qi=Symbol.for("react.context"),Ki=Symbol.for("react.forward_ref"),oi=Symbol.for("react.suspense"),li=Symbol.for("react.suspense_list"),ui=Symbol.for("react.memo"),_n=Symbol.for("react.lazy"),Vo=Symbol.for("react.scope"),Qo=Symbol.for("react.debug_trace_mode"),qi=Symbol.for("react.legacy_hidden"),Qu=Symbol.for("react.default_value"),Yl=Symbol.iterator,Ku="@@iterator";function qu(t){if(t===null||typeof t!="object")return null;var n=Yl&&t[Yl]||t[Ku];return typeof n=="function"?n:null}function Jl(t,n,m){var L=t.displayName;if(L)return L;var z=n.displayName||n.name||"";return z!==""?m+"("+z+")":m}function Xl(t){return t.displayName||"Context"}function tt(t){if(t==null)return null;if(typeof t.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Pt:return"Fragment";case Wl:return"Portal";case Zo:return"Profiler";case Gl:return"StrictMode";case oi:return"Suspense";case li:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Qi:var n=t;return Xl(n)+".Consumer";case Vi:var m=t;return Xl(m._context)+".Provider";case Ki:return Jl(t,t.render,"ForwardRef");case ui:var L=t.displayName||null;return L!==null?L:tt(t.type)||"Memo";case _n:{var z=t,V=z._payload,ne=z._init;try{return tt(ne(V))}catch{return null}}}return null}var si=0,Ko,Qe,Bn,qo,el,tl,rl;function nl(){}nl.__reactDisabledLog=!0;function Zl(){{if(si===0){Ko=console.log,Qe=console.info,Bn=console.warn,qo=console.error,el=console.group,tl=console.groupCollapsed,rl=console.groupEnd;var t={configurable:!0,enumerable:!0,value:nl,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}si++}}function Vl(){{if(si--,si===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:$t({},t,{value:Ko}),info:$t({},t,{value:Qe}),warn:$t({},t,{value:Bn}),error:$t({},t,{value:qo}),group:$t({},t,{value:el}),groupCollapsed:$t({},t,{value:tl}),groupEnd:$t({},t,{value:rl})})}si<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var eo=f.ReactCurrentDispatcher,il;function ai(t,n,m){{if(il===void 0)try{throw Error()}catch(z){var L=z.stack.trim().match(/\n( *(at )?)/);il=L&&L[1]||""}return`
|
|
79
|
+
`+il+t}}var ci=!1,Nn;{var fi=typeof WeakMap=="function"?WeakMap:Map;Nn=new fi}function di(t,n){if(!t||ci)return"";{var m=Nn.get(t);if(m!==void 0)return m}var L;ci=!0;var z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var V;V=eo.current,eo.current=null,Zl();try{if(n){var ne=function(){throw Error()};if(Object.defineProperty(ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ne,[])}catch(ee){L=ee}Reflect.construct(t,[],ne)}else{try{ne.call()}catch(ee){L=ee}t.call(ne.prototype)}}else{try{throw Error()}catch(ee){L=ee}t()}}catch(ee){if(ee&&L&&typeof ee.stack=="string"){for(var ve=ee.stack.split(`
|
|
80
|
+
`),e=L.stack.split(`
|
|
81
|
+
`),r=ve.length-1,d=e.length-1;r>=1&&d>=0&&ve[r]!==e[d];)d--;for(;r>=1&&d>=0;r--,d--)if(ve[r]!==e[d]){if(r!==1||d!==1)do if(r--,d--,d<0||ve[r]!==e[d]){var g=`
|
|
82
|
+
`+ve[r].replace(" at new "," at ");return t.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",t.displayName)),typeof t=="function"&&Nn.set(t,g),g}while(r>=1&&d>=0);break}}}finally{ci=!1,eo.current=V,Vl(),Error.prepareStackTrace=z}var N=t?t.displayName||t.name:"",X=N?ai(N):"";return typeof t=="function"&&Nn.set(t,X),X}function to(t,n,m){return di(t,!0)}function Ql(t,n,m){return di(t,!1)}function ol(t){var n=t.prototype;return!!(n&&n.isReactComponent)}function ll(t,n,m){if(t==null)return"";if(typeof t=="function")return di(t,ol(t));if(typeof t=="string")return ai(t);switch(t){case oi:return ai("Suspense");case li:return ai("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case Ki:return Ql(t.render);case ui:return ll(t.type,n,m);case _n:{var L=t,z=L._payload,V=L._init;try{return ll(V(z),n,m)}catch{}}}return""}var ul={},Kl=f.ReactDebugCurrentFrame;function Un(t){if(t){var n=t._owner,m=ll(t.type,t._source,n?n.type:null);Kl.setExtraStackFrame(m)}else Kl.setExtraStackFrame(null)}function sl(t,n,m,L,z){{var V=Function.call.bind($);for(var ne in t)if(V(t,ne)){var ve=void 0;try{if(typeof t[ne]!="function"){var e=Error((L||"React class")+": "+m+" type `"+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[ne]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw e.name="Invariant Violation",e}ve=t[ne](n,ne,L,m,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(r){ve=r}ve&&!(ve instanceof Error)&&(Un(z),i("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",L||"React class",m,ne,typeof ve),Un(null)),ve instanceof Error&&!(ve.message in ul)&&(ul[ve.message]=!0,Un(z),i("Failed %s type: %s",m,ve.message),Un(null))}}}var ro;ro={};var dn={};Object.freeze(dn);function al(t,n){{var m=t.contextTypes;if(!m)return dn;var L={};for(var z in m)L[z]=n[z];{var V=tt(t)||"Unknown";sl(m,L,"context",V)}return L}}function cl(t,n,m,L){{if(typeof t.getChildContext!="function"){{var z=tt(n)||"Unknown";ro[z]||(ro[z]=!0,i("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",z,z))}return m}var V=t.getChildContext();for(var ne in V)if(!(ne in L))throw new Error((tt(n)||"Unknown")+'.getChildContext(): key "'+ne+'" is not defined in childContextTypes.');{var ve=tt(n)||"Unknown";sl(L,V,"child context",ve)}return $t({},m,V)}}var Gr;Gr={};var ql=null,pn=null;function vn(t){t.context._currentValue=t.parentValue}function fl(t){t.context._currentValue=t.value}function dr(t,n){if(t!==n){vn(t);var m=t.parent,L=n.parent;if(m===null){if(L!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(L===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");dr(m,L)}fl(n)}}function no(t){vn(t);var n=t.parent;n!==null&&no(n)}function io(t){var n=t.parent;n!==null&&io(n),fl(t)}function pi(t,n){vn(t);var m=t.parent;if(m===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");m.depth===n.depth?dr(m,n):pi(m,n)}function dl(t,n){var m=n.parent;if(m===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");t.depth===m.depth?dr(t,m):dl(t,m),fl(n)}function vi(t){var n=pn,m=t;n!==m&&(n===null?io(m):m===null?no(n):n.depth===m.depth?dr(n,m):n.depth>m.depth?pi(n,m):dl(n,m),pn=m)}function eu(t,n){var m;m=t._currentValue,t._currentValue=n,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==Gr&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=Gr;var L=pn,z={parent:L,depth:L===null?0:L.depth+1,context:t,parentValue:m,value:n};return pn=z,z}function tu(t){var n=pn;if(n===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");n.context!==t&&i("The parent context is not the expected context. This is probably a bug in React.");{var m=n.parentValue;m===Qu?n.context._currentValue=n.context._defaultValue:n.context._currentValue=m,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==Gr&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=Gr}return pn=n.parent}function oo(){return pn}function mi(t){var n=t._currentValue;return n}function pl(t){return t._reactInternals}function es(t,n){t._reactInternals=n}var On={},lo={},vl,uo,so,hi,ao,jn,bi,co,$n;{vl=new Set,uo=new Set,so=new Set,bi=new Set,hi=new Set,co=new Set,$n=new Set;var fo=new Set;jn=function(t,n){if(!(t===null||typeof t=="function")){var m=n+"_"+t;fo.has(m)||(fo.add(m),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",n,t))}},ao=function(t,n){if(n===void 0){var m=tt(t)||"Component";hi.has(m)||(hi.add(m),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",m))}}}function po(t,n){{var m=t.constructor,L=m&&tt(m)||"ReactClass",z=L+"."+n;if(On[z])return;i(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
83
|
+
|
|
84
|
+
Please check the code for the %s component.`,n,n,L),On[z]=!0}}var vo={isMounted:function(t){return!1},enqueueSetState:function(t,n,m){var L=pl(t);L.queue===null?po(t,"setState"):(L.queue.push(n),m!=null&&jn(m,"setState"))},enqueueReplaceState:function(t,n,m){var L=pl(t);L.replace=!0,L.queue=[n],m!=null&&jn(m,"setState")},enqueueForceUpdate:function(t,n){var m=pl(t);m.queue===null?po(t,"forceUpdate"):n!=null&&jn(n,"setState")}};function ru(t,n,m,L,z){var V=m(z,L);ao(n,V);var ne=V==null?L:$t({},L,V);return ne}function nu(t,n,m){var L=dn,z=t.contextType;if("contextType"in t){var V=z===null||z!==void 0&&z.$$typeof===Qi&&z._context===void 0;if(!V&&!$n.has(t)){$n.add(t);var ne="";z===void 0?ne=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof z!="object"?ne=" However, it is set to a "+typeof z+".":z.$$typeof===Vi?ne=" Did you accidentally pass the Context.Provider instead?":z._context!==void 0?ne=" Did you accidentally pass the Context.Consumer instead?":ne=" However, it is set to an object with keys {"+Object.keys(z).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",tt(t)||"Component",ne)}}typeof z=="object"&&z!==null?L=mi(z):L=m;var ve=new t(n,L);{if(typeof t.getDerivedStateFromProps=="function"&&(ve.state===null||ve.state===void 0)){var e=tt(t)||"Component";vl.has(e)||(vl.add(e),i("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",e,ve.state===null?"null":"undefined",e))}if(typeof t.getDerivedStateFromProps=="function"||typeof ve.getSnapshotBeforeUpdate=="function"){var r=null,d=null,g=null;if(typeof ve.componentWillMount=="function"&&ve.componentWillMount.__suppressDeprecationWarning!==!0?r="componentWillMount":typeof ve.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof ve.componentWillReceiveProps=="function"&&ve.componentWillReceiveProps.__suppressDeprecationWarning!==!0?d="componentWillReceiveProps":typeof ve.UNSAFE_componentWillReceiveProps=="function"&&(d="UNSAFE_componentWillReceiveProps"),typeof ve.componentWillUpdate=="function"&&ve.componentWillUpdate.__suppressDeprecationWarning!==!0?g="componentWillUpdate":typeof ve.UNSAFE_componentWillUpdate=="function"&&(g="UNSAFE_componentWillUpdate"),r!==null||d!==null||g!==null){var N=tt(t)||"Component",X=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";so.has(N)||(so.add(N),i(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
85
|
+
|
|
86
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
87
|
+
|
|
88
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
89
|
+
https://reactjs.org/link/unsafe-component-lifecycles`,N,X,r!==null?`
|
|
90
|
+
`+r:"",d!==null?`
|
|
91
|
+
`+d:"",g!==null?`
|
|
92
|
+
`+g:""))}}}return ve}function iu(t,n,m){{var L=tt(n)||"Component",z=t.render;z||(n.prototype&&typeof n.prototype.render=="function"?i("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",L):i("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",L)),t.getInitialState&&!t.getInitialState.isReactClassApproved&&!t.state&&i("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",L),t.getDefaultProps&&!t.getDefaultProps.isReactClassApproved&&i("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",L),t.propTypes&&i("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",L),t.contextType&&i("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",L),t.contextTypes&&i("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",L),n.contextType&&n.contextTypes&&!co.has(n)&&(co.add(n),i("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",L)),typeof t.componentShouldUpdate=="function"&&i("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",L),n.prototype&&n.prototype.isPureReactComponent&&typeof t.shouldComponentUpdate<"u"&&i("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",tt(n)||"A pure component"),typeof t.componentDidUnmount=="function"&&i("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",L),typeof t.componentDidReceiveProps=="function"&&i("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",L),typeof t.componentWillRecieveProps=="function"&&i("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",L),typeof t.UNSAFE_componentWillRecieveProps=="function"&&i("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",L);var V=t.props!==m;t.props!==void 0&&V&&i("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",L,L),t.defaultProps&&i("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",L,L),typeof t.getSnapshotBeforeUpdate=="function"&&typeof t.componentDidUpdate!="function"&&!uo.has(n)&&(uo.add(n),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",tt(n))),typeof t.getDerivedStateFromProps=="function"&&i("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",L),typeof t.getDerivedStateFromError=="function"&&i("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",L),typeof n.getSnapshotBeforeUpdate=="function"&&i("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",L);var ne=t.state;ne&&(typeof ne!="object"||wr(ne))&&i("%s.state: must be set to an object or null",L),typeof t.getChildContext=="function"&&typeof n.childContextTypes!="object"&&i("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",L)}}function ts(t,n){var m=n.state;if(typeof n.componentWillMount=="function"){if(n.componentWillMount.__suppressDeprecationWarning!==!0){var L=tt(t)||"Unknown";lo[L]||(h(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
93
|
+
|
|
94
|
+
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
95
|
+
|
|
96
|
+
Please update the following components: %s`,L),lo[L]=!0)}n.componentWillMount()}typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),m!==n.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",tt(t)||"Component"),vo.enqueueReplaceState(n,n.state,null))}function rs(t,n,m,L){if(t.queue!==null&&t.queue.length>0){var z=t.queue,V=t.replace;if(t.queue=null,t.replace=!1,V&&z.length===1)n.state=z[0];else{for(var ne=V?z[0]:n.state,ve=!0,e=V?1:0;e<z.length;e++){var r=z[e],d=typeof r=="function"?r.call(n,ne,m,L):r;d!=null&&(ve?(ve=!1,ne=$t({},ne,d)):$t(ne,d))}n.state=ne}}else t.queue=null}function ou(t,n,m,L){iu(t,n,m);var z=t.state!==void 0?t.state:null;t.updater=vo,t.props=m,t.state=z;var V={queue:[],replace:!1};es(t,V);var ne=n.contextType;if(typeof ne=="object"&&ne!==null?t.context=mi(ne):t.context=L,t.state===m){var ve=tt(n)||"Component";bi.has(ve)||(bi.add(ve),i("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",ve))}var e=n.getDerivedStateFromProps;typeof e=="function"&&(t.state=ru(t,n,e,z,m)),typeof n.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function"&&(typeof t.UNSAFE_componentWillMount=="function"||typeof t.componentWillMount=="function")&&(ts(n,t),rs(V,t,m,L))}var ns={id:1,overflow:""};function is(t){var n=t.overflow,m=t.id,L=m&~os(m);return L.toString(32)+n}function mo(t,n,m){var L=t.id,z=t.overflow,V=ho(L)-1,ne=L&~(1<<V),ve=m+1,e=ho(n)+V;if(e>30){var r=V-V%5,d=(1<<r)-1,g=(ne&d).toString(32),N=ne>>r,X=V-r,ee=ho(n)+X,pe=ve<<X,we=pe|N,Le=g+z;return{id:1<<ee|we,overflow:Le}}else{var De=ve<<V,Ue=De|ne,Ke=z;return{id:1<<e|Ue,overflow:Ke}}}function ho(t){return 32-ml(t)}function os(t){return 1<<ho(t)-1}var ml=Math.clz32?Math.clz32:us,bo=Math.log,ls=Math.LN2;function us(t){var n=t>>>0;return n===0?32:31-(bo(n)/ls|0)|0}function ss(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var as=typeof Object.is=="function"?Object.is:ss,Tr=null,hl=null,yo=null,ze=null,mn=!1,hn=!1,Ye=0,zt=null,bn=0,go=25,vt=!1,Lr;function yn(){if(Tr===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
97
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
98
|
+
2. You might be breaking the Rules of Hooks
|
|
99
|
+
3. You might have more than one copy of React in the same app
|
|
100
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return vt&&i("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),Tr}function pr(t,n){if(n===null)return i("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Lr),!1;t.length!==n.length&&i(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
101
|
+
|
|
102
|
+
Previous: %s
|
|
103
|
+
Incoming: %s`,Lr,"["+t.join(", ")+"]","["+n.join(", ")+"]");for(var m=0;m<n.length&&m<t.length;m++)if(!as(t[m],n[m]))return!1;return!0}function gn(){if(bn>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Ir(){return ze===null?yo===null?(mn=!1,yo=ze=gn()):(mn=!0,ze=yo):ze.next===null?(mn=!1,ze=ze.next=gn()):(mn=!0,ze=ze.next),ze}function cs(t,n){Tr=n,hl=t,vt=!1,Ye=0}function lu(t,n,m,L){for(;hn;)hn=!1,Ye=0,bn+=1,ze=null,m=t(n,L);return bl(),m}function Eo(){var t=Ye!==0;return t}function bl(){vt=!1,Tr=null,hl=null,hn=!1,yo=null,bn=0,zt=null,ze=null}function fs(t){return vt&&i("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),mi(t)}function uu(t){return Lr="useContext",yn(),mi(t)}function yi(t,n){return typeof n=="function"?n(t):n}function ds(t){return Lr="useState",su(yi,t)}function su(t,n,m){if(t!==yi&&(Lr="useReducer"),Tr=yn(),ze=Ir(),mn){var L=ze.queue,z=L.dispatch;if(zt!==null){var V=zt.get(L);if(V!==void 0){zt.delete(L);var ne=ze.memoizedState,ve=V;do{var e=ve.action;vt=!0,ne=t(ne,e),vt=!1,ve=ve.next}while(ve!==null);return ze.memoizedState=ne,[ne,z]}}return[ze.memoizedState,z]}else{vt=!0;var r;t===yi?r=typeof n=="function"?n():n:r=m!==void 0?m(n):n,vt=!1,ze.memoizedState=r;var d=ze.queue={last:null,dispatch:null},g=d.dispatch=cu.bind(null,Tr,d);return[ze.memoizedState,g]}}function Ao(t,n){Tr=yn(),ze=Ir();var m=n===void 0?null:n;if(ze!==null){var L=ze.memoizedState;if(L!==null&&m!==null){var z=L[1];if(pr(m,z))return L[0]}}vt=!0;var V=t();return vt=!1,ze.memoizedState=[V,m],V}function ps(t){Tr=yn(),ze=Ir();var n=ze.memoizedState;if(n===null){var m={current:t};return Object.seal(m),ze.memoizedState=m,m}else return n}function au(t,n){Lr="useLayoutEffect",i("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function cu(t,n,m){if(bn>=go)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(t===Tr){hn=!0;var L={action:m,next:null};zt===null&&(zt=new Map);var z=zt.get(n);if(z===void 0)zt.set(n,L);else{for(var V=z;V.next!==null;)V=V.next;V.next=L}}}function vs(t,n){return Ao(function(){return t},n)}function ms(t,n,m){return yn(),n(t._source)}function hs(t,n,m){if(m===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return m()}function bs(t){return yn(),t}function ys(){throw new Error("startTransition cannot be called during server rendering.")}function gs(){return yn(),[!1,ys]}function Es(){var t=hl,n=is(t.treeContext),m=yl;if(m===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var L=Ye++;return Ur(m,n,L)}function wo(){}var fu={readContext:fs,useContext:uu,useMemo:Ao,useReducer:su,useRef:ps,useState:ds,useInsertionEffect:wo,useLayoutEffect:au,useCallback:vs,useImperativeHandle:wo,useEffect:wo,useDebugValue:wo,useDeferredValue:bs,useTransition:gs,useId:Es,useMutableSource:ms,useSyncExternalStore:hs},yl=null;function gi(t){yl=t}function du(t){try{var n="",m=t;do{switch(m.tag){case 0:n+=ai(m.type,null,null);break;case 1:n+=Ql(m.type,null,null);break;case 2:n+=to(m.type,null,null);break}m=m.parent}while(m);return n}catch(L){return`
|
|
104
|
+
Error generating stack: `+L.message+`
|
|
105
|
+
`+L.stack}}var Ei=f.ReactCurrentDispatcher,So=f.ReactDebugCurrentFrame,gl=0,Yr=1,xo=2,ko=3,En=4,pu=0,El=1,An=2,As=12800;function vu(t){return console.error(t),null}function vr(){}function ws(t,n,m,L,z,V,ne,ve,e){var r=[],d=new Set,g={destination:null,responseState:n,progressiveChunkSize:L===void 0?As:L,status:pu,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:d,pingedTasks:r,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:z===void 0?vu:z,onAllReady:V===void 0?vr:V,onShellReady:ne===void 0?vr:ne,onShellError:ve===void 0?vr:ve,onFatalError:e===void 0?vr:e},N=Ro(g,0,null,m,!1,!1);N.parentFlushed=!0;var X=Al(g,t,null,N,d,dn,ql,ns);return r.push(X),g}function Ss(t,n){var m=t.pingedTasks;m.push(n),m.length===1&&S(function(){return Ri(t)})}function Ai(t,n){return{id:on,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:n,errorDigest:null}}function Al(t,n,m,L,z,V,ne,ve){t.allPendingTasks++,m===null?t.pendingRootTasks++:m.pendingTasks++;var e={node:n,ping:function(){return Ss(t,e)},blockedBoundary:m,blockedSegment:L,abortSet:z,legacyContext:V,context:ne,treeContext:ve};return e.componentStack=null,z.add(e),e}function Ro(t,n,m,L,z,V){return{status:gl,id:-1,index:n,parentFlushed:!1,chunks:[],children:[],formatContext:L,boundary:m,lastPushedText:z,textEmbedded:V}}var Cr=null;function wi(){return Cr===null||Cr.componentStack===null?"":du(Cr.componentStack)}function Jr(t,n){t.componentStack={tag:0,parent:t.componentStack,type:n}}function mr(t,n){t.componentStack={tag:1,parent:t.componentStack,type:n}}function wl(t,n){t.componentStack={tag:2,parent:t.componentStack,type:n}}function Wt(t){t.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):t.componentStack=t.componentStack.parent}var zn=null;function Sl(t,n){{var m;typeof n=="string"?m=n:n&&typeof n.message=="string"?m=n.message:m=String(n);var L=zn||wi();zn=null,t.errorMessage=m,t.errorComponentStack=L}}function Gt(t,n){var m=t.onError(n);if(m!=null&&typeof m!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof m+'" instead');return m}function Xr(t,n){var m=t.onShellError;m(n);var L=t.onFatalError;L(n),t.destination!==null?(t.status=An,C(t.destination,n)):(t.status=El,t.fatalError=n)}function xl(t,n,m){Jr(n,"Suspense");var L=n.blockedBoundary,z=n.blockedSegment,V=m.fallback,ne=m.children,ve=new Set,e=Ai(t,ve),r=z.chunks.length,d=Ro(t,r,e,z.formatContext,!1,!1);z.children.push(d),z.lastPushedText=!1;var g=Ro(t,0,null,z.formatContext,!1,!1);g.parentFlushed=!0,n.blockedBoundary=e,n.blockedSegment=g;try{if(Ml(t,n,ne),jr(g.chunks,t.responseState,g.lastPushedText,g.textEmbedded),g.status=Yr,Io(e,g),e.pendingTasks===0){Wt(n);return}}catch(X){g.status=En,e.forceClientRender=!0,e.errorDigest=Gt(t,X),Sl(e,X)}finally{n.blockedBoundary=L,n.blockedSegment=z}var N=Al(t,V,L,d,ve,n.legacyContext,n.context,n.treeContext);N.componentStack=n.componentStack,t.pingedTasks.push(N),Wt(n)}function Si(t,n,m,L){Jr(n,m);var z=n.blockedSegment,V=qn(z.chunks,m,L,t.responseState,z.formatContext);z.lastPushedText=!1;var ne=z.formatContext;z.formatContext=lr(ne,m,L),Ml(t,n,V),z.formatContext=ne,Ni(z.chunks,m),z.lastPushedText=!1,Wt(n)}function To(t){return t.prototype&&t.prototype.isReactComponent}function mu(t,n,m,L,z){var V={};cs(n,V);var ne=m(L,z);return lu(m,L,ne,z)}function hu(t,n,m,L,z){var V=m.render();m.props!==z&&(ki||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",tt(L)||"a component"),ki=!0);{var ne=L.childContextTypes;if(ne!=null){var ve=n.legacyContext,e=cl(m,L,ve,ne);n.legacyContext=e,Ft(t,n,V),n.legacyContext=ve;return}}Ft(t,n,V)}function xs(t,n,m,L){wl(n,m);var z=al(m,n.legacyContext),V=nu(m,L,z);ou(V,m,L,z),hu(t,n,V,m,L),Wt(n)}var kl={},xi={},bu={},Rl={},ki=!1,Tl={},Ll=!1,Il=!1,Cl=!1;function yu(t,n,m,L){var z;if(z=al(m,n.legacyContext),mr(n,m),m.prototype&&typeof m.prototype.render=="function"){var V=tt(m)||"Unknown";kl[V]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",V,V),kl[V]=!0)}var ne=mu(t,n,m,L,z),ve=Eo();if(typeof ne=="object"&&ne!==null&&typeof ne.render=="function"&&ne.$$typeof===void 0){var e=tt(m)||"Unknown";xi[e]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",e,e,e),xi[e]=!0)}if(typeof ne=="object"&&ne!==null&&typeof ne.render=="function"&&ne.$$typeof===void 0){{var r=tt(m)||"Unknown";xi[r]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",r,r,r),xi[r]=!0)}ou(ne,m,L,z),hu(t,n,ne,m,L)}else if(gu(m),ve){var d=n.treeContext,g=1,N=0;n.treeContext=mo(d,g,N);try{Ft(t,n,ne)}finally{n.treeContext=d}}else Ft(t,n,ne);Wt(n)}function gu(t){{if(t&&t.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),t.defaultProps!==void 0){var n=tt(t)||"Unknown";Tl[n]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",n),Tl[n]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var m=tt(t)||"Unknown";Rl[m]||(i("%s: Function components do not support getDerivedStateFromProps.",m),Rl[m]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var L=tt(t)||"Unknown";bu[L]||(i("%s: Function components do not support contextType.",L),bu[L]=!0)}}}function Pl(t,n){if(t&&t.defaultProps){var m=$t({},n),L=t.defaultProps;for(var z in L)m[z]===void 0&&(m[z]=L[z]);return m}return n}function ks(t,n,m,L,z){mr(n,m.render);var V=mu(t,n,m.render,L,z),ne=Eo();if(ne){var ve=n.treeContext,e=1,r=0;n.treeContext=mo(ve,e,r);try{Ft(t,n,V)}finally{n.treeContext=ve}}else Ft(t,n,V);Wt(n)}function Rs(t,n,m,L,z){var V=m.type,ne=Pl(V,L);Fl(t,n,V,ne,z)}function Eu(t,n,m,L){m._context===void 0?m!==m.Consumer&&(Cl||(Cl=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):m=m._context;var z=L.children;typeof z!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var V=mi(m),ne=z(V);Ft(t,n,ne)}function Ts(t,n,m,L){var z=m._context,V=L.value,ne=L.children,ve;ve=n.context,n.context=eu(z,V),Ft(t,n,ne),n.context=tu(z),ve!==n.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Ls(t,n,m,L,z){Jr(n,"Lazy");var V=m._payload,ne=m._init,ve=ne(V),e=Pl(ve,L);Fl(t,n,ve,e,z),Wt(n)}function Fl(t,n,m,L,z){if(typeof m=="function")if(To(m)){xs(t,n,m,L);return}else{yu(t,n,m,L);return}if(typeof m=="string"){Si(t,n,m,L);return}switch(m){case qi:case Qo:case Gl:case Zo:case Pt:{Ft(t,n,L.children);return}case li:{Jr(n,"SuspenseList"),Ft(t,n,L.children),Wt(n);return}case Vo:throw new Error("ReactDOMServer does not yet support scope components.");case oi:{xl(t,n,L);return}}if(typeof m=="object"&&m!==null)switch(m.$$typeof){case Ki:{ks(t,n,m,L,z);return}case ui:{Rs(t,n,m,L,z);return}case Vi:{Ts(t,n,m,L);return}case Qi:{Eu(t,n,m,L);return}case _n:{Ls(t,n,m,L);return}}var V="";throw(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(V+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(m==null?m:typeof m)+"."+V))}function Is(t,n){typeof Symbol=="function"&&t[Symbol.toStringTag]==="Generator"&&(Ll||i("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Ll=!0),t.entries===n&&(Il||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Il=!0)}function Ft(t,n,m){try{return Dl(t,n,m)}catch(L){throw typeof L=="object"&&L!==null&&typeof L.then=="function"||(zn=zn!==null?zn:wi()),L}}function Dl(t,n,m){if(n.node=m,typeof m=="object"&&m!==null){switch(m.$$typeof){case Vu:{var L=m,z=L.type,V=L.props,ne=L.ref;Fl(t,n,z,V,ne);return}case Wl:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case _n:{var ve=m,e=ve._payload,r=ve._init,d;try{d=r(e)}catch(De){throw typeof De=="object"&&De!==null&&typeof De.then=="function"&&Jr(n,"Lazy"),De}Ft(t,n,d);return}}if(wr(m)){Au(t,n,m);return}var g=qu(m);if(g){Is(m,g);var N=g.call(m);if(N){var X=N.next();if(!X.done){var ee=[];do ee.push(X.value),X=N.next();while(!X.done);Au(t,n,ee);return}return}}var pe=Object.prototype.toString.call(m);throw new Error("Objects are not valid as a React child (found: "+(pe==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":pe)+"). If you meant to render a collection of children, use an array instead.")}if(typeof m=="string"){var we=n.blockedSegment;we.lastPushedText=Or(n.blockedSegment.chunks,m,t.responseState,we.lastPushedText);return}if(typeof m=="number"){var Le=n.blockedSegment;Le.lastPushedText=Or(n.blockedSegment.chunks,""+m,t.responseState,Le.lastPushedText);return}typeof m=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Au(t,n,m){for(var L=m.length,z=0;z<L;z++){var V=n.treeContext;n.treeContext=mo(V,L,z);try{Ml(t,n,m[z])}finally{n.treeContext=V}}}function Dt(t,n,m){var L=n.blockedSegment,z=L.chunks.length,V=Ro(t,z,null,L.formatContext,L.lastPushedText,!0);L.children.push(V),L.lastPushedText=!1;var ne=Al(t,n.node,n.blockedBoundary,V,n.abortSet,n.legacyContext,n.context,n.treeContext);n.componentStack!==null&&(ne.componentStack=n.componentStack.parent);var ve=ne.ping;m.then(ve,ve)}function Ml(t,n,m){var L=n.blockedSegment.formatContext,z=n.legacyContext,V=n.context,ne=null;ne=n.componentStack;try{return Ft(t,n,m)}catch(ve){if(bl(),typeof ve=="object"&&ve!==null&&typeof ve.then=="function"){Dt(t,n,ve),n.blockedSegment.formatContext=L,n.legacyContext=z,n.context=V,vi(V),n.componentStack=ne;return}else throw n.blockedSegment.formatContext=L,n.legacyContext=z,n.context=V,vi(V),n.componentStack=ne,ve}}function wu(t,n,m,L){var z=Gt(t,L);if(n===null?Xr(t,L):(n.pendingTasks--,n.forceClientRender||(n.forceClientRender=!0,n.errorDigest=z,Sl(n,L),n.parentFlushed&&t.clientRenderedBoundaries.push(n))),t.allPendingTasks--,t.allPendingTasks===0){var V=t.onAllReady;V()}}function Cs(t){var n=this,m=t.blockedBoundary,L=t.blockedSegment;L.status=ko,Su(n,m,L)}function Lo(t,n,m){var L=t.blockedBoundary,z=t.blockedSegment;if(z.status=ko,L===null)n.allPendingTasks--,n.status!==An&&(n.status=An,n.destination!==null&&F(n.destination));else{if(L.pendingTasks--,!L.forceClientRender){L.forceClientRender=!0;var V=m===void 0?new Error("The render was aborted by the server without a reason."):m;L.errorDigest=n.onError(V);{var ne="The server did not finish this Suspense boundary: ";V&&typeof V.message=="string"?V=ne+V.message:V=ne+String(V);var ve=Cr;Cr=t;try{Sl(L,V)}finally{Cr=ve}}L.parentFlushed&&n.clientRenderedBoundaries.push(L)}if(L.fallbackAbortableTasks.forEach(function(r){return Lo(r,n,m)}),L.fallbackAbortableTasks.clear(),n.allPendingTasks--,n.allPendingTasks===0){var e=n.onAllReady;e()}}}function Io(t,n){if(n.chunks.length===0&&n.children.length===1&&n.children[0].boundary===null){var m=n.children[0];m.id=n.id,m.parentFlushed=!0,m.status===Yr&&Io(t,m)}else{var L=t.completedSegments;L.push(n)}}function Su(t,n,m){if(n===null){if(m.parentFlushed){if(t.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");t.completedRootSegment=m}if(t.pendingRootTasks--,t.pendingRootTasks===0){t.onShellError=vr;var L=t.onShellReady;L()}}else if(n.pendingTasks--,!n.forceClientRender){if(n.pendingTasks===0)m.parentFlushed&&m.status===Yr&&Io(n,m),n.parentFlushed&&t.completedBoundaries.push(n),n.fallbackAbortableTasks.forEach(Cs,t),n.fallbackAbortableTasks.clear();else if(m.parentFlushed&&m.status===Yr){Io(n,m);var z=n.completedSegments;z.length===1&&n.parentFlushed&&t.partialBoundaries.push(n)}}if(t.allPendingTasks--,t.allPendingTasks===0){var V=t.onAllReady;V()}}function xu(t,n){var m=n.blockedSegment;if(m.status===gl){vi(n.context);var L=null;L=Cr,Cr=n;try{Ft(t,n,n.node),jr(m.chunks,t.responseState,m.lastPushedText,m.textEmbedded),n.abortSet.delete(n),m.status=Yr,Su(t,n.blockedBoundary,m)}catch(V){if(bl(),typeof V=="object"&&V!==null&&typeof V.then=="function"){var z=n.ping;V.then(z,z)}else n.abortSet.delete(n),m.status=En,wu(t,n.blockedBoundary,m,V)}finally{Cr=L}}}function Ri(t){if(t.status!==An){var n=oo(),m=Ei.current;Ei.current=fu;var L;L=So.getCurrentStack,So.getCurrentStack=wi;var z=yl;gi(t.responseState);try{var V=t.pingedTasks,ne;for(ne=0;ne<V.length;ne++){var ve=V[ne];xu(t,ve)}V.splice(0,ne),t.destination!==null&&Po(t,t.destination)}catch(e){Gt(t,e),Xr(t,e)}finally{gi(z),Ei.current=m,So.getCurrentStack=L,m===fu&&vi(n)}}}function Ti(t,n,m){switch(m.parentFlushed=!0,m.status){case gl:{var L=m.id=t.nextSegmentId++;return m.lastPushedText=!1,m.textEmbedded=!1,Tn(n,t.responseState,L)}case Yr:{m.status=xo;for(var z=!0,V=m.chunks,ne=0,ve=m.children,e=0;e<ve.length;e++){for(var r=ve[e];ne<r.index;ne++)p(n,V[ne]);z=Co(t,n,r)}for(;ne<V.length-1;ne++)p(n,V[ne]);return ne<V.length&&(z=A(n,V[ne])),z}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Co(t,n,m){var L=m.boundary;if(L===null)return Ti(t,n,m);if(L.parentFlushed=!0,L.forceClientRender)return At(n,t.responseState,L.errorDigest,L.errorMessage,L.errorComponentStack),Ti(t,n,m),Wo(n,t.responseState);if(L.pendingTasks>0){L.rootSegmentID=t.nextSegmentId++,L.completedSegments.length>0&&t.partialBoundaries.push(L);var z=L.id=ln(t.responseState);return Cn(n,t.responseState,z),Ti(t,n,m),Pn(n,t.responseState)}else{if(L.byteSize>t.progressiveChunkSize)return L.rootSegmentID=t.nextSegmentId++,t.completedBoundaries.push(L),Cn(n,t.responseState,L.id),Ti(t,n,m),Pn(n,t.responseState);Oi(n,t.responseState);var V=L.completedSegments;if(V.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var ne=V[0];return Co(t,n,ne),ji(n,t.responseState)}}function ku(t,n,m){return $l(n,t.responseState,m.id,m.errorDigest,m.errorMessage,m.errorComponentStack)}function Li(t,n,m){return Oe(n,t.responseState,m.formatContext,m.id),Co(t,n,m),Ze(n,m.formatContext)}function Ii(t,n,m){for(var L=m.completedSegments,z=0;z<L.length;z++){var V=L[z];Hl(t,n,m,V)}return L.length=0,Go(n,t.responseState,m.id,m.rootSegmentID)}function Ps(t,n,m){for(var L=m.completedSegments,z=0;z<L.length;z++){var V=L[z];if(!Hl(t,n,m,V))return z++,L.splice(0,z),!1}return L.splice(0,z),!0}function Hl(t,n,m,L){if(L.status===xo)return!0;var z=L.id;if(z===-1){var V=L.id=m.rootSegmentID;if(V===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Li(t,n,L)}else return Li(t,n,L),$u(n,t.responseState,z)}function Po(t,n){T();try{var m=t.completedRootSegment;m!==null&&t.pendingRootTasks===0&&(Co(t,n,m),t.completedRootSegment=null,jo(n,t.responseState));var L=t.clientRenderedBoundaries,z;for(z=0;z<L.length;z++){var V=L[z];ku(t,n,V)}L.splice(0,z);var ne=t.completedBoundaries;for(z=0;z<ne.length;z++){var ve=ne[z];Ii(t,n,ve)}ne.splice(0,z),P(n),T(n);var e=t.partialBoundaries;for(z=0;z<e.length;z++){var r=e[z];if(!Ps(t,n,r)){t.destination=null,z++,e.splice(0,z);return}}e.splice(0,z);var d=t.completedBoundaries;for(z=0;z<d.length;z++){var g=d[z];Ii(t,n,g)}d.splice(0,z)}finally{P(n),t.allPendingTasks===0&&t.pingedTasks.length===0&&t.clientRenderedBoundaries.length===0&&t.completedBoundaries.length===0&&(t.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),F(n))}}function Fs(t){S(function(){return Ri(t)})}function Ru(t,n){if(t.status===El){t.status=An,C(n,t.fatalError);return}if(t.status!==An&&t.destination===null){t.destination=n;try{Po(t,n)}catch(m){Gt(t,m),Xr(t,m)}}}function Fo(t,n){try{var m=t.abortableTasks;m.forEach(function(L){return Lo(L,t,n)}),m.clear(),t.destination!==null&&Po(t,t.destination)}catch(L){Gt(t,L),Xr(t,L)}}function Ds(t,n){return new Promise(function(m,L){var z,V,ne=new Promise(function(N,X){V=N,z=X});function ve(){var N=new ReadableStream({type:"bytes",pull:function(X){Ru(r,X)},cancel:function(X){Fo(r)}},{highWaterMark:0});N.allReady=ne,m(N)}function e(N){ne.catch(function(){}),L(N)}var r=ws(t,xr(n?n.identifierPrefix:void 0,n?n.nonce:void 0,n?n.bootstrapScriptContent:void 0,n?n.bootstrapScripts:void 0,n?n.bootstrapModules:void 0),Zt(n?n.namespaceURI:void 0),n?n.progressiveChunkSize:void 0,n?n.onError:void 0,V,ve,e,z);if(n&&n.signal){var d=n.signal,g=function(){Fo(r,d.reason),d.removeEventListener("abort",g)};d.addEventListener("abort",g)}Fs(r)})}Fu.renderToReadableStream=Ds,Fu.version=u}()),Fu}var Hi,_s;process.env.NODE_ENV==="production"?(Hi=zd(),_s=Wd()):(Hi=Gd(),_s=Yd());Hi.version;Hi.renderToString;var vc=Hi.renderToStaticMarkup;Hi.renderToNodeStream;Hi.renderToStaticNodeStream;_s.renderToReadableStream;const Jd=typeof window<"u"?I.useLayoutEffect:I.useEffect,js="SidebarGroup",$s="SidebarItem";function Hu(R,u){return I.isValidElement(R)&&R.type.__sidebarMarker===u}function Xd(R){const u=[],f=[];return I.Children.forEach(R,h=>{if(Hu(h,js)||Hu(h,$s)){u.push(h);return}h!=null&&h!==!1&&f.push(h)}),{submenuChildren:u,contentChildren:f}}function Zd(R,u){if(typeof R=="string")return{contentChildren:u};if(R)return{iconHtml:Ns(R),contentChildren:u};const[f,...h]=u;return I.isValidElement(f)&&(typeof f.type!="string"||f.type==="svg")?{iconHtml:Ns(f),contentChildren:h}:{contentChildren:u}}function Bs(R,u=""){const f=[];return I.Children.forEach(R,h=>{if(Hu(h,js)){const i=h.props.title||u;f.push(...Bs(h.props.children,i));return}if(Hu(h,$s)){const i=h.props.section||u,b=h.props.icon,{submenuChildren:S,contentChildren:y}=Xd(h.props.children),{iconHtml:s,contentChildren:a}=Zd(b,y);f.push({value:h.props.value,label:h.props.label,href:h.props.href,target:h.props.target,rel:h.props.rel,icon:typeof b=="string"?b:void 0,iconHtml:s,contentHtml:Vd(a),badge:h.props.badge,description:h.props.description,section:i,disabled:h.props.disabled,active:h.props.active,tone:h.props.tone,children:Bs(S,i)})}}),f}function mc(R){return R.map(u=>({...u,icon:typeof u.icon=="string"?u.icon:void 0,iconHtml:u.iconHtml||Ns(u.icon),contentHtml:u.contentHtml,children:u.children?mc(u.children):void 0}))}function Fi(R){return R==null||R===""?null:typeof R=="number"?`${R}px`:String(R)}function Ns(R){if(!(!R||typeof R=="string")&&I.isValidElement(R))return vc(H.default.cloneElement(R,{width:R.props.width??18,height:R.props.height??18,"aria-hidden":!0,focusable:"false"}))}function Vd(R){if(R.length)return vc(H.default.createElement(H.default.Fragment,null,R))}function Qd(R,u=""){return Bs(R,u).map((f,h)=>{var b;const i={slot:"item",key:`${f.section||"group"}:${f.value}:${h}`,"data-value":f.value,"data-label":f.label,"data-href":f.href||void 0,"data-target":f.target||void 0,"data-rel":f.rel||void 0,"data-section":f.section||void 0,"data-icon":f.icon||void 0,"data-icon-html":f.iconHtml||void 0,"data-content-html":f.contentHtml||void 0,"data-badge":f.badge||void 0,"data-description":f.description||void 0,"data-tone":f.tone&&f.tone!=="default"?f.tone:void 0};return f.disabled&&(i["data-disabled"]=""),f.active&&(i["data-active"]=""),(b=f.children)!=null&&b.length&&(i["data-children"]=JSON.stringify(f.children)),H.default.createElement("div",i,f.label)})}const zs=({children:R,...u})=>H.default.createElement("div",{slot:"header",...u},R),Ws=({children:R,...u})=>H.default.createElement("div",{slot:"search",...u},R),Gs=({icon:R,style:u,placeholder:f="Search…",...h})=>H.default.createElement("div",{slot:"search",style:{display:"grid",gridTemplateColumns:"16px minmax(0, 1fr)",alignItems:"center",gap:10,minHeight:44,padding:"0 14px",borderRadius:16,border:"1px solid color-mix(in srgb, var(--ui-color-border, #cbd5e1) 76%, transparent)",background:"color-mix(in srgb, var(--ui-color-primary, #2563eb) 4%, var(--color-panel-solid, var(--ui-color-surface, #ffffff)))",color:"var(--ui-color-muted, #64748b)",boxSizing:"border-box",...u}},H.default.createElement("span",{"aria-hidden":"true",style:{display:"inline-grid",placeItems:"center",width:16,height:16,color:"currentColor"}},R||H.default.createElement("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H.default.createElement("circle",{cx:"7",cy:"7",r:"4.75",stroke:"currentColor",strokeWidth:"1.5"}),H.default.createElement("path",{d:"M10.5 10.5L14 14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))),H.default.createElement("input",{type:"search",placeholder:f,style:{width:"100%",minWidth:0,border:"none",outline:"none",background:"transparent",color:"inherit",font:"inherit",lineHeight:"inherit"},...h})),Ys=({children:R,...u})=>H.default.createElement("div",{slot:"promo",...u},R),Js=({children:R,...u})=>H.default.createElement("div",{slot:"footer",...u},R),Uu=({children:R})=>H.default.createElement(H.default.Fragment,null,R);Uu.__sidebarMarker=js;const Ou=()=>null;Ou.__sidebarMarker=$s;const Xs=({children:R})=>H.default.createElement(H.default.Fragment,null,Qd(R)),Kd=H.default.forwardRef(function({children:u,collapsed:f,collapsible:h,rail:i,resizable:b,position:S,value:y,items:s,searchQuery:a,variant:T,size:p,density:A,tone:P,radius:F,itemRadius:w,itemGap:v,itemPaddingX:c,itemPaddingY:C,itemHeight:_,itemFontSize:D,itemLineHeight:E,sectionLabelTransform:B,elevation:M,showIcons:G,showBadges:$,headless:re,width:K,minWidth:Z,maxWidth:U,collapsedWidth:le,storageKey:me,autoSave:Q,onSelect:oe,onChange:se,onToggle:ie,onCollapseChange:W,onWidthChange:te,onSearchChange:ae,...Ae},ke){const be=I.useRef(null);return I.useImperativeHandle(ke,()=>be.current),I.useEffect(()=>{const q=be.current;if(!q)return;const ge=Pe=>{const Ce=Pe.detail;Ce&&(oe==null||oe(Ce))},Re=Pe=>{const Ce=Pe.detail;Ce&&(se==null||se(Ce))},Ee=Pe=>{var Ve;const Ce=(Ve=Pe.detail)==null?void 0:Ve.collapsed;typeof Ce=="boolean"&&(ie==null||ie(Ce))},Te=Pe=>{var Ve;const Ce=(Ve=Pe.detail)==null?void 0:Ve.collapsed;typeof Ce=="boolean"&&(W==null||W(Ce))},Ie=Pe=>{const Ce=Pe.detail;Ce&&(te==null||te(Ce))},Ne=Pe=>{var Ve;const Ce=(Ve=Pe.detail)==null?void 0:Ve.query;typeof Ce=="string"&&(ae==null||ae(Ce))};return q.addEventListener("select",ge),q.addEventListener("change",Re),q.addEventListener("toggle",Ee),q.addEventListener("collapse-change",Te),q.addEventListener("width-change",Ie),q.addEventListener("search-change",Ne),()=>{q.removeEventListener("select",ge),q.removeEventListener("change",Re),q.removeEventListener("toggle",Ee),q.removeEventListener("collapse-change",Te),q.removeEventListener("width-change",Ie),q.removeEventListener("search-change",Ne)}},[oe,se,ie,W,te,ae]),Jd(()=>{const q=be.current;if(!q)return;const ge=(Ee,Te)=>{const Ie=q.getAttribute(Ee);if(Te==null){Ie!=null&&q.removeAttribute(Ee);return}Ie!==Te&&q.setAttribute(Ee,Te)},Re=(Ee,Te)=>{Te!=null&&(Te?ge(Ee,""):ge(Ee,null))};if(Re("collapsed",f),Re("collapsible",h),Re("rail",i),Re("resizable",b),Re("headless",re),Re("auto-save",Q),ge("position",S&&S!=="left"?S:null),ge("value",y!=null&&y!==""?String(y):null),ge("search-query",typeof a=="string"&&a!==""?a:null),ge("width",K||null),ge("min-width",Z||null),ge("max-width",U||null),ge("collapsed-width",le||null),ge("storage-key",me||null),s&&s.length)try{ge("items",JSON.stringify(mc(s)))}catch{ge("items",null)}else ge("items",null);ge("variant",T&&T!=="surface"?T:null),ge("size",p&&p!=="md"&&p!=="2"?p:null),ge("density",A&&A!=="default"?A:null),ge("tone",P&&P!=="default"?P:null),ge("radius",F==null||F===""?null:String(F)),ge("item-radius",Fi(w)),ge("item-gap",Fi(v)),ge("item-padding-x",Fi(c)),ge("item-padding-y",Fi(C)),ge("item-height",Fi(_)),ge("item-font-size",Fi(D)),ge("item-line-height",Fi(E)),ge("section-label-transform",B&&B!=="none"?B:null),ge("elevation",M&&M!=="low"?M:null),typeof G=="boolean"?ge("show-icons",G?"true":"false"):ge("show-icons",null),typeof $=="boolean"?ge("show-badges",$?"true":"false"):ge("show-badges",null)},[f,h,i,b,re,Q,S,y,K,Z,U,le,me,s,T,p,A,P,F,w,v,c,C,_,D,E,B,a,M,G,$]),H.default.createElement("ui-sidebar",{ref:be,...Ae},u)}),Zr=Kd;Zr.Header=zs;Zr.Search=Ws;Zr.SearchInput=Gs;Zr.Content=Xs;Zr.Group=Uu;Zr.Item=Ou;Zr.Promo=Ys;Zr.Footer=Js;Zr.displayName="Sidebar";zs.displayName="SidebarHeader";Ws.displayName="SidebarSearch";Gs.displayName="SidebarSearchInput";Xs.displayName="SidebarContent";Uu.displayName="SidebarGroup";Ou.displayName="SidebarItem";Ys.displayName="SidebarPromo";Js.displayName="SidebarFooter";const Zs=typeof window<"u"?I.useLayoutEffect:I.useEffect,hc=H.default.forwardRef(function({orientation:u,storageKey:f,autoSave:h,children:i,onLayoutChange:b,onResizeStart:S,onResize:y,onResizeEnd:s,...a},T){const p=I.useRef(null);return I.useImperativeHandle(T,()=>p.current),I.useEffect(()=>{const A=p.current;if(!A)return;const P=c=>b==null?void 0:b(c.detail),F=c=>S==null?void 0:S(c.detail),w=c=>y==null?void 0:y(c.detail),v=c=>s==null?void 0:s(c.detail);return A.addEventListener("layout-change",P),A.addEventListener("resize-start",F),A.addEventListener("resize",w),A.addEventListener("resize-end",v),()=>{A.removeEventListener("layout-change",P),A.removeEventListener("resize-start",F),A.removeEventListener("resize",w),A.removeEventListener("resize-end",v)}},[b,y,s,S]),Zs(()=>{const A=p.current;A&&(u&&u!=="horizontal"?A.setAttribute("orientation",u):A.removeAttribute("orientation"),f?A.setAttribute("storage-key",f):A.removeAttribute("storage-key"),h?A.setAttribute("auto-save",""):A.removeAttribute("auto-save"))},[u,f,h]),H.default.createElement("ui-panel-group",{ref:p,...a},i)}),bc=H.default.forwardRef(function({size:u,minSize:f,maxSize:h,collapsedSize:i,collapsed:b,children:S,...y},s){const a=I.useRef(null);return I.useImperativeHandle(s,()=>a.current),Zs(()=>{const T=a.current;if(!T)return;const p=(A,P)=>{const F=T.getAttribute(A);if(P==null){F!=null&&T.removeAttribute(A);return}F!==P&&T.setAttribute(A,P)};b?T.setAttribute("collapsed",""):T.removeAttribute("collapsed"),p("size",u!=null?String(u):null),p("min-size",f!=null?String(f):null),p("max-size",h!=null?String(h):null),p("collapsed-size",i!=null?String(i):null)},[b,i,h,f,u]),H.default.createElement("ui-panel",{ref:a,...y},S)}),yc=H.default.forwardRef(function({disabled:u,orientation:f,ariaLabel:h,children:i,...b},S){const y=I.useRef(null);return I.useImperativeHandle(S,()=>y.current),Zs(()=>{const s=y.current;s&&(u?s.setAttribute("disabled",""):s.removeAttribute("disabled"),f?s.setAttribute("orientation",f):s.removeAttribute("orientation"),h?s.setAttribute("aria-label",h):s.removeAttribute("aria-label"))},[h,u,f]),H.default.createElement("ui-splitter",{ref:y,...b},i)});hc.displayName="PanelGroup";bc.displayName="Panel";yc.displayName="Splitter";const gc=typeof window<"u"?I.useLayoutEffect:I.useEffect,Ec=H.default.forwardRef(function({children:u,value:f,indentSize:h,onSelect:i,onExpandedChange:b,...S},y){const s=I.useRef(null);return I.useImperativeHandle(y,()=>s.current),I.useEffect(()=>{const a=s.current;if(!a)return;const T=A=>{const P=A.detail;P&&(i==null||i(P))},p=A=>{const P=A.detail;P&&(b==null||b(P))};return a.addEventListener("select",T),a.addEventListener("expanded-change",p),()=>{a.removeEventListener("select",T),a.removeEventListener("expanded-change",p)}},[i,b]),gc(()=>{const a=s.current;a&&(f?a.setAttribute("value",f):a.removeAttribute("value"),h?a.setAttribute("indent-size",h):a.removeAttribute("indent-size"))},[f,h]),H.default.createElement("ui-tree",{ref:s,...S},u)}),Ac=H.default.forwardRef(function({children:u,value:f,label:h,expanded:i,selected:b,disabled:S,prefix:y,suffix:s,...a},T){const p=I.useRef(null);return I.useImperativeHandle(T,()=>p.current),gc(()=>{const A=p.current;A&&(A.setAttribute("value",f),i?A.setAttribute("expanded",""):A.removeAttribute("expanded"),b?A.setAttribute("selected",""):A.removeAttribute("selected"),S?A.setAttribute("disabled",""):A.removeAttribute("disabled"))},[f,i,b,S]),H.default.createElement("ui-tree-item",{ref:p,...a},y!=null?H.default.createElement("span",{slot:"prefix"},y):null,h!=null?H.default.createElement("span",{slot:"label"},h):null,s!=null?H.default.createElement("span",{slot:"suffix"},s):null,u)});Ec.displayName="Tree";Ac.displayName="TreeItem";const Du=typeof window<"u"?I.useLayoutEffect:I.useEffect,wc=H.default.forwardRef(function({children:u,separator:f,maxItems:h,currentIndex:i,size:b,variant:S,radius:y,elevation:s,tone:a,state:T,disabled:p,ariaLabel:A,onSelect:P,...F},w){const v=I.useRef(null);return I.useImperativeHandle(w,()=>v.current),I.useEffect(()=>{St("ui-breadcrumb","Breadcrumb")},[]),I.useEffect(()=>{const c=v.current;if(!c||!P)return;const C=_=>{const D=_.detail;D&&P(D)};return c.addEventListener("ui-select",C),()=>c.removeEventListener("ui-select",C)},[P]),Du(()=>{const c=v.current;c&&(f!=null&&f!==""?c.setAttribute("separator",f):c.removeAttribute("separator"))},[f]),Du(()=>{const c=v.current;c&&(typeof h=="number"&&Number.isFinite(h)?c.setAttribute("max-items",String(h)):c.removeAttribute("max-items"))},[h]),Du(()=>{const c=v.current;c&&(typeof i=="number"&&Number.isFinite(i)?c.setAttribute("current-index",String(i)):c.removeAttribute("current-index"))},[i]),Du(()=>{const c=v.current;c&&(b&&b!=="md"&&b!=="2"?c.setAttribute("size",String(b)):c.removeAttribute("size"),S&&S!=="default"&&S!=="surface"?c.setAttribute("variant",S):c.removeAttribute("variant"),y!=null&&y!==""&&y!=="md"?c.setAttribute("radius",String(y)):c.removeAttribute("radius"),s&&s!=="default"&&s!=="none"?c.setAttribute("elevation",s):c.removeAttribute("elevation"),a?c.setAttribute("tone",a):c.removeAttribute("tone"),T&&T!=="idle"?c.setAttribute("state",T):c.removeAttribute("state"),p==null?c.removeAttribute("disabled"):p?c.setAttribute("disabled",""):c.removeAttribute("disabled"),A?c.setAttribute("aria-label",A):c.removeAttribute("aria-label"))},[b,S,y,s,a,T,p,A]),H.default.createElement("ui-breadcrumb",{ref:v,...F},u)});wc.displayName="Breadcrumb";const ta="editora-ui-react-app-header-runtime-styles";function qd(){if(typeof document>"u"||document.getElementById(ta))return;const R=document.createElement("style");R.id=ta,R.textContent=`
|
|
106
|
+
ui-app-header [data-ui-app-header-start],
|
|
107
|
+
ui-app-header [data-ui-app-header-center],
|
|
108
|
+
ui-app-header [data-ui-app-header-end] {
|
|
109
|
+
min-width: 0;
|
|
110
|
+
display: inline-flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
ui-app-header [data-ui-app-header-start] {
|
|
115
|
+
gap: 10px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
ui-app-header [data-ui-app-header-center] {
|
|
119
|
+
gap: 10px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
ui-app-header [data-ui-app-header-end] {
|
|
123
|
+
gap: 8px;
|
|
124
|
+
justify-content: flex-end;
|
|
125
|
+
flex-wrap: wrap;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
ui-app-header [data-ui-app-header-title] {
|
|
129
|
+
display: block;
|
|
130
|
+
min-width: 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
ui-app-header [data-ui-app-header-subtitle] {
|
|
134
|
+
display: block;
|
|
135
|
+
min-width: 0;
|
|
136
|
+
}
|
|
137
|
+
`,document.head.appendChild(R)}function Bl(R,u,f){f?R.setAttribute(u,""):R.removeAttribute(u)}function Nl(R,u,f){f==null||f===""?R.removeAttribute(u):R.setAttribute(u,String(f))}const Sc=H.default.forwardRef(function({children:u,sticky:f,bordered:h,dense:i,headless:b,showMenuButton:S,variant:y,tone:s,size:a,radius:T,elevation:p,onMenuTrigger:A,...P},F){const w=H.default.useRef(null);return H.default.useImperativeHandle(F,()=>w.current),H.default.useEffect(()=>{qd()},[]),H.default.useEffect(()=>{const v=w.current;if(!v||!A)return;const c=()=>A();return v.addEventListener("menu-trigger",c),()=>v.removeEventListener("menu-trigger",c)},[A]),H.default.useLayoutEffect(()=>{const v=w.current;v&&(Bl(v,"sticky",f),Bl(v,"bordered",h),Bl(v,"dense",i),Bl(v,"headless",b),Bl(v,"show-menu-button",S),Nl(v,"variant",y&&y!=="surface"?y:null),Nl(v,"tone",s&&s!=="neutral"?s:null),Nl(v,"size",a&&a!=="md"?a:null),Nl(v,"radius",T??null),Nl(v,"elevation",p&&p!=="low"?p:null))},[f,h,i,b,S,y,s,a,T,p]),H.default.createElement("ui-app-header",{ref:w,...P},u)});function Ol(R,u,f,h){const i=H.default.forwardRef(function({as:S,children:y,...s},a){const T=S||R,p={ref:a,slot:f,...s};return h&&(p[h]=""),H.default.createElement(T,p,y)});return i.displayName=u,i}const ep=Ol("div","AppHeaderStart","start","data-ui-app-header-start"),tp=Ol("div","AppHeaderCenter","center","data-ui-app-header-center"),rp=Ol("div","AppHeaderTitle","title","data-ui-app-header-title"),np=Ol("div","AppHeaderSubtitle","subtitle","data-ui-app-header-subtitle"),ip=Ol("div","AppHeaderEnd","end","data-ui-app-header-end");Sc.displayName="AppHeader";const st=typeof window<"u"?I.useLayoutEffect:I.useEffect,xc=H.default.forwardRef(function({children:u,open:f,side:h,variant:i,density:b,shape:S,elevation:y,tone:s,size:a,state:T,inset:p,dismissible:A,closeOnOverlay:P,closeOnEsc:F,lockWhileLoading:w,showClose:v,initialFocus:c,title:C,description:_,ariaLabel:D,ariaLabelledBy:E,ariaDescribedBy:B,onOpen:M,onClose:G,onChange:$,...re},K){const Z=I.useRef(null);return I.useImperativeHandle(K,()=>Z.current),I.useEffect(()=>{const U=Z.current;if(!U)return;const le=()=>M==null?void 0:M(),me=()=>G==null?void 0:G(),Q=oe=>{var ie;const se=(ie=oe.detail)==null?void 0:ie.open;typeof se=="boolean"&&($==null||$(se))};return U.addEventListener("open",le),U.addEventListener("close",me),U.addEventListener("change",Q),()=>{U.removeEventListener("open",le),U.removeEventListener("close",me),U.removeEventListener("change",Q)}},[M,G,$]),st(()=>{const U=Z.current;U&&(f?U.setAttribute("open",""):U.removeAttribute("open"))},[f]),st(()=>{const U=Z.current;U&&(h?U.setAttribute("side",h):U.removeAttribute("side"))},[h]),st(()=>{const U=Z.current;U&&(A?U.setAttribute("dismissible",""):U.removeAttribute("dismissible"))},[A]),st(()=>{const U=Z.current;U&&(i&&i!=="default"?U.setAttribute("variant",i):U.removeAttribute("variant"))},[i]),st(()=>{const U=Z.current;U&&(b&&b!=="default"?U.setAttribute("density",b):U.removeAttribute("density"))},[b]),st(()=>{const U=Z.current;U&&(S&&S!=="default"?U.setAttribute("shape",S):U.removeAttribute("shape"))},[S]),st(()=>{const U=Z.current;U&&(y&&y!=="default"?U.setAttribute("elevation",y):U.removeAttribute("elevation"))},[y]),st(()=>{const U=Z.current;U&&(s&&s!=="default"&&s!=="brand"?U.setAttribute("tone",s):U.removeAttribute("tone"))},[s]),st(()=>{const U=Z.current;U&&(a&&a!=="default"?U.setAttribute("size",a):U.removeAttribute("size"))},[a]),st(()=>{const U=Z.current;U&&(T&&T!=="idle"?U.setAttribute("state",T):U.removeAttribute("state"))},[T]),st(()=>{const U=Z.current;U&&(p?U.setAttribute("inset",""):U.removeAttribute("inset"))},[p]),st(()=>{const U=Z.current;U&&(typeof P=="boolean"?U.setAttribute("close-on-overlay",String(P)):U.removeAttribute("close-on-overlay"))},[P]),st(()=>{const U=Z.current;U&&(typeof F=="boolean"?U.setAttribute("close-on-esc",String(F)):U.removeAttribute("close-on-esc"))},[F]),st(()=>{const U=Z.current;U&&(typeof w=="boolean"?U.setAttribute("lock-while-loading",String(w)):U.removeAttribute("lock-while-loading"))},[w]),st(()=>{const U=Z.current;U&&(typeof v=="boolean"?U.setAttribute("show-close",String(v)):U.removeAttribute("show-close"))},[v]),st(()=>{const U=Z.current;U&&(c?U.setAttribute("initial-focus",c):U.removeAttribute("initial-focus"))},[c]),st(()=>{const U=Z.current;U&&(C?U.setAttribute("title",C):U.removeAttribute("title"))},[C]),st(()=>{const U=Z.current;U&&(_?U.setAttribute("description",_):U.removeAttribute("description"))},[_]),st(()=>{const U=Z.current;U&&(D?U.setAttribute("aria-label",D):U.removeAttribute("aria-label"))},[D]),st(()=>{const U=Z.current;U&&(E?U.setAttribute("aria-labelledby",E):U.removeAttribute("aria-labelledby"))},[E]),st(()=>{const U=Z.current;U&&(B?U.setAttribute("aria-describedby",B):U.removeAttribute("aria-describedby"))},[B]),H.default.createElement("ui-drawer",{ref:Z,...re},u)});xc.displayName="Drawer";const op=typeof window<"u"?I.useLayoutEffect:I.useEffect,kc=H.default.forwardRef(function({children:u,mode:f,variant:h,density:i,maxWidth:b,sidebarSide:S,collapsed:y,headless:s,sidebarWidth:a,asideWidth:T,onLayoutChange:p,...A},P){const F=I.useRef(null);return H.default.useImperativeHandle(P,()=>F.current),I.useEffect(()=>{const w=F.current;if(!w)return;const v=()=>p==null?void 0:p();return w.addEventListener("layoutchange",v),()=>w.removeEventListener("layoutchange",v)},[p]),op(()=>{const w=F.current;w&&(f&&f!=="dashboard"?w.setAttribute("mode",f):w.removeAttribute("mode"),h&&h!=="default"?w.setAttribute("variant",h):w.removeAttribute("variant"),i&&i!=="default"?w.setAttribute("density",i):w.removeAttribute("density"),b?w.setAttribute("max-width",b):w.removeAttribute("max-width"),S&&S!=="start"?w.setAttribute("sidebar-side",S):w.removeAttribute("sidebar-side"),y?w.setAttribute("collapsed",""):w.removeAttribute("collapsed"),s?w.setAttribute("headless",""):w.removeAttribute("headless"),a?w.setAttribute("sidebar-width",a):w.removeAttribute("sidebar-width"),T?w.setAttribute("aside-width",T):w.removeAttribute("aside-width"))},[f,h,i,b,S,y,s,a,T]),H.default.createElement("ui-layout",{ref:F,...A},u)});kc.displayName="Layout";const Rc=I.createContext(null),lp=typeof window<"u"?I.useLayoutEffect:I.useEffect;function Ho(R,u){var f,h,i,b,S,y,s,a,T,p,A,P,F,w,v,c,C,_,D,E,B,M,G,$,re,K,Z,U,le,me,Q,oe,se,ie,W,te,ae,Ae,ke,be,q,ge,Re,Ee,Te,Ie,Ne,Pe,Ce,Ve,ct,xt,ot,ft;return u?{...R,...u,colors:{...R.colors,...u.colors||{}},palette:{...R.palette||{},...u.palette||{},gray:{...((f=R.palette)==null?void 0:f.gray)||{},...((h=u.palette)==null?void 0:h.gray)||{}},grayAlpha:{...((i=R.palette)==null?void 0:i.grayAlpha)||{},...((b=u.palette)==null?void 0:b.grayAlpha)||{}},blackAlpha:{...((S=R.palette)==null?void 0:S.blackAlpha)||{},...((y=u.palette)==null?void 0:y.blackAlpha)||{}},whiteAlpha:{...((s=R.palette)==null?void 0:s.whiteAlpha)||{},...((a=u.palette)==null?void 0:a.whiteAlpha)||{}},accent:{...((T=R.palette)==null?void 0:T.accent)||{},...((p=u.palette)==null?void 0:p.accent)||{}},accentAlpha:{...((A=R.palette)==null?void 0:A.accentAlpha)||{},...((P=u.palette)==null?void 0:P.accentAlpha)||{}}},surfaces:{...R.surfaces||{},...u.surfaces||{}},shadows:{...R.shadows||{},...u.shadows||{}},spacing:{...R.spacing||{},...u.spacing||{}},spaceScale:{...R.spaceScale||{},...u.spaceScale||{}},radiusScale:{...R.radiusScale||{},...u.radiusScale||{}},typography:{...R.typography||{},...u.typography||{},size:{...((F=R.typography)==null?void 0:F.size)||{},...((w=u.typography)==null?void 0:w.size)||{}},fontScale:{...((v=R.typography)==null?void 0:v.fontScale)||{},...((c=u.typography)==null?void 0:c.fontScale)||{}},lineHeight:{...((C=R.typography)==null?void 0:C.lineHeight)||{},...((_=u.typography)==null?void 0:_.lineHeight)||{}},letterSpacing:{...((D=R.typography)==null?void 0:D.letterSpacing)||{},...((E=u.typography)==null?void 0:E.letterSpacing)||{}}},motion:{...R.motion||{},...u.motion||{}},effects:{...R.effects||{},...u.effects||{}},components:{...R.components||{},...u.components||{},button:{...((B=R.components)==null?void 0:B.button)||{},...((M=u.components)==null?void 0:M.button)||{}},badge:{...((G=R.components)==null?void 0:G.badge)||{},...(($=u.components)==null?void 0:$.badge)||{}},sidebar:{...((re=R.components)==null?void 0:re.sidebar)||{},...((K=u.components)==null?void 0:K.sidebar)||{}},blockControls:{...((Z=R.components)==null?void 0:Z.blockControls)||{},...((U=u.components)==null?void 0:U.blockControls)||{}},box:{...((le=R.components)==null?void 0:le.box)||{},...((me=u.components)==null?void 0:me.box)||{}},breadcrumb:{...((Q=R.components)==null?void 0:Q.breadcrumb)||{},...((oe=u.components)==null?void 0:oe.breadcrumb)||{}},card:{...((se=R.components)==null?void 0:se.card)||{},...((ie=u.components)==null?void 0:ie.card)||{}},contextMenu:{...((W=R.components)==null?void 0:W.contextMenu)||{},...((te=u.components)==null?void 0:te.contextMenu)||{}},alert:{...((ae=R.components)==null?void 0:ae.alert)||{},...((Ae=u.components)==null?void 0:Ae.alert)||{}},alertDialog:{...((ke=R.components)==null?void 0:ke.alertDialog)||{},...((be=u.components)==null?void 0:be.alertDialog)||{}},appHeader:{...((q=R.components)==null?void 0:q.appHeader)||{},...((ge=u.components)==null?void 0:ge.appHeader)||{}},aspectRatio:{...((Re=R.components)==null?void 0:Re.aspectRatio)||{},...((Ee=u.components)==null?void 0:Ee.aspectRatio)||{}},avatar:{...((Te=R.components)==null?void 0:Te.avatar)||{},...((Ie=u.components)==null?void 0:Ie.avatar)||{}},menu:{...((Ne=R.components)==null?void 0:Ne.menu)||{},...((Pe=u.components)==null?void 0:Pe.menu)||{}},multiSelect:{...((Ce=R.components)==null?void 0:Ce.multiSelect)||{},...((Ve=u.components)==null?void 0:Ve.multiSelect)||{}},panel:{...((ct=R.components)==null?void 0:ct.panel)||{},...((xt=u.components)==null?void 0:xt.panel)||{}},input:{...((ot=R.components)==null?void 0:ot.input)||{},...((ft=u.components)==null?void 0:ft.input)||{}}},zIndex:{...R.zIndex||{},...u.zIndex||{}},breakpoints:{...R.breakpoints||{},...u.breakpoints||{}}}:R}function up(){try{const R=getComputedStyle(document.documentElement),u=R.getPropertyValue("--ui-color-primary").trim();return u?{colors:{primary:u||void 0,text:R.getPropertyValue("--ui-color-text").trim()||void 0,background:R.getPropertyValue("--ui-color-background").trim()||void 0}}:{}}catch{return{}}}function sp(R,u){const f=typeof u=="function"?u(R):u;return Ho(R,f)}function ap({tokens:R,children:u,storageKey:f="editora.theme.tokens"}){const h=I.useRef(null),i=()=>{if(typeof window<"u"&&f)try{const s=localStorage.getItem(f);if(s){const a=JSON.parse(s);return Ho(Gn.defaultTokens,a)}}catch{}if(R&&Object.keys(R).length)return Ho(Gn.defaultTokens,R);if(typeof window<"u"){const s=up();if(s.colors&&s.colors.primary)return Ho(Gn.defaultTokens,s)}return Ho(Gn.defaultTokens,R||{})},[b,S]=I.useState(()=>i());I.useEffect(()=>{!R||!Object.keys(R).length||S(s=>Ho(s,R))},[R]),lp(()=>{const s=h.current;s&&Gn.applyTheme(b,s)},[b]),I.useEffect(()=>{if(typeof window>"u"||!f)return;const s=JSON.stringify(b);let a;const T=()=>{try{localStorage.setItem(f,s)}catch{}};return window.requestIdleCallback?a=window.requestIdleCallback(T,{timeout:1e3}):a=window.setTimeout(T,250),()=>{try{window.cancelIdleCallback&&a?window.cancelIdleCallback(a):a&&clearTimeout(a)}catch{}}},[b,f]);const y=I.useMemo(()=>({tokens:b,setTokens:s=>{S(a=>sp(a,s))}}),[b]);return H.default.createElement(Rc.Provider,{value:y},H.default.createElement("div",{ref:h,style:{display:"contents"}},u))}function cp(){const R=I.useContext(Rc);if(!R)throw new Error("useTheme must be used within ThemeProvider");return R}const fp=typeof window<"u"?I.useLayoutEffect:I.useEffect,Tc=H.default.forwardRef(function({children:u,itemSelector:f,directItemSelector:h,itemRole:i,container:b,items:S,onCollectionChange:y,...s},a){const T=I.useRef(null);return I.useImperativeHandle(a,()=>T.current),I.useEffect(()=>{const p=T.current;if(!p)return;const A=()=>y==null?void 0:y();return p.addEventListener("collection-change",A),()=>{p.removeEventListener("collection-change",A)}},[y]),fp(()=>{const p=T.current;p&&(f?p.setAttribute("item-selector",f):p.removeAttribute("item-selector"),h?p.setAttribute("direct-item-selector",h):p.removeAttribute("direct-item-selector"),i?p.setAttribute("item-role",i):p.removeAttribute("item-role"),p.container=b??null,p.items=S??null)},[b,h,i,f,S]),H.default.createElement("ui-collection",{ref:T,...s},u)});Tc.displayName="Collection";const dp=typeof window<"u"?I.useLayoutEffect:I.useEffect,Lc=H.default.forwardRef(function({children:u,itemSelector:f,directItemSelector:h,itemRole:i,activeAttribute:b,container:S,items:y,onCollectionChange:s,...a},T){const p=I.useRef(null);return I.useImperativeHandle(T,()=>p.current),I.useEffect(()=>{const A=p.current;if(!A)return;const P=()=>s==null?void 0:s();return A.addEventListener("collection-change",P),()=>{A.removeEventListener("collection-change",P)}},[s]),dp(()=>{const A=p.current;A&&(f?A.setAttribute("item-selector",f):A.removeAttribute("item-selector"),h?A.setAttribute("direct-item-selector",h):A.removeAttribute("direct-item-selector"),i?A.setAttribute("item-role",i):A.removeAttribute("item-role"),b?A.setAttribute("active-attribute",b):A.removeAttribute("active-attribute"),A.container=S??null,A.items=y??null)},[b,S,h,i,f,y]),H.default.createElement("ui-listbox",{ref:p,...a},u)});Lc.displayName="Listbox";const pp=typeof window<"u"?I.useLayoutEffect:I.useEffect,Ic=H.default.forwardRef(function({children:u,itemSelector:f,directItemSelector:h,activeAttribute:i,loop:b,container:S,onActiveItemChange:y,...s},a){const T=I.useRef(null);return I.useImperativeHandle(a,()=>T.current),I.useEffect(()=>{const p=T.current;if(!p)return;const A=P=>{const F=P.detail;F&&(y==null||y(F))};return p.addEventListener("active-item-change",A),()=>{p.removeEventListener("active-item-change",A)}},[y]),pp(()=>{const p=T.current;p&&(f?p.setAttribute("item-selector",f):p.removeAttribute("item-selector"),h?p.setAttribute("direct-item-selector",h):p.removeAttribute("direct-item-selector"),i===null?p.setAttribute("active-attribute",""):i?p.setAttribute("active-attribute",i):p.removeAttribute("active-attribute"),b===!1?p.setAttribute("loop","false"):p.removeAttribute("loop"),p.container=S??null)},[i,S,h,f,b]),H.default.createElement("ui-roving-focus-group",{ref:T,...s},u)});Ic.displayName="RovingFocusGroup";const vp=typeof window<"u"?I.useLayoutEffect:I.useEffect,Cc=H.default.forwardRef(function({children:u,open:f,modal:h,closeOnEscape:i,closeOnPointerOutside:b,closeOnFocusOutside:S,disableOutsidePointerEvents:y,headless:s,onBeforeClose:a,onClose:T,onInteractOutside:p,onEscapeKeyDown:A,...P},F){const w=I.useRef(null);return I.useImperativeHandle(F,()=>w.current),I.useEffect(()=>{const v=w.current;if(!v)return;const c=E=>a==null?void 0:a(E.detail),C=E=>T==null?void 0:T(E.detail),_=E=>p==null?void 0:p(E.detail||{}),D=E=>A==null?void 0:A(E.detail||{});return v.addEventListener("before-close",c),v.addEventListener("close",C),v.addEventListener("interact-outside",_),v.addEventListener("escape-key-down",D),()=>{v.removeEventListener("before-close",c),v.removeEventListener("close",C),v.removeEventListener("interact-outside",_),v.removeEventListener("escape-key-down",D)}},[a,T,A,p]),vp(()=>{const v=w.current;v&&(f?v.setAttribute("open",""):v.removeAttribute("open"),h?v.setAttribute("modal",""):v.removeAttribute("modal"),i===!1?v.setAttribute("close-on-escape","false"):i?v.setAttribute("close-on-escape",""):v.removeAttribute("close-on-escape"),b===!1?v.setAttribute("close-on-pointer-outside","false"):b?v.setAttribute("close-on-pointer-outside",""):v.removeAttribute("close-on-pointer-outside"),S?v.setAttribute("close-on-focus-outside",""):v.removeAttribute("close-on-focus-outside"),y?v.setAttribute("disable-outside-pointer-events",""):v.removeAttribute("disable-outside-pointer-events"),s?v.setAttribute("headless",""):v.removeAttribute("headless"))},[i,S,b,y,s,h,f]),H.default.createElement("ui-dismissable-layer",{ref:w,...P},u)});Cc.displayName="DismissableLayer";const mp=typeof window<"u"?I.useLayoutEffect:I.useEffect,Pc=H.default.forwardRef(function({children:u,active:f,trapped:h,loop:i,restoreFocus:b,autoFocus:S,inertOthers:y,headless:s,onEscape:a,onFocusScopeMount:T,...p},A){const P=I.useRef(null);return I.useImperativeHandle(A,()=>P.current),I.useEffect(()=>{const F=P.current;if(!F)return;const w=c=>a==null?void 0:a(c.detail||{}),v=()=>T==null?void 0:T();return F.addEventListener("escape",w),F.addEventListener("focus-scope-mount",v),()=>{F.removeEventListener("escape",w),F.removeEventListener("focus-scope-mount",v)}},[a,T]),mp(()=>{const F=P.current;F&&(f?F.setAttribute("active",""):F.removeAttribute("active"),h===!1?F.setAttribute("trapped","false"):h?F.setAttribute("trapped",""):F.removeAttribute("trapped"),i===!1?F.setAttribute("loop","false"):i?F.setAttribute("loop",""):F.removeAttribute("loop"),b===!1?F.setAttribute("restore-focus","false"):b?F.setAttribute("restore-focus",""):F.removeAttribute("restore-focus"),S?F.setAttribute("auto-focus",S):F.removeAttribute("auto-focus"),y?F.setAttribute("inert-others",""):F.removeAttribute("inert-others"),s?F.setAttribute("headless",""):F.removeAttribute("headless"))},[f,S,s,y,i,b,h]),H.default.createElement("ui-focus-scope",{ref:P,...p},u)});Pc.displayName="FocusScope";const hp=typeof window<"u"?I.useLayoutEffect:I.useEffect,Fc=H.default.forwardRef(function({children:u,open:f,placement:h,strategy:i,offset:b,crossOffset:S,flip:y,shift:s,matchWidth:a,fitViewport:T,anchor:p,headless:A,onPositionChange:P,...F},w){const v=I.useRef(null);return I.useImperativeHandle(w,()=>v.current),I.useEffect(()=>{const c=v.current;if(!c)return;const C=_=>P==null?void 0:P(_.detail);return c.addEventListener("position-change",C),()=>{c.removeEventListener("position-change",C)}},[P]),hp(()=>{const c=v.current;c&&(f?c.setAttribute("open",""):c.removeAttribute("open"),h?c.setAttribute("placement",h):c.removeAttribute("placement"),i&&i!=="fixed"?c.setAttribute("strategy",i):c.removeAttribute("strategy"),b!=null?c.setAttribute("offset",String(b)):c.removeAttribute("offset"),S!=null?c.setAttribute("cross-offset",String(S)):c.removeAttribute("cross-offset"),y===!1?c.setAttribute("flip","false"):y?c.setAttribute("flip",""):c.removeAttribute("flip"),s===!1?c.setAttribute("shift","false"):s?c.setAttribute("shift",""):c.removeAttribute("shift"),a?c.setAttribute("match-width",""):c.removeAttribute("match-width"),T?c.setAttribute("fit-viewport",""):c.removeAttribute("fit-viewport"),p?c.setAttribute("anchor",p):c.removeAttribute("anchor"),A?c.setAttribute("headless",""):c.removeAttribute("headless"))},[p,S,T,y,A,a,b,f,h,s,i]),H.default.createElement("ui-positioner",{ref:v,...F},u)});Fc.displayName="Positioner";const Dc=H.default.forwardRef(function({children:u,...f},h){const i=I.useRef(null);return I.useImperativeHandle(h,()=>i.current),H.default.createElement("ui-anchor",{ref:i,...f},u)});Dc.displayName="Anchor";function Mo(R,u,f){if(f==null){R.removeAttribute(u);return}f?R.setAttribute(u,""):R.removeAttribute(u)}function ra(R,u,f,h){const i=f&&f!==h?f:void 0;if(!i){R.removeAttribute(u);return}R.setAttribute(u,i)}const Mc=H.forwardRef(function({checked:u,disabled:f,indeterminate:h,loading:i,headless:b,invalid:S,density:y,preset:s,onCheckedChange:a,onChange:T,onInput:p,children:A,...P},F){const w=H.useRef(null);H.useImperativeHandle(F,()=>w.current);const v=typeof window<"u"?H.useLayoutEffect:H.useEffect;H.useEffect(()=>{St("ui-checkbox","Checkbox")},[]),v(()=>{const C=w.current;C&&(Mo(C,"checked",u),Mo(C,"disabled",f),Mo(C,"indeterminate",h),Mo(C,"loading",i),Mo(C,"headless",b),Mo(C,"invalid",S),ra(C,"density",y,"default"),ra(C,"preset",s,"default"))},[u,f,h,i,b,S,y,s]),H.useEffect(()=>{const C=w.current;if(!C||!a&&!T&&!p)return;const _=E=>{var M;const B=E;p==null||p(B),typeof((M=B.detail)==null?void 0:M.checked)=="boolean"&&(a==null||a(B.detail.checked,B.detail))},D=E=>{const B=E;T==null||T(B)};return C.addEventListener("input",_),C.addEventListener("change",D),()=>{C.removeEventListener("input",_),C.removeEventListener("change",D)}},[a,T,p]);const c={ref:w,...P,checked:u?"":void 0,disabled:f?"":void 0,indeterminate:h?"":void 0,loading:i?"":void 0,headless:b?"":void 0,invalid:S?"":void 0,density:y&&y!=="default"?y:void 0,preset:s&&s!=="default"?s:void 0};return H.createElement("ui-checkbox",c,A)});Mc.displayName="Checkbox";const bp=typeof window<"u"?I.useLayoutEffect:I.useEffect,Hc=H.default.forwardRef(function({value:u,disabled:f,required:h,name:i,orientation:b,variant:S,size:y,tone:s,options:a,onValueChange:T,children:p,...A},P){const F=I.useRef(null);return H.default.useImperativeHandle(P,()=>F.current),I.useEffect(()=>{const w=F.current;if(!w)return;const v=c=>{const C=c.detail;C&&(T==null||T(C))};return w.addEventListener("change",v),()=>w.removeEventListener("change",v)},[T]),bp(()=>{const w=F.current;if(!w)return;const v=(C,_)=>{const D=w.getAttribute(C);if(_==null){D!=null&&w.removeAttribute(C);return}D!==_&&w.setAttribute(C,_)},c=(C,_)=>{_?w.hasAttribute(C)||w.setAttribute(C,""):w.hasAttribute(C)&&w.removeAttribute(C)};v("value",u??null),c("disabled",f),c("required",h),v("name",i||null),v("orientation",b&&b!=="vertical"?b:null),v("variant",S&&S!=="default"?S:null),v("size",y&&y!=="md"?y:null),v("tone",s&&s!=="brand"?s:null),a&&a.length?v("options",JSON.stringify(a)):v("options",null)},[u,f,h,i,b,S,y,s,a]),H.default.createElement("ui-radio-group",{ref:F,...A},p)});Hc.displayName="RadioGroup";const yp=typeof window<"u"?I.useLayoutEffect:I.useEffect,_c=H.default.forwardRef(function({children:u,checked:f,disabled:h,headless:i,loading:b,size:S,variant:y,tone:s,shape:a,elevation:T,label:p,description:A,name:P,value:F,required:w,onInput:v,onChange:c,...C},_){const D=I.useRef(null);return I.useImperativeHandle(_,()=>D.current),I.useEffect(()=>{const E=D.current;if(!E)return;const B=G=>{const $=G.detail;$&&(v==null||v($))},M=G=>{const $=G.detail;$&&(c==null||c($))};return E.addEventListener("input",B),E.addEventListener("change",M),()=>{E.removeEventListener("input",B),E.removeEventListener("change",M)}},[v,c]),yp(()=>{const E=D.current;if(!E)return;const B=(G,$)=>{const re=E.getAttribute(G);if($==null){re!=null&&E.removeAttribute(G);return}re!==$&&E.setAttribute(G,$)},M=(G,$)=>{$?B(G,""):B(G,null)};M("checked",f),M("disabled",h),M("headless",i),M("loading",b),M("required",w),B("size",S&&S!=="md"?S:null),B("variant",y&&y!=="default"?y:null),B("tone",s&&s!=="brand"?s:null),B("label",p||null),B("description",A||null),B("name",P||null),B("value",F||null),B("shape",a&&a!=="pill"?a:null),B("elevation",T&&T!=="low"?T:null)},[f,h,i,b,w,S,y,s,a,T,p,A,P,F]),H.default.createElement("ui-switch",{ref:D,...C},u)});_c.displayName="Switch";const gp=typeof window<"u"?I.useLayoutEffect:I.useEffect,Bc=H.default.forwardRef(function({children:u,pressed:f,disabled:h,loading:i,headless:b,size:S,variant:y,tone:s,shape:a,elevation:T,name:p,value:A,required:P,iconOn:F,iconOff:w,onInput:v,onChange:c,...C},_){const D=I.useRef(null);return I.useImperativeHandle(_,()=>D.current),I.useEffect(()=>{const E=D.current;if(!E)return;const B=G=>{const $=G.detail;$&&(v==null||v($))},M=G=>{const $=G.detail;$&&(c==null||c($))};return E.addEventListener("input",B),E.addEventListener("change",M),()=>{E.removeEventListener("input",B),E.removeEventListener("change",M)}},[v,c]),gp(()=>{const E=D.current;if(!E)return;const B=(G,$)=>{const re=E.getAttribute(G);if($==null){re!=null&&E.removeAttribute(G);return}re!==$&&E.setAttribute(G,$)},M=(G,$)=>{$?B(G,""):B(G,null)};M("pressed",f),M("disabled",h),M("loading",i),M("headless",b),M("required",P),B("size",S&&S!=="md"?S:null),B("variant",y&&y!=="default"?y:null),B("tone",s&&s!=="brand"?s:null),B("shape",a&&a!=="default"?a:null),B("elevation",T&&T!=="default"?T:null),B("name",p||null),B("value",A||null),B("icon-on",F||null),B("icon-off",w||null)},[f,h,i,b,P,S,y,s,a,T,p,A,F,w]),H.default.createElement("ui-toggle",{ref:D,...C},u)});Bc.displayName="Toggle";const Ep=typeof window<"u"?I.useLayoutEffect:I.useEffect,Nc=H.default.forwardRef(function({children:u,value:f,multiple:h,disabled:i,headless:b,orientation:S,variant:y,size:s,density:a,shape:T,elevation:p,allowEmpty:A,required:P,activation:F,onInput:w,onChange:v,onValueChange:c,...C},_){const D=I.useRef(null);return I.useImperativeHandle(_,()=>D.current),I.useEffect(()=>{const E=D.current;if(!E)return;const B=G=>{const $=G.detail;$&&(w==null||w($),c==null||c($))},M=G=>{const $=G.detail;$&&(v==null||v($),c==null||c($))};return E.addEventListener("input",B),E.addEventListener("change",M),()=>{E.removeEventListener("input",B),E.removeEventListener("change",M)}},[w,v,c]),Ep(()=>{const E=D.current;if(!E)return;const B=(G,$)=>{const re=E.getAttribute(G);if($==null){re!=null&&E.removeAttribute(G);return}re!==$&&E.setAttribute(G,$)},M=(G,$)=>{$?B(G,""):B(G,null)};M("multiple",h),M("disabled",i),M("headless",b),M("allow-empty",A),M("required",P),f==null?B("value",null):Array.isArray(f)?B("value",JSON.stringify(f)):B("value",String(f)),B("orientation",S&&S!=="horizontal"?S:null),B("variant",y&&y!=="default"?y:null),B("size",s&&s!=="md"?s:null),B("density",a&&a!=="default"?a:null),B("shape",T&&T!=="default"?T:null),B("elevation",p&&p!=="default"?p:null),B("activation",F&&F!=="auto"?F:null)},[f,h,i,b,A,P,S,y,s,a,T,p,F]),H.default.createElement("ui-toggle-group",{ref:D,...C},u)});Nc.displayName="ToggleGroup";const Ap=typeof window<"u"?H.useLayoutEffect:H.useEffect;function wp(R){if(R!=null){if(typeof R=="string")return R;if(!(!Number.isFinite(R)||R<=0))return Math.abs(R-16/9)<.01?"16/9":Math.abs(R-4/3)<.01?"4/3":Math.abs(R-1)<.01?"1/1":`${R}/1`}}const Uc=H.forwardRef(function({ratio:u,fit:f,tone:h,variant:i,size:b,radius:S,elevation:y,interactive:s,showRatioBadge:a,headless:T,children:p,...A},P){const F=H.useRef(null);return H.useImperativeHandle(P,()=>F.current),H.useEffect(()=>{St("ui-aspect-ratio","AspectRatio")},[]),Ap(()=>{const w=F.current;if(!w)return;const v=wp(u);v?w.setAttribute("ratio",v):w.removeAttribute("ratio"),f?w.setAttribute("fit",f):w.removeAttribute("fit"),h&&h!=="neutral"?w.setAttribute("tone",h):w.removeAttribute("tone"),i&&i!=="surface"?w.setAttribute("variant",i):w.removeAttribute("variant"),b&&b!=="md"?w.setAttribute("size",b):w.removeAttribute("size"),S!=null?w.setAttribute("radius",String(S)):w.removeAttribute("radius"),y&&y!=="none"?w.setAttribute("elevation",y):w.removeAttribute("elevation"),s?w.setAttribute("interactive",""):w.removeAttribute("interactive"),a?w.setAttribute("show-ratio-badge",""):w.removeAttribute("show-ratio-badge"),T?w.setAttribute("headless",""):w.removeAttribute("headless")},[u,f,h,i,b,S,y,s,a,T]),H.createElement("ui-aspect-ratio",{ref:F,...A},p)});Uc.displayName="AspectRatio";const Sp=typeof window<"u"?H.useLayoutEffect:H.useEffect;function na(R){const u=R.trim().split(/\s+/).filter(Boolean);return u.length===0?"?":u.length===1?u[0].slice(0,2).toUpperCase():`${u[0][0]||""}${u[1][0]||""}`.toUpperCase()}function xp(R){if(R!=null)return R==="lazy"||R==="eager"?R:R?"eager":"lazy"}function kp(R,u,f){return R&&R.trim()?R.trim().slice(0,2).toUpperCase():u&&u.trim()?na(u):typeof f=="string"&&f.trim()?na(f):"?"}const Oc=H.forwardRef(function({src:u,alt:f,initials:h,size:i,bg:b,color:S,radius:y,fontWeight:s,shape:a,tone:T,variant:p,elevation:A,status:P,state:F,badge:w,ring:v,interactive:c,disabled:C,loading:_,onAvatarLoad:D,onAvatarError:E,children:B,...M},G){const $=H.useRef(null),re=H.useMemo(()=>kp(h,f,B),[h,f,B]);return H.useImperativeHandle(G,()=>$.current),H.useEffect(()=>{St("ui-avatar","Avatar")},[]),H.useEffect(()=>{const K=$.current;if(!K||!D&&!E)return;const Z=le=>D==null?void 0:D(le.detail),U=le=>E==null?void 0:E(le.detail);return K.addEventListener("avatar-load",Z),K.addEventListener("avatar-error",U),()=>{K.removeEventListener("avatar-load",Z),K.removeEventListener("avatar-error",U)}},[D,E]),Sp(()=>{const K=$.current;if(!K)return;u?K.setAttribute("src",u):K.removeAttribute("src"),f?K.setAttribute("alt",f):K.removeAttribute("alt"),h?K.setAttribute("initials",h):K.removeAttribute("initials"),i!=null?K.setAttribute("size",String(i)):K.removeAttribute("size"),b?K.setAttribute("bg",b):K.removeAttribute("bg"),S?K.setAttribute("color",S):K.removeAttribute("color"),y!=null?K.setAttribute("radius",String(y)):K.removeAttribute("radius"),s!=null?K.setAttribute("fontweight",String(s)):K.removeAttribute("fontweight"),a?K.setAttribute("shape",a):K.removeAttribute("shape"),T&&T!=="neutral"?K.setAttribute("tone",T):K.removeAttribute("tone"),p&&p!=="surface"?K.setAttribute("variant",p):K.removeAttribute("variant"),A&&A!=="low"?K.setAttribute("elevation",A):K.removeAttribute("elevation"),P?K.setAttribute("status",P):K.removeAttribute("status"),F&&F!=="idle"?K.setAttribute("state",F):K.removeAttribute("state"),w?K.setAttribute("badge",w):K.removeAttribute("badge"),v==null?K.removeAttribute("ring"):v?K.setAttribute("ring",""):K.removeAttribute("ring"),c==null?K.removeAttribute("interactive"):c?K.setAttribute("interactive",""):K.removeAttribute("interactive"),C==null?K.removeAttribute("disabled"):C?K.setAttribute("disabled",""):K.removeAttribute("disabled");const Z=xp(_);Z?K.setAttribute("loading",Z):K.removeAttribute("loading")},[u,f,h,i,b,S,y,s,a,T,p,A,P,F,w,v,c,C,_]),H.createElement("ui-avatar",{ref:$,...M},re)});Oc.displayName="Avatar";const Rp=typeof window<"u"?I.useLayoutEffect:I.useEffect,jc=H.default.forwardRef(function({present:u,headless:f,mode:h,size:i,variant:b,keepMounted:S,lazy:y,enterDuration:s,exitDuration:a,delay:T,onBeforeEnter:p,onEnter:A,onAfterEnter:P,onBeforeExit:F,onExit:w,onAfterExit:v,children:c,...C},_){const D=I.useRef(null);return H.default.useImperativeHandle(_,()=>D.current),I.useEffect(()=>{const E=D.current;if(!E)return;const B=U=>{const le=U.detail;return(le==null?void 0:le.state)||"hidden"},M=U=>p==null?void 0:p(B(U)),G=U=>A==null?void 0:A(B(U)),$=U=>P==null?void 0:P(B(U)),re=U=>F==null?void 0:F(B(U)),K=U=>w==null?void 0:w(B(U)),Z=U=>v==null?void 0:v(B(U));return E.addEventListener("before-enter",M),E.addEventListener("enter",G),E.addEventListener("after-enter",$),E.addEventListener("before-exit",re),E.addEventListener("exit",K),E.addEventListener("after-exit",Z),()=>{E.removeEventListener("before-enter",M),E.removeEventListener("enter",G),E.removeEventListener("after-enter",$),E.removeEventListener("before-exit",re),E.removeEventListener("exit",K),E.removeEventListener("after-exit",Z)}},[p,A,P,F,w,v]),Rp(()=>{const E=D.current;E&&(u?E.setAttribute("present",""):E.removeAttribute("present"),f?E.setAttribute("headless",""):E.removeAttribute("headless"),h&&h!=="fade"?E.setAttribute("mode",h):E.removeAttribute("mode"),i&&i!=="md"?E.setAttribute("size",i):E.removeAttribute("size"),b&&b!=="default"?E.setAttribute("variant",b):E.removeAttribute("variant"),S?E.setAttribute("keep-mounted",""):E.removeAttribute("keep-mounted"),y?E.setAttribute("lazy",""):E.removeAttribute("lazy"),typeof s=="number"?E.setAttribute("enter-duration",String(s)):E.removeAttribute("enter-duration"),typeof a=="number"?E.setAttribute("exit-duration",String(a)):E.removeAttribute("exit-duration"),typeof T=="number"?E.setAttribute("delay",String(T)):E.removeAttribute("delay"))},[u,f,h,i,b,S,y,s,a,T]),H.default.createElement("ui-presence",{ref:D,...C},c)});jc.displayName="Presence";const Tp=typeof window<"u"?I.useLayoutEffect:I.useEffect,$c=H.default.forwardRef(function({value:u,buffer:f,max:h,min:i,indeterminate:b,striped:S,animated:y,showLabel:s,label:a,format:T,precision:p,size:A,variant:P,tone:F,shape:w,mode:v,onValueChange:c,onComplete:C,children:_,...D},E){const B=I.useRef(null);return H.default.useImperativeHandle(E,()=>B.current),I.useEffect(()=>{const M=B.current;if(!M)return;const G=re=>{const K=re.detail;K&&(c==null||c(K))},$=re=>{const K=re.detail;K&&(C==null||C(K))};return M.addEventListener("change",G),M.addEventListener("complete",$),()=>{M.removeEventListener("change",G),M.removeEventListener("complete",$)}},[c,C]),Tp(()=>{const M=B.current;if(!M)return;const G=(re,K)=>{const Z=M.getAttribute(re);if(K==null){Z!=null&&M.removeAttribute(re);return}Z!==K&&M.setAttribute(re,K)},$=(re,K)=>{K?M.hasAttribute(re)||M.setAttribute(re,""):M.hasAttribute(re)&&M.removeAttribute(re)};G("value",u!=null?String(u):null),G("buffer",f!=null?String(f):null),G("max",h!=null?String(h):null),G("min",i!=null?String(i):null),$("indeterminate",b),$("striped",S),$("animated",y),$("show-label",s),G("label",a!=null&&a!==""?a:null),G("format",T!=null&&T!=="percent"?T:null),G("precision",p!=null?String(p):null),G("size",A&&A!=="md"?A:null),G("variant",P&&P!=="default"?P:null),G("tone",F&&F!=="brand"?F:null),G("shape",w&&w!=="pill"?w:null),G("mode",v&&v!=="line"?v:null)},[u,f,h,i,b,S,y,s,a,T,p,A,P,F,w,v]),H.default.createElement("ui-progress",{ref:B,...D},_)});$c.displayName="Progress";const Lp=typeof window<"u"?I.useLayoutEffect:I.useEffect,zc=H.default.forwardRef(function({value:u,min:f,max:h,low:i,high:b,optimum:S,label:y,showLabel:s,format:a,precision:T,size:p,variant:A,tone:P,shape:F,mode:w,onValueChange:v,children:c,...C},_){const D=I.useRef(null);return H.default.useImperativeHandle(_,()=>D.current),I.useEffect(()=>{const E=D.current;if(!E)return;const B=M=>{const G=M.detail;G&&(v==null||v(G))};return E.addEventListener("change",B),()=>{E.removeEventListener("change",B)}},[v]),Lp(()=>{const E=D.current;if(!E)return;const B=(G,$)=>{const re=E.getAttribute(G);if($==null){re!=null&&E.removeAttribute(G);return}re!==$&&E.setAttribute(G,$)},M=(G,$)=>{$?E.hasAttribute(G)||E.setAttribute(G,""):E.hasAttribute(G)&&E.removeAttribute(G)};B("value",u!=null?String(u):null),B("min",f!=null?String(f):null),B("max",h!=null?String(h):null),B("low",i!=null?String(i):null),B("high",b!=null?String(b):null),B("optimum",S!=null?String(S):null),B("label",y!=null&&y!==""?y:null),M("show-label",s),B("format",a!=null&&a!=="value"?a:null),B("precision",T!=null?String(T):null),B("size",p&&p!=="md"?p:null),B("variant",A&&A!=="default"?A:null),B("tone",P&&P!=="auto"?P:null),B("shape",F&&F!=="pill"?F:null),B("mode",w&&w!=="line"?w:null)},[u,f,h,i,b,S,y,s,a,T,p,A,P,F,w]),H.default.createElement("ui-meter",{ref:D,...C},c)});zc.displayName="Meter";const Ip=typeof window<"u"?I.useLayoutEffect:I.useEffect,Wc=H.default.forwardRef(function({target:u,headless:f,disabled:h,strategy:i,onMount:b,onUnmount:S,onSync:y,onTargetMissing:s,children:a,...T},p){const A=I.useRef(null);return H.default.useImperativeHandle(p,()=>A.current),I.useEffect(()=>{const P=A.current;if(!P)return;const F=C=>b==null?void 0:b(C.detail||{count:0}),w=C=>S==null?void 0:S(C.detail||{count:0}),v=C=>y==null?void 0:y(C.detail||{count:0}),c=C=>{const _=C.detail;_&&(s==null||s(_))};return P.addEventListener("mount",F),P.addEventListener("unmount",w),P.addEventListener("sync",v),P.addEventListener("target-missing",c),()=>{P.removeEventListener("mount",F),P.removeEventListener("unmount",w),P.removeEventListener("sync",v),P.removeEventListener("target-missing",c)}},[b,S,y,s]),Ip(()=>{const P=A.current;P&&(u?P.setAttribute("target",u):P.removeAttribute("target"),i&&i!=="append"?P.setAttribute("strategy",i):P.removeAttribute("strategy"),f?P.setAttribute("headless",""):P.removeAttribute("headless"),h?P.setAttribute("disabled",""):P.removeAttribute("disabled"))},[u,i,f,h]),H.default.createElement("ui-portal",{ref:A,...T},a)});Wc.displayName="Portal";const Cp=typeof window<"u"?I.useLayoutEffect:I.useEffect,Gc=H.default.forwardRef(function({orientation:u,size:f,variant:h,tone:i,autoHide:b,shadows:S,onScrollChange:y,onReachStart:s,onReachEnd:a,children:T,...p},A){const P=I.useRef(null);return H.default.useImperativeHandle(A,()=>P.current),I.useEffect(()=>{const F=P.current;if(!F)return;const w=C=>{const _=C.detail;_&&(y==null||y(_))},v=()=>s==null?void 0:s(),c=()=>a==null?void 0:a();return F.addEventListener("scroll",w),F.addEventListener("reach-start",v),F.addEventListener("reach-end",c),()=>{F.removeEventListener("scroll",w),F.removeEventListener("reach-start",v),F.removeEventListener("reach-end",c)}},[y,s,a]),Cp(()=>{const F=P.current;if(!F)return;const w=(c,C)=>{const _=F.getAttribute(c);if(C==null){_!=null&&F.removeAttribute(c);return}_!==C&&F.setAttribute(c,C)},v=(c,C)=>{const _=F.getAttribute(c);if(C==null){_!=null&&F.removeAttribute(c);return}const D=C?"true":"false";_!==D&&F.setAttribute(c,D)};w("orientation",u&&u!=="vertical"?u:null),w("size",f&&f!=="md"?f:null),w("variant",h&&h!=="default"?h:null),w("tone",i&&i!=="neutral"?i:null),v("auto-hide",b),v("shadows",S)},[u,f,h,i,b,S]),H.default.createElement("ui-scroll-area",{ref:P,...p},T)});Gc.displayName="ScrollArea";const Yc=H.forwardRef((R,u)=>H.createElement("ui-separator",{ref:u,...R}));Yc.displayName="Separator";const Pp=typeof window<"u"?I.useLayoutEffect:I.useEffect,Jc=H.default.forwardRef(function({children:u,name:f,fallback:h,required:i,inline:b,align:S,size:y,variant:s,tone:a,headless:T,onSlotChange:p,onMissing:A,onResolved:P,...F},w){const v=I.useRef(null);return I.useImperativeHandle(w,()=>v.current),I.useEffect(()=>{const c=v.current;if(!c)return;const C=E=>{const B=E.detail;B&&(p==null||p(B))},_=()=>A==null?void 0:A(),D=()=>P==null?void 0:P();return c.addEventListener("slotchange",C),c.addEventListener("missing",_),c.addEventListener("resolved",D),()=>{c.removeEventListener("slotchange",C),c.removeEventListener("missing",_),c.removeEventListener("resolved",D)}},[p,A,P]),Pp(()=>{const c=v.current;if(!c)return;const C=(D,E)=>{const B=c.getAttribute(D);if(E==null){B!=null&&c.removeAttribute(D);return}B!==E&&c.setAttribute(D,E)},_=(D,E)=>{E?C(D,""):C(D,null)};C("name",f||null),C("fallback",h||null),_("required",i),typeof b=="boolean"?C("inline",b?"true":"false"):C("inline",null),C("align",S&&S!=="start"?S:null),C("size",y&&y!=="md"?y:null),C("variant",s&&s!=="plain"?s:null),C("tone",a&&a!=="brand"?a:null),_("headless",T)},[f,h,i,b,S,y,s,a,T]),H.default.createElement("ui-slot",{ref:v,...F},u)});Jc.displayName="Slot";const Fp=typeof window<"u"?I.useLayoutEffect:I.useEffect,Xc=H.default.forwardRef(function({children:u,orientation:f,variant:h,size:i,density:b,wrap:S,loop:y,headless:s,...a},T){const p=I.useRef(null);return I.useImperativeHandle(T,()=>p.current),Fp(()=>{const A=p.current;if(!A)return;const P=(w,v)=>{const c=A.getAttribute(w);if(v==null){c!=null&&A.removeAttribute(w);return}c!==v&&A.setAttribute(w,v)},F=(w,v)=>{v?P(w,""):P(w,null)};P("orientation",f&&f!=="horizontal"?f:null),P("variant",h&&h!=="default"?h:null),P("size",i&&i!=="md"?i:null),P("density",b&&b!=="default"?b:null),F("wrap",S),typeof y=="boolean"?F("loop",y):P("loop",null),F("headless",s)},[f,h,i,b,S,y,s]),H.default.createElement("ui-toolbar",{ref:p,...a},u)});Xc.displayName="Toolbar";const Zc=H.forwardRef((R,u)=>H.createElement("ui-visually-hidden",{ref:u,...R}));Zc.displayName="VisuallyHidden";const Dp=typeof window<"u"?H.useLayoutEffect:H.useEffect;function Mu(R,u,f){if(f==null){R.removeAttribute(u);return}f?R.setAttribute(u,""):R.removeAttribute(u)}function ia(R){return R.detail}const Vc=H.forwardRef(function({header:u,caption:f,meta:h,open:i,headless:b,disabled:S,readOnly:y,state:s,size:a,variant:T,tone:p,iconPosition:A,closeOnEscape:P,onToggle:F,onChangeOpen:w,onToggleDetail:v,onChangeDetail:c,children:C,..._},D){const E=H.useRef(null);H.useImperativeHandle(D,()=>E.current),H.useEffect(()=>{St("ui-collapsible","Collapsible")},[]),Dp(()=>{const re=E.current;if(!re)return;Mu(re,"open",i),Mu(re,"headless",b),Mu(re,"disabled",S),Mu(re,"readonly",y);const K=(Z,U)=>{const le=re.getAttribute(Z);if(U==null){le!=null&&re.removeAttribute(Z);return}le!==U&&re.setAttribute(Z,U)};K("state",s&&s!=="idle"?s:null),K("size",a&&a!=="md"?a:null),K("variant",T&&T!=="default"?T:null),K("tone",p&&p!=="neutral"?p:null),K("icon-position",A&&A!=="right"?A:null),K("close-on-escape",typeof P=="boolean"?P?"true":"false":null)},[i,b,S,y,s,a,T,p,A,P]),H.useEffect(()=>{const re=E.current;if(!re||!F&&!w&&!v&&!c)return;const K=U=>{const le=ia(U);le&&(F==null||F(le.open),v==null||v(le))},Z=U=>{const le=ia(U);le&&(w==null||w(le.open),c==null||c(le))};return re.addEventListener("toggle",K),re.addEventListener("change",Z),()=>{re.removeEventListener("toggle",K),re.removeEventListener("change",Z)}},[F,w,v,c]);let B=null,M=null,G=null;const $=(re,K)=>re==null?null:typeof re=="string"||typeof re=="number"?H.createElement("span",{slot:K},re):H.isValidElement(re)?H.cloneElement(re,{slot:K}):H.createElement("span",{slot:K},re);return B=$(u,"header"),M=$(f,"caption"),G=$(h,"meta"),H.createElement("ui-collapsible",{ref:E,..._},B,M,G,C)});Vc.displayName="Collapsible";const Mp=typeof window<"u"?H.useLayoutEffect:H.useEffect,Qc=H.forwardRef(function({page:u,count:f,size:h,variant:i,headless:b,ariaLabel:S,onPageChange:y,onChange:s,onFirst:a,onPrev:T,onNext:p,onLast:A,children:P,...F},w){const v=H.useRef(null);return H.useImperativeHandle(w,()=>v.current),H.useEffect(()=>{const c=v.current;if(!c)return;const C=M=>{const G=M.detail;G&&(y==null||y(G),s==null||s(G))},_=M=>{const G=M.detail;G&&(a==null||a(G))},D=M=>{const G=M.detail;G&&(T==null||T(G))},E=M=>{const G=M.detail;G&&(p==null||p(G))},B=M=>{const G=M.detail;G&&(A==null||A(G))};return c.addEventListener("change",C),c.addEventListener("first",_),c.addEventListener("prev",D),c.addEventListener("next",E),c.addEventListener("last",B),()=>{c.removeEventListener("change",C),c.removeEventListener("first",_),c.removeEventListener("prev",D),c.removeEventListener("next",E),c.removeEventListener("last",B)}},[y,s,a,T,p,A]),Mp(()=>{const c=v.current;if(!c)return;const C=(D,E)=>{const B=c.getAttribute(D);if(E==null){B!=null&&c.removeAttribute(D);return}B!==E&&c.setAttribute(D,E)},_=(D,E)=>{E?c.hasAttribute(D)||c.setAttribute(D,""):c.hasAttribute(D)&&c.removeAttribute(D)};C("page",typeof u=="number"&&Number.isFinite(u)?String(u):null),C("count",typeof f=="number"&&Number.isFinite(f)?String(f):null),C("size",h&&h!=="md"?h:null),C("variant",i&&i!=="default"?i:null),C("aria-label",S??null),_("headless",b)},[u,f,h,i,S,b]),H.createElement("ui-pagination",{ref:v,...F},P)});Qc.displayName="Pagination";const Hp=typeof window<"u"?H.useLayoutEffect:H.useEffect;function _p(R,u,f){if(f==null){R.removeAttribute(u);return}f?R.setAttribute(u,""):R.removeAttribute(u)}function Di(R,u,f){const h=R.getAttribute(u);if(f==null||f===""){h!=null&&R.removeAttribute(u);return}h!==f&&R.setAttribute(u,f)}function oa(R){var u;return(u=R.detail)==null?void 0:u.open}const Kc=H.forwardRef(function({multiple:u,collapsible:f,open:h,variant:i,size:b,radius:S,tone:y,indicator:s,shape:a,elevation:T,onToggle:p,onChangeOpen:A,children:P,...F},w){const v=H.useRef(null);return H.useImperativeHandle(w,()=>v.current),H.useEffect(()=>{St("ui-accordion","Accordion")},[]),Hp(()=>{const c=v.current;c&&(_p(c,"multiple",u),f==null?c.removeAttribute("collapsible"):c.setAttribute("collapsible",String(!!f)),h==null?c.removeAttribute("open"):c.setAttribute("open",Array.isArray(h)?JSON.stringify(h):String(h)),Di(c,"variant",i&&i!=="surface"?i:null),Di(c,"size",b&&b!=="md"?b:null),Di(c,"radius",S!=null?String(S):null),Di(c,"tone",y&&y!=="neutral"?y:null),Di(c,"indicator",s&&s!=="line"?s:null),Di(c,"shape",a&&a!=="default"?a:null),Di(c,"elevation",T&&T!=="default"?T:null))},[u,f,h,i,b,S,y,s,a,T]),H.useEffect(()=>{const c=v.current;if(!c||!p&&!A)return;const C=D=>{const E=oa(D);E!=null&&(p==null||p(E))},_=D=>{const E=oa(D);E!=null&&(A==null||A(E))};return c.addEventListener("toggle",C),c.addEventListener("change",_),()=>{c.removeEventListener("toggle",C),c.removeEventListener("change",_)}},[p,A]),H.createElement("ui-accordion",{ref:v,...F},P)});Kc.displayName="Accordion";const qc=H.forwardRef(function({disabled:u,description:f,badge:h,children:i,...b},S){const y={ref:S,"data-ui-accordion-item":"",...b};return u&&(y.disabled=!0),f!=null&&(y["data-description"]=String(f)),h!=null&&(y["data-badge"]=String(h)),H.createElement("div",y,i)});qc.displayName="AccordionItem";const ef=H.forwardRef(function({type:u,children:f,...h},i){return H.createElement("button",{ref:i,type:u||"button","data-ui-accordion-trigger":"",...h},f)});ef.displayName="AccordionTrigger";const tf=H.forwardRef(function({children:u,...f},h){return H.createElement("div",{ref:h,"data-ui-accordion-panel":"",...f},u)});tf.displayName="AccordionPanel";const rf=H.forwardRef((R,u)=>H.createElement("ui-direction-provider",{ref:u,...R}));rf.displayName="DirectionProvider";const la=typeof window<"u"?I.useLayoutEffect:I.useEffect,nf=H.default.forwardRef(function({children:u,open:f,delay:h,closeDelay:i,placement:b,offset:S,variant:y,tone:s,density:a,shape:T,elevation:p,headless:A,onOpen:P,onClose:F,onChange:w,...v},c){const C=I.useRef(null);return I.useImperativeHandle(c,()=>C.current),I.useEffect(()=>{const _=C.current;if(!_)return;const D=()=>P==null?void 0:P(),E=()=>F==null?void 0:F(),B=M=>{var $;const G=($=M.detail)==null?void 0:$.open;typeof G=="boolean"&&(w==null||w(G))};return _.addEventListener("open",D),_.addEventListener("close",E),_.addEventListener("change",B),()=>{_.removeEventListener("open",D),_.removeEventListener("close",E),_.removeEventListener("change",B)}},[P,F,w]),la(()=>{const _=C.current;!_||f==null||(f?_.setAttribute("open",""):_.removeAttribute("open"))},[f]),la(()=>{const _=C.current;_&&(typeof h=="number"?_.setAttribute("delay",String(h)):_.removeAttribute("delay"),typeof i=="number"?_.setAttribute("close-delay",String(i)):_.removeAttribute("close-delay"),b?_.setAttribute("placement",b):_.removeAttribute("placement"),typeof S=="number"?_.setAttribute("offset",String(S)):_.removeAttribute("offset"),y&&y!=="default"?_.setAttribute("variant",y):_.removeAttribute("variant"),s&&s!=="default"?_.setAttribute("tone",s):_.removeAttribute("tone"),a&&a!=="default"?_.setAttribute("density",a):_.removeAttribute("density"),T&&T!=="default"?_.setAttribute("shape",T):_.removeAttribute("shape"),p&&p!=="default"?_.setAttribute("elevation",p):_.removeAttribute("elevation"),A?_.setAttribute("headless",""):_.removeAttribute("headless"))},[h,i,b,S,y,s,a,T,p,A]),H.default.createElement("ui-hover-card",{ref:C,...v},u)});nf.displayName="HoverCard";const ua="editora-ui-react-card-runtime-styles";function Bp(){if(typeof document>"u"||document.getElementById(ua))return;const R=document.createElement("style");R.id=ua,R.textContent=`
|
|
138
|
+
ui-card [data-ui-card-header] {
|
|
139
|
+
display: grid;
|
|
140
|
+
gap: var(--ui-card-header-gap, 4px);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
ui-card [data-ui-card-footer] {
|
|
144
|
+
font-size: var(--ui-card-footer-size, 13px);
|
|
145
|
+
line-height: var(--ui-card-footer-line-height, 18px);
|
|
146
|
+
color: var(--ui-color-muted, #64748b);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
ui-card [data-ui-card-media] {
|
|
150
|
+
display: block;
|
|
151
|
+
min-block-size: var(--ui-card-media-min-height, 148px);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
ui-card [data-ui-card-title] {
|
|
155
|
+
display: block;
|
|
156
|
+
margin: 0;
|
|
157
|
+
font-size: var(--ui-card-title-size, 18px);
|
|
158
|
+
line-height: var(--ui-card-title-line-height, 24px);
|
|
159
|
+
font-weight: 700;
|
|
160
|
+
color: var(--ui-color-text, #202020);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
ui-card [data-ui-card-description] {
|
|
164
|
+
display: block;
|
|
165
|
+
margin: 0;
|
|
166
|
+
font-size: var(--ui-card-description-size, 14px);
|
|
167
|
+
line-height: var(--ui-card-description-line-height, 20px);
|
|
168
|
+
color: var(--ui-color-muted, #64748b);
|
|
169
|
+
}
|
|
170
|
+
`,document.head.appendChild(R)}const Np=H.default.forwardRef(function({variant:u,size:f,radius:h,tone:i,elevation:b,interactive:S,disabled:y,children:s,...a},T){H.default.useEffect(()=>{St("ui-card","Card"),Bp()},[]);const p={ref:T,...a};return u&&(p.variant=u),f&&(p.size=f),h!==void 0&&(p.radius=String(h)),i&&(p.tone=i),b&&(p.elevation=b),S&&(p.interactive=!0),y&&(p.disabled=!0),H.default.createElement("ui-card",p,s)});function Bo(R,u,f,h){const i=H.default.forwardRef(function({as:S,children:y,style:s,...a},T){const p=S||R,A={ref:T,...a};return f&&(A.slot=f),h&&(A[h]=""),s&&(A.style=s),H.default.createElement(p,A,y)});return i.displayName=u,i}const Up=Bo("div","CardHeader","header","data-ui-card-header"),Op=Bo("div","CardFooter","footer","data-ui-card-footer"),jp=Bo("div","CardInset","inset"),$p=Bo("div","CardMedia","media","data-ui-card-media"),zp=Bo("h3","CardTitle",void 0,"data-ui-card-title"),Wp=Bo("p","CardDescription",void 0,"data-ui-card-description"),Gp=typeof window<"u"?I.useLayoutEffect:I.useEffect,of=H.default.forwardRef(function({children:u,htmlFor:f,for:h,required:i,description:b,variant:S,tone:y,size:s,density:a,shape:T,disabled:p,headless:A,...P},F){const w=I.useRef(null);return I.useImperativeHandle(F,()=>w.current),Gp(()=>{const v=w.current;if(!v)return;const c=f||h;c?v.setAttribute("for",c):v.removeAttribute("for"),i?v.setAttribute("required",""):v.removeAttribute("required"),b?v.setAttribute("description",b):v.removeAttribute("description"),S&&S!=="default"?v.setAttribute("variant",S):v.removeAttribute("variant"),y&&y!=="default"?v.setAttribute("tone",y):v.removeAttribute("tone"),s&&s!=="md"&&s!=="2"?v.setAttribute("size",s):v.removeAttribute("size"),a&&a!=="default"?v.setAttribute("density",a):v.removeAttribute("density"),T&&T!=="default"?v.setAttribute("shape",T):v.removeAttribute("shape"),p?v.setAttribute("disabled",""):v.removeAttribute("disabled"),A?v.setAttribute("headless",""):v.removeAttribute("headless")},[f,h,i,b,S,y,s,a,T,p,A]),H.default.createElement("ui-label",{ref:w,...P},u)});of.displayName="Label";const Yp=typeof window<"u"?H.default.useLayoutEffect:H.default.useEffect,lf=H.default.forwardRef(function({children:u,open:f,headless:h,dismissible:i,closeOnEsc:b,closeOnBackdrop:S,lockWhileLoading:y,roleType:s,tone:a,variant:T,size:p,radius:A,elevation:P,indicator:F,state:w,initialFocus:v,dialogId:c,config:C,onOpen:_,onConfirm:D,onCancel:E,onDismiss:B,onClose:M,onChange:G,...$},re){const K=I.useRef(null);return H.default.useImperativeHandle(re,()=>K.current),I.useEffect(()=>{const Z=K.current;if(!Z)return;const U=ie=>_==null?void 0:_(ie.detail),le=ie=>D==null?void 0:D(ie.detail),me=ie=>E==null?void 0:E(ie.detail),Q=ie=>B==null?void 0:B(ie.detail),oe=ie=>M==null?void 0:M(ie.detail),se=ie=>G==null?void 0:G(ie.detail);return Z.addEventListener("ui-open",U),Z.addEventListener("ui-confirm",le),Z.addEventListener("ui-cancel",me),Z.addEventListener("ui-dismiss",Q),Z.addEventListener("ui-close",oe),Z.addEventListener("ui-change",se),()=>{Z.removeEventListener("ui-open",U),Z.removeEventListener("ui-confirm",le),Z.removeEventListener("ui-cancel",me),Z.removeEventListener("ui-dismiss",Q),Z.removeEventListener("ui-close",oe),Z.removeEventListener("ui-change",se)}},[_,D,E,B,M,G]),Yp(()=>{const Z=K.current;Z&&(h?Z.setAttribute("headless",""):Z.removeAttribute("headless"),typeof f=="boolean"&&f?Z.setAttribute("open",""):Z.removeAttribute("open"),typeof i=="boolean"?Z.setAttribute("dismissible",String(i)):Z.removeAttribute("dismissible"),typeof b=="boolean"?Z.setAttribute("close-on-esc",String(b)):Z.removeAttribute("close-on-esc"),typeof S=="boolean"?Z.setAttribute("close-on-backdrop",String(S)):Z.removeAttribute("close-on-backdrop"),typeof y=="boolean"?Z.setAttribute("lock-while-loading",String(y)):Z.removeAttribute("lock-while-loading"),s?Z.setAttribute("role",s):Z.removeAttribute("role"),a&&a!=="neutral"?Z.setAttribute("tone",a):Z.removeAttribute("tone"),T&&T!=="surface"?Z.setAttribute("variant",T):Z.removeAttribute("variant"),p&&p!=="md"&&p!=="2"?Z.setAttribute("size",p):Z.removeAttribute("size"),A!=null?Z.setAttribute("radius",String(A)):Z.removeAttribute("radius"),P&&P!=="low"?Z.setAttribute("elevation",P):Z.removeAttribute("elevation"),F&&F!=="line"?Z.setAttribute("indicator",F):Z.removeAttribute("indicator"),w&&w!=="idle"?Z.setAttribute("state",w):Z.removeAttribute("state"),v?Z.setAttribute("initial-focus",v):Z.removeAttribute("initial-focus"),c&&(Z.dialogId=c),C?Z.config=C:Z.config={})},[f,h,i,b,S,y,s,a,T,p,A,P,F,w,v,c,C]),H.default.createElement("ui-alert-dialog",{ref:K,...$},u)});lf.displayName="AlertDialog";function jl(R,u,f,h){const i=H.default.forwardRef(function({as:S,children:y,style:s,...a},T){const p=S||R,A={ref:T,...a};return f&&(A.slot=f),h&&(A[h]=""),s&&(A.style=s),H.default.createElement(p,A,y)});return i.displayName=u,i}const Jp=jl("span","AlertDialogIcon","icon","data-ui-alert-dialog-icon"),Xp=jl("div","AlertDialogTitle","title","data-ui-alert-dialog-title"),Zp=jl("div","AlertDialogDescription","description","data-ui-alert-dialog-description"),Vp=jl("div","AlertDialogContent","content","data-ui-alert-dialog-content"),Qp=jl("div","AlertDialogActions","footer","data-ui-alert-dialog-actions"),uf=I.createContext(null),Ul="data-ui-alert-dialog-react-host-refcount";function Kp({children:R,hostId:u="ui-alert-dialog-react-host",defaults:f}){const h=I.useRef(null);h.current||(h.current=Gn.createAlertDialogManager()),I.useEffect(()=>{var b;(b=h.current)==null||b.setDefaults(f||null)},[f]),I.useEffect(()=>{var s;if(typeof document>"u")return;let b=document.getElementById(u);const S=!b;b||(b=document.createElement("div"),b.id=u,b.setAttribute("data-ui-alert-dialog-react-host","true"),document.body.appendChild(b));const y=Number(b.getAttribute(Ul)||"0");return b.setAttribute(Ul,String(Math.max(0,y)+1)),(s=h.current)==null||s.setContainer(b),()=>{var p,A;if((p=h.current)==null||p.destroy("unmount"),h.current=null,!b||!b.isConnected)return;const a=Number(b.getAttribute(Ul)||"1"),T=Math.max(0,a-1);T===0?(b.removeAttribute(Ul),S&&((A=b.parentElement)==null||A.removeChild(b))):b.setAttribute(Ul,String(T))}},[u]);const i=I.useMemo(()=>({alert:(b={})=>{var S;return((S=h.current)==null?void 0:S.alert(b))??Promise.resolve({id:"",action:"dismiss"})},confirm:(b={})=>{var S;return((S=h.current)==null?void 0:S.confirm(b))??Promise.resolve({id:"",action:"dismiss"})},prompt:(b={})=>{var S;return((S=h.current)==null?void 0:S.prompt(b))??Promise.resolve({id:"",action:"dismiss",value:""})}}),[]);return H.default.createElement(uf.Provider,{value:i},R)}function qp(){const R=I.useContext(uf);if(!R)throw new Error("useAlertDialog must be used within <AlertDialogProvider>.");return R}const ev=typeof window<"u"?I.useLayoutEffect:I.useEffect,sf=H.default.forwardRef(function({children:u,value:f,disabled:h,loading:i,required:b,invalid:S,headless:y,placeholder:s,name:a,label:T,description:p,error:A,size:P,variant:F,tone:w,density:v,shape:c,elevation:C,radius:_,optionBorder:D,showCheck:E,checkPlacement:B,validation:M,onChange:G,onInput:$,onValueChange:re,...K},Z){const U=I.useRef(null);return I.useImperativeHandle(Z,()=>U.current),I.useEffect(()=>{const le=U.current;if(!le)return;const me=se=>{var ie,W;return((ie=se.detail)==null?void 0:ie.value)??((W=se.target)==null?void 0:W.value)??""},Q=se=>{$==null||$(me(se))},oe=se=>{const ie=me(se);G==null||G(ie),re==null||re(ie)};return le.addEventListener("input",Q),le.addEventListener("change",oe),()=>{le.removeEventListener("input",Q),le.removeEventListener("change",oe)}},[G,$,re]),ev(()=>{const le=U.current;if(!le)return;const me=(oe,se)=>{const ie=le.getAttribute(oe);if(se==null){ie!=null&&le.removeAttribute(oe);return}ie!==se&&le.setAttribute(oe,se)},Q=(oe,se)=>{se?le.hasAttribute(oe)||le.setAttribute(oe,""):le.hasAttribute(oe)&&le.removeAttribute(oe)};me("value",f!=null?String(f):null),Q("disabled",h),Q("loading",i),Q("required",b),Q("headless",y),Q("invalid",S),me("placeholder",s||null),me("name",a||null),me("label",T||null),me("description",p||null),me("error",A||null),me("size",P&&P!=="md"&&P!=="2"?P:null),me("variant",F&&F!=="classic"?F:null),me("tone",w&&w!=="default"?w:null),me("density",v&&v!=="default"?v:null),me("shape",c&&c!=="rounded"?c:null),me("elevation",C&&C!=="low"?C:null),me("radius",_?String(_):null),Q("option-border",D),Q("show-check",E),me("check-placement",E?B||"end":null),me("validation",M&&M!=="none"?M:null)},[f,h,i,b,S,y,s,a,T,p,A,P,F,w,v,c,C,_,D,E,B,M]),H.default.createElement("ui-select",{ref:U,...K},u)});sf.displayName="Select";const tv=typeof window<"u"?I.useLayoutEffect:I.useEffect,af=H.default.forwardRef(function({children:u,value:f,valueStart:h,valueEnd:i,min:b,max:S,step:y,range:s,disabled:a,headless:T,orientation:p,size:A,variant:P,tone:F,showValue:w,format:v,label:c,description:C,marks:_,name:D,nameStart:E,nameEnd:B,onInput:M,onChange:G,onValueChange:$,...re},K){const Z=I.useRef(null);return I.useImperativeHandle(K,()=>Z.current),I.useEffect(()=>{const U=Z.current;if(!U)return;const le=Q=>{const oe=Q.detail;oe&&(M==null||M(Number(oe.value)),$==null||$(oe))},me=Q=>{const oe=Q.detail;oe&&(G==null||G(Number(oe.value)),$==null||$(oe))};return U.addEventListener("input",le),U.addEventListener("change",me),()=>{U.removeEventListener("input",le),U.removeEventListener("change",me)}},[M,G,$]),tv(()=>{const U=Z.current;if(!U)return;const le=(Q,oe)=>{const se=U.getAttribute(Q);if(oe==null){se!=null&&U.removeAttribute(Q);return}se!==oe&&U.setAttribute(Q,oe)},me=(Q,oe,se)=>{if(oe==null){se!==void 0&&se===!1&&le(Q,null);return}oe?le(Q,""):le(Q,null)};if(le("value",typeof f=="number"&&Number.isFinite(f)?String(f):null),le("value-start",typeof h=="number"&&Number.isFinite(h)?String(h):null),le("value-end",typeof i=="number"&&Number.isFinite(i)?String(i):null),le("min",typeof b=="number"&&Number.isFinite(b)?String(b):null),le("max",typeof S=="number"&&Number.isFinite(S)?String(S):null),le("step",typeof y=="number"&&Number.isFinite(y)?String(y):null),me("range",s),me("disabled",a),me("headless",T),le("orientation",p&&p!=="horizontal"?p:null),le("size",A&&A!=="md"?A:null),le("variant",P&&P!=="default"?P:null),le("tone",F&&F!=="brand"?F:null),typeof w=="boolean"?le("show-value",w?"true":"false"):le("show-value",null),le("format",v||null),le("label",c||null),le("description",C||null),le("name",D||null),le("name-start",E||null),le("name-end",B||null),_&&_.length)try{le("marks",JSON.stringify(_))}catch{le("marks",null)}else le("marks",null)},[f,h,i,b,S,y,s,a,T,p,A,P,F,w,v,c,C,_,D,E,B]),H.default.createElement("ui-slider",{ref:Z,...re},u)});af.displayName="Slider";const rv=typeof window<"u"?I.useLayoutEffect:I.useEffect;function nv(R){const{count:u,width:f,height:h,radius:i,gap:b,duration:S,variant:y,animation:s,density:a,tone:T,animated:p,headless:A,...P}=R,F=I.useRef(null);return rv(()=>{const w=F.current;w&&(typeof u=="number"&&Number.isFinite(u)?w.setAttribute("count",String(u)):w.removeAttribute("count"),f?w.setAttribute("width",f):w.removeAttribute("width"),h?w.setAttribute("height",h):w.removeAttribute("height"),i?w.setAttribute("radius",i):w.removeAttribute("radius"),b?w.setAttribute("gap",b):w.removeAttribute("gap"),S?w.setAttribute("duration",S):w.removeAttribute("duration"),y?w.setAttribute("variant",y):w.removeAttribute("variant"),s&&s!=="none"?w.setAttribute("animation",s):s==="none"?w.setAttribute("animation","none"):w.removeAttribute("animation"),a&&a!=="default"?w.setAttribute("density",a):w.removeAttribute("density"),T&&T!=="default"?w.setAttribute("tone",T):w.removeAttribute("tone"),p?w.setAttribute("animated",""):w.removeAttribute("animated"),A?w.setAttribute("headless",""):w.removeAttribute("headless"))},[u,f,h,i,b,S,y,s,a,T,p,A]),H.default.createElement("ui-skeleton",{ref:F,...P})}Object.defineProperty(exports,"toastAdvanced",{enumerable:!0,get:()=>at.toastAdvanced});Object.defineProperty(exports,"toastLegacy",{enumerable:!0,get:()=>mf.default});Object.defineProperty(exports,"toastPro",{enumerable:!0,get:()=>at.toastPro});exports.Accordion=Kc;exports.AccordionItem=qc;exports.AccordionPanel=tf;exports.AccordionTrigger=ef;exports.Alert=yf;exports.AlertActions=wf;exports.AlertDescription=Af;exports.AlertDialog=lf;exports.AlertDialogActions=Qp;exports.AlertDialogContent=Vp;exports.AlertDialogDescription=Zp;exports.AlertDialogIcon=Jp;exports.AlertDialogProvider=Kp;exports.AlertDialogTitle=Xp;exports.AlertIcon=gf;exports.AlertTitle=Ef;exports.Anchor=Dc;exports.AppHeader=Sc;exports.AppHeaderCenter=tp;exports.AppHeaderEnd=ip;exports.AppHeaderStart=ep;exports.AppHeaderSubtitle=np;exports.AppHeaderTitle=rp;exports.AspectRatio=Uc;exports.Avatar=Oc;exports.Badge=Bf;exports.BlockControls=sc;exports.Box=Nd;exports.Breadcrumb=wc;exports.Button=sa;exports.Calendar=Ta;exports.Card=Np;exports.CardDescription=Wp;exports.CardFooter=Op;exports.CardHeader=Up;exports.CardInset=jp;exports.CardMedia=$p;exports.CardTitle=zp;exports.Chart=zf;exports.Checkbox=Mc;exports.Collapsible=Vc;exports.Collection=Tc;exports.ColorPicker=La;exports.Combobox=Hf;exports.Command=ac;exports.CommandPalette=cc;exports.Container=$d;exports.ContextMenu=Pd;exports.ControlGroup=Aa;exports.DataTable=jf;exports.DateField=Da;exports.DatePicker=Ia;exports.DateRangePicker=Ca;exports.DateRangeTimePicker=$a;exports.DateTimePicker=ja;exports.Description=ga;exports.Dialog=ec;exports.DialogProvider=dd;exports.DirectionProvider=rf;exports.DismissableLayer=Cc;exports.Drawer=xc;exports.Dropdown=ca;exports.Dropzone=ba;exports.EmptyState=Uf;exports.Field=Df;exports.FieldError=Ea;exports.Fieldset=wa;exports.FileUpload=ha;exports.Flex=Ud;exports.FloatingToolbar=Td;exports.FocusScope=Pc;exports.Form=dc;exports.Gantt=za;exports.Grid=Od;exports.HoverCard=nf;exports.Icon=oc;exports.InlineEdit=Ua;exports.Input=fa;exports.Label=of;exports.Layout=kc;exports.Listbox=Lc;exports.Menu=ic;exports.MenuItem=hd;exports.MenuSectionLabel=yd;exports.MenuSeparator=bd;exports.Menubar=cd;exports.Meter=zc;exports.MultiSelect=_a;exports.NavigationMenu=sd;exports.NavigationMenuContent=Qa;exports.NavigationMenuIndicator=Ka;exports.NavigationMenuItem=Xa;exports.NavigationMenuLink=Va;exports.NavigationMenuList=Ja;exports.NavigationMenuRoot=Hs;exports.NavigationMenuTrigger=Za;exports.NavigationMenuViewport=qa;exports.NumberField=Ha;exports.OTPInput=If;exports.Pagination=Qc;exports.Panel=bc;exports.PanelGroup=hc;exports.PasswordField=da;exports.PinInput=Us;exports.PluginPanel=fc;exports.Popover=rc;exports.Portal=Wc;exports.Positioner=Fc;exports.Presence=jc;exports.Progress=$c;exports.QuickActions=Ya;exports.RadioGroup=Hc;exports.RovingFocusGroup=Ic;exports.ScrollArea=Gc;exports.Section=pc;exports.Select=sf;exports.SelectionPopup=Dd;exports.Separator=Yc;exports.Sidebar=Zr;exports.SidebarContent=Xs;exports.SidebarFooter=Js;exports.SidebarGroup=Uu;exports.SidebarHeader=zs;exports.SidebarItem=Ou;exports.SidebarPromo=Ys;exports.SidebarSearch=Ws;exports.SidebarSearchInput=Gs;exports.Skeleton=nv;exports.Slider=af;exports.Slot=Jc;exports.SplitButton=Ba;exports.Splitter=yc;exports.Stepper=Wa;exports.Switch=_c;exports.Table=Of;exports.Tabs=nc;exports.TagsInput=pa;exports.Textarea=ya;exports.ThemeProvider=ap;exports.TimeField=Ma;exports.TimePicker=Oa;exports.Timeline=Ra;exports.Toast=uc;exports.ToastAPI=Ad;exports.ToastProvider=wd;exports.Toggle=Bc;exports.ToggleGroup=Nc;exports.Toolbar=Xc;exports.Tooltip=aa;exports.TransferList=Na;exports.Tree=Ec;exports.TreeItem=Ac;exports.VisuallyHidden=Zc;exports.Wizard=Ga;exports.toast=Ed;exports.toastApi=Os;exports.useAlertDialog=qp;exports.useDialog=pd;exports.useFloating=Bd;exports.useForm=_d;exports.useTheme=cp;exports.useToast=Sd;
|