1import Ne from"./DyW30rRn.js";import{u as be,F as je,E as Ze,b as Ye}from"./rkiVBB-N.js";import{u as Je}from"./B-6zEiZV.js";import{l as _,t as ye,d as P,m as b,F as te,a6 as N,a7 as E,ah as B,an as K,u as y,a8 as Z,am as W,a4 as $,aj as Se,ai as z,aH as Xe,al as oe,k as qe,n as Q,aG as Ce,C as Qe,v as Ue,w as ue,q as ce,r as en,i as de,x as X,A as J,p as pe,aI as nn,a9 as q,c as an,aa as Y,aF as Ae}from"./CcJNc_cG.js";import{o as fe,i as Pe,w as tn,f as ln,u as on,O as un,t as xe,n as rn}from"./BYXQQp_L.js";import{u as ae,t as sn,o as U,A as re,E as cn,T as Ee,a as ge,l as dn,i as ve,b as H,N as me}from"./BEC_sM4r.js";import{s as pn}from"./DzWH-5VO.js";import{_ as vn}from"./C4gbP1QK.js";import{a as mn}from"./CUxoWdBA.js";var k=[];for(var he=0;he<256;++he)k.push((he+256).toString(16).slice(1));function gn(e,t=0){return(k[e[t+0]]+k[e[t+1]]+k[e[t+2]]+k[e[t+3]]+"-"+k[e[t+4]]+k[e[t+5]]+"-"+k[e[t+6]]+k[e[t+7]]+"-"+k[e[t+8]]+k[e[t+9]]+"-"+k[e[t+10]]+k[e[t+11]]+k[e[t+12]]+k[e[t+13]]+k[e[t+14]]+k[e[t+15]]).toLowerCase()}var se,hn=new Uint8Array(16);function fn(){if(!se&&(se=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!se))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return se(hn)}var bn=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Me={randomUUID:bn};function yn(e,t,n){if(Me.randomUUID&&!e)return Me.randomUUID();e=e||{};var l=e.random||(e.rng||fn)();return l[6]=l[6]&15|64,l[8]=l[8]&63|128,gn(l)}const Sn={class:"flex flex-col"},An={class:"relative flex w-full items-center justify-center"},En={class:"relative flex h-full w-full items-center justify-center"},Cn={class:"flex flex-col items-center justify-center pb-6 pt-5"},xn={class:"mb-2 text-xs text-neutral-500"},Mn={key:1,class:"mb-2 text-sm font-semibold text-neutral-500"},Rn={class:"mb-2 text-sm font-semibold text-neutral-500"},Fn={key:0,class:"text-xs font-semibold text-neutral-500"},In=["accept","disabled"],Bn=["disabled"],Tn={key:0},On={class:"absolute top-0 flex h-full w-full items-center justify-center"},Dn=_({__name:"FormVideoField",props:{id:{type:String,required:!0},type:{type:String,default:"text"},value:{type:String,default:void 0},name:{type:String,required:!0},label:{type:String,required:!0},rules:{type:Object,default:void 0},disabled:{type:Boolean,default:!1},allowedFileTypes:{type:Array,default:()=>["video/*"]},maxFileSize:{type:Number,default:2*1024*1024*1024}},setup(e){const t=e,n=ye(t,"name"),{value:l,errorMessage:a,handleBlur:o,handleChange:u,validate:i,meta:m,setErrors:s}=be(n,t.rules),r=P(),c=P(null),f=P(null),C=P(-1),x=Je(),M=b(()=>{const D=t.maxFileSize;return D<1024*1024?`${D/1024} KB`:D<1024*1024*1024?`${D/1024/1024} MB`:`${D/1024/1024/1024} GB`});async function w(){if(!f.value||C.value!==-1)return;const D=f.value,d=D.name.split(".").pop(),R=`${yn()}.${d}`;try{c.value=await x.uploadFile(D,R,S),u(c.value)}catch(T){s(T.message)}}function S(D){C.value=D}async function g(D){var R;const d=(R=r.value.files)==null?void 0:R[0];if(d){if(d.size>t.maxFileSize){s(`File size exceeds the limit of ${M.value}`);return}if(!t.allowedFileTypes.some(T=>d.type.match(T))){s("File type is not allowed");return}await i(),f.value=d}}function I(){r.value.value="",f.value=null,C.value=-1,c.value=null,s([]),u(null)}return te(()=>{l.value?c.value=l.value:t.value&&(l.value=t.value)}),(D,d)=>{const R=Ne;return E(),N("div",Sn,[B("div",An,[B("div",En,[B("div",{class:K(["absolute right-0 top-0 m-2 cursor-pointer text-red-500 transition-all hover:text-red-600",[y(c)!==null&&y(f)===null?"hidden":"block"]])},[Z(R,{name:"heroicons:x-circle-16-solid",class:"h-8 w-8",onClick:I})],2),B("label",{for:"dropzone-file",class:K(["flex h-64 w-full flex-col items-center justify-center rounded-lg border-2 border-dashed",[y(c)?"bg-neutral-300":"cursor-pointer border-neutral-300 bg-neutral-50 hover:bg-neutral-100"]])},[B("div",Cn,[Z(R,{name:"heroicons:cloud-arrow-up",class:"mb-4 h-8 w-8 text-neutral-500"}),y(c)===null&&y(f)===null?(E(),N($,{key:0},[d[0]||(d[0]=B("p",{class:"mb-2 text-sm text-neutral-500"},[B("span",{class:"font-semibold"},"Click to upload"),Se(" or "),B("span",{class:"font-semibold"}," drag and drop")],-1)),d[1]||(d[1]=B("p",{class:"mb-1 text-xs text-neutral-500"}," Video Files (MP4, MOV, AVI, WMV, FLV, MKV, etc.) ",-1)),B("p",xn,"Max "+z(y(M)),1)],64)):y(c)!==null&&y(f)===null?(E(),N("p",Mn," File already uploaded ")):y(f)!==null?(E(),N($,{key:2},[B("p",Rn,z(y(f).name),1),y(c)!==null?(E(),N("p",Fn," â» You will not be allowed to change the file after you leave this section! ")):W("",!0)],64)):W("",!0)]),B("input",{id:"dropzone-file",ref_key:"fileInputElement",ref:r,type:"file",hidden:"",accept:t.allowedFileTypes.join(", "),disabled:y(c)!==null,onChange:g},null,40,In)],2)])]),B("button",{type:"button",class:K(["relative mt-4 h-12 w-full rounded-lg text-center text-lg text-gray-50 transition-all hover:bg-blue-950 disabled:bg-neutral-400 disabled:text-neutral-300",[y(C)===-1?"bg-blue-900":"cursor-default bg-blue-950"]]),disabled:y(f)===null,onClick:w},[y(C)===-1?(E(),N("span",Tn,"Upload")):y(C)<100?(E(),N($,{key:1},[B("div",{class:"flex h-full min-w-14 origin-left items-center justify-center rounded-lg bg-blue-800 transition-all",style:Xe([`transform: scaleX(${y(C)/100})`])},null,4),B("span",On,z(y(C))+"% ",1)],64)):y(C)===100?(E(),N($,{key:2},[d[2]||(d[2]=B("div",{class:"flex h-full min-w-14 origin-left items-center justify-center rounded-lg bg-green-600 transition-all"},null,-1)),d[3]||(d[3]=B("span",{class:"absolute top-0 flex h-full w-full items-center justify-center"}," Upload Complete! ",-1))],64)):W("",!0)],10,Bn)])}}}),Nn={class:"mt-2 block w-full align-middle"},Un=["id","value","onClick"],Pn={class:"flex-1"},wn={key:0},Gn=_({__name:"FormOrderField",props:{id:{type:String,required:!0},type:{type:String,default:"text"},value:{type:Array,default:void 0},name:{type:String,required:!0},label:{type:String,required:!0},rules:{type:Object,default:void 0},options:{type:Object,required:!0},disabled:{type:Boolean,default:!1}},setup(e){const t=e,n=P([]),l=ye(t,"name"),{value:a,errorMessage:o,handleBlur:u,handleChange:i,meta:m}=be(l,t.rules);function s(c){return n.value.includes(c)}async function r(c){t.disabled||(s(c)?n.value=n.value.filter(f=>f!==c)??[]:n.value.push(c),i(n.value))}return te(()=>
1{a.value?n.value=a.value:t.value&&(a.value=t.value)}),(c,f)=>(E(),N("div",null,[(E(!0),N($,null,oe(e.options,(C,x)=>(E(),N("div",Nn,[B("div",{id:y(l)+x,value:x,class:K(["flex w-full rounded-md px-4 py-3 ring-1 ring-inset transition-all",[t.disabled?"bg-neutral-200":"cursor-pointer",s(x)?"ring-2 ring-inset ring-blue-600":"ring-gray-300"]]),onClick:M=>r(x)},[B("span",Pn,z(C),1),s(x)?(E(),N("span",wn,z(y(n).indexOf(x)+1),1)):W("",!0)],10,Un)]))),256))]))}});function ne(e,t,n){let l=n.initialDeps??[],a;function o(){var u,i,m,s;let r;n.key&&((u=n.debug)!=null&&u.call(n))&&(r=Date.now());const c=e();if(!(c.length!==l.length||c.some((x,M)=>l[M]!==x)))return a;l=c;let C;if(n.key&&((i=n.debug)!=null&&i.call(n))&&(C=Date.now()),a=t(...c),n.key&&((m=n.debug)!=null&&m.call(n))){const x=Math.round((Date.now()-r)*100)/100,M=Math.round((Date.now()-C)*100)/100,w=M/16,S=(g,I)=>{for(g=String(g);g.length<I;)g=" "+g;return g};console.info(`%câ± ${S(M,5)} /${S(x,5)} ms`,` 2 font-size: .6rem; 3 font-weight: bold; 4 color: hsl(${Math.max(0,Math.min(120-120*w,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(s=n==null?void 0:n.onChange)==null||s.call(n,a),a}return o.updateDeps=u=>{l=u},o}function Re(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const Ln=(e,t)=>Math.abs(e-t)<=1,kn=(e,t,n)=>{let l;return function(...a){e.clearTimeout(l),l=e.setTimeout(()=>t.apply(this,a),n)}},Fe=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},Vn=e=>e,Kn=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),l=[];for(let a=t;a<=n;a++)l.push(a);return l},zn=(e,t)=>{const n=e.scrollElement;if(!n)return;const l=e.targetWindow;if(!l)return;const a=u=>{const{width:i,height:m}=u;t({width:Math.round(i),height:Math.round(m)})};if(a(Fe(n)),!l.ResizeObserver)return()=>{};const o=new l.ResizeObserver(u=>{const i=()=>{const m=u[0];if(m!=null&&m.borderBoxSize){const s=m.borderBoxSize[0];if(s){a({width:s.inlineSize,height:s.blockSize});return}}a(Fe(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},Ie={passive:!0},Be=typeof window>"u"?!0:"onscrollend"in window,_n=(e,t)=>{const n=e.scrollElement;if(!n)return;const l=e.targetWindow;if(!l)return;let a=0;const o=e.options.useScrollendEvent&&Be?()=>{}:kn(l,()=>{t(a,!1)},e.options.isScrollingResetDelay),u=r=>()=>{const{horizontal:c,isRtl:f}=e.options;a=c?n.scrollLeft*(f&&-1||1):n.scrollTop,o(),t(a,r)},i=u(!0),m=u(!1);m(),n.addEventListener("scroll",i,Ie);const s=e.options.useScrollendEvent&&Be;return s&&n.addEventListener("scrollend",m,Ie),()=>{n.removeEventListener("scroll",i),s&&n.removeEventListener("scrollend",m)}},Hn=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const l=t.borderBoxSize[0];if(l)return Math.round(l[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Wn=(e,{adjustments:t=0,behavior:n},l)=>{var a,o;const u=e+t;(o=(a=l.scrollElement)==null?void 0:a.scrollTo)==null||o.call(a,{[l.options.horizontal?"left":"top"]:u,behavior:n})};class $n{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const l=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(a=>{a.forEach(o=>{const u=()=>{this._measureElement(o.target,o)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(u):u()})}));return{disconnect:()=>{var a;(a=l())==null||a.disconnect(),n=null},observe:a=>{var o;return(o=l())==null?void 0:o.observe(a,{box:"border-box"})},unobserve:a=>{var o;return(o=l())==null?void 0:o.unobserve(a)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([l,a])=>{typeof a>"u"&&delete n[l]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Vn,rangeExtractor:Kn,onChange:()=>{},measureElement:Hn,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var l,a;(a=(l=this.options).onChange)==null||a.call(l,this,n)},this.maybeNotify=ne(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>
4{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const l=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==l){if(this.cleanup(),!l){this.maybeNotify();return}this.scrollElement=l,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,o)=>{this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=o,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,l)=>{const a=new Map,o=new Map;for(let u=l-1;u>=0;u--){const i=n[u];if(a.has(i.lane))continue;const m=o.get(i.lane);if(m==null||i.end>m.end?o.set(i.lane,i):i.end<m.end&&a.set(i.lane,!0),a.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((u,i)=>u.end===i.end?u.index-i.index:u.end-i.end)[0]:void 0},this.getMeasurementOptions=ne(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,l,a,o,u)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:l,scrollMargin:a,getItemKey:o,enabled:u}),{key:!1}),this.getMeasurements=ne(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:l,scrollMargin:a,getItemKey:o,enabled:u},i)=>{if(!u)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(r=>{this.itemSizeCache.set(r.key,r.size)}));const m=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const s=this.measurementsCache.slice(0,m);for(let r=m;r<n;r++){const c=o(r),f=this.options.lanes===1?s[r-1]:this.getFurthestMeasurement(s,r),C=f?f.end+this.options.gap:l+a,x=i.get(c),M=typeof x=="number"?x:this.options.estimateSize(r),w=C+M,S=f?f.lane:r%this.options.lanes;s[r]={index:r,start:C,size:M,end:w,key:c,lane:S}}return this.measurementsCache=s,s},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ne(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,l,a,o)=>this.range=n.length>0&&l>0?jn({measurements:n,outerSize:l,scrollOffset:a,lanes:o}):null,{key:!1,debug:()=>this.options.debug}
4),this.getVirtualIndexes=ne(()=>{let n=null,l=null;const a=this.calculateRange();return a&&(n=a.startIndex,l=a.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,l]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,l]},(n,l,a,o,u)=>o===null||u===null?[]:n({startIndex:o,endIndex:u,overscan:l,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const l=this.options.indexAttribute,a=n.getAttribute(l);return a?parseInt(a,10):(console.warn(`Missing attribute name '${l}={index}' on measured element.`),-1)},this._measureElement=(n,l)=>{const a=this.indexFromElement(n),o=this.measurementsCache[a];if(!o)return;const u=o.key,i=this.elementsCache.get(u);i!==n&&(i&&this.observer.unobserve(i),this.observer.observe(n),this.elementsCache.set(u,n)),n.isConnected&&this.resizeItem(a,this.options.measureElement(n,l,this))},this.resizeItem=(n,l)=>{const a=this.measurementsCache[n];if(!a)return;const o=this.itemSizeCache.get(a.key)??a.size,u=l-o;u!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,u,this):this.scrollDirection==="backward"&&a.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=u,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,l)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((l,a)=>{l.isConnected||(this.observer.unobserve(l),this.elementsCache.delete(a))});return}this._measureElement(n,void 0)},this.getVirtualItems=ne(()=>
4[this.getVirtualIndexes(),this.getMeasurements()],(n,l)=>{const a=[];for(let o=0,u=n.length;o<u;o++){const i=n[o],m=l[i];a.push(m)}return a},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const l=this.getMeasurements();if(l.length!==0)return Re(l[we(0,l.length-1,a=>Re(l[a]).start,n)])},this.getOffsetForAlignment=(n,l,a=0)=>{const o=this.getSize(),u=this.getScrollOffset();l==="auto"&&(l=n>=u+o?"end":"start"),l==="center"?n+=(a-o)/2:l==="end"&&(n-=o);const i=this.getTotalSize()-o;return Math.max(Math.min(i,n),0)},this.getOffsetForIndex=(n,l="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const a=this.measurementsCache[n];if(!a)return;const o=this.getSize(),u=this.getScrollOffset();if(l==="auto")if(a.end>=u+o-this.options.scrollPaddingEnd)l="end";else if(a.start<=u+this.options.scrollPaddingStart)l="start";else return[u,l];const i=l==="end"?a.end+this.options.scrollPaddingEnd:a.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,l,a.size),l]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:l="start",behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,l),{adjustments:void 0,behavior:a})},this.scrollToIndex=(n,{align:l="auto",behavior:a}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const o=this.getOffsetForIndex(n,l);if(!o)return;const[u,i]=o;this._scrollToOffset(u,{adjustments:void 0,behavior:a}),a!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const s=this.getOffsetForIndex(n,i);if(!s)return;const[r]=s,c=this.getScrollOffset();Ln(r,c)||this.scrollToIndex(n,{align:i,behavior:a})}else this.scrollToIndex(n,{align:i,behavior:a})}))},this.scrollBy=(n,{behavior:l}={})=>{this.cancelScrollToIndex(),l==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:l})},this.getTotalSize=()=>{var n;const l=this.getMeasurements();let a;if(l.length===0)a=this.options.paddingStart;else if(this.options.lanes===1)a=((n=l[l.length-1])==null?void 0:n.end)??0;else{const o=Array(this.options.lanes).fill(null);let u=l.length-1;for(;u>=0&&o.some(i=>i===null);){const i=l[u];o[i.lane]===null&&(o[i.lane]=i.end),u--}a=Math.max(...o.filter(i=>i!==null))}return Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:l,behavior:a})=>{this.options.scrollToFn(n,{behavior:a,adjustments:l},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const we=(e,t,n,l)=>{for(;e<=t;){const a=(e+t)/2|0,o=n(a);if(o<l)e=a+1;else if(o>l)t=a-1;else return a}return e>0?e-1:0};function jn({measurements:e,outerSize:t,scrollOffset:n,lanes:l}){const a=e.length-1,o=m=>e[m].start;if(e.length<=l)return{startIndex:0,endIndex:a};let u=we(0,a,o,n),i=u;if(l===1)for(;i<a&&e[i].end<n+t;)i++;else if(l>1){const m=Array(l).fill(0);for(;i<a&&m.some(r=>r<n+t);){const r=e[i];m[r.lane]=r.end,i++}const s=Array(l).fill(n+t);for(;u>=0&&s.some(r=>r>=n);){const r=e[u];s[r.lane]=r.start,u--}u=Math.max(0,u-u%l),i=Math.min(a,i+(l-1-i%l))}return{startIndex:u,endIndex:i}}function Zn(e){const t=new $n(y(e)),n=qe(t),l=t._didMount();return Q(()=>y(e).getScrollElement(),a=>{a&&t._willUpdate()},{immediate:!0}),Q(()=>y(e),a=>{t.setOptions({...a,onChange:(o,u)=>{var i;Ce(n),(i=a.onChange)==null||i.call(a,o,u)}}),t._willUpdate(),Ce(n)},{immediate:!0}),Qe(l),n}function Yn(e){return Zn(b(()=>({observeElementRect:zn,observeElementOffset:_n,scrollToFn:Wn,...y(e)})))}
4function Jn(e,t,n){let l=P(n==null?void 0:n.value),a=b(()=>e.value!==void 0);return[b(()=>a.value?e.value:l.value),function(o){return a.value||(l.value=o),t==null?void 0:t(o)}]}function Xn(){let e=fe();return Ue(()=>e.dispose()),e}function qn(){let e=Xn();return t=>{e.dispose(),e.nextFrame(t)}}function Te(e){return[e.screenX,e.screenY]}function Qn(){let e=P([-1,-1]);return{wasMoved(t){let n=Te(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=Te(t)}}}function ea({container:e,accept:t,walk:n,enabled:l}){ue(()=>{let a=e.value;if(!a||l!==void 0&&!l.value)return;let o=Pe(e);if(!o)return;let u=Object.assign(m=>t(m),{acceptNode:t}),i=o.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,u,!1);for(;i.nextNode();)n(i.currentNode)})}var Ge=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(Ge||{});function na(e){throw new Error("Unexpected object: "+e)}var V=(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))(V||{});function Oe(e,t){let n=t.resolveItems();if(n.length<=0)return null;let l=t.resolveActiveIndex(),a=l??-1;switch(e.focus){case 0:{for(let o=0;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return l}case 1:{a===-1&&(a=n.length);for(let o=a-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return l}case 2:{for(let o=a+1;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return l}case 3:{for(let o=n.length-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return l}case 4:{for(let o=0;o<n.length;++o)if(t.resolveId(n[o],o,n)===e.id)return o;return l}case 5:return null;default:na(e)}}function Le(e={},t=null,n=[]){for(let[l,a]of Object.entries(e))Ve(n,ke(t,l),a);return n}function ke(e,t){return e?e+"["+t+"]":t}function Ve(e,t,n){if(Array.isArray(n))for(let[l,a]of n.entries())Ve(e,ke(t,l.toString()),a);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):Le(n,t,e)}var aa={};function ta(e,t){return e===t}var ia=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ia||{}),la=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(la||{}),oa=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(oa||{});let Ke=Symbol("ComboboxContext");function ie(e){let t=de(Ke,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ie),n}return t}let ze=Symbol("VirtualContext"),ua=_({name:"VirtualProvider",setup(e,{slots:t}){let n=ie("VirtualProvider"),l=b(()=>{let i=U(n.optionsRef);if(!i)return{start:0,end:0};let m=window.getComputedStyle(i);return{start:parseFloat(m.paddingBlockStart||m.paddingTop),end:parseFloat(m.paddingBlockEnd||m.paddingBottom)}}),a=Yn(b(()=>({scrollPaddingStart:l.value.start,scrollPaddingEnd:l.value.end,count:n.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return U(n.optionsRef)},overscan:12}))),o=b(()=>{var i;return(i=n.virtual.value)==null?void 0:i.options}),u=P(0);return Q([o],()=>{u.value+=1}
4),pe(ze,n.virtual.value?a:null),()=>[ce("div",{style:{position:"relative",width:"100%",height:`${a.value.getTotalSize()}px`},ref:i=>{if(i){if(typeof process<"u"&&aa.JEST_WORKER_ID!==void 0||n.activationTrigger.value===0)return;n.activeOptionIndex.value!==null&&n.virtual.value.options.length>n.activeOptionIndex.value&&a.value.scrollToIndex(n.activeOptionIndex.value)}}},a.value.getVirtualItems().map(i=>nn(t.default({option:n.virtual.value.options[i.index],open:n.comboboxState.value===0})[0],{key:`${u.value}-${i.index}`,"data-index":i.index,"aria-setsize":n.virtual.value.options.length,"aria-posinset":i.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${i.start}px)`,overflowAnchor:"none"}})))]}}),ra=_({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:l}){let a=P(1),o=P(null),u=P(null),i=P(null),m=P(null),s=P({static:!1,hold:!1}),r=P([]),c=P(null),f=P(2),C=P(!1);function x(v=h=>h){let h=c.value!==null?r.value[c.value]:null,A=v(r.value.slice()),F=A.length>0&&A[0].dataRef.order.value!==null?A.sort((L,j)=>L.dataRef.order.value-j.dataRef.order.value):un(A,L=>U(L.dataRef.domRef)),G=h?F.indexOf(h):null;return G===-1&&(G=null),{options:F,activeOptionIndex:G}}let M=b(()=>e.multiple?1:0),w=b(()=>e.nullable),[S,g]=Jn(b(()=>e.modelValue),v=>l("update:modelValue",v),b(()=>e.defaultValue)),I=b(()=>S.value===void 0?ae(M.value,{1:[],0:void 0}):S.value),D=null,d=null;function R(v){return ae(M.value,{0(){return g==null?void 0:g(v)},1:()=>{let h=J(p.value.value).slice(),A=J(v),F=h.findIndex(G=>p.compare(A,J(G)));return F===-1?h.push(A):h.splice(F,1),g==null?void 0:g(h)}})}let T=b(()=>{});Q([T],([v],[h])=>{if(p.virtual.value&&v&&h&&c.value!==null){let A=v.indexOf(h[c.value]);A!==-1?c.value=A:c.value=null}});let p={comboboxState:a,value:I,mode:M,compare(v,h){if(typeof e.by=="string"){let A=e.by;return(v==null?void 0:v[A])===(h==null?void 0:h[A])}return e.by===null?ta(v,h):e.by(v,h)},calculateIndex(v){return p.virtual.value?e.by===null?p.virtual.value.options.indexOf(v):p.virtual.value.options.findIndex(h=>p.compare(h,v)):r.value.findIndex(h=>p.compare(h.dataRef.value,v))},defaultValue:b(()=>e.defaultValue),nullable:w,immediate:b(()=>!1),virtual:b(()=>null),inputRef:u,labelRef:o,buttonRef:i,optionsRef:m,disabled:b(()=>e.disabled),options:r,change(v){g(v)},activeOptionIndex:b(()=>{if(C.value&&c.value===null&&(p.virtual.value?p.virtual.value.options.length>0:r.value.length>0)){if(p.virtual.value){let h=p.virtual.value.options.findIndex(A=>{var F;return!((F=p.virtual.value)!=null&&F.disabled(A))});if(h!==-1)return h}let v=r.value.findIndex(h=>!h.dataRef.disabled);if(v!==-1)return v}return c.value}),activationTrigger:f,optionsPropsRef:s,closeCombobox(){C.value=!1,!e.disabled&&a.value!==1&&(a.value=1,c.value=null)},openCombobox(){if(C.value=!0,!e.disabled&&a.value!==0){if(p.value.value){let v=p.calculateIndex(p.value.value);v!==-1&&(c.value=v)}a.value=0}},setActivationTrigger(v){f.value=v},goToOption(v,h,A){C.value=!1,D!==null&&cancelAnimationFrame(D),D=requestAnimationFrame(()=>{if(e.disabled||m.value&&!s.value.static&&a.value===1)return;if(p.virtual.value){c.value=v===V.Specific?h:Oe({focus:v},{resolveItems:()=>p.virtual.value.options,resolveActiveIndex:()=>{var L,j;return(j=(L=p.activeOptionIndex.value)!=null?L:p.virtual.value.options.findIndex(ee=>{var le;return!((le=p.virtual.value)!=null&&le.disabled(ee))}))!=null?j:null},resolveDisabled:L=>p.virtual.value.disabled(L),resolveId(){throw new Error("Function not implemented.")}}),f.value=A??2;return}let F=x();if(F.activeOptionIndex===null){let L=F.options.findIndex(j=>!j.dataRef.disabled);L!==-1&&(F.activeOptionIndex=L)}let G=v===V.Specific?h:Oe({focus:v},{resolveItems:()=>F.options,resolveActiveIndex:()=>F.activeOptionIndex,resolveId:L=>L.id,resolveDisabled:L=>L.dataRef.disabled});c.value=G,f.value=A??2,r.value=F.options})},selectOption(v){let h=r.value.find(F=>F.id===v);if(!h)return;let{dataRef:A}=h;R(A.value)},selectActiveOption(){if(p.activeOptionIndex.value!==null){if(p.virtual.value)R(p.virtual.value.options[p.activeOptionIndex.value]);else{let{dataRef:v}=r.value[p.activeOptionIndex.value];R(v.value)}p.goToOption(V.Specific,p.activeOptionIndex.value)}},registerOption(v,h){let A=en({id:v,dataRef:h});if(p.virtual.value){r.value.push(A);return}d&&cancelAnimationFrame(d);let F=x(G=>(G.push(A),G));c.value===null&&p.isSelected(h.value.value)&&(F.activeOptionIndex=F.options.indexOf(A)),r.value=F.options,c.value=F.activeOptionIndex,f.value=2,F.options.some(G=>!U(G.dataRef.domRef))&&(d=requestAnimationFrame(()=>{let G=x();r.value=G.options,c.value=G.activeOptionIndex}))},unregisterOption(v,h){if(D!==null&&cancelAnimationFrame(D),h&&(C.value=!0),p.virtual.value){r.value=r.value.filter(F=>F.id!==v);return}let A=x(F=>{let G=F.findIndex(L=>L.id===v);return G!==-1&&F.splice(G,1),F});r.value=A.options,c.value=A.activeOptionIndex,f.value=2},isSelected(v){return ae(M.value,{0:()=>p.compare(J(p.value.value),J(v)),1:()=>J(p.value.value).some(h=>p.compare(J(h),J(v)))})},isActive(v){return c.value===p.calculateIndex(v)}};tn([u,i,m],()=>p.closeCombobox(),b(()=>a.value===0)),pe(Ke,p),sn(b(()=>ae(a.value,{0:ve.Open,1:ve.Closed})));let O=b(()=>{var v;return(v=U(u))==null?void 0:v.closest("form")});return te(()=>{Q([O],()=>{if(!O.value||e.defaultValue===void 0)return;function v(){p.change(e.defaultValue)}return O.value.addEventListener("reset",v),()=>{var h;(h=O.value)==null||h.removeEventListener("reset",v)}},{immediate:!0})}),()=>{var v,h,A;let{name:F,disabled:G,form:L,...j}=e,ee={open:a.value===0,disabled:G,activeIndex:p.activeOptionIndex.value,activeOption:p.activeOptionIndex.value===null?null:p.virtual.value?p.virtual.value.options[(v=p.activeOptionIndex.value)!=null?v:0]:(A=(h=p.options.value[p.activeOptionIndex.value])==null?void 0:h.dataRef.value)!=null?A:null,value:I.value};return ce($,[...F!=null&&I.value!=null?Le({[F]:I.value}).map(([le,$e])=>ce(ln,cn({features:on.Hidden,key:le,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:L,disabled:G,name:le,value:$e}))):[],re({theirProps:{...n,...Ee(j,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:ee,slots:t,attrs:n,name:"Combobox"})])}}}),sa=_({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:l}){var a;let o=(a=e.id)!=null?a:`headlessui-combobox-button-${ge()}`,u=ie("ComboboxButton");l({el:u.buttonRef,$el:u.buttonRef});function i(r){u.disabled.value||(u.comboboxState.value===0?u.closeCombobox():(r.preventDefault(),u.openCombobox()),X(()=>{var c;return(c=U(u.inputRef))==null?void 0:c.focus({preventScroll:!0})}
4))}function m(r){switch(r.key){case H.ArrowDown:r.preventDefault(),r.stopPropagation(),u.comboboxState.value===1&&u.openCombobox(),X(()=>{var c;return(c=u.inputRef.value)==null?void 0:c.focus({preventScroll:!0})});return;case H.ArrowUp:r.preventDefault(),r.stopPropagation(),u.comboboxState.value===1&&(u.openCombobox(),X(()=>{u.value.value||u.goToOption(V.Last)})),X(()=>{var c;return(c=u.inputRef.value)==null?void 0:c.focus({preventScroll:!0})});return;case H.Escape:if(u.comboboxState.value!==0)return;r.preventDefault(),u.optionsRef.value&&!u.optionsPropsRef.value.static&&r.stopPropagation(),u.closeCombobox(),X(()=>{var c;return(c=u.inputRef.value)==null?void 0:c.focus({preventScroll:!0})});return}}let s=pn(b(()=>({as:e.as,type:t.type})),u.buttonRef);return()=>{var r,c;let f={open:u.comboboxState.value===0,disabled:u.disabled.value,value:u.value.value},{...C}=e,x={ref:u.buttonRef,id:o,type:s.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(r=U(u.optionsRef))==null?void 0:r.id,"aria-expanded":u.comboboxState.value===0,"aria-labelledby":u.labelRef.value?[(c=U(u.labelRef))==null?void 0:c.id,o].join(" "):void 0,disabled:u.disabled.value===!0?!0:void 0,onKeydown:m,onClick:i};return re({ourProps:x,theirProps:C,slot:f,attrs:t,slots:n,name:"ComboboxButton"})}}}),ca=_({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:t,attrs:n,slots:l,expose:a}){var o;let u=(o=e.id)!=null?o:`headlessui-combobox-input-${ge()}`,i=ie("ComboboxInput"),m=b(()=>Pe(U(i.inputRef))),s={value:!1};a({el:i.inputRef,$el:i.inputRef});function r(){i.change(null);let d=U(i.optionsRef);d&&(d.scrollTop=0),i.goToOption(V.Nothing)}let c=b(()=>{var d;let R=i.value.value;return U(i.inputRef)?typeof e.displayValue<"u"&&R!==void 0?(d=e.displayValue(R))!=null?d:"":typeof R=="string"?R:"":""});te(()=>{Q([c,i.comboboxState,m],([d,R],[T,p])=>{if(s.value)return;let O=U(i.inputRef);O&&((p===0&&R===1||d!==T)&&(O.value=d),requestAnimationFrame(()=>{var v;if(s.value||!O||((v=m.value)==null?void 0:v.activeElement)!==O)return;let{selectionStart:h,selectionEnd:A}=O;Math.abs((A??0)-(h??0))===0&&h===0&&O.setSelectionRange(O.value.length,O.value.length)}))},{immediate:!0}),Q([i.comboboxState],([d],[R])=>{if(d===0&&R===1){if(s.value)return;let T=U(i.inputRef);if(!T)return;let p=T.value,{selectionStart:O,selectionEnd:v,selectionDirection:h}=T;T.value="",T.value=p,h!==null?T.setSelectionRange(O,v,h):T.setSelectionRange(O,v)}})});let f=P(!1);function C(){f.value=!0}function x(){fe().nextFrame(()=>{f.value=!1})}let M=qn();function w(d){switch(s.value=!0,M(()=>{s.value=!1}),d.key){case H.Enter:if(s.value=!1,i.comboboxState.value!==0||f.value)return;if(d.preventDefault(),d.stopPropagation(),i.activeOptionIndex.value===null){i.closeCombobox();return}i.selectActiveOption(),i.mode.value===0&&i.closeCombobox();break;case H.ArrowDown:return s.value=!1,d.preventDefault(),d.stopPropagation(),ae(i.comboboxState.value,{0:()=>i.goToOption(V.Next),1:()=>i.openCombobox()});case H.ArrowUp:return s.value=!1,d.preventDefault(),d.stopPropagation(),ae(i.comboboxState.value,{0:()=>i.goToOption(V.Previous),1:()=>{i.openCombobox(),X(()=>{i.value.value||i.goToOption(V.Last)})}});case H.Home:if(d.shiftKey)break;return s.value=!1,d.preventDefault(),d.stopPropagation(),i.goToOption(V.First);case H.PageUp:return s.value=!1,d.preventDefault(),d.stopPropagation(),i.goToOption(V.First);case H.End:if(d.shiftKey)break;return s.value=!1,d.preventDefault(),d.stopPropagation(),i.goToOption(V.Last);case H.PageDown:return s.value=!1,d.preventDefault(),d.stopPropagation(),i.goToOption(V.Last);case H.Escape:if(s.value=!1,i.comboboxState.value!==0)return;d.preventDefault(),i.optionsRef.value&&!i.optionsPropsRef.value.static&&d.stopPropagation(),i.nullable.value&&i.mode.value===0&&i.value.value===null&&r(),i.closeCombobox();break;case H.Tab:if(s.value=!1,i.comboboxState.value!==0)return;i.mode.value===0&&i.activationTrigger.value!==1&&i.selectActiveOption(),i.closeCombobox();break}}function S(d){t("change",d),i.nullable.value&&i.mode.value===0&&d.target.value===""&&r(),i.openCombobox()}function g(d){var R,T,p;let O=(R=d.relatedTarget)!=null?R:xe.find(v=>v!==d.currentTarget);
4if(s.value=!1,!((T=U(i.optionsRef))!=null&&T.contains(O))&&!((p=U(i.buttonRef))!=null&&p.contains(O))&&i.comboboxState.value===0)return d.preventDefault(),i.mode.value===0&&(i.nullable.value&&i.value.value===null?r():i.activationTrigger.value!==1&&i.selectActiveOption()),i.closeCombobox()}function I(d){var R,T,p;let O=(R=d.relatedTarget)!=null?R:xe.find(v=>v!==d.currentTarget);(T=U(i.buttonRef))!=null&&T.contains(O)||(p=U(i.optionsRef))!=null&&p.contains(O)||i.disabled.value||i.immediate.value&&i.comboboxState.value!==0&&(i.openCombobox(),fe().nextFrame(()=>{i.setActivationTrigger(1)}))}let D=b(()=>{var d,R,T,p;return(p=(T=(R=e.defaultValue)!=null?R:i.defaultValue.value!==void 0?(d=e.displayValue)==null?void 0:d.call(e,i.defaultValue.value):null)!=null?T:i.defaultValue.value)!=null?p:""});return()=>{var d,R,T,p,O,v,h;let A={open:i.comboboxState.value===0},{displayValue:F,onChange:G,...L}=e,j={"aria-controls":(d=i.optionsRef.value)==null?void 0:d.id,"aria-expanded":i.comboboxState.value===0,"aria-activedescendant":i.activeOptionIndex.value===null?void 0:i.virtual.value?(R=i.options.value.find(ee=>!i.virtual.value.disabled(ee.dataRef.value)&&i.compare(ee.dataRef.value,i.virtual.value.options[i.activeOptionIndex.value])))==null?void 0:R.id:(T=i.options.value[i.activeOptionIndex.value])==null?void 0:T.id,"aria-labelledby":(v=(p=U(i.labelRef))==null?void 0:p.id)!=null?v:(O=U(i.buttonRef))==null?void 0:O.id,"aria-autocomplete":"list",id:u,onCompositionstart:C,onCompositionend:x,onKeydown:w,onInput:S,onFocus:I,onBlur:g,role:"combobox",type:(h=n.type)!=null?h:"text",tabIndex:0,ref:i.inputRef,defaultValue:D.value,disabled:i.disabled.value===!0?!0:void 0};return re({ourProps:j,theirProps:L,slot:A,attrs:n,slots:l,features:me.RenderStrategy|me.Static,name:"ComboboxInput"})}}}),da=_({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:n,expose:l}){let a=ie("ComboboxOptions"),o=`headlessui-combobox-options-${ge()}`;l({el:a.optionsRef,$el:a.optionsRef}),ue(()=>{a.optionsPropsRef.value.static=e.static}),ue(()=>{a.optionsPropsRef.value.hold=e.hold});let u=dn(),i=b(()=>u!==null?(u.value&ve.Open)===ve.Open:a.comboboxState.value===0);ea({container:b(()=>U(a.optionsRef)),enabled:b(()=>a.comboboxState.value===0),accept(s){return s.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:s.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(s){s.setAttribute("role","none")}});function m(s){s.preventDefault()}return()=>{var s,r,c;let f={open:a.comboboxState.value===0},C={"aria-labelledby":(c=(s=U(a.labelRef))==null?void 0:s.id)!=null?c:(r=U(a.buttonRef))==null?void 0:r.id,id:o,ref:a.optionsRef,role:"listbox","aria-multiselectable":a.mode.value===1?!0:void 0,onMousedown:m},x=Ee(e,["hold"]);return re({ourProps:C,theirProps:x,slot:f,attrs:t,slots:a.virtual.value&&a.comboboxState.value===0?{...n,default:()=>[ce(ua,{},n.default)]}:n,features:me.RenderStrategy|me.Static,visible:i.value,name:"ComboboxOptions"})}}}),pa=_({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:t,attrs:n,expose:l}){let a=ie("ComboboxOption"),o=`headlessui-combobox-option-${ge()}`,u=P(null),i=b(()=>e.disabled);l({el:u,$el:u});let m=b(()=>{var g;return a.virtual.value?a.activeOptionIndex.value===a.calculateIndex(e.value):a.activeOptionIndex.value===null?!1:((g=a.options.value[a.activeOptionIndex.value])==null?void 0:g.id)===o}),s=b(()=>a.isSelected(e.value)),r=de(ze,null),c=b(()=>({disabled:e.disabled,value:e.value,domRef:u,order:b(()=>e.order)}));te(()=>a.registerOption(o,c)),Ue(()=>a.unregisterOption(o,m.value)),ue(()=>{let g=U(u);g&&(r==null||r.value.measureElement(g))}),ue(()=>{a.comboboxState.value===0&&m.value&&(a.virtual.value||a.activationTrigger.value!==0&&X(()=>{var g,I;return(I=(g=U(u))==null?void 0:g.scrollIntoView)==null?void 0:I.call(g,{block:"nearest"})}))});function f(g){g.preventDefault(),g.button===Ge.Left&&(i.value||(a.selectOption(o),rn()||requestAnimationFrame(()=>{var I;return(I=U(a.inputRef))==null?void 0:I.focus({preventScroll:!0})}),a.mode.value===0&&a.closeCombobox()))}function C(){var g;if(e.disabled||(g=a.virtual.value)!=null&&g.disabled(e.value))return a.goToOption(V.Nothing);let I=a.calculateIndex(e.value);a.goToOption(V.Specific,I)}let x=Qn();function M(g){x.update(g)}function w(g){var I;if(!x.wasMoved(g)||e.disabled||(I=a.virtual.value)!=null&&I.disabled(e.value)||m.value)return;let D=a.calculateIndex(e.value);a.goToOption(V.Specific,D,0)}function S(g){var I;x.wasMoved(g)&&(e.disabled||(I=a.virtual.value)!=null&&I.disabled(e.value)||m.value&&(
4a.optionsPropsRef.value.hold||a.goToOption(V.Nothing)))}return()=>{let{disabled:g}=e,I={active:m.value,selected:s.value,disabled:g},D={id:o,ref:u,role:"option",tabIndex:g===!0?void 0:-1,"aria-disabled":g===!0?!0:void 0,"aria-selected":s.value,disabled:void 0,onMousedown:f,onFocus:C,onPointerenter:M,onMouseenter:M,onPointermove:w,onMousemove:w,onPointerleave:S,onMouseleave:S},d=Ee(e,["order","value"]);return re({ourProps:D,theirProps:d,slot:I,attrs:n,slots:t,name:"ComboboxOption"})}}});/*! countries-list v3.1.1 by Annexare | MIT */var _e
vendor: 32,054 bytes, line 4
4={AD:{name:"Andorra",native:"Andorra",phone:[376],continent:"EU",capital:"Andorra la Vella",currency:["EUR"],languages:["ca"]},AE:{name:"United Arab Emirates",native:"دÙÙØ© Ø§ÙØ¥Ù
ارات Ø§ÙØ¹Ø±Ø¨ÙØ© اÙÙ
ØªØØ¯Ø©",phone:[971],continent:"AS",capital:"Abu Dhabi",currency:["AED"],languages:["ar"]},AF:{name:"Afghanistan",native:"Ø§ÙØºØ§ÙستاÙ",phone:[93],continent:"AS",capital:"Kabul",currency:["AFN"],languages:["ps","uz","tk"]},AG:{name:"Antigua and Barbuda",native:"Antigua and Barbuda",phone:[1268],continent:"NA",capital:"Saint John's",currency:["XCD"],languages:["en"]},AI:{name:"Anguilla",native:"Anguilla",phone:[1264],continent:"NA",capital:"The Valley",currency:["XCD"],languages:["en"]},AL:{name:"Albania",native:"Shqipëria",phone:[355],continent:"EU",capital:"Tirana",currency:["ALL"],languages:["sq"]},AM:{name:"Armenia",native:"ÕÕ¡ÕµÕ¡Õ½Õ¿Õ¡Õ¶",phone:[374],continent:"AS",capital:"Yerevan",currency:["AMD"],languages:["hy","ru"]},AO:{name:"Angola",native:"Angola",phone:[244],continent:"AF",capital:"Luanda",currency:["AOA"],languages:["pt"]},AQ:{name:"Antarctica",native:"Antarctica",phone:[672],continent:"AN",capital:"",currency:[],languages:[]},AR:{name:"Argentina",native:"Argentina",phone:[54],continent:"SA",capital:"Buenos Aires",currency:["ARS"],languages:["es","gn"]},AS:{name:"American Samoa",native:"American Samoa",phone:[1684],continent:"OC",capital:"Pago Pago",currency:["USD"],languages:["en","sm"]},AT:{name:"Austria",native:"Ãsterreich",phone:[43],continent:"EU",capital:"Vienna",currency:["EUR"],languages:["de"]},AU:{name:"Australia",native:"Australia",phone:[61],continent:"OC",capital:"Canberra",currency:["AUD"],languages:["en"]},AW:{name:"Aruba",native:"Aruba",phone:[297],continent:"NA",capital:"Oranjestad",currency:["AWG"],languages:["nl","pa"]},AX:{name:"Aland",native:"Ã
land",phone:[358],continent:"EU",capital:"Mariehamn",currency:["EUR"],languages:["sv"],partOf:"FI"},AZ:{name:"Azerbaijan",native:"AzÉrbaycan",phone:[994],continent:"AS",continents:["AS","EU"],capital:"Baku",currency:["AZN"],languages:["az"]},BA:{name:"Bosnia and Herzegovina",native:"Bosna i Hercegovina",phone:[387],continent:"EU",capital:"Sarajevo",currency:["BAM"],languages:["bs","hr","sr"]},BB:{name:"Barbados",native:"Barbados",phone:[1246],continent:"NA",capital:"Bridgetown",currency:["BBD"],languages:["en"]},BD:{name:"Bangladesh",native:"Bangladesh",phone:[880],continent:"AS",capital:"Dhaka",currency:["BDT"],languages:["bn"]},BE:{name:"Belgium",native:"België",phone:[32],continent:"EU",capital:"Brussels",currency:["EUR"],languages:["nl","fr","de"]},BF:{name:"Burkina Faso",native:"Burkina Faso",phone:[226],continent:"AF",capital:"Ouagadougou",currency:["XOF"],languages:["fr","ff"]},BG:{name:"Bulgaria",native:"ÐÑлгаÑиÑ",phone:[359],continent:"EU",capital:"Sofia",currency:["BGN"],languages:["bg"]},BH:{name:"Bahrain",native:"âØ§ÙØ¨ØØ±ÙÙ",phone:[973],continent:"AS",capital:"Manama",currency:["BHD"],languages:["ar"]},BI:{name:"Burundi",native:"Burundi",phone:[257],continent:"AF",capital:"Bujumbura",currency:["BIF"],languages:["fr","rn"]},BJ:{name:"Benin",native:"Bénin",phone:[229],continent:"AF",capital:"Porto-Novo",currency:["XOF"],languages:["fr"]},BL:{name:"Saint Barthelemy",native:"Saint-Barthélemy",phone:[590],continent:"NA",capital:"Gustavia",currency:["EUR"],languages:["fr"]},BM:{name:"Bermuda",native:"Bermuda",phone:[1441],continent:"NA",capital:"Hamilton",currency:["BMD"],languages:["en"]},BN:{name:"Brunei",native:"Negara Brunei Darussalam",phone:[673],continent:"AS",capital:"Bandar Seri Begawan",currency:["BND"],languages:["ms"]},BO:{name:"Bolivia",native:"Bolivia",phone:[591],continent:"SA",capital:"Sucre",currency:["BOB","BOV"],languages:["es","ay","qu"]},BQ:{name:"Bonaire",native:"Bonaire",phone:[5997],continent:"NA",capital:"Kralendijk",currency:["USD"],languages:["nl"]},BR:{name:"Brazil",native:"Brasil",phone:[55],continent:"SA",capital:"BrasÃlia",currency:["BRL"],languages:["pt"]},BS:{name:"Bahamas",native:"Bahamas",phone:[1242],continent:"NA",capital:"Nassau",currency:["BSD"],languages:["en"]},BT:{name:"Bhutan",native:"ʼbrug-yul",phone:[975],continent:"AS",capital:"Thimphu",currency:["BTN","INR"],languages:["dz"]},BV:{name:"Bouvet Island",native:"Bouvetøya",phone:[47],continent:"AN",capital:"",currency:["NOK"],languages:["no","nb","nn"]},BW:{name:"Botswana",native:"Botswana",phone:[267],continent:"AF",capital:"Gaborone",currency:["BWP"],languages:["en","tn"]},BY:{name:"Belarus",native:"ÐелаÑÑÌÑÑ",phone:[375],continent:"EU",capital:"Minsk",currency:["BYN"],languages:["be","ru"]},BZ:{name:"Belize",native:"Belize",phone:[501],continent:"NA",capital:"Belmopan",currency:["BZD"],languages:["en","es"]},CA:{name:"Canada",native:"Canada",phone:[1],continent:"NA",capital:"Ottawa",currency:["CAD"],languages:["en","fr"]},CC:{name:"Cocos (Keeling) Islands",native:"Cocos (Keeling) Islands",phone:[61],continent:"AS",capital:"West Island",currency:["AUD"],languages:["en"]},CD:{name:"Democratic Republic of the Congo",native:"République démocratique du Congo",phone:[243],continent:"AF",capital:"Kinshasa",currency:["CDF"],languages:["fr","ln","kg","sw","lu"]},CF:{name:"Central African Republic",native:"Ködörösêse tî Bêafrîka",phone:[236],continent:"AF",capital:"Bangui",currency:["XAF"],languages:["fr","sg"]},CG:{name:"Republic of the Congo",native:"République du Congo",phone:[242],continent:"AF",capital:"Brazzaville",currency:["XAF"],languages:["fr","ln"]},CH:{name:"Switzerland",native:"Schweiz",phone:[41],continent:"EU",capital:"Bern",currency:["CHE","CHF","CHW"],languages:["de","fr","it"]},CI:{name:"Ivory Coast",native:"Côte d'Ivoire",phone:[225],continent:"AF",capital:"Yamoussoukro",currency:["XOF"],languages:["fr"]},CK:{name:"Cook Islands",native:"Cook Islands",phone:[682],continent:"OC",capital:"Avarua",currency:["NZD"],languages:["en"]},CL:{name:"Chile",native:"Chile",phone:[56],continent:"SA",capital:"Santiago",currency:["CLF","CLP"],languages:["es"]},CM:{name:"Cameroon",native:"Cameroon",phone:[237],continent:"AF",capital:"Yaoundé",currency:["XAF"],languages:["en","fr"]},CN:{name:"China",native:"ä¸å½",phone:[86],continent:"AS",capital:"Beijing",currency:["CNY"],languages:["zh"]},CO:{name:"Colombia",native:"Colombia",phone:[57],continent:"SA",capital:"Bogotá",currency:["COP"],languages:["es"]},CR:{name:"Costa Rica",native:"Costa Rica",phone:[506],continent:"NA",capital:"San José",currency:["CRC"],languages:["es"]},CU:{name:"Cuba",native:"Cuba",phone:[53],continent:"NA",capital:"Havana",currency:["CUC","CUP"],languages:["es"]},CV:{name:"Cape Verde",native:"Cabo Verde",phone:[238],continent:"AF",capital:"Praia",currency:["CVE"],languages:["pt"]},CW:{name:"Curacao",native:"Curaçao",phone:[5999],continent:"NA",capital:"Willemstad",currency:["ANG"],languages:["nl","pa","en"]},CX:{name:"Christmas Island",native:"Christmas Island",phone:[61],continent:"AS",capital:"Flying Fish Cove",currency:["AUD"],languages:["en"]},CY:{name:"Cyprus",native:"ÎÏÏÏοÏ",phone:[357],continent:"EU",capital:"Nicosia",currency:["EUR"],languages:["el","tr","hy"]},CZ:{name:"Czech Republic",native:"Äeská republika",phone:[420],continent:"EU",capital:"Prague",currency:["CZK"],languages:["cs"]},DE:{name:"Germany",native:"Deutschland",phone:[49],continent:"EU",capital:"Berlin",currency:["EUR"],languages:["de"]},DJ:{name:"Djibouti",native:"Djibouti",phone:[253],continent:"AF",capital:"Djibouti",currency:["DJF"],languages:["fr","ar"]},DK:{name:"Denmark",native:"Danmark",phone:[45],continent:"EU",continents:["EU","NA"],capital:"Copenhagen",currency:["DKK"],languages:["da"]},DM:{name:"Dominica",native:"Dominica",phone:[1767],continent:"NA",capital:"Roseau",currency:["XCD"],languages:["en"]},DO:{name:"Dominican Republic",native:"República Dominicana",phone:[1809,1829,1849],continent:"NA",capital:"Santo Domingo",currency:["DOP"],languages:["es"]},DZ:{name:"Algeria",native:"Ø§ÙØ¬Ø²Ø§Ø¦Ø±",phone:[213],continent:"AF",capital:"Algiers",currency:["DZD"],languages:["ar"]},EC:{name:"Ecuador",native:"Ecuador",phone:[593],continent:"SA",capital:"Quito",currency:["USD"],languages:["es"]},EE:{name:"Estonia",native:"Eesti",phone:[372],continent:"EU",capital:"Tallinn",currency:["EUR"],languages:["et"]},EG:{name:"Egypt",native:"Ù
صرâ",phone:[20],continent:"AF",continents:["AF","AS"],capital:"Cairo",currency:["EGP"],languages:["ar"]},EH:{name:"Western Sahara",native:"Ø§ÙØµØØ±Ø§Ø¡ Ø§ÙØºØ±Ø¨ÙØ©",phone:[212],continent:"AF",capital:"El Aaiún",currency:["MAD","DZD","MRU"],languages:["es"]},ER:{name:"Eritrea",native:"á¤ááµá«",phone:[291],continent:"AF",capital:"Asmara",currency:["ERN"],languages:["ti","ar","en"]},ES:{name:"Spain",native:"España",phone:[34],continent:"EU",capital:"Madrid",currency:["EUR"],languages:["es","eu","ca","gl","oc"]},ET:{name:"Ethiopia",native:"á¢áµá®áµá«",phone:[251],continent:"AF",capital:"Addis Ababa",currency:["ETB"],languages:["am"]},FI:{name:"Finland",native:"Suomi",phone:[358],continent:"EU",capital:"Helsinki",currency:["EUR"],languages:["fi","sv"]},FJ:{name:"Fiji",native:"Fiji",phone:[679],continent:"OC",capital:"Suva",currency:["FJD"],languages:["en","fj","hi","ur"]},FK:{name:"Falkland Islands",native:"Falkland Islands",phone:[500],continent:"SA",capital:"Stanley",currency:["FKP"],languages:["en"]},FM:{name:"Micronesia",native:"Micronesia",phone:[691],continent:"OC",capital:"Palikir",currency:["USD"],languages:["en"]},FO:{name:"Faroe Islands",native:"Føroyar",phone:[298],continent:"EU",capital:"Tórshavn",currency:["DKK"],languages:["fo"]},FR:{name:"France",native:"France",phone:[33],continent:"EU",capital:"Paris",currency:["EUR"],languages:["fr"]},GA:{name:"Gabon",native:"Gabon",phone:[241],continent:"AF",capital:"Libreville",currency:["XAF"],languages:["fr"]},GB:{name:"United Kingdom",native:"United Kingdom",phone:[44],continent:"EU",capital:"London",currency:["GBP"],languages:["en"]},GD:{name:"Grenada",native:"Grenada",phone:[1473],continent:"NA",capital:"St. George's",currency:["XCD"],languages:["en"]},GE:{name:"Georgia",native:"á¡áá¥áá ááááá",phone:[995],continent:"AS",continents:["AS","EU"],capital:"Tbilisi",currency:["GEL"],languages:["ka"]},GF:{name:"French Guiana",native:"Guyane française",phone:[594],continent:"SA",capital:"Cayenne",currency:["EUR"],languages:["fr"]},GG:{name:"Guernsey",native:"Guernsey",phone:[44],continent:"EU",capital:"St. Peter Port",currency:["GBP"],languages:["en","fr"]},GH:{name:"Ghana",native:"Ghana",phone:[233],continent:"AF",capital:"Accra",currency:["GHS"],languages:["en"]},GI:{name:"Gibraltar",native:"Gibraltar",phone:[350],continent:"EU",capital:"Gibraltar",currency:["GIP"],languages:["en"]},GL:{name:"Greenland",native:"Kalaallit Nunaat",phone:[299],continent:"NA",capital:"Nuuk",currency:["DKK"],languages:["kl"]},GM:{name:"Gambia",native:"Gambia",phone:[220],continent:"AF",capital:"Banjul",currency:["GMD"],languages:["en"]},GN:{name:"Guinea",native:"Guinée",phone:[224],continent:"AF",capital:"Conakry",currency:["GNF"],languages:["fr","ff"]},GP:{name:"Guadeloupe",native:"Guadeloupe",phone:[590],continent:"NA",capital:"Basse-Terre",currency:["EUR"],languages:["fr"]},GQ:{name:"Equatorial Guinea",native:"Guinea Ecuatorial",phone:[240],continent:"AF",capital:"Malabo",currency:["XAF"],languages:["es","fr"]},GR:{name:"Greece",native:"Îλλάδα",phone:[30],continent:"EU",capital:"Athens",currency:["EUR"],languages:["el"]},GS:{name:"South Georgia and the South Sandwich Islands",native:"South Georgia",phone:[500],continent:"AN",capital:"King Edward Point",currency:["GBP"],languages:["en"]},GT:{name:"Guatemala",native:"Guatemala",phone:[502],continent:"NA",capital:"Guatemala City",currency:["GTQ"],languages:["es"]},GU:{name:"Guam",native:"Guam",phone:[1671],continent:"OC",capital:"HagÃ¥tña",currency:["USD"],languages:["en","ch","es"]},GW:{name:"Guinea-Bissau",native:"Guiné-Bissau",phone:[245],continent:"AF",capital:"Bissau",currency:["XOF"],languages:["pt"]},GY:{name:"Guyana",native:"Guyana",phone:[592],continent:"SA",capital:"Georgetown",currency:["GYD"],languages:["en"]},HK:{name:"Hong Kong",native:"馿¸¯",phone:[852],continent:"AS",capital:"City of Victoria",currency:["HKD"],languages:["zh","en"]},HM:{name:"Heard Island and McDonald Islands",native:"Heard Island and McDonald Islands",phone:[61],continent:"AN",capital:"",currency:["AUD"],languages:["en"]},HN:{name:"Honduras",native:"Honduras",phone:[504],continent:"NA",capital:"Tegucigalpa",currency:["HNL"],languages:["es"]},HR:{name:"Croatia",native:"Hrvatska",phone:[385],continent:"EU",capital:"Zagreb",currency:["EUR"],languages:["hr"]},HT:{name:"Haiti",native:"Haïti",phone:[509],continent:"NA",capital:"Port-au-Prince",currency:["HTG","USD"],languages:["fr","ht"]},HU:{name:"Hungary",native:"Magyarország",phone:[36],continent:"EU",capital:"Budapest",currency:["HUF"],languages:["hu"]},ID:{name:"Indonesia",native:"Indonesia",phone:[62],continent:"AS",capital:"Jakarta",currency:["IDR"],languages:["id"]},IE:{name:"Ireland",native:"Ãire",phone:[353],continent:"EU",capital:"Dublin",currency:["EUR"],languages:["ga","en"]},IL:{name:"Israel",native:"×ִשְ×רָ×Öµ×",phone:[972],continent:"AS",capital:"Jerusalem",currency:["ILS"],languages:["he","ar"]},IM:{name:"Isle of Man",native:"Isle of Man",phone:[44],continent:"EU",capital:"Douglas",currency:["GBP"],languages:["en","gv"]},IN:{name:"India",native:"à¤à¤¾à¤°à¤¤",phone:[91],continent:"AS",capital:"New Delhi",currency:["INR"],languages:["hi","en"]},IO:{name:"British Indian Ocean Territory",native:"British Indian Ocean Territory",phone:[246],continent:"AS",capital:"Diego Garcia",currency:["USD"],languages:["en"]},IQ:{name:"Iraq",native:"Ø§ÙØ¹Ø±Ø§Ù",phone:[964],continent:"AS",capital:"Baghdad",currency:["IQD"],languages:["ar","ku"]},IR:{name:"Iran",native:"Ø§ÛØ±Ø§Ù",phone:[98],continent:"AS",capital:"Tehran",currency:["IRR"],languages:["fa"]},IS:{name:"Iceland",native:"Ãsland",phone:[354],continent:"EU",capital:"Reykjavik",currency:["ISK"],languages:["is"]},IT:{name:"Italy",native:"Italia",phone:[39],continent:"EU",capital:"Rome",currency:["EUR"],languages:["it"]},JE:{name:"Jersey",native:"Jersey",phone:[44],continent:"EU",capital:"Saint Helier",currency:["GBP"],languages:["en","fr"]},JM:{name:"Jamaica",native:"Jamaica",phone:[1876],continent:"NA",capital:"Kingston",currency:["JMD"],languages:["en"]},JO:{name:"Jordan",native:"Ø§ÙØ£Ø±Ø¯Ù",phone:[962],continent:"AS",capital:"Amman",currency:["JOD"],languages:["ar"]},JP:{name:"Japan",native:"æ¥æ¬",phone:[81],continent:"AS",capital:"Tokyo",currency:["JPY"],languages:["ja"]},KE:{name:"Kenya",native:"Kenya",phone:[254],continent:"AF",capital:"Nairobi",currency:["KES"],languages:["en","sw"]},KG:{name:"Kyrgyzstan",native:"ÐÑÑгÑзÑÑан",phone:[996],continent:"AS",capital:"Bishkek",currency:["KGS"],languages:["ky","ru"]},KH:{name:"Cambodia",native:"KâmpÅchéa",phone:[855],continent:"AS",capital:"Phnom Penh",currency:["KHR"],languages:["km"]},KI:{name:"Kiribati",native:"Kiribati",phone:[686],continent:"OC",capital:"South Tarawa",currency:["AUD"],languages:["en"]},KM:{name:"Comoros",native:"Komori",phone:[269],continent:"AF",capital:"Moroni",currency:["KMF"],languages:["ar","fr"]},KN:{name:"Saint Kitts and Nevis",native:"Saint Kitts and Nevis",phone:[1869],continent:"NA",capital:"Basseterre",currency:["XCD"],languages:["en"]},KP:{name:"North Korea",native:"ë¶í",phone:[850],continent:"AS",capital:"Pyongyang",currency:["KPW"],languages:["ko"]},KR:{name:"South Korea",native:"ëí민êµ",phone:[82],continent:"AS",capital:"Seoul",currency:["KRW"],languages:["ko"]},KW:{name:"Kuwait",native:"اÙÙÙÙØª",phone:[965],continent:"AS",capital:"Kuwait City",currency:["KWD"],languages:["ar"]},KY:{name:"Cayman Islands",native:"Cayman Islands",phone:[1345],continent:"NA",capital:"George Town",currency:["KYD"],languages:["en"]},KZ:{name:"Kazakhstan",native:"ÒазаÒÑÑан",phone:[7],continent:"AS",continents:["AS","EU"],capital:"Astana",currency:["KZT"],languages:["kk","ru"]},LA:{name:"Laos",native:"ສàºàºàº¥àº²àº§",phone:[856],continent:"AS",capital:"Vientiane",currency:["LAK"],languages:["lo"]},LB:{name:"Lebanon",native:"ÙØ¨ÙاÙ",phone:[961],continent:"AS",capital:"Beirut",currency:["LBP"],languages:["ar","fr"]},LC:{name:"Saint Lucia",native:"Saint Lucia",phone:[1758],continent:"NA",capital:"Castries",currency:["XCD"],languages:["en"]},LI:{name:"Liechtenstein",native:"Liechtenstein",phone:[423],continent:"EU",capital:"Vaduz",currency:["CHF"],languages:["de"]},LK:{name:"Sri Lanka",native:"ÅrÄ« laá¹kÄva",phone:[94],continent:"AS",capital:"Colombo",currency:["LKR"],languages:["si","ta"]},LR:{name:"Liberia",native:"Liberia",phone:[231],continent:"AF",capital:"Monrovia",currency:["LRD"],languages:["en"]},LS:{name:"Lesotho",native:"Lesotho",phone:[266],continent:"AF",capital:"Maseru",currency:["LSL","ZAR"],languages:["en","st"]},LT:{name:"Lithuania",native:"Lietuva",phone:[370],continent:"EU",capital:"Vilnius",currency:["EUR"],languages:["lt"]},LU:{name:"Luxembourg",native:"Luxembourg",phone:[352],continent:"EU",capital:"Luxembourg",currency:["EUR"],languages:["fr","de","lb"]},LV:{name:"Latvia",native:"Latvija",phone:[371],continent:"EU",capital:"Riga",currency:["EUR"],languages:["lv"]},LY:{name:"Libya",native:"âÙÙØ¨Ùا",phone:[218],continent:"AF",capital:"Tripoli",currency:["LYD"],languages:["ar"]},MA:{name:"Morocco",native:"اÙÙ
غرب",phone:[212],continent:"AF",capital:"Rabat",currency:["MAD"],languages:["ar"]},MC:{name:"Monaco",native:"Monaco",phone:[377],continent:"EU",capital:"Monaco",currency:["EUR"],languages:["fr"]},MD:{name:"Moldova",native:"Moldova",phone:[373],continent:"EU",capital:"ChiÈinÄu",currency:["MDL"],languages:["ro"]},ME:{name:"Montenegro",native:"ЦÑна ÐоÑа",phone:[382],continent:"EU",capital:"Podgorica",currency:["EUR"],languages:["sr","bs","sq","hr"]},MF:{name:"Saint Martin",native:"Saint-Martin",phone:[590],continent:"NA",capital:"Marigot",currency:["EUR"],languages:["en","fr","nl"]},MG:{name:"Madagascar",native:"Madagasikara",phone:[261],continent:"AF",capital:"Antananarivo",currency:["MGA"],languages:["fr","mg"]},MH:{name:"Marshall Islands",native:"M̧ajeļ",phone:[692],continent:"OC",capital:"Majuro",currency:["USD"],languages:["en","mh"]},MK:{name:"North Macedonia",native:"СевеÑна ÐакедониÑа",phone:[389],continent:"EU",capital:"Skopje",currency:["MKD"],languages:["mk"]},ML:{name:"Mali",native:"Mali",phone:[223],continent:"AF",capital:"Bamako",currency:["XOF"],languages:["fr"]},MM:{name:"Myanmar (Burma)",native:"áá¼ááºáá¬",phone:[95],continent:"AS",capital:"Naypyidaw",currency:["MMK"],languages:["my"]},MN:{name:"Mongolia",native:"Ðонгол ÑлÑ",phone:[976],continent:"AS",capital:"Ulan Bator",currency:["MNT"],languages:["mn"]},MO:{name:"Macao",native:"æ¾³é",phone:[853],continent:"AS",capital:"",currency:["MOP"],languages:["zh","pt"]},MP:{name:"Northern Mariana Islands",native:"Northern Mariana Islands",phone:[1670],continent:"OC",capital:"Saipan",currency:["USD"],languages:["en","ch"]},MQ:{name:"Martinique",native:"Martinique",phone:[596],continent:"NA",capital:"Fort-de-France",currency:["EUR"],languages:["fr"]},MR:{name:"Mauritania",native:"Ù
ÙØ±ÙتاÙÙØ§",phone:[222],continent:"AF",capital:"Nouakchott",currency:["MRU"],languages:["ar"]},MS:{name:"Montserrat",native:"Montserrat",phone:[1664],continent:"NA",capital:"Plymouth",currency:["XCD"],languages:["en"]},MT:{name:"Malta",native:"Malta",phone:[356],continent:"EU",capital:"Valletta",currency:["EUR"],languages:["mt","en"]},MU:{name:"Mauritius",native:"Maurice",phone:[230],continent:"AF",capital:"Port Louis",currency:["MUR"],languages:["en"]},MV:{name:"Maldives",native:"Maldives",phone:[960],continent:"AS",capital:"Malé",currency:["MVR"],languages:["dv"]},MW:{name:"Malawi",native:"Malawi",phone:[265],continent:"AF",capital:"Lilongwe",currency:["MWK"],languages:["en","ny"]},MX:{name:"Mexico",native:"México",phone:[52],continent:"NA",capital:"Mexico City",currency:["MXN"],languages:["es"]},MY:{name:"Malaysia",native:"Malaysia",phone:[60],continent:"AS",capital:"Kuala Lumpur",currency:["MYR"],languages:["ms"]},MZ:{name:"Mozambique",native:"Moçambique",phone:[258],continent:"AF",capital:"Maputo",currency:["MZN"],languages:["pt"]},NA:{name:"Namibia",native:"Namibia",phone:[264],continent:"AF",capital:"Windhoek",currency:["NAD","ZAR"],languages:["en","af"]},NC:{name:"New Caledonia",native:"Nouvelle-Calédonie",phone:[687],continent:"OC",capital:"Nouméa",currency:["XPF"],languages:["fr"]},NE:{name:"Niger",native:"Niger",phone:[227],continent:"AF",capital:"Niamey",currency:["XOF"],languages:["fr"]},NF:{name:"Norfolk Island",native:"Norfolk Island",phone:[672],continent:"OC",capital:"Kingston",currency:["AUD"],languages:["en"]},NG:{name:"Nigeria",native:"Nigeria",phone:[234],continent:"AF",capital:"Abuja",currency:["NGN"],languages:["en"]},NI:{name:"Nicaragua",native:"Nicaragua",phone:[505],continent:"NA",capital:"Managua",currency:["NIO"],languages:["es"]},NL:{name:"Netherlands",native:"Nederland",phone:[31],continent:"EU",capital:"Amsterdam",currency:["EUR"],languages:["nl"]},NO:{name:"Norway",native:"Norge",phone:[47],continent:"EU",capital:"Oslo",currency:["NOK"],languages:["no","nb","nn"]},NP:{name:"Nepal",native:"नà¥à¤ªà¤¾à¤²",phone:[977],continent:"AS",capital:"Kathmandu",currency:["NPR"],languages:["ne"]},NR:{name:"Nauru",native:"Nauru",phone:[674],continent:"OC",capital:"Yaren",currency:["AUD"],languages:["en","na"]},NU:{name:"Niue",native:"NiuÄ",phone:[683],continent:"OC",capital:"Alofi",currency:["NZD"],languages:["en"]},NZ:{name:"New Zealand",native:"New Zealand",phone:[64],continent:"OC",capital:"Wellington",currency:["NZD"],languages:["en","mi"]},OM:{name:"Oman",native:"عÙ
اÙ",phone:[968],continent:"AS",capital:"Muscat",currency:["OMR"],languages:["ar"]},PA:{name:"Panama",native:"Panamá",phone:[507],continent:"NA",capital:"Panama City",currency:["PAB","USD"],languages:["es"]},PE:{name:"Peru",native:"Perú",phone:[51],continent:"SA",capital:"Lima",currency:["PEN"],languages:["es"]},PF:{name:"French Polynesia",native:"Polynésie française",phone:[689],continent:"OC",capital:"PapeetÄ",currency:["XPF"],languages:["fr"]},PG:{name:"Papua New Guinea",native:"Papua Niugini",phone:[675],continent:"OC",capital:"Port Moresby",currency:["PGK"],languages:["en"]},PH:{name:"Philippines",native:"Pilipinas",phone:[63],continent:"AS",capital:"Manila",currency:["PHP"],languages:["en"]},PK:{name:"Pakistan",native:"Pakistan",phone:[92],continent:"AS",capital:"Islamabad",currency:["PKR"],languages:["en","ur"]},PL:{name:"Poland",native:"Polska",phone:[48],continent:"EU",capital:"Warsaw",currency:["PLN"],languages:["pl"]},PM:{name:"Saint Pierre and Miquelon",native:"Saint-Pierre-et-Miquelon",phone:[508],continent:"NA",capital:"Saint-Pierre",currency:["EUR"],languages:["fr"]},PN:{name:"Pitcairn Islands",native:"Pitcairn Islands",phone:[64],continent:"OC",capital:"Adamstown",currency:["NZD"],languages:["en"]},PR:{name:"Puerto Rico",native:"Puerto Rico",phone:[1787,1939],continent:"NA",capital:"San Juan",currency:["USD"],languages:["es","en"]},PS:{name:"Palestine",native:"ÙÙØ³Ø·ÙÙ",phone:[970],continent:"AS",capital:"Ramallah",currency:["ILS"],languages:["ar"]},PT:{name:"Portugal",native:"Portugal",phone:[351],continent:"EU",capital:"Lisbon",currency:["EUR"],languages:["pt"]},PW:{name:"Palau",native:"Palau",phone:[680],continent:"OC",capital:"Ngerulmud",currency:["USD"],languages:["en"]},PY:{name:"Paraguay",native:"Paraguay",phone:[595],continent:"SA",capital:"Asunción",currency:["PYG"],languages:["es","gn"]},QA:{name:"Qatar",native:"ÙØ·Ø±",phone:[974],continent:"AS",capital:"Doha",currency:["QAR"],languages:["ar"]},RE:{name:"Reunion",native:"La Réunion",phone:[262],continent:"AF",capital:"Saint-Denis",currency:["EUR"],languages:["fr"]},RO:{name:"Romania",native:"România",phone:[40],continent:"EU",capital:"Bucharest",currency:["RON"],languages:["ro"]},RS:{name:"Serbia",native:"СÑбиÑа",phone:[381],continent:"EU",capital:"Belgrade",currency:["RSD"],languages:["sr"]},RU:{name:"Russia",native:"РоÑÑиÑ",phone:[7],continent:"AS",continents:["AS","EU"],capital:"Moscow",currency:["RUB"],languages:["ru"]},RW:{name:"Rwanda",native:"Rwanda",phone:[250],continent:"AF",capital:"Kigali",currency:["RWF"],languages:["rw","en","fr"]},SA:{name:"Saudi Arabia",native:"Ø§ÙØ¹Ø±Ø¨ÙØ© Ø§ÙØ³Ø¹ÙØ¯ÙØ©",phone:[966],continent:"AS",capital:"Riyadh",currency:["SAR"],languages:["ar"]},SB:{name:"Solomon Islands",native:"Solomon Islands",phone:[677],continent:"OC",capital:"Honiara",currency:["SBD"],languages:["en"]},SC:{name:"Seychelles",native:"Seychelles",phone:[248],continent:"AF",capital:"Victoria",currency:["SCR"],languages:["fr","en"]},SD:{name:"Sudan",native:"Ø§ÙØ³ÙداÙ",phone:[249],continent:"AF",capital:"Khartoum",currency:["SDG"],languages:["ar","en"]},SE:{name:"Sweden",native:"Sverige",phone:[46],continent:"EU",capital:"Stockholm",currency:["SEK"],languages:["sv"]},SG:{name:"Singapore",native:"Singapore",phone:[65],continent:"AS",capital:"Singapore",currency:["SGD"],languages:["en","ms","ta","zh"]},SH:{name:"Saint Helena",native:"Saint Helena",phone:[290],continent:"AF",capital:"Jamestown",currency:["SHP"],languages:["en"]},SI:{name:"Slovenia",native:"Slovenija",phone:[386],continent:"EU",capital:"Ljubljana",currency:["EUR"],languages:["sl"]},SJ:{name:"Svalbard and Jan Mayen",native:"Svalbard og Jan Mayen",phone:[4779],continent:"EU",capital:"Longyearbyen",currency:["NOK"],languages:["no"]},SK:{name:"Slovakia",native:"Slovensko",phone:[421],continent:"EU",capital:"Bratislava",currency:["EUR"],languages:["sk"]},SL:{name:"Sierra Leone",native:"Sierra Leone",phone:[232],continent:"AF",capital:"Freetown",currency:["SLL"],languages:["en"]},SM:{name:"San Marino",native:"San Marino",phone:[378],continent:"EU",capital:"City of San Marino",currency:["EUR"],languages:["it"]},SN:{name:"Senegal",native:"Sénégal",phone:[221],continent:"AF",capital:"Dakar",currency:["XOF"],languages:["fr"]},SO:{name:"Somalia",native:"Soomaaliya",phone:[252],continent:"AF",capital:"Mogadishu",currency:["SOS"],languages:["so","ar"]},SR:{name:"Suriname",native:"Suriname",phone:[597],continent:"SA",capital:"Paramaribo",currency:["SRD"],languages:["nl"]},SS:{name:"South Sudan",native:"South Sudan",phone:[211],continent:"AF",capital:"Juba",currency:["SSP"],languages:["en"]},ST:{name:"Sao Tome and Principe",native:"São Tomé e PrÃncipe",phone:[239],continent:"AF",capital:"São Tomé",currency:["STN"],languages:["pt"]},SV:{name:"El Salvador",native:"El Salvador",phone:[503],continent:"NA",capital:"San Salvador",currency:["SVC","USD"],languages:["es"]},SX:{name:"Sint Maarten",native:"Sint Maarten",phone:[1721],continent:"NA",capital:"Philipsburg",currency:["ANG"],languages:["nl","en"]},SY:{name:"Syria",native:"Ø³ÙØ±Ùا",phone:[963],continent:"AS",capital:"Damascus",currency:["SYP"],languages:["ar"]},SZ:{name:"Eswatini",native:"Eswatini",phone:[268],continent:"AF",capital:"Lobamba",currency:["SZL"],languages:["en","ss"]},TC:{name:"Turks and Caicos Islands",native:"Turks and Caicos Islands",phone:[1649],continent:"NA",capital:"Cockburn Town",currency:["USD"],languages:["en"]},TD:{name:"Chad",native:"Tchad",phone:[235],continent:"AF",capital:"N'Djamena",currency:["XAF"],languages:["fr","ar"]},TF:{name:"French Southern Territories",native:"Territoire des Terres australes et antarctiques fr",phone:[262],continent:"AN",capital:"Port-aux-Français",currency:["EUR"],languages:["fr"]},TG:{name:"Togo",native:"Togo",phone:[228],continent:"AF",capital:"Lomé",currency:["XOF"],languages:["fr"]},TH:{name:"Thailand",native:"à¸à¸£à¸°à¹à¸à¸¨à¹à¸à¸¢",phone:[66],continent:"AS",capital:"Bangkok",currency:["THB"],languages:["th"]},TJ:{name:"Tajikistan",native:"ТоҷикиÑÑон",phone:[992],continent:"AS",capital:"Dushanbe",currency:["TJS"],languages:["tg","ru"]},TK:{name:"Tokelau",native:"Tokelau",phone:[690],continent:"OC",capital:"Fakaofo",currency:["NZD"],languages:["en"]},TL:{name:"East Timor",native:"Timor-Leste",phone:[670],continent:"OC",capital:"Dili",currency:["USD"],languages:["pt"]},TM:{name:"Turkmenistan",native:"Türkmenistan",phone:[993],continent:"AS",capital:"Ashgabat",currency:["TMT"],languages:["tk","ru"]},TN:{name:"Tunisia",native:"تÙÙØ³",phone:[216],continent:"AF",capital:"Tunis",currency:["TND"],languages:["ar"]},TO:{name:"Tonga",native:"Tonga",phone:[676],continent:"OC",capital:"Nuku'alofa",currency:["TOP"],languages:["en","to"]},TR:{name:"Turkey",native:"Türkiye",phone:[90],continent:"AS",continents:["AS","EU"],capital:"Ankara",currency:["TRY"],languages:["tr"]},TT:{name:"Trinidad and Tobago",native:"Trinidad and Tobago",phone:[1868],continent:"NA",capital:"Port of Spain",currency:["TTD"],languages:["en"]},TV:{name:"Tuvalu",native:"Tuvalu",phone:[688],continent:"OC",capital:"Funafuti",currency:["AUD"],languages:["en"]},TW:{name:"Taiwan",native:"èºç£",phone:[886],continent:"AS",capital:"Taipei",currency:["TWD"],languages:["zh"]},TZ:{name:"Tanzania",native:"Tanzania",phone:[255],continent:"AF",capital:"Dodoma",currency:["TZS"],languages:["sw","en"]},UA:{name:"Ukraine",native:"УкÑаÑна",phone:[380],continent:"EU",capital:"Kyiv",currency:["UAH"],languages:["uk"]},UG:{name:"Uganda",native:"Uganda",phone:[256],continent:"AF",capital:"Kampala",currency:["UGX"],languages:["en","sw"]},UM:{name:"U.S. Minor Outlying Islands",native:"United States Minor Outlying Islands",phone:[1],continent:"OC",capital:"",currency:["USD"],languages:["en"]},US:{name:"United States",native:"United States",phone:[1],continent:"NA",capital:"Washington D.C.",currency:["USD","USN","USS"],languages:["en"]},UY:{name:"Uruguay",native:"Uruguay",phone:[598],continent:"SA",capital:"Montevideo",currency:["UYI","UYU"],languages:["es"]},UZ:{name:"Uzbekistan",native:"O'zbekiston",phone:[998],continent:"AS",capital:"Tashkent",currency:["UZS"],languages:["uz","ru"]},VA:{name:"Vatican City",native:"Vaticano",phone:[379],continent:"EU",capital:"Vatican City",currency:["EUR"],languages:["it","la"]},VC:{name:"Saint Vincent and the Grenadines",native:"Saint Vincent and the Grenadines",phone:[1784],continent:"NA",capital:"Kingstown",currency:["XCD"],languages:["en"]},VE:{name:"Venezuela",native:"Venezuela",phone:[58],continent:"SA",capital:"Caracas",currency:["VES"],languages:["es"]},VG:{name:"British Virgin Islands",native:"British Virgin Islands",phone:[1284],continent:"NA",capital:"Road Town",currency:["USD"],languages:["en"]},VI:{name:"U.S. Virgin Islands",native:"United States Virgin Islands",phone:[1340],continent:"NA",capital:"Charlotte Amalie",currency:["USD"],languages:["en"]},VN:{name:"Vietnam",native:"Viá»t Nam",phone:[84],continent:"AS",capital:"Hanoi",currency:["VND"],languages:["vi"]},VU:{name:"Vanuatu",native:"Vanuatu",phone:[678],continent:"OC",capital:"Port Vila",currency:["VUV"],languages:["bi","en","fr"]},WF:{name:"Wallis and Futuna",native:"Wallis et Futuna",phone:[681],continent:"OC",capital:"Mata-Utu",currency:["XPF"],languages:["fr"]},WS:{name:"Samoa",native:"Samoa",phone:[685],continent:"OC",capital:"Apia",currency:["WST"],languages:["sm","en"]},XK:{name:"Kosovo",native:"Republika e Kosovës",phone:[377,381,383,386],continent:"EU",capital:"Pristina",currency:["EUR"],languages:["sq","sr"],userAssigned:!0},YE:{name:"Yemen",native:"اÙÙÙÙ
ÙÙ",phone:[967],continent:"AS",capital:"Sana'a",currency:["YER"],languages:["ar"]},YT:{name:"Mayotte",native:"Mayotte",phone:[262],continent:"AF",capital:"Mamoudzou",currency:["EUR"],languages:["fr"]},ZA:{name:"South Africa",native:"South Africa",phone:[27],continent:"AF",capital:"Pretoria",currency:["ZAR"],languages:["af","en","nr","st","ss","tn","ts","ve","xh","zu"]},ZM:{name:"Zambia",native:"Zambia",phone:[260],continent:"AF",capital:"Lusaka",currency:["ZMW"],languages:["en"]},ZW:{name:"Zimbabwe",native:"Zimbabwe",phone:[263],continent:"AF",capital:"Harare",currency:["USD","ZAR","BWP","GBP","AUD","CNY","INR","JPY"],languages:["en","sn","nd"]}},
4va={AD:"AND",AE:"ARE",AF:"AFG",AG:"ATG",AI:"AIA",AL:"ALB",AM:"ARM",AO:"AGO",AQ:"ATA",AR:"ARG",AS:"ASM",AT:"AUT",AU:"AUS",AW:"ABW",AX:"ALA",AZ:"AZE",BA:"BIH",BB:"BRB",BD:"BGD",BE:"BEL",BF:"BFA",BG:"BGR",BH:"BHR",BI:"BDI",BJ:"BEN",BL:"BLM",BM:"BMU",BN:"BRN",BO:"BOL",BQ:"BES",BR:"BRA",BS:"BHS",BT:"BTN",BV:"BVT",BW:"BWA",BY:"BLR",BZ:"BLZ",CA:"CAN",CC:"CCK",CD:"COD",CF:"CAF",CG:"COG",CH:"CHE",CI:"CIV",CK:"COK",CL:"CHL",CM:"CMR",CN:"CHN",CO:"COL",CR:"CRI",CU:"CUB",CV:"CPV",CW:"CUW",CX:"CXR",CY:"CYP",CZ:"CZE",DE:"DEU",DJ:"DJI",DK:"DNK",DM:"DMA",DO:"DOM",DZ:"DZA",EC:"ECU",EE:"EST",EG:"EGY",EH:"ESH",ER:"ERI",ES:"ESP",ET:"ETH",FI:"FIN",FJ:"FJI",FK:"FLK",FM:"FSM",FO:"FRO",FR:"FRA",GA:"GAB",GB:"GBR",GD:"GRD",GE:"GEO",GF:"GUF",GG:"GGY",GH:"GHA",GI:"GIB",GL:"GRL",GM:"GMB",GN:"GIN",GP:"GLP",GQ:"GNQ",GR:"GRC",GS:"SGS",GT:"GTM",GU:"GUM",GW:"GNB",GY:"GUY",HK:"HKG",HM:"HMD",HN:"HND",HR:"HRV",HT:"HTI",HU:"HUN",ID:"IDN",IE:"IRL",IL:"ISR",IM:"IMN",IN:"IND",IO:"IOT",IQ:"IRQ",IR:"IRN",IS:"ISL",IT:"ITA",JE:"JEY",JM:"JAM",JO:"JOR",JP:"JPN",KE:"KEN",KG:"KGZ",KH:"KHM",KI:"KIR",KM:"COM",KN:"KNA",KP:"PRK",KR:"KOR",KW:"KWT",KY:"CYM",KZ:"KAZ",LA:"LAO",LB:"LBN",LC:"LCA",LI:"LIE",LK:"LKA",LR:"LBR",LS:"LSO",LT:"LTU",LU:"LUX",LV:"LVA",LY:"LBY",MA:"MAR",MC:"MCO",MD:"MDA",ME:"MNE",MF:"MAF",MG:"MDG",MH:"MHL",MK:"MKD",ML:"MLI",MM:"MMR",MN:"MNG",MO:"MAC",MP:"MNP",MQ:"MTQ",MR:"MRT",MS:"MSR",MT:"MLT",MU:"MUS",MV:"MDV",MW:"MWI",MX:"MEX",MY:"MYS",MZ:"MOZ",NA:"NAM",NC:"NCL",NE:"NER",NF:"NFK",NG:"NGA",NI:"NIC",NL:"NLD",NO:"NOR",NP:"NPL",NR:"NRU",NU:"NIU",NZ:"NZL",OM:"OMN",PA:"PAN",PE:"PER",PF:"PYF",PG:"PNG",PH:"PHL",PK:"PAK",PL:"POL",PM:"SPM",PN:"PCN",PR:"PRI",PS:"PSE",PT:"PRT",PW:"PLW",PY:"PRY",QA:"QAT",RE:"REU",RO:"ROU",RS:"SRB",RU:"RUS",RW:"RWA",SA:"SAU",SB:"SLB",SC:"SYC",SD:"SDN",SE:"SWE",SG:"SGP",SH:"SHN",SI:"SVN",SJ:"SJM",SK:"SVK",SL:"SLE",SM:"SMR",SN:"SEN",SO:"SOM",SR:"SUR",SS:"SSD",ST:"STP",SV:"SLV",SX:"SXM",SY:"SYR",SZ:"SWZ",TC:"TCA",TD:"TCD",TF:"ATF",TG:"TGO",TH:"THA",TJ:"TJK",TK:"TKL",TL:"TLS",TM:"TKM",TN:"TUN",TO:"TON",TR:"TUR",TT:"TTO",TV:"TUV",TW:"TWN",TZ:"TZA",UA:"UKR",UG:"UGA",UM:"UMI",US:"USA",UY:"URY",UZ:"UZB",VA:"VAT",VC:"VCT",VE:"VEN",VG:"VGB",VI:"VIR",VN:"VNM",VU:"VUT",WF:"WLF",WS:"WSM",XK:"XKX",YE:"YEM",YT:"MYT",ZA:"ZAF",ZM:"ZMB",ZW:"ZWE"},He=e=>({..._e[e],iso2:e,iso3:va[e]}),We=()=>Object.keys(_e).map(e=>He(e));We();var ma=127397,ga=/^[A-Z]{2}$/,De=e=>ga.test(e)?String.fromCodePoint(...e.split("").map(t=>ma+t.toUpperCase().charCodeAt(0))):"";const ha={class:"relative mt-2"},fa={class:"flex items-center"},ba=_({__name:"FormCountryField",props:{id:{type:String,required:!0},type:{type:String,default:"text"},value:{type:String,default:void 0},name:{type:String,required:!0},label:{type:String,required:!0},rules:{type:Object,default:void 0},disabled:{type:Boolean,default:!1}},setup(e){const t=e,n=ye(t,"name"),{value:l,errorMessage:a,handleBlur:o,handleChange:u,meta:i}=be(n,t.rules),m=b(()=>We()),s=P(""),r=P(""),c=b(()=>s.value===""?m.value:m.value.filter(M=>M.name.toLowerCase().includes(s.value.toLowerCase()))),f=b(()=>{const M=r.value;if(!M)return"";const w=He(M);return`${De(w.iso2)} ${w.name}`});function C(M){s.value="",u(M)}function x(M){s.value="",o(M,!0)}return te(()=>{l.value?r.value=l.value:t.value&&(r.value=t.value,l.value=t.value)}),(M,w)=>{const S=ca,g=Ne,I=sa,D=pa,d=da,R=ra,T=vn;return E(),N("div",null,[Z(T,null,{default:q(()=>[Z(R,{modelValue:y(r),"onUpdate:modelValue":[w[1]||(w[1]=p=>an(r)?r.value=p:null),C],as:"div",disabled:t.disabled},{default:q(()=>[B("div",ha,[Z(S,{class:"w-full rounded-md border-0 bg-white px-4 py-3 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 transition-all focus:ring-2 focus:ring-inset focus:ring-blue-600 disabled:bg-neutral-200 sm:text-sm sm:leading-6","display-value":p=>y(f),onChange:w[0]||(w[0]=p=>s.value=p.target.value),onBlur:x},null,8,["display-value"]),Z(I,{class:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none"},{default:q(()=>[Z(g,{name:"heroicons:chevron-down",class:"h-5 w-5 text-gray-400","aria-hidden":"true"})]),_:1}),y(c).length>0?(E(),Y(d,{key:0,class:"absolute z-10 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:q(()=>[(E(!0),N($,null,oe(y(c),p=>(E(),Y(D,{key:p.name,value:p.iso2,as:"template"},{default:q(({active:O,selected:v})=>[B("li",{class:K(["relative cursor-default select-none py-2 pl-3 pr-9",[O?"bg-blue-800 text-white":"text-gray-900"]])},[B("div",fa,[Se(z(y(De)(p.iso2))+" ",1),B("span",{class:K(["ml-3 truncate",[v&&"font-semibold"]])},z(p.name),3)]),v?(E(),N("span",{key:0,class:K(["absolute inset-y-0 right-0 flex items-center pr-4",[O?"text-white":"text-blue-600"]])},[Z(g,{name:"heroicons:check",class:"h-5 w-5","aria-hidden":"true"})],2)):W("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):W("",!0)])]),_:1},8,["modelValue","disabled"])]),_:1})])}}}),ya=["for"],Sa={key:0,class:"text-red-400"},Aa={class:"mt-2 w-full"},Ea={class:"mt-2 block w-full align-middle"},Ca=["for"],xa=_({__name:"FormField",props:{field:{}},setup(e){return(t,n)=>{const l=Dn,a=Gn,o=ba,u=je,i=Ze;return E(),N("div",{class:K(t.field.containerClass??"")},[B("label",{class:K([t.field.inputClass??"font-medium"]),for:t.field.name},[Se(z(t.field.label)+" ",1),t.field.required?(E(),N("span",Sa,"*")):W("",!0)],10,ya),t.field.description?(E(),N("p",{key:0,class:K(t.field.descriptionClass??"mt-2 whitespace-pre-wrap text-neutral-600")},z(t.field.description),3)):W("",!0),B("div",Aa,[t.field.type==="custom"?Ae(t.$slots,"default",{key:0}):t.field.type==="video"?(E(),Y(l,{key:1,id:t.field.name,label:t.field.label,name:t.field.name,type:t.field.type,value:t.field.value??void 0,rules:t.field.rules,disabled:t.field.disabled,"allowed-file-types":t.field.allowedFileTypes,"max-file-size":t.field.maxFileSize},null,8,["id","label","name","type","value","rules","disabled","allowed-file-types","max-file-size"])):t.field.type==="order"?(E(),Y(a,{key:2,id:t.field.name,label:t.field.label,name:t.field.name,type:t.field.type,options:t.field.options,value:t.field.value??[],disabled:t.field.disabled},null,8,["id","label","name","type","options","value","disabled"])):t.field.type==="country"?(E(),Y(o,{key:3,id:t.field.name,label:t.field.label,name:t.field.name,type:t.field.type,value:t.field.value??void 0,disabled:t.field.disabled},null,8,["id","label","name","type","value","disabled"])):["radio","checkbox"].includes(t.field.type)?(E(!0),N($,{key:4}
4,oe(t.field.options,(m,s)=>(E(),N("div",Ea,[Z(u,{id:t.field.name+s,label:t.field.label,name:t.field.name,type:t.field.type,value:s,disabled:t.field.disabled},null,8,["id","label","name","type","value","disabled"]),B("label",{for:t.field.name+s,class:"ml-2"},z(m),9,Ca)]))),256)):t.field.type==="textarea"?(E(),Y(u,{key:5,id:t.field.name,as:"textarea",label:t.field.label,name:t.field.name,type:"text",placeholder:t.field.placeholder,value:t.field.value,disabled:t.field.disabled,class:K(t.field.inputClass??"block min-h-48 w-full rounded-md px-4 py-3 disabled:bg-neutral-200")},null,8,["id","label","name","placeholder","value","disabled","class"])):(E(),Y(u,{key:6,id:t.field.name,label:t.field.label,name:t.field.name,type:t.field.type,placeholder:t.field.placeholder,value:t.field.value,disabled:t.field.disabled,class:K(t.field.inputClass??"block w-full rounded-md px-4 py-3 disabled:bg-neutral-200")},null,8,["id","label","name","type","placeholder","value","disabled","class"])),Z(i,{name:t.field.name,class:K(t.field.errorClass??"mt-2 block text-red-500")},null,8,["name","class"])])],2)}}}),Ma={key:0},Ra=_({__name:"FormStep",setup(e){const t=de("STEP_COUNTER").value++,n=de("CURRENT_STEP_INDEX"),l=b(()=>t===n.value);return(a,o)=>y(l)?(E(),N("div",Ma,[Ae(a.$slots,"default")])):W("",!0)}}),Fa={key:0},Ia=_({__name:"FormWizard",props:{schema:{}},emits:["submit"],setup(e,{emit:t}){const n=e,l=t,a=!1,o=P(0),u=P(0);pe("STEP_COUNTER",u),pe("CURRENT_STEP_INDEX",o);const i=b(()=>{const g=n.schema.steps[o.value].fields.map(d=>[d.name,d.rules]),I=Object.fromEntries(g);return mn().shape(I)}),{values:m,handleSubmit:s}=Ye({validationSchema:i,keepValuesOnUnmount:!0});function r(S){return S.condition?S.condition(m):!0}const c=b(()=>{const S=o.value;for(let g=S+1;g<n.schema.steps.length;g++)if(r(n.schema.steps[g]))return g;return S}),f=b(()=>{const S=o.value;for(let g=S-1;g>=0;g--)if(r(n.schema.steps[g]))return g;return S}),C=b(()=>o.value!==c.value),x=b(()=>o.value!==f.value),M=s(S=>{if(C.value){o.value=c.value;return}l("submit",S)});function w(){o.value!==0&&(o.value=f.value)}return(S,g)=>(E(),N($,null,[B("form",{class:"w-full",onSubmit:g[0]||(g[0]=(...I)=>y(M)&&y(M)(...I))},[Ae(S.$slots,"default"),B("div",{class:K([S.schema.buttonContainerClass??"mt-4 flex gap-4"])},[y(x)?(E(),N("button",{key:0,type:"button",class:K([S.schema.backButtonClass??"h-16 w-full rounded-lg bg-blue-900 px-4 py-2 font-semibold text-gray-50 transition-all hover:bg-blue-950"]),onClick:w},z(!y(x)&&S.schema.backButtonText?S.schema.backButtonText:"Back"),3)):W("",!0),B("button",{type:"submit",class:K([S.schema.nextButtonClass??"h-16 w-full rounded-lg bg-blue-900 px-4 py-2 font-semibold text-gray-50 transition-all hover:bg-blue-950"])},z(y(C)?S.schema.nextButtonText??"Next":S.schema.submitButtonText??"Submit"),3)],2)],32),y(a)?(E(),N("p",Fa,z(y(m)),1)):W("",!0)],64))}}),Ba={key:0,class:"mb-2"},Ta={class:"text-lg font-bold"},Oa={class:"text-medium mt-1 whitespace-pre-wrap"},Ka=_({__name:"FormGenerator",props:{schema:{}},emits:["submit"],setup(e,{emit:t}){const n=t,l=P({});function a(o){l.value=o,n("submit",o)}return(o,u)=>{const i=xa,m=Ra,s=Ia;return E(),Y(s,{schema:o.schema,onSubmit:a},{default:q(()=>[(E(!0),N($,null,oe(o.schema.steps,r=>(E(),Y(m,{class:K(r.containerClass??"flex flex-col gap-6")},{default:q(()=>[r.title||r.description?(E(),N("div",Ba,[B("h1",Ta,z(r.title),1),B("h2",Oa,z(r.description),1)])):W("",!0),(E(!0),N($,null,oe(r.fields,c=>(E(),Y(i,{field:c},null,8,["field"]))),256))]),_:2},1032,["class"]))),256))]),_:1},8,["schema"])}}});export{Ka as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.