@deck9/ui 0.9.18 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{src/Button → Button}/Button.vue.d.ts +0 -0
- package/dist/{src/Button → Button}/index.d.ts +0 -0
- package/dist/{src/Checkbox → Checkbox}/Checkbox.vue.d.ts +0 -0
- package/dist/{src/Checkbox → Checkbox}/index.d.ts +0 -0
- package/dist/{src/Icon → Icon}/Icon.vue.d.ts +0 -0
- package/dist/{src/Icon → Icon}/index.d.ts +0 -0
- package/dist/{src/Icon → Icon}/registerIcons.d.ts +0 -0
- package/dist/{src/Input → Input}/Input.vue.d.ts +0 -0
- package/dist/{src/Input → Input}/index.d.ts +0 -0
- package/dist/{src/Label → Label}/Label.vue.d.ts +0 -0
- package/dist/{src/Label → Label}/index.d.ts +0 -0
- package/dist/{src/Menu → Menu}/MenuContainer.vue.d.ts +41 -28
- package/dist/{src/Menu → Menu}/MenuLink.vue.d.ts +11 -5
- package/dist/{src/Menu → Menu}/index.d.ts +0 -0
- package/dist/{src/Select → Select}/Select.vue.d.ts +0 -0
- package/dist/{src/Select → Select}/index.d.ts +0 -0
- package/dist/{src/Skeleton → Skeleton}/Skeleton.vue.d.ts +0 -0
- package/dist/{src/Skeleton → Skeleton}/index.d.ts +0 -0
- package/dist/{src/Spinner → Spinner}/Spinner.vue.d.ts +0 -0
- package/dist/{src/Spinner → Spinner}/index.d.ts +0 -0
- package/dist/{src/Switch → Switch}/Switch.vue.d.ts +32 -15
- package/dist/{src/Switch → Switch}/index.d.ts +0 -0
- package/dist/{src/Textarea → Textarea}/Textarea.vue.d.ts +0 -0
- package/dist/{src/Textarea → Textarea}/index.d.ts +0 -0
- package/dist/{src/env.d.ts → env.d.ts} +0 -0
- package/dist/{src/index.d.ts → index.d.ts} +0 -0
- package/dist/src/index.es.js +829 -2115
- package/dist/src/index.umd.js +6 -7
- package/dist/{src/types.d.ts → types.d.ts} +0 -0
- package/dist/{src/utils → utils}/useFormClasses.d.ts +0 -0
- package/dist/{src/utils → utils}/usePopper.d.ts +0 -0
- package/package.json +37 -37
package/dist/src/index.umd.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
* Font Awesome Free 6.
|
|
1
|
+
(function(x,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("vue"),require("@fortawesome/vue-fontawesome"),require("@fortawesome/fontawesome-svg-core"),require("@fortawesome/free-solid-svg-icons")):typeof define=="function"&&define.amd?define(["exports","vue","@fortawesome/vue-fontawesome","@fortawesome/fontawesome-svg-core","@fortawesome/free-solid-svg-icons"],t):(x=typeof globalThis!="undefined"?globalThis:x||self,t(x.ui={},x.Vue,x.vueFontawesome,x.fontawesomeSvgCore,x.fasIcons))})(this,function(x,t,B,N,ht){"use strict";var ta=Object.defineProperty,na=Object.defineProperties;var oa=Object.getOwnPropertyDescriptors;var ue=Object.getOwnPropertySymbols;var bt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable;var mt=(x,t,B)=>t in x?ta(x,t,{enumerable:!0,configurable:!0,writable:!0,value:B}):x[t]=B,k=(x,t)=>{for(var B in t||(t={}))bt.call(t,B)&&mt(x,B,t[B]);if(ue)for(var B of ue(t))gt.call(t,B)&&mt(x,B,t[B]);return x},U=(x,t)=>na(x,oa(t));var q=(x,t)=>{var B={};for(var N in x)bt.call(x,N)&&t.indexOf(N)<0&&(B[N]=x[N]);if(x!=null&&ue)for(var N of ue(x))t.indexOf(N)<0&>.call(x,N)&&(B[N]=x[N]);return B};function yt(e){if(e&&e.__esModule)return e;var n={__proto__:null,[Symbol.toStringTag]:"Module"};return e&&Object.keys(e).forEach(function(a){if(a!=="default"){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}}),n.default=e,Object.freeze(n)}var g=yt(ht);/*!
|
|
2
|
+
* Font Awesome Free 6.1.1 by @fontawesome - https://fontawesome.com
|
|
3
3
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
4
4
|
* Copyright 2022 Fonticons, Inc.
|
|
5
|
-
*/var qt={prefix:"fab",iconName:"facebook",icon:[512,512,[62e3],"f09a","M504 256C504 119 393 8 256 8S8 119 8 256c0 123.8 90.69 226.4 209.3 245V327.7h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.3 482.4 504 379.8 504 256z"]},Gt={prefix:"fab",iconName:"github",icon:[496,512,[],"f09b","M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3 .3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5 .3-6.2 2.3zm44.2-1.7c-2.9 .7-4.9 2.6-4.6 4.9 .3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3 .7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3 .3 2.9 2.3 3.9 1.6 1 3.6 .7 4.3-.7 .7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3 .7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3 .7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"]},Xt={prefix:"fab",iconName:"instagram",icon:[448,512,[],"f16d","M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"]},Yt={prefix:"fab",iconName:"linkedin",icon:[448,512,[],"f08c","M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"]},Jt={prefix:"fab",iconName:"twitter",icon:[512,512,[],"f099","M459.4 151.7c.325 4.548 .325 9.097 .325 13.65 0 138.7-105.6 298.6-298.6 298.6-59.45 0-114.7-17.22-161.1-47.11 8.447 .974 16.57 1.299 25.34 1.299 49.06 0 94.21-16.57 130.3-44.83-46.13-.975-84.79-31.19-98.11-72.77 6.498 .974 12.99 1.624 19.82 1.624 9.421 0 18.84-1.3 27.61-3.573-48.08-9.747-84.14-51.98-84.14-102.1v-1.299c13.97 7.797 30.21 12.67 47.43 13.32-28.26-18.84-46.78-51.01-46.78-87.39 0-19.49 5.197-37.36 14.29-52.95 51.65 63.67 129.3 105.3 216.4 109.8-1.624-7.797-2.599-15.92-2.599-24.04 0-57.83 46.78-104.9 104.9-104.9 30.21 0 57.5 12.67 76.67 33.14 23.72-4.548 46.46-13.32 66.6-25.34-7.798 24.37-24.37 44.83-46.13 57.83 21.12-2.273 41.58-8.122 60.43-16.24-14.29 20.79-32.16 39.31-52.63 54.25z"]};Te.library.add(b.faAt,b.faBold,b.faCalendar,b.faChartPie,b.faCheck,b.faCheckCircle,b.faChevronDown,b.faChevronLeft,b.faChevronRight,b.faChevronUp,b.faCircleCheck,b.faCircleNotch,b.faClipboard,b.faCog,b.faDoorOpen,b.faDotCircle,b.faEllipsis,b.faEllipsisVertical,b.faEnvelope,b.faExclamationTriangle,b.faEyeDropper,b.faFileLines,b.faFileUpload,b.faFingerprint,b.faGlobe,b.faGripHorizontal,b.faGripVertical,b.faHandPointRight,b.faHashtag,b.faInfoCircle,b.faItalic,b.faLink,b.faMedal,b.faPencilAlt,b.faPenToSquare,b.faPhone,b.faPlayCircle,b.faPlus,b.faPlusCircle,b.faReply,b.faReplyAll,b.faRobot,b.faSave,b.faShield,b.faSignature,b.faSquareCheck,b.faStar,b.faTimes,b.faTrash,b.faTrophy,b.faTurnDown,b.faUpload,b.faUser,b.faUserShield,Jt,Xt,Gt,Yt,qt);var et=[...Object.keys(Te.library.definitions.fas)].sort();const $e=[...Object.keys(Te.library.definitions.fab)].sort(),T=r.defineComponent({props:{name:{default:"user"}},setup(e){const t=e,n=r.computed(()=>$e.includes(t.name)?"fab":"fas"),o=r.computed(()=>et.includes(t.name)||$e.includes(t.name)?!0:(console.warn("could not load icon, because it is not available",t.name),!1));return(a,i)=>r.unref(o)?(r.openBlock(),r.createBlock(r.unref(P.FontAwesomeIcon),r.mergeProps({key:0,icon:[r.unref(n),e.name]},a.$attrs),null,16,["icon"])):r.createCommentVNode("",!0)}}),Qt=["aria-label","tabindex"],Zt={key:0,class:"absolute inset-0 flex items-center justify-center"},en=r.defineComponent({props:{label:null,size:{default:"medium"},color:{default:"primary"},isLoading:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},icon:null,iconPosition:{default:"right"}},emits:["onClick"],setup(e,{emit:t}){const n=e,o=r.computed(()=>{const c={"text-white bg-blue-600 border-transparent hover:bg-blue-700 active:bg-blue-700 dark:ring-blue-800 ring-offset-2 dark:ring-offset-grey-900":n.color==="primary","text-blue-600 bg-grey-100 border-transparent hover:bg-blue-100 hover:text-blue-700 active:bg-grey-100 ring-blue-300 ring-offset-2 dark:ring-offset-grey-900":n.color==="light","text-grey-50 bg-grey-700 border-transparent hover:bg-grey-800 active:bg-grey-700 ring-grey-500 dark:ring-grey-400 dark:ring-opacity-50 ring-offset-2 dark:ring-offset-grey-900":n.color==="dark"},s={"pointer-events-none opacity-75 cursor-not-allowed":n.isDisabled},l={"px-4 py-1 text-xs leading-5 mono-100 rounded-lg":n.size==="small","px-5 py-2 text-sm leading-4 font-medium rounded-lg":n.size==="medium","px-8 py-3 text-base leading-6 font-medium rounded-lg":n.size==="large"};return H(H(H({},c),s),l)}),a=r.computed(()=>{const c={"mr-2 -ml-1":["small","medium"].includes(n.size)&&n.iconPosition==="left","mr-4 -ml-2":["large"].includes(n.size)&&n.iconPosition==="left"},s={"ml-3 -mr-1":["small","medium"].includes(n.size)&&n.iconPosition==="right","ml-3 -mr-3":["large"].includes(n.size)&&n.iconPosition==="right"},l={"text-white":n.color==="primary","text-blue-600":n.color==="light","text-grey-50":n.color==="dark"};return H(H(H({},c),s),l)});function i(){n.isDisabled||t("onClick")}return(c,s)=>(r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["relative inline-flex items-center focus:outline-none focus:ring active:ring transition duration-150 ease-in-out",r.unref(o)]),type:"button","aria-label":e.label,tabindex:e.isDisabled?"-1":void 0,onClick:i},[r.createElementVNode("div",{class:r.normalizeClass(!e.isLoading||"invisible")},[e.icon&&e.iconPosition==="left"?(r.openBlock(),r.createBlock(T,{key:0,name:e.icon,class:r.normalizeClass(r.unref(a))},null,8,["name","class"])):r.createCommentVNode("",!0),r.createElementVNode("span",null,r.toDisplayString(e.label),1),e.icon&&e.iconPosition==="right"?(r.openBlock(),r.createBlock(T,{key:1,name:e.icon,class:r.normalizeClass(r.unref(a))},null,8,["name","class"])):r.createCommentVNode("",!0)],2),e.isLoading?(r.openBlock(),r.createElementBlock("span",Zt,[r.createVNode(T,{class:"animate-spin",name:"circle-notch"})])):r.createCommentVNode("",!0)],10,Qt))}});var ye,tn=new Uint8Array(16);function nn(){if(!ye&&(ye=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ye))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ye(tn)}var rn=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function on(e){return typeof e=="string"&&rn.test(e)}for(var V=[],Me=0;Me<256;++Me)V.push((Me+256).toString(16).substr(1));function an(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(V[e[t+0]]+V[e[t+1]]+V[e[t+2]]+V[e[t+3]]+"-"+V[e[t+4]]+V[e[t+5]]+"-"+V[e[t+6]]+V[e[t+7]]+"-"+V[e[t+8]]+V[e[t+9]]+"-"+V[e[t+10]]+V[e[t+11]]+V[e[t+12]]+V[e[t+13]]+V[e[t+14]]+V[e[t+15]]).toLowerCase();if(!on(n))throw TypeError("Stringified UUID is invalid");return n}function tt(e,t,n){e=e||{};var o=e.random||(e.rng||nn)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=o[a];return t}return an(o)}const ln={class:"relative flex items-start"},sn={class:"flex items-center h-5"},cn=["checked","id"],un={class:"ml-2 text-sm leading-5"},fn=["for"],dn={key:0,class:"block text-xs text-grey-400 font-normal mono-0 casual-60"},pn=r.defineComponent({props:{id:{default:tt()},label:null,modelValue:{type:Boolean},description:null},emits:["update:modelValue"],setup(e,{emit:t}){const n=o=>{t("update:modelValue",o.target.checked)};return(o,a)=>(r.openBlock(),r.createElementBlock("div",ln,[r.createElementVNode("div",sn,[r.createElementVNode("input",{class:"h-4 w-4 border-grey-600 dark:text-blue-500 dark:border-grey-300 dark:checked:border-blue-500 dark:focus:ring-blue-900 dark:focus:ring-offset-grey-800 rounded-sm",type:"checkbox",checked:e.modelValue,onChange:n,id:e.id},null,40,cn)]),r.createElementVNode("div",un,[r.createElementVNode("label",{for:e.id,class:"font-medium text-grey-700 dark:text-grey-200 casual-25"},r.toDisplayString(e.label),9,fn),e.description?(r.openBlock(),r.createElementBlock("p",dn,r.toDisplayString(e.description),1)):r.createCommentVNode("",!0)])]))}}),mn={},Le=()=>{},fe=Object.assign,hn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Q=Array.isArray,bn=e=>Ne(e)==="[object Map]",gn=e=>Ne(e)==="[object Set]",A=e=>typeof e=="function",vn=e=>typeof e=="string",yn=e=>typeof e=="symbol",nt=e=>e!==null&&typeof e=="object",xn=e=>nt(e)&&A(e.then)&&A(e.catch),wn=Object.prototype.toString,Ne=e=>wn.call(e),kn=e=>Ne(e)==="[object Object]",rt=(e,t)=>!Object.is(e,t),Cn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})};let Sn;function On(e,t=Sn){t&&t.active&&t.effects.push(e)}const En=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ot=e=>(e.w&W)>0,at=e=>(e.n&W)>0,In=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=W},Vn=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const a=t[o];ot(a)&&!at(a)?a.delete(e):t[n++]=a,a.w&=~W,a.n&=~W}t.length=n}};let de=0,W=1;const je=30;let _;class it{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,On(this,o)}run(){if(!this.active)return this.fn();let t=_,n=xe;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=_,_=this,xe=!0,W=1<<++de,de<=je?In(this):lt(this),this.fn()}finally{de<=je&&Vn(this),W=1<<--de,_=this.parent,xe=n,this.parent=void 0}}stop(){this.active&&(lt(this),this.onStop&&this.onStop(),this.active=!1)}}function lt(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let xe=!0;function Bn(e,t){let n=!1;de<=je?at(e)||(e.n|=W,n=!ot(e)):n=!e.has(_),n&&(e.add(_),_.deps.push(e))}function Dn(e,t){for(const n of Q(e)?e:[...e])(n!==_||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(yn));function pe(e){return Pn(e)?pe(e.__v_raw):!!(e&&e.__v_isReactive)}function Pn(e){return!!(e&&e.__v_isReadonly)}function Rn(e){return!!(e&&e.__v_isShallow)}function we(e){const t=e&&e.__v_raw;return t?we(t):e}function Tn(e){return Cn(e,"__v_skip",!0),e}function $n(e){xe&&_&&(e=we(e),Bn(e.dep||(e.dep=En())))}function Mn(e,t){e=we(e),e.dep&&Dn(e.dep)}function Z(e){return!!(e&&e.__v_isRef===!0)}function Ln(e){return Z(e)?e.value:e}const Nn={get:(e,t,n)=>Ln(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const a=e[t];return Z(a)&&!Z(n)?(a.value=n,!0):Reflect.set(e,t,n,o)}};function jn(e){return pe(e)?e:new Proxy(e,Nn)}class An{constructor(t,n,o,a){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new it(t,()=>{this._dirty||(this._dirty=!0,Mn(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=o}get value(){const t=we(this);return $n(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function _n(e,t,n=!1){let o,a;const i=A(e);return i?(o=e,a=Le):(o=e.get,a=e.set),new An(o,a,i||!a,n)}Promise.resolve();function ee(e,t,n,o){let a;try{a=o?e(...o):e()}catch(i){st(i,t,n)}return a}function Ae(e,t,n,o){if(A(e)){const i=ee(e,t,n,o);return i&&xn(i)&&i.catch(c=>{st(c,t,n)}),i}const a=[];for(let i=0;i<e.length;i++)a.push(Ae(e[i],t,n,o));return a}function st(e,t,n,o=!0){const a=t?t.vnode:null;if(t){let i=t.parent;const c=t.proxy,s=n;for(;i;){const f=i.ec;if(f){for(let u=0;u<f.length;u++)if(f[u](e,c,s)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){ee(l,null,10,[e,c,s]);return}}zn(e,n,a,o)}function zn(e,t,n,o=!0){console.error(e)}let ke=!1,_e=!1;const $=[];let K=0;const me=[];let he=null,te=0;const be=[];let q=null,ne=0;const ct=Promise.resolve();let ze=null,Ue=null;function Un(e){const t=ze||ct;return e?t.then(this?e.bind(this):e):t}function Fn(e){let t=K+1,n=$.length;for(;t<n;){const o=t+n>>>1;ge($[o])<e?t=o+1:n=o}return t}function Hn(e){(!$.length||!$.includes(e,ke&&e.allowRecurse?K+1:K))&&e!==Ue&&(e.id==null?$.push(e):$.splice(Fn(e.id),0,e),ut())}function ut(){!ke&&!_e&&(_e=!0,ze=ct.then(pt))}function ft(e,t,n,o){Q(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?o+1:o))&&n.push(e),ut()}function Wn(e){ft(e,he,me,te)}function Kn(e){ft(e,q,be,ne)}function dt(e,t=null){if(me.length){for(Ue=t,he=[...new Set(me)],me.length=0,te=0;te<he.length;te++)he[te]();he=null,te=0,Ue=null,dt(e,t)}}function qn(e){if(be.length){const t=[...new Set(be)];if(be.length=0,q){q.push(...t);return}for(q=t,q.sort((n,o)=>ge(n)-ge(o)),ne=0;ne<q.length;ne++)q[ne]();q=null,ne=0}}const ge=e=>e.id==null?1/0:e.id;function pt(e){_e=!1,ke=!0,dt(e),$.sort((n,o)=>ge(n)-ge(o));const t=Le;try{for(K=0;K<$.length;K++){const n=$[K];n&&n.active!==!1&&ee(n,null,14)}}finally{K=0,$.length=0,qn(),ke=!1,ze=null,($.length||me.length||be.length)&&pt(e)}}function Gn(e,t){t&&t.pendingBranch?Q(e)?t.effects.push(...e):t.effects.push(e):Kn(e)}const mt={};function Xn(e,t,{immediate:n,deep:o,flush:a,onTrack:i,onTrigger:c}=mn){const s=oe;let l,f=!1,u=!1;if(Z(e)?(l=()=>e.value,f=Rn(e)):pe(e)?(l=()=>e,o=!0):Q(e)?(u=!0,f=e.some(pe),l=()=>e.map(g=>{if(Z(g))return g.value;if(pe(g))return re(g);if(A(g))return ee(g,s,2)})):A(e)?t?l=()=>ee(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return v&&v(),Ae(e,s,3,[y])}:l=Le,t&&o){const g=l;l=()=>re(g())}let v,y=g=>{v=m.onStop=()=>{ee(g,s,4)}},p=u?[]:mt;const h=()=>{if(!!m.active)if(t){const g=m.run();(o||f||(u?g.some((O,S)=>rt(O,p[S])):rt(g,p)))&&(v&&v(),Ae(t,s,3,[g,p===mt?void 0:p,y]),p=g)}else m.run()};h.allowRecurse=!!t;let d;a==="sync"?d=h:a==="post"?d=()=>gt(h,s&&s.suspense):d=()=>{!s||s.isMounted?Wn(h):h()};const m=new it(l,d);return t?n?h():p=m.run():a==="post"?gt(m.run.bind(m),s&&s.suspense):m.run(),()=>{m.stop(),s&&s.scope&&hn(s.scope.effects,m)}}function Yn(e,t,n){const o=this.proxy,a=vn(e)?e.includes(".")?Jn(o,e):()=>o[e]:e.bind(o,o);let i;A(t)?i=t:(i=t.handler,n=t);const c=oe;yt(this);const s=Xn(a,i.bind(o),n);return c?yt(c):nr(),s}function Jn(e,t){const n=t.split(".");return()=>{let o=e;for(let a=0;a<n.length&&o;a++)o=o[n[a]];return o}}function re(e,t){if(!nt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Z(e))re(e.value,t);else if(Q(e))for(let n=0;n<e.length;n++)re(e[n],t);else if(gn(e)||bn(e))e.forEach(n=>{re(n,t)});else if(kn(e))for(const n in e)re(e[n],t);return e}function Qn(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:c}}=e.appContext,s=i.get(t);let l;return s?l=s:!a.length&&!n&&!o?l=t:(l={},a.length&&a.forEach(f=>Ce(l,f,c,!0)),Ce(l,t,c)),i.set(t,l),l}function Ce(e,t,n,o=!1){const{mixins:a,extends:i}=t;i&&Ce(e,i,n,!0),a&&a.forEach(c=>Ce(e,c,n,!0));for(const c in t)if(!(o&&c==="expose")){const s=Zn[c]||n&&n[c];e[c]=s?s(e[c],t[c]):t[c]}return e}const Zn={data:ht,props:X,emits:X,methods:X,computed:X,beforeCreate:D,created:D,beforeMount:D,mounted:D,beforeUpdate:D,updated:D,beforeDestroy:D,beforeUnmount:D,destroyed:D,unmounted:D,activated:D,deactivated:D,errorCaptured:D,serverPrefetch:D,components:X,directives:X,watch:tr,provide:ht,inject:er};function ht(e,t){return t?e?function(){return fe(A(e)?e.call(this,this):e,A(t)?t.call(this,this):t)}:t:e}function er(e,t){return X(bt(e),bt(t))}function bt(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function D(e,t){return e?[...new Set([].concat(e,t))]:t}function X(e,t){return e?fe(fe(Object.create(null),e),t):t}function tr(e,t){if(!e)return t;if(!t)return e;const n=fe(Object.create(null),e);for(const o in t)n[o]=D(e[o],t[o]);return n}const gt=Gn,Fe=e=>e?rr(e)?ar(e)||e.proxy:Fe(e.parent):null,vt=fe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Fe(e.parent),$root:e=>Fe(e.root),$emit:e=>e.emit,$options:e=>Qn(e),$forceUpdate:e=>()=>Hn(e.update),$nextTick:e=>Un.bind(e.proxy),$watch:e=>Yn.bind(e)});let oe=null;const yt=e=>{oe=e,e.scope.on()},nr=()=>{oe&&oe.scope.off(),oe=null};function rr(e){return e.vnode.shapeFlag&4}let or=!1;function ar(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(jn(Tn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vt)return vt[n](e)}}))}const He=(e,t)=>_n(e,t,or);function We(e){const t=He(()=>({"pl-3 pr-10 py-1":!e.icon&&e.size==="small","pl-4 pr-10 py-3":!e.icon&&e.size==="medium","pl-6 pr-10 py-3":!e.icon&&e.size==="large","pl-10 pr-10 py-1":e.icon&&e.size==="small","pl-12 pr-10 py-3":e.icon&&(e.size==="medium"||e.size==="large"),"w-full block":e.block===!0})),n=He(()=>({"pointer-events-none opacity-50 cursor-not-allowed":e.isDisabled})),o=He(()=>({"text-xs leading-4":e.size==="small","text-sm leading-4":e.size==="medium","text-base leading-5":e.size==="large"}));return{inputClasses:t,disabledClasses:n,textSizeClasses:o}}const ir={class:"relative"},lr=["placeholder","type","tabindex","value"],sr={inheritAttrs:!1},cr=r.defineComponent(Ze(H({},sr),{props:{modelValue:null,type:{default:"text"},placeholder:null,size:{default:"medium"},icon:null,isDisabled:{type:Boolean,default:!1},block:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const o=e,{inputClasses:a,disabledClasses:i,textSizeClasses:c}=We(o),s=function(u){n("update:modelValue",(u==null?void 0:u.target).value)},l=r.ref(null);return t({focus:()=>{o.isDisabled||l.value.focus()}}),(u,v)=>(r.openBlock(),r.createElementBlock("div",ir,[r.createElementVNode("input",r.mergeProps({class:["mono-50 bg-white text-grey-800 placeholder:text-grey-400 placeholder:font-normal border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder:text-grey-500 dark:border-grey-700 focus:border-blue-400 focus:ring-blue-400 dark:focus:border-blue-800 dark:focus:ring-blue-800 rounded",[r.unref(a),r.unref(c),r.unref(i)]],placeholder:e.placeholder,type:e.type,tabindex:e.isDisabled?"-1":void 0,value:e.modelValue},u.$attrs,{ref_key:"input",ref:l,onInput:s}),null,16,lr),e.icon?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["absolute left-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4",r.unref(c)])},[r.createVNode(T,{name:e.icon},null,8,["name"])],2)):r.createCommentVNode("",!0)]))}})),ur={class:"inline-block text-grey-700 dark:text-grey-200 text-sm font-medium casual-20"},fr=["for"],dr={key:0,class:"block text-xs text-grey-400 font-normal mono-0 casual-60"},pr=r.defineComponent({props:{id:null,label:null,description:null},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("span",ur,[r.createElementVNode("label",{for:e.id},r.toDisplayString(e.label),9,fr),e.description?(r.openBlock(),r.createElementBlock("span",dr,r.toDisplayString(e.description),1)):r.createCommentVNode("",!0)]))}});function M(){return M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},M.apply(this,arguments)}function xt(e,t){if(e==null)return{};var n={},o=Object.keys(e),a,i;for(i=0;i<o.length;i++)a=o[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function mr(e,t){if(!!e){if(typeof e=="string")return wt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wt(e,t)}}function wt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function hr(e,t){var n;if(typeof Symbol=="undefined"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=mr(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
6
|
-
|
|
7
|
-
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(function(p){return" - "+p}).join(`
|
|
5
|
+
*/var vt={prefix:"fab",iconName:"facebook",icon:[512,512,[62e3],"f09a","M504 256C504 119 393 8 256 8S8 119 8 256c0 123.8 90.69 226.4 209.3 245V327.7h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.3 482.4 504 379.8 504 256z"]},xt={prefix:"fab",iconName:"github",icon:[496,512,[],"f09b","M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3 .3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5 .3-6.2 2.3zm44.2-1.7c-2.9 .7-4.9 2.6-4.6 4.9 .3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3 .7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3 .3 2.9 2.3 3.9 1.6 1 3.6 .7 4.3-.7 .7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3 .7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3 .7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"]},wt={prefix:"fab",iconName:"instagram",icon:[448,512,[],"f16d","M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"]},kt={prefix:"fab",iconName:"linkedin",icon:[448,512,[],"f08c","M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"]},St={prefix:"fab",iconName:"twitter",icon:[512,512,[],"f099","M459.4 151.7c.325 4.548 .325 9.097 .325 13.65 0 138.7-105.6 298.6-298.6 298.6-59.45 0-114.7-17.22-161.1-47.11 8.447 .974 16.57 1.299 25.34 1.299 49.06 0 94.21-16.57 130.3-44.83-46.13-.975-84.79-31.19-98.11-72.77 6.498 .974 12.99 1.624 19.82 1.624 9.421 0 18.84-1.3 27.61-3.573-48.08-9.747-84.14-51.98-84.14-102.1v-1.299c13.97 7.797 30.21 12.67 47.43 13.32-28.26-18.84-46.78-51.01-46.78-87.39 0-19.49 5.197-37.36 14.29-52.95 51.65 63.67 129.3 105.3 216.4 109.8-1.624-7.797-2.599-15.92-2.599-24.04 0-57.83 46.78-104.9 104.9-104.9 30.21 0 57.5 12.67 76.67 33.14 23.72-4.548 46.46-13.32 66.6-25.34-7.798 24.37-24.37 44.83-46.13 57.83 21.12-2.273 41.58-8.122 60.43-16.24-14.29 20.79-32.16 39.31-52.63 54.25z"]};N.library.add(g.faAt,g.faBold,g.faCalendar,g.faChartPie,g.faCheck,g.faCheckCircle,g.faChevronDown,g.faChevronLeft,g.faChevronRight,g.faChevronUp,g.faCircleCheck,g.faCircleNotch,g.faClipboard,g.faCloudDownload,g.faCloudUpload,g.faCog,g.faDoorOpen,g.faDotCircle,g.faEllipsis,g.faEllipsisVertical,g.faEnvelope,g.faExclamationTriangle,g.faExternalLink,g.faEyeDropper,g.faFileLines,g.faFileUpload,g.faFingerprint,g.faGlobe,g.faGripHorizontal,g.faGripVertical,g.faHandPointRight,g.faHashtag,g.faInfoCircle,g.faItalic,g.faLink,g.faMedal,g.faMessage,g.faPencilAlt,g.faPenToSquare,g.faPhone,g.faPlayCircle,g.faPlus,g.faPlusCircle,g.faReply,g.faReplyAll,g.faRobot,g.faSave,g.faShield,g.faSignature,g.faSquareCheck,g.faStar,g.faTimes,g.faTrash,g.faTrophy,g.faTurnDown,g.faUpload,g.faUser,g.faUserShield,St,wt,xt,kt,vt);var Re=[...Object.keys(N.library.definitions.fas)].sort();const de=[...Object.keys(N.library.definitions.fab)].sort(),L=t.defineComponent({__name:"Icon",props:{name:{default:"user"}},setup(e){const n=e,a=t.computed(()=>de.includes(n.name)?"fab":"fas"),r=t.computed(()=>Re.includes(n.name)||de.includes(n.name)?!0:(console.warn("could not load icon, because it is not available",n.name),!1));return(o,l)=>t.unref(r)?(t.openBlock(),t.createBlock(t.unref(B.FontAwesomeIcon),t.mergeProps({key:0,icon:[t.unref(a),e.name]},o.$attrs),null,16,["icon"])):t.createCommentVNode("",!0)}}),Ct=["aria-label","tabindex"],Ot={key:0,class:"absolute inset-0 flex items-center justify-center"},Et=t.defineComponent({__name:"Button",props:{label:null,size:{default:"medium"},color:{default:"primary"},isLoading:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},icon:null,iconPosition:{default:"right"}},emits:["onClick"],setup(e,{emit:n}){const a=e,r=t.computed(()=>{const i={"text-white bg-blue-600 border-transparent hover:bg-blue-700 active:bg-blue-700 dark:ring-blue-800 ring-offset-2 dark:ring-offset-grey-900":a.color==="primary","text-blue-600 bg-grey-100 border-transparent hover:bg-blue-100 hover:text-blue-700 active:bg-grey-100 ring-blue-300 ring-offset-2 dark:ring-offset-grey-900":a.color==="light","text-grey-50 bg-grey-700 border-transparent hover:bg-grey-800 active:bg-grey-700 ring-grey-500 dark:ring-grey-400 dark:ring-opacity-50 ring-offset-2 dark:ring-offset-grey-900":a.color==="dark"},d={"pointer-events-none opacity-75 cursor-not-allowed":a.isDisabled},c={"px-4 py-1 text-xs leading-5 mono-100 rounded-lg":a.size==="small","px-5 py-2 text-sm leading-4 font-medium rounded-lg":a.size==="medium","px-8 py-3 text-base leading-6 font-medium rounded-lg":a.size==="large"};return k(k(k({},i),d),c)}),o=t.computed(()=>{const i={"mr-2 -ml-1":["small","medium"].includes(a.size)&&a.iconPosition==="left","mr-4 -ml-2":["large"].includes(a.size)&&a.iconPosition==="left"},d={"ml-3 -mr-1":["small","medium"].includes(a.size)&&a.iconPosition==="right","ml-3 -mr-3":["large"].includes(a.size)&&a.iconPosition==="right"},c={"text-white":a.color==="primary","text-blue-600":a.color==="light","text-grey-50":a.color==="dark"};return k(k(k({},i),d),c)});function l(){a.isDisabled||n("onClick")}return(i,d)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["relative inline-flex items-center focus:outline-none focus:ring active:ring transition duration-150 ease-in-out",t.unref(r)]),type:"button","aria-label":e.label,tabindex:e.isDisabled?"-1":void 0,onClick:l},[t.createElementVNode("div",{class:t.normalizeClass(!e.isLoading||"invisible")},[e.icon&&e.iconPosition==="left"?(t.openBlock(),t.createBlock(L,{key:0,name:e.icon,class:t.normalizeClass(t.unref(o))},null,8,["name","class"])):t.createCommentVNode("",!0),t.createElementVNode("span",null,t.toDisplayString(e.label),1),e.icon&&e.iconPosition==="right"?(t.openBlock(),t.createBlock(L,{key:1,name:e.icon,class:t.normalizeClass(t.unref(o))},null,8,["name","class"])):t.createCommentVNode("",!0)],2),e.isLoading?(t.openBlock(),t.createElementBlock("span",Ot,[t.createVNode(L,{class:"animate-spin",name:"circle-notch"})])):t.createCommentVNode("",!0)],10,Ct))}});var J,Rt=new Uint8Array(16);function Dt(){if(!J&&(J=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!J))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return J(Rt)}var Tt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Vt(e){return typeof e=="string"&&Tt.test(e)}for(var T=[],fe=0;fe<256;++fe)T.push((fe+256).toString(16).substr(1));function Bt(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=(T[e[n+0]]+T[e[n+1]]+T[e[n+2]]+T[e[n+3]]+"-"+T[e[n+4]]+T[e[n+5]]+"-"+T[e[n+6]]+T[e[n+7]]+"-"+T[e[n+8]]+T[e[n+9]]+"-"+T[e[n+10]]+T[e[n+11]]+T[e[n+12]]+T[e[n+13]]+T[e[n+14]]+T[e[n+15]]).toLowerCase();if(!Vt(a))throw TypeError("Stringified UUID is invalid");return a}function De(e,n,a){e=e||{};var r=e.random||(e.rng||Dt)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,n){a=a||0;for(var o=0;o<16;++o)n[a+o]=r[o];return n}return Bt(r)}const It={class:"relative flex items-start"},Nt={class:"flex items-center h-5"},Lt=["checked","id"],$t={class:"ml-2 text-sm leading-5"},Mt=["for"],Pt={key:0,class:"block text-xs text-grey-400 font-normal mono-0 casual-60"},jt=t.defineComponent({__name:"Checkbox",props:{id:{default:De()},label:null,modelValue:{type:Boolean},description:null},emits:["update:modelValue"],setup(e,{emit:n}){const a=r=>{n("update:modelValue",r.target.checked)};return(r,o)=>(t.openBlock(),t.createElementBlock("div",It,[t.createElementVNode("div",Nt,[t.createElementVNode("input",{class:"h-4 w-4 border-grey-600 dark:text-blue-500 dark:border-grey-300 dark:checked:border-blue-500 dark:focus:ring-blue-900 dark:focus:ring-offset-grey-800 rounded-sm",type:"checkbox",checked:e.modelValue,onChange:a,id:e.id},null,40,Lt)]),t.createElementVNode("div",$t,[t.createElementVNode("label",{for:e.id,class:"font-medium text-grey-700 dark:text-grey-200 casual-25"},t.toDisplayString(e.label),9,Mt),e.description?(t.openBlock(),t.createElementBlock("p",Pt,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0)])]))}}),zt=()=>{},At=()=>!1,_t=Array.isArray,Ft=e=>typeof e=="function";let Ut;function Ht(e,n=Ut){n&&n.active&&n.effects.push(e)}const Wt=e=>{const n=new Set(e);return n.w=0,n.n=0,n},Te=e=>(e.w&_)>0,Ve=e=>(e.n&_)>0,qt=({deps:e})=>{if(e.length)for(let n=0;n<e.length;n++)e[n].w|=_},Yt=e=>{const{deps:n}=e;if(n.length){let a=0;for(let r=0;r<n.length;r++){const o=n[r];Te(o)&&!Ve(o)?o.delete(e):n[a++]=o,o.w&=~_,o.n&=~_}n.length=a}};let G=0,_=1;const pe=30;let P;class Gt{constructor(n,a=null,r){this.fn=n,this.scheduler=a,this.active=!0,this.deps=[],this.parent=void 0,Ht(this,r)}run(){if(!this.active)return this.fn();let n=P,a=Z;for(;n;){if(n===this)return;n=n.parent}try{return this.parent=P,P=this,Z=!0,_=1<<++G,G<=pe?qt(this):Be(this),this.fn()}finally{G<=pe&&Yt(this),_=1<<--G,P=this.parent,Z=a,this.parent=void 0,this.deferStop&&this.stop()}}stop(){P===this?this.deferStop=!0:this.active&&(Be(this),this.onStop&&this.onStop(),this.active=!1)}}function Be(e){const{deps:n}=e;if(n.length){for(let a=0;a<n.length;a++)n[a].delete(e);n.length=0}}let Z=!0;function Kt(e,n){let a=!1;G<=pe?Ve(e)||(e.n|=_,a=!Te(e)):a=!e.has(P),a&&(e.add(P),P.deps.push(e))}function Xt(e,n){const a=_t(e)?e:[...e];for(const r of a)r.computed&&Ie(r);for(const r of a)r.computed||Ie(r)}function Ie(e,n){(e!==P||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function ee(e){const n=e&&e.__v_raw;return n?ee(n):e}function Qt(e){Z&&P&&(e=ee(e),Kt(e.dep||(e.dep=Wt())))}function Jt(e,n){e=ee(e),e.dep&&Xt(e.dep)}class Zt{constructor(n,a,r,o){this._setter=a,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Gt(n,()=>{this._dirty||(this._dirty=!0,Jt(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const n=ee(this);return Qt(n),(n._dirty||!n._cacheable)&&(n._dirty=!1,n._value=n.effect.run()),n._value}set value(n){this._setter(n)}}function en(e,n,a=!1){let r,o;const l=Ft(e);return l?(r=e,o=zt):(r=e.get,o=e.set),new Zt(r,o,l||!o,a)}function tn(){return{app:null,config:{isNativeTag:At,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}tn();let nn=!1;const me=(e,n)=>en(e,n,nn);function be(e){const n=me(()=>({"pl-3 pr-10 py-1":!e.icon&&e.size==="small","pl-4 pr-10 py-3":!e.icon&&e.size==="medium","pl-6 pr-10 py-3":!e.icon&&e.size==="large","pl-10 pr-10 py-1":e.icon&&e.size==="small","pl-12 pr-10 py-3":e.icon&&(e.size==="medium"||e.size==="large"),"w-full block":e.block===!0})),a=me(()=>({"pointer-events-none opacity-50 cursor-not-allowed":e.isDisabled})),r=me(()=>({"text-xs leading-4":e.size==="small","text-sm leading-4":e.size==="medium","text-base leading-5":e.size==="large"}));return{inputClasses:n,disabledClasses:a,textSizeClasses:r}}const on={class:"relative"},an=["placeholder","type","tabindex","value"],rn={inheritAttrs:!1},ln=t.defineComponent(U(k({},rn),{__name:"Input",props:{modelValue:null,type:{default:"text"},placeholder:null,size:{default:"medium"},icon:null,isDisabled:{type:Boolean,default:!1},block:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:n,emit:a}){const r=e,{inputClasses:o,disabledClasses:l,textSizeClasses:i}=be(r),d=function(s){a("update:modelValue",(s==null?void 0:s.target).value)},c=t.ref(null);return n({focus:()=>{r.isDisabled||c.value.focus()}}),(s,u)=>(t.openBlock(),t.createElementBlock("div",on,[t.createElementVNode("input",t.mergeProps({class:["mono-50 bg-white text-grey-800 placeholder:text-grey-400 placeholder:font-normal border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder:text-grey-500 dark:border-grey-700 focus:border-blue-400 focus:ring-blue-400 dark:focus:border-blue-800 dark:focus:ring-blue-800 rounded",[t.unref(o),t.unref(i),t.unref(l)]],placeholder:e.placeholder,type:e.type,tabindex:e.isDisabled?"-1":void 0,value:e.modelValue},s.$attrs,{ref_key:"input",ref:c,onInput:d}),null,16,an),e.icon?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["absolute left-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4",t.unref(i)])},[t.createVNode(L,{name:e.icon},null,8,["name"])],2)):t.createCommentVNode("",!0)]))}})),sn={class:"inline-block text-grey-700 dark:text-grey-200 text-sm font-medium casual-20"},cn=["for"],un={key:0,class:"block text-xs text-grey-400 font-normal mono-0 casual-60"},dn=t.defineComponent({__name:"Label",props:{id:null,label:null,description:null},setup(e){return(n,a)=>(t.openBlock(),t.createElementBlock("span",sn,[t.createElementVNode("label",{for:e.id},t.toDisplayString(e.label),9,cn),e.description?(t.openBlock(),t.createElementBlock("span",un,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0)]))}});function $(e,n,...a){if(e in n){let o=n[e];return typeof o=="function"?o(...a):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,$),r}var K=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(K||{}),fn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(fn||{});function I(r){var o=r,{visible:e=!0,features:n=0}=o,a=q(o,["visible","features"]);var l;if(e||n&2&&a.props.static)return ge(a);if(n&1){let i=(l=a.props.unmount)==null||l?0:1;return $(i,{[0](){return null},[1](){return ge(U(k({},a),{props:U(k({},a.props),{hidden:!0,style:{display:"none"}})}))}})}return ge(a)}function ge({props:e,attrs:n,slots:a,slot:r,name:o}){var l;let s=he(e,["unmount","static"]),{as:i}=s,d=q(s,["as"]),c=(l=a.default)==null?void 0:l.call(a,r),f={};if(i==="template"){if(Object.keys(d).length>0||Object.keys(n).length>0){let[u,...y]=c!=null?c:[];if(!pn(u)||y.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(d).concat(Object.keys(n)).map(p=>` - ${p}`).join(`
|
|
6
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(p=>` - ${p}`).join(`
|
|
8
7
|
`)].join(`
|
|
9
|
-
`));return r.cloneVNode(v,l)}return Array.isArray(f)&&f.length===1?f[0]:f}return r.h(s,l,f)}function kt(e,t){t===void 0&&(t=[]);for(var n=Object.assign({},e),o=hr(t),a;!(a=o()).done;){var i=a.value;i in n&&delete n[i]}return n}function br(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var x;(function(e){e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab"})(x||(x={}));var gr=0;function vr(){return++gr}function Y(){return vr()}function Ct(e,t,n){typeof window!="undefined"&&r.watchEffect(function(o){window.addEventListener(e,t,n),o(function(){window.removeEventListener(e,t,n)})})}function C(e){var t;return e==null||e.value==null?null:(t=e.value.$el)!=null?t:e.value}var St=Symbol("Context"),G;(function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"})(G||(G={}));function Ot(){return r.inject(St,null)}function Et(e){r.provide(St,e)}function It(e,t){if(e)return e;var n=t!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Ke(e,t){var n=r.ref(It(e.value.type,e.value.as));return r.onMounted(function(){n.value=It(e.value.type,e.value.as)}),r.watchEffect(function(){var o;n.value||!C(t)||C(t)instanceof HTMLButtonElement&&!((o=C(t))==null?void 0:o.hasAttribute("type"))&&(n.value="button")}),n}function yr(e){throw new Error("Unexpected object: "+e)}var k;(function(e){e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing"})(k||(k={}));function Vt(e,t){var n=t.resolveItems();if(n.length<=0)return null;var o=t.resolveActiveIndex(),a=o!=null?o:-1,i=function(){switch(e.focus){case k.First:return n.findIndex(function(l){return!t.resolveDisabled(l)});case k.Previous:{var c=n.slice().reverse().findIndex(function(l,f,u){return a!==-1&&u.length-f-1>=a?!1:!t.resolveDisabled(l)});return c===-1?c:n.length-1-c}case k.Next:return n.findIndex(function(l,f){return f<=a?!1:!t.resolveDisabled(l)});case k.Last:{var s=n.slice().reverse().findIndex(function(l){return!t.resolveDisabled(l)});return s===-1?s:n.length-1-s}case k.Specific:return n.findIndex(function(l){return t.resolveId(l)===e.id});case k.Nothing:return null;default:yr(e)}}();return i===-1?o:i}var I;(function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"})(I||(I={}));function xr(e){requestAnimationFrame(function(){return requestAnimationFrame(e)})}var Bt=Symbol("ListboxContext");function le(e){var t=r.inject(Bt,null);if(t===null){var n=new Error("<"+e+" /> is missing a parent <Listbox /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(n,le),n}return t}var wr=r.defineComponent({name:"Listbox",emits:{"update:modelValue":function(t){return!0}},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean]}},setup:function(t,n){var o=n.slots,a=n.attrs,i=n.emit,c=r.ref(I.Closed),s=r.ref(null),l=r.ref(null),f=r.ref(null),u=r.ref([]),v=r.ref(""),y=r.ref(null),p=r.computed(function(){return t.modelValue}),h={listboxState:c,value:p,orientation:r.computed(function(){return t.horizontal?"horizontal":"vertical"}),labelRef:s,buttonRef:l,optionsRef:f,disabled:r.computed(function(){return t.disabled}),options:u,searchQuery:v,activeOptionIndex:y,closeListbox:function(){t.disabled||c.value!==I.Closed&&(c.value=I.Closed,y.value=null)},openListbox:function(){t.disabled||c.value!==I.Open&&(c.value=I.Open)},goToOption:function(m,g){if(!t.disabled&&c.value!==I.Closed){var O=Vt(m===k.Specific?{focus:k.Specific,id:g}:{focus:m},{resolveItems:function(){return u.value},resolveActiveIndex:function(){return y.value},resolveId:function(E){return E.id},resolveDisabled:function(E){return E.dataRef.disabled}});v.value===""&&y.value===O||(v.value="",y.value=O)}},search:function(m){if(!t.disabled&&c.value!==I.Closed){v.value+=m.toLowerCase();var g=u.value.findIndex(function(O){return!O.dataRef.disabled&&O.dataRef.textValue.startsWith(v.value)});g===-1||g===y.value||(y.value=g)}},clearSearch:function(){t.disabled||c.value!==I.Closed&&v.value!==""&&(v.value="")},registerOption:function(m,g){u.value.push({id:m,dataRef:g})},unregisterOption:function(m){var g=u.value.slice(),O=y.value!==null?g[y.value]:null,S=g.findIndex(function(E){return E.id===m});S!==-1&&g.splice(S,1),u.value=g,y.value=function(){return S===y.value||O===null?null:g.indexOf(O)}()},select:function(m){t.disabled||i("update:modelValue",m)}};return Ct("mousedown",function(d){var m,g,O,S=d.target,E=document.activeElement;c.value===I.Open&&(((m=C(l))==null?void 0:m.contains(S))||(((g=C(f))==null?void 0:g.contains(S))||h.closeListbox(),!(E!==document.body&&(E==null?void 0:E.contains(S)))&&(d.defaultPrevented||(O=C(l))==null||O.focus({preventScroll:!0}))))}),r.provide(Bt,h),Et(r.computed(function(){var d;return ae(c.value,(d={},d[I.Open]=G.Open,d[I.Closed]=G.Closed,d))})),function(){var d={open:c.value===I.Open,disabled:t.disabled};return U({props:kt(t,["modelValue","onUpdate:modelValue","disabled","horizontal"]),slot:d,slots:o,attrs:a,name:"Listbox"})}}}),kr=r.defineComponent({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"}},render:function(){var t,n,o=le("ListboxButton"),a={open:o.listboxState.value===I.Open,disabled:o.disabled.value},i={ref:"el",id:this.id,type:this.type,"aria-haspopup":!0,"aria-controls":(t=C(o.optionsRef))==null?void 0:t.id,"aria-expanded":o.disabled.value?void 0:o.listboxState.value===I.Open,"aria-labelledby":o.labelRef.value?[(n=C(o.labelRef))==null?void 0:n.id,this.id].join(" "):void 0,disabled:o.disabled.value===!0?!0:void 0,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onClick:this.handleClick};return U({props:M({},this.$props,i),slot:a,attrs:this.$attrs,slots:this.$slots,name:"ListboxButton"})},setup:function(t,n){var o=n.attrs,a=le("ListboxButton"),i="headlessui-listbox-button-"+Y();function c(f){switch(f.key){case x.Space:case x.Enter:case x.ArrowDown:f.preventDefault(),a.openListbox(),r.nextTick(function(){var u;(u=C(a.optionsRef))==null||u.focus({preventScroll:!0}),a.value.value||a.goToOption(k.First)});break;case x.ArrowUp:f.preventDefault(),a.openListbox(),r.nextTick(function(){var u;(u=C(a.optionsRef))==null||u.focus({preventScroll:!0}),a.value.value||a.goToOption(k.Last)});break}}function s(f){switch(f.key){case x.Space:f.preventDefault();break}}function l(f){a.disabled.value||(a.listboxState.value===I.Open?(a.closeListbox(),r.nextTick(function(){var u;return(u=C(a.buttonRef))==null?void 0:u.focus({preventScroll:!0})})):(f.preventDefault(),a.openListbox(),xr(function(){var u;return(u=C(a.optionsRef))==null?void 0:u.focus({preventScroll:!0})})))}return{id:i,el:a.buttonRef,type:Ke(r.computed(function(){return{as:t.as,type:o.type}}),a.buttonRef),handleKeyDown:c,handleKeyUp:s,handleClick:l}}}),Cr=r.defineComponent({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},render:function(){var t,n,o,a,i=le("ListboxOptions"),c={open:i.listboxState.value===I.Open},s={"aria-activedescendant":i.activeOptionIndex.value===null||(t=i.options.value[i.activeOptionIndex.value])==null?void 0:t.id,"aria-labelledby":(n=(o=C(i.labelRef))==null?void 0:o.id)!=null?n:(a=C(i.buttonRef))==null?void 0:a.id,"aria-orientation":i.orientation.value,id:this.id,onKeydown:this.handleKeyDown,role:"listbox",tabIndex:0,ref:"el"},l=this.$props;return U({props:M({},l,s),slot:c,attrs:this.$attrs,slots:this.$slots,features:z.RenderStrategy|z.Static,visible:this.visible,name:"ListboxOptions"})},setup:function(){var t=le("ListboxOptions"),n="headlessui-listbox-options-"+Y(),o=r.ref(null);function a(s){switch(o.value&&clearTimeout(o.value),s.key){case x.Space:if(t.searchQuery.value!=="")return s.preventDefault(),s.stopPropagation(),t.search(s.key);case x.Enter:if(s.preventDefault(),s.stopPropagation(),t.activeOptionIndex.value!==null){var l=t.options.value[t.activeOptionIndex.value].dataRef;t.select(l.value)}t.closeListbox(),r.nextTick(function(){var f;return(f=C(t.buttonRef))==null?void 0:f.focus({preventScroll:!0})});break;case ae(t.orientation.value,{vertical:x.ArrowDown,horizontal:x.ArrowRight}):return s.preventDefault(),s.stopPropagation(),t.goToOption(k.Next);case ae(t.orientation.value,{vertical:x.ArrowUp,horizontal:x.ArrowLeft}):return s.preventDefault(),s.stopPropagation(),t.goToOption(k.Previous);case x.Home:case x.PageUp:return s.preventDefault(),s.stopPropagation(),t.goToOption(k.First);case x.End:case x.PageDown:return s.preventDefault(),s.stopPropagation(),t.goToOption(k.Last);case x.Escape:s.preventDefault(),s.stopPropagation(),t.closeListbox(),r.nextTick(function(){var f;return(f=C(t.buttonRef))==null?void 0:f.focus({preventScroll:!0})});break;case x.Tab:s.preventDefault(),s.stopPropagation();break;default:s.key.length===1&&(t.search(s.key),o.value=setTimeout(function(){return t.clearSearch()},350));break}}var i=Ot(),c=r.computed(function(){return i!==null?i.value===G.Open:t.listboxState.value===I.Open});return{id:n,el:t.optionsRef,handleKeyDown:a,visible:c}}}),Sr=r.defineComponent({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1}},setup:function(t,n){var o=n.slots,a=n.attrs,i=le("ListboxOption"),c="headlessui-listbox-option-"+Y(),s=r.computed(function(){return i.activeOptionIndex.value!==null?i.options.value[i.activeOptionIndex.value].id===c:!1}),l=r.computed(function(){return r.toRaw(i.value.value)===r.toRaw(t.value)}),f=r.ref({disabled:t.disabled,value:t.value,textValue:""});r.onMounted(function(){var h,d,m=(h=document.getElementById(c))==null||(d=h.textContent)==null?void 0:d.toLowerCase().trim();m!==void 0&&(f.value.textValue=m)}),r.onMounted(function(){return i.registerOption(c,f)}),r.onUnmounted(function(){return i.unregisterOption(c)}),r.onMounted(function(){r.watch([i.listboxState,l],function(){var h;i.listboxState.value===I.Open&&(!l.value||(i.goToOption(k.Specific,c),(h=document.getElementById(c))==null||h.focus==null||h.focus()))},{immediate:!0})}),r.watchEffect(function(){i.listboxState.value===I.Open&&(!s.value||r.nextTick(function(){var h;return(h=document.getElementById(c))==null||h.scrollIntoView==null?void 0:h.scrollIntoView({block:"nearest"})}))});function u(h){if(t.disabled)return h.preventDefault();i.select(t.value),i.closeListbox(),r.nextTick(function(){var d;return(d=C(i.buttonRef))==null?void 0:d.focus({preventScroll:!0})})}function v(){if(t.disabled)return i.goToOption(k.Nothing);i.goToOption(k.Specific,c)}function y(){t.disabled||s.value||i.goToOption(k.Specific,c)}function p(){t.disabled||!s.value||i.goToOption(k.Nothing)}return function(){var h=t.disabled,d={active:s.value,selected:l.value,disabled:h},m={id:c,role:"option",tabIndex:h===!0?void 0:-1,"aria-disabled":h===!0?!0:void 0,"aria-selected":l.value===!0?l.value:void 0,disabled:void 0,onClick:u,onFocus:v,onPointermove:y,onMousemove:y,onPointerleave:p,onMouseleave:p};return U({props:M({},t,m),slot:d,attrs:a,slots:o,name:"ListboxOption"})}}});function Or(e){var t=e.container,n=e.accept,o=e.walk,a=e.enabled;r.watchEffect(function(){var i=t.value;if(!!i&&!(a!==void 0&&!a.value))for(var c=Object.assign(function(l){return n(l)},{acceptNode:n}),s=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,c,!1);s.nextNode();)o(s.currentNode)})}var B;(function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"})(B||(B={}));function Er(e){requestAnimationFrame(function(){return requestAnimationFrame(e)})}var Dt=Symbol("MenuContext");function se(e){var t=r.inject(Dt,null);if(t===null){var n=new Error("<"+e+" /> is missing a parent <Menu /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(n,se),n}return t}var Ir=r.defineComponent({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup:function(t,n){var o=n.slots,a=n.attrs,i=r.ref(B.Closed),c=r.ref(null),s=r.ref(null),l=r.ref([]),f=r.ref(""),u=r.ref(null),v={menuState:i,buttonRef:c,itemsRef:s,items:l,searchQuery:f,activeItemIndex:u,closeMenu:function(){i.value=B.Closed,u.value=null},openMenu:function(){return i.value=B.Open},goToItem:function(p,h){var d=Vt(p===k.Specific?{focus:k.Specific,id:h}:{focus:p},{resolveItems:function(){return l.value},resolveActiveIndex:function(){return u.value},resolveId:function(g){return g.id},resolveDisabled:function(g){return g.dataRef.disabled}});f.value===""&&u.value===d||(f.value="",u.value=d)},search:function(p){f.value+=p.toLowerCase();var h=l.value.findIndex(function(d){return d.dataRef.textValue.startsWith(f.value)&&!d.dataRef.disabled});h===-1||h===u.value||(u.value=h)},clearSearch:function(){f.value=""},registerItem:function(p,h){l.value.push({id:p,dataRef:h})},unregisterItem:function(p){var h=l.value.slice(),d=u.value!==null?h[u.value]:null,m=h.findIndex(function(g){return g.id===p});m!==-1&&h.splice(m,1),l.value=h,u.value=function(){return m===u.value||d===null?null:h.indexOf(d)}()}};return Ct("mousedown",function(y){var p,h,d,m=y.target,g=document.activeElement;i.value===B.Open&&(((p=C(c))==null?void 0:p.contains(m))||(((h=C(s))==null?void 0:h.contains(m))||v.closeMenu(),!(g!==document.body&&(g==null?void 0:g.contains(m)))&&(y.defaultPrevented||(d=C(c))==null||d.focus({preventScroll:!0}))))}),r.provide(Dt,v),Et(r.computed(function(){var y;return ae(i.value,(y={},y[B.Open]=G.Open,y[B.Closed]=G.Closed,y))})),function(){var y={open:i.value===B.Open};return U({props:t,slot:y,slots:o,attrs:a,name:"Menu"})}}}),Vr=r.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"}},render:function(){var t,n=se("MenuButton"),o={open:n.menuState.value===B.Open},a={ref:"el",id:this.id,type:this.type,"aria-haspopup":!0,"aria-controls":(t=C(n.itemsRef))==null?void 0:t.id,"aria-expanded":this.$props.disabled?void 0:n.menuState.value===B.Open,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onClick:this.handleClick};return U({props:M({},this.$props,a),slot:o,attrs:this.$attrs,slots:this.$slots,name:"MenuButton"})},setup:function(t,n){var o=n.attrs,a=se("MenuButton"),i="headlessui-menu-button-"+Y();function c(f){switch(f.key){case x.Space:case x.Enter:case x.ArrowDown:f.preventDefault(),f.stopPropagation(),a.openMenu(),r.nextTick(function(){var u;(u=C(a.itemsRef))==null||u.focus({preventScroll:!0}),a.goToItem(k.First)});break;case x.ArrowUp:f.preventDefault(),f.stopPropagation(),a.openMenu(),r.nextTick(function(){var u;(u=C(a.itemsRef))==null||u.focus({preventScroll:!0}),a.goToItem(k.Last)});break}}function s(f){switch(f.key){case x.Space:f.preventDefault();break}}function l(f){t.disabled||(a.menuState.value===B.Open?(a.closeMenu(),r.nextTick(function(){var u;return(u=C(a.buttonRef))==null?void 0:u.focus({preventScroll:!0})})):(f.preventDefault(),f.stopPropagation(),a.openMenu(),Er(function(){var u;return(u=C(a.itemsRef))==null?void 0:u.focus({preventScroll:!0})})))}return{id:i,el:a.buttonRef,type:Ke(r.computed(function(){return{as:t.as,type:o.type}}),a.buttonRef),handleKeyDown:c,handleKeyUp:s,handleClick:l}}}),Br=r.defineComponent({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},render:function(){var t,n,o=se("MenuItems"),a={open:o.menuState.value===B.Open},i={"aria-activedescendant":o.activeItemIndex.value===null||(t=o.items.value[o.activeItemIndex.value])==null?void 0:t.id,"aria-labelledby":(n=C(o.buttonRef))==null?void 0:n.id,id:this.id,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,role:"menu",tabIndex:0,ref:"el"},c=this.$props;return U({props:M({},c,i),slot:a,attrs:this.$attrs,slots:this.$slots,features:z.RenderStrategy|z.Static,visible:this.visible,name:"MenuItems"})},setup:function(){var t=se("MenuItems"),n="headlessui-menu-items-"+Y(),o=r.ref(null);Or({container:r.computed(function(){return C(t.itemsRef)}),enabled:r.computed(function(){return t.menuState.value===B.Open}),accept:function(f){return f.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:f.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk:function(f){f.setAttribute("role","none")}});function a(l){switch(o.value&&clearTimeout(o.value),l.key){case x.Space:if(t.searchQuery.value!=="")return l.preventDefault(),l.stopPropagation(),t.search(l.key);case x.Enter:if(l.preventDefault(),l.stopPropagation(),t.activeItemIndex.value!==null){var f,u=t.items.value[t.activeItemIndex.value].id;(f=document.getElementById(u))==null||f.click()}t.closeMenu(),r.nextTick(function(){var v;return(v=C(t.buttonRef))==null?void 0:v.focus({preventScroll:!0})});break;case x.ArrowDown:return l.preventDefault(),l.stopPropagation(),t.goToItem(k.Next);case x.ArrowUp:return l.preventDefault(),l.stopPropagation(),t.goToItem(k.Previous);case x.Home:case x.PageUp:return l.preventDefault(),l.stopPropagation(),t.goToItem(k.First);case x.End:case x.PageDown:return l.preventDefault(),l.stopPropagation(),t.goToItem(k.Last);case x.Escape:l.preventDefault(),l.stopPropagation(),t.closeMenu(),r.nextTick(function(){var v;return(v=C(t.buttonRef))==null?void 0:v.focus({preventScroll:!0})});break;case x.Tab:l.preventDefault(),l.stopPropagation();break;default:l.key.length===1&&(t.search(l.key),o.value=setTimeout(function(){return t.clearSearch()},350));break}}function i(l){switch(l.key){case x.Space:l.preventDefault();break}}var c=Ot(),s=r.computed(function(){return c!==null?c.value===G.Open:t.menuState.value===B.Open});return{id:n,el:t.itemsRef,handleKeyDown:a,handleKeyUp:i,visible:s}}}),Dr=r.defineComponent({name:"MenuItem",props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1}},setup:function(t,n){var o=n.slots,a=n.attrs,i=se("MenuItem"),c="headlessui-menu-item-"+Y(),s=r.computed(function(){return i.activeItemIndex.value!==null?i.items.value[i.activeItemIndex.value].id===c:!1}),l=r.ref({disabled:t.disabled,textValue:""});r.onMounted(function(){var p,h,d=(p=document.getElementById(c))==null||(h=p.textContent)==null?void 0:h.toLowerCase().trim();d!==void 0&&(l.value.textValue=d)}),r.onMounted(function(){return i.registerItem(c,l)}),r.onUnmounted(function(){return i.unregisterItem(c)}),r.watchEffect(function(){i.menuState.value===B.Open&&(!s.value||r.nextTick(function(){var p;return(p=document.getElementById(c))==null||p.scrollIntoView==null?void 0:p.scrollIntoView({block:"nearest"})}))});function f(p){if(t.disabled)return p.preventDefault();i.closeMenu(),r.nextTick(function(){var h;return(h=C(i.buttonRef))==null?void 0:h.focus({preventScroll:!0})})}function u(){if(t.disabled)return i.goToItem(k.Nothing);i.goToItem(k.Specific,c)}function v(){t.disabled||s.value||i.goToItem(k.Specific,c)}function y(){t.disabled||!s.value||i.goToItem(k.Nothing)}return function(){var p=t.disabled,h={active:s.value,disabled:p},d={id:c,role:"menuitem",tabIndex:p===!0?void 0:-1,"aria-disabled":p===!0?!0:void 0,onClick:f,onFocus:u,onPointermove:v,onMousemove:v,onPointerleave:y,onMouseleave:y};return U({props:M({},t,d),slot:h,attrs:a,slots:o,name:"MenuItem"})}}}),Pr=Symbol("GroupContext"),Rr=r.defineComponent({name:"Switch",emits:{"update:modelValue":function(t){return!0}},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:!1}},render:function(){var t={checked:this.$props.modelValue},n={id:this.id,ref:"el",role:"switch",type:this.type,tabIndex:0,"aria-checked":this.$props.modelValue,"aria-labelledby":this.labelledby,"aria-describedby":this.describedby,onClick:this.handleClick,onKeyup:this.handleKeyUp,onKeypress:this.handleKeyPress};return U({props:M({},this.$props,n),slot:t,attrs:this.$attrs,slots:this.$slots,name:"Switch"})},setup:function(t,n){var o=n.emit,a=n.attrs,i=r.inject(Pr,null),c="headlessui-switch-"+Y();function s(){o("update:modelValue",!t.modelValue)}var l=r.ref(null),f=i===null?l:i.switchRef;return{id:c,el:f,type:Ke(r.computed(function(){return{as:t.as,type:a.type}}),f),labelledby:i==null?void 0:i.labelledby,describedby:i==null?void 0:i.describedby,handleClick:function(v){v.preventDefault(),s()},handleKeyUp:function(v){v.key!==x.Tab&&v.preventDefault(),v.key===x.Space&&s()},handleKeyPress:function(v){v.preventDefault()}}}});function j(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Pt(e){var t=j(e).Element;return e instanceof t||e instanceof Element}function L(e){var t=j(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Tr(e){if(typeof ShadowRoot=="undefined")return!1;var t=j(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var ce=Math.round;function Oe(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,a=1;if(L(e)&&t){var i=e.offsetHeight,c=e.offsetWidth;c>0&&(o=ce(n.width)/c||1),i>0&&(a=ce(n.height)/i||1)}return{width:n.width/o,height:n.height/a,top:n.top/a,right:n.right/o,bottom:n.bottom/a,left:n.left/o,x:n.left/o,y:n.top/a}}function Rt(e){var t=j(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function $r(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Mr(e){return e===j(e)||!L(e)?Rt(e):$r(e)}function F(e){return e?(e.nodeName||"").toLowerCase():null}function Ee(e){return((Pt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Lr(e){return Oe(Ee(e)).left+Rt(e).scrollLeft}function J(e){return j(e).getComputedStyle(e)}function qe(e){var t=J(e),n=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function Nr(e){var t=e.getBoundingClientRect(),n=ce(t.width)/e.offsetWidth||1,o=ce(t.height)/e.offsetHeight||1;return n!==1||o!==1}function jr(e,t,n){n===void 0&&(n=!1);var o=L(t),a=L(t)&&Nr(t),i=Ee(t),c=Oe(e,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((F(t)!=="body"||qe(i))&&(s=Mr(t)),L(t)?(l=Oe(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Lr(i))),{x:c.left+s.scrollLeft-l.x,y:c.top+s.scrollTop-l.y,width:c.width,height:c.height}}function Ar(e){var t=Oe(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Ge(e){return F(e)==="html"?e:e.assignedSlot||e.parentNode||(Tr(e)?e.host:null)||Ee(e)}function Tt(e){return["html","body","#document"].indexOf(F(e))>=0?e.ownerDocument.body:L(e)&&qe(e)?e:Tt(Ge(e))}function Ie(e,t){var n;t===void 0&&(t=[]);var o=Tt(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=j(o),c=a?[i].concat(i.visualViewport||[],qe(o)?o:[]):o,s=t.concat(c);return a?s:s.concat(Ie(Ge(c)))}function _r(e){return["table","td","th"].indexOf(F(e))>=0}function $t(e){return!L(e)||J(e).position==="fixed"?null:e.offsetParent}function zr(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&L(e)){var o=J(e);if(o.position==="fixed")return null}for(var a=Ge(e);L(a)&&["html","body"].indexOf(F(a))<0;){var i=J(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function Mt(e){for(var t=j(e),n=$t(e);n&&_r(n)&&J(n).position==="static";)n=$t(n);return n&&(F(n)==="html"||F(n)==="body"&&J(n).position==="static")?t:n||zr(e)||t}var Ve="top",Xe="bottom",Ye="right",Be="left",Ur="start",Je="end",Fr="beforeRead",Hr="read",Wr="afterRead",Kr="beforeMain",qr="main",Gr="afterMain",Xr="beforeWrite",Yr="write",Jr="afterWrite",Qr=[Fr,Hr,Wr,Kr,qr,Gr,Xr,Yr,Jr];function Zr(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var c=[].concat(i.requires||[],i.requiresIfExists||[]);c.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&a(l)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),o}function eo(e){var t=Zr(e);return Qr.reduce(function(n,o){return n.concat(t.filter(function(a){return a.phase===o}))},[])}function to(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Lt(e){return e.split("-")[0]}function no(e){var t=e.reduce(function(n,o){var a=n[o.name];return n[o.name]=a?Object.assign({},a,o,{options:Object.assign({},a.options,o.options),data:Object.assign({},a.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}function Nt(e){return e.split("-")[1]}function ro(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function oo(e){var t=e.reference,n=e.element,o=e.placement,a=o?Lt(o):null,i=o?Nt(o):null,c=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(a){case Ve:l={x:c,y:t.y-n.height};break;case Xe:l={x:c,y:t.y+t.height};break;case Ye:l={x:t.x+t.width,y:s};break;case Be:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var f=a?ro(a):null;if(f!=null){var u=f==="y"?"height":"width";switch(i){case Ur:l[f]=l[f]-(t[u]/2-n[u]/2);break;case Je:l[f]=l[f]+(t[u]/2-n[u]/2);break}}return l}var jt={placement:"bottom",modifiers:[],strategy:"absolute"};function At(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function ao(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?jt:a;return function(s,l,f){f===void 0&&(f=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},jt,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},v=[],y=!1,p={state:u,setOptions:function(g){var O=typeof g=="function"?g(u.options):g;d(),u.options=Object.assign({},i,u.options,O),u.scrollParents={reference:Pt(s)?Ie(s):s.contextElement?Ie(s.contextElement):[],popper:Ie(l)};var S=eo(no([].concat(o,u.options.modifiers)));return u.orderedModifiers=S.filter(function(E){return E.enabled}),h(),p.update()},forceUpdate:function(){if(!y){var g=u.elements,O=g.reference,S=g.popper;if(!!At(O,S)){u.rects={reference:jr(O,Mt(S),u.options.strategy==="fixed"),popper:Ar(S)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(Re){return u.modifiersData[Re.name]=Object.assign({},Re.data)});for(var E=0;E<u.orderedModifiers.length;E++){if(u.reset===!0){u.reset=!1,E=-1;continue}var N=u.orderedModifiers[E],R=N.fn,ue=N.options,Pe=ue===void 0?{}:ue,Qe=N.name;typeof R=="function"&&(u=R({state:u,options:Pe,name:Qe,instance:p})||u)}}}},update:to(function(){return new Promise(function(m){p.forceUpdate(),m(u)})}),destroy:function(){d(),y=!0}};if(!At(s,l))return p;p.setOptions(f).then(function(m){!y&&f.onFirstUpdate&&f.onFirstUpdate(m)});function h(){u.orderedModifiers.forEach(function(m){var g=m.name,O=m.options,S=O===void 0?{}:O,E=m.effect;if(typeof E=="function"){var N=E({state:u,name:g,instance:p,options:S}),R=function(){};v.push(N||R)}})}function d(){v.forEach(function(m){return m()}),v=[]}return p}}var De={passive:!0};function io(e){var t=e.state,n=e.instance,o=e.options,a=o.scroll,i=a===void 0?!0:a,c=o.resize,s=c===void 0?!0:c,l=j(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(u){u.addEventListener("scroll",n.update,De)}),s&&l.addEventListener("resize",n.update,De),function(){i&&f.forEach(function(u){u.removeEventListener("scroll",n.update,De)}),s&&l.removeEventListener("resize",n.update,De)}}var lo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:io,data:{}};function so(e){var t=e.state,n=e.name;t.modifiersData[n]=oo({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var co={name:"popperOffsets",enabled:!0,phase:"read",fn:so,data:{}},uo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function fo(e){var t=e.x,n=e.y,o=window,a=o.devicePixelRatio||1;return{x:ce(t*a)/a||0,y:ce(n*a)/a||0}}function _t(e){var t,n=e.popper,o=e.popperRect,a=e.placement,i=e.variation,c=e.offsets,s=e.position,l=e.gpuAcceleration,f=e.adaptive,u=e.roundOffsets,v=e.isFixed,y=c.x,p=y===void 0?0:y,h=c.y,d=h===void 0?0:h,m=typeof u=="function"?u({x:p,y:d}):{x:p,y:d};p=m.x,d=m.y;var g=c.hasOwnProperty("x"),O=c.hasOwnProperty("y"),S=Be,E=Ve,N=window;if(f){var R=Mt(n),ue="clientHeight",Pe="clientWidth";if(R===j(n)&&(R=Ee(n),J(R).position!=="static"&&s==="absolute"&&(ue="scrollHeight",Pe="scrollWidth")),R=R,a===Ve||(a===Be||a===Ye)&&i===Je){E=Xe;var Qe=v&&N.visualViewport?N.visualViewport.height:R[ue];d-=Qe-o.height,d*=l?1:-1}if(a===Be||(a===Ve||a===Xe)&&i===Je){S=Ye;var Re=v&&N.visualViewport?N.visualViewport.width:R[Pe];p-=Re-o.width,p*=l?1:-1}}var zt=Object.assign({position:s},f&&uo),Ut=u===!0?fo({x:p,y:d}):{x:p,y:d};if(p=Ut.x,d=Ut.y,l){var ve;return Object.assign({},zt,(ve={},ve[E]=O?"0":"",ve[S]=g?"0":"",ve.transform=(N.devicePixelRatio||1)<=1?"translate("+p+"px, "+d+"px)":"translate3d("+p+"px, "+d+"px, 0)",ve))}return Object.assign({},zt,(t={},t[E]=O?d+"px":"",t[S]=g?p+"px":"",t.transform="",t))}function po(e){var t=e.state,n=e.options,o=n.gpuAcceleration,a=o===void 0?!0:o,i=n.adaptive,c=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,f={placement:Lt(t.placement),variation:Nt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_t(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_t(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var mo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:po,data:{}};function ho(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},a=t.attributes[n]||{},i=t.elements[n];!L(i)||!F(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(c){var s=a[c];s===!1?i.removeAttribute(c):i.setAttribute(c,s===!0?"":s)}))})}function bo(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var a=t.elements[o],i=t.attributes[o]||{},c=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),s=c.reduce(function(l,f){return l[f]="",l},{});!L(a)||!F(a)||(Object.assign(a.style,s),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}var go={name:"applyStyles",enabled:!0,phase:"write",fn:ho,effect:bo,requires:["computeStyles"]},vo=[lo,co,mo,go],yo=ao({defaultModifiers:vo});function xo(e){const t=r.ref(null),n=r.ref(null);return r.onMounted(()=>{r.watchEffect(o=>{if(!n.value||!t.value)return;const a=n.value.el||n.value,i=t.value.el||t.value;if(!(i instanceof HTMLElement)||!(a instanceof HTMLElement))return;const{destroy:c}=yo(i,a,e);o(c)})}),[t,n]}const wo=r.defineComponent({props:{position:{default:"left"},usePortal:{type:[Boolean,String],default:!1}},setup(e){const n=e.position==="left"?"bottom-end":"bottom-start",[o,a]=xo({placement:n});return(i,c)=>(r.openBlock(),r.createBlock(r.unref(Ir),{as:"div",class:"relative inline-block text-left"},{default:r.withCtx(()=>[r.createVNode(r.unref(Vr),{class:"focus:outline-none",ref_key:"button",ref:o},{default:r.withCtx(()=>[r.renderSlot(i.$slots,"button",{},()=>[r.createVNode(r.unref(T),{class:"fill-current",name:"ellipsis-h"})])]),_:3},512),(r.openBlock(),r.createBlock(r.Teleport,{to:typeof e.usePortal=="string"?e.usePortal:"body",disabled:!e.usePortal},[r.createElementVNode("div",{ref_key:"container",ref:a,class:"w-56"},[r.createVNode(r.Transition,{"enter-active-class":"transition duration-200 ease-in-out","enter-from-class":"transform -translate-y-4 opacity-0","enter-to-class":"transform opacity-100","leave-active-class":"transition duration-100 ease-in-out","leave-from-class":"transform opacity-100","leave-to-class":"transform -translate-y-2 opacity-0"},{default:r.withCtx(()=>[r.createVNode(r.unref(Br),{class:r.normalizeClass([{"absolute left-0 origin-top-left":!e.usePortal&&e.position==="right","absolute right-0 origin-top-right":!e.usePortal&&e.position==="left"},"z-40 mt-1 p-1 bg-white rounded shadow-lg text-grey-700 focus:outline-none w-full"])},{default:r.withCtx(()=>[r.renderSlot(i.$slots,"default")]),_:3},8,["class"])]),_:3})],512)],8,["to","disabled"]))]),_:3}))}}),ko={key:0,class:"bg-grey-300 px-2 rounded-lg max-w-[66px] truncate"},Co=r.defineComponent({props:{label:null,meta:null,disabled:{type:Boolean}},setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(Dr),r.normalizeProps(r.guardReactiveProps({disabled:e.disabled})),{default:r.withCtx(({active:o})=>[r.createElementVNode("span",r.mergeProps({class:["flex items-center justify-between px-4 py-2 text-xs leading-5 transition-colors duration-100 rounded-lg",[o?"bg-grey-200":"",e.disabled?"opacity-50 pointer-events-none":"hover:bg-grey-200 focus:bg-grey-200 focus:outline-none"]]},t.$attrs),[r.createElementVNode("span",null,r.toDisplayString(e.label),1),e.meta?(r.openBlock(),r.createElementBlock("span",ko,r.toDisplayString(e.meta),1)):r.createCommentVNode("",!0)],16)]),_:1},16))}}),So={class:"relative"},Oo={key:0,class:"absolute left-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4 pointer-events-none"},Eo={key:1,class:"block truncate"},Io={key:2,class:"text-grey-500 truncate"},Vo={class:"absolute right-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4 pointer-events-none"},Bo=r.defineComponent({props:{modelValue:null,size:{default:"medium"},icon:null,placeholder:null,isDisabled:{type:Boolean,default:!1},options:null},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=n.modelValue?r.ref(n.modelValue):r.ref(null),{inputClasses:a,disabledClasses:i,textSizeClasses:c}=We(n);return r.watch(()=>n.modelValue,s=>{var l;!s||s.id!==((l=o.value)==null?void 0:l.id)&&(o.value=s)}),r.watch(o,s=>{s&&t("update:modelValue",s)}),(s,l)=>(r.openBlock(),r.createBlock(r.unref(wr),{as:"div",modelValue:r.unref(o),"onUpdate:modelValue":l[0]||(l[0]=f=>r.isRef(o)?o.value=f:null),disabled:e.isDisabled},{default:r.withCtx(()=>[r.createElementVNode("div",So,[r.createVNode(r.unref(kr),{class:r.normalizeClass(["w-full mono-50 bg-white text-grey-800 placeholder-grey-600 border border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder-grey-400 dark:border-grey-700 focus:ring-2 focus:border-blue-400 focus:ring-blue-400 focus:outline-none dark:focus:border-blue-800 dark:focus:ring-blue-800 cursor-default rounded font-normal text-left",[r.unref(a),r.unref(c),r.unref(i)]])},{default:r.withCtx(()=>{var f,u;return[e.icon?(r.openBlock(),r.createElementBlock("span",Oo,[r.createVNode(T,{name:(u=(f=r.unref(o))==null?void 0:f.icon)!=null?u:e.icon},null,8,["name"])])):r.createCommentVNode("",!0),r.unref(o)?(r.openBlock(),r.createElementBlock("span",Eo,r.toDisplayString(r.unref(o).label),1)):(r.openBlock(),r.createElementBlock("span",Io,r.toDisplayString(e.placeholder),1)),r.createElementVNode("span",Vo,[r.createVNode(T,{class:"text-grey-400",name:"chevron-down","aria-hidden":"true"})])]}),_:1},8,["class"]),r.createVNode(r.Transition,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:r.withCtx(()=>[r.createVNode(r.unref(Cr),{class:"absolute z-10 mt-1 w-full bg-white dark:bg-grey-700 dark:text-grey-50 shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.options,f=>(r.openBlock(),r.createBlock(r.unref(Sr),{as:"template",key:f.id,value:f},{default:r.withCtx(({active:u,selected:v})=>[r.createElementVNode("li",{class:r.normalizeClass([u?"text-white bg-blue-500":"text-grey-900 dark:text-grey-50","cursor-default select-none relative py-2 pl-3 pr-9"])},[r.createElementVNode("span",{class:r.normalizeClass([v?"font-semibold":"font-normal","block truncate"])},[f.icon?(r.openBlock(),r.createBlock(T,{key:0,class:"inline-block mr-1",name:f.icon},null,8,["name"])):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(f.label),1)],2),v?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass([u?"text-blue-100":"text-blue-500","absolute inset-y-0 right-0 flex items-center pr-4"])},[r.createVNode(T,{name:"check",class:"h-5 w-5","aria-hidden":"true"})],2)):r.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue","disabled"]))}}),Do={class:"animate-pulse"},Po={class:"flex items-center justify-between space-x-4"},Ro={key:0,class:"w-12 h-12 bg-current rounded-full shrink-0"},To={key:1,class:"w-full h-8 bg-current rounded-lg"},$o={key:0,class:"mt-6 space-y-2"},Mo={key:1,class:"w-1/3 h-10 mt-6 bg-current rounded-lg"},Lo=r.defineComponent({props:{avatar:{type:Boolean,default:!1},title:{type:Boolean,default:!0},lines:{default:3},footer:{type:Boolean,default:!1}},setup(e){const t=e,n=new Array(t.lines).fill(void 0).map(()=>{const o=[4,5,6,8,10,16,24,32];return{margin:`mr-${o[Math.floor(Math.random()*o.length)]}`}});return(o,a)=>(r.openBlock(),r.createElementBlock("div",Do,[r.createElementVNode("div",Po,[e.avatar?(r.openBlock(),r.createElementBlock("div",Ro)):r.createCommentVNode("",!0),e.title?(r.openBlock(),r.createElementBlock("div",To)):r.createCommentVNode("",!0)]),e.lines>0?(r.openBlock(),r.createElementBlock("div",$o,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(n),(i,c)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["h-4 bg-current rounded-lg",i.margin]),key:c},null,2))),128))])):r.createCommentVNode("",!0),e.footer?(r.openBlock(),r.createElementBlock("div",Mo)):r.createCommentVNode("",!0)]))}}),No=r.defineComponent({setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(T),{class:"animate-spin",name:"circle-notch"}))}}),jo={class:"sr-only"},Ao=r.defineComponent({props:{id:{default:tt()},label:null,modelValue:{type:Boolean},description:null,onLabel:{default:"on"},offLabel:{default:"off"}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=o=>{t("update:modelValue",o),t("change",o)};return(o,a)=>(r.openBlock(),r.createBlock(r.unref(Rr),{modelValue:e.modelValue,label:e.label,class:r.normalizeClass([e.modelValue?"bg-blue-700":"bg-grey-700","relative inline-flex items-center h-6 transition rounded-full w-14 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-grey-900 focus:ring-blue-300"]),"onUpdate:modelValue":n},{default:r.withCtx(()=>[r.createElementVNode("span",{class:r.normalizeClass(["absolute text-xs text-center text-white inset-x-2",e.modelValue?"pr-3":"pl-3"])},r.toDisplayString(e.modelValue===!0?e.onLabel:e.offLabel),3),r.createElementVNode("span",jo,r.toDisplayString(e.label),1),r.createElementVNode("span",{class:r.normalizeClass([e.modelValue?"translate-x-9":"translate-x-1","inline-block w-4 h-4 transition bg-white rounded-full"])},null,2)]),_:1},8,["modelValue","label","class"]))}}),_o={class:"relative"},zo=["tabindex","value"],Uo={inheritAttrs:!1},Fo=r.defineComponent(Ze(H({},Uo),{props:{modelValue:null,size:{default:"medium"},isDisabled:{type:Boolean,default:!1},block:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const o=e,{inputClasses:a,disabledClasses:i,textSizeClasses:c}=We(o),s=function(u){n("update:modelValue",(u==null?void 0:u.target).value)},l=r.ref(null);return t({focus:()=>{o.isDisabled||l.value.focus()}}),(u,v)=>{var y;return r.openBlock(),r.createElementBlock("div",_o,[r.createElementVNode("textarea",r.mergeProps({class:["mono-50 bg-white text-grey-800 placeholder:text-grey-400 placeholder:font-normal border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder:text-grey-500 dark:border-grey-700 focus:border-blue-400 focus:ring-blue-400 dark:focus:border-blue-800 dark:focus:ring-blue-800 rounded",[r.unref(a),r.unref(c),r.unref(i)]],tabindex:e.isDisabled?"-1":void 0,value:(y=e.modelValue)!=null?y:""},u.$attrs,{ref_key:"input",ref:l,cols:"56",rows:"8",onInput:s}),`
|
|
10
|
-
`,16,
|
|
8
|
+
`));return t.cloneVNode(u,Object.assign({},d,f))}return Array.isArray(c)&&c.length===1?c[0]:c}return t.h(i,Object.assign({},d,f),c)}function Ne(e){let n=Object.assign({},e);for(let a in n)n[a]===void 0&&delete n[a];return n}function he(e,n=[]){let a=Object.assign({},e);for(let r of n)r in a&&delete a[r];return a}function pn(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}let mn=0;function bn(){return++mn}function j(){return bn()}var S=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(S||{});function gn(e){throw new Error("Unexpected object: "+e)}var R=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(R||{});function Le(e,n){let a=n.resolveItems();if(a.length<=0)return null;let r=n.resolveActiveIndex(),o=r!=null?r:-1,l=(()=>{switch(e.focus){case 0:return a.findIndex(i=>!n.resolveDisabled(i));case 1:{let i=a.slice().reverse().findIndex((d,c,f)=>o!==-1&&f.length-c-1>=o?!1:!n.resolveDisabled(d));return i===-1?i:a.length-1-i}case 2:return a.findIndex((i,d)=>d<=o?!1:!n.resolveDisabled(i));case 3:{let i=a.slice().reverse().findIndex(d=>!n.resolveDisabled(d));return i===-1?i:a.length-1-i}case 4:return a.findIndex(i=>n.resolveId(i)===e.id);case 5:return null;default:gn(e)}})();return l===-1?r:l}function C(e){return e==null||e.value==null?null:"$el"in e.value?e.value.$el:e.value}let $e=Symbol("Context");var H=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(H||{});function Me(){return t.inject($e,null)}function Pe(e){t.provide($e,e)}function je(e,n){if(e)return e;let a=n!=null?n:"button";if(typeof a=="string"&&a.toLowerCase()==="button")return"button"}function ye(e,n){let a=t.ref(je(e.value.type,e.value.as));return t.onMounted(()=>{a.value=je(e.value.type,e.value.as)}),t.watchEffect(()=>{var r;a.value||!C(n)||C(n)instanceof HTMLButtonElement&&!((r=C(n))!=null&&r.hasAttribute("type"))&&(a.value="button")}),a}function ze(e){if(typeof window=="undefined")return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let n=C(e);if(n)return n.ownerDocument}return document}function hn({container:e,accept:n,walk:a,enabled:r}){t.watchEffect(()=>{let o=e.value;if(!o||r!==void 0&&!r.value)return;let l=ze(e);if(!l)return;let i=Object.assign(c=>n(c),{acceptNode:n}),d=l.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,i,!1);for(;d.nextNode();)a(d.currentNode)})}let Ae=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var yn=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(yn||{}),vn=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(vn||{}),xn=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(xn||{}),ve=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ve||{});function _e(e,n=0){var a;return e===((a=ze(e))==null?void 0:a.body)?!1:$(n,{[0](){return e.matches(Ae)},[1](){let r=e;for(;r!==null;){if(r.matches(Ae))return!0;r=r.parentElement}return!1}})}function Fe(e,n=a=>a){return e.slice().sort((a,r)=>{let o=n(a),l=n(r);if(o===null||l===null)return 0;let i=o.compareDocumentPosition(l);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Ue(e,n,a){typeof window!="undefined"&&t.watchEffect(r=>{window.addEventListener(e,n,a),r(()=>window.removeEventListener(e,n,a))})}function wn(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(n=>setTimeout(()=>{throw n}))}var kn=(e=>(e[e.None=1]="None",e[e.IgnoreScrollbars=2]="IgnoreScrollbars",e))(kn||{});function He(e,n,a=1){let r=!1;function o(l){if(r)return;r=!0,wn(()=>{r=!1});let i=l.target;if(!i.ownerDocument.documentElement.contains(i))return;let d=function c(f){return typeof f=="function"?c(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);if((a&2)===2){let c=20,f=i.ownerDocument.documentElement;if(l.clientX>f.clientWidth-c||l.clientX<c||l.clientY>f.clientHeight-c||l.clientY<c)return}for(let c of d){if(c===null)continue;let f=c instanceof HTMLElement?c:C(c);if(f!=null&&f.contains(i))return}n(l,i)}Ue("pointerdown",o),Ue("mousedown",o)}var xe=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(xe||{});let We=t.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:n,attrs:a}){return()=>{let i=e,{features:r}=i,o=q(i,["features"]),l={"aria-hidden":(r&2)===2?!0:void 0,style:k({position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},(r&4)===4&&(r&2)!==2&&{display:"none"})};return I({props:k(k({},o),l),slot:{},attrs:a,slots:n,name:"Hidden"})}}});function qe(e={},n=null,a=[]){for(let[r,o]of Object.entries(e))Ge(a,Ye(n,r),o);return a}function Ye(e,n){return e?e+"["+n+"]":n}function Ge(e,n,a){if(Array.isArray(a))for(let[r,o]of a.entries())Ge(e,Ye(n,r.toString()),o);else a instanceof Date?e.push([n,a.toISOString()]):typeof a=="boolean"?e.push([n,a?"1":"0"]):typeof a=="string"?e.push([n,a]):typeof a=="number"?e.push([n,`${a}`]):a==null?e.push([n,""]):qe(a,n,e)}function Sn(e){var n;let a=(n=e==null?void 0:e.form)!=null?n:e.closest("form");if(a){for(let r of a.elements)if(r.tagName==="INPUT"&&r.type==="submit"||r.tagName==="BUTTON"&&r.type==="submit"||r.nodeName==="INPUT"&&r.type==="image"){r.click();return}}}let Ke=Symbol("DescriptionContext");function Cn(){let e=t.inject(Ke,null);if(e===null)throw new Error("Missing parent");return e}function On({slot:e=t.ref({}),name:n="Description",props:a={}}={}){let r=t.ref([]);function o(l){return r.value.push(l),()=>{let i=r.value.indexOf(l);i!==-1&&r.value.splice(i,1)}}return t.provide(Ke,{register:o,slot:e,name:n,props:a}),t.computed(()=>r.value.length>0?r.value.join(" "):void 0)}let En=t.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"}},setup(e,{attrs:n,slots:a}){let r=Cn(),o=`headlessui-description-${j()}`;return t.onMounted(()=>t.onUnmounted(r.register(o))),()=>{let{name:l="Description",slot:i=t.ref({}),props:d={}}=r,c=e,f=U(k({},Object.entries(d).reduce((s,[u,y])=>Object.assign(s,{[u]:t.unref(y)}),{})),{id:o});return I({props:k(k({},c),f),slot:i.value,attrs:n,slots:a,name:l})}}});var Rn=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Rn||{}),Dn=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Dn||{}),Tn=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Tn||{});function Vn(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let Xe=Symbol("ListboxContext");function X(e){let n=t.inject(Xe,null);if(n===null){let a=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,X),a}return n}let Bn=t.defineComponent({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean]},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:n,attrs:a,emit:r}){let o=t.ref(1),l=t.ref(null),i=t.ref(null),d=t.ref(null),c=t.ref([]),f=t.ref(""),s=t.ref(null),u=t.ref(1);function y(b=v=>v){let v=s.value!==null?c.value[s.value]:null,w=Fe(b(c.value.slice()),E=>C(E.dataRef.domRef)),O=v?w.indexOf(v):null;return O===-1&&(O=null),{options:w,activeOptionIndex:O}}let p=t.computed(()=>e.modelValue),h=t.computed(()=>e.multiple?1:0),m={listboxState:o,value:p,mode:h,compare(b,v){return b===v},orientation:t.computed(()=>e.horizontal?"horizontal":"vertical"),labelRef:l,buttonRef:i,optionsRef:d,disabled:t.computed(()=>e.disabled),options:c,searchQuery:f,activeOptionIndex:s,activationTrigger:u,closeListbox(){e.disabled||o.value!==1&&(o.value=1,s.value=null)},openListbox(){e.disabled||o.value!==0&&(o.value=0)},goToOption(b,v,w){if(e.disabled||o.value===1)return;let O=y(),E=Le(b===R.Specific?{focus:R.Specific,id:v}:{focus:b},{resolveItems:()=>O.options,resolveActiveIndex:()=>O.activeOptionIndex,resolveId:D=>D.id,resolveDisabled:D=>D.dataRef.disabled});f.value="",s.value=E,u.value=w!=null?w:1,c.value=O.options},search(b){if(e.disabled||o.value===1)return;let v=f.value!==""?0:1;f.value+=b.toLowerCase();let w=(s.value!==null?c.value.slice(s.value+v).concat(c.value.slice(0,s.value+v)):c.value).find(E=>E.dataRef.textValue.startsWith(f.value)&&!E.dataRef.disabled),O=w?c.value.indexOf(w):-1;O===-1||O===s.value||(s.value=O,u.value=1)},clearSearch(){e.disabled||o.value!==1&&f.value!==""&&(f.value="")},registerOption(b,v){let w=y(O=>[...O,{id:b,dataRef:v}]);c.value=w.options,s.value=w.activeOptionIndex},unregisterOption(b){let v=y(w=>{let O=w.findIndex(E=>E.id===b);return O!==-1&&w.splice(O,1),w});c.value=v.options,s.value=v.activeOptionIndex,u.value=1},select(b){e.disabled||r("update:modelValue",$(h.value,{[0]:()=>b,[1]:()=>{let v=t.toRaw(m.value.value).slice(),w=t.toRaw(b),O=v.findIndex(E=>m.compare(w,t.toRaw(E)));return O===-1?v.push(w):v.splice(O,1),v}}))}};return He([i,d],(b,v)=>{var w;o.value===0&&(m.closeListbox(),_e(v,ve.Loose)||(b.preventDefault(),(w=C(i))==null||w.focus()))}),t.provide(Xe,m),Pe(t.computed(()=>$(o.value,{[0]:H.Open,[1]:H.Closed}))),()=>{let D=e,{name:b,modelValue:v,disabled:w}=D,O=q(D,["name","modelValue","disabled"]),E={open:o.value===0,disabled:w};return t.h(t.Fragment,[...b!=null&&v!=null?qe({[b]:v}).map(([V,F])=>t.h(We,Ne({features:xe.Hidden,key:V,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:V,value:F}))):[],I({props:k(k({},a),he(O,["onUpdate:modelValue","horizontal","multiple","by"])),slot:E,slots:n,attrs:a,name:"Listbox"})])}}});t.defineComponent({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"}},setup(e,{attrs:n,slots:a}){let r=X("ListboxLabel"),o=`headlessui-listbox-label-${j()}`;function l(){var i;(i=C(r.buttonRef))==null||i.focus({preventScroll:!0})}return()=>{let i={open:r.listboxState.value===0,disabled:r.disabled.value},d={id:o,ref:r.labelRef,onClick:l};return I({props:k(k({},e),d),slot:i,attrs:n,slots:a,name:"ListboxLabel"})}}});let In=t.defineComponent({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"}},setup(e,{attrs:n,slots:a,expose:r}){let o=X("ListboxButton"),l=`headlessui-listbox-button-${j()}`;r({el:o.buttonRef,$el:o.buttonRef});function i(s){switch(s.key){case S.Space:case S.Enter:case S.ArrowDown:s.preventDefault(),o.openListbox(),t.nextTick(()=>{var u;(u=C(o.optionsRef))==null||u.focus({preventScroll:!0}),o.value.value||o.goToOption(R.First)});break;case S.ArrowUp:s.preventDefault(),o.openListbox(),t.nextTick(()=>{var u;(u=C(o.optionsRef))==null||u.focus({preventScroll:!0}),o.value.value||o.goToOption(R.Last)});break}}function d(s){switch(s.key){case S.Space:s.preventDefault();break}}function c(s){o.disabled.value||(o.listboxState.value===0?(o.closeListbox(),t.nextTick(()=>{var u;return(u=C(o.buttonRef))==null?void 0:u.focus({preventScroll:!0})})):(s.preventDefault(),o.openListbox(),Vn(()=>{var u;return(u=C(o.optionsRef))==null?void 0:u.focus({preventScroll:!0})})))}let f=ye(t.computed(()=>({as:e.as,type:n.type})),o.buttonRef);return()=>{var s,u;let y={open:o.listboxState.value===0,disabled:o.disabled.value},p={ref:o.buttonRef,id:l,type:f.value,"aria-haspopup":!0,"aria-controls":(s=C(o.optionsRef))==null?void 0:s.id,"aria-expanded":o.disabled.value?void 0:o.listboxState.value===0,"aria-labelledby":o.labelRef.value?[(u=C(o.labelRef))==null?void 0:u.id,l].join(" "):void 0,disabled:o.disabled.value===!0?!0:void 0,onKeydown:i,onKeyup:d,onClick:c};return I({props:k(k({},e),p),slot:y,attrs:n,slots:a,name:"ListboxButton"})}}}),Nn=t.defineComponent({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:n,slots:a,expose:r}){let o=X("ListboxOptions"),l=`headlessui-listbox-options-${j()}`,i=t.ref(null);r({el:o.optionsRef,$el:o.optionsRef});function d(s){switch(i.value&&clearTimeout(i.value),s.key){case S.Space:if(o.searchQuery.value!=="")return s.preventDefault(),s.stopPropagation(),o.search(s.key);case S.Enter:if(s.preventDefault(),s.stopPropagation(),o.activeOptionIndex.value!==null){let u=o.options.value[o.activeOptionIndex.value];o.select(u.dataRef.value)}o.mode.value===0&&(o.closeListbox(),t.nextTick(()=>{var u;return(u=C(o.buttonRef))==null?void 0:u.focus({preventScroll:!0})}));break;case $(o.orientation.value,{vertical:S.ArrowDown,horizontal:S.ArrowRight}):return s.preventDefault(),s.stopPropagation(),o.goToOption(R.Next);case $(o.orientation.value,{vertical:S.ArrowUp,horizontal:S.ArrowLeft}):return s.preventDefault(),s.stopPropagation(),o.goToOption(R.Previous);case S.Home:case S.PageUp:return s.preventDefault(),s.stopPropagation(),o.goToOption(R.First);case S.End:case S.PageDown:return s.preventDefault(),s.stopPropagation(),o.goToOption(R.Last);case S.Escape:s.preventDefault(),s.stopPropagation(),o.closeListbox(),t.nextTick(()=>{var u;return(u=C(o.buttonRef))==null?void 0:u.focus({preventScroll:!0})});break;case S.Tab:s.preventDefault(),s.stopPropagation();break;default:s.key.length===1&&(o.search(s.key),i.value=setTimeout(()=>o.clearSearch(),350));break}}let c=Me(),f=t.computed(()=>c!==null?c.value===H.Open:o.listboxState.value===0);return()=>{var s,u,y,p;let h={open:o.listboxState.value===0},m={"aria-activedescendant":o.activeOptionIndex.value===null||(s=o.options.value[o.activeOptionIndex.value])==null?void 0:s.id,"aria-multiselectable":o.mode.value===1?!0:void 0,"aria-labelledby":(p=(u=C(o.labelRef))==null?void 0:u.id)!=null?p:(y=C(o.buttonRef))==null?void 0:y.id,"aria-orientation":o.orientation.value,id:l,onKeydown:d,role:"listbox",tabIndex:0,ref:o.optionsRef};return I({props:k(k({},e),m),slot:h,attrs:n,slots:a,features:K.RenderStrategy|K.Static,visible:f.value,name:"ListboxOptions"})}}}),Ln=t.defineComponent({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1}},setup(e,{slots:n,attrs:a,expose:r}){let o=X("ListboxOption"),l=`headlessui-listbox-option-${j()}`,i=t.ref(null);r({el:i,$el:i});let d=t.computed(()=>o.activeOptionIndex.value!==null?o.options.value[o.activeOptionIndex.value].id===l:!1),c=t.computed(()=>$(o.mode.value,{[0]:()=>o.compare(t.toRaw(o.value.value),t.toRaw(e.value)),[1]:()=>t.toRaw(o.value.value).some(m=>o.compare(t.toRaw(m),t.toRaw(e.value)))})),f=t.computed(()=>$(o.mode.value,{[1]:()=>{var m;let b=t.toRaw(o.value.value);return((m=o.options.value.find(v=>b.some(w=>o.compare(t.toRaw(w),t.toRaw(v.dataRef.value)))))==null?void 0:m.id)===l},[0]:()=>c.value})),s=t.computed(()=>({disabled:e.disabled,value:e.value,textValue:"",domRef:i}));t.onMounted(()=>{var m,b;let v=(b=(m=C(i))==null?void 0:m.textContent)==null?void 0:b.toLowerCase().trim();v!==void 0&&(s.value.textValue=v)}),t.onMounted(()=>o.registerOption(l,s)),t.onUnmounted(()=>o.unregisterOption(l)),t.onMounted(()=>{t.watch([o.listboxState,c],()=>{o.listboxState.value===0&&(!c.value||$(o.mode.value,{[1]:()=>{f.value&&o.goToOption(R.Specific,l)},[0]:()=>{o.goToOption(R.Specific,l)}}))},{immediate:!0})}),t.watchEffect(()=>{o.listboxState.value===0&&(!d.value||o.activationTrigger.value!==0&&t.nextTick(()=>{var m,b;return(b=(m=C(i))==null?void 0:m.scrollIntoView)==null?void 0:b.call(m,{block:"nearest"})}))});function u(m){if(e.disabled)return m.preventDefault();o.select(e.value),o.mode.value===0&&(o.closeListbox(),t.nextTick(()=>{var b;return(b=C(o.buttonRef))==null?void 0:b.focus({preventScroll:!0})}))}function y(){if(e.disabled)return o.goToOption(R.Nothing);o.goToOption(R.Specific,l)}function p(){e.disabled||d.value||o.goToOption(R.Specific,l,0)}function h(){e.disabled||!d.value||o.goToOption(R.Nothing)}return()=>{let{disabled:m}=e,b={active:d.value,selected:c.value,disabled:m},v={id:l,ref:i,role:"option",tabIndex:m===!0?void 0:-1,"aria-disabled":m===!0?!0:void 0,"aria-selected":c.value===!0?c.value:void 0,disabled:void 0,onClick:u,onFocus:y,onPointermove:p,onMousemove:p,onPointerleave:h,onMouseleave:h};return I({props:k(k({},he(e,["value","disabled"])),v),slot:b,attrs:a,slots:n,name:"ListboxOption"})}}});var $n=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))($n||{}),Mn=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Mn||{});function Pn(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let Qe=Symbol("MenuContext");function te(e){let n=t.inject(Qe,null);if(n===null){let a=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,te),a}return n}let jn=t.defineComponent({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:n,attrs:a}){let r=t.ref(1),o=t.ref(null),l=t.ref(null),i=t.ref([]),d=t.ref(""),c=t.ref(null),f=t.ref(1);function s(y=p=>p){let p=c.value!==null?i.value[c.value]:null,h=Fe(y(i.value.slice()),b=>C(b.dataRef.domRef)),m=p?h.indexOf(p):null;return m===-1&&(m=null),{items:h,activeItemIndex:m}}let u={menuState:r,buttonRef:o,itemsRef:l,items:i,searchQuery:d,activeItemIndex:c,activationTrigger:f,closeMenu:()=>{r.value=1,c.value=null},openMenu:()=>r.value=0,goToItem(y,p,h){let m=s(),b=Le(y===R.Specific?{focus:R.Specific,id:p}:{focus:y},{resolveItems:()=>m.items,resolveActiveIndex:()=>m.activeItemIndex,resolveId:v=>v.id,resolveDisabled:v=>v.dataRef.disabled});d.value="",c.value=b,f.value=h!=null?h:1,i.value=m.items},search(y){let p=d.value!==""?0:1;d.value+=y.toLowerCase();let h=(c.value!==null?i.value.slice(c.value+p).concat(i.value.slice(0,c.value+p)):i.value).find(b=>b.dataRef.textValue.startsWith(d.value)&&!b.dataRef.disabled),m=h?i.value.indexOf(h):-1;m===-1||m===c.value||(c.value=m,f.value=1)},clearSearch(){d.value=""},registerItem(y,p){let h=s(m=>[...m,{id:y,dataRef:p}]);i.value=h.items,c.value=h.activeItemIndex,f.value=1},unregisterItem(y){let p=s(h=>{let m=h.findIndex(b=>b.id===y);return m!==-1&&h.splice(m,1),h});i.value=p.items,c.value=p.activeItemIndex,f.value=1}};return He([o,l],(y,p)=>{var h;r.value===0&&(u.closeMenu(),_e(p,ve.Loose)||(y.preventDefault(),(h=C(o))==null||h.focus()))}),t.provide(Qe,u),Pe(t.computed(()=>$(r.value,{[0]:H.Open,[1]:H.Closed}))),()=>{let y={open:r.value===0};return I({props:e,slot:y,slots:n,attrs:a,name:"Menu"})}}}),zn=t.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"}},setup(e,{attrs:n,slots:a,expose:r}){let o=te("MenuButton"),l=`headlessui-menu-button-${j()}`;r({el:o.buttonRef,$el:o.buttonRef});function i(s){switch(s.key){case S.Space:case S.Enter:case S.ArrowDown:s.preventDefault(),s.stopPropagation(),o.openMenu(),t.nextTick(()=>{var u;(u=C(o.itemsRef))==null||u.focus({preventScroll:!0}),o.goToItem(R.First)});break;case S.ArrowUp:s.preventDefault(),s.stopPropagation(),o.openMenu(),t.nextTick(()=>{var u;(u=C(o.itemsRef))==null||u.focus({preventScroll:!0}),o.goToItem(R.Last)});break}}function d(s){switch(s.key){case S.Space:s.preventDefault();break}}function c(s){e.disabled||(o.menuState.value===0?(o.closeMenu(),t.nextTick(()=>{var u;return(u=C(o.buttonRef))==null?void 0:u.focus({preventScroll:!0})})):(s.preventDefault(),s.stopPropagation(),o.openMenu(),Pn(()=>{var u;return(u=C(o.itemsRef))==null?void 0:u.focus({preventScroll:!0})})))}let f=ye(t.computed(()=>({as:e.as,type:n.type})),o.buttonRef);return()=>{var s;let u={open:o.menuState.value===0},y={ref:o.buttonRef,id:l,type:f.value,"aria-haspopup":!0,"aria-controls":(s=C(o.itemsRef))==null?void 0:s.id,"aria-expanded":e.disabled?void 0:o.menuState.value===0,onKeydown:i,onKeyup:d,onClick:c};return I({props:k(k({},e),y),slot:u,attrs:n,slots:a,name:"MenuButton"})}}}),An=t.defineComponent({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:n,slots:a,expose:r}){let o=te("MenuItems"),l=`headlessui-menu-items-${j()}`,i=t.ref(null);r({el:o.itemsRef,$el:o.itemsRef}),hn({container:t.computed(()=>C(o.itemsRef)),enabled:t.computed(()=>o.menuState.value===0),accept(u){return u.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:u.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(u){u.setAttribute("role","none")}});function d(u){var y;switch(i.value&&clearTimeout(i.value),u.key){case S.Space:if(o.searchQuery.value!=="")return u.preventDefault(),u.stopPropagation(),o.search(u.key);case S.Enter:if(u.preventDefault(),u.stopPropagation(),o.activeItemIndex.value!==null){let p=o.items.value[o.activeItemIndex.value];(y=C(p.dataRef.domRef))==null||y.click()}o.closeMenu(),t.nextTick(()=>{var p;return(p=C(o.buttonRef))==null?void 0:p.focus({preventScroll:!0})});break;case S.ArrowDown:return u.preventDefault(),u.stopPropagation(),o.goToItem(R.Next);case S.ArrowUp:return u.preventDefault(),u.stopPropagation(),o.goToItem(R.Previous);case S.Home:case S.PageUp:return u.preventDefault(),u.stopPropagation(),o.goToItem(R.First);case S.End:case S.PageDown:return u.preventDefault(),u.stopPropagation(),o.goToItem(R.Last);case S.Escape:u.preventDefault(),u.stopPropagation(),o.closeMenu(),t.nextTick(()=>{var p;return(p=C(o.buttonRef))==null?void 0:p.focus({preventScroll:!0})});break;case S.Tab:u.preventDefault(),u.stopPropagation();break;default:u.key.length===1&&(o.search(u.key),i.value=setTimeout(()=>o.clearSearch(),350));break}}function c(u){switch(u.key){case S.Space:u.preventDefault();break}}let f=Me(),s=t.computed(()=>f!==null?f.value===H.Open:o.menuState.value===0);return()=>{var u,y;let p={open:o.menuState.value===0},h={"aria-activedescendant":o.activeItemIndex.value===null||(u=o.items.value[o.activeItemIndex.value])==null?void 0:u.id,"aria-labelledby":(y=C(o.buttonRef))==null?void 0:y.id,id:l,onKeydown:d,onKeyup:c,role:"menu",tabIndex:0,ref:o.itemsRef};return I({props:k(k({},e),h),slot:p,attrs:n,slots:a,features:K.RenderStrategy|K.Static,visible:s.value,name:"MenuItems"})}}}),_n=t.defineComponent({name:"MenuItem",props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1}},setup(e,{slots:n,attrs:a,expose:r}){let o=te("MenuItem"),l=`headlessui-menu-item-${j()}`,i=t.ref(null);r({el:i,$el:i});let d=t.computed(()=>o.activeItemIndex.value!==null?o.items.value[o.activeItemIndex.value].id===l:!1),c=t.computed(()=>({disabled:e.disabled,textValue:"",domRef:i}));t.onMounted(()=>{var p,h;let m=(h=(p=C(i))==null?void 0:p.textContent)==null?void 0:h.toLowerCase().trim();m!==void 0&&(c.value.textValue=m)}),t.onMounted(()=>o.registerItem(l,c)),t.onUnmounted(()=>o.unregisterItem(l)),t.watchEffect(()=>{o.menuState.value===0&&(!d.value||o.activationTrigger.value!==0&&t.nextTick(()=>{var p,h;return(h=(p=C(i))==null?void 0:p.scrollIntoView)==null?void 0:h.call(p,{block:"nearest"})}))});function f(p){if(e.disabled)return p.preventDefault();o.closeMenu(),t.nextTick(()=>{var h;return(h=C(o.buttonRef))==null?void 0:h.focus({preventScroll:!0})})}function s(){if(e.disabled)return o.goToItem(R.Nothing);o.goToItem(R.Specific,l)}function u(){e.disabled||d.value||o.goToItem(R.Specific,l,0)}function y(){e.disabled||!d.value||o.goToItem(R.Nothing)}return()=>{let{disabled:p}=e,h={active:d.value,disabled:p};return I({props:U(k({},e),{id:l,ref:i,role:"menuitem",tabIndex:p===!0?void 0:-1,"aria-disabled":p===!0?!0:void 0,onClick:f,onFocus:s,onPointermove:u,onMousemove:u,onPointerleave:y,onMouseleave:y}),slot:h,attrs:a,slots:n,name:"MenuItem"})}}}),Je=Symbol("LabelContext");function Ze(){let e=t.inject(Je,null);if(e===null){let n=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(n,Ze),n}return e}function Fn({slot:e={},name:n="Label",props:a={}}={}){let r=t.ref([]);function o(l){return r.value.push(l),()=>{let i=r.value.indexOf(l);i!==-1&&r.value.splice(i,1)}}return t.provide(Je,{register:o,slot:e,name:n,props:a}),t.computed(()=>r.value.length>0?r.value.join(" "):void 0)}let Un=t.defineComponent({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1}},setup(e,{slots:n,attrs:a}){let r=Ze(),o=`headlessui-label-${j()}`;return t.onMounted(()=>t.onUnmounted(r.register(o))),()=>{let{name:l="Label",slot:i={},props:d={}}=r,y=e,{passive:c}=y,f=q(y,["passive"]),s=U(k({},Object.entries(d).reduce((p,[h,m])=>Object.assign(p,{[h]:t.unref(m)}),{})),{id:o}),u=k(k({},f),s);return c&&delete u.onClick,I({props:u,slot:i,attrs:a,slots:n,name:l})}}}),et=Symbol("GroupContext");t.defineComponent({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:n,attrs:a}){let r=t.ref(null),o=Fn({name:"SwitchLabel",props:{onClick(){!r.value||(r.value.click(),r.value.focus({preventScroll:!0}))}}}),l=On({name:"SwitchDescription"});return t.provide(et,{switchRef:r,labelledby:o,describedby:l}),()=>I({props:e,slot:{},slots:n,attrs:a,name:"SwitchGroup"})}});let Hn=t.defineComponent({name:"Switch",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:!1},name:{type:String,optional:!0},value:{type:String,optional:!0}},inheritAttrs:!1,setup(e,{emit:n,attrs:a,slots:r,expose:o}){let l=t.inject(et,null),i=`headlessui-switch-${j()}`;function d(){n("update:modelValue",!e.modelValue)}let c=t.ref(null),f=l===null?c:l.switchRef,s=ye(t.computed(()=>({as:e.as,type:a.type})),f);o({el:f,$el:f});function u(h){h.preventDefault(),d()}function y(h){h.key===S.Space?(h.preventDefault(),d()):h.key===S.Enter&&Sn(h.currentTarget)}function p(h){h.preventDefault()}return()=>{let E=e,{name:h,value:m,modelValue:b}=E,v=q(E,["name","value","modelValue"]),w={checked:b},O={id:i,ref:f,role:"switch",type:s.value,tabIndex:0,"aria-checked":b,"aria-labelledby":l==null?void 0:l.labelledby.value,"aria-describedby":l==null?void 0:l.describedby.value,onClick:u,onKeyup:y,onKeypress:p};return t.h(t.Fragment,[h!=null&&b!=null?t.h(We,Ne({features:xe.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:b,name:h,value:m})):null,I({props:k(k(k({},a),v),O),slot:w,attrs:a,slots:r,name:"Switch"})])}}});function z(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var n=e.ownerDocument;return n&&n.defaultView||window}return e}function tt(e){var n=z(e).Element;return e instanceof n||e instanceof Element}function M(e){var n=z(e).HTMLElement;return e instanceof n||e instanceof HTMLElement}function nt(e){if(typeof ShadowRoot=="undefined")return!1;var n=z(e).ShadowRoot;return e instanceof n||e instanceof ShadowRoot}var Y=Math.round;function ne(e,n){n===void 0&&(n=!1);var a=e.getBoundingClientRect(),r=1,o=1;if(M(e)&&n){var l=e.offsetHeight,i=e.offsetWidth;i>0&&(r=Y(a.width)/i||1),l>0&&(o=Y(a.height)/l||1)}return{width:a.width/r,height:a.height/o,top:a.top/o,right:a.right/r,bottom:a.bottom/o,left:a.left/r,x:a.left/r,y:a.top/o}}function ot(e){var n=z(e),a=n.pageXOffset,r=n.pageYOffset;return{scrollLeft:a,scrollTop:r}}function Wn(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function qn(e){return e===z(e)||!M(e)?ot(e):Wn(e)}function A(e){return e?(e.nodeName||"").toLowerCase():null}function oe(e){return((tt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Yn(e){return ne(oe(e)).left+ot(e).scrollLeft}function W(e){return z(e).getComputedStyle(e)}function we(e){var n=W(e),a=n.overflow,r=n.overflowX,o=n.overflowY;return/auto|scroll|overlay|hidden/.test(a+o+r)}function Gn(e){var n=e.getBoundingClientRect(),a=Y(n.width)/e.offsetWidth||1,r=Y(n.height)/e.offsetHeight||1;return a!==1||r!==1}function Kn(e,n,a){a===void 0&&(a=!1);var r=M(n),o=M(n)&&Gn(n),l=oe(n),i=ne(e,o),d={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!a)&&((A(n)!=="body"||we(l))&&(d=qn(n)),M(n)?(c=ne(n,!0),c.x+=n.clientLeft,c.y+=n.clientTop):l&&(c.x=Yn(l))),{x:i.left+d.scrollLeft-c.x,y:i.top+d.scrollTop-c.y,width:i.width,height:i.height}}function Xn(e){var n=ne(e),a=e.offsetWidth,r=e.offsetHeight;return Math.abs(n.width-a)<=1&&(a=n.width),Math.abs(n.height-r)<=1&&(r=n.height),{x:e.offsetLeft,y:e.offsetTop,width:a,height:r}}function ke(e){return A(e)==="html"?e:e.assignedSlot||e.parentNode||(nt(e)?e.host:null)||oe(e)}function at(e){return["html","body","#document"].indexOf(A(e))>=0?e.ownerDocument.body:M(e)&&we(e)?e:at(ke(e))}function ae(e,n){var a;n===void 0&&(n=[]);var r=at(e),o=r===((a=e.ownerDocument)==null?void 0:a.body),l=z(r),i=o?[l].concat(l.visualViewport||[],we(r)?r:[]):r,d=n.concat(i);return o?d:d.concat(ae(ke(i)))}function Qn(e){return["table","td","th"].indexOf(A(e))>=0}function rt(e){return!M(e)||W(e).position==="fixed"?null:e.offsetParent}function Jn(e){var n=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,a=navigator.userAgent.indexOf("Trident")!==-1;if(a&&M(e)){var r=W(e);if(r.position==="fixed")return null}var o=ke(e);for(nt(o)&&(o=o.host);M(o)&&["html","body"].indexOf(A(o))<0;){var l=W(o);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||n&&l.willChange==="filter"||n&&l.filter&&l.filter!=="none")return o;o=o.parentNode}return null}function lt(e){for(var n=z(e),a=rt(e);a&&Qn(a)&&W(a).position==="static";)a=rt(a);return a&&(A(a)==="html"||A(a)==="body"&&W(a).position==="static")?n:a||Jn(e)||n}var re="top",Se="bottom",Ce="right",le="left",Zn="start",Oe="end",eo="beforeRead",to="read",no="afterRead",oo="beforeMain",ao="main",ro="afterMain",lo="beforeWrite",io="write",so="afterWrite",co=[eo,to,no,oo,ao,ro,lo,io,so];function uo(e){var n=new Map,a=new Set,r=[];e.forEach(function(l){n.set(l.name,l)});function o(l){a.add(l.name);var i=[].concat(l.requires||[],l.requiresIfExists||[]);i.forEach(function(d){if(!a.has(d)){var c=n.get(d);c&&o(c)}}),r.push(l)}return e.forEach(function(l){a.has(l.name)||o(l)}),r}function fo(e){var n=uo(e);return co.reduce(function(a,r){return a.concat(n.filter(function(o){return o.phase===r}))},[])}function po(e){var n;return function(){return n||(n=new Promise(function(a){Promise.resolve().then(function(){n=void 0,a(e())})})),n}}function it(e){return e.split("-")[0]}function mo(e){var n=e.reduce(function(a,r){var o=a[r.name];return a[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,a},{});return Object.keys(n).map(function(a){return n[a]})}function st(e){return e.split("-")[1]}function bo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function go(e){var n=e.reference,a=e.element,r=e.placement,o=r?it(r):null,l=r?st(r):null,i=n.x+n.width/2-a.width/2,d=n.y+n.height/2-a.height/2,c;switch(o){case re:c={x:i,y:n.y-a.height};break;case Se:c={x:i,y:n.y+n.height};break;case Ce:c={x:n.x+n.width,y:d};break;case le:c={x:n.x-a.width,y:d};break;default:c={x:n.x,y:n.y}}var f=o?bo(o):null;if(f!=null){var s=f==="y"?"height":"width";switch(l){case Zn:c[f]=c[f]-(n[s]/2-a[s]/2);break;case Oe:c[f]=c[f]+(n[s]/2-a[s]/2);break}}return c}var ct={placement:"bottom",modifiers:[],strategy:"absolute"};function ut(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return!n.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ho(e){e===void 0&&(e={});var n=e,a=n.defaultModifiers,r=a===void 0?[]:a,o=n.defaultOptions,l=o===void 0?ct:o;return function(d,c,f){f===void 0&&(f=l);var s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ct,l),modifiersData:{},elements:{reference:d,popper:c},attributes:{},styles:{}},u=[],y=!1,p={state:s,setOptions:function(v){var w=typeof v=="function"?v(s.options):v;m(),s.options=Object.assign({},l,s.options,w),s.scrollParents={reference:tt(d)?ae(d):d.contextElement?ae(d.contextElement):[],popper:ae(c)};var O=fo(mo([].concat(r,s.options.modifiers)));return s.orderedModifiers=O.filter(function(E){return E.enabled}),h(),p.update()},forceUpdate:function(){if(!y){var v=s.elements,w=v.reference,O=v.popper;if(!!ut(w,O)){s.rects={reference:Kn(w,lt(O),s.options.strategy==="fixed"),popper:Xn(O)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(ce){return s.modifiersData[ce.name]=Object.assign({},ce.data)});for(var E=0;E<s.orderedModifiers.length;E++){if(s.reset===!0){s.reset=!1,E=-1;continue}var D=s.orderedModifiers[E],V=D.fn,F=D.options,se=F===void 0?{}:F,Ee=D.name;typeof V=="function"&&(s=V({state:s,options:se,name:Ee,instance:p})||s)}}}},update:po(function(){return new Promise(function(b){p.forceUpdate(),b(s)})}),destroy:function(){m(),y=!0}};if(!ut(d,c))return p;p.setOptions(f).then(function(b){!y&&f.onFirstUpdate&&f.onFirstUpdate(b)});function h(){s.orderedModifiers.forEach(function(b){var v=b.name,w=b.options,O=w===void 0?{}:w,E=b.effect;if(typeof E=="function"){var D=E({state:s,name:v,instance:p,options:O}),V=function(){};u.push(D||V)}})}function m(){u.forEach(function(b){return b()}),u=[]}return p}}var ie={passive:!0};function yo(e){var n=e.state,a=e.instance,r=e.options,o=r.scroll,l=o===void 0?!0:o,i=r.resize,d=i===void 0?!0:i,c=z(n.elements.popper),f=[].concat(n.scrollParents.reference,n.scrollParents.popper);return l&&f.forEach(function(s){s.addEventListener("scroll",a.update,ie)}),d&&c.addEventListener("resize",a.update,ie),function(){l&&f.forEach(function(s){s.removeEventListener("scroll",a.update,ie)}),d&&c.removeEventListener("resize",a.update,ie)}}var vo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yo,data:{}};function xo(e){var n=e.state,a=e.name;n.modifiersData[a]=go({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}var wo={name:"popperOffsets",enabled:!0,phase:"read",fn:xo,data:{}},ko={top:"auto",right:"auto",bottom:"auto",left:"auto"};function So(e){var n=e.x,a=e.y,r=window,o=r.devicePixelRatio||1;return{x:Y(n*o)/o||0,y:Y(a*o)/o||0}}function dt(e){var n,a=e.popper,r=e.popperRect,o=e.placement,l=e.variation,i=e.offsets,d=e.position,c=e.gpuAcceleration,f=e.adaptive,s=e.roundOffsets,u=e.isFixed,y=i.x,p=y===void 0?0:y,h=i.y,m=h===void 0?0:h,b=typeof s=="function"?s({x:p,y:m}):{x:p,y:m};p=b.x,m=b.y;var v=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),O=le,E=re,D=window;if(f){var V=lt(a),F="clientHeight",se="clientWidth";if(V===z(a)&&(V=oe(a),W(V).position!=="static"&&d==="absolute"&&(F="scrollHeight",se="scrollWidth")),V=V,o===re||(o===le||o===Ce)&&l===Oe){E=Se;var Ee=u&&V===D&&D.visualViewport?D.visualViewport.height:V[F];m-=Ee-r.height,m*=c?1:-1}if(o===le||(o===re||o===Se)&&l===Oe){O=Ce;var ce=u&&V===D&&D.visualViewport?D.visualViewport.width:V[se];p-=ce-r.width,p*=c?1:-1}}var ft=Object.assign({position:d},f&&ko),pt=s===!0?So({x:p,y:m}):{x:p,y:m};if(p=pt.x,m=pt.y,c){var Q;return Object.assign({},ft,(Q={},Q[E]=w?"0":"",Q[O]=v?"0":"",Q.transform=(D.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",Q))}return Object.assign({},ft,(n={},n[E]=w?m+"px":"",n[O]=v?p+"px":"",n.transform="",n))}function Co(e){var n=e.state,a=e.options,r=a.gpuAcceleration,o=r===void 0?!0:r,l=a.adaptive,i=l===void 0?!0:l,d=a.roundOffsets,c=d===void 0?!0:d,f={placement:it(n.placement),variation:st(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:o,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,dt(Object.assign({},f,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:i,roundOffsets:c})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,dt(Object.assign({},f,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}var Oo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Co,data:{}};function Eo(e){var n=e.state;Object.keys(n.elements).forEach(function(a){var r=n.styles[a]||{},o=n.attributes[a]||{},l=n.elements[a];!M(l)||!A(l)||(Object.assign(l.style,r),Object.keys(o).forEach(function(i){var d=o[i];d===!1?l.removeAttribute(i):l.setAttribute(i,d===!0?"":d)}))})}function Ro(e){var n=e.state,a={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,a.popper),n.styles=a,n.elements.arrow&&Object.assign(n.elements.arrow.style,a.arrow),function(){Object.keys(n.elements).forEach(function(r){var o=n.elements[r],l=n.attributes[r]||{},i=Object.keys(n.styles.hasOwnProperty(r)?n.styles[r]:a[r]),d=i.reduce(function(c,f){return c[f]="",c},{});!M(o)||!A(o)||(Object.assign(o.style,d),Object.keys(l).forEach(function(c){o.removeAttribute(c)}))})}}var Do={name:"applyStyles",enabled:!0,phase:"write",fn:Eo,effect:Ro,requires:["computeStyles"]},To=[vo,wo,Oo,Do],Vo=ho({defaultModifiers:To});function Bo(e){const n=t.ref(null),a=t.ref(null);return t.onMounted(()=>{t.watchEffect(r=>{if(!a.value||!n.value)return;const o=a.value.el||a.value,l=n.value.el||n.value;if(!(l instanceof HTMLElement)||!(o instanceof HTMLElement))return;const{destroy:i}=Vo(l,o,e);r(i)})}),[n,a]}const Io=t.defineComponent({__name:"MenuContainer",props:{position:{default:"left"},usePortal:{type:[Boolean,String],default:!1}},setup(e){const a=e.position==="left"?"bottom-end":"bottom-start",[r,o]=Bo({placement:a});return(l,i)=>(t.openBlock(),t.createBlock(t.unref(jn),{as:"div",class:"relative inline-block text-left"},{default:t.withCtx(()=>[t.createVNode(t.unref(zn),{class:"focus:outline-none",ref_key:"button",ref:r},{default:t.withCtx(()=>[t.renderSlot(l.$slots,"button",{},()=>[t.createVNode(t.unref(L),{class:"fill-current",name:"ellipsis-h"})])]),_:3},512),(t.openBlock(),t.createBlock(t.Teleport,{to:typeof e.usePortal=="string"?e.usePortal:"body",disabled:!e.usePortal},[t.createElementVNode("div",{ref_key:"container",ref:o,class:"w-56"},[t.createVNode(t.Transition,{"enter-active-class":"transition duration-200 ease-in-out","enter-from-class":"transform -translate-y-4 opacity-0","enter-to-class":"transform opacity-100","leave-active-class":"transition duration-100 ease-in-out","leave-from-class":"transform opacity-100","leave-to-class":"transform -translate-y-2 opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(An),{class:t.normalizeClass([{"absolute left-0 origin-top-left":!e.usePortal&&e.position==="right","absolute right-0 origin-top-right":!e.usePortal&&e.position==="left"},"z-40 mt-1 p-1 bg-white rounded shadow-lg text-grey-700 focus:outline-none w-full"])},{default:t.withCtx(()=>[t.renderSlot(l.$slots,"default")]),_:3},8,["class"])]),_:3})],512)],8,["to","disabled"]))]),_:3}))}}),No={key:0,class:"bg-grey-300 px-2 rounded-lg max-w-[66px] truncate"},Lo=t.defineComponent({__name:"MenuLink",props:{label:null,meta:null,disabled:{type:Boolean}},setup(e){return(n,a)=>(t.openBlock(),t.createBlock(t.unref(_n),t.normalizeProps(t.guardReactiveProps({disabled:e.disabled})),{default:t.withCtx(({active:r})=>[t.createElementVNode("span",t.mergeProps({class:["flex items-center justify-between px-4 py-2 text-xs leading-5 transition-colors duration-100 rounded-lg",[r?"bg-grey-200":"",e.disabled?"opacity-50 pointer-events-none":"hover:bg-grey-200 focus:bg-grey-200 focus:outline-none"]]},n.$attrs),[t.createElementVNode("span",null,t.toDisplayString(e.label),1),e.meta?(t.openBlock(),t.createElementBlock("span",No,t.toDisplayString(e.meta),1)):t.createCommentVNode("",!0)],16)]),_:1},16))}}),$o={class:"relative"},Mo={key:0,class:"absolute left-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4 pointer-events-none"},Po={key:1,class:"block truncate"},jo={key:2,class:"text-grey-500 truncate"},zo={class:"absolute right-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4 pointer-events-none"},Ao=t.defineComponent({__name:"Select",props:{modelValue:null,size:{default:"medium"},icon:null,placeholder:null,isDisabled:{type:Boolean,default:!1},options:null},emits:["update:modelValue"],setup(e,{emit:n}){const a=e,r=a.modelValue?t.ref(a.modelValue):t.ref(void 0),{inputClasses:o,disabledClasses:l,textSizeClasses:i}=be(a);return t.watch(()=>a.modelValue,d=>{var c;!d||d.id!==((c=r.value)==null?void 0:c.id)&&(r.value=d)}),t.watch(r,d=>{d&&n("update:modelValue",d)}),(d,c)=>(t.openBlock(),t.createBlock(t.unref(Bn),{as:"div",modelValue:t.unref(r),"onUpdate:modelValue":c[0]||(c[0]=f=>t.isRef(r)?r.value=f:null),disabled:e.isDisabled},{default:t.withCtx(()=>[t.createElementVNode("div",$o,[t.createVNode(t.unref(In),{class:t.normalizeClass(["w-full mono-50 bg-white text-grey-800 placeholder-grey-600 border border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder-grey-400 dark:border-grey-700 focus:ring-2 focus:border-blue-400 focus:ring-blue-400 focus:outline-none dark:focus:border-blue-800 dark:focus:ring-blue-800 cursor-default rounded font-normal text-left",[t.unref(o),t.unref(i),t.unref(l)]])},{default:t.withCtx(()=>{var f,s;return[e.icon?(t.openBlock(),t.createElementBlock("span",Mo,[t.createVNode(L,{name:(s=(f=t.unref(r))==null?void 0:f.icon)!=null?s:e.icon},null,8,["name"])])):t.createCommentVNode("",!0),t.unref(r)?(t.openBlock(),t.createElementBlock("span",Po,t.toDisplayString(t.unref(r).label),1)):(t.openBlock(),t.createElementBlock("span",jo,t.toDisplayString(e.placeholder),1)),t.createElementVNode("span",zo,[t.createVNode(L,{class:"text-grey-400",name:"chevron-down","aria-hidden":"true"})])]}),_:1},8,["class"]),t.createVNode(t.Transition,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(Nn),{class:"absolute z-10 mt-1 w-full bg-white dark:bg-grey-700 dark:text-grey-50 shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,f=>(t.openBlock(),t.createBlock(t.unref(Ln),{as:"template",key:f.id,value:f},{default:t.withCtx(({active:s,selected:u})=>[t.createElementVNode("li",{class:t.normalizeClass([s?"text-white bg-blue-500":"text-grey-900 dark:text-grey-50","cursor-default select-none relative py-2 pl-3 pr-9"])},[t.createElementVNode("span",{class:t.normalizeClass([u?"font-semibold":"font-normal","block truncate"])},[f.icon?(t.openBlock(),t.createBlock(L,{key:0,class:"inline-block mr-1",name:f.icon},null,8,["name"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(f.label),1)],2),u?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass([s?"text-blue-100":"text-blue-500","absolute inset-y-0 right-0 flex items-center pr-4"])},[t.createVNode(L,{name:"check",class:"h-5 w-5","aria-hidden":"true"})],2)):t.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue","disabled"]))}}),_o={class:"animate-pulse"},Fo={class:"flex items-center justify-between space-x-4"},Uo={key:0,class:"w-12 h-12 bg-current rounded-full shrink-0"},Ho={key:1,class:"w-full h-8 bg-current rounded-lg"},Wo={key:0,class:"mt-6 space-y-2"},qo={key:1,class:"w-1/3 h-10 mt-6 bg-current rounded-lg"},Yo=t.defineComponent({__name:"Skeleton",props:{avatar:{type:Boolean,default:!1},title:{type:Boolean,default:!0},lines:{default:3},footer:{type:Boolean,default:!1}},setup(e){const n=e,a=new Array(n.lines).fill(void 0).map(()=>{const r=[4,5,6,8,10,16,24,32];return{margin:`mr-${r[Math.floor(Math.random()*r.length)]}`}});return(r,o)=>(t.openBlock(),t.createElementBlock("div",_o,[t.createElementVNode("div",Fo,[e.avatar?(t.openBlock(),t.createElementBlock("div",Uo)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",Ho)):t.createCommentVNode("",!0)]),e.lines>0?(t.openBlock(),t.createElementBlock("div",Wo,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(a),(l,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["h-4 bg-current rounded-lg",l.margin]),key:i},null,2))),128))])):t.createCommentVNode("",!0),e.footer?(t.openBlock(),t.createElementBlock("div",qo)):t.createCommentVNode("",!0)]))}}),Go=t.defineComponent({__name:"Spinner",setup(e){return(n,a)=>(t.openBlock(),t.createBlock(t.unref(L),{class:"animate-spin",name:"circle-notch"}))}}),Ko={class:"sr-only"},Xo=t.defineComponent({__name:"Switch",props:{id:{default:De()},label:null,modelValue:{type:Boolean},description:null,onLabel:{default:"on"},offLabel:{default:"off"}},emits:["update:modelValue","change"],setup(e,{emit:n}){const a=r=>{n("update:modelValue",r),n("change",r)};return(r,o)=>(t.openBlock(),t.createBlock(t.unref(Hn),{modelValue:e.modelValue,label:e.label,class:t.normalizeClass([e.modelValue?"bg-blue-700":"bg-grey-700","relative inline-flex items-center h-6 transition rounded-full w-14 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-grey-900 focus:ring-blue-300"]),"onUpdate:modelValue":a},{default:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass(["absolute text-xs text-center text-white inset-x-2",e.modelValue?"pr-3":"pl-3"])},t.toDisplayString(e.modelValue===!0?e.onLabel:e.offLabel),3),t.createElementVNode("span",Ko,t.toDisplayString(e.label),1),t.createElementVNode("span",{class:t.normalizeClass([e.modelValue?"translate-x-9":"translate-x-1","inline-block w-4 h-4 transition bg-white rounded-full"])},null,2)]),_:1},8,["modelValue","label","class"]))}}),Qo={class:"relative"},Jo=["tabindex","value"],Zo={inheritAttrs:!1},ea=t.defineComponent(U(k({},Zo),{__name:"Textarea",props:{modelValue:null,size:{default:"medium"},isDisabled:{type:Boolean,default:!1},block:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:n,emit:a}){const r=e,{inputClasses:o,disabledClasses:l,textSizeClasses:i}=be(r),d=function(s){a("update:modelValue",(s==null?void 0:s.target).value)},c=t.ref(null);return n({focus:()=>{r.isDisabled||c.value.focus()}}),(s,u)=>{var y;return t.openBlock(),t.createElementBlock("div",Qo,[t.createElementVNode("textarea",t.mergeProps({class:["mono-50 bg-white text-grey-800 placeholder:text-grey-400 placeholder:font-normal border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder:text-grey-500 dark:border-grey-700 focus:border-blue-400 focus:ring-blue-400 dark:focus:border-blue-800 dark:focus:ring-blue-800 rounded",[t.unref(o),t.unref(i),t.unref(l)]],tabindex:e.isDisabled?"-1":void 0,value:(y=e.modelValue)!=null?y:""},s.$attrs,{ref_key:"input",ref:c,cols:"56",rows:"8",onInput:d}),`
|
|
9
|
+
`,16,Jo)])}}}));x.D9Button=Et,x.D9Checkbox=jt,x.D9Icon=L,x.D9Input=ln,x.D9Label=dn,x.D9Menu=Io,x.D9MenuLink=Lo,x.D9Select=Ao,x.D9Skeleton=Yo,x.D9Spinner=Go,x.D9Switch=Xo,x.D9Textarea=ea,x.brands=de,x.icons=Re,Object.defineProperty(x,"__esModule",{value:!0}),x[Symbol.toStringTag]="Module"});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deck9/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.3",
|
|
4
4
|
"description": "The UI components used in deck9 software applications.",
|
|
5
5
|
"author": "Philipp Reinking <philipp@deck9.co> (https://deck9.co)",
|
|
6
6
|
"scripts": {
|
|
@@ -20,53 +20,53 @@
|
|
|
20
20
|
"types": "./dist/src/index.d.ts",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@deck9/tailwindcss-recursive-font-helper": "^1.0.1",
|
|
23
|
-
"@fortawesome/fontawesome-svg-core": "^1.
|
|
24
|
-
"@fortawesome/free-brands-svg-icons": "^6.
|
|
25
|
-
"@fortawesome/free-regular-svg-icons": "^6.
|
|
26
|
-
"@fortawesome/free-solid-svg-icons": "^6.
|
|
27
|
-
"@fortawesome/vue-fontawesome": "^3.0.0
|
|
28
|
-
"@headlessui/vue": "^1.4
|
|
29
|
-
"@popperjs/core": "^2.11.
|
|
30
|
-
"@tailwindcss/forms": "^0.
|
|
23
|
+
"@fortawesome/fontawesome-svg-core": "^6.1.1",
|
|
24
|
+
"@fortawesome/free-brands-svg-icons": "^6.1.1",
|
|
25
|
+
"@fortawesome/free-regular-svg-icons": "^6.1.1",
|
|
26
|
+
"@fortawesome/free-solid-svg-icons": "^6.1.1",
|
|
27
|
+
"@fortawesome/vue-fontawesome": "^3.0.0",
|
|
28
|
+
"@headlessui/vue": "^1.6.4",
|
|
29
|
+
"@popperjs/core": "^2.11.5",
|
|
30
|
+
"@tailwindcss/forms": "^0.5.2",
|
|
31
31
|
"@tailwindcss/typography": "^0.5.2",
|
|
32
|
-
"tailwindcss": "^3.
|
|
32
|
+
"tailwindcss": "^3.1.3",
|
|
33
33
|
"uuid": "^8.3.2",
|
|
34
|
-
"vue": "^3.2.
|
|
34
|
+
"vue": "^3.2.37"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@storybook/addon-a11y": "^6.
|
|
38
|
-
"@storybook/addon-actions": "^6.
|
|
39
|
-
"@storybook/addon-docs": "^6.
|
|
40
|
-
"@storybook/addon-essentials": "^6.
|
|
41
|
-
"@storybook/addon-links": "^6.
|
|
37
|
+
"@storybook/addon-a11y": "^6.5.9",
|
|
38
|
+
"@storybook/addon-actions": "^6.5.9",
|
|
39
|
+
"@storybook/addon-docs": "^6.5.9",
|
|
40
|
+
"@storybook/addon-essentials": "^6.5.9",
|
|
41
|
+
"@storybook/addon-links": "^6.5.9",
|
|
42
42
|
"@storybook/addon-postcss": "^2.0.0",
|
|
43
|
-
"@storybook/builder-webpack5": "^6.
|
|
44
|
-
"@storybook/manager-webpack5": "^6.
|
|
45
|
-
"@storybook/vue3": "^6.
|
|
46
|
-
"@types/lodash": "^4.14.
|
|
43
|
+
"@storybook/builder-webpack5": "^6.5.9",
|
|
44
|
+
"@storybook/manager-webpack5": "^6.5.9",
|
|
45
|
+
"@storybook/vue3": "^6.5.9",
|
|
46
|
+
"@types/lodash": "^4.14.182",
|
|
47
47
|
"@types/uuid": "^8.3.4",
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
49
|
-
"@typescript-eslint/parser": "^5.
|
|
50
|
-
"@vitejs/plugin-vue": "^2.
|
|
51
|
-
"@vue/cli-plugin-babel": "^
|
|
52
|
-
"@vue/cli-plugin-eslint": "^
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^5.28.0",
|
|
49
|
+
"@typescript-eslint/parser": "^5.28.0",
|
|
50
|
+
"@vitejs/plugin-vue": "^2.3.3",
|
|
51
|
+
"@vue/cli-plugin-babel": "^5.0.6",
|
|
52
|
+
"@vue/cli-plugin-eslint": "^5.0.6",
|
|
53
53
|
"@vue/eslint-config-prettier": "^7.0.0",
|
|
54
|
-
"@vue/eslint-config-typescript": "^
|
|
54
|
+
"@vue/eslint-config-typescript": "^11.0.0",
|
|
55
55
|
"@whitespace/storybook-addon-html": "^5.0.0",
|
|
56
|
-
"autoprefixer": "^10.4.
|
|
57
|
-
"eslint": "^8.
|
|
56
|
+
"autoprefixer": "^10.4.7",
|
|
57
|
+
"eslint": "^8.17.0",
|
|
58
58
|
"eslint-plugin-prettier": "^4.0.0",
|
|
59
|
-
"eslint-plugin-storybook": "^0.5.
|
|
60
|
-
"eslint-plugin-vue": "^
|
|
61
|
-
"less": "^4.1.
|
|
62
|
-
"less-loader": "^
|
|
59
|
+
"eslint-plugin-storybook": "^0.5.12",
|
|
60
|
+
"eslint-plugin-vue": "^9.1.1",
|
|
61
|
+
"less": "^4.1.3",
|
|
62
|
+
"less-loader": "^11.0.0",
|
|
63
63
|
"lodash": "^4.17.21",
|
|
64
64
|
"storybook-addon-jsx": "^7.3.14",
|
|
65
|
-
"storybook-dark-mode": "^1.0
|
|
66
|
-
"typescript": "^4.
|
|
67
|
-
"vite": "^2.
|
|
68
|
-
"vite-plugin-dts": "^
|
|
69
|
-
"vue-tsc": "^0.
|
|
65
|
+
"storybook-dark-mode": "^1.1.0",
|
|
66
|
+
"typescript": "^4.7.3",
|
|
67
|
+
"vite": "^2.9.12",
|
|
68
|
+
"vite-plugin-dts": "^1.2.0",
|
|
69
|
+
"vue-tsc": "^0.37.9"
|
|
70
70
|
},
|
|
71
71
|
"browserslist": [
|
|
72
72
|
"> 1%",
|