@timum/booking 1.13.0 → 1.13.2
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/build/booking.js +43 -27
- package/build/booking.umd.cjs +3 -3
- package/build/component/booking.js +43 -27
- package/build/component/booking.umd.cjs +3 -3
- package/package.json +2 -2
package/build/booking.umd.cjs
CHANGED
|
@@ -141,7 +141,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
141
141
|
animation: ${0} 1.4s linear infinite;
|
|
142
142
|
`),Fle)),Ule=ce("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Hle=ce("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ke(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>N({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Ed(hD||(hD=cy`
|
|
143
143
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
144
|
-
`),jle)),xS=R.forwardRef(function(t,n){const r=We({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,size:a=40,style:l,thickness:u=3.6,value:c=0,variant:f="indeterminate"}=r,m=be(r,Lle),p=N({},r,{color:o,disableShrink:s,size:a,thickness:u,value:c,variant:f}),g=zle(p),v={},w={},b={};if(f==="determinate"){const y=2*Math.PI*((sl-u)/2);v.strokeDasharray=y.toFixed(3),b["aria-valuenow"]=Math.round(c),v.strokeDashoffset=`${((100-c)/100*y).toFixed(3)}px`,w.transform="rotate(-90deg)"}return $.jsx(Ble,N({className:Ee(g.root,i),style:N({width:a,height:a},w,l),ownerState:p,ref:n,role:"progressbar"},b,m,{children:$.jsx(Ule,{className:g.svg,ownerState:p,viewBox:`${sl/2} ${sl/2} ${sl} ${sl}`,children:$.jsx(Hle,{className:g.circle,style:v,ownerState:p,cx:sl,cy:sl,r:(sl-u)/2,fill:"none",strokeWidth:u})})}))});function wS({visible:e,backdropSx:t,circleSx:n,size:r,children:i}){return $.jsxs(ti,{sx:{position:"relative"},children:[$.jsx(bS,{sx:{height:"100%",width:"100%",position:"absolute",pointerEvents:e?"all":"none",backgroundColor:"#ffffffc5",zIndex:o=>o.zIndex.drawer+1,...t},open:e,children:$.jsx(xS,{color:"secondary",size:r,sx:{zIndex:o=>o.zIndex.drawer+2,...n}})}),i]})}wS.propTypes={visible:nt.bool.isRequired,color:nt.string,area:nt.string};function Vle(e){return Ue("MuiTypography",e)}He("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Wle=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Gle=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,a={root:["root",o,e.align!=="inherit"&&`align${ke(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Ve(a,Vle,s)},qle=ce("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ke(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>N({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),mD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Yle={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Kle=e=>Yle[e]||e,Me=R.forwardRef(function(t,n){const r=We({props:t,name:"MuiTypography"}),i=Kle(r.color),o=Vh(N({},r,{color:i})),{align:s="inherit",className:a,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:m="body1",variantMapping:p=mD}=o,g=be(o,Wle),v=N({},o,{align:s,color:i,className:a,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:m,variantMapping:p}),w=l||(f?"p":p[m]||mD[m])||"span",b=Gle(v);return $.jsx(qle,N({as:w,ref:n,ownerState:v,className:Ee(b.root,a)},g))});function Zle(e){return Ue("MuiLink",e)}const Qle=He("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),gD={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Jle=e=>gD[e]||e,Xle=({theme:e,ownerState:t})=>{const n=Jle(t.color),r=kd(e,`palette.${n}`,!1)||t.color,i=kd(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Bt(r,.4)},eue=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],tue=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${ke(i)}`,n==="button"&&"button",r&&"focusVisible"]};return Ve(o,Zle,t)},nue=ce(Me,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ke(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>N({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&N({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:Xle({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Qle.focusVisible}`]:{outline:"auto"}})),Iu=R.forwardRef(function(t,n){const r=We({props:t,name:"MuiLink"}),{className:i,color:o="primary",component:s="a",onBlur:a,onFocus:l,TypographyClasses:u,underline:c="always",variant:f="inherit",sx:m}=r,p=be(r,eue),{isFocusVisibleRef:g,onBlur:v,onFocus:w,ref:b}=Z4(),[y,S]=R.useState(!1),C=Mn(n,b),T=O=>{v(O),g.current===!1&&S(!1),a&&a(O)},E=O=>{w(O),g.current===!0&&S(!0),l&&l(O)},A=N({},r,{color:o,component:s,focusVisible:y,underline:c,variant:f}),_=tue(A);return $.jsx(nue,N({color:o,className:Ee(_.root,i),classes:u,component:s,onBlur:T,onFocus:E,ref:C,ownerState:A,variant:f,sx:[...Object.keys(gD).includes(o)?[]:[{color:o}],...Array.isArray(m)?m:[m]]},p))});function vD(){return $.jsx(ti,{sx:{height:"28px !important",width:"100% !important",position:"sticky !important",bottom:"0 !important",left:"0 !important",display:"flex",backgroundColor:"#fff",borderTopLeftRadius:e=>`${e.shape.borderRadius}px`,borderTopRightRadius:e=>`${e.shape.borderRadius}px`,zIndex:e=>e.zIndex.drawer-1},children:$.jsx(me,{container:!0,justifyContent:"flex-end",alignContent:"center",sx:{height:"inherit",pr:2},children:$.jsx(me,{item:!0,children:$.jsxs(Iu,{color:"text.secondary",variant:"caption",underline:"none",target:"_blank",href:`https://timum.de?utm_medium=link&utm_source=${window.location.hostname.replace(/\./g,"-")}&utm_campaign=bookingjs2&utm_content=powered-by`,sx:{pr:1,fontSize:"10px !important",lineHeight:"20px !important",position:"static!important",display:"block!important",visibility:"visible!important",opacity:"1.0!important"},children:["powered by"," ",$.jsx(ti,{fontWeight:900,display:"inline",children:"timum"})]})})})})}vD.propTypes={};class Nu extends Error{}class rue extends Nu{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class iue extends Nu{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class oue extends Nu{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class s0 extends Nu{}class yD extends Nu{constructor(t){super(`Invalid unit ${t}`)}}class Ki extends Nu{}class al extends Nu{constructor(){super("Zone is an abstract class")}}const Ae="numeric",To="short",wi="long",SS={year:Ae,month:Ae,day:Ae},bD={year:Ae,month:To,day:Ae},sue={year:Ae,month:To,day:Ae,weekday:To},xD={year:Ae,month:wi,day:Ae},wD={year:Ae,month:wi,day:Ae,weekday:wi},SD={hour:Ae,minute:Ae},CD={hour:Ae,minute:Ae,second:Ae},$D={hour:Ae,minute:Ae,second:Ae,timeZoneName:To},TD={hour:Ae,minute:Ae,second:Ae,timeZoneName:wi},ED={hour:Ae,minute:Ae,hourCycle:"h23"},kD={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23"},AD={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23",timeZoneName:To},RD={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23",timeZoneName:wi},_D={year:Ae,month:Ae,day:Ae,hour:Ae,minute:Ae},OD={year:Ae,month:Ae,day:Ae,hour:Ae,minute:Ae,second:Ae},PD={year:Ae,month:To,day:Ae,hour:Ae,minute:Ae},DD={year:Ae,month:To,day:Ae,hour:Ae,minute:Ae,second:Ae},aue={year:Ae,month:To,day:Ae,weekday:To,hour:Ae,minute:Ae},MD={year:Ae,month:wi,day:Ae,hour:Ae,minute:Ae,timeZoneName:To},ID={year:Ae,month:wi,day:Ae,hour:Ae,minute:Ae,second:Ae,timeZoneName:To},ND={year:Ae,month:wi,day:Ae,weekday:wi,hour:Ae,minute:Ae,timeZoneName:wi},LD={year:Ae,month:wi,day:Ae,weekday:wi,hour:Ae,minute:Ae,second:Ae,timeZoneName:wi};function vt(e){return typeof e>"u"}function Lu(e){return typeof e=="number"}function dy(e){return typeof e=="number"&&e%1===0}function lue(e){return typeof e=="string"}function uue(e){return Object.prototype.toString.call(e)==="[object Date]"}function FD(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function cue(e){return Array.isArray(e)?e:[e]}function jD(e,t,n){if(e.length!==0)return e.reduce((r,i)=>{const o=[t(i),i];return r&&n(r[0],o[0])===r[0]?r:o},null)[1]}function due(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function Wd(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Bs(e,t,n){return dy(e)&&e>=t&&e<=n}function fue(e,t){return e-t*Math.floor(e/t)}function In(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function ll(e){if(!(vt(e)||e===null||e===""))return parseInt(e,10)}function Fu(e){if(!(vt(e)||e===null||e===""))return parseFloat(e)}function CS(e){if(!(vt(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function $S(e,t,n=!1){const r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function a0(e){return e%4===0&&(e%100!==0||e%400===0)}function l0(e){return a0(e)?366:365}function fy(e,t){const n=fue(t-1,12)+1,r=e+(t-n)/12;return n===2?a0(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function TS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(t.getUTCFullYear()-1900)),+t}function py(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return t===4||r===3?53:52}function ES(e){return e>99?e:e>60?1900+e:2e3+e}function zD(e,t,n,r=null){const i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);const s={timeZoneName:t,...o},a=new Intl.DateTimeFormat(n,s).formatToParts(i).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function hy(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function BD(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new Ki(`Invalid unit value ${e}`);return t}function my(e,t){const n={};for(const r in e)if(Wd(e,r)){const i=e[r];if(i==null)continue;n[t(r)]=BD(i)}return n}function u0(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${In(n,2)}:${In(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${In(n,2)}${In(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function gy(e){return due(e,["hour","minute","second","millisecond"])}const UD=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,pue=["January","February","March","April","May","June","July","August","September","October","November","December"],HD=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],hue=["J","F","M","A","M","J","J","A","S","O","N","D"];function VD(e){switch(e){case"narrow":return[...hue];case"short":return[...HD];case"long":return[...pue];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const WD=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],GD=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],mue=["M","T","W","T","F","S","S"];function qD(e){switch(e){case"narrow":return[...mue];case"short":return[...GD];case"long":return[...WD];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const YD=["AM","PM"],gue=["Before Christ","Anno Domini"],vue=["BC","AD"],yue=["B","A"];function KD(e){switch(e){case"narrow":return[...yue];case"short":return[...vue];case"long":return[...gue];default:return null}}function bue(e){return YD[e.hour<12?0:1]}function xue(e,t){return qD(t)[e.weekday-1]}function wue(e,t){return VD(t)[e.month-1]}function Sue(e,t){return KD(t)[e.year<0?0:1]}function Cue(e,t,n="always",r=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&o){const f=e==="days";switch(t){case 1:return f?"tomorrow":`next ${i[e][0]}`;case-1:return f?"yesterday":`last ${i[e][0]}`;case 0:return f?"today":`this ${i[e][0]}`}}const s=Object.is(t,-0)||t<0,a=Math.abs(t),l=a===1,u=i[e],c=r?l?u[1]:u[2]||u[1]:l?i[e][0]:e;return s?`${a} ${c} ago`:`in ${a} ${c}`}function ZD(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const $ue={D:SS,DD:bD,DDD:xD,DDDD:wD,t:SD,tt:CD,ttt:$D,tttt:TD,T:ED,TT:kD,TTT:AD,TTTT:RD,f:_D,ff:PD,fff:MD,ffff:ND,F:OD,FF:DD,FFF:ID,FFFF:LD};let Us=class ag{static create(t,n={}){return new ag(t,n)}static parseFormat(t){let n=null,r="",i=!1;const o=[];for(let s=0;s<t.length;s++){const a=t.charAt(s);a==="'"?(r.length>0&&o.push({literal:i,val:r}),n=null,r="",i=!i):i||a===n?r+=a:(r.length>0&&o.push({literal:!1,val:r}),r=a,n=a)}return r.length>0&&o.push({literal:i,val:r}),o}static macroTokenToFormatOpts(t){return $ue[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}formatDateTime(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n}).format()}formatDateTimeParts(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n}).formatToParts()}resolvedOptions(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n}).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return In(t,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(p,g)=>this.loc.extract(t,p,g),s=p=>t.isOffsetFixed&&t.offset===0&&p.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,p.format):"",a=()=>r?bue(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(p,g)=>r?wue(t,p):o(g?{month:p}:{month:p,day:"numeric"},"month"),u=(p,g)=>r?xue(t,p):o(g?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),c=p=>{const g=ag.macroTokenToFormatOpts(p);return g?this.formatWithSystemDefault(t,g):p},f=p=>r?Sue(t,p):o({era:p},"era"),m=p=>{switch(p){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return a();case"d":return i?o({day:"numeric"},"day"):this.num(t.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(t.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(t.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return c(p)}};return ZD(ag.parseFormat(n),m)}formatDurationFromString(t,n){const r=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=l=>u=>{const c=r(u);return c?this.num(l.get(c),u.length):u},o=ag.parseFormat(n),s=o.reduce((l,{literal:u,val:c})=>u?l:l.concat(c),[]),a=t.shiftTo(...s.map(r).filter(l=>l));return ZD(o,i(a))}};class Eo{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class c0{get type(){throw new al}get name(){throw new al}get ianaName(){return this.name}get isUniversal(){throw new al}offsetName(t,n){throw new al}formatOffset(t,n){throw new al}offset(t){throw new al}equals(t){throw new al}get isValid(){throw new al}}let kS=null;class AS extends c0{static get instance(){return kS===null&&(kS=new AS),kS}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return zD(t,n,r)}formatOffset(t,n){return u0(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let vy={};function Tue(e){return vy[e]||(vy[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),vy[e]}const Eue={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function kue(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,o,s,a,l,u,c]=r;return[s,i,o,a,l,u,c]}function Aue(e,t){const n=e.formatToParts(t),r=[];for(let i=0;i<n.length;i++){const{type:o,value:s}=n[i],a=Eue[o];o==="era"?r[a]=s:vt(a)||(r[a]=parseInt(s,10))}return r}let yy={};class Hs extends c0{static create(t){return yy[t]||(yy[t]=new Hs(t)),yy[t]}static resetCache(){yy={},vy={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=Hs.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return zD(t,n,r,this.name)}formatOffset(t,n){return u0(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const r=Tue(this.name);let[i,o,s,a,l,u,c]=r.formatToParts?Aue(r,n):kue(r,n);a==="BC"&&(i=-Math.abs(i)+1);const m=TS({year:i,month:o,day:s,hour:l===24?0:l,minute:u,second:c,millisecond:0});let p=+n;const g=p%1e3;return p-=g>=0?g:1e3+g,(m-p)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let RS=null;class Pr extends c0{static get utcInstance(){return RS===null&&(RS=new Pr(0)),RS}static instance(t){return t===0?Pr.utcInstance:new Pr(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Pr(hy(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${u0(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${u0(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return u0(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class Rue extends c0{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ul(e,t){if(vt(e)||e===null)return t;if(e instanceof c0)return e;if(lue(e)){const n=e.toLowerCase();return n==="local"||n==="system"?t:n==="utc"||n==="gmt"?Pr.utcInstance:Pr.parseSpecifier(n)||Hs.create(e)}else return Lu(e)?Pr.instance(e):typeof e=="object"&&e.offset&&typeof e.offset=="number"?e:new Rue(e)}let QD=()=>Date.now(),JD="system",XD=null,eM=null,tM=null,nM;class An{static get now(){return QD}static set now(t){QD=t}static set defaultZone(t){JD=t}static get defaultZone(){return ul(JD,AS.instance)}static get defaultLocale(){return XD}static set defaultLocale(t){XD=t}static get defaultNumberingSystem(){return eM}static set defaultNumberingSystem(t){eM=t}static get defaultOutputCalendar(){return tM}static set defaultOutputCalendar(t){tM=t}static get throwOnInvalid(){return nM}static set throwOnInvalid(t){nM=t}static resetCaches(){fn.resetCache(),Hs.resetCache()}}let rM={};function _ue(e,t={}){const n=JSON.stringify([e,t]);let r=rM[n];return r||(r=new Intl.ListFormat(e,t),rM[n]=r),r}let _S={};function OS(e,t={}){const n=JSON.stringify([e,t]);let r=_S[n];return r||(r=new Intl.DateTimeFormat(e,t),_S[n]=r),r}let PS={};function Oue(e,t={}){const n=JSON.stringify([e,t]);let r=PS[n];return r||(r=new Intl.NumberFormat(e,t),PS[n]=r),r}let DS={};function Pue(e,t={}){const{base:n,...r}=t,i=JSON.stringify([e,r]);let o=DS[i];return o||(o=new Intl.RelativeTimeFormat(e,t),DS[i]=o),o}let d0=null;function Due(){return d0||(d0=new Intl.DateTimeFormat().resolvedOptions().locale,d0)}function Mue(e){const t=e.indexOf("-u-");if(t===-1)return[e];{let n;const r=e.substring(0,t);try{n=OS(e).resolvedOptions()}catch{n=OS(r).resolvedOptions()}const{numberingSystem:i,calendar:o}=n;return[r,i,o]}}function Iue(e,t,n){return(n||t)&&(e+="-u",n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function Nue(e){const t=[];for(let n=1;n<=12;n++){const r=Ie.utc(2016,n,1);t.push(e(r))}return t}function Lue(e){const t=[];for(let n=1;n<=7;n++){const r=Ie.utc(2016,11,13+n);t.push(e(r))}return t}function by(e,t,n,r,i){const o=e.listingMode(n);return o==="error"?null:o==="en"?r(t):i(t)}function Fue(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class jue{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:i,floor:o,...s}=r;if(!n||Object.keys(s).length>0){const a={useGrouping:!1,...r};r.padTo>0&&(a.minimumIntegerDigits=r.padTo),this.inf=Oue(t,a)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):$S(t,3);return In(n,this.padTo)}}}class zue{constructor(t,n,r){this.opts=r;let i;if(t.zone.isUniversal){const s=-1*(t.offset/60),a=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&Hs.create(a).valid?(i=a,this.dt=t):(i="UTC",r.timeZoneName?this.dt=t:this.dt=t.offset===0?t:Ie.fromMillis(t.ts+t.offset*60*1e3))}else t.zone.type==="system"?this.dt=t:(this.dt=t,i=t.zone.name);const o={...this.opts};i&&(o.timeZone=i),this.dtf=OS(n,o)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class Bue{constructor(t,n,r){this.opts={style:"long",...r},!n&&FD()&&(this.rtf=Pue(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):Cue(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}class fn{static fromOpts(t){return fn.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,n,r,i=!1){const o=t||An.defaultLocale,s=o||(i?"en-US":Due()),a=n||An.defaultNumberingSystem,l=r||An.defaultOutputCalendar;return new fn(s,a,l,o)}static resetCache(){d0=null,_S={},PS={},DS={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:r}={}){return fn.create(t,n,r)}constructor(t,n,r,i){const[o,s,a]=Mue(t);this.locale=o,this.numberingSystem=n||s||null,this.outputCalendar=r||a||null,this.intl=Iue(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Fue(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:fn.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1,r=!0){return by(this,t,r,VD,()=>{const i=n?{month:t,day:"numeric"}:{month:t},o=n?"format":"standalone";return this.monthsCache[o][t]||(this.monthsCache[o][t]=Nue(s=>this.extract(s,i,"month"))),this.monthsCache[o][t]})}weekdays(t,n=!1,r=!0){return by(this,t,r,qD,()=>{const i=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},o=n?"format":"standalone";return this.weekdaysCache[o][t]||(this.weekdaysCache[o][t]=Lue(s=>this.extract(s,i,"weekday"))),this.weekdaysCache[o][t]})}meridiems(t=!0){return by(this,void 0,t,()=>YD,()=>{if(!this.meridiemCache){const n={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ie.utc(2016,11,13,9),Ie.utc(2016,11,13,19)].map(r=>this.extract(r,n,"dayperiod"))}return this.meridiemCache})}eras(t,n=!0){return by(this,t,n,KD,()=>{const r={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ie.utc(-40,1,1),Ie.utc(2017,1,1)].map(i=>this.extract(i,r,"era"))),this.eraCache[t]})}extract(t,n,r){const i=this.dtFormatter(t,n),o=i.formatToParts(),s=o.find(a=>a.type.toLowerCase()===r);return s?s.value:null}numberFormatter(t={}){return new jue(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new zue(t,this.intl,n)}relFormatter(t={}){return new Bue(this.intl,this.isEnglish(),t)}listFormatter(t={}){return _ue(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}function Gd(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function qd(...e){return t=>e.reduce(([n,r,i],o)=>{const[s,a,l]=o(t,i);return[{...n,...s},a||r,l]},[{},null,1]).slice(0,2)}function Yd(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const i=n.exec(e);if(i)return r(i)}return[null,null]}function iM(...e){return(t,n)=>{const r={};let i;for(i=0;i<e.length;i++)r[e[i]]=ll(t[n+i]);return[r,null,n+i]}}const oM=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Uue=`(?:${oM.source}?(?:\\[(${UD.source})\\])?)?`,MS=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,sM=RegExp(`${MS.source}${Uue}`),IS=RegExp(`(?:T${sM.source})?`),Hue=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Vue=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Wue=/(\d{4})-?(\d{3})/,Gue=iM("weekYear","weekNumber","weekDay"),que=iM("year","ordinal"),Yue=/(\d{4})-(\d\d)-(\d\d)/,aM=RegExp(`${MS.source} ?(?:${oM.source}|(${UD.source}))?`),Kue=RegExp(`(?: ${aM.source})?`);function Kd(e,t,n){const r=e[t];return vt(r)?n:ll(r)}function Zue(e,t){return[{year:Kd(e,t),month:Kd(e,t+1,1),day:Kd(e,t+2,1)},null,t+3]}function Zd(e,t){return[{hours:Kd(e,t,0),minutes:Kd(e,t+1,0),seconds:Kd(e,t+2,0),milliseconds:CS(e[t+3])},null,t+4]}function f0(e,t){const n=!e[t]&&!e[t+1],r=hy(e[t+1],e[t+2]),i=n?null:Pr.instance(r);return[{},i,t+3]}function p0(e,t){const n=e[t]?Hs.create(e[t]):null;return[{},n,t+1]}const Que=RegExp(`^T?${MS.source}$`),Jue=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Xue(e){const[t,n,r,i,o,s,a,l,u]=e,c=t[0]==="-",f=l&&l[0]==="-",m=(p,g=!1)=>p!==void 0&&(g||p&&c)?-p:p;return[{years:m(Fu(n)),months:m(Fu(r)),weeks:m(Fu(i)),days:m(Fu(o)),hours:m(Fu(s)),minutes:m(Fu(a)),seconds:m(Fu(l),l==="-0"),milliseconds:m(CS(u),f)}]}const ece={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function NS(e,t,n,r,i,o,s){const a={year:t.length===2?ES(ll(t)):ll(t),month:HD.indexOf(n)+1,day:ll(r),hour:ll(i),minute:ll(o)};return s&&(a.second=ll(s)),e&&(a.weekday=e.length>3?WD.indexOf(e)+1:GD.indexOf(e)+1),a}const tce=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function nce(e){const[,t,n,r,i,o,s,a,l,u,c,f]=e,m=NS(t,i,r,n,o,s,a);let p;return l?p=ece[l]:u?p=0:p=hy(c,f),[m,new Pr(p)]}function rce(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const ice=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,oce=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,sce=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function lM(e){const[,t,n,r,i,o,s,a]=e;return[NS(t,i,r,n,o,s,a),Pr.utcInstance]}function ace(e){const[,t,n,r,i,o,s,a]=e;return[NS(t,a,n,r,i,o,s),Pr.utcInstance]}const lce=Gd(Hue,IS),uce=Gd(Vue,IS),cce=Gd(Wue,IS),dce=Gd(sM),uM=qd(Zue,Zd,f0,p0),fce=qd(Gue,Zd,f0,p0),pce=qd(que,Zd,f0,p0),hce=qd(Zd,f0,p0);function mce(e){return Yd(e,[lce,uM],[uce,fce],[cce,pce],[dce,hce])}function gce(e){return Yd(rce(e),[tce,nce])}function vce(e){return Yd(e,[ice,lM],[oce,lM],[sce,ace])}function yce(e){return Yd(e,[Jue,Xue])}const bce=qd(Zd);function xce(e){return Yd(e,[Que,bce])}const wce=Gd(Yue,Kue),Sce=Gd(aM),Cce=qd(Zd,f0,p0);function $ce(e){return Yd(e,[wce,uM],[Sce,Cce])}const Tce="Invalid Duration",cM={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Ece={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...cM},Zi=146097/400,Qd=146097/4800,kce={years:{quarters:4,months:12,weeks:Zi/7,days:Zi,hours:Zi*24,minutes:Zi*24*60,seconds:Zi*24*60*60,milliseconds:Zi*24*60*60*1e3},quarters:{months:3,weeks:Zi/28,days:Zi/4,hours:Zi*24/4,minutes:Zi*24*60/4,seconds:Zi*24*60*60/4,milliseconds:Zi*24*60*60*1e3/4},months:{weeks:Qd/7,days:Qd,hours:Qd*24,minutes:Qd*24*60,seconds:Qd*24*60*60,milliseconds:Qd*24*60*60*1e3},...cM},ju=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Ace=ju.slice(0).reverse();function zu(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new St(r)}function Rce(e){return e<0?Math.floor(e):Math.ceil(e)}function dM(e,t,n,r,i){const o=e[i][n],s=t[n]/o,a=Math.sign(s)===Math.sign(r[i]),l=!a&&r[i]!==0&&Math.abs(s)<=1?Rce(s):Math.trunc(s);r[i]+=l,t[n]-=l*o}function _ce(e,t){Ace.reduce((n,r)=>vt(t[r])?n:(n&&dM(e,t,n,t,r),r),null)}class St{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;this.values=t.values,this.loc=t.loc||fn.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n?kce:Ece,this.isLuxonDuration=!0}static fromMillis(t,n){return St.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new Ki(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new St({values:my(t,St.normalizeUnit),loc:fn.fromObject(n),conversionAccuracy:n.conversionAccuracy})}static fromDurationLike(t){if(Lu(t))return St.fromMillis(t);if(St.isDuration(t))return t;if(typeof t=="object")return St.fromObject(t);throw new Ki(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=yce(t);return r?St.fromObject(r,n):St.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=xce(t);return r?St.fromObject(r,n):St.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new Ki("need to specify a reason the Duration is invalid");const r=t instanceof Eo?t:new Eo(t,n);if(An.throwOnInvalid)throw new oue(r);return new St({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new yD(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?Us.create(this.loc,r).formatDurationFromString(this,t):Tce}toHuman(t={}){const n=ju.map(r=>{const i=this.values[r];return vt(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:r.slice(0,-1)}).format(i)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=$S(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();if(n<0||n>=864e5)return null;t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t};const r=this.shiftTo("hours","minutes","seconds","milliseconds");let i=t.format==="basic"?"hhmm":"hh:mm";(!t.suppressSeconds||r.seconds!==0||r.milliseconds!==0)&&(i+=t.format==="basic"?"ss":":ss",(!t.suppressMilliseconds||r.milliseconds!==0)&&(i+=".SSS"));let o=r.toFormat(i);return t.includePrefix&&(o="T"+o),o}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=St.fromDurationLike(t),r={};for(const i of ju)(Wd(n.values,i)||Wd(this.values,i))&&(r[i]=n.get(i)+this.get(i));return zu(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=St.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=BD(t(this.values[r],r));return zu(this,{values:n},!0)}get(t){return this[St.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...my(t,St.normalizeUnit)};return zu(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r}={}){const i=this.loc.clone({locale:t,numberingSystem:n}),o={loc:i};return r&&(o.conversionAccuracy=r),zu(this,o)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return _ce(this.matrix,t),zu(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(s=>St.normalizeUnit(s));const n={},r={},i=this.toObject();let o;for(const s of ju)if(t.indexOf(s)>=0){o=s;let a=0;for(const u in r)a+=this.matrix[u][s]*r[u],r[u]=0;Lu(i[s])&&(a+=i[s]);const l=Math.trunc(a);n[s]=l,r[s]=(a*1e3-l*1e3)/1e3;for(const u in i)ju.indexOf(u)>ju.indexOf(s)&&dM(this.matrix,i,u,n,s)}else Lu(i[s])&&(r[s]=i[s]);for(const s in r)r[s]!==0&&(n[o]+=s===o?r[s]:r[s]/this.matrix[o][s]);return zu(this,{values:n},!0).normalize()}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return zu(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,i){return r===void 0||r===0?i===void 0||i===0:r===i}for(const r of ju)if(!n(this.values[r],t.values[r]))return!1;return!0}}const h0="Invalid Interval";function Oce(e,t){return!e||!e.isValid?xn.invalid("missing or invalid start"):!t||!t.isValid?xn.invalid("missing or invalid end"):t<e?xn.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class xn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new Ki("need to specify a reason the Interval is invalid");const r=t instanceof Eo?t:new Eo(t,n);if(An.throwOnInvalid)throw new iue(r);return new xn({invalid:r})}static fromDateTimes(t,n){const r=v0(t),i=v0(n),o=Oce(r,i);return o??new xn({start:r,end:i})}static after(t,n){const r=St.fromDurationLike(n),i=v0(t);return xn.fromDateTimes(i,i.plus(r))}static before(t,n){const r=St.fromDurationLike(n),i=v0(t);return xn.fromDateTimes(i.minus(r),i)}static fromISO(t,n){const[r,i]=(t||"").split("/",2);if(r&&i){let o,s;try{o=Ie.fromISO(r,n),s=o.isValid}catch{s=!1}let a,l;try{a=Ie.fromISO(i,n),l=a.isValid}catch{l=!1}if(s&&l)return xn.fromDateTimes(o,a);if(s){const u=St.fromISO(i,n);if(u.isValid)return xn.after(o,u)}else if(l){const u=St.fromISO(r,n);if(u.isValid)return xn.before(a,u)}}return xn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(t),r=this.end.startOf(t);return Math.floor(r.diff(n,t).get(t))+1}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?xn.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(v0).filter(s=>this.contains(s)).sort(),r=[];let{s:i}=this,o=0;for(;i<this.e;){const s=n[o]||this.e,a=+s>+this.e?this.e:s;r.push(xn.fromDateTimes(i,a)),i=a,o+=1}return r}splitBy(t){const n=St.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,i=1,o;const s=[];for(;r<this.e;){const a=this.start.plus(n.mapUnits(l=>l*i));o=+a>+this.e?this.e:a,s.push(xn.fromDateTimes(r,o)),r=o,i+=1}return s}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:xn.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return xn.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((i,o)=>i.s-o.s).reduce(([i,o],s)=>o?o.overlaps(s)||o.abutsStart(s)?[i,o.union(s)]:[i.concat([o]),s]:[i,s],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const i=[],o=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...o),a=s.sort((l,u)=>l.time-u.time);for(const l of a)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&i.push(xn.fromDateTimes(n,l.time)),n=null);return xn.merge(i)}difference(...t){return xn.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:h0}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:h0}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:h0}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:h0}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:h0}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):St.invalid(this.invalidReason)}mapEndpoints(t){return xn.fromDateTimes(t(this.s),t(this.e))}}class xy{static hasDST(t=An.defaultZone){const n=Ie.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return Hs.isValidZone(t)}static normalizeZone(t){return ul(t,An.defaultZone)}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||fn.create(n,r,o)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||fn.create(n,r,o)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||fn.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||fn.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return fn.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return fn.create(n,null,"gregory").eras(t)}static features(){return{relative:FD()}}}function fM(e,t){const n=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(St.fromMillis(r).as("days"))}function Pce(e,t,n){const r=[["years",(a,l)=>l.year-a.year],["quarters",(a,l)=>l.quarter-a.quarter],["months",(a,l)=>l.month-a.month+(l.year-a.year)*12],["weeks",(a,l)=>{const u=fM(a,l);return(u-u%7)/7}],["days",fM]],i={};let o,s;for(const[a,l]of r)if(n.indexOf(a)>=0){o=a;let u=l(e,t);s=e.plus({[a]:u}),s>t?(e=e.plus({[a]:u-1}),u-=1):e=s,i[a]=u}return[e,i,s,o]}function Dce(e,t,n,r){let[i,o,s,a]=Pce(e,t,n);const l=t-i,u=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);u.length===0&&(s<t&&(s=i.plus({[a]:1})),s!==i&&(o[a]=(o[a]||0)+l/(s-i)));const c=St.fromObject(o,r);return u.length>0?St.fromMillis(l,r).shiftTo(...u).plus(c):c}const LS={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},pM={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Mce=LS.hanidec.replace(/[\[|\]]/g,"").split("");function Ice(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(LS.hanidec)!==-1)t+=Mce.indexOf(e[n]);else for(const i in pM){const[o,s]=pM[i];r>=o&&r<=s&&(t+=r-o)}}return parseInt(t,10)}else return t}function ko({numberingSystem:e},t=""){return new RegExp(`${LS[e||"latn"]}${t}`)}const Nce="missing Intl.DateTimeFormat.formatToParts support";function kt(e,t=n=>n){return{regex:e,deser:([n])=>t(Ice(n))}}const hM=`[ ${String.fromCharCode(160)}]`,mM=new RegExp(hM,"g");function Lce(e){return e.replace(/\./g,"\\.?").replace(mM,hM)}function gM(e){return e.replace(/\./g,"").replace(mM," ").toLowerCase()}function Ao(e,t){return e===null?null:{regex:RegExp(e.map(Lce).join("|")),deser:([n])=>e.findIndex(r=>gM(n)===gM(r))+t}}function vM(e,t){return{regex:e,deser:([,n,r])=>hy(n,r),groups:t}}function FS(e){return{regex:e,deser:([t])=>t}}function Fce(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function jce(e,t){const n=ko(t),r=ko(t,"{2}"),i=ko(t,"{3}"),o=ko(t,"{4}"),s=ko(t,"{6}"),a=ko(t,"{1,2}"),l=ko(t,"{1,3}"),u=ko(t,"{1,6}"),c=ko(t,"{1,9}"),f=ko(t,"{2,4}"),m=ko(t,"{4,6}"),p=w=>({regex:RegExp(Fce(w.val)),deser:([b])=>b,literal:!0}),v=(w=>{if(e.literal)return p(w);switch(w.val){case"G":return Ao(t.eras("short",!1),0);case"GG":return Ao(t.eras("long",!1),0);case"y":return kt(u);case"yy":return kt(f,ES);case"yyyy":return kt(o);case"yyyyy":return kt(m);case"yyyyyy":return kt(s);case"M":return kt(a);case"MM":return kt(r);case"MMM":return Ao(t.months("short",!0,!1),1);case"MMMM":return Ao(t.months("long",!0,!1),1);case"L":return kt(a);case"LL":return kt(r);case"LLL":return Ao(t.months("short",!1,!1),1);case"LLLL":return Ao(t.months("long",!1,!1),1);case"d":return kt(a);case"dd":return kt(r);case"o":return kt(l);case"ooo":return kt(i);case"HH":return kt(r);case"H":return kt(a);case"hh":return kt(r);case"h":return kt(a);case"mm":return kt(r);case"m":return kt(a);case"q":return kt(a);case"qq":return kt(r);case"s":return kt(a);case"ss":return kt(r);case"S":return kt(l);case"SSS":return kt(i);case"u":return FS(c);case"uu":return FS(a);case"uuu":return kt(n);case"a":return Ao(t.meridiems(),0);case"kkkk":return kt(o);case"kk":return kt(f,ES);case"W":return kt(a);case"WW":return kt(r);case"E":case"c":return kt(n);case"EEE":return Ao(t.weekdays("short",!1,!1),1);case"EEEE":return Ao(t.weekdays("long",!1,!1),1);case"ccc":return Ao(t.weekdays("short",!0,!1),1);case"cccc":return Ao(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return vM(new RegExp(`([+-]${a.source})(?::(${r.source}))?`),2);case"ZZZ":return vM(new RegExp(`([+-]${a.source})(${r.source})?`),2);case"z":return FS(/[a-z_+-/]{1,256}?/i);default:return p(w)}})(e)||{invalidReason:Nce};return v.token=e,v}const zce={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function Bce(e,t,n){const{type:r,value:i}=e;if(r==="literal")return{literal:!0,val:i};const o=n[r];let s=zce[r];if(typeof s=="object"&&(s=s[o]),s)return{literal:!1,val:s}}function Uce(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function Hce(e,t,n){const r=e.match(t);if(r){const i={};let o=1;for(const s in n)if(Wd(n,s)){const a=n[s],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(i[a.token.val[0]]=a.deser(r.slice(o,o+l))),o+=l}return[r,i]}else return[r,{}]}function Vce(e){const t=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return vt(e.z)||(n=Hs.create(e.z)),vt(e.Z)||(n||(n=new Pr(e.Z)),r=e.Z),vt(e.q)||(e.M=(e.q-1)*3+1),vt(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),vt(e.u)||(e.S=CS(e.u)),[Object.keys(e).reduce((o,s)=>{const a=t(s);return a&&(o[a]=e[s]),o},{}),n,r]}let jS=null;function Wce(){return jS||(jS=Ie.fromMillis(1555555555555)),jS}function Gce(e,t){if(e.literal)return e;const n=Us.macroTokenToFormatOpts(e.val);if(!n)return e;const o=Us.create(t,n).formatDateTimeParts(Wce()).map(s=>Bce(s,t,n));return o.includes(void 0)?e:o}function qce(e,t){return Array.prototype.concat(...e.map(n=>Gce(n,t)))}function yM(e,t,n){const r=qce(Us.parseFormat(n),e),i=r.map(s=>jce(s,e)),o=i.find(s=>s.invalidReason);if(o)return{input:t,tokens:r,invalidReason:o.invalidReason};{const[s,a]=Uce(i),l=RegExp(s,"i"),[u,c]=Hce(t,l,a),[f,m,p]=c?Vce(c):[null,null,void 0];if(Wd(c,"a")&&Wd(c,"H"))throw new s0("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:l,rawMatches:u,matches:c,result:f,zone:m,specificOffset:p}}}function Yce(e,t,n){const{result:r,zone:i,specificOffset:o,invalidReason:s}=yM(e,t,n);return[r,i,o,s]}const bM=[0,31,59,90,120,151,181,212,243,273,304,334],xM=[0,31,60,91,121,152,182,213,244,274,305,335];function Qi(e,t){return new Eo("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function wM(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return i===0?7:i}function SM(e,t,n){return n+(a0(e)?xM:bM)[t-1]}function CM(e,t){const n=a0(e)?xM:bM,r=n.findIndex(o=>o<t),i=t-n[r];return{month:r+1,day:i}}function zS(e){const{year:t,month:n,day:r}=e,i=SM(t,n,r),o=wM(t,n,r);let s=Math.floor((i-o+10)/7),a;return s<1?(a=t-1,s=py(a)):s>py(t)?(a=t+1,s=1):a=t,{weekYear:a,weekNumber:s,weekday:o,...gy(e)}}function $M(e){const{weekYear:t,weekNumber:n,weekday:r}=e,i=wM(t,1,4),o=l0(t);let s=n*7+r-i-3,a;s<1?(a=t-1,s+=l0(a)):s>o?(a=t+1,s-=l0(t)):a=t;const{month:l,day:u}=CM(a,s);return{year:a,month:l,day:u,...gy(e)}}function BS(e){const{year:t,month:n,day:r}=e,i=SM(t,n,r);return{year:t,ordinal:i,...gy(e)}}function TM(e){const{year:t,ordinal:n}=e,{month:r,day:i}=CM(t,n);return{year:t,month:r,day:i,...gy(e)}}function Kce(e){const t=dy(e.weekYear),n=Bs(e.weekNumber,1,py(e.weekYear)),r=Bs(e.weekday,1,7);return t?n?r?!1:Qi("weekday",e.weekday):Qi("week",e.week):Qi("weekYear",e.weekYear)}function Zce(e){const t=dy(e.year),n=Bs(e.ordinal,1,l0(e.year));return t?n?!1:Qi("ordinal",e.ordinal):Qi("year",e.year)}function EM(e){const t=dy(e.year),n=Bs(e.month,1,12),r=Bs(e.day,1,fy(e.year,e.month));return t?n?r?!1:Qi("day",e.day):Qi("month",e.month):Qi("year",e.year)}function kM(e){const{hour:t,minute:n,second:r,millisecond:i}=e,o=Bs(t,0,23)||t===24&&n===0&&r===0&&i===0,s=Bs(n,0,59),a=Bs(r,0,59),l=Bs(i,0,999);return o?s?a?l?!1:Qi("millisecond",i):Qi("second",r):Qi("minute",n):Qi("hour",t)}const US="Invalid DateTime",AM=864e13;function wy(e){return new Eo("unsupported zone",`the zone "${e.name}" is not supported`)}function HS(e){return e.weekData===null&&(e.weekData=zS(e.c)),e.weekData}function m0(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ie({...n,...t,old:n})}function RM(e,t,n){let r=e-t*60*1e3;const i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*60*1e3;const o=n.offset(r);return i===o?[r,i]:[e-Math.min(i,o)*60*1e3,Math.max(i,o)]}function _M(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Sy(e,t,n){return RM(TS(e),t,n)}function OM(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:r,month:i,day:Math.min(e.c.day,fy(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=St.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=TS(o);let[l,u]=RM(a,n,e.zone);return s!==0&&(l+=s,u=e.zone.offset(l)),{ts:l,o:u}}function g0(e,t,n,r,i,o){const{setZone:s,zone:a}=n;if(e&&Object.keys(e).length!==0){const l=t||a,u=Ie.fromObject(e,{...n,zone:l,specificOffset:o});return s?u:u.setZone(a)}else return Ie.invalid(new Eo("unparsable",`the input "${i}" can't be parsed as ${r}`))}function Cy(e,t,n=!0){return e.isValid?Us.create(fn.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function VS(e,t){const n=e.c.year>9999||e.c.year<0;let r="";return n&&e.c.year>=0&&(r+="+"),r+=In(e.c.year,n?6:4),t?(r+="-",r+=In(e.c.month),r+="-",r+=In(e.c.day)):(r+=In(e.c.month),r+=In(e.c.day)),r}function PM(e,t,n,r,i,o){let s=In(e.c.hour);return t?(s+=":",s+=In(e.c.minute),(e.c.second!==0||!n)&&(s+=":")):s+=In(e.c.minute),(e.c.second!==0||!n)&&(s+=In(e.c.second),(e.c.millisecond!==0||!r)&&(s+=".",s+=In(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=In(Math.trunc(-e.o/60)),s+=":",s+=In(Math.trunc(-e.o%60))):(s+="+",s+=In(Math.trunc(e.o/60)),s+=":",s+=In(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}const DM={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Qce={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Jce={ordinal:1,hour:0,minute:0,second:0,millisecond:0},MM=["year","month","day","hour","minute","second","millisecond"],Xce=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ede=["year","ordinal","hour","minute","second","millisecond"];function IM(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new yD(e);return t}function NM(e,t){const n=ul(t.zone,An.defaultZone),r=fn.fromObject(t),i=An.now();let o,s;if(vt(e.year))o=i;else{for(const u of MM)vt(e[u])&&(e[u]=DM[u]);const a=EM(e)||kM(e);if(a)return Ie.invalid(a);const l=n.offset(i);[o,s]=Sy(e,l,n)}return new Ie({ts:o,zone:n,loc:r,o:s})}function LM(e,t,n){const r=vt(n.round)?!0:n.round,i=(s,a)=>(s=$S(s,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(s,a)),o=s=>n.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(n.unit)return i(o(n.unit),n.unit);for(const s of n.units){const a=o(s);if(Math.abs(a)>=1)return i(a,s)}return i(e>t?-0:0,n.units[n.units.length-1])}function FM(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}class Ie{constructor(t){const n=t.zone||An.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new Eo("invalid input"):null)||(n.isValid?null:wy(n));this.ts=vt(t.ts)?An.now():t.ts;let i=null,o=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[i,o]=[t.old.c,t.old.o];else{const a=n.offset(this.ts);i=_M(this.ts,a),r=Number.isNaN(i.year)?new Eo("invalid input"):null,i=r?null:i,o=r?null:a}this._zone=n,this.loc=t.loc||fn.create(),this.invalid=r,this.weekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new Ie({})}static local(){const[t,n]=FM(arguments),[r,i,o,s,a,l,u]=n;return NM({year:r,month:i,day:o,hour:s,minute:a,second:l,millisecond:u},t)}static utc(){const[t,n]=FM(arguments),[r,i,o,s,a,l,u]=n;return t.zone=Pr.utcInstance,NM({year:r,month:i,day:o,hour:s,minute:a,second:l,millisecond:u},t)}static fromJSDate(t,n={}){const r=uue(t)?t.valueOf():NaN;if(Number.isNaN(r))return Ie.invalid("invalid input");const i=ul(n.zone,An.defaultZone);return i.isValid?new Ie({ts:r,zone:i,loc:fn.fromObject(n)}):Ie.invalid(wy(i))}static fromMillis(t,n={}){if(Lu(t))return t<-AM||t>AM?Ie.invalid("Timestamp out of range"):new Ie({ts:t,zone:ul(n.zone,An.defaultZone),loc:fn.fromObject(n)});throw new Ki(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Lu(t))return new Ie({ts:t*1e3,zone:ul(n.zone,An.defaultZone),loc:fn.fromObject(n)});throw new Ki("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=ul(n.zone,An.defaultZone);if(!r.isValid)return Ie.invalid(wy(r));const i=An.now(),o=vt(n.specificOffset)?r.offset(i):n.specificOffset,s=my(t,IM),a=!vt(s.ordinal),l=!vt(s.year),u=!vt(s.month)||!vt(s.day),c=l||u,f=s.weekYear||s.weekNumber,m=fn.fromObject(n);if((c||a)&&f)throw new s0("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new s0("Can't mix ordinal dates with month/day");const p=f||s.weekday&&!c;let g,v,w=_M(i,o);p?(g=Xce,v=Qce,w=zS(w)):a?(g=ede,v=Jce,w=BS(w)):(g=MM,v=DM);let b=!1;for(const _ of g){const O=s[_];vt(O)?b?s[_]=v[_]:s[_]=w[_]:b=!0}const y=p?Kce(s):a?Zce(s):EM(s),S=y||kM(s);if(S)return Ie.invalid(S);const C=p?$M(s):a?TM(s):s,[T,E]=Sy(C,o,r),A=new Ie({ts:T,zone:r,o:E,loc:m});return s.weekday&&c&&t.weekday!==A.weekday?Ie.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${A.toISO()}`):A}static fromISO(t,n={}){const[r,i]=mce(t);return g0(r,i,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,i]=gce(t);return g0(r,i,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,i]=vce(t);return g0(r,i,n,"HTTP",n)}static fromFormat(t,n,r={}){if(vt(t)||vt(n))throw new Ki("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:o=null}=r,s=fn.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[a,l,u,c]=Yce(s,t,n);return c?Ie.invalid(c):g0(a,l,r,`format ${n}`,t,u)}static fromString(t,n,r={}){return Ie.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,i]=$ce(t);return g0(r,i,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new Ki("need to specify a reason the DateTime is invalid");const r=t instanceof Eo?t:new Eo(t,n);if(An.throwOnInvalid)throw new rue(r);return new Ie({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?HS(this).weekYear:NaN}get weekNumber(){return this.isValid?HS(this).weekNumber:NaN}get weekday(){return this.isValid?HS(this).weekday:NaN}get ordinal(){return this.isValid?BS(this.c).ordinal:NaN}get monthShort(){return this.isValid?xy.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?xy.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?xy.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?xy.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return a0(this.year)}get daysInMonth(){return fy(this.year,this.month)}get daysInYear(){return this.isValid?l0(this.year):NaN}get weeksInWeekYear(){return this.isValid?py(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:i}=Us.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:i}}toUTC(t=0,n={}){return this.setZone(Pr.instance(t),n)}toLocal(){return this.setZone(An.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=ul(t,An.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(n||r){const o=t.offset(this.ts),s=this.toObject();[i]=Sy(s,o,t)}return m0(this,{ts:i,zone:t})}else return Ie.invalid(wy(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const i=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return m0(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=my(t,IM),r=!vt(n.weekYear)||!vt(n.weekNumber)||!vt(n.weekday),i=!vt(n.ordinal),o=!vt(n.year),s=!vt(n.month)||!vt(n.day),a=o||s,l=n.weekYear||n.weekNumber;if((a||i)&&l)throw new s0("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&i)throw new s0("Can't mix ordinal dates with month/day");let u;r?u=$M({...zS(this.c),...n}):vt(n.ordinal)?(u={...this.toObject(),...n},vt(n.day)&&(u.day=Math.min(fy(u.year,u.month),u.day))):u=TM({...BS(this.c),...n});const[c,f]=Sy(u,this.o,this.zone);return m0(this,{ts:c,o:f})}plus(t){if(!this.isValid)return this;const n=St.fromDurationLike(t);return m0(this,OM(this,n))}minus(t){if(!this.isValid)return this;const n=St.fromDurationLike(t).negate();return m0(this,OM(this,n))}startOf(t){if(!this.isValid)return this;const n={},r=St.normalizeUnit(t);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(r==="weeks"&&(n.weekday=1),r==="quarters"){const i=Math.ceil(this.month/3);n.month=(i-1)*3+1}return this.set(n)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,n={}){return this.isValid?Us.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):US}toLocaleString(t=SS,n={}){return this.isValid?Us.create(this.loc.clone(n),t).formatDateTime(this):US}toLocaleParts(t={}){return this.isValid?Us.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:i=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;const s=t==="extended";let a=VS(this,s);return a+="T",a+=PM(this,s,n,r,i,o),a}toISODate({format:t="extended"}={}){return this.isValid?VS(this,t==="extended"):null}toISOWeekDate(){return Cy(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:i=!1,extendedZone:o=!1,format:s="extended"}={}){return this.isValid?(i?"T":"")+PM(this,s==="extended",n,t,r,o):null}toRFC2822(){return Cy(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Cy(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?VS(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let i="HH:mm:ss.SSS";return(n||t)&&(r&&(i+=" "),n?i+="z":t&&(i+="ZZ")),Cy(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():US}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return St.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...r},o=cue(n).map(St.normalizeUnit),s=t.valueOf()>this.valueOf(),a=s?this:t,l=s?t:this,u=Dce(a,l,o,i);return s?u.negate():u}diffNow(t="milliseconds",n={}){return this.diff(Ie.now(),t,n)}until(t){return this.isValid?xn.fromDateTimes(this,t):this}hasSame(t,n){if(!this.isValid)return!1;const r=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(n)<=r&&r<=i.endOf(n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Ie.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let i=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(i=t.unit,o=void 0),LM(n,this.plus(r),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?LM(t.base||Ie.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Ie.isDateTime))throw new Ki("min requires all arguments be DateTimes");return jD(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(Ie.isDateTime))throw new Ki("max requires all arguments be DateTimes");return jD(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:i=null,numberingSystem:o=null}=r,s=fn.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return yM(s,t,n)}static fromStringExplain(t,n,r={}){return Ie.fromFormatExplain(t,n,r)}static get DATE_SHORT(){return SS}static get DATE_MED(){return bD}static get DATE_MED_WITH_WEEKDAY(){return sue}static get DATE_FULL(){return xD}static get DATE_HUGE(){return wD}static get TIME_SIMPLE(){return SD}static get TIME_WITH_SECONDS(){return CD}static get TIME_WITH_SHORT_OFFSET(){return $D}static get TIME_WITH_LONG_OFFSET(){return TD}static get TIME_24_SIMPLE(){return ED}static get TIME_24_WITH_SECONDS(){return kD}static get TIME_24_WITH_SHORT_OFFSET(){return AD}static get TIME_24_WITH_LONG_OFFSET(){return RD}static get DATETIME_SHORT(){return _D}static get DATETIME_SHORT_WITH_SECONDS(){return OD}static get DATETIME_MED(){return PD}static get DATETIME_MED_WITH_SECONDS(){return DD}static get DATETIME_MED_WITH_WEEKDAY(){return aue}static get DATETIME_FULL(){return MD}static get DATETIME_FULL_WITH_SECONDS(){return ID}static get DATETIME_HUGE(){return ND}static get DATETIME_HUGE_WITH_SECONDS(){return LD}}function v0(e){if(Ie.isDateTime(e))return e;if(e&&e.valueOf&&Lu(e.valueOf()))return Ie.fromJSDate(e);if(e&&typeof e=="object")return Ie.fromObject(e);throw new Ki(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const Ro=R.createContext({});function tde(e){return Ue("MuiList",e)}He("MuiList",["root","padding","dense","subheader"]);const nde=["children","className","component","dense","disablePadding","subheader"],rde=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Ve({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},tde,t)},ide=ce("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>N({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Bu=R.forwardRef(function(t,n){const r=We({props:t,name:"MuiList"}),{children:i,className:o,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:u}=r,c=be(r,nde),f=R.useMemo(()=>({dense:a}),[a]),m=N({},r,{component:s,dense:a,disablePadding:l}),p=rde(m);return $.jsx(Ro.Provider,{value:f,children:$.jsxs(ide,N({as:s,className:Ee(p.root,o),ref:n,ownerState:m},c,{children:[u,i]}))})});function ode(e){return Ue("MuiListSubheader",e)}He("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const sde=["className","color","component","disableGutters","disableSticky","inset"],ade=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,s={root:["root",n!=="default"&&`color${ke(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return Ve(s,ode,t)},lde=ce("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ke(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>N({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),jM=R.forwardRef(function(t,n){const r=We({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:s="li",disableGutters:a=!1,disableSticky:l=!1,inset:u=!1}=r,c=be(r,sde),f=N({},r,{color:o,component:s,disableGutters:a,disableSticky:l,inset:u}),m=ade(f);return $.jsx(lde,N({as:s,className:Ee(m.root,i),ref:n,ownerState:f},c))});jM.muiSkipListHighlight=!0;const zM=jM;function Jd(e){return typeof e=="string"}function BM(e,t,n){return e===void 0||Jd(e)?t:N({},t,{ownerState:N({},t.ownerState,n)})}function UM(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function HM(e,t,n){return typeof e=="function"?e(t,n):e}function VM(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function WM(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const p=Ee(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),g=N({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),v=N({},n,i,r);return p.length>0&&(v.className=p),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:void 0}}const s=UM(N({},i,r)),a=VM(r),l=VM(i),u=t(s),c=Ee(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),f=N({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),m=N({},u,n,l,a);return c.length>0&&(m.className=c),Object.keys(f).length>0&&(m.style=f),{props:m,internalRef:u.ref}}const ude=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Xd(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=be(e,ude),a=o?{}:HM(r,i),{props:l,internalRef:u}=WM(N({},s,{externalSlotProps:a})),c=Mn(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return BM(n,N({},l,{ref:c}),i)}function cde(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:s,in:a,onExited:l,timeout:u}=e,[c,f]=R.useState(!1),m=Ee(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:s,height:s,top:-(s/2)+o,left:-(s/2)+i},g=Ee(n.child,c&&n.childLeaving,r&&n.childPulsate);return!a&&!c&&f(!0),R.useEffect(()=>{if(!a&&l!=null){const v=setTimeout(l,u);return()=>{clearTimeout(v)}}},[l,a,u]),$.jsx("span",{className:m,style:p,children:$.jsx("span",{className:g})})}const Ji=He("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),dde=["center","classes","className"];let $y=e=>e,GM,qM,YM,KM;const WS=550,fde=80,pde=Su(GM||(GM=$y`
|
|
144
|
+
`),jle)),xS=R.forwardRef(function(t,n){const r=We({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,size:a=40,style:l,thickness:u=3.6,value:c=0,variant:f="indeterminate"}=r,m=be(r,Lle),p=N({},r,{color:o,disableShrink:s,size:a,thickness:u,value:c,variant:f}),g=zle(p),v={},w={},b={};if(f==="determinate"){const y=2*Math.PI*((sl-u)/2);v.strokeDasharray=y.toFixed(3),b["aria-valuenow"]=Math.round(c),v.strokeDashoffset=`${((100-c)/100*y).toFixed(3)}px`,w.transform="rotate(-90deg)"}return $.jsx(Ble,N({className:Ee(g.root,i),style:N({width:a,height:a},w,l),ownerState:p,ref:n,role:"progressbar"},b,m,{children:$.jsx(Ule,{className:g.svg,ownerState:p,viewBox:`${sl/2} ${sl/2} ${sl} ${sl}`,children:$.jsx(Hle,{className:g.circle,style:v,ownerState:p,cx:sl,cy:sl,r:(sl-u)/2,fill:"none",strokeWidth:u})})}))});function wS({visible:e,wrapperSx:t,backdropSx:n,circleSx:r,size:i,children:o}){return $.jsxs(ti,{sx:{position:"relative",...t},children:[$.jsx(bS,{sx:{height:"100%",width:"100%",position:"absolute",pointerEvents:e?"all":"none",backgroundColor:"#ffffffc5",zIndex:s=>s.zIndex.drawer+1,...n},open:e,children:$.jsx(xS,{color:"secondary",size:i,sx:{zIndex:s=>s.zIndex.drawer+2,...r}})}),o]})}wS.propTypes={visible:nt.bool.isRequired,color:nt.string,area:nt.string};function Vle(e){return Ue("MuiTypography",e)}He("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Wle=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Gle=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,a={root:["root",o,e.align!=="inherit"&&`align${ke(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Ve(a,Vle,s)},qle=ce("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ke(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>N({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),mD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Yle={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Kle=e=>Yle[e]||e,Me=R.forwardRef(function(t,n){const r=We({props:t,name:"MuiTypography"}),i=Kle(r.color),o=Vh(N({},r,{color:i})),{align:s="inherit",className:a,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:m="body1",variantMapping:p=mD}=o,g=be(o,Wle),v=N({},o,{align:s,color:i,className:a,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:m,variantMapping:p}),w=l||(f?"p":p[m]||mD[m])||"span",b=Gle(v);return $.jsx(qle,N({as:w,ref:n,ownerState:v,className:Ee(b.root,a)},g))});function Zle(e){return Ue("MuiLink",e)}const Qle=He("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),gD={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Jle=e=>gD[e]||e,Xle=({theme:e,ownerState:t})=>{const n=Jle(t.color),r=kd(e,`palette.${n}`,!1)||t.color,i=kd(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Bt(r,.4)},eue=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],tue=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${ke(i)}`,n==="button"&&"button",r&&"focusVisible"]};return Ve(o,Zle,t)},nue=ce(Me,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ke(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>N({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&N({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:Xle({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Qle.focusVisible}`]:{outline:"auto"}})),Iu=R.forwardRef(function(t,n){const r=We({props:t,name:"MuiLink"}),{className:i,color:o="primary",component:s="a",onBlur:a,onFocus:l,TypographyClasses:u,underline:c="always",variant:f="inherit",sx:m}=r,p=be(r,eue),{isFocusVisibleRef:g,onBlur:v,onFocus:w,ref:b}=Z4(),[y,S]=R.useState(!1),C=Mn(n,b),T=O=>{v(O),g.current===!1&&S(!1),a&&a(O)},E=O=>{w(O),g.current===!0&&S(!0),l&&l(O)},A=N({},r,{color:o,component:s,focusVisible:y,underline:c,variant:f}),_=tue(A);return $.jsx(nue,N({color:o,className:Ee(_.root,i),classes:u,component:s,onBlur:T,onFocus:E,ref:C,ownerState:A,variant:f,sx:[...Object.keys(gD).includes(o)?[]:[{color:o}],...Array.isArray(m)?m:[m]]},p))});function vD(){return $.jsx(ti,{sx:{height:"28px !important",width:"100% !important",position:"sticky !important",bottom:"0 !important",left:"0 !important",display:"flex",backgroundColor:"#fff",borderTopLeftRadius:e=>`${e.shape.borderRadius}px`,borderTopRightRadius:e=>`${e.shape.borderRadius}px`,zIndex:e=>e.zIndex.drawer-1},children:$.jsx(me,{container:!0,justifyContent:"flex-end",alignContent:"center",sx:{height:"inherit",pr:2},children:$.jsx(me,{item:!0,children:$.jsxs(Iu,{color:"text.secondary",variant:"caption",underline:"none",target:"_blank",href:`https://timum.de?utm_medium=link&utm_source=${window.location.hostname.replace(/\./g,"-")}&utm_campaign=bookingjs2&utm_content=powered-by`,sx:{pr:1,fontSize:"10px !important",lineHeight:"20px !important",position:"static!important",display:"block!important",visibility:"visible!important",opacity:"1.0!important"},children:["powered by"," ",$.jsx(ti,{fontWeight:900,display:"inline",children:"timum"})]})})})})}vD.propTypes={};class Nu extends Error{}class rue extends Nu{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class iue extends Nu{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class oue extends Nu{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class s0 extends Nu{}class yD extends Nu{constructor(t){super(`Invalid unit ${t}`)}}class Ki extends Nu{}class al extends Nu{constructor(){super("Zone is an abstract class")}}const Ae="numeric",To="short",wi="long",SS={year:Ae,month:Ae,day:Ae},bD={year:Ae,month:To,day:Ae},sue={year:Ae,month:To,day:Ae,weekday:To},xD={year:Ae,month:wi,day:Ae},wD={year:Ae,month:wi,day:Ae,weekday:wi},SD={hour:Ae,minute:Ae},CD={hour:Ae,minute:Ae,second:Ae},$D={hour:Ae,minute:Ae,second:Ae,timeZoneName:To},TD={hour:Ae,minute:Ae,second:Ae,timeZoneName:wi},ED={hour:Ae,minute:Ae,hourCycle:"h23"},kD={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23"},AD={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23",timeZoneName:To},RD={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23",timeZoneName:wi},_D={year:Ae,month:Ae,day:Ae,hour:Ae,minute:Ae},OD={year:Ae,month:Ae,day:Ae,hour:Ae,minute:Ae,second:Ae},PD={year:Ae,month:To,day:Ae,hour:Ae,minute:Ae},DD={year:Ae,month:To,day:Ae,hour:Ae,minute:Ae,second:Ae},aue={year:Ae,month:To,day:Ae,weekday:To,hour:Ae,minute:Ae},MD={year:Ae,month:wi,day:Ae,hour:Ae,minute:Ae,timeZoneName:To},ID={year:Ae,month:wi,day:Ae,hour:Ae,minute:Ae,second:Ae,timeZoneName:To},ND={year:Ae,month:wi,day:Ae,weekday:wi,hour:Ae,minute:Ae,timeZoneName:wi},LD={year:Ae,month:wi,day:Ae,weekday:wi,hour:Ae,minute:Ae,second:Ae,timeZoneName:wi};function vt(e){return typeof e>"u"}function Lu(e){return typeof e=="number"}function dy(e){return typeof e=="number"&&e%1===0}function lue(e){return typeof e=="string"}function uue(e){return Object.prototype.toString.call(e)==="[object Date]"}function FD(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function cue(e){return Array.isArray(e)?e:[e]}function jD(e,t,n){if(e.length!==0)return e.reduce((r,i)=>{const o=[t(i),i];return r&&n(r[0],o[0])===r[0]?r:o},null)[1]}function due(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function Wd(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Bs(e,t,n){return dy(e)&&e>=t&&e<=n}function fue(e,t){return e-t*Math.floor(e/t)}function In(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function ll(e){if(!(vt(e)||e===null||e===""))return parseInt(e,10)}function Fu(e){if(!(vt(e)||e===null||e===""))return parseFloat(e)}function CS(e){if(!(vt(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function $S(e,t,n=!1){const r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function a0(e){return e%4===0&&(e%100!==0||e%400===0)}function l0(e){return a0(e)?366:365}function fy(e,t){const n=fue(t-1,12)+1,r=e+(t-n)/12;return n===2?a0(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function TS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(t.getUTCFullYear()-1900)),+t}function py(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return t===4||r===3?53:52}function ES(e){return e>99?e:e>60?1900+e:2e3+e}function zD(e,t,n,r=null){const i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);const s={timeZoneName:t,...o},a=new Intl.DateTimeFormat(n,s).formatToParts(i).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function hy(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function BD(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new Ki(`Invalid unit value ${e}`);return t}function my(e,t){const n={};for(const r in e)if(Wd(e,r)){const i=e[r];if(i==null)continue;n[t(r)]=BD(i)}return n}function u0(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${In(n,2)}:${In(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${In(n,2)}${In(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function gy(e){return due(e,["hour","minute","second","millisecond"])}const UD=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,pue=["January","February","March","April","May","June","July","August","September","October","November","December"],HD=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],hue=["J","F","M","A","M","J","J","A","S","O","N","D"];function VD(e){switch(e){case"narrow":return[...hue];case"short":return[...HD];case"long":return[...pue];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const WD=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],GD=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],mue=["M","T","W","T","F","S","S"];function qD(e){switch(e){case"narrow":return[...mue];case"short":return[...GD];case"long":return[...WD];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const YD=["AM","PM"],gue=["Before Christ","Anno Domini"],vue=["BC","AD"],yue=["B","A"];function KD(e){switch(e){case"narrow":return[...yue];case"short":return[...vue];case"long":return[...gue];default:return null}}function bue(e){return YD[e.hour<12?0:1]}function xue(e,t){return qD(t)[e.weekday-1]}function wue(e,t){return VD(t)[e.month-1]}function Sue(e,t){return KD(t)[e.year<0?0:1]}function Cue(e,t,n="always",r=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&o){const f=e==="days";switch(t){case 1:return f?"tomorrow":`next ${i[e][0]}`;case-1:return f?"yesterday":`last ${i[e][0]}`;case 0:return f?"today":`this ${i[e][0]}`}}const s=Object.is(t,-0)||t<0,a=Math.abs(t),l=a===1,u=i[e],c=r?l?u[1]:u[2]||u[1]:l?i[e][0]:e;return s?`${a} ${c} ago`:`in ${a} ${c}`}function ZD(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const $ue={D:SS,DD:bD,DDD:xD,DDDD:wD,t:SD,tt:CD,ttt:$D,tttt:TD,T:ED,TT:kD,TTT:AD,TTTT:RD,f:_D,ff:PD,fff:MD,ffff:ND,F:OD,FF:DD,FFF:ID,FFFF:LD};let Us=class ag{static create(t,n={}){return new ag(t,n)}static parseFormat(t){let n=null,r="",i=!1;const o=[];for(let s=0;s<t.length;s++){const a=t.charAt(s);a==="'"?(r.length>0&&o.push({literal:i,val:r}),n=null,r="",i=!i):i||a===n?r+=a:(r.length>0&&o.push({literal:!1,val:r}),r=a,n=a)}return r.length>0&&o.push({literal:i,val:r}),o}static macroTokenToFormatOpts(t){return $ue[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}formatDateTime(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n}).format()}formatDateTimeParts(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n}).formatToParts()}resolvedOptions(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n}).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return In(t,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(p,g)=>this.loc.extract(t,p,g),s=p=>t.isOffsetFixed&&t.offset===0&&p.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,p.format):"",a=()=>r?bue(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(p,g)=>r?wue(t,p):o(g?{month:p}:{month:p,day:"numeric"},"month"),u=(p,g)=>r?xue(t,p):o(g?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),c=p=>{const g=ag.macroTokenToFormatOpts(p);return g?this.formatWithSystemDefault(t,g):p},f=p=>r?Sue(t,p):o({era:p},"era"),m=p=>{switch(p){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return a();case"d":return i?o({day:"numeric"},"day"):this.num(t.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(t.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(t.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return c(p)}};return ZD(ag.parseFormat(n),m)}formatDurationFromString(t,n){const r=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=l=>u=>{const c=r(u);return c?this.num(l.get(c),u.length):u},o=ag.parseFormat(n),s=o.reduce((l,{literal:u,val:c})=>u?l:l.concat(c),[]),a=t.shiftTo(...s.map(r).filter(l=>l));return ZD(o,i(a))}};class Eo{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class c0{get type(){throw new al}get name(){throw new al}get ianaName(){return this.name}get isUniversal(){throw new al}offsetName(t,n){throw new al}formatOffset(t,n){throw new al}offset(t){throw new al}equals(t){throw new al}get isValid(){throw new al}}let kS=null;class AS extends c0{static get instance(){return kS===null&&(kS=new AS),kS}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return zD(t,n,r)}formatOffset(t,n){return u0(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let vy={};function Tue(e){return vy[e]||(vy[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),vy[e]}const Eue={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function kue(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,o,s,a,l,u,c]=r;return[s,i,o,a,l,u,c]}function Aue(e,t){const n=e.formatToParts(t),r=[];for(let i=0;i<n.length;i++){const{type:o,value:s}=n[i],a=Eue[o];o==="era"?r[a]=s:vt(a)||(r[a]=parseInt(s,10))}return r}let yy={};class Hs extends c0{static create(t){return yy[t]||(yy[t]=new Hs(t)),yy[t]}static resetCache(){yy={},vy={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=Hs.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return zD(t,n,r,this.name)}formatOffset(t,n){return u0(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const r=Tue(this.name);let[i,o,s,a,l,u,c]=r.formatToParts?Aue(r,n):kue(r,n);a==="BC"&&(i=-Math.abs(i)+1);const m=TS({year:i,month:o,day:s,hour:l===24?0:l,minute:u,second:c,millisecond:0});let p=+n;const g=p%1e3;return p-=g>=0?g:1e3+g,(m-p)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let RS=null;class Pr extends c0{static get utcInstance(){return RS===null&&(RS=new Pr(0)),RS}static instance(t){return t===0?Pr.utcInstance:new Pr(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Pr(hy(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${u0(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${u0(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return u0(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class Rue extends c0{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ul(e,t){if(vt(e)||e===null)return t;if(e instanceof c0)return e;if(lue(e)){const n=e.toLowerCase();return n==="local"||n==="system"?t:n==="utc"||n==="gmt"?Pr.utcInstance:Pr.parseSpecifier(n)||Hs.create(e)}else return Lu(e)?Pr.instance(e):typeof e=="object"&&e.offset&&typeof e.offset=="number"?e:new Rue(e)}let QD=()=>Date.now(),JD="system",XD=null,eM=null,tM=null,nM;class An{static get now(){return QD}static set now(t){QD=t}static set defaultZone(t){JD=t}static get defaultZone(){return ul(JD,AS.instance)}static get defaultLocale(){return XD}static set defaultLocale(t){XD=t}static get defaultNumberingSystem(){return eM}static set defaultNumberingSystem(t){eM=t}static get defaultOutputCalendar(){return tM}static set defaultOutputCalendar(t){tM=t}static get throwOnInvalid(){return nM}static set throwOnInvalid(t){nM=t}static resetCaches(){fn.resetCache(),Hs.resetCache()}}let rM={};function _ue(e,t={}){const n=JSON.stringify([e,t]);let r=rM[n];return r||(r=new Intl.ListFormat(e,t),rM[n]=r),r}let _S={};function OS(e,t={}){const n=JSON.stringify([e,t]);let r=_S[n];return r||(r=new Intl.DateTimeFormat(e,t),_S[n]=r),r}let PS={};function Oue(e,t={}){const n=JSON.stringify([e,t]);let r=PS[n];return r||(r=new Intl.NumberFormat(e,t),PS[n]=r),r}let DS={};function Pue(e,t={}){const{base:n,...r}=t,i=JSON.stringify([e,r]);let o=DS[i];return o||(o=new Intl.RelativeTimeFormat(e,t),DS[i]=o),o}let d0=null;function Due(){return d0||(d0=new Intl.DateTimeFormat().resolvedOptions().locale,d0)}function Mue(e){const t=e.indexOf("-u-");if(t===-1)return[e];{let n;const r=e.substring(0,t);try{n=OS(e).resolvedOptions()}catch{n=OS(r).resolvedOptions()}const{numberingSystem:i,calendar:o}=n;return[r,i,o]}}function Iue(e,t,n){return(n||t)&&(e+="-u",n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function Nue(e){const t=[];for(let n=1;n<=12;n++){const r=Ie.utc(2016,n,1);t.push(e(r))}return t}function Lue(e){const t=[];for(let n=1;n<=7;n++){const r=Ie.utc(2016,11,13+n);t.push(e(r))}return t}function by(e,t,n,r,i){const o=e.listingMode(n);return o==="error"?null:o==="en"?r(t):i(t)}function Fue(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class jue{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:i,floor:o,...s}=r;if(!n||Object.keys(s).length>0){const a={useGrouping:!1,...r};r.padTo>0&&(a.minimumIntegerDigits=r.padTo),this.inf=Oue(t,a)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):$S(t,3);return In(n,this.padTo)}}}class zue{constructor(t,n,r){this.opts=r;let i;if(t.zone.isUniversal){const s=-1*(t.offset/60),a=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&Hs.create(a).valid?(i=a,this.dt=t):(i="UTC",r.timeZoneName?this.dt=t:this.dt=t.offset===0?t:Ie.fromMillis(t.ts+t.offset*60*1e3))}else t.zone.type==="system"?this.dt=t:(this.dt=t,i=t.zone.name);const o={...this.opts};i&&(o.timeZone=i),this.dtf=OS(n,o)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class Bue{constructor(t,n,r){this.opts={style:"long",...r},!n&&FD()&&(this.rtf=Pue(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):Cue(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}class fn{static fromOpts(t){return fn.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,n,r,i=!1){const o=t||An.defaultLocale,s=o||(i?"en-US":Due()),a=n||An.defaultNumberingSystem,l=r||An.defaultOutputCalendar;return new fn(s,a,l,o)}static resetCache(){d0=null,_S={},PS={},DS={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:r}={}){return fn.create(t,n,r)}constructor(t,n,r,i){const[o,s,a]=Mue(t);this.locale=o,this.numberingSystem=n||s||null,this.outputCalendar=r||a||null,this.intl=Iue(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Fue(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:fn.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1,r=!0){return by(this,t,r,VD,()=>{const i=n?{month:t,day:"numeric"}:{month:t},o=n?"format":"standalone";return this.monthsCache[o][t]||(this.monthsCache[o][t]=Nue(s=>this.extract(s,i,"month"))),this.monthsCache[o][t]})}weekdays(t,n=!1,r=!0){return by(this,t,r,qD,()=>{const i=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},o=n?"format":"standalone";return this.weekdaysCache[o][t]||(this.weekdaysCache[o][t]=Lue(s=>this.extract(s,i,"weekday"))),this.weekdaysCache[o][t]})}meridiems(t=!0){return by(this,void 0,t,()=>YD,()=>{if(!this.meridiemCache){const n={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ie.utc(2016,11,13,9),Ie.utc(2016,11,13,19)].map(r=>this.extract(r,n,"dayperiod"))}return this.meridiemCache})}eras(t,n=!0){return by(this,t,n,KD,()=>{const r={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ie.utc(-40,1,1),Ie.utc(2017,1,1)].map(i=>this.extract(i,r,"era"))),this.eraCache[t]})}extract(t,n,r){const i=this.dtFormatter(t,n),o=i.formatToParts(),s=o.find(a=>a.type.toLowerCase()===r);return s?s.value:null}numberFormatter(t={}){return new jue(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new zue(t,this.intl,n)}relFormatter(t={}){return new Bue(this.intl,this.isEnglish(),t)}listFormatter(t={}){return _ue(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}function Gd(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function qd(...e){return t=>e.reduce(([n,r,i],o)=>{const[s,a,l]=o(t,i);return[{...n,...s},a||r,l]},[{},null,1]).slice(0,2)}function Yd(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const i=n.exec(e);if(i)return r(i)}return[null,null]}function iM(...e){return(t,n)=>{const r={};let i;for(i=0;i<e.length;i++)r[e[i]]=ll(t[n+i]);return[r,null,n+i]}}const oM=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Uue=`(?:${oM.source}?(?:\\[(${UD.source})\\])?)?`,MS=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,sM=RegExp(`${MS.source}${Uue}`),IS=RegExp(`(?:T${sM.source})?`),Hue=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Vue=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Wue=/(\d{4})-?(\d{3})/,Gue=iM("weekYear","weekNumber","weekDay"),que=iM("year","ordinal"),Yue=/(\d{4})-(\d\d)-(\d\d)/,aM=RegExp(`${MS.source} ?(?:${oM.source}|(${UD.source}))?`),Kue=RegExp(`(?: ${aM.source})?`);function Kd(e,t,n){const r=e[t];return vt(r)?n:ll(r)}function Zue(e,t){return[{year:Kd(e,t),month:Kd(e,t+1,1),day:Kd(e,t+2,1)},null,t+3]}function Zd(e,t){return[{hours:Kd(e,t,0),minutes:Kd(e,t+1,0),seconds:Kd(e,t+2,0),milliseconds:CS(e[t+3])},null,t+4]}function f0(e,t){const n=!e[t]&&!e[t+1],r=hy(e[t+1],e[t+2]),i=n?null:Pr.instance(r);return[{},i,t+3]}function p0(e,t){const n=e[t]?Hs.create(e[t]):null;return[{},n,t+1]}const Que=RegExp(`^T?${MS.source}$`),Jue=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Xue(e){const[t,n,r,i,o,s,a,l,u]=e,c=t[0]==="-",f=l&&l[0]==="-",m=(p,g=!1)=>p!==void 0&&(g||p&&c)?-p:p;return[{years:m(Fu(n)),months:m(Fu(r)),weeks:m(Fu(i)),days:m(Fu(o)),hours:m(Fu(s)),minutes:m(Fu(a)),seconds:m(Fu(l),l==="-0"),milliseconds:m(CS(u),f)}]}const ece={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function NS(e,t,n,r,i,o,s){const a={year:t.length===2?ES(ll(t)):ll(t),month:HD.indexOf(n)+1,day:ll(r),hour:ll(i),minute:ll(o)};return s&&(a.second=ll(s)),e&&(a.weekday=e.length>3?WD.indexOf(e)+1:GD.indexOf(e)+1),a}const tce=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function nce(e){const[,t,n,r,i,o,s,a,l,u,c,f]=e,m=NS(t,i,r,n,o,s,a);let p;return l?p=ece[l]:u?p=0:p=hy(c,f),[m,new Pr(p)]}function rce(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const ice=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,oce=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,sce=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function lM(e){const[,t,n,r,i,o,s,a]=e;return[NS(t,i,r,n,o,s,a),Pr.utcInstance]}function ace(e){const[,t,n,r,i,o,s,a]=e;return[NS(t,a,n,r,i,o,s),Pr.utcInstance]}const lce=Gd(Hue,IS),uce=Gd(Vue,IS),cce=Gd(Wue,IS),dce=Gd(sM),uM=qd(Zue,Zd,f0,p0),fce=qd(Gue,Zd,f0,p0),pce=qd(que,Zd,f0,p0),hce=qd(Zd,f0,p0);function mce(e){return Yd(e,[lce,uM],[uce,fce],[cce,pce],[dce,hce])}function gce(e){return Yd(rce(e),[tce,nce])}function vce(e){return Yd(e,[ice,lM],[oce,lM],[sce,ace])}function yce(e){return Yd(e,[Jue,Xue])}const bce=qd(Zd);function xce(e){return Yd(e,[Que,bce])}const wce=Gd(Yue,Kue),Sce=Gd(aM),Cce=qd(Zd,f0,p0);function $ce(e){return Yd(e,[wce,uM],[Sce,Cce])}const Tce="Invalid Duration",cM={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Ece={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...cM},Zi=146097/400,Qd=146097/4800,kce={years:{quarters:4,months:12,weeks:Zi/7,days:Zi,hours:Zi*24,minutes:Zi*24*60,seconds:Zi*24*60*60,milliseconds:Zi*24*60*60*1e3},quarters:{months:3,weeks:Zi/28,days:Zi/4,hours:Zi*24/4,minutes:Zi*24*60/4,seconds:Zi*24*60*60/4,milliseconds:Zi*24*60*60*1e3/4},months:{weeks:Qd/7,days:Qd,hours:Qd*24,minutes:Qd*24*60,seconds:Qd*24*60*60,milliseconds:Qd*24*60*60*1e3},...cM},ju=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Ace=ju.slice(0).reverse();function zu(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new St(r)}function Rce(e){return e<0?Math.floor(e):Math.ceil(e)}function dM(e,t,n,r,i){const o=e[i][n],s=t[n]/o,a=Math.sign(s)===Math.sign(r[i]),l=!a&&r[i]!==0&&Math.abs(s)<=1?Rce(s):Math.trunc(s);r[i]+=l,t[n]-=l*o}function _ce(e,t){Ace.reduce((n,r)=>vt(t[r])?n:(n&&dM(e,t,n,t,r),r),null)}class St{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;this.values=t.values,this.loc=t.loc||fn.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n?kce:Ece,this.isLuxonDuration=!0}static fromMillis(t,n){return St.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new Ki(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new St({values:my(t,St.normalizeUnit),loc:fn.fromObject(n),conversionAccuracy:n.conversionAccuracy})}static fromDurationLike(t){if(Lu(t))return St.fromMillis(t);if(St.isDuration(t))return t;if(typeof t=="object")return St.fromObject(t);throw new Ki(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=yce(t);return r?St.fromObject(r,n):St.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=xce(t);return r?St.fromObject(r,n):St.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new Ki("need to specify a reason the Duration is invalid");const r=t instanceof Eo?t:new Eo(t,n);if(An.throwOnInvalid)throw new oue(r);return new St({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new yD(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?Us.create(this.loc,r).formatDurationFromString(this,t):Tce}toHuman(t={}){const n=ju.map(r=>{const i=this.values[r];return vt(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:r.slice(0,-1)}).format(i)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=$S(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();if(n<0||n>=864e5)return null;t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t};const r=this.shiftTo("hours","minutes","seconds","milliseconds");let i=t.format==="basic"?"hhmm":"hh:mm";(!t.suppressSeconds||r.seconds!==0||r.milliseconds!==0)&&(i+=t.format==="basic"?"ss":":ss",(!t.suppressMilliseconds||r.milliseconds!==0)&&(i+=".SSS"));let o=r.toFormat(i);return t.includePrefix&&(o="T"+o),o}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=St.fromDurationLike(t),r={};for(const i of ju)(Wd(n.values,i)||Wd(this.values,i))&&(r[i]=n.get(i)+this.get(i));return zu(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=St.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=BD(t(this.values[r],r));return zu(this,{values:n},!0)}get(t){return this[St.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...my(t,St.normalizeUnit)};return zu(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r}={}){const i=this.loc.clone({locale:t,numberingSystem:n}),o={loc:i};return r&&(o.conversionAccuracy=r),zu(this,o)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return _ce(this.matrix,t),zu(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(s=>St.normalizeUnit(s));const n={},r={},i=this.toObject();let o;for(const s of ju)if(t.indexOf(s)>=0){o=s;let a=0;for(const u in r)a+=this.matrix[u][s]*r[u],r[u]=0;Lu(i[s])&&(a+=i[s]);const l=Math.trunc(a);n[s]=l,r[s]=(a*1e3-l*1e3)/1e3;for(const u in i)ju.indexOf(u)>ju.indexOf(s)&&dM(this.matrix,i,u,n,s)}else Lu(i[s])&&(r[s]=i[s]);for(const s in r)r[s]!==0&&(n[o]+=s===o?r[s]:r[s]/this.matrix[o][s]);return zu(this,{values:n},!0).normalize()}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return zu(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,i){return r===void 0||r===0?i===void 0||i===0:r===i}for(const r of ju)if(!n(this.values[r],t.values[r]))return!1;return!0}}const h0="Invalid Interval";function Oce(e,t){return!e||!e.isValid?xn.invalid("missing or invalid start"):!t||!t.isValid?xn.invalid("missing or invalid end"):t<e?xn.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class xn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new Ki("need to specify a reason the Interval is invalid");const r=t instanceof Eo?t:new Eo(t,n);if(An.throwOnInvalid)throw new iue(r);return new xn({invalid:r})}static fromDateTimes(t,n){const r=v0(t),i=v0(n),o=Oce(r,i);return o??new xn({start:r,end:i})}static after(t,n){const r=St.fromDurationLike(n),i=v0(t);return xn.fromDateTimes(i,i.plus(r))}static before(t,n){const r=St.fromDurationLike(n),i=v0(t);return xn.fromDateTimes(i.minus(r),i)}static fromISO(t,n){const[r,i]=(t||"").split("/",2);if(r&&i){let o,s;try{o=Ie.fromISO(r,n),s=o.isValid}catch{s=!1}let a,l;try{a=Ie.fromISO(i,n),l=a.isValid}catch{l=!1}if(s&&l)return xn.fromDateTimes(o,a);if(s){const u=St.fromISO(i,n);if(u.isValid)return xn.after(o,u)}else if(l){const u=St.fromISO(r,n);if(u.isValid)return xn.before(a,u)}}return xn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(t),r=this.end.startOf(t);return Math.floor(r.diff(n,t).get(t))+1}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?xn.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(v0).filter(s=>this.contains(s)).sort(),r=[];let{s:i}=this,o=0;for(;i<this.e;){const s=n[o]||this.e,a=+s>+this.e?this.e:s;r.push(xn.fromDateTimes(i,a)),i=a,o+=1}return r}splitBy(t){const n=St.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,i=1,o;const s=[];for(;r<this.e;){const a=this.start.plus(n.mapUnits(l=>l*i));o=+a>+this.e?this.e:a,s.push(xn.fromDateTimes(r,o)),r=o,i+=1}return s}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:xn.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return xn.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((i,o)=>i.s-o.s).reduce(([i,o],s)=>o?o.overlaps(s)||o.abutsStart(s)?[i,o.union(s)]:[i.concat([o]),s]:[i,s],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const i=[],o=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...o),a=s.sort((l,u)=>l.time-u.time);for(const l of a)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&i.push(xn.fromDateTimes(n,l.time)),n=null);return xn.merge(i)}difference(...t){return xn.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:h0}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:h0}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:h0}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:h0}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:h0}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):St.invalid(this.invalidReason)}mapEndpoints(t){return xn.fromDateTimes(t(this.s),t(this.e))}}class xy{static hasDST(t=An.defaultZone){const n=Ie.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return Hs.isValidZone(t)}static normalizeZone(t){return ul(t,An.defaultZone)}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||fn.create(n,r,o)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||fn.create(n,r,o)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||fn.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||fn.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return fn.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return fn.create(n,null,"gregory").eras(t)}static features(){return{relative:FD()}}}function fM(e,t){const n=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(St.fromMillis(r).as("days"))}function Pce(e,t,n){const r=[["years",(a,l)=>l.year-a.year],["quarters",(a,l)=>l.quarter-a.quarter],["months",(a,l)=>l.month-a.month+(l.year-a.year)*12],["weeks",(a,l)=>{const u=fM(a,l);return(u-u%7)/7}],["days",fM]],i={};let o,s;for(const[a,l]of r)if(n.indexOf(a)>=0){o=a;let u=l(e,t);s=e.plus({[a]:u}),s>t?(e=e.plus({[a]:u-1}),u-=1):e=s,i[a]=u}return[e,i,s,o]}function Dce(e,t,n,r){let[i,o,s,a]=Pce(e,t,n);const l=t-i,u=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);u.length===0&&(s<t&&(s=i.plus({[a]:1})),s!==i&&(o[a]=(o[a]||0)+l/(s-i)));const c=St.fromObject(o,r);return u.length>0?St.fromMillis(l,r).shiftTo(...u).plus(c):c}const LS={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},pM={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Mce=LS.hanidec.replace(/[\[|\]]/g,"").split("");function Ice(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(LS.hanidec)!==-1)t+=Mce.indexOf(e[n]);else for(const i in pM){const[o,s]=pM[i];r>=o&&r<=s&&(t+=r-o)}}return parseInt(t,10)}else return t}function ko({numberingSystem:e},t=""){return new RegExp(`${LS[e||"latn"]}${t}`)}const Nce="missing Intl.DateTimeFormat.formatToParts support";function kt(e,t=n=>n){return{regex:e,deser:([n])=>t(Ice(n))}}const hM=`[ ${String.fromCharCode(160)}]`,mM=new RegExp(hM,"g");function Lce(e){return e.replace(/\./g,"\\.?").replace(mM,hM)}function gM(e){return e.replace(/\./g,"").replace(mM," ").toLowerCase()}function Ao(e,t){return e===null?null:{regex:RegExp(e.map(Lce).join("|")),deser:([n])=>e.findIndex(r=>gM(n)===gM(r))+t}}function vM(e,t){return{regex:e,deser:([,n,r])=>hy(n,r),groups:t}}function FS(e){return{regex:e,deser:([t])=>t}}function Fce(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function jce(e,t){const n=ko(t),r=ko(t,"{2}"),i=ko(t,"{3}"),o=ko(t,"{4}"),s=ko(t,"{6}"),a=ko(t,"{1,2}"),l=ko(t,"{1,3}"),u=ko(t,"{1,6}"),c=ko(t,"{1,9}"),f=ko(t,"{2,4}"),m=ko(t,"{4,6}"),p=w=>({regex:RegExp(Fce(w.val)),deser:([b])=>b,literal:!0}),v=(w=>{if(e.literal)return p(w);switch(w.val){case"G":return Ao(t.eras("short",!1),0);case"GG":return Ao(t.eras("long",!1),0);case"y":return kt(u);case"yy":return kt(f,ES);case"yyyy":return kt(o);case"yyyyy":return kt(m);case"yyyyyy":return kt(s);case"M":return kt(a);case"MM":return kt(r);case"MMM":return Ao(t.months("short",!0,!1),1);case"MMMM":return Ao(t.months("long",!0,!1),1);case"L":return kt(a);case"LL":return kt(r);case"LLL":return Ao(t.months("short",!1,!1),1);case"LLLL":return Ao(t.months("long",!1,!1),1);case"d":return kt(a);case"dd":return kt(r);case"o":return kt(l);case"ooo":return kt(i);case"HH":return kt(r);case"H":return kt(a);case"hh":return kt(r);case"h":return kt(a);case"mm":return kt(r);case"m":return kt(a);case"q":return kt(a);case"qq":return kt(r);case"s":return kt(a);case"ss":return kt(r);case"S":return kt(l);case"SSS":return kt(i);case"u":return FS(c);case"uu":return FS(a);case"uuu":return kt(n);case"a":return Ao(t.meridiems(),0);case"kkkk":return kt(o);case"kk":return kt(f,ES);case"W":return kt(a);case"WW":return kt(r);case"E":case"c":return kt(n);case"EEE":return Ao(t.weekdays("short",!1,!1),1);case"EEEE":return Ao(t.weekdays("long",!1,!1),1);case"ccc":return Ao(t.weekdays("short",!0,!1),1);case"cccc":return Ao(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return vM(new RegExp(`([+-]${a.source})(?::(${r.source}))?`),2);case"ZZZ":return vM(new RegExp(`([+-]${a.source})(${r.source})?`),2);case"z":return FS(/[a-z_+-/]{1,256}?/i);default:return p(w)}})(e)||{invalidReason:Nce};return v.token=e,v}const zce={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function Bce(e,t,n){const{type:r,value:i}=e;if(r==="literal")return{literal:!0,val:i};const o=n[r];let s=zce[r];if(typeof s=="object"&&(s=s[o]),s)return{literal:!1,val:s}}function Uce(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function Hce(e,t,n){const r=e.match(t);if(r){const i={};let o=1;for(const s in n)if(Wd(n,s)){const a=n[s],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(i[a.token.val[0]]=a.deser(r.slice(o,o+l))),o+=l}return[r,i]}else return[r,{}]}function Vce(e){const t=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return vt(e.z)||(n=Hs.create(e.z)),vt(e.Z)||(n||(n=new Pr(e.Z)),r=e.Z),vt(e.q)||(e.M=(e.q-1)*3+1),vt(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),vt(e.u)||(e.S=CS(e.u)),[Object.keys(e).reduce((o,s)=>{const a=t(s);return a&&(o[a]=e[s]),o},{}),n,r]}let jS=null;function Wce(){return jS||(jS=Ie.fromMillis(1555555555555)),jS}function Gce(e,t){if(e.literal)return e;const n=Us.macroTokenToFormatOpts(e.val);if(!n)return e;const o=Us.create(t,n).formatDateTimeParts(Wce()).map(s=>Bce(s,t,n));return o.includes(void 0)?e:o}function qce(e,t){return Array.prototype.concat(...e.map(n=>Gce(n,t)))}function yM(e,t,n){const r=qce(Us.parseFormat(n),e),i=r.map(s=>jce(s,e)),o=i.find(s=>s.invalidReason);if(o)return{input:t,tokens:r,invalidReason:o.invalidReason};{const[s,a]=Uce(i),l=RegExp(s,"i"),[u,c]=Hce(t,l,a),[f,m,p]=c?Vce(c):[null,null,void 0];if(Wd(c,"a")&&Wd(c,"H"))throw new s0("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:l,rawMatches:u,matches:c,result:f,zone:m,specificOffset:p}}}function Yce(e,t,n){const{result:r,zone:i,specificOffset:o,invalidReason:s}=yM(e,t,n);return[r,i,o,s]}const bM=[0,31,59,90,120,151,181,212,243,273,304,334],xM=[0,31,60,91,121,152,182,213,244,274,305,335];function Qi(e,t){return new Eo("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function wM(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return i===0?7:i}function SM(e,t,n){return n+(a0(e)?xM:bM)[t-1]}function CM(e,t){const n=a0(e)?xM:bM,r=n.findIndex(o=>o<t),i=t-n[r];return{month:r+1,day:i}}function zS(e){const{year:t,month:n,day:r}=e,i=SM(t,n,r),o=wM(t,n,r);let s=Math.floor((i-o+10)/7),a;return s<1?(a=t-1,s=py(a)):s>py(t)?(a=t+1,s=1):a=t,{weekYear:a,weekNumber:s,weekday:o,...gy(e)}}function $M(e){const{weekYear:t,weekNumber:n,weekday:r}=e,i=wM(t,1,4),o=l0(t);let s=n*7+r-i-3,a;s<1?(a=t-1,s+=l0(a)):s>o?(a=t+1,s-=l0(t)):a=t;const{month:l,day:u}=CM(a,s);return{year:a,month:l,day:u,...gy(e)}}function BS(e){const{year:t,month:n,day:r}=e,i=SM(t,n,r);return{year:t,ordinal:i,...gy(e)}}function TM(e){const{year:t,ordinal:n}=e,{month:r,day:i}=CM(t,n);return{year:t,month:r,day:i,...gy(e)}}function Kce(e){const t=dy(e.weekYear),n=Bs(e.weekNumber,1,py(e.weekYear)),r=Bs(e.weekday,1,7);return t?n?r?!1:Qi("weekday",e.weekday):Qi("week",e.week):Qi("weekYear",e.weekYear)}function Zce(e){const t=dy(e.year),n=Bs(e.ordinal,1,l0(e.year));return t?n?!1:Qi("ordinal",e.ordinal):Qi("year",e.year)}function EM(e){const t=dy(e.year),n=Bs(e.month,1,12),r=Bs(e.day,1,fy(e.year,e.month));return t?n?r?!1:Qi("day",e.day):Qi("month",e.month):Qi("year",e.year)}function kM(e){const{hour:t,minute:n,second:r,millisecond:i}=e,o=Bs(t,0,23)||t===24&&n===0&&r===0&&i===0,s=Bs(n,0,59),a=Bs(r,0,59),l=Bs(i,0,999);return o?s?a?l?!1:Qi("millisecond",i):Qi("second",r):Qi("minute",n):Qi("hour",t)}const US="Invalid DateTime",AM=864e13;function wy(e){return new Eo("unsupported zone",`the zone "${e.name}" is not supported`)}function HS(e){return e.weekData===null&&(e.weekData=zS(e.c)),e.weekData}function m0(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ie({...n,...t,old:n})}function RM(e,t,n){let r=e-t*60*1e3;const i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*60*1e3;const o=n.offset(r);return i===o?[r,i]:[e-Math.min(i,o)*60*1e3,Math.max(i,o)]}function _M(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Sy(e,t,n){return RM(TS(e),t,n)}function OM(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:r,month:i,day:Math.min(e.c.day,fy(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=St.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=TS(o);let[l,u]=RM(a,n,e.zone);return s!==0&&(l+=s,u=e.zone.offset(l)),{ts:l,o:u}}function g0(e,t,n,r,i,o){const{setZone:s,zone:a}=n;if(e&&Object.keys(e).length!==0){const l=t||a,u=Ie.fromObject(e,{...n,zone:l,specificOffset:o});return s?u:u.setZone(a)}else return Ie.invalid(new Eo("unparsable",`the input "${i}" can't be parsed as ${r}`))}function Cy(e,t,n=!0){return e.isValid?Us.create(fn.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function VS(e,t){const n=e.c.year>9999||e.c.year<0;let r="";return n&&e.c.year>=0&&(r+="+"),r+=In(e.c.year,n?6:4),t?(r+="-",r+=In(e.c.month),r+="-",r+=In(e.c.day)):(r+=In(e.c.month),r+=In(e.c.day)),r}function PM(e,t,n,r,i,o){let s=In(e.c.hour);return t?(s+=":",s+=In(e.c.minute),(e.c.second!==0||!n)&&(s+=":")):s+=In(e.c.minute),(e.c.second!==0||!n)&&(s+=In(e.c.second),(e.c.millisecond!==0||!r)&&(s+=".",s+=In(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=In(Math.trunc(-e.o/60)),s+=":",s+=In(Math.trunc(-e.o%60))):(s+="+",s+=In(Math.trunc(e.o/60)),s+=":",s+=In(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}const DM={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Qce={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Jce={ordinal:1,hour:0,minute:0,second:0,millisecond:0},MM=["year","month","day","hour","minute","second","millisecond"],Xce=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ede=["year","ordinal","hour","minute","second","millisecond"];function IM(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new yD(e);return t}function NM(e,t){const n=ul(t.zone,An.defaultZone),r=fn.fromObject(t),i=An.now();let o,s;if(vt(e.year))o=i;else{for(const u of MM)vt(e[u])&&(e[u]=DM[u]);const a=EM(e)||kM(e);if(a)return Ie.invalid(a);const l=n.offset(i);[o,s]=Sy(e,l,n)}return new Ie({ts:o,zone:n,loc:r,o:s})}function LM(e,t,n){const r=vt(n.round)?!0:n.round,i=(s,a)=>(s=$S(s,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(s,a)),o=s=>n.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(n.unit)return i(o(n.unit),n.unit);for(const s of n.units){const a=o(s);if(Math.abs(a)>=1)return i(a,s)}return i(e>t?-0:0,n.units[n.units.length-1])}function FM(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}class Ie{constructor(t){const n=t.zone||An.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new Eo("invalid input"):null)||(n.isValid?null:wy(n));this.ts=vt(t.ts)?An.now():t.ts;let i=null,o=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[i,o]=[t.old.c,t.old.o];else{const a=n.offset(this.ts);i=_M(this.ts,a),r=Number.isNaN(i.year)?new Eo("invalid input"):null,i=r?null:i,o=r?null:a}this._zone=n,this.loc=t.loc||fn.create(),this.invalid=r,this.weekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new Ie({})}static local(){const[t,n]=FM(arguments),[r,i,o,s,a,l,u]=n;return NM({year:r,month:i,day:o,hour:s,minute:a,second:l,millisecond:u},t)}static utc(){const[t,n]=FM(arguments),[r,i,o,s,a,l,u]=n;return t.zone=Pr.utcInstance,NM({year:r,month:i,day:o,hour:s,minute:a,second:l,millisecond:u},t)}static fromJSDate(t,n={}){const r=uue(t)?t.valueOf():NaN;if(Number.isNaN(r))return Ie.invalid("invalid input");const i=ul(n.zone,An.defaultZone);return i.isValid?new Ie({ts:r,zone:i,loc:fn.fromObject(n)}):Ie.invalid(wy(i))}static fromMillis(t,n={}){if(Lu(t))return t<-AM||t>AM?Ie.invalid("Timestamp out of range"):new Ie({ts:t,zone:ul(n.zone,An.defaultZone),loc:fn.fromObject(n)});throw new Ki(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Lu(t))return new Ie({ts:t*1e3,zone:ul(n.zone,An.defaultZone),loc:fn.fromObject(n)});throw new Ki("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=ul(n.zone,An.defaultZone);if(!r.isValid)return Ie.invalid(wy(r));const i=An.now(),o=vt(n.specificOffset)?r.offset(i):n.specificOffset,s=my(t,IM),a=!vt(s.ordinal),l=!vt(s.year),u=!vt(s.month)||!vt(s.day),c=l||u,f=s.weekYear||s.weekNumber,m=fn.fromObject(n);if((c||a)&&f)throw new s0("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new s0("Can't mix ordinal dates with month/day");const p=f||s.weekday&&!c;let g,v,w=_M(i,o);p?(g=Xce,v=Qce,w=zS(w)):a?(g=ede,v=Jce,w=BS(w)):(g=MM,v=DM);let b=!1;for(const _ of g){const O=s[_];vt(O)?b?s[_]=v[_]:s[_]=w[_]:b=!0}const y=p?Kce(s):a?Zce(s):EM(s),S=y||kM(s);if(S)return Ie.invalid(S);const C=p?$M(s):a?TM(s):s,[T,E]=Sy(C,o,r),A=new Ie({ts:T,zone:r,o:E,loc:m});return s.weekday&&c&&t.weekday!==A.weekday?Ie.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${A.toISO()}`):A}static fromISO(t,n={}){const[r,i]=mce(t);return g0(r,i,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,i]=gce(t);return g0(r,i,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,i]=vce(t);return g0(r,i,n,"HTTP",n)}static fromFormat(t,n,r={}){if(vt(t)||vt(n))throw new Ki("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:o=null}=r,s=fn.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[a,l,u,c]=Yce(s,t,n);return c?Ie.invalid(c):g0(a,l,r,`format ${n}`,t,u)}static fromString(t,n,r={}){return Ie.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,i]=$ce(t);return g0(r,i,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new Ki("need to specify a reason the DateTime is invalid");const r=t instanceof Eo?t:new Eo(t,n);if(An.throwOnInvalid)throw new rue(r);return new Ie({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?HS(this).weekYear:NaN}get weekNumber(){return this.isValid?HS(this).weekNumber:NaN}get weekday(){return this.isValid?HS(this).weekday:NaN}get ordinal(){return this.isValid?BS(this.c).ordinal:NaN}get monthShort(){return this.isValid?xy.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?xy.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?xy.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?xy.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return a0(this.year)}get daysInMonth(){return fy(this.year,this.month)}get daysInYear(){return this.isValid?l0(this.year):NaN}get weeksInWeekYear(){return this.isValid?py(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:i}=Us.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:i}}toUTC(t=0,n={}){return this.setZone(Pr.instance(t),n)}toLocal(){return this.setZone(An.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=ul(t,An.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(n||r){const o=t.offset(this.ts),s=this.toObject();[i]=Sy(s,o,t)}return m0(this,{ts:i,zone:t})}else return Ie.invalid(wy(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const i=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return m0(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=my(t,IM),r=!vt(n.weekYear)||!vt(n.weekNumber)||!vt(n.weekday),i=!vt(n.ordinal),o=!vt(n.year),s=!vt(n.month)||!vt(n.day),a=o||s,l=n.weekYear||n.weekNumber;if((a||i)&&l)throw new s0("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&i)throw new s0("Can't mix ordinal dates with month/day");let u;r?u=$M({...zS(this.c),...n}):vt(n.ordinal)?(u={...this.toObject(),...n},vt(n.day)&&(u.day=Math.min(fy(u.year,u.month),u.day))):u=TM({...BS(this.c),...n});const[c,f]=Sy(u,this.o,this.zone);return m0(this,{ts:c,o:f})}plus(t){if(!this.isValid)return this;const n=St.fromDurationLike(t);return m0(this,OM(this,n))}minus(t){if(!this.isValid)return this;const n=St.fromDurationLike(t).negate();return m0(this,OM(this,n))}startOf(t){if(!this.isValid)return this;const n={},r=St.normalizeUnit(t);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(r==="weeks"&&(n.weekday=1),r==="quarters"){const i=Math.ceil(this.month/3);n.month=(i-1)*3+1}return this.set(n)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,n={}){return this.isValid?Us.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):US}toLocaleString(t=SS,n={}){return this.isValid?Us.create(this.loc.clone(n),t).formatDateTime(this):US}toLocaleParts(t={}){return this.isValid?Us.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:i=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;const s=t==="extended";let a=VS(this,s);return a+="T",a+=PM(this,s,n,r,i,o),a}toISODate({format:t="extended"}={}){return this.isValid?VS(this,t==="extended"):null}toISOWeekDate(){return Cy(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:i=!1,extendedZone:o=!1,format:s="extended"}={}){return this.isValid?(i?"T":"")+PM(this,s==="extended",n,t,r,o):null}toRFC2822(){return Cy(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Cy(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?VS(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let i="HH:mm:ss.SSS";return(n||t)&&(r&&(i+=" "),n?i+="z":t&&(i+="ZZ")),Cy(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():US}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return St.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...r},o=cue(n).map(St.normalizeUnit),s=t.valueOf()>this.valueOf(),a=s?this:t,l=s?t:this,u=Dce(a,l,o,i);return s?u.negate():u}diffNow(t="milliseconds",n={}){return this.diff(Ie.now(),t,n)}until(t){return this.isValid?xn.fromDateTimes(this,t):this}hasSame(t,n){if(!this.isValid)return!1;const r=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(n)<=r&&r<=i.endOf(n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Ie.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let i=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(i=t.unit,o=void 0),LM(n,this.plus(r),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?LM(t.base||Ie.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Ie.isDateTime))throw new Ki("min requires all arguments be DateTimes");return jD(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(Ie.isDateTime))throw new Ki("max requires all arguments be DateTimes");return jD(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:i=null,numberingSystem:o=null}=r,s=fn.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return yM(s,t,n)}static fromStringExplain(t,n,r={}){return Ie.fromFormatExplain(t,n,r)}static get DATE_SHORT(){return SS}static get DATE_MED(){return bD}static get DATE_MED_WITH_WEEKDAY(){return sue}static get DATE_FULL(){return xD}static get DATE_HUGE(){return wD}static get TIME_SIMPLE(){return SD}static get TIME_WITH_SECONDS(){return CD}static get TIME_WITH_SHORT_OFFSET(){return $D}static get TIME_WITH_LONG_OFFSET(){return TD}static get TIME_24_SIMPLE(){return ED}static get TIME_24_WITH_SECONDS(){return kD}static get TIME_24_WITH_SHORT_OFFSET(){return AD}static get TIME_24_WITH_LONG_OFFSET(){return RD}static get DATETIME_SHORT(){return _D}static get DATETIME_SHORT_WITH_SECONDS(){return OD}static get DATETIME_MED(){return PD}static get DATETIME_MED_WITH_SECONDS(){return DD}static get DATETIME_MED_WITH_WEEKDAY(){return aue}static get DATETIME_FULL(){return MD}static get DATETIME_FULL_WITH_SECONDS(){return ID}static get DATETIME_HUGE(){return ND}static get DATETIME_HUGE_WITH_SECONDS(){return LD}}function v0(e){if(Ie.isDateTime(e))return e;if(e&&e.valueOf&&Lu(e.valueOf()))return Ie.fromJSDate(e);if(e&&typeof e=="object")return Ie.fromObject(e);throw new Ki(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const Ro=R.createContext({});function tde(e){return Ue("MuiList",e)}He("MuiList",["root","padding","dense","subheader"]);const nde=["children","className","component","dense","disablePadding","subheader"],rde=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Ve({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},tde,t)},ide=ce("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>N({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Bu=R.forwardRef(function(t,n){const r=We({props:t,name:"MuiList"}),{children:i,className:o,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:u}=r,c=be(r,nde),f=R.useMemo(()=>({dense:a}),[a]),m=N({},r,{component:s,dense:a,disablePadding:l}),p=rde(m);return $.jsx(Ro.Provider,{value:f,children:$.jsxs(ide,N({as:s,className:Ee(p.root,o),ref:n,ownerState:m},c,{children:[u,i]}))})});function ode(e){return Ue("MuiListSubheader",e)}He("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const sde=["className","color","component","disableGutters","disableSticky","inset"],ade=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,s={root:["root",n!=="default"&&`color${ke(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return Ve(s,ode,t)},lde=ce("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ke(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>N({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),jM=R.forwardRef(function(t,n){const r=We({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:s="li",disableGutters:a=!1,disableSticky:l=!1,inset:u=!1}=r,c=be(r,sde),f=N({},r,{color:o,component:s,disableGutters:a,disableSticky:l,inset:u}),m=ade(f);return $.jsx(lde,N({as:s,className:Ee(m.root,i),ref:n,ownerState:f},c))});jM.muiSkipListHighlight=!0;const zM=jM;function Jd(e){return typeof e=="string"}function BM(e,t,n){return e===void 0||Jd(e)?t:N({},t,{ownerState:N({},t.ownerState,n)})}function UM(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function HM(e,t,n){return typeof e=="function"?e(t,n):e}function VM(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function WM(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const p=Ee(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),g=N({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),v=N({},n,i,r);return p.length>0&&(v.className=p),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:void 0}}const s=UM(N({},i,r)),a=VM(r),l=VM(i),u=t(s),c=Ee(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),f=N({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),m=N({},u,n,l,a);return c.length>0&&(m.className=c),Object.keys(f).length>0&&(m.style=f),{props:m,internalRef:u.ref}}const ude=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Xd(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=be(e,ude),a=o?{}:HM(r,i),{props:l,internalRef:u}=WM(N({},s,{externalSlotProps:a})),c=Mn(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return BM(n,N({},l,{ref:c}),i)}function cde(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:s,in:a,onExited:l,timeout:u}=e,[c,f]=R.useState(!1),m=Ee(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:s,height:s,top:-(s/2)+o,left:-(s/2)+i},g=Ee(n.child,c&&n.childLeaving,r&&n.childPulsate);return!a&&!c&&f(!0),R.useEffect(()=>{if(!a&&l!=null){const v=setTimeout(l,u);return()=>{clearTimeout(v)}}},[l,a,u]),$.jsx("span",{className:m,style:p,children:$.jsx("span",{className:g})})}const Ji=He("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),dde=["center","classes","className"];let $y=e=>e,GM,qM,YM,KM;const WS=550,fde=80,pde=Su(GM||(GM=$y`
|
|
145
145
|
0% {
|
|
146
146
|
transform: scale(0);
|
|
147
147
|
opacity: 0.1;
|
|
@@ -1292,7 +1292,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1292
1292
|
.fc .fc-v-event .fc-event-title {
|
|
1293
1293
|
display: none !important;
|
|
1294
1294
|
}
|
|
1295
|
-
`;function Dze(){const e=Se(t=>Une(t,"useCustomTimumCss"));return $.jsxs($.Fragment,{children:[e&&$.jsx(M4,{styles:Pze}),$.jsx(M4,{styles:Oze})]})}function Mze({children:e}){const[t,n]=re.useState(null);if(R.useEffect(()=>{setTimeout(()=>{n(!0)},500)},[]),t)return e}function Ize(e){const t=Se(Sd),n=Se(zne),r=Se(s=>je(s,"calendarFrontend")),i=Se(s=>je(s,"calendarFrontendOptions"));let o=rS(n??{});return o=Hae(o,{factor:2.5}),$.jsxs(Wae,{theme:o,children:[$.jsx(Bhe,{}),$.jsx(Dze,{}),r==="fullCalendar"&&$.jsx(df,{...e,...i.fullCalendar,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(mq,{})}),r==="detailsFullCalendar"&&$.jsx(df,{...e,...i.detailsFullCalendar,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(I$,{CalendarView:mq})}),(r==="pureListView"||r==="listView")&&$.jsx(df,{...e,...i.pureListView,...i.listView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(j$,{})}),r==="detailsListView"&&$.jsx(df,{...e,...i.detailsListView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(I$,{CalendarView:j$})}),r==="condensedView"&&$.jsx(df,{...e,...i.condensedView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(yq,{})}),r==="detailsCondensedView"&&$.jsx(df,{...e,...i.detailsCondensedView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(I$,{CalendarView:yq})}),r!=="fullCalendar"&&r!=="detailsFullCalendar"&&r!=="condensedView"&&r!=="detailsCondensedView"&&r!=="detailsListView"&&r!=="listView"&&r!=="pureListView"&&$.jsx(Mze,{children:$.jsxs($.Fragment,{children:["You must set calendarFrontend either to ",$.jsx("code",{children:"fullCalendar"}),","," ",$.jsx("code",{children:"detailsFullCalendar"}),",",$.jsx("code",{children:"listView"}),","," ",$.jsx("code",{children:"detailsListView"}),", ",$.jsx("code",{children:"condensedView"})," or"," ",$.jsx("code",{children:"detailsCondensedView"})," in your config."]})})]})}new TextEncoder;const bq=new TextDecoder,Nze=e=>{const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n},Lze=e=>{let t=e;t instanceof Uint8Array&&(t=bq.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return Nze(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class jr extends Error{constructor(t,n){var r;super(t,n),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,(r=Error.captureStackTrace)==null||r.call(Error,this,this.constructor)}}jr.code="ERR_JOSE_GENERIC";class Fze extends jr{constructor(t,n,r="unspecified",i="unspecified"){super(t,{cause:{claim:r,reason:i,payload:n}}),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=r,this.reason=i,this.payload=n}}Fze.code="ERR_JWT_CLAIM_VALIDATION_FAILED";class jze extends jr{constructor(t,n,r="unspecified",i="unspecified"){super(t,{cause:{claim:r,reason:i,payload:n}}),this.code="ERR_JWT_EXPIRED",this.claim=r,this.reason=i,this.payload=n}}jze.code="ERR_JWT_EXPIRED";class zze extends jr{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}}zze.code="ERR_JOSE_ALG_NOT_ALLOWED";class Bze extends jr{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}}Bze.code="ERR_JOSE_NOT_SUPPORTED";class Uze extends jr{constructor(t="decryption operation failed",n){super(t,n),this.code="ERR_JWE_DECRYPTION_FAILED"}}Uze.code="ERR_JWE_DECRYPTION_FAILED";class Hze extends jr{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}}Hze.code="ERR_JWE_INVALID";class Vze extends jr{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}}Vze.code="ERR_JWS_INVALID";class jl extends jr{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}}jl.code="ERR_JWT_INVALID";class Wze extends jr{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}}Wze.code="ERR_JWK_INVALID";class Gze extends jr{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}}Gze.code="ERR_JWKS_INVALID";class qze extends jr{constructor(t="no applicable key found in the JSON Web Key Set",n){super(t,n),this.code="ERR_JWKS_NO_MATCHING_KEY"}}qze.code="ERR_JWKS_NO_MATCHING_KEY";class Yze extends jr{constructor(t="multiple matching keys found in the JSON Web Key Set",n){super(t,n),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}Yze.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";class Kze extends jr{constructor(t="request timed out",n){super(t,n),this.code="ERR_JWKS_TIMEOUT"}}Kze.code="ERR_JWKS_TIMEOUT";class Zze extends jr{constructor(t="signature verification failed",n){super(t,n),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}Zze.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";function Qze(e){return typeof e=="object"&&e!==null}function Jze(e){if(!Qze(e)||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}const Xze=Lze;function eBe(e){if(typeof e!="string")throw new jl("JWTs must use Compact JWS serialization, JWT must be a string");const{1:t,length:n}=e.split(".");if(n===5)throw new jl("Only JWTs using Compact JWS serialization can be decoded");if(n!==3)throw new jl("Invalid JWT");if(!t)throw new jl("JWTs must contain a payload");let r;try{r=Xze(t)}catch{throw new jl("Failed to base64url decode the payload")}let i;try{i=JSON.parse(bq.decode(r))}catch{throw new jl("Failed to parse the decoded payload as JSON")}if(!Jze(i))throw new jl("Invalid JWT Claims Set");return i}var Y6={},tBe=En;Object.defineProperty(Y6,"__esModule",{value:!0});var xq=Y6.default=void 0,nBe=tBe(Bn()),rBe=$;xq=Y6.default=(0,nBe.default)((0,rBe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Am(e){const{children:t,onClose:n,...r}=e;return $.jsxs(NI,{sx:{m:0,p:2},...r,children:[t,n?$.jsx(y0,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:i=>i.palette.grey[500]},children:$.jsx(xq,{})}):null]})}Am.propTypes={children:nt.node,onClose:nt.func.isRequired};const zl=14,gc='"Ek Mukta","Helvetica Neue", Helvetica, Arial, sans-serif',Qf=Math.floor(zl*1.428571429),iBe=If(Math.floor(zl*2.6)),oBe=If(Math.floor(zl*2.3)),sBe=If(Math.floor(zl*1.9)),aBe=If(Math.floor(zl*1.5)),lBe=If(Math.floor(zl*1.15)),uBe=If(Math.floor(zl)),K6=/(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g,vc={appConfig:{host:"https://www.timum.de",resource_channel:"RESOURCE_REFERENCE",calendarFrontend:"detailsListView",calendarFrontendOptions:{condensedView:{forceResourceSelectorDialog:!0}},enableShowAllResourcesOption:!1,allowCloseOnBooking:!0,hideTimumFooter:!1,sendCustomValuesAsMessage:!1,gatherAddressData:!1,height:500,fields:{firstName:{index:0,title:"fields.firstName",validation:Rl().required("validation.field_required")},lastName:{index:1,title:"fields.lastName",validation:Rl().required("validation.field_required")},email:{index:2,title:"fields.email",format:"email",type:"text",validation:Rl().email("validation.email_field_must_be_valid").required("validation.field_required")},mobile:{index:3,title:"fields.mobile",type:"phoneNumber",isRequired:!1,defaultCountry:"DE",preferredCountries:["DE","CH","AT"]},message:{index:4,title:"fields.message",type:"textarea",validation:Rl().max(1024).test("no-emojis","validation.no_emojis",e=>!K6.test(e)),limit:1024,onChange:e=>e.replace(K6,"")},agbs:{index:5,title:"fields.accept_timum_privacy",type:"checkbox",validation:H2().required("validation.field_required").test("privacyAccepted","validation.privacy_field_required",e=>e===!0)},locale:{index:6,preventRendering:!0}},interfaces:{UnkownBookingPage:({open:e,onClose:t,children:n})=>{const r=os(),i=$o(r.breakpoints.down("sm"));return $.jsxs(ml,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(Am,{onClose:t}),$.jsx(gl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(cf,{maxWidth:"sm",sx:{p:0},children:n})})]})},IdentifiedBookingPage:({open:e,onClose:t,children:n})=>{const r=os(),i=$o(r.breakpoints.down("sm"));return $.jsxs(ml,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(Am,{onClose:t}),$.jsx(gl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(cf,{maxWidth:"sm",sx:{p:0},children:n})})]})},ConfirmationPage:e=>{const{open:t,onClose:n,allowCloseOnBooking:r,children:i}=e,o=os(),s=$o(o.breakpoints.down("sm"));return $.jsxs(ml,{open:t,onClose:()=>{r&&n()},hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:[r&&$.jsx(Am,{onClose:n}),$.jsx(gl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(cf,{maxWidth:"sm",sx:{p:0},children:i})})]})},LoginPage:({open:e,onClose:t,children:n})=>$.jsx(ml,{open:e,onClose:t,hideBackdrop:!0,fullWidth:!0,children:$.jsx(gl,{children:n})}),CancelPage:({open:e,onClose:t,children:n})=>{const r=os(),i=$o(r.breakpoints.down("sm"));return $.jsxs(ml,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(Am,{onClose:t}),$.jsx(gl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(cf,{maxWidth:"sm",sx:{p:0},children:n})})]})},ResourcePage:({mobileOpen:e,mobileOnClose:t,shouldDisplay:n,height:r,children:i})=>{const o=os(),s=$o(o.breakpoints.down("sm"));return $.jsxs($.Fragment,{children:[$.jsx(ml,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:$.jsx(gl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(cf,{maxWidth:"sm",sx:{p:0},children:i})})}),n&&$.jsxs(me,{xs:"auto",item:!0,container:!0,display:{xs:"none",sm:"flex"},wrap:"nowrap",sx:{mr:2,maxHeight:r,boxSizing:"border-box"},children:[$.jsx(me,{item:!0,xs:"auto",children:i}),$.jsx(me,{item:!0,xs:"1",children:$.jsx(jI,{orientation:"vertical",variant:"middle"})})]})]})},ProductPage:({open:e,onClose:t,children:n})=>{const r=os(),i=$o(r.breakpoints.down("sm"));return $.jsx(ml,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:$.jsx(gl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(cf,{maxWidth:"sm",sx:{p:0},children:n})})})},ErrorDialog:({open:e,onClose:t})=>{const{t:n}=wn();return $.jsxs(ml,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[$.jsx(NI,{id:"alert-dialog-title",children:n("reservation_failed.title")}),$.jsx(gl,{children:$.jsx(m0e,{id:"alert-dialog-description",children:n("reservation_failed.message")})}),$.jsx(i0e,{children:$.jsx(Oo,{onClick:t,autoFocus:!0,children:"Ok"})})]})}},callbacks:{}},muiTheme:{palette:{primary:{main:"#337ab7"},secondary:{main:"#777"},success:{main:"#5cb85c"},warning:{main:"#f0ad4e"},error:{main:"#d9534f"},info:{main:"#5bc0de"}},shape:{borderRadius:4},typography:{fontFamily:gc,fontSize:zl,h1:{fontFamily:gc,fontWeight:500,lineHeight:1,fontSize:`${iBe}rem`},h2:{fontFamily:gc,fontWeight:500,lineHeight:1,fontSize:`${oBe}rem`},h3:{fontFamily:gc,fontWeight:500,lineHeight:1,fontSize:`${sBe}rem`},h4:{fontFamily:gc,fontWeight:500,lineHeight:1,fontSize:`${aBe}rem`},h5:{fontFamily:gc,fontWeight:500,lineHeight:1,fontSize:`${lBe}rem`},h6:{fontFamily:gc,fontWeight:500,lineHeight:1,fontSize:`${uBe}rem`}},components:{MuiCssBaseline:{styleOverrides:{body:{scrollbarColor:"#bfbfbf #ffffff","&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:"#ffffff"},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:"#bfbfbf",minHeight:8,width:3,border:"5px solid #ffffff"},"&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus":{backgroundColor:"#8f8f8f"},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:"#8f8f8f"},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:"#8f8f8f"},"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner":{backgroundColor:"#ffffff"}}}},MuiButton:{styleOverrides:{root:{borderRadius:4}}},MuiTextField:{defaultProps:{variant:"outlined"}},MuiListItem:{styleOverrides:{root:{borderRadius:4}}},MuiListItemButton:{styleOverrides:{root:{borderRadius:4}}},MuiListItemText:{styleOverrides:{borderRadius:4}},MuiTypography:{styleOverrides:{h1:{marginBottom:Qf/2},h2:{marginBottom:Qf/2},h3:{marginBottom:Qf/2},h4:{marginBottom:Qf/2},h5:{marginBottom:Qf/2},h6:{marginBottom:Qf/2}}}}},fcConfig:{initialView:"timeGridWeek",useCustomTimumCss:!0,displayEventEnd:!1,scrollTimeReset:!1,scrollTime:"09:00:00",views:{timeGridWeek:{slotMinTime:"08:00:00",slotMaxTime:"21:00:00",allDaySlot:!1}}}},cBe="(timum\\.de|timum\\.at|timum\\.com|timum\\.fr|timum\\.io|timum\\.es|timum\\.it|timum\\.co.uktimum\\.nl|timum\\.eu|timum\\.info|timum\\.org|timum\\.me|localhost(:[0-9]+)?|127\\.0\\.0\\.1(:[0-9]+)?)",dBe=new RegExp(`^https?://([a-zA-Z0-9-]+\\.)*${cBe}$`);function fBe(e){if(typeof e=="string"){const t=e.match(/^(\d+)/);return t&&t[1]?Number(t[1]):500}else if(typeof e=="number")return e;return 500}function pBe(e,t){e&&Object.hasOwn(e,"message")&&typeof e.message>"u"&&delete t.message,e&&Object.hasOwn(e,"mobile")&&typeof e.mobile>"u"&&delete t.mobile,e&&Object.hasOwn(e,"email")&&typeof e.email>"u"&&delete t.email,e&&Object.hasOwn(e,"firstName")&&typeof e.firstName>"u"&&delete t.firstName,e&&Object.hasOwn(e,"lastName")&&typeof e.lastName>"u"&&delete t.lastName}function wq(e,t,n){if(n||(n={}),typeof t>"u"&&(t=0),t>=Object.entries(e).length)return n;for(const[r,i]of Object.entries(e))i&&i.index===t&&(n[r]=i);return t++,wq(e,t,n)}function hBe(e){var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""}function Z6(e,t,n){if(!e.includes("@")&&!e.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i))if(!t)console.warn("One or more ref parameters aren't fully qualified AND you have not provided a `platform` prop which allows timum to do it for you. Most likely timum won't find anything. Please either add a platform prop to your configuration or use a full reference in either the ref prop or a ref url parameter.");else return`${e}${n?"@"+n:""}@${t}`;return e}function mBe(e){e.callbacks={createBookingStarted:({timeslot:t,data:n})=>{var r;(r=window==null?void 0:window.parent)==null||r.postMessage({origin:"bookingjs",type:"createBookingStarted",timeslot:t,data:n},e.postMessageTarget)},createBookingSuccessful:({timeslot:t,response:n,data:r})=>{var i;(i=window==null?void 0:window.parent)==null||i.postMessage({origin:"bookingjs",type:"createBookingSuccessful",timeslot:t,response:n,data:r},e.postMessageTarget)},createBookingFailed:({timeslot:t,response:n,data:r})=>{var i;(i=window==null?void 0:window.parent)==null||i.postMessage({origin:"bookingjs",type:"createBookingFailed",timeslot:t,response:n,data:r},e.postMessageTarget)},cancelationgStarted:({timeslot:t,response:n})=>{var r;(r=window==null?void 0:window.parent)==null||r.postMessage({origin:"bookingjs",type:"cancelationStarted",timeslot:t,response:n},e.postMessageTarget)},cancelationSuccessful:({timeslot:t,response:n})=>{var r;(r=window==null?void 0:window.parent)==null||r.postMessage({origin:"bookingjs",type:"cancelationSuccessful",timeslot:t,response:n},e.postMessageTarget)},cancelationFailed:({timeslot:t,response:n})=>{var r;(r=window==null?void 0:window.parent)==null||r.postMessage({origin:"bookingjs",type:"cancelationFailed",timeslot:t,response:n},e.postMessageTarget)},fetchingPublicDataSucceeded:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingPublicDataSucceeded",data:t},e.postMessageTarget)},fetchingProductsSucceeded:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingProductsSucceeded",data:t},e.postMessageTarget)},fetchingBookablesSucceeded:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingBookablesSucceeded",data:t},e.postMessageTarget)},fetchingPublicDataFailed:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingPublicDataFailed",error:t},e.postMessageTarget)},fetchingProductsFailed:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingProductsFailed",error:t},e.postMessageTarget)},fetchingBookablesFailed:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingBookablesFailed",error:t},e.postMessageTarget)},openedProductSelection:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"openedProductSelection"},e.postMessageTarget)},openedResourceSelection:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"openedResourceSelection"},e.postMessageTarget)},openedBookingPage:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"openedBookingPage",timeslot:t},e.postMessageTarget)},openedCancelPage:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"openedCancelPage",timeslot:t},e.postMessageTarget)},openedConfirmationPage:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"openedConfirmationPage"},e.postMessageTarget)},closedProductSelection:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"closedProductSelection"},e.postMessageTarget)},closedResourceSelection:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"closedResourceSelection"},e.postMessageTarget)},closedBookingPage:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"closedBookingPage",timeslot:t},e.postMessageTarget)},closedCancelPage:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"closedCancelPage",timeslot:t},e.postMessageTarget)},closedConfirmationPage:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"closedConfirmationPage"},e.postMessageTarget)}}}const Sq=(e,t)=>{e&&!t.includes(e)&&t.push(e)},Cq=(e,t)=>{e&&(e.forEach?e.forEach(n=>{t[n.resource.uuid]={...n}}):t[e.resource.uuid]={...e})},$q=(e,t)=>{e&&e.forEach(n=>{t[n.resource.uuid]?(t[n.resource.uuid].bookables=n.bookables,t[n.resource.uuid].products=n.products):t[n.resource.uuid]={...n}})};async function Tq(e,t,n,r,i,o){var w,b,y,S;let s={};const a=t==null?void 0:t.ref,l=t==null?void 0:t.tslRefs,u=t==null?void 0:t.virtualTslRefs,c=t==null?void 0:t.prdRefs,f=t==null?void 0:t.additionalData,m=t==null?void 0:t.enableShowAllResourcesOption,p=t==null?void 0:t.publicData,g=t==null?void 0:t.tsls,v=t==null?void 0:t.channelKey;if((a==null?void 0:a.length)>0&&!(p!=null&&p.length)>0){const C=await r({channelOrResourceId:a[0],params:{channelKey:v,ref:a,...f}});Cq(C==null?void 0:C.data,s)}if((p==null?void 0:p.length)>0&&Cq(p,s),m&&(!l||l.length===0)&&(!u||u.length===0)&&(s={"all-option":{resource:{uuid:"all-option",name:e("common.All")},provider:(b=(w=Object.values(s))==null?void 0:w[0])==null?void 0:b.provider},...s}),((l==null?void 0:l.length)>0||(u==null?void 0:u.length)>0)&&!(g!=null&&g.length)>0){const C=await i({params:{channelKey:v,tslIds:l,...f},body:u});$q(C==null?void 0:C.data,s)}if((g==null?void 0:g.length)>0&&$q(g,s),(c==null?void 0:c.length)>0){Object.values(s).forEach(E=>{var A;E!=null&&E.bookables&&((A=Object.values(E==null?void 0:E.bookables))==null||A.forEach(_=>{_.forEach(O=>{var M;Sq(O==null?void 0:O.product_uuid,c),(M=O.products)==null||M.forEach(L=>{Sq(L.uuid,c)})})}))});const C=await o({params:{prdRefs:c,additionalData:f}}),T=Object.entries(s).filter(([,E])=>{var _,O;if(((O=(_=E==null?void 0:E.resource)==null?void 0:_.supportedProducts)==null?void 0:O.length)===0)return!1;const A=C.data.filter(M=>{var F;const L=(F=E==null?void 0:E.resource)==null?void 0:F.supportedProducts;return L&&L.some(z=>z===M.uuid)});return A.length===0?!1:(E.products=A,!0)});s=Object.fromEntries(T)}if(n(Ine(s)),Object.values(s).length>1)if(t.cancelableAppointment){let C=!1;for(const T of Object.values(s))((y=T==null?void 0:T.resource)==null?void 0:y.uuid)===((S=t.cancelableAppointment)==null?void 0:S.resId)&&(n(wd(T)),C=!0);C||n(wd(Object.values(s)[0]))}else n(wd(Object.values(s)[0]));else Object.values(s).length===1?n(wd(Object.values(s)[0])):console.warn("Given reference(s) seems to be invalid.")}function gBe(e){try{return eBe(e)}catch(t){console.error("Error decrypting JWT:",t)}}function Q6(e){var C,T,E;const t={...e},n=window.location.search,r=new URLSearchParams(t.queryString||n);let i=r.get("pData")??r.get("pdata"),o=r.get("pDataPlatform")?{platform:r.get("pDataPlatform"),id:r.get("pDataId"),idPropName:r.get("pDataIdPropName")}:void 0;const s=hBe("PLAY_SESSION");let a=r.get("channelKey")??r.get("channelkey");const l=r.get("X-SIGNED-APP-CUSTOMER");let u=r.get("resId"),c=r.getAll("ref"),f=r.getAll("tslRefs"),m=r.getAll("virtualTslRefs"),p=r.getAll("prdRefs"),g=r.get("culture"),v=r.get("postMessageTarget"),w=r.get("enableShowAllResourcesOption"),b=r.get("conf");b&&(b=gBe(b),c=b.ref||[],a=b.channelKey,i=b.pData,f=b.tslRefs||[],p=b.prdRefs||[],g=b.urlCulture,m=b.virtualTslRefs||[],v=b.postMessageTarget,w=b.enableShowAllResourcesOption);const y=t.queryHash||window.location.hash,[,,S]=(y==null?void 0:y.split("/"))??[];if((i||o)&&(t.pData=i??o),a&&(t.channelKey=a),c&&c.length>0&&(t.ref=c),f&&f.length>0&&(t.tslRefs=f),m&&m.length>0&&(t.virtualTslRefs=m),p&&p.length>0&&(t.prdRefs=p),g&&(t.culture=g),v&&(t.postMessageTarget=v),w&&(t.enableShowAllResourcesOption=w),sn.isArray(t.ref)?t.ref=[...t.ref]:t.ref?t.ref=[t.ref]:t.ref=[],sn.isArray(t.tslRefs)?t.tslRefs=[...t.tslRefs]:t.tslRefs?t.tslRefs=[t.tslRefs]:t.tslRefs=[],sn.isArray(t.prdRefs)?t.prdRefs=[...t.prdRefs]:t.prdRefs?t.prdRefs=[t.prdRefs]:t.prdRefs=[],(!t.ref||t.ref.length===0)&&(!t.tslRefs||t.tslRefs.length===0)){console.log("timum hides itself. No reference in either url or options detected.");return}for(let A=0;A<((C=t==null?void 0:t.ref)==null?void 0:C.length);A++)t.ref[A]=Z6(t.ref[A],t.platform,t.prvUuid);for(let A=0;A<((T=t==null?void 0:t.tslRefs)==null?void 0:T.length);A++)t.tslRefs[A]=Z6(t.tslRefs[A],t.platform,t.prvUuid);for(let A=0;A<((E=t==null?void 0:t.prdRefs)==null?void 0:E.length);A++)t.prdRefs[A]=Z6(t.prdRefs[A],t.platform,t.prvUuid);return s&&(t.cookie=s),l&&(t.cancelableAppointment={authToken:l,appointmentUuid:S,customerUuid:o.id,resourceUuid:u}),t.host&&vte(t.host),t.height&&(t.height=fBe(t.height)),t}const Eq=(e,t,n,r,i,o,s)=>{const a=Object.keys(t).length>0,l=Object.keys(e).length>0;let u=sn.merge({},vc.appConfig,e),c=sn.merge({},vc.muiTheme,t),f=sn.merge({},vc.fcConfig,n);u.fields=wq(u.fields),pBe(e.fields,u.fields),l&&!o&&(u.localization=vc.appConfig.localization),l&&!i&&(u.fields=vc.appConfig.fields),l&&!r&&(u.hideTimumFooter=vc.appConfig.hideTimumFooter),a&&!r&&(c=vc.muiTheme),u.postMessageTarget&&mBe(u),s(Dne(f)),s(Pne(u)),s(Mne(c))},kq=({muiTheme:e={},fcConfig:t={},appConfig:n={},children:r})=>{const{t:i}=wn(),o=Dh(),s=Se(qne),a=Se(Yne),l=Se(Kne),u=re.useMemo(()=>{var y;return(y=n==null?void 0:n.callbacks)==null?void 0:y.fetchingPublicDataFailed},[n]),[c,{isFetching:f,error:m}]=$te(),[p,{isFetching:g}]=xte(),[v,{isFetching:w}]=Ste(),b=R.useCallback((y=n,S=e,C=t)=>{const T=Q6(y);T&&(Eq(T,S,C,s,a,l,o),Tq(i,T,o,c,p,v))},[n,e,t,s,a,l,o,i,c,p,v]);return R.useEffect(()=>{const y=S=>{var C,T,E,A,_;dBe.test(S.origin)&&((C=S.data)==null?void 0:C.type)==="rerender"?b({...(T=S.data)==null?void 0:T.appConfig},{...(E=S.data)==null?void 0:E.muiTheme},{...(A=S.data)==null?void 0:A.fcConfig}):((_=S.data)==null?void 0:_.type)==="rerender"&&console.error("ConfigHandler received a message from an unexpected origin:",S.origin)};return window.addEventListener("message",y),()=>{window.removeEventListener("message",y)}},[b,n]),R.useEffect(()=>{const y=Q6(n);y&&Eq(y,e,t,s,a,l,o)},[n,e,t,o,s,a,l,c,p,v]),R.useEffect(()=>{const y=Q6(n);y&&Tq(i,y,o,c,p,v)},[n,o,c,p,v,i]),R.useEffect(()=>{o(jne(g||f||w))},[o,f,g,w]),m&&u&&u(m),r};kq.displayName="ConfigHandler";const vBe=une({reducer:{[pv.reducerPath]:pv.reducer,appState:Zne},middleware:e=>e().concat(pv.middleware),devTools:{trace:!0}});var Aq=[],yBe=Aq.forEach,bBe=Aq.slice;function xBe(e){return yBe.call(bBe.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var Rq=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,wBe=function(t,n,r){var i=r||{};i.path=i.path||"/";var o=encodeURIComponent(n),s="".concat(t,"=").concat(o);if(i.maxAge>0){var a=i.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(a))}if(i.domain){if(!Rq.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!Rq.test(i.path))throw new TypeError("option path is invalid");s+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(s+="; HttpOnly"),i.secure&&(s+="; Secure"),i.sameSite){var l=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s},_q={create:function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),i&&(o.domain=i),document.cookie=wBe(t,encodeURIComponent(n),o)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),i=0;i<r.length;i++){for(var o=r[i];o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(n)===0)return o.substring(n.length,o.length)}return null},remove:function(t){this.create(t,"",-1)}},SBe={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=_q.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&_q.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},CBe={name:"querystring",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),o=i.split("&"),s=0;s<o.length;s++){var a=o[s].indexOf("=");if(a>0){var l=o[s].substring(0,a);l===t.lookupQuerystring&&(n=o[s].substring(a+1))}}}return n}},Rm=null,Oq=function(){if(Rm!==null)return Rm;try{Rm=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Rm=!1}return Rm},$Be={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&Oq()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&Oq()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},_m=null,Pq=function(){if(_m!==null)return _m;try{_m=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{_m=!1}return _m},TBe={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&Pq()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&Pq()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},EBe={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)n.push(navigator.languages[r]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},kBe={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},ABe={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},RBe={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};function _Be(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var Dq=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Fo(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return jo(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=xBe(r,this.options||{},_Be()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(SBe),this.addDetector(CBe),this.addDetector($Be),this.addDetector(TBe),this.addDetector(EBe),this.addDetector(kBe),this.addDetector(ABe),this.addDetector(RBe)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(o){if(r.detectors[o]){var s=r.detectors[o].lookup(r.options);s&&typeof s=="string"&&(s=[s]),s&&(i=i.concat(s))}}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(o){i.detectors[o]&&i.detectors[o].cacheUserLanguage(n,i.options)}))}}]),e}();Dq.type="languageDetector";var J6=["",""],X6=RegExp("([".concat(J6.join(""),"]{9})+"),"gu"),OBe=9,PBe="subliminal:start",DBe=function(t){return Array.from(new TextEncoder().encode(t))},MBe=function(t){return new TextDecoder().decode(new Uint8Array(t))},IBe=function(t){var n=8-t.length;return"0".repeat(n)+t},Mq=function(t){var n=DBe(t).map(Number),r=n.map(function(o){return IBe(o.toString(2))+"0"}).join(""),i=Array.from(r).map(function(o){return J6[Number(o)]}).join("");return i},Iq=Mq(PBe),Nq=function(t){var n=Array.from(t).map(function(o){return J6.indexOf(o)}).map(String).join(""),r=n.match(/(.{9})/g),i=Uint8Array.from((r==null?void 0:r.map(function(o){return parseInt(o.slice(0,8),2)}))||[]);return MBe(i)},NBe=function(t){var n,r=(n=t.match(X6))===null||n===void 0?void 0:n.filter(function(i){return i.length>OBe-1});if(!(!r||r.length===0))return Nq(r[r.length-1])},LBe=function(t){return t.replace(X6,"")},FBe=function(t){if(Object.keys(t).length===0)return t;var n={k:t.key,n:t.ns,l:t.lng,s:t.source};return JSON.stringify(n)},jBe=function(t){if(!(!t||typeof t!="string"||t.indexOf("{")!==0))try{var n=JSON.parse(t||"{}");return{key:n.k,ns:n.n,lng:n.l,source:n.s}}catch{return}};function Lq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=FBe(t),r=Mq(n);return typeof e=="string"&&e?Iq+e+r:e}function Vb(e){var t=NBe(e),n=jBe(t),r=LBe(e);return{text:r,invisibleMeta:n}}function eT(e){if(!e||e.length<27||!X6.test(e))return!1;var t=e.substring(e.length-9),n=Nq(t);return n==="}"}function zBe(e){return e.startsWith(Iq)}function Fq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fq(Object(n),!0).forEach(function(r){rn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var jq="subliminal",BBe={name:jq,type:"postProcessor",options:{},setOptions:function(t){this.options=Wb(Wb({},t),this.options)},process:function(t,n,r,i){var o=this.options=Wb(Wb({},r),this.options),s,a,l,u;if(r.i18nResolved)s=r.i18nResolved.exactUsedKey,a=r.i18nResolved.usedNS,l=r.i18nResolved.usedLng,r.i18nResolved.res===void 0?s!==t?u="default":u="key":u="translation";else{var c,f,m,p,g,v,w=(c=(f=o.keySeparator)!==null&&f!==void 0?f:i==null||(m=i.options)===null||m===void 0?void 0:m.keySeparator)!==null&&c!==void 0?c:".",b=i.extractFromKey(n.join(w),r),y=b.key,S=b.namespaces;s=y,a=(p=(g=S==null?void 0:S[0])!==null&&g!==void 0?g:o.ns)!==null&&p!==void 0?p:i==null||(v=i.options)===null||v===void 0?void 0:v.defaultNS,l=r.lng||this.language,s===t?u="key":u="translation"}return Lq(t,{key:s,ns:a,lng:l,source:u})},overloadTranslationOptionHandler:function(){return{postProcess:jq,postProcessPassResolved:!0}}},zq=["placeholder","title","alt"],Bo={highlight:"#26a69a",warning:"#e67a00"},Bq=function(){var t,n;typeof process<"u"&&(n=process),!n&&typeof window<"u"&&(n=window.process);var r=n||{},i=((t=r.env)===null||t===void 0?void 0:t.locizeIncontext)||"production";return i==="development"?"http://localhost:3003/":i==="staging"?"https://incontext-dev.locize.app":"https://incontext.locize.app"},ya=function(){if(!(typeof document>"u")){var e=document.createElement("style");return document.head.appendChild(e),e.sheet}}();function Uq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function UBe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uq(Object(n),!0).forEach(function(r){rn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Hq={committed:"commitKeys"};function HBe(e){return Hq[e]?Hq[e]:e}var tT=[];function $r(e,t){if(!Oe.source){var n;Oe.source=(n=document.getElementById("i18next-editor-iframe"))===null||n===void 0?void 0:n.contentWindow}if(Oe.origin||(Oe.origin=Bq()),!Oe.source||!Oe.source.postMessage){tT.push({action:e,payload:t});return}Oe.legacy?Oe.source.postMessage(UBe({message:e},t),Oe.origin):Oe.source.postMessage({sender:"i18next-editor",senderAPIVersion:"v1",action:e,message:e,payload:t},Oe.origin);var r=tT;tT=[],r.forEach(function(i){var o=i.action,s=i.payload;$r(o,s)})}var yc={},nT=5,Oe={init:function(t,n){Oe.i18n=t,Oe.clickHandler=n},requestInitialize:function(t){$r("requestInitialize",t),!Oe.initInterval&&(Oe.initInterval=setInterval(function(){nT=nT-1,Oe.requestInitialize(t),nT<0&&Oe.initInterval&&(clearInterval(Oe.initInterval),delete Oe.initInterval)},1e3))},selectKey:function(t){$r("selectKey",t)},confirmResourceBundle:function(t){$r("confirmResourceBundle",t)},sendCurrentParsedContent:function(){$r("sendCurrentParsedContent",{content:Object.values(bs.data).map(function(t){return{id:t.id,keys:t.keys}})})},sendCurrentTargetLanguage:function(t){$r("sendCurrentTargetLanguage",{targetLng:t||Oe.i18n.getLng()})},addHandler:function(t,n){yc[t]||(yc[t]=[]),yc[t].push(n)},sendLocizeIsEnabled:function(){$r("locizeIsEnabled",{enabled:!0})},turnOn:function(){if(Oe.scriptTurnedOff)return $r("forcedOff");Oe.clickInterceptionEnabled||window.document.body.addEventListener("click",Oe.clickHandler,!0),Oe.clickInterceptionEnabled=!0,$r("turnedOn")},turnOff:function(){if(Oe.scriptTurnedOff)return $r("forcedOff");Oe.clickInterceptionEnabled&&window.document.body.removeEventListener("click",Oe.clickHandler,!0),Oe.clickInterceptionEnabled=!1,$r("turnedOff")},onAddedKey:function(t,n,r,i){var o={lng:t,ns:n,key:r,value:i};$r("added",o)}};typeof window<"u"&&window.addEventListener("message",function(e){var t=e.data,n=t.sender,r=t.action,i=t.message,o=t.payload;if(i){var s=HBe(i);yc[s]&&yc[s].forEach(function(a){a(o,e)})}else n==="i18next-editor-frame"&&yc[r]&&yc[r].forEach(function(a){a(o)})});function Gb(e,t){var n=bs.get(e.eleUniqueID);if(!(!n||!n.keys[e.textType])){var r=Lq(t,n.subliminal);if(e.textType==="text")n.node.textContent=r;else if(e.textType.indexOf("attr:")===0){var i=e.textType.replace("attr:","");n.node.setAttribute(i,r)}else if(e.textType==="html"){var o="".concat(e.textType,"-").concat(e.children);if(!n.originalChildNodes){var s=[];n.node.childNodes.forEach(function(f){s.push(f)}),n.originalChildNodes=s}if(n.children[o].length===n.node.childNodes.length)n.node.innerHTML=r;else{var a=n.children[o],l=a[0].child,u=document.createElement("div");u.innerHTML=r;var c=[];u.childNodes.forEach(function(f){c.push(f)}),c.forEach(function(f){try{n.node.insertBefore(f,l)}catch{n.node.appendChild(f)}}),a.forEach(function(f){n.node.contains(f.child)&&n.node.removeChild(f.child)})}}}}function VBe(e){var t=e.meta,n=e.value;t&&n!==void 0&&Gb(t,n)}Oe.addHandler("editKey",VBe);function WBe(e){var t=e.meta,n=e.value,r=e.lng;if(t&&n!==void 0){Gb(t,n);var i=r||Oe.i18n.getLng();Oe.i18n.setResource(i,t.ns,t.key,n),Oe.i18n.triggerRerender()}}Oe.addHandler("commitKey",WBe);function GBe(e){if(Array.isArray(e))return H6(e)}function qBe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1295
|
+
`;function Dze(){const e=Se(t=>Une(t,"useCustomTimumCss"));return $.jsxs($.Fragment,{children:[e&&$.jsx(M4,{styles:Pze}),$.jsx(M4,{styles:Oze})]})}function Mze({children:e}){const[t,n]=re.useState(null);if(R.useEffect(()=>{setTimeout(()=>{n(!0)},500)},[]),t)return e}function Ize(e){const t=Se(Sd),n=Se(zne),r=Se(s=>je(s,"calendarFrontend")),i=Se(s=>je(s,"calendarFrontendOptions"));let o=rS(n??{});return o=Hae(o,{factor:2.5}),$.jsxs(Wae,{theme:o,children:[$.jsx(Bhe,{}),$.jsx(Dze,{}),r==="fullCalendar"&&$.jsx(df,{...e,...i.fullCalendar,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(mq,{})}),r==="detailsFullCalendar"&&$.jsx(df,{...e,...i.detailsFullCalendar,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(I$,{CalendarView:mq})}),(r==="pureListView"||r==="listView")&&$.jsx(df,{...e,...i.pureListView,...i.listView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(j$,{})}),r==="detailsListView"&&$.jsx(df,{...e,...i.detailsListView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(I$,{CalendarView:j$})}),r==="condensedView"&&$.jsx(df,{...e,...i.condensedView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(yq,{})}),r==="detailsCondensedView"&&$.jsx(df,{...e,...i.detailsCondensedView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(I$,{CalendarView:yq})}),t&&r!=="fullCalendar"&&r!=="detailsFullCalendar"&&r!=="condensedView"&&r!=="detailsCondensedView"&&r!=="detailsListView"&&r!=="listView"&&r!=="pureListView"&&$.jsx(Mze,{children:$.jsxs($.Fragment,{children:["You must set calendarFrontend either to ",$.jsx("code",{children:"fullCalendar"}),","," ",$.jsx("code",{children:"detailsFullCalendar"}),",",$.jsx("code",{children:"listView"}),","," ",$.jsx("code",{children:"detailsListView"}),", ",$.jsx("code",{children:"condensedView"})," or"," ",$.jsx("code",{children:"detailsCondensedView"})," in your config."]})})]})}new TextEncoder;const bq=new TextDecoder,Nze=e=>{const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n},Lze=e=>{let t=e;t instanceof Uint8Array&&(t=bq.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return Nze(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class jr extends Error{constructor(t,n){var r;super(t,n),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,(r=Error.captureStackTrace)==null||r.call(Error,this,this.constructor)}}jr.code="ERR_JOSE_GENERIC";class Fze extends jr{constructor(t,n,r="unspecified",i="unspecified"){super(t,{cause:{claim:r,reason:i,payload:n}}),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=r,this.reason=i,this.payload=n}}Fze.code="ERR_JWT_CLAIM_VALIDATION_FAILED";class jze extends jr{constructor(t,n,r="unspecified",i="unspecified"){super(t,{cause:{claim:r,reason:i,payload:n}}),this.code="ERR_JWT_EXPIRED",this.claim=r,this.reason=i,this.payload=n}}jze.code="ERR_JWT_EXPIRED";class zze extends jr{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}}zze.code="ERR_JOSE_ALG_NOT_ALLOWED";class Bze extends jr{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}}Bze.code="ERR_JOSE_NOT_SUPPORTED";class Uze extends jr{constructor(t="decryption operation failed",n){super(t,n),this.code="ERR_JWE_DECRYPTION_FAILED"}}Uze.code="ERR_JWE_DECRYPTION_FAILED";class Hze extends jr{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}}Hze.code="ERR_JWE_INVALID";class Vze extends jr{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}}Vze.code="ERR_JWS_INVALID";class jl extends jr{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}}jl.code="ERR_JWT_INVALID";class Wze extends jr{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}}Wze.code="ERR_JWK_INVALID";class Gze extends jr{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}}Gze.code="ERR_JWKS_INVALID";class qze extends jr{constructor(t="no applicable key found in the JSON Web Key Set",n){super(t,n),this.code="ERR_JWKS_NO_MATCHING_KEY"}}qze.code="ERR_JWKS_NO_MATCHING_KEY";class Yze extends jr{constructor(t="multiple matching keys found in the JSON Web Key Set",n){super(t,n),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}Yze.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";class Kze extends jr{constructor(t="request timed out",n){super(t,n),this.code="ERR_JWKS_TIMEOUT"}}Kze.code="ERR_JWKS_TIMEOUT";class Zze extends jr{constructor(t="signature verification failed",n){super(t,n),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}Zze.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";function Qze(e){return typeof e=="object"&&e!==null}function Jze(e){if(!Qze(e)||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}const Xze=Lze;function eBe(e){if(typeof e!="string")throw new jl("JWTs must use Compact JWS serialization, JWT must be a string");const{1:t,length:n}=e.split(".");if(n===5)throw new jl("Only JWTs using Compact JWS serialization can be decoded");if(n!==3)throw new jl("Invalid JWT");if(!t)throw new jl("JWTs must contain a payload");let r;try{r=Xze(t)}catch{throw new jl("Failed to base64url decode the payload")}let i;try{i=JSON.parse(bq.decode(r))}catch{throw new jl("Failed to parse the decoded payload as JSON")}if(!Jze(i))throw new jl("Invalid JWT Claims Set");return i}var Y6={},tBe=En;Object.defineProperty(Y6,"__esModule",{value:!0});var xq=Y6.default=void 0,nBe=tBe(Bn()),rBe=$;xq=Y6.default=(0,nBe.default)((0,rBe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Am(e){const{children:t,onClose:n,...r}=e;return $.jsxs(NI,{sx:{m:0,p:2},...r,children:[t,n?$.jsx(y0,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:i=>i.palette.grey[500]},children:$.jsx(xq,{})}):null]})}Am.propTypes={children:nt.node,onClose:nt.func.isRequired};const zl=14,gc='"Ek Mukta","Helvetica Neue", Helvetica, Arial, sans-serif',Qf=Math.floor(zl*1.428571429),iBe=If(Math.floor(zl*2.6)),oBe=If(Math.floor(zl*2.3)),sBe=If(Math.floor(zl*1.9)),aBe=If(Math.floor(zl*1.5)),lBe=If(Math.floor(zl*1.15)),uBe=If(Math.floor(zl)),K6=/(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g,vc={appConfig:{host:"https://www.timum.de",resource_channel:"RESOURCE_REFERENCE",calendarFrontend:"detailsListView",calendarFrontendOptions:{condensedView:{forceResourceSelectorDialog:!0}},enableShowAllResourcesOption:!1,allowCloseOnBooking:!0,hideTimumFooter:!1,sendCustomValuesAsMessage:!1,gatherAddressData:!1,height:500,fields:{firstName:{index:0,title:"fields.firstName",validation:Rl().required("validation.field_required")},lastName:{index:1,title:"fields.lastName",validation:Rl().required("validation.field_required")},email:{index:2,title:"fields.email",format:"email",type:"text",validation:Rl().email("validation.email_field_must_be_valid").required("validation.field_required")},mobile:{index:3,title:"fields.mobile",type:"phoneNumber",isRequired:!1,defaultCountry:"DE",preferredCountries:["DE","CH","AT"]},message:{index:4,title:"fields.message",type:"textarea",validation:Rl().max(1024).test("no-emojis","validation.no_emojis",e=>!K6.test(e)),limit:1024,onChange:e=>e.replace(K6,"")},agbs:{index:5,title:"fields.accept_timum_privacy",type:"checkbox",validation:H2().required("validation.field_required").test("privacyAccepted","validation.privacy_field_required",e=>e===!0)},locale:{index:6,preventRendering:!0}},interfaces:{UnkownBookingPage:({open:e,onClose:t,children:n})=>{const r=os(),i=$o(r.breakpoints.down("sm"));return $.jsxs(ml,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(Am,{onClose:t}),$.jsx(gl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(cf,{maxWidth:"sm",sx:{p:0},children:n})})]})},IdentifiedBookingPage:({open:e,onClose:t,children:n})=>{const r=os(),i=$o(r.breakpoints.down("sm"));return $.jsxs(ml,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(Am,{onClose:t}),$.jsx(gl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(cf,{maxWidth:"sm",sx:{p:0},children:n})})]})},ConfirmationPage:e=>{const{open:t,onClose:n,allowCloseOnBooking:r,children:i}=e,o=os(),s=$o(o.breakpoints.down("sm"));return $.jsxs(ml,{open:t,onClose:()=>{r&&n()},hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:[r&&$.jsx(Am,{onClose:n}),$.jsx(gl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(cf,{maxWidth:"sm",sx:{p:0},children:i})})]})},LoginPage:({open:e,onClose:t,children:n})=>$.jsx(ml,{open:e,onClose:t,hideBackdrop:!0,fullWidth:!0,children:$.jsx(gl,{children:n})}),CancelPage:({open:e,onClose:t,children:n})=>{const r=os(),i=$o(r.breakpoints.down("sm"));return $.jsxs(ml,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(Am,{onClose:t}),$.jsx(gl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(cf,{maxWidth:"sm",sx:{p:0},children:n})})]})},ResourcePage:({mobileOpen:e,mobileOnClose:t,shouldDisplay:n,height:r,children:i})=>{const o=os(),s=$o(o.breakpoints.down("sm"));return $.jsxs($.Fragment,{children:[$.jsx(ml,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:$.jsx(gl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(cf,{maxWidth:"sm",sx:{p:0},children:i})})}),n&&$.jsxs(me,{xs:"auto",item:!0,container:!0,display:{xs:"none",sm:"flex"},wrap:"nowrap",sx:{mr:2,maxHeight:r,boxSizing:"border-box"},children:[$.jsx(me,{item:!0,xs:"auto",children:i}),$.jsx(me,{item:!0,xs:"1",children:$.jsx(jI,{orientation:"vertical",variant:"middle"})})]})]})},ProductPage:({open:e,onClose:t,children:n})=>{const r=os(),i=$o(r.breakpoints.down("sm"));return $.jsx(ml,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:$.jsx(gl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(cf,{maxWidth:"sm",sx:{p:0},children:n})})})},ErrorDialog:({open:e,onClose:t})=>{const{t:n}=wn();return $.jsxs(ml,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[$.jsx(NI,{id:"alert-dialog-title",children:n("reservation_failed.title")}),$.jsx(gl,{children:$.jsx(m0e,{id:"alert-dialog-description",children:n("reservation_failed.message")})}),$.jsx(i0e,{children:$.jsx(Oo,{onClick:t,autoFocus:!0,children:"Ok"})})]})}},callbacks:{}},muiTheme:{palette:{primary:{main:"#337ab7"},secondary:{main:"#777"},success:{main:"#5cb85c"},warning:{main:"#f0ad4e"},error:{main:"#d9534f"},info:{main:"#5bc0de"}},shape:{borderRadius:4},typography:{fontFamily:gc,fontSize:zl,h1:{fontFamily:gc,fontWeight:500,lineHeight:1,fontSize:`${iBe}rem`},h2:{fontFamily:gc,fontWeight:500,lineHeight:1,fontSize:`${oBe}rem`},h3:{fontFamily:gc,fontWeight:500,lineHeight:1,fontSize:`${sBe}rem`},h4:{fontFamily:gc,fontWeight:500,lineHeight:1,fontSize:`${aBe}rem`},h5:{fontFamily:gc,fontWeight:500,lineHeight:1,fontSize:`${lBe}rem`},h6:{fontFamily:gc,fontWeight:500,lineHeight:1,fontSize:`${uBe}rem`}},components:{MuiCssBaseline:{styleOverrides:{body:{scrollbarColor:"#bfbfbf #ffffff","&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:"#ffffff"},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:"#bfbfbf",minHeight:8,width:3,border:"5px solid #ffffff"},"&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus":{backgroundColor:"#8f8f8f"},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:"#8f8f8f"},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:"#8f8f8f"},"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner":{backgroundColor:"#ffffff"}}}},MuiButton:{styleOverrides:{root:{borderRadius:4}}},MuiTextField:{defaultProps:{variant:"outlined"}},MuiListItem:{styleOverrides:{root:{borderRadius:4}}},MuiListItemButton:{styleOverrides:{root:{borderRadius:4}}},MuiListItemText:{styleOverrides:{borderRadius:4}},MuiTypography:{styleOverrides:{h1:{marginBottom:Qf/2},h2:{marginBottom:Qf/2},h3:{marginBottom:Qf/2},h4:{marginBottom:Qf/2},h5:{marginBottom:Qf/2},h6:{marginBottom:Qf/2}}}}},fcConfig:{initialView:"timeGridWeek",useCustomTimumCss:!0,displayEventEnd:!1,scrollTimeReset:!1,scrollTime:"09:00:00",views:{timeGridWeek:{slotMinTime:"08:00:00",slotMaxTime:"21:00:00",allDaySlot:!1}}}},cBe="(timum\\.de|timum\\.at|timum\\.com|timum\\.fr|timum\\.io|timum\\.es|timum\\.it|timum\\.co.uktimum\\.nl|timum\\.eu|timum\\.info|timum\\.org|timum\\.me|localhost(:[0-9]+)?|127\\.0\\.0\\.1(:[0-9]+)?)",dBe=new RegExp(`^https?://([a-zA-Z0-9-]+\\.)*${cBe}$`);function fBe(e){if(typeof e=="string"){const t=e.match(/^(\d+)/);return t&&t[1]?Number(t[1]):500}else if(typeof e=="number")return e;return 500}function pBe(e,t){e&&Object.hasOwn(e,"message")&&typeof e.message>"u"&&delete t.message,e&&Object.hasOwn(e,"mobile")&&typeof e.mobile>"u"&&delete t.mobile,e&&Object.hasOwn(e,"email")&&typeof e.email>"u"&&delete t.email,e&&Object.hasOwn(e,"firstName")&&typeof e.firstName>"u"&&delete t.firstName,e&&Object.hasOwn(e,"lastName")&&typeof e.lastName>"u"&&delete t.lastName}function wq(e,t,n){if(n||(n={}),typeof t>"u"&&(t=0),t>=Object.entries(e).length)return n;for(const[r,i]of Object.entries(e))i&&i.index===t&&(n[r]=i);return t++,wq(e,t,n)}function hBe(e){var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""}function Z6(e,t,n){if(!e.includes("@")&&!e.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i))if(!t)console.warn("One or more ref parameters aren't fully qualified AND you have not provided a `platform` prop which allows timum to do it for you. Most likely timum won't find anything. Please either add a platform prop to your configuration or use a full reference in either the ref prop or a ref url parameter.");else return`${e}${n?"@"+n:""}@${t}`;return e}function mBe(e){e.callbacks={createBookingStarted:({timeslot:t,data:n})=>{var r;(r=window==null?void 0:window.parent)==null||r.postMessage({origin:"bookingjs",type:"createBookingStarted",timeslot:t,data:n},e.postMessageTarget)},createBookingSuccessful:({timeslot:t,response:n,data:r})=>{var i;(i=window==null?void 0:window.parent)==null||i.postMessage({origin:"bookingjs",type:"createBookingSuccessful",timeslot:t,response:n,data:r},e.postMessageTarget)},createBookingFailed:({timeslot:t,response:n,data:r})=>{var i;(i=window==null?void 0:window.parent)==null||i.postMessage({origin:"bookingjs",type:"createBookingFailed",timeslot:t,response:n,data:r},e.postMessageTarget)},cancelationgStarted:({timeslot:t,response:n})=>{var r;(r=window==null?void 0:window.parent)==null||r.postMessage({origin:"bookingjs",type:"cancelationStarted",timeslot:t,response:n},e.postMessageTarget)},cancelationSuccessful:({timeslot:t,response:n})=>{var r;(r=window==null?void 0:window.parent)==null||r.postMessage({origin:"bookingjs",type:"cancelationSuccessful",timeslot:t,response:n},e.postMessageTarget)},cancelationFailed:({timeslot:t,response:n})=>{var r;(r=window==null?void 0:window.parent)==null||r.postMessage({origin:"bookingjs",type:"cancelationFailed",timeslot:t,response:n},e.postMessageTarget)},fetchingPublicDataSucceeded:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingPublicDataSucceeded",data:t},e.postMessageTarget)},fetchingProductsSucceeded:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingProductsSucceeded",data:t},e.postMessageTarget)},fetchingBookablesSucceeded:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingBookablesSucceeded",data:t},e.postMessageTarget)},fetchingPublicDataFailed:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingPublicDataFailed",error:t},e.postMessageTarget)},fetchingProductsFailed:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingProductsFailed",error:t},e.postMessageTarget)},fetchingBookablesFailed:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingBookablesFailed",error:t},e.postMessageTarget)},openedProductSelection:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"openedProductSelection"},e.postMessageTarget)},openedResourceSelection:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"openedResourceSelection"},e.postMessageTarget)},openedBookingPage:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"openedBookingPage",timeslot:t},e.postMessageTarget)},openedCancelPage:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"openedCancelPage",timeslot:t},e.postMessageTarget)},openedConfirmationPage:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"openedConfirmationPage"},e.postMessageTarget)},closedProductSelection:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"closedProductSelection"},e.postMessageTarget)},closedResourceSelection:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"closedResourceSelection"},e.postMessageTarget)},closedBookingPage:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"closedBookingPage",timeslot:t},e.postMessageTarget)},closedCancelPage:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"closedCancelPage",timeslot:t},e.postMessageTarget)},closedConfirmationPage:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"closedConfirmationPage"},e.postMessageTarget)}}}const Sq=(e,t)=>{e&&!t.includes(e)&&t.push(e)},Cq=(e,t)=>{e&&(e.forEach?e.forEach(n=>{t[n.resource.uuid]={...n}}):t[e.resource.uuid]={...e})},$q=(e,t)=>{e&&e.forEach(n=>{t[n.resource.uuid]?(t[n.resource.uuid].bookables=n.bookables,t[n.resource.uuid].products=n.products):t[n.resource.uuid]={...n}})};async function Tq(e,t,n,r,i,o){var w,b,y,S;let s={};const a=t==null?void 0:t.ref,l=t==null?void 0:t.tslRefs,u=t==null?void 0:t.virtualTslRefs,c=t==null?void 0:t.prdRefs,f=t==null?void 0:t.additionalData,m=t==null?void 0:t.enableShowAllResourcesOption,p=t==null?void 0:t.publicData,g=t==null?void 0:t.tsls,v=t==null?void 0:t.channelKey;if((a==null?void 0:a.length)>0&&!(p!=null&&p.length)>0){const C=await r({channelOrResourceId:a[0],params:{channelKey:v,ref:a,...f}});Cq(C==null?void 0:C.data,s)}if((p==null?void 0:p.length)>0&&Cq(p,s),m&&(!l||l.length===0)&&(!u||u.length===0)&&(s={"all-option":{resource:{uuid:"all-option",name:e("common.All")},provider:(b=(w=Object.values(s))==null?void 0:w[0])==null?void 0:b.provider},...s}),((l==null?void 0:l.length)>0||(u==null?void 0:u.length)>0)&&!(g!=null&&g.length)>0){const C=await i({params:{channelKey:v,tslIds:l,...f},body:u});$q(C==null?void 0:C.data,s)}if((g==null?void 0:g.length)>0&&$q(g,s),(c==null?void 0:c.length)>0){Object.values(s).forEach(E=>{var A;E!=null&&E.bookables&&((A=Object.values(E==null?void 0:E.bookables))==null||A.forEach(_=>{_.forEach(O=>{var M;Sq(O==null?void 0:O.product_uuid,c),(M=O.products)==null||M.forEach(L=>{Sq(L.uuid,c)})})}))});const C=await o({params:{prdRefs:c,additionalData:f}}),T=Object.entries(s).filter(([,E])=>{var _,O;if(((O=(_=E==null?void 0:E.resource)==null?void 0:_.supportedProducts)==null?void 0:O.length)===0)return!1;const A=C.data.filter(M=>{var F;const L=(F=E==null?void 0:E.resource)==null?void 0:F.supportedProducts;return L&&L.some(z=>z===M.uuid)});return A.length===0?!1:(E.products=A,!0)});s=Object.fromEntries(T)}if(n(Ine(s)),Object.values(s).length>1)if(t.cancelableAppointment){let C=!1;for(const T of Object.values(s))((y=T==null?void 0:T.resource)==null?void 0:y.uuid)===((S=t.cancelableAppointment)==null?void 0:S.resId)&&(n(wd(T)),C=!0);C||n(wd(Object.values(s)[0]))}else n(wd(Object.values(s)[0]));else Object.values(s).length===1?n(wd(Object.values(s)[0])):console.warn("Given reference(s) seems to be invalid.")}function gBe(e){try{return eBe(e)}catch(t){console.error("Error decrypting JWT:",t)}}function Q6(e){var C,T,E;const t={...e},n=window.location.search,r=new URLSearchParams(t.queryString||n);let i=r.get("pData")??r.get("pdata"),o=r.get("pDataPlatform")?{platform:r.get("pDataPlatform"),id:r.get("pDataId"),idPropName:r.get("pDataIdPropName")}:void 0;const s=hBe("PLAY_SESSION");let a=r.get("channelKey")??r.get("channelkey");const l=r.get("X-SIGNED-APP-CUSTOMER");let u=r.get("resId"),c=r.getAll("ref"),f=r.getAll("tslRefs"),m=r.getAll("virtualTslRefs"),p=r.getAll("prdRefs"),g=r.get("culture"),v=r.get("postMessageTarget"),w=r.get("enableShowAllResourcesOption"),b=r.get("conf");b&&(b=gBe(b),c=b.ref||[],a=b.channelKey,i=b.pData,f=b.tslRefs||[],p=b.prdRefs||[],g=b.urlCulture,m=b.virtualTslRefs||[],v=b.postMessageTarget,w=b.enableShowAllResourcesOption);const y=t.queryHash||window.location.hash,[,,S]=(y==null?void 0:y.split("/"))??[];if((i||o)&&(t.pData=i??o),a&&(t.channelKey=a),c&&c.length>0&&(t.ref=c),f&&f.length>0&&(t.tslRefs=f),m&&m.length>0&&(t.virtualTslRefs=m),p&&p.length>0&&(t.prdRefs=p),g&&(t.culture=g),v&&(t.postMessageTarget=v),w&&(t.enableShowAllResourcesOption=w),sn.isArray(t.ref)?t.ref=[...t.ref]:t.ref?t.ref=[t.ref]:t.ref=[],sn.isArray(t.tslRefs)?t.tslRefs=[...t.tslRefs]:t.tslRefs?t.tslRefs=[t.tslRefs]:t.tslRefs=[],sn.isArray(t.prdRefs)?t.prdRefs=[...t.prdRefs]:t.prdRefs?t.prdRefs=[t.prdRefs]:t.prdRefs=[],(!t.ref||t.ref.length===0)&&(!t.tslRefs||t.tslRefs.length===0)&&(!t.virtualTslRefs||t.virtualTslRefs.length===0)){console.log("timum hides itself. No reference in either url or options detected.");return}for(let A=0;A<((C=t==null?void 0:t.ref)==null?void 0:C.length);A++)t.ref[A]=Z6(t.ref[A],t.platform,t.prvUuid);for(let A=0;A<((T=t==null?void 0:t.tslRefs)==null?void 0:T.length);A++)t.tslRefs[A]=Z6(t.tslRefs[A],t.platform,t.prvUuid);for(let A=0;A<((E=t==null?void 0:t.prdRefs)==null?void 0:E.length);A++)t.prdRefs[A]=Z6(t.prdRefs[A],t.platform,t.prvUuid);return s&&(t.cookie=s),l&&(t.cancelableAppointment={authToken:l,appointmentUuid:S,customerUuid:o.id,resourceUuid:u}),t.host&&vte(t.host),t.height&&(t.height=fBe(t.height)),t}const Eq=(e,t,n,r,i,o,s)=>{const a=Object.keys(t).length>0,l=Object.keys(e).length>0;let u=sn.merge({},vc.appConfig,e),c=sn.merge({},vc.muiTheme,t),f=sn.merge({},vc.fcConfig,n);u.fields=wq(u.fields),pBe(e.fields,u.fields),l&&!o&&(u.localization=vc.appConfig.localization),l&&!i&&(u.fields=vc.appConfig.fields),l&&!r&&(u.hideTimumFooter=vc.appConfig.hideTimumFooter),a&&!r&&(c=vc.muiTheme),u.postMessageTarget&&mBe(u),s(Dne(f)),s(Pne(u)),s(Mne(c))},kq=({muiTheme:e={},fcConfig:t={},appConfig:n={},children:r})=>{const{t:i}=wn(),o=Dh(),s=Se(qne),a=Se(Yne),l=Se(Kne),u=re.useMemo(()=>{var y;return(y=n==null?void 0:n.callbacks)==null?void 0:y.fetchingPublicDataFailed},[n]),[c,{isFetching:f,error:m}]=$te(),[p,{isFetching:g}]=xte(),[v,{isFetching:w}]=Ste(),b=R.useCallback((y=n,S=e,C=t)=>{const T=Q6(y);T&&(Eq(T,S,C,s,a,l,o),Tq(i,T,o,c,p,v))},[n,e,t,s,a,l,o,i,c,p,v]);return R.useEffect(()=>{const y=S=>{var C,T,E,A,_;dBe.test(S.origin)&&((C=S.data)==null?void 0:C.type)==="rerender"?b({...(T=S.data)==null?void 0:T.appConfig},{...(E=S.data)==null?void 0:E.muiTheme},{...(A=S.data)==null?void 0:A.fcConfig}):((_=S.data)==null?void 0:_.type)==="rerender"&&console.error("ConfigHandler received a message from an unexpected origin:",S.origin)};return window.addEventListener("message",y),()=>{window.removeEventListener("message",y)}},[b,n]),R.useEffect(()=>{const y=Q6(n);y&&Eq(y,e,t,s,a,l,o)},[n,e,t,o,s,a,l,c,p,v]),R.useEffect(()=>{const y=Q6(n);y&&Tq(i,y,o,c,p,v)},[n,o,c,p,v,i]),R.useEffect(()=>{o(jne(g||f||w))},[o,f,g,w]),m&&u&&u(m),r};kq.displayName="ConfigHandler";const vBe=une({reducer:{[pv.reducerPath]:pv.reducer,appState:Zne},middleware:e=>e().concat(pv.middleware),devTools:{trace:!0}});var Aq=[],yBe=Aq.forEach,bBe=Aq.slice;function xBe(e){return yBe.call(bBe.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var Rq=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,wBe=function(t,n,r){var i=r||{};i.path=i.path||"/";var o=encodeURIComponent(n),s="".concat(t,"=").concat(o);if(i.maxAge>0){var a=i.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(a))}if(i.domain){if(!Rq.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!Rq.test(i.path))throw new TypeError("option path is invalid");s+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(s+="; HttpOnly"),i.secure&&(s+="; Secure"),i.sameSite){var l=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s},_q={create:function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),i&&(o.domain=i),document.cookie=wBe(t,encodeURIComponent(n),o)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),i=0;i<r.length;i++){for(var o=r[i];o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(n)===0)return o.substring(n.length,o.length)}return null},remove:function(t){this.create(t,"",-1)}},SBe={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=_q.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&_q.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},CBe={name:"querystring",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),o=i.split("&"),s=0;s<o.length;s++){var a=o[s].indexOf("=");if(a>0){var l=o[s].substring(0,a);l===t.lookupQuerystring&&(n=o[s].substring(a+1))}}}return n}},Rm=null,Oq=function(){if(Rm!==null)return Rm;try{Rm=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Rm=!1}return Rm},$Be={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&Oq()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&Oq()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},_m=null,Pq=function(){if(_m!==null)return _m;try{_m=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{_m=!1}return _m},TBe={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&Pq()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&Pq()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},EBe={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)n.push(navigator.languages[r]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},kBe={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},ABe={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},RBe={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};function _Be(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var Dq=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Fo(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return jo(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=xBe(r,this.options||{},_Be()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(SBe),this.addDetector(CBe),this.addDetector($Be),this.addDetector(TBe),this.addDetector(EBe),this.addDetector(kBe),this.addDetector(ABe),this.addDetector(RBe)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(o){if(r.detectors[o]){var s=r.detectors[o].lookup(r.options);s&&typeof s=="string"&&(s=[s]),s&&(i=i.concat(s))}}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(o){i.detectors[o]&&i.detectors[o].cacheUserLanguage(n,i.options)}))}}]),e}();Dq.type="languageDetector";var J6=["",""],X6=RegExp("([".concat(J6.join(""),"]{9})+"),"gu"),OBe=9,PBe="subliminal:start",DBe=function(t){return Array.from(new TextEncoder().encode(t))},MBe=function(t){return new TextDecoder().decode(new Uint8Array(t))},IBe=function(t){var n=8-t.length;return"0".repeat(n)+t},Mq=function(t){var n=DBe(t).map(Number),r=n.map(function(o){return IBe(o.toString(2))+"0"}).join(""),i=Array.from(r).map(function(o){return J6[Number(o)]}).join("");return i},Iq=Mq(PBe),Nq=function(t){var n=Array.from(t).map(function(o){return J6.indexOf(o)}).map(String).join(""),r=n.match(/(.{9})/g),i=Uint8Array.from((r==null?void 0:r.map(function(o){return parseInt(o.slice(0,8),2)}))||[]);return MBe(i)},NBe=function(t){var n,r=(n=t.match(X6))===null||n===void 0?void 0:n.filter(function(i){return i.length>OBe-1});if(!(!r||r.length===0))return Nq(r[r.length-1])},LBe=function(t){return t.replace(X6,"")},FBe=function(t){if(Object.keys(t).length===0)return t;var n={k:t.key,n:t.ns,l:t.lng,s:t.source};return JSON.stringify(n)},jBe=function(t){if(!(!t||typeof t!="string"||t.indexOf("{")!==0))try{var n=JSON.parse(t||"{}");return{key:n.k,ns:n.n,lng:n.l,source:n.s}}catch{return}};function Lq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=FBe(t),r=Mq(n);return typeof e=="string"&&e?Iq+e+r:e}function Vb(e){var t=NBe(e),n=jBe(t),r=LBe(e);return{text:r,invisibleMeta:n}}function eT(e){if(!e||e.length<27||!X6.test(e))return!1;var t=e.substring(e.length-9),n=Nq(t);return n==="}"}function zBe(e){return e.startsWith(Iq)}function Fq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fq(Object(n),!0).forEach(function(r){rn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var jq="subliminal",BBe={name:jq,type:"postProcessor",options:{},setOptions:function(t){this.options=Wb(Wb({},t),this.options)},process:function(t,n,r,i){var o=this.options=Wb(Wb({},r),this.options),s,a,l,u;if(r.i18nResolved)s=r.i18nResolved.exactUsedKey,a=r.i18nResolved.usedNS,l=r.i18nResolved.usedLng,r.i18nResolved.res===void 0?s!==t?u="default":u="key":u="translation";else{var c,f,m,p,g,v,w=(c=(f=o.keySeparator)!==null&&f!==void 0?f:i==null||(m=i.options)===null||m===void 0?void 0:m.keySeparator)!==null&&c!==void 0?c:".",b=i.extractFromKey(n.join(w),r),y=b.key,S=b.namespaces;s=y,a=(p=(g=S==null?void 0:S[0])!==null&&g!==void 0?g:o.ns)!==null&&p!==void 0?p:i==null||(v=i.options)===null||v===void 0?void 0:v.defaultNS,l=r.lng||this.language,s===t?u="key":u="translation"}return Lq(t,{key:s,ns:a,lng:l,source:u})},overloadTranslationOptionHandler:function(){return{postProcess:jq,postProcessPassResolved:!0}}},zq=["placeholder","title","alt"],Bo={highlight:"#26a69a",warning:"#e67a00"},Bq=function(){var t,n;typeof process<"u"&&(n=process),!n&&typeof window<"u"&&(n=window.process);var r=n||{},i=((t=r.env)===null||t===void 0?void 0:t.locizeIncontext)||"production";return i==="development"?"http://localhost:3003/":i==="staging"?"https://incontext-dev.locize.app":"https://incontext.locize.app"},ya=function(){if(!(typeof document>"u")){var e=document.createElement("style");return document.head.appendChild(e),e.sheet}}();function Uq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function UBe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uq(Object(n),!0).forEach(function(r){rn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Hq={committed:"commitKeys"};function HBe(e){return Hq[e]?Hq[e]:e}var tT=[];function $r(e,t){if(!Oe.source){var n;Oe.source=(n=document.getElementById("i18next-editor-iframe"))===null||n===void 0?void 0:n.contentWindow}if(Oe.origin||(Oe.origin=Bq()),!Oe.source||!Oe.source.postMessage){tT.push({action:e,payload:t});return}Oe.legacy?Oe.source.postMessage(UBe({message:e},t),Oe.origin):Oe.source.postMessage({sender:"i18next-editor",senderAPIVersion:"v1",action:e,message:e,payload:t},Oe.origin);var r=tT;tT=[],r.forEach(function(i){var o=i.action,s=i.payload;$r(o,s)})}var yc={},nT=5,Oe={init:function(t,n){Oe.i18n=t,Oe.clickHandler=n},requestInitialize:function(t){$r("requestInitialize",t),!Oe.initInterval&&(Oe.initInterval=setInterval(function(){nT=nT-1,Oe.requestInitialize(t),nT<0&&Oe.initInterval&&(clearInterval(Oe.initInterval),delete Oe.initInterval)},1e3))},selectKey:function(t){$r("selectKey",t)},confirmResourceBundle:function(t){$r("confirmResourceBundle",t)},sendCurrentParsedContent:function(){$r("sendCurrentParsedContent",{content:Object.values(bs.data).map(function(t){return{id:t.id,keys:t.keys}})})},sendCurrentTargetLanguage:function(t){$r("sendCurrentTargetLanguage",{targetLng:t||Oe.i18n.getLng()})},addHandler:function(t,n){yc[t]||(yc[t]=[]),yc[t].push(n)},sendLocizeIsEnabled:function(){$r("locizeIsEnabled",{enabled:!0})},turnOn:function(){if(Oe.scriptTurnedOff)return $r("forcedOff");Oe.clickInterceptionEnabled||window.document.body.addEventListener("click",Oe.clickHandler,!0),Oe.clickInterceptionEnabled=!0,$r("turnedOn")},turnOff:function(){if(Oe.scriptTurnedOff)return $r("forcedOff");Oe.clickInterceptionEnabled&&window.document.body.removeEventListener("click",Oe.clickHandler,!0),Oe.clickInterceptionEnabled=!1,$r("turnedOff")},onAddedKey:function(t,n,r,i){var o={lng:t,ns:n,key:r,value:i};$r("added",o)}};typeof window<"u"&&window.addEventListener("message",function(e){var t=e.data,n=t.sender,r=t.action,i=t.message,o=t.payload;if(i){var s=HBe(i);yc[s]&&yc[s].forEach(function(a){a(o,e)})}else n==="i18next-editor-frame"&&yc[r]&&yc[r].forEach(function(a){a(o)})});function Gb(e,t){var n=bs.get(e.eleUniqueID);if(!(!n||!n.keys[e.textType])){var r=Lq(t,n.subliminal);if(e.textType==="text")n.node.textContent=r;else if(e.textType.indexOf("attr:")===0){var i=e.textType.replace("attr:","");n.node.setAttribute(i,r)}else if(e.textType==="html"){var o="".concat(e.textType,"-").concat(e.children);if(!n.originalChildNodes){var s=[];n.node.childNodes.forEach(function(f){s.push(f)}),n.originalChildNodes=s}if(n.children[o].length===n.node.childNodes.length)n.node.innerHTML=r;else{var a=n.children[o],l=a[0].child,u=document.createElement("div");u.innerHTML=r;var c=[];u.childNodes.forEach(function(f){c.push(f)}),c.forEach(function(f){try{n.node.insertBefore(f,l)}catch{n.node.appendChild(f)}}),a.forEach(function(f){n.node.contains(f.child)&&n.node.removeChild(f.child)})}}}}function VBe(e){var t=e.meta,n=e.value;t&&n!==void 0&&Gb(t,n)}Oe.addHandler("editKey",VBe);function WBe(e){var t=e.meta,n=e.value,r=e.lng;if(t&&n!==void 0){Gb(t,n);var i=r||Oe.i18n.getLng();Oe.i18n.setResource(i,t.ns,t.key,n),Oe.i18n.triggerRerender()}}Oe.addHandler("commitKey",WBe);function GBe(e){if(Array.isArray(e))return H6(e)}function qBe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1296
1296
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YBe(e){return GBe(e)||YG(e)||KG(e)||qBe()}function KBe(e){var t=e.updated;t.forEach(function(n){var r=n.lng,i=n.ns,o=n.key,s=n.data,a=n.metas,l=n.meta;l&&s.value&&Gb(l,s.value),a&&Object.values(a).forEach(function(u){Gb(u,s.value)}),Oe.i18n.setResource(r,i,o,s.value)}),Object.values(bs.data).forEach(function(n){if(n.originalChildNodes){var r;(r=n.node).replaceChildren.apply(r,YBe(n.originalChildNodes))}}),Oe.i18n.triggerRerender(),Oe.locizeSavedHandler&&Oe.locizeSavedHandler(e),window.locizeSavedHandler&&window.locizeSavedHandler(e)}Oe.addHandler("commitKeys",KBe);function ZBe(e){Oe.initialized=!0,clearInterval(Oe.initInterval),delete Oe.initInterval,Oe.sendCurrentParsedContent(),Oe.sendCurrentTargetLanguage()}Oe.addHandler("confirmInitialized",ZBe);function Vq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vq(Object(n),!0).forEach(function(r){rn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Bl={};function QBe(){Object.values(Bl).forEach(function(e){document.body.contains(e.node)||(Pm(e.id,e.node),delete Bl[e.id])})}function JBe(e,t,n){!e||!t||!n||(Bl[e]||(Bl[e]={id:e,node:n}),Bl[e].keys=Wq(Wq({},Bl[e].keys),{},rn({},"".concat(t),"uninstrumented")))}function XBe(e){return Bl[e]}var rT={save:JBe,clean:QBe,get:XBe,data:Bl};function Gq(e){var t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth,i=t.top<=n&&t.top+t.height>=0,o=t.left<=r&&t.left+t.width>=0;return i&&o}function iT(e,t){var n=t,r=e.pageX,i=e.pageY,o={x:r,y:i},s=n.getBoundingClientRect(),a=s.top+document.documentElement.scrollTop,l=a+n.offsetHeight,u=s.left+document.documentElement.scrollLeft,c=u+n.offsetWidth,f=Math.max(r,u),m=Math.min(r,c),p=Math.max(i,a),g=Math.min(i,l),v=m>=f,w=g>=p,b={x:v?r:c<r?c:u,y:w?i:l<i?l:a},y=b.x-o.x,S=b.y-o.y,C=Math.pow(Math.pow(y,2)+Math.pow(S,2),1/2);return Math.floor(C)}function qq(e,t,n){var r;return function(){var i=this,o=arguments,s=function(){r=null,n||e.apply(i,o)},a=n&&!r;clearTimeout(r),r=setTimeout(s,t),a&&e.apply(i,o)}}function eUe(e){return e!=null&&e===e.window}function tUe(e){return eUe(e)?e:e.nodeType===9&&e.defaultView}function Yq(e){var t={top:0,left:0,right:0,bottom:0},n=e&&e.ownerDocument,r=n&&n.documentElement;if(!r)return t;Ui(e.getBoundingClientRect)!=="undefined"&&(t=e.getBoundingClientRect());var i=tUe(n),o=t.top+i.pageYOffset-r.clientTop,s=t.left+i.pageXOffset-r.clientLeft;return{top:o,left:s,right:s+(t.right-t.left),bottom:o+(t.bottom-t.top)}}function nUe(e){if(e.srcElement&&e.srcElement.nodeType===1&&(e.srcElement.nodeName==="BUTTON"||e.srcElement.nodeName==="INPUT"))return e.srcElement.getAttribute&&e.srcElement.getAttribute("ignorelocizeeditor")===""?null:e.srcElement;var t;if(e.originalEvent&&e.originalEvent.explicitOriginalTarget)t=e.originalEvent.explicitOriginalTarget;else{var n=e.srcElement;if(n.getAttribute&&n.getAttribute("ignorelocizeeditor")==="")return null;for(var r=e.pageX,i=e.pageY,o=0,s,a=0;a<n.childNodes.length;a++){var l=n.childNodes[a],u=Yq(l);l.nodeType===1&&u.bottom<i&&(o=a+1),!s&&u.top+(l.clientHeight||0)>i&&(s=a)}o+1>n.childNodes.length&&(o=n.childNodes.length-1),s||(s=n.childNodes.length);for(var c=o;c<s;c++){var f=n.childNodes[c],m=Yq(f);if(m.left>r)break;f&&f.nodeType!==8&&(t=f)}}return t}function rUe(e){var t=e.textContent||e.text&&e.text.innerText||e.placeholder;if(typeof t=="string")return t.replace(/\n +/g,"").trim()}function ba(e,t){return e&&e.getAttribute&&e.getAttribute(t)}function Kq(e){var t=ba(e,"data-i18n");if(t)return t;if(e.nodeType===window.Node.TEXT_NODE&&e.parentElement)return Kq(e.parentElement)}function iUe(e){var t,n=function r(i){var o=ba(i,"i18next-options");if(o||(o=ba(i,"data-i18next-options")),o||(o=ba(i,"i18n-options")),o||(o=ba(i,"data-i18n-options")),o){var s={};try{s=JSON.parse(o)}catch{}s.ns&&(t=s.ns)}t||(t=ba(i,"i18next-ns")),t||(t=ba(i,"data-i18next-ns")),t||(t=ba(i,"i18n-ns")),t||(t=ba(i,"data-i18n-ns")),!t&&i.parentElement&&r(i.parentElement)};return n(e),t}function oUe(e,t){if(typeof window>"u")return null;t||(t=window.location.href.toLowerCase()),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),r=n.exec(t);return r?r[2]?decodeURIComponent(r[2].replace(/\+/g," ")):"":null}var sUe=qq(function(e,t){Object.values(bs.data).forEach(function(n){if(Gq(n.node)){var r=iT(e,n.node);if(r<5)OUe(n,n.node,n.keys);else if(r>5){var i=n.ribbonBox?iT(e,n.ribbonBox):1e3;i>10&&Pm(n,n.node,n.keys)}}}),Object.values(rT.data).forEach(function(n){if(Gq(n.node)){var r=iT(e,n.node);r<10?PUe(n,n.node,n.keys):r>10&&Pm(n,n.node,n.keys)}})},50),oT;function qb(e){oT=function(n){sUe(n,e)},document.addEventListener("mousemove",oT)}function sT(){document.removeEventListener("mousemove",oT)}var aUe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#FFFFFF"><g></g><g><g><g><path d="M3,21l3.75,0L17.81,9.94l-3.75-3.75L3,17.25L3,21z M5,18.08l9.06-9.06l0.92,0.92L5.92,19L5,19L5,18.08z"/></g><g><path d="M18.37,3.29c-0.39-0.39-1.02-0.39-1.41,0l-1.83,1.83l3.75,3.75l1.83-1.83c0.39-0.39,0.39-1.02,0-1.41L18.37,3.29z"/></g></g></g></svg>',lUe=`
|
|
1297
1297
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 210 304" stroke="#000" stroke-linecap="round" stroke-linejoin="round" fill="#fff" fill-rule="evenodd">
|
|
1298
1298
|
<g stroke="none" class="B">
|
|
@@ -1475,7 +1475,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1475
1475
|
`,'consider adding the "data-locize-editor-ignore:" attribute to the element:',e),t.warned=!0),!0}var n=e.dataset&&(e.dataset.i18nextEditorElement==="true"||e.dataset.locizeEditorIgnore==="true");return!n&&e.parentElement?Zb(e.parentElement):n}function BUe(e,t){var n,r,i=function(){r&&clearTimeout(r),r=setTimeout(function(){n&&(n=!1)},200)},o=[],s=qq(function(){t(o),o=[]},100),a=new MutationObserver(function(l){if(n){i();return}var u=!1;l.forEach(function(c){if(!(c.type==="attributes"&&!zq.includes(c.attributeName))){if(Object.keys(Xf).forEach(function(g){var v=Xf[g];v.lastTriggerDate+6e4<Date.now()&&delete Xf[g]}),c.type==="childList"){var f=0;if(Zb(c.target)||(c.addedNodes.forEach(function(g){Zb(g)||(f=f+1)},0),c.removedNodes.forEach(function(g){Zb(g)||(f=f+1)},0)),f===0)return}if(u=!0,c.target&&c.target.uniqueID){var m=Xf[c.target.uniqueID]||{triggered:0};m.triggered=m.triggered+1,m.lastTriggerDate=Date.now(),Xf[c.target.uniqueID]=m}var p=o.reduce(function(g,v){return!!(g||v.contains(c.target)||!c.target.parentElement)},!1);p||(o=o.filter(function(g){return!c.target.contains(g)}),o.push(c.target))}}),u&&s()});return{start:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{attributes:!0,childList:!0,characterData:!0,subtree:!0};a.observe(e,u)},skipNext:function(){n=!0}}}function UUe(){for(var e=0,t=0,n=0,r=0,i=document.getElementsByClassName("i18next-editor-popup"),o=null,s=null,a=100,l=0;l<i.length;l++){var u=i[l],c=g(u);u.onmousedown=function(){this.style.zIndex=""+ ++a},c&&(c.parentPopup=u,c.onmousedown=f)}function f(v){s||(s=document.getElementById("i18next-editor-popup-overlay")),s&&(s.style.display="block"),sT(),o=this.parentPopup,o.style.zIndex=""+ ++a,v=v||window.event,n=v.clientX,r=v.clientY,document.onmouseup=p,document.onmousemove=m}function m(v){o&&(v=v||window.event,e=n-v.clientX,t=r-v.clientY,n=v.clientX,r=v.clientY,o.style.top=o.offsetTop-t+"px",o.style.left=o.offsetLeft-e+"px")}function p(){qb(),s&&(s.style.display="none"),document.onmouseup=null,document.onmousemove=null}function g(v){var w=v.getElementsByClassName("i18next-editor-popup-header");return w.length===1?w[0]:null}}function HUe(){for(var e=document.getElementsByClassName("i18next-editor-popup"),t=null,n=null,r,i,o,s,a=0;a<e.length;a++){var l=e[a],u=document.createElement("div");u.className="resizer-right",l.appendChild(u),u.addEventListener("mousedown",m,!1),u.parentPopup=l;var c=document.createElement("div");c.className="resizer-bottom",l.appendChild(c),c.addEventListener("mousedown",m,!1),c.parentPopup=l;var f=document.createElement("div");f.className="resizer-both",l.appendChild(f),f.addEventListener("mousedown",m,!1),f.parentPopup=l}function m(v){sT(),n||(n=document.getElementById("i18next-editor-popup-overlay")),n&&(n.style.display="block"),t=this.parentPopup,r=v.clientX,i=v.clientY,o=parseInt(document.defaultView.getComputedStyle(t).width,10),s=parseInt(document.defaultView.getComputedStyle(t).height,10),document.documentElement.addEventListener("mousemove",p,!1),document.documentElement.addEventListener("mouseup",g,!1)}function p(v){t.style.width=o+v.clientX-r+"px",t.style.height=s+v.clientY-i+"px"}function g(){qb(),n&&(n.style.display="none"),document.documentElement.removeEventListener("mousemove",p,!1),document.documentElement.removeEventListener("mouseup",g,!1)}}function nY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nY(Object(n),!0).forEach(function(r){rn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nY(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VUe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(typeof document>"u")return;var t=document.getElementById("locize"),n={};["projectId","version"].forEach(function(i){if(t){var o=t.getAttribute(i.toLowerCase())||t.getAttribute("data-"+i.toLowerCase());o==="true"&&(o=!0),o==="false"&&(o=!1),o!=null&&(n[i]=o)}}),n=rY(rY({},e.getLocizeDetails()),n),Oe.init(e),LUe(e),e==null||e.bindLanguageChange(function(i){Oe.sendCurrentTargetLanguage(e.getLng())});function r(){var i=BUe(document.body,function(o){o.forEach(function(s){zUe(s)}),Oe.sendCurrentParsedContent()});i.start(),qb(i),document.getElementById(aT)||(document.body.append(bUe(Bq(),function(){Oe.requestInitialize(n)})),UUe(),HUe())}if(document.body)return r();window.addEventListener("load",function(){return r()})}function WUe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=function(i){var o=nUe(i);if(!o)return{};i.preventDefault(),i.stopPropagation();function s(){if(t.isLocizify)return t.defaultNS}var a=rUe(o),l=Kq(o),u=iUe(o)||s();if(eT(a)){var c=Vb(a);c&&c.invisibleMeta&&c.invisibleMeta.key&&(l=c.invisibleMeta.key),c&&c.invisibleMeta&&c.invisibleMeta.ns&&(u=c.invisibleMeta.ns)}var f=o.getBoundingClientRect?o:o.parentElement,m=f.getBoundingClientRect(),p=m.top,g=m.left,v=m.width,w=m.height,b=window.getComputedStyle(f,null),y=parseFloat(b.getPropertyValue("padding-top")),S=parseFloat(b.getPropertyValue("padding-bottom")),C=parseFloat(b.getPropertyValue("padding-right")),T=parseFloat(b.getPropertyValue("padding-left")),E=b.getPropertyValue("box-sizing");e({tagName:f.tagName,text:a,key:l,ns:u,box:{top:p,left:g,width:E==="border-box"?v:v-C-T,height:E==="border-box"?w:w-y-S},style:b.cssText})};return n}function iY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function oY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iY(Object(n),!0).forEach(function(r){rn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iY(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(typeof document>"u")){var t=document.getElementById("locize"),n={};if(["projectId","version"].forEach(function(i){if(t){var o=t.getAttribute(i.toLowerCase())||t.getAttribute("data-"+i.toLowerCase());o==="true"&&(o=!0),o==="false"&&(o=!1),o!=null&&(n[i]=o)}}),n=oY(oY({},e.getLocizeDetails()),n),Oe.init(e,WUe(function(i){$r("clickedElement",{payload:i})},e.getLocizeDetails())),Oe.sendCurrentTargetLanguage=function(i){$r("setLng",{lng:i||e.getLng()})},typeof window<"u"){var r=window.document.location.href;window.addEventListener("load",function(){$r("hrefChanged",{href:window.document.location.href});var i=window.document.querySelector("body"),o=new window.MutationObserver(function(a){a.forEach(function(l){r!==window.document.location.href&&(r=window.document.location.href,$r("hrefChanged",{href:r}))})}),s={childList:!0,subtree:!0};o.observe(i,s)})}e==null||e.bindLanguageChange(function(i){Oe.sendCurrentTargetLanguage(e.getLng())}),e==null||e.bindMissingKeyHandler(function(i,o,s,a){Oe.onAddedKey(i,o,s,a)})}}function aY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aY(Object(n),!0).forEach(function(r){rn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aY(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Qb=typeof window<"u";try{Qb=self!==top}catch{}function GUe(e,t){e.use(BBe),typeof t.postProcess=="string"?t.postProcess=[t.postProcess,"subliminal"]:Array.isArray(t.postProcess)?t.postProcess.push("subliminal"):t.postProcess="subliminal",t.postProcessPassResolved=!0}function qUe(e){var t={getResource:function(r,i,o){return e.getResource(r,i,o)},setResource:function(r,i,o,s){return e.addResource(r,i,o,s,{silent:!0})},getResourceBundle:function(r,i,o){e.loadNamespaces(i,function(){o(e.getResourceBundle(r,i))})},getLng:function(){return e.resolvedLanguage||e.languages[0]},getSourceLng:function(){var r=e.options.fallbackLng;if(typeof r=="string")return r;if(Array.isArray(r))return r[r.length-1];if(r&&r.default){if(typeof r.default=="string")return r;if(Array.isArray(r.default))return r.default[r.default.length-1]}if(typeof r=="function"){var i=r(e.resolvedLanguage);if(typeof i=="string")return i;if(Array.isArray(i))return i[i.length-1]}return"dev"},getLocizeDetails:function(){var r;e.services.backendConnector.backend&&e.services.backendConnector.backend.options&&e.services.backendConnector.backend.options.loadPath&&e.services.backendConnector.backend.options.loadPath.indexOf(".locize.")>0?r="I18NextLocizeBackend":r=e.services.backendConnector.backend?e.services.backendConnector.backend.constructor.name:"options.resources";var i={backendName:r,sourceLng:t.getSourceLng(),i18nFormat:e.options.compatibilityJSON==="v3"?"i18next_v3":"i18next_v4",i18nFramework:"i18next",isLocizify:e.options.isLocizify,defaultNS:e.options.defaultNS};if(!e.options.backend&&!e.options.editor)return i;var o=e.options.backend||e.options.editor;return lY(lY({},i),{},{projectId:o.projectId,version:o.version})},bindLanguageChange:function(r){e.on("languageChanged",r)},bindMissingKeyHandler:function(r){e.options.missingKeyHandler=function(i,o,s,a,l,u){l||r(i,o,s,a)}},triggerRerender:function(){e.emit("editorSaved")}};return t}var uY,YUe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t.qsProp=t.qsProp||"incontext",{type:"3rdParty",init:function(r){var i=r.options;uY=r;var o=t.show||oUe(t.qsProp)==="true";!Qb&&o&&GUe(uY,i);var s=qUe(r);!Qb&&o?VUe(s):Qb&&sY(s)}}},KUe=YUe();function ZUe(){sY({getLocizeDetails:function(){return{}},getLng:function(){},setResource:function(){},triggerRerender:function(){},getResourceBundle:function(){return{}},bindMissingKeyHandler:function(){},bindLanguageChange:function(){}})}typeof window<"u"&&(window.locizeStartStandalone=ZUe);var cY=[],QUe=cY.forEach,JUe=cY.slice;function xc(e){return QUe.call(JUe.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function XUe(e,t,n){var r;return function(){var i=this,o=arguments,s=function(){r=null,n||e.apply(i,o)},a=n&&!r;clearTimeout(r),r=setTimeout(s,t),a&&e.apply(i,o)}}function dT(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(!e)return{};var o=r(i.shift());!e[o]&&n&&(e[o]=new n),e=e[o]}return e?{obj:e,k:r(i.shift())}:{}}function fT(e,t,n){var r=dT(e,t,Object),i=r.obj,o=r.k;i[o]=n}function eHe(e,t,n,r){var i=dT(e,t,Object),o=i.obj,s=i.k;o[s]=o[s]||[],r&&(o[s]=o[s].concat(n)),r||o[s].push(n)}function dY(e,t){var n=dT(e,t),r=n.obj,i=n.k;if(r)return r[i]}var fY=new RegExp("{{(.+?)}}","g");function tHe(e){return e==null?"":""+e}function Dm(e,t,n){var r,i;function o(s){return s.replace(/\$/g,"$$$$")}for(;r=fY.exec(e);)i=r[1].trim(),typeof i!="string"&&(i=tHe(i)),i||(i=""),i=o(i),e=e.replace(r[0],t[i]||i),fY.lastIndex=0;return e}function Mm(e,t){return t.reduce(function(n,r){if(n)return n;if(!e||!e[r]||typeof e[r]!="string"||!e[r].toLowerCase()===r.toLowerCase()){var i='i18next-locize-backend :: got "'.concat(e[r],'" in options for ').concat(r," which is invalid.");return console.warn(i),i}return!1},!1)}function pY(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function nHe(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pT={exports:{}},Jb={exports:{}},hY;function rHe(){return hY||(hY=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Vr<"u"&&Vr,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(s){var a=typeof o<"u"&&o||typeof self<"u"&&self||typeof a<"u"&&a,l={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function u(D){return D&&DataView.prototype.isPrototypeOf(D)}if(l.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(D){return D&&c.indexOf(Object.prototype.toString.call(D))>-1};function m(D){if(typeof D!="string"&&(D=String(D)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(D)||D==="")throw new TypeError('Invalid character in header field name: "'+D+'"');return D.toLowerCase()}function p(D){return typeof D!="string"&&(D=String(D)),D}function g(D){var B={next:function(){var Y=D.shift();return{done:Y===void 0,value:Y}}};return l.iterable&&(B[Symbol.iterator]=function(){return B}),B}function v(D){this.map={},D instanceof v?D.forEach(function(B,Y){this.append(Y,B)},this):Array.isArray(D)?D.forEach(function(B){this.append(B[0],B[1])},this):D&&Object.getOwnPropertyNames(D).forEach(function(B){this.append(B,D[B])},this)}v.prototype.append=function(D,B){D=m(D),B=p(B);var Y=this.map[D];this.map[D]=Y?Y+", "+B:B},v.prototype.delete=function(D){delete this.map[m(D)]},v.prototype.get=function(D){return D=m(D),this.has(D)?this.map[D]:null},v.prototype.has=function(D){return this.map.hasOwnProperty(m(D))},v.prototype.set=function(D,B){this.map[m(D)]=p(B)},v.prototype.forEach=function(D,B){for(var Y in this.map)this.map.hasOwnProperty(Y)&&D.call(B,this.map[Y],Y,this)},v.prototype.keys=function(){var D=[];return this.forEach(function(B,Y){D.push(Y)}),g(D)},v.prototype.values=function(){var D=[];return this.forEach(function(B){D.push(B)}),g(D)},v.prototype.entries=function(){var D=[];return this.forEach(function(B,Y){D.push([Y,B])}),g(D)},l.iterable&&(v.prototype[Symbol.iterator]=v.prototype.entries);function w(D){if(D.bodyUsed)return Promise.reject(new TypeError("Already read"));D.bodyUsed=!0}function b(D){return new Promise(function(B,Y){D.onload=function(){B(D.result)},D.onerror=function(){Y(D.error)}})}function y(D){var B=new FileReader,Y=b(B);return B.readAsArrayBuffer(D),Y}function S(D){var B=new FileReader,Y=b(B);return B.readAsText(D),Y}function C(D){for(var B=new Uint8Array(D),Y=new Array(B.length),V=0;V<B.length;V++)Y[V]=String.fromCharCode(B[V]);return Y.join("")}function T(D){if(D.slice)return D.slice(0);var B=new Uint8Array(D.byteLength);return B.set(new Uint8Array(D)),B.buffer}function E(){return this.bodyUsed=!1,this._initBody=function(D){this.bodyUsed=this.bodyUsed,this._bodyInit=D,D?typeof D=="string"?this._bodyText=D:l.blob&&Blob.prototype.isPrototypeOf(D)?this._bodyBlob=D:l.formData&&FormData.prototype.isPrototypeOf(D)?this._bodyFormData=D:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(D)?this._bodyText=D.toString():l.arrayBuffer&&l.blob&&u(D)?(this._bodyArrayBuffer=T(D.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(D)||f(D))?this._bodyArrayBuffer=T(D):this._bodyText=D=Object.prototype.toString.call(D):this._bodyText="",this.headers.get("content-type")||(typeof D=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(D)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var D=w(this);if(D)return D;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var D=w(this);return D||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(y)}),this.text=function(){var D=w(this);if(D)return D;if(this._bodyBlob)return S(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(C(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(M)}),this.json=function(){return this.text().then(JSON.parse)},this}var A=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function _(D){var B=D.toUpperCase();return A.indexOf(B)>-1?B:D}function O(D,B){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');B=B||{};var Y=B.body;if(D instanceof O){if(D.bodyUsed)throw new TypeError("Already read");this.url=D.url,this.credentials=D.credentials,B.headers||(this.headers=new v(D.headers)),this.method=D.method,this.mode=D.mode,this.signal=D.signal,!Y&&D._bodyInit!=null&&(Y=D._bodyInit,D.bodyUsed=!0)}else this.url=String(D);if(this.credentials=B.credentials||this.credentials||"same-origin",(B.headers||!this.headers)&&(this.headers=new v(B.headers)),this.method=_(B.method||this.method||"GET"),this.mode=B.mode||this.mode||null,this.signal=B.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Y)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Y),(this.method==="GET"||this.method==="HEAD")&&(B.cache==="no-store"||B.cache==="no-cache")){var V=/([?&])_=[^&]*/;if(V.test(this.url))this.url=this.url.replace(V,"$1_="+new Date().getTime());else{var Q=/\?/;this.url+=(Q.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})};function M(D){var B=new FormData;return D.trim().split("&").forEach(function(Y){if(Y){var V=Y.split("="),Q=V.shift().replace(/\+/g," "),J=V.join("=").replace(/\+/g," ");B.append(decodeURIComponent(Q),decodeURIComponent(J))}}),B}function L(D){var B=new v,Y=D.replace(/\r?\n[\t ]+/g," ");return Y.split("\r").map(function(V){return V.indexOf(`
|
|
1476
1476
|
`)===0?V.substr(1,V.length):V}).forEach(function(V){var Q=V.split(":"),J=Q.shift().trim();if(J){var le=Q.join(":").trim();B.append(J,le)}}),B}E.call(O.prototype);function F(D,B){if(!(this instanceof F))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');B||(B={}),this.type="default",this.status=B.status===void 0?200:B.status,this.ok=this.status>=200&&this.status<300,this.statusText=B.statusText===void 0?"":""+B.statusText,this.headers=new v(B.headers),this.url=B.url||"",this._initBody(D)}E.call(F.prototype),F.prototype.clone=function(){return new F(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},F.error=function(){var D=new F(null,{status:0,statusText:""});return D.type="error",D};var z=[301,302,303,307,308];F.redirect=function(D,B){if(z.indexOf(B)===-1)throw new RangeError("Invalid status code");return new F(null,{status:B,headers:{location:D}})},s.DOMException=a.DOMException;try{new s.DOMException}catch{s.DOMException=function(B,Y){this.message=B,this.name=Y;var V=Error(B);this.stack=V.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function U(D,B){return new Promise(function(Y,V){var Q=new O(D,B);if(Q.signal&&Q.signal.aborted)return V(new s.DOMException("Aborted","AbortError"));var J=new XMLHttpRequest;function le(){J.abort()}J.onload=function(){var ve={status:J.status,statusText:J.statusText,headers:L(J.getAllResponseHeaders()||"")};ve.url="responseURL"in J?J.responseURL:ve.headers.get("X-Request-URL");var he="response"in J?J.response:J.responseText;setTimeout(function(){Y(new F(he,ve))},0)},J.onerror=function(){setTimeout(function(){V(new TypeError("Network request failed"))},0)},J.ontimeout=function(){setTimeout(function(){V(new TypeError("Network request failed"))},0)},J.onabort=function(){setTimeout(function(){V(new s.DOMException("Aborted","AbortError"))},0)};function we(ve){try{return ve===""&&a.location.href?a.location.href:ve}catch{return ve}}J.open(Q.method,we(Q.url),!0),Q.credentials==="include"?J.withCredentials=!0:Q.credentials==="omit"&&(J.withCredentials=!1),"responseType"in J&&(l.blob?J.responseType="blob":l.arrayBuffer&&Q.headers.get("Content-Type")&&Q.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(J.responseType="arraybuffer")),B&&typeof B.headers=="object"&&!(B.headers instanceof v)?Object.getOwnPropertyNames(B.headers).forEach(function(ve){J.setRequestHeader(ve,p(B.headers[ve]))}):Q.headers.forEach(function(ve,he){J.setRequestHeader(he,ve)}),Q.signal&&(Q.signal.addEventListener("abort",le),J.onreadystatechange=function(){J.readyState===4&&Q.signal.removeEventListener("abort",le)}),J.send(typeof Q._bodyInit>"u"?null:Q._bodyInit)})}return U.polyfill=!0,a.fetch||(a.fetch=U,a.Headers=v,a.Request=O,a.Response=F),s.Headers=v,s.Request=O,s.Response=F,s.fetch=U,s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(Jb,Jb.exports)),Jb.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof Vr<"u"&&Vr.fetch?n=Vr.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof nHe<"u"&&typeof window>"u"){var r=n||rHe();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(pT,pT.exports);var mY=pT.exports;const gY=po(mY),vY=Fc({__proto__:null,default:gY},[mY]);function Xb(e){"@babel/helpers - typeof";return Xb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xb(e)}var wa;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?wa=global.fetch:typeof window<"u"&&window.fetch?wa=window.fetch:wa=fetch);var Im;(typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Xb(XMLHttpRequest))==="object")&&(typeof global<"u"&&global.XMLHttpRequest?Im=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Im=window.XMLHttpRequest));var e3;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?e3=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(e3=window.ActiveXObject)),!wa&&vY&&!Im&&!e3&&(wa=gY||vY),typeof wa!="function"&&(wa=void 0);var iHe=function(t,n,r,i){var o={};typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-locize-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),t.authorize&&t.apiKey&&(o.Authorization=t.apiKey),(r||t.setContentTypeJSON)&&(o["Content-Type"]="application/json");var s=function(l){var u=l.headers&&l.headers.get("x-cache")==="Error from cloudfront";if(!l.ok)return i(l.statusText||"Error",{status:l.status,resourceNotExisting:u});l.text().then(function(c){i(null,{status:l.status,data:c,resourceNotExisting:u})}).catch(i)};typeof fetch=="function"?fetch(n,{method:r?"POST":"GET",body:r?JSON.stringify(r):void 0,headers:o}).then(s).catch(i):wa(n,{method:r?"POST":"GET",body:r?JSON.stringify(r):void 0,headers:o}).then(s).catch(i)},oHe=function(t,n,r,i){try{var o;Im?o=new Im:o=new e3("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.authorize&&t.apiKey&&o.setRequestHeader("Authorization",t.apiKey),(r||t.setContentTypeJSON)&&o.setRequestHeader("Content-Type","application/json"),o.onreadystatechange=function(){var s=o.getResponseHeader("x-cache")==="Error from cloudfront";o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText,resourceNotExisting:s})},o.send(JSON.stringify(r))}catch(s){console&&console.log(s)}},hT=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},wa)return iHe(t,n,r,i);if(typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Xb(XMLHttpRequest))==="object"||typeof ActiveXObject=="function")return oHe(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function ep(e){"@babel/helpers - typeof";return ep=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ep(e)}function sHe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yY(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lHe(r.key),r)}}function aHe(e,t,n){return t&&yY(e.prototype,t),n&&yY(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function lHe(e){var t=uHe(e,"string");return ep(t)=="symbol"?t:t+""}function uHe(e,t){if(ep(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ep(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cHe=function(){return{loadPath:"https://api.locize.app/{{projectId}}/{{version}}/{{lng}}/{{ns}}",privatePath:"https://api.locize.app/private/{{projectId}}/{{version}}/{{lng}}/{{ns}}",getLanguagesPath:"https://api.locize.app/languages/{{projectId}}",addPath:"https://api.locize.app/missing/{{projectId}}/{{version}}/{{lng}}/{{ns}}",updatePath:"https://api.locize.app/update/{{projectId}}/{{version}}/{{lng}}/{{ns}}",referenceLng:"en",crossDomain:!0,setContentTypeJSON:!1,version:"latest",private:!1,translatedPercentageThreshold:.9,failLoadingOnEmptyJSON:!1,allowedAddOrUpdateHosts:["localhost"],onSaved:!1,reloadInterval:typeof window<"u"?!1:60*60*1e3,checkForProjectTimeout:3*1e3,storageExpiration:60*60*1e3,writeDebounce:5*1e3}},mT;try{mT=typeof window<"u"&&window.localStorage!==null;var bY="notExistingLocizeProject";window.localStorage.setItem(bY,"foo"),window.localStorage.removeItem(bY)}catch{mT=!1}function dHe(e){var t=function(){},n=function(){};return mT?(t=function(i){window.localStorage.setItem("notExistingLocizeProject_".concat(i),Date.now())},n=function(i){var o=window.localStorage.getItem("notExistingLocizeProject_".concat(i));return o?Date.now()-o>e?(window.localStorage.removeItem("notExistingLocizeProject_".concat(i)),!1):!0:!1}):typeof document<"u"&&(t=function(i){var o=new Date;o.setTime(o.getTime()+e);var s="; expires=".concat(o.toGMTString()),a="notExistingLocizeProject_".concat(i);try{document.cookie="".concat(a,"=").concat(Date.now()).concat(s,";path=/")}catch{}},n=function(i){var o="notExistingLocizeProject_".concat(i),s="".concat(o,"=");try{for(var a=document.cookie.split(";"),l=0;l<a.length;l++){for(var u=a[l];u.charAt(0)===" ";)u=u.substring(1,u.length);if(u.indexOf(s)===0)return!0}}catch{}return!1}),{setProjectNotExisting:t,isProjectNotExisting:n}}var gT=function(t,n,r){var i={};return n.authorize&&n.apiKey&&(i.Authorization=n.apiKey),(r||n.setContentTypeJSON)&&(i["Content-Type"]="application/json"),{method:r?"POST":"GET",url:t,headers:i,body:r}},vT=function(t,n,r){if(t.request.length===1){try{var i=t.request(n);i&&typeof i.then=="function"?i.then(function(o){return r(null,o)}).catch(r):r(null,i)}catch(o){r(o)}return}t.request(n,r)},xY=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;sHe(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",t&&t.projectId?this.init(null,t,r,n):this.init(t,n,r,i)}return aHe(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;!i.referenceLng&&o.fallbackLng&&Array.isArray(o.fallbackLng)&&o.fallbackLng[0]!=="dev"&&(i.referenceLng=o.fallbackLng[0]),this.services=n;var a=cHe(),l=xc(i,this.options||{});l.reloadInterval&&l.reloadInterval<5*60*1e3&&(console.warn("Your configured reloadInterval option is to low."),l.reloadInterval=a.reloadInterval),this.options=xc(i,this.options||{},a),this.allOptions=o,this.somethingLoaded=!1,this.isProjectNotExisting=!1,this.storage=dHe(this.options.storageExpiration),this.options.pull&&console.warn('The pull API was removed use "private: true" option instead: https://docs.locize.com/integration/api#fetch-private-namespace-resources');var u=typeof window<"u"&&window.location&&window.location.hostname;u?(this.isAddOrUpdateAllowed=typeof this.options.allowedAddOrUpdateHosts=="function"?this.options.allowedAddOrUpdateHosts(u):this.options.allowedAddOrUpdateHosts.indexOf(u)>-1,n&&n.logger&&(o.saveMissing||o.updateMissing)&&(this.isAddOrUpdateAllowed?u!=="localhost"&&n.logger.warn('locize-backend: you are using the save or update missings feature from this host "'.concat(u,`".
|
|
1477
1477
|
Make sure you will not use it in production!
|
|
1478
|
-
https://docs.locize.com/guides-tips-and-tricks/going-production`)):n.logger.warn(typeof this.options.allowedAddOrUpdateHosts=="function"?'locize-backend: will not save or update missings because allowedAddOrUpdateHosts returned false for the host "'.concat(u,'".'):'locize-backend: will not save or update missings because the host "'.concat(u,'" was not in the list of allowedAddOrUpdateHosts: ').concat(this.options.allowedAddOrUpdateHosts.join(", ")," (matches need to be exact).")))):this.isAddOrUpdateAllowed=!0,typeof s=="function"&&this.getOptions(function(c,f,m){if(c)return s(c);r.options.referenceLng=i.referenceLng||f.referenceLng||r.options.referenceLng,s(null,f,m)}),this.queuedWrites={pending:{}},this.debouncedProcess=XUe(this.process,this.options.writeDebounce),this.interval&&clearInterval(this.interval),this.options.reloadInterval&&this.options.projectId&&(this.interval=setInterval(function(){return r.reload()},this.options.reloadInterval),ep(this.interval)==="object"&&typeof this.interval.unref=="function"&&this.interval.unref())}},{key:"reload",value:function(){var n=this,r=this.services||{logger:console},i=r.backendConnector,o=r.languageUtils,s=r.logger;if(i){var a=i.language;if(!(a&&a.toLowerCase()==="cimode")){var l=[],u=function(f){var m=o.toResolveHierarchy(f);m.forEach(function(p){l.indexOf(p)<0&&l.push(p)})};u(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(c){return u(c)}),l.forEach(function(c){n.allOptions.ns.forEach(function(f){i.read(c,f,"read",null,null,function(m,p){m&&s.warn("loading namespace ".concat(f," for language ").concat(c," failed"),m),!m&&p&&s.log("loaded namespace ".concat(f," for language ").concat(c),p),i.loaded("".concat(c,"|").concat(f),m,p)})})})}}}},{key:"getLanguages",value:function(n){var r=this,i;n||(i=pY(),n=function(l,u){if(l)return i.reject(l);i.resolve(u)});var o=Mm(this.options,["projectId"]);if(o)return n(new Error(o));var s=Dm(this.options.getLanguagesPath,{projectId:this.options.projectId});if(!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting)return n(new Error("locize project ".concat(this.options.projectId," does not exist!")));if(this.getLanguagesCalls=this.getLanguagesCalls||[],this.getLanguagesCalls.push(n),!(this.getLanguagesCalls.length>1))return this.loadUrl({},s,function(a,l,u){if(!r.somethingLoaded&&u&&u.resourceNotExisting){r.isProjectNotExisting=!0,r.storage.setProjectNotExisting(r.options.projectId);var c=new Error("locize project ".concat(r.options.projectId," does not exist!")),f=r.getLanguagesCalls;return r.getLanguagesCalls=[],f.forEach(function(g){return g(c)})}if(l){var m=Object.keys(l).reduce(function(g,v){var w=l[v];return w.isReferenceLanguage&&(g=v),g},"");m&&r.options.referenceLng!==m&&(r.options.referenceLng=m)}r.somethingLoaded=!0;var p=r.getLanguagesCalls;r.getLanguagesCalls=[],p.forEach(function(g){return g(a,l)})}),i}},{key:"getOptions",value:function(n){var r=this,i;return n||(i=pY(),n=function(s,a){if(s)return i.reject(s);i.resolve(a)}),this.getLanguages(function(o,s){if(o)return n(o);var a=Object.keys(s);if(!a.length)return n(new Error("was unable to load languages via API"));var l=a.reduce(function(c,f){var m=s[f];return m.translated[r.options.version]&&m.translated[r.options.version]>=r.options.translatedPercentageThreshold&&c.push(f),c},[]),u=a.reduce(function(c,f){return f.indexOf("-")>-1?!0:c},!1);n(null,{fallbackLng:r.options.referenceLng,referenceLng:r.options.referenceLng,supportedLngs:l,load:u?"all":"languageOnly"},s)}),i}},{key:"checkIfProjectExists",value:function(n){var r=this,i=this.services||{logger:console},o=i.logger;if(this.somethingLoaded){n&&n(null);return}if(this.alreadyRequestedCheckIfProjectExists){setTimeout(function(){return r.checkIfProjectExists(n)},this.options.checkForProjectTimeout);return}this.alreadyRequestedCheckIfProjectExists=!0,this.getLanguages(function(s){s&&s.message&&s.message.indexOf("does not exist")>0&&o&&o.error(s.message),n&&n(s)})}},{key:"read",value:function(n,r,i){var o=this,s=this.services||{logger:console},a=s.logger,l,u={};if(this.options.private){var c=Mm(this.options,["projectId","version","apiKey"]);if(c)return i(new Error(c),!1);l=Dm(this.options.privatePath,{lng:n,ns:r,projectId:this.options.projectId,version:this.options.version}),u={authorize:!0}}else{var f=Mm(this.options,["projectId","version"]);if(f)return i(new Error(f),!1);l=Dm(this.options.loadPath,{lng:n,ns:r,projectId:this.options.projectId,version:this.options.version})}if(!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting){var m=new Error("locize project ".concat(this.options.projectId," does not exist!"));a&&a.error(m.message),i&&i(m);return}this.loadUrl(u,l,function(p,g,v){o.somethingLoaded||(v&&v.resourceNotExisting?setTimeout(function(){return o.checkIfProjectExists()},o.options.checkForProjectTimeout):o.somethingLoaded=!0),i(p,g)})}},{key:"loadUrl",value:function(n,r,i,o){var s=this;n=xc(n,this.options),typeof i=="function"&&(o=i,i=void 0),o=o||function(){};var a=function(c,f){var m=f&&f.resourceNotExisting;if(f&&(f.status===408||f.status===400))return o("failed loading "+r,!0,{resourceNotExisting:m});if(f&&(f.status>=500&&f.status<600||!f.status))return o("failed loading "+r,!0,{resourceNotExisting:m});if(f&&f.status>=400&&f.status<500)return o("failed loading "+r,!1,{resourceNotExisting:m});if(!f&&c&&c.message&&c.message.indexOf("Failed to fetch")>-1)return o("failed loading "+r,!0,{resourceNotExisting:m});if(c)return o(c,!1);var p,g;try{typeof f.data=="string"?p=JSON.parse(f.data):p=f.data}catch{g="failed parsing "+r+" to json"}if(g)return o(g,!1);if(s.options.failLoadingOnEmptyJSON&&!Object.keys(p).length)return o("loaded result empty for "+r,!1,{resourceNotExisting:m});o(null,p,{resourceNotExisting:m})};if(!this.options.request||r.indexOf("/languages/".concat(n.projectId))>0)return hT(n,r,i,a);var l=gT(r,n,i);vT(this.options,l,a)}},{key:"create",value:function(n,r,i,o,s,a){var l=this;typeof s!="function"&&(s=function(){}),this.checkIfProjectExists(function(u){if(u)return s(u);var c=Mm(l.options,["projectId","version","apiKey","referenceLng"]);if(c)return s(new Error(c));if(!l.isAddOrUpdateAllowed)return s("host is not allowed to create key.");typeof n=="string"&&(n=[n]),n.filter(function(f){return f===l.options.referenceLng}).length<1&&l.services&&l.services.logger&&l.services.logger.warn('locize-backend: will not save missings because the reference language "'.concat(l.options.referenceLng,'" was not in the list of to save languages: ').concat(n.join(", ")," (open your site in the reference language to save missings).")),n.forEach(function(f){f===l.options.referenceLng&&l.queue.call(l,l.options.referenceLng,r,i,o,s,a)})})}},{key:"update",value:function(n,r,i,o,s,a){var l=this;typeof s!="function"&&(s=function(){}),this.checkIfProjectExists(function(u){if(u)return s(u);var c=Mm(l.options,["projectId","version","apiKey","referenceLng"]);if(c)return s(new Error(c));if(!l.isAddOrUpdateAllowed)return s("host is not allowed to update key.");a||(a={}),typeof n=="string"&&(n=[n]),a.isUpdate=!0,n.forEach(function(f){f===l.options.referenceLng&&l.queue.call(l,l.options.referenceLng,r,i,o,s,a)})})}},{key:"writePage",value:function(n,r,i,o){var s=Dm(this.options.addPath,{lng:n,ns:r,projectId:this.options.projectId,version:this.options.version}),a=Dm(this.options.updatePath,{lng:n,ns:r,projectId:this.options.projectId,version:this.options.version}),l=!1,u=!1,c={},f={};i.forEach(function(w){var b=w.options&&w.options.tDescription?{value:w.fallbackValue||"",context:{text:w.options.tDescription}}:w.fallbackValue||"";w.options&&w.options.isUpdate?(u||(u=!0),f[w.key]=b):(l||(l=!0),c[w.key]=b)});var m=0;l&&m++,u&&m++;var p=function(b){m--,m||o(b)};if(m||p(),l)if(!this.options.request)hT(xc({authorize:!0},this.options),s,c,p);else{var g=gT(s,xc({authorize:!0},this.options),c);vT(this.options,g,p)}if(u)if(!this.options.request)hT(xc({authorize:!0},this.options),a,f,p);else{var v=gT(a,xc({authorize:!0},this.options),f);vT(this.options,v,p)}}},{key:"write",value:function(n,r){var i=this,o=dY(this.queuedWrites,["locks",n,r]);if(!o){var s=dY(this.queuedWrites,[n,r]);fT(this.queuedWrites,[n,r],[]);var a=1e3,l=s.filter(function(p){return p.callback}).map(function(p){return p.callback});if(s.length){fT(this.queuedWrites,["locks",n,r],!0);var u=function(){fT(i.queuedWrites,["locks",n,r],!1),l.forEach(function(g){return g()}),i.options.onSaved&&i.options.onSaved(n,r),i.debouncedProcess(n,r)},c=s.length/a,f=0,m=s.splice(0,a);for(this.writePage(n,r,m,function(){f++,f>=c&&u()});m.length===a;)m=s.splice(0,a),m.length&&this.writePage(n,r,m,function(){f++,f>=c&&u()})}}}},{key:"process",value:function(){var n=this;Object.keys(this.queuedWrites).forEach(function(r){r!=="locks"&&Object.keys(n.queuedWrites[r]).forEach(function(i){var o=n.queuedWrites[r][i];o.length&&n.write(r,i)})})}},{key:"queue",value:function(n,r,i,o,s,a){eHe(this.queuedWrites,[n,r],{key:i,fallbackValue:o||"",callback:s,options:a}),this.debouncedProcess()}}])}();xY.type="backend";const fHe=Yt.use(Dq).use(ufe).use(KUe).use(xY).init({detection:{caches:["cookie"],order:["querystring","cookie","localStorage","navigator"],lookupQuerystring:"culture"},compatibilityJSON:"v3",interpolation:{prefix:"{{",suffix:"}}"},fallbackLng:"de",ns:["bookingjs"],load:"languageOnly",backend:{projectId:"ea068e6d-18b6-4697-bd21-65291883e27e",referenceLng:"de"}}).then(()=>{An.defaultLocale=Yt.resolvedLanguage});function pHe(){const e=Se(U_);re.useEffect(()=>{let t=!0;return n(),()=>{t=!1};async function n(){if(e){if(await fHe,e.localization&&t)for(const[r,i]of Object.entries(e.localization))if(Yt.hasResourceBundle(r,"bookingjs")){const o=Yt.getResourceBundle(r,"bookingjs");Yt.removeResourceBundle(r,"bookingjs");const s=sn.merge({},o,i);Yt.addResourceBundle(r,"bookingjs",s)}else Yt.addResourceBundle(r,"bookingjs",i);e.culture&&e.culture!==Yt.resolvedLanguage&&t&&(await Yt.changeLanguage(e.culture),An.defaultLocale=Yt.resolvedLanguage)}}},[e])}function hHe({appConfig:e={},muiTheme:t={},fcConfig:n={}}){return $.jsx($.Fragment,{children:$.jsx(R.Suspense,{fallback:$.jsx(wS,{visible:!0}),children:$.jsx(AO,{injectFirst:!0,children:$.jsx(Sle,{maxSnack:3,autoHideDuration:3e3,anchorOrigin:{horizontal:"right",vertical:"bottom"},children:$.jsx(vre,{store:vBe,children:$.jsxs(kq,{muiTheme:t,fcConfig:n,appConfig:e,children:[$.jsx(pHe,{}),$.jsx(xre,{children:$.jsx(Ize,{})})]})})})})})})}function mHe(e,t,n,r){let i=r==null?void 0:r.getElementById((e==null?void 0:e.rootElId)??"bookingjs");i||(i=document.getElementById((e==null?void 0:e.rootElId)??"bookingjs")),ZA(i).render($.jsx(re.StrictMode,{children:$.jsx(hHe,{appConfig:e,muiTheme:t,fcConfig:n})}))}function gHe(e,t,n){const r=document.getElementById((e==null?void 0:e.rootElId)??"bookingjs"),i=document.createElement("iframe");i.style="border-width:0",i.height=e.height,i.width="100%",r.appendChild(i),e.queryString=window.location.search,e.queryHash=window.location.hash,document.appConfig=e,document.muiTheme=t,document.fcConfig=n;const o=e.cdnUrl??"https://cdn.timum.de/bookingjs/1/booking.js";i.srcdoc=`
|
|
1478
|
+
https://docs.locize.com/guides-tips-and-tricks/going-production`)):n.logger.warn(typeof this.options.allowedAddOrUpdateHosts=="function"?'locize-backend: will not save or update missings because allowedAddOrUpdateHosts returned false for the host "'.concat(u,'".'):'locize-backend: will not save or update missings because the host "'.concat(u,'" was not in the list of allowedAddOrUpdateHosts: ').concat(this.options.allowedAddOrUpdateHosts.join(", ")," (matches need to be exact).")))):this.isAddOrUpdateAllowed=!0,typeof s=="function"&&this.getOptions(function(c,f,m){if(c)return s(c);r.options.referenceLng=i.referenceLng||f.referenceLng||r.options.referenceLng,s(null,f,m)}),this.queuedWrites={pending:{}},this.debouncedProcess=XUe(this.process,this.options.writeDebounce),this.interval&&clearInterval(this.interval),this.options.reloadInterval&&this.options.projectId&&(this.interval=setInterval(function(){return r.reload()},this.options.reloadInterval),ep(this.interval)==="object"&&typeof this.interval.unref=="function"&&this.interval.unref())}},{key:"reload",value:function(){var n=this,r=this.services||{logger:console},i=r.backendConnector,o=r.languageUtils,s=r.logger;if(i){var a=i.language;if(!(a&&a.toLowerCase()==="cimode")){var l=[],u=function(f){var m=o.toResolveHierarchy(f);m.forEach(function(p){l.indexOf(p)<0&&l.push(p)})};u(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(c){return u(c)}),l.forEach(function(c){n.allOptions.ns.forEach(function(f){i.read(c,f,"read",null,null,function(m,p){m&&s.warn("loading namespace ".concat(f," for language ").concat(c," failed"),m),!m&&p&&s.log("loaded namespace ".concat(f," for language ").concat(c),p),i.loaded("".concat(c,"|").concat(f),m,p)})})})}}}},{key:"getLanguages",value:function(n){var r=this,i;n||(i=pY(),n=function(l,u){if(l)return i.reject(l);i.resolve(u)});var o=Mm(this.options,["projectId"]);if(o)return n(new Error(o));var s=Dm(this.options.getLanguagesPath,{projectId:this.options.projectId});if(!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting)return n(new Error("locize project ".concat(this.options.projectId," does not exist!")));if(this.getLanguagesCalls=this.getLanguagesCalls||[],this.getLanguagesCalls.push(n),!(this.getLanguagesCalls.length>1))return this.loadUrl({},s,function(a,l,u){if(!r.somethingLoaded&&u&&u.resourceNotExisting){r.isProjectNotExisting=!0,r.storage.setProjectNotExisting(r.options.projectId);var c=new Error("locize project ".concat(r.options.projectId," does not exist!")),f=r.getLanguagesCalls;return r.getLanguagesCalls=[],f.forEach(function(g){return g(c)})}if(l){var m=Object.keys(l).reduce(function(g,v){var w=l[v];return w.isReferenceLanguage&&(g=v),g},"");m&&r.options.referenceLng!==m&&(r.options.referenceLng=m)}r.somethingLoaded=!0;var p=r.getLanguagesCalls;r.getLanguagesCalls=[],p.forEach(function(g){return g(a,l)})}),i}},{key:"getOptions",value:function(n){var r=this,i;return n||(i=pY(),n=function(s,a){if(s)return i.reject(s);i.resolve(a)}),this.getLanguages(function(o,s){if(o)return n(o);var a=Object.keys(s);if(!a.length)return n(new Error("was unable to load languages via API"));var l=a.reduce(function(c,f){var m=s[f];return m.translated[r.options.version]&&m.translated[r.options.version]>=r.options.translatedPercentageThreshold&&c.push(f),c},[]),u=a.reduce(function(c,f){return f.indexOf("-")>-1?!0:c},!1);n(null,{fallbackLng:r.options.referenceLng,referenceLng:r.options.referenceLng,supportedLngs:l,load:u?"all":"languageOnly"},s)}),i}},{key:"checkIfProjectExists",value:function(n){var r=this,i=this.services||{logger:console},o=i.logger;if(this.somethingLoaded){n&&n(null);return}if(this.alreadyRequestedCheckIfProjectExists){setTimeout(function(){return r.checkIfProjectExists(n)},this.options.checkForProjectTimeout);return}this.alreadyRequestedCheckIfProjectExists=!0,this.getLanguages(function(s){s&&s.message&&s.message.indexOf("does not exist")>0&&o&&o.error(s.message),n&&n(s)})}},{key:"read",value:function(n,r,i){var o=this,s=this.services||{logger:console},a=s.logger,l,u={};if(this.options.private){var c=Mm(this.options,["projectId","version","apiKey"]);if(c)return i(new Error(c),!1);l=Dm(this.options.privatePath,{lng:n,ns:r,projectId:this.options.projectId,version:this.options.version}),u={authorize:!0}}else{var f=Mm(this.options,["projectId","version"]);if(f)return i(new Error(f),!1);l=Dm(this.options.loadPath,{lng:n,ns:r,projectId:this.options.projectId,version:this.options.version})}if(!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting){var m=new Error("locize project ".concat(this.options.projectId," does not exist!"));a&&a.error(m.message),i&&i(m);return}this.loadUrl(u,l,function(p,g,v){o.somethingLoaded||(v&&v.resourceNotExisting?setTimeout(function(){return o.checkIfProjectExists()},o.options.checkForProjectTimeout):o.somethingLoaded=!0),i(p,g)})}},{key:"loadUrl",value:function(n,r,i,o){var s=this;n=xc(n,this.options),typeof i=="function"&&(o=i,i=void 0),o=o||function(){};var a=function(c,f){var m=f&&f.resourceNotExisting;if(f&&(f.status===408||f.status===400))return o("failed loading "+r,!0,{resourceNotExisting:m});if(f&&(f.status>=500&&f.status<600||!f.status))return o("failed loading "+r,!0,{resourceNotExisting:m});if(f&&f.status>=400&&f.status<500)return o("failed loading "+r,!1,{resourceNotExisting:m});if(!f&&c&&c.message&&c.message.indexOf("Failed to fetch")>-1)return o("failed loading "+r,!0,{resourceNotExisting:m});if(c)return o(c,!1);var p,g;try{typeof f.data=="string"?p=JSON.parse(f.data):p=f.data}catch{g="failed parsing "+r+" to json"}if(g)return o(g,!1);if(s.options.failLoadingOnEmptyJSON&&!Object.keys(p).length)return o("loaded result empty for "+r,!1,{resourceNotExisting:m});o(null,p,{resourceNotExisting:m})};if(!this.options.request||r.indexOf("/languages/".concat(n.projectId))>0)return hT(n,r,i,a);var l=gT(r,n,i);vT(this.options,l,a)}},{key:"create",value:function(n,r,i,o,s,a){var l=this;typeof s!="function"&&(s=function(){}),this.checkIfProjectExists(function(u){if(u)return s(u);var c=Mm(l.options,["projectId","version","apiKey","referenceLng"]);if(c)return s(new Error(c));if(!l.isAddOrUpdateAllowed)return s("host is not allowed to create key.");typeof n=="string"&&(n=[n]),n.filter(function(f){return f===l.options.referenceLng}).length<1&&l.services&&l.services.logger&&l.services.logger.warn('locize-backend: will not save missings because the reference language "'.concat(l.options.referenceLng,'" was not in the list of to save languages: ').concat(n.join(", ")," (open your site in the reference language to save missings).")),n.forEach(function(f){f===l.options.referenceLng&&l.queue.call(l,l.options.referenceLng,r,i,o,s,a)})})}},{key:"update",value:function(n,r,i,o,s,a){var l=this;typeof s!="function"&&(s=function(){}),this.checkIfProjectExists(function(u){if(u)return s(u);var c=Mm(l.options,["projectId","version","apiKey","referenceLng"]);if(c)return s(new Error(c));if(!l.isAddOrUpdateAllowed)return s("host is not allowed to update key.");a||(a={}),typeof n=="string"&&(n=[n]),a.isUpdate=!0,n.forEach(function(f){f===l.options.referenceLng&&l.queue.call(l,l.options.referenceLng,r,i,o,s,a)})})}},{key:"writePage",value:function(n,r,i,o){var s=Dm(this.options.addPath,{lng:n,ns:r,projectId:this.options.projectId,version:this.options.version}),a=Dm(this.options.updatePath,{lng:n,ns:r,projectId:this.options.projectId,version:this.options.version}),l=!1,u=!1,c={},f={};i.forEach(function(w){var b=w.options&&w.options.tDescription?{value:w.fallbackValue||"",context:{text:w.options.tDescription}}:w.fallbackValue||"";w.options&&w.options.isUpdate?(u||(u=!0),f[w.key]=b):(l||(l=!0),c[w.key]=b)});var m=0;l&&m++,u&&m++;var p=function(b){m--,m||o(b)};if(m||p(),l)if(!this.options.request)hT(xc({authorize:!0},this.options),s,c,p);else{var g=gT(s,xc({authorize:!0},this.options),c);vT(this.options,g,p)}if(u)if(!this.options.request)hT(xc({authorize:!0},this.options),a,f,p);else{var v=gT(a,xc({authorize:!0},this.options),f);vT(this.options,v,p)}}},{key:"write",value:function(n,r){var i=this,o=dY(this.queuedWrites,["locks",n,r]);if(!o){var s=dY(this.queuedWrites,[n,r]);fT(this.queuedWrites,[n,r],[]);var a=1e3,l=s.filter(function(p){return p.callback}).map(function(p){return p.callback});if(s.length){fT(this.queuedWrites,["locks",n,r],!0);var u=function(){fT(i.queuedWrites,["locks",n,r],!1),l.forEach(function(g){return g()}),i.options.onSaved&&i.options.onSaved(n,r),i.debouncedProcess(n,r)},c=s.length/a,f=0,m=s.splice(0,a);for(this.writePage(n,r,m,function(){f++,f>=c&&u()});m.length===a;)m=s.splice(0,a),m.length&&this.writePage(n,r,m,function(){f++,f>=c&&u()})}}}},{key:"process",value:function(){var n=this;Object.keys(this.queuedWrites).forEach(function(r){r!=="locks"&&Object.keys(n.queuedWrites[r]).forEach(function(i){var o=n.queuedWrites[r][i];o.length&&n.write(r,i)})})}},{key:"queue",value:function(n,r,i,o,s,a){eHe(this.queuedWrites,[n,r],{key:i,fallbackValue:o||"",callback:s,options:a}),this.debouncedProcess()}}])}();xY.type="backend";const fHe=Yt.use(Dq).use(ufe).use(KUe).use(xY).init({detection:{caches:["cookie"],order:["querystring","cookie","localStorage","navigator"],lookupQuerystring:"culture"},compatibilityJSON:"v3",interpolation:{prefix:"{{",suffix:"}}"},fallbackLng:"de",ns:["bookingjs"],load:"languageOnly",backend:{projectId:"ea068e6d-18b6-4697-bd21-65291883e27e",referenceLng:"de"}}).then(()=>{An.defaultLocale=Yt.resolvedLanguage});function pHe(){const e=Se(U_);re.useEffect(()=>{let t=!0;return n(),()=>{t=!1};async function n(){if(e){if(await fHe,e.localization&&t)for(const[r,i]of Object.entries(e.localization))if(Yt.hasResourceBundle(r,"bookingjs")){const o=Yt.getResourceBundle(r,"bookingjs");Yt.removeResourceBundle(r,"bookingjs");const s=sn.merge({},o,i);Yt.addResourceBundle(r,"bookingjs",s)}else Yt.addResourceBundle(r,"bookingjs",i);e.culture&&e.culture!==Yt.resolvedLanguage&&t&&(await Yt.changeLanguage(e.culture),An.defaultLocale=Yt.resolvedLanguage)}}},[e])}function hHe({appConfig:e={},muiTheme:t={},fcConfig:n={}}){return $.jsx($.Fragment,{children:$.jsx(R.Suspense,{fallback:$.jsx(wS,{visible:!0,circleSx:{color:"#777"},wrapperSx:{height:e!=null&&e.height?e==null?void 0:e.height:500}}),children:$.jsx(AO,{injectFirst:!0,children:$.jsx(Sle,{maxSnack:3,autoHideDuration:3e3,anchorOrigin:{horizontal:"right",vertical:"bottom"},children:$.jsx(vre,{store:vBe,children:$.jsxs(kq,{muiTheme:t,fcConfig:n,appConfig:e,children:[$.jsx(pHe,{}),$.jsx(xre,{children:$.jsx(Ize,{})})]})})})})})})}function mHe(e,t,n,r){let i=r==null?void 0:r.getElementById((e==null?void 0:e.rootElId)??"bookingjs");i||(i=document.getElementById((e==null?void 0:e.rootElId)??"bookingjs")),ZA(i).render($.jsx(re.StrictMode,{children:$.jsx(hHe,{appConfig:e,muiTheme:t,fcConfig:n})}))}function gHe(e,t,n){const r=document.getElementById((e==null?void 0:e.rootElId)??"bookingjs"),i=document.createElement("iframe");i.style="border-width:0",i.height=e.height,i.width="100%",r.appendChild(i),e.queryString=window.location.search,e.queryHash=window.location.hash,document.appConfig=e,document.muiTheme=t,document.fcConfig=n;const o=e.cdnUrl??"https://cdn.timum.de/bookingjs/1/booking.js";i.srcdoc=`
|
|
1479
1479
|
<div id='${(e==null?void 0:e.rootElId)??"bookingjs"}' style='margin: 0px 16px 0px 8px'>
|
|
1480
1480
|
<script type='module'>
|
|
1481
1481
|
import { init } from '${o}';
|