UNPKG

react-chrono

Version:
6 lines (5 loc) 189 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),a=require("react"),In=require("react-dom"),_r=e=>e&&e.__esModule?e:{default:e},J=_r(a),Rt=_r(In);function Ln(e){const n={items:e.items||[],mode:Hn(e.mode),children:e.children,theme:e.theme,activeItemIndex:e.activeItemIndex,allowDynamicUpdate:e.allowDynamicUpdate,id:e.uniqueId,onItemSelected:e.onItemSelected,onScrollEnd:e.onScrollEnd,onThemeChange:e.onThemeChange,onRestartSlideshow:e.onRestartSlideshow};return Mn(e)&&(n.layout={cardWidth:e.cardWidth,cardHeight:e.cardHeight,pointSize:e.timelinePointDimension,lineWidth:e.lineWidth,itemWidth:e.itemWidth,responsive:e.responsiveBreakPoint!==void 0||e.enableBreakPoint!==void 0?{...e.responsiveBreakPoint!==void 0&&{breakpoint:e.responsiveBreakPoint},...e.enableBreakPoint!==void 0&&{enabled:e.enableBreakPoint}}:void 0,positioning:xt(e.cardPositionHorizontal)!==void 0||e.flipLayout!==void 0?{...xt(e.cardPositionHorizontal)!==void 0&&{cardPosition:xt(e.cardPositionHorizontal)},...e.flipLayout!==void 0&&{flipLayout:e.flipLayout}}:void 0,timelineHeight:e.timelineHeight}),Nn(e)&&(n.interaction={...e.disableNavOnKey===!0&&{keyboardNavigation:!1},...e.disableClickOnCircle===!0&&{pointClick:!1},...e.disableAutoScrollOnClick===!0&&{autoScroll:!1},...e.focusActiveItemOnLoad!==void 0&&{focusOnLoad:e.focusActiveItemOnLoad},...e.highlightCardsOnHover!==void 0&&{cardHover:e.highlightCardsOnHover},...e.disableInteraction!==void 0&&{disabled:e.disableInteraction}}),Rn(e)&&(n.content={allowHTML:e.parseDetailsAsHTML,readMore:e.useReadMore,textOverlay:e.textOverlay,dateFormat:e.titleDateFormat,compactText:e.textDensity==="HIGH",semanticTags:e.semanticTags?{...e.semanticTags.cardTitle&&{title:e.semanticTags.cardTitle},...e.semanticTags.cardSubtitle&&{subtitle:e.semanticTags.cardSubtitle}}:void 0}),On(e)&&(n.display={borderless:e.borderLessCards,cardsDisabled:e.cardLess,pointsDisabled:e.disableTimelinePoint,pointShape:e.timelinePointShape,allCardsVisible:e.showAllCardsHorizontal,toolbar:e.disableToolbar===!0||e.toolbarPosition!==void 0?{...e.disableToolbar===!0&&{enabled:!1},...e.toolbarPosition!==void 0&&{position:e.toolbarPosition}}:void 0,scrollable:e.scrollable}),jn(e)&&(n.media={...e.mediaHeight!==void 0&&{height:e.mediaHeight},...e.mediaSettings?.align!==void 0&&{align:e.mediaSettings.align},...e.mediaSettings?.fit!==void 0&&{fit:e.mediaSettings.fit}}),Dn(e)&&(n.animation={slideshow:{...e.slideShow!==void 0&&{enabled:e.slideShow},...e.slideItemDuration!==void 0&&{duration:e.slideItemDuration},...e.slideShowType!==void 0&&{type:$n(e.slideShowType)},...e.showProgressOnSlideshow!==void 0&&{showProgress:e.showProgressOnSlideshow},...e.showOverallSlideshowProgress!==void 0&&{showOverallProgress:e.showOverallSlideshowProgress}}}),qn(e)&&(n.style={...e.classNames!==void 0&&{classNames:e.classNames},...e.fontSizes!==void 0&&{fontSizes:e.fontSizes}}),Fn(e)&&(n.accessibility={...e.buttonTexts!==void 0&&{buttonTexts:e.buttonTexts}}),(e.darkMode!==void 0||e.enableDarkToggle!==void 0)&&(n.darkMode={...e.darkMode!==void 0&&{enabled:e.darkMode},...e.enableDarkToggle!==void 0&&{showToggle:e.enableDarkToggle}}),n}function En(e){const n=[];e.timelinePointDimension!==void 0&&n.push("timelinePointDimension is deprecated. Use layout.pointSize instead."),e.cardPositionHorizontal!==void 0&&n.push("cardPositionHorizontal is deprecated. Use layout.positioning.cardPosition instead."),e.disableNavOnKey!==void 0&&n.push("disableNavOnKey is deprecated. Use interaction.keyboardNavigation instead."),e.disableClickOnCircle!==void 0&&n.push("disableClickOnCircle is deprecated. Use interaction.pointClick instead."),e.disableAutoScrollOnClick!==void 0&&n.push("disableAutoScrollOnClick is deprecated. Use interaction.autoScroll instead."),e.parseDetailsAsHTML!==void 0&&n.push("parseDetailsAsHTML is deprecated. Use content.allowHTML instead."),e.textDensity!==void 0&&n.push("textDensity is deprecated. Use content.compactText instead."),e.borderLessCards!==void 0&&n.push("borderLessCards is deprecated. Use display.borderless instead."),e.cardLess!==void 0&&n.push("cardLess is deprecated. Use display.cardsDisabled instead."),e.showAllCardsHorizontal!==void 0&&n.push("showAllCardsHorizontal is deprecated. Use display.allCardsVisible instead."),e.noUniqueId!==void 0&&n.push("noUniqueId is deprecated and no longer needed. Use the id prop if you need custom IDs."),e.isChild!==void 0&&n.push("isChild is an internal prop and should not be used directly."),process.env.NODE_ENV==="development"&&n.length>0&&console.warn(`React Chrono: Deprecated props detected. Please migrate to the new grouped prop structure: `+n.map(r=>` • ${r}`).join(` `)+` For migration guide, visit: https://github.com/prabhuignoto/react-chrono/blob/master/MIGRATION.md`)}function Mn(e){return!!(e.cardWidth||e.cardHeight||e.timelinePointDimension||e.lineWidth||e.itemWidth||e.responsiveBreakPoint||e.enableBreakPoint||e.cardPositionHorizontal||e.flipLayout)}function Nn(e){return e.disableNavOnKey!==void 0||e.disableClickOnCircle!==void 0||e.disableAutoScrollOnClick!==void 0||e.focusActiveItemOnLoad!==void 0||e.highlightCardsOnHover!==void 0||e.disableInteraction!==void 0}function Rn(e){return!!(e.parseDetailsAsHTML!==void 0||e.useReadMore!==void 0||e.textOverlay!==void 0||e.titleDateFormat||e.textDensity||e.semanticTags)}function On(e){return!!(e.borderLessCards!==void 0||e.cardLess!==void 0||e.disableTimelinePoint!==void 0||e.timelinePointShape||e.showAllCardsHorizontal!==void 0||e.disableToolbar!==void 0||e.toolbarPosition||e.scrollable!==void 0)}function jn(e){return!!(e.mediaHeight||e.mediaSettings)}function Dn(e){return!!(e.slideShow!==void 0||e.slideItemDuration||e.slideShowType||e.showProgressOnSlideshow!==void 0||e.showOverallSlideshowProgress!==void 0)}function qn(e){return!!(e.classNames||e.fontSizes)}function Fn(e){return!!e.buttonTexts}function Hn(e){switch(e){case"VERTICAL":return"vertical";case"HORIZONTAL":return"horizontal";case"VERTICAL_ALTERNATING":return"alternating";case"HORIZONTAL_ALL":return"horizontal-all";default:return"alternating"}}function xt(e){switch(e){case"TOP":return"top";case"BOTTOM":return"bottom";default:return}}function $n(e){switch(e){case"slide_in":case"slide_from_sides":return"slide";case"reveal":return"reveal";default:return"fade"}}function Ot(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ct={exports:{}},ce={},ut={exports:{}},je={},Ut;function kr(){if(Ut)return je;Ut=1;function e(){var t={};return t["align-content"]=!1,t["align-items"]=!1,t["align-self"]=!1,t["alignment-adjust"]=!1,t["alignment-baseline"]=!1,t.all=!1,t["anchor-point"]=!1,t.animation=!1,t["animation-delay"]=!1,t["animation-direction"]=!1,t["animation-duration"]=!1,t["animation-fill-mode"]=!1,t["animation-iteration-count"]=!1,t["animation-name"]=!1,t["animation-play-state"]=!1,t["animation-timing-function"]=!1,t.azimuth=!1,t["backface-visibility"]=!1,t.background=!0,t["background-attachment"]=!0,t["background-clip"]=!0,t["background-color"]=!0,t["background-image"]=!0,t["background-origin"]=!0,t["background-position"]=!0,t["background-repeat"]=!0,t["background-size"]=!0,t["baseline-shift"]=!1,t.binding=!1,t.bleed=!1,t["bookmark-label"]=!1,t["bookmark-level"]=!1,t["bookmark-state"]=!1,t.border=!0,t["border-bottom"]=!0,t["border-bottom-color"]=!0,t["border-bottom-left-radius"]=!0,t["border-bottom-right-radius"]=!0,t["border-bottom-style"]=!0,t["border-bottom-width"]=!0,t["border-collapse"]=!0,t["border-color"]=!0,t["border-image"]=!0,t["border-image-outset"]=!0,t["border-image-repeat"]=!0,t["border-image-slice"]=!0,t["border-image-source"]=!0,t["border-image-width"]=!0,t["border-left"]=!0,t["border-left-color"]=!0,t["border-left-style"]=!0,t["border-left-width"]=!0,t["border-radius"]=!0,t["border-right"]=!0,t["border-right-color"]=!0,t["border-right-style"]=!0,t["border-right-width"]=!0,t["border-spacing"]=!0,t["border-style"]=!0,t["border-top"]=!0,t["border-top-color"]=!0,t["border-top-left-radius"]=!0,t["border-top-right-radius"]=!0,t["border-top-style"]=!0,t["border-top-width"]=!0,t["border-width"]=!0,t.bottom=!1,t["box-decoration-break"]=!0,t["box-shadow"]=!0,t["box-sizing"]=!0,t["box-snap"]=!0,t["box-suppress"]=!0,t["break-after"]=!0,t["break-before"]=!0,t["break-inside"]=!0,t["caption-side"]=!1,t.chains=!1,t.clear=!0,t.clip=!1,t["clip-path"]=!1,t["clip-rule"]=!1,t.color=!0,t["color-interpolation-filters"]=!0,t["column-count"]=!1,t["column-fill"]=!1,t["column-gap"]=!1,t["column-rule"]=!1,t["column-rule-color"]=!1,t["column-rule-style"]=!1,t["column-rule-width"]=!1,t["column-span"]=!1,t["column-width"]=!1,t.columns=!1,t.contain=!1,t.content=!1,t["counter-increment"]=!1,t["counter-reset"]=!1,t["counter-set"]=!1,t.crop=!1,t.cue=!1,t["cue-after"]=!1,t["cue-before"]=!1,t.cursor=!1,t.direction=!1,t.display=!0,t["display-inside"]=!0,t["display-list"]=!0,t["display-outside"]=!0,t["dominant-baseline"]=!1,t.elevation=!1,t["empty-cells"]=!1,t.filter=!1,t.flex=!1,t["flex-basis"]=!1,t["flex-direction"]=!1,t["flex-flow"]=!1,t["flex-grow"]=!1,t["flex-shrink"]=!1,t["flex-wrap"]=!1,t.float=!1,t["float-offset"]=!1,t["flood-color"]=!1,t["flood-opacity"]=!1,t["flow-from"]=!1,t["flow-into"]=!1,t.font=!0,t["font-family"]=!0,t["font-feature-settings"]=!0,t["font-kerning"]=!0,t["font-language-override"]=!0,t["font-size"]=!0,t["font-size-adjust"]=!0,t["font-stretch"]=!0,t["font-style"]=!0,t["font-synthesis"]=!0,t["font-variant"]=!0,t["font-variant-alternates"]=!0,t["font-variant-caps"]=!0,t["font-variant-east-asian"]=!0,t["font-variant-ligatures"]=!0,t["font-variant-numeric"]=!0,t["font-variant-position"]=!0,t["font-weight"]=!0,t.grid=!1,t["grid-area"]=!1,t["grid-auto-columns"]=!1,t["grid-auto-flow"]=!1,t["grid-auto-rows"]=!1,t["grid-column"]=!1,t["grid-column-end"]=!1,t["grid-column-start"]=!1,t["grid-row"]=!1,t["grid-row-end"]=!1,t["grid-row-start"]=!1,t["grid-template"]=!1,t["grid-template-areas"]=!1,t["grid-template-columns"]=!1,t["grid-template-rows"]=!1,t["hanging-punctuation"]=!1,t.height=!0,t.hyphens=!1,t.icon=!1,t["image-orientation"]=!1,t["image-resolution"]=!1,t["ime-mode"]=!1,t["initial-letters"]=!1,t["inline-box-align"]=!1,t["justify-content"]=!1,t["justify-items"]=!1,t["justify-self"]=!1,t.left=!1,t["letter-spacing"]=!0,t["lighting-color"]=!0,t["line-box-contain"]=!1,t["line-break"]=!1,t["line-grid"]=!1,t["line-height"]=!1,t["line-snap"]=!1,t["line-stacking"]=!1,t["line-stacking-ruby"]=!1,t["line-stacking-shift"]=!1,t["line-stacking-strategy"]=!1,t["list-style"]=!0,t["list-style-image"]=!0,t["list-style-position"]=!0,t["list-style-type"]=!0,t.margin=!0,t["margin-bottom"]=!0,t["margin-left"]=!0,t["margin-right"]=!0,t["margin-top"]=!0,t["marker-offset"]=!1,t["marker-side"]=!1,t.marks=!1,t.mask=!1,t["mask-box"]=!1,t["mask-box-outset"]=!1,t["mask-box-repeat"]=!1,t["mask-box-slice"]=!1,t["mask-box-source"]=!1,t["mask-box-width"]=!1,t["mask-clip"]=!1,t["mask-image"]=!1,t["mask-origin"]=!1,t["mask-position"]=!1,t["mask-repeat"]=!1,t["mask-size"]=!1,t["mask-source-type"]=!1,t["mask-type"]=!1,t["max-height"]=!0,t["max-lines"]=!1,t["max-width"]=!0,t["min-height"]=!0,t["min-width"]=!0,t["move-to"]=!1,t["nav-down"]=!1,t["nav-index"]=!1,t["nav-left"]=!1,t["nav-right"]=!1,t["nav-up"]=!1,t["object-fit"]=!1,t["object-position"]=!1,t.opacity=!1,t.order=!1,t.orphans=!1,t.outline=!1,t["outline-color"]=!1,t["outline-offset"]=!1,t["outline-style"]=!1,t["outline-width"]=!1,t.overflow=!1,t["overflow-wrap"]=!1,t["overflow-x"]=!1,t["overflow-y"]=!1,t.padding=!0,t["padding-bottom"]=!0,t["padding-left"]=!0,t["padding-right"]=!0,t["padding-top"]=!0,t.page=!1,t["page-break-after"]=!1,t["page-break-before"]=!1,t["page-break-inside"]=!1,t["page-policy"]=!1,t.pause=!1,t["pause-after"]=!1,t["pause-before"]=!1,t.perspective=!1,t["perspective-origin"]=!1,t.pitch=!1,t["pitch-range"]=!1,t["play-during"]=!1,t.position=!1,t["presentation-level"]=!1,t.quotes=!1,t["region-fragment"]=!1,t.resize=!1,t.rest=!1,t["rest-after"]=!1,t["rest-before"]=!1,t.richness=!1,t.right=!1,t.rotation=!1,t["rotation-point"]=!1,t["ruby-align"]=!1,t["ruby-merge"]=!1,t["ruby-position"]=!1,t["shape-image-threshold"]=!1,t["shape-outside"]=!1,t["shape-margin"]=!1,t.size=!1,t.speak=!1,t["speak-as"]=!1,t["speak-header"]=!1,t["speak-numeral"]=!1,t["speak-punctuation"]=!1,t["speech-rate"]=!1,t.stress=!1,t["string-set"]=!1,t["tab-size"]=!1,t["table-layout"]=!1,t["text-align"]=!0,t["text-align-last"]=!0,t["text-combine-upright"]=!0,t["text-decoration"]=!0,t["text-decoration-color"]=!0,t["text-decoration-line"]=!0,t["text-decoration-skip"]=!0,t["text-decoration-style"]=!0,t["text-emphasis"]=!0,t["text-emphasis-color"]=!0,t["text-emphasis-position"]=!0,t["text-emphasis-style"]=!0,t["text-height"]=!0,t["text-indent"]=!0,t["text-justify"]=!0,t["text-orientation"]=!0,t["text-overflow"]=!0,t["text-shadow"]=!0,t["text-space-collapse"]=!0,t["text-transform"]=!0,t["text-underline-position"]=!0,t["text-wrap"]=!0,t.top=!1,t.transform=!1,t["transform-origin"]=!1,t["transform-style"]=!1,t.transition=!1,t["transition-delay"]=!1,t["transition-duration"]=!1,t["transition-property"]=!1,t["transition-timing-function"]=!1,t["unicode-bidi"]=!1,t["vertical-align"]=!1,t.visibility=!1,t["voice-balance"]=!1,t["voice-duration"]=!1,t["voice-family"]=!1,t["voice-pitch"]=!1,t["voice-range"]=!1,t["voice-rate"]=!1,t["voice-stress"]=!1,t["voice-volume"]=!1,t.volume=!1,t["white-space"]=!1,t.widows=!1,t.width=!0,t["will-change"]=!1,t["word-break"]=!0,t["word-spacing"]=!0,t["word-wrap"]=!0,t["wrap-flow"]=!1,t["wrap-through"]=!1,t["writing-mode"]=!1,t["z-index"]=!1,t}function n(t,l,u){}function r(t,l,u){}var i=/javascript\s*\:/img;function o(t,l){return i.test(l)?"":l}return je.whiteList=e(),je.getDefaultWhiteList=e,je.onAttr=n,je.onIgnoreAttr=r,je.safeAttrValue=o,je}var wt,Kt;function Tr(){return Kt||(Kt=1,wt={indexOf:function(e,n){var r,i;if(Array.prototype.indexOf)return e.indexOf(n);for(r=0,i=e.length;r<i;r++)if(e[r]===n)return r;return-1},forEach:function(e,n,r){var i,o;if(Array.prototype.forEach)return e.forEach(n,r);for(i=0,o=e.length;i<o;i++)n.call(r,e[i],i,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}}),wt}var Ct,Zt;function Bn(){if(Zt)return Ct;Zt=1;var e=Tr();function n(r,i){r=e.trimRight(r),r[r.length-1]!==";"&&(r+=";");var o=r.length,t=!1,l=0,u=0,m="";function h(){if(!t){var c=e.trim(r.slice(l,u)),f=c.indexOf(":");if(f!==-1){var b=e.trim(c.slice(0,f)),y=e.trim(c.slice(f+1));if(b){var T=i(l,m.length,b,y,c);T&&(m+=T+"; ")}}}l=u+1}for(;u<o;u++){var p=r[u];if(p==="/"&&r[u+1]==="*"){var s=r.indexOf("*/",u+2);if(s===-1)break;u=s+1,l=u+1,t=!1}else p==="("?t=!0:p===")"?t=!1:p===";"?t||h():p===` `&&h()}return e.trim(m)}return Ct=n,Ct}var _t,Xt;function Vn(){if(Xt)return _t;Xt=1;var e=kr(),n=Bn();Tr();function r(t){return t==null}function i(t){var l={};for(var u in t)l[u]=t[u];return l}function o(t){t=i(t||{}),t.whiteList=t.whiteList||e.whiteList,t.onAttr=t.onAttr||e.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||e.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||e.safeAttrValue,this.options=t}return o.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var l=this,u=l.options,m=u.whiteList,h=u.onAttr,p=u.onIgnoreAttr,s=u.safeAttrValue,c=n(t,function(f,b,y,T,v){var g=m[y],C=!1;if(g===!0?C=g:typeof g=="function"?C=g(T):g instanceof RegExp&&(C=g.test(T)),C!==!0&&(C=!1),T=s(y,T),!!T){var S={position:b,sourcePosition:f,source:v,isWhite:C};if(C){var M=h(y,T,S);return r(M)?y+":"+T:M}else{var M=p(y,T,S);if(!r(M))return M}}});return c},_t=o,_t}var Yt;function Lt(){return Yt||(Yt=1,(function(e,n){var r=kr(),i=Vn();function o(l,u){var m=new i(u);return m.process(l)}n=e.exports=o,n.FilterCSS=i;for(var t in r)n[t]=r[t];typeof window<"u"&&(window.filterCSS=e.exports)})(ut,ut.exports)),ut.exports}var kt,Jt;function jt(){return Jt||(Jt=1,kt={indexOf:function(e,n){var r,i;if(Array.prototype.indexOf)return e.indexOf(n);for(r=0,i=e.length;r<i;r++)if(e[r]===n)return r;return-1},forEach:function(e,n,r){var i,o;if(Array.prototype.forEach)return e.forEach(n,r);for(i=0,o=e.length;i<o;i++)n.call(r,e[i],i,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var n=/\s|\n|\t/,r=n.exec(e);return r?r.index:-1}}),kt}var Qt;function Sr(){if(Qt)return ce;Qt=1;var e=Lt().FilterCSS,n=Lt().getDefaultWhiteList,r=jt();function i(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var o=new e;function t(x,k,w){}function l(x,k,w){}function u(x,k,w){}function m(x,k,w){}function h(x){return x.replace(s,"&lt;").replace(c,"&gt;")}function p(x,k,w,L){if(w=E(w),k==="href"||k==="src"){if(w=r.trim(w),w==="#")return"#";if(!(w.substr(0,7)==="http://"||w.substr(0,8)==="https://"||w.substr(0,7)==="mailto:"||w.substr(0,4)==="tel:"||w.substr(0,11)==="data:image/"||w.substr(0,6)==="ftp://"||w.substr(0,2)==="./"||w.substr(0,3)==="../"||w[0]==="#"||w[0]==="/"))return""}else if(k==="background"){if(g.lastIndex=0,g.test(w))return""}else if(k==="style"){if(C.lastIndex=0,C.test(w)||(S.lastIndex=0,S.test(w)&&(g.lastIndex=0,g.test(w))))return"";L!==!1&&(L=L||o,w=L.process(w))}return w=N(w),w}var s=/</g,c=/>/g,f=/"/g,b=/&quot;/g,y=/&#([a-zA-Z0-9]*);?/gim,T=/&colon;?/gim,v=/&newline;?/gim,g=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,C=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,S=/u\s*r\s*l\s*\(.*/gi;function M(x){return x.replace(f,"&quot;")}function A(x){return x.replace(b,'"')}function O(x){return x.replace(y,function(w,L){return L[0]==="x"||L[0]==="X"?String.fromCharCode(parseInt(L.substr(1),16)):String.fromCharCode(parseInt(L,10))})}function I(x){return x.replace(T,":").replace(v," ")}function F(x){for(var k="",w=0,L=x.length;w<L;w++)k+=x.charCodeAt(w)<32?" ":x.charAt(w);return r.trim(k)}function E(x){return x=A(x),x=O(x),x=I(x),x=F(x),x}function N(x){return x=M(x),x=h(x),x}function j(){return""}function V(x,k){typeof k!="function"&&(k=function(){});var w=!Array.isArray(x);function L(P){return w?!0:r.indexOf(x,P)!==-1}var D=[],$=!1;return{onIgnoreTag:function(P,Z,W){if(L(P))if(W.isClosing){var U="[/removed]",R=W.position+U.length;return D.push([$!==!1?$:W.position,R]),$=!1,U}else return $||($=W.position),"[removed]";else return k(P,Z,W)},remove:function(P){var Z="",W=0;return r.forEach(D,function(U){Z+=P.slice(W,U[0]),W=U[1]}),Z+=P.slice(W),Z}}}function _(x){for(var k="",w=0;w<x.length;){var L=x.indexOf("<!--",w);if(L===-1){k+=x.slice(w);break}k+=x.slice(w,L);var D=x.indexOf("-->",L);if(D===-1)break;w=D+3}return k}function z(x){var k=x.split("");return k=k.filter(function(w){var L=w.charCodeAt(0);return L===127?!1:L<=31?L===10||L===13:!0}),k.join("")}return ce.whiteList=i(),ce.getDefaultWhiteList=i,ce.onTag=t,ce.onIgnoreTag=l,ce.onTagAttr=u,ce.onIgnoreTagAttr=m,ce.safeAttrValue=p,ce.escapeHtml=h,ce.escapeQuote=M,ce.unescapeQuote=A,ce.escapeHtmlEntities=O,ce.escapeDangerHtml5Entities=I,ce.clearNonPrintableCharacter=F,ce.friendlyAttrValue=E,ce.escapeAttrValue=N,ce.onIgnoreTagStripAll=j,ce.StripTagBody=V,ce.stripCommentTag=_,ce.stripBlankChar=z,ce.attributeWrapSign='"',ce.cssFilter=o,ce.getDefaultCSSWhiteList=n,ce}var dt={},er;function zr(){if(er)return dt;er=1;var e=jt();function n(s){var c=e.spaceIndex(s),f;return c===-1?f=s.slice(1,-1):f=s.slice(1,c+1),f=e.trim(f).toLowerCase(),f.slice(0,1)==="/"&&(f=f.slice(1)),f.slice(-1)==="/"&&(f=f.slice(0,-1)),f}function r(s){return s.slice(0,2)==="</"}function i(s,c,f){var b="",y=0,T=!1,v=!1,g=0,C=s.length,S="",M="";e:for(g=0;g<C;g++){var A=s.charAt(g);if(T===!1){if(A==="<"){T=g;continue}}else if(v===!1){if(A==="<"){b+=f(s.slice(y,g)),T=g,y=g;continue}if(A===">"||g===C-1){b+=f(s.slice(y,T)),M=s.slice(T,g+1),S=n(M),b+=c(T,b.length,S,M,r(M)),y=g+1,T=!1;continue}if(A==='"'||A==="'")for(var O=1,I=s.charAt(g-O);I.trim()===""||I==="=";){if(I==="="){v=A;continue e}I=s.charAt(g-++O)}}else if(A===v){v=!1;continue}}return y<C&&(b+=f(s.substr(y))),b}var o=/[^a-zA-Z0-9\\_:.-]/gim;function t(s,c){var f=0,b=0,y=[],T=!1,v=s.length;function g(O,I){if(O=e.trim(O),O=O.replace(o,"").toLowerCase(),!(O.length<1)){var F=c(O,I||"");F&&y.push(F)}}for(var C=0;C<v;C++){var S=s.charAt(C),M,A;if(T===!1&&S==="="){T=s.slice(f,C),f=C+1,b=s.charAt(f)==='"'||s.charAt(f)==="'"?f:u(s,C+1);continue}if(T!==!1&&C===b){if(A=s.indexOf(S,C+1),A===-1)break;M=e.trim(s.slice(b+1,A)),g(T,M),T=!1,C=A,f=C+1;continue}if(/\s|\n|\t/.test(S))if(s=s.replace(/\s|\n|\t/g," "),T===!1)if(A=l(s,C),A===-1){M=e.trim(s.slice(f,C)),g(M),T=!1,f=C+1;continue}else{C=A-1;continue}else if(A=m(s,C-1),A===-1){M=e.trim(s.slice(f,C)),M=p(M),g(T,M),T=!1,f=C+1;continue}else continue}return f<s.length&&(T===!1?g(s.slice(f)):g(T,p(e.trim(s.slice(f))))),e.trim(y.join(" "))}function l(s,c){for(;c<s.length;c++){var f=s[c];if(f!==" ")return f==="="?c:-1}}function u(s,c){for(;c<s.length;c++){var f=s[c];if(f!==" ")return f==="'"||f==='"'?c:-1}}function m(s,c){for(;c>0;c--){var f=s[c];if(f!==" ")return f==="="?c:-1}}function h(s){return s[0]==='"'&&s[s.length-1]==='"'||s[0]==="'"&&s[s.length-1]==="'"}function p(s){return h(s)?s.substr(1,s.length-2):s}return dt.parseTag=i,dt.parseAttr=t,dt}var Tt,tr;function Pn(){if(tr)return Tt;tr=1;var e=Lt().FilterCSS,n=Sr(),r=zr(),i=r.parseTag,o=r.parseAttr,t=jt();function l(s){return s==null}function u(s){var c=t.spaceIndex(s);if(c===-1)return{html:"",closing:s[s.length-2]==="/"};s=t.trim(s.slice(c+1,-1));var f=s[s.length-1]==="/";return f&&(s=t.trim(s.slice(0,-1))),{html:s,closing:f}}function m(s){var c={};for(var f in s)c[f]=s[f];return c}function h(s){var c={};for(var f in s)Array.isArray(s[f])?c[f.toLowerCase()]=s[f].map(function(b){return b.toLowerCase()}):c[f.toLowerCase()]=s[f];return c}function p(s){s=m(s||{}),s.stripIgnoreTag&&(s.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),s.onIgnoreTag=n.onIgnoreTagStripAll),s.whiteList||s.allowList?s.whiteList=h(s.whiteList||s.allowList):s.whiteList=n.whiteList,this.attributeWrapSign=s.singleQuotedAttributeValue===!0?"'":n.attributeWrapSign,s.onTag=s.onTag||n.onTag,s.onTagAttr=s.onTagAttr||n.onTagAttr,s.onIgnoreTag=s.onIgnoreTag||n.onIgnoreTag,s.onIgnoreTagAttr=s.onIgnoreTagAttr||n.onIgnoreTagAttr,s.safeAttrValue=s.safeAttrValue||n.safeAttrValue,s.escapeHtml=s.escapeHtml||n.escapeHtml,this.options=s,s.css===!1?this.cssFilter=!1:(s.css=s.css||{},this.cssFilter=new e(s.css))}return p.prototype.process=function(s){if(s=s||"",s=s.toString(),!s)return"";var c=this,f=c.options,b=f.whiteList,y=f.onTag,T=f.onIgnoreTag,v=f.onTagAttr,g=f.onIgnoreTagAttr,C=f.safeAttrValue,S=f.escapeHtml,M=c.attributeWrapSign,A=c.cssFilter;f.stripBlankChar&&(s=n.stripBlankChar(s)),f.allowCommentTag||(s=n.stripCommentTag(s));var O=!1;f.stripIgnoreTagBody&&(O=n.StripTagBody(f.stripIgnoreTagBody,T),T=O.onIgnoreTag);var I=i(s,function(F,E,N,j,V){var _={sourcePosition:F,position:E,isClosing:V,isWhite:Object.prototype.hasOwnProperty.call(b,N)},z=y(N,j,_);if(!l(z))return z;if(_.isWhite){if(_.isClosing)return"</"+N+">";var x=u(j),k=b[N],w=o(x.html,function(L,D){var $=t.indexOf(k,L)!==-1,P=v(N,L,D,$);return l(P)?$?(D=C(N,L,D,A),D?L+"="+M+D+M:L):(P=g(N,L,D,$),l(P)?void 0:P):P});return j="<"+N,w&&(j+=" "+w),x.closing&&(j+=" /"),j+=">",j}else return z=T(N,j,_),l(z)?S(j):z},S);return O&&(I=O.remove(I)),I},Tt=p,Tt}var rr;function Wn(){return rr||(rr=1,(function(e,n){var r=Sr(),i=zr(),o=Pn();function t(u,m){var h=new o(m);return h.process(u)}n=e.exports=t,n.filterXSS=t,n.FilterXSS=o,(function(){for(var u in r)n[u]=r[u];for(var m in i)n[m]=i[m]})(),typeof window<"u"&&(window.filterXSS=e.exports);function l(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}l()&&(self.filterXSS=e.exports)})(ct,ct.exports)),ct.exports}var Gn=Wn();const Et=Ot(Gn),Ar={cardBgColor:"#ffffff",cardDetailsBackGround:"#ffffff",cardDetailsColor:"#004980",cardMediaBgColor:"#f8fafc",cardSubtitleColor:"#0061b3",cardTitleColor:"#0079e6",detailsColor:"#004980",iconBackgroundColor:"#0079e6",nestedCardBgColor:"#f8fafc",nestedCardDetailsBackGround:"#f8fafc",nestedCardDetailsColor:"#004980",nestedCardSubtitleColor:"#0061b3",nestedCardTitleColor:"#00314d",primary:"#0079e6",secondary:"#ffdf00",titleColor:"#0079e6",titleColorActive:"#0079e6",toolbarBgColor:"#f1f5f9",toolbarBtnBgColor:"#ffffff",toolbarTextColor:"#00314d",timelineBgColor:"#ffffff",iconColor:"#0079e6",buttonHoverBgColor:"#e6f1ff",buttonActiveBgColor:"#0079e6",buttonActiveIconColor:"#ffffff",buttonBorderColor:"#b3d9ff",buttonHoverBorderColor:"#0079e6",buttonActiveBorderColor:"#0079e6",shadowColor:"rgba(0, 121, 230, 0.1)",glowColor:"rgba(0, 121, 230, 0.2)",searchHighlightColor:"rgba(0, 121, 230, 0.2)",darkToggleActiveBgColor:"#0079e6",darkToggleActiveIconColor:"#ffffff",darkToggleActiveBorderColor:"#0079e6",darkToggleGlowColor:"rgba(0, 121, 230, 0.2)"},Un={cardBgColor:"#1f2937",cardDetailsBackGround:"#1f2937",cardDetailsColor:"#f3f4f6",cardMediaBgColor:"#111827",cardSubtitleColor:"#d1d5db",cardTitleColor:"#60a5fa",detailsColor:"#f3f4f6",iconBackgroundColor:"#3b82f6",nestedCardBgColor:"#111827",nestedCardDetailsBackGround:"#111827",nestedCardDetailsColor:"#f3f4f6",nestedCardSubtitleColor:"#d1d5db",nestedCardTitleColor:"#f9fafb",primary:"#3b82f6",secondary:"#fbbf24",titleColor:"#60a5fa",titleColorActive:"#60a5fa",toolbarBgColor:"#111827",toolbarBtnBgColor:"#374151",toolbarTextColor:"#f3f4f6",timelineBgColor:"#111827",iconColor:"#93c5fd",buttonHoverBgColor:"#4b5563",buttonActiveBgColor:"#fbbf24",buttonActiveIconColor:"#1f2937",buttonBorderColor:"rgba(255, 255, 255, 0.1)",buttonHoverBorderColor:"#3b82f6",buttonActiveBorderColor:"#3b82f6",shadowColor:"rgba(0, 0, 0, 0.4)",glowColor:"rgba(59, 130, 246, 0.4)",searchHighlightColor:"rgba(96, 165, 250, 0.4)",darkToggleActiveBgColor:"#1e40af",darkToggleActiveIconColor:"#e2e8f0",darkToggleActiveBorderColor:"#3b82f6",darkToggleGlowColor:"rgba(59, 130, 246, 0.4)"},Kn=Object.freeze({card:"rc-card",cardMedia:"rc-card-media",cardSubTitle:"rc-card-subtitle",cardText:"rc-card-text",cardTitle:"rc-card-title",controls:"rc-controls",title:"rc-title"}),Zn=Object.freeze({changeDensity:"Change density",changeDensityOptions:Object.freeze({high:Object.freeze({helpText:"Show more items at once",text:"High"}),low:Object.freeze({helpText:"Show fewer items at once",text:"Low"})}),changeLayout:"Change layout",changeLayoutOptions:Object.freeze({alternating:Object.freeze({helpText:"Show cards in a vertical layout with alternating fashion",text:"Alternating"}),horizontal:Object.freeze({helpText:"Show cards in a horizontal layout",text:"Horizontal"}),horizontal_all:Object.freeze({helpText:"Show all cards in a horizontal layout",text:"Show all cards"}),vertical:Object.freeze({helpText:"Show cards in a vertical layout",text:"Vertical"})}),dark:"Switch to Dark Mode",first:"Go to First",jumpTo:"Jump to",last:"Go to Last",light:"Switch to Light Mode",next:"Next",play:"Play Slideshow",previous:"Previous",stop:"Stop Slideshow",searchPlaceholder:"Search Timeline",searchAriaLabel:"Search timeline content",clearSearch:"Clear Search",previousMatch:"Previous Match",nextMatch:"Next Match",timelinePoint:"Timeline point"}),Xn=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/,ft="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",Yn=7,Dt=(e,n)=>{if(typeof e!="string"||typeof n!="number")return`rgba(0, 0, 0, ${Math.max(0,Math.min(1,n||0))})`;if(!Xn.test(e))return console.warn("Invalid hex color provided:",e),`rgba(0, 0, 0, ${Math.max(0,Math.min(1,n))})`;let r=e;e.length===4&&(r="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const i=parseInt(r.slice(1),16),o=i>>16&255,t=i>>8&255,l=i&255,u=Math.max(0,Math.min(1,n));return`rgba(${o}, ${t}, ${l}, ${u})`},Jn=e=>e?Un:Ar,Qn=()=>Kn,ea=()=>Zn,ta=e=>{switch(e){case"VERTICAL_ALTERNATING":return"slide_from_sides";case"HORIZONTAL":case"VERTICAL":default:return"reveal"}},Je=()=>{if(typeof window<"u"&&window.crypto?.getRandomValues)try{const o=new Uint8Array(Yn);return window.crypto.getRandomValues(o),Array.from(o,t=>ft[t%ft.length]).join("")}catch(o){console.error("Error generating unique ID:",o)}const e=Date.now().toString(36),n=typeof performance<"u"&&performance.now?performance.now().toString().replace(".",""):Date.now().toString(),r=parseInt(n.slice(-6),10),i=Array.from({length:8},(o,t)=>{const m=Math.pow(2,32),h=(1664525*(r+t)+1013904223)%m;return ft[h%ft.length]}).join("");return`id-${e}-${i}`};function ra(e){return/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e)}function nr(e){try{return new URL(e),!0}catch{return!1}}function na(e){const n=[];!e.items||!Array.isArray(e.items)?n.push({path:["items"],message:"Items must be an array"}):e.items.length===0?n.push({path:["items"],message:"At least one timeline item is required"}):e.items.forEach((t,l)=>{t.url&&typeof t.url=="string"&&!nr(t.url)&&n.push({path:["items",l.toString(),"url"],message:"Invalid URL format"}),t.media?.source?.url&&!nr(t.media.source.url)&&n.push({path:["items",l.toString(),"media","source","url"],message:"Invalid media URL format"})});const r=["VERTICAL","HORIZONTAL","VERTICAL_ALTERNATING"];return e.mode&&!r.includes(e.mode)&&n.push({path:["mode"],message:`Mode must be one of: ${r.join(", ")}`}),["cardHeight","cardWidth","itemWidth","lineWidth","slideItemDuration","activeItemIndex"].forEach(t=>{const l=e[t];l!==void 0&&(typeof l!="number"||l<0)&&n.push({path:[t],message:`${t} must be a positive number`})}),e.theme&&typeof e.theme=="object"&&["primary","secondary","cardBgColor","cardForeColor","titleColor","titleColorActive"].forEach(l=>{const u=e.theme[l];u&&typeof u=="string"&&!ra(u)&&n.push({path:["theme",l],message:`${l} must be a valid hex color (e.g., #ff0000 or #f00)`})}),["slideShow","flipLayout","cardLess","hideControls","disableNavOnKey"].forEach(t=>{const l=e[t];l!==void 0&&typeof l!="boolean"&&n.push({path:[t],message:`${t} must be a boolean`})}),n}function aa(e){const n=na(e);return n.length===0?{success:!0,data:e}:{success:!1,errors:n}}var ht={exports:{}},ia=ht.exports,ar;function oa(){return ar||(ar=1,(function(e,n){(function(r,i){e.exports=i()})(ia,(function(){var r=1e3,i=6e4,o=36e5,t="millisecond",l="second",u="minute",m="hour",h="day",p="week",s="month",c="quarter",f="year",b="date",y="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var z=["th","st","nd","rd"],x=_%100;return"["+_+(z[(x-20)%10]||z[x]||z[0])+"]"}},C=function(_,z,x){var k=String(_);return!k||k.length>=z?_:""+Array(z+1-k.length).join(x)+_},S={s:C,z:function(_){var z=-_.utcOffset(),x=Math.abs(z),k=Math.floor(x/60),w=x%60;return(z<=0?"+":"-")+C(k,2,"0")+":"+C(w,2,"0")},m:function _(z,x){if(z.date()<x.date())return-_(x,z);var k=12*(x.year()-z.year())+(x.month()-z.month()),w=z.clone().add(k,s),L=x-w<0,D=z.clone().add(k+(L?-1:1),s);return+(-(k+(x-w)/(L?w-D:D-w))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:s,y:f,w:p,d:h,D:b,h:m,m:u,s:l,ms:t,Q:c}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},M="en",A={};A[M]=g;var O="$isDayjsObject",I=function(_){return _ instanceof j||!(!_||!_[O])},F=function _(z,x,k){var w;if(!z)return M;if(typeof z=="string"){var L=z.toLowerCase();A[L]&&(w=L),x&&(A[L]=x,w=L);var D=z.split("-");if(!w&&D.length>1)return _(D[0])}else{var $=z.name;A[$]=z,w=$}return!k&&w&&(M=w),w||!k&&M},E=function(_,z){if(I(_))return _.clone();var x=typeof z=="object"?z:{};return x.date=_,x.args=arguments,new j(x)},N=S;N.l=F,N.i=I,N.w=function(_,z){return E(_,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var j=(function(){function _(x){this.$L=F(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[O]=!0}var z=_.prototype;return z.parse=function(x){this.$d=(function(k){var w=k.date,L=k.utc;if(w===null)return new Date(NaN);if(N.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var D=w.match(T);if(D){var $=D[2]-1||0,P=(D[7]||"0").substring(0,3);return L?new Date(Date.UTC(D[1],$,D[3]||1,D[4]||0,D[5]||0,D[6]||0,P)):new Date(D[1],$,D[3]||1,D[4]||0,D[5]||0,D[6]||0,P)}}return new Date(w)})(x),this.init()},z.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},z.$utils=function(){return N},z.isValid=function(){return this.$d.toString()!==y},z.isSame=function(x,k){var w=E(x);return this.startOf(k)<=w&&w<=this.endOf(k)},z.isAfter=function(x,k){return E(x)<this.startOf(k)},z.isBefore=function(x,k){return this.endOf(k)<E(x)},z.$g=function(x,k,w){return N.u(x)?this[k]:this.set(w,x)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function(x,k){var w=this,L=!!N.u(k)||k,D=N.p(x),$=function(Q,Y){var te=N.w(w.$u?Date.UTC(w.$y,Y,Q):new Date(w.$y,Y,Q),w);return L?te:te.endOf(h)},P=function(Q,Y){return N.w(w.toDate()[Q].apply(w.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(Y)),w)},Z=this.$W,W=this.$M,U=this.$D,R="set"+(this.$u?"UTC":"");switch(D){case f:return L?$(1,0):$(31,11);case s:return L?$(1,W):$(0,W+1);case p:var H=this.$locale().weekStart||0,G=(Z<H?Z+7:Z)-H;return $(L?U-G:U+(6-G),W);case h:case b:return P(R+"Hours",0);case m:return P(R+"Minutes",1);case u:return P(R+"Seconds",2);case l:return P(R+"Milliseconds",3);default:return this.clone()}},z.endOf=function(x){return this.startOf(x,!1)},z.$set=function(x,k){var w,L=N.p(x),D="set"+(this.$u?"UTC":""),$=(w={},w[h]=D+"Date",w[b]=D+"Date",w[s]=D+"Month",w[f]=D+"FullYear",w[m]=D+"Hours",w[u]=D+"Minutes",w[l]=D+"Seconds",w[t]=D+"Milliseconds",w)[L],P=L===h?this.$D+(k-this.$W):k;if(L===s||L===f){var Z=this.clone().set(b,1);Z.$d[$](P),Z.init(),this.$d=Z.set(b,Math.min(this.$D,Z.daysInMonth())).$d}else $&&this.$d[$](P);return this.init(),this},z.set=function(x,k){return this.clone().$set(x,k)},z.get=function(x){return this[N.p(x)]()},z.add=function(x,k){var w,L=this;x=Number(x);var D=N.p(k),$=function(W){var U=E(L);return N.w(U.date(U.date()+Math.round(W*x)),L)};if(D===s)return this.set(s,this.$M+x);if(D===f)return this.set(f,this.$y+x);if(D===h)return $(1);if(D===p)return $(7);var P=(w={},w[u]=i,w[m]=o,w[l]=r,w)[D]||1,Z=this.$d.getTime()+x*P;return N.w(Z,this)},z.subtract=function(x,k){return this.add(-1*x,k)},z.format=function(x){var k=this,w=this.$locale();if(!this.isValid())return w.invalidDate||y;var L=x||"YYYY-MM-DDTHH:mm:ssZ",D=N.z(this),$=this.$H,P=this.$m,Z=this.$M,W=w.weekdays,U=w.months,R=w.meridiem,H=function(Y,te,X,ne){return Y&&(Y[te]||Y(k,L))||X[te].slice(0,ne)},G=function(Y){return N.s($%12||12,Y,"0")},Q=R||function(Y,te,X){var ne=Y<12?"AM":"PM";return X?ne.toLowerCase():ne};return L.replace(v,(function(Y,te){return te||(function(X){switch(X){case"YY":return String(k.$y).slice(-2);case"YYYY":return N.s(k.$y,4,"0");case"M":return Z+1;case"MM":return N.s(Z+1,2,"0");case"MMM":return H(w.monthsShort,Z,U,3);case"MMMM":return H(U,Z);case"D":return k.$D;case"DD":return N.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return H(w.weekdaysMin,k.$W,W,2);case"ddd":return H(w.weekdaysShort,k.$W,W,3);case"dddd":return W[k.$W];case"H":return String($);case"HH":return N.s($,2,"0");case"h":return G(1);case"hh":return G(2);case"a":return Q($,P,!0);case"A":return Q($,P,!1);case"m":return String(P);case"mm":return N.s(P,2,"0");case"s":return String(k.$s);case"ss":return N.s(k.$s,2,"0");case"SSS":return N.s(k.$ms,3,"0");case"Z":return D}return null})(Y)||D.replace(":","")}))},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function(x,k,w){var L,D=this,$=N.p(k),P=E(x),Z=(P.utcOffset()-this.utcOffset())*i,W=this-P,U=function(){return N.m(D,P)};switch($){case f:L=U()/12;break;case s:L=U();break;case c:L=U()/3;break;case p:L=(W-Z)/6048e5;break;case h:L=(W-Z)/864e5;break;case m:L=W/o;break;case u:L=W/i;break;case l:L=W/r;break;default:L=W}return w?L:N.a(L)},z.daysInMonth=function(){return this.endOf(s).$D},z.$locale=function(){return A[this.$L]},z.locale=function(x,k){if(!x)return this.$L;var w=this.clone(),L=F(x,k,!0);return L&&(w.$L=L),w},z.clone=function(){return N.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},_})(),V=j.prototype;return E.prototype=V,[["$ms",t],["$s",l],["$m",u],["$H",m],["$W",h],["$M",s],["$y",f],["$D",b]].forEach((function(_){V[_[1]]=function(z){return this.$g(z,_[0],_[1])}})),E.extend=function(_,z){return _.$i||(_(z,j,E),_.$i=!0),E},E.locale=F,E.isDayjs=I,E.unix=function(_){return E(1e3*_)},E.en=A[M],E.Ls=A,E.p={},E}))})(ht)),ht.exports}var sa=oa();const St=Ot(sa);function la(e,n,r,i){var o=this,t=a.useRef(null),l=a.useRef(0),u=a.useRef(0),m=a.useRef(null),h=a.useRef([]),p=a.useRef(),s=a.useRef(),c=a.useRef(e),f=a.useRef(!0);c.current=e;var b=typeof window<"u",y=!n&&n!==0&&b;if(typeof e!="function")throw new TypeError("Expected a function");n=+n||0;var T=!!(r=r||{}).leading,v=!("trailing"in r)||!!r.trailing,g="maxWait"in r,C="debounceOnServer"in r&&!!r.debounceOnServer,S=g?Math.max(+r.maxWait||0,n):null;a.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var M=a.useMemo(function(){var A=function(j){var V=h.current,_=p.current;return h.current=p.current=null,l.current=j,u.current=u.current||j,s.current=c.current.apply(_,V)},O=function(j,V){y&&cancelAnimationFrame(m.current),m.current=y?requestAnimationFrame(j):setTimeout(j,V)},I=function(j){if(!f.current)return!1;var V=j-t.current;return!t.current||V>=n||V<0||g&&j-l.current>=S},F=function(j){return m.current=null,v&&h.current?A(j):(h.current=p.current=null,s.current)},E=function j(){var V=Date.now();if(I(V))return F(V);if(f.current){var _=n-(V-t.current),z=g?Math.min(_,S-(V-l.current)):_;O(j,z)}},N=function(){if(b||C){var j=Date.now(),V=I(j);if(h.current=[].slice.call(arguments),p.current=o,t.current=j,V){if(!m.current&&f.current)return l.current=t.current,O(E,n),T?A(t.current):s.current;if(g)return O(E,n),A(t.current)}return m.current||O(E,n),s.current}};return N.cancel=function(){var j=m.current;j&&(y?cancelAnimationFrame(m.current):clearTimeout(m.current)),l.current=0,h.current=t.current=p.current=m.current=null},N.isPending=function(){return!!m.current},N.flush=function(){return m.current?F(Date.now()):s.current},N},[T,g,n,S,v,y,b,C,i]);return M}function ca(e){if(typeof window>"u")return null;try{return window.matchMedia(e)}catch(n){return console.error("Error creating media query:",n),null}}function ua(e,n,r){if(!(!e||typeof window>"u"))try{e.addEventListener("change",n),window.addEventListener("resize",r)}catch(i){console.error("Error adding media listeners:",i)}}function ir(e,n,r){if(!(typeof window>"u"))try{e&&e.removeEventListener("change",n),window.removeEventListener("resize",r)}catch(i){console.error("Error removing media listeners:",i)}}const or=(e,{onMatch:n,enabled:r=!0,debounceDelay:i=100}={})=>{const[o,t]=a.useState(!1),l=a.useRef(null),u=a.useRef(!1),m=a.useCallback(s=>{u.current||t(s.matches)},[]),h=la(()=>{if(!l.current||u.current)return;const s=l.current.matches;t(s)},i,{maxWait:1e3});a.useEffect(()=>{if(!r||typeof window>"u")return;u.current=!1,l.current&&ir(l.current,m,h),l.current=ca(e);const s=l.current;if(s)return m(s),ua(s,m,h),()=>{u.current=!0,s&&ir(s,m,h),h.cancel(),l.current=null}},[e,r,m,h]);const p=a.useRef(n);return p.current=n,a.useEffect(()=>{o&&p.current&&p.current()},[o]),o},we={navigation:{first:"Go to first item",last:"Go to last item",next:"Next item",previous:"Previous item",play:"Start slideshow",stop:"Stop slideshow",pause:"Pause slideshow",resume:"Resume slideshow"},search:{placeholder:"Search Timeline",ariaLabel:"Search timeline content",clearLabel:"Clear Search",nextMatch:"Next Match (Enter)",previousMatch:"Previous Match (Shift+Enter)",resultsCount:"{current} of {total}",noResults:"No results found",navigationLabel:"Search navigation"},theme:{darkMode:"Switch to dark mode",lightMode:"Switch to light mode",toggleTheme:"Toggle theme"},layout:{vertical:"Vertical layout",horizontal:"Horizontal layout",alternating:"Alternating layout",horizontalAll:"Horizontal all layout",switchLayout:"Switch layout",layoutSelection:"Layout selection"},fullscreen:{enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",notSupported:"Fullscreen not supported",errorMessage:"Failed to enter fullscreen mode"},quickJump:{jumpTo:"Jump to item",jumpToAriaLabel:"Quick navigation to timeline items",itemTemplate:"{index}: {title}"},content:{readMore:"Read More",showLess:"Show Less",expand:"Expand",collapse:"Collapse",cardInteraction:"Timeline card content"},status:{loading:"Loading timeline...",error:"Error loading timeline",noItems:"No timeline items available",empty:"Timeline is empty"},accessibility:{timelineNavigation:"Timeline Navigation",timelineContainer:"Timeline Container",timelineItem:"Timeline Item",activeItem:"Active Timeline Item",timelinePoint:"Timeline Point",timelineCard:"Timeline Card",nestedItems:"Nested Timeline Items",itemPosition:"Item {current} of {total}"},view:{compact:"Compact view",detailed:"Detailed view",toggleDensity:"Toggle view density",densitySelection:"View density selection"},keyboard:{arrowKeys:"Use arrow keys to navigate between items",homeKey:"Press Home to go to first item",endKey:"Press End to go to last item",enterKey:"Press Enter to select item",escapeKey:"Press Escape to exit fullscreen or pause slideshow",tabNavigation:"Use Tab to navigate controls",keyboardHelp:"Keyboard navigation available"}};function da(e){return e?{navigation:{...we.navigation,...e.navigation},search:{...we.search,...e.search},theme:{...we.theme,...e.theme},layout:{...we.layout,...e.layout},fullscreen:{...we.fullscreen,...e.fullscreen},quickJump:{...we.quickJump,...e.quickJump},content:{...we.content,...e.content},status:{...we.status,...e.status},accessibility:{...we.accessibility,...e.accessibility},view:{...we.view,...e.view},keyboard:{...we.keyboard,...e.keyboard}}:we}function fa(e,n){return e.replace(/\{(\w+)\}/g,(r,i)=>{const o=n[i];return o!=null?o.toString():r})}function ma(e){const n=a.useMemo(()=>da(e),[e]),r=a.useMemo(()=>(b,y,T)=>{const v=n[b][y];return v?T?fa(v,T):v:""},[n]),i=a.useMemo(()=>({first:()=>r("navigation","first"),last:()=>r("navigation","last"),next:()=>r("navigation","next"),previous:()=>r("navigation","previous"),play:()=>r("navigation","play"),stop:()=>r("navigation","stop"),pause:()=>r("navigation","pause"),resume:()=>r("navigation","resume")}),[r]),o=a.useMemo(()=>({placeholder:()=>r("search","placeholder"),ariaLabel:()=>r("search","ariaLabel"),clearLabel:()=>r("search","clearLabel"),nextMatch:()=>r("search","nextMatch"),previousMatch:()=>r("search","previousMatch"),resultsCount:(b,y)=>r("search","resultsCount",{current:b,total:y}),noResults:()=>r("search","noResults"),navigationLabel:()=>r("search","navigationLabel")}),[r]),t=a.useMemo(()=>({darkMode:()=>r("theme","darkMode"),lightMode:()=>r("theme","lightMode"),toggleTheme:()=>r("theme","toggleTheme")}),[r]),l=a.useMemo(()=>({vertical:()=>r("layout","vertical"),horizontal:()=>r("layout","horizontal"),alternating:()=>r("layout","alternating"),horizontalAll:()=>r("layout","horizontalAll"),switchLayout:()=>r("layout","switchLayout"),layoutSelection:()=>r("layout","layoutSelection")}),[r]),u=a.useMemo(()=>({enterFullscreen:()=>r("fullscreen","enterFullscreen"),exitFullscreen:()=>r("fullscreen","exitFullscreen"),notSupported:()=>r("fullscreen","notSupported"),errorMessage:()=>r("fullscreen","errorMessage")}),[r]),m=a.useMemo(()=>({jumpTo:()=>r("quickJump","jumpTo"),jumpToAriaLabel:()=>r("quickJump","jumpToAriaLabel"),itemTemplate:(b,y)=>r("quickJump","itemTemplate",{index:b,title:y})}),[r]),h=a.useMemo(()=>({readMore:()=>r("content","readMore"),showLess:()=>r("content","showLess"),expand:()=>r("content","expand"),collapse:()=>r("content","collapse"),cardInteraction:()=>r("content","cardInteraction")}),[r]),p=a.useMemo(()=>({loading:()=>r("status","loading"),error:()=>r("status","error"),noItems:()=>r("status","noItems"),empty:()=>r("status","empty")}),[r]),s=a.useMemo(()=>({timelineNavigation:()=>r("accessibility","timelineNavigation"),timelineContainer:()=>r("accessibility","timelineContainer"),timelineItem:()=>r("accessibility","timelineItem"),activeItem:()=>r("accessibility","activeItem"),timelinePoint:()=>r("accessibility","timelinePoint"),timelineCard:()=>r("accessibility","timelineCard"),nestedItems:()=>r("accessibility","nestedItems"),itemPosition:(b,y)=>r("accessibility","itemPosition",{current:b,total:y})}),[r]),c=a.useMemo(()=>({compact:()=>r("view","compact"),detailed:()=>r("view","detailed"),toggleDensity:()=>r("view","toggleDensity"),densitySelection:()=>r("view","densitySelection")}),[r]),f=a.useMemo(()=>({arrowKeys:()=>r("keyboard","arrowKeys"),homeKey:()=>r("keyboard","homeKey"),endKey:()=>r("keyboard","endKey"),enterKey:()=>r("keyboard","enterKey"),escapeKey:()=>r("keyboard","escapeKey"),tabNavigation:()=>r("keyboard","tabNavigation"),keyboardHelp:()=>r("keyboard","keyboardHelp")}),[r]);return{texts:n,getText:r,navigation:i,search:o,theme:t,layout:l,fullscreen:u,quickJump:m,content:h,status:p,accessibility:s,view:c,keyboard:f}}function ha(e,n){const r=(i,o,t)=>{if(i){const l=i();if(l!==void 0)return l}return o!==void 0?o:t};return{firstItem:()=>r(e?.navigation.first,n?.first,"Go to first item"),lastItem:()=>r(e?.navigation.last,n?.last,"Go to last item"),nextItem:()=>r(e?.navigation.next,n?.next,"Next item"),previousItem:()=>r(e?.navigation.previous,n?.previous,"Previous item"),playSlideshow:()=>r(e?.navigation.play,n?.play,"Start slideshow"),stopSlideshow:()=>r(e?.navigation.stop,n?.stop,"Stop slideshow"),pauseSlideshow:()=>r(e?.navigation.pause,void 0,"Pause slideshow"),resumeSlideshow:()=>r(e?.navigation.resume,void 0,"Resume slideshow"),searchPlaceholder:()=>r(e?.search.placeholder,n?.searchPlaceholder,"Search Timeline"),searchAriaLabel:()=>r(e?.search.ariaLabel,n?.searchAriaLabel,"Search timeline content"),clearSearch:()=>r(e?.search.clearLabel,n?.clearSearch,"Clear Search"),nextMatch:()=>r(e?.search.nextMatch,n?.nextMatch,"Next Match (Enter)"),previousMatch:()=>r(e?.search.previousMatch,n?.previousMatch,"Previous Match (Shift+Enter)"),searchResults:(i,o)=>e?.search.resultsCount(i,o)||`${i} of ${o}`,noSearchResults:()=>r(e?.search.noResults,void 0,"No results found"),searchNavigation:()=>r(e?.search.navigationLabel,void 0,"Search navigation"),darkMode:()=>r(e?.theme.darkMode,n?.dark,"Switch to dark mode"),lightMode:()=>r(e?.theme.lightMode,n?.light,"Switch to light mode"),toggleTheme:()=>r(e?.theme.toggleTheme,void 0,"Toggle theme"),verticalLayout:()=>r(e?.layout.vertical,void 0,"Vertical layout"),horizontalLayout:()=>r(e?.layout.horizontal,void 0,"Horizontal layout"),alternatingLayout:()=>r(e?.layout.alternating,void 0,"Alternating layout"),horizontalAllLayout:()=>r(e?.layout.horizontalAll,void 0,"Horizontal all layout"),switchLayout:()=>r(e?.layout.switchLayout,void 0,"Switch layout"),enterFullscreen:()=>r(e?.fullscreen.enterFullscreen,void 0,"Enter fullscreen"),exitFullscreen:()=>r(e?.fullscreen.exitFullscreen,void 0,"Exit fullscreen"),fullscreenNotSupported:()=>r(e?.fullscreen.notSupported,void 0,"Fullscreen not supported"),fullscreenError:()=>r(e?.fullscreen.errorMessage,void 0,"Failed to enter fullscreen mode"),readMore:()=>r(e?.content.readMore,void 0,"Read More"),showLess:()=>r(e?.content.showLess,void 0,"Show Less"),expandContent:()=>r(e?.content.expand,void 0,"Expand"),collapseContent:()=>r(e?.content.collapse,void 0,"Collapse"),timelineNavigation:()=>r(e?.accessibility.timelineNavigation,void 0,"Timeline Navigation"),timelineContainer:()=>r(e?.accessibility.timelineContainer,void 0,"Timeline Container"),timelineItem:()=>r(e?.accessibility.timelineItem,void 0,"Timeline Item"),activeItem:()=>r(e?.accessibility.activeItem,void 0,"Active Timeline Item"),itemPosition:(i,o)=>e?.accessibility.itemPosition(i,o)||`Item ${i} of ${o}`,loading:()=>r(e?.status.loading,void 0,"Loading timeline..."),error:()=>r(e?.status.error,void 0,"Error loading timeline"),noItems:()=>r(e?.status.noItems,void 0,"No timeline items available"),empty:()=>r(e?.status.empty,void 0,"Timeline is empty")}}const Ir=a.createContext(null),va=e=>{const{children:n,mode:r="VERTICAL_ALTERNATING",cardHeight:i=200,cardWidth:o,cardLess:t=!1,flipLayout:l,itemWidth:u=200,lineWidth:m=3,medi