@evercam/ui 1.0.0-preview-cameraPowerSchedule-99037b531 → 1.0.0-preview-cameraPowerSchedule-87f61d3a6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,10 +1,10 @@
1
- (function(G,F){typeof exports=="object"&&typeof module!="undefined"?F(exports,require("vue"),require("hls.js"),require("d3"),require("moment-timezone"),require("remark-gfm"),require("remark-parse"),require("remark-rehype"),require("remark-breaks"),require("rehype-stringify"),require("unist-util-visit"),require("unified"),require("morphdom")):typeof define=="function"&&define.amd?define(["exports","vue","hls.js","d3","moment-timezone","remark-gfm","remark-parse","remark-rehype","remark-breaks","rehype-stringify","unist-util-visit","unified","morphdom"],F):(G=typeof globalThis!="undefined"?globalThis:G||self,F(G.EvercamUI={},G.Vue,G.Hls,G.d3,G.moment,G.remarkGfm,G.remarkParse,G.remarkRehype,G.remarkBreaks,G.rehypeStringify,G.unistUtilVisit,G.unified,G.morphdom))})(this,function(G,F,at,Ns,ke,js,Gs,qs,En,Ws,Us,Zs,Ys){var ys,Cs,bs,xs,ws,Ss,Ts,ks;"use strict";function Xs(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}function Xt(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const O=Xs(Ns);var vt=(t=>(t.Continuous="continuous",t.WorkingHours="workingHours",t.Empty="empty",t.Custom="custom",t))(vt||{}),Mn=(t=>(t.Monday="monday",t.Tuesday="tuesday",t.Wednesday="wednesday",t.Thursday="thursday",t.Friday="friday",t.Saturday="saturday",t.Sunday="sunday",t))(Mn||{}),K=(t=>(t.Dot="dot",t.TwoXs="2xs",t.Xs="xs",t.Sm="sm",t.Md="base",t.Base="base",t.Lg="lg",t.Xl="xl",t.TwoXl="2xl",t.ThreeXl="3xl",t.FourXl="4xl",t.FiveXl="5xl",t.SixXl="6xl",t.SevenXl="7xl",t.EightXl="8xl",t.NineXl="9xl",t))(K||{}),se=(t=>(t.Warning="warning",t.Error="error",t.Info="info",t.Success="success",t.Primary="primary",t.Brand="brand",t.Default="default",t.Gray="gray",t))(se||{}),rt=(t=>(t.Overview="overview",t.Detailed="detailed",t.DetailedBackground="detailedBackground",t))(rt||{}),He=(t=>(t.Bars="bars",t.Dots="dots",t.LineGraph="lineGraph",t.BarChart="barGraph",t.Milestones="milestones",t))(He||{}),_t=(t=>(t.Zoom="zoom",t.AutoPan="autoPan",t.Initial="initial",t))(_t||{}),Ln=(t=>(t.ThreeSixty="360",t.FourEighty="480",t.SevenTwenty="720",t.OneZeroEightZero="1080",t.Auto="auto",t))(Ln||{}),Oe=(t=>(t.Top="top",t.Right="right",t.Bottom="bottom",t.Left="left",t))(Oe||{}),Ye=(t=>(t.System="system",t.Copilot="copilot",t.User="user",t))(Ye||{}),Vt=(t=>(t.Text="text",t.Error="error",t.Json="json",t))(Vt||{}),Qt=(t=>(t.Positive="positive",t.Negative="negative",t))(Qt||{}),nt=(t=>(t.Window="window",t.Curtain="curtain",t.Transparency="transparency",t))(nt||{});const Vs=F.extend({name:"EBadge",props:{text:{type:String,default:""},color:{type:String,default:se.Default},size:{type:String,default:K.Base}},data(){return{colors:{[se.Error]:"e-bg-rose-500 e-text-white",[se.Info]:"e-bg-cyan-500 e-text-white",[se.Warning]:"e-bg-amber-500 e-text-white",[se.Primary]:"e-bg-sky-500 e-text-white",[se.Default]:"e-bg-slate-300 e-text-white",[se.Success]:"e-bg-lime-500 e-text-white"},sizes:{[K.Dot]:"e-w-2 e-h-2",[K.Xs]:"e-w-3 e-h-3",[K.Sm]:"e-w-4 e-h-4",[K.Md]:"e-w-5 e-h-5",[K.Lg]:"e-min-w-[2rem] e-max-w-[4rem] e-px-1 e-h-6 e-text-sm e-font-medium",[K.Xl]:"e-min-w-[3rem] e-max-w-[5rem] e-px-1 e-h-8 e-text-base e-font-medium"}}},computed:{badgeClasses(){const t=this.colors[this.color]||this.colors[se.Default],e=this.sizes[this.size]||this.sizes[K.Md];return["e-flex e-items-center e-justify-center e-rounded-full",t,e]},showText(){return[K.Lg,K.Xl].includes(this.size)}}});function H(t,e,r,n,i,o,s,c){var a=typeof t=="function"?t.options:t;e&&(a.render=e,a.staticRenderFns=r,a._compiled=!0),n&&(a.functional=!0),o&&(a._scopeId="data-v-"+o);var l;if(s?(l=function(m){m=m||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!m&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(m=__VUE_SSR_CONTEXT__),i&&i.call(this,m),m&&m._registeredComponents&&m._registeredComponents.add(s)},a._ssrRegister=l):i&&(l=c?function(){i.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(a.functional){a._injectStyles=l;var d=a.render;a.render=function(b,x){return l.call(x),d(b,x)}}else{var f=a.beforeCreate;a.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:a}}var Qs=function(){var e=this,r=e._self._c;return r("span",{staticClass:"e-badge",class:e.badgeClasses},[e.showText?r("span",[e._v(e._s(e.text))]):e._e()])},Ks=[],Js=H(Vs,Qs,Ks,!1,null,null,null,null);const Kt=Js.exports,ea=F.extend({name:"EAvatar",components:{Badge:Kt},props:{size:{type:String,default:K.Md},showBadge:{type:Boolean,default:!1},badgeColor:{type:String,default:se.Error},badgeText:{type:String,default:""},badgeSize:{type:String,default:K.Md},image:{type:String,default:""},backgroundClasses:{type:String,default:"e-bg-gradient-to-r e-from-purple-500 e-to-indigo-500"}},data(){return{sizes:{[K.TwoXs]:"e-w-6 e-h-6 e-text-xs",[K.Xs]:"e-w-8 e-h-8 e-text-xs",[K.Sm]:"e-w-10 e-h-10 e-text-sm",[K.Md]:"e-w-14 e-h-14 e-text-base",[K.Lg]:"e-w-20 e-h-20 e-text-2xl",[K.Xl]:"e-w-28 e-h-28 e-text-3xl",[K.TwoXl]:"e-w-36 e-h-36 e-text-5xl"}}},computed:{avatarClasses(){const t=this.sizes[this.size]||this.sizes[K.Xs],e=this.image?"e-rounded-full e-overflow-hidden":"";return["e-flex e-items-center e-justify-center e-rounded-full e-text-white e-font-medium",t,e,this.backgroundClasses]}}});var ta=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-avatar e-relative",class:e.avatarClasses},[e._t("default",function(){return[e.image?r("img",{staticClass:"e-avatar__image e-w-full e-h-full e-object-cover",attrs:{src:e.image}}):e._e()]}),e.showBadge?r("div",{staticClass:"e-avatar__badge e-absolute e-top-0 e-right-0"},[e._t("badge",function(){return[r("Badge",{attrs:{text:e.badgeText,color:e.badgeColor,size:e.badgeSize}})]})],2):e._e()],2)},ra=[],na=H(ea,ta,ra,!1,null,null,null,null);const Mt=na.exports;var ot=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function yt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Dn={},Pn={},Jt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r){if(r=`${r}`,r==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(r))return r.replace(/^[+-]?/,i=>i==="-"?"":"-");let n=["var","calc","min","max","clamp"];for(const i of n)if(r.includes(`${i}(`))return`calc(${r} * -1)`}})(Jt);var On={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});const e=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","lineClamp","display","aspectRatio","size","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","captionSide","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","listStyleImage","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","hyphens","whitespace","textWrap","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","contain","content","forcedColorAdjust"]})(On);var zn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r,n){return r===void 0?n:Array.isArray(r)?r:[...new Set(n.filter(o=>r!==!1&&r[o]!==!1).concat(Object.keys(r).filter(o=>r[o]!==!1)))]}})(zn);var er={},Lt={},tr={exports:{}},Ce=String,Bn=function(){return{isColorSupported:!1,reset:Ce,bold:Ce,dim:Ce,italic:Ce,underline:Ce,inverse:Ce,hidden:Ce,strikethrough:Ce,black:Ce,red:Ce,green:Ce,yellow:Ce,blue:Ce,magenta:Ce,cyan:Ce,white:Ce,gray:Ce,bgBlack:Ce,bgRed:Ce,bgGreen:Ce,bgYellow:Ce,bgBlue:Ce,bgMagenta:Ce,bgCyan:Ce,bgWhite:Ce}};tr.exports=Bn(),tr.exports.createColors=Bn;var In=tr.exports;(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(a,l){for(var d in l)Object.defineProperty(a,d,{enumerable:!0,get:l[d]})}e(t,{dim:function(){return s},default:function(){return c}});const r=n(In);function n(a){return a&&a.__esModule?a:{default:a}}let i=new Set;function o(a,l,d){typeof process!="undefined"&&process.env.JEST_WORKER_ID||d&&i.has(d)||(d&&i.add(d),console.warn(""),l.forEach(f=>console.warn(a,"-",f)))}function s(a){return r.default.dim(a)}const c={info(a,l){o(r.default.bold(r.default.cyan("info")),...Array.isArray(a)?[a]:[l,a])},warn(a,l){o(r.default.bold(r.default.yellow("warn")),...Array.isArray(a)?[a]:[l,a])},risk(a,l){o(r.default.bold(r.default.magenta("risk")),...Array.isArray(a)?[a]:[l,a])}}})(Lt),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});const e=r(Lt);function r(o){return o&&o.__esModule?o:{default:o}}function n({version:o,from:s,to:c}){e.default.warn(`${s}-color-renamed`,[`As of Tailwind CSS ${o}, \`${s}\` has been renamed to \`${c}\`.`,"Update your configuration file to silence this warning."])}const i={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return n({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return n({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return n({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return n({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return n({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}(er);var Fn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"defaults",{enumerable:!0,get:function(){return e}});function e(r,...n){for(let s of n){for(let c in s){var i;!(r==null||(i=r.hasOwnProperty)===null||i===void 0)&&i.call(r,c)||(r[c]=s[c])}for(let c of Object.getOwnPropertySymbols(s)){var o;!(r==null||(o=r.hasOwnProperty)===null||o===void 0)&&o.call(r,c)||(r[c]=s[c])}}return r}})(Fn);var An={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"toPath",{enumerable:!0,get:function(){return e}});function e(r){if(Array.isArray(r))return r;let n=r.split("[").length-1,i=r.split("]").length-1;if(n!==i)throw new Error(`Path is invalid. Has unbalanced brackets: ${r}`);return r.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}})(An);var Rn={},Dt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(f,m){for(var b in m)Object.defineProperty(f,b,{enumerable:!0,get:m[b]})}e(t,{flagEnabled:function(){return c},issueFlagNotices:function(){return l},default:function(){return d}});const r=i(In),n=i(Lt);function i(f){return f&&f.__esModule?f:{default:f}}let o={optimizeUniversalDefaults:!1,generalizedModifiers:!0,disableColorOpacityUtilitiesByDefault:!1,relativeContentPathsByDefault:!1},s={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity","disableColorOpacityUtilitiesByDefault","relativeContentPathsByDefault"],experimental:["optimizeUniversalDefaults","generalizedModifiers"]};function c(f,m){if(s.future.includes(m)){var b,x,h;return f.future==="all"||((h=(x=f==null||(b=f.future)===null||b===void 0?void 0:b[m])!==null&&x!==void 0?x:o[m])!==null&&h!==void 0?h:!1)}if(s.experimental.includes(m)){var y,$,D;return f.experimental==="all"||((D=($=f==null||(y=f.experimental)===null||y===void 0?void 0:y[m])!==null&&$!==void 0?$:o[m])!==null&&D!==void 0?D:!1)}return!1}function a(f){if(f.experimental==="all")return s.experimental;var m;return Object.keys((m=f==null?void 0:f.experimental)!==null&&m!==void 0?m:{}).filter(b=>s.experimental.includes(b)&&f.experimental[b])}function l(f){if(process.env.JEST_WORKER_ID===void 0&&a(f).length>0){let m=a(f).map(b=>r.default.yellow(b)).join(", ");n.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${m}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}const d=s})(Dt),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeConfig",{enumerable:!0,get:function(){return o}});const e=Dt,r=i(Lt);function n(s){if(typeof WeakMap!="function")return null;var c=new WeakMap,a=new WeakMap;return(n=function(l){return l?a:c})(s)}function i(s,c){if(!c&&s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var a=n(c);if(a&&a.has(s))return a.get(s);var l={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in s)if(f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)){var m=d?Object.getOwnPropertyDescriptor(s,f):null;m&&(m.get||m.set)?Object.defineProperty(l,f,m):l[f]=s[f]}return l.default=s,a&&a.set(s,l),l}function o(s){if((()=>{if(s.purge||!s.content||!Array.isArray(s.content)&&!(typeof s.content=="object"&&s.content!==null))return!1;if(Array.isArray(s.content))return s.content.every(l=>typeof l=="string"?!0:!(typeof(l==null?void 0:l.raw)!="string"||l!=null&&l.extension&&typeof(l==null?void 0:l.extension)!="string"));if(typeof s.content=="object"&&s.content!==null){if(Object.keys(s.content).some(l=>!["files","relative","extract","transform"].includes(l)))return!1;if(Array.isArray(s.content.files)){if(!s.content.files.every(l=>typeof l=="string"?!0:!(typeof(l==null?void 0:l.raw)!="string"||l!=null&&l.extension&&typeof(l==null?void 0:l.extension)!="string")))return!1;if(typeof s.content.extract=="object"){for(let l of Object.values(s.content.extract))if(typeof l!="function")return!1}else if(!(s.content.extract===void 0||typeof s.content.extract=="function"))return!1;if(typeof s.content.transform=="object"){for(let l of Object.values(s.content.transform))if(typeof l!="function")return!1}else if(!(s.content.transform===void 0||typeof s.content.transform=="function"))return!1;if(typeof s.content.relative!="boolean"&&typeof s.content.relative!="undefined")return!1}return!0}return!1})()||r.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),s.safelist=(()=>{var l;let{content:d,purge:f,safelist:m}=s;return Array.isArray(m)?m:Array.isArray(d==null?void 0:d.safelist)?d.safelist:Array.isArray(f==null?void 0:f.safelist)?f.safelist:Array.isArray(f==null||(l=f.options)===null||l===void 0?void 0:l.safelist)?f.options.safelist:[]})(),s.blocklist=(()=>{let{blocklist:l}=s;if(Array.isArray(l)){if(l.every(d=>typeof d=="string"))return l;r.default.warn("blocklist-invalid",["The `blocklist` option must be an array of strings.","https://tailwindcss.com/docs/content-configuration#discarding-classes"])}return[]})(),typeof s.prefix=="function")r.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),s.prefix="";else{var a;s.prefix=(a=s.prefix)!==null&&a!==void 0?a:""}s.content={relative:(()=>{let{content:l}=s;return l!=null&&l.relative?l.relative:(0,e.flagEnabled)(s,"relativeContentPathsByDefault")})(),files:(()=>{let{content:l,purge:d}=s;return Array.isArray(d)?d:Array.isArray(d==null?void 0:d.content)?d.content:Array.isArray(l)?l:Array.isArray(l==null?void 0:l.content)?l.content:Array.isArray(l==null?void 0:l.files)?l.files:[]})(),extract:(()=>{let l=(()=>{var m,b,x,h,y,$,D,S,R,E;return!((m=s.purge)===null||m===void 0)&&m.extract?s.purge.extract:!((b=s.content)===null||b===void 0)&&b.extract?s.content.extract:!((x=s.purge)===null||x===void 0||(h=x.extract)===null||h===void 0)&&h.DEFAULT?s.purge.extract.DEFAULT:!((y=s.content)===null||y===void 0||($=y.extract)===null||$===void 0)&&$.DEFAULT?s.content.extract.DEFAULT:!((D=s.purge)===null||D===void 0||(S=D.options)===null||S===void 0)&&S.extractors?s.purge.options.extractors:!((R=s.content)===null||R===void 0||(E=R.options)===null||E===void 0)&&E.extractors?s.content.options.extractors:{}})(),d={},f=(()=>{var m,b,x,h;if(!((m=s.purge)===null||m===void 0||(b=m.options)===null||b===void 0)&&b.defaultExtractor)return s.purge.options.defaultExtractor;if(!((x=s.content)===null||x===void 0||(h=x.options)===null||h===void 0)&&h.defaultExtractor)return s.content.options.defaultExtractor})();if(f!==void 0&&(d.DEFAULT=f),typeof l=="function")d.DEFAULT=l;else if(Array.isArray(l))for(let{extensions:m,extractor:b}of l!=null?l:[])for(let x of m)d[x]=b;else typeof l=="object"&&l!==null&&Object.assign(d,l);return d})(),transform:(()=>{let l=(()=>{var f,m,b,x,h,y;return!((f=s.purge)===null||f===void 0)&&f.transform?s.purge.transform:!((m=s.content)===null||m===void 0)&&m.transform?s.content.transform:!((b=s.purge)===null||b===void 0||(x=b.transform)===null||x===void 0)&&x.DEFAULT?s.purge.transform.DEFAULT:!((h=s.content)===null||h===void 0||(y=h.transform)===null||y===void 0)&&y.DEFAULT?s.content.transform.DEFAULT:{}})(),d={};return typeof l=="function"?d.DEFAULT=l:typeof l=="object"&&l!==null&&Object.assign(d,l),d})()};for(let l of s.content.files)if(typeof l=="string"&&/{([^,]*?)}/g.test(l)){r.default.warn("invalid-glob-braces",[`The glob pattern ${(0,r.dim)(l)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,r.dim)(l.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return s}}(Rn);var Hn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r){if(Object.prototype.toString.call(r)!=="[object Object]")return!1;const n=Object.getPrototypeOf(r);return n===null||Object.getPrototypeOf(n)===null}})(Hn);var Nn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return e}});function e(r){return Array.isArray(r)?r.map(n=>e(n)):typeof r=="object"&&r!==null?Object.fromEntries(Object.entries(r).map(([n,i])=>[n,e(i)])):r}})(Nn);var jn={},Gn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r){return r.replace(/\\,/g,"\\2c ")}})(Gn);var rr={},nr={},qn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});const e={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}})(qn),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(x,h){for(var y in h)Object.defineProperty(x,y,{enumerable:!0,get:h[y]})}e(t,{parseColor:function(){return m},formatColor:function(){return b}});const r=n(qn);function n(x){return x&&x.__esModule?x:{default:x}}let i=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,o=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,s=/(?:\d+|\d*\.\d+)%?/,c=/(?:\s*,\s*|\s+)/,a=/\s*[,/]\s*/,l=/var\(--(?:[^ )]*?)(?:,(?:[^ )]*?|var\(--[^ )]*?\)))?\)/,d=new RegExp(`^(rgba?)\\(\\s*(${s.source}|${l.source})(?:${c.source}(${s.source}|${l.source}))?(?:${c.source}(${s.source}|${l.source}))?(?:${a.source}(${s.source}|${l.source}))?\\s*\\)$`),f=new RegExp(`^(hsla?)\\(\\s*((?:${s.source})(?:deg|rad|grad|turn)?|${l.source})(?:${c.source}(${s.source}|${l.source}))?(?:${c.source}(${s.source}|${l.source}))?(?:${a.source}(${s.source}|${l.source}))?\\s*\\)$`);function m(x,{loose:h=!1}={}){var y,$;if(typeof x!="string")return null;if(x=x.trim(),x==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(x in r.default)return{mode:"rgb",color:r.default[x].map(j=>j.toString())};let D=x.replace(o,(j,Q,U,C,z)=>["#",Q,Q,U,U,C,C,z?z+z:""].join("")).match(i);if(D!==null)return{mode:"rgb",color:[parseInt(D[1],16),parseInt(D[2],16),parseInt(D[3],16)].map(j=>j.toString()),alpha:D[4]?(parseInt(D[4],16)/255).toString():void 0};var S;let R=(S=x.match(d))!==null&&S!==void 0?S:x.match(f);if(R===null)return null;let E=[R[2],R[3],R[4]].filter(Boolean).map(j=>j.toString());return E.length===2&&E[0].startsWith("var(")?{mode:R[1],color:[E[0]],alpha:E[1]}:!h&&E.length!==3||E.length<3&&!E.some(j=>/^var\(.*?\)$/.test(j))?null:{mode:R[1],color:E,alpha:(y=R[5])===null||y===void 0||($=y.toString)===null||$===void 0?void 0:$.call(y)}}function b({mode:x,color:h,alpha:y}){let $=y!==void 0;return x==="rgba"||x==="hsla"?`${x}(${h.join(", ")}${$?`, ${y}`:""})`:`${x}(${h.join(" ")}${$?` / ${y}`:""})`}}(nr),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,s){for(var c in s)Object.defineProperty(o,c,{enumerable:!0,get:s[c]})}e(t,{withAlphaValue:function(){return n},default:function(){return i}});const r=nr;function n(o,s,c){if(typeof o=="function")return o({opacityValue:s});let a=(0,r.parseColor)(o,{loose:!0});return a===null?c:(0,r.formatColor)({...a,alpha:s})}function i({color:o,property:s,variable:c}){let a=[].concat(s);if(typeof o=="function")return{[c]:"1",...Object.fromEntries(a.map(d=>[d,o({opacityVariable:c,opacityValue:`var(${c})`})]))};const l=(0,r.parseColor)(o);return l===null?Object.fromEntries(a.map(d=>[d,o])):l.alpha!==void 0?Object.fromEntries(a.map(d=>[d,o])):{[c]:"1",...Object.fromEntries(a.map(d=>[d,(0,r.formatColor)({...l,alpha:`var(${c})`})]))}}}(rr);var ir={},Wn={},Pt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"splitAtTopLevelOnly",{enumerable:!0,get:function(){return e}});function e(r,n){let i=[],o=[],s=0,c=!1;for(let a=0;a<r.length;a++){let l=r[a];i.length===0&&l===n[0]&&!c&&(n.length===1||r.slice(a,a+n.length)===n)&&(o.push(r.slice(s,a)),s=a+n.length),c=c?!1:l==="\\",l==="("||l==="["||l==="{"?i.push(l):(l===")"&&i[i.length-1]==="("||l==="]"&&i[i.length-1]==="["||l==="}"&&i[i.length-1]==="{")&&i.pop()}return o.push(r.slice(s)),o}})(Pt),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(a,l){for(var d in l)Object.defineProperty(a,d,{enumerable:!0,get:l[d]})}e(t,{parseBoxShadowValue:function(){return s},formatBoxShadowValue:function(){return c}});const r=Pt;let n=new Set(["inset","inherit","initial","revert","unset"]),i=/\ +(?![^(]*\))/g,o=/^-?(\d+|\.\d+)(.*?)$/g;function s(a){return(0,r.splitAtTopLevelOnly)(a,",").map(d=>{let f=d.trim(),m={raw:f},b=f.split(i),x=new Set;for(let h of b)o.lastIndex=0,!x.has("KEYWORD")&&n.has(h)?(m.keyword=h,x.add("KEYWORD")):o.test(h)?x.has("X")?x.has("Y")?x.has("BLUR")?x.has("SPREAD")||(m.spread=h,x.add("SPREAD")):(m.blur=h,x.add("BLUR")):(m.y=h,x.add("Y")):(m.x=h,x.add("X")):m.color?(m.unknown||(m.unknown=[]),m.unknown.push(h)):m.color=h;return m.valid=m.x!==void 0&&m.y!==void 0,m})}function c(a){return a.map(l=>l.valid?[l.keyword,l.x,l.y,l.blur,l.spread,l.color].filter(Boolean).join(" "):l.raw).join(", ")}}(Wn),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(P,N){for(var ne in N)Object.defineProperty(P,ne,{enumerable:!0,get:N[ne]})}e(t,{normalize:function(){return a},normalizeAttributeSelectors:function(){return l},url:function(){return f},number:function(){return m},percentage:function(){return b},length:function(){return y},lineWidth:function(){return D},shadow:function(){return S},color:function(){return R},image:function(){return E},gradient:function(){return Q},position:function(){return C},familyName:function(){return z},genericName:function(){return L},absoluteSize:function(){return X},relativeSize:function(){return T}});const r=nr,n=Wn,i=Pt;let o=["min","max","clamp","calc"];function s(P){return o.some(N=>new RegExp(`^${N}\\(.*\\)`).test(P))}const c=new Set(["scroll-timeline-name","timeline-scope","view-timeline-name","font-palette","anchor-name","anchor-scope","position-anchor","position-try-options","scroll-timeline","animation-timeline","view-timeline","position-try"]);function a(P,N=null,ne=!0){let _=N&&c.has(N.property);return P.startsWith("--")&&!_?`var(${P})`:P.includes("url(")?P.split(/(url\(.*?\))/g).filter(Boolean).map(Z=>/^url\(.*?\)$/.test(Z)?Z:a(Z,N,!1)).join(""):(P=P.replace(/([^\\])_+/g,(Z,A)=>A+" ".repeat(Z.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),ne&&(P=P.trim()),P=d(P),P)}function l(P){return P.includes("=")&&(P=P.replace(/(=.*)/g,(N,ne)=>{if(ne[1]==="'"||ne[1]==='"')return ne;if(ne.length>2){let _=ne[ne.length-1];if(ne[ne.length-2]===" "&&(_==="i"||_==="I"||_==="s"||_==="S"))return`="${ne.slice(1,-2)}" ${ne[ne.length-1]}`}return`="${ne.slice(1)}"`})),P}function d(P){let N=["theme"],ne=["min-content","max-content","fit-content","safe-area-inset-top","safe-area-inset-right","safe-area-inset-bottom","safe-area-inset-left","titlebar-area-x","titlebar-area-y","titlebar-area-width","titlebar-area-height","keyboard-inset-top","keyboard-inset-right","keyboard-inset-bottom","keyboard-inset-left","keyboard-inset-width","keyboard-inset-height","radial-gradient","linear-gradient","conic-gradient","repeating-radial-gradient","repeating-linear-gradient","repeating-conic-gradient"];return P.replace(/(calc|min|max|clamp)\(.+\)/g,_=>{let Z="";function A(){let B=Z.trimEnd();return B[B.length-1]}for(let B=0;B<_.length;B++){let w=function(M){return M.split("").every((re,ce)=>_[B+ce]===re)},q=function(M){let re=1/0;for(let le of M){let ie=_.indexOf(le,B);ie!==-1&&ie<re&&(re=ie)}let ce=_.slice(B,re);return B+=ce.length-1,ce},V=_[B];if(w("var"))Z+=q([")",","]);else if(ne.some(M=>w(M))){let M=ne.find(re=>w(re));Z+=M,B+=M.length-1}else N.some(M=>w(M))?Z+=q([")"]):w("[")?Z+=q(["]"]):["+","-","*","/"].includes(V)&&!["(","+","-","*","/",","].includes(A())?Z+=` ${V} `:Z+=V}return Z.replace(/\s+/g," ")})}function f(P){return P.startsWith("url(")}function m(P){return!isNaN(Number(P))||s(P)}function b(P){return P.endsWith("%")&&m(P.slice(0,-1))||s(P)}let h=`(?:${["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"].join("|")})`;function y(P){return P==="0"||new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${h}$`).test(P)||s(P)}let $=new Set(["thin","medium","thick"]);function D(P){return $.has(P)}function S(P){let N=(0,n.parseBoxShadowValue)(a(P));for(let ne of N)if(!ne.valid)return!1;return!0}function R(P){let N=0;return(0,i.splitAtTopLevelOnly)(P,"_").every(_=>(_=a(_),_.startsWith("var(")?!0:(0,r.parseColor)(_,{loose:!0})!==null?(N++,!0):!1))?N>0:!1}function E(P){let N=0;return(0,i.splitAtTopLevelOnly)(P,",").every(_=>(_=a(_),_.startsWith("var(")?!0:f(_)||Q(_)||["element(","image(","cross-fade(","image-set("].some(Z=>_.startsWith(Z))?(N++,!0):!1))?N>0:!1}let j=new Set(["conic-gradient","linear-gradient","radial-gradient","repeating-conic-gradient","repeating-linear-gradient","repeating-radial-gradient"]);function Q(P){P=a(P);for(let N of j)if(P.startsWith(`${N}(`))return!0;return!1}let U=new Set(["center","top","right","bottom","left"]);function C(P){let N=0;return(0,i.splitAtTopLevelOnly)(P,"_").every(_=>(_=a(_),_.startsWith("var(")?!0:U.has(_)||y(_)||b(_)?(N++,!0):!1))?N>0:!1}function z(P){let N=0;return(0,i.splitAtTopLevelOnly)(P,",").every(_=>(_=a(_),_.startsWith("var(")?!0:_.includes(" ")&&!/(['"])([^"']+)\1/g.test(_)||/^\d/g.test(_)?!1:(N++,!0)))?N>0:!1}let W=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function L(P){return W.has(P)}let Y=new Set(["xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large"]);function X(P){return Y.has(P)}let I=new Set(["larger","smaller"]);function T(P){return I.has(P)}}(ir);var Un={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"backgroundSize",{enumerable:!0,get:function(){return n}});const e=ir,r=Pt;function n(i){let o=["cover","contain"];return(0,r.splitAtTopLevelOnly)(i,",").every(s=>{let c=(0,r.splitAtTopLevelOnly)(s,"_").filter(Boolean);return c.length===1&&o.includes(c[0])?!0:c.length!==1&&c.length!==2?!1:c.every(a=>(0,e.length)(a)||(0,e.percentage)(a)||a==="auto")})}})(Un),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(C,z){for(var W in z)Object.defineProperty(C,W,{enumerable:!0,get:z[W]})}e(t,{updateAllClasses:function(){return l},asValue:function(){return m},parseColorFormat:function(){return h},asColor:function(){return $},asLookupValue:function(){return D},typeMap:function(){return R},coerceValue:function(){return Q},getMatchingTypes:function(){return U}});const r=a(Gn),n=rr,i=ir,o=a(Jt),s=Un,c=Dt;function a(C){return C&&C.__esModule?C:{default:C}}function l(C,z){C.walkClasses(W=>{W.value=z(W.value),W.raws&&W.raws.value&&(W.raws.value=(0,r.default)(W.raws.value))})}function d(C,z){if(!b(C))return;let W=C.slice(1,-1);if(z(W))return(0,i.normalize)(W)}function f(C,z={},W){let L=z[C];if(L!==void 0)return(0,o.default)(L);if(b(C)){let Y=d(C,W);return Y===void 0?void 0:(0,o.default)(Y)}}function m(C,z={},{validate:W=()=>!0}={}){var L;let Y=(L=z.values)===null||L===void 0?void 0:L[C];return Y!==void 0?Y:z.supportsNegativeValues&&C.startsWith("-")?f(C.slice(1),z.values,W):d(C,W)}function b(C){return C.startsWith("[")&&C.endsWith("]")}function x(C){let z=C.lastIndexOf("/"),W=C.lastIndexOf("[",z),L=C.indexOf("]",z);return C[z-1]==="]"||C[z+1]==="["||W!==-1&&L!==-1&&W<z&&z<L&&(z=C.lastIndexOf("/",W)),z===-1||z===C.length-1?[C,void 0]:b(C)&&!C.includes("]/[")?[C,void 0]:[C.slice(0,z),C.slice(z+1)]}function h(C){if(typeof C=="string"&&C.includes("<alpha-value>")){let z=C;return({opacityValue:W=1})=>z.replace(/<alpha-value>/g,W)}return C}function y(C){return(0,i.normalize)(C.slice(1,-1))}function $(C,z={},{tailwindConfig:W={}}={}){var L;if(((L=z.values)===null||L===void 0?void 0:L[C])!==void 0){var Y;return h((Y=z.values)===null||Y===void 0?void 0:Y[C])}let[X,I]=x(C);if(I!==void 0){var T,P,N,ne;let _=(ne=(T=z.values)===null||T===void 0?void 0:T[X])!==null&&ne!==void 0?ne:b(X)?X.slice(1,-1):void 0;return _===void 0?void 0:(_=h(_),b(I)?(0,n.withAlphaValue)(_,y(I)):((P=W.theme)===null||P===void 0||(N=P.opacity)===null||N===void 0?void 0:N[I])===void 0?void 0:(0,n.withAlphaValue)(_,W.theme.opacity[I]))}return m(C,z,{validate:i.color})}function D(C,z={}){var W;return(W=z.values)===null||W===void 0?void 0:W[C]}function S(C){return(z,W)=>m(z,W,{validate:C})}let R={any:m,color:$,url:S(i.url),image:S(i.image),length:S(i.length),percentage:S(i.percentage),position:S(i.position),lookup:D,"generic-name":S(i.genericName),"family-name":S(i.familyName),number:S(i.number),"line-width":S(i.lineWidth),"absolute-size":S(i.absoluteSize),"relative-size":S(i.relativeSize),shadow:S(i.shadow),size:S(s.backgroundSize)},E=Object.keys(R);function j(C,z){let W=C.indexOf(z);return W===-1?[void 0,C]:[C.slice(0,W),C.slice(W+1)]}function Q(C,z,W,L){if(W.values&&z in W.values)for(let{type:X}of C!=null?C:[]){let I=R[X](z,W,{tailwindConfig:L});if(I!==void 0)return[I,X,null]}if(b(z)){let X=z.slice(1,-1),[I,T]=j(X,":");if(!/^[\w-_]+$/g.test(I))T=X;else if(I!==void 0&&!E.includes(I))return[];if(T.length>0&&E.includes(I))return[m(`[${T}]`,W),I,null]}let Y=U(C,z,W,L);for(let X of Y)return X;return[]}function*U(C,z,W,L){let Y=(0,c.flagEnabled)(L,"generalizedModifiers"),[X,I]=x(z);if(Y&&W.modifiers!=null&&(W.modifiers==="any"||typeof W.modifiers=="object"&&(I&&b(I)||I in W.modifiers))||(X=z,I=void 0),I!==void 0&&X===""&&(X="DEFAULT"),I!==void 0&&typeof W.modifiers=="object"){var P,N;let ne=(N=(P=W.modifiers)===null||P===void 0?void 0:P[I])!==null&&N!==void 0?N:null;ne!==null?I=ne:b(I)&&(I=y(I))}for(let{type:ne}of C!=null?C:[]){let _=R[ne](X,W,{tailwindConfig:L});_!==void 0&&(yield[_,ne,I!=null?I:null])}}}(jn);var Zn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r){return typeof r=="function"?r({}):r}})(Zn),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return W}});const e=b(Jt),r=b(On),n=b(zn),i=b(er),o=Fn,s=An,c=Rn,a=b(Hn),l=Nn,d=jn,f=rr,m=b(Zn);function b(L){return L&&L.__esModule?L:{default:L}}function x(L){return typeof L=="function"}function h(L,...Y){let X=Y.pop();for(let I of Y)for(let T in I){let P=X(L[T],I[T]);P===void 0?(0,a.default)(L[T])&&(0,a.default)(I[T])?L[T]=h({},L[T],I[T],X):L[T]=I[T]:L[T]=P}return L}const y={colors:i.default,negative(L){return Object.keys(L).filter(Y=>L[Y]!=="0").reduce((Y,X)=>{let I=(0,e.default)(L[X]);return I!==void 0&&(Y[`-${X}`]=I),Y},{})},breakpoints(L){return Object.keys(L).filter(Y=>typeof L[Y]=="string").reduce((Y,X)=>({...Y,[`screen-${X}`]:L[X]}),{})}};function $(L,...Y){return x(L)?L(...Y):L}function D(L){return L.reduce((Y,{extend:X})=>h(Y,X,(I,T)=>I===void 0?[T]:Array.isArray(I)?[T,...I]:[T,I]),{})}function S(L){return{...L.reduce((Y,X)=>(0,o.defaults)(Y,X),{}),extend:D(L)}}function R(L,Y){if(Array.isArray(L)&&(0,a.default)(L[0]))return L.concat(Y);if(Array.isArray(Y)&&(0,a.default)(Y[0])&&(0,a.default)(L))return[L,...Y];if(Array.isArray(Y))return Y}function E({extend:L,...Y}){return h(Y,L,(X,I)=>!x(X)&&!I.some(x)?h({},X,...I,R):(T,P)=>h({},...[X,...I].map(N=>$(N,T,P)),R))}function*j(L){let Y=(0,s.toPath)(L);if(Y.length===0||(yield Y,Array.isArray(L)))return;let X=/^(.*?)\s*\/\s*([^/]+)$/,I=L.match(X);if(I!==null){let[,T,P]=I,N=(0,s.toPath)(T);N.alpha=P,yield N}}function Q(L){const Y=(X,I)=>{for(const T of j(X)){let P=0,N=L;for(;N!=null&&P<T.length;)N=N[T[P++]],N=x(N)&&(T.alpha===void 0||P<=T.length-1)?N(Y,y):N;if(N!==void 0){if(T.alpha!==void 0){let ne=(0,d.parseColorFormat)(N);return(0,f.withAlphaValue)(ne,T.alpha,(0,m.default)(ne))}return(0,a.default)(N)?(0,l.cloneDeep)(N):N}}return I};return Object.assign(Y,{theme:Y,...y}),Object.keys(L).reduce((X,I)=>(X[I]=x(L[I])?L[I](Y,y):L[I],X),{})}function U(L){let Y=[];return L.forEach(X=>{Y=[...Y,X];var I;const T=(I=X==null?void 0:X.plugins)!==null&&I!==void 0?I:[];T.length!==0&&T.forEach(P=>{P.__isOptionsFunction&&(P=P());var N;Y=[...Y,...U([(N=P==null?void 0:P.config)!==null&&N!==void 0?N:{}])]})}),Y}function C(L){return[...L].reduceRight((X,I)=>x(I)?I({corePlugins:X}):(0,n.default)(I,X),r.default)}function z(L){return[...L].reduceRight((X,I)=>[...X,...I],[])}function W(L){let Y=[...U(L),{prefix:"",important:!1,separator:":"}];var X,I;return(0,c.normalizeConfig)((0,o.defaults)({theme:Q(E(S(Y.map(T=>(X=T==null?void 0:T.theme)!==null&&X!==void 0?X:{})))),corePlugins:C(Y.map(T=>T.corePlugins)),plugins:z(L.map(T=>(I=T==null?void 0:T.plugins)!==null&&I!==void 0?I:[]))},...Y))}}(Pn);var Yn={},ia={content:[],presets:[],darkMode:"media",theme:{accentColor:({theme:t})=>({...t("colors"),auto:"auto"}),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:t})=>t("blur"),backdropBrightness:({theme:t})=>t("brightness"),backdropContrast:({theme:t})=>t("contrast"),backdropGrayscale:({theme:t})=>t("grayscale"),backdropHueRotate:({theme:t})=>t("hueRotate"),backdropInvert:({theme:t})=>t("invert"),backdropOpacity:({theme:t})=>t("opacity"),backdropSaturate:({theme:t})=>t("saturate"),backdropSepia:({theme:t})=>t("sepia"),backgroundColor:({theme:t})=>t("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:t})=>t("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:t})=>({...t("colors"),DEFAULT:t("colors.gray.200","currentColor")}),borderOpacity:({theme:t})=>t("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:t})=>({...t("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:t})=>t("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:({theme:t})=>t("colors"),colors:({colors:t})=>({inherit:t.inherit,current:t.current,transparent:t.transparent,black:t.black,white:t.white,slate:t.slate,gray:t.gray,zinc:t.zinc,neutral:t.neutral,stone:t.stone,red:t.red,orange:t.orange,amber:t.amber,yellow:t.yellow,lime:t.lime,green:t.green,emerald:t.emerald,teal:t.teal,cyan:t.cyan,sky:t.sky,blue:t.blue,indigo:t.indigo,violet:t.violet,purple:t.purple,fuchsia:t.fuchsia,pink:t.pink,rose:t.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:t})=>t("borderColor"),divideOpacity:({theme:t})=>t("borderOpacity"),divideWidth:({theme:t})=>t("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:t})=>({none:"none",...t("colors")}),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:t})=>t("spacing"),gradientColorStops:({theme:t})=>t("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},height:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:t})=>({auto:"auto",...t("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:({theme:t})=>({...t("spacing"),none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:t,breakpoints:e})=>({...t("spacing"),none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e(t("screens"))}),minHeight:({theme:t})=>({...t("spacing"),full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),minWidth:({theme:t})=>({...t("spacing"),full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},outlineColor:({theme:t})=>t("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:({theme:t})=>t("spacing"),placeholderColor:({theme:t})=>t("colors"),placeholderOpacity:({theme:t})=>t("opacity"),ringColor:({theme:t})=>({DEFAULT:t("colors.blue.500","#3b82f6"),...t("colors")}),ringOffsetColor:({theme:t})=>t("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:t})=>({DEFAULT:"0.5",...t("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:t})=>({...t("spacing")}),scrollPadding:({theme:t})=>t("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:t})=>({...t("spacing")}),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:t})=>({none:"none",...t("colors")}),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{},textColor:({theme:t})=>t("colors"),textDecorationColor:({theme:t})=>t("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:t})=>({...t("spacing")}),textOpacity:({theme:t})=>t("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:t})=>({...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),size:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),width:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},plugins:[]};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});const e=n(ia),r=Dt;function n(o){return o&&o.__esModule?o:{default:o}}function i(o){var s;const c=((s=o==null?void 0:o.presets)!==null&&s!==void 0?s:[e.default]).slice().reverse().flatMap(d=>i(d instanceof Function?d():d)),a={respectDefaultRingColorOpacity:{theme:{ringColor:({theme:d})=>({DEFAULT:"#3b82f67f",...d("colors")})}},disableColorOpacityUtilitiesByDefault:{corePlugins:{backgroundOpacity:!1,borderOpacity:!1,divideOpacity:!1,placeholderOpacity:!1,ringOpacity:!1,textOpacity:!1}}},l=Object.keys(a).filter(d=>(0,r.flagEnabled)(o,d)).map(d=>a[d]);return[o,...l,...c]}})(Yn),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});const e=n(Pn),r=n(Yn);function n(o){return o&&o.__esModule?o:{default:o}}function i(...o){let[,...s]=(0,r.default)(o[0]);return(0,e.default)([...o,...s])}}(Dn);let sr=Dn;var sa=(sr.__esModule?sr:{default:sr}).default;const aa=yt(sa);let ar=er;var or=(ar.__esModule?ar:{default:ar}).default;const Xn=yt(or),oa=Xt({__proto__:null,default:Xn},[or]);var Vn={},Qn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});function e(n,i){return{handler:n,config:i}}e.withOptions=function(n,i=()=>({})){const o=function(s){return{__options:s,handler:n(s),config:i(s)}};return o.__isOptionsFunction=!0,o.__pluginFunction=n,o.__configFunction=i,o};const r=e})(Qn),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});const e=r(Qn);function r(i){return i&&i.__esModule?i:{default:i}}const n=e.default}(Vn);let lr=Vn;var Kn=(lr.__esModule?lr:{default:lr}).default,Ot={exports:{}};Ot.exports,function(t,e){var r=200,n="__lodash_hash_undefined__",i=800,o=16,s=9007199254740991,c="[object Arguments]",a="[object Array]",l="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",m="[object Error]",b="[object Function]",x="[object GeneratorFunction]",h="[object Map]",y="[object Number]",$="[object Null]",D="[object Object]",S="[object Proxy]",R="[object RegExp]",E="[object Set]",j="[object String]",Q="[object Undefined]",U="[object WeakMap]",C="[object ArrayBuffer]",z="[object DataView]",W="[object Float32Array]",L="[object Float64Array]",Y="[object Int8Array]",X="[object Int16Array]",I="[object Int32Array]",T="[object Uint8Array]",P="[object Uint8ClampedArray]",N="[object Uint16Array]",ne="[object Uint32Array]",_=/[\\^$.*+?()[\]{}|]/g,Z=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,B={};B[W]=B[L]=B[Y]=B[X]=B[I]=B[T]=B[P]=B[N]=B[ne]=!0,B[c]=B[a]=B[C]=B[d]=B[z]=B[f]=B[m]=B[b]=B[h]=B[y]=B[D]=B[R]=B[E]=B[j]=B[U]=!1;var w=typeof ot=="object"&&ot&&ot.Object===Object&&ot,q=typeof self=="object"&&self&&self.Object===Object&&self,V=w||q||Function("return this")(),M=e&&!e.nodeType&&e,re=M&&!0&&t&&!t.nodeType&&t,ce=re&&re.exports===M,le=ce&&w.process,ie=function(){try{var p=re&&re.require&&re.require("util").types;return p||le&&le.binding&&le.binding("util")}catch{}}(),he=ie&&ie.isTypedArray;function Se(p,v,k){switch(k.length){case 0:return p.call(v);case 1:return p.call(v,k[0]);case 2:return p.call(v,k[0],k[1]);case 3:return p.call(v,k[0],k[1],k[2])}return p.apply(v,k)}function oe(p,v){for(var k=-1,te=Array(p);++k<p;)te[k]=v(k);return te}function ye(p){return function(v){return p(v)}}function Ae(p,v){return p==null?void 0:p[v]}function Be(p,v){return function(k){return p(v(k))}}var $e=Array.prototype,Te=Function.prototype,Me=Object.prototype,Ee=V["__core-js_shared__"],Le=Te.toString,De=Me.hasOwnProperty,et=function(){var p=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}(),Ke=Me.toString,lt=Le.call(Object),Tt=RegExp("^"+Le.call(De).replace(_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ze=ce?V.Buffer:void 0,pt=V.Symbol,jt=V.Uint8Array,Gt=Ze?Ze.allocUnsafe:void 0,$s=Be(Object.getPrototypeOf,Object),Es=Object.create,F8=Me.propertyIsEnumerable,A8=$e.splice,ct=pt?pt.toStringTag:void 0,qt=function(){try{var p=Cn(Object,"defineProperty");return p({},"",{}),p}catch{}}(),R8=Ze?Ze.isBuffer:void 0,Ms=Math.max,H8=Date.now,Ls=Cn(V,"Map"),kt=Cn(Object,"create"),N8=function(){function p(){}return function(v){if(!dt(v))return{};if(Es)return Es(v);p.prototype=v;var k=new p;return p.prototype=void 0,k}}();function ut(p){var v=-1,k=p==null?0:p.length;for(this.clear();++v<k;){var te=p[v];this.set(te[0],te[1])}}function j8(){this.__data__=kt?kt(null):{},this.size=0}function G8(p){var v=this.has(p)&&delete this.__data__[p];return this.size-=v?1:0,v}function q8(p){var v=this.__data__;if(kt){var k=v[p];return k===n?void 0:k}return De.call(v,p)?v[p]:void 0}function W8(p){var v=this.__data__;return kt?v[p]!==void 0:De.call(v,p)}function U8(p,v){var k=this.__data__;return this.size+=this.has(p)?0:1,k[p]=kt&&v===void 0?n:v,this}ut.prototype.clear=j8,ut.prototype.delete=G8,ut.prototype.get=q8,ut.prototype.has=W8,ut.prototype.set=U8;function tt(p){var v=-1,k=p==null?0:p.length;for(this.clear();++v<k;){var te=p[v];this.set(te[0],te[1])}}function Z8(){this.__data__=[],this.size=0}function Y8(p){var v=this.__data__,k=Wt(v,p);if(k<0)return!1;var te=v.length-1;return k==te?v.pop():A8.call(v,k,1),--this.size,!0}function X8(p){var v=this.__data__,k=Wt(v,p);return k<0?void 0:v[k][1]}function V8(p){return Wt(this.__data__,p)>-1}function Q8(p,v){var k=this.__data__,te=Wt(k,p);return te<0?(++this.size,k.push([p,v])):k[te][1]=v,this}tt.prototype.clear=Z8,tt.prototype.delete=Y8,tt.prototype.get=X8,tt.prototype.has=V8,tt.prototype.set=Q8;function mt(p){var v=-1,k=p==null?0:p.length;for(this.clear();++v<k;){var te=p[v];this.set(te[0],te[1])}}function K8(){this.size=0,this.__data__={hash:new ut,map:new(Ls||tt),string:new ut}}function J8(p){var v=Zt(this,p).delete(p);return this.size-=v?1:0,v}function e7(p){return Zt(this,p).get(p)}function t7(p){return Zt(this,p).has(p)}function r7(p,v){var k=Zt(this,p),te=k.size;return k.set(p,v),this.size+=k.size==te?0:1,this}mt.prototype.clear=K8,mt.prototype.delete=J8,mt.prototype.get=e7,mt.prototype.has=t7,mt.prototype.set=r7;function gt(p){var v=this.__data__=new tt(p);this.size=v.size}function n7(){this.__data__=new tt,this.size=0}function i7(p){var v=this.__data__,k=v.delete(p);return this.size=v.size,k}function s7(p){return this.__data__.get(p)}function a7(p){return this.__data__.has(p)}function o7(p,v){var k=this.__data__;if(k instanceof tt){var te=k.__data__;if(!Ls||te.length<r-1)return te.push([p,v]),this.size=++k.size,this;k=this.__data__=new mt(te)}return k.set(p,v),this.size=k.size,this}gt.prototype.clear=n7,gt.prototype.delete=i7,gt.prototype.get=s7,gt.prototype.has=a7,gt.prototype.set=o7;function l7(p,v){var k=wn(p),te=!k&&xn(p),pe=!k&&!te&&Bs(p),ve=!k&&!te&&!pe&&Fs(p),xe=k||te||pe||ve,fe=xe?oe(p.length,String):[],we=fe.length;for(var qe in p)(v||De.call(p,qe))&&!(xe&&(qe=="length"||pe&&(qe=="offset"||qe=="parent")||ve&&(qe=="buffer"||qe=="byteLength"||qe=="byteOffset")||Os(qe,we)))&&fe.push(qe);return fe}function _n(p,v,k){(k!==void 0&&!Yt(p[v],k)||k===void 0&&!(v in p))&&yn(p,v,k)}function c7(p,v,k){var te=p[v];(!(De.call(p,v)&&Yt(te,k))||k===void 0&&!(v in p))&&yn(p,v,k)}function Wt(p,v){for(var k=p.length;k--;)if(Yt(p[k][0],v))return k;return-1}function yn(p,v,k){v=="__proto__"&&qt?qt(p,v,{configurable:!0,enumerable:!0,value:k,writable:!0}):p[v]=k}var u7=w7();function Ut(p){return p==null?p===void 0?Q:$:ct&&ct in Object(p)?S7(p):L7(p)}function Ds(p){return $t(p)&&Ut(p)==c}function d7(p){if(!dt(p)||E7(p))return!1;var v=Tn(p)?Tt:Z;return v.test(z7(p))}function h7(p){return $t(p)&&Is(p.length)&&!!B[Ut(p)]}function f7(p){if(!dt(p))return M7(p);var v=zs(p),k=[];for(var te in p)te=="constructor"&&(v||!De.call(p,te))||k.push(te);return k}function Ps(p,v,k,te,pe){p!==v&&u7(v,function(ve,xe){if(pe||(pe=new gt),dt(ve))p7(p,v,xe,k,Ps,te,pe);else{var fe=te?te(bn(p,xe),ve,xe+"",p,v,pe):void 0;fe===void 0&&(fe=ve),_n(p,xe,fe)}},As)}function p7(p,v,k,te,pe,ve,xe){var fe=bn(p,k),we=bn(v,k),qe=xe.get(we);if(qe){_n(p,k,qe);return}var Re=ve?ve(fe,we,k+"",p,v,xe):void 0,Et=Re===void 0;if(Et){var kn=wn(we),$n=!kn&&Bs(we),Hs=!kn&&!$n&&Fs(we);Re=we,kn||$n||Hs?wn(fe)?Re=fe:B7(fe)?Re=C7(fe):$n?(Et=!1,Re=v7(we,!0)):Hs?(Et=!1,Re=y7(we,!0)):Re=[]:I7(we)||xn(we)?(Re=fe,xn(fe)?Re=F7(fe):(!dt(fe)||Tn(fe))&&(Re=T7(we))):Et=!1}Et&&(xe.set(we,Re),pe(Re,we,te,ve,xe),xe.delete(we)),_n(p,k,Re)}function m7(p,v){return P7(D7(p,v,Rs),p+"")}var g7=qt?function(p,v){return qt(p,"toString",{configurable:!0,enumerable:!1,value:R7(v),writable:!0})}:Rs;function v7(p,v){if(v)return p.slice();var k=p.length,te=Gt?Gt(k):new p.constructor(k);return p.copy(te),te}function _7(p){var v=new p.constructor(p.byteLength);return new jt(v).set(new jt(p)),v}function y7(p,v){var k=v?_7(p.buffer):p.buffer;return new p.constructor(k,p.byteOffset,p.length)}function C7(p,v){var k=-1,te=p.length;for(v||(v=Array(te));++k<te;)v[k]=p[k];return v}function b7(p,v,k,te){var pe=!k;k||(k={});for(var ve=-1,xe=v.length;++ve<xe;){var fe=v[ve],we=te?te(k[fe],p[fe],fe,k,p):void 0;we===void 0&&(we=p[fe]),pe?yn(k,fe,we):c7(k,fe,we)}return k}function x7(p){return m7(function(v,k){var te=-1,pe=k.length,ve=pe>1?k[pe-1]:void 0,xe=pe>2?k[2]:void 0;for(ve=p.length>3&&typeof ve=="function"?(pe--,ve):void 0,xe&&k7(k[0],k[1],xe)&&(ve=pe<3?void 0:ve,pe=1),v=Object(v);++te<pe;){var fe=k[te];fe&&p(v,fe,te,ve)}return v})}function w7(p){return function(v,k,te){for(var pe=-1,ve=Object(v),xe=te(v),fe=xe.length;fe--;){var we=xe[p?fe:++pe];if(k(ve[we],we,ve)===!1)break}return v}}function Zt(p,v){var k=p.__data__;return $7(v)?k[typeof v=="string"?"string":"hash"]:k.map}function Cn(p,v){var k=Ae(p,v);return d7(k)?k:void 0}function S7(p){var v=De.call(p,ct),k=p[ct];try{p[ct]=void 0;var te=!0}catch{}var pe=Ke.call(p);return te&&(v?p[ct]=k:delete p[ct]),pe}function T7(p){return typeof p.constructor=="function"&&!zs(p)?N8($s(p)):{}}function Os(p,v){var k=typeof p;return v=v==null?s:v,!!v&&(k=="number"||k!="symbol"&&A.test(p))&&p>-1&&p%1==0&&p<v}function k7(p,v,k){if(!dt(k))return!1;var te=typeof v;return(te=="number"?Sn(k)&&Os(v,k.length):te=="string"&&v in k)?Yt(k[v],p):!1}function $7(p){var v=typeof p;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?p!=="__proto__":p===null}function E7(p){return!!et&&et in p}function zs(p){var v=p&&p.constructor,k=typeof v=="function"&&v.prototype||Me;return p===k}function M7(p){var v=[];if(p!=null)for(var k in Object(p))v.push(k);return v}function L7(p){return Ke.call(p)}function D7(p,v,k){return v=Ms(v===void 0?p.length-1:v,0),function(){for(var te=arguments,pe=-1,ve=Ms(te.length-v,0),xe=Array(ve);++pe<ve;)xe[pe]=te[v+pe];pe=-1;for(var fe=Array(v+1);++pe<v;)fe[pe]=te[pe];return fe[v]=k(xe),Se(p,this,fe)}}function bn(p,v){if(!(v==="constructor"&&typeof p[v]=="function")&&v!="__proto__")return p[v]}var P7=O7(g7);function O7(p){var v=0,k=0;return function(){var te=H8(),pe=o-(te-k);if(k=te,pe>0){if(++v>=i)return arguments[0]}else v=0;return p.apply(void 0,arguments)}}function z7(p){if(p!=null){try{return Le.call(p)}catch{}try{return p+""}catch{}}return""}function Yt(p,v){return p===v||p!==p&&v!==v}var xn=Ds(function(){return arguments}())?Ds:function(p){return $t(p)&&De.call(p,"callee")&&!F8.call(p,"callee")},wn=Array.isArray;function Sn(p){return p!=null&&Is(p.length)&&!Tn(p)}function B7(p){return $t(p)&&Sn(p)}var Bs=R8||H7;function Tn(p){if(!dt(p))return!1;var v=Ut(p);return v==b||v==x||v==l||v==S}function Is(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=s}function dt(p){var v=typeof p;return p!=null&&(v=="object"||v=="function")}function $t(p){return p!=null&&typeof p=="object"}function I7(p){if(!$t(p)||Ut(p)!=D)return!1;var v=$s(p);if(v===null)return!0;var k=De.call(v,"constructor")&&v.constructor;return typeof k=="function"&&k instanceof k&&Le.call(k)==lt}var Fs=he?ye(he):h7;function F7(p){return b7(p,As(p))}function As(p){return Sn(p)?l7(p,!0):f7(p)}var A7=x7(function(p,v,k){Ps(p,v,k)});function R7(p){return function(){return p}}function Rs(p){return p}function H7(){return!1}t.exports=A7}(Ot,Ot.exports);var la=Ot.exports;function ca(){if(!arguments.length)return[];var t=arguments[0];return ua(t)?t:[t]}var ua=Array.isArray,da=ca;const g=or,ae=t=>t.toFixed(7).replace(/(\.[0-9]+?)0+$/,"$1").replace(/\.0$/,""),ze=t=>`${ae(t/16)}rem`,u=(t,e)=>`${ae(t/e)}em`,Xe=t=>{t=t.replace("#",""),t=t.length===3?t.replace(/./g,"$&$&"):t;const e=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),n=parseInt(t.substring(4,6),16);return`${e} ${r} ${n}`};let cr={sm:{css:[{fontSize:ze(14),lineHeight:ae(24/14),p:{marginTop:u(16,14),marginBottom:u(16,14)},'[class~="lead"]':{fontSize:u(18,14),lineHeight:ae(28/18),marginTop:u(16,18),marginBottom:u(16,18)},blockquote:{marginTop:u(24,18),marginBottom:u(24,18),paddingInlineStart:u(20,18)},h1:{fontSize:u(30,14),marginTop:"0",marginBottom:u(24,30),lineHeight:ae(36/30)},h2:{fontSize:u(20,14),marginTop:u(32,20),marginBottom:u(16,20),lineHeight:ae(28/20)},h3:{fontSize:u(18,14),marginTop:u(28,18),marginBottom:u(8,18),lineHeight:ae(28/18)},h4:{marginTop:u(20,14),marginBottom:u(8,14),lineHeight:ae(20/14)},img:{marginTop:u(24,14),marginBottom:u(24,14)},picture:{marginTop:u(24,14),marginBottom:u(24,14)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:u(24,14),marginBottom:u(24,14)},kbd:{fontSize:u(12,14),borderRadius:ze(5),paddingTop:u(2,14),paddingInlineEnd:u(5,14),paddingBottom:u(2,14),paddingInlineStart:u(5,14)},code:{fontSize:u(12,14)},"h2 code":{fontSize:u(18,20)},"h3 code":{fontSize:u(16,18)},pre:{fontSize:u(12,14),lineHeight:ae(20/12),marginTop:u(20,12),marginBottom:u(20,12),borderRadius:ze(4),paddingTop:u(8,12),paddingInlineEnd:u(12,12),paddingBottom:u(8,12),paddingInlineStart:u(12,12)},ol:{marginTop:u(16,14),marginBottom:u(16,14),paddingInlineStart:u(22,14)},ul:{marginTop:u(16,14),marginBottom:u(16,14),paddingInlineStart:u(22,14)},li:{marginTop:u(4,14),marginBottom:u(4,14)},"ol > li":{paddingInlineStart:u(6,14)},"ul > li":{paddingInlineStart:u(6,14)},"> ul > li p":{marginTop:u(8,14),marginBottom:u(8,14)},"> ul > li > p:first-child":{marginTop:u(16,14)},"> ul > li > p:last-child":{marginBottom:u(16,14)},"> ol > li > p:first-child":{marginTop:u(16,14)},"> ol > li > p:last-child":{marginBottom:u(16,14)},"ul ul, ul ol, ol ul, ol ol":{marginTop:u(8,14),marginBottom:u(8,14)},dl:{marginTop:u(16,14),marginBottom:u(16,14)},dt:{marginTop:u(16,14)},dd:{marginTop:u(4,14),paddingInlineStart:u(22,14)},hr:{marginTop:u(40,14),marginBottom:u(40,14)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:u(12,14),lineHeight:ae(18/12)},"thead th":{paddingInlineEnd:u(12,12),paddingBottom:u(8,12),paddingInlineStart:u(12,12)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:u(8,12),paddingInlineEnd:u(12,12),paddingBottom:u(8,12),paddingInlineStart:u(12,12)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:u(24,14),marginBottom:u(24,14)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:u(12,14),lineHeight:ae(16/12),marginTop:u(8,12)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},base:{css:[{fontSize:ze(16),lineHeight:ae(28/16),p:{marginTop:u(20,16),marginBottom:u(20,16)},'[class~="lead"]':{fontSize:u(20,16),lineHeight:ae(32/20),marginTop:u(24,20),marginBottom:u(24,20)},blockquote:{marginTop:u(32,20),marginBottom:u(32,20),paddingInlineStart:u(20,20)},h1:{fontSize:u(36,16),marginTop:"0",marginBottom:u(32,36),lineHeight:ae(40/36)},h2:{fontSize:u(24,16),marginTop:u(48,24),marginBottom:u(24,24),lineHeight:ae(32/24)},h3:{fontSize:u(20,16),marginTop:u(32,20),marginBottom:u(12,20),lineHeight:ae(32/20)},h4:{marginTop:u(24,16),marginBottom:u(8,16),lineHeight:ae(24/16)},img:{marginTop:u(32,16),marginBottom:u(32,16)},picture:{marginTop:u(32,16),marginBottom:u(32,16)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:u(32,16),marginBottom:u(32,16)},kbd:{fontSize:u(14,16),borderRadius:ze(5),paddingTop:u(3,16),paddingInlineEnd:u(6,16),paddingBottom:u(3,16),paddingInlineStart:u(6,16)},code:{fontSize:u(14,16)},"h2 code":{fontSize:u(21,24)},"h3 code":{fontSize:u(18,20)},pre:{fontSize:u(14,16),lineHeight:ae(24/14),marginTop:u(24,14),marginBottom:u(24,14),borderRadius:ze(6),paddingTop:u(12,14),paddingInlineEnd:u(16,14),paddingBottom:u(12,14),paddingInlineStart:u(16,14)},ol:{marginTop:u(20,16),marginBottom:u(20,16),paddingInlineStart:u(26,16)},ul:{marginTop:u(20,16),marginBottom:u(20,16),paddingInlineStart:u(26,16)},li:{marginTop:u(8,16),marginBottom:u(8,16)},"ol > li":{paddingInlineStart:u(6,16)},"ul > li":{paddingInlineStart:u(6,16)},"> ul > li p":{marginTop:u(12,16),marginBottom:u(12,16)},"> ul > li > p:first-child":{marginTop:u(20,16)},"> ul > li > p:last-child":{marginBottom:u(20,16)},"> ol > li > p:first-child":{marginTop:u(20,16)},"> ol > li > p:last-child":{marginBottom:u(20,16)},"ul ul, ul ol, ol ul, ol ol":{marginTop:u(12,16),marginBottom:u(12,16)},dl:{marginTop:u(20,16),marginBottom:u(20,16)},dt:{marginTop:u(20,16)},dd:{marginTop:u(8,16),paddingInlineStart:u(26,16)},hr:{marginTop:u(48,16),marginBottom:u(48,16)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:u(14,16),lineHeight:ae(24/14)},"thead th":{paddingInlineEnd:u(8,14),paddingBottom:u(8,14),paddingInlineStart:u(8,14)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:u(8,14),paddingInlineEnd:u(8,14),paddingBottom:u(8,14),paddingInlineStart:u(8,14)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:u(32,16),marginBottom:u(32,16)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:u(14,16),lineHeight:ae(20/14),marginTop:u(12,14)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},lg:{css:[{fontSize:ze(18),lineHeight:ae(32/18),p:{marginTop:u(24,18),marginBottom:u(24,18)},'[class~="lead"]':{fontSize:u(22,18),lineHeight:ae(32/22),marginTop:u(24,22),marginBottom:u(24,22)},blockquote:{marginTop:u(40,24),marginBottom:u(40,24),paddingInlineStart:u(24,24)},h1:{fontSize:u(48,18),marginTop:"0",marginBottom:u(40,48),lineHeight:ae(48/48)},h2:{fontSize:u(30,18),marginTop:u(56,30),marginBottom:u(32,30),lineHeight:ae(40/30)},h3:{fontSize:u(24,18),marginTop:u(40,24),marginBottom:u(16,24),lineHeight:ae(36/24)},h4:{marginTop:u(32,18),marginBottom:u(8,18),lineHeight:ae(28/18)},img:{marginTop:u(32,18),marginBottom:u(32,18)},picture:{marginTop:u(32,18),marginBottom:u(32,18)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:u(32,18),marginBottom:u(32,18)},kbd:{fontSize:u(16,18),borderRadius:ze(5),paddingTop:u(4,18),paddingInlineEnd:u(8,18),paddingBottom:u(4,18),paddingInlineStart:u(8,18)},code:{fontSize:u(16,18)},"h2 code":{fontSize:u(26,30)},"h3 code":{fontSize:u(21,24)},pre:{fontSize:u(16,18),lineHeight:ae(28/16),marginTop:u(32,16),marginBottom:u(32,16),borderRadius:ze(6),paddingTop:u(16,16),paddingInlineEnd:u(24,16),paddingBottom:u(16,16),paddingInlineStart:u(24,16)},ol:{marginTop:u(24,18),marginBottom:u(24,18),paddingInlineStart:u(28,18)},ul:{marginTop:u(24,18),marginBottom:u(24,18),paddingInlineStart:u(28,18)},li:{marginTop:u(12,18),marginBottom:u(12,18)},"ol > li":{paddingInlineStart:u(8,18)},"ul > li":{paddingInlineStart:u(8,18)},"> ul > li p":{marginTop:u(16,18),marginBottom:u(16,18)},"> ul > li > p:first-child":{marginTop:u(24,18)},"> ul > li > p:last-child":{marginBottom:u(24,18)},"> ol > li > p:first-child":{marginTop:u(24,18)},"> ol > li > p:last-child":{marginBottom:u(24,18)},"ul ul, ul ol, ol ul, ol ol":{marginTop:u(16,18),marginBottom:u(16,18)},dl:{marginTop:u(24,18),marginBottom:u(24,18)},dt:{marginTop:u(24,18)},dd:{marginTop:u(12,18),paddingInlineStart:u(28,18)},hr:{marginTop:u(56,18),marginBottom:u(56,18)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:u(16,18),lineHeight:ae(24/16)},"thead th":{paddingInlineEnd:u(12,16),paddingBottom:u(12,16),paddingInlineStart:u(12,16)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:u(12,16),paddingInlineEnd:u(12,16),paddingBottom:u(12,16),paddingInlineStart:u(12,16)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:u(32,18),marginBottom:u(32,18)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:u(16,18),lineHeight:ae(24/16),marginTop:u(16,16)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},xl:{css:[{fontSize:ze(20),lineHeight:ae(36/20),p:{marginTop:u(24,20),marginBottom:u(24,20)},'[class~="lead"]':{fontSize:u(24,20),lineHeight:ae(36/24),marginTop:u(24,24),marginBottom:u(24,24)},blockquote:{marginTop:u(48,30),marginBottom:u(48,30),paddingInlineStart:u(32,30)},h1:{fontSize:u(56,20),marginTop:"0",marginBottom:u(48,56),lineHeight:ae(56/56)},h2:{fontSize:u(36,20),marginTop:u(56,36),marginBottom:u(32,36),lineHeight:ae(40/36)},h3:{fontSize:u(30,20),marginTop:u(48,30),marginBottom:u(20,30),lineHeight:ae(40/30)},h4:{marginTop:u(36,20),marginBottom:u(12,20),lineHeight:ae(32/20)},img:{marginTop:u(40,20),marginBottom:u(40,20)},picture:{marginTop:u(40,20),marginBottom:u(40,20)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:u(40,20),marginBottom:u(40,20)},kbd:{fontSize:u(18,20),borderRadius:ze(5),paddingTop:u(5,20),paddingInlineEnd:u(8,20),paddingBottom:u(5,20),paddingInlineStart:u(8,20)},code:{fontSize:u(18,20)},"h2 code":{fontSize:u(31,36)},"h3 code":{fontSize:u(27,30)},pre:{fontSize:u(18,20),lineHeight:ae(32/18),marginTop:u(36,18),marginBottom:u(36,18),borderRadius:ze(8),paddingTop:u(20,18),paddingInlineEnd:u(24,18),paddingBottom:u(20,18),paddingInlineStart:u(24,18)},ol:{marginTop:u(24,20),marginBottom:u(24,20),paddingInlineStart:u(32,20)},ul:{marginTop:u(24,20),marginBottom:u(24,20),paddingInlineStart:u(32,20)},li:{marginTop:u(12,20),marginBottom:u(12,20)},"ol > li":{paddingInlineStart:u(8,20)},"ul > li":{paddingInlineStart:u(8,20)},"> ul > li p":{marginTop:u(16,20),marginBottom:u(16,20)},"> ul > li > p:first-child":{marginTop:u(24,20)},"> ul > li > p:last-child":{marginBottom:u(24,20)},"> ol > li > p:first-child":{marginTop:u(24,20)},"> ol > li > p:last-child":{marginBottom:u(24,20)},"ul ul, ul ol, ol ul, ol ol":{marginTop:u(16,20),marginBottom:u(16,20)},dl:{marginTop:u(24,20),marginBottom:u(24,20)},dt:{marginTop:u(24,20)},dd:{marginTop:u(12,20),paddingInlineStart:u(32,20)},hr:{marginTop:u(56,20),marginBottom:u(56,20)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:u(18,20),lineHeight:ae(28/18)},"thead th":{paddingInlineEnd:u(12,18),paddingBottom:u(16,18),paddingInlineStart:u(12,18)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:u(16,18),paddingInlineEnd:u(12,18),paddingBottom:u(16,18),paddingInlineStart:u(12,18)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:u(40,20),marginBottom:u(40,20)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:u(18,20),lineHeight:ae(28/18),marginTop:u(18,18)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},"2xl":{css:[{fontSize:ze(24),lineHeight:ae(40/24),p:{marginTop:u(32,24),marginBottom:u(32,24)},'[class~="lead"]':{fontSize:u(30,24),lineHeight:ae(44/30),marginTop:u(32,30),marginBottom:u(32,30)},blockquote:{marginTop:u(64,36),marginBottom:u(64,36),paddingInlineStart:u(40,36)},h1:{fontSize:u(64,24),marginTop:"0",marginBottom:u(56,64),lineHeight:ae(64/64)},h2:{fontSize:u(48,24),marginTop:u(72,48),marginBottom:u(40,48),lineHeight:ae(52/48)},h3:{fontSize:u(36,24),marginTop:u(56,36),marginBottom:u(24,36),lineHeight:ae(44/36)},h4:{marginTop:u(40,24),marginBottom:u(16,24),lineHeight:ae(36/24)},img:{marginTop:u(48,24),marginBottom:u(48,24)},picture:{marginTop:u(48,24),marginBottom:u(48,24)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:u(48,24),marginBottom:u(48,24)},kbd:{fontSize:u(20,24),borderRadius:ze(6),paddingTop:u(6,24),paddingInlineEnd:u(8,24),paddingBottom:u(6,24),paddingInlineStart:u(8,24)},code:{fontSize:u(20,24)},"h2 code":{fontSize:u(42,48)},"h3 code":{fontSize:u(32,36)},pre:{fontSize:u(20,24),lineHeight:ae(36/20),marginTop:u(40,20),marginBottom:u(40,20),borderRadius:ze(8),paddingTop:u(24,20),paddingInlineEnd:u(32,20),paddingBottom:u(24,20),paddingInlineStart:u(32,20)},ol:{marginTop:u(32,24),marginBottom:u(32,24),paddingInlineStart:u(38,24)},ul:{marginTop:u(32,24),marginBottom:u(32,24),paddingInlineStart:u(38,24)},li:{marginTop:u(12,24),marginBottom:u(12,24)},"ol > li":{paddingInlineStart:u(10,24)},"ul > li":{paddingInlineStart:u(10,24)},"> ul > li p":{marginTop:u(20,24),marginBottom:u(20,24)},"> ul > li > p:first-child":{marginTop:u(32,24)},"> ul > li > p:last-child":{marginBottom:u(32,24)},"> ol > li > p:first-child":{marginTop:u(32,24)},"> ol > li > p:last-child":{marginBottom:u(32,24)},"ul ul, ul ol, ol ul, ol ol":{marginTop:u(16,24),marginBottom:u(16,24)},dl:{marginTop:u(32,24),marginBottom:u(32,24)},dt:{marginTop:u(32,24)},dd:{marginTop:u(12,24),paddingInlineStart:u(38,24)},hr:{marginTop:u(72,24),marginBottom:u(72,24)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:u(20,24),lineHeight:ae(28/20)},"thead th":{paddingInlineEnd:u(12,20),paddingBottom:u(16,20),paddingInlineStart:u(12,20)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:u(16,20),paddingInlineEnd:u(12,20),paddingBottom:u(16,20),paddingInlineStart:u(12,20)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:u(48,24),marginBottom:u(48,24)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:u(20,24),lineHeight:ae(32/20),marginTop:u(20,20)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},slate:{css:{"--tw-prose-body":g.slate[700],"--tw-prose-headings":g.slate[900],"--tw-prose-lead":g.slate[600],"--tw-prose-links":g.slate[900],"--tw-prose-bold":g.slate[900],"--tw-prose-counters":g.slate[500],"--tw-prose-bullets":g.slate[300],"--tw-prose-hr":g.slate[200],"--tw-prose-quotes":g.slate[900],"--tw-prose-quote-borders":g.slate[200],"--tw-prose-captions":g.slate[500],"--tw-prose-kbd":g.slate[900],"--tw-prose-kbd-shadows":Xe(g.slate[900]),"--tw-prose-code":g.slate[900],"--tw-prose-pre-code":g.slate[200],"--tw-prose-pre-bg":g.slate[800],"--tw-prose-th-borders":g.slate[300],"--tw-prose-td-borders":g.slate[200],"--tw-prose-invert-body":g.slate[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.slate[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.slate[400],"--tw-prose-invert-bullets":g.slate[600],"--tw-prose-invert-hr":g.slate[700],"--tw-prose-invert-quotes":g.slate[100],"--tw-prose-invert-quote-borders":g.slate[700],"--tw-prose-invert-captions":g.slate[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Xe(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.slate[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.slate[600],"--tw-prose-invert-td-borders":g.slate[700]}},gray:{css:{"--tw-prose-body":g.gray[700],"--tw-prose-headings":g.gray[900],"--tw-prose-lead":g.gray[600],"--tw-prose-links":g.gray[900],"--tw-prose-bold":g.gray[900],"--tw-prose-counters":g.gray[500],"--tw-prose-bullets":g.gray[300],"--tw-prose-hr":g.gray[200],"--tw-prose-quotes":g.gray[900],"--tw-prose-quote-borders":g.gray[200],"--tw-prose-captions":g.gray[500],"--tw-prose-kbd":g.gray[900],"--tw-prose-kbd-shadows":Xe(g.gray[900]),"--tw-prose-code":g.gray[900],"--tw-prose-pre-code":g.gray[200],"--tw-prose-pre-bg":g.gray[800],"--tw-prose-th-borders":g.gray[300],"--tw-prose-td-borders":g.gray[200],"--tw-prose-invert-body":g.gray[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.gray[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.gray[400],"--tw-prose-invert-bullets":g.gray[600],"--tw-prose-invert-hr":g.gray[700],"--tw-prose-invert-quotes":g.gray[100],"--tw-prose-invert-quote-borders":g.gray[700],"--tw-prose-invert-captions":g.gray[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Xe(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.gray[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.gray[600],"--tw-prose-invert-td-borders":g.gray[700]}},zinc:{css:{"--tw-prose-body":g.zinc[700],"--tw-prose-headings":g.zinc[900],"--tw-prose-lead":g.zinc[600],"--tw-prose-links":g.zinc[900],"--tw-prose-bold":g.zinc[900],"--tw-prose-counters":g.zinc[500],"--tw-prose-bullets":g.zinc[300],"--tw-prose-hr":g.zinc[200],"--tw-prose-quotes":g.zinc[900],"--tw-prose-quote-borders":g.zinc[200],"--tw-prose-captions":g.zinc[500],"--tw-prose-kbd":g.zinc[900],"--tw-prose-kbd-shadows":Xe(g.zinc[900]),"--tw-prose-code":g.zinc[900],"--tw-prose-pre-code":g.zinc[200],"--tw-prose-pre-bg":g.zinc[800],"--tw-prose-th-borders":g.zinc[300],"--tw-prose-td-borders":g.zinc[200],"--tw-prose-invert-body":g.zinc[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.zinc[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.zinc[400],"--tw-prose-invert-bullets":g.zinc[600],"--tw-prose-invert-hr":g.zinc[700],"--tw-prose-invert-quotes":g.zinc[100],"--tw-prose-invert-quote-borders":g.zinc[700],"--tw-prose-invert-captions":g.zinc[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Xe(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.zinc[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.zinc[600],"--tw-prose-invert-td-borders":g.zinc[700]}},neutral:{css:{"--tw-prose-body":g.neutral[700],"--tw-prose-headings":g.neutral[900],"--tw-prose-lead":g.neutral[600],"--tw-prose-links":g.neutral[900],"--tw-prose-bold":g.neutral[900],"--tw-prose-counters":g.neutral[500],"--tw-prose-bullets":g.neutral[300],"--tw-prose-hr":g.neutral[200],"--tw-prose-quotes":g.neutral[900],"--tw-prose-quote-borders":g.neutral[200],"--tw-prose-captions":g.neutral[500],"--tw-prose-kbd":g.neutral[900],"--tw-prose-kbd-shadows":Xe(g.neutral[900]),"--tw-prose-code":g.neutral[900],"--tw-prose-pre-code":g.neutral[200],"--tw-prose-pre-bg":g.neutral[800],"--tw-prose-th-borders":g.neutral[300],"--tw-prose-td-borders":g.neutral[200],"--tw-prose-invert-body":g.neutral[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.neutral[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.neutral[400],"--tw-prose-invert-bullets":g.neutral[600],"--tw-prose-invert-hr":g.neutral[700],"--tw-prose-invert-quotes":g.neutral[100],"--tw-prose-invert-quote-borders":g.neutral[700],"--tw-prose-invert-captions":g.neutral[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Xe(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.neutral[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.neutral[600],"--tw-prose-invert-td-borders":g.neutral[700]}},stone:{css:{"--tw-prose-body":g.stone[700],"--tw-prose-headings":g.stone[900],"--tw-prose-lead":g.stone[600],"--tw-prose-links":g.stone[900],"--tw-prose-bold":g.stone[900],"--tw-prose-counters":g.stone[500],"--tw-prose-bullets":g.stone[300],"--tw-prose-hr":g.stone[200],"--tw-prose-quotes":g.stone[900],"--tw-prose-quote-borders":g.stone[200],"--tw-prose-captions":g.stone[500],"--tw-prose-kbd":g.stone[900],"--tw-prose-kbd-shadows":Xe(g.stone[900]),"--tw-prose-code":g.stone[900],"--tw-prose-pre-code":g.stone[200],"--tw-prose-pre-bg":g.stone[800],"--tw-prose-th-borders":g.stone[300],"--tw-prose-td-borders":g.stone[200],"--tw-prose-invert-body":g.stone[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.stone[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.stone[400],"--tw-prose-invert-bullets":g.stone[600],"--tw-prose-invert-hr":g.stone[700],"--tw-prose-invert-quotes":g.stone[100],"--tw-prose-invert-quote-borders":g.stone[700],"--tw-prose-invert-captions":g.stone[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Xe(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.stone[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.stone[600],"--tw-prose-invert-td-borders":g.stone[700]}},red:{css:{"--tw-prose-links":g.red[600],"--tw-prose-invert-links":g.red[500]}},orange:{css:{"--tw-prose-links":g.orange[600],"--tw-prose-invert-links":g.orange[500]}},amber:{css:{"--tw-prose-links":g.amber[600],"--tw-prose-invert-links":g.amber[500]}},yellow:{css:{"--tw-prose-links":g.yellow[600],"--tw-prose-invert-links":g.yellow[500]}},lime:{css:{"--tw-prose-links":g.lime[600],"--tw-prose-invert-links":g.lime[500]}},green:{css:{"--tw-prose-links":g.green[600],"--tw-prose-invert-links":g.green[500]}},emerald:{css:{"--tw-prose-links":g.emerald[600],"--tw-prose-invert-links":g.emerald[500]}},teal:{css:{"--tw-prose-links":g.teal[600],"--tw-prose-invert-links":g.teal[500]}},cyan:{css:{"--tw-prose-links":g.cyan[600],"--tw-prose-invert-links":g.cyan[500]}},sky:{css:{"--tw-prose-links":g.sky[600],"--tw-prose-invert-links":g.sky[500]}},blue:{css:{"--tw-prose-links":g.blue[600],"--tw-prose-invert-links":g.blue[500]}},indigo:{css:{"--tw-prose-links":g.indigo[600],"--tw-prose-invert-links":g.indigo[500]}},violet:{css:{"--tw-prose-links":g.violet[600],"--tw-prose-invert-links":g.violet[500]}},purple:{css:{"--tw-prose-links":g.purple[600],"--tw-prose-invert-links":g.purple[500]}},fuchsia:{css:{"--tw-prose-links":g.fuchsia[600],"--tw-prose-invert-links":g.fuchsia[500]}},pink:{css:{"--tw-prose-links":g.pink[600],"--tw-prose-invert-links":g.pink[500]}},rose:{css:{"--tw-prose-links":g.rose[600],"--tw-prose-invert-links":g.rose[500]}},invert:{css:{"--tw-prose-body":"var(--tw-prose-invert-body)","--tw-prose-headings":"var(--tw-prose-invert-headings)","--tw-prose-lead":"var(--tw-prose-invert-lead)","--tw-prose-links":"var(--tw-prose-invert-links)","--tw-prose-bold":"var(--tw-prose-invert-bold)","--tw-prose-counters":"var(--tw-prose-invert-counters)","--tw-prose-bullets":"var(--tw-prose-invert-bullets)","--tw-prose-hr":"var(--tw-prose-invert-hr)","--tw-prose-quotes":"var(--tw-prose-invert-quotes)","--tw-prose-quote-borders":"var(--tw-prose-invert-quote-borders)","--tw-prose-captions":"var(--tw-prose-invert-captions)","--tw-prose-kbd":"var(--tw-prose-invert-kbd)","--tw-prose-kbd-shadows":"var(--tw-prose-invert-kbd-shadows)","--tw-prose-code":"var(--tw-prose-invert-code)","--tw-prose-pre-code":"var(--tw-prose-invert-pre-code)","--tw-prose-pre-bg":"var(--tw-prose-invert-pre-bg)","--tw-prose-th-borders":"var(--tw-prose-invert-th-borders)","--tw-prose-td-borders":"var(--tw-prose-invert-td-borders)"}}};var ha={DEFAULT:{css:[{color:"var(--tw-prose-body)",maxWidth:"65ch",p:{},'[class~="lead"]':{color:"var(--tw-prose-lead)"},a:{color:"var(--tw-prose-links)",textDecoration:"underline",fontWeight:"500"},strong:{color:"var(--tw-prose-bold)",fontWeight:"600"},"a strong":{color:"inherit"},"blockquote strong":{color:"inherit"},"thead th strong":{color:"inherit"},ol:{listStyleType:"decimal"},'ol[type="A"]':{listStyleType:"upper-alpha"},'ol[type="a"]':{listStyleType:"lower-alpha"},'ol[type="A" s]':{listStyleType:"upper-alpha"},'ol[type="a" s]':{listStyleType:"lower-alpha"},'ol[type="I"]':{listStyleType:"upper-roman"},'ol[type="i"]':{listStyleType:"lower-roman"},'ol[type="I" s]':{listStyleType:"upper-roman"},'ol[type="i" s]':{listStyleType:"lower-roman"},'ol[type="1"]':{listStyleType:"decimal"},ul:{listStyleType:"disc"},"ol > li::marker":{fontWeight:"400",color:"var(--tw-prose-counters)"},"ul > li::marker":{color:"var(--tw-prose-bullets)"},dt:{color:"var(--tw-prose-headings)",fontWeight:"600"},hr:{borderColor:"var(--tw-prose-hr)",borderTopWidth:1},blockquote:{fontWeight:"500",fontStyle:"italic",color:"var(--tw-prose-quotes)",borderInlineStartWidth:"0.25rem",borderInlineStartColor:"var(--tw-prose-quote-borders)",quotes:'"\\201C""\\201D""\\2018""\\2019"'},"blockquote p:first-of-type::before":{content:"open-quote"},"blockquote p:last-of-type::after":{content:"close-quote"},h1:{color:"var(--tw-prose-headings)",fontWeight:"800"},"h1 strong":{fontWeight:"900",color:"inherit"},h2:{color:"var(--tw-prose-headings)",fontWeight:"700"},"h2 strong":{fontWeight:"800",color:"inherit"},h3:{color:"var(--tw-prose-headings)",fontWeight:"600"},"h3 strong":{fontWeight:"700",color:"inherit"},h4:{color:"var(--tw-prose-headings)",fontWeight:"600"},"h4 strong":{fontWeight:"700",color:"inherit"},img:{},picture:{display:"block"},video:{},kbd:{fontWeight:"500",fontFamily:"inherit",color:"var(--tw-prose-kbd)",boxShadow:"0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%)"},code:{color:"var(--tw-prose-code)",fontWeight:"600"},"code::before":{content:'"`"'},"code::after":{content:'"`"'},"a code":{color:"inherit"},"h1 code":{color:"inherit"},"h2 code":{color:"inherit"},"h3 code":{color:"inherit"},"h4 code":{color:"inherit"},"blockquote code":{color:"inherit"},"thead th code":{color:"inherit"},pre:{color:"var(--tw-prose-pre-code)",backgroundColor:"var(--tw-prose-pre-bg)",overflowX:"auto",fontWeight:"400"},"pre code":{backgroundColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0",fontWeight:"inherit",color:"inherit",fontSize:"inherit",fontFamily:"inherit",lineHeight:"inherit"},"pre code::before":{content:"none"},"pre code::after":{content:"none"},table:{width:"100%",tableLayout:"auto",marginTop:u(32,16),marginBottom:u(32,16)},thead:{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-th-borders)"},"thead th":{color:"var(--tw-prose-headings)",fontWeight:"600",verticalAlign:"bottom"},"tbody tr":{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-td-borders)"},"tbody tr:last-child":{borderBottomWidth:"0"},"tbody td":{verticalAlign:"baseline"},tfoot:{borderTopWidth:"1px",borderTopColor:"var(--tw-prose-th-borders)"},"tfoot td":{verticalAlign:"top"},"th, td":{textAlign:"start"},"figure > *":{},figcaption:{color:"var(--tw-prose-captions)"}},cr.gray.css,...cr.base.css]},...cr},fa="[object Object]";function pa(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function ma(t,e){return function(r){return t(e(r))}}var ga=Function.prototype,Jn=Object.prototype,ei=ga.toString,va=Jn.hasOwnProperty,_a=ei.call(Object),ya=Jn.toString,Ca=ma(Object.getPrototypeOf,Object);function ba(t){return!!t&&typeof t=="object"}function xa(t){if(!ba(t)||ya.call(t)!=fa||pa(t))return!1;var e=Ca(t);if(e===null)return!0;var r=va.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&ei.call(r)==_a}var wa=xa,ur={exports:{}},dr={exports:{}},hr={exports:{}},fr={exports:{}},pr={exports:{}},mr={exports:{}},Fe={},gr={exports:{}};(function(t,e){e.__esModule=!0,e.default=i;function r(o){for(var s=o.toLowerCase(),c="",a=!1,l=0;l<6&&s[l]!==void 0;l++){var d=s.charCodeAt(l),f=d>=97&&d<=102||d>=48&&d<=57;if(a=d===32,!f)break;c+=s[l]}if(c.length!==0){var m=parseInt(c,16),b=m>=55296&&m<=57343;return b||m===0||m>1114111?["�",c.length+(a?1:0)]:[String.fromCodePoint(m),c.length+(a?1:0)]}}var n=/\\/;function i(o){var s=n.test(o);if(!s)return o;for(var c="",a=0;a<o.length;a++){if(o[a]==="\\"){var l=r(o.slice(a+1,a+7));if(l!==void 0){c+=l[0],a+=l[1];continue}if(o[a+1]==="\\"){c+="\\",a++;continue}o.length===a+1&&(c+=o[a]);continue}c+=o[a]}return c}t.exports=e.default})(gr,gr.exports);var ti=gr.exports,vr={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];for(;o.length>0;){var c=o.shift();if(!n[c])return;n=n[c]}return n}t.exports=e.default})(vr,vr.exports);var Sa=vr.exports,_r={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];for(;o.length>0;){var c=o.shift();n[c]||(n[c]={}),n=n[c]}}t.exports=e.default})(_r,_r.exports);var Ta=_r.exports,yr={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i="",o=n.indexOf("/*"),s=0;o>=0;){i=i+n.slice(s,o);var c=n.indexOf("*/",o+2);if(c<0)return i;s=c+2,o=n.indexOf("/*",s)}return i=i+n.slice(s),i}t.exports=e.default})(yr,yr.exports);var ka=yr.exports;Fe.__esModule=!0,Fe.stripComments=Fe.ensureObject=Fe.getProp=Fe.unesc=void 0;var $a=zt(ti);Fe.unesc=$a.default;var Ea=zt(Sa);Fe.getProp=Ea.default;var Ma=zt(Ta);Fe.ensureObject=Ma.default;var La=zt(ka);Fe.stripComments=La.default;function zt(t){return t&&t.__esModule?t:{default:t}}(function(t,e){e.__esModule=!0,e.default=void 0;var r=Fe;function n(c,a){for(var l=0;l<a.length;l++){var d=a[l];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(c,d.key,d)}}function i(c,a,l){return a&&n(c.prototype,a),l&&n(c,l),c}var o=function c(a,l){if(typeof a!="object"||a===null)return a;var d=new a.constructor;for(var f in a)if(a.hasOwnProperty(f)){var m=a[f],b=typeof m;f==="parent"&&b==="object"?l&&(d[f]=l):m instanceof Array?d[f]=m.map(function(x){return c(x,d)}):d[f]=c(m,d)}return d},s=function(){function c(l){l===void 0&&(l={}),Object.assign(this,l),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var a=c.prototype;return a.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},a.replaceWith=function(){if(this.parent){for(var d in arguments)this.parent.insertBefore(this,arguments[d]);this.remove()}return this},a.next=function(){return this.parent.at(this.parent.index(this)+1)},a.prev=function(){return this.parent.at(this.parent.index(this)-1)},a.clone=function(d){d===void 0&&(d={});var f=o(this);for(var m in d)f[m]=d[m];return f},a.appendToPropertyAndEscape=function(d,f,m){this.raws||(this.raws={});var b=this[d],x=this.raws[d];this[d]=b+f,x||m!==f?this.raws[d]=(x||b)+m:delete this.raws[d]},a.setPropertyAndEscape=function(d,f,m){this.raws||(this.raws={}),this[d]=f,this.raws[d]=m},a.setPropertyWithoutEscape=function(d,f){this[d]=f,this.raws&&delete this.raws[d]},a.isAtPosition=function(d,f){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>d||this.source.end.line<d||this.source.start.line===d&&this.source.start.column>f||this.source.end.line===d&&this.source.end.column<f)},a.stringifyProperty=function(d){return this.raws&&this.raws[d]||this[d]},a.valueToString=function(){return String(this.stringifyProperty("value"))},a.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},i(c,[{key:"rawSpaceBefore",get:function(){var d=this.raws&&this.raws.spaces&&this.raws.spaces.before;return d===void 0&&(d=this.spaces&&this.spaces.before),d||""},set:function(d){(0,r.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=d}},{key:"rawSpaceAfter",get:function(){var d=this.raws&&this.raws.spaces&&this.raws.spaces.after;return d===void 0&&(d=this.spaces.after),d||""},set:function(d){(0,r.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=d}}]),c}();e.default=s,t.exports=e.default})(mr,mr.exports);var it=mr.exports,ue={};ue.__esModule=!0,ue.UNIVERSAL=ue.ATTRIBUTE=ue.CLASS=ue.COMBINATOR=ue.COMMENT=ue.ID=ue.NESTING=ue.PSEUDO=ue.ROOT=ue.SELECTOR=ue.STRING=ue.TAG=void 0;var Da="tag";ue.TAG=Da;var Pa="string";ue.STRING=Pa;var Oa="selector";ue.SELECTOR=Oa;var za="root";ue.ROOT=za;var Ba="pseudo";ue.PSEUDO=Ba;var Ia="nesting";ue.NESTING=Ia;var Fa="id";ue.ID=Fa;var Aa="comment";ue.COMMENT=Aa;var Ra="combinator";ue.COMBINATOR=Ra;var Ha="class";ue.CLASS=Ha;var Na="attribute";ue.ATTRIBUTE=Na;var ja="universal";ue.UNIVERSAL=ja,function(t,e){e.__esModule=!0,e.default=void 0;var r=s(it),n=o(ue);function i(){if(typeof WeakMap!="function")return null;var h=new WeakMap;return i=function(){return h},h}function o(h){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var y=i();if(y&&y.has(h))return y.get(h);var $={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in h)if(Object.prototype.hasOwnProperty.call(h,S)){var R=D?Object.getOwnPropertyDescriptor(h,S):null;R&&(R.get||R.set)?Object.defineProperty($,S,R):$[S]=h[S]}return $.default=h,y&&y.set(h,$),$}function s(h){return h&&h.__esModule?h:{default:h}}function c(h,y){var $;if(typeof Symbol=="undefined"||h[Symbol.iterator]==null){if(Array.isArray(h)||($=a(h))||y&&h&&typeof h.length=="number"){$&&(h=$);var D=0;return function(){return D>=h.length?{done:!0}:{done:!1,value:h[D++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return $=h[Symbol.iterator](),$.next.bind($)}function a(h,y){if(h){if(typeof h=="string")return l(h,y);var $=Object.prototype.toString.call(h).slice(8,-1);if($==="Object"&&h.constructor&&($=h.constructor.name),$==="Map"||$==="Set")return Array.from(h);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return l(h,y)}}function l(h,y){(y==null||y>h.length)&&(y=h.length);for(var $=0,D=new Array(y);$<y;$++)D[$]=h[$];return D}function d(h,y){for(var $=0;$<y.length;$++){var D=y[$];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(h,D.key,D)}}function f(h,y,$){return y&&d(h.prototype,y),$&&d(h,$),h}function m(h,y){h.prototype=Object.create(y.prototype),h.prototype.constructor=h,b(h,y)}function b(h,y){return b=Object.setPrototypeOf||function(D,S){return D.__proto__=S,D},b(h,y)}var x=function(h){m(y,h);function y(D){var S;return S=h.call(this,D)||this,S.nodes||(S.nodes=[]),S}var $=y.prototype;return $.append=function(S){return S.parent=this,this.nodes.push(S),this},$.prepend=function(S){return S.parent=this,this.nodes.unshift(S),this},$.at=function(S){return this.nodes[S]},$.index=function(S){return typeof S=="number"?S:this.nodes.indexOf(S)},$.removeChild=function(S){S=this.index(S),this.at(S).parent=void 0,this.nodes.splice(S,1);var R;for(var E in this.indexes)R=this.indexes[E],R>=S&&(this.indexes[E]=R-1);return this},$.removeAll=function(){for(var S=c(this.nodes),R;!(R=S()).done;){var E=R.value;E.parent=void 0}return this.nodes=[],this},$.empty=function(){return this.removeAll()},$.insertAfter=function(S,R){R.parent=this;var E=this.index(S);this.nodes.splice(E+1,0,R),R.parent=this;var j;for(var Q in this.indexes)j=this.indexes[Q],E<=j&&(this.indexes[Q]=j+1);return this},$.insertBefore=function(S,R){R.parent=this;var E=this.index(S);this.nodes.splice(E,0,R),R.parent=this;var j;for(var Q in this.indexes)j=this.indexes[Q],j<=E&&(this.indexes[Q]=j+1);return this},$._findChildAtPosition=function(S,R){var E=void 0;return this.each(function(j){if(j.atPosition){var Q=j.atPosition(S,R);if(Q)return E=Q,!1}else if(j.isAtPosition(S,R))return E=j,!1}),E},$.atPosition=function(S,R){if(this.isAtPosition(S,R))return this._findChildAtPosition(S,R)||this},$._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},$.each=function(S){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var R=this.lastEach;if(this.indexes[R]=0,!!this.length){for(var E,j;this.indexes[R]<this.length&&(E=this.indexes[R],j=S(this.at(E),E),j!==!1);)this.indexes[R]+=1;if(delete this.indexes[R],j===!1)return!1}},$.walk=function(S){return this.each(function(R,E){var j=S(R,E);if(j!==!1&&R.length&&(j=R.walk(S)),j===!1)return!1})},$.walkAttributes=function(S){var R=this;return this.walk(function(E){if(E.type===n.ATTRIBUTE)return S.call(R,E)})},$.walkClasses=function(S){var R=this;return this.walk(function(E){if(E.type===n.CLASS)return S.call(R,E)})},$.walkCombinators=function(S){var R=this;return this.walk(function(E){if(E.type===n.COMBINATOR)return S.call(R,E)})},$.walkComments=function(S){var R=this;return this.walk(function(E){if(E.type===n.COMMENT)return S.call(R,E)})},$.walkIds=function(S){var R=this;return this.walk(function(E){if(E.type===n.ID)return S.call(R,E)})},$.walkNesting=function(S){var R=this;return this.walk(function(E){if(E.type===n.NESTING)return S.call(R,E)})},$.walkPseudos=function(S){var R=this;return this.walk(function(E){if(E.type===n.PSEUDO)return S.call(R,E)})},$.walkTags=function(S){var R=this;return this.walk(function(E){if(E.type===n.TAG)return S.call(R,E)})},$.walkUniversals=function(S){var R=this;return this.walk(function(E){if(E.type===n.UNIVERSAL)return S.call(R,E)})},$.split=function(S){var R=this,E=[];return this.reduce(function(j,Q,U){var C=S.call(R,Q);return E.push(Q),C?(j.push(E),E=[]):U===R.length-1&&j.push(E),j},[])},$.map=function(S){return this.nodes.map(S)},$.reduce=function(S,R){return this.nodes.reduce(S,R)},$.every=function(S){return this.nodes.every(S)},$.some=function(S){return this.nodes.some(S)},$.filter=function(S){return this.nodes.filter(S)},$.sort=function(S){return this.nodes.sort(S)},$.toString=function(){return this.map(String).join("")},f(y,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),y}(r.default);e.default=x,t.exports=e.default}(pr,pr.exports);var Cr=pr.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Cr),n=ue;function i(d){return d&&d.__esModule?d:{default:d}}function o(d,f){for(var m=0;m<f.length;m++){var b=f[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(d,b.key,b)}}function s(d,f,m){return f&&o(d.prototype,f),m&&o(d,m),d}function c(d,f){d.prototype=Object.create(f.prototype),d.prototype.constructor=d,a(d,f)}function a(d,f){return a=Object.setPrototypeOf||function(b,x){return b.__proto__=x,b},a(d,f)}var l=function(d){c(f,d);function f(b){var x;return x=d.call(this,b)||this,x.type=n.ROOT,x}var m=f.prototype;return m.toString=function(){var x=this.reduce(function(h,y){return h.push(String(y)),h},[]).join(",");return this.trailingComma?x+",":x},m.error=function(x,h){return this._error?this._error(x,h):new Error(x)},s(f,[{key:"errorGenerator",set:function(x){this._error=x}}]),f}(r.default);e.default=l,t.exports=e.default})(fr,fr.exports);var ri=fr.exports,br={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Cr),n=ue;function i(a){return a&&a.__esModule?a:{default:a}}function o(a,l){a.prototype=Object.create(l.prototype),a.prototype.constructor=a,s(a,l)}function s(a,l){return s=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},s(a,l)}var c=function(a){o(l,a);function l(d){var f;return f=a.call(this,d)||this,f.type=n.SELECTOR,f}return l}(r.default);e.default=c,t.exports=e.default})(br,br.exports);var ni=br.exports,xr={exports:{}};/*! https://mths.be/cssesc v3.0.0 by @mathias */var Ga={},qa=Ga.hasOwnProperty,Wa=function(e,r){if(!e)return r;var n={};for(var i in r)n[i]=qa.call(e,i)?e[i]:r[i];return n},Ua=/[ -,\.\/:-@\[-\^`\{-~]/,Za=/[ -,\.\/:-@\[\]\^`\{-~]/,Ya=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,wr=function t(e,r){r=Wa(r,t.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var n=r.quotes=="double"?'"':"'",i=r.isIdentifier,o=e.charAt(0),s="",c=0,a=e.length;c<a;){var l=e.charAt(c++),d=l.charCodeAt(),f=void 0;if(d<32||d>126){if(d>=55296&&d<=56319&&c<a){var m=e.charCodeAt(c++);(m&64512)==56320?d=((d&1023)<<10)+(m&1023)+65536:c--}f="\\"+d.toString(16).toUpperCase()+" "}else r.escapeEverything?Ua.test(l)?f="\\"+l:f="\\"+d.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?f="\\"+d.toString(16).toUpperCase()+" ":l=="\\"||!i&&(l=='"'&&n==l||l=="'"&&n==l)||i&&Za.test(l)?f="\\"+l:f=l;s+=f}return i&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(Ya,function(b,x,h){return x&&x.length%2?b:(x||"")+h}),!i&&r.wrap?n+s+n:s};wr.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},wr.version="3.0.0";var Sr=wr;(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(Sr),n=Fe,i=s(it),o=ue;function s(m){return m&&m.__esModule?m:{default:m}}function c(m,b){for(var x=0;x<b.length;x++){var h=b[x];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(m,h.key,h)}}function a(m,b,x){return b&&c(m.prototype,b),x&&c(m,x),m}function l(m,b){m.prototype=Object.create(b.prototype),m.prototype.constructor=m,d(m,b)}function d(m,b){return d=Object.setPrototypeOf||function(h,y){return h.__proto__=y,h},d(m,b)}var f=function(m){l(b,m);function b(h){var y;return y=m.call(this,h)||this,y.type=o.CLASS,y._constructed=!0,y}var x=b.prototype;return x.valueToString=function(){return"."+m.prototype.valueToString.call(this)},a(b,[{key:"value",get:function(){return this._value},set:function(y){if(this._constructed){var $=(0,r.default)(y,{isIdentifier:!0});$!==y?((0,n.ensureObject)(this,"raws"),this.raws.value=$):this.raws&&delete this.raws.value}this._value=y}}]),b}(i.default);e.default=f,t.exports=e.default})(xr,xr.exports);var ii=xr.exports,Tr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(it),n=ue;function i(a){return a&&a.__esModule?a:{default:a}}function o(a,l){a.prototype=Object.create(l.prototype),a.prototype.constructor=a,s(a,l)}function s(a,l){return s=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},s(a,l)}var c=function(a){o(l,a);function l(d){var f;return f=a.call(this,d)||this,f.type=n.COMMENT,f}return l}(r.default);e.default=c,t.exports=e.default})(Tr,Tr.exports);var si=Tr.exports,kr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(it),n=ue;function i(a){return a&&a.__esModule?a:{default:a}}function o(a,l){a.prototype=Object.create(l.prototype),a.prototype.constructor=a,s(a,l)}function s(a,l){return s=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},s(a,l)}var c=function(a){o(l,a);function l(f){var m;return m=a.call(this,f)||this,m.type=n.ID,m}var d=l.prototype;return d.valueToString=function(){return"#"+a.prototype.valueToString.call(this)},l}(r.default);e.default=c,t.exports=e.default})(kr,kr.exports);var ai=kr.exports,$r={exports:{}},Er={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=o(Sr),n=Fe,i=o(it);function o(f){return f&&f.__esModule?f:{default:f}}function s(f,m){for(var b=0;b<m.length;b++){var x=m[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(f,x.key,x)}}function c(f,m,b){return m&&s(f.prototype,m),b&&s(f,b),f}function a(f,m){f.prototype=Object.create(m.prototype),f.prototype.constructor=f,l(f,m)}function l(f,m){return l=Object.setPrototypeOf||function(x,h){return x.__proto__=h,x},l(f,m)}var d=function(f){a(m,f);function m(){return f.apply(this,arguments)||this}var b=m.prototype;return b.qualifiedName=function(h){return this.namespace?this.namespaceString+"|"+h:h},b.valueToString=function(){return this.qualifiedName(f.prototype.valueToString.call(this))},c(m,[{key:"namespace",get:function(){return this._namespace},set:function(h){if(h===!0||h==="*"||h==="&"){this._namespace=h,this.raws&&delete this.raws.namespace;return}var y=(0,r.default)(h,{isIdentifier:!0});this._namespace=h,y!==h?((0,n.ensureObject)(this,"raws"),this.raws.namespace=y):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(h){this.namespace=h}},{key:"namespaceString",get:function(){if(this.namespace){var h=this.stringifyProperty("namespace");return h===!0?"":h}else return""}}]),m}(i.default);e.default=d,t.exports=e.default})(Er,Er.exports);var Mr=Er.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Mr),n=ue;function i(a){return a&&a.__esModule?a:{default:a}}function o(a,l){a.prototype=Object.create(l.prototype),a.prototype.constructor=a,s(a,l)}function s(a,l){return s=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},s(a,l)}var c=function(a){o(l,a);function l(d){var f;return f=a.call(this,d)||this,f.type=n.TAG,f}return l}(r.default);e.default=c,t.exports=e.default})($r,$r.exports);var oi=$r.exports,Lr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(it),n=ue;function i(a){return a&&a.__esModule?a:{default:a}}function o(a,l){a.prototype=Object.create(l.prototype),a.prototype.constructor=a,s(a,l)}function s(a,l){return s=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},s(a,l)}var c=function(a){o(l,a);function l(d){var f;return f=a.call(this,d)||this,f.type=n.STRING,f}return l}(r.default);e.default=c,t.exports=e.default})(Lr,Lr.exports);var li=Lr.exports,Dr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Cr),n=ue;function i(a){return a&&a.__esModule?a:{default:a}}function o(a,l){a.prototype=Object.create(l.prototype),a.prototype.constructor=a,s(a,l)}function s(a,l){return s=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},s(a,l)}var c=function(a){o(l,a);function l(f){var m;return m=a.call(this,f)||this,m.type=n.PSEUDO,m}var d=l.prototype;return d.toString=function(){var m=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),m,this.rawSpaceAfter].join("")},l}(r.default);e.default=c,t.exports=e.default})(Dr,Dr.exports);var ci=Dr.exports,Pr={},Xa=Va;function Va(t,e){if(Or("noDeprecation"))return t;var r=!1;function n(){if(!r){if(Or("throwDeprecation"))throw new Error(e);Or("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return n}function Or(t){try{if(!ot.localStorage)return!1}catch{return!1}var e=ot.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}(function(t){t.__esModule=!0,t.unescapeValue=y,t.default=void 0;var e=s(Sr),r=s(ti),n=s(Mr),i=ue,o;function s(E){return E&&E.__esModule?E:{default:E}}function c(E,j){for(var Q=0;Q<j.length;Q++){var U=j[Q];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(E,U.key,U)}}function a(E,j,Q){return j&&c(E.prototype,j),Q&&c(E,Q),E}function l(E,j){E.prototype=Object.create(j.prototype),E.prototype.constructor=E,d(E,j)}function d(E,j){return d=Object.setPrototypeOf||function(U,C){return U.__proto__=C,U},d(E,j)}var f=Xa,m=/^('|")([^]*)\1$/,b=f(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),x=f(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),h=f(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function y(E){var j=!1,Q=null,U=E,C=U.match(m);return C&&(Q=C[1],U=C[2]),U=(0,r.default)(U),U!==E&&(j=!0),{deprecatedUsage:j,unescaped:U,quoteMark:Q}}function $(E){if(E.quoteMark!==void 0||E.value===void 0)return E;h();var j=y(E.value),Q=j.quoteMark,U=j.unescaped;return E.raws||(E.raws={}),E.raws.value===void 0&&(E.raws.value=E.value),E.value=U,E.quoteMark=Q,E}var D=function(E){l(j,E);function j(U){var C;return U===void 0&&(U={}),C=E.call(this,$(U))||this,C.type=i.ATTRIBUTE,C.raws=C.raws||{},Object.defineProperty(C.raws,"unquoted",{get:f(function(){return C.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:f(function(){return C.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),C._constructed=!0,C}var Q=j.prototype;return Q.getQuotedValue=function(C){C===void 0&&(C={});var z=this._determineQuoteMark(C),W=S[z],L=(0,e.default)(this._value,W);return L},Q._determineQuoteMark=function(C){return C.smart?this.smartQuoteMark(C):this.preferredQuoteMark(C)},Q.setValue=function(C,z){z===void 0&&(z={}),this._value=C,this._quoteMark=this._determineQuoteMark(z),this._syncRawValue()},Q.smartQuoteMark=function(C){var z=this.value,W=z.replace(/[^']/g,"").length,L=z.replace(/[^"]/g,"").length;if(W+L===0){var Y=(0,e.default)(z,{isIdentifier:!0});if(Y===z)return j.NO_QUOTE;var X=this.preferredQuoteMark(C);if(X===j.NO_QUOTE){var I=this.quoteMark||C.quoteMark||j.DOUBLE_QUOTE,T=S[I],P=(0,e.default)(z,T);if(P.length<Y.length)return I}return X}else return L===W?this.preferredQuoteMark(C):L<W?j.DOUBLE_QUOTE:j.SINGLE_QUOTE},Q.preferredQuoteMark=function(C){var z=C.preferCurrentQuoteMark?this.quoteMark:C.quoteMark;return z===void 0&&(z=C.preferCurrentQuoteMark?C.quoteMark:this.quoteMark),z===void 0&&(z=j.DOUBLE_QUOTE),z},Q._syncRawValue=function(){var C=(0,e.default)(this._value,S[this.quoteMark]);C===this._value?this.raws&&delete this.raws.value:this.raws.value=C},Q._handleEscapes=function(C,z){if(this._constructed){var W=(0,e.default)(z,{isIdentifier:!0});W!==z?this.raws[C]=W:delete this.raws[C]}},Q._spacesFor=function(C){var z={before:"",after:""},W=this.spaces[C]||{},L=this.raws.spaces&&this.raws.spaces[C]||{};return Object.assign(z,W,L)},Q._stringFor=function(C,z,W){z===void 0&&(z=C),W===void 0&&(W=R);var L=this._spacesFor(z);return W(this.stringifyProperty(C),L)},Q.offsetOf=function(C){var z=1,W=this._spacesFor("attribute");if(z+=W.before.length,C==="namespace"||C==="ns")return this.namespace?z:-1;if(C==="attributeNS"||(z+=this.namespaceString.length,this.namespace&&(z+=1),C==="attribute"))return z;z+=this.stringifyProperty("attribute").length,z+=W.after.length;var L=this._spacesFor("operator");z+=L.before.length;var Y=this.stringifyProperty("operator");if(C==="operator")return Y?z:-1;z+=Y.length,z+=L.after.length;var X=this._spacesFor("value");z+=X.before.length;var I=this.stringifyProperty("value");if(C==="value")return I?z:-1;z+=I.length,z+=X.after.length;var T=this._spacesFor("insensitive");return z+=T.before.length,C==="insensitive"&&this.insensitive?z:-1},Q.toString=function(){var C=this,z=[this.rawSpaceBefore,"["];return z.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(z.push(this._stringFor("operator")),z.push(this._stringFor("value")),z.push(this._stringFor("insensitiveFlag","insensitive",function(W,L){return W.length>0&&!C.quoted&&L.before.length===0&&!(C.spaces.value&&C.spaces.value.after)&&(L.before=" "),R(W,L)}))),z.push("]"),z.push(this.rawSpaceAfter),z.join("")},a(j,[{key:"quoted",get:function(){var C=this.quoteMark;return C==="'"||C==='"'},set:function(C){x()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(C){if(!this._constructed){this._quoteMark=C;return}this._quoteMark!==C&&(this._quoteMark=C,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(C){if(this._constructed){var z=y(C),W=z.deprecatedUsage,L=z.unescaped,Y=z.quoteMark;if(W&&b(),L===this._value&&Y===this._quoteMark)return;this._value=L,this._quoteMark=Y,this._syncRawValue()}else this._value=C}},{key:"attribute",get:function(){return this._attribute},set:function(C){this._handleEscapes("attribute",C),this._attribute=C}}]),j}(n.default);t.default=D,D.NO_QUOTE=null,D.SINGLE_QUOTE="'",D.DOUBLE_QUOTE='"';var S=(o={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},o[null]={isIdentifier:!0},o);function R(E,j){return""+j.before+E+j.after}})(Pr);var zr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Mr),n=ue;function i(a){return a&&a.__esModule?a:{default:a}}function o(a,l){a.prototype=Object.create(l.prototype),a.prototype.constructor=a,s(a,l)}function s(a,l){return s=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},s(a,l)}var c=function(a){o(l,a);function l(d){var f;return f=a.call(this,d)||this,f.type=n.UNIVERSAL,f.value="*",f}return l}(r.default);e.default=c,t.exports=e.default})(zr,zr.exports);var ui=zr.exports,Br={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(it),n=ue;function i(a){return a&&a.__esModule?a:{default:a}}function o(a,l){a.prototype=Object.create(l.prototype),a.prototype.constructor=a,s(a,l)}function s(a,l){return s=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},s(a,l)}var c=function(a){o(l,a);function l(d){var f;return f=a.call(this,d)||this,f.type=n.COMBINATOR,f}return l}(r.default);e.default=c,t.exports=e.default})(Br,Br.exports);var di=Br.exports,Ir={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(it),n=ue;function i(a){return a&&a.__esModule?a:{default:a}}function o(a,l){a.prototype=Object.create(l.prototype),a.prototype.constructor=a,s(a,l)}function s(a,l){return s=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},s(a,l)}var c=function(a){o(l,a);function l(d){var f;return f=a.call(this,d)||this,f.type=n.NESTING,f.value="&",f}return l}(r.default);e.default=c,t.exports=e.default})(Ir,Ir.exports);var hi=Ir.exports,Fr={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){return n.sort(function(i,o){return i-o})}t.exports=e.default})(Fr,Fr.exports);var Qa=Fr.exports,fi={},ee={};ee.__esModule=!0,ee.combinator=ee.word=ee.comment=ee.str=ee.tab=ee.newline=ee.feed=ee.cr=ee.backslash=ee.bang=ee.slash=ee.doubleQuote=ee.singleQuote=ee.space=ee.greaterThan=ee.pipe=ee.equals=ee.plus=ee.caret=ee.tilde=ee.dollar=ee.closeSquare=ee.openSquare=ee.closeParenthesis=ee.openParenthesis=ee.semicolon=ee.colon=ee.comma=ee.at=ee.asterisk=ee.ampersand=void 0;var Ka=38;ee.ampersand=Ka;var Ja=42;ee.asterisk=Ja;var eo=64;ee.at=eo;var to=44;ee.comma=to;var ro=58;ee.colon=ro;var no=59;ee.semicolon=no;var io=40;ee.openParenthesis=io;var so=41;ee.closeParenthesis=so;var ao=91;ee.openSquare=ao;var oo=93;ee.closeSquare=oo;var lo=36;ee.dollar=lo;var co=126;ee.tilde=co;var uo=94;ee.caret=uo;var ho=43;ee.plus=ho;var fo=61;ee.equals=fo;var po=124;ee.pipe=po;var mo=62;ee.greaterThan=mo;var go=32;ee.space=go;var pi=39;ee.singleQuote=pi;var vo=34;ee.doubleQuote=vo;var _o=47;ee.slash=_o;var yo=33;ee.bang=yo;var Co=92;ee.backslash=Co;var bo=13;ee.cr=bo;var xo=12;ee.feed=xo;var wo=10;ee.newline=wo;var So=9;ee.tab=So;var To=pi;ee.str=To;var ko=-1;ee.comment=ko;var $o=-2;ee.word=$o;var Eo=-3;ee.combinator=Eo,function(t){t.__esModule=!0,t.default=x,t.FIELDS=void 0;var e=o(ee),r,n;function i(){if(typeof WeakMap!="function")return null;var h=new WeakMap;return i=function(){return h},h}function o(h){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var y=i();if(y&&y.has(h))return y.get(h);var $={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in h)if(Object.prototype.hasOwnProperty.call(h,S)){var R=D?Object.getOwnPropertyDescriptor(h,S):null;R&&(R.get||R.set)?Object.defineProperty($,S,R):$[S]=h[S]}return $.default=h,y&&y.set(h,$),$}for(var s=(r={},r[e.tab]=!0,r[e.newline]=!0,r[e.cr]=!0,r[e.feed]=!0,r),c=(n={},n[e.space]=!0,n[e.tab]=!0,n[e.newline]=!0,n[e.cr]=!0,n[e.feed]=!0,n[e.ampersand]=!0,n[e.asterisk]=!0,n[e.bang]=!0,n[e.comma]=!0,n[e.colon]=!0,n[e.semicolon]=!0,n[e.openParenthesis]=!0,n[e.closeParenthesis]=!0,n[e.openSquare]=!0,n[e.closeSquare]=!0,n[e.singleQuote]=!0,n[e.doubleQuote]=!0,n[e.plus]=!0,n[e.pipe]=!0,n[e.tilde]=!0,n[e.greaterThan]=!0,n[e.equals]=!0,n[e.dollar]=!0,n[e.caret]=!0,n[e.slash]=!0,n),a={},l="0123456789abcdefABCDEF",d=0;d<l.length;d++)a[l.charCodeAt(d)]=!0;function f(h,y){var $=y,D;do{if(D=h.charCodeAt($),c[D])return $-1;D===e.backslash?$=m(h,$)+1:$++}while($<h.length);return $-1}function m(h,y){var $=y,D=h.charCodeAt($+1);if(!s[D])if(a[D]){var S=0;do $++,S++,D=h.charCodeAt($+1);while(a[D]&&S<6);S<6&&D===e.space&&$++}else $++;return $}var b={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};t.FIELDS=b;function x(h){var y=[],$=h.css.valueOf(),D=$,S=D.length,R=-1,E=1,j=0,Q=0,U,C,z,W,L,Y,X,I,T,P,N,ne,_;function Z(A,B){if(h.safe)$+=B,T=$.length-1;else throw h.error("Unclosed "+A,E,j-R,j)}for(;j<S;){switch(U=$.charCodeAt(j),U===e.newline&&(R=j,E+=1),U){case e.space:case e.tab:case e.newline:case e.cr:case e.feed:T=j;do T+=1,U=$.charCodeAt(T),U===e.newline&&(R=T,E+=1);while(U===e.space||U===e.newline||U===e.tab||U===e.cr||U===e.feed);_=e.space,W=E,z=T-R-1,Q=T;break;case e.plus:case e.greaterThan:case e.tilde:case e.pipe:T=j;do T+=1,U=$.charCodeAt(T);while(U===e.plus||U===e.greaterThan||U===e.tilde||U===e.pipe);_=e.combinator,W=E,z=j-R,Q=T;break;case e.asterisk:case e.ampersand:case e.bang:case e.comma:case e.equals:case e.dollar:case e.caret:case e.openSquare:case e.closeSquare:case e.colon:case e.semicolon:case e.openParenthesis:case e.closeParenthesis:T=j,_=U,W=E,z=j-R,Q=T+1;break;case e.singleQuote:case e.doubleQuote:ne=U===e.singleQuote?"'":'"',T=j;do for(L=!1,T=$.indexOf(ne,T+1),T===-1&&Z("quote",ne),Y=T;$.charCodeAt(Y-1)===e.backslash;)Y-=1,L=!L;while(L);_=e.str,W=E,z=j-R,Q=T+1;break;default:U===e.slash&&$.charCodeAt(j+1)===e.asterisk?(T=$.indexOf("*/",j+2)+1,T===0&&Z("comment","*/"),C=$.slice(j,T+1),I=C.split(`
3
- `),X=I.length-1,X>0?(P=E+X,N=T-I[X].length):(P=E,N=R),_=e.comment,E=P,W=P,z=T-N):U===e.slash?(T=j,_=U,W=E,z=j-R,Q=T+1):(T=f($,j),_=e.word,W=E,z=T-R),Q=T+1;break}y.push([_,E,j-R,W,z,j,Q]),N&&(R=N,N=null),j=Q}return y}}(fi),function(t,e){e.__esModule=!0,e.default=void 0;var r=Q(ri),n=Q(ni),i=Q(ii),o=Q(si),s=Q(ai),c=Q(oi),a=Q(li),l=Q(ci),d=j(Pr),f=Q(ui),m=Q(di),b=Q(hi),x=Q(Qa),h=j(fi),y=j(ee),$=j(ue),D=Fe,S,R;function E(){if(typeof WeakMap!="function")return null;var Z=new WeakMap;return E=function(){return Z},Z}function j(Z){if(Z&&Z.__esModule)return Z;if(Z===null||typeof Z!="object"&&typeof Z!="function")return{default:Z};var A=E();if(A&&A.has(Z))return A.get(Z);var B={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in Z)if(Object.prototype.hasOwnProperty.call(Z,q)){var V=w?Object.getOwnPropertyDescriptor(Z,q):null;V&&(V.get||V.set)?Object.defineProperty(B,q,V):B[q]=Z[q]}return B.default=Z,A&&A.set(Z,B),B}function Q(Z){return Z&&Z.__esModule?Z:{default:Z}}function U(Z,A){for(var B=0;B<A.length;B++){var w=A[B];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(Z,w.key,w)}}function C(Z,A,B){return A&&U(Z.prototype,A),B&&U(Z,B),Z}var z=(S={},S[y.space]=!0,S[y.cr]=!0,S[y.feed]=!0,S[y.newline]=!0,S[y.tab]=!0,S),W=Object.assign({},z,(R={},R[y.comment]=!0,R));function L(Z){return{line:Z[h.FIELDS.START_LINE],column:Z[h.FIELDS.START_COL]}}function Y(Z){return{line:Z[h.FIELDS.END_LINE],column:Z[h.FIELDS.END_COL]}}function X(Z,A,B,w){return{start:{line:Z,column:A},end:{line:B,column:w}}}function I(Z){return X(Z[h.FIELDS.START_LINE],Z[h.FIELDS.START_COL],Z[h.FIELDS.END_LINE],Z[h.FIELDS.END_COL])}function T(Z,A){if(Z)return X(Z[h.FIELDS.START_LINE],Z[h.FIELDS.START_COL],A[h.FIELDS.END_LINE],A[h.FIELDS.END_COL])}function P(Z,A){var B=Z[A];if(typeof B=="string")return B.indexOf("\\")!==-1&&((0,D.ensureObject)(Z,"raws"),Z[A]=(0,D.unesc)(B),Z.raws[A]===void 0&&(Z.raws[A]=B)),Z}function N(Z,A){for(var B=-1,w=[];(B=Z.indexOf(A,B+1))!==-1;)w.push(B);return w}function ne(){var Z=Array.prototype.concat.apply([],arguments);return Z.filter(function(A,B){return B===Z.indexOf(A)})}var _=function(){function Z(B,w){w===void 0&&(w={}),this.rule=B,this.options=Object.assign({lossy:!1,safe:!1},w),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,h.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var q=T(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new r.default({source:q}),this.root.errorGenerator=this._errorGenerator();var V=new n.default({source:{start:{line:1,column:1}}});this.root.append(V),this.current=V,this.loop()}var A=Z.prototype;return A._errorGenerator=function(){var w=this;return function(q,V){return typeof w.rule=="string"?new Error(q):w.rule.error(q,V)}},A.attribute=function(){var w=[],q=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[h.FIELDS.TYPE]!==y.closeSquare;)w.push(this.currToken),this.position++;if(this.currToken[h.FIELDS.TYPE]!==y.closeSquare)return this.expected("closing square bracket",this.currToken[h.FIELDS.START_POS]);var V=w.length,M={source:X(q[1],q[2],this.currToken[3],this.currToken[4]),sourceIndex:q[h.FIELDS.START_POS]};if(V===1&&!~[y.word].indexOf(w[0][h.FIELDS.TYPE]))return this.expected("attribute",w[0][h.FIELDS.START_POS]);for(var re=0,ce="",le="",ie=null,he=!1;re<V;){var Se=w[re],oe=this.content(Se),ye=w[re+1];switch(Se[h.FIELDS.TYPE]){case y.space:if(he=!0,this.options.lossy)break;if(ie){(0,D.ensureObject)(M,"spaces",ie);var Ae=M.spaces[ie].after||"";M.spaces[ie].after=Ae+oe;var Be=(0,D.getProp)(M,"raws","spaces",ie,"after")||null;Be&&(M.raws.spaces[ie].after=Be+oe)}else ce=ce+oe,le=le+oe;break;case y.asterisk:if(ye[h.FIELDS.TYPE]===y.equals)M.operator=oe,ie="operator";else if((!M.namespace||ie==="namespace"&&!he)&&ye){ce&&((0,D.ensureObject)(M,"spaces","attribute"),M.spaces.attribute.before=ce,ce=""),le&&((0,D.ensureObject)(M,"raws","spaces","attribute"),M.raws.spaces.attribute.before=ce,le=""),M.namespace=(M.namespace||"")+oe;var $e=(0,D.getProp)(M,"raws","namespace")||null;$e&&(M.raws.namespace+=oe),ie="namespace"}he=!1;break;case y.dollar:if(ie==="value"){var Te=(0,D.getProp)(M,"raws","value");M.value+="$",Te&&(M.raws.value=Te+"$");break}case y.caret:ye[h.FIELDS.TYPE]===y.equals&&(M.operator=oe,ie="operator"),he=!1;break;case y.combinator:if(oe==="~"&&ye[h.FIELDS.TYPE]===y.equals&&(M.operator=oe,ie="operator"),oe!=="|"){he=!1;break}ye[h.FIELDS.TYPE]===y.equals?(M.operator=oe,ie="operator"):!M.namespace&&!M.attribute&&(M.namespace=!0),he=!1;break;case y.word:if(ye&&this.content(ye)==="|"&&w[re+2]&&w[re+2][h.FIELDS.TYPE]!==y.equals&&!M.operator&&!M.namespace)M.namespace=oe,ie="namespace";else if(!M.attribute||ie==="attribute"&&!he){ce&&((0,D.ensureObject)(M,"spaces","attribute"),M.spaces.attribute.before=ce,ce=""),le&&((0,D.ensureObject)(M,"raws","spaces","attribute"),M.raws.spaces.attribute.before=le,le=""),M.attribute=(M.attribute||"")+oe;var Me=(0,D.getProp)(M,"raws","attribute")||null;Me&&(M.raws.attribute+=oe),ie="attribute"}else if(!M.value&&M.value!==""||ie==="value"&&!he){var Ee=(0,D.unesc)(oe),Le=(0,D.getProp)(M,"raws","value")||"",De=M.value||"";M.value=De+Ee,M.quoteMark=null,(Ee!==oe||Le)&&((0,D.ensureObject)(M,"raws"),M.raws.value=(Le||De)+oe),ie="value"}else{var et=oe==="i"||oe==="I";(M.value||M.value==="")&&(M.quoteMark||he)?(M.insensitive=et,(!et||oe==="I")&&((0,D.ensureObject)(M,"raws"),M.raws.insensitiveFlag=oe),ie="insensitive",ce&&((0,D.ensureObject)(M,"spaces","insensitive"),M.spaces.insensitive.before=ce,ce=""),le&&((0,D.ensureObject)(M,"raws","spaces","insensitive"),M.raws.spaces.insensitive.before=le,le="")):(M.value||M.value==="")&&(ie="value",M.value+=oe,M.raws.value&&(M.raws.value+=oe))}he=!1;break;case y.str:if(!M.attribute||!M.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:Se[h.FIELDS.START_POS]});var Ke=(0,d.unescapeValue)(oe),lt=Ke.unescaped,Tt=Ke.quoteMark;M.value=lt,M.quoteMark=Tt,ie="value",(0,D.ensureObject)(M,"raws"),M.raws.value=oe,he=!1;break;case y.equals:if(!M.attribute)return this.expected("attribute",Se[h.FIELDS.START_POS],oe);if(M.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:Se[h.FIELDS.START_POS]});M.operator=M.operator?M.operator+oe:oe,ie="operator",he=!1;break;case y.comment:if(ie)if(he||ye&&ye[h.FIELDS.TYPE]===y.space||ie==="insensitive"){var Ze=(0,D.getProp)(M,"spaces",ie,"after")||"",pt=(0,D.getProp)(M,"raws","spaces",ie,"after")||Ze;(0,D.ensureObject)(M,"raws","spaces",ie),M.raws.spaces[ie].after=pt+oe}else{var jt=M[ie]||"",Gt=(0,D.getProp)(M,"raws",ie)||jt;(0,D.ensureObject)(M,"raws"),M.raws[ie]=Gt+oe}else le=le+oe;break;default:return this.error('Unexpected "'+oe+'" found.',{index:Se[h.FIELDS.START_POS]})}re++}P(M,"attribute"),P(M,"namespace"),this.newNode(new d.default(M)),this.position++},A.parseWhitespaceEquivalentTokens=function(w){w<0&&(w=this.tokens.length);var q=this.position,V=[],M="",re=void 0;do if(z[this.currToken[h.FIELDS.TYPE]])this.options.lossy||(M+=this.content());else if(this.currToken[h.FIELDS.TYPE]===y.comment){var ce={};M&&(ce.before=M,M=""),re=new o.default({value:this.content(),source:I(this.currToken),sourceIndex:this.currToken[h.FIELDS.START_POS],spaces:ce}),V.push(re)}while(++this.position<w);if(M){if(re)re.spaces.after=M;else if(!this.options.lossy){var le=this.tokens[q],ie=this.tokens[this.position-1];V.push(new a.default({value:"",source:X(le[h.FIELDS.START_LINE],le[h.FIELDS.START_COL],ie[h.FIELDS.END_LINE],ie[h.FIELDS.END_COL]),sourceIndex:le[h.FIELDS.START_POS],spaces:{before:M,after:""}}))}}return V},A.convertWhitespaceNodesToSpace=function(w,q){var V=this;q===void 0&&(q=!1);var M="",re="";w.forEach(function(le){var ie=V.lossySpace(le.spaces.before,q),he=V.lossySpace(le.rawSpaceBefore,q);M+=ie+V.lossySpace(le.spaces.after,q&&ie.length===0),re+=ie+le.value+V.lossySpace(le.rawSpaceAfter,q&&he.length===0)}),re===M&&(re=void 0);var ce={space:M,rawSpace:re};return ce},A.isNamedCombinator=function(w){return w===void 0&&(w=this.position),this.tokens[w+0]&&this.tokens[w+0][h.FIELDS.TYPE]===y.slash&&this.tokens[w+1]&&this.tokens[w+1][h.FIELDS.TYPE]===y.word&&this.tokens[w+2]&&this.tokens[w+2][h.FIELDS.TYPE]===y.slash},A.namedCombinator=function(){if(this.isNamedCombinator()){var w=this.content(this.tokens[this.position+1]),q=(0,D.unesc)(w).toLowerCase(),V={};q!==w&&(V.value="/"+w+"/");var M=new m.default({value:"/"+q+"/",source:X(this.currToken[h.FIELDS.START_LINE],this.currToken[h.FIELDS.START_COL],this.tokens[this.position+2][h.FIELDS.END_LINE],this.tokens[this.position+2][h.FIELDS.END_COL]),sourceIndex:this.currToken[h.FIELDS.START_POS],raws:V});return this.position=this.position+3,M}else this.unexpected()},A.combinator=function(){var w=this;if(this.content()==="|")return this.namespace();var q=this.locateNextMeaningfulToken(this.position);if(q<0||this.tokens[q][h.FIELDS.TYPE]===y.comma){var V=this.parseWhitespaceEquivalentTokens(q);if(V.length>0){var M=this.current.last;if(M){var re=this.convertWhitespaceNodesToSpace(V),ce=re.space,le=re.rawSpace;le!==void 0&&(M.rawSpaceAfter+=le),M.spaces.after+=ce}else V.forEach(function(Le){return w.newNode(Le)})}return}var ie=this.currToken,he=void 0;q>this.position&&(he=this.parseWhitespaceEquivalentTokens(q));var Se;if(this.isNamedCombinator()?Se=this.namedCombinator():this.currToken[h.FIELDS.TYPE]===y.combinator?(Se=new m.default({value:this.content(),source:I(this.currToken),sourceIndex:this.currToken[h.FIELDS.START_POS]}),this.position++):z[this.currToken[h.FIELDS.TYPE]]||he||this.unexpected(),Se){if(he){var oe=this.convertWhitespaceNodesToSpace(he),ye=oe.space,Ae=oe.rawSpace;Se.spaces.before=ye,Se.rawSpaceBefore=Ae}}else{var Be=this.convertWhitespaceNodesToSpace(he,!0),$e=Be.space,Te=Be.rawSpace;Te||(Te=$e);var Me={},Ee={spaces:{}};$e.endsWith(" ")&&Te.endsWith(" ")?(Me.before=$e.slice(0,$e.length-1),Ee.spaces.before=Te.slice(0,Te.length-1)):$e.startsWith(" ")&&Te.startsWith(" ")?(Me.after=$e.slice(1),Ee.spaces.after=Te.slice(1)):Ee.value=Te,Se=new m.default({value:" ",source:T(ie,this.tokens[this.position-1]),sourceIndex:ie[h.FIELDS.START_POS],spaces:Me,raws:Ee})}return this.currToken&&this.currToken[h.FIELDS.TYPE]===y.space&&(Se.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(Se)},A.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var w=new n.default({source:{start:L(this.tokens[this.position+1])}});this.current.parent.append(w),this.current=w,this.position++},A.comment=function(){var w=this.currToken;this.newNode(new o.default({value:this.content(),source:I(w),sourceIndex:w[h.FIELDS.START_POS]})),this.position++},A.error=function(w,q){throw this.root.error(w,q)},A.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[h.FIELDS.START_POS]})},A.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[h.FIELDS.START_POS])},A.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[h.FIELDS.START_POS])},A.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[h.FIELDS.START_POS])},A.namespace=function(){var w=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[h.FIELDS.TYPE]===y.word)return this.position++,this.word(w);if(this.nextToken[h.FIELDS.TYPE]===y.asterisk)return this.position++,this.universal(w)},A.nesting=function(){if(this.nextToken){var w=this.content(this.nextToken);if(w==="|"){this.position++;return}}var q=this.currToken;this.newNode(new b.default({value:this.content(),source:I(q),sourceIndex:q[h.FIELDS.START_POS]})),this.position++},A.parentheses=function(){var w=this.current.last,q=1;if(this.position++,w&&w.type===$.PSEUDO){var V=new n.default({source:{start:L(this.tokens[this.position-1])}}),M=this.current;for(w.append(V),this.current=V;this.position<this.tokens.length&&q;)this.currToken[h.FIELDS.TYPE]===y.openParenthesis&&q++,this.currToken[h.FIELDS.TYPE]===y.closeParenthesis&&q--,q?this.parse():(this.current.source.end=Y(this.currToken),this.current.parent.source.end=Y(this.currToken),this.position++);this.current=M}else{for(var re=this.currToken,ce="(",le;this.position<this.tokens.length&&q;)this.currToken[h.FIELDS.TYPE]===y.openParenthesis&&q++,this.currToken[h.FIELDS.TYPE]===y.closeParenthesis&&q--,le=this.currToken,ce+=this.parseParenthesisToken(this.currToken),this.position++;w?w.appendToPropertyAndEscape("value",ce,ce):this.newNode(new a.default({value:ce,source:X(re[h.FIELDS.START_LINE],re[h.FIELDS.START_COL],le[h.FIELDS.END_LINE],le[h.FIELDS.END_COL]),sourceIndex:re[h.FIELDS.START_POS]}))}if(q)return this.expected("closing parenthesis",this.currToken[h.FIELDS.START_POS])},A.pseudo=function(){for(var w=this,q="",V=this.currToken;this.currToken&&this.currToken[h.FIELDS.TYPE]===y.colon;)q+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[h.FIELDS.TYPE]===y.word)this.splitWord(!1,function(M,re){q+=M,w.newNode(new l.default({value:q,source:T(V,w.currToken),sourceIndex:V[h.FIELDS.START_POS]})),re>1&&w.nextToken&&w.nextToken[h.FIELDS.TYPE]===y.openParenthesis&&w.error("Misplaced parenthesis.",{index:w.nextToken[h.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[h.FIELDS.START_POS])},A.space=function(){var w=this.content();this.position===0||this.prevToken[h.FIELDS.TYPE]===y.comma||this.prevToken[h.FIELDS.TYPE]===y.openParenthesis||this.current.nodes.every(function(q){return q.type==="comment"})?(this.spaces=this.optionalSpace(w),this.position++):this.position===this.tokens.length-1||this.nextToken[h.FIELDS.TYPE]===y.comma||this.nextToken[h.FIELDS.TYPE]===y.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(w),this.position++):this.combinator()},A.string=function(){var w=this.currToken;this.newNode(new a.default({value:this.content(),source:I(w),sourceIndex:w[h.FIELDS.START_POS]})),this.position++},A.universal=function(w){var q=this.nextToken;if(q&&this.content(q)==="|")return this.position++,this.namespace();var V=this.currToken;this.newNode(new f.default({value:this.content(),source:I(V),sourceIndex:V[h.FIELDS.START_POS]}),w),this.position++},A.splitWord=function(w,q){for(var V=this,M=this.nextToken,re=this.content();M&&~[y.dollar,y.caret,y.equals,y.word].indexOf(M[h.FIELDS.TYPE]);){this.position++;var ce=this.content();if(re+=ce,ce.lastIndexOf("\\")===ce.length-1){var le=this.nextToken;le&&le[h.FIELDS.TYPE]===y.space&&(re+=this.requiredSpace(this.content(le)),this.position++)}M=this.nextToken}var ie=N(re,".").filter(function(ye){var Ae=re[ye-1]==="\\",Be=/^\d+\.\d+%$/.test(re);return!Ae&&!Be}),he=N(re,"#").filter(function(ye){return re[ye-1]!=="\\"}),Se=N(re,"#{");Se.length&&(he=he.filter(function(ye){return!~Se.indexOf(ye)}));var oe=(0,x.default)(ne([0].concat(ie,he)));oe.forEach(function(ye,Ae){var Be=oe[Ae+1]||re.length,$e=re.slice(ye,Be);if(Ae===0&&q)return q.call(V,$e,oe.length);var Te,Me=V.currToken,Ee=Me[h.FIELDS.START_POS]+oe[Ae],Le=X(Me[1],Me[2]+ye,Me[3],Me[2]+(Be-1));if(~ie.indexOf(ye)){var De={value:$e.slice(1),source:Le,sourceIndex:Ee};Te=new i.default(P(De,"value"))}else if(~he.indexOf(ye)){var et={value:$e.slice(1),source:Le,sourceIndex:Ee};Te=new s.default(P(et,"value"))}else{var Ke={value:$e,source:Le,sourceIndex:Ee};P(Ke,"value"),Te=new c.default(Ke)}V.newNode(Te,w),w=null}),this.position++},A.word=function(w){var q=this.nextToken;return q&&this.content(q)==="|"?(this.position++,this.namespace()):this.splitWord(w)},A.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},A.parse=function(w){switch(this.currToken[h.FIELDS.TYPE]){case y.space:this.space();break;case y.comment:this.comment();break;case y.openParenthesis:this.parentheses();break;case y.closeParenthesis:w&&this.missingParenthesis();break;case y.openSquare:this.attribute();break;case y.dollar:case y.caret:case y.equals:case y.word:this.word();break;case y.colon:this.pseudo();break;case y.comma:this.comma();break;case y.asterisk:this.universal();break;case y.ampersand:this.nesting();break;case y.slash:case y.combinator:this.combinator();break;case y.str:this.string();break;case y.closeSquare:this.missingSquareBracket();case y.semicolon:this.missingBackslash();default:this.unexpected()}},A.expected=function(w,q,V){if(Array.isArray(w)){var M=w.pop();w=w.join(", ")+" or "+M}var re=/^[aeiou]/.test(w[0])?"an":"a";return V?this.error("Expected "+re+" "+w+', found "'+V+'" instead.',{index:q}):this.error("Expected "+re+" "+w+".",{index:q})},A.requiredSpace=function(w){return this.options.lossy?" ":w},A.optionalSpace=function(w){return this.options.lossy?"":w},A.lossySpace=function(w,q){return this.options.lossy?q?" ":"":w},A.parseParenthesisToken=function(w){var q=this.content(w);return w[h.FIELDS.TYPE]===y.space?this.requiredSpace(q):q},A.newNode=function(w,q){return q&&(/^ +$/.test(q)&&(this.options.lossy||(this.spaces=(this.spaces||"")+q),q=!0),w.namespace=q,P(w,"namespace")),this.spaces&&(w.spaces.before=this.spaces,this.spaces=""),this.current.append(w)},A.content=function(w){return w===void 0&&(w=this.currToken),this.css.slice(w[h.FIELDS.START_POS],w[h.FIELDS.END_POS])},A.locateNextMeaningfulToken=function(w){w===void 0&&(w=this.position+1);for(var q=w;q<this.tokens.length;)if(W[this.tokens[q][h.FIELDS.TYPE]]){q++;continue}else return q;return-1},C(Z,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),Z}();e.default=_,t.exports=e.default}(hr,hr.exports);var Mo=hr.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Mo);function n(o){return o&&o.__esModule?o:{default:o}}var i=function(){function o(c,a){this.func=c||function(){},this.funcRes=null,this.options=a}var s=o.prototype;return s._shouldUpdateSelector=function(a,l){l===void 0&&(l={});var d=Object.assign({},this.options,l);return d.updateSelector===!1?!1:typeof a!="string"},s._isLossy=function(a){a===void 0&&(a={});var l=Object.assign({},this.options,a);return l.lossless===!1},s._root=function(a,l){l===void 0&&(l={});var d=new r.default(a,this._parseOptions(l));return d.root},s._parseOptions=function(a){return{lossy:this._isLossy(a)}},s._run=function(a,l){var d=this;return l===void 0&&(l={}),new Promise(function(f,m){try{var b=d._root(a,l);Promise.resolve(d.func(b)).then(function(x){var h=void 0;return d._shouldUpdateSelector(a,l)&&(h=b.toString(),a.selector=h),{transform:x,root:b,string:h}}).then(f,m)}catch(x){m(x);return}})},s._runSync=function(a,l){l===void 0&&(l={});var d=this._root(a,l),f=this.func(d);if(f&&typeof f.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var m=void 0;return l.updateSelector&&typeof a!="string"&&(m=d.toString(),a.selector=m),{transform:f,root:d,string:m}},s.ast=function(a,l){return this._run(a,l).then(function(d){return d.root})},s.astSync=function(a,l){return this._runSync(a,l).root},s.transform=function(a,l){return this._run(a,l).then(function(d){return d.transform})},s.transformSync=function(a,l){return this._runSync(a,l).transform},s.process=function(a,l){return this._run(a,l).then(function(d){return d.string||d.root.toString()})},s.processSync=function(a,l){var d=this._runSync(a,l);return d.string||d.root.toString()},o}();e.default=i,t.exports=e.default})(dr,dr.exports);var Lo=dr.exports,mi={},_e={};_e.__esModule=!0,_e.universal=_e.tag=_e.string=_e.selector=_e.root=_e.pseudo=_e.nesting=_e.id=_e.comment=_e.combinator=_e.className=_e.attribute=void 0;var Do=Ne(Pr),Po=Ne(ii),Oo=Ne(di),zo=Ne(si),Bo=Ne(ai),Io=Ne(hi),Fo=Ne(ci),Ao=Ne(ri),Ro=Ne(ni),Ho=Ne(li),No=Ne(oi),jo=Ne(ui);function Ne(t){return t&&t.__esModule?t:{default:t}}var Go=function(e){return new Do.default(e)};_e.attribute=Go;var qo=function(e){return new Po.default(e)};_e.className=qo;var Wo=function(e){return new Oo.default(e)};_e.combinator=Wo;var Uo=function(e){return new zo.default(e)};_e.comment=Uo;var Zo=function(e){return new Bo.default(e)};_e.id=Zo;var Yo=function(e){return new Io.default(e)};_e.nesting=Yo;var Xo=function(e){return new Fo.default(e)};_e.pseudo=Xo;var Vo=function(e){return new Ao.default(e)};_e.root=Vo;var Qo=function(e){return new Ro.default(e)};_e.selector=Qo;var Ko=function(e){return new Ho.default(e)};_e.string=Ko;var Jo=function(e){return new No.default(e)};_e.tag=Jo;var e1=function(e){return new jo.default(e)};_e.universal=e1;var ge={};ge.__esModule=!0,ge.isNode=Ar,ge.isPseudoElement=_i,ge.isPseudoClass=d1,ge.isContainer=h1,ge.isNamespace=f1,ge.isUniversal=ge.isTag=ge.isString=ge.isSelector=ge.isRoot=ge.isPseudo=ge.isNesting=ge.isIdentifier=ge.isComment=ge.isCombinator=ge.isClassName=ge.isAttribute=void 0;var be=ue,Ie,t1=(Ie={},Ie[be.ATTRIBUTE]=!0,Ie[be.CLASS]=!0,Ie[be.COMBINATOR]=!0,Ie[be.COMMENT]=!0,Ie[be.ID]=!0,Ie[be.NESTING]=!0,Ie[be.PSEUDO]=!0,Ie[be.ROOT]=!0,Ie[be.SELECTOR]=!0,Ie[be.STRING]=!0,Ie[be.TAG]=!0,Ie[be.UNIVERSAL]=!0,Ie);function Ar(t){return typeof t=="object"&&t1[t.type]}function je(t,e){return Ar(e)&&e.type===t}var gi=je.bind(null,be.ATTRIBUTE);ge.isAttribute=gi;var r1=je.bind(null,be.CLASS);ge.isClassName=r1;var n1=je.bind(null,be.COMBINATOR);ge.isCombinator=n1;var i1=je.bind(null,be.COMMENT);ge.isComment=i1;var s1=je.bind(null,be.ID);ge.isIdentifier=s1;var a1=je.bind(null,be.NESTING);ge.isNesting=a1;var Rr=je.bind(null,be.PSEUDO);ge.isPseudo=Rr;var o1=je.bind(null,be.ROOT);ge.isRoot=o1;var l1=je.bind(null,be.SELECTOR);ge.isSelector=l1;var c1=je.bind(null,be.STRING);ge.isString=c1;var vi=je.bind(null,be.TAG);ge.isTag=vi;var u1=je.bind(null,be.UNIVERSAL);ge.isUniversal=u1;function _i(t){return Rr(t)&&t.value&&(t.value.startsWith("::")||t.value.toLowerCase()===":before"||t.value.toLowerCase()===":after"||t.value.toLowerCase()===":first-letter"||t.value.toLowerCase()===":first-line")}function d1(t){return Rr(t)&&!_i(t)}function h1(t){return!!(Ar(t)&&t.walk)}function f1(t){return gi(t)||vi(t)}(function(t){t.__esModule=!0;var e=ue;Object.keys(e).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===e[i]||(t[i]=e[i])});var r=_e;Object.keys(r).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===r[i]||(t[i]=r[i])});var n=ge;Object.keys(n).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===n[i]||(t[i]=n[i])})})(mi),function(t,e){e.__esModule=!0,e.default=void 0;var r=s(Lo),n=o(mi);function i(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return i=function(){return l},l}function o(l){if(l&&l.__esModule)return l;if(l===null||typeof l!="object"&&typeof l!="function")return{default:l};var d=i();if(d&&d.has(l))return d.get(l);var f={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in l)if(Object.prototype.hasOwnProperty.call(l,b)){var x=m?Object.getOwnPropertyDescriptor(l,b):null;x&&(x.get||x.set)?Object.defineProperty(f,b,x):f[b]=l[b]}return f.default=l,d&&d.set(l,f),f}function s(l){return l&&l.__esModule?l:{default:l}}var c=function(d){return new r.default(d)};Object.assign(c,n),delete c.__esModule;var a=c;e.default=a,t.exports=e.default}(ur,ur.exports);var p1=ur.exports;const m1=wa,yi=p1,g1=yi();var v1={isUsableColor(t,e){return m1(e)&&t!=="gray"&&e[600]},commonTrailingPseudos(t){let e=g1.astSync(t),r=[];for(let[i,o]of e.nodes.entries())for(const[s,c]of[...o.nodes].reverse().entries()){if(c.type!=="pseudo"||!c.value.startsWith("::"))break;r[s]=r[s]||[],r[s][i]=c}let n=yi.selector();for(const i of r){if(!i)continue;if(new Set([...i.map(s=>s.value)]).size>1)break;i.forEach(s=>s.remove()),n.prepend(i[0])}return n.nodes.length?[n.toString(),e.toString()]:[null,t]}};const _1=Kn,y1=la,C1=da,b1=ha,{commonTrailingPseudos:x1}=v1,Ci={};function Hr(t,{className:e,modifier:r,prefix:n}){let i=n(`.not-${e}`).slice(1),o=t.startsWith(">")?`${r==="DEFAULT"?`.${e}`:`.${e}-${r}`} `:"",[s,c]=x1(t);return s?`:where(${o}${c}):not(:where([class~="${i}"],[class~="${i}"] *))${s}`:`:where(${o}${t}):not(:where([class~="${i}"],[class~="${i}"] *))`}function bi(t){return typeof t=="object"&&t!==null}function w1(t={},{target:e,className:r,modifier:n,prefix:i}){function o(s,c){return e==="legacy"?[s,c]:Array.isArray(c)?[s,c]:bi(c)?Object.values(c).some(bi)?[Hr(s,{className:r,modifier:n,prefix:i}),c,Object.fromEntries(Object.entries(c).map(([l,d])=>o(l,d)))]:[Hr(s,{className:r,modifier:n,prefix:i}),c]:[s,c]}return Object.fromEntries(Object.entries(y1({},...Object.keys(t).filter(s=>Ci[s]).map(s=>Ci[s](t[s])),...C1(t.css||{}))).map(([s,c])=>o(s,c)))}var xi=_1.withOptions(({className:t="prose",target:e="modern"}={})=>function({addVariant:r,addComponents:n,theme:i,prefix:o}){let s=i("typography"),c={className:t,prefix:o};for(let[a,...l]of[["headings","h1","h2","h3","h4","h5","h6","th"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["p"],["a"],["blockquote"],["figure"],["figcaption"],["strong"],["em"],["kbd"],["code"],["pre"],["ol"],["ul"],["li"],["table"],["thead"],["tr"],["th"],["td"],["img"],["video"],["hr"],["lead",'[class~="lead"]']]){l=l.length===0?[a]:l;let d=e==="legacy"?l.map(f=>`& ${f}`):l.join(", ");r(`${t}-${a}`,e==="legacy"?d:`& :is(${Hr(d,c)})`)}n(Object.keys(s).map(a=>({[a==="DEFAULT"?`.${t}`:`.${t}-${a}`]:w1(s[a],{target:e,className:t,modifier:a,prefix:o})})))},()=>({theme:{typography:b1}}));const wi=yt(xi),S1=Xt({__proto__:null,default:wi},[xi]);var Si={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});const e=n=>Object.assign({},...Object.entries(n!=null?n:{}).flatMap(([i,o])=>typeof o=="object"?Object.entries(e(o)).map(([s,c])=>({[i+(s==="DEFAULT"?"":`-${s}`)]:c})):[{[`${i}`]:o}])),r=e})(Si);var T1={importDefault:t=>t&&t.__esModule?t.default:t};const k1=Si,{importDefault:$1}=T1,E1=$1(k1),Nr=["track","thumb","corner"],Bt=(t,e)=>e?{"@supports (-moz-appearance:none)":t}:t,M1=({addBase:t},e)=>{t({"*":Bt({"scrollbar-color":"initial","scrollbar-width":"initial"},e==="pseudoelements")})},Ti=()=>({...Object.fromEntries(Nr.map(t=>[[`&::-webkit-scrollbar-${t}`,{"background-color":`var(--scrollbar-${t})`,"border-radius":`var(--scrollbar-${t}-radius)`}]]).flat())}),L1=({preferPseudoElements:t})=>({".scrollbar":{...Ti(),...Bt({"scrollbar-width":"auto","scrollbar-color":"var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)"},t),"&::-webkit-scrollbar":{display:"block",width:"var(--scrollbar-width, 16px)",height:"var(--scrollbar-height, 16px)"}},".scrollbar-thin":{...Ti(),...Bt({"scrollbar-width":"thin","scrollbar-color":"var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)"},t),"&::-webkit-scrollbar":{display:"block",width:"8px",height:"8px"}},".scrollbar-none":{...Bt({"scrollbar-width":"none"},t),"&::-webkit-scrollbar":{display:"none"}}}),ki=t=>typeof t=="function"?t({}):t;var D1={addBaseStyles:M1,addBaseSizeUtilities:({addUtilities:t},e)=>{t(L1({preferPseudoElements:e==="pseudoelements"}))},addColorUtilities:({matchUtilities:t,theme:e})=>{const r=E1(e("colors")),n=Object.fromEntries(Object.entries(r).map(([i,o])=>[i,ki(o)]));Nr.forEach(i=>{t({[`scrollbar-${i}`]:o=>({[`--scrollbar-${i}`]:ki(o)})},{values:n,type:"color"})})},addRoundedUtilities:({theme:t,matchUtilities:e})=>{Nr.forEach(r=>{e({[`scrollbar-${r}-rounded`]:n=>({[`--scrollbar-${r}-radius`]:n})},{values:t("borderRadius")})})},addSizeUtilities:({matchUtilities:t,theme:e})=>{["width","height"].forEach(r=>{t({[`scrollbar-${r[0]}`]:n=>({[`--scrollbar-${r}`]:n})},{values:e(r)})})}},P1={addVariants:({addVariant:t})=>{t("scrollbar-hover","&::-webkit-scrollbar-thumb:hover"),t("scrollbar-track-hover","&::-webkit-scrollbar-track:hover"),t("scrollbar-corner-hover","&::-webkit-scrollbar-corner:hover"),t("scrollbar-active","&::-webkit-scrollbar-thumb:active"),t("scrollbar-track-active","&::-webkit-scrollbar-track:active"),t("scrollbar-corner-active","&::-webkit-scrollbar-corner:active")}};const O1=Kn,{addBaseStyles:z1,addBaseSizeUtilities:B1,addColorUtilities:I1,addRoundedUtilities:F1,addSizeUtilities:A1}=D1,{addVariants:R1}=P1;var $i=O1.withOptions((t={})=>e=>{var n;let r=(n=t.preferredStrategy)!=null?n:"standard";r!=="standard"&&r!=="pseudoelements"&&(console.warn("WARNING: tailwind-scrollbar preferredStrategy should be 'standard' or 'pseudoelements'"),r="standard"),z1(e,r),B1(e,r),I1(e),R1(e),t.nocompatible&&(F1(e),A1(e))});const Ei=yt($i),H1=Xt({__proto__:null,default:Ei},[$i]);var It={exports:{}};const Ct=Xn||oa,N1={50:"#FCE3E4",100:"#F9CDCE",200:"#F39699",300:"#ED6368",400:"#E72C32",500:"#C4161C",600:"#9C1216",700:"#770D11",800:"#4E090B",900:"#290506"},Pe={warning:Ct.amber,error:Ct.red,info:Ct.slate,success:Ct.emerald,primary:Ct.blue,brand:N1},j1={...Pe,warning:Pe.warning[500],"warning-darken":Pe.warning[600],"warning-lighten":Pe.warning[400],success:Pe.success[500],"success-darken":Pe.success[600],"success-lighten":Pe.success[400],error:Pe.error[500],"error-darken":Pe.error[600],"error-lighten":Pe.error[400],info:Pe.info[500],"info-darken":Pe.info[600],"info-lighten":Pe.info[400],primary:Pe.primary[500],"primary-darken":Pe.primary[600],"primary-lighten":Pe.primary[400]},G1={prefix:"e-",dark:"class",corePlugins:{preflight:!1},content:["./src/**/*.{html,js,vue,ts}"],theme:{extend:{ringWidth:{1:"1px"},colors:j1,backgroundColor:{surface:{DEFAULT:"#fff",hover:"#e0e2ec","hover-transparent":"rgba(224,226,236,0.64)",active:"#e0ebff"},"surface-dark":{DEFAULT:"#111827",hover:"#263043","hover-transparent":"rgba(38,48,67,0.53)",active:"#003563"}},textColor:{surface:{DEFAULT:"rgba(0, 0, 0, .87)",active:"#1976d2"},"surface-dark":{DEFAULT:"#f6f9ff",active:"#629efc"}},borderColor:{surface:{DEFAULT:"rgb(252, 252, 255)"},"surface-dark":{DEFAULT:"rgba(255, 255, 255, 0.12)"}},lineHeight:{xs:"1rem",sm:"1.25rem",base:"1.5rem",lg:"1.75rem",xl:"1.75rem","2xl":"2rem","3xl":"2.25rem","4xl":"2.5rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},maxWidth:{"1/12":"8.333333333%","2/12":"16.666666666%","3/12":"25%","4/12":"33.333333333%","5/12":"41.666666667%","6/12":"50%","7/12":"58.333333334%","8/12":"66.666666666%","9/12":"75%","10/12":"83.333333334%","11/12":"91.666666666%","12/12":"100%"},blur:{"video-poster":"32px"},transitionProperty:{"opacity-transform":"opacity, transform"},transitionDuration:{600:"600ms"}},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},plugins:[wi||S1,Ei||H1({nocompatible:!0,preferredStrategy:"pseudoelements"})],safelist:[{pattern:/e-w-(full|auto)/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-grow/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-basis-(\d{1,2}\/\d{1,2}|full|auto|0)/,variants:["lg","md","sm","xs","xl"]},{pattern:/^!?e-max-w-(\d{1,2}\/\d{1,2})/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-offset-(1[0-2]|[1-9])/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-items-(start|center|end|baseline|stretch)/},{pattern:/e-self-(start|center|end|baseline|stretch)/},{pattern:/e-justify-(around|between|center|end|evenly|normal|start|stretch)/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-content-(around|baseline|between|center|end|evenly|normal|start|stretch)/},{pattern:/e-m[trblxy]?-[\w\-/]+/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-p[trblxy]?-[\w\-/]+/,variants:["lg","md","sm","xs","xl"]},"e-tiny","e-caption","e-body","e-title-2","e-title-1","e-display-3","e-display-2","e-display-1",{pattern:/e-text-(xs|sm|base|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl|8xl|9xl)/},{pattern:/e-border-(warning|error|info|success|primary|brand|surface)-./},{pattern:/e-text-(warning|error|info|success|primary|brand|surface)-./},{pattern:/e-bg-(warning|error|info|success|primary|brand|surface)-./}]};It.exports=G1;const q1=(It.exports==null?{}:It.exports).default||It.exports,jr=aa(q1),Mi=jr.theme.fontSize,Li=jr.theme.colors,W1=[K.Dot,K.Xs,K.Sm,K.Md,K.Lg,K.Xl],U1=[K.Xs,K.Sm,K.Md,K.Lg,K.Xl,K.TwoXl],Di=[K.Xs,K.Sm,K.Md,K.Base,K.Lg,K.Xl,K.TwoXl,K.ThreeXl,K.FourXl,K.FiveXl,K.SixXl,K.SevenXl,K.EightXl,K.NineXl],Z1=[K.Sm,K.Md,K.Lg],Y1=[se.Warning,se.Error,se.Info,se.Success,se.Primary,se.Default],X1=[se.Warning,se.Error,se.Info,se.Success,se.Primary,se.Default],V1=[Oe.Top,Oe.Bottom,Oe.Right,Oe.Left],Q1=["play","pause","ended","loadeddata","waiting","playing","timeupdate","canplay","canplaythrough","statechanged"],K1=F.extend({name:"EIcon",props:{icon:{type:String,default:""},color:{type:String,default:se.Default},size:{type:String,default:K.Sm}},computed:{sizes(){return Di.reduce((t,e)=>({...t,[e]:`e-text-${e}`}),{})},iconClasses(){var n,i;const t=this.sizes[this.size]||this.sizes[K.Sm],e=`${((i=(n=this.icon)==null?void 0:n.split(" "))==null?void 0:i.length)>1?this.icon:`fa fa-${this.icon}`}`;return["e-inline-flex e-items-center e-justify-center e-rounded-full",this.color,e,t]}}});var J1=function(){var e=this,r=e._self._c;return r("div",e._g(e._b({staticClass:"e-icon"},"div",e.$attrs,!1),e.$listeners),[r("i",{class:e.iconClasses})])},e0=[],t0=H(K1,J1,e0,!1,null,null,null,null);const We=t0.exports,r0=F.extend({name:"ESpinner",props:{dark:{type:Boolean,default:!1},color:{type:Boolean,default:!0},animationDuration:{type:[Number,String],default:1e3},size:{type:String,default:K.Base},opacity:{type:[String,Number],default:1}},data(){return{sizes:Mi,colors:Li}},computed:{computedSize(){return this.sizes[K[this.size]]||this.size||this.sizes[K.Base]},fill(){let t={primary:this.colors.brand[500],secondary:this.colors.neutral[300]};return this.dark&&!this.color&&(t={primary:this.colors.neutral[100],secondary:this.colors.neutral[100]}),!this.dark&&this.color&&(t={primary:this.colors.brand[500],secondary:this.colors.neutral[950]}),!this.dark&&!this.color&&(t={primary:this.colors.neutral[200],secondary:this.colors.neutral[200]}),t}},methods:{getNthPathStyle(t){const e=typeof this.animationDuration=="string"?Number.parseInt(this.animationDuration):this.animationDuration;return{animationDuration:`${this.animationDuration}ms`,animationDelay:`${t/10*e}ms`,fill:`${this.fill[t%2===0?"primary":"secondary"]}`}}}}),Z7="";var n0=function(){var e=this,r=e._self._c;return r("svg",{staticClass:"e-spinner e-block",class:{"e-spinner--dark":e.dark,"e-spinner--grey":!e.color},style:{opacity:e.opacity},attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1629.32 1608.86",width:e.computedSize,height:e.computedSize}},[r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(0),attrs:{d:"m1254.12,591.61C992.01,401.11,439.78,0,439.78,0h601.2c14.3,0,48.95,9.02,62.54,38.01,55.27,117.88,111.32,235.46,170.48,351.43,33.16,70.9-8.99,170.35-19.87,202.16"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(1),attrs:{d:"m1404.65,131.67c-29.37,89.94-55.8,170.95-82.25,251.93-4.05.87-8.1,1.73-12.15,2.61-40.61-83.95-81.21-167.9-123.12-254.54h217.51Z"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(2),attrs:{d:"m1129.06,1093.51c100.75-307.98,312.75-956.75,312.75-956.75,0,0,180.36,558.53,184.75,572.14,4.39,13.59,6.45,49.34-16.96,71.19-95.21,88.81-189.88,178.28-282.06,270.2-57.29,53.34-164.86,43.8-198.48,43.21"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(3),attrs:{d:"m1342.3,1083.06c66.6-63.43,133.22-126.86,207.93-197.98,21.51,73.55,40.3,137.81,60.64,207.37h-263.35c-1.75-3.13-3.48-6.27-5.22-9.39"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(4),attrs:{d:"m610.27,1137.17c324.03-.53,1006.55-1.85,1006.55-1.85,0,0-474.19,345.83-485.74,354.25-11.55,8.42-44.87,21.56-72.94,6.14-114.11-62.68-228.69-124.66-344.81-183.5-68.56-37.76-93.12-142.93-103.06-175.04"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(5),attrs:{d:"m938.58,1468.29c-62.81,42.58-118.35,80.24-180.28,122.23-28.35-87.22-54.62-168.03-80.89-248.86,2.62-2.92,5.26-5.85,7.9-8.76,81.89,43.78,163.79,87.56,253.26,135.39"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(6),attrs:{d:"m413.07,652.86c101.35,307.77,314.99,956,314.99,956,0,0-476.23-343.04-487.83-351.39-11.58-8.36-34.44-35.93-28.52-67.4,24.07-127.96,47.3-256.13,67.09-384.8,14.54-76.9,106.84-132.96,134.28-152.42"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(7),attrs:{d:"m197.48,1068.8c-62.36-47.73-115.99-88.79-176.78-135.33,75.54-54.91,146.18-106.24,216.83-157.57,3.73,2.24,7.45,4.47,11.19,6.71-16.36,91.3-32.7,182.61-51.25,286.19"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(8),attrs:{d:"m813.58,314.41C551.63,505.15,0,907.07,0,907.07c0,0,180.68-558.4,185.09-572.01,4.39-13.59,23.65-43.78,55.41-47.8,129.19-16.29,258.32-33.41,386.86-53.99,77.67-9.72,159.3,60.97,186.22,81.13"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(9),attrs:{d:"m635.14,199.78c-91.99,12.38-183.97,24.77-288.07,38.76,25.77-73.18,48.3-137.14,73.8-209.53,76.56,55.41,147.27,106.58,217.97,157.75-1.23,4.34-2.46,8.68-3.69,13.02"}})])},i0=[],s0=H(r0,n0,i0,!1,null,"9a1333ac",null,null);const Gr=s0.exports,a0=F.extend({props:{align:{type:String,default:void 0},alignContent:{type:String,default:void 0},justify:{type:String,default:void 0},justifyXs:{type:String,default:void 0},justifySm:{type:String,default:void 0},justifyMd:{type:String,default:void 0},justifyLg:{type:String,default:void 0},justifyXl:{type:String,default:void 0},noGutters:{type:Boolean,default:!1}},computed:{justifyClasses(){return{[`e-justify-${this.justify}`]:!!this.justify,[`xs:e-justify-${this.justifySm}`]:!!this.justifySm,[`sm:e-justify-${this.justifySm}`]:!!this.justifySm,[`md:e-justify-${this.justifyMd}`]:!!this.justifyMd,[`lg:e-justify-${this.justifyLg}`]:!!this.justifyLg,[`xl:e-justify-${this.justifyXl}`]:!!this.justifyXl}},rowClasses(){return{...this.align?{[`e-items-${this.align}`]:!0}:{},...this.alignContent?{[`e-content-${this.alignContent}`]:!0}:{},...this.noGutters?{"e-row--no-gutters":!0}:{},...this.justifyClasses}}}}),Y7="";var o0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-row e-flex e-flex-wrap",class:e.rowClasses},[e._t("default")],2)},l0=[],c0=H(a0,o0,l0,!1,null,null,null,null);const qr=c0.exports,u0=F.extend({props:{alignSelf:{type:String,default:"auto"},cols:{type:[Boolean,String,Number],default:void 0},lg:{type:[Boolean,String,Number],default:void 0},md:{type:[Boolean,String,Number],default:void 0},offset:{type:[String,Number],default:void 0},offsetLg:{type:[String,Number],default:void 0},offsetMd:{type:[String,Number],default:void 0},offsetSm:{type:[String,Number],default:void 0},offsetXs:{type:[String,Number],default:void 0},offsetXl:{type:[String,Number],default:void 0},sm:{type:[Boolean,String,Number],default:void 0},xs:{type:[Boolean,String,Number],default:void 0},xl:{type:[Boolean,String,Number],default:void 0}},computed:{colClasses(){return{...this.alignSelf?{[`e-self-${this.alignSelf}`]:!0}:{},[this.autoClasses("xs:",this.xs)]:this.isSizePropAuto(this.xs),[this.autoClasses("sm:",this.sm)]:this.isSizePropAuto(this.sm),[this.autoClasses("md:",this.md)]:this.isSizePropAuto(this.md),[this.autoClasses("lg:",this.lg)]:this.isSizePropAuto(this.lg),[this.autoClasses("xl:e",this.xl)]:this.isSizePropAuto(this.xl),[this.autoClasses("",this.cols)]:this.isSizePropAuto(this.cols,!0),"xs:e-basis-full xs:!e-max-w-12/12":this.xs===12||this.xs==="12","sm:e-basis-full sm:!e-max-w-12/12":this.sm===12||this.sm==="12","md:e-basis-full md:!e-max-w-12/12":this.md===12||this.md==="12","lg:e-basis-full lg:!e-max-w-12/12":this.lg===12||this.lg==="12","xl:e-basis-full xl:!e-max-w-12/12":this.xl===12||this.xl==="12","e-basis-full e-max-w-12/12":this.cols===12||this.cols==="12",[`xs:e-basis-${this.xs}/12 xs:!e-max-w-${this.xs}/12`]:this.isSizePropertyNumeric(this.xs),[`sm:e-basis-${this.sm}/12 sm:!e-max-w-${this.sm}/12`]:this.isSizePropertyNumeric(this.sm),[`md:e-basis-${this.md}/12 md:!e-max-w-${this.md}/12`]:this.isSizePropertyNumeric(this.md),[`lg:e-basis-${this.lg}/12 lg:!e-max-w-${this.lg}/12`]:this.isSizePropertyNumeric(this.lg),[`xl:e-basis-${this.xl}/12 xl:!e-max-w-${this.xl}/12`]:this.isSizePropertyNumeric(this.xl),[`e-basis-${this.cols}/12 !e-max-w-${this.cols}/12`]:this.isSizePropertyNumeric(this.cols),[`xs:e-offset-${this.offsetXs}`]:this.offsetXs!==void 0,[`sm:e-offset-${this.offsetSm}`]:this.offsetSm!==void 0,[`md:e-offset-${this.offsetMd}`]:this.offsetMd!==void 0,[`lg:e-offset-${this.offsetLg}`]:this.offsetLg!==void 0,[`xl:e-offset-${this.offsetXl}`]:this.offsetXl!==void 0,[`e-offset-${this.offset}`]:this.offset!==void 0}}},methods:{autoClasses(t,e){return`${t}e-basis-${e==="auto"?"auto":"0"} ${t}e-grow${e==="auto"?"-0":""} ${t}e-w-${e==="auto"?"auto":"full"}`},isSizePropAuto(t,e=!1){return t==="auto"||t===0||t==="0"||e&&!t},isSizePropertyNumeric(t){const e=Number.parseInt(t);return t!=="auto"&&!isNaN(e)&&e>=1&&e<12}}}),X7="";var d0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-col",class:e.colClasses},[e._t("default")],2)},h0=[],f0=H(u0,d0,h0,!1,null,null,null,null);const Wr=f0.exports;function Ur(){const t=document;return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)}function Zr(t){if(Ur())return new Promise(r=>r(null));const e=t;return e.requestFullscreen?e==null?void 0:e.requestFullscreen():e.mozRequestFullScreen?e==null?void 0:e.mozRequestFullScreen():e.webkitRequestFullScreen?e==null?void 0:e.webkitRequestFullScreen():e.msRequestFullscreen?e==null?void 0:e.msRequestFullscreen():new Promise(r=>r(null))}function Yr(){if(!Ur())return new Promise(e=>e(null));const t=document;return t.exitFullscreen?t.exitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitCancelFullScreen?t.webkitCancelFullScreen():t.msExitFullscreen?t.msExitFullscreen():new Promise(e=>e(null))}function p0(t,e){let r=null;return function(...n){const i=this;r!==null&&clearTimeout(r),r=setTimeout(()=>{r=null,t.apply(i,n)},e||1e3)}}function m0(t=1){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let r="";for(let n=0;n<t;n++)r+=e.charAt(Math.floor(Math.random()*e.length));return r}function g0(t,e=0,r=0,n=t.naturalWidth,i=t.naturalHeight){const o=document.createElement("canvas"),s=o.getContext("2d");o.width=n,o.height=i,s==null||s.drawImage(t,e,r,n,i,0,0,n,i);const c=o.toDataURL();return o.remove(),c}function v0(t){return!!(t!=null&&t.length&&!isNaN(new Date(t).getTime()))}function Pi(t,e=1){let r=0,n=0,i=0;return t.length===4?(r=parseInt(t[1]+t[1],16),n=parseInt(t[2]+t[2],16),i=parseInt(t[3]+t[3],16)):t.length===7&&(r=parseInt(t[1]+t[2],16),n=parseInt(t[3]+t[4],16),i=parseInt(t[5]+t[6],16)),`rgba(${r}, ${n}, ${i}, ${e})`}function Oi(t,e=1){const r=t.match(/\d+/g);return r&&r.length===3?`rgba(${r[0]}, ${r[1]}, ${r[2]}, ${e})`:null}function zi(t){return t.startsWith("rgba")}function ht(t,e=1){return zi(t)?t:t.startsWith("#")?Pi(t,e):t.startsWith("rgb")?Oi(t,e):t}function _0(t){const e=JSON.stringify(t);return Bi(e).toString()}function Bi(t){let e=0,r,n;if(t.length===0)return e;for(r=0;r<t.length;r++)n=t.charCodeAt(r),e=(e<<5)-e+n,e|=0;return e}function Xr(t,e,r){const n=O.scaleLinear().domain([0,r-1]).range([0,1]);return Array.from({length:r},(i,o)=>O.interpolate(t,e)(n(o)))}const Ii={continuous:{monday:["00:00-23:59"],tuesday:["00:00-23:59"],wednesday:["00:00-23:59"],thursday:["00:00-23:59"],friday:["00:00-23:59"],saturday:["00:00-23:59"],sunday:["00:00-23:59"]},custom:{monday:["00:00-23:59"],tuesday:["00:00-23:59"],wednesday:["00:00-23:59"],thursday:["00:00-23:59"],friday:["00:00-23:59"],saturday:["00:00-23:59"],sunday:["00:00-23:59"]},workingHours:{monday:["08:00-18:00"],tuesday:["08:00-18:00"],wednesday:["08:00-18:00"],thursday:["08:00-18:00"],friday:["08:00-18:00"],saturday:[],sunday:[]},empty:{monday:[],tuesday:[],wednesday:[],thursday:[],friday:[],saturday:[],sunday:[]}},y0=24*60-1,Fi=t=>{const[e,r]=t.split(":");return parseInt(e)*60+parseInt(r)},Vr=t=>{const e=Math.floor(t/60).toString().padStart(2,"0"),r=(t%60).toString().padStart(2,"0");return`${e}:${r}`};function Qr(t){return["monday","tuesday","wednesday","thursday","friday","saturday","sunday"].reduce((r,n)=>{const i=t[n];return{...r,[n]:i.length?i.map(o=>o.split("-").map(s=>Fi(s))):[]}},{})}function C0(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e,r.map(n=>{const[i,o]=n.split("-");let[s,c]=o.split(":");return s=parseInt(s),s=Math.max(0,s-1),`${i}-${s.toString().padStart(2,"0")}:${c}`})]))}const b0=F.extend({name:"EZoomable",props:{ignorePointerEvents:{type:Boolean,default:!1},withOverlay:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},data(){return{scale:1,minScale:1,maxScale:20,top:0,left:0,isPanning:!1,panStart:{x:0,y:0},isPinching:!1,previousPinchDistance:0,pinchDistance:0,pointers:{},transform:"matrix(1, 0, 0, 1, 0, 0)"}},computed:{contentStyle(){return{transform:this.transform}},isZoomed(){return this.scale>1}},watch:{contentStyle:{handler(t){this.$emit("on-frame-props-change",{imgStyle:t})},immediate:!0,deep:!0}},methods:{zoom(t){const e=this.$refs.container;if(this.disabled)return;const r=e.getBoundingClientRect(),n={x:r.width/2,y:r.height/2},i=this.scale;t<0?this.scale*=1.2:this.scale*=.8,this.updateZoomScale(),this.left=(this.left-n.x)*(this.scale/i)+n.x,this.top=(this.top-n.y)*(this.scale/i)+n.y;const o=0-r.width*(this.scale-1),s=0-r.height*(this.scale-1);this.left=Math.min(0,Math.max(o,this.left)),this.top=Math.min(0,Math.max(s,this.top)),this.updateTransform()},updateZoomScale(){this.scale>this.maxScale?this.scale=this.maxScale:this.scale<this.minScale&&(this.scale=this.minScale)},handleZoom(t){const e=this.$refs.container,r=this.$refs.content;if(t.preventDefault(),this.disabled)return;const n=e.getBoundingClientRect(),i=r.getBoundingClientRect();if(!n||!i)return;const o=t.clientX,s=t.clientY,c=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail)),a=this.scale;this.scale+=c/10,this.updateZoomScale();const l=((o-i.left)/i.width).toFixed(2),d=((s-i.top)/i.height).toFixed(2);this.left=Math.round(o-n.left-Number(l)*(i.width*this.scale/a)),this.top=Math.round(s-n.top-Number(d)*(i.height*this.scale/a));const f=0,m=0-n.width*(this.scale-1),b=0-n.height*(this.scale-1),x=0;this.left<m?this.left=m:this.left>f&&(this.left=f),this.top<b?this.top=b:this.top>x&&(this.top=x),this.updateTransform()},handleMouseDown(t){!this.isZoomed||this.disabled||(this.isPanning=!0,this.panStart={x:t.clientX,y:t.clientY})},handleMouseUp(){this.disabled||(this.isPanning=!1)},handleMouseLeave(){this.disabled||(this.isPanning=!1)},handleMouseMove(t){if(!this.isPanning||!this.isZoomed||this.disabled)return;const e=t.clientX-this.panStart.x,r=t.clientY-this.panStart.y;this.left+=e,this.top+=r,this.applyBoundsCorrection(),this.panStart={x:t.clientX,y:t.clientY},this.updateTransform()},applyBoundsCorrection(){const t=this.$refs.container,e=this.$refs.content,r=t.getBoundingClientRect(),n=e.getBoundingClientRect();if(!r||!n)return;const[i,o,s,c]=[r.top-n.top,n.right-r.right,n.bottom-r.bottom,r.left-n.left].map(a=>a<0?a:0);this.left+=c-o,this.top+=i-s},updateTransform(){this.transform=`matrix(${this.scale}, 0, 0, ${this.scale}, ${this.left}, ${this.top})`},getPointersDistance(t,e){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)},getPointersMidPoint(t,e){return{x:t.clientX+(e.clientX-t.clientX)/2,y:t.clientY+(e.clientY-t.clientY)/2}},updatePointerEvent(t){this.pointers[t.pointerId]=t},clearPointerEvent(t){this.$delete(this.pointers,t.pointerId)},updatePinchDistance(){const t=Object.values(this.pointers);t.length===2&&(this.pinchDistance=this.getPointersDistance(t[0],t[1]))},handlePointerDown(t){this.ignorePointerEvents||this.disabled||(this.updatePointerEvent(t),this.isPinching=Object.values(this.pointers).length===2,this.isPinching?(this.isPanning=!1,this.updatePinchDistance()):this.handleMouseDown(t))},handlePointerMove(t){if(!(this.ignorePointerEvents||this.disabled))if(this.updatePointerEvent(t),this.isPinching){this.previousPinchDistance=this.pinchDistance,this.updatePinchDistance();const e=this.pinchDistance/this.previousPinchDistance;this.scale*=e,this.updateZoomScale();const r=Object.values(this.pointers),n=this.getPointersMidPoint(r[0],r[1]);this.left=n.x-(n.x-this.left)*e,this.top=n.y-(n.y-this.top)*e,this.applyBoundsCorrection(),this.updateTransform()}else this.handleMouseMove(t)},handlePointerUp(t){this.ignorePointerEvents||this.disabled||(this.clearPointerEvent(t),this.previousPinchDistance=0,this.pinchDistance=0,this.isPanning=!1,this.isPinching=!1)}}}),V7="";var x0=function(){var e=this,r=e._self._c;return r("div",{ref:"container",staticClass:"e-zoomable e-w-full e-h-full"},[r("div",{staticClass:"e-w-full e-h-full",class:{"e-cursor-grab":e.isZoomed&&!e.disabled,"e-cursor-grabbing":e.isPanning&&!e.disabled},on:{mousewheel:e.handleZoom,mousedown:e.handleMouseDown,mouseup:e.handleMouseUp,mouseleave:e.handleMouseLeave,mousemove:e.handleMouseMove,pointerdown:e.handlePointerDown,pointermove:e.handlePointerMove,pointerup:e.handlePointerUp,pointercancel:e.handlePointerUp,pointerout:e.handlePointerUp,pointerleave:e.handlePointerUp}},[r("div",{ref:"content",staticClass:"e-zoomable__content e-w-full e-h-full e-transform-0 e-touch-none e-relative",style:e.contentStyle},[e._t("default")],2),e.withOverlay&&!e.disabled?r("div",{staticClass:"e-zoomable__overlay e-absolute e-w-full e-h-full e-bottom-0 e-left-0 e-overflow-hidden"},[e._t("overlay")],2):e._e()])])},w0=[],S0=H(b0,x0,w0,!1,null,"06b5341b",null,null);const Kr=S0.exports,Jr=new Intl.NumberFormat(void 0,{minimumIntegerDigits:2}),Ai=["play","pause","ended","loadeddata","waiting","playing","timeupdate","canplay","canplaythrough","statechanged","error"],en=t=>{const e=Math.floor(t%60),r=Math.floor(t/60)%60,n=Math.floor(t/3600);return n===0?`${r}:${Jr.format(e)}`:`${n}:${Jr.format(r)}:${Jr.format(e)}`},T0=F.extend({name:"EVideoPlayer",components:{ESpinner:Gr,EZoomable:Kr},props:{targetTimestamp:{type:[String,Date],default:void 0},sources:{type:[Array,String],required:!0},videoListeners:{type:Object,default:()=>({})},videoOptions:{type:Object,default:()=>({})},isHls:{type:Boolean,default:!1},isEdgeVideo:{type:Boolean,default:!1},edgeStreamingToken:{type:String,default:""},authToken:{type:String,default:""},pauseOnClick:{type:Boolean,default:!0},isHlsLoading:{type:Boolean,default:!1},isPlaying:{type:Boolean,default:!1},showLoadingAnimation:{type:Boolean,default:!1},isZoomable:{type:Boolean,default:!1},zoomableIgnorePointerEvents:{type:Boolean,default:!1},timezone:{type:String,default:"UTC"},playPauseAnimation:{type:Boolean,default:!0},disablePlayPauseAnimation:{type:Boolean,default:!1},isWebRtc:{type:Boolean,default:!1},withColoredLoader:{type:Boolean,default:!1},loaderSize:{type:String,default:"SevenXl"},withOverlayOnBackground:{type:Boolean,default:!1},fallbackSrc:{type:String,default:""},hlsOptions:{type:Object,default:()=>({})}},data(){return{playing:!1,percentagePlayed:0,videoLength:"0:00",duration:0,videoDuration:0,currentTime:"0:00",realtime:0,isScrubbing:!1,wasPaused:!1,isFullscreen:!1,isFinished:!1,isLoading:!0,isError:!1,player:new at,playbackRetries:0,preloadedSeconds:0,preloadedInterval:{}}},computed:{posterUrl(){const t=this.videoOptions;return(t==null?void 0:t.poster)||(t==null?void 0:t.backgroundUrl)},sourceItems(){return Array.isArray(this.sources)?this.sources:[{src:this.sources}]},withControls(){const t=this.videoOptions;return(t==null?void 0:t.controls)===!1?"hide":""},streamingToken(){return this.isEdgeVideo?this.edgeStreamingToken:this.authToken}},watch:{isPlaying:{immediate:!0,async handler(t){this.playing=t,t?await this.play():this.pause(),this.isHls&&(t?this.$emit("hls-play"):this.$emit("hls-pause"))}},preloadedSeconds(t){this.preloadedInterval={start:ke(this.targetTimestamp).format(),end:ke(this.targetTimestamp).add(t,"seconds").format()},this.$emit("preloaded-interval",this.preloadedInterval)},targetTimestamp:{immediate:!0,handler(t){var o,s;if(!this.isHls)return;const e=this.$refs.player,r=(o=this.preloadedInterval)==null?void 0:o.start,n=(s=this.preloadedInterval)==null?void 0:s.end;if(!(r&&n))return;const i=ke(t).isBetween(ke(r),ke(n),void 0,"[]");e.currentTime=0,i||this.initHls()}}},mounted(){this.isHls&&this.initHls(),this.bindEvents(),this.initializePlayer(),this.initializeFullscreenListeners()},beforeDestroy(){this.unbindEvents(),this.destroyPlayer(),this.removeFullscreenListeners()},methods:{initHls(t=""){var n,i,o,s,c;const e=this.$refs.player,r=this.sources[0];(n=this.player)!=null&&n.stopLoad&&this.player.stopLoad(),at.isSupported()&&(this.isLoading=!0,this.player=new at({startPosition:0,xhrSetup:a=>{this.streamingToken&&a.setRequestHeader("Authorization",`Bearer ${this.streamingToken}`)},...this.hlsOptions}),(i=this.player)==null||i.loadSource(t||r.src),(o=this.player)==null||o.attachMedia(e),(s=this.player)==null||s.on(at.Events.MANIFEST_PARSED,(a,l)=>{var m;const d=(m=l.levels[l.firstLevel])==null?void 0:m.details,f=d==null?void 0:d.startTimeOffset;e.currentTime=f||0,this.playing&&e.play()}),(c=this.player)==null||c.on(at.Events.ERROR,this.handleHlsError))},onContainerClick(){this.pauseOnClick&&this.togglePlay()},handle404Error(){this.isWebRtc||(this.isError=!0,this.isLoading=!1,this.playing=!1)},handleHlsError(t,e){var l;if(!e.fatal)return;this.$emit("error",e);const r=e.type===at.ErrorTypes.NETWORK_ERROR,n=e.type===at.ErrorTypes.MEDIA_ERROR,i=r&&((l=e.networkDetails)==null?void 0:l.status)===404,o=this.$refs.player,s=()=>this.fallbackSrc&&(o==null?void 0:o.currentSrc)!==this.fallbackSrc,c=()=>this.initHls(this.fallbackSrc),a=()=>{if(s()){c();return}this.player.destroy(),this.videoListeners.error?this.videoListeners.error():this.handle404Error()};if(i){a();return}if(r){console.error("A network error occurred:",e),s()?c():this.player.startLoad();return}n&&(console.error("A media error occurred:",e),s()?c():this.player.recoverMediaError()),a()},bindEvents(){const t=this.$refs.player;Ai.forEach(e=>{t.addEventListener(e,()=>this.bindVideoEvent(e),!0)})},onProgress(){const t=this.$refs.player;if(t&&t.buffered.length>0)try{this.preloadedSeconds=t.buffered.end(t.buffered.length-1)}catch(e){console.error("Error while fetching buffered end time:",e)}else console.log("No video data has been buffered yet.")},unbindEvents(){const t=this.$refs.player;Ai.forEach(e=>{t.removeEventListener(e,()=>this.bindVideoEvent(e),!0)})},bindVideoEvent(t){const e=this.$refs.player;if(!e)return;const r=this.$refs.timelineContainer;t==="loadeddata"&&(this.videoLength=en(e.duration)),r&&(t==="timeupdate"&&(this.percentagePlayed=(e==null?void 0:e.currentTime)/(e==null?void 0:e.duration)*100,r==null||r.style.setProperty("--progress-position",this.percentagePlayed.toString())),this.$emit(t,{event,player:e}))},initializePlayer(){const t=this.$refs.player;t&&(t.autoplay&&this.setPlaying(!0),document.addEventListener("mouseup",this.handleScrubbingOnMouseEnd),document.addEventListener("keydown",this.handleKeyDown))},destroyPlayer(){this.player&&(this.player.stopLoad(),this.player.destroy()),window.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("mouseup",this.handleScrubbingOnMouseEnd)},removeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.removeEventListener("fullscreenchange",this.handleFullscreenChange),t.removeEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.removeEventListener("mozfullscreenchange",this.handleFullscreenChange),t.removeEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},initializeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.addEventListener("fullscreenchange",this.handleFullscreenChange),t.addEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.addEventListener("mozfullscreenchange",this.handleFullscreenChange),t.addEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},handleFullscreenChange(){const t=document;this.isFullscreen=!!t.fullscreenElement||!!t.mozFullScreenElement||!!t.webkitFullscreenElement||!!t.msFullscreenElement||window.innerWidth==screen.width&&window.innerHeight==screen.height},isLooped(){return this.$refs.player.loop},handleScrubbingOnMouseEnd(t){this.isScrubbing&&this.toggleScrubbing(t)},handleEnded(){this.isFinished=!0,this.playing=!1},handleLoading(){this.isLoading=!1},async play(){const t=this.$refs.player;if(t)try{await t.play(),this.setPlaying(!0)}catch(e){console.error(e),this.playbackRetries+=1,this.isHls&&this.playbackRetries<3&&this.initHls()}},pause(){const t=this.$refs.player;t&&(t.pause(),this.setPlaying(!1))},async togglePlay(){this.playing?this.pause():await this.play()},setPlaying(t){this.playing=t},seekToPercentage(t){const e=this.$refs.player;if(!e)return;const r=t/100*e.duration;e.currentTime=r},convertTimeToDuration(t){return[parseInt(t/60%60,10),parseInt(t%60,10)].join(":").replace(/\b(\d)\b/g,"0$1")},closeFullscreenMode(){document.fullscreenElement&&(Yr().then(()=>{this.isFullscreen=!1}),this.isFullscreen=!1)},openFullscreenMode(){const t=this.$refs.videoContainer;t&&(Zr(t).then(()=>{this.isFullscreen=!0}),this.isFullscreen=!0)},toggleFullscreenMode(){this.isFullscreen?this.closeFullscreenMode():this.openFullscreenMode()},getDuration(){const t=this.$refs.player;this.videoLength=en(t.duration),this.videoDuration=t.duration},handleTimeUpdate(){const t=this.$refs.player,e=this.$refs.timelineContainer;if(!t||!e)return;this.currentTime=en(t.currentTime),this.realtime=t.currentTime;const r=Number(this.realtime)/Number(this.videoDuration);e.style.setProperty("--progress-position",r.toString())},handleTimelineUpdate(t){const e=this.$refs.player;if(!document.body.contains(e))return;const r=this.$refs.timelineContainer,n=r.getBoundingClientRect(),i=Math.min(Math.max(0,t.x-n.x),n.width)/n.width;r.style.setProperty("--preview-position",i.toString()),this.isScrubbing&&(t.preventDefault(),r.style.setProperty("--progress-position",i.toString()))},skip(t=5){const e=this.$refs.player;e.currentTime+=t},async toggleScrubbing(t){const e=this.$refs.timelineContainer,r=this.$refs.videoContainer,n=this.$refs.player;if(!n)return;const i=e.getBoundingClientRect(),o=Math.min(Math.max(0,t.x-i.x),i.width)/i.width;if(this.isScrubbing=(t.buttons&1)===1,r.classList.toggle("scrubbing",this.isScrubbing),this.isScrubbing){this.wasPaused=n.paused,await n.pause(),this.handleTimelineUpdate(t);return}if(this.realtime=o*this.videoDuration,n.currentTime=o*this.videoDuration,this.wasPaused)return;const s=n.play();s!==void 0&&s.then(()=>this.handleTimelineUpdate(t)).catch(console.error)},handleKeyDown(t){var r;const e=(r=document.activeElement)==null?void 0:r.tagName.toLowerCase();if(e!=="input")switch(t.key.toLowerCase()){case" ":if(e==="button")return;this.togglePlay();break;case"k":this.togglePlay();break;case"escape":t.preventDefault(),this.closeFullscreenMode(),this.isFullscreen=!1;break;case"f":this.openFullscreenMode(),this.isFullscreen=!0;break}}}}),Q7="";var k0=function(){var e=this,r=e._self._c;return r("div",{ref:"videoContainer",staticClass:"e-video-player video-container paused"},[r("EZoomable",{ref:"zoomable",attrs:{"ignore-pointer-events":e.zoomableIgnorePointerEvents,disabled:!e.isZoomable,"with-overlay":e.withOverlayOnBackground},on:{"on-frame-props-change":function(n){return e.$emit("on-frame-props-change",n)}},scopedSlots:e._u([{key:"overlay",fn:function(){return[e._t("player-container-overlay")]},proxy:!0}],null,!0)},[e._t("background",function(){return[r("div",{staticClass:"e-relative e-overflow-hidden",style:{height:e.$attrs.height,width:e.$attrs.width}},[e.posterUrl?r("img",{staticClass:"e-absolute e-block e-w-full e-scale-150 e-z-[-1] e-inset-0 e-m-auto e-blur-video-poster",style:{height:e.$attrs.height,width:e.$attrs.width},attrs:{src:e.posterUrl,alt:"background-image"},on:{error:function(n){return e.$emit("error",n)}}}):e._e()])]}),r("video",e._g(e._b({ref:"player",class:{"e-w-full e-h-full e-z-[5] e-min-h-[400px]":!0,"e-absolute e-inset-0":e.isZoomable,"e-relative":!e.isZoomable},attrs:{controls:!1,preload:"auto"},on:{ended:e.handleEnded,click:e.onContainerClick,loadedmetadata:e.getDuration,seeking:function(n){e.isLoading=!0},seeked:function(n){e.isLoading=!1},timeupdate:e.handleTimeUpdate,loadeddata:e.handleLoading}},"video",e.videoOptions,!1),e.videoListeners),[e.isWebRtc?e._e():e._l(e.sourceItems,function(n){return r("source",e._g({key:n.src,attrs:{src:n.src,type:n.type},on:{error:e.handle404Error}},e.videoListeners))})],2)],2),e.isLoading||e.showLoadingAnimation?r("div",{staticClass:"spinner-container"},[r("ESpinner",{attrs:{color:e.withColoredLoader,size:e.loaderSize,opacity:"0.6",dark:!0}})],1):e._e(),e._t("default"),e.isError?r("div",{staticClass:"spinner-container e-gap-3"},[e._t("error",function(){return[r("i",{staticClass:"fa-solid fa-video-slash fa-2xl e-align-middle"}),r("span",[e._v("This video file cannot be played.")])]})],2):e._e(),e._t("controls",function(){return[r("div",{class:["video-controls-container",e.withControls]},[r("div",{staticClass:"controls"},[r("button",{ref:"playPauseBtn",staticClass:"play-pause-btn fa-lg fa-solid fas",class:{"fa-play":!e.playing,"fa-pause":e.playing},attrs:{title:e.playing?"pause":"play"},on:{click:e.togglePlay}}),r("div",{staticClass:"duration-container"},[r("div",{ref:"currentTimeElem",staticClass:"current-time"},[e._v(" "+e._s(e.currentTime)+" ")]),e._v(" / "),r("div",{ref:"totalTimeElem",staticClass:"total-time"},[e._v(e._s(e.videoLength))])]),r("div",{ref:"timelineContainer",staticClass:"timeline-container",on:{mousemove:e.handleTimelineUpdate,mousedown:e.toggleScrubbing}},[e._m(0)]),r("button",{ref:"fullScreenBtn",staticClass:"full-screen-btn fa-solid",class:{"fa-expand":!e.isFullscreen,"fa-compress":e.isFullscreen},on:{click:e.toggleFullscreenMode}})])])]},{play:e.play,pause:e.pause,isPlaying:e.playing,playerInstance:e.player,toggleFullscreen:e.toggleFullscreenMode,currentTime:e.currentTime,videoLength:e.videoLength,isFullscreen:e.isFullscreen})],2)},$0=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"timeline"},[e("div",{staticClass:"thumb-indicator"})])}],E0=H(T0,k0,$0,!1,null,"d7aeb2b0",null,null);const Ri=E0.exports,Ve={bind(t,e){const{value:r}=e;if(typeof r!="function"){console.error("Invalid callback function provided to v-resize-observer");return}const n=new ResizeObserver(i=>{i[0]&&r(i[0])});n.observe(t),t.__resizeObserver__=n},unbind(t){t.__resizeObserver__&&(t.__resizeObserver__.disconnect(),delete t.__resizeObserver__)}},M0=(t,e)=>t===e||t.contains(e),L0=(t,e)=>r=>{M0(t,r.target)||e(r)},Hi=["mousedown","touchstart","click"],tn={bind(t,e){const r=t,n=e.value;if(typeof n!="function"){console.warn("v-click-outside requires a function value");return}r.clickOutsideHandler={events:Hi,handler:L0(r,n),callback:n},queueMicrotask(()=>{Hi.forEach(i=>{document.addEventListener(i,r.clickOutsideHandler.handler)})})},unbind(t){const e=t;e.clickOutsideHandler&&(e.clickOutsideHandler.events.forEach(r=>{document.removeEventListener(r,e.clickOutsideHandler.handler)}),delete e.clickOutsideHandler)}},Ni=[{name:"resize-observer",definition:Ve},{name:"click-outside",definition:tn}],Je={transparencyGradient:"transparency-gradient",transparencyGradientLight:"transparency-gradient-light",transparencyGradientHover:"transparency-gradient-hover",loadingGradient:"loading-gradient",stripedPattern:"stripedPattern",clipPath:"clip-path"},me={xAxis:"e-x-axis",xAxisDark:"e-x-axis--dark",xAxisOverview:"e-x-axis-overview",xAxisDetailed:"e-x-axis-detailed",xAxisBackground:"e-x-axis-background",eventGroup:"event-group",eventGroupBg:"event-group-bg",eventGroupContent:"event-group-content",eventRect:"event-rect",eventRectContainer:"event-rect-container",eventBarContainer:"event-bar-container",eventBarContainerHovered:"event-bar-container--hovered",eventBarContainerSelected:"event-bar-container--selected",eventBar:"event-bar",eventBarHoverZone:"event-bar-hover-zone",eventRectText:"event-rect-text",eventRectHovered:"event-rect--hovered",eventRectSelected:"event-rect--selected",labelGroup:"label-g",labelBg:"label-bg",labelBgFill:"label-bg-fill",labelText:"label-text",loadingIndicator:"loading-indicator",_legacyLabelGroup:"legacy-label-g",_legacyLabelBg:"legacy-label-bg",_legacyLabelBgFill:"legacy-label-bg-fill",_legacyLabelText:"legacy-label-text",_legacyLoadingIndicator:"legacy-loading-indicator",selectedTimestampCursor:"selected-timestamp-cursor",marker:"marker",markerLabel:"marker-label",markerLine:"marker-line",markerDragged:"marker--dragged",milestone:"e-tl-milestone",milestoneBullet:"e-tl-milestone--bullet",milestoneDot:"e-tl-milestone--dot",milestoneContent:"e-tl-milestone-content",milestoneLine:"e-tl-milestone-line",milestonesContainer:"e-tl-milestones",milestoneHovered:"e-tl-milestone--hovered",milestoneSelected:"e-tl-milestone--selected",milestoneLabel:"e-tl-milestone-label",milestoneDotContainer:"e-tl-milestone-dot-container",milestoneDotLine:"e-tl-milestone-dot-line",milestoneDotDot:"e-tl-milestone-dot-dot",milestoneDotHovered:"e-tl-milestone-dot--hovered",barChartGroup:"bar-chart-group",lineGraphGroup:"line-graph-group",lineGraphGroupLabel:"line-graph-group-label",areaGraphPath:"area-graph-path",lineGraphPath:"line-graph-path",lineGraphHoverZone:"line-graph-hover-zone",lineGraphDot:"line-graph-dot",forbiddenInterval:"forbidden-interval"};function Qe({timestamp:t,timezone:e}){const r=ji(t,e);return ke(t).add(r,"minutes").toDate()}function Ft({date:t,timezone:e}){const r=new Date(t).getTimezoneOffset(),n=ji(t,e);return ke(t).add(r,"minutes").utcOffset(n,!0).format()}function ji(t,e){return e?ke.tz(t,e).utcOffset():D0(t)}function D0(t){return ke.parseZone(t).utcOffset()}const P0=F.extend({name:"ETimelineMilestone",directives:{resizeObserver:Ve},props:{timeScale:{type:Function,required:!0},milestone:{type:Object,required:!0},y:{type:Number,required:!0},height:{type:Number,default:18},size:{type:Number,default:18},borderColor:{type:String,default:"#eee"},backgroundColor:{type:String,default:"#aaa"},borderWidth:{type:Number,default:2},transitionDuration:{type:Number,default:500},dot:{type:Boolean,default:!1},dotSize:{type:Number,default:8},lineWidth:{type:Number,default:2},lineHeight:{type:Number,default:28},timezone:{type:[String,void 0],default:void 0}},data(){return{classNames:me,timeouts:[],isInitialRender:!0,isMouseOver:!1,containerWidth:"",containerHeight:""}},computed:{transitionStyles(){return this.isInitialRender?{}:{transition:`transform ${this.transitionDuration}ms, width ${this.transitionDuration}ms, height ${this.transitionDuration}ms, padding ${this.transitionDuration}ms, border-radius ${this.transitionDuration}ms`}},sizeStyles(){return this.dot?{}:{width:`${this.isMouseOver?this.containerWidth:this.size}px`,height:`${this.isMouseOver?this.containerHeight:this.size}px`}},positionStyles(){return{left:`${this.timeScale(this.tzStringToDate(this.milestone.timestamp))}px`,top:`${this.linePosition}px`,transform:this.dot&&this.isMouseOver?`translateY(calc(-100% - ${this.lineHeight}px))`:""}},styles(){return{...this.sizeStyles,...this.positionStyles,backgroundColor:this.backgroundColor,borderColor:this.borderColor,borderWidth:`${this.borderWidth}px`,borderStyle:"solid",...this.transitionStyles}},linePosition(){const t=this.height/2;return this.y+t-1},contentStyles(){return this.transitionStyles},computedTransitionDuration(){return this.isInitialRender?0:this.transitionDuration},labelStyles(){return{transition:`opacity ${this.computedTransitionDuration}ms`}},dotContainerStyles(){return{top:this.isMouseOver?`calc(100% - ${this.borderWidth}px)`:`calc(50% + ${this.dotSize/2}px)`,height:`calc(${this.lineHeight}px + ${this.dotSize}px)`,left:`calc(50% - ${this.lineWidth}px / 2)`,transition:`${this.computedTransitionDuration}ms`}},lineStyles(){return{bottom:`${this.dotSize/2}px`,left:`calc(50% - ${this.lineWidth}px / 2)`,width:`${this.lineWidth}px`,height:this.isMouseOver?`${this.lineHeight}px`:"0",backgroundColor:this.borderColor,transition:`${this.computedTransitionDuration}ms`}},dotStyles(){return{top:`${this.lineHeight}px`,left:`calc(50% - ${this.dotSize}px / 2)`,width:`${this.dotSize}px`,height:`${this.dotSize}px`,backgroundColor:this.borderColor,transition:`${this.computedTransitionDuration}ms`}}},mounted(){this.$nextTick(()=>{this.dot||(this.onMilestoneMouseOver(),this.onMilestoneMouseLeave()),this.isInitialRender=!1})},methods:{onMilestoneMouseOver(t){if(this.isMouseOver=!0,this.$emit("hovered-milestone",this.milestone),this.dot)return;const e=(t==null?void 0:t.target)||this.$refs.container;if(!e)return;const r=e.children[0];if(!r)return;const n=r.children[0];if(!n)return;const i=n.getBoundingClientRect(),o=e.dataset.timeoutId;o&&(clearTimeout(Number(o)),e.dataset.timeoutId=""),e.dataset.initialWidth||(e.dataset.initialWidth=e.style.width),e.dataset.initialHeight||(e.dataset.initialHeight=e.style.height),this.containerWidth||(this.containerWidth=e.dataset.initialContentWidth=String(i.width)),this.containerHeight||(this.containerHeight=e.dataset.initialContentHeight=String(i.height)),e.dataset.transitionStart=String(Date.now()),e.style.borderRadius="0.5em",e.classList.add(me.milestoneHovered),r.style.opacity="1",r.style.width=this.containerWidth+"px",r.style.height=this.containerHeight+"px"},onMilestoneMouseMove(){this.timeouts.forEach(t=>clearTimeout(t)),this.isMouseOver=!0},onMilestoneMouseLeave(t){if(this.$emit("hovered-milestone",null),this.dot){this.timeouts.push(setTimeout(()=>{this.isMouseOver=!1},this.transitionDuration+100));return}const e=(t==null?void 0:t.target)||this.$refs.container;if(!e)return;e.style.width=e.dataset.initialWidth||"",e.style.height=e.dataset.initialHeight||"",e.style.borderRadius="10em";const r=e.children[0];if(!r)return;r.style.width="0",r.style.height="0",r.style.opacity="0";const n=Date.now()-Number(e.dataset.transitionStart),i=n>this.transitionDuration?this.transitionDuration:n,o=setTimeout(()=>{e.classList.remove(me.milestoneHovered),e.dataset.timeoutId=""},i);e.dataset.timeoutId=String(o),this.timeouts.push(o),this.isMouseOver=!1},onMilestoneClick(t,e){this.$emit("milestone-click",e)},tzStringToDate(t){return Qe({timestamp:t,timezone:this.timezone})}}}),K7="";var O0=function(){var e=this,r=e._self._c;return r("div",{ref:"container",class:{[e.classNames.milestone]:!0,[e.classNames.milestoneBullet]:!e.dot,[e.classNames.milestoneHovered]:e.isMouseOver&&!e.dot,[e.classNames.milestoneDot]:e.dot,[e.classNames.milestoneDotHovered]:e.isMouseOver&&e.dot},style:e.styles,attrs:{tabindex:"0"},on:{mouseover:n=>e.onMilestoneMouseOver(n),mousemove:e.onMilestoneMouseMove,mouseleave:n=>e.onMilestoneMouseLeave(n),click:n=>e.onMilestoneClick(n,e.milestone)}},[r("div",{class:e.classNames.milestoneContent,style:e.contentStyles},[e._t("content",function(){var n;return[r("span",[e._v(" "+e._s((n=e.milestone)==null?void 0:n.text)+" ")])]})],2),e.dot?r("div",{class:e.classNames.milestoneDotContainer,style:e.dotContainerStyles},[r("div",{class:e.classNames.milestoneDotLine,style:e.lineStyles}),r("div",{class:e.classNames.milestoneDotDot,style:e.dotStyles})]):r("div",{class:e.classNames.milestoneLabel,style:e.labelStyles},[e._t("label")],2)])},z0=[],B0=H(P0,O0,z0,!1,null,null,null,null);const I0=B0.exports,F0=F.extend({name:"ETimelineMarker",props:{marker:{type:Object,required:!0},height:{type:Number,required:!0},hidden:{type:[Boolean,void 0],default:void 0},position:{type:[Number,void 0],default:void 0}},methods:{getMarkerClass(t){return{"marker--hidden":this.hidden,"marker--draggable":t==null?void 0:t.isDraggable,...t.className?{[t==null?void 0:t.className]:!0}:{}}},getMarkerContainerStyle(){return{left:`${this.position}px`}},getMarkerLabelStyle(t){return{background:t.color,color:t.textColor||""}},getMarkerLineStyle(t){return{background:t.color,height:`${this.height+12}px`}}}}),J7="";var A0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"marker e-absolute e-h-full e-top-0 e-z-10",class:e.getMarkerClass(e.marker),style:e.getMarkerContainerStyle(),on:{click:function(n){return e.$emit("marker-clicked",e.marker)}}},[r("div",{staticClass:"marker-label e-absolute"},[r("div",{staticClass:"marker-label-text",style:e.getMarkerLabelStyle(e.marker)},[e._t(`marker.${e.marker.id}`,function(){return[e._v(" "+e._s(e.marker.label)+" ")]},{marker:e.marker})],2)]),r("div",{staticClass:"marker-line e-absolute e-pointer-events-none",style:e.getMarkerLineStyle(e.marker)})])},R0=[],H0=H(F0,A0,R0,!1,null,"614947ed",null,null);const N0=H0.exports,j0=F.extend({name:"ETimelineMarkers",components:{ETimelineMarker:N0},props:{markers:{type:Array,default:()=>[]},timeScale:{type:Function,required:!0},timeZone:{type:[String,void 0],default:void 0},height:{type:Number,required:!0},svgLeft:{type:Number,default:void 0},stickyMarkers:{type:Boolean,default:!1}},data(){return{markersPositions:{},markersDragBehavior:null,initialMarkerDragMouseOffset:0}},watch:{timeScale:{handler(){this.updateMarkers()},deep:!0},markers(){this.updateMarkers()}},methods:{initMarkersDragBehavior(){this.removeMarkersDragBehavior();const t=this;this.markersDragBehavior=O.drag().on("start",function(e,r){t.handleMarkerDrag({marker:r,markerElement:O.select(this),dragEvent:e})}).on("drag",function(e,r){t.handleMarkerDrag({marker:r,markerElement:O.select(this),dragEvent:e})}).on("end",function(e,r){t.handleMarkerDrag({marker:r,markerElement:O.select(this),dragEvent:e})}),O.selectAll(`.${me.marker}`).data(this.markers).call(this.markersDragBehavior)},removeMarkersDragBehavior(){this.markersDragBehavior&&(this.markersDragBehavior.on("start",null).on("drag",null).on("end",null),O.selectAll(`.${me.marker}`).call(this.markersDragBehavior))},handleMarkerDrag({marker:t,markerElement:e,dragEvent:r}){var c;if(!t.isDraggable)return;(c=r.sourceEvent)==null||c.preventDefault(),r.type==="start"&&(this.initialMarkerDragMouseOffset=r.x-e.node().querySelector(`.${me.markerLine}`).getBoundingClientRect().left,e.classed(me.markerDragged,!0));const n=r.x-this.initialMarkerDragMouseOffset,i=this.timeScale.invert(n-this.svgLeft);let o=this.timeScale(i);const s=this.isTimestampAllowedForMarker(i,t);if(r.type==="drag"&&s&&e.attr("style",`left: ${o}px`),r.type==="end"){const a=t.id||t.timestamp;o=s?o:this.timeScale(this.tzStringToDate(t.timestamp)),this.markersPositions={...this.markersPositions,[a]:{...this.markersPositions[a],position:o}},e.classed(me.markerDragged,!1)}r.type!=="start"&&this.$emit(`marker-drag-${r.type}`,{marker:t,newTimestamp:s?this.dateToTzString(i):t.timestamp})},updateMarkers(){if(!this.markers.length)return;const t=12,e=200;this.markers.forEach((r,n,i)=>{const o=typeof r.timestamp=="string"?this.tzStringToDate(r.timestamp):r.timestamp,s=this.timeScale(o);let c=!1;const a=this.stickyMarkers?Math.max(s,n*t):s;if(n<i.length-1){const l=i[n+1],d=typeof l.timestamp=="string"?this.tzStringToDate(l.timestamp):l.timestamp,f=this.timeScale(d);c=(this.stickyMarkers?Math.max(f,(n+1)*t):s)-a<e+t}this.markersPositions={...this.markersPositions,[r.id]:{isHidden:c,position:a}}}),this.initMarkersDragBehavior()},isTimestampAllowedForMarker(t,e){return(e.minDate?t>=this.tzStringToDate(e.minDate):!0)&&(e.maxDate?t<=this.tzStringToDate(e.maxDate):!0)},tzStringToDate(t){return Qe({timestamp:t,timezone:this.timeZone})},dateToTzString(t){return Ft({date:t,timezone:this.timeZone})}}});var G0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-tl-markers"},e._l(e.markers,function(n){var i,o;return r("ETimelineMarker",{key:n.id,attrs:{marker:n,height:e.height,position:(i=e.markersPositions[n.id])==null?void 0:i.position,hidden:(o=e.markersPositions[n.id])==null?void 0:o.isHidden,"data-id":n.id},on:{"marker-clicked":function(s){return e.$emit("marker-clicked",s)}},scopedSlots:e._u([{key:`marker.${n.id}`,fn:function(){return[e._t(`marker.${n.id}`,function(){return[e._v(" "+e._s(n.label)+" ")]},{marker:n})]},proxy:!0}],null,!0)})}),1)},q0=[],W0=H(j0,G0,q0,!1,null,null,null,null);const U0=W0.exports,Z0=F.extend({name:"EZoomBehavior",props:{width:{type:[Number,void 0],default:void 0},domain:{type:Array,required:!0},focusedDomain:{type:[Array,void 0],default:void 0},timezone:{type:String,default:"UTC"},disabled:{type:Boolean,default:!1},scalingDuration:{type:Number,default:400},translationDuration:{type:Number,default:400},focusedTimestamp:{type:[String,Date,Number],default:""}},data(){return{timeScale:null,initialTimeScale:null,zoomBehavior:null,selection:null,isTransitioning:!1,container:null,transformDiff:{translation:0,scale:1},lastTransform:{x:0,y:0,k:1},isLeftBoundaryReached:!1,isRightBoundaryReached:!1,resetBoundariesTimeout:0}},computed:{minDate(){const[t]=this.domain;return this.toD3Date(t)},maxDate(){const[,t]=this.domain;return this.toD3Date(t)},focusedStartDate(){const[t]=this.focusedDomain||this.domain;return this.toD3Date(t)},focusedEndDate(){const[,t]=this.focusedDomain||this.domain;return this.toD3Date(t)}},watch:{timeScale(){this.emitFocusedDomainChange(_t.Zoom),this.emitTimeScaleChange()},focusedDomain(t){t&&this.zoomToFocusedDomain(t)},focusedTimestamp(t){t&&this.panToTimestamp(t)},width:{handler(t,e){!t||t===e||(this.timeScale=O.scaleTime().domain([this.focusedStartDate,this.focusedEndDate]).range([0,t]))}}},mounted(){this.initRefs(),this.initTimeScale(),this.initZoomBehavior(),this.emitTimeScaleChange(),this.emitFocusedDomainChange(_t.Initial)},methods:{initRefs(){this.container=this.$refs.container},initTimeScale(){this.timeScale=O.scaleTime().domain([this.focusedStartDate,this.focusedEndDate]).range([0,this.getWidth()]),this.initialTimeScale=this.timeScale.copy()},calculateZoomExtents(){const t=[this.focusedStartDate,this.focusedEndDate],e=this.getWidth(),r=this.maxDate.getTime()-this.minDate.getTime(),o=[(this.focusedEndDate.getTime()-this.focusedStartDate.getTime())/r,1/0],s=this.initialTimeScale.copy();s.domain(t);const c=s(this.minDate),a=-(e-s(this.maxDate));return{scaleExtent:o,translateExtent:[[c||-1/0,0],[a||1/0,0]]}},initZoomBehavior(){const{scaleExtent:t,translateExtent:e}=this.calculateZoomExtents();this.zoomBehavior=O.zoom().scaleExtent(t).translateExtent(e).on("zoom",this.handleZoom),this.selection=O.select(this.container),this.selection.call(this.zoomBehavior)},handleZoom(t){const e=t.transform.rescaleX(this.initialTimeScale.copy()),[r,n]=e.domain(),i=r<=this.minDate,o=n>=this.maxDate;if(i||o){const c=O.zoomIdentity.translate(this.lastTransform.x,this.lastTransform.y).scale(this.lastTransform.k);this.selection.call(this.zoomBehavior.transform,c),this.updateBoundaries(i,o);return}const s=t.transform.k/this.lastTransform.k;this.transformDiff={scale:s,translation:t.transform.x-this.lastTransform.x},this.lastTransform={...t.transform},this.timeScale=t.transform.rescaleX(this.timeScale).domain([r,n])},toD3Date(t){return Qe({timestamp:t,timezone:this.timezone})},toDateString(t){return Ft({date:t,timezone:this.timezone})},getWidth(){var t,e;return this.width?this.width:(e=(t=this.container)==null?void 0:t.getBoundingClientRect())==null?void 0:e.width},zoomToFocusedDomain(t){const[e,r]=t,n=this.toD3Date(e!=null?e:this.focusedStartDate),i=this.toD3Date(r!=null?r:this.focusedEndDate);if(!this.timeScale)return;const[o,s]=this.timeScale.domain();if(n.getTime()===o.getTime()&&i.getTime()===s.getTime())return;const c=this.initialTimeScale.domain().map(h=>h.getTime()),a=c[1]-c[0],l=i.getTime()-n.getTime(),d=.1*l,f=l+2*d;let m=a/f;const b=this.zoomBehavior.scaleExtent();m=Math.min(Math.max(m,b[0]),b[1]);const x=this.initialTimeScale.copy().domain([n,i]);this.selection.transition().duration(this.scalingDuration/2).call(this.zoomBehavior.scaleTo,m).on("end",()=>this.translateIntervalIntoView(n,i,m)),this.timeScale=x},translateIntervalIntoView(t,e,r){const n=this.timeScale(t),i=this.timeScale(e),o=(n+i)/2,c=this.getWidth()/2-o,a=O.zoomTransform(this.selection.node());this.selection.transition().on("start",()=>{this.isTransitioning=!0,this.$emit("animation-start")}).on("end",()=>{this.isTransitioning=!1,this.$emit("animation-end")}).duration(this.translationDuration/2).call(this.zoomBehavior.transform,O.zoomIdentity.translate(a.x+c,a.y).scale(r))},emitTimeScaleChange(){this.$emit("time-scale-change",this.timeScale)},emitFocusedDomainChange(t){if(!this.selection.node()||this.isTransitioning||!this.timeScale)return;const[r,n]=this.timeScale.domain(),i=this.toDateString(r),o=this.toDateString(n);this.$emit("visible-interval-change",{fromDate:i,toDate:o,trigger:t,transform:this.transformDiff})},panToTimestamp(t){const e=new Date(t),r=this.timeScale(e),n=O.zoomTransform(this.selection.node()),i=n.x-r+this.getWidth()/2;this.selection.transition().duration(this.translationDuration).call(this.zoomBehavior.transform,O.zoomIdentity.translate(i,0).scale(n.k)).on("end",()=>{this.emitFocusedDomainChange(_t.Zoom)})},updateBoundaries(t,e){this.isLeftBoundaryReached=t,this.isRightBoundaryReached=e,clearTimeout(this.resetBoundariesTimeout),this.resetBoundariesTimeout=setTimeout(this.resetBoundaries,300)},resetBoundaries(){this.isLeftBoundaryReached=!1,this.isRightBoundaryReached=!1}}}),ed="";var Y0=function(){var e=this,r=e._self._c;return r("div",{ref:"container",staticClass:"e-zoom-behavior"},[r("transition",{attrs:{name:"boundary-fade"}},[e.isLeftBoundaryReached?r("div",{staticClass:"e-zoom-behavior__boundary e-zoom-behavior__boundary__left e-bg-gradient-to-r e-from-red-700 e-to-transparent"}):e._e()]),e._t("default",null,{timeScale:e.timeScale}),r("transition",{attrs:{name:"boundary-fade"}},[e.isRightBoundaryReached?r("div",{staticClass:"e-zoom-behavior__boundary e-zoom-behavior__boundary__right e-bg-gradient-to-l e-from-red-700 e-to-transparent"}):e._e()])],2)},X0=[],V0=H(Z0,Y0,X0,!1,null,null,null,null);const Q0=V0.exports,K0=F.extend({name:"EXAxis",props:{ticksConfigs:{type:Array,required:!0},timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:me}},computed:{classes(){return{[me.xAxis]:!0,[me.xAxisDark]:this.dark}},axis(){return O.axisBottom(this.timeScale).ticks(this.currentTicksConfig.interval).tickFormat(this.currentTicksConfig.formatFn).tickSizeOuter(0).tickSizeInner(this.height)},density(){const t=this.timeScale.invert(0).getTime(),e=this.timeScale.invert(1).getTime(),r=36e5,n=(e-t)/r;return isNaN(n)?1:n},currentTicksConfig(){const{interval:t,format:e}=this.ticksConfigs.find(n=>n.precision>=this.density&&n.interval);return{formatFn:n=>typeof e=="function"?e(n):O.timeFormat(e)(n),interval:t}}},watch:{timeScale:{handler(){this.update()},deep:!0},currentTicksConfig:{handler(){this.update()},deep:!0},height(){this.updateTicksSize()}},mounted(){this.update()},methods:{update(){const t=this.$refs.container;O.select(t).call(this.axis),this.translateTicksText()},translateTicksText(){const t=this.$refs.container;O.select(t).selectAll(".tick text").each(function(){O.select(this).attr("x",5).attr("y",0).style("text-anchor","start")})},updateTicksSize(){this.axis.tickSizeOuter(0).tickSizeInner(this.height),this.update()}}}),td="";var J0=function(){var e=this,r=e._self._c;return r("g",{ref:"container",class:e.classes,attrs:{"text-anchor":"middle",transform:`translate(${e.x}, ${e.y})`}})},el=[],tl=H(K0,J0,el,!1,null,null,null,null);const rn=tl.exports,At=t=>{const e=O.utcFormat("%_d")(t),r=rl(parseInt(e));return`${e}${r}`},Gi=t=>new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()+1)).getUTCDate()===1?"":O.utcFormat("%-d")(t),bt=t=>["0"," 0","00"].includes(O.utcFormat("%H")(t))?"":`${O.utcFormat("%H")(t)}h`,st=t=>{const e=O.utcFormat("%H:%M")(t);return e==="00:00"?"":e},nn=t=>O.utcFormat("%M:%S")(t),qi=t=>`${O.utcFormat("%Hh%Mm")(t)}`,sn=t=>{const e=st(t),r=At(t),n=O.utcFormat("%B")(t);return e||`${n} ${r}`},an=t=>{const e=st(t),r=Number.parseInt(O.utcFormat("%H")(t)),n=At(t),i=O.utcFormat("%B")(t);return e&&r%6===0?`${i} ${n} ${e}`:sn(t)},rl=t=>{if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},xt=t=>e=>{const r=O.utcFormat("%H")(e);return!(O.utcFormat("%M")(e)==="00"&&Number.parseInt(r)%t===0)},on=t=>e=>{const r=O.utcFormat("%M")(e);return Number.parseInt(r)%t!==0},Wi=t=>e=>{const r=O.utcFormat("%M")(e),n=O.utcFormat("%S")(e);return Number.parseInt(r)%t!==0&&Number.parseInt(n)===0},J={_10_seconds:25e-6,_20_seconds:1e-4,_30_seconds:15e-5,_1_minute:3e-4,_2_minutes:75e-5,_5_minutes:.002,_15_minutes:.005,_30_minutes:.01,_1_hour:.025,_2_hours:.05,_3_hours:.1,_4_hours:.15,_6_hours:.25,_1_day:1,_2_days:2,_1_month:8,_1_month_abbr:13,_1_month_letter:22,_3_months:33,_2_year:48,_5_years:120,_20_years:480,_75_years:1800,_300_years:7200,infinity:1/0},ln={[rt.Overview]:[{precision:J._30_seconds,interval:O.utcMinute.every(2),format:qi},{precision:J._1_minute,interval:O.utcMinute.every(5),format:qi},{precision:J._2_minutes,interval:O.utcMinute.every(10),format:sn},{precision:J._5_minutes,interval:O.utcMinute.every(20),format:an},{precision:J._15_minutes,interval:O.utcHour,format:an},{precision:J._30_minutes,interval:O.utcHour.every(2),format:an},{precision:J._2_hours,interval:O.utcHour.every(6),format:t=>{const e=st(t),r=At(t),n=O.utcFormat("%B")(t);return e||`${n} ${r}`}},{precision:J._3_hours,interval:O.utcHour.every(12),format:sn},{precision:J._6_hours,interval:O.utcHour.every(24),format:t=>{const e=At(t),r=O.utcFormat("%b")(t),n=O.utcFormat("%Y")(t);return`${r} ${e} ${n}`}},{precision:J._2_days,interval:O.utcMonth,format:"%Y – %B"},{precision:J._2_year,interval:O.utcMonth.every(3),format:"%Y Q%q"},{precision:J._5_years,interval:O.utcYear.every(5),format:"%Y"},{precision:J._20_years,interval:O.utcYear.every(20),format:"%Y"},{precision:J._75_years,interval:O.utcYear.every(75),format:"%Y"},{precision:J._300_years,interval:O.utcYear.every(300),format:"%Y"},{precision:J.infinity,interval:O.utcMonth.every(12),format:"%Y"}],[rt.Detailed]:[{precision:J._10_seconds,interval:O.utcSecond.every(10),format:nn},{precision:J._20_seconds,interval:(ys=O.utcSecond.every(20))==null?void 0:ys.filter(Wi(2)),format:nn},{precision:J._30_seconds,interval:(Cs=O.utcSecond.every(30))==null?void 0:Cs.filter(Wi(2)),format:nn},{precision:J._1_minute,interval:O.utcMinute.filter(on(5)),format:st},{precision:J._2_minutes,interval:(bs=O.utcMinute.every(2))==null?void 0:bs.filter(on(10)),format:st},{precision:J._5_minutes,interval:(xs=O.utcMinute.every(5))==null?void 0:xs.filter(on(20)),format:st},{precision:J._15_minutes,interval:(ws=O.utcMinute.every(15))==null?void 0:ws.filter(xt(1)),format:st},{precision:J._30_minutes,interval:(Ss=O.utcMinute.every(30))==null?void 0:Ss.filter(xt(2)),format:st},{precision:J._1_hour,interval:O.utcHour.filter(xt(6)),format:bt},{precision:J._2_hours,interval:(Ts=O.utcHour.every(2))==null?void 0:Ts.filter(xt(6)),format:bt},{precision:J._3_hours,interval:(ks=O.utcHour.every(3))==null?void 0:ks.filter(xt(12)),format:bt},{precision:J._4_hours,interval:O.utcHour.every(4),format:bt},{precision:J._6_hours,interval:O.utcHour.every(6),format:bt},{precision:J._1_day,interval:O.utcDay,format:Gi},{precision:J._2_days,interval:O.utcDay.every(2),format:Gi},{precision:J._1_month,interval:O.utcMonth,format:"%B"},{precision:J._1_month_abbr,interval:O.utcMonth,format:"%b"},{precision:J._1_month_letter,interval:O.utcMonth,format:t=>O.utcFormat("%B")(t).charAt(0)},{precision:J._3_months,interval:O.utcMonth.every(3),format:"Q%q"},{precision:J._2_year,interval:O.utcMonth.every(6),format:"Q%q"},{precision:J._5_years,interval:O.utcYear.every(2),format:"%Y"},{precision:J._20_years,interval:O.utcYear.every(4),format:"%Y"},{precision:J._75_years,interval:O.utcYear.every(25),format:"%Y"},{precision:J._300_years,interval:O.utcYear.every(100),format:"%Y"},{precision:J.infinity,interval:O.utcYear.every(500),format:""}],[rt.DetailedBackground]:[{precision:J._10_seconds,interval:O.utcSecond,format:""},{precision:J._20_seconds,interval:O.utcSecond.every(5),format:""},{precision:J._30_seconds,interval:O.utcSecond.every(10),format:""},{precision:J._1_minute,interval:O.utcSecond.every(20),format:""},{precision:J._2_minutes,interval:O.utcSecond.every(30),format:""},{precision:J._5_minutes,interval:O.utcMinute,format:""},{precision:J._15_minutes,interval:O.utcMinute.every(3),format:""},{precision:J._30_minutes,interval:O.utcMinute.every(6),format:""},{precision:J._1_hour,interval:O.utcMinute.every(15),format:""},{precision:J._2_hours,interval:O.utcMinute.every(30),format:""},{precision:J._3_hours,interval:O.utcHour,format:""},{precision:J._4_hours,interval:O.utcHour,format:""},{precision:J._6_hours,interval:O.utcMinute.every(120),format:""},{precision:J._1_day,interval:O.utcHour.every(8),format:""},{precision:J._2_days,interval:O.utcHour.every(12),format:""},{precision:J._1_month,interval:O.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),n=Math.ceil(r/5);return e===n||e===2*n||e===3*n||e===4*n}),format:""},{precision:J._1_month_abbr,interval:O.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),n=Math.ceil(r/4);return e===n||e===2*n||e===3*n}),format:""},{precision:J._1_month_letter,interval:O.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),n=Math.ceil(r/2);return e===n}),format:""},{precision:J._3_months,interval:O.utcMonth,format:""},{precision:J._3_months,interval:O.utcMonth,format:""},{precision:J._2_year,interval:O.utcYear,format:""},{precision:J._5_years,interval:O.utcYear.every(2),format:""},{precision:J._20_years,interval:O.utcYear.every(5),format:""},{precision:J._75_years,interval:O.utcYear.every(20),format:""},{precision:J._300_years,interval:O.utcYear.every(100),format:""},{precision:J.infinity,interval:O.utcYear.every(500),format:""}]},nl=F.extend({name:"EXAxisOverview",components:{EXAxis:rn},props:{timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:me,ticksConfigs:ln[rt.Overview]}}}),rd="";var il=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EXAxis",{class:e.classNames.xAxisOverview,attrs:{x:e.x,y:e.y,dark:e.dark,height:e.height,"time-scale":e.timeScale,"ticks-configs":e.ticksConfigs}})},sl=[],al=H(nl,il,sl,!1,null,null,null,null);const ol=al.exports,ll=F.extend({name:"EXAxisDetailed",components:{EXAxis:rn},props:{timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:me,ticksConfigs:ln[rt.Detailed]}}}),nd="";var cl=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EXAxis",{class:e.classNames.xAxisDetailed,attrs:{x:e.x,y:e.y,dark:e.dark,height:e.height,"time-scale":e.timeScale,"ticks-configs":e.ticksConfigs}})},ul=[],dl=H(ll,cl,ul,!1,null,null,null,null);const hl=dl.exports,fl=F.extend({name:"EXAxisBackground",components:{EXAxis:rn},props:{timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:me,ticksConfigs:ln[rt.DetailedBackground]}}}),id="";var pl=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EXAxis",{class:e.classNames.xAxisBackground,attrs:{x:e.x,y:e.y,dark:e.dark,height:e.height,"time-scale":e.timeScale,"ticks-configs":e.ticksConfigs}})},ml=[],gl=H(fl,pl,ml,!1,null,null,null,null);const vl=gl.exports,_l=F.extend({name:"ETimelineSVGDefs",props:{eventsGroups:{type:Object,default:()=>({})},forbiddenIntervalColor:{type:String,default:"#ddd"},width:{type:Number,required:!0},height:{type:Number,required:!0}},data(){return{defs:Je,TimelineChartType:He,transparencyGradients:[{id:"transparency-gradient-light",stop:100,opacity:.4},{id:"transparency-gradient",stop:130,opacity:.4},{id:"transparency-gradient-hover",stop:130,opacity:.6}]}}});var yl=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("defs",{ref:"mainContainer",staticClass:"e-timeline"},[e._l(e.eventsGroups,function(n,i){return[r("linearGradient",{key:`${e.defs.loadingGradient}-${i}`,attrs:{id:`${e.defs.loadingGradient}-${i}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"}},[r("stop",{attrs:{offset:"0%","stop-color":n.color,"stop-opacity":"0"}}),r("stop",{attrs:{offset:"50%","stop-color":n.color,"stop-opacity":"0.6"}}),r("stop",{attrs:{offset:"100%","stop-color":n.color,"stop-opacity":"0"}})],1),n.chartType===e.TimelineChartType.LineGraph?[e._l(e.transparencyGradients,function({id:o,stop:s,opacity:c}){return r("linearGradient",{key:`${o}-${i}-${n.chartType}`,attrs:{id:`${o}-${i}-${n.chartType}`,x1:"0%",x2:"0%",y1:"0%",y2:"100%"}},[r("stop",{attrs:{offset:"0%","stop-color":n.color,"stop-opacity":c}}),r("stop",{attrs:{offset:`${s}%`,"stop-color":n.color,"stop-opacity":"0"}})],1)}),r("clipPath",{key:`${e.defs.clipPath}-${i}`,attrs:{id:`${e.defs.clipPath}-${i}`}},[r("rect",{attrs:{width:e.width,height:e.height}})])]:e._e(),n.chartType===e.TimelineChartType.BarChart?[e._l(e.transparencyGradients,function({id:o,opacity:s}){return r("linearGradient",{key:`${o}-${i}-${n.chartType}`,attrs:{id:`${o}-${i}-${n.chartType}`,width:"100%",height:"100%"}},[r("stop",{attrs:{"stop-color":n.color,"stop-opacity":s}})],1)}),r("clipPath",{key:`${e.defs.clipPath}-${i}`,attrs:{id:`${e.defs.clipPath}-${i}`}},[r("rect",{attrs:{width:e.width,height:e.height}})])]:e._e()]}),r("pattern",{attrs:{id:e.defs.stripedPattern,width:"5",height:"3",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)"}},[r("rect",{attrs:{width:"1",height:"4",fill:e.forbiddenIntervalColor}})])],2)},Cl=[],bl=H(_l,yl,Cl,!1,null,null,null,null);const xl=bl.exports,wl=F.extend({name:"ETimelineForbiddenInterval",props:{timeScale:{type:Function,required:!0},interval:{type:Object,required:!0},index:{type:Number,required:!0},height:{type:Number,required:!0},timezone:{type:String,default:"UTC"}},data(){return{classNames:me,defs:Je}},computed:{visibleDomain(){return this.timeScale.domain()},startX(){const t=this.interval.startDate===-1/0?this.visibleDomain[0]:this.tzStringToDate(this.interval.startDate);return this.timeScale(t)},endX(){const t=this.interval.endDate===1/0?this.visibleDomain[1]:this.tzStringToDate(this.interval.endDate);return this.timeScale(t)},width(){return Math.max(this.endX-this.startX,0)}},methods:{tzStringToDate(t){return Qe({timestamp:t,timezone:this.timezone})}}});var Sl=function(){var e=this,r=e._self._c;return r("rect",{class:`${e.classNames.forbiddenInterval} ${e.classNames.forbiddenInterval}-${e.index}`,attrs:{x:e.startX,y:"0",width:e.width,height:e.height,fill:`url(#${e.defs.stripedPattern})`}})},Tl=[],kl=H(wl,Sl,Tl,!1,null,null,null,null);const $l=kl.exports,El=F.extend({name:"ECursor",props:{timeScale:{type:Function,required:!0},timestamp:{type:String,required:!0},timezone:{type:String,required:!0},height:{type:Number,required:!0},color:{type:String,default:"red"},width:{type:Number,default:1},opacity:{type:Number,default:1}},data(){return{classNames:me}},watch:{timestamp(){this.repositionCursor()},timeScale(){this.repositionCursor()},height(){this.repositionCursor()}},methods:{repositionCursor(){const t=this.$refs.cursor,e=O.select(t);if(!e)return;if(!this.timestamp){e.style("opacity",0);return}const r=this.tzStringToDate(this.timestamp),n=this.timeScale(r);isNaN(n)?e.style("opacity",0):e.attr("x1",n).attr("x2",n).style("opacity",this.opacity),e.attr("y2",this.height)},tzStringToDate(t){return Qe({timestamp:t,timezone:this.timezone})}}});var Ml=function(){var e=this,r=e._self._c;return r("line",{ref:"cursor",class:e.classNames.selectedTimestampCursor,attrs:{x1:"0",y1:"0",x2:"0",opacity:"0",stroke:e.color,"stroke-width":`${e.width}px`}})},Ll=[],Dl=H(El,Ml,Ll,!1,null,null,null,null);const Ui=Dl.exports,Pl=F.extend({name:"ETimelineCursor",components:{ECursor:Ui},props:{timeScale:{type:Function,required:!0},selectedTimestamp:{type:String,required:!0},timezone:{type:String,default:"UTC"},height:{type:Number,required:!0}}});var Ol=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("ECursor",{attrs:{"time-scale":e.timeScale,timestamp:e.selectedTimestamp,timezone:e.timezone,color:"green",height:e.height}})},zl=[],Bl=H(Pl,Ol,zl,!1,null,null,null,null);const Il=Bl.exports,Fl=F.extend({name:"ETimelineSelectedTimestampCursor",components:{ECursor:Ui},props:{timeScale:{type:Function,required:!0},selectedTimestamp:{type:String,required:!0},timezone:{type:String,default:"UTC"},height:{type:Number,required:!0}}});var Al=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("ECursor",{attrs:{"time-scale":e.timeScale,timestamp:e.selectedTimestamp,timezone:e.timezone,height:e.height,width:2}})},Rl=[],Hl=H(Fl,Al,Rl,!1,null,null,null,null);const Nl=Hl.exports,jl=F.extend({name:"ECursorBehavior",props:{timeScale:{type:Function,required:!0},timezone:{type:String,default:"UTC"},minHoverZone:{type:Number,default:0},isHoveringMilestone:{type:Boolean,default:!1}},data(){return{cursor:null,hoveredTimestamp:null,isHoveringTimeline:!1}},mounted(){this.registerEventsListeners()},methods:{registerEventsListeners(){const t=this.$refs.cursor;this.cursor=O.select(t),this.cursor.on("mousemove",this.handleMouseMove),this.cursor.on("click",this.handleClick),this.cursor.on("mouseleave",this.handleMouseLeave)},handleMouseLeave(){this.isHoveringTimeline=!1,this.hoveredTimestamp=void 0,this.$emit("mouse-leave")},handleMouseMove(t){if(this.isHoveringMilestone)return;const e=t.offsetX;if(e<=this.minHoverZone){this.isHoveringTimeline=!1;return}const r=this.timeScale.invert(e);this.hoveredTimestamp=this.dateToTzString(r),this.isHoveringTimeline=!0,this.$emit("mouse-move",e,this.hoveredTimestamp)},handleClick(t){if(this.isHoveringMilestone)return;const e=t.offsetX;if(e<=this.minHoverZone)return;const r=this.timeScale.invert(e),n=this.dateToTzString(r);this.$emit("timestamp-clicked",n,t.target)},tzStringToDate(t){return Qe({timestamp:t,timezone:this.timezone})},dateToTzString(t){return Ft({date:t,timezone:this.timezone})}}});var Gl=function(){var e=this,r=e._self._c;return r("div",{ref:"cursor",staticClass:"e-timeline__cursor e-relative"},[e._t("default",null,{hoveredTimestamp:e.hoveredTimestamp,isHoveringTimeline:e.isHoveringTimeline})],2)},ql=[],Wl=H(jl,Gl,ql,!1,null,null,null,null);const Ul=Wl.exports,Zl=F.extend({name:"ETimelineGroupContainer",props:{groupId:{type:String,required:!0},label:{type:String,default:""},color:{type:String,default:""},backgroundColor:{type:String,default:""},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},showLabel:{type:Boolean,default:!0},labelWidth:{type:[Number,void 0],default:void 0},labelRadius:{type:[Number,void 0],default:3},xPadding:{type:Number,default:5},loading:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},showBackground:{type:Boolean,default:!0}},data(){return{classNames:me,characterWidth:6.5,isHighlighted:!1}},computed:{computedClasses(){return{label:{[`${me.labelGroup} ${me.labelGroup}-${this.groupId}`]:!0},container:{[`${me.eventGroup} ${me.eventGroup}-${this.groupId}`]:!0,[`${me.eventGroup}--highlighted`]:this.isHighlighted}}},computedLabelWidth(){var e;return(this.labelWidth||((e=this.label)==null?void 0:e.length)*this.characterWidth)+this.xPadding*2},textY(){return this.y+this.height/2},contentX(){return this.showLabel?this.x+this.computedLabelWidth:this.x},labelBackgroundColor(){let t=O.color(this.color);return t.opacity=this.dark?.2:.5,t.toString()},textFillColor(){var t,e;return(this.dark?(t=O.color(this.color))==null?void 0:t.brighter(1.5):(e=O.color(this.color))==null?void 0:e.darker(2)).toString()},loadingIndicatorFill(){return`url(#${Je.loadingGradient}-${this.groupId})`}}}),sd="";var Yl=function(){var e=this,r=e._self._c;return r("g",{class:e.computedClasses.container},[!e.hidden&&e.showBackground?r("rect",{class:e.classNames.eventGroupBg,attrs:{x:e.x,y:e.y,width:e.width,height:e.height,fill:e.backgroundColor||e.color}}):e._e(),r("g",{class:e.classNames.eventGroupContent,attrs:{cursor:"pointer"}},[e._t("default",null,{y:e.y,x:e.contentX}),e.loading?r("rect",{class:e.classNames.loadingIndicator,attrs:{x:e.x,y:e.y,width:400,height:e.height,fill:e.loadingIndicatorFill}}):e._e()],2),e.showLabel?r("g",{class:e.computedClasses.label,on:{mouseover:function(n){e.isHighlighted=!0},mouseleave:function(n){e.isHighlighted=!1},click:function(n){return n.stopPropagation(),e.$emit("group-label-clicked",e.groupId)}}},[r("rect",{class:e.classNames.labelBg,attrs:{x:e.x,y:e.y,width:e.computedLabelWidth,height:e.height,rx:e.labelRadius,ry:e.labelRadius,fill:e.dark?"black":"white"}}),r("rect",{class:e.classNames.labelBgFill,attrs:{x:e.x,y:e.y,width:e.computedLabelWidth,height:e.height,rx:e.labelRadius,ry:e.labelRadius,fill:e.labelBackgroundColor,stroke:e.textFillColor}}),r("text",{staticClass:"label-text",attrs:{x:e.x+e.xPadding,y:e.textY,dy:"0.35rem",fill:e.textFillColor}},[e._v(" "+e._s(e.label)+" ")])]):e._e()])},Xl=[],Vl=H(Zl,Yl,Xl,!1,null,null,null,null);const cn=Vl.exports,Ql=F.extend({name:"ETimelineRectsChartGroupedDots",props:{event:{type:Object,required:!0},rectStroke:{type:String,required:!0},rectStrokeWidth:{type:Number,required:!0},rectRx:{type:Number,required:!0},rectRy:{type:Number,required:!0},groupId:{type:String,required:!0}},data(){return{classNames:me}},computed:{numberOfBackgroundDots(){return this.event.groupedEvents?Math.min(3,this.event.groupedEvents.length-1):0}},methods:{getBackgroundX(t){return this.event.x-this.event.width/2-(this.numberOfBackgroundDots-(t-1))*4.5},getBackgroundY(t){return this.event.y+(this.numberOfBackgroundDots-(t-1))/2},getBackgroundSize(t){return this.event.width-(this.numberOfBackgroundDots-(t-1))},getBackgroundOpacity(t){return 1-(this.numberOfBackgroundDots-(t-1))/5}}});var Kl=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("g",{class:e.classNames.eventRectContainer},[e._l(e.numberOfBackgroundDots,function(n){return r("rect",{key:`bg-${e.numberOfBackgroundDots-n}`,class:[e.classNames.eventRect,`${e.classNames.eventRect}--dot`,`bg-${n}`],attrs:{x:e.getBackgroundX(n),y:e.getBackgroundY(n),width:e.getBackgroundSize(n),height:e.getBackgroundSize(n),fill:e.event.color,stroke:e.rectStroke,opacity:e.getBackgroundOpacity(n),"stroke-width":e.rectStrokeWidth,ry:e.rectRx,rx:e.rectRy}})}),r("rect",{class:[e.classNames.eventRect,`${e.classNames.eventRect}--dot`],attrs:{x:e.event.x-e.event.width/2,y:e.event.y-e.event.width*.025,width:e.event.width*1.05,height:e.event.height*1.05,fill:e.event.color,stroke:e.rectStroke,cursor:"pointer","stroke-width":e.rectStrokeWidth,ry:e.rectRx,rx:e.rectRy}})],2)},Jl=[],e5=H(Ql,Kl,Jl,!1,null,null,null,null);const t5=e5.exports,r5=F.extend({name:"ETimelineRectsChart",directives:{},components:{ETimelineGroupContainer:cn,ETimelineRectsChartGroupedDots:t5},props:{timeScale:{type:Function,required:!0},eventsGroup:{type:Object,required:!0},groupId:{type:String,required:!0},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},rectMinWidth:{type:Number,default:1},rectYPadding:{type:Number,default:0},dark:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},labelWidth:{type:[Number,void 0],default:void 0},timezone:{type:[String,void 0],default:void 0},dots:{type:Boolean,default:!1},dotsSize:{type:Number,default:3},barBorderRadius:{type:Number,default:1.5},groupOverlappingDots:{type:Boolean,default:!1},groupingThreshold:{type:Number,default:0}},data(){return{classNames:me,characterWidth:7.5,textPadding:5}},computed:{rectStrokeWidth(){return this.dots&&this.dotsSize?this.dotsSize/10:5},rectRx(){return this.dots&&this.dotsSize?this.dotsSize:this.eventsGroup.barBorderRadius||0},rectRy(){return this.dots&&this.dotsSize?this.dotsSize:this.eventsGroup.barBorderRadius||0},computedHeight(){return this.eventsGroup.height||this.height},yPosition(){const t=this.dots?(this.computedHeight-this.dotsSize+this.rectYPadding)/2:this.rectYPadding/2;return this.y+t},rectStroke(){if(!this.dots)return"#0000";const t=O.color(this.eventsGroup.color);return(t==null?void 0:t.brighter(1).toString())||"#0000"},rectHeight(){return this.dots?this.dotsSize:Math.max(this.height,1)},preprocessedEvents(){return[...this.eventsGroup.events].sort((e,r)=>{const n=new Date(e.startDate||e.timestamp).getTime(),i=new Date(r.startDate||r.timestamp).getTime();return n-i}).map(this.convertEventTzStringToDate)},computedEvents(){return(this.dots&&this.groupOverlappingDots?this.groupedEvents:this.preprocessedEvents.map(e=>[e])).map(e=>{let r={textContent:this.getEventText(e[0],this.textPadding,this.characterWidth),textX:this.getEventRectX(e[0],this.timeScale)+this.textPadding,textY:this.yPosition+this.rectHeight/2,textColor:e[0].textColor||this.getFillColor(e[0].color||this.eventsGroup.color,.75,this.dark)};if(!this.dots)return{...e[0],x:this.getEventRectX(e[0],this.timeScale),y:this.yPosition,width:this.getEventRectWidth(e[0],this.timeScale,this.rectMinWidth),height:this.rectHeight,color:e[0].color||this.eventsGroup.color,groupedEvents:e,...r};const n=this.getEventRectX(e[0],this.timeScale),i=this.getEventRectX(e[e.length-1],this.timeScale),o=n+(i-n)/2,s=e.length>1,c=o;return s?r={...r,textContent:`${e.length}`,textX:o-this.dotsSize/2-`${e.length}`.length*2,textY:this.yPosition-this.dotsSize/2}:r={...r,textX:r.textX-this.textPadding},{...e[0],x:c,y:this.yPosition,width:this.dotsSize,height:this.rectHeight,color:e[0].color||this.eventsGroup.color,groupedEvents:e,...r}})},timeScaleDensity(){const t=this.timeScale.invert(0).getTime(),e=this.timeScale.invert(1).getTime(),r=36e5,n=(e-t)/r;return isNaN(n)?1:n},groupedEvents(){const t=this.preprocessedEvents,e=[];let r=[];return t.forEach((n,i)=>{if(i===0){r.push(n);return}const o=t[i-1],s=this.getEventRectX(n,this.timeScale),c=this.getEventRectX(o,this.timeScale),a=this.getEventRectWidth(o,this.timeScale,this.rectMinWidth);c+a+this.groupingThreshold>=s?r.push(n):(r.length>0&&e.push([...r]),r=[n])}),r.length>0&&e.push(r),e}},methods:{onMouseOver(t,e,r){t.target.classList.add(me.eventRectHovered);const i=this.convertEventDateToTzString(e);this.$emit("event-mouseover",t,i,r)},onMouseLeave(t){const e=t.target;e.classList.remove(me.eventRectHovered),Array.from(e.children).forEach(r=>{r.classList.remove(me.eventRectHovered)}),this.$emit("event-mouseout")},onGroupedEventsMouseOver(t,e,r){t.target.classList.add(me.eventRectHovered);const i=e.map(this.convertEventDateToTzString);this.$emit("grouped-events-mouseover",t,i,r)},getEventText(t,e,r){if(!t.text)return"";const n=`${t.text}`;if(n.length===1)return n;const o=(this.getEventRectWidth(t,this.timeScale,this.rectMinWidth)-e)/r;return o<Math.min(n==null?void 0:n.length,4)?"":(n==null?void 0:n.length)<=o?n:`${n.slice(0,o-3)}...`},getEventRectWidth(t,e,r){if(!t)return 0;if(this.dots)return this.dotsSize;if(t.startDate&&t.endDate){const n=new Date(t.startDate),i=new Date(t.endDate),o=e(i)-e(n);return Math.max(o,r)}else{const n=1/(this.timeScaleDensity*3600);return Math.max(n,r)}},getEventRectX(t,e){const r=e(t.startDate||t.timestamp);return isNaN(r)?0:r},tzStringToDate(t){return Qe({timestamp:t,timezone:this.timezone})},dateToTzString(t){return Ft({date:t,timezone:this.timezone})},convertEventTzStringToDate(t){return this.patchTimestampField(t,this.tzStringToDate)},convertEventDateToTzString(t){return this.patchTimestampField(t,this.dateToTzString)},patchTimestampField(t,e){let r={...t};return r.timestamp&&(r.timestamp=e(r.timestamp)),r.startDate&&(r.startDate=e(r.startDate)),r.endDate&&(r.endDate=e(r.endDate)),r},getFillColor(t,e=0,r=!1){var n,i;return(r?(n=O.color(t))==null?void 0:n.brighter(1.5+e):(i=O.color(t))==null?void 0:i.darker(2+e)).toString()}}}),ad="";var n5=function(){var e=this,r=e._self._c;return r("ETimelineGroupContainer",{attrs:{"group-id":e.groupId,color:e.eventsGroup.color,label:e.eventsGroup.label,"background-color":e.eventsGroup.bgColor,loading:e.eventsGroup.isLoading,x:e.x,y:e.y,dark:e.dark,width:e.width,height:e.computedHeight+e.rectYPadding,"show-label":e.showLabel,"label-width":e.labelWidth,hidden:e.eventsGroup.isHidden},on:{"group-label-clicked":function(n){return e.$emit("group-label-clicked",e.groupId)}}},[e.dots?r("line",{class:e.classNames.milestoneLine,attrs:{x1:0,x2:e.width,y1:e.yPosition+e.dotsSize/2,y2:e.yPosition+e.dotsSize/2,stroke:e.eventsGroup.color,"stroke-width":1}}):e._e(),e._l(e.computedEvents,function(n,i){return r("g",{key:i,class:e.classNames.eventRectContainer},[!n.groupedEvents||!e.dots||n.groupedEvents.length===1?[r("rect",{class:[e.classNames.eventRect,e.dots?`${e.classNames.eventRect}--dot`:""],attrs:{x:n.x-(e.dots?n.width/2:0),y:n.y,"data-timestamp":n.timestamp,width:n.width,height:n.height,fill:n.color,stroke:e.rectStroke,cursor:"pointer","stroke-width":e.rectStrokeWidth,ry:e.rectRx,rx:e.rectRy},on:{mouseover:function(o){return e.onMouseOver(o,n,e.groupId)},mouseleave:e.onMouseLeave}})]:e.dots&&n.groupedEvents.length>1?r("ETimelineRectsChartGroupedDots",{key:i,attrs:{event:n,"rect-stroke":e.rectStroke,"rect-stroke-width":e.rectStrokeWidth,"rect-rx":e.rectRx,"rect-ry":e.rectRy,"group-id":e.groupId},nativeOn:{mouseover:function(o){return e.onGroupedEventsMouseOver(o,n.groupedEvents,e.groupId)},mouseleave:function(o){return e.onMouseLeave.apply(null,arguments)}}}):e._e(),n.textContent?r("text",{class:e.classNames.eventRectText,attrs:{fill:n.textColor,x:n.textX,y:n.textY,dy:"0.35em","text-anchor":e.dots?"middle":"start","font-size":"12","font-weight":600,"stroke-linejoin":"round","paint-order":"stroke","pointer-events":"none"}},[e._v(" "+e._s(n.textContent)+" ")]):e._e()],2)})],2)},i5=[],s5=H(r5,n5,i5,!1,null,null,null,null);const a5=s5.exports,o5=F.extend({name:"ETimelineLinesChart",directives:{},components:{ETimelineGroupContainer:cn},props:{timeScale:{type:Function,required:!0},eventsGroup:{type:Object,required:!0},groupId:{type:String,required:!0},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},dark:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},maxVisibleCount:{type:Number,required:!0},labelWidth:{type:[Number,void 0],default:void 0},labelHeight:{type:[Number,void 0],default:void 0},timezone:{type:[String,void 0],default:void 0},hoveredTimestamp:{type:String,default:""},yOffset:{type:Number,default:20}},data(){return{classNames:me,defs:Je,characterWidth:7.5}},computed:{lineGradient(){return`${Je.transparencyGradientLight}-${this.groupId}-${He.LineGraph}`},lineDots(){const[t,e]=this.timeScale.domain();return this.eventsGroup.events.filter((n,i)=>{var a,l;const o=i===0?1:i,s=new Date((a=this.eventsGroup.events[o+1])==null?void 0:a.timestamp),c=new Date((l=this.eventsGroup.events[o-1])==null?void 0:l.timestamp);return s>=t&&s<=e||c>=t&&c<=e})},hoverZones(){return this.lineDots.map(t=>{const e=this.timeScale(this.tzStringToDate(t.timestamp)),r=this.yScale(t.count),n=this.timeScale.invert(e-2),i=this.timeScale.invert(e+2);return{x:e,y:r,height:this.height-22,color:t.color||this.eventsGroup.color,timestamp:t.timestamp,count:t.count,isHovering:this.tzStringToDate(this.hoveredTimestamp)>=n&&this.tzStringToDate(this.hoveredTimestamp)<i}})},yScale(){let t=O.scaleLinear().range([this.height,0]);return t=t.domain([0,this.maxVisibleCount||1]),t}},watch:{hoverZones:{handler(){this.updateLine()},deep:!0,immediate:!0}},mounted(){this.updateLine()},methods:{updateLine(){const t=O.area().x(r=>r.x).y0(this.height).y1(r=>r.y).curve(O.curveMonotoneX),e=O.line().x(r=>r.x).y(r=>r.y).curve(O.curveMonotoneX);O.select(`.${me.areaGraphPath}-${this.groupId}`).datum(this.hoverZones).attr("d",r=>t(r)),O.select(`.${me.lineGraphPath}-${this.groupId}`).datum(this.hoverZones).attr("d",r=>e(r))},getEventRectX(t,e){const r=e(this.tzStringToDate(t.startDate||t.timestamp));return isNaN(r)?0:r},tzStringToDate(t){return Qe({timestamp:t,timezone:this.timezone})}}}),od="";var l5=function(){var e=this,r=e._self._c;return r("ETimelineGroupContainer",{attrs:{"group-id":e.groupId,color:e.eventsGroup.color,label:e.eventsGroup.label,"background-color":e.eventsGroup.bgColor,loading:e.eventsGroup.isLoading,x:e.x,y:e.y,dark:e.dark,width:e.width,height:e.labelHeight,"show-label":e.showLabel,"label-width":e.labelWidth,hidden:e.eventsGroup.isHidden,"show-background":!1},on:{"group-label-clicked":function(n){return e.$emit("group-label-clicked",e.groupId)}}},[r("g",{class:`${e.classNames.lineGraphGroup} ${e.classNames.lineGraphGroup}-${e.groupId}`,style:{transform:`translate(0, ${e.yOffset}px) `}},[r("path",{class:`${e.classNames.areaGraphPath}-${e.groupId}`,attrs:{fill:`url(#${e.lineGradient})`,stroke:"none","stroke-linecap":"round","stroke-linejoin":"round"}}),r("path",{class:`${e.classNames.lineGraphPath}-${e.groupId}`,attrs:{fill:"none",stroke:e.eventsGroup.color,"stroke-width":1.5}}),e._l(e.hoverZones,function(n,i){return r("g",{key:i},[r("circle",{ref:`${e.classNames.lineGraphDot}-${e.groupId}-${i}`,refInFor:!0,class:[e.classNames.lineGraphDot,`${e.classNames.lineGraphDot}-${e.groupId}`,`${e.classNames.lineGraphDot}-${e.groupId}-${i}`,{[`${e.classNames.lineGraphDot}--active`]:n.isHovering}],attrs:{cx:n.x,cy:n.y,r:"1.5",fill:n.color,"stroke-width":0}}),r("rect",{class:`${e.classNames.lineGraphHoverZone} ${e.classNames.lineGraphHoverZone}-${e.groupId}`,attrs:{x:n.x-2,y:0,width:4,height:e.height,fill:"transparent"},on:{mouseover:function(o){return e.$emit("event-mouseover",o,n,e.groupId)},mouseleave:function(o){return e.$emit("event-mouseout")}}})])})],2)])},c5=[],u5=H(o5,l5,c5,!1,null,null,null,null);const d5=u5.exports,h5=F.extend({name:"ETimelineBarsChart",components:{ETimelineGroupContainer:cn},props:{timeScale:{type:Function,required:!0},eventsGroup:{type:Object,required:!0},groupId:{type:String,required:!0},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},dark:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},labelWidth:{type:[Number,void 0],default:void 0},labelHeight:{type:[Number,void 0],default:void 0},timezone:{type:[String,void 0],default:void 0},hoveredTimestamp:{type:String,default:""},yOffset:{type:Number,default:20},rectMinWidth:{type:Number,default:1},currentTimeScaleDensity:{type:Number,default:null},maxVisibleCount:{type:Number,default:1},previousCountsByTimestamp:{type:Object,default:null}},data(){return{classNames:me,defs:Je,characterWidth:7.5}},computed:{bars(){const[t,e]=this.timeScale.domain();return this.eventsGroup.events.filter((n,i)=>{var a,l;const o=i===0?1:i,s=new Date((a=this.eventsGroup.events[o+1])==null?void 0:a.endDate),c=new Date((l=this.eventsGroup.events[o-1])==null?void 0:l.startDate);return s>=t&&s<=e||c>=t&&c<=e})},hoverZones(){return this.bars.map(t=>{const e=this.getEventRectWidth(t),r=this.yScale.range()[0]-this.yScale(t.count),n=this.getEventRectX(t,this.timeScale),i=this.previousCountsByTimestamp[t.startDate]||0,o=this.yScale(i+t.count);return{x:n,y:o,height:r,width:e,color:t.color||this.eventsGroup.color,startDate:t.startDate,endDate:t.endDate,count:t.count,className:t.className,isHovering:this.hoveredTimestamp>=t.startDate&&this.hoveredTimestamp<t.endDate}})},yScale(){let t=O.scaleLinear().range([this.height,0]);return t=t.domain([0,this.maxVisibleCount||1]),t}},methods:{getBarOpacity(t){let e;return this.hoveredTimestamp||(e=Je.transparencyGradient),e=t.isHovering?Je.transparencyGradientHover:Je.transparencyGradientLight,`${e}-${this.groupId}-${He.BarChart}`},getEventRectX(t,e){return isNaN(e(this.tzStringToDate(t.startDate||t.timestamp)))?0:e(this.tzStringToDate(t.startDate||t.timestamp))},tzStringToDate(t){return Qe({timestamp:t,timezone:this.timezone})},onEventClick(){this.$emit("event-clicked")},getEventRectWidth(t){if(!t)return 0;if(t.startDate&&t.endDate){const e=new Date(t.startDate),r=new Date(t.endDate),n=this.timeScale(r)-this.timeScale(e);return Math.max(n,this.rectMinWidth)}else{const e=1/(this.currentTimeScaleDensity*3600);return Math.max(e,this.rectMinWidth)}}}}),ld="";var f5=function(){var e=this,r=e._self._c;return r("ETimelineGroupContainer",{attrs:{"group-id":e.groupId,color:e.eventsGroup.color,label:e.eventsGroup.label,"background-color":e.eventsGroup.bgColor,loading:e.eventsGroup.isLoading,x:e.x,y:e.y,dark:e.dark,width:e.width,height:e.labelHeight,"show-label":e.showLabel,"label-width":e.labelWidth,hidden:e.eventsGroup.isHidden,"show-background":!1},on:{"group-label-clicked":function(n){return e.$emit("group-label-clicked",e.groupId)}}},[r("g",{class:`${e.classNames.barChartGroup} ${e.classNames.barChartGroup}-${e.groupId}`,style:{transform:`translate(0, ${e.yOffset}px) `}},e._l(e.hoverZones,function(n,i){return r("g",{key:i,class:`${e.classNames.eventBarContainer} ${e.classNames.eventBarContainer}-${e.groupId}`,on:{mouseleave:function(o){return e.$emit("event-mouseout")},mouseover:function(o){return e.$emit("event-mouseover",o,n,e.groupId)},click:function(o){return e.onEventClick()}}},[r("rect",{class:[n.className?n.className:"",e.classNames.eventBarHoverZone],attrs:{x:n.x,y:-e.yOffset,width:n.width,height:e.yScale.range()[0]+e.yOffset,fill:n.color,"fill-opacity":0}}),r("rect",{class:[n.className?n.className:"",e.classNames.eventBar],attrs:{x:n.x,y:n.y,width:n.width,height:n.height,"stroke-width":5,cursor:"pointer",stroke:"#0000",fill:`url(#${e.getBarOpacity(n)})`}})])}),0)])},p5=[],m5=H(h5,f5,p5,!1,null,null,null,null);const g5=m5.exports,v5=F.extend({name:"ETimeline",directives:{resizeObserver:Ve},components:{ETimelineSVGDefs:xl,EXAxisBackground:vl,EXAxisDetailed:hl,EXAxisOverview:ol,ETimelineMilestone:I0,ETimelineMarkers:U0,ETimelineCursor:Il,ETimelineSelectedTimestampCursor:Nl,EZoomBehavior:Q0,ECursorBehavior:Ul,ETimelineRectsChart:a5,ETimelineForbiddenInterval:$l,ETimelineLinesChart:d5,ETimelineBarsChart:g5},props:{eventsGroups:{type:Object,default:null},dark:{type:Boolean,default:!1},startDate:{type:String,default:void 0},endDate:{type:String,default:void 0},selectedTimestamp:{type:String,default:void 0},showEventTooltip:{type:Boolean,default:!0},insertZerosAtInterval:{type:String,default:void 0},flattenLineGraphEnds:{type:Boolean,default:!0},showLabels:{type:Boolean,default:!0},barHeight:{type:Number,default:18},barYPadding:{type:Number,default:0},chartMinHeight:{type:Number,default:60},chartMinLabelHeight:{type:Number,default:18},minDate:{type:String,default:void 0},maxDate:{type:String,default:void 0},panOnDateClick:{type:Boolean,default:!1},selectedDate:{type:String,default:""},markers:{type:Array,default:()=>[]},stickyMarkers:{type:Boolean,default:!0},fitMarkersOnChange:{type:Boolean,default:!1},milestoneBulletSize:{type:Number,default:18},milestonesFirst:{type:Boolean,default:!0},forbiddenIntervals:{type:Array,default:()=>[]},forbiddenIntervalColor:{type:String,default:"#ddd"},focusedInterval:{type:[Object,void 0],default:void 0},locked:{type:Boolean,default:!1},timezone:{type:[String,void 0],default:void 0},stopClickPropagation:{type:Boolean,default:!1},tooltipPosition:{type:String,default:"top",validator:t=>["top","bottom"].includes(t)},maxDomainPadding:{type:Number,default:0},showCursor:{type:Boolean,default:!0}},data(){return{mainContainer:null,tooltip:null,timeline:null,svgElement:null,svg:null,axisHeight:22,isHoveringEvent:!1,isHoveringGroupedEvents:!1,isAnimating:!1,hoveredEvent:null,eventTooltipStyle:{},hoveredEventType:null,hoveredCounts:[],visibleFrom:null,visibleTo:null,characterWidth:7.5,textPadding:5,timeouts:[],groupsVisibility:{},selectedMilestoneId:null,isInitialized:!1,hoveredMilestone:null,focusedDomain:null,transitionDuration:400,focusedTimestamp:null,hoveredGroupedEvents:null,TimelineChartType:He,width:0}},computed:{filteredEventsGroups(){const t=Object.entries(this.eventsGroups).filter(([e,r])=>this.getCurrentGroupVisibility(e));return Object.fromEntries(t)},allEventsSorted(){const t=Object.values(this.filteredEventsGroups).map(e=>e.events).flat();return this.getSortedEvents(t)},barGroups(){return this.getGroupByType(this.filteredEventsGroups,[He.Bars,He.Dots])},lineGraphGroups(){return this.getGroupByType(this.filteredEventsGroups,[He.LineGraph])},barChartGroups(){return this.getGroupByType(this.filteredEventsGroups,[He.BarChart])},milestonesGroups(){return this.getGroupByType(this.filteredEventsGroups,[He.Milestones])},combinedBarsHeight(){return Object.values(this.barGroups).reduce((t,e)=>t+(this.getBarGroupHeight(e)||this.barHeight+this.barYPadding),0)},combinedBottomBarsHeight(){return Object.values(this.barGroups).reduce((t,e)=>t+(e.bottom?this.getBarGroupHeight(e):0),0)},combinedMilestonesHeight(){return Object.values(this.milestonesGroups).reduce((t,e)=>t+(e.height||this.barHeight),0)},milestonesYOffset(){return this.milestonesFirst?0:this.combinedBarsHeight-this.combinedBottomBarsHeight+(this.hasChart?this.chartHeight:0)},chartsYOffset(){return this.combinedXAxesHeight+(this.hasMilestones&&this.milestonesFirst?this.combinedMilestonesHeight:0)},barsYOffset(){return(this.hasChart?this.chartHeight:0)+(this.hasMilestones&&this.milestonesFirst?this.combinedMilestonesHeight:0)},hasMilestones(){return Object.keys(this.milestonesGroups).length>0},computedClasses(){return{wrapper:{"e-border-gray-700 e-timeline--dark":this.dark,"e-border-gray-300":!this.dark},background:this.dark?"e-bg-gray-900":"e-bg-gray-50",tooltipSlot:this.dark?"e-bg-gray-900 e-text-white e-border-gray-700":"e-bg-gray-100 e-text-gray-700 e-border-gray-300",eventTooltipSlot:this.dark?"e-bg-gray-900 e-text-white e-border-gray-700":"e-bg-gray-100 e-text-gray-700 e-border-gray-300"}},chartHeight(){if(!this.showLabels)return this.chartMinHeight;const e=(Object.keys(this.lineGraphGroups).length+Object.keys(this.barChartGroups).length)*this.barHeight;return Math.max(this.chartMinHeight,e)},chartLabelHeight(){return Math.max(this.chartMinLabelHeight,this.barHeight)},hasChart(){return Object.keys(this.lineGraphGroups).length+Object.keys(this.barChartGroups).length>0},labelRectWidth(){return Object.values(this.eventsGroups).reduce((r,n)=>{var i;return Math.max(r,(i=n.label)==null?void 0:i.length)},0)*this.characterWidth+2*this.textPadding},combinedXAxesHeight(){return this.axisHeight*1.75},timelineHeight(){return(this.hasChart?this.chartHeight:0)+this.combinedXAxesHeight+this.combinedBarsHeight+this.combinedMilestonesHeight},oldestEvent(){let t;return this.allEventsSorted.length>1?t=this.allEventsSorted[0]:t={timestamp:new Date(new Date().getTime()-864e5)},t},latestEvent(){let t;return this.allEventsSorted.length>1?t=this.allEventsSorted[this.allEventsSorted.length-1]:t={timestamp:new Date},t},allLineChartTimestamps(){const t=new Set;return Object.values(this.lineGraphGroups).forEach(e=>{e.events.forEach(r=>{t.add(r.timestamp)})}),Array.from(t).sort()},placeholderLineChartGroup(){return this.fillTimeGaps(this.allLineChartTimestamps.map(t=>({timestamp:t,count:0})))},filledGapsLineGraphGroups(){return Object.entries(this.lineGraphGroups).reduce((t,[e,r])=>({...t,[e]:{...r,events:this.fillEvents(r.events)}}),{})},flattenedLinesCounts(){return Object.values(this.lineGraphGroups).map(t=>t.events).flat()},flattenedBarsCounts(){return Object.values(this.barChartGroups).map(t=>t.events).flat()},hiddenGroupsLabels(){return Object.entries(this.groupsVisibility).reduce((t,[e,r])=>r?t:[...t,e],[])},minHoverZone(){return this.showLabels?this.labelRectWidth:0},sortedMarkers(){return this.isInitialized?[...this.markers].sort((t,e)=>new Date(t.timestamp).getTime()>new Date(e.timestamp).getTime()?1:-1):[]},maxVisibleCount(){const t=o=>{const s=new Date(o.startDate||o.timestamp),c=new Date(o.endDate||o.timestamp),a=new Date(this.visibleFrom),l=new Date(this.visibleTo);return c>=a&&c<=l||s>=a&&s<=l},e=this.flattenedBarsCounts.filter(t),r=this.flattenedLinesCounts.filter(t).map(o=>o.count),n={};e.forEach(o=>{const s=o.startDate||o.timestamp;n[s]=(n[s]||0)+o.count});const i=Object.values(n).concat(r);return O.max(i)||1},defaultMaxDomain(){const t=new Date(this.oldestEvent.timestamp||this.oldestEvent.startDate).getTime(),e=new Date(this.latestEvent.timestamp||this.latestEvent.endDate).getTime(),n=(e-t)*.75,i=new Date(t-n),o=new Date(e+n);return[i.toISOString(),o.toISOString()]},defaultFocusedDomain(){const t=this.oldestEvent.timestamp||this.oldestEvent.startDate,e=this.latestEvent.timestamp||this.latestEvent.endDate;return[t,e]},domain(){let t=new Date(this.minDate||this.defaultMaxDomain[0]).getTime(),e=new Date(this.maxDate||this.defaultMaxDomain[1]).getTime(),r=0;return this.maxDomainPadding&&(r=(e-t)*this.maxDomainPadding),t=new Date(t-r).toISOString(),e=new Date(e+r).toISOString(),[this.tzStringToDate(t),this.tzStringToDate(e)]},svgLeft(){var t,e,r;return((r=(e=(t=this.svg)==null?void 0:t.node())==null?void 0:e.getBoundingClientRect())==null?void 0:r.left)||0},markersScopedSlots(){return Object.keys(this.$scopedSlots).filter(t=>t.startsWith("marker.")).reduce((t,e)=>(t[e]=this.$scopedSlots[e],t),{})},isHoveringMilestone(){return!!this.hoveredMilestone},milestonesGroupsPlaceholder(){return Object.entries(this.milestonesGroups).reduce((t,[e,r])=>({...t,[e]:{...r,events:[],isLoading:!1}}),{})},countsByTimestamp(){const t={...this.lineGraphGroups,...this.barChartGroups};return Object.entries(t).reduce((e,[r,n])=>(n.events.forEach(i=>{const o=i.timestamp||i.startDate;e[o]={...e[o]||{},[r]:i.count}}),e),{})}},watch:{markers(t,e){t===e||!this.fitMarkersOnChange||e.length===0||this.zoomToFitMarkers()},startDate(){this.zoomToStartAndEndDates()},endDate(){this.zoomToStartAndEndDates()},selectedDate(t){t&&!this.locked&&(this.focusedTimestamp=this.tzStringToDate(t).toISOString())},focusedInterval(t){t&&(t!=null&&t.startDate)&&(t!=null&&t.endDate)&&(this.focusedDomain=[t.startDate,t.endDate])}},mounted(){this.validateProps(),this.initTimeline()},beforeDestroy(){this.clearTimeline()},methods:{handleVisibleIntervalChange({fromDate:t,toDate:e,trigger:r,transform:n}){this.visibleFrom=t,this.visibleTo=e,this.$emit("visible-interval-change",{fromDate:t,toDate:e,trigger:r,transform:n})},getGroupByType(t,e){return Object.entries(t).reduce((r,[n,i])=>!i.chartType&&e.includes(He.Bars)||e.includes(i.chartType)?{...r,[n]:i}:r,{})},getPreviousCountsByTimestamp(t){if(t===0)return{};const e=Object.fromEntries(Object.entries(this.barChartGroups).slice(0,t)),r=[...Object.values(e)].map(i=>i.events).flat(),n={};return r.forEach(i=>{const o=i.startDate||i.timestamp;n[o]=(n[o]||0)+i.count}),n},getChartsYPosition(t){const e=Object.keys(this.lineGraphGroups).concat(Object.keys(this.barChartGroups));return this.timelineHeight-this.chartLabelHeight*(e.indexOf(t)+1)-(this.milestonesFirst?0:this.combinedMilestonesHeight)-this.combinedBarsHeight},validateProps(){this.minDate||console.log("<ETimeline />: didn't receive a 'min-date' prop. Setting default: ",this.defaultMaxDomain[0]),this.maxDate||console.log("<ETimeline />: didn't receive a 'max-date' prop. Setting default: ",this.defaultMaxDomain[1]),this.startDate||console.log("<ETimeline />: didn't receive a 'start-date' prop. Setting default: ",this.defaultFocusedDomain[0]),this.endDate||console.log("<ETimeline />: didn't receive an 'end-date' prop. Setting default: ",this.defaultFocusedDomain[1])},initTimeline(){if(this.initRefs(),this.zoomToStartAndEndDates(),!this.timeline||this.timeline.offsetWidth===0||!this.domain){this.timeouts.push(setTimeout(this.initTimeline,500));return}this.selectedDate&&this.panOnDateClick&&(this.focusedTimestamp=this.tzStringToDate(this.selectedDate)),this.isInitialized=!0},initRefs(){this.tooltip=this.$refs.tooltip,this.mainContainer=this.$refs.mainContainer,this.timeline=this.$refs.timelineContainer,this.svgElement=this.$refs.timelineSvg,this.svg=O.select(this.svgElement)},zoomToFitMarkers(){const t=this.markers.map(o=>new Date(o.timestamp).getTime());if(t.length<2)return;const e=Math.min(...t),r=Math.max(...t),n=new Date(e),i=new Date(r);this.focusedDomain=[n,i]},clearTimeline(){this.svg&&this.svg.remove()},handleMouseLeave(){this.$emit("hovered-timestamp",void 0)},handleMouseMove(t,e){this.$emit("hovered-timestamp",e),this.tooltip&&(this.eventTooltipStyle={left:`${t}px`,zIndex:100,[this.tooltipPosition==="top"?"bottom":"top"]:`${this.timeline.getBoundingClientRect().height}px`})},isForbiddenInterval(t){const e=new Date(t).getTime(),r=this.forbiddenIntervals.some(o=>{const s=isNaN(new Date(o.startDate).getTime())?-1/0:new Date(o.startDate).getTime(),c=isNaN(new Date(o.endDate).getTime())?1/0:new Date(o.endDate).getTime();return e>=s&&e<=c});let n=!1;this.startDate&&(n=e<new Date(this.startDate).getTime());let i=!1;return this.endDate&&(i=e>new Date(this.endDate).getTime()),r||n||i},handleClick(t){if(this.isForbiddenInterval(t)){this.$emit("forbidden-timestamp-clicked",t);return}if(this.isHoveringGroupedEvents){if(this.isHoveringGroupedEvents=!1,this.$emit("grouped-events-clicked",{events:this.hoveredGroupedEvents,type:this.hoveredEventType}),this.stopClickPropagation)return}else if(this.isHoveringEvent&&(this.isHoveringEvent=!1,this.$emit("event-clicked",{event:this.hoveredEvent,type:this.hoveredEventType}),this.stopClickPropagation))return;this.$emit("date-clicked",t),this.panOnDateClick&&(this.focusedTimestamp=t)},handleMarkerClick(t){this.$emit("marker-clicked",t),this.panOnDateClick&&(this.focusedTimestamp=t.timestamp)},handleChartMouseOver(t,e,r){this.isAnimating||!this.countsByTimestamp[`${e.timestamp||e.startDate}`]||(this.hoveredCounts=Object.entries(this.countsByTimestamp[`${e.timestamp||e.startDate}`]).reduce((n,i)=>{var c;const[o,s]=i;return(c=this.hiddenGroupsLabels)!=null&&c.includes(o)?n:[...n,{type:o,count:s,label:this.getExternalLabelText(o)}]},[]),this.hoveredEvent=e,this.isHoveringEvent=!0,this.$emit("event-mouseover",{eventData:e,eventType:r,hoveredCounts:this.hoveredCounts}))},handleChartMouseOut(){this.isHoveringEvent=!1,this.hoveredCounts=[],this.$emit("event-mouseout")},handleBarMouseOver(t,e,r){t.offsetX<=this.minHoverZone||(this.hoveredEvent=e,this.hoveredEventType=r,this.isHoveringEvent=!0,this.isHoveringGroupedEvents=!1,this.$emit("event-mouseover",{eventData:e,eventType:r}))},handleBarGroupedEventsMouseOver(t,e,r){t.offsetX<=this.minHoverZone||(this.hoveredGroupedEvents=e,this.hoveredEventType=r,this.isHoveringEvent=!1,this.isHoveringGroupedEvents=!0,this.$emit("grouped-events-mouseover",{events:e,eventType:r}))},handleBarMouseOut(){this.isHoveringEvent=!1,this.isHoveringGroupedEvents=!1,this.hoveredEvent=null,this.hoveredGroupedEvents=null,this.$emit("event-mouseout")},handleTimeScaleChange(t){this.$emit("time-scale-change",t)},zoomToStartAndEndDates(){var r,n;const t=this.startDate||((r=this.focusedInterval)==null?void 0:r.startDate)||this.defaultFocusedDomain[0],e=this.endDate||((n=this.focusedInterval)==null?void 0:n.endDate)||this.defaultFocusedDomain[1];this.focusedDomain=[this.tzStringToDate(t),this.tzStringToDate(e)]},onAnimationStart(){this.isAnimating=!0,this.$emit("animation-start")},onAnimationEnd(){this.isAnimating=!1,this.$emit("animation-end")},getMilestoneClass(t){return{[me.milestoneSelected]:[t.id,t.timestamp].includes(this.selectedMilestoneId)}},getMilestoneColors(t,e){return{background:t||e,border:this.getTextFillColor(t||e,.25)}},getMilestoneGroupYPosition(t){let e=0;for(const[r,n]of Object.entries(this.milestonesGroups)){if(r===t)break;e+=n.height||this.barHeight}return this.combinedXAxesHeight+this.milestonesYOffset+e},getBarGroupYPosition(t,e){let r=this.combinedXAxesHeight;e?r+=(this.hasChart?this.chartHeight:0)+(this.hasMilestones?this.combinedMilestonesHeight:0):r+=this.barsYOffset;for(const[n,i]of Object.entries(this.barGroups)){if(n===t)break;!e&&i.bottom||(r+=this.getBarGroupHeight(i))}return r},getBarGroupHeight(t){return t.height?Math.max(t.height+this.barYPadding,1):this.barHeight+this.barYPadding},getTextFillColor(t,e=0){var r,n;return(this.dark?(r=O.color(t))==null?void 0:r.brighter(1.5+e):(n=O.color(t))==null?void 0:n.darker(2+e)).toString()},getLabelBackgroundColor(t){let e=O.color(t);return e.opacity=this.dark?.2:.5,e.toString()},getCurrentGroupVisibility(t){var n;const e=this.groupsVisibility[t];if(e!==void 0)return e;const r=(n=this.eventsGroups[t])==null?void 0:n.isHidden;return r!==void 0?!r:!0},toggleGroupVisibility(t){this.groupsVisibility={...this.groupsVisibility,[t]:!this.getCurrentGroupVisibility(t)}},getExternalLabelStyles(t){const e=this.eventsGroups[t].color;return{background:this.getLabelBackgroundColor(e),color:this.getTextFillColor(e)}},getExternalLabelText(t){var e;return(e=this.eventsGroups[t])==null?void 0:e.label},getExternalLabelWrapperStyles(t){const e=this.eventsGroups[t].color;return{borderColor:this.getTextFillColor(e)}},tzStringToDate(t){return Qe({timestamp:t,timezone:this.timezone})},getFormattedTimestamp(t){return ke.parseZone(t).format("YYYY-MM-DDTHH:mm:ss")},fillTimeGaps(t){if(t.length<=1)return t;const e=this.insertZerosAtInterval,r=o=>o.clone().add(1,e),n=o=>o.clone().subtract(1,e);let i=[];for(let o=0;o<t.length;o++){const s=t[o];if(i.push(s),o===t.length-1)break;const c=t[o+1],a=ke(s.timestamp),l=ke(c.timestamp);if(l.diff(a,e)>1){const d=r(a).toISOString(),f=n(l).toISOString();i.push({timestamp:d,count:0}),d!==f&&i.push({timestamp:f,count:0})}}if(this.flattenLineGraphEnds){const o=ke(t[0].timestamp),s=ke(t[t.length-1].timestamp),c=n(o).toISOString(),a=r(s).toISOString();i=[{timestamp:c,count:0},...i,{timestamp:a,count:0}]}return i},fillEvents(t){return this.placeholderLineChartGroup.map(e=>t.find(n=>n.timestamp===e.timestamp)||e)},onMilestoneClick(t,e){this.panOnDateClick&&(this.focusedTimestamp=t.timestamp),this.selectedMilestoneId=t.id||t.timestamp,this.$emit("milestone-click",{milestone:t,milestoneType:e})},getSortedEvents(t){return[...t].sort((e,r)=>new Date(e.timestamp||e.startDate)>new Date(r.timestamp||r.startDate)?1:-1)},onHoverMilestone(t){this.hoveredMilestone=t},onResizeContainer({contentRect:t}){this.width===t.width||t.width===0||(this.width=t.width,this.$emit("timeline-resize",{contentRect:t}))}}}),cd="";var _5=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResizeContainer,expression:"onResizeContainer"}],ref:"mainContainer",staticClass:"e-timeline"},[r("EZoomBehavior",{attrs:{domain:e.domain,"focused-domain":e.focusedDomain,"translation-duration":e.transitionDuration,"focused-timestamp":e.focusedTimestamp,timezone:e.timezone,width:e.width},on:{"visible-interval-change":e.handleVisibleIntervalChange,"time-scale-change":e.handleTimeScaleChange,"animation-start":e.onAnimationStart,"animation-end":e.onAnimationEnd},scopedSlots:e._u([{key:"default",fn:function({timeScale:n}){return[n?r("div",{staticClass:"e-relative e-timeline e-border e-rounded",class:e.computedClasses.wrapper},[r("ECursorBehavior",{attrs:{"time-scale":n,timezone:e.timezone,"min-hover-zone":e.minHoverZone,"is-hovering-milestone":e.isHoveringMilestone},on:{"mouse-move":e.handleMouseMove,"mouse-leave":e.handleMouseLeave,"timestamp-clicked":e.handleClick},scopedSlots:e._u([{key:"default",fn:function({hoveredTimestamp:i,isHoveringTimeline:o}){var s;return[r("ETimelineMarkers",{attrs:{markers:e.sortedMarkers,"sticky-markers":e.stickyMarkers,"time-scale":n,"time-zone":e.timezone,height:e.timelineHeight,"svg-left":e.svgLeft},on:{"marker-clicked":e.handleMarkerClick,"marker-drag-end":function(c){return e.$emit("marker-drag-end",c)},"marker-drag-start":function(c){return e.$emit("marker-drag-start",c)},"marker-drag-drag":function(c){return e.$emit("marker-drag-drag",c)}},scopedSlots:e._u([e._l(e.markersScopedSlots,function(c,a){return{key:a,fn:function(l){return[e._t(a,null,null,l)]}}})],null,!0)}),r("div",{ref:"timelineContainer",staticClass:"e-timeline__svg-container e-relative e-h-13 e-rounded e-select-none e-overflow-x-hidden"},[r("svg",{ref:"timelineSvg",class:e.computedClasses.background,attrs:{width:e.width,height:e.timelineHeight}},[r("ETimelineSVGDefs",{attrs:{"events-groups":e.eventsGroups,width:e.width,height:e.chartHeight,"forbidden-interval-color":e.forbiddenIntervalColor}}),r("g",{staticClass:"e-timeline-axes"},[n?r("EXAxisOverview",{attrs:{"time-scale":n,height:e.timelineHeight,dark:e.dark}}):e._e(),n?r("EXAxisDetailed",{attrs:{"time-scale":n,height:e.timelineHeight-e.axisHeight,y:e.axisHeight,dark:e.dark}}):e._e(),n?r("EXAxisBackground",{attrs:{"time-scale":n,height:e.timelineHeight-e.combinedXAxesHeight,y:e.combinedXAxesHeight,dark:e.dark}}):e._e()],1),e.selectedTimestamp?r("ETimelineSelectedTimestampCursor",{attrs:{"time-scale":n,"selected-timestamp":e.selectedTimestamp,timezone:e.timezone,height:e.timelineHeight}}):e._e(),i&&o&&!e.isHoveringMilestone&&e.showCursor?r("ETimelineCursor",{attrs:{"time-scale":n,"selected-timestamp":i,timezone:e.timezone,height:e.timelineHeight}}):e._e(),e._l(e.forbiddenIntervals,function(c,a){return r("ETimelineForbiddenInterval",{key:a,attrs:{"time-scale":n,interval:c,index:a,height:e.timelineHeight,timezone:e.timezone}})}),e._l(e.barGroups,function(c,a){return r("ETimelineRectsChart",{key:a,attrs:{"time-scale":n,"events-group":c,"group-id":a,y:e.getBarGroupYPosition(a,c.bottom),height:e.barHeight,width:e.width,"rect-y-padding":e.barYPadding,dark:e.dark,"show-label":e.showLabels,timezone:e.timezone,dots:c.chartType===e.TimelineChartType.Dots,"dots-size":c.dotsSize,"bar-border-radius":c.barBorderRadius,"group-overlapping-dots":c.groupOverlappingDots},on:{"event-mouseover":e.handleBarMouseOver,"grouped-events-mouseover":e.handleBarGroupedEventsMouseOver,"event-mouseout":e.handleBarMouseOut,"group-label-clicked":e.toggleGroupVisibility}})}),e._l(e.milestonesGroupsPlaceholder,function(c,a){return r("ETimelineRectsChart",{key:a,attrs:{width:e.width,y:e.getMilestoneGroupYPosition(a),height:c.height,"group-id":a,"events-group":c,"time-scale":n,dark:e.dark,dots:!0,"show-label":!1}})}),e._l(e.insertZerosAtInterval?e.filledGapsLineGraphGroups:e.lineGraphGroups,function(c,a){return r("ETimelineLinesChart",{key:a,attrs:{"group-id":a,"time-scale":n,"events-group":c,y:e.getChartsYPosition(a),height:e.chartHeight,width:e.width,dark:e.dark,timezone:e.timezone,"show-label":e.showLabels,"label-height":e.chartLabelHeight,"max-visible-count":e.maxVisibleCount,"y-offset":e.chartsYOffset,"hovered-timestamp":i},on:{"event-mouseover":e.handleChartMouseOver,"event-mouseout":e.handleChartMouseOut,"group-label-clicked":e.toggleGroupVisibility}})}),e._l(e.barChartGroups,function(c,a,l){return r("ETimelineBarsChart",{key:a,attrs:{"group-id":a,width:e.width,y:e.getChartsYPosition(a),height:e.chartHeight,"events-group":c,"time-scale":n,dark:e.dark,"y-offset":e.chartsYOffset,"label-height":e.chartLabelHeight,"max-visible-count":e.maxVisibleCount,"show-label":e.showLabels,"hovered-timestamp":i,"previous-counts-by-timestamp":e.getPreviousCountsByTimestamp(l)},on:{"event-mouseover":e.handleChartMouseOver,"event-mouseout":e.handleChartMouseOut,"group-label-clicked":e.toggleGroupVisibility}})})],2)]),e._l(e.milestonesGroups,function(c,a){return r("div",{key:`${a}`,staticClass:"e-timeline-milestones",attrs:{"data-test-id":"timeline-milestones"}},[r("div",{class:`e-tl-milestones e-tl-milestones-${a}`},e._l(e.getSortedEvents(c.events),function(l,d){return r("ETimelineMilestone",{key:`${l.milestoneType}-${d}`,class:e.getMilestoneClass(l),attrs:{"time-scale":n,y:e.getMilestoneGroupYPosition(a),height:c.height||e.barHeight,"data-timestamp":l.timestamp,milestone:l,dot:c.dots,size:l.size||e.milestoneBulletSize,"transition-duration":c.milestonesTransitionDuration,"line-height":c.milestonesLineHeight,"dot-size":c.milestonesDotSize,"data-test-id":`milestone-${l.milestoneType}-${d}`,"background-color":e.getMilestoneColors(l.color,c.color).background,"border-color":e.getMilestoneColors(l.color,c.color).border,timezone:e.timezone},on:{"hovered-milestone":e.onHoverMilestone,"milestone-click":function(f){return e.onMilestoneClick(l,a)}},scopedSlots:e._u([{key:"content",fn:function(){return[e._t(`milestoneContent.${l.milestoneType}`,function(){return[r("span",{staticClass:"e-px-2"},[e._v(" "+e._s(l.text)+" ")])]},{milestone:l,index:d,hover:l===e.hoveredMilestone})]},proxy:!0},{key:"label",fn:function(){return[e._t(`milestoneLabel.${l.milestoneType}`,null,{milestone:l})]},proxy:!0}],null,!0)})}),1)])}),r("div",{staticClass:"external-labels-container e-flex"},e._l(e.hiddenGroupsLabels,function(c){return r("div",{key:c,staticClass:"external-label",class:e.computedClasses.background,style:e.getExternalLabelWrapperStyles(c),on:{click:function(a){return a.stopPropagation(),e.toggleGroupVisibility(c)}}},[r("div",{staticClass:"external-label__content",style:e.getExternalLabelStyles(c)},[e._v(" "+e._s(e.getExternalLabelText(c))+" ")])])}),0),r("div",{key:"tooltip",ref:"tooltip",staticClass:"e-absolute",style:e.eventTooltipStyle},[e._t("tooltip",function(){return[r("div",{directives:[{name:"show",rawName:"v-show",value:o&&!e.isHoveringEvent&&!e.isHoveringMilestone,expression:`
1
+ (function(G,F){typeof exports=="object"&&typeof module!="undefined"?F(exports,require("vue"),require("hls.js"),require("d3"),require("moment-timezone"),require("remark-gfm"),require("remark-parse"),require("remark-rehype"),require("remark-breaks"),require("rehype-stringify"),require("unist-util-visit"),require("unified"),require("morphdom")):typeof define=="function"&&define.amd?define(["exports","vue","hls.js","d3","moment-timezone","remark-gfm","remark-parse","remark-rehype","remark-breaks","rehype-stringify","unist-util-visit","unified","morphdom"],F):(G=typeof globalThis!="undefined"?globalThis:G||self,F(G.EvercamUI={},G.Vue,G.Hls,G.d3,G.moment,G.remarkGfm,G.remarkParse,G.remarkRehype,G.remarkBreaks,G.rehypeStringify,G.unistUtilVisit,G.unified,G.morphdom))})(this,function(G,F,at,js,ke,Gs,qs,Ws,En,Us,Zs,Ys,Xs){var Cs,bs,xs,ws,Ss,Ts,ks,$s;"use strict";function Vs(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}function Xt(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in t)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const O=Vs(js);var vt=(t=>(t.Continuous="continuous",t.WorkingHours="workingHours",t.Empty="empty",t.Custom="custom",t))(vt||{}),Mn=(t=>(t.Monday="monday",t.Tuesday="tuesday",t.Wednesday="wednesday",t.Thursday="thursday",t.Friday="friday",t.Saturday="saturday",t.Sunday="sunday",t))(Mn||{}),K=(t=>(t.Dot="dot",t.TwoXs="2xs",t.Xs="xs",t.Sm="sm",t.Md="base",t.Base="base",t.Lg="lg",t.Xl="xl",t.TwoXl="2xl",t.ThreeXl="3xl",t.FourXl="4xl",t.FiveXl="5xl",t.SixXl="6xl",t.SevenXl="7xl",t.EightXl="8xl",t.NineXl="9xl",t))(K||{}),se=(t=>(t.Warning="warning",t.Error="error",t.Info="info",t.Success="success",t.Primary="primary",t.Brand="brand",t.Default="default",t.Gray="gray",t))(se||{}),rt=(t=>(t.Overview="overview",t.Detailed="detailed",t.DetailedBackground="detailedBackground",t))(rt||{}),He=(t=>(t.Bars="bars",t.Dots="dots",t.LineGraph="lineGraph",t.BarChart="barGraph",t.Milestones="milestones",t))(He||{}),_t=(t=>(t.Zoom="zoom",t.AutoPan="autoPan",t.Initial="initial",t))(_t||{}),Ln=(t=>(t.ThreeSixty="360",t.FourEighty="480",t.SevenTwenty="720",t.OneZeroEightZero="1080",t.Auto="auto",t))(Ln||{}),Oe=(t=>(t.Top="top",t.Right="right",t.Bottom="bottom",t.Left="left",t))(Oe||{}),Ye=(t=>(t.System="system",t.Copilot="copilot",t.User="user",t))(Ye||{}),Vt=(t=>(t.Text="text",t.Error="error",t.Json="json",t))(Vt||{}),Qt=(t=>(t.Positive="positive",t.Negative="negative",t))(Qt||{}),nt=(t=>(t.Window="window",t.Curtain="curtain",t.Transparency="transparency",t))(nt||{});const Qs=F.extend({name:"EBadge",props:{text:{type:String,default:""},color:{type:String,default:se.Default},size:{type:String,default:K.Base}},data(){return{colors:{[se.Error]:"e-bg-rose-500 e-text-white",[se.Info]:"e-bg-cyan-500 e-text-white",[se.Warning]:"e-bg-amber-500 e-text-white",[se.Primary]:"e-bg-sky-500 e-text-white",[se.Default]:"e-bg-slate-300 e-text-white",[se.Success]:"e-bg-lime-500 e-text-white"},sizes:{[K.Dot]:"e-w-2 e-h-2",[K.Xs]:"e-w-3 e-h-3",[K.Sm]:"e-w-4 e-h-4",[K.Md]:"e-w-5 e-h-5",[K.Lg]:"e-min-w-[2rem] e-max-w-[4rem] e-px-1 e-h-6 e-text-sm e-font-medium",[K.Xl]:"e-min-w-[3rem] e-max-w-[5rem] e-px-1 e-h-8 e-text-base e-font-medium"}}},computed:{badgeClasses(){const t=this.colors[this.color]||this.colors[se.Default],e=this.sizes[this.size]||this.sizes[K.Md];return["e-flex e-items-center e-justify-center e-rounded-full",t,e]},showText(){return[K.Lg,K.Xl].includes(this.size)}}});function H(t,e,r,n,i,a,o,c){var s=typeof t=="function"?t.options:t;e&&(s.render=e,s.staticRenderFns=r,s._compiled=!0),n&&(s.functional=!0),a&&(s._scopeId="data-v-"+a);var l;if(o?(l=function(m){m=m||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!m&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(m=__VUE_SSR_CONTEXT__),i&&i.call(this,m),m&&m._registeredComponents&&m._registeredComponents.add(o)},s._ssrRegister=l):i&&(l=c?function(){i.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(s.functional){s._injectStyles=l;var d=s.render;s.render=function(b,x){return l.call(x),d(b,x)}}else{var f=s.beforeCreate;s.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:s}}var Ks=function(){var e=this,r=e._self._c;return r("span",{staticClass:"e-badge",class:e.badgeClasses},[e.showText?r("span",[e._v(e._s(e.text))]):e._e()])},Js=[],ea=H(Qs,Ks,Js,!1,null,null,null,null);const Kt=ea.exports,ta=F.extend({name:"EAvatar",components:{Badge:Kt},props:{size:{type:String,default:K.Md},showBadge:{type:Boolean,default:!1},badgeColor:{type:String,default:se.Error},badgeText:{type:String,default:""},badgeSize:{type:String,default:K.Md},image:{type:String,default:""},backgroundClasses:{type:String,default:"e-bg-gradient-to-r e-from-purple-500 e-to-indigo-500"}},data(){return{sizes:{[K.TwoXs]:"e-w-6 e-h-6 e-text-xs",[K.Xs]:"e-w-8 e-h-8 e-text-xs",[K.Sm]:"e-w-10 e-h-10 e-text-sm",[K.Md]:"e-w-14 e-h-14 e-text-base",[K.Lg]:"e-w-20 e-h-20 e-text-2xl",[K.Xl]:"e-w-28 e-h-28 e-text-3xl",[K.TwoXl]:"e-w-36 e-h-36 e-text-5xl"}}},computed:{avatarClasses(){const t=this.sizes[this.size]||this.sizes[K.Xs],e=this.image?"e-rounded-full e-overflow-hidden":"";return["e-flex e-items-center e-justify-center e-rounded-full e-text-white e-font-medium",t,e,this.backgroundClasses]}}});var ra=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-avatar e-relative",class:e.avatarClasses},[e._t("default",function(){return[e.image?r("img",{staticClass:"e-avatar__image e-w-full e-h-full e-object-cover",attrs:{src:e.image}}):e._e()]}),e.showBadge?r("div",{staticClass:"e-avatar__badge e-absolute e-top-0 e-right-0"},[e._t("badge",function(){return[r("Badge",{attrs:{text:e.badgeText,color:e.badgeColor,size:e.badgeSize}})]})],2):e._e()],2)},na=[],ia=H(ta,ra,na,!1,null,null,null,null);const Mt=ia.exports;var ot=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function yt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Dn={},Pn={},Jt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r){if(r=`${r}`,r==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(r))return r.replace(/^[+-]?/,i=>i==="-"?"":"-");let n=["var","calc","min","max","clamp"];for(const i of n)if(r.includes(`${i}(`))return`calc(${r} * -1)`}})(Jt);var On={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});const e=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","lineClamp","display","aspectRatio","size","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","captionSide","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","listStyleImage","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","hyphens","whitespace","textWrap","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","contain","content","forcedColorAdjust"]})(On);var zn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r,n){return r===void 0?n:Array.isArray(r)?r:[...new Set(n.filter(a=>r!==!1&&r[a]!==!1).concat(Object.keys(r).filter(a=>r[a]!==!1)))]}})(zn);var er={},Lt={},tr={exports:{}},Ce=String,Bn=function(){return{isColorSupported:!1,reset:Ce,bold:Ce,dim:Ce,italic:Ce,underline:Ce,inverse:Ce,hidden:Ce,strikethrough:Ce,black:Ce,red:Ce,green:Ce,yellow:Ce,blue:Ce,magenta:Ce,cyan:Ce,white:Ce,gray:Ce,bgBlack:Ce,bgRed:Ce,bgGreen:Ce,bgYellow:Ce,bgBlue:Ce,bgMagenta:Ce,bgCyan:Ce,bgWhite:Ce}};tr.exports=Bn(),tr.exports.createColors=Bn;var In=tr.exports;(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(s,l){for(var d in l)Object.defineProperty(s,d,{enumerable:!0,get:l[d]})}e(t,{dim:function(){return o},default:function(){return c}});const r=n(In);function n(s){return s&&s.__esModule?s:{default:s}}let i=new Set;function a(s,l,d){typeof process!="undefined"&&process.env.JEST_WORKER_ID||d&&i.has(d)||(d&&i.add(d),console.warn(""),l.forEach(f=>console.warn(s,"-",f)))}function o(s){return r.default.dim(s)}const c={info(s,l){a(r.default.bold(r.default.cyan("info")),...Array.isArray(s)?[s]:[l,s])},warn(s,l){a(r.default.bold(r.default.yellow("warn")),...Array.isArray(s)?[s]:[l,s])},risk(s,l){a(r.default.bold(r.default.magenta("risk")),...Array.isArray(s)?[s]:[l,s])}}})(Lt),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});const e=r(Lt);function r(a){return a&&a.__esModule?a:{default:a}}function n({version:a,from:o,to:c}){e.default.warn(`${o}-color-renamed`,[`As of Tailwind CSS ${a}, \`${o}\` has been renamed to \`${c}\`.`,"Update your configuration file to silence this warning."])}const i={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return n({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return n({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return n({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return n({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return n({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}(er);var Fn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"defaults",{enumerable:!0,get:function(){return e}});function e(r,...n){for(let o of n){for(let c in o){var i;!(r==null||(i=r.hasOwnProperty)===null||i===void 0)&&i.call(r,c)||(r[c]=o[c])}for(let c of Object.getOwnPropertySymbols(o)){var a;!(r==null||(a=r.hasOwnProperty)===null||a===void 0)&&a.call(r,c)||(r[c]=o[c])}}return r}})(Fn);var An={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"toPath",{enumerable:!0,get:function(){return e}});function e(r){if(Array.isArray(r))return r;let n=r.split("[").length-1,i=r.split("]").length-1;if(n!==i)throw new Error(`Path is invalid. Has unbalanced brackets: ${r}`);return r.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}})(An);var Rn={},Dt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(f,m){for(var b in m)Object.defineProperty(f,b,{enumerable:!0,get:m[b]})}e(t,{flagEnabled:function(){return c},issueFlagNotices:function(){return l},default:function(){return d}});const r=i(In),n=i(Lt);function i(f){return f&&f.__esModule?f:{default:f}}let a={optimizeUniversalDefaults:!1,generalizedModifiers:!0,disableColorOpacityUtilitiesByDefault:!1,relativeContentPathsByDefault:!1},o={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity","disableColorOpacityUtilitiesByDefault","relativeContentPathsByDefault"],experimental:["optimizeUniversalDefaults","generalizedModifiers"]};function c(f,m){if(o.future.includes(m)){var b,x,h;return f.future==="all"||((h=(x=f==null||(b=f.future)===null||b===void 0?void 0:b[m])!==null&&x!==void 0?x:a[m])!==null&&h!==void 0?h:!1)}if(o.experimental.includes(m)){var y,$,D;return f.experimental==="all"||((D=($=f==null||(y=f.experimental)===null||y===void 0?void 0:y[m])!==null&&$!==void 0?$:a[m])!==null&&D!==void 0?D:!1)}return!1}function s(f){if(f.experimental==="all")return o.experimental;var m;return Object.keys((m=f==null?void 0:f.experimental)!==null&&m!==void 0?m:{}).filter(b=>o.experimental.includes(b)&&f.experimental[b])}function l(f){if(process.env.JEST_WORKER_ID===void 0&&s(f).length>0){let m=s(f).map(b=>r.default.yellow(b)).join(", ");n.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${m}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}const d=o})(Dt),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeConfig",{enumerable:!0,get:function(){return a}});const e=Dt,r=i(Lt);function n(o){if(typeof WeakMap!="function")return null;var c=new WeakMap,s=new WeakMap;return(n=function(l){return l?s:c})(o)}function i(o,c){if(!c&&o&&o.__esModule)return o;if(o===null||typeof o!="object"&&typeof o!="function")return{default:o};var s=n(c);if(s&&s.has(o))return s.get(o);var l={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in o)if(f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)){var m=d?Object.getOwnPropertyDescriptor(o,f):null;m&&(m.get||m.set)?Object.defineProperty(l,f,m):l[f]=o[f]}return l.default=o,s&&s.set(o,l),l}function a(o){if((()=>{if(o.purge||!o.content||!Array.isArray(o.content)&&!(typeof o.content=="object"&&o.content!==null))return!1;if(Array.isArray(o.content))return o.content.every(l=>typeof l=="string"?!0:!(typeof(l==null?void 0:l.raw)!="string"||l!=null&&l.extension&&typeof(l==null?void 0:l.extension)!="string"));if(typeof o.content=="object"&&o.content!==null){if(Object.keys(o.content).some(l=>!["files","relative","extract","transform"].includes(l)))return!1;if(Array.isArray(o.content.files)){if(!o.content.files.every(l=>typeof l=="string"?!0:!(typeof(l==null?void 0:l.raw)!="string"||l!=null&&l.extension&&typeof(l==null?void 0:l.extension)!="string")))return!1;if(typeof o.content.extract=="object"){for(let l of Object.values(o.content.extract))if(typeof l!="function")return!1}else if(!(o.content.extract===void 0||typeof o.content.extract=="function"))return!1;if(typeof o.content.transform=="object"){for(let l of Object.values(o.content.transform))if(typeof l!="function")return!1}else if(!(o.content.transform===void 0||typeof o.content.transform=="function"))return!1;if(typeof o.content.relative!="boolean"&&typeof o.content.relative!="undefined")return!1}return!0}return!1})()||r.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),o.safelist=(()=>{var l;let{content:d,purge:f,safelist:m}=o;return Array.isArray(m)?m:Array.isArray(d==null?void 0:d.safelist)?d.safelist:Array.isArray(f==null?void 0:f.safelist)?f.safelist:Array.isArray(f==null||(l=f.options)===null||l===void 0?void 0:l.safelist)?f.options.safelist:[]})(),o.blocklist=(()=>{let{blocklist:l}=o;if(Array.isArray(l)){if(l.every(d=>typeof d=="string"))return l;r.default.warn("blocklist-invalid",["The `blocklist` option must be an array of strings.","https://tailwindcss.com/docs/content-configuration#discarding-classes"])}return[]})(),typeof o.prefix=="function")r.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),o.prefix="";else{var s;o.prefix=(s=o.prefix)!==null&&s!==void 0?s:""}o.content={relative:(()=>{let{content:l}=o;return l!=null&&l.relative?l.relative:(0,e.flagEnabled)(o,"relativeContentPathsByDefault")})(),files:(()=>{let{content:l,purge:d}=o;return Array.isArray(d)?d:Array.isArray(d==null?void 0:d.content)?d.content:Array.isArray(l)?l:Array.isArray(l==null?void 0:l.content)?l.content:Array.isArray(l==null?void 0:l.files)?l.files:[]})(),extract:(()=>{let l=(()=>{var m,b,x,h,y,$,D,S,R,E;return!((m=o.purge)===null||m===void 0)&&m.extract?o.purge.extract:!((b=o.content)===null||b===void 0)&&b.extract?o.content.extract:!((x=o.purge)===null||x===void 0||(h=x.extract)===null||h===void 0)&&h.DEFAULT?o.purge.extract.DEFAULT:!((y=o.content)===null||y===void 0||($=y.extract)===null||$===void 0)&&$.DEFAULT?o.content.extract.DEFAULT:!((D=o.purge)===null||D===void 0||(S=D.options)===null||S===void 0)&&S.extractors?o.purge.options.extractors:!((R=o.content)===null||R===void 0||(E=R.options)===null||E===void 0)&&E.extractors?o.content.options.extractors:{}})(),d={},f=(()=>{var m,b,x,h;if(!((m=o.purge)===null||m===void 0||(b=m.options)===null||b===void 0)&&b.defaultExtractor)return o.purge.options.defaultExtractor;if(!((x=o.content)===null||x===void 0||(h=x.options)===null||h===void 0)&&h.defaultExtractor)return o.content.options.defaultExtractor})();if(f!==void 0&&(d.DEFAULT=f),typeof l=="function")d.DEFAULT=l;else if(Array.isArray(l))for(let{extensions:m,extractor:b}of l!=null?l:[])for(let x of m)d[x]=b;else typeof l=="object"&&l!==null&&Object.assign(d,l);return d})(),transform:(()=>{let l=(()=>{var f,m,b,x,h,y;return!((f=o.purge)===null||f===void 0)&&f.transform?o.purge.transform:!((m=o.content)===null||m===void 0)&&m.transform?o.content.transform:!((b=o.purge)===null||b===void 0||(x=b.transform)===null||x===void 0)&&x.DEFAULT?o.purge.transform.DEFAULT:!((h=o.content)===null||h===void 0||(y=h.transform)===null||y===void 0)&&y.DEFAULT?o.content.transform.DEFAULT:{}})(),d={};return typeof l=="function"?d.DEFAULT=l:typeof l=="object"&&l!==null&&Object.assign(d,l),d})()};for(let l of o.content.files)if(typeof l=="string"&&/{([^,]*?)}/g.test(l)){r.default.warn("invalid-glob-braces",[`The glob pattern ${(0,r.dim)(l)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,r.dim)(l.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return o}}(Rn);var Hn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r){if(Object.prototype.toString.call(r)!=="[object Object]")return!1;const n=Object.getPrototypeOf(r);return n===null||Object.getPrototypeOf(n)===null}})(Hn);var Nn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return e}});function e(r){return Array.isArray(r)?r.map(n=>e(n)):typeof r=="object"&&r!==null?Object.fromEntries(Object.entries(r).map(([n,i])=>[n,e(i)])):r}})(Nn);var jn={},Gn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r){return r.replace(/\\,/g,"\\2c ")}})(Gn);var rr={},nr={},qn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});const e={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}})(qn),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(x,h){for(var y in h)Object.defineProperty(x,y,{enumerable:!0,get:h[y]})}e(t,{parseColor:function(){return m},formatColor:function(){return b}});const r=n(qn);function n(x){return x&&x.__esModule?x:{default:x}}let i=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,a=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,o=/(?:\d+|\d*\.\d+)%?/,c=/(?:\s*,\s*|\s+)/,s=/\s*[,/]\s*/,l=/var\(--(?:[^ )]*?)(?:,(?:[^ )]*?|var\(--[^ )]*?\)))?\)/,d=new RegExp(`^(rgba?)\\(\\s*(${o.source}|${l.source})(?:${c.source}(${o.source}|${l.source}))?(?:${c.source}(${o.source}|${l.source}))?(?:${s.source}(${o.source}|${l.source}))?\\s*\\)$`),f=new RegExp(`^(hsla?)\\(\\s*((?:${o.source})(?:deg|rad|grad|turn)?|${l.source})(?:${c.source}(${o.source}|${l.source}))?(?:${c.source}(${o.source}|${l.source}))?(?:${s.source}(${o.source}|${l.source}))?\\s*\\)$`);function m(x,{loose:h=!1}={}){var y,$;if(typeof x!="string")return null;if(x=x.trim(),x==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(x in r.default)return{mode:"rgb",color:r.default[x].map(j=>j.toString())};let D=x.replace(a,(j,Q,U,C,z)=>["#",Q,Q,U,U,C,C,z?z+z:""].join("")).match(i);if(D!==null)return{mode:"rgb",color:[parseInt(D[1],16),parseInt(D[2],16),parseInt(D[3],16)].map(j=>j.toString()),alpha:D[4]?(parseInt(D[4],16)/255).toString():void 0};var S;let R=(S=x.match(d))!==null&&S!==void 0?S:x.match(f);if(R===null)return null;let E=[R[2],R[3],R[4]].filter(Boolean).map(j=>j.toString());return E.length===2&&E[0].startsWith("var(")?{mode:R[1],color:[E[0]],alpha:E[1]}:!h&&E.length!==3||E.length<3&&!E.some(j=>/^var\(.*?\)$/.test(j))?null:{mode:R[1],color:E,alpha:(y=R[5])===null||y===void 0||($=y.toString)===null||$===void 0?void 0:$.call(y)}}function b({mode:x,color:h,alpha:y}){let $=y!==void 0;return x==="rgba"||x==="hsla"?`${x}(${h.join(", ")}${$?`, ${y}`:""})`:`${x}(${h.join(" ")}${$?` / ${y}`:""})`}}(nr),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(a,o){for(var c in o)Object.defineProperty(a,c,{enumerable:!0,get:o[c]})}e(t,{withAlphaValue:function(){return n},default:function(){return i}});const r=nr;function n(a,o,c){if(typeof a=="function")return a({opacityValue:o});let s=(0,r.parseColor)(a,{loose:!0});return s===null?c:(0,r.formatColor)({...s,alpha:o})}function i({color:a,property:o,variable:c}){let s=[].concat(o);if(typeof a=="function")return{[c]:"1",...Object.fromEntries(s.map(d=>[d,a({opacityVariable:c,opacityValue:`var(${c})`})]))};const l=(0,r.parseColor)(a);return l===null?Object.fromEntries(s.map(d=>[d,a])):l.alpha!==void 0?Object.fromEntries(s.map(d=>[d,a])):{[c]:"1",...Object.fromEntries(s.map(d=>[d,(0,r.formatColor)({...l,alpha:`var(${c})`})]))}}}(rr);var ir={},Wn={},Pt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"splitAtTopLevelOnly",{enumerable:!0,get:function(){return e}});function e(r,n){let i=[],a=[],o=0,c=!1;for(let s=0;s<r.length;s++){let l=r[s];i.length===0&&l===n[0]&&!c&&(n.length===1||r.slice(s,s+n.length)===n)&&(a.push(r.slice(o,s)),o=s+n.length),c=c?!1:l==="\\",l==="("||l==="["||l==="{"?i.push(l):(l===")"&&i[i.length-1]==="("||l==="]"&&i[i.length-1]==="["||l==="}"&&i[i.length-1]==="{")&&i.pop()}return a.push(r.slice(o)),a}})(Pt),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(s,l){for(var d in l)Object.defineProperty(s,d,{enumerable:!0,get:l[d]})}e(t,{parseBoxShadowValue:function(){return o},formatBoxShadowValue:function(){return c}});const r=Pt;let n=new Set(["inset","inherit","initial","revert","unset"]),i=/\ +(?![^(]*\))/g,a=/^-?(\d+|\.\d+)(.*?)$/g;function o(s){return(0,r.splitAtTopLevelOnly)(s,",").map(d=>{let f=d.trim(),m={raw:f},b=f.split(i),x=new Set;for(let h of b)a.lastIndex=0,!x.has("KEYWORD")&&n.has(h)?(m.keyword=h,x.add("KEYWORD")):a.test(h)?x.has("X")?x.has("Y")?x.has("BLUR")?x.has("SPREAD")||(m.spread=h,x.add("SPREAD")):(m.blur=h,x.add("BLUR")):(m.y=h,x.add("Y")):(m.x=h,x.add("X")):m.color?(m.unknown||(m.unknown=[]),m.unknown.push(h)):m.color=h;return m.valid=m.x!==void 0&&m.y!==void 0,m})}function c(s){return s.map(l=>l.valid?[l.keyword,l.x,l.y,l.blur,l.spread,l.color].filter(Boolean).join(" "):l.raw).join(", ")}}(Wn),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(P,N){for(var ne in N)Object.defineProperty(P,ne,{enumerable:!0,get:N[ne]})}e(t,{normalize:function(){return s},normalizeAttributeSelectors:function(){return l},url:function(){return f},number:function(){return m},percentage:function(){return b},length:function(){return y},lineWidth:function(){return D},shadow:function(){return S},color:function(){return R},image:function(){return E},gradient:function(){return Q},position:function(){return C},familyName:function(){return z},genericName:function(){return L},absoluteSize:function(){return X},relativeSize:function(){return T}});const r=nr,n=Wn,i=Pt;let a=["min","max","clamp","calc"];function o(P){return a.some(N=>new RegExp(`^${N}\\(.*\\)`).test(P))}const c=new Set(["scroll-timeline-name","timeline-scope","view-timeline-name","font-palette","anchor-name","anchor-scope","position-anchor","position-try-options","scroll-timeline","animation-timeline","view-timeline","position-try"]);function s(P,N=null,ne=!0){let _=N&&c.has(N.property);return P.startsWith("--")&&!_?`var(${P})`:P.includes("url(")?P.split(/(url\(.*?\))/g).filter(Boolean).map(Z=>/^url\(.*?\)$/.test(Z)?Z:s(Z,N,!1)).join(""):(P=P.replace(/([^\\])_+/g,(Z,A)=>A+" ".repeat(Z.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),ne&&(P=P.trim()),P=d(P),P)}function l(P){return P.includes("=")&&(P=P.replace(/(=.*)/g,(N,ne)=>{if(ne[1]==="'"||ne[1]==='"')return ne;if(ne.length>2){let _=ne[ne.length-1];if(ne[ne.length-2]===" "&&(_==="i"||_==="I"||_==="s"||_==="S"))return`="${ne.slice(1,-2)}" ${ne[ne.length-1]}`}return`="${ne.slice(1)}"`})),P}function d(P){let N=["theme"],ne=["min-content","max-content","fit-content","safe-area-inset-top","safe-area-inset-right","safe-area-inset-bottom","safe-area-inset-left","titlebar-area-x","titlebar-area-y","titlebar-area-width","titlebar-area-height","keyboard-inset-top","keyboard-inset-right","keyboard-inset-bottom","keyboard-inset-left","keyboard-inset-width","keyboard-inset-height","radial-gradient","linear-gradient","conic-gradient","repeating-radial-gradient","repeating-linear-gradient","repeating-conic-gradient"];return P.replace(/(calc|min|max|clamp)\(.+\)/g,_=>{let Z="";function A(){let B=Z.trimEnd();return B[B.length-1]}for(let B=0;B<_.length;B++){let w=function(M){return M.split("").every((re,ce)=>_[B+ce]===re)},q=function(M){let re=1/0;for(let le of M){let ie=_.indexOf(le,B);ie!==-1&&ie<re&&(re=ie)}let ce=_.slice(B,re);return B+=ce.length-1,ce},V=_[B];if(w("var"))Z+=q([")",","]);else if(ne.some(M=>w(M))){let M=ne.find(re=>w(re));Z+=M,B+=M.length-1}else N.some(M=>w(M))?Z+=q([")"]):w("[")?Z+=q(["]"]):["+","-","*","/"].includes(V)&&!["(","+","-","*","/",","].includes(A())?Z+=` ${V} `:Z+=V}return Z.replace(/\s+/g," ")})}function f(P){return P.startsWith("url(")}function m(P){return!isNaN(Number(P))||o(P)}function b(P){return P.endsWith("%")&&m(P.slice(0,-1))||o(P)}let h=`(?:${["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"].join("|")})`;function y(P){return P==="0"||new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${h}$`).test(P)||o(P)}let $=new Set(["thin","medium","thick"]);function D(P){return $.has(P)}function S(P){let N=(0,n.parseBoxShadowValue)(s(P));for(let ne of N)if(!ne.valid)return!1;return!0}function R(P){let N=0;return(0,i.splitAtTopLevelOnly)(P,"_").every(_=>(_=s(_),_.startsWith("var(")?!0:(0,r.parseColor)(_,{loose:!0})!==null?(N++,!0):!1))?N>0:!1}function E(P){let N=0;return(0,i.splitAtTopLevelOnly)(P,",").every(_=>(_=s(_),_.startsWith("var(")?!0:f(_)||Q(_)||["element(","image(","cross-fade(","image-set("].some(Z=>_.startsWith(Z))?(N++,!0):!1))?N>0:!1}let j=new Set(["conic-gradient","linear-gradient","radial-gradient","repeating-conic-gradient","repeating-linear-gradient","repeating-radial-gradient"]);function Q(P){P=s(P);for(let N of j)if(P.startsWith(`${N}(`))return!0;return!1}let U=new Set(["center","top","right","bottom","left"]);function C(P){let N=0;return(0,i.splitAtTopLevelOnly)(P,"_").every(_=>(_=s(_),_.startsWith("var(")?!0:U.has(_)||y(_)||b(_)?(N++,!0):!1))?N>0:!1}function z(P){let N=0;return(0,i.splitAtTopLevelOnly)(P,",").every(_=>(_=s(_),_.startsWith("var(")?!0:_.includes(" ")&&!/(['"])([^"']+)\1/g.test(_)||/^\d/g.test(_)?!1:(N++,!0)))?N>0:!1}let W=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function L(P){return W.has(P)}let Y=new Set(["xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large"]);function X(P){return Y.has(P)}let I=new Set(["larger","smaller"]);function T(P){return I.has(P)}}(ir);var Un={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"backgroundSize",{enumerable:!0,get:function(){return n}});const e=ir,r=Pt;function n(i){let a=["cover","contain"];return(0,r.splitAtTopLevelOnly)(i,",").every(o=>{let c=(0,r.splitAtTopLevelOnly)(o,"_").filter(Boolean);return c.length===1&&a.includes(c[0])?!0:c.length!==1&&c.length!==2?!1:c.every(s=>(0,e.length)(s)||(0,e.percentage)(s)||s==="auto")})}})(Un),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(C,z){for(var W in z)Object.defineProperty(C,W,{enumerable:!0,get:z[W]})}e(t,{updateAllClasses:function(){return l},asValue:function(){return m},parseColorFormat:function(){return h},asColor:function(){return $},asLookupValue:function(){return D},typeMap:function(){return R},coerceValue:function(){return Q},getMatchingTypes:function(){return U}});const r=s(Gn),n=rr,i=ir,a=s(Jt),o=Un,c=Dt;function s(C){return C&&C.__esModule?C:{default:C}}function l(C,z){C.walkClasses(W=>{W.value=z(W.value),W.raws&&W.raws.value&&(W.raws.value=(0,r.default)(W.raws.value))})}function d(C,z){if(!b(C))return;let W=C.slice(1,-1);if(z(W))return(0,i.normalize)(W)}function f(C,z={},W){let L=z[C];if(L!==void 0)return(0,a.default)(L);if(b(C)){let Y=d(C,W);return Y===void 0?void 0:(0,a.default)(Y)}}function m(C,z={},{validate:W=()=>!0}={}){var L;let Y=(L=z.values)===null||L===void 0?void 0:L[C];return Y!==void 0?Y:z.supportsNegativeValues&&C.startsWith("-")?f(C.slice(1),z.values,W):d(C,W)}function b(C){return C.startsWith("[")&&C.endsWith("]")}function x(C){let z=C.lastIndexOf("/"),W=C.lastIndexOf("[",z),L=C.indexOf("]",z);return C[z-1]==="]"||C[z+1]==="["||W!==-1&&L!==-1&&W<z&&z<L&&(z=C.lastIndexOf("/",W)),z===-1||z===C.length-1?[C,void 0]:b(C)&&!C.includes("]/[")?[C,void 0]:[C.slice(0,z),C.slice(z+1)]}function h(C){if(typeof C=="string"&&C.includes("<alpha-value>")){let z=C;return({opacityValue:W=1})=>z.replace(/<alpha-value>/g,W)}return C}function y(C){return(0,i.normalize)(C.slice(1,-1))}function $(C,z={},{tailwindConfig:W={}}={}){var L;if(((L=z.values)===null||L===void 0?void 0:L[C])!==void 0){var Y;return h((Y=z.values)===null||Y===void 0?void 0:Y[C])}let[X,I]=x(C);if(I!==void 0){var T,P,N,ne;let _=(ne=(T=z.values)===null||T===void 0?void 0:T[X])!==null&&ne!==void 0?ne:b(X)?X.slice(1,-1):void 0;return _===void 0?void 0:(_=h(_),b(I)?(0,n.withAlphaValue)(_,y(I)):((P=W.theme)===null||P===void 0||(N=P.opacity)===null||N===void 0?void 0:N[I])===void 0?void 0:(0,n.withAlphaValue)(_,W.theme.opacity[I]))}return m(C,z,{validate:i.color})}function D(C,z={}){var W;return(W=z.values)===null||W===void 0?void 0:W[C]}function S(C){return(z,W)=>m(z,W,{validate:C})}let R={any:m,color:$,url:S(i.url),image:S(i.image),length:S(i.length),percentage:S(i.percentage),position:S(i.position),lookup:D,"generic-name":S(i.genericName),"family-name":S(i.familyName),number:S(i.number),"line-width":S(i.lineWidth),"absolute-size":S(i.absoluteSize),"relative-size":S(i.relativeSize),shadow:S(i.shadow),size:S(o.backgroundSize)},E=Object.keys(R);function j(C,z){let W=C.indexOf(z);return W===-1?[void 0,C]:[C.slice(0,W),C.slice(W+1)]}function Q(C,z,W,L){if(W.values&&z in W.values)for(let{type:X}of C!=null?C:[]){let I=R[X](z,W,{tailwindConfig:L});if(I!==void 0)return[I,X,null]}if(b(z)){let X=z.slice(1,-1),[I,T]=j(X,":");if(!/^[\w-_]+$/g.test(I))T=X;else if(I!==void 0&&!E.includes(I))return[];if(T.length>0&&E.includes(I))return[m(`[${T}]`,W),I,null]}let Y=U(C,z,W,L);for(let X of Y)return X;return[]}function*U(C,z,W,L){let Y=(0,c.flagEnabled)(L,"generalizedModifiers"),[X,I]=x(z);if(Y&&W.modifiers!=null&&(W.modifiers==="any"||typeof W.modifiers=="object"&&(I&&b(I)||I in W.modifiers))||(X=z,I=void 0),I!==void 0&&X===""&&(X="DEFAULT"),I!==void 0&&typeof W.modifiers=="object"){var P,N;let ne=(N=(P=W.modifiers)===null||P===void 0?void 0:P[I])!==null&&N!==void 0?N:null;ne!==null?I=ne:b(I)&&(I=y(I))}for(let{type:ne}of C!=null?C:[]){let _=R[ne](X,W,{tailwindConfig:L});_!==void 0&&(yield[_,ne,I!=null?I:null])}}}(jn);var Zn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r){return typeof r=="function"?r({}):r}})(Zn),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return W}});const e=b(Jt),r=b(On),n=b(zn),i=b(er),a=Fn,o=An,c=Rn,s=b(Hn),l=Nn,d=jn,f=rr,m=b(Zn);function b(L){return L&&L.__esModule?L:{default:L}}function x(L){return typeof L=="function"}function h(L,...Y){let X=Y.pop();for(let I of Y)for(let T in I){let P=X(L[T],I[T]);P===void 0?(0,s.default)(L[T])&&(0,s.default)(I[T])?L[T]=h({},L[T],I[T],X):L[T]=I[T]:L[T]=P}return L}const y={colors:i.default,negative(L){return Object.keys(L).filter(Y=>L[Y]!=="0").reduce((Y,X)=>{let I=(0,e.default)(L[X]);return I!==void 0&&(Y[`-${X}`]=I),Y},{})},breakpoints(L){return Object.keys(L).filter(Y=>typeof L[Y]=="string").reduce((Y,X)=>({...Y,[`screen-${X}`]:L[X]}),{})}};function $(L,...Y){return x(L)?L(...Y):L}function D(L){return L.reduce((Y,{extend:X})=>h(Y,X,(I,T)=>I===void 0?[T]:Array.isArray(I)?[T,...I]:[T,I]),{})}function S(L){return{...L.reduce((Y,X)=>(0,a.defaults)(Y,X),{}),extend:D(L)}}function R(L,Y){if(Array.isArray(L)&&(0,s.default)(L[0]))return L.concat(Y);if(Array.isArray(Y)&&(0,s.default)(Y[0])&&(0,s.default)(L))return[L,...Y];if(Array.isArray(Y))return Y}function E({extend:L,...Y}){return h(Y,L,(X,I)=>!x(X)&&!I.some(x)?h({},X,...I,R):(T,P)=>h({},...[X,...I].map(N=>$(N,T,P)),R))}function*j(L){let Y=(0,o.toPath)(L);if(Y.length===0||(yield Y,Array.isArray(L)))return;let X=/^(.*?)\s*\/\s*([^/]+)$/,I=L.match(X);if(I!==null){let[,T,P]=I,N=(0,o.toPath)(T);N.alpha=P,yield N}}function Q(L){const Y=(X,I)=>{for(const T of j(X)){let P=0,N=L;for(;N!=null&&P<T.length;)N=N[T[P++]],N=x(N)&&(T.alpha===void 0||P<=T.length-1)?N(Y,y):N;if(N!==void 0){if(T.alpha!==void 0){let ne=(0,d.parseColorFormat)(N);return(0,f.withAlphaValue)(ne,T.alpha,(0,m.default)(ne))}return(0,s.default)(N)?(0,l.cloneDeep)(N):N}}return I};return Object.assign(Y,{theme:Y,...y}),Object.keys(L).reduce((X,I)=>(X[I]=x(L[I])?L[I](Y,y):L[I],X),{})}function U(L){let Y=[];return L.forEach(X=>{Y=[...Y,X];var I;const T=(I=X==null?void 0:X.plugins)!==null&&I!==void 0?I:[];T.length!==0&&T.forEach(P=>{P.__isOptionsFunction&&(P=P());var N;Y=[...Y,...U([(N=P==null?void 0:P.config)!==null&&N!==void 0?N:{}])]})}),Y}function C(L){return[...L].reduceRight((X,I)=>x(I)?I({corePlugins:X}):(0,n.default)(I,X),r.default)}function z(L){return[...L].reduceRight((X,I)=>[...X,...I],[])}function W(L){let Y=[...U(L),{prefix:"",important:!1,separator:":"}];var X,I;return(0,c.normalizeConfig)((0,a.defaults)({theme:Q(E(S(Y.map(T=>(X=T==null?void 0:T.theme)!==null&&X!==void 0?X:{})))),corePlugins:C(Y.map(T=>T.corePlugins)),plugins:z(L.map(T=>(I=T==null?void 0:T.plugins)!==null&&I!==void 0?I:[]))},...Y))}}(Pn);var Yn={},sa={content:[],presets:[],darkMode:"media",theme:{accentColor:({theme:t})=>({...t("colors"),auto:"auto"}),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:t})=>t("blur"),backdropBrightness:({theme:t})=>t("brightness"),backdropContrast:({theme:t})=>t("contrast"),backdropGrayscale:({theme:t})=>t("grayscale"),backdropHueRotate:({theme:t})=>t("hueRotate"),backdropInvert:({theme:t})=>t("invert"),backdropOpacity:({theme:t})=>t("opacity"),backdropSaturate:({theme:t})=>t("saturate"),backdropSepia:({theme:t})=>t("sepia"),backgroundColor:({theme:t})=>t("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:t})=>t("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:t})=>({...t("colors"),DEFAULT:t("colors.gray.200","currentColor")}),borderOpacity:({theme:t})=>t("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:t})=>({...t("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:t})=>t("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:({theme:t})=>t("colors"),colors:({colors:t})=>({inherit:t.inherit,current:t.current,transparent:t.transparent,black:t.black,white:t.white,slate:t.slate,gray:t.gray,zinc:t.zinc,neutral:t.neutral,stone:t.stone,red:t.red,orange:t.orange,amber:t.amber,yellow:t.yellow,lime:t.lime,green:t.green,emerald:t.emerald,teal:t.teal,cyan:t.cyan,sky:t.sky,blue:t.blue,indigo:t.indigo,violet:t.violet,purple:t.purple,fuchsia:t.fuchsia,pink:t.pink,rose:t.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:t})=>t("borderColor"),divideOpacity:({theme:t})=>t("borderOpacity"),divideWidth:({theme:t})=>t("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:t})=>({none:"none",...t("colors")}),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:t})=>t("spacing"),gradientColorStops:({theme:t})=>t("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},height:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:t})=>({auto:"auto",...t("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:({theme:t})=>({...t("spacing"),none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:t,breakpoints:e})=>({...t("spacing"),none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e(t("screens"))}),minHeight:({theme:t})=>({...t("spacing"),full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),minWidth:({theme:t})=>({...t("spacing"),full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},outlineColor:({theme:t})=>t("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:({theme:t})=>t("spacing"),placeholderColor:({theme:t})=>t("colors"),placeholderOpacity:({theme:t})=>t("opacity"),ringColor:({theme:t})=>({DEFAULT:t("colors.blue.500","#3b82f6"),...t("colors")}),ringOffsetColor:({theme:t})=>t("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:t})=>({DEFAULT:"0.5",...t("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:t})=>({...t("spacing")}),scrollPadding:({theme:t})=>t("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:t})=>({...t("spacing")}),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:t})=>({none:"none",...t("colors")}),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{},textColor:({theme:t})=>t("colors"),textDecorationColor:({theme:t})=>t("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:t})=>({...t("spacing")}),textOpacity:({theme:t})=>t("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:t})=>({...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),size:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),width:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},plugins:[]};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});const e=n(sa),r=Dt;function n(a){return a&&a.__esModule?a:{default:a}}function i(a){var o;const c=((o=a==null?void 0:a.presets)!==null&&o!==void 0?o:[e.default]).slice().reverse().flatMap(d=>i(d instanceof Function?d():d)),s={respectDefaultRingColorOpacity:{theme:{ringColor:({theme:d})=>({DEFAULT:"#3b82f67f",...d("colors")})}},disableColorOpacityUtilitiesByDefault:{corePlugins:{backgroundOpacity:!1,borderOpacity:!1,divideOpacity:!1,placeholderOpacity:!1,ringOpacity:!1,textOpacity:!1}}},l=Object.keys(s).filter(d=>(0,r.flagEnabled)(a,d)).map(d=>s[d]);return[a,...l,...c]}})(Yn),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});const e=n(Pn),r=n(Yn);function n(a){return a&&a.__esModule?a:{default:a}}function i(...a){let[,...o]=(0,r.default)(a[0]);return(0,e.default)([...a,...o])}}(Dn);let sr=Dn;var aa=(sr.__esModule?sr:{default:sr}).default;const oa=yt(aa);let ar=er;var or=(ar.__esModule?ar:{default:ar}).default;const Xn=yt(or),la=Xt({__proto__:null,default:Xn},[or]);var Vn={},Qn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});function e(n,i){return{handler:n,config:i}}e.withOptions=function(n,i=()=>({})){const a=function(o){return{__options:o,handler:n(o),config:i(o)}};return a.__isOptionsFunction=!0,a.__pluginFunction=n,a.__configFunction=i,a};const r=e})(Qn),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});const e=r(Qn);function r(i){return i&&i.__esModule?i:{default:i}}const n=e.default}(Vn);let lr=Vn;var Kn=(lr.__esModule?lr:{default:lr}).default,Ot={exports:{}};Ot.exports,function(t,e){var r=200,n="__lodash_hash_undefined__",i=800,a=16,o=9007199254740991,c="[object Arguments]",s="[object Array]",l="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",m="[object Error]",b="[object Function]",x="[object GeneratorFunction]",h="[object Map]",y="[object Number]",$="[object Null]",D="[object Object]",S="[object Proxy]",R="[object RegExp]",E="[object Set]",j="[object String]",Q="[object Undefined]",U="[object WeakMap]",C="[object ArrayBuffer]",z="[object DataView]",W="[object Float32Array]",L="[object Float64Array]",Y="[object Int8Array]",X="[object Int16Array]",I="[object Int32Array]",T="[object Uint8Array]",P="[object Uint8ClampedArray]",N="[object Uint16Array]",ne="[object Uint32Array]",_=/[\\^$.*+?()[\]{}|]/g,Z=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,B={};B[W]=B[L]=B[Y]=B[X]=B[I]=B[T]=B[P]=B[N]=B[ne]=!0,B[c]=B[s]=B[C]=B[d]=B[z]=B[f]=B[m]=B[b]=B[h]=B[y]=B[D]=B[R]=B[E]=B[j]=B[U]=!1;var w=typeof ot=="object"&&ot&&ot.Object===Object&&ot,q=typeof self=="object"&&self&&self.Object===Object&&self,V=w||q||Function("return this")(),M=e&&!e.nodeType&&e,re=M&&!0&&t&&!t.nodeType&&t,ce=re&&re.exports===M,le=ce&&w.process,ie=function(){try{var p=re&&re.require&&re.require("util").types;return p||le&&le.binding&&le.binding("util")}catch{}}(),he=ie&&ie.isTypedArray;function Se(p,v,k){switch(k.length){case 0:return p.call(v);case 1:return p.call(v,k[0]);case 2:return p.call(v,k[0],k[1]);case 3:return p.call(v,k[0],k[1],k[2])}return p.apply(v,k)}function oe(p,v){for(var k=-1,te=Array(p);++k<p;)te[k]=v(k);return te}function ye(p){return function(v){return p(v)}}function Ae(p,v){return p==null?void 0:p[v]}function Be(p,v){return function(k){return p(v(k))}}var $e=Array.prototype,Te=Function.prototype,Me=Object.prototype,Ee=V["__core-js_shared__"],Le=Te.toString,De=Me.hasOwnProperty,et=function(){var p=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}(),Ke=Me.toString,lt=Le.call(Object),Tt=RegExp("^"+Le.call(De).replace(_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ze=ce?V.Buffer:void 0,pt=V.Symbol,jt=V.Uint8Array,Gt=Ze?Ze.allocUnsafe:void 0,Es=Be(Object.getPrototypeOf,Object),Ms=Object.create,F8=Me.propertyIsEnumerable,A8=$e.splice,ct=pt?pt.toStringTag:void 0,qt=function(){try{var p=Cn(Object,"defineProperty");return p({},"",{}),p}catch{}}(),R8=Ze?Ze.isBuffer:void 0,Ls=Math.max,H8=Date.now,Ds=Cn(V,"Map"),kt=Cn(Object,"create"),N8=function(){function p(){}return function(v){if(!dt(v))return{};if(Ms)return Ms(v);p.prototype=v;var k=new p;return p.prototype=void 0,k}}();function ut(p){var v=-1,k=p==null?0:p.length;for(this.clear();++v<k;){var te=p[v];this.set(te[0],te[1])}}function j8(){this.__data__=kt?kt(null):{},this.size=0}function G8(p){var v=this.has(p)&&delete this.__data__[p];return this.size-=v?1:0,v}function q8(p){var v=this.__data__;if(kt){var k=v[p];return k===n?void 0:k}return De.call(v,p)?v[p]:void 0}function W8(p){var v=this.__data__;return kt?v[p]!==void 0:De.call(v,p)}function U8(p,v){var k=this.__data__;return this.size+=this.has(p)?0:1,k[p]=kt&&v===void 0?n:v,this}ut.prototype.clear=j8,ut.prototype.delete=G8,ut.prototype.get=q8,ut.prototype.has=W8,ut.prototype.set=U8;function tt(p){var v=-1,k=p==null?0:p.length;for(this.clear();++v<k;){var te=p[v];this.set(te[0],te[1])}}function Z8(){this.__data__=[],this.size=0}function Y8(p){var v=this.__data__,k=Wt(v,p);if(k<0)return!1;var te=v.length-1;return k==te?v.pop():A8.call(v,k,1),--this.size,!0}function X8(p){var v=this.__data__,k=Wt(v,p);return k<0?void 0:v[k][1]}function V8(p){return Wt(this.__data__,p)>-1}function Q8(p,v){var k=this.__data__,te=Wt(k,p);return te<0?(++this.size,k.push([p,v])):k[te][1]=v,this}tt.prototype.clear=Z8,tt.prototype.delete=Y8,tt.prototype.get=X8,tt.prototype.has=V8,tt.prototype.set=Q8;function mt(p){var v=-1,k=p==null?0:p.length;for(this.clear();++v<k;){var te=p[v];this.set(te[0],te[1])}}function K8(){this.size=0,this.__data__={hash:new ut,map:new(Ds||tt),string:new ut}}function J8(p){var v=Zt(this,p).delete(p);return this.size-=v?1:0,v}function e7(p){return Zt(this,p).get(p)}function t7(p){return Zt(this,p).has(p)}function r7(p,v){var k=Zt(this,p),te=k.size;return k.set(p,v),this.size+=k.size==te?0:1,this}mt.prototype.clear=K8,mt.prototype.delete=J8,mt.prototype.get=e7,mt.prototype.has=t7,mt.prototype.set=r7;function gt(p){var v=this.__data__=new tt(p);this.size=v.size}function n7(){this.__data__=new tt,this.size=0}function i7(p){var v=this.__data__,k=v.delete(p);return this.size=v.size,k}function s7(p){return this.__data__.get(p)}function a7(p){return this.__data__.has(p)}function o7(p,v){var k=this.__data__;if(k instanceof tt){var te=k.__data__;if(!Ds||te.length<r-1)return te.push([p,v]),this.size=++k.size,this;k=this.__data__=new mt(te)}return k.set(p,v),this.size=k.size,this}gt.prototype.clear=n7,gt.prototype.delete=i7,gt.prototype.get=s7,gt.prototype.has=a7,gt.prototype.set=o7;function l7(p,v){var k=wn(p),te=!k&&xn(p),pe=!k&&!te&&Is(p),ve=!k&&!te&&!pe&&As(p),xe=k||te||pe||ve,fe=xe?oe(p.length,String):[],we=fe.length;for(var qe in p)(v||De.call(p,qe))&&!(xe&&(qe=="length"||pe&&(qe=="offset"||qe=="parent")||ve&&(qe=="buffer"||qe=="byteLength"||qe=="byteOffset")||zs(qe,we)))&&fe.push(qe);return fe}function _n(p,v,k){(k!==void 0&&!Yt(p[v],k)||k===void 0&&!(v in p))&&yn(p,v,k)}function c7(p,v,k){var te=p[v];(!(De.call(p,v)&&Yt(te,k))||k===void 0&&!(v in p))&&yn(p,v,k)}function Wt(p,v){for(var k=p.length;k--;)if(Yt(p[k][0],v))return k;return-1}function yn(p,v,k){v=="__proto__"&&qt?qt(p,v,{configurable:!0,enumerable:!0,value:k,writable:!0}):p[v]=k}var u7=w7();function Ut(p){return p==null?p===void 0?Q:$:ct&&ct in Object(p)?S7(p):L7(p)}function Ps(p){return $t(p)&&Ut(p)==c}function d7(p){if(!dt(p)||E7(p))return!1;var v=Tn(p)?Tt:Z;return v.test(z7(p))}function h7(p){return $t(p)&&Fs(p.length)&&!!B[Ut(p)]}function f7(p){if(!dt(p))return M7(p);var v=Bs(p),k=[];for(var te in p)te=="constructor"&&(v||!De.call(p,te))||k.push(te);return k}function Os(p,v,k,te,pe){p!==v&&u7(v,function(ve,xe){if(pe||(pe=new gt),dt(ve))p7(p,v,xe,k,Os,te,pe);else{var fe=te?te(bn(p,xe),ve,xe+"",p,v,pe):void 0;fe===void 0&&(fe=ve),_n(p,xe,fe)}},Rs)}function p7(p,v,k,te,pe,ve,xe){var fe=bn(p,k),we=bn(v,k),qe=xe.get(we);if(qe){_n(p,k,qe);return}var Re=ve?ve(fe,we,k+"",p,v,xe):void 0,Et=Re===void 0;if(Et){var kn=wn(we),$n=!kn&&Is(we),Ns=!kn&&!$n&&As(we);Re=we,kn||$n||Ns?wn(fe)?Re=fe:B7(fe)?Re=C7(fe):$n?(Et=!1,Re=v7(we,!0)):Ns?(Et=!1,Re=y7(we,!0)):Re=[]:I7(we)||xn(we)?(Re=fe,xn(fe)?Re=F7(fe):(!dt(fe)||Tn(fe))&&(Re=T7(we))):Et=!1}Et&&(xe.set(we,Re),pe(Re,we,te,ve,xe),xe.delete(we)),_n(p,k,Re)}function m7(p,v){return P7(D7(p,v,Hs),p+"")}var g7=qt?function(p,v){return qt(p,"toString",{configurable:!0,enumerable:!1,value:R7(v),writable:!0})}:Hs;function v7(p,v){if(v)return p.slice();var k=p.length,te=Gt?Gt(k):new p.constructor(k);return p.copy(te),te}function _7(p){var v=new p.constructor(p.byteLength);return new jt(v).set(new jt(p)),v}function y7(p,v){var k=v?_7(p.buffer):p.buffer;return new p.constructor(k,p.byteOffset,p.length)}function C7(p,v){var k=-1,te=p.length;for(v||(v=Array(te));++k<te;)v[k]=p[k];return v}function b7(p,v,k,te){var pe=!k;k||(k={});for(var ve=-1,xe=v.length;++ve<xe;){var fe=v[ve],we=te?te(k[fe],p[fe],fe,k,p):void 0;we===void 0&&(we=p[fe]),pe?yn(k,fe,we):c7(k,fe,we)}return k}function x7(p){return m7(function(v,k){var te=-1,pe=k.length,ve=pe>1?k[pe-1]:void 0,xe=pe>2?k[2]:void 0;for(ve=p.length>3&&typeof ve=="function"?(pe--,ve):void 0,xe&&k7(k[0],k[1],xe)&&(ve=pe<3?void 0:ve,pe=1),v=Object(v);++te<pe;){var fe=k[te];fe&&p(v,fe,te,ve)}return v})}function w7(p){return function(v,k,te){for(var pe=-1,ve=Object(v),xe=te(v),fe=xe.length;fe--;){var we=xe[p?fe:++pe];if(k(ve[we],we,ve)===!1)break}return v}}function Zt(p,v){var k=p.__data__;return $7(v)?k[typeof v=="string"?"string":"hash"]:k.map}function Cn(p,v){var k=Ae(p,v);return d7(k)?k:void 0}function S7(p){var v=De.call(p,ct),k=p[ct];try{p[ct]=void 0;var te=!0}catch{}var pe=Ke.call(p);return te&&(v?p[ct]=k:delete p[ct]),pe}function T7(p){return typeof p.constructor=="function"&&!Bs(p)?N8(Es(p)):{}}function zs(p,v){var k=typeof p;return v=v==null?o:v,!!v&&(k=="number"||k!="symbol"&&A.test(p))&&p>-1&&p%1==0&&p<v}function k7(p,v,k){if(!dt(k))return!1;var te=typeof v;return(te=="number"?Sn(k)&&zs(v,k.length):te=="string"&&v in k)?Yt(k[v],p):!1}function $7(p){var v=typeof p;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?p!=="__proto__":p===null}function E7(p){return!!et&&et in p}function Bs(p){var v=p&&p.constructor,k=typeof v=="function"&&v.prototype||Me;return p===k}function M7(p){var v=[];if(p!=null)for(var k in Object(p))v.push(k);return v}function L7(p){return Ke.call(p)}function D7(p,v,k){return v=Ls(v===void 0?p.length-1:v,0),function(){for(var te=arguments,pe=-1,ve=Ls(te.length-v,0),xe=Array(ve);++pe<ve;)xe[pe]=te[v+pe];pe=-1;for(var fe=Array(v+1);++pe<v;)fe[pe]=te[pe];return fe[v]=k(xe),Se(p,this,fe)}}function bn(p,v){if(!(v==="constructor"&&typeof p[v]=="function")&&v!="__proto__")return p[v]}var P7=O7(g7);function O7(p){var v=0,k=0;return function(){var te=H8(),pe=a-(te-k);if(k=te,pe>0){if(++v>=i)return arguments[0]}else v=0;return p.apply(void 0,arguments)}}function z7(p){if(p!=null){try{return Le.call(p)}catch{}try{return p+""}catch{}}return""}function Yt(p,v){return p===v||p!==p&&v!==v}var xn=Ps(function(){return arguments}())?Ps:function(p){return $t(p)&&De.call(p,"callee")&&!F8.call(p,"callee")},wn=Array.isArray;function Sn(p){return p!=null&&Fs(p.length)&&!Tn(p)}function B7(p){return $t(p)&&Sn(p)}var Is=R8||H7;function Tn(p){if(!dt(p))return!1;var v=Ut(p);return v==b||v==x||v==l||v==S}function Fs(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=o}function dt(p){var v=typeof p;return p!=null&&(v=="object"||v=="function")}function $t(p){return p!=null&&typeof p=="object"}function I7(p){if(!$t(p)||Ut(p)!=D)return!1;var v=Es(p);if(v===null)return!0;var k=De.call(v,"constructor")&&v.constructor;return typeof k=="function"&&k instanceof k&&Le.call(k)==lt}var As=he?ye(he):h7;function F7(p){return b7(p,Rs(p))}function Rs(p){return Sn(p)?l7(p,!0):f7(p)}var A7=x7(function(p,v,k){Os(p,v,k)});function R7(p){return function(){return p}}function Hs(p){return p}function H7(){return!1}t.exports=A7}(Ot,Ot.exports);var ca=Ot.exports;function ua(){if(!arguments.length)return[];var t=arguments[0];return da(t)?t:[t]}var da=Array.isArray,ha=ua;const g=or,ae=t=>t.toFixed(7).replace(/(\.[0-9]+?)0+$/,"$1").replace(/\.0$/,""),ze=t=>`${ae(t/16)}rem`,u=(t,e)=>`${ae(t/e)}em`,Xe=t=>{t=t.replace("#",""),t=t.length===3?t.replace(/./g,"$&$&"):t;const e=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),n=parseInt(t.substring(4,6),16);return`${e} ${r} ${n}`};let cr={sm:{css:[{fontSize:ze(14),lineHeight:ae(24/14),p:{marginTop:u(16,14),marginBottom:u(16,14)},'[class~="lead"]':{fontSize:u(18,14),lineHeight:ae(28/18),marginTop:u(16,18),marginBottom:u(16,18)},blockquote:{marginTop:u(24,18),marginBottom:u(24,18),paddingInlineStart:u(20,18)},h1:{fontSize:u(30,14),marginTop:"0",marginBottom:u(24,30),lineHeight:ae(36/30)},h2:{fontSize:u(20,14),marginTop:u(32,20),marginBottom:u(16,20),lineHeight:ae(28/20)},h3:{fontSize:u(18,14),marginTop:u(28,18),marginBottom:u(8,18),lineHeight:ae(28/18)},h4:{marginTop:u(20,14),marginBottom:u(8,14),lineHeight:ae(20/14)},img:{marginTop:u(24,14),marginBottom:u(24,14)},picture:{marginTop:u(24,14),marginBottom:u(24,14)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:u(24,14),marginBottom:u(24,14)},kbd:{fontSize:u(12,14),borderRadius:ze(5),paddingTop:u(2,14),paddingInlineEnd:u(5,14),paddingBottom:u(2,14),paddingInlineStart:u(5,14)},code:{fontSize:u(12,14)},"h2 code":{fontSize:u(18,20)},"h3 code":{fontSize:u(16,18)},pre:{fontSize:u(12,14),lineHeight:ae(20/12),marginTop:u(20,12),marginBottom:u(20,12),borderRadius:ze(4),paddingTop:u(8,12),paddingInlineEnd:u(12,12),paddingBottom:u(8,12),paddingInlineStart:u(12,12)},ol:{marginTop:u(16,14),marginBottom:u(16,14),paddingInlineStart:u(22,14)},ul:{marginTop:u(16,14),marginBottom:u(16,14),paddingInlineStart:u(22,14)},li:{marginTop:u(4,14),marginBottom:u(4,14)},"ol > li":{paddingInlineStart:u(6,14)},"ul > li":{paddingInlineStart:u(6,14)},"> ul > li p":{marginTop:u(8,14),marginBottom:u(8,14)},"> ul > li > p:first-child":{marginTop:u(16,14)},"> ul > li > p:last-child":{marginBottom:u(16,14)},"> ol > li > p:first-child":{marginTop:u(16,14)},"> ol > li > p:last-child":{marginBottom:u(16,14)},"ul ul, ul ol, ol ul, ol ol":{marginTop:u(8,14),marginBottom:u(8,14)},dl:{marginTop:u(16,14),marginBottom:u(16,14)},dt:{marginTop:u(16,14)},dd:{marginTop:u(4,14),paddingInlineStart:u(22,14)},hr:{marginTop:u(40,14),marginBottom:u(40,14)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:u(12,14),lineHeight:ae(18/12)},"thead th":{paddingInlineEnd:u(12,12),paddingBottom:u(8,12),paddingInlineStart:u(12,12)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:u(8,12),paddingInlineEnd:u(12,12),paddingBottom:u(8,12),paddingInlineStart:u(12,12)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:u(24,14),marginBottom:u(24,14)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:u(12,14),lineHeight:ae(16/12),marginTop:u(8,12)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},base:{css:[{fontSize:ze(16),lineHeight:ae(28/16),p:{marginTop:u(20,16),marginBottom:u(20,16)},'[class~="lead"]':{fontSize:u(20,16),lineHeight:ae(32/20),marginTop:u(24,20),marginBottom:u(24,20)},blockquote:{marginTop:u(32,20),marginBottom:u(32,20),paddingInlineStart:u(20,20)},h1:{fontSize:u(36,16),marginTop:"0",marginBottom:u(32,36),lineHeight:ae(40/36)},h2:{fontSize:u(24,16),marginTop:u(48,24),marginBottom:u(24,24),lineHeight:ae(32/24)},h3:{fontSize:u(20,16),marginTop:u(32,20),marginBottom:u(12,20),lineHeight:ae(32/20)},h4:{marginTop:u(24,16),marginBottom:u(8,16),lineHeight:ae(24/16)},img:{marginTop:u(32,16),marginBottom:u(32,16)},picture:{marginTop:u(32,16),marginBottom:u(32,16)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:u(32,16),marginBottom:u(32,16)},kbd:{fontSize:u(14,16),borderRadius:ze(5),paddingTop:u(3,16),paddingInlineEnd:u(6,16),paddingBottom:u(3,16),paddingInlineStart:u(6,16)},code:{fontSize:u(14,16)},"h2 code":{fontSize:u(21,24)},"h3 code":{fontSize:u(18,20)},pre:{fontSize:u(14,16),lineHeight:ae(24/14),marginTop:u(24,14),marginBottom:u(24,14),borderRadius:ze(6),paddingTop:u(12,14),paddingInlineEnd:u(16,14),paddingBottom:u(12,14),paddingInlineStart:u(16,14)},ol:{marginTop:u(20,16),marginBottom:u(20,16),paddingInlineStart:u(26,16)},ul:{marginTop:u(20,16),marginBottom:u(20,16),paddingInlineStart:u(26,16)},li:{marginTop:u(8,16),marginBottom:u(8,16)},"ol > li":{paddingInlineStart:u(6,16)},"ul > li":{paddingInlineStart:u(6,16)},"> ul > li p":{marginTop:u(12,16),marginBottom:u(12,16)},"> ul > li > p:first-child":{marginTop:u(20,16)},"> ul > li > p:last-child":{marginBottom:u(20,16)},"> ol > li > p:first-child":{marginTop:u(20,16)},"> ol > li > p:last-child":{marginBottom:u(20,16)},"ul ul, ul ol, ol ul, ol ol":{marginTop:u(12,16),marginBottom:u(12,16)},dl:{marginTop:u(20,16),marginBottom:u(20,16)},dt:{marginTop:u(20,16)},dd:{marginTop:u(8,16),paddingInlineStart:u(26,16)},hr:{marginTop:u(48,16),marginBottom:u(48,16)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:u(14,16),lineHeight:ae(24/14)},"thead th":{paddingInlineEnd:u(8,14),paddingBottom:u(8,14),paddingInlineStart:u(8,14)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:u(8,14),paddingInlineEnd:u(8,14),paddingBottom:u(8,14),paddingInlineStart:u(8,14)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:u(32,16),marginBottom:u(32,16)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:u(14,16),lineHeight:ae(20/14),marginTop:u(12,14)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},lg:{css:[{fontSize:ze(18),lineHeight:ae(32/18),p:{marginTop:u(24,18),marginBottom:u(24,18)},'[class~="lead"]':{fontSize:u(22,18),lineHeight:ae(32/22),marginTop:u(24,22),marginBottom:u(24,22)},blockquote:{marginTop:u(40,24),marginBottom:u(40,24),paddingInlineStart:u(24,24)},h1:{fontSize:u(48,18),marginTop:"0",marginBottom:u(40,48),lineHeight:ae(48/48)},h2:{fontSize:u(30,18),marginTop:u(56,30),marginBottom:u(32,30),lineHeight:ae(40/30)},h3:{fontSize:u(24,18),marginTop:u(40,24),marginBottom:u(16,24),lineHeight:ae(36/24)},h4:{marginTop:u(32,18),marginBottom:u(8,18),lineHeight:ae(28/18)},img:{marginTop:u(32,18),marginBottom:u(32,18)},picture:{marginTop:u(32,18),marginBottom:u(32,18)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:u(32,18),marginBottom:u(32,18)},kbd:{fontSize:u(16,18),borderRadius:ze(5),paddingTop:u(4,18),paddingInlineEnd:u(8,18),paddingBottom:u(4,18),paddingInlineStart:u(8,18)},code:{fontSize:u(16,18)},"h2 code":{fontSize:u(26,30)},"h3 code":{fontSize:u(21,24)},pre:{fontSize:u(16,18),lineHeight:ae(28/16),marginTop:u(32,16),marginBottom:u(32,16),borderRadius:ze(6),paddingTop:u(16,16),paddingInlineEnd:u(24,16),paddingBottom:u(16,16),paddingInlineStart:u(24,16)},ol:{marginTop:u(24,18),marginBottom:u(24,18),paddingInlineStart:u(28,18)},ul:{marginTop:u(24,18),marginBottom:u(24,18),paddingInlineStart:u(28,18)},li:{marginTop:u(12,18),marginBottom:u(12,18)},"ol > li":{paddingInlineStart:u(8,18)},"ul > li":{paddingInlineStart:u(8,18)},"> ul > li p":{marginTop:u(16,18),marginBottom:u(16,18)},"> ul > li > p:first-child":{marginTop:u(24,18)},"> ul > li > p:last-child":{marginBottom:u(24,18)},"> ol > li > p:first-child":{marginTop:u(24,18)},"> ol > li > p:last-child":{marginBottom:u(24,18)},"ul ul, ul ol, ol ul, ol ol":{marginTop:u(16,18),marginBottom:u(16,18)},dl:{marginTop:u(24,18),marginBottom:u(24,18)},dt:{marginTop:u(24,18)},dd:{marginTop:u(12,18),paddingInlineStart:u(28,18)},hr:{marginTop:u(56,18),marginBottom:u(56,18)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:u(16,18),lineHeight:ae(24/16)},"thead th":{paddingInlineEnd:u(12,16),paddingBottom:u(12,16),paddingInlineStart:u(12,16)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:u(12,16),paddingInlineEnd:u(12,16),paddingBottom:u(12,16),paddingInlineStart:u(12,16)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:u(32,18),marginBottom:u(32,18)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:u(16,18),lineHeight:ae(24/16),marginTop:u(16,16)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},xl:{css:[{fontSize:ze(20),lineHeight:ae(36/20),p:{marginTop:u(24,20),marginBottom:u(24,20)},'[class~="lead"]':{fontSize:u(24,20),lineHeight:ae(36/24),marginTop:u(24,24),marginBottom:u(24,24)},blockquote:{marginTop:u(48,30),marginBottom:u(48,30),paddingInlineStart:u(32,30)},h1:{fontSize:u(56,20),marginTop:"0",marginBottom:u(48,56),lineHeight:ae(56/56)},h2:{fontSize:u(36,20),marginTop:u(56,36),marginBottom:u(32,36),lineHeight:ae(40/36)},h3:{fontSize:u(30,20),marginTop:u(48,30),marginBottom:u(20,30),lineHeight:ae(40/30)},h4:{marginTop:u(36,20),marginBottom:u(12,20),lineHeight:ae(32/20)},img:{marginTop:u(40,20),marginBottom:u(40,20)},picture:{marginTop:u(40,20),marginBottom:u(40,20)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:u(40,20),marginBottom:u(40,20)},kbd:{fontSize:u(18,20),borderRadius:ze(5),paddingTop:u(5,20),paddingInlineEnd:u(8,20),paddingBottom:u(5,20),paddingInlineStart:u(8,20)},code:{fontSize:u(18,20)},"h2 code":{fontSize:u(31,36)},"h3 code":{fontSize:u(27,30)},pre:{fontSize:u(18,20),lineHeight:ae(32/18),marginTop:u(36,18),marginBottom:u(36,18),borderRadius:ze(8),paddingTop:u(20,18),paddingInlineEnd:u(24,18),paddingBottom:u(20,18),paddingInlineStart:u(24,18)},ol:{marginTop:u(24,20),marginBottom:u(24,20),paddingInlineStart:u(32,20)},ul:{marginTop:u(24,20),marginBottom:u(24,20),paddingInlineStart:u(32,20)},li:{marginTop:u(12,20),marginBottom:u(12,20)},"ol > li":{paddingInlineStart:u(8,20)},"ul > li":{paddingInlineStart:u(8,20)},"> ul > li p":{marginTop:u(16,20),marginBottom:u(16,20)},"> ul > li > p:first-child":{marginTop:u(24,20)},"> ul > li > p:last-child":{marginBottom:u(24,20)},"> ol > li > p:first-child":{marginTop:u(24,20)},"> ol > li > p:last-child":{marginBottom:u(24,20)},"ul ul, ul ol, ol ul, ol ol":{marginTop:u(16,20),marginBottom:u(16,20)},dl:{marginTop:u(24,20),marginBottom:u(24,20)},dt:{marginTop:u(24,20)},dd:{marginTop:u(12,20),paddingInlineStart:u(32,20)},hr:{marginTop:u(56,20),marginBottom:u(56,20)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:u(18,20),lineHeight:ae(28/18)},"thead th":{paddingInlineEnd:u(12,18),paddingBottom:u(16,18),paddingInlineStart:u(12,18)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:u(16,18),paddingInlineEnd:u(12,18),paddingBottom:u(16,18),paddingInlineStart:u(12,18)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:u(40,20),marginBottom:u(40,20)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:u(18,20),lineHeight:ae(28/18),marginTop:u(18,18)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},"2xl":{css:[{fontSize:ze(24),lineHeight:ae(40/24),p:{marginTop:u(32,24),marginBottom:u(32,24)},'[class~="lead"]':{fontSize:u(30,24),lineHeight:ae(44/30),marginTop:u(32,30),marginBottom:u(32,30)},blockquote:{marginTop:u(64,36),marginBottom:u(64,36),paddingInlineStart:u(40,36)},h1:{fontSize:u(64,24),marginTop:"0",marginBottom:u(56,64),lineHeight:ae(64/64)},h2:{fontSize:u(48,24),marginTop:u(72,48),marginBottom:u(40,48),lineHeight:ae(52/48)},h3:{fontSize:u(36,24),marginTop:u(56,36),marginBottom:u(24,36),lineHeight:ae(44/36)},h4:{marginTop:u(40,24),marginBottom:u(16,24),lineHeight:ae(36/24)},img:{marginTop:u(48,24),marginBottom:u(48,24)},picture:{marginTop:u(48,24),marginBottom:u(48,24)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:u(48,24),marginBottom:u(48,24)},kbd:{fontSize:u(20,24),borderRadius:ze(6),paddingTop:u(6,24),paddingInlineEnd:u(8,24),paddingBottom:u(6,24),paddingInlineStart:u(8,24)},code:{fontSize:u(20,24)},"h2 code":{fontSize:u(42,48)},"h3 code":{fontSize:u(32,36)},pre:{fontSize:u(20,24),lineHeight:ae(36/20),marginTop:u(40,20),marginBottom:u(40,20),borderRadius:ze(8),paddingTop:u(24,20),paddingInlineEnd:u(32,20),paddingBottom:u(24,20),paddingInlineStart:u(32,20)},ol:{marginTop:u(32,24),marginBottom:u(32,24),paddingInlineStart:u(38,24)},ul:{marginTop:u(32,24),marginBottom:u(32,24),paddingInlineStart:u(38,24)},li:{marginTop:u(12,24),marginBottom:u(12,24)},"ol > li":{paddingInlineStart:u(10,24)},"ul > li":{paddingInlineStart:u(10,24)},"> ul > li p":{marginTop:u(20,24),marginBottom:u(20,24)},"> ul > li > p:first-child":{marginTop:u(32,24)},"> ul > li > p:last-child":{marginBottom:u(32,24)},"> ol > li > p:first-child":{marginTop:u(32,24)},"> ol > li > p:last-child":{marginBottom:u(32,24)},"ul ul, ul ol, ol ul, ol ol":{marginTop:u(16,24),marginBottom:u(16,24)},dl:{marginTop:u(32,24),marginBottom:u(32,24)},dt:{marginTop:u(32,24)},dd:{marginTop:u(12,24),paddingInlineStart:u(38,24)},hr:{marginTop:u(72,24),marginBottom:u(72,24)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:u(20,24),lineHeight:ae(28/20)},"thead th":{paddingInlineEnd:u(12,20),paddingBottom:u(16,20),paddingInlineStart:u(12,20)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:u(16,20),paddingInlineEnd:u(12,20),paddingBottom:u(16,20),paddingInlineStart:u(12,20)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:u(48,24),marginBottom:u(48,24)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:u(20,24),lineHeight:ae(32/20),marginTop:u(20,20)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},slate:{css:{"--tw-prose-body":g.slate[700],"--tw-prose-headings":g.slate[900],"--tw-prose-lead":g.slate[600],"--tw-prose-links":g.slate[900],"--tw-prose-bold":g.slate[900],"--tw-prose-counters":g.slate[500],"--tw-prose-bullets":g.slate[300],"--tw-prose-hr":g.slate[200],"--tw-prose-quotes":g.slate[900],"--tw-prose-quote-borders":g.slate[200],"--tw-prose-captions":g.slate[500],"--tw-prose-kbd":g.slate[900],"--tw-prose-kbd-shadows":Xe(g.slate[900]),"--tw-prose-code":g.slate[900],"--tw-prose-pre-code":g.slate[200],"--tw-prose-pre-bg":g.slate[800],"--tw-prose-th-borders":g.slate[300],"--tw-prose-td-borders":g.slate[200],"--tw-prose-invert-body":g.slate[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.slate[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.slate[400],"--tw-prose-invert-bullets":g.slate[600],"--tw-prose-invert-hr":g.slate[700],"--tw-prose-invert-quotes":g.slate[100],"--tw-prose-invert-quote-borders":g.slate[700],"--tw-prose-invert-captions":g.slate[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Xe(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.slate[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.slate[600],"--tw-prose-invert-td-borders":g.slate[700]}},gray:{css:{"--tw-prose-body":g.gray[700],"--tw-prose-headings":g.gray[900],"--tw-prose-lead":g.gray[600],"--tw-prose-links":g.gray[900],"--tw-prose-bold":g.gray[900],"--tw-prose-counters":g.gray[500],"--tw-prose-bullets":g.gray[300],"--tw-prose-hr":g.gray[200],"--tw-prose-quotes":g.gray[900],"--tw-prose-quote-borders":g.gray[200],"--tw-prose-captions":g.gray[500],"--tw-prose-kbd":g.gray[900],"--tw-prose-kbd-shadows":Xe(g.gray[900]),"--tw-prose-code":g.gray[900],"--tw-prose-pre-code":g.gray[200],"--tw-prose-pre-bg":g.gray[800],"--tw-prose-th-borders":g.gray[300],"--tw-prose-td-borders":g.gray[200],"--tw-prose-invert-body":g.gray[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.gray[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.gray[400],"--tw-prose-invert-bullets":g.gray[600],"--tw-prose-invert-hr":g.gray[700],"--tw-prose-invert-quotes":g.gray[100],"--tw-prose-invert-quote-borders":g.gray[700],"--tw-prose-invert-captions":g.gray[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Xe(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.gray[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.gray[600],"--tw-prose-invert-td-borders":g.gray[700]}},zinc:{css:{"--tw-prose-body":g.zinc[700],"--tw-prose-headings":g.zinc[900],"--tw-prose-lead":g.zinc[600],"--tw-prose-links":g.zinc[900],"--tw-prose-bold":g.zinc[900],"--tw-prose-counters":g.zinc[500],"--tw-prose-bullets":g.zinc[300],"--tw-prose-hr":g.zinc[200],"--tw-prose-quotes":g.zinc[900],"--tw-prose-quote-borders":g.zinc[200],"--tw-prose-captions":g.zinc[500],"--tw-prose-kbd":g.zinc[900],"--tw-prose-kbd-shadows":Xe(g.zinc[900]),"--tw-prose-code":g.zinc[900],"--tw-prose-pre-code":g.zinc[200],"--tw-prose-pre-bg":g.zinc[800],"--tw-prose-th-borders":g.zinc[300],"--tw-prose-td-borders":g.zinc[200],"--tw-prose-invert-body":g.zinc[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.zinc[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.zinc[400],"--tw-prose-invert-bullets":g.zinc[600],"--tw-prose-invert-hr":g.zinc[700],"--tw-prose-invert-quotes":g.zinc[100],"--tw-prose-invert-quote-borders":g.zinc[700],"--tw-prose-invert-captions":g.zinc[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Xe(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.zinc[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.zinc[600],"--tw-prose-invert-td-borders":g.zinc[700]}},neutral:{css:{"--tw-prose-body":g.neutral[700],"--tw-prose-headings":g.neutral[900],"--tw-prose-lead":g.neutral[600],"--tw-prose-links":g.neutral[900],"--tw-prose-bold":g.neutral[900],"--tw-prose-counters":g.neutral[500],"--tw-prose-bullets":g.neutral[300],"--tw-prose-hr":g.neutral[200],"--tw-prose-quotes":g.neutral[900],"--tw-prose-quote-borders":g.neutral[200],"--tw-prose-captions":g.neutral[500],"--tw-prose-kbd":g.neutral[900],"--tw-prose-kbd-shadows":Xe(g.neutral[900]),"--tw-prose-code":g.neutral[900],"--tw-prose-pre-code":g.neutral[200],"--tw-prose-pre-bg":g.neutral[800],"--tw-prose-th-borders":g.neutral[300],"--tw-prose-td-borders":g.neutral[200],"--tw-prose-invert-body":g.neutral[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.neutral[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.neutral[400],"--tw-prose-invert-bullets":g.neutral[600],"--tw-prose-invert-hr":g.neutral[700],"--tw-prose-invert-quotes":g.neutral[100],"--tw-prose-invert-quote-borders":g.neutral[700],"--tw-prose-invert-captions":g.neutral[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Xe(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.neutral[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.neutral[600],"--tw-prose-invert-td-borders":g.neutral[700]}},stone:{css:{"--tw-prose-body":g.stone[700],"--tw-prose-headings":g.stone[900],"--tw-prose-lead":g.stone[600],"--tw-prose-links":g.stone[900],"--tw-prose-bold":g.stone[900],"--tw-prose-counters":g.stone[500],"--tw-prose-bullets":g.stone[300],"--tw-prose-hr":g.stone[200],"--tw-prose-quotes":g.stone[900],"--tw-prose-quote-borders":g.stone[200],"--tw-prose-captions":g.stone[500],"--tw-prose-kbd":g.stone[900],"--tw-prose-kbd-shadows":Xe(g.stone[900]),"--tw-prose-code":g.stone[900],"--tw-prose-pre-code":g.stone[200],"--tw-prose-pre-bg":g.stone[800],"--tw-prose-th-borders":g.stone[300],"--tw-prose-td-borders":g.stone[200],"--tw-prose-invert-body":g.stone[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.stone[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.stone[400],"--tw-prose-invert-bullets":g.stone[600],"--tw-prose-invert-hr":g.stone[700],"--tw-prose-invert-quotes":g.stone[100],"--tw-prose-invert-quote-borders":g.stone[700],"--tw-prose-invert-captions":g.stone[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Xe(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.stone[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.stone[600],"--tw-prose-invert-td-borders":g.stone[700]}},red:{css:{"--tw-prose-links":g.red[600],"--tw-prose-invert-links":g.red[500]}},orange:{css:{"--tw-prose-links":g.orange[600],"--tw-prose-invert-links":g.orange[500]}},amber:{css:{"--tw-prose-links":g.amber[600],"--tw-prose-invert-links":g.amber[500]}},yellow:{css:{"--tw-prose-links":g.yellow[600],"--tw-prose-invert-links":g.yellow[500]}},lime:{css:{"--tw-prose-links":g.lime[600],"--tw-prose-invert-links":g.lime[500]}},green:{css:{"--tw-prose-links":g.green[600],"--tw-prose-invert-links":g.green[500]}},emerald:{css:{"--tw-prose-links":g.emerald[600],"--tw-prose-invert-links":g.emerald[500]}},teal:{css:{"--tw-prose-links":g.teal[600],"--tw-prose-invert-links":g.teal[500]}},cyan:{css:{"--tw-prose-links":g.cyan[600],"--tw-prose-invert-links":g.cyan[500]}},sky:{css:{"--tw-prose-links":g.sky[600],"--tw-prose-invert-links":g.sky[500]}},blue:{css:{"--tw-prose-links":g.blue[600],"--tw-prose-invert-links":g.blue[500]}},indigo:{css:{"--tw-prose-links":g.indigo[600],"--tw-prose-invert-links":g.indigo[500]}},violet:{css:{"--tw-prose-links":g.violet[600],"--tw-prose-invert-links":g.violet[500]}},purple:{css:{"--tw-prose-links":g.purple[600],"--tw-prose-invert-links":g.purple[500]}},fuchsia:{css:{"--tw-prose-links":g.fuchsia[600],"--tw-prose-invert-links":g.fuchsia[500]}},pink:{css:{"--tw-prose-links":g.pink[600],"--tw-prose-invert-links":g.pink[500]}},rose:{css:{"--tw-prose-links":g.rose[600],"--tw-prose-invert-links":g.rose[500]}},invert:{css:{"--tw-prose-body":"var(--tw-prose-invert-body)","--tw-prose-headings":"var(--tw-prose-invert-headings)","--tw-prose-lead":"var(--tw-prose-invert-lead)","--tw-prose-links":"var(--tw-prose-invert-links)","--tw-prose-bold":"var(--tw-prose-invert-bold)","--tw-prose-counters":"var(--tw-prose-invert-counters)","--tw-prose-bullets":"var(--tw-prose-invert-bullets)","--tw-prose-hr":"var(--tw-prose-invert-hr)","--tw-prose-quotes":"var(--tw-prose-invert-quotes)","--tw-prose-quote-borders":"var(--tw-prose-invert-quote-borders)","--tw-prose-captions":"var(--tw-prose-invert-captions)","--tw-prose-kbd":"var(--tw-prose-invert-kbd)","--tw-prose-kbd-shadows":"var(--tw-prose-invert-kbd-shadows)","--tw-prose-code":"var(--tw-prose-invert-code)","--tw-prose-pre-code":"var(--tw-prose-invert-pre-code)","--tw-prose-pre-bg":"var(--tw-prose-invert-pre-bg)","--tw-prose-th-borders":"var(--tw-prose-invert-th-borders)","--tw-prose-td-borders":"var(--tw-prose-invert-td-borders)"}}};var fa={DEFAULT:{css:[{color:"var(--tw-prose-body)",maxWidth:"65ch",p:{},'[class~="lead"]':{color:"var(--tw-prose-lead)"},a:{color:"var(--tw-prose-links)",textDecoration:"underline",fontWeight:"500"},strong:{color:"var(--tw-prose-bold)",fontWeight:"600"},"a strong":{color:"inherit"},"blockquote strong":{color:"inherit"},"thead th strong":{color:"inherit"},ol:{listStyleType:"decimal"},'ol[type="A"]':{listStyleType:"upper-alpha"},'ol[type="a"]':{listStyleType:"lower-alpha"},'ol[type="A" s]':{listStyleType:"upper-alpha"},'ol[type="a" s]':{listStyleType:"lower-alpha"},'ol[type="I"]':{listStyleType:"upper-roman"},'ol[type="i"]':{listStyleType:"lower-roman"},'ol[type="I" s]':{listStyleType:"upper-roman"},'ol[type="i" s]':{listStyleType:"lower-roman"},'ol[type="1"]':{listStyleType:"decimal"},ul:{listStyleType:"disc"},"ol > li::marker":{fontWeight:"400",color:"var(--tw-prose-counters)"},"ul > li::marker":{color:"var(--tw-prose-bullets)"},dt:{color:"var(--tw-prose-headings)",fontWeight:"600"},hr:{borderColor:"var(--tw-prose-hr)",borderTopWidth:1},blockquote:{fontWeight:"500",fontStyle:"italic",color:"var(--tw-prose-quotes)",borderInlineStartWidth:"0.25rem",borderInlineStartColor:"var(--tw-prose-quote-borders)",quotes:'"\\201C""\\201D""\\2018""\\2019"'},"blockquote p:first-of-type::before":{content:"open-quote"},"blockquote p:last-of-type::after":{content:"close-quote"},h1:{color:"var(--tw-prose-headings)",fontWeight:"800"},"h1 strong":{fontWeight:"900",color:"inherit"},h2:{color:"var(--tw-prose-headings)",fontWeight:"700"},"h2 strong":{fontWeight:"800",color:"inherit"},h3:{color:"var(--tw-prose-headings)",fontWeight:"600"},"h3 strong":{fontWeight:"700",color:"inherit"},h4:{color:"var(--tw-prose-headings)",fontWeight:"600"},"h4 strong":{fontWeight:"700",color:"inherit"},img:{},picture:{display:"block"},video:{},kbd:{fontWeight:"500",fontFamily:"inherit",color:"var(--tw-prose-kbd)",boxShadow:"0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%)"},code:{color:"var(--tw-prose-code)",fontWeight:"600"},"code::before":{content:'"`"'},"code::after":{content:'"`"'},"a code":{color:"inherit"},"h1 code":{color:"inherit"},"h2 code":{color:"inherit"},"h3 code":{color:"inherit"},"h4 code":{color:"inherit"},"blockquote code":{color:"inherit"},"thead th code":{color:"inherit"},pre:{color:"var(--tw-prose-pre-code)",backgroundColor:"var(--tw-prose-pre-bg)",overflowX:"auto",fontWeight:"400"},"pre code":{backgroundColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0",fontWeight:"inherit",color:"inherit",fontSize:"inherit",fontFamily:"inherit",lineHeight:"inherit"},"pre code::before":{content:"none"},"pre code::after":{content:"none"},table:{width:"100%",tableLayout:"auto",marginTop:u(32,16),marginBottom:u(32,16)},thead:{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-th-borders)"},"thead th":{color:"var(--tw-prose-headings)",fontWeight:"600",verticalAlign:"bottom"},"tbody tr":{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-td-borders)"},"tbody tr:last-child":{borderBottomWidth:"0"},"tbody td":{verticalAlign:"baseline"},tfoot:{borderTopWidth:"1px",borderTopColor:"var(--tw-prose-th-borders)"},"tfoot td":{verticalAlign:"top"},"th, td":{textAlign:"start"},"figure > *":{},figcaption:{color:"var(--tw-prose-captions)"}},cr.gray.css,...cr.base.css]},...cr},pa="[object Object]";function ma(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function ga(t,e){return function(r){return t(e(r))}}var va=Function.prototype,Jn=Object.prototype,ei=va.toString,_a=Jn.hasOwnProperty,ya=ei.call(Object),Ca=Jn.toString,ba=ga(Object.getPrototypeOf,Object);function xa(t){return!!t&&typeof t=="object"}function wa(t){if(!xa(t)||Ca.call(t)!=pa||ma(t))return!1;var e=ba(t);if(e===null)return!0;var r=_a.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&ei.call(r)==ya}var Sa=wa,ur={exports:{}},dr={exports:{}},hr={exports:{}},fr={exports:{}},pr={exports:{}},mr={exports:{}},Fe={},gr={exports:{}};(function(t,e){e.__esModule=!0,e.default=i;function r(a){for(var o=a.toLowerCase(),c="",s=!1,l=0;l<6&&o[l]!==void 0;l++){var d=o.charCodeAt(l),f=d>=97&&d<=102||d>=48&&d<=57;if(s=d===32,!f)break;c+=o[l]}if(c.length!==0){var m=parseInt(c,16),b=m>=55296&&m<=57343;return b||m===0||m>1114111?["�",c.length+(s?1:0)]:[String.fromCodePoint(m),c.length+(s?1:0)]}}var n=/\\/;function i(a){var o=n.test(a);if(!o)return a;for(var c="",s=0;s<a.length;s++){if(a[s]==="\\"){var l=r(a.slice(s+1,s+7));if(l!==void 0){c+=l[0],s+=l[1];continue}if(a[s+1]==="\\"){c+="\\",s++;continue}a.length===s+1&&(c+=a[s]);continue}c+=a[s]}return c}t.exports=e.default})(gr,gr.exports);var ti=gr.exports,vr={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];for(;a.length>0;){var c=a.shift();if(!n[c])return;n=n[c]}return n}t.exports=e.default})(vr,vr.exports);var Ta=vr.exports,_r={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];for(;a.length>0;){var c=a.shift();n[c]||(n[c]={}),n=n[c]}}t.exports=e.default})(_r,_r.exports);var ka=_r.exports,yr={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i="",a=n.indexOf("/*"),o=0;a>=0;){i=i+n.slice(o,a);var c=n.indexOf("*/",a+2);if(c<0)return i;o=c+2,a=n.indexOf("/*",o)}return i=i+n.slice(o),i}t.exports=e.default})(yr,yr.exports);var $a=yr.exports;Fe.__esModule=!0,Fe.stripComments=Fe.ensureObject=Fe.getProp=Fe.unesc=void 0;var Ea=zt(ti);Fe.unesc=Ea.default;var Ma=zt(Ta);Fe.getProp=Ma.default;var La=zt(ka);Fe.ensureObject=La.default;var Da=zt($a);Fe.stripComments=Da.default;function zt(t){return t&&t.__esModule?t:{default:t}}(function(t,e){e.__esModule=!0,e.default=void 0;var r=Fe;function n(c,s){for(var l=0;l<s.length;l++){var d=s[l];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(c,d.key,d)}}function i(c,s,l){return s&&n(c.prototype,s),l&&n(c,l),c}var a=function c(s,l){if(typeof s!="object"||s===null)return s;var d=new s.constructor;for(var f in s)if(s.hasOwnProperty(f)){var m=s[f],b=typeof m;f==="parent"&&b==="object"?l&&(d[f]=l):m instanceof Array?d[f]=m.map(function(x){return c(x,d)}):d[f]=c(m,d)}return d},o=function(){function c(l){l===void 0&&(l={}),Object.assign(this,l),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var s=c.prototype;return s.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},s.replaceWith=function(){if(this.parent){for(var d in arguments)this.parent.insertBefore(this,arguments[d]);this.remove()}return this},s.next=function(){return this.parent.at(this.parent.index(this)+1)},s.prev=function(){return this.parent.at(this.parent.index(this)-1)},s.clone=function(d){d===void 0&&(d={});var f=a(this);for(var m in d)f[m]=d[m];return f},s.appendToPropertyAndEscape=function(d,f,m){this.raws||(this.raws={});var b=this[d],x=this.raws[d];this[d]=b+f,x||m!==f?this.raws[d]=(x||b)+m:delete this.raws[d]},s.setPropertyAndEscape=function(d,f,m){this.raws||(this.raws={}),this[d]=f,this.raws[d]=m},s.setPropertyWithoutEscape=function(d,f){this[d]=f,this.raws&&delete this.raws[d]},s.isAtPosition=function(d,f){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>d||this.source.end.line<d||this.source.start.line===d&&this.source.start.column>f||this.source.end.line===d&&this.source.end.column<f)},s.stringifyProperty=function(d){return this.raws&&this.raws[d]||this[d]},s.valueToString=function(){return String(this.stringifyProperty("value"))},s.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},i(c,[{key:"rawSpaceBefore",get:function(){var d=this.raws&&this.raws.spaces&&this.raws.spaces.before;return d===void 0&&(d=this.spaces&&this.spaces.before),d||""},set:function(d){(0,r.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=d}},{key:"rawSpaceAfter",get:function(){var d=this.raws&&this.raws.spaces&&this.raws.spaces.after;return d===void 0&&(d=this.spaces.after),d||""},set:function(d){(0,r.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=d}}]),c}();e.default=o,t.exports=e.default})(mr,mr.exports);var it=mr.exports,ue={};ue.__esModule=!0,ue.UNIVERSAL=ue.ATTRIBUTE=ue.CLASS=ue.COMBINATOR=ue.COMMENT=ue.ID=ue.NESTING=ue.PSEUDO=ue.ROOT=ue.SELECTOR=ue.STRING=ue.TAG=void 0;var Pa="tag";ue.TAG=Pa;var Oa="string";ue.STRING=Oa;var za="selector";ue.SELECTOR=za;var Ba="root";ue.ROOT=Ba;var Ia="pseudo";ue.PSEUDO=Ia;var Fa="nesting";ue.NESTING=Fa;var Aa="id";ue.ID=Aa;var Ra="comment";ue.COMMENT=Ra;var Ha="combinator";ue.COMBINATOR=Ha;var Na="class";ue.CLASS=Na;var ja="attribute";ue.ATTRIBUTE=ja;var Ga="universal";ue.UNIVERSAL=Ga,function(t,e){e.__esModule=!0,e.default=void 0;var r=o(it),n=a(ue);function i(){if(typeof WeakMap!="function")return null;var h=new WeakMap;return i=function(){return h},h}function a(h){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var y=i();if(y&&y.has(h))return y.get(h);var $={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in h)if(Object.prototype.hasOwnProperty.call(h,S)){var R=D?Object.getOwnPropertyDescriptor(h,S):null;R&&(R.get||R.set)?Object.defineProperty($,S,R):$[S]=h[S]}return $.default=h,y&&y.set(h,$),$}function o(h){return h&&h.__esModule?h:{default:h}}function c(h,y){var $;if(typeof Symbol=="undefined"||h[Symbol.iterator]==null){if(Array.isArray(h)||($=s(h))||y&&h&&typeof h.length=="number"){$&&(h=$);var D=0;return function(){return D>=h.length?{done:!0}:{done:!1,value:h[D++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return $=h[Symbol.iterator](),$.next.bind($)}function s(h,y){if(h){if(typeof h=="string")return l(h,y);var $=Object.prototype.toString.call(h).slice(8,-1);if($==="Object"&&h.constructor&&($=h.constructor.name),$==="Map"||$==="Set")return Array.from(h);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return l(h,y)}}function l(h,y){(y==null||y>h.length)&&(y=h.length);for(var $=0,D=new Array(y);$<y;$++)D[$]=h[$];return D}function d(h,y){for(var $=0;$<y.length;$++){var D=y[$];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(h,D.key,D)}}function f(h,y,$){return y&&d(h.prototype,y),$&&d(h,$),h}function m(h,y){h.prototype=Object.create(y.prototype),h.prototype.constructor=h,b(h,y)}function b(h,y){return b=Object.setPrototypeOf||function(D,S){return D.__proto__=S,D},b(h,y)}var x=function(h){m(y,h);function y(D){var S;return S=h.call(this,D)||this,S.nodes||(S.nodes=[]),S}var $=y.prototype;return $.append=function(S){return S.parent=this,this.nodes.push(S),this},$.prepend=function(S){return S.parent=this,this.nodes.unshift(S),this},$.at=function(S){return this.nodes[S]},$.index=function(S){return typeof S=="number"?S:this.nodes.indexOf(S)},$.removeChild=function(S){S=this.index(S),this.at(S).parent=void 0,this.nodes.splice(S,1);var R;for(var E in this.indexes)R=this.indexes[E],R>=S&&(this.indexes[E]=R-1);return this},$.removeAll=function(){for(var S=c(this.nodes),R;!(R=S()).done;){var E=R.value;E.parent=void 0}return this.nodes=[],this},$.empty=function(){return this.removeAll()},$.insertAfter=function(S,R){R.parent=this;var E=this.index(S);this.nodes.splice(E+1,0,R),R.parent=this;var j;for(var Q in this.indexes)j=this.indexes[Q],E<=j&&(this.indexes[Q]=j+1);return this},$.insertBefore=function(S,R){R.parent=this;var E=this.index(S);this.nodes.splice(E,0,R),R.parent=this;var j;for(var Q in this.indexes)j=this.indexes[Q],j<=E&&(this.indexes[Q]=j+1);return this},$._findChildAtPosition=function(S,R){var E=void 0;return this.each(function(j){if(j.atPosition){var Q=j.atPosition(S,R);if(Q)return E=Q,!1}else if(j.isAtPosition(S,R))return E=j,!1}),E},$.atPosition=function(S,R){if(this.isAtPosition(S,R))return this._findChildAtPosition(S,R)||this},$._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},$.each=function(S){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var R=this.lastEach;if(this.indexes[R]=0,!!this.length){for(var E,j;this.indexes[R]<this.length&&(E=this.indexes[R],j=S(this.at(E),E),j!==!1);)this.indexes[R]+=1;if(delete this.indexes[R],j===!1)return!1}},$.walk=function(S){return this.each(function(R,E){var j=S(R,E);if(j!==!1&&R.length&&(j=R.walk(S)),j===!1)return!1})},$.walkAttributes=function(S){var R=this;return this.walk(function(E){if(E.type===n.ATTRIBUTE)return S.call(R,E)})},$.walkClasses=function(S){var R=this;return this.walk(function(E){if(E.type===n.CLASS)return S.call(R,E)})},$.walkCombinators=function(S){var R=this;return this.walk(function(E){if(E.type===n.COMBINATOR)return S.call(R,E)})},$.walkComments=function(S){var R=this;return this.walk(function(E){if(E.type===n.COMMENT)return S.call(R,E)})},$.walkIds=function(S){var R=this;return this.walk(function(E){if(E.type===n.ID)return S.call(R,E)})},$.walkNesting=function(S){var R=this;return this.walk(function(E){if(E.type===n.NESTING)return S.call(R,E)})},$.walkPseudos=function(S){var R=this;return this.walk(function(E){if(E.type===n.PSEUDO)return S.call(R,E)})},$.walkTags=function(S){var R=this;return this.walk(function(E){if(E.type===n.TAG)return S.call(R,E)})},$.walkUniversals=function(S){var R=this;return this.walk(function(E){if(E.type===n.UNIVERSAL)return S.call(R,E)})},$.split=function(S){var R=this,E=[];return this.reduce(function(j,Q,U){var C=S.call(R,Q);return E.push(Q),C?(j.push(E),E=[]):U===R.length-1&&j.push(E),j},[])},$.map=function(S){return this.nodes.map(S)},$.reduce=function(S,R){return this.nodes.reduce(S,R)},$.every=function(S){return this.nodes.every(S)},$.some=function(S){return this.nodes.some(S)},$.filter=function(S){return this.nodes.filter(S)},$.sort=function(S){return this.nodes.sort(S)},$.toString=function(){return this.map(String).join("")},f(y,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),y}(r.default);e.default=x,t.exports=e.default}(pr,pr.exports);var Cr=pr.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Cr),n=ue;function i(d){return d&&d.__esModule?d:{default:d}}function a(d,f){for(var m=0;m<f.length;m++){var b=f[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(d,b.key,b)}}function o(d,f,m){return f&&a(d.prototype,f),m&&a(d,m),d}function c(d,f){d.prototype=Object.create(f.prototype),d.prototype.constructor=d,s(d,f)}function s(d,f){return s=Object.setPrototypeOf||function(b,x){return b.__proto__=x,b},s(d,f)}var l=function(d){c(f,d);function f(b){var x;return x=d.call(this,b)||this,x.type=n.ROOT,x}var m=f.prototype;return m.toString=function(){var x=this.reduce(function(h,y){return h.push(String(y)),h},[]).join(",");return this.trailingComma?x+",":x},m.error=function(x,h){return this._error?this._error(x,h):new Error(x)},o(f,[{key:"errorGenerator",set:function(x){this._error=x}}]),f}(r.default);e.default=l,t.exports=e.default})(fr,fr.exports);var ri=fr.exports,br={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Cr),n=ue;function i(s){return s&&s.__esModule?s:{default:s}}function a(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},o(s,l)}var c=function(s){a(l,s);function l(d){var f;return f=s.call(this,d)||this,f.type=n.SELECTOR,f}return l}(r.default);e.default=c,t.exports=e.default})(br,br.exports);var ni=br.exports,xr={exports:{}};/*! https://mths.be/cssesc v3.0.0 by @mathias */var qa={},Wa=qa.hasOwnProperty,Ua=function(e,r){if(!e)return r;var n={};for(var i in r)n[i]=Wa.call(e,i)?e[i]:r[i];return n},Za=/[ -,\.\/:-@\[-\^`\{-~]/,Ya=/[ -,\.\/:-@\[\]\^`\{-~]/,Xa=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,wr=function t(e,r){r=Ua(r,t.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var n=r.quotes=="double"?'"':"'",i=r.isIdentifier,a=e.charAt(0),o="",c=0,s=e.length;c<s;){var l=e.charAt(c++),d=l.charCodeAt(),f=void 0;if(d<32||d>126){if(d>=55296&&d<=56319&&c<s){var m=e.charCodeAt(c++);(m&64512)==56320?d=((d&1023)<<10)+(m&1023)+65536:c--}f="\\"+d.toString(16).toUpperCase()+" "}else r.escapeEverything?Za.test(l)?f="\\"+l:f="\\"+d.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?f="\\"+d.toString(16).toUpperCase()+" ":l=="\\"||!i&&(l=='"'&&n==l||l=="'"&&n==l)||i&&Ya.test(l)?f="\\"+l:f=l;o+=f}return i&&(/^-[-\d]/.test(o)?o="\\-"+o.slice(1):/\d/.test(a)&&(o="\\3"+a+" "+o.slice(1))),o=o.replace(Xa,function(b,x,h){return x&&x.length%2?b:(x||"")+h}),!i&&r.wrap?n+o+n:o};wr.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},wr.version="3.0.0";var Sr=wr;(function(t,e){e.__esModule=!0,e.default=void 0;var r=o(Sr),n=Fe,i=o(it),a=ue;function o(m){return m&&m.__esModule?m:{default:m}}function c(m,b){for(var x=0;x<b.length;x++){var h=b[x];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(m,h.key,h)}}function s(m,b,x){return b&&c(m.prototype,b),x&&c(m,x),m}function l(m,b){m.prototype=Object.create(b.prototype),m.prototype.constructor=m,d(m,b)}function d(m,b){return d=Object.setPrototypeOf||function(h,y){return h.__proto__=y,h},d(m,b)}var f=function(m){l(b,m);function b(h){var y;return y=m.call(this,h)||this,y.type=a.CLASS,y._constructed=!0,y}var x=b.prototype;return x.valueToString=function(){return"."+m.prototype.valueToString.call(this)},s(b,[{key:"value",get:function(){return this._value},set:function(y){if(this._constructed){var $=(0,r.default)(y,{isIdentifier:!0});$!==y?((0,n.ensureObject)(this,"raws"),this.raws.value=$):this.raws&&delete this.raws.value}this._value=y}}]),b}(i.default);e.default=f,t.exports=e.default})(xr,xr.exports);var ii=xr.exports,Tr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(it),n=ue;function i(s){return s&&s.__esModule?s:{default:s}}function a(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},o(s,l)}var c=function(s){a(l,s);function l(d){var f;return f=s.call(this,d)||this,f.type=n.COMMENT,f}return l}(r.default);e.default=c,t.exports=e.default})(Tr,Tr.exports);var si=Tr.exports,kr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(it),n=ue;function i(s){return s&&s.__esModule?s:{default:s}}function a(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},o(s,l)}var c=function(s){a(l,s);function l(f){var m;return m=s.call(this,f)||this,m.type=n.ID,m}var d=l.prototype;return d.valueToString=function(){return"#"+s.prototype.valueToString.call(this)},l}(r.default);e.default=c,t.exports=e.default})(kr,kr.exports);var ai=kr.exports,$r={exports:{}},Er={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=a(Sr),n=Fe,i=a(it);function a(f){return f&&f.__esModule?f:{default:f}}function o(f,m){for(var b=0;b<m.length;b++){var x=m[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(f,x.key,x)}}function c(f,m,b){return m&&o(f.prototype,m),b&&o(f,b),f}function s(f,m){f.prototype=Object.create(m.prototype),f.prototype.constructor=f,l(f,m)}function l(f,m){return l=Object.setPrototypeOf||function(x,h){return x.__proto__=h,x},l(f,m)}var d=function(f){s(m,f);function m(){return f.apply(this,arguments)||this}var b=m.prototype;return b.qualifiedName=function(h){return this.namespace?this.namespaceString+"|"+h:h},b.valueToString=function(){return this.qualifiedName(f.prototype.valueToString.call(this))},c(m,[{key:"namespace",get:function(){return this._namespace},set:function(h){if(h===!0||h==="*"||h==="&"){this._namespace=h,this.raws&&delete this.raws.namespace;return}var y=(0,r.default)(h,{isIdentifier:!0});this._namespace=h,y!==h?((0,n.ensureObject)(this,"raws"),this.raws.namespace=y):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(h){this.namespace=h}},{key:"namespaceString",get:function(){if(this.namespace){var h=this.stringifyProperty("namespace");return h===!0?"":h}else return""}}]),m}(i.default);e.default=d,t.exports=e.default})(Er,Er.exports);var Mr=Er.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Mr),n=ue;function i(s){return s&&s.__esModule?s:{default:s}}function a(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},o(s,l)}var c=function(s){a(l,s);function l(d){var f;return f=s.call(this,d)||this,f.type=n.TAG,f}return l}(r.default);e.default=c,t.exports=e.default})($r,$r.exports);var oi=$r.exports,Lr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(it),n=ue;function i(s){return s&&s.__esModule?s:{default:s}}function a(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},o(s,l)}var c=function(s){a(l,s);function l(d){var f;return f=s.call(this,d)||this,f.type=n.STRING,f}return l}(r.default);e.default=c,t.exports=e.default})(Lr,Lr.exports);var li=Lr.exports,Dr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Cr),n=ue;function i(s){return s&&s.__esModule?s:{default:s}}function a(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},o(s,l)}var c=function(s){a(l,s);function l(f){var m;return m=s.call(this,f)||this,m.type=n.PSEUDO,m}var d=l.prototype;return d.toString=function(){var m=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),m,this.rawSpaceAfter].join("")},l}(r.default);e.default=c,t.exports=e.default})(Dr,Dr.exports);var ci=Dr.exports,Pr={},Va=Qa;function Qa(t,e){if(Or("noDeprecation"))return t;var r=!1;function n(){if(!r){if(Or("throwDeprecation"))throw new Error(e);Or("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return n}function Or(t){try{if(!ot.localStorage)return!1}catch{return!1}var e=ot.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}(function(t){t.__esModule=!0,t.unescapeValue=y,t.default=void 0;var e=o(Sr),r=o(ti),n=o(Mr),i=ue,a;function o(E){return E&&E.__esModule?E:{default:E}}function c(E,j){for(var Q=0;Q<j.length;Q++){var U=j[Q];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(E,U.key,U)}}function s(E,j,Q){return j&&c(E.prototype,j),Q&&c(E,Q),E}function l(E,j){E.prototype=Object.create(j.prototype),E.prototype.constructor=E,d(E,j)}function d(E,j){return d=Object.setPrototypeOf||function(U,C){return U.__proto__=C,U},d(E,j)}var f=Va,m=/^('|")([^]*)\1$/,b=f(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),x=f(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),h=f(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function y(E){var j=!1,Q=null,U=E,C=U.match(m);return C&&(Q=C[1],U=C[2]),U=(0,r.default)(U),U!==E&&(j=!0),{deprecatedUsage:j,unescaped:U,quoteMark:Q}}function $(E){if(E.quoteMark!==void 0||E.value===void 0)return E;h();var j=y(E.value),Q=j.quoteMark,U=j.unescaped;return E.raws||(E.raws={}),E.raws.value===void 0&&(E.raws.value=E.value),E.value=U,E.quoteMark=Q,E}var D=function(E){l(j,E);function j(U){var C;return U===void 0&&(U={}),C=E.call(this,$(U))||this,C.type=i.ATTRIBUTE,C.raws=C.raws||{},Object.defineProperty(C.raws,"unquoted",{get:f(function(){return C.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:f(function(){return C.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),C._constructed=!0,C}var Q=j.prototype;return Q.getQuotedValue=function(C){C===void 0&&(C={});var z=this._determineQuoteMark(C),W=S[z],L=(0,e.default)(this._value,W);return L},Q._determineQuoteMark=function(C){return C.smart?this.smartQuoteMark(C):this.preferredQuoteMark(C)},Q.setValue=function(C,z){z===void 0&&(z={}),this._value=C,this._quoteMark=this._determineQuoteMark(z),this._syncRawValue()},Q.smartQuoteMark=function(C){var z=this.value,W=z.replace(/[^']/g,"").length,L=z.replace(/[^"]/g,"").length;if(W+L===0){var Y=(0,e.default)(z,{isIdentifier:!0});if(Y===z)return j.NO_QUOTE;var X=this.preferredQuoteMark(C);if(X===j.NO_QUOTE){var I=this.quoteMark||C.quoteMark||j.DOUBLE_QUOTE,T=S[I],P=(0,e.default)(z,T);if(P.length<Y.length)return I}return X}else return L===W?this.preferredQuoteMark(C):L<W?j.DOUBLE_QUOTE:j.SINGLE_QUOTE},Q.preferredQuoteMark=function(C){var z=C.preferCurrentQuoteMark?this.quoteMark:C.quoteMark;return z===void 0&&(z=C.preferCurrentQuoteMark?C.quoteMark:this.quoteMark),z===void 0&&(z=j.DOUBLE_QUOTE),z},Q._syncRawValue=function(){var C=(0,e.default)(this._value,S[this.quoteMark]);C===this._value?this.raws&&delete this.raws.value:this.raws.value=C},Q._handleEscapes=function(C,z){if(this._constructed){var W=(0,e.default)(z,{isIdentifier:!0});W!==z?this.raws[C]=W:delete this.raws[C]}},Q._spacesFor=function(C){var z={before:"",after:""},W=this.spaces[C]||{},L=this.raws.spaces&&this.raws.spaces[C]||{};return Object.assign(z,W,L)},Q._stringFor=function(C,z,W){z===void 0&&(z=C),W===void 0&&(W=R);var L=this._spacesFor(z);return W(this.stringifyProperty(C),L)},Q.offsetOf=function(C){var z=1,W=this._spacesFor("attribute");if(z+=W.before.length,C==="namespace"||C==="ns")return this.namespace?z:-1;if(C==="attributeNS"||(z+=this.namespaceString.length,this.namespace&&(z+=1),C==="attribute"))return z;z+=this.stringifyProperty("attribute").length,z+=W.after.length;var L=this._spacesFor("operator");z+=L.before.length;var Y=this.stringifyProperty("operator");if(C==="operator")return Y?z:-1;z+=Y.length,z+=L.after.length;var X=this._spacesFor("value");z+=X.before.length;var I=this.stringifyProperty("value");if(C==="value")return I?z:-1;z+=I.length,z+=X.after.length;var T=this._spacesFor("insensitive");return z+=T.before.length,C==="insensitive"&&this.insensitive?z:-1},Q.toString=function(){var C=this,z=[this.rawSpaceBefore,"["];return z.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(z.push(this._stringFor("operator")),z.push(this._stringFor("value")),z.push(this._stringFor("insensitiveFlag","insensitive",function(W,L){return W.length>0&&!C.quoted&&L.before.length===0&&!(C.spaces.value&&C.spaces.value.after)&&(L.before=" "),R(W,L)}))),z.push("]"),z.push(this.rawSpaceAfter),z.join("")},s(j,[{key:"quoted",get:function(){var C=this.quoteMark;return C==="'"||C==='"'},set:function(C){x()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(C){if(!this._constructed){this._quoteMark=C;return}this._quoteMark!==C&&(this._quoteMark=C,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(C){if(this._constructed){var z=y(C),W=z.deprecatedUsage,L=z.unescaped,Y=z.quoteMark;if(W&&b(),L===this._value&&Y===this._quoteMark)return;this._value=L,this._quoteMark=Y,this._syncRawValue()}else this._value=C}},{key:"attribute",get:function(){return this._attribute},set:function(C){this._handleEscapes("attribute",C),this._attribute=C}}]),j}(n.default);t.default=D,D.NO_QUOTE=null,D.SINGLE_QUOTE="'",D.DOUBLE_QUOTE='"';var S=(a={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},a[null]={isIdentifier:!0},a);function R(E,j){return""+j.before+E+j.after}})(Pr);var zr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Mr),n=ue;function i(s){return s&&s.__esModule?s:{default:s}}function a(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},o(s,l)}var c=function(s){a(l,s);function l(d){var f;return f=s.call(this,d)||this,f.type=n.UNIVERSAL,f.value="*",f}return l}(r.default);e.default=c,t.exports=e.default})(zr,zr.exports);var ui=zr.exports,Br={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(it),n=ue;function i(s){return s&&s.__esModule?s:{default:s}}function a(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},o(s,l)}var c=function(s){a(l,s);function l(d){var f;return f=s.call(this,d)||this,f.type=n.COMBINATOR,f}return l}(r.default);e.default=c,t.exports=e.default})(Br,Br.exports);var di=Br.exports,Ir={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(it),n=ue;function i(s){return s&&s.__esModule?s:{default:s}}function a(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},o(s,l)}var c=function(s){a(l,s);function l(d){var f;return f=s.call(this,d)||this,f.type=n.NESTING,f.value="&",f}return l}(r.default);e.default=c,t.exports=e.default})(Ir,Ir.exports);var hi=Ir.exports,Fr={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){return n.sort(function(i,a){return i-a})}t.exports=e.default})(Fr,Fr.exports);var Ka=Fr.exports,fi={},ee={};ee.__esModule=!0,ee.combinator=ee.word=ee.comment=ee.str=ee.tab=ee.newline=ee.feed=ee.cr=ee.backslash=ee.bang=ee.slash=ee.doubleQuote=ee.singleQuote=ee.space=ee.greaterThan=ee.pipe=ee.equals=ee.plus=ee.caret=ee.tilde=ee.dollar=ee.closeSquare=ee.openSquare=ee.closeParenthesis=ee.openParenthesis=ee.semicolon=ee.colon=ee.comma=ee.at=ee.asterisk=ee.ampersand=void 0;var Ja=38;ee.ampersand=Ja;var eo=42;ee.asterisk=eo;var to=64;ee.at=to;var ro=44;ee.comma=ro;var no=58;ee.colon=no;var io=59;ee.semicolon=io;var so=40;ee.openParenthesis=so;var ao=41;ee.closeParenthesis=ao;var oo=91;ee.openSquare=oo;var lo=93;ee.closeSquare=lo;var co=36;ee.dollar=co;var uo=126;ee.tilde=uo;var ho=94;ee.caret=ho;var fo=43;ee.plus=fo;var po=61;ee.equals=po;var mo=124;ee.pipe=mo;var go=62;ee.greaterThan=go;var vo=32;ee.space=vo;var pi=39;ee.singleQuote=pi;var _o=34;ee.doubleQuote=_o;var yo=47;ee.slash=yo;var Co=33;ee.bang=Co;var bo=92;ee.backslash=bo;var xo=13;ee.cr=xo;var wo=12;ee.feed=wo;var So=10;ee.newline=So;var To=9;ee.tab=To;var ko=pi;ee.str=ko;var $o=-1;ee.comment=$o;var Eo=-2;ee.word=Eo;var Mo=-3;ee.combinator=Mo,function(t){t.__esModule=!0,t.default=x,t.FIELDS=void 0;var e=a(ee),r,n;function i(){if(typeof WeakMap!="function")return null;var h=new WeakMap;return i=function(){return h},h}function a(h){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var y=i();if(y&&y.has(h))return y.get(h);var $={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in h)if(Object.prototype.hasOwnProperty.call(h,S)){var R=D?Object.getOwnPropertyDescriptor(h,S):null;R&&(R.get||R.set)?Object.defineProperty($,S,R):$[S]=h[S]}return $.default=h,y&&y.set(h,$),$}for(var o=(r={},r[e.tab]=!0,r[e.newline]=!0,r[e.cr]=!0,r[e.feed]=!0,r),c=(n={},n[e.space]=!0,n[e.tab]=!0,n[e.newline]=!0,n[e.cr]=!0,n[e.feed]=!0,n[e.ampersand]=!0,n[e.asterisk]=!0,n[e.bang]=!0,n[e.comma]=!0,n[e.colon]=!0,n[e.semicolon]=!0,n[e.openParenthesis]=!0,n[e.closeParenthesis]=!0,n[e.openSquare]=!0,n[e.closeSquare]=!0,n[e.singleQuote]=!0,n[e.doubleQuote]=!0,n[e.plus]=!0,n[e.pipe]=!0,n[e.tilde]=!0,n[e.greaterThan]=!0,n[e.equals]=!0,n[e.dollar]=!0,n[e.caret]=!0,n[e.slash]=!0,n),s={},l="0123456789abcdefABCDEF",d=0;d<l.length;d++)s[l.charCodeAt(d)]=!0;function f(h,y){var $=y,D;do{if(D=h.charCodeAt($),c[D])return $-1;D===e.backslash?$=m(h,$)+1:$++}while($<h.length);return $-1}function m(h,y){var $=y,D=h.charCodeAt($+1);if(!o[D])if(s[D]){var S=0;do $++,S++,D=h.charCodeAt($+1);while(s[D]&&S<6);S<6&&D===e.space&&$++}else $++;return $}var b={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};t.FIELDS=b;function x(h){var y=[],$=h.css.valueOf(),D=$,S=D.length,R=-1,E=1,j=0,Q=0,U,C,z,W,L,Y,X,I,T,P,N,ne,_;function Z(A,B){if(h.safe)$+=B,T=$.length-1;else throw h.error("Unclosed "+A,E,j-R,j)}for(;j<S;){switch(U=$.charCodeAt(j),U===e.newline&&(R=j,E+=1),U){case e.space:case e.tab:case e.newline:case e.cr:case e.feed:T=j;do T+=1,U=$.charCodeAt(T),U===e.newline&&(R=T,E+=1);while(U===e.space||U===e.newline||U===e.tab||U===e.cr||U===e.feed);_=e.space,W=E,z=T-R-1,Q=T;break;case e.plus:case e.greaterThan:case e.tilde:case e.pipe:T=j;do T+=1,U=$.charCodeAt(T);while(U===e.plus||U===e.greaterThan||U===e.tilde||U===e.pipe);_=e.combinator,W=E,z=j-R,Q=T;break;case e.asterisk:case e.ampersand:case e.bang:case e.comma:case e.equals:case e.dollar:case e.caret:case e.openSquare:case e.closeSquare:case e.colon:case e.semicolon:case e.openParenthesis:case e.closeParenthesis:T=j,_=U,W=E,z=j-R,Q=T+1;break;case e.singleQuote:case e.doubleQuote:ne=U===e.singleQuote?"'":'"',T=j;do for(L=!1,T=$.indexOf(ne,T+1),T===-1&&Z("quote",ne),Y=T;$.charCodeAt(Y-1)===e.backslash;)Y-=1,L=!L;while(L);_=e.str,W=E,z=j-R,Q=T+1;break;default:U===e.slash&&$.charCodeAt(j+1)===e.asterisk?(T=$.indexOf("*/",j+2)+1,T===0&&Z("comment","*/"),C=$.slice(j,T+1),I=C.split(`
3
+ `),X=I.length-1,X>0?(P=E+X,N=T-I[X].length):(P=E,N=R),_=e.comment,E=P,W=P,z=T-N):U===e.slash?(T=j,_=U,W=E,z=j-R,Q=T+1):(T=f($,j),_=e.word,W=E,z=T-R),Q=T+1;break}y.push([_,E,j-R,W,z,j,Q]),N&&(R=N,N=null),j=Q}return y}}(fi),function(t,e){e.__esModule=!0,e.default=void 0;var r=Q(ri),n=Q(ni),i=Q(ii),a=Q(si),o=Q(ai),c=Q(oi),s=Q(li),l=Q(ci),d=j(Pr),f=Q(ui),m=Q(di),b=Q(hi),x=Q(Ka),h=j(fi),y=j(ee),$=j(ue),D=Fe,S,R;function E(){if(typeof WeakMap!="function")return null;var Z=new WeakMap;return E=function(){return Z},Z}function j(Z){if(Z&&Z.__esModule)return Z;if(Z===null||typeof Z!="object"&&typeof Z!="function")return{default:Z};var A=E();if(A&&A.has(Z))return A.get(Z);var B={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in Z)if(Object.prototype.hasOwnProperty.call(Z,q)){var V=w?Object.getOwnPropertyDescriptor(Z,q):null;V&&(V.get||V.set)?Object.defineProperty(B,q,V):B[q]=Z[q]}return B.default=Z,A&&A.set(Z,B),B}function Q(Z){return Z&&Z.__esModule?Z:{default:Z}}function U(Z,A){for(var B=0;B<A.length;B++){var w=A[B];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(Z,w.key,w)}}function C(Z,A,B){return A&&U(Z.prototype,A),B&&U(Z,B),Z}var z=(S={},S[y.space]=!0,S[y.cr]=!0,S[y.feed]=!0,S[y.newline]=!0,S[y.tab]=!0,S),W=Object.assign({},z,(R={},R[y.comment]=!0,R));function L(Z){return{line:Z[h.FIELDS.START_LINE],column:Z[h.FIELDS.START_COL]}}function Y(Z){return{line:Z[h.FIELDS.END_LINE],column:Z[h.FIELDS.END_COL]}}function X(Z,A,B,w){return{start:{line:Z,column:A},end:{line:B,column:w}}}function I(Z){return X(Z[h.FIELDS.START_LINE],Z[h.FIELDS.START_COL],Z[h.FIELDS.END_LINE],Z[h.FIELDS.END_COL])}function T(Z,A){if(Z)return X(Z[h.FIELDS.START_LINE],Z[h.FIELDS.START_COL],A[h.FIELDS.END_LINE],A[h.FIELDS.END_COL])}function P(Z,A){var B=Z[A];if(typeof B=="string")return B.indexOf("\\")!==-1&&((0,D.ensureObject)(Z,"raws"),Z[A]=(0,D.unesc)(B),Z.raws[A]===void 0&&(Z.raws[A]=B)),Z}function N(Z,A){for(var B=-1,w=[];(B=Z.indexOf(A,B+1))!==-1;)w.push(B);return w}function ne(){var Z=Array.prototype.concat.apply([],arguments);return Z.filter(function(A,B){return B===Z.indexOf(A)})}var _=function(){function Z(B,w){w===void 0&&(w={}),this.rule=B,this.options=Object.assign({lossy:!1,safe:!1},w),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,h.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var q=T(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new r.default({source:q}),this.root.errorGenerator=this._errorGenerator();var V=new n.default({source:{start:{line:1,column:1}}});this.root.append(V),this.current=V,this.loop()}var A=Z.prototype;return A._errorGenerator=function(){var w=this;return function(q,V){return typeof w.rule=="string"?new Error(q):w.rule.error(q,V)}},A.attribute=function(){var w=[],q=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[h.FIELDS.TYPE]!==y.closeSquare;)w.push(this.currToken),this.position++;if(this.currToken[h.FIELDS.TYPE]!==y.closeSquare)return this.expected("closing square bracket",this.currToken[h.FIELDS.START_POS]);var V=w.length,M={source:X(q[1],q[2],this.currToken[3],this.currToken[4]),sourceIndex:q[h.FIELDS.START_POS]};if(V===1&&!~[y.word].indexOf(w[0][h.FIELDS.TYPE]))return this.expected("attribute",w[0][h.FIELDS.START_POS]);for(var re=0,ce="",le="",ie=null,he=!1;re<V;){var Se=w[re],oe=this.content(Se),ye=w[re+1];switch(Se[h.FIELDS.TYPE]){case y.space:if(he=!0,this.options.lossy)break;if(ie){(0,D.ensureObject)(M,"spaces",ie);var Ae=M.spaces[ie].after||"";M.spaces[ie].after=Ae+oe;var Be=(0,D.getProp)(M,"raws","spaces",ie,"after")||null;Be&&(M.raws.spaces[ie].after=Be+oe)}else ce=ce+oe,le=le+oe;break;case y.asterisk:if(ye[h.FIELDS.TYPE]===y.equals)M.operator=oe,ie="operator";else if((!M.namespace||ie==="namespace"&&!he)&&ye){ce&&((0,D.ensureObject)(M,"spaces","attribute"),M.spaces.attribute.before=ce,ce=""),le&&((0,D.ensureObject)(M,"raws","spaces","attribute"),M.raws.spaces.attribute.before=ce,le=""),M.namespace=(M.namespace||"")+oe;var $e=(0,D.getProp)(M,"raws","namespace")||null;$e&&(M.raws.namespace+=oe),ie="namespace"}he=!1;break;case y.dollar:if(ie==="value"){var Te=(0,D.getProp)(M,"raws","value");M.value+="$",Te&&(M.raws.value=Te+"$");break}case y.caret:ye[h.FIELDS.TYPE]===y.equals&&(M.operator=oe,ie="operator"),he=!1;break;case y.combinator:if(oe==="~"&&ye[h.FIELDS.TYPE]===y.equals&&(M.operator=oe,ie="operator"),oe!=="|"){he=!1;break}ye[h.FIELDS.TYPE]===y.equals?(M.operator=oe,ie="operator"):!M.namespace&&!M.attribute&&(M.namespace=!0),he=!1;break;case y.word:if(ye&&this.content(ye)==="|"&&w[re+2]&&w[re+2][h.FIELDS.TYPE]!==y.equals&&!M.operator&&!M.namespace)M.namespace=oe,ie="namespace";else if(!M.attribute||ie==="attribute"&&!he){ce&&((0,D.ensureObject)(M,"spaces","attribute"),M.spaces.attribute.before=ce,ce=""),le&&((0,D.ensureObject)(M,"raws","spaces","attribute"),M.raws.spaces.attribute.before=le,le=""),M.attribute=(M.attribute||"")+oe;var Me=(0,D.getProp)(M,"raws","attribute")||null;Me&&(M.raws.attribute+=oe),ie="attribute"}else if(!M.value&&M.value!==""||ie==="value"&&!he){var Ee=(0,D.unesc)(oe),Le=(0,D.getProp)(M,"raws","value")||"",De=M.value||"";M.value=De+Ee,M.quoteMark=null,(Ee!==oe||Le)&&((0,D.ensureObject)(M,"raws"),M.raws.value=(Le||De)+oe),ie="value"}else{var et=oe==="i"||oe==="I";(M.value||M.value==="")&&(M.quoteMark||he)?(M.insensitive=et,(!et||oe==="I")&&((0,D.ensureObject)(M,"raws"),M.raws.insensitiveFlag=oe),ie="insensitive",ce&&((0,D.ensureObject)(M,"spaces","insensitive"),M.spaces.insensitive.before=ce,ce=""),le&&((0,D.ensureObject)(M,"raws","spaces","insensitive"),M.raws.spaces.insensitive.before=le,le="")):(M.value||M.value==="")&&(ie="value",M.value+=oe,M.raws.value&&(M.raws.value+=oe))}he=!1;break;case y.str:if(!M.attribute||!M.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:Se[h.FIELDS.START_POS]});var Ke=(0,d.unescapeValue)(oe),lt=Ke.unescaped,Tt=Ke.quoteMark;M.value=lt,M.quoteMark=Tt,ie="value",(0,D.ensureObject)(M,"raws"),M.raws.value=oe,he=!1;break;case y.equals:if(!M.attribute)return this.expected("attribute",Se[h.FIELDS.START_POS],oe);if(M.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:Se[h.FIELDS.START_POS]});M.operator=M.operator?M.operator+oe:oe,ie="operator",he=!1;break;case y.comment:if(ie)if(he||ye&&ye[h.FIELDS.TYPE]===y.space||ie==="insensitive"){var Ze=(0,D.getProp)(M,"spaces",ie,"after")||"",pt=(0,D.getProp)(M,"raws","spaces",ie,"after")||Ze;(0,D.ensureObject)(M,"raws","spaces",ie),M.raws.spaces[ie].after=pt+oe}else{var jt=M[ie]||"",Gt=(0,D.getProp)(M,"raws",ie)||jt;(0,D.ensureObject)(M,"raws"),M.raws[ie]=Gt+oe}else le=le+oe;break;default:return this.error('Unexpected "'+oe+'" found.',{index:Se[h.FIELDS.START_POS]})}re++}P(M,"attribute"),P(M,"namespace"),this.newNode(new d.default(M)),this.position++},A.parseWhitespaceEquivalentTokens=function(w){w<0&&(w=this.tokens.length);var q=this.position,V=[],M="",re=void 0;do if(z[this.currToken[h.FIELDS.TYPE]])this.options.lossy||(M+=this.content());else if(this.currToken[h.FIELDS.TYPE]===y.comment){var ce={};M&&(ce.before=M,M=""),re=new a.default({value:this.content(),source:I(this.currToken),sourceIndex:this.currToken[h.FIELDS.START_POS],spaces:ce}),V.push(re)}while(++this.position<w);if(M){if(re)re.spaces.after=M;else if(!this.options.lossy){var le=this.tokens[q],ie=this.tokens[this.position-1];V.push(new s.default({value:"",source:X(le[h.FIELDS.START_LINE],le[h.FIELDS.START_COL],ie[h.FIELDS.END_LINE],ie[h.FIELDS.END_COL]),sourceIndex:le[h.FIELDS.START_POS],spaces:{before:M,after:""}}))}}return V},A.convertWhitespaceNodesToSpace=function(w,q){var V=this;q===void 0&&(q=!1);var M="",re="";w.forEach(function(le){var ie=V.lossySpace(le.spaces.before,q),he=V.lossySpace(le.rawSpaceBefore,q);M+=ie+V.lossySpace(le.spaces.after,q&&ie.length===0),re+=ie+le.value+V.lossySpace(le.rawSpaceAfter,q&&he.length===0)}),re===M&&(re=void 0);var ce={space:M,rawSpace:re};return ce},A.isNamedCombinator=function(w){return w===void 0&&(w=this.position),this.tokens[w+0]&&this.tokens[w+0][h.FIELDS.TYPE]===y.slash&&this.tokens[w+1]&&this.tokens[w+1][h.FIELDS.TYPE]===y.word&&this.tokens[w+2]&&this.tokens[w+2][h.FIELDS.TYPE]===y.slash},A.namedCombinator=function(){if(this.isNamedCombinator()){var w=this.content(this.tokens[this.position+1]),q=(0,D.unesc)(w).toLowerCase(),V={};q!==w&&(V.value="/"+w+"/");var M=new m.default({value:"/"+q+"/",source:X(this.currToken[h.FIELDS.START_LINE],this.currToken[h.FIELDS.START_COL],this.tokens[this.position+2][h.FIELDS.END_LINE],this.tokens[this.position+2][h.FIELDS.END_COL]),sourceIndex:this.currToken[h.FIELDS.START_POS],raws:V});return this.position=this.position+3,M}else this.unexpected()},A.combinator=function(){var w=this;if(this.content()==="|")return this.namespace();var q=this.locateNextMeaningfulToken(this.position);if(q<0||this.tokens[q][h.FIELDS.TYPE]===y.comma){var V=this.parseWhitespaceEquivalentTokens(q);if(V.length>0){var M=this.current.last;if(M){var re=this.convertWhitespaceNodesToSpace(V),ce=re.space,le=re.rawSpace;le!==void 0&&(M.rawSpaceAfter+=le),M.spaces.after+=ce}else V.forEach(function(Le){return w.newNode(Le)})}return}var ie=this.currToken,he=void 0;q>this.position&&(he=this.parseWhitespaceEquivalentTokens(q));var Se;if(this.isNamedCombinator()?Se=this.namedCombinator():this.currToken[h.FIELDS.TYPE]===y.combinator?(Se=new m.default({value:this.content(),source:I(this.currToken),sourceIndex:this.currToken[h.FIELDS.START_POS]}),this.position++):z[this.currToken[h.FIELDS.TYPE]]||he||this.unexpected(),Se){if(he){var oe=this.convertWhitespaceNodesToSpace(he),ye=oe.space,Ae=oe.rawSpace;Se.spaces.before=ye,Se.rawSpaceBefore=Ae}}else{var Be=this.convertWhitespaceNodesToSpace(he,!0),$e=Be.space,Te=Be.rawSpace;Te||(Te=$e);var Me={},Ee={spaces:{}};$e.endsWith(" ")&&Te.endsWith(" ")?(Me.before=$e.slice(0,$e.length-1),Ee.spaces.before=Te.slice(0,Te.length-1)):$e.startsWith(" ")&&Te.startsWith(" ")?(Me.after=$e.slice(1),Ee.spaces.after=Te.slice(1)):Ee.value=Te,Se=new m.default({value:" ",source:T(ie,this.tokens[this.position-1]),sourceIndex:ie[h.FIELDS.START_POS],spaces:Me,raws:Ee})}return this.currToken&&this.currToken[h.FIELDS.TYPE]===y.space&&(Se.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(Se)},A.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var w=new n.default({source:{start:L(this.tokens[this.position+1])}});this.current.parent.append(w),this.current=w,this.position++},A.comment=function(){var w=this.currToken;this.newNode(new a.default({value:this.content(),source:I(w),sourceIndex:w[h.FIELDS.START_POS]})),this.position++},A.error=function(w,q){throw this.root.error(w,q)},A.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[h.FIELDS.START_POS]})},A.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[h.FIELDS.START_POS])},A.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[h.FIELDS.START_POS])},A.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[h.FIELDS.START_POS])},A.namespace=function(){var w=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[h.FIELDS.TYPE]===y.word)return this.position++,this.word(w);if(this.nextToken[h.FIELDS.TYPE]===y.asterisk)return this.position++,this.universal(w)},A.nesting=function(){if(this.nextToken){var w=this.content(this.nextToken);if(w==="|"){this.position++;return}}var q=this.currToken;this.newNode(new b.default({value:this.content(),source:I(q),sourceIndex:q[h.FIELDS.START_POS]})),this.position++},A.parentheses=function(){var w=this.current.last,q=1;if(this.position++,w&&w.type===$.PSEUDO){var V=new n.default({source:{start:L(this.tokens[this.position-1])}}),M=this.current;for(w.append(V),this.current=V;this.position<this.tokens.length&&q;)this.currToken[h.FIELDS.TYPE]===y.openParenthesis&&q++,this.currToken[h.FIELDS.TYPE]===y.closeParenthesis&&q--,q?this.parse():(this.current.source.end=Y(this.currToken),this.current.parent.source.end=Y(this.currToken),this.position++);this.current=M}else{for(var re=this.currToken,ce="(",le;this.position<this.tokens.length&&q;)this.currToken[h.FIELDS.TYPE]===y.openParenthesis&&q++,this.currToken[h.FIELDS.TYPE]===y.closeParenthesis&&q--,le=this.currToken,ce+=this.parseParenthesisToken(this.currToken),this.position++;w?w.appendToPropertyAndEscape("value",ce,ce):this.newNode(new s.default({value:ce,source:X(re[h.FIELDS.START_LINE],re[h.FIELDS.START_COL],le[h.FIELDS.END_LINE],le[h.FIELDS.END_COL]),sourceIndex:re[h.FIELDS.START_POS]}))}if(q)return this.expected("closing parenthesis",this.currToken[h.FIELDS.START_POS])},A.pseudo=function(){for(var w=this,q="",V=this.currToken;this.currToken&&this.currToken[h.FIELDS.TYPE]===y.colon;)q+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[h.FIELDS.TYPE]===y.word)this.splitWord(!1,function(M,re){q+=M,w.newNode(new l.default({value:q,source:T(V,w.currToken),sourceIndex:V[h.FIELDS.START_POS]})),re>1&&w.nextToken&&w.nextToken[h.FIELDS.TYPE]===y.openParenthesis&&w.error("Misplaced parenthesis.",{index:w.nextToken[h.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[h.FIELDS.START_POS])},A.space=function(){var w=this.content();this.position===0||this.prevToken[h.FIELDS.TYPE]===y.comma||this.prevToken[h.FIELDS.TYPE]===y.openParenthesis||this.current.nodes.every(function(q){return q.type==="comment"})?(this.spaces=this.optionalSpace(w),this.position++):this.position===this.tokens.length-1||this.nextToken[h.FIELDS.TYPE]===y.comma||this.nextToken[h.FIELDS.TYPE]===y.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(w),this.position++):this.combinator()},A.string=function(){var w=this.currToken;this.newNode(new s.default({value:this.content(),source:I(w),sourceIndex:w[h.FIELDS.START_POS]})),this.position++},A.universal=function(w){var q=this.nextToken;if(q&&this.content(q)==="|")return this.position++,this.namespace();var V=this.currToken;this.newNode(new f.default({value:this.content(),source:I(V),sourceIndex:V[h.FIELDS.START_POS]}),w),this.position++},A.splitWord=function(w,q){for(var V=this,M=this.nextToken,re=this.content();M&&~[y.dollar,y.caret,y.equals,y.word].indexOf(M[h.FIELDS.TYPE]);){this.position++;var ce=this.content();if(re+=ce,ce.lastIndexOf("\\")===ce.length-1){var le=this.nextToken;le&&le[h.FIELDS.TYPE]===y.space&&(re+=this.requiredSpace(this.content(le)),this.position++)}M=this.nextToken}var ie=N(re,".").filter(function(ye){var Ae=re[ye-1]==="\\",Be=/^\d+\.\d+%$/.test(re);return!Ae&&!Be}),he=N(re,"#").filter(function(ye){return re[ye-1]!=="\\"}),Se=N(re,"#{");Se.length&&(he=he.filter(function(ye){return!~Se.indexOf(ye)}));var oe=(0,x.default)(ne([0].concat(ie,he)));oe.forEach(function(ye,Ae){var Be=oe[Ae+1]||re.length,$e=re.slice(ye,Be);if(Ae===0&&q)return q.call(V,$e,oe.length);var Te,Me=V.currToken,Ee=Me[h.FIELDS.START_POS]+oe[Ae],Le=X(Me[1],Me[2]+ye,Me[3],Me[2]+(Be-1));if(~ie.indexOf(ye)){var De={value:$e.slice(1),source:Le,sourceIndex:Ee};Te=new i.default(P(De,"value"))}else if(~he.indexOf(ye)){var et={value:$e.slice(1),source:Le,sourceIndex:Ee};Te=new o.default(P(et,"value"))}else{var Ke={value:$e,source:Le,sourceIndex:Ee};P(Ke,"value"),Te=new c.default(Ke)}V.newNode(Te,w),w=null}),this.position++},A.word=function(w){var q=this.nextToken;return q&&this.content(q)==="|"?(this.position++,this.namespace()):this.splitWord(w)},A.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},A.parse=function(w){switch(this.currToken[h.FIELDS.TYPE]){case y.space:this.space();break;case y.comment:this.comment();break;case y.openParenthesis:this.parentheses();break;case y.closeParenthesis:w&&this.missingParenthesis();break;case y.openSquare:this.attribute();break;case y.dollar:case y.caret:case y.equals:case y.word:this.word();break;case y.colon:this.pseudo();break;case y.comma:this.comma();break;case y.asterisk:this.universal();break;case y.ampersand:this.nesting();break;case y.slash:case y.combinator:this.combinator();break;case y.str:this.string();break;case y.closeSquare:this.missingSquareBracket();case y.semicolon:this.missingBackslash();default:this.unexpected()}},A.expected=function(w,q,V){if(Array.isArray(w)){var M=w.pop();w=w.join(", ")+" or "+M}var re=/^[aeiou]/.test(w[0])?"an":"a";return V?this.error("Expected "+re+" "+w+', found "'+V+'" instead.',{index:q}):this.error("Expected "+re+" "+w+".",{index:q})},A.requiredSpace=function(w){return this.options.lossy?" ":w},A.optionalSpace=function(w){return this.options.lossy?"":w},A.lossySpace=function(w,q){return this.options.lossy?q?" ":"":w},A.parseParenthesisToken=function(w){var q=this.content(w);return w[h.FIELDS.TYPE]===y.space?this.requiredSpace(q):q},A.newNode=function(w,q){return q&&(/^ +$/.test(q)&&(this.options.lossy||(this.spaces=(this.spaces||"")+q),q=!0),w.namespace=q,P(w,"namespace")),this.spaces&&(w.spaces.before=this.spaces,this.spaces=""),this.current.append(w)},A.content=function(w){return w===void 0&&(w=this.currToken),this.css.slice(w[h.FIELDS.START_POS],w[h.FIELDS.END_POS])},A.locateNextMeaningfulToken=function(w){w===void 0&&(w=this.position+1);for(var q=w;q<this.tokens.length;)if(W[this.tokens[q][h.FIELDS.TYPE]]){q++;continue}else return q;return-1},C(Z,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),Z}();e.default=_,t.exports=e.default}(hr,hr.exports);var Lo=hr.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Lo);function n(a){return a&&a.__esModule?a:{default:a}}var i=function(){function a(c,s){this.func=c||function(){},this.funcRes=null,this.options=s}var o=a.prototype;return o._shouldUpdateSelector=function(s,l){l===void 0&&(l={});var d=Object.assign({},this.options,l);return d.updateSelector===!1?!1:typeof s!="string"},o._isLossy=function(s){s===void 0&&(s={});var l=Object.assign({},this.options,s);return l.lossless===!1},o._root=function(s,l){l===void 0&&(l={});var d=new r.default(s,this._parseOptions(l));return d.root},o._parseOptions=function(s){return{lossy:this._isLossy(s)}},o._run=function(s,l){var d=this;return l===void 0&&(l={}),new Promise(function(f,m){try{var b=d._root(s,l);Promise.resolve(d.func(b)).then(function(x){var h=void 0;return d._shouldUpdateSelector(s,l)&&(h=b.toString(),s.selector=h),{transform:x,root:b,string:h}}).then(f,m)}catch(x){m(x);return}})},o._runSync=function(s,l){l===void 0&&(l={});var d=this._root(s,l),f=this.func(d);if(f&&typeof f.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var m=void 0;return l.updateSelector&&typeof s!="string"&&(m=d.toString(),s.selector=m),{transform:f,root:d,string:m}},o.ast=function(s,l){return this._run(s,l).then(function(d){return d.root})},o.astSync=function(s,l){return this._runSync(s,l).root},o.transform=function(s,l){return this._run(s,l).then(function(d){return d.transform})},o.transformSync=function(s,l){return this._runSync(s,l).transform},o.process=function(s,l){return this._run(s,l).then(function(d){return d.string||d.root.toString()})},o.processSync=function(s,l){var d=this._runSync(s,l);return d.string||d.root.toString()},a}();e.default=i,t.exports=e.default})(dr,dr.exports);var Do=dr.exports,mi={},_e={};_e.__esModule=!0,_e.universal=_e.tag=_e.string=_e.selector=_e.root=_e.pseudo=_e.nesting=_e.id=_e.comment=_e.combinator=_e.className=_e.attribute=void 0;var Po=Ne(Pr),Oo=Ne(ii),zo=Ne(di),Bo=Ne(si),Io=Ne(ai),Fo=Ne(hi),Ao=Ne(ci),Ro=Ne(ri),Ho=Ne(ni),No=Ne(li),jo=Ne(oi),Go=Ne(ui);function Ne(t){return t&&t.__esModule?t:{default:t}}var qo=function(e){return new Po.default(e)};_e.attribute=qo;var Wo=function(e){return new Oo.default(e)};_e.className=Wo;var Uo=function(e){return new zo.default(e)};_e.combinator=Uo;var Zo=function(e){return new Bo.default(e)};_e.comment=Zo;var Yo=function(e){return new Io.default(e)};_e.id=Yo;var Xo=function(e){return new Fo.default(e)};_e.nesting=Xo;var Vo=function(e){return new Ao.default(e)};_e.pseudo=Vo;var Qo=function(e){return new Ro.default(e)};_e.root=Qo;var Ko=function(e){return new Ho.default(e)};_e.selector=Ko;var Jo=function(e){return new No.default(e)};_e.string=Jo;var e1=function(e){return new jo.default(e)};_e.tag=e1;var t1=function(e){return new Go.default(e)};_e.universal=t1;var ge={};ge.__esModule=!0,ge.isNode=Ar,ge.isPseudoElement=_i,ge.isPseudoClass=h1,ge.isContainer=f1,ge.isNamespace=p1,ge.isUniversal=ge.isTag=ge.isString=ge.isSelector=ge.isRoot=ge.isPseudo=ge.isNesting=ge.isIdentifier=ge.isComment=ge.isCombinator=ge.isClassName=ge.isAttribute=void 0;var be=ue,Ie,r1=(Ie={},Ie[be.ATTRIBUTE]=!0,Ie[be.CLASS]=!0,Ie[be.COMBINATOR]=!0,Ie[be.COMMENT]=!0,Ie[be.ID]=!0,Ie[be.NESTING]=!0,Ie[be.PSEUDO]=!0,Ie[be.ROOT]=!0,Ie[be.SELECTOR]=!0,Ie[be.STRING]=!0,Ie[be.TAG]=!0,Ie[be.UNIVERSAL]=!0,Ie);function Ar(t){return typeof t=="object"&&r1[t.type]}function je(t,e){return Ar(e)&&e.type===t}var gi=je.bind(null,be.ATTRIBUTE);ge.isAttribute=gi;var n1=je.bind(null,be.CLASS);ge.isClassName=n1;var i1=je.bind(null,be.COMBINATOR);ge.isCombinator=i1;var s1=je.bind(null,be.COMMENT);ge.isComment=s1;var a1=je.bind(null,be.ID);ge.isIdentifier=a1;var o1=je.bind(null,be.NESTING);ge.isNesting=o1;var Rr=je.bind(null,be.PSEUDO);ge.isPseudo=Rr;var l1=je.bind(null,be.ROOT);ge.isRoot=l1;var c1=je.bind(null,be.SELECTOR);ge.isSelector=c1;var u1=je.bind(null,be.STRING);ge.isString=u1;var vi=je.bind(null,be.TAG);ge.isTag=vi;var d1=je.bind(null,be.UNIVERSAL);ge.isUniversal=d1;function _i(t){return Rr(t)&&t.value&&(t.value.startsWith("::")||t.value.toLowerCase()===":before"||t.value.toLowerCase()===":after"||t.value.toLowerCase()===":first-letter"||t.value.toLowerCase()===":first-line")}function h1(t){return Rr(t)&&!_i(t)}function f1(t){return!!(Ar(t)&&t.walk)}function p1(t){return gi(t)||vi(t)}(function(t){t.__esModule=!0;var e=ue;Object.keys(e).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===e[i]||(t[i]=e[i])});var r=_e;Object.keys(r).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===r[i]||(t[i]=r[i])});var n=ge;Object.keys(n).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===n[i]||(t[i]=n[i])})})(mi),function(t,e){e.__esModule=!0,e.default=void 0;var r=o(Do),n=a(mi);function i(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return i=function(){return l},l}function a(l){if(l&&l.__esModule)return l;if(l===null||typeof l!="object"&&typeof l!="function")return{default:l};var d=i();if(d&&d.has(l))return d.get(l);var f={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in l)if(Object.prototype.hasOwnProperty.call(l,b)){var x=m?Object.getOwnPropertyDescriptor(l,b):null;x&&(x.get||x.set)?Object.defineProperty(f,b,x):f[b]=l[b]}return f.default=l,d&&d.set(l,f),f}function o(l){return l&&l.__esModule?l:{default:l}}var c=function(d){return new r.default(d)};Object.assign(c,n),delete c.__esModule;var s=c;e.default=s,t.exports=e.default}(ur,ur.exports);var m1=ur.exports;const g1=Sa,yi=m1,v1=yi();var _1={isUsableColor(t,e){return g1(e)&&t!=="gray"&&e[600]},commonTrailingPseudos(t){let e=v1.astSync(t),r=[];for(let[i,a]of e.nodes.entries())for(const[o,c]of[...a.nodes].reverse().entries()){if(c.type!=="pseudo"||!c.value.startsWith("::"))break;r[o]=r[o]||[],r[o][i]=c}let n=yi.selector();for(const i of r){if(!i)continue;if(new Set([...i.map(o=>o.value)]).size>1)break;i.forEach(o=>o.remove()),n.prepend(i[0])}return n.nodes.length?[n.toString(),e.toString()]:[null,t]}};const y1=Kn,C1=ca,b1=ha,x1=fa,{commonTrailingPseudos:w1}=_1,Ci={};function Hr(t,{className:e,modifier:r,prefix:n}){let i=n(`.not-${e}`).slice(1),a=t.startsWith(">")?`${r==="DEFAULT"?`.${e}`:`.${e}-${r}`} `:"",[o,c]=w1(t);return o?`:where(${a}${c}):not(:where([class~="${i}"],[class~="${i}"] *))${o}`:`:where(${a}${t}):not(:where([class~="${i}"],[class~="${i}"] *))`}function bi(t){return typeof t=="object"&&t!==null}function S1(t={},{target:e,className:r,modifier:n,prefix:i}){function a(o,c){return e==="legacy"?[o,c]:Array.isArray(c)?[o,c]:bi(c)?Object.values(c).some(bi)?[Hr(o,{className:r,modifier:n,prefix:i}),c,Object.fromEntries(Object.entries(c).map(([l,d])=>a(l,d)))]:[Hr(o,{className:r,modifier:n,prefix:i}),c]:[o,c]}return Object.fromEntries(Object.entries(C1({},...Object.keys(t).filter(o=>Ci[o]).map(o=>Ci[o](t[o])),...b1(t.css||{}))).map(([o,c])=>a(o,c)))}var xi=y1.withOptions(({className:t="prose",target:e="modern"}={})=>function({addVariant:r,addComponents:n,theme:i,prefix:a}){let o=i("typography"),c={className:t,prefix:a};for(let[s,...l]of[["headings","h1","h2","h3","h4","h5","h6","th"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["p"],["a"],["blockquote"],["figure"],["figcaption"],["strong"],["em"],["kbd"],["code"],["pre"],["ol"],["ul"],["li"],["table"],["thead"],["tr"],["th"],["td"],["img"],["video"],["hr"],["lead",'[class~="lead"]']]){l=l.length===0?[s]:l;let d=e==="legacy"?l.map(f=>`& ${f}`):l.join(", ");r(`${t}-${s}`,e==="legacy"?d:`& :is(${Hr(d,c)})`)}n(Object.keys(o).map(s=>({[s==="DEFAULT"?`.${t}`:`.${t}-${s}`]:S1(o[s],{target:e,className:t,modifier:s,prefix:a})})))},()=>({theme:{typography:x1}}));const wi=yt(xi),T1=Xt({__proto__:null,default:wi},[xi]);var Si={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});const e=n=>Object.assign({},...Object.entries(n!=null?n:{}).flatMap(([i,a])=>typeof a=="object"?Object.entries(e(a)).map(([o,c])=>({[i+(o==="DEFAULT"?"":`-${o}`)]:c})):[{[`${i}`]:a}])),r=e})(Si);var k1={importDefault:t=>t&&t.__esModule?t.default:t};const $1=Si,{importDefault:E1}=k1,M1=E1($1),Nr=["track","thumb","corner"],Bt=(t,e)=>e?{"@supports (-moz-appearance:none)":t}:t,L1=({addBase:t},e)=>{t({"*":Bt({"scrollbar-color":"initial","scrollbar-width":"initial"},e==="pseudoelements")})},Ti=()=>({...Object.fromEntries(Nr.map(t=>[[`&::-webkit-scrollbar-${t}`,{"background-color":`var(--scrollbar-${t})`,"border-radius":`var(--scrollbar-${t}-radius)`}]]).flat())}),D1=({preferPseudoElements:t})=>({".scrollbar":{...Ti(),...Bt({"scrollbar-width":"auto","scrollbar-color":"var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)"},t),"&::-webkit-scrollbar":{display:"block",width:"var(--scrollbar-width, 16px)",height:"var(--scrollbar-height, 16px)"}},".scrollbar-thin":{...Ti(),...Bt({"scrollbar-width":"thin","scrollbar-color":"var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)"},t),"&::-webkit-scrollbar":{display:"block",width:"8px",height:"8px"}},".scrollbar-none":{...Bt({"scrollbar-width":"none"},t),"&::-webkit-scrollbar":{display:"none"}}}),ki=t=>typeof t=="function"?t({}):t;var P1={addBaseStyles:L1,addBaseSizeUtilities:({addUtilities:t},e)=>{t(D1({preferPseudoElements:e==="pseudoelements"}))},addColorUtilities:({matchUtilities:t,theme:e})=>{const r=M1(e("colors")),n=Object.fromEntries(Object.entries(r).map(([i,a])=>[i,ki(a)]));Nr.forEach(i=>{t({[`scrollbar-${i}`]:a=>({[`--scrollbar-${i}`]:ki(a)})},{values:n,type:"color"})})},addRoundedUtilities:({theme:t,matchUtilities:e})=>{Nr.forEach(r=>{e({[`scrollbar-${r}-rounded`]:n=>({[`--scrollbar-${r}-radius`]:n})},{values:t("borderRadius")})})},addSizeUtilities:({matchUtilities:t,theme:e})=>{["width","height"].forEach(r=>{t({[`scrollbar-${r[0]}`]:n=>({[`--scrollbar-${r}`]:n})},{values:e(r)})})}},O1={addVariants:({addVariant:t})=>{t("scrollbar-hover","&::-webkit-scrollbar-thumb:hover"),t("scrollbar-track-hover","&::-webkit-scrollbar-track:hover"),t("scrollbar-corner-hover","&::-webkit-scrollbar-corner:hover"),t("scrollbar-active","&::-webkit-scrollbar-thumb:active"),t("scrollbar-track-active","&::-webkit-scrollbar-track:active"),t("scrollbar-corner-active","&::-webkit-scrollbar-corner:active")}};const z1=Kn,{addBaseStyles:B1,addBaseSizeUtilities:I1,addColorUtilities:F1,addRoundedUtilities:A1,addSizeUtilities:R1}=P1,{addVariants:H1}=O1;var $i=z1.withOptions((t={})=>e=>{var n;let r=(n=t.preferredStrategy)!=null?n:"standard";r!=="standard"&&r!=="pseudoelements"&&(console.warn("WARNING: tailwind-scrollbar preferredStrategy should be 'standard' or 'pseudoelements'"),r="standard"),B1(e,r),I1(e,r),F1(e),H1(e),t.nocompatible&&(A1(e),R1(e))});const Ei=yt($i),N1=Xt({__proto__:null,default:Ei},[$i]);var It={exports:{}};const Ct=Xn||la,j1={50:"#FCE3E4",100:"#F9CDCE",200:"#F39699",300:"#ED6368",400:"#E72C32",500:"#C4161C",600:"#9C1216",700:"#770D11",800:"#4E090B",900:"#290506"},Pe={warning:Ct.amber,error:Ct.red,info:Ct.slate,success:Ct.emerald,primary:Ct.blue,brand:j1},G1={...Pe,warning:Pe.warning[500],"warning-darken":Pe.warning[600],"warning-lighten":Pe.warning[400],success:Pe.success[500],"success-darken":Pe.success[600],"success-lighten":Pe.success[400],error:Pe.error[500],"error-darken":Pe.error[600],"error-lighten":Pe.error[400],info:Pe.info[500],"info-darken":Pe.info[600],"info-lighten":Pe.info[400],primary:Pe.primary[500],"primary-darken":Pe.primary[600],"primary-lighten":Pe.primary[400]},q1={prefix:"e-",dark:"class",corePlugins:{preflight:!1},content:["./src/**/*.{html,js,vue,ts}"],theme:{extend:{ringWidth:{1:"1px"},colors:G1,backgroundColor:{surface:{DEFAULT:"#fff",hover:"#e0e2ec","hover-transparent":"rgba(224,226,236,0.64)",active:"#e0ebff"},"surface-dark":{DEFAULT:"#111827",hover:"#263043","hover-transparent":"rgba(38,48,67,0.53)",active:"#003563"}},textColor:{surface:{DEFAULT:"rgba(0, 0, 0, .87)",active:"#1976d2"},"surface-dark":{DEFAULT:"#f6f9ff",active:"#629efc"}},borderColor:{surface:{DEFAULT:"rgb(252, 252, 255)"},"surface-dark":{DEFAULT:"rgba(255, 255, 255, 0.12)"}},lineHeight:{xs:"1rem",sm:"1.25rem",base:"1.5rem",lg:"1.75rem",xl:"1.75rem","2xl":"2rem","3xl":"2.25rem","4xl":"2.5rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},maxWidth:{"1/12":"8.333333333%","2/12":"16.666666666%","3/12":"25%","4/12":"33.333333333%","5/12":"41.666666667%","6/12":"50%","7/12":"58.333333334%","8/12":"66.666666666%","9/12":"75%","10/12":"83.333333334%","11/12":"91.666666666%","12/12":"100%"},blur:{"video-poster":"32px"},transitionProperty:{"opacity-transform":"opacity, transform"},transitionDuration:{600:"600ms"}},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},plugins:[wi||T1,Ei||N1({nocompatible:!0,preferredStrategy:"pseudoelements"})],safelist:[{pattern:/e-w-(full|auto)/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-grow/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-basis-(\d{1,2}\/\d{1,2}|full|auto|0)/,variants:["lg","md","sm","xs","xl"]},{pattern:/^!?e-max-w-(\d{1,2}\/\d{1,2})/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-offset-(1[0-2]|[1-9])/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-items-(start|center|end|baseline|stretch)/},{pattern:/e-self-(start|center|end|baseline|stretch)/},{pattern:/e-justify-(around|between|center|end|evenly|normal|start|stretch)/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-content-(around|baseline|between|center|end|evenly|normal|start|stretch)/},{pattern:/e-m[trblxy]?-[\w\-/]+/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-p[trblxy]?-[\w\-/]+/,variants:["lg","md","sm","xs","xl"]},"e-tiny","e-caption","e-body","e-title-2","e-title-1","e-display-3","e-display-2","e-display-1",{pattern:/e-text-(xs|sm|base|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl|8xl|9xl)/},{pattern:/e-border-(warning|error|info|success|primary|brand|surface)-./},{pattern:/e-text-(warning|error|info|success|primary|brand|surface)-./},{pattern:/e-bg-(warning|error|info|success|primary|brand|surface)-./}]};It.exports=q1;const W1=(It.exports==null?{}:It.exports).default||It.exports,jr=oa(W1),Mi=jr.theme.fontSize,Li=jr.theme.colors,U1=[K.Dot,K.Xs,K.Sm,K.Md,K.Lg,K.Xl],Z1=[K.Xs,K.Sm,K.Md,K.Lg,K.Xl,K.TwoXl],Di=[K.Xs,K.Sm,K.Md,K.Base,K.Lg,K.Xl,K.TwoXl,K.ThreeXl,K.FourXl,K.FiveXl,K.SixXl,K.SevenXl,K.EightXl,K.NineXl],Y1=[K.Sm,K.Md,K.Lg],X1=[se.Warning,se.Error,se.Info,se.Success,se.Primary,se.Default],V1=[se.Warning,se.Error,se.Info,se.Success,se.Primary,se.Default],Q1=[Oe.Top,Oe.Bottom,Oe.Right,Oe.Left],K1=["play","pause","ended","loadeddata","waiting","playing","timeupdate","canplay","canplaythrough","statechanged"],J1=F.extend({name:"EIcon",props:{icon:{type:String,default:""},color:{type:String,default:se.Default},size:{type:String,default:K.Sm}},computed:{sizes(){return Di.reduce((t,e)=>({...t,[e]:`e-text-${e}`}),{})},iconClasses(){var n,i;const t=this.sizes[this.size]||this.sizes[K.Sm],e=`${((i=(n=this.icon)==null?void 0:n.split(" "))==null?void 0:i.length)>1?this.icon:`fa fa-${this.icon}`}`;return["e-inline-flex e-items-center e-justify-center e-rounded-full",this.color,e,t]}}});var e0=function(){var e=this,r=e._self._c;return r("div",e._g(e._b({staticClass:"e-icon"},"div",e.$attrs,!1),e.$listeners),[r("i",{class:e.iconClasses})])},t0=[],r0=H(J1,e0,t0,!1,null,null,null,null);const We=r0.exports,n0=F.extend({name:"ESpinner",props:{dark:{type:Boolean,default:!1},color:{type:Boolean,default:!0},animationDuration:{type:[Number,String],default:1e3},size:{type:String,default:K.Base},opacity:{type:[String,Number],default:1}},data(){return{sizes:Mi,colors:Li}},computed:{computedSize(){return this.sizes[K[this.size]]||this.size||this.sizes[K.Base]},fill(){let t={primary:this.colors.brand[500],secondary:this.colors.neutral[300]};return this.dark&&!this.color&&(t={primary:this.colors.neutral[100],secondary:this.colors.neutral[100]}),!this.dark&&this.color&&(t={primary:this.colors.brand[500],secondary:this.colors.neutral[950]}),!this.dark&&!this.color&&(t={primary:this.colors.neutral[200],secondary:this.colors.neutral[200]}),t}},methods:{getNthPathStyle(t){const e=typeof this.animationDuration=="string"?Number.parseInt(this.animationDuration):this.animationDuration;return{animationDuration:`${this.animationDuration}ms`,animationDelay:`${t/10*e}ms`,fill:`${this.fill[t%2===0?"primary":"secondary"]}`}}}}),Z7="";var i0=function(){var e=this,r=e._self._c;return r("svg",{staticClass:"e-spinner e-block",class:{"e-spinner--dark":e.dark,"e-spinner--grey":!e.color},style:{opacity:e.opacity},attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1629.32 1608.86",width:e.computedSize,height:e.computedSize}},[r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(0),attrs:{d:"m1254.12,591.61C992.01,401.11,439.78,0,439.78,0h601.2c14.3,0,48.95,9.02,62.54,38.01,55.27,117.88,111.32,235.46,170.48,351.43,33.16,70.9-8.99,170.35-19.87,202.16"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(1),attrs:{d:"m1404.65,131.67c-29.37,89.94-55.8,170.95-82.25,251.93-4.05.87-8.1,1.73-12.15,2.61-40.61-83.95-81.21-167.9-123.12-254.54h217.51Z"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(2),attrs:{d:"m1129.06,1093.51c100.75-307.98,312.75-956.75,312.75-956.75,0,0,180.36,558.53,184.75,572.14,4.39,13.59,6.45,49.34-16.96,71.19-95.21,88.81-189.88,178.28-282.06,270.2-57.29,53.34-164.86,43.8-198.48,43.21"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(3),attrs:{d:"m1342.3,1083.06c66.6-63.43,133.22-126.86,207.93-197.98,21.51,73.55,40.3,137.81,60.64,207.37h-263.35c-1.75-3.13-3.48-6.27-5.22-9.39"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(4),attrs:{d:"m610.27,1137.17c324.03-.53,1006.55-1.85,1006.55-1.85,0,0-474.19,345.83-485.74,354.25-11.55,8.42-44.87,21.56-72.94,6.14-114.11-62.68-228.69-124.66-344.81-183.5-68.56-37.76-93.12-142.93-103.06-175.04"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(5),attrs:{d:"m938.58,1468.29c-62.81,42.58-118.35,80.24-180.28,122.23-28.35-87.22-54.62-168.03-80.89-248.86,2.62-2.92,5.26-5.85,7.9-8.76,81.89,43.78,163.79,87.56,253.26,135.39"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(6),attrs:{d:"m413.07,652.86c101.35,307.77,314.99,956,314.99,956,0,0-476.23-343.04-487.83-351.39-11.58-8.36-34.44-35.93-28.52-67.4,24.07-127.96,47.3-256.13,67.09-384.8,14.54-76.9,106.84-132.96,134.28-152.42"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(7),attrs:{d:"m197.48,1068.8c-62.36-47.73-115.99-88.79-176.78-135.33,75.54-54.91,146.18-106.24,216.83-157.57,3.73,2.24,7.45,4.47,11.19,6.71-16.36,91.3-32.7,182.61-51.25,286.19"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(8),attrs:{d:"m813.58,314.41C551.63,505.15,0,907.07,0,907.07c0,0,180.68-558.4,185.09-572.01,4.39-13.59,23.65-43.78,55.41-47.8,129.19-16.29,258.32-33.41,386.86-53.99,77.67-9.72,159.3,60.97,186.22,81.13"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(9),attrs:{d:"m635.14,199.78c-91.99,12.38-183.97,24.77-288.07,38.76,25.77-73.18,48.3-137.14,73.8-209.53,76.56,55.41,147.27,106.58,217.97,157.75-1.23,4.34-2.46,8.68-3.69,13.02"}})])},s0=[],a0=H(n0,i0,s0,!1,null,"9a1333ac",null,null);const Gr=a0.exports,o0=F.extend({props:{align:{type:String,default:void 0},alignContent:{type:String,default:void 0},justify:{type:String,default:void 0},justifyXs:{type:String,default:void 0},justifySm:{type:String,default:void 0},justifyMd:{type:String,default:void 0},justifyLg:{type:String,default:void 0},justifyXl:{type:String,default:void 0},noGutters:{type:Boolean,default:!1}},computed:{justifyClasses(){return{[`e-justify-${this.justify}`]:!!this.justify,[`xs:e-justify-${this.justifySm}`]:!!this.justifySm,[`sm:e-justify-${this.justifySm}`]:!!this.justifySm,[`md:e-justify-${this.justifyMd}`]:!!this.justifyMd,[`lg:e-justify-${this.justifyLg}`]:!!this.justifyLg,[`xl:e-justify-${this.justifyXl}`]:!!this.justifyXl}},rowClasses(){return{...this.align?{[`e-items-${this.align}`]:!0}:{},...this.alignContent?{[`e-content-${this.alignContent}`]:!0}:{},...this.noGutters?{"e-row--no-gutters":!0}:{},...this.justifyClasses}}}}),Y7="";var l0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-row e-flex e-flex-wrap",class:e.rowClasses},[e._t("default")],2)},c0=[],u0=H(o0,l0,c0,!1,null,null,null,null);const qr=u0.exports,d0=F.extend({props:{alignSelf:{type:String,default:"auto"},cols:{type:[Boolean,String,Number],default:void 0},lg:{type:[Boolean,String,Number],default:void 0},md:{type:[Boolean,String,Number],default:void 0},offset:{type:[String,Number],default:void 0},offsetLg:{type:[String,Number],default:void 0},offsetMd:{type:[String,Number],default:void 0},offsetSm:{type:[String,Number],default:void 0},offsetXs:{type:[String,Number],default:void 0},offsetXl:{type:[String,Number],default:void 0},sm:{type:[Boolean,String,Number],default:void 0},xs:{type:[Boolean,String,Number],default:void 0},xl:{type:[Boolean,String,Number],default:void 0}},computed:{colClasses(){return{...this.alignSelf?{[`e-self-${this.alignSelf}`]:!0}:{},[this.autoClasses("xs:",this.xs)]:this.isSizePropAuto(this.xs),[this.autoClasses("sm:",this.sm)]:this.isSizePropAuto(this.sm),[this.autoClasses("md:",this.md)]:this.isSizePropAuto(this.md),[this.autoClasses("lg:",this.lg)]:this.isSizePropAuto(this.lg),[this.autoClasses("xl:e",this.xl)]:this.isSizePropAuto(this.xl),[this.autoClasses("",this.cols)]:this.isSizePropAuto(this.cols,!0),"xs:e-basis-full xs:!e-max-w-12/12":this.xs===12||this.xs==="12","sm:e-basis-full sm:!e-max-w-12/12":this.sm===12||this.sm==="12","md:e-basis-full md:!e-max-w-12/12":this.md===12||this.md==="12","lg:e-basis-full lg:!e-max-w-12/12":this.lg===12||this.lg==="12","xl:e-basis-full xl:!e-max-w-12/12":this.xl===12||this.xl==="12","e-basis-full e-max-w-12/12":this.cols===12||this.cols==="12",[`xs:e-basis-${this.xs}/12 xs:!e-max-w-${this.xs}/12`]:this.isSizePropertyNumeric(this.xs),[`sm:e-basis-${this.sm}/12 sm:!e-max-w-${this.sm}/12`]:this.isSizePropertyNumeric(this.sm),[`md:e-basis-${this.md}/12 md:!e-max-w-${this.md}/12`]:this.isSizePropertyNumeric(this.md),[`lg:e-basis-${this.lg}/12 lg:!e-max-w-${this.lg}/12`]:this.isSizePropertyNumeric(this.lg),[`xl:e-basis-${this.xl}/12 xl:!e-max-w-${this.xl}/12`]:this.isSizePropertyNumeric(this.xl),[`e-basis-${this.cols}/12 !e-max-w-${this.cols}/12`]:this.isSizePropertyNumeric(this.cols),[`xs:e-offset-${this.offsetXs}`]:this.offsetXs!==void 0,[`sm:e-offset-${this.offsetSm}`]:this.offsetSm!==void 0,[`md:e-offset-${this.offsetMd}`]:this.offsetMd!==void 0,[`lg:e-offset-${this.offsetLg}`]:this.offsetLg!==void 0,[`xl:e-offset-${this.offsetXl}`]:this.offsetXl!==void 0,[`e-offset-${this.offset}`]:this.offset!==void 0}}},methods:{autoClasses(t,e){return`${t}e-basis-${e==="auto"?"auto":"0"} ${t}e-grow${e==="auto"?"-0":""} ${t}e-w-${e==="auto"?"auto":"full"}`},isSizePropAuto(t,e=!1){return t==="auto"||t===0||t==="0"||e&&!t},isSizePropertyNumeric(t){const e=Number.parseInt(t);return t!=="auto"&&!isNaN(e)&&e>=1&&e<12}}}),X7="";var h0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-col",class:e.colClasses},[e._t("default")],2)},f0=[],p0=H(d0,h0,f0,!1,null,null,null,null);const Wr=p0.exports;function Ur(){const t=document;return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)}function Zr(t){if(Ur())return new Promise(r=>r(null));const e=t;return e.requestFullscreen?e==null?void 0:e.requestFullscreen():e.mozRequestFullScreen?e==null?void 0:e.mozRequestFullScreen():e.webkitRequestFullScreen?e==null?void 0:e.webkitRequestFullScreen():e.msRequestFullscreen?e==null?void 0:e.msRequestFullscreen():new Promise(r=>r(null))}function Yr(){if(!Ur())return new Promise(e=>e(null));const t=document;return t.exitFullscreen?t.exitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitCancelFullScreen?t.webkitCancelFullScreen():t.msExitFullscreen?t.msExitFullscreen():new Promise(e=>e(null))}function m0(t,e){let r=null;return function(...n){const i=this;r!==null&&clearTimeout(r),r=setTimeout(()=>{r=null,t.apply(i,n)},e||1e3)}}function g0(t=1){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let r="";for(let n=0;n<t;n++)r+=e.charAt(Math.floor(Math.random()*e.length));return r}function v0(t,e=0,r=0,n=t.naturalWidth,i=t.naturalHeight){const a=document.createElement("canvas"),o=a.getContext("2d");a.width=n,a.height=i,o==null||o.drawImage(t,e,r,n,i,0,0,n,i);const c=a.toDataURL();return a.remove(),c}function _0(t){return!!(t!=null&&t.length&&!isNaN(new Date(t).getTime()))}function Pi(t,e=1){let r=0,n=0,i=0;return t.length===4?(r=parseInt(t[1]+t[1],16),n=parseInt(t[2]+t[2],16),i=parseInt(t[3]+t[3],16)):t.length===7&&(r=parseInt(t[1]+t[2],16),n=parseInt(t[3]+t[4],16),i=parseInt(t[5]+t[6],16)),`rgba(${r}, ${n}, ${i}, ${e})`}function Oi(t,e=1){const r=t.match(/\d+/g);return r&&r.length===3?`rgba(${r[0]}, ${r[1]}, ${r[2]}, ${e})`:null}function zi(t){return t.startsWith("rgba")}function ht(t,e=1){return zi(t)?t:t.startsWith("#")?Pi(t,e):t.startsWith("rgb")?Oi(t,e):t}function y0(t){const e=JSON.stringify(t);return Bi(e).toString()}function Bi(t){let e=0,r,n;if(t.length===0)return e;for(r=0;r<t.length;r++)n=t.charCodeAt(r),e=(e<<5)-e+n,e|=0;return e}function Xr(t,e,r){const n=O.scaleLinear().domain([0,r-1]).range([0,1]);return Array.from({length:r},(i,a)=>O.interpolate(t,e)(n(a)))}const Ii={continuous:{monday:["00:00-23:59"],tuesday:["00:00-23:59"],wednesday:["00:00-23:59"],thursday:["00:00-23:59"],friday:["00:00-23:59"],saturday:["00:00-23:59"],sunday:["00:00-23:59"]},custom:{monday:["00:00-23:59"],tuesday:["00:00-23:59"],wednesday:["00:00-23:59"],thursday:["00:00-23:59"],friday:["00:00-23:59"],saturday:["00:00-23:59"],sunday:["00:00-23:59"]},workingHours:{monday:["08:00-18:00"],tuesday:["08:00-18:00"],wednesday:["08:00-18:00"],thursday:["08:00-18:00"],friday:["08:00-18:00"],saturday:[],sunday:[]},empty:{monday:[],tuesday:[],wednesday:[],thursday:[],friday:[],saturday:[],sunday:[]}},Fi=24*60-1,Ai=t=>{const[e,r]=t.split(":");return parseInt(e)*60+parseInt(r)},Vr=t=>{const e=Math.floor(t/60).toString().padStart(2,"0"),r=(t%60).toString().padStart(2,"0");return`${e}:${r}`};function Qr(t){return["monday","tuesday","wednesday","thursday","friday","saturday","sunday"].reduce((r,n)=>{const i=t[n];return{...r,[n]:i.length?i[0].split("-").map(a=>Ai(a)):[0,Fi]}},{})}function C0(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e,r.map(n=>{const[i,a]=n.split("-");let[o,c]=a.split(":");return o=parseInt(o),o=Math.max(0,o-1),`${i}-${o.toString().padStart(2,"0")}:${c}`})]))}const b0=F.extend({name:"EZoomable",props:{ignorePointerEvents:{type:Boolean,default:!1},withOverlay:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},data(){return{scale:1,minScale:1,maxScale:20,top:0,left:0,isPanning:!1,panStart:{x:0,y:0},isPinching:!1,previousPinchDistance:0,pinchDistance:0,pointers:{},transform:"matrix(1, 0, 0, 1, 0, 0)"}},computed:{contentStyle(){return{transform:this.transform}},isZoomed(){return this.scale>1}},watch:{contentStyle:{handler(t){this.$emit("on-frame-props-change",{imgStyle:t})},immediate:!0,deep:!0}},methods:{zoom(t){const e=this.$refs.container;if(this.disabled)return;const r=e.getBoundingClientRect(),n={x:r.width/2,y:r.height/2},i=this.scale;t<0?this.scale*=1.2:this.scale*=.8,this.updateZoomScale(),this.left=(this.left-n.x)*(this.scale/i)+n.x,this.top=(this.top-n.y)*(this.scale/i)+n.y;const a=0-r.width*(this.scale-1),o=0-r.height*(this.scale-1);this.left=Math.min(0,Math.max(a,this.left)),this.top=Math.min(0,Math.max(o,this.top)),this.updateTransform()},updateZoomScale(){this.scale>this.maxScale?this.scale=this.maxScale:this.scale<this.minScale&&(this.scale=this.minScale)},handleZoom(t){const e=this.$refs.container,r=this.$refs.content;if(t.preventDefault(),this.disabled)return;const n=e.getBoundingClientRect(),i=r.getBoundingClientRect();if(!n||!i)return;const a=t.clientX,o=t.clientY,c=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail)),s=this.scale;this.scale+=c/10,this.updateZoomScale();const l=((a-i.left)/i.width).toFixed(2),d=((o-i.top)/i.height).toFixed(2);this.left=Math.round(a-n.left-Number(l)*(i.width*this.scale/s)),this.top=Math.round(o-n.top-Number(d)*(i.height*this.scale/s));const f=0,m=0-n.width*(this.scale-1),b=0-n.height*(this.scale-1),x=0;this.left<m?this.left=m:this.left>f&&(this.left=f),this.top<b?this.top=b:this.top>x&&(this.top=x),this.updateTransform()},handleMouseDown(t){!this.isZoomed||this.disabled||(this.isPanning=!0,this.panStart={x:t.clientX,y:t.clientY})},handleMouseUp(){this.disabled||(this.isPanning=!1)},handleMouseLeave(){this.disabled||(this.isPanning=!1)},handleMouseMove(t){if(!this.isPanning||!this.isZoomed||this.disabled)return;const e=t.clientX-this.panStart.x,r=t.clientY-this.panStart.y;this.left+=e,this.top+=r,this.applyBoundsCorrection(),this.panStart={x:t.clientX,y:t.clientY},this.updateTransform()},applyBoundsCorrection(){const t=this.$refs.container,e=this.$refs.content,r=t.getBoundingClientRect(),n=e.getBoundingClientRect();if(!r||!n)return;const[i,a,o,c]=[r.top-n.top,n.right-r.right,n.bottom-r.bottom,r.left-n.left].map(s=>s<0?s:0);this.left+=c-a,this.top+=i-o},updateTransform(){this.transform=`matrix(${this.scale}, 0, 0, ${this.scale}, ${this.left}, ${this.top})`},getPointersDistance(t,e){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)},getPointersMidPoint(t,e){return{x:t.clientX+(e.clientX-t.clientX)/2,y:t.clientY+(e.clientY-t.clientY)/2}},updatePointerEvent(t){this.pointers[t.pointerId]=t},clearPointerEvent(t){this.$delete(this.pointers,t.pointerId)},updatePinchDistance(){const t=Object.values(this.pointers);t.length===2&&(this.pinchDistance=this.getPointersDistance(t[0],t[1]))},handlePointerDown(t){this.ignorePointerEvents||this.disabled||(this.updatePointerEvent(t),this.isPinching=Object.values(this.pointers).length===2,this.isPinching?(this.isPanning=!1,this.updatePinchDistance()):this.handleMouseDown(t))},handlePointerMove(t){if(!(this.ignorePointerEvents||this.disabled))if(this.updatePointerEvent(t),this.isPinching){this.previousPinchDistance=this.pinchDistance,this.updatePinchDistance();const e=this.pinchDistance/this.previousPinchDistance;this.scale*=e,this.updateZoomScale();const r=Object.values(this.pointers),n=this.getPointersMidPoint(r[0],r[1]);this.left=n.x-(n.x-this.left)*e,this.top=n.y-(n.y-this.top)*e,this.applyBoundsCorrection(),this.updateTransform()}else this.handleMouseMove(t)},handlePointerUp(t){this.ignorePointerEvents||this.disabled||(this.clearPointerEvent(t),this.previousPinchDistance=0,this.pinchDistance=0,this.isPanning=!1,this.isPinching=!1)}}}),V7="";var x0=function(){var e=this,r=e._self._c;return r("div",{ref:"container",staticClass:"e-zoomable e-w-full e-h-full"},[r("div",{staticClass:"e-w-full e-h-full",class:{"e-cursor-grab":e.isZoomed&&!e.disabled,"e-cursor-grabbing":e.isPanning&&!e.disabled},on:{mousewheel:e.handleZoom,mousedown:e.handleMouseDown,mouseup:e.handleMouseUp,mouseleave:e.handleMouseLeave,mousemove:e.handleMouseMove,pointerdown:e.handlePointerDown,pointermove:e.handlePointerMove,pointerup:e.handlePointerUp,pointercancel:e.handlePointerUp,pointerout:e.handlePointerUp,pointerleave:e.handlePointerUp}},[r("div",{ref:"content",staticClass:"e-zoomable__content e-w-full e-h-full e-transform-0 e-touch-none e-relative",style:e.contentStyle},[e._t("default")],2),e.withOverlay&&!e.disabled?r("div",{staticClass:"e-zoomable__overlay e-absolute e-w-full e-h-full e-bottom-0 e-left-0 e-overflow-hidden"},[e._t("overlay")],2):e._e()])])},w0=[],S0=H(b0,x0,w0,!1,null,"06b5341b",null,null);const Kr=S0.exports,Jr=new Intl.NumberFormat(void 0,{minimumIntegerDigits:2}),Ri=["play","pause","ended","loadeddata","waiting","playing","timeupdate","canplay","canplaythrough","statechanged","error"],en=t=>{const e=Math.floor(t%60),r=Math.floor(t/60)%60,n=Math.floor(t/3600);return n===0?`${r}:${Jr.format(e)}`:`${n}:${Jr.format(r)}:${Jr.format(e)}`},T0=F.extend({name:"EVideoPlayer",components:{ESpinner:Gr,EZoomable:Kr},props:{targetTimestamp:{type:[String,Date],default:void 0},sources:{type:[Array,String],required:!0},videoListeners:{type:Object,default:()=>({})},videoOptions:{type:Object,default:()=>({})},isHls:{type:Boolean,default:!1},isEdgeVideo:{type:Boolean,default:!1},edgeStreamingToken:{type:String,default:""},authToken:{type:String,default:""},pauseOnClick:{type:Boolean,default:!0},isHlsLoading:{type:Boolean,default:!1},isPlaying:{type:Boolean,default:!1},showLoadingAnimation:{type:Boolean,default:!1},isZoomable:{type:Boolean,default:!1},zoomableIgnorePointerEvents:{type:Boolean,default:!1},timezone:{type:String,default:"UTC"},playPauseAnimation:{type:Boolean,default:!0},disablePlayPauseAnimation:{type:Boolean,default:!1},isWebRtc:{type:Boolean,default:!1},withColoredLoader:{type:Boolean,default:!1},loaderSize:{type:String,default:"SevenXl"},withOverlayOnBackground:{type:Boolean,default:!1},fallbackSrc:{type:String,default:""},hlsOptions:{type:Object,default:()=>({})}},data(){return{playing:!1,percentagePlayed:0,videoLength:"0:00",duration:0,videoDuration:0,currentTime:"0:00",realtime:0,isScrubbing:!1,wasPaused:!1,isFullscreen:!1,isFinished:!1,isLoading:!0,isError:!1,player:new at,playbackRetries:0,preloadedSeconds:0,preloadedInterval:{}}},computed:{posterUrl(){const t=this.videoOptions;return(t==null?void 0:t.poster)||(t==null?void 0:t.backgroundUrl)},sourceItems(){return Array.isArray(this.sources)?this.sources:[{src:this.sources}]},withControls(){const t=this.videoOptions;return(t==null?void 0:t.controls)===!1?"hide":""},streamingToken(){return this.isEdgeVideo?this.edgeStreamingToken:this.authToken}},watch:{isPlaying:{immediate:!0,async handler(t){this.playing=t,t?await this.play():this.pause(),this.isHls&&(t?this.$emit("hls-play"):this.$emit("hls-pause"))}},preloadedSeconds(t){this.preloadedInterval={start:ke(this.targetTimestamp).format(),end:ke(this.targetTimestamp).add(t,"seconds").format()},this.$emit("preloaded-interval",this.preloadedInterval)},targetTimestamp:{immediate:!0,handler(t){var a,o;if(!this.isHls)return;const e=this.$refs.player,r=(a=this.preloadedInterval)==null?void 0:a.start,n=(o=this.preloadedInterval)==null?void 0:o.end;if(!(r&&n))return;const i=ke(t).isBetween(ke(r),ke(n),void 0,"[]");e.currentTime=0,i||this.initHls()}}},mounted(){this.isHls&&this.initHls(),this.bindEvents(),this.initializePlayer(),this.initializeFullscreenListeners()},beforeDestroy(){this.unbindEvents(),this.destroyPlayer(),this.removeFullscreenListeners()},methods:{initHls(t=""){var n,i,a,o,c;const e=this.$refs.player,r=this.sources[0];(n=this.player)!=null&&n.stopLoad&&this.player.stopLoad(),at.isSupported()&&(this.isLoading=!0,this.player=new at({startPosition:0,xhrSetup:s=>{this.streamingToken&&s.setRequestHeader("Authorization",`Bearer ${this.streamingToken}`)},...this.hlsOptions}),(i=this.player)==null||i.loadSource(t||r.src),(a=this.player)==null||a.attachMedia(e),(o=this.player)==null||o.on(at.Events.MANIFEST_PARSED,(s,l)=>{var m;const d=(m=l.levels[l.firstLevel])==null?void 0:m.details,f=d==null?void 0:d.startTimeOffset;e.currentTime=f||0,this.playing&&e.play()}),(c=this.player)==null||c.on(at.Events.ERROR,this.handleHlsError))},onContainerClick(){this.pauseOnClick&&this.togglePlay()},handle404Error(){this.isWebRtc||(this.isError=!0,this.isLoading=!1,this.playing=!1)},handleHlsError(t,e){var l;if(!e.fatal)return;this.$emit("error",e);const r=e.type===at.ErrorTypes.NETWORK_ERROR,n=e.type===at.ErrorTypes.MEDIA_ERROR,i=r&&((l=e.networkDetails)==null?void 0:l.status)===404,a=this.$refs.player,o=()=>this.fallbackSrc&&(a==null?void 0:a.currentSrc)!==this.fallbackSrc,c=()=>this.initHls(this.fallbackSrc),s=()=>{if(o()){c();return}this.player.destroy(),this.videoListeners.error?this.videoListeners.error():this.handle404Error()};if(i){s();return}if(r){console.error("A network error occurred:",e),o()?c():this.player.startLoad();return}n&&(console.error("A media error occurred:",e),o()?c():this.player.recoverMediaError()),s()},bindEvents(){const t=this.$refs.player;Ri.forEach(e=>{t.addEventListener(e,()=>this.bindVideoEvent(e),!0)})},onProgress(){const t=this.$refs.player;if(t&&t.buffered.length>0)try{this.preloadedSeconds=t.buffered.end(t.buffered.length-1)}catch(e){console.error("Error while fetching buffered end time:",e)}else console.log("No video data has been buffered yet.")},unbindEvents(){const t=this.$refs.player;Ri.forEach(e=>{t.removeEventListener(e,()=>this.bindVideoEvent(e),!0)})},bindVideoEvent(t){const e=this.$refs.player;if(!e)return;const r=this.$refs.timelineContainer;t==="loadeddata"&&(this.videoLength=en(e.duration)),r&&(t==="timeupdate"&&(this.percentagePlayed=(e==null?void 0:e.currentTime)/(e==null?void 0:e.duration)*100,r==null||r.style.setProperty("--progress-position",this.percentagePlayed.toString())),this.$emit(t,{event,player:e}))},initializePlayer(){const t=this.$refs.player;t&&(t.autoplay&&this.setPlaying(!0),document.addEventListener("mouseup",this.handleScrubbingOnMouseEnd),document.addEventListener("keydown",this.handleKeyDown))},destroyPlayer(){this.player&&(this.player.stopLoad(),this.player.destroy()),window.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("mouseup",this.handleScrubbingOnMouseEnd)},removeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.removeEventListener("fullscreenchange",this.handleFullscreenChange),t.removeEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.removeEventListener("mozfullscreenchange",this.handleFullscreenChange),t.removeEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},initializeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.addEventListener("fullscreenchange",this.handleFullscreenChange),t.addEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.addEventListener("mozfullscreenchange",this.handleFullscreenChange),t.addEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},handleFullscreenChange(){const t=document;this.isFullscreen=!!t.fullscreenElement||!!t.mozFullScreenElement||!!t.webkitFullscreenElement||!!t.msFullscreenElement||window.innerWidth==screen.width&&window.innerHeight==screen.height},isLooped(){return this.$refs.player.loop},handleScrubbingOnMouseEnd(t){this.isScrubbing&&this.toggleScrubbing(t)},handleEnded(){this.isFinished=!0,this.playing=!1},handleLoading(){this.isLoading=!1},async play(){const t=this.$refs.player;if(t)try{await t.play(),this.setPlaying(!0)}catch(e){console.error(e),this.playbackRetries+=1,this.isHls&&this.playbackRetries<3&&this.initHls()}},pause(){const t=this.$refs.player;t&&(t.pause(),this.setPlaying(!1))},async togglePlay(){this.playing?this.pause():await this.play()},setPlaying(t){this.playing=t},seekToPercentage(t){const e=this.$refs.player;if(!e)return;const r=t/100*e.duration;e.currentTime=r},convertTimeToDuration(t){return[parseInt(t/60%60,10),parseInt(t%60,10)].join(":").replace(/\b(\d)\b/g,"0$1")},closeFullscreenMode(){document.fullscreenElement&&(Yr().then(()=>{this.isFullscreen=!1}),this.isFullscreen=!1)},openFullscreenMode(){const t=this.$refs.videoContainer;t&&(Zr(t).then(()=>{this.isFullscreen=!0}),this.isFullscreen=!0)},toggleFullscreenMode(){this.isFullscreen?this.closeFullscreenMode():this.openFullscreenMode()},getDuration(){const t=this.$refs.player;this.videoLength=en(t.duration),this.videoDuration=t.duration},handleTimeUpdate(){const t=this.$refs.player,e=this.$refs.timelineContainer;if(!t||!e)return;this.currentTime=en(t.currentTime),this.realtime=t.currentTime;const r=Number(this.realtime)/Number(this.videoDuration);e.style.setProperty("--progress-position",r.toString())},handleTimelineUpdate(t){const e=this.$refs.player;if(!document.body.contains(e))return;const r=this.$refs.timelineContainer,n=r.getBoundingClientRect(),i=Math.min(Math.max(0,t.x-n.x),n.width)/n.width;r.style.setProperty("--preview-position",i.toString()),this.isScrubbing&&(t.preventDefault(),r.style.setProperty("--progress-position",i.toString()))},skip(t=5){const e=this.$refs.player;e.currentTime+=t},async toggleScrubbing(t){const e=this.$refs.timelineContainer,r=this.$refs.videoContainer,n=this.$refs.player;if(!n)return;const i=e.getBoundingClientRect(),a=Math.min(Math.max(0,t.x-i.x),i.width)/i.width;if(this.isScrubbing=(t.buttons&1)===1,r.classList.toggle("scrubbing",this.isScrubbing),this.isScrubbing){this.wasPaused=n.paused,await n.pause(),this.handleTimelineUpdate(t);return}if(this.realtime=a*this.videoDuration,n.currentTime=a*this.videoDuration,this.wasPaused)return;const o=n.play();o!==void 0&&o.then(()=>this.handleTimelineUpdate(t)).catch(console.error)},handleKeyDown(t){var r;const e=(r=document.activeElement)==null?void 0:r.tagName.toLowerCase();if(e!=="input")switch(t.key.toLowerCase()){case" ":if(e==="button")return;this.togglePlay();break;case"k":this.togglePlay();break;case"escape":t.preventDefault(),this.closeFullscreenMode(),this.isFullscreen=!1;break;case"f":this.openFullscreenMode(),this.isFullscreen=!0;break}}}}),Q7="";var k0=function(){var e=this,r=e._self._c;return r("div",{ref:"videoContainer",staticClass:"e-video-player video-container paused"},[r("EZoomable",{ref:"zoomable",attrs:{"ignore-pointer-events":e.zoomableIgnorePointerEvents,disabled:!e.isZoomable,"with-overlay":e.withOverlayOnBackground},on:{"on-frame-props-change":function(n){return e.$emit("on-frame-props-change",n)}},scopedSlots:e._u([{key:"overlay",fn:function(){return[e._t("player-container-overlay")]},proxy:!0}],null,!0)},[e._t("background",function(){return[r("div",{staticClass:"e-relative e-overflow-hidden",style:{height:e.$attrs.height,width:e.$attrs.width}},[e.posterUrl?r("img",{staticClass:"e-absolute e-block e-w-full e-scale-150 e-z-[-1] e-inset-0 e-m-auto e-blur-video-poster",style:{height:e.$attrs.height,width:e.$attrs.width},attrs:{src:e.posterUrl,alt:"background-image"},on:{error:function(n){return e.$emit("error",n)}}}):e._e()])]}),r("video",e._g(e._b({ref:"player",class:{"e-w-full e-h-full e-z-[5] e-min-h-[400px]":!0,"e-absolute e-inset-0":e.isZoomable,"e-relative":!e.isZoomable},attrs:{controls:!1,preload:"auto"},on:{ended:e.handleEnded,click:e.onContainerClick,loadedmetadata:e.getDuration,seeking:function(n){e.isLoading=!0},seeked:function(n){e.isLoading=!1},timeupdate:e.handleTimeUpdate,loadeddata:e.handleLoading}},"video",e.videoOptions,!1),e.videoListeners),[e.isWebRtc?e._e():e._l(e.sourceItems,function(n){return r("source",e._g({key:n.src,attrs:{src:n.src,type:n.type},on:{error:e.handle404Error}},e.videoListeners))})],2)],2),e.isLoading||e.showLoadingAnimation?r("div",{staticClass:"spinner-container"},[r("ESpinner",{attrs:{color:e.withColoredLoader,size:e.loaderSize,opacity:"0.6",dark:!0}})],1):e._e(),e._t("default"),e.isError?r("div",{staticClass:"spinner-container e-gap-3"},[e._t("error",function(){return[r("i",{staticClass:"fa-solid fa-video-slash fa-2xl e-align-middle"}),r("span",[e._v("This video file cannot be played.")])]})],2):e._e(),e._t("controls",function(){return[r("div",{class:["video-controls-container",e.withControls]},[r("div",{staticClass:"controls"},[r("button",{ref:"playPauseBtn",staticClass:"play-pause-btn fa-lg fa-solid fas",class:{"fa-play":!e.playing,"fa-pause":e.playing},attrs:{title:e.playing?"pause":"play"},on:{click:e.togglePlay}}),r("div",{staticClass:"duration-container"},[r("div",{ref:"currentTimeElem",staticClass:"current-time"},[e._v(" "+e._s(e.currentTime)+" ")]),e._v(" / "),r("div",{ref:"totalTimeElem",staticClass:"total-time"},[e._v(e._s(e.videoLength))])]),r("div",{ref:"timelineContainer",staticClass:"timeline-container",on:{mousemove:e.handleTimelineUpdate,mousedown:e.toggleScrubbing}},[e._m(0)]),r("button",{ref:"fullScreenBtn",staticClass:"full-screen-btn fa-solid",class:{"fa-expand":!e.isFullscreen,"fa-compress":e.isFullscreen},on:{click:e.toggleFullscreenMode}})])])]},{play:e.play,pause:e.pause,isPlaying:e.playing,playerInstance:e.player,toggleFullscreen:e.toggleFullscreenMode,currentTime:e.currentTime,videoLength:e.videoLength,isFullscreen:e.isFullscreen})],2)},$0=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"timeline"},[e("div",{staticClass:"thumb-indicator"})])}],E0=H(T0,k0,$0,!1,null,"d7aeb2b0",null,null);const Hi=E0.exports,Ve={bind(t,e){const{value:r}=e;if(typeof r!="function"){console.error("Invalid callback function provided to v-resize-observer");return}const n=new ResizeObserver(i=>{i[0]&&r(i[0])});n.observe(t),t.__resizeObserver__=n},unbind(t){t.__resizeObserver__&&(t.__resizeObserver__.disconnect(),delete t.__resizeObserver__)}},M0=(t,e)=>t===e||t.contains(e),L0=(t,e)=>r=>{M0(t,r.target)||e(r)},Ni=["mousedown","touchstart","click"],tn={bind(t,e){const r=t,n=e.value;if(typeof n!="function"){console.warn("v-click-outside requires a function value");return}r.clickOutsideHandler={events:Ni,handler:L0(r,n),callback:n},queueMicrotask(()=>{Ni.forEach(i=>{document.addEventListener(i,r.clickOutsideHandler.handler)})})},unbind(t){const e=t;e.clickOutsideHandler&&(e.clickOutsideHandler.events.forEach(r=>{document.removeEventListener(r,e.clickOutsideHandler.handler)}),delete e.clickOutsideHandler)}},ji=[{name:"resize-observer",definition:Ve},{name:"click-outside",definition:tn}],Je={transparencyGradient:"transparency-gradient",transparencyGradientLight:"transparency-gradient-light",transparencyGradientHover:"transparency-gradient-hover",loadingGradient:"loading-gradient",stripedPattern:"stripedPattern",clipPath:"clip-path"},me={xAxis:"e-x-axis",xAxisDark:"e-x-axis--dark",xAxisOverview:"e-x-axis-overview",xAxisDetailed:"e-x-axis-detailed",xAxisBackground:"e-x-axis-background",eventGroup:"event-group",eventGroupBg:"event-group-bg",eventGroupContent:"event-group-content",eventRect:"event-rect",eventRectContainer:"event-rect-container",eventBarContainer:"event-bar-container",eventBarContainerHovered:"event-bar-container--hovered",eventBarContainerSelected:"event-bar-container--selected",eventBar:"event-bar",eventBarHoverZone:"event-bar-hover-zone",eventRectText:"event-rect-text",eventRectHovered:"event-rect--hovered",eventRectSelected:"event-rect--selected",labelGroup:"label-g",labelBg:"label-bg",labelBgFill:"label-bg-fill",labelText:"label-text",loadingIndicator:"loading-indicator",_legacyLabelGroup:"legacy-label-g",_legacyLabelBg:"legacy-label-bg",_legacyLabelBgFill:"legacy-label-bg-fill",_legacyLabelText:"legacy-label-text",_legacyLoadingIndicator:"legacy-loading-indicator",selectedTimestampCursor:"selected-timestamp-cursor",marker:"marker",markerLabel:"marker-label",markerLine:"marker-line",markerDragged:"marker--dragged",milestone:"e-tl-milestone",milestoneBullet:"e-tl-milestone--bullet",milestoneDot:"e-tl-milestone--dot",milestoneContent:"e-tl-milestone-content",milestoneLine:"e-tl-milestone-line",milestonesContainer:"e-tl-milestones",milestoneHovered:"e-tl-milestone--hovered",milestoneSelected:"e-tl-milestone--selected",milestoneLabel:"e-tl-milestone-label",milestoneDotContainer:"e-tl-milestone-dot-container",milestoneDotLine:"e-tl-milestone-dot-line",milestoneDotDot:"e-tl-milestone-dot-dot",milestoneDotHovered:"e-tl-milestone-dot--hovered",barChartGroup:"bar-chart-group",lineGraphGroup:"line-graph-group",lineGraphGroupLabel:"line-graph-group-label",areaGraphPath:"area-graph-path",lineGraphPath:"line-graph-path",lineGraphHoverZone:"line-graph-hover-zone",lineGraphDot:"line-graph-dot",forbiddenInterval:"forbidden-interval"};function Qe({timestamp:t,timezone:e}){const r=Gi(t,e);return ke(t).add(r,"minutes").toDate()}function Ft({date:t,timezone:e}){const r=new Date(t).getTimezoneOffset(),n=Gi(t,e);return ke(t).add(r,"minutes").utcOffset(n,!0).format()}function Gi(t,e){return e?ke.tz(t,e).utcOffset():D0(t)}function D0(t){return ke.parseZone(t).utcOffset()}const P0=F.extend({name:"ETimelineMilestone",directives:{resizeObserver:Ve},props:{timeScale:{type:Function,required:!0},milestone:{type:Object,required:!0},y:{type:Number,required:!0},height:{type:Number,default:18},size:{type:Number,default:18},borderColor:{type:String,default:"#eee"},backgroundColor:{type:String,default:"#aaa"},borderWidth:{type:Number,default:2},transitionDuration:{type:Number,default:500},dot:{type:Boolean,default:!1},dotSize:{type:Number,default:8},lineWidth:{type:Number,default:2},lineHeight:{type:Number,default:28},timezone:{type:[String,void 0],default:void 0}},data(){return{classNames:me,timeouts:[],isInitialRender:!0,isMouseOver:!1,containerWidth:"",containerHeight:""}},computed:{transitionStyles(){return this.isInitialRender?{}:{transition:`transform ${this.transitionDuration}ms, width ${this.transitionDuration}ms, height ${this.transitionDuration}ms, padding ${this.transitionDuration}ms, border-radius ${this.transitionDuration}ms`}},sizeStyles(){return this.dot?{}:{width:`${this.isMouseOver?this.containerWidth:this.size}px`,height:`${this.isMouseOver?this.containerHeight:this.size}px`}},positionStyles(){return{left:`${this.timeScale(this.tzStringToDate(this.milestone.timestamp))}px`,top:`${this.linePosition}px`,transform:this.dot&&this.isMouseOver?`translateY(calc(-100% - ${this.lineHeight}px))`:""}},styles(){return{...this.sizeStyles,...this.positionStyles,backgroundColor:this.backgroundColor,borderColor:this.borderColor,borderWidth:`${this.borderWidth}px`,borderStyle:"solid",...this.transitionStyles}},linePosition(){const t=this.height/2;return this.y+t-1},contentStyles(){return this.transitionStyles},computedTransitionDuration(){return this.isInitialRender?0:this.transitionDuration},labelStyles(){return{transition:`opacity ${this.computedTransitionDuration}ms`}},dotContainerStyles(){return{top:this.isMouseOver?`calc(100% - ${this.borderWidth}px)`:`calc(50% + ${this.dotSize/2}px)`,height:`calc(${this.lineHeight}px + ${this.dotSize}px)`,left:`calc(50% - ${this.lineWidth}px / 2)`,transition:`${this.computedTransitionDuration}ms`}},lineStyles(){return{bottom:`${this.dotSize/2}px`,left:`calc(50% - ${this.lineWidth}px / 2)`,width:`${this.lineWidth}px`,height:this.isMouseOver?`${this.lineHeight}px`:"0",backgroundColor:this.borderColor,transition:`${this.computedTransitionDuration}ms`}},dotStyles(){return{top:`${this.lineHeight}px`,left:`calc(50% - ${this.dotSize}px / 2)`,width:`${this.dotSize}px`,height:`${this.dotSize}px`,backgroundColor:this.borderColor,transition:`${this.computedTransitionDuration}ms`}}},mounted(){this.$nextTick(()=>{this.dot||(this.onMilestoneMouseOver(),this.onMilestoneMouseLeave()),this.isInitialRender=!1})},methods:{onMilestoneMouseOver(t){if(this.isMouseOver=!0,this.$emit("hovered-milestone",this.milestone),this.dot)return;const e=(t==null?void 0:t.target)||this.$refs.container;if(!e)return;const r=e.children[0];if(!r)return;const n=r.children[0];if(!n)return;const i=n.getBoundingClientRect(),a=e.dataset.timeoutId;a&&(clearTimeout(Number(a)),e.dataset.timeoutId=""),e.dataset.initialWidth||(e.dataset.initialWidth=e.style.width),e.dataset.initialHeight||(e.dataset.initialHeight=e.style.height),this.containerWidth||(this.containerWidth=e.dataset.initialContentWidth=String(i.width)),this.containerHeight||(this.containerHeight=e.dataset.initialContentHeight=String(i.height)),e.dataset.transitionStart=String(Date.now()),e.style.borderRadius="0.5em",e.classList.add(me.milestoneHovered),r.style.opacity="1",r.style.width=this.containerWidth+"px",r.style.height=this.containerHeight+"px"},onMilestoneMouseMove(){this.timeouts.forEach(t=>clearTimeout(t)),this.isMouseOver=!0},onMilestoneMouseLeave(t){if(this.$emit("hovered-milestone",null),this.dot){this.timeouts.push(setTimeout(()=>{this.isMouseOver=!1},this.transitionDuration+100));return}const e=(t==null?void 0:t.target)||this.$refs.container;if(!e)return;e.style.width=e.dataset.initialWidth||"",e.style.height=e.dataset.initialHeight||"",e.style.borderRadius="10em";const r=e.children[0];if(!r)return;r.style.width="0",r.style.height="0",r.style.opacity="0";const n=Date.now()-Number(e.dataset.transitionStart),i=n>this.transitionDuration?this.transitionDuration:n,a=setTimeout(()=>{e.classList.remove(me.milestoneHovered),e.dataset.timeoutId=""},i);e.dataset.timeoutId=String(a),this.timeouts.push(a),this.isMouseOver=!1},onMilestoneClick(t,e){this.$emit("milestone-click",e)},tzStringToDate(t){return Qe({timestamp:t,timezone:this.timezone})}}}),K7="";var O0=function(){var e=this,r=e._self._c;return r("div",{ref:"container",class:{[e.classNames.milestone]:!0,[e.classNames.milestoneBullet]:!e.dot,[e.classNames.milestoneHovered]:e.isMouseOver&&!e.dot,[e.classNames.milestoneDot]:e.dot,[e.classNames.milestoneDotHovered]:e.isMouseOver&&e.dot},style:e.styles,attrs:{tabindex:"0"},on:{mouseover:n=>e.onMilestoneMouseOver(n),mousemove:e.onMilestoneMouseMove,mouseleave:n=>e.onMilestoneMouseLeave(n),click:n=>e.onMilestoneClick(n,e.milestone)}},[r("div",{class:e.classNames.milestoneContent,style:e.contentStyles},[e._t("content",function(){var n;return[r("span",[e._v(" "+e._s((n=e.milestone)==null?void 0:n.text)+" ")])]})],2),e.dot?r("div",{class:e.classNames.milestoneDotContainer,style:e.dotContainerStyles},[r("div",{class:e.classNames.milestoneDotLine,style:e.lineStyles}),r("div",{class:e.classNames.milestoneDotDot,style:e.dotStyles})]):r("div",{class:e.classNames.milestoneLabel,style:e.labelStyles},[e._t("label")],2)])},z0=[],B0=H(P0,O0,z0,!1,null,null,null,null);const I0=B0.exports,F0=F.extend({name:"ETimelineMarker",props:{marker:{type:Object,required:!0},height:{type:Number,required:!0},hidden:{type:[Boolean,void 0],default:void 0},position:{type:[Number,void 0],default:void 0}},methods:{getMarkerClass(t){return{"marker--hidden":this.hidden,"marker--draggable":t==null?void 0:t.isDraggable,...t.className?{[t==null?void 0:t.className]:!0}:{}}},getMarkerContainerStyle(){return{left:`${this.position}px`}},getMarkerLabelStyle(t){return{background:t.color,color:t.textColor||""}},getMarkerLineStyle(t){return{background:t.color,height:`${this.height+12}px`}}}}),J7="";var A0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"marker e-absolute e-h-full e-top-0 e-z-10",class:e.getMarkerClass(e.marker),style:e.getMarkerContainerStyle(),on:{click:function(n){return e.$emit("marker-clicked",e.marker)}}},[r("div",{staticClass:"marker-label e-absolute"},[r("div",{staticClass:"marker-label-text",style:e.getMarkerLabelStyle(e.marker)},[e._t(`marker.${e.marker.id}`,function(){return[e._v(" "+e._s(e.marker.label)+" ")]},{marker:e.marker})],2)]),r("div",{staticClass:"marker-line e-absolute e-pointer-events-none",style:e.getMarkerLineStyle(e.marker)})])},R0=[],H0=H(F0,A0,R0,!1,null,"614947ed",null,null);const N0=H0.exports,j0=F.extend({name:"ETimelineMarkers",components:{ETimelineMarker:N0},props:{markers:{type:Array,default:()=>[]},timeScale:{type:Function,required:!0},timeZone:{type:[String,void 0],default:void 0},height:{type:Number,required:!0},svgLeft:{type:Number,default:void 0},stickyMarkers:{type:Boolean,default:!1}},data(){return{markersPositions:{},markersDragBehavior:null,initialMarkerDragMouseOffset:0}},watch:{timeScale:{handler(){this.updateMarkers()},deep:!0},markers(){this.updateMarkers()}},methods:{initMarkersDragBehavior(){this.removeMarkersDragBehavior();const t=this;this.markersDragBehavior=O.drag().on("start",function(e,r){t.handleMarkerDrag({marker:r,markerElement:O.select(this),dragEvent:e})}).on("drag",function(e,r){t.handleMarkerDrag({marker:r,markerElement:O.select(this),dragEvent:e})}).on("end",function(e,r){t.handleMarkerDrag({marker:r,markerElement:O.select(this),dragEvent:e})}),O.selectAll(`.${me.marker}`).data(this.markers).call(this.markersDragBehavior)},removeMarkersDragBehavior(){this.markersDragBehavior&&(this.markersDragBehavior.on("start",null).on("drag",null).on("end",null),O.selectAll(`.${me.marker}`).call(this.markersDragBehavior))},handleMarkerDrag({marker:t,markerElement:e,dragEvent:r}){var c;if(!t.isDraggable)return;(c=r.sourceEvent)==null||c.preventDefault(),r.type==="start"&&(this.initialMarkerDragMouseOffset=r.x-e.node().querySelector(`.${me.markerLine}`).getBoundingClientRect().left,e.classed(me.markerDragged,!0));const n=r.x-this.initialMarkerDragMouseOffset,i=this.timeScale.invert(n-this.svgLeft);let a=this.timeScale(i);const o=this.isTimestampAllowedForMarker(i,t);if(r.type==="drag"&&o&&e.attr("style",`left: ${a}px`),r.type==="end"){const s=t.id||t.timestamp;a=o?a:this.timeScale(this.tzStringToDate(t.timestamp)),this.markersPositions={...this.markersPositions,[s]:{...this.markersPositions[s],position:a}},e.classed(me.markerDragged,!1)}r.type!=="start"&&this.$emit(`marker-drag-${r.type}`,{marker:t,newTimestamp:o?this.dateToTzString(i):t.timestamp})},updateMarkers(){if(!this.markers.length)return;const t=12,e=200;this.markers.forEach((r,n,i)=>{const a=typeof r.timestamp=="string"?this.tzStringToDate(r.timestamp):r.timestamp,o=this.timeScale(a);let c=!1;const s=this.stickyMarkers?Math.max(o,n*t):o;if(n<i.length-1){const l=i[n+1],d=typeof l.timestamp=="string"?this.tzStringToDate(l.timestamp):l.timestamp,f=this.timeScale(d);c=(this.stickyMarkers?Math.max(f,(n+1)*t):o)-s<e+t}this.markersPositions={...this.markersPositions,[r.id]:{isHidden:c,position:s}}}),this.initMarkersDragBehavior()},isTimestampAllowedForMarker(t,e){return(e.minDate?t>=this.tzStringToDate(e.minDate):!0)&&(e.maxDate?t<=this.tzStringToDate(e.maxDate):!0)},tzStringToDate(t){return Qe({timestamp:t,timezone:this.timeZone})},dateToTzString(t){return Ft({date:t,timezone:this.timeZone})}}});var G0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-tl-markers"},e._l(e.markers,function(n){var i,a;return r("ETimelineMarker",{key:n.id,attrs:{marker:n,height:e.height,position:(i=e.markersPositions[n.id])==null?void 0:i.position,hidden:(a=e.markersPositions[n.id])==null?void 0:a.isHidden,"data-id":n.id},on:{"marker-clicked":function(o){return e.$emit("marker-clicked",o)}},scopedSlots:e._u([{key:`marker.${n.id}`,fn:function(){return[e._t(`marker.${n.id}`,function(){return[e._v(" "+e._s(n.label)+" ")]},{marker:n})]},proxy:!0}],null,!0)})}),1)},q0=[],W0=H(j0,G0,q0,!1,null,null,null,null);const U0=W0.exports,Z0=F.extend({name:"EZoomBehavior",props:{width:{type:[Number,void 0],default:void 0},domain:{type:Array,required:!0},focusedDomain:{type:[Array,void 0],default:void 0},timezone:{type:String,default:"UTC"},disabled:{type:Boolean,default:!1},scalingDuration:{type:Number,default:400},translationDuration:{type:Number,default:400},focusedTimestamp:{type:[String,Date,Number],default:""}},data(){return{timeScale:null,initialTimeScale:null,zoomBehavior:null,selection:null,isTransitioning:!1,container:null,transformDiff:{translation:0,scale:1},lastTransform:{x:0,y:0,k:1},isLeftBoundaryReached:!1,isRightBoundaryReached:!1,resetBoundariesTimeout:0}},computed:{minDate(){const[t]=this.domain;return this.toD3Date(t)},maxDate(){const[,t]=this.domain;return this.toD3Date(t)},focusedStartDate(){const[t]=this.focusedDomain||this.domain;return this.toD3Date(t)},focusedEndDate(){const[,t]=this.focusedDomain||this.domain;return this.toD3Date(t)}},watch:{timeScale(){this.emitFocusedDomainChange(_t.Zoom),this.emitTimeScaleChange()},focusedDomain(t){t&&this.zoomToFocusedDomain(t)},focusedTimestamp(t){t&&this.panToTimestamp(t)},width:{handler(t,e){!t||t===e||(this.timeScale=O.scaleTime().domain([this.focusedStartDate,this.focusedEndDate]).range([0,t]))}}},mounted(){this.initRefs(),this.initTimeScale(),this.initZoomBehavior(),this.emitTimeScaleChange(),this.emitFocusedDomainChange(_t.Initial)},methods:{initRefs(){this.container=this.$refs.container},initTimeScale(){this.timeScale=O.scaleTime().domain([this.focusedStartDate,this.focusedEndDate]).range([0,this.getWidth()]),this.initialTimeScale=this.timeScale.copy()},calculateZoomExtents(){const t=[this.focusedStartDate,this.focusedEndDate],e=this.getWidth(),r=this.maxDate.getTime()-this.minDate.getTime(),a=[(this.focusedEndDate.getTime()-this.focusedStartDate.getTime())/r,1/0],o=this.initialTimeScale.copy();o.domain(t);const c=o(this.minDate),s=-(e-o(this.maxDate));return{scaleExtent:a,translateExtent:[[c||-1/0,0],[s||1/0,0]]}},initZoomBehavior(){const{scaleExtent:t,translateExtent:e}=this.calculateZoomExtents();this.zoomBehavior=O.zoom().scaleExtent(t).translateExtent(e).on("zoom",this.handleZoom),this.selection=O.select(this.container),this.selection.call(this.zoomBehavior)},handleZoom(t){const e=t.transform.rescaleX(this.initialTimeScale.copy()),[r,n]=e.domain(),i=r<=this.minDate,a=n>=this.maxDate;if(i||a){const c=O.zoomIdentity.translate(this.lastTransform.x,this.lastTransform.y).scale(this.lastTransform.k);this.selection.call(this.zoomBehavior.transform,c),this.updateBoundaries(i,a);return}const o=t.transform.k/this.lastTransform.k;this.transformDiff={scale:o,translation:t.transform.x-this.lastTransform.x},this.lastTransform={...t.transform},this.timeScale=t.transform.rescaleX(this.timeScale).domain([r,n])},toD3Date(t){return Qe({timestamp:t,timezone:this.timezone})},toDateString(t){return Ft({date:t,timezone:this.timezone})},getWidth(){var t,e;return this.width?this.width:(e=(t=this.container)==null?void 0:t.getBoundingClientRect())==null?void 0:e.width},zoomToFocusedDomain(t){const[e,r]=t,n=this.toD3Date(e!=null?e:this.focusedStartDate),i=this.toD3Date(r!=null?r:this.focusedEndDate);if(!this.timeScale)return;const[a,o]=this.timeScale.domain();if(n.getTime()===a.getTime()&&i.getTime()===o.getTime())return;const c=this.initialTimeScale.domain().map(h=>h.getTime()),s=c[1]-c[0],l=i.getTime()-n.getTime(),d=.1*l,f=l+2*d;let m=s/f;const b=this.zoomBehavior.scaleExtent();m=Math.min(Math.max(m,b[0]),b[1]);const x=this.initialTimeScale.copy().domain([n,i]);this.selection.transition().duration(this.scalingDuration/2).call(this.zoomBehavior.scaleTo,m).on("end",()=>this.translateIntervalIntoView(n,i,m)),this.timeScale=x},translateIntervalIntoView(t,e,r){const n=this.timeScale(t),i=this.timeScale(e),a=(n+i)/2,c=this.getWidth()/2-a,s=O.zoomTransform(this.selection.node());this.selection.transition().on("start",()=>{this.isTransitioning=!0,this.$emit("animation-start")}).on("end",()=>{this.isTransitioning=!1,this.$emit("animation-end")}).duration(this.translationDuration/2).call(this.zoomBehavior.transform,O.zoomIdentity.translate(s.x+c,s.y).scale(r))},emitTimeScaleChange(){this.$emit("time-scale-change",this.timeScale)},emitFocusedDomainChange(t){if(!this.selection.node()||this.isTransitioning||!this.timeScale)return;const[r,n]=this.timeScale.domain(),i=this.toDateString(r),a=this.toDateString(n);this.$emit("visible-interval-change",{fromDate:i,toDate:a,trigger:t,transform:this.transformDiff})},panToTimestamp(t){const e=new Date(t),r=this.timeScale(e),n=O.zoomTransform(this.selection.node()),i=n.x-r+this.getWidth()/2;this.selection.transition().duration(this.translationDuration).call(this.zoomBehavior.transform,O.zoomIdentity.translate(i,0).scale(n.k)).on("end",()=>{this.emitFocusedDomainChange(_t.Zoom)})},updateBoundaries(t,e){this.isLeftBoundaryReached=t,this.isRightBoundaryReached=e,clearTimeout(this.resetBoundariesTimeout),this.resetBoundariesTimeout=setTimeout(this.resetBoundaries,300)},resetBoundaries(){this.isLeftBoundaryReached=!1,this.isRightBoundaryReached=!1}}}),ed="";var Y0=function(){var e=this,r=e._self._c;return r("div",{ref:"container",staticClass:"e-zoom-behavior"},[r("transition",{attrs:{name:"boundary-fade"}},[e.isLeftBoundaryReached?r("div",{staticClass:"e-zoom-behavior__boundary e-zoom-behavior__boundary__left e-bg-gradient-to-r e-from-red-700 e-to-transparent"}):e._e()]),e._t("default",null,{timeScale:e.timeScale}),r("transition",{attrs:{name:"boundary-fade"}},[e.isRightBoundaryReached?r("div",{staticClass:"e-zoom-behavior__boundary e-zoom-behavior__boundary__right e-bg-gradient-to-l e-from-red-700 e-to-transparent"}):e._e()])],2)},X0=[],V0=H(Z0,Y0,X0,!1,null,null,null,null);const Q0=V0.exports,K0=F.extend({name:"EXAxis",props:{ticksConfigs:{type:Array,required:!0},timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:me}},computed:{classes(){return{[me.xAxis]:!0,[me.xAxisDark]:this.dark}},axis(){return O.axisBottom(this.timeScale).ticks(this.currentTicksConfig.interval).tickFormat(this.currentTicksConfig.formatFn).tickSizeOuter(0).tickSizeInner(this.height)},density(){const t=this.timeScale.invert(0).getTime(),e=this.timeScale.invert(1).getTime(),r=36e5,n=(e-t)/r;return isNaN(n)?1:n},currentTicksConfig(){const{interval:t,format:e}=this.ticksConfigs.find(n=>n.precision>=this.density&&n.interval);return{formatFn:n=>typeof e=="function"?e(n):O.timeFormat(e)(n),interval:t}}},watch:{timeScale:{handler(){this.update()},deep:!0},currentTicksConfig:{handler(){this.update()},deep:!0},height(){this.updateTicksSize()}},mounted(){this.update()},methods:{update(){const t=this.$refs.container;O.select(t).call(this.axis),this.translateTicksText()},translateTicksText(){const t=this.$refs.container;O.select(t).selectAll(".tick text").each(function(){O.select(this).attr("x",5).attr("y",0).style("text-anchor","start")})},updateTicksSize(){this.axis.tickSizeOuter(0).tickSizeInner(this.height),this.update()}}}),td="";var J0=function(){var e=this,r=e._self._c;return r("g",{ref:"container",class:e.classes,attrs:{"text-anchor":"middle",transform:`translate(${e.x}, ${e.y})`}})},el=[],tl=H(K0,J0,el,!1,null,null,null,null);const rn=tl.exports,At=t=>{const e=O.utcFormat("%_d")(t),r=rl(parseInt(e));return`${e}${r}`},qi=t=>new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()+1)).getUTCDate()===1?"":O.utcFormat("%-d")(t),bt=t=>["0"," 0","00"].includes(O.utcFormat("%H")(t))?"":`${O.utcFormat("%H")(t)}h`,st=t=>{const e=O.utcFormat("%H:%M")(t);return e==="00:00"?"":e},nn=t=>O.utcFormat("%M:%S")(t),Wi=t=>`${O.utcFormat("%Hh%Mm")(t)}`,sn=t=>{const e=st(t),r=At(t),n=O.utcFormat("%B")(t);return e||`${n} ${r}`},an=t=>{const e=st(t),r=Number.parseInt(O.utcFormat("%H")(t)),n=At(t),i=O.utcFormat("%B")(t);return e&&r%6===0?`${i} ${n} ${e}`:sn(t)},rl=t=>{if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},xt=t=>e=>{const r=O.utcFormat("%H")(e);return!(O.utcFormat("%M")(e)==="00"&&Number.parseInt(r)%t===0)},on=t=>e=>{const r=O.utcFormat("%M")(e);return Number.parseInt(r)%t!==0},Ui=t=>e=>{const r=O.utcFormat("%M")(e),n=O.utcFormat("%S")(e);return Number.parseInt(r)%t!==0&&Number.parseInt(n)===0},J={_10_seconds:25e-6,_20_seconds:1e-4,_30_seconds:15e-5,_1_minute:3e-4,_2_minutes:75e-5,_5_minutes:.002,_15_minutes:.005,_30_minutes:.01,_1_hour:.025,_2_hours:.05,_3_hours:.1,_4_hours:.15,_6_hours:.25,_1_day:1,_2_days:2,_1_month:8,_1_month_abbr:13,_1_month_letter:22,_3_months:33,_2_year:48,_5_years:120,_20_years:480,_75_years:1800,_300_years:7200,infinity:1/0},ln={[rt.Overview]:[{precision:J._30_seconds,interval:O.utcMinute.every(2),format:Wi},{precision:J._1_minute,interval:O.utcMinute.every(5),format:Wi},{precision:J._2_minutes,interval:O.utcMinute.every(10),format:sn},{precision:J._5_minutes,interval:O.utcMinute.every(20),format:an},{precision:J._15_minutes,interval:O.utcHour,format:an},{precision:J._30_minutes,interval:O.utcHour.every(2),format:an},{precision:J._2_hours,interval:O.utcHour.every(6),format:t=>{const e=st(t),r=At(t),n=O.utcFormat("%B")(t);return e||`${n} ${r}`}},{precision:J._3_hours,interval:O.utcHour.every(12),format:sn},{precision:J._6_hours,interval:O.utcHour.every(24),format:t=>{const e=At(t),r=O.utcFormat("%b")(t),n=O.utcFormat("%Y")(t);return`${r} ${e} ${n}`}},{precision:J._2_days,interval:O.utcMonth,format:"%Y – %B"},{precision:J._2_year,interval:O.utcMonth.every(3),format:"%Y Q%q"},{precision:J._5_years,interval:O.utcYear.every(5),format:"%Y"},{precision:J._20_years,interval:O.utcYear.every(20),format:"%Y"},{precision:J._75_years,interval:O.utcYear.every(75),format:"%Y"},{precision:J._300_years,interval:O.utcYear.every(300),format:"%Y"},{precision:J.infinity,interval:O.utcMonth.every(12),format:"%Y"}],[rt.Detailed]:[{precision:J._10_seconds,interval:O.utcSecond.every(10),format:nn},{precision:J._20_seconds,interval:(Cs=O.utcSecond.every(20))==null?void 0:Cs.filter(Ui(2)),format:nn},{precision:J._30_seconds,interval:(bs=O.utcSecond.every(30))==null?void 0:bs.filter(Ui(2)),format:nn},{precision:J._1_minute,interval:O.utcMinute.filter(on(5)),format:st},{precision:J._2_minutes,interval:(xs=O.utcMinute.every(2))==null?void 0:xs.filter(on(10)),format:st},{precision:J._5_minutes,interval:(ws=O.utcMinute.every(5))==null?void 0:ws.filter(on(20)),format:st},{precision:J._15_minutes,interval:(Ss=O.utcMinute.every(15))==null?void 0:Ss.filter(xt(1)),format:st},{precision:J._30_minutes,interval:(Ts=O.utcMinute.every(30))==null?void 0:Ts.filter(xt(2)),format:st},{precision:J._1_hour,interval:O.utcHour.filter(xt(6)),format:bt},{precision:J._2_hours,interval:(ks=O.utcHour.every(2))==null?void 0:ks.filter(xt(6)),format:bt},{precision:J._3_hours,interval:($s=O.utcHour.every(3))==null?void 0:$s.filter(xt(12)),format:bt},{precision:J._4_hours,interval:O.utcHour.every(4),format:bt},{precision:J._6_hours,interval:O.utcHour.every(6),format:bt},{precision:J._1_day,interval:O.utcDay,format:qi},{precision:J._2_days,interval:O.utcDay.every(2),format:qi},{precision:J._1_month,interval:O.utcMonth,format:"%B"},{precision:J._1_month_abbr,interval:O.utcMonth,format:"%b"},{precision:J._1_month_letter,interval:O.utcMonth,format:t=>O.utcFormat("%B")(t).charAt(0)},{precision:J._3_months,interval:O.utcMonth.every(3),format:"Q%q"},{precision:J._2_year,interval:O.utcMonth.every(6),format:"Q%q"},{precision:J._5_years,interval:O.utcYear.every(2),format:"%Y"},{precision:J._20_years,interval:O.utcYear.every(4),format:"%Y"},{precision:J._75_years,interval:O.utcYear.every(25),format:"%Y"},{precision:J._300_years,interval:O.utcYear.every(100),format:"%Y"},{precision:J.infinity,interval:O.utcYear.every(500),format:""}],[rt.DetailedBackground]:[{precision:J._10_seconds,interval:O.utcSecond,format:""},{precision:J._20_seconds,interval:O.utcSecond.every(5),format:""},{precision:J._30_seconds,interval:O.utcSecond.every(10),format:""},{precision:J._1_minute,interval:O.utcSecond.every(20),format:""},{precision:J._2_minutes,interval:O.utcSecond.every(30),format:""},{precision:J._5_minutes,interval:O.utcMinute,format:""},{precision:J._15_minutes,interval:O.utcMinute.every(3),format:""},{precision:J._30_minutes,interval:O.utcMinute.every(6),format:""},{precision:J._1_hour,interval:O.utcMinute.every(15),format:""},{precision:J._2_hours,interval:O.utcMinute.every(30),format:""},{precision:J._3_hours,interval:O.utcHour,format:""},{precision:J._4_hours,interval:O.utcHour,format:""},{precision:J._6_hours,interval:O.utcMinute.every(120),format:""},{precision:J._1_day,interval:O.utcHour.every(8),format:""},{precision:J._2_days,interval:O.utcHour.every(12),format:""},{precision:J._1_month,interval:O.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),n=Math.ceil(r/5);return e===n||e===2*n||e===3*n||e===4*n}),format:""},{precision:J._1_month_abbr,interval:O.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),n=Math.ceil(r/4);return e===n||e===2*n||e===3*n}),format:""},{precision:J._1_month_letter,interval:O.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),n=Math.ceil(r/2);return e===n}),format:""},{precision:J._3_months,interval:O.utcMonth,format:""},{precision:J._3_months,interval:O.utcMonth,format:""},{precision:J._2_year,interval:O.utcYear,format:""},{precision:J._5_years,interval:O.utcYear.every(2),format:""},{precision:J._20_years,interval:O.utcYear.every(5),format:""},{precision:J._75_years,interval:O.utcYear.every(20),format:""},{precision:J._300_years,interval:O.utcYear.every(100),format:""},{precision:J.infinity,interval:O.utcYear.every(500),format:""}]},nl=F.extend({name:"EXAxisOverview",components:{EXAxis:rn},props:{timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:me,ticksConfigs:ln[rt.Overview]}}}),rd="";var il=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EXAxis",{class:e.classNames.xAxisOverview,attrs:{x:e.x,y:e.y,dark:e.dark,height:e.height,"time-scale":e.timeScale,"ticks-configs":e.ticksConfigs}})},sl=[],al=H(nl,il,sl,!1,null,null,null,null);const ol=al.exports,ll=F.extend({name:"EXAxisDetailed",components:{EXAxis:rn},props:{timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:me,ticksConfigs:ln[rt.Detailed]}}}),nd="";var cl=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EXAxis",{class:e.classNames.xAxisDetailed,attrs:{x:e.x,y:e.y,dark:e.dark,height:e.height,"time-scale":e.timeScale,"ticks-configs":e.ticksConfigs}})},ul=[],dl=H(ll,cl,ul,!1,null,null,null,null);const hl=dl.exports,fl=F.extend({name:"EXAxisBackground",components:{EXAxis:rn},props:{timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:me,ticksConfigs:ln[rt.DetailedBackground]}}}),id="";var pl=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EXAxis",{class:e.classNames.xAxisBackground,attrs:{x:e.x,y:e.y,dark:e.dark,height:e.height,"time-scale":e.timeScale,"ticks-configs":e.ticksConfigs}})},ml=[],gl=H(fl,pl,ml,!1,null,null,null,null);const vl=gl.exports,_l=F.extend({name:"ETimelineSVGDefs",props:{eventsGroups:{type:Object,default:()=>({})},forbiddenIntervalColor:{type:String,default:"#ddd"},width:{type:Number,required:!0},height:{type:Number,required:!0}},data(){return{defs:Je,TimelineChartType:He,transparencyGradients:[{id:"transparency-gradient-light",stop:100,opacity:.4},{id:"transparency-gradient",stop:130,opacity:.4},{id:"transparency-gradient-hover",stop:130,opacity:.6}]}}});var yl=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("defs",{ref:"mainContainer",staticClass:"e-timeline"},[e._l(e.eventsGroups,function(n,i){return[r("linearGradient",{key:`${e.defs.loadingGradient}-${i}`,attrs:{id:`${e.defs.loadingGradient}-${i}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"}},[r("stop",{attrs:{offset:"0%","stop-color":n.color,"stop-opacity":"0"}}),r("stop",{attrs:{offset:"50%","stop-color":n.color,"stop-opacity":"0.6"}}),r("stop",{attrs:{offset:"100%","stop-color":n.color,"stop-opacity":"0"}})],1),n.chartType===e.TimelineChartType.LineGraph?[e._l(e.transparencyGradients,function({id:a,stop:o,opacity:c}){return r("linearGradient",{key:`${a}-${i}-${n.chartType}`,attrs:{id:`${a}-${i}-${n.chartType}`,x1:"0%",x2:"0%",y1:"0%",y2:"100%"}},[r("stop",{attrs:{offset:"0%","stop-color":n.color,"stop-opacity":c}}),r("stop",{attrs:{offset:`${o}%`,"stop-color":n.color,"stop-opacity":"0"}})],1)}),r("clipPath",{key:`${e.defs.clipPath}-${i}`,attrs:{id:`${e.defs.clipPath}-${i}`}},[r("rect",{attrs:{width:e.width,height:e.height}})])]:e._e(),n.chartType===e.TimelineChartType.BarChart?[e._l(e.transparencyGradients,function({id:a,opacity:o}){return r("linearGradient",{key:`${a}-${i}-${n.chartType}`,attrs:{id:`${a}-${i}-${n.chartType}`,width:"100%",height:"100%"}},[r("stop",{attrs:{"stop-color":n.color,"stop-opacity":o}})],1)}),r("clipPath",{key:`${e.defs.clipPath}-${i}`,attrs:{id:`${e.defs.clipPath}-${i}`}},[r("rect",{attrs:{width:e.width,height:e.height}})])]:e._e()]}),r("pattern",{attrs:{id:e.defs.stripedPattern,width:"5",height:"3",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)"}},[r("rect",{attrs:{width:"1",height:"4",fill:e.forbiddenIntervalColor}})])],2)},Cl=[],bl=H(_l,yl,Cl,!1,null,null,null,null);const xl=bl.exports,wl=F.extend({name:"ETimelineForbiddenInterval",props:{timeScale:{type:Function,required:!0},interval:{type:Object,required:!0},index:{type:Number,required:!0},height:{type:Number,required:!0},timezone:{type:String,default:"UTC"}},data(){return{classNames:me,defs:Je}},computed:{visibleDomain(){return this.timeScale.domain()},startX(){const t=this.interval.startDate===-1/0?this.visibleDomain[0]:this.tzStringToDate(this.interval.startDate);return this.timeScale(t)},endX(){const t=this.interval.endDate===1/0?this.visibleDomain[1]:this.tzStringToDate(this.interval.endDate);return this.timeScale(t)},width(){return Math.max(this.endX-this.startX,0)}},methods:{tzStringToDate(t){return Qe({timestamp:t,timezone:this.timezone})}}});var Sl=function(){var e=this,r=e._self._c;return r("rect",{class:`${e.classNames.forbiddenInterval} ${e.classNames.forbiddenInterval}-${e.index}`,attrs:{x:e.startX,y:"0",width:e.width,height:e.height,fill:`url(#${e.defs.stripedPattern})`}})},Tl=[],kl=H(wl,Sl,Tl,!1,null,null,null,null);const $l=kl.exports,El=F.extend({name:"ECursor",props:{timeScale:{type:Function,required:!0},timestamp:{type:String,required:!0},timezone:{type:String,required:!0},height:{type:Number,required:!0},color:{type:String,default:"red"},width:{type:Number,default:1},opacity:{type:Number,default:1}},data(){return{classNames:me}},watch:{timestamp(){this.repositionCursor()},timeScale(){this.repositionCursor()},height(){this.repositionCursor()}},methods:{repositionCursor(){const t=this.$refs.cursor,e=O.select(t);if(!e)return;if(!this.timestamp){e.style("opacity",0);return}const r=this.tzStringToDate(this.timestamp),n=this.timeScale(r);isNaN(n)?e.style("opacity",0):e.attr("x1",n).attr("x2",n).style("opacity",this.opacity),e.attr("y2",this.height)},tzStringToDate(t){return Qe({timestamp:t,timezone:this.timezone})}}});var Ml=function(){var e=this,r=e._self._c;return r("line",{ref:"cursor",class:e.classNames.selectedTimestampCursor,attrs:{x1:"0",y1:"0",x2:"0",opacity:"0",stroke:e.color,"stroke-width":`${e.width}px`}})},Ll=[],Dl=H(El,Ml,Ll,!1,null,null,null,null);const Zi=Dl.exports,Pl=F.extend({name:"ETimelineCursor",components:{ECursor:Zi},props:{timeScale:{type:Function,required:!0},selectedTimestamp:{type:String,required:!0},timezone:{type:String,default:"UTC"},height:{type:Number,required:!0}}});var Ol=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("ECursor",{attrs:{"time-scale":e.timeScale,timestamp:e.selectedTimestamp,timezone:e.timezone,color:"green",height:e.height}})},zl=[],Bl=H(Pl,Ol,zl,!1,null,null,null,null);const Il=Bl.exports,Fl=F.extend({name:"ETimelineSelectedTimestampCursor",components:{ECursor:Zi},props:{timeScale:{type:Function,required:!0},selectedTimestamp:{type:String,required:!0},timezone:{type:String,default:"UTC"},height:{type:Number,required:!0}}});var Al=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("ECursor",{attrs:{"time-scale":e.timeScale,timestamp:e.selectedTimestamp,timezone:e.timezone,height:e.height,width:2}})},Rl=[],Hl=H(Fl,Al,Rl,!1,null,null,null,null);const Nl=Hl.exports,jl=F.extend({name:"ECursorBehavior",props:{timeScale:{type:Function,required:!0},timezone:{type:String,default:"UTC"},minHoverZone:{type:Number,default:0},isHoveringMilestone:{type:Boolean,default:!1}},data(){return{cursor:null,hoveredTimestamp:null,isHoveringTimeline:!1}},mounted(){this.registerEventsListeners()},methods:{registerEventsListeners(){const t=this.$refs.cursor;this.cursor=O.select(t),this.cursor.on("mousemove",this.handleMouseMove),this.cursor.on("click",this.handleClick),this.cursor.on("mouseleave",this.handleMouseLeave)},handleMouseLeave(){this.isHoveringTimeline=!1,this.hoveredTimestamp=void 0,this.$emit("mouse-leave")},handleMouseMove(t){if(this.isHoveringMilestone)return;const e=t.offsetX;if(e<=this.minHoverZone){this.isHoveringTimeline=!1;return}const r=this.timeScale.invert(e);this.hoveredTimestamp=this.dateToTzString(r),this.isHoveringTimeline=!0,this.$emit("mouse-move",e,this.hoveredTimestamp)},handleClick(t){if(this.isHoveringMilestone)return;const e=t.offsetX;if(e<=this.minHoverZone)return;const r=this.timeScale.invert(e),n=this.dateToTzString(r);this.$emit("timestamp-clicked",n,t.target)},tzStringToDate(t){return Qe({timestamp:t,timezone:this.timezone})},dateToTzString(t){return Ft({date:t,timezone:this.timezone})}}});var Gl=function(){var e=this,r=e._self._c;return r("div",{ref:"cursor",staticClass:"e-timeline__cursor e-relative"},[e._t("default",null,{hoveredTimestamp:e.hoveredTimestamp,isHoveringTimeline:e.isHoveringTimeline})],2)},ql=[],Wl=H(jl,Gl,ql,!1,null,null,null,null);const Ul=Wl.exports,Zl=F.extend({name:"ETimelineGroupContainer",props:{groupId:{type:String,required:!0},label:{type:String,default:""},color:{type:String,default:""},backgroundColor:{type:String,default:""},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},showLabel:{type:Boolean,default:!0},labelWidth:{type:[Number,void 0],default:void 0},labelRadius:{type:[Number,void 0],default:3},xPadding:{type:Number,default:5},loading:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},showBackground:{type:Boolean,default:!0}},data(){return{classNames:me,characterWidth:6.5,isHighlighted:!1}},computed:{computedClasses(){return{label:{[`${me.labelGroup} ${me.labelGroup}-${this.groupId}`]:!0},container:{[`${me.eventGroup} ${me.eventGroup}-${this.groupId}`]:!0,[`${me.eventGroup}--highlighted`]:this.isHighlighted}}},computedLabelWidth(){var e;return(this.labelWidth||((e=this.label)==null?void 0:e.length)*this.characterWidth)+this.xPadding*2},textY(){return this.y+this.height/2},contentX(){return this.showLabel?this.x+this.computedLabelWidth:this.x},labelBackgroundColor(){let t=O.color(this.color);return t.opacity=this.dark?.2:.5,t.toString()},textFillColor(){var t,e;return(this.dark?(t=O.color(this.color))==null?void 0:t.brighter(1.5):(e=O.color(this.color))==null?void 0:e.darker(2)).toString()},loadingIndicatorFill(){return`url(#${Je.loadingGradient}-${this.groupId})`}}}),sd="";var Yl=function(){var e=this,r=e._self._c;return r("g",{class:e.computedClasses.container},[!e.hidden&&e.showBackground?r("rect",{class:e.classNames.eventGroupBg,attrs:{x:e.x,y:e.y,width:e.width,height:e.height,fill:e.backgroundColor||e.color}}):e._e(),r("g",{class:e.classNames.eventGroupContent,attrs:{cursor:"pointer"}},[e._t("default",null,{y:e.y,x:e.contentX}),e.loading?r("rect",{class:e.classNames.loadingIndicator,attrs:{x:e.x,y:e.y,width:400,height:e.height,fill:e.loadingIndicatorFill}}):e._e()],2),e.showLabel?r("g",{class:e.computedClasses.label,on:{mouseover:function(n){e.isHighlighted=!0},mouseleave:function(n){e.isHighlighted=!1},click:function(n){return n.stopPropagation(),e.$emit("group-label-clicked",e.groupId)}}},[r("rect",{class:e.classNames.labelBg,attrs:{x:e.x,y:e.y,width:e.computedLabelWidth,height:e.height,rx:e.labelRadius,ry:e.labelRadius,fill:e.dark?"black":"white"}}),r("rect",{class:e.classNames.labelBgFill,attrs:{x:e.x,y:e.y,width:e.computedLabelWidth,height:e.height,rx:e.labelRadius,ry:e.labelRadius,fill:e.labelBackgroundColor,stroke:e.textFillColor}}),r("text",{staticClass:"label-text",attrs:{x:e.x+e.xPadding,y:e.textY,dy:"0.35rem",fill:e.textFillColor}},[e._v(" "+e._s(e.label)+" ")])]):e._e()])},Xl=[],Vl=H(Zl,Yl,Xl,!1,null,null,null,null);const cn=Vl.exports,Ql=F.extend({name:"ETimelineRectsChartGroupedDots",props:{event:{type:Object,required:!0},rectStroke:{type:String,required:!0},rectStrokeWidth:{type:Number,required:!0},rectRx:{type:Number,required:!0},rectRy:{type:Number,required:!0},groupId:{type:String,required:!0}},data(){return{classNames:me}},computed:{numberOfBackgroundDots(){return this.event.groupedEvents?Math.min(3,this.event.groupedEvents.length-1):0}},methods:{getBackgroundX(t){return this.event.x-this.event.width/2-(this.numberOfBackgroundDots-(t-1))*4.5},getBackgroundY(t){return this.event.y+(this.numberOfBackgroundDots-(t-1))/2},getBackgroundSize(t){return this.event.width-(this.numberOfBackgroundDots-(t-1))},getBackgroundOpacity(t){return 1-(this.numberOfBackgroundDots-(t-1))/5}}});var Kl=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("g",{class:e.classNames.eventRectContainer},[e._l(e.numberOfBackgroundDots,function(n){return r("rect",{key:`bg-${e.numberOfBackgroundDots-n}`,class:[e.classNames.eventRect,`${e.classNames.eventRect}--dot`,`bg-${n}`],attrs:{x:e.getBackgroundX(n),y:e.getBackgroundY(n),width:e.getBackgroundSize(n),height:e.getBackgroundSize(n),fill:e.event.color,stroke:e.rectStroke,opacity:e.getBackgroundOpacity(n),"stroke-width":e.rectStrokeWidth,ry:e.rectRx,rx:e.rectRy}})}),r("rect",{class:[e.classNames.eventRect,`${e.classNames.eventRect}--dot`],attrs:{x:e.event.x-e.event.width/2,y:e.event.y-e.event.width*.025,width:e.event.width*1.05,height:e.event.height*1.05,fill:e.event.color,stroke:e.rectStroke,cursor:"pointer","stroke-width":e.rectStrokeWidth,ry:e.rectRx,rx:e.rectRy}})],2)},Jl=[],e5=H(Ql,Kl,Jl,!1,null,null,null,null);const t5=e5.exports,r5=F.extend({name:"ETimelineRectsChart",directives:{},components:{ETimelineGroupContainer:cn,ETimelineRectsChartGroupedDots:t5},props:{timeScale:{type:Function,required:!0},eventsGroup:{type:Object,required:!0},groupId:{type:String,required:!0},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},rectMinWidth:{type:Number,default:1},rectYPadding:{type:Number,default:0},dark:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},labelWidth:{type:[Number,void 0],default:void 0},timezone:{type:[String,void 0],default:void 0},dots:{type:Boolean,default:!1},dotsSize:{type:Number,default:3},barBorderRadius:{type:Number,default:1.5},groupOverlappingDots:{type:Boolean,default:!1},groupingThreshold:{type:Number,default:0}},data(){return{classNames:me,characterWidth:7.5,textPadding:5}},computed:{rectStrokeWidth(){return this.dots&&this.dotsSize?this.dotsSize/10:5},rectRx(){return this.dots&&this.dotsSize?this.dotsSize:this.eventsGroup.barBorderRadius||0},rectRy(){return this.dots&&this.dotsSize?this.dotsSize:this.eventsGroup.barBorderRadius||0},computedHeight(){return this.eventsGroup.height||this.height},yPosition(){const t=this.dots?(this.computedHeight-this.dotsSize+this.rectYPadding)/2:this.rectYPadding/2;return this.y+t},rectStroke(){if(!this.dots)return"#0000";const t=O.color(this.eventsGroup.color);return(t==null?void 0:t.brighter(1).toString())||"#0000"},rectHeight(){return this.dots?this.dotsSize:Math.max(this.height,1)},preprocessedEvents(){return[...this.eventsGroup.events].sort((e,r)=>{const n=new Date(e.startDate||e.timestamp).getTime(),i=new Date(r.startDate||r.timestamp).getTime();return n-i}).map(this.convertEventTzStringToDate)},computedEvents(){return(this.dots&&this.groupOverlappingDots?this.groupedEvents:this.preprocessedEvents.map(e=>[e])).map(e=>{let r={textContent:this.getEventText(e[0],this.textPadding,this.characterWidth),textX:this.getEventRectX(e[0],this.timeScale)+this.textPadding,textY:this.yPosition+this.rectHeight/2,textColor:e[0].textColor||this.getFillColor(e[0].color||this.eventsGroup.color,.75,this.dark)};if(!this.dots)return{...e[0],x:this.getEventRectX(e[0],this.timeScale),y:this.yPosition,width:this.getEventRectWidth(e[0],this.timeScale,this.rectMinWidth),height:this.rectHeight,color:e[0].color||this.eventsGroup.color,groupedEvents:e,...r};const n=this.getEventRectX(e[0],this.timeScale),i=this.getEventRectX(e[e.length-1],this.timeScale),a=n+(i-n)/2,o=e.length>1,c=a;return o?r={...r,textContent:`${e.length}`,textX:a-this.dotsSize/2-`${e.length}`.length*2,textY:this.yPosition-this.dotsSize/2}:r={...r,textX:r.textX-this.textPadding},{...e[0],x:c,y:this.yPosition,width:this.dotsSize,height:this.rectHeight,color:e[0].color||this.eventsGroup.color,groupedEvents:e,...r}})},timeScaleDensity(){const t=this.timeScale.invert(0).getTime(),e=this.timeScale.invert(1).getTime(),r=36e5,n=(e-t)/r;return isNaN(n)?1:n},groupedEvents(){const t=this.preprocessedEvents,e=[];let r=[];return t.forEach((n,i)=>{if(i===0){r.push(n);return}const a=t[i-1],o=this.getEventRectX(n,this.timeScale),c=this.getEventRectX(a,this.timeScale),s=this.getEventRectWidth(a,this.timeScale,this.rectMinWidth);c+s+this.groupingThreshold>=o?r.push(n):(r.length>0&&e.push([...r]),r=[n])}),r.length>0&&e.push(r),e}},methods:{onMouseOver(t,e,r){t.target.classList.add(me.eventRectHovered);const i=this.convertEventDateToTzString(e);this.$emit("event-mouseover",t,i,r)},onMouseLeave(t){const e=t.target;e.classList.remove(me.eventRectHovered),Array.from(e.children).forEach(r=>{r.classList.remove(me.eventRectHovered)}),this.$emit("event-mouseout")},onGroupedEventsMouseOver(t,e,r){t.target.classList.add(me.eventRectHovered);const i=e.map(this.convertEventDateToTzString);this.$emit("grouped-events-mouseover",t,i,r)},getEventText(t,e,r){if(!t.text)return"";const n=`${t.text}`;if(n.length===1)return n;const a=(this.getEventRectWidth(t,this.timeScale,this.rectMinWidth)-e)/r;return a<Math.min(n==null?void 0:n.length,4)?"":(n==null?void 0:n.length)<=a?n:`${n.slice(0,a-3)}...`},getEventRectWidth(t,e,r){if(!t)return 0;if(this.dots)return this.dotsSize;if(t.startDate&&t.endDate){const n=new Date(t.startDate),i=new Date(t.endDate),a=e(i)-e(n);return Math.max(a,r)}else{const n=1/(this.timeScaleDensity*3600);return Math.max(n,r)}},getEventRectX(t,e){const r=e(t.startDate||t.timestamp);return isNaN(r)?0:r},tzStringToDate(t){return Qe({timestamp:t,timezone:this.timezone})},dateToTzString(t){return Ft({date:t,timezone:this.timezone})},convertEventTzStringToDate(t){return this.patchTimestampField(t,this.tzStringToDate)},convertEventDateToTzString(t){return this.patchTimestampField(t,this.dateToTzString)},patchTimestampField(t,e){let r={...t};return r.timestamp&&(r.timestamp=e(r.timestamp)),r.startDate&&(r.startDate=e(r.startDate)),r.endDate&&(r.endDate=e(r.endDate)),r},getFillColor(t,e=0,r=!1){var n,i;return(r?(n=O.color(t))==null?void 0:n.brighter(1.5+e):(i=O.color(t))==null?void 0:i.darker(2+e)).toString()}}}),ad="";var n5=function(){var e=this,r=e._self._c;return r("ETimelineGroupContainer",{attrs:{"group-id":e.groupId,color:e.eventsGroup.color,label:e.eventsGroup.label,"background-color":e.eventsGroup.bgColor,loading:e.eventsGroup.isLoading,x:e.x,y:e.y,dark:e.dark,width:e.width,height:e.computedHeight+e.rectYPadding,"show-label":e.showLabel,"label-width":e.labelWidth,hidden:e.eventsGroup.isHidden},on:{"group-label-clicked":function(n){return e.$emit("group-label-clicked",e.groupId)}}},[e.dots?r("line",{class:e.classNames.milestoneLine,attrs:{x1:0,x2:e.width,y1:e.yPosition+e.dotsSize/2,y2:e.yPosition+e.dotsSize/2,stroke:e.eventsGroup.color,"stroke-width":1}}):e._e(),e._l(e.computedEvents,function(n,i){return r("g",{key:i,class:e.classNames.eventRectContainer},[!n.groupedEvents||!e.dots||n.groupedEvents.length===1?[r("rect",{class:[e.classNames.eventRect,e.dots?`${e.classNames.eventRect}--dot`:""],attrs:{x:n.x-(e.dots?n.width/2:0),y:n.y,"data-timestamp":n.timestamp,width:n.width,height:n.height,fill:n.color,stroke:e.rectStroke,cursor:"pointer","stroke-width":e.rectStrokeWidth,ry:e.rectRx,rx:e.rectRy},on:{mouseover:function(a){return e.onMouseOver(a,n,e.groupId)},mouseleave:e.onMouseLeave}})]:e.dots&&n.groupedEvents.length>1?r("ETimelineRectsChartGroupedDots",{key:i,attrs:{event:n,"rect-stroke":e.rectStroke,"rect-stroke-width":e.rectStrokeWidth,"rect-rx":e.rectRx,"rect-ry":e.rectRy,"group-id":e.groupId},nativeOn:{mouseover:function(a){return e.onGroupedEventsMouseOver(a,n.groupedEvents,e.groupId)},mouseleave:function(a){return e.onMouseLeave.apply(null,arguments)}}}):e._e(),n.textContent?r("text",{class:e.classNames.eventRectText,attrs:{fill:n.textColor,x:n.textX,y:n.textY,dy:"0.35em","text-anchor":e.dots?"middle":"start","font-size":"12","font-weight":600,"stroke-linejoin":"round","paint-order":"stroke","pointer-events":"none"}},[e._v(" "+e._s(n.textContent)+" ")]):e._e()],2)})],2)},i5=[],s5=H(r5,n5,i5,!1,null,null,null,null);const a5=s5.exports,o5=F.extend({name:"ETimelineLinesChart",directives:{},components:{ETimelineGroupContainer:cn},props:{timeScale:{type:Function,required:!0},eventsGroup:{type:Object,required:!0},groupId:{type:String,required:!0},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},dark:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},maxVisibleCount:{type:Number,required:!0},labelWidth:{type:[Number,void 0],default:void 0},labelHeight:{type:[Number,void 0],default:void 0},timezone:{type:[String,void 0],default:void 0},hoveredTimestamp:{type:String,default:""},yOffset:{type:Number,default:20}},data(){return{classNames:me,defs:Je,characterWidth:7.5}},computed:{lineGradient(){return`${Je.transparencyGradientLight}-${this.groupId}-${He.LineGraph}`},lineDots(){const[t,e]=this.timeScale.domain();return this.eventsGroup.events.filter((n,i)=>{var s,l;const a=i===0?1:i,o=new Date((s=this.eventsGroup.events[a+1])==null?void 0:s.timestamp),c=new Date((l=this.eventsGroup.events[a-1])==null?void 0:l.timestamp);return o>=t&&o<=e||c>=t&&c<=e})},hoverZones(){return this.lineDots.map(t=>{const e=this.timeScale(this.tzStringToDate(t.timestamp)),r=this.yScale(t.count),n=this.timeScale.invert(e-2),i=this.timeScale.invert(e+2);return{x:e,y:r,height:this.height-22,color:t.color||this.eventsGroup.color,timestamp:t.timestamp,count:t.count,isHovering:this.tzStringToDate(this.hoveredTimestamp)>=n&&this.tzStringToDate(this.hoveredTimestamp)<i}})},yScale(){let t=O.scaleLinear().range([this.height,0]);return t=t.domain([0,this.maxVisibleCount||1]),t}},watch:{hoverZones:{handler(){this.updateLine()},deep:!0,immediate:!0}},mounted(){this.updateLine()},methods:{updateLine(){const t=O.area().x(r=>r.x).y0(this.height).y1(r=>r.y).curve(O.curveMonotoneX),e=O.line().x(r=>r.x).y(r=>r.y).curve(O.curveMonotoneX);O.select(`.${me.areaGraphPath}-${this.groupId}`).datum(this.hoverZones).attr("d",r=>t(r)),O.select(`.${me.lineGraphPath}-${this.groupId}`).datum(this.hoverZones).attr("d",r=>e(r))},getEventRectX(t,e){const r=e(this.tzStringToDate(t.startDate||t.timestamp));return isNaN(r)?0:r},tzStringToDate(t){return Qe({timestamp:t,timezone:this.timezone})}}}),od="";var l5=function(){var e=this,r=e._self._c;return r("ETimelineGroupContainer",{attrs:{"group-id":e.groupId,color:e.eventsGroup.color,label:e.eventsGroup.label,"background-color":e.eventsGroup.bgColor,loading:e.eventsGroup.isLoading,x:e.x,y:e.y,dark:e.dark,width:e.width,height:e.labelHeight,"show-label":e.showLabel,"label-width":e.labelWidth,hidden:e.eventsGroup.isHidden,"show-background":!1},on:{"group-label-clicked":function(n){return e.$emit("group-label-clicked",e.groupId)}}},[r("g",{class:`${e.classNames.lineGraphGroup} ${e.classNames.lineGraphGroup}-${e.groupId}`,style:{transform:`translate(0, ${e.yOffset}px) `}},[r("path",{class:`${e.classNames.areaGraphPath}-${e.groupId}`,attrs:{fill:`url(#${e.lineGradient})`,stroke:"none","stroke-linecap":"round","stroke-linejoin":"round"}}),r("path",{class:`${e.classNames.lineGraphPath}-${e.groupId}`,attrs:{fill:"none",stroke:e.eventsGroup.color,"stroke-width":1.5}}),e._l(e.hoverZones,function(n,i){return r("g",{key:i},[r("circle",{ref:`${e.classNames.lineGraphDot}-${e.groupId}-${i}`,refInFor:!0,class:[e.classNames.lineGraphDot,`${e.classNames.lineGraphDot}-${e.groupId}`,`${e.classNames.lineGraphDot}-${e.groupId}-${i}`,{[`${e.classNames.lineGraphDot}--active`]:n.isHovering}],attrs:{cx:n.x,cy:n.y,r:"1.5",fill:n.color,"stroke-width":0}}),r("rect",{class:`${e.classNames.lineGraphHoverZone} ${e.classNames.lineGraphHoverZone}-${e.groupId}`,attrs:{x:n.x-2,y:0,width:4,height:e.height,fill:"transparent"},on:{mouseover:function(a){return e.$emit("event-mouseover",a,n,e.groupId)},mouseleave:function(a){return e.$emit("event-mouseout")}}})])})],2)])},c5=[],u5=H(o5,l5,c5,!1,null,null,null,null);const d5=u5.exports,h5=F.extend({name:"ETimelineBarsChart",components:{ETimelineGroupContainer:cn},props:{timeScale:{type:Function,required:!0},eventsGroup:{type:Object,required:!0},groupId:{type:String,required:!0},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},dark:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},labelWidth:{type:[Number,void 0],default:void 0},labelHeight:{type:[Number,void 0],default:void 0},timezone:{type:[String,void 0],default:void 0},hoveredTimestamp:{type:String,default:""},yOffset:{type:Number,default:20},rectMinWidth:{type:Number,default:1},currentTimeScaleDensity:{type:Number,default:null},maxVisibleCount:{type:Number,default:1},previousCountsByTimestamp:{type:Object,default:null}},data(){return{classNames:me,defs:Je,characterWidth:7.5}},computed:{bars(){const[t,e]=this.timeScale.domain();return this.eventsGroup.events.filter((n,i)=>{var s,l;const a=i===0?1:i,o=new Date((s=this.eventsGroup.events[a+1])==null?void 0:s.endDate),c=new Date((l=this.eventsGroup.events[a-1])==null?void 0:l.startDate);return o>=t&&o<=e||c>=t&&c<=e})},hoverZones(){return this.bars.map(t=>{const e=this.getEventRectWidth(t),r=this.yScale.range()[0]-this.yScale(t.count),n=this.getEventRectX(t,this.timeScale),i=this.previousCountsByTimestamp[t.startDate]||0,a=this.yScale(i+t.count);return{x:n,y:a,height:r,width:e,color:t.color||this.eventsGroup.color,startDate:t.startDate,endDate:t.endDate,count:t.count,className:t.className,isHovering:this.hoveredTimestamp>=t.startDate&&this.hoveredTimestamp<t.endDate}})},yScale(){let t=O.scaleLinear().range([this.height,0]);return t=t.domain([0,this.maxVisibleCount||1]),t}},methods:{getBarOpacity(t){let e;return this.hoveredTimestamp||(e=Je.transparencyGradient),e=t.isHovering?Je.transparencyGradientHover:Je.transparencyGradientLight,`${e}-${this.groupId}-${He.BarChart}`},getEventRectX(t,e){return isNaN(e(this.tzStringToDate(t.startDate||t.timestamp)))?0:e(this.tzStringToDate(t.startDate||t.timestamp))},tzStringToDate(t){return Qe({timestamp:t,timezone:this.timezone})},onEventClick(){this.$emit("event-clicked")},getEventRectWidth(t){if(!t)return 0;if(t.startDate&&t.endDate){const e=new Date(t.startDate),r=new Date(t.endDate),n=this.timeScale(r)-this.timeScale(e);return Math.max(n,this.rectMinWidth)}else{const e=1/(this.currentTimeScaleDensity*3600);return Math.max(e,this.rectMinWidth)}}}}),ld="";var f5=function(){var e=this,r=e._self._c;return r("ETimelineGroupContainer",{attrs:{"group-id":e.groupId,color:e.eventsGroup.color,label:e.eventsGroup.label,"background-color":e.eventsGroup.bgColor,loading:e.eventsGroup.isLoading,x:e.x,y:e.y,dark:e.dark,width:e.width,height:e.labelHeight,"show-label":e.showLabel,"label-width":e.labelWidth,hidden:e.eventsGroup.isHidden,"show-background":!1},on:{"group-label-clicked":function(n){return e.$emit("group-label-clicked",e.groupId)}}},[r("g",{class:`${e.classNames.barChartGroup} ${e.classNames.barChartGroup}-${e.groupId}`,style:{transform:`translate(0, ${e.yOffset}px) `}},e._l(e.hoverZones,function(n,i){return r("g",{key:i,class:`${e.classNames.eventBarContainer} ${e.classNames.eventBarContainer}-${e.groupId}`,on:{mouseleave:function(a){return e.$emit("event-mouseout")},mouseover:function(a){return e.$emit("event-mouseover",a,n,e.groupId)},click:function(a){return e.onEventClick()}}},[r("rect",{class:[n.className?n.className:"",e.classNames.eventBarHoverZone],attrs:{x:n.x,y:-e.yOffset,width:n.width,height:e.yScale.range()[0]+e.yOffset,fill:n.color,"fill-opacity":0}}),r("rect",{class:[n.className?n.className:"",e.classNames.eventBar],attrs:{x:n.x,y:n.y,width:n.width,height:n.height,"stroke-width":5,cursor:"pointer",stroke:"#0000",fill:`url(#${e.getBarOpacity(n)})`}})])}),0)])},p5=[],m5=H(h5,f5,p5,!1,null,null,null,null);const g5=m5.exports,v5=F.extend({name:"ETimeline",directives:{resizeObserver:Ve},components:{ETimelineSVGDefs:xl,EXAxisBackground:vl,EXAxisDetailed:hl,EXAxisOverview:ol,ETimelineMilestone:I0,ETimelineMarkers:U0,ETimelineCursor:Il,ETimelineSelectedTimestampCursor:Nl,EZoomBehavior:Q0,ECursorBehavior:Ul,ETimelineRectsChart:a5,ETimelineForbiddenInterval:$l,ETimelineLinesChart:d5,ETimelineBarsChart:g5},props:{eventsGroups:{type:Object,default:null},dark:{type:Boolean,default:!1},startDate:{type:String,default:void 0},endDate:{type:String,default:void 0},selectedTimestamp:{type:String,default:void 0},showEventTooltip:{type:Boolean,default:!0},insertZerosAtInterval:{type:String,default:void 0},flattenLineGraphEnds:{type:Boolean,default:!0},showLabels:{type:Boolean,default:!0},barHeight:{type:Number,default:18},barYPadding:{type:Number,default:0},chartMinHeight:{type:Number,default:60},chartMinLabelHeight:{type:Number,default:18},minDate:{type:String,default:void 0},maxDate:{type:String,default:void 0},panOnDateClick:{type:Boolean,default:!1},selectedDate:{type:String,default:""},markers:{type:Array,default:()=>[]},stickyMarkers:{type:Boolean,default:!0},fitMarkersOnChange:{type:Boolean,default:!1},milestoneBulletSize:{type:Number,default:18},milestonesFirst:{type:Boolean,default:!0},forbiddenIntervals:{type:Array,default:()=>[]},forbiddenIntervalColor:{type:String,default:"#ddd"},focusedInterval:{type:[Object,void 0],default:void 0},locked:{type:Boolean,default:!1},timezone:{type:[String,void 0],default:void 0},stopClickPropagation:{type:Boolean,default:!1},tooltipPosition:{type:String,default:"top",validator:t=>["top","bottom"].includes(t)},maxDomainPadding:{type:Number,default:0},showCursor:{type:Boolean,default:!0}},data(){return{mainContainer:null,tooltip:null,timeline:null,svgElement:null,svg:null,axisHeight:22,isHoveringEvent:!1,isHoveringGroupedEvents:!1,isAnimating:!1,hoveredEvent:null,eventTooltipStyle:{},hoveredEventType:null,hoveredCounts:[],visibleFrom:null,visibleTo:null,characterWidth:7.5,textPadding:5,timeouts:[],groupsVisibility:{},selectedMilestoneId:null,isInitialized:!1,hoveredMilestone:null,focusedDomain:null,transitionDuration:400,focusedTimestamp:null,hoveredGroupedEvents:null,TimelineChartType:He,width:0}},computed:{filteredEventsGroups(){const t=Object.entries(this.eventsGroups).filter(([e,r])=>this.getCurrentGroupVisibility(e));return Object.fromEntries(t)},allEventsSorted(){const t=Object.values(this.filteredEventsGroups).map(e=>e.events).flat();return this.getSortedEvents(t)},barGroups(){return this.getGroupByType(this.filteredEventsGroups,[He.Bars,He.Dots])},lineGraphGroups(){return this.getGroupByType(this.filteredEventsGroups,[He.LineGraph])},barChartGroups(){return this.getGroupByType(this.filteredEventsGroups,[He.BarChart])},milestonesGroups(){return this.getGroupByType(this.filteredEventsGroups,[He.Milestones])},combinedBarsHeight(){return Object.values(this.barGroups).reduce((t,e)=>t+(this.getBarGroupHeight(e)||this.barHeight+this.barYPadding),0)},combinedBottomBarsHeight(){return Object.values(this.barGroups).reduce((t,e)=>t+(e.bottom?this.getBarGroupHeight(e):0),0)},combinedMilestonesHeight(){return Object.values(this.milestonesGroups).reduce((t,e)=>t+(e.height||this.barHeight),0)},milestonesYOffset(){return this.milestonesFirst?0:this.combinedBarsHeight-this.combinedBottomBarsHeight+(this.hasChart?this.chartHeight:0)},chartsYOffset(){return this.combinedXAxesHeight+(this.hasMilestones&&this.milestonesFirst?this.combinedMilestonesHeight:0)},barsYOffset(){return(this.hasChart?this.chartHeight:0)+(this.hasMilestones&&this.milestonesFirst?this.combinedMilestonesHeight:0)},hasMilestones(){return Object.keys(this.milestonesGroups).length>0},computedClasses(){return{wrapper:{"e-border-gray-700 e-timeline--dark":this.dark,"e-border-gray-300":!this.dark},background:this.dark?"e-bg-gray-900":"e-bg-gray-50",tooltipSlot:this.dark?"e-bg-gray-900 e-text-white e-border-gray-700":"e-bg-gray-100 e-text-gray-700 e-border-gray-300",eventTooltipSlot:this.dark?"e-bg-gray-900 e-text-white e-border-gray-700":"e-bg-gray-100 e-text-gray-700 e-border-gray-300"}},chartHeight(){if(!this.showLabels)return this.chartMinHeight;const e=(Object.keys(this.lineGraphGroups).length+Object.keys(this.barChartGroups).length)*this.barHeight;return Math.max(this.chartMinHeight,e)},chartLabelHeight(){return Math.max(this.chartMinLabelHeight,this.barHeight)},hasChart(){return Object.keys(this.lineGraphGroups).length+Object.keys(this.barChartGroups).length>0},labelRectWidth(){return Object.values(this.eventsGroups).reduce((r,n)=>{var i;return Math.max(r,(i=n.label)==null?void 0:i.length)},0)*this.characterWidth+2*this.textPadding},combinedXAxesHeight(){return this.axisHeight*1.75},timelineHeight(){return(this.hasChart?this.chartHeight:0)+this.combinedXAxesHeight+this.combinedBarsHeight+this.combinedMilestonesHeight},oldestEvent(){let t;return this.allEventsSorted.length>1?t=this.allEventsSorted[0]:t={timestamp:new Date(new Date().getTime()-864e5)},t},latestEvent(){let t;return this.allEventsSorted.length>1?t=this.allEventsSorted[this.allEventsSorted.length-1]:t={timestamp:new Date},t},allLineChartTimestamps(){const t=new Set;return Object.values(this.lineGraphGroups).forEach(e=>{e.events.forEach(r=>{t.add(r.timestamp)})}),Array.from(t).sort()},placeholderLineChartGroup(){return this.fillTimeGaps(this.allLineChartTimestamps.map(t=>({timestamp:t,count:0})))},filledGapsLineGraphGroups(){return Object.entries(this.lineGraphGroups).reduce((t,[e,r])=>({...t,[e]:{...r,events:this.fillEvents(r.events)}}),{})},flattenedLinesCounts(){return Object.values(this.lineGraphGroups).map(t=>t.events).flat()},flattenedBarsCounts(){return Object.values(this.barChartGroups).map(t=>t.events).flat()},hiddenGroupsLabels(){return Object.entries(this.groupsVisibility).reduce((t,[e,r])=>r?t:[...t,e],[])},minHoverZone(){return this.showLabels?this.labelRectWidth:0},sortedMarkers(){return this.isInitialized?[...this.markers].sort((t,e)=>new Date(t.timestamp).getTime()>new Date(e.timestamp).getTime()?1:-1):[]},maxVisibleCount(){const t=a=>{const o=new Date(a.startDate||a.timestamp),c=new Date(a.endDate||a.timestamp),s=new Date(this.visibleFrom),l=new Date(this.visibleTo);return c>=s&&c<=l||o>=s&&o<=l},e=this.flattenedBarsCounts.filter(t),r=this.flattenedLinesCounts.filter(t).map(a=>a.count),n={};e.forEach(a=>{const o=a.startDate||a.timestamp;n[o]=(n[o]||0)+a.count});const i=Object.values(n).concat(r);return O.max(i)||1},defaultMaxDomain(){const t=new Date(this.oldestEvent.timestamp||this.oldestEvent.startDate).getTime(),e=new Date(this.latestEvent.timestamp||this.latestEvent.endDate).getTime(),n=(e-t)*.75,i=new Date(t-n),a=new Date(e+n);return[i.toISOString(),a.toISOString()]},defaultFocusedDomain(){const t=this.oldestEvent.timestamp||this.oldestEvent.startDate,e=this.latestEvent.timestamp||this.latestEvent.endDate;return[t,e]},domain(){let t=new Date(this.minDate||this.defaultMaxDomain[0]).getTime(),e=new Date(this.maxDate||this.defaultMaxDomain[1]).getTime(),r=0;return this.maxDomainPadding&&(r=(e-t)*this.maxDomainPadding),t=new Date(t-r).toISOString(),e=new Date(e+r).toISOString(),[this.tzStringToDate(t),this.tzStringToDate(e)]},svgLeft(){var t,e,r;return((r=(e=(t=this.svg)==null?void 0:t.node())==null?void 0:e.getBoundingClientRect())==null?void 0:r.left)||0},markersScopedSlots(){return Object.keys(this.$scopedSlots).filter(t=>t.startsWith("marker.")).reduce((t,e)=>(t[e]=this.$scopedSlots[e],t),{})},isHoveringMilestone(){return!!this.hoveredMilestone},milestonesGroupsPlaceholder(){return Object.entries(this.milestonesGroups).reduce((t,[e,r])=>({...t,[e]:{...r,events:[],isLoading:!1}}),{})},countsByTimestamp(){const t={...this.lineGraphGroups,...this.barChartGroups};return Object.entries(t).reduce((e,[r,n])=>(n.events.forEach(i=>{const a=i.timestamp||i.startDate;e[a]={...e[a]||{},[r]:i.count}}),e),{})}},watch:{markers(t,e){t===e||!this.fitMarkersOnChange||e.length===0||this.zoomToFitMarkers()},startDate(){this.zoomToStartAndEndDates()},endDate(){this.zoomToStartAndEndDates()},selectedDate(t){t&&!this.locked&&(this.focusedTimestamp=this.tzStringToDate(t).toISOString())},focusedInterval(t){t&&(t!=null&&t.startDate)&&(t!=null&&t.endDate)&&(this.focusedDomain=[t.startDate,t.endDate])}},mounted(){this.validateProps(),this.initTimeline()},beforeDestroy(){this.clearTimeline()},methods:{handleVisibleIntervalChange({fromDate:t,toDate:e,trigger:r,transform:n}){this.visibleFrom=t,this.visibleTo=e,this.$emit("visible-interval-change",{fromDate:t,toDate:e,trigger:r,transform:n})},getGroupByType(t,e){return Object.entries(t).reduce((r,[n,i])=>!i.chartType&&e.includes(He.Bars)||e.includes(i.chartType)?{...r,[n]:i}:r,{})},getPreviousCountsByTimestamp(t){if(t===0)return{};const e=Object.fromEntries(Object.entries(this.barChartGroups).slice(0,t)),r=[...Object.values(e)].map(i=>i.events).flat(),n={};return r.forEach(i=>{const a=i.startDate||i.timestamp;n[a]=(n[a]||0)+i.count}),n},getChartsYPosition(t){const e=Object.keys(this.lineGraphGroups).concat(Object.keys(this.barChartGroups));return this.timelineHeight-this.chartLabelHeight*(e.indexOf(t)+1)-(this.milestonesFirst?0:this.combinedMilestonesHeight)-this.combinedBarsHeight},validateProps(){this.minDate||console.log("<ETimeline />: didn't receive a 'min-date' prop. Setting default: ",this.defaultMaxDomain[0]),this.maxDate||console.log("<ETimeline />: didn't receive a 'max-date' prop. Setting default: ",this.defaultMaxDomain[1]),this.startDate||console.log("<ETimeline />: didn't receive a 'start-date' prop. Setting default: ",this.defaultFocusedDomain[0]),this.endDate||console.log("<ETimeline />: didn't receive an 'end-date' prop. Setting default: ",this.defaultFocusedDomain[1])},initTimeline(){if(this.initRefs(),this.zoomToStartAndEndDates(),!this.timeline||this.timeline.offsetWidth===0||!this.domain){this.timeouts.push(setTimeout(this.initTimeline,500));return}this.selectedDate&&this.panOnDateClick&&(this.focusedTimestamp=this.tzStringToDate(this.selectedDate)),this.isInitialized=!0},initRefs(){this.tooltip=this.$refs.tooltip,this.mainContainer=this.$refs.mainContainer,this.timeline=this.$refs.timelineContainer,this.svgElement=this.$refs.timelineSvg,this.svg=O.select(this.svgElement)},zoomToFitMarkers(){const t=this.markers.map(a=>new Date(a.timestamp).getTime());if(t.length<2)return;const e=Math.min(...t),r=Math.max(...t),n=new Date(e),i=new Date(r);this.focusedDomain=[n,i]},clearTimeline(){this.svg&&this.svg.remove()},handleMouseLeave(){this.$emit("hovered-timestamp",void 0)},handleMouseMove(t,e){this.$emit("hovered-timestamp",e),this.tooltip&&(this.eventTooltipStyle={left:`${t}px`,zIndex:100,[this.tooltipPosition==="top"?"bottom":"top"]:`${this.timeline.getBoundingClientRect().height}px`})},isForbiddenInterval(t){const e=new Date(t).getTime(),r=this.forbiddenIntervals.some(a=>{const o=isNaN(new Date(a.startDate).getTime())?-1/0:new Date(a.startDate).getTime(),c=isNaN(new Date(a.endDate).getTime())?1/0:new Date(a.endDate).getTime();return e>=o&&e<=c});let n=!1;this.startDate&&(n=e<new Date(this.startDate).getTime());let i=!1;return this.endDate&&(i=e>new Date(this.endDate).getTime()),r||n||i},handleClick(t){if(this.isForbiddenInterval(t)){this.$emit("forbidden-timestamp-clicked",t);return}if(this.isHoveringGroupedEvents){if(this.isHoveringGroupedEvents=!1,this.$emit("grouped-events-clicked",{events:this.hoveredGroupedEvents,type:this.hoveredEventType}),this.stopClickPropagation)return}else if(this.isHoveringEvent&&(this.isHoveringEvent=!1,this.$emit("event-clicked",{event:this.hoveredEvent,type:this.hoveredEventType}),this.stopClickPropagation))return;this.$emit("date-clicked",t),this.panOnDateClick&&(this.focusedTimestamp=t)},handleMarkerClick(t){this.$emit("marker-clicked",t),this.panOnDateClick&&(this.focusedTimestamp=t.timestamp)},handleChartMouseOver(t,e,r){this.isAnimating||!this.countsByTimestamp[`${e.timestamp||e.startDate}`]||(this.hoveredCounts=Object.entries(this.countsByTimestamp[`${e.timestamp||e.startDate}`]).reduce((n,i)=>{var c;const[a,o]=i;return(c=this.hiddenGroupsLabels)!=null&&c.includes(a)?n:[...n,{type:a,count:o,label:this.getExternalLabelText(a)}]},[]),this.hoveredEvent=e,this.isHoveringEvent=!0,this.$emit("event-mouseover",{eventData:e,eventType:r,hoveredCounts:this.hoveredCounts}))},handleChartMouseOut(){this.isHoveringEvent=!1,this.hoveredCounts=[],this.$emit("event-mouseout")},handleBarMouseOver(t,e,r){t.offsetX<=this.minHoverZone||(this.hoveredEvent=e,this.hoveredEventType=r,this.isHoveringEvent=!0,this.isHoveringGroupedEvents=!1,this.$emit("event-mouseover",{eventData:e,eventType:r}))},handleBarGroupedEventsMouseOver(t,e,r){t.offsetX<=this.minHoverZone||(this.hoveredGroupedEvents=e,this.hoveredEventType=r,this.isHoveringEvent=!1,this.isHoveringGroupedEvents=!0,this.$emit("grouped-events-mouseover",{events:e,eventType:r}))},handleBarMouseOut(){this.isHoveringEvent=!1,this.isHoveringGroupedEvents=!1,this.hoveredEvent=null,this.hoveredGroupedEvents=null,this.$emit("event-mouseout")},handleTimeScaleChange(t){this.$emit("time-scale-change",t)},zoomToStartAndEndDates(){var r,n;const t=this.startDate||((r=this.focusedInterval)==null?void 0:r.startDate)||this.defaultFocusedDomain[0],e=this.endDate||((n=this.focusedInterval)==null?void 0:n.endDate)||this.defaultFocusedDomain[1];this.focusedDomain=[this.tzStringToDate(t),this.tzStringToDate(e)]},onAnimationStart(){this.isAnimating=!0,this.$emit("animation-start")},onAnimationEnd(){this.isAnimating=!1,this.$emit("animation-end")},getMilestoneClass(t){return{[me.milestoneSelected]:[t.id,t.timestamp].includes(this.selectedMilestoneId)}},getMilestoneColors(t,e){return{background:t||e,border:this.getTextFillColor(t||e,.25)}},getMilestoneGroupYPosition(t){let e=0;for(const[r,n]of Object.entries(this.milestonesGroups)){if(r===t)break;e+=n.height||this.barHeight}return this.combinedXAxesHeight+this.milestonesYOffset+e},getBarGroupYPosition(t,e){let r=this.combinedXAxesHeight;e?r+=(this.hasChart?this.chartHeight:0)+(this.hasMilestones?this.combinedMilestonesHeight:0):r+=this.barsYOffset;for(const[n,i]of Object.entries(this.barGroups)){if(n===t)break;!e&&i.bottom||(r+=this.getBarGroupHeight(i))}return r},getBarGroupHeight(t){return t.height?Math.max(t.height+this.barYPadding,1):this.barHeight+this.barYPadding},getTextFillColor(t,e=0){var r,n;return(this.dark?(r=O.color(t))==null?void 0:r.brighter(1.5+e):(n=O.color(t))==null?void 0:n.darker(2+e)).toString()},getLabelBackgroundColor(t){let e=O.color(t);return e.opacity=this.dark?.2:.5,e.toString()},getCurrentGroupVisibility(t){var n;const e=this.groupsVisibility[t];if(e!==void 0)return e;const r=(n=this.eventsGroups[t])==null?void 0:n.isHidden;return r!==void 0?!r:!0},toggleGroupVisibility(t){this.groupsVisibility={...this.groupsVisibility,[t]:!this.getCurrentGroupVisibility(t)}},getExternalLabelStyles(t){const e=this.eventsGroups[t].color;return{background:this.getLabelBackgroundColor(e),color:this.getTextFillColor(e)}},getExternalLabelText(t){var e;return(e=this.eventsGroups[t])==null?void 0:e.label},getExternalLabelWrapperStyles(t){const e=this.eventsGroups[t].color;return{borderColor:this.getTextFillColor(e)}},tzStringToDate(t){return Qe({timestamp:t,timezone:this.timezone})},getFormattedTimestamp(t){return ke.parseZone(t).format("YYYY-MM-DDTHH:mm:ss")},fillTimeGaps(t){if(t.length<=1)return t;const e=this.insertZerosAtInterval,r=a=>a.clone().add(1,e),n=a=>a.clone().subtract(1,e);let i=[];for(let a=0;a<t.length;a++){const o=t[a];if(i.push(o),a===t.length-1)break;const c=t[a+1],s=ke(o.timestamp),l=ke(c.timestamp);if(l.diff(s,e)>1){const d=r(s).toISOString(),f=n(l).toISOString();i.push({timestamp:d,count:0}),d!==f&&i.push({timestamp:f,count:0})}}if(this.flattenLineGraphEnds){const a=ke(t[0].timestamp),o=ke(t[t.length-1].timestamp),c=n(a).toISOString(),s=r(o).toISOString();i=[{timestamp:c,count:0},...i,{timestamp:s,count:0}]}return i},fillEvents(t){return this.placeholderLineChartGroup.map(e=>t.find(n=>n.timestamp===e.timestamp)||e)},onMilestoneClick(t,e){this.panOnDateClick&&(this.focusedTimestamp=t.timestamp),this.selectedMilestoneId=t.id||t.timestamp,this.$emit("milestone-click",{milestone:t,milestoneType:e})},getSortedEvents(t){return[...t].sort((e,r)=>new Date(e.timestamp||e.startDate)>new Date(r.timestamp||r.startDate)?1:-1)},onHoverMilestone(t){this.hoveredMilestone=t},onResizeContainer({contentRect:t}){this.width===t.width||t.width===0||(this.width=t.width,this.$emit("timeline-resize",{contentRect:t}))}}}),cd="";var _5=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResizeContainer,expression:"onResizeContainer"}],ref:"mainContainer",staticClass:"e-timeline"},[r("EZoomBehavior",{attrs:{domain:e.domain,"focused-domain":e.focusedDomain,"translation-duration":e.transitionDuration,"focused-timestamp":e.focusedTimestamp,timezone:e.timezone,width:e.width},on:{"visible-interval-change":e.handleVisibleIntervalChange,"time-scale-change":e.handleTimeScaleChange,"animation-start":e.onAnimationStart,"animation-end":e.onAnimationEnd},scopedSlots:e._u([{key:"default",fn:function({timeScale:n}){return[n?r("div",{staticClass:"e-relative e-timeline e-border e-rounded",class:e.computedClasses.wrapper},[r("ECursorBehavior",{attrs:{"time-scale":n,timezone:e.timezone,"min-hover-zone":e.minHoverZone,"is-hovering-milestone":e.isHoveringMilestone},on:{"mouse-move":e.handleMouseMove,"mouse-leave":e.handleMouseLeave,"timestamp-clicked":e.handleClick},scopedSlots:e._u([{key:"default",fn:function({hoveredTimestamp:i,isHoveringTimeline:a}){var o;return[r("ETimelineMarkers",{attrs:{markers:e.sortedMarkers,"sticky-markers":e.stickyMarkers,"time-scale":n,"time-zone":e.timezone,height:e.timelineHeight,"svg-left":e.svgLeft},on:{"marker-clicked":e.handleMarkerClick,"marker-drag-end":function(c){return e.$emit("marker-drag-end",c)},"marker-drag-start":function(c){return e.$emit("marker-drag-start",c)},"marker-drag-drag":function(c){return e.$emit("marker-drag-drag",c)}},scopedSlots:e._u([e._l(e.markersScopedSlots,function(c,s){return{key:s,fn:function(l){return[e._t(s,null,null,l)]}}})],null,!0)}),r("div",{ref:"timelineContainer",staticClass:"e-timeline__svg-container e-relative e-h-13 e-rounded e-select-none e-overflow-x-hidden"},[r("svg",{ref:"timelineSvg",class:e.computedClasses.background,attrs:{width:e.width,height:e.timelineHeight}},[r("ETimelineSVGDefs",{attrs:{"events-groups":e.eventsGroups,width:e.width,height:e.chartHeight,"forbidden-interval-color":e.forbiddenIntervalColor}}),r("g",{staticClass:"e-timeline-axes"},[n?r("EXAxisOverview",{attrs:{"time-scale":n,height:e.timelineHeight,dark:e.dark}}):e._e(),n?r("EXAxisDetailed",{attrs:{"time-scale":n,height:e.timelineHeight-e.axisHeight,y:e.axisHeight,dark:e.dark}}):e._e(),n?r("EXAxisBackground",{attrs:{"time-scale":n,height:e.timelineHeight-e.combinedXAxesHeight,y:e.combinedXAxesHeight,dark:e.dark}}):e._e()],1),e.selectedTimestamp?r("ETimelineSelectedTimestampCursor",{attrs:{"time-scale":n,"selected-timestamp":e.selectedTimestamp,timezone:e.timezone,height:e.timelineHeight}}):e._e(),i&&a&&!e.isHoveringMilestone&&e.showCursor?r("ETimelineCursor",{attrs:{"time-scale":n,"selected-timestamp":i,timezone:e.timezone,height:e.timelineHeight}}):e._e(),e._l(e.forbiddenIntervals,function(c,s){return r("ETimelineForbiddenInterval",{key:s,attrs:{"time-scale":n,interval:c,index:s,height:e.timelineHeight,timezone:e.timezone}})}),e._l(e.barGroups,function(c,s){return r("ETimelineRectsChart",{key:s,attrs:{"time-scale":n,"events-group":c,"group-id":s,y:e.getBarGroupYPosition(s,c.bottom),height:e.barHeight,width:e.width,"rect-y-padding":e.barYPadding,dark:e.dark,"show-label":e.showLabels,timezone:e.timezone,dots:c.chartType===e.TimelineChartType.Dots,"dots-size":c.dotsSize,"bar-border-radius":c.barBorderRadius,"group-overlapping-dots":c.groupOverlappingDots},on:{"event-mouseover":e.handleBarMouseOver,"grouped-events-mouseover":e.handleBarGroupedEventsMouseOver,"event-mouseout":e.handleBarMouseOut,"group-label-clicked":e.toggleGroupVisibility}})}),e._l(e.milestonesGroupsPlaceholder,function(c,s){return r("ETimelineRectsChart",{key:s,attrs:{width:e.width,y:e.getMilestoneGroupYPosition(s),height:c.height,"group-id":s,"events-group":c,"time-scale":n,dark:e.dark,dots:!0,"show-label":!1}})}),e._l(e.insertZerosAtInterval?e.filledGapsLineGraphGroups:e.lineGraphGroups,function(c,s){return r("ETimelineLinesChart",{key:s,attrs:{"group-id":s,"time-scale":n,"events-group":c,y:e.getChartsYPosition(s),height:e.chartHeight,width:e.width,dark:e.dark,timezone:e.timezone,"show-label":e.showLabels,"label-height":e.chartLabelHeight,"max-visible-count":e.maxVisibleCount,"y-offset":e.chartsYOffset,"hovered-timestamp":i},on:{"event-mouseover":e.handleChartMouseOver,"event-mouseout":e.handleChartMouseOut,"group-label-clicked":e.toggleGroupVisibility}})}),e._l(e.barChartGroups,function(c,s,l){return r("ETimelineBarsChart",{key:s,attrs:{"group-id":s,width:e.width,y:e.getChartsYPosition(s),height:e.chartHeight,"events-group":c,"time-scale":n,dark:e.dark,"y-offset":e.chartsYOffset,"label-height":e.chartLabelHeight,"max-visible-count":e.maxVisibleCount,"show-label":e.showLabels,"hovered-timestamp":i,"previous-counts-by-timestamp":e.getPreviousCountsByTimestamp(l)},on:{"event-mouseover":e.handleChartMouseOver,"event-mouseout":e.handleChartMouseOut,"group-label-clicked":e.toggleGroupVisibility}})})],2)]),e._l(e.milestonesGroups,function(c,s){return r("div",{key:`${s}`,staticClass:"e-timeline-milestones",attrs:{"data-test-id":"timeline-milestones"}},[r("div",{class:`e-tl-milestones e-tl-milestones-${s}`},e._l(e.getSortedEvents(c.events),function(l,d){return r("ETimelineMilestone",{key:`${l.milestoneType}-${d}`,class:e.getMilestoneClass(l),attrs:{"time-scale":n,y:e.getMilestoneGroupYPosition(s),height:c.height||e.barHeight,"data-timestamp":l.timestamp,milestone:l,dot:c.dots,size:l.size||e.milestoneBulletSize,"transition-duration":c.milestonesTransitionDuration,"line-height":c.milestonesLineHeight,"dot-size":c.milestonesDotSize,"data-test-id":`milestone-${l.milestoneType}-${d}`,"background-color":e.getMilestoneColors(l.color,c.color).background,"border-color":e.getMilestoneColors(l.color,c.color).border,timezone:e.timezone},on:{"hovered-milestone":e.onHoverMilestone,"milestone-click":function(f){return e.onMilestoneClick(l,s)}},scopedSlots:e._u([{key:"content",fn:function(){return[e._t(`milestoneContent.${l.milestoneType}`,function(){return[r("span",{staticClass:"e-px-2"},[e._v(" "+e._s(l.text)+" ")])]},{milestone:l,index:d,hover:l===e.hoveredMilestone})]},proxy:!0},{key:"label",fn:function(){return[e._t(`milestoneLabel.${l.milestoneType}`,null,{milestone:l})]},proxy:!0}],null,!0)})}),1)])}),r("div",{staticClass:"external-labels-container e-flex"},e._l(e.hiddenGroupsLabels,function(c){return r("div",{key:c,staticClass:"external-label",class:e.computedClasses.background,style:e.getExternalLabelWrapperStyles(c),on:{click:function(s){return s.stopPropagation(),e.toggleGroupVisibility(c)}}},[r("div",{staticClass:"external-label__content",style:e.getExternalLabelStyles(c)},[e._v(" "+e._s(e.getExternalLabelText(c))+" ")])])}),0),r("div",{key:"tooltip",ref:"tooltip",staticClass:"e-absolute",style:e.eventTooltipStyle},[e._t("tooltip",function(){return[r("div",{directives:[{name:"show",rawName:"v-show",value:a&&!e.isHoveringEvent&&!e.isHoveringMilestone,expression:`
4
4
  isHoveringTimeline &&
5
5
  !isHoveringEvent &&
6
6
  !isHoveringMilestone
7
- `}],staticClass:"e-timeline__tooltip e-border e-rounded e-px-2 -e-left-2/4 e-relative",class:e.computedClasses.tooltipSlot},[e._v(" "+e._s(i)+" ")])]},{timestamp:i,active:o&&!e.isHoveringMilestone})],2),r("div",{key:`${e.hoveredGroupedEvents?e.hoveredGroupedEvents[0].timestamp:(s=e.hoveredEvent)==null?void 0:s.timestamp}`,staticClass:"e-absolute e-z-50",style:e.eventTooltipStyle},[e._t("eventTooltip",function(){return[e.hoveredGroupedEvents?r("div",{directives:[{name:"show",rawName:"v-show",value:e.showEventTooltip&&e.isHoveringGroupedEvents,expression:"showEventTooltip && isHoveringGroupedEvents"}]},[r("div",[r("strong",[e._v(e._s(e.hoveredGroupedEvents.length)+" Events")]),e._v(": ")]),r("div",[r("strong",[e._v("From")]),e._v(":"+e._s(e.hoveredGroupedEvents[0].timestamp||e.hoveredGroupedEvents[0].startDate)+" ")]),r("div",[r("strong",[e._v("To")]),e._v(":"+e._s(e.hoveredGroupedEvents[e.hoveredGroupedEvents.length-1].timestamp||e.hoveredGroupedEvents[e.hoveredGroupedEvents.length-1].endDate)+" ")])]):e.showEventTooltip&&(e.hoveredEvent||e.hoveredCounts.length)?r("div",{directives:[{name:"show",rawName:"v-show",value:e.isHoveringEvent,expression:"isHoveringEvent"}],staticClass:"e-timeline__event-tooltip e-border e-rounded e-px-2 -e-left-2/4 e-relative",class:e.computedClasses.eventTooltipSlot},[e.hoveredCounts.length?r("div",[r("strong",[e._v("Timestamp")]),e._v(": "+e._s(e.hoveredEvent.timestamp)+" "),e._l(e.hoveredCounts,function(c,a){return r("div",{key:a},[r("strong",[e._v(e._s(c.label||c.type)+" Count")]),e._v(": "+e._s(c.count)+" ")])})],2):e.hoveredEvent?r("div",[e.hoveredEvent.timestamp?r("div",[r("strong",[e._v("Event time")]),e._v(": "+e._s(e.hoveredEvent.timestamp)+" ")]):e._e(),e.hoveredEvent.startDate?r("div",[r("strong",[e._v("From")]),e._v(":"+e._s(e.hoveredEvent.startDate)+" ")]):e._e(),e.hoveredEvent.endDate?r("div",[r("strong",[e._v("To")]),e._v(":"+e._s(e.hoveredEvent.endDate)+" ")]):e._e()]):e._e()]):e._e()]},{event:e.hoveredEvent,groupedEvents:e.hoveredGroupedEvents,counts:e.hoveredCounts,active:e.isHoveringEvent,type:e.hoveredEventType})],2)]}}],null,!0)})],1):e._e()]}}])})],1)},y5=[],C5=H(v5,_5,y5,!1,null,null,null,null);const Zi=C5.exports,b5=F.extend({name:"EVideoEmbed",props:{videoUrl:{type:String,required:!0},platform:{type:String,required:!0,validator:t=>["youtube","vimeo"].includes(t)},iframeListeners:{type:Object,default:()=>({})},iframeOptions:{type:Object,default:()=>({})}},computed:{videoId(){if(this.platform==="youtube"){const t=/^.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#\&\?]*).*/,e=this.videoUrl.match(t);return e&&e[1].length===11?e[1]:void 0}else if(this.platform==="vimeo"){const t=this.videoUrl.match(/vimeo\.com\/(\d+)/);return t?t[1]:void 0}},embedUrl(){var t;if(this.platform==="youtube"){const e=new URLSearchParams({quality:"1080p",...this.iframeOptions});return`https://www.youtube.com/embed/${this.videoId}?${e.toString()}`}else if(this.platform==="vimeo"&&this.videoId){const e=(t=this.videoUrl.split("/").pop())==null?void 0:t.split("?")[0],r=new URLSearchParams({h:e||"",quality:"1080p",...this.iframeOptions});return`https://player.vimeo.com/video/${this.videoId}?${r.toString()}`}return""}}}),ud="";var x5=function(){var e=this,r=e._self._c;return r("div",{staticClass:"video-embed"},[r("iframe",e._g(e._b({attrs:{src:e.embedUrl,frameborder:"0",allowfullscreen:"",width:"100%",height:"100%",allow:"autoplay; fullscreen; picture-in-picture"}},"iframe",e.iframeOptions,!1),e.iframeListeners))])},w5=[],S5=H(b5,x5,w5,!1,null,"7e66cb69",null,null);const Yi=S5.exports,T5=F.extend({name:"EHeatmapBar",props:{items:{type:Array,default:()=>[]},selectedValue:{type:[String,Number],default:""},showCounts:{type:Boolean,default:!0},namesOnly:{type:Boolean,default:!1},showNames:{type:Boolean,default:!0},colors:{type:Array,default:()=>Xr("#ebedf0","#17459e",10)},colorsDark:{type:Array,default:()=>Xr("rgba(26,53,86,0.49)","#1f65ee",10)},label:{type:String,default:""},dense:{type:Boolean,default:!1},dark:{type:Boolean,default:!1}},data(){return{}},computed:{heatMapBarItems(){return this.items},maxCount(){return this.items.reduce((t,e)=>Math.max(t,e.count),0)},computedColors(){return this.dark?this.colorsDark:this.colors},textColor(){return{color:this.dark?"#eee":"#111"}}},methods:{getColorIndex(t){return Math.ceil(t/this.maxCount*(this.computedColors.length-1))},getColor(t){const e=this.getColorIndex(t);return this.computedColors[e]||this.computedColors[0]},getItemStyle(t){return{background:this.getColor(t)}},getItemClasses(t){return typeof t=="object"?t:{[t]:!0}},getCountTextStyle(t){const e=this.getColor(t);return{color:this.getContrastingPaletteColor(e)}},adjustColorBrightness(t,e){const r=O.hsl(t);return r.l+=e,r.l=Math.max(.1,Math.min(.9,r.l)),r.formatHex()},getContrastingPaletteColor(t){const e=O.color(t);if(!e)return t;const{r,g:n,b:i}=e.rgb(),s=(.299*r+.587*n+.114*i)/255>.5?-.5:.5;return this.adjustColorBrightness(t,s)}}}),dd="";var k5=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-flex e-heatmap-bar",class:{"e-heatmap-bar--dense":e.dense,"e-heatmap-bar--dark":e.dark},style:e.textColor},[e._t("label",function(){return[e.label?r("div",{staticClass:"e-heatmap-bar__label",style:e.textColor},[e._v(" "+e._s(e.label)+" ")]):e._e()]}),e._l(e.heatMapBarItems,function({name:n,value:i,count:o,itemClass:s,id:c}){return r("div",{key:i,staticClass:"e-flex e-w-full e-justify-center e-items-center e-heatmap-bar__item",class:{"e-heatmap-bar__item--selected":e.selectedValue===i,...e.getItemClasses(s)},style:e.getItemStyle(o),on:{click:function(a){return e.$emit("change",i,s,c)}}},[e.namesOnly?r("span",{staticClass:"e-heatmap-bar__item__count",style:e.getCountTextStyle(o)},[e._v(" "+e._s(n)+" ")]):e.showCounts?r("span",{staticClass:"e-heatmap-bar__item__count",style:e.getCountTextStyle(o)},[e._v(" "+e._s(o>0?o:"")+" ")]):e._e(),e.showNames&&!e.namesOnly?r("span",{staticClass:"e-heatmap-bar__item__name e-text-xs e-text-black e-truncate",style:e.textColor},[e._v(" "+e._s(n)+" ")]):e._e()])})],2)},$5=[],E5=H(T5,k5,$5,!1,null,null,null,null);const un=E5.exports,M5=F.extend({name:"EHoursHeatmap",components:{EHeatmapBar:un},props:{items:{type:Array,default:()=>[]},selectedHour:{type:[String,Number],default:""},showHours:{type:Boolean,default:!0},colors:{type:Array,default:()=>["#ebedf0","#c0ddf9","#73b3f3","#3886e1","#17459e"]},label:{type:String,default:""},dense:{type:Boolean,default:!1}},computed:{itemsByHour(){return this.items.reduce((t,e)=>({...t,[ke(e.timestamp).format("H")]:e}),{})},heatmapBarItems(){return new Array(24).fill(void 0).reduce((t,e,r)=>{var n;return[...t,{name:this.getFormattedHour(r),value:r,count:((n=this.itemsByHour[r])==null?void 0:n.count)||0}]},[])}},methods:{getFormattedHour(t){const e=t.toString();return(e.length>1?e:`0${e}`)+(this.dense?"h":":00")}}});var L5=function(){var e=this,r=e._self._c;return r("EHeatmapBar",e._g({staticClass:"e-hours-heatmap",attrs:{items:e.heatmapBarItems,"selected-value":e.selectedHour,"show-names":e.showHours,colors:e.colors,label:e.label,dense:e.dense},scopedSlots:e._u([{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},e.$listeners))},D5=[],P5=H(M5,L5,D5,!1,null,null,null,null);const Xi=P5.exports,O5=F.extend({name:"EReadMore",props:{content:{type:[Array,String],default:()=>null},maxLength:{type:Number,default:()=>2},showAll:{type:Boolean,default:!1},expandText:{type:String,default:"see more..."},collapseText:{type:String,default:"less"},moreTextWithPlaceholder:{type:String,default:"and {count} more..."},onePerLine:{type:Boolean,default:!1}},data(){return{showAllContent:!1}},computed:{hiddenContentLength(){var t,e;return Math.max(((e=(t=this.content)==null?void 0:t.length)!=null?e:0)-this.maxLength,0)},isArrayContent(){return Array.isArray(this.content)},isHiddenTextContent(){return this.hiddenContentLength>0&&!this.showAllContent&&!this.isArrayContent},isHiddenArrayContent(){return this.hiddenContentLength>0&&!this.showAllContent&&this.isArrayContent},isContentExpanded(){var t;return this.showAllContent&&((t=this.content)==null?void 0:t.length)>0},computedMoreText(){return this.moreTextWithPlaceholder.replace("{count}",this.hiddenContentLength.toString())}},mounted(){this.showAllContent=this.showAll},methods:{displayContent(){return this.isArrayContent?this.displayArrayContent():this.displayTextContent()},displayArrayContent(){var e,r;const t=this.onePerLine?"<br/>":", ";return((e=this.content)==null?void 0:e.length)>this.maxLength&&this.showAllContent===!1?this.content.slice(0,this.maxLength).join(t):((r=this.content)==null?void 0:r.length)>-1?this.content.join(t):""},displayTextContent(){var t,e;return((t=this.content)==null?void 0:t.length)>this.maxLength&&this.showAllContent===!1?this.content.substr(0,this.maxLength):((e=this.content)==null?void 0:e.length)>-1?this.content:""},toggleContentExpansion(){this.showAllContent=!this.showAllContent}}});var z5=function(){var e=this,r=e._self._c;return r("span",{staticClass:"e-read-more"},[r("span",{staticClass:"e-read-more__content mr-1",style:{"white-space":e.showAllContent?"initial":"nowrap"},domProps:{innerHTML:e._s(e.displayContent())}}),e.isHiddenArrayContent?r("span",{staticClass:"e-cursor-pointer e-text-primary",on:{click:e.toggleContentExpansion}},[e._v(" "+e._s(e.computedMoreText)+" ")]):e.isHiddenTextContent?r("span",{staticClass:"e-cursor-pointer e-text-primary",on:{click:e.toggleContentExpansion}},[e._v(" "+e._s(e.expandText)+" ")]):e._e(),e.isContentExpanded?r("span",{staticClass:"e-cursor-pointer e-text-primary",on:{click:e.toggleContentExpansion}},[e._v(" "+e._s(e.collapseText)+" ")]):e._e()])},B5=[],I5=H(O5,z5,B5,!1,null,null,null,null);const Vi=I5.exports,F5=F.extend({name:"ETruncatedDiv",props:{width:{type:[String,Number],required:!0},fixedWidth:{type:Boolean,default:!1}},computed:{containerStyle(){let t=this.width;return typeof t=="number"&&(t=`${this.width}px`),{maxWidth:t,...this.fixedWidth?{width:t}:{}}}}});var A5=function(){var e=this,r=e._self._c;return r("div",e._g(e._b({staticClass:"e-truncated-div e-truncate",style:e.containerStyle},"div",e.$attrs,!1),e.$listeners),[e._t("default")],2)},R5=[],H5=H(F5,A5,R5,!1,null,null,null,null);const Qi=H5.exports,N5=F.extend({name:"ECompareSeparator",components:{EIcon:We},props:{xOffset:{type:[Number,String],default:50}},computed:{separatorStyle(){return{left:`${this.xOffset}%`}}}}),hd="";var j5=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-compare-separator",on:{mousedown:function(n){return n.preventDefault(),(i=>e.$emit("mousedown",i)).apply(null,arguments)},touchstart:function(n){return n.preventDefault(),(i=>e.$emit("touchstart",i)).apply(null,arguments)}}},[r("div",{staticClass:"e-compare-separator__line",style:e.separatorStyle}),r("div",{staticClass:"e-compare-separator__icon e-flex e-justify-around e-items-center",style:e.separatorStyle},[r("EIcon",{attrs:{icon:"caret-left",color:"e-text-white",size:"Xl"}}),r("EIcon",{attrs:{icon:"caret-right",color:"e-text-white",size:"Xl"}})],1)])},G5=[],q5=H(N5,j5,G5,!1,null,null,null,null);const Ki=q5.exports,Ge=F.extend({data(){return{eventListeners:[]}},beforeDestroy(){this.$removeEventListeners()},methods:{$addEventListener(t,e,r=document){if(!(r instanceof EventTarget)){console.error("$addEventListener: The target element is not an HTMLElement."),console.log("$addEventListener: got: ",r);return}r.addEventListener(t,e),this.eventListeners=[...this.eventListeners,{element:r,event:t,cb:e}]},$removeEventListener(t,e,r=document){var i;const n=this.eventListeners.find(o=>o.event===t&&o.element===r&&o.cb===e);n&&((i=n.element)==null||i.removeEventListener(t,e),this.eventListeners=this.eventListeners.filter(o=>o.event===t&&o.cb===e&&o.element===r))},$removeEventListeners(){this.eventListeners.forEach(({element:t,event:e,cb:r})=>{t==null||t.removeEventListener(e,r)}),this.eventListeners=[]}}}),W5=F.extend({name:"EDragResize",mixins:[Ge],props:{bounds:{type:Object,required:!0},initial:{type:Object,default:()=>({x:0,y:0,width:100,height:100})}},data(){return{lens:{...this.initial},isDragging:!1,dragOffset:{x:0,y:0},resizeHandles:["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"],currentHandle:null}},computed:{windowStyle(){return{position:"absolute",top:`${this.lens.y}px`,left:`${this.lens.x}px`,width:`${this.lens.width}px`,height:`${this.lens.height}px`,border:"2px solid white",cursor:"move",boxSizing:"border-box"}}},watch:{lens:{handler(t){this.$emit("change",t)},deep:!0}},methods:{startDrag(t){const e=this.getPoint(t);this.dragOffset.x=e.x-this.lens.x,this.dragOffset.y=e.y-this.lens.y,this.isDragging=!0,this.$addEventListener("mousemove",this.onDrag),this.$addEventListener("mouseup",this.endDrag),this.$addEventListener("touchmove",this.onDrag),this.$addEventListener("touchend",this.endDrag)},onDrag(t){if(!this.isDragging)return;const e=this.getPoint(t),r=e.x-this.dragOffset.x,n=e.y-this.dragOffset.y,i=this.bounds,o=Math.max(i.left,Math.min(r,i.left+i.width-this.lens.width)),s=Math.max(i.top,Math.min(n,i.top+i.height-this.lens.height));this.lens.x=o,this.lens.y=s},endDrag(){this.isDragging=!1,this.$removeEventListener("mousemove",this.onDrag),this.$removeEventListener("mouseup",this.endDrag),this.$removeEventListener("touchmove",this.onDrag),this.$removeEventListener("touchend",this.endDrag)},startResize(t,e){this.currentHandle=t,this.dragOffset=this.getPoint(e),this.$addEventListener("mousemove",this.onResize),this.$addEventListener("mouseup",this.endResize),this.$addEventListener("touchmove",this.onResize),this.$addEventListener("touchend",this.endResize)},onResize(t){const e=this.getPoint(t),r=e.x-this.dragOffset.x,n=e.y-this.dragOffset.y;let{x:i,y:o,width:s,height:c}=this.lens;switch(this.currentHandle){case"top-left":i+=r,o+=n,s-=r,c-=n;break;case"top":o+=n,c-=n;break;case"top-right":o+=n,s+=r,c-=n;break;case"right":s+=r;break;case"bottom-right":s+=r,c+=n;break;case"bottom":c+=n;break;case"bottom-left":i+=r,s-=r,c+=n;break;case"left":i+=r,s-=r;break}const a=this.bounds,l=50;s=Math.max(l,Math.min(a.width,s)),c=Math.max(l,Math.min(a.height,c)),i=Math.max(a.left,Math.min(i,a.left+a.width-s)),o=Math.max(a.top,Math.min(o,a.top+a.height-c)),this.lens={x:i,y:o,width:s,height:c},this.dragOffset=e},endResize(){this.currentHandle=null,document.removeEventListener("mousemove",this.onResize),document.removeEventListener("mouseup",this.endResize),document.removeEventListener("touchmove",this.onResize),document.removeEventListener("touchend",this.endResize)},getPoint(t){return t instanceof MouseEvent?{x:t.clientX,y:t.clientY}:{x:t.touches[0].clientX,y:t.touches[0].clientY}}}}),fd="";var U5=function(){var e=this,r=e._self._c;return r("div",{staticClass:"compare-window",style:e.windowStyle,on:{mousedown:e.startDrag,touchstart:e.startDrag}},e._l(e.resizeHandles,function(n){return r("div",{key:n,staticClass:"resize-handle",class:"resize-"+n,on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.startResize(n,i)},touchstart:function(i){return i.stopPropagation(),i.preventDefault(),e.startResize(n,i)}}})}),0)},Z5=[],Y5=H(W5,U5,Z5,!1,null,"75e287d0",null,null);const dn=Y5.exports,X5=F.extend({name:"EImagesComparator",components:{EDragResize:dn},props:{beforeImageSrc:String,afterImageSrc:String,isLoading:Boolean,mode:{type:String,default:nt.Curtain,validator:t=>Object.values(nt).includes(t)},transparency:{type:Number,default:.5}},data(){return{separatorPositionX:50,isSeparatorDragging:!1,containerRect:{},computedImageDimension:{width:0,height:0,left:0,top:0},zoomState:{},touchIdentifier:null,startTouchX:0,startSeparatorPositionX:50,windowState:{x:200,y:200,width:200,height:200},CompareMode:nt}},computed:{beforeImageStyle(){if(this.isLoading)return{clip:"none"};if(this.mode===nt.Window){const{x:t,y:e,width:r,height:n}=this.windowState;return{clip:`rect(${e}px, ${t+r}px, ${e+n}px, ${t}px)`}}else return this.mode===nt.Curtain?{clip:`rect(auto, ${this.computedImageDimension.width*this.separatorPositionX/100+this.computedImageDimension.left}px, auto, auto)`}:{opacity:`${1-this.transparency}`}},afterImageStyle(){return{opacity:this.mode===nt.Transparency?`${this.transparency}`:"1"}},windowBounds(){return{top:this.computedImageDimension.top,left:this.computedImageDimension.left,width:this.computedImageDimension.width,height:this.computedImageDimension.height}},watermarkStyle(){var d;const{width:t,height:e,left:r,top:n}=this.computedImageDimension,i=Math.max(t,e),o=.05,s=.01,c=i*o,a=i*s,l={width:`${c}px`,height:`${c}px`,left:`${r+t-c-a}px`,top:`${n+e-c-a}px`};return((d=this.zoomState)==null?void 0:d.zoomLevel)>1&&(l.opacity="0"),l},computedSeparatorPositionX(){const{left:t,width:e}=this.computedImageDimension,r=this.containerRect.width;return(t+e*this.separatorPositionX/100)/r*100}},methods:{onZoomChange(t){this.zoomState={...t}},handleResize(){var s;const t=this.$refs.container;this.containerRect=t.getBoundingClientRect();const e=(s=this.$refs.afterImage)==null?void 0:s.$refs.image;if(!(e!=null&&e.naturalWidth)||!(e!=null&&e.naturalHeight))return;const r=t.clientWidth,n=t.clientHeight,i=e.naturalWidth/e.naturalHeight;if(r/n>i){const c=n*i;this.computedImageDimension={width:c,height:n,left:(r-c)/2,top:0}}else{const c=r/i;this.computedImageDimension={width:r,height:c,top:(n-c)/2,left:0}}},handleMouseMove(t){if(!this.isSeparatorDragging)return;const r=(t.clientX-this.containerRect.left-this.computedImageDimension.left)/this.computedImageDimension.width*100;this.separatorPositionX=Math.max(0,Math.min(100,r))},handleMouseDown(){this.isSeparatorDragging=!0,document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(){this.isSeparatorDragging=!1,document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)},handleTouchStart(t){const e=t.touches[0];e&&(this.touchIdentifier=e.identifier,this.startTouchX=e.clientX,this.startSeparatorPositionX=this.separatorPositionX,document.addEventListener("touchmove",this.handleTouchMove),document.addEventListener("touchend",this.handleTouchEnd))},handleTouchMove(t){const e=Array.from(t.touches).find(i=>i.identifier===this.touchIdentifier);if(!e)return;const n=(e.clientX-this.startTouchX)/this.computedImageDimension.width*100+this.startSeparatorPositionX;this.separatorPositionX=Math.max(0,Math.min(100,n))},handleTouchEnd(){document.removeEventListener("touchmove",this.handleTouchMove),document.removeEventListener("touchend",this.handleTouchEnd),this.touchIdentifier=null},handleWindowChange(t){Object.assign(this.windowState,t)}}}),pd="";var V5=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.handleResize,expression:"handleResize"}],ref:"container",staticClass:"e-h-full e-w-full e-relative e-bg-black e-border-black !e-select-none"},[r("div",{staticClass:"e-w-full e-h-full"},[r("EZoomableImg",{ref:"afterImage",staticClass:"e-block e-w-full e-h-full e-image-comparator__image",style:e.afterImageStyle,attrs:{src:e.afterImageSrc,alt:"After Image",embedded:!0,allowZoom:!0,pan:!0,slider:!0,showMiniature:!0,hideContentOnBlur:!1},on:{change:e.onZoomChange,load:e.handleResize}}),r("EZoomableImg",{staticClass:"!e-absolute e-top-0 e-left-0 e-pointer-events-none e-block e-w-full e-h-full e-image-comparator__image",style:e.beforeImageStyle,attrs:{src:e.beforeImageSrc,alt:"Before Image",embedded:!0,allowZoom:!1,pan:!1,slider:!1,showMiniature:!1,initialParams:e.zoomState},on:{load:e.handleResize}})],1),e.mode===e.CompareMode.Curtain&&!e.isLoading?r("ECompareSeparator",{attrs:{"x-offset":e.computedSeparatorPositionX},on:{mousedown:function(n){return n.stopPropagation(),n.preventDefault(),e.handleMouseDown.apply(null,arguments)},touchstart:e.handleTouchStart}}):e._e(),e.mode==="window"&&!e.isLoading?r("EDragResize",{attrs:{initial:e.windowState,bounds:e.windowBounds},on:{change:e.handleWindowChange}}):e._e(),e.isLoading?e._e():r("div",{staticClass:"e-images-comparator__watermark",style:e.watermarkStyle},[e._t("watermark",null,null,e.watermarkStyle)],2),e.isLoading?r("div",{staticClass:"e-images-comparator__overlay"},[e._t("overlay")],2):e._e(),r("div",{staticClass:"e-images-comparator__imageOverlay"},[e._t("imageOverlay")],2)],1)},Q5=[],K5=H(X5,V5,Q5,!1,null,"939d0324",null,null);const Ji=K5.exports,Ue=F.extend({data(){return{timeouts:[]}},beforeDestroy(){this.$clearTimeouts()},methods:{$setTimeout(t,e=0){const r=setTimeout(t,e);return this.timeouts=[...this.timeouts,r],r},$clearTimeouts(){this.timeouts.forEach(t=>clearTimeout(t)),this.timeouts=[]}}}),J5=F.extend({name:"EExpandableMenu",mixins:[Ue,Ge],props:{padding:{type:Number,default:4},direction:{type:String,default:"top",validator:t=>["top","right","bottom","left"].includes(t)},isMobile:{type:Boolean,default:!1}},data(){return{isMenuOpened:!1,baseSize:{},menuObserver:null}},computed:{row(){return["right","left"].includes(this.direction)},reverse(){return["top","left"].includes(this.direction)}},watch:{isMobile(){this.adjustButtonsPositions()},direction(){this.adjustButtonsPositions()},padding(){this.adjustButtonsPositions()}},mounted(){const t=this.$refs.activator,e=(t==null?void 0:t.getBoundingClientRect())||{};this.baseSize={width:`${e.width}px`,height:`${e.height}px`},this.isMobile||this.$setTimeout(this.toggleMenu,100),this.$addEventListener("resize",this.adjustButtonsPositions),this.observeMenuContentChanges()},beforeDestroy(){this.menuObserver&&this.menuObserver.disconnect()},methods:{toggleMenu(){this.isMenuOpened=!this.isMenuOpened,this.adjustButtonsPositions()},adjustButtonsPositions(){const t=this.$refs.menu,e=Array.from(t==null?void 0:t.children).filter(l=>!l.classList.contains("v-tooltip"));if(!e||!e.length)return;const r=this.isMobile?30:40,n=Array.from(e),i=this.$refs.activator,o=i==null?void 0:i.getBoundingClientRect(),s=Math.min(o[this.row?"width":"height"],r),c=this.isMenuOpened?s+this.padding:0,a=this.row?"X":"Y";t.style.transform=`translate${a}(${(this.reverse?-1:1)*c}px)`,n.forEach((l,d)=>{const f=l.getBoundingClientRect(),m=f==null?void 0:f[this.row?"width":"height"],b=(m>r?m:r)+this.padding,x=this.isMenuOpened?b*d:0;l.style.transform=`translate${a}(${(this.reverse?-1:1)*x}px)`})},observeMenuContentChanges(){const t=this.$refs.menu;t&&(this.menuObserver=new MutationObserver(()=>{this.adjustButtonsPositions()}),this.menuObserver.observe(t,{childList:!0,subtree:!0}))}}}),md="";var e2=function(){var e=this,r=e._self._c;return r("div",{staticClass:"expandable-menu",class:{"expandable-menu--row":e.row,"expandable-menu--column":!e.row,"expandable-menu--reverse":e.reverse,"expandable-menu--open":e.isMenuOpened,"expandable-menu--closed":!e.isMenuOpened},style:e.baseSize},[r("div",{staticClass:"expandable-menu__container",style:e.baseSize},[r("div",{ref:"activator",staticClass:"v-btn--no-active e-cursor-pointer expandable-menu__activator",on:{click:e.toggleMenu}},[e._t("activator")],2),r("div",e._g({ref:"menu",staticClass:"e-flex e-flex-col expandable-menu__menu",class:{"expandable-menu__menu--closed":!e.isMenuOpened,"expandable-menu__menu--open":e.isMenuOpened,"e-py-2":!e.row,"e-py-0":e.row},attrs:{"data-test-id":"action-buttons-menu"}},e.$listeners),[e._t("default")],2)])])},t2=[],r2=H(J5,e2,t2,!1,null,null,null,null);const es=r2.exports,n2=F.extend({name:"BaseIcon",props:{name:{type:String,default:"box"},color:{type:String,default:"#3c3c3c"},viewBox:{type:String,default:"0 0 128 128"},width:{type:[Number,String],default:60},height:{type:[Number,String],default:60},size:{type:[Number,String,null],default:null}}});var i2=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("svg",e._g({staticClass:"svg-icon",attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:e.viewBox,width:e.size||e.width,height:e.size||e.height,"aria-labelledby":e.name,role:"presentation"}},e.$listeners),[r("g",{ref:"group",attrs:{fill:e.color}},[e._t("default",null,{color:e.color})],2)])},s2=[],a2=H(n2,i2,s2,!1,null,null,null,null);const de=a2.exports,o2=F.extend({name:"Bim",components:{BaseIcon:de},props:{color:{type:String,default:"white"}}});var l2=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"22px",height:"22px",viewBox:"0 0 22 22",color:e.color}},"BaseIcon",e.$attrs,!1),[r("g",{attrs:{transform:"translate(0.000000,512.000000) scale(0.100000,-0.100000)"}},[r("path",{style:`fill: ${e.color}`,attrs:{d:`M3.7,5016.4v-43.8l20.9,0.2c19.5,0.2,21.1,0.3,24.7,1.3c5.8,1.6,9.9,3.9,13.3,7.2c3.4,3.5,5.3,6.7,6.4,11
7
+ `}],staticClass:"e-timeline__tooltip e-border e-rounded e-px-2 -e-left-2/4 e-relative",class:e.computedClasses.tooltipSlot},[e._v(" "+e._s(i)+" ")])]},{timestamp:i,active:a&&!e.isHoveringMilestone})],2),r("div",{key:`${e.hoveredGroupedEvents?e.hoveredGroupedEvents[0].timestamp:(o=e.hoveredEvent)==null?void 0:o.timestamp}`,staticClass:"e-absolute e-z-50",style:e.eventTooltipStyle},[e._t("eventTooltip",function(){return[e.hoveredGroupedEvents?r("div",{directives:[{name:"show",rawName:"v-show",value:e.showEventTooltip&&e.isHoveringGroupedEvents,expression:"showEventTooltip && isHoveringGroupedEvents"}]},[r("div",[r("strong",[e._v(e._s(e.hoveredGroupedEvents.length)+" Events")]),e._v(": ")]),r("div",[r("strong",[e._v("From")]),e._v(":"+e._s(e.hoveredGroupedEvents[0].timestamp||e.hoveredGroupedEvents[0].startDate)+" ")]),r("div",[r("strong",[e._v("To")]),e._v(":"+e._s(e.hoveredGroupedEvents[e.hoveredGroupedEvents.length-1].timestamp||e.hoveredGroupedEvents[e.hoveredGroupedEvents.length-1].endDate)+" ")])]):e.showEventTooltip&&(e.hoveredEvent||e.hoveredCounts.length)?r("div",{directives:[{name:"show",rawName:"v-show",value:e.isHoveringEvent,expression:"isHoveringEvent"}],staticClass:"e-timeline__event-tooltip e-border e-rounded e-px-2 -e-left-2/4 e-relative",class:e.computedClasses.eventTooltipSlot},[e.hoveredCounts.length?r("div",[r("strong",[e._v("Timestamp")]),e._v(": "+e._s(e.hoveredEvent.timestamp)+" "),e._l(e.hoveredCounts,function(c,s){return r("div",{key:s},[r("strong",[e._v(e._s(c.label||c.type)+" Count")]),e._v(": "+e._s(c.count)+" ")])})],2):e.hoveredEvent?r("div",[e.hoveredEvent.timestamp?r("div",[r("strong",[e._v("Event time")]),e._v(": "+e._s(e.hoveredEvent.timestamp)+" ")]):e._e(),e.hoveredEvent.startDate?r("div",[r("strong",[e._v("From")]),e._v(":"+e._s(e.hoveredEvent.startDate)+" ")]):e._e(),e.hoveredEvent.endDate?r("div",[r("strong",[e._v("To")]),e._v(":"+e._s(e.hoveredEvent.endDate)+" ")]):e._e()]):e._e()]):e._e()]},{event:e.hoveredEvent,groupedEvents:e.hoveredGroupedEvents,counts:e.hoveredCounts,active:e.isHoveringEvent,type:e.hoveredEventType})],2)]}}],null,!0)})],1):e._e()]}}])})],1)},y5=[],C5=H(v5,_5,y5,!1,null,null,null,null);const Yi=C5.exports,b5=F.extend({name:"EVideoEmbed",props:{videoUrl:{type:String,required:!0},platform:{type:String,required:!0,validator:t=>["youtube","vimeo"].includes(t)},iframeListeners:{type:Object,default:()=>({})},iframeOptions:{type:Object,default:()=>({})}},computed:{videoId(){if(this.platform==="youtube"){const t=/^.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#\&\?]*).*/,e=this.videoUrl.match(t);return e&&e[1].length===11?e[1]:void 0}else if(this.platform==="vimeo"){const t=this.videoUrl.match(/vimeo\.com\/(\d+)/);return t?t[1]:void 0}},embedUrl(){var t;if(this.platform==="youtube"){const e=new URLSearchParams({quality:"1080p",...this.iframeOptions});return`https://www.youtube.com/embed/${this.videoId}?${e.toString()}`}else if(this.platform==="vimeo"&&this.videoId){const e=(t=this.videoUrl.split("/").pop())==null?void 0:t.split("?")[0],r=new URLSearchParams({h:e||"",quality:"1080p",...this.iframeOptions});return`https://player.vimeo.com/video/${this.videoId}?${r.toString()}`}return""}}}),ud="";var x5=function(){var e=this,r=e._self._c;return r("div",{staticClass:"video-embed"},[r("iframe",e._g(e._b({attrs:{src:e.embedUrl,frameborder:"0",allowfullscreen:"",width:"100%",height:"100%",allow:"autoplay; fullscreen; picture-in-picture"}},"iframe",e.iframeOptions,!1),e.iframeListeners))])},w5=[],S5=H(b5,x5,w5,!1,null,"7e66cb69",null,null);const Xi=S5.exports,T5=F.extend({name:"EHeatmapBar",props:{items:{type:Array,default:()=>[]},selectedValue:{type:[String,Number],default:""},showCounts:{type:Boolean,default:!0},namesOnly:{type:Boolean,default:!1},showNames:{type:Boolean,default:!0},colors:{type:Array,default:()=>Xr("#ebedf0","#17459e",10)},colorsDark:{type:Array,default:()=>Xr("rgba(26,53,86,0.49)","#1f65ee",10)},label:{type:String,default:""},dense:{type:Boolean,default:!1},dark:{type:Boolean,default:!1}},data(){return{}},computed:{heatMapBarItems(){return this.items},maxCount(){return this.items.reduce((t,e)=>Math.max(t,e.count),0)},computedColors(){return this.dark?this.colorsDark:this.colors},textColor(){return{color:this.dark?"#eee":"#111"}}},methods:{getColorIndex(t){return Math.ceil(t/this.maxCount*(this.computedColors.length-1))},getColor(t){const e=this.getColorIndex(t);return this.computedColors[e]||this.computedColors[0]},getItemStyle(t){return{background:this.getColor(t)}},getItemClasses(t){return typeof t=="object"?t:{[t]:!0}},getCountTextStyle(t){const e=this.getColor(t);return{color:this.getContrastingPaletteColor(e)}},adjustColorBrightness(t,e){const r=O.hsl(t);return r.l+=e,r.l=Math.max(.1,Math.min(.9,r.l)),r.formatHex()},getContrastingPaletteColor(t){const e=O.color(t);if(!e)return t;const{r,g:n,b:i}=e.rgb(),o=(.299*r+.587*n+.114*i)/255>.5?-.5:.5;return this.adjustColorBrightness(t,o)}}}),dd="";var k5=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-flex e-heatmap-bar",class:{"e-heatmap-bar--dense":e.dense,"e-heatmap-bar--dark":e.dark},style:e.textColor},[e._t("label",function(){return[e.label?r("div",{staticClass:"e-heatmap-bar__label",style:e.textColor},[e._v(" "+e._s(e.label)+" ")]):e._e()]}),e._l(e.heatMapBarItems,function({name:n,value:i,count:a,itemClass:o,id:c}){return r("div",{key:i,staticClass:"e-flex e-w-full e-justify-center e-items-center e-heatmap-bar__item",class:{"e-heatmap-bar__item--selected":e.selectedValue===i,...e.getItemClasses(o)},style:e.getItemStyle(a),on:{click:function(s){return e.$emit("change",i,o,c)}}},[e.namesOnly?r("span",{staticClass:"e-heatmap-bar__item__count",style:e.getCountTextStyle(a)},[e._v(" "+e._s(n)+" ")]):e.showCounts?r("span",{staticClass:"e-heatmap-bar__item__count",style:e.getCountTextStyle(a)},[e._v(" "+e._s(a>0?a:"")+" ")]):e._e(),e.showNames&&!e.namesOnly?r("span",{staticClass:"e-heatmap-bar__item__name e-text-xs e-text-black e-truncate",style:e.textColor},[e._v(" "+e._s(n)+" ")]):e._e()])})],2)},$5=[],E5=H(T5,k5,$5,!1,null,null,null,null);const un=E5.exports,M5=F.extend({name:"EHoursHeatmap",components:{EHeatmapBar:un},props:{items:{type:Array,default:()=>[]},selectedHour:{type:[String,Number],default:""},showHours:{type:Boolean,default:!0},colors:{type:Array,default:()=>["#ebedf0","#c0ddf9","#73b3f3","#3886e1","#17459e"]},label:{type:String,default:""},dense:{type:Boolean,default:!1}},computed:{itemsByHour(){return this.items.reduce((t,e)=>({...t,[ke(e.timestamp).format("H")]:e}),{})},heatmapBarItems(){return new Array(24).fill(void 0).reduce((t,e,r)=>{var n;return[...t,{name:this.getFormattedHour(r),value:r,count:((n=this.itemsByHour[r])==null?void 0:n.count)||0}]},[])}},methods:{getFormattedHour(t){const e=t.toString();return(e.length>1?e:`0${e}`)+(this.dense?"h":":00")}}});var L5=function(){var e=this,r=e._self._c;return r("EHeatmapBar",e._g({staticClass:"e-hours-heatmap",attrs:{items:e.heatmapBarItems,"selected-value":e.selectedHour,"show-names":e.showHours,colors:e.colors,label:e.label,dense:e.dense},scopedSlots:e._u([{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},e.$listeners))},D5=[],P5=H(M5,L5,D5,!1,null,null,null,null);const Vi=P5.exports,O5=F.extend({name:"EReadMore",props:{content:{type:[Array,String],default:()=>null},maxLength:{type:Number,default:()=>2},showAll:{type:Boolean,default:!1},expandText:{type:String,default:"see more..."},collapseText:{type:String,default:"less"},moreTextWithPlaceholder:{type:String,default:"and {count} more..."},onePerLine:{type:Boolean,default:!1}},data(){return{showAllContent:!1}},computed:{hiddenContentLength(){var t,e;return Math.max(((e=(t=this.content)==null?void 0:t.length)!=null?e:0)-this.maxLength,0)},isArrayContent(){return Array.isArray(this.content)},isHiddenTextContent(){return this.hiddenContentLength>0&&!this.showAllContent&&!this.isArrayContent},isHiddenArrayContent(){return this.hiddenContentLength>0&&!this.showAllContent&&this.isArrayContent},isContentExpanded(){var t;return this.showAllContent&&((t=this.content)==null?void 0:t.length)>0},computedMoreText(){return this.moreTextWithPlaceholder.replace("{count}",this.hiddenContentLength.toString())}},mounted(){this.showAllContent=this.showAll},methods:{displayContent(){return this.isArrayContent?this.displayArrayContent():this.displayTextContent()},displayArrayContent(){var e,r;const t=this.onePerLine?"<br/>":", ";return((e=this.content)==null?void 0:e.length)>this.maxLength&&this.showAllContent===!1?this.content.slice(0,this.maxLength).join(t):((r=this.content)==null?void 0:r.length)>-1?this.content.join(t):""},displayTextContent(){var t,e;return((t=this.content)==null?void 0:t.length)>this.maxLength&&this.showAllContent===!1?this.content.substr(0,this.maxLength):((e=this.content)==null?void 0:e.length)>-1?this.content:""},toggleContentExpansion(){this.showAllContent=!this.showAllContent}}});var z5=function(){var e=this,r=e._self._c;return r("span",{staticClass:"e-read-more"},[r("span",{staticClass:"e-read-more__content mr-1",style:{"white-space":e.showAllContent?"initial":"nowrap"},domProps:{innerHTML:e._s(e.displayContent())}}),e.isHiddenArrayContent?r("span",{staticClass:"e-cursor-pointer e-text-primary",on:{click:e.toggleContentExpansion}},[e._v(" "+e._s(e.computedMoreText)+" ")]):e.isHiddenTextContent?r("span",{staticClass:"e-cursor-pointer e-text-primary",on:{click:e.toggleContentExpansion}},[e._v(" "+e._s(e.expandText)+" ")]):e._e(),e.isContentExpanded?r("span",{staticClass:"e-cursor-pointer e-text-primary",on:{click:e.toggleContentExpansion}},[e._v(" "+e._s(e.collapseText)+" ")]):e._e()])},B5=[],I5=H(O5,z5,B5,!1,null,null,null,null);const Qi=I5.exports,F5=F.extend({name:"ETruncatedDiv",props:{width:{type:[String,Number],required:!0},fixedWidth:{type:Boolean,default:!1}},computed:{containerStyle(){let t=this.width;return typeof t=="number"&&(t=`${this.width}px`),{maxWidth:t,...this.fixedWidth?{width:t}:{}}}}});var A5=function(){var e=this,r=e._self._c;return r("div",e._g(e._b({staticClass:"e-truncated-div e-truncate",style:e.containerStyle},"div",e.$attrs,!1),e.$listeners),[e._t("default")],2)},R5=[],H5=H(F5,A5,R5,!1,null,null,null,null);const Ki=H5.exports,N5=F.extend({name:"ECompareSeparator",components:{EIcon:We},props:{xOffset:{type:[Number,String],default:50}},computed:{separatorStyle(){return{left:`${this.xOffset}%`}}}}),hd="";var j5=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-compare-separator",on:{mousedown:function(n){return n.preventDefault(),(i=>e.$emit("mousedown",i)).apply(null,arguments)},touchstart:function(n){return n.preventDefault(),(i=>e.$emit("touchstart",i)).apply(null,arguments)}}},[r("div",{staticClass:"e-compare-separator__line",style:e.separatorStyle}),r("div",{staticClass:"e-compare-separator__icon e-flex e-justify-around e-items-center",style:e.separatorStyle},[r("EIcon",{attrs:{icon:"caret-left",color:"e-text-white",size:"Xl"}}),r("EIcon",{attrs:{icon:"caret-right",color:"e-text-white",size:"Xl"}})],1)])},G5=[],q5=H(N5,j5,G5,!1,null,null,null,null);const Ji=q5.exports,Ge=F.extend({data(){return{eventListeners:[]}},beforeDestroy(){this.$removeEventListeners()},methods:{$addEventListener(t,e,r=document){if(!(r instanceof EventTarget)){console.error("$addEventListener: The target element is not an HTMLElement."),console.log("$addEventListener: got: ",r);return}r.addEventListener(t,e),this.eventListeners=[...this.eventListeners,{element:r,event:t,cb:e}]},$removeEventListener(t,e,r=document){var i;const n=this.eventListeners.find(a=>a.event===t&&a.element===r&&a.cb===e);n&&((i=n.element)==null||i.removeEventListener(t,e),this.eventListeners=this.eventListeners.filter(a=>a.event===t&&a.cb===e&&a.element===r))},$removeEventListeners(){this.eventListeners.forEach(({element:t,event:e,cb:r})=>{t==null||t.removeEventListener(e,r)}),this.eventListeners=[]}}}),W5=F.extend({name:"EDragResize",mixins:[Ge],props:{bounds:{type:Object,required:!0},initial:{type:Object,default:()=>({x:0,y:0,width:100,height:100})}},data(){return{lens:{...this.initial},isDragging:!1,dragOffset:{x:0,y:0},resizeHandles:["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"],currentHandle:null}},computed:{windowStyle(){return{position:"absolute",top:`${this.lens.y}px`,left:`${this.lens.x}px`,width:`${this.lens.width}px`,height:`${this.lens.height}px`,border:"2px solid white",cursor:"move",boxSizing:"border-box"}}},watch:{lens:{handler(t){this.$emit("change",t)},deep:!0}},methods:{startDrag(t){const e=this.getPoint(t);this.dragOffset.x=e.x-this.lens.x,this.dragOffset.y=e.y-this.lens.y,this.isDragging=!0,this.$addEventListener("mousemove",this.onDrag),this.$addEventListener("mouseup",this.endDrag),this.$addEventListener("touchmove",this.onDrag),this.$addEventListener("touchend",this.endDrag)},onDrag(t){if(!this.isDragging)return;const e=this.getPoint(t),r=e.x-this.dragOffset.x,n=e.y-this.dragOffset.y,i=this.bounds,a=Math.max(i.left,Math.min(r,i.left+i.width-this.lens.width)),o=Math.max(i.top,Math.min(n,i.top+i.height-this.lens.height));this.lens.x=a,this.lens.y=o},endDrag(){this.isDragging=!1,this.$removeEventListener("mousemove",this.onDrag),this.$removeEventListener("mouseup",this.endDrag),this.$removeEventListener("touchmove",this.onDrag),this.$removeEventListener("touchend",this.endDrag)},startResize(t,e){this.currentHandle=t,this.dragOffset=this.getPoint(e),this.$addEventListener("mousemove",this.onResize),this.$addEventListener("mouseup",this.endResize),this.$addEventListener("touchmove",this.onResize),this.$addEventListener("touchend",this.endResize)},onResize(t){const e=this.getPoint(t),r=e.x-this.dragOffset.x,n=e.y-this.dragOffset.y;let{x:i,y:a,width:o,height:c}=this.lens;switch(this.currentHandle){case"top-left":i+=r,a+=n,o-=r,c-=n;break;case"top":a+=n,c-=n;break;case"top-right":a+=n,o+=r,c-=n;break;case"right":o+=r;break;case"bottom-right":o+=r,c+=n;break;case"bottom":c+=n;break;case"bottom-left":i+=r,o-=r,c+=n;break;case"left":i+=r,o-=r;break}const s=this.bounds,l=50;o=Math.max(l,Math.min(s.width,o)),c=Math.max(l,Math.min(s.height,c)),i=Math.max(s.left,Math.min(i,s.left+s.width-o)),a=Math.max(s.top,Math.min(a,s.top+s.height-c)),this.lens={x:i,y:a,width:o,height:c},this.dragOffset=e},endResize(){this.currentHandle=null,document.removeEventListener("mousemove",this.onResize),document.removeEventListener("mouseup",this.endResize),document.removeEventListener("touchmove",this.onResize),document.removeEventListener("touchend",this.endResize)},getPoint(t){return t instanceof MouseEvent?{x:t.clientX,y:t.clientY}:{x:t.touches[0].clientX,y:t.touches[0].clientY}}}}),fd="";var U5=function(){var e=this,r=e._self._c;return r("div",{staticClass:"compare-window",style:e.windowStyle,on:{mousedown:e.startDrag,touchstart:e.startDrag}},e._l(e.resizeHandles,function(n){return r("div",{key:n,staticClass:"resize-handle",class:"resize-"+n,on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.startResize(n,i)},touchstart:function(i){return i.stopPropagation(),i.preventDefault(),e.startResize(n,i)}}})}),0)},Z5=[],Y5=H(W5,U5,Z5,!1,null,"75e287d0",null,null);const dn=Y5.exports,X5=F.extend({name:"EImagesComparator",components:{EDragResize:dn},props:{beforeImageSrc:String,afterImageSrc:String,isLoading:Boolean,mode:{type:String,default:nt.Curtain,validator:t=>Object.values(nt).includes(t)},transparency:{type:Number,default:.5}},data(){return{separatorPositionX:50,isSeparatorDragging:!1,containerRect:{},computedImageDimension:{width:0,height:0,left:0,top:0},zoomState:{},touchIdentifier:null,startTouchX:0,startSeparatorPositionX:50,windowState:{x:200,y:200,width:200,height:200},CompareMode:nt}},computed:{beforeImageStyle(){if(this.isLoading)return{clip:"none"};if(this.mode===nt.Window){const{x:t,y:e,width:r,height:n}=this.windowState;return{clip:`rect(${e}px, ${t+r}px, ${e+n}px, ${t}px)`}}else return this.mode===nt.Curtain?{clip:`rect(auto, ${this.computedImageDimension.width*this.separatorPositionX/100+this.computedImageDimension.left}px, auto, auto)`}:{opacity:`${1-this.transparency}`}},afterImageStyle(){return{opacity:this.mode===nt.Transparency?`${this.transparency}`:"1"}},windowBounds(){return{top:this.computedImageDimension.top,left:this.computedImageDimension.left,width:this.computedImageDimension.width,height:this.computedImageDimension.height}},watermarkStyle(){var d;const{width:t,height:e,left:r,top:n}=this.computedImageDimension,i=Math.max(t,e),a=.05,o=.01,c=i*a,s=i*o,l={width:`${c}px`,height:`${c}px`,left:`${r+t-c-s}px`,top:`${n+e-c-s}px`};return((d=this.zoomState)==null?void 0:d.zoomLevel)>1&&(l.opacity="0"),l},computedSeparatorPositionX(){const{left:t,width:e}=this.computedImageDimension,r=this.containerRect.width;return(t+e*this.separatorPositionX/100)/r*100}},methods:{onZoomChange(t){this.zoomState={...t}},handleResize(){var o;const t=this.$refs.container;this.containerRect=t.getBoundingClientRect();const e=(o=this.$refs.afterImage)==null?void 0:o.$refs.image;if(!(e!=null&&e.naturalWidth)||!(e!=null&&e.naturalHeight))return;const r=t.clientWidth,n=t.clientHeight,i=e.naturalWidth/e.naturalHeight;if(r/n>i){const c=n*i;this.computedImageDimension={width:c,height:n,left:(r-c)/2,top:0}}else{const c=r/i;this.computedImageDimension={width:r,height:c,top:(n-c)/2,left:0}}},handleMouseMove(t){if(!this.isSeparatorDragging)return;const r=(t.clientX-this.containerRect.left-this.computedImageDimension.left)/this.computedImageDimension.width*100;this.separatorPositionX=Math.max(0,Math.min(100,r))},handleMouseDown(){this.isSeparatorDragging=!0,document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(){this.isSeparatorDragging=!1,document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)},handleTouchStart(t){const e=t.touches[0];e&&(this.touchIdentifier=e.identifier,this.startTouchX=e.clientX,this.startSeparatorPositionX=this.separatorPositionX,document.addEventListener("touchmove",this.handleTouchMove),document.addEventListener("touchend",this.handleTouchEnd))},handleTouchMove(t){const e=Array.from(t.touches).find(i=>i.identifier===this.touchIdentifier);if(!e)return;const n=(e.clientX-this.startTouchX)/this.computedImageDimension.width*100+this.startSeparatorPositionX;this.separatorPositionX=Math.max(0,Math.min(100,n))},handleTouchEnd(){document.removeEventListener("touchmove",this.handleTouchMove),document.removeEventListener("touchend",this.handleTouchEnd),this.touchIdentifier=null},handleWindowChange(t){Object.assign(this.windowState,t)}}}),pd="";var V5=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.handleResize,expression:"handleResize"}],ref:"container",staticClass:"e-h-full e-w-full e-relative e-bg-black e-border-black !e-select-none"},[r("div",{staticClass:"e-w-full e-h-full"},[r("EZoomableImg",{ref:"afterImage",staticClass:"e-block e-w-full e-h-full e-image-comparator__image",style:e.afterImageStyle,attrs:{src:e.afterImageSrc,alt:"After Image",embedded:!0,allowZoom:!0,pan:!0,slider:!0,showMiniature:!0,hideContentOnBlur:!1},on:{change:e.onZoomChange,load:e.handleResize}}),r("EZoomableImg",{staticClass:"!e-absolute e-top-0 e-left-0 e-pointer-events-none e-block e-w-full e-h-full e-image-comparator__image",style:e.beforeImageStyle,attrs:{src:e.beforeImageSrc,alt:"Before Image",embedded:!0,allowZoom:!1,pan:!1,slider:!1,showMiniature:!1,initialParams:e.zoomState},on:{load:e.handleResize}})],1),e.mode===e.CompareMode.Curtain&&!e.isLoading?r("ECompareSeparator",{attrs:{"x-offset":e.computedSeparatorPositionX},on:{mousedown:function(n){return n.stopPropagation(),n.preventDefault(),e.handleMouseDown.apply(null,arguments)},touchstart:e.handleTouchStart}}):e._e(),e.mode==="window"&&!e.isLoading?r("EDragResize",{attrs:{initial:e.windowState,bounds:e.windowBounds},on:{change:e.handleWindowChange}}):e._e(),e.isLoading?e._e():r("div",{staticClass:"e-images-comparator__watermark",style:e.watermarkStyle},[e._t("watermark",null,null,e.watermarkStyle)],2),e.isLoading?r("div",{staticClass:"e-images-comparator__overlay"},[e._t("overlay")],2):e._e(),r("div",{staticClass:"e-images-comparator__imageOverlay"},[e._t("imageOverlay")],2)],1)},Q5=[],K5=H(X5,V5,Q5,!1,null,"939d0324",null,null);const es=K5.exports,Ue=F.extend({data(){return{timeouts:[]}},beforeDestroy(){this.$clearTimeouts()},methods:{$setTimeout(t,e=0){const r=setTimeout(t,e);return this.timeouts=[...this.timeouts,r],r},$clearTimeouts(){this.timeouts.forEach(t=>clearTimeout(t)),this.timeouts=[]}}}),J5=F.extend({name:"EExpandableMenu",mixins:[Ue,Ge],props:{padding:{type:Number,default:4},direction:{type:String,default:"top",validator:t=>["top","right","bottom","left"].includes(t)},isMobile:{type:Boolean,default:!1}},data(){return{isMenuOpened:!1,baseSize:{},menuObserver:null}},computed:{row(){return["right","left"].includes(this.direction)},reverse(){return["top","left"].includes(this.direction)}},watch:{isMobile(){this.adjustButtonsPositions()},direction(){this.adjustButtonsPositions()},padding(){this.adjustButtonsPositions()}},mounted(){const t=this.$refs.activator,e=(t==null?void 0:t.getBoundingClientRect())||{};this.baseSize={width:`${e.width}px`,height:`${e.height}px`},this.isMobile||this.$setTimeout(this.toggleMenu,100),this.$addEventListener("resize",this.adjustButtonsPositions),this.observeMenuContentChanges()},beforeDestroy(){this.menuObserver&&this.menuObserver.disconnect()},methods:{toggleMenu(){this.isMenuOpened=!this.isMenuOpened,this.adjustButtonsPositions()},adjustButtonsPositions(){const t=this.$refs.menu,e=Array.from(t==null?void 0:t.children).filter(l=>!l.classList.contains("v-tooltip"));if(!e||!e.length)return;const r=this.isMobile?30:40,n=Array.from(e),i=this.$refs.activator,a=i==null?void 0:i.getBoundingClientRect(),o=Math.min(a[this.row?"width":"height"],r),c=this.isMenuOpened?o+this.padding:0,s=this.row?"X":"Y";t.style.transform=`translate${s}(${(this.reverse?-1:1)*c}px)`,n.forEach((l,d)=>{const f=l.getBoundingClientRect(),m=f==null?void 0:f[this.row?"width":"height"],b=(m>r?m:r)+this.padding,x=this.isMenuOpened?b*d:0;l.style.transform=`translate${s}(${(this.reverse?-1:1)*x}px)`})},observeMenuContentChanges(){const t=this.$refs.menu;t&&(this.menuObserver=new MutationObserver(()=>{this.adjustButtonsPositions()}),this.menuObserver.observe(t,{childList:!0,subtree:!0}))}}}),md="";var e2=function(){var e=this,r=e._self._c;return r("div",{staticClass:"expandable-menu",class:{"expandable-menu--row":e.row,"expandable-menu--column":!e.row,"expandable-menu--reverse":e.reverse,"expandable-menu--open":e.isMenuOpened,"expandable-menu--closed":!e.isMenuOpened},style:e.baseSize},[r("div",{staticClass:"expandable-menu__container",style:e.baseSize},[r("div",{ref:"activator",staticClass:"v-btn--no-active e-cursor-pointer expandable-menu__activator",on:{click:e.toggleMenu}},[e._t("activator")],2),r("div",e._g({ref:"menu",staticClass:"e-flex e-flex-col expandable-menu__menu",class:{"expandable-menu__menu--closed":!e.isMenuOpened,"expandable-menu__menu--open":e.isMenuOpened,"e-py-2":!e.row,"e-py-0":e.row},attrs:{"data-test-id":"action-buttons-menu"}},e.$listeners),[e._t("default")],2)])])},t2=[],r2=H(J5,e2,t2,!1,null,null,null,null);const ts=r2.exports,n2=F.extend({name:"BaseIcon",props:{name:{type:String,default:"box"},color:{type:String,default:"#3c3c3c"},viewBox:{type:String,default:"0 0 128 128"},width:{type:[Number,String],default:60},height:{type:[Number,String],default:60},size:{type:[Number,String,null],default:null}}});var i2=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("svg",e._g({staticClass:"svg-icon",attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:e.viewBox,width:e.size||e.width,height:e.size||e.height,"aria-labelledby":e.name,role:"presentation"}},e.$listeners),[r("g",{ref:"group",attrs:{fill:e.color}},[e._t("default",null,{color:e.color})],2)])},s2=[],a2=H(n2,i2,s2,!1,null,null,null,null);const de=a2.exports,o2=F.extend({name:"Bim",components:{BaseIcon:de},props:{color:{type:String,default:"white"}}});var l2=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"22px",height:"22px",viewBox:"0 0 22 22",color:e.color}},"BaseIcon",e.$attrs,!1),[r("g",{attrs:{transform:"translate(0.000000,512.000000) scale(0.100000,-0.100000)"}},[r("path",{style:`fill: ${e.color}`,attrs:{d:`M3.7,5016.4v-43.8l20.9,0.2c19.5,0.2,21.1,0.3,24.7,1.3c5.8,1.6,9.9,3.9,13.3,7.2c3.4,3.5,5.3,6.7,6.4,11
8
8
  c3,13-3.4,23.6-16.5,26.8l-3.5,0.9l2.6,0.8c3.5,1.2,8,4.3,10.3,7c7,8.6,5.5,21-3.4,26.9c-7.1,4.8-11.4,5.4-35.7,5.4h-19V5016.4z
9
9
  M40.6,5043.9c3.8-2,4.7-3.7,4.5-8.4c-0.2-4.4-1.8-7-5.5-8.9c-2.2-1.1-3.2-1.3-9.1-1.4l-6.7-0.2v10.4v10.4l7-0.2
10
10
  C37.4,5045.3,37.9,5045.3,40.6,5043.9z M41.5,5009.4c2.4-0.9,5.4-3.5,6.5-5.7c1.1-2.2,1.1-6.7,0-9.2c-1.1-2.6-2.8-4.4-5.8-5.7
@@ -62,7 +62,7 @@ m367 -176 c192 -56 348 -207 420 -405 34 -93 34 -285 0 -378 -72 -198 -228
62
62
  c24.128,0,43.759-19.629,43.759-43.759S390.247,343.617,366.119,343.617z M57.182,405.037c-9.754,0-17.662-7.908-17.662-17.662
63
63
  c0-9.754,7.908-17.662,17.662-17.662s17.662,7.908,17.662,17.662C74.844,397.13,66.936,405.037,57.182,405.037z M364.187,405.036
64
64
  c-9.754,0-17.662-7.908-17.662-17.662c0-9.754,7.908-17.662,17.662-17.662c9.754,0,17.662,7.908,17.662,17.662
65
- C381.849,397.128,373.942,405.036,364.187,405.036z`}})])])])},u3=[],d3=H(l3,c3,u3,!1,null,null,null,null);const ts=d3.exports,h3=F.extend({name:"FlatbedSemiTrailer",components:{BaseIcon:de}});var f3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{width:"40","view-box":"-5 -10 130 130"}},"BaseIcon",e.$attrs,!1),[r("g",[r("path",{attrs:{d:"M 83.046875 50.847656 C 83.046875 57.824219 82.789062 61.933594 82.398438 61.933594 C 82.007812 61.933594 81.75 58.019531 81.75 51.5 C 81.75 42.636719 81.621094 41.070312 80.777344 41.070312 C 79.933594 41.070312 79.804688 42.765625 79.804688 52.542969 C 79.804688 61.867188 80 64.148438 80.777344 64.929688 C 82.398438 66.625 81.878906 67.601562 79.15625 68.058594 C 76.820312 68.449219 76.558594 68.648438 76.558594 70.40625 C 76.558594 72.296875 76.6875 72.363281 79.414062 72.363281 C 82.203125 72.363281 82.269531 72.296875 82.722656 69.886719 C 82.917969 68.582031 83.890625 66.691406 84.863281 65.648438 C 86.226562 64.214844 87.070312 63.886719 89.472656 63.886719 C 93.625 63.953125 96.671875 66.757812 96.671875 70.535156 C 96.671875 72.363281 96.738281 72.363281 100.761719 72.363281 C 107.441406 72.363281 107.960938 71.320312 107.378906 60.433594 C 106.664062 47.265625 106.273438 44.917969 104.132812 42.179688 L 102.1875 39.765625 L 83.046875 39.765625 Z M 104.328125 45.113281 C 104.78125 45.570312 105.105469 47.851562 105.105469 50.652344 L 105.105469 55.414062 L 101.085938 55.414062 C 95.441406 55.414062 94.078125 54.042969 94.078125 48.4375 L 94.078125 44.332031 L 98.8125 44.332031 C 101.605469 44.332031 103.875 44.65625 104.328125 45.113281 Z M 104.328125 45.113281 "}}),r("path",{attrs:{d:"M 1.945312 66.496094 C 1.945312 72.949219 3.050781 74.644531 3.375 68.582031 L 3.570312 64.867188 L 6.035156 64.667969 C 8.371094 64.472656 8.5 64.539062 7.785156 65.777344 C 7.394531 66.558594 6.488281 67.148438 5.839844 67.148438 C 4.800781 67.148438 4.542969 67.601562 4.542969 69.429688 C 4.542969 71.515625 4.734375 71.710938 6.359375 71.710938 C 7.980469 71.710938 8.304688 71.382812 9.019531 68.90625 C 9.472656 67.40625 10.1875 65.777344 10.511719 65.320312 C 11.03125 64.734375 14.535156 64.539062 24.007812 64.539062 C 35.035156 64.539062 36.917969 64.667969 37.695312 65.582031 C 38.148438 66.167969 38.605469 67.148438 38.605469 67.734375 C 38.929688 72.101562 38.214844 71.710938 46.066406 71.710938 L 53.203125 71.710938 L 53.203125 70.082031 C 53.203125 68.449219 53.203125 68.449219 47.039062 68.449219 C 41.523438 68.449219 40.875 68.320312 40.875 67.277344 C 40.875 66.625 40.550781 65.777344 40.097656 65.320312 C 39.511719 64.734375 43.339844 64.539062 57.289062 64.539062 L 75.261719 64.539062 L 75.261719 60.628906 L 1.945312 60.628906 Z M 1.945312 66.496094 "}}),r("path",{attrs:{d:"M 29.457031 66.105469 C 27.316406 67.082031 26.601562 68.253906 26.601562 70.796875 C 26.601562 73.273438 27.640625 74.773438 29.84375 75.558594 C 35.101562 77.382812 39.1875 71.644531 35.554688 67.539062 C 33.609375 65.453125 31.921875 65.0625 29.457031 66.105469 Z M 29.457031 66.105469 "}}),r("path",{attrs:{d:"M 11.742188 67.539062 C 9.992188 69.753906 9.992188 71.710938 11.742188 73.925781 C 12.78125 75.230469 13.625 75.621094 15.636719 75.621094 C 18.878906 75.621094 20.761719 73.863281 20.761719 70.734375 C 20.761719 67.601562 18.878906 65.84375 15.636719 65.84375 C 13.625 65.84375 12.78125 66.234375 11.742188 67.539062 Z M 11.742188 67.539062 "}}),r("path",{attrs:{d:"M 55.539062 66.886719 C 54.304688 68.058594 54.175781 71.125 55.277344 72.230469 C 56.121094 73.078125 72.277344 73.40625 74.222656 72.625 C 75.457031 72.167969 75.652344 67.800781 74.484375 66.625 C 73.964844 66.105469 70.914062 65.84375 65.140625 65.84375 C 58.199219 65.84375 56.316406 66.039062 55.539062 66.886719 Z M 55.539062 66.886719 "}}),r("path",{attrs:{d:"M 85.707031 67.539062 C 84.929688 68.515625 84.34375 69.949219 84.34375 70.734375 C 84.34375 71.515625 84.929688 72.949219 85.707031 73.925781 C 86.746094 75.230469 87.589844 75.621094 89.601562 75.621094 C 92.84375 75.621094 94.726562 73.863281 94.726562 70.734375 C 94.726562 67.601562 92.84375 65.84375 89.601562 65.84375 C 87.589844 65.84375 86.746094 66.234375 85.707031 67.539062 Z M 85.707031 67.539062 "}})])])},p3=[],m3=H(h3,f3,p3,!1,null,null,null,null);const g3=m3.exports,v3=F.extend({name:"FreeDrawing",components:{BaseIcon:de},props:{color:{type:String,default:"grey"}}});var _3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,color:e.color,"view-box":"144.5 188 10 10",width:"20"}},"BaseIcon",e.$attrs,!1),[r("path",{staticStyle:{"stroke-width":"0.26458332"},attrs:{d:"m 152.95505,196.2344 c -0.26609,-0.31077 -0.78119,-0.53107 -1.24174,-0.53107 -1.35571,0 -1.75694,-1.55337 -0.80466,-3.11525 0.8944,-1.46696 0.58455,-1.32449 -1.16477,0.53556 -1.38412,1.47174 -1.82631,1.78594 -2.51343,1.78594 -1.70547,0 -1.64926,-2.05847 0.11688,-4.28009 0.50015,-0.62913 0.91051,-1.2927 0.91193,-1.4746 0.005,-0.69959 -1.16999,-0.29505 -2.1141,0.72761 -1.02193,1.10694 -1.5875,1.33928 -1.5875,0.65215 0,-1.09423 1.95434,-2.76882 3.23136,-2.76882 0.77265,0 1.53114,0.74594 1.53114,1.50581 0,0.29595 -0.36879,1.00095 -0.81952,1.56666 -2.38989,2.99953 -1.92282,4.24945 0.53289,1.42606 1.43494,-1.64978 2.39361,-2.14511 3.06819,-1.58526 0.54739,0.45429 0.49147,1.17719 -0.18153,2.34654 -0.73827,1.28277 -0.52557,1.88394 0.66656,1.88394 0.98427,0 1.58974,0.50975 1.45161,1.22213 -0.12906,0.66558 -0.56589,0.70699 -1.08331,0.10269 z m -0.39375,-0.97088 c -0.1819,-0.0734 -0.47956,-0.0734 -0.66146,0 -0.1819,0.0734 -0.0331,0.13345 0.33073,0.13345 0.36381,0 0.51263,-0.06 0.33073,-0.13345 z"}}),r("ellipse",{staticStyle:{"stroke-width":"0.26458332"},attrs:{ry:"0.24221301",rx:"0.68487817",cy:"195.24547",cx:"152.2267"}})])},y3=[],C3=H(v3,_3,y3,!1,null,null,null,null);const b3=C3.exports,x3=F.extend({name:"IModel",components:{BaseIcon:de}});var w3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._g(e._b({attrs:{small:!0,width:"25",height:"25",viewBox:"0 0 280 280"}},"BaseIcon",e.$attrs,!1),e.$listeners),[r("g",{attrs:{stroke:"none"}},[r("path",{attrs:{d:"m 134,28.9 c -4.5,1 -6.3,1.9 -28.7,15.4 -10.4,6.2 -21,12.6 -23.8,14.2 -12.2,6.8 -28.3,17 -31.1,19.7 -1.7,1.6 -4.2,5 -5.5,7.6 l -2.4,4.7 v 50 50 l 2.9,5 c 4.3,7.4 7.1,9.8 20.9,17.6 4,2.2 8.6,4.9 10.2,5.9 1.7,1.1 5,3.1 7.5,4.5 2.5,1.4 8.2,4.8 12.8,7.5 4.5,2.8 11.9,7.2 16.5,10 4.5,2.7 11,6.4 14.5,8.1 5.8,2.9 6.9,3.1 13.5,2.7 6.9,-0.5 10.4,-1.7 18.7,-6.9 4.4,-2.7 34.4,-20.6 37.5,-22.3 1.7,-0.9 4.4,-2.5 6,-3.6 1.7,-1 6.2,-3.7 10.2,-5.9 13.6,-7.7 17.8,-11.2 21.4,-18.1 l 2.7,-44.2 0.3,-39.7 -5.6,2.4 c -3,1.4 -6.2,2.5 -7,2.5 -1.3,0 -1.5,4.9 -1.5,35.4 0,43.6 2.1,38.3 -20.9,51.8 -4,2.4 -8.1,4.7 -9,5.3 -3.8,2.3 -30.2,18.1 -31.9,19 -0.9,0.5 -5.4,3.1 -9.8,5.7 -8.6,5.1 -14.5,6.2 -19,3.5 -1.2,-0.6 -5.5,-3.1 -9.5,-5.5 -8.8,-5.1 -36.8,-21.8 -38.9,-23.2 -0.8,-0.5 -4.6,-2.8 -8.5,-5.1 -13.8,-8 -16,-9.6 -18.3,-12.9 l -2.3,-3.4 0.3,-47.2 0.3,-47.3 3,-3.1 c 1.7,-1.8 4.6,-4.1 6.5,-5.1 1.9,-1.1 7.1,-4.2 11.5,-6.9 4.4,-2.7 11.2,-6.7 15,-8.9 9.2,-5.4 13.9,-8.2 20,-11.9 14.5,-8.9 23.3,-13.5 26.5,-13.9 2.6,-0.3 5,0.3 9.3,2.6 L 154,48 v -8 c 0,-7.7 -0.1,-8 -2.8,-9.4 -3.4,-1.8 -12.6,-2.7 -17.2,-1.7 z"}}),r("path",{attrs:{d:"m 170.5,34.5 c -4.9,4.8 -1.6,12.5 5.3,12.5 2,0 4.2,-0.4 4.8,-0.8 1.6,-1.1 3.4,-4.8 3.4,-7.2 0,-3.2 -4.4,-7 -8,-7 -1.9,0 -4,0.9 -5.5,2.5 z"}}),r("path",{attrs:{d:"m 205.5,50.5 c -8.6,2.4 -14.6,11.3 -12.5,18.6 2.2,7.5 5.4,9.8 17.7,12.8 10.2,2.5 11.3,3 11.3,5.1 0,5.1 -8.8,6.8 -13.4,2.5 C 206.2,87.3 205,87 198.5,87 h -7.4 l 0.9,2.9 c 1.4,4.8 3.8,7.6 8.7,10.2 4,2 6.3,2.4 13.8,2.4 7.5,0 9.8,-0.4 13.7,-2.4 5.9,-3 8.8,-6.9 9.5,-13 1.1,-9.5 -4.7,-14.4 -20.5,-17.1 -6.2,-1 -7.5,-1.6 -8.4,-3.6 -1.6,-3.5 0.8,-5.7 6.3,-5.6 3.2,0.1 4.9,0.7 6.1,2.1 1.4,1.8 2.8,2.1 8.8,2.1 6.9,0 7.1,-0.1 6.5,-2.3 -1.5,-4.8 -4.3,-8.2 -8.5,-10.4 -5.8,-3 -15.7,-3.8 -22.5,-1.8 z"}}),r("path",{attrs:{d:"m 167.8,79.2 -0.3,27.2 -3.2,0.8 c -3.2,0.8 -3.3,1 -3.3,6.5 v 5.6 l 6.1,-0.7 c 7.3,-0.7 12.2,-2.9 14.6,-6.4 1.6,-2.4 1.8,-5.7 2.1,-31.5 L 184.1,52 h -8 -8.1 z"}}),r("path",{attrs:{d:"m 134.3,75 c -9.7,3.9 -12,17.2 -4.3,24.5 2.9,2.7 3.8,3 10,3 6.2,0 7.1,-0.3 10,-3 7.8,-7.5 5.3,-20.8 -4.6,-24.5 -3.1,-1.2 -8.1,-1.2 -11.1,0 z"}}),r("path",{attrs:{d:"m 113.2,110.2 c -0.8,0.8 -1.2,5.1 -1.2,12.9 v 11.7 l 7,4.2 7,4.2 v 23.9 c 0,13.2 -0.3,23.9 -0.6,23.9 -0.3,0 -2.6,-1.2 -5.2,-2.6 -18.4,-10.4 -20.7,-11.1 -21.7,-7.2 -0.3,1.3 -0.5,7 -0.3,12.8 l 0.3,10.4 7,4.3 c 3.9,2.4 7.7,4.6 8.5,5 0.8,0.4 5.5,3.1 10.3,6 4.8,2.9 9.1,5.3 9.4,5.3 0.4,0 1.4,0.7 2.4,1.6 0.9,0.8 2.5,1.6 3.6,1.6 1,0.1 7.7,-3.3 14.8,-7.6 7.2,-4.3 13.9,-8.3 15,-8.9 1.1,-0.7 4.3,-2.7 7.2,-4.4 L 182,204 v -10.9 c 0,-12.3 -0.4,-14.1 -3.1,-14.1 -1.8,0 -16.7,7.4 -21.4,10.6 -1.1,0.8 -2.3,1.4 -2.7,1.4 -0.4,0 -0.9,-13.8 -1,-30.7 L 153.5,129.6 143,123.7 C 127.3,114.9 116.1,109 115.2,109 c -0.4,0 -1.3,0.5 -2,1.2 z"}})])])},S3=[],T3=H(x3,w3,S3,!1,null,null,null,null);const k3=T3.exports,$3=F.extend({name:"Inspection",components:{BaseIcon:de},props:{color:{type:String,default:"white"}}});var E3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"22px",height:"22px",viewBox:"0 0 22 22",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{style:`fill: ${e.color}`,attrs:{d:"M 2.769531 2.769531 C 2.75 2.785156 2.734375 3.503906 2.734375 4.355469 L 2.734375 5.910156 L 3.859375 5.910156 L 3.859375 3.859375 L 5.914062 3.859375 L 5.902344 3.308594 L 5.886719 2.761719 L 4.34375 2.746094 C 3.496094 2.738281 2.789062 2.75 2.769531 2.769531 Z M 2.769531 2.769531 "}}),r("path",{style:`fill: ${e.color}`,attrs:{d:"M 16.070312 3.296875 L 16.070312 3.859375 L 18.121094 3.859375 L 18.121094 5.910156 L 19.246094 5.910156 L 19.234375 4.332031 L 19.21875 2.761719 L 17.648438 2.746094 L 16.070312 2.734375 Z M 16.070312 3.296875 "}}),r("path",{style:`fill: ${e.color}`,attrs:{d:"M 10.453125 5.378906 C 9.691406 5.441406 8.835938 5.707031 8.210938 6.078125 L 7.925781 6.242188 L 7.003906 6.261719 C 6.203125 6.28125 6.042969 6.300781 5.804688 6.394531 C 5.4375 6.535156 5.074219 6.878906 4.898438 7.253906 L 4.761719 7.546875 L 4.761719 14.433594 L 4.898438 14.710938 C 5.070312 15.0625 5.371094 15.367188 5.714844 15.527344 C 5.96875 15.644531 6.039062 15.65625 6.9375 15.679688 L 7.886719 15.703125 L 8.226562 15.894531 C 9.96875 16.886719 12.203125 16.855469 13.871094 15.832031 L 14.105469 15.6875 L 15.050781 15.667969 C 15.972656 15.65625 16 15.648438 16.273438 15.519531 C 16.632812 15.34375 17.007812 14.9375 17.128906 14.59375 C 17.214844 14.355469 17.21875 14.105469 17.21875 10.941406 L 17.21875 7.546875 L 17.085938 7.269531 C 16.929688 6.9375 16.613281 6.605469 16.304688 6.457031 C 15.992188 6.300781 15.621094 6.253906 14.796875 6.253906 L 14.082031 6.253906 L 13.574219 5.988281 C 12.617188 5.484375 11.585938 5.285156 10.453125 5.378906 Z M 11.644531 7.058594 C 12.519531 7.210938 13.1875 7.5625 13.824219 8.207031 C 14.6875 9.082031 15.097656 10.242188 14.953125 11.421875 C 14.742188 13.121094 13.5625 14.449219 11.894531 14.875 C 11.449219 14.992188 10.554688 14.992188 10.101562 14.882812 C 8.894531 14.589844 7.828125 13.714844 7.347656 12.621094 C 7.097656 12.054688 7.015625 11.644531 7.015625 10.988281 C 7.015625 10.34375 7.074219 10.023438 7.296875 9.464844 C 7.796875 8.238281 8.964844 7.300781 10.292969 7.0625 C 10.800781 6.96875 11.136719 6.96875 11.644531 7.058594 Z M 11.644531 7.058594 "}}),r("path",{style:`fill: ${e.color}`,attrs:{d:"M 10.625 8.15625 C 9.515625 8.304688 8.578125 9.105469 8.238281 10.183594 C 8.097656 10.652344 8.097656 11.324219 8.246094 11.796875 C 8.535156 12.742188 9.335938 13.503906 10.28125 13.75 C 10.652344 13.84375 11.328125 13.84375 11.699219 13.75 C 12.9375 13.421875 13.824219 12.304688 13.832031 11.039062 C 13.84375 10.203125 13.578125 9.5625 12.996094 8.984375 C 12.351562 8.339844 11.507812 8.042969 10.625 8.15625 Z M 10.625 8.15625 "}}),r("path",{style:`fill: ${e.color}`,attrs:{d:"M 2.746094 17.644531 L 2.761719 19.21875 L 5.886719 19.21875 L 5.902344 18.667969 L 5.914062 18.121094 L 3.859375 18.121094 L 3.859375 16.070312 L 2.734375 16.070312 Z M 2.746094 17.644531 "}}),r("path",{style:`fill: ${e.color}`,attrs:{d:"M 18.121094 17.097656 L 18.121094 18.121094 L 16.070312 18.121094 L 16.070312 19.246094 L 17.648438 19.234375 L 19.21875 19.21875 L 19.234375 17.644531 L 19.246094 16.070312 L 18.121094 16.070312 Z M 18.121094 17.097656 "}})])},M3=[],L3=H($3,E3,M3,!1,null,null,null,null);const D3=L3.exports,P3=F.extend({name:"Worker",components:{BaseIcon:de}});var O3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({staticStyle:{"margin-right":"5px"},attrs:{small:!0,"view-box":"0 0 578.621 578.621",width:"30"}},"BaseIcon",e.$attrs,!1),[r("g",[r("path",{attrs:{d:"M47.5,345c-7.995,0-14.5,6.505-14.5,14.5S39.505,374,47.5,374S62,367.495,62,359.5S55.495,345,47.5,345z"}}),r("path",{attrs:{d:"M271.5,345c-7.995,0-14.5,6.505-14.5,14.5s6.505,14.5,14.5,14.5s14.5-6.505,14.5-14.5S279.495,345,271.5,345z"}}),r("path",{attrs:{d:`M455.5,352H367V239.5c0-8.547-6.953-15.5-15.5-15.5H335V71.5c0-8.547-6.953-15.5-15.5-15.5h-40c-4.142,0-7.5,3.358-7.5,7.5
65
+ C381.849,397.128,373.942,405.036,364.187,405.036z`}})])])])},u3=[],d3=H(l3,c3,u3,!1,null,null,null,null);const rs=d3.exports,h3=F.extend({name:"FlatbedSemiTrailer",components:{BaseIcon:de}});var f3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{width:"40","view-box":"-5 -10 130 130"}},"BaseIcon",e.$attrs,!1),[r("g",[r("path",{attrs:{d:"M 83.046875 50.847656 C 83.046875 57.824219 82.789062 61.933594 82.398438 61.933594 C 82.007812 61.933594 81.75 58.019531 81.75 51.5 C 81.75 42.636719 81.621094 41.070312 80.777344 41.070312 C 79.933594 41.070312 79.804688 42.765625 79.804688 52.542969 C 79.804688 61.867188 80 64.148438 80.777344 64.929688 C 82.398438 66.625 81.878906 67.601562 79.15625 68.058594 C 76.820312 68.449219 76.558594 68.648438 76.558594 70.40625 C 76.558594 72.296875 76.6875 72.363281 79.414062 72.363281 C 82.203125 72.363281 82.269531 72.296875 82.722656 69.886719 C 82.917969 68.582031 83.890625 66.691406 84.863281 65.648438 C 86.226562 64.214844 87.070312 63.886719 89.472656 63.886719 C 93.625 63.953125 96.671875 66.757812 96.671875 70.535156 C 96.671875 72.363281 96.738281 72.363281 100.761719 72.363281 C 107.441406 72.363281 107.960938 71.320312 107.378906 60.433594 C 106.664062 47.265625 106.273438 44.917969 104.132812 42.179688 L 102.1875 39.765625 L 83.046875 39.765625 Z M 104.328125 45.113281 C 104.78125 45.570312 105.105469 47.851562 105.105469 50.652344 L 105.105469 55.414062 L 101.085938 55.414062 C 95.441406 55.414062 94.078125 54.042969 94.078125 48.4375 L 94.078125 44.332031 L 98.8125 44.332031 C 101.605469 44.332031 103.875 44.65625 104.328125 45.113281 Z M 104.328125 45.113281 "}}),r("path",{attrs:{d:"M 1.945312 66.496094 C 1.945312 72.949219 3.050781 74.644531 3.375 68.582031 L 3.570312 64.867188 L 6.035156 64.667969 C 8.371094 64.472656 8.5 64.539062 7.785156 65.777344 C 7.394531 66.558594 6.488281 67.148438 5.839844 67.148438 C 4.800781 67.148438 4.542969 67.601562 4.542969 69.429688 C 4.542969 71.515625 4.734375 71.710938 6.359375 71.710938 C 7.980469 71.710938 8.304688 71.382812 9.019531 68.90625 C 9.472656 67.40625 10.1875 65.777344 10.511719 65.320312 C 11.03125 64.734375 14.535156 64.539062 24.007812 64.539062 C 35.035156 64.539062 36.917969 64.667969 37.695312 65.582031 C 38.148438 66.167969 38.605469 67.148438 38.605469 67.734375 C 38.929688 72.101562 38.214844 71.710938 46.066406 71.710938 L 53.203125 71.710938 L 53.203125 70.082031 C 53.203125 68.449219 53.203125 68.449219 47.039062 68.449219 C 41.523438 68.449219 40.875 68.320312 40.875 67.277344 C 40.875 66.625 40.550781 65.777344 40.097656 65.320312 C 39.511719 64.734375 43.339844 64.539062 57.289062 64.539062 L 75.261719 64.539062 L 75.261719 60.628906 L 1.945312 60.628906 Z M 1.945312 66.496094 "}}),r("path",{attrs:{d:"M 29.457031 66.105469 C 27.316406 67.082031 26.601562 68.253906 26.601562 70.796875 C 26.601562 73.273438 27.640625 74.773438 29.84375 75.558594 C 35.101562 77.382812 39.1875 71.644531 35.554688 67.539062 C 33.609375 65.453125 31.921875 65.0625 29.457031 66.105469 Z M 29.457031 66.105469 "}}),r("path",{attrs:{d:"M 11.742188 67.539062 C 9.992188 69.753906 9.992188 71.710938 11.742188 73.925781 C 12.78125 75.230469 13.625 75.621094 15.636719 75.621094 C 18.878906 75.621094 20.761719 73.863281 20.761719 70.734375 C 20.761719 67.601562 18.878906 65.84375 15.636719 65.84375 C 13.625 65.84375 12.78125 66.234375 11.742188 67.539062 Z M 11.742188 67.539062 "}}),r("path",{attrs:{d:"M 55.539062 66.886719 C 54.304688 68.058594 54.175781 71.125 55.277344 72.230469 C 56.121094 73.078125 72.277344 73.40625 74.222656 72.625 C 75.457031 72.167969 75.652344 67.800781 74.484375 66.625 C 73.964844 66.105469 70.914062 65.84375 65.140625 65.84375 C 58.199219 65.84375 56.316406 66.039062 55.539062 66.886719 Z M 55.539062 66.886719 "}}),r("path",{attrs:{d:"M 85.707031 67.539062 C 84.929688 68.515625 84.34375 69.949219 84.34375 70.734375 C 84.34375 71.515625 84.929688 72.949219 85.707031 73.925781 C 86.746094 75.230469 87.589844 75.621094 89.601562 75.621094 C 92.84375 75.621094 94.726562 73.863281 94.726562 70.734375 C 94.726562 67.601562 92.84375 65.84375 89.601562 65.84375 C 87.589844 65.84375 86.746094 66.234375 85.707031 67.539062 Z M 85.707031 67.539062 "}})])])},p3=[],m3=H(h3,f3,p3,!1,null,null,null,null);const g3=m3.exports,v3=F.extend({name:"FreeDrawing",components:{BaseIcon:de},props:{color:{type:String,default:"grey"}}});var _3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,color:e.color,"view-box":"144.5 188 10 10",width:"20"}},"BaseIcon",e.$attrs,!1),[r("path",{staticStyle:{"stroke-width":"0.26458332"},attrs:{d:"m 152.95505,196.2344 c -0.26609,-0.31077 -0.78119,-0.53107 -1.24174,-0.53107 -1.35571,0 -1.75694,-1.55337 -0.80466,-3.11525 0.8944,-1.46696 0.58455,-1.32449 -1.16477,0.53556 -1.38412,1.47174 -1.82631,1.78594 -2.51343,1.78594 -1.70547,0 -1.64926,-2.05847 0.11688,-4.28009 0.50015,-0.62913 0.91051,-1.2927 0.91193,-1.4746 0.005,-0.69959 -1.16999,-0.29505 -2.1141,0.72761 -1.02193,1.10694 -1.5875,1.33928 -1.5875,0.65215 0,-1.09423 1.95434,-2.76882 3.23136,-2.76882 0.77265,0 1.53114,0.74594 1.53114,1.50581 0,0.29595 -0.36879,1.00095 -0.81952,1.56666 -2.38989,2.99953 -1.92282,4.24945 0.53289,1.42606 1.43494,-1.64978 2.39361,-2.14511 3.06819,-1.58526 0.54739,0.45429 0.49147,1.17719 -0.18153,2.34654 -0.73827,1.28277 -0.52557,1.88394 0.66656,1.88394 0.98427,0 1.58974,0.50975 1.45161,1.22213 -0.12906,0.66558 -0.56589,0.70699 -1.08331,0.10269 z m -0.39375,-0.97088 c -0.1819,-0.0734 -0.47956,-0.0734 -0.66146,0 -0.1819,0.0734 -0.0331,0.13345 0.33073,0.13345 0.36381,0 0.51263,-0.06 0.33073,-0.13345 z"}}),r("ellipse",{staticStyle:{"stroke-width":"0.26458332"},attrs:{ry:"0.24221301",rx:"0.68487817",cy:"195.24547",cx:"152.2267"}})])},y3=[],C3=H(v3,_3,y3,!1,null,null,null,null);const b3=C3.exports,x3=F.extend({name:"IModel",components:{BaseIcon:de}});var w3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._g(e._b({attrs:{small:!0,width:"25",height:"25",viewBox:"0 0 280 280"}},"BaseIcon",e.$attrs,!1),e.$listeners),[r("g",{attrs:{stroke:"none"}},[r("path",{attrs:{d:"m 134,28.9 c -4.5,1 -6.3,1.9 -28.7,15.4 -10.4,6.2 -21,12.6 -23.8,14.2 -12.2,6.8 -28.3,17 -31.1,19.7 -1.7,1.6 -4.2,5 -5.5,7.6 l -2.4,4.7 v 50 50 l 2.9,5 c 4.3,7.4 7.1,9.8 20.9,17.6 4,2.2 8.6,4.9 10.2,5.9 1.7,1.1 5,3.1 7.5,4.5 2.5,1.4 8.2,4.8 12.8,7.5 4.5,2.8 11.9,7.2 16.5,10 4.5,2.7 11,6.4 14.5,8.1 5.8,2.9 6.9,3.1 13.5,2.7 6.9,-0.5 10.4,-1.7 18.7,-6.9 4.4,-2.7 34.4,-20.6 37.5,-22.3 1.7,-0.9 4.4,-2.5 6,-3.6 1.7,-1 6.2,-3.7 10.2,-5.9 13.6,-7.7 17.8,-11.2 21.4,-18.1 l 2.7,-44.2 0.3,-39.7 -5.6,2.4 c -3,1.4 -6.2,2.5 -7,2.5 -1.3,0 -1.5,4.9 -1.5,35.4 0,43.6 2.1,38.3 -20.9,51.8 -4,2.4 -8.1,4.7 -9,5.3 -3.8,2.3 -30.2,18.1 -31.9,19 -0.9,0.5 -5.4,3.1 -9.8,5.7 -8.6,5.1 -14.5,6.2 -19,3.5 -1.2,-0.6 -5.5,-3.1 -9.5,-5.5 -8.8,-5.1 -36.8,-21.8 -38.9,-23.2 -0.8,-0.5 -4.6,-2.8 -8.5,-5.1 -13.8,-8 -16,-9.6 -18.3,-12.9 l -2.3,-3.4 0.3,-47.2 0.3,-47.3 3,-3.1 c 1.7,-1.8 4.6,-4.1 6.5,-5.1 1.9,-1.1 7.1,-4.2 11.5,-6.9 4.4,-2.7 11.2,-6.7 15,-8.9 9.2,-5.4 13.9,-8.2 20,-11.9 14.5,-8.9 23.3,-13.5 26.5,-13.9 2.6,-0.3 5,0.3 9.3,2.6 L 154,48 v -8 c 0,-7.7 -0.1,-8 -2.8,-9.4 -3.4,-1.8 -12.6,-2.7 -17.2,-1.7 z"}}),r("path",{attrs:{d:"m 170.5,34.5 c -4.9,4.8 -1.6,12.5 5.3,12.5 2,0 4.2,-0.4 4.8,-0.8 1.6,-1.1 3.4,-4.8 3.4,-7.2 0,-3.2 -4.4,-7 -8,-7 -1.9,0 -4,0.9 -5.5,2.5 z"}}),r("path",{attrs:{d:"m 205.5,50.5 c -8.6,2.4 -14.6,11.3 -12.5,18.6 2.2,7.5 5.4,9.8 17.7,12.8 10.2,2.5 11.3,3 11.3,5.1 0,5.1 -8.8,6.8 -13.4,2.5 C 206.2,87.3 205,87 198.5,87 h -7.4 l 0.9,2.9 c 1.4,4.8 3.8,7.6 8.7,10.2 4,2 6.3,2.4 13.8,2.4 7.5,0 9.8,-0.4 13.7,-2.4 5.9,-3 8.8,-6.9 9.5,-13 1.1,-9.5 -4.7,-14.4 -20.5,-17.1 -6.2,-1 -7.5,-1.6 -8.4,-3.6 -1.6,-3.5 0.8,-5.7 6.3,-5.6 3.2,0.1 4.9,0.7 6.1,2.1 1.4,1.8 2.8,2.1 8.8,2.1 6.9,0 7.1,-0.1 6.5,-2.3 -1.5,-4.8 -4.3,-8.2 -8.5,-10.4 -5.8,-3 -15.7,-3.8 -22.5,-1.8 z"}}),r("path",{attrs:{d:"m 167.8,79.2 -0.3,27.2 -3.2,0.8 c -3.2,0.8 -3.3,1 -3.3,6.5 v 5.6 l 6.1,-0.7 c 7.3,-0.7 12.2,-2.9 14.6,-6.4 1.6,-2.4 1.8,-5.7 2.1,-31.5 L 184.1,52 h -8 -8.1 z"}}),r("path",{attrs:{d:"m 134.3,75 c -9.7,3.9 -12,17.2 -4.3,24.5 2.9,2.7 3.8,3 10,3 6.2,0 7.1,-0.3 10,-3 7.8,-7.5 5.3,-20.8 -4.6,-24.5 -3.1,-1.2 -8.1,-1.2 -11.1,0 z"}}),r("path",{attrs:{d:"m 113.2,110.2 c -0.8,0.8 -1.2,5.1 -1.2,12.9 v 11.7 l 7,4.2 7,4.2 v 23.9 c 0,13.2 -0.3,23.9 -0.6,23.9 -0.3,0 -2.6,-1.2 -5.2,-2.6 -18.4,-10.4 -20.7,-11.1 -21.7,-7.2 -0.3,1.3 -0.5,7 -0.3,12.8 l 0.3,10.4 7,4.3 c 3.9,2.4 7.7,4.6 8.5,5 0.8,0.4 5.5,3.1 10.3,6 4.8,2.9 9.1,5.3 9.4,5.3 0.4,0 1.4,0.7 2.4,1.6 0.9,0.8 2.5,1.6 3.6,1.6 1,0.1 7.7,-3.3 14.8,-7.6 7.2,-4.3 13.9,-8.3 15,-8.9 1.1,-0.7 4.3,-2.7 7.2,-4.4 L 182,204 v -10.9 c 0,-12.3 -0.4,-14.1 -3.1,-14.1 -1.8,0 -16.7,7.4 -21.4,10.6 -1.1,0.8 -2.3,1.4 -2.7,1.4 -0.4,0 -0.9,-13.8 -1,-30.7 L 153.5,129.6 143,123.7 C 127.3,114.9 116.1,109 115.2,109 c -0.4,0 -1.3,0.5 -2,1.2 z"}})])])},S3=[],T3=H(x3,w3,S3,!1,null,null,null,null);const k3=T3.exports,$3=F.extend({name:"Inspection",components:{BaseIcon:de},props:{color:{type:String,default:"white"}}});var E3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"22px",height:"22px",viewBox:"0 0 22 22",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{style:`fill: ${e.color}`,attrs:{d:"M 2.769531 2.769531 C 2.75 2.785156 2.734375 3.503906 2.734375 4.355469 L 2.734375 5.910156 L 3.859375 5.910156 L 3.859375 3.859375 L 5.914062 3.859375 L 5.902344 3.308594 L 5.886719 2.761719 L 4.34375 2.746094 C 3.496094 2.738281 2.789062 2.75 2.769531 2.769531 Z M 2.769531 2.769531 "}}),r("path",{style:`fill: ${e.color}`,attrs:{d:"M 16.070312 3.296875 L 16.070312 3.859375 L 18.121094 3.859375 L 18.121094 5.910156 L 19.246094 5.910156 L 19.234375 4.332031 L 19.21875 2.761719 L 17.648438 2.746094 L 16.070312 2.734375 Z M 16.070312 3.296875 "}}),r("path",{style:`fill: ${e.color}`,attrs:{d:"M 10.453125 5.378906 C 9.691406 5.441406 8.835938 5.707031 8.210938 6.078125 L 7.925781 6.242188 L 7.003906 6.261719 C 6.203125 6.28125 6.042969 6.300781 5.804688 6.394531 C 5.4375 6.535156 5.074219 6.878906 4.898438 7.253906 L 4.761719 7.546875 L 4.761719 14.433594 L 4.898438 14.710938 C 5.070312 15.0625 5.371094 15.367188 5.714844 15.527344 C 5.96875 15.644531 6.039062 15.65625 6.9375 15.679688 L 7.886719 15.703125 L 8.226562 15.894531 C 9.96875 16.886719 12.203125 16.855469 13.871094 15.832031 L 14.105469 15.6875 L 15.050781 15.667969 C 15.972656 15.65625 16 15.648438 16.273438 15.519531 C 16.632812 15.34375 17.007812 14.9375 17.128906 14.59375 C 17.214844 14.355469 17.21875 14.105469 17.21875 10.941406 L 17.21875 7.546875 L 17.085938 7.269531 C 16.929688 6.9375 16.613281 6.605469 16.304688 6.457031 C 15.992188 6.300781 15.621094 6.253906 14.796875 6.253906 L 14.082031 6.253906 L 13.574219 5.988281 C 12.617188 5.484375 11.585938 5.285156 10.453125 5.378906 Z M 11.644531 7.058594 C 12.519531 7.210938 13.1875 7.5625 13.824219 8.207031 C 14.6875 9.082031 15.097656 10.242188 14.953125 11.421875 C 14.742188 13.121094 13.5625 14.449219 11.894531 14.875 C 11.449219 14.992188 10.554688 14.992188 10.101562 14.882812 C 8.894531 14.589844 7.828125 13.714844 7.347656 12.621094 C 7.097656 12.054688 7.015625 11.644531 7.015625 10.988281 C 7.015625 10.34375 7.074219 10.023438 7.296875 9.464844 C 7.796875 8.238281 8.964844 7.300781 10.292969 7.0625 C 10.800781 6.96875 11.136719 6.96875 11.644531 7.058594 Z M 11.644531 7.058594 "}}),r("path",{style:`fill: ${e.color}`,attrs:{d:"M 10.625 8.15625 C 9.515625 8.304688 8.578125 9.105469 8.238281 10.183594 C 8.097656 10.652344 8.097656 11.324219 8.246094 11.796875 C 8.535156 12.742188 9.335938 13.503906 10.28125 13.75 C 10.652344 13.84375 11.328125 13.84375 11.699219 13.75 C 12.9375 13.421875 13.824219 12.304688 13.832031 11.039062 C 13.84375 10.203125 13.578125 9.5625 12.996094 8.984375 C 12.351562 8.339844 11.507812 8.042969 10.625 8.15625 Z M 10.625 8.15625 "}}),r("path",{style:`fill: ${e.color}`,attrs:{d:"M 2.746094 17.644531 L 2.761719 19.21875 L 5.886719 19.21875 L 5.902344 18.667969 L 5.914062 18.121094 L 3.859375 18.121094 L 3.859375 16.070312 L 2.734375 16.070312 Z M 2.746094 17.644531 "}}),r("path",{style:`fill: ${e.color}`,attrs:{d:"M 18.121094 17.097656 L 18.121094 18.121094 L 16.070312 18.121094 L 16.070312 19.246094 L 17.648438 19.234375 L 19.21875 19.21875 L 19.234375 17.644531 L 19.246094 16.070312 L 18.121094 16.070312 Z M 18.121094 17.097656 "}})])},M3=[],L3=H($3,E3,M3,!1,null,null,null,null);const D3=L3.exports,P3=F.extend({name:"Worker",components:{BaseIcon:de}});var O3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({staticStyle:{"margin-right":"5px"},attrs:{small:!0,"view-box":"0 0 578.621 578.621",width:"30"}},"BaseIcon",e.$attrs,!1),[r("g",[r("path",{attrs:{d:"M47.5,345c-7.995,0-14.5,6.505-14.5,14.5S39.505,374,47.5,374S62,367.495,62,359.5S55.495,345,47.5,345z"}}),r("path",{attrs:{d:"M271.5,345c-7.995,0-14.5,6.505-14.5,14.5s6.505,14.5,14.5,14.5s14.5-6.505,14.5-14.5S279.495,345,271.5,345z"}}),r("path",{attrs:{d:`M455.5,352H367V239.5c0-8.547-6.953-15.5-15.5-15.5H335V71.5c0-8.547-6.953-15.5-15.5-15.5h-40c-4.142,0-7.5,3.358-7.5,7.5
66
66
  s3.358,7.5,7.5,7.5h8.5v185h-17v-8.5c0-12.958-10.542-23.5-23.5-23.5h-2.343l-23.814-83.352
67
67
  c-4.82-16.868-20.438-28.648-37.98-28.648H71.5C54.131,112,40,126.131,40,143.5v81.734c-9.29,3.138-16,11.93-16,22.266v70.747
68
68
  C9.679,326.437,0,341.854,0,359.5C0,385.691,21.309,407,47.5,407c14.114,0,26.803-6.195,35.511-16h152.979
@@ -77,7 +77,7 @@ m367 -176 c192 -56 348 -207 420 -405 34 -93 34 -285 0 -378 -72 -198 -228
77
77
  c7.385,10.55,19.482,16.849,32.36,16.849H199.5c4.142,0,7.5-3.358,7.5-7.5v-96c0-4.687,3.813-8.5,8.5-8.5h32
78
78
  c4.687,0,8.5,3.813,8.5,8.5v67.111c-18.601,6.442-32,24.125-32,44.889c0,5.799,1.049,11.358,2.96,16.5H92.04z M271.5,392
79
79
  c-17.92,0-32.5-14.58-32.5-32.5s14.58-32.5,32.5-32.5s32.5,14.58,32.5,32.5S289.42,392,271.5,392z M303,323.989V71h16.5
80
- c0.276,0,0.5,0.224,0.5,0.5V336h-7.247C310.169,331.481,306.868,327.425,303,323.989z M335,336v-65h17v65H335z`}})])])},z3=[],B3=H(P3,O3,z3,!1,null,null,null,null);const I3=B3.exports,F3=F.extend({name:"MiniModel",components:{BaseIcon:de}});var A3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._g(e._b({attrs:{small:!0,width:"25",height:"25",viewBox:"0 0 25 25"}},"BaseIcon",e.$attrs,!1),e.$listeners),[r("path",{staticStyle:{stroke:"none","fill-rule":"nonzero","fill-opacity":"1"},attrs:{d:"M 11.152344 2.546875 C 10.527344 2.90625 9.164062 3.691406 8.117188 4.296875 C 7.066406 4.902344 6.203125 5.40625 6.203125 5.421875 C 6.203125 5.433594 7.621094 6.265625 9.355469 7.265625 L 12.503906 9.085938 L 15.648438 7.265625 C 17.382812 6.265625 18.789062 5.425781 18.785156 5.40625 C 18.78125 5.382812 17.414062 4.59375 15.746094 3.652344 C 13.25 2.234375 12.6875 1.933594 12.5 1.917969 C 12.289062 1.898438 12.222656 1.929688 11.152344 2.546875 Z M 11.152344 2.546875 "}}),r("path",{staticStyle:{stroke:"none","fill-rule":"nonzero","fill-opacity":"1"},attrs:{d:"M 5.421875 10.164062 C 5.421875 13.5 5.425781 13.65625 5.515625 13.859375 C 5.578125 13.988281 5.679688 14.101562 5.796875 14.175781 C 5.894531 14.234375 7.273438 15.035156 8.863281 15.945312 L 11.742188 17.613281 L 11.757812 14 C 11.761719 12.007812 11.753906 10.367188 11.734375 10.347656 C 11.710938 10.320312 10.375 9.546875 8.765625 8.617188 C 7.152344 7.6875 5.742188 6.871094 5.628906 6.804688 L 5.421875 6.683594 Z M 5.421875 10.164062 "}}),r("path",{staticStyle:{stroke:"none","fill-rule":"nonzero","fill-opacity":"1"},attrs:{d:"M 16.429688 8.5 C 14.710938 9.496094 13.289062 10.328125 13.265625 10.347656 C 13.246094 10.367188 13.238281 12.011719 13.242188 14.003906 L 13.257812 17.621094 L 16.257812 15.890625 C 17.910156 14.9375 19.3125 14.105469 19.375 14.054688 C 19.433594 13.992188 19.507812 13.867188 19.535156 13.773438 C 19.566406 13.65625 19.578125 12.402344 19.570312 10.140625 L 19.554688 6.6875 Z M 16.429688 8.5 "}}),r("path",{staticStyle:{stroke:"none","fill-rule":"nonzero","fill-opacity":"1"},attrs:{d:"M 3.316406 11.734375 C 1.203125 12.792969 0 14.242188 0 15.746094 C 0 16.945312 0.804688 18.183594 2.195312 19.136719 C 3.078125 19.734375 4.359375 20.328125 5.59375 20.695312 C 6.1875 20.867188 6.207031 20.878906 6.1875 20.996094 C 6.175781 21.0625 6.101562 21.414062 6.03125 21.777344 L 5.890625 22.441406 L 5.996094 22.660156 C 6.117188 22.914062 6.390625 23.09375 6.644531 23.09375 C 6.742188 23.089844 7.640625 22.757812 8.742188 22.320312 C 10.8125 21.488281 10.945312 21.414062 11.015625 21.070312 C 11.089844 20.664062 11.085938 20.65625 9.515625 19.054688 C 8.710938 18.226562 7.976562 17.515625 7.894531 17.46875 C 7.808594 17.425781 7.675781 17.386719 7.597656 17.382812 C 7.386719 17.382812 7.066406 17.554688 6.96875 17.726562 C 6.917969 17.804688 6.804688 18.210938 6.714844 18.632812 C 6.617188 19.058594 6.53125 19.414062 6.519531 19.421875 C 6.453125 19.488281 4.730469 18.859375 4.066406 18.53125 C 2.8125 17.910156 2.046875 17.269531 1.675781 16.523438 C 1.503906 16.171875 1.488281 16.109375 1.492188 15.746094 C 1.492188 15.414062 1.519531 15.304688 1.640625 15.039062 C 1.9375 14.410156 2.597656 13.789062 3.539062 13.261719 L 3.953125 13.027344 L 3.953125 12.226562 C 3.953125 11.789062 3.949219 11.425781 3.941406 11.425781 C 3.9375 11.425781 3.652344 11.5625 3.316406 11.734375 Z M 3.316406 11.734375 "}}),r("path",{staticStyle:{stroke:"none","fill-rule":"nonzero","fill-opacity":"1"},attrs:{d:"M 21.046875 12.230469 L 21.046875 13.039062 L 21.253906 13.140625 C 22.226562 13.632812 23.054688 14.390625 23.378906 15.074219 C 23.558594 15.460938 23.5625 16.054688 23.390625 16.449219 C 22.648438 18.128906 19.300781 19.585938 15.148438 20.042969 C 14.710938 20.085938 14.445312 20.140625 14.339844 20.199219 C 13.890625 20.464844 13.882812 21.15625 14.320312 21.429688 C 14.535156 21.5625 14.804688 21.5625 15.789062 21.4375 C 18.628906 21.074219 21.15625 20.25 22.851562 19.132812 C 23.378906 18.785156 24.15625 18.042969 24.433594 17.613281 C 25.320312 16.246094 25.148438 14.648438 23.96875 13.355469 C 23.457031 12.796875 22.613281 12.191406 21.710938 11.734375 C 21.476562 11.617188 21.226562 11.5 21.164062 11.476562 L 21.046875 11.425781 Z M 21.046875 12.230469 "}})])},R3=[],H3=H(F3,A3,R3,!1,null,null,null,null);const N3=H3.exports,j3=F.extend({name:"OtherTrucks"});var G3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("span",{staticClass:"px-3 py-1",style:{color:e.$attrs.color}},[e._v("?")])},q3=[],W3=H(j3,G3,q3,!1,null,null,null,null);const rs=W3.exports,U3=F.extend({name:"RoadVehicle",components:{BaseIcon:de}});var Z3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"40","view-box":"-25 -35 170 170"}},"BaseIcon",e.$attrs,!1),[r("g",[r("path",{attrs:{d:"M 26.921875 47.117188 C 26.921875 47.691406 26.25 48.078125 25.480469 48.078125 C 24.710938 48.078125 24.039062 48.460938 24.039062 48.847656 C 24.039062 49.230469 22.691406 50.382812 21.058594 51.347656 C 19.328125 52.308594 17.210938 53.941406 16.25 54.902344 C 15 56.152344 13.078125 56.730469 10.191406 56.730469 C 4.039062 56.730469 2.882812 57.402344 2.882812 60.960938 C 2.882812 62.691406 2.5 64.421875 2.019531 65 C 1.539062 65.480469 1.441406 67.597656 1.828125 69.710938 C 2.5 73.847656 4.039062 74.710938 10.867188 74.902344 C 14.230469 75 14.421875 74.808594 14.421875 72.019531 C 14.421875 68.558594 18.941406 63.460938 22.019531 63.460938 C 27.210938 63.460938 31.730469 68.078125 31.730469 73.558594 L 31.730469 75.960938 L 83.652344 75.960938 L 83.652344 72.5 C 83.652344 70 84.421875 68.367188 86.441406 66.25 C 89.617188 63.171875 92.019531 62.789062 96.058594 64.902344 C 99.132812 66.441406 100 68.078125 100 72.210938 C 100 74.617188 100.382812 75 102.691406 75 C 106.058594 75 109.617188 71.441406 109.617188 68.171875 C 109.617188 65.289062 103.847656 58.652344 101.347656 58.558594 C 100.289062 58.558594 98.652344 58.367188 97.597656 58.171875 C 96.539062 57.980469 92.882812 57.597656 89.421875 57.210938 C 83.558594 56.632812 80.289062 55.382812 65.960938 48.558594 C 61.632812 46.441406 60.191406 46.25 44.132812 46.25 C 33.847656 46.25 26.921875 46.632812 26.921875 47.117188 Z M 47.5 51.058594 C 48.652344 56.921875 49.039062 56.730469 37.019531 56.730469 C 24.519531 56.730469 23.652344 56.058594 29.328125 51.058594 C 32.5 48.269531 33.269531 48.078125 39.808594 48.078125 L 46.921875 48.078125 Z M 66.058594 50.671875 C 75.289062 54.710938 74.039062 56.152344 61.25 56.539062 C 52.882812 56.730469 50.960938 56.539062 50.960938 55.480469 C 50.960938 54.710938 50.671875 52.691406 50.382812 51.058594 L 49.808594 48.078125 L 54.902344 48.078125 C 58.460938 48.078125 61.921875 48.847656 66.058594 50.671875 Z M 66.058594 50.671875 "}}),r("path",{attrs:{d:"M 17.402344 67.882812 C 14.710938 71.347656 14.902344 73.652344 18.078125 76.921875 C 21.347656 80.191406 25 79.902344 27.882812 76.152344 C 30.382812 73.078125 30.289062 69.808594 27.691406 67.308594 C 24.617188 64.519531 19.902344 64.710938 17.402344 67.882812 Z M 17.402344 67.882812 "}}),r("path",{attrs:{d:"M 87.308594 67.019531 C 83.847656 71.152344 84.230469 75.867188 88.171875 77.980469 C 95.191406 81.730469 102.691406 72.882812 97.117188 67.308594 C 94.710938 64.902344 89.328125 64.710938 87.308594 67.019531 Z M 87.308594 67.019531 "}})])])},Y3=[],X3=H(U3,Z3,Y3,!1,null,null,null,null);const V3=X3.exports,Q3=F.extend({name:"Roller",components:{BaseIcon:de}});var K3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({staticStyle:{"margin-right":"5px"},attrs:{small:!0,"view-box":"0 0 47.527 47.527",width:"20"}},"BaseIcon",e.$attrs,!1),[r("g",[r("path",{attrs:{d:`M44.998,25.451h2.529v-9.987h-3.273v-2.282h-8.437v2.282h-3.246l-5.972-6.283H14.551v6.283H0v9.986h2.722
80
+ c0.276,0,0.5,0.224,0.5,0.5V336h-7.247C310.169,331.481,306.868,327.425,303,323.989z M335,336v-65h17v65H335z`}})])])},z3=[],B3=H(P3,O3,z3,!1,null,null,null,null);const I3=B3.exports,F3=F.extend({name:"MiniModel",components:{BaseIcon:de}});var A3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._g(e._b({attrs:{small:!0,width:"25",height:"25",viewBox:"0 0 25 25"}},"BaseIcon",e.$attrs,!1),e.$listeners),[r("path",{staticStyle:{stroke:"none","fill-rule":"nonzero","fill-opacity":"1"},attrs:{d:"M 11.152344 2.546875 C 10.527344 2.90625 9.164062 3.691406 8.117188 4.296875 C 7.066406 4.902344 6.203125 5.40625 6.203125 5.421875 C 6.203125 5.433594 7.621094 6.265625 9.355469 7.265625 L 12.503906 9.085938 L 15.648438 7.265625 C 17.382812 6.265625 18.789062 5.425781 18.785156 5.40625 C 18.78125 5.382812 17.414062 4.59375 15.746094 3.652344 C 13.25 2.234375 12.6875 1.933594 12.5 1.917969 C 12.289062 1.898438 12.222656 1.929688 11.152344 2.546875 Z M 11.152344 2.546875 "}}),r("path",{staticStyle:{stroke:"none","fill-rule":"nonzero","fill-opacity":"1"},attrs:{d:"M 5.421875 10.164062 C 5.421875 13.5 5.425781 13.65625 5.515625 13.859375 C 5.578125 13.988281 5.679688 14.101562 5.796875 14.175781 C 5.894531 14.234375 7.273438 15.035156 8.863281 15.945312 L 11.742188 17.613281 L 11.757812 14 C 11.761719 12.007812 11.753906 10.367188 11.734375 10.347656 C 11.710938 10.320312 10.375 9.546875 8.765625 8.617188 C 7.152344 7.6875 5.742188 6.871094 5.628906 6.804688 L 5.421875 6.683594 Z M 5.421875 10.164062 "}}),r("path",{staticStyle:{stroke:"none","fill-rule":"nonzero","fill-opacity":"1"},attrs:{d:"M 16.429688 8.5 C 14.710938 9.496094 13.289062 10.328125 13.265625 10.347656 C 13.246094 10.367188 13.238281 12.011719 13.242188 14.003906 L 13.257812 17.621094 L 16.257812 15.890625 C 17.910156 14.9375 19.3125 14.105469 19.375 14.054688 C 19.433594 13.992188 19.507812 13.867188 19.535156 13.773438 C 19.566406 13.65625 19.578125 12.402344 19.570312 10.140625 L 19.554688 6.6875 Z M 16.429688 8.5 "}}),r("path",{staticStyle:{stroke:"none","fill-rule":"nonzero","fill-opacity":"1"},attrs:{d:"M 3.316406 11.734375 C 1.203125 12.792969 0 14.242188 0 15.746094 C 0 16.945312 0.804688 18.183594 2.195312 19.136719 C 3.078125 19.734375 4.359375 20.328125 5.59375 20.695312 C 6.1875 20.867188 6.207031 20.878906 6.1875 20.996094 C 6.175781 21.0625 6.101562 21.414062 6.03125 21.777344 L 5.890625 22.441406 L 5.996094 22.660156 C 6.117188 22.914062 6.390625 23.09375 6.644531 23.09375 C 6.742188 23.089844 7.640625 22.757812 8.742188 22.320312 C 10.8125 21.488281 10.945312 21.414062 11.015625 21.070312 C 11.089844 20.664062 11.085938 20.65625 9.515625 19.054688 C 8.710938 18.226562 7.976562 17.515625 7.894531 17.46875 C 7.808594 17.425781 7.675781 17.386719 7.597656 17.382812 C 7.386719 17.382812 7.066406 17.554688 6.96875 17.726562 C 6.917969 17.804688 6.804688 18.210938 6.714844 18.632812 C 6.617188 19.058594 6.53125 19.414062 6.519531 19.421875 C 6.453125 19.488281 4.730469 18.859375 4.066406 18.53125 C 2.8125 17.910156 2.046875 17.269531 1.675781 16.523438 C 1.503906 16.171875 1.488281 16.109375 1.492188 15.746094 C 1.492188 15.414062 1.519531 15.304688 1.640625 15.039062 C 1.9375 14.410156 2.597656 13.789062 3.539062 13.261719 L 3.953125 13.027344 L 3.953125 12.226562 C 3.953125 11.789062 3.949219 11.425781 3.941406 11.425781 C 3.9375 11.425781 3.652344 11.5625 3.316406 11.734375 Z M 3.316406 11.734375 "}}),r("path",{staticStyle:{stroke:"none","fill-rule":"nonzero","fill-opacity":"1"},attrs:{d:"M 21.046875 12.230469 L 21.046875 13.039062 L 21.253906 13.140625 C 22.226562 13.632812 23.054688 14.390625 23.378906 15.074219 C 23.558594 15.460938 23.5625 16.054688 23.390625 16.449219 C 22.648438 18.128906 19.300781 19.585938 15.148438 20.042969 C 14.710938 20.085938 14.445312 20.140625 14.339844 20.199219 C 13.890625 20.464844 13.882812 21.15625 14.320312 21.429688 C 14.535156 21.5625 14.804688 21.5625 15.789062 21.4375 C 18.628906 21.074219 21.15625 20.25 22.851562 19.132812 C 23.378906 18.785156 24.15625 18.042969 24.433594 17.613281 C 25.320312 16.246094 25.148438 14.648438 23.96875 13.355469 C 23.457031 12.796875 22.613281 12.191406 21.710938 11.734375 C 21.476562 11.617188 21.226562 11.5 21.164062 11.476562 L 21.046875 11.425781 Z M 21.046875 12.230469 "}})])},R3=[],H3=H(F3,A3,R3,!1,null,null,null,null);const N3=H3.exports,j3=F.extend({name:"OtherTrucks"});var G3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("span",{staticClass:"px-3 py-1",style:{color:e.$attrs.color}},[e._v("?")])},q3=[],W3=H(j3,G3,q3,!1,null,null,null,null);const ns=W3.exports,U3=F.extend({name:"RoadVehicle",components:{BaseIcon:de}});var Z3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"40","view-box":"-25 -35 170 170"}},"BaseIcon",e.$attrs,!1),[r("g",[r("path",{attrs:{d:"M 26.921875 47.117188 C 26.921875 47.691406 26.25 48.078125 25.480469 48.078125 C 24.710938 48.078125 24.039062 48.460938 24.039062 48.847656 C 24.039062 49.230469 22.691406 50.382812 21.058594 51.347656 C 19.328125 52.308594 17.210938 53.941406 16.25 54.902344 C 15 56.152344 13.078125 56.730469 10.191406 56.730469 C 4.039062 56.730469 2.882812 57.402344 2.882812 60.960938 C 2.882812 62.691406 2.5 64.421875 2.019531 65 C 1.539062 65.480469 1.441406 67.597656 1.828125 69.710938 C 2.5 73.847656 4.039062 74.710938 10.867188 74.902344 C 14.230469 75 14.421875 74.808594 14.421875 72.019531 C 14.421875 68.558594 18.941406 63.460938 22.019531 63.460938 C 27.210938 63.460938 31.730469 68.078125 31.730469 73.558594 L 31.730469 75.960938 L 83.652344 75.960938 L 83.652344 72.5 C 83.652344 70 84.421875 68.367188 86.441406 66.25 C 89.617188 63.171875 92.019531 62.789062 96.058594 64.902344 C 99.132812 66.441406 100 68.078125 100 72.210938 C 100 74.617188 100.382812 75 102.691406 75 C 106.058594 75 109.617188 71.441406 109.617188 68.171875 C 109.617188 65.289062 103.847656 58.652344 101.347656 58.558594 C 100.289062 58.558594 98.652344 58.367188 97.597656 58.171875 C 96.539062 57.980469 92.882812 57.597656 89.421875 57.210938 C 83.558594 56.632812 80.289062 55.382812 65.960938 48.558594 C 61.632812 46.441406 60.191406 46.25 44.132812 46.25 C 33.847656 46.25 26.921875 46.632812 26.921875 47.117188 Z M 47.5 51.058594 C 48.652344 56.921875 49.039062 56.730469 37.019531 56.730469 C 24.519531 56.730469 23.652344 56.058594 29.328125 51.058594 C 32.5 48.269531 33.269531 48.078125 39.808594 48.078125 L 46.921875 48.078125 Z M 66.058594 50.671875 C 75.289062 54.710938 74.039062 56.152344 61.25 56.539062 C 52.882812 56.730469 50.960938 56.539062 50.960938 55.480469 C 50.960938 54.710938 50.671875 52.691406 50.382812 51.058594 L 49.808594 48.078125 L 54.902344 48.078125 C 58.460938 48.078125 61.921875 48.847656 66.058594 50.671875 Z M 66.058594 50.671875 "}}),r("path",{attrs:{d:"M 17.402344 67.882812 C 14.710938 71.347656 14.902344 73.652344 18.078125 76.921875 C 21.347656 80.191406 25 79.902344 27.882812 76.152344 C 30.382812 73.078125 30.289062 69.808594 27.691406 67.308594 C 24.617188 64.519531 19.902344 64.710938 17.402344 67.882812 Z M 17.402344 67.882812 "}}),r("path",{attrs:{d:"M 87.308594 67.019531 C 83.847656 71.152344 84.230469 75.867188 88.171875 77.980469 C 95.191406 81.730469 102.691406 72.882812 97.117188 67.308594 C 94.710938 64.902344 89.328125 64.710938 87.308594 67.019531 Z M 87.308594 67.019531 "}})])])},Y3=[],X3=H(U3,Z3,Y3,!1,null,null,null,null);const V3=X3.exports,Q3=F.extend({name:"Roller",components:{BaseIcon:de}});var K3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({staticStyle:{"margin-right":"5px"},attrs:{small:!0,"view-box":"0 0 47.527 47.527",width:"20"}},"BaseIcon",e.$attrs,!1),[r("g",[r("path",{attrs:{d:`M44.998,25.451h2.529v-9.987h-3.273v-2.282h-8.437v2.282h-3.246l-5.972-6.283H14.551v6.283H0v9.986h2.722
81
81
  c0.293-2.632,2.199-4.759,4.685-5.333v4.098c-0.045,0-0.089,0.005-0.134,0.016c-0.245,0.049-0.442,0.232-0.509,0.475
82
82
  c-0.016,0.057-0.032,0.111-0.048,0.166c-0.046-0.036-0.09-0.071-0.135-0.109c-0.122-0.102-0.272-0.153-0.424-0.153
83
83
  c-0.092,0-0.181,0.021-0.265,0.057c-0.229,0.098-0.385,0.315-0.401,0.566c0,0.004-0.002,0.005-0.002,0.009
@@ -233,18 +233,18 @@ m367 -176 c192 -56 348 -207 420 -405 34 -93 34 -285 0 -378 -72 -198 -228
233
233
  510 154 506 4 -4 72 -236 152 -517z m361 -1029 c13 -13 27 -35 30 -48 27 -116
234
234
  285 -1327 285 -1339 0 -25 -152 -89 -316 -134 -139 -38 -243 -55 -414 -65
235
235
  -174 -10 -311 -1 -476 31 -186 35 -454 134 -454 167 0 26 280 1325 292 1355
236
- 23 59 9 57 541 57 l488 0 24 -24z`}})])])},e4=[],t4=H(K6,J6,e4,!1,null,null,null,null);const r4=t4.exports,n4=F.extend({name:"ZohoCrm",components:{BaseIcon:de},props:{color:{type:String,default:"grey"}}});var i4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{height:"20",width:"20",viewBox:"16 -9 5 40",small:!0,color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{stroke:e.color,"stroke-width":"1",d:"M26.2 24c-3.2 0-6.2-1.2-8.4-3.5l-6.6-6.6c-.8-.8-1.2-1.8-1.2-2.9s.4-2.1 1.2-2.9C11.9 7.4 12.9 7 14 7c1.1 0 2.1.4 2.9 1.2l6.1 6.1c.7.7 1.9.7 2.6 0 .3-.3.5-.8.5-1.3s-.2-1-.5-1.3L19 5.1c-2-1.9-4.4-2.9-7-2.9-2.7 0-5.1 1-7 2.9-1.8 1.9-2.8 4.4-2.8 7 .1 2.6 1.1 5 2.9 6.8 1.8 1.8 4.3 2.8 6.8 2.8.9 0 1.9-.1 2.8-.4.6-.2 1.2.2 1.4.8.2.6-.2 1.2-.8 1.4-1 .4-2.1.5-3.3.5-3.2 0-6.2-1.2-8.4-3.4C1.3 18.4.1 15.4 0 12.3c0-1.7.3-3.3.9-4.8s1.4-2.8 2.5-3.9 2.4-2 3.8-2.6c1.5-.6 3.1-1 4.7-1 3.2 0 6.2 1.2 8.4 3.5l6.6 6.6c.8.8 1.2 1.8 1.2 2.9s-.4 2.1-1.2 2.9c-1.6 1.6-4.2 1.6-5.7 0l-6.1-6.1c-.7-.7-1.9-.7-2.6 0-.3.3-.5.8-.5 1.3s.2 1 .5 1.3l6.6 6.6c1.8 1.8 4.3 2.8 6.9 2.8s5.1-1 6.9-2.9c1.8-1.8 2.9-4.3 2.9-6.9s-1-5.1-2.9-6.9c-1.8-1.8-4.3-2.9-6.9-2.9-.8 0-1.7.1-2.5.3-.1 0-.2.1-.3.1-.6.2-1.2-.2-1.4-.8-.2-.6.2-1.2.8-1.4.1 0 .3-.1.4-.1 1-.3 2-.4 3-.4 1.6 0 3.2.3 4.7.9 1.4.6 2.7 1.5 3.8 2.6s2 2.4 2.6 3.8c.6 1.5.9 3.1.9 4.7 0 3.2-1.3 6.2-3.5 8.5-2.1 2.4-5.1 3.6-8.3 3.6z"}})])},s4=[],a4=H(n4,i4,s4,!1,null,null,null,null);const o4=a4.exports,l4=F.extend({name:"Tag",components:{BaseIcon:de},props:{color:{type:String,default:"#000"},backgroundColor:{type:String,default:"white"}}});var c4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"24",height:"24",viewBox:"0 0 24 24"}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{fill:e.color,d:"M22,4C22,2.89 21.1,2 20,2H4A2,2 0 0,0 2,4V16A2,2 0 0,0 4,18H18L22,22V4Z"}}),r("line",{attrs:{x1:"6",y1:"7",x2:"18",y2:"7",stroke:e.backgroundColor,"stroke-width":"2"}}),r("line",{attrs:{x1:"6",y1:"10",x2:"18",y2:"10",stroke:e.backgroundColor,"stroke-width":"2"}}),r("line",{attrs:{x1:"6",y1:"13",x2:"18",y2:"13",stroke:e.backgroundColor,"stroke-width":"2"}})])},u4=[],d4=H(l4,c4,u4,!1,null,null,null,null);const h4=d4.exports,f4=F.extend({name:"Tag",components:{BaseIcon:de},props:{color:{type:String,default:"#000"},backgroundColor:{type:String,default:"white"}}});var p4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"24",height:"24",viewBox:"0 0 24 24"}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{fill:e.color,d:"M22,4C22,2.89 21.1,2 20,2H4A2,2 0 0,0 2,4V16A2,2 0 0,0 4,18H18L22,22V4Z"}}),r("line",{attrs:{x1:"12",y1:"6",x2:"12",y2:"14",stroke:e.backgroundColor,"stroke-width":"2"}}),r("line",{attrs:{x1:"8",y1:"10",x2:"16",y2:"10",stroke:e.backgroundColor,"stroke-width":"2"}})])},m4=[],g4=H(f4,p4,m4,!1,null,null,null,null);const v4=g4.exports,_4=F.extend({name:"Nerves",components:{BaseIcon:de},props:{color:{type:String,default:"white"}}});var y4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._g(e._b({attrs:{small:!0,width:"39px",height:"32px",viewBox:"0 0 39 32"}},"BaseIcon",e.$attrs,!1),e.$listeners),[r("g",{attrs:{transform:"translate(-150.000000, -24.000000)",fill:"#FFFFFF","fill-rule":"nonzero"}},[r("g",{attrs:{transform:"translate(150.000000, 24.000000)"}},[r("path",{style:`fill: ${e.color}`,attrs:{d:"M36.8961538,0.0347826087 C37.9157565,0.0347826087 38.7423077,0.875708644 38.7423077,1.91304348 L38.7423077,1.91304348 L38.7423077,30.0947826 C38.7423077,31.1321174 37.9157565,31.9730435 36.8961538,31.9730435 L36.8961538,31.9730435 L29.4846154,31.9730435 L29.4884615,31.9886957 C29.0885173,31.9836286 28.7010575,31.8462773 28.3846154,31.5973913 L28.3846154,31.5973913 L10.4,17.9565217 C9.92639703,17.5948183 9.6506735,17.0250601 9.65756147,16.4226087 L9.65756147,16.4226087 L9.65756147,15.64 C9.65686375,14.933417 10.0458734,14.2861439 10.6644383,13.9648756 C11.2830032,13.6436073 12.0264516,13.7027078 12.5884615,14.1178261 L12.5884615,14.1178261 L29.7038462,26.7373913 C30.0199016,26.968534 30.3992227,27.0930678 30.7884615,27.0934783 L30.7884615,27.0934783 L32.0923077,27.0934783 C32.5822513,27.09452 33.0524229,26.8969669 33.3988661,26.5444986 C33.7453093,26.1920303 33.9394855,25.7136818 33.9384615,25.2152174 L33.9384615,25.2152174 L33.9384615,6.79652174 C33.9394855,6.29805736 33.7453093,5.81970886 33.3988661,5.46724054 C33.0524229,5.11477223 32.5822513,4.91721914 32.0923077,4.91826087 L32.0923077,4.91826087 L30.7153846,4.91826087 C30.225441,4.9193026 29.7552694,4.72174951 29.4088262,4.36928119 C29.062383,4.01681288 28.8682069,3.53846438 28.8692308,3.04 L28.8692308,3.04 L28.8692308,1.91304348 C28.8692308,0.875708644 29.695782,0.0347826087 30.7153846,0.0347826087 L30.7153846,0.0347826087 Z M9.29615385,0.00739130435 C9.69614711,0.0121740752 10.0836931,0.149555936 10.4,0.398695652 L10.4,0.398695652 L28.3846154,14.0434783 C28.8571972,14.4035114 29.1305978,14.972929 29.1192308,15.5734783 L29.1192308,15.5734783 L29.1192308,16.356087 C29.1190118,17.0612911 28.7305478,17.7069474 28.1133582,18.0279227 C27.4961685,18.348898 26.7542665,18.2910992 26.1923077,17.8782609 L26.1923077,17.8782609 L9.08461538,5.27043478 C8.76974759,5.03645424 8.389914,4.91038181 8,4.91043478 L8,4.91043478 L6.68461538,4.91043478 C6.19431782,4.9104337 5.72415756,5.10885839 5.37782578,5.4619474 C5.031494,5.81503642 4.83744009,6.2937853 4.83846154,6.7926087 L4.83846154,6.7926087 L4.83846154,25.1995652 C4.83846154,26.2369001 5.66501277,27.0778261 6.68461538,27.0778261 L6.68461538,27.0778261 L8.07692308,27.0778261 C8.5668667,27.0767844 9.0370383,27.2743374 9.38348152,27.6268058 C9.72992473,27.9792741 9.92410084,28.4576226 9.92307692,28.956087 L9.92307692,28.956087 L9.92307692,30.0869565 C9.92413223,30.588151 9.72784822,31.0688985 9.37806512,31.4218238 C9.02828202,31.774749 8.55413977,31.9704502 8.06153846,31.9653197 L8.06153846,31.9653197 L1.88461538,31.9653197 C0.86501277,31.9653197 0.03844549,31.1242914 0.03844549,30.0869565 L0.03844549,30.0869565 L0.03844549,1.91304348 C0.0364158462,1.41354313 0.230017315,0.933787137 0.576460295,0.579850445 C0.922903275,0.225913753 1.39364925,0.0269521857 1.88461538,0.0269565217 L1.88461538,0.0269565217 L9.29615385,0.0269565217 Z"}})])])])},C4=[],b4=H(_4,y4,C4,!1,null,null,null,null);const x4=b4.exports,w4={Back10:b2,Forward10:g2,Bim:d2,Brightness:k2,Blur:D2,Compare:I2,ConcretePump:N2,CompactExcavator:ts,DroneView:U2,Dumper:Q2,Evercam:r3,EvercamLogo:o3,Excavator:ts,FlatbedSemiTrailer:g3,FreeDrawing:b3,IModel:k3,Inspection:D3,Loader:I3,MiniModel:N3,MarkUp:r4,Nerves:x4,OtherTruck:rs,RoadVehicle:V3,Roller:t6,Robot:a6,SemiTrailer:d6,SkidSteerLoader:g6,SmallTruck:b6,TankTruck:k6,The360:D6,TippingTruck:I6,TruckHead:N6,TruckMixer:U6,Unknown:rs,Worker:Q6,ZohoCrm:o4,Tag:h4,TagPlus:v4},S4=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),ns=Object.fromEntries(Object.entries(w4).map(([t,e])=>[S4(t),e])),T4=F.extend({name:"ESvgIcon",components:{...ns},props:{icon:{type:String,default:""}},computed:{svgIconComponent(){return ns[this.icon]}}});var k4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r(e.svgIconComponent,e._g(e._b({tag:"component",staticClass:"e-svg-icon"},"component",e.$attrs,!1),e.$listeners))},$4=[],E4=H(T4,k4,$4,!1,null,null,null,null);const is=E4.exports,vd="",M4={name:"ECalendarHeatmap",components:{EIcon:We},mixins:[Ue],props:{items:{type:Array,default:()=>[]},startDate:{type:String,default:""},endDate:{type:String,default:""},dayRectSize:{type:Number,default:11},dayGutterSize:{type:Number,default:2},monthGutterSize:{type:Number,default:12},textSize:{type:Number,default:11},borderRadius:{type:Number,default:1},disableMissing:{type:Boolean,default:!1},selectedDate:{type:[String],default:""},labelFn:{type:Function,default:({date:t,count:e})=>`${t}, ${e}`},isDisabledFn:{type:Function,default:()=>!1},highlightColorFn:{type:[Function,null],default:null},colors:{type:Array,default:()=>["#ebedf0","#c0ddf9","#73b3f3","#3886e1","#17459e"]},visibleWeekDays:{type:Array,default:()=>[1,3,5]},controls:{type:Boolean,default:!0},legend:{type:Boolean,default:!0},fullWidth:{type:Boolean,default:!1},isDark:{type:Boolean,default:!1},disabledColor:{type:String,default:"#bababa"}},data(){return{tooltipVisibility:!1,tooltipPositionX:0,tooltipPositionY:0,tooltipContent:"",tooltipItem:"",hoveredDayDate:"",smallTextRatio:.9,daysOffset:0}},computed:{_startDate(){return this._moment(this.startDate).add({days:this.daysOffset}).format("YYYY-MM-DD")},_endDate(){return this._moment(this.endDate).add({days:this.daysOffset}).format("YYYY-MM-DD")},svgWidth(){const t=this._moment(this._endDate).format("YYYY-MM");return this.fullWidth?"calc(100% - 30px)":this.monthsHorizontalTranslations[t]+this.getMonthWidth(this._endDate)},svgHeight(){return this.monthOffsetTop+this.monthHeight+(this.legend?2*this.dayRectSize:0)},maxCount(){return this.items.reduce((t,e)=>Math.max(e.count,t),0)},itemsMap(){return this.items.reduce((t,e)=>({...t,[e.day]:{...e,count:e.count,label:this.labelFn(e),disabled:e.disabled}}),{})},datesTree(){let t={},e=this._moment(this._startDate);const r=new Date(this._endDate).getTime();for(;e<=r;){const n=e.format("YYYY"),i=e.format("MM"),o=e.format("YYYY-MM-DD");let s={...this.itemsMap[o],date:o,selected:o===this.selectedDate};this.itemsMap[o]||(s={...s,count:0,date:o,disabled:this.isDisabledFn(o)},s={...s,label:this.labelFn(s)}),t={...t,[`${n}-${i}`]:{...t[`${n}-${i}`],[o]:{...s,weekDay:e.day(),weekNumber:this.getWeekOfMonth(e)}}},e.add({days:1})}return t},monthsHorizontalTranslations(){const t=this._moment(this._startDate),e=this._moment(this._startDate).startOf("month"),r=this.dayFullSize*(this.getWeekOfMonth(t)-this.getWeekOfMonth(e)),n=this._moment(this._startDate).startOf("month"),i=this._moment(this._endDate).startOf("month"),o=this._moment(n);let s={},c=-r,a;for(;o<=i;){let l=a?this.getMonthWidth(a):0;const d=o.startOf("month").day()===0;let f=0;d&&o>n&&(f=this.monthGutterSize);let m=this.dayFullSize;c+=l+this.monthGutterSize-m+f,s[o.format("YYYY-MM")]=c,a=o.clone(),o.add({months:1})}return s},dayFullSize(){return this.dayRectSize+this.dayGutterSize},monthOffsetTop(){return this.textSize*2},monthOffsetLeft(){return 2.5*this.textSize},monthHeight(){return this.dayFullSize*7},textStyle(){return{fontSize:`${this.textSize}px`}},legendStyle(){const t=this.dayRectSize/2;return{transform:`translate(${t+this.monthOffsetLeft}px, ${this.monthHeight+this.monthOffsetTop+t}px)`}},legendPrefixTextStyle(){return{fontSize:this.textSize*this.smallTextRatio,transform:`translate(${this.dayGutterSize*2}px, ${this.dayRectSize*this.smallTextRatio}px)`,fill:this.fillTextColor}},legendPrefixTextWidth(){return 4*this.textSize*this.smallTextRatio-2*this.dayGutterSize},legendSuffixTextStyle(){const t=(this.dayRectSize+this.dayGutterSize*2)*this.colors.length+this.legendPrefixTextWidth,e=this.dayGutterSize;return{fontSize:this.textSize*this.smallTextRatio,transform:`translate(${e+t}px, ${this.dayRectSize*this.smallTextRatio}px)`,fill:this.fillTextColor}},fillTextColor(){return this.isDark?"white":"black"}},methods:{_moment(...t){return ke(...t).locale("en")},getWeekOfMonth(t){let e=t.week();return t.year()!==t.weekYear()&&(e=t.clone().subtract(1,"week").week()+1),e-this._moment(t).startOf("month").week()+1},getWeekDayTextStyle(t){return this.visibleWeekDays.includes(t)?{...this.textStyle,transform:`translate(${this.dayRectSize}px, ${t*this.dayFullSize+3*this.textSize/4+this.monthOffsetTop}px)`,fill:this.fillTextColor}:{display:"none"}},getMonthTextStyle(t,e){const r=ke.duration(this._moment(this._endDate).diff(this._moment(e))).asDays(),n=ke.duration(this._moment(e).endOf("month").diff(this._moment(this._startDate))).asDays();if(r<15||n<15)return{display:"none"};const i=this.isStartOfYear(e)?this.textSize:0;return{...this.textStyle,transform:`translate(${this.getMonthWidth(e)/2+this.textSize/3-i}px, -${this.textSize*2/3}px)`,fill:this.fillTextColor}},getMonthStyle(t,e){return{transform:`translate(${this.monthsHorizontalTranslations[e]+this.monthOffsetLeft}px, ${this.monthOffsetTop}px)`}},getMonthWidth(t){const e=this._moment(t).endOf("month");return this.dayFullSize*this.getWeekOfMonth(e)},getHighlightStyle(t,e){if(!this.highlightColorFn||typeof this.highlightColorFn!="function")return{};const r=this.highlightColorFn(e);return r?{strokeWidth:t.selected?2:1,stroke:r}:{}},getDayStyle(t,e){let r={};return t.selected&&(r={stroke:this.fillTextColor}),{transform:`translate(${t.weekNumber*this.dayFullSize}px, ${t.weekDay*this.dayFullSize}px)`,fill:`${this.getDayColor(t.count)}`,...this.getHighlightStyle(t,e),...r}},getDisabledDayPath(t){const e=t.weekNumber*this.dayFullSize,r=t.weekDay*this.dayFullSize,n=e+this.dayRectSize,i=r+this.dayRectSize,o=e+this.dayRectSize/2,s=r+this.dayRectSize/2;return[`M ${e} ${r}`,`L ${o} ${s}`,`L ${e} ${i}`,`M ${n} ${r}`,`L ${o} ${s}`,`L ${n} ${i}`].join(" ")},getDayColor(t){const e=Math.ceil(t/this.maxCount*(this.colors.length-1));return this.colors[e]},getLegendRectStyle(t){return{transform:`translateX(${(this.dayRectSize+this.dayGutterSize*2)*t+this.legendPrefixTextWidth}px)`}},isStartOfYear(t){return ke(t).get("month")===0},getMonthText(t){return this._moment(t).format(this.isStartOfYear(t)?"MMM YYYY":"MMM")},onDayRectMouseEnter(t,e){this.tooltipItem=e,this.tooltipContent=e.label,this.tooltipVisibility=!0,this.hoveredDayDate=e.date,this.$nextTick(()=>{this.calculateTooltipPosition(t)})},calculateTooltipPosition(t){var d;const e=this.$el.getBoundingClientRect(),r=((d=t.target)==null?void 0:d.getBoundingClientRect())||{x:0,y:0},n=r.left-e.left,i=r.top-e.top,o=r.bottom-e.top,s=this.$refs.tooltip.clientWidth,c=this.$refs.tooltip.clientHeight;let a=n+r.width/2-s/2;a+e.left<e.left?a=0:a+e.left+s>=e.right&&(a=e.width-s);let l=i-c-this.dayFullSize/2;l+e.top<=e.top&&(l=o+this.dayFullSize/2),this.tooltipPositionX=a,this.tooltipPositionY=l},onDayRectMouseLeave(){this.tooltipVisibility=!1,this.hoveredDayDate=""}}};var L4=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-heatmap-calendar-wrapper"},[r("div",{staticClass:"e-heatmap-calendar overflow-x-hidden",class:{"e-text-white":e.isDark}},[e.controls?r("div",{staticClass:"e-heatmap-calendar__control-left",on:{click:function(n){e.daysOffset-=30}}},[r("EIcon",{attrs:{icon:"angle-left",size:"Xs"}})],1):e._e(),r("svg",{attrs:{width:e.svgWidth,height:e.svgHeight}},[r("g",[r("g",e._l(Array(7),function(n,i){return r("text",{key:i,style:e.getWeekDayTextStyle(i)},[e._v(" "+e._s(e._moment().day(i).format("ddd"))+" ")])}),0),e._l(e.datesTree,function(n,i,o){return r("g",{key:i,staticClass:"e-heatmap-calendar__month",style:e.getMonthStyle(o,i)},[r("text",{style:e.getMonthTextStyle(o,i)},[e._v(" "+e._s(e.getMonthText(i))+" ")]),e._l(n,function(s,c){return r("g",{key:`${c}`,staticClass:"e-heatmap-calendar__day",class:{"e-heatmap-calendar__day--hovered":e.hoveredDayDate===c,"e-heatmap-calendar__day--disabled":s.disabled,"e-heatmap-calendar__day--selected":s.selected}},[r("rect",{style:e.getDayStyle(s,c),attrs:{rx:e.borderRadius,height:e.dayRectSize,width:e.dayRectSize},on:{mouseenter:a=>e.onDayRectMouseEnter(a,s),mouseleave:e.onDayRectMouseLeave,mouseup:function(a){return e.$emit("item-selected",s)}}}),s.disabled?r("path",{style:`stroke: ${e.disabledColor};`,attrs:{d:e.getDisabledDayPath(s)}}):e._e()])})],2)}),e.legend&&!e.$slots.customLegend?r("g",{style:e.legendStyle},[r("text",{style:e.legendPrefixTextStyle},[e._v("less")]),e._l(e.colors,function(n,i){return r("rect",{key:i,style:e.getLegendRectStyle(i),attrs:{height:e.dayRectSize,width:e.dayRectSize,fill:n,rx:e.borderRadius}})}),r("text",{style:e.legendSuffixTextStyle},[e._v("more")])],2):e._e(),r("foreignObject",{attrs:{height:e.svgHeight,width:e.svgWidth,"pointer-events":"none"}},[r("div",{staticClass:"e-heatmap-calendar__custom-legend"},[e._t("customLegend")],2)])],2)])]),r("div",{ref:"tooltip",staticClass:"e-heatmap-calendar__tooltip",class:{"e-heatmap-calendar__tooltip--visible":e.tooltipVisibility},style:{top:e.tooltipPositionY+"px",left:e.tooltipPositionX+"px"}},[e._t("tooltip",function(){return[e._v(" "+e._s(e.tooltipContent)+" ")]},{item:e.tooltipItem})],2),e.controls?r("div",{staticClass:"e-heatmap-calendar__control-right",on:{click:function(n){e.daysOffset+=30}}},[r("EIcon",{attrs:{icon:"angle-right",size:"Sm"}})],1):e._e()])},D4=[],P4=H(M4,L4,D4,!1,null,"c1e4cb0a",null,null);const ss=P4.exports,Rt=F.extend({name:"FormField",props:{value:{type:[String,Number,Boolean,Object,Array],default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},type:{type:String,default:"text"},required:{type:Boolean,default:!1},errors:{type:Array,default:()=>[]}},data(){return{currentValue:this.value}},watch:{value(t){this.currentValue=t},currentValue:{immediate:!0,deep:!0,handler(t){this.$emit("input",t)}}}}),Ht=F.extend({name:"ToggleOpen",data(){return{isOpen:!1,selectId:`select-${Date.now()}${Math.random().toString(36).substr(2,9)}`}},created(){this.$root.$on("select-opened",t=>{t!==this.selectId&&this.isOpen&&(this.isOpen=!1)})},beforeDestroy(){this.$root.$off("select-opened")},methods:{toggleOpen(t){t==null||t.stopPropagation(),this.isOpen||this.$root.$emit("select-opened",this.selectId),this.isOpen=!this.isOpen}}}),wt=F.extend({name:"SelectFormField",mixins:[Rt,Ht],props:{options:{type:Array,required:!0},setInitialValue:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1}},computed:{selectedOption(){return this.multiple?this.options.filter(t=>{var e;if(Array.isArray(this.currentValue)&&((e=this.currentValue)!=null&&e.includes(t.value)))return t}):this.getOptionByValue(this.currentValue)},localLabel(){return this.multiple&&Array.isArray(this.selectedOption)&&this.selectedOption.length>1?this.selectedOption.map(t=>t.label).join(", "):!this.multiple&&this.selectedOption?this.selectedOption.label:null},isAllSelected(){return this.multiple?Array.isArray(this.currentValue)&&this.currentValue.length===this.options.filter(t=>!t.disabled).length&&this.multiple:!1},isAtLeastOneSelected(){return this.multiple?Array.isArray(this.currentValue)&&this.currentValue.length>0:!!this.currentValue},radioItemClasses(){return{"e-opacity-50 e-cursor-not-allowed ":this.disabled,"e-bg-gray-800 e-text-gray-200 e-border-gray-500 ":this.dark,"e-text-gray-700 e-bg-white e-border-gray-300 ":!this.dark,"hover:e-border-gray-300":!this.disabled&&this.dark,"hover:e-border-gray-500":!this.disabled&&!this.dark}},selectedItemClasses(){return["e-bg-[#1976d2]/10",{"e-text-[#61b0ff]":this.dark,"e-text-[#1976d2]":!this.dark}]},isValueProvided(){return this.currentValue!==null&&this.currentValue!==void 0}},watch:{setInitialValue:{immediate:!0,handler(t){!t||this.isValueProvided||(this.currentValue=this.multiple?[this.options[0].value]:this.options[0].value,this.$emit("input",this.currentValue),this.$emit("on-select-option",this.selectedOption))}},multiple(t){t?this.currentValue=[this.options[0].value]:this.currentValue=this.options[0].value,this.$emit("input",this.currentValue),this.$emit("on-select-option",this.selectedOption)}},methods:{isSelected(t){var e;return this.multiple?Array.isArray(this.currentValue)&&this.currentValue.includes(t):this.currentValue===null&&this.setInitialValue?t===((e=this.options[0])==null?void 0:e.value):this.currentValue===t},onItemClick(t){const e=this.getOptionByValue(t);if(!(e!=null&&e.disabled||this.disabled)){if(this.multiple){const r=this.currentValue.indexOf(t);r===-1?this.currentValue.push(t):this.currentValue.splice(r,1),this.$emit("input",this.currentValue),this.$emit("on-select-option",this.selectedOption);return}this.$emit("input",t),this.$emit("on-select-option",e),this.toggleOpen()}},selectAll(){if(!this.multiple||this.disabled)return;const t=this.options.filter(e=>!e.disabled).map(e=>e.value);this.$emit("input",t),this.$emit("on-select-option",this.options.filter(e=>!e.disabled))},deselectAll(){!this.multiple||this.disabled||(this.$emit("input",[]),this.$emit("on-select-option",[]))},toggleSelectAll(){!this.multiple||this.disabled||(Array.isArray(this.currentValue)&&this.currentValue.length===this.options.length?this.deselectAll():this.selectAll())},getOptionByValue(t){var e;return(e=this.options.find(r=>r.value===t))!=null?e:null},containerClasses(t){return[this.isSelected(t.value)?this.selectedItemClasses:this.radioItemClasses,t.disabled||this.disabled?"e-opacity-50 e-cursor-not-allowed":"e-cursor-pointer e-select-none"]}}}),O4=F.extend({name:"EToggleSwitch",mixins:[wt],props:{color:{type:String,default:"brand"},size:{type:String,default:K.Sm},vertical:{type:Boolean,default:!1},dark:{type:Boolean,default:!0}},computed:{sizeClasses(){return{container:{"e-p-0.5":this.size===K.Xs,"e-p-1 e-leading-3":this.size===K.Sm,"e-py-1.5 e-px-1.5":this.size===K.Md,"e-p-2 e-p":this.size===K.Lg},button:{"e-px-1":this.size===K.Xs,"e-py-[.2rem] e-px-2 e-rounded-md":this.size===K.Sm,"e-p-1 e-px-2.5":this.size===K.Md,"e-p-1.5 e-px-3":this.size===K.Lg,"e-opacity-50 e-cursor-not-allowed":this.disabled},text:{"!e-text-[0.6rem]":this.size===K.Xs,"e-text-xs":this.size===K.Sm,"e-text-sm":this.size===K.Md,"e-text-base":this.size===K.Lg}}},wrapperClasses(){return{...this.sizeClasses.container,"e-flex e-items-center e-justify-center e-w-fit e-h-min e-rounded-md e-e-shadow-md e-transition-colors e-duration-200 e-ease-in-out":!0,"e-bg-gray-900":this.dark,"e-bg-gray-200":!this.dark,"e-flex-col":this.vertical,"e-opacity-50 e-cursor-not-allowed":this.disabled}},textClasses(){return{...this.sizeClasses.text,"e-font-medium":!0}}},methods:{getButtonClasses(t){const e={"e-toggle-switch e-border-none e-rounded-md e-transition e-duration-200 e-ease-in-out e-cursor-pointer":!0,"e-text-gray-200":this.dark,"e-bg-gray-900":this.dark&&!this.isSelected(t.value),"e-bg-gray-200":!this.dark&&!this.isSelected(t.value),"e-text-gray-900":!this.dark,"e-bg-brand-600":this.color==="brand"&&this.isSelected(t.value),"e-bg-gray-600":!["primary","brand"].includes(this.color)&&this.isSelected(t.value),"e-bg-[#629efc] e-text-gray-900 e-font-normal":this.color==="primary"&&this.isSelected(t.value),"e-opacity-50 e-cursor-not-allowed":t.disabled,"e-shadow ":this.isSelected(t.value)};return{...this.sizeClasses.button,...e}}}});var z4=function(){var e=this,r=e._self._c;return r("div",{class:e.wrapperClasses},e._l(e.options,function(n){return r("button",{key:n.value,class:e.getButtonClasses(n),on:{click:function(i){return e.onItemClick(n.value)}}},[r("span",{class:e.textClasses},[e._v(e._s(n.label))])])}),0)},B4=[],I4=H(O4,z4,B4,!1,null,null,null,null);const as=I4.exports,F4=F.extend({name:"ERangeSlider",props:{value:{type:Array,default:()=>[0,100]},min:{type:Number,default:0},max:{type:Number,default:100},disabled:{type:Boolean,default:!1},step:{type:Number,default:60},isTime:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!0},dark:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},data(){return{slider:null,sliderRect:{},selectedThumb:null}},computed:{range:{get(){return this.value},set(t){this.$emit("input",t)}},rangeDistance(){return this.max-this.min},showTooltip(){return this.tooltip&&!this.disabled}},mounted(){this.range=this.value},methods:{getLabel(t){return this.isTime?this.minutesToTime(t):t.toString()},getPosition(t){return(t-this.min)/this.rangeDistance*100},getEmptyRangeStyle(t=!1){let e,r;t?(e=this.range[1],r=this.max):(e=this.min,r=this.range[0]);const n=this.disabled?"#c6c6c6":"#8ac5ff",i=this.getPosition(e),o=this.getPosition(r)-i;return{left:`calc(${i}% + 0px)`,width:`calc(${o}% + 0px)`,background:`${n}`}},getRangeStyle(t){const e=this.disabled?"#c6c6c6":"#3b82f6",r=this.getPosition(t[0]),n=this.getPosition(t[1])-r;return{left:`calc(${r}% + 0px)`,width:`calc(${n}% + 0px)`,background:`${e}`}},onMouseMove(t){var e;if((e=this.selectedThumb)!=null&&e.hasPointerCapture(t.pointerId)){if(this.slider=this.$refs.slider,this.sliderRect=this.slider.getBoundingClientRect(),!this.sliderRect)return;const n=(t.clientX-this.sliderRect.left)/this.sliderRect.width,i=Math.round(n*this.rangeDistance+this.min),o=this.roundToStep(i);if(this.selectedThumb.id==="input-min-thumb"){if(o>this.range[1]){this.range=[this.range[1],this.range[1]];return}if(o<=this.min){this.range=[this.min,this.range[1]];return}this.range=[o,this.range[1]]}if(this.selectedThumb.id==="input-max-thumb"){if(o<this.range[0]){this.range=[this.range[0],this.range[0]];return}if(o>=this.max){this.range=[this.range[0],this.max];return}this.range=[this.range[0],o]}}},onMouseDown(t){var e,r;(e=t.target)!=null&&e.matches(".e-range-slider__thumb, .e-range-slider__tooltip")&&(this.selectedThumb=t.target.closest(".e-range-slider__thumb"),t instanceof PointerEvent&&((r=this.selectedThumb)==null||r.setPointerCapture(t.pointerId)))},onMouseUp(t){var e;this.selectedThumb&&(t instanceof PointerEvent&&((e=this.selectedThumb)==null||e.releasePointerCapture(t.pointerId)),this.selectedThumb=null)},roundToStep(t){let e=Math.round(t/this.step),r=this.step*e,n=t*this.step>0?this.step*(e+1):this.step*(e-1);return Math.abs(t-r)<Math.abs(t-n)?r:n},minutesToTime(t){const e=Math.floor(t/60).toString().padStart(2,"0"),r=(t%60).toString().padStart(2,"0");return`${e}:${r}`}}});var A4=function(){var e=this,r=e._self._c;return r("div",{ref:"slider",staticClass:"e-range-slider",on:{pointerdown:function(n){return n.preventDefault(),e.onMouseDown.apply(null,arguments)},pointerup:function(n){return n.preventDefault(),e.onMouseUp.apply(null,arguments)},pointermove:function(n){return n.preventDefault(),e.onMouseMove.apply(null,arguments)},touchstart:function(n){return n.preventDefault(),e.onMouseDown.apply(null,arguments)},touchend:function(n){return n.preventDefault(),e.onMouseUp.apply(null,arguments)}}},[r("div",{staticClass:"e-range-slider__wrapper"},[r("input",{staticClass:"e-range-slider__input",attrs:{id:"input-min",tabindex:"-1"},domProps:{value:e.range[0]}}),r("input",{staticClass:"e-range-slider__input",attrs:{id:"input-max",tabindex:"-1"},domProps:{value:e.range[1]}}),r("div",{staticClass:"e-range-slider__track"},[r("div",{staticClass:"e-range-slider__bg",style:e.getEmptyRangeStyle()}),r("div",{staticClass:"e-range-slider__bg",style:e.getRangeStyle(e.range)}),r("div",{staticClass:"e-range-slider__bg",style:e.getEmptyRangeStyle(!0)})]),r("div",{staticClass:"e-absolute e-top-1/2 e-range-slider__container",class:{"e-pointer-events-none":e.disabled||e.readonly,"e-cursor-grabbing":e.selectedThumb&&e.selectedThumb.id==="input-min-thumb","hover:e-cursor-grab":!e.disabled&&!e.readonly&&!e.selectedThumb},style:{left:`${e.getPosition(e.range[0])}%`}},[r("div",{staticClass:"e-range-slider__thumb",class:[e.disabled?"e-bg-[#c6c6c6] e-border-[#c6c6c6]":"e-bg-primary e-border-primary"],attrs:{id:"input-min-thumb"}},[e.showTooltip?r("div",{staticClass:"e-range-slider__tooltip",class:[e.dark?"e-text-gray-900":"e-text-white"]},[e._v(" "+e._s(e.getLabel(e.range[0]))+" ")]):e._e()])]),r("div",{staticClass:"e-absolute e-top-1/2",class:{"e-pointer-events-none":e.disabled||e.readonly,"e-cursor-grabbing":e.selectedThumb&&e.selectedThumb.id==="input-max-thumb","hover:e-cursor-grab":!e.disabled&&!e.readonly&&!e.selectedThumb},style:{left:`${e.getPosition(e.range[1])}%`}},[r("div",{staticClass:"e-range-slider__thumb",class:[e.disabled?"e-bg-[#c6c6c6] e-border-[#c6c6c6]":"e-bg-primary e-border-primary"],attrs:{id:"input-max-thumb"}},[e.showTooltip?r("div",{staticClass:"e-range-slider__tooltip",class:[e.dark?"e-text-gray-900":"e-text-white"]},[e._v(" "+e._s(e.getLabel(e.range[1]))+" ")]):e._e()])])])])},R4=[],H4=H(F4,A4,R4,!1,null,null,null,null);const N4=H4.exports,j4=F.extend({name:"EDivider",props:{dark:{type:Boolean,default:!1}}});var G4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("hr",{staticClass:"e-divider",class:[e.dark?"e-border-white/[.12]":"e-border-black/[.12]"]})},q4=[],W4=H(j4,G4,q4,!1,null,null,null,null);const U4=W4.exports,Z4=F.extend({name:"ESchedulePicker",components:{ERow:qr,ECol:Wr,ERangeSlider:N4,EDivider:U4},props:{scheduleType:{type:String,default:"continuous",required:!0},preloadSchedule:{type:[Object,String],default:()=>({}),required:!1},editMode:{type:Boolean,default:!0},dark:{type:Boolean,default:!1},step:{type:Number,default:15}},data(){return{min:0,max:1439,enabledDays:{monday:!0,tuesday:!0,wednesday:!0,thursday:!0,friday:!0,saturday:!0,sunday:!0},schedule:null,hours:[0,1439]}},computed:{isDisabled(){return!this.editMode&&[vt.Continuous,vt.WorkingHours].includes(this.scheduleType)}},watch:{scheduleType:{immediate:!0,handler(){this.schedule=Qr(Ii[this.scheduleType]),this.initEnabledDays(),this.hours=Object.values(this.schedule)[1]}},schedule:{deep:!0,handler(){this.changeSchedule()}}},mounted(){if(Object.keys(this.preloadSchedule).length){let t=typeof this.preloadSchedule=="string"?JSON.parse(this.preloadSchedule):this.preloadSchedule;Object.keys(this.enabledDays).forEach(e=>{var r;this.enabledDays[e]=((r=t[e])==null?void 0:r.length)>0}),this.schedule=Qr(t),this.hours=this.schedule[Object.keys(this.schedule)[0]][0]}},methods:{removeInterval(t,e){this.schedule[t].splice(e,1),this.changeSchedule()},addInterval(t){this.schedule[t]=[...this.schedule[t],[this.hours[0],this.hours[1]]]},initEnabledDays(){Object.keys(this.enabledDays).forEach(t=>{this.enabledDays[t]=this.scheduleType===vt.WorkingHours?!["saturday","sunday"].includes(t):!0})},toTextSchedule(){return Object.fromEntries(Object.entries(this.schedule).map(([t,e])=>!(e!=null&&e.length)||!this.enabledDays[t]?[t,[]]:[t,e.map(([r,n])=>`${Vr(r)}-${Vr(n)}`)]))},changeSchedule(){this.$emit("input",this.toTextSchedule())},onHoursChange(t){Object.keys(this.schedule).forEach(e=>{this.schedule[e]=this.schedule[e].map(()=>[...t])})}}}),_d="";var Y4=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-m-2 e-w-full"},[r("ERow",{staticClass:"e-w-full"},[r("ECol",{staticClass:"e-caption",class:[e.dark?"e-text-white":"e-text-gray-900"],attrs:{cols:"2"}},[e._v(" Hours ")]),r("ECol",[r("ERangeSlider",{attrs:{max:e.max,min:e.min,readonly:e.isDisabled,step:e.step,dark:e.dark,"is-time":""},on:{input:e.onHoursChange},model:{value:e.hours,callback:function(n){e.hours=n},expression:"hours"}})],1)],1),r("EDivider",{attrs:{dark:e.dark}}),r("ERow",{staticClass:"e-m-0 e-w-full"},[r("ECol",{staticClass:"e-caption",class:[e.dark?"e-text-white":"e-text-gray-900"],attrs:{cols:"12"}},[e._v(" Days ")])],1),e._l(e.schedule,function(n,i){return r("ERow",{key:i,staticClass:"e-w-full"},[r("ECol",{attrs:{cols:"2"}},[r("div",{staticClass:"e-flex e-items-center e-my-0 e-h-full"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.enabledDays[i],expression:"enabledDays[day]"}],staticClass:"e-w-5 e-h-auto",attrs:{type:"checkbox",disabled:e.isDisabled},domProps:{checked:Array.isArray(e.enabledDays[i])?e._i(e.enabledDays[i],null)>-1:e.enabledDays[i]},on:{change:[function(o){var s=e.enabledDays[i],c=o.target,a=!!c.checked;if(Array.isArray(s)){var l=null,d=e._i(s,l);c.checked?d<0&&e.$set(e.enabledDays,i,s.concat([l])):d>-1&&e.$set(e.enabledDays,i,s.slice(0,d).concat(s.slice(d+1)))}else e.$set(e.enabledDays,i,a)},e.changeSchedule]}}),r("label",{staticClass:"e-ml-2",class:[e.dark?"e-text-white":"e-text-gray-900"]},[e._v(" "+e._s(i[0].toUpperCase())+" ")]),r("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:o,attrs:s}){return[r("v-btn",e._g(e._b({attrs:{icon:"",color:"primary",small:"",disabled:e.isDisabled||e.schedule[i].length>4},on:{click:function(c){return e.addInterval(i)}}},"v-btn",s,!1),o),[r("v-icon",[e._v("fa-plus")])],1)]}}],null,!0)},[r("span",[e._v("Add interval")])])],1)]),r("ECol",e._l(e.schedule[i],function(o,s){return r("div",{key:s,staticClass:"d-flex align-center justify-between w-100 gap-2"},[r("ERangeSlider",{class:e.schedule[i].length>1?"range-slider":"",attrs:{max:e.max,min:e.min,disabled:!e.enabledDays[i],readonly:e.isDisabled,step:e.step,dark:e.dark,"is-time":""},on:{input:e.changeSchedule},model:{value:e.schedule[i][s],callback:function(c){e.$set(e.schedule[i],s,c)},expression:"schedule[day][index]"}}),r("v-tooltip",{attrs:{top:""},scopedSlots:e._u([e.schedule[i].length>1?{key:"activator",fn:function({on:c,attrs:a}){return[r("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(l){return e.removeInterval(i,s)}}},"v-btn",a,!1),c),[r("v-icon",{attrs:{color:"red",small:""}},[e._v("fa-trash")])],1)]}}:null],null,!0)},[r("span",[e._v("Remove interval")])])],1)}),0)],1)})],2)},X4=[],V4=H(Z4,Y4,X4,!1,null,"840fc384",null,null);const os=V4.exports,Q4=F.extend({name:"ESchedule",directives:{ResizeObserver:Ve},props:{schedule:{type:Object,default:null}},data(){return{headerHeightPx:48,rowHeightPx:40,segmentsContainerRect:null,editing:null,creating:null,internalDays:[],defaultSchedule:{1:["00:00-23:59"],2:["00:00-23:59"],3:["00:00-23:59"],4:["00:00-23:59"],5:["00:00-23:59"],6:["00:00-23:59"],7:["00:00-23:59"]}}},computed:{isIdle(){return!(this.creating||this.editing)},sortedDays(){return this.internalDays.slice().sort((t,e)=>t.day<e.day?-1:1)},segmentsContainerStyles(){const t=this.$refs.mainContainer;if(!t||!this.segmentsContainerRect)return{};const e=t.getBoundingClientRect();return{width:`${this.segmentsContainerRect.width}px`,height:`${this.segmentsContainerRect.height}px`,top:`${this.segmentsContainerRect.top-e.top}px`,left:`${this.segmentsContainerRect.left-e.left}px`}},pixelsPerHour(){return this.segmentsContainerRect?this.segmentsContainerRect.width/24:0},tickInterval(){const e=this.pixelsPerHour;return e?Math.max(1,Math.ceil(60/e)):1}},watch:{schedule:{immediate:!0,handler(t){var r;const e=(r=Object.entries(t||{}))!=null&&r.length?t:this.defaultSchedule;this.internalDays=Object.entries(e).map(([n,i])=>{const o=parseInt(n,10)-1,s=i.map(c=>{const[a,l]=c.split("-");return{startTime:a,endTime:l}});return{day:o,segments:s}})}},isIdle(t){t&&this.emitChangeEvent()}},methods:{getSegmentLabel(t){const e=t.startTime.replace(":",""),r=t.endTime.replace(":","");return r-e<210||e>=2220&&r-e<=315?`
236
+ 23 59 9 57 541 57 l488 0 24 -24z`}})])])},e4=[],t4=H(K6,J6,e4,!1,null,null,null,null);const r4=t4.exports,n4=F.extend({name:"ZohoCrm",components:{BaseIcon:de},props:{color:{type:String,default:"grey"}}});var i4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{height:"20",width:"20",viewBox:"16 -9 5 40",small:!0,color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{stroke:e.color,"stroke-width":"1",d:"M26.2 24c-3.2 0-6.2-1.2-8.4-3.5l-6.6-6.6c-.8-.8-1.2-1.8-1.2-2.9s.4-2.1 1.2-2.9C11.9 7.4 12.9 7 14 7c1.1 0 2.1.4 2.9 1.2l6.1 6.1c.7.7 1.9.7 2.6 0 .3-.3.5-.8.5-1.3s-.2-1-.5-1.3L19 5.1c-2-1.9-4.4-2.9-7-2.9-2.7 0-5.1 1-7 2.9-1.8 1.9-2.8 4.4-2.8 7 .1 2.6 1.1 5 2.9 6.8 1.8 1.8 4.3 2.8 6.8 2.8.9 0 1.9-.1 2.8-.4.6-.2 1.2.2 1.4.8.2.6-.2 1.2-.8 1.4-1 .4-2.1.5-3.3.5-3.2 0-6.2-1.2-8.4-3.4C1.3 18.4.1 15.4 0 12.3c0-1.7.3-3.3.9-4.8s1.4-2.8 2.5-3.9 2.4-2 3.8-2.6c1.5-.6 3.1-1 4.7-1 3.2 0 6.2 1.2 8.4 3.5l6.6 6.6c.8.8 1.2 1.8 1.2 2.9s-.4 2.1-1.2 2.9c-1.6 1.6-4.2 1.6-5.7 0l-6.1-6.1c-.7-.7-1.9-.7-2.6 0-.3.3-.5.8-.5 1.3s.2 1 .5 1.3l6.6 6.6c1.8 1.8 4.3 2.8 6.9 2.8s5.1-1 6.9-2.9c1.8-1.8 2.9-4.3 2.9-6.9s-1-5.1-2.9-6.9c-1.8-1.8-4.3-2.9-6.9-2.9-.8 0-1.7.1-2.5.3-.1 0-.2.1-.3.1-.6.2-1.2-.2-1.4-.8-.2-.6.2-1.2.8-1.4.1 0 .3-.1.4-.1 1-.3 2-.4 3-.4 1.6 0 3.2.3 4.7.9 1.4.6 2.7 1.5 3.8 2.6s2 2.4 2.6 3.8c.6 1.5.9 3.1.9 4.7 0 3.2-1.3 6.2-3.5 8.5-2.1 2.4-5.1 3.6-8.3 3.6z"}})])},s4=[],a4=H(n4,i4,s4,!1,null,null,null,null);const o4=a4.exports,l4=F.extend({name:"Tag",components:{BaseIcon:de},props:{color:{type:String,default:"#000"},backgroundColor:{type:String,default:"white"}}});var c4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"24",height:"24",viewBox:"0 0 24 24"}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{fill:e.color,d:"M22,4C22,2.89 21.1,2 20,2H4A2,2 0 0,0 2,4V16A2,2 0 0,0 4,18H18L22,22V4Z"}}),r("line",{attrs:{x1:"6",y1:"7",x2:"18",y2:"7",stroke:e.backgroundColor,"stroke-width":"2"}}),r("line",{attrs:{x1:"6",y1:"10",x2:"18",y2:"10",stroke:e.backgroundColor,"stroke-width":"2"}}),r("line",{attrs:{x1:"6",y1:"13",x2:"18",y2:"13",stroke:e.backgroundColor,"stroke-width":"2"}})])},u4=[],d4=H(l4,c4,u4,!1,null,null,null,null);const h4=d4.exports,f4=F.extend({name:"Tag",components:{BaseIcon:de},props:{color:{type:String,default:"#000"},backgroundColor:{type:String,default:"white"}}});var p4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"24",height:"24",viewBox:"0 0 24 24"}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{fill:e.color,d:"M22,4C22,2.89 21.1,2 20,2H4A2,2 0 0,0 2,4V16A2,2 0 0,0 4,18H18L22,22V4Z"}}),r("line",{attrs:{x1:"12",y1:"6",x2:"12",y2:"14",stroke:e.backgroundColor,"stroke-width":"2"}}),r("line",{attrs:{x1:"8",y1:"10",x2:"16",y2:"10",stroke:e.backgroundColor,"stroke-width":"2"}})])},m4=[],g4=H(f4,p4,m4,!1,null,null,null,null);const v4=g4.exports,_4=F.extend({name:"Nerves",components:{BaseIcon:de},props:{color:{type:String,default:"white"}}});var y4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._g(e._b({attrs:{small:!0,width:"39px",height:"32px",viewBox:"0 0 39 32"}},"BaseIcon",e.$attrs,!1),e.$listeners),[r("g",{attrs:{transform:"translate(-150.000000, -24.000000)",fill:"#FFFFFF","fill-rule":"nonzero"}},[r("g",{attrs:{transform:"translate(150.000000, 24.000000)"}},[r("path",{style:`fill: ${e.color}`,attrs:{d:"M36.8961538,0.0347826087 C37.9157565,0.0347826087 38.7423077,0.875708644 38.7423077,1.91304348 L38.7423077,1.91304348 L38.7423077,30.0947826 C38.7423077,31.1321174 37.9157565,31.9730435 36.8961538,31.9730435 L36.8961538,31.9730435 L29.4846154,31.9730435 L29.4884615,31.9886957 C29.0885173,31.9836286 28.7010575,31.8462773 28.3846154,31.5973913 L28.3846154,31.5973913 L10.4,17.9565217 C9.92639703,17.5948183 9.6506735,17.0250601 9.65756147,16.4226087 L9.65756147,16.4226087 L9.65756147,15.64 C9.65686375,14.933417 10.0458734,14.2861439 10.6644383,13.9648756 C11.2830032,13.6436073 12.0264516,13.7027078 12.5884615,14.1178261 L12.5884615,14.1178261 L29.7038462,26.7373913 C30.0199016,26.968534 30.3992227,27.0930678 30.7884615,27.0934783 L30.7884615,27.0934783 L32.0923077,27.0934783 C32.5822513,27.09452 33.0524229,26.8969669 33.3988661,26.5444986 C33.7453093,26.1920303 33.9394855,25.7136818 33.9384615,25.2152174 L33.9384615,25.2152174 L33.9384615,6.79652174 C33.9394855,6.29805736 33.7453093,5.81970886 33.3988661,5.46724054 C33.0524229,5.11477223 32.5822513,4.91721914 32.0923077,4.91826087 L32.0923077,4.91826087 L30.7153846,4.91826087 C30.225441,4.9193026 29.7552694,4.72174951 29.4088262,4.36928119 C29.062383,4.01681288 28.8682069,3.53846438 28.8692308,3.04 L28.8692308,3.04 L28.8692308,1.91304348 C28.8692308,0.875708644 29.695782,0.0347826087 30.7153846,0.0347826087 L30.7153846,0.0347826087 Z M9.29615385,0.00739130435 C9.69614711,0.0121740752 10.0836931,0.149555936 10.4,0.398695652 L10.4,0.398695652 L28.3846154,14.0434783 C28.8571972,14.4035114 29.1305978,14.972929 29.1192308,15.5734783 L29.1192308,15.5734783 L29.1192308,16.356087 C29.1190118,17.0612911 28.7305478,17.7069474 28.1133582,18.0279227 C27.4961685,18.348898 26.7542665,18.2910992 26.1923077,17.8782609 L26.1923077,17.8782609 L9.08461538,5.27043478 C8.76974759,5.03645424 8.389914,4.91038181 8,4.91043478 L8,4.91043478 L6.68461538,4.91043478 C6.19431782,4.9104337 5.72415756,5.10885839 5.37782578,5.4619474 C5.031494,5.81503642 4.83744009,6.2937853 4.83846154,6.7926087 L4.83846154,6.7926087 L4.83846154,25.1995652 C4.83846154,26.2369001 5.66501277,27.0778261 6.68461538,27.0778261 L6.68461538,27.0778261 L8.07692308,27.0778261 C8.5668667,27.0767844 9.0370383,27.2743374 9.38348152,27.6268058 C9.72992473,27.9792741 9.92410084,28.4576226 9.92307692,28.956087 L9.92307692,28.956087 L9.92307692,30.0869565 C9.92413223,30.588151 9.72784822,31.0688985 9.37806512,31.4218238 C9.02828202,31.774749 8.55413977,31.9704502 8.06153846,31.9653197 L8.06153846,31.9653197 L1.88461538,31.9653197 C0.86501277,31.9653197 0.03844549,31.1242914 0.03844549,30.0869565 L0.03844549,30.0869565 L0.03844549,1.91304348 C0.0364158462,1.41354313 0.230017315,0.933787137 0.576460295,0.579850445 C0.922903275,0.225913753 1.39364925,0.0269521857 1.88461538,0.0269565217 L1.88461538,0.0269565217 L9.29615385,0.0269565217 Z"}})])])])},C4=[],b4=H(_4,y4,C4,!1,null,null,null,null);const x4=b4.exports,w4={Back10:b2,Forward10:g2,Bim:d2,Brightness:k2,Blur:D2,Compare:I2,ConcretePump:N2,CompactExcavator:rs,DroneView:U2,Dumper:Q2,Evercam:r3,EvercamLogo:o3,Excavator:rs,FlatbedSemiTrailer:g3,FreeDrawing:b3,IModel:k3,Inspection:D3,Loader:I3,MiniModel:N3,MarkUp:r4,Nerves:x4,OtherTruck:ns,RoadVehicle:V3,Roller:t6,Robot:a6,SemiTrailer:d6,SkidSteerLoader:g6,SmallTruck:b6,TankTruck:k6,The360:D6,TippingTruck:I6,TruckHead:N6,TruckMixer:U6,Unknown:ns,Worker:Q6,ZohoCrm:o4,Tag:h4,TagPlus:v4},S4=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),is=Object.fromEntries(Object.entries(w4).map(([t,e])=>[S4(t),e])),T4=F.extend({name:"ESvgIcon",components:{...is},props:{icon:{type:String,default:""}},computed:{svgIconComponent(){return is[this.icon]}}});var k4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r(e.svgIconComponent,e._g(e._b({tag:"component",staticClass:"e-svg-icon"},"component",e.$attrs,!1),e.$listeners))},$4=[],E4=H(T4,k4,$4,!1,null,null,null,null);const ss=E4.exports,vd="",M4={name:"ECalendarHeatmap",components:{EIcon:We},mixins:[Ue],props:{items:{type:Array,default:()=>[]},startDate:{type:String,default:""},endDate:{type:String,default:""},dayRectSize:{type:Number,default:11},dayGutterSize:{type:Number,default:2},monthGutterSize:{type:Number,default:12},textSize:{type:Number,default:11},borderRadius:{type:Number,default:1},disableMissing:{type:Boolean,default:!1},selectedDate:{type:[String],default:""},labelFn:{type:Function,default:({date:t,count:e})=>`${t}, ${e}`},isDisabledFn:{type:Function,default:()=>!1},highlightColorFn:{type:[Function,null],default:null},colors:{type:Array,default:()=>["#ebedf0","#c0ddf9","#73b3f3","#3886e1","#17459e"]},visibleWeekDays:{type:Array,default:()=>[1,3,5]},controls:{type:Boolean,default:!0},legend:{type:Boolean,default:!0},fullWidth:{type:Boolean,default:!1},isDark:{type:Boolean,default:!1},disabledColor:{type:String,default:"#bababa"}},data(){return{tooltipVisibility:!1,tooltipPositionX:0,tooltipPositionY:0,tooltipContent:"",tooltipItem:"",hoveredDayDate:"",smallTextRatio:.9,daysOffset:0}},computed:{_startDate(){return this._moment(this.startDate).add({days:this.daysOffset}).format("YYYY-MM-DD")},_endDate(){return this._moment(this.endDate).add({days:this.daysOffset}).format("YYYY-MM-DD")},svgWidth(){const t=this._moment(this._endDate).format("YYYY-MM");return this.fullWidth?"calc(100% - 30px)":this.monthsHorizontalTranslations[t]+this.getMonthWidth(this._endDate)},svgHeight(){return this.monthOffsetTop+this.monthHeight+(this.legend?2*this.dayRectSize:0)},maxCount(){return this.items.reduce((t,e)=>Math.max(e.count,t),0)},itemsMap(){return this.items.reduce((t,e)=>({...t,[e.day]:{...e,count:e.count,label:this.labelFn(e),disabled:e.disabled}}),{})},datesTree(){let t={},e=this._moment(this._startDate);const r=new Date(this._endDate).getTime();for(;e<=r;){const n=e.format("YYYY"),i=e.format("MM"),a=e.format("YYYY-MM-DD");let o={...this.itemsMap[a],date:a,selected:a===this.selectedDate};this.itemsMap[a]||(o={...o,count:0,date:a,disabled:this.isDisabledFn(a)},o={...o,label:this.labelFn(o)}),t={...t,[`${n}-${i}`]:{...t[`${n}-${i}`],[a]:{...o,weekDay:e.day(),weekNumber:this.getWeekOfMonth(e)}}},e.add({days:1})}return t},monthsHorizontalTranslations(){const t=this._moment(this._startDate),e=this._moment(this._startDate).startOf("month"),r=this.dayFullSize*(this.getWeekOfMonth(t)-this.getWeekOfMonth(e)),n=this._moment(this._startDate).startOf("month"),i=this._moment(this._endDate).startOf("month"),a=this._moment(n);let o={},c=-r,s;for(;a<=i;){let l=s?this.getMonthWidth(s):0;const d=a.startOf("month").day()===0;let f=0;d&&a>n&&(f=this.monthGutterSize);let m=this.dayFullSize;c+=l+this.monthGutterSize-m+f,o[a.format("YYYY-MM")]=c,s=a.clone(),a.add({months:1})}return o},dayFullSize(){return this.dayRectSize+this.dayGutterSize},monthOffsetTop(){return this.textSize*2},monthOffsetLeft(){return 2.5*this.textSize},monthHeight(){return this.dayFullSize*7},textStyle(){return{fontSize:`${this.textSize}px`}},legendStyle(){const t=this.dayRectSize/2;return{transform:`translate(${t+this.monthOffsetLeft}px, ${this.monthHeight+this.monthOffsetTop+t}px)`}},legendPrefixTextStyle(){return{fontSize:this.textSize*this.smallTextRatio,transform:`translate(${this.dayGutterSize*2}px, ${this.dayRectSize*this.smallTextRatio}px)`,fill:this.fillTextColor}},legendPrefixTextWidth(){return 4*this.textSize*this.smallTextRatio-2*this.dayGutterSize},legendSuffixTextStyle(){const t=(this.dayRectSize+this.dayGutterSize*2)*this.colors.length+this.legendPrefixTextWidth,e=this.dayGutterSize;return{fontSize:this.textSize*this.smallTextRatio,transform:`translate(${e+t}px, ${this.dayRectSize*this.smallTextRatio}px)`,fill:this.fillTextColor}},fillTextColor(){return this.isDark?"white":"black"}},methods:{_moment(...t){return ke(...t).locale("en")},getWeekOfMonth(t){let e=t.week();return t.year()!==t.weekYear()&&(e=t.clone().subtract(1,"week").week()+1),e-this._moment(t).startOf("month").week()+1},getWeekDayTextStyle(t){return this.visibleWeekDays.includes(t)?{...this.textStyle,transform:`translate(${this.dayRectSize}px, ${t*this.dayFullSize+3*this.textSize/4+this.monthOffsetTop}px)`,fill:this.fillTextColor}:{display:"none"}},getMonthTextStyle(t,e){const r=ke.duration(this._moment(this._endDate).diff(this._moment(e))).asDays(),n=ke.duration(this._moment(e).endOf("month").diff(this._moment(this._startDate))).asDays();if(r<15||n<15)return{display:"none"};const i=this.isStartOfYear(e)?this.textSize:0;return{...this.textStyle,transform:`translate(${this.getMonthWidth(e)/2+this.textSize/3-i}px, -${this.textSize*2/3}px)`,fill:this.fillTextColor}},getMonthStyle(t,e){return{transform:`translate(${this.monthsHorizontalTranslations[e]+this.monthOffsetLeft}px, ${this.monthOffsetTop}px)`}},getMonthWidth(t){const e=this._moment(t).endOf("month");return this.dayFullSize*this.getWeekOfMonth(e)},getHighlightStyle(t,e){if(!this.highlightColorFn||typeof this.highlightColorFn!="function")return{};const r=this.highlightColorFn(e);return r?{strokeWidth:t.selected?2:1,stroke:r}:{}},getDayStyle(t,e){let r={};return t.selected&&(r={stroke:this.fillTextColor}),{transform:`translate(${t.weekNumber*this.dayFullSize}px, ${t.weekDay*this.dayFullSize}px)`,fill:`${this.getDayColor(t.count)}`,...this.getHighlightStyle(t,e),...r}},getDisabledDayPath(t){const e=t.weekNumber*this.dayFullSize,r=t.weekDay*this.dayFullSize,n=e+this.dayRectSize,i=r+this.dayRectSize,a=e+this.dayRectSize/2,o=r+this.dayRectSize/2;return[`M ${e} ${r}`,`L ${a} ${o}`,`L ${e} ${i}`,`M ${n} ${r}`,`L ${a} ${o}`,`L ${n} ${i}`].join(" ")},getDayColor(t){const e=Math.ceil(t/this.maxCount*(this.colors.length-1));return this.colors[e]},getLegendRectStyle(t){return{transform:`translateX(${(this.dayRectSize+this.dayGutterSize*2)*t+this.legendPrefixTextWidth}px)`}},isStartOfYear(t){return ke(t).get("month")===0},getMonthText(t){return this._moment(t).format(this.isStartOfYear(t)?"MMM YYYY":"MMM")},onDayRectMouseEnter(t,e){this.tooltipItem=e,this.tooltipContent=e.label,this.tooltipVisibility=!0,this.hoveredDayDate=e.date,this.$nextTick(()=>{this.calculateTooltipPosition(t)})},calculateTooltipPosition(t){var d;const e=this.$el.getBoundingClientRect(),r=((d=t.target)==null?void 0:d.getBoundingClientRect())||{x:0,y:0},n=r.left-e.left,i=r.top-e.top,a=r.bottom-e.top,o=this.$refs.tooltip.clientWidth,c=this.$refs.tooltip.clientHeight;let s=n+r.width/2-o/2;s+e.left<e.left?s=0:s+e.left+o>=e.right&&(s=e.width-o);let l=i-c-this.dayFullSize/2;l+e.top<=e.top&&(l=a+this.dayFullSize/2),this.tooltipPositionX=s,this.tooltipPositionY=l},onDayRectMouseLeave(){this.tooltipVisibility=!1,this.hoveredDayDate=""}}};var L4=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-heatmap-calendar-wrapper"},[r("div",{staticClass:"e-heatmap-calendar overflow-x-hidden",class:{"e-text-white":e.isDark}},[e.controls?r("div",{staticClass:"e-heatmap-calendar__control-left",on:{click:function(n){e.daysOffset-=30}}},[r("EIcon",{attrs:{icon:"angle-left",size:"Xs"}})],1):e._e(),r("svg",{attrs:{width:e.svgWidth,height:e.svgHeight}},[r("g",[r("g",e._l(Array(7),function(n,i){return r("text",{key:i,style:e.getWeekDayTextStyle(i)},[e._v(" "+e._s(e._moment().day(i).format("ddd"))+" ")])}),0),e._l(e.datesTree,function(n,i,a){return r("g",{key:i,staticClass:"e-heatmap-calendar__month",style:e.getMonthStyle(a,i)},[r("text",{style:e.getMonthTextStyle(a,i)},[e._v(" "+e._s(e.getMonthText(i))+" ")]),e._l(n,function(o,c){return r("g",{key:`${c}`,staticClass:"e-heatmap-calendar__day",class:{"e-heatmap-calendar__day--hovered":e.hoveredDayDate===c,"e-heatmap-calendar__day--disabled":o.disabled,"e-heatmap-calendar__day--selected":o.selected}},[r("rect",{style:e.getDayStyle(o,c),attrs:{rx:e.borderRadius,height:e.dayRectSize,width:e.dayRectSize},on:{mouseenter:s=>e.onDayRectMouseEnter(s,o),mouseleave:e.onDayRectMouseLeave,mouseup:function(s){return e.$emit("item-selected",o)}}}),o.disabled?r("path",{style:`stroke: ${e.disabledColor};`,attrs:{d:e.getDisabledDayPath(o)}}):e._e()])})],2)}),e.legend&&!e.$slots.customLegend?r("g",{style:e.legendStyle},[r("text",{style:e.legendPrefixTextStyle},[e._v("less")]),e._l(e.colors,function(n,i){return r("rect",{key:i,style:e.getLegendRectStyle(i),attrs:{height:e.dayRectSize,width:e.dayRectSize,fill:n,rx:e.borderRadius}})}),r("text",{style:e.legendSuffixTextStyle},[e._v("more")])],2):e._e(),r("foreignObject",{attrs:{height:e.svgHeight,width:e.svgWidth,"pointer-events":"none"}},[r("div",{staticClass:"e-heatmap-calendar__custom-legend"},[e._t("customLegend")],2)])],2)])]),r("div",{ref:"tooltip",staticClass:"e-heatmap-calendar__tooltip",class:{"e-heatmap-calendar__tooltip--visible":e.tooltipVisibility},style:{top:e.tooltipPositionY+"px",left:e.tooltipPositionX+"px"}},[e._t("tooltip",function(){return[e._v(" "+e._s(e.tooltipContent)+" ")]},{item:e.tooltipItem})],2),e.controls?r("div",{staticClass:"e-heatmap-calendar__control-right",on:{click:function(n){e.daysOffset+=30}}},[r("EIcon",{attrs:{icon:"angle-right",size:"Sm"}})],1):e._e()])},D4=[],P4=H(M4,L4,D4,!1,null,"c1e4cb0a",null,null);const as=P4.exports,Rt=F.extend({name:"FormField",props:{value:{type:[String,Number,Boolean,Object,Array],default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},type:{type:String,default:"text"},required:{type:Boolean,default:!1},errors:{type:Array,default:()=>[]}},data(){return{currentValue:this.value}},watch:{value(t){this.currentValue=t},currentValue:{immediate:!0,deep:!0,handler(t){this.$emit("input",t)}}}}),Ht=F.extend({name:"ToggleOpen",data(){return{isOpen:!1,selectId:`select-${Date.now()}${Math.random().toString(36).substr(2,9)}`}},created(){this.$root.$on("select-opened",t=>{t!==this.selectId&&this.isOpen&&(this.isOpen=!1)})},beforeDestroy(){this.$root.$off("select-opened")},methods:{toggleOpen(t){t==null||t.stopPropagation(),this.isOpen||this.$root.$emit("select-opened",this.selectId),this.isOpen=!this.isOpen}}}),wt=F.extend({name:"SelectFormField",mixins:[Rt,Ht],props:{options:{type:Array,required:!0},setInitialValue:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1}},computed:{selectedOption(){return this.multiple?this.options.filter(t=>{var e;if(Array.isArray(this.currentValue)&&((e=this.currentValue)!=null&&e.includes(t.value)))return t}):this.getOptionByValue(this.currentValue)},localLabel(){return this.multiple&&Array.isArray(this.selectedOption)&&this.selectedOption.length>1?this.selectedOption.map(t=>t.label).join(", "):!this.multiple&&this.selectedOption?this.selectedOption.label:null},isAllSelected(){return this.multiple?Array.isArray(this.currentValue)&&this.currentValue.length===this.options.filter(t=>!t.disabled).length&&this.multiple:!1},isAtLeastOneSelected(){return this.multiple?Array.isArray(this.currentValue)&&this.currentValue.length>0:!!this.currentValue},radioItemClasses(){return{"e-opacity-50 e-cursor-not-allowed ":this.disabled,"e-bg-gray-800 e-text-gray-200 e-border-gray-500 ":this.dark,"e-text-gray-700 e-bg-white e-border-gray-300 ":!this.dark,"hover:e-border-gray-300":!this.disabled&&this.dark,"hover:e-border-gray-500":!this.disabled&&!this.dark}},selectedItemClasses(){return["e-bg-[#1976d2]/10",{"e-text-[#61b0ff]":this.dark,"e-text-[#1976d2]":!this.dark}]},isValueProvided(){return this.currentValue!==null&&this.currentValue!==void 0}},watch:{setInitialValue:{immediate:!0,handler(t){!t||this.isValueProvided||(this.currentValue=this.multiple?[this.options[0].value]:this.options[0].value,this.$emit("input",this.currentValue),this.$emit("on-select-option",this.selectedOption))}},multiple(t){t?this.currentValue=[this.options[0].value]:this.currentValue=this.options[0].value,this.$emit("input",this.currentValue),this.$emit("on-select-option",this.selectedOption)}},methods:{isSelected(t){var e;return this.multiple?Array.isArray(this.currentValue)&&this.currentValue.includes(t):this.currentValue===null&&this.setInitialValue?t===((e=this.options[0])==null?void 0:e.value):this.currentValue===t},onItemClick(t){const e=this.getOptionByValue(t);if(!(e!=null&&e.disabled||this.disabled)){if(this.multiple){const r=this.currentValue.indexOf(t);r===-1?this.currentValue.push(t):this.currentValue.splice(r,1),this.$emit("input",this.currentValue),this.$emit("on-select-option",this.selectedOption);return}this.$emit("input",t),this.$emit("on-select-option",e),this.toggleOpen()}},selectAll(){if(!this.multiple||this.disabled)return;const t=this.options.filter(e=>!e.disabled).map(e=>e.value);this.$emit("input",t),this.$emit("on-select-option",this.options.filter(e=>!e.disabled))},deselectAll(){!this.multiple||this.disabled||(this.$emit("input",[]),this.$emit("on-select-option",[]))},toggleSelectAll(){!this.multiple||this.disabled||(Array.isArray(this.currentValue)&&this.currentValue.length===this.options.length?this.deselectAll():this.selectAll())},getOptionByValue(t){var e;return(e=this.options.find(r=>r.value===t))!=null?e:null},containerClasses(t){return[this.isSelected(t.value)?this.selectedItemClasses:this.radioItemClasses,t.disabled||this.disabled?"e-opacity-50 e-cursor-not-allowed":"e-cursor-pointer e-select-none"]}}}),O4=F.extend({name:"EToggleSwitch",mixins:[wt],props:{color:{type:String,default:"brand"},size:{type:String,default:K.Sm},vertical:{type:Boolean,default:!1},dark:{type:Boolean,default:!0}},computed:{sizeClasses(){return{container:{"e-p-0.5":this.size===K.Xs,"e-p-1 e-leading-3":this.size===K.Sm,"e-py-1.5 e-px-1.5":this.size===K.Md,"e-p-2 e-p":this.size===K.Lg},button:{"e-px-1":this.size===K.Xs,"e-py-[.2rem] e-px-2 e-rounded-md":this.size===K.Sm,"e-p-1 e-px-2.5":this.size===K.Md,"e-p-1.5 e-px-3":this.size===K.Lg,"e-opacity-50 e-cursor-not-allowed":this.disabled},text:{"!e-text-[0.6rem]":this.size===K.Xs,"e-text-xs":this.size===K.Sm,"e-text-sm":this.size===K.Md,"e-text-base":this.size===K.Lg}}},wrapperClasses(){return{...this.sizeClasses.container,"e-flex e-items-center e-justify-center e-w-fit e-h-min e-rounded-md e-e-shadow-md e-transition-colors e-duration-200 e-ease-in-out":!0,"e-bg-gray-900":this.dark,"e-bg-gray-200":!this.dark,"e-flex-col":this.vertical,"e-opacity-50 e-cursor-not-allowed":this.disabled}},textClasses(){return{...this.sizeClasses.text,"e-font-medium":!0}}},methods:{getButtonClasses(t){const e={"e-toggle-switch e-border-none e-rounded-md e-transition e-duration-200 e-ease-in-out e-cursor-pointer":!0,"e-text-gray-200":this.dark,"e-bg-gray-900":this.dark&&!this.isSelected(t.value),"e-bg-gray-200":!this.dark&&!this.isSelected(t.value),"e-text-gray-900":!this.dark,"e-bg-brand-600":this.color==="brand"&&this.isSelected(t.value),"e-bg-gray-600":!["primary","brand"].includes(this.color)&&this.isSelected(t.value),"e-bg-[#629efc] e-text-gray-900 e-font-normal":this.color==="primary"&&this.isSelected(t.value),"e-opacity-50 e-cursor-not-allowed":t.disabled,"e-shadow ":this.isSelected(t.value)};return{...this.sizeClasses.button,...e}}}});var z4=function(){var e=this,r=e._self._c;return r("div",{class:e.wrapperClasses},e._l(e.options,function(n){return r("button",{key:n.value,class:e.getButtonClasses(n),on:{click:function(i){return e.onItemClick(n.value)}}},[r("span",{class:e.textClasses},[e._v(e._s(n.label))])])}),0)},B4=[],I4=H(O4,z4,B4,!1,null,null,null,null);const os=I4.exports,F4=F.extend({name:"ERangeSlider",props:{value:{type:Array,default:()=>[0,100]},min:{type:Number,default:0},max:{type:Number,default:100},disabled:{type:Boolean,default:!1},step:{type:Number,default:60},isTime:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!0},dark:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},data(){return{slider:null,sliderRect:{},selectedThumb:null}},computed:{range:{get(){return this.value},set(t){this.$emit("input",t)}},rangeDistance(){return this.max-this.min},showTooltip(){return this.tooltip&&!this.disabled}},mounted(){this.range=this.value},methods:{getLabel(t){return this.isTime?this.minutesToTime(t):t.toString()},getPosition(t){return(t-this.min)/this.rangeDistance*100},getEmptyRangeStyle(t=!1){let e,r;t?(e=this.range[1],r=this.max):(e=this.min,r=this.range[0]);const n=this.disabled?"#c6c6c6":"#8ac5ff",i=this.getPosition(e),a=this.getPosition(r)-i;return{left:`calc(${i}% + 0px)`,width:`calc(${a}% + 0px)`,background:`${n}`}},getRangeStyle(t){const e=this.disabled?"#c6c6c6":"#3b82f6",r=this.getPosition(t[0]),n=this.getPosition(t[1])-r;return{left:`calc(${r}% + 0px)`,width:`calc(${n}% + 0px)`,background:`${e}`}},onMouseMove(t){var e;if((e=this.selectedThumb)!=null&&e.hasPointerCapture(t.pointerId)){if(this.slider=this.$refs.slider,this.sliderRect=this.slider.getBoundingClientRect(),!this.sliderRect)return;const n=(t.clientX-this.sliderRect.left)/this.sliderRect.width,i=Math.round(n*this.rangeDistance+this.min),a=this.roundToStep(i);if(this.selectedThumb.id==="input-min-thumb"){if(a>this.range[1]){this.range=[this.range[1],this.range[1]];return}if(a<=this.min){this.range=[this.min,this.range[1]];return}this.range=[a,this.range[1]]}if(this.selectedThumb.id==="input-max-thumb"){if(a<this.range[0]){this.range=[this.range[0],this.range[0]];return}if(a>=this.max){this.range=[this.range[0],this.max];return}this.range=[this.range[0],a]}}},onMouseDown(t){var e,r;(e=t.target)!=null&&e.matches(".e-range-slider__thumb, .e-range-slider__tooltip")&&(this.selectedThumb=t.target.closest(".e-range-slider__thumb"),t instanceof PointerEvent&&((r=this.selectedThumb)==null||r.setPointerCapture(t.pointerId)))},onMouseUp(t){var e;this.selectedThumb&&(t instanceof PointerEvent&&((e=this.selectedThumb)==null||e.releasePointerCapture(t.pointerId)),this.selectedThumb=null)},roundToStep(t){let e=Math.round(t/this.step),r=this.step*e,n=t*this.step>0?this.step*(e+1):this.step*(e-1);return Math.abs(t-r)<Math.abs(t-n)?r:n},minutesToTime(t){const e=Math.floor(t/60).toString().padStart(2,"0"),r=(t%60).toString().padStart(2,"0");return`${e}:${r}`}}});var A4=function(){var e=this,r=e._self._c;return r("div",{ref:"slider",staticClass:"e-range-slider",on:{pointerdown:function(n){return n.preventDefault(),e.onMouseDown.apply(null,arguments)},pointerup:function(n){return n.preventDefault(),e.onMouseUp.apply(null,arguments)},pointermove:function(n){return n.preventDefault(),e.onMouseMove.apply(null,arguments)},touchstart:function(n){return n.preventDefault(),e.onMouseDown.apply(null,arguments)},touchend:function(n){return n.preventDefault(),e.onMouseUp.apply(null,arguments)}}},[r("div",{staticClass:"e-range-slider__wrapper"},[r("input",{staticClass:"e-range-slider__input",attrs:{id:"input-min",tabindex:"-1"},domProps:{value:e.range[0]}}),r("input",{staticClass:"e-range-slider__input",attrs:{id:"input-max",tabindex:"-1"},domProps:{value:e.range[1]}}),r("div",{staticClass:"e-range-slider__track"},[r("div",{staticClass:"e-range-slider__bg",style:e.getEmptyRangeStyle()}),r("div",{staticClass:"e-range-slider__bg",style:e.getRangeStyle(e.range)}),r("div",{staticClass:"e-range-slider__bg",style:e.getEmptyRangeStyle(!0)})]),r("div",{staticClass:"e-absolute e-top-1/2 e-range-slider__container",class:{"e-pointer-events-none":e.disabled||e.readonly,"e-cursor-grabbing":e.selectedThumb&&e.selectedThumb.id==="input-min-thumb","hover:e-cursor-grab":!e.disabled&&!e.readonly&&!e.selectedThumb},style:{left:`${e.getPosition(e.range[0])}%`}},[r("div",{staticClass:"e-range-slider__thumb",class:[e.disabled?"e-bg-[#c6c6c6] e-border-[#c6c6c6]":"e-bg-primary e-border-primary"],attrs:{id:"input-min-thumb"}},[e.showTooltip?r("div",{staticClass:"e-range-slider__tooltip",class:[e.dark?"e-text-gray-900":"e-text-white"]},[e._v(" "+e._s(e.getLabel(e.range[0]))+" ")]):e._e()])]),r("div",{staticClass:"e-absolute e-top-1/2",class:{"e-pointer-events-none":e.disabled||e.readonly,"e-cursor-grabbing":e.selectedThumb&&e.selectedThumb.id==="input-max-thumb","hover:e-cursor-grab":!e.disabled&&!e.readonly&&!e.selectedThumb},style:{left:`${e.getPosition(e.range[1])}%`}},[r("div",{staticClass:"e-range-slider__thumb",class:[e.disabled?"e-bg-[#c6c6c6] e-border-[#c6c6c6]":"e-bg-primary e-border-primary"],attrs:{id:"input-max-thumb"}},[e.showTooltip?r("div",{staticClass:"e-range-slider__tooltip",class:[e.dark?"e-text-gray-900":"e-text-white"]},[e._v(" "+e._s(e.getLabel(e.range[1]))+" ")]):e._e()])])])])},R4=[],H4=H(F4,A4,R4,!1,null,null,null,null);const N4=H4.exports,j4=F.extend({name:"EDivider",props:{dark:{type:Boolean,default:!1}}});var G4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("hr",{staticClass:"e-divider",class:[e.dark?"e-border-white/[.12]":"e-border-black/[.12]"]})},q4=[],W4=H(j4,G4,q4,!1,null,null,null,null);const U4=W4.exports,Z4=F.extend({name:"ESchedulePicker",components:{ERow:qr,ECol:Wr,ERangeSlider:N4,EDivider:U4},props:{scheduleType:{type:String,default:"continuous",required:!0},preloadSchedule:{type:[Object,String],default:()=>({}),required:!1},editMode:{type:Boolean,default:!0},dark:{type:Boolean,default:!1},step:{type:Number,default:15}},data(){return{min:0,max:1439,enabledDays:{monday:!0,tuesday:!0,wednesday:!0,thursday:!0,friday:!0,saturday:!0,sunday:!0},schedule:null,hours:[0,1439]}},computed:{isDisabled(){return!this.editMode&&[vt.Continuous,vt.WorkingHours].includes(this.scheduleType)}},watch:{scheduleType:{immediate:!0,handler(){this.schedule=Qr(Ii[this.scheduleType]),this.initEnabledDays(),this.hours=Object.values(this.schedule)[1]}},schedule:{deep:!0,handler(){this.changeSchedule()}}},mounted(){if(Object.keys(this.preloadSchedule).length){let t=typeof this.preloadSchedule=="string"?JSON.parse(this.preloadSchedule):this.preloadSchedule;Object.keys(this.enabledDays).forEach(e=>{var r;this.enabledDays[e]=((r=t[e])==null?void 0:r.length)>0}),this.schedule=Qr(t),this.hours=Object.values(this.schedule)[1]}},methods:{initEnabledDays(){Object.keys(this.enabledDays).forEach(t=>{this.enabledDays[t]=this.scheduleType===vt.WorkingHours?!["saturday","sunday"].includes(t):!0})},toTextSchedule(){return Object.fromEntries(Object.entries(this.schedule).map(([t,e])=>{if(!(e!=null&&e.length)||!this.enabledDays[t])return[t,[]];{const r=Vr(e[0]),n=Vr(e[1]);return[t,[`${r}-${n}`]]}}))},changeSchedule(){this.$emit("input",this.toTextSchedule())},onHoursChange(t){this.schedule=Object.entries(this.schedule).reduce((e,[r])=>({...e,[r]:t}),{})}}});var Y4=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-m-2 e-w-full"},[r("ERow",{staticClass:"e-w-full"},[r("ECol",{staticClass:"e-caption",class:[e.dark?"e-text-white":"e-text-gray-900"],attrs:{cols:"2"}},[e._v(" Hours ")]),r("ECol",[r("ERangeSlider",{attrs:{max:e.max,min:e.min,readonly:e.isDisabled,step:e.step,dark:e.dark,"is-time":""},on:{input:e.onHoursChange},model:{value:e.hours,callback:function(n){e.hours=n},expression:"hours"}})],1)],1),r("EDivider",{attrs:{dark:e.dark}}),r("ERow",{staticClass:"e-m-0 e-w-full"},[r("ECol",{staticClass:"e-caption",class:[e.dark?"e-text-white":"e-text-gray-900"],attrs:{cols:"12"}},[e._v(" Days ")])],1),e._l(e.schedule,function(n,i){return r("ERow",{key:i,staticClass:"e-w-full"},[r("ECol",{attrs:{cols:"2"}},[r("div",{staticClass:"e-flex e-items-center e-my-0 e-h-full"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.enabledDays[i],expression:"enabledDays[day]"}],staticClass:"e-w-5 e-h-auto",attrs:{type:"checkbox",disabled:e.isDisabled},domProps:{checked:Array.isArray(e.enabledDays[i])?e._i(e.enabledDays[i],null)>-1:e.enabledDays[i]},on:{change:[function(a){var o=e.enabledDays[i],c=a.target,s=!!c.checked;if(Array.isArray(o)){var l=null,d=e._i(o,l);c.checked?d<0&&e.$set(e.enabledDays,i,o.concat([l])):d>-1&&e.$set(e.enabledDays,i,o.slice(0,d).concat(o.slice(d+1)))}else e.$set(e.enabledDays,i,s)},e.changeSchedule]}}),r("label",{staticClass:"e-ml-2",class:[e.dark?"e-text-white":"e-text-gray-900"]},[e._v(" "+e._s(i[0].toUpperCase())+" ")])])]),r("ECol",[r("ERangeSlider",{attrs:{max:e.max,min:e.min,disabled:!e.enabledDays[i],readonly:e.isDisabled,step:e.step,dark:e.dark,"is-time":""},on:{input:e.changeSchedule},model:{value:e.schedule[i],callback:function(a){e.$set(e.schedule,i,a)},expression:"schedule[day]"}})],1)],1)})],2)},X4=[],V4=H(Z4,Y4,X4,!1,null,null,null,null);const ls=V4.exports,Q4=F.extend({name:"ESchedule",directives:{ResizeObserver:Ve},props:{schedule:{type:Object,default:null}},data(){return{headerHeightPx:48,rowHeightPx:40,segmentsContainerRect:null,editing:null,creating:null,internalDays:[],defaultSchedule:{1:["00:00-23:59"],2:["00:00-23:59"],3:["00:00-23:59"],4:["00:00-23:59"],5:["00:00-23:59"],6:["00:00-23:59"],7:["00:00-23:59"]}}},computed:{isIdle(){return!(this.creating||this.editing)},sortedDays(){return this.internalDays.slice().sort((t,e)=>t.day<e.day?-1:1)},segmentsContainerStyles(){const t=this.$refs.mainContainer;if(!t||!this.segmentsContainerRect)return{};const e=t.getBoundingClientRect();return{width:`${this.segmentsContainerRect.width}px`,height:`${this.segmentsContainerRect.height}px`,top:`${this.segmentsContainerRect.top-e.top}px`,left:`${this.segmentsContainerRect.left-e.left}px`}},pixelsPerHour(){return this.segmentsContainerRect?this.segmentsContainerRect.width/24:0},tickInterval(){const e=this.pixelsPerHour;return e?Math.max(1,Math.ceil(60/e)):1}},watch:{schedule:{immediate:!0,handler(t){var r;const e=(r=Object.entries(t||{}))!=null&&r.length?t:this.defaultSchedule;this.internalDays=Object.entries(e).map(([n,i])=>{const a=parseInt(n,10)-1,o=i.map(c=>{const[s,l]=c.split("-");return{startTime:s,endTime:l}});return{day:a,segments:o}})}},isIdle(t){t&&this.emitChangeEvent()}},methods:{getSegmentLabel(t){const e=t.startTime.replace(":",""),r=t.endTime.replace(":","");return r-e<210||e>=2220&&r-e<=315?`
237
237
  <div style="line-height:0.6;display: flex; flex-direction: column; align-items: center;">
238
238
  <div>${t.startTime}</div>
239
239
  <div>-</div>
240
240
  <div>${t.endTime}</div>
241
241
  </div>
242
- `:`${t.startTime} - ${t.endTime}`},normalizeTime(t){return t==="24:00"?"23:59":t},getFormattedSchedule(){const t={};return this.internalDays.forEach(e=>{const r=(e.day+1).toString();t[r]=e.segments.map(n=>{const i=this.normalizeTime(n.startTime),o=this.normalizeTime(n.endTime);return`${i}-${o}`})}),t},formatDay(t){return new Intl.DateTimeFormat("en-US",{weekday:"short"}).format(new Date(0,0,t+1))},formatHour(t){return(t-1).toString().padStart(2,"0")+"h"},parseTime(t){const[e,r]=t.split(":").map(n=>parseInt(n,10));return{hours:e,minutes:r}},padTime(t){let e=Math.round(t*60);e<0&&(e=0),e>24*60&&(e=24*60);const r=Math.floor(e/60),n=e%60;return`${r.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`},roundToFive(t){const e=t*60,r=Math.round(e/5)*5;return Math.max(0,Math.min(r,24*60))/60},calculateBarStyle(t,e,r){const{hours:n,minutes:i}=this.parseTime(e),{hours:o,minutes:s}=this.parseTime(r),c=n+i/60,l=o+s/60-c,d=c/24*100,f=l/24*100,m=t*this.rowHeightPx,b=this.rowHeightPx;return{position:"absolute",top:`${m}px`,left:`calc(${d}% + 1px)`,width:`calc(${f}% - 2px)`,height:`${b-1}px`}},onResize(){const t=this.$refs.table,e=Array.from(t.querySelectorAll(".segment-cell"));if(!t||!e.length)return;const r=e[0].getBoundingClientRect();this.rowHeightPx=r.height;const n=e[e.length-1].getBoundingClientRect();this.segmentsContainerRect={top:r.top,left:r.left,width:n.right-r.left,height:n.bottom-r.top}},onSegmentMouseDown(t,e,r){if(t.preventDefault(),t.stopPropagation(),!this.segmentsContainerRect)return;const i=t.currentTarget.getBoundingClientRect(),o=t.clientX-i.left,s=6;let c="move";o<s?c="resize-left":o>i.width-s&&(c="resize-right");const a=this.sortedDays[e].segments[r],{hours:l,minutes:d}=this.parseTime(a.startTime),{hours:f,minutes:m}=this.parseTime(a.endTime),b=l+d/60,x=f+m/60;this.editing={dayIndex:e,segmentIndex:r,type:c,startMouseX:t.clientX,origStartFrac:b,origEndFrac:x},document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp)},onMouseMove(t){if(!this.editing||!this.segmentsContainerRect)return;t.preventDefault();const{dayIndex:e,segmentIndex:r,type:n,startMouseX:i,origStartFrac:o,origEndFrac:s}=this.editing,a=(t.clientX-i)/this.pixelsPerHour;let l=o,d=s;n==="move"?(l=o+a,d=s+a):n==="resize-left"?l=o+a:n==="resize-right"&&(d=s+a),n==="resize-left"&&d-l<1&&(l=d-1),n==="resize-right"&&d-l<1&&(d=l+1),l=this.roundToFive(Math.max(0,Math.min(l,24))),d=this.roundToFive(Math.max(0,Math.min(d,24)));const f=this.sortedDays[e].day;this.internalDays=this.internalDays.map(m=>{if(m.day!==f)return m;const b=m.segments.map((x,h)=>h!==r?x:{startTime:this.padTime(l),endTime:this.padTime(d)});return{...m,segments:b}})},onMouseUp(){document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),this.editing=null,this.mergeOverlappingSegments()},onSegmentMouseMove(t){const e=t.currentTarget,r=e.getBoundingClientRect(),n=t.clientX-r.left,i=6;n<i||n>r.width-i?e.style.cursor="ew-resize":e.style.cursor="grab"},onSegmentMouseLeave(t){const e=t.currentTarget;e.style.cursor="default"},deleteSegment(t,e){const r=this.sortedDays[t].day;this.internalDays=this.internalDays.map(n=>{if(n.day!==r)return n;const i=n.segments.filter((o,s)=>s!==e);return{...n,segments:i}}),this.emitChangeEvent()},onBackgroundMouseDown(t){if(t.target.closest(".segment"))return;const n=this.$refs.table.querySelectorAll(".segment-cell"),i=n[0].getBoundingClientRect(),o=n[n.length-1].getBoundingClientRect();this.segmentsContainerRect={top:i.top,left:i.left,width:o.right-i.left,height:o.bottom-i.top},t.preventDefault();const s=t.clientY-this.segmentsContainerRect.top,c=Math.floor(s/this.rowHeightPx);if(c<0||c>=this.sortedDays.length)return;let a=(t.clientX-this.segmentsContainerRect.left)/this.pixelsPerHour;a=Math.max(0,Math.min(a,24)),this.creating={startDayIndex:c,currentDayIndex:c,startFrac:a,currentFrac:a},document.addEventListener("mousemove",this.onCreateMouseMove),document.addEventListener("mouseup",this.onCreateMouseUp)},onCreateMouseMove(t){if(!this.creating||!this.segmentsContainerRect)return;t.preventDefault();let e=(t.clientX-this.segmentsContainerRect.left)/this.pixelsPerHour;e=Math.max(0,Math.min(e,24)),this.creating.currentFrac=e;const r=t.clientY-this.segmentsContainerRect.top;let n=Math.floor(r/this.rowHeightPx);n=Math.max(0,Math.min(n,this.sortedDays.length-1)),this.creating.currentDayIndex=n},onCreateMouseUp(){if(!this.creating)return;const{startDayIndex:t,currentDayIndex:e,startFrac:r,currentFrac:n}=this.creating;let i=Math.min(r,n),o=Math.max(r,n);if(o-i<1){this.cleanupCreate();return}const s=this.roundToFive(i),c=this.roundToFive(o),a=Math.min(t,e),l=Math.max(t,e),f=this.sortedDays.map(m=>m.day).slice(a,l+1);this.internalDays=this.internalDays.map(m=>f.includes(m.day)?{...m,segments:[...m.segments,{startTime:this.padTime(s),endTime:this.padTime(c)}]}:m),this.cleanupCreate(),this.mergeOverlappingSegments()},cleanupCreate(){document.removeEventListener("mousemove",this.onCreateMouseMove),document.removeEventListener("mouseup",this.onCreateMouseUp),this.creating=null},calculateMultiDayStyle(t,e,r,n){const i=Math.min(r,n)/24*100,o=(Math.max(r,n)-Math.min(r,n))/24*100,s=Math.min(t,e),c=Math.max(t,e),a=s*this.rowHeightPx,l=(c-s+1)*this.rowHeightPx;return{position:"absolute",top:`${a+1}px`,left:`calc(${i}% + 1px)`,width:`calc(${o}% - 2px)`,height:`${l-2}px`}},mergeOverlappingSegments(){this.internalDays=this.internalDays.map(t=>{const e=t.segments.map(i=>{const{hours:o,minutes:s}=this.parseTime(i.startTime),{hours:c,minutes:a}=this.parseTime(i.endTime);return{start:o+s/60,end:c+a/60}});e.sort((i,o)=>i.start-o.start);const r=[];for(const i of e)if(!r.length)r.push({...i});else{const o=r[r.length-1];i.start<=o.end+1e-6?o.end=Math.max(o.end,i.end):r.push({...i})}const n=r.map(i=>({startTime:this.padTime(this.roundToFive(i.start)),endTime:this.padTime(this.roundToFive(i.end))}));return{day:t.day,segments:n}})},showHour(t){return(t-1)%this.tickInterval===0||t===24},emitChangeEvent(){this.mergeOverlappingSegments(),this.$emit("change",this.getFormattedSchedule())}}}),yd="";var K4=function(){var e=this,r=e._self._c;return r("div",{ref:"mainContainer",staticClass:"schedule e-text-grey e-relative"},[r("table",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],ref:"table",staticClass:"e-table-fixed e-w-full e-border-separate e-border-spacing-0 e-relative"},[r("thead",[r("tr",{staticClass:"e-h-8"},[r("th",{staticClass:"e-w-16"}),e._l(24,function(n){return r("th",{key:n,staticClass:"hour-label e-p-1 e-text-center e-h-8"},[e.showHour(n)?r("span",[e._v(e._s(e.formatHour(n)))]):e._e()])})],2)]),r("tbody",e._l(e.sortedDays,function(n,i){return r("tr",{key:n.day,staticClass:"h-8"},[r("th",{staticClass:"e-p-1 e-text-center e-h-8",attrs:{scope:"row"}},[e._v(" "+e._s(e.formatDay(n.day))+" ")]),e._l(24,function(o){return r("td",{key:o,staticClass:"segment-cell border-bottom e-h-8",class:{"border-left":o===1,"border-right":o===24,"border-top":i===0,"rounded-topleft-lg":i===0&&o===1,"rounded-topright-lg":i===0&&o===24,"rounded-bottomleft-lg":i===e.sortedDays.length-1&&o===1,"rounded-bottomright-lg":i===e.sortedDays.length-1&&o===24}})})],2)}),0)]),e.segmentsContainerRect?r("div",{ref:"overlay",staticClass:"e-absolute e-inset-0 e-cursor-crosshair",style:e.segmentsContainerStyles,on:{mousedown:e.onBackgroundMouseDown}},[e._l(e.sortedDays,function(n,i){return r("div",{key:n.day},e._l(n.segments,function(o,s){return r("div",{key:o.startTime+"-"+o.endTime,staticClass:"segment e-rounded e-absolute e-bg-blue-500/80",style:e.calculateBarStyle(i,o.startTime,o.endTime),on:{mousedown:function(c){return c.stopPropagation(),e.onSegmentMouseDown(c,i,s)},mousemove:e.onSegmentMouseMove,mouseleave:e.onSegmentMouseLeave}},[r("button",{staticClass:"delete-btn e-absolute e-top-0 e-right-0 e-m-1 e-p-1",on:{click:function(c){return c.stopPropagation(),e.deleteSegment(i,s)}}},[e._v(" + ")]),r("div",{staticClass:"e-flex e-justify-center e-items-center e-text-xs e-text-white e-h-full e-select-none",domProps:{innerHTML:e._s(e.getSegmentLabel(o))}})])}),0)}),e.creating?r("div",{staticClass:"segment e-rounded e-absolute e-bg-blue-300/50 e-border e-border-blue-400 e-flex e-justify-center e-items-center e-text-xs e-text-white",style:e.calculateMultiDayStyle(e.creating.startDayIndex,e.creating.currentDayIndex,e.creating.startFrac,e.creating.currentFrac)},[e._v(" "+e._s(e.padTime(e.roundToFive(Math.min(e.creating.startFrac,e.creating.currentFrac))))+"  -  "+e._s(e.padTime(e.roundToFive(Math.max(e.creating.startFrac,e.creating.currentFrac))))+" ")]):e._e()],2):e._e()])},J4=[],ec=H(Q4,K4,J4,!1,null,null,null,null);const ls=ec.exports,cs=F.extend({mixins:[Ge,Ue],data(){return{inactivityListeners:[],isInactivityListenerActive:!1}},beforeDestroy(){this.$removeInactivityListeners()},methods:{resetInactivityListenerTimer(t=()=>{},e=0,r=[]){this.isInactivityListenerActive&&(this.$clearTimeouts(),this.setInactivityListenerTimer(t,e,r))},setInactivityListenerTimer(t=()=>{},e=0,r=[]){t&&e&&this.$setTimeout(()=>{t(),r.length>0&&this.setInactivityListenerReminderTimers(t,r)},e*1e3)},setInactivityListenerReminderTimers(t=()=>{},e=[],r=0){const n=e[r];r<e.length?this.$setTimeout(()=>{t(),this.setInactivityListenerReminderTimers(t,e,r+1)},n*1e3):this.isInactivityListenerActive&&this.$removeInactivityListeners()},$registerInactivityListener({callback:t=()=>{},duration:e=0,reminders:r=[]}){this.isInactivityListenerActive=!0,this.resetInactivityListenerTimer(t,e,r);const n=()=>this.resetInactivityListenerTimer(t,e,r);this.$addEventListener("mousemove",n),this.inactivityListeners.push(n)},$removeInactivityListeners(){this.isInactivityListenerActive&&(this.isInactivityListenerActive=!1,this.inactivityListeners.forEach(t=>{this.$removeEventListener("mousemove",t)}),this.$clearTimeouts())}}}),us=Object.freeze(Object.defineProperty({__proto__:null,eventListeners:Ge,formField:Rt,inactivityListener:cs,selectFormField:wt,timeouts:Ue,toggleOpen:Ht},Symbol.toStringTag,{value:"Module"})),tc=F.extend({name:"EPopover",directives:{ClickOutside:tn},mixins:[Ht],props:{dark:{type:Boolean,default:!1},label:{type:String,default:"Click to open"},panelSide:{type:String,default:"center"},panelClasses:{type:[Object,String,Array],default:()=>({})}},computed:{panelThemeClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"right-0 ":this.panelSide==="right","left-0":this.panelSide==="left"}}},methods:{closePopover(){this.isOpen=!1}}}),Cd="";var rc=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",e._b({directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closePopover,expression:"closePopover"}],staticClass:"e-popover__wrapper e-relative e-w-full"},"div",e.$attrs,!1),[e._t("trigger",function(){return[r("div",e._g(e._b({staticClass:"e-popover__trigger-button e-relative e-w-full e-rounded e-py-2 e-leading-5 e-cursor-pointer e-h-[40px] e-flex e-justify-center e-items-center",attrs:{role:"button"},on:{click:e.toggleOpen}},"div",e.$attrs,!1),e.$listeners),[e._t("trigger-button-content",function(){return[r("span",[e._v(" "+e._s(e.label)+" ")])]})],2)]},{toggle:e.toggleOpen,isOpen:e.isOpen}),e.isOpen?r("div",e._b({staticClass:"e-popover__menu-wrapper e-absolute e-bg-gray-800 e-z-[5] e-min-w-[160px] e-w-full e-min-h-12 e-max-h-72 e-overflow-auto e-text-sm e-rounded-md e-scrollbar-thin e-mt-1 e-scrollbar-thumb-rounded-full e-scrollbar-track-rounded-full e-scrollbar-thumb-gray-400 shadow-2xl focus:e-outline-none sm:e-text-sm",class:[e.panelThemeClasses,e.panelClasses]},"div",e.$attrs,!1),[e._t("panel",function(){return[e._t("default")]})],2):e._e()],2)},nc=[],ic=H(tc,rc,nc,!1,null,"59138e1e",null,null);const hn=ic.exports,sc=F.extend({name:"ECheckbox",components:{EIcon:We},props:{checked:{type:Boolean,default:!1}}}),bd="";var ac=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",e._g(e._b({staticClass:"e-select-checkbox e-box-border e-w-4 e-h-4 e-rounded e-flex e-items-center e-justify-center e-align-middle e-border-solid e-border-2",class:{"e-border-gray-500":!e.checked,"e-bg-[#1976d2] e-border-[#1976d2]":e.checked},staticStyle:{"border-radius":"2px"}},"div",e.$attrs,!1),e.$listeners),[e.checked?r("EIcon",{attrs:{icon:"far fa-check",color:"e-text-white",size:"xs"}}):e._e()],1)},oc=[],lc=H(sc,ac,oc,!1,null,"c5642bf0",null,null);const cc=lc.exports,uc=F.extend({name:"ESelect",components:{ECheckbox:cc,EIcon:We,EPopover:hn},directives:{ResizeObserver:Ve},mixins:[wt],props:{dark:{type:Boolean,default:!1},withSelectAll:{type:Boolean,default:!1},customSelectionLabel:{type:String,default:""},name:{type:String,default:"Items"},label:{type:String,default:"Select an option"},withCheckbox:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},searchPlaceholder:{type:String,default:"Type to search..."},withSearchQueryVisible:{type:Boolean,default:!1}},data(){return{searchQuery:"",menuStyle:{}}},computed:{customLabel(){return this.multiple&&Array.isArray(this.value)&&this.value.length===0||!this.multiple&&(this.value===null||this.value===void 0)?this.label:this.multiple&&this.customSelectionLabel.length>0?this.customSelectionLabel:this.localLabel||this.label},filteredOptions(){if(!this.searchQuery)return this.options;const t=this.searchQuery.toLowerCase().trim();return this.options.filter(e=>e.label.toLowerCase().includes(t))},scrollbarClasses(){return{"e-scrollbar-track-gray-800 e-scrollbar-thumb-gray-500":this.dark,"e-scrollbar-track-white e-scrollbar-thumb-gray-400":!this.dark}},showSearchClearButton(){return(this.searchQuery.length>0||this.isAtLeastOneSelected)&&this.searchable&&!this.disabled}},methods:{handleTriggerClick(t,e){this.disabled||(e(t),this.$nextTick(()=>{const r=this.$refs.searchInput;r&&r.focus()}),this.withSearchQueryVisible&&(this.searchQuery=this.getOptionByValue(this.value).label||""))},handleMenuStyle(){const t=this.$refs.ESelectWrapper;this.menuStyle={maxWidth:`${t==null?void 0:t.clientWidth}px`,minWidth:"160px"}},clearSearch(){this.searchQuery="",this.$emit("input",this.multiple?[]:null);const t=this.$refs.searchInput;t&&t.focus()}}}),xd="";var dc=function(){var e=this,r=e._self._c;return r("EPopover",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.handleMenuStyle,expression:"handleMenuStyle"}],attrs:{dark:e.dark},scopedSlots:e._u([{key:"trigger",fn:function({isOpen:n,toggle:i}){return[e._t("activator",function(){return[r("div",{staticClass:"e-select__trigger-button e-relative e-w-full e-rounded e-border e-border-solid e-py-2 e-pl-3 e-leading-5 e-cursor-pointer e-h-[40px] e-flex e-items-center e-bg-gray-900",class:e.radioItemClasses,attrs:{id:`e-select-trigger-${Date.now()}`,"data-test-id":`select-trigger-${Date.now()}`,role:"button"},on:{click:o=>e.handleTriggerClick(o,i)}},[n&&e.searchable?r("div",{staticClass:"e-select__search-input-wrapper e-flex e-items-center e-gap-2 e-w-full e-mr-10"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.searchQuery,expression:"searchQuery"}],ref:"searchInput",staticClass:"e-select__search-input e-w-full e-h-6 e-bg-transparent placeholder:e-text-sm e-text-sm e-outline-none e-border-none",class:{"e-text-white placeholder:e-text-gray-400":e.dark,"e-text-gray-700 placeholder:e-text-gray-500":!e.dark},attrs:{placeholder:e.searchPlaceholder,type:"text"},domProps:{value:e.searchQuery},on:{click:function(o){o.stopPropagation()},input:function(o){o.target.composing||(e.searchQuery=o.target.value)}}})]):[e.multiple&&e.selectedOption.length===0||!e.selectedOption?e._t("label",function(){return[e.customLabel&&!e.searchable?r("span",{staticClass:"e-select-label e-text-sm"},[e._v(e._s(e.customLabel))]):r("span",{staticClass:"e-select-label e-text-sm e-text-gray-400"},[e._v(e._s(e.searchPlaceholder))])]}):e._t("selection",function(){return[r("span",{staticClass:"e-capitalize e-select__trigger-button-text e-truncate"},[e._v(" "+e._s(e.customLabel)+" ")])]})],e.showSearchClearButton?r("button",{staticClass:"e-select__clean-search-button e-flex e-bg-transparent e-z-[2] e-absolute e-right-10 e-cursor-pointer e-border-none e-items-center e-justify-center e-w-5 e-h-5",on:{click:function(o){return o.stopPropagation(),e.clearSearch.apply(null,arguments)}}},[r("EIcon",{attrs:{color:"e-text-gray-400 hover:e-text-[#1976d2]",icon:"far fa-xmark",size:"lg"}})],1):e._e(),e._t("pre-append-icon",function(){return[r("span",{staticClass:"e-select__trigger-button-icon e-absolute e-inset-y-0 e-right-0 e-flex e-items-center e-justify-end e-px-3 e-pr-4 e-bg-transparent e-border-transparent e-text-gray-400"},[r("EIcon",{attrs:{icon:n?"fas fa-sort-up e-mt-2.5":"fas fa-sort-down e-mb-1.5"}})],1)]})],2)]},{attrs:{class:e.radioItemClasses,isOpen:n},on:{click:i}})]}},{key:"panel",fn:function(){return[e.multiple&&e.withSelectAll?r("div",{staticClass:"e-select__menu-check-all-wrapper e-relative e-cursor-pointer e-select-none e-p-2",on:{click:e.toggleSelectAll}},[r("div",{staticClass:"e-select__menu-check-all e-flex e-justify-start e-items-center e-gap-2 e-p-1 e-w-full",class:{"e-text-[#1976d2] ":e.isAllSelected&&!e.dark,"e-text-[#61b0ff]":e.isAllSelected&&e.dark}},[r("ECheckbox",{attrs:{checked:e.isAllSelected}}),r("span",{staticClass:"e-capitalize e-select__menu-check-all-text e-text-sm e-font-medium"},[e._v(" All "+e._s(e.name||"")+" ")])],1)]):e._e(),e.multiple&&e.withSelectAll?r("hr",{staticClass:"e-border-0 e-h-px e-m-0",class:{"e-bg-gray-700":e.dark,"e-bg-gray-200":!e.dark}}):e._e(),e._l(e.filteredOptions,function(n,i){return r("div",{key:i,staticClass:"e-select__menu-item-wrapper e-relative e-select-none e-p-2",class:e.containerClasses(n),attrs:{id:`select-item-${n.value}`,"data-test-id":`select-item-${i}`},on:{click:function(o){return e.onItemClick(n.value)}}},[r("div",{staticClass:"e-select__menu-item e-flex e-justify-start e-items-center e-gap-2 e-p-1 e-w-i"},[e.withCheckbox||e.multiple?r("ECheckbox",{attrs:{checked:e.isSelected(n.value)}}):e._e(),e._t("item",function(){return[r("span",{staticClass:"e-select__menu-item-text e-block e-text-sm e-font-medium"},[e._v(" "+e._s(n.label)+" ")])]},{item:n,isSelected:e.isSelected(n.value)})],2)])}),e.filteredOptions.length===0?r("div",{staticClass:"e-select__no-values-box e-p-4 e-text-center e-text-gray-500"},[e._v(" No results found ")]):e._e()]},proxy:!0}],null,!0)})},hc=[],fc=H(uc,dc,hc,!1,null,null,null,null);const ds=fc.exports,pc=F.extend({name:"EGlobalSearch",components:{EIcon:We},mixins:[Ge],props:{dark:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},timezone:{type:String,default:"Europe/Dublin"},convertedDateFormat:{type:String,default:"YYYY-MM-DDTHH:mm:ss"},currentDateFormat:{type:String,default:"YYYY-MM-DDTHH:mm:ssZ"},isFixedPosition:{type:Boolean,default:!0},isHidden:{type:Boolean,default:!0},deep:{type:Boolean,default:!0}},data(){return{search:"",isSearching:!1}},computed:{inputClasses(){return{"e-bg-gray-900 e-text-white e-ring-gray-700 focus:e-ring-2 focus:e-ring-blue-500 e-placeholder-gray-500":this.dark,"e-bg-white e-text-[#000057] e-ring-gray-300 focus:e-ring-2 hover:e-ring-gray-400 focus:e-ring-blue-500 e-placeholder-gray-400":!this.dark}}},watch:{search(t){t?t.length>=3&&this.$emit("search-results",this.searchObjectsByQuery(this.items,t)):this.$emit("reset")}},mounted(){!this.isHidden&&this.search.length>0?this.isSearching=!0:(this.$addEventListener("keydown",this.onKeyHandler),this.$addEventListener("keyup",this.onKeyHandler))},methods:{onInput(t){this.search=t.target.value},searchObjectsByQuery(t,e){return t.reduce((r,n,i)=>{const o=this.findMatchesInObject(n,e,[]);return o.length>0&&r.push({index:i,matches:o}),r},[])},findMatchesInObject(t,e,r){return Object.entries(t).reduce((n,[i,o])=>{const s=[...r,i],c=this.matchesQuery(o,e)?[{path:s,value:o}]:[];let a=[];this.deep&&Array.isArray(o)&&(a=o.flatMap((d,f)=>this.findMatchesInObject(d,e,[...s,`${f}`])));const l=this.deep&&typeof o=="object"&&o!==null?this.findMatchesInObject(o,e,s):[];return[...n,...c,...a,...l]},[])},matchesQuery(t,e){return`${this.isValidDate(t)?this.formattedTimestamp(t):t}`.toLowerCase().indexOf(e.toLowerCase())!==-1},isValidDate(t){return ke(t,this.currentDateFormat,!0).isValid()},formattedTimestamp(t){return ke.tz(t,this.timezone).format(this.convertedDateFormat)},onKeyHandler(t){const e=t,r=e.ctrlKey&&e.type==="keydown",n=e.shiftKey&&e.type==="keydown",i=["f","F"].includes(e.key)&&e.type==="keydown",o=e.key==="Escape"&&e.type==="keydown";i&&r&&n&&(this.isSearching=!0,this.$nextTick(()=>{const s=this.$refs.searchField;s&&s.focus()})),o&&(this.isSearching=!1,this.search="")}}}),wd="";var mc=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"show",rawName:"v-show",value:!e.isFixedPosition||e.isSearching,expression:"!isFixedPosition || isSearching"}],staticClass:"global-search e-relative",class:{"global-search--fixed e-p-4 e-bg-white e-m-3":e.isFixedPosition}},[r("div",{staticClass:"e-relative"},[r("input",e._g({directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],ref:"searchField",class:["global-search__field e-shadow-sm e-ring-1 e-ring-inset e-relative e-block e-w-full e-h-full disabled:e-cursor-not-allowed disabled:e-opacity-75 focus:e-outline-none e-border-0 e-text-sm e-placeholder-gray-400 e-px-4 e-py-3 e-gap-x-1.5 e-rounded-md",e.inputClasses],attrs:{id:"global-search-input",placeholder:"Search",autocomplete:"off",type:"text"},domProps:{value:e.search},on:{input:function(n){n.target.composing||(e.search=n.target.value)}}},e.$listeners)),r("span",{staticClass:"e-absolute e-inset-y-0 e-end-0 e-flex e-items-center e-justify-center e-pointer-events-none e-px-2.5"},[r("EIcon",{attrs:{icon:"search",size:"Sm"}})],1)])])},gc=[],vc=H(pc,mc,gc,!1,null,null,null,null);const hs=vc.exports,_c=F.extend({name:"ETooltip",props:{text:{type:String,required:!0},position:{type:String,default:Oe.Top},color:{type:String,default:se.Default},dark:{type:Boolean,default:!1}},data:function(){return{isHovered:!1}},computed:{tooltipClasses(){const t=this.position,e=this.color,r={"e-bg-gray-800 e-text-white":!this.dark,"e-bg-slate-300 e-text-slate-800":this.dark};return{"tooltip e-w-max e-text-sm e-text-center e-px-2 e-py-1 e-absolute e-rounded-md e-shadow-md e-opacity-0 group-hover:e-opacity-100 e-transition-opacity e-duration-300":!0,"tooltip-left":t===Oe.Left,"tooltip-right":t===Oe.Right,"tooltip-top":t===Oe.Top,"tooltip-bottom":t===Oe.Bottom,"e-bg-orange-700 e-text-white":e===se.Warning,"e-bg-red-700 e-text-white":e===se.Error,"e-bg-green-900 e-text-white":e===se.Success,"e-bg-blue-700 e-text-white":e===se.Primary,"e-bg-sky-500 e-text-white":e===se.Info,"e-bg-brand-900 e-text-white":e===se.Brand,"e-bg-gray-200 e-text-gray-700":e===se.Gray,...r}},triangleClasses(){const t=this.position,e=this.color;return{"triangle e-absolute e-border-transparent":!0,"triangle-left":t===Oe.Left,"triangle-right":t===Oe.Right,"triangle-top":t===Oe.Top,"triangle-bottom":t===Oe.Bottom,"e-border-b-gray-800":e===se.Default,"e-border-b-orange-700":e===se.Warning,"e-border-b-red-700":e===se.Error,"e-border-b-green-900":e===se.Success,"e-border-b-blue-700":e===se.Primary,"e-border-b-sky-500":e===se.Info,"e-border-b-brand-900":e===se.Brand,"e-border-b-gray-900":e===se.Gray}}},methods:{toggleTooltip(){this.isHovered=!this.isHovered}}}),Sd="";var yc=function(){var e=this,r=e._self._c;return r("div",{staticClass:"tooltip-box e-w-max e-relative e-group",on:{mouseenter:e.toggleTooltip,mouseleave:e.toggleTooltip}},[e._t("default"),e.isHovered?r("div",{class:e.tooltipClasses},[r("span",{class:e.triangleClasses}),e._v(" "+e._s(e.text)+" ")]):e._e()],2)},Cc=[],bc=H(_c,yc,Cc,!1,null,"3ebb5ef2",null,null);const St=bc.exports,xc=F.extend({name:"EActionButton",components:{ETooltip:St,EIcon:We},props:{tooltipText:{type:String,default:null},tooltipColor:{type:String,default:"default"},tooltipPosition:{type:String,default:"top"},buttonClasses:{type:[String,Object,Array],default:null},icon:{type:String,default:null},iconSize:{type:String,default:K.Sm},iconColor:{type:String,default:se.Default},dark:{type:Boolean,default:!0}},computed:{withTooltip(){return!!this.tooltipText},buttonClassesContainsBg(){return this.buttonClasses?typeof this.buttonClasses=="string"&&this.buttonClasses.split("e-bg-").length>1||typeof this.buttonClasses=="object"&&Object.keys(this.buttonClasses).some(t=>t.split("e-bg-").length>1):!1},buttonStyle(){const t=this.dark?"e-bg-gray-900 e-text-white hover:e-bg-gray-700":"e-bg-white text-e-text-gray-900 hover:e-bg-gray-100";return this.buttonClassesContainsBg?this.buttonClasses:[this.buttonClasses,t]}}});var wc=function(){var e=this,r=e._self._c;return e.withTooltip?r("ETooltip",{attrs:{text:e.tooltipText,position:e.tooltipPosition,color:e.tooltipColor,dark:e.dark}},[r("button",e._g(e._b({staticClass:"e-action-button e-w-max e-px-3 e-py-2 e-flex e-border-none e-justify-center e-align-middle e-items-center e-cursor-pointer",class:e.buttonStyle},"button",e.$attrs,!1),e.$listeners),[r("EIcon",{attrs:{icon:e.icon,size:e.iconSize,color:e.iconColor}}),e._t("default")],2)]):r("button",e._g(e._b({staticClass:"e-action-button e-w-max e-px-3 e-py-2 e-flex e-border-none e-justify-center e-align-middle e-items-center e-cursor-pointer",class:e.buttonStyle},"button",e.$attrs,!1),e.$listeners),[r("EIcon",{attrs:{icon:e.icon,size:e.iconSize}}),e._t("default")],2)},Sc=[],Tc=H(xc,wc,Sc,!1,null,null,null,null);const ft=Tc.exports,kc=F.extend({name:"EZoomSlider",components:{EActionButton:ft},props:{dark:{type:Boolean,default:!0}}});var $c=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-zoom-slider e-flex e-flex-col e-p-5"},[r("EActionButton",{attrs:{"tooltip-text":"Zoom in","tooltip-position":"right",icon:"fas fa-plus",dark:e.dark,"icon-size":"Base","button-classes":"action-btn__first-vertical e-border-none e-rounded-none e-rounded-t-md e-shadow-xl","data-test-id":"zoomable-img-zoom-in"},on:{click:function(n){return e.$emit("zoom-in")}}}),r("EActionButton",{attrs:{"tooltip-text":"Zoom out","tooltip-position":"right",icon:"fas fa-minus",dark:e.dark,"icon-size":"Base","button-classes":"action-btn__last-vertical e-border-none e-rounded-none e-rounded-b-md","data-test-id":"zoomable-img-zoom-out"},on:{click:function(n){return e.$emit("zoom-out")}}})],1)},Ec=[],Mc=H(kc,$c,Ec,!1,null,null,null,null);const fn=Mc.exports,Lc=F.extend({name:"EFadeTransition",props:{duration:{type:Number,default:300}},computed:{durationClass(){return{100:"e-duration-100",200:"e-duration-200",300:"e-duration-300",400:"e-duration-400",500:"e-duration-500",600:"e-duration-600",700:"e-duration-700",800:"e-duration-800",900:"e-duration-900",1e3:"e-duration-1000"}[this.duration]}}});var Dc=function(){var e=this,r=e._self._c;return r("transition",{attrs:{"enter-active-class":`e-transition e-ease-out ${e.durationClass}`,"leave-active-class":`e-transition e-ease-in ${e.durationClass}`,"enter-class":"e-opacity-0","enter-to-class":"e-opacity-100","leave-class":"e-opacity-100","leave-to-class":"e-opacity-0"}},[e._t("default")],2)},Pc=[],Oc=H(Lc,Dc,Pc,!1,null,null,null,null);const Nt=Oc.exports,zc=F.extend({name:"EZoomableImg",components:{EZoomSlider:fn,EFadeTransition:Nt},directives:{ResizeObserver:Ve},mixins:[Ue,Ge],props:{src:{type:String,default:""},alt:{type:String,default:""},allowZoom:{type:Boolean,default:!0},imgProps:{type:Object,default:()=>({})},slider:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},hideContentOnBlur:{type:Boolean,default:!0},initialParams:{type:Object,default:()=>({})},embedded:{type:Boolean,default:!1},overlayStyle:{type:Object,default:()=>({})},foregroundStyle:{type:Object,default:()=>({})},pan:{type:Boolean,default:!0},slotTransition:{type:Boolean,default:!0},height:{type:[String,Number],default:void 0},isCalendarActive:{type:Boolean,default:!1},blurBackground:{type:Boolean,default:!1},cover:{type:Boolean,default:!1},isWidget:{type:Boolean,default:!1},isAnnotationActive:{type:Boolean,default:!1},isMobile:{type:Boolean,default:!1},placeholderImage:{type:String,default:""},showMiniature:{type:Boolean,default:!1},miniatureWidth:{type:Number,default:150}},data(){const t={x:0,y:0};return{image:null,frame:null,imageLoaded:!1,zoomLevel:1,previousZoomLevel:1,imageMouse:t,zoomOrigin:t,frameMouse:t,frameMousePanStart:t,frameMousePreviousPan:t,translation:t,isPanning:!1,isPinching:!1,zoomStarted:!1,firstLoad:!0,isSliderActive:!1,imgStyle:{},contentStyle:{},isFocused:!0,forceHideContent:!1,imageAspectRatio:1,frameAspectRatio:1,wrapperExtraStyle:{},preventDefaultScroll:!0,mouseLeft:!1,pointers:{},pinchDistance:0,lastTapTime:0,minZoomLevel:1,maxZoomLevel:20,backgroundSnapshotSrc:null,miniatureOverlayStyle:{}}},computed:{frameStyle(){return this.height?{height:`${this.height}px`}:{}},wrapperStyle(){if(!this.imageLoaded)return{display:"none"};let t,e;return this.isPanning&&!this.isAnnotationActive?(t=this.frameMouse.x-this.frameMousePanStart.x+this.frameMousePreviousPan.x,e=this.frameMouse.y-this.frameMousePanStart.y+this.frameMousePreviousPan.y):(t=this.frameMousePreviousPan.x,e=this.frameMousePreviousPan.y),{transform:Math.abs(t)<.5&&Math.abs(e)<.5?"none":`translate(${t}px,${e}px)`}},imageCenter(){var e;const t=(e=this.image)==null?void 0:e.getBoundingClientRect();return{x:((t==null?void 0:t.width)||0)/2,y:((t==null?void 0:t.height)||0)/2}},sliderModel:{get(){return this.zoomLevel*100},set(t){this.previousZoomLevel=this.zoomLevel,this.zoomLevel=t/100,this.updateImageStyle(),this.savePreviousPan()}},showContent(){return this.hideContentOnBlur?this.forceHideContent?!1:this.isFocused&&this.touches<2:!0},miniatureContainerStyle(){if(!this.image)return{};const t=this.image.naturalWidth/this.image.naturalHeight,e=this.miniatureWidth/t;return{width:`${this.miniatureWidth}px`,height:`${e}px`}},miniatureOverlayComputedStyle(){return{...this.miniatureOverlayStyle,...this.miniatureOverlayBaseStyle}},miniatureOverlayBaseStyle(){return{boxShadow:`0 0 0 ${this.miniatureWidth}px #0006`}},currentState(){var t,e;return{image:this.image,zoomLevel:this.zoomLevel,translation:this.translation,previousZoomLevel:this.previousZoomLevel,imageMouse:this.imageMouse,zoomOrigin:this.zoomOrigin,frameMouse:this.frameMouse,frameMousePanStart:this.frameMousePanStart,frameMousePreviousPan:this.frameMousePreviousPan,isPanning:this.isPanning,zoomStarted:this.zoomStarted,firstLoad:this.firstLoad,isSliderActive:this.isSliderActive,imgStyle:this.imgStyle,contentStyle:this.contentStyle,isFocused:this.isFocused,forceHideContent:this.forceHideContent,imageAspectRatio:this.imageAspectRatio,frameAspectRatio:this.frameAspectRatio,wrapperExtraStyle:this.wrapperExtraStyle,offsetWidth:(t=this.image)==null?void 0:t.offsetWidth,offsetHeight:(e=this.image)==null?void 0:e.offsetHeight}}},watch:{isCalendarActive(){this.$setTimeout(this.onResize,100)},initialParams:{immediate:!0,handler(t){if(typeof t=="object")for(let e in t)this[e]=t[e]}},image:{immediate:!0,deep:!0,handler(){var t;(t=this.image)!=null&&t.offsetWidth&&this.emitChange()}},wrapperStyle(){this.$nextTick(this.updateMiniatureOverlayStyle)},imageStyle(){this.$nextTick(this.updateMiniatureOverlayStyle)}},mounted(){this.$addEventListener("orientationchange",this.handleOrientationChange),this.$root.$on("resize-snapshot-player",()=>{this.$setTimeout(this.setAspectRatio,200)})},methods:{onResize(){this.updateContentStyle(),this.$setTimeout(this.setAspectRatio,500)},handleOrientationChange(){this.$setTimeout(this.setAspectRatio,1e3)},setAspectRatio(){var r,n;this.frame=this.$refs.frame,this.image=this.$refs.image;const t=(r=this.frame)==null?void 0:r.getBoundingClientRect(),e=(n=this.image)==null?void 0:n.getBoundingClientRect();if(this.$setTimeout(this.emitChange,50),!t||this.isMobile&&!this.isWidget&&(!e||(e==null?void 0:e.width)<=1||(e==null?void 0:e.height)<=1)){this.$setTimeout(this.setAspectRatio,50);return}this.frameAspectRatio=t.width/t.height,this.imageAspectRatio=e.width/e.height},updateImageStyle(){this.translation={x:this.zoomOrigin.x*(this.zoomLevel-this.previousZoomLevel)+this.translation.x,y:this.zoomOrigin.y*(this.zoomLevel-this.previousZoomLevel)+this.translation.y},this.imgStyle={...this.imgStyle,transform:`translate(${-this.translation.x}px, ${-this.translation.y}px) scale(${this.zoomLevel})`},this.emitChange()},updateMiniatureOverlayStyle(){if(!this.showMiniature||!this.image||!this.frame||!this.$refs.miniatureImage||this.zoomLevel===1){this.miniatureOverlayStyle={};return}const t=this.image.getBoundingClientRect(),e=this.frame.getBoundingClientRect(),r=(e.left-t.left)/t.width*100,n=(e.top-t.top)/t.height*100,i=e.width/t.width*100,o=e.height/t.height*100;this.miniatureOverlayStyle={left:`${r}%`,top:`${n}%`,width:`${i}%`,height:`${o}%`}},onImageLoaded(t){var n,i;if(this.imageLoaded=!0,this.wrapperExtraStyle={...this.wrapperExtraStyle,alignContent:"flex-start !important"},this.$setTimeout(()=>{this.wrapperExtraStyle={justifyContent:"center",alignContent:"center !important"}}),this.blurBackground&&(this.backgroundSnapshotSrc=this.getSnapshotSrc()),!this.firstLoad)return;this.updateContentStyle(),this.imageMouse=this.imageCenter,this.zoomOrigin=this.imageCenter;const e=(n=this.image)==null?void 0:n.getBoundingClientRect(),r=(i=this.frame)==null?void 0:i.getBoundingClientRect();!e||!r||(this.isMobile&&!this.isWidget?this.setAspectRatio():this.$nextTick(()=>{this.setAspectRatio(),this.firstLoad=!1}),this.updateImageStyle(),this.$emit("load",t))},onError(t){this.$emit("error",t)},onMouseEnter(){this.mouseLeft=!1,this.isFocused=!0},onMouseLeave(){this.isSliderActive||(this.isFocused=!1),this.mouseLeft=!0;const t={which:1,preventDefault:()=>{}};this.onMouseUp(t)},onMouseMove(t){var e;if(!(this.disabled||!this.imageLoaded||this.mouseLeft)&&this.frame){const r=this.frame.getBoundingClientRect(),n=(e=this.image)==null?void 0:e.getBoundingClientRect();this.frameMouse={x:(t==null?void 0:t.clientX)-r.left,y:(t==null?void 0:t.clientY)-r.top},this.imageMouse={x:((t==null?void 0:t.clientX)-(n==null?void 0:n.left))/this.zoomLevel,y:((t==null?void 0:t.clientY)-(n==null?void 0:n.top))/this.zoomLevel},this.zoomStarted&&(this.zoomStarted=!1),this.$nextTick(this.emitChange)}},onMousedown(t){if(!(!this.pan||this.disabled||!this.imageLoaded||(t==null?void 0:t.which)!==1||this.isSliderActive)){if(this.isAnnotationActive){this.frameMousePanStart={x:this.frameMouse.x,y:this.frameMouse.y},this.isPanning=!0,this.$nextTick(this.emitChange);return}t.preventDefault(),this.frameMousePanStart=this.frameMouse,this.isPanning=!0}},onMouseUp(t){if(!(!this.pan||this.disabled||!this.imageLoaded||!this.isPanning||(t==null?void 0:t.which)!==1||this.isSliderActive)){if(this.isAnnotationActive){this.isPanning=!1,this.$nextTick(this.emitChange);return}t.preventDefault(),this.savePreviousPan({x:this.frameMousePreviousPan.x+this.frameMouse.x-this.frameMousePanStart.x,y:this.frameMousePreviousPan.y+this.frameMouse.y-this.frameMousePanStart.y}),this.isPanning=!1,this.isPinching=!1,this.$nextTick(this.emitChange)}},onMouseWheel(t){this.disabled||!this.imageLoaded||!this.allowZoom||(this.zoom(t.deltaY),this.preventDefaultScroll&&t.preventDefault())},updateZoomLevel(t){let e=1;this.isMobile?e=this.zoomLevel*t:t<0?e=this.zoomLevel*1.2:this.zoomLevel>=1.25&&(e=this.zoomLevel*.8),e<this.minZoomLevel?this.zoomLevel=this.minZoomLevel:e>this.maxZoomLevel?this.zoomLevel=this.maxZoomLevel:this.zoomLevel=e},zoom(t){this.isPanning=!1,this.previousZoomLevel=this.zoomLevel,this.updateZoomLevel(t),this.preventDefaultScroll=this.previousZoomLevel!==this.zoomLevel,this.zoomStarted||(this.zoomOrigin=this.imageMouse,this.zoomStarted=!0),this.updateImageStyle(),this.$nextTick(()=>{this.savePreviousPan(),this.emitChange()})},getBounds(){var a,l;const t=(a=this.frame)==null?void 0:a.getBoundingClientRect(),e=(l=this.image)==null?void 0:l.getBoundingClientRect(),r=t.width/this.imageAspectRatio,n=t.height*this.imageAspectRatio;let{top:i,right:o,bottom:s,left:c}=t;return e.width<t.width?(c=t.left+(t.width-n)/2,o=c+n):e.height<t.height&&(i=t.top+(t.height-r)/2,s=i+r),{top:i,right:o,bottom:s,left:c}},savePreviousPan({x:t,y:e}={}){var r;if(this.image){const n=(r=this.image)==null?void 0:r.getBoundingClientRect(),i=this.getBounds(),[o,s,c,a]=[n.right-i.right,i.top-n.top,n.bottom-i.bottom,i.left-n.left].map(l=>l<0?l:0);this.frameMousePreviousPan={x:(t||this.frameMousePreviousPan.x)+a-o,y:(e||this.frameMousePreviousPan.y)+s-c}}},onSliderMouseDown(){var r,n;const t=(r=this.frame)==null?void 0:r.getBoundingClientRect(),e=(n=this.image)==null?void 0:n.getBoundingClientRect();this.zoomOrigin={x:((t==null?void 0:t.left)+(t==null?void 0:t.width)/2-(e==null?void 0:e.left))/this.zoomLevel,y:((t==null?void 0:t.top)+(t==null?void 0:t.height)/2-(e==null?void 0:e.top))/this.zoomLevel},this.isSliderActive=!0},onSliderMouseUp(){this.isSliderActive=!1},updateContentStyle(){var t,e,r;this.contentStyle={maxWidth:`${window.innerWidth-(((r=(e=(t=this.$refs)==null?void 0:t.frame)==null?void 0:e.getBoundingClientRect())==null?void 0:r.left)||0)}px`}},emitChange(){this.$emit("change",this.currentState)},getPointersMidPoint(t,e){return{x:t.clientX+(e.clientX-t.clientX)/2,y:t.clientY+(e.clientY-t.clientY)/2}},getPointersDistance(t,e){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)},updatePointerEvent(t){this.pointers[t.pointerId]=t},clearPointerEvent(t){this.$delete(this.pointers,t.pointerId)},updatePinchZoomOrigin(){const t=Object.values(this.pointers);if(t.length!==2)return;const e=this.getPointersMidPoint(...t);this.zoomOrigin={x:e.x/this.zoomLevel,y:e.y/this.zoomLevel}},updatePinchDistance(){const t=Object.values(this.pointers);t.length===2&&(this.pinchDistance=this.getPointersDistance(...t))},onPointerDown(t){if(!(!this.isMobile||this.foregroundStyle.zIndex==2)){if(this.updatePointerEvent(t),this.isPinching=Object.values(this.pointers).length===2,this.isPinching){this.isPanning=!1,this.updatePinchZoomOrigin(),this.updatePinchDistance();return}this.onMouseMove(t),this.onMousedown(t)}},onPointerMove(t){if(!(!this.isMobile||this.foregroundStyle.zIndex==2)){if(this.updatePointerEvent(t),this.isPinching){const e=this.pinchDistance;this.updatePinchDistance();const r=this.pinchDistance/e;r%1>.008&&this.zoom(r);return}this.onMouseMove(t)}},onPointerUp(t){if(!this.isMobile||this.foregroundStyle.zIndex==2)return;this.clearPointerEvent(t),this.onMouseUp(t);const e=new Date().getTime(),r=e-this.lastTapTime;r>100&&r<200&&this.zoom(this.zoomLevel>1?0:3),this.lastTapTime=e},getSnapshotSrc(){const t=this.$refs.image;return t==null?void 0:t.src}}}),Td="";var Bc=function(){var n;var e=this,r=e._self._c;return r("div",e._b({directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],ref:"frame",staticClass:"zoomable-img e-flex e-justify-center e-items-center e-relative",class:{"zoomable-img--loading":!e.imageLoaded,"zoomable-img--zoomed":e.zoomLevel>1,"zoomable-img--panning":e.isPanning,"zoomable-img--disabled":e.disabled,"zoomable-img--portrait-frame":e.frameAspectRatio<e.imageAspectRatio,"zoomable-img--landscape-frame":e.frameAspectRatio>=e.imageAspectRatio,"zoomable-img--embedded":e.embedded,"zoomable-img--cover":e.cover},style:e.frameStyle,attrs:{"data-test-id":"zoomable-img-frame"},on:{wheel:e.onMouseWheel,mouseup:e.onMouseUp,mousedown:e.onMousedown,mousemove:e.onMouseMove,mouseenter:e.onMouseEnter,mouseleave:e.onMouseLeave,pointerdown:e.onPointerDown,pointermove:e.onPointerMove,pointerup:e.onPointerUp,pointercancel:e.onPointerUp,pointerout:e.onPointerUp,pointerleave:e.onPointerUp}},"div",e.$attrs,!1),[r("div",{staticClass:"zoomable-img__wrapper e-flex e-justify-center e-items-center",style:{...e.wrapperStyle,...e.wrapperExtraStyle},attrs:{"data-test-id":"zoomable-img-wrapper"}},[e.blurBackground&&e.imageLoaded&&e.backgroundSnapshotSrc?r("img",{class:e.isMobile?"zoomable-img__img-background-mobile":"zoomable-img__img-background",style:e.imgStyle,attrs:{src:e.backgroundSnapshotSrc,alt:e.alt}}):e._e(),r("img",e._g(e._b({directives:[{name:"show",rawName:"v-show",value:e.imageLoaded||!!e.placeholderImage,expression:"imageLoaded || !!placeholderImage"}],ref:"image",staticClass:"zoomable-img__img e-absolute",style:e.imgStyle,attrs:{src:(n=e.src)!=null?n:e.placeholderImage,alt:e.alt,crossorigin:"anonymous","data-test-id":"zoomable-img-image"},on:{load:e.onImageLoaded,error:e.onError}},"img",e.$props.imgProps,!1),e.$listeners))]),r("div",{staticClass:"zoomable-img__wrapper zoomable-img__wrapper--overlay e-flex e-justify-center e-items-center",style:{...e.wrapperStyle,...e.wrapperExtraStyle,...e.overlayStyle}},[r("div",{staticClass:"zoomable-img__img e-relative",style:{width:`${e.image?e.image.offsetWidth:0}px`,height:`${e.image?e.image.offsetHeight:0}px`,...e.imgStyle}},[e._t("imageOverlay",null,{state:e.currentState})],2)]),r("div",{ref:"foreground",staticClass:"zoomable-img__content e-flex e-justify-center e-items-center e-p-0",class:{"e-h-full":!e.embedded,"e-w-full":!e.embedded},style:{...e.contentStyle,...e.foregroundStyle},attrs:{id:"img-foreground","data-test-id":"zoomable-img-foreground"}},[e.imageLoaded?e._e():e._t("placeholder",null,{dataTestId:"zoomable-img-placeholder"}),e.showContent&&e.slotTransition?r("EFadeTransition",[e.showContent?e._t("default",null,{dataTestId:"zoomable-img-content"}):e._e()],2):e.showContent?e._t("default",null,{dataTestId:"zoomable-img-content"}):e._e(),r("EFadeTransition",[e.showContent&&e.slider&&e.allowZoom?r("div",{staticClass:"zoomable-img__slider-container",attrs:{"data-test-id":"zoomable-img-zoom-slider"}},[e._t("extraWidgets"),r("EZoomSlider",{attrs:{vertical:""},on:{mouseup:e.onSliderMouseUp,mousedown:e.onSliderMouseDown,"zoom-in":function(i){return e.zoom(-1)},"zoom-out":function(i){return e.zoom(1)}},model:{value:e.sliderModel,callback:function(i){e.sliderModel=i},expression:"sliderModel"}})],2):e._e()]),r("EFadeTransition",[e.showMiniature&&e.imageLoaded&&e.zoomLevel>1?r("div",{staticClass:"zoomable-img__miniature-container e-shadow",style:e.miniatureContainerStyle},[r("img",{ref:"miniatureImage",staticClass:"zoomable-img__miniature",attrs:{src:e.src,alt:e.alt}}),r("div",{staticClass:"zoomable-img__miniature-overlay",style:e.miniatureOverlayComputedStyle})]):e._e()])],2)])},Ic=[],Fc=H(zc,Bc,Ic,!1,null,null,null,null);const pn=Fc.exports,Ac=F.extend({name:"EImagePlayer",components:{EZoomableImg:pn},directives:{ResizeObserver:Ve},mixins:[Ue,Ge],model:{prop:"frameIndex",event:"update-frame-index"},props:{frames:{type:Array,required:!0},timePerFrame:{type:Number,default:500},isPlaying:{type:Boolean,default:!1},frameIndex:{type:Number,default:0},height:{type:[String,Number],default:0},initialQuality:{type:[String,Number],default:"auto"},preload:{type:Boolean,default:!0},preloadSize:{type:Number,default:10},resetIndexOnFramesChange:{type:Boolean,default:!1},preloadWhilePlaying:{type:Boolean,default:!0},withControls:{type:Boolean,default:!0},playOnClick:{type:Boolean,default:!0},disablePlayPauseAnimation:{type:Boolean,default:!1},disablePlayButton:{type:Boolean,default:!1},isLive:{type:Boolean,default:!1},selectedSnapshotQuality:{type:[String,Number],default:"auto"},placeholderImage:{type:String,default:""},isMobile:{type:Boolean,default:!1},isZoomable:{type:Boolean,default:!0},isAnnotationActive:{type:Boolean,default:!1},aspectRatio:{type:Number,default:null},preloadingQueueId:{type:Number,default:0}},data(){return{src:this.placeholderImage,imageLoaded:!1,playing:!1,playerStyle:{},image:null,previousSrc:"",resolveImageLoadingPromise:()=>({}),preloadedFrames:[],preloadingFramesImgs:[],frameError:!1,animationId:-1,imgStyle:{},previousFrameIndex:0,isFullscreen:!1,mouseDownTime:0,playPauseAnimation:!1,latestValidSnapshotTimestamp:"",progressBar:null,isDraggingCursor:!1,hovered:!1,mousePosition:{x:0,y:0},screenHeight:screen.height}},computed:{imgProps(){return{id:"zoomable-img__img",ref:"image",crossorigin:"anonymous",class:"zoomable-img__img e-absolute e-w-full e-h-full e-object-contain e-z-10 d-block",dataTestId:"zoomable-img-image"}},playerDimensions(){return{width:"100%",height:this.height}},isLastFrame(){return this.frameIndex===this.frames.length-1},altText(){var t,e;return`${((t=this.frames[this.frameIndex])==null?void 0:t.label)||""} ${((e=this.frames[this.frameIndex])==null?void 0:e.timestamp)||""}`},playedPercentage(){return this.isLastFrame?100:Math.abs(this.frameIndex/this.frames.length*100)},mouseToWidthRatio(){var t,e,r;return this.mousePosition.x/((r=(e=(t=this.progressBar)==null?void 0:t.getBoundingClientRect())==null?void 0:e.width)!=null?r:1)},hoverBarStyle(){return{width:`${100*this.mouseToWidthRatio}%`}},hoveredFrameIndex(){return Math.round(this.mouseToWidthRatio*(this.frames.length-1))},progressStyle(){return{width:`${100*((this.isDraggingCursor?this.hoveredFrameIndex:this.frameIndex)/(this.frames.length-1))}%`}},preloadedChunks(){const t=[...this.preloadedFrames];return t.sort((e,r)=>e>r?1:-1),t.reduce((e,r)=>{if(!e.length)return[[r,r]];const[n,i]=e.slice(-1)[0]||[0,0];return r-i>1?[...e,[r,r]]:[...e.slice(0,-1),[n,r]]},[])}},watch:{frames:{handler(){var t;this.src=((t=this.frames[this.frameIndex])==null?void 0:t.src)||"",this.resetIndexOnFramesChange&&this.$emit("update-frame-index",0),this.imageLoaded=!0,this.preloadedFrames=[],this.flushPreloadingQueue(),this.$setTimeout(async()=>{this.updateRefs(),await this.loadTargetFrame(),this.handleBuffering()})},immediate:!0,deep:!0},isLastFrame(t){t&&this.$emit("frames-ended")},frameIndex:{immediate:!0,async handler(){this.frameIndex&&this.frameIndex===this.previousFrameIndex||(Number.isNaN(this.frameIndex)&&this.$emit("update-frame-index",0),this.frameIndex===0&&(this.previousFrameIndex=this.frameIndex),this.isLastFrame&&!this.isLive&&(this.playing=!1),this.playing||(this.cancelDelay(),await this.loadTargetFrame(),this.handleBuffering()))}},playing:{immediate:!0,async handler(t){t?this.play():this.pause(),this.animatePlayPauseOverlay()}},preloadedFrames:{handler(t,e){this.$emit("preloaded-frames-change",t)}},isPlaying:{immediate:!0,async handler(){this.playing=this.isPlaying}},selectedSnapshotQuality(){var t;this.src=(t=this.getFrameSrc(this.frames[this.frameIndex]))!=null?t:this.frames[this.frameIndex].src},isLive:{immediate:!0,handler(t){var e;t||(this.src=(e=this.frames[this.frameIndex])==null?void 0:e.src)}},imageLoaded(t){this.$emit("loading",!t)}},mounted(){this.$setTimeout(()=>{this.initializeFullscreenListeners(),this.progressBar=this.$refs.progressBar,this.$addEventListener("keydown",this.handleKeyDown)})},beforeDestroy(){this.cancelDelay(),this.flushPreloadingQueue(),this.removeFullscreenListeners()},methods:{getProgressBarMousePosition(t){var r;if(!this.progressBar)return{x:0,y:0};const e=(r=this.progressBar)==null?void 0:r.getBoundingClientRect();return{x:t.clientX-e.x,y:t.clientY-e.y}},onProgressBarMouseEnter(){this.hovered=!0},onProgressBarMouseMove(t){this.mousePosition=this.getProgressBarMousePosition(t)},onProgressBarMouseLeave(){this.hovered=!1,this.isDraggingCursor=!1},onProgressBarClick(){this.$emit("update-frame-index",this.hoveredFrameIndex),this.$emit("seek",this.hoveredFrameIndex)},getProgressBarChunkStyle(t,e){const[r,n]=[100*t/(this.frames.length-1),100*e/(this.frames.length-1)];return{left:`${r}%`,width:`${n-r}%`}},animatePlayPauseOverlay(){this.disablePlayPauseAnimation||(this.playPauseAnimation=!0,this.$setTimeout(()=>this.playPauseAnimation=!1,500))},isImageClick(t){const e=t==null?void 0:t.target;return e?e&&(e.id==="img-foreground"||typeof e.className=="string"&&e.className.indexOf("zoomable-img__img")!==-1):!1},onFrameMouseDown(t){!this.isImageClick(t)||!this.playOnClick||(this.mouseDownTime=new Date().getTime())},onFrameMouseUp(t){this.isLastFrame||this.disablePlayButton||!this.playOnClick||this.isAnnotationActive||!this.isImageClick(t)||new Date().getTime()-this.mouseDownTime>200||(this.playing=!this.playing)},removeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.removeEventListener("fullscreenchange",this.handleFullscreenChange),t.removeEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.removeEventListener("mozfullscreenchange",this.handleFullscreenChange),t.removeEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},initializeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.addEventListener("fullscreenchange",this.handleFullscreenChange),t.addEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.addEventListener("mozfullscreenchange",this.handleFullscreenChange),t.addEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},handleFullscreenChange(){const t=document;this.isFullscreen=!!t.fullscreenElement||!!t.mozFullScreenElement||!!t.webkitFullscreenElement||!!t.msFullscreenElement||window.innerWidth==screen.width&&window.innerHeight==screen.height},closeFullscreenMode(){document.fullscreenElement&&(Yr().then(()=>{this.isFullscreen=!1}),this.isFullscreen=!1)},openFullscreenMode(){const t=document.querySelector("#imagePlayer");t&&(Zr(t).then(()=>{this.isFullscreen=!0}),this.isFullscreen=!0)},toggleFullscreenMode(){this.isFullscreen?this.closeFullscreenMode():this.openFullscreenMode()},updateRefs(){var t,e,r;this.image=(r=(e=(t=this.$refs)==null?void 0:t.zoomableImage)==null?void 0:e.$refs)==null?void 0:r.image},incrementCurrentFrameIndex(){const t=this.frameIndex+1;this.frames[t]&&this.$emit("update-frame-index",t)},getFrameSrc(t){if(t)return t.srcSet?t.srcSet[this.selectedSnapshotQuality]:t.src},loadTargetFrame(){if(!(this.frameIndex&&this.frameIndex===this.previousFrameIndex))return new Promise(t=>{this.updateRefs(),this.previousSrc=this.src,this.previousFrameIndex=this.frameIndex,this.resolveImageLoadingPromise=t,this.src=this.getFrameSrc(this.frames[this.frameIndex])})},async handleBuffering(){this.preload&&await this.buffer()},async buffer(){let t=this.frameIndex+this.preloadSize;this.preloadSize===1/0&&(t=this.frames.length-1),await this.preloadFrames({start:this.frameIndex,end:t})},async preloadFrames({start:t,end:e}){const[r,n]=[Math.min(this.frames.length-1,t),Math.min(this.frames.length-1,e)],i=new Array(n-r+1).fill(0).map((s,c)=>s+r+c),o=this.preloadingQueueId;for(const s of i){if(o!==this.preloadingQueueId||this.playing&&!this.preloadWhilePlaying)return;this.preloadedFrames.includes(s)||await new Promise(a=>{const l=new Image;l.onload=()=>{this.preloadedFrames=[...this.preloadedFrames,s],a()},l.onerror=()=>{a()},this.preloadingFramesImgs=[...this.preloadingFramesImgs,l];const d=this.getFrameSrc(this.frames[s]);s||a(),l.src=d})}},async delay(){return this.frameError?(this.frameError=!1,Promise.resolve()):new Promise(t=>{const e=performance.now(),r=n=>{n-e<this.timePerFrame?this.animationId=window.requestAnimationFrame(r):t()};this.animationId=window.requestAnimationFrame(r)})},cancelDelay(){window.cancelAnimationFrame(this.animationId)},async play(){var r,n;const t=performance.now();if(this.isLastFrame&&!this.isLive){this.$emit("update-frame-index",0);return}this.$emit("update-playback",!0),this.playing=!0,this.cancelDelay(),this.incrementCurrentFrameIndex(),await this.$nextTick(),await this.loadTargetFrame(),this.handleBuffering(),await this.delay(),this.playing&&this.play();const e=performance.now();this.$emit("performance-intervals-changed",{id:(r=this.frames[this.frameIndex])==null?void 0:r.timestamp,frame:(n=this.frames[this.frameIndex])==null?void 0:n.label,duration:e-t})},flushPreloadingQueue(){this.$emit("cancel-previous-preloading"),this.preloadingFramesImgs.forEach(t=>{t.src=""}),this.preloadingFramesImgs=[]},async pause(){this.playing=!1,this.imageLoaded=!0,this.src=this.previousSrc,this.cancelDelay(),this.handleBuffering(),this.$emit("update-playback",!1)},onLoad(){var e,r,n,i;this.$emit("on-image-load",this.image),this.$emit("snapshot-changed",{data:(e=this.frames[this.frameIndex])==null?void 0:e.src,createdAt:(r=this.frames[this.frameIndex])==null?void 0:r.timestamp});const t=(i=(n=this.frames)==null?void 0:n[this.frameIndex])==null?void 0:i.timestamp;t&&this.$emit("timestamp-change",t),this.imageLoaded=!0,this.previousSrc=this.src,this.resolveImageLoadingPromise()},onError(t){if(this.frameIndex>1)return this.$emit("update-frame-index",this.frameIndex-1);this.frameError=!0,this.src=this.previousSrc,this.resolveImageLoadingPromise(),this.$emit("error",t)},onChange(t){this.$emit("change",t)},onBeforeUpdate(t){this.$emit("hook:beforeUpdate",t)},onBeforeDestroy(t){this.$emit("hook:beforeDestroy",t)},togglePlay(){this.playing=!this.playing},handleKeyDown(t){var r;const e=(r=document.activeElement)==null?void 0:r.tagName.toLowerCase();if(!(e==="input"||this.isAnnotationActive))switch(t.key.toLowerCase()){case" ":if(e==="button")return;this.disablePlayButton||this.togglePlay();break;case"escape":t.preventDefault(),this.closeFullscreenMode(),this.isFullscreen=!1;break}}}}),kd="";var Rc=function(){var n,i;var e=this,r=e._self._c;return r("div",{staticClass:"e-image-player player e-h-full e-w-full",style:e.playerDimensions,attrs:{id:"imagePlayer"}},[r("div",{staticClass:"player__frames player-container",style:e.playerDimensions,attrs:{id:"img-container"},on:{pointerdown:e.onFrameMouseDown,pointerup:e.onFrameMouseUp}},[r("div",{staticClass:"e-h-full e-w-full e-shrink-0 e-relative"},[r("img",{staticClass:"e-absolute e-block e-w-full e-h-full background-fade",attrs:{src:e.src||((n=e.frames[e.frameIndex])==null?void 0:n.src)||"",alt:"background-image"}}),r("EZoomableImg",e._g(e._b({directives:[{name:"show",rawName:"v-show",value:e.imageLoaded&&e.src||e.placeholderImage,expression:"(imageLoaded && src) || placeholderImage"}],ref:"zoomableImage",attrs:{"img-props":{imgProps:e.imgProps},"overlay-style":{zIndex:1},src:e.src||((i=e.frames[e.frameIndex])==null?void 0:i.src)||e.placeholderImage||"",alt:e.altText,"hide-content-on-blur":!1,height:e.height.split("px")[0],"placeholder-image":e.placeholderImage,slider:!1,"is-mobile":e.isMobile,disabled:!e.isZoomable,"is-annotation-active":e.isAnnotationActive,"blur-background":""},on:{load:e.onLoad,error:e.onError,change:e.onChange,"hook:beforeUpdate":e.onBeforeUpdate,"hook:beforeDestroy":e.onBeforeDestroy},scopedSlots:e._u([{key:"imageOverlay",fn:function(){return[e._t("default"),e._t("imageOverlay",null,{image:e.image})]},proxy:!0}],null,!0)},"EZoomableImg",e.$attrs,!1),e.$listeners),[e._t("player-container-overlay")],2),e.playPauseAnimation?r("div",{staticClass:"image-player-overlay e-flex e-items-center e-justify-center"},[r("div",{staticClass:"image-player-overlay__wrapper"},[e.playing?r("svg",{attrs:{height:"100%",viewBox:"-1 0 36 36",width:"100%"}},[r("path",{attrs:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}})]):r("svg",{attrs:{height:"100%",viewBox:"0.5 0 36 36",width:"100%"}},[r("path",{attrs:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}})])])]):e._e(),e._t("imagePlayerOverlay")],2)]),e._t("controls",function(){return[e.withControls?r("div",{staticClass:"e-absolute e-bottom-0 e-w-[97%] e-p-4 e-pt-8 e-z-50 e-space-y-4 e-bg-gradient-to-t e-from-[#363434] e-to-transparent"},[r("div",{staticClass:"e-font-semibold e-text-white"},[e._v(" "+e._s(e.frames[e.frameIndex].label)+" - "+e._s(e.frameIndex)+" / "+e._s(e.frames.length-1)+" ")]),r("div",{staticClass:"e-flex e-justify-start e-gap-2 e-items-center"},[r("button",{staticClass:"e-text-white e-bg-transparent e-border-none e-cursor-pointer action-btn__first-vertical e-rounded-md",on:{click:e.togglePlay}},[r("i",{staticClass:"fas fa-2x",class:{"fa-play":!e.playing,"fa-pause":e.playing}})]),r("div",{ref:"progressBar",staticClass:"e-w-full e-h-3 e-relative e-bg-gray-200 e-rounded-md",on:{click:e.onProgressBarClick,mouseenter:e.onProgressBarMouseEnter,mousemove:e.onProgressBarMouseMove,mouseleave:e.onProgressBarMouseLeave}},[r("div",{staticClass:"e-bg-blue-500 e-w-full e-h-full e-absolute e-rounded-md e-z-[1]",style:{width:`${e.playedPercentage}%`}}),e._l(e.preloadedChunks,function([o,s]){return r("div",{key:s,staticClass:"e-bg-blue-300 e-h-full e-absolute e-rounded-md",style:e.getProgressBarChunkStyle(o,s)})})],2),r("button",{ref:"fullScreenBtn",staticClass:"e-text-white e-bg-transparent e-border-none e-cursor-pointer action-btn__second-vertical e-rounded-md",on:{click:e.toggleFullscreenMode}},[r("i",{staticClass:"fas fa-2x",class:{"fa-expand":!e.isFullscreen,"fa-compress":e.isFullscreen}})])])]):e._e()]},{playing:e.playing,togglePlay:e.togglePlay,play:e.play,pause:e.pause,toggleFullscreen:e.toggleFullscreenMode,preloadedFrames:e.preloadedFrames,isLastFrame:e.isLastFrame})],2)},Hc=[],Nc=H(Ac,Rc,Hc,!1,null,null,null,null);const fs=Nc.exports,jc=F.extend({name:"ELayout",directives:{ResizeObserver:Ve},mixins:[Ue],props:{height:{type:[String,Number],default:null},withOverlay:{type:Boolean,default:!1}},data(){return{footerHeight:0,overlayFooterHeight:0,wrapperStyle:{width:"100%",height:"100%"},mainStyle:{width:"100%",height:"100%"},mainHeight:"100%"}},computed:{bottomStyle(){return{bottom:`${this.overlayFooterHeight}px`}}},watch:{mainHeight(){this.onResize()},height:{immediate:!0,handler(){this.onResize()}}},mounted(){this.setOverlayFooterHeight(),this.setFooterHeight()},methods:{onResize(){this.setFooterHeight(),this.setOverlayFooterHeight()},onOverlayClick(t){this.$emit("overlay-click",t)},setOverlayFooterHeight(){const t=this.$refs.overlayFooter;t||this.$setTimeout(()=>{this.setOverlayFooterHeight()}),this.overlayFooterHeight=t==null?void 0:t.clientHeight},setFooterHeight(){const t=this.$refs.footer;t||this.$setTimeout(()=>{this.setFooterHeight()}),this.footerHeight=t==null?void 0:t.clientHeight,this.$attrs.isFullscreen?this.mainHeight=`${screen.height}px`:this.mainHeight=`${this.height?this.height.split("px")[0]-this.footerHeight:"100"}px`,this.mainStyle={width:"100%",height:this.mainHeight}}}});var Gc=function(){var e=this,r=e._self._c;return r("div",e._b({directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],ref:"globalLayout",staticClass:"e-layout e-w-full e-h-full e-relative",style:{width:"100%",height:e.mainHeight},attrs:{id:"globalLayout"}},"div",e.$attrs,!1),[r("div",{staticClass:"e-layout__container e-relative",style:e.mainStyle},[r("div",{staticClass:"e-layout__main e-w-full e-h-full e-absolute e-inset-0 e-z-0",style:e.mainStyle},[e._t("main",null,{size:{...e.mainStyle}})],2),e.withOverlay?r("div",{staticClass:"e-layout__overlay e-w-full e-h-full e-absolute e-inset-0 e-z-[1]",style:e.mainStyle,on:{click:e.onOverlayClick}},[e._t("overlay",null,{size:{...e.mainStyle}})],2):e._e(),r("div",{staticClass:"e-layout__top-left e-absolute e-left-0 e-top-0 e-z-[2]"},[e._t("top-left")],2),r("div",{staticClass:"e-absolute e-right-0 e-top-0 e-layout__top-right e-z-[2]"},[e._t("top-right")],2),r("div",{staticClass:"e-absolute e-right-0 e-bottom-10 e-layout__bottom-right e-z-[2]",style:e.bottomStyle},[e._t("bottom-right")],2),r("div",{staticClass:"e-absolute e-left-0 e-bottom-10 e-layout__bottom-left e-z-[2]",style:e.bottomStyle},[e._t("bottom-left")],2),r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.setOverlayFooterHeight,expression:"setOverlayFooterHeight"}],ref:"overlayFooter",staticClass:"e-absolute e-bottom-0 e-left-0 e-right-0 e-layout__overlay-footer e-z-[2]"},[e._t("overlay-footer")],2)]),r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.setFooterHeight,expression:"setFooterHeight"}],ref:"footer",staticClass:"e-layout__footer e-relative e-z-[2]"},[e._t("footer")],2)])},qc=[],Wc=H(jc,Gc,qc,!1,null,null,null,null);const ps=Wc.exports;var Uc=H({name:"EContextProvider",provide(){return{...this.$props.context}},props:{context:{type:Object,required:!0}},render(){return this.$scopedSlots.default()}},null,null,!1,null,null,null,null);const Zc=Uc.exports,Yc=F.extend({name:"EChatWrapper",props:{dark:{type:Boolean,default:!1},embedded:{type:Boolean,default:!1}},computed:{borderClasses(){return this.embedded?{}:{"e-border-[1px] e-border-solid e-rounded-lg e-overflow-hidden":!0,"e-border-gray-300":!this.dark,"e-border-gray-600":this.dark}},wrapperClasses(){return{"e-bg-gray-800 e-text-white":this.dark,"e-bg-white e-text-gray-800":!this.dark,...this.borderClasses}}}}),Ld="";var Xc=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-wrapper e-h-full",class:e.wrapperClasses},[e._t("default")],2)},Vc=[],Qc=H(Yc,Xc,Vc,!1,null,null,null,null);const Kc=Qc.exports,Jc=F.extend({name:"EChatHeader",components:{EAvatar:Mt},props:{size:{type:String,default:"xs"},backgroundClasses:{type:String,default:""}}}),Dd="";var eu=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EAvatar",{staticClass:"e-evercam-logo",attrs:{image:"https://dash.evercam.io/evercam-logo.svg",size:e.size,"background-classes":e.backgroundClasses}})},tu=[],ru=H(Jc,eu,tu,!1,null,null,null,null);const ms=ru.exports,nu=F.extend({name:"EChatHeader",components:{EEvercamLogo:ms},props:{title:{type:String,default:"Evercam Copilot"},hidden:{type:Boolean,default:!1},dark:{type:Boolean,default:!1}},computed:{backgroundClasses(){return{"e-bg-gray-700":this.dark,"e-bg-gray-50":!this.dark}},headerClasses(){return{"e-hidden":this.hidden,...this.backgroundClasses}}}});var iu=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-header e-flex e-items-center e-justify-between",class:e.headerClasses},[r("div",{staticClass:"e-chat-logo e-flex e-w-full e-items-center e-justify-start e-gap-2 e-px-5 e-py-4"},[e._t("logo",function(){return[r("div",{},[r("EEvercamLogo",{attrs:{size:"xs","background-classes":"e-bg-white e-p-[2px] e-rounded-full !e-pr-[2.5px] !e-pt-[3.5px]"}})],1)]}),r("div",{staticClass:"e-font-semibold e-h-min e-text-base"},[e._v(e._s(e.title))]),e._t("chip")],2),e._t("append")],2)},su=[],au=H(nu,iu,su,!1,null,null,null,null);const ou=au.exports,lu=F.extend({name:"EChatBody",directives:{ResizeObserver:Ve},props:{dark:{type:Boolean,default:!1}},data(){return{autoScroll:!0,previousChildCount:0,showGoToBottomButton:!1}},computed:{bodyClasses(){return{"e-custom-scrollbar--light":!this.dark,"e-custom-scrollbar--dark":this.dark}},goToBottomButtonClasses(){return{"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"e-bg-gray-600":this.dark,"e-bg-gray-200":!this.dark}}},watch:{autoScroll(t){t&&this.scrollToBottom()}},mounted(){this.scrollToBottom()},methods:{onContentResized(){const e=this.$refs.contentWrapper.childElementCount;e!==this.previousChildCount&&(this.autoScroll=!0),this.autoScroll&&this.scrollToBottom(),this.previousChildCount=e},scrollToBottom(){const t=this.$refs.anchor;this.$nextTick(()=>{t.scrollIntoView({behavior:"smooth"})})},disableAutoScroll(){this.autoScroll=!1},onScroll(){const t=this.$refs.chatBody;t.scrollHeight-t.scrollTop<=t.clientHeight+1&&(this.autoScroll=!0),this.showGoToBottomButton=t.scrollHeight-t.scrollTop>t.clientHeight+100},onWheel(t){t.deltaY<0&&this.disableAutoScroll()},onKeyUp(t){["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(t.key)&&this.disableAutoScroll()},onTouch(){this.disableAutoScroll()},onTouchMove(){this.disableAutoScroll()}}}),Pd="";var cu=function(){var e=this,r=e._self._c;return r("div",e._b({ref:"chatBody",staticClass:"e-chat-body e-space-y-2 e-py-3 e-px-5 e-leading-6",class:e.bodyClasses,attrs:{tabindex:"0"},on:{scroll:e.onScroll,wheel:e.onWheel,keyup:function(n){return n.stopPropagation(),e.onKeyUp.apply(null,arguments)},touchstart:e.onTouch,touchmove:e.onTouchMove}},"div",e.$attrs,!1),[r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onContentResized,expression:"onContentResized"}],ref:"contentWrapper",staticClass:"e-chat-body__content"},[e._t("default")],2),r("div",{ref:"anchor",staticClass:"e-chat-body__anchor"}),e.showGoToBottomButton?r("div",{staticClass:"e-chat-body__go-to-bottom e-sticky e-bottom-1 e-flex e-justify-center"},[r("button",{staticClass:"e-animate-bounce e-inline-flex e-items-center e-justify-center e-cursor-pointer e-h-8 e-w-8 e-border-none focus:e-outline-none e-rounded-full",class:e.goToBottomButtonClasses,on:{click:e.scrollToBottom}},[r("EIcon",{attrs:{icon:"arrow-down",size:"Base"}})],1)]):e._e()])},uu=[],du=H(lu,cu,uu,!1,null,null,null,null);const hu=du.exports,fu=F.extend({props:{size:{type:Number,default:12},color:{type:String,default:"#c5393d"},withDot:{type:Boolean,default:!0}},computed:{computedSize(){return`${this.size}px`},computedMargin(){return`${this.size/2}px`},computedShadowSize(){return`${this.size*2}px`},computedSecondaryColor(){return ht(this.color,0)||"#fff"},dotContainerStyle(){return{margin:`${this.computedMargin} auto`,width:this.computedSize,height:this.computedSize,position:"relative"}},shadowStyle(){return{width:this.computedSize,height:this.computedSize,"--boxShadowColor":ht(this.color,.7),"--backgroundColor":ht(this.color,.7),"--secondaryColor":this.computedSecondaryColor,"--shadowSize":this.computedShadowSize}},secondShadowStyle(){return{...this.shadowStyle,animationDelay:".33s",animationDuration:"2.3s"}},dotStyle(){return{width:this.computedSize,height:this.computedSize,backgroundColor:this.withDot?ht(this.color,1):void 0}}},methods:{toRgba:ht}}),Od="";var pu=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-pulsating-dot",style:e.dotContainerStyle},[r("span",{staticClass:"e-pulsating-dot__shadow",style:e.shadowStyle}),r("span",{staticClass:"e-pulsating-dot__shadow",style:e.secondShadowStyle}),r("div",{staticClass:"e-pulsating-dot__dot",style:e.dotStyle},[e._t("icon")],2)])},mu=[],gu=H(fu,pu,mu,!1,null,"cf575c64",null,null);const vu=gu.exports;var gs={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(typeof self!="undefined"?self:ot,()=>(()=>{var r={75:function(s){(function(){var c,a,l,d,f,m;typeof performance!="undefined"&&performance!==null&&performance.now?s.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(s.exports=function(){return(c()-f)/1e6},a=process.hrtime,d=(c=function(){var b;return 1e9*(b=a())[0]+b[1]})(),m=1e9*process.uptime(),f=d-m):Date.now?(s.exports=function(){return Date.now()-l},l=Date.now()):(s.exports=function(){return new Date().getTime()-l},l=new Date().getTime())}).call(this)},4087:(s,c,a)=>{for(var l=a(75),d=typeof window=="undefined"?a.g:window,f=["moz","webkit"],m="AnimationFrame",b=d["request"+m],x=d["cancel"+m]||d["cancelRequest"+m],h=0;!b&&h<f.length;h++)b=d[f[h]+"Request"+m],x=d[f[h]+"Cancel"+m]||d[f[h]+"CancelRequest"+m];if(!b||!x){var y=0,$=0,D=[];b=function(S){if(D.length===0){var R=l(),E=Math.max(0,16.666666666666668-(R-y));y=E+R,setTimeout(function(){var j=D.slice(0);D.length=0;for(var Q=0;Q<j.length;Q++)if(!j[Q].cancelled)try{j[Q].callback(y)}catch(U){setTimeout(function(){throw U},0)}},Math.round(E))}return D.push({handle:++$,callback:S,cancelled:!1}),$},x=function(S){for(var R=0;R<D.length;R++)D[R].handle===S&&(D[R].cancelled=!0)}}s.exports=function(S){return b.call(d,S)},s.exports.cancel=function(){x.apply(d,arguments)},s.exports.polyfill=function(S){S||(S=d),S.requestAnimationFrame=b,S.cancelAnimationFrame=x}}},n={};function i(s){var c=n[s];if(c!==void 0)return c.exports;var a=n[s]={exports:{}};return r[s].call(a.exports,a,a.exports,i),a.exports}i.n=s=>{var c=s&&s.__esModule?()=>s.default:()=>s;return i.d(c,{a:c}),c},i.d=(s,c)=>{for(var a in c)i.o(c,a)&&!i.o(s,a)&&Object.defineProperty(s,a,{enumerable:!0,get:c[a]})},i.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),i.o=(s,c)=>Object.prototype.hasOwnProperty.call(s,c);var o={};return(()=>{i.d(o,{default:()=>X});var s=i(4087),c=i.n(s);const a=function(I){return new RegExp(/<[a-z][\s\S]*>/i).test(I)},l=function(I,T){return Math.floor(Math.random()*(T-I+1))+I};var d="TYPE_CHARACTER",f="REMOVE_CHARACTER",m="REMOVE_ALL",b="REMOVE_LAST_VISIBLE_NODE",x="PAUSE_FOR",h="CALL_FUNCTION",y="ADD_HTML_TAG_ELEMENT",$="CHANGE_DELETE_SPEED",D="CHANGE_DELAY",S="CHANGE_CURSOR",R="PASTE_STRING",E="HTML_TAG";function j(I){return j=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},j(I)}function Q(I,T){var P=Object.keys(I);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(I);T&&(N=N.filter(function(ne){return Object.getOwnPropertyDescriptor(I,ne).enumerable})),P.push.apply(P,N)}return P}function U(I){for(var T=1;T<arguments.length;T++){var P=arguments[T]!=null?arguments[T]:{};T%2?Q(Object(P),!0).forEach(function(N){L(I,N,P[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(P)):Q(Object(P)).forEach(function(N){Object.defineProperty(I,N,Object.getOwnPropertyDescriptor(P,N))})}return I}function C(I){return function(T){if(Array.isArray(T))return z(T)}(I)||function(T){if(typeof Symbol!="undefined"&&T[Symbol.iterator]!=null||T["@@iterator"]!=null)return Array.from(T)}(I)||function(T,P){if(T){if(typeof T=="string")return z(T,P);var N=Object.prototype.toString.call(T).slice(8,-1);return N==="Object"&&T.constructor&&(N=T.constructor.name),N==="Map"||N==="Set"?Array.from(T):N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)?z(T,P):void 0}}(I)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
243
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function z(I,T){(T==null||T>I.length)&&(T=I.length);for(var P=0,N=new Array(T);P<T;P++)N[P]=I[P];return N}function W(I,T){for(var P=0;P<T.length;P++){var N=T[P];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(I,Y(N.key),N)}}function L(I,T,P){return(T=Y(T))in I?Object.defineProperty(I,T,{value:P,enumerable:!0,configurable:!0,writable:!0}):I[T]=P,I}function Y(I){var T=function(P,N){if(j(P)!=="object"||P===null)return P;var ne=P[Symbol.toPrimitive];if(ne!==void 0){var _=ne.call(P,"string");if(j(_)!=="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(P)}(I);return j(T)==="symbol"?T:String(T)}const X=function(){function I(N,ne){var _=this;if(function(A,B){if(!(A instanceof B))throw new TypeError("Cannot call a class as a function")}(this,I),L(this,"state",{cursorAnimation:null,lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null,elements:{container:null,wrapper:document.createElement("span"),cursor:document.createElement("span")}}),L(this,"options",{strings:null,cursor:"|",delay:"natural",pauseFor:1500,deleteSpeed:"natural",loop:!1,autoStart:!1,devMode:!1,skipAddStyles:!1,wrapperClassName:"Typewriter__wrapper",cursorClassName:"Typewriter__cursor",stringSplitter:null,onCreateTextNode:null,onRemoveNode:null}),L(this,"setupWrapperElement",function(){_.state.elements.container&&(_.state.elements.wrapper.className=_.options.wrapperClassName,_.state.elements.cursor.className=_.options.cursorClassName,_.state.elements.cursor.innerHTML=_.options.cursor,_.state.elements.container.innerHTML="",_.state.elements.container.appendChild(_.state.elements.wrapper),_.state.elements.container.appendChild(_.state.elements.cursor))}),L(this,"start",function(){return _.state.eventLoopPaused=!1,_.runEventLoop(),_}),L(this,"pause",function(){return _.state.eventLoopPaused=!0,_}),L(this,"stop",function(){return _.state.eventLoop&&((0,s.cancel)(_.state.eventLoop),_.state.eventLoop=null),_}),L(this,"pauseFor",function(A){return _.addEventToQueue(x,{ms:A}),_}),L(this,"typeOutAllStrings",function(){return typeof _.options.strings=="string"?(_.typeString(_.options.strings).pauseFor(_.options.pauseFor),_):(_.options.strings.forEach(function(A){_.typeString(A).pauseFor(_.options.pauseFor).deleteAll(_.options.deleteSpeed)}),_)}),L(this,"typeString",function(A){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(a(A))return _.typeOutHTMLString(A,B);if(A){var w=(_.options||{}).stringSplitter,q=typeof w=="function"?w(A):A.split("");_.typeCharacters(q,B)}return _}),L(this,"pasteString",function(A){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return a(A)?_.typeOutHTMLString(A,B,!0):(A&&_.addEventToQueue(R,{character:A,node:B}),_)}),L(this,"typeOutHTMLString",function(A){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,w=arguments.length>2?arguments[2]:void 0,q=function(ce){var le=document.createElement("div");return le.innerHTML=ce,le.childNodes}(A);if(q.length>0)for(var V=0;V<q.length;V++){var M=q[V],re=M.innerHTML;M&&M.nodeType!==3?(M.innerHTML="",_.addEventToQueue(y,{node:M,parentNode:B}),w?_.pasteString(re,M):_.typeString(re,M)):M.textContent&&(w?_.pasteString(M.textContent,B):_.typeString(M.textContent,B))}return _}),L(this,"deleteAll",function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"natural";return _.addEventToQueue(m,{speed:A}),_}),L(this,"changeDeleteSpeed",function(A){if(!A)throw new Error("Must provide new delete speed");return _.addEventToQueue($,{speed:A}),_}),L(this,"changeDelay",function(A){if(!A)throw new Error("Must provide new delay");return _.addEventToQueue(D,{delay:A}),_}),L(this,"changeCursor",function(A){if(!A)throw new Error("Must provide new cursor");return _.addEventToQueue(S,{cursor:A}),_}),L(this,"deleteChars",function(A){if(!A)throw new Error("Must provide amount of characters to delete");for(var B=0;B<A;B++)_.addEventToQueue(f);return _}),L(this,"callFunction",function(A,B){if(!A||typeof A!="function")throw new Error("Callback must be a function");return _.addEventToQueue(h,{cb:A,thisArg:B}),_}),L(this,"typeCharacters",function(A){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!A||!Array.isArray(A))throw new Error("Characters must be an array");return A.forEach(function(w){_.addEventToQueue(d,{character:w,node:B})}),_}),L(this,"removeCharacters",function(A){if(!A||!Array.isArray(A))throw new Error("Characters must be an array");return A.forEach(function(){_.addEventToQueue(f)}),_}),L(this,"addEventToQueue",function(A,B){var w=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return _.addEventToStateProperty(A,B,w,"eventQueue")}),L(this,"addReverseCalledEvent",function(A,B){var w=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return _.options.loop?_.addEventToStateProperty(A,B,w,"reverseCalledEvents"):_}),L(this,"addEventToStateProperty",function(A,B){var w=arguments.length>2&&arguments[2]!==void 0&&arguments[2],q=arguments.length>3?arguments[3]:void 0,V={eventName:A,eventArgs:B||{}};return _.state[q]=w?[V].concat(C(_.state[q])):[].concat(C(_.state[q]),[V]),_}),L(this,"runEventLoop",function(){_.state.lastFrameTime||(_.state.lastFrameTime=Date.now());var A=Date.now(),B=A-_.state.lastFrameTime;if(!_.state.eventQueue.length){if(!_.options.loop)return;_.state.eventQueue=C(_.state.calledEvents),_.state.calledEvents=[],_.options=U({},_.state.initialOptions)}if(_.state.eventLoop=c()(_.runEventLoop),!_.state.eventLoopPaused){if(_.state.pauseUntil){if(A<_.state.pauseUntil)return;_.state.pauseUntil=null}var w,q=C(_.state.eventQueue),V=q.shift();if(!(B<=(w=V.eventName===b||V.eventName===f?_.options.deleteSpeed==="natural"?l(40,80):_.options.deleteSpeed:_.options.delay==="natural"?l(120,160):_.options.delay))){var M=V.eventName,re=V.eventArgs;switch(_.logInDevMode({currentEvent:V,state:_.state,delay:w}),M){case R:case d:var ce=re.character,le=re.node,ie=document.createTextNode(ce),he=ie;_.options.onCreateTextNode&&typeof _.options.onCreateTextNode=="function"&&(he=_.options.onCreateTextNode(ce,ie)),he&&(le?le.appendChild(he):_.state.elements.wrapper.appendChild(he)),_.state.visibleNodes=[].concat(C(_.state.visibleNodes),[{type:"TEXT_NODE",character:ce,node:he}]);break;case f:q.unshift({eventName:b,eventArgs:{removingCharacterNode:!0}});break;case x:var Se=V.eventArgs.ms;_.state.pauseUntil=Date.now()+parseInt(Se);break;case h:var oe=V.eventArgs,ye=oe.cb,Ae=oe.thisArg;ye.call(Ae,{elements:_.state.elements});break;case y:var Be=V.eventArgs,$e=Be.node,Te=Be.parentNode;Te?Te.appendChild($e):_.state.elements.wrapper.appendChild($e),_.state.visibleNodes=[].concat(C(_.state.visibleNodes),[{type:E,node:$e,parentNode:Te||_.state.elements.wrapper}]);break;case m:var Me=_.state.visibleNodes,Ee=re.speed,Le=[];Ee&&Le.push({eventName:$,eventArgs:{speed:Ee,temp:!0}});for(var De=0,et=Me.length;De<et;De++)Le.push({eventName:b,eventArgs:{removingCharacterNode:!1}});Ee&&Le.push({eventName:$,eventArgs:{speed:_.options.deleteSpeed,temp:!0}}),q.unshift.apply(q,Le);break;case b:var Ke=V.eventArgs.removingCharacterNode;if(_.state.visibleNodes.length){var lt=_.state.visibleNodes.pop(),Tt=lt.type,Ze=lt.node,pt=lt.character;_.options.onRemoveNode&&typeof _.options.onRemoveNode=="function"&&_.options.onRemoveNode({node:Ze,character:pt}),Ze&&Ze.parentNode.removeChild(Ze),Tt===E&&Ke&&q.unshift({eventName:b,eventArgs:{}})}break;case $:_.options.deleteSpeed=V.eventArgs.speed;break;case D:_.options.delay=V.eventArgs.delay;break;case S:_.options.cursor=V.eventArgs.cursor,_.state.elements.cursor.innerHTML=V.eventArgs.cursor}_.options.loop&&(V.eventName===b||V.eventArgs&&V.eventArgs.temp||(_.state.calledEvents=[].concat(C(_.state.calledEvents),[V]))),_.state.eventQueue=q,_.state.lastFrameTime=A}}}),N)if(typeof N=="string"){var Z=document.querySelector(N);if(!Z)throw new Error("Could not find container element");this.state.elements.container=Z}else this.state.elements.container=N;ne&&(this.options=U(U({},this.options),ne)),this.state.initialOptions=U({},this.options),this.init()}var T,P;return T=I,(P=[{key:"init",value:function(){var N,ne;this.setupWrapperElement(),this.addEventToQueue(S,{cursor:this.options.cursor},!0),this.addEventToQueue(m,null,!0),!window||window.___TYPEWRITER_JS_STYLES_ADDED___||this.options.skipAddStyles||(N=".Typewriter__cursor{-webkit-animation:Typewriter-cursor 1s infinite;animation:Typewriter-cursor 1s infinite;margin-left:1px}@-webkit-keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}",(ne=document.createElement("style")).appendChild(document.createTextNode(N)),document.head.appendChild(ne),window.___TYPEWRITER_JS_STYLES_ADDED___=!0),this.options.autoStart===!0&&this.options.strings&&this.typeOutAllStrings().start()}},{key:"logInDevMode",value:function(N){this.options.devMode&&console.log(N)}}])&&W(T.prototype,P),Object.defineProperty(T,"prototype",{writable:!1}),I}()})(),o.default})())})(gs);var _u=gs.exports;const yu=yt(_u);class Cu{constructor(e,r){this.processor=null,this.accumulator="",this.totalMarkdown="",this.lastProcessedLength=0,this.regexRenderTargetsById={},this.isRenderingTable=!1,this.isFirstTableRender=!1,this.mdTableHeaderString="",this.isIncompleteTableRow=!1,this.pendingRowString="",this.tableId=0,this.rowId=0,this.typewriter=null,this.container=e,this.htmlRenderingTarget=e,this.exposedRegexes=r.exposedRegexes||[],this.useTableProcessor=!!r.useTableProcessor,this.initProcessor(),this.animated=!!r.animated,this.animated&&(this.typewriter=this.initTypewriter()),this.onAnimationStart=r.onAnimationStart||(()=>{}),this.onAnimationEnd=r.onAnimationEnd||(()=>{})}initProcessor(){this.processor=Zs.unified().use(Gs).use(this.remarkCheckIncompleteTableRows.bind(this)).use(En).use(En).use(js).use(qs,{allowDangerousHtml:!0}).use(Ws,{allowDangerousHtml:!0})}remarkCheckIncompleteTableRows(){return e=>{Us.visit(e,void 0,(r,n,i)=>{var c,a;const o=i,s=r.type;if(s==="text"&&this.exposedRegexes.forEach(({regex:l,type:d})=>{this.processTextNode(r,n,o,l,d)}),!!this.useTableProcessor&&(s==="table"&&!r.data&&(r.data={hProperties:{id:`t-${this.tableId}`}},this.mdTableHeaderString=this.extractTableHeaderString(r),this.setIsRenderingTable(!0)),s==="tableRow"&&!r.data&&(r.data={hProperties:{id:`r-${this.rowId++}`}}),s==="tableRow")){const l=o.children[0].children.length,d=r.children.length,f=this.accumulator.slice((c=r.position)==null?void 0:c.start.offset,(a=r.position)==null?void 0:a.end.offset);d<l?this.isIncompleteTableRow=!0:f.endsWith("|")?(this.isIncompleteTableRow=!1,this.pendingRowString=""):(this.pendingRowString=f,this.isIncompleteTableRow=!0)}})}}setIsRenderingTable(e){e&&!this.isRenderingTable&&(this.isFirstTableRender=!0),!e&&this.isRenderingTable&&this.startNewRenderingCycle(),this.isRenderingTable=e}startNewRenderingCycle(){const e=document.createElement("div");this.container.appendChild(e),this.htmlRenderingTarget=e,this.accumulator="",this.isRenderingTable&&(this.tableId++,this.mdTableHeaderString="",this.isIncompleteTableRow=!1,this.isRenderingTable=!1)}extractTableHeaderString(e){const r=e,n=r.children[0],i=r.align,o=n.children.map(c=>` ${c.children.map(l=>l.value).join("")} `).join("|"),s=i.map(c=>c==="left"?":---":c==="right"?"---:":c==="center"?":---:":"---").join("|");return`|${o}|
244
- |${s}|
242
+ `:`${t.startTime} - ${t.endTime}`},normalizeTime(t){return t==="24:00"?"23:59":t},getFormattedSchedule(){const t={};return this.internalDays.forEach(e=>{const r=(e.day+1).toString();t[r]=e.segments.map(n=>{const i=this.normalizeTime(n.startTime),a=this.normalizeTime(n.endTime);return`${i}-${a}`})}),t},formatDay(t){return new Intl.DateTimeFormat("en-US",{weekday:"short"}).format(new Date(0,0,t+1))},formatHour(t){return(t-1).toString().padStart(2,"0")+"h"},parseTime(t){const[e,r]=t.split(":").map(n=>parseInt(n,10));return{hours:e,minutes:r}},padTime(t){let e=Math.round(t*60);e<0&&(e=0),e>24*60&&(e=24*60);const r=Math.floor(e/60),n=e%60;return`${r.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`},roundToFive(t){const e=t*60,r=Math.round(e/5)*5;return Math.max(0,Math.min(r,24*60))/60},calculateBarStyle(t,e,r){const{hours:n,minutes:i}=this.parseTime(e),{hours:a,minutes:o}=this.parseTime(r),c=n+i/60,l=a+o/60-c,d=c/24*100,f=l/24*100,m=t*this.rowHeightPx,b=this.rowHeightPx;return{position:"absolute",top:`${m}px`,left:`calc(${d}% + 1px)`,width:`calc(${f}% - 2px)`,height:`${b-1}px`}},onResize(){const t=this.$refs.table,e=Array.from(t.querySelectorAll(".segment-cell"));if(!t||!e.length)return;const r=e[0].getBoundingClientRect();this.rowHeightPx=r.height;const n=e[e.length-1].getBoundingClientRect();this.segmentsContainerRect={top:r.top,left:r.left,width:n.right-r.left,height:n.bottom-r.top}},onSegmentMouseDown(t,e,r){if(t.preventDefault(),t.stopPropagation(),!this.segmentsContainerRect)return;const i=t.currentTarget.getBoundingClientRect(),a=t.clientX-i.left,o=6;let c="move";a<o?c="resize-left":a>i.width-o&&(c="resize-right");const s=this.sortedDays[e].segments[r],{hours:l,minutes:d}=this.parseTime(s.startTime),{hours:f,minutes:m}=this.parseTime(s.endTime),b=l+d/60,x=f+m/60;this.editing={dayIndex:e,segmentIndex:r,type:c,startMouseX:t.clientX,origStartFrac:b,origEndFrac:x},document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp)},onMouseMove(t){if(!this.editing||!this.segmentsContainerRect)return;t.preventDefault();const{dayIndex:e,segmentIndex:r,type:n,startMouseX:i,origStartFrac:a,origEndFrac:o}=this.editing,s=(t.clientX-i)/this.pixelsPerHour;let l=a,d=o;n==="move"?(l=a+s,d=o+s):n==="resize-left"?l=a+s:n==="resize-right"&&(d=o+s),n==="resize-left"&&d-l<1&&(l=d-1),n==="resize-right"&&d-l<1&&(d=l+1),l=this.roundToFive(Math.max(0,Math.min(l,24))),d=this.roundToFive(Math.max(0,Math.min(d,24)));const f=this.sortedDays[e].day;this.internalDays=this.internalDays.map(m=>{if(m.day!==f)return m;const b=m.segments.map((x,h)=>h!==r?x:{startTime:this.padTime(l),endTime:this.padTime(d)});return{...m,segments:b}})},onMouseUp(){document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),this.editing=null,this.mergeOverlappingSegments()},onSegmentMouseMove(t){const e=t.currentTarget,r=e.getBoundingClientRect(),n=t.clientX-r.left,i=6;n<i||n>r.width-i?e.style.cursor="ew-resize":e.style.cursor="grab"},onSegmentMouseLeave(t){const e=t.currentTarget;e.style.cursor="default"},deleteSegment(t,e){const r=this.sortedDays[t].day;this.internalDays=this.internalDays.map(n=>{if(n.day!==r)return n;const i=n.segments.filter((a,o)=>o!==e);return{...n,segments:i}}),this.emitChangeEvent()},onBackgroundMouseDown(t){if(t.target.closest(".segment"))return;const n=this.$refs.table.querySelectorAll(".segment-cell"),i=n[0].getBoundingClientRect(),a=n[n.length-1].getBoundingClientRect();this.segmentsContainerRect={top:i.top,left:i.left,width:a.right-i.left,height:a.bottom-i.top},t.preventDefault();const o=t.clientY-this.segmentsContainerRect.top,c=Math.floor(o/this.rowHeightPx);if(c<0||c>=this.sortedDays.length)return;let s=(t.clientX-this.segmentsContainerRect.left)/this.pixelsPerHour;s=Math.max(0,Math.min(s,24)),this.creating={startDayIndex:c,currentDayIndex:c,startFrac:s,currentFrac:s},document.addEventListener("mousemove",this.onCreateMouseMove),document.addEventListener("mouseup",this.onCreateMouseUp)},onCreateMouseMove(t){if(!this.creating||!this.segmentsContainerRect)return;t.preventDefault();let e=(t.clientX-this.segmentsContainerRect.left)/this.pixelsPerHour;e=Math.max(0,Math.min(e,24)),this.creating.currentFrac=e;const r=t.clientY-this.segmentsContainerRect.top;let n=Math.floor(r/this.rowHeightPx);n=Math.max(0,Math.min(n,this.sortedDays.length-1)),this.creating.currentDayIndex=n},onCreateMouseUp(){if(!this.creating)return;const{startDayIndex:t,currentDayIndex:e,startFrac:r,currentFrac:n}=this.creating;let i=Math.min(r,n),a=Math.max(r,n);if(a-i<1){this.cleanupCreate();return}const o=this.roundToFive(i),c=this.roundToFive(a),s=Math.min(t,e),l=Math.max(t,e),f=this.sortedDays.map(m=>m.day).slice(s,l+1);this.internalDays=this.internalDays.map(m=>f.includes(m.day)?{...m,segments:[...m.segments,{startTime:this.padTime(o),endTime:this.padTime(c)}]}:m),this.cleanupCreate(),this.mergeOverlappingSegments()},cleanupCreate(){document.removeEventListener("mousemove",this.onCreateMouseMove),document.removeEventListener("mouseup",this.onCreateMouseUp),this.creating=null},calculateMultiDayStyle(t,e,r,n){const i=Math.min(r,n)/24*100,a=(Math.max(r,n)-Math.min(r,n))/24*100,o=Math.min(t,e),c=Math.max(t,e),s=o*this.rowHeightPx,l=(c-o+1)*this.rowHeightPx;return{position:"absolute",top:`${s+1}px`,left:`calc(${i}% + 1px)`,width:`calc(${a}% - 2px)`,height:`${l-2}px`}},mergeOverlappingSegments(){this.internalDays=this.internalDays.map(t=>{const e=t.segments.map(i=>{const{hours:a,minutes:o}=this.parseTime(i.startTime),{hours:c,minutes:s}=this.parseTime(i.endTime);return{start:a+o/60,end:c+s/60}});e.sort((i,a)=>i.start-a.start);const r=[];for(const i of e)if(!r.length)r.push({...i});else{const a=r[r.length-1];i.start<=a.end+1e-6?a.end=Math.max(a.end,i.end):r.push({...i})}const n=r.map(i=>({startTime:this.padTime(this.roundToFive(i.start)),endTime:this.padTime(this.roundToFive(i.end))}));return{day:t.day,segments:n}})},showHour(t){return(t-1)%this.tickInterval===0||t===24},emitChangeEvent(){this.mergeOverlappingSegments(),this.$emit("change",this.getFormattedSchedule())}}}),_d="";var K4=function(){var e=this,r=e._self._c;return r("div",{ref:"mainContainer",staticClass:"schedule e-text-grey e-relative"},[r("table",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],ref:"table",staticClass:"e-table-fixed e-w-full e-border-separate e-border-spacing-0 e-relative"},[r("thead",[r("tr",{staticClass:"e-h-8"},[r("th",{staticClass:"e-w-16"}),e._l(24,function(n){return r("th",{key:n,staticClass:"hour-label e-p-1 e-text-center e-h-8 e-select-none"},[e.showHour(n)?r("span",[e._v(e._s(e.formatHour(n)))]):e._e()])})],2)]),r("tbody",e._l(e.sortedDays,function(n,i){return r("tr",{key:n.day,staticClass:"h-8"},[r("th",{staticClass:"e-p-1 e-text-center e-h-8 e-select-none",attrs:{scope:"row"}},[e._v(" "+e._s(e.formatDay(n.day))+" ")]),e._l(24,function(a){return r("td",{key:a,staticClass:"segment-cell border-bottom e-h-8",class:{"border-left":a===1,"border-right":a===24,"border-top":i===0,"rounded-topleft-lg":i===0&&a===1,"rounded-topright-lg":i===0&&a===24,"rounded-bottomleft-lg":i===e.sortedDays.length-1&&a===1,"rounded-bottomright-lg":i===e.sortedDays.length-1&&a===24}})})],2)}),0)]),e.segmentsContainerRect?r("div",{ref:"overlay",staticClass:"e-absolute e-inset-0 e-cursor-crosshair",style:e.segmentsContainerStyles,on:{mousedown:e.onBackgroundMouseDown}},[e._l(e.sortedDays,function(n,i){return r("div",{key:n.day},e._l(n.segments,function(a,o){return r("div",{key:a.startTime+"-"+a.endTime,staticClass:"segment e-rounded e-absolute e-bg-blue-500/80",style:e.calculateBarStyle(i,a.startTime,a.endTime),on:{mousedown:function(c){return c.stopPropagation(),e.onSegmentMouseDown(c,i,o)},mousemove:e.onSegmentMouseMove,mouseleave:e.onSegmentMouseLeave}},[r("button",{staticClass:"delete-btn e-absolute e-top-0 e-right-0 e-m-1 e-p-1",on:{click:function(c){return c.stopPropagation(),e.deleteSegment(i,o)}}},[e._v(" + ")]),r("div",{staticClass:"e-flex e-justify-center e-items-center e-text-xs e-text-white e-h-full e-select-none",domProps:{innerHTML:e._s(e.getSegmentLabel(a))}})])}),0)}),e.creating?r("div",{staticClass:"segment e-rounded e-absolute e-bg-blue-300/50 e-border e-border-blue-400 e-flex e-justify-center e-items-center e-text-xs e-text-white",style:e.calculateMultiDayStyle(e.creating.startDayIndex,e.creating.currentDayIndex,e.creating.startFrac,e.creating.currentFrac)},[e._v(" "+e._s(e.padTime(e.roundToFive(Math.min(e.creating.startFrac,e.creating.currentFrac))))+"  -  "+e._s(e.padTime(e.roundToFive(Math.max(e.creating.startFrac,e.creating.currentFrac))))+" ")]):e._e()],2):e._e()])},J4=[],ec=H(Q4,K4,J4,!1,null,null,null,null);const cs=ec.exports,us=F.extend({mixins:[Ge,Ue],data(){return{inactivityListeners:[],isInactivityListenerActive:!1}},beforeDestroy(){this.$removeInactivityListeners()},methods:{resetInactivityListenerTimer(t=()=>{},e=0,r=[]){this.isInactivityListenerActive&&(this.$clearTimeouts(),this.setInactivityListenerTimer(t,e,r))},setInactivityListenerTimer(t=()=>{},e=0,r=[]){t&&e&&this.$setTimeout(()=>{t(),r.length>0&&this.setInactivityListenerReminderTimers(t,r)},e*1e3)},setInactivityListenerReminderTimers(t=()=>{},e=[],r=0){const n=e[r];r<e.length?this.$setTimeout(()=>{t(),this.setInactivityListenerReminderTimers(t,e,r+1)},n*1e3):this.isInactivityListenerActive&&this.$removeInactivityListeners()},$registerInactivityListener({callback:t=()=>{},duration:e=0,reminders:r=[]}){this.isInactivityListenerActive=!0,this.resetInactivityListenerTimer(t,e,r);const n=()=>this.resetInactivityListenerTimer(t,e,r);this.$addEventListener("mousemove",n),this.inactivityListeners.push(n)},$removeInactivityListeners(){this.isInactivityListenerActive&&(this.isInactivityListenerActive=!1,this.inactivityListeners.forEach(t=>{this.$removeEventListener("mousemove",t)}),this.$clearTimeouts())}}}),ds=Object.freeze(Object.defineProperty({__proto__:null,eventListeners:Ge,formField:Rt,inactivityListener:us,selectFormField:wt,timeouts:Ue,toggleOpen:Ht},Symbol.toStringTag,{value:"Module"})),tc=F.extend({name:"EPopover",directives:{ClickOutside:tn},mixins:[Ht],props:{dark:{type:Boolean,default:!1},label:{type:String,default:"Click to open"},panelSide:{type:String,default:"center"},panelClasses:{type:[Object,String,Array],default:()=>({})}},computed:{panelThemeClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"right-0 ":this.panelSide==="right","left-0":this.panelSide==="left"}}},methods:{closePopover(){this.isOpen=!1}}}),yd="";var rc=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",e._b({directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closePopover,expression:"closePopover"}],staticClass:"e-popover__wrapper e-relative e-w-full"},"div",e.$attrs,!1),[e._t("trigger",function(){return[r("div",e._g(e._b({staticClass:"e-popover__trigger-button e-relative e-w-full e-rounded e-py-2 e-leading-5 e-cursor-pointer e-h-[40px] e-flex e-justify-center e-items-center",attrs:{role:"button"},on:{click:e.toggleOpen}},"div",e.$attrs,!1),e.$listeners),[e._t("trigger-button-content",function(){return[r("span",[e._v(" "+e._s(e.label)+" ")])]})],2)]},{toggle:e.toggleOpen,isOpen:e.isOpen}),e.isOpen?r("div",e._b({staticClass:"e-popover__menu-wrapper e-absolute e-bg-gray-800 e-z-[5] e-min-w-[160px] e-w-full e-min-h-12 e-max-h-72 e-overflow-auto e-text-sm e-rounded-md e-scrollbar-thin e-mt-1 e-scrollbar-thumb-rounded-full e-scrollbar-track-rounded-full e-scrollbar-thumb-gray-400 shadow-2xl focus:e-outline-none sm:e-text-sm",class:[e.panelThemeClasses,e.panelClasses]},"div",e.$attrs,!1),[e._t("panel",function(){return[e._t("default")]})],2):e._e()],2)},nc=[],ic=H(tc,rc,nc,!1,null,"59138e1e",null,null);const hn=ic.exports,sc=F.extend({name:"ECheckbox",components:{EIcon:We},props:{checked:{type:Boolean,default:!1}}}),Cd="";var ac=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",e._g(e._b({staticClass:"e-select-checkbox e-box-border e-w-4 e-h-4 e-rounded e-flex e-items-center e-justify-center e-align-middle e-border-solid e-border-2",class:{"e-border-gray-500":!e.checked,"e-bg-[#1976d2] e-border-[#1976d2]":e.checked},staticStyle:{"border-radius":"2px"}},"div",e.$attrs,!1),e.$listeners),[e.checked?r("EIcon",{attrs:{icon:"far fa-check",color:"e-text-white",size:"xs"}}):e._e()],1)},oc=[],lc=H(sc,ac,oc,!1,null,"c5642bf0",null,null);const cc=lc.exports,uc=F.extend({name:"ESelect",components:{ECheckbox:cc,EIcon:We,EPopover:hn},directives:{ResizeObserver:Ve},mixins:[wt],props:{dark:{type:Boolean,default:!1},withSelectAll:{type:Boolean,default:!1},customSelectionLabel:{type:String,default:""},name:{type:String,default:"Items"},label:{type:String,default:"Select an option"},withCheckbox:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},searchPlaceholder:{type:String,default:"Type to search..."},withSearchQueryVisible:{type:Boolean,default:!1}},data(){return{searchQuery:"",menuStyle:{}}},computed:{customLabel(){return this.multiple&&Array.isArray(this.value)&&this.value.length===0||!this.multiple&&(this.value===null||this.value===void 0)?this.label:this.multiple&&this.customSelectionLabel.length>0?this.customSelectionLabel:this.localLabel||this.label},filteredOptions(){if(!this.searchQuery)return this.options;const t=this.searchQuery.toLowerCase().trim();return this.options.filter(e=>e.label.toLowerCase().includes(t))},scrollbarClasses(){return{"e-scrollbar-track-gray-800 e-scrollbar-thumb-gray-500":this.dark,"e-scrollbar-track-white e-scrollbar-thumb-gray-400":!this.dark}},showSearchClearButton(){return(this.searchQuery.length>0||this.isAtLeastOneSelected)&&this.searchable&&!this.disabled}},methods:{handleTriggerClick(t,e){this.disabled||(e(t),this.$nextTick(()=>{const r=this.$refs.searchInput;r&&r.focus()}),this.withSearchQueryVisible&&(this.searchQuery=this.getOptionByValue(this.value).label||""))},handleMenuStyle(){const t=this.$refs.ESelectWrapper;this.menuStyle={maxWidth:`${t==null?void 0:t.clientWidth}px`,minWidth:"160px"}},clearSearch(){this.searchQuery="",this.$emit("input",this.multiple?[]:null);const t=this.$refs.searchInput;t&&t.focus()}}}),bd="";var dc=function(){var e=this,r=e._self._c;return r("EPopover",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.handleMenuStyle,expression:"handleMenuStyle"}],attrs:{dark:e.dark},scopedSlots:e._u([{key:"trigger",fn:function({isOpen:n,toggle:i}){return[e._t("activator",function(){return[r("div",{staticClass:"e-select__trigger-button e-relative e-w-full e-rounded e-border e-border-solid e-py-2 e-pl-3 e-leading-5 e-cursor-pointer e-h-[40px] e-flex e-items-center e-bg-gray-900",class:e.radioItemClasses,attrs:{id:`e-select-trigger-${Date.now()}`,"data-test-id":`select-trigger-${Date.now()}`,role:"button"},on:{click:a=>e.handleTriggerClick(a,i)}},[n&&e.searchable?r("div",{staticClass:"e-select__search-input-wrapper e-flex e-items-center e-gap-2 e-w-full e-mr-10"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.searchQuery,expression:"searchQuery"}],ref:"searchInput",staticClass:"e-select__search-input e-w-full e-h-6 e-bg-transparent placeholder:e-text-sm e-text-sm e-outline-none e-border-none",class:{"e-text-white placeholder:e-text-gray-400":e.dark,"e-text-gray-700 placeholder:e-text-gray-500":!e.dark},attrs:{placeholder:e.searchPlaceholder,type:"text"},domProps:{value:e.searchQuery},on:{click:function(a){a.stopPropagation()},input:function(a){a.target.composing||(e.searchQuery=a.target.value)}}})]):[e.multiple&&e.selectedOption.length===0||!e.selectedOption?e._t("label",function(){return[e.customLabel&&!e.searchable?r("span",{staticClass:"e-select-label e-text-sm"},[e._v(e._s(e.customLabel))]):r("span",{staticClass:"e-select-label e-text-sm e-text-gray-400"},[e._v(e._s(e.searchPlaceholder))])]}):e._t("selection",function(){return[r("span",{staticClass:"e-capitalize e-select__trigger-button-text e-truncate"},[e._v(" "+e._s(e.customLabel)+" ")])]})],e.showSearchClearButton?r("button",{staticClass:"e-select__clean-search-button e-flex e-bg-transparent e-z-[2] e-absolute e-right-10 e-cursor-pointer e-border-none e-items-center e-justify-center e-w-5 e-h-5",on:{click:function(a){return a.stopPropagation(),e.clearSearch.apply(null,arguments)}}},[r("EIcon",{attrs:{color:"e-text-gray-400 hover:e-text-[#1976d2]",icon:"far fa-xmark",size:"lg"}})],1):e._e(),e._t("pre-append-icon",function(){return[r("span",{staticClass:"e-select__trigger-button-icon e-absolute e-inset-y-0 e-right-0 e-flex e-items-center e-justify-end e-px-3 e-pr-4 e-bg-transparent e-border-transparent e-text-gray-400"},[r("EIcon",{attrs:{icon:n?"fas fa-sort-up e-mt-2.5":"fas fa-sort-down e-mb-1.5"}})],1)]})],2)]},{attrs:{class:e.radioItemClasses,isOpen:n},on:{click:i}})]}},{key:"panel",fn:function(){return[e.multiple&&e.withSelectAll?r("div",{staticClass:"e-select__menu-check-all-wrapper e-relative e-cursor-pointer e-select-none e-p-2",on:{click:e.toggleSelectAll}},[r("div",{staticClass:"e-select__menu-check-all e-flex e-justify-start e-items-center e-gap-2 e-p-1 e-w-full",class:{"e-text-[#1976d2] ":e.isAllSelected&&!e.dark,"e-text-[#61b0ff]":e.isAllSelected&&e.dark}},[r("ECheckbox",{attrs:{checked:e.isAllSelected}}),r("span",{staticClass:"e-capitalize e-select__menu-check-all-text e-text-sm e-font-medium"},[e._v(" All "+e._s(e.name||"")+" ")])],1)]):e._e(),e.multiple&&e.withSelectAll?r("hr",{staticClass:"e-border-0 e-h-px e-m-0",class:{"e-bg-gray-700":e.dark,"e-bg-gray-200":!e.dark}}):e._e(),e._l(e.filteredOptions,function(n,i){return r("div",{key:i,staticClass:"e-select__menu-item-wrapper e-relative e-select-none e-p-2",class:e.containerClasses(n),attrs:{id:`select-item-${n.value}`,"data-test-id":`select-item-${i}`},on:{click:function(a){return e.onItemClick(n.value)}}},[r("div",{staticClass:"e-select__menu-item e-flex e-justify-start e-items-center e-gap-2 e-p-1 e-w-i"},[e.withCheckbox||e.multiple?r("ECheckbox",{attrs:{checked:e.isSelected(n.value)}}):e._e(),e._t("item",function(){return[r("span",{staticClass:"e-select__menu-item-text e-block e-text-sm e-font-medium"},[e._v(" "+e._s(n.label)+" ")])]},{item:n,isSelected:e.isSelected(n.value)})],2)])}),e.filteredOptions.length===0?r("div",{staticClass:"e-select__no-values-box e-p-4 e-text-center e-text-gray-500"},[e._v(" No results found ")]):e._e()]},proxy:!0}],null,!0)})},hc=[],fc=H(uc,dc,hc,!1,null,null,null,null);const hs=fc.exports,pc=F.extend({name:"EGlobalSearch",components:{EIcon:We},mixins:[Ge],props:{dark:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},timezone:{type:String,default:"Europe/Dublin"},convertedDateFormat:{type:String,default:"YYYY-MM-DDTHH:mm:ss"},currentDateFormat:{type:String,default:"YYYY-MM-DDTHH:mm:ssZ"},isFixedPosition:{type:Boolean,default:!0},isHidden:{type:Boolean,default:!0},deep:{type:Boolean,default:!0}},data(){return{search:"",isSearching:!1}},computed:{inputClasses(){return{"e-bg-gray-900 e-text-white e-ring-gray-700 focus:e-ring-2 focus:e-ring-blue-500 e-placeholder-gray-500":this.dark,"e-bg-white e-text-[#000057] e-ring-gray-300 focus:e-ring-2 hover:e-ring-gray-400 focus:e-ring-blue-500 e-placeholder-gray-400":!this.dark}}},watch:{search(t){t?t.length>=3&&this.$emit("search-results",this.searchObjectsByQuery(this.items,t)):this.$emit("reset")}},mounted(){!this.isHidden&&this.search.length>0?this.isSearching=!0:(this.$addEventListener("keydown",this.onKeyHandler),this.$addEventListener("keyup",this.onKeyHandler))},methods:{onInput(t){this.search=t.target.value},searchObjectsByQuery(t,e){return t.reduce((r,n,i)=>{const a=this.findMatchesInObject(n,e,[]);return a.length>0&&r.push({index:i,matches:a}),r},[])},findMatchesInObject(t,e,r){return Object.entries(t).reduce((n,[i,a])=>{const o=[...r,i],c=this.matchesQuery(a,e)?[{path:o,value:a}]:[];let s=[];this.deep&&Array.isArray(a)&&(s=a.flatMap((d,f)=>this.findMatchesInObject(d,e,[...o,`${f}`])));const l=this.deep&&typeof a=="object"&&a!==null?this.findMatchesInObject(a,e,o):[];return[...n,...c,...s,...l]},[])},matchesQuery(t,e){return`${this.isValidDate(t)?this.formattedTimestamp(t):t}`.toLowerCase().indexOf(e.toLowerCase())!==-1},isValidDate(t){return ke(t,this.currentDateFormat,!0).isValid()},formattedTimestamp(t){return ke.tz(t,this.timezone).format(this.convertedDateFormat)},onKeyHandler(t){const e=t,r=e.ctrlKey&&e.type==="keydown",n=e.shiftKey&&e.type==="keydown",i=["f","F"].includes(e.key)&&e.type==="keydown",a=e.key==="Escape"&&e.type==="keydown";i&&r&&n&&(this.isSearching=!0,this.$nextTick(()=>{const o=this.$refs.searchField;o&&o.focus()})),a&&(this.isSearching=!1,this.search="")}}}),xd="";var mc=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"show",rawName:"v-show",value:!e.isFixedPosition||e.isSearching,expression:"!isFixedPosition || isSearching"}],staticClass:"global-search e-relative",class:{"global-search--fixed e-p-4 e-bg-white e-m-3":e.isFixedPosition}},[r("div",{staticClass:"e-relative"},[r("input",e._g({directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],ref:"searchField",class:["global-search__field e-shadow-sm e-ring-1 e-ring-inset e-relative e-block e-w-full e-h-full disabled:e-cursor-not-allowed disabled:e-opacity-75 focus:e-outline-none e-border-0 e-text-sm e-placeholder-gray-400 e-px-4 e-py-3 e-gap-x-1.5 e-rounded-md",e.inputClasses],attrs:{id:"global-search-input",placeholder:"Search",autocomplete:"off",type:"text"},domProps:{value:e.search},on:{input:function(n){n.target.composing||(e.search=n.target.value)}}},e.$listeners)),r("span",{staticClass:"e-absolute e-inset-y-0 e-end-0 e-flex e-items-center e-justify-center e-pointer-events-none e-px-2.5"},[r("EIcon",{attrs:{icon:"search",size:"Sm"}})],1)])])},gc=[],vc=H(pc,mc,gc,!1,null,null,null,null);const fs=vc.exports,_c=F.extend({name:"ETooltip",props:{text:{type:String,required:!0},position:{type:String,default:Oe.Top},color:{type:String,default:se.Default},dark:{type:Boolean,default:!1}},data:function(){return{isHovered:!1}},computed:{tooltipClasses(){const t=this.position,e=this.color,r={"e-bg-gray-800 e-text-white":!this.dark,"e-bg-slate-300 e-text-slate-800":this.dark};return{"tooltip e-w-max e-text-sm e-text-center e-px-2 e-py-1 e-absolute e-rounded-md e-shadow-md e-opacity-0 group-hover:e-opacity-100 e-transition-opacity e-duration-300":!0,"tooltip-left":t===Oe.Left,"tooltip-right":t===Oe.Right,"tooltip-top":t===Oe.Top,"tooltip-bottom":t===Oe.Bottom,"e-bg-orange-700 e-text-white":e===se.Warning,"e-bg-red-700 e-text-white":e===se.Error,"e-bg-green-900 e-text-white":e===se.Success,"e-bg-blue-700 e-text-white":e===se.Primary,"e-bg-sky-500 e-text-white":e===se.Info,"e-bg-brand-900 e-text-white":e===se.Brand,"e-bg-gray-200 e-text-gray-700":e===se.Gray,...r}},triangleClasses(){const t=this.position,e=this.color;return{"triangle e-absolute e-border-transparent":!0,"triangle-left":t===Oe.Left,"triangle-right":t===Oe.Right,"triangle-top":t===Oe.Top,"triangle-bottom":t===Oe.Bottom,"e-border-b-gray-800":e===se.Default,"e-border-b-orange-700":e===se.Warning,"e-border-b-red-700":e===se.Error,"e-border-b-green-900":e===se.Success,"e-border-b-blue-700":e===se.Primary,"e-border-b-sky-500":e===se.Info,"e-border-b-brand-900":e===se.Brand,"e-border-b-gray-900":e===se.Gray}}},methods:{toggleTooltip(){this.isHovered=!this.isHovered}}}),wd="";var yc=function(){var e=this,r=e._self._c;return r("div",{staticClass:"tooltip-box e-w-max e-relative e-group",on:{mouseenter:e.toggleTooltip,mouseleave:e.toggleTooltip}},[e._t("default"),e.isHovered?r("div",{class:e.tooltipClasses},[r("span",{class:e.triangleClasses}),e._v(" "+e._s(e.text)+" ")]):e._e()],2)},Cc=[],bc=H(_c,yc,Cc,!1,null,"3ebb5ef2",null,null);const St=bc.exports,xc=F.extend({name:"EActionButton",components:{ETooltip:St,EIcon:We},props:{tooltipText:{type:String,default:null},tooltipColor:{type:String,default:"default"},tooltipPosition:{type:String,default:"top"},buttonClasses:{type:[String,Object,Array],default:null},icon:{type:String,default:null},iconSize:{type:String,default:K.Sm},iconColor:{type:String,default:se.Default},dark:{type:Boolean,default:!0}},computed:{withTooltip(){return!!this.tooltipText},buttonClassesContainsBg(){return this.buttonClasses?typeof this.buttonClasses=="string"&&this.buttonClasses.split("e-bg-").length>1||typeof this.buttonClasses=="object"&&Object.keys(this.buttonClasses).some(t=>t.split("e-bg-").length>1):!1},buttonStyle(){const t=this.dark?"e-bg-gray-900 e-text-white hover:e-bg-gray-700":"e-bg-white text-e-text-gray-900 hover:e-bg-gray-100";return this.buttonClassesContainsBg?this.buttonClasses:[this.buttonClasses,t]}}});var wc=function(){var e=this,r=e._self._c;return e.withTooltip?r("ETooltip",{attrs:{text:e.tooltipText,position:e.tooltipPosition,color:e.tooltipColor,dark:e.dark}},[r("button",e._g(e._b({staticClass:"e-action-button e-w-max e-px-3 e-py-2 e-flex e-border-none e-justify-center e-align-middle e-items-center e-cursor-pointer",class:e.buttonStyle},"button",e.$attrs,!1),e.$listeners),[r("EIcon",{attrs:{icon:e.icon,size:e.iconSize,color:e.iconColor}}),e._t("default")],2)]):r("button",e._g(e._b({staticClass:"e-action-button e-w-max e-px-3 e-py-2 e-flex e-border-none e-justify-center e-align-middle e-items-center e-cursor-pointer",class:e.buttonStyle},"button",e.$attrs,!1),e.$listeners),[r("EIcon",{attrs:{icon:e.icon,size:e.iconSize}}),e._t("default")],2)},Sc=[],Tc=H(xc,wc,Sc,!1,null,null,null,null);const ft=Tc.exports,kc=F.extend({name:"EZoomSlider",components:{EActionButton:ft},props:{dark:{type:Boolean,default:!0}}});var $c=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-zoom-slider e-flex e-flex-col e-p-5"},[r("EActionButton",{attrs:{"tooltip-text":"Zoom in","tooltip-position":"right",icon:"fas fa-plus",dark:e.dark,"icon-size":"Base","button-classes":"action-btn__first-vertical e-border-none e-rounded-none e-rounded-t-md e-shadow-xl","data-test-id":"zoomable-img-zoom-in"},on:{click:function(n){return e.$emit("zoom-in")}}}),r("EActionButton",{attrs:{"tooltip-text":"Zoom out","tooltip-position":"right",icon:"fas fa-minus",dark:e.dark,"icon-size":"Base","button-classes":"action-btn__last-vertical e-border-none e-rounded-none e-rounded-b-md","data-test-id":"zoomable-img-zoom-out"},on:{click:function(n){return e.$emit("zoom-out")}}})],1)},Ec=[],Mc=H(kc,$c,Ec,!1,null,null,null,null);const fn=Mc.exports,Lc=F.extend({name:"EFadeTransition",props:{duration:{type:Number,default:300}},computed:{durationClass(){return{100:"e-duration-100",200:"e-duration-200",300:"e-duration-300",400:"e-duration-400",500:"e-duration-500",600:"e-duration-600",700:"e-duration-700",800:"e-duration-800",900:"e-duration-900",1e3:"e-duration-1000"}[this.duration]}}});var Dc=function(){var e=this,r=e._self._c;return r("transition",{attrs:{"enter-active-class":`e-transition e-ease-out ${e.durationClass}`,"leave-active-class":`e-transition e-ease-in ${e.durationClass}`,"enter-class":"e-opacity-0","enter-to-class":"e-opacity-100","leave-class":"e-opacity-100","leave-to-class":"e-opacity-0"}},[e._t("default")],2)},Pc=[],Oc=H(Lc,Dc,Pc,!1,null,null,null,null);const Nt=Oc.exports,zc=F.extend({name:"EZoomableImg",components:{EZoomSlider:fn,EFadeTransition:Nt},directives:{ResizeObserver:Ve},mixins:[Ue,Ge],props:{src:{type:String,default:""},alt:{type:String,default:""},allowZoom:{type:Boolean,default:!0},imgProps:{type:Object,default:()=>({})},slider:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},hideContentOnBlur:{type:Boolean,default:!0},initialParams:{type:Object,default:()=>({})},embedded:{type:Boolean,default:!1},overlayStyle:{type:Object,default:()=>({})},foregroundStyle:{type:Object,default:()=>({})},pan:{type:Boolean,default:!0},slotTransition:{type:Boolean,default:!0},height:{type:[String,Number],default:void 0},isCalendarActive:{type:Boolean,default:!1},blurBackground:{type:Boolean,default:!1},cover:{type:Boolean,default:!1},isWidget:{type:Boolean,default:!1},isAnnotationActive:{type:Boolean,default:!1},isMobile:{type:Boolean,default:!1},placeholderImage:{type:String,default:""},showMiniature:{type:Boolean,default:!1},miniatureWidth:{type:Number,default:150}},data(){const t={x:0,y:0};return{image:null,frame:null,imageLoaded:!1,zoomLevel:1,previousZoomLevel:1,imageMouse:t,zoomOrigin:t,frameMouse:t,frameMousePanStart:t,frameMousePreviousPan:t,translation:t,isPanning:!1,isPinching:!1,zoomStarted:!1,firstLoad:!0,isSliderActive:!1,imgStyle:{},contentStyle:{},isFocused:!0,forceHideContent:!1,imageAspectRatio:1,frameAspectRatio:1,wrapperExtraStyle:{},preventDefaultScroll:!0,mouseLeft:!1,pointers:{},pinchDistance:0,lastTapTime:0,minZoomLevel:1,maxZoomLevel:20,backgroundSnapshotSrc:null,miniatureOverlayStyle:{}}},computed:{frameStyle(){return this.height?{height:`${this.height}px`}:{}},wrapperStyle(){if(!this.imageLoaded)return{display:"none"};let t,e;return this.isPanning&&!this.isAnnotationActive?(t=this.frameMouse.x-this.frameMousePanStart.x+this.frameMousePreviousPan.x,e=this.frameMouse.y-this.frameMousePanStart.y+this.frameMousePreviousPan.y):(t=this.frameMousePreviousPan.x,e=this.frameMousePreviousPan.y),{transform:Math.abs(t)<.5&&Math.abs(e)<.5?"none":`translate(${t}px,${e}px)`}},imageCenter(){var e;const t=(e=this.image)==null?void 0:e.getBoundingClientRect();return{x:((t==null?void 0:t.width)||0)/2,y:((t==null?void 0:t.height)||0)/2}},sliderModel:{get(){return this.zoomLevel*100},set(t){this.previousZoomLevel=this.zoomLevel,this.zoomLevel=t/100,this.updateImageStyle(),this.savePreviousPan()}},showContent(){return this.hideContentOnBlur?this.forceHideContent?!1:this.isFocused&&this.touches<2:!0},miniatureContainerStyle(){if(!this.image)return{};const t=this.image.naturalWidth/this.image.naturalHeight,e=this.miniatureWidth/t;return{width:`${this.miniatureWidth}px`,height:`${e}px`}},miniatureOverlayComputedStyle(){return{...this.miniatureOverlayStyle,...this.miniatureOverlayBaseStyle}},miniatureOverlayBaseStyle(){return{boxShadow:`0 0 0 ${this.miniatureWidth}px #0006`}},currentState(){var t,e;return{image:this.image,zoomLevel:this.zoomLevel,translation:this.translation,previousZoomLevel:this.previousZoomLevel,imageMouse:this.imageMouse,zoomOrigin:this.zoomOrigin,frameMouse:this.frameMouse,frameMousePanStart:this.frameMousePanStart,frameMousePreviousPan:this.frameMousePreviousPan,isPanning:this.isPanning,zoomStarted:this.zoomStarted,firstLoad:this.firstLoad,isSliderActive:this.isSliderActive,imgStyle:this.imgStyle,contentStyle:this.contentStyle,isFocused:this.isFocused,forceHideContent:this.forceHideContent,imageAspectRatio:this.imageAspectRatio,frameAspectRatio:this.frameAspectRatio,wrapperExtraStyle:this.wrapperExtraStyle,offsetWidth:(t=this.image)==null?void 0:t.offsetWidth,offsetHeight:(e=this.image)==null?void 0:e.offsetHeight}}},watch:{isCalendarActive(){this.$setTimeout(this.onResize,100)},initialParams:{immediate:!0,handler(t){if(typeof t=="object")for(let e in t)this[e]=t[e]}},image:{immediate:!0,deep:!0,handler(){var t;(t=this.image)!=null&&t.offsetWidth&&this.emitChange()}},wrapperStyle(){this.$nextTick(this.updateMiniatureOverlayStyle)},imageStyle(){this.$nextTick(this.updateMiniatureOverlayStyle)}},mounted(){this.$addEventListener("orientationchange",this.handleOrientationChange),this.$root.$on("resize-snapshot-player",()=>{this.$setTimeout(this.setAspectRatio,200)})},methods:{onResize(){this.updateContentStyle(),this.$setTimeout(this.setAspectRatio,500)},handleOrientationChange(){this.$setTimeout(this.setAspectRatio,1e3)},setAspectRatio(){var r,n;this.frame=this.$refs.frame,this.image=this.$refs.image;const t=(r=this.frame)==null?void 0:r.getBoundingClientRect(),e=(n=this.image)==null?void 0:n.getBoundingClientRect();if(this.$setTimeout(this.emitChange,50),!t||this.isMobile&&!this.isWidget&&(!e||(e==null?void 0:e.width)<=1||(e==null?void 0:e.height)<=1)){this.$setTimeout(this.setAspectRatio,50);return}this.frameAspectRatio=t.width/t.height,this.imageAspectRatio=e.width/e.height},updateImageStyle(){this.translation={x:this.zoomOrigin.x*(this.zoomLevel-this.previousZoomLevel)+this.translation.x,y:this.zoomOrigin.y*(this.zoomLevel-this.previousZoomLevel)+this.translation.y},this.imgStyle={...this.imgStyle,transform:`translate(${-this.translation.x}px, ${-this.translation.y}px) scale(${this.zoomLevel})`},this.emitChange()},updateMiniatureOverlayStyle(){if(!this.showMiniature||!this.image||!this.frame||!this.$refs.miniatureImage||this.zoomLevel===1){this.miniatureOverlayStyle={};return}const t=this.image.getBoundingClientRect(),e=this.frame.getBoundingClientRect(),r=(e.left-t.left)/t.width*100,n=(e.top-t.top)/t.height*100,i=e.width/t.width*100,a=e.height/t.height*100;this.miniatureOverlayStyle={left:`${r}%`,top:`${n}%`,width:`${i}%`,height:`${a}%`}},onImageLoaded(t){var n,i;if(this.imageLoaded=!0,this.wrapperExtraStyle={...this.wrapperExtraStyle,alignContent:"flex-start !important"},this.$setTimeout(()=>{this.wrapperExtraStyle={justifyContent:"center",alignContent:"center !important"}}),this.blurBackground&&(this.backgroundSnapshotSrc=this.getSnapshotSrc()),!this.firstLoad)return;this.updateContentStyle(),this.imageMouse=this.imageCenter,this.zoomOrigin=this.imageCenter;const e=(n=this.image)==null?void 0:n.getBoundingClientRect(),r=(i=this.frame)==null?void 0:i.getBoundingClientRect();!e||!r||(this.isMobile&&!this.isWidget?this.setAspectRatio():this.$nextTick(()=>{this.setAspectRatio(),this.firstLoad=!1}),this.updateImageStyle(),this.$emit("load",t))},onError(t){this.$emit("error",t)},onMouseEnter(){this.mouseLeft=!1,this.isFocused=!0},onMouseLeave(){this.isSliderActive||(this.isFocused=!1),this.mouseLeft=!0;const t={which:1,preventDefault:()=>{}};this.onMouseUp(t)},onMouseMove(t){var e;if(!(this.disabled||!this.imageLoaded||this.mouseLeft)&&this.frame){const r=this.frame.getBoundingClientRect(),n=(e=this.image)==null?void 0:e.getBoundingClientRect();this.frameMouse={x:(t==null?void 0:t.clientX)-r.left,y:(t==null?void 0:t.clientY)-r.top},this.imageMouse={x:((t==null?void 0:t.clientX)-(n==null?void 0:n.left))/this.zoomLevel,y:((t==null?void 0:t.clientY)-(n==null?void 0:n.top))/this.zoomLevel},this.zoomStarted&&(this.zoomStarted=!1),this.$nextTick(this.emitChange)}},onMousedown(t){if(!(!this.pan||this.disabled||!this.imageLoaded||(t==null?void 0:t.which)!==1||this.isSliderActive)){if(this.isAnnotationActive){this.frameMousePanStart={x:this.frameMouse.x,y:this.frameMouse.y},this.isPanning=!0,this.$nextTick(this.emitChange);return}t.preventDefault(),this.frameMousePanStart=this.frameMouse,this.isPanning=!0}},onMouseUp(t){if(!(!this.pan||this.disabled||!this.imageLoaded||!this.isPanning||(t==null?void 0:t.which)!==1||this.isSliderActive)){if(this.isAnnotationActive){this.isPanning=!1,this.$nextTick(this.emitChange);return}t.preventDefault(),this.savePreviousPan({x:this.frameMousePreviousPan.x+this.frameMouse.x-this.frameMousePanStart.x,y:this.frameMousePreviousPan.y+this.frameMouse.y-this.frameMousePanStart.y}),this.isPanning=!1,this.isPinching=!1,this.$nextTick(this.emitChange)}},onMouseWheel(t){this.disabled||!this.imageLoaded||!this.allowZoom||(this.zoom(t.deltaY),this.preventDefaultScroll&&t.preventDefault())},updateZoomLevel(t){let e=1;this.isMobile?e=this.zoomLevel*t:t<0?e=this.zoomLevel*1.2:this.zoomLevel>=1.25&&(e=this.zoomLevel*.8),e<this.minZoomLevel?this.zoomLevel=this.minZoomLevel:e>this.maxZoomLevel?this.zoomLevel=this.maxZoomLevel:this.zoomLevel=e},zoom(t){this.isPanning=!1,this.previousZoomLevel=this.zoomLevel,this.updateZoomLevel(t),this.preventDefaultScroll=this.previousZoomLevel!==this.zoomLevel,this.zoomStarted||(this.zoomOrigin=this.imageMouse,this.zoomStarted=!0),this.updateImageStyle(),this.$nextTick(()=>{this.savePreviousPan(),this.emitChange()})},getBounds(){var s,l;const t=(s=this.frame)==null?void 0:s.getBoundingClientRect(),e=(l=this.image)==null?void 0:l.getBoundingClientRect(),r=t.width/this.imageAspectRatio,n=t.height*this.imageAspectRatio;let{top:i,right:a,bottom:o,left:c}=t;return e.width<t.width?(c=t.left+(t.width-n)/2,a=c+n):e.height<t.height&&(i=t.top+(t.height-r)/2,o=i+r),{top:i,right:a,bottom:o,left:c}},savePreviousPan({x:t,y:e}={}){var r;if(this.image){const n=(r=this.image)==null?void 0:r.getBoundingClientRect(),i=this.getBounds(),[a,o,c,s]=[n.right-i.right,i.top-n.top,n.bottom-i.bottom,i.left-n.left].map(l=>l<0?l:0);this.frameMousePreviousPan={x:(t||this.frameMousePreviousPan.x)+s-a,y:(e||this.frameMousePreviousPan.y)+o-c}}},onSliderMouseDown(){var r,n;const t=(r=this.frame)==null?void 0:r.getBoundingClientRect(),e=(n=this.image)==null?void 0:n.getBoundingClientRect();this.zoomOrigin={x:((t==null?void 0:t.left)+(t==null?void 0:t.width)/2-(e==null?void 0:e.left))/this.zoomLevel,y:((t==null?void 0:t.top)+(t==null?void 0:t.height)/2-(e==null?void 0:e.top))/this.zoomLevel},this.isSliderActive=!0},onSliderMouseUp(){this.isSliderActive=!1},updateContentStyle(){var t,e,r;this.contentStyle={maxWidth:`${window.innerWidth-(((r=(e=(t=this.$refs)==null?void 0:t.frame)==null?void 0:e.getBoundingClientRect())==null?void 0:r.left)||0)}px`}},emitChange(){this.$emit("change",this.currentState)},getPointersMidPoint(t,e){return{x:t.clientX+(e.clientX-t.clientX)/2,y:t.clientY+(e.clientY-t.clientY)/2}},getPointersDistance(t,e){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)},updatePointerEvent(t){this.pointers[t.pointerId]=t},clearPointerEvent(t){this.$delete(this.pointers,t.pointerId)},updatePinchZoomOrigin(){const t=Object.values(this.pointers);if(t.length!==2)return;const e=this.getPointersMidPoint(...t);this.zoomOrigin={x:e.x/this.zoomLevel,y:e.y/this.zoomLevel}},updatePinchDistance(){const t=Object.values(this.pointers);t.length===2&&(this.pinchDistance=this.getPointersDistance(...t))},onPointerDown(t){if(!(!this.isMobile||this.foregroundStyle.zIndex==2)){if(this.updatePointerEvent(t),this.isPinching=Object.values(this.pointers).length===2,this.isPinching){this.isPanning=!1,this.updatePinchZoomOrigin(),this.updatePinchDistance();return}this.onMouseMove(t),this.onMousedown(t)}},onPointerMove(t){if(!(!this.isMobile||this.foregroundStyle.zIndex==2)){if(this.updatePointerEvent(t),this.isPinching){const e=this.pinchDistance;this.updatePinchDistance();const r=this.pinchDistance/e;r%1>.008&&this.zoom(r);return}this.onMouseMove(t)}},onPointerUp(t){if(!this.isMobile||this.foregroundStyle.zIndex==2)return;this.clearPointerEvent(t),this.onMouseUp(t);const e=new Date().getTime(),r=e-this.lastTapTime;r>100&&r<200&&this.zoom(this.zoomLevel>1?0:3),this.lastTapTime=e},getSnapshotSrc(){const t=this.$refs.image;return t==null?void 0:t.src}}}),Sd="";var Bc=function(){var n;var e=this,r=e._self._c;return r("div",e._b({directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],ref:"frame",staticClass:"zoomable-img e-flex e-justify-center e-items-center e-relative",class:{"zoomable-img--loading":!e.imageLoaded,"zoomable-img--zoomed":e.zoomLevel>1,"zoomable-img--panning":e.isPanning,"zoomable-img--disabled":e.disabled,"zoomable-img--portrait-frame":e.frameAspectRatio<e.imageAspectRatio,"zoomable-img--landscape-frame":e.frameAspectRatio>=e.imageAspectRatio,"zoomable-img--embedded":e.embedded,"zoomable-img--cover":e.cover},style:e.frameStyle,attrs:{"data-test-id":"zoomable-img-frame"},on:{wheel:e.onMouseWheel,mouseup:e.onMouseUp,mousedown:e.onMousedown,mousemove:e.onMouseMove,mouseenter:e.onMouseEnter,mouseleave:e.onMouseLeave,pointerdown:e.onPointerDown,pointermove:e.onPointerMove,pointerup:e.onPointerUp,pointercancel:e.onPointerUp,pointerout:e.onPointerUp,pointerleave:e.onPointerUp}},"div",e.$attrs,!1),[r("div",{staticClass:"zoomable-img__wrapper e-flex e-justify-center e-items-center",style:{...e.wrapperStyle,...e.wrapperExtraStyle},attrs:{"data-test-id":"zoomable-img-wrapper"}},[e.blurBackground&&e.imageLoaded&&e.backgroundSnapshotSrc?r("img",{class:e.isMobile?"zoomable-img__img-background-mobile":"zoomable-img__img-background",style:e.imgStyle,attrs:{src:e.backgroundSnapshotSrc,alt:e.alt}}):e._e(),r("img",e._g(e._b({directives:[{name:"show",rawName:"v-show",value:e.imageLoaded||!!e.placeholderImage,expression:"imageLoaded || !!placeholderImage"}],ref:"image",staticClass:"zoomable-img__img e-absolute",style:e.imgStyle,attrs:{src:(n=e.src)!=null?n:e.placeholderImage,alt:e.alt,crossorigin:"anonymous","data-test-id":"zoomable-img-image"},on:{load:e.onImageLoaded,error:e.onError}},"img",e.$props.imgProps,!1),e.$listeners))]),r("div",{staticClass:"zoomable-img__wrapper zoomable-img__wrapper--overlay e-flex e-justify-center e-items-center",style:{...e.wrapperStyle,...e.wrapperExtraStyle,...e.overlayStyle}},[r("div",{staticClass:"zoomable-img__img e-relative",style:{width:`${e.image?e.image.offsetWidth:0}px`,height:`${e.image?e.image.offsetHeight:0}px`,...e.imgStyle}},[e._t("imageOverlay",null,{state:e.currentState})],2)]),r("div",{ref:"foreground",staticClass:"zoomable-img__content e-flex e-justify-center e-items-center e-p-0",class:{"e-h-full":!e.embedded,"e-w-full":!e.embedded},style:{...e.contentStyle,...e.foregroundStyle},attrs:{id:"img-foreground","data-test-id":"zoomable-img-foreground"}},[e.imageLoaded?e._e():e._t("placeholder",null,{dataTestId:"zoomable-img-placeholder"}),e.showContent&&e.slotTransition?r("EFadeTransition",[e.showContent?e._t("default",null,{dataTestId:"zoomable-img-content"}):e._e()],2):e.showContent?e._t("default",null,{dataTestId:"zoomable-img-content"}):e._e(),r("EFadeTransition",[e.showContent&&e.slider&&e.allowZoom?r("div",{staticClass:"zoomable-img__slider-container",attrs:{"data-test-id":"zoomable-img-zoom-slider"}},[e._t("extraWidgets"),r("EZoomSlider",{attrs:{vertical:""},on:{mouseup:e.onSliderMouseUp,mousedown:e.onSliderMouseDown,"zoom-in":function(i){return e.zoom(-1)},"zoom-out":function(i){return e.zoom(1)}},model:{value:e.sliderModel,callback:function(i){e.sliderModel=i},expression:"sliderModel"}})],2):e._e()]),r("EFadeTransition",[e.showMiniature&&e.imageLoaded&&e.zoomLevel>1?r("div",{staticClass:"zoomable-img__miniature-container e-shadow",style:e.miniatureContainerStyle},[r("img",{ref:"miniatureImage",staticClass:"zoomable-img__miniature",attrs:{src:e.src,alt:e.alt}}),r("div",{staticClass:"zoomable-img__miniature-overlay",style:e.miniatureOverlayComputedStyle})]):e._e()])],2)])},Ic=[],Fc=H(zc,Bc,Ic,!1,null,null,null,null);const pn=Fc.exports,Ac=F.extend({name:"EImagePlayer",components:{EZoomableImg:pn},directives:{ResizeObserver:Ve},mixins:[Ue,Ge],model:{prop:"frameIndex",event:"update-frame-index"},props:{frames:{type:Array,required:!0},timePerFrame:{type:Number,default:500},isPlaying:{type:Boolean,default:!1},frameIndex:{type:Number,default:0},height:{type:[String,Number],default:0},initialQuality:{type:[String,Number],default:"auto"},preload:{type:Boolean,default:!0},preloadSize:{type:Number,default:10},resetIndexOnFramesChange:{type:Boolean,default:!1},preloadWhilePlaying:{type:Boolean,default:!0},withControls:{type:Boolean,default:!0},playOnClick:{type:Boolean,default:!0},disablePlayPauseAnimation:{type:Boolean,default:!1},disablePlayButton:{type:Boolean,default:!1},isLive:{type:Boolean,default:!1},selectedSnapshotQuality:{type:[String,Number],default:"auto"},placeholderImage:{type:String,default:""},isMobile:{type:Boolean,default:!1},isZoomable:{type:Boolean,default:!0},isAnnotationActive:{type:Boolean,default:!1},aspectRatio:{type:Number,default:null},preloadingQueueId:{type:Number,default:0}},data(){return{src:this.placeholderImage,imageLoaded:!1,playing:!1,playerStyle:{},image:null,previousSrc:"",resolveImageLoadingPromise:()=>({}),preloadedFrames:[],preloadingFramesImgs:[],frameError:!1,animationId:-1,imgStyle:{},previousFrameIndex:0,isFullscreen:!1,mouseDownTime:0,playPauseAnimation:!1,latestValidSnapshotTimestamp:"",progressBar:null,isDraggingCursor:!1,hovered:!1,mousePosition:{x:0,y:0},screenHeight:screen.height}},computed:{imgProps(){return{id:"zoomable-img__img",ref:"image",crossorigin:"anonymous",class:"zoomable-img__img e-absolute e-w-full e-h-full e-object-contain e-z-10 d-block",dataTestId:"zoomable-img-image"}},playerDimensions(){return{width:"100%",height:this.height}},isLastFrame(){return this.frameIndex===this.frames.length-1},altText(){var t,e;return`${((t=this.frames[this.frameIndex])==null?void 0:t.label)||""} ${((e=this.frames[this.frameIndex])==null?void 0:e.timestamp)||""}`},playedPercentage(){return this.isLastFrame?100:Math.abs(this.frameIndex/this.frames.length*100)},mouseToWidthRatio(){var t,e,r;return this.mousePosition.x/((r=(e=(t=this.progressBar)==null?void 0:t.getBoundingClientRect())==null?void 0:e.width)!=null?r:1)},hoverBarStyle(){return{width:`${100*this.mouseToWidthRatio}%`}},hoveredFrameIndex(){return Math.round(this.mouseToWidthRatio*(this.frames.length-1))},progressStyle(){return{width:`${100*((this.isDraggingCursor?this.hoveredFrameIndex:this.frameIndex)/(this.frames.length-1))}%`}},preloadedChunks(){const t=[...this.preloadedFrames];return t.sort((e,r)=>e>r?1:-1),t.reduce((e,r)=>{if(!e.length)return[[r,r]];const[n,i]=e.slice(-1)[0]||[0,0];return r-i>1?[...e,[r,r]]:[...e.slice(0,-1),[n,r]]},[])}},watch:{frames:{handler(){var t;this.src=((t=this.frames[this.frameIndex])==null?void 0:t.src)||"",this.resetIndexOnFramesChange&&this.$emit("update-frame-index",0),this.imageLoaded=!0,this.preloadedFrames=[],this.flushPreloadingQueue(),this.$setTimeout(async()=>{this.updateRefs(),await this.loadTargetFrame(),this.handleBuffering()})},immediate:!0,deep:!0},isLastFrame(t){t&&this.$emit("frames-ended")},frameIndex:{immediate:!0,async handler(){this.frameIndex&&this.frameIndex===this.previousFrameIndex||(Number.isNaN(this.frameIndex)&&this.$emit("update-frame-index",0),this.frameIndex===0&&(this.previousFrameIndex=this.frameIndex),this.isLastFrame&&!this.isLive&&(this.playing=!1),this.playing||(this.cancelDelay(),await this.loadTargetFrame(),this.handleBuffering()))}},playing:{immediate:!0,async handler(t){t?this.play():this.pause(),this.animatePlayPauseOverlay()}},preloadedFrames:{handler(t,e){this.$emit("preloaded-frames-change",t)}},isPlaying:{immediate:!0,async handler(){this.playing=this.isPlaying}},selectedSnapshotQuality(){var t;this.src=(t=this.getFrameSrc(this.frames[this.frameIndex]))!=null?t:this.frames[this.frameIndex].src},isLive:{immediate:!0,handler(t){var e;t||(this.src=(e=this.frames[this.frameIndex])==null?void 0:e.src)}},imageLoaded(t){this.$emit("loading",!t)}},mounted(){this.$setTimeout(()=>{this.initializeFullscreenListeners(),this.progressBar=this.$refs.progressBar,this.$addEventListener("keydown",this.handleKeyDown)})},beforeDestroy(){this.cancelDelay(),this.flushPreloadingQueue(),this.removeFullscreenListeners()},methods:{getProgressBarMousePosition(t){var r;if(!this.progressBar)return{x:0,y:0};const e=(r=this.progressBar)==null?void 0:r.getBoundingClientRect();return{x:t.clientX-e.x,y:t.clientY-e.y}},onProgressBarMouseEnter(){this.hovered=!0},onProgressBarMouseMove(t){this.mousePosition=this.getProgressBarMousePosition(t)},onProgressBarMouseLeave(){this.hovered=!1,this.isDraggingCursor=!1},onProgressBarClick(){this.$emit("update-frame-index",this.hoveredFrameIndex),this.$emit("seek",this.hoveredFrameIndex)},getProgressBarChunkStyle(t,e){const[r,n]=[100*t/(this.frames.length-1),100*e/(this.frames.length-1)];return{left:`${r}%`,width:`${n-r}%`}},animatePlayPauseOverlay(){this.disablePlayPauseAnimation||(this.playPauseAnimation=!0,this.$setTimeout(()=>this.playPauseAnimation=!1,500))},isImageClick(t){const e=t==null?void 0:t.target;return e?e&&(e.id==="img-foreground"||typeof e.className=="string"&&e.className.indexOf("zoomable-img__img")!==-1):!1},onFrameMouseDown(t){!this.isImageClick(t)||!this.playOnClick||(this.mouseDownTime=new Date().getTime())},onFrameMouseUp(t){this.isLastFrame||this.disablePlayButton||!this.playOnClick||this.isAnnotationActive||!this.isImageClick(t)||new Date().getTime()-this.mouseDownTime>200||(this.playing=!this.playing)},removeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.removeEventListener("fullscreenchange",this.handleFullscreenChange),t.removeEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.removeEventListener("mozfullscreenchange",this.handleFullscreenChange),t.removeEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},initializeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.addEventListener("fullscreenchange",this.handleFullscreenChange),t.addEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.addEventListener("mozfullscreenchange",this.handleFullscreenChange),t.addEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},handleFullscreenChange(){const t=document;this.isFullscreen=!!t.fullscreenElement||!!t.mozFullScreenElement||!!t.webkitFullscreenElement||!!t.msFullscreenElement||window.innerWidth==screen.width&&window.innerHeight==screen.height},closeFullscreenMode(){document.fullscreenElement&&(Yr().then(()=>{this.isFullscreen=!1}),this.isFullscreen=!1)},openFullscreenMode(){const t=document.querySelector("#imagePlayer");t&&(Zr(t).then(()=>{this.isFullscreen=!0}),this.isFullscreen=!0)},toggleFullscreenMode(){this.isFullscreen?this.closeFullscreenMode():this.openFullscreenMode()},updateRefs(){var t,e,r;this.image=(r=(e=(t=this.$refs)==null?void 0:t.zoomableImage)==null?void 0:e.$refs)==null?void 0:r.image},incrementCurrentFrameIndex(){const t=this.frameIndex+1;this.frames[t]&&this.$emit("update-frame-index",t)},getFrameSrc(t){if(t)return t.srcSet?t.srcSet[this.selectedSnapshotQuality]:t.src},loadTargetFrame(){if(!(this.frameIndex&&this.frameIndex===this.previousFrameIndex))return new Promise(t=>{this.updateRefs(),this.previousSrc=this.src,this.previousFrameIndex=this.frameIndex,this.resolveImageLoadingPromise=t,this.src=this.getFrameSrc(this.frames[this.frameIndex])})},async handleBuffering(){this.preload&&await this.buffer()},async buffer(){let t=this.frameIndex+this.preloadSize;this.preloadSize===1/0&&(t=this.frames.length-1),await this.preloadFrames({start:this.frameIndex,end:t})},async preloadFrames({start:t,end:e}){const[r,n]=[Math.min(this.frames.length-1,t),Math.min(this.frames.length-1,e)],i=new Array(n-r+1).fill(0).map((o,c)=>o+r+c),a=this.preloadingQueueId;for(const o of i){if(a!==this.preloadingQueueId||this.playing&&!this.preloadWhilePlaying)return;this.preloadedFrames.includes(o)||await new Promise(s=>{const l=new Image;l.onload=()=>{this.preloadedFrames=[...this.preloadedFrames,o],s()},l.onerror=()=>{s()},this.preloadingFramesImgs=[...this.preloadingFramesImgs,l];const d=this.getFrameSrc(this.frames[o]);o||s(),l.src=d})}},async delay(){return this.frameError?(this.frameError=!1,Promise.resolve()):new Promise(t=>{const e=performance.now(),r=n=>{n-e<this.timePerFrame?this.animationId=window.requestAnimationFrame(r):t()};this.animationId=window.requestAnimationFrame(r)})},cancelDelay(){window.cancelAnimationFrame(this.animationId)},async play(){var r,n;const t=performance.now();if(this.isLastFrame&&!this.isLive){this.$emit("update-frame-index",0);return}this.$emit("update-playback",!0),this.playing=!0,this.cancelDelay(),this.incrementCurrentFrameIndex(),await this.$nextTick(),await this.loadTargetFrame(),this.handleBuffering(),await this.delay(),this.playing&&this.play();const e=performance.now();this.$emit("performance-intervals-changed",{id:(r=this.frames[this.frameIndex])==null?void 0:r.timestamp,frame:(n=this.frames[this.frameIndex])==null?void 0:n.label,duration:e-t})},flushPreloadingQueue(){this.$emit("cancel-previous-preloading"),this.preloadingFramesImgs.forEach(t=>{t.src=""}),this.preloadingFramesImgs=[]},async pause(){this.playing=!1,this.imageLoaded=!0,this.src=this.previousSrc,this.cancelDelay(),this.handleBuffering(),this.$emit("update-playback",!1)},onLoad(){var e,r,n,i;this.$emit("on-image-load",this.image),this.$emit("snapshot-changed",{data:(e=this.frames[this.frameIndex])==null?void 0:e.src,createdAt:(r=this.frames[this.frameIndex])==null?void 0:r.timestamp});const t=(i=(n=this.frames)==null?void 0:n[this.frameIndex])==null?void 0:i.timestamp;t&&this.$emit("timestamp-change",t),this.imageLoaded=!0,this.previousSrc=this.src,this.resolveImageLoadingPromise()},onError(t){if(this.frameIndex>1)return this.$emit("update-frame-index",this.frameIndex-1);this.frameError=!0,this.src=this.previousSrc,this.resolveImageLoadingPromise(),this.$emit("error",t)},onChange(t){this.$emit("change",t)},onBeforeUpdate(t){this.$emit("hook:beforeUpdate",t)},onBeforeDestroy(t){this.$emit("hook:beforeDestroy",t)},togglePlay(){this.playing=!this.playing},handleKeyDown(t){var r;const e=(r=document.activeElement)==null?void 0:r.tagName.toLowerCase();if(!(e==="input"||this.isAnnotationActive))switch(t.key.toLowerCase()){case" ":if(e==="button")return;this.disablePlayButton||this.togglePlay();break;case"escape":t.preventDefault(),this.closeFullscreenMode(),this.isFullscreen=!1;break}}}}),Td="";var Rc=function(){var n,i;var e=this,r=e._self._c;return r("div",{staticClass:"e-image-player player e-h-full e-w-full",style:e.playerDimensions,attrs:{id:"imagePlayer"}},[r("div",{staticClass:"player__frames player-container",style:e.playerDimensions,attrs:{id:"img-container"},on:{pointerdown:e.onFrameMouseDown,pointerup:e.onFrameMouseUp}},[r("div",{staticClass:"e-h-full e-w-full e-shrink-0 e-relative"},[r("img",{staticClass:"e-absolute e-block e-w-full e-h-full background-fade",attrs:{src:e.src||((n=e.frames[e.frameIndex])==null?void 0:n.src)||"",alt:"background-image"}}),r("EZoomableImg",e._g(e._b({directives:[{name:"show",rawName:"v-show",value:e.imageLoaded&&e.src||e.placeholderImage,expression:"(imageLoaded && src) || placeholderImage"}],ref:"zoomableImage",attrs:{"img-props":{imgProps:e.imgProps},"overlay-style":{zIndex:1},src:e.src||((i=e.frames[e.frameIndex])==null?void 0:i.src)||e.placeholderImage||"",alt:e.altText,"hide-content-on-blur":!1,height:e.height.split("px")[0],"placeholder-image":e.placeholderImage,slider:!1,"is-mobile":e.isMobile,disabled:!e.isZoomable,"is-annotation-active":e.isAnnotationActive,"blur-background":""},on:{load:e.onLoad,error:e.onError,change:e.onChange,"hook:beforeUpdate":e.onBeforeUpdate,"hook:beforeDestroy":e.onBeforeDestroy},scopedSlots:e._u([{key:"imageOverlay",fn:function(){return[e._t("default"),e._t("imageOverlay",null,{image:e.image})]},proxy:!0}],null,!0)},"EZoomableImg",e.$attrs,!1),e.$listeners),[e._t("player-container-overlay")],2),e.playPauseAnimation?r("div",{staticClass:"image-player-overlay e-flex e-items-center e-justify-center"},[r("div",{staticClass:"image-player-overlay__wrapper"},[e.playing?r("svg",{attrs:{height:"100%",viewBox:"-1 0 36 36",width:"100%"}},[r("path",{attrs:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}})]):r("svg",{attrs:{height:"100%",viewBox:"0.5 0 36 36",width:"100%"}},[r("path",{attrs:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}})])])]):e._e(),e._t("imagePlayerOverlay")],2)]),e._t("controls",function(){return[e.withControls?r("div",{staticClass:"e-absolute e-bottom-0 e-w-[97%] e-p-4 e-pt-8 e-z-50 e-space-y-4 e-bg-gradient-to-t e-from-[#363434] e-to-transparent"},[r("div",{staticClass:"e-font-semibold e-text-white"},[e._v(" "+e._s(e.frames[e.frameIndex].label)+" - "+e._s(e.frameIndex)+" / "+e._s(e.frames.length-1)+" ")]),r("div",{staticClass:"e-flex e-justify-start e-gap-2 e-items-center"},[r("button",{staticClass:"e-text-white e-bg-transparent e-border-none e-cursor-pointer action-btn__first-vertical e-rounded-md",on:{click:e.togglePlay}},[r("i",{staticClass:"fas fa-2x",class:{"fa-play":!e.playing,"fa-pause":e.playing}})]),r("div",{ref:"progressBar",staticClass:"e-w-full e-h-3 e-relative e-bg-gray-200 e-rounded-md",on:{click:e.onProgressBarClick,mouseenter:e.onProgressBarMouseEnter,mousemove:e.onProgressBarMouseMove,mouseleave:e.onProgressBarMouseLeave}},[r("div",{staticClass:"e-bg-blue-500 e-w-full e-h-full e-absolute e-rounded-md e-z-[1]",style:{width:`${e.playedPercentage}%`}}),e._l(e.preloadedChunks,function([a,o]){return r("div",{key:o,staticClass:"e-bg-blue-300 e-h-full e-absolute e-rounded-md",style:e.getProgressBarChunkStyle(a,o)})})],2),r("button",{ref:"fullScreenBtn",staticClass:"e-text-white e-bg-transparent e-border-none e-cursor-pointer action-btn__second-vertical e-rounded-md",on:{click:e.toggleFullscreenMode}},[r("i",{staticClass:"fas fa-2x",class:{"fa-expand":!e.isFullscreen,"fa-compress":e.isFullscreen}})])])]):e._e()]},{playing:e.playing,togglePlay:e.togglePlay,play:e.play,pause:e.pause,toggleFullscreen:e.toggleFullscreenMode,preloadedFrames:e.preloadedFrames,isLastFrame:e.isLastFrame})],2)},Hc=[],Nc=H(Ac,Rc,Hc,!1,null,null,null,null);const ps=Nc.exports,jc=F.extend({name:"ELayout",directives:{ResizeObserver:Ve},mixins:[Ue],props:{height:{type:[String,Number],default:null},withOverlay:{type:Boolean,default:!1}},data(){return{footerHeight:0,overlayFooterHeight:0,wrapperStyle:{width:"100%",height:"100%"},mainStyle:{width:"100%",height:"100%"},mainHeight:"100%"}},computed:{bottomStyle(){return{bottom:`${this.overlayFooterHeight}px`}}},watch:{mainHeight(){this.onResize()},height:{immediate:!0,handler(){this.onResize()}}},mounted(){this.setOverlayFooterHeight(),this.setFooterHeight()},methods:{onResize(){this.setFooterHeight(),this.setOverlayFooterHeight()},onOverlayClick(t){this.$emit("overlay-click",t)},setOverlayFooterHeight(){const t=this.$refs.overlayFooter;t||this.$setTimeout(()=>{this.setOverlayFooterHeight()}),this.overlayFooterHeight=t==null?void 0:t.clientHeight},setFooterHeight(){const t=this.$refs.footer;t||this.$setTimeout(()=>{this.setFooterHeight()}),this.footerHeight=t==null?void 0:t.clientHeight,this.$attrs.isFullscreen?this.mainHeight=`${screen.height}px`:this.mainHeight=`${this.height?this.height.split("px")[0]-this.footerHeight:"100"}px`,this.mainStyle={width:"100%",height:this.mainHeight}}}});var Gc=function(){var e=this,r=e._self._c;return r("div",e._b({directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],ref:"globalLayout",staticClass:"e-layout e-w-full e-h-full e-relative",style:{width:"100%",height:e.mainHeight},attrs:{id:"globalLayout"}},"div",e.$attrs,!1),[r("div",{staticClass:"e-layout__container e-relative",style:e.mainStyle},[r("div",{staticClass:"e-layout__main e-w-full e-h-full e-absolute e-inset-0 e-z-0",style:e.mainStyle},[e._t("main",null,{size:{...e.mainStyle}})],2),e.withOverlay?r("div",{staticClass:"e-layout__overlay e-w-full e-h-full e-absolute e-inset-0 e-z-[1]",style:e.mainStyle,on:{click:e.onOverlayClick}},[e._t("overlay",null,{size:{...e.mainStyle}})],2):e._e(),r("div",{staticClass:"e-layout__top-left e-absolute e-left-0 e-top-0 e-z-[2]"},[e._t("top-left")],2),r("div",{staticClass:"e-absolute e-right-0 e-top-0 e-layout__top-right e-z-[2]"},[e._t("top-right")],2),r("div",{staticClass:"e-absolute e-right-0 e-bottom-10 e-layout__bottom-right e-z-[2]",style:e.bottomStyle},[e._t("bottom-right")],2),r("div",{staticClass:"e-absolute e-left-0 e-bottom-10 e-layout__bottom-left e-z-[2]",style:e.bottomStyle},[e._t("bottom-left")],2),r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.setOverlayFooterHeight,expression:"setOverlayFooterHeight"}],ref:"overlayFooter",staticClass:"e-absolute e-bottom-0 e-left-0 e-right-0 e-layout__overlay-footer e-z-[2]"},[e._t("overlay-footer")],2)]),r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.setFooterHeight,expression:"setFooterHeight"}],ref:"footer",staticClass:"e-layout__footer e-relative e-z-[2]"},[e._t("footer")],2)])},qc=[],Wc=H(jc,Gc,qc,!1,null,null,null,null);const ms=Wc.exports;var Uc=H({name:"EContextProvider",provide(){return{...this.$props.context}},props:{context:{type:Object,required:!0}},render(){return this.$scopedSlots.default()}},null,null,!1,null,null,null,null);const Zc=Uc.exports,Yc=F.extend({name:"EChatWrapper",props:{dark:{type:Boolean,default:!1},embedded:{type:Boolean,default:!1}},computed:{borderClasses(){return this.embedded?{}:{"e-border-[1px] e-border-solid e-rounded-lg e-overflow-hidden":!0,"e-border-gray-300":!this.dark,"e-border-gray-600":this.dark}},wrapperClasses(){return{"e-bg-gray-800 e-text-white":this.dark,"e-bg-white e-text-gray-800":!this.dark,...this.borderClasses}}}}),Md="";var Xc=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-wrapper e-h-full",class:e.wrapperClasses},[e._t("default")],2)},Vc=[],Qc=H(Yc,Xc,Vc,!1,null,null,null,null);const Kc=Qc.exports,Jc=F.extend({name:"EChatHeader",components:{EAvatar:Mt},props:{size:{type:String,default:"xs"},backgroundClasses:{type:String,default:""}}}),Ld="";var eu=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EAvatar",{staticClass:"e-evercam-logo",attrs:{image:"https://dash.evercam.io/evercam-logo.svg",size:e.size,"background-classes":e.backgroundClasses}})},tu=[],ru=H(Jc,eu,tu,!1,null,null,null,null);const gs=ru.exports,nu=F.extend({name:"EChatHeader",components:{EEvercamLogo:gs},props:{title:{type:String,default:"Evercam Copilot"},hidden:{type:Boolean,default:!1},dark:{type:Boolean,default:!1}},computed:{backgroundClasses(){return{"e-bg-gray-700":this.dark,"e-bg-gray-50":!this.dark}},headerClasses(){return{"e-hidden":this.hidden,...this.backgroundClasses}}}});var iu=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-header e-flex e-items-center e-justify-between",class:e.headerClasses},[r("div",{staticClass:"e-chat-logo e-flex e-w-full e-items-center e-justify-start e-gap-2 e-px-5 e-py-4"},[e._t("logo",function(){return[r("div",{},[r("EEvercamLogo",{attrs:{size:"xs","background-classes":"e-bg-white e-p-[2px] e-rounded-full !e-pr-[2.5px] !e-pt-[3.5px]"}})],1)]}),r("div",{staticClass:"e-font-semibold e-h-min e-text-base"},[e._v(e._s(e.title))]),e._t("chip")],2),e._t("append")],2)},su=[],au=H(nu,iu,su,!1,null,null,null,null);const ou=au.exports,lu=F.extend({name:"EChatBody",directives:{ResizeObserver:Ve},props:{dark:{type:Boolean,default:!1}},data(){return{autoScroll:!0,previousChildCount:0,showGoToBottomButton:!1}},computed:{bodyClasses(){return{"e-custom-scrollbar--light":!this.dark,"e-custom-scrollbar--dark":this.dark}},goToBottomButtonClasses(){return{"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"e-bg-gray-600":this.dark,"e-bg-gray-200":!this.dark}}},watch:{autoScroll(t){t&&this.scrollToBottom()}},mounted(){this.scrollToBottom()},methods:{onContentResized(){const e=this.$refs.contentWrapper.childElementCount;e!==this.previousChildCount&&(this.autoScroll=!0),this.autoScroll&&this.scrollToBottom(),this.previousChildCount=e},scrollToBottom(){const t=this.$refs.anchor;this.$nextTick(()=>{t.scrollIntoView({behavior:"smooth"})})},disableAutoScroll(){this.autoScroll=!1},onScroll(){const t=this.$refs.chatBody;t.scrollHeight-t.scrollTop<=t.clientHeight+1&&(this.autoScroll=!0),this.showGoToBottomButton=t.scrollHeight-t.scrollTop>t.clientHeight+100},onWheel(t){t.deltaY<0&&this.disableAutoScroll()},onKeyUp(t){["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(t.key)&&this.disableAutoScroll()},onTouch(){this.disableAutoScroll()},onTouchMove(){this.disableAutoScroll()}}}),Dd="";var cu=function(){var e=this,r=e._self._c;return r("div",e._b({ref:"chatBody",staticClass:"e-chat-body e-space-y-2 e-py-3 e-px-5 e-leading-6",class:e.bodyClasses,attrs:{tabindex:"0"},on:{scroll:e.onScroll,wheel:e.onWheel,keyup:function(n){return n.stopPropagation(),e.onKeyUp.apply(null,arguments)},touchstart:e.onTouch,touchmove:e.onTouchMove}},"div",e.$attrs,!1),[r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onContentResized,expression:"onContentResized"}],ref:"contentWrapper",staticClass:"e-chat-body__content"},[e._t("default")],2),r("div",{ref:"anchor",staticClass:"e-chat-body__anchor"}),e.showGoToBottomButton?r("div",{staticClass:"e-chat-body__go-to-bottom e-sticky e-bottom-1 e-flex e-justify-center"},[r("button",{staticClass:"e-animate-bounce e-inline-flex e-items-center e-justify-center e-cursor-pointer e-h-8 e-w-8 e-border-none focus:e-outline-none e-rounded-full",class:e.goToBottomButtonClasses,on:{click:e.scrollToBottom}},[r("EIcon",{attrs:{icon:"arrow-down",size:"Base"}})],1)]):e._e()])},uu=[],du=H(lu,cu,uu,!1,null,null,null,null);const hu=du.exports,fu=F.extend({props:{size:{type:Number,default:12},color:{type:String,default:"#c5393d"},withDot:{type:Boolean,default:!0}},computed:{computedSize(){return`${this.size}px`},computedMargin(){return`${this.size/2}px`},computedShadowSize(){return`${this.size*2}px`},computedSecondaryColor(){return ht(this.color,0)||"#fff"},dotContainerStyle(){return{margin:`${this.computedMargin} auto`,width:this.computedSize,height:this.computedSize,position:"relative"}},shadowStyle(){return{width:this.computedSize,height:this.computedSize,"--boxShadowColor":ht(this.color,.7),"--backgroundColor":ht(this.color,.7),"--secondaryColor":this.computedSecondaryColor,"--shadowSize":this.computedShadowSize}},secondShadowStyle(){return{...this.shadowStyle,animationDelay:".33s",animationDuration:"2.3s"}},dotStyle(){return{width:this.computedSize,height:this.computedSize,backgroundColor:this.withDot?ht(this.color,1):void 0}}},methods:{toRgba:ht}}),Pd="";var pu=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-pulsating-dot",style:e.dotContainerStyle},[r("span",{staticClass:"e-pulsating-dot__shadow",style:e.shadowStyle}),r("span",{staticClass:"e-pulsating-dot__shadow",style:e.secondShadowStyle}),r("div",{staticClass:"e-pulsating-dot__dot",style:e.dotStyle},[e._t("icon")],2)])},mu=[],gu=H(fu,pu,mu,!1,null,"cf575c64",null,null);const vu=gu.exports;var vs={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(typeof self!="undefined"?self:ot,()=>(()=>{var r={75:function(o){(function(){var c,s,l,d,f,m;typeof performance!="undefined"&&performance!==null&&performance.now?o.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(o.exports=function(){return(c()-f)/1e6},s=process.hrtime,d=(c=function(){var b;return 1e9*(b=s())[0]+b[1]})(),m=1e9*process.uptime(),f=d-m):Date.now?(o.exports=function(){return Date.now()-l},l=Date.now()):(o.exports=function(){return new Date().getTime()-l},l=new Date().getTime())}).call(this)},4087:(o,c,s)=>{for(var l=s(75),d=typeof window=="undefined"?s.g:window,f=["moz","webkit"],m="AnimationFrame",b=d["request"+m],x=d["cancel"+m]||d["cancelRequest"+m],h=0;!b&&h<f.length;h++)b=d[f[h]+"Request"+m],x=d[f[h]+"Cancel"+m]||d[f[h]+"CancelRequest"+m];if(!b||!x){var y=0,$=0,D=[];b=function(S){if(D.length===0){var R=l(),E=Math.max(0,16.666666666666668-(R-y));y=E+R,setTimeout(function(){var j=D.slice(0);D.length=0;for(var Q=0;Q<j.length;Q++)if(!j[Q].cancelled)try{j[Q].callback(y)}catch(U){setTimeout(function(){throw U},0)}},Math.round(E))}return D.push({handle:++$,callback:S,cancelled:!1}),$},x=function(S){for(var R=0;R<D.length;R++)D[R].handle===S&&(D[R].cancelled=!0)}}o.exports=function(S){return b.call(d,S)},o.exports.cancel=function(){x.apply(d,arguments)},o.exports.polyfill=function(S){S||(S=d),S.requestAnimationFrame=b,S.cancelAnimationFrame=x}}},n={};function i(o){var c=n[o];if(c!==void 0)return c.exports;var s=n[o]={exports:{}};return r[o].call(s.exports,s,s.exports,i),s.exports}i.n=o=>{var c=o&&o.__esModule?()=>o.default:()=>o;return i.d(c,{a:c}),c},i.d=(o,c)=>{for(var s in c)i.o(c,s)&&!i.o(o,s)&&Object.defineProperty(o,s,{enumerable:!0,get:c[s]})},i.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),i.o=(o,c)=>Object.prototype.hasOwnProperty.call(o,c);var a={};return(()=>{i.d(a,{default:()=>X});var o=i(4087),c=i.n(o);const s=function(I){return new RegExp(/<[a-z][\s\S]*>/i).test(I)},l=function(I,T){return Math.floor(Math.random()*(T-I+1))+I};var d="TYPE_CHARACTER",f="REMOVE_CHARACTER",m="REMOVE_ALL",b="REMOVE_LAST_VISIBLE_NODE",x="PAUSE_FOR",h="CALL_FUNCTION",y="ADD_HTML_TAG_ELEMENT",$="CHANGE_DELETE_SPEED",D="CHANGE_DELAY",S="CHANGE_CURSOR",R="PASTE_STRING",E="HTML_TAG";function j(I){return j=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},j(I)}function Q(I,T){var P=Object.keys(I);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(I);T&&(N=N.filter(function(ne){return Object.getOwnPropertyDescriptor(I,ne).enumerable})),P.push.apply(P,N)}return P}function U(I){for(var T=1;T<arguments.length;T++){var P=arguments[T]!=null?arguments[T]:{};T%2?Q(Object(P),!0).forEach(function(N){L(I,N,P[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(P)):Q(Object(P)).forEach(function(N){Object.defineProperty(I,N,Object.getOwnPropertyDescriptor(P,N))})}return I}function C(I){return function(T){if(Array.isArray(T))return z(T)}(I)||function(T){if(typeof Symbol!="undefined"&&T[Symbol.iterator]!=null||T["@@iterator"]!=null)return Array.from(T)}(I)||function(T,P){if(T){if(typeof T=="string")return z(T,P);var N=Object.prototype.toString.call(T).slice(8,-1);return N==="Object"&&T.constructor&&(N=T.constructor.name),N==="Map"||N==="Set"?Array.from(T):N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)?z(T,P):void 0}}(I)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
243
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function z(I,T){(T==null||T>I.length)&&(T=I.length);for(var P=0,N=new Array(T);P<T;P++)N[P]=I[P];return N}function W(I,T){for(var P=0;P<T.length;P++){var N=T[P];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(I,Y(N.key),N)}}function L(I,T,P){return(T=Y(T))in I?Object.defineProperty(I,T,{value:P,enumerable:!0,configurable:!0,writable:!0}):I[T]=P,I}function Y(I){var T=function(P,N){if(j(P)!=="object"||P===null)return P;var ne=P[Symbol.toPrimitive];if(ne!==void 0){var _=ne.call(P,"string");if(j(_)!=="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(P)}(I);return j(T)==="symbol"?T:String(T)}const X=function(){function I(N,ne){var _=this;if(function(A,B){if(!(A instanceof B))throw new TypeError("Cannot call a class as a function")}(this,I),L(this,"state",{cursorAnimation:null,lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null,elements:{container:null,wrapper:document.createElement("span"),cursor:document.createElement("span")}}),L(this,"options",{strings:null,cursor:"|",delay:"natural",pauseFor:1500,deleteSpeed:"natural",loop:!1,autoStart:!1,devMode:!1,skipAddStyles:!1,wrapperClassName:"Typewriter__wrapper",cursorClassName:"Typewriter__cursor",stringSplitter:null,onCreateTextNode:null,onRemoveNode:null}),L(this,"setupWrapperElement",function(){_.state.elements.container&&(_.state.elements.wrapper.className=_.options.wrapperClassName,_.state.elements.cursor.className=_.options.cursorClassName,_.state.elements.cursor.innerHTML=_.options.cursor,_.state.elements.container.innerHTML="",_.state.elements.container.appendChild(_.state.elements.wrapper),_.state.elements.container.appendChild(_.state.elements.cursor))}),L(this,"start",function(){return _.state.eventLoopPaused=!1,_.runEventLoop(),_}),L(this,"pause",function(){return _.state.eventLoopPaused=!0,_}),L(this,"stop",function(){return _.state.eventLoop&&((0,o.cancel)(_.state.eventLoop),_.state.eventLoop=null),_}),L(this,"pauseFor",function(A){return _.addEventToQueue(x,{ms:A}),_}),L(this,"typeOutAllStrings",function(){return typeof _.options.strings=="string"?(_.typeString(_.options.strings).pauseFor(_.options.pauseFor),_):(_.options.strings.forEach(function(A){_.typeString(A).pauseFor(_.options.pauseFor).deleteAll(_.options.deleteSpeed)}),_)}),L(this,"typeString",function(A){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(s(A))return _.typeOutHTMLString(A,B);if(A){var w=(_.options||{}).stringSplitter,q=typeof w=="function"?w(A):A.split("");_.typeCharacters(q,B)}return _}),L(this,"pasteString",function(A){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return s(A)?_.typeOutHTMLString(A,B,!0):(A&&_.addEventToQueue(R,{character:A,node:B}),_)}),L(this,"typeOutHTMLString",function(A){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,w=arguments.length>2?arguments[2]:void 0,q=function(ce){var le=document.createElement("div");return le.innerHTML=ce,le.childNodes}(A);if(q.length>0)for(var V=0;V<q.length;V++){var M=q[V],re=M.innerHTML;M&&M.nodeType!==3?(M.innerHTML="",_.addEventToQueue(y,{node:M,parentNode:B}),w?_.pasteString(re,M):_.typeString(re,M)):M.textContent&&(w?_.pasteString(M.textContent,B):_.typeString(M.textContent,B))}return _}),L(this,"deleteAll",function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"natural";return _.addEventToQueue(m,{speed:A}),_}),L(this,"changeDeleteSpeed",function(A){if(!A)throw new Error("Must provide new delete speed");return _.addEventToQueue($,{speed:A}),_}),L(this,"changeDelay",function(A){if(!A)throw new Error("Must provide new delay");return _.addEventToQueue(D,{delay:A}),_}),L(this,"changeCursor",function(A){if(!A)throw new Error("Must provide new cursor");return _.addEventToQueue(S,{cursor:A}),_}),L(this,"deleteChars",function(A){if(!A)throw new Error("Must provide amount of characters to delete");for(var B=0;B<A;B++)_.addEventToQueue(f);return _}),L(this,"callFunction",function(A,B){if(!A||typeof A!="function")throw new Error("Callback must be a function");return _.addEventToQueue(h,{cb:A,thisArg:B}),_}),L(this,"typeCharacters",function(A){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!A||!Array.isArray(A))throw new Error("Characters must be an array");return A.forEach(function(w){_.addEventToQueue(d,{character:w,node:B})}),_}),L(this,"removeCharacters",function(A){if(!A||!Array.isArray(A))throw new Error("Characters must be an array");return A.forEach(function(){_.addEventToQueue(f)}),_}),L(this,"addEventToQueue",function(A,B){var w=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return _.addEventToStateProperty(A,B,w,"eventQueue")}),L(this,"addReverseCalledEvent",function(A,B){var w=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return _.options.loop?_.addEventToStateProperty(A,B,w,"reverseCalledEvents"):_}),L(this,"addEventToStateProperty",function(A,B){var w=arguments.length>2&&arguments[2]!==void 0&&arguments[2],q=arguments.length>3?arguments[3]:void 0,V={eventName:A,eventArgs:B||{}};return _.state[q]=w?[V].concat(C(_.state[q])):[].concat(C(_.state[q]),[V]),_}),L(this,"runEventLoop",function(){_.state.lastFrameTime||(_.state.lastFrameTime=Date.now());var A=Date.now(),B=A-_.state.lastFrameTime;if(!_.state.eventQueue.length){if(!_.options.loop)return;_.state.eventQueue=C(_.state.calledEvents),_.state.calledEvents=[],_.options=U({},_.state.initialOptions)}if(_.state.eventLoop=c()(_.runEventLoop),!_.state.eventLoopPaused){if(_.state.pauseUntil){if(A<_.state.pauseUntil)return;_.state.pauseUntil=null}var w,q=C(_.state.eventQueue),V=q.shift();if(!(B<=(w=V.eventName===b||V.eventName===f?_.options.deleteSpeed==="natural"?l(40,80):_.options.deleteSpeed:_.options.delay==="natural"?l(120,160):_.options.delay))){var M=V.eventName,re=V.eventArgs;switch(_.logInDevMode({currentEvent:V,state:_.state,delay:w}),M){case R:case d:var ce=re.character,le=re.node,ie=document.createTextNode(ce),he=ie;_.options.onCreateTextNode&&typeof _.options.onCreateTextNode=="function"&&(he=_.options.onCreateTextNode(ce,ie)),he&&(le?le.appendChild(he):_.state.elements.wrapper.appendChild(he)),_.state.visibleNodes=[].concat(C(_.state.visibleNodes),[{type:"TEXT_NODE",character:ce,node:he}]);break;case f:q.unshift({eventName:b,eventArgs:{removingCharacterNode:!0}});break;case x:var Se=V.eventArgs.ms;_.state.pauseUntil=Date.now()+parseInt(Se);break;case h:var oe=V.eventArgs,ye=oe.cb,Ae=oe.thisArg;ye.call(Ae,{elements:_.state.elements});break;case y:var Be=V.eventArgs,$e=Be.node,Te=Be.parentNode;Te?Te.appendChild($e):_.state.elements.wrapper.appendChild($e),_.state.visibleNodes=[].concat(C(_.state.visibleNodes),[{type:E,node:$e,parentNode:Te||_.state.elements.wrapper}]);break;case m:var Me=_.state.visibleNodes,Ee=re.speed,Le=[];Ee&&Le.push({eventName:$,eventArgs:{speed:Ee,temp:!0}});for(var De=0,et=Me.length;De<et;De++)Le.push({eventName:b,eventArgs:{removingCharacterNode:!1}});Ee&&Le.push({eventName:$,eventArgs:{speed:_.options.deleteSpeed,temp:!0}}),q.unshift.apply(q,Le);break;case b:var Ke=V.eventArgs.removingCharacterNode;if(_.state.visibleNodes.length){var lt=_.state.visibleNodes.pop(),Tt=lt.type,Ze=lt.node,pt=lt.character;_.options.onRemoveNode&&typeof _.options.onRemoveNode=="function"&&_.options.onRemoveNode({node:Ze,character:pt}),Ze&&Ze.parentNode.removeChild(Ze),Tt===E&&Ke&&q.unshift({eventName:b,eventArgs:{}})}break;case $:_.options.deleteSpeed=V.eventArgs.speed;break;case D:_.options.delay=V.eventArgs.delay;break;case S:_.options.cursor=V.eventArgs.cursor,_.state.elements.cursor.innerHTML=V.eventArgs.cursor}_.options.loop&&(V.eventName===b||V.eventArgs&&V.eventArgs.temp||(_.state.calledEvents=[].concat(C(_.state.calledEvents),[V]))),_.state.eventQueue=q,_.state.lastFrameTime=A}}}),N)if(typeof N=="string"){var Z=document.querySelector(N);if(!Z)throw new Error("Could not find container element");this.state.elements.container=Z}else this.state.elements.container=N;ne&&(this.options=U(U({},this.options),ne)),this.state.initialOptions=U({},this.options),this.init()}var T,P;return T=I,(P=[{key:"init",value:function(){var N,ne;this.setupWrapperElement(),this.addEventToQueue(S,{cursor:this.options.cursor},!0),this.addEventToQueue(m,null,!0),!window||window.___TYPEWRITER_JS_STYLES_ADDED___||this.options.skipAddStyles||(N=".Typewriter__cursor{-webkit-animation:Typewriter-cursor 1s infinite;animation:Typewriter-cursor 1s infinite;margin-left:1px}@-webkit-keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}",(ne=document.createElement("style")).appendChild(document.createTextNode(N)),document.head.appendChild(ne),window.___TYPEWRITER_JS_STYLES_ADDED___=!0),this.options.autoStart===!0&&this.options.strings&&this.typeOutAllStrings().start()}},{key:"logInDevMode",value:function(N){this.options.devMode&&console.log(N)}}])&&W(T.prototype,P),Object.defineProperty(T,"prototype",{writable:!1}),I}()})(),a.default})())})(vs);var _u=vs.exports;const yu=yt(_u);class Cu{constructor(e,r){this.processor=null,this.accumulator="",this.totalMarkdown="",this.lastProcessedLength=0,this.regexRenderTargetsById={},this.isRenderingTable=!1,this.isFirstTableRender=!1,this.mdTableHeaderString="",this.isIncompleteTableRow=!1,this.pendingRowString="",this.tableId=0,this.rowId=0,this.typewriter=null,this.container=e,this.htmlRenderingTarget=e,this.exposedRegexes=r.exposedRegexes||[],this.useTableProcessor=!!r.useTableProcessor,this.initProcessor(),this.animated=!!r.animated,this.animated&&(this.typewriter=this.initTypewriter()),this.onAnimationStart=r.onAnimationStart||(()=>{}),this.onAnimationEnd=r.onAnimationEnd||(()=>{})}initProcessor(){this.processor=Ys.unified().use(qs).use(this.remarkCheckIncompleteTableRows.bind(this)).use(En).use(En).use(Gs).use(Ws,{allowDangerousHtml:!0}).use(Us,{allowDangerousHtml:!0})}remarkCheckIncompleteTableRows(){return e=>{Zs.visit(e,void 0,(r,n,i)=>{var c,s;const a=i,o=r.type;if(o==="text"&&this.exposedRegexes.forEach(({regex:l,type:d})=>{this.processTextNode(r,n,a,l,d)}),!!this.useTableProcessor&&(o==="table"&&!r.data&&(r.data={hProperties:{id:`t-${this.tableId}`}},this.mdTableHeaderString=this.extractTableHeaderString(r),this.setIsRenderingTable(!0)),o==="tableRow"&&!r.data&&(r.data={hProperties:{id:`r-${this.rowId++}`}}),o==="tableRow")){const l=a.children[0].children.length,d=r.children.length,f=this.accumulator.slice((c=r.position)==null?void 0:c.start.offset,(s=r.position)==null?void 0:s.end.offset);d<l?this.isIncompleteTableRow=!0:f.endsWith("|")?(this.isIncompleteTableRow=!1,this.pendingRowString=""):(this.pendingRowString=f,this.isIncompleteTableRow=!0)}})}}setIsRenderingTable(e){e&&!this.isRenderingTable&&(this.isFirstTableRender=!0),!e&&this.isRenderingTable&&this.startNewRenderingCycle(),this.isRenderingTable=e}startNewRenderingCycle(){const e=document.createElement("div");this.container.appendChild(e),this.htmlRenderingTarget=e,this.accumulator="",this.isRenderingTable&&(this.tableId++,this.mdTableHeaderString="",this.isIncompleteTableRow=!1,this.isRenderingTable=!1)}extractTableHeaderString(e){const r=e,n=r.children[0],i=r.align,a=n.children.map(c=>` ${c.children.map(l=>l.value).join("")} `).join("|"),o=i.map(c=>c==="left"?":---":c==="right"?"---:":c==="center"?":---:":"---").join("|");return`|${a}|
244
+ |${o}|
245
245
  `}async processMarkdown(e){if(!this.processor)throw new Error("Processor not initialized");const r=await this.handleNewMarkdown(e);if(this.accumulator+=r,this.totalMarkdown+=r,this.isRenderingTable&&this.accumulator.length<30)return!1;const n=await this.processor.process(this.accumulator);if(this.isIncompleteTableRow)return this.isIncompleteTableRow=!1,!1;const i=n.toString();return i?(await this.render(i),this.lastProcessedLength=this.accumulator.length,!0):!1}async handleNewMarkdown(e){if(!e.includes(`
246
246
 
247
247
  `))return e;let n=e;const[i]=e.split(`
248
248
 
249
- `);return await this.processMarkdown(i),n=n.replace(i,""),this.startNewRenderingCycle(),n}async render(e){this.isFirstTableRender&&(this.updateContent(e),this.isFirstTableRender=!1),this.isRenderingTable?(this.updateTableContent(e),this.accumulator=this.mdTableHeaderString+this.pendingRowString):this.animated?await this.animateNewChunk(e):this.updateContent(e)}updateTableContent(e){const r=this.extractTableFromHtml(e);if(!r)return;const n=this.htmlRenderingTarget.parentNode,i=this.ensureTableExists(n);this.removeEmptyTableRows(i);const o=r.querySelector("tbody")||document.createElement("tbody"),s=this.ensureTBodyExists(i);this.copyTableHead(r,i),this.copyTableBodyRows(o,s)}processTextNode(e,r,n,i,o){const c=e.value.split(i);if(c.length>1){const a=this.replaceRegexTargets(c,i,o,e,r);n.children.splice(r,1,...a)}}replaceRegexTargets(e,r,n,i,o){return e.map((s,c)=>{var a,l;if(r.test(s)){const d=`regex-target-${n}-${c}-${o}-${this.totalMarkdown.length}-${(l=(a=i==null?void 0:i.position)==null?void 0:a.start)==null?void 0:l.offset}`;return this.regexRenderTargetsById[d]={match:s,type:n},{type:"html",value:`<span id="${d}">${s}</span>`}}return s?{type:"text",value:s}:null}).filter(Boolean)}ensureTableExists(e){let r=e.querySelector(`table#t-${this.tableId}`);return r||(r=document.createElement("table"),r.id=`t-${this.tableId}`,e.appendChild(r)),r}ensureTBodyExists(e){let r=e.querySelector("tbody");return r||(r=document.createElement("tbody"),e.appendChild(r)),r}copyTableHead(e,r){const n=e.querySelector("thead");!r.querySelector("thead")&&n&&r.appendChild(n)}copyTableBodyRows(e,r){const n=e.querySelectorAll("tr"),i=Array.from(r.querySelectorAll("tr")).map(o=>o.id);n&&n.forEach(o=>{!o.innerText.trim()||i.includes(o.id)||r.appendChild(o.cloneNode(!0))})}removeEmptyTableRows(e){e.querySelectorAll("tr").forEach(n=>{const i=n.querySelectorAll("td, th");let o=!0;i.forEach(s=>{s.textContent.trim()!==""&&(o=!1)}),o&&n.parentNode.removeChild(n)})}getRegexRenderTargets(){return this.regexRenderTargetsById}clearRegexRenderTargets(){this.regexRenderTargetsById={}}extractTableFromHtml(e){const r=document.createElement("div");return r.innerHTML=e,r.querySelector(`table#t-${this.tableId}`)}updateContent(e){const r=document.createElement("div");r.innerHTML=e,Ys(this.htmlRenderingTarget,r,{onBeforeElUpdated:(n,i)=>n.classList.contains("Typewriter__wrapper")?(i.innerHTML=n.innerHTML,!1):!0})}initTypewriter(){return new yu(this.container,{loop:!1,delay:0,cursor:""})}async animateNewChunk(e){const r=this.getNewContent(e);await new Promise(n=>{this.onAnimationStart(),this.typewriter.typeString(r).callFunction(()=>{this.onAnimationEnd(),n()}).start()})}getNewContent(e){const r=document.createElement("div");return r.innerHTML=e,(r.textContent||"").slice(this.lastProcessedLength)}}const bu=F.extend({name:"EMarkdown",props:{nextChunks:{type:[Array,String],default:()=>[]},exposedRegexes:{type:Array,default:()=>[]},animated:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},useTableProcessor:{type:Boolean,default:!0}},data(){return{isProcessing:!1,processor:null}},watch:{nextChunks(t){this.handleNewChunk(t.join(""))}},mounted(){this.initProcessor(),this.processInitialChunks()},methods:{initProcessor(){const t=this.$refs.content;this.processor=new Cu(t,{exposedRegexes:this.exposedRegexes,animated:this.animated,onAnimationStart:()=>this.$emit("animation-start"),onAnimationEnd:()=>this.$emit("animation-end"),useTableProcessor:this.useTableProcessor})},async processChunk(t){var r;await((r=this.processor)==null?void 0:r.processMarkdown(t))&&this.renderRegexesScopedSlots()},async handleNewChunk(t){await this.processChunk(t)},async processInitialChunks(){const t=Array.isArray(this.nextChunks)?this.nextChunks:[this.nextChunks];for(const e of t)await this.handleNewChunk(e)},renderRegexesScopedSlots(){var e,r;const t=(e=this.processor)==null?void 0:e.getRegexRenderTargets();Object.entries(t).forEach(([n,{match:i,type:o}])=>{this.renderScopedSlot({id:n,type:o,propsData:{match:i}})}),(r=this.processor)==null||r.clearRegexRenderTargets()},renderScopedSlot({id:t,type:e,propsData:r}){const n=document.getElementById(t);if(!n)return;const i=this.$scopedSlots[`markdown.regex.${e}`];if(!i)return;const o=F.extend({functional:!0,props:["scopedSlot","propsData"],render:(c,a)=>a.props.scopedSlot(a.props.propsData)}),s=new F({render:c=>c(o,{props:{scopedSlot:i,propsData:r}})}).$mount();return n.innerHTML="",n.appendChild(s.$el),s}}}),zd="";var xu=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-markdown"},[r("article",{staticClass:"e-mx-auto prose-h1:!e-text-2xl prose-h2:!e-text-xl prose-h2:!e-mt-0 prose-h3:!e-text-lg e-prose e-prose-slate",class:{"e-prose-invert":e.dark}},[r("div",{ref:"content",staticClass:"e-markdown__content"})])])},wu=[],Su=H(bu,xu,wu,!1,null,null,null,null);const Tu=Su.exports,ku=F.extend({name:"ECopyToClipboardBtn",components:{EActionButton:ft},mixins:[Ge,Ue],props:{text:{type:[Function,String,Number],required:!0},buttonText:{type:String,default:""},buttonClasses:{type:[String,Object,Array],default:null},description:{type:String,default:"Copy"},iconType:{type:String,default:"far fa-copy"},textOnlyButton:{type:Boolean,default:!1},dark:{type:Boolean,default:!0}},data(){return{loading:!1,tooltipText:this.description||"Copy to clipboard"}},computed:{copyButtonClasses(){return{"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"hover:e-bg-gray-600":this.dark,"hover:e-bg-gray-200":!this.dark,"e-rounded-md e-border-none copy-button e-bg-transparent":!0}}},watch:{tooltipText(t){t!==this.description&&this.$setTimeout(()=>{this.tooltipText=this.description},1e3)}},mounted(){this.$addEventListener("focusin",this.handleFocusin,this.$refs.copyToClipboard)},methods:{handleFocusin(t){t.stopPropagation()},getProp(t,e){return Object.prototype.hasOwnProperty.call(this.$attrs,t)?this.$attrs[t]:e},copyTextToClipboard(){try{this.loading=!0;let t;typeof this.text=="function"?t=this.text():t=this.text;const e=this.$refs.copyToClipboard;e.value=t,e.focus(),e.select(),document.execCommand("copy"),this.tooltipText="Copied!",this.$emit("copied")}catch(t){console.error("Failed to copy text to clipboard",t)}finally{this.loading=!1}}}}),Bd="";var $u=function(){var e=this,r=e._self._c;return r("EActionButton",e._g(e._b({attrs:{"tooltip-text":e.tooltipText,"tooltip-position":"top",icon:e.iconType,"icon-size":"Lg",dark:e.dark,"button-classes":e.copyButtonClasses},on:{click:e.copyTextToClipboard}},"EActionButton",e.$attrs,!1),e.$listeners),[e._v(" "+e._s(e.buttonText)+" "),r("textarea",{ref:"copyToClipboard",staticClass:"copy-to-clipboard",attrs:{readonly:""}})])},Eu=[],Mu=H(ku,$u,Eu,!1,null,"d3d39d0d",null,null);const mn=Mu.exports,Lu=F.extend({name:"EDialog",components:{EFadeTransition:Nt},mixins:[Ge],props:{value:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},actions:{type:Array,default:()=>[]},title:{type:String,default:""},persistent:{type:Boolean,default:!1},width:{type:[Number,String],default:500},height:{type:[Number,String],default:void 0},closeWithEscape:{type:Boolean,default:!0}},computed:{visible:{get(){return this.value},set(t){this.$emit("input",t)}},panelClasses(){return["e-relative e-transform e-overflow-hidden e-rounded-lg e-text-left e-shadow-xl e-transition-all e-w-full e-flex e-flex-col",this.dark?"e-bg-gray-800":"e-bg-white"]},headerContainerClasses(){return["e-dialog__header",this.dark?"e-bg-gray-800 e-text-gray-50":"e-bg-white e-text-slate-900","e-px-6 e-pt-6 e-pb-4"]},bodyContainerClasses(){return["e-dialog__body e-px-6",this.dark?"e-bg-gray-800 e-text-gray-50":"e-bg-white e-text-slate-900"]},footerContainerClasses(){return["e-dialog__footer",this.dark?"e-bg-gray-700":"e-bg-gray-50","e-flex e-py-3 e-px-4 e-justify-end e-mt-auto e-items-end"]},panelStyles(){const t=typeof this.width=="number"?`${this.width}px`:this.width,e=typeof this.height=="number"?`${this.height}px`:this.height;return{minWidth:t,minHeight:e,width:t,height:e}}},watch:{visible(t){t?this.showDialog():this.closeDialog()}},mounted(){this.visible&&this.showDialog(),this.$addEventListener("keydown",this.handleKeyDown)},methods:{showDialog(){this.$nextTick(()=>{const t=this.$refs.dialog;t&&!t.open&&t.showModal()})},closeDialog(){const t=this.$refs.dialog;t!=null&&t.open&&t.close()},handleBackdropClick(t){!this.persistent&&t.target===t.currentTarget&&(this.visible=!1)},onClose(){this.persistent||(this.visible=!1)},getButtonClasses(t){const e=this.dark?"e-bg-gray-700 e-text-gray-50 e-border-solid e-border-[1px] e-border-gray-500 hover:e-bg-gray-600":"e-bg-white e-text-gray-900 e-border-solid e-border-[1px] e-border-gray-300 hover:e-bg-gray-50",r={[se.Warning]:"e-bg-warning e-text-white e-border-none",[se.Error]:"e-bg-error e-text-white e-border-none",[se.Info]:"e-bg-info e-text-white e-border-none",[se.Success]:"e-bg-success e-text-white e-border-none",[se.Primary]:"e-bg-primary e-text-white e-border-none",[se.Brand]:"e-bg-brand-500 e-text-white e-border-none",[se.Default]:e,[se.Gray]:"e-bg-gray-600 e-text-white hover:e-bg-gray-light e-border-none"};return["e-inline-flex e-w-full e-justify-center e-rounded-md e-px-3 e-py-2 e-text-sm e-font-semibold e-shadow-sm sm:e-ml-3 sm:e-w-auto e-cursor-pointer hover:e-opacity-90",r[t]||r[se.Default]]},onActionClick(t){t.closeOnClick&&(this.visible=!1),this.$emit("action-clicked",t.id||t.label)},handleKeyDown(t){t.key==="Escape"&&(this.persistent||!this.closeWithEscape?t.preventDefault():this.visible=!1)}}}),Id="";var Du=function(){var e=this,r=e._self._c;return r("EFadeTransition",{attrs:{duration:100}},[e.visible?r("dialog",{ref:"dialog",staticClass:"e-dialog e-p-0 e-m-auto e-border-none e-rounded-lg",on:{click:e.handleBackdropClick,close:e.onClose,cancel:e.onClose}},[r("div",{class:e.panelClasses,style:e.panelStyles},[r("div",{class:e.headerContainerClasses},[e._t("header",function(){return[e.title?r("div",{staticClass:"e-text-lg e-font-bold"},[e._v(" "+e._s(e.title)+" ")]):e._e()]},{dark:e.dark})],2),r("div",{class:e.bodyContainerClasses},[e._t("default",null,{dark:e.dark})],2),r("div",{class:e.footerContainerClasses},[e._t("footer",function(){return e._l(e.actions,function(n,i){return r("button",{key:i,class:e.getButtonClasses(n.color),on:{click:function(o){return o.stopPropagation(),e.onActionClick(n)}}},[e._v(" "+e._s(n.label)+" ")])})},{actions:e.actions,dark:e.dark})],2)])]):e._e()])},Pu=[],Ou=H(Lu,Du,Pu,!1,null,null,null,null);const zu=Ou.exports,Bu=F.extend({name:"EFeedbackButton",components:{EDialog:zu,EActionButton:ft},mixins:[Ge,Ue],props:{buttonText:{type:String,default:""},buttonClasses:{type:[String,Object,Array],default:null},description:{type:String,default:"Submit feedback"},iconType:{type:String,default:"far fa-thumbs-up"},withText:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},dialogActions:{type:Array,default:()=>[{label:"Cancel",color:"default",closeOnClick:!0},{label:"Submit",color:"primary"}]},dialogWidth:{type:[Number,String],default:"27rem"}},data(){return{tooltipText:this.description||"Submit feedback",showDialog:!1,feedbackText:""}},computed:{eButtonClasses(){return{"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"hover:e-bg-gray-600":this.dark,"hover:e-bg-gray-200":!this.dark,"e-rounded-md e-border-none e-bg-transparent":!0}},textAreaClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"e-text-gray-600":!this.dark,"e-text-gray-300":this.dark,"e-custom-scrollbar--light":!this.dark,"e-custom-scrollbar--dark":this.dark}},textAreaContainerClasses(){return{"e-border-gray-600":this.dark,"e-border-gray-300":!this.dark}}},watch:{tooltipText(t){t!==this.description&&this.$setTimeout(()=>{this.tooltipText=this.description},1e3)}},methods:{onClick(t){this.withText?this.showDialog=!0:this.submitFeedback(t)},submitFeedback(t){if(t==="Cancel"){this.showDialog=!1;return}this.showDialog=!1,this.$emit("submit",this.feedbackText),this.tooltipText="Thank you!"}}}),Fd="";var Iu=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EActionButton",{attrs:{"tooltip-text":e.tooltipText,"tooltip-position":"top",icon:e.iconType,"icon-size":"Lg",dark:e.dark,"button-classes":e.eButtonClasses},on:{click:e.onClick}},[e._v(" "+e._s(e.buttonText)+" "),e.withText?r("EDialog",{staticClass:"e-feedback",attrs:{value:e.showDialog,title:"Feedback",dark:e.dark,width:e.dialogWidth,persistent:"",actions:e.dialogActions,"close-with-escape":!1},on:{"action-clicked":e.submitFeedback}},[r("div",{staticClass:"e-feedback__form"},[r("div",{staticClass:"e-feedback__form-description e-mb-3 e-leading-relaxed"},[e._v(" Thanks for your input! "),r("br"),e._v("Please share your thoughts and experience to help us improve ")]),r("div",{staticClass:"e-rounded-md e-w-full e-overflow-hidden e-border e-border-solid e-py-2 e-mb-6",class:e.textAreaContainerClasses},[r("textarea",{directives:[{name:"model",rawName:"v-model",value:e.feedbackText,expression:"feedbackText"}],staticClass:"e-feedback__textarea focus:e-outline-none e-mr-6 e-border-none e-placeholder-gray-400 e-py-3 e-pl-3 e-w-full",class:e.textAreaClasses,attrs:{autofocus:"",tabindex:"0",rows:"4",placeholder:"Enter your text here..."},domProps:{value:e.feedbackText},on:{input:function(n){n.target.composing||(e.feedbackText=n.target.value)}}})])])]):e._e()],1)},Fu=[],Au=H(Bu,Iu,Fu,!1,null,null,null,null);const Ru=Au.exports,Hu=F.extend({name:"EChatMessageActions",components:{EFeedbackButton:Ru,ECopyToClipboardBtn:mn,EActionButton:ft},props:{message:{type:[String,Array],default:""},dark:{type:Boolean,default:!1},showCopyButton:{type:Boolean,default:!1},showRegenerateButton:{type:Boolean,default:!1},showFeedbackButtons:{type:Boolean,default:!1},messageId:{type:[String,Number],default:null}},data(){return{FeedbackType:Qt,showFeedbackDialog:!1}},computed:{messageText(){return(Array.isArray(this.message)?this.message:[this.message]).join("")},eButtonClasses(){return{"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"hover:e-bg-gray-600":this.dark,"hover:e-bg-gray-200":!this.dark,"e-rounded-md e-border-none e-bg-transparent e-border-none":!0}}},methods:{handleFeedback(t,e){this.$emit("feedback",{type:t,text:e})},openFeedbackDialog(){this.showFeedbackDialog=!0}}}),Ad="";var Nu=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-message__actions e-relative"},[r("div",{staticClass:"e-message__actions-container e-flex e-gap-1 e-my-2"},[e.showCopyButton?r("ECopyToClipboardBtn",{attrs:{text:e.messageText,dark:e.dark,"button-size":"xs","button-classes":"e-bg-transparent e-border-none",description:"Copy"}}):e._e(),e.showRegenerateButton?r("EActionButton",{attrs:{"tooltip-text":"Regenerate","tooltip-position":"top",icon:"rotate-right","icon-size":"xs",dark:e.dark,"button-classes":e.eButtonClasses},on:{click:function(n){return e.$emit("regenerate")}}}):e._e(),e.showFeedbackButtons?r("EFeedbackButton",{attrs:{dark:e.dark,"with-text":"",description:"Give positive feedback","button-size":"sm","button-classes":"e-bg-transparent e-border-none"},on:{submit:function(n){return e.handleFeedback(e.FeedbackType.Positive,n)}},nativeOn:{click:function(n){return e.openFeedbackDialog.apply(null,arguments)}}}):e._e(),e.showFeedbackButtons?r("EFeedbackButton",{attrs:{dark:e.dark,"with-text":"",description:"Give negative feedback","button-size":"sm","button-classes":"e-bg-transparent e-border-none","icon-type":"far fa-thumbs-down"},on:{submit:function(n){return e.handleFeedback(e.FeedbackType.Negative,n)}},nativeOn:{click:function(n){return e.openFeedbackDialog.apply(null,arguments)}}}):e._e()],1)])},ju=[],Gu=H(Hu,Nu,ju,!1,null,null,null,null);const qu=Gu.exports,Wu=F.extend({name:"EChatMessage",components:{EFadeTransition:Nt,EAvatar:Mt,EChatMessageActions:qu,EEvercamLogo:ms,EPulsatingDot:vu,EMarkdown:Tu},mixins:[Ue],props:{role:{type:String,default:Ye.User},initials:{type:String,default:null},message:{type:[String,Array,Object],default:""},isLoading:{type:Boolean,default:!1},avatarSrc:{type:String,default:null},type:{type:String,default:Vt.Text},showAvatar:{type:Boolean,default:!0},dark:{type:Boolean,default:!1},withActions:{type:Boolean,default:!1},showCopyButton:{type:Boolean,default:!1},showRegenerateButton:{type:Boolean,default:!1},showFeedbackButtons:{type:Boolean,default:!1},loadingMessage:{type:String,default:""},exposedRegexes:{type:Array,default:()=>[]},animated:{type:Boolean,default:!1},eMarkdownProps:{type:Object,default:()=>({})}},data(){return{showActions:!1,nextChunks:[]}},computed:{isBotRole(){return this.role===Ye.Copilot||this.role===Ye.System},userMessageClasses(){return{"e-bg-gray-100 e-text-gray-800":!this.dark,"e-bg-gray-600 e-text-white":this.dark}},logoClasses(){return{"e-bg-white e-rounded-full":this.dark}},dotColor(){return this.dark?"#ff2525":"#c5393d"},markdownScopedSlots(){return Object.keys(this.$scopedSlots).filter(t=>t.startsWith("markdown.")).reduce((t,e)=>(t[e]=this.$scopedSlots[e],t),{})}},watch:{message:{immediate:!0,handler(t,e){t.length&&(e!=null&&e.length?this.nextChunks=t.slice(e.length):this.nextChunks=t)}}},methods:{onMouseOver(){this.showActions=!0},onMouseLeave(t){[null,document.documentElement].includes(t.relatedTarget)||(this.showActions=!1)},onFeedback(t){this.$emit("feedback",t),this.$setTimeout(()=>{this.showActions=!1},1e3)}}}),Rd="";var Uu=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-message e-mb-3"},[r("div",{staticClass:"e-chat-message__wrapper e-flex e-items-start e-justify-start e-gap-3",class:{"e-chat-message__rtl":!e.isBotRole}},[e.showAvatar?r("div",{staticClass:"e-chat-message__avatar"},[e.isBotRole?e._t("message-avatar",function(){return[r("div",{class:e.logoClasses},[r("EEvercamLogo",{attrs:{size:"xs","background-classes":"e-bg-white e-p-[2px] e-rounded-full !e-pr-[2.5px] !e-pt-[3.5px]"}})],1)]},{role:e.role}):r("EAvatar",{attrs:{image:e.avatarSrc,size:"Xs"}},[e._v(e._s(e.initials))])],2):e._e(),r("div",{staticClass:"e-chat-message__content e-flex e-w-full",class:{"e-justify-end":!e.isBotRole}},[e._t("message.content",function(){return[e.isLoading&&e.isBotRole?e._t("loadingPlaceholder",function(){return[r("div",[e.loadingMessage?r("EMarkdown",{staticClass:"e-chat-message__markdown e-italic",attrs:{"next-chunks":[e.loadingMessage],animated:"",dark:e.dark,copyable:!1}}):e._e(),r("div",{staticClass:"e-inline-block e-mt-2 e-ml-2"},[r("EPulsatingDot",{attrs:{size:8,color:e.dotColor}})],1)],1)]}):e.isBotRole&&e.type!=="error"?r("EMarkdown",e._b({staticClass:"e-chat-message__markdown e-w-full",attrs:{"next-chunks":e.nextChunks,animated:e.animated,dark:e.dark,"exposed-regexes":e.exposedRegexes},on:{"animation-end":function(n){return e.$emit("animation-end")},"animation-start":function(n){return e.$emit("animation-start")}},scopedSlots:e._u([e._l(e.markdownScopedSlots,function(n,i){return{key:i,fn:function(o){return[e._t(i,null,null,o)]}}})],null,!0)},"EMarkdown",e.eMarkdownProps,!1)):e.type==="error"?r("p",{staticClass:"e-chat-message__error e-px-4 e-py-3 e-border-solid e-border-[1.67px] e-rounded-md e-border-red-400 e-bg-red-500/10 e-text-sm e-font-normal"},[e._v(" "+e._s(e.message)+" ")]):r("p",{staticClass:"e-chat-message__content e-font-medium e-text-wrap e-mb-1 e-rounded-lg e-p-2 e-px-4",class:e.userMessageClasses},[e._v(" "+e._s(e.message)+" ")]),e._t("extraContent")]})],2)]),e._t("message.append"),r("EFadeTransition",[e.withActions?r("EChatMessageActions",{staticClass:"e-left-11",attrs:{"message-id":e.$attrs["data-message-id"],dark:e.dark,"show-copy-button":e.showCopyButton,"show-feedback-buttons":e.showFeedbackButtons,"show-regenerate-button":e.showRegenerateButton,message:e.message},on:{feedback:e.onFeedback,regenerate:function(n){return e.$emit("message-regenerate")}}}):e._e()],1)],2)},Zu=[],Yu=H(Wu,Uu,Zu,!1,null,null,null,null);const Xu=Yu.exports,Vu=F.extend({name:"EChatFooter",props:{dark:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}},computed:{backgroundClasses(){return this.inline?{}:{"e-bg-gray-700":this.dark,"e-bg-gray-50":!this.dark}},footerClasses(){return{...this.backgroundClasses}}}});var Qu=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-footer e-px-3 e-pt-4 e-pb-3",class:e.footerClasses},[e._t("default")],2)},Ku=[],Ju=H(Vu,Qu,Ku,!1,null,null,null,null);const e8=Ju.exports,t8=F.extend({name:"EVoiceInputVolumeIndicator",props:{isListening:{type:Boolean,required:!0},analyser:{type:Object,required:!0}},data(){return{volume:0,animationFrameId:0}},watch:{isListening:{immediate:!0,handler(t){t?this.startVolumeMonitoring():this.stopVolumeMonitoring()}}},beforeDestroy(){this.stopVolumeMonitoring()},methods:{startVolumeMonitoring(){this.analyser&&this.updateVolume()},updateVolume(){if(!this.analyser)return;const t=new Uint8Array(this.analyser.frequencyBinCount);this.analyser.getByteFrequencyData(t);let e=0;for(const r of t)e+=r**2.75;this.volume=Math.sqrt(e/t.length)/256,this.animationFrameId=requestAnimationFrame(this.updateVolume)},stopVolumeMonitoring(){this.animationFrameId&&cancelAnimationFrame(this.animationFrameId)}}}),Hd="";var r8=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-volume-indicator e-relative e-w-8 e-h-8 e-flex e-items-center e-justify-center"},[r("div",{staticClass:"e-volume-indicator__bubble e-absolute e-inset-y-0 e-rounded-full",style:{transform:`scale(${e.isListening?.5+e.volume*.5:1})`,opacity:e.isListening?.5:0,width:"inherit",height:"inherit"}}),r("div",{staticClass:"e-absolute e-inset-0 e-flex e-items-center e-justify-center"},[e._t("default")],2)])},n8=[],i8=H(t8,r8,n8,!1,null,null,null,null);const s8=i8.exports,a8=F.extend({name:"EVoiceInput",components:{EVoiceInputVolumeIndicator:s8,EIcon:We,ETooltip:St},mixins:[Ge],props:{value:{type:String,default:""},dark:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},iconSize:{type:Number,default:10},silenceTimeout:{type:Number,default:1500}},data(){return{recognition:null,isListening:!1,interimTranscript:"",finalTranscript:"",analyser:null,audioContext:null,mediaStream:null,mediaStreamSource:null,silenceTimer:null}},computed:{currentTranscript(){return this.finalTranscript+this.interimTranscript},buttonClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"e-opacity-50":this.disabled}}},watch:{currentTranscript(t){this.$emit("input",t)}},mounted(){this.initSpeechRecognition(),this.$addEventListener("keydown",this.handleKeyDown)},beforeDestroy(){this.stopListening()},methods:{initSpeechRecognition(){const t=window.SpeechRecognition||window.webkitSpeechRecognition;if(!t){console.error("Speech recognition is not supported in this browser.");return}if(this.recognition=new t,this.recognition.continuous=!0,this.recognition.interimResults=!0,this.recognition.lang="en-US",this.recognition.speechStartTimeout=200,this.recognition.onresult=this.handleResult,this.recognition.onerror=this.handleError,this.recognition.onend=this.handleEnd,this.recognition.onspeechend=this.handleSpeechEnd,this.audioContext=new(window.AudioContext||window.webkitAudioContext),!this.audioContext){console.error("Audio context is not supported in this browser.");return}this.analyser=this.audioContext.createAnalyser(),this.analyser.fftSize=256},async toggleListening(){this.recognition&&(this.isListening?this.stopListening():await this.setupVolume())},async setupVolume(){try{this.mediaStream=await navigator.mediaDevices.getUserMedia({audio:!0}),this.audioContext.state!=="running"&&await this.audioContext.resume(),this.mediaStreamSource=this.audioContext.createMediaStreamSource(this.mediaStream),this.mediaStreamSource.connect(this.analyser),this.finalTranscript="",this.interimTranscript="",this.recognition.start(),this.isListening=!0}catch(t){console.error("Error accessing microphone:",t)}},stopListening(){this.isListening=!1,this.recognition.stop(),this.silenceTimer&&(clearTimeout(this.silenceTimer),this.silenceTimer=null),this.flushMediaStream()},flushMediaStream(){var t;this.mediaStream&&(this.mediaStream.getTracks().forEach(e=>e.stop()),(t=this.mediaStreamSource)==null||t.disconnect(),this.mediaStream=null,this.mediaStreamSource=null)},handleResult(t){this.interimTranscript="";for(let e=t.resultIndex;e<t.results.length;++e){const r=t.results[e];r.isFinal?this.finalTranscript+=r[0].transcript+" ":this.interimTranscript+=r[0].transcript}this.silenceTimer&&clearTimeout(this.silenceTimer),this.silenceTimer=setTimeout(()=>{this.submitTranscript()},this.silenceTimeout)},handleEnd(){this.isListening=!1},handleSpeechEnd(){this.submitTranscript()},submitTranscript(){this.finalTranscript.trim().length>0&&(this.$emit("on-voice-message-end",this.finalTranscript.trim()),this.finalTranscript="",this.interimTranscript=""),this.stopListening()},handleKeyDown(t){t.code==="Space"&&t.ctrlKey&&(t.preventDefault(),this.toggleListening())},handleError(t){console.error("Speech recognition error:",t==null?void 0:t.error),this.isListening=!1}}});var o8=function(){var e=this,r=e._self._c;return r("ETooltip",{attrs:{text:"Use Ctrl + Space to speak",dark:e.dark}},[r("button",e._g(e._b({staticClass:"e-chat-input__voice-btn e-border-none e-chat-input__voice-btn e-flex e-items-center e-justify-center e-cursor-pointer e-h-8 e-w-8 disabled:e-cursor-not-allowed focus:e-outline-none",class:{...e.buttonClasses,"e-h-10 e-w-10":!e.isListening},on:{click:e.toggleListening}},"button",e.$attrs,!1),e.$listeners),[e.isListening?r("EVoiceInputVolumeIndicator",{attrs:{analyser:e.analyser,"is-listening":e.isListening}},[r("EIcon",{staticClass:"e-chat-input__voice-btn--icon",attrs:{icon:"stop",color:"e-text-red-600",size:"Sm"}})],1):r("EIcon",{attrs:{icon:"microphone",size:"Base"}})],1)])},l8=[],c8=H(a8,o8,l8,!1,null,null,null,null);const gn=c8.exports,u8=F.extend({name:"EChatInput",components:{EIcon:We,ETooltip:St,EVoiceInput:gn},model:{prop:"value",event:"prompt-changed"},props:{dark:{type:Boolean,default:!1},placeholder:{type:String,default:"Message Copilot"},disabled:{type:Boolean,default:!1},silenceTimeout:{type:Number,default:1500}},data(){return{content:"",maxHeight:175,textAreaHeight:0,isShiftKeyPressed:!1,transcript:""}},computed:{textAreaContainerClasses(){return{"e-border-gray-600":this.dark&&!this.disabled,"e-border-gray-300":!this.dark&&!this.disabled,"e-border-gray-800":this.dark&&this.disabled,"e-border-gray-500":!this.dark&&this.disabled,"e-cursor-not-allowed e-opacity-50":this.disabled}},textAreaClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"e-text-gray-600":!this.dark,"e-text-gray-300":this.dark,"e-custom-scrollbar--light":!this.dark,"e-custom-scrollbar--dark":this.dark}},buttonClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"e-opacity-50":this.isSubmitDisabled}},isSubmitDisabled(){return this.disabled||this.content.length<4},textareaStyle(){return this.textAreaHeight?{height:`${Math.min(this.textAreaHeight,this.maxHeight)}px`,overflowY:this.isOverflowing?"scroll":"hidden"}:{}},isOverflowing(){return!!this.textAreaHeight&&this.textAreaHeight>this.maxHeight}},mounted(){this.focus()},methods:{focus(){this.$refs.chatTextarea.focus()},submitMessage(){this.$emit("submit",this.content),this.content="",this.$nextTick(this.updateTextAreaHeight)},onInput(t){const e=t.target,r=this.content===e.value;this.content=e.value,r||(this.updateTextAreaHeight(),this.$emit("prompt-changed",e.value))},onKeyDown(t){if(!this.disabled){if(!this.isShiftKeyPressed&&t.key==="Enter"){t.preventDefault();return}if(t.key==="Shift"||t.code==="ShiftLeft"){this.isShiftKeyPressed=!0;return}}},onKeyUp(t){if(!this.disabled){if(t.key==="Shift"||t.code==="ShiftLeft"){this.isShiftKeyPressed=!1;return}t.key==="Enter"&&!this.isShiftKeyPressed&&(t.preventDefault(),this.submitMessage())}},updateTextAreaHeight(){const t=this.$refs.chatTextarea;t.style.height="auto",this.textAreaHeight=t.scrollHeight},handleVoiceMessage(t){this.$emit("prompt-changed",t),this.$emit("submit",t),this.transcript=""}}}),Nd="";var d8=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-chat-input e-relative e-flex e-w-auto e-p-2"},[r("div",{staticClass:"e-rounded-lg e-w-full e-overflow-hidden e-border e-border-solid",class:e.textAreaContainerClasses},[r("textarea",e._b({ref:"chatTextarea",staticClass:"e-chat-input__textarea focus:e-outline-none e-mr-6 e-border-none e-placeholder-gray-400 e-py-3 e-pl-3 e-w-full",class:e.textAreaClasses,style:e.textareaStyle,attrs:{rows:"1",tabindex:"0",autofocus:"",placeholder:e.transcript.length>0?e.transcript:e.placeholder,disabled:e.disabled},on:{keydown:function(n){return n.stopPropagation(),e.onKeyDown.apply(null,arguments)},keyup:e.onKeyUp,input:e.onInput}},"textarea",e.$attrs,!1))]),r("div",{staticClass:"e-absolute e-bottom-3 e-items-center e-flex e-h-min e-gap-1.5",class:e.isOverflowing?"e-right-6":"e-right-4"},[e._t("input-action-button",function(){return[r("EVoiceInput",{attrs:{dark:e.dark,disabled:e.disabled,"silence-timeout":e.silenceTimeout},on:{"on-voice-message-end":e.handleVoiceMessage},model:{value:e.transcript,callback:function(n){e.transcript=n},expression:"transcript"}}),r("ETooltip",{attrs:{text:"Submit",dark:e.dark}},[r("button",{staticClass:"e-chat-input__submit-btn e-inline-flex e-items-center e-justify-center e-cursor-pointer disabled:e-cursor-not-allowed e-h-8 e-w-8 e-border-none focus:e-outline-none",class:e.buttonClasses,attrs:{type:"button",disabled:e.isSubmitDisabled},on:{click:function(n){return n.preventDefault(),e.submitMessage.apply(null,arguments)}}},[r("EIcon",{attrs:{icon:"arrow-up",size:"base"}})],1)])]},{buttonClasses:e.buttonClasses})],2)])},h8=[],f8=H(u8,d8,h8,!1,null,null,null,null);const p8=f8.exports,m8=F.extend({name:"EChatSuggestionCard",components:{EIcon:We},props:{text:{type:String,required:!0},icon:{type:String,default:null},color:{type:String,default:"e-text-gray-500"},dark:{type:Boolean,default:!1},width:{type:Number,default:null},display:{type:String,default:"row"}},computed:{classes(){return{"e-flex-row":this.display==="row","e-flex-col":this.display==="column","hover:e-bg-gray-100 e-border-gray-200":!this.dark,"e-bg-gray-800 e-border-gray-600 hover:e-bg-gray-900":this.dark}},styles(){return this.width?{width:`${this.width}px`}:{}}}});var g8=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",e._g(e._b({staticClass:"e-chat-suggestion e-p-3 e-flex e-justify-start e-items-start e-gap-2 e-border-solid e-border-[1.67px] e-rounded-md e-cursor-pointer e-w-full",class:e.classes,style:e.styles},"div",e.$attrs,!1),e.$listeners),[r("div",{staticClass:"e-chat-suggestion__icon e-h-6 e-w-6"},[e.icon?r("EIcon",{attrs:{icon:e.icon,size:"Lg",color:e.color}}):e._t("svg-icon")],2),r("div",{staticClass:"e-chat-suggestion__text e-font-medium e-antialiased e-text-wrap",class:{"e-text-gray-200":e.dark,"e-text-gray-600":!e.dark}},[e._v(" "+e._s(e.text)+" ")])])},v8=[],_8=H(m8,g8,v8,!1,null,null,null,null);const y8=_8.exports,C8=F.extend({components:{EFadeTransition:Nt,EChatWrapper:Kc,EChatHeader:ou,EChatBody:hu,EChatMessage:Xu,EChatFooter:e8,EChatInput:p8,EChatSuggestionCard:y8},props:{dark:{type:Boolean,default:!1},messages:{type:Array,default:()=>[]},user:{type:String,default:"You"},embedded:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},inlineFooter:{type:Boolean,default:!1},height:{type:String,default:void 0},width:{type:String,default:void 0},showUserAvatar:{type:Boolean,default:!0},showCopilotAvatar:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},headerText:{type:String,default:"Evercam Copilot"},inputPlaceholder:{type:String,default:"Message Copilot"},loadingMessage:{type:String,default:""},suggestions:{type:Array,default:()=>[]},exposedRegexes:{type:Array,default:()=>[]},eMarkdownProps:{type:Object,default:()=>({useTableProcessor:!1})},silenceTimeout:{type:Number,default:1500}},data(){return{prompt:"",containerHeight:0,headerHeight:0,bodyHeight:0,footerHeight:0}},computed:{ChatMessageRole(){return Ye},userInitials(){var t,e,r;return((r=(e=(t=this.user.trim())==null?void 0:t.split(/\s+/))==null?void 0:e.map(n=>{var i;return((i=n==null?void 0:n.charAt(0))==null?void 0:i.toUpperCase())||""}))==null?void 0:r.join(""))||this.user[0]||""},chatBodyStyle(){return this.bodyHeight?{maxHeight:`${this.bodyHeight}px`,height:`${this.bodyHeight}px`}:{}},wrapperStyle(){return{height:this.height||"100%",width:this.width||"100%"}},bodyBorderClasses(){let t={};this.showHeader&&(t={"e-border-t-[1px] e-border-t-solid":!0,"e-border-t-gray-300":!this.dark,"e-border-t-gray-600":this.dark});let e={};return this.inlineFooter||(e={"e-border-b-[1px] e-border-b-solid":!0,"e-border-b-gray-300":!this.dark,"e-border-b-gray-600":this.dark}),{...t,...e}},markdownScopedSlots(){return Object.keys(this.$scopedSlots).filter(t=>t.startsWith("markdown.")).reduce((t,e)=>(t[e]=this.$scopedSlots[e],t),{})},showSuggestions(){return this.messages.length===0&&this.suggestions.length>0}},watch:{height(){this.updateChatBodyHeight()},showHeader(){this.updateChatBodyHeight()}},mounted(){this.updateChatBodyHeight()},methods:{sendMessage(){!this.isDisabled&&this.prompt.length>0&&(this.$emit("user-message",this.prompt),this.prompt="")},isUserMessage(t){return t.role===Ye.User},hasActions(t){return this.isLoading||this.isDisabled?!1:t.role===Ye.Copilot&&t.withActions!==!1},getMessageContent(t){return t.content},getMessageInitials(t){return this.isUserMessage(t)?this.userInitials:null},getMessageClasses(t,e){return{"e-mb-11":e===this.messages.length-1&&this.hasActions(t)}},updateChatBodyHeight(){this.$nextTick(()=>{var n,i,o;const t=(n=this.$refs.chatContainer)==null?void 0:n.$el,e=(i=this.$refs.chatHeader)==null?void 0:i.$el,r=(o=this.$refs.chatFooter)==null?void 0:o.$el;!t||!e||!r||(this.headerHeight=e.clientHeight,this.footerHeight=r.clientHeight,this.containerHeight=t.clientHeight,this.height?this.bodyHeight=parseInt(this.height)-this.headerHeight-this.footerHeight:this.bodyHeight=Math.max(500,this.containerHeight-this.headerHeight-this.footerHeight))})},isAvatarVisible(t){return t.role===Ye.User?this.showUserAvatar:t.role===Ye.Copilot?this.showCopilotAvatar:!0},onMessageFeedback(t,e){this.$emit("message-feedback",{...t,messageId:e})}}}),jd="";var b8=function(){var e=this,r=e._self._c;return r("EChatWrapper",{ref:"chatContainer",staticClass:"e-chat-wrapper",style:e.wrapperStyle,attrs:{dark:e.dark,embedded:e.embedded}},[r("div",{staticClass:"e-w-full e-h-full e-chat-container"},[r("EChatHeader",{ref:"chatHeader",attrs:{hidden:!e.showHeader,dark:e.dark,title:e.headerText},scopedSlots:e._u([{key:"chip",fn:function(){return[e._t("chip")]},proxy:!0},{key:"append",fn:function(){return[e._t("header-append")]},proxy:!0}],null,!0)}),r("EChatBody",{ref:"chatBody",class:e.bodyBorderClasses,style:e.chatBodyStyle,attrs:{dark:e.dark}},[r("EFadeTransition",[e.showSuggestions?r("div",{staticClass:"e-w-full e-flex e-flex-col e-items-center e-justify-center e-mt-8"},[r("div",{staticClass:"e-flex e-flex-col e-justify-center e-items-center e-gap-4"},e._l(e.suggestions,function(n){return r("EChatSuggestionCard",{key:n.text,attrs:{text:n.text,icon:n.icon,color:n.color,dark:e.dark,width:n.width,display:n.display||"row"},on:{click:function(i){return e.$emit("suggestion-clicked",n)}}})}),1)]):e._e()]),e.showSuggestions?e._e():r("div",e._l(e.messages,function(n,i){return r("EChatMessage",{key:`${n.id}-${i}`,class:e.getMessageClasses(n,i),attrs:{dark:e.dark,role:n.role,"is-loading":n.isLoading,"data-message-id":n.id,"show-feedback-buttons":!e.readonly,"show-regenerate-button":!e.readonly,"exposed-regexes":e.exposedRegexes,"show-copy-button":"","e-markdown-props":e.eMarkdownProps,message:e.getMessageContent(n),type:n.type,initials:e.getMessageInitials(n),"show-avatar":e.isAvatarVisible(n),"with-actions":e.hasActions(n)&&i>0},on:{feedback:function(o){return e.onMessageFeedback(o,n.id)},"message-regenerate":function(o){return e.$emit("message-regenerate",n.id)},"animation-end":function(o){return e.$emit("animation-end",o)}},scopedSlots:e._u([e._l(e.markdownScopedSlots,function(o,s){return{key:s,fn:function(c){return[e._t(s,null,null,c)]}}}),{key:"message.content",fn:function(){return[e._t("message.content",null,{message:n})]},proxy:!0},{key:"message.append",fn:function(){return[e._t("message.append",null,{message:n})]},proxy:!0},{key:"extraContent",fn:function(){return[e._t("message.extraContent",null,{message:n})]},proxy:!0}],null,!0)})}),1),e.isLoading?r("EChatMessage",{attrs:{"is-loading":"","loading-message":e.loadingMessage,"data-message-id":-1,"show-avatar":e.showCopilotAvatar,role:e.ChatMessageRole.Copilot,dark:e.dark}}):e._e()],1),e._t("body-append",null,{messages:e.messages}),r("EChatFooter",{directives:[{name:"show",rawName:"v-show",value:!e.readonly,expression:"!readonly"}],ref:"chatFooter",attrs:{dark:e.dark,inline:e.inlineFooter}},[r("EChatInput",{attrs:{dark:e.dark,disabled:e.isDisabled,placeholder:e.inputPlaceholder,"silence-timeout":e.silenceTimeout},on:{"prompt-changed":function(n){return e.$emit("prompt-changed",n)},submit:e.sendMessage},scopedSlots:e._u([{key:"input-action-button",fn:function(){return[e._t("input-action-button")]},proxy:!0}],null,!0),model:{value:e.prompt,callback:function(n){e.prompt=n},expression:"prompt"}})],1)],2)])},x8=[],w8=H(C8,b8,x8,!1,null,"966d186a",null,null);const S8=w8.exports,T8=F.extend({name:"ERadioGroup",mixins:[wt],props:{dark:{type:Boolean,default:!1},withDescription:{type:Boolean,default:!0}},computed:{radioItemClasses(){return{"e-bg-gray-800 e-text-gray-200 e-border-gray-700":this.dark,"e-text-gray-500 e-bg-white e-border-gray-300":!this.dark}},selectedItemClasses(){return"e-text-[#00315f] e-bg-[#629efc] e-border-transparent"}},methods:{showDescription(t){var e,r;return this.withDescription&&((r=(e=this.options)==null?void 0:e[t])==null?void 0:r.description)&&this.options[t].description.length>0||this.isSelected(t)},containerClasses(t){return[this.isSelected(t)?this.selectedItemClasses:this.radioItemClasses,this.options[t].disabled||this.disabled?"e-opacity-50 e-cursor-not-allowed":"e-cursor-pointer e-select-none"]}}});var k8=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-radio-group__wrapper e-mx-auto e-w-full"},[r("div",[r("div",{staticClass:"e-space-y-2"},e._l(e.options,function(n,i){return r("div",{key:i,staticClass:"e-radio-group__container e-relative e-flex e-border-solid e-border-[1.67px] e-rounded-lg e-px-4 e-py-2.5 e-shadow-md focus:e-outline-none e-max-h-[66px]",class:e.containerClasses(i),on:{click:function(o){return e.onItemClick(i)}}},[r("div",{staticClass:"e-radio-group__option-wrapper e-flex e-w-full e-items-center e-justify-between"},[r("div",{staticClass:"e-radio-group__option-wrapper e-flex e-items-center"},[r("div",{staticClass:"e-text-sm"},[r("h2",{staticClass:"e-radio-group__option-title e-font-semibold e-text-sm e-mb-1 e-mt-1"},[e._v(" "+e._s(n.label)+" ")]),r("div",[e.showDescription(i)?r("span",{staticClass:"e-radio-group__option-description e-mt-2 e-text-sx"},[e._v(" "+e._s(n.description)+" ")]):e._e()])])]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isSelected(i),expression:"isSelected(index)"}],staticClass:"e-shrink-0 e-text-white"},[r("svg",{staticClass:"e-h-6 e-w-6",attrs:{viewBox:"0 0 24 24",fill:"none"}},[r("circle",{attrs:{cx:"12",cy:"12",r:"12",fill:"#fff","fill-opacity":"0.2"}}),r("path",{attrs:{d:"M7 13l3 3 7-7",stroke:"#fff","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}})])])])])}),0)])])},$8=[],E8=H(T8,k8,$8,!1,null,null,null,null);const vs=E8.exports,M8=F.extend({name:"ETabs",mixins:[Rt],props:{dark:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},activeClass:{type:String,default:null}},methods:{onTabSelected(t){this.currentValue=t,this.$emit("tab-selected",t)},isActive(t){return this.currentValue===t},isLink(t){return!!t&&!this.isExternalLink(t)},isExternalLink(t){return!!t&&t.startsWith("http")},getTabBarItemClasses(t,e=""){return["e-tabs__item e-inline-block e-p-4 e-cursor-pointer e-text-xs",{[this.activeClass]:this.isActive(t)&&!!this.activeClass,"!e-text-gray-200 e-border-gray-700":this.dark&&!this.isActive(t),"hover:!e-text-gray-600 !e-text-gray-800":this.isExternalLink(e)||this.isLink(e),"!e-text-blue-600":this.isExternalLink(e)||this.isLink(e)," hover:e-bg-gray-100 ":!this.isActive(t)&&!this.dark,"!e-text-blue-600 e-bg-blue-100":this.isActive(t)&&!this.dark,"e-tabs__item-active":this.isActive(t)&&this.dark,"e-border-l-3 e-border-l-solid !e-border-b-blue-600":this.vertical&&this.isActive(t),"e-border-b-2 e-border-b-solid !e-border-b-blue-600":!this.vertical&&this.isActive(t)}]},getChildTitle(t){var r,n,i;const e=(r=t.componentOptions)==null?void 0:r.propsData;return e!=null&&e.title?e.title:e!=null&&e.name?e.name:(i=(n=t.data)==null?void 0:n.attrs)!=null&&i.name?t.data.attrs.name:`Tab ${this.currentValue+1}`},renderTab(t,e,r){var o,s,c,a,l,d,f,m;const n=((s=(o=e.data)==null?void 0:o.attrs)==null?void 0:s.href)||((a=(c=e.data)==null?void 0:c.attrs)==null?void 0:a.to),i=this.getTabBarItemClasses(r,n);if(n)try{return this.isExternalLink(n)?t("a",{key:r,class:i,attrs:{href:n,target:"_blank",rel:"noopener noreferrer",...(l=e.data)==null?void 0:l.attrs}},[this.getChildTitle(e)]):t("router-link",{key:r,class:i,attrs:{to:n,...(d=e.data)==null?void 0:d.attrs}},[this.getChildTitle(e)])}catch{return t("a",{key:r,class:i,attrs:{href:n,...(f=e.data)==null?void 0:f.attrs}},[this.getChildTitle(e)])}return t("div",{key:r,class:i,attrs:(m=e.data)==null?void 0:m.attrs,on:{click:()=>this.onTabSelected(r)}},[this.getChildTitle(e)])},renderContent(t,e,r){var n,i,o,s;return(i=(n=e.data)==null?void 0:n.attrs)!=null&&i.href||(s=(o=e.data)==null?void 0:o.attrs)!=null&&s.to||!this.isActive(r)?null:t("div",{class:"tab-content e-overflow-auto e-max-h-screen e-w-full"},[e])}},render(t){var r;const e=((r=this.$slots.default)==null?void 0:r.filter(n=>n.tag))||[];return t("div",{class:["e-tabs e-w-full e-h-full",{"e-flex-col":!this.vertical,"e-flex":this.vertical}]},[t("div",{class:["e-tabs__header e-text-sm e-font-medium e-text-center",{"e-flex e-border-b e-border-b-solid e-w-full":!this.vertical,"e-flex e-flex-col e-border-r e-border-r-solid":this.vertical,"e-text-gray-700":!this.activeClass,"e-tabs__header-light-border":!this.dark&&!this.activeClass,"e-tabs__header-dark-border":this.dark&&!this.activeClass,"e-bg-white":!this.dark,"e-bg-gray-800":this.dark}]},e.map((n,i)=>this.renderTab(t,n,i))),t("div",{class:"tab-content e-w-full"},e.map((n,i)=>this.renderContent(t,n,i)).filter(Boolean))])}}),Gd="";var L8=H(M8,null,null,!1,null,null,null,null);const _s=L8.exports,D8=F.extend({name:"ECard",props:{title:{type:[String,void 0],default:void 0},width:{type:[Number,String,void 0],default:void 0},height:{type:[Number,String,void 0],default:void 0},imageSize:{type:[Number,String,void 0],default:100},imagePadding:{type:Number,default:0},image:{type:[String,void 0],default:void 0},blurBackground:{type:Boolean,default:!1},imageTranslation:{type:[Number,void 0],default:void 0},dark:{type:Boolean,default:!1}},data(){return{bodyPadding:45}},computed:{surfaceClasses(){return{"e-border-solid e-border-[1px]":!0,"e-border-gray-200":!this.dark,"e-border-gray-600":this.dark}},backgroundClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark}},textClasses(){return{"e-text-gray-200":this.dark,"e-text-gray-600":!this.dark}},containerClasses(){return{...this.surfaceClasses,...this.backgroundClasses,...this.textClasses}},imageContainerClasses(){return{...this.surfaceClasses,...this.textClasses,"e-bg-gray-100":!0}},containerStyle(){let t={};return this.width&&(t={...t,width:isNaN(this.width)?this.width:`${this.width}px`}),this.height&&(t={...t,height:isNaN(this.height)?this.height:`${this.height}px`}),t},effectiveImageSize(){return(isNaN(this.imageSize)?parseInt(this.imageSize):this.imageSize)-2*this.imagePadding},imageStyle(){return{height:"auto",width:`${this.effectiveImageSize}px`,margin:`${this.imagePadding}px`}},imageContainerStyle(){const t=isNaN(this.imageSize)?this.imageSize:`${this.imageSize}px`;return{height:t,width:t,top:`${-this.computedImageTranslation}px`,left:`${-this.computedImageTranslation}px`}},computedImageTranslation(){return isNaN(this.imageTranslation)?-20:this.imageTranslation},titleStyle(){return this.image?{paddingLeft:`${this.imageSize-this.computedImageTranslation}px`}:{}},contentStyle(){return this.image?{paddingTop:`${Math.max(0,this.imageSize-this.bodyPadding-this.computedImageTranslation)}px`}:{}}},mounted(){this.blurBackground&&!/\.(gif|png|svg)$/.test(this.image)&&console.error("ECard: Image should be a gif, png or svg to blur the background")}}),Ud="";var P8=function(){var e=this,r=e._self._c;return r("div",e._g(e._b({staticClass:"e-card e-rounded-lg e-p-3 e-relative",class:e.containerClasses,style:e.containerStyle},"div",e.$attrs,!1),e.$listeners),[e.image?r("div",{staticClass:"e-card__img__container e-absolute e-overflow-hidden e-rounded-lg e-flex e-justify-center e-items-center e-z-0",class:e.imageContainerClasses,style:e.imageContainerStyle},[e.blurBackground?r("img",{staticClass:"e-card__image--bg e-absolute",style:e.imageStyle,attrs:{src:e.image,alt:"card image"}}):e._e(),r("img",{staticClass:"e-card__image e-absolute",style:e.imageStyle,attrs:{src:e.image,alt:"card image"}})]):e._e(),r("div",{staticClass:"e-card__body e-relative e-z-1"},[e.title?r("div",{staticClass:"e-card__title e-font-bold e-text-lg e-mb-2",style:e.titleStyle},[e._t("title",function(){return[e._v(" "+e._s(e.title)+" ")]})],2):e._e(),r("div",{staticClass:"e-card__content",style:e.contentStyle},[e._t("default")],2)])])},O8=[],z8=H(D8,P8,O8,!1,null,null,null,null);const B8=z8.exports,vn={EAvatar:Mt,EBadge:Kt,EIcon:We,ESpinner:Gr,ERow:qr,ECol:Wr,EVideoPlayer:Ri,ETimeline:Zi,EVideoEmbed:Yi,EHeatmapBar:un,EHoursHeatmap:Xi,EReadMore:Vi,ETruncatedDiv:Qi,ECompareSeparator:Ki,EDragResize:dn,EImagesComparator:Ji,EToggleSwitch:as,EExpandableMenu:es,EZoomable:Kr,EGlobalSearch:hs,ESvgIcon:is,ECalendarHeatmap:ss,EImagePlayer:fs,EZoomableImg:pn,EZoomSlider:fn,EActionButton:ft,ETooltip:St,ELayout:ps,EChat:S8,EContextProvider:Zc,ECopyToClipboardBtn:mn,EPopover:hn,EVoiceRecorderToText:gn,ERadioGroup:vs,ESelect:ds,ETabs:_s,ECard:B8,ESchedulePicker:os,ESchedule:ls},I8={install(t){Object.keys(vn).forEach(e=>{t.component(e,vn[e])}),Object.keys(us).forEach(e=>{t.mixin(e,us[e])}),Ni.forEach(({name:e,definition:r})=>{t.directive(e,r)})}};G.AvatarSizes=U1,G.BadgeColors=Y1,G.BadgeSizes=W1,G.BaseColor=se,G.ChatMessageRole=Ye,G.ChatMessageType=Vt,G.ClickOutsideDirective=tn,G.Colors=Li,G.CompareMode=nt,G.Days=Mn,G.DirectivesMap=Ni,G.EActionButton=ft,G.EAvatar=Mt,G.EBadge=Kt,G.ECalendarHeatmap=ss,G.ECol=Wr,G.ECompareSeparator=Ki,G.ECopyToClipboardBtn=mn,G.EDragResize=dn,G.EExpandableMenu=es,G.EGlobalSearch=hs,G.EHeatmapBar=un,G.EHoursHeatmap=Xi,G.EIcon=We,G.EImagePlayer=fs,G.EImagesComparator=Ji,G.ELayout=ps,G.EPopover=hn,G.ERadioGroup=vs,G.EReadMore=Vi,G.ERow=qr,G.ESchedule=ls,G.ESchedulePicker=os,G.ESelect=ds,G.ESpinner=Gr,G.ESvgIcon=is,G.ETabs=_s,G.ETimeline=Zi,G.EToggleSwitch=as,G.ETooltip=St,G.ETruncatedDiv=Qi,G.EVENTS=Q1,G.EVideoEmbed=Yi,G.EVideoPlayer=Ri,G.EVoiceRecorderToText=gn,G.EZoomSlider=fn,G.EZoomable=Kr,G.EZoomableImg=pn,G.FeedbackType=Qt,G.IconSizes=Di,G.ImageQuality=Ln,G.Position=Oe,G.ResizeObserverDirective=Ve,G.ScheduleType=vt,G.Size=K,G.TextSizes=Mi,G.TimelineAxis=rt,G.TimelineChartType=He,G.TimelineIntervalChangeTrigger=_t,G.ToggleSwitchSizes=Z1,G.TooltipColors=X1,G.TooltipPositions=V1,G.components=vn,G.debounce=p0,G.default=I8,G.eventListeners=Ge,G.exitFullScreen=Yr,G.formField=Rt,G.fullConfig=jr,G.generateUniqueId=_0,G.getGradientColors=Xr,G.getImageData=g0,G.getRandomChars=m0,G.hashCode=Bi,G.hexToRgba=Pi,G.hoursMinutesStrToMinutes=Fi,G.inactivityListener=cs,G.isFullScreen=Ur,G.isRgba=zi,G.isValidDate=v0,G.makeFullScreen=Zr,G.minutesToHoursMinutesStr=Vr,G.rgbToRgba=Oi,G.schedules=Ii,G.selectFormField=wt,G.subtractOneHourFromEndIntervals=C0,G.timeouts=Ue,G.toNumericSchedule=Qr,G.toRgba=ht,G.toggleOpen=Ht,G.twentyFourHours=y0,Object.defineProperties(G,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
249
+ `);return await this.processMarkdown(i),n=n.replace(i,""),this.startNewRenderingCycle(),n}async render(e){this.isFirstTableRender&&(this.updateContent(e),this.isFirstTableRender=!1),this.isRenderingTable?(this.updateTableContent(e),this.accumulator=this.mdTableHeaderString+this.pendingRowString):this.animated?await this.animateNewChunk(e):this.updateContent(e)}updateTableContent(e){const r=this.extractTableFromHtml(e);if(!r)return;const n=this.htmlRenderingTarget.parentNode,i=this.ensureTableExists(n);this.removeEmptyTableRows(i);const a=r.querySelector("tbody")||document.createElement("tbody"),o=this.ensureTBodyExists(i);this.copyTableHead(r,i),this.copyTableBodyRows(a,o)}processTextNode(e,r,n,i,a){const c=e.value.split(i);if(c.length>1){const s=this.replaceRegexTargets(c,i,a,e,r);n.children.splice(r,1,...s)}}replaceRegexTargets(e,r,n,i,a){return e.map((o,c)=>{var s,l;if(r.test(o)){const d=`regex-target-${n}-${c}-${a}-${this.totalMarkdown.length}-${(l=(s=i==null?void 0:i.position)==null?void 0:s.start)==null?void 0:l.offset}`;return this.regexRenderTargetsById[d]={match:o,type:n},{type:"html",value:`<span id="${d}">${o}</span>`}}return o?{type:"text",value:o}:null}).filter(Boolean)}ensureTableExists(e){let r=e.querySelector(`table#t-${this.tableId}`);return r||(r=document.createElement("table"),r.id=`t-${this.tableId}`,e.appendChild(r)),r}ensureTBodyExists(e){let r=e.querySelector("tbody");return r||(r=document.createElement("tbody"),e.appendChild(r)),r}copyTableHead(e,r){const n=e.querySelector("thead");!r.querySelector("thead")&&n&&r.appendChild(n)}copyTableBodyRows(e,r){const n=e.querySelectorAll("tr"),i=Array.from(r.querySelectorAll("tr")).map(a=>a.id);n&&n.forEach(a=>{!a.innerText.trim()||i.includes(a.id)||r.appendChild(a.cloneNode(!0))})}removeEmptyTableRows(e){e.querySelectorAll("tr").forEach(n=>{const i=n.querySelectorAll("td, th");let a=!0;i.forEach(o=>{o.textContent.trim()!==""&&(a=!1)}),a&&n.parentNode.removeChild(n)})}getRegexRenderTargets(){return this.regexRenderTargetsById}clearRegexRenderTargets(){this.regexRenderTargetsById={}}extractTableFromHtml(e){const r=document.createElement("div");return r.innerHTML=e,r.querySelector(`table#t-${this.tableId}`)}updateContent(e){const r=document.createElement("div");r.innerHTML=e,Xs(this.htmlRenderingTarget,r,{onBeforeElUpdated:(n,i)=>n.classList.contains("Typewriter__wrapper")?(i.innerHTML=n.innerHTML,!1):!0})}initTypewriter(){return new yu(this.container,{loop:!1,delay:0,cursor:""})}async animateNewChunk(e){const r=this.getNewContent(e);await new Promise(n=>{this.onAnimationStart(),this.typewriter.typeString(r).callFunction(()=>{this.onAnimationEnd(),n()}).start()})}getNewContent(e){const r=document.createElement("div");return r.innerHTML=e,(r.textContent||"").slice(this.lastProcessedLength)}}const bu=F.extend({name:"EMarkdown",props:{nextChunks:{type:[Array,String],default:()=>[]},exposedRegexes:{type:Array,default:()=>[]},animated:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},useTableProcessor:{type:Boolean,default:!0}},data(){return{isProcessing:!1,processor:null}},watch:{nextChunks(t){this.handleNewChunk(t.join(""))}},mounted(){this.initProcessor(),this.processInitialChunks()},methods:{initProcessor(){const t=this.$refs.content;this.processor=new Cu(t,{exposedRegexes:this.exposedRegexes,animated:this.animated,onAnimationStart:()=>this.$emit("animation-start"),onAnimationEnd:()=>this.$emit("animation-end"),useTableProcessor:this.useTableProcessor})},async processChunk(t){var r;await((r=this.processor)==null?void 0:r.processMarkdown(t))&&this.renderRegexesScopedSlots()},async handleNewChunk(t){await this.processChunk(t)},async processInitialChunks(){const t=Array.isArray(this.nextChunks)?this.nextChunks:[this.nextChunks];for(const e of t)await this.handleNewChunk(e)},renderRegexesScopedSlots(){var e,r;const t=(e=this.processor)==null?void 0:e.getRegexRenderTargets();Object.entries(t).forEach(([n,{match:i,type:a}])=>{this.renderScopedSlot({id:n,type:a,propsData:{match:i}})}),(r=this.processor)==null||r.clearRegexRenderTargets()},renderScopedSlot({id:t,type:e,propsData:r}){const n=document.getElementById(t);if(!n)return;const i=this.$scopedSlots[`markdown.regex.${e}`];if(!i)return;const a=F.extend({functional:!0,props:["scopedSlot","propsData"],render:(c,s)=>s.props.scopedSlot(s.props.propsData)}),o=new F({render:c=>c(a,{props:{scopedSlot:i,propsData:r}})}).$mount();return n.innerHTML="",n.appendChild(o.$el),o}}}),Od="";var xu=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-markdown"},[r("article",{staticClass:"e-mx-auto prose-h1:!e-text-2xl prose-h2:!e-text-xl prose-h2:!e-mt-0 prose-h3:!e-text-lg e-prose e-prose-slate",class:{"e-prose-invert":e.dark}},[r("div",{ref:"content",staticClass:"e-markdown__content"})])])},wu=[],Su=H(bu,xu,wu,!1,null,null,null,null);const Tu=Su.exports,ku=F.extend({name:"ECopyToClipboardBtn",components:{EActionButton:ft},mixins:[Ge,Ue],props:{text:{type:[Function,String,Number],required:!0},buttonText:{type:String,default:""},buttonClasses:{type:[String,Object,Array],default:null},description:{type:String,default:"Copy"},iconType:{type:String,default:"far fa-copy"},textOnlyButton:{type:Boolean,default:!1},dark:{type:Boolean,default:!0}},data(){return{loading:!1,tooltipText:this.description||"Copy to clipboard"}},computed:{copyButtonClasses(){return{"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"hover:e-bg-gray-600":this.dark,"hover:e-bg-gray-200":!this.dark,"e-rounded-md e-border-none copy-button e-bg-transparent":!0}}},watch:{tooltipText(t){t!==this.description&&this.$setTimeout(()=>{this.tooltipText=this.description},1e3)}},mounted(){this.$addEventListener("focusin",this.handleFocusin,this.$refs.copyToClipboard)},methods:{handleFocusin(t){t.stopPropagation()},getProp(t,e){return Object.prototype.hasOwnProperty.call(this.$attrs,t)?this.$attrs[t]:e},copyTextToClipboard(){try{this.loading=!0;let t;typeof this.text=="function"?t=this.text():t=this.text;const e=this.$refs.copyToClipboard;e.value=t,e.focus(),e.select(),document.execCommand("copy"),this.tooltipText="Copied!",this.$emit("copied")}catch(t){console.error("Failed to copy text to clipboard",t)}finally{this.loading=!1}}}}),zd="";var $u=function(){var e=this,r=e._self._c;return r("EActionButton",e._g(e._b({attrs:{"tooltip-text":e.tooltipText,"tooltip-position":"top",icon:e.iconType,"icon-size":"Lg",dark:e.dark,"button-classes":e.copyButtonClasses},on:{click:e.copyTextToClipboard}},"EActionButton",e.$attrs,!1),e.$listeners),[e._v(" "+e._s(e.buttonText)+" "),r("textarea",{ref:"copyToClipboard",staticClass:"copy-to-clipboard",attrs:{readonly:""}})])},Eu=[],Mu=H(ku,$u,Eu,!1,null,"d3d39d0d",null,null);const mn=Mu.exports,Lu=F.extend({name:"EDialog",components:{EFadeTransition:Nt},mixins:[Ge],props:{value:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},actions:{type:Array,default:()=>[]},title:{type:String,default:""},persistent:{type:Boolean,default:!1},width:{type:[Number,String],default:500},height:{type:[Number,String],default:void 0},closeWithEscape:{type:Boolean,default:!0}},computed:{visible:{get(){return this.value},set(t){this.$emit("input",t)}},panelClasses(){return["e-relative e-transform e-overflow-hidden e-rounded-lg e-text-left e-shadow-xl e-transition-all e-w-full e-flex e-flex-col",this.dark?"e-bg-gray-800":"e-bg-white"]},headerContainerClasses(){return["e-dialog__header",this.dark?"e-bg-gray-800 e-text-gray-50":"e-bg-white e-text-slate-900","e-px-6 e-pt-6 e-pb-4"]},bodyContainerClasses(){return["e-dialog__body e-px-6",this.dark?"e-bg-gray-800 e-text-gray-50":"e-bg-white e-text-slate-900"]},footerContainerClasses(){return["e-dialog__footer",this.dark?"e-bg-gray-700":"e-bg-gray-50","e-flex e-py-3 e-px-4 e-justify-end e-mt-auto e-items-end"]},panelStyles(){const t=typeof this.width=="number"?`${this.width}px`:this.width,e=typeof this.height=="number"?`${this.height}px`:this.height;return{minWidth:t,minHeight:e,width:t,height:e}}},watch:{visible(t){t?this.showDialog():this.closeDialog()}},mounted(){this.visible&&this.showDialog(),this.$addEventListener("keydown",this.handleKeyDown)},methods:{showDialog(){this.$nextTick(()=>{const t=this.$refs.dialog;t&&!t.open&&t.showModal()})},closeDialog(){const t=this.$refs.dialog;t!=null&&t.open&&t.close()},handleBackdropClick(t){!this.persistent&&t.target===t.currentTarget&&(this.visible=!1)},onClose(){this.persistent||(this.visible=!1)},getButtonClasses(t){const e=this.dark?"e-bg-gray-700 e-text-gray-50 e-border-solid e-border-[1px] e-border-gray-500 hover:e-bg-gray-600":"e-bg-white e-text-gray-900 e-border-solid e-border-[1px] e-border-gray-300 hover:e-bg-gray-50",r={[se.Warning]:"e-bg-warning e-text-white e-border-none",[se.Error]:"e-bg-error e-text-white e-border-none",[se.Info]:"e-bg-info e-text-white e-border-none",[se.Success]:"e-bg-success e-text-white e-border-none",[se.Primary]:"e-bg-primary e-text-white e-border-none",[se.Brand]:"e-bg-brand-500 e-text-white e-border-none",[se.Default]:e,[se.Gray]:"e-bg-gray-600 e-text-white hover:e-bg-gray-light e-border-none"};return["e-inline-flex e-w-full e-justify-center e-rounded-md e-px-3 e-py-2 e-text-sm e-font-semibold e-shadow-sm sm:e-ml-3 sm:e-w-auto e-cursor-pointer hover:e-opacity-90",r[t]||r[se.Default]]},onActionClick(t){t.closeOnClick&&(this.visible=!1),this.$emit("action-clicked",t.id||t.label)},handleKeyDown(t){t.key==="Escape"&&(this.persistent||!this.closeWithEscape?t.preventDefault():this.visible=!1)}}}),Bd="";var Du=function(){var e=this,r=e._self._c;return r("EFadeTransition",{attrs:{duration:100}},[e.visible?r("dialog",{ref:"dialog",staticClass:"e-dialog e-p-0 e-m-auto e-border-none e-rounded-lg",on:{click:e.handleBackdropClick,close:e.onClose,cancel:e.onClose}},[r("div",{class:e.panelClasses,style:e.panelStyles},[r("div",{class:e.headerContainerClasses},[e._t("header",function(){return[e.title?r("div",{staticClass:"e-text-lg e-font-bold"},[e._v(" "+e._s(e.title)+" ")]):e._e()]},{dark:e.dark})],2),r("div",{class:e.bodyContainerClasses},[e._t("default",null,{dark:e.dark})],2),r("div",{class:e.footerContainerClasses},[e._t("footer",function(){return e._l(e.actions,function(n,i){return r("button",{key:i,class:e.getButtonClasses(n.color),on:{click:function(a){return a.stopPropagation(),e.onActionClick(n)}}},[e._v(" "+e._s(n.label)+" ")])})},{actions:e.actions,dark:e.dark})],2)])]):e._e()])},Pu=[],Ou=H(Lu,Du,Pu,!1,null,null,null,null);const zu=Ou.exports,Bu=F.extend({name:"EFeedbackButton",components:{EDialog:zu,EActionButton:ft},mixins:[Ge,Ue],props:{buttonText:{type:String,default:""},buttonClasses:{type:[String,Object,Array],default:null},description:{type:String,default:"Submit feedback"},iconType:{type:String,default:"far fa-thumbs-up"},withText:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},dialogActions:{type:Array,default:()=>[{label:"Cancel",color:"default",closeOnClick:!0},{label:"Submit",color:"primary"}]},dialogWidth:{type:[Number,String],default:"27rem"}},data(){return{tooltipText:this.description||"Submit feedback",showDialog:!1,feedbackText:""}},computed:{eButtonClasses(){return{"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"hover:e-bg-gray-600":this.dark,"hover:e-bg-gray-200":!this.dark,"e-rounded-md e-border-none e-bg-transparent":!0}},textAreaClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"e-text-gray-600":!this.dark,"e-text-gray-300":this.dark,"e-custom-scrollbar--light":!this.dark,"e-custom-scrollbar--dark":this.dark}},textAreaContainerClasses(){return{"e-border-gray-600":this.dark,"e-border-gray-300":!this.dark}}},watch:{tooltipText(t){t!==this.description&&this.$setTimeout(()=>{this.tooltipText=this.description},1e3)}},methods:{onClick(t){this.withText?this.showDialog=!0:this.submitFeedback(t)},submitFeedback(t){if(t==="Cancel"){this.showDialog=!1;return}this.showDialog=!1,this.$emit("submit",this.feedbackText),this.tooltipText="Thank you!"}}}),Id="";var Iu=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EActionButton",{attrs:{"tooltip-text":e.tooltipText,"tooltip-position":"top",icon:e.iconType,"icon-size":"Lg",dark:e.dark,"button-classes":e.eButtonClasses},on:{click:e.onClick}},[e._v(" "+e._s(e.buttonText)+" "),e.withText?r("EDialog",{staticClass:"e-feedback",attrs:{value:e.showDialog,title:"Feedback",dark:e.dark,width:e.dialogWidth,persistent:"",actions:e.dialogActions,"close-with-escape":!1},on:{"action-clicked":e.submitFeedback}},[r("div",{staticClass:"e-feedback__form"},[r("div",{staticClass:"e-feedback__form-description e-mb-3 e-leading-relaxed"},[e._v(" Thanks for your input! "),r("br"),e._v("Please share your thoughts and experience to help us improve ")]),r("div",{staticClass:"e-rounded-md e-w-full e-overflow-hidden e-border e-border-solid e-py-2 e-mb-6",class:e.textAreaContainerClasses},[r("textarea",{directives:[{name:"model",rawName:"v-model",value:e.feedbackText,expression:"feedbackText"}],staticClass:"e-feedback__textarea focus:e-outline-none e-mr-6 e-border-none e-placeholder-gray-400 e-py-3 e-pl-3 e-w-full",class:e.textAreaClasses,attrs:{autofocus:"",tabindex:"0",rows:"4",placeholder:"Enter your text here..."},domProps:{value:e.feedbackText},on:{input:function(n){n.target.composing||(e.feedbackText=n.target.value)}}})])])]):e._e()],1)},Fu=[],Au=H(Bu,Iu,Fu,!1,null,null,null,null);const Ru=Au.exports,Hu=F.extend({name:"EChatMessageActions",components:{EFeedbackButton:Ru,ECopyToClipboardBtn:mn,EActionButton:ft},props:{message:{type:[String,Array],default:""},dark:{type:Boolean,default:!1},showCopyButton:{type:Boolean,default:!1},showRegenerateButton:{type:Boolean,default:!1},showFeedbackButtons:{type:Boolean,default:!1},messageId:{type:[String,Number],default:null}},data(){return{FeedbackType:Qt,showFeedbackDialog:!1}},computed:{messageText(){return(Array.isArray(this.message)?this.message:[this.message]).join("")},eButtonClasses(){return{"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"hover:e-bg-gray-600":this.dark,"hover:e-bg-gray-200":!this.dark,"e-rounded-md e-border-none e-bg-transparent e-border-none":!0}}},methods:{handleFeedback(t,e){this.$emit("feedback",{type:t,text:e})},openFeedbackDialog(){this.showFeedbackDialog=!0}}}),Fd="";var Nu=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-message__actions e-relative"},[r("div",{staticClass:"e-message__actions-container e-flex e-gap-1 e-my-2"},[e.showCopyButton?r("ECopyToClipboardBtn",{attrs:{text:e.messageText,dark:e.dark,"button-size":"xs","button-classes":"e-bg-transparent e-border-none",description:"Copy"}}):e._e(),e.showRegenerateButton?r("EActionButton",{attrs:{"tooltip-text":"Regenerate","tooltip-position":"top",icon:"rotate-right","icon-size":"xs",dark:e.dark,"button-classes":e.eButtonClasses},on:{click:function(n){return e.$emit("regenerate")}}}):e._e(),e.showFeedbackButtons?r("EFeedbackButton",{attrs:{dark:e.dark,"with-text":"",description:"Give positive feedback","button-size":"sm","button-classes":"e-bg-transparent e-border-none"},on:{submit:function(n){return e.handleFeedback(e.FeedbackType.Positive,n)}},nativeOn:{click:function(n){return e.openFeedbackDialog.apply(null,arguments)}}}):e._e(),e.showFeedbackButtons?r("EFeedbackButton",{attrs:{dark:e.dark,"with-text":"",description:"Give negative feedback","button-size":"sm","button-classes":"e-bg-transparent e-border-none","icon-type":"far fa-thumbs-down"},on:{submit:function(n){return e.handleFeedback(e.FeedbackType.Negative,n)}},nativeOn:{click:function(n){return e.openFeedbackDialog.apply(null,arguments)}}}):e._e()],1)])},ju=[],Gu=H(Hu,Nu,ju,!1,null,null,null,null);const qu=Gu.exports,Wu=F.extend({name:"EChatMessage",components:{EFadeTransition:Nt,EAvatar:Mt,EChatMessageActions:qu,EEvercamLogo:gs,EPulsatingDot:vu,EMarkdown:Tu},mixins:[Ue],props:{role:{type:String,default:Ye.User},initials:{type:String,default:null},message:{type:[String,Array,Object],default:""},isLoading:{type:Boolean,default:!1},avatarSrc:{type:String,default:null},type:{type:String,default:Vt.Text},showAvatar:{type:Boolean,default:!0},dark:{type:Boolean,default:!1},withActions:{type:Boolean,default:!1},showCopyButton:{type:Boolean,default:!1},showRegenerateButton:{type:Boolean,default:!1},showFeedbackButtons:{type:Boolean,default:!1},loadingMessage:{type:String,default:""},exposedRegexes:{type:Array,default:()=>[]},animated:{type:Boolean,default:!1},eMarkdownProps:{type:Object,default:()=>({})}},data(){return{showActions:!1,nextChunks:[]}},computed:{isBotRole(){return this.role===Ye.Copilot||this.role===Ye.System},userMessageClasses(){return{"e-bg-gray-100 e-text-gray-800":!this.dark,"e-bg-gray-600 e-text-white":this.dark}},logoClasses(){return{"e-bg-white e-rounded-full":this.dark}},dotColor(){return this.dark?"#ff2525":"#c5393d"},markdownScopedSlots(){return Object.keys(this.$scopedSlots).filter(t=>t.startsWith("markdown.")).reduce((t,e)=>(t[e]=this.$scopedSlots[e],t),{})}},watch:{message:{immediate:!0,handler(t,e){t.length&&(e!=null&&e.length?this.nextChunks=t.slice(e.length):this.nextChunks=t)}}},methods:{onMouseOver(){this.showActions=!0},onMouseLeave(t){[null,document.documentElement].includes(t.relatedTarget)||(this.showActions=!1)},onFeedback(t){this.$emit("feedback",t),this.$setTimeout(()=>{this.showActions=!1},1e3)}}}),Ad="";var Uu=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-message e-mb-3"},[r("div",{staticClass:"e-chat-message__wrapper e-flex e-items-start e-justify-start e-gap-3",class:{"e-chat-message__rtl":!e.isBotRole}},[e.showAvatar?r("div",{staticClass:"e-chat-message__avatar"},[e.isBotRole?e._t("message-avatar",function(){return[r("div",{class:e.logoClasses},[r("EEvercamLogo",{attrs:{size:"xs","background-classes":"e-bg-white e-p-[2px] e-rounded-full !e-pr-[2.5px] !e-pt-[3.5px]"}})],1)]},{role:e.role}):r("EAvatar",{attrs:{image:e.avatarSrc,size:"Xs"}},[e._v(e._s(e.initials))])],2):e._e(),r("div",{staticClass:"e-chat-message__content e-flex e-w-full",class:{"e-justify-end":!e.isBotRole}},[e._t("message.content",function(){return[e.isLoading&&e.isBotRole?e._t("loadingPlaceholder",function(){return[r("div",[e.loadingMessage?r("EMarkdown",{staticClass:"e-chat-message__markdown e-italic",attrs:{"next-chunks":[e.loadingMessage],animated:"",dark:e.dark,copyable:!1}}):e._e(),r("div",{staticClass:"e-inline-block e-mt-2 e-ml-2"},[r("EPulsatingDot",{attrs:{size:8,color:e.dotColor}})],1)],1)]}):e.isBotRole&&e.type!=="error"?r("EMarkdown",e._b({staticClass:"e-chat-message__markdown e-w-full",attrs:{"next-chunks":e.nextChunks,animated:e.animated,dark:e.dark,"exposed-regexes":e.exposedRegexes},on:{"animation-end":function(n){return e.$emit("animation-end")},"animation-start":function(n){return e.$emit("animation-start")}},scopedSlots:e._u([e._l(e.markdownScopedSlots,function(n,i){return{key:i,fn:function(a){return[e._t(i,null,null,a)]}}})],null,!0)},"EMarkdown",e.eMarkdownProps,!1)):e.type==="error"?r("p",{staticClass:"e-chat-message__error e-px-4 e-py-3 e-border-solid e-border-[1.67px] e-rounded-md e-border-red-400 e-bg-red-500/10 e-text-sm e-font-normal"},[e._v(" "+e._s(e.message)+" ")]):r("p",{staticClass:"e-chat-message__content e-font-medium e-text-wrap e-mb-1 e-rounded-lg e-p-2 e-px-4",class:e.userMessageClasses},[e._v(" "+e._s(e.message)+" ")]),e._t("extraContent")]})],2)]),e._t("message.append"),r("EFadeTransition",[e.withActions?r("EChatMessageActions",{staticClass:"e-left-11",attrs:{"message-id":e.$attrs["data-message-id"],dark:e.dark,"show-copy-button":e.showCopyButton,"show-feedback-buttons":e.showFeedbackButtons,"show-regenerate-button":e.showRegenerateButton,message:e.message},on:{feedback:e.onFeedback,regenerate:function(n){return e.$emit("message-regenerate")}}}):e._e()],1)],2)},Zu=[],Yu=H(Wu,Uu,Zu,!1,null,null,null,null);const Xu=Yu.exports,Vu=F.extend({name:"EChatFooter",props:{dark:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}},computed:{backgroundClasses(){return this.inline?{}:{"e-bg-gray-700":this.dark,"e-bg-gray-50":!this.dark}},footerClasses(){return{...this.backgroundClasses}}}});var Qu=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-footer e-px-3 e-pt-4 e-pb-3",class:e.footerClasses},[e._t("default")],2)},Ku=[],Ju=H(Vu,Qu,Ku,!1,null,null,null,null);const e8=Ju.exports,t8=F.extend({name:"EVoiceInputVolumeIndicator",props:{isListening:{type:Boolean,required:!0},analyser:{type:Object,required:!0}},data(){return{volume:0,animationFrameId:0}},watch:{isListening:{immediate:!0,handler(t){t?this.startVolumeMonitoring():this.stopVolumeMonitoring()}}},beforeDestroy(){this.stopVolumeMonitoring()},methods:{startVolumeMonitoring(){this.analyser&&this.updateVolume()},updateVolume(){if(!this.analyser)return;const t=new Uint8Array(this.analyser.frequencyBinCount);this.analyser.getByteFrequencyData(t);let e=0;for(const r of t)e+=r**2.75;this.volume=Math.sqrt(e/t.length)/256,this.animationFrameId=requestAnimationFrame(this.updateVolume)},stopVolumeMonitoring(){this.animationFrameId&&cancelAnimationFrame(this.animationFrameId)}}}),Rd="";var r8=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-volume-indicator e-relative e-w-8 e-h-8 e-flex e-items-center e-justify-center"},[r("div",{staticClass:"e-volume-indicator__bubble e-absolute e-inset-y-0 e-rounded-full",style:{transform:`scale(${e.isListening?.5+e.volume*.5:1})`,opacity:e.isListening?.5:0,width:"inherit",height:"inherit"}}),r("div",{staticClass:"e-absolute e-inset-0 e-flex e-items-center e-justify-center"},[e._t("default")],2)])},n8=[],i8=H(t8,r8,n8,!1,null,null,null,null);const s8=i8.exports,a8=F.extend({name:"EVoiceInput",components:{EVoiceInputVolumeIndicator:s8,EIcon:We,ETooltip:St},mixins:[Ge],props:{value:{type:String,default:""},dark:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},iconSize:{type:Number,default:10},silenceTimeout:{type:Number,default:1500}},data(){return{recognition:null,isListening:!1,interimTranscript:"",finalTranscript:"",analyser:null,audioContext:null,mediaStream:null,mediaStreamSource:null,silenceTimer:null}},computed:{currentTranscript(){return this.finalTranscript+this.interimTranscript},buttonClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"e-opacity-50":this.disabled}}},watch:{currentTranscript(t){this.$emit("input",t)}},mounted(){this.initSpeechRecognition(),this.$addEventListener("keydown",this.handleKeyDown)},beforeDestroy(){this.stopListening()},methods:{initSpeechRecognition(){const t=window.SpeechRecognition||window.webkitSpeechRecognition;if(!t){console.error("Speech recognition is not supported in this browser.");return}if(this.recognition=new t,this.recognition.continuous=!0,this.recognition.interimResults=!0,this.recognition.lang="en-US",this.recognition.speechStartTimeout=200,this.recognition.onresult=this.handleResult,this.recognition.onerror=this.handleError,this.recognition.onend=this.handleEnd,this.recognition.onspeechend=this.handleSpeechEnd,this.audioContext=new(window.AudioContext||window.webkitAudioContext),!this.audioContext){console.error("Audio context is not supported in this browser.");return}this.analyser=this.audioContext.createAnalyser(),this.analyser.fftSize=256},async toggleListening(){this.recognition&&(this.isListening?this.stopListening():await this.setupVolume())},async setupVolume(){try{this.mediaStream=await navigator.mediaDevices.getUserMedia({audio:!0}),this.audioContext.state!=="running"&&await this.audioContext.resume(),this.mediaStreamSource=this.audioContext.createMediaStreamSource(this.mediaStream),this.mediaStreamSource.connect(this.analyser),this.finalTranscript="",this.interimTranscript="",this.recognition.start(),this.isListening=!0}catch(t){console.error("Error accessing microphone:",t)}},stopListening(){this.isListening=!1,this.recognition.stop(),this.silenceTimer&&(clearTimeout(this.silenceTimer),this.silenceTimer=null),this.flushMediaStream()},flushMediaStream(){var t;this.mediaStream&&(this.mediaStream.getTracks().forEach(e=>e.stop()),(t=this.mediaStreamSource)==null||t.disconnect(),this.mediaStream=null,this.mediaStreamSource=null)},handleResult(t){this.interimTranscript="";for(let e=t.resultIndex;e<t.results.length;++e){const r=t.results[e];r.isFinal?this.finalTranscript+=r[0].transcript+" ":this.interimTranscript+=r[0].transcript}this.silenceTimer&&clearTimeout(this.silenceTimer),this.silenceTimer=setTimeout(()=>{this.submitTranscript()},this.silenceTimeout)},handleEnd(){this.isListening=!1},handleSpeechEnd(){this.submitTranscript()},submitTranscript(){this.finalTranscript.trim().length>0&&(this.$emit("on-voice-message-end",this.finalTranscript.trim()),this.finalTranscript="",this.interimTranscript=""),this.stopListening()},handleKeyDown(t){t.code==="Space"&&t.ctrlKey&&(t.preventDefault(),this.toggleListening())},handleError(t){console.error("Speech recognition error:",t==null?void 0:t.error),this.isListening=!1}}});var o8=function(){var e=this,r=e._self._c;return r("ETooltip",{attrs:{text:"Use Ctrl + Space to speak",dark:e.dark}},[r("button",e._g(e._b({staticClass:"e-chat-input__voice-btn e-border-none e-chat-input__voice-btn e-flex e-items-center e-justify-center e-cursor-pointer e-h-8 e-w-8 disabled:e-cursor-not-allowed focus:e-outline-none",class:{...e.buttonClasses,"e-h-10 e-w-10":!e.isListening},on:{click:e.toggleListening}},"button",e.$attrs,!1),e.$listeners),[e.isListening?r("EVoiceInputVolumeIndicator",{attrs:{analyser:e.analyser,"is-listening":e.isListening}},[r("EIcon",{staticClass:"e-chat-input__voice-btn--icon",attrs:{icon:"stop",color:"e-text-red-600",size:"Sm"}})],1):r("EIcon",{attrs:{icon:"microphone",size:"Base"}})],1)])},l8=[],c8=H(a8,o8,l8,!1,null,null,null,null);const gn=c8.exports,u8=F.extend({name:"EChatInput",components:{EIcon:We,ETooltip:St,EVoiceInput:gn},model:{prop:"value",event:"prompt-changed"},props:{dark:{type:Boolean,default:!1},placeholder:{type:String,default:"Message Copilot"},disabled:{type:Boolean,default:!1},silenceTimeout:{type:Number,default:1500}},data(){return{content:"",maxHeight:175,textAreaHeight:0,isShiftKeyPressed:!1,transcript:""}},computed:{textAreaContainerClasses(){return{"e-border-gray-600":this.dark&&!this.disabled,"e-border-gray-300":!this.dark&&!this.disabled,"e-border-gray-800":this.dark&&this.disabled,"e-border-gray-500":!this.dark&&this.disabled,"e-cursor-not-allowed e-opacity-50":this.disabled}},textAreaClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"e-text-gray-600":!this.dark,"e-text-gray-300":this.dark,"e-custom-scrollbar--light":!this.dark,"e-custom-scrollbar--dark":this.dark}},buttonClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"e-opacity-50":this.isSubmitDisabled}},isSubmitDisabled(){return this.disabled||this.content.length<4},textareaStyle(){return this.textAreaHeight?{height:`${Math.min(this.textAreaHeight,this.maxHeight)}px`,overflowY:this.isOverflowing?"scroll":"hidden"}:{}},isOverflowing(){return!!this.textAreaHeight&&this.textAreaHeight>this.maxHeight}},mounted(){this.focus()},methods:{focus(){this.$refs.chatTextarea.focus()},submitMessage(){this.$emit("submit",this.content),this.content="",this.$nextTick(this.updateTextAreaHeight)},onInput(t){const e=t.target,r=this.content===e.value;this.content=e.value,r||(this.updateTextAreaHeight(),this.$emit("prompt-changed",e.value))},onKeyDown(t){if(!this.disabled){if(!this.isShiftKeyPressed&&t.key==="Enter"){t.preventDefault();return}if(t.key==="Shift"||t.code==="ShiftLeft"){this.isShiftKeyPressed=!0;return}}},onKeyUp(t){if(!this.disabled){if(t.key==="Shift"||t.code==="ShiftLeft"){this.isShiftKeyPressed=!1;return}t.key==="Enter"&&!this.isShiftKeyPressed&&(t.preventDefault(),this.submitMessage())}},updateTextAreaHeight(){const t=this.$refs.chatTextarea;t.style.height="auto",this.textAreaHeight=t.scrollHeight},handleVoiceMessage(t){this.$emit("prompt-changed",t),this.$emit("submit",t),this.transcript=""}}}),Hd="";var d8=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-chat-input e-relative e-flex e-w-auto e-p-2"},[r("div",{staticClass:"e-rounded-lg e-w-full e-overflow-hidden e-border e-border-solid",class:e.textAreaContainerClasses},[r("textarea",e._b({ref:"chatTextarea",staticClass:"e-chat-input__textarea focus:e-outline-none e-mr-6 e-border-none e-placeholder-gray-400 e-py-3 e-pl-3 e-w-full",class:e.textAreaClasses,style:e.textareaStyle,attrs:{rows:"1",tabindex:"0",autofocus:"",placeholder:e.transcript.length>0?e.transcript:e.placeholder,disabled:e.disabled},on:{keydown:function(n){return n.stopPropagation(),e.onKeyDown.apply(null,arguments)},keyup:e.onKeyUp,input:e.onInput}},"textarea",e.$attrs,!1))]),r("div",{staticClass:"e-absolute e-bottom-3 e-items-center e-flex e-h-min e-gap-1.5",class:e.isOverflowing?"e-right-6":"e-right-4"},[e._t("input-action-button",function(){return[r("EVoiceInput",{attrs:{dark:e.dark,disabled:e.disabled,"silence-timeout":e.silenceTimeout},on:{"on-voice-message-end":e.handleVoiceMessage},model:{value:e.transcript,callback:function(n){e.transcript=n},expression:"transcript"}}),r("ETooltip",{attrs:{text:"Submit",dark:e.dark}},[r("button",{staticClass:"e-chat-input__submit-btn e-inline-flex e-items-center e-justify-center e-cursor-pointer disabled:e-cursor-not-allowed e-h-8 e-w-8 e-border-none focus:e-outline-none",class:e.buttonClasses,attrs:{type:"button",disabled:e.isSubmitDisabled},on:{click:function(n){return n.preventDefault(),e.submitMessage.apply(null,arguments)}}},[r("EIcon",{attrs:{icon:"arrow-up",size:"base"}})],1)])]},{buttonClasses:e.buttonClasses})],2)])},h8=[],f8=H(u8,d8,h8,!1,null,null,null,null);const p8=f8.exports,m8=F.extend({name:"EChatSuggestionCard",components:{EIcon:We},props:{text:{type:String,required:!0},icon:{type:String,default:null},color:{type:String,default:"e-text-gray-500"},dark:{type:Boolean,default:!1},width:{type:Number,default:null},display:{type:String,default:"row"}},computed:{classes(){return{"e-flex-row":this.display==="row","e-flex-col":this.display==="column","hover:e-bg-gray-100 e-border-gray-200":!this.dark,"e-bg-gray-800 e-border-gray-600 hover:e-bg-gray-900":this.dark}},styles(){return this.width?{width:`${this.width}px`}:{}}}});var g8=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",e._g(e._b({staticClass:"e-chat-suggestion e-p-3 e-flex e-justify-start e-items-start e-gap-2 e-border-solid e-border-[1.67px] e-rounded-md e-cursor-pointer e-w-full",class:e.classes,style:e.styles},"div",e.$attrs,!1),e.$listeners),[r("div",{staticClass:"e-chat-suggestion__icon e-h-6 e-w-6"},[e.icon?r("EIcon",{attrs:{icon:e.icon,size:"Lg",color:e.color}}):e._t("svg-icon")],2),r("div",{staticClass:"e-chat-suggestion__text e-font-medium e-antialiased e-text-wrap",class:{"e-text-gray-200":e.dark,"e-text-gray-600":!e.dark}},[e._v(" "+e._s(e.text)+" ")])])},v8=[],_8=H(m8,g8,v8,!1,null,null,null,null);const y8=_8.exports,C8=F.extend({components:{EFadeTransition:Nt,EChatWrapper:Kc,EChatHeader:ou,EChatBody:hu,EChatMessage:Xu,EChatFooter:e8,EChatInput:p8,EChatSuggestionCard:y8},props:{dark:{type:Boolean,default:!1},messages:{type:Array,default:()=>[]},user:{type:String,default:"You"},embedded:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},inlineFooter:{type:Boolean,default:!1},height:{type:String,default:void 0},width:{type:String,default:void 0},showUserAvatar:{type:Boolean,default:!0},showCopilotAvatar:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},headerText:{type:String,default:"Evercam Copilot"},inputPlaceholder:{type:String,default:"Message Copilot"},loadingMessage:{type:String,default:""},suggestions:{type:Array,default:()=>[]},exposedRegexes:{type:Array,default:()=>[]},eMarkdownProps:{type:Object,default:()=>({useTableProcessor:!1})},silenceTimeout:{type:Number,default:1500}},data(){return{prompt:"",containerHeight:0,headerHeight:0,bodyHeight:0,footerHeight:0}},computed:{ChatMessageRole(){return Ye},userInitials(){var t,e,r;return((r=(e=(t=this.user.trim())==null?void 0:t.split(/\s+/))==null?void 0:e.map(n=>{var i;return((i=n==null?void 0:n.charAt(0))==null?void 0:i.toUpperCase())||""}))==null?void 0:r.join(""))||this.user[0]||""},chatBodyStyle(){return this.bodyHeight?{maxHeight:`${this.bodyHeight}px`,height:`${this.bodyHeight}px`}:{}},wrapperStyle(){return{height:this.height||"100%",width:this.width||"100%"}},bodyBorderClasses(){let t={};this.showHeader&&(t={"e-border-t-[1px] e-border-t-solid":!0,"e-border-t-gray-300":!this.dark,"e-border-t-gray-600":this.dark});let e={};return this.inlineFooter||(e={"e-border-b-[1px] e-border-b-solid":!0,"e-border-b-gray-300":!this.dark,"e-border-b-gray-600":this.dark}),{...t,...e}},markdownScopedSlots(){return Object.keys(this.$scopedSlots).filter(t=>t.startsWith("markdown.")).reduce((t,e)=>(t[e]=this.$scopedSlots[e],t),{})},showSuggestions(){return this.messages.length===0&&this.suggestions.length>0}},watch:{height(){this.updateChatBodyHeight()},showHeader(){this.updateChatBodyHeight()}},mounted(){this.updateChatBodyHeight()},methods:{sendMessage(){!this.isDisabled&&this.prompt.length>0&&(this.$emit("user-message",this.prompt),this.prompt="")},isUserMessage(t){return t.role===Ye.User},hasActions(t){return this.isLoading||this.isDisabled?!1:t.role===Ye.Copilot&&t.withActions!==!1},getMessageContent(t){return t.content},getMessageInitials(t){return this.isUserMessage(t)?this.userInitials:null},getMessageClasses(t,e){return{"e-mb-11":e===this.messages.length-1&&this.hasActions(t)}},updateChatBodyHeight(){this.$nextTick(()=>{var n,i,a;const t=(n=this.$refs.chatContainer)==null?void 0:n.$el,e=(i=this.$refs.chatHeader)==null?void 0:i.$el,r=(a=this.$refs.chatFooter)==null?void 0:a.$el;!t||!e||!r||(this.headerHeight=e.clientHeight,this.footerHeight=r.clientHeight,this.containerHeight=t.clientHeight,this.height?this.bodyHeight=parseInt(this.height)-this.headerHeight-this.footerHeight:this.bodyHeight=Math.max(500,this.containerHeight-this.headerHeight-this.footerHeight))})},isAvatarVisible(t){return t.role===Ye.User?this.showUserAvatar:t.role===Ye.Copilot?this.showCopilotAvatar:!0},onMessageFeedback(t,e){this.$emit("message-feedback",{...t,messageId:e})}}}),Nd="";var b8=function(){var e=this,r=e._self._c;return r("EChatWrapper",{ref:"chatContainer",staticClass:"e-chat-wrapper",style:e.wrapperStyle,attrs:{dark:e.dark,embedded:e.embedded}},[r("div",{staticClass:"e-w-full e-h-full e-chat-container"},[r("EChatHeader",{ref:"chatHeader",attrs:{hidden:!e.showHeader,dark:e.dark,title:e.headerText},scopedSlots:e._u([{key:"chip",fn:function(){return[e._t("chip")]},proxy:!0},{key:"append",fn:function(){return[e._t("header-append")]},proxy:!0}],null,!0)}),r("EChatBody",{ref:"chatBody",class:e.bodyBorderClasses,style:e.chatBodyStyle,attrs:{dark:e.dark}},[r("EFadeTransition",[e.showSuggestions?r("div",{staticClass:"e-w-full e-flex e-flex-col e-items-center e-justify-center e-mt-8"},[r("div",{staticClass:"e-flex e-flex-col e-justify-center e-items-center e-gap-4"},e._l(e.suggestions,function(n){return r("EChatSuggestionCard",{key:n.text,attrs:{text:n.text,icon:n.icon,color:n.color,dark:e.dark,width:n.width,display:n.display||"row"},on:{click:function(i){return e.$emit("suggestion-clicked",n)}}})}),1)]):e._e()]),e.showSuggestions?e._e():r("div",e._l(e.messages,function(n,i){return r("EChatMessage",{key:`${n.id}-${i}`,class:e.getMessageClasses(n,i),attrs:{dark:e.dark,role:n.role,"is-loading":n.isLoading,"data-message-id":n.id,"show-feedback-buttons":!e.readonly,"show-regenerate-button":!e.readonly,"exposed-regexes":e.exposedRegexes,"show-copy-button":"","e-markdown-props":e.eMarkdownProps,message:e.getMessageContent(n),type:n.type,initials:e.getMessageInitials(n),"show-avatar":e.isAvatarVisible(n),"with-actions":e.hasActions(n)&&i>0},on:{feedback:function(a){return e.onMessageFeedback(a,n.id)},"message-regenerate":function(a){return e.$emit("message-regenerate",n.id)},"animation-end":function(a){return e.$emit("animation-end",a)}},scopedSlots:e._u([e._l(e.markdownScopedSlots,function(a,o){return{key:o,fn:function(c){return[e._t(o,null,null,c)]}}}),{key:"message.content",fn:function(){return[e._t("message.content",null,{message:n})]},proxy:!0},{key:"message.append",fn:function(){return[e._t("message.append",null,{message:n})]},proxy:!0},{key:"extraContent",fn:function(){return[e._t("message.extraContent",null,{message:n})]},proxy:!0}],null,!0)})}),1),e.isLoading?r("EChatMessage",{attrs:{"is-loading":"","loading-message":e.loadingMessage,"data-message-id":-1,"show-avatar":e.showCopilotAvatar,role:e.ChatMessageRole.Copilot,dark:e.dark}}):e._e()],1),e._t("body-append",null,{messages:e.messages}),r("EChatFooter",{directives:[{name:"show",rawName:"v-show",value:!e.readonly,expression:"!readonly"}],ref:"chatFooter",attrs:{dark:e.dark,inline:e.inlineFooter}},[r("EChatInput",{attrs:{dark:e.dark,disabled:e.isDisabled,placeholder:e.inputPlaceholder,"silence-timeout":e.silenceTimeout},on:{"prompt-changed":function(n){return e.$emit("prompt-changed",n)},submit:e.sendMessage},scopedSlots:e._u([{key:"input-action-button",fn:function(){return[e._t("input-action-button")]},proxy:!0}],null,!0),model:{value:e.prompt,callback:function(n){e.prompt=n},expression:"prompt"}})],1)],2)])},x8=[],w8=H(C8,b8,x8,!1,null,"966d186a",null,null);const S8=w8.exports,T8=F.extend({name:"ERadioGroup",mixins:[wt],props:{dark:{type:Boolean,default:!1},withDescription:{type:Boolean,default:!0}},computed:{radioItemClasses(){return{"e-bg-gray-800 e-text-gray-200 e-border-gray-700":this.dark,"e-text-gray-500 e-bg-white e-border-gray-300":!this.dark}},selectedItemClasses(){return"e-text-[#00315f] e-bg-[#629efc] e-border-transparent"}},methods:{showDescription(t){var e,r;return this.withDescription&&((r=(e=this.options)==null?void 0:e[t])==null?void 0:r.description)&&this.options[t].description.length>0||this.isSelected(t)},containerClasses(t){return[this.isSelected(t)?this.selectedItemClasses:this.radioItemClasses,this.options[t].disabled||this.disabled?"e-opacity-50 e-cursor-not-allowed":"e-cursor-pointer e-select-none"]}}});var k8=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-radio-group__wrapper e-mx-auto e-w-full"},[r("div",[r("div",{staticClass:"e-space-y-2"},e._l(e.options,function(n,i){return r("div",{key:i,staticClass:"e-radio-group__container e-relative e-flex e-border-solid e-border-[1.67px] e-rounded-lg e-px-4 e-py-2.5 e-shadow-md focus:e-outline-none e-max-h-[66px]",class:e.containerClasses(i),on:{click:function(a){return e.onItemClick(i)}}},[r("div",{staticClass:"e-radio-group__option-wrapper e-flex e-w-full e-items-center e-justify-between"},[r("div",{staticClass:"e-radio-group__option-wrapper e-flex e-items-center"},[r("div",{staticClass:"e-text-sm"},[r("h2",{staticClass:"e-radio-group__option-title e-font-semibold e-text-sm e-mb-1 e-mt-1"},[e._v(" "+e._s(n.label)+" ")]),r("div",[e.showDescription(i)?r("span",{staticClass:"e-radio-group__option-description e-mt-2 e-text-sx"},[e._v(" "+e._s(n.description)+" ")]):e._e()])])]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isSelected(i),expression:"isSelected(index)"}],staticClass:"e-shrink-0 e-text-white"},[r("svg",{staticClass:"e-h-6 e-w-6",attrs:{viewBox:"0 0 24 24",fill:"none"}},[r("circle",{attrs:{cx:"12",cy:"12",r:"12",fill:"#fff","fill-opacity":"0.2"}}),r("path",{attrs:{d:"M7 13l3 3 7-7",stroke:"#fff","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}})])])])])}),0)])])},$8=[],E8=H(T8,k8,$8,!1,null,null,null,null);const _s=E8.exports,M8=F.extend({name:"ETabs",mixins:[Rt],props:{dark:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},activeClass:{type:String,default:null}},methods:{onTabSelected(t){this.currentValue=t,this.$emit("tab-selected",t)},isActive(t){return this.currentValue===t},isLink(t){return!!t&&!this.isExternalLink(t)},isExternalLink(t){return!!t&&t.startsWith("http")},getTabBarItemClasses(t,e=""){return["e-tabs__item e-inline-block e-p-4 e-cursor-pointer e-text-xs",{[this.activeClass]:this.isActive(t)&&!!this.activeClass,"!e-text-gray-200 e-border-gray-700":this.dark&&!this.isActive(t),"hover:!e-text-gray-600 !e-text-gray-800":this.isExternalLink(e)||this.isLink(e),"!e-text-blue-600":this.isExternalLink(e)||this.isLink(e)," hover:e-bg-gray-100 ":!this.isActive(t)&&!this.dark,"!e-text-blue-600 e-bg-blue-100":this.isActive(t)&&!this.dark,"e-tabs__item-active":this.isActive(t)&&this.dark,"e-border-l-3 e-border-l-solid !e-border-b-blue-600":this.vertical&&this.isActive(t),"e-border-b-2 e-border-b-solid !e-border-b-blue-600":!this.vertical&&this.isActive(t)}]},getChildTitle(t){var r,n,i;const e=(r=t.componentOptions)==null?void 0:r.propsData;return e!=null&&e.title?e.title:e!=null&&e.name?e.name:(i=(n=t.data)==null?void 0:n.attrs)!=null&&i.name?t.data.attrs.name:`Tab ${this.currentValue+1}`},renderTab(t,e,r){var a,o,c,s,l,d,f,m;const n=((o=(a=e.data)==null?void 0:a.attrs)==null?void 0:o.href)||((s=(c=e.data)==null?void 0:c.attrs)==null?void 0:s.to),i=this.getTabBarItemClasses(r,n);if(n)try{return this.isExternalLink(n)?t("a",{key:r,class:i,attrs:{href:n,target:"_blank",rel:"noopener noreferrer",...(l=e.data)==null?void 0:l.attrs}},[this.getChildTitle(e)]):t("router-link",{key:r,class:i,attrs:{to:n,...(d=e.data)==null?void 0:d.attrs}},[this.getChildTitle(e)])}catch{return t("a",{key:r,class:i,attrs:{href:n,...(f=e.data)==null?void 0:f.attrs}},[this.getChildTitle(e)])}return t("div",{key:r,class:i,attrs:(m=e.data)==null?void 0:m.attrs,on:{click:()=>this.onTabSelected(r)}},[this.getChildTitle(e)])},renderContent(t,e,r){var n,i,a,o;return(i=(n=e.data)==null?void 0:n.attrs)!=null&&i.href||(o=(a=e.data)==null?void 0:a.attrs)!=null&&o.to||!this.isActive(r)?null:t("div",{class:"tab-content e-overflow-auto e-max-h-screen e-w-full"},[e])}},render(t){var r;const e=((r=this.$slots.default)==null?void 0:r.filter(n=>n.tag))||[];return t("div",{class:["e-tabs e-w-full e-h-full",{"e-flex-col":!this.vertical,"e-flex":this.vertical}]},[t("div",{class:["e-tabs__header e-text-sm e-font-medium e-text-center",{"e-flex e-border-b e-border-b-solid e-w-full":!this.vertical,"e-flex e-flex-col e-border-r e-border-r-solid":this.vertical,"e-text-gray-700":!this.activeClass,"e-tabs__header-light-border":!this.dark&&!this.activeClass,"e-tabs__header-dark-border":this.dark&&!this.activeClass,"e-bg-white":!this.dark,"e-bg-gray-800":this.dark}]},e.map((n,i)=>this.renderTab(t,n,i))),t("div",{class:"tab-content e-w-full"},e.map((n,i)=>this.renderContent(t,n,i)).filter(Boolean))])}}),jd="";var L8=H(M8,null,null,!1,null,null,null,null);const ys=L8.exports,D8=F.extend({name:"ECard",props:{title:{type:[String,void 0],default:void 0},width:{type:[Number,String,void 0],default:void 0},height:{type:[Number,String,void 0],default:void 0},imageSize:{type:[Number,String,void 0],default:100},imagePadding:{type:Number,default:0},image:{type:[String,void 0],default:void 0},blurBackground:{type:Boolean,default:!1},imageTranslation:{type:[Number,void 0],default:void 0},dark:{type:Boolean,default:!1}},data(){return{bodyPadding:45}},computed:{surfaceClasses(){return{"e-border-solid e-border-[1px]":!0,"e-border-gray-200":!this.dark,"e-border-gray-600":this.dark}},backgroundClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark}},textClasses(){return{"e-text-gray-200":this.dark,"e-text-gray-600":!this.dark}},containerClasses(){return{...this.surfaceClasses,...this.backgroundClasses,...this.textClasses}},imageContainerClasses(){return{...this.surfaceClasses,...this.textClasses,"e-bg-gray-100":!0}},containerStyle(){let t={};return this.width&&(t={...t,width:isNaN(this.width)?this.width:`${this.width}px`}),this.height&&(t={...t,height:isNaN(this.height)?this.height:`${this.height}px`}),t},effectiveImageSize(){return(isNaN(this.imageSize)?parseInt(this.imageSize):this.imageSize)-2*this.imagePadding},imageStyle(){return{height:"auto",width:`${this.effectiveImageSize}px`,margin:`${this.imagePadding}px`}},imageContainerStyle(){const t=isNaN(this.imageSize)?this.imageSize:`${this.imageSize}px`;return{height:t,width:t,top:`${-this.computedImageTranslation}px`,left:`${-this.computedImageTranslation}px`}},computedImageTranslation(){return isNaN(this.imageTranslation)?-20:this.imageTranslation},titleStyle(){return this.image?{paddingLeft:`${this.imageSize-this.computedImageTranslation}px`}:{}},contentStyle(){return this.image?{paddingTop:`${Math.max(0,this.imageSize-this.bodyPadding-this.computedImageTranslation)}px`}:{}}},mounted(){this.blurBackground&&!/\.(gif|png|svg)$/.test(this.image)&&console.error("ECard: Image should be a gif, png or svg to blur the background")}}),Wd="";var P8=function(){var e=this,r=e._self._c;return r("div",e._g(e._b({staticClass:"e-card e-rounded-lg e-p-3 e-relative",class:e.containerClasses,style:e.containerStyle},"div",e.$attrs,!1),e.$listeners),[e.image?r("div",{staticClass:"e-card__img__container e-absolute e-overflow-hidden e-rounded-lg e-flex e-justify-center e-items-center e-z-0",class:e.imageContainerClasses,style:e.imageContainerStyle},[e.blurBackground?r("img",{staticClass:"e-card__image--bg e-absolute",style:e.imageStyle,attrs:{src:e.image,alt:"card image"}}):e._e(),r("img",{staticClass:"e-card__image e-absolute",style:e.imageStyle,attrs:{src:e.image,alt:"card image"}})]):e._e(),r("div",{staticClass:"e-card__body e-relative e-z-1"},[e.title?r("div",{staticClass:"e-card__title e-font-bold e-text-lg e-mb-2",style:e.titleStyle},[e._t("title",function(){return[e._v(" "+e._s(e.title)+" ")]})],2):e._e(),r("div",{staticClass:"e-card__content",style:e.contentStyle},[e._t("default")],2)])])},O8=[],z8=H(D8,P8,O8,!1,null,null,null,null);const B8=z8.exports,vn={EAvatar:Mt,EBadge:Kt,EIcon:We,ESpinner:Gr,ERow:qr,ECol:Wr,EVideoPlayer:Hi,ETimeline:Yi,EVideoEmbed:Xi,EHeatmapBar:un,EHoursHeatmap:Vi,EReadMore:Qi,ETruncatedDiv:Ki,ECompareSeparator:Ji,EDragResize:dn,EImagesComparator:es,EToggleSwitch:os,EExpandableMenu:ts,EZoomable:Kr,EGlobalSearch:fs,ESvgIcon:ss,ECalendarHeatmap:as,EImagePlayer:ps,EZoomableImg:pn,EZoomSlider:fn,EActionButton:ft,ETooltip:St,ELayout:ms,EChat:S8,EContextProvider:Zc,ECopyToClipboardBtn:mn,EPopover:hn,EVoiceRecorderToText:gn,ERadioGroup:_s,ESelect:hs,ETabs:ys,ECard:B8,ESchedulePicker:ls,ESchedule:cs},I8={install(t){Object.keys(vn).forEach(e=>{t.component(e,vn[e])}),Object.keys(ds).forEach(e=>{t.mixin(e,ds[e])}),ji.forEach(({name:e,definition:r})=>{t.directive(e,r)})}};G.AvatarSizes=Z1,G.BadgeColors=X1,G.BadgeSizes=U1,G.BaseColor=se,G.ChatMessageRole=Ye,G.ChatMessageType=Vt,G.ClickOutsideDirective=tn,G.Colors=Li,G.CompareMode=nt,G.Days=Mn,G.DirectivesMap=ji,G.EActionButton=ft,G.EAvatar=Mt,G.EBadge=Kt,G.ECalendarHeatmap=as,G.ECol=Wr,G.ECompareSeparator=Ji,G.ECopyToClipboardBtn=mn,G.EDragResize=dn,G.EExpandableMenu=ts,G.EGlobalSearch=fs,G.EHeatmapBar=un,G.EHoursHeatmap=Vi,G.EIcon=We,G.EImagePlayer=ps,G.EImagesComparator=es,G.ELayout=ms,G.EPopover=hn,G.ERadioGroup=_s,G.EReadMore=Qi,G.ERow=qr,G.ESchedule=cs,G.ESchedulePicker=ls,G.ESelect=hs,G.ESpinner=Gr,G.ESvgIcon=ss,G.ETabs=ys,G.ETimeline=Yi,G.EToggleSwitch=os,G.ETooltip=St,G.ETruncatedDiv=Ki,G.EVENTS=K1,G.EVideoEmbed=Xi,G.EVideoPlayer=Hi,G.EVoiceRecorderToText=gn,G.EZoomSlider=fn,G.EZoomable=Kr,G.EZoomableImg=pn,G.FeedbackType=Qt,G.IconSizes=Di,G.ImageQuality=Ln,G.Position=Oe,G.ResizeObserverDirective=Ve,G.ScheduleType=vt,G.Size=K,G.TextSizes=Mi,G.TimelineAxis=rt,G.TimelineChartType=He,G.TimelineIntervalChangeTrigger=_t,G.ToggleSwitchSizes=Y1,G.TooltipColors=V1,G.TooltipPositions=Q1,G.components=vn,G.debounce=m0,G.default=I8,G.eventListeners=Ge,G.exitFullScreen=Yr,G.formField=Rt,G.fullConfig=jr,G.generateUniqueId=y0,G.getGradientColors=Xr,G.getImageData=v0,G.getRandomChars=g0,G.hashCode=Bi,G.hexToRgba=Pi,G.hoursMinutesStrToMinutes=Ai,G.inactivityListener=us,G.isFullScreen=Ur,G.isRgba=zi,G.isValidDate=_0,G.makeFullScreen=Zr,G.minutesToHoursMinutesStr=Vr,G.rgbToRgba=Oi,G.schedules=Ii,G.selectFormField=wt,G.subtractOneHourFromEndIntervals=C0,G.timeouts=Ue,G.toNumericSchedule=Qr,G.toRgba=ht,G.toggleOpen=Ht,G.twentyFourHours=Fi,Object.defineProperties(G,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
250
250
  //# sourceMappingURL=index.umd.js.map