@kvass/widgets 1.8.19 → 1.8.20
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/flatfinder.js +1 -1
- package/package.json +2 -2
package/dist/flatfinder.js
CHANGED
|
@@ -173,7 +173,7 @@ query ($id: ID!) {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};const Yc={},Cv=e=>e.filter(function(t){if(t.kind!=="FragmentDefinition")return!0;const r=t.name.value;return Yc[r]?!1:(Yc[r]=!0,!0)});so.definitions=so.definitions.concat(Cv(Qn.definitions));const Kc=Object.assign({"./Flatfinder.gql":oo,"./FlatfinderMetadata.gql":qp,"./Project.gql":so}),No={};Object.keys(Kc).forEach(e=>{const t=e.replace(/(\.\/|\.gql)/g,"");No[t]=Kc[e]});let Hi;function Ov(e){switch(e){case"en_US":return"en";case"da_DK":return"da";case"de_DE":return"de";case"sv_SE":return"sv";case"nl_NL":return"nl";case"nn_NO":return"nn";case"nb_NO":return"nb";case"no":return"nb";default:return e||"nb"}}function $p(e){if(Hi)return Hi;const{url:t,headers:r}=e;return Hi=new xv(t,{headers:{"accept-language":Ov(document?.querySelector("html")?.getAttribute("lang")),...r}})}async function Lv(e){return Hi.request(No.Flatfinder,e).then(t=>t)}async function Pv(e){return Hi.request(No.FlatfinderMetadata,e)}async function Iv(e){return Hi.request(No.Project,e).then(t=>t.Project)}function Dv(e,t){let r,n,a;const s=$(!0),u=()=>{s.value=!0,a()};$e(e,u,{flush:"sync"});const c=typeof t=="function"?t:t.get,d=typeof t=="function"?void 0:t.set,h=Ap((m,g)=>(n=m,a=g,{get(){return s.value&&(r=c(),s.value=!1),n(),r},set(v){d?.(v)}}));return Object.isExtensible(h)&&(h.trigger=u),h}function Wp(e){return Lp()?(Pp(e),!0):!1}function Qi(e){return typeof e=="function"?e():he(e)}const Fv=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Nv=e=>e!=null,Mv=Object.prototype.toString,Rv=e=>Mv.call(e)==="[object Object]",qi=()=>{};function Bv(e,t){function r(...n){return new Promise((a,s)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(a).catch(s)})}return r}const jv=e=>e();function zv(e,t={}){let r,n,a=qi;const s=u=>{clearTimeout(u),a(),a=qi};return u=>{const c=Qi(e),d=Qi(t.maxWait);return r&&s(r),c<=0||d!==void 0&&d<=0?(n&&(s(n),n=null),Promise.resolve(u())):new Promise((h,m)=>{a=t.rejectOnCancel?m:h,d&&!n&&(n=setTimeout(()=>{r&&s(r),n=null,h(u())},d)),r=setTimeout(()=>{n&&s(n),n=null,h(u())},c)})}}function Vv(e){return Io()}function Uv(e,t,r={}){const{eventFilter:n=jv,...a}=r;return $e(e,Bv(n,t),a)}function Zv(e,t=!0,r){Vv()?wt(e,r):t?e():Op(e)}function Hv(e,t,r={}){const{debounce:n=0,maxWait:a=void 0,...s}=r;return Uv(e,t,{...s,eventFilter:zv(n,{maxWait:a})})}function In(e){var t;const r=Qi(e);return(t=r?.$el)!=null?t:r}const Mo=Fv?window:void 0;function Sa(...e){let t,r,n,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,a]=e,t=Mo):[t,r,n,a]=e,!t)return qi;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const s=[],u=()=>{s.forEach(m=>m()),s.length=0},c=(m,g,v,_)=>(m.addEventListener(g,v,_),()=>m.removeEventListener(g,v,_)),d=$e(()=>[In(t),Qi(a)],([m,g])=>{if(u(),!m)return;const v=Rv(g)?{...g}:g;s.push(...r.flatMap(_=>n.map(b=>c(m,_,b,v))))},{immediate:!0,flush:"post"}),h=()=>{d(),u()};return Wp(h),h}function qv(){const e=$(!1),t=Io();return t&&wt(()=>{e.value=!0},t),e}function $v(e){const t=qv();return oe(()=>(t.value,!!e()))}function Gp(e){const t=Io(),r=Dv(()=>null,()=>t.proxy.$el);return Sp(r.trigger),wt(r.trigger),r}function Wv(e,t,r={}){const{root:n,rootMargin:a="0px",threshold:s=.1,window:u=Mo,immediate:c=!0}=r,d=$v(()=>u&&"IntersectionObserver"in u),h=oe(()=>{const b=Qi(e);return(Array.isArray(b)?b:[b]).map(In).filter(Nv)});let m=qi;const g=$(c),v=d.value?$e(()=>[h.value,In(n),g.value],([b,y])=>{if(m(),!g.value||!b.length)return;const x=new IntersectionObserver(t,{root:In(y),rootMargin:a,threshold:s});b.forEach(A=>A&&x.observe(A)),m=()=>{x.disconnect(),m=qi}},{immediate:c,flush:"post"}):qi,_=()=>{m(),v(),g.value=!1};return Wp(_),{isSupported:d,isActive:g,pause(){m(),g.value=!1},resume(){g.value=!0},stop:_}}function Gv(e,t={}){const{window:r=Mo,scrollTarget:n,threshold:a=0}=t,s=$(!1);return Wv(e,u=>{let c=s.value,d=0;for(const h of u)h.time>=d&&(d=h.time,c=h.isIntersecting);s.value=c},{root:n,window:r,threshold:a}),s}const Yv={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function Kv(e={}){const{type:t="page",touch:r=!0,resetOnTouchEnds:n=!1,initialValue:a={x:0,y:0},window:s=Mo,target:u=s,scroll:c=!0,eventFilter:d}=e;let h=null;const m=$(a.x),g=$(a.y),v=$(null),_=typeof t=="function"?t:Yv[t],b=O=>{const V=_(O);h=O,V&&([m.value,g.value]=V,v.value="mouse")},y=O=>{if(O.touches.length>0){const V=_(O.touches[0]);V&&([m.value,g.value]=V,v.value="touch")}},x=()=>{if(!h||!s)return;const O=_(h);h instanceof MouseEvent&&O&&(m.value=O[0]+s.scrollX,g.value=O[1]+s.scrollY)},A=()=>{m.value=a.x,g.value=a.y},T=d?O=>d(()=>b(O),{}):O=>b(O),S=d?O=>d(()=>y(O),{}):O=>y(O),M=d?()=>d(()=>x(),{}):()=>x();if(u){const O={passive:!0};Sa(u,["mousemove","dragover"],T,O),r&&t!=="movement"&&(Sa(u,["touchstart","touchmove"],S,O),n&&Sa(u,"touchend",A,O)),c&&t==="page"&&Sa(s,"scroll",M,{passive:!0})}return{x:m,y:g,sourceType:v}}function Xv(e=Gp()){const t=iu(),r=()=>{const n=In(e);n&&(t.value=n.parentElement)};return Zv(r),$e(()=>Qi(e),r),t}function Jv(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(a){a(r)}),(n=e.get("*"))&&n.slice().map(function(a){a(t,r)})}}}var Qv=function(e,t,r){if(arguments.length===2)for(var n=0,a=t.length,s;n<a;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};function ek(e,t,r){var n=Array.from(t),a=e.length-t.length;if(a===0)return e.apply(void 0,n);if(a===1){var s=function(c){return e.apply(void 0,Qv([c],n,!1))},u=e.lazy;return u===void 0?s:Object.assign(s,{lazy:u,lazyArgs:t})}throw new Error("Wrong number of arguments")}function hl(){return ek(tk,arguments)}function tk(e,t,r){for(var n=e,a=0,s=t;a<s.length;a++){var u=s[a];if(n==null)break;n=n[u]}return n??r}var rk=function(e,t,r){for(var n=0,a=t.length,s;n<a;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};function fl(e){return Yp(e)}function Yp(e){var t;if(e.length===0)return[];var r=(t=/^\[(.+?)\](.*)$/u.exec(e))!==null&&t!==void 0?t:/^\.?([^.[\]]+)(.*)$/u.exec(e);if(r!==null){var n=r[1],a=r[2];return rk([n],Yp(a))}return[e]}const ik="Aircondition",nk="Alarm",ak="Alpinanlæg",ok="Grill",sk="Bådplads",lk="Bredbåndsforbindelse",uk="Kantine",ck="Centralt",dk="Børnevenligt",pk="Klik for at filtrere",hk="Kommunale afgifter",fk="Byggeår",mk="Bebygget areal",gk="Bilvej frem",vk="Køreport",kk="Indlagt strøm",_k="Balkon med glas",bk="Energimærkning",yk="Energimærke (farve)",xk="Udvidelsesmuligheder",wk="Filtrer",Ek="Pejs/Brændeovn",Tk="Fiskemulighed",Sk="Træningsrum",Ak="Etage",Ck="Gulvareal",Ok="Fandt {0} resultater",Lk="Fryser",Pk="Have",Ik="Gå tilbage",Dk="Golfbane",Fk="Bruttoareal",Nk="Højde",Mk="Turterræn",Rk="Billeder er ment som illustration",Bk="Indendørs swimmingpool",jk="Jacuzzi",zk="Fællesgæld",Vk="Lasterampe",Uk="Se {x}",Zk="mnd",Hk="Nej",qk="Ikke-ryger",$k="Bad/toilet",Wk="Soveværelse",Gk="Antal etager",Yk="Antal parkeringspladser",Kk="Antal værelser",Xk="Terrasse- og balkonareal",Jk="Ejerform",Qk="Husdyr tilladt",e_="Grundareal",t_="Ejendomsskat",r_="Ejerforhold (grund)",i_="Pris",n_="Pris ved forespørgsel",a_="Primærrum",o_="Boligtype",s_="Roligt",l_="Fjern",u_="Renoveringsår",c_="Omkostninger",d_="Den angivne pris er inkl. omkostninger",p_="Højde på tagryg",h_="Sauna",f_="Vælg",m_="Fælles reception",g_="Strandlinje",v_="Opbevaringsrum",k_="Status",__="Solafskærmning",b_="Bademulighed",y_="Formueværdi",x_="Totalpris",w_="Enhed | Enheder",E_="Livscyklusstandard",T_="Brugsareal",S_="Eksternt brugsareal",A_="Internt brugsareal",C_="Walk-in-closet",O_="Indlagt vand",L_="Bredde",P_="Ja",I_="Du er her",D_={aircondition:ik,alarm:nk,alpineResort:ak,barbecue:ok,boatBerth:sk,broadbandConnection:lk,cafeteria:uk,central:ck,childFriendly:dk,clickToFilter:pk,communityTax:hk,constructionYear:fk,delete:"Slet",developedArea:mk,driveableRoadToDestination:gk,drivewayGate:vk,electricityInstalled:kk,enclosedBalconyArea:_k,energyLabel:bk,"energyLabel:A":"A","energyLabel:B":"B","energyLabel:C":"C",energyLabelColor:yk,"energyLabelColor:darkGreen":"Mørkegrøn","energyLabelColor:lightGreen":"Lysgrøn","energyLabelColor:orange":"Orange","energyLabelColor:red":"Rød","energyLabelColor:yellow":"Gul","energyLabel:D":"D","energyLabel:E":"E","energyLabel:F":"F","energyLabel:G":"G",expansionPossibilities:xk,filter:wk,fireplace:Ek,fishingOpportunity:Tk,fitnessRoom:Sk,floor:Ak,floorArea:Ck,foundXResults:Ok,freezer:Lk,garden:Pk,goBack:Ik,golfCourse:Dk,grossArea:Fk,height:Nk,hikingArea:Mk,imagesOnlyAsIllustration:Rk,indoorSwimmingPool:Bk,jacuzzi:jk,jointDebt:zk,loadingDock:Vk,lookAt:Uk,multiplicatorMonthly:Zk,no:Hk,nonSmoking:qk,numberOfBathrooms:$k,numberOfBedrooms:Wk,numberOfFloors:Gk,numberOfParkingSpots:Yk,numberOfRooms:Kk,openArea:Xk,ownershipType:Jk,"ownershipType:collectiveOwnership":"Aktie","ownershipType:condominium":"Ejersektion","ownershipType:freehold":"Ejer (husejer)","ownershipType:leasehold":"Obligation","ownershipType:other":"Andet","ownershipType:partOwnership":"Andel",petsAllowed:Qk,plotArea:e_,plotGroundTax:t_,plotOwnershipType:r_,"plotOwnershipType:collectiveOwnership":"Aktie","plotOwnershipType:freehold":"Ejer (husejer)","plotOwnershipType:leasehold":"Obligation","plotOwnershipType:other":"Andet","plotOwnershipType:partOwnership":"Andel",price:i_,priceOnRequest:n_,primaryRoomArea:a_,propertyType:o_,"propertyType:commonAreas":"Fællesarealer","propertyType:detached":"Enfamiliebolig | Enfamilieboliger","propertyType:flat":"Lejlighed | Lejligheder","propertyType:four-person-home":"Firemandsbolig","propertyType:leisure":"Sommerhus | Sommerhuse","propertyType:leisurePlot":"Fritidsgrund | Fritidsgrunde","propertyType:office":"Kontor | Kontorer","propertyType:plot":"Boliggrund | Boliggrunde","propertyType:semidetached":"Dobbelthus","propertyType:storage":"Lager","propertyType:terraced":"Rækkehus",quiet:s_,remove:l_,renovationYear:u_,"rent-properties-propertyType:business":"Handel","rent-properties-propertyType:multipurposearea":"Lokaler til diverse formål","rent-properties-propertyType:office":"Kontor","rent-properties-propertyType:storage":"Lager og logistik",residentialSaleFee:c_,residentialSaleFeeIncluded:d_,"residentialStatus:rent":{development:"Under udvikling",draft:"@:unpublished",rent:"Til leje",rented:"Udlejet",reserved:"Reserveret",upcoming:"Kommer til salg"},"residentialStatus:sale":{development:"Under udvikling",draft:"@:unpublished",reserved:"Reserveret",sale:"Til salg",sold:"Solgt",upcoming:"Kommer til salg"},roofRidge:p_,sauna:h_,select:f_,sharedReception:m_,shoreline:g_,sportsStorageRoom:v_,status:k_,sunShading:__,swimmingOpportunity:b_,taxValue:y_,totalPrice:x_,unit:w_,universalDesign:E_,useableArea:T_,useableExternalArea:S_,useableInternalArea:A_,walkInCloset:C_,waterInstalled:O_,width:L_,yes:P_,youAreHere:I_},F_="Air conditioning",N_="Alarm",M_="Ski resort",R_="Barbecue",B_="Boat berth",j_="Broadband connection",z_="Cafeteria",V_="Central",U_="Child-friendly",Z_="Click to filter",H_="Municipal taxes",q_="Construction year",$_="Developed area",W_="Car access",G_="Driveway gate",Y_="Electricity installed",K_="Glazed balcony",X_="Energy labelling",J_="Energy labeling (colour)",Q_="Expansion possibilities",eb="Filter",tb="Fireplace / Stove",rb="Fishing opportunity",ib="Gym",nb="Storey",ab="Floor area",ob="Found {0} results",sb="Freezer",lb="Garden",ub="Back",cb="Golf course",db="Gross building area",pb="Height",hb="Hiking terrain",fb="Images are for illustrative purposes",mb="Indoor swimming pool",gb="Jacuzzi",vb="Joint debt",kb="Loading dock",_b="Look at {x}",bb="mth",yb="No",xb="Non-smoking",wb="Bathrooms/WC",Eb="Bedrooms",Tb="Number of storeys",Sb="Number of parking spots",Ab="Number of rooms",Cb="Open area",Ob="Ownership",Lb="Pets allowed",Pb="Building plot area",Ib="Property tax",Db="Ownership (plot)",Fb="Price",Nb="Price upon request",Mb="Primary rooms",Rb="Home type",Bb="Quiet",jb="Remove",zb=`Renovation year
|
|
176
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};const Yc={},Cv=e=>e.filter(function(t){if(t.kind!=="FragmentDefinition")return!0;const r=t.name.value;return Yc[r]?!1:(Yc[r]=!0,!0)});so.definitions=so.definitions.concat(Cv(Qn.definitions));const Kc=Object.assign({"./Flatfinder.gql":oo,"./FlatfinderMetadata.gql":qp,"./Project.gql":so}),No={};Object.keys(Kc).forEach(e=>{const t=e.replace(/(\.\/|\.gql)/g,"");No[t]=Kc[e]});let Hi;function Ov(e){switch(e){case"en_US":return"en";case"da_DK":return"da";case"de_DE":return"de";case"sv_SE":return"sv";case"nl_NL":return"nl";case"nn_NO":return"nn";case"nb_NO":return"nb";case"nb-NO":return"nb";case"no":return"nb";default:return e||"nb"}}function $p(e){if(Hi)return Hi;const{url:t,headers:r}=e;return Hi=new xv(t,{headers:{"accept-language":Ov(document?.querySelector("html")?.getAttribute("lang")),...r}})}async function Lv(e){return Hi.request(No.Flatfinder,e).then(t=>t)}async function Pv(e){return Hi.request(No.FlatfinderMetadata,e)}async function Iv(e){return Hi.request(No.Project,e).then(t=>t.Project)}function Dv(e,t){let r,n,a;const s=$(!0),u=()=>{s.value=!0,a()};$e(e,u,{flush:"sync"});const c=typeof t=="function"?t:t.get,d=typeof t=="function"?void 0:t.set,h=Ap((m,g)=>(n=m,a=g,{get(){return s.value&&(r=c(),s.value=!1),n(),r},set(v){d?.(v)}}));return Object.isExtensible(h)&&(h.trigger=u),h}function Wp(e){return Lp()?(Pp(e),!0):!1}function Qi(e){return typeof e=="function"?e():he(e)}const Fv=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Nv=e=>e!=null,Mv=Object.prototype.toString,Rv=e=>Mv.call(e)==="[object Object]",qi=()=>{};function Bv(e,t){function r(...n){return new Promise((a,s)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(a).catch(s)})}return r}const jv=e=>e();function zv(e,t={}){let r,n,a=qi;const s=u=>{clearTimeout(u),a(),a=qi};return u=>{const c=Qi(e),d=Qi(t.maxWait);return r&&s(r),c<=0||d!==void 0&&d<=0?(n&&(s(n),n=null),Promise.resolve(u())):new Promise((h,m)=>{a=t.rejectOnCancel?m:h,d&&!n&&(n=setTimeout(()=>{r&&s(r),n=null,h(u())},d)),r=setTimeout(()=>{n&&s(n),n=null,h(u())},c)})}}function Vv(e){return Io()}function Uv(e,t,r={}){const{eventFilter:n=jv,...a}=r;return $e(e,Bv(n,t),a)}function Zv(e,t=!0,r){Vv()?wt(e,r):t?e():Op(e)}function Hv(e,t,r={}){const{debounce:n=0,maxWait:a=void 0,...s}=r;return Uv(e,t,{...s,eventFilter:zv(n,{maxWait:a})})}function In(e){var t;const r=Qi(e);return(t=r?.$el)!=null?t:r}const Mo=Fv?window:void 0;function Sa(...e){let t,r,n,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,a]=e,t=Mo):[t,r,n,a]=e,!t)return qi;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const s=[],u=()=>{s.forEach(m=>m()),s.length=0},c=(m,g,v,_)=>(m.addEventListener(g,v,_),()=>m.removeEventListener(g,v,_)),d=$e(()=>[In(t),Qi(a)],([m,g])=>{if(u(),!m)return;const v=Rv(g)?{...g}:g;s.push(...r.flatMap(_=>n.map(b=>c(m,_,b,v))))},{immediate:!0,flush:"post"}),h=()=>{d(),u()};return Wp(h),h}function qv(){const e=$(!1),t=Io();return t&&wt(()=>{e.value=!0},t),e}function $v(e){const t=qv();return oe(()=>(t.value,!!e()))}function Gp(e){const t=Io(),r=Dv(()=>null,()=>t.proxy.$el);return Sp(r.trigger),wt(r.trigger),r}function Wv(e,t,r={}){const{root:n,rootMargin:a="0px",threshold:s=.1,window:u=Mo,immediate:c=!0}=r,d=$v(()=>u&&"IntersectionObserver"in u),h=oe(()=>{const b=Qi(e);return(Array.isArray(b)?b:[b]).map(In).filter(Nv)});let m=qi;const g=$(c),v=d.value?$e(()=>[h.value,In(n),g.value],([b,y])=>{if(m(),!g.value||!b.length)return;const x=new IntersectionObserver(t,{root:In(y),rootMargin:a,threshold:s});b.forEach(A=>A&&x.observe(A)),m=()=>{x.disconnect(),m=qi}},{immediate:c,flush:"post"}):qi,_=()=>{m(),v(),g.value=!1};return Wp(_),{isSupported:d,isActive:g,pause(){m(),g.value=!1},resume(){g.value=!0},stop:_}}function Gv(e,t={}){const{window:r=Mo,scrollTarget:n,threshold:a=0}=t,s=$(!1);return Wv(e,u=>{let c=s.value,d=0;for(const h of u)h.time>=d&&(d=h.time,c=h.isIntersecting);s.value=c},{root:n,window:r,threshold:a}),s}const Yv={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function Kv(e={}){const{type:t="page",touch:r=!0,resetOnTouchEnds:n=!1,initialValue:a={x:0,y:0},window:s=Mo,target:u=s,scroll:c=!0,eventFilter:d}=e;let h=null;const m=$(a.x),g=$(a.y),v=$(null),_=typeof t=="function"?t:Yv[t],b=O=>{const V=_(O);h=O,V&&([m.value,g.value]=V,v.value="mouse")},y=O=>{if(O.touches.length>0){const V=_(O.touches[0]);V&&([m.value,g.value]=V,v.value="touch")}},x=()=>{if(!h||!s)return;const O=_(h);h instanceof MouseEvent&&O&&(m.value=O[0]+s.scrollX,g.value=O[1]+s.scrollY)},A=()=>{m.value=a.x,g.value=a.y},T=d?O=>d(()=>b(O),{}):O=>b(O),S=d?O=>d(()=>y(O),{}):O=>y(O),M=d?()=>d(()=>x(),{}):()=>x();if(u){const O={passive:!0};Sa(u,["mousemove","dragover"],T,O),r&&t!=="movement"&&(Sa(u,["touchstart","touchmove"],S,O),n&&Sa(u,"touchend",A,O)),c&&t==="page"&&Sa(s,"scroll",M,{passive:!0})}return{x:m,y:g,sourceType:v}}function Xv(e=Gp()){const t=iu(),r=()=>{const n=In(e);n&&(t.value=n.parentElement)};return Zv(r),$e(()=>Qi(e),r),t}function Jv(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(a){a(r)}),(n=e.get("*"))&&n.slice().map(function(a){a(t,r)})}}}var Qv=function(e,t,r){if(arguments.length===2)for(var n=0,a=t.length,s;n<a;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};function ek(e,t,r){var n=Array.from(t),a=e.length-t.length;if(a===0)return e.apply(void 0,n);if(a===1){var s=function(c){return e.apply(void 0,Qv([c],n,!1))},u=e.lazy;return u===void 0?s:Object.assign(s,{lazy:u,lazyArgs:t})}throw new Error("Wrong number of arguments")}function hl(){return ek(tk,arguments)}function tk(e,t,r){for(var n=e,a=0,s=t;a<s.length;a++){var u=s[a];if(n==null)break;n=n[u]}return n??r}var rk=function(e,t,r){for(var n=0,a=t.length,s;n<a;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};function fl(e){return Yp(e)}function Yp(e){var t;if(e.length===0)return[];var r=(t=/^\[(.+?)\](.*)$/u.exec(e))!==null&&t!==void 0?t:/^\.?([^.[\]]+)(.*)$/u.exec(e);if(r!==null){var n=r[1],a=r[2];return rk([n],Yp(a))}return[e]}const ik="Aircondition",nk="Alarm",ak="Alpinanlæg",ok="Grill",sk="Bådplads",lk="Bredbåndsforbindelse",uk="Kantine",ck="Centralt",dk="Børnevenligt",pk="Klik for at filtrere",hk="Kommunale afgifter",fk="Byggeår",mk="Bebygget areal",gk="Bilvej frem",vk="Køreport",kk="Indlagt strøm",_k="Balkon med glas",bk="Energimærkning",yk="Energimærke (farve)",xk="Udvidelsesmuligheder",wk="Filtrer",Ek="Pejs/Brændeovn",Tk="Fiskemulighed",Sk="Træningsrum",Ak="Etage",Ck="Gulvareal",Ok="Fandt {0} resultater",Lk="Fryser",Pk="Have",Ik="Gå tilbage",Dk="Golfbane",Fk="Bruttoareal",Nk="Højde",Mk="Turterræn",Rk="Billeder er ment som illustration",Bk="Indendørs swimmingpool",jk="Jacuzzi",zk="Fællesgæld",Vk="Lasterampe",Uk="Se {x}",Zk="mnd",Hk="Nej",qk="Ikke-ryger",$k="Bad/toilet",Wk="Soveværelse",Gk="Antal etager",Yk="Antal parkeringspladser",Kk="Antal værelser",Xk="Terrasse- og balkonareal",Jk="Ejerform",Qk="Husdyr tilladt",e_="Grundareal",t_="Ejendomsskat",r_="Ejerforhold (grund)",i_="Pris",n_="Pris ved forespørgsel",a_="Primærrum",o_="Boligtype",s_="Roligt",l_="Fjern",u_="Renoveringsår",c_="Omkostninger",d_="Den angivne pris er inkl. omkostninger",p_="Højde på tagryg",h_="Sauna",f_="Vælg",m_="Fælles reception",g_="Strandlinje",v_="Opbevaringsrum",k_="Status",__="Solafskærmning",b_="Bademulighed",y_="Formueværdi",x_="Totalpris",w_="Enhed | Enheder",E_="Livscyklusstandard",T_="Brugsareal",S_="Eksternt brugsareal",A_="Internt brugsareal",C_="Walk-in-closet",O_="Indlagt vand",L_="Bredde",P_="Ja",I_="Du er her",D_={aircondition:ik,alarm:nk,alpineResort:ak,barbecue:ok,boatBerth:sk,broadbandConnection:lk,cafeteria:uk,central:ck,childFriendly:dk,clickToFilter:pk,communityTax:hk,constructionYear:fk,delete:"Slet",developedArea:mk,driveableRoadToDestination:gk,drivewayGate:vk,electricityInstalled:kk,enclosedBalconyArea:_k,energyLabel:bk,"energyLabel:A":"A","energyLabel:B":"B","energyLabel:C":"C",energyLabelColor:yk,"energyLabelColor:darkGreen":"Mørkegrøn","energyLabelColor:lightGreen":"Lysgrøn","energyLabelColor:orange":"Orange","energyLabelColor:red":"Rød","energyLabelColor:yellow":"Gul","energyLabel:D":"D","energyLabel:E":"E","energyLabel:F":"F","energyLabel:G":"G",expansionPossibilities:xk,filter:wk,fireplace:Ek,fishingOpportunity:Tk,fitnessRoom:Sk,floor:Ak,floorArea:Ck,foundXResults:Ok,freezer:Lk,garden:Pk,goBack:Ik,golfCourse:Dk,grossArea:Fk,height:Nk,hikingArea:Mk,imagesOnlyAsIllustration:Rk,indoorSwimmingPool:Bk,jacuzzi:jk,jointDebt:zk,loadingDock:Vk,lookAt:Uk,multiplicatorMonthly:Zk,no:Hk,nonSmoking:qk,numberOfBathrooms:$k,numberOfBedrooms:Wk,numberOfFloors:Gk,numberOfParkingSpots:Yk,numberOfRooms:Kk,openArea:Xk,ownershipType:Jk,"ownershipType:collectiveOwnership":"Aktie","ownershipType:condominium":"Ejersektion","ownershipType:freehold":"Ejer (husejer)","ownershipType:leasehold":"Obligation","ownershipType:other":"Andet","ownershipType:partOwnership":"Andel",petsAllowed:Qk,plotArea:e_,plotGroundTax:t_,plotOwnershipType:r_,"plotOwnershipType:collectiveOwnership":"Aktie","plotOwnershipType:freehold":"Ejer (husejer)","plotOwnershipType:leasehold":"Obligation","plotOwnershipType:other":"Andet","plotOwnershipType:partOwnership":"Andel",price:i_,priceOnRequest:n_,primaryRoomArea:a_,propertyType:o_,"propertyType:commonAreas":"Fællesarealer","propertyType:detached":"Enfamiliebolig | Enfamilieboliger","propertyType:flat":"Lejlighed | Lejligheder","propertyType:four-person-home":"Firemandsbolig","propertyType:leisure":"Sommerhus | Sommerhuse","propertyType:leisurePlot":"Fritidsgrund | Fritidsgrunde","propertyType:office":"Kontor | Kontorer","propertyType:plot":"Boliggrund | Boliggrunde","propertyType:semidetached":"Dobbelthus","propertyType:storage":"Lager","propertyType:terraced":"Rækkehus",quiet:s_,remove:l_,renovationYear:u_,"rent-properties-propertyType:business":"Handel","rent-properties-propertyType:multipurposearea":"Lokaler til diverse formål","rent-properties-propertyType:office":"Kontor","rent-properties-propertyType:storage":"Lager og logistik",residentialSaleFee:c_,residentialSaleFeeIncluded:d_,"residentialStatus:rent":{development:"Under udvikling",draft:"@:unpublished",rent:"Til leje",rented:"Udlejet",reserved:"Reserveret",upcoming:"Kommer til salg"},"residentialStatus:sale":{development:"Under udvikling",draft:"@:unpublished",reserved:"Reserveret",sale:"Til salg",sold:"Solgt",upcoming:"Kommer til salg"},roofRidge:p_,sauna:h_,select:f_,sharedReception:m_,shoreline:g_,sportsStorageRoom:v_,status:k_,sunShading:__,swimmingOpportunity:b_,taxValue:y_,totalPrice:x_,unit:w_,universalDesign:E_,useableArea:T_,useableExternalArea:S_,useableInternalArea:A_,walkInCloset:C_,waterInstalled:O_,width:L_,yes:P_,youAreHere:I_},F_="Air conditioning",N_="Alarm",M_="Ski resort",R_="Barbecue",B_="Boat berth",j_="Broadband connection",z_="Cafeteria",V_="Central",U_="Child-friendly",Z_="Click to filter",H_="Municipal taxes",q_="Construction year",$_="Developed area",W_="Car access",G_="Driveway gate",Y_="Electricity installed",K_="Glazed balcony",X_="Energy labelling",J_="Energy labeling (colour)",Q_="Expansion possibilities",eb="Filter",tb="Fireplace / Stove",rb="Fishing opportunity",ib="Gym",nb="Storey",ab="Floor area",ob="Found {0} results",sb="Freezer",lb="Garden",ub="Back",cb="Golf course",db="Gross building area",pb="Height",hb="Hiking terrain",fb="Images are for illustrative purposes",mb="Indoor swimming pool",gb="Jacuzzi",vb="Joint debt",kb="Loading dock",_b="Look at {x}",bb="mth",yb="No",xb="Non-smoking",wb="Bathrooms/WC",Eb="Bedrooms",Tb="Number of storeys",Sb="Number of parking spots",Ab="Number of rooms",Cb="Open area",Ob="Ownership",Lb="Pets allowed",Pb="Building plot area",Ib="Property tax",Db="Ownership (plot)",Fb="Price",Nb="Price upon request",Mb="Primary rooms",Rb="Home type",Bb="Quiet",jb="Remove",zb=`Renovation year
|
|
177
177
|
`,Vb="Expenses",Ub="Specified price includes expenses",Zb="Roof ridge",Hb="Sauna",qb="Select",$b="Shared reception",Wb="Shoreline",Gb="Storage room",Yb="Status",Kb="Sun shading",Xb="Swimming opportunity",Jb="Tax value",Qb="Total price",ey="Unit | Units",ty=" Universal design",ry="Usable floor space",iy="Useable area (external)",ny="Useable area (internal)",ay="Walk-in-closet",oy="Water installed",sy="Width",ly="Yes",uy="You are here",cy={aircondition:F_,alarm:N_,alpineResort:M_,barbecue:R_,boatBerth:B_,broadbandConnection:j_,cafeteria:z_,central:V_,childFriendly:U_,clickToFilter:Z_,communityTax:H_,constructionYear:q_,delete:"Delete",developedArea:$_,driveableRoadToDestination:W_,drivewayGate:G_,electricityInstalled:Y_,enclosedBalconyArea:K_,energyLabel:X_,"energyLabel:A":"A","energyLabel:B":"B","energyLabel:C":"C",energyLabelColor:J_,"energyLabelColor:darkGreen":"Dark green","energyLabelColor:lightGreen":"Light green","energyLabelColor:orange":"Orange","energyLabelColor:red":"Red","energyLabelColor:yellow":"Yellow","energyLabel:D":"D","energyLabel:E":"E","energyLabel:F":"F","energyLabel:G":"G",expansionPossibilities:Q_,filter:eb,fireplace:tb,fishingOpportunity:rb,fitnessRoom:ib,floor:nb,floorArea:ab,foundXResults:ob,freezer:sb,garden:lb,goBack:ub,golfCourse:cb,grossArea:db,height:pb,hikingArea:hb,imagesOnlyAsIllustration:fb,indoorSwimmingPool:mb,jacuzzi:gb,jointDebt:vb,loadingDock:kb,lookAt:_b,multiplicatorMonthly:bb,no:yb,nonSmoking:xb,numberOfBathrooms:wb,numberOfBedrooms:Eb,numberOfFloors:Tb,numberOfParkingSpots:Sb,numberOfRooms:Ab,openArea:Cb,ownershipType:Ob,"ownershipType:collectiveOwnership":"Stock","ownershipType:condominium":"Condominium","ownershipType:freehold":"Owner (Condominium)","ownershipType:leasehold":"Cooperative","ownershipType:other":"Other","ownershipType:partOwnership":"Share",petsAllowed:Lb,plotArea:Pb,plotGroundTax:Ib,plotOwnershipType:Db,"plotOwnershipType:collectiveOwnership":"Stock","plotOwnershipType:freehold":"Owner (Condominium)","plotOwnershipType:leasehold":"Cooperative","plotOwnershipType:other":"Other","plotOwnershipType:partOwnership":"Share",price:Fb,priceOnRequest:Nb,primaryRoomArea:Mb,propertyType:Rb,"propertyType:commonAreas":"Communal areas","propertyType:detached":"Detached house | Detached houses","propertyType:flat":"Flat | Flats","propertyType:four-person-home":"Fourplex","propertyType:leisure":"Cottage | Cottages","propertyType:leisurePlot":"Recreational plot | Recreational plots","propertyType:office":"Office | Offices","propertyType:plot":"Residential plot | Residential plots","propertyType:semidetached":"Duplex","propertyType:storage":"Storage","propertyType:terraced":"Terraced house",quiet:Bb,remove:jb,renovationYear:zb,"rent-properties-propertyType:business":"Business","rent-properties-propertyType:multipurposearea":"Multi-purpose rooms","rent-properties-propertyType:office":"Office","rent-properties-propertyType:storage":"Storage and logistics",residentialSaleFee:Vb,residentialSaleFeeIncluded:Ub,"residentialStatus:rent":{development:"Under development",draft:"@:unpublished",rent:"To let",rented:"Let",reserved:"Reserved",upcoming:"Available to let soon"},"residentialStatus:sale":{development:"Under development",draft:"@:unpublished",reserved:"Reserved",sale:"For sale",sold:"Sold",upcoming:"Available for sale soon"},roofRidge:Zb,sauna:Hb,select:qb,sharedReception:$b,shoreline:Wb,sportsStorageRoom:Gb,status:Yb,sunShading:Kb,swimmingOpportunity:Xb,taxValue:Jb,totalPrice:Qb,unit:ey,universalDesign:ty,useableArea:ry,useableExternalArea:iy,useableInternalArea:ny,walkInCloset:ay,waterInstalled:oy,width:sy,yes:ly,youAreHere:uy},dy="Aircondition",py="Alarm",hy="Alpinanlegg",fy="Grill",my="Båtplass",gy="Bredbåndstilknytning",vy="Kantine",ky="Sentralt",_y="Barnevennlig",by="Trykk for å filtrere",yy="Kommunale avgifter",xy="Byggeår",wy="Bebygd areal (BYA)",Ey="Bilvei frem",Ty="Kjøreport",Sy="Innlagt strøm",Ay="Innglasset balkong (BRA-b)",Cy="Energimerking",Oy="Energimerking (farge)",Ly="Utvidelsesmuligheter",Py="Filtrer",Iy="Peis/Ildsted",Dy="Fiskemulighet",Fy="Treningsrom",Ny="Etasje",My="Gulvareal",Ry="Fant {0} resultater",By="Fryser",jy="Hage",zy="Gå tilbake",Vy="Golfbane",Uy="Bruttoareal (BTA)",Zy="Høyde",Hy="Turterreng",qy="Bilder er ment som illustrasjon",$y="Innendørs svømmebasseng",Wy="Boblebad",Gy="Fellesgjeld",Yy="Lasterampe",Ky="Se {x}",Xy="mnd",Jy="Nei",Qy="Ikke-røyk",ex="Bad/WC",tx="Soverom",rx="Antall etasjer",ix="Antall parkeringsplasser",nx="Antall rom",ax="Terrasse- og balkongareal (TBA)",ox="Eieform",sx="Husdyr tillatt",lx="Tomteareal",ux="Eiendomsskatt",cx="Eierforhold (tomt)",dx="Pris",px="Pris etter forespørsel",hx="Primærrom",fx="Enhetstype",mx="Rolig",gx="Fjern",vx="Renoveringsår",kx="Omkostninger",_x="Angitt pris er inkl. omkostninger",bx="Mønehøyde",yx="Badstue",xx="Velg",wx="Felles resepsjon",Ex="Strandlinje",Tx="Sportsbod",Sx="Status",Ax="Solavskjerming",Cx="Bademulighet",Ox="Formuesverdi",Lx="Totalpris",Px="Enhet | Enheter",Ix="Livsløpsstandard",Dx="Bruksareal (BRA)",Fx="Eksternt bruksareal (BRA-e)",Nx="Internt bruksareal (BRA-i)",Mx="Walk-in-closet",Rx="Innlagt vann",Bx="Bredde",jx="Ja",zx="Du er her",Vx={aircondition:dy,alarm:py,alpineResort:hy,barbecue:fy,boatBerth:my,broadbandConnection:gy,cafeteria:vy,central:ky,childFriendly:_y,clickToFilter:by,communityTax:yy,constructionYear:xy,delete:"Slett",developedArea:wy,driveableRoadToDestination:Ey,drivewayGate:Ty,electricityInstalled:Sy,enclosedBalconyArea:Ay,energyLabel:Cy,"energyLabel:A":"A","energyLabel:B":"B","energyLabel:C":"C",energyLabelColor:Oy,"energyLabelColor:darkGreen":"Mørkegrønn","energyLabelColor:lightGreen":"Lysegrønn","energyLabelColor:orange":"Oransje","energyLabelColor:red":"Rød","energyLabelColor:yellow":"Gul","energyLabel:D":"D","energyLabel:E":"E","energyLabel:F":"F","energyLabel:G":"G",expansionPossibilities:Ly,filter:Py,fireplace:Iy,fishingOpportunity:Dy,fitnessRoom:Fy,floor:Ny,floorArea:My,foundXResults:Ry,freezer:By,garden:jy,goBack:zy,golfCourse:Vy,grossArea:Uy,height:Zy,hikingArea:Hy,imagesOnlyAsIllustration:qy,indoorSwimmingPool:$y,jacuzzi:Wy,jointDebt:Gy,loadingDock:Yy,lookAt:Ky,multiplicatorMonthly:Xy,no:Jy,nonSmoking:Qy,numberOfBathrooms:ex,numberOfBedrooms:tx,numberOfFloors:rx,numberOfParkingSpots:ix,numberOfRooms:nx,openArea:ax,ownershipType:ox,"ownershipType:collectiveOwnership":"Aksje ","ownershipType:condominium":"Eierseksjon","ownershipType:freehold":"Eier (Selveier)","ownershipType:leasehold":"Obligasjon","ownershipType:other":"Annet","ownershipType:partOwnership":"Andel",petsAllowed:sx,plotArea:lx,plotGroundTax:ux,plotOwnershipType:cx,"plotOwnershipType:collectiveOwnership":"Aksje ","plotOwnershipType:freehold":"Eier (Selveier)","plotOwnershipType:leasehold":"Obligasjon","plotOwnershipType:other":"Annet","plotOwnershipType:partOwnership":"Andel",price:dx,priceOnRequest:px,primaryRoomArea:hx,propertyType:fx,"propertyType:commonAreas":"Fellesarealer","propertyType:detached":"Enebolig | Eneboliger","propertyType:flat":"Leilighet | Leiligheter","propertyType:four-person-home":"Firemannsbolig","propertyType:leisure":"Hytte | Hytter","propertyType:leisurePlot":"Fritidstomt | Fritidstomter","propertyType:office":"Kontor | Kontorer","propertyType:plot":"Boligtomt | Boligtomter","propertyType:semidetached":"Tomannsbolig","propertyType:storage":"Lager","propertyType:terraced":"Rekkehus",quiet:mx,remove:gx,renovationYear:vx,"rent-properties-propertyType:business":"Handel","rent-properties-propertyType:multipurposearea":"Kombinasjonslokaler","rent-properties-propertyType:office":"Kontor","rent-properties-propertyType:storage":"Lager og logistikk",residentialSaleFee:kx,residentialSaleFeeIncluded:_x,"residentialStatus:rent":{development:"Under utvikling",draft:"@:unpublished",rent:"Til leie",rented:"Utleid",reserved:"Reservert",upcoming:"Kommer til leie"},"residentialStatus:sale":{development:"Under utvikling",draft:"@:unpublished",reserved:"Reservert",sale:"Til salgs",sold:"Solgt",upcoming:"Kommer for salg"},roofRidge:bx,sauna:yx,select:xx,sharedReception:wx,shoreline:Ex,sportsStorageRoom:Tx,status:Sx,sunShading:Ax,swimmingOpportunity:Cx,taxValue:Ox,totalPrice:Lx,unit:Px,universalDesign:Ix,useableArea:Dx,useableExternalArea:Fx,useableInternalArea:Nx,walkInCloset:Mx,waterInstalled:Rx,width:Bx,yes:jx,youAreHere:zx},Ux="Zum Filtern drücken",Zx="Kommunalabgaben",Hx="Baujahr",qx="Energiekennzeichnung",$x="Filtern",Wx="Etage",Gx="{0} Ergebnisse gefunden",Yx="Zurückgehen",Kx="Bruttofläche",Xx="Höhe",Jx="Bilder dienen Illustrationszwecken",Qx="Gemeinschaftsschulden",e0="Siehe {x}",t0="Monat",r0="Nein",i0="Bad/WC",n0="Schlafzimmer",a0="Anzahl Etagen",o0="Anzahl Stellplätze",s0="Zimmer",l0="Eigentumsverhältnis",u0="Grundstücksfläche",c0="Grundsteuer",d0="Eigentumsverhältnis (Grundstück)",p0="Preis",h0="Preis nach Anfrage",f0="Primäres Zimmer",m0="Einheitentyp",g0="Kaufnebenkosten",v0="Angegebener Preis inkl. Kaufnebenkosten",k0="Auswählen",_0="Status",b0="Vermögenswert",y0="Gesamtpreis",x0="Einheit | Einheiten",w0="Nettowohnfläche",E0="Breite",T0="Ja",S0="Sie sind hier",A0={clickToFilter:Ux,communityTax:Zx,constructionYear:Hx,delete:"Löschen",energyLabel:qx,filter:$x,floor:Wx,foundXResults:Gx,goBack:Yx,grossArea:Kx,height:Xx,imagesOnlyAsIllustration:Jx,jointDebt:Qx,lookAt:e0,multiplicatorMonthly:t0,no:r0,numberOfBathrooms:i0,numberOfBedrooms:n0,numberOfFloors:a0,numberOfParkingSpots:o0,numberOfRooms:s0,ownershipType:l0,"ownershipType:collectiveOwnership":"Aktie ","ownershipType:freehold":"Kaufobjekt","ownershipType:leasehold":"Schuldverschreibung","ownershipType:other":"Sonstiges","ownershipType:partOwnership":"Anteil",plotArea:u0,plotGroundTax:c0,plotOwnershipType:d0,"plotOwnershipType:collectiveOwnership":"Aktie ","plotOwnershipType:freehold":"Kaufobjekt","plotOwnershipType:leasehold":"Schuldverschreibung","plotOwnershipType:other":"Sonstiges","plotOwnershipType:partOwnership":"Anteil",price:p0,priceOnRequest:h0,primaryRoomArea:f0,propertyType:m0,"propertyType:detached":"Einfamilienhaus | Einfamilienhäuser","propertyType:flat":"Wohnung | Wohnungen","propertyType:four-person-home":"Vierfamilienhaus","propertyType:leisure":"Hütte | Hütten","propertyType:leisurePlot":"Freizeitgrundstück | Freizeitgrundstücke","propertyType:office":"Büro | Büros","propertyType:plot":"Hausgrundstück | Hausgrundstücke","propertyType:semidetached":"Zweifamilienhaus","propertyType:storage":"Lagerhaus","propertyType:terraced":"Reihenhaus","rent-properties-propertyType:office":"Büro","rent-properties-propertyType:storage":"Lagerhaus",residentialSaleFee:g0,residentialSaleFeeIncluded:v0,"residentialStatus:rent":{development:"In Entwicklung",draft:"@:unpublished",rent:"Zu vermieten",rented:"Vermietet",reserved:"Reserviert",upcoming:"Kommt zur Vermietung"},"residentialStatus:sale":{development:"In Entwicklung",draft:"@:unpublished",reserved:"Reserviert",sale:"Zu verkaufen",sold:"Verkauft",upcoming:"Kommt zum Verkauf"},select:k0,status:_0,taxValue:b0,totalPrice:y0,unit:x0,useableArea:w0,width:E0,yes:T0,youAreHere:S0},C0="Klik om te filteren",O0="Filter",L0="{0} resultaten gevonden",P0="Ga terug",I0="De afbeeldingen zijn uitsluitend bedoeld ter illustratie",D0="Gezamenlijke schulden",F0="Zie {x}",N0="Maanden",M0="Nee",R0="Slaapkamers",B0="Aantal kamers",j0="Prijs",z0="Prijs op aanvraag",V0="Primaire kamers",U0="Huistype",Z0="Extra aankoopkosten",H0="De genoemde prijs is inclusief kosten",q0="Selecteer",$0="Totale prijs",W0="Netto leefruimte",G0="Ja",Y0="Je bent hier",K0={clickToFilter:C0,delete:"Verwijderen",filter:O0,foundXResults:L0,goBack:P0,imagesOnlyAsIllustration:I0,jointDebt:D0,lookAt:F0,multiplicatorMonthly:N0,no:M0,numberOfBedrooms:R0,numberOfRooms:B0,price:j0,priceOnRequest:z0,primaryRoomArea:V0,propertyType:U0,residentialSaleFee:Z0,residentialSaleFeeIncluded:H0,"residentialStatus:rent":{development:"In ontwikkeling",draft:"@:unpublished",rent:"Te huur",rented:"Verhuurd",reserved:"Gereserveerd",upcoming:"Komt te huur"},"residentialStatus:sale":{development:"In ontwikkeling",draft:"@:unpublished",reserved:"Gereserveerd",sale:"Te koop",sold:"Verkocht",upcoming:"Komt te koop"},select:q0,totalPrice:$0,useableArea:W0,yes:G0,youAreHere:Y0},X0="Luftkonditionering",J0="Alarm",Q0="Alpinanläggning",ew="Grill",tw="Båtplats",rw="Bredbandsanslutning",iw="Kantin",nw="Centralt",aw="Barnvänligt",ow="Tryck för att filtrera",sw="Kommunala avgifter",lw="Byggår",uw="Bebyggd yta",cw="Bilväg fram",dw="Inkörsport",pw="Inlagd ström",hw="Inglasad balkong",fw="Energimärkning",mw="Energimärkning (färg)",gw="Expansionsmöjligheter",vw="Filtrera",kw="Öppen spis/Braskamin",_w="Fiskemöjlighet",bw="Träningsrum",yw="Våning",xw="Golvyta",ww="Hittade {0} resultat",Ew="Frys",Tw="Trädgård",Sw="Gå tillbaka",Aw="Golfbana",Cw="Bruttoarea",Ow="Höjd",Lw="Vandringsterräng",Pw="Bilder är avsedda som illustrationer",Iw="Inomhuspool",Dw="Jacuzzi",Fw="Gemensam skuld",Nw="Lastramp",Mw="Se {x}",Rw="mån",Bw="Nej",jw="Icke-rökare",zw="Bad/WC",Vw="Sovrum",Uw="Antal våningar",Zw="Antal parkeringsplatser",Hw="Antal rum",qw="Terrass- och balkongyta",$w="Ägarform",Ww="Husdjur tillåtet",Gw="Tomtareal",Yw="Fastighetsskatt",Kw="Ägarförhållande (tomt)",Xw="Pris",Jw="Pris efter förfrågan",Qw="Boyta/Boarea",e1="Bostadstyp",t1="Lugnt",r1="Ta bort",i1="Renoveringsår",n1="Omkostnader",a1="Angivet pris är inklusive omkostnader",o1="Taknockshöjd",s1="Bastu",l1="Välj",u1="Gemensam reception",c1="Strandlinje",d1="Förråd",p1="Status",h1="Solskydd",f1="Badmöjlighet",m1="Fastighetsvärde",g1="Totalpris",v1="Enhet | Enheter",k1="Livscykelstandard",_1="Bruksareal",b1="Extern bruksareal",y1="Intern bruksareal",x1="Walk-in-closet",w1="Inlagt vatten",E1="Bredd",T1="Ja",S1="Du är här",A1={aircondition:X0,alarm:J0,alpineResort:Q0,barbecue:ew,boatBerth:tw,broadbandConnection:rw,cafeteria:iw,central:nw,childFriendly:aw,clickToFilter:ow,communityTax:sw,constructionYear:lw,delete:"Radera",developedArea:uw,driveableRoadToDestination:cw,drivewayGate:dw,electricityInstalled:pw,enclosedBalconyArea:hw,energyLabel:fw,"energyLabel:A":"A","energyLabel:B":"B","energyLabel:C":"C",energyLabelColor:mw,"energyLabelColor:darkGreen":"Mörkgrön","energyLabelColor:lightGreen":"Ljusgrön","energyLabelColor:orange":"Orange","energyLabelColor:red":"Röd","energyLabelColor:yellow":"Gul","energyLabel:D":"D","energyLabel:E":"E","energyLabel:F":"F","energyLabel:G":"G",expansionPossibilities:gw,filter:vw,fireplace:kw,fishingOpportunity:_w,fitnessRoom:bw,floor:yw,floorArea:xw,foundXResults:ww,freezer:Ew,garden:Tw,goBack:Sw,golfCourse:Aw,grossArea:Cw,height:Ow,hikingArea:Lw,imagesOnlyAsIllustration:Pw,indoorSwimmingPool:Iw,jacuzzi:Dw,jointDebt:Fw,loadingDock:Nw,lookAt:Mw,multiplicatorMonthly:Rw,no:Bw,nonSmoking:jw,numberOfBathrooms:zw,numberOfBedrooms:Vw,numberOfFloors:Uw,numberOfParkingSpots:Zw,numberOfRooms:Hw,openArea:qw,ownershipType:$w,"ownershipType:collectiveOwnership":"Aktie","ownershipType:condominium":"Ägarlägenhet","ownershipType:freehold":"Ägare (självägande)","ownershipType:leasehold":"Obligation","ownershipType:other":"Annat","ownershipType:partOwnership":"Andel",petsAllowed:Ww,plotArea:Gw,plotGroundTax:Yw,plotOwnershipType:Kw,"plotOwnershipType:collectiveOwnership":"Aktie","plotOwnershipType:freehold":"Ägare (självägande)","plotOwnershipType:leasehold":"Obligation","plotOwnershipType:other":"Annat","plotOwnershipType:partOwnership":"Andel",price:Xw,priceOnRequest:Jw,primaryRoomArea:Qw,propertyType:e1,"propertyType:commonAreas":"Gemensamma ytor","propertyType:detached":"Enfamiljshus | Enfamiljshus","propertyType:flat":"Lägenhet | Lägenheter","propertyType:four-person-home":"Tvåfamiljshus","propertyType:leisure":"Stuga | Stugor","propertyType:leisurePlot":"Fritidstomt | Fritidstomter","propertyType:office":"Kontor | Kontor","propertyType:plot":"Bostadstomt | Bostadstomter","propertyType:semidetached":"Parhus","propertyType:storage":"Lager","propertyType:terraced":"Radhus",quiet:t1,remove:r1,renovationYear:i1,"rent-properties-propertyType:business":"Verksamhet","rent-properties-propertyType:multipurposearea":"Kombinationslokaler","rent-properties-propertyType:office":"Kontor","rent-properties-propertyType:storage":"Lager och logistik",residentialSaleFee:n1,residentialSaleFeeIncluded:a1,"residentialStatus:rent":{development:"Under utveckling",draft:"@:unpublished",rent:"Till uthyrning",rented:"Uthyrd",reserved:"Reserverat",upcoming:"Kommande försäljning"},"residentialStatus:sale":{development:"Under utveckling",draft:"@:unpublished",reserved:"Reserverat",sale:"Till salu",sold:"Sålt",upcoming:"Kommande försäljning"},roofRidge:o1,sauna:s1,select:l1,sharedReception:u1,shoreline:c1,sportsStorageRoom:d1,status:p1,sunShading:h1,swimmingOpportunity:f1,taxValue:m1,totalPrice:g1,unit:v1,universalDesign:k1,useableArea:_1,useableExternalArea:b1,useableInternalArea:y1,walkInCloset:x1,waterInstalled:w1,width:E1,yes:T1,youAreHere:S1},C1="Aircondtion",O1="Alarm",L1=`Alpinanlegg
|
|
178
178
|
`,P1="Grill",I1="Båtplass",D1="Breibandstilknyting",F1="Kantine",N1="Sentralt",M1="Barnevenleg",R1="Trykk for å filtrere",B1="kommunale avgifter",j1="Byggeår",z1="Bebygd areal (BYA)",V1="Bilveg fram",U1="Kjøreport",Z1="Innlagt straum",H1="Innglassa balkong (BRA-b)",q1="Energimerking",$1="Energimerking (farge)",W1="Utvidingsmoglegheiter",G1="Filtrer",Y1="Peis/Ildstad",K1="Fiskemoglegheit",X1="Treningsrom",J1="Etasje",Q1="Gulvareal",eE="Fant {0} resultat",tE="Frysar",rE="Hage",iE="Gå tilbake",nE="Golfbane",aE="Bruttoareal (BTA)",oE="Høgd",sE="Turterreng",lE="Bilete er meint som illustrasjon",uE="Innandørs svømmebasseng",cE="Boblebad",dE="Fellesgjeld",pE="Lasterampe",hE="Se {x}",fE="Mnd",mE="Nei",gE="Ikkje-røyk",vE="Bad/WC",kE="Soverom",_E="Antal etasjar",bE="Antal parkeringsplassar",yE="Antal rom",xE="Terrasse- og balkongareal (TBA)",wE="Eigeform",EE="Husdyr tillate",TE="Tomteareal",SE="Eigedomsskatt",AE="Eigarforhold (tomt)",CE="Pris",OE="Pris etter førespurnad",LE="Primærrom",PE="Enheitstype",IE="Rolig",DE="Fjern",FE="Renoveringsår",NE="Omkostningar",ME="Oppgjeven pris er inkl. omkostningar",RE="Mønehøgd",BE="Badstove",jE="Vel",zE="Felles resepsjon",VE="Strandlinje",UE="Sportsbod",ZE="Status",HE="Solavskjerming",qE="Bademoglegheit",$E=`Formuesverdi
|
|
179
179
|
`,WE="Totalpris",GE="Eining | Einingar",YE="Livsløpsstandard",KE="Bruksareal (BRA)",XE="Eksternt bruksareal (BRA-e)",JE="Internt bruksareal (BRA-i)",QE="Walk-in-closet",eT="Innlagt vatn",tT="Breidde",rT="Ja",iT="Du er her",nT={aircondition:C1,alarm:O1,alpineResort:L1,barbecue:P1,boatBerth:I1,broadbandConnection:D1,cafeteria:F1,central:N1,childFriendly:M1,clickToFilter:R1,communityTax:B1,constructionYear:j1,delete:"Slett",developedArea:z1,driveableRoadToDestination:V1,drivewayGate:U1,electricityInstalled:Z1,enclosedBalconyArea:H1,energyLabel:q1,"energyLabel:A":"A","energyLabel:B":"B","energyLabel:C":"C",energyLabelColor:$1,"energyLabelColor:darkGreen":"Mørkegrøn","energyLabelColor:lightGreen":"Lysegrøn","energyLabelColor:orange":"Oransje","energyLabelColor:red":"Raud","energyLabelColor:yellow":"Gul","energyLabel:D":"D","energyLabel:E":"E","energyLabel:F":"F","energyLabel:G":"G",expansionPossibilities:W1,filter:G1,fireplace:Y1,fishingOpportunity:K1,fitnessRoom:X1,floor:J1,floorArea:Q1,foundXResults:eE,freezer:tE,garden:rE,goBack:iE,golfCourse:nE,grossArea:aE,height:oE,hikingArea:sE,imagesOnlyAsIllustration:lE,indoorSwimmingPool:uE,jacuzzi:cE,jointDebt:dE,loadingDock:pE,lookAt:hE,multiplicatorMonthly:fE,no:mE,nonSmoking:gE,numberOfBathrooms:vE,numberOfBedrooms:kE,numberOfFloors:_E,numberOfParkingSpots:bE,numberOfRooms:yE,openArea:xE,ownershipType:wE,"ownershipType:collectiveOwnership":"Aksje","ownershipType:condominium":"Eigarseksjon","ownershipType:freehold":"Eigar (Selveigar)","ownershipType:leasehold":"Obligasjon","ownershipType:other":"Annan","ownershipType:partOwnership":"Andel",petsAllowed:EE,plotArea:TE,plotGroundTax:SE,plotOwnershipType:AE,"plotOwnershipType:collectiveOwnership":"Aksje","plotOwnershipType:freehold":"Eigar (Selveigar)","plotOwnershipType:leasehold":"Obligasjon","plotOwnershipType:other":"Annan","plotOwnershipType:partOwnership":"Andel",price:CE,priceOnRequest:OE,primaryRoomArea:LE,propertyType:PE,"propertyType:commonAreas":"Fellesareal","propertyType:detached":"Enebolig | Eneboligar","propertyType:flat":"Leilegheit | Leilegheiter","propertyType:four-person-home":"Firemannsbolig","propertyType:leisure":"Hytte | Hytter","propertyType:leisurePlot":"Fritidstomt | Fritidstomter","propertyType:office":"Kontor | Kontor","propertyType:plot":"Bustadstomt | Bustadstomter","propertyType:semidetached":"Tomannsbolig","propertyType:storage":"Lager","propertyType:terraced":"Rekkehus",quiet:IE,remove:DE,renovationYear:FE,"rent-properties-propertyType:business":"Handel","rent-properties-propertyType:multipurposearea":"Kombinasjonslokale","rent-properties-propertyType:office":"Kontor","rent-properties-propertyType:storage":"Lager og logistikk",residentialSaleFee:NE,residentialSaleFeeIncluded:ME,"residentialStatus:rent":{development:"Under utvikling",draft:"@:unpublished",rent:"Til leige",rented:"Utleigd",reserved:"Reservert",upcoming:"Kjem for leige"},"residentialStatus:sale":{development:"Under utvikling",draft:"@:unpublished",reserved:"Reservert",sale:"Til sals",sold:"Seld",upcoming:"Kjem for sal"},roofRidge:RE,sauna:BE,select:jE,sharedReception:zE,shoreline:VE,sportsStorageRoom:UE,status:ZE,sunShading:HE,swimmingOpportunity:qE,taxValue:$E,totalPrice:WE,unit:GE,universalDesign:YE,useableArea:KE,useableExternalArea:XE,useableInternalArea:JE,walkInCloset:QE,waterInstalled:eT,width:tT,yes:rT,youAreHere:iT},Xc={da:D_,en:cy,nb:Vx,de:A0,nl:K0,sv:A1,nn:nT};function on(){const e=$("nb");wt(()=>{e.value=document.documentElement.getAttribute("lang")??"nb"});function t(a,s){return Object.entries(s).reduce((u,[c,d])=>u.replace(`{${c}}`,d),a)}function r(a,s){const u=Xc[e.value],c=fl(a);let d=hl(u,c,a).toString();return s&&(d=t(d,s)),d}function n(a,s=1,u){const c=Xc[e.value],d=fl(a),[h,m]=hl(c,d,a).toString().split("|").map(g=>g.trim()).map(g=>u?t(g,u):g);return s<=1?h:m}return{t:r,tc:n,locale:e}}function Kp(){const e=$(),t=$({get(r){return r},set(r,n){}});return wt(()=>{"Kvass"in window&&window.Kvass&&typeof window.Kvass=="object"&&(e.value=window.Kvass),"KvassConfig"in window&&window.KvassConfig&&typeof window.KvassConfig=="object"&&(t.value=window.KvassConfig)}),{kvassApi:e,kvassConfig:t}}function aT(e,t=300){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function Dn(e,t={locale:document?.querySelector("html")?.getAttribute("lang")??"nb",currency:sessionStorage.getItem("currency")||"NOK",decimals:0}){const{locale:r,currency:n,decimals:a}=t;return e&&e.toLocaleString(r,{style:"currency",currency:n,minimumFractionDigits:a})}function Xp(e,t){return hl(t,fl(e),void 0)}function Jp(e){return typeof e=="number"?!0:typeof e!="string"?!1:!isNaN(Number.parseFloat(e))}function oT(e){e=e.replace(/^\s+|\s+$/g,""),e=e.toLowerCase();const t="àáäâèéëêìíïîòóöôùúüûñç·/_,:;",r="aaaaeeeeiiiioooouuuunc------";for(let n=0,a=t.length;n<a;n++)e=e.replace(new RegExp(t.charAt(n),"g"),r.charAt(n));return e=e.replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-"),e}function Jc(e){return JSON.parse(JSON.stringify(e))}function Qp(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Qp(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function sT(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Qp(e))&&(n&&(n+=" "),n+=t);return n}const Qc=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,ed=sT,eh=(e,t)=>r=>{var n;if(t?.variants==null)return ed(e,r?.class,r?.className);const{variants:a,defaultVariants:s}=t,u=Object.keys(a).map(h=>{const m=r?.[h],g=s?.[h];if(m===null)return null;const v=Qc(m)||Qc(g);return a[h][v]}),c=r&&Object.entries(r).reduce((h,m)=>{let[g,v]=m;return v===void 0||(h[g]=v),h},{}),d=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((h,m)=>{let{class:g,className:v,..._}=m;return Object.entries(_).every(b=>{let[y,x]=b;return Array.isArray(x)?x.includes({...s,...c}[y]):{...s,...c}[y]===x})?[...h,g,v]:h},[]);return ed(e,u,d,r?.class,r?.className)},Fn=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ro=(e,t,r,n="")=>{const a=e.split(":");if(e.slice(0,1)==="@"){if(a.length<2||a.length>3)return null;n=a.shift().slice(1)}if(a.length>3||!a.length)return null;if(a.length>1){const c=a.pop(),d=a.pop(),h={provider:a.length>0?a[0]:n,prefix:d,name:c};return t&&!$a(h)?null:h}const s=a[0],u=s.split("-");if(u.length>1){const c={provider:n,prefix:u.shift(),name:u.join("-")};return t&&!$a(c)?null:c}if(r&&n===""){const c={provider:n,prefix:"",name:s};return t&&!$a(c,r)?null:c}return null},$a=(e,t)=>e?!!((e.provider===""||e.provider.match(Fn))&&(t&&e.prefix===""||e.prefix.match(Fn))&&e.name.match(Fn)):!1,th=Object.freeze({left:0,top:0,width:16,height:16}),lo=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Bo=Object.freeze({...th,...lo}),ml=Object.freeze({...Bo,body:"",hidden:!1});function lT(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function td(e,t){const r=lT(e,t);for(const n in ml)n in lo?n in e&&!(n in r)&&(r[n]=lo[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function uT(e,t){const r=e.icons,n=e.aliases||Object.create(null),a=Object.create(null);function s(u){if(r[u])return a[u]=[];if(!(u in a)){a[u]=null;const c=n[u]&&n[u].parent,d=c&&s(c);d&&(a[u]=[c].concat(d))}return a[u]}return Object.keys(r).concat(Object.keys(n)).forEach(s),a}function cT(e,t,r){const n=e.icons,a=e.aliases||Object.create(null);let s={};function u(c){s=td(n[c]||a[c],s)}return u(t),r.forEach(u),td(e,s)}function rh(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(a=>{t(a,null),r.push(a)});const n=uT(e);for(const a in n){const s=n[a];s&&(t(a,cT(e,a,s)),r.push(a))}return r}const dT={provider:"",aliases:{},not_found:{},...th};function js(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function ih(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!js(e,dT))return null;const r=t.icons;for(const a in r){const s=r[a];if(!a.match(Fn)||typeof s.body!="string"||!js(s,ml))return null}const n=t.aliases||Object.create(null);for(const a in n){const s=n[a],u=s.parent;if(!a.match(Fn)||typeof u!="string"||!r[u]&&!n[u]||!js(s,ml))return null}return t}const rd=Object.create(null);function pT(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function ui(e,t){const r=rd[e]||(rd[e]=Object.create(null));return r[t]||(r[t]=pT(e,t))}function su(e,t){return ih(t)?rh(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function hT(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let Hn=!1;function nh(e){return typeof e=="boolean"&&(Hn=e),Hn}function fT(e){const t=typeof e=="string"?Ro(e,!0,Hn):e;if(t){const r=ui(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function mT(e,t){const r=Ro(e,!0,Hn);if(!r)return!1;const n=ui(r.provider,r.prefix);return hT(n,r.name,t)}function gT(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Hn&&!t&&!e.prefix){let a=!1;return ih(e)&&(e.prefix="",rh(e,(s,u)=>{u&&mT(s,u)&&(a=!0)})),a}const r=e.prefix;if(!$a({provider:t,prefix:r,name:"a"}))return!1;const n=ui(t,r);return!!su(n,e)}const ah=Object.freeze({width:null,height:null}),oh=Object.freeze({...ah,...lo}),vT=/(-?[0-9.]*[0-9]+[0-9.]*)/g,kT=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function id(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(vT);if(n===null||!n.length)return e;const a=[];let s=n.shift(),u=kT.test(s);for(;;){if(u){const c=parseFloat(s);isNaN(c)?a.push(s):a.push(Math.ceil(c*t*r)/r)}else a.push(s);if(s=n.shift(),s===void 0)return a.join("");u=!u}}function _T(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const a=e.indexOf(">",n),s=e.indexOf("</"+t);if(a===-1||s===-1)break;const u=e.indexOf(">",s);if(u===-1)break;r+=e.slice(a+1,s).trim(),e=e.slice(0,n).trim()+e.slice(u+1)}return{defs:r,content:e}}function bT(e,t){return e?"<defs>"+e+"</defs>"+t:t}function yT(e,t,r){const n=_T(e);return bT(n.defs,t+n.content+r)}const xT=e=>e==="unset"||e==="undefined"||e==="none";function wT(e,t){const r={...Bo,...e},n={...oh,...t},a={left:r.left,top:r.top,width:r.width,height:r.height};let s=r.body;[r,n].forEach(y=>{const x=[],A=y.hFlip,T=y.vFlip;let S=y.rotate;A?T?S+=2:(x.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")"),x.push("scale(-1 1)"),a.top=a.left=0):T&&(x.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")"),x.push("scale(1 -1)"),a.top=a.left=0);let M;switch(S<0&&(S-=Math.floor(S/4)*4),S=S%4,S){case 1:M=a.height/2+a.top,x.unshift("rotate(90 "+M.toString()+" "+M.toString()+")");break;case 2:x.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:M=a.width/2+a.left,x.unshift("rotate(-90 "+M.toString()+" "+M.toString()+")");break}S%2===1&&(a.left!==a.top&&(M=a.left,a.left=a.top,a.top=M),a.width!==a.height&&(M=a.width,a.width=a.height,a.height=M)),x.length&&(s=yT(s,'<g transform="'+x.join(" ")+'">',"</g>"))});const u=n.width,c=n.height,d=a.width,h=a.height;let m,g;u===null?(g=c===null?"1em":c==="auto"?h:c,m=id(g,d/h)):(m=u==="auto"?d:u,g=c===null?id(m,h/d):c==="auto"?h:c);const v={},_=(y,x)=>{xT(x)||(v[y]=x.toString())};_("width",m),_("height",g);const b=[a.left,a.top,d,h];return v.viewBox=b.join(" "),{attributes:v,viewBox:b,body:s}}const ET=/\sid="(\S+)"/g,TT="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ST=0;function AT(e,t=TT){const r=[];let n;for(;n=ET.exec(e);)r.push(n[1]);if(!r.length)return e;const a="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(s=>{const u=typeof t=="function"?t(s):t+(ST++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+u+a+"$3")}),e=e.replace(new RegExp(a,"g"),""),e}const gl=Object.create(null);function CT(e,t){gl[e]=t}function vl(e){return gl[e]||gl[""]}function lu(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const uu=Object.create(null),Aa=["https://api.simplesvg.com","https://api.unisvg.com"],kl=[];for(;Aa.length>0;)Aa.length===1||Math.random()>.5?kl.push(Aa.shift()):kl.push(Aa.pop());uu[""]=lu({resources:["https://api.iconify.design"].concat(kl)});function sh(e,t){const r=lu(t);return r===null?!1:(uu[e]=r,!0)}function cu(e){return uu[e]}const OT=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let nd=OT();function LT(e,t){const r=cu(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let a=0;r.resources.forEach(u=>{a=Math.max(a,u.length)});const s=t+".json?icons=";n=r.maxURL-a-r.path.length-s.length}return n}function PT(e){return e===404}const IT=(e,t,r)=>{const n=[],a=LT(e,t),s="icons";let u={type:s,provider:e,prefix:t,icons:[]},c=0;return r.forEach((d,h)=>{c+=d.length+1,c>=a&&h>0&&(n.push(u),u={type:s,provider:e,prefix:t,icons:[]},c=d.length),u.icons.push(d)}),n.push(u),n};function DT(e){if(typeof e=="string"){const t=cu(e);if(t)return t.path}return"/"}const FT=(e,t,r)=>{if(!nd){r("abort",424);return}let n=DT(t.provider);switch(t.type){case"icons":{const s=t.prefix,u=t.icons.join(","),c=new URLSearchParams({icons:u});n+=s+".json?"+c.toString();break}case"custom":{const s=t.uri;n+=s.slice(0,1)==="/"?s.slice(1):s;break}default:r("abort",400);return}let a=503;nd(e+n).then(s=>{const u=s.status;if(u!==200){setTimeout(()=>{r(PT(u)?"abort":"next",u)});return}return a=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?r("abort",s):r("next",a)});return}setTimeout(()=>{r("success",s)})}).catch(()=>{r("next",a)})},NT={prepare:IT,send:FT};function MT(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((a,s)=>a.provider!==s.provider?a.provider.localeCompare(s.provider):a.prefix!==s.prefix?a.prefix.localeCompare(s.prefix):a.name.localeCompare(s.name));let n={provider:"",prefix:"",name:""};return e.forEach(a=>{if(n.name===a.name&&n.prefix===a.prefix&&n.provider===a.provider)return;n=a;const s=a.provider,u=a.prefix,c=a.name,d=r[s]||(r[s]=Object.create(null)),h=d[u]||(d[u]=ui(s,u));let m;c in h.icons?m=t.loaded:u===""||h.missing.has(c)?m=t.missing:m=t.pending;const g={provider:s,prefix:u,name:c};m.push(g)}),t}function lh(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(a=>a.id!==t))})}function RT(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,a=e.prefix;t.forEach(s=>{const u=s.icons,c=u.pending.length;u.pending=u.pending.filter(d=>{if(d.prefix!==a)return!0;const h=d.name;if(e.icons[h])u.loaded.push({provider:n,prefix:a,name:h});else if(e.missing.has(h))u.missing.push({provider:n,prefix:a,name:h});else return r=!0,!0;return!1}),u.pending.length!==c&&(r||lh([e],s.id),s.callback(u.loaded.slice(0),u.missing.slice(0),u.pending.slice(0),s.abort))})}))}let BT=0;function jT(e,t,r){const n=BT++,a=lh.bind(null,r,n);if(!t.pending.length)return a;const s={id:n,icons:t,callback:e,abort:a};return r.forEach(u=>{(u.loaderCallbacks||(u.loaderCallbacks=[])).push(s)}),a}function zT(e,t=!0,r=!1){const n=[];return e.forEach(a=>{const s=typeof a=="string"?Ro(a,t,r):a;s&&n.push(s)}),n}var VT={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function UT(e,t,r,n){const a=e.resources.length,s=e.random?Math.floor(Math.random()*a):e.index;let u;if(e.random){let V=e.resources.slice(0);for(u=[];V.length>1;){const W=Math.floor(Math.random()*V.length);u.push(V[W]),V=V.slice(0,W).concat(V.slice(W+1))}u=u.concat(V)}else u=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let d="pending",h=0,m,g=null,v=[],_=[];typeof n=="function"&&_.push(n);function b(){g&&(clearTimeout(g),g=null)}function y(){d==="pending"&&(d="aborted"),b(),v.forEach(V=>{V.status==="pending"&&(V.status="aborted")}),v=[]}function x(V,W){W&&(_=[]),typeof V=="function"&&_.push(V)}function A(){return{startTime:c,payload:t,status:d,queriesSent:h,queriesPending:v.length,subscribe:x,abort:y}}function T(){d="failed",_.forEach(V=>{V(void 0,m)})}function S(){v.forEach(V=>{V.status==="pending"&&(V.status="aborted")}),v=[]}function M(V,W,q){const B=W!=="success";switch(v=v.filter(j=>j!==V),d){case"pending":break;case"failed":if(B||!e.dataAfterTimeout)return;break;default:return}if(W==="abort"){m=q,T();return}if(B){m=q,v.length||(u.length?O():T());return}if(b(),S(),!e.random){const j=e.resources.indexOf(V.resource);j!==-1&&j!==e.index&&(e.index=j)}d="completed",_.forEach(j=>{j(q)})}function O(){if(d!=="pending")return;b();const V=u.shift();if(V===void 0){if(v.length){g=setTimeout(()=>{b(),d==="pending"&&(S(),T())},e.timeout);return}T();return}const W={status:"pending",resource:V,callback:(q,B)=>{M(W,q,B)}};v.push(W),h++,g=setTimeout(O,e.rotate),r(V,t,W.callback)}return setTimeout(O),A}function uh(e){const t={...VT,...e};let r=[];function n(){r=r.filter(u=>u().status==="pending")}function a(u,c,d){const h=UT(t,u,c,(m,g)=>{n(),d&&d(m,g)});return r.push(h),h}function s(u){return r.find(c=>u(c))||null}return{query:a,find:s,setIndex:u=>{t.index=u},getIndex:()=>t.index,cleanup:n}}function ad(){}const zs=Object.create(null);function ZT(e){if(!zs[e]){const t=cu(e);if(!t)return;const r=uh(t),n={config:t,redundancy:r};zs[e]=n}return zs[e]}function HT(e,t,r){let n,a;if(typeof e=="string"){const s=vl(e);if(!s)return r(void 0,424),ad;a=s.send;const u=ZT(e);u&&(n=u.redundancy)}else{const s=lu(e);if(s){n=uh(s);const u=e.resources?e.resources[0]:"",c=vl(u);c&&(a=c.send)}}return!n||!a?(r(void 0,424),ad):n.query(t,a,r)().abort}const od="iconify2",qn="iconify",ch=qn+"-count",sd=qn+"-version",dh=36e5,qT=168,$T=50;function _l(e,t){try{return e.getItem(t)}catch{}}function du(e,t,r){try{return e.setItem(t,r),!0}catch{}}function ld(e,t){try{e.removeItem(t)}catch{}}function bl(e,t){return du(e,ch,t.toString())}function yl(e){return parseInt(_l(e,ch))||0}const jo={local:!0,session:!0},ph={local:new Set,session:new Set};let pu=!1;function WT(e){pu=e}let Ca=typeof window>"u"?{}:window;function hh(e){const t=e+"Storage";try{if(Ca&&Ca[t]&&typeof Ca[t].length=="number")return Ca[t]}catch{}jo[e]=!1}function fh(e,t){const r=hh(e);if(!r)return;const n=_l(r,sd);if(n!==od){if(n){const c=yl(r);for(let d=0;d<c;d++)ld(r,qn+d.toString())}du(r,sd,od),bl(r,0);return}const a=Math.floor(Date.now()/dh)-qT,s=c=>{const d=qn+c.toString(),h=_l(r,d);if(typeof h=="string"){try{const m=JSON.parse(h);if(typeof m=="object"&&typeof m.cached=="number"&&m.cached>a&&typeof m.provider=="string"&&typeof m.data=="object"&&typeof m.data.prefix=="string"&&t(m,c))return!0}catch{}ld(r,d)}};let u=yl(r);for(let c=u-1;c>=0;c--)s(c)||(c===u-1?(u--,bl(r,u)):ph[e].add(c))}function mh(){if(!pu){WT(!0);for(const e in jo)fh(e,t=>{const r=t.data,n=t.provider,a=r.prefix,s=ui(n,a);if(!su(s,r).length)return!1;const u=r.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,u):u,!0})}}function GT(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in jo)fh(n,a=>{const s=a.data;return a.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function YT(e,t){pu||mh();function r(n){let a;if(!jo[n]||!(a=hh(n)))return;const s=ph[n];let u;if(s.size)s.delete(u=Array.from(s).shift());else if(u=yl(a),u>=$T||!bl(a,u+1))return;const c={cached:Math.floor(Date.now()/dh),provider:e.provider,data:t};return du(a,qn+u.toString(),JSON.stringify(c))}t.lastModified&&!GT(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function ud(){}function KT(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,RT(e)}))}function XT(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:n}=e,a=e.iconsToLoad;delete e.iconsToLoad;let s;!a||!(s=vl(r))||s.prepare(r,n,a).forEach(u=>{HT(r,u,c=>{if(typeof c!="object")u.icons.forEach(d=>{e.missing.add(d)});else try{const d=su(e,c);if(!d.length)return;const h=e.pendingIcons;h&&d.forEach(m=>{h.delete(m)}),YT(e,c)}catch(d){console.error(d)}KT(e)})})}))}const JT=(e,t)=>{const r=zT(e,!0,nh()),n=MT(r);if(!n.pending.length){let d=!0;return t&&setTimeout(()=>{d&&t(n.loaded,n.missing,n.pending,ud)}),()=>{d=!1}}const a=Object.create(null),s=[];let u,c;return n.pending.forEach(d=>{const{provider:h,prefix:m}=d;if(m===c&&h===u)return;u=h,c=m,s.push(ui(h,m));const g=a[h]||(a[h]=Object.create(null));g[m]||(g[m]=[])}),n.pending.forEach(d=>{const{provider:h,prefix:m,name:g}=d,v=ui(h,m),_=v.pendingIcons||(v.pendingIcons=new Set);_.has(g)||(_.add(g),a[h][m].push(g))}),s.forEach(d=>{const{provider:h,prefix:m}=d;a[h][m].length&&XT(d,a[h][m])}),t?jT(t,n,s):ud};function QT(e,t){const r={...e};for(const n in t){const a=t[n],s=typeof a;n in ah?(a===null||a&&(s==="string"||s==="number"))&&(r[n]=a):s===typeof r[n]&&(r[n]=n==="rotate"?a%4:a)}return r}const eS=/[\s,]+/;function tS(e,t){t.split(eS).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function rS(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(a){for(;a<0;)a+=4;return a%4}if(r===""){const a=parseInt(e);return isNaN(a)?0:n(a)}else if(r!==e){let a=0;switch(r){case"%":a=25;break;case"deg":a=90}if(a){let s=parseFloat(e.slice(0,e.length-r.length));return isNaN(s)?0:(s=s/a,s%1===0?n(s):0)}}return t}function iS(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function nS(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function aS(e){return"data:image/svg+xml,"+nS(e)}function oS(e){return'url("'+aS(e)+'")'}const cd={...oh,inline:!1},sS={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},lS={display:"inline-block"},xl={backgroundColor:"currentColor"},gh={backgroundColor:"transparent"},dd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},pd={webkitMask:xl,mask:xl,background:gh};for(const e in pd){const t=pd[e];for(const r in dd)t[e+r]=dd[r]}const Wa={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Wa[e+"-flip"]=t,Wa[e.slice(0,1)+"-flip"]=t,Wa[e+"Flip"]=t});function hd(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const fd=(e,t)=>{const r=QT(cd,t),n={...sS},a=t.mode||"svg",s={},u=t.style,c=typeof u=="object"&&!(u instanceof Array)?u:{};for(let y in t){const x=t[y];if(x!==void 0)switch(y){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":r[y]=x===!0||x==="true"||x===1;break;case"flip":typeof x=="string"&&tS(r,x);break;case"color":s.color=x;break;case"rotate":typeof x=="string"?r[y]=rS(x):typeof x=="number"&&(r[y]=x);break;case"ariaHidden":case"aria-hidden":x!==!0&&x!=="true"&&delete n["aria-hidden"];break;default:{const A=Wa[y];A?(x===!0||x==="true"||x===1)&&(r[A]=!0):cd[y]===void 0&&(n[y]=x)}}}const d=wT(e,r),h=d.attributes;if(r.inline&&(s.verticalAlign="-0.125em"),a==="svg"){n.style={...s,...c},Object.assign(n,h);let y=0,x=t.id;return typeof x=="string"&&(x=x.replace(/-/g,"_")),n.innerHTML=AT(d.body,x?()=>x+"ID"+y++:"iconifyVue"),kt("svg",n)}const{body:m,width:g,height:v}=e,_=a==="mask"||(a==="bg"?!1:m.indexOf("currentColor")!==-1),b=iS(m,{...h,width:g+"",height:v+""});return n.style={...s,"--svg":oS(b),width:hd(h.width),height:hd(h.height),...lS,..._?xl:gh,...c},kt("span",n)};nh(!0);CT("",NT);if(typeof document<"u"&&typeof window<"u"){mh();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!gT(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const a=t[r];if(typeof a!="object"||!a||a.resources===void 0)continue;sh(r,a)||console.error(n)}catch{console.error(n)}}}}const uS={...Bo,body:""},Bt=Ne({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let r;if(typeof e!="string"||(r=Ro(e,!1,!0))===null)return this.abortLoading(),null;const n=fT(r);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:e,abort:JT([r],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const a=["iconify"];return r.prefix!==""&&a.push("iconify--"+r.prefix),r.provider!==""&&a.push("iconify--"+r.provider),{data:n,classes:a}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad):null;if(!t)return fd(uS,e);let r=e;return t.classes&&(r={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),fd({...Bo,...t.data},r)}});sh("",{resources:["https://icons.ui.kvass.no"]});function cS(e){return!e||typeof e!="object"?!1:typeof e.then=="function"&&typeof e.catch=="function"}function dS(){var e=new Date().getTime(),t=typeof performance<"u"&&performance.now&&performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var n=Math.random()*16;return e>0?(n=(e+n)%16|0,e=Math.floor(e/16)):(n=(t+n)%16|0,t=Math.floor(t/16)),(r==="x"?n:n&3|8).toString(16)})}const hu=Ne({__name:"Spinner",props:{size:{default:"medium"}},setup(e){return(t,r)=>(N(),H("span",{class:ft(`k-spinner k-spinner--size-${t.size}`)},null,2))}}),pS={class:"k-button__content"},hS={key:0,class:"k-button__icon k-button__icon--left"},fS={key:1,class:"k-button__icon k-button__icon--right"},mS={key:2,class:"k-button__confirm-label"},br=Ne({__name:"Button",props:{variant:{default:"secondary"},size:{default:"medium"},loading:{type:Boolean},promise:{},confirm:{type:Boolean},is:{default:"button"},stateTimeout:{default:1e3},confirmLabel:{default:"Are you sure?"},label:{},icon:{},iconLeft:{},iconRight:{}},emits:["idle","loading","success","error","confirm","click"],setup(e,{emit:t}){const r=e,n=t,a={success:"success",confirm:"warning",error:"danger",loading:null,idle:null},s=oe(()=>!v.value||h.value==="loading"?r.variant:h.value=="confirm"?"warning":a[h.value]||r.variant),u=oe(()=>r.loading||h.value==="loading"),c=$(),d=oe(()=>{if(h.value)return["error","success"].includes(h.value)||u.value}),h=$("idle"),m=$(),g=$(),v=oe(()=>h.value||u.value),_=oe(()=>["error","success"].includes(h.value)),b=oe(()=>h.value==="success"?"fa-pro-regular:check":"fa-pro-regular:exclamation-circle");function y(O){if(!O)return;x(),g.value=O,c.value=setTimeout(()=>h.value="loading",100);let V=W=>{x(),r.stateTimeout?(h.value=W,m.value=setTimeout(()=>{x(),n(W)},r.stateTimeout)):n(W)};g.value.then(()=>V("success")).catch(()=>V("error"))}function x(){c.value&&clearTimeout(c.value),m.value&&clearTimeout(m.value),g.value=null,h.value="idle"}$e(()=>r.promise,O=>{O&&cS(O)&&y(O)});const A=$(),T=oe(()=>h.value==="confirm");function S(O){if(r.confirm&&h.value!=="confirm")return h.value="confirm";x(),n("click",O)}const M=eh("k-button",{variants:{variant:{primary:"k-button--variant-primary",secondary:"k-button--variant-secondary",tertiary:"k-button--variant-tertiary",danger:"k-button--variant-danger",warning:"k-button--variant-warning",success:"k-button--variant-success"},size:{small:"k-button--size-small",medium:"k-button--size-medium",large:"k-button--size-large"},isLoading:{true:"k-button--loading"},isBusy:{true:"k-button--busy"}}});return(O,V)=>(N(),Te(Un(O.is),je({type:"button",class:he(M)({variant:s.value,size:O.size,isLoading:u.value,isBusy:d.value}),"aria-busy":d.value,inert:d.value},O.$attrs,{onClick:S,ref_key:"rootElement",ref:A}),{default:Oe(()=>[_p(J("span",pS,[O.icon||O.iconLeft||O.$slots.icon||O.$slots["icon-left"]?(N(),H("span",hS,[de(O.$slots,"icon-left",{},()=>[de(O.$slots,"icon",{},()=>[Me(he(Bt),{icon:O.icon||O.iconLeft},null,8,["icon"])])])])):ie("",!0),de(O.$slots,"default",{},()=>[it(me(O.label),1)]),O.iconRight||O.$slots["icon-right"]?(N(),H("span",fS,[de(O.$slots,"icon-right",{},()=>[Me(he(Bt),{icon:O.iconRight},null,8,["icon"])])])):ie("",!0)],512),[[bp,!T.value]]),u.value?(N(),Te(hu,{key:0})):ie("",!0),_.value?(N(),Te(he(Bt),{key:1,class:"k-button__state-indicator",icon:b.value},null,8,["icon"])):ie("",!0),T.value?(N(),H("span",mS,me(O.confirmLabel),1)):ie("",!0)]),_:3},16,["class","aria-busy","inert"]))}});var Nr=(e,t=[])=>({parts:(...r)=>{if(gS(t))return Nr(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>Nr(e,[...t,...r]),rename:r=>Nr(r,t),keys:()=>t,build:()=>[...new Set(t)].reduce((r,n)=>Object.assign(r,{[n]:{selector:[`&[data-scope="${Ii(e)}"][data-part="${Ii(n)}"]`,`& [data-scope="${Ii(e)}"][data-part="${Ii(n)}"]`].join(", "),attrs:{"data-scope":Ii(e),"data-part":Ii(n)}}}),{})}),Ii=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),gS=e=>e.length===0,Pe=e=>e?"":void 0,vS=e=>e?"true":void 0,kS=1,_S=9,bS=11,zo=e=>typeof e=="object"&&e!==null,ar=e=>zo(e)&&e.nodeType===kS&&typeof e.nodeName=="string",vh=e=>zo(e)&&e.nodeType===_S,yS=e=>zo(e)&&e===e.window,kh=e=>ar(e)?e.localName||"":"#document";function xS(e){return["html","body","#document"].includes(kh(e))}var wS=e=>zo(e)&&e.nodeType!==void 0,wl=e=>wS(e)&&e.nodeType===bS&&"host"in e;function $n(e,t){return!e||!t||!ar(e)||!ar(t)?!1:e===t||e.contains(t)}function ur(e){return vh(e)?e:yS(e)?e.document:e?.ownerDocument??document}function ES(e){return ur(e).documentElement}function yr(e){var t;return wl(e)?yr(e.host):vh(e)?e.defaultView??window:ar(e)?((t=e.ownerDocument)==null?void 0:t.defaultView)??window:window}function TS(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const r=t.shadowRoot.activeElement;if(r===t)break;t=r}return t}var SS=()=>typeof document<"u";function AS(){return navigator.userAgentData?.platform??navigator.platform}var _h=e=>SS()&&e.test(AS()),bh=()=>_h(/^Mac/),fu=()=>_h(/iP(hone|ad|od)|iOS/);function CS(e){var t,r,n;return((t=e.composedPath)==null?void 0:t.call(e))??((n=(r=e.nativeEvent)==null?void 0:r.composedPath)==null?void 0:n.call(r))}function jr(e){return CS(e)?.[0]??e.target}function OS(e){if(kh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||wl(e)&&e.host||ES(e);return wl(t)?t.host:t}var LS=e=>typeof e=="object"&&e!==null&&e.nodeType===1;function PS(e){return LS(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1}var IS="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type";function yh(e){return!e||e.closest("[inert]")?!1:e.matches(IS)&&PS(e)}var DS=/auto|scroll|overlay|hidden|clip/;function FS(e){const t=yr(e),{overflow:r,overflowX:n,overflowY:a,display:s}=t.getComputedStyle(e);return DS.test(r+a+n)&&!["inline","contents"].includes(s)}function xh(e){const t=new Set;function r(n){const a=globalThis.requestAnimationFrame(n);t.add(()=>globalThis.cancelAnimationFrame(a))}return r(()=>r(e)),function(){t.forEach(n=>n())}}function zr(e){const t=globalThis.requestAnimationFrame(e);return()=>{globalThis.cancelAnimationFrame(t)}}function wh(e){const t=OS(e);return xS(t)?ur(t).body:ar(t)&&FS(t)?t:wh(t)}function Eh(e,t){return Array.from(e?.querySelectorAll(t)??[])}function ea(e){const t={getRootNode:r=>{var n;return((n=r.getRootNode)==null?void 0:n.call(r))??document},getDoc:r=>ur(t.getRootNode(r)),getWin:r=>t.getDoc(r).defaultView??window,getActiveElement:r=>TS(t.getRootNode(r)),isActiveElement:(r,n)=>n===t.getActiveElement(r),getById:(r,n)=>t.getRootNode(r).getElementById(n),setValue:(r,n)=>{if(r==null||n==null)return;const a=n.toString();r.value!==a&&(r.value=n.toString())}};return{...t,...e}}var Vs=new WeakMap;function NS(e,t,r){Vs.has(e)||Vs.set(e,new Map);const n=Vs.get(e),a=n.get(t);if(!a)return n.set(t,r()),()=>{var c;(c=n.get(t))==null||c(),n.delete(t)};const s=r(),u=()=>{s(),a(),n.delete(t)};return n.set(t,u),()=>{n.get(t)===u&&(s(),n.set(t,a))}}function MS(e,t){return e?NS(e,"style",()=>{const r=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=r}}):()=>{}}var RS={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},BS=1e3/60;function jS(e,t){const r=e();if(ar(r)&&r.isConnected)return t(r),()=>{};{const n=setInterval(()=>{const a=e();ar(a)&&a.isConnected&&(t(a),clearInterval(n))},BS);return()=>clearInterval(n)}}function zS(e,t){const r=[];return e?.forEach(n=>{const a=jS(n,t);r.push(a)}),()=>{r.forEach(n=>n())}}function VS(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function US(e){return!(e.metaKey||!bh()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var ZS=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function HS(e,t,r){const n=r?jr(r):null,a=yr(n);return e=e||n instanceof a.HTMLInputElement&&!ZS.has(n?.type)||n instanceof a.HTMLTextAreaElement||n instanceof a.HTMLElement&&n.isContentEditable,!(e&&t==="keyboard"&&r instanceof a.KeyboardEvent&&!Reflect.has(qS,r.key))}var mi=null,El=new Set,Nn=new Map,ci=!1,Tl=!1,qS={Tab:!0,Escape:!0};function Vo(e,t){for(let r of El)r(e,t)}function uo(e){ci=!0,US(e)&&(mi="keyboard",Vo("keyboard",e))}function Rt(e){mi="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ci=!0,Vo("pointer",e))}function Th(e){VS(e)&&(ci=!0,mi="virtual")}function Sh(e){const t=jr(e);t===yr(t)||t===ur(t)||(!ci&&!Tl&&(mi="virtual",Vo("virtual",e)),ci=!1,Tl=!1)}function Ah(){ci=!1,Tl=!0}function $S(e){if(typeof window>"u"||Nn.get(yr(e)))return;const t=yr(e),r=ur(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){mi="virtual",Vo("virtual",null),ci=!0,n.apply(this,arguments)},r.addEventListener("keydown",uo,!0),r.addEventListener("keyup",uo,!0),r.addEventListener("click",Th,!0),t.addEventListener("focus",Sh,!0),t.addEventListener("blur",Ah,!1),typeof t.PointerEvent<"u"?(r.addEventListener("pointerdown",Rt,!0),r.addEventListener("pointermove",Rt,!0),r.addEventListener("pointerup",Rt,!0)):(r.addEventListener("mousedown",Rt,!0),r.addEventListener("mousemove",Rt,!0),r.addEventListener("mouseup",Rt,!0)),t.addEventListener("beforeunload",()=>{WS(e)},{once:!0}),Nn.set(t,{focus:n})}var WS=(e,t)=>{const r=yr(e),n=ur(e);Nn.has(r)&&(r.HTMLElement.prototype.focus=Nn.get(r).focus,n.removeEventListener("keydown",uo,!0),n.removeEventListener("keyup",uo,!0),n.removeEventListener("click",Th,!0),r.removeEventListener("focus",Sh,!0),r.removeEventListener("blur",Ah,!1),typeof r.PointerEvent<"u"?(n.removeEventListener("pointerdown",Rt,!0),n.removeEventListener("pointermove",Rt,!0),n.removeEventListener("pointerup",Rt,!0)):(n.removeEventListener("mousedown",Rt,!0),n.removeEventListener("mousemove",Rt,!0),n.removeEventListener("mouseup",Rt,!0)),Nn.delete(r))};function Sl(){return mi==="keyboard"}function GS(e={}){const{isTextInput:t,autoFocus:r,onChange:n,root:a}=e;$S(a),n?.({isFocusVisible:r||Sl(),modality:mi});const s=(u,c)=>{HS(!!t,u,c)&&n?.({isFocusVisible:Sl(),modality:u})};return El.add(s),()=>{El.delete(s)}}const YS=Symbol(),md=Object.getPrototypeOf,Al=new WeakMap,KS=e=>e&&(Al.has(e)?Al.get(e):md(e)===Object.prototype||md(e)===Array.prototype),XS=e=>KS(e)&&e[YS]||null,gd=(e,t=!0)=>{Al.set(e,t)};function JS(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function Ch(e,t){const r=JS();return r?(r[e]||(r[e]=t()),r[e]):t()}var Us=e=>typeof e=="object"&&e!==null,ii=Ch("__zag__proxyStateMap",()=>new WeakMap),An=Ch("__zag__refSet",()=>new WeakSet),QS=e=>typeof e=="object"&&e!==null&&"$$typeof"in e,eA=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,tA=e=>typeof e=="object"&&e!==null&&"nodeType"in e&&typeof e.nodeName=="string",rA=e=>QS(e)||eA(e)||tA(e),iA=(e=Object.is,t=(h,m)=>new Proxy(h,m),r=h=>Us(h)&&!An.has(h)&&(Array.isArray(h)||!(Symbol.iterator in h))&&!rA(h)&&!(h instanceof WeakMap)&&!(h instanceof WeakSet)&&!(h instanceof Error)&&!(h instanceof Number)&&!(h instanceof Date)&&!(h instanceof String)&&!(h instanceof RegExp)&&!(h instanceof ArrayBuffer),n=h=>{switch(h.status){case"fulfilled":return h.value;case"rejected":throw h.reason;default:throw h}},a=new WeakMap,s=(h,m,g=n)=>{const v=a.get(h);if(v?.[0]===m)return v[1];const _=Array.isArray(h)?[]:Object.create(Object.getPrototypeOf(h));return gd(_,!0),a.set(h,[m,_]),Reflect.ownKeys(h).forEach(b=>{const y=Reflect.get(h,b);An.has(y)?(gd(y,!1),_[b]=y):y instanceof Promise?Object.defineProperty(_,b,{get(){return g(y)}}):ii.has(y)?_[b]=oi(y,g):_[b]=y}),Object.freeze(_)},u=new WeakMap,c=[1,1],d=h=>{if(!Us(h))throw new Error("object required");const m=u.get(h);if(m)return m;let g=c[0];const v=new Set,_=(q,B=++c[0])=>{g!==B&&(g=B,v.forEach(j=>j(q,B)))};let b=c[1];const y=(q=++c[1])=>(b!==q&&!v.size&&(b=q,A.forEach(([B])=>{const j=B[1](q);j>g&&(g=j)})),g),x=q=>(B,j)=>{const P=[...B];P[1]=[q,...P[1]],_(P,j)},A=new Map,T=(q,B)=>{if(v.size){const j=B[3](x(q));A.set(q,[B,j])}else A.set(q,[B])},S=q=>{var B;const j=A.get(q);j&&(A.delete(q),(B=j[1])==null||B.call(j))},M=q=>(v.add(q),v.size===1&&A.forEach(([B,j],P)=>{const D=B[3](x(P));A.set(P,[B,D])}),()=>{v.delete(q),v.size===0&&A.forEach(([B,j],P)=>{j&&(j(),A.set(P,[B]))})}),O=Array.isArray(h)?[]:Object.create(Object.getPrototypeOf(h)),V=t(O,{deleteProperty(q,B){const j=Reflect.get(q,B);S(B);const P=Reflect.deleteProperty(q,B);return P&&_(["delete",[B],j]),P},set(q,B,j,P){var D;const Y=Reflect.has(q,B),E=Reflect.get(q,B,P);if(Y&&(e(E,j)||u.has(j)&&e(E,u.get(j))))return!0;S(B),Us(j)&&(j=XS(j)||j);let F=j;if(!((D=Object.getOwnPropertyDescriptor(q,B))!=null&&D.set))if(j instanceof Promise)j.then(z=>{Object.assign(j,{status:"fulfilled",value:z}),_(["resolve",[B],z])}).catch(z=>{Object.assign(j,{status:"rejected",reason:z}),_(["reject",[B],z])});else{!ii.has(j)&&r(j)&&(F=mu(j));const z=!An.has(F)&&ii.get(F);z&&T(B,z)}return Reflect.set(q,B,F,P),_(["set",[B],j,E]),!0}});u.set(h,V);const W=[O,y,s,M];return ii.set(V,W),Reflect.ownKeys(h).forEach(q=>{const B=Object.getOwnPropertyDescriptor(h,q);B.get||B.set?Object.defineProperty(O,q,B):V[q]=h[q]}),V})=>[d,ii,An,e,t,r,n,a,s,u,c],[nA]=iA();function mu(e={}){return nA(e)}function Cl(e,t,r){const n=ii.get(e);let a;const s=[],u=n[3];let c=!1;const d=u(h=>{if(s.push(h),r){t(s.splice(0));return}a||(a=Promise.resolve().then(()=>{a=void 0,c&&t(s.splice(0))}))});return c=!0,()=>{c=!1,d()}}function oi(e,t){const r=ii.get(e),[n,a,s]=r;return s(n,a(),t)}function vd(e){return An.add(e),e}function aA(e,t){Object.keys(t).forEach(n=>{if(Object.getOwnPropertyDescriptor(e,n))throw new Error("object property already defined");const a=t[n],{get:s,set:u}=typeof a=="function"?{get:a}:a,c={};c.get=()=>s(oi(r)),u&&(c.set=d=>u(r,d)),Object.defineProperty(e,n,c)});const r=mu(e);return r}function oA(e){for(;e.length>0;)e.pop();return e}var kd=e=>e?.constructor.name==="Array",sA=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!$i(e[r],t[r]))return!1;return!0},$i=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual=="function"&&typeof t?.isEqual=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(kd(e)&&kd(t))return sA(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(t??Object.create(null)),n=r.length;for(let a=0;a<n;a++)if(!Reflect.has(e,r[a]))return!1;for(let a=0;a<n;a++){const s=r[a];if(!$i(e[s],t[s]))return!1}return!0},_d=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,vr=e=>e,lA=()=>{},bd=(...e)=>(...t)=>{e.forEach(function(r){r?.(...t)})},yd=(()=>{let e=0;return()=>(e++,e.toString(36))})(),co=e=>Array.isArray(e),Oh=e=>e!=null&&typeof e=="object",Ga=e=>Oh(e)&&!co(e),uA=e=>typeof e=="number"&&!Number.isNaN(e),tr=e=>typeof e=="string",Wn=e=>typeof e=="function",Lh=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),cA=e=>Object.prototype.toString.call(e),Ph=Function.prototype.toString,dA=Ph.call(Object),pA=e=>{if(!Oh(e)||cA(e)!="[object Object]")return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const r=Lh(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Ph.call(r)==dA};function di(e){if(!hA(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(n=>typeof n=="string"),r={};for(const n of t){const a=e[n];a!==void 0&&(r[n]=di(a))}return r}var hA=e=>e&&typeof e=="object"&&e.constructor===Object;function Ya(...e){e.length===1?e[0]:e[1],e.length!==2||e[0]}function Ka(...e){e.length===1?e[0]:e[1],e.length!==2||e[0]}function xd(e,t,r){typeof r.value=="object"&&(r.value=zi(r.value)),!r.enumerable||r.get||r.set||!r.configurable||!r.writable||t==="__proto__"?Object.defineProperty(e,t,r):e[t]=r.value}function zi(e){if(typeof e!="object")return e;var t=0,r,n,a,s=Object.prototype.toString.call(e);if(s==="[object Object]"?a=Object.create(e.__proto__||null):s==="[object Array]"?a=Array(e.length):s==="[object Set]"?(a=new Set,e.forEach(function(u){a.add(zi(u))})):s==="[object Map]"?(a=new Map,e.forEach(function(u,c){a.set(zi(c),zi(u))})):s==="[object Date]"?a=new Date(+e):s==="[object RegExp]"?a=new RegExp(e.source,e.flags):s==="[object DataView]"?a=new e.constructor(zi(e.buffer)):s==="[object ArrayBuffer]"?a=e.slice(0):s.slice(-6)==="Array]"&&(a=new e.constructor(e)),a){for(n=Object.getOwnPropertySymbols(e);t<n.length;t++)xd(a,n[t],Object.getOwnPropertyDescriptor(e,n[t]));for(t=0,n=Object.getOwnPropertyNames(e);t<n.length;t++)Object.hasOwnProperty.call(a,r=n[t])&&a[r]===e[r]||xd(a,r,Object.getOwnPropertyDescriptor(e,r))}return a||e}var fA=Object.defineProperty,mA=(e,t,r)=>t in e?fA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,re=(e,t,r)=>mA(e,typeof t!="symbol"?t+"":t,r);function Ih(e,...t){for(const r of t){const n=di(r);for(const a in n)pA(r[a])?(e[a]||(e[a]={}),Ih(e[a],r[a])):e[a]=r[a]}return e}function wd(e){return zi(e)}function Zt(e){return tr(e)?{type:e}:e}function Lr(e){return e?co(e)?e.slice():[e]:[]}function Dh(e){return Ga(e)&&e.predicate!=null}var gA=()=>!0;function vA(e,t,r,n){return a=>{var s;return tr(a)?!!((s=e[a])!=null&&s.call(e,t,r,n)):Wn(a)?a(t,r,n):a.predicate(e)(t,r,n)}}function kA(e){return{predicate:t=>(r,n,a)=>!vA(t,r,n,a)(e)}}var _A={not:kA};function Fh(e,t){return e=e??gA,(r,n,a)=>{if(tr(e)){const s=t[e];return Wn(s)?s(r,n,a):s}return Dh(e)?e.predicate(t)(r,n,a):e?.(r,n,a)}}function Zs(e,t){return(r,n,a)=>Dh(e)?e.predicate(t)(r,n,a):e}function bA(e){var t,r;const n=e.computed??vr({}),a=e.context??vr({}),s=e.initial?(r=(t=e.states)==null?void 0:t[e.initial])==null?void 0:r.tags:[],u=mu({value:e.initial??"",previousValue:"",event:vr({}),previousEvent:vr({}),context:aA(a,n),done:!1,tags:s??[],hasTag(c){return this.tags.includes(c)},matches(...c){return c.includes(this.value)},can(c){return vr(this).nextEvents.includes(c)},get nextEvents(){var c,d;const h=((d=(c=e.states)==null?void 0:c[this.value])==null?void 0:d.on)??{},m=e?.on??{};return Object.keys({...h,...m})},get changed(){return this.event.value==="machine.init"||!this.previousValue?!1:this.value!==this.previousValue}});return vr(u)}function En(e,t){return(r,n)=>{if(uA(e))return e;if(Wn(e))return e(r,n);if(tr(e)){const a=Number.parseFloat(e);if(!Number.isNaN(a))return a;if(t){const s=t?.[e];return Ka(s==null,`[@zag-js/core > determine-delay] Cannot determine delay for \`${e}\`. It doesn't exist in \`options.delays\``),Wn(s)?s(r,n):s}}}}function yA(e){return tr(e)?{target:e}:e}function xA(e,t){return(r,n,a)=>Lr(e).map(yA).find(s=>Fh(s.guard,t)(r,n,a)??s.target??s.actions)}var wA=class{constructor(e,t){var r,n,a,s,u;re(this,"status","Not Started"),re(this,"state"),re(this,"initialState"),re(this,"initialContext"),re(this,"id"),re(this,"type","machine"),re(this,"activityEvents",new Map),re(this,"delayedEvents",new Map),re(this,"stateListeners",new Set),re(this,"doneListeners",new Set),re(this,"contextWatchers",new Set),re(this,"removeStateListener",lA),re(this,"parent"),re(this,"children",new Map),re(this,"guardMap"),re(this,"actionMap"),re(this,"delayMap"),re(this,"activityMap"),re(this,"sync"),re(this,"options"),re(this,"config"),re(this,"_created",()=>{var c;const d=Zt("machine.created");this.executeActions((c=this.config)==null?void 0:c.created,d)}),re(this,"start",c=>{if(this.state.value="",this.state.tags=[],this.status==="Running")return this;this.status="Running",this.removeStateListener=Cl(this.state,()=>{this.stateListeners.forEach(_=>{_(this.stateSnapshot)})},this.sync),this.setupContextWatchers(),this.executeActivities(Zt("machine.start"),Lr(this.config.activities),"machine.start"),this.executeActions(this.config.entry,Zt("machine.start"));const d=Zt("machine.init"),h=Ga(c)?c.value:c,m=Ga(c)?c.context:void 0;m&&this.setContext(m);const g={target:h??this.config.initial},v=this.getNextStateInfo(g,d);return this.initialState=v,this.performStateChangeEffects(this.state.value,v,d),this}),re(this,"setupContextWatchers",()=>{const{watch:c}=this.config;if(!c)return;let d=oi(this.state.context);const h=Cl(this.state.context,()=>{var m;const g=oi(this.state.context);for(const[v,_]of Object.entries(c))(((m=this.options.compareFns)==null?void 0:m[v])??Object.is)(d[v],g[v])||this.executeActions(_,this.state.event);d=g});this.contextWatchers.add(h)}),re(this,"stop",()=>{if(this.status!=="Stopped")return this.performExitEffects(this.state.value,Zt("machine.stop")),this.executeActions(this.config.exit,Zt("machine.stop")),this.setState(""),this.setEvent("machine.stop"),this.stopStateListeners(),this.stopChildren(),this.stopActivities(),this.stopDelayedEvents(),this.stopContextWatchers(),this.status="Stopped",this}),re(this,"stopStateListeners",()=>{this.removeStateListener(),this.stateListeners.clear()}),re(this,"stopContextWatchers",()=>{this.contextWatchers.forEach(c=>c()),this.contextWatchers.clear()}),re(this,"stopDelayedEvents",()=>{this.delayedEvents.forEach(c=>{c.forEach(d=>d())}),this.delayedEvents.clear()}),re(this,"stopActivities",c=>{var d,h;c?((d=this.activityEvents.get(c))==null||d.forEach(m=>m()),(h=this.activityEvents.get(c))==null||h.clear(),this.activityEvents.delete(c)):(this.activityEvents.forEach(m=>{m.forEach(g=>g()),m.clear()}),this.activityEvents.clear())}),re(this,"sendChild",(c,d)=>{const h=Zt(c),m=_d(d,this.contextSnapshot),g=this.children.get(m);g||Ka(`[@zag-js/core] Cannot send '${h.type}' event to unknown child`),g.send(h)}),re(this,"stopChild",c=>{this.children.has(c)||Ka(`[@zag-js/core > stop-child] Cannot stop unknown child ${c}`),this.children.get(c).stop(),this.children.delete(c)}),re(this,"removeChild",c=>{this.children.delete(c)}),re(this,"stopChildren",()=>{this.children.forEach(c=>c.stop()),this.children.clear()}),re(this,"setParent",c=>{this.parent=c}),re(this,"spawn",(c,d)=>{const h=_d(c);return d&&(h.id=d),h.type="machine.actor",h.setParent(this),this.children.set(h.id,vr(h)),h.onDone(()=>{this.removeChild(h.id)}).start(),vr(vd(h))}),re(this,"stopActivity",c=>{var d;if(!this.state.value)return;const h=this.activityEvents.get(this.state.value);(d=h?.get(c))==null||d(),h?.delete(c)}),re(this,"addActivityCleanup",(c,d,h)=>{var m;c&&(this.activityEvents.has(c)?(m=this.activityEvents.get(c))==null||m.set(d,h):this.activityEvents.set(c,new Map([[d,h]])))}),re(this,"setState",c=>{this.state.previousValue=this.state.value,this.state.value=c;const d=this.getStateNode(c);c==null?oA(this.state.tags):this.state.tags=Lr(d?.tags)}),re(this,"setContext",c=>{c&&Ih(this.state.context,di(c))}),re(this,"setOptions",c=>{const d=di(c);this.actionMap={...this.actionMap,...d.actions},this.delayMap={...this.delayMap,...d.delays},this.activityMap={...this.activityMap,...d.activities},this.guardMap={...this.guardMap,...d.guards}}),re(this,"getStateNode",c=>{var d;if(c)return(d=this.config.states)==null?void 0:d[c]}),re(this,"getNextStateInfo",(c,d)=>{const h=this.determineTransition(c,d),m=!(h!=null&&h.target),g=h?.target??this.state.value,v=this.state.value!==g,_=this.getStateNode(g),b={reenter:!m&&!v&&!(h!=null&&h.internal),transition:h,stateNode:_,target:g,changed:v};return this.log("NextState:",`[${d.type}]`,this.state.value,"---->",b.target),b}),re(this,"getAfterActions",(c,d)=>{let h;const m=this.state.value;return{entry:()=>{h=globalThis.setTimeout(()=>{const g=this.getNextStateInfo(c,this.state.event);this.performStateChangeEffects(m,g,this.state.event)},d)},exit:()=>{globalThis.clearTimeout(h)}}}),re(this,"getDelayedEventActions",c=>{const d=this.getStateNode(c),h=this.state.event;if(!d||!d.after)return;const m=[],g=[];if(co(d.after)){const v=this.determineTransition(d.after,h);if(!v)return;if(!Lh(v,"delay"))throw new Error(`[@zag-js/core > after] Delay is required for after transition: ${JSON.stringify(v)}`);const _=En(v.delay,this.delayMap)(this.contextSnapshot,h),b=this.getAfterActions(v,_);return m.push(b.entry),g.push(b.exit),{entries:m,exits:g}}if(Ga(d.after))for(const v in d.after){const _=d.after[v],b=En(v,this.delayMap)(this.contextSnapshot,h),y=this.getAfterActions(_,b);m.push(y.entry),g.push(y.exit)}return{entries:m,exits:g}}),re(this,"executeActions",(c,d)=>{var h;const m=Zs(c,this.guardMap)(this.contextSnapshot,d,this.guardMeta);for(const g of Lr(m)){const v=tr(g)?(h=this.actionMap)==null?void 0:h[g]:g;Ya(tr(g)&&!v,`[@zag-js/core > execute-actions] No implementation found for action: \`${g}\``),v?.(this.state.context,d,this.meta)}}),re(this,"executeActivities",(c,d,h)=>{var m;for(const g of d){const v=tr(g)?(m=this.activityMap)==null?void 0:m[g]:g;if(!v){Ya(`[@zag-js/core > execute-activity] No implementation found for activity: \`${g}\``);continue}const _=v(this.state.context,c,this.meta);if(_){const b=tr(g)?g:g.name||yd();this.addActivityCleanup(h??this.state.value,b,_)}}}),re(this,"createEveryActivities",(c,d)=>{if(c)if(co(c)){const h=Lr(c).find(g=>{const v=g.delay,_=En(v,this.delayMap)(this.contextSnapshot,this.state.event);return Fh(g.guard,this.guardMap)(this.contextSnapshot,this.state.event,this.guardMeta)??_!=null});if(!h)return;const m=En(h.delay,this.delayMap)(this.contextSnapshot,this.state.event);d(()=>{const g=globalThis.setInterval(()=>{this.executeActions(h.actions,this.state.event)},m);return()=>{globalThis.clearInterval(g)}})}else for(const h in c){const m=c?.[h],g=En(h,this.delayMap)(this.contextSnapshot,this.state.event);d(()=>{const v=globalThis.setInterval(()=>{this.executeActions(m,this.state.event)},g);return()=>{globalThis.clearInterval(v)}})}}),re(this,"setEvent",c=>{this.state.previousEvent=this.state.event,this.state.event=vd(Zt(c))}),re(this,"performExitEffects",(c,d)=>{const h=this.state.value;if(h==="")return;const m=c?this.getStateNode(c):void 0;this.stopActivities(h);const g=Zs(m?.exit,this.guardMap)(this.contextSnapshot,d,this.guardMeta),v=Lr(g),_=this.delayedEvents.get(h);_&&v.push(..._),this.executeActions(v,d),this.delayedEvents.delete(h)}),re(this,"performEntryEffects",(c,d)=>{const h=this.getStateNode(c),m=Lr(h?.activities);this.createEveryActivities(h?.every,b=>{m.unshift(b)}),m.length>0&&this.executeActivities(d,m);const g=Zs(h?.entry,this.guardMap)(this.contextSnapshot,d,this.guardMeta),v=Lr(g),_=this.getDelayedEventActions(c);h!=null&&h.after&&_&&(this.delayedEvents.set(c,_?.exits),v.push(..._.entries)),this.executeActions(v,d),h?.type==="final"&&(this.state.done=!0,this.doneListeners.forEach(b=>{b(this.stateSnapshot)}),this.stop())}),re(this,"performTransitionEffects",(c,d)=>{const h=this.determineTransition(c,d);this.executeActions(h?.actions,d)}),re(this,"performStateChangeEffects",(c,d,h)=>{this.setEvent(h);const m=d.changed||d.reenter;m&&this.performExitEffects(c,h),this.performTransitionEffects(d.transition,h),this.setState(d.target),m&&this.performEntryEffects(d.target,h)}),re(this,"determineTransition",(c,d)=>xA(c,this.guardMap)?.(this.contextSnapshot,d,this.guardMeta)),re(this,"sendParent",c=>{var d;this.parent||Ka("[@zag-js/core > send-parent] Cannot send event to an unknown parent");const h=Zt(c);(d=this.parent)==null||d.send(h)}),re(this,"log",(...c)=>{}),re(this,"send",c=>{const d=Zt(c);this.transition(this.state.value,d)}),re(this,"transition",(c,d)=>{var h,m;const g=tr(c)?this.getStateNode(c):c?.stateNode,v=Zt(d);if(!g&&!this.config.on){const y=this.status==="Stopped"?"[@zag-js/core > transition] Cannot transition a stopped machine":`[@zag-js/core > transition] State does not have a definition for \`state\`: ${c}, \`event\`: ${v.type}`;Ya(y);return}const _=((h=g?.on)==null?void 0:h[v.type])??((m=this.config.on)==null?void 0:m[v.type]),b=this.getNextStateInfo(_,v);return this.performStateChangeEffects(this.state.value,b,v),b.stateNode}),re(this,"subscribe",c=>(this.stateListeners.add(c),this.status==="Running"&&c(this.stateSnapshot),()=>{this.stateListeners.delete(c)})),re(this,"onDone",c=>(this.doneListeners.add(c),this)),re(this,"onTransition",c=>(this.stateListeners.add(c),this.status==="Running"&&c(this.stateSnapshot),this)),this.config=wd(e),this.options=wd(t??{}),this.id=this.config.id??`machine-${yd()}`,this.guardMap=((r=this.options)==null?void 0:r.guards)??{},this.actionMap=((n=this.options)==null?void 0:n.actions)??{},this.delayMap=((a=this.options)==null?void 0:a.delays)??{},this.activityMap=((s=this.options)==null?void 0:s.activities)??{},this.sync=((u=this.options)==null?void 0:u.sync)??!1,this.state=bA(this.config),this.initialContext=oi(this.state.context)}get stateSnapshot(){return vr(oi(this.state))}getState(){return this.stateSnapshot}get contextSnapshot(){return this.stateSnapshot.context}get self(){const e=this;return{id:this.id,send:this.send.bind(this),sendParent:this.sendParent.bind(this),sendChild:this.sendChild.bind(this),stop:this.stop.bind(this),stopChild:this.stopChild.bind(this),spawn:this.spawn.bind(this),stopActivity:this.stopActivity.bind(this),get state(){return e.stateSnapshot},get initialContext(){return e.initialContext},get initialState(){var t;return((t=e.initialState)==null?void 0:t.target)??""}}}get meta(){var e;return{state:this.stateSnapshot,guards:this.guardMap,send:this.send.bind(this),self:this.self,initialContext:this.initialContext,initialState:((e=this.initialState)==null?void 0:e.target)??"",getState:()=>this.stateSnapshot,getAction:t=>this.actionMap[t],getGuard:t=>this.guardMap[t]}}get guardMeta(){return{state:this.stateSnapshot}}get[Symbol.toStringTag](){return"Machine"}getHydrationState(){const e=this.getState();return{value:e.value,tags:e.tags}}},gu=(e,t)=>new wA(e,t),Vi="default",Ol="",Xa=new WeakMap;function EA(e={}){const{target:t,doc:r}=e,n=r??document,a=n.documentElement;return fu()?(Vi==="default"&&(Ol=a.style.webkitUserSelect,a.style.webkitUserSelect="none"),Vi="disabled"):t&&(Xa.set(t,t.style.userSelect),t.style.userSelect="none"),()=>TA({target:t,doc:n})}function TA(e={}){const{target:t,doc:r}=e,n=(r??document).documentElement;if(fu()){if(Vi!=="disabled")return;Vi="restoring",setTimeout(()=>{xh(()=>{Vi==="restoring"&&(n.style.webkitUserSelect==="none"&&(n.style.webkitUserSelect=Ol||""),Ol="",Vi="default")})},300)}else if(t&&Xa.has(t)){const a=Xa.get(t);t.style.userSelect==="none"&&(t.style.userSelect=a??""),t.getAttribute("style")===""&&t.removeAttribute("style"),Xa.delete(t)}}function SA(e={}){const{defer:t,target:r,...n}=e,a=t?zr:u=>u(),s=[];return s.push(a(()=>{const u=typeof r=="function"?r():r;s.push(EA({...n,target:u}))})),()=>{s.forEach(u=>u?.())}}var vt=(e,t,r,n)=>{const a=typeof e=="function"?e():e;return a?.addEventListener(t,r,n),()=>{a?.removeEventListener(t,r,n)}},AA=e=>e.button===0,CA=e=>e.button===2||bh()&&e.ctrlKey&&e.button===0,OA=e=>e.ctrlKey||e.altKey||e.metaKey;function Ed(e,t,r){if(!e)return;const n=e.ownerDocument.defaultView||window,a=new n.CustomEvent(t,r);return e.dispatchEvent(a)}var LA={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},Td={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function PA(e,t={}){const{dir:r="ltr",orientation:n="horizontal"}=t;let{key:a}=e;return a=LA[a]??a,r==="rtl"&&n==="horizontal"&&a in Td&&(a=Td[a]),a}function IA(e,t="client"){const r=e.touches[0]||e.changedTouches[0];return{x:r[`${t}X`],y:r[`${t}Y`]}}function DA(e,t="client"){return{x:e[`${t}X`],y:e[`${t}Y`]}}var FA=e=>"touches"in e&&e.touches.length>0;function vu(e,t="client"){return FA(e)?IA(e,t):DA(e,t)}var NA=new Set(["PageUp","PageDown"]),MA=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]);function RA(e){return e.ctrlKey||e.metaKey?.1:NA.has(e.key)||e.shiftKey&&MA.has(e.key)?10:1}function Sd(e){return Math.max(0,Math.min(1,e))}function BA(e,t){const{left:r,top:n,width:a,height:s}=t.getBoundingClientRect(),u={x:e.x-r,y:e.y-n},c={x:Sd(u.x/a),y:Sd(u.y/s)};function d(h={}){const{dir:m="ltr",orientation:g="horizontal",inverted:v}=h,_=typeof v=="object"?v.x:v,b=typeof v=="object"?v.y:v;return g==="horizontal"?m==="rtl"||_?1-c.x:c.x:b?1-c.y:c.y}return{offset:u,percent:c,getPercentValue:d}}function jA(e,t){const{onPointerMove:r,onPointerUp:n}=t,a=[],s=[vt(e,"pointermove",u=>{const c=vu(u);a.push({...c,timestamp:performance.now()});const d=Math.sqrt(c.x**2+c.y**2),h=u.pointerType==="touch"?10:5;if(!(d<h)){if(u.pointerType==="mouse"&&u.button===0){n();return}r({point:c,event:u,velocity:ZA(a,.1)})}},!1),vt(e,"pointerup",n,!1),vt(e,"pointercancel",n,!1),vt(e,"contextmenu",n,!1),SA({doc:e})];return()=>{s.forEach(u=>u()),a.length=0}}function zA(e){return e[e.length-1]}function VA(e){return e*1e3}function UA(e){return e/1e3}function ZA(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const a=zA(e);for(;r>=0&&(n=e[r],!(a.timestamp-n.timestamp>VA(t)));)r--;if(!n)return{x:0,y:0};const s=UA(a.timestamp-n.timestamp);if(s===0)return{x:0,y:0};const u={x:(a.x-n.x)/s,y:(a.y-n.y)/s};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),{x:Math.abs(u.x),y:Math.abs(u.y)}}var Hs=(...e)=>t=>e.reduce((r,n)=>n(r),t),Oa=()=>{};function HA(e){const{pointerNode:t,keyboardNode:r=t,onPress:n,onPressStart:a,onPressEnd:s,isValidKey:u=T=>T.key==="Enter"}=e;if(!t)return Oa;const c=yr(t),d=ur(t);let h=Oa,m=Oa,g=Oa;const v=T=>({point:vu(T),event:T});function _(T){a?.(v(T))}function b(T){s?.(v(T))}const y=vt(t,"pointerdown",T=>{m();const S=vt(c,"pointerup",O=>{const V=jr(O);$n(t,V)?n?.(v(O)):s?.(v(O))},{passive:!n}),M=vt(c,"pointercancel",b,{passive:!s});m=Hs(S,M),d.activeElement===r&&T.pointerType==="mouse"&&T.preventDefault(),_(T)},{passive:!a}),x=vt(r,"focus",A);h=Hs(y,x);function A(){const T=V=>{if(!u(V))return;const W=B=>{if(!u(B))return;const j=new c.PointerEvent("pointerup"),P=v(j);n?.(P),s?.(P)};m(),m=vt(r,"keyup",W);const q=new c.PointerEvent("pointerdown");_(q)},S=()=>{const V=new c.PointerEvent("pointercancel");b(V)},M=vt(r,"keydown",T),O=vt(r,"blur",S);g=Hs(M,O)}return function(){h(),m(),g()}}var ku=e=>e.ownerDocument.defaultView||window;function Nh(e,t){const{type:r="HTMLInputElement",property:n="value"}=t,a=ku(e)[r].prototype;return Object.getOwnPropertyDescriptor(a,n)??{}}function qA(e,t,r={}){var n;(n=Nh(e,r).set)==null||n.call(e,t),e.setAttribute("value",t)}function Mh(e,t){var r;(r=Nh(e,{type:"HTMLInputElement",property:"checked"}).set)==null||r.call(e,t),t?e.setAttribute("checked",""):e.removeAttribute("checked")}function $A(e,t){const{value:r,bubbles:n=!0}=t;if(!e)return;const a=ku(e);e instanceof a.HTMLInputElement&&(qA(e,`${r}`),e.dispatchEvent(new a.Event("input",{bubbles:n})))}function WA(e,t){const{checked:r,bubbles:n=!0}=t;if(!e)return;const a=ku(e);e instanceof a.HTMLInputElement&&(Mh(e,r),e.dispatchEvent(new a.Event("click",{bubbles:n})))}function GA(e){return YA(e)?e.form:e.closest("form")}function YA(e){return e.matches("textarea, input, select, button")}function KA(e,t){if(!e)return;const r=GA(e);return r?.addEventListener("reset",t,{passive:!0}),()=>{r?.removeEventListener("reset",t)}}function XA(e,t){const r=e?.closest("fieldset");if(!r)return;t(r.disabled);const n=r.ownerDocument.defaultView||window,a=new n.MutationObserver(()=>t(r.disabled));return a.observe(r,{attributes:!0,attributeFilter:["disabled"]}),()=>a.disconnect()}function Rh(e,t){if(!e)return;const{onFieldsetDisabledChange:r,onFormReset:n}=t,a=[KA(e,n),XA(e,r)];return()=>{a.forEach(s=>s?.())}}function JA(e){return new Proxy({},{get(){return e}})}var gi=()=>e=>Array.from(new Set(e)),QA=Nr("checkbox").parts("root","label","control","indicator"),La=QA.build(),lt=ea({getRootId:e=>{var t;return((t=e.ids)==null?void 0:t.root)??`checkbox:${e.id}`},getLabelId:e=>{var t;return((t=e.ids)==null?void 0:t.label)??`checkbox:${e.id}:label`},getControlId:e=>{var t;return((t=e.ids)==null?void 0:t.control)??`checkbox:${e.id}:control`},getHiddenInputId:e=>{var t;return((t=e.ids)==null?void 0:t.hiddenInput)??`checkbox:${e.id}:input`},getRootEl:e=>lt.getById(e,lt.getRootId(e)),getHiddenInputEl:e=>lt.getById(e,lt.getHiddenInputId(e))});function eC(e,t,r){const n=e.context.isDisabled,a=e.context.readOnly,s=!n&&e.context.focused,u=!n&&e.context.focusVisible,c=e.context.isChecked,d=e.context.isIndeterminate,h={"data-active":Pe(e.context.active),"data-focus":Pe(s),"data-focus-visible":Pe(u),"data-readonly":Pe(a),"data-hover":Pe(e.context.hovered),"data-disabled":Pe(n),"data-state":d?"indeterminate":e.context.checked?"checked":"unchecked","data-invalid":Pe(e.context.invalid)};return{checked:c,disabled:n,indeterminate:d,focused:s,checkedState:e.context.checked,setChecked(m){t({type:"CHECKED.SET",checked:m,isTrusted:!1})},toggleChecked(){t({type:"CHECKED.TOGGLE",checked:c,isTrusted:!1})},getRootProps(){return r.label({...La.root.attrs,...h,dir:e.context.dir,id:lt.getRootId(e.context),htmlFor:lt.getHiddenInputId(e.context),onPointerMove(){n||t({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){n||t({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(m){jr(m)===lt.getHiddenInputEl(e.context)&&m.stopPropagation()}})},getLabelProps(){return r.element({...La.label.attrs,...h,dir:e.context.dir,id:lt.getLabelId(e.context)})},getControlProps(){return r.element({...La.control.attrs,...h,dir:e.context.dir,id:lt.getControlId(e.context),"aria-hidden":!0})},getIndicatorProps(){return r.element({...La.indicator.attrs,...h,dir:e.context.dir,hidden:!d&&!e.context.checked})},getHiddenInputProps(){return r.input({id:lt.getHiddenInputId(e.context),type:"checkbox",required:e.context.required,defaultChecked:c,disabled:n,"aria-labelledby":lt.getLabelId(e.context),"aria-invalid":e.context.invalid,name:e.context.name,form:e.context.form,value:e.context.value,style:RS,onFocus(){const m=Sl();t({type:"CONTEXT.SET",context:{focused:!0,focusVisible:m}})},onBlur(){t({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(m){if(a){m.preventDefault();return}const g=m.currentTarget.checked;t({type:"CHECKED.SET",checked:g,isTrusted:!0})}})}}}var{not:Ad}=_A;function tC(e){const t=di(e);return gu({id:"checkbox",initial:"ready",context:{checked:!1,value:"on",disabled:!1,...t,fieldsetDisabled:!1,focusVisible:!1},watch:{disabled:"removeFocusIfNeeded",checked:"syncInputElement"},activities:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:Ad("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:Ad("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},computed:{isIndeterminate:r=>Ll(r.checked),isChecked:r=>Cd(r.checked),isDisabled:r=>!!r.disabled||r.fieldsetDisabled},states:{ready:{}}},{guards:{isTrusted:(r,n)=>!!n.isTrusted},activities:{trackPressEvent(r){if(!r.isDisabled)return HA({pointerNode:lt.getRootEl(r),keyboardNode:lt.getHiddenInputEl(r),isValidKey:n=>n.key===" ",onPress:()=>r.active=!1,onPressStart:()=>r.active=!0,onPressEnd:()=>r.active=!1})},trackFocusVisible(r){if(!r.isDisabled)return GS({root:lt.getRootNode(r)})},trackFormControlState(r,n,{send:a,initialContext:s}){return Rh(lt.getHiddenInputEl(r),{onFieldsetDisabledChange(u){r.fieldsetDisabled=u},onFormReset(){a({type:"CHECKED.SET",checked:!!s.checked})}})}},actions:{setContext(r,n){Object.assign(r,n.context)},syncInputElement(r){const n=lt.getHiddenInputEl(r);n&&(Mh(n,r.isChecked),n.indeterminate=r.isIndeterminate)},removeFocusIfNeeded(r){r.disabled&&r.focused&&(r.focused=!1,r.focusVisible=!1)},setChecked(r,n){Od.checked(r,n.checked)},toggleChecked(r){const n=Ll(r.checked)?!0:!r.checked;Od.checked(r,n)},dispatchChangeEvent(r){const n=lt.getHiddenInputEl(r);WA(n,{checked:Cd(r.checked)})}}})}function Ll(e){return e==="indeterminate"}function Cd(e){return Ll(e)?!1:!!e}var rC={change:e=>{var t;(t=e.onCheckedChange)==null||t.call(e,{checked:e.checked})}},Od={checked:(e,t)=>{$i(e.checked,t)||(e.checked=t,rC.change(e))}};gi()(["checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);function iC(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}var Ld={htmlFor:"for",className:"class",onDoubleClick:"onDblclick",onChange:"onInput",onFocus:"onFocusin",onBlur:"onFocusout",defaultValue:"value",defaultChecked:"checked"};function nC(e){return e in Ld?Ld[e]:e.startsWith("on")?`on${iC(e.substr(2))}`:e.toLowerCase()}var _u=JA(e=>{const t={};for(const r in e){const n=e[r];r==="children"?typeof n=="string"&&(t.innerHTML=n):t[nC(r)]=e[r]}return t});function aC(e,t){const{actions:r,context:n}=t??{},a=iu(e.state),s=Cl(e.state,()=>{a.value=oi(e.state)});return ru(()=>{s?.()}),xp(()=>{e.setOptions({actions:r})}),n&&$e(n,u=>{e.setContext(he(u))},{deep:!0}),a}function oC(e,t){const{state:r,context:n}=t??{},a=typeof e=="function"?e():e;return n&&a.setContext(he(n)),a._created(),wt(()=>{a.start(r),yp(()=>{a.stop()})}),a}function bu(e,t){const r=oC(e,t);return[aC(r,t),r.send,r]}function Uo(e={}){const{prefix:t}=e,r=dS();return t?`${t}-${r}`:r}const sC={key:0,class:"k-checkbox__help"},Pl=Ne({__name:"Checkbox",props:{modelValue:{type:[Boolean,Array]},value:{},label:{},disabled:{type:Boolean},required:{type:Boolean},help:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e;if(r.modelValue instanceof Array&&!r.value)throw new Error("props.value is required if props.modelValue is an array");const n=t,a=()=>{const{modelValue:m,value:g}=r;return m instanceof Array?m.some(v=>Ea(v)===Ea(g)):!!m};function s(m){const{modelValue:g,value:v}=r;if(!(g instanceof Array))return n("update:modelValue",typeof m=="boolean"?m:void 0);if(!(typeof m!="boolean"||!v))return m?n("update:modelValue",[...g,v]):n("update:modelValue",g.filter(_=>Ea(_)!==Ea(v)))}const u={id:Uo(),checked:a(),onCheckedChange:({checked:m})=>{if(a()!==m)return s(m)}},[c,d]=bu(tC(u),{context:oe(()=>({disabled:r.disabled,required:r.required}))}),h=oe(()=>eC(c.value,d,_u));return $e(()=>r.modelValue,()=>{const m=a();if(h.value.checked!==m)return h.value.setChecked(m)}),(m,g)=>(N(),H("label",je({class:"k-checkbox"},h.value.getRootProps()),[J("div",ai(Zi(h.value.getControlProps())),[h.value.checked?(N(),Te(he(Bt),{key:0,icon:"fa-pro-solid:check"})):ie("",!0)],16),J("span",ai(Zi(h.value.getLabelProps())),[J("span",{class:ft(["k-checkbox__label",{"k-checkbox__label-required":m.required}])},[de(m.$slots,"default",{},()=>[it(me(m.label),1)])],2),m.$slots.help||m.help?(N(),H("span",sC,[de(m.$slots,"help",{},()=>[it(me(m.help),1)])])):ie("",!0)],16),J("input",ai(Zi(h.value.getHiddenInputProps())),null,16)],16))}}),Bh=Symbol("form-control"),lC={class:"k-formcontrol"},uC=["for"],cC={key:1,class:"k-formcontrol__error"},dC={key:2,class:"k-formcontrol__help"},pC=Ne({__name:"FormControl",props:{label:{},help:{},error:{},required:{type:Boolean}},emits:["blur","focus"],setup(e,{emit:t}){const r=e,n=t,a=Uo({prefix:"k-formcontrol"}),s=oe(()=>`${a}_label`),u=oe(()=>`${a}_help`),c={onBlur:()=>n("blur"),onFocus:()=>n("focus")};return Qt(Bh,oe(()=>({...r,id:a,labelId:s.value,helpId:u.value,invalid:!!r.error,required:r.required,events:c}))),(d,h)=>(N(),H("div",lC,[d.$slots.label||d.label?(N(),H("label",{key:0,class:ft(["k-formcontrol__label",{"k-formcontrol__label-required":d.required}]),for:he(a)},[de(d.$slots,"label",{},()=>[it(me(d.label),1)])],10,uC)):ie("",!0),de(d.$slots,"default",{id:he(a)}),d.$slots.error||d.error?(N(),H("span",cC,[de(d.$slots,"error",{},()=>[it(me(d.error),1)])])):ie("",!0),d.$slots.help||d.help?(N(),H("span",dC,[de(d.$slots,"help",{},()=>[it(me(d.help),1)])])):ie("",!0)]))}});function Mr(e){return typeof e=="string"||e instanceof String}function Pd(e){var t;return typeof e=="object"&&e!=null&&(e==null||(t=e.constructor)==null?void 0:t.name)==="Object"}function jh(e,t){return Array.isArray(t)?jh(e,(r,n)=>t.includes(n)):Object.entries(e).reduce((r,n)=>{let[a,s]=n;return t(s,a)&&(r[a]=s),r},{})}const ae={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function hC(e){switch(e){case ae.LEFT:return ae.FORCE_LEFT;case ae.RIGHT:return ae.FORCE_RIGHT;default:return e}}function qs(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function po(e,t){if(t===e)return!0;const r=Array.isArray(t),n=Array.isArray(e);let a;if(r&&n){if(t.length!=e.length)return!1;for(a=0;a<t.length;a++)if(!po(t[a],e[a]))return!1;return!0}if(r!=n)return!1;if(t&&e&&typeof t=="object"&&typeof e=="object"){const s=t instanceof Date,u=e instanceof Date;if(s&&u)return t.getTime()==e.getTime();if(s!=u)return!1;const c=t instanceof RegExp,d=e instanceof RegExp;if(c&&d)return t.toString()==e.toString();if(c!=d)return!1;const h=Object.keys(t);for(a=0;a<h.length;a++)if(!Object.prototype.hasOwnProperty.call(e,h[a]))return!1;for(a=0;a<h.length;a++)if(!po(e[h[a]],t[h[a]]))return!1;return!0}else if(t&&e&&typeof t=="function"&&typeof e=="function")return t.toString()===e.toString();return!1}class fC{constructor(t){for(Object.assign(this,t);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?ae.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?ae.RIGHT:ae.LEFT}}function fe(e,t){return new fe.InputMask(e,t)}function zh(e){if(e==null)throw new Error("mask property should be defined");return e instanceof RegExp?fe.MaskedRegExp:Mr(e)?fe.MaskedPattern:e===Date?fe.MaskedDate:e===Number?fe.MaskedNumber:Array.isArray(e)||e===Array?fe.MaskedDynamic:fe.Masked&&e.prototype instanceof fe.Masked?e:fe.Masked&&e instanceof fe.Masked?e.constructor:e instanceof Function?fe.MaskedFunction:(console.warn("Mask not found for mask",e),fe.Masked)}function Gn(e){if(!e)throw new Error("Options in not defined");if(fe.Masked){if(e.prototype instanceof fe.Masked)return{mask:e};const{mask:t=void 0,...r}=e instanceof fe.Masked?{mask:e}:Pd(e)&&e.mask instanceof fe.Masked?e:{};if(t){const n=t.mask;return{...jh(t,(a,s)=>!s.startsWith("_")),mask:t.constructor,_mask:n,...r}}}return Pd(e)?{...e}:{mask:e}}function xr(e){if(fe.Masked&&e instanceof fe.Masked)return e;const t=Gn(e),r=zh(t.mask);if(!r)throw new Error("Masked class is not found for provided mask "+t.mask+", appropriate module needs to be imported manually before creating mask.");return t.mask===r&&delete t.mask,t._mask&&(t.mask=t._mask,delete t._mask),new r(t)}fe.createMask=xr;class yu{get selectionStart(){let t;try{t=this._unsafeSelectionStart}catch{}return t??this.value.length}get selectionEnd(){let t;try{t=this._unsafeSelectionEnd}catch{}return t??this.value.length}select(t,r){if(!(t==null||r==null||t===this.selectionStart&&r===this.selectionEnd))try{this._unsafeSelect(t,r)}catch{}}get isActive(){return!1}}fe.MaskElement=yu;const Id=90,mC=89;class Zo extends yu{constructor(t){super(),this.input=t,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var t,r,n;return(t=(r=(n=this.input).getRootNode)==null?void 0:r.call(n))!=null?t:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(t){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",t.drop),this.input.addEventListener("click",t.click),this.input.addEventListener("focus",t.focus),this.input.addEventListener("blur",t.commit),this._handlers=t}_onKeydown(t){if(this._handlers.redo&&(t.keyCode===Id&&t.shiftKey&&(t.metaKey||t.ctrlKey)||t.keyCode===mC&&t.ctrlKey))return t.preventDefault(),this._handlers.redo(t);if(this._handlers.undo&&t.keyCode===Id&&(t.metaKey||t.ctrlKey))return t.preventDefault(),this._handlers.undo(t);t.isComposing||this._handlers.selectionChange(t)}_onBeforeinput(t){if(t.inputType==="historyUndo"&&this._handlers.undo)return t.preventDefault(),this._handlers.undo(t);if(t.inputType==="historyRedo"&&this._handlers.redo)return t.preventDefault(),this._handlers.redo(t)}_onCompositionEnd(t){this._handlers.input(t)}_onInput(t){t.isComposing||this._handlers.input(t)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}}fe.HTMLMaskElement=Zo;class gC extends Zo{constructor(t){super(t),this.input=t}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(t,r){this.input.setSelectionRange(t,r)}get value(){return this.input.value}set value(t){this.input.value=t}}fe.HTMLMaskElement=Zo;class Vh extends Zo{get _unsafeSelectionStart(){const t=this.rootElement,r=t.getSelection&&t.getSelection(),n=r&&r.anchorOffset,a=r&&r.focusOffset;return a==null||n==null||n<a?n:a}get _unsafeSelectionEnd(){const t=this.rootElement,r=t.getSelection&&t.getSelection(),n=r&&r.anchorOffset,a=r&&r.focusOffset;return a==null||n==null||n>a?n:a}_unsafeSelect(t,r){if(!this.rootElement.createRange)return;const n=this.rootElement.createRange();n.setStart(this.input.firstChild||this.input,t),n.setEnd(this.input.lastChild||this.input,r);const a=this.rootElement,s=a.getSelection&&a.getSelection();s&&(s.removeAllRanges(),s.addRange(n))}get value(){return this.input.textContent||""}set value(t){this.input.textContent=t}}fe.HTMLContenteditableMaskElement=Vh;class Ho{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(t){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(t),this.states.length>Ho.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(t){return this.currentIndex=Math.min(Math.max(this.currentIndex+t,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}}Ho.MAX_LENGTH=100;class vC{constructor(t,r){this.el=t instanceof yu?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new Vh(t):new gC(t),this.masked=xr(r),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new Ho,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(t){var r;return t==null||((r=this.masked)==null?void 0:r.maskEquals(t))}get mask(){return this.masked.mask}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof fe.Masked)&&this.masked.constructor===zh(t)){this.masked.updateOptions({mask:t});return}const r=t instanceof fe.Masked?t:xr({mask:t});r.unmaskedValue=this.masked.unmaskedValue,this.masked=r}get value(){return this._value}set value(t){this.value!==t&&(this.masked.value=t,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(t){this.unmaskedValue!==t&&(this.masked.unmaskedValue=t,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(t){this.rawInputValue!==t&&(this.masked.rawInputValue=t,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(t){this.masked.typedValueEquals(t)||(this.masked.typedValue=t,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(t,r){const n=this._listeners[t];n&&n.forEach(a=>a(r))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(t){!this.el||!this.el.isActive||(this.el.select(t,t),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value,this._unmaskedValue=this.masked.unmaskedValue,this._rawInputValue=this.masked.rawInputValue}updateControl(t){const r=this.masked.unmaskedValue,n=this.masked.value,a=this.masked.rawInputValue,s=this.displayValue,u=this.unmaskedValue!==r||this.value!==n||this._rawInputValue!==a;this._unmaskedValue=r,this._value=n,this._rawInputValue=a,this.el.value!==s&&(this.el.value=s),t==="auto"?this.alignCursor():t!=null&&(this.cursorPos=t),u&&this._fireChangeEvents(),!this._historyChanging&&(u||this.history.isEmpty)&&this.history.push({unmaskedValue:r,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(t){const{mask:r,...n}=t,a=!this.maskEquals(r),s=this.masked.optionsIsChanged(n);a&&(this.mask=r),s&&this.masked.updateOptions(n),(a||s)&&this.updateControl()}updateCursor(t){t!=null&&(this.cursorPos=t,this._delayUpdateCursor(t))}_delayUpdateCursor(t){this._abortUpdateCursor(),this._changingCursorPos=t,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,ae.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(t,r){return this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(r),this}off(t,r){if(!this._listeners[t])return this;if(!r)return delete this._listeners[t],this;const n=this._listeners[t].indexOf(r);return n>=0&&this._listeners[t].splice(n,1),this}_onInput(t){this._inputEvent=t,this._abortUpdateCursor();const r=new fC({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),n=this.masked.rawInputValue,a=this.masked.splice(r.startChangePos,r.removed.length,r.inserted,r.removeDirection,{input:!0,raw:!0}).offset,s=n===this.masked.rawInputValue?r.removeDirection:ae.NONE;let u=this.masked.nearestInputPos(r.startChangePos+a,s);s!==ae.NONE&&(u=this.masked.nearestInputPos(u,ae.NONE)),this.updateControl(u),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(t){t.preventDefault(),t.stopPropagation()}_onFocus(t){this.alignCursorFriendly()}_onClick(t){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(t){t&&(this._historyChanging=!0,this.unmaskedValue=t.unmaskedValue,this.el.select(t.selection.start,t.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}fe.InputMask=vC;class ye{static normalize(t){return Array.isArray(t)?t:[t,new ye]}constructor(t){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},t)}aggregate(t){return this.inserted+=t.inserted,this.rawInserted+=t.rawInserted,this.tailShift+=t.tailShift,this.skip=this.skip||t.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(t){return this.inserted===t.inserted&&this.tailShift===t.tailShift&&this.rawInserted===t.rawInserted&&this.skip===t.skip}}fe.ChangeDetails=ye;class rr{constructor(t,r,n){t===void 0&&(t=""),r===void 0&&(r=0),this.value=t,this.from=r,this.stop=n}toString(){return this.value}extend(t){this.value+=String(t)}appendTo(t){return t.append(this.toString(),{tail:!0}).aggregate(t._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(t){Object.assign(this,t)}unshift(t){if(!this.value.length||t!=null&&this.from>=t)return"";const r=this.value[0];return this.value=this.value.slice(1),r}shift(){if(!this.value.length)return"";const t=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),t}}class pt{constructor(t){this._value="",this._update({...pt.DEFAULTS,...t}),this._initialized=!0}updateOptions(t){this.optionsIsChanged(t)&&this.withValueRefresh(this._update.bind(this,t))}_update(t){Object.assign(this,t)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value}reset(){this._value=""}get value(){return this._value}set value(t){this.resolve(t,{input:!0})}resolve(t,r){r===void 0&&(r={input:!0}),this.reset(),this.append(t,r,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(t){this.resolve(t,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(t){this.format?this.value=this.format(t,this):this.unmaskedValue=String(t)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(t){this.resolve(t,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(t,r){return t}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),Math.min(this.displayValue.length,r-t)}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),this.displayValue.slice(t,r)}extractTail(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),new rr(this.extractInput(t,r),t)}appendTail(t){return Mr(t)&&(t=new rr(String(t))),t.appendTo(this)}_appendCharRaw(t,r){return t?(this._value+=t,new ye({inserted:t,rawInserted:t})):new ye}_appendChar(t,r,n){r===void 0&&(r={});const a=this.state;let s;if([t,s]=this.doPrepareChar(t,r),t&&(s=s.aggregate(this._appendCharRaw(t,r)),!s.rawInserted&&this.autofix==="pad")){const u=this.state;this.state=a;let c=this.pad(r);const d=this._appendCharRaw(t,r);c=c.aggregate(d),d.rawInserted||c.equals(s)?s=c:this.state=u}if(s.inserted){let u,c=this.doValidate(r)!==!1;if(c&&n!=null){const d=this.state;if(this.overwrite===!0){u=n.state;for(let m=0;m<s.rawInserted.length;++m)n.unshift(this.displayValue.length-s.tailShift)}let h=this.appendTail(n);if(c=h.rawInserted.length===n.toString().length,!(c&&h.inserted)&&this.overwrite==="shift"){this.state=d,u=n.state;for(let m=0;m<s.rawInserted.length;++m)n.shift();h=this.appendTail(n),c=h.rawInserted.length===n.toString().length}c&&h.inserted&&(this.state=d)}c||(s=new ye,this.state=a,n&&u&&(n.state=u))}return s}_appendPlaceholder(){return new ye}_appendEager(){return new ye}append(t,r,n){if(!Mr(t))throw new Error("value should be string");const a=Mr(n)?new rr(String(n)):n;r!=null&&r.tail&&(r._beforeTailState=this.state);let s;[t,s]=this.doPrepare(t,r);for(let u=0;u<t.length;++u){const c=this._appendChar(t[u],r,a);if(!c.rawInserted&&!this.doSkipInvalid(t[u],r,a))break;s.aggregate(c)}return(this.eager===!0||this.eager==="append")&&r!=null&&r.input&&t&&s.aggregate(this._appendEager()),a!=null&&(s.tailShift+=this.appendTail(a).tailShift),s}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),this._value=this.displayValue.slice(0,t)+this.displayValue.slice(r),new ye}withValueRefresh(t){if(this._refreshing||!this._initialized)return t();this._refreshing=!0;const r=this.rawInputValue,n=this.value,a=t();return this.rawInputValue=r,this.value&&this.value!==n&&n.indexOf(this.value)===0&&(this.append(n.slice(this.displayValue.length),{},""),this.doCommit()),delete this._refreshing,a}runIsolated(t){if(this._isolated||!this._initialized)return t(this);this._isolated=!0;const r=this.state,n=t(this);return this.state=r,delete this._isolated,n}doSkipInvalid(t,r,n){return!!this.skipInvalid}doPrepare(t,r){return r===void 0&&(r={}),ye.normalize(this.prepare?this.prepare(t,this,r):t)}doPrepareChar(t,r){return r===void 0&&(r={}),ye.normalize(this.prepareChar?this.prepareChar(t,this,r):t)}doValidate(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}doCommit(){this.commit&&this.commit(this.value,this)}splice(t,r,n,a,s){n===void 0&&(n=""),a===void 0&&(a=ae.NONE),s===void 0&&(s={input:!0});const u=t+r,c=this.extractTail(u),d=this.eager===!0||this.eager==="remove";let h;d&&(a=hC(a),h=this.extractInput(0,u,{raw:!0}));let m=t;const g=new ye;if(a!==ae.NONE&&(m=this.nearestInputPos(t,r>1&&t!==0&&!d?ae.NONE:a),g.tailShift=m-t),g.aggregate(this.remove(m)),d&&a!==ae.NONE&&h===this.rawInputValue)if(a===ae.FORCE_LEFT){let v;for(;h===this.rawInputValue&&(v=this.displayValue.length);)g.aggregate(new ye({tailShift:-1})).aggregate(this.remove(v-1))}else a===ae.FORCE_RIGHT&&c.unshift();return g.aggregate(this.append(n,s,c))}maskEquals(t){return this.mask===t}optionsIsChanged(t){return!po(this,t)}typedValueEquals(t){const r=this.typedValue;return t===r||pt.EMPTY_VALUES.includes(t)&&pt.EMPTY_VALUES.includes(r)||(this.format?this.format(t,this)===this.format(this.typedValue,this):!1)}pad(t){return new ye}}pt.DEFAULTS={skipInvalid:!0};pt.EMPTY_VALUES=[void 0,null,""];fe.Masked=pt;class si{constructor(t,r){t===void 0&&(t=[]),r===void 0&&(r=0),this.chunks=t,this.from=r}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;t=Mr(t)?new rr(String(t)):t;const r=this.chunks[this.chunks.length-1],n=r&&(r.stop===t.stop||t.stop==null)&&t.from===r.from+r.toString().length;if(t instanceof rr)n?r.extend(t.toString()):this.chunks.push(t);else if(t instanceof si){if(t.stop==null){let a;for(;t.chunks.length&&t.chunks[0].stop==null;)a=t.chunks.shift(),a.from+=t.from,this.extend(a)}t.toString()&&(t.stop=t.blockIndex,this.chunks.push(t))}}appendTo(t){if(!(t instanceof fe.MaskedPattern))return new rr(this.toString()).appendTo(t);const r=new ye;for(let n=0;n<this.chunks.length;++n){const a=this.chunks[n],s=t._mapPosToBlock(t.displayValue.length),u=a.stop;let c;if(u!=null&&(!s||s.index<=u)&&((a instanceof si||t._stops.indexOf(u)>=0)&&r.aggregate(t._appendPlaceholder(u)),c=a instanceof si&&t._blocks[u]),c){const d=c.appendTail(a);r.aggregate(d);const h=a.toString().slice(d.rawInserted.length);h&&r.aggregate(t.append(h,{tail:!0}))}else r.aggregate(t.append(a.toString(),{tail:!0}))}return r}get state(){return{chunks:this.chunks.map(t=>t.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){const{chunks:r,...n}=t;Object.assign(this,n),this.chunks=r.map(a=>{const s="chunks"in a?new si:new rr;return s.state=a,s})}unshift(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";const r=t!=null?t-this.from:t;let n=0;for(;n<this.chunks.length;){const a=this.chunks[n],s=a.unshift(r);if(a.toString()){if(!s)break;++n}else this.chunks.splice(n,1);if(s)return s}return""}shift(){if(!this.chunks.length)return"";let t=this.chunks.length-1;for(;0<=t;){const r=this.chunks[t],n=r.shift();if(r.toString()){if(!n)break;--t}else this.chunks.splice(t,1);if(n)return n}return""}}class kC{constructor(t,r){this.masked=t,this._log=[];const{offset:n,index:a}=t._mapPosToBlock(r)||(r<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=n,this.index=a,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(t){Object.assign(this,t)}pushState(){this._log.push(this.state)}popState(){const t=this._log.pop();return t&&(this.state=t),t}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(t){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((r=this.block)==null?void 0:r.displayValue.length)||0){var r;if(t())return this.ok=!0}return this.ok=!1}_pushRight(t){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(t())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,ae.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,ae.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,ae.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,ae.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,ae.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,ae.NONE),!0})}}class Uh{constructor(t){Object.assign(this,t),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),this._value=this._value.slice(0,t)+this._value.slice(r),this._value||(this._isRawInput=!1),new ye}nearestInputPos(t,r){r===void 0&&(r=ae.NONE);const n=0,a=this._value.length;switch(r){case ae.LEFT:case ae.FORCE_LEFT:return n;case ae.NONE:case ae.RIGHT:case ae.FORCE_RIGHT:default:return a}}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),this._isRawInput?r-t:0}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),n===void 0&&(n={}),n.raw&&this._isRawInput&&this._value.slice(t,r)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(t,r){if(r===void 0&&(r={}),this.isFilled)return new ye;const n=this.eager===!0||this.eager==="append",a=this.char===t&&(this.isUnmasking||r.input||r.raw)&&(!r.raw||!n)&&!r.tail,s=new ye({inserted:this.char,rawInserted:a?this.char:""});return this._value=this.char,this._isRawInput=a&&(r.raw||r.input),s}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const t=new ye;return this.isFilled||(this._value=t.inserted=this.char),t}extractTail(){return new rr("")}appendTail(t){return Mr(t)&&(t=new rr(String(t))),t.appendTo(this)}append(t,r,n){const a=this._appendChar(t[0],r);return n!=null&&(a.tailShift+=this.appendTail(n).tailShift),a}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value,this._isRawInput=!!t._rawInputValue}pad(t){return this._appendPlaceholder()}}class ho{constructor(t){const{parent:r,isOptional:n,placeholderChar:a,displayChar:s,lazy:u,eager:c,...d}=t;this.masked=xr(d),Object.assign(this,{parent:r,isOptional:n,placeholderChar:a,displayChar:s,lazy:u,eager:c})}reset(){this.isFilled=!1,this.masked.reset()}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),t===0&&r>=1?(this.isFilled=!1,this.masked.remove(t,r)):new ye}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(t,r){if(r===void 0&&(r={}),this.isFilled)return new ye;const n=this.masked.state;let a=this.masked._appendChar(t,this.currentMaskFlags(r));return a.inserted&&this.doValidate(r)===!1&&(a=new ye,this.masked.state=n),!a.inserted&&!this.isOptional&&!this.lazy&&!r.input&&(a.inserted=this.placeholderChar),a.skip=!a.inserted&&!this.isOptional,this.isFilled=!!a.inserted,a}append(t,r,n){return this.masked.append(t,this.currentMaskFlags(r),n)}_appendPlaceholder(){return this.isFilled||this.isOptional?new ye:(this.isFilled=!0,new ye({inserted:this.placeholderChar}))}_appendEager(){return new ye}extractTail(t,r){return this.masked.extractTail(t,r)}appendTail(t){return this.masked.appendTail(t)}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),this.masked.extractInput(t,r,n)}nearestInputPos(t,r){r===void 0&&(r=ae.NONE);const n=0,a=this.value.length,s=Math.min(Math.max(t,n),a);switch(r){case ae.LEFT:case ae.FORCE_LEFT:return this.isComplete?s:n;case ae.RIGHT:case ae.FORCE_RIGHT:return this.isComplete?s:a;case ae.NONE:default:return s}}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),this.value.slice(t,r).length}doValidate(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(t){this.masked.state=t.masked,this.isFilled=t.isFilled}currentMaskFlags(t){var r;return{...t,_beforeTailState:(t==null||(r=t._beforeTailState)==null?void 0:r.masked)||t?._beforeTailState}}pad(t){return new ye}}ho.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class _C extends pt{updateOptions(t){super.updateOptions(t)}_update(t){const r=t.mask;r&&(t.validate=n=>n.search(r)>=0),super._update(t)}}fe.MaskedRegExp=_C;class ht extends pt{constructor(t){super({...ht.DEFAULTS,...t,definitions:Object.assign({},ho.DEFAULT_DEFINITIONS,t?.definitions)})}updateOptions(t){super.updateOptions(t)}_update(t){t.definitions=Object.assign({},this.definitions,t.definitions),super._update(t),this._rebuildMask()}_rebuildMask(){const t=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const r=this.mask;if(!r||!t)return;let n=!1,a=!1;for(let s=0;s<r.length;++s){if(this.blocks){const h=r.slice(s),m=Object.keys(this.blocks).filter(v=>h.indexOf(v)===0);m.sort((v,_)=>_.length-v.length);const g=m[0];if(g){const{expose:v,repeat:_,...b}=Gn(this.blocks[g]),y={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...b,repeat:_,parent:this},x=_!=null?new fe.RepeatBlock(y):xr(y);x&&(this._blocks.push(x),v&&(this.exposeBlock=x),this._maskedBlocks[g]||(this._maskedBlocks[g]=[]),this._maskedBlocks[g].push(this._blocks.length-1)),s+=g.length-1;continue}}let u=r[s],c=u in t;if(u===ht.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(u==="{"||u==="}"){n=!n;continue}if(u==="["||u==="]"){a=!a;continue}if(u===ht.ESCAPE_CHAR){if(++s,u=r[s],!u)break;c=!1}const d=c?new ho({isOptional:a,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...Gn(t[u]),parent:this}):new Uh({char:u,eager:this.eager,isUnmasking:n});this._blocks.push(d)}}get state(){return{...super.state,_blocks:this._blocks.map(t=>t.state)}}set state(t){if(!t){this.reset();return}const{_blocks:r,...n}=t;this._blocks.forEach((a,s)=>a.state=r[s]),super.state=n}reset(){super.reset(),this._blocks.forEach(t=>t.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(t=>t.isComplete)}get isFilled(){return this._blocks.every(t=>t.isFilled)}get isFixed(){return this._blocks.every(t=>t.isFixed)}get isOptional(){return this._blocks.every(t=>t.isOptional)}doCommit(){this._blocks.forEach(t=>t.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((t,r)=>t+=r.unmaskedValue,"")}set unmaskedValue(t){if(this.exposeBlock){const r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=t,this.appendTail(r),this.doCommit()}else super.unmaskedValue=t}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((t,r)=>t+=r.value,"")}set value(t){if(this.exposeBlock){const r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=t,this.appendTail(r),this.doCommit()}else super.value=t}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(t){if(this.exposeBlock){const r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=t,this.appendTail(r),this.doCommit()}else super.typedValue=t}get displayValue(){return this._blocks.reduce((t,r)=>t+=r.displayValue,"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;const r=new ye;let n=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(n==null)return r;this._blocks[n].isFilled&&++n;for(let a=n;a<this._blocks.length;++a){const s=this._blocks[a]._appendEager();if(!s.inserted)break;r.aggregate(s)}return r}_appendCharRaw(t,r){r===void 0&&(r={});const n=this._mapPosToBlock(this.displayValue.length),a=new ye;if(!n)return a;for(let u=n.index,c;c=this._blocks[u];++u){var s;const d=c._appendChar(t,{...r,_beforeTailState:(s=r._beforeTailState)==null||(s=s._blocks)==null?void 0:s[u]});if(a.aggregate(d),d.consumed)break}return a}extractTail(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);const n=new si;return t===r||this._forEachBlocksInRange(t,r,(a,s,u,c)=>{const d=a.extractTail(u,c);d.stop=this._findStopBefore(s),d.from=this._blockStartPos(s),d instanceof si&&(d.blockIndex=s),n.extend(d)}),n}extractInput(t,r,n){if(t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),n===void 0&&(n={}),t===r)return"";let a="";return this._forEachBlocksInRange(t,r,(s,u,c,d)=>{a+=s.extractInput(c,d,n)}),a}_findStopBefore(t){let r;for(let n=0;n<this._stops.length;++n){const a=this._stops[n];if(a<=t)r=a;else break}return r}_appendPlaceholder(t){const r=new ye;if(this.lazy&&t==null)return r;const n=this._mapPosToBlock(this.displayValue.length);if(!n)return r;const a=n.index,s=t??this._blocks.length;return this._blocks.slice(a,s).forEach(u=>{if(!u.lazy||t!=null){var c;r.aggregate(u._appendPlaceholder((c=u._blocks)==null?void 0:c.length))}}),r}_mapPosToBlock(t){let r="";for(let n=0;n<this._blocks.length;++n){const a=this._blocks[n],s=r.length;if(r+=a.displayValue,t<=r.length)return{index:n,offset:t-s}}}_blockStartPos(t){return this._blocks.slice(0,t).reduce((r,n)=>r+=n.displayValue.length,0)}_forEachBlocksInRange(t,r,n){r===void 0&&(r=this.displayValue.length);const a=this._mapPosToBlock(t);if(a){const s=this._mapPosToBlock(r),u=s&&a.index===s.index,c=a.offset,d=s&&u?s.offset:this._blocks[a.index].displayValue.length;if(n(this._blocks[a.index],a.index,c,d),s&&!u){for(let h=a.index+1;h<s.index;++h)n(this._blocks[h],h,0,this._blocks[h].displayValue.length);n(this._blocks[s.index],s.index,0,s.offset)}}}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);const n=super.remove(t,r);return this._forEachBlocksInRange(t,r,(a,s,u,c)=>{n.aggregate(a.remove(u,c))}),n}nearestInputPos(t,r){if(r===void 0&&(r=ae.NONE),!this._blocks.length)return 0;const n=new kC(this,t);if(r===ae.NONE)return n.pushRightBeforeInput()||(n.popState(),n.pushLeftBeforeInput())?n.pos:this.displayValue.length;if(r===ae.LEFT||r===ae.FORCE_LEFT){if(r===ae.LEFT){if(n.pushRightBeforeFilled(),n.ok&&n.pos===t)return t;n.popState()}if(n.pushLeftBeforeInput(),n.pushLeftBeforeRequired(),n.pushLeftBeforeFilled(),r===ae.LEFT){if(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.ok&&n.pos<=t||(n.popState(),n.ok&&n.pos<=t))return n.pos;n.popState()}return n.ok?n.pos:r===ae.FORCE_LEFT?0:(n.popState(),n.ok||(n.popState(),n.ok)?n.pos:0)}return r===ae.RIGHT||r===ae.FORCE_RIGHT?(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.pushRightBeforeFilled()?n.pos:r===ae.FORCE_RIGHT?this.displayValue.length:(n.popState(),n.ok||(n.popState(),n.ok)?n.pos:this.nearestInputPos(t,ae.LEFT))):t}totalInputPositions(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);let n=0;return this._forEachBlocksInRange(t,r,(a,s,u,c)=>{n+=a.totalInputPositions(u,c)}),n}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){const r=this._maskedBlocks[t];return r?r.map(n=>this._blocks[n]):[]}pad(t){const r=new ye;return this._forEachBlocksInRange(0,this.displayValue.length,n=>r.aggregate(n.pad(t))),r}}ht.DEFAULTS={...pt.DEFAULTS,lazy:!0,placeholderChar:"_"};ht.STOP_CHAR="`";ht.ESCAPE_CHAR="\\";ht.InputDefinition=ho;ht.FixedDefinition=Uh;fe.MaskedPattern=ht;class Ja extends ht{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){const{to:r=this.to||0,from:n=this.from||0,maxLength:a=this.maxLength||0,autofix:s=this.autofix,...u}=t;this.to=r,this.from=n,this.maxLength=Math.max(String(r).length,a),this.autofix=s;const c=String(this.from).padStart(this.maxLength,"0"),d=String(this.to).padStart(this.maxLength,"0");let h=0;for(;h<d.length&&d[h]===c[h];)++h;u.mask=d.slice(0,h).replace(/0/g,"\\0")+"0".repeat(this.maxLength-h),super._update(u)}get isComplete(){return super.isComplete&&!!this.value}boundaries(t){let r="",n="";const[,a,s]=t.match(/^(\D*)(\d*)(\D*)/)||[];return s&&(r="0".repeat(a.length)+s,n="9".repeat(a.length)+s),r=r.padEnd(this.maxLength,"0"),n=n.padEnd(this.maxLength,"9"),[r,n]}doPrepareChar(t,r){r===void 0&&(r={});let n;return[t,n]=super.doPrepareChar(t.replace(/\D/g,""),r),t||(n.skip=!this.isComplete),[t,n]}_appendCharRaw(t,r){if(r===void 0&&(r={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(t,r);const n=String(this.from).padStart(this.maxLength,"0"),a=String(this.to).padStart(this.maxLength,"0"),[s,u]=this.boundaries(this.value+t);return Number(u)<this.from?super._appendCharRaw(n[this.value.length],r):Number(s)>this.to?!r.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength?super._appendCharRaw(n[this.value.length],r).aggregate(this._appendCharRaw(t,r)):super._appendCharRaw(a[this.value.length],r):super._appendCharRaw(t,r)}doValidate(t){const r=this.value;if(r.search(/[^0]/)===-1&&r.length<=this._matchFrom)return!0;const[n,a]=this.boundaries(r);return this.from<=Number(a)&&Number(n)<=this.to&&super.doValidate(t)}pad(t){const r=new ye;if(this.value.length===this.maxLength)return r;const n=this.value,a=this.maxLength-this.value.length;if(a){this.reset();for(let s=0;s<a;++s)r.aggregate(super._appendCharRaw("0",t));n.split("").forEach(s=>this._appendCharRaw(s))}return r}}fe.MaskedRange=Ja;const bC="d{.}`m{.}`Y";class kr extends ht{static extractPatternOptions(t){const{mask:r,pattern:n,...a}=t;return{...a,mask:Mr(r)?r:n}}constructor(t){super(kr.extractPatternOptions({...kr.DEFAULTS,...t}))}updateOptions(t){super.updateOptions(t)}_update(t){const{mask:r,pattern:n,blocks:a,...s}={...kr.DEFAULTS,...t},u=Object.assign({},kr.GET_DEFAULT_BLOCKS());t.min&&(u.Y.from=t.min.getFullYear()),t.max&&(u.Y.to=t.max.getFullYear()),t.min&&t.max&&u.Y.from===u.Y.to&&(u.m.from=t.min.getMonth()+1,u.m.to=t.max.getMonth()+1,u.m.from===u.m.to&&(u.d.from=t.min.getDate(),u.d.to=t.max.getDate())),Object.assign(u,this.blocks,a),super._update({...s,mask:Mr(r)?r:n,blocks:u})}doValidate(t){const r=this.date;return super.doValidate(t)&&(!this.isComplete||this.isDateExist(this.value)&&r!=null&&(this.min==null||this.min<=r)&&(this.max==null||r<=this.max))}isDateExist(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}get date(){return this.typedValue}set date(t){this.typedValue=t}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(t){super.typedValue=t}maskEquals(t){return t===Date||super.maskEquals(t)}optionsIsChanged(t){return super.optionsIsChanged(kr.extractPatternOptions(t))}}kr.GET_DEFAULT_BLOCKS=()=>({d:{mask:Ja,from:1,to:31,maxLength:2},m:{mask:Ja,from:1,to:12,maxLength:2},Y:{mask:Ja,from:1900,to:9999}});kr.DEFAULTS={...ht.DEFAULTS,mask:Date,pattern:bC,format:(e,t)=>{if(!e)return"";const r=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),a=e.getFullYear();return[r,n,a].join(".")},parse:(e,t)=>{const[r,n,a]=e.split(".").map(Number);return new Date(a,n-1,r)}};fe.MaskedDate=kr;class qo extends pt{constructor(t){super({...qo.DEFAULTS,...t}),this.currentMask=void 0}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t),"mask"in t&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(t.mask)?t.mask.map(r=>{const{expose:n,...a}=Gn(r),s=xr({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...a});return n&&(this.exposeMask=s),s}):[])}_appendCharRaw(t,r){r===void 0&&(r={});const n=this._applyDispatch(t,r);return this.currentMask&&n.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(r))),n}_applyDispatch(t,r,n){t===void 0&&(t=""),r===void 0&&(r={}),n===void 0&&(n="");const a=r.tail&&r._beforeTailState!=null?r._beforeTailState._value:this.value,s=this.rawInputValue,u=r.tail&&r._beforeTailState!=null?r._beforeTailState._rawInputValue:s,c=s.slice(u.length),d=this.currentMask,h=new ye,m=d?.state;return this.currentMask=this.doDispatch(t,{...r},n),this.currentMask&&(this.currentMask!==d?(this.currentMask.reset(),u&&(this.currentMask.append(u,{raw:!0}),h.tailShift=this.currentMask.value.length-a.length),c&&(h.tailShift+=this.currentMask.append(c,{raw:!0,tail:!0}).tailShift)):m&&(this.currentMask.state=m)),h}_appendPlaceholder(){const t=this._applyDispatch();return this.currentMask&&t.aggregate(this.currentMask._appendPlaceholder()),t}_appendEager(){const t=this._applyDispatch();return this.currentMask&&t.aggregate(this.currentMask._appendEager()),t}appendTail(t){const r=new ye;return t&&r.aggregate(this._applyDispatch("",{},t)),r.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var r,n;return{...t,_beforeTailState:((r=t._beforeTailState)==null?void 0:r.currentMaskRef)===this.currentMask&&((n=t._beforeTailState)==null?void 0:n.currentMask)||t._beforeTailState}}doDispatch(t,r,n){return r===void 0&&(r={}),n===void 0&&(n=""),this.dispatch(t,this,r,n)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t,r){r===void 0&&(r={});let[n,a]=super.doPrepare(t,r);if(this.currentMask){let s;[n,s]=super.doPrepare(n,this.currentMaskFlags(r)),a=a.aggregate(s)}return[n,a]}doPrepareChar(t,r){r===void 0&&(r={});let[n,a]=super.doPrepareChar(t,r);if(this.currentMask){let s;[n,s]=super.doPrepareChar(n,this.currentMaskFlags(r)),a=a.aggregate(s)}return[n,a]}reset(){var t;(t=this.currentMask)==null||t.reset(),this.compiledMasks.forEach(r=>r.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(t){this.exposeMask?(this.exposeMask.value=t,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=t}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){this.exposeMask?(this.exposeMask.unmaskedValue=t,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=t}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(t){if(this.exposeMask){this.exposeMask.typedValue=t,this.currentMask=this.exposeMask,this._applyDispatch();return}let r=String(t);this.currentMask&&(this.currentMask.typedValue=t,r=this.currentMask.unmaskedValue),this.unmaskedValue=r}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return!!((t=this.currentMask)!=null&&t.isComplete)}get isFilled(){var t;return!!((t=this.currentMask)!=null&&t.isFilled)}remove(t,r){const n=new ye;return this.currentMask&&n.aggregate(this.currentMask.remove(t,r)).aggregate(this._applyDispatch()),n}get state(){var t;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(r=>r.state),currentMaskRef:this.currentMask,currentMask:(t=this.currentMask)==null?void 0:t.state}}set state(t){const{compiledMasks:r,currentMaskRef:n,currentMask:a,...s}=t;r&&this.compiledMasks.forEach((u,c)=>u.state=r[c]),n!=null&&(this.currentMask=n,this.currentMask.state=a),super.state=s}extractInput(t,r,n){return this.currentMask?this.currentMask.extractInput(t,r,n):""}extractTail(t,r){return this.currentMask?this.currentMask.extractTail(t,r):super.extractTail(t,r)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(t,r){return this.currentMask?this.currentMask.nearestInputPos(t,r):super.nearestInputPos(t,r)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(t){this._overwrite=t}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(t){this._eager=t}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(t){this._skipInvalid=t}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(t){this._autofix=t}maskEquals(t){return Array.isArray(t)?this.compiledMasks.every((r,n)=>{if(!t[n])return;const{mask:a,...s}=t[n];return po(r,s)&&r.maskEquals(a)}):super.maskEquals(t)}typedValueEquals(t){var r;return!!((r=this.currentMask)!=null&&r.typedValueEquals(t))}}qo.DEFAULTS={...pt.DEFAULTS,dispatch:(e,t,r,n)=>{if(!t.compiledMasks.length)return;const a=t.rawInputValue,s=t.compiledMasks.map((u,c)=>{const d=t.currentMask===u,h=d?u.displayValue.length:u.nearestInputPos(u.displayValue.length,ae.FORCE_LEFT);return u.rawInputValue!==a?(u.reset(),u.append(a,{raw:!0})):d||u.remove(h),u.append(e,t.currentMaskFlags(r)),u.appendTail(n),{index:c,weight:u.rawInputValue.length,totalInputPositions:u.totalInputPositions(0,Math.max(h,u.nearestInputPos(u.displayValue.length,ae.FORCE_LEFT)))}});return s.sort((u,c)=>c.weight-u.weight||c.totalInputPositions-u.totalInputPositions),t.compiledMasks[s[0].index]}};fe.MaskedDynamic=qo;class $o extends ht{constructor(t){super({...$o.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){const{enum:r,...n}=t;if(r){const a=r.map(c=>c.length),s=Math.min(...a),u=Math.max(...a)-s;n.mask="*".repeat(s),u&&(n.mask+="["+"*".repeat(u)+"]"),this.enum=r}super._update(n)}_appendCharRaw(t,r){r===void 0&&(r={});const n=Math.min(this.nearestInputPos(0,ae.FORCE_RIGHT),this.value.length),a=this.enum.filter(s=>this.matchValue(s,this.unmaskedValue+t,n));if(a.length){a.length===1&&this._forEachBlocksInRange(0,this.value.length,(u,c)=>{const d=a[0][c];c>=this.value.length||d===u.value||(u.reset(),u._appendChar(d,r))});const s=super._appendCharRaw(a[0][this.value.length],r);return a.length===1&&a[0].slice(this.unmaskedValue.length).split("").forEach(u=>s.aggregate(super._appendCharRaw(u))),s}return new ye({skip:!this.isComplete})}extractTail(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),new rr("",t)}remove(t,r){if(t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),t===r)return new ye;const n=Math.min(super.nearestInputPos(0,ae.FORCE_RIGHT),this.value.length);let a;for(a=t;a>=0&&!(this.enum.filter(u=>this.matchValue(u,this.value.slice(n,a),n)).length>1);--a);const s=super.remove(a,r);return s.tailShift+=a-t,s}get isComplete(){return this.enum.indexOf(this.value)>=0}}$o.DEFAULTS={...ht.DEFAULTS,matchValue:(e,t,r)=>e.indexOf(t,r)===r};fe.MaskedEnum=$o;class yC extends pt{updateOptions(t){super.updateOptions(t)}_update(t){super._update({...t,validate:t.mask})}}fe.MaskedFunction=yC;var Zh;class At extends pt{constructor(t){super({...At.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t),this._updateRegExps()}_updateRegExps(){const t="^"+(this.allowNegative?"[+|\\-]?":""),r="\\d*",n=(this.scale?"("+qs(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+r+n),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(qs).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(qs(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){const r=t.split(this.radix);return r[0]=r[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),r.join(this.radix)}doPrepareChar(t,r){r===void 0&&(r={});const[n,a]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(r.input&&r.raw||!r.input&&!r.raw)?t.replace(this._mapToRadixRegExp,this.radix):t),r);return t&&!n&&(a.skip=!0),n&&!this.allowPositive&&!this.value&&n!=="-"&&a.aggregate(this._appendChar("-")),[n,a]}_separatorsCount(t,r){r===void 0&&(r=!1);let n=0;for(let a=0;a<t;++a)this._value.indexOf(this.thousandsSeparator,a)===a&&(++n,r&&(t+=this.thousandsSeparator.length));return n}_separatorsCountFromSlice(t){return t===void 0&&(t=this._value),this._separatorsCount(this._removeThousandsSeparators(t).length,!0)}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),[t,r]=this._adjustRangeWithSeparators(t,r),this._removeThousandsSeparators(super.extractInput(t,r,n))}_appendCharRaw(t,r){r===void 0&&(r={});const n=r.tail&&r._beforeTailState?r._beforeTailState._value:this._value,a=this._separatorsCountFromSlice(n);this._value=this._removeThousandsSeparators(this.value);const s=this._value;this._value+=t;const u=this.number;let c=!isNaN(u),d=!1;if(c){let v;this.min!=null&&this.min<0&&this.number<this.min&&(v=this.min),this.max!=null&&this.max>0&&this.number>this.max&&(v=this.max),v!=null&&(this.autofix?(this._value=this.format(v,this).replace(At.UNMASKED_RADIX,this.radix),d||(d=s===this._value&&!r.tail)):c=!1),c&&(c=!!this._value.match(this._numberRegExp))}let h;c?h=new ye({inserted:this._value.slice(s.length),rawInserted:d?"":t,skip:d}):(this._value=s,h=new ye),this._value=this._insertThousandsSeparators(this._value);const m=r.tail&&r._beforeTailState?r._beforeTailState._value:this._value,g=this._separatorsCountFromSlice(m);return h.tailShift+=(g-a)*this.thousandsSeparator.length,h}_findSeparatorAround(t){if(this.thousandsSeparator){const r=t-this.thousandsSeparator.length+1,n=this.value.indexOf(this.thousandsSeparator,r);if(n<=t)return n}return-1}_adjustRangeWithSeparators(t,r){const n=this._findSeparatorAround(t);n>=0&&(t=n);const a=this._findSeparatorAround(r);return a>=0&&(r=a+this.thousandsSeparator.length),[t,r]}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),[t,r]=this._adjustRangeWithSeparators(t,r);const n=this.value.slice(0,t),a=this.value.slice(r),s=this._separatorsCount(n.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(n+a));const u=this._separatorsCountFromSlice(n);return new ye({tailShift:(u-s)*this.thousandsSeparator.length})}nearestInputPos(t,r){if(!this.thousandsSeparator)return t;switch(r){case ae.NONE:case ae.LEFT:case ae.FORCE_LEFT:{const n=this._findSeparatorAround(t-1);if(n>=0){const a=n+this.thousandsSeparator.length;if(t<a||this.value.length<=a||r===ae.FORCE_LEFT)return n}break}case ae.RIGHT:case ae.FORCE_RIGHT:{const n=this._findSeparatorAround(t);if(n>=0)return n+this.thousandsSeparator.length}}return t}doCommit(){if(this.value){const t=this.number;let r=t;this.min!=null&&(r=Math.max(r,this.min)),this.max!=null&&(r=Math.min(r,this.max)),r!==t&&(this.unmaskedValue=this.format(r,this));let n=this.value;this.normalizeZeros&&(n=this._normalizeZeros(n)),this.padFractionalZeros&&this.scale>0&&(n=this._padFractionalZeros(n)),this._value=n}super.doCommit()}_normalizeZeros(t){const r=this._removeThousandsSeparators(t).split(this.radix);return r[0]=r[0].replace(/^(\D*)(0*)(\d*)/,(n,a,s,u)=>a+u),t.length&&!/\d$/.test(r[0])&&(r[0]=r[0]+"0"),r.length>1&&(r[1]=r[1].replace(/0*$/,""),r[1].length||(r.length=1)),this._insertThousandsSeparators(r.join(this.radix))}_padFractionalZeros(t){if(!t)return t;const r=t.split(this.radix);return r.length<2&&r.push(""),r[1]=r[1].padEnd(this.scale,"0"),r.join(this.radix)}doSkipInvalid(t,r,n){r===void 0&&(r={});const a=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===At.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,r,n)&&!a}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,At.UNMASKED_RADIX)}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(t){this.rawInputValue=this.format(t,this).replace(At.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(t){this.typedValue=t}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(t){return(super.typedValueEquals(t)||At.EMPTY_VALUES.includes(t)&&At.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value==="")}}Zh=At;At.UNMASKED_RADIX=".";At.EMPTY_VALUES=[...pt.EMPTY_VALUES,0];At.DEFAULTS={...pt.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[Zh.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>e.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})};fe.MaskedNumber=At;const Il={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function Hh(e,t,r){t===void 0&&(t=Il.MASKED),r===void 0&&(r=Il.MASKED);const n=xr(e);return a=>n.runIsolated(s=>(s[t]=a,s[r]))}function xC(e,t,r,n){return Hh(t,r,n)(e)}fe.PIPE_TYPE=Il;fe.createPipe=Hh;fe.pipe=xC;class wC extends ht{get repeatFrom(){var t;return(t=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)!=null?t:0}get repeatTo(){var t;return(t=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?t:1/0}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){var r,n,a;const{repeat:s,...u}=Gn(t);this._blockOpts=Object.assign({},this._blockOpts,u);const c=xr(this._blockOpts);this.repeat=(r=(n=s??c.repeat)!=null?n:this.repeat)!=null?r:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&&((a=this._blocks)==null?void 0:a.length)||0,this.repeatFrom)),blocks:{m:c},eager:c.eager,overwrite:c.overwrite,skipInvalid:c.skipInvalid,lazy:c.lazy,placeholderChar:c.placeholderChar,displayChar:c.displayChar})}_allocateBlock(t){if(t<this._blocks.length)return this._blocks[t];if(this.repeatTo===1/0||this._blocks.length<this.repeatTo)return this._blocks.push(xr(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]}_appendCharRaw(t,r){r===void 0&&(r={});const n=new ye;for(let d=(a=(s=this._mapPosToBlock(this.displayValue.length))==null?void 0:s.index)!=null?a:Math.max(this._blocks.length-1,0),h,m;h=(u=this._blocks[d])!=null?u:m=!m&&this._allocateBlock(d);++d){var a,s,u,c;const g=h._appendChar(t,{...r,_beforeTailState:(c=r._beforeTailState)==null||(c=c._blocks)==null?void 0:c[d]});if(g.skip&&m){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(n.aggregate(g),g.consumed)break}return n}_trimEmptyTail(t,r){var n,a;t===void 0&&(t=0);const s=Math.max(((n=this._mapPosToBlock(t))==null?void 0:n.index)||0,this.repeatFrom,0);let u;r!=null&&(u=(a=this._mapPosToBlock(r))==null?void 0:a.index),u==null&&(u=this._blocks.length-1);let c=0;for(let d=u;s<=d&&!this._blocks[d].unmaskedValue;--d,++c);c&&(this._blocks.splice(u-c+1,c),this.mask=this.mask.slice(c))}reset(){super.reset(),this._trimEmptyTail()}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);const n=super.remove(t,r);return this._trimEmptyTail(t,r),n}totalInputPositions(t,r){return t===void 0&&(t=0),r==null&&this.repeatTo===1/0?1/0:super.totalInputPositions(t,r)}get state(){return super.state}set state(t){this._blocks.length=t._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=t}}fe.RepeatBlock=wC;try{globalThis.IMask=fe}catch{}function EC(e,t){let{emit:r,onAccept:n,onComplete:a,defaultValue:s,defaultUnmaskedValue:u,defaultTypedValue:c}=t===void 0?{}:t;const d=bg(e)?e:$(e),h=$(),m=$(),g=$(""),v=$(""),_=$();let b,y=g.value,x=v.value,A=_.value;function T(){A=_.value=m.value.typedValue,x=v.value=m.value.unmaskedValue,y=g.value=m.value.value}function S(j){T(),r&&(r("accept",g.value,j),r("accept:masked",g.value,j),r("accept:typed",_.value,j),r("accept:unmasked",v.value,j)),n?.(j)}function M(j){r&&(r("complete",m.value.value,j),r("complete:masked",m.value.value,j),r("complete:typed",m.value.typedValue,j),r("complete:unmasked",m.value.unmaskedValue,j)),a?.(j)}const O=()=>{!m.value||v.value===void 0||(x!==v.value&&(m.value.unmaskedValue=v.value,m.value.unmaskedValue!==v.value&&S()),x=void 0)};$e(v,O);const V=()=>{!m.value||g.value===void 0||(y!==g.value&&(m.value.value=g.value,m.value.value!==g.value&&S()),y=void 0)};$e(g,V);const W=()=>{!m.value||_.value===void 0||(A!==_.value&&(m.value.typedValue=_.value,m.value.masked.typedValueEquals(_.value)||S()),A=void 0)};$e(_,W);function q(){b=h.value;const j=d.value;!b||!(j!=null&&j.mask)||(m.value=fe(b,j),s!==void 0&&(g.value=s),u!==void 0&&(v.value=u),c!==void 0&&(_.value=c),O(),V(),W(),T(),m.value.on("accept",S).on("complete",M))}function B(){var j;(j=m.value)==null||j.destroy(),m.value=void 0}return wt(q),ru(B),$e([h,d],()=>{const j=h.value,P=d.value;(!(P!=null&&P.mask)||j!==b)&&B(),j&&(m.value?m.value.updateOptions(P):q())}),{el:h,mask:yg(m),masked:g,unmasked:v,typed:_}}const TC={key:0,class:"k-input__prefix"},SC=["id","aria-labelledby","aria-describedby","required","type"],AC={key:1,class:"k-input__suffix"},Dd=Ne({__name:"Input",props:{invalid:{type:Boolean},id:{},modelValue:{},prefix:{},suffix:{},mask:{},align:{default:"left"},type:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=_g(),n=e,a=t;function s(_){n.mask||a("update:modelValue",_.target.value)}const u=eh("k-input",{variants:{invalid:{true:"k-input--invalid"},align:{left:"k-input--align-left",right:"k-input--align-right"}}}),c=yt(Bh,oe(()=>({id:n.id,invalid:n.invalid,required:!1,events:{onBlur:()=>{},onFocus:()=>{}}}))),d=_=>{var b;(b=c.value.events)==null||b.onFocus(_),r.onFocus&&r.onFocus(_)},h=_=>{var b;(b=c.value.events)==null||b.onBlur(_),r.onBlur&&r.onBlur(_)},{unmasked:m,masked:g,el:v}=EC(n.mask,{defaultValue:String(n.modelValue),onAccept:()=>{var _,b;if((_=n.mask)!=null&&_.pattern)return;const y=((b=n.mask)==null?void 0:b.mask)===Number?parseFloat(m.value):g.value;y!==n.modelValue&&a("update:modelValue",y)}});return wt(()=>{$e(()=>n.modelValue,_=>{n.mask&&m.value!==String(_)&&(m.value=String(_)),n.mask||(v.value.value=_)},{immediate:!0})}),(_,b)=>(N(),H("div",{class:ft(he(u)({invalid:he(c).invalid,align:_.align}))},[_.$slots.prefix||_.prefix?(N(),H("span",TC,[de(_.$slots,"prefix",{},()=>[it(me(_.prefix),1)])])):ie("",!0),J("input",je({class:"k-input__input",id:he(c).id,"aria-labelledby":he(c).labelId,"aria-describedby":he(c).helpId,required:he(c).required,onInput:s,onBlur:h,onFocus:d,ref_key:"el",ref:v,type:n.type},{...he(c).events,..._.$attrs}),null,16,SC),_.$slots.suffix||_.suffix?(N(),H("span",AC,[de(_.$slots,"suffix",{},()=>[it(me(_.suffix),1)])])):ie("",!0)],2))}}),CC=["src","alt"],OC=Ne({__name:"Image",props:{src:{},preview:{},alt:{},caption:{},captionVisibility:{default:"hover"},captionTheme:{default:"dark"},size:{default:"cover"},position:{default:"center"},width:{},height:{},aspectRatio:{}},emits:["loaded","error"],setup(e,{emit:t}){const r=e,n=t,a=$(),s=$(!1),u=$(!1),c=$(),d=oe(()=>({"--k-image-size":r.size,"--k-image-preview":r.preview||"","--k-image-position":r.position,"--k-image-width":r.width||"initial","--k-image-height":r.height||"initial","--k-image-aspectratio":(r.aspectRatio==="natural"?c.value:r.aspectRatio)||"initial"}));function h(){s.value=!0;const{naturalWidth:g=0,naturalHeight:v=0}=a.value||{};c.value=`${g}/${v}`,n("loaded")}function m(){s.value=!0,u.value=!0,n("error")}return wt(()=>{var g;return((g=a.value)==null?void 0:g.complete)&&h()}),(g,v)=>(N(),H("figure",{class:ft(["k-image",[`k-image--size-${g.size}`,{"k-image--loaded":s.value,"k-image--loading":!s.value}]]),style:nr(d.value)},[s.value?ie("",!0):(N(),Te(hu,{key:0,size:"small"})),_p(J("img",{src:g.src,alt:g.alt||g.caption,onLoad:h,onError:m,ref_key:"image",ref:a},null,40,CC),[[bp,!u.value]]),g.$slots.caption||g.caption?(N(),H("figcaption",{key:1,class:ft(`k-image__caption k-image__caption--visibility-${g.captionVisibility} k-image__caption--theme-${!s.value||u.value?"light":g.captionTheme}`)},[de(g.$slots,"caption",{},()=>[it(me(g.caption),1)])],2)):ie("",!0)],6))}}),LC={key:1,class:"k-card__content"},PC={key:0,class:"k-card__title"},IC={key:2,class:"k-card__footer"},DC=Ne({inheritAttrs:!1,__name:"Card",props:{is:{default:"div"},title:{},variant:{default:"border"},thumbnail:{},thumbnailSize:{default:"cover"},headerMinHeight:{}},setup(e){return(t,r)=>(N(),Te(Un(t.is),je({class:`k-card k-card--variant-${t.variant}`,style:`--k-header-min-height: ${t.headerMinHeight||""}`},t.$attrs),{default:Oe(()=>[t.$slots.header||t.thumbnail?(N(),H("div",{key:0,class:ft(["k-card__header",[{"k-card__header--has-thumbnail":!t.$slots.header&&t.thumbnail},`k-card__header--thumbnail-size-${t.thumbnailSize}`]])},[de(t.$slots,"header",{},()=>[t.thumbnail?(N(),Te(OC,{key:0,class:"k-card__thumbnail",src:t.thumbnail,size:t.thumbnailSize},null,8,["src","size"])):ie("",!0)])],2)):ie("",!0),t.$slots.default||t.title?(N(),H("div",LC,[t.title?(N(),H("div",PC,me(t.title),1)):ie("",!0),de(t.$slots,"default")])):ie("",!0),t.$slots.footer?(N(),H("div",IC,[de(t.$slots,"footer")])):ie("",!0)]),_:3},16,["class","style"]))}}),FC=["onClick"],NC={class:"k-selectable__checked"},MC=Ne({__name:"Selectable",props:{modelValue:{},items:{},max:{default:1}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=t,a=d=>c(d)?n("update:modelValue",void 0):n("update:modelValue",d),s=d=>{const h=r.modelValue instanceof Array?r.modelValue:[];if(c(d))return n("update:modelValue",h.filter(v=>v!==d));const m=r.max===1/0?r.items.length:r.max||0,g=Math.max(h.length-m+1,0);return n("update:modelValue",[...h.slice(g),d])},u=d=>r.max===1?a(d):s(d),c=d=>r.modelValue instanceof Array?r.modelValue.includes(d):r.modelValue===d;return(d,h)=>(N(!0),H(Ge,null,xt(d.items,m=>(N(),H("button",je({type:"button",ref_for:!0},d.$attrs,{class:["k-selectable",{"k-selectable--selected":c(m),"k-selectable--multiple":d.max!==1}],onClick:g=>u(m)}),[J("span",NC,[Me(he(Bt),{icon:"heroicons-solid:check",width:12})]),de(d.$slots,"item",{item:m})],16,FC))),256))}});function RC(e,t,r){return e===0?r:t[e-1]}function BC(e,t,r){return e===t.length-1?r:t[e+1]}function jC(e,t,r){return Math.round((e-t)/r)*r+t}function Wo(e,t,r){return Math.min(Math.max(e,t),r)}function xu(e,t,r){return(e-t)/(r-t)}function qh(e,t,r,n){const a=e*(r-t)+t,s=jC(a,t,n);return Wo(s,t,r)}function Pa(e,t){let r=e,n=t.toString(),a=n.indexOf("."),s=a>=0?n.length-a:0;if(s>0){let u=Math.pow(10,s);r=Math.round(r*u)/u}return r}function $h(e,t,r,n){t=Number(t),r=Number(r);let a=(e-(isNaN(t)?0:t))%n,s=Pa(Math.abs(a)*2>=n?e+Math.sign(a)*(n-Math.abs(a)):e-a,n);return isNaN(t)?!isNaN(r)&&s>r&&(s=Math.floor(Pa(r/n,n))*n):s<t?s=t:!isNaN(r)&&s>r&&(s=t+Math.floor(Pa((r-t)/n,n))*n),s=Pa(s,n),s}function zC(e,t,r){return e[t]===r?e:[...e.slice(0,t),r,...e.slice(t+1)]}function Wh(e,t){const r=RC(e,t.values,t.min),n=BC(e,t.values,t.max);let a=t.values.slice();return function(s){let u=$h(s,r,n,t.step);return a=zC(a,e,s),a[e]=u,a}}function VC(e,t){const r=t.values[e]+t.step;return Wh(e,t)(r)}function UC(e,t){const r=t.values[e]-t.step;return Wh(e,t)(r)}function ZC(e,t){let r=e.findIndex(s=>t-s<0);if(r===0)return r;if(r===-1)return e.length-1;let n=e[r-1],a=e[r];return Math.abs(n-t)<Math.abs(a-t)?r-1:r}function HC(e,t,r,n){return e.map((a,s)=>{const u=s===0?t:e[s-1]+n,c=s===e.length-1?r:e[s+1]-n;return{min:u,max:c,value:a}})}function Dl(e,t){const r={min:e[0],max:e[1]},n={min:t[0],max:t[1]};return function(a){if(r.min===r.max||n.min===n.max)return n.min;const s=(n.max-n.min)/(r.max-r.min);return n.min+s*(a-r.min)}}function qC(e,t){if(!e){t(void 0);return}t({width:e.offsetWidth,height:e.offsetHeight});const r=e.ownerDocument.defaultView??window,n=new r.ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const[s]=a;let u,c;if("borderBoxSize"in s){const d=s.borderBoxSize,h=Array.isArray(d)?d[0]:d;u=h.inlineSize,c=h.blockSize}else u=e.offsetWidth,c=e.offsetHeight;t({width:u,height:c})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}function $C(e){const{getNodes:t,observeMutation:r=!0,callback:n}=e,a=[];let s=null;function u(){const c=t();s=c[0];const d=c.map((h,m)=>qC(h,g=>{n(g,m)}));a.push(...d)}if(u(),r){const c=WC(s,u);a.push(c)}return()=>{a.forEach(c=>{c?.()})}}function WC(e,t){var r;if(!e||!e.parentElement)return;const n=((r=e.ownerDocument)==null?void 0:r.defaultView)??window,a=new n.MutationObserver(()=>{t()});return a.observe(e.parentElement,{childList:!0}),()=>{a.disconnect()}}var GC=Nr("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker"),mr=GC.build();function YC(e){const t=e[0],r=e[e.length-1];return[t,r]}function KC(e){const[t,r]=YC(e.valuePercent);if(e.valuePercent.length===1){if(e.origin==="center"){const n=e.valuePercent[0]<50,a=n?`${e.valuePercent[0]}%`:"50%",s=n?"50%":`${100-e.valuePercent[0]}%`;return{start:a,end:s}}return{start:"0%",end:`${100-r}%`}}return{start:`${t}%`,end:`${100-r}%`}}function XC(e){return e.isVertical?{position:"absolute",bottom:"var(--slider-range-start)",top:"var(--slider-range-end)"}:{position:"absolute",[e.isRtl?"right":"left"]:"var(--slider-range-start)",[e.isRtl?"left":"right"]:"var(--slider-range-end)"}}function JC(e){const{height:t=0}=e.thumbSize??{},r=Dl([e.min,e.max],[-t/2,t/2]);return parseFloat(r(e.value).toFixed(2))}function QC(e){const{width:t=0}=e.thumbSize??{};if(e.isRtl){const n=Dl([e.max,e.min],[-t/2,t/2]);return-1*parseFloat(n(e.value).toFixed(2))}const r=Dl([e.min,e.max],[-t/2,t/2]);return parseFloat(r(e.value).toFixed(2))}function eO(e,t){if(e.thumbAlignment==="center")return`${t}%`;const r=e.isVertical?JC(e):QC(e);return`calc(${t}% - ${r}px)`}function Gh(e){let t=xu(e.value,e.min,e.max)*100;return eO(e,t)}function Yh(e){let t="visible";return e.thumbAlignment==="contain"&&!e.hasMeasuredThumbSize&&(t="hidden"),t}function tO(e,t){const r=e.isVertical?"bottom":"insetInlineStart";return{visibility:Yh(e),position:"absolute",transform:"var(--slider-thumb-transform)",[r]:`var(--slider-thumb-offset-${t})`}}function rO(){return{touchAction:"none",userSelect:"none",WebkitUserSelect:"none",position:"relative"}}function iO(e){const t=KC(e);return{...e.value.reduce((r,n,a)=>{const s=Gh({...e,value:n});return{...r,[`--slider-thumb-offset-${a}`]:s}},{}),"--slider-thumb-transform":e.isVertical?"translateY(50%)":e.isRtl?"translateX(50%)":"translateX(-50%)","--slider-range-start":t.start,"--slider-range-end":t.end}}function nO(e,t){return{visibility:Yh(e),position:"absolute",pointerEvents:"none",[e.isHorizontal?"insetInlineStart":"bottom"]:Gh({...e,value:t}),translate:"var(--tx) var(--ty)","--tx":e.isHorizontal?e.isRtl?"50%":"-50%":"0%","--ty":e.isHorizontal?"0%":"50%"}}function aO(){return{userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none",position:"relative"}}var oO={getRootStyle:iO,getControlStyle:rO,getThumbStyle:tO,getRangeStyle:XC,getMarkerStyle:nO,getMarkerGroupStyle:aO},_e=ea({...oO,getRootId:e=>{var t;return((t=e.ids)==null?void 0:t.root)??`slider:${e.id}`},getThumbId:(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.thumb)==null?void 0:n.call(r,t))??`slider:${e.id}:thumb:${t}`},getHiddenInputId:(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.hiddenInput)==null?void 0:n.call(r,t))??`slider:${e.id}:input:${t}`},getControlId:e=>{var t;return((t=e.ids)==null?void 0:t.control)??`slider:${e.id}:control`},getTrackId:e=>{var t;return((t=e.ids)==null?void 0:t.track)??`slider:${e.id}:track`},getRangeId:e=>{var t;return((t=e.ids)==null?void 0:t.range)??`slider:${e.id}:range`},getLabelId:e=>{var t;return((t=e.ids)==null?void 0:t.label)??`slider:${e.id}:label`},getValueTextId:e=>{var t;return((t=e.ids)==null?void 0:t.valueText)??`slider:${e.id}:value-text`},getMarkerId:(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.marker)==null?void 0:n.call(r,t))??`slider:${e.id}:marker:${t}`},getRootEl:e=>_e.getById(e,_e.getRootId(e)),getThumbEl:(e,t)=>_e.getById(e,_e.getThumbId(e,t)),getHiddenInputEl:(e,t)=>_e.getById(e,_e.getHiddenInputId(e,t)),getControlEl:e=>_e.getById(e,_e.getControlId(e)),getElements:e=>Eh(_e.getControlEl(e),"[role=slider]"),getFirstEl:e=>_e.getElements(e)[0],getRangeEl:e=>_e.getById(e,_e.getRangeId(e)),getValueFromPoint(e,t){const r=_e.getControlEl(e);if(!r)return;const n=BA(t,r).getPercentValue({orientation:e.orientation,dir:e.dir,inverted:{y:!0}});return qh(n,e.min,e.max,e.step)},dispatchChangeEvent(e){Array.from(e.value).forEach((t,r)=>{const n=_e.getHiddenInputEl(e,r);n&&$A(n,{value:t})})}});function Fd(e,t){return t.map((r,n,a)=>Fl({...e,value:a},r,n))}function Rr(e,t){return HC(e.value,e.min,e.max,e.minStepsBetweenThumbs)[t]}function Fl(e,t,r){const n=Rr(e,r),a=$h(t,e.min,e.max,e.step);return Wo(a,n.min,n.max)}function sO(e,t,r){const n=t??e.focusedIndex,a=Rr(e,n),s=UC(n,{...a,step:r??e.step,values:e.value});return s[n]=Wo(s[n],a.min,a.max),s}function lO(e,t,r){const n=t??e.focusedIndex,a=Rr(e,n),s=VC(n,{...a,step:r??e.step,values:e.value});return s[n]=Wo(s[n],a.min,a.max),s}function uO(e,t){return ZC(e.value,t)}function cO(e,t){for(let r=0;r<t.length;r++){const n=t[r];e[r]=n}}function dO(e,t,r){const n=e.context["aria-label"],a=e.context["aria-labelledby"],s=e.context.value,u=e.matches("focus"),c=e.matches("dragging"),d=e.context.isDisabled,h=e.context.invalid,m=e.context.isInteractive,g=e.context.orientation==="horizontal",v=e.context.orientation==="vertical";function _(y){return xu(y,e.context.min,e.context.max)}function b(y){return qh(y,e.context.min,e.context.max,e.context.step)}return{value:e.context.value,dragging:c,focused:u,setValue(y){t({type:"SET_VALUE",value:y})},getThumbValue(y){return s[y]},setThumbValue(y,x){t({type:"SET_VALUE",index:y,value:x})},getValuePercent:_,getPercentValue:b,getThumbPercent(y){return _(s[y])},setThumbPercent(y,x){const A=b(x);t({type:"SET_VALUE",index:y,value:A})},getThumbMin(y){return Rr(e.context,y).min},getThumbMax(y){return Rr(e.context,y).max},increment(y){t({type:"INCREMENT",index:y})},decrement(y){t({type:"DECREMENT",index:y})},focus(){m&&t({type:"FOCUS",index:0})},getLabelProps(){return r.label({...mr.label.attrs,dir:e.context.dir,"data-disabled":Pe(d),"data-orientation":e.context.orientation,"data-invalid":Pe(h),"data-dragging":Pe(c),"data-focus":Pe(u),id:_e.getLabelId(e.context),htmlFor:_e.getHiddenInputId(e.context,0),onClick(y){var x;m&&(y.preventDefault(),(x=_e.getFirstEl(e.context))==null||x.focus())},style:{userSelect:"none",WebkitUserSelect:"none"}})},getRootProps(){return r.element({...mr.root.attrs,"data-disabled":Pe(d),"data-orientation":e.context.orientation,"data-dragging":Pe(c),"data-invalid":Pe(h),"data-focus":Pe(u),id:_e.getRootId(e.context),dir:e.context.dir,style:_e.getRootStyle(e.context)})},getValueTextProps(){return r.element({...mr.valueText.attrs,dir:e.context.dir,"data-disabled":Pe(d),"data-orientation":e.context.orientation,"data-invalid":Pe(h),"data-focus":Pe(u),id:_e.getValueTextId(e.context)})},getTrackProps(){return r.element({...mr.track.attrs,dir:e.context.dir,id:_e.getTrackId(e.context),"data-disabled":Pe(d),"data-invalid":Pe(h),"data-dragging":Pe(c),"data-orientation":e.context.orientation,"data-focus":Pe(u),style:{position:"relative"}})},getThumbProps(y){var x,A;const{index:T=0,name:S}=y,M=s[T],O=Rr(e.context,T),V=(A=(x=e.context).getAriaValueText)==null?void 0:A.call(x,{value:M,index:T}),W=Array.isArray(n)?n[T]:n,q=Array.isArray(a)?a[T]:a;return r.element({...mr.thumb.attrs,dir:e.context.dir,"data-index":T,"data-name":S,id:_e.getThumbId(e.context,T),"data-disabled":Pe(d),"data-orientation":e.context.orientation,"data-focus":Pe(u&&e.context.focusedIndex===T),"data-dragging":Pe(c&&e.context.focusedIndex===T),draggable:!1,"aria-disabled":vS(d),"aria-label":W,"aria-labelledby":q??_e.getLabelId(e.context),"aria-orientation":e.context.orientation,"aria-valuemax":O.max,"aria-valuemin":O.min,"aria-valuenow":s[T],"aria-valuetext":V,role:"slider",tabIndex:d?void 0:0,style:_e.getThumbStyle(e.context,T),onPointerDown(B){m&&(t({type:"THUMB_POINTER_DOWN",index:T}),B.stopPropagation())},onBlur(){m&&t("BLUR")},onFocus(){m&&t({type:"FOCUS",index:T})},onKeyDown(B){if(B.defaultPrevented||!m)return;const j=RA(B)*e.context.step,P={ArrowUp(){g||t({type:"ARROW_INC",step:j,src:"ArrowUp"})},ArrowDown(){g||t({type:"ARROW_DEC",step:j,src:"ArrowDown"})},ArrowLeft(){v||t({type:"ARROW_DEC",step:j,src:"ArrowLeft"})},ArrowRight(){v||t({type:"ARROW_INC",step:j,src:"ArrowRight"})},PageUp(){t({type:"ARROW_INC",step:j,src:"PageUp"})},PageDown(){t({type:"ARROW_DEC",step:j,src:"PageDown"})},Home(){t("HOME")},End(){t("END")}},D=PA(B,e.context),Y=P[D];Y&&(Y(B),B.preventDefault(),B.stopPropagation())}})},getHiddenInputProps(y){const{index:x=0,name:A}=y;return r.input({name:A??(e.context.name?e.context.name+(e.context.value.length>1?"[]":""):void 0),form:e.context.form,type:"text",hidden:!0,defaultValue:e.context.value[x],id:_e.getHiddenInputId(e.context,x)})},getRangeProps(){return r.element({id:_e.getRangeId(e.context),...mr.range.attrs,dir:e.context.dir,"data-dragging":Pe(c),"data-focus":Pe(u),"data-invalid":Pe(h),"data-disabled":Pe(d),"data-orientation":e.context.orientation,style:_e.getRangeStyle(e.context)})},getControlProps(){return r.element({...mr.control.attrs,dir:e.context.dir,id:_e.getControlId(e.context),"data-dragging":Pe(c),"data-disabled":Pe(d),"data-orientation":e.context.orientation,"data-invalid":Pe(h),"data-focus":Pe(u),style:_e.getControlStyle(),onPointerDown(y){if(!m||!AA(y)||OA(y))return;const x=vu(y);t({type:"POINTER_DOWN",point:x}),y.preventDefault(),y.stopPropagation()}})},getMarkerGroupProps(){return r.element({...mr.markerGroup.attrs,role:"presentation",dir:e.context.dir,"aria-hidden":!0,"data-orientation":e.context.orientation,style:_e.getMarkerGroupStyle()})},getMarkerProps(y){const x=_e.getMarkerStyle(e.context,y.value);let A;const T=e.context.value[0],S=e.context.value[e.context.value.length-1];return y.value<T?A="under-value":y.value>S?A="over-value":A="at-value",r.element({...mr.marker.attrs,id:_e.getMarkerId(e.context,y.value),role:"presentation",dir:e.context.dir,"data-orientation":e.context.orientation,"data-value":y.value,"data-disabled":Pe(d),"data-state":A,style:x})}}}var pO=(e,t)=>e?.width===t?.width&&e?.height===t?.height;function hO(e){const t=di(e);return gu({id:"slider",initial:"idle",context:{thumbSize:null,thumbAlignment:"contain",min:0,max:100,step:1,value:[0],origin:"start",orientation:"horizontal",dir:"ltr",minStepsBetweenThumbs:0,disabled:!1,readOnly:!1,...t,focusedIndex:-1,fieldsetDisabled:!1},computed:{isHorizontal:r=>r.orientation==="horizontal",isVertical:r=>r.orientation==="vertical",isRtl:r=>r.orientation==="horizontal"&&r.dir==="rtl",isDisabled:r=>!!r.disabled||r.fieldsetDisabled,isInteractive:r=>!(r.readOnly||r.isDisabled),hasMeasuredThumbSize:r=>r.thumbSize!=null,valuePercent(r){return r.value.map(n=>100*xu(n,r.min,r.max))}},watch:{value:["syncInputElements"]},entry:["coarseValue"],activities:["trackFormControlState","trackThumbsSize"],on:{SET_VALUE:[{guard:"hasIndex",actions:"setValueAtIndex"},{actions:"setValue"}],INCREMENT:{actions:"incrementThumbAtIndex"},DECREMENT:{actions:"decrementThumbAtIndex"}},states:{idle:{on:{POINTER_DOWN:{target:"dragging",actions:["setClosestThumbIndex","setPointerValue","focusActiveThumb"]},FOCUS:{target:"focus",actions:"setFocusedIndex"},THUMB_POINTER_DOWN:{target:"dragging",actions:["setFocusedIndex","focusActiveThumb"]}}},focus:{entry:"focusActiveThumb",on:{POINTER_DOWN:{target:"dragging",actions:["setClosestThumbIndex","setPointerValue","focusActiveThumb"]},THUMB_POINTER_DOWN:{target:"dragging",actions:["setFocusedIndex","focusActiveThumb"]},ARROW_DEC:{actions:["decrementThumbAtIndex","invokeOnChangeEnd"]},ARROW_INC:{actions:["incrementThumbAtIndex","invokeOnChangeEnd"]},HOME:{actions:["setFocusedThumbToMin","invokeOnChangeEnd"]},END:{actions:["setFocusedThumbToMax","invokeOnChangeEnd"]},BLUR:{target:"idle",actions:"clearFocusedIndex"}}},dragging:{entry:"focusActiveThumb",activities:"trackPointerMove",on:{POINTER_UP:{target:"focus",actions:"invokeOnChangeEnd"},POINTER_MOVE:{actions:"setPointerValue"}}}}},{guards:{hasIndex:(r,n)=>n.index!=null},activities:{trackFormControlState(r,n,{initialContext:a}){return Rh(_e.getRootEl(r),{onFieldsetDisabledChange(s){r.fieldsetDisabled=s},onFormReset(){Nt.value(r,a.value)}})},trackPointerMove(r,n,{send:a}){return jA(_e.getDoc(r),{onPointerMove(s){a({type:"POINTER_MOVE",point:s.point})},onPointerUp(){a("POINTER_UP")}})},trackThumbsSize(r){if(!(r.thumbAlignment!=="contain"||r.thumbSize))return $C({getNodes:()=>_e.getElements(r),observeMutation:!0,callback(n){!n||pO(r.thumbSize,n)||(r.thumbSize=n)}})}},actions:{syncInputElements(r){r.value.forEach((n,a)=>{const s=_e.getHiddenInputEl(r,a);_e.setValue(s,n)})},invokeOnChangeEnd(r){Qa.valueChangeEnd(r)},setClosestThumbIndex(r,n){const a=_e.getValueFromPoint(r,n.point);if(a==null)return;const s=uO(r,a);Nt.focusedIndex(r,s)},setFocusedIndex(r,n){Nt.focusedIndex(r,n.index)},clearFocusedIndex(r){Nt.focusedIndex(r,-1)},setPointerValue(r,n){const a=_e.getValueFromPoint(r,n.point);if(a==null)return;const s=Fl(r,a,r.focusedIndex);Nt.valueAtIndex(r,r.focusedIndex,s)},focusActiveThumb(r){zr(()=>{_e.getThumbEl(r,r.focusedIndex)?.focus({preventScroll:!0})})},decrementThumbAtIndex(r,n){const a=sO(r,n.index,n.step);Nt.value(r,a)},incrementThumbAtIndex(r,n){const a=lO(r,n.index,n.step);Nt.value(r,a)},setFocusedThumbToMin(r){const{min:n}=Rr(r,r.focusedIndex);Nt.valueAtIndex(r,r.focusedIndex,n)},setFocusedThumbToMax(r){const{max:n}=Rr(r,r.focusedIndex);Nt.valueAtIndex(r,r.focusedIndex,n)},coarseValue(r){const n=Fd(r,r.value);Nt.value(r,n)},setValueAtIndex(r,n){const a=Fl(r,n.value,n.index);Nt.valueAtIndex(r,n.index,a)},setValue(r,n){const a=Fd(r,n.value);Nt.value(r,a)}}})}var Qa={valueChange(e){var t;(t=e.onValueChange)==null||t.call(e,{value:Array.from(e.value)}),_e.dispatchChangeEvent(e)},valueChangeEnd(e){var t;(t=e.onValueChangeEnd)==null||t.call(e,{value:Array.from(e.value)})},focusChange(e){var t;(t=e.onFocusChange)==null||t.call(e,{value:Array.from(e.value),focusedIndex:e.focusedIndex})}},Nt={valueAtIndex:(e,t,r)=>{$i(e.value[t],r)||(e.value[t]=r,Qa.valueChange(e))},value:(e,t)=>{$i(e.value,t)||(cO(e.value,t),Qa.valueChange(e))},focusedIndex:(e,t)=>{$i(e.focusedIndex,t)||(e.focusedIndex=t,Qa.focusChange(e))}};gi()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value"]);gi()(["index","name"]);const fO=["data-value"],mO=Ne({__name:"RangeSlider",props:{modelValue:{},min:{default:0},max:{default:100},step:{default:1},minStepsBetweenThumbs:{},marker:{},markerFormat:{},format:{type:Function,default:()=>e=>e},getRootNode:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=t,a={id:Uo(),...r,value:r.modelValue,onValueChangeEnd:({value:m})=>{const[g,v]=[c.value.getThumbMin(0),c.value.getThumbMax(0)],[_,b]=[c.value.getThumbMin(1),c.value.getThumbMax(1)],y=Math.max(g,Math.min(v,m[0])),x=Math.min(b,Math.max(_,m[1]));r.modelValue[0]===y&&r.modelValue[1]===x||n("update:modelValue",[y,x])},getRootNode:r.getRootNode},[s,u]=bu(hO(a),{context:oe(()=>r)}),c=oe(()=>dO(s.value,u,_u)),d=m=>{const[g,v]=[c.value.getThumbMin(0),c.value.getThumbMax(0)],[_,b]=[c.value.getThumbMin(1),c.value.getThumbMax(1)],[y,x]=[c.value.getThumbValue(0),c.value.getThumbValue(1)],[A,T]=m;if(A===y&&T===x)return;const S=Math.max(g,Math.min(v,A)),M=Math.min(b,Math.max(_,T));return y===S&&x===M?n("update:modelValue",[S,M]):c.value.setValue([S,M])},h=oe(()=>{if(!r.marker)return[];const m=Math.floor(r.max/r.marker)+1;return Array(m).fill(void 0).map((g,v)=>{const _=(r.marker||0)*v;return{value:_,label:r.markerFormat?r.markerFormat(_):r.format(_)}})});return $e(()=>r.modelValue,d,{deep:!0}),(m,g)=>(N(),H("div",je(c.value.getRootProps(),{class:"k-rangeslider"}),[J("div",ai(Zi(c.value.getControlProps())),[J("div",ai(Zi(c.value.getTrackProps())),[J("div",ai(Zi(c.value.getRangeProps())),null,16)],16),(N(!0),H(Ge,null,xt(c.value.value,(v,_)=>(N(),H("div",je({key:_,ref_for:!0},c.value.getThumbProps({index:_})),[J("input",je({ref_for:!0},c.value.getHiddenInputProps({index:_})),null,16)],16))),128))],16),h.value.length?(N(),H("div",ai(je({key:0},c.value.getMarkerGroupProps())),[(N(!0),H(Ge,null,xt(h.value,v=>(N(),H("span",je({ref_for:!0},c.value.getMarkerProps({value:v.value}),{"data-value":v.label}),null,16,fO))),256))],16)):ie("",!0)],16))}}),Nl=Math.min,Wi=Math.max,fo=Math.round,Ia=Math.floor,Vr=e=>({x:e,y:e}),gO={left:"right",right:"left",bottom:"top",top:"bottom"},vO={start:"end",end:"start"};function wu(e,t){return typeof e=="function"?e(t):e}function en(e){return e.split("-")[0]}function Go(e){return e.split("-")[1]}function kO(e){return e==="x"?"y":"x"}function Kh(e){return e==="y"?"height":"width"}function Yn(e){return["top","bottom"].includes(en(e))?"y":"x"}function Xh(e){return kO(Yn(e))}function _O(e,t,r){r===void 0&&(r=!1);const n=Go(e),a=Xh(e),s=Kh(a);let u=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(u=mo(u)),[u,mo(u)]}function bO(e){const t=mo(e);return[Ml(e),t,Ml(t)]}function Ml(e){return e.replace(/start|end/g,t=>vO[t])}function yO(e,t,r){const n=["left","right"],a=["right","left"],s=["top","bottom"],u=["bottom","top"];switch(e){case"top":case"bottom":return r?t?a:n:t?n:a;case"left":case"right":return t?s:u;default:return[]}}function xO(e,t,r,n){const a=Go(e);let s=yO(en(e),r==="start",n);return a&&(s=s.map(u=>u+"-"+a),t&&(s=s.concat(s.map(Ml)))),s}function mo(e){return e.replace(/left|right|bottom|top/g,t=>gO[t])}function wO(e){return{top:0,right:0,bottom:0,left:0,...e}}function EO(e){return typeof e!="number"?wO(e):{top:e,right:e,bottom:e,left:e}}function go(e){const{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function Nd(e,t,r){let{reference:n,floating:a}=e;const s=Yn(t),u=Xh(t),c=Kh(u),d=en(t),h=s==="y",m=n.x+n.width/2-a.width/2,g=n.y+n.height/2-a.height/2,v=n[c]/2-a[c]/2;let _;switch(d){case"top":_={x:m,y:n.y-a.height};break;case"bottom":_={x:m,y:n.y+n.height};break;case"right":_={x:n.x+n.width,y:g};break;case"left":_={x:n.x-a.width,y:g};break;default:_={x:n.x,y:n.y}}switch(Go(t)){case"start":_[u]-=v*(r&&h?-1:1);break;case"end":_[u]+=v*(r&&h?-1:1);break}return _}const TO=async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:s=[],platform:u}=r,c=s.filter(Boolean),d=await(u.isRTL==null?void 0:u.isRTL(t));let h=await u.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:g}=Nd(h,n,d),v=n,_={},b=0;for(let y=0;y<c.length;y++){const{name:x,fn:A}=c[y],{x:T,y:S,data:M,reset:O}=await A({x:m,y:g,initialPlacement:n,placement:v,strategy:a,middlewareData:_,rects:h,platform:u,elements:{reference:e,floating:t}});m=T??m,g=S??g,_={..._,[x]:{..._[x],...M}},O&&b<=50&&(b++,typeof O=="object"&&(O.placement&&(v=O.placement),O.rects&&(h=O.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:a}):O.rects),{x:m,y:g}=Nd(h,v,d)),y=-1)}return{x:m,y:g,placement:v,strategy:a,middlewareData:_}};async function SO(e,t){var r;t===void 0&&(t={});const{x:n,y:a,platform:s,rects:u,elements:c,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:v=!1,padding:_=0}=wu(t,e),b=EO(_),y=c[v?g==="floating"?"reference":"floating":g],x=go(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(y)))==null||r?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:h,rootBoundary:m,strategy:d})),A=g==="floating"?{x:n,y:a,width:u.floating.width,height:u.floating.height}:u.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),S=await(s.isElement==null?void 0:s.isElement(T))?await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1}:{x:1,y:1},M=go(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:A,offsetParent:T,strategy:d}):A);return{top:(x.top-M.top+b.top)/S.y,bottom:(M.bottom-x.bottom+b.bottom)/S.y,left:(x.left-M.left+b.left)/S.x,right:(M.right-x.right+b.right)/S.x}}const AO=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:a,middlewareData:s,rects:u,initialPlacement:c,platform:d,elements:h}=t,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:y=!0,...x}=wu(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const A=en(a),T=Yn(c),S=en(c)===c,M=await(d.isRTL==null?void 0:d.isRTL(h.floating)),O=v||(S||!y?[mo(c)]:bO(c)),V=b!=="none";!v&&V&&O.push(...xO(c,y,b,M));const W=[c,...O],q=await SO(t,x),B=[];let j=((n=s.flip)==null?void 0:n.overflows)||[];if(m&&B.push(q[A]),g){const E=_O(a,u,M);B.push(q[E[0]],q[E[1]])}if(j=[...j,{placement:a,overflows:B}],!B.every(E=>E<=0)){var P,D;const E=(((P=s.flip)==null?void 0:P.index)||0)+1,F=W[E];if(F)return{data:{index:E,overflows:j},reset:{placement:F}};let z=(D=j.filter(te=>te.overflows[0]<=0).sort((te,Z)=>te.overflows[1]-Z.overflows[1])[0])==null?void 0:D.placement;if(!z)switch(_){case"bestFit":{var Y;const te=(Y=j.filter(Z=>{if(V){const X=Yn(Z.placement);return X===T||X==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(X=>X>0).reduce((X,Q)=>X+Q,0)]).sort((Z,X)=>Z[1]-X[1])[0])==null?void 0:Y[0];te&&(z=te);break}case"initialPlacement":z=c;break}if(a!==z)return{reset:{placement:z}}}return{}}}};async function CO(e,t){const{placement:r,platform:n,elements:a}=e,s=await(n.isRTL==null?void 0:n.isRTL(a.floating)),u=en(r),c=Go(r),d=Yn(r)==="y",h=["left","top"].includes(u)?-1:1,m=s&&d?-1:1,g=wu(t,e);let{mainAxis:v,crossAxis:_,alignmentAxis:b}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return c&&typeof b=="number"&&(_=c==="end"?b*-1:b),d?{x:_*m,y:v*h}:{x:v*h,y:_*m}}const OO=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:a,y:s,placement:u,middlewareData:c}=t,d=await CO(t,e);return u===((r=c.offset)==null?void 0:r.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:a+d.x,y:s+d.y,data:{...d,placement:u}}}}};function Yo(){return typeof window<"u"}function sn(e){return Jh(e)?(e.nodeName||"").toLowerCase():"#document"}function Ot(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function cr(e){var t;return(t=(Jh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jh(e){return Yo()?e instanceof Node||e instanceof Ot(e).Node:!1}function $t(e){return Yo()?e instanceof Element||e instanceof Ot(e).Element:!1}function or(e){return Yo()?e instanceof HTMLElement||e instanceof Ot(e).HTMLElement:!1}function Md(e){return!Yo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ot(e).ShadowRoot}function ta(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=Wt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(a)}function LO(e){return["table","td","th"].includes(sn(e))}function Ko(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Eu(e){const t=Tu(),r=$t(e)?Wt(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function PO(e){let t=Ur(e);for(;or(t)&&!tn(t);){if(Eu(t))return t;if(Ko(t))return null;t=Ur(t)}return null}function Tu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function tn(e){return["html","body","#document"].includes(sn(e))}function Wt(e){return Ot(e).getComputedStyle(e)}function Xo(e){return $t(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ur(e){if(sn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Md(e)&&e.host||cr(e);return Md(t)?t.host:t}function Qh(e){const t=Ur(e);return tn(t)?e.ownerDocument?e.ownerDocument.body:e.body:or(t)&&ta(t)?t:Qh(t)}function Kn(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=Qh(e),s=a===((n=e.ownerDocument)==null?void 0:n.body),u=Ot(a);if(s){const c=Rl(u);return t.concat(u,u.visualViewport||[],ta(a)?a:[],c&&r?Kn(c):[])}return t.concat(a,Kn(a,[],r))}function Rl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ef(e){const t=Wt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=or(e),s=a?e.offsetWidth:r,u=a?e.offsetHeight:n,c=fo(r)!==s||fo(n)!==u;return c&&(r=s,n=u),{width:r,height:n,$:c}}function Su(e){return $t(e)?e:e.contextElement}function Gi(e){const t=Su(e);if(!or(t))return Vr(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:s}=ef(t);let u=(s?fo(r.width):r.width)/n,c=(s?fo(r.height):r.height)/a;return(!u||!Number.isFinite(u))&&(u=1),(!c||!Number.isFinite(c))&&(c=1),{x:u,y:c}}const IO=Vr(0);function tf(e){const t=Ot(e);return!Tu()||!t.visualViewport?IO:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function DO(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ot(e)?!1:t}function pi(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),s=Su(e);let u=Vr(1);t&&(n?$t(n)&&(u=Gi(n)):u=Gi(e));const c=DO(s,r,n)?tf(s):Vr(0);let d=(a.left+c.x)/u.x,h=(a.top+c.y)/u.y,m=a.width/u.x,g=a.height/u.y;if(s){const v=Ot(s),_=n&&$t(n)?Ot(n):n;let b=v,y=Rl(b);for(;y&&n&&_!==b;){const x=Gi(y),A=y.getBoundingClientRect(),T=Wt(y),S=A.left+(y.clientLeft+parseFloat(T.paddingLeft))*x.x,M=A.top+(y.clientTop+parseFloat(T.paddingTop))*x.y;d*=x.x,h*=x.y,m*=x.x,g*=x.y,d+=S,h+=M,b=Ot(y),y=Rl(b)}}return go({width:m,height:g,x:d,y:h})}function FO(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const s=a==="fixed",u=cr(n),c=t?Ko(t.floating):!1;if(n===u||c&&s)return r;let d={scrollLeft:0,scrollTop:0},h=Vr(1);const m=Vr(0),g=or(n);if((g||!g&&!s)&&((sn(n)!=="body"||ta(u))&&(d=Xo(n)),or(n))){const v=pi(n);h=Gi(n),m.x=v.x+n.clientLeft,m.y=v.y+n.clientTop}return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-d.scrollLeft*h.x+m.x,y:r.y*h.y-d.scrollTop*h.y+m.y}}function NO(e){return Array.from(e.getClientRects())}function Bl(e,t){const r=Xo(e).scrollLeft;return t?t.left+r:pi(cr(e)).left+r}function MO(e){const t=cr(e),r=Xo(e),n=e.ownerDocument.body,a=Wi(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=Wi(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let u=-r.scrollLeft+Bl(e);const c=-r.scrollTop;return Wt(n).direction==="rtl"&&(u+=Wi(t.clientWidth,n.clientWidth)-a),{width:a,height:s,x:u,y:c}}function RO(e,t){const r=Ot(e),n=cr(e),a=r.visualViewport;let s=n.clientWidth,u=n.clientHeight,c=0,d=0;if(a){s=a.width,u=a.height;const h=Tu();(!h||h&&t==="fixed")&&(c=a.offsetLeft,d=a.offsetTop)}return{width:s,height:u,x:c,y:d}}function BO(e,t){const r=pi(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,s=or(e)?Gi(e):Vr(1),u=e.clientWidth*s.x,c=e.clientHeight*s.y,d=a*s.x,h=n*s.y;return{width:u,height:c,x:d,y:h}}function Rd(e,t,r){let n;if(t==="viewport")n=RO(e,r);else if(t==="document")n=MO(cr(e));else if($t(t))n=BO(t,r);else{const a=tf(e);n={...t,x:t.x-a.x,y:t.y-a.y}}return go(n)}function rf(e,t){const r=Ur(e);return r===t||!$t(r)||tn(r)?!1:Wt(r).position==="fixed"||rf(r,t)}function jO(e,t){const r=t.get(e);if(r)return r;let n=Kn(e,[],!1).filter(c=>$t(c)&&sn(c)!=="body"),a=null;const s=Wt(e).position==="fixed";let u=s?Ur(e):e;for(;$t(u)&&!tn(u);){const c=Wt(u),d=Eu(u);!d&&c.position==="fixed"&&(a=null),(s?!d&&!a:!d&&c.position==="static"&&a&&["absolute","fixed"].includes(a.position)||ta(u)&&!d&&rf(e,u))?n=n.filter(h=>h!==u):a=c,u=Ur(u)}return t.set(e,n),n}function zO(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const s=[...r==="clippingAncestors"?Ko(t)?[]:jO(t,this._c):[].concat(r),n],u=s[0],c=s.reduce((d,h)=>{const m=Rd(t,h,a);return d.top=Wi(m.top,d.top),d.right=Nl(m.right,d.right),d.bottom=Nl(m.bottom,d.bottom),d.left=Wi(m.left,d.left),d},Rd(t,u,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function VO(e){const{width:t,height:r}=ef(e);return{width:t,height:r}}function UO(e,t,r){const n=or(t),a=cr(t),s=r==="fixed",u=pi(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const d=Vr(0);if(n||!n&&!s)if((sn(t)!=="body"||ta(a))&&(c=Xo(t)),n){const _=pi(t,!0,s,t);d.x=_.x+t.clientLeft,d.y=_.y+t.clientTop}else a&&(d.x=Bl(a));let h=0,m=0;if(a&&!n&&!s){const _=a.getBoundingClientRect();m=_.top+c.scrollTop,h=_.left+c.scrollLeft-Bl(a,_)}const g=u.left+c.scrollLeft-d.x-h,v=u.top+c.scrollTop-d.y-m;return{x:g,y:v,width:u.width,height:u.height}}function $s(e){return Wt(e).position==="static"}function Bd(e,t){if(!or(e)||Wt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return cr(e)===r&&(r=r.ownerDocument.body),r}function nf(e,t){const r=Ot(e);if(Ko(e))return r;if(!or(e)){let a=Ur(e);for(;a&&!tn(a);){if($t(a)&&!$s(a))return a;a=Ur(a)}return r}let n=Bd(e,t);for(;n&&LO(n)&&$s(n);)n=Bd(n,t);return n&&tn(n)&&$s(n)&&!Eu(n)?r:n||PO(e)||r}const ZO=async function(e){const t=this.getOffsetParent||nf,r=this.getDimensions,n=await r(e.floating);return{reference:UO(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function HO(e){return Wt(e).direction==="rtl"}const jl={convertOffsetParentRelativeRectToViewportRelativeRect:FO,getDocumentElement:cr,getClippingRect:zO,getOffsetParent:nf,getElementRects:ZO,getClientRects:NO,getDimensions:VO,getScale:Gi,isElement:$t,isRTL:HO};function qO(e,t){let r=null,n;const a=cr(e);function s(){var c;clearTimeout(n),(c=r)==null||c.disconnect(),r=null}function u(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),s();const{left:h,top:m,width:g,height:v}=e.getBoundingClientRect();if(c||t(),!g||!v)return;const _=Ia(m),b=Ia(a.clientWidth-(h+g)),y=Ia(a.clientHeight-(m+v)),x=Ia(h),A={rootMargin:-_+"px "+-b+"px "+-y+"px "+-x+"px",threshold:Wi(0,Nl(1,d))||1};let T=!0;function S(M){const O=M[0].intersectionRatio;if(O!==d){if(!T)return u();O?u(!1,O):n=setTimeout(()=>{u(!1,1e-7)},1e3)}T=!1}try{r=new IntersectionObserver(S,{...A,root:a.ownerDocument})}catch{r=new IntersectionObserver(S,A)}r.observe(e)}return u(!0),s}function $O(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=n,h=Su(e),m=a||s?[...h?Kn(h):[],...Kn(t)]:[];m.forEach(A=>{a&&A.addEventListener("scroll",r,{passive:!0}),s&&A.addEventListener("resize",r)});const g=h&&c?qO(h,r):null;let v=-1,_=null;u&&(_=new ResizeObserver(A=>{let[T]=A;T&&T.target===h&&_&&(_.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var S;(S=_)==null||S.observe(t)})),r()}),h&&!d&&_.observe(h),_.observe(t));let b,y=d?pi(e):null;d&&x();function x(){const A=pi(e);y&&(A.x!==y.x||A.y!==y.y||A.width!==y.width||A.height!==y.height)&&r(),y=A,b=requestAnimationFrame(x)}return r(),()=>{var A;m.forEach(T=>{a&&T.removeEventListener("scroll",r),s&&T.removeEventListener("resize",r)}),g?.(),(A=_)==null||A.disconnect(),_=null,d&&cancelAnimationFrame(b)}}const WO=OO,GO=AO,YO=(e,t,r)=>{const n=new Map,a={platform:jl,...r},s={...a.platform,_c:n};return TO(e,t,{...a,platform:s})};function KO(e,t){let r,n,a;const s=$(!0),u=()=>{s.value=!0,a()};$e(e,u,{flush:"sync"});const c=typeof t=="function"?t:t.get,d=typeof t=="function"?void 0:t.set,h=Ap((m,g)=>(n=m,a=g,{get(){return s.value&&(r=c(),s.value=!1),n(),r},set(v){d?.(v)}}));return Object.isExtensible(h)&&(h.trigger=u),h}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function af(e){const t=Io(),r=KO(()=>null,()=>t.proxy.$el);return Sp(r.trigger),wt(r.trigger),r}function XO(e){return JO(e)}function Ws(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function JO(e){for(let t=e;t;t=Ws(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Ws(e);t;t=Ws(t)){if(!(t instanceof Element))continue;const r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||t.tagName==="BODY"))return t}return null}const Au=Ne({inheritAttrs:!1,__name:"Dropdown",props:{items:{},placement:{default:"bottom-start"},teleport:{type:Boolean,default:!1},keepOpen:{type:Boolean,default:!1},theme:{default:"border"},teleportTo:{default:"body"},offset:{default:8},variant:{},size:{},loading:{type:Boolean},promise:{},confirm:{type:Boolean},is:{},stateTimeout:{},confirmLabel:{},label:{},icon:{},iconLeft:{},iconRight:{default:"fa-pro-regular:angle-down"}},setup(e,{expose:t}){const r=e,n=oe(()=>{const{items:T,placement:S,teleport:M,keepOpen:O,...V}=r;return V}),a=$(!1),s=af(),u=$(),c=$(),d=$({top:"",left:"",position:""});let h=()=>{};function m(){!u.value||!c.value||(h=$O(u.value.$el,c.value,()=>{!u.value||!c.value||YO(u.value.$el,c.value,{placement:r.placement,middleware:[WO(r.offset),GO()],platform:{...jl,getOffsetParent:T=>jl.getOffsetParent(T,XO)}}).then(({x:T,y:S})=>{d.value={top:`${S}px`,left:`${T}px`,position:"absolute"}})}))}yp(h),xp(()=>{if(a.value)return m();h()});const g=({target:T},S="dom")=>{if(T instanceof Element&&!(!u.value||!c.value)){if(S==="dom")return[u.value.$el,c.value].some(M=>M&&(T===M||M.contains(T)))?void 0:_(!1);if(S==="shadow-dom"){const M=s.value.getRootNode();return T.shadowRoot===M?void 0:_(!1)}}},v=({key:T})=>T==="Escape"&&_(!1),_=(T=!a.value)=>(T?x():A(),a.value=T,!0),b=oe(()=>s.value.getRootNode()),y=oe(()=>b.value instanceof ShadowRoot);function x(){window.addEventListener("keydown",v),y.value?(b.value.addEventListener("click",T=>g(T)),window.addEventListener("click",T=>g(T,"shadow-dom"))):window.addEventListener("click",g)}function A(){window.removeEventListener("keydown",v),y.value?(b.value.removeEventListener("click",T=>g(T)),window.removeEventListener("click",T=>g(T,"shadow-dom"))):window.removeEventListener("click",g)}return t({isOpen:a}),(T,S)=>(N(),H(Ge,null,[Me(br,je({...n.value,...T.$attrs},{onClick:S[0]||(S[0]=wp(()=>_(),["stop"])),ref_key:"trigger",ref:u,class:"k-dropdown-trigger"}),tu({_:2},[T.$slots["icon-left"]?{name:"icon-left",fn:Oe(()=>[de(T.$slots,"icon-left")]),key:"0"}:void 0,T.$slots.trigger?{name:"default",fn:Oe(()=>[de(T.$slots,"trigger")]),key:"1"}:void 0,T.$slots["icon-right"]?{name:"icon-right",fn:Oe(()=>[de(T.$slots,"icon-right")]),key:"2"}:void 0]),1040),(N(),Te(Tp,{to:T.teleportTo,disabled:!T.teleport},[Me(Ep,{name:"k-dropdown"},{default:Oe(()=>[a.value?(N(),H("div",{key:0,class:ft(`k-dropdown k-dropdown--theme-${T.theme}`),style:nr(d.value),ref_key:"content",ref:c,onClick:S[1]||(S[1]=()=>!T.keepOpen&&_(!1))},[de(T.$slots,"default",{close:_.bind(null,!1)},()=>[(N(!0),H(Ge,null,xt(T.items,({action:M,icon:O,...V})=>(N(),Te(br,je({ref_for:!0},V,{variant:"tertiary","icon-right":V.iconRight||O,onClick:()=>M()}),null,16,["icon-right","onClick"]))),256))])],6)):ie("",!0)]),_:3})],8,["to","disabled"]))],64))}}),QO={key:0,class:"k-datatable__row"},eL={key:0,class:"k-datatable__cell k-datatable__cell-select"},tL=["data-col-id","onClick"],rL=["innerHTML"],iL={key:1,class:"k-datatable__cell k-datatable__cell-actions"},nL={key:0,class:"k-datatable__cell k-datatable__cell-select"},aL={key:1,class:"k-datatable__cell k-datatable__cell-actions"},oL={key:0,class:"k-datatable__footer"},sL=Ne({__name:"DataTable",props:{items:{},selected:{},theme:{default:"default"},header:{type:Boolean,default:!0},sticky:{type:[Boolean,String]},sortBy:{},sortableBy:{default:()=>[]},isDisabled:{type:Function,default:()=>!1},columns:{},labels:{default:()=>({selection:"Valgt",resetSelection:"Tilbakestill valg"})},cellWrapper:{type:Function,default:()=>({component:"div"})},rowWrapper:{type:Function,default:()=>({component:"div"})}},emits:["update:selected","update:sortBy"],setup(e,{emit:t}){const r=e,n=xg(),a=t,s=$([-1]),u=oe(()=>r.items.filter(b=>!r.isDisabled(b))),c=oe(()=>!!r.selected),d=oe(()=>!!(Object.keys(r.sortBy||{}).length&&r.sortableBy.length)),h=oe(()=>!!n.rowActions),m=oe({get:()=>!!(u.value.length&&u.value.every(b=>r.selected&&r.selected.includes(b))),set:b=>a("update:selected",b?[...u.value]:[])}),g=oe(()=>[c.value?"2.5rem":!1,...r.columns.filter(({disabled:b})=>!b).map(b=>b.size||"auto"),h.value?"0px":!1].filter(Boolean).join(" "));function v(b){var y;if(!d.value||!r.sortableBy.includes(b))return;let x=((y=r.sortBy)==null?void 0:y[b])||-1;a("update:sortBy",{[b]:x*-1})}function _(b,y){if(!b.isTrusted||!(b.target instanceof HTMLInputElement))return;let x=s.value.slice(-1).pop()||-1,A=[];if(b.shiftKey){let T=x>y,S=x+(T?-1:1);for(;T?S>y:S<y;){let M=r.items[S];!(r.selected||[]).includes(M)&&!r.isDisabled(M)&&A.push(M),T?S--:S++}}b.target.checked?s.value.push(y):x===y&&s.value.pop(),a("update:selected",[...r.selected||[],...A])}return(b,y)=>(N(),H("div",{class:ft([`k-datatable k-datatable--${b.theme}`,{"k-datatable--sticky":!!b.sticky,"k-datatable--no-header":!b.header}]),style:nr(`--k-datatable-layout: ${g.value}; --k-datatable-sticky-top: ${typeof b.sticky=="string"?b.sticky:"0"}`)},[b.header?(N(),H("div",QO,[c.value?(N(),H("div",eL,[Me(Pl,{class:"k-datatable__checkbox",modelValue:m.value,"onUpdate:modelValue":y[0]||(y[0]=x=>m.value=x),disabled:!b.items.length},null,8,["modelValue","disabled"])])):ie("",!0),(N(!0),H(Ge,null,xt(b.columns.filter(({disabled:x})=>!x),x=>(N(),H("div",{class:ft(["k-datatable__cell",`k-datatable__cell--text-align-${x.align||"start"}`,{"k-datatable__cell-sort":d.value&&b.sortableBy.includes(x.id),"k-datatable__cell-sort--active":x.id in(b.sortBy||{})}]),key:x.id,"data-col-id":x.id,onClick:A=>v(x.id)},[de(b.$slots,`${x.id}-label`,{item:x},()=>[J("span",{innerHTML:x.label},null,8,rL)]),Me(he(Bt),{class:"k-datatable__cell-sort-icon",icon:(b.sortBy||{})[x.id]<0?"fa-pro-solid:caret-up":"fa-pro-solid:caret-down"},null,8,["icon"])],10,tL))),128)),h.value?(N(),H("div",iL)):ie("",!0)])):ie("",!0),(N(!0),H(Ge,null,xt(b.items,(x,A)=>(N(),H("div",{class:"k-datatable__row",key:A},[c.value?(N(),H("div",nL,[Me(Pl,{class:"k-datatable__checkbox","model-value":b.selected||[],"onUpdate:modelValue":y[1]||(y[1]=T=>a("update:selected",T)),value:x,onMousedown:y[2]||(y[2]=wp(()=>{},["prevent"])),onClick:T=>_(T,A),disabled:b.isDisabled(x)},null,8,["model-value","value","onClick","disabled"])])):ie("",!0),(N(),Te(Un(b.rowWrapper(x).component),je({class:"k-datatable__row-wrapper",ref_for:!0},b.rowWrapper(x).bind,Cp(b.rowWrapper(x).listeners)),{default:Oe(()=>[(N(!0),H(Ge,null,xt(b.columns.filter(({disabled:T})=>!T),(T,S)=>(N(),Te(Un(b.cellWrapper(x,T).component),je({ref_for:!0},b.cellWrapper(x,T).bind,{class:`k-datatable__cell k-datatable__cell--text-align-${T.align||"start"}`,key:`col-${T.id}`,"data-cell-id":T.id}),{default:Oe(()=>[de(b.$slots,T.id,{item:x,column:T,rowIndex:A,colIndex:S})]),_:2},1040,["class","data-cell-id"]))),128))]),_:2},1040)),b.$slots["row-actions"]?(N(),H("div",aL,[de(b.$slots,"row-actions",{item:x})])):ie("",!0)]))),128)),Me(Ep,{name:"k-datatable-footer"},{default:Oe(()=>{var x,A;return[b.$slots.footer||(x=b.selected)!=null&&x.length?(N(),H("div",oL,[(A=b.selected)!=null&&A.length?(N(),Te(Au,{key:0,label:`${b.labels.selection} (${b.selected.length})`,teleport:""},{default:Oe(()=>[de(b.$slots,"select-actions"),Me(br,{label:b.labels.resetSelection,"icon-right":"fa-pro-light:times-square",variant:"tertiary",onClick:y[3]||(y[3]=T=>a("update:selected",[]))},null,8,["label"])]),_:3},8,["label"])):ie("",!0),de(b.$slots,"footer")])):ie("",!0)]}),_:3})],6))}});var lL=Nr("radio-group").parts("root","label","item","itemText","itemControl","indicator");lL.build();var ut=ea({getRootId:e=>{var t;return((t=e.ids)==null?void 0:t.root)??`radio-group:${e.id}`},getLabelId:e=>{var t;return((t=e.ids)==null?void 0:t.label)??`radio-group:${e.id}:label`},getItemId:(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.item)==null?void 0:n.call(r,t))??`radio-group:${e.id}:radio:${t}`},getItemHiddenInputId:(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.itemHiddenInput)==null?void 0:n.call(r,t))??`radio-group:${e.id}:radio:input:${t}`},getItemControlId:(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.itemControl)==null?void 0:n.call(r,t))??`radio-group:${e.id}:radio:control:${t}`},getItemLabelId:(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.itemLabel)==null?void 0:n.call(r,t))??`radio-group:${e.id}:radio:label:${t}`},getIndicatorId:e=>{var t;return((t=e.ids)==null?void 0:t.indicator)??`radio-group:${e.id}:indicator`},getRootEl:e=>ut.getById(e,ut.getRootId(e)),getItemHiddenInputEl:(e,t)=>ut.getById(e,ut.getItemHiddenInputId(e,t)),getIndicatorEl:e=>ut.getById(e,ut.getIndicatorId(e)),getFirstEnabledInputEl:e=>{var t;return(t=ut.getRootEl(e))==null?void 0:t.querySelector("input:not(:disabled)")},getFirstEnabledAndCheckedInputEl:e=>{var t;return(t=ut.getRootEl(e))==null?void 0:t.querySelector("input:not(:disabled):checked")},getInputEls:e=>{const t=`input[type=radio][data-ownedby='${CSS.escape(ut.getRootId(e))}']:not([disabled])`;return Eh(ut.getRootEl(e),t)},getActiveRadioEl:e=>{if(e.value)return ut.getById(e,ut.getItemId(e,e.value))},getOffsetRect:e=>({left:e?.offsetLeft??0,top:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0}),getRectById:(e,t)=>{const r=ut.getById(e,ut.getItemId(e,t));if(r)return ut.resolveRect(ut.getOffsetRect(r))},resolveRect:e=>({width:`${e.width}px`,height:`${e.height}px`,left:`${e.left}px`,top:`${e.top}px`})});gi()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value"]);gi()(["value","disabled","invalid"]);var uL=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Di=new WeakMap,Da=new WeakMap,Fa={},Gs=0,of=function(e){return e&&(e.host||of(e.parentNode))},cL=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=of(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},dL=function(e,t,r,n){var a=cL(t,Array.isArray(e)?e:[e]);Fa[r]||(Fa[r]=new WeakMap);var s=Fa[r],u=[],c=new Set,d=new Set(a),h=function(g){!g||c.has(g)||(c.add(g),h(g.parentNode))};a.forEach(h);var m=function(g){!g||d.has(g)||Array.prototype.forEach.call(g.children,function(v){if(c.has(v))m(v);else try{var _=v.getAttribute(n),b=_!==null&&_!=="false",y=(Di.get(v)||0)+1,x=(s.get(v)||0)+1;Di.set(v,y),s.set(v,x),u.push(v),y===1&&b&&Da.set(v,!0),x===1&&v.setAttribute(r,"true"),b||v.setAttribute(n,"true")}catch(A){console.error("aria-hidden: cannot operate on ",v,A)}})};return m(t),c.clear(),Gs++,function(){u.forEach(function(g){var v=Di.get(g)-1,_=s.get(g)-1;Di.set(g,v),s.set(g,_),v||(Da.has(g)||g.removeAttribute(n),Da.delete(g)),_||g.removeAttribute(r)}),Gs--,Gs||(Di=new WeakMap,Di=new WeakMap,Da=new WeakMap,Fa={})}},pL=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=uL(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),dL(n,a,r,"aria-hidden")):function(){return null}},hL=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function fL(e,t={}){const{defer:r=!0}=t,n=r?hL:s=>s(),a=[];return a.push(n(()=>{const s=(typeof e=="function"?e():e).filter(Boolean);a.push(pL(s))})),()=>{a.forEach(s=>s?.())}}function mL(e){const t={each(r){var n;for(let a=0;a<((n=e.frames)==null?void 0:n.length);a+=1){const s=e.frames[a];s&&r(s)}},addEventListener(r,n,a){return t.each(s=>{try{s.document.addEventListener(r,n,a)}catch{}}),()=>{try{t.removeEventListener(r,n,a)}catch{}}},removeEventListener(r,n,a){t.each(s=>{try{s.document.removeEventListener(r,n,a)}catch{}})}};return t}function gL(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(r,n,a)=>{try{t?.addEventListener(r,n,a)}catch{}return()=>{try{t?.removeEventListener(r,n,a)}catch{}}},removeEventListener:(r,n,a)=>{try{t?.removeEventListener(r,n,a)}catch{}}}}var jd="pointerdown.outside",zd="focus.outside";function vL(e){for(const t of e)if(ar(t)&&yh(t))return!0;return!1}var sf=e=>"clientY"in e;function kL(e,t){if(!sf(t)||!e)return!1;const r=e.getBoundingClientRect();return r.width===0||r.height===0?!1:r.top<=t.clientY&&t.clientY<=r.top+r.height&&r.left<=t.clientX&&t.clientX<=r.left+r.width}function Vd(e,t){if(!t||!sf(e))return!1;const r=t.scrollHeight>t.clientHeight&&e.clientX>t.clientWidth,n=t.scrollWidth>t.clientWidth&&e.clientY>t.clientHeight;return r||n}function _L(e,t){const{exclude:r,onFocusOutside:n,onPointerDownOutside:a,onInteractOutside:s,defer:u}=t;if(!e)return;const c=ur(e),d=yr(e),h=mL(d),m=gL(d);function g(A){const T=jr(A);if(!ar(T)||$n(e,T)||kL(e,A)||Vd(A,T))return!1;const S=wh(e);return Vd(A,S)?!1:!(r!=null&&r(T))}const v=new Set;function _(A){function T(){var S;const M=u?zr:V=>V(),O=((S=A.composedPath)==null?void 0:S.call(A))??[A.target];M(()=>{if(!(!e||!g(A))){if(a||s){const V=bd(a,s);e.addEventListener(jd,V,{once:!0})}Ed(e,jd,{bubbles:!1,cancelable:!0,detail:{originalEvent:A,contextmenu:CA(A),focusable:vL(O)}})}})}A.pointerType==="touch"?(v.forEach(S=>S()),v.add(vt(c,"click",T,{once:!0})),v.add(m.addEventListener("click",T,{once:!0})),v.add(h.addEventListener("click",T,{once:!0}))):T()}const b=new Set,y=setTimeout(()=>{b.add(vt(c,"pointerdown",_,!0)),b.add(m.addEventListener("pointerdown",_,!0)),b.add(h.addEventListener("pointerdown",_,!0))},0);function x(A){(u?zr:T=>T())(()=>{if(!(!e||!g(A))){if(n||s){const T=bd(n,s);e.addEventListener(zd,T,{once:!0})}Ed(e,zd,{bubbles:!1,cancelable:!0,detail:{originalEvent:A,contextmenu:!1,focusable:yh(jr(A))}})}})}return b.add(vt(c,"focusin",x,!0)),b.add(m.addEventListener("focusin",x,!0)),b.add(h.addEventListener("focusin",x,!0)),()=>{clearTimeout(y),v.forEach(A=>A()),b.forEach(A=>A())}}function bL(e,t){const{defer:r}=t,n=r?zr:s=>s(),a=[];return a.push(n(()=>{const s=typeof e=="function"?e():e;a.push(_L(s,t))})),()=>{a.forEach(s=>s?.())}}function yL(e,t){const r=n=>{n.key==="Escape"&&(n.isComposing||t==null||t(n))};return vt(ur(e),"keydown",r,{capture:!0})}var qt={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){var t;const r=this.indexOf(e),n=this.topMostPointerBlockingLayer()?this.indexOf((t=this.topMostPointerBlockingLayer())==null?void 0:t.node):-1;return r<n},isTopMost(e){return this.layers[this.count()-1]?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},isInNestedLayer(e,t){return this.getNestedLayers(e).some(r=>$n(r.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>$n(t,e))},add(e){const t=this.layers.push(e);e.node.style.setProperty("--layer-index",`${t}`)},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(r=>r.dismiss()),this.layers.splice(t,1),e.style.removeProperty("--layer-index"))},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e){var t;(t=this.layers[this.indexOf(e)])==null||t.dismiss()},clear(){this.remove(this.layers[0].node)}},Ud;function Zd(){qt.layers.forEach(({node:e})=>{e.style.pointerEvents=qt.isBelowPointerBlockingLayer(e)?"none":"auto"})}function xL(e){e.style.pointerEvents=""}function wL(e,t){const r=ur(e),n=[];if(qt.hasPointerBlockingLayer()&&!r.body.hasAttribute("data-inert")&&(Ud=document.body.style.pointerEvents,queueMicrotask(()=>{r.body.style.pointerEvents="none",r.body.setAttribute("data-inert","")})),t){const a=zS(t,s=>{n.push(MS(s,{pointerEvents:"auto"}))});n.push(a)}return()=>{qt.hasPointerBlockingLayer()||(queueMicrotask(()=>{r.body.style.pointerEvents=Ud,r.body.removeAttribute("data-inert"),r.body.style.length===0&&r.body.removeAttribute("style")}),n.forEach(a=>a()))}}function EL(e,t){if(!e){Ya("[@zag-js/dismissable] node is `null` or `undefined`");return}const{onDismiss:r,pointerBlocking:n,exclude:a,debug:s}=t,u={dismiss:r,node:e,pointerBlocking:n};qt.add(u),Zd();function c(v){var _,b;const y=jr(v.detail.originalEvent);qt.isBelowPointerBlockingLayer(e)||qt.isInBranch(y)||((_=t.onPointerDownOutside)==null||_.call(t,v),(b=t.onInteractOutside)==null||b.call(t,v),!v.defaultPrevented&&(s&&console.log("onPointerDownOutside:",v.detail.originalEvent),r?.()))}function d(v){var _,b;const y=jr(v.detail.originalEvent);qt.isInBranch(y)||((_=t.onFocusOutside)==null||_.call(t,v),(b=t.onInteractOutside)==null||b.call(t,v),!v.defaultPrevented&&(s&&console.log("onFocusOutside:",v.detail.originalEvent),r?.()))}function h(v){var _;qt.isTopMost(e)&&((_=t.onEscapeKeyDown)==null||_.call(t,v),!v.defaultPrevented&&r&&(v.preventDefault(),r()))}function m(v){var _;if(!e)return!1;const b=typeof a=="function"?a():a,y=Array.isArray(b)?b:[b],x=(_=t.persistentElements)==null?void 0:_.map(A=>A()).filter(ar);return x&&y.push(...x),y.some(A=>$n(A,v))||qt.isInNestedLayer(e,v)}const g=[n?wL(e,t.persistentElements):void 0,yL(e,h),bL(e,{exclude:m,onFocusOutside:d,onPointerDownOutside:c,defer:t.defer})];return()=>{qt.remove(e),Zd(),xL(e),g.forEach(v=>v?.())}}function TL(e,t){const{defer:r}=t,n=r?zr:s=>s(),a=[];return a.push(n(()=>{const s=Wn(e)?e():e;a.push(EL(s,t))})),()=>{a.forEach(s=>s?.())}}var Ys="data-scroll-lock";function Hd(e,t){if(!e)return;const r=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=r}}function SL(e,t,r){if(!e)return;const n=e.style.getPropertyValue(t);return e.style.setProperty(t,r),()=>{n?e.style.setProperty(t,n):e.style.removeProperty(t)}}function AL(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function CL(e){const t=e??document,r=t.defaultView??window,{documentElement:n,body:a}=t;if(a.hasAttribute(Ys))return;a.setAttribute(Ys,"");const s=r.innerWidth-n.clientWidth,u=()=>SL(n,"--scrollbar-width",`${s}px`),c=AL(n),d=()=>Hd(a,{overflow:"hidden",[c]:`${s}px`}),h=()=>{const{scrollX:g,scrollY:v,visualViewport:_}=r,b=_?.offsetLeft??0,y=_?.offsetTop??0,x=Hd(a,{position:"fixed",overflow:"hidden",top:`${-(v-Math.floor(y))}px`,left:`${-(g-Math.floor(b))}px`,right:"0",[c]:`${s}px`});return()=>{x?.(),r.scrollTo({left:g,top:v,behavior:"instant"})}},m=[u(),fu()?h():d()];return()=>{m.forEach(g=>g?.()),a.removeAttribute(Ys)}}/*!
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kvass/widgets",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@kvass/map": "^1.0.19",
|
|
17
17
|
"@kvass/storage": "^1.1.0",
|
|
18
18
|
"@kvass/ui": "1.6.47",
|
|
19
|
-
"@kvass/vue3-flatfinder": "^1.0.
|
|
19
|
+
"@kvass/vue3-flatfinder": "^1.0.63",
|
|
20
20
|
"@vueuse/core": "^10.9.0",
|
|
21
21
|
"chart.js": "^4.4.2",
|
|
22
22
|
"chartjs-plugin-datalabels": "^2.2.0",
|