@primereact/core 11.0.0 → 11.1.0
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 +21 -26
- package/base/index.mjs +1 -1
- package/config/index.mjs +1 -1
- package/locale/defaultLocale.d.ts +1 -0
- package/locale/index.d.ts +1 -1
- package/locale/index.mjs +1 -1
- package/package.json +3 -3
- package/theme/index.mjs +1 -1
- package/umd/index.js +3 -3
- package/use-style/index.mjs +1 -1
- package/utils/index.d.ts +2 -1
- package/utils/index.mjs +1 -1
- package/utils/overlayEventBus.d.ts +1 -5
- package/utils/overlayOwner.d.ts +20 -0
- package/utils/useOverlayClickEmitter.d.ts +10 -0
- package/utils/ConnectedOverlayScrollHandler.d.ts +0 -10
package/README.md
CHANGED
|
@@ -1,43 +1,38 @@
|
|
|
1
|
-
|
|
1
|
+
[](https://primereact.dev)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# @primereact/core
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Shared infrastructure for PrimeReact: global configuration, theming, locale, Pass Through, the stylesheet runtime and the base component system every PrimeReact component is built on.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
## Base component system
|
|
10
|
-
|
|
11
|
-
`useBase()` and `useComponent()` are the foundation every PrimeReact component is built on. They handle prop resolution, attribute selection, style injection, and PT application so component authors don't repeat that logic.
|
|
12
|
-
|
|
13
|
-
## Pass Through (PT)
|
|
14
|
-
|
|
15
|
-
The PT system lets consumers override any internal DOM attribute or class on any element inside a component without forking it. PT values can be objects or functions receiving the current instance and state.
|
|
16
|
-
|
|
17
|
-
## Styling
|
|
18
|
-
|
|
19
|
-
Dynamic stylesheet loading and `useStyle()` for injecting scoped CSS at runtime. Integrates with `@primeuix/styled` for design token resolution.
|
|
20
|
-
|
|
21
|
-
## Utilities
|
|
22
|
-
|
|
23
|
-
Locale management, license verification, overlay positioning, DnD helpers, and re-exports of common utilities from `@primeuix/utils`.
|
|
7
|
+
The package is installed indirectly, since `primereact`, `@primereact/ui` and `@primereact/headless` all depend on it. It is imported directly for one thing above all: `PrimeReactProvider`.
|
|
24
8
|
|
|
25
9
|
## Usage
|
|
26
10
|
|
|
11
|
+
Every PrimeReact mode wraps the application once with `PrimeReactProvider`. What it takes depends on the mode: a theme preset and a [PrimeUI license](https://primeui.dev/pricing) key for styled components, nothing at all for primitives and headless hooks.
|
|
12
|
+
|
|
27
13
|
```tsx
|
|
14
|
+
'use client';
|
|
28
15
|
import { PrimeReactProvider } from '@primereact/core';
|
|
29
16
|
import Aura from '@primeuix/themes/aura';
|
|
30
17
|
|
|
31
|
-
export
|
|
32
|
-
return
|
|
18
|
+
export function Providers({ children }: { children: React.ReactNode }) {
|
|
19
|
+
return (
|
|
20
|
+
<PrimeReactProvider theme={{ preset: Aura }} license="PrimeUI-Commercial-Key...">
|
|
21
|
+
{children}
|
|
22
|
+
</PrimeReactProvider>
|
|
23
|
+
);
|
|
33
24
|
}
|
|
34
25
|
```
|
|
35
26
|
|
|
36
|
-
|
|
37
|
-
import { usePrimeReact } from '@primereact/core';
|
|
27
|
+
The resolved configuration is readable anywhere below the provider through `usePrimeReact`, `useLocale` and `useTheme`.
|
|
38
28
|
|
|
39
|
-
|
|
40
|
-
|
|
29
|
+
Server-side rendering needs a `PrimeReactStyleSheet` passed to the provider. The [installation guides](https://primereact.dev/docs/styled/guides/installation) cover the per-framework setup.
|
|
30
|
+
|
|
31
|
+
## Documentation
|
|
32
|
+
|
|
33
|
+
- [Installation](https://primereact.dev/docs/styled/guides/installation)
|
|
34
|
+
- [Pass Through](https://primereact.dev/docs/styled/guides/theming/unstyled)
|
|
35
|
+
- [MCP server](https://www.npmjs.com/package/@primereact/mcp)
|
|
41
36
|
|
|
42
37
|
## License
|
|
43
38
|
|
package/base/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{usePrimeReact as
|
|
1
|
+
import{usePrimeReact as b}from"@primereact/core/config";import{useAttrSelector as k,useId as C,useProps as S}from"@primereact/hooks";import{getKeyValue as D,mergeProps as K,resolve as I,toKebabCase as L}from"@primeuix/utils";import*as e from"react";var v=(s="UnknownBase",y)=>{let p=b(),{type:f,inProps:t,defaultProps:g,setup:x}=y||{},i=C(t?.id),d=k("pc_"),[w,B]=e.useMemo(()=>s.toLowerCase().split("."),[s]),m=e.useRef(null),R=e.useRef(void 0),n=e.useMemo(()=>({ref:m,elementRef:R,id:i,name:s,type:f,scope:w,part:L(B),inProps:t,$attrSelector:d,$primereact:p}),[i,t,d,p,s,f]),o=p.config?.defaults,c=e.useMemo(()=>{if(!o)return;let M=o[s]??D(o,s)??o[s.replace(".","")]??o[s.toLowerCase()];return I(M,n)?.props},[o,s,n]),E=e.useMemo(()=>c?K(c,t??{}):t,[c,t]),{props:l,attrs:P}=S(g,E),a=e.useMemo(()=>({...n,props:l,attrs:P}),[n,l,P]),r=I(x,a),u=e.useMemo(()=>({state:{},$computedSetup:r,...r,...a,elementRef:r?.elementRef??R}),[r,a]);return e.useImperativeHandle(m,()=>u,[u]),u};export{v as useBase};
|
package/config/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import{showInvalidLicenseBanner as
|
|
3
|
+
import{showInvalidLicenseBanner as h}from"@primereact/core/license";import{LocaleProvider as T}from"@primereact/core/locale";import{PassThroughProvider as E}from"@primereact/core/passthrough";import{ThemeProvider as x}from"@primereact/core/theme";import{useProps as A}from"@primereact/hooks";import{registerLicense as _,verifyLicense as v}from"@primeui/license-manager";import{resolve as S}from"@primeuix/utils";import*as r from"react";import{FilterMatchMode as t}from"@primereact/core/api";var l={csp:{nonce:void 0},defaults:void 0,filterMatchModeOptions:{text:[t.STARTS_WITH,t.CONTAINS,t.NOT_CONTAINS,t.ENDS_WITH,t.EQUALS,t.NOT_EQUALS],numeric:[t.EQUALS,t.NOT_EQUALS,t.LESS_THAN,t.LESS_THAN_OR_EQUAL_TO,t.GREATER_THAN,t.GREATER_THAN_OR_EQUAL_TO],date:[t.DATE_IS,t.DATE_IS_NOT,t.DATE_BEFORE,t.DATE_AFTER]},inputVariant:void 0,locale:"en",locales:void 0,pt:void 0,ptOptions:{mergeSections:!0,mergeProps:!1},ripple:!1,theme:void 0,stylesheet:void 0,unstyled:!1,zIndex:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100},license:void 0};var C="2026-08-05",c=r.createContext(void 0);function W(i={}){let{props:e,attrs:n}=A(l,i),[s,f]=r.useState(e.inputVariant),[p,u]=r.useState(e.defaults),[m,R]=r.useState(e.zIndex);r.useEffect(()=>{e.license&&_({primeui:e.license}),v("primeui",{releaseDate:C}).then(d=>{d.valid||(console.warn(`[PrimeUI] ${d.message}`),h())})},[]);let a=r.useMemo(()=>({csp:e.csp,filterMatchModeOptions:e.filterMatchModeOptions,ripple:e.ripple,unstyled:e.unstyled,inputVariant:s,setInputVariant:f,defaults:p,setDefaults:u,zIndex:m,setZIndex:R}),[e.csp,e.filterMatchModeOptions,e.ripple,e.unstyled,s,p,m]),P=r.useMemo(()=>S(n.children,a),[n.children,a]);return r.createElement(c.Provider,{value:a},r.createElement(T,{lang:e.locale,locales:e.locales},r.createElement(E,{value:e.pt,...e.ptOptions},r.createElement(x,{preset:e.theme?.preset,stylesheet:e.stylesheet,...e.theme?.options},P))))}import{LocaleContext as O}from"@primereact/core/locale";import{PassThroughContext as L}from"@primereact/core/passthrough";import{ThemeContext as y}from"@primereact/core/theme";import*as o from"react";function Z(){let i=o.useContext(c),e=o.useContext(O),n=o.useContext(L),s=o.useContext(y);if(i===void 0)throw new Error("[PrimeReact] PrimeReactProvider not found. Wrap your application in <PrimeReactProvider> before using PrimeReact components.");return o.useMemo(()=>({config:i,locale:e,passthrough:n,theme:s}),[i,e,n,s])}export{c as PrimeReactContext,W as PrimeReactProvider,l as defaultConfigProps,Z as usePrimeReact};
|
package/locale/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { $l, defineLocale, LocaleService, updateLocale } from '@primeuix/locale';
|
|
1
|
+
export { $l, defineLocale, Locale, LocaleService, updateLocale } from '@primeuix/locale';
|
|
2
2
|
export * from './defaultLocale';
|
|
3
3
|
export * from './Locale.context';
|
|
4
4
|
export * from './Locale.props';
|
package/locale/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import{$l as q,defineLocale as H,LocaleService as
|
|
3
|
+
import{$l as q,defineLocale as H,Locale as $,LocaleService as j,updateLocale as z}from"@primeuix/locale";import{$t as M,defineLocale as x,Locale as y}from"@primeuix/locale";var R={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",completed:"Completed",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",today:"Today",weekHeader:"Wk",firstDayOfWeek:0,showMonthAfterYear:!1,dateFormat:"mm/dd/yy",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyFilterMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",fileChosenMessage:"{0} files",noFileChosenMessage:"No file chosen",emptyMessage:"No available options",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",toggleSidebar:"Toggle Sidebar",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"Page {page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List"}},g=()=>{y.get("en")||x("en",R)};g();var f=(t,...e)=>(g(),M(t,...e));import{useProps as P}from"@primereact/hooks";import{defineLocale as S,Locale as n,LocaleService as h}from"@primeuix/locale";import{resolve as w}from"@primeuix/utils";import*as o from"react";var L={lang:"en",locales:void 0};var u=o.createContext(void 0),E=(t={})=>{let{props:e,attrs:s}=P(L,t),[l,d]=o.useState(0),m=o.useRef(void 0);e.locales&&Object.entries(e.locales).forEach(([a,r])=>{n.get(a)||S(a,r)}),e.lang&&e.lang!==m.current&&(m.current=e.lang,e.lang!==n.lang&&n.use(e.lang)),o.useEffect(()=>{let a=()=>d(r=>r+1);return h.on("locale:change",a),d(r=>r+1),()=>{h.off("locale:change",a)}},[]);let i=o.useMemo(()=>({lang:n.lang,version:l}),[l]),v=o.useMemo(()=>w(s.children,i),[s.children,i]);return o.createElement(u.Provider,{value:i},v)};import{Locale as p}from"@primeuix/locale";import*as c from"react";function W(){let t=c.useContext(u),e=t?.lang??p.lang;return c.useMemo(()=>({lang:e,messages:p.get(e)??p.get("en"),t:(s,...l)=>String(f(s,...l))}),[e,t?.version])}export{q as $l,f as $t,$ as Locale,u as LocaleContext,E as LocaleProvider,j as LocaleService,L as defaultLocaleProps,H as defineLocale,R as en,z as updateLocale,W as useLocale};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primereact/core",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"author": "PrimeTek Informatics",
|
|
5
5
|
"description": "Core components for PrimeReact.",
|
|
6
6
|
"homepage": "https://primereact.dev",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"@primeuix/utils": "^0.8.0",
|
|
34
34
|
"@primeuix/motion": "^1.0.0",
|
|
35
35
|
"@primeuix/locale": "^0.1.0",
|
|
36
|
-
"@primereact/
|
|
37
|
-
"@primereact/
|
|
36
|
+
"@primereact/hooks": "11.1.0",
|
|
37
|
+
"@primereact/types": "11.1.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"react": ">=19.0.0"
|
package/theme/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import{
|
|
3
|
+
import{$dt as a}from"@primeuix/styled";var c={name:"icon",classes:{root:({props:e})=>["p-icon",{"p-icon-spin":e.spin,"p-icon-flip-horizontal":e.flip==="horizontal","p-icon-flip-vertical":e.flip==="vertical"}]},inlineStyles:{root:({props:e})=>({...e.size?{[a("icon.size").name]:e.size}:void 0,...e.rotate?{[a("icon.rotate").name]:`${e.rotate}deg`}:void 0})}};import{addStylePreloadsToStyleSheet as u,StylePreloadRegistry as r,upsertStylePreloadsToHead as y}from"@primereact/core/utils";import{useProps as T}from"@primereact/hooks";import{css as x,Theme as P}from"@primeuix/styled";import{isClient as f,isNotEmpty as S,minifyCSS as C,resolve as v}from"@primeuix/utils";import*as t from"react";var l={preset:void 0,prefix:"p",darkModeSelector:"system",cssLayer:!1,cssVariables:!0,scoped:!1,stylesheet:void 0};var s=t.createContext(null),O=(e={})=>{let{props:h}=T(l,e),{stylesheet:i,preset:n,...m}=h,p={preset:n,stylesheet:i,...m};P.setTheme({preset:n,options:m});let o=t.useMemo(()=>C(x`${c.css}`)||"",[]);return t.useMemo(()=>{S(o)&&r.register({id:"icon",css:o,phase:"both",priority:10})},[o]),f()||u(i,r.getForSSR()),t.useInsertionEffect(()=>{f()&&y(r.getForClient())},[]),t.createElement(s.Provider,{value:p},v(e.children,p))};import*as d from"react";function I(){let e=d.useContext(s);if(e===void 0)throw new Error("Context must be used within a ThemeProvider");return e}export{s as ThemeContext,O as ThemeProvider,l as defaultThemeProps,I as useTheme};
|
package/umd/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
"use strict";var PrimeReact;(PrimeReact||={}).Core=(()=>{var Ni=Object.create;var yn=Object.defineProperty;var $i=Object.getOwnPropertyDescriptor;var Hi=Object.getOwnPropertyNames;var ji=Object.getPrototypeOf,Bi=Object.prototype.hasOwnProperty;var Gn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ui=(e,t)=>{for(var n in t)yn(e,n,{get:t[n],enumerable:!0})},To=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Hi(t))!Bi.call(e,o)&&o!==n&&yn(e,o,{get:()=>t[o],enumerable:!(r=$i(t,o))||r.enumerable});return e};var ne=(e,t,n)=>(n=e!=null?Ni(ji(e)):{},To(t||!e||!e.__esModule?yn(n,"default",{value:e,enumerable:!0}):n,e)),Fi=e=>To(yn({},"__esModule",{value:!0}),e);var Go=Gn(V=>{"use strict";var sr=Symbol.for("react.transitional.element"),Qi=Symbol.for("react.portal"),Ji=Symbol.for("react.fragment"),ea=Symbol.for("react.strict_mode"),ta=Symbol.for("react.profiler"),na=Symbol.for("react.consumer"),ra=Symbol.for("react.context"),oa=Symbol.for("react.forward_ref"),sa=Symbol.for("react.suspense"),ia=Symbol.for("react.memo"),Vo=Symbol.for("react.lazy"),aa=Symbol.for("react.activity"),jo=Symbol.iterator;function la(e){return e===null||typeof e!="object"?null:(e=jo&&e[jo]||e["@@iterator"],typeof e=="function"?e:null)}var Wo={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zo=Object.assign,Ko={};function $t(e,t,n){this.props=e,this.context=t,this.refs=Ko,this.updater=n||Wo}$t.prototype.isReactComponent={};$t.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};$t.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qo(){}qo.prototype=$t.prototype;function ir(e,t,n){this.props=e,this.context=t,this.refs=Ko,this.updater=n||Wo}var ar=ir.prototype=new qo;ar.constructor=ir;zo(ar,$t.prototype);ar.isPureReactComponent=!0;var Bo=Array.isArray;function or(){}var ue={H:null,A:null,T:null,S:null},Yo=Object.prototype.hasOwnProperty;function lr(e,t,n){var r=n.ref;return{$$typeof:sr,type:e,key:t,ref:r!==void 0?r:null,props:n}}function ca(e,t){return lr(e.type,t,e.props)}function cr(e){return typeof e=="object"&&e!==null&&e.$$typeof===sr}function ua(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Uo=/\/+/g;function rr(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ua(""+e.key):t.toString(36)}function fa(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(or,or):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Nt(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(s){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case sr:case Qi:a=!0;break;case Vo:return a=e._init,Nt(a(e._payload),t,n,r,o)}}if(a)return o=o(e),a=r===""?"."+rr(e,0):r,Bo(o)?(n="",a!=null&&(n=a.replace(Uo,"$&/")+"/"),Nt(o,t,n,"",function(u){return u})):o!=null&&(cr(o)&&(o=ca(o,n+(o.key==null||e&&e.key===o.key?"":(""+o.key).replace(Uo,"$&/")+"/")+a)),t.push(o)),1;a=0;var l=r===""?".":r+":";if(Bo(e))for(var c=0;c<e.length;c++)r=e[c],s=l+rr(r,c),a+=Nt(r,t,n,s,o);else if(c=la(e),typeof c=="function")for(e=c.call(e),c=0;!(r=e.next()).done;)r=r.value,s=l+rr(r,c++),a+=Nt(r,t,n,s,o);else if(s==="object"){if(typeof e.then=="function")return Nt(fa(e),t,n,r,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return a}function bn(e,t,n){if(e==null)return e;var r=[],o=0;return Nt(e,r,"","",function(s){return t.call(n,s,o++)}),r}function da(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Fo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},pa={map:bn,forEach:function(e,t,n){bn(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return bn(e,function(){t++}),t},toArray:function(e){return bn(e,function(t){return t})||[]},only:function(e){if(!cr(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};V.Activity=aa;V.Children=pa;V.Component=$t;V.Fragment=Ji;V.Profiler=ta;V.PureComponent=ir;V.StrictMode=ea;V.Suspense=sa;V.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ue;V.__COMPILER_RUNTIME={__proto__:null,c:function(e){return ue.H.useMemoCache(e)}};V.cache=function(e){return function(){return e.apply(null,arguments)}};V.cacheSignal=function(){return null};V.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=zo({},e.props),o=e.key;if(t!=null)for(s in t.key!==void 0&&(o=""+t.key),t)!Yo.call(t,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&t.ref===void 0||(r[s]=t[s]);var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){for(var a=Array(s),l=0;l<s;l++)a[l]=arguments[l+2];r.children=a}return lr(e.type,o,r)};V.createContext=function(e){return e={$$typeof:ra,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:na,_context:e},e};V.createElement=function(e,t,n){var r,o={},s=null;if(t!=null)for(r in t.key!==void 0&&(s=""+t.key),t)Yo.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return lr(e,s,o)};V.createRef=function(){return{current:null}};V.forwardRef=function(e){return{$$typeof:oa,render:e}};V.isValidElement=cr;V.lazy=function(e){return{$$typeof:Vo,_payload:{_status:-1,_result:e},_init:da}};V.memo=function(e,t){return{$$typeof:ia,type:e,compare:t===void 0?null:t}};V.startTransition=function(e){var t=ue.T,n={};ue.T=n;try{var r=e(),o=ue.S;o!==null&&o(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(or,Fo)}catch(s){Fo(s)}finally{t!==null&&n.types!==null&&(t.types=n.types),ue.T=t}};V.unstable_useCacheRefresh=function(){return ue.H.useCacheRefresh()};V.use=function(e){return ue.H.use(e)};V.useActionState=function(e,t,n){return ue.H.useActionState(e,t,n)};V.useCallback=function(e,t){return ue.H.useCallback(e,t)};V.useContext=function(e){return ue.H.useContext(e)};V.useDebugValue=function(){};V.useDeferredValue=function(e,t){return ue.H.useDeferredValue(e,t)};V.useEffect=function(e,t){return ue.H.useEffect(e,t)};V.useEffectEvent=function(e){return ue.H.useEffectEvent(e)};V.useId=function(){return ue.H.useId()};V.useImperativeHandle=function(e,t,n){return ue.H.useImperativeHandle(e,t,n)};V.useInsertionEffect=function(e,t){return ue.H.useInsertionEffect(e,t)};V.useLayoutEffect=function(e,t){return ue.H.useLayoutEffect(e,t)};V.useMemo=function(e,t){return ue.H.useMemo(e,t)};V.useOptimistic=function(e,t){return ue.H.useOptimistic(e,t)};V.useReducer=function(e,t,n){return ue.H.useReducer(e,t,n)};V.useRef=function(e){return ue.H.useRef(e)};V.useState=function(e){return ue.H.useState(e)};V.useSyncExternalStore=function(e,t,n){return ue.H.useSyncExternalStore(e,t,n)};V.useTransition=function(){return ue.H.useTransition()};V.version="19.2.7"});var Xo=Gn((N,xn)=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){function e(i,d){Object.defineProperty(r.prototype,i,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",d[0],d[1])}})}function t(i){return i===null||typeof i!="object"?null:(i=bt&&i[bt]||i["@@iterator"],typeof i=="function"?i:null)}function n(i,d){i=(i=i.constructor)&&(i.displayName||i.name)||"ReactClass";var E=i+"."+d;Be[E]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",d,i),Be[E]=!0)}function r(i,d,E){this.props=i,this.context=d,this.refs=xt,this.updater=E||_t}function o(){}function s(i,d,E){this.props=i,this.context=d,this.refs=xt,this.updater=E||_t}function a(){}function l(i){return""+i}function c(i){try{l(i);var d=!1}catch{d=!0}if(d){d=console;var E=d.error,P=typeof Symbol=="function"&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||"Object";return E.call(d,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",P),l(i)}}function u(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===Jt?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case oe:return"Fragment";case et:return"Profiler";case Me:return"StrictMode";case at:return"Suspense";case lt:return"SuspenseList";case Ne:return"Activity"}if(typeof i=="object")switch(typeof i.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),i.$$typeof){case me:return"Portal";case tt:return i.displayName||"Context";case We:return(i._context.displayName||"Context")+".Consumer";case ze:var d=i.render;return i=i.displayName,i||(i=d.displayName||d.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case De:return d=i.displayName||null,d!==null?d:u(i.type)||"Memo";case je:d=i._payload,i=i._init;try{return u(i(d))}catch{}}return null}function f(i){if(i===oe)return"<>";if(typeof i=="object"&&i!==null&&i.$$typeof===je)return"<...>";try{var d=u(i);return d?"<"+d+">":"<...>"}catch{return"<...>"}}function p(){var i=g.A;return i===null?null:i.getOwner()}function h(){return Error("react-stack-top-frame")}function m(i){if(x.call(i,"key")){var d=Object.getOwnPropertyDescriptor(i,"key").get;if(d&&d.isReactWarning)return!1}return i.key!==void 0}function v(i,d){function E(){I||(I=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",d))}E.isReactWarning=!0,Object.defineProperty(i,"key",{get:E,configurable:!0})}function y(){var i=u(this.type);return L[i]||(L[i]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),i=this.props.ref,i!==void 0?i:null}function b(i,d,E,P,T,B){var F=E.ref;return i={$$typeof:ve,type:i,key:d,props:E,_owner:P},(F!==void 0?F:null)!==null?Object.defineProperty(i,"ref",{enumerable:!1,get:y}):Object.defineProperty(i,"ref",{enumerable:!1,value:null}),i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(i,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(i,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:T}),Object.defineProperty(i,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i}function C(i,d){return d=b(i.type,d,i.props,i._owner,i._debugStack,i._debugTask),i._store&&(d._store.validated=i._store.validated),d}function S(i){R(i)?i._store&&(i._store.validated=1):typeof i=="object"&&i!==null&&i.$$typeof===je&&(i._payload.status==="fulfilled"?R(i._payload.value)&&i._payload.value._store&&(i._payload.value._store.validated=1):i._store&&(i._store.validated=1))}function R(i){return typeof i=="object"&&i!==null&&i.$$typeof===ve}function O(i){var d={"=":"=0",":":"=2"};return"$"+i.replace(/[=:]/g,function(E){return d[E]})}function _(i,d){return typeof i=="object"&&i!==null&&i.key!=null?(c(i.key),O(""+i.key)):d.toString(36)}function $(i){switch(i.status){case"fulfilled":return i.value;case"rejected":throw i.reason;default:switch(typeof i.status=="string"?i.then(a,a):(i.status="pending",i.then(function(d){i.status==="pending"&&(i.status="fulfilled",i.value=d)},function(d){i.status==="pending"&&(i.status="rejected",i.reason=d)})),i.status){case"fulfilled":return i.value;case"rejected":throw i.reason}}throw i}function W(i,d,E,P,T){var B=typeof i;(B==="undefined"||B==="boolean")&&(i=null);var F=!1;if(i===null)F=!0;else switch(B){case"bigint":case"string":case"number":F=!0;break;case"object":switch(i.$$typeof){case ve:case me:F=!0;break;case je:return F=i._init,W(F(i._payload),d,E,P,T)}}if(F){F=i,T=T(F);var ie=P===""?"."+_(F,0):P;return It(T)?(E="",ie!=null&&(E=ie.replace(se,"$&/")+"/"),W(T,d,E,"",function(ct){return ct})):T!=null&&(R(T)&&(T.key!=null&&(F&&F.key===T.key||c(T.key)),E=C(T,E+(T.key==null||F&&F.key===T.key?"":(""+T.key).replace(se,"$&/")+"/")+ie),P!==""&&F!=null&&R(F)&&F.key==null&&F._store&&!F._store.validated&&(E._store.validated=2),T=E),d.push(T)),1}if(F=0,ie=P===""?".":P+":",It(i))for(var Y=0;Y<i.length;Y++)P=i[Y],B=ie+_(P,Y),F+=W(P,d,E,B,T);else if(Y=t(i),typeof Y=="function")for(Y===i.entries&&(re||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),re=!0),i=Y.call(i),Y=0;!(P=i.next()).done;)P=P.value,B=ie+_(P,Y++),F+=W(P,d,E,B,T);else if(B==="object"){if(typeof i.then=="function")return W($(i),d,E,P,T);throw d=String(i),Error("Objects are not valid as a React child (found: "+(d==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":d)+"). If you meant to render a collection of children, use an array instead.")}return F}function H(i,d,E){if(i==null)return i;var P=[],T=0;return W(i,P,"","",function(B){return d.call(E,B,T++)}),P}function Z(i){if(i._status===-1){var d=i._ioInfo;d!=null&&(d.start=d.end=performance.now()),d=i._result;var E=d();if(E.then(function(T){if(i._status===0||i._status===-1){i._status=1,i._result=T;var B=i._ioInfo;B!=null&&(B.end=performance.now()),E.status===void 0&&(E.status="fulfilled",E.value=T)}},function(T){if(i._status===0||i._status===-1){i._status=2,i._result=T;var B=i._ioInfo;B!=null&&(B.end=performance.now()),E.status===void 0&&(E.status="rejected",E.reason=T)}}),d=i._ioInfo,d!=null){d.value=E;var P=E.displayName;typeof P=="string"&&(d.name=P)}i._status===-1&&(i._status=0,i._result=E)}if(i._status===1)return d=i._result,d===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
3
|
+
"use strict";var PrimeReact;(PrimeReact||={}).Core=(()=>{var Hi=Object.create;var yn=Object.defineProperty;var ji=Object.getOwnPropertyDescriptor;var Ui=Object.getOwnPropertyNames;var Bi=Object.getPrototypeOf,Fi=Object.prototype.hasOwnProperty;var Gn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Vi=(e,t)=>{for(var n in t)yn(e,n,{get:t[n],enumerable:!0})},Oo=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ui(t))!Fi.call(e,o)&&o!==n&&yn(e,o,{get:()=>t[o],enumerable:!(r=ji(t,o))||r.enumerable});return e};var ee=(e,t,n)=>(n=e!=null?Hi(Bi(e)):{},Oo(t||!e||!e.__esModule?yn(n,"default",{value:e,enumerable:!0}):n,e)),Wi=e=>Oo(yn({},"__esModule",{value:!0}),e);var Zo=Gn(V=>{"use strict";var sr=Symbol.for("react.transitional.element"),Ji=Symbol.for("react.portal"),ea=Symbol.for("react.fragment"),ta=Symbol.for("react.strict_mode"),na=Symbol.for("react.profiler"),ra=Symbol.for("react.consumer"),oa=Symbol.for("react.context"),sa=Symbol.for("react.forward_ref"),ia=Symbol.for("react.suspense"),aa=Symbol.for("react.memo"),zo=Symbol.for("react.lazy"),la=Symbol.for("react.activity"),Bo=Symbol.iterator;function ca(e){return e===null||typeof e!="object"?null:(e=Bo&&e[Bo]||e["@@iterator"],typeof e=="function"?e:null)}var Ko={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},qo=Object.assign,Yo={};function $t(e,t,n){this.props=e,this.context=t,this.refs=Yo,this.updater=n||Ko}$t.prototype.isReactComponent={};$t.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};$t.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Go(){}Go.prototype=$t.prototype;function ir(e,t,n){this.props=e,this.context=t,this.refs=Yo,this.updater=n||Ko}var ar=ir.prototype=new Go;ar.constructor=ir;qo(ar,$t.prototype);ar.isPureReactComponent=!0;var Fo=Array.isArray;function or(){}var ue={H:null,A:null,T:null,S:null},Xo=Object.prototype.hasOwnProperty;function lr(e,t,n){var r=n.ref;return{$$typeof:sr,type:e,key:t,ref:r!==void 0?r:null,props:n}}function ua(e,t){return lr(e.type,t,e.props)}function cr(e){return typeof e=="object"&&e!==null&&e.$$typeof===sr}function fa(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Vo=/\/+/g;function rr(e,t){return typeof e=="object"&&e!==null&&e.key!=null?fa(""+e.key):t.toString(36)}function da(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(or,or):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Dt(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case sr:case Ji:a=!0;break;case zo:return a=e._init,Dt(a(e._payload),t,n,r,o)}}if(a)return o=o(e),a=r===""?"."+rr(e,0):r,Fo(o)?(n="",a!=null&&(n=a.replace(Vo,"$&/")+"/"),Dt(o,t,n,"",function(u){return u})):o!=null&&(cr(o)&&(o=ua(o,n+(o.key==null||e&&e.key===o.key?"":(""+o.key).replace(Vo,"$&/")+"/")+a)),t.push(o)),1;a=0;var l=r===""?".":r+":";if(Fo(e))for(var c=0;c<e.length;c++)r=e[c],i=l+rr(r,c),a+=Dt(r,t,n,i,o);else if(c=ca(e),typeof c=="function")for(e=c.call(e),c=0;!(r=e.next()).done;)r=r.value,i=l+rr(r,c++),a+=Dt(r,t,n,i,o);else if(i==="object"){if(typeof e.then=="function")return Dt(da(e),t,n,r,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return a}function bn(e,t,n){if(e==null)return e;var r=[],o=0;return Dt(e,r,"","",function(i){return t.call(n,i,o++)}),r}function pa(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Wo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ma={map:bn,forEach:function(e,t,n){bn(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return bn(e,function(){t++}),t},toArray:function(e){return bn(e,function(t){return t})||[]},only:function(e){if(!cr(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};V.Activity=la;V.Children=ma;V.Component=$t;V.Fragment=ea;V.Profiler=na;V.PureComponent=ir;V.StrictMode=ta;V.Suspense=ia;V.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ue;V.__COMPILER_RUNTIME={__proto__:null,c:function(e){return ue.H.useMemoCache(e)}};V.cache=function(e){return function(){return e.apply(null,arguments)}};V.cacheSignal=function(){return null};V.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=qo({},e.props),o=e.key;if(t!=null)for(i in t.key!==void 0&&(o=""+t.key),t)!Xo.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(r[i]=t[i]);var i=arguments.length-2;if(i===1)r.children=n;else if(1<i){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+2];r.children=a}return lr(e.type,o,r)};V.createContext=function(e){return e={$$typeof:oa,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:ra,_context:e},e};V.createElement=function(e,t,n){var r,o={},i=null;if(t!=null)for(r in t.key!==void 0&&(i=""+t.key),t)Xo.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return lr(e,i,o)};V.createRef=function(){return{current:null}};V.forwardRef=function(e){return{$$typeof:sa,render:e}};V.isValidElement=cr;V.lazy=function(e){return{$$typeof:zo,_payload:{_status:-1,_result:e},_init:pa}};V.memo=function(e,t){return{$$typeof:aa,type:e,compare:t===void 0?null:t}};V.startTransition=function(e){var t=ue.T,n={};ue.T=n;try{var r=e(),o=ue.S;o!==null&&o(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(or,Wo)}catch(i){Wo(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),ue.T=t}};V.unstable_useCacheRefresh=function(){return ue.H.useCacheRefresh()};V.use=function(e){return ue.H.use(e)};V.useActionState=function(e,t,n){return ue.H.useActionState(e,t,n)};V.useCallback=function(e,t){return ue.H.useCallback(e,t)};V.useContext=function(e){return ue.H.useContext(e)};V.useDebugValue=function(){};V.useDeferredValue=function(e,t){return ue.H.useDeferredValue(e,t)};V.useEffect=function(e,t){return ue.H.useEffect(e,t)};V.useEffectEvent=function(e){return ue.H.useEffectEvent(e)};V.useId=function(){return ue.H.useId()};V.useImperativeHandle=function(e,t,n){return ue.H.useImperativeHandle(e,t,n)};V.useInsertionEffect=function(e,t){return ue.H.useInsertionEffect(e,t)};V.useLayoutEffect=function(e,t){return ue.H.useLayoutEffect(e,t)};V.useMemo=function(e,t){return ue.H.useMemo(e,t)};V.useOptimistic=function(e,t){return ue.H.useOptimistic(e,t)};V.useReducer=function(e,t,n){return ue.H.useReducer(e,t,n)};V.useRef=function(e){return ue.H.useRef(e)};V.useState=function(e){return ue.H.useState(e)};V.useSyncExternalStore=function(e,t,n){return ue.H.useSyncExternalStore(e,t,n)};V.useTransition=function(){return ue.H.useTransition()};V.version="19.2.8"});var Qo=Gn(($,xn)=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){function e(s,d){Object.defineProperty(r.prototype,s,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",d[0],d[1])}})}function t(s){return s===null||typeof s!="object"?null:(s=bt&&s[bt]||s["@@iterator"],typeof s=="function"?s:null)}function n(s,d){s=(s=s.constructor)&&(s.displayName||s.name)||"ReactClass";var E=s+"."+d;Fe[E]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",d,s),Fe[E]=!0)}function r(s,d,E){this.props=s,this.context=d,this.refs=xt,this.updater=E||_t}function o(){}function i(s,d,E){this.props=s,this.context=d,this.refs=xt,this.updater=E||_t}function a(){}function l(s){return""+s}function c(s){try{l(s);var d=!1}catch{d=!0}if(d){d=console;var E=d.error,P=typeof Symbol=="function"&&Symbol.toStringTag&&s[Symbol.toStringTag]||s.constructor.name||"Object";return E.call(d,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",P),l(s)}}function u(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===Jt?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case oe:return"Fragment";case tt:return"Profiler";case Ne:return"StrictMode";case lt:return"Suspense";case ct:return"SuspenseList";case $e:return"Activity"}if(typeof s=="object")switch(typeof s.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),s.$$typeof){case me:return"Portal";case nt:return s.displayName||"Context";case We:return(s._context.displayName||"Context")+".Consumer";case ze:var d=s.render;return s=s.displayName,s||(s=d.displayName||d.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case De:return d=s.displayName||null,d!==null?d:u(s.type)||"Memo";case Be:d=s._payload,s=s._init;try{return u(s(d))}catch{}}return null}function f(s){if(s===oe)return"<>";if(typeof s=="object"&&s!==null&&s.$$typeof===Be)return"<...>";try{var d=u(s);return d?"<"+d+">":"<...>"}catch{return"<...>"}}function p(){var s=v.A;return s===null?null:s.getOwner()}function h(){return Error("react-stack-top-frame")}function m(s){if(x.call(s,"key")){var d=Object.getOwnPropertyDescriptor(s,"key").get;if(d&&d.isReactWarning)return!1}return s.key!==void 0}function g(s,d){function E(){I||(I=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",d))}E.isReactWarning=!0,Object.defineProperty(s,"key",{get:E,configurable:!0})}function y(){var s=u(this.type);return L[s]||(L[s]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),s=this.props.ref,s!==void 0?s:null}function b(s,d,E,P,T,U){var F=E.ref;return s={$$typeof:be,type:s,key:d,props:E,_owner:P},(F!==void 0?F:null)!==null?Object.defineProperty(s,"ref",{enumerable:!1,get:y}):Object.defineProperty(s,"ref",{enumerable:!1,value:null}),s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(s,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(s,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:T}),Object.defineProperty(s,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:U}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}function C(s,d){return d=b(s.type,d,s.props,s._owner,s._debugStack,s._debugTask),s._store&&(d._store.validated=s._store.validated),d}function S(s){R(s)?s._store&&(s._store.validated=1):typeof s=="object"&&s!==null&&s.$$typeof===Be&&(s._payload.status==="fulfilled"?R(s._payload.value)&&s._payload.value._store&&(s._payload.value._store.validated=1):s._store&&(s._store.validated=1))}function R(s){return typeof s=="object"&&s!==null&&s.$$typeof===be}function O(s){var d={"=":"=0",":":"=2"};return"$"+s.replace(/[=:]/g,function(E){return d[E]})}function _(s,d){return typeof s=="object"&&s!==null&&s.key!=null?(c(s.key),O(""+s.key)):d.toString(36)}function D(s){switch(s.status){case"fulfilled":return s.value;case"rejected":throw s.reason;default:switch(typeof s.status=="string"?s.then(a,a):(s.status="pending",s.then(function(d){s.status==="pending"&&(s.status="fulfilled",s.value=d)},function(d){s.status==="pending"&&(s.status="rejected",s.reason=d)})),s.status){case"fulfilled":return s.value;case"rejected":throw s.reason}}throw s}function W(s,d,E,P,T){var U=typeof s;(U==="undefined"||U==="boolean")&&(s=null);var F=!1;if(s===null)F=!0;else switch(U){case"bigint":case"string":case"number":F=!0;break;case"object":switch(s.$$typeof){case be:case me:F=!0;break;case Be:return F=s._init,W(F(s._payload),d,E,P,T)}}if(F){F=s,T=T(F);var ie=P===""?"."+_(F,0):P;return It(T)?(E="",ie!=null&&(E=ie.replace(se,"$&/")+"/"),W(T,d,E,"",function(ut){return ut})):T!=null&&(R(T)&&(T.key!=null&&(F&&F.key===T.key||c(T.key)),E=C(T,E+(T.key==null||F&&F.key===T.key?"":(""+T.key).replace(se,"$&/")+"/")+ie),P!==""&&F!=null&&R(F)&&F.key==null&&F._store&&!F._store.validated&&(E._store.validated=2),T=E),d.push(T)),1}if(F=0,ie=P===""?".":P+":",It(s))for(var Y=0;Y<s.length;Y++)P=s[Y],U=ie+_(P,Y),F+=W(P,d,E,U,T);else if(Y=t(s),typeof Y=="function")for(Y===s.entries&&(re||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),re=!0),s=Y.call(s),Y=0;!(P=s.next()).done;)P=P.value,U=ie+_(P,Y++),F+=W(P,d,E,U,T);else if(U==="object"){if(typeof s.then=="function")return W(D(s),d,E,P,T);throw d=String(s),Error("Objects are not valid as a React child (found: "+(d==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":d)+"). If you meant to render a collection of children, use an array instead.")}return F}function H(s,d,E){if(s==null)return s;var P=[],T=0;return W(s,P,"","",function(U){return d.call(E,U,T++)}),P}function Q(s){if(s._status===-1){var d=s._ioInfo;d!=null&&(d.start=d.end=performance.now()),d=s._result;var E=d();if(E.then(function(T){if(s._status===0||s._status===-1){s._status=1,s._result=T;var U=s._ioInfo;U!=null&&(U.end=performance.now()),E.status===void 0&&(E.status="fulfilled",E.value=T)}},function(T){if(s._status===0||s._status===-1){s._status=2,s._result=T;var U=s._ioInfo;U!=null&&(U.end=performance.now()),E.status===void 0&&(E.status="rejected",E.reason=T)}}),d=s._ioInfo,d!=null){d.value=E;var P=E.displayName;typeof P=="string"&&(d.name=P)}s._status===-1&&(s._status=0,s._result=E)}if(s._status===1)return d=s._result,d===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
4
4
|
|
|
5
5
|
Your code should look like:
|
|
6
6
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -8,11 +8,11 @@ Your code should look like:
|
|
|
8
8
|
Did you accidentally put curly braces around the import?`,d),"default"in d||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
9
9
|
|
|
10
10
|
Your code should look like:
|
|
11
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,d),d.default;throw
|
|
11
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,d),d.default;throw s._result}function B(){var s=v.H;return s===null&&console.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:
|
|
12
12
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
13
13
|
2. You might be breaking the Rules of Hooks
|
|
14
14
|
3. You might have more than one copy of React in the same app
|
|
15
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),i}function k(){g.asyncTransitions--}function M(i){if(D===null)try{var d=("require"+Math.random()).slice(0,7);D=(xn&&xn[d]).call(xn,"timers").setImmediate}catch{D=function(P){ye===!1&&(ye=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var T=new MessageChannel;T.port1.onmessage=P,T.port2.postMessage(void 0)}}return D(i)}function j(i){return 1<i.length&&typeof AggregateError=="function"?new AggregateError(i):i[0]}function fe(i,d){d!==Q-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Q=d}function ae(i,d,E){var P=g.actQueue;if(P!==null)if(P.length!==0)try{ce(P),M(function(){return ae(i,d,E)});return}catch(T){g.thrownErrors.push(T)}else g.actQueue=null;0<g.thrownErrors.length?(P=j(g.thrownErrors),g.thrownErrors.length=0,E(P)):d(i)}function ce(i){if(!X){X=!0;var d=0;try{for(;d<i.length;d++){var E=i[d];do{g.didUsePromise=!1;var P=E(!1);if(P!==null){if(g.didUsePromise){i[d]=E,i.splice(0,d);return}E=P}else break}while(!0)}i.length=0}catch(T){i.splice(0,d+1),g.thrownErrors.push(T)}finally{X=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ve=Symbol.for("react.transitional.element"),me=Symbol.for("react.portal"),oe=Symbol.for("react.fragment"),Me=Symbol.for("react.strict_mode"),et=Symbol.for("react.profiler"),We=Symbol.for("react.consumer"),tt=Symbol.for("react.context"),ze=Symbol.for("react.forward_ref"),at=Symbol.for("react.suspense"),lt=Symbol.for("react.suspense_list"),De=Symbol.for("react.memo"),je=Symbol.for("react.lazy"),Ne=Symbol.for("react.activity"),bt=Symbol.iterator,Be={},_t={isMounted:function(){return!1},enqueueForceUpdate:function(i){n(i,"forceUpdate")},enqueueReplaceState:function(i){n(i,"replaceState")},enqueueSetState:function(i){n(i,"setState")}},At=Object.assign,xt={};Object.freeze(xt),r.prototype.isReactComponent={},r.prototype.setState=function(i,d){if(typeof i!="object"&&typeof i!="function"&&i!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,i,d,"setState")},r.prototype.forceUpdate=function(i){this.updater.enqueueForceUpdate(this,i,"forceUpdate")};var Ce={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(be in Ce)Ce.hasOwnProperty(be)&&e(be,Ce[be]);o.prototype=r.prototype,Ce=s.prototype=new o,Ce.constructor=s,At(Ce,r.prototype),Ce.isPureReactComponent=!0;var It=Array.isArray,Jt=Symbol.for("react.client.reference"),g={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},x=Object.prototype.hasOwnProperty,w=console.createTask?console.createTask:function(){return null};Ce={react_stack_bottom_frame:function(i){return i()}};var I,z,L={},G=Ce.react_stack_bottom_frame.bind(Ce,h)(),de=w(f(h)),re=!1,se=/\/+/g,he=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var d=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(d))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},ye=!1,D=null,Q=0,q=!1,X=!1,le=typeof queueMicrotask=="function"?function(i){queueMicrotask(function(){return queueMicrotask(i)})}:M;Ce=Object.freeze({__proto__:null,c:function(i){return U().useMemoCache(i)}});var be={map:H,forEach:function(i,d,E){H(i,function(){d.apply(this,arguments)},E)},count:function(i){var d=0;return H(i,function(){d++}),d},toArray:function(i){return H(i,function(d){return d})||[]},only:function(i){if(!R(i))throw Error("React.Children.only expected to receive a single React element child.");return i}};N.Activity=Ne,N.Children=be,N.Component=r,N.Fragment=oe,N.Profiler=et,N.PureComponent=s,N.StrictMode=Me,N.Suspense=at,N.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=g,N.__COMPILER_RUNTIME=Ce,N.act=function(i){var d=g.actQueue,E=Q;Q++;var P=g.actQueue=d!==null?d:[],T=!1;try{var B=i()}catch(Y){g.thrownErrors.push(Y)}if(0<g.thrownErrors.length)throw fe(d,E),i=j(g.thrownErrors),g.thrownErrors.length=0,i;if(B!==null&&typeof B=="object"&&typeof B.then=="function"){var F=B;return le(function(){T||q||(q=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Y,ct){T=!0,F.then(function(kt){if(fe(d,E),E===0){try{ce(P),M(function(){return ae(kt,Y,ct)})}catch(Di){g.thrownErrors.push(Di)}if(0<g.thrownErrors.length){var Mi=j(g.thrownErrors);g.thrownErrors.length=0,ct(Mi)}}else Y(kt)},function(kt){fe(d,E),0<g.thrownErrors.length&&(kt=j(g.thrownErrors),g.thrownErrors.length=0),ct(kt)})}}}var ie=B;if(fe(d,E),E===0&&(ce(P),P.length!==0&&le(function(){T||q||(q=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),g.actQueue=null),0<g.thrownErrors.length)throw i=j(g.thrownErrors),g.thrownErrors.length=0,i;return{then:function(Y,ct){T=!0,E===0?(g.actQueue=P,M(function(){return ae(ie,Y,ct)})):Y(ie)}}},N.cache=function(i){return function(){return i.apply(null,arguments)}},N.cacheSignal=function(){return null},N.captureOwnerStack=function(){var i=g.getCurrentStack;return i===null?null:i()},N.cloneElement=function(i,d,E){if(i==null)throw Error("The argument must be a React element, but you passed "+i+".");var P=At({},i.props),T=i.key,B=i._owner;if(d!=null){var F;e:{if(x.call(d,"ref")&&(F=Object.getOwnPropertyDescriptor(d,"ref").get)&&F.isReactWarning){F=!1;break e}F=d.ref!==void 0}F&&(B=p()),m(d)&&(c(d.key),T=""+d.key);for(ie in d)!x.call(d,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&d.ref===void 0||(P[ie]=d[ie])}var ie=arguments.length-2;if(ie===1)P.children=E;else if(1<ie){F=Array(ie);for(var Y=0;Y<ie;Y++)F[Y]=arguments[Y+2];P.children=F}for(P=b(i.type,T,P,B,i._debugStack,i._debugTask),T=2;T<arguments.length;T++)S(arguments[T]);return P},N.createContext=function(i){return i={$$typeof:tt,_currentValue:i,_currentValue2:i,_threadCount:0,Provider:null,Consumer:null},i.Provider=i,i.Consumer={$$typeof:We,_context:i},i._currentRenderer=null,i._currentRenderer2=null,i},N.createElement=function(i,d,E){for(var P=2;P<arguments.length;P++)S(arguments[P]);P={};var T=null;if(d!=null)for(Y in z||!("__self"in d)||"key"in d||(z=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),m(d)&&(c(d.key),T=""+d.key),d)x.call(d,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(P[Y]=d[Y]);var B=arguments.length-2;if(B===1)P.children=E;else if(1<B){for(var F=Array(B),ie=0;ie<B;ie++)F[ie]=arguments[ie+2];Object.freeze&&Object.freeze(F),P.children=F}if(i&&i.defaultProps)for(Y in B=i.defaultProps,B)P[Y]===void 0&&(P[Y]=B[Y]);T&&v(P,typeof i=="function"?i.displayName||i.name||"Unknown":i);var Y=1e4>g.recentlyCreatedOwnerStacks++;return b(i,T,P,p(),Y?Error("react-stack-top-frame"):G,Y?w(f(i)):de)},N.createRef=function(){var i={current:null};return Object.seal(i),i},N.forwardRef=function(i){i!=null&&i.$$typeof===De?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof i!="function"?console.error("forwardRef requires a render function but was given %s.",i===null?"null":typeof i):i.length!==0&&i.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",i.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),i!=null&&i.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var d={$$typeof:ze,render:i},E;return Object.defineProperty(d,"displayName",{enumerable:!1,configurable:!0,get:function(){return E},set:function(P){E=P,i.name||i.displayName||(Object.defineProperty(i,"name",{value:P}),i.displayName=P)}}),d},N.isValidElement=R,N.lazy=function(i){i={_status:-1,_result:i};var d={$$typeof:je,_payload:i,_init:Z},E={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return i._ioInfo=E,d._debugInfo=[{awaited:E}],d},N.memo=function(i,d){i==null&&console.error("memo: The first argument must be a component. Instead received: %s",i===null?"null":typeof i),d={$$typeof:De,type:i,compare:d===void 0?null:d};var E;return Object.defineProperty(d,"displayName",{enumerable:!1,configurable:!0,get:function(){return E},set:function(P){E=P,i.name||i.displayName||(Object.defineProperty(i,"name",{value:P}),i.displayName=P)}}),d},N.startTransition=function(i){var d=g.T,E={};E._updatedFibers=new Set,g.T=E;try{var P=i(),T=g.S;T!==null&&T(E,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&(g.asyncTransitions++,P.then(k,k),P.then(a,he))}catch(B){he(B)}finally{d===null&&E._updatedFibers&&(i=E._updatedFibers.size,E._updatedFibers.clear(),10<i&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),d!==null&&E.types!==null&&(d.types!==null&&d.types!==E.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),d.types=E.types),g.T=d}},N.unstable_useCacheRefresh=function(){return U().useCacheRefresh()},N.use=function(i){return U().use(i)},N.useActionState=function(i,d,E){return U().useActionState(i,d,E)},N.useCallback=function(i,d){return U().useCallback(i,d)},N.useContext=function(i){var d=U();return i.$$typeof===We&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),d.useContext(i)},N.useDebugValue=function(i,d){return U().useDebugValue(i,d)},N.useDeferredValue=function(i,d){return U().useDeferredValue(i,d)},N.useEffect=function(i,d){return i==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),U().useEffect(i,d)},N.useEffectEvent=function(i){return U().useEffectEvent(i)},N.useId=function(){return U().useId()},N.useImperativeHandle=function(i,d,E){return U().useImperativeHandle(i,d,E)},N.useInsertionEffect=function(i,d){return i==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),U().useInsertionEffect(i,d)},N.useLayoutEffect=function(i,d){return i==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),U().useLayoutEffect(i,d)},N.useMemo=function(i,d){return U().useMemo(i,d)},N.useOptimistic=function(i,d){return U().useOptimistic(i,d)},N.useReducer=function(i,d,E){return U().useReducer(i,d,E)},N.useRef=function(i){return U().useRef(i)},N.useState=function(i){return U().useState(i)},N.useSyncExternalStore=function(i,d,E){return U().useSyncExternalStore(i,d,E)},N.useTransition=function(){return U().useTransition()},N.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var ee=Gn((uc,ur)=>{"use strict";process.env.NODE_ENV==="production"?ur.exports=Go():ur.exports=Xo()});var Xl={};Ui(Xl,{$l:()=>vn,$t:()=>nr,Component:()=>Ft,ConnectedOverlayScrollHandler:()=>br,DEFAULT_MOTION_OPTIONS:()=>Ii,FilterMatchMode:()=>xe,FilterOperator:()=>Vi,Icon:()=>qa,LocaleContext:()=>Bt,LocaleProvider:()=>yr,LocaleService:()=>rt,Motion:()=>Fl,MotionProvider:()=>yo,OverlayEventBus:()=>Ta,PassThroughContext:()=>Ut,PassThroughProvider:()=>vr,PrimeReactContext:()=>Wn,PrimeReactProvider:()=>Cl,PrimeReactStyleSheet:()=>Po,StylePreloadRegistry:()=>nn,StyleRegistry:()=>Et,ThemeContext:()=>Xe,ThemeProvider:()=>Ur,addStylePreloadsToStyleSheet:()=>wr,arrayMove:()=>mo,arrayTransfer:()=>ho,collisionStrategies:()=>Qt,combinedRefs:()=>wa,createDnd:()=>xi,createMotion2:()=>ki,createOptionalContext:()=>xr,createOverlayManager:()=>Gl,createSafeContext:()=>Ca,defaultComponentProps:()=>ka,defaultConfigProps:()=>ao,defaultIconProps:()=>Nr,defaultLocaleProps:()=>hr,defaultMotionProps:()=>go,defaultPTProps:()=>gr,defaultThemeProps:()=>Br,defaultUseMotionProps:()=>pn,defaultUseStyleProps:()=>Ka,defineLocale:()=>Dt,en:()=>Ho,globalProps:()=>_n,isDev:()=>Sr,isElementOfType:()=>Ia,isValidElement:()=>Pr,mergeRefs:()=>Er,showInvalidLicenseBanner:()=>Xn,styles:()=>sn,updateLocale:()=>$o,upsertStylePreloadsToHead:()=>Cr,useBase:()=>rn,useComponent:()=>Dr,useHeadless:()=>$r,useIcon:()=>Hr,useLocale:()=>Ea,useMotion:()=>wo,useMotionContext:()=>Il,usePassThrough:()=>Ra,usePrimeReact:()=>lo,useStyle:()=>Mr,useTheme:()=>Ya,withComponent:()=>on,withHeadless:()=>an,withIcon:()=>jr});var xe=Object.freeze({STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter",CUSTOM:"custom"});var Vi=Object.freeze({AND:"and",OR:"or"});function Xn(){if(typeof document>"u"||document.getElementById("p-license-host"))return;let e=document.createElement("div");e.id="p-license-host",e.style.cssText="all:initial;position:fixed;bottom:16px;right:16px;z-index:2147483647;pointer-events:none;";let t=e.attachShadow({mode:"closed"});t.innerHTML='<div role="alert" style="padding:10px 14px;background:#991b1b;color:#fff;font:600 13px/1.2 system-ui,-apple-system,sans-serif;border-radius:6px;box-shadow:0 4px 12px rgba(0,0,0,0.2);">Invalid PrimeUI License</div>',document.body.appendChild(e)}var Wi=Object.defineProperty,Oo=Object.getOwnPropertySymbols,zi=Object.prototype.hasOwnProperty,Ki=Object.prototype.propertyIsEnumerable,_o=(e,t,n)=>t in e?Wi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Io=(e,t)=>{for(var n in t||(t={}))zi.call(t,n)&&_o(e,n,t[n]);if(Oo)for(var n of Oo(t))Ki.call(t,n)&&_o(e,n,t[n]);return e};function Ke(e){return e==null||e===""||Array.isArray(e)&&e.length===0||!(e instanceof Date)&&typeof e=="object"&&Object.keys(e).length===0}function Zn(e){return typeof e=="function"&&"call"in e&&"apply"in e}function J(e){return!Ke(e)}function ge(e,t=!0){return e instanceof Object&&e.constructor===Object&&(t||Object.keys(e).length!==0)}var qi=new Set(["__proto__","constructor","prototype"]);function gn(e,t,n,r=new WeakSet){let o=Io({},e);Object.keys(o).length===0&&!n.has(t)&&n.set(t,o);let s=!r.has(t);return s&&r.add(t),Object.keys(t).forEach(a=>{var l,c;if(qi.has(a))return;let u=a,f=t[u];ge(f)&&u in e&&ge(e[u])?o[u]=r.has(f)?(l=n.get(f))!=null?l:gn({},f,n,r):gn(e[u],f,n,r):ge(f)?o[u]=(c=n.get(f))!=null?c:gn({},f,n,r):o[u]=f}),s&&r.delete(t),o}function Qn(...e){return e.reduce((t,n)=>gn(t,n||{},new WeakMap),{})}function K(e,...t){return Zn(e)?e(...t):e}function Pe(e,t=!0){return typeof e=="string"&&(t||e!=="")}function en(e){return Pe(e)?e.replace(/(-|_)/g,"").toLowerCase():e}function Ie(e,t="",n={}){let r=en(t).split("."),o=r.shift();if(o){if(ge(e)||Array.isArray(e)){let s=Object.keys(e).find(a=>en(a)===o)||"";return Ie(K(e[s],n),r.join("."),n)}return}return K(e,n)}function Jn(e,t=!0){return Array.isArray(e)&&(t||e.length!==0)}function ko(e){return J(e)&&!isNaN(e)}function qe(e,t){if(t){t.lastIndex=0;let n=t.test(e);return t.lastIndex=0,n}return!1}function Yi(e,t){let n=0;for(;t-1-n>=0&&e[t-1-n]==="\\";)n++;return n%2===1}function Ao(e){return e.replace(/[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function nt(e){if(!e)return e;let t="",n="",r=0;for(;r<e.length;){let o=e[r];if(o==="/"&&e[r+1]==="*"){let s=e.indexOf("*/",r+2);r=s===-1?e.length:s+2}else if(o==='"'||o==="'"){t+=Ao(n),n="";let s=r+1;for(;s<e.length&&(e[s]!==o||Yi(e,s));)s++;t+=e.slice(r,Math.min(s+1,e.length)),r=s+1}else n+=o,r++}return(t+Ao(n)).trim()}function er(e={},t=""){return Object.entries(e).reduce((n,[r,o])=>{let s=t?`${t}.${r}`:r;return ge(o)?n=n.concat(er(o,s)):n.push(s),n},[])}function Lo(e,...t){if(!ge(e))return e;let n=Io({},e);return t?.flat().forEach(r=>delete n[r]),n}function Lt(e){return Pe(e)?e.replace(/(_)/g,"-").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():e}function tr(e){if(e==="auto")return 0;if(typeof e=="number")return e;let t=Number(e.replace(",",".").replace(/[^\d.]/g,""));return Number.isNaN(t)||/ms\s*$/.test(e)?t:t*1e3}function Mo(e){return Pe(e)?e.replace(/[A-Z]/g,(t,n)=>n===0?t:"."+t.toLowerCase()).toLowerCase():e}function Mt(){let e=new Map,t={on(n,r){let o=e.get(n);return o?o.push(r):o=[r],e.set(n,o),t},off(n,r){let o=e.get(n);if(o){let s=o.indexOf(r);s!==-1&&o.splice(s,1)}return t},emit(n,...r){let o=e.get(n);o&&o.forEach(s=>{s(r[0])})},clear(){e.clear()}};return t}var Gi=Mt(),rt=Gi,Se={_lang:"en",_fallbackLang:void 0,_locales:new Map,init({lang:e,fallbackLang:t,locales:n}){return this._lang=e||"en",this._fallbackLang=t||this._lang,this._locales=new Map(Object.entries(n||{})),rt.emit("locale:change",{lang:this._lang,locale:this.locale}),this},use(e){this._lang=e||this.lang,rt.emit("locale:change",{lang:this._lang,locale:this.locale})},add(e,t={}){return this._locales.set(e,Qn(this._locales.get(this._fallbackLang),t)),e===this._lang&&rt.emit("locale:change",{lang:this._lang,locale:this.locale}),this},update(e,t={}){return this._locales.has(e)?(this._locales.set(e,Qn(this._locales.get(e),t)),e===this._lang&&rt.emit("locale:change",{lang:this._lang,locale:this.locale}),this):this.add(e,t)},get(e){return this._locales.get(e||this.lang)},get lang(){return this._lang},get locale(){return this._locales.get(this.lang)}},Do=()=>Se._locales,Xi={get(e){return Se.get(e)},get langs(){return Array.from(Do().keys())},get locales(){return Array.from(Do().values())},define(e,t={}){return Se.add(e,t)},update(e,t={}){return Se.update(e,t)},use(e){return Se.use(e)}},vn=e=>(typeof e=="object"&&e!==null&&Se.init(e),Xi),No=(e,...t)=>{let n=Ie(Se.locale,e,Se);if(Pe(n)&&t.length){let r=n;return t.flat().forEach((o,s)=>{let a=K(o,Se);ge(a)?Object.entries(a).forEach(([l,c])=>{r=r.replaceAll(`{${l}}`,String(c))}):r=r.replaceAll(`{${s}}`,String(a))}),r}return n};function Dt(e,t={}){return vn().define(e,t)}function $o(e,t={}){return vn().update(e,t)}var Ho={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",completed:"Completed",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",today:"Today",weekHeader:"Wk",firstDayOfWeek:0,showMonthAfterYear:!1,dateFormat:"mm/dd/yy",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyFilterMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",fileChosenMessage:"{0} files",noFileChosenMessage:"No file chosen",emptyMessage:"No available options",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"Page {page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List"}},Zi=()=>{Se.get("en")||Dt("en",Ho)},nr=(e,...t)=>(Zi(),No(e,...t));var Sn=ne(ee());function Zo(e=""){let t=Sn.useId();return Sn.useMemo(()=>`${e}${t.replaceAll(/:|«|»/g,"")}`.trim().toLowerCase(),[t,e])}function tn(...e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(!r)continue;let o=typeof r;if(o==="string"||o==="number")t.push(r);else if(o==="object"){let s=Array.isArray(r)?[tn(...r)]:Object.entries(r).map(([a,l])=>l?a:void 0);t=s.length?t.concat(s.filter(a=>!!a)):t}}return t.join(" ").trim()}function ma(e,t){return e?e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className):!1}function En(e,t){if(e&&t){let n=r=>{ma(e,r)||(e.classList?e.classList.add(r):e.className+=" "+r)};[t].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function dr(e,t){if(e&&t){let n=r=>{e.classList?e.classList.remove(r):e.className=e.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")};[t].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function Qo(e){let t={width:0,height:0};if(e){let[n,r]=[e.style.visibility,e.style.display],o=e.getBoundingClientRect();e.style.visibility="hidden",e.style.display="block",t.width=o.width||e.offsetWidth,t.height=o.height||e.offsetHeight,e.style.display=r,e.style.visibility=n}return t}function ha(e){if(e){let t=e.parentNode;return t&&t instanceof ShadowRoot&&t.host&&(t=t.host),t}return null}function fr(e){return typeof Element<"u"?e instanceof Element:e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.nodeName=="string"}function Ht(e){var t;if(fr(e))return e;if(!e||typeof e!="object")return;let n=e;if("current"in e)n=e.current,n=(t=Ht(n?.elementRef))!=null?t:n;else if("value"in e)n=e.value;else if("nativeElement"in e)n=e.nativeElement;else if("el"in e){let r=e.el;r&&typeof r=="object"&&"nativeElement"in r?n=r.nativeElement:n=r}else if("elementRef"in e)return Ht(e.elementRef);return n=K(n),fr(n)?n:void 0}function Rn(e){return String(e).replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function Jo(e,t={}){return e?`<style${Object.entries(t).reduce((n,[r,o])=>n+` ${r}="${Rn(o)}"`,"")}>${e}</style>`:""}function ya(e,t){return fr(e)?e.matches(t)?e:e.querySelector(t):null}function es(e,t=[]){let n=ha(e);return n===null?t:es(n,t.concat([n]))}function ts(e){let t=[];if(e){let n=es(e),r=/(auto|scroll)/,o=s=>{try{let a=window.getComputedStyle(s,null);return r.test(a.getPropertyValue("overflow"))||r.test(a.getPropertyValue("overflowX"))||r.test(a.getPropertyValue("overflowY"))}catch{return!1}};for(let s of n){let a=s.nodeType===1&&s.dataset.scrollselectors;if(a){let l=a.split(",");for(let c of l){let u=ya(s,c);u&&o(u)&&t.push(u)}}s.nodeType!==9&&o(s)&&t.push(s)}}return t}function Ae(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ns(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function pr(){return new Promise(e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})})}function mr(e,t,n=null,r){t&&e!=null&&e.style&&e.style.setProperty(t,n,r)}var ga=Object.defineProperty,rs=Object.getOwnPropertySymbols,va=Object.prototype.hasOwnProperty,ba=Object.prototype.propertyIsEnumerable,os=(e,t,n)=>t in e?ga(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ss=(e,t)=>{for(var n in t||(t={}))va.call(t,n)&&os(e,n,t[n]);if(rs)for(var n of rs(t))ba.call(t,n)&&os(e,n,t[n]);return e};function is(...e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(!r)continue;let o=typeof r;if(o==="string"||o==="number")t.push(r);else if(o==="object"){let s=Array.isArray(r)?[is(...r)]:Object.entries(r).map(([a,l])=>l?a:void 0);t=s.length?t.concat(s.filter(a=>!!a)):t}}return t.join(" ").trim()}function xa(e){return typeof e=="function"&&"call"in e&&"apply"in e}function Sa({skipUndefined:e=!1},...t){return t?.reduce((n,r={})=>{for(let o in r){let s=r[o];if(!(e&&s===void 0))if(o==="style")n.style=ss(ss({},n.style),r.style);else if(o==="class"||o==="className")n[o]=is(n[o],r[o]);else if(xa(s)){let a=n[o];n[o]=a?(...l)=>{a(...l),s(...l)}:s}else n[o]=s}return n},{})}function ut(...e){return Sa({skipUndefined:!1},...e)}var jt=ne(ee());function as(e){let t=jt.useId(),[n,r]=jt.useState(e||`pr_id_${t.replaceAll(/:|«|»/g,"")}`);return jt.useEffect(()=>{r(e||`pr_id_${t.replaceAll(/:|«|»/g,"")}`)},[e,t]),n}var wn=ne(ee());function Cn(e){let t=wn.useRef(!1);wn.useEffect(()=>{t.current||(t.current=!0,e?.())},[])}var Pn=ne(ee());function ls(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++){let s=n[o];if(e[s]!==t[s])return!1}return!0}function Ye(e={},t={}){let n=Pn.useRef(null);return Pn.useMemo(()=>{let r={...e},o={};Object.entries(t).forEach(([l,c])=>{l in e?r[l]=c:o[l]=c});let s=n.current;if(s&&ls(s.props,r)&&ls(s.attrs,o))return s;let a={props:r,attrs:o};return n.current=a,a},[e,t])}var cs=ne(ee());function us(e){cs.useEffect(()=>()=>{e?.()},[])}var Tn=ne(ee());function fs(e,t){let n=Tn.useRef(!1);Tn.useEffect(()=>{if(!n.current){n.current=!0;return}return e?.()},t)}var Ue=ne(ee());var hr={lang:"en",locales:void 0};var Bt=Ue.createContext(void 0),yr=(e={})=>{let{props:t,attrs:n}=Ye(hr,e),[r,o]=Ue.useState(0);Cn(()=>{t.locales&&Object.entries(t.locales).forEach(([l,c])=>Dt(l,c)),t.lang&&Se.use(t.lang)}),Ue.useEffect(()=>{let l=()=>o(c=>c+1);return rt.on("locale:change",l),()=>{rt.off("locale:change",l)}},[]);let s=Ue.useMemo(()=>({lang:Se.lang,version:r}),[r]),a=Ue.useMemo(()=>K(n.children,s),[n.children,s]);return Ue.createElement(Bt.Provider,{value:s},a)};var On=ne(ee());function Ea(){let e=On.useContext(Bt),t=e?.lang??Se.lang;return On.useMemo(()=>({lang:t,messages:Se.get(t)??Se.get("en"),t:(n,...r)=>String(nr(n,...r))}),[t,e?.version])}var St=ne(ee());var gr={value:void 0,mergeProps:!1,mergeSections:!0};var Ut=St.createContext(void 0),vr=(e={})=>{let{props:t,attrs:n}=Ye(gr,e),{value:r,mergeProps:o,mergeSections:s}=t,a=St.useMemo(()=>({value:r,options:{mergeProps:o,mergeSections:s}}),[r,o,s]),l=St.useMemo(()=>K(n.children,a),[n.children,a]);return St.createElement(Ut.Provider,{value:a},l)};var ds=ne(ee());function Ra(){let e=ds.useContext(Ut);if(e===void 0)throw new Error("Context must be used within a PassThroughProvider");return e}var wa=(e,t)=>{e&&t&&t!==e&&(typeof t=="function"?t(e&&"current"in e?e.current:null):"current"in t&&"current"in e&&t.current!==e.current&&(t.current=e&&"current"in e?e.current:null))};var br=class{constructor(t,n=()=>{}){this.scrollableParents=null;this.isBound=!1;this.element=t,this.listener=n}bindScrollListener(){if(this.element){this.isBound&&this.unbindScrollListener(),this.scrollableParents=ts(this.element);for(let t=0;t<this.scrollableParents.length;t++){let n=this.scrollableParents[t];n&&this.listener&&n.addEventListener("scroll",this.listener)}this.isBound=!0}}unbindScrollListener(){if(this.scrollableParents&&this.listener)for(let t=0;t<this.scrollableParents.length;t++){let n=this.scrollableParents[t];n&&n.removeEventListener("scroll",this.listener)}this.scrollableParents=null,this.isBound=!1}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null,this.isBound=!1}};var ft=ne(ee());function ps(e,t){let n=ft.createContext(e);return[({value:s,children:a})=>{let l=ft.useMemo(()=>K(a,s),[a,s]);return ft.createElement(n.Provider,{value:s},l)},()=>{let s=ft.useContext(n);return s===void 0?t?.():s}]}function Ca(e,t){return ps(e,()=>{throw new Error(t||"Context must be used within a Provider")})}function xr(e){return ps(e,()=>e)}var Sr=typeof process<"u"&&process.env?.NODE_ENV!=="production";function Er(...e){return t=>{for(let n of e)if(n!=null)if(typeof n=="function")n(t);else try{n.current=t}catch{}}}var Pa=Mt(),Ta=Pa;var Oa=e=>({id:e.id,css:e.css,phase:e.phase??"both",priority:e.priority??0}),Rr=e=>e.sort((t,n)=>{let r=t.priority-n.priority;return r!==0?r:t.id.localeCompare(n.id)}),nn={_entries:new Map,register(e){!e.id||!e.css||this._entries.set(e.id,Oa(e))},registerMany(e=[]){e.forEach(t=>this.register(t))},has(e){return this._entries.has(e)},getAll(){return Rr([...this._entries.values()])},getForSSR(){return Rr([...this._entries.values()].filter(e=>e.phase!=="client"))},getForClient(){return Rr([...this._entries.values()].filter(e=>e.phase!=="ssr"))},clear(){this._entries.clear()}},wr=(e,t)=>{t.forEach(n=>{e?.has(n.id)||e?.add(n.id,n.css)})},Cr=e=>{e.forEach(t=>{let n=document.head.querySelector(`style[data-primereact-style-id="${t.id}"]`)||document.createElement("style");n.isConnected||(document.head.appendChild(n),n.setAttribute("data-primereact-style-id",t.id)),n.textContent=t.css})};var Et={_loadedStyleNames:new Set,_styleRefCount:new Map,getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(e){return(this._styleRefCount.get(e)??0)>0},getStyleRefCount(e){return this._styleRefCount.get(e)??0},retainStyleName(e){let t=this.getStyleRefCount(e),n=t+1;return this._styleRefCount.set(e,n),this._loadedStyleNames.add(e),t===0},releaseStyleName(e){let t=this.getStyleRefCount(e);return t<=1?(this._styleRefCount.delete(e),this._loadedStyleNames.delete(e),!0):(this._styleRefCount.set(e,t-1),!1)},setLoadedStyleName(e){this.retainStyleName(e)},deleteLoadedStyleName(e){this._styleRefCount.delete(e),this._loadedStyleNames.delete(e)},clearLoadedStyleNames(){this._styleRefCount.clear(),this._loadedStyleNames.clear()},getStats(){return{totalStyles:this._loadedStyleNames.size,styleRefCounts:Array.from(this._styleRefCount.entries()).map(([e,t])=>({name:e,refCount:t}))}}};var _a=Symbol.for("react.element"),Aa=Symbol.for("react.transitional.element");function Pr(e){return typeof e=="object"&&e!==null&&(e.$$typeof===_a||e.$$typeof===Aa)}function Ia(e,t){if(typeof e!="object"||e===null)return!1;let n=e.displayName||e.type?.displayName||e.type?.name;return n===t||n?.includes(`PrimeReact.${t}`)||n?.includes(`PrimeReact.UI${t}`)}var dt=ne(ee());function Ft(e={}){let{pIf:t=!0,style:n,className:r,as:o,asChild:s,instance:a,render:l,...c}=e;if(t===!1)return null;let u=o||a?.props?.as||dt.Fragment,f=l||s||a?.props?.asChild,p=u===dt.Fragment,{ref:h,children:m,attrs:v,...y}=c,b={...v,...y},C=K(l??m,a,b),S=K(n||a?.props?.style,a),R=K(r||a?.props?.className,a);if(f||p)return dt.createElement(dt.Fragment,null,C);if(Pr(u))return K(u,a);{let O={...b,style:{...b.style,...S},className:tn(b.className,R)},_=Er(a?.elementRef,b.ref,h,a?.props?.ref);return O.children?dt.createElement(u,{...O,ref:_}):dt.createElement(u,{...O,ref:_},C)}}Ft.displayName="PrimeReact.Component";var _n=Object.freeze({ref:void 0,pIf:!0,style:void 0,className:void 0,as:void 0,asChild:!1,instance:void 0,pt:void 0,ptOptions:void 0,unstyled:void 0,dt:void 0,styles:void 0,render:void 0,children:void 0}),ka=Object.freeze({...Lo(_n,"pt","ptOptions","dt","styles"),attrs:void 0});var qt=ne(ee());var Re=ne(ee());function An(e,...t){return Zn(e)?e(...t):e?ut(...t):Object.assign({},...t)}function In(e={},t="",n){let r=Ie(e,t,n);return Pe(r)||Jn(r)?{className:r}:r}function Vt(e,t,n,r){let o=(s,a=!1)=>{let l=r?r(s):s,c=en(t??""),u=en(n??"");return(a?c!==u?l?.[c]:void 0:l?.[c])??l};return e&&Object.hasOwn(e,"_usept")?{_usept:e._usept,originalValue:o(e.originalValue),value:o(e.value)}:o(e,!0)}function ms(e,t){let{id:n,name:r,scope:o,part:s,props:a,attrs:l,$primereact:c,$attrSelector:u}=e||{},f=c?.passthrough,p=f?.value,h=f?.options,m=Re.useCallback((k,M,j="",fe)=>{let ae=ce=>M(ce,j,fe);if(k&&Object.hasOwn(k,"_usept")){let{mergeSections:ce=!0,mergeProps:ve=!1}=k._usept||h||{},me=ae(k.originalValue),oe=ae(k.value);return me===void 0&&oe===void 0?void 0:Pe(oe)?oe:Pe(me)?me:ce||!ce&&oe?An(ve,me,oe):oe}return ae(k)},[h]),v=Re.useCallback(k=>{let M=m(Vt(a.pt,r,r),Ie,`hooks.${k}`),j=m(Vt(p,void 0,r),Ie,`hooks.${k}`);M?.(),j?.()},[a.pt,r,m,p]),y=Re.useMemo(()=>Vt(p,void 0,r,k=>K(k,e)),[p,r]),b=Re.useMemo(()=>Vt(p,void 0,r,k=>Ie(k,r,e)||K(k,e)),[p,r]),C=Re.useMemo(()=>Object.entries(l||{}).filter(([k])=>k?.startsWith("pt-")).reduce((k,[M,j])=>{let[,fe,...ae]=M.split("-");return[fe,ae?.join("-")].filter(Boolean).reduce((ce,ve,me,oe)=>(ce[ve]||(ce[ve]=me===oe.length-1?j:{}),ce[ve]),k),k},{}),[l]),S=Re.useMemo(()=>Object.entries(l||{}).filter(([k])=>!k?.startsWith("pt-")).reduce((k,[M,j])=>(k[M]=j,k),{}),[l]),R=Re.useCallback((k="")=>{let M="data-";return k==="root"&&J(l?.["data-scope"])?{[`${M}extend`]:o,[`${M}styled`]:o}:{[`${M}scope`]:o,...k==="root"&&{[`${M}part`]:s,[`${M}id`]:u,[`${M}styled`]:o},[`${M}slot`]:k}},[o,s,u,l]),O=Re.useCallback((k={},M,j="",fe)=>{let ae=m(Vt(k,r,r),M,j,fe),ce=m(C,M,j,fe);return An(!0,ae??{},ce??{})},[C,m,r]),_=Re.useCallback((k,M="",j)=>m(y,k,M,j),[y,m]),$=Re.useCallback((k,M,j)=>m(b,k,M,j),[b,m]),W=Re.useCallback((k={},M="",j={},fe=!0)=>{let ae=M.includes(".")&&!!j[M.split(".")[0]],{mergeSections:ce=!0,mergeProps:ve=!1}=a?.ptOptions||h||{},me=fe?ae?_(In,M,j):$(In,M,j):void 0,oe=ae?void 0:O(k,In,M,{...j,global:me||{}}),Me=R(M);return ce||!ce&&oe?An(ve,me,oe,Me):{...oe,...Me}},[a.ptOptions,_,$,O,R]),H=Re.useCallback((k="",M={})=>W(a.pt,k,{...t,...M}),[a.pt,t,W]),Z=Re.useCallback((k="",M={})=>{let j=ut(S,H(k,M));return j&&Object.hasOwn(j,"id")&&(j.id??=n),j},[H,n,S]),U=Re.useCallback((k={},M="",j={})=>W(k,M,{...t,...j},!1),[t,W]);return Cn(()=>v("onMounted")),fs(()=>v("onUpdated")),us(()=>v("onUnmounted")),Re.useMemo(()=>({ptm:H,ptmi:Z,ptmo:U}),[H,Z,U])}var La=Object.defineProperty,Ma=Object.defineProperties,Da=Object.getOwnPropertyDescriptors,Ln=Object.getOwnPropertySymbols,ys=Object.prototype.hasOwnProperty,gs=Object.prototype.propertyIsEnumerable,hs=(e,t,n)=>t in e?La(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$e=(e,t)=>{for(var n in t||(t={}))ys.call(t,n)&&hs(e,n,t[n]);if(Ln)for(var n of Ln(t))gs.call(t,n)&&hs(e,n,t[n]);return e},kn=(e,t)=>Ma(e,Da(t)),pt=(e,t)=>{var n={};for(var r in e)ys.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ln)for(var r of Ln(e))t.indexOf(r)<0&&gs.call(e,r)&&(n[r]=e[r]);return n};var Na=Mt(),Ge=Na,Rt=/{([^}]*)}/g,Or=/(\d+\s+[+*/-]\s+\d+)/g,_r=/var\([^)]+\)/g;function Ar(e){return Pe(e)?e.replace(/[A-Z]/g,(t,n)=>n===0?t:"."+t.toLowerCase()).toLowerCase():e}function $a(e){return ge(e)&&Object.prototype.hasOwnProperty.call(e,"$value")&&Object.prototype.hasOwnProperty.call(e,"$type")?e.$value:e}function Ha(e){return e.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Ir(e="",t=""){return Ha(`${Pe(e,!1)&&Pe(t,!1)?`${e}-`:e}${t}`)}function vs(e="",t=""){return`--${Ir(e,t)}`}function ja(e=""){let t=(e.match(/{/g)||[]).length,n=(e.match(/}/g)||[]).length;return(t+n)%2!==0}function Mn(e,t="",n="",r=[],o){if(Pe(e)){let s=e.trim();if(ja(s))return;if(qe(s,Rt)){let a=s.replaceAll(Rt,l=>{let c=l.replace(/{|}/g,"").split(".").filter(u=>!r.some(f=>qe(u,f)));return`var(${vs(n,Lt(c.join("-")))}${J(o)?`, ${o}`:""})`});return qe(a.replace(_r,"0"),Or)?`calc(${a})`:a}return s}else if(ko(e))return e}function Ba(e,t,n){Pe(t,!1)&&e.push(`${t}:${n};`)}function Wt(e,t){return e?`${e}{${t}}`:""}function bs(e,t){if(e.indexOf("dt(")===-1)return e;function n(a,l){let c=[],u=0,f="",p=null,h=0;for(;u<=a.length;){let m=a[u];if((m==='"'||m==="'"||m==="`")&&a[u-1]!=="\\"&&(p=p===m?null:m),!p&&(m==="("&&h++,m===")"&&h--,(m===","||u===a.length)&&h===0)){let v=f.trim();v.startsWith("dt(")?c.push(bs(v,l)):c.push(r(v)),f="",u++;continue}m!==void 0&&(f+=m),u++}return c}function r(a){let l=a[0];if((l==='"'||l==="'"||l==="`")&&a[a.length-1]===l)return a.slice(1,-1);let c=Number(a);return isNaN(c)?a:c}let o=[],s=[];for(let a=0;a<e.length;a++)if(e[a]==="d"&&e.slice(a,a+3)==="dt(")s.push(a),a+=2;else if(e[a]===")"&&s.length>0){let l=s.pop();s.length===0&&o.push([l,a])}if(!o.length)return e;for(let a=o.length-1;a>=0;a--){let[l,c]=o[a],u=e.slice(l+3,c),f=n(u,t),p=t(...f);e=e.slice(0,l)+p+e.slice(c+1)}return e}var Ua=(e,t)=>{let n=e.split("."),r="";for(let o=0;o<n.length;o++){let s=Ar(n[o]);t.lastIndex=0,!t.test(s)&&(r=r?`${r}.${s}`:s)}return r},Tr=(e,t,n,r,o)=>{if(typeof e!="string")return e??te.getTokenValue(t);if(Rt.lastIndex=0,!Rt.test(e))return e;let s=t.slice(0,t.indexOf(".")),a=e.replace(Rt,l=>{let c=l.slice(1,-1),u=c.indexOf(".");if((u===-1?c:c.slice(0,u))!==s)return l;let f=te.getTokenValue(c);return f==null?l:`${f}`});return Mn(a,void 0,n,[r],o)},Fa=(e,t,n,r)=>{var o,s,a,l;let c=Ua(e,n),u=te.tokens,f=u.__strictCache;f||(f=new Map,Object.defineProperty(u,"__strictCache",{value:f,enumerable:!1,configurable:!0}));let p=r==null||typeof r!="object",h=p&&r!=null?`${t}|${c}|${r}`:`${t}|${c}`,m=p?f.get(h):void 0;if(m===void 0&&(!p||!f.has(h))){let v=(o=u[c])==null?void 0:o.paths,y=v?.find(S=>S.scheme==="none"),b=(s=v?.find(S=>S.scheme==="light"))!=null?s:y,C=(a=v?.find(S=>S.scheme==="dark"))!=null?a:y;if(b&&C&&b!==C){let S=Tr(b.value,c,t,n,r),R=Tr(C.value,c,t,n,r);m=S===R?S:`light-dark(${S},${R})`}else m=Tr((l=b??C)==null?void 0:l.value,c,t,n,r);p&&f.set(h,m)}return te.hasScopedTokenPath(c)?Mn(`{${c}}`,void 0,t,[n],m):m},Lr=e=>{var t,n,r;let o=te.getTheme(),s=`${(t=kr(o,e,void 0,"variable"))!=null?t:""}`,a=(r=(n=s.match(/--[\w-]+/g))==null?void 0:n[0])!=null?r:"",l=kr(o,e,void 0,"value");return{name:a,variable:s,value:l}},mt=(e,t,n)=>kr(te.getTheme(),e,t,n),kr=(e={},t,n,r)=>{var o,s,a,l,c,u,f,p,h,m;if(!t)return"";let v=(o=te.defaults)==null?void 0:o.variable,y=(c=(s=e?.options)==null?void 0:s.prefix)!=null?c:(l=(a=te.defaults)==null?void 0:a.options)==null?void 0:l.prefix,b=(m=(h=(u=e?.options)==null?void 0:u.cssVariables)!=null?h:(p=(f=te.defaults)==null?void 0:f.options)==null?void 0:p.cssVariables)!=null?m:!0;if(r==="value")return te.getTokenValue(t);if(Ke(r)&&!b)return Fa(t,y,v.excludedKeyRegex,n);let C=qe(t,Rt)?t:`{${t}}`;return Mn(C,void 0,y,[v.excludedKeyRegex],n)},Va=(...e)=>{var t;return`${(t=mt(...e))!=null?t:""}`};function zt(e,...t){if(e instanceof Array){let n=e.reduce((r,o,s)=>{var a;return r+o+((a=K(t[s],{dt:mt}))!=null?a:"")},"");return bs(n,Va)}return K(e,{dt:mt})}function Wa(e,t={}){let n=te.defaults.variable,{prefix:r=n.prefix,selector:o=n.selector,excludedKeyRegex:s=n.excludedKeyRegex}=t,a=[],l=[],c=[{node:e,path:r}];for(;c.length;){let{node:f,path:p}=c.pop();for(let h in f){let m=f[h],v=$a(m),y=qe(h,s)?Ir(p):Ir(p,Lt(h));if(ge(v))c.push({node:v,path:y});else{let b=vs(y),C=Mn(v,y,r,[s]);Ba(l,b,C==null?C:`${C}`);let S=y;r&&S.startsWith(r+"-")&&(S=S.slice(r.length+1)),a.push(S.replace(/-/g,"."))}}}let u=l.join("");return{value:l,tokens:a,declarations:u,css:Wt(o,u)}}var Fe={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(e){return{type:"class",selector:e,matched:this.pattern.test(e.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(e){return{type:"attr",selector:`:root${e},:host${e}`,matched:this.pattern.test(e.trim())}}},media:{pattern:/^@media (.*)$/,resolve(e){return{type:"media",selector:e,matched:this.pattern.test(e.trim())}}},system:{pattern:/^system$/,resolve(e){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(e.trim())}}},custom:{resolve(e){return{type:"custom",selector:e,matched:!0}}}},resolve(e){let t=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[e].flat().map(n=>{var r;return(r=t.map(o=>o.resolve(n)).find(o=>o.matched))!=null?r:this.rules.custom.resolve(n)})}},_toVariables(e,t){return Wa(e,{prefix:t?.prefix})},getCommon({name:e="",theme:t={},params:n,set:r,defaults:o}){var s,a,l,c,u,f,p;let{preset:h,options:m}=t,v,y,b,C,S,R,O;if(J(h)){let{primitive:_,semantic:$,extend:W}=h,H=$||{},{colorScheme:Z}=H,U=pt(H,["colorScheme"]),k=W||{},{colorScheme:M}=k,j=pt(k,["colorScheme"]),fe=Z||{},{dark:ae}=fe,ce=pt(fe,["dark"]),ve=M||{},{dark:me}=ve,oe=pt(ve,["dark"]),Me=J(_)?this._toVariables({primitive:_},m):{},et=J(U)?this._toVariables({semantic:U},m):{},We=J(ce)?this._toVariables({light:ce},m):{},tt=J(ae)?this._toVariables({dark:ae},m):{},ze=J(j)?this._toVariables({semantic:j},m):{},at=J(oe)?this._toVariables({light:oe},m):{},lt=J(me)?this._toVariables({dark:me},m):{},[De,je]=[(s=Me.declarations)!=null?s:"",Me.tokens],[Ne,bt]=[(a=et.declarations)!=null?a:"",et.tokens||[]],[Be,_t]=[(l=We.declarations)!=null?l:"",We.tokens||[]],[At,xt]=[(c=tt.declarations)!=null?c:"",tt.tokens||[]],[Ce,It]=[(u=ze.declarations)!=null?u:"",ze.tokens||[]],[Jt,g]=[(f=at.declarations)!=null?f:"",at.tokens||[]],[x,w]=[(p=lt.declarations)!=null?p:"",lt.tokens||[]];v=this.transformCSS(e,De,"light","variable",m,r,o),y=je;let I=this.transformCSS(e,`${Ne}${Be}`,"light","variable",m,r,o),z=this.transformCSS(e,`${At}`,"dark","variable",m,r,o);b=`${I}${z}`,C=[...new Set([...bt,..._t,...xt])];let L=this.transformCSS(e,`${Ce}${Jt}color-scheme:light`,"light","variable",m,r,o),G=this.transformCSS(e,`${x}color-scheme:dark`,"dark","variable",m,r,o);S=`${L}${G}`,R=[...new Set([...It,...g,...w])],O=K(h.css,{dt:mt})}return{primitive:{css:v,tokens:y},semantic:{css:b,tokens:C},global:{css:S,tokens:R},style:O}},getPreset({name:e="",preset:t={},options:n,params:r,set:o,defaults:s,selector:a,isScopedTokenPaths:l}){var c,u,f,p;let h,m,v;if(J(t)&&((c=n?.cssVariables)==null||c||l)){let y=e.replace("-directive",""),b=t,{colorScheme:C,extend:S,css:R}=b,O=pt(b,["colorScheme","extend","css"]),_=S||{},{colorScheme:$}=_,W=pt(_,["colorScheme"]),H=C||{},{dark:Z}=H,U=pt(H,["dark"]),k=$||{},{dark:M}=k,j=pt(k,["dark"]),fe=J(O)?this._toVariables({[y]:$e($e({},O),W)},n):{},ae=J(U)?this._toVariables({[y]:$e($e({},U),j)},n):{},ce=J(Z)?this._toVariables({[y]:$e($e({},Z),M)},n):{},[ve,me]=[(u=fe.declarations)!=null?u:"",fe.tokens||[]],[oe,Me]=[(f=ae.declarations)!=null?f:"",ae.tokens||[]],[et,We]=[(p=ce.declarations)!=null?p:"",ce.tokens||[]],tt=this.transformCSS(y,`${ve}${oe}`,"light","variable",n,o,s,a),ze=this.transformCSS(y,et,"dark","variable",n,o,s,a);h=`${tt}${ze}`,m=[...new Set([...me,...Me,...We])],v=K(R,{dt:mt})}return{css:h,tokens:m,style:v}},getScopedSelector(e,t){if(!(!(t!=null&&t.scoped)||!e))return`[data-styled="${e}"]`},getPresetC({name:e="",theme:t={},params:n,set:r,defaults:o}){var s;let{preset:a,options:l}=t,c=(s=a?.components)==null?void 0:s[e],u=this.getScopedSelector(e,l);return this.getPreset({name:e,preset:c,options:l,params:n,set:r,defaults:o,selector:u})},getPresetD({name:e="",theme:t={},params:n,set:r,defaults:o}){var s,a;let l=e.replace("-directive",""),{preset:c,options:u}=t,f=((s=c?.components)==null?void 0:s[l])||((a=c?.directives)==null?void 0:a[l]),p=this.getScopedSelector(l,u);return this.getPreset({name:l,preset:f,options:u,params:n,set:r,defaults:o,selector:p})},applyDarkColorScheme(e){let t=e.darkModeSelector;return!(t==="none"||t===!1)},getColorSchemeOption(e,t){var n;return this.applyDarkColorScheme(e)?this.regex.resolve(e.darkModeSelector===!0?t.options.darkModeSelector:(n=e.darkModeSelector)!=null?n:t.options.darkModeSelector):[]},getLayerOrder(e,t={},n,r){let{cssLayer:o}=t;return o?`@layer ${K(o.order||o.name||"primeui",n)}`:""},getCommonStyleSheet({name:e="",theme:t={},params:n,props:r={},set:o,defaults:s}){let a=this.getCommon({name:e,theme:t,params:n,set:o,defaults:s}),l=Object.entries(r).reduce((c,[u,f])=>(c.push(`${u}="${Rn(f)}"`),c),[]).join(" ");return Object.entries(a||{}).reduce((c,[u,f])=>{if(ge(f)&&Object.hasOwn(f,"css")){let p=nt(f.css),h=`${u}-variables`;c.push(`<style type="text/css" data-primevue-style-id="${h}" ${l}>${p}</style>`)}return c},[]).join("")},getStyleSheet({name:e="",theme:t={},params:n,props:r={},set:o,defaults:s}){var a;let l={name:e,theme:t,params:n,set:o,defaults:s},c=(a=e.includes("-directive")?this.getPresetD(l):this.getPresetC(l))==null?void 0:a.css,u=Object.entries(r).reduce((f,[p,h])=>(f.push(`${p}="${Rn(h)}"`),f),[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${e}-variables" ${u}>${nt(c)}</style>`:""},createTokens(e={},t,n="",r="",o={}){let s=function(u,f,p,h){return u.replace(Rt,m=>{var v;let y=m.slice(1,-1),b=this.tokens[y];if(!b)return console.warn(`Token not found for path: ${y}`),"__UNRESOLVED__";let C=b.computed(f,p,h);if(Array.isArray(C)&&C.length===2){let S=C[0].value,R=C[1].value;return S===R?S??"__UNRESOLVED__":`light-dark(${S},${R})`}return(v=C?.value)!=null?v:"__UNRESOLVED__"})},a=function(u,f,p,h){if(u.indexOf("light-dark(")===-1)return u;let m=[],v=u.length,y=0;for(;y<v;){let b=u.indexOf("light-dark(",y);if(b===-1){m.push(u.slice(y));break}m.push(u.slice(y,b));let C=1,S=b+11,R=-1;for(;S<v&&C>0;){let W=u.charCodeAt(S);W===40?C++:W===41?C--:W===44&&C===1&&R===-1&&(R=S),S++}if(C!==0||R===-1){m.push(u.slice(b));break}let O=u.slice(b+11,R).trim(),_=u.slice(R+1,S-1).trim(),$=f&&f!=="none"?f:null;if($==="light")m.push(a.call(this,O,"light",p,h));else if($==="dark")m.push(a.call(this,_,"dark",p,h));else{let W=s.call(this,a.call(this,O,"light",p,h),"light",p,h),H=s.call(this,a.call(this,_,"dark",p,h),"dark",p,h);m.push(W===H?W:`light-dark(${W},${H})`)}y=S}return m.join("")},l=function(u,f={},p=[]){if(p.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:u,path:this.path,paths:f,value:void 0};p.push(this.path),f.name=this.path,f.binding||(f.binding={});let h=this.value;if(typeof this.value=="string"){let m=this.value.trim(),v=m.indexOf("light-dark(")!==-1,y=m.indexOf("{")!==-1;if(v||y){let b=v?a.call(this,m,u,f,p):m,C=b.indexOf("{")!==-1?s.call(this,b,u,f,p):b;Or.lastIndex=0,_r.lastIndex=0,h=Or.test(C.replace(_r,"0"))?`calc(${C})`:C}}return Ke(f.binding)&&delete f.binding,p.pop(),{colorScheme:u,path:this.path,paths:f,value:typeof h=="string"&&h.indexOf("__UNRESOLVED__")!==-1?void 0:h}},c=(u,f,p)=>{Object.entries(u).forEach(([h,m])=>{let v=qe(h,t.variable.excludedKeyRegex)?f:f?`${f}.${Ar(h)}`:Ar(h),y=p?`${p}.${h}`:h;ge(m)?c(m,v,y):(o[v]||(o[v]={paths:[],computed:(b,C={},S=[])=>{let R=o[v].paths;if(R.length===1){let O=R[0],_=O.scheme!=="none"?O.scheme:b;return O.computed(_,C.binding,S)}else if(b&&b!=="none")for(let O=0;O<R.length;O++){let _=R[O];if(_.scheme===b)return _.computed(b,C.binding,S)}return R.map(O=>O.computed(O.scheme,C[O.scheme],S))}}),o[v].paths.push({path:y,value:m,scheme:y.includes("colorScheme.light")?"light":y.includes("colorScheme.dark")?"dark":"none",computed:l,tokens:o}))})};return c(e,n,r),o},getTokenValue(e,t,n){var r,o,s;let a=e.__cache;a||(a=new Map,Object.defineProperty(e,"__cache",{value:a,enumerable:!1,configurable:!0}));let l=a.get(t);if(l!==void 0||a.has(t))return l;let c=n.variable.excludedKeyRegex,u=t.split("."),f=[];for(let y=0;y<u.length;y++){let b=u[y];c.lastIndex=0,c.test(b.toLowerCase())||f.push(b)}let p=f.join("."),h=t.indexOf("colorScheme.light")!==-1?"light":t.indexOf("colorScheme.dark")!==-1?"dark":void 0,m=e[p];if(!m){a.set(t,void 0);return}let v;if(h){let y=m.computed(h);if(Array.isArray(y)){for(let b=0;b<y.length;b++)if(((r=y[b])==null?void 0:r.colorScheme)===h){v=y[b].value;break}}else v=y?.value}else{let y=m.computed("light"),b=m.computed("dark"),C,S;if(Array.isArray(y)){for(let R=0;R<y.length;R++)if(((o=y[R])==null?void 0:o.colorScheme)==="light"){C=y[R].value;break}}else C=y?.value;if(Array.isArray(b)){for(let R=0;R<b.length;R++)if(((s=b[R])==null?void 0:s.colorScheme)==="dark"){S=b[R].value;break}}else S=b?.value;C===void 0&&S===void 0?v=void 0:C===void 0?v=S:S===void 0||C===S?v=C:v=`light-dark(${C},${S})`}return a.set(t,v),v},getSelectorRule(e,t,n,r,o=":root,:host"){return n==="class"||n==="attr"?Wt(J(t)?`${e}${t},${e} ${t}`:e,r):Wt(e,Wt(t??o,r))},transformCSS(e,t,n,r,o={},s,a,l){var c,u;if(J(t)){let{cssLayer:f}=o;if(r!=="style"){let p=this.getColorSchemeOption(o,a),h=(u=(c=a?.variable)==null?void 0:c.selector)!=null?u:":root,:host";t=n==="dark"?p.reduce((m,{type:v,selector:y})=>(J(y)&&(m+=y.includes("[CSS]")?y.replace("[CSS]",t):this.getSelectorRule(y,l,v,t,h)),m),""):Wt(l??h,t)}if(f){let p={name:"primeui",order:"primeui"};ge(f)&&(p.name=K(f.name,{name:e,type:r})),J(p.name)&&(t=Wt(`@layer ${p.name}`,t),s?.layerNames(p.name))}return t}return""}},te={defaults:{variable:{prefix:"p",selector:":root,:host",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1,cssVariables:!0,scoped:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},_scopedTokenPaths:new Set,update(e={}){let{theme:t}=e;t&&(this._theme=kn($e({},t),{options:$e($e({},this.defaults.options),t.options)}),this._tokens=Fe.createTokens(this.preset,this.defaults),this.resetCaches())},get theme(){return this._theme},get preset(){var e;return((e=this.theme)==null?void 0:e.preset)||{}},get options(){var e;return((e=this.theme)==null?void 0:e.options)||{}},get tokens(){return this._tokens},hasScopedTokenPath(e){return this._scopedTokenPaths.has(e)},getScopedTokenPaths(){return[...this._scopedTokenPaths]},addScopedToken(e){let t=!1;return e&&Object.keys(e).length&&er(e).forEach(n=>{let r=Mo(n);this._scopedTokenPaths.has(r)||(this._scopedTokenPaths.add(r),t=!0)}),t},clearScopedTokenPaths(){this._scopedTokenPaths.clear()},getTheme(){return this.theme},setTheme(e){this.update({theme:e}),Ge.emit("theme:change",e)},getPreset(){return this.preset},setPreset(e){this._theme=kn($e({},this.theme),{preset:e}),this._tokens=Fe.createTokens(e,this.defaults),this.resetCaches(),Ge.emit("preset:change",e),Ge.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(e){this._theme=kn($e({},this.theme),{options:e}),this.resetStyleCaches(),Ge.emit("options:change",e),Ge.emit("theme:change",this.theme)},resetStyleCaches(){this.clearLoadedStyleNames(),this.clearLayerNames()},resetCaches(){this.resetStyleCaches(),this.clearScopedTokenPaths()},getLayerNames(){return[...this._layerNames]},setLayerNames(e){this._layerNames.add(e)},clearLayerNames(){this._layerNames.clear()},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(e){return this._loadedStyleNames.has(e)},setLoadedStyleName(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(e){return Fe.getTokenValue(this.tokens,e,this.defaults)},getCommon(e="",t){return Fe.getCommon({name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(e="",t){let n={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Fe.getPresetC(n)},getDirective(e="",t){let n={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Fe.getPresetD(n)},getCustomPreset(e="",t,n,r){let o={name:e,preset:t,options:this.options,selector:n,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)},isScopedTokenPaths:!0};return Fe.getPreset(o)},getLayerOrderCSS(e=""){return Fe.getLayerOrder(e,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(e="",t,n="style",r){return Fe.transformCSS(e,t,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(e="",t,n={}){return Fe.getCommonStyleSheet({name:e,theme:this.theme,params:t,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(e,t,n={}){return Fe.getStyleSheet({name:e,theme:this.theme,params:t,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(e){this._loadingStyles.add(e)},onStyleUpdated(e){this._loadingStyles.add(e)},onStyleLoaded(e,{name:t}){this._loadingStyles.size&&(this._loadingStyles.delete(t),Ge.emit(`theme:${t}:load`,e),this._loadingStyles.size||Ge.emit("theme:load"))}};var za=class{constructor({attrs:e}={}){this._styles=new Map,this._attrs=e||{}}get(e){return this._styles.get(e)}has(e){return this._styles.has(e)}delete(e){this._styles.delete(e)}clear(){this._styles.clear()}add(e,t){if(J(t)){let n={name:e,css:t,attrs:this._attrs,markup:Jo(t,this._attrs)};this._styles.set(e,kn($e({},n),{element:this.createStyleElement(n)}))}}update(){}getStyles(){return this._styles}getAllCSS(){return[...this._styles.values()].map(e=>e.css).filter(e=>!!e)}getAllMarkup(){return[...this._styles.values()].map(e=>e.markup).filter(e=>!!e)}getAllElements(){return[...this._styles.values()].map(e=>e.element)}createStyleElement(e={}){}},xs=za;var pe=ne(ee());var ht=ne(ee());function Mr(){let e=ht.useContext(Xe),t=ht.useCallback((o={})=>{let{name:s,css:a,element:l,options:c={}}=o;if(Ae()&&J(a)){let u=l?.getRootNode();(!u||u===document)&&(u=document.head);let f=u.querySelector(`style[data-primereact-style-id="${s}"]`)||document.createElement("style");f.isConnected||(c?.first?u.prepend(f):u.appendChild(f),f.setAttribute("data-primereact-style-id",s||""));let p=a??"";return f.textContent!==p&&(f.textContent=p),f}},[]),n=ht.useCallback((o={})=>{let{name:s,css:a}=o;if(J(o.css))return s&&!e?.stylesheet?.has(s)&&!Ae()&&s!=="layer-order"&&e?.stylesheet?.add(s,a),t(o)},[e,t]),r=ht.useCallback(()=>{e?.stylesheet&&e.stylesheet.clear()},[e]);return ht.useInsertionEffect(()=>{e?.stylesheet?.getStyles()?.forEach((o,s)=>{t({name:s,css:o?.css})})},[e,t]),[n,r]}var Ka={};var Kt=ne(ee());function Ss(e,t){let n=Kt.useContext(Xe),[r]=Mr(),o=Kt.useCallback((s,a)=>r({name:a?.name,css:s,element:Ht(t),options:a}),[r,t]);return Kt.useMemo(()=>{let s={name:"base",...e,load(a="",l={},c="",u=!1){let f=l.name||s.name,p=zt`${a}${c}`,h=u?te.transformCSS(f,p):p;return J(h)?o(nt(h),{name:f,...l}):void 0},loadCSS(a){return this.load(this.css,a)},loadStyle(a,l=""){return this.load(this.style,a,l,!0)},getCommonTheme(a){return te.getCommon(this.name,a)},getComponentTheme(a){return te.getComponent(this.name,a)},getPresetTheme(a,l,c){return te.getCustomPreset(this.name,a,l,c)},getLayerOrderThemeCSS(){return te.getLayerOrderCSS(this.name)},getStyleSheet(a="",l={}){if(this.css){let c=K(this.css,{dt:mt}),u=nt(zt`${c}${a}`),f=Object.entries(l).reduce((p,[h,m])=>(p.push(`${h}="${m}"`),p),[]).join(" ");return`<style type="text/css" data-primereact-style-id="${this.name}" ${f}>${u}</style>`}return""},getCommonThemeStyleSheet(a,l={}){return te.getCommonStyleSheet(this.name,a,l)},getThemeStyleSheet(a,l={}){let c=[te.getStyleSheet(this.name,a,l)];if(n){let u=this.name==="base"?"global-style":`${this.name}-style`,f=zt`${K(n,{dt:mt})}`,p=nt(te.transformCSS(this.name,f)),h=Object.entries(l).reduce((m,[v,y])=>(m.push(`${v}="${y}"`),m),[]).join(" ");c.push(`<style type="text/css" data-primereact-style-id="${u}" ${h}>${p}</style>`)}return c.join("")}};return s},[e,n,o])}function Es(e,t,n){let{props:r={unstyled:!1,dt:void 0},$primereact:o,$attrSelector:s,elementRef:a}=e||{},l=Ss(t,a),c=pe.useMemo(()=>r.unstyled!==void 0?r.unstyled:o?.config?.unstyled,[r.unstyled,o?.config?.unstyled]),u=pe.useMemo(()=>({nonce:o?.config?.csp?.nonce}),[o?.config?.csp?.nonce]),f=pe.useRef(null),p=pe.useRef(!1),h=pe.useRef(null),m=pe.useRef(null),v=pe.useRef(!1);if(Sr){let _=t?.style,$=typeof _=="string"?_:null;$!==null&&m.current!==$&&(m.current=$,v.current=!0)}let y=pe.useCallback(()=>{if(!l?.name)return;let _=l.name==="global"?"base":l.name;if(!Ae()){l.loadCSS({name:_,...u});return}h.current&&h.current!==l.name&&(Et.releaseStyleName(h.current),h.current=null);let $=v.current;($||!h.current)&&(($||Et.retainStyleName(l.name))&&l.loadCSS({name:_,...u}),h.current=l.name)},[l,u]),b=pe.useCallback(()=>{if(c||o?.theme==="none")return;let _=()=>{let{primitive:Z,semantic:U,global:k,style:M}=l?.getCommonTheme?.()||{};l.load(Z?.css,{name:"primitive-variables",...u}),l.load(U?.css,{name:"semantic-variables",...u}),l.load(k?.css,{name:"global-variables",...u}),l.load(l.baseStyles?.style,{name:"global-style",...u},M,!0)},$=()=>{let{css:Z,style:U}=l?.getComponentTheme?.()||{};l.load(Z,{name:`${l.name}-variables`,...u}),l.loadStyle({name:`${l.name}-style`,...u},U)},W=()=>{let Z=l?.getLayerOrderThemeCSS?.();l.load(Z,{name:"layer-order",first:!0,...u})};if(!Ae()){_(),l?.name&&$(),W();return}let H=v.current;(H||!te.isStyleNameLoaded("common"))&&(_(),te.setLoadedStyleName("common")),(H||!te.isStyleNameLoaded(l?.name))&&l?.name&&($(),te.setLoadedStyleName(l.name)),(H||!te.isStyleNameLoaded("layer-order"))&&(W(),te.setLoadedStyleName("layer-order"))},[c,l,u]),C=pe.useCallback(()=>{let{css:_}=l.baseStyles||{};if(!Ae()){l.load(_,{name:"base",...u}),b();return}let $=v.current;($||!p.current)&&(p.current=!0,($||Et.retainStyleName("base"))&&l.load(_,{name:"base",...u})),b(),v.current=!1},[l,u,b]),S=pe.useCallback(_=>{o?.theme?.options?.cssVariables===!1&&l?.name&&te.addScopedToken({[l.name]:_})&&(te.deleteLoadedStyleName(l.name),b());let{css:$}=l?.getPresetTheme?.(_,`[${s}]`)||{},W=l?.load($,{name:`${s}-${l.name}`,...u});f.current=W||null},[l,s,u,b,o?.theme]),R=pe.useCallback((_="",$={})=>c?void 0:tn(Ie(l.classes,_,{...n,context:$})),[c,n,l.classes]),O=pe.useCallback((_="",$=!0,W={})=>{if($){let H=Ie(l.inlineStyles,_,{...n,context:W});return{...Ie(l.baseStyles?.inlineStyles,_,{...n,context:W}),...H}}},[l.inlineStyles,l.baseStyles?.inlineStyles,n]);return!Ae()&&!c&&(y(),C(),S(r.dt)),pe.useInsertionEffect(()=>{!Ae()||c||(y(),C())},[c,y,C]),pe.useEffect(()=>{if(!Ae()||c||o?.theme==="none")return;let _=()=>{b(),S(r.dt)};return Ge.on("theme:change",_),()=>{Ge.off("theme:change",_)}},[c,o?.theme,b,S,r.dt]),pe.useInsertionEffect(()=>{if(!(!Ae()||c))return f.current?.remove(),f.current=null,S(r.dt),()=>{f.current?.remove(),f.current=null}},[c,r.dt,S]),pe.useEffect(()=>{if(Ae())return()=>{p.current&&(Et.releaseStyleName("base"),p.current=!1),h.current&&(Et.releaseStyleName(h.current),h.current=null)}},[]),pe.useMemo(()=>({cx:R,sx:O,isUnstyled:c,$style:l}),[R,O,c,l])}function Dr(e="UnknownComponent",t={}){let n=qt.useMemo(()=>({..._n,...t.defaultProps}),[t.defaultProps]),r=rn(e,{type:t.type,inProps:t.inProps,defaultProps:n,setup:t.setup}),{ref:o,props:s}=r,a=qt.useMemo(()=>({instance:r,props:r.props,attrs:r.attrs,state:r.state}),[r.props,r.attrs,r.state]),l=ms(r,a),c=Es(r,s.styles||t.styles,a),u=qt.useMemo(()=>({...r,...l,...c}),[r,l,c]);return qt.useImperativeHandle(o,()=>u,[u]),u}var Dn=ne(ee());function on({name:e="UnknownComponent",type:t="primitive",defaultProps:n,styles:r,components:o,setup:s,render:a}){let c=Dn.memo(u=>{let f=Dr(e,{type:t,inProps:u,defaultProps:n,styles:r,setup:s}),p=a??(()=>null);return f.props.pIf?Dn.createElement(p,{...f}):null},(u,f)=>{if(!ge(u)||!ge(f))return!1;let p=u,h=f,m=Object.keys(p);if(m.length!==Object.keys(h).length)return!1;for(let v of m){let y=p[v],b=h[v];if(typeof y=="function"||typeof b=="function"){if(y!==b)return!1;continue}if(!Object.is(y,b))return!1}return!0});return c.displayName=`PrimeReact.${e}`,Object.entries(o||{}).forEach(([u,f])=>{c[u]=f}),c}var Cs=ne(ee());var Nr={as:"i",size:void 0,rotate:void 0,flip:void 0,spin:!1};var sn={name:"icon",classes:{root:({props:e})=>["p-icon",{"p-icon-spin":e.spin,"p-icon-flip-horizontal":e.flip==="horizontal","p-icon-flip-vertical":e.flip==="vertical"}]},inlineStyles:{root:({props:e})=>({...e.size?{[Lr("icon.size").name]:e.size}:void 0,...e.rotate?{[Lr("icon.rotate").name]:`${e.rotate}deg`}:void 0})}};var ws=ne(ee());function $r(e="UnknownHeadless",t={}){return rn(e,t)}function an({name:e,type:t="headless",defaultProps:n,setup:r}){return o=>$r(e,{type:t,inProps:o,defaultProps:n,setup:r})}var Rs=ne(ee()),Hr=an({name:"useIcon",setup({attrs:e}){let t=e["aria-label"],n=e.tabIndex;return{pti:Rs.useCallback(()=>{let o=Ke(t);return{role:o?void 0:"img","aria-hidden":Ke(n)&&o}},[t,n])}}});function jr({name:e,defaultProps:t,styles:n,components:r,setup:o,render:s}){return on({name:`${e??"Unknown"}Icon`,defaultProps:t,styles:n,components:r,setup(a){let l=Hr(a?.inProps),c=K(o,a);return ws.useMemo(()=>({...l,...c}),[l,c])},render:s})}var qa=jr({name:"Icon",styles:sn,defaultProps:Nr,render(e){let{id:t,props:n,ptmi:r,pti:o,cx:s,sx:a}=e,l=ut({id:t,style:a("root"),className:s("root")},o?.(),r("root"));return Cs.createElement(Ft,{instance:e,attrs:l,children:n.children})}});var ot=ne(ee());var Br={preset:void 0,prefix:"p",darkModeSelector:"system",cssLayer:!1,cssVariables:!0,scoped:!1,stylesheet:void 0};var Xe=ot.createContext(null),Ur=(e={})=>{let{props:t}=Ye(Br,e),{stylesheet:n,preset:r,...o}=t,s={preset:r,stylesheet:n,...o};te.setTheme({preset:r,options:o});let a=ot.useMemo(()=>nt(zt`${sn.css}`)||"",[]);return ot.useMemo(()=>{J(a)&&nn.register({id:"icon",css:a,phase:"both",priority:10})},[a]),Ae()||wr(n,nn.getForSSR()),ot.useInsertionEffect(()=>{Ae()&&Cr(nn.getForClient())},[]),ot.createElement(Xe.Provider,{value:s},K(e.children,s))};var Ps=ne(ee());function Ya(){let e=Ps.useContext(Xe);if(e===void 0)throw new Error("Context must be used within a ThemeProvider");return e}var Ga={p:0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffedn,n:0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3edn,h:8n,a:0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffecn,d:0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3n,Gx:0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51an,Gy:0x6666666666666666666666666666666666666666666666666666666666666658n},{p:Te,n:Nn,Gx:Ts,Gy:Os,a:Fr,d:Vr}=Ga,Xa=8n,ln=32,Wr=64,ke=(e="")=>{throw new Error(e)},Za=e=>typeof e=="bigint",Ms=e=>typeof e=="string",Qa=e=>e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array",Gt=(e,t)=>!Qa(e)||typeof t=="number"&&t>0&&e.length!==t?ke("Uint8Array expected"):e,Bn=e=>new Uint8Array(e),Yr=e=>Uint8Array.from(e),Ds=(e,t)=>e.toString(16).padStart(t,"0"),Gr=e=>Array.from(Gt(e)).map(t=>Ds(t,2)).join(""),st={_0:48,_9:57,A:65,F:70,a:97,f:102},_s=e=>{if(e>=st._0&&e<=st._9)return e-st._0;if(e>=st.A&&e<=st.F)return e-(st.A-10);if(e>=st.a&&e<=st.f)return e-(st.a-10)},Xr=e=>{let t="hex invalid";if(!Ms(e))return ke(t);let n=e.length,r=n/2;if(n%2)return ke(t);let o=Bn(r);for(let s=0,a=0;s<r;s++,a+=2){let l=_s(e.charCodeAt(a)),c=_s(e.charCodeAt(a+1));if(l===void 0||c===void 0)return ke(t);o[s]=l*16+c}return o},$n=(e,t)=>Gt(Ms(e)?Xr(e):Yr(Gt(e)),t),Ns=()=>globalThis?.crypto,Ja=()=>Ns()?.subtle??ke("crypto.subtle must be defined"),zr=(...e)=>{let t=Bn(e.reduce((r,o)=>r+Gt(o).length,0)),n=0;return e.forEach(r=>{t.set(r,n),n+=r.length}),t},el=(e=ln)=>Ns().getRandomValues(Bn(e)),Hn=BigInt,wt=(e,t,n,r="bad number: out of range")=>Za(e)&&t<=e&&e<n?e:ke(r),A=(e,t=Te)=>{let n=e%t;return n>=0n?n:t+n},tl=e=>A(e,Nn),$s=(e,t)=>{(e===0n||t<=0n)&&ke("no inverse n="+e+" mod="+t);let n=A(e,t),r=t,o=0n,s=1n,a=1n,l=0n;for(;n!==0n;){let c=r/n,u=r%n,f=o-a*c,p=s-l*c;r=n,n=u,o=a,s=l,a=f,l=p}return r===1n?A(o,t):ke("no inverse")},nl=e=>{let t=cn[e];return typeof t!="function"&&ke("hashes."+e+" not set"),t},As=e=>e instanceof it?e:ke("Point expected"),Kr=2n**256n,it=class e{static BASE;static ZERO;ex;ey;ez;et;constructor(t,n,r,o){let s=Kr;this.ex=wt(t,0n,s),this.ey=wt(n,0n,s),this.ez=wt(r,1n,s),this.et=wt(o,0n,s),Object.freeze(this)}static fromAffine(t){return new e(t.x,t.y,1n,A(t.x*t.y))}static fromBytes(t,n=!1){let r=Vr,o=Yr(Gt(t,ln)),s=t[31];o[31]=s&-129;let a=Zr(o);wt(a,0n,n?Kr:Te);let c=A(a*a),u=A(c-1n),f=A(r*c+1n),{isValid:p,value:h}=sl(u,f);p||ke("bad point: y not sqrt");let m=(h&1n)===1n,v=(s&128)!==0;return!n&&h===0n&&v&&ke("bad point: x==0, isLastByteOdd"),v!==m&&(h=A(-h)),new e(h,a,1n,A(h*a))}assertValidity(){let t=Fr,n=Vr,r=this;if(r.is0())throw new Error("bad point: ZERO");let{ex:o,ey:s,ez:a,et:l}=r,c=A(o*o),u=A(s*s),f=A(a*a),p=A(f*f),h=A(c*t),m=A(f*A(h+u)),v=A(p+A(n*A(c*u)));if(m!==v)throw new Error("bad point: equation left != right (1)");let y=A(o*s),b=A(a*l);if(y!==b)throw new Error("bad point: equation left != right (2)");return this}equals(t){let{ex:n,ey:r,ez:o}=this,{ex:s,ey:a,ez:l}=As(t),c=A(n*l),u=A(s*o),f=A(r*l),p=A(a*o);return c===u&&f===p}is0(){return this.equals(Yt)}negate(){return new e(A(-this.ex),this.ey,this.ez,A(-this.et))}double(){let{ex:t,ey:n,ez:r}=this,o=Fr,s=A(t*t),a=A(n*n),l=A(2n*A(r*r)),c=A(o*s),u=t+n,f=A(A(u*u)-s-a),p=c+a,h=p-l,m=c-a,v=A(f*h),y=A(p*m),b=A(f*m),C=A(h*p);return new e(v,y,C,b)}add(t){let{ex:n,ey:r,ez:o,et:s}=this,{ex:a,ey:l,ez:c,et:u}=As(t),f=Fr,p=Vr,h=A(n*a),m=A(r*l),v=A(s*p*u),y=A(o*c),b=A((n+r)*(a+l)-h-m),C=A(y-v),S=A(y+v),R=A(m-f*h),O=A(b*C),_=A(S*R),$=A(b*R),W=A(C*S);return new e(O,_,W,$)}multiply(t,n=!0){if(!n&&(t===0n||this.is0()))return Yt;if(wt(t,1n,Nn),t===1n)return this;if(this.equals(Xt))return dl(t).p;let r=Yt,o=Xt;for(let s=this;t>0n;s=s.double(),t>>=1n)t&1n?r=r.add(s):n&&(o=o.add(s));return r}toAffine(){let{ex:t,ey:n,ez:r}=this;if(this.equals(Yt))return{x:0n,y:1n};let o=$s(r,Te);return A(r*o)!==1n&&ke("invalid inverse"),{x:A(t*o),y:A(n*o)}}toBytes(){let{x:t,y:n}=this.assertValidity().toAffine(),r=rl(n);return r[31]|=t&1n?128:0,r}toHex(){return Gr(this.toBytes())}clearCofactor(){return this.multiply(Hn(Xa),!1)}isSmallOrder(){return this.clearCofactor().is0()}isTorsionFree(){let t=this.multiply(Nn/2n,!1).double();return Nn%2n&&(t=t.add(this)),t.is0()}static fromHex(t,n){return e.fromBytes($n(t),n)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}toRawBytes(){return this.toBytes()}},Xt=new it(Ts,Os,1n,A(Ts*Os)),Yt=new it(0n,1n,1n,0n);it.BASE=Xt;it.ZERO=Yt;var rl=e=>Xr(Ds(wt(e,0n,Kr),Wr)).reverse(),Zr=e=>Hn("0x"+Gr(Yr(Gt(e)).reverse())),Ze=(e,t)=>{let n=e;for(;t-- >0n;)n*=n,n%=Te;return n},ol=e=>{let n=e*e%Te*e%Te,r=Ze(n,2n)*n%Te,o=Ze(r,1n)*e%Te,s=Ze(o,5n)*o%Te,a=Ze(s,10n)*s%Te,l=Ze(a,20n)*a%Te,c=Ze(l,40n)*l%Te,u=Ze(c,80n)*c%Te,f=Ze(u,80n)*c%Te,p=Ze(f,10n)*s%Te;return{pow_p_5_8:Ze(p,2n)*e%Te,b2:n}},Is=0x2b8324804fc1df0b2b4d00993dfbd7a72f431806ad2fe478c4ee1b274a0ea0b0n,sl=(e,t)=>{let n=A(t*t*t),r=A(n*n*t),o=ol(e*r).pow_p_5_8,s=A(e*n*o),a=A(t*s*s),l=s,c=A(s*Is),u=a===e,f=a===A(-e),p=a===A(-e*Is);return u&&(s=l),(f||p)&&(s=c),(A(s)&1n)===1n&&(s=A(-s)),{isValid:u||f,value:s}},il=e=>tl(Zr(e));var al=(...e)=>nl("sha512Sync")(...e);var ll=e=>e.finish(al(e.hashable));var Hs={zip215:!0},cl=(e,t,n,r=Hs)=>{e=$n(e,Wr),t=$n(t),n=$n(n,ln);let{zip215:o}=r,s,a,l,c,u=Uint8Array.of();try{s=it.fromHex(n,o),a=it.fromHex(e.slice(0,ln),o),l=Zr(e.slice(ln,Wr)),c=Xt.multiply(l,!1),u=zr(a.toBytes(),s.toBytes(),t)}catch{}return{hashable:u,finish:p=>{if(c==null||!o&&s.isSmallOrder())return!1;let h=il(p);return a.add(s.multiply(h,!1)).add(c.negate()).clearCofactor().is0()}}};var js=(e,t,n,r=Hs)=>ll(cl(e,t,n,r)),cn={sha512Async:async(...e)=>{let t=Ja(),n=zr(...e);return Bn(await t.digest("SHA-512",n.buffer))},sha512Sync:void 0,bytesToHex:Gr,hexToBytes:Xr,concatBytes:zr,mod:A,invert:$s,randomBytes:el};var jn=8,ul=256,Bs=Math.ceil(ul/jn)+1,qr=2**(jn-1),fl=()=>{let e=[],t=Xt,n=t;for(let r=0;r<Bs;r++){n=t,e.push(n);for(let o=1;o<qr;o++)n=n.add(t),e.push(n);t=n.double()}return e},ks,Ls=(e,t)=>{let n=t.negate();return e?n:t},dl=e=>{let t=ks||(ks=fl()),n=Yt,r=Xt,o=2**jn,s=o,a=Hn(o-1),l=Hn(jn);for(let c=0;c<Bs;c++){let u=Number(e&a);e>>=l,u>qr&&(u-=s,e+=1n);let f=c*qr,p=f,h=f+Math.abs(u)-1,m=c%2!==0,v=u<0;u===0?r=r.add(Ls(m,t[p])):n=n.add(Ls(v,t[h]))}return{p:n,f:r}};function ml(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in e&&e.BYTES_PER_ELEMENT===1}function Qr(e,t,n=""){let r=ml(e),o=e?.length,s=t!==void 0;if(!r||s&&o!==t){let a=n&&`"${n}" `,l=s?` of length ${t}`:"",c=r?`length=${o}`:`type=${typeof e}`,u=a+"expected Uint8Array"+l+", got "+c;throw r?new RangeError(u):new TypeError(u)}return e}function Jr(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Us(e,t){Qr(e,void 0,"digestInto() output");let n=t.outputLen;if(e.length<n)throw new RangeError('"digestInto() output" expected to be of length >='+n)}function un(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Un(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Fs(e,t={}){let n=(o,s)=>e(s).update(o).digest(),r=e(void 0);return n.outputLen=r.outputLen,n.blockLen=r.blockLen,n.canXOF=r.canXOF,n.create=o=>e(o),Object.assign(n,t),Object.freeze(n)}var Vs=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});var Fn=class{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(t,n,r,o){this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=o,this.buffer=new Uint8Array(t),this.view=Un(this.buffer)}update(t){Jr(this),Qr(t);let{view:n,buffer:r,blockLen:o}=this,s=t.length;for(let a=0;a<s;){let l=Math.min(o-this.pos,s-a);if(l===o){let c=Un(t);for(;o<=s-a;a+=o)this.process(c,a);continue}r.set(t.subarray(a,a+l),this.pos),this.pos+=l,a+=l,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Jr(this),Us(t,this),this.finished=!0;let{buffer:n,view:r,blockLen:o,isLE:s}=this,{pos:a}=this;n[a++]=128,un(this.buffer.subarray(a)),this.padOffset>o-a&&(this.process(r,0),a=0);for(let p=a;p<o;p++)n[p]=0;r.setBigUint64(o-8,BigInt(this.length*8),s),this.process(r,0);let l=Un(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen must be aligned to 32bit");let u=c/4,f=this.get();if(u>f.length)throw new Error("_sha2: outputLen bigger than state");for(let p=0;p<u;p++)l.setUint32(4*p,f[p],s)}digest(){let{buffer:t,outputLen:n}=this;this.digestInto(t);let r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||=new this.constructor,t.set(...this.get());let{blockLen:n,buffer:r,length:o,finished:s,destroyed:a,pos:l}=this;return t.destroyed=a,t.finished=s,t.length=o,t.pos=l,o%n&&t.buffer.set(r),t}clone(){return this._cloneInto()}};var we=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]);var Vn=BigInt(4294967295),Ws=BigInt(32);function hl(e,t=!1){return t?{h:Number(e&Vn),l:Number(e>>Ws&Vn)}:{h:Number(e>>Ws&Vn)|0,l:Number(e&Vn)|0}}function zs(e,t=!1){let n=e.length,r=new Uint32Array(n),o=new Uint32Array(n);for(let s=0;s<n;s++){let{h:a,l}=hl(e[s],t);[r[s],o[s]]=[a,l]}return[r,o]}var eo=(e,t,n)=>e>>>n,to=(e,t,n)=>e<<32-n|t>>>n,Ct=(e,t,n)=>e>>>n|t<<32-n,Pt=(e,t,n)=>e<<32-n|t>>>n,fn=(e,t,n)=>e<<64-n|t>>>n-32,dn=(e,t,n)=>e>>>n-32|t<<64-n;function Qe(e,t,n,r){let o=(t>>>0)+(r>>>0);return{h:e+n+(o/2**32|0)|0,l:o|0}}var Ks=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),qs=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,Ys=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),Gs=(e,t,n,r,o)=>t+n+r+o+(e/2**32|0)|0,Xs=(e,t,n,r,o)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(o>>>0),Zs=(e,t,n,r,o,s)=>t+n+r+o+s+(e/2**32|0)|0;var Qs=zs(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),gl=Qs[0],vl=Qs[1],yt=new Uint32Array(80),gt=new Uint32Array(80),no=class extends Fn{constructor(t){super(128,t,16,!1)}get(){let{Ah:t,Al:n,Bh:r,Bl:o,Ch:s,Cl:a,Dh:l,Dl:c,Eh:u,El:f,Fh:p,Fl:h,Gh:m,Gl:v,Hh:y,Hl:b}=this;return[t,n,r,o,s,a,l,c,u,f,p,h,m,v,y,b]}set(t,n,r,o,s,a,l,c,u,f,p,h,m,v,y,b){this.Ah=t|0,this.Al=n|0,this.Bh=r|0,this.Bl=o|0,this.Ch=s|0,this.Cl=a|0,this.Dh=l|0,this.Dl=c|0,this.Eh=u|0,this.El=f|0,this.Fh=p|0,this.Fl=h|0,this.Gh=m|0,this.Gl=v|0,this.Hh=y|0,this.Hl=b|0}process(t,n){for(let R=0;R<16;R++,n+=4)yt[R]=t.getUint32(n),gt[R]=t.getUint32(n+=4);for(let R=16;R<80;R++){let O=yt[R-15]|0,_=gt[R-15]|0,$=Ct(O,_,1)^Ct(O,_,8)^eo(O,_,7),W=Pt(O,_,1)^Pt(O,_,8)^to(O,_,7),H=yt[R-2]|0,Z=gt[R-2]|0,U=Ct(H,Z,19)^fn(H,Z,61)^eo(H,Z,6),k=Pt(H,Z,19)^dn(H,Z,61)^to(H,Z,6),M=Ys(W,k,gt[R-7],gt[R-16]),j=Gs(M,$,U,yt[R-7],yt[R-16]);yt[R]=j|0,gt[R]=M|0}let{Ah:r,Al:o,Bh:s,Bl:a,Ch:l,Cl:c,Dh:u,Dl:f,Eh:p,El:h,Fh:m,Fl:v,Gh:y,Gl:b,Hh:C,Hl:S}=this;for(let R=0;R<80;R++){let O=Ct(p,h,14)^Ct(p,h,18)^fn(p,h,41),_=Pt(p,h,14)^Pt(p,h,18)^dn(p,h,41),$=p&m^~p&y,W=h&v^~h&b,H=Xs(S,_,W,vl[R],gt[R]),Z=Zs(H,C,O,$,gl[R],yt[R]),U=H|0,k=Ct(r,o,28)^fn(r,o,34)^fn(r,o,39),M=Pt(r,o,28)^dn(r,o,34)^dn(r,o,39),j=r&s^r&l^s&l,fe=o&a^o&c^a&c;C=y|0,S=b|0,y=m|0,b=v|0,m=p|0,v=h|0,{h:p,l:h}=Qe(u|0,f|0,Z|0,U|0),u=l|0,f=c|0,l=s|0,c=a|0,s=r|0,a=o|0;let ae=Ks(U,M,fe);r=qs(ae,Z,k,j),o=ae|0}({h:r,l:o}=Qe(this.Ah|0,this.Al|0,r|0,o|0)),{h:s,l:a}=Qe(this.Bh|0,this.Bl|0,s|0,a|0),{h:l,l:c}=Qe(this.Ch|0,this.Cl|0,l|0,c|0),{h:u,l:f}=Qe(this.Dh|0,this.Dl|0,u|0,f|0),{h:p,l:h}=Qe(this.Eh|0,this.El|0,p|0,h|0),{h:m,l:v}=Qe(this.Fh|0,this.Fl|0,m|0,v|0),{h:y,l:b}=Qe(this.Gh|0,this.Gl|0,y|0,b|0),{h:C,l:S}=Qe(this.Hh|0,this.Hl|0,C|0,S|0),this.set(r,o,s,a,l,c,u,f,p,h,m,v,y,b,C,S)}roundClean(){un(yt,gt)}destroy(){this.destroyed=!0,un(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},ro=class extends no{Ah=we[0]|0;Al=we[1]|0;Bh=we[2]|0;Bl=we[3]|0;Ch=we[4]|0;Cl=we[5]|0;Dh=we[6]|0;Dl=we[7]|0;Eh=we[8]|0;El=we[9]|0;Fh=we[10]|0;Fl=we[11]|0;Gh=we[12]|0;Gl=we[13]|0;Hh=we[14]|0;Hl=we[15]|0;constructor(){super(64)}};var Js=Fs(()=>new ro,Vs(3));var bl=Object.defineProperty,ei=Object.getOwnPropertySymbols,xl=Object.prototype.hasOwnProperty,Sl=Object.prototype.propertyIsEnumerable,ti=(e,t,n)=>t in e?bl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ai=(e,t,n)=>new Promise((r,o)=>{var s=c=>{try{l(n.next(c))}catch(u){o(u)}},a=c=>{try{l(n.throw(c))}catch(u){o(u)}},l=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,a);l((n=n.apply(e,t)).next())});function ni(e){let t={};for(let c=0;c<64;c++)t["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"[c]]=c;let n=e.replace(/=+$/,""),r=Math.floor(6*n.length/8),o=new Uint8Array(r),s=0,a=0,l=0;for(let c=0;c<n.length;c++){let u=t[n[c]];if(u===void 0)throw new Error("Invalid base64url character");s=s<<6|u,a+=6,a>=8&&(a-=8,o[l++]=s>>a&255)}return o}var El="primeui",oo="primeui-pro:",ri={primeui:"primeui",scheduler:"primeui-pro:scheduler",texteditor:"primeui-pro:text-editor",charts:"primeui-pro:charts",diagram:"primeui-pro:diagram",pdfviewer:"primeui-pro:pdf-viewer",taskboard:"primeui-pro:task-board",datagrid:"primeui-pro:datagrid",ganttchart:"primeui-pro:gantt-chart",filemanager:"primeui-pro:file-manager"},li={primeui:"PrimeUI",scheduler:"Scheduler",texteditor:"TextEditor",charts:"Charts",diagram:"Diagram",pdfviewer:"PDF Viewer",taskboard:"Task Board",datagrid:"DataGrid",ganttchart:"Gantt",filemanager:"File Manager"};function io(e,t="PrimeUI"){switch(e){case"active":return`${t} license is active.`;case"grace":return`${t} license is in its grace period. Renew soon to keep using this version.`;case"expired":return`${t} license does not cover this version. Renew at primeui.store, or downgrade to a version released within your updates window.`;case"tampered":return`${t} license signature is invalid.`;case"wrong-product":return`License does not cover ${t}.`;case"missing":return`No license key configured for ${t}.`;case"invalid":return`${t} license is malformed.`;case"unconfigured":return`${t} license is not configured.`;default:return`${t} license status unknown.`}}var oi=864e5;function Le(e,t,n={}){return((r,o)=>{for(var s in o||(o={}))xl.call(o,s)&&ti(r,s,o[s]);if(ei)for(var s of ei(o))Sl.call(o,s)&&ti(r,s,o[s]);return r})({valid:e==="active"||e==="grace",status:e,message:io(e,t)},n)}function si(e,t){return ai(this,null,function*(){var n,r;let o=t.productLabel;if(typeof e!="string"||!e.includes("."))return Le("invalid",o);let s=e.split(".");if(s.length!==2)return Le("invalid",o);let[a,l]=s,c,u,f;try{c=(function(S){let R=ni(S),O=new TextDecoder().decode(R);return JSON.parse(O)})(a)}catch{return Le("invalid",o)}if(!c||typeof c!="object"||typeof c.product!="string"||typeof c.type!="string"||typeof c.exp!="number"||typeof c.iat!="number"||typeof c.id!="string")return Le("invalid",o);try{u=ni(l),f=new TextEncoder().encode(a)}catch{return Le("invalid",o)}let p=(n=t.publicKeyOverride)!=null?n:"dae75e66b9f59bebf87d4bb29ca6494f37deccfcc2b132b98ee159ee7505373b",h;try{h=(function(S){if(S.length%2!=0)throw new Error("Invalid hex length");let R=new Uint8Array(S.length/2);for(let O=0;O<R.length;O++)R[O]=parseInt(S.substr(2*O,2),16);return R})(p)}catch{return Le("invalid",o)}let m=!1;try{cn.sha512Sync||(cn.sha512Sync=(...S)=>Js(cn.concatBytes(...S))),m=js(u,f,h)}catch{return Le("tampered",o,{payload:c})}if(!m)return Le("tampered",o,{payload:c});if(!(function(S,R){return S.product===R||!(!R.startsWith(oo)||S.product!==El||S.tier!=="commercial")})(c,t.product))return Le("wrong-product",o,{payload:c});let v=1e3*c.exp,y=Date.now(),b=Math.floor((v-y)/oi),C=(function(S){if(S===void 0)return null;if(typeof S=="number")return 1e3*S;let R=Date.parse(S);return Number.isNaN(R)?null:R})(t.releaseDate);if(C!==null&&C>v)return Le("expired",o,{daysUntilExpiry:b,payload:c});if((function(S){return S.tier==="community"})(c)){if(y>v+((r=t.graceDays)!=null?r:30)*oi)return Le("expired",o,{daysUntilExpiry:b,payload:c});if(y>v)return Le("grace",o,{daysUntilExpiry:b,payload:c})}return Le("active",o,{daysUntilExpiry:b,payload:c})})}function ii(e,t){return{valid:!1,status:e,message:io(e,t)}}function Rl(e,t){let n=t?.graceDays,r=t?.publicKeyOverride;return{verify(o,s){return ai(this,null,function*(){var a;let l=ri[o],c=(a=li[o])!=null?a:"PrimeUI",u=s?.releaseDate;if(!l)return ii("invalid",c);let f=e[o],p=e.primeui;if(f){let h=yield si(f,{product:l,productLabel:c,releaseDate:u,graceDays:n,publicKeyOverride:r});if(h.valid||h.status!=="wrong-product")return h}return p&&o!=="primeui"&&l.startsWith(oo)?si(p,{product:l,productLabel:c,releaseDate:u,graceDays:n,publicKeyOverride:r}):ii(f?"wrong-product":"missing",c)})},has(o){let s=ri[o];return!!s&&(!!e[o]||o!=="primeui"&&s.startsWith(oo)&&!!e.primeui)}}}var so=null;function ci(e,t){if(!e)throw new Error("[@primeui/license-manager] registerLicense: keys argument is required.");return so=Rl(e,t)}function ui(e,t){var n;if(!so){let r=(n=li[e])!=null?n:"PrimeUI";return Promise.resolve({valid:!1,status:"unconfigured",message:io("unconfigured",r)})}return so.verify(e,t)}var Oe=ne(ee());var ao={csp:{nonce:void 0},defaults:void 0,filterMatchModeOptions:{text:[xe.STARTS_WITH,xe.CONTAINS,xe.NOT_CONTAINS,xe.ENDS_WITH,xe.EQUALS,xe.NOT_EQUALS],numeric:[xe.EQUALS,xe.NOT_EQUALS,xe.LESS_THAN,xe.LESS_THAN_OR_EQUAL_TO,xe.GREATER_THAN,xe.GREATER_THAN_OR_EQUAL_TO],date:[xe.DATE_IS,xe.DATE_IS_NOT,xe.DATE_BEFORE,xe.DATE_AFTER]},inputVariant:void 0,locale:"en",pt:void 0,ptOptions:{mergeSections:!0,mergeProps:!1},ripple:!1,theme:void 0,stylesheet:void 0,unstyled:!1,zIndex:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100},license:void 0};var wl="2026-07-15",Wn=Oe.createContext(void 0);function Cl(e={}){let{props:t,attrs:n}=Ye(ao,e),[r,o]=Oe.useState(t.inputVariant),[s,a]=Oe.useState(t.defaults),[l,c]=Oe.useState(t.zIndex);Oe.useEffect(()=>{t.license&&ci({primeui:t.license}),ui("primeui",{releaseDate:wl}).then(p=>{p.valid||(console.warn(`[PrimeUI] ${p.message}`),Xn())})},[]);let u=Oe.useMemo(()=>({inputVariant:r,setInputVariant:o,defaults:s,setDefaults:a,zIndex:l,setZIndex:c}),[r,s,l]),f=Oe.useMemo(()=>K(n.children,u),[n.children,u]);return Oe.createElement(Wn.Provider,{value:u},Oe.createElement(yr,{lang:t.locale},Oe.createElement(vr,{value:t.pt,...t.ptOptions},Oe.createElement(Ur,{preset:t.theme?.preset,stylesheet:t.stylesheet,...t.theme?.options},f))))}var Tt=ne(ee());function lo(){let e=Tt.useContext(Wn),t=Tt.useContext(Bt),n=Tt.useContext(Ut),r=Tt.useContext(Xe);if(e===void 0)throw new Error("[PrimeReact] PrimeReactProvider not found. Wrap your application in <PrimeReactProvider> before using PrimeReact components.");return Tt.useMemo(()=>({config:e,locale:t,passthrough:n,theme:r}),[e,t,n,r])}var Ve=ne(ee()),rn=(e="UnknownBase",t)=>{let n=lo(),{type:r,inProps:o,defaultProps:s,setup:a}=t||{},l=as(o?.id),c=Zo("pc_"),[u,f]=Ve.useMemo(()=>e.toLowerCase().split("."),[e]),p=Ve.useRef(null),h=Ve.useRef(void 0),m=Ve.useMemo(()=>({ref:p,elementRef:h,id:l,name:e,type:r,scope:u,part:Lt(f),inProps:o,$attrSelector:c,$primereact:n}),[l,o,c,n,e,r]),v=n.config?.defaults,y=Ve.useMemo(()=>{let _=K(v?.[e]||v?.[e.toLowerCase()],m);return{...s,..._?.props}},[s,v,e]),{props:b,attrs:C}=Ye(y,o),S=Ve.useMemo(()=>({...m,props:b,attrs:C}),[m,b,C]),R=K(a,S),O=Ve.useMemo(()=>({state:{},$computedSetup:R,...R,...S,elementRef:R?.elementRef??h}),[R,S]);return Ve.useImperativeHandle(p,()=>O,[O]),O};var fi={onDragStart:e=>`Picked up ${e.active.data?.label??"item"}. Use Arrow keys to move, Space or Enter to drop, Escape to cancel.`,onDragOver:e=>e.over?`Over ${e.over.data?.label??"drop zone"}.`:"Not over a drop zone.",onDragEnd:e=>e.cancelled?"Drag cancelled. Item returned to original position.":e.over?`Dropped on ${e.over.data?.label??"drop zone"}.`:"Dropped.",onDragCancel:()=>"Drag cancelled. Item returned to original position.",onSortOver:e=>`Moved to position ${e.index+1} of ${e.total}${e.containerId?` in ${String(e.containerId)}`:""}.`};function Je(){return typeof window<"u"&&typeof document<"u"}function Zt(e){let t=e.getBoundingClientRect();return{x:t.x,y:t.y,width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left}}function co(e,t,n,r){return{x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e}}function di(e,t){return co(e.x-t.x,e.y-t.y,e.width,e.height)}function vt(e,t){return Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2)}function He(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}function zn(e,t){return e.x>=t.left&&e.x<=t.right&&e.y>=t.top&&e.y<=t.bottom}function uo(e){return e.width*e.height}function pi(e,t){let n=Math.max(e.left,t.left),r=Math.max(e.top,t.top),o=Math.min(e.right,t.right)-n,s=Math.min(e.bottom,t.bottom)-r;return o>0&&s>0?o*s:0}function mi(e){if(!Je())return null;let t=e.parentElement;for(;t&&t!==document.documentElement;){let n=getComputedStyle(t),r=(n.overflowY==="auto"||n.overflowY==="scroll")&&t.scrollHeight>t.clientHeight,o=(n.overflowX==="auto"||n.overflowX==="scroll")&&t.scrollWidth>t.clientWidth;if(r||o)return t;t=t.parentElement}return document.documentElement.scrollHeight>document.documentElement.clientHeight?document.documentElement:null}function fo(e){return e===document.documentElement?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop}}function hi(e,t,n){e===document.documentElement?window.scrollBy(t,n):e.scrollBy(t,n)}function po(e,t){let n=null;return{call(){n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,e()},t)},cancel(){n!==null&&(clearTimeout(n),n=null)}}}function Pl(e){let t=[];for(let n of e.droppables)if(!n.disabled&&zn(e.position,n.rect)){let r=uo(n.rect);r>0&&t.push({id:n.id,data:n.data,ratio:1/r})}return t.sort((n,r)=>(r.ratio??0)-(n.ratio??0)),t}function Tl(e){if(!e.activeRect)return[];let t=[];for(let n of e.droppables){if(n.disabled)continue;let r=pi(e.activeRect,n.rect);if(r>0){let o=uo(n.rect);t.push({id:n.id,data:n.data,ratio:o>0?r/o:0})}}return t.sort((n,r)=>(r.ratio??0)-(n.ratio??0)),t}function Ol(e){if(!e.activeRect)return[];let t=He(e.activeRect),n=[];for(let r of e.droppables)r.disabled||n.push({id:r.id,data:r.data,distance:vt(t,He(r.rect))});return n.sort((r,o)=>(r.distance??1/0)-(o.distance??1/0)),n}function _l(e){if(!e.activeRect)return[];let t=e.activeRect,n=[{x:t.left,y:t.top},{x:t.right,y:t.top},{x:t.left,y:t.bottom},{x:t.right,y:t.bottom}],r=[];for(let o of e.droppables){if(o.disabled)continue;let s=o.rect,a=[{x:s.left,y:s.top},{x:s.right,y:s.top},{x:s.left,y:s.bottom},{x:s.right,y:s.bottom}],l=0;for(let c=0;c<4;c++)l+=vt(n[c],a[c]);r.push({id:o.id,data:o.data,distance:l/4})}return r.sort((o,s)=>(o.distance??1/0)-(s.distance??1/0)),r}var Qt={pointerWithin:Pl,rectIntersection:Tl,closestCenter:Ol,closestCorners:_l};var yi=.25;function gi(e){let{position:t,items:n,direction:r,activeId:o,allowInsideDrop:s=!1}=e,a={index:0,position:"before",targetId:null,dropPosition:"before",targetRect:null};if(n.length===0)return a;let l=n.filter(b=>b.id!==o);if(l.length===0)return a;let c=0,u=1/0;for(let b=0;b<l.length;b++){let C=He(l[b].rect),S=r==="horizontal"?Math.abs(t.x-C.x):r==="vertical"?Math.abs(t.y-C.y):vt(t,C);S<u&&(u=S,c=b)}let f=l[c],p=f.rect,h=He(p),m;r==="horizontal"?m=t.x<h.x?"before":"after":r==="vertical"?m=t.y<h.y?"before":"after":m=t.y<h.y?"before":t.y>h.y?"after":t.x<h.x?"before":"after";let v;s?v=Al(t,p,r):v=m;let y=n.findIndex(b=>b.id===f.id);return{index:m==="after"?y+1:y,position:m,targetId:f.id,dropPosition:v,targetRect:p}}function Al(e,t,n){if(n==="horizontal"){let o=t.width*yi;return e.x<t.left+o?"before":e.x>t.right-o?"after":"inside"}let r=t.height*yi;return e.y<t.top+r?"before":e.y>t.bottom-r?"after":"inside"}function vi(e){let{items:t,activeId:n,originalIndex:r,projectedIndex:o,activeRect:s,itemRects:a,direction:l}=e,c=new Map;if(!s||r===o)return c;let u=o>r;if(l==="grid")for(let f=0;f<t.length;f++){let p=t[f];if(p===n||!(u?f>r&&f<=o:f>=o&&f<r))continue;let m=u?f-1:f+1;t[m]===n&&(m=u?m-1:m+1);let v=t[m],y=a.get(p),b=v?a.get(v):null;y&&b&&c.set(p,{x:b.x-y.x,y:b.y-y.y,scaleX:1,scaleY:1})}else{let f=l==="horizontal"?s.width:0,p=l==="vertical"?s.height:0;for(let h=0;h<t.length;h++){let m=t[h];if(m===n)continue;let v=0,y=0;u?h>r&&h<=o&&(v=-f,y=-p):h>=o&&h<r&&(v=f,y=p),(v!==0||y!==0)&&c.set(m,{x:v,y,scaleX:1,scaleY:1})}}return c}function bi(e){let{sourceItems:t,targetItems:n,activeId:r,originalIndex:o,projectedIndex:s,activeRect:a,sourceDirection:l,targetDirection:c}=e,u=new Map,f=new Map;if(!a)return{sourceTransforms:u,targetTransforms:f};let p=l==="horizontal"?a.width:0,h=l==="vertical"||l==="grid"?a.height:0;for(let y=0;y<t.length;y++)t[y]!==r&&y>o&&u.set(t[y],{x:-p,y:-h,scaleX:1,scaleY:1});let m=c==="horizontal"?a.width:0,v=c==="vertical"||c==="grid"?a.height:0;for(let y=0;y<n.length;y++)y>=s&&f.set(n[y],{x:m,y:v,scaleX:1,scaleY:1});return{sourceTransforms:u,targetTransforms:f}}function mo(e,t,n){if(t<0||t>=e.length||n<0||n>e.length)return e.slice();let r=e.slice(),[o]=r.splice(t,1);return r.splice(n,0,o),r}function ho(e,t,n,r){if(n<0||n>=e.length||r<0||r>t.length)return{source:e.slice(),target:t.slice()};let o=e.slice(),[s]=o.splice(n,1),a=t.slice();return a.splice(r,0,s),{source:o,target:a}}function xi(e){let t=!1;function n(){if(t)throw new Error("createDnd: instance has been destroyed.")}let r={operation:null,draggables:new Map,droppables:new Map,sortableContainers:new Map,collisions:[],sortable:null},o=new Set,s=!1;function a(){if(!s){s=!0;try{for(let g of o)g()}finally{s=!1}}}function l(g){let x=g(r);x!==r&&(r=x,a())}let c=new Map;function u(g,x){let w=c.get(g);if(w)for(let I of w)I(x)}let f=e?.collisionDetection??"pointerWithin";function p(){return Qt[f]??Qt.pointerWithin}let h=null,m=e?.autoScroll!==!1,v=typeof e?.autoScroll=="object"?e.autoScroll:{},y=null,b={x:0,y:0},C={...fi,...e?.announcements},S=new Map;function R(){if(Je()){S.clear();for(let[g,x]of r.draggables)x.node&&S.set(g,Zt(x.node));for(let[g,x]of r.droppables)x.node&&S.set(g,Zt(x.node));for(let[g,x]of r.sortableContainers)x.node&&S.set(g,Zt(x.node))}}function O(g,x){let w=S.get(g);return w?di(w,x):null}function _(){r.operation&&(R(),b={x:0,y:0},me(r.operation.current))}let $=po(_,50),W=po(_,100),H=null,Z=null,U=null,k=null;function M(){if(!(!Je()||typeof ResizeObserver>"u")){H=new ResizeObserver(()=>$.call());for(let[,g]of r.sortableContainers)g.node&&H.observe(g.node)}}function j(){if(!Je())return;let g=()=>W.call();window.addEventListener("resize",g,{passive:!0}),k=()=>{window.removeEventListener("resize",g),W.cancel()}}function fe(){if(!Je())return;if(typeof MutationObserver<"u"){Z=new MutationObserver(()=>$.call());for(let[,w]of r.sortableContainers)w.node&&Z.observe(w.node,{childList:!0})}let g=h??window,x=()=>$.call();g.addEventListener("scroll",x,{passive:!0}),U=()=>g.removeEventListener("scroll",x)}function ae(){Z?.disconnect(),Z=null,U?.(),U=null,$.cancel()}function ce(g){let x=[],w=r.operation;if(!w)return x;let I=r.draggables.get(w.activeId);for(let[z,L]of r.droppables){if(L.disabled)continue;let G=O(z,g);if(!G)continue;let de=!L.accept||I?.scope!=null&&L.accept.includes(I.scope),re=L.canDrop?L.canDrop(w.data):!0;de&&re&&x.push({id:z,rect:G,data:L.data??{},disabled:!1})}for(let[z,L]of r.sortableContainers){if(L.disabled)continue;let G=O(z,g);if(!G)continue;(!L.accept||I?.scope!=null&&L.accept.includes(I.scope))&&x.push({id:z,rect:G,data:{},disabled:!1})}return x}function ve(g,x){if(g.length!==x.length)return!1;for(let w=0;w<g.length;w++)if(g[w].id!==x[w].id)return!1;return!0}function me(g,x){let w=r.operation;if(!w)return;let I=x??b,z=ce(I),L=O(w.activeId,I),G=p()({position:g,activeRect:L,droppables:z});if(!ve(r.collisions,G)){let re=r.collisions[0]??null,se=G[0]??null;l(he=>({...he,collisions:G})),re?.id!==se?.id&&u("dragOver",{active:{id:w.activeId,data:w.data},over:se?{id:se.id,data:se.data}:null})}We(g,I)}let oe=null;function Me(g){if(oe){let x=r.sortableContainers.get(oe.containerId);if(x){let w=x.items.indexOf(g);if(w!==-1)return{container:x,index:w}}oe=null}for(let[,x]of r.sortableContainers){let w=x.items.indexOf(g);if(w!==-1)return oe={containerId:x.id,index:w},{container:x,index:w}}return null}function et(g,x){if(g.size!==x.size)return!1;for(let[w,I]of g){let z=x.get(w);if(!z||I.x!==z.x||I.y!==z.y)return!1}return!0}function We(g,x){let w=r.operation;if(!w)return;let I=Me(w.activeId);if(!I){r.sortable!==null&&l(q=>({...q,sortable:null}));return}let z=r.draggables.get(w.activeId),L=null;for(let[,q]of r.sortableContainers){let X=O(q.id,x);if(!X||!zn(g,X))continue;if(!q.accept||z?.scope!=null&&q.accept.includes(z.scope)||q.id===I.container.id){L=q;break}}L||(L=I.container);let G=[];for(let q of L.items){let X=O(q,x);X&&G.push({id:q,rect:X})}let de=gi({position:g,items:G,direction:L.direction,activeId:w.activeId,allowInsideDrop:L.allowInsideDrop}),re=de.index,se=L.id!==I.container.id,he;if(se){let{sourceTransforms:q,targetTransforms:X}=bi({sourceItems:I.container.items,targetItems:L.items,activeId:w.activeId,originalIndex:I.index,projectedIndex:re,activeRect:O(w.activeId,x),sourceDirection:I.container.direction,targetDirection:L.direction});he=new Map([...q,...X])}else he=vi({items:I.container.items,activeId:w.activeId,originalIndex:I.index,projectedIndex:re,activeRect:O(w.activeId,x),itemRects:S,direction:I.container.direction});let ye=de.targetId!=null?{targetId:de.targetId,position:de.dropPosition,targetRect:de.targetRect}:null,D={sourceContainerId:I.container.id,currentContainerId:L.id,originalIndex:I.index,projectedIndex:re,transforms:he,dropIndicator:ye},Q=r.sortable;(!Q||Q.currentContainerId!==D.currentContainerId||Q.projectedIndex!==D.projectedIndex||!et(Q.transforms,D.transforms)||Q.dropIndicator?.targetId!==D.dropIndicator?.targetId||Q.dropIndicator?.position!==D.dropIndicator?.position)&&l(q=>({...q,sortable:D}))}function tt(){if(!(!m||!Je())){if(!h){let g=r.draggables.get(r.operation.activeId);g?.node&&(h=mi(g.node))}h&&(b={x:0,y:0},at())}}function ze(){y!==null&&(cancelAnimationFrame(y),y=null),b={x:0,y:0}}function at(){let g=r.operation;if(!g||!h)return;let x=v.threshold??50,w=v.speed??15,I=v.direction??"both",z=g.current,L=h===document.documentElement?co(0,0,window.innerWidth,window.innerHeight):Zt(h),G=0,de=0;if(I!=="horizontal"){let re=z.y-L.top,se=L.bottom-z.y;re>=0&&re<x?de=-w*(1-re/x):se>=0&&se<x&&(de=w*(1-se/x))}if(I!=="vertical"){let re=z.x-L.left,se=L.right-z.x;re>=0&&re<x?G=-w*(1-re/x):se>=0&&se<x&&(G=w*(1-se/x))}if(G!==0||de!==0){let re=fo(h);hi(h,G,de);let se=fo(h),he=se.x-re.x,ye=se.y-re.y;(he!==0||ye!==0)&&(b={x:b.x+he,y:b.y+ye},me(g.current,b))}y=requestAnimationFrame(at)}function lt(g,x){if(n(),r.operation)return;let w=r.draggables.get(x);if(!w||w.disabled)return;let I={...w.data},z;if("clientX"in g){let L=g;z={x:L.clientX,y:L.clientY}}else{let L=w.node?Zt(w.node):null;z=L?He(L):{x:0,y:0}}l(L=>({...L,operation:{activeId:x,origin:z,current:{...z},delta:{x:0,y:0},data:I},collisions:[],sortable:null})),R(),fe(),tt(),u("dragStart",{active:{id:x,data:I,node:w.node},event:g}),me(z)}function De(g,x){n();let w=r.operation;if(!w)return;let I={x:x.x-w.origin.x,y:x.y-w.origin.y};l(L=>({...L,operation:L.operation?{...L.operation,current:x,delta:I}:null})),me(x);let z=r.draggables.get(w.activeId);u("dragMove",{active:{id:w.activeId,data:w.data,node:z?.node??null},position:x,delta:I,event:g})}function je(g){n();let x=r.operation;if(!x)return;let w=r.collisions[0]??null,I=r.sortable;I&&(I.sourceContainerId!==I.currentContainerId?u("transfer",{activeId:x.activeId,from:{containerId:I.sourceContainerId,index:I.originalIndex},to:{containerId:I.currentContainerId,index:I.projectedIndex},event:g}):I.originalIndex!==I.projectedIndex&&u("sort",{containerId:I.sourceContainerId,activeId:x.activeId,fromIndex:I.originalIndex,toIndex:I.projectedIndex,event:g})),u("dragEnd",{active:{id:x.activeId,data:x.data},over:w?{id:w.id,data:w.data}:null,cancelled:!1,event:g}),bt()}function Ne(g){n();let x=r.operation;x&&(u("dragCancel",{active:{id:x.activeId,data:x.data},event:g}),u("dragEnd",{active:{id:x.activeId,data:x.data},over:null,cancelled:!0,event:g}),bt())}function bt(){ze(),ae(),S.clear(),b={x:0,y:0},oe=null,h=null,l(g=>({...g,operation:null,collisions:[],sortable:null}))}let Be=new Set;function _t(g,x,w){if(n(),!Je())return()=>{};let I=w?.activationDistance??5,z=w?.activationDelay??0,L=!1,G=!1,de=null,re=null,se=z===0,he=null,ye=null,D=null;function Q(){L=!1,G=!1,de=null,se=z===0,re!==null&&(clearTimeout(re),re=null),he!==null&&(cancelAnimationFrame(he),he=null),ye=null,D=null,document.removeEventListener("pointermove",le),document.removeEventListener("pointerup",be),document.removeEventListener("pointercancel",i),document.removeEventListener("keydown",d),document.removeEventListener("contextmenu",E)}function q(){ye&&D&&G&&(De(D,ye),ye=null,D=null),he=null}function X(T){if(!(T.button!==0||r.operation||r.draggables.get(x)?.disabled)){L=!0,de={x:T.clientX,y:T.clientY},se=z===0;try{g.setPointerCapture(T.pointerId)}catch{}z>0&&(re=setTimeout(()=>{se=!0,re=null},z)),document.addEventListener("pointermove",le),document.addEventListener("pointerup",be),document.addEventListener("pointercancel",i),document.addEventListener("keydown",d),document.addEventListener("contextmenu",E)}}function le(T){if(!L&&!G||!de)return;let B={x:T.clientX,y:T.clientY};if(!G){let F=vt(de,B);if(!se){F>I&&Q();return}if(F<I)return;G=!0,L=!1,lt(T,x);return}ye=B,D=T,he===null&&(he=requestAnimationFrame(q))}function be(T){G&&(ye&&De(T,ye),je(T));try{g.releasePointerCapture(T.pointerId)}catch{}Q()}function i(T){G&&Ne(T);try{g.releasePointerCapture(T.pointerId)}catch{}Q()}function d(T){T.key==="Escape"&&G&&(Ne(T),Q())}function E(T){(G||L)&&T.preventDefault()}g.addEventListener("pointerdown",X);let P=()=>{Q(),g.removeEventListener("pointerdown",X),Be.delete(P)};return Be.add(P),P}function At(g,x,w){if(n(),!Je())return()=>{};let I=w?.step??25,z=w?.fastStep??I*5,L=!1;function G(D){if(!r.draggables.get(x)?.disabled){if(!L){(D.key===" "||D.key==="Enter")&&(D.preventDefault(),L=!0,lt(D,x));return}switch(D.preventDefault(),D.key){case"Escape":L=!1,Ne(D);break;case"Tab":L=!1,Ne(D);break;case" ":case"Enter":L=!1,je(D);break;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":if(!r.operation)break;if(r.sortable!==null)de(D);else{let q=D.shiftKey?z:I,X=r.operation.current,le={x:X.x,y:X.y};D.key==="ArrowUp"&&(le.y-=q),D.key==="ArrowDown"&&(le.y+=q),D.key==="ArrowLeft"&&(le.x-=q),D.key==="ArrowRight"&&(le.x+=q),De(D,le)}break;case"Home":case"End":r.sortable&&re(D);break}}}function de(D){if(!r.operation||!r.sortable)return;let{currentContainerId:Q,projectedIndex:q}=r.sortable,X=r.sortableContainers.get(Q);if(!X)return;let le=X.direction==="vertical"||X.direction==="grid",be=X.direction==="horizontal"||X.direction==="grid",i=q,d=Q;if(D.key==="ArrowUp"&&le||D.key==="ArrowLeft"&&be)i>0&&i--;else if(D.key==="ArrowDown"&&le||D.key==="ArrowRight"&&be){let E=X.items.filter(P=>P!==r.operation.activeId).length;i<E&&i++}else if(D.key==="ArrowLeft"||D.key==="ArrowRight"){let E=he(Q,D.key==="ArrowRight"?"right":"left");E&&(d=E.id,i=0)}(i!==q||d!==Q)&&se(d,i,D)}function re(D){if(!r.operation||!r.sortable)return;let Q=r.sortableContainers.get(r.sortable.currentContainerId);if(!Q)return;let q=Q.items.filter(le=>le!==r.operation.activeId),X=D.key==="Home"?q[0]:q[q.length-1];if(X!=null){let le=O(X,b);le&&De(D,He(le))}}function se(D,Q,q){let X=r.sortableContainers.get(D);if(!X)return;let le=X.items.filter(i=>i!==r.operation.activeId),be=le[Math.min(Q,le.length-1)];if(be!=null){let i=O(be,b);if(i){De(q,He(i));let d=r.draggables.get(be);d?.node&&d.node.scrollIntoView({block:"nearest",inline:"nearest",behavior:"smooth"})}}}function he(D,Q){let q=O(D,b);if(!q)return null;let X=He(q),le=null,be=1/0;for(let[i,d]of r.sortableContainers){if(i===D)continue;let E=O(i,b);if(!E)continue;let P=He(E);if(Q==="right"&&P.x<=X.x||Q==="left"&&P.x>=X.x)continue;let T=r.draggables.get(r.operation.activeId);if(d.accept&&T?.scope!=null&&!d.accept.includes(T.scope))continue;let B=vt(X,P);B<be&&(be=B,le=d)}return le}g.addEventListener("keydown",G);let ye=()=>{L&&(L=!1,Ne()),g.removeEventListener("keydown",G),Be.delete(ye)};return Be.add(ye),ye}function xt(g){return n(),l(x=>{let w=new Map(x.draggables);return w.set(g.id,g),{...x,draggables:w}}),()=>{r.operation?.activeId===g.id&&Ne(),l(x=>{let w=new Map(x.draggables);return w.delete(g.id),{...x,draggables:w}})}}function Ce(g){return n(),l(x=>{let w=new Map(x.droppables);return w.set(g.id,g),{...x,droppables:w}}),()=>{l(x=>{let w=new Map(x.droppables);return w.delete(g.id),{...x,droppables:w}})}}function It(g){return n(),l(x=>{let w=new Map(x.sortableContainers);return w.set(g.id,g),{...x,sortableContainers:w}}),g.node&&H&&H.observe(g.node),()=>{g.node&&H&&H.unobserve(g.node),l(x=>{let w=new Map(x.sortableContainers);return w.delete(g.id),{...x,sortableContainers:w}})}}function Jt(g,x){let w=C[g];return w?w(x):""}return Je()&&(M(),j()),{getState:()=>r,subscribe(g){return n(),o.add(g),()=>{o.delete(g)}},registerDraggable:xt,registerDroppable:Ce,registerSortableContainer:It,startDrag:lt,updateDrag:De,endDrag:je,cancelDrag:Ne,on(g,x){n(),c.has(g)||c.set(g,new Set);let w=c.get(g),I=x;return w.add(I),()=>{w.delete(I)}},attachPointerSensor:_t,attachKeyboardSensor:At,setScrollableElement(g){h=g},setCollisionDetection(g){f=g},measureRects:R,getAdjustedRect:O,getAnnouncement:Jt,destroy(){if(!t){t=!0,r.operation&&(u("dragCancel",{active:{id:r.operation.activeId,data:r.operation.data}}),u("dragEnd",{active:{id:r.operation.activeId,data:r.operation.data},over:null,cancelled:!0}),ze(),ae());for(let g of Be)g();Be.clear(),H?.disconnect(),H=null,k?.(),k=null,$.cancel(),W.cancel(),c.clear(),o.clear(),S.clear(),r={operation:null,draggables:new Map,droppables:new Map,sortableContainers:new Map,collisions:[],sortable:null}}}}}var Co=ne(ee());var[yo,Il]=xr();var pn={elementRef:void 0,visible:!1,mountOnEnter:!0,unmountOnLeave:!0,name:void 0,type:void 0,safe:!1,disabled:!1,appear:!1,enter:!0,leave:!0,duration:void 0,hideStrategy:"display",cssVarPrefix:void 0,enterFromClassName:void 0,enterToClassName:void 0,enterActiveClassName:void 0,leaveFromClassName:void 0,leaveToClassName:void 0,leaveActiveClassName:void 0,onBeforeEnter:void 0,onEnter:void 0,onAfterEnter:void 0,onEnterCancelled:void 0,onBeforeLeave:void 0,onLeave:void 0,onAfterLeave:void 0,onLeaveCancelled:void 0};var go={...pn,as:"div"};var Ee=ne(ee());var Kn=new WeakMap,Ll=Object.freeze({display:"none"}),Ml=Object.freeze({visibility:"hidden",maxHeight:"0"});function vo(e){switch(e){case"display":return Ll;case"visibility":return Ml;default:return}}function qn(e,t){if(!e)return;Kn.has(e)||Kn.set(e,{display:e.style.display==="none"?"":e.style.display,visibility:e.style.visibility==="hidden"?"":e.style.visibility,maxHeight:e.style.maxHeight==="0"?"":e.style.maxHeight});let n=vo(t);n&&Object.assign(e.style,n)}function bo(e,t){if(!e)return;let n=Kn.get(e);switch(t){case"display":e.style.display=n?.display??"";break;case"visibility":e.style.visibility=n?.visibility??"",e.style.maxHeight=n?.maxHeight??"";break}Kn.delete(e)}var Dl=Object.defineProperty,Si=Object.getOwnPropertySymbols,Nl=Object.prototype.hasOwnProperty,$l=Object.prototype.propertyIsEnumerable,Ei=(e,t,n)=>t in e?Dl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xo=(e,t)=>{for(var n in t||(t={}))Nl.call(t,n)&&Ei(e,n,t[n]);if(Si)for(var n of Si(t))$l.call(t,n)&&Ei(e,n,t[n]);return e};var Yn="animation",mn="transition",Hl=["data-enter-phase","data-enter-from","data-enter-to","data-enter-active","data-leave-phase","data-leave-from","data-leave-to","data-leave-active"];function Ri(e){return e?e.disabled||!!(e.safe&&ns()):!1}function wi(e,t){return e?xo(xo({},e),Object.entries(t).reduce((n,[r,o])=>{var s;return n[r]=(s=e[r])!=null?s:o,n},{})):xo({},t)}function Ci(e){let{name:t,enterClass:n,leaveClass:r}=e||{};return{enter:{from:n?.from||`${t}-enter-from`,to:n?.to||`${t}-enter-to`,active:n?.active||`${t}-enter-active`},leave:{from:r?.from||`${t}-leave-from`,to:r?.to||`${t}-leave-to`,active:r?.active||`${t}-leave-active`}}}function Pi(e){return{enter:{onBefore:e?.onBeforeEnter,onStart:e?.onEnter,onAfter:e?.onAfterEnter,onCancelled:e?.onEnterCancelled},leave:{onBefore:e?.onBeforeLeave,onStart:e?.onLeave,onAfter:e?.onAfterLeave,onCancelled:e?.onLeaveCancelled}}}function Ti(e,t){let n=window.getComputedStyle(e),r=m=>{let v=n[`${m}Duration`].split(", ").map(tr),y=n[`${m}Delay`].split(", ").map(tr);return y.length<v.length&&y.length>0&&(y=v.map((b,C)=>y[C%y.length])),[y,v]},[o,s]=r(mn),[a,l]=r(Yn),c=Math.max(...s.map((m,v)=>m+o[v])),u=Math.max(...l.map((m,v)=>m+a[v])),f,p=0,h=0;return t===mn?c>0&&(f=mn,p=c,h=s.length):t===Yn?u>0&&(f=Yn,p=u,h=l.length):(p=Math.max(c,u),f=p>0?c>u?mn:Yn:void 0,h=f?f===mn?s.length:l.length:0),{type:f,timeout:p,count:h}}function Oi(e,t){return typeof e=="number"?e:e!=null&&typeof e=="object"&&e[t]!=null?e[t]:null}function Ot(e,t){return e?`--${e}-${t}`:`--${t}`}function hn(e,t,n){let{autoHeight:r,autoWidth:o,cssVarPrefix:s}=t,a=typeof n=="object";r&&mr(e,Ot(s,"height"),a?n.height:n),o&&mr(e,Ot(s,"width"),a?n.width:n)}function So(e,t){if(!t.autoHeight&&!t.autoWidth)return;let n=e.scrollHeight,r=e.scrollWidth;if(!n||!r){let o=Qo(e);n||(n=o.height),r||(r=o.width)}hn(e,t,{height:n+"px",width:r+"px"})}function _i(e,t){e.setAttribute(`data-${t}-phase`,"")}function Eo(e,t,n){e.removeAttribute("data-enter-from"),e.removeAttribute("data-enter-to"),e.removeAttribute("data-leave-from"),e.removeAttribute("data-leave-to"),e.setAttribute(`data-${t}-${n}`,""),e.setAttribute(`data-${t}-active`,"")}function Ro(e){e.removeAttribute("data-enter-phase"),e.removeAttribute("data-leave-phase")}function Ai(e){Hl.forEach(t=>e.removeAttribute(t))}var Md=Object.freeze({name:"p",safe:!0,disabled:!1,enter:!0,leave:!0,autoHeight:!0,autoWidth:!0,cssVarPrefix:""});var jl=Object.freeze({}),Ii={name:"p",safe:!0,disabled:!1,enter:!0,leave:!0,autoHeight:!0,autoWidth:!1};function ki(e,t){if(!e)throw new Error("Element is required.");let n={},r=!1,o={},s=null,a={},l=f=>{if(Object.assign(n,wi(f,Ii)),!n.enter&&!n.leave)throw new Error("Enter or leave must be true.");a=Pi(n),r=Ri(n),o=Ci(n),s=null},c=async f=>{s?.();let{onBefore:p,onStart:h,onAfter:m,onCancelled:v}=a[f]||{},y={element:e};if(_i(e,f),r){p?.(y),h?.(y),m?.(y),Ro(e);return}let{from:b,active:C,to:S}=o[f]||{};return p?.(y),f==="enter"?hn(e,n,"0px"):So(e,n),En(e,b),En(e,C),Eo(e,f,"from"),await pr(),f==="enter"?So(e,n):hn(e,n,"0px"),dr(e,b),En(e,S),Eo(e,f,"to"),h?.(y),new Promise(R=>{let O=Oi(n.duration,f),_=()=>{dr(e,[S,C]),s=null,Ai(e),Ro(e)},$=()=>{_(),m?.(y),R(),f==="enter"&&hn(e,n,"auto")};s=()=>{_(),v?.(y),R()},Ul(e,n.type,O,$)})};l(t);let u={enter:()=>n.enter?c("enter"):Promise.resolve(),leave:()=>n.leave?c("leave"):Promise.resolve(),cancel:()=>{s?.(),s=null},update:(f,p)=>{if(!f)throw new Error("Element is required.");e=f,u.cancel(),l(p)}};return n.appear&&u.enter(),u}var Bl=0;function Ul(e,t,n,r){let o=e._motionEndId=++Bl,s=()=>{o===e._motionEndId&&r()};if(n!=null)return setTimeout(s,n);let{type:a,timeout:l,count:c}=Ti(e,t);if(!a){r();return}let u=a+"end",f=0,p=()=>{e.removeEventListener(u,h,!0),s()},h=m=>{m.target===e&&++f>=c&&p()};e.addEventListener(u,h,{capture:!0,once:!0}),setTimeout(()=>{f<c&&p()},l+1)}var wo=an({name:"useMotion",defaultProps:pn,setup({props:e,elementRef:t}){let[n,r]=Ee.useState(()=>e.visible&&e.mountOnEnter||!e.mountOnEnter),o={rendered:n},s=Ee.useRef(void 0),a=Ee.useRef(!0),l=Ee.useCallback(()=>Ht(e.elementRef)??t?.current,[e.elementRef,t]),c=Ee.useCallback(()=>s.current?.enter(),[]),u=Ee.useCallback(()=>s.current?.leave(),[]),f=Ee.useCallback(()=>s.current?.cancel(),[]),p=Ee.useCallback((m,v={})=>{if(!m)return;let y={...v,enterClass:{from:v.enterFromClassName,to:v.enterToClassName,active:v.enterActiveClassName},leaveClass:{from:v.leaveFromClassName,to:v.leaveToClassName,active:v.leaveActiveClassName}};s.current?s.current?.update(m,y):s.current=ki(m,y)},[]);Ee.useLayoutEffect(()=>()=>{let m=l();bo(m,e.hideStrategy),a.current=!0},[]),Ee.useLayoutEffect(()=>{e.visible&&!n&&r(!0)},[e.visible]),Ee.useLayoutEffect(()=>{let m=l();p?.(m,e)},[]),Ee.useLayoutEffect(()=>{let m=l();if(!m||!n){m&&!e.visible&&qn(m,e.hideStrategy),a.current=!1;return}let v=!1,y=a.current&&e.visible&&e.appear;if(bo(m,e.hideStrategy),p?.(m,e),e.visible){if(y||!a.current)c?.();else if(e.cssVarPrefix){let b=Ot(e.cssVarPrefix,"width"),C=Ot(e.cssVarPrefix,"height");m.style.setProperty(b,"auto"),m.style.setProperty(C,"auto")}}else u?.()?.then(()=>{!m||v||e.visible||(e.unmountOnLeave?(qn(m,e.hideStrategy),pr().then(()=>{v||r(!1)})):qn(m,e.hideStrategy))});return a.current=!1,()=>{v=!0,f?.()}},[e.visible,n,e.unmountOnLeave,e.appear,l]);let h=Ee.useMemo(()=>{if(!e.visible&&!n){let m=Ot(e.cssVarPrefix,"width"),v=Ot(e.cssVarPrefix,"height");return{style:{...vo(e.hideStrategy),[m]:"0px",[v]:"0px"}}}return jl},[e.visible,n,e.hideStrategy,e.cssVarPrefix]);return{state:o,enter:c,leave:u,cancel:f,update:p,rootProps:h}}});var Fl=on({name:"Motion",defaultProps:go,setup(e){return wo(e.inProps)},render(e){let{id:t,props:n,state:r,ptmi:o,rootProps:s}=e,a=ut({id:t},o("root"),s);return Co.createElement(yo,{value:e},Co.createElement(Ft,{pIf:r.rendered,instance:e,attrs:a,children:n.children}))}});var _e=ne(ee()),Vl=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n].id!==t[n].id||e[n].open!==t[n].open)return!1;return!0};function Wl(){let e=new Map,t=new Set,n=[],r=[],o=()=>{let a=Array.from(e.values()),l=a.map(c=>({id:c.id,open:c.open}));return Vl(r,l)&&a.length===n.length&&!a.some((u,f)=>u.props!==n[f]?.props)?!1:(n=a,r=l,!0)},s=()=>{o()&&t.forEach(a=>a())};return{subscribe(a){return t.add(a),()=>{t.delete(a)}},getSnapshot(){return n},open(a,l){e.set(a,{id:a,props:l,open:!0}),s()},close(a){if(a===void 0){let c=!1;e.forEach((u,f)=>{u.open&&(e.set(f,{...u,open:!1}),c=!0)}),c&&s();return}let l=e.get(a);l?.open&&(e.set(a,{...l,open:!1}),s())},remove(a){e.delete(a)&&s()},removeAll(){e.size!==0&&(e.clear(),s())},update(a,l){let c=e.get(a);c&&(e.set(a,{...c,props:{...c.props,...l}}),s())},getItem(a){return e.get(a)},isOpen(a){return e.get(a)?.open??!1},isAnyOpen(){for(let a of e.values())if(a.open)return!0;return!1}}}function zl({item:e,store:t,render:n,defaults:r}){let[o,s]=_e.useState(!1);_e.useEffect(()=>{s(!0)},[]);let a=_e.useCallback(c=>{c.value||t.close(e.id)},[e.id,t]),l=_e.useCallback(()=>{t.remove(e.id)},[e.id,t]);return _e.createElement(_e.Fragment,null,n.current({...r.current,...e.props,overlayId:e.id,open:o?e.open:!1,onOpenChange:a,onExitComplete:l}))}var Kl=(e,t,n)=>{let r=()=>{let o=_e.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot);return _e.createElement(_e.Fragment,null,o.map(s=>_e.createElement(zl,{key:s.id,item:s,store:e,render:t,defaults:n})))};return r.displayName="OverlayManagerRender",r},ql=["open","onOpenChange","onExitComplete","overlayId"];function Yl(e){let t={...e};for(let n of ql)delete t[n];return t}function Gl(e,t={}){let n=Wl(),r={current:e},o={current:t.props},s=Kl(n,r,o);return{open:n.open,close:n.close,remove:n.remove,removeAll:n.removeAll,update:(a,l)=>n.update(a,Yl(l)),isOpen:n.isOpen,isAnyOpen:n.isAnyOpen,get:a=>n.getItem(a)?.props,getSnapshot:n.getSnapshot,setRender:a=>{r.current=a},Viewport:s}}var Li=ne(ee()),Po=class extends xs{constructor({attrs:t}={}){super({attrs:t}),this._styles.set("layer-order",{})}has(t){return t==="layer-order"?this._styles.get(t)?.css!==void 0:this._styles.has(t)}createStyleElement(t={}){let{css:n,attrs:r,name:o}=t;if(!Ke(o))return Li.createElement("style",{...r,"data-primereact-style-id":o,key:o},n)}};return Fi(Xl);})();
|
|
15
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),s}function k(){v.asyncTransitions--}function M(s){if(N===null)try{var d=("require"+Math.random()).slice(0,7);N=(xn&&xn[d]).call(xn,"timers").setImmediate}catch{N=function(P){ge===!1&&(ge=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var T=new MessageChannel;T.port1.onmessage=P,T.port2.postMessage(void 0)}}return N(s)}function j(s){return 1<s.length&&typeof AggregateError=="function"?new AggregateError(s):s[0]}function fe(s,d){d!==J-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),J=d}function ae(s,d,E){var P=v.actQueue;if(P!==null)if(P.length!==0)try{ce(P),M(function(){return ae(s,d,E)});return}catch(T){v.thrownErrors.push(T)}else v.actQueue=null;0<v.thrownErrors.length?(P=j(v.thrownErrors),v.thrownErrors.length=0,E(P)):d(s)}function ce(s){if(!X){X=!0;var d=0;try{for(;d<s.length;d++){var E=s[d];do{v.didUsePromise=!1;var P=E(!1);if(P!==null){if(v.didUsePromise){s[d]=E,s.splice(0,d);return}E=P}else break}while(!0)}s.length=0}catch(T){s.splice(0,d+1),v.thrownErrors.push(T)}finally{X=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var be=Symbol.for("react.transitional.element"),me=Symbol.for("react.portal"),oe=Symbol.for("react.fragment"),Ne=Symbol.for("react.strict_mode"),tt=Symbol.for("react.profiler"),We=Symbol.for("react.consumer"),nt=Symbol.for("react.context"),ze=Symbol.for("react.forward_ref"),lt=Symbol.for("react.suspense"),ct=Symbol.for("react.suspense_list"),De=Symbol.for("react.memo"),Be=Symbol.for("react.lazy"),$e=Symbol.for("react.activity"),bt=Symbol.iterator,Fe={},_t={isMounted:function(){return!1},enqueueForceUpdate:function(s){n(s,"forceUpdate")},enqueueReplaceState:function(s){n(s,"replaceState")},enqueueSetState:function(s){n(s,"setState")}},At=Object.assign,xt={};Object.freeze(xt),r.prototype.isReactComponent={},r.prototype.setState=function(s,d){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,d,"setState")},r.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};var Ce={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(xe in Ce)Ce.hasOwnProperty(xe)&&e(xe,Ce[xe]);o.prototype=r.prototype,Ce=i.prototype=new o,Ce.constructor=i,At(Ce,r.prototype),Ce.isPureReactComponent=!0;var It=Array.isArray,Jt=Symbol.for("react.client.reference"),v={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},x=Object.prototype.hasOwnProperty,w=console.createTask?console.createTask:function(){return null};Ce={react_stack_bottom_frame:function(s){return s()}};var I,z,L={},G=Ce.react_stack_bottom_frame.bind(Ce,h)(),de=w(f(h)),re=!1,se=/\/+/g,ye=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var d=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(d))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)},ge=!1,N=null,J=0,q=!1,X=!1,le=typeof queueMicrotask=="function"?function(s){queueMicrotask(function(){return queueMicrotask(s)})}:M;Ce=Object.freeze({__proto__:null,c:function(s){return B().useMemoCache(s)}});var xe={map:H,forEach:function(s,d,E){H(s,function(){d.apply(this,arguments)},E)},count:function(s){var d=0;return H(s,function(){d++}),d},toArray:function(s){return H(s,function(d){return d})||[]},only:function(s){if(!R(s))throw Error("React.Children.only expected to receive a single React element child.");return s}};$.Activity=$e,$.Children=xe,$.Component=r,$.Fragment=oe,$.Profiler=tt,$.PureComponent=i,$.StrictMode=Ne,$.Suspense=lt,$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=v,$.__COMPILER_RUNTIME=Ce,$.act=function(s){var d=v.actQueue,E=J;J++;var P=v.actQueue=d!==null?d:[],T=!1;try{var U=s()}catch(Y){v.thrownErrors.push(Y)}if(0<v.thrownErrors.length)throw fe(d,E),s=j(v.thrownErrors),v.thrownErrors.length=0,s;if(U!==null&&typeof U=="object"&&typeof U.then=="function"){var F=U;return le(function(){T||q||(q=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Y,ut){T=!0,F.then(function(kt){if(fe(d,E),E===0){try{ce(P),M(function(){return ae(kt,Y,ut)})}catch($i){v.thrownErrors.push($i)}if(0<v.thrownErrors.length){var Di=j(v.thrownErrors);v.thrownErrors.length=0,ut(Di)}}else Y(kt)},function(kt){fe(d,E),0<v.thrownErrors.length&&(kt=j(v.thrownErrors),v.thrownErrors.length=0),ut(kt)})}}}var ie=U;if(fe(d,E),E===0&&(ce(P),P.length!==0&&le(function(){T||q||(q=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),v.actQueue=null),0<v.thrownErrors.length)throw s=j(v.thrownErrors),v.thrownErrors.length=0,s;return{then:function(Y,ut){T=!0,E===0?(v.actQueue=P,M(function(){return ae(ie,Y,ut)})):Y(ie)}}},$.cache=function(s){return function(){return s.apply(null,arguments)}},$.cacheSignal=function(){return null},$.captureOwnerStack=function(){var s=v.getCurrentStack;return s===null?null:s()},$.cloneElement=function(s,d,E){if(s==null)throw Error("The argument must be a React element, but you passed "+s+".");var P=At({},s.props),T=s.key,U=s._owner;if(d!=null){var F;e:{if(x.call(d,"ref")&&(F=Object.getOwnPropertyDescriptor(d,"ref").get)&&F.isReactWarning){F=!1;break e}F=d.ref!==void 0}F&&(U=p()),m(d)&&(c(d.key),T=""+d.key);for(ie in d)!x.call(d,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&d.ref===void 0||(P[ie]=d[ie])}var ie=arguments.length-2;if(ie===1)P.children=E;else if(1<ie){F=Array(ie);for(var Y=0;Y<ie;Y++)F[Y]=arguments[Y+2];P.children=F}for(P=b(s.type,T,P,U,s._debugStack,s._debugTask),T=2;T<arguments.length;T++)S(arguments[T]);return P},$.createContext=function(s){return s={$$typeof:nt,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null},s.Provider=s,s.Consumer={$$typeof:We,_context:s},s._currentRenderer=null,s._currentRenderer2=null,s},$.createElement=function(s,d,E){for(var P=2;P<arguments.length;P++)S(arguments[P]);P={};var T=null;if(d!=null)for(Y in z||!("__self"in d)||"key"in d||(z=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),m(d)&&(c(d.key),T=""+d.key),d)x.call(d,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(P[Y]=d[Y]);var U=arguments.length-2;if(U===1)P.children=E;else if(1<U){for(var F=Array(U),ie=0;ie<U;ie++)F[ie]=arguments[ie+2];Object.freeze&&Object.freeze(F),P.children=F}if(s&&s.defaultProps)for(Y in U=s.defaultProps,U)P[Y]===void 0&&(P[Y]=U[Y]);T&&g(P,typeof s=="function"?s.displayName||s.name||"Unknown":s);var Y=1e4>v.recentlyCreatedOwnerStacks++;return b(s,T,P,p(),Y?Error("react-stack-top-frame"):G,Y?w(f(s)):de)},$.createRef=function(){var s={current:null};return Object.seal(s),s},$.forwardRef=function(s){s!=null&&s.$$typeof===De?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof s!="function"?console.error("forwardRef requires a render function but was given %s.",s===null?"null":typeof s):s.length!==0&&s.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",s.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),s!=null&&s.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var d={$$typeof:ze,render:s},E;return Object.defineProperty(d,"displayName",{enumerable:!1,configurable:!0,get:function(){return E},set:function(P){E=P,s.name||s.displayName||(Object.defineProperty(s,"name",{value:P}),s.displayName=P)}}),d},$.isValidElement=R,$.lazy=function(s){s={_status:-1,_result:s};var d={$$typeof:Be,_payload:s,_init:Q},E={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return s._ioInfo=E,d._debugInfo=[{awaited:E}],d},$.memo=function(s,d){s==null&&console.error("memo: The first argument must be a component. Instead received: %s",s===null?"null":typeof s),d={$$typeof:De,type:s,compare:d===void 0?null:d};var E;return Object.defineProperty(d,"displayName",{enumerable:!1,configurable:!0,get:function(){return E},set:function(P){E=P,s.name||s.displayName||(Object.defineProperty(s,"name",{value:P}),s.displayName=P)}}),d},$.startTransition=function(s){var d=v.T,E={};E._updatedFibers=new Set,v.T=E;try{var P=s(),T=v.S;T!==null&&T(E,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&(v.asyncTransitions++,P.then(k,k),P.then(a,ye))}catch(U){ye(U)}finally{d===null&&E._updatedFibers&&(s=E._updatedFibers.size,E._updatedFibers.clear(),10<s&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),d!==null&&E.types!==null&&(d.types!==null&&d.types!==E.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),d.types=E.types),v.T=d}},$.unstable_useCacheRefresh=function(){return B().useCacheRefresh()},$.use=function(s){return B().use(s)},$.useActionState=function(s,d,E){return B().useActionState(s,d,E)},$.useCallback=function(s,d){return B().useCallback(s,d)},$.useContext=function(s){var d=B();return s.$$typeof===We&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),d.useContext(s)},$.useDebugValue=function(s,d){return B().useDebugValue(s,d)},$.useDeferredValue=function(s,d){return B().useDeferredValue(s,d)},$.useEffect=function(s,d){return s==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),B().useEffect(s,d)},$.useEffectEvent=function(s){return B().useEffectEvent(s)},$.useId=function(){return B().useId()},$.useImperativeHandle=function(s,d,E){return B().useImperativeHandle(s,d,E)},$.useInsertionEffect=function(s,d){return s==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),B().useInsertionEffect(s,d)},$.useLayoutEffect=function(s,d){return s==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),B().useLayoutEffect(s,d)},$.useMemo=function(s,d){return B().useMemo(s,d)},$.useOptimistic=function(s,d){return B().useOptimistic(s,d)},$.useReducer=function(s,d,E){return B().useReducer(s,d,E)},$.useRef=function(s){return B().useRef(s)},$.useState=function(s){return B().useState(s)},$.useSyncExternalStore=function(s,d,E){return B().useSyncExternalStore(s,d,E)},$.useTransition=function(){return B().useTransition()},$.version="19.2.8",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Z=Gn((cc,ur)=>{"use strict";process.env.NODE_ENV==="production"?ur.exports=Zo():ur.exports=Qo()});var Gl={};Vi(Gl,{$l:()=>vn,$t:()=>nr,Component:()=>qt,DEFAULT_MOTION_OPTIONS:()=>Li,FilterMatchMode:()=>Se,FilterOperator:()=>zi,Icon:()=>_l,Locale:()=>he,LocaleContext:()=>Ut,LocaleProvider:()=>hr,LocaleService:()=>ot,Motion:()=>Bl,MotionProvider:()=>go,OVERLAY_OWNER_ATTR:()=>_r,OVERLAY_OWNER_KEY:()=>Ar,OverlayEventBus:()=>Or,PassThroughContext:()=>Bt,PassThroughProvider:()=>gr,PrimeReactContext:()=>Un,PrimeReactProvider:()=>Sl,PrimeReactStyleSheet:()=>To,StylePreloadRegistry:()=>rn,StyleRegistry:()=>Rt,ThemeContext:()=>Ze,ThemeProvider:()=>Dr,addStylePreloadsToStyleSheet:()=>kr,arrayMove:()=>uo,arrayTransfer:()=>fo,collisionStrategies:()=>Qt,combinedRefs:()=>Da,createDnd:()=>bi,createMotion2:()=>Mi,createOptionalContext:()=>Cr,createOverlayManager:()=>Yl,createSafeContext:()=>$a,defaultComponentProps:()=>El,defaultConfigProps:()=>no,defaultIconProps:()=>mo,defaultLocaleProps:()=>mr,defaultMotionProps:()=>vo,defaultPTProps:()=>yr,defaultThemeProps:()=>Nr,defaultUseMotionProps:()=>pn,defaultUseStyleProps:()=>Rl,defineLocale:()=>Nt,en:()=>jo,globalProps:()=>Bn,isDev:()=>Pr,isElementOfType:()=>Va,isValidElement:()=>Mr,mergeRefs:()=>Tr,setOverlayOwner:()=>Ha,showInvalidLicenseBanner:()=>Xn,styles:()=>nn,updateLocale:()=>Ho,upsertStylePreloadsToHead:()=>Lr,useBase:()=>un,useComponent:()=>so,useHeadless:()=>po,useIcon:()=>ho,useLocale:()=>Sa,useMotion:()=>Co,useMotionContext:()=>Al,useOverlayClickEmitter:()=>Ua,usePassThrough:()=>Ea,usePrimeReact:()=>ro,useStyle:()=>oo,useTheme:()=>Wa,withComponent:()=>fn,withHeadless:()=>dn,withIcon:()=>yo});var Se=Object.freeze({STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter",CUSTOM:"custom"});var zi=Object.freeze({AND:"and",OR:"or"});function Xn(){if(typeof document>"u"||document.getElementById("p-license-host"))return;let e=document.createElement("div");e.id="p-license-host",e.style.cssText="all:initial;position:fixed;bottom:16px;right:16px;z-index:2147483647;pointer-events:none;";let t=e.attachShadow({mode:"closed"});t.innerHTML='<div role="alert" style="padding:10px 14px;background:#991b1b;color:#fff;font:600 13px/1.2 system-ui,-apple-system,sans-serif;border-radius:6px;box-shadow:0 4px 12px rgba(0,0,0,0.2);">Invalid PrimeUI License</div>',document.body.appendChild(e)}var Ki=Object.defineProperty,_o=Object.getOwnPropertySymbols,qi=Object.prototype.hasOwnProperty,Yi=Object.prototype.propertyIsEnumerable,Ao=(e,t,n)=>t in e?Ki(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ko=(e,t)=>{for(var n in t||(t={}))qi.call(t,n)&&Ao(e,n,t[n]);if(_o)for(var n of _o(t))Yi.call(t,n)&&Ao(e,n,t[n]);return e};function Ke(e){return e==null||e===""||Array.isArray(e)&&e.length===0||!(e instanceof Date)&&typeof e=="object"&&Object.keys(e).length===0}function Zn(e){return typeof e=="function"&&"call"in e&&"apply"in e}function te(e){return!Ke(e)}function ve(e,t=!0){return e instanceof Object&&e.constructor===Object&&(t||Object.keys(e).length!==0)}var Gi=new Set(["__proto__","constructor","prototype"]);function gn(e,t,n,r=new WeakSet){let o=ko({},e);Object.keys(o).length===0&&!n.has(t)&&n.set(t,o);let i=!r.has(t);return i&&r.add(t),Object.keys(t).forEach(a=>{var l,c;if(Gi.has(a))return;let u=a,f=t[u];ve(f)&&u in e&&ve(e[u])?o[u]=r.has(f)?(l=n.get(f))!=null?l:gn({},f,n,r):gn(e[u],f,n,r):ve(f)?o[u]=(c=n.get(f))!=null?c:gn({},f,n,r):o[u]=f}),i&&r.delete(t),o}function Qn(...e){return e.reduce((t,n)=>gn(t,n||{},new WeakMap),{})}function K(e,...t){return Zn(e)?e(...t):e}function Pe(e,t=!0){return typeof e=="string"&&(t||e!=="")}function en(e){return Pe(e)?e.replace(/(-|_)/g,"").toLowerCase():e}function Te(e,t="",n={}){let r=en(t).split("."),o=r.shift();if(o){if(ve(e)||Array.isArray(e)){let i=Object.keys(e).find(a=>en(a)===o)||"";return Te(K(e[i],n),r.join("."),n)}return}return K(e,n)}function Jn(e,t=!0){return Array.isArray(e)&&(t||e.length!==0)}function Lo(e){return te(e)&&!isNaN(e)}function qe(e,t){if(t){t.lastIndex=0;let n=t.test(e);return t.lastIndex=0,n}return!1}function Xi(e,t){let n=0;for(;t-1-n>=0&&e[t-1-n]==="\\";)n++;return n%2===1}function Io(e){return e.replace(/[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function rt(e){if(!e)return e;let t="",n="",r=0;for(;r<e.length;){let o=e[r];if(o==="/"&&e[r+1]==="*"){let i=e.indexOf("*/",r+2);r=i===-1?e.length:i+2}else if(o==='"'||o==="'"){t+=Io(n),n="";let i=r+1;for(;i<e.length&&(e[i]!==o||Xi(e,i));)i++;t+=e.slice(r,Math.min(i+1,e.length)),r=i+1}else n+=o,r++}return(t+Io(n)).trim()}function er(e={},t=""){return Object.entries(e).reduce((n,[r,o])=>{let i=t?`${t}.${r}`:r;return ve(o)?n=n.concat(er(o,i)):n.push(i),n},[])}function Mo(e,...t){if(!ve(e))return e;let n=ko({},e);return t?.flat().forEach(r=>delete n[r]),n}function Lt(e){return Pe(e)?e.replace(/(_)/g,"-").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():e}function tr(e){if(e==="auto")return 0;if(typeof e=="number")return e;let t=Number(e.replace(",",".").replace(/[^\d.]/g,""));return Number.isNaN(t)||/ms\s*$/.test(e)?t:t*1e3}function No(e){return Pe(e)?e.replace(/[A-Z]/g,(t,n)=>n===0?t:"."+t.toLowerCase()).toLowerCase():e}function Mt(){let e=new Map,t={on(n,r){let o=e.get(n);return o?o.push(r):o=[r],e.set(n,o),t},off(n,r){let o=e.get(n);if(o){let i=o.indexOf(r);i!==-1&&o.splice(i,1)}return t},emit(n,...r){let o=e.get(n);o&&o.forEach(i=>{i(r[0])})},clear(){e.clear()}};return t}var Zi=Mt(),ot=Zi,he={_lang:"en",_fallbackLang:void 0,_locales:new Map,init({lang:e,fallbackLang:t,locales:n}){return this._lang=e||"en",this._fallbackLang=t||this._lang,this._locales=new Map(Object.entries(n||{})),ot.emit("locale:change",{lang:this._lang,locale:this.locale}),this},use(e){this._lang=e||this.lang,ot.emit("locale:change",{lang:this._lang,locale:this.locale})},add(e,t={}){return this._locales.set(e,Qn(this._locales.get(this._fallbackLang),t)),e===this._lang&&ot.emit("locale:change",{lang:this._lang,locale:this.locale}),this},update(e,t={}){return this._locales.has(e)?(this._locales.set(e,Qn(this._locales.get(e),t)),e===this._lang&&ot.emit("locale:change",{lang:this._lang,locale:this.locale}),this):this.add(e,t)},get(e){return this._locales.get(e||this.lang)},get lang(){return this._lang},get locale(){return this._locales.get(this.lang)}},Do=()=>he._locales,Qi={get(e){return he.get(e)},get langs(){return Array.from(Do().keys())},get locales(){return Array.from(Do().values())},define(e,t={}){return he.add(e,t)},update(e,t={}){return he.update(e,t)},use(e){return he.use(e)}},vn=e=>(typeof e=="object"&&e!==null&&he.init(e),Qi),$o=(e,...t)=>{let n=Te(he.locale,e,he);if(Pe(n)&&t.length){let r=n;return t.flat().forEach((o,i)=>{let a=K(o,he);ve(a)?Object.entries(a).forEach(([l,c])=>{r=r.replaceAll(`{${l}}`,String(c))}):r=r.replaceAll(`{${i}}`,String(a))}),r}return n};function Nt(e,t={}){return vn().define(e,t)}function Ho(e,t={}){return vn().update(e,t)}var jo={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",completed:"Completed",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",today:"Today",weekHeader:"Wk",firstDayOfWeek:0,showMonthAfterYear:!1,dateFormat:"mm/dd/yy",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyFilterMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",fileChosenMessage:"{0} files",noFileChosenMessage:"No file chosen",emptyMessage:"No available options",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",toggleSidebar:"Toggle Sidebar",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"Page {page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List"}},Uo=()=>{he.get("en")||Nt("en",jo)};Uo();var nr=(e,...t)=>(Uo(),$o(e,...t));var Sn=ee(Z());function Jo(e=""){let t=Sn.useId();return Sn.useMemo(()=>`${e}${t.replaceAll(/:|«|»/g,"")}`.trim().toLowerCase(),[t,e])}function tn(...e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(!r)continue;let o=typeof r;if(o==="string"||o==="number")t.push(r);else if(o==="object"){let i=Array.isArray(r)?[tn(...r)]:Object.entries(r).map(([a,l])=>l?a:void 0);t=i.length?t.concat(i.filter(a=>!!a)):t}}return t.join(" ").trim()}function ha(e,t){return e?e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className):!1}function En(e,t){if(e&&t){let n=r=>{ha(e,r)||(e.classList?e.classList.add(r):e.className+=" "+r)};[t].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function fr(e,t){if(e&&t){let n=r=>{e.classList?e.classList.remove(r):e.className=e.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")};[t].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function ts(e){let t={width:0,height:0};if(e){let[n,r]=[e.style.visibility,e.style.display],o=e.getBoundingClientRect();e.style.visibility="hidden",e.style.display="block",t.width=o.width||e.offsetWidth,t.height=o.height||e.offsetHeight,e.style.display=r,e.style.visibility=n}return t}function es(e){return typeof Element<"u"?e instanceof Element:e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.nodeName=="string"}function Ht(e){var t;if(es(e))return e;if(!e||typeof e!="object")return;let n=e;if("current"in e)n=e.current,n=(t=Ht(n?.elementRef))!=null?t:n;else if("value"in e)n=e.value;else if("nativeElement"in e)n=e.nativeElement;else if("el"in e){let r=e.el;r&&typeof r=="object"&&"nativeElement"in r?n=r.nativeElement:n=r}else if("elementRef"in e)return Ht(e.elementRef);return n=K(n),es(n)?n:void 0}function Rn(e){return String(e).replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function ns(e,t={}){return e?`<style${Object.entries(t).reduce((n,[r,o])=>n+` ${r}="${Rn(o)}"`,"")}>${e}</style>`:""}function Ie(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function rs(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function dr(){return new Promise(e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})})}function pr(e,t,n=null,r){t&&e!=null&&e.style&&e.style.setProperty(t,n,r)}var ya=Object.defineProperty,os=Object.getOwnPropertySymbols,ga=Object.prototype.hasOwnProperty,va=Object.prototype.propertyIsEnumerable,ss=(e,t,n)=>t in e?ya(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,is=(e,t)=>{for(var n in t||(t={}))ga.call(t,n)&&ss(e,n,t[n]);if(os)for(var n of os(t))va.call(t,n)&&ss(e,n,t[n]);return e};function as(...e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(!r)continue;let o=typeof r;if(o==="string"||o==="number")t.push(r);else if(o==="object"){let i=Array.isArray(r)?[as(...r)]:Object.entries(r).map(([a,l])=>l?a:void 0);t=i.length?t.concat(i.filter(a=>!!a)):t}}return t.join(" ").trim()}function ba(e){return typeof e=="function"&&"call"in e&&"apply"in e}function xa({skipUndefined:e=!1},...t){return t?.reduce((n,r={})=>{for(let o in r){let i=r[o];if(!(e&&i===void 0))if(o==="style")n.style=is(is({},n.style),r.style);else if(o==="class"||o==="className")n[o]=as(n[o],r[o]);else if(ba(i)){let a=n[o];n[o]=a?(...l)=>{a(...l),i(...l)}:i}else n[o]=i}return n},{})}function Ye(...e){return xa({skipUndefined:!1},...e)}var jt=ee(Z());function ls(e){let t=jt.useId(),[n,r]=jt.useState(e||`pr_id_${t.replaceAll(/:|«|»/g,"")}`);return jt.useEffect(()=>{r(e||`pr_id_${t.replaceAll(/:|«|»/g,"")}`)},[e,t]),n}var wn=ee(Z());function cs(e){let t=wn.useRef(!1);wn.useEffect(()=>{t.current||(t.current=!0,e?.())},[])}var Cn=ee(Z());function us(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++){let i=n[o];if(e[i]!==t[i])return!1}return!0}function Ge(e={},t={}){let n=Cn.useRef(null);return Cn.useMemo(()=>{let r={...e},o={};Object.entries(t).forEach(([l,c])=>{l in e?r[l]=c:o[l]=c});let i=n.current;if(i&&us(i.props,r)&&us(i.attrs,o))return i;let a={props:r,attrs:o};return n.current=a,a},[e,t])}var fs=ee(Z());function ds(e){fs.useEffect(()=>()=>{e?.()},[])}var Pn=ee(Z());function ps(e,t){let n=Pn.useRef(!1);Pn.useEffect(()=>{if(!n.current){n.current=!0;return}return e?.()},t)}var ke=ee(Z());var mr={lang:"en",locales:void 0};var Ut=ke.createContext(void 0),hr=(e={})=>{let{props:t,attrs:n}=Ge(mr,e),[r,o]=ke.useState(0),i=ke.useRef(void 0);t.locales&&Object.entries(t.locales).forEach(([c,u])=>{he.get(c)||Nt(c,u)}),t.lang&&t.lang!==i.current&&(i.current=t.lang,t.lang!==he.lang&&he.use(t.lang)),ke.useEffect(()=>{let c=()=>o(u=>u+1);return ot.on("locale:change",c),o(u=>u+1),()=>{ot.off("locale:change",c)}},[]);let a=ke.useMemo(()=>({lang:he.lang,version:r}),[r]),l=ke.useMemo(()=>K(n.children,a),[n.children,a]);return ke.createElement(Ut.Provider,{value:a},l)};var Tn=ee(Z());function Sa(){let e=Tn.useContext(Ut),t=e?.lang??he.lang;return Tn.useMemo(()=>({lang:t,messages:he.get(t)??he.get("en"),t:(n,...r)=>String(nr(n,...r))}),[t,e?.version])}var St=ee(Z());var yr={value:void 0,mergeProps:!1,mergeSections:!0};var Bt=St.createContext(void 0),gr=(e={})=>{let{props:t,attrs:n}=Ge(yr,e),{value:r,mergeProps:o,mergeSections:i}=t,a=St.useMemo(()=>({value:r,options:{mergeProps:o,mergeSections:i}}),[r,o,i]),l=St.useMemo(()=>K(n.children,a),[n.children,a]);return St.createElement(Bt.Provider,{value:a},l)};var ms=ee(Z());function Ea(){let e=ms.useContext(Bt);if(e===void 0)throw new Error("Context must be used within a PassThroughProvider");return e}var Ra=Object.defineProperty,wa=Object.defineProperties,Ca=Object.getOwnPropertyDescriptors,_n=Object.getOwnPropertySymbols,ys=Object.prototype.hasOwnProperty,gs=Object.prototype.propertyIsEnumerable,hs=(e,t,n)=>t in e?Ra(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,He=(e,t)=>{for(var n in t||(t={}))ys.call(t,n)&&hs(e,n,t[n]);if(_n)for(var n of _n(t))gs.call(t,n)&&hs(e,n,t[n]);return e},On=(e,t)=>wa(e,Ca(t)),ft=(e,t)=>{var n={};for(var r in e)ys.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&_n)for(var r of _n(e))t.indexOf(r)<0&&gs.call(e,r)&&(n[r]=e[r]);return n};var Pa=Mt(),Xe=Pa,Et=/{([^}]*)}/g,br=/(\d+\s+[+*/-]\s+\d+)/g,xr=/var\([^)]+\)/g;function Sr(e){return Pe(e)?e.replace(/[A-Z]/g,(t,n)=>n===0?t:"."+t.toLowerCase()).toLowerCase():e}function Ta(e){return ve(e)&&Object.prototype.hasOwnProperty.call(e,"$value")&&Object.prototype.hasOwnProperty.call(e,"$type")?e.$value:e}function Oa(e){return e.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Er(e="",t=""){return Oa(`${Pe(e,!1)&&Pe(t,!1)?`${e}-`:e}${t}`)}function vs(e="",t=""){return`--${Er(e,t)}`}function _a(e=""){let t=(e.match(/{/g)||[]).length,n=(e.match(/}/g)||[]).length;return(t+n)%2!==0}function An(e,t="",n="",r=[],o){if(Pe(e)){let i=e.trim();if(_a(i))return;if(qe(i,Et)){let a=i.replaceAll(Et,l=>{let c=l.replace(/{|}/g,"").split(".").filter(u=>!r.some(f=>qe(u,f)));return`var(${vs(n,Lt(c.join("-")))}${te(o)?`, ${o}`:""})`});return qe(a.replace(xr,"0"),br)?`calc(${a})`:a}return i}else if(Lo(e))return e}function Aa(e,t,n){Pe(t,!1)&&e.push(`${t}:${n};`)}function Ft(e,t){return e?`${e}{${t}}`:""}function bs(e,t){if(e.indexOf("dt(")===-1)return e;function n(a,l){let c=[],u=0,f="",p=null,h=0;for(;u<=a.length;){let m=a[u];if((m==='"'||m==="'"||m==="`")&&a[u-1]!=="\\"&&(p=p===m?null:m),!p&&(m==="("&&h++,m===")"&&h--,(m===","||u===a.length)&&h===0)){let g=f.trim();g.startsWith("dt(")?c.push(bs(g,l)):c.push(r(g)),f="",u++;continue}m!==void 0&&(f+=m),u++}return c}function r(a){let l=a[0];if((l==='"'||l==="'"||l==="`")&&a[a.length-1]===l)return a.slice(1,-1);let c=Number(a);return isNaN(c)?a:c}let o=[],i=[];for(let a=0;a<e.length;a++)if(e[a]==="d"&&e.slice(a,a+3)==="dt(")i.push(a),a+=2;else if(e[a]===")"&&i.length>0){let l=i.pop();i.length===0&&o.push([l,a])}if(!o.length)return e;for(let a=o.length-1;a>=0;a--){let[l,c]=o[a],u=e.slice(l+3,c),f=n(u,t),p=t(...f);e=e.slice(0,l)+p+e.slice(c+1)}return e}var Ia=(e,t)=>{let n=e.split("."),r="";for(let o=0;o<n.length;o++){let i=Sr(n[o]);t.lastIndex=0,!t.test(i)&&(r=r?`${r}.${i}`:i)}return r},vr=(e,t,n,r,o)=>{if(typeof e!="string")return e??ne.getTokenValue(t);if(Et.lastIndex=0,!Et.test(e))return e;let i=t.slice(0,t.indexOf(".")),a=e.replace(Et,l=>{let c=l.slice(1,-1),u=c.indexOf(".");if((u===-1?c:c.slice(0,u))!==i)return l;let f=ne.getTokenValue(c);return f==null?l:`${f}`});return An(a,void 0,n,[r],o)},ka=(e,t,n,r)=>{var o,i,a,l;let c=Ia(e,n),u=ne.tokens,f=u.__strictCache;f||(f=new Map,Object.defineProperty(u,"__strictCache",{value:f,enumerable:!1,configurable:!0}));let p=r==null||typeof r!="object",h=p&&r!=null?`${t}|${c}|${r}`:`${t}|${c}`,m=p?f.get(h):void 0;if(m===void 0&&(!p||!f.has(h))){let g=(o=u[c])==null?void 0:o.paths,y=g?.find(S=>S.scheme==="none"),b=(i=g?.find(S=>S.scheme==="light"))!=null?i:y,C=(a=g?.find(S=>S.scheme==="dark"))!=null?a:y;if(b&&C&&b!==C){let S=vr(b.value,c,t,n,r),R=vr(C.value,c,t,n,r);m=S===R?S:`light-dark(${S},${R})`}else m=vr((l=b??C)==null?void 0:l.value,c,t,n,r);p&&f.set(h,m)}return ne.hasScopedTokenPath(c)?An(`{${c}}`,void 0,t,[n],m):m},wr=e=>{var t,n,r;let o=ne.getTheme(),i=`${(t=Rr(o,e,void 0,"variable"))!=null?t:""}`,a=(r=(n=i.match(/--[\w-]+/g))==null?void 0:n[0])!=null?r:"",l=Rr(o,e,void 0,"value");return{name:a,variable:i,value:l}},dt=(e,t,n)=>Rr(ne.getTheme(),e,t,n),Rr=(e={},t,n,r)=>{var o,i,a,l,c,u,f,p,h,m;if(!t)return"";let g=(o=ne.defaults)==null?void 0:o.variable,y=(c=(i=e?.options)==null?void 0:i.prefix)!=null?c:(l=(a=ne.defaults)==null?void 0:a.options)==null?void 0:l.prefix,b=(m=(h=(u=e?.options)==null?void 0:u.cssVariables)!=null?h:(p=(f=ne.defaults)==null?void 0:f.options)==null?void 0:p.cssVariables)!=null?m:!0;if(r==="value")return ne.getTokenValue(t);if(Ke(r)&&!b)return ka(t,y,g.excludedKeyRegex,n);let C=qe(t,Et)?t:`{${t}}`;return An(C,void 0,y,[g.excludedKeyRegex],n)},La=(...e)=>{var t;return`${(t=dt(...e))!=null?t:""}`};function Vt(e,...t){if(e instanceof Array){let n=e.reduce((r,o,i)=>{var a;return r+o+((a=K(t[i],{dt}))!=null?a:"")},"");return bs(n,La)}return K(e,{dt})}function Ma(e,t={}){let n=ne.defaults.variable,{prefix:r=n.prefix,selector:o=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=t,a=[],l=[],c=[{node:e,path:r}];for(;c.length;){let{node:f,path:p}=c.pop();for(let h in f){let m=f[h],g=Ta(m),y=qe(h,i)?Er(p):Er(p,Lt(h));if(ve(g))c.push({node:g,path:y});else{let b=vs(y),C=An(g,y,r,[i]);Aa(l,b,C==null?C:`${C}`);let S=y;r&&S.startsWith(r+"-")&&(S=S.slice(r.length+1)),a.push(S.replace(/-/g,"."))}}}let u=l.join("");return{value:l,tokens:a,declarations:u,css:Ft(o,u)}}var Ve={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(e){return{type:"class",selector:e,matched:this.pattern.test(e.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(e){return{type:"attr",selector:`:root${e},:host${e}`,matched:this.pattern.test(e.trim())}}},media:{pattern:/^@media (.*)$/,resolve(e){return{type:"media",selector:e,matched:this.pattern.test(e.trim())}}},system:{pattern:/^system$/,resolve(e){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(e.trim())}}},custom:{resolve(e){return{type:"custom",selector:e,matched:!0}}}},resolve(e){let t=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[e].flat().map(n=>{var r;return(r=t.map(o=>o.resolve(n)).find(o=>o.matched))!=null?r:this.rules.custom.resolve(n)})}},_toVariables(e,t){return Ma(e,{prefix:t?.prefix})},getCommon({name:e="",theme:t={},params:n,set:r,defaults:o}){var i,a,l,c,u,f,p;let{preset:h,options:m}=t,g,y,b,C,S,R,O;if(te(h)){let{primitive:_,semantic:D,extend:W}=h,H=D||{},{colorScheme:Q}=H,B=ft(H,["colorScheme"]),k=W||{},{colorScheme:M}=k,j=ft(k,["colorScheme"]),fe=Q||{},{dark:ae}=fe,ce=ft(fe,["dark"]),be=M||{},{dark:me}=be,oe=ft(be,["dark"]),Ne=te(_)?this._toVariables({primitive:_},m):{},tt=te(B)?this._toVariables({semantic:B},m):{},We=te(ce)?this._toVariables({light:ce},m):{},nt=te(ae)?this._toVariables({dark:ae},m):{},ze=te(j)?this._toVariables({semantic:j},m):{},lt=te(oe)?this._toVariables({light:oe},m):{},ct=te(me)?this._toVariables({dark:me},m):{},[De,Be]=[(i=Ne.declarations)!=null?i:"",Ne.tokens],[$e,bt]=[(a=tt.declarations)!=null?a:"",tt.tokens||[]],[Fe,_t]=[(l=We.declarations)!=null?l:"",We.tokens||[]],[At,xt]=[(c=nt.declarations)!=null?c:"",nt.tokens||[]],[Ce,It]=[(u=ze.declarations)!=null?u:"",ze.tokens||[]],[Jt,v]=[(f=lt.declarations)!=null?f:"",lt.tokens||[]],[x,w]=[(p=ct.declarations)!=null?p:"",ct.tokens||[]];g=this.transformCSS(e,De,"light","variable",m,r,o),y=Be;let I=this.transformCSS(e,`${$e}${Fe}`,"light","variable",m,r,o),z=this.transformCSS(e,`${At}`,"dark","variable",m,r,o);b=`${I}${z}`,C=[...new Set([...bt,..._t,...xt])];let L=this.transformCSS(e,`${Ce}${Jt}color-scheme:light`,"light","variable",m,r,o),G=this.transformCSS(e,`${x}color-scheme:dark`,"dark","variable",m,r,o);S=`${L}${G}`,R=[...new Set([...It,...v,...w])],O=K(h.css,{dt})}return{primitive:{css:g,tokens:y},semantic:{css:b,tokens:C},global:{css:S,tokens:R},style:O}},getPreset({name:e="",preset:t={},options:n,params:r,set:o,defaults:i,selector:a,isScopedTokenPaths:l}){var c,u,f,p;let h,m,g;if(te(t)&&((c=n?.cssVariables)==null||c||l)){let y=e.replace("-directive",""),b=t,{colorScheme:C,extend:S,css:R}=b,O=ft(b,["colorScheme","extend","css"]),_=S||{},{colorScheme:D}=_,W=ft(_,["colorScheme"]),H=C||{},{dark:Q}=H,B=ft(H,["dark"]),k=D||{},{dark:M}=k,j=ft(k,["dark"]),fe=te(O)?this._toVariables({[y]:He(He({},O),W)},n):{},ae=te(B)?this._toVariables({[y]:He(He({},B),j)},n):{},ce=te(Q)?this._toVariables({[y]:He(He({},Q),M)},n):{},[be,me]=[(u=fe.declarations)!=null?u:"",fe.tokens||[]],[oe,Ne]=[(f=ae.declarations)!=null?f:"",ae.tokens||[]],[tt,We]=[(p=ce.declarations)!=null?p:"",ce.tokens||[]],nt=this.transformCSS(y,`${be}${oe}`,"light","variable",n,o,i,a),ze=this.transformCSS(y,tt,"dark","variable",n,o,i,a);h=`${nt}${ze}`,m=[...new Set([...me,...Ne,...We])],g=K(R,{dt})}return{css:h,tokens:m,style:g}},getScopedSelector(e,t){if(!(!(t!=null&&t.scoped)||!e))return`[data-styled="${e}"]`},getPresetC({name:e="",theme:t={},params:n,set:r,defaults:o}){var i;let{preset:a,options:l}=t,c=(i=a?.components)==null?void 0:i[e],u=this.getScopedSelector(e,l);return this.getPreset({name:e,preset:c,options:l,params:n,set:r,defaults:o,selector:u})},getPresetD({name:e="",theme:t={},params:n,set:r,defaults:o}){var i,a;let l=e.replace("-directive",""),{preset:c,options:u}=t,f=((i=c?.components)==null?void 0:i[l])||((a=c?.directives)==null?void 0:a[l]),p=this.getScopedSelector(l,u);return this.getPreset({name:l,preset:f,options:u,params:n,set:r,defaults:o,selector:p})},applyDarkColorScheme(e){let t=e.darkModeSelector;return!(t==="none"||t===!1)},getColorSchemeOption(e,t){var n;return this.applyDarkColorScheme(e)?this.regex.resolve(e.darkModeSelector===!0?t.options.darkModeSelector:(n=e.darkModeSelector)!=null?n:t.options.darkModeSelector):[]},getLayerOrder(e,t={},n,r){let{cssLayer:o}=t;return o?`@layer ${K(o.order||o.name||"primeui",n)}`:""},getCommonStyleSheet({name:e="",theme:t={},params:n,props:r={},set:o,defaults:i}){let a=this.getCommon({name:e,theme:t,params:n,set:o,defaults:i}),l=Object.entries(r).reduce((c,[u,f])=>(c.push(`${u}="${Rn(f)}"`),c),[]).join(" ");return Object.entries(a||{}).reduce((c,[u,f])=>{if(ve(f)&&Object.hasOwn(f,"css")){let p=rt(f.css),h=`${u}-variables`;c.push(`<style type="text/css" data-primevue-style-id="${h}" ${l}>${p}</style>`)}return c},[]).join("")},getStyleSheet({name:e="",theme:t={},params:n,props:r={},set:o,defaults:i}){var a;let l={name:e,theme:t,params:n,set:o,defaults:i},c=(a=e.includes("-directive")?this.getPresetD(l):this.getPresetC(l))==null?void 0:a.css,u=Object.entries(r).reduce((f,[p,h])=>(f.push(`${p}="${Rn(h)}"`),f),[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${e}-variables" ${u}>${rt(c)}</style>`:""},createTokens(e={},t,n="",r="",o={}){let i=function(u,f,p,h){return u.replace(Et,m=>{var g;let y=m.slice(1,-1),b=this.tokens[y];if(!b)return console.warn(`Token not found for path: ${y}`),"__UNRESOLVED__";let C=b.computed(f,p,h);if(Array.isArray(C)&&C.length===2){let S=C[0].value,R=C[1].value;return S===R?S??"__UNRESOLVED__":`light-dark(${S},${R})`}return(g=C?.value)!=null?g:"__UNRESOLVED__"})},a=function(u,f,p,h){if(u.indexOf("light-dark(")===-1)return u;let m=[],g=u.length,y=0;for(;y<g;){let b=u.indexOf("light-dark(",y);if(b===-1){m.push(u.slice(y));break}m.push(u.slice(y,b));let C=1,S=b+11,R=-1;for(;S<g&&C>0;){let W=u.charCodeAt(S);W===40?C++:W===41?C--:W===44&&C===1&&R===-1&&(R=S),S++}if(C!==0||R===-1){m.push(u.slice(b));break}let O=u.slice(b+11,R).trim(),_=u.slice(R+1,S-1).trim(),D=f&&f!=="none"?f:null;if(D==="light")m.push(a.call(this,O,"light",p,h));else if(D==="dark")m.push(a.call(this,_,"dark",p,h));else{let W=i.call(this,a.call(this,O,"light",p,h),"light",p,h),H=i.call(this,a.call(this,_,"dark",p,h),"dark",p,h);m.push(W===H?W:`light-dark(${W},${H})`)}y=S}return m.join("")},l=function(u,f={},p=[]){if(p.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:u,path:this.path,paths:f,value:void 0};p.push(this.path),f.name=this.path,f.binding||(f.binding={});let h=this.value;if(typeof this.value=="string"){let m=this.value.trim(),g=m.indexOf("light-dark(")!==-1,y=m.indexOf("{")!==-1;if(g||y){let b=g?a.call(this,m,u,f,p):m,C=b.indexOf("{")!==-1?i.call(this,b,u,f,p):b;br.lastIndex=0,xr.lastIndex=0,h=br.test(C.replace(xr,"0"))?`calc(${C})`:C}}return Ke(f.binding)&&delete f.binding,p.pop(),{colorScheme:u,path:this.path,paths:f,value:typeof h=="string"&&h.indexOf("__UNRESOLVED__")!==-1?void 0:h}},c=(u,f,p)=>{Object.entries(u).forEach(([h,m])=>{let g=qe(h,t.variable.excludedKeyRegex)?f:f?`${f}.${Sr(h)}`:Sr(h),y=p?`${p}.${h}`:h;ve(m)?c(m,g,y):(o[g]||(o[g]={paths:[],computed:(b,C={},S=[])=>{let R=o[g].paths;if(R.length===1){let O=R[0],_=O.scheme!=="none"?O.scheme:b;return O.computed(_,C.binding,S)}else if(b&&b!=="none")for(let O=0;O<R.length;O++){let _=R[O];if(_.scheme===b)return _.computed(b,C.binding,S)}return R.map(O=>O.computed(O.scheme,C[O.scheme],S))}}),o[g].paths.push({path:y,value:m,scheme:y.includes("colorScheme.light")?"light":y.includes("colorScheme.dark")?"dark":"none",computed:l,tokens:o}))})};return c(e,n,r),o},getTokenValue(e,t,n){var r,o,i;let a=e.__cache;a||(a=new Map,Object.defineProperty(e,"__cache",{value:a,enumerable:!1,configurable:!0}));let l=a.get(t);if(l!==void 0||a.has(t))return l;let c=n.variable.excludedKeyRegex,u=t.split("."),f=[];for(let y=0;y<u.length;y++){let b=u[y];c.lastIndex=0,c.test(b.toLowerCase())||f.push(b)}let p=f.join("."),h=t.indexOf("colorScheme.light")!==-1?"light":t.indexOf("colorScheme.dark")!==-1?"dark":void 0,m=e[p];if(!m){a.set(t,void 0);return}let g;if(h){let y=m.computed(h);if(Array.isArray(y)){for(let b=0;b<y.length;b++)if(((r=y[b])==null?void 0:r.colorScheme)===h){g=y[b].value;break}}else g=y?.value}else{let y=m.computed("light"),b=m.computed("dark"),C,S;if(Array.isArray(y)){for(let R=0;R<y.length;R++)if(((o=y[R])==null?void 0:o.colorScheme)==="light"){C=y[R].value;break}}else C=y?.value;if(Array.isArray(b)){for(let R=0;R<b.length;R++)if(((i=b[R])==null?void 0:i.colorScheme)==="dark"){S=b[R].value;break}}else S=b?.value;C===void 0&&S===void 0?g=void 0:C===void 0?g=S:S===void 0||C===S?g=C:g=`light-dark(${C},${S})`}return a.set(t,g),g},getSelectorRule(e,t,n,r,o=":root,:host"){return n==="class"||n==="attr"?Ft(te(t)?`${e}${t},${e} ${t}`:e,r):Ft(e,Ft(t??o,r))},transformCSS(e,t,n,r,o={},i,a,l){var c,u;if(te(t)){let{cssLayer:f}=o;if(r!=="style"){let p=this.getColorSchemeOption(o,a),h=(u=(c=a?.variable)==null?void 0:c.selector)!=null?u:":root,:host";t=n==="dark"?p.reduce((m,{type:g,selector:y})=>(te(y)&&(m+=y.includes("[CSS]")?y.replace("[CSS]",t):this.getSelectorRule(y,l,g,t,h)),m),""):Ft(l??h,t)}if(f){let p={name:"primeui",order:"primeui"};ve(f)&&(p.name=K(f.name,{name:e,type:r})),te(p.name)&&(t=Ft(`@layer ${p.name}`,t),i?.layerNames(p.name))}return t}return""}},ne={defaults:{variable:{prefix:"p",selector:":root,:host",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1,cssVariables:!0,scoped:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},_scopedTokenPaths:new Set,update(e={}){let{theme:t}=e;t&&(this._theme=On(He({},t),{options:He(He({},this.defaults.options),t.options)}),this._tokens=Ve.createTokens(this.preset,this.defaults),this.resetCaches())},get theme(){return this._theme},get preset(){var e;return((e=this.theme)==null?void 0:e.preset)||{}},get options(){var e;return((e=this.theme)==null?void 0:e.options)||{}},get tokens(){return this._tokens},hasScopedTokenPath(e){return this._scopedTokenPaths.has(e)},getScopedTokenPaths(){return[...this._scopedTokenPaths]},addScopedToken(e){let t=!1;return e&&Object.keys(e).length&&er(e).forEach(n=>{let r=No(n);this._scopedTokenPaths.has(r)||(this._scopedTokenPaths.add(r),t=!0)}),t},clearScopedTokenPaths(){this._scopedTokenPaths.clear()},getTheme(){return this.theme},setTheme(e){this.update({theme:e}),Xe.emit("theme:change",e)},getPreset(){return this.preset},setPreset(e){this._theme=On(He({},this.theme),{preset:e}),this._tokens=Ve.createTokens(e,this.defaults),this.resetCaches(),Xe.emit("preset:change",e),Xe.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(e){this._theme=On(He({},this.theme),{options:e}),this.resetStyleCaches(),Xe.emit("options:change",e),Xe.emit("theme:change",this.theme)},resetStyleCaches(){this.clearLoadedStyleNames(),this.clearLayerNames()},resetCaches(){this.resetStyleCaches(),this.clearScopedTokenPaths()},getLayerNames(){return[...this._layerNames]},setLayerNames(e){this._layerNames.add(e)},clearLayerNames(){this._layerNames.clear()},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(e){return this._loadedStyleNames.has(e)},setLoadedStyleName(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(e){return Ve.getTokenValue(this.tokens,e,this.defaults)},getCommon(e="",t){return Ve.getCommon({name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(e="",t){let n={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Ve.getPresetC(n)},getDirective(e="",t){let n={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Ve.getPresetD(n)},getCustomPreset(e="",t,n,r){let o={name:e,preset:t,options:this.options,selector:n,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)},isScopedTokenPaths:!0};return Ve.getPreset(o)},getLayerOrderCSS(e=""){return Ve.getLayerOrder(e,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(e="",t,n="style",r){return Ve.transformCSS(e,t,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(e="",t,n={}){return Ve.getCommonStyleSheet({name:e,theme:this.theme,params:t,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(e,t,n={}){return Ve.getStyleSheet({name:e,theme:this.theme,params:t,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(e){this._loadingStyles.add(e)},onStyleUpdated(e){this._loadingStyles.add(e)},onStyleLoaded(e,{name:t}){this._loadingStyles.size&&(this._loadingStyles.delete(t),Xe.emit(`theme:${t}:load`,e),this._loadingStyles.size||Xe.emit("theme:load"))}};var Na=class{constructor({attrs:e}={}){this._styles=new Map,this._attrs=e||{}}get(e){return this._styles.get(e)}has(e){return this._styles.has(e)}delete(e){this._styles.delete(e)}clear(){this._styles.clear()}add(e,t){if(te(t)){let n={name:e,css:t,attrs:this._attrs,markup:ns(t,this._attrs)};this._styles.set(e,On(He({},n),{element:this.createStyleElement(n)}))}}update(){}getStyles(){return this._styles}getAllCSS(){return[...this._styles.values()].map(e=>e.css).filter(e=>!!e)}getAllMarkup(){return[...this._styles.values()].map(e=>e.markup).filter(e=>!!e)}getAllElements(){return[...this._styles.values()].map(e=>e.element)}createStyleElement(e={}){}},xs=Na;var nn={name:"icon",classes:{root:({props:e})=>["p-icon",{"p-icon-spin":e.spin,"p-icon-flip-horizontal":e.flip==="horizontal","p-icon-flip-vertical":e.flip==="vertical"}]},inlineStyles:{root:({props:e})=>({...e.size?{[wr("icon.size").name]:e.size}:void 0,...e.rotate?{[wr("icon.rotate").name]:`${e.rotate}deg`}:void 0})}};var Da=(e,t)=>{e&&t&&t!==e&&(typeof t=="function"?t(e&&"current"in e?e.current:null):"current"in t&&"current"in e&&t.current!==e.current&&(t.current=e&&"current"in e?e.current:null))};var pt=ee(Z());function Ss(e,t){let n=pt.createContext(e);return[({value:i,children:a})=>{let l=pt.useMemo(()=>K(a,i),[a,i]);return pt.createElement(n.Provider,{value:i},l)},()=>{let i=pt.useContext(n);return i===void 0?t?.():i}]}function $a(e,t){return Ss(e,()=>{throw new Error(t||"Context must be used within a Provider")})}function Cr(e){return Ss(e,()=>e)}var Pr=typeof process<"u"&&process.env?.NODE_ENV!=="production";function Tr(...e){return t=>{for(let n of e)if(n!=null)if(typeof n=="function")n(t);else try{n.current=t}catch{}}}var Or=Mt();var _r="data-overlay-owner",Ar="__primereactOverlayOwner";function Ha(e,t){e&&(t?(e[Ar]=t,e.setAttribute(_r,"")):(delete e[Ar],e.removeAttribute(_r)))}var ja=e=>({id:e.id,css:e.css,phase:e.phase??"both",priority:e.priority??0}),Ir=e=>e.sort((t,n)=>{let r=t.priority-n.priority;return r!==0?r:t.id.localeCompare(n.id)}),rn={_entries:new Map,register(e){!e.id||!e.css||this._entries.set(e.id,ja(e))},registerMany(e=[]){e.forEach(t=>this.register(t))},has(e){return this._entries.has(e)},getAll(){return Ir([...this._entries.values()])},getForSSR(){return Ir([...this._entries.values()].filter(e=>e.phase!=="client"))},getForClient(){return Ir([...this._entries.values()].filter(e=>e.phase!=="ssr"))},clear(){this._entries.clear()}},kr=(e,t)=>{t.forEach(n=>{e?.has(n.id)||e?.add(n.id,n.css)})},Lr=e=>{e.forEach(t=>{let n=document.head.querySelector(`style[data-primereact-style-id="${t.id}"]`)||document.createElement("style");n.isConnected||(document.head.appendChild(n),n.setAttribute("data-primereact-style-id",t.id)),n.textContent=t.css})};var Rt={_loadedStyleNames:new Set,_styleRefCount:new Map,getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(e){return(this._styleRefCount.get(e)??0)>0},getStyleRefCount(e){return this._styleRefCount.get(e)??0},retainStyleName(e){let t=this.getStyleRefCount(e),n=t+1;return this._styleRefCount.set(e,n),this._loadedStyleNames.add(e),t===0},releaseStyleName(e){let t=this.getStyleRefCount(e);return t<=1?(this._styleRefCount.delete(e),this._loadedStyleNames.delete(e),!0):(this._styleRefCount.set(e,t-1),!1)},setLoadedStyleName(e){this.retainStyleName(e)},deleteLoadedStyleName(e){this._styleRefCount.delete(e),this._loadedStyleNames.delete(e)},clearLoadedStyleNames(){this._styleRefCount.clear(),this._loadedStyleNames.clear()},getStats(){return{totalStyles:this._loadedStyleNames.size,styleRefCounts:Array.from(this._styleRefCount.entries()).map(([e,t])=>({name:e,refCount:t}))}}};var In=ee(Z());function Ua(e,t){let n=In.useRef(t);n.current=t,In.useEffect(()=>{if(!e)return;let r=o=>{Or.emit("overlay-click",{originalEvent:o,target:n.current?.()??null})};return e.addEventListener("pointerdown",r,!0),()=>{e.removeEventListener("pointerdown",r,!0)}},[e])}var Ba=Symbol.for("react.element"),Fa=Symbol.for("react.transitional.element");function Mr(e){return typeof e=="object"&&e!==null&&(e.$$typeof===Ba||e.$$typeof===Fa)}function Va(e,t){if(typeof e!="object"||e===null)return!1;let n=e.displayName||e.type?.displayName||e.type?.name;return n===t||n?.includes(`PrimeReact.${t}`)||n?.includes(`PrimeReact.UI${t}`)}var st=ee(Z());var Nr={preset:void 0,prefix:"p",darkModeSelector:"system",cssLayer:!1,cssVariables:!0,scoped:!1,stylesheet:void 0};var Ze=st.createContext(null),Dr=(e={})=>{let{props:t}=Ge(Nr,e),{stylesheet:n,preset:r,...o}=t,i={preset:r,stylesheet:n,...o};ne.setTheme({preset:r,options:o});let a=st.useMemo(()=>rt(Vt`${nn.css}`)||"",[]);return st.useMemo(()=>{te(a)&&rn.register({id:"icon",css:a,phase:"both",priority:10})},[a]),Ie()||kr(n,rn.getForSSR()),st.useInsertionEffect(()=>{Ie()&&Lr(rn.getForClient())},[]),st.createElement(Ze.Provider,{value:i},K(e.children,i))};var Es=ee(Z());function Wa(){let e=Es.useContext(Ze);if(e===void 0)throw new Error("Context must be used within a ThemeProvider");return e}var za={p:0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffedn,n:0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3edn,h:8n,a:0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffecn,d:0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3n,Gx:0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51an,Gy:0x6666666666666666666666666666666666666666666666666666666666666658n},{p:Oe,n:kn,Gx:Rs,Gy:ws,a:$r,d:Hr}=za,Ka=8n,on=32,jr=64,Le=(e="")=>{throw new Error(e)},qa=e=>typeof e=="bigint",As=e=>typeof e=="string",Ya=e=>e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array",zt=(e,t)=>!Ya(e)||typeof t=="number"&&t>0&&e.length!==t?Le("Uint8Array expected"):e,Dn=e=>new Uint8Array(e),Vr=e=>Uint8Array.from(e),Is=(e,t)=>e.toString(16).padStart(t,"0"),Wr=e=>Array.from(zt(e)).map(t=>Is(t,2)).join(""),it={_0:48,_9:57,A:65,F:70,a:97,f:102},Cs=e=>{if(e>=it._0&&e<=it._9)return e-it._0;if(e>=it.A&&e<=it.F)return e-(it.A-10);if(e>=it.a&&e<=it.f)return e-(it.a-10)},zr=e=>{let t="hex invalid";if(!As(e))return Le(t);let n=e.length,r=n/2;if(n%2)return Le(t);let o=Dn(r);for(let i=0,a=0;i<r;i++,a+=2){let l=Cs(e.charCodeAt(a)),c=Cs(e.charCodeAt(a+1));if(l===void 0||c===void 0)return Le(t);o[i]=l*16+c}return o},Ln=(e,t)=>zt(As(e)?zr(e):Vr(zt(e)),t),ks=()=>globalThis?.crypto,Ga=()=>ks()?.subtle??Le("crypto.subtle must be defined"),Ur=(...e)=>{let t=Dn(e.reduce((r,o)=>r+zt(o).length,0)),n=0;return e.forEach(r=>{t.set(r,n),n+=r.length}),t},Xa=(e=on)=>ks().getRandomValues(Dn(e)),Mn=BigInt,wt=(e,t,n,r="bad number: out of range")=>qa(e)&&t<=e&&e<n?e:Le(r),A=(e,t=Oe)=>{let n=e%t;return n>=0n?n:t+n},Za=e=>A(e,kn),Ls=(e,t)=>{(e===0n||t<=0n)&&Le("no inverse n="+e+" mod="+t);let n=A(e,t),r=t,o=0n,i=1n,a=1n,l=0n;for(;n!==0n;){let c=r/n,u=r%n,f=o-a*c,p=i-l*c;r=n,n=u,o=a,i=l,a=f,l=p}return r===1n?A(o,t):Le("no inverse")},Qa=e=>{let t=sn[e];return typeof t!="function"&&Le("hashes."+e+" not set"),t},Ps=e=>e instanceof at?e:Le("Point expected"),Br=2n**256n,at=class e{static BASE;static ZERO;ex;ey;ez;et;constructor(t,n,r,o){let i=Br;this.ex=wt(t,0n,i),this.ey=wt(n,0n,i),this.ez=wt(r,1n,i),this.et=wt(o,0n,i),Object.freeze(this)}static fromAffine(t){return new e(t.x,t.y,1n,A(t.x*t.y))}static fromBytes(t,n=!1){let r=Hr,o=Vr(zt(t,on)),i=t[31];o[31]=i&-129;let a=Kr(o);wt(a,0n,n?Br:Oe);let c=A(a*a),u=A(c-1n),f=A(r*c+1n),{isValid:p,value:h}=tl(u,f);p||Le("bad point: y not sqrt");let m=(h&1n)===1n,g=(i&128)!==0;return!n&&h===0n&&g&&Le("bad point: x==0, isLastByteOdd"),g!==m&&(h=A(-h)),new e(h,a,1n,A(h*a))}assertValidity(){let t=$r,n=Hr,r=this;if(r.is0())throw new Error("bad point: ZERO");let{ex:o,ey:i,ez:a,et:l}=r,c=A(o*o),u=A(i*i),f=A(a*a),p=A(f*f),h=A(c*t),m=A(f*A(h+u)),g=A(p+A(n*A(c*u)));if(m!==g)throw new Error("bad point: equation left != right (1)");let y=A(o*i),b=A(a*l);if(y!==b)throw new Error("bad point: equation left != right (2)");return this}equals(t){let{ex:n,ey:r,ez:o}=this,{ex:i,ey:a,ez:l}=Ps(t),c=A(n*l),u=A(i*o),f=A(r*l),p=A(a*o);return c===u&&f===p}is0(){return this.equals(Wt)}negate(){return new e(A(-this.ex),this.ey,this.ez,A(-this.et))}double(){let{ex:t,ey:n,ez:r}=this,o=$r,i=A(t*t),a=A(n*n),l=A(2n*A(r*r)),c=A(o*i),u=t+n,f=A(A(u*u)-i-a),p=c+a,h=p-l,m=c-a,g=A(f*h),y=A(p*m),b=A(f*m),C=A(h*p);return new e(g,y,C,b)}add(t){let{ex:n,ey:r,ez:o,et:i}=this,{ex:a,ey:l,ez:c,et:u}=Ps(t),f=$r,p=Hr,h=A(n*a),m=A(r*l),g=A(i*p*u),y=A(o*c),b=A((n+r)*(a+l)-h-m),C=A(y-g),S=A(y+g),R=A(m-f*h),O=A(b*C),_=A(S*R),D=A(b*R),W=A(C*S);return new e(O,_,W,D)}multiply(t,n=!0){if(!n&&(t===0n||this.is0()))return Wt;if(wt(t,1n,kn),t===1n)return this;if(this.equals(Kt))return ll(t).p;let r=Wt,o=Kt;for(let i=this;t>0n;i=i.double(),t>>=1n)t&1n?r=r.add(i):n&&(o=o.add(i));return r}toAffine(){let{ex:t,ey:n,ez:r}=this;if(this.equals(Wt))return{x:0n,y:1n};let o=Ls(r,Oe);return A(r*o)!==1n&&Le("invalid inverse"),{x:A(t*o),y:A(n*o)}}toBytes(){let{x:t,y:n}=this.assertValidity().toAffine(),r=Ja(n);return r[31]|=t&1n?128:0,r}toHex(){return Wr(this.toBytes())}clearCofactor(){return this.multiply(Mn(Ka),!1)}isSmallOrder(){return this.clearCofactor().is0()}isTorsionFree(){let t=this.multiply(kn/2n,!1).double();return kn%2n&&(t=t.add(this)),t.is0()}static fromHex(t,n){return e.fromBytes(Ln(t),n)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}toRawBytes(){return this.toBytes()}},Kt=new at(Rs,ws,1n,A(Rs*ws)),Wt=new at(0n,1n,1n,0n);at.BASE=Kt;at.ZERO=Wt;var Ja=e=>zr(Is(wt(e,0n,Br),jr)).reverse(),Kr=e=>Mn("0x"+Wr(Vr(zt(e)).reverse())),Qe=(e,t)=>{let n=e;for(;t-- >0n;)n*=n,n%=Oe;return n},el=e=>{let n=e*e%Oe*e%Oe,r=Qe(n,2n)*n%Oe,o=Qe(r,1n)*e%Oe,i=Qe(o,5n)*o%Oe,a=Qe(i,10n)*i%Oe,l=Qe(a,20n)*a%Oe,c=Qe(l,40n)*l%Oe,u=Qe(c,80n)*c%Oe,f=Qe(u,80n)*c%Oe,p=Qe(f,10n)*i%Oe;return{pow_p_5_8:Qe(p,2n)*e%Oe,b2:n}},Ts=0x2b8324804fc1df0b2b4d00993dfbd7a72f431806ad2fe478c4ee1b274a0ea0b0n,tl=(e,t)=>{let n=A(t*t*t),r=A(n*n*t),o=el(e*r).pow_p_5_8,i=A(e*n*o),a=A(t*i*i),l=i,c=A(i*Ts),u=a===e,f=a===A(-e),p=a===A(-e*Ts);return u&&(i=l),(f||p)&&(i=c),(A(i)&1n)===1n&&(i=A(-i)),{isValid:u||f,value:i}},nl=e=>Za(Kr(e));var rl=(...e)=>Qa("sha512Sync")(...e);var ol=e=>e.finish(rl(e.hashable));var Ms={zip215:!0},sl=(e,t,n,r=Ms)=>{e=Ln(e,jr),t=Ln(t),n=Ln(n,on);let{zip215:o}=r,i,a,l,c,u=Uint8Array.of();try{i=at.fromHex(n,o),a=at.fromHex(e.slice(0,on),o),l=Kr(e.slice(on,jr)),c=Kt.multiply(l,!1),u=Ur(a.toBytes(),i.toBytes(),t)}catch{}return{hashable:u,finish:p=>{if(c==null||!o&&i.isSmallOrder())return!1;let h=nl(p);return a.add(i.multiply(h,!1)).add(c.negate()).clearCofactor().is0()}}};var Ns=(e,t,n,r=Ms)=>ol(sl(e,t,n,r)),sn={sha512Async:async(...e)=>{let t=Ga(),n=Ur(...e);return Dn(await t.digest("SHA-512",n.buffer))},sha512Sync:void 0,bytesToHex:Wr,hexToBytes:zr,concatBytes:Ur,mod:A,invert:Ls,randomBytes:Xa};var Nn=8,il=256,Ds=Math.ceil(il/Nn)+1,Fr=2**(Nn-1),al=()=>{let e=[],t=Kt,n=t;for(let r=0;r<Ds;r++){n=t,e.push(n);for(let o=1;o<Fr;o++)n=n.add(t),e.push(n);t=n.double()}return e},Os,_s=(e,t)=>{let n=t.negate();return e?n:t},ll=e=>{let t=Os||(Os=al()),n=Wt,r=Kt,o=2**Nn,i=o,a=Mn(o-1),l=Mn(Nn);for(let c=0;c<Ds;c++){let u=Number(e&a);e>>=l,u>Fr&&(u-=i,e+=1n);let f=c*Fr,p=f,h=f+Math.abs(u)-1,m=c%2!==0,g=u<0;u===0?r=r.add(_s(m,t[p])):n=n.add(_s(g,t[h]))}return{p:n,f:r}};function ul(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in e&&e.BYTES_PER_ELEMENT===1}function qr(e,t,n=""){let r=ul(e),o=e?.length,i=t!==void 0;if(!r||i&&o!==t){let a=n&&`"${n}" `,l=i?` of length ${t}`:"",c=r?`length=${o}`:`type=${typeof e}`,u=a+"expected Uint8Array"+l+", got "+c;throw r?new RangeError(u):new TypeError(u)}return e}function Yr(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function $s(e,t){qr(e,void 0,"digestInto() output");let n=t.outputLen;if(e.length<n)throw new RangeError('"digestInto() output" expected to be of length >='+n)}function an(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function $n(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Hs(e,t={}){let n=(o,i)=>e(i).update(o).digest(),r=e(void 0);return n.outputLen=r.outputLen,n.blockLen=r.blockLen,n.canXOF=r.canXOF,n.create=o=>e(o),Object.assign(n,t),Object.freeze(n)}var js=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});var Hn=class{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(t,n,r,o){this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=o,this.buffer=new Uint8Array(t),this.view=$n(this.buffer)}update(t){Yr(this),qr(t);let{view:n,buffer:r,blockLen:o}=this,i=t.length;for(let a=0;a<i;){let l=Math.min(o-this.pos,i-a);if(l===o){let c=$n(t);for(;o<=i-a;a+=o)this.process(c,a);continue}r.set(t.subarray(a,a+l),this.pos),this.pos+=l,a+=l,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Yr(this),$s(t,this),this.finished=!0;let{buffer:n,view:r,blockLen:o,isLE:i}=this,{pos:a}=this;n[a++]=128,an(this.buffer.subarray(a)),this.padOffset>o-a&&(this.process(r,0),a=0);for(let p=a;p<o;p++)n[p]=0;r.setBigUint64(o-8,BigInt(this.length*8),i),this.process(r,0);let l=$n(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen must be aligned to 32bit");let u=c/4,f=this.get();if(u>f.length)throw new Error("_sha2: outputLen bigger than state");for(let p=0;p<u;p++)l.setUint32(4*p,f[p],i)}digest(){let{buffer:t,outputLen:n}=this;this.digestInto(t);let r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||=new this.constructor,t.set(...this.get());let{blockLen:n,buffer:r,length:o,finished:i,destroyed:a,pos:l}=this;return t.destroyed=a,t.finished=i,t.length=o,t.pos=l,o%n&&t.buffer.set(r),t}clone(){return this._cloneInto()}};var Re=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]);var jn=BigInt(4294967295),Us=BigInt(32);function fl(e,t=!1){return t?{h:Number(e&jn),l:Number(e>>Us&jn)}:{h:Number(e>>Us&jn)|0,l:Number(e&jn)|0}}function Bs(e,t=!1){let n=e.length,r=new Uint32Array(n),o=new Uint32Array(n);for(let i=0;i<n;i++){let{h:a,l}=fl(e[i],t);[r[i],o[i]]=[a,l]}return[r,o]}var Gr=(e,t,n)=>e>>>n,Xr=(e,t,n)=>e<<32-n|t>>>n,Ct=(e,t,n)=>e>>>n|t<<32-n,Pt=(e,t,n)=>e<<32-n|t>>>n,ln=(e,t,n)=>e<<64-n|t>>>n-32,cn=(e,t,n)=>e>>>n-32|t<<64-n;function Je(e,t,n,r){let o=(t>>>0)+(r>>>0);return{h:e+n+(o/2**32|0)|0,l:o|0}}var Fs=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),Vs=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,Ws=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),zs=(e,t,n,r,o)=>t+n+r+o+(e/2**32|0)|0,Ks=(e,t,n,r,o)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(o>>>0),qs=(e,t,n,r,o,i)=>t+n+r+o+i+(e/2**32|0)|0;var Ys=Bs(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),pl=Ys[0],ml=Ys[1],mt=new Uint32Array(80),ht=new Uint32Array(80),Zr=class extends Hn{constructor(t){super(128,t,16,!1)}get(){let{Ah:t,Al:n,Bh:r,Bl:o,Ch:i,Cl:a,Dh:l,Dl:c,Eh:u,El:f,Fh:p,Fl:h,Gh:m,Gl:g,Hh:y,Hl:b}=this;return[t,n,r,o,i,a,l,c,u,f,p,h,m,g,y,b]}set(t,n,r,o,i,a,l,c,u,f,p,h,m,g,y,b){this.Ah=t|0,this.Al=n|0,this.Bh=r|0,this.Bl=o|0,this.Ch=i|0,this.Cl=a|0,this.Dh=l|0,this.Dl=c|0,this.Eh=u|0,this.El=f|0,this.Fh=p|0,this.Fl=h|0,this.Gh=m|0,this.Gl=g|0,this.Hh=y|0,this.Hl=b|0}process(t,n){for(let R=0;R<16;R++,n+=4)mt[R]=t.getUint32(n),ht[R]=t.getUint32(n+=4);for(let R=16;R<80;R++){let O=mt[R-15]|0,_=ht[R-15]|0,D=Ct(O,_,1)^Ct(O,_,8)^Gr(O,_,7),W=Pt(O,_,1)^Pt(O,_,8)^Xr(O,_,7),H=mt[R-2]|0,Q=ht[R-2]|0,B=Ct(H,Q,19)^ln(H,Q,61)^Gr(H,Q,6),k=Pt(H,Q,19)^cn(H,Q,61)^Xr(H,Q,6),M=Ws(W,k,ht[R-7],ht[R-16]),j=zs(M,D,B,mt[R-7],mt[R-16]);mt[R]=j|0,ht[R]=M|0}let{Ah:r,Al:o,Bh:i,Bl:a,Ch:l,Cl:c,Dh:u,Dl:f,Eh:p,El:h,Fh:m,Fl:g,Gh:y,Gl:b,Hh:C,Hl:S}=this;for(let R=0;R<80;R++){let O=Ct(p,h,14)^Ct(p,h,18)^ln(p,h,41),_=Pt(p,h,14)^Pt(p,h,18)^cn(p,h,41),D=p&m^~p&y,W=h&g^~h&b,H=Ks(S,_,W,ml[R],ht[R]),Q=qs(H,C,O,D,pl[R],mt[R]),B=H|0,k=Ct(r,o,28)^ln(r,o,34)^ln(r,o,39),M=Pt(r,o,28)^cn(r,o,34)^cn(r,o,39),j=r&i^r&l^i&l,fe=o&a^o&c^a&c;C=y|0,S=b|0,y=m|0,b=g|0,m=p|0,g=h|0,{h:p,l:h}=Je(u|0,f|0,Q|0,B|0),u=l|0,f=c|0,l=i|0,c=a|0,i=r|0,a=o|0;let ae=Fs(B,M,fe);r=Vs(ae,Q,k,j),o=ae|0}({h:r,l:o}=Je(this.Ah|0,this.Al|0,r|0,o|0)),{h:i,l:a}=Je(this.Bh|0,this.Bl|0,i|0,a|0),{h:l,l:c}=Je(this.Ch|0,this.Cl|0,l|0,c|0),{h:u,l:f}=Je(this.Dh|0,this.Dl|0,u|0,f|0),{h:p,l:h}=Je(this.Eh|0,this.El|0,p|0,h|0),{h:m,l:g}=Je(this.Fh|0,this.Fl|0,m|0,g|0),{h:y,l:b}=Je(this.Gh|0,this.Gl|0,y|0,b|0),{h:C,l:S}=Je(this.Hh|0,this.Hl|0,C|0,S|0),this.set(r,o,i,a,l,c,u,f,p,h,m,g,y,b,C,S)}roundClean(){an(mt,ht)}destroy(){this.destroyed=!0,an(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},Qr=class extends Zr{Ah=Re[0]|0;Al=Re[1]|0;Bh=Re[2]|0;Bl=Re[3]|0;Ch=Re[4]|0;Cl=Re[5]|0;Dh=Re[6]|0;Dl=Re[7]|0;Eh=Re[8]|0;El=Re[9]|0;Fh=Re[10]|0;Fl=Re[11]|0;Gh=Re[12]|0;Gl=Re[13]|0;Hh=Re[14]|0;Hl=Re[15]|0;constructor(){super(64)}};var Gs=Hs(()=>new Qr,js(3));var hl=Object.defineProperty,Xs=Object.getOwnPropertySymbols,yl=Object.prototype.hasOwnProperty,gl=Object.prototype.propertyIsEnumerable,Zs=(e,t,n)=>t in e?hl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ri=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{l(n.next(c))}catch(u){o(u)}},a=c=>{try{l(n.throw(c))}catch(u){o(u)}},l=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,a);l((n=n.apply(e,t)).next())});function Qs(e){let t={};for(let c=0;c<64;c++)t["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"[c]]=c;let n=e.replace(/=+$/,""),r=Math.floor(6*n.length/8),o=new Uint8Array(r),i=0,a=0,l=0;for(let c=0;c<n.length;c++){let u=t[n[c]];if(u===void 0)throw new Error("Invalid base64url character");i=i<<6|u,a+=6,a>=8&&(a-=8,o[l++]=i>>a&255)}return o}var vl="primeui",Jr="primeui-pro:",Js={primeui:"primeui",scheduler:"primeui-pro:scheduler",texteditor:"primeui-pro:text-editor",charts:"primeui-pro:charts",diagram:"primeui-pro:diagram",pdfviewer:"primeui-pro:pdf-viewer",taskboard:"primeui-pro:task-board",datagrid:"primeui-pro:datagrid",ganttchart:"primeui-pro:gantt-chart",filemanager:"primeui-pro:file-manager"},oi={primeui:"PrimeUI",scheduler:"Scheduler",texteditor:"TextEditor",charts:"Charts",diagram:"Diagram",pdfviewer:"PDF Viewer",taskboard:"Task Board",datagrid:"DataGrid",ganttchart:"Gantt",filemanager:"File Manager"};function to(e,t="PrimeUI"){switch(e){case"active":return`${t} license is active.`;case"grace":return`${t} license is in its grace period. Renew soon to keep using this version.`;case"expired":return`${t} license does not cover this version. Renew at primeui.store, or downgrade to a version released within your updates window.`;case"tampered":return`${t} license signature is invalid.`;case"wrong-product":return`License does not cover ${t}.`;case"missing":return`No license key configured for ${t}.`;case"invalid":return`${t} license is malformed.`;case"unconfigured":return`${t} license is not configured.`;default:return`${t} license status unknown.`}}var ei=864e5;function Me(e,t,n={}){return((r,o)=>{for(var i in o||(o={}))yl.call(o,i)&&Zs(r,i,o[i]);if(Xs)for(var i of Xs(o))gl.call(o,i)&&Zs(r,i,o[i]);return r})({valid:e==="active"||e==="grace",status:e,message:to(e,t)},n)}function ti(e,t){return ri(this,null,function*(){var n,r;let o=t.productLabel;if(typeof e!="string"||!e.includes("."))return Me("invalid",o);let i=e.split(".");if(i.length!==2)return Me("invalid",o);let[a,l]=i,c,u,f;try{c=(function(S){let R=Qs(S),O=new TextDecoder().decode(R);return JSON.parse(O)})(a)}catch{return Me("invalid",o)}if(!c||typeof c!="object"||typeof c.product!="string"||typeof c.type!="string"||typeof c.exp!="number"||typeof c.iat!="number"||typeof c.id!="string")return Me("invalid",o);try{u=Qs(l),f=new TextEncoder().encode(a)}catch{return Me("invalid",o)}let p=(n=t.publicKeyOverride)!=null?n:"dae75e66b9f59bebf87d4bb29ca6494f37deccfcc2b132b98ee159ee7505373b",h;try{h=(function(S){if(S.length%2!=0)throw new Error("Invalid hex length");let R=new Uint8Array(S.length/2);for(let O=0;O<R.length;O++)R[O]=parseInt(S.substr(2*O,2),16);return R})(p)}catch{return Me("invalid",o)}let m=!1;try{sn.sha512Sync||(sn.sha512Sync=(...S)=>Gs(sn.concatBytes(...S))),m=Ns(u,f,h)}catch{return Me("tampered",o,{payload:c})}if(!m)return Me("tampered",o,{payload:c});if(!(function(S,R){return S.product===R||!(!R.startsWith(Jr)||S.product!==vl||S.tier!=="commercial")})(c,t.product))return Me("wrong-product",o,{payload:c});let g=1e3*c.exp,y=Date.now(),b=Math.floor((g-y)/ei),C=(function(S){if(S===void 0)return null;if(typeof S=="number")return 1e3*S;let R=Date.parse(S);return Number.isNaN(R)?null:R})(t.releaseDate);if(C!==null&&C>g)return Me("expired",o,{daysUntilExpiry:b,payload:c});if((function(S){return S.tier==="community"})(c)){if(y>g+((r=t.graceDays)!=null?r:30)*ei)return Me("expired",o,{daysUntilExpiry:b,payload:c});if(y>g)return Me("grace",o,{daysUntilExpiry:b,payload:c})}return Me("active",o,{daysUntilExpiry:b,payload:c})})}function ni(e,t){return{valid:!1,status:e,message:to(e,t)}}function bl(e,t){let n=t?.graceDays,r=t?.publicKeyOverride;return{verify(o,i){return ri(this,null,function*(){var a;let l=Js[o],c=(a=oi[o])!=null?a:"PrimeUI",u=i?.releaseDate;if(!l)return ni("invalid",c);let f=e[o],p=e.primeui;if(f){let h=yield ti(f,{product:l,productLabel:c,releaseDate:u,graceDays:n,publicKeyOverride:r});if(h.valid||h.status!=="wrong-product")return h}return p&&o!=="primeui"&&l.startsWith(Jr)?ti(p,{product:l,productLabel:c,releaseDate:u,graceDays:n,publicKeyOverride:r}):ni(f?"wrong-product":"missing",c)})},has(o){let i=Js[o];return!!i&&(!!e[o]||o!=="primeui"&&i.startsWith(Jr)&&!!e.primeui)}}}var eo=null;function si(e,t){if(!e)throw new Error("[@primeui/license-manager] registerLicense: keys argument is required.");return eo=bl(e,t)}function ii(e,t){var n;if(!eo){let r=(n=oi[e])!=null?n:"PrimeUI";return Promise.resolve({valid:!1,status:"unconfigured",message:to("unconfigured",r)})}return eo.verify(e,t)}var _e=ee(Z());var no={csp:{nonce:void 0},defaults:void 0,filterMatchModeOptions:{text:[Se.STARTS_WITH,Se.CONTAINS,Se.NOT_CONTAINS,Se.ENDS_WITH,Se.EQUALS,Se.NOT_EQUALS],numeric:[Se.EQUALS,Se.NOT_EQUALS,Se.LESS_THAN,Se.LESS_THAN_OR_EQUAL_TO,Se.GREATER_THAN,Se.GREATER_THAN_OR_EQUAL_TO],date:[Se.DATE_IS,Se.DATE_IS_NOT,Se.DATE_BEFORE,Se.DATE_AFTER]},inputVariant:void 0,locale:"en",locales:void 0,pt:void 0,ptOptions:{mergeSections:!0,mergeProps:!1},ripple:!1,theme:void 0,stylesheet:void 0,unstyled:!1,zIndex:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100},license:void 0};var xl="2026-08-05",Un=_e.createContext(void 0);function Sl(e={}){let{props:t,attrs:n}=Ge(no,e),[r,o]=_e.useState(t.inputVariant),[i,a]=_e.useState(t.defaults),[l,c]=_e.useState(t.zIndex);_e.useEffect(()=>{t.license&&si({primeui:t.license}),ii("primeui",{releaseDate:xl}).then(p=>{p.valid||(console.warn(`[PrimeUI] ${p.message}`),Xn())})},[]);let u=_e.useMemo(()=>({csp:t.csp,filterMatchModeOptions:t.filterMatchModeOptions,ripple:t.ripple,unstyled:t.unstyled,inputVariant:r,setInputVariant:o,defaults:i,setDefaults:a,zIndex:l,setZIndex:c}),[t.csp,t.filterMatchModeOptions,t.ripple,t.unstyled,r,i,l]),f=_e.useMemo(()=>K(n.children,u),[n.children,u]);return _e.createElement(Un.Provider,{value:u},_e.createElement(hr,{lang:t.locale,locales:t.locales},_e.createElement(gr,{value:t.pt,...t.ptOptions},_e.createElement(Dr,{preset:t.theme?.preset,stylesheet:t.stylesheet,...t.theme?.options},f))))}var Tt=ee(Z());function ro(){let e=Tt.useContext(Un),t=Tt.useContext(Ut),n=Tt.useContext(Bt),r=Tt.useContext(Ze);if(e===void 0)throw new Error("[PrimeReact] PrimeReactProvider not found. Wrap your application in <PrimeReactProvider> before using PrimeReact components.");return Tt.useMemo(()=>({config:e,locale:t,passthrough:n,theme:r}),[e,t,n,r])}var je=ee(Z()),un=(e="UnknownBase",t)=>{let n=ro(),{type:r,inProps:o,defaultProps:i,setup:a}=t||{},l=ls(o?.id),c=Jo("pc_"),[u,f]=je.useMemo(()=>e.toLowerCase().split("."),[e]),p=je.useRef(null),h=je.useRef(void 0),m=je.useMemo(()=>({ref:p,elementRef:h,id:l,name:e,type:r,scope:u,part:Lt(f),inProps:o,$attrSelector:c,$primereact:n}),[l,o,c,n,e,r]),g=n.config?.defaults,y=je.useMemo(()=>{if(!g)return;let D=g[e]??Te(g,e)??g[e.replace(".","")]??g[e.toLowerCase()];return K(D,m)?.props},[g,e,m]),b=je.useMemo(()=>y?Ye(y,o??{}):o,[y,o]),{props:C,attrs:S}=Ge(i,b),R=je.useMemo(()=>({...m,props:C,attrs:S}),[m,C,S]),O=K(a,R),_=je.useMemo(()=>({state:{},$computedSetup:O,...O,...R,elementRef:O?.elementRef??h}),[O,R]);return je.useImperativeHandle(p,()=>_,[_]),_};var yt=ee(Z());function qt(e={}){let{pIf:t=!0,style:n,className:r,as:o,asChild:i,instance:a,render:l,...c}=e;if(t===!1)return null;let u=o||a?.props?.as||yt.Fragment,f=l||i||a?.props?.asChild,p=u===yt.Fragment,{ref:h,children:m,attrs:g,...y}=c,b={...g,...y},C=K(l??m,a,b),S=K(n||a?.props?.style,a),R=K(r||a?.props?.className,a);if(f||p)return yt.createElement(yt.Fragment,null,C);if(Mr(u))return K(u,a);{let O={...b,style:{...b.style,...S},className:tn(b.className,R)},_=Tr(a?.elementRef,b.ref,h,a?.props?.ref);return O.children?yt.createElement(u,{...O,ref:_}):yt.createElement(u,{...O,ref:_},C)}}qt.displayName="PrimeReact.Component";var Bn=Object.freeze({ref:void 0,pIf:!0,style:void 0,className:void 0,as:void 0,asChild:!1,instance:void 0,pt:void 0,ptOptions:void 0,unstyled:void 0,dt:void 0,styles:void 0,render:void 0,children:void 0}),El=Object.freeze({...Mo(Bn,"pt","ptOptions","dt","styles"),attrs:void 0});var Xt=ee(Z());var we=ee(Z());function Fn(e,...t){return Zn(e)?e(...t):e?Ye(...t):Object.assign({},...t)}function Vn(e={},t="",n){let r=Te(e,t,n);return Pe(r)||Jn(r)?{className:r}:r}function Yt(e,t,n,r){let o=(i,a=!1)=>{let l=r?r(i):i,c=en(t??""),u=en(n??"");return(a?c!==u?l?.[c]:void 0:l?.[c])??l};return e&&Object.hasOwn(e,"_usept")?{_usept:e._usept,originalValue:o(e.originalValue),value:o(e.value)}:o(e,!0)}function ai(e,t){let{id:n,name:r,scope:o,part:i,props:a,attrs:l,$primereact:c,$attrSelector:u}=e||{},f=c?.passthrough,p=f?.value,h=f?.options,m=we.useCallback((k,M,j="",fe)=>{let ae=ce=>M(ce,j,fe);if(k&&Object.hasOwn(k,"_usept")){let{mergeSections:ce=!0,mergeProps:be=!1}=k._usept||h||{},me=ae(k.originalValue),oe=ae(k.value);return me===void 0&&oe===void 0?void 0:Pe(oe)?oe:Pe(me)?me:ce||!ce&&oe?Fn(be,me,oe):oe}return ae(k)},[h]),g=we.useCallback(k=>{let M=m(Yt(a.pt,r,r),Te,`hooks.${k}`),j=m(Yt(p,void 0,r),Te,`hooks.${k}`);M?.(),j?.()},[a.pt,r,m,p]),y=we.useMemo(()=>Yt(p,void 0,r,k=>K(k,e)),[p,r]),b=we.useMemo(()=>Yt(p,void 0,r,k=>Te(k,r,e)||K(k,e)),[p,r]),C=we.useMemo(()=>Object.entries(l||{}).filter(([k])=>k?.startsWith("pt-")).reduce((k,[M,j])=>{let[,fe,...ae]=M.split("-");return[fe,ae?.join("-")].filter(Boolean).reduce((ce,be,me,oe)=>(ce[be]||(ce[be]=me===oe.length-1?j:{}),ce[be]),k),k},{}),[l]),S=we.useMemo(()=>Object.entries(l||{}).filter(([k])=>!k?.startsWith("pt-")).reduce((k,[M,j])=>(k[M]=j,k),{}),[l]),R=we.useCallback((k="")=>{let M="data-";return k==="root"&&te(l?.["data-scope"])?{[`${M}extend`]:o,[`${M}styled`]:o}:{[`${M}scope`]:o,...k==="root"&&{[`${M}part`]:i,[`${M}id`]:u,[`${M}styled`]:o},[`${M}slot`]:k}},[o,i,u,l]),O=we.useCallback((k={},M,j="",fe)=>{let ae=m(Yt(k,r,r),M,j,fe),ce=m(C,M,j,fe);return Fn(!0,ae??{},ce??{})},[C,m,r]),_=we.useCallback((k,M="",j)=>m(y,k,M,j),[y,m]),D=we.useCallback((k,M,j)=>m(b,k,M,j),[b,m]),W=we.useCallback((k={},M="",j={},fe=!0)=>{let ae=M.includes(".")&&!!j[M.split(".")[0]],{mergeSections:ce=!0,mergeProps:be=!1}=a?.ptOptions||h||{},me=fe?ae?_(Vn,M,j):D(Vn,M,j):void 0,oe=ae?void 0:O(k,Vn,M,{...j,global:me||{}}),Ne=R(M);return ce||!ce&&oe?Fn(be,me,oe,Ne):{...oe,...Ne}},[a.ptOptions,_,D,O,R]),H=we.useCallback((k="",M={})=>W(a.pt,k,{...t,...M}),[a.pt,t,W]),Q=we.useCallback((k="",M={})=>{let j=Ye(S,H(k,M));return j&&Object.hasOwn(j,"id")&&(j.id??=n),j},[H,n,S]),B=we.useCallback((k={},M="",j={})=>W(k,M,{...t,...j},!1),[t,W]);return cs(()=>g("onMounted")),ps(()=>g("onUpdated")),ds(()=>g("onUnmounted")),we.useMemo(()=>({ptm:H,ptmi:Q,ptmo:B}),[H,Q,B])}var pe=ee(Z());var gt=ee(Z());function oo(){let e=gt.useContext(Ze),t=gt.useCallback((o={})=>{let{name:i,css:a,element:l,options:c={}}=o;if(Ie()&&te(a)){let u=l?.getRootNode();(!u||u===document)&&(u=document.head);let f=u.querySelector(`style[data-primereact-style-id="${i}"]`)||document.createElement("style");if(!f.isConnected){c?.first?u.prepend(f):u.appendChild(f),f.setAttribute("data-primereact-style-id",i||"");let{nonce:h,...m}=c??{};h&&f.setAttribute("nonce",String(h)),Object.entries(m).forEach(([g,y])=>{g.startsWith("data-")&&y!=null&&f.setAttribute(g,String(y))})}let p=a??"";return f.textContent!==p&&(f.textContent=p),f}},[]),n=gt.useCallback((o={})=>{let{name:i,css:a}=o;if(te(o.css))return i&&!e?.stylesheet?.has(i)&&!Ie()&&i!=="layer-order"&&e?.stylesheet?.add(i,a),t(o)},[e,t]),r=gt.useCallback(()=>{e?.stylesheet&&e.stylesheet.clear()},[e]);return gt.useInsertionEffect(()=>{e?.stylesheet?.getStyles()?.forEach((o,i)=>{t({name:i,css:o?.css})})},[e,t]),[n,r]}var Rl={};var Gt=ee(Z());function li(e,t){let n=Gt.useContext(Ze),[r]=oo(),o=Gt.useCallback((i,a)=>r({name:a?.name,css:i,element:Ht(t),options:a}),[r,t]);return Gt.useMemo(()=>{let i={name:"base",...e,load(a="",l={},c="",u=!1){let f=l.name||i.name,p=Vt`${a}${c}`,h=u?ne.transformCSS(f,p):p;return te(h)?o(rt(h),{name:f,...l}):void 0},loadCSS(a){return this.load(this.css,a)},loadStyle(a,l=""){return this.load(this.style,a,l,!0)},getCommonTheme(a){return ne.getCommon(this.name,a)},getComponentTheme(a){return ne.getComponent(this.name,a)},getPresetTheme(a,l,c){return ne.getCustomPreset(this.name,a,l,c)},getLayerOrderThemeCSS(){return ne.getLayerOrderCSS(this.name)},getStyleSheet(a="",l={}){if(this.css){let c=K(this.css,{dt}),u=rt(Vt`${c}${a}`),f=Object.entries(l).reduce((p,[h,m])=>(p.push(`${h}="${m}"`),p),[]).join(" ");return`<style type="text/css" data-primereact-style-id="${this.name}" ${f}>${u}</style>`}return""},getCommonThemeStyleSheet(a,l={}){return ne.getCommonStyleSheet(this.name,a,l)},getThemeStyleSheet(a,l={}){let c=[ne.getStyleSheet(this.name,a,l)];if(n){let u=this.name==="base"?"global-style":`${this.name}-style`,f=Vt`${K(n,{dt})}`,p=rt(ne.transformCSS(this.name,f)),h=Object.entries(l).reduce((m,[g,y])=>(m.push(`${g}="${y}"`),m),[]).join(" ");c.push(`<style type="text/css" data-primereact-style-id="${u}" ${h}>${p}</style>`)}return c.join("")}};return i},[e,n,o])}function ci(e,t,n){let{props:r={unstyled:!1,dt:void 0},$primereact:o,$attrSelector:i,elementRef:a}=e||{},l=li(t,a),c=pe.useMemo(()=>r.unstyled!==void 0?r.unstyled:o?.config?.unstyled,[r.unstyled,o?.config?.unstyled]),u=pe.useMemo(()=>({nonce:o?.config?.csp?.nonce}),[o?.config?.csp?.nonce]),f=pe.useRef(null),p=pe.useRef(!1),h=pe.useRef(null),m=pe.useRef(null),g=pe.useRef(!1);if(Pr){let _=t?.style,D=typeof _=="string"?_:null;D!==null&&m.current!==D&&(m.current=D,g.current=!0)}let y=pe.useCallback(()=>{if(!l?.name)return;let _=l.name==="global"?"base":l.name;if(!Ie()){l.loadCSS({name:_,...u});return}h.current&&h.current!==l.name&&(Rt.releaseStyleName(h.current),h.current=null);let D=g.current;(D||!h.current)&&((D||Rt.retainStyleName(l.name))&&l.loadCSS({name:_,...u}),h.current=l.name)},[l,u]),b=pe.useCallback(()=>{if(c||o?.theme==="none")return;let _=()=>{let{primitive:Q,semantic:B,global:k,style:M}=l?.getCommonTheme?.()||{};l.load(Q?.css,{name:"primitive-variables",...u}),l.load(B?.css,{name:"semantic-variables",...u}),l.load(k?.css,{name:"global-variables",...u}),l.load(l.baseStyles?.style,{name:"global-style",...u},M,!0)},D=()=>{let{css:Q,style:B}=l?.getComponentTheme?.()||{};l.load(Q,{name:`${l.name}-variables`,...u}),l.loadStyle({name:`${l.name}-style`,...u},B)},W=()=>{let Q=l?.getLayerOrderThemeCSS?.();l.load(Q,{name:"layer-order",first:!0,...u})};if(!Ie()){_(),l?.name&&D(),W();return}let H=g.current;(H||!ne.isStyleNameLoaded("common"))&&(_(),ne.setLoadedStyleName("common")),(H||!ne.isStyleNameLoaded(l?.name))&&l?.name&&(D(),ne.setLoadedStyleName(l.name)),(H||!ne.isStyleNameLoaded("layer-order"))&&(W(),ne.setLoadedStyleName("layer-order"))},[c,l,u]),C=pe.useCallback(()=>{let{css:_}=l.baseStyles||{};if(!Ie()){l.load(_,{name:"base",...u}),b();return}let D=g.current;(D||!p.current)&&(p.current=!0,(D||Rt.retainStyleName("base"))&&l.load(_,{name:"base",...u})),b(),g.current=!1},[l,u,b]),S=pe.useCallback(_=>{o?.theme?.options?.cssVariables===!1&&l?.name&&ne.addScopedToken({[l.name]:_})&&(ne.deleteLoadedStyleName(l.name),b());let{css:D}=l?.getPresetTheme?.(_,`[${i}]`)||{},W=l?.load(D,{name:`${i}-${l.name}`,...u});f.current=W||null},[l,i,u,b,o?.theme]),R=pe.useCallback((_="",D={})=>c?void 0:tn(Te(l.classes,_,{...n,context:D})),[c,n,l.classes]),O=pe.useCallback((_="",D=!0,W={})=>{if(D){let H=Te(l.inlineStyles,_,{...n,context:W});return{...Te(l.baseStyles?.inlineStyles,_,{...n,context:W}),...H}}},[l.inlineStyles,l.baseStyles?.inlineStyles,n]);return!Ie()&&!c&&(y(),C(),S(r.dt)),pe.useInsertionEffect(()=>{!Ie()||c||(y(),C())},[c,y,C]),pe.useEffect(()=>{if(!Ie()||c||o?.theme==="none")return;let _=()=>{b(),S(r.dt)};return Xe.on("theme:change",_),()=>{Xe.off("theme:change",_)}},[c,o?.theme,b,S,r.dt]),pe.useInsertionEffect(()=>{if(!(!Ie()||c))return f.current?.remove(),f.current=null,S(r.dt),()=>{f.current?.remove(),f.current=null}},[c,r.dt,S]),pe.useEffect(()=>{if(Ie())return()=>{p.current&&(Rt.releaseStyleName("base"),p.current=!1),h.current&&(Rt.releaseStyleName(h.current),h.current=null)}},[]),pe.useMemo(()=>({cx:R,sx:O,isUnstyled:c,$style:l}),[R,O,c,l])}function so(e="UnknownComponent",t={}){let n=Xt.useMemo(()=>({...Bn,...t.defaultProps}),[t.defaultProps]),r=un(e,{type:t.type,inProps:t.inProps,defaultProps:n,setup:t.setup}),{ref:o,props:i}=r,a=Xt.useMemo(()=>({instance:r,props:r.props,attrs:r.attrs,state:r.state}),[r.props,r.attrs,r.state]),l=ai(r,a),c=ci(r,i.styles||t.styles,a),u=Xt.useMemo(()=>({...r,...l,...c}),[r,l,c]);return Xt.useImperativeHandle(o,()=>u,[u]),u}var Wn=ee(Z());function fn({name:e="UnknownComponent",type:t="primitive",defaultProps:n,styles:r,components:o,setup:i,render:a}){let c=Wn.memo(u=>{let f=so(e,{type:t,inProps:u,defaultProps:n,styles:r,setup:i}),p=a??(()=>null);return f.props.pIf?Wn.createElement(p,{...f}):null},(u,f)=>{if(!ve(u)||!ve(f))return!1;let p=u,h=f,m=Object.keys(p);if(m.length!==Object.keys(h).length)return!1;for(let g of m){let y=p[g],b=h[g];if(typeof y=="function"||typeof b=="function"){if(y!==b)return!1;continue}if(!Object.is(y,b))return!1}return!0});return c.displayName=`PrimeReact.${e}`,Object.entries(o||{}).forEach(([u,f])=>{c[u]=f}),c}var ui={onDragStart:e=>`Picked up ${e.active.data?.label??"item"}. Use Arrow keys to move, Space or Enter to drop, Escape to cancel.`,onDragOver:e=>e.over?`Over ${e.over.data?.label??"drop zone"}.`:"Not over a drop zone.",onDragEnd:e=>e.cancelled?"Drag cancelled. Item returned to original position.":e.over?`Dropped on ${e.over.data?.label??"drop zone"}.`:"Dropped.",onDragCancel:()=>"Drag cancelled. Item returned to original position.",onSortOver:e=>`Moved to position ${e.index+1} of ${e.total}${e.containerId?` in ${String(e.containerId)}`:""}.`};function et(){return typeof window<"u"&&typeof document<"u"}function Zt(e){let t=e.getBoundingClientRect();return{x:t.x,y:t.y,width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left}}function io(e,t,n,r){return{x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e}}function fi(e,t){return io(e.x-t.x,e.y-t.y,e.width,e.height)}function vt(e,t){return Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2)}function Ue(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}function zn(e,t){return e.x>=t.left&&e.x<=t.right&&e.y>=t.top&&e.y<=t.bottom}function ao(e){return e.width*e.height}function di(e,t){let n=Math.max(e.left,t.left),r=Math.max(e.top,t.top),o=Math.min(e.right,t.right)-n,i=Math.min(e.bottom,t.bottom)-r;return o>0&&i>0?o*i:0}function pi(e){if(!et())return null;let t=e.parentElement;for(;t&&t!==document.documentElement;){let n=getComputedStyle(t),r=(n.overflowY==="auto"||n.overflowY==="scroll")&&t.scrollHeight>t.clientHeight,o=(n.overflowX==="auto"||n.overflowX==="scroll")&&t.scrollWidth>t.clientWidth;if(r||o)return t;t=t.parentElement}return document.documentElement.scrollHeight>document.documentElement.clientHeight?document.documentElement:null}function lo(e){return e===document.documentElement?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop}}function mi(e,t,n){e===document.documentElement?window.scrollBy(t,n):e.scrollBy(t,n)}function co(e,t){let n=null;return{call(){n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,e()},t)},cancel(){n!==null&&(clearTimeout(n),n=null)}}}function wl(e){let t=[];for(let n of e.droppables)if(!n.disabled&&zn(e.position,n.rect)){let r=ao(n.rect);r>0&&t.push({id:n.id,data:n.data,ratio:1/r})}return t.sort((n,r)=>(r.ratio??0)-(n.ratio??0)),t}function Cl(e){if(!e.activeRect)return[];let t=[];for(let n of e.droppables){if(n.disabled)continue;let r=di(e.activeRect,n.rect);if(r>0){let o=ao(n.rect);t.push({id:n.id,data:n.data,ratio:o>0?r/o:0})}}return t.sort((n,r)=>(r.ratio??0)-(n.ratio??0)),t}function Pl(e){if(!e.activeRect)return[];let t=Ue(e.activeRect),n=[];for(let r of e.droppables)r.disabled||n.push({id:r.id,data:r.data,distance:vt(t,Ue(r.rect))});return n.sort((r,o)=>(r.distance??1/0)-(o.distance??1/0)),n}function Tl(e){if(!e.activeRect)return[];let t=e.activeRect,n=[{x:t.left,y:t.top},{x:t.right,y:t.top},{x:t.left,y:t.bottom},{x:t.right,y:t.bottom}],r=[];for(let o of e.droppables){if(o.disabled)continue;let i=o.rect,a=[{x:i.left,y:i.top},{x:i.right,y:i.top},{x:i.left,y:i.bottom},{x:i.right,y:i.bottom}],l=0;for(let c=0;c<4;c++)l+=vt(n[c],a[c]);r.push({id:o.id,data:o.data,distance:l/4})}return r.sort((o,i)=>(o.distance??1/0)-(i.distance??1/0)),r}var Qt={pointerWithin:wl,rectIntersection:Cl,closestCenter:Pl,closestCorners:Tl};var hi=.25;function yi(e){let{position:t,items:n,direction:r,activeId:o,allowInsideDrop:i=!1}=e,a={index:0,position:"before",targetId:null,dropPosition:"before",targetRect:null};if(n.length===0)return a;let l=n.filter(b=>b.id!==o);if(l.length===0)return a;let c=0,u=1/0;for(let b=0;b<l.length;b++){let C=Ue(l[b].rect),S=r==="horizontal"?Math.abs(t.x-C.x):r==="vertical"?Math.abs(t.y-C.y):vt(t,C);S<u&&(u=S,c=b)}let f=l[c],p=f.rect,h=Ue(p),m;r==="horizontal"?m=t.x<h.x?"before":"after":r==="vertical"?m=t.y<h.y?"before":"after":m=t.y<h.y?"before":t.y>h.y?"after":t.x<h.x?"before":"after";let g;i?g=Ol(t,p,r):g=m;let y=n.findIndex(b=>b.id===f.id);return{index:m==="after"?y+1:y,position:m,targetId:f.id,dropPosition:g,targetRect:p}}function Ol(e,t,n){if(n==="horizontal"){let o=t.width*hi;return e.x<t.left+o?"before":e.x>t.right-o?"after":"inside"}let r=t.height*hi;return e.y<t.top+r?"before":e.y>t.bottom-r?"after":"inside"}function gi(e){let{items:t,activeId:n,originalIndex:r,projectedIndex:o,activeRect:i,itemRects:a,direction:l}=e,c=new Map;if(!i||r===o)return c;let u=o>r;if(l==="grid")for(let f=0;f<t.length;f++){let p=t[f];if(p===n||!(u?f>r&&f<=o:f>=o&&f<r))continue;let m=u?f-1:f+1;t[m]===n&&(m=u?m-1:m+1);let g=t[m],y=a.get(p),b=g?a.get(g):null;y&&b&&c.set(p,{x:b.x-y.x,y:b.y-y.y,scaleX:1,scaleY:1})}else{let f=l==="horizontal"?i.width:0,p=l==="vertical"?i.height:0;for(let h=0;h<t.length;h++){let m=t[h];if(m===n)continue;let g=0,y=0;u?h>r&&h<=o&&(g=-f,y=-p):h>=o&&h<r&&(g=f,y=p),(g!==0||y!==0)&&c.set(m,{x:g,y,scaleX:1,scaleY:1})}}return c}function vi(e){let{sourceItems:t,targetItems:n,activeId:r,originalIndex:o,projectedIndex:i,activeRect:a,sourceDirection:l,targetDirection:c}=e,u=new Map,f=new Map;if(!a)return{sourceTransforms:u,targetTransforms:f};let p=l==="horizontal"?a.width:0,h=l==="vertical"||l==="grid"?a.height:0;for(let y=0;y<t.length;y++)t[y]!==r&&y>o&&u.set(t[y],{x:-p,y:-h,scaleX:1,scaleY:1});let m=c==="horizontal"?a.width:0,g=c==="vertical"||c==="grid"?a.height:0;for(let y=0;y<n.length;y++)y>=i&&f.set(n[y],{x:m,y:g,scaleX:1,scaleY:1});return{sourceTransforms:u,targetTransforms:f}}function uo(e,t,n){if(t<0||t>=e.length||n<0||n>e.length)return e.slice();let r=e.slice(),[o]=r.splice(t,1);return r.splice(n,0,o),r}function fo(e,t,n,r){if(n<0||n>=e.length||r<0||r>t.length)return{source:e.slice(),target:t.slice()};let o=e.slice(),[i]=o.splice(n,1),a=t.slice();return a.splice(r,0,i),{source:o,target:a}}function bi(e){let t=!1;function n(){if(t)throw new Error("createDnd: instance has been destroyed.")}let r={operation:null,draggables:new Map,droppables:new Map,sortableContainers:new Map,collisions:[],sortable:null},o=new Set,i=!1;function a(){if(!i){i=!0;try{for(let v of o)v()}finally{i=!1}}}function l(v){let x=v(r);x!==r&&(r=x,a())}let c=new Map;function u(v,x){let w=c.get(v);if(w)for(let I of w)I(x)}let f=e?.collisionDetection??"pointerWithin";function p(){return Qt[f]??Qt.pointerWithin}let h=null,m=e?.autoScroll!==!1,g=typeof e?.autoScroll=="object"?e.autoScroll:{},y=null,b={x:0,y:0},C={...ui,...e?.announcements},S=new Map;function R(){if(et()){S.clear();for(let[v,x]of r.draggables)x.node&&S.set(v,Zt(x.node));for(let[v,x]of r.droppables)x.node&&S.set(v,Zt(x.node));for(let[v,x]of r.sortableContainers)x.node&&S.set(v,Zt(x.node))}}function O(v,x){let w=S.get(v);return w?fi(w,x):null}function _(){r.operation&&(R(),b={x:0,y:0},me(r.operation.current))}let D=co(_,50),W=co(_,100),H=null,Q=null,B=null,k=null;function M(){if(!(!et()||typeof ResizeObserver>"u")){H=new ResizeObserver(()=>D.call());for(let[,v]of r.sortableContainers)v.node&&H.observe(v.node)}}function j(){if(!et())return;let v=()=>W.call();window.addEventListener("resize",v,{passive:!0}),k=()=>{window.removeEventListener("resize",v),W.cancel()}}function fe(){if(!et())return;if(typeof MutationObserver<"u"){Q=new MutationObserver(()=>D.call());for(let[,w]of r.sortableContainers)w.node&&Q.observe(w.node,{childList:!0})}let v=h??window,x=()=>D.call();v.addEventListener("scroll",x,{passive:!0}),B=()=>v.removeEventListener("scroll",x)}function ae(){Q?.disconnect(),Q=null,B?.(),B=null,D.cancel()}function ce(v){let x=[],w=r.operation;if(!w)return x;let I=r.draggables.get(w.activeId);for(let[z,L]of r.droppables){if(L.disabled)continue;let G=O(z,v);if(!G)continue;let de=!L.accept||I?.scope!=null&&L.accept.includes(I.scope),re=L.canDrop?L.canDrop(w.data):!0;de&&re&&x.push({id:z,rect:G,data:L.data??{},disabled:!1})}for(let[z,L]of r.sortableContainers){if(L.disabled)continue;let G=O(z,v);if(!G)continue;(!L.accept||I?.scope!=null&&L.accept.includes(I.scope))&&x.push({id:z,rect:G,data:{},disabled:!1})}return x}function be(v,x){if(v.length!==x.length)return!1;for(let w=0;w<v.length;w++)if(v[w].id!==x[w].id)return!1;return!0}function me(v,x){let w=r.operation;if(!w)return;let I=x??b,z=ce(I),L=O(w.activeId,I),G=p()({position:v,activeRect:L,droppables:z});if(!be(r.collisions,G)){let re=r.collisions[0]??null,se=G[0]??null;l(ye=>({...ye,collisions:G})),re?.id!==se?.id&&u("dragOver",{active:{id:w.activeId,data:w.data},over:se?{id:se.id,data:se.data}:null})}We(v,I)}let oe=null;function Ne(v){if(oe){let x=r.sortableContainers.get(oe.containerId);if(x){let w=x.items.indexOf(v);if(w!==-1)return{container:x,index:w}}oe=null}for(let[,x]of r.sortableContainers){let w=x.items.indexOf(v);if(w!==-1)return oe={containerId:x.id,index:w},{container:x,index:w}}return null}function tt(v,x){if(v.size!==x.size)return!1;for(let[w,I]of v){let z=x.get(w);if(!z||I.x!==z.x||I.y!==z.y)return!1}return!0}function We(v,x){let w=r.operation;if(!w)return;let I=Ne(w.activeId);if(!I){r.sortable!==null&&l(q=>({...q,sortable:null}));return}let z=r.draggables.get(w.activeId),L=null;for(let[,q]of r.sortableContainers){let X=O(q.id,x);if(!X||!zn(v,X))continue;if(!q.accept||z?.scope!=null&&q.accept.includes(z.scope)||q.id===I.container.id){L=q;break}}L||(L=I.container);let G=[];for(let q of L.items){let X=O(q,x);X&&G.push({id:q,rect:X})}let de=yi({position:v,items:G,direction:L.direction,activeId:w.activeId,allowInsideDrop:L.allowInsideDrop}),re=de.index,se=L.id!==I.container.id,ye;if(se){let{sourceTransforms:q,targetTransforms:X}=vi({sourceItems:I.container.items,targetItems:L.items,activeId:w.activeId,originalIndex:I.index,projectedIndex:re,activeRect:O(w.activeId,x),sourceDirection:I.container.direction,targetDirection:L.direction});ye=new Map([...q,...X])}else ye=gi({items:I.container.items,activeId:w.activeId,originalIndex:I.index,projectedIndex:re,activeRect:O(w.activeId,x),itemRects:S,direction:I.container.direction});let ge=de.targetId!=null?{targetId:de.targetId,position:de.dropPosition,targetRect:de.targetRect}:null,N={sourceContainerId:I.container.id,currentContainerId:L.id,originalIndex:I.index,projectedIndex:re,transforms:ye,dropIndicator:ge},J=r.sortable;(!J||J.currentContainerId!==N.currentContainerId||J.projectedIndex!==N.projectedIndex||!tt(J.transforms,N.transforms)||J.dropIndicator?.targetId!==N.dropIndicator?.targetId||J.dropIndicator?.position!==N.dropIndicator?.position)&&l(q=>({...q,sortable:N}))}function nt(){if(!(!m||!et())){if(!h){let v=r.draggables.get(r.operation.activeId);v?.node&&(h=pi(v.node))}h&&(b={x:0,y:0},lt())}}function ze(){y!==null&&(cancelAnimationFrame(y),y=null),b={x:0,y:0}}function lt(){let v=r.operation;if(!v||!h)return;let x=g.threshold??50,w=g.speed??15,I=g.direction??"both",z=v.current,L=h===document.documentElement?io(0,0,window.innerWidth,window.innerHeight):Zt(h),G=0,de=0;if(I!=="horizontal"){let re=z.y-L.top,se=L.bottom-z.y;re>=0&&re<x?de=-w*(1-re/x):se>=0&&se<x&&(de=w*(1-se/x))}if(I!=="vertical"){let re=z.x-L.left,se=L.right-z.x;re>=0&&re<x?G=-w*(1-re/x):se>=0&&se<x&&(G=w*(1-se/x))}if(G!==0||de!==0){let re=lo(h);mi(h,G,de);let se=lo(h),ye=se.x-re.x,ge=se.y-re.y;(ye!==0||ge!==0)&&(b={x:b.x+ye,y:b.y+ge},me(v.current,b))}y=requestAnimationFrame(lt)}function ct(v,x){if(n(),r.operation)return;let w=r.draggables.get(x);if(!w||w.disabled)return;let I={...w.data},z;if("clientX"in v){let L=v;z={x:L.clientX,y:L.clientY}}else{let L=w.node?Zt(w.node):null;z=L?Ue(L):{x:0,y:0}}l(L=>({...L,operation:{activeId:x,origin:z,current:{...z},delta:{x:0,y:0},data:I},collisions:[],sortable:null})),R(),fe(),nt(),u("dragStart",{active:{id:x,data:I,node:w.node},event:v}),me(z)}function De(v,x){n();let w=r.operation;if(!w)return;let I={x:x.x-w.origin.x,y:x.y-w.origin.y};l(L=>({...L,operation:L.operation?{...L.operation,current:x,delta:I}:null})),me(x);let z=r.draggables.get(w.activeId);u("dragMove",{active:{id:w.activeId,data:w.data,node:z?.node??null},position:x,delta:I,event:v})}function Be(v){n();let x=r.operation;if(!x)return;let w=r.collisions[0]??null,I=r.sortable;I&&(I.sourceContainerId!==I.currentContainerId?u("transfer",{activeId:x.activeId,from:{containerId:I.sourceContainerId,index:I.originalIndex},to:{containerId:I.currentContainerId,index:I.projectedIndex},event:v}):I.originalIndex!==I.projectedIndex&&u("sort",{containerId:I.sourceContainerId,activeId:x.activeId,fromIndex:I.originalIndex,toIndex:I.projectedIndex,event:v})),u("dragEnd",{active:{id:x.activeId,data:x.data},over:w?{id:w.id,data:w.data}:null,cancelled:!1,event:v}),bt()}function $e(v){n();let x=r.operation;x&&(u("dragCancel",{active:{id:x.activeId,data:x.data},event:v}),u("dragEnd",{active:{id:x.activeId,data:x.data},over:null,cancelled:!0,event:v}),bt())}function bt(){ze(),ae(),S.clear(),b={x:0,y:0},oe=null,h=null,l(v=>({...v,operation:null,collisions:[],sortable:null}))}let Fe=new Set;function _t(v,x,w){if(n(),!et())return()=>{};let I=w?.activationDistance??5,z=w?.activationDelay??0,L=!1,G=!1,de=null,re=null,se=z===0,ye=null,ge=null,N=null;function J(){L=!1,G=!1,de=null,se=z===0,re!==null&&(clearTimeout(re),re=null),ye!==null&&(cancelAnimationFrame(ye),ye=null),ge=null,N=null,document.removeEventListener("pointermove",le),document.removeEventListener("pointerup",xe),document.removeEventListener("pointercancel",s),document.removeEventListener("keydown",d),document.removeEventListener("contextmenu",E)}function q(){ge&&N&&G&&(De(N,ge),ge=null,N=null),ye=null}function X(T){if(!(T.button!==0||r.operation||r.draggables.get(x)?.disabled)){L=!0,de={x:T.clientX,y:T.clientY},se=z===0;try{v.setPointerCapture(T.pointerId)}catch{}z>0&&(re=setTimeout(()=>{se=!0,re=null},z)),document.addEventListener("pointermove",le),document.addEventListener("pointerup",xe),document.addEventListener("pointercancel",s),document.addEventListener("keydown",d),document.addEventListener("contextmenu",E)}}function le(T){if(!L&&!G||!de)return;let U={x:T.clientX,y:T.clientY};if(!G){let F=vt(de,U);if(!se){F>I&&J();return}if(F<I)return;G=!0,L=!1,ct(T,x);return}ge=U,N=T,ye===null&&(ye=requestAnimationFrame(q))}function xe(T){G&&(ge&&De(T,ge),Be(T));try{v.releasePointerCapture(T.pointerId)}catch{}J()}function s(T){G&&$e(T);try{v.releasePointerCapture(T.pointerId)}catch{}J()}function d(T){T.key==="Escape"&&G&&($e(T),J())}function E(T){(G||L)&&T.preventDefault()}v.addEventListener("pointerdown",X);let P=()=>{J(),v.removeEventListener("pointerdown",X),Fe.delete(P)};return Fe.add(P),P}function At(v,x,w){if(n(),!et())return()=>{};let I=w?.step??25,z=w?.fastStep??I*5,L=!1;function G(N){if(!r.draggables.get(x)?.disabled){if(!L){(N.key===" "||N.key==="Enter")&&(N.preventDefault(),L=!0,ct(N,x));return}switch(N.preventDefault(),N.key){case"Escape":L=!1,$e(N);break;case"Tab":L=!1,$e(N);break;case" ":case"Enter":L=!1,Be(N);break;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":if(!r.operation)break;if(r.sortable!==null)de(N);else{let q=N.shiftKey?z:I,X=r.operation.current,le={x:X.x,y:X.y};N.key==="ArrowUp"&&(le.y-=q),N.key==="ArrowDown"&&(le.y+=q),N.key==="ArrowLeft"&&(le.x-=q),N.key==="ArrowRight"&&(le.x+=q),De(N,le)}break;case"Home":case"End":r.sortable&&re(N);break}}}function de(N){if(!r.operation||!r.sortable)return;let{currentContainerId:J,projectedIndex:q}=r.sortable,X=r.sortableContainers.get(J);if(!X)return;let le=X.direction==="vertical"||X.direction==="grid",xe=X.direction==="horizontal"||X.direction==="grid",s=q,d=J;if(N.key==="ArrowUp"&&le||N.key==="ArrowLeft"&&xe)s>0&&s--;else if(N.key==="ArrowDown"&&le||N.key==="ArrowRight"&&xe){let E=X.items.filter(P=>P!==r.operation.activeId).length;s<E&&s++}else if(N.key==="ArrowLeft"||N.key==="ArrowRight"){let E=ye(J,N.key==="ArrowRight"?"right":"left");E&&(d=E.id,s=0)}(s!==q||d!==J)&&se(d,s,N)}function re(N){if(!r.operation||!r.sortable)return;let J=r.sortableContainers.get(r.sortable.currentContainerId);if(!J)return;let q=J.items.filter(le=>le!==r.operation.activeId),X=N.key==="Home"?q[0]:q[q.length-1];if(X!=null){let le=O(X,b);le&&De(N,Ue(le))}}function se(N,J,q){let X=r.sortableContainers.get(N);if(!X)return;let le=X.items.filter(s=>s!==r.operation.activeId),xe=le[Math.min(J,le.length-1)];if(xe!=null){let s=O(xe,b);if(s){De(q,Ue(s));let d=r.draggables.get(xe);d?.node&&d.node.scrollIntoView({block:"nearest",inline:"nearest",behavior:"smooth"})}}}function ye(N,J){let q=O(N,b);if(!q)return null;let X=Ue(q),le=null,xe=1/0;for(let[s,d]of r.sortableContainers){if(s===N)continue;let E=O(s,b);if(!E)continue;let P=Ue(E);if(J==="right"&&P.x<=X.x||J==="left"&&P.x>=X.x)continue;let T=r.draggables.get(r.operation.activeId);if(d.accept&&T?.scope!=null&&!d.accept.includes(T.scope))continue;let U=vt(X,P);U<xe&&(xe=U,le=d)}return le}v.addEventListener("keydown",G);let ge=()=>{L&&(L=!1,$e()),v.removeEventListener("keydown",G),Fe.delete(ge)};return Fe.add(ge),ge}function xt(v){return n(),l(x=>{let w=new Map(x.draggables);return w.set(v.id,v),{...x,draggables:w}}),()=>{r.operation?.activeId===v.id&&$e(),l(x=>{let w=new Map(x.draggables);return w.delete(v.id),{...x,draggables:w}})}}function Ce(v){return n(),l(x=>{let w=new Map(x.droppables);return w.set(v.id,v),{...x,droppables:w}}),()=>{l(x=>{let w=new Map(x.droppables);return w.delete(v.id),{...x,droppables:w}})}}function It(v){return n(),l(x=>{let w=new Map(x.sortableContainers);return w.set(v.id,v),{...x,sortableContainers:w}}),v.node&&H&&H.observe(v.node),()=>{v.node&&H&&H.unobserve(v.node),l(x=>{let w=new Map(x.sortableContainers);return w.delete(v.id),{...x,sortableContainers:w}})}}function Jt(v,x){let w=C[v];return w?w(x):""}return et()&&(M(),j()),{getState:()=>r,subscribe(v){return n(),o.add(v),()=>{o.delete(v)}},registerDraggable:xt,registerDroppable:Ce,registerSortableContainer:It,startDrag:ct,updateDrag:De,endDrag:Be,cancelDrag:$e,on(v,x){n(),c.has(v)||c.set(v,new Set);let w=c.get(v),I=x;return w.add(I),()=>{w.delete(I)}},attachPointerSensor:_t,attachKeyboardSensor:At,setScrollableElement(v){h=v},setCollisionDetection(v){f=v},measureRects:R,getAdjustedRect:O,getAnnouncement:Jt,destroy(){if(!t){t=!0,r.operation&&(u("dragCancel",{active:{id:r.operation.activeId,data:r.operation.data}}),u("dragEnd",{active:{id:r.operation.activeId,data:r.operation.data},over:null,cancelled:!0}),ze(),ae());for(let v of Fe)v();Fe.clear(),H?.disconnect(),H=null,k?.(),k=null,D.cancel(),W.cancel(),c.clear(),o.clear(),S.clear(),r={operation:null,draggables:new Map,droppables:new Map,sortableContainers:new Map,collisions:[],sortable:null}}}}}function po(e="UnknownHeadless",t={}){return un(e,t)}function dn({name:e,type:t="headless",defaultProps:n,setup:r}){return o=>po(e,{type:t,inProps:o,defaultProps:n,setup:r})}var Ei=ee(Z());var mo={as:"i",size:void 0,rotate:void 0,flip:void 0,spin:!1};var Si=ee(Z());var xi=ee(Z()),ho=dn({name:"useIcon",setup({attrs:e}){let t=e["aria-label"],n=e.tabIndex;return{pti:xi.useCallback(()=>{let o=Ke(t);return{role:o?void 0:"img","aria-hidden":Ke(n)&&o}},[t,n])}}});function yo({name:e,defaultProps:t,styles:n,components:r,setup:o,render:i}){return fn({name:`${e??"Unknown"}Icon`,defaultProps:t,styles:n,components:r,setup(a){let l=ho(a?.inProps),c=K(o,a);return Si.useMemo(()=>({...l,...c}),[l,c])},render:i})}var _l=yo({name:"Icon",styles:nn,defaultProps:mo,render(e){let{id:t,props:n,ptmi:r,pti:o,cx:i,sx:a}=e,l=Ye({id:t,style:a("root"),className:i("root")},o?.(),r("root"));return Ei.createElement(qt,{instance:e,attrs:l,children:n.children})}});var Po=ee(Z());var[go,Al]=Cr();var pn={elementRef:void 0,visible:!1,mountOnEnter:!0,unmountOnLeave:!0,name:void 0,type:void 0,safe:!1,disabled:!1,appear:!1,enter:!0,leave:!0,duration:void 0,hideStrategy:"display",cssVarPrefix:void 0,enterFromClassName:void 0,enterToClassName:void 0,enterActiveClassName:void 0,leaveFromClassName:void 0,leaveToClassName:void 0,leaveActiveClassName:void 0,onBeforeEnter:void 0,onEnter:void 0,onAfterEnter:void 0,onEnterCancelled:void 0,onBeforeLeave:void 0,onLeave:void 0,onAfterLeave:void 0,onLeaveCancelled:void 0};var vo={...pn,as:"div"};var Ee=ee(Z());var Kn=new WeakMap,kl=Object.freeze({display:"none"}),Ll=Object.freeze({visibility:"hidden",maxHeight:"0"});function bo(e){switch(e){case"display":return kl;case"visibility":return Ll;default:return}}function qn(e,t){if(!e)return;Kn.has(e)||Kn.set(e,{display:e.style.display==="none"?"":e.style.display,visibility:e.style.visibility==="hidden"?"":e.style.visibility,maxHeight:e.style.maxHeight==="0"?"":e.style.maxHeight});let n=bo(t);n&&Object.assign(e.style,n)}function xo(e,t){if(!e)return;let n=Kn.get(e);switch(t){case"display":e.style.display=n?.display??"";break;case"visibility":e.style.visibility=n?.visibility??"",e.style.maxHeight=n?.maxHeight??"";break}Kn.delete(e)}var Ml=Object.defineProperty,Ri=Object.getOwnPropertySymbols,Nl=Object.prototype.hasOwnProperty,Dl=Object.prototype.propertyIsEnumerable,wi=(e,t,n)=>t in e?Ml(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,So=(e,t)=>{for(var n in t||(t={}))Nl.call(t,n)&&wi(e,n,t[n]);if(Ri)for(var n of Ri(t))Dl.call(t,n)&&wi(e,n,t[n]);return e};var Yn="animation",mn="transition",$l=["data-enter-phase","data-enter-from","data-enter-to","data-enter-active","data-leave-phase","data-leave-from","data-leave-to","data-leave-active"];function Ci(e){return e?e.disabled||!!(e.safe&&rs()):!1}function Pi(e,t){return e?So(So({},e),Object.entries(t).reduce((n,[r,o])=>{var i;return n[r]=(i=e[r])!=null?i:o,n},{})):So({},t)}function Ti(e){let{name:t,enterClass:n,leaveClass:r}=e||{};return{enter:{from:n?.from||`${t}-enter-from`,to:n?.to||`${t}-enter-to`,active:n?.active||`${t}-enter-active`},leave:{from:r?.from||`${t}-leave-from`,to:r?.to||`${t}-leave-to`,active:r?.active||`${t}-leave-active`}}}function Oi(e){return{enter:{onBefore:e?.onBeforeEnter,onStart:e?.onEnter,onAfter:e?.onAfterEnter,onCancelled:e?.onEnterCancelled},leave:{onBefore:e?.onBeforeLeave,onStart:e?.onLeave,onAfter:e?.onAfterLeave,onCancelled:e?.onLeaveCancelled}}}function _i(e,t){let n=window.getComputedStyle(e),r=m=>{let g=n[`${m}Duration`].split(", ").map(tr),y=n[`${m}Delay`].split(", ").map(tr);return y.length<g.length&&y.length>0&&(y=g.map((b,C)=>y[C%y.length])),[y,g]},[o,i]=r(mn),[a,l]=r(Yn),c=Math.max(...i.map((m,g)=>m+o[g])),u=Math.max(...l.map((m,g)=>m+a[g])),f,p=0,h=0;return t===mn?c>0&&(f=mn,p=c,h=i.length):t===Yn?u>0&&(f=Yn,p=u,h=l.length):(p=Math.max(c,u),f=p>0?c>u?mn:Yn:void 0,h=f?f===mn?i.length:l.length:0),{type:f,timeout:p,count:h}}function Ai(e,t){return typeof e=="number"?e:e!=null&&typeof e=="object"&&e[t]!=null?e[t]:null}function Ot(e,t){return e?`--${e}-${t}`:`--${t}`}function hn(e,t,n){let{autoHeight:r,autoWidth:o,cssVarPrefix:i}=t,a=typeof n=="object";r&&pr(e,Ot(i,"height"),a?n.height:n),o&&pr(e,Ot(i,"width"),a?n.width:n)}function Eo(e,t){if(!t.autoHeight&&!t.autoWidth)return;let n=e.scrollHeight,r=e.scrollWidth;if(!n||!r){let o=ts(e);n||(n=o.height),r||(r=o.width)}hn(e,t,{height:n+"px",width:r+"px"})}function Ii(e,t){e.setAttribute(`data-${t}-phase`,"")}function Ro(e,t,n){e.removeAttribute("data-enter-from"),e.removeAttribute("data-enter-to"),e.removeAttribute("data-leave-from"),e.removeAttribute("data-leave-to"),e.setAttribute(`data-${t}-${n}`,""),e.setAttribute(`data-${t}-active`,"")}function wo(e){e.removeAttribute("data-enter-phase"),e.removeAttribute("data-leave-phase")}function ki(e){$l.forEach(t=>e.removeAttribute(t))}var Nd=Object.freeze({name:"p",safe:!0,disabled:!1,enter:!0,leave:!0,autoHeight:!0,autoWidth:!0,cssVarPrefix:""});var Hl=Object.freeze({}),Li={name:"p",safe:!0,disabled:!1,enter:!0,leave:!0,autoHeight:!0,autoWidth:!1};function Mi(e,t){if(!e)throw new Error("Element is required.");let n={},r=!1,o={},i=null,a={},l=f=>{if(Object.assign(n,Pi(f,Li)),!n.enter&&!n.leave)throw new Error("Enter or leave must be true.");a=Oi(n),r=Ci(n),o=Ti(n),i=null},c=async f=>{i?.();let{onBefore:p,onStart:h,onAfter:m,onCancelled:g}=a[f]||{},y={element:e};if(Ii(e,f),r){p?.(y),h?.(y),m?.(y),wo(e);return}let{from:b,active:C,to:S}=o[f]||{};return p?.(y),f==="enter"?hn(e,n,"0px"):Eo(e,n),En(e,b),En(e,C),Ro(e,f,"from"),await dr(),f==="enter"?Eo(e,n):hn(e,n,"0px"),fr(e,b),En(e,S),Ro(e,f,"to"),h?.(y),new Promise(R=>{let O=Ai(n.duration,f),_=()=>{fr(e,[S,C]),i=null,ki(e),wo(e)},D=()=>{_(),m?.(y),R(),f==="enter"&&hn(e,n,"auto")};i=()=>{_(),g?.(y),R()},Ul(e,n.type,O,D)})};l(t);let u={enter:()=>n.enter?c("enter"):Promise.resolve(),leave:()=>n.leave?c("leave"):Promise.resolve(),cancel:()=>{i?.(),i=null},update:(f,p)=>{if(!f)throw new Error("Element is required.");e=f,u.cancel(),l(p)}};return n.appear&&u.enter(),u}var jl=0;function Ul(e,t,n,r){let o=e._motionEndId=++jl,i=()=>{o===e._motionEndId&&r()};if(n!=null)return setTimeout(i,n);let{type:a,timeout:l,count:c}=_i(e,t);if(!a){r();return}let u=a+"end",f=0,p=()=>{e.removeEventListener(u,h,!0),i()},h=m=>{m.target===e&&++f>=c&&p()};e.addEventListener(u,h,{capture:!0,once:!0}),setTimeout(()=>{f<c&&p()},l+1)}var Co=dn({name:"useMotion",defaultProps:pn,setup({props:e,elementRef:t}){let[n,r]=Ee.useState(()=>e.visible&&e.mountOnEnter||!e.mountOnEnter),o={rendered:n},i=Ee.useRef(void 0),a=Ee.useRef(!0),l=Ee.useCallback(()=>Ht(e.elementRef)??t?.current,[e.elementRef,t]),c=Ee.useCallback(()=>i.current?.enter(),[]),u=Ee.useCallback(()=>i.current?.leave(),[]),f=Ee.useCallback(()=>i.current?.cancel(),[]),p=Ee.useCallback((m,g={})=>{if(!m)return;let y={...g,enterClass:{from:g.enterFromClassName,to:g.enterToClassName,active:g.enterActiveClassName},leaveClass:{from:g.leaveFromClassName,to:g.leaveToClassName,active:g.leaveActiveClassName}};i.current?i.current?.update(m,y):i.current=Mi(m,y)},[]);Ee.useLayoutEffect(()=>()=>{let m=l();xo(m,e.hideStrategy),a.current=!0},[]),Ee.useLayoutEffect(()=>{e.visible&&!n&&r(!0)},[e.visible]),Ee.useLayoutEffect(()=>{let m=l();p?.(m,e)},[]),Ee.useLayoutEffect(()=>{let m=l();if(!m||!n){m&&!e.visible&&qn(m,e.hideStrategy),a.current=!1;return}let g=!1,y=a.current&&e.visible&&e.appear;if(xo(m,e.hideStrategy),p?.(m,e),e.visible){if(y||!a.current)c?.();else if(e.cssVarPrefix){let b=Ot(e.cssVarPrefix,"width"),C=Ot(e.cssVarPrefix,"height");m.style.setProperty(b,"auto"),m.style.setProperty(C,"auto")}}else u?.()?.then(()=>{!m||g||e.visible||(e.unmountOnLeave?(qn(m,e.hideStrategy),dr().then(()=>{g||r(!1)})):qn(m,e.hideStrategy))});return a.current=!1,()=>{g=!0,f?.()}},[e.visible,n,e.unmountOnLeave,e.appear,l]);let h=Ee.useMemo(()=>{if(!e.visible&&!n){let m=Ot(e.cssVarPrefix,"width"),g=Ot(e.cssVarPrefix,"height");return{style:{...bo(e.hideStrategy),[m]:"0px",[g]:"0px"}}}return Hl},[e.visible,n,e.hideStrategy,e.cssVarPrefix]);return{state:o,enter:c,leave:u,cancel:f,update:p,rootProps:h}}});var Bl=fn({name:"Motion",defaultProps:vo,setup(e){return Co(e.inProps)},render(e){let{id:t,props:n,state:r,ptmi:o,rootProps:i}=e,a=Ye({id:t},o("root"),i);return Po.createElement(go,{value:e},Po.createElement(qt,{pIf:r.rendered,instance:e,attrs:a,children:n.children}))}});var Ae=ee(Z()),Fl=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n].id!==t[n].id||e[n].open!==t[n].open)return!1;return!0};function Vl(){let e=new Map,t=new Set,n=[],r=[],o=()=>{let a=Array.from(e.values()),l=a.map(c=>({id:c.id,open:c.open}));return Fl(r,l)&&a.length===n.length&&!a.some((u,f)=>u.props!==n[f]?.props)?!1:(n=a,r=l,!0)},i=()=>{o()&&t.forEach(a=>a())};return{subscribe(a){return t.add(a),()=>{t.delete(a)}},getSnapshot(){return n},open(a,l){e.set(a,{id:a,props:l,open:!0}),i()},close(a){if(a===void 0){let c=!1;e.forEach((u,f)=>{u.open&&(e.set(f,{...u,open:!1}),c=!0)}),c&&i();return}let l=e.get(a);l?.open&&(e.set(a,{...l,open:!1}),i())},remove(a){e.delete(a)&&i()},removeAll(){e.size!==0&&(e.clear(),i())},update(a,l){let c=e.get(a);c&&(e.set(a,{...c,props:{...c.props,...l}}),i())},getItem(a){return e.get(a)},isOpen(a){return e.get(a)?.open??!1},isAnyOpen(){for(let a of e.values())if(a.open)return!0;return!1}}}function Wl({item:e,store:t,render:n,defaults:r}){let[o,i]=Ae.useState(!1);Ae.useEffect(()=>{i(!0)},[]);let a=Ae.useCallback(c=>{c.value||t.close(e.id)},[e.id,t]),l=Ae.useCallback(()=>{t.remove(e.id)},[e.id,t]);return Ae.createElement(Ae.Fragment,null,n.current({...r.current,...e.props,overlayId:e.id,open:o?e.open:!1,onOpenChange:a,onExitComplete:l}))}var zl=(e,t,n)=>{let r=()=>{let o=Ae.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot);return Ae.createElement(Ae.Fragment,null,o.map(i=>Ae.createElement(Wl,{key:i.id,item:i,store:e,render:t,defaults:n})))};return r.displayName="OverlayManagerRender",r},Kl=["open","onOpenChange","onExitComplete","overlayId"];function ql(e){let t={...e};for(let n of Kl)delete t[n];return t}function Yl(e,t={}){let n=Vl(),r={current:e},o={current:t.props},i=zl(n,r,o);return{open:n.open,close:n.close,remove:n.remove,removeAll:n.removeAll,update:(a,l)=>n.update(a,ql(l)),isOpen:n.isOpen,isAnyOpen:n.isAnyOpen,get:a=>n.getItem(a)?.props,getSnapshot:n.getSnapshot,setRender:a=>{r.current=a},Viewport:i}}var Ni=ee(Z()),To=class extends xs{constructor({attrs:t}={}){super({attrs:t}),this._styles.set("layer-order",{})}has(t){return t==="layer-order"?this._styles.get(t)?.css!==void 0:this._styles.has(t)}createStyleElement(t={}){let{css:n,attrs:r,name:o}=t;if(!Ke(o))return Ni.createElement("style",{...r,"data-primereact-style-id":o,key:o},n)}};return Wi(Gl);})();
|
|
16
16
|
/*! Bundled license information:
|
|
17
17
|
|
|
18
18
|
react/cjs/react.production.js:
|
package/use-style/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ThemeContext as
|
|
1
|
+
import{ThemeContext as x}from"@primereact/core/theme";import{isClient as f,isNotEmpty as p}from"@primeuix/utils";import*as o from"react";function E(){let s=o.useContext(x),c=o.useCallback((n={})=>{let{name:e,css:a,element:C,options:l={}}=n;if(f()&&p(a)){let r=C?.getRootNode();(!r||r===document)&&(r=document.head);let t=r.querySelector(`style[data-primereact-style-id="${e}"]`)||document.createElement("style");if(!t.isConnected){l?.first?r.prepend(t):r.appendChild(t),t.setAttribute("data-primereact-style-id",e||"");let{nonce:m,...S}=l??{};m&&t.setAttribute("nonce",String(m)),Object.entries(S).forEach(([u,d])=>{u.startsWith("data-")&&d!=null&&t.setAttribute(u,String(d))})}let i=a??"";return t.textContent!==i&&(t.textContent=i),t}},[]),y=o.useCallback((n={})=>{let{name:e,css:a}=n;if(p(n.css))return e&&!s?.stylesheet?.has(e)&&!f()&&e!=="layer-order"&&s?.stylesheet?.add(e,a),c(n)},[s,c]),h=o.useCallback(()=>{s?.stylesheet&&s.stylesheet.clear()},[s]);return o.useInsertionEffect(()=>{s?.stylesheet?.getStyles()?.forEach((n,e)=>{c({name:e,css:n?.css})})},[s,c]),[y,h]}var k={};export{k as defaultUseStyleProps,E as useStyle};
|
package/utils/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export * from './combinedRefs';
|
|
2
|
-
export * from './ConnectedOverlayScrollHandler';
|
|
3
2
|
export * from './createContext';
|
|
4
3
|
export * from './env';
|
|
5
4
|
export * from './mergeRefs';
|
|
6
5
|
export * from './overlayEventBus';
|
|
6
|
+
export * from './overlayOwner';
|
|
7
7
|
export * from './stylePreloadRegistry';
|
|
8
8
|
export * from './styleRegistry';
|
|
9
|
+
export * from './useOverlayClickEmitter';
|
|
9
10
|
export declare function isValidElement(obj: any): obj is React.ReactElement;
|
|
10
11
|
export declare function isElementOfType(obj: any, name: string): boolean;
|
package/utils/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var R=(e,t)=>{e&&t&&t!==e&&(typeof t=="function"?t(e&&"current"in e?e.current:null):"current"in t&&"current"in e&&t.current!==e.current&&(t.current=e&&"current"in e?e.current:null))};import{resolve as p}from"@primeuix/utils";import*as n from"react";function d(e,t){let r=n.createContext(e);return[({value:o,children:c})=>{let f=n.useMemo(()=>p(c,o),[c,o]);return n.createElement(r.Provider,{value:o},f)},()=>{let o=n.useContext(r);return o===void 0?t?.():o}]}function _(e,t){return d(e,()=>{throw new Error(t||"Context must be used within a Provider")})}function v(e){return d(e,()=>e)}var T=typeof process<"u"&&process.env?.NODE_ENV!=="production";function O(...e){return t=>{for(let r of e)if(r!=null)if(typeof r=="function")r(t);else try{r.current=t}catch{}}}import{EventBus as E}from"@primeuix/utils/eventbus";var u=E();var y="data-overlay-owner",m="__primereactOverlayOwner";function w(e,t){e&&(t?(e[m]=t,e.setAttribute(y,"")):(delete e[m],e.removeAttribute(y)))}var h=e=>({id:e.id,css:e.css,phase:e.phase??"both",priority:e.priority??0}),l=e=>e.sort((t,r)=>{let s=t.priority-r.priority;return s!==0?s:t.id.localeCompare(r.id)}),$={_entries:new Map,register(e){!e.id||!e.css||this._entries.set(e.id,h(e))},registerMany(e=[]){e.forEach(t=>this.register(t))},has(e){return this._entries.has(e)},getAll(){return l([...this._entries.values()])},getForSSR(){return l([...this._entries.values()].filter(e=>e.phase!=="client"))},getForClient(){return l([...this._entries.values()].filter(e=>e.phase!=="ssr"))},clear(){this._entries.clear()}},k=(e,t)=>{t.forEach(r=>{e?.has(r.id)||e?.add(r.id,r.css)})},z=e=>{e.forEach(t=>{let r=document.head.querySelector(`style[data-primereact-style-id="${t.id}"]`)||document.createElement("style");r.isConnected||(document.head.appendChild(r),r.setAttribute("data-primereact-style-id",t.id)),r.textContent=t.css})};var Y={_loadedStyleNames:new Set,_styleRefCount:new Map,getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(e){return(this._styleRefCount.get(e)??0)>0},getStyleRefCount(e){return this._styleRefCount.get(e)??0},retainStyleName(e){let t=this.getStyleRefCount(e),r=t+1;return this._styleRefCount.set(e,r),this._loadedStyleNames.add(e),t===0},releaseStyleName(e){let t=this.getStyleRefCount(e);return t<=1?(this._styleRefCount.delete(e),this._loadedStyleNames.delete(e),!0):(this._styleRefCount.set(e,t-1),!1)},setLoadedStyleName(e){this.retainStyleName(e)},deleteLoadedStyleName(e){this._styleRefCount.delete(e),this._loadedStyleNames.delete(e)},clearLoadedStyleNames(){this._styleRefCount.clear(),this._loadedStyleNames.clear()},getStats(){return{totalStyles:this._loadedStyleNames.size,styleRefCounts:Array.from(this._styleRefCount.entries()).map(([e,t])=>({name:e,refCount:t}))}}};import*as i from"react";function B(e,t){let r=i.useRef(t);r.current=t,i.useEffect(()=>{if(!e)return;let s=a=>{u.emit("overlay-click",{originalEvent:a,target:r.current?.()??null})};return e.addEventListener("pointerdown",s,!0),()=>{e.removeEventListener("pointerdown",s,!0)}},[e])}var S=Symbol.for("react.element"),x=Symbol.for("react.transitional.element");function D(e){return typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===x)}function F(e,t){if(typeof e!="object"||e===null)return!1;let r=e.displayName||e.type?.displayName||e.type?.name;return r===t||r?.includes(`PrimeReact.${t}`)||r?.includes(`PrimeReact.UI${t}`)}export{y as OVERLAY_OWNER_ATTR,m as OVERLAY_OWNER_KEY,u as OverlayEventBus,$ as StylePreloadRegistry,Y as StyleRegistry,k as addStylePreloadsToStyleSheet,R as combinedRefs,v as createOptionalContext,_ as createSafeContext,T as isDev,F as isElementOfType,D as isValidElement,O as mergeRefs,w as setOverlayOwner,z as upsertStylePreloadsToHead,B as useOverlayClickEmitter};
|
|
@@ -2,8 +2,4 @@ export interface OverlayClickPayload {
|
|
|
2
2
|
originalEvent: Event | React.SyntheticEvent;
|
|
3
3
|
target?: Element | null;
|
|
4
4
|
}
|
|
5
|
-
export declare const OverlayEventBus:
|
|
6
|
-
emit: (name: string, payload?: unknown) => void;
|
|
7
|
-
on: (name: string, cb: (payload: unknown) => void) => void;
|
|
8
|
-
off: (name: string, cb: (payload: unknown) => void) => void;
|
|
9
|
-
};
|
|
5
|
+
export declare const OverlayEventBus: import("@primeuix/utils").EventBusOptions<Record<string, unknown>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Marks a portaled overlay popup as belonging to the anchor that opened it, so ancestor overlays can
|
|
3
|
+
* tell "focus moved into a nested overlay of mine" from "focus left entirely" across the portal.
|
|
4
|
+
*/
|
|
5
|
+
export declare const OVERLAY_OWNER_ATTR = "data-overlay-owner";
|
|
6
|
+
/**
|
|
7
|
+
* Property key holding the owning anchor element on a popup node. An element reference rather than an
|
|
8
|
+
* id, so the link needs no id generation and cannot go stale.
|
|
9
|
+
*/
|
|
10
|
+
export declare const OVERLAY_OWNER_KEY: "__primereactOverlayOwner";
|
|
11
|
+
export type OverlayOwnerNode = Element & {
|
|
12
|
+
[OVERLAY_OWNER_KEY]?: HTMLElement | null;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Links a popup node to the anchor element that owns it.
|
|
16
|
+
*
|
|
17
|
+
* @param popup The portaled popup element.
|
|
18
|
+
* @param anchor The anchor element the popup was opened from.
|
|
19
|
+
*/
|
|
20
|
+
export declare function setOverlayOwner(popup: OverlayOwnerNode | null | undefined, anchor: HTMLElement | null | undefined): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emits `overlay-click` on the overlay bus for pointer interactions inside a portaled overlay popup.
|
|
3
|
+
*
|
|
4
|
+
* Bound natively in the capture phase: a React synthetic handler on a portaled popup runs after the
|
|
5
|
+
* `document`-level listener that consumers (see `usePopover`) dismiss on, and would lose that race.
|
|
6
|
+
*
|
|
7
|
+
* @param popupElement The overlay popup element, tracked in state so the effect re-runs on mount.
|
|
8
|
+
* @param getTarget Returns the element reported as the overlay's owner, usually its root element.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useOverlayClickEmitter(popupElement: HTMLElement | null | undefined, getTarget: () => Element | null | undefined): void;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare class ConnectedOverlayScrollHandler {
|
|
2
|
-
private element;
|
|
3
|
-
private listener;
|
|
4
|
-
private scrollableParents;
|
|
5
|
-
private isBound;
|
|
6
|
-
constructor(element: HTMLElement | null, listener?: () => void);
|
|
7
|
-
bindScrollListener(): void;
|
|
8
|
-
unbindScrollListener(): void;
|
|
9
|
-
destroy(): void;
|
|
10
|
-
}
|