primevue
Version:
PrimeVue is a premium UI library for Vue featuring a rich set of 90+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBlock, wh
1 lines • 2.19 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,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){if(e===t||e!=e&&t!=t)return!0;if(!e||!t||"object"!=typeof e||"object"!=typeof t)return!1;n||(n=new WeakMap);let o=n.get(e);if(null!=o&&o.has(t))return!0;o||n.set(e,o=new WeakSet),o.add(t);let i=Array.isArray(e),r=Array.isArray(t),a=!0;if(i&&r){if(e.length!==t.length)a=!1;else for(let o=e.length;0!==o--;)if(!p(e[o],t[o],n)){a=!1;break}}else if(i!==r)a=!1;else{let o=e instanceof Date,i=t instanceof Date;if(o!==i)a=!1;else if(o&&i)a=e.getTime()===t.getTime();else{let o=e instanceof RegExp,i=t instanceof RegExp;if(o!==i)a=!1;else if(o&&i)a=e.toString()===t.toString();else if(e instanceof Map||t instanceof Map)if(e instanceof Map&&t instanceof Map&&e.size===t.size){for(let[o,i]of e)if(!t.has(o)||!p(i,t.get(o),n)){a=!1;break}}else a=!1;else if(e instanceof Set||t instanceof Set)if(e instanceof Set&&t instanceof Set&&e.size===t.size){for(let n of e)if(!t.has(n)){a=!1;break}}else a=!1;else{let o=Object.keys(e),i=o.length;if(i!==Object.keys(t).length)a=!1;else{for(let e=i;0!==e--;)if(!Object.prototype.hasOwnProperty.call(t,o[e])){a=!1;break}if(a)for(let r=i;0!==r--;){let i=o[r];if(!p(e[i],t[i],n)){a=!1;break}}}}}}return a||o.delete(t),a}function h(e,t){return p(e,t)}function m(e){return"function"==typeof e&&"call"in e&&"apply"in e}function f(e){return!d(e)}function b(e,t){if(!e||!t)return null;let n=e;try{let e=n[t];if(f(e))return e}catch(e){}if(Object.keys(n).length){if(m(t))return t(e);if(-1===t.indexOf("."))return n[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):h(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=!0){return e instanceof Object&&e.constructor===Object&&(t||0!==Object.keys(e).length)}var k=new Set(["__proto__","constructor","prototype"]);function w(e,t,n,o=new WeakSet){let i=c({},e);0===Object.keys(i).length&&!n.has(t)&&n.set(t,i);let r=!o.has(t);return r&&o.add(t),Object.keys(t).forEach(r=>{var a,l;if(k.has(r))return;let s=r,c=t[s];i[s]=y(c)&&s in e&&y(e[s])?o.has(c)?null!=(a=n.get(c))?a:w({},c,n,o):w(e[s],c,n,o):y(c)?null!=(l=n.get(c))?l:w({},c,n,o):c}),r&&o.delete(t),i}function x(...e){return e.reduce((e,t)=>w(e,t||{},new WeakMap),{})}function C(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 S(e,t){let n;if(f(e))try{n=e.findLast(t)}catch(o){n=[...e].reverse().find(t)}return n}function I(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 P(e,...t){return m(e)?e(...t):e}function O(e,t=!0){return"string"==typeof e&&(t||""!==e)}function B(e){return O(e)?e.replace(/(-|_)/g,"").toLowerCase():e}function $(e,t="",n={}){let o=B(t).split("."),i=o.shift();if(!i)return P(e,n);if(y(e)||Array.isArray(e)){let t=Object.keys(e).find(e=>B(e)===i)||"";return $(P(e[t],n),o.join("."),n)}}function E(e,t=!0){return Array.isArray(e)&&(t||0!==e.length)}function L(e){return e instanceof Date}function D(e){return f(e)&&!isNaN(e)}function T(e=""){return f(e)&&1===e.length&&!!e.match(/\S| /)}function M(){return new Intl.Collator(void 0,{numeric:!0}).compare}function A(e,t){if(t){t.lastIndex=0;let n=t.test(e);return t.lastIndex=0,n}return!1}function z(...e){return x(...e)}function V(e,t){let n=0;for(;t-1-n>=0&&"\\"===e[t-1-n];)n++;return n%2==1}function _(e){return e.replace(/[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function N(e){if(!e)return e;let t="",n="",o=0;for(;o<e.length;){let i=e[o];if("/"===i&&"*"===e[o+1]){let t=e.indexOf("*/",o+2);o=-1===t?e.length:t+2}else if('"'===i||"'"===i){t+=_(n),n="";let r=o+1;for(;r<e.length&&(e[r]!==i||V(e,r));)r++;t+=e.slice(o,Math.min(r+1,e.length)),o=r+1}else n+=i,o++}return(t+_(n)).trim()}function R(e={},t=""){return Object.entries(e).reduce((e,[n,o])=>{let i=t?`${t}.${n}`:n;return y(o)?e=e.concat(R(o,i)):e.push(i),e},[])}var F=/[\xC0-\xFF\u0100-\u017E]/,j={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};function K(e){if(e&&F.test(e))for(let t in j)e=e.replace(j[t],t);return e}function H(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 q(e,t,n=1,o,i=1){let r=u(e,t,o,n),a=n;return(d(e)||d(t))&&(a=1===i?n:i),a*r}function G(e){return O(e,!1)?e[0].toUpperCase()+e.slice(1):e}function U(e){return O(e)?e.replace(/(_)/g,"-").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():e}function W(e){if("auto"===e)return 0;if("number"==typeof e)return e;let t=Number(e.replace(",",".").replace(/[^\d.]/g,""));return Number.isNaN(t)||/ms\s*$/.test(e)?t:1e3*t}function Y(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 X(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)?X(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 X(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 Z={filter:function(e,t,n,o,i){var r=[];if(!e)return r;var a,l=Y(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=Y(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=K(t.toString()).toLocaleLowerCase(n);return K(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=K(t.toString()).toLocaleLowerCase(n);return-1!==K(e.toString()).toLocaleLowerCase(n).indexOf(o)},notContains:function(e,t,n){if(null==t||""===t)return!0;if(null==e)return!1;var o=K(t.toString()).toLocaleLowerCase(n);return-1===K(e.toString()).toLocaleLowerCase(n).indexOf(o)},endsWith:function(e,t,n){if(null==t||""===t)return!0;if(null==e)return!1;var o=K(t.toString()).toLocaleLowerCase(n),i=K(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():K(e.toString()).toLocaleLowerCase(n)==K(t.toString()).toLocaleLowerCase(n))},notEquals:function(e,t,n){return null!=t&&""!==t&&(null==e||(e.getTime&&t.getTime?e.getTime()!==t.getTime():K(e.toString()).toLocaleLowerCase(n)!=K(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&&("string"==typeof e&&(e=new Date(e)),"string"==typeof t&&(t=new Date(t)),e.toDateString()===t.toDateString())},dateIsNot:function(e,t){return null==t||null!=e&&("string"==typeof e&&(e=new Date(e)),"string"==typeof t&&(t=new Date(t)),e.toDateString()!==t.toDateString())},dateBefore:function(e,t){return null==t||null!=e&&("string"==typeof e&&(e=new Date(e)),"string"==typeof t&&(t=new Date(t)),e.getTime()<t.getTime())},dateAfter:function(e,t){return null==t||null!=e&&("string"==typeof e&&(e=new Date(e)),"string"==typeof t&&(t=new Date(t)),e.getTime()>t.getTime())}},register:function(e,t){this.filters[e]=t}},J={_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 Q(){let e=new Map,t={on(n,o){let i=e.get(n);return i?i.push(o):i=[o],e.set(n,i),t},off(n,o){let i=e.get(n);if(i){let e=i.indexOf(o);-1!==e&&i.splice(e,1)}return t},emit(t,...n){let o=e.get(t);o&&o.forEach(e=>{e(n[0])})},clear(){e.clear()}};return t}function ee(e,t){return!!e&&(e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className))}function te(e,t){if(e&&t){let n=t=>{ee(e,t)||(e.classList?e.classList.add(t):e.className+=" "+t)};[t].flat().filter(Boolean).forEach(e=>e.split(" ").forEach(n))}}function ne(){return window.innerWidth-document.documentElement.offsetWidth}function oe(e){if(e){let t=document.createElement("a");if(void 0!==t.download){let{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 ie(e,t){let n=new Blob([e],{type:"application/csv;charset=utf-8;"}),o=window.navigator;if(o.msSaveOrOpenBlob)o.msSaveOrOpenBlob(n,t+".csv");else{let o=URL.createObjectURL(n),i=oe({name:t+".csv",src:o});setTimeout(()=>URL.revokeObjectURL(o),4e4),i||(e="data:text/csv;charset=utf-8,"+e,window.open(encodeURI(e)))}}function re(e,t){if(e&&t){let 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 ae(e){if("undefined"==typeof document)return null;for(let t of Array.from(document.styleSheets||[]))try{for(let n of Array.from(t.cssRules||[])){let t=n.style;if(t)for(let n of Array.from(t))if(e.lastIndex=0,e.test(n))return{name:n,value:t.getPropertyValue(n).trim()}}}catch(e){continue}return null}function le(e){let t={width:0,height:0};if(e){let[n,o]=[e.style.visibility,e.style.display],i=e.getBoundingClientRect();e.style.visibility="hidden",e.style.display="block",t.width=i.width||e.offsetWidth,t.height=i.height||e.offsetHeight,e.style.display=o,e.style.visibility=n}return t}function se(){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 ce(e){return e?Math.abs(e.scrollLeft):0}function de(){let e=document.documentElement;return(window.pageXOffset||ce(e))-(e.clientLeft||0)}function ue(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}function pe(e){return!!e&&"rtl"===getComputedStyle(e).direction}function he(e,t,n=!0){var o,i,r,a;if(e){let l,s,c=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:le(e),d=c.height,u=c.width,p=t.offsetHeight,h=t.offsetWidth,m=t.getBoundingClientRect(),f=ue(),b=de(),g=se(),v="top";m.top+p+d>g.height?(l=m.top+f-d,v="bottom",l<0&&(l=f)):l=p+m.top+f,s=m.left+u>g.width?Math.max(0,m.left+b+h-u):m.left+b,pe(e)?e.style.insetInlineEnd=s+"px":e.style.insetInlineStart=s+"px",e.style.top=l+"px",e.style.transformOrigin=v,n&&(e.style.marginTop="bottom"===v?`calc(${null!=(i=null==(o=ae(/-anchor-gutter$/))?void 0:o.value)?i:"2px"} * -1)`:null!=(a=null==(r=ae(/-anchor-gutter$/))?void 0:r.value)?a:"")}}var me=/expression\s*\(|url\s*\(\s*['"]?\s*(?:javascript|vbscript):|@import\s+['"]?\s*(?:javascript|vbscript|data):/i,fe=/url\s*\(\s*['"]?\s*(data:[^'")]*)/gi,be=new Set(["href","src","xlink:href","action","formaction"]),ge=new Set(["http","https","mailto","tel","sms","ftp","ftps","blob"]),ve=/^data:image\/(?:png|gif|jpeg|jpg|webp|bmp|avif);base64,[a-z0-9+/=\s]+$/i;function ye(e){if("string"!=typeof e)return!1;if(me.test(e))return!0;let t;for(fe.lastIndex=0;t=fe.exec(e);)if(!ve.test(t[1].trim()))return!0;return!1}function ke(e,t){return"string"==typeof t&&be.has(e.toLowerCase())&&!function(e,t){var n,o;let i=function(e){let t="";for(let n of e){let e=n.charCodeAt(0);e<=31||127===e||/\s/.test(n)||(t+=n)}return t}(e),r=t.toLowerCase();if(i.startsWith("#")||i.startsWith("/")||i.startsWith("./")||i.startsWith("../")||i.startsWith("?"))return!0;let a=null==(o=null==(n=i.match(/^([a-z][a-z0-9+.-]*):/i))?void 0:n[1])?void 0:o.toLowerCase();return!a||("data"===a?("src"===r||"xlink:href"===r)&&ve.test(e.trim()):ge.has(a))}(t,e)}function we(e,t){return"srcdoc"===e.toLowerCase()&&"string"==typeof t&&/<\s*script\b|on\w+\s*=|javascript:|data:text\/html/i.test(t)}var xe={hasUnsafeCssValue:ye,isUnsafeUrlAttribute:ke,isUnsafeHtmlAttribute:we};function Ce(e,t,n={}){n.clear&&(e.style.cssText=""),t.forEach(t=>{let n=t.indexOf(":");if(n<0)return;let o=t.slice(0,n).trim(),i=t.slice(n+1).trim();if(!o||ye(i))return;let r="";/!\s*important$/i.test(i)&&(i=i.replace(/!\s*important$/i,"").trim(),r="important"),e.style.setProperty(o,i,r)})}function Se(e,t){let n=0;for(;t-1-n>=0&&"\\"===e[t-1-n];)n++;return n%2==1}function Ie(e,t,n={}){if("string"==typeof t){let o=function(e){let t=[],n=0,o="",i=0;for(let r=0;r<e.length;r++){let a=e[r];o?a===o&&!Se(e,r)&&(o=""):"'"===a||'"'===a?o=a:"("===a?i++:")"===a?i=Math.max(0,i-1):";"===a&&0===i&&(t.push(e.slice(n,r)),n=r+1)}return t.push(e.slice(n)),t}(t);return void Ce(e,o,n)}n.clear&&(e.style.cssText=""),Object.entries(t).forEach(([t,n])=>{if(null==n||ye(n))return;let o=String(n),i="";/!\s*important$/i.test(o)&&(o=o.replace(/!\s*important$/i,"").trim(),i="important"),e.style.setProperty(function(e){return e.startsWith("--")?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}(t),o,i)})}var Pe,Oe,Be={applyInlineStyleSafely:Ie,applyStyleDeclarationsSafely:Ce};function $e(e,t){e&&("string"==typeof t?Ie(e,t,{clear:!0}):Ie(e,t||{}))}function Ee(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 Le(e,t,n=!0,o=void 0){var i;if(e){let r,a,l=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:le(e),s=t.offsetHeight,c=t.getBoundingClientRect(),d=se(),u=null!=o?o:"top";if(!o&&c.top+s+l.height>d.height?(r=-1*l.height,u="bottom",c.top+r<0&&(r=-1*c.top)):r=s,a=l.width>d.width?-1*c.left:c.left+l.width>d.width?-1*(c.left+l.width-d.width):0,e.style.top=r+"px",e.style.insetInlineStart=a+"px",e.style.transformOrigin=u,n){let t=null==(i=ae(/-anchor-gutter$/))?void 0:i.value;e.style.marginTop="bottom"===u?`calc(${null!=t?t:"2px"} * -1)`:null!=t?t:""}}}function De(e){if(e){let t=e.parentNode;return t&&t instanceof ShadowRoot&&t.host&&(t=t.host),t}return null}function Te(e){return!(null==e||!e.nodeName||!De(e))}function Me(e){return"undefined"!=typeof Element?e instanceof Element:null!==e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName}function Ae(e){var t;if(Me(e))return e;if(!e||"object"!=typeof e)return;let n=e;if("current"in e)n=e.current,n=null!=(t=Ae(null==n?void 0:n.elementRef))?t:n;else if("value"in e)n=e.value;else if("nativeElement"in e)n=e.nativeElement;else if("el"in e){let t=e.el;n=t&&"object"==typeof t&&"nativeElement"in t?t.nativeElement:t}else if("elementRef"in e)return Ae(e.elementRef);return n=P(n),Me(n)?n:void 0}function ze(e,t){var n,o,i;if(e)switch(e){case"document":return document;case"window":return window;case"body":return document.body;case"@next":return null==t?void 0:t.nextElementSibling;case"@prev":return null==t?void 0:t.previousElementSibling;case"@first":return null==t?void 0:t.firstElementChild;case"@last":return null==t?void 0:t.lastElementChild;case"@child":return null==(n=null==t?void 0:t.children)?void 0:n[0];case"@parent":return null==t?void 0:t.parentElement;case"@grandparent":return null==(o=null==t?void 0:t.parentElement)?void 0:o.parentElement;default:{if("string"==typeof e){let n=e.match(/^@child\[(\d+)]/);return n?(null==(i=null==t?void 0:t.children)?void 0:i[parseInt(n[1],10)])||null:document.querySelector(e)||null}let n=(e=>"function"==typeof e&&"call"in e&&"apply"in e)(e)?e():e,o=Ae(n);return Te(o)?o:9===(null==n?void 0:n.nodeType)?n:void 0}}}function Ve(e,t,n){if("function"!=typeof n&&("object"!=typeof n||null===n||!("handleEvent"in n)))return;let o=e._pListeners||(e._pListeners=[]),i=!1;for(let r=o.length-1;r>=0;r--)o[r][0]===t&&(o[r][1]===n?i=!0:(e.removeEventListener(t,o[r][1]),o.splice(r,1)));i||(e.addEventListener(t,n),o.push([t,n]))}function _e(e){if(e){let t=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.borderRightWidth)}{if(null!=Oe)return Oe;let e=document.createElement("div");$e(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),Oe=t,t}}function Ne(){if(window.getSelection){let e=window.getSelection()||{};e.empty?e.empty():e.removeAllRanges&&e.rangeCount&&e.rangeCount>0&&e.getRangeAt&&e.getRangeAt(0).getClientRects().length>0&&e.removeAllRanges()}}function Re(e,t={}){if(Me(e)){let n=null==e?void 0:e.$attrs,o=(e,t)=>{let i=null!=n&&n[e]?[n[e]]:[];return[t].flat().reduce((t,n)=>{if(null!=n){let i=typeof n;if("string"===i||"number"===i)t.push(n);else if("object"===i){let i=Array.isArray(n)?o(e,n):Object.entries(n).map(([t,n])=>"style"!==e||!n&&0!==n?n?t:void 0:`${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${n}`);t=i.length?t.concat(i.filter(e=>!!e)):t}}return t},i)},i=t=>{let n=o("style",t);Ce(e,n)},r=e;Object.entries(t).forEach(([t,n])=>{if(null!=n){let a=t.match(/^on(.+)/);if(a)Ve(e,a[1].toLowerCase(),n);else if("p-bind"===t||"pBind"===t)Re(e,n);else if("style"===t)i(n),r.$attrs=r.$attrs||{},r.$attrs[t]=e.style.cssText;else{if(ke(t,n)||we(t,n))return;n="class"===t?[...new Set(o("class",n))].join(" ").trim():n,r.$attrs=r.$attrs||{},r.$attrs[t]=n,e.setAttribute(t,n)}}})}}function Fe(e,t={},...n){if(e){let o=document.createElement(e);return Re(o,t),o.append(...n),o}}function je(e){return String(e).replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function Ke(e,t={}){return e?`<style${Object.entries(t).reduce((e,[t,n])=>e+` ${t}="${je(n)}"`,"")}>${e}</style>`:""}function He(e,t={},n){let o=Fe("style",t,e);return null==n||n.appendChild(o),o}function qe(e,t){if(!e)return()=>{};e.style.opacity="0";let n,o,i=+new Date,r=0,a=function(){r+=((new Date).getTime()-i)/t,e.style.opacity=`${r}`,i=+new Date,r<1&&("requestAnimationFrame"in window?n=requestAnimationFrame(a):o=setTimeout(a,16))};return a(),()=>{void 0!==n&&cancelAnimationFrame(n),void 0!==o&&clearTimeout(o)}}function Ge(e,t){return Me(e)?Array.from(e.querySelectorAll(t)):[]}function Ue(e,t){return Me(e)?e.matches(t)?e:e.querySelector(t):null}function We(e,t){e&&document.activeElement!==e&&e.focus(t)}function Ye(e,t){if(Me(e)){let n=e.getAttribute(t);return null===n||""===n.trim()||isNaN(n)?"true"===n||"false"===n?"true"===n:n:+n}}function Xe(){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 Ze=null;function Je(e,t=""){let n=Ge(e,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [href]:not([tabindex = "-1"]):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){let t=getComputedStyle(e);"none"!=t.display&&"hidden"!=t.visibility&&o.push(e)}return o}function Qe(e,t){let n=Je(e,t);return n.length>0?n[0]:null}function et(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 tt(e){if(e){let[t,n]=[e.style.visibility,e.style.display];e.style.visibility="hidden",e.style.display="block";let o=e.offsetHeight;return e.style.display=n,e.style.visibility=t,o}return 0}function nt(e){if(e){let[t,n]=[e.style.visibility,e.style.display];e.style.visibility="hidden",e.style.display="block";let o=e.offsetWidth;return e.style.display=n,e.style.visibility=t,o}return 0}function ot(e){var t;if(e){let n=null==(t=De(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 it(e,t){let n=Je(e,t);return n.length>0?n[n.length-1]:null}function rt(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}return null}function at(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||ce(document.documentElement)||ce(document.body)||0)}}return{top:"auto",left:"auto"}}function lt(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 st(e,t=[]){let n=De(e);return null===n?t:st(n,t.concat([n]))}function ct(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}return null}function dt(e){let t=[];if(e){let n=st(e),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=Ue(e,n);o&&i(o)&&t.push(o)}}9!==e.nodeType&&i(e)&&t.push(e)}}return t}function ut(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():void 0}function pt(){return navigator.userAgent}function ht(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 mt(e){if(e){let t=getComputedStyle(e);return parseFloat(t.getPropertyValue("animation-duration")||"0")>0}return!1}function ft(e,t,n){let o=e[t];"function"==typeof o&&o.apply(e,null!=n?n:[])}function bt(){return/(android)/i.test(navigator.userAgent)}function gt(e,t,n){return!!Me(e)&&Ye(e,t)===n}function vt(e){if(e){let 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 yt(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function kt(e,t=""){return!!Me(e)&&e.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [href]: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 wt(e){return!(!e||null==e.offsetParent)}function xt(){return!("undefined"==typeof window||!window.matchMedia)&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function Ct(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function St(e,t){var n,o;if(e){let i=e.parentElement,r=at(i),a=se(),l=e.offsetParent?e.offsetWidth:nt(e),s=e.offsetParent?e.offsetHeight:tt(e),c=Ee(null==(n=null==i?void 0:i.children)?void 0:n[0]),d=lt(null==(o=null==i?void 0:i.children)?void 0:o[0]),u="",p="";r.left+c+l>a.width-_e()?r.left<l?t%2==1?u=r.left?"-"+r.left+"px":"100%":t%2==0&&(u=a.width-l-_e()+"px"):u="-100%":u="100%",p=e.getBoundingClientRect().top+d+s>a.height?`-${s-d}px`:"0px",e.style.top=p,e.style.insetInlineStart=u}}function It(e,t="",n){if(Me(e)&&null!=n){let o=t.toLowerCase();if(/^on[a-z]/.test(o))return void Ve(e,o.slice(2),n);if("style"===o)return void("string"==typeof n?Ie(e,n,{clear:!0}):"object"==typeof n&&Ie(e,n));if(ke(t,n)||we(t,n))return;e.setAttribute(t,n)}}function Pt(e,t,n=null,o){t&&null!=e&&e.style&&e.style.setProperty(t,n,o)}function Ot(...e){let t=[];for(let n=0;n<e.length;n++){let o=e[n];if(!o)continue;let i=typeof o;if("string"===i||"number"===i)t.push(o);else if("object"===i){let e=Array.isArray(o)?[Ot(...o)]:Object.entries(o).map(([e,t])=>t?e:void 0);t=e.length?t.concat(e.filter(e=>!!e)):t}}return t.join(" ").trim()}var Bt=Object.defineProperty,$t=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,Dt=(e,t,n)=>t in e?Bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tt=(e,t)=>{for(var n in t||(t={}))Et.call(t,n)&&Dt(e,n,t[n]);if($t)for(var n of $t(t))Lt.call(t,n)&&Dt(e,n,t[n]);return e};function Mt(...e){let t=[];for(let n=0;n<e.length;n++){let o=e[n];if(!o)continue;let i=typeof o;if("string"===i||"number"===i)t.push(o);else if("object"===i){let e=Array.isArray(o)?[Mt(...o)]:Object.entries(o).map(([e,t])=>t?e:void 0);t=e.length?t.concat(e.filter(e=>!!e)):t}}return t.join(" ").trim()}function At(e){return"function"==typeof e&&"call"in e&&"apply"in e}function zt({skipUndefined:e=!1},...t){return null==t?void 0:t.reduce((t,n={})=>{for(let o in n){let i=n[o];if(!e||void 0!==i)if("style"===o)t.style=Tt(Tt({},t.style),n.style);else if("class"===o||"className"===o)t[o]=Mt(t[o],n[o]);else if(At(i)){let e=t[o];t[o]=e?(...t)=>{e(...t),i(...t)}:i}else t[o]=i}return t},{})}var Vt={};function _t(e="pui_id_"){return Object.hasOwn(Vt,e)||(Vt[e]=0),Vt[e]++,`${e}${Vt[e]}`}var Nt=function(){let e=[],t=(t,n,o=0)=>[...e].reverse().find(e=>!!n||e.key===t)||{key:t,value:o},n=e=>e&&parseInt(e.style.zIndex,10)||0;return{get:n,set:(n,o,i)=>{o&&(o.style.zIndex=String(((n,o,i=999)=>{let r=t(n,o,i),a=r.value+(r.key===n?0:i)+1;return e.push({key:n,value:a}),a})(n,!0,i)))},clear:t=>{t&&((t=>{e=e.filter(e=>e.value!==t)})(n(t)),t.style.zIndex="")},getCurrent:e=>((e,n)=>t(e,n).value)(e,!1)}}(),Rt=Object.defineProperty,Ft=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,Kt=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,Gt=(e,t,n)=>t in e?Rt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ut=(e,t)=>{for(var n in t||(t={}))Ht.call(t,n)&&Gt(e,n,t[n]);if(Kt)for(var n of Kt(t))qt.call(t,n)&&Gt(e,n,t[n]);return e},Wt=(e,t)=>Ft(e,jt(t)),Yt=(e,t)=>{var n={};for(var o in e)Ht.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&Kt)for(var o of Kt(e))t.indexOf(o)<0&&qt.call(e,o)&&(n[o]=e[o]);return n};var Xt=Q(),Zt=/{([^}]*)}/g,Jt=/(\d+\s+[+*/-]\s+\d+)/g,Qt=/var\([^)]+\)/g;function en(e){return O(e)?e.replace(/[A-Z]/g,(e,t)=>0===t?e:"."+e.toLowerCase()).toLowerCase():e}function tn(e){return y(e)&&Object.prototype.hasOwnProperty.call(e,"$value")&&Object.prototype.hasOwnProperty.call(e,"$type")?e.$value:e}function nn(e){return e.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function on(e="",t=""){return nn(`${O(e,!1)&&O(t,!1)?`${e}-`:e}${t}`)}function rn(e="",t=""){return`--${on(e,t)}`}function an(e=""){return((e.match(/{/g)||[]).length+(e.match(/}/g)||[]).length)%2!=0}function ln(e,t="",n="",o=[],i){if(O(e)){let t=e.trim();if(an(t))return;if(A(t,Zt)){let e=t.replaceAll(Zt,e=>{let t=e.replace(/{|}/g,"").split(".").filter(e=>!o.some(t=>A(e,t)));return`var(${rn(n,U(t.join("-")))}${f(i)?`, ${i}`:""})`});return A(e.replace(Qt,"0"),Jt)?`calc(${e})`:e}return t}if(D(e))return e}function sn(e,t,n){O(t,!1)&&e.push(`${t}:${n};`)}function cn(e,t){return e?`${e}{${t}}`:""}function dn(e,t){if(-1===e.indexOf("dt("))return e;function n(e,t){let n=[],i=0,r="",a=null,l=0;for(;i<=e.length;){let s=e[i];if(('"'===s||"'"===s||"`"===s)&&"\\"!==e[i-1]&&(a=a===s?null:s),!a&&("("===s&&l++,")"===s&&l--,(","===s||i===e.length)&&0===l)){let e=r.trim();e.startsWith("dt(")?n.push(dn(e,t)):n.push(o(e)),r="",i++;continue}void 0!==s&&(r+=s),i++}return n}function o(e){let t=e[0];if(('"'===t||"'"===t||"`"===t)&&e[e.length-1]===t)return e.slice(1,-1);let n=Number(e);return isNaN(n)?e:n}let i=[],r=[];for(let t=0;t<e.length;t++)if("d"===e[t]&&"dt("===e.slice(t,t+3))r.push(t),t+=2;else if(")"===e[t]&&r.length>0){let e=r.pop();0===r.length&&i.push([e,t])}if(!i.length)return e;for(let o=i.length-1;o>=0;o--){let[r,a]=i[o],l=t(...n(e.slice(r+3,a),t));e=e.slice(0,r)+l+e.slice(a+1)}return e}function un(e){return 4===e.length?`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`:e}function pn(e){let t=parseInt(e.substring(1),16);return{r:t>>16&255,g:t>>8&255,b:255&t}}var hn=/^#([0-9a-f]{3}|[0-9a-f]{6})$/i,mn=(e,t,n)=>{if(!hn.test(e)||!hn.test(t))return t;e=un(e),t=un(t);let o=(n/100*2-1+1)/2,i=1-o,r=pn(e),a=pn(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))},fn=(e,t)=>mn("#000000",e,t),bn=(e,t)=>mn("#ffffff",e,t),gn=[50,100,200,300,400,500,600,700,800,900,950],vn=(e,t,n,o,i)=>{if("string"!=typeof e)return null!=e?e:Bn.getTokenValue(t);if(Zt.lastIndex=0,!Zt.test(e))return e;let r=t.slice(0,t.indexOf(".")),a=e.replace(Zt,e=>{let t=e.slice(1,-1),n=t.indexOf(".");if((-1===n?t:t.slice(0,n))!==r)return e;let o=Bn.getTokenValue(t);return null==o?e:`${o}`});return ln(a,void 0,n,[o],i)},yn=(e,t,n,o)=>{var i,r,a,l;let s=((e,t)=>{let n=e.split("."),o="";for(let e=0;e<n.length;e++){let i=en(n[e]);t.lastIndex=0,!t.test(i)&&(o=o?`${o}.${i}`:i)}return o})(e,n),c=Bn.tokens,d=c.__strictCache;d||(d=new Map,Object.defineProperty(c,"__strictCache",{value:d,enumerable:!1,configurable:!0}));let u=null==o||"object"!=typeof o,p=u&&null!=o?`${t}|${s}|${o}`:`${t}|${s}`,h=u?d.get(p):void 0;if(!(void 0!==h||u&&d.has(p))){let e=null==(i=c[s])?void 0:i.paths,m=null==e?void 0:e.find(e=>"none"===e.scheme),f=null!=(r=null==e?void 0:e.find(e=>"light"===e.scheme))?r:m,b=null!=(a=null==e?void 0:e.find(e=>"dark"===e.scheme))?a:m;if(f&&b&&f!==b){let e=vn(f.value,s,t,n,o),i=vn(b.value,s,t,n,o);h=e===i?e:`light-dark(${e},${i})`}else h=vn(null==(l=null!=f?f:b)?void 0:l.value,s,t,n,o);u&&d.set(p,h)}return Bn.hasScopedTokenPath(s)?ln(`{${s}}`,void 0,t,[n],h):h},kn=e=>{var t,n,o;let i=Bn.getTheme(),r=`${null!=(t=xn(i,e,void 0,"variable"))?t:""}`;return{name:null!=(o=null==(n=r.match(/--[\w-]+/g))?void 0:n[0])?o:"",variable:r,value:xn(i,e,void 0,"value")}},wn=(e,t,n)=>xn(Bn.getTheme(),e,t,n),xn=(e={},t,n,o)=>{var i,r,a,l,s,c,u,p,h,m;if(!t)return"";let f=null==(i=Bn.defaults)?void 0:i.variable,b=null!=(s=null==(r=null==e?void 0:e.options)?void 0:r.prefix)?s:null==(l=null==(a=Bn.defaults)?void 0:a.options)?void 0:l.prefix,g=null==(m=null!=(h=null==(c=null==e?void 0:e.options)?void 0:c.cssVariables)?h:null==(p=null==(u=Bn.defaults)?void 0:u.options)?void 0:p.cssVariables)||m;return"value"===o?Bn.getTokenValue(t):d(o)&&!g?yn(t,b,f.excludedKeyRegex,n):ln(A(t,Zt)?t:`{${t}}`,void 0,b,[f.excludedKeyRegex],n)},Cn=(...e)=>{var t;return`${null!=(t=wn(...e))?t:""}`};function Sn(e,...t){if(e instanceof Array){let n=e.reduce((e,n,o)=>{var i;return e+n+(null!=(i=P(t[o],{dt:wn}))?i:"")},"");return dn(n,Cn)}return P(e,{dt:wn})}var In=(e={})=>{let{preset:t,options:n}=e;return{preset(e){return t=t?z(t,e):e,this},options(e){return n=n?Ut(Ut({},n),e):e,this},primaryPalette(e){let{semantic:n}=t||{};return t=Wt(Ut({},t),{semantic:Wt(Ut({},n),{primary:e})}),this},surfacePalette(e){var n,o,i;let r=null!=(n=null==t?void 0:t.semantic)?n:{},a=e&&Object.hasOwn(e,"light")?e.light:e,l=e&&Object.hasOwn(e,"dark")?e.dark:e,s={colorScheme:{light:Ut(Ut({},null==(o=r.colorScheme)?void 0:o.light),!!a&&{surface:a}),dark:Ut(Ut({},null==(i=r.colorScheme)?void 0:i.dark),!!l&&{surface:l})}};return t=Wt(Ut({},t),{semantic:Ut(Ut({},r),s)}),this},define:({useDefaultPreset:e=!1,useDefaultOptions:o=!1}={})=>({preset:e?Bn.getPreset():t,options:o?Bn.getOptions():n}),update({mergePresets:e=!0,mergeOptions:o=!0}={}){let i={preset:e?z(Bn.getPreset(),null!=t?t:{}):t,options:o?Ut(Ut({},Bn.getOptions()),n):n};return Bn.setTheme(i),i},use(e){let t=this.define(e);return Bn.setTheme(t),t}}};function Pn(e,t={}){let n=Bn.defaults.variable,{prefix:o=n.prefix,selector:i=n.selector,excludedKeyRegex:r=n.excludedKeyRegex}=t,a=[],l=[],s=[{node:e,path:o}];for(;s.length;){let{node:e,path:t}=s.pop();for(let n in e){let i=tn(e[n]),c=A(n,r)?on(t):on(t,U(n));if(y(i))s.push({node:i,path:c});else{let e=rn(c),t=ln(i,c,o,[r]);sn(l,e,null==t?t:`${t}`);let n=c;o&&n.startsWith(o+"-")&&(n=n.slice(o.length+1)),a.push(n.replace(/-/g,"."))}}}let c=l.join("");return{value:l,tokens:a,declarations:c,css:cn(i,c)}}var On={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=>({type:"custom",selector:e,matched:!0})}},resolve(e){let 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:(e,t)=>Pn(e,{prefix:null==t?void 0:t.prefix}),getCommon({name:e="",theme:t={},set:n,defaults:o}){var i,r,a,l,s,c,d;let u,p,h,m,b,g,v,{preset:y,options:k}=t;if(f(y)){let{primitive:t,semantic:w,extend:x}=y,C=w||{},{colorScheme:S}=C,I=Yt(C,["colorScheme"]),O=x||{},{colorScheme:B}=O,$=Yt(O,["colorScheme"]),E=S||{},{dark:L}=E,D=Yt(E,["dark"]),T=B||{},{dark:M}=T,A=Yt(T,["dark"]),z=f(t)?this._toVariables({primitive:t},k):{},V=f(I)?this._toVariables({semantic:I},k):{},_=f(D)?this._toVariables({light:D},k):{},N=f(L)?this._toVariables({dark:L},k):{},R=f($)?this._toVariables({semantic:$},k):{},F=f(A)?this._toVariables({light:A},k):{},j=f(M)?this._toVariables({dark:M},k):{},[K,H]=[null!=(i=z.declarations)?i:"",z.tokens],[q,G]=[null!=(r=V.declarations)?r:"",V.tokens||[]],[U,W]=[null!=(a=_.declarations)?a:"",_.tokens||[]],[Y,X]=[null!=(l=N.declarations)?l:"",N.tokens||[]],[Z,J]=[null!=(s=R.declarations)?s:"",R.tokens||[]],[Q,ee]=[null!=(c=F.declarations)?c:"",F.tokens||[]],[te,ne]=[null!=(d=j.declarations)?d:"",j.tokens||[]];u=this.transformCSS(e,K,"light","variable",k,n,o),p=H,h=`${this.transformCSS(e,`${q}${U}`,"light","variable",k,n,o)}${this.transformCSS(e,`${Y}`,"dark","variable",k,n,o)}`,m=[...new Set([...G,...W,...X])],b=`${this.transformCSS(e,`${Z}${Q}color-scheme:light`,"light","variable",k,n,o)}${this.transformCSS(e,`${te}color-scheme:dark`,"dark","variable",k,n,o)}`,g=[...new Set([...J,...ee,...ne])],v=P(y.css,{dt:wn})}return{primitive:{css:u,tokens:p},semantic:{css:h,tokens:m},global:{css:b,tokens:g},style:v}},getPreset({name:e="",preset:t={},options:n,set:o,defaults:i,selector:r,isScopedTokenPaths:a}){var l,s,c,d;let u,p,h;if(f(t)&&(null==(l=null==n?void 0:n.cssVariables)||l||a)){let a=e.replace("-directive",""),l=t,{colorScheme:m,extend:b,css:g}=l,v=Yt(l,["colorScheme","extend","css"]),y=b||{},{colorScheme:k}=y,w=Yt(y,["colorScheme"]),x=m||{},{dark:C}=x,S=Yt(x,["dark"]),I=k||{},{dark:O}=I,B=Yt(I,["dark"]),$=f(v)?this._toVariables({[a]:Ut(Ut({},v),w)},n):{},E=f(S)?this._toVariables({[a]:Ut(Ut({},S),B)},n):{},L=f(C)?this._toVariables({[a]:Ut(Ut({},C),O)},n):{},[D,T]=[null!=(s=$.declarations)?s:"",$.tokens||[]],[M,A]=[null!=(c=E.declarations)?c:"",E.tokens||[]],[z,V]=[null!=(d=L.declarations)?d:"",L.tokens||[]];u=`${this.transformCSS(a,`${D}${M}`,"light","variable",n,o,i,r)}${this.transformCSS(a,z,"dark","variable",n,o,i,r)}`,p=[...new Set([...T,...A,...V])],h=P(g,{dt:wn})}return{css:u,tokens:p,style:h}},getScopedSelector(e,t){if(null!=t&&t.scoped&&e)return`[data-styled="${e}"]`},getPresetC({name:e="",theme:t={},params:n,set:o,defaults:i}){var r;let{preset:a,options:l}=t,s=null==(r=null==a?void 0:a.components)?void 0:r[e],c=this.getScopedSelector(e,l);return this.getPreset({name:e,preset:s,options:l,params:n,set:o,defaults:i,selector:c})},getPresetD({name:e="",theme:t={},params:n,set:o,defaults:i}){var r,a;let l=e.replace("-directive",""),{preset:s,options:c}=t,d=(null==(r=null==s?void 0:s.components)?void 0:r[l])||(null==(a=null==s?void 0:s.directives)?void 0:a[l]),u=this.getScopedSelector(l,c);return this.getPreset({name:l,preset:d,options:c,params:n,set:o,defaults:i,selector:u})},applyDarkColorScheme(e){let t=e.darkModeSelector;return!("none"===t||!1===t)},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){let{cssLayer:i}=t;return i?`@layer ${P(i.order||i.name||"primeui",n)}`:""},getCommonStyleSheet({name:e="",theme:t={},params:n,props:o={},set:i,defaults:r}){let a=this.getCommon({name:e,theme:t,params:n,set:i,defaults:r}),l=Object.entries(o).reduce((e,[t,n])=>(e.push(`${t}="${je(n)}"`),e),[]).join(" ");return Object.entries(a||{}).reduce((e,[t,n])=>{if(y(n)&&Object.hasOwn(n,"css")){let o=N(n.css);e.push(`<style type="text/css" data-primevue-style-id="${`${t}-variables`}" ${l}>${o}</style>`)}return e},[]).join("")},getStyleSheet({name:e="",theme:t={},params:n,props:o={},set:i,defaults:r}){var a;let l={name:e,theme:t,params:n,set:i,defaults:r},s=null==(a=e.includes("-directive")?this.getPresetD(l):this.getPresetC(l))?void 0:a.css,c=Object.entries(o).reduce((e,[t,n])=>(e.push(`${t}="${je(n)}"`),e),[]).join(" ");return s?`<style type="text/css" data-primevue-style-id="${e}-variables" ${c}>${N(s)}</style>`:""},createTokens(e={},t,n="",o="",i={}){let r=function(e,t,n,o){return e.replace(Zt,e=>{var i;let r=e.slice(1,-1),a=this.tokens[r];if(!a)return console.warn(`Token not found for path: ${r}`),"__UNRESOLVED__";let l=a.computed(t,n,o);if(Array.isArray(l)&&2===l.length){let e=l[0].value,t=l[1].value;return e===t?null!=e?e:"__UNRESOLVED__":`light-dark(${e},${t})`}return null!=(i=null==l?void 0:l.value)?i:"__UNRESOLVED__"})},a=function(e,t,n,o){if(-1===e.indexOf("light-dark("))return e;let i=[],l=e.length,s=0;for(;s<l;){let c=e.indexOf("light-dark(",s);if(-1===c){i.push(e.slice(s));break}i.push(e.slice(s,c));let d=1,u=c+11,p=-1;for(;u<l&&d>0;){let t=e.charCodeAt(u);40===t?d++:41===t?d--:44===t&&1===d&&-1===p&&(p=u),u++}if(0!==d||-1===p){i.push(e.slice(c));break}let h=e.slice(c+11,p).trim(),m=e.slice(p+1,u-1).trim(),f=t&&"none"!==t?t:null;if("light"===f)i.push(a.call(this,h,"light",n,o));else if("dark"===f)i.push(a.call(this,m,"dark",n,o));else{let e=r.call(this,a.call(this,h,"light",n,o),"light",n,o),t=r.call(this,a.call(this,m,"dark",n,o),"dark",n,o);i.push(e===t?e:`light-dark(${e},${t})`)}s=u}return i.join("")},l=function(e,t={},n=[]){if(n.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:e,path:this.path,paths:t,value:void 0};n.push(this.path),t.name=this.path,t.binding||(t.binding={});let o=this.value;if("string"==typeof this.value){let i=this.value.trim(),l=-1!==i.indexOf("light-dark("),s=-1!==i.indexOf("{");if(l||s){let s=l?a.call(this,i,e,t,n):i,c=-1!==s.indexOf("{")?r.call(this,s,e,t,n):s;Jt.lastIndex=0,Qt.lastIndex=0,o=Jt.test(c.replace(Qt,"0"))?`calc(${c})`:c}}return d(t.binding)&&delete t.binding,n.pop(),{colorScheme:e,path:this.path,paths:t,value:"string"==typeof o&&-1!==o.indexOf("__UNRESOLVED__")?void 0:o}},s=(e,n,o)=>{Object.entries(e).forEach(([e,r])=>{let a=A(e,t.variable.excludedKeyRegex)?n:n?`${n}.${en(e)}`:en(e),c=o?`${o}.${e}`:e;y(r)?s(r,a,c):(i[a]||(i[a]={paths:[],computed:(e,t={},n=[])=>{let o=i[a].paths;if(1===o.length){let i=o[0];return i.computed("none"!==i.scheme?i.scheme:e,t.binding,n)}if(e&&"none"!==e)for(let i=0;i<o.length;i++){let r=o[i];if(r.scheme===e)return r.computed(e,t.binding,n)}return o.map(e=>e.computed(e.scheme,t[e.scheme],n))}}),i[a].paths.push({path:c,value:r,scheme:c.includes("colorScheme.light")?"light":c.includes("colorScheme.dark")?"dark":"none",computed:l,tokens:i}))})};return s(e,n,o),i},getTokenValue(e,t,n){var o,i,r;let a=e.__cache;a||(a=new Map,Object.defineProperty(e,"__cache",{value:a,enumerable:!1,configurable:!0}));let l=a.get(t);if(void 0!==l||a.has(t))return l;let s=n.variable.excludedKeyRegex,c=t.split("."),d=[];for(let e=0;e<c.length;e++){let t=c[e];s.lastIndex=0,s.test(t.toLowerCase())||d.push(t)}let u,p=d.join("."),h=-1!==t.indexOf("colorScheme.light")?"light":-1!==t.indexOf("colorScheme.dark")?"dark":void 0,m=e[p];if(m){if(h){let e=m.computed(h);if(Array.isArray(e)){for(let t=0;t<e.length;t++)if((null==(o=e[t])?void 0:o.colorScheme)===h){u=e[t].value;break}}else u=null==e?void 0:e.value}else{let e,t,n=m.computed("light"),o=m.computed("dark");if(Array.isArray(n)){for(let t=0;t<n.length;t++)if("light"===(null==(i=n[t])?void 0:i.colorScheme)){e=n[t].value;break}}else e=null==n?void 0:n.value;if(Array.isArray(o)){for(let e=0;e<o.length;e++)if("dark"===(null==(r=o[e])?void 0:r.colorScheme)){t=o[e].value;break}}else t=null==o?void 0:o.value;u=void 0===e&&void 0===t?void 0:void 0===e?t:void 0===t||e===t?e:`light-dark(${e},${t})`}return a.set(t,u),u}a.set(t,void 0)},getSelectorRule:(e,t,n,o,i=":root,:host")=>"class"===n||"attr"===n?cn(f(t)?`${e}${t},${e} ${t}`:e,o):cn(e,cn(null!=t?t:i,o)),transformCSS(e,t,n,o,i={},r,a,l){var s,c;if(f(t)){let{cssLayer:d}=i;if("style"!==o){let e=this.getColorSchemeOption(i,a),o=null!=(c=null==(s=null==a?void 0:a.variable)?void 0:s.selector)?c:":root,:host";t="dark"===n?e.reduce((e,{type:n,selector:i})=>(f(i)&&(e+=i.includes("[CSS]")?i.replace("[CSS]",t):this.getSelectorRule(i,l,n,t,o)),e),""):cn(null!=l?l:o,t)}if(d){let n={name:"primeui"};y(d)&&(n.name=P(d.name,{name:e,type:o})),f(n.name)&&(t=cn(`@layer ${n.name}`,t),null==r||r.layerNames(n.name))}return t}return""}},Bn={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=Wt(Ut({},t),{options:Ut(Ut({},this.defaults.options),t.options)}),this._tokens=On.createTokens(this.preset,this.defaults),this.resetCaches())},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},hasScopedTokenPath(e){return this._scopedTokenPaths.has(e)},getScopedTokenPaths(){return[...this._scopedTokenPaths]},addScopedToken(e){let t=!1;return e&&Object.keys(e).length&&R(e).forEach(e=>{let n=function(e){return O(e)?e.replace(/[A-Z]/g,(e,t)=>0===t?e:"."+e.toLowerCase()).toLowerCase():e}(e);this._scopedTokenPaths.has(n)||(this._scopedTokenPaths.add(n),t=!0)}),t},clearScopedTokenPaths(){this._scopedTokenPaths.clear()},getTheme(){return this.theme},setTheme(e){this.update({theme:e}),Xt.emit("theme:change",e)},getPreset(){return this.preset},setPreset(e){this._theme=Wt(Ut({},this.theme),{preset:e}),this._tokens=On.createTokens(e,this.defaults),this.resetCaches(),Xt.emit("preset:change",e),Xt.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(e){this._theme=Wt(Ut({},this.theme),{options:e}),this.resetStyleCaches(),Xt.emit("options:change",e),Xt.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 On.getTokenValue(this.tokens,e,this.defaults)},getCommon(e="",t){return On.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 On.getPresetC(n)},getDirective(e="",t){let n={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return On.getPresetD(n)},getCustomPreset(e="",t,n,o){let i={name:e,preset:t,options:this.options,selector:n,params:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)},isScopedTokenPaths:!0};return On.getPreset(i)},getLayerOrderCSS(e=""){return On.getLayerOrder(e,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(e="",t,n="style",o){return On.transformCSS(e,t,o,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(e="",t,n={}){return On.getCommonStyleSheet({name:e,theme:this.theme,params:t,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(e,t,n={}){return On.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),Xt.emit(`theme:${t}:load`,e),this._loadingStyles.size||Xt.emit("theme:load"))}};var $n=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(f(t)){let n={name:e,css:t,attrs:this._attrs,markup:Ke(t,th