primevue
Version:
PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc
1 lines • 1.79 MB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).PrimeVue={},e.Vue)}(this,(function(e,t){"use strict";var n={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"},o={AND:"and",OR:"or"},i=Object.defineProperty,r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,s=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c=(e,t)=>{for(var n in t||(t={}))a.call(t,n)&&s(e,n,t[n]);if(r)for(var n of r(t))l.call(t,n)&&s(e,n,t[n]);return e};function d(e){return null==e||""===e||Array.isArray(e)&&0===e.length||!(e instanceof Date)&&"object"==typeof e&&0===Object.keys(e).length}function u(e,t,n,o=1){let i=-1;const r=d(e),a=d(t);return i=r&&a?0:r?o:a?-o:"string"==typeof e&&"string"==typeof t?n(e,t):e<t?-1:e>t?1:0,i}function p(e,t,n=new WeakSet){if(e===t)return!0;if(!e||!t||"object"!=typeof e||"object"!=typeof t)return!1;if(n.has(e)||n.has(t))return!1;n.add(e).add(t);let o,i,r,a=Array.isArray(e),l=Array.isArray(t);if(a&&l){if(i=e.length,i!=t.length)return!1;for(o=i;0!=o--;)if(!p(e[o],t[o],n))return!1;return!0}if(a!=l)return!1;let s=e instanceof Date,c=t instanceof Date;if(s!=c)return!1;if(s&&c)return e.getTime()==t.getTime();let d=e instanceof RegExp,u=t instanceof RegExp;if(d!=u)return!1;if(d&&u)return e.toString()==t.toString();let m=Object.keys(e);if(i=m.length,i!==Object.keys(t).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(t,m[o]))return!1;for(o=i;0!=o--;)if(r=m[o],!p(e[r],t[r],n))return!1;return!0}function m(e,t){return p(e,t)}function h(e){return!!(e&&e.constructor&&e.call&&e.apply)}function f(e){return!d(e)}function b(e,t){if(!e||!t)return null;try{const n=e[t];if(f(n))return n}catch(e){}if(Object.keys(e).length){if(h(t))return t(e);if(-1===t.indexOf("."))return e[t];{let n=t.split("."),o=e;for(let e=0,t=n.length;e<t;++e){if(null==o)return null;o=o[n[e]]}return o}}return null}function g(e,t,n){return n?b(e,n)===b(t,n):m(e,t)}function v(e,t){if(null!=e&&t&&t.length)for(let n of t)if(g(e,n))return!0;return!1}function y(e,t){let n=-1;if(t)for(let o=0;o<t.length;o++)if(t[o]===e){n=o;break}return n}function k(e,t){let n;if(f(e))try{n=e.findLast(t)}catch(o){n=[...e].reverse().find(t)}return n}function w(e,t){let n=-1;if(f(e))try{n=e.findLastIndex(t)}catch(o){n=e.lastIndexOf([...e].reverse().find(t))}return n}function x(e,t=!0){return e instanceof Object&&e.constructor===Object&&(t||0!==Object.keys(e).length)}function C(e,...t){return h(e)?e(...t):e}function I(e,t=!0){return"string"==typeof e&&(t||""!==e)}function S(e){return I(e)?e.replace(/(-|_)/g,"").toLowerCase():e}function P(e,t="",n={}){const o=S(t).split("."),i=o.shift();return i?x(e)?P(C(e[Object.keys(e).find((e=>S(e)===i))||""],n),o.join("."),n):void 0:C(e,n)}function O(e,t=!0){return Array.isArray(e)&&(t||0!==e.length)}function B(e){return e instanceof Date&&e.constructor===Date}function E(e){return f(e)&&!isNaN(e)}function L(e=""){return f(e)&&1===e.length&&!!e.match(/\S| /)}function $(){return new Intl.Collator(void 0,{numeric:!0}).compare}function T(e,t){if(t){const n=t.test(e);return t.lastIndex=0,n}return!1}function D(...e){const t=(e={},n={})=>{const o=c({},e);return Object.keys(n).forEach((i=>{o[i]=x(n[i])&&i in e&&x(e[i])?t(e[i],n[i]):n[i]})),o};return e.reduce(((e,n,o)=>0===o?n:t(e,n)),{})}function M(css){return css?css.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":"):css}function V(e){if(e&&/[\xC0-\xFF\u0100-\u017E]/.test(e)){const t={A:/[\xC0-\xC5\u0100\u0102\u0104]/g,AE:/[\xC6]/g,C:/[\xC7\u0106\u0108\u010A\u010C]/g,D:/[\xD0\u010E\u0110]/g,E:/[\xC8-\xCB\u0112\u0114\u0116\u0118\u011A]/g,G:/[\u011C\u011E\u0120\u0122]/g,H:/[\u0124\u0126]/g,I:/[\xCC-\xCF\u0128\u012A\u012C\u012E\u0130]/g,IJ:/[\u0132]/g,J:/[\u0134]/g,K:/[\u0136]/g,L:/[\u0139\u013B\u013D\u013F\u0141]/g,N:/[\xD1\u0143\u0145\u0147\u014A]/g,O:/[\xD2-\xD6\xD8\u014C\u014E\u0150]/g,OE:/[\u0152]/g,R:/[\u0154\u0156\u0158]/g,S:/[\u015A\u015C\u015E\u0160]/g,T:/[\u0162\u0164\u0166]/g,U:/[\xD9-\xDC\u0168\u016A\u016C\u016E\u0170\u0172]/g,W:/[\u0174]/g,Y:/[\xDD\u0176\u0178]/g,Z:/[\u0179\u017B\u017D]/g,a:/[\xE0-\xE5\u0101\u0103\u0105]/g,ae:/[\xE6]/g,c:/[\xE7\u0107\u0109\u010B\u010D]/g,d:/[\u010F\u0111]/g,e:/[\xE8-\xEB\u0113\u0115\u0117\u0119\u011B]/g,g:/[\u011D\u011F\u0121\u0123]/g,i:/[\xEC-\xEF\u0129\u012B\u012D\u012F\u0131]/g,ij:/[\u0133]/g,j:/[\u0135]/g,k:/[\u0137,\u0138]/g,l:/[\u013A\u013C\u013E\u0140\u0142]/g,n:/[\xF1\u0144\u0146\u0148\u014B]/g,p:/[\xFE]/g,o:/[\xF2-\xF6\xF8\u014D\u014F\u0151]/g,oe:/[\u0153]/g,r:/[\u0155\u0157\u0159]/g,s:/[\u015B\u015D\u015F\u0161]/g,t:/[\u0163\u0165\u0167]/g,u:/[\xF9-\xFC\u0169\u016B\u016D\u016F\u0171\u0173]/g,w:/[\u0175]/g,y:/[\xFD\xFF\u0177]/g,z:/[\u017A\u017C\u017E]/g};for(let n in t)e=e.replace(t[n],n)}return e}function A(e,t,n){e&&t!==n&&(n>=e.length&&(n%=e.length,t%=e.length),e.splice(n,0,e.splice(t,1)[0]))}function z(e,t,n=1,o,i=1){const r=u(e,t,o,n);let a=n;return(d(e)||d(t))&&(a=1===i?n:i),a*r}function _(e){return I(e,!1)?e[0].toUpperCase()+e.slice(1):e}function R(e){return I(e)?e.replace(/(_)/g,"-").replace(/[A-Z]/g,((e,t)=>0===t?e:"-"+e.toLowerCase())).toLowerCase():e}function N(e){return I(e)?e.replace(/[A-Z]/g,((e,t)=>0===t?e:"."+e.toLowerCase())).toLowerCase():e}function F(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return K(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(e,t):void 0}}(e))||t){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw r}}}}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var j={filter:function(e,t,n,o,i){var r=[];if(!e)return r;var a,l=F(e);try{for(l.s();!(a=l.n()).done;){var s=a.value;if("string"==typeof s){if(this.filters[o](s,n,i)){r.push(s);continue}}else{var c,d=F(t);try{for(d.s();!(c=d.n()).done;){var u=b(s,c.value);if(this.filters[o](u,n,i)){r.push(s);break}}}catch(e){d.e(e)}finally{d.f()}}}}catch(e){l.e(e)}finally{l.f()}return r},filters:{startsWith:function(e,t,n){if(null==t||""===t)return!0;if(null==e)return!1;var o=V(t.toString()).toLocaleLowerCase(n);return V(e.toString()).toLocaleLowerCase(n).slice(0,o.length)===o},contains:function(e,t,n){if(null==t||""===t)return!0;if(null==e)return!1;var o=V(t.toString()).toLocaleLowerCase(n);return-1!==V(e.toString()).toLocaleLowerCase(n).indexOf(o)},notContains:function(e,t,n){if(null==t||""===t)return!0;if(null==e)return!1;var o=V(t.toString()).toLocaleLowerCase(n);return-1===V(e.toString()).toLocaleLowerCase(n).indexOf(o)},endsWith:function(e,t,n){if(null==t||""===t)return!0;if(null==e)return!1;var o=V(t.toString()).toLocaleLowerCase(n),i=V(e.toString()).toLocaleLowerCase(n);return-1!==i.indexOf(o,i.length-o.length)},equals:function(e,t,n){return null==t||""===t||null!=e&&(e.getTime&&t.getTime?e.getTime()===t.getTime():V(e.toString()).toLocaleLowerCase(n)==V(t.toString()).toLocaleLowerCase(n))},notEquals:function(e,t,n){return null!=t&&""!==t&&(null==e||(e.getTime&&t.getTime?e.getTime()!==t.getTime():V(e.toString()).toLocaleLowerCase(n)!=V(t.toString()).toLocaleLowerCase(n)))},in:function(e,t){if(null==t||0===t.length)return!0;for(var n=0;n<t.length;n++)if(g(e,t[n]))return!0;return!1},between:function(e,t){return null==t||null==t[0]||null==t[1]||null!=e&&(e.getTime?t[0].getTime()<=e.getTime()&&e.getTime()<=t[1].getTime():t[0]<=e&&e<=t[1])},lt:function(e,t){return null==t||null!=e&&(e.getTime&&t.getTime?e.getTime()<t.getTime():e<t)},lte:function(e,t){return null==t||null!=e&&(e.getTime&&t.getTime?e.getTime()<=t.getTime():e<=t)},gt:function(e,t){return null==t||null!=e&&(e.getTime&&t.getTime?e.getTime()>t.getTime():e>t)},gte:function(e,t){return null==t||null!=e&&(e.getTime&&t.getTime?e.getTime()>=t.getTime():e>=t)},dateIs:function(e,t){return null==t||null!=e&&e.toDateString()===t.toDateString()},dateIsNot:function(e,t){return null==t||null!=e&&e.toDateString()!==t.toDateString()},dateBefore:function(e,t){return null==t||null!=e&&e.getTime()<t.getTime()},dateAfter:function(e,t){return null==t||null!=e&&e.getTime()>t.getTime()}},register:function(e,t){this.filters[e]=t}},q={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}};function H(){const e=new Map;return{on(t,n){let o=e.get(t);return o?o.push(n):o=[n],e.set(t,o),this},off(t,n){let o=e.get(t);return o&&o.splice(o.indexOf(n)>>>0,1),this},emit(t,n){let o=e.get(t);o&&o.slice().map((e=>{e(n)}))},clear(){e.clear()}}}var U=Object.defineProperty,G=Object.defineProperties,W=Object.getOwnPropertyDescriptors,Y=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,J=(e,t,n)=>t in e?U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Q=(e,t)=>{for(var n in t||(t={}))Z.call(t,n)&&J(e,n,t[n]);if(Y)for(var n of Y(t))X.call(t,n)&&J(e,n,t[n]);return e},ee=(e,t)=>G(e,W(t)),te=(e,t)=>{var n={};for(var o in e)Z.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&Y)for(var o of Y(e))t.indexOf(o)<0&&X.call(e,o)&&(n[o]=e[o]);return n};var ne=H();function oe(e,t){O(e)?e.push(...t||[]):x(e)&&Object.assign(e,t)}function ie(e){return e.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function re(e="",t=""){return ie(`${I(e,!1)&&I(t,!1)?`${e}-`:e}${t}`)}function ae(e="",t=""){return`--${re(e,t)}`}function le(e,t="",n="",o=[],i){if(I(e)){const t=/{([^}]*)}/g,r=e.trim();if(T(r,t)){const e=r.replaceAll(t,(e=>{const t=e.replace(/{|}/g,"").split(".").filter((e=>!o.some((t=>T(e,t)))));return`var(${ae(n,R(t.join("-")))}${f(i)?`, ${i}`:""})`})),a=/(\d+\s+[\+\-\*\/]\s+\d+)/g;return T(e.replace(/var\([^)]+\)/g,"0"),a)?`calc(${e})`:e}return r}if(E(e))return e}function se(e,t,n){I(t,!1)&&e.push(`${t}:${n};`)}function ce(e,t){return e?`${e}{${t}}`:""}function de(e){return 4===e.length?`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`:e}function ue(e){var t=parseInt(e.substring(1),16);return{r:t>>16&255,g:t>>8&255,b:255&t}}var pe=(e,t,n)=>{e=de(e),t=de(t);var o=(2*(n/100)-1+1)/2,i=1-o,r=ue(e),a=ue(t);return function(e,t,n){return`#${e.toString(16).padStart(2,"0")}${t.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}`}(Math.round(r.r*o+a.r*i),Math.round(r.g*o+a.g*i),Math.round(r.b*o+a.b*i))},me=(e,t)=>pe("#000000",e,t),he=(e,t)=>pe("#ffffff",e,t),fe=[50,100,200,300,400,500,600,700,800,900,950],be=e=>{var t;const theme=xe.getTheme(),n=ve(theme,e,void 0,"variable");return{name:null==(t=null==n?void 0:n.match(/--[\w-]+/g))?void 0:t[0],variable:n,value:ve(theme,e,void 0,"value")}},ge=(...e)=>ve(xe.getTheme(),...e),ve=(theme={},e,t,n)=>{if(e){const{variable:o,options:i}=xe.defaults||{},{prefix:r,transform:a}=(null==theme?void 0:theme.options)||i||{},l=T(e,/{([^}]*)}/g)?e:`{${e}}`;return"value"===n||d(n)&&"strict"===a?xe.getTokenValue(e):le(l,void 0,r,[o.excludedKeyRegex],t)}return""};var ye=(theme={})=>{let{preset:e,options:t}=theme;return{preset(t){return e=e?D(e,t):t,this},options(e){return t=t?Q(Q({},t),e):e,this},primaryPalette(t){const{semantic:n}=e||{};return e=ee(Q({},e),{semantic:ee(Q({},n),{primary:t})}),this},surfacePalette(t){var n,o;const{semantic:i}=e||{},r=(null==t?void 0:t.hasOwnProperty("light"))?null==t?void 0:t.light:t,a=(null==t?void 0:t.hasOwnProperty("dark"))?null==t?void 0:t.dark:t,l={colorScheme:{light:Q(Q({},null==(n=null==i?void 0:i.colorScheme)?void 0:n.light),!!r&&{surface:r}),dark:Q(Q({},null==(o=null==i?void 0:i.colorScheme)?void 0:o.dark),!!a&&{surface:a})}};return e=ee(Q({},e),{semantic:Q(Q({},i),l)}),this},define:({useDefaultPreset:n=!1,useDefaultOptions:o=!1}={})=>({preset:n?xe.getPreset():e,options:o?xe.getOptions():t}),update({mergePresets:n=!0,mergeOptions:o=!0}={}){const i={preset:n?D(xe.getPreset(),e):e,options:o?Q(Q({},xe.getOptions()),t):t};return xe.setTheme(i),i},use(e){const t=this.define(e);return xe.setTheme(t),t}}};function ke(theme,e={}){const t=xe.defaults.variable,{prefix:n=t.prefix,selector:o=t.selector,excludedKeyRegex:i=t.excludedKeyRegex}=e,r=(e,t="")=>Object.entries(e).reduce(((e,[o,a])=>{const l=T(o,i)?re(t):re(t,R(o)),s=function(e){return x(e)&&e.hasOwnProperty("value")&&e.hasOwnProperty("type")?e.value:e}(a);if(x(s)){const{variables:t,tokens:n}=r(s,l);oe(e.tokens,n),oe(e.variables,t)}else e.tokens.push((n?l.replace(`${n}-`,""):l).replaceAll("-",".")),se(e.variables,ae(l),le(s,l,n,[i]));return e}),{variables:[],tokens:[]}),{variables:a,tokens:l}=r(theme,n);return{value:a,tokens:l,declarations:a.join(""),css:ce(o,a.join(""))}}var we={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}`,matched:this.pattern.test(e.trim())}}},media:{pattern:/^@media (.*)$/,resolve(e){return{type:"media",selector:`${e}{:root{[CSS]}}`,matched:this.pattern.test(e.trim())}}},system:{pattern:/^system$/,resolve(e){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(e.trim())}}},custom:{resolve:e=>({type:"custom",selector:e,matched:!0})}},resolve(e){const t=Object.keys(this.rules).filter((e=>"custom"!==e)).map((e=>this.rules[e]));return[e].flat().map((e=>{var n;return null!=(n=t.map((t=>t.resolve(e))).find((e=>e.matched)))?n:this.rules.custom.resolve(e)}))}},_toVariables:(theme,e)=>ke(theme,{prefix:null==e?void 0:e.prefix}),getCommon({name:e="",theme:theme={},set:t,defaults:n}){var o,i,r,a,l,s,c;const{preset:d,options:u}=theme;let p,m,h,b,g,v,y;if(f(d)&&"strict"!==u.transform){const{primitive:k,semantic:w,extend:x}=d,I=w||{},{colorScheme:S}=I,P=te(I,["colorScheme"]),O=x||{},{colorScheme:B}=O,E=te(O,["colorScheme"]),L=S||{},{dark:$}=L,T=te(L,["dark"]),D=B||{},{dark:M}=D,V=te(D,["dark"]),A=f(k)?this._toVariables({primitive:k},u):{},z=f(P)?this._toVariables({semantic:P},u):{},_=f(T)?this._toVariables({light:T},u):{},R=f($)?this._toVariables({dark:$},u):{},N=f(E)?this._toVariables({semantic:E},u):{},F=f(V)?this._toVariables({light:V},u):{},K=f(M)?this._toVariables({dark:M},u):{},[j,q]=[null!=(o=A.declarations)?o:"",A.tokens],[H,U]=[null!=(i=z.declarations)?i:"",z.tokens||[]],[G,W]=[null!=(r=_.declarations)?r:"",_.tokens||[]],[Y,Z]=[null!=(a=R.declarations)?a:"",R.tokens||[]],[X,J]=[null!=(l=N.declarations)?l:"",N.tokens||[]],[Q,ee]=[null!=(s=F.declarations)?s:"",F.tokens||[]],[ne,oe]=[null!=(c=K.declarations)?c:"",K.tokens||[]];p=this.transformCSS(e,j,"light","variable",u,t,n),m=q;h=`${this.transformCSS(e,`${H}${G}`,"light","variable",u,t,n)}${this.transformCSS(e,`${Y}`,"dark","variable",u,t,n)}`,b=[...new Set([...U,...W,...Z])];g=`${this.transformCSS(e,`${X}${Q}color-scheme:light`,"light","variable",u,t,n)}${this.transformCSS(e,`${ne}color-scheme:dark`,"dark","variable",u,t,n)}`,v=[...new Set([...J,...ee,...oe])],y=C(d.css,{dt:ge})}return{primitive:{css:p,tokens:m},semantic:{css:h,tokens:b},global:{css:g,tokens:v},style:y}},getPreset({name:e="",preset:t={},options:n,set:o,defaults:i,selector:r}){var a,l,s;let c,d,u;if(f(t)&&"strict"!==n.transform){const p=e.replace("-directive",""),m=t,{colorScheme:h,extend:b,css:g}=m,v=te(m,["colorScheme","extend","css"]),y=b||{},{colorScheme:k}=y,w=te(y,["colorScheme"]),x=h||{},{dark:I}=x,S=te(x,["dark"]),P=k||{},{dark:O}=P,B=te(P,["dark"]),E=f(v)?this._toVariables({[p]:Q(Q({},v),w)},n):{},L=f(S)?this._toVariables({[p]:Q(Q({},S),B)},n):{},$=f(I)?this._toVariables({[p]:Q(Q({},I),O)},n):{},[T,D]=[null!=(a=E.declarations)?a:"",E.tokens||[]],[M,V]=[null!=(l=L.declarations)?l:"",L.tokens||[]],[A,z]=[null!=(s=$.declarations)?s:"",$.tokens||[]];c=`${this.transformCSS(p,`${T}${M}`,"light","variable",n,o,i,r)}${this.transformCSS(p,A,"dark","variable",n,o,i,r)}`,d=[...new Set([...D,...V,...z])],u=C(g,{dt:ge})}return{css:c,tokens:d,style:u}},getPresetC({name:e="",theme:theme={},params:t,set:n,defaults:o}){var i;const{preset:r,options:a}=theme,l=null==(i=null==r?void 0:r.components)?void 0:i[e];return this.getPreset({name:e,preset:l,options:a,params:t,set:n,defaults:o})},getPresetD({name:e="",theme:theme={},params:t,set:n,defaults:o}){var i;const r=e.replace("-directive",""),{preset:a,options:l}=theme,s=null==(i=null==a?void 0:a.directives)?void 0:i[r];return this.getPreset({name:r,preset:s,options:l,params:t,set:n,defaults:o})},applyDarkColorScheme:e=>!("none"===e.darkModeSelector||!1===e.darkModeSelector),getColorSchemeOption(e,t){var n;return this.applyDarkColorScheme(e)?this.regex.resolve(!0===e.darkModeSelector?t.options.darkModeSelector:null!=(n=e.darkModeSelector)?n:t.options.darkModeSelector):[]},getLayerOrder(e,t={},n,o){const{cssLayer:i}=t;if(i){return`@layer ${C(i.order||"primeui",n)}`}return""},getCommonStyleSheet({name:e="",theme:theme={},params:t,props:n={},set:o,defaults:i}){const r=this.getCommon({name:e,theme:theme,params:t,set:o,defaults:i}),a=Object.entries(n).reduce(((e,[t,n])=>e.push(`${t}="${n}"`)&&e),[]).join(" ");return Object.entries(r||{}).reduce(((e,[t,n])=>{if(null==n?void 0:n.css){const o=M(null==n?void 0:n.css);e.push(`<style type="text/css" data-primevue-style-id="${`${t}-variables`}" ${a}>${o}</style>`)}return e}),[]).join("")},getStyleSheet({name:e="",theme:theme={},params:t,props:n={},set:o,defaults:i}){var r;const a={name:e,theme:theme,params:t,set:o,defaults:i},l=null==(r=e.includes("-directive")?this.getPresetD(a):this.getPresetC(a))?void 0:r.css,s=Object.entries(n).reduce(((e,[t,n])=>e.push(`${t}="${n}"`)&&e),[]).join(" ");return l?`<style type="text/css" data-primevue-style-id="${e}-variables" ${s}>${M(l)}</style>`:""},createTokens(e={},t,n="",o="",i={}){return Object.entries(e).forEach((([e,r])=>{const a=T(e,t.variable.excludedKeyRegex)?n:n?`${n}.${N(e)}`:N(e),l=o?`${o}.${e}`:e;x(r)?this.createTokens(r,t,a,l,i):(i[a]||(i[a]={paths:[],computed(e,t={}){var n,o;return 1===this.paths.length?null==(n=this.paths[0])?void 0:n.computed(this.paths[0].scheme,t.binding):e&&"none"!==e?null==(o=this.paths.find((t=>t.scheme===e)))?void 0:o.computed(e,t.binding):this.paths.map((e=>e.computed(e.scheme,t[e.scheme])))}}),i[a].paths.push({path:l,value:r,scheme:l.includes("colorScheme.light")?"light":l.includes("colorScheme.dark")?"dark":"none",computed(e,t={}){const n=/{([^}]*)}/g;let o=r;if(t.name=this.path,t.binding||(t.binding={}),T(r,n)){const a=r.trim().replaceAll(n,(n=>{var o;const r=n.replace(/{|}/g,""),a=null==(o=i[r])?void 0:o.computed(e,t);return O(a)&&2===a.length?`light-dark(${a[0].value},${a[1].value})`:null==a?void 0:a.value})),l=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g;o=T(a.replace(/var\([^)]+\)/g,"0"),l)?`calc(${a})`:a}return d(t.binding)&&delete t.binding,{colorScheme:e,path:this.path,paths:t,value:o.includes("undefined")?void 0:o}}}))})),i},getTokenValue(e,t,n){var o;const i=t.split(".").filter((e=>!T(e.toLowerCase(),n.variable.excludedKeyRegex))).join(".");const r=t.includes("colorScheme.light")?"light":t.includes("colorScheme.dark")?"dark":void 0,a=[null==(o=e[i])?void 0:o.computed(r)].flat().filter((e=>e));return 1===a.length?a[0].value:a.reduce(((e={},t)=>{const n=t,{colorScheme:o}=n,i=te(n,["colorScheme"]);return e[o]=i,e}),void 0)},getSelectorRule:(e,t,n,o)=>"class"===n||"attr"===n?ce(f(t)?`${e}${t},${e} ${t}`:e,o):ce(e,f(t)?ce(t,o):o),transformCSS(e,t,n,o,i={},r,a,l){if(f(t)){const{cssLayer:s}=i;if("style"!==o){const e=this.getColorSchemeOption(i,a);t="dark"===n?e.reduce(((e,{type:n,selector:o})=>(f(o)&&(e+=o.includes("[CSS]")?o.replace("[CSS]",t):this.getSelectorRule(o,l,n,t)),e)),""):ce(null!=l?l:":root",t)}if(s){const n={name:"primeui",order:"primeui"};x(s)&&(n.name=C(s.name,{name:e,type:o})),f(n.name)&&(t=ce(`@layer ${n.name}`,t),null==r||r.layerNames(n.name))}return t}return""}},xe={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(e={}){const{theme:theme}=e;theme&&(this._theme=ee(Q({},theme),{options:Q(Q({},this.defaults.options),theme.options)}),this._tokens=we.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var e;return(null==(e=this.theme)?void 0:e.preset)||{}},get options(){var e;return(null==(e=this.theme)?void 0:e.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(e){this.update({theme:e}),ne.emit("theme:change",e)},getPreset(){return this.preset},setPreset(e){this._theme=ee(Q({},this.theme),{preset:e}),this._tokens=we.createTokens(e,this.defaults),this.clearLoadedStyleNames(),ne.emit("preset:change",e),ne.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(e){this._theme=ee(Q({},this.theme),{options:e}),this.clearLoadedStyleNames(),ne.emit("options:change",e),ne.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(e){this._layerNames.add(e)},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 we.getTokenValue(this.tokens,e,this.defaults)},getCommon(e="",t){return we.getCommon({name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(e="",t){const n={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return we.getPresetC(n)},getDirective(e="",t){const n={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return we.getPresetD(n)},getCustomPreset(e="",t,n,o){const i={name:e,preset:t,options:this.options,selector:n,params:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return we.getPreset(i)},getLayerOrderCSS(e=""){return we.getLayerOrder(e,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(e="",t,n="style",o){return we.transformCSS(e,t,o,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(e="",t,n={}){return we.getCommonStyleSheet({name:e,theme:this.theme,params:t,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(e,t,n={}){return we.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),ne.emit(`theme:${t}:load`,e),!this._loadingStyles.size&&ne.emit("theme:load"))}};function Ce(e,t){return!!e&&(e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className))}function Ie(e,t){if(e&&t){const n=t=>{Ce(e,t)||(e.classList?e.classList.add(t):e.className+=" "+t)};[t].flat().filter(Boolean).forEach((e=>e.split(" ").forEach(n)))}}function Se(){return window.innerWidth-document.documentElement.offsetWidth}function Pe(e){for(const t of null==document?void 0:document.styleSheets)try{for(const n of null==t?void 0:t.cssRules)for(const t of null==n?void 0:n.style)if(e.test(t))return{name:t,value:n.style.getPropertyValue(t).trim()}}catch(e){}return null}function Oe(e="p-overflow-hidden"){const t=Pe(/-scrollbar-width$/);(null==t?void 0:t.name)&&document.body.style.setProperty(t.name,Se()+"px"),Ie(document.body,e)}function Be(e){if(e){let t=document.createElement("a");if(void 0!==t.download){const{name:n,src:o}=e;return t.setAttribute("href",o),t.setAttribute("download",n),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t),!0}}return!1}function Ee(e,t){let n=new Blob([e],{type:"application/csv;charset=utf-8;"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(n,t+".csv");else{Be({name:t+".csv",src:URL.createObjectURL(n)})||(e="data:text/csv;charset=utf-8,"+e,window.open(encodeURI(e)))}}function Le(e,t){if(e&&t){const n=t=>{e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")};[t].flat().filter(Boolean).forEach((e=>e.split(" ").forEach(n)))}}function $e(e="p-overflow-hidden"){const t=Pe(/-scrollbar-width$/);(null==t?void 0:t.name)&&document.body.style.removeProperty(t.name),Le(document.body,e)}function Te(e){let t={width:0,height:0};return e&&(e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible"),t}function De(){let e=window,t=document,n=t.documentElement,o=t.getElementsByTagName("body")[0];return{width:e.innerWidth||n.clientWidth||o.clientWidth,height:e.innerHeight||n.clientHeight||o.clientHeight}}function Me(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}function Ve(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}function Ae(e,t,n=!0){var o,i,r,a;if(e){const l=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:Te(e),s=l.height,c=l.width,d=t.offsetHeight,u=t.offsetWidth,p=t.getBoundingClientRect(),m=Ve(),h=Me(),f=De();let b,g,v="top";p.top+d+s>f.height?(b=p.top+m-s,v="bottom",b<0&&(b=m)):b=d+p.top+m,g=p.left+c>f.width?Math.max(0,p.left+h+u-c):p.left+h,e.style.top=b+"px",e.style.left=g+"px",e.style.transformOrigin=v,n&&(e.style.marginTop="bottom"===v?`calc(${null!=(i=null==(o=Pe(/-anchor-gutter$/))?void 0:o.value)?i:"2px"} * -1)`:null!=(a=null==(r=Pe(/-anchor-gutter$/))?void 0:r.value)?a:"")}}function ze(e,t){e&&("string"==typeof t?e.style.cssText=t:Object.entries(t||{}).forEach((([t,n])=>e.style[t]=n)))}function _e(e,t){if(e instanceof HTMLElement){let n=e.offsetWidth;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginLeft)+parseFloat(t.marginRight)}return n}return 0}function Re(e,t,n=!0){var o,i,r,a;if(e){const l=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:Te(e),s=t.offsetHeight,c=t.getBoundingClientRect(),d=De();let u,p,m="top";c.top+s+l.height>d.height?(u=-1*l.height,m="bottom",c.top+u<0&&(u=-1*c.top)):u=s,p=l.width>d.width?-1*c.left:c.left+l.width>d.width?-1*(c.left+l.width-d.width):0,e.style.top=u+"px",e.style.left=p+"px",e.style.transformOrigin=m,n&&(e.style.marginTop="bottom"===m?`calc(${null!=(i=null==(o=Pe(/-anchor-gutter$/))?void 0:o.value)?i:"2px"} * -1)`:null!=(a=null==(r=Pe(/-anchor-gutter$/))?void 0:r.value)?a:"")}}function Ne(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function Fe(e){let t=e;return e&&"object"==typeof e&&(e.hasOwnProperty("current")?t=e.current:e.hasOwnProperty("el")&&(t=e.el.hasOwnProperty("nativeElement")?e.el.nativeElement:e.el)),Ne(t)?t:void 0}var Ke=void 0;var je=void 0;function qe(e){if(e){let t=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.borderRightWidth)}{if(null!=je)return je;let e=document.createElement("div");ze(e,{width:"100px",height:"100px",overflow:"scroll",position:"absolute",top:"-9999px"}),document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),je=t,t}}function He(){if(window.getSelection){const e=window.getSelection()||{};e.empty?e.empty():e.removeAllRanges&&e.rangeCount>0&&e.getRangeAt(0).getClientRects().length>0&&e.removeAllRanges()}}function Ue(e,t={}){if(Ne(e)){const n=(t,o)=>{var i,r;const a=(null==(i=null==e?void 0:e.$attrs)?void 0:i[t])?[null==(r=null==e?void 0:e.$attrs)?void 0:r[t]]:[];return[o].flat().reduce(((e,o)=>{if(null!=o){const i=typeof o;if("string"===i||"number"===i)e.push(o);else if("object"===i){const i=Array.isArray(o)?n(t,o):Object.entries(o).map((([e,n])=>"style"!==t||!n&&0!==n?n?e:void 0:`${e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${n}`));e=i.length?e.concat(i.filter((e=>!!e))):e}}return e}),a)};Object.entries(t).forEach((([t,o])=>{if(null!=o){const i=t.match(/^on(.+)/);i?e.addEventListener(i[1].toLowerCase(),o):"p-bind"===t?Ue(e,o):(o="class"===t?[...new Set(n("class",o))].join(" ").trim():"style"===t?n("style",o).join(";").trim():o,(e.$attrs=e.$attrs||{})&&(e.$attrs[t]=o),e.setAttribute(t,o))}}))}}function Ge(e,t={},...n){if(e){const o=document.createElement(e);return Ue(o,t),o.append(...n),o}}function We(e,t){if(e){e.style.opacity="0";let n=+new Date,o="0",i=function(){o=""+(+e.style.opacity+((new Date).getTime()-n)/t),e.style.opacity=o,n=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(i)||setTimeout(i,16))};i()}}function Ye(e,t){return Ne(e)?Array.from(e.querySelectorAll(t)):[]}function Ze(e,t){return Ne(e)?e.matches(t)?e:e.querySelector(t):null}function Xe(e,t){e&&document.activeElement!==e&&e.focus(t)}function Je(e,t){if(Ne(e)){const n=e.getAttribute(t);return isNaN(n)?"true"===n||"false"===n?"true"===n:n:+n}}function Qe(){let e=navigator.userAgent.toLowerCase(),t=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}}var et=null;function tt(e,t=""){let n=Ye(e,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}`),o=[];for(let e of n)"none"!=getComputedStyle(e).display&&"hidden"!=getComputedStyle(e).visibility&&o.push(e);return o}function nt(e,t){const n=tt(e,t);return n.length>0?n[0]:null}function ot(e){if(e){let t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),t}return 0}function it(e){if(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t}return 0}function rt(e){if(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t}return 0}function at(e){if(e){let t=e.parentNode;return t&&t instanceof ShadowRoot&&t.host&&(t=t.host),t}return null}function lt(e){var t;if(e){let n=null==(t=at(e))?void 0:t.childNodes,o=0;if(n)for(let t=0;t<n.length;t++){if(n[t]===e)return o;1===n[t].nodeType&&o++}}return-1}function st(e,t){const n=tt(e,t);return n.length>0?n[n.length-1]:null}function ct(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}return null}function dt(e){if(e){let t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}function ut(e,t){if(e){let n=e.offsetHeight;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return n}return 0}function pt(e,t=[]){const n=at(e);return null===n?t:pt(n,t.concat([n]))}function mt(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}return null}function ht(e){let t=[];if(e){let n=pt(e);const o=/(auto|scroll)/,i=e=>{try{let t=window.getComputedStyle(e,null);return o.test(t.getPropertyValue("overflow"))||o.test(t.getPropertyValue("overflowX"))||o.test(t.getPropertyValue("overflowY"))}catch(e){return!1}};for(let e of n){let n=1===e.nodeType&&e.dataset.scrollselectors;if(n){let o=n.split(",");for(let n of o){let o=Ze(e,n);o&&i(o)&&t.push(o)}}9!==e.nodeType&&i(e)&&t.push(e)}}return t}function ft(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():void 0}function bt(e){return!(null==e||!e.nodeName||!at(e))}function gt(){return navigator.userAgent}function vt(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),t}return 0}function yt(e){if(e){const t=getComputedStyle(e);return parseFloat(t.getPropertyValue("animation-duration")||"0")>0}return!1}function kt(e,t,n){e[t].apply(e,n)}function wt(){return/(android)/i.test(navigator.userAgent)}function xt(e,t,n){return!!Ne(e)&&Je(e,t)===n}function Ct(e){if(e){const t=e.nodeName,n=e.parentElement&&e.parentElement.nodeName;return"INPUT"===t||"TEXTAREA"===t||"BUTTON"===t||"A"===t||"INPUT"===n||"TEXTAREA"===n||"BUTTON"===n||"A"===n||!!e.closest(".p-button, .p-checkbox, .p-radiobutton")}return!1}function It(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function St(e,t=""){return!!Ne(e)&&e.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}`)}function Pt(e){return!(!e||null==e.offsetParent)}function Ot(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function Bt(e,t){var n,o;if(e){const i=e.parentElement,r=dt(i),a=De(),l=e.offsetParent?e.offsetWidth:rt(e),s=e.offsetParent?e.offsetHeight:it(e),c=_e(null==(n=null==i?void 0:i.children)?void 0:n[0]),d=ut(null==(o=null==i?void 0:i.children)?void 0:o[0]);let u="",p="";r.left+c+l>a.width-qe()?r.left<l?t%2==1?u=r.left?"-"+r.left+"px":"100%":t%2==0&&(u=a.width-l-qe()+"px"):u="-100%":u="100%",p=e.getBoundingClientRect().top+d+s>a.height?`-${s-d}px`:"0px",e.style.top=p,e.style.left=u}}function Et(e,t){let n=getComputedStyle(e).getPropertyValue("borderTopWidth"),o=n?parseFloat(n):0,i=getComputedStyle(e).getPropertyValue("paddingTop"),r=i?parseFloat(i):0,a=e.getBoundingClientRect(),l=t.getBoundingClientRect().top+document.body.scrollTop-(a.top+document.body.scrollTop)-o-r,s=e.scrollTop,c=e.clientHeight,d=ut(t);l<0?e.scrollTop=s+l:l+d>c&&(e.scrollTop=s+l-c+d)}function Lt(e,t="",n){Ne(e)&&null!=n&&e.setAttribute(t,n)}function $t(e){return $t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$t(e)}function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(n),!0).forEach((function(t){Mt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=$t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=$t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$t(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vt=0;function At(css){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ref(!1),o=t.ref(css),i=t.ref(null),r=It()?window.document:void 0,a=e.document,l=void 0===a?r:a,s=e.immediate,c=void 0===s||s,d=e.manual,u=void 0!==d&&d,p=e.name,m=void 0===p?"style_".concat(++Vt):p,h=e.id,f=void 0===h?void 0:h,b=e.media,g=void 0===b?void 0:b,v=e.nonce,y=void 0===v?void 0:v,k=e.first,w=void 0!==k&&k,x=e.onMounted,C=void 0===x?void 0:x,I=e.onUpdated,S=void 0===I?void 0:I,P=e.onLoad,O=void 0===P?void 0:P,B=e.props,E=void 0===B?{}:B,L=function(){},$=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(l){var a=Dt(Dt({},E),r),s=a.name||m,c=a.id||f,d=a.nonce||y;i.value=l.querySelector('style[data-primevue-style-id="'.concat(s,'"]'))||l.getElementById(c)||l.createElement("style"),i.value.isConnected||(o.value=e||css,Ue(i.value,{type:"text/css",id:c,media:g,nonce:d}),w?l.head.prepend(i.value):l.head.appendChild(i.value),Lt(i.value,"data-primevue-style-id",s),Ue(i.value,a),i.value.onload=function(e){return null==O?void 0:O(e,{name:s})},null==C||C(s)),n.value||(L=t.watch(o,(function(e){i.value.textContent=e,null==S||S(s)}),{immediate:!0}),n.value=!0)}};return c&&!u&&function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.getCurrentInstance()?t.onMounted(e):n?e():t.nextTick(e)}($),{id:f,name:m,el:i,css:o,unload:function(){l&&n.value&&(L(),bt(i.value)&&l.head.removeChild(i.value),n.value=!1)},load:$,isLoaded:t.readonly(n)}}function zt(e){return zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zt(e)}function _t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r,a,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t);else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Rt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nt(Object(n),!0).forEach((function(t){Kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=zt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=zt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jt={name:"base",css:function(e){return"\n.p-hidden-accessible {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.p-hidden-accessible input,\n.p-hidden-accessible select {\n transform: scale(0);\n}\n\n.p-overflow-hidden {\n overflow: hidden;\n padding-right: ".concat((0,e.dt)("scrollbar.width"),";\n}\n")},theme:function(e){var t=e.dt;return"\n* {\n box-sizing: border-box;\n}\n\n/* Non vue overlay animations */\n.p-connected-overlay {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1),\n opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-connected-overlay-visible {\n opacity: 1;\n transform: scaleY(1);\n}\n\n.p-connected-overlay-hidden {\n opacity: 0;\n transform: scaleY(1);\n transition: opacity 0.1s linear;\n}\n\n/* Vue based overlay animations */\n.p-connected-overlay-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n}\n\n.p-connected-overlay-leave-to {\n opacity: 0;\n}\n\n.p-connected-overlay-enter-active {\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1),\n opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-connected-overlay-leave-active {\n transition: opacity 0.1s linear;\n}\n\n/* Toggleable Content */\n.p-toggleable-content-enter-from,\n.p-toggleable-content-leave-to {\n max-height: 0;\n}\n\n.p-toggleable-content-enter-to,\n.p-toggleable-content-leave-from {\n max-height: 1000px;\n}\n\n.p-toggleable-content-leave-active {\n overflow: hidden;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n}\n\n.p-toggleable-content-enter-active {\n overflow: hidden;\n transition: max-height 1s ease-in-out;\n}\n\n.p-disabled,\n.p-disabled * {\n cursor: default;\n pointer-events: none;\n user-select: none;\n}\n\n.p-disabled,\n.p-component:disabled {\n opacity: ".concat(t("disabled.opacity"),";\n}\n\n.pi {\n font-size: ").concat(t("icon.size"),";\n}\n\n.p-icon {\n width: ").concat(t("icon.size"),";\n height: ").concat(t("icon.size"),";\n}\n\n.p-overlay-mask {\n background: ").concat(t("mask.background"),";\n color: ").concat(t("mask.color"),";\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.p-overlay-mask-enter {\n animation: p-overlay-mask-enter-animation ").concat(t("mask.transition.duration")," forwards;\n}\n\n.p-overlay-mask-leave {\n animation: p-overlay-mask-leave-animation ").concat(t("mask.transition.duration")," forwards;\n}\n\n@keyframes p-overlay-mask-enter-animation {\n from {\n background: transparent;\n }\n to {\n background: ").concat(t("mask.background"),";\n }\n}\n@keyframes p-overlay-mask-leave-animation {\n from {\n background: ").concat(t("mask.background"),";\n }\n to {\n background: transparent;\n }\n}\n")},classes:{},inlineStyles:{},load:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e})(C(e,{dt:ge}));return f(n)?At(M(n),Ft({name:this.name},t)):{}},loadCSS:function(){return this.load(this.css,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})},loadTheme:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.load(this.theme,t,(function(){return xe.transformCSS(t.name||e.name,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(n))}))},getCommonTheme:function(e){return xe.getCommon(this.name,e)},getComponentTheme:function(e){return xe.getComponent(this.name,e)},getDirectiveTheme:function(e){return xe.getDirective(this.name,e)},getPresetTheme:function(e,t,n){return xe.getCustomPreset(this.name,e,t,n)},getLayerOrderThemeCSS:function(){return xe.getLayerOrderCSS(this.name)},getStyleSheet:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.css){var n=C(this.css,{dt:ge})||"",o=M("".concat(n).concat(e)),i=Object.entries(t).reduce((function(e,t){var n=_t(t,2),o=n[1];return e.push("".concat(n[0],'="').concat(o,'"'))&&e}),[]).join(" ");return f(o)?'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(i,">").concat(o,"</style>"):""}return""},getCommonThemeStyleSheet:function(e){return xe.getCommonStyleSheet(this.name,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})},getThemeStyleSheet:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},css=[xe.getStyleSheet(this.name,e,t)];if(this.theme){var n="base"===this.name?"global-style":"".concat(this.name,"-style"),o=C(this.theme,{dt:ge}),i=M(xe.transformCSS(n,o)),r=Object.entries(t).reduce((function(e,t){var n=_t(t,2),o=n[1];return e.push("".concat(n[0],'="').concat(o,'"'))&&e}),[]).join(" ");f(i)&&css.push('<style type="text/css" data-primevue-style-id="'.concat(n,'" ').concat(r,">").concat(i,"</style>"))}return css.join("")},extend:function(e){return Ft(Ft({},this),{},{css:void 0,theme:void 0},e)}},qt={};function Ht(e="pui_id_"){return qt.hasOwnProperty(e)||(qt[e]=0),qt[e]++,`${e}${qt[e]}`}var Ut=jt.extend({name:"common"});function Gt(e){return Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gt(e)}function Wt(e){return Qt(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Xt(e)||Zt()}function Yt(e,t){return Qt(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r,a,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||Xt(e,t)||Zt()}function Zt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Xt(e,t){if(e){if("string"==typeof e)return Jt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jt(e,t):void 0}}function Jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Qt(e){if(Array.isArray(e))return e}function en(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?en(Object(n),!0).forEach((function(t){nn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):en(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Gt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Gt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Gt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e){var t=this;e?(this._loadScopedThemeStyles(e),this._themeChangeListener((function(){return t._loadScopedThemeStyles(e)}))):this._unloadScopedThemeStyles