@evercam/ui 1.0.0-preview-ligthModeBugsFix-dc4ac0bdd → 1.0.0-preview-addingSmartSearchAutomation-a2e81c849

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,6 +1,6 @@
1
- (function(H,E){typeof exports=="object"&&typeof module!="undefined"?E(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"],E):(H=typeof globalThis!="undefined"?globalThis:H||self,E(H.EvercamUI={},H.Vue,H.Hls,H.d3,H.moment,H.remarkGfm,H.remarkParse,H.remarkRehype,H.remarkBreaks,H.rehypeStringify,H.unistUtilVisit,H.unified,H.morphdom))})(this,function(H,E,lr,u1,Be,d1,h1,f1,p1,m1,g1,v1,y1){var Wl,Yl,jl,Ul,Gl,ql,Zl,Xl;"use strict";function _1(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,s.get?s:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}function Ns(t,e){for(var r=0;r<e.length;r++){const s=e[r];if(typeof s!="string"&&!Array.isArray(s)){for(const n in s)if(n!=="default"&&!(n in t)){const i=Object.getOwnPropertyDescriptor(s,n);i&&Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>s[n]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const k=_1(u1);var Cr=(t=>(t.Continuous="continuous",t.WorkingHours="workingHours",t.Empty="empty",t.Custom="custom",t))(Cr||{}),Ki=(t=>(t.Monday="monday",t.Tuesday="tuesday",t.Wednesday="wednesday",t.Thursday="thursday",t.Friday="friday",t.Saturday="saturday",t.Sunday="sunday",t))(Ki||{}),U=(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))(U||{}),ce=(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))(ce||{}),jt=(t=>(t.Overview="overview",t.Detailed="detailed",t.DetailedBackground="detailedBackground",t))(jt||{}),ft=(t=>(t.Bars="bars",t.Dots="dots",t.LineGraph="lineGraph",t.BarChart="barGraph",t.Milestones="milestones",t))(ft||{}),wr=(t=>(t.Zoom="zoom",t.AutoPan="autoPan",t.Initial="initial",t))(wr||{}),Ji=(t=>(t.ThreeSixty="360",t.FourEighty="480",t.SevenTwenty="720",t.OneZeroEightZero="1080",t.Auto="auto",t))(Ji||{}),Je=(t=>(t.Top="top",t.Right="right",t.Bottom="bottom",t.Left="left",t))(Je||{}),it=(t=>(t.System="system",t.Copilot="copilot",t.User="user",t))(it||{}),qr=(t=>(t.Text="text",t.Error="error",t.Json="json",t))(qr||{}),Ws=(t=>(t.Positive="positive",t.Negative="negative",t))(Ws||{}),Ut=(t=>(t.Window="window",t.Curtain="curtain",t.Transparency="transparency",t))(Ut||{}),at=(t=>(t.Turbo="turbo",t.Inferno="inferno",t.Magma="magma",t.Plasma="plasma",t.Viridis="viridis",t.Cividis="cividis",t.Warm="warm",t.Cool="cool",t.CubeHelix="cubehelix",t))(at||{}),Ge=(t=>(t.PlaybackRate="playbackRate",t.SeekStep="seekStep",t.LoopEnabled="loopEnabled",t.MutedOnStart="mutedOnStart",t.AutoplayEnabled="autoplayEnabled",t.Shortcuts="shortcuts",t.Reset="reset",t))(Ge||{});const b1=E.extend({name:"EBadge",props:{text:{type:String,default:""},color:{type:String,default:ce.Default},size:{type:String,default:U.Base}},data(){return{colors:{[ce.Error]:"e-bg-rose-500 e-text-white",[ce.Info]:"e-bg-cyan-500 e-text-white",[ce.Warning]:"e-bg-amber-500 e-text-white",[ce.Primary]:"e-bg-sky-500 e-text-white",[ce.Default]:"e-bg-slate-300 e-text-white",[ce.Success]:"e-bg-lime-500 e-text-white"},sizes:{[U.Dot]:"e-w-2 e-h-2",[U.Xs]:"e-w-3 e-h-3",[U.Sm]:"e-w-4 e-h-4",[U.Md]:"e-w-5 e-h-5",[U.Lg]:"e-min-w-[2rem] e-max-w-[4rem] e-px-1 e-h-6 e-text-sm e-font-medium",[U.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[ce.Default],e=this.sizes[this.size]||this.sizes[U.Md];return["e-flex e-items-center e-justify-center e-rounded-full",t,e]},showText(){return[U.Lg,U.Xl].includes(this.size)}}});function z(t,e,r,s,n,i,a,c){var o=typeof t=="function"?t.options:t;e&&(o.render=e,o.staticRenderFns=r,o._compiled=!0),s&&(o.functional=!0),i&&(o._scopeId="data-v-"+i);var l;if(a?(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__),n&&n.call(this,m),m&&m._registeredComponents&&m._registeredComponents.add(a)},o._ssrRegister=l):n&&(l=c?function(){n.call(this,(o.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(o.functional){o._injectStyles=l;var d=o.render;o.render=function(b,C){return l.call(C),d(b,C)}}else{var h=o.beforeCreate;o.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:o}}var C1=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()])},w1=[],x1=z(b1,C1,w1,!1,null,null,null,null);const Ys=x1.exports,S1=E.extend({name:"EAvatar",components:{Badge:Ys},props:{size:{type:String,default:U.Md},showBadge:{type:Boolean,default:!1},badgeColor:{type:String,default:ce.Error},badgeText:{type:String,default:""},badgeSize:{type:String,default:U.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:{[U.TwoXs]:"e-w-6 e-h-6 e-text-xs",[U.Xs]:"e-w-8 e-h-8 e-text-xs",[U.Sm]:"e-w-10 e-h-10 e-text-sm",[U.Md]:"e-w-14 e-h-14 e-text-base",[U.Lg]:"e-w-20 e-h-20 e-text-2xl",[U.Xl]:"e-w-28 e-h-28 e-text-3xl",[U.TwoXl]:"e-w-36 e-h-36 e-text-5xl"}}},computed:{avatarClasses(){const t=this.sizes[this.size]||this.sizes[U.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 k1=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)},T1=[],M1=z(S1,k1,T1,!1,null,null,null,null);const Zr=M1.exports;var Qt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function xr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ea={},ta={},js={};(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(/^[+-]?/,n=>n==="-"?"":"-");let s=["var","calc","min","max","clamp"];for(const n of s)if(r.includes(`${n}(`))return`calc(${r} * -1)`}})(js);var ra={};(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"]})(ra);var sa={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r,s){return r===void 0?s:Array.isArray(r)?r:[...new Set(s.filter(i=>r!==!1&&r[i]!==!1).concat(Object.keys(r).filter(i=>r[i]!==!1)))]}})(sa);var Us={},Xr={},Gs={exports:{}},De=String,na=function(){return{isColorSupported:!1,reset:De,bold:De,dim:De,italic:De,underline:De,inverse:De,hidden:De,strikethrough:De,black:De,red:De,green:De,yellow:De,blue:De,magenta:De,cyan:De,white:De,gray:De,bgBlack:De,bgRed:De,bgGreen:De,bgYellow:De,bgBlue:De,bgMagenta:De,bgCyan:De,bgWhite:De}};Gs.exports=na(),Gs.exports.createColors=na;var ia=Gs.exports;(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,l){for(var d in l)Object.defineProperty(o,d,{enumerable:!0,get:l[d]})}e(t,{dim:function(){return a},default:function(){return c}});const r=s(ia);function s(o){return o&&o.__esModule?o:{default:o}}let n=new Set;function i(o,l,d){typeof process!="undefined"&&process.env.JEST_WORKER_ID||d&&n.has(d)||(d&&n.add(d),console.warn(""),l.forEach(h=>console.warn(o,"-",h)))}function a(o){return r.default.dim(o)}const c={info(o,l){i(r.default.bold(r.default.cyan("info")),...Array.isArray(o)?[o]:[l,o])},warn(o,l){i(r.default.bold(r.default.yellow("warn")),...Array.isArray(o)?[o]:[l,o])},risk(o,l){i(r.default.bold(r.default.magenta("risk")),...Array.isArray(o)?[o]:[l,o])}}})(Xr),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});const e=r(Xr);function r(i){return i&&i.__esModule?i:{default:i}}function s({version:i,from:a,to:c}){e.default.warn(`${a}-color-renamed`,[`As of Tailwind CSS ${i}, \`${a}\` has been renamed to \`${c}\`.`,"Update your configuration file to silence this warning."])}const n={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 s({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return s({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return s({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return s({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return s({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}(Us);var aa={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"defaults",{enumerable:!0,get:function(){return e}});function e(r,...s){for(let a of s){for(let c in a){var n;!(r==null||(n=r.hasOwnProperty)===null||n===void 0)&&n.call(r,c)||(r[c]=a[c])}for(let c of Object.getOwnPropertySymbols(a)){var i;!(r==null||(i=r.hasOwnProperty)===null||i===void 0)&&i.call(r,c)||(r[c]=a[c])}}return r}})(aa);var oa={};(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 s=r.split("[").length-1,n=r.split("]").length-1;if(s!==n)throw new Error(`Path is invalid. Has unbalanced brackets: ${r}`);return r.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}})(oa);var la={},Vr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(h,m){for(var b in m)Object.defineProperty(h,b,{enumerable:!0,get:m[b]})}e(t,{flagEnabled:function(){return c},issueFlagNotices:function(){return l},default:function(){return d}});const r=n(ia),s=n(Xr);function n(h){return h&&h.__esModule?h:{default:h}}let i={optimizeUniversalDefaults:!1,generalizedModifiers:!0,disableColorOpacityUtilitiesByDefault:!1,relativeContentPathsByDefault:!1},a={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity","disableColorOpacityUtilitiesByDefault","relativeContentPathsByDefault"],experimental:["optimizeUniversalDefaults","generalizedModifiers"]};function c(h,m){if(a.future.includes(m)){var b,C,f;return h.future==="all"||((f=(C=h==null||(b=h.future)===null||b===void 0?void 0:b[m])!==null&&C!==void 0?C:i[m])!==null&&f!==void 0?f:!1)}if(a.experimental.includes(m)){var v,T,M;return h.experimental==="all"||((M=(T=h==null||(v=h.experimental)===null||v===void 0?void 0:v[m])!==null&&T!==void 0?T:i[m])!==null&&M!==void 0?M:!1)}return!1}function o(h){if(h.experimental==="all")return a.experimental;var m;return Object.keys((m=h==null?void 0:h.experimental)!==null&&m!==void 0?m:{}).filter(b=>a.experimental.includes(b)&&h.experimental[b])}function l(h){if(process.env.JEST_WORKER_ID===void 0&&o(h).length>0){let m=o(h).map(b=>r.default.yellow(b)).join(", ");s.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=a})(Vr),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeConfig",{enumerable:!0,get:function(){return i}});const e=Vr,r=n(Xr);function s(a){if(typeof WeakMap!="function")return null;var c=new WeakMap,o=new WeakMap;return(s=function(l){return l?o:c})(a)}function n(a,c){if(!c&&a&&a.__esModule)return a;if(a===null||typeof a!="object"&&typeof a!="function")return{default:a};var o=s(c);if(o&&o.has(a))return o.get(a);var l={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in a)if(h!=="default"&&Object.prototype.hasOwnProperty.call(a,h)){var m=d?Object.getOwnPropertyDescriptor(a,h):null;m&&(m.get||m.set)?Object.defineProperty(l,h,m):l[h]=a[h]}return l.default=a,o&&o.set(a,l),l}function i(a){if((()=>{if(a.purge||!a.content||!Array.isArray(a.content)&&!(typeof a.content=="object"&&a.content!==null))return!1;if(Array.isArray(a.content))return a.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 a.content=="object"&&a.content!==null){if(Object.keys(a.content).some(l=>!["files","relative","extract","transform"].includes(l)))return!1;if(Array.isArray(a.content.files)){if(!a.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 a.content.extract=="object"){for(let l of Object.values(a.content.extract))if(typeof l!="function")return!1}else if(!(a.content.extract===void 0||typeof a.content.extract=="function"))return!1;if(typeof a.content.transform=="object"){for(let l of Object.values(a.content.transform))if(typeof l!="function")return!1}else if(!(a.content.transform===void 0||typeof a.content.transform=="function"))return!1;if(typeof a.content.relative!="boolean"&&typeof a.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"]),a.safelist=(()=>{var l;let{content:d,purge:h,safelist:m}=a;return Array.isArray(m)?m:Array.isArray(d==null?void 0:d.safelist)?d.safelist:Array.isArray(h==null?void 0:h.safelist)?h.safelist:Array.isArray(h==null||(l=h.options)===null||l===void 0?void 0:l.safelist)?h.options.safelist:[]})(),a.blocklist=(()=>{let{blocklist:l}=a;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 a.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"]),a.prefix="";else{var o;a.prefix=(o=a.prefix)!==null&&o!==void 0?o:""}a.content={relative:(()=>{let{content:l}=a;return l!=null&&l.relative?l.relative:(0,e.flagEnabled)(a,"relativeContentPathsByDefault")})(),files:(()=>{let{content:l,purge:d}=a;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,C,f,v,T,M,S,N,L;return!((m=a.purge)===null||m===void 0)&&m.extract?a.purge.extract:!((b=a.content)===null||b===void 0)&&b.extract?a.content.extract:!((C=a.purge)===null||C===void 0||(f=C.extract)===null||f===void 0)&&f.DEFAULT?a.purge.extract.DEFAULT:!((v=a.content)===null||v===void 0||(T=v.extract)===null||T===void 0)&&T.DEFAULT?a.content.extract.DEFAULT:!((M=a.purge)===null||M===void 0||(S=M.options)===null||S===void 0)&&S.extractors?a.purge.options.extractors:!((N=a.content)===null||N===void 0||(L=N.options)===null||L===void 0)&&L.extractors?a.content.options.extractors:{}})(),d={},h=(()=>{var m,b,C,f;if(!((m=a.purge)===null||m===void 0||(b=m.options)===null||b===void 0)&&b.defaultExtractor)return a.purge.options.defaultExtractor;if(!((C=a.content)===null||C===void 0||(f=C.options)===null||f===void 0)&&f.defaultExtractor)return a.content.options.defaultExtractor})();if(h!==void 0&&(d.DEFAULT=h),typeof l=="function")d.DEFAULT=l;else if(Array.isArray(l))for(let{extensions:m,extractor:b}of l!=null?l:[])for(let C of m)d[C]=b;else typeof l=="object"&&l!==null&&Object.assign(d,l);return d})(),transform:(()=>{let l=(()=>{var h,m,b,C,f,v;return!((h=a.purge)===null||h===void 0)&&h.transform?a.purge.transform:!((m=a.content)===null||m===void 0)&&m.transform?a.content.transform:!((b=a.purge)===null||b===void 0||(C=b.transform)===null||C===void 0)&&C.DEFAULT?a.purge.transform.DEFAULT:!((f=a.content)===null||f===void 0||(v=f.transform)===null||v===void 0)&&v.DEFAULT?a.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 a.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 a}}(la);var ca={};(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 s=Object.getPrototypeOf(r);return s===null||Object.getPrototypeOf(s)===null}})(ca);var ua={};(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(s=>e(s)):typeof r=="object"&&r!==null?Object.fromEntries(Object.entries(r).map(([s,n])=>[s,e(n)])):r}})(ua);var da={},ha={};(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 ")}})(ha);var qs={},Zs={},fa={};(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]}})(fa),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(C,f){for(var v in f)Object.defineProperty(C,v,{enumerable:!0,get:f[v]})}e(t,{parseColor:function(){return m},formatColor:function(){return b}});const r=s(fa);function s(C){return C&&C.__esModule?C:{default:C}}let n=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,i=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,a=/(?:\d+|\d*\.\d+)%?/,c=/(?:\s*,\s*|\s+)/,o=/\s*[,/]\s*/,l=/var\(--(?:[^ )]*?)(?:,(?:[^ )]*?|var\(--[^ )]*?\)))?\)/,d=new RegExp(`^(rgba?)\\(\\s*(${a.source}|${l.source})(?:${c.source}(${a.source}|${l.source}))?(?:${c.source}(${a.source}|${l.source}))?(?:${o.source}(${a.source}|${l.source}))?\\s*\\)$`),h=new RegExp(`^(hsla?)\\(\\s*((?:${a.source})(?:deg|rad|grad|turn)?|${l.source})(?:${c.source}(${a.source}|${l.source}))?(?:${c.source}(${a.source}|${l.source}))?(?:${o.source}(${a.source}|${l.source}))?\\s*\\)$`);function m(C,{loose:f=!1}={}){var v,T;if(typeof C!="string")return null;if(C=C.trim(),C==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(C in r.default)return{mode:"rgb",color:r.default[C].map(Y=>Y.toString())};let M=C.replace(i,(Y,ee,Z,w,R)=>["#",ee,ee,Z,Z,w,w,R?R+R:""].join("")).match(n);if(M!==null)return{mode:"rgb",color:[parseInt(M[1],16),parseInt(M[2],16),parseInt(M[3],16)].map(Y=>Y.toString()),alpha:M[4]?(parseInt(M[4],16)/255).toString():void 0};var S;let N=(S=C.match(d))!==null&&S!==void 0?S:C.match(h);if(N===null)return null;let L=[N[2],N[3],N[4]].filter(Boolean).map(Y=>Y.toString());return L.length===2&&L[0].startsWith("var(")?{mode:N[1],color:[L[0]],alpha:L[1]}:!f&&L.length!==3||L.length<3&&!L.some(Y=>/^var\(.*?\)$/.test(Y))?null:{mode:N[1],color:L,alpha:(v=N[5])===null||v===void 0||(T=v.toString)===null||T===void 0?void 0:T.call(v)}}function b({mode:C,color:f,alpha:v}){let T=v!==void 0;return C==="rgba"||C==="hsla"?`${C}(${f.join(", ")}${T?`, ${v}`:""})`:`${C}(${f.join(" ")}${T?` / ${v}`:""})`}}(Zs),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(i,a){for(var c in a)Object.defineProperty(i,c,{enumerable:!0,get:a[c]})}e(t,{withAlphaValue:function(){return s},default:function(){return n}});const r=Zs;function s(i,a,c){if(typeof i=="function")return i({opacityValue:a});let o=(0,r.parseColor)(i,{loose:!0});return o===null?c:(0,r.formatColor)({...o,alpha:a})}function n({color:i,property:a,variable:c}){let o=[].concat(a);if(typeof i=="function")return{[c]:"1",...Object.fromEntries(o.map(d=>[d,i({opacityVariable:c,opacityValue:`var(${c})`})]))};const l=(0,r.parseColor)(i);return l===null?Object.fromEntries(o.map(d=>[d,i])):l.alpha!==void 0?Object.fromEntries(o.map(d=>[d,i])):{[c]:"1",...Object.fromEntries(o.map(d=>[d,(0,r.formatColor)({...l,alpha:`var(${c})`})]))}}}(qs);var Xs={},pa={},Qr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"splitAtTopLevelOnly",{enumerable:!0,get:function(){return e}});function e(r,s){let n=[],i=[],a=0,c=!1;for(let o=0;o<r.length;o++){let l=r[o];n.length===0&&l===s[0]&&!c&&(s.length===1||r.slice(o,o+s.length)===s)&&(i.push(r.slice(a,o)),a=o+s.length),c=c?!1:l==="\\",l==="("||l==="["||l==="{"?n.push(l):(l===")"&&n[n.length-1]==="("||l==="]"&&n[n.length-1]==="["||l==="}"&&n[n.length-1]==="{")&&n.pop()}return i.push(r.slice(a)),i}})(Qr),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,l){for(var d in l)Object.defineProperty(o,d,{enumerable:!0,get:l[d]})}e(t,{parseBoxShadowValue:function(){return a},formatBoxShadowValue:function(){return c}});const r=Qr;let s=new Set(["inset","inherit","initial","revert","unset"]),n=/\ +(?![^(]*\))/g,i=/^-?(\d+|\.\d+)(.*?)$/g;function a(o){return(0,r.splitAtTopLevelOnly)(o,",").map(d=>{let h=d.trim(),m={raw:h},b=h.split(n),C=new Set;for(let f of b)i.lastIndex=0,!C.has("KEYWORD")&&s.has(f)?(m.keyword=f,C.add("KEYWORD")):i.test(f)?C.has("X")?C.has("Y")?C.has("BLUR")?C.has("SPREAD")||(m.spread=f,C.add("SPREAD")):(m.blur=f,C.add("BLUR")):(m.y=f,C.add("Y")):(m.x=f,C.add("X")):m.color?(m.unknown||(m.unknown=[]),m.unknown.push(f)):m.color=f;return m.valid=m.x!==void 0&&m.y!==void 0,m})}function c(o){return o.map(l=>l.valid?[l.keyword,l.x,l.y,l.blur,l.spread,l.color].filter(Boolean).join(" "):l.raw).join(", ")}}(pa),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(I,W){for(var ae in W)Object.defineProperty(I,ae,{enumerable:!0,get:W[ae]})}e(t,{normalize:function(){return o},normalizeAttributeSelectors:function(){return l},url:function(){return h},number:function(){return m},percentage:function(){return b},length:function(){return v},lineWidth:function(){return M},shadow:function(){return S},color:function(){return N},image:function(){return L},gradient:function(){return ee},position:function(){return w},familyName:function(){return R},genericName:function(){return O},absoluteSize:function(){return Q},relativeSize:function(){return $}});const r=Zs,s=pa,n=Qr;let i=["min","max","clamp","calc"];function a(I){return i.some(W=>new RegExp(`^${W}\\(.*\\)`).test(I))}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 o(I,W=null,ae=!0){let _=W&&c.has(W.property);return I.startsWith("--")&&!_?`var(${I})`:I.includes("url(")?I.split(/(url\(.*?\))/g).filter(Boolean).map(X=>/^url\(.*?\)$/.test(X)?X:o(X,W,!1)).join(""):(I=I.replace(/([^\\])_+/g,(X,A)=>A+" ".repeat(X.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),ae&&(I=I.trim()),I=d(I),I)}function l(I){return I.includes("=")&&(I=I.replace(/(=.*)/g,(W,ae)=>{if(ae[1]==="'"||ae[1]==='"')return ae;if(ae.length>2){let _=ae[ae.length-1];if(ae[ae.length-2]===" "&&(_==="i"||_==="I"||_==="s"||_==="S"))return`="${ae.slice(1,-2)}" ${ae[ae.length-1]}`}return`="${ae.slice(1)}"`})),I}function d(I){let W=["theme"],ae=["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 I.replace(/(calc|min|max|clamp)\(.+\)/g,_=>{let X="";function A(){let B=X.trimEnd();return B[B.length-1]}for(let B=0;B<_.length;B++){let x=function(P){return P.split("").every((ie,pe)=>_[B+pe]===ie)},j=function(P){let ie=1/0;for(let he of P){let le=_.indexOf(he,B);le!==-1&&le<ie&&(ie=le)}let pe=_.slice(B,ie);return B+=pe.length-1,pe},K=_[B];if(x("var"))X+=j([")",","]);else if(ae.some(P=>x(P))){let P=ae.find(ie=>x(ie));X+=P,B+=P.length-1}else W.some(P=>x(P))?X+=j([")"]):x("[")?X+=j(["]"]):["+","-","*","/"].includes(K)&&!["(","+","-","*","/",","].includes(A())?X+=` ${K} `:X+=K}return X.replace(/\s+/g," ")})}function h(I){return I.startsWith("url(")}function m(I){return!isNaN(Number(I))||a(I)}function b(I){return I.endsWith("%")&&m(I.slice(0,-1))||a(I)}let f=`(?:${["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 v(I){return I==="0"||new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${f}$`).test(I)||a(I)}let T=new Set(["thin","medium","thick"]);function M(I){return T.has(I)}function S(I){let W=(0,s.parseBoxShadowValue)(o(I));for(let ae of W)if(!ae.valid)return!1;return!0}function N(I){let W=0;return(0,n.splitAtTopLevelOnly)(I,"_").every(_=>(_=o(_),_.startsWith("var(")?!0:(0,r.parseColor)(_,{loose:!0})!==null?(W++,!0):!1))?W>0:!1}function L(I){let W=0;return(0,n.splitAtTopLevelOnly)(I,",").every(_=>(_=o(_),_.startsWith("var(")?!0:h(_)||ee(_)||["element(","image(","cross-fade(","image-set("].some(X=>_.startsWith(X))?(W++,!0):!1))?W>0:!1}let Y=new Set(["conic-gradient","linear-gradient","radial-gradient","repeating-conic-gradient","repeating-linear-gradient","repeating-radial-gradient"]);function ee(I){I=o(I);for(let W of Y)if(I.startsWith(`${W}(`))return!0;return!1}let Z=new Set(["center","top","right","bottom","left"]);function w(I){let W=0;return(0,n.splitAtTopLevelOnly)(I,"_").every(_=>(_=o(_),_.startsWith("var(")?!0:Z.has(_)||v(_)||b(_)?(W++,!0):!1))?W>0:!1}function R(I){let W=0;return(0,n.splitAtTopLevelOnly)(I,",").every(_=>(_=o(_),_.startsWith("var(")?!0:_.includes(" ")&&!/(['"])([^"']+)\1/g.test(_)||/^\d/g.test(_)?!1:(W++,!0)))?W>0:!1}let q=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function O(I){return q.has(I)}let V=new Set(["xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large"]);function Q(I){return V.has(I)}let F=new Set(["larger","smaller"]);function $(I){return F.has(I)}}(Xs);var ma={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"backgroundSize",{enumerable:!0,get:function(){return s}});const e=Xs,r=Qr;function s(n){let i=["cover","contain"];return(0,r.splitAtTopLevelOnly)(n,",").every(a=>{let c=(0,r.splitAtTopLevelOnly)(a,"_").filter(Boolean);return c.length===1&&i.includes(c[0])?!0:c.length!==1&&c.length!==2?!1:c.every(o=>(0,e.length)(o)||(0,e.percentage)(o)||o==="auto")})}})(ma),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(w,R){for(var q in R)Object.defineProperty(w,q,{enumerable:!0,get:R[q]})}e(t,{updateAllClasses:function(){return l},asValue:function(){return m},parseColorFormat:function(){return f},asColor:function(){return T},asLookupValue:function(){return M},typeMap:function(){return N},coerceValue:function(){return ee},getMatchingTypes:function(){return Z}});const r=o(ha),s=qs,n=Xs,i=o(js),a=ma,c=Vr;function o(w){return w&&w.__esModule?w:{default:w}}function l(w,R){w.walkClasses(q=>{q.value=R(q.value),q.raws&&q.raws.value&&(q.raws.value=(0,r.default)(q.raws.value))})}function d(w,R){if(!b(w))return;let q=w.slice(1,-1);if(R(q))return(0,n.normalize)(q)}function h(w,R={},q){let O=R[w];if(O!==void 0)return(0,i.default)(O);if(b(w)){let V=d(w,q);return V===void 0?void 0:(0,i.default)(V)}}function m(w,R={},{validate:q=()=>!0}={}){var O;let V=(O=R.values)===null||O===void 0?void 0:O[w];return V!==void 0?V:R.supportsNegativeValues&&w.startsWith("-")?h(w.slice(1),R.values,q):d(w,q)}function b(w){return w.startsWith("[")&&w.endsWith("]")}function C(w){let R=w.lastIndexOf("/"),q=w.lastIndexOf("[",R),O=w.indexOf("]",R);return w[R-1]==="]"||w[R+1]==="["||q!==-1&&O!==-1&&q<R&&R<O&&(R=w.lastIndexOf("/",q)),R===-1||R===w.length-1?[w,void 0]:b(w)&&!w.includes("]/[")?[w,void 0]:[w.slice(0,R),w.slice(R+1)]}function f(w){if(typeof w=="string"&&w.includes("<alpha-value>")){let R=w;return({opacityValue:q=1})=>R.replace(/<alpha-value>/g,q)}return w}function v(w){return(0,n.normalize)(w.slice(1,-1))}function T(w,R={},{tailwindConfig:q={}}={}){var O;if(((O=R.values)===null||O===void 0?void 0:O[w])!==void 0){var V;return f((V=R.values)===null||V===void 0?void 0:V[w])}let[Q,F]=C(w);if(F!==void 0){var $,I,W,ae;let _=(ae=($=R.values)===null||$===void 0?void 0:$[Q])!==null&&ae!==void 0?ae:b(Q)?Q.slice(1,-1):void 0;return _===void 0?void 0:(_=f(_),b(F)?(0,s.withAlphaValue)(_,v(F)):((I=q.theme)===null||I===void 0||(W=I.opacity)===null||W===void 0?void 0:W[F])===void 0?void 0:(0,s.withAlphaValue)(_,q.theme.opacity[F]))}return m(w,R,{validate:n.color})}function M(w,R={}){var q;return(q=R.values)===null||q===void 0?void 0:q[w]}function S(w){return(R,q)=>m(R,q,{validate:w})}let N={any:m,color:T,url:S(n.url),image:S(n.image),length:S(n.length),percentage:S(n.percentage),position:S(n.position),lookup:M,"generic-name":S(n.genericName),"family-name":S(n.familyName),number:S(n.number),"line-width":S(n.lineWidth),"absolute-size":S(n.absoluteSize),"relative-size":S(n.relativeSize),shadow:S(n.shadow),size:S(a.backgroundSize)},L=Object.keys(N);function Y(w,R){let q=w.indexOf(R);return q===-1?[void 0,w]:[w.slice(0,q),w.slice(q+1)]}function ee(w,R,q,O){if(q.values&&R in q.values)for(let{type:Q}of w!=null?w:[]){let F=N[Q](R,q,{tailwindConfig:O});if(F!==void 0)return[F,Q,null]}if(b(R)){let Q=R.slice(1,-1),[F,$]=Y(Q,":");if(!/^[\w-_]+$/g.test(F))$=Q;else if(F!==void 0&&!L.includes(F))return[];if($.length>0&&L.includes(F))return[m(`[${$}]`,q),F,null]}let V=Z(w,R,q,O);for(let Q of V)return Q;return[]}function*Z(w,R,q,O){let V=(0,c.flagEnabled)(O,"generalizedModifiers"),[Q,F]=C(R);if(V&&q.modifiers!=null&&(q.modifiers==="any"||typeof q.modifiers=="object"&&(F&&b(F)||F in q.modifiers))||(Q=R,F=void 0),F!==void 0&&Q===""&&(Q="DEFAULT"),F!==void 0&&typeof q.modifiers=="object"){var I,W;let ae=(W=(I=q.modifiers)===null||I===void 0?void 0:I[F])!==null&&W!==void 0?W:null;ae!==null?F=ae:b(F)&&(F=v(F))}for(let{type:ae}of w!=null?w:[]){let _=N[ae](Q,q,{tailwindConfig:O});_!==void 0&&(yield[_,ae,F!=null?F:null])}}}(da);var ga={};(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}})(ga),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return q}});const e=b(js),r=b(ra),s=b(sa),n=b(Us),i=aa,a=oa,c=la,o=b(ca),l=ua,d=da,h=qs,m=b(ga);function b(O){return O&&O.__esModule?O:{default:O}}function C(O){return typeof O=="function"}function f(O,...V){let Q=V.pop();for(let F of V)for(let $ in F){let I=Q(O[$],F[$]);I===void 0?(0,o.default)(O[$])&&(0,o.default)(F[$])?O[$]=f({},O[$],F[$],Q):O[$]=F[$]:O[$]=I}return O}const v={colors:n.default,negative(O){return Object.keys(O).filter(V=>O[V]!=="0").reduce((V,Q)=>{let F=(0,e.default)(O[Q]);return F!==void 0&&(V[`-${Q}`]=F),V},{})},breakpoints(O){return Object.keys(O).filter(V=>typeof O[V]=="string").reduce((V,Q)=>({...V,[`screen-${Q}`]:O[Q]}),{})}};function T(O,...V){return C(O)?O(...V):O}function M(O){return O.reduce((V,{extend:Q})=>f(V,Q,(F,$)=>F===void 0?[$]:Array.isArray(F)?[$,...F]:[$,F]),{})}function S(O){return{...O.reduce((V,Q)=>(0,i.defaults)(V,Q),{}),extend:M(O)}}function N(O,V){if(Array.isArray(O)&&(0,o.default)(O[0]))return O.concat(V);if(Array.isArray(V)&&(0,o.default)(V[0])&&(0,o.default)(O))return[O,...V];if(Array.isArray(V))return V}function L({extend:O,...V}){return f(V,O,(Q,F)=>!C(Q)&&!F.some(C)?f({},Q,...F,N):($,I)=>f({},...[Q,...F].map(W=>T(W,$,I)),N))}function*Y(O){let V=(0,a.toPath)(O);if(V.length===0||(yield V,Array.isArray(O)))return;let Q=/^(.*?)\s*\/\s*([^/]+)$/,F=O.match(Q);if(F!==null){let[,$,I]=F,W=(0,a.toPath)($);W.alpha=I,yield W}}function ee(O){const V=(Q,F)=>{for(const $ of Y(Q)){let I=0,W=O;for(;W!=null&&I<$.length;)W=W[$[I++]],W=C(W)&&($.alpha===void 0||I<=$.length-1)?W(V,v):W;if(W!==void 0){if($.alpha!==void 0){let ae=(0,d.parseColorFormat)(W);return(0,h.withAlphaValue)(ae,$.alpha,(0,m.default)(ae))}return(0,o.default)(W)?(0,l.cloneDeep)(W):W}}return F};return Object.assign(V,{theme:V,...v}),Object.keys(O).reduce((Q,F)=>(Q[F]=C(O[F])?O[F](V,v):O[F],Q),{})}function Z(O){let V=[];return O.forEach(Q=>{V=[...V,Q];var F;const $=(F=Q==null?void 0:Q.plugins)!==null&&F!==void 0?F:[];$.length!==0&&$.forEach(I=>{I.__isOptionsFunction&&(I=I());var W;V=[...V,...Z([(W=I==null?void 0:I.config)!==null&&W!==void 0?W:{}])]})}),V}function w(O){return[...O].reduceRight((Q,F)=>C(F)?F({corePlugins:Q}):(0,s.default)(F,Q),r.default)}function R(O){return[...O].reduceRight((Q,F)=>[...Q,...F],[])}function q(O){let V=[...Z(O),{prefix:"",important:!1,separator:":"}];var Q,F;return(0,c.normalizeConfig)((0,i.defaults)({theme:ee(L(S(V.map($=>(Q=$==null?void 0:$.theme)!==null&&Q!==void 0?Q:{})))),corePlugins:w(V.map($=>$.corePlugins)),plugins:R(O.map($=>(F=$==null?void 0:$.plugins)!==null&&F!==void 0?F:[]))},...V))}}(ta);var va={},$1={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 n}});const e=s($1),r=Vr;function s(i){return i&&i.__esModule?i:{default:i}}function n(i){var a;const c=((a=i==null?void 0:i.presets)!==null&&a!==void 0?a:[e.default]).slice().reverse().flatMap(d=>n(d instanceof Function?d():d)),o={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(o).filter(d=>(0,r.flagEnabled)(i,d)).map(d=>o[d]);return[i,...l,...c]}})(va),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});const e=s(ta),r=s(va);function s(i){return i&&i.__esModule?i:{default:i}}function n(...i){let[,...a]=(0,r.default)(i[0]);return(0,e.default)([...i,...a])}}(ea);let Vs=ea;var E1=(Vs.__esModule?Vs:{default:Vs}).default;const D1=xr(E1);let Qs=Us;var Ks=(Qs.__esModule?Qs:{default:Qs}).default;const ya=xr(Ks),L1=Ns({__proto__:null,default:ya},[Ks]);var _a={},ba={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});function e(s,n){return{handler:s,config:n}}e.withOptions=function(s,n=()=>({})){const i=function(a){return{__options:a,handler:s(a),config:n(a)}};return i.__isOptionsFunction=!0,i.__pluginFunction=s,i.__configFunction=n,i};const r=e})(ba),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});const e=r(ba);function r(n){return n&&n.__esModule?n:{default:n}}const s=e.default}(_a);let Js=_a;var Ca=(Js.__esModule?Js:{default:Js}).default,Kr={exports:{}};Kr.exports,function(t,e){var r=200,s="__lodash_hash_undefined__",n=800,i=16,a=9007199254740991,c="[object Arguments]",o="[object Array]",l="[object AsyncFunction]",d="[object Boolean]",h="[object Date]",m="[object Error]",b="[object Function]",C="[object GeneratorFunction]",f="[object Map]",v="[object Number]",T="[object Null]",M="[object Object]",S="[object Proxy]",N="[object RegExp]",L="[object Set]",Y="[object String]",ee="[object Undefined]",Z="[object WeakMap]",w="[object ArrayBuffer]",R="[object DataView]",q="[object Float32Array]",O="[object Float64Array]",V="[object Int8Array]",Q="[object Int16Array]",F="[object Int32Array]",$="[object Uint8Array]",I="[object Uint8ClampedArray]",W="[object Uint16Array]",ae="[object Uint32Array]",_=/[\\^$.*+?()[\]{}|]/g,X=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,B={};B[q]=B[O]=B[V]=B[Q]=B[F]=B[$]=B[I]=B[W]=B[ae]=!0,B[c]=B[o]=B[w]=B[d]=B[R]=B[h]=B[m]=B[b]=B[f]=B[v]=B[M]=B[N]=B[L]=B[Y]=B[Z]=!1;var x=typeof Qt=="object"&&Qt&&Qt.Object===Object&&Qt,j=typeof self=="object"&&self&&self.Object===Object&&self,K=x||j||Function("return this")(),P=e&&!e.nodeType&&e,ie=P&&!0&&t&&!t.nodeType&&t,pe=ie&&ie.exports===P,he=pe&&x.process,le=function(){try{var p=ie&&ie.require&&ie.require("util").types;return p||he&&he.binding&&he.binding("util")}catch{}}(),ye=le&&le.isTypedArray;function Fe(p,y,D){switch(D.length){case 0:return p.call(y);case 1:return p.call(y,D[0]);case 2:return p.call(y,D[0],D[1]);case 3:return p.call(y,D[0],D[1],D[2])}return p.apply(y,D)}function de(p,y){for(var D=-1,ne=Array(p);++D<p;)ne[D]=y(D);return ne}function Ee(p){return function(y){return p(y)}}function dt(p,y){return p==null?void 0:p[y]}function tt(p,y){return function(D){return p(y(D))}}var We=Array.prototype,Ae=Function.prototype,je=Object.prototype,Ye=K["__core-js_shared__"],Ue=Ae.toString,qe=je.hasOwnProperty,Wt=function(){var p=/[^.]+$/.exec(Ye&&Ye.keys&&Ye.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}(),Pt=je.toString,nr=Ue.call(Object),Yr=RegExp("^"+Ue.call(qe).replace(_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tt=pe?K.Buffer:void 0,yr=K.Symbol,Is=K.Uint8Array,zs=Tt?Tt.allocUnsafe:void 0,Vl=tt(Object.getPrototypeOf,Object),Ql=Object.create,Zv=je.propertyIsEnumerable,Xv=We.splice,ir=yr?yr.toStringTag:void 0,Rs=function(){try{var p=ji(Object,"defineProperty");return p({},"",{}),p}catch{}}(),Vv=Tt?Tt.isBuffer:void 0,Kl=Math.max,Qv=Date.now,Jl=ji(K,"Map"),jr=ji(Object,"create"),Kv=function(){function p(){}return function(y){if(!or(y))return{};if(Ql)return Ql(y);p.prototype=y;var D=new p;return p.prototype=void 0,D}}();function ar(p){var y=-1,D=p==null?0:p.length;for(this.clear();++y<D;){var ne=p[y];this.set(ne[0],ne[1])}}function Jv(){this.__data__=jr?jr(null):{},this.size=0}function ey(p){var y=this.has(p)&&delete this.__data__[p];return this.size-=y?1:0,y}function ty(p){var y=this.__data__;if(jr){var D=y[p];return D===s?void 0:D}return qe.call(y,p)?y[p]:void 0}function ry(p){var y=this.__data__;return jr?y[p]!==void 0:qe.call(y,p)}function sy(p,y){var D=this.__data__;return this.size+=this.has(p)?0:1,D[p]=jr&&y===void 0?s:y,this}ar.prototype.clear=Jv,ar.prototype.delete=ey,ar.prototype.get=ty,ar.prototype.has=ry,ar.prototype.set=sy;function Yt(p){var y=-1,D=p==null?0:p.length;for(this.clear();++y<D;){var ne=p[y];this.set(ne[0],ne[1])}}function ny(){this.__data__=[],this.size=0}function iy(p){var y=this.__data__,D=Bs(y,p);if(D<0)return!1;var ne=y.length-1;return D==ne?y.pop():Xv.call(y,D,1),--this.size,!0}function ay(p){var y=this.__data__,D=Bs(y,p);return D<0?void 0:y[D][1]}function oy(p){return Bs(this.__data__,p)>-1}function ly(p,y){var D=this.__data__,ne=Bs(D,p);return ne<0?(++this.size,D.push([p,y])):D[ne][1]=y,this}Yt.prototype.clear=ny,Yt.prototype.delete=iy,Yt.prototype.get=ay,Yt.prototype.has=oy,Yt.prototype.set=ly;function _r(p){var y=-1,D=p==null?0:p.length;for(this.clear();++y<D;){var ne=p[y];this.set(ne[0],ne[1])}}function cy(){this.size=0,this.__data__={hash:new ar,map:new(Jl||Yt),string:new ar}}function uy(p){var y=As(this,p).delete(p);return this.size-=y?1:0,y}function dy(p){return As(this,p).get(p)}function hy(p){return As(this,p).has(p)}function fy(p,y){var D=As(this,p),ne=D.size;return D.set(p,y),this.size+=D.size==ne?0:1,this}_r.prototype.clear=cy,_r.prototype.delete=uy,_r.prototype.get=dy,_r.prototype.has=hy,_r.prototype.set=fy;function br(p){var y=this.__data__=new Yt(p);this.size=y.size}function py(){this.__data__=new Yt,this.size=0}function my(p){var y=this.__data__,D=y.delete(p);return this.size=y.size,D}function gy(p){return this.__data__.get(p)}function vy(p){return this.__data__.has(p)}function yy(p,y){var D=this.__data__;if(D instanceof Yt){var ne=D.__data__;if(!Jl||ne.length<r-1)return ne.push([p,y]),this.size=++D.size,this;D=this.__data__=new _r(ne)}return D.set(p,y),this.size=D.size,this}br.prototype.clear=py,br.prototype.delete=my,br.prototype.get=gy,br.prototype.has=vy,br.prototype.set=yy;function _y(p,y){var D=qi(p),ne=!D&&Gi(p),Ce=!D&&!ne&&n1(p),Me=!D&&!ne&&!Ce&&a1(p),ze=D||ne||Ce||Me,_e=ze?de(p.length,String):[],Re=_e.length;for(var Ct in p)(y||qe.call(p,Ct))&&!(ze&&(Ct=="length"||Ce&&(Ct=="offset"||Ct=="parent")||Me&&(Ct=="buffer"||Ct=="byteLength"||Ct=="byteOffset")||r1(Ct,Re)))&&_e.push(Ct);return _e}function Wi(p,y,D){(D!==void 0&&!Hs(p[y],D)||D===void 0&&!(y in p))&&Yi(p,y,D)}function by(p,y,D){var ne=p[y];(!(qe.call(p,y)&&Hs(ne,D))||D===void 0&&!(y in p))&&Yi(p,y,D)}function Bs(p,y){for(var D=p.length;D--;)if(Hs(p[D][0],y))return D;return-1}function Yi(p,y,D){y=="__proto__"&&Rs?Rs(p,y,{configurable:!0,enumerable:!0,value:D,writable:!0}):p[y]=D}var Cy=Iy();function Fs(p){return p==null?p===void 0?ee:T:ir&&ir in Object(p)?zy(p):Ny(p)}function e1(p){return Ur(p)&&Fs(p)==c}function wy(p){if(!or(p)||Ay(p))return!1;var y=Xi(p)?Yr:X;return y.test(Uy(p))}function xy(p){return Ur(p)&&i1(p.length)&&!!B[Fs(p)]}function Sy(p){if(!or(p))return Hy(p);var y=s1(p),D=[];for(var ne in p)ne=="constructor"&&(y||!qe.call(p,ne))||D.push(ne);return D}function t1(p,y,D,ne,Ce){p!==y&&Cy(y,function(Me,ze){if(Ce||(Ce=new br),or(Me))ky(p,y,ze,D,t1,ne,Ce);else{var _e=ne?ne(Ui(p,ze),Me,ze+"",p,y,Ce):void 0;_e===void 0&&(_e=Me),Wi(p,ze,_e)}},o1)}function ky(p,y,D,ne,Ce,Me,ze){var _e=Ui(p,D),Re=Ui(y,D),Ct=ze.get(Re);if(Ct){Wi(p,D,Ct);return}var ht=Me?Me(_e,Re,D+"",p,y,ze):void 0,Gr=ht===void 0;if(Gr){var Vi=qi(Re),Qi=!Vi&&n1(Re),c1=!Vi&&!Qi&&a1(Re);ht=Re,Vi||Qi||c1?qi(_e)?ht=_e:Gy(_e)?ht=Ly(_e):Qi?(Gr=!1,ht=$y(Re,!0)):c1?(Gr=!1,ht=Dy(Re,!0)):ht=[]:qy(Re)||Gi(Re)?(ht=_e,Gi(_e)?ht=Zy(_e):(!or(_e)||Xi(_e))&&(ht=Ry(Re))):Gr=!1}Gr&&(ze.set(Re,ht),Ce(ht,Re,ne,Me,ze),ze.delete(Re)),Wi(p,D,ht)}function Ty(p,y){return Yy(Wy(p,y,l1),p+"")}var My=Rs?function(p,y){return Rs(p,"toString",{configurable:!0,enumerable:!1,value:Vy(y),writable:!0})}:l1;function $y(p,y){if(y)return p.slice();var D=p.length,ne=zs?zs(D):new p.constructor(D);return p.copy(ne),ne}function Ey(p){var y=new p.constructor(p.byteLength);return new Is(y).set(new Is(p)),y}function Dy(p,y){var D=y?Ey(p.buffer):p.buffer;return new p.constructor(D,p.byteOffset,p.length)}function Ly(p,y){var D=-1,ne=p.length;for(y||(y=Array(ne));++D<ne;)y[D]=p[D];return y}function Py(p,y,D,ne){var Ce=!D;D||(D={});for(var Me=-1,ze=y.length;++Me<ze;){var _e=y[Me],Re=ne?ne(D[_e],p[_e],_e,D,p):void 0;Re===void 0&&(Re=p[_e]),Ce?Yi(D,_e,Re):by(D,_e,Re)}return D}function Oy(p){return Ty(function(y,D){var ne=-1,Ce=D.length,Me=Ce>1?D[Ce-1]:void 0,ze=Ce>2?D[2]:void 0;for(Me=p.length>3&&typeof Me=="function"?(Ce--,Me):void 0,ze&&By(D[0],D[1],ze)&&(Me=Ce<3?void 0:Me,Ce=1),y=Object(y);++ne<Ce;){var _e=D[ne];_e&&p(y,_e,ne,Me)}return y})}function Iy(p){return function(y,D,ne){for(var Ce=-1,Me=Object(y),ze=ne(y),_e=ze.length;_e--;){var Re=ze[p?_e:++Ce];if(D(Me[Re],Re,Me)===!1)break}return y}}function As(p,y){var D=p.__data__;return Fy(y)?D[typeof y=="string"?"string":"hash"]:D.map}function ji(p,y){var D=dt(p,y);return wy(D)?D:void 0}function zy(p){var y=qe.call(p,ir),D=p[ir];try{p[ir]=void 0;var ne=!0}catch{}var Ce=Pt.call(p);return ne&&(y?p[ir]=D:delete p[ir]),Ce}function Ry(p){return typeof p.constructor=="function"&&!s1(p)?Kv(Vl(p)):{}}function r1(p,y){var D=typeof p;return y=y==null?a:y,!!y&&(D=="number"||D!="symbol"&&A.test(p))&&p>-1&&p%1==0&&p<y}function By(p,y,D){if(!or(D))return!1;var ne=typeof y;return(ne=="number"?Zi(D)&&r1(y,D.length):ne=="string"&&y in D)?Hs(D[y],p):!1}function Fy(p){var y=typeof p;return y=="string"||y=="number"||y=="symbol"||y=="boolean"?p!=="__proto__":p===null}function Ay(p){return!!Wt&&Wt in p}function s1(p){var y=p&&p.constructor,D=typeof y=="function"&&y.prototype||je;return p===D}function Hy(p){var y=[];if(p!=null)for(var D in Object(p))y.push(D);return y}function Ny(p){return Pt.call(p)}function Wy(p,y,D){return y=Kl(y===void 0?p.length-1:y,0),function(){for(var ne=arguments,Ce=-1,Me=Kl(ne.length-y,0),ze=Array(Me);++Ce<Me;)ze[Ce]=ne[y+Ce];Ce=-1;for(var _e=Array(y+1);++Ce<y;)_e[Ce]=ne[Ce];return _e[y]=D(ze),Fe(p,this,_e)}}function Ui(p,y){if(!(y==="constructor"&&typeof p[y]=="function")&&y!="__proto__")return p[y]}var Yy=jy(My);function jy(p){var y=0,D=0;return function(){var ne=Qv(),Ce=i-(ne-D);if(D=ne,Ce>0){if(++y>=n)return arguments[0]}else y=0;return p.apply(void 0,arguments)}}function Uy(p){if(p!=null){try{return Ue.call(p)}catch{}try{return p+""}catch{}}return""}function Hs(p,y){return p===y||p!==p&&y!==y}var Gi=e1(function(){return arguments}())?e1:function(p){return Ur(p)&&qe.call(p,"callee")&&!Zv.call(p,"callee")},qi=Array.isArray;function Zi(p){return p!=null&&i1(p.length)&&!Xi(p)}function Gy(p){return Ur(p)&&Zi(p)}var n1=Vv||Qy;function Xi(p){if(!or(p))return!1;var y=Fs(p);return y==b||y==C||y==l||y==S}function i1(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=a}function or(p){var y=typeof p;return p!=null&&(y=="object"||y=="function")}function Ur(p){return p!=null&&typeof p=="object"}function qy(p){if(!Ur(p)||Fs(p)!=M)return!1;var y=Vl(p);if(y===null)return!0;var D=qe.call(y,"constructor")&&y.constructor;return typeof D=="function"&&D instanceof D&&Ue.call(D)==nr}var a1=ye?Ee(ye):xy;function Zy(p){return Py(p,o1(p))}function o1(p){return Zi(p)?_y(p,!0):Sy(p)}var Xy=Oy(function(p,y,D){t1(p,y,D)});function Vy(p){return function(){return p}}function l1(p){return p}function Qy(){return!1}t.exports=Xy}(Kr,Kr.exports);var P1=Kr.exports;function O1(){if(!arguments.length)return[];var t=arguments[0];return I1(t)?t:[t]}var I1=Array.isArray,z1=O1;const g=Ks,ue=t=>t.toFixed(7).replace(/(\.[0-9]+?)0+$/,"$1").replace(/\.0$/,""),et=t=>`${ue(t/16)}rem`,u=(t,e)=>`${ue(t/e)}em`,Mt=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),s=parseInt(t.substring(4,6),16);return`${e} ${r} ${s}`};let en={sm:{css:[{fontSize:et(14),lineHeight:ue(24/14),p:{marginTop:u(16,14),marginBottom:u(16,14)},'[class~="lead"]':{fontSize:u(18,14),lineHeight:ue(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:ue(36/30)},h2:{fontSize:u(20,14),marginTop:u(32,20),marginBottom:u(16,20),lineHeight:ue(28/20)},h3:{fontSize:u(18,14),marginTop:u(28,18),marginBottom:u(8,18),lineHeight:ue(28/18)},h4:{marginTop:u(20,14),marginBottom:u(8,14),lineHeight:ue(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:et(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:ue(20/12),marginTop:u(20,12),marginBottom:u(20,12),borderRadius:et(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:ue(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:ue(16/12),marginTop:u(8,12)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},base:{css:[{fontSize:et(16),lineHeight:ue(28/16),p:{marginTop:u(20,16),marginBottom:u(20,16)},'[class~="lead"]':{fontSize:u(20,16),lineHeight:ue(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:ue(40/36)},h2:{fontSize:u(24,16),marginTop:u(48,24),marginBottom:u(24,24),lineHeight:ue(32/24)},h3:{fontSize:u(20,16),marginTop:u(32,20),marginBottom:u(12,20),lineHeight:ue(32/20)},h4:{marginTop:u(24,16),marginBottom:u(8,16),lineHeight:ue(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:et(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:ue(24/14),marginTop:u(24,14),marginBottom:u(24,14),borderRadius:et(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:ue(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:ue(20/14),marginTop:u(12,14)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},lg:{css:[{fontSize:et(18),lineHeight:ue(32/18),p:{marginTop:u(24,18),marginBottom:u(24,18)},'[class~="lead"]':{fontSize:u(22,18),lineHeight:ue(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:ue(48/48)},h2:{fontSize:u(30,18),marginTop:u(56,30),marginBottom:u(32,30),lineHeight:ue(40/30)},h3:{fontSize:u(24,18),marginTop:u(40,24),marginBottom:u(16,24),lineHeight:ue(36/24)},h4:{marginTop:u(32,18),marginBottom:u(8,18),lineHeight:ue(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:et(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:ue(28/16),marginTop:u(32,16),marginBottom:u(32,16),borderRadius:et(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:ue(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:ue(24/16),marginTop:u(16,16)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},xl:{css:[{fontSize:et(20),lineHeight:ue(36/20),p:{marginTop:u(24,20),marginBottom:u(24,20)},'[class~="lead"]':{fontSize:u(24,20),lineHeight:ue(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:ue(56/56)},h2:{fontSize:u(36,20),marginTop:u(56,36),marginBottom:u(32,36),lineHeight:ue(40/36)},h3:{fontSize:u(30,20),marginTop:u(48,30),marginBottom:u(20,30),lineHeight:ue(40/30)},h4:{marginTop:u(36,20),marginBottom:u(12,20),lineHeight:ue(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:et(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:ue(32/18),marginTop:u(36,18),marginBottom:u(36,18),borderRadius:et(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:ue(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:ue(28/18),marginTop:u(18,18)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},"2xl":{css:[{fontSize:et(24),lineHeight:ue(40/24),p:{marginTop:u(32,24),marginBottom:u(32,24)},'[class~="lead"]':{fontSize:u(30,24),lineHeight:ue(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:ue(64/64)},h2:{fontSize:u(48,24),marginTop:u(72,48),marginBottom:u(40,48),lineHeight:ue(52/48)},h3:{fontSize:u(36,24),marginTop:u(56,36),marginBottom:u(24,36),lineHeight:ue(44/36)},h4:{marginTop:u(40,24),marginBottom:u(16,24),lineHeight:ue(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:et(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:ue(36/20),marginTop:u(40,20),marginBottom:u(40,20),borderRadius:et(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:ue(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:ue(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":Mt(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":Mt(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":Mt(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":Mt(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":Mt(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":Mt(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":Mt(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":Mt(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":Mt(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":Mt(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 R1={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)"}},en.gray.css,...en.base.css]},...en},B1="[object Object]";function F1(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function A1(t,e){return function(r){return t(e(r))}}var H1=Function.prototype,wa=Object.prototype,xa=H1.toString,N1=wa.hasOwnProperty,W1=xa.call(Object),Y1=wa.toString,j1=A1(Object.getPrototypeOf,Object);function U1(t){return!!t&&typeof t=="object"}function G1(t){if(!U1(t)||Y1.call(t)!=B1||F1(t))return!1;var e=j1(t);if(e===null)return!0;var r=N1.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&xa.call(r)==W1}var q1=G1,tn={exports:{}},rn={exports:{}},sn={exports:{}},nn={exports:{}},an={exports:{}},on={exports:{}},ot={},ln={exports:{}};(function(t,e){e.__esModule=!0,e.default=n;function r(i){for(var a=i.toLowerCase(),c="",o=!1,l=0;l<6&&a[l]!==void 0;l++){var d=a.charCodeAt(l),h=d>=97&&d<=102||d>=48&&d<=57;if(o=d===32,!h)break;c+=a[l]}if(c.length!==0){var m=parseInt(c,16),b=m>=55296&&m<=57343;return b||m===0||m>1114111?["�",c.length+(o?1:0)]:[String.fromCodePoint(m),c.length+(o?1:0)]}}var s=/\\/;function n(i){var a=s.test(i);if(!a)return i;for(var c="",o=0;o<i.length;o++){if(i[o]==="\\"){var l=r(i.slice(o+1,o+7));if(l!==void 0){c+=l[0],o+=l[1];continue}if(i[o+1]==="\\"){c+="\\",o++;continue}i.length===o+1&&(c+=i[o]);continue}c+=i[o]}return c}t.exports=e.default})(ln,ln.exports);var Sa=ln.exports,cn={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(s){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];for(;i.length>0;){var c=i.shift();if(!s[c])return;s=s[c]}return s}t.exports=e.default})(cn,cn.exports);var Z1=cn.exports,un={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(s){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];for(;i.length>0;){var c=i.shift();s[c]||(s[c]={}),s=s[c]}}t.exports=e.default})(un,un.exports);var X1=un.exports,dn={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(s){for(var n="",i=s.indexOf("/*"),a=0;i>=0;){n=n+s.slice(a,i);var c=s.indexOf("*/",i+2);if(c<0)return n;a=c+2,i=s.indexOf("/*",a)}return n=n+s.slice(a),n}t.exports=e.default})(dn,dn.exports);var V1=dn.exports;ot.__esModule=!0,ot.stripComments=ot.ensureObject=ot.getProp=ot.unesc=void 0;var Q1=Jr(Sa);ot.unesc=Q1.default;var K1=Jr(Z1);ot.getProp=K1.default;var J1=Jr(X1);ot.ensureObject=J1.default;var e0=Jr(V1);ot.stripComments=e0.default;function Jr(t){return t&&t.__esModule?t:{default:t}}(function(t,e){e.__esModule=!0,e.default=void 0;var r=ot;function s(c,o){for(var l=0;l<o.length;l++){var d=o[l];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(c,d.key,d)}}function n(c,o,l){return o&&s(c.prototype,o),l&&s(c,l),c}var i=function c(o,l){if(typeof o!="object"||o===null)return o;var d=new o.constructor;for(var h in o)if(o.hasOwnProperty(h)){var m=o[h],b=typeof m;h==="parent"&&b==="object"?l&&(d[h]=l):m instanceof Array?d[h]=m.map(function(C){return c(C,d)}):d[h]=c(m,d)}return d},a=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 o=c.prototype;return o.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},o.replaceWith=function(){if(this.parent){for(var d in arguments)this.parent.insertBefore(this,arguments[d]);this.remove()}return this},o.next=function(){return this.parent.at(this.parent.index(this)+1)},o.prev=function(){return this.parent.at(this.parent.index(this)-1)},o.clone=function(d){d===void 0&&(d={});var h=i(this);for(var m in d)h[m]=d[m];return h},o.appendToPropertyAndEscape=function(d,h,m){this.raws||(this.raws={});var b=this[d],C=this.raws[d];this[d]=b+h,C||m!==h?this.raws[d]=(C||b)+m:delete this.raws[d]},o.setPropertyAndEscape=function(d,h,m){this.raws||(this.raws={}),this[d]=h,this.raws[d]=m},o.setPropertyWithoutEscape=function(d,h){this[d]=h,this.raws&&delete this.raws[d]},o.isAtPosition=function(d,h){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>h||this.source.end.line===d&&this.source.end.column<h)},o.stringifyProperty=function(d){return this.raws&&this.raws[d]||this[d]},o.valueToString=function(){return String(this.stringifyProperty("value"))},o.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},n(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=a,t.exports=e.default})(on,on.exports);var Gt=on.exports,me={};me.__esModule=!0,me.UNIVERSAL=me.ATTRIBUTE=me.CLASS=me.COMBINATOR=me.COMMENT=me.ID=me.NESTING=me.PSEUDO=me.ROOT=me.SELECTOR=me.STRING=me.TAG=void 0;var t0="tag";me.TAG=t0;var r0="string";me.STRING=r0;var s0="selector";me.SELECTOR=s0;var n0="root";me.ROOT=n0;var i0="pseudo";me.PSEUDO=i0;var a0="nesting";me.NESTING=a0;var o0="id";me.ID=o0;var l0="comment";me.COMMENT=l0;var c0="combinator";me.COMBINATOR=c0;var u0="class";me.CLASS=u0;var d0="attribute";me.ATTRIBUTE=d0;var h0="universal";me.UNIVERSAL=h0,function(t,e){e.__esModule=!0,e.default=void 0;var r=a(Gt),s=i(me);function n(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return n=function(){return f},f}function i(f){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var v=n();if(v&&v.has(f))return v.get(f);var T={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in f)if(Object.prototype.hasOwnProperty.call(f,S)){var N=M?Object.getOwnPropertyDescriptor(f,S):null;N&&(N.get||N.set)?Object.defineProperty(T,S,N):T[S]=f[S]}return T.default=f,v&&v.set(f,T),T}function a(f){return f&&f.__esModule?f:{default:f}}function c(f,v){var T;if(typeof Symbol=="undefined"||f[Symbol.iterator]==null){if(Array.isArray(f)||(T=o(f))||v&&f&&typeof f.length=="number"){T&&(f=T);var M=0;return function(){return M>=f.length?{done:!0}:{done:!1,value:f[M++]}}}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 T=f[Symbol.iterator](),T.next.bind(T)}function o(f,v){if(f){if(typeof f=="string")return l(f,v);var T=Object.prototype.toString.call(f).slice(8,-1);if(T==="Object"&&f.constructor&&(T=f.constructor.name),T==="Map"||T==="Set")return Array.from(f);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return l(f,v)}}function l(f,v){(v==null||v>f.length)&&(v=f.length);for(var T=0,M=new Array(v);T<v;T++)M[T]=f[T];return M}function d(f,v){for(var T=0;T<v.length;T++){var M=v[T];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(f,M.key,M)}}function h(f,v,T){return v&&d(f.prototype,v),T&&d(f,T),f}function m(f,v){f.prototype=Object.create(v.prototype),f.prototype.constructor=f,b(f,v)}function b(f,v){return b=Object.setPrototypeOf||function(M,S){return M.__proto__=S,M},b(f,v)}var C=function(f){m(v,f);function v(M){var S;return S=f.call(this,M)||this,S.nodes||(S.nodes=[]),S}var T=v.prototype;return T.append=function(S){return S.parent=this,this.nodes.push(S),this},T.prepend=function(S){return S.parent=this,this.nodes.unshift(S),this},T.at=function(S){return this.nodes[S]},T.index=function(S){return typeof S=="number"?S:this.nodes.indexOf(S)},T.removeChild=function(S){S=this.index(S),this.at(S).parent=void 0,this.nodes.splice(S,1);var N;for(var L in this.indexes)N=this.indexes[L],N>=S&&(this.indexes[L]=N-1);return this},T.removeAll=function(){for(var S=c(this.nodes),N;!(N=S()).done;){var L=N.value;L.parent=void 0}return this.nodes=[],this},T.empty=function(){return this.removeAll()},T.insertAfter=function(S,N){N.parent=this;var L=this.index(S);this.nodes.splice(L+1,0,N),N.parent=this;var Y;for(var ee in this.indexes)Y=this.indexes[ee],L<=Y&&(this.indexes[ee]=Y+1);return this},T.insertBefore=function(S,N){N.parent=this;var L=this.index(S);this.nodes.splice(L,0,N),N.parent=this;var Y;for(var ee in this.indexes)Y=this.indexes[ee],Y<=L&&(this.indexes[ee]=Y+1);return this},T._findChildAtPosition=function(S,N){var L=void 0;return this.each(function(Y){if(Y.atPosition){var ee=Y.atPosition(S,N);if(ee)return L=ee,!1}else if(Y.isAtPosition(S,N))return L=Y,!1}),L},T.atPosition=function(S,N){if(this.isAtPosition(S,N))return this._findChildAtPosition(S,N)||this},T._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))},T.each=function(S){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var N=this.lastEach;if(this.indexes[N]=0,!!this.length){for(var L,Y;this.indexes[N]<this.length&&(L=this.indexes[N],Y=S(this.at(L),L),Y!==!1);)this.indexes[N]+=1;if(delete this.indexes[N],Y===!1)return!1}},T.walk=function(S){return this.each(function(N,L){var Y=S(N,L);if(Y!==!1&&N.length&&(Y=N.walk(S)),Y===!1)return!1})},T.walkAttributes=function(S){var N=this;return this.walk(function(L){if(L.type===s.ATTRIBUTE)return S.call(N,L)})},T.walkClasses=function(S){var N=this;return this.walk(function(L){if(L.type===s.CLASS)return S.call(N,L)})},T.walkCombinators=function(S){var N=this;return this.walk(function(L){if(L.type===s.COMBINATOR)return S.call(N,L)})},T.walkComments=function(S){var N=this;return this.walk(function(L){if(L.type===s.COMMENT)return S.call(N,L)})},T.walkIds=function(S){var N=this;return this.walk(function(L){if(L.type===s.ID)return S.call(N,L)})},T.walkNesting=function(S){var N=this;return this.walk(function(L){if(L.type===s.NESTING)return S.call(N,L)})},T.walkPseudos=function(S){var N=this;return this.walk(function(L){if(L.type===s.PSEUDO)return S.call(N,L)})},T.walkTags=function(S){var N=this;return this.walk(function(L){if(L.type===s.TAG)return S.call(N,L)})},T.walkUniversals=function(S){var N=this;return this.walk(function(L){if(L.type===s.UNIVERSAL)return S.call(N,L)})},T.split=function(S){var N=this,L=[];return this.reduce(function(Y,ee,Z){var w=S.call(N,ee);return L.push(ee),w?(Y.push(L),L=[]):Z===N.length-1&&Y.push(L),Y},[])},T.map=function(S){return this.nodes.map(S)},T.reduce=function(S,N){return this.nodes.reduce(S,N)},T.every=function(S){return this.nodes.every(S)},T.some=function(S){return this.nodes.some(S)},T.filter=function(S){return this.nodes.filter(S)},T.sort=function(S){return this.nodes.sort(S)},T.toString=function(){return this.map(String).join("")},h(v,[{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}}]),v}(r.default);e.default=C,t.exports=e.default}(an,an.exports);var hn=an.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(hn),s=me;function n(d){return d&&d.__esModule?d:{default:d}}function i(d,h){for(var m=0;m<h.length;m++){var b=h[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(d,b.key,b)}}function a(d,h,m){return h&&i(d.prototype,h),m&&i(d,m),d}function c(d,h){d.prototype=Object.create(h.prototype),d.prototype.constructor=d,o(d,h)}function o(d,h){return o=Object.setPrototypeOf||function(b,C){return b.__proto__=C,b},o(d,h)}var l=function(d){c(h,d);function h(b){var C;return C=d.call(this,b)||this,C.type=s.ROOT,C}var m=h.prototype;return m.toString=function(){var C=this.reduce(function(f,v){return f.push(String(v)),f},[]).join(",");return this.trailingComma?C+",":C},m.error=function(C,f){return this._error?this._error(C,f):new Error(C)},a(h,[{key:"errorGenerator",set:function(C){this._error=C}}]),h}(r.default);e.default=l,t.exports=e.default})(nn,nn.exports);var ka=nn.exports,fn={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(hn),s=me;function n(o){return o&&o.__esModule?o:{default:o}}function i(o,l){o.prototype=Object.create(l.prototype),o.prototype.constructor=o,a(o,l)}function a(o,l){return a=Object.setPrototypeOf||function(h,m){return h.__proto__=m,h},a(o,l)}var c=function(o){i(l,o);function l(d){var h;return h=o.call(this,d)||this,h.type=s.SELECTOR,h}return l}(r.default);e.default=c,t.exports=e.default})(fn,fn.exports);var Ta=fn.exports,pn={exports:{}};/*! https://mths.be/cssesc v3.0.0 by @mathias */var f0={},p0=f0.hasOwnProperty,m0=function(e,r){if(!e)return r;var s={};for(var n in r)s[n]=p0.call(e,n)?e[n]:r[n];return s},g0=/[ -,\.\/:-@\[-\^`\{-~]/,v0=/[ -,\.\/:-@\[\]\^`\{-~]/,y0=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,mn=function t(e,r){r=m0(r,t.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var s=r.quotes=="double"?'"':"'",n=r.isIdentifier,i=e.charAt(0),a="",c=0,o=e.length;c<o;){var l=e.charAt(c++),d=l.charCodeAt(),h=void 0;if(d<32||d>126){if(d>=55296&&d<=56319&&c<o){var m=e.charCodeAt(c++);(m&64512)==56320?d=((d&1023)<<10)+(m&1023)+65536:c--}h="\\"+d.toString(16).toUpperCase()+" "}else r.escapeEverything?g0.test(l)?h="\\"+l:h="\\"+d.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?h="\\"+d.toString(16).toUpperCase()+" ":l=="\\"||!n&&(l=='"'&&s==l||l=="'"&&s==l)||n&&v0.test(l)?h="\\"+l:h=l;a+=h}return n&&(/^-[-\d]/.test(a)?a="\\-"+a.slice(1):/\d/.test(i)&&(a="\\3"+i+" "+a.slice(1))),a=a.replace(y0,function(b,C,f){return C&&C.length%2?b:(C||"")+f}),!n&&r.wrap?s+a+s:a};mn.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},mn.version="3.0.0";var gn=mn;(function(t,e){e.__esModule=!0,e.default=void 0;var r=a(gn),s=ot,n=a(Gt),i=me;function a(m){return m&&m.__esModule?m:{default:m}}function c(m,b){for(var C=0;C<b.length;C++){var f=b[C];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(m,f.key,f)}}function o(m,b,C){return b&&c(m.prototype,b),C&&c(m,C),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(f,v){return f.__proto__=v,f},d(m,b)}var h=function(m){l(b,m);function b(f){var v;return v=m.call(this,f)||this,v.type=i.CLASS,v._constructed=!0,v}var C=b.prototype;return C.valueToString=function(){return"."+m.prototype.valueToString.call(this)},o(b,[{key:"value",get:function(){return this._value},set:function(v){if(this._constructed){var T=(0,r.default)(v,{isIdentifier:!0});T!==v?((0,s.ensureObject)(this,"raws"),this.raws.value=T):this.raws&&delete this.raws.value}this._value=v}}]),b}(n.default);e.default=h,t.exports=e.default})(pn,pn.exports);var Ma=pn.exports,vn={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Gt),s=me;function n(o){return o&&o.__esModule?o:{default:o}}function i(o,l){o.prototype=Object.create(l.prototype),o.prototype.constructor=o,a(o,l)}function a(o,l){return a=Object.setPrototypeOf||function(h,m){return h.__proto__=m,h},a(o,l)}var c=function(o){i(l,o);function l(d){var h;return h=o.call(this,d)||this,h.type=s.COMMENT,h}return l}(r.default);e.default=c,t.exports=e.default})(vn,vn.exports);var $a=vn.exports,yn={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Gt),s=me;function n(o){return o&&o.__esModule?o:{default:o}}function i(o,l){o.prototype=Object.create(l.prototype),o.prototype.constructor=o,a(o,l)}function a(o,l){return a=Object.setPrototypeOf||function(h,m){return h.__proto__=m,h},a(o,l)}var c=function(o){i(l,o);function l(h){var m;return m=o.call(this,h)||this,m.type=s.ID,m}var d=l.prototype;return d.valueToString=function(){return"#"+o.prototype.valueToString.call(this)},l}(r.default);e.default=c,t.exports=e.default})(yn,yn.exports);var Ea=yn.exports,_n={exports:{}},bn={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(gn),s=ot,n=i(Gt);function i(h){return h&&h.__esModule?h:{default:h}}function a(h,m){for(var b=0;b<m.length;b++){var C=m[b];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(h,C.key,C)}}function c(h,m,b){return m&&a(h.prototype,m),b&&a(h,b),h}function o(h,m){h.prototype=Object.create(m.prototype),h.prototype.constructor=h,l(h,m)}function l(h,m){return l=Object.setPrototypeOf||function(C,f){return C.__proto__=f,C},l(h,m)}var d=function(h){o(m,h);function m(){return h.apply(this,arguments)||this}var b=m.prototype;return b.qualifiedName=function(f){return this.namespace?this.namespaceString+"|"+f:f},b.valueToString=function(){return this.qualifiedName(h.prototype.valueToString.call(this))},c(m,[{key:"namespace",get:function(){return this._namespace},set:function(f){if(f===!0||f==="*"||f==="&"){this._namespace=f,this.raws&&delete this.raws.namespace;return}var v=(0,r.default)(f,{isIdentifier:!0});this._namespace=f,v!==f?((0,s.ensureObject)(this,"raws"),this.raws.namespace=v):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(f){this.namespace=f}},{key:"namespaceString",get:function(){if(this.namespace){var f=this.stringifyProperty("namespace");return f===!0?"":f}else return""}}]),m}(n.default);e.default=d,t.exports=e.default})(bn,bn.exports);var Cn=bn.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Cn),s=me;function n(o){return o&&o.__esModule?o:{default:o}}function i(o,l){o.prototype=Object.create(l.prototype),o.prototype.constructor=o,a(o,l)}function a(o,l){return a=Object.setPrototypeOf||function(h,m){return h.__proto__=m,h},a(o,l)}var c=function(o){i(l,o);function l(d){var h;return h=o.call(this,d)||this,h.type=s.TAG,h}return l}(r.default);e.default=c,t.exports=e.default})(_n,_n.exports);var Da=_n.exports,wn={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Gt),s=me;function n(o){return o&&o.__esModule?o:{default:o}}function i(o,l){o.prototype=Object.create(l.prototype),o.prototype.constructor=o,a(o,l)}function a(o,l){return a=Object.setPrototypeOf||function(h,m){return h.__proto__=m,h},a(o,l)}var c=function(o){i(l,o);function l(d){var h;return h=o.call(this,d)||this,h.type=s.STRING,h}return l}(r.default);e.default=c,t.exports=e.default})(wn,wn.exports);var La=wn.exports,xn={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(hn),s=me;function n(o){return o&&o.__esModule?o:{default:o}}function i(o,l){o.prototype=Object.create(l.prototype),o.prototype.constructor=o,a(o,l)}function a(o,l){return a=Object.setPrototypeOf||function(h,m){return h.__proto__=m,h},a(o,l)}var c=function(o){i(l,o);function l(h){var m;return m=o.call(this,h)||this,m.type=s.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})(xn,xn.exports);var Pa=xn.exports,Sn={},_0=b0;function b0(t,e){if(kn("noDeprecation"))return t;var r=!1;function s(){if(!r){if(kn("throwDeprecation"))throw new Error(e);kn("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return s}function kn(t){try{if(!Qt.localStorage)return!1}catch{return!1}var e=Qt.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}(function(t){t.__esModule=!0,t.unescapeValue=v,t.default=void 0;var e=a(gn),r=a(Sa),s=a(Cn),n=me,i;function a(L){return L&&L.__esModule?L:{default:L}}function c(L,Y){for(var ee=0;ee<Y.length;ee++){var Z=Y[ee];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(L,Z.key,Z)}}function o(L,Y,ee){return Y&&c(L.prototype,Y),ee&&c(L,ee),L}function l(L,Y){L.prototype=Object.create(Y.prototype),L.prototype.constructor=L,d(L,Y)}function d(L,Y){return d=Object.setPrototypeOf||function(Z,w){return Z.__proto__=w,Z},d(L,Y)}var h=_0,m=/^('|")([^]*)\1$/,b=h(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),C=h(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),f=h(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function v(L){var Y=!1,ee=null,Z=L,w=Z.match(m);return w&&(ee=w[1],Z=w[2]),Z=(0,r.default)(Z),Z!==L&&(Y=!0),{deprecatedUsage:Y,unescaped:Z,quoteMark:ee}}function T(L){if(L.quoteMark!==void 0||L.value===void 0)return L;f();var Y=v(L.value),ee=Y.quoteMark,Z=Y.unescaped;return L.raws||(L.raws={}),L.raws.value===void 0&&(L.raws.value=L.value),L.value=Z,L.quoteMark=ee,L}var M=function(L){l(Y,L);function Y(Z){var w;return Z===void 0&&(Z={}),w=L.call(this,T(Z))||this,w.type=n.ATTRIBUTE,w.raws=w.raws||{},Object.defineProperty(w.raws,"unquoted",{get:h(function(){return w.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:h(function(){return w.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),w._constructed=!0,w}var ee=Y.prototype;return ee.getQuotedValue=function(w){w===void 0&&(w={});var R=this._determineQuoteMark(w),q=S[R],O=(0,e.default)(this._value,q);return O},ee._determineQuoteMark=function(w){return w.smart?this.smartQuoteMark(w):this.preferredQuoteMark(w)},ee.setValue=function(w,R){R===void 0&&(R={}),this._value=w,this._quoteMark=this._determineQuoteMark(R),this._syncRawValue()},ee.smartQuoteMark=function(w){var R=this.value,q=R.replace(/[^']/g,"").length,O=R.replace(/[^"]/g,"").length;if(q+O===0){var V=(0,e.default)(R,{isIdentifier:!0});if(V===R)return Y.NO_QUOTE;var Q=this.preferredQuoteMark(w);if(Q===Y.NO_QUOTE){var F=this.quoteMark||w.quoteMark||Y.DOUBLE_QUOTE,$=S[F],I=(0,e.default)(R,$);if(I.length<V.length)return F}return Q}else return O===q?this.preferredQuoteMark(w):O<q?Y.DOUBLE_QUOTE:Y.SINGLE_QUOTE},ee.preferredQuoteMark=function(w){var R=w.preferCurrentQuoteMark?this.quoteMark:w.quoteMark;return R===void 0&&(R=w.preferCurrentQuoteMark?w.quoteMark:this.quoteMark),R===void 0&&(R=Y.DOUBLE_QUOTE),R},ee._syncRawValue=function(){var w=(0,e.default)(this._value,S[this.quoteMark]);w===this._value?this.raws&&delete this.raws.value:this.raws.value=w},ee._handleEscapes=function(w,R){if(this._constructed){var q=(0,e.default)(R,{isIdentifier:!0});q!==R?this.raws[w]=q:delete this.raws[w]}},ee._spacesFor=function(w){var R={before:"",after:""},q=this.spaces[w]||{},O=this.raws.spaces&&this.raws.spaces[w]||{};return Object.assign(R,q,O)},ee._stringFor=function(w,R,q){R===void 0&&(R=w),q===void 0&&(q=N);var O=this._spacesFor(R);return q(this.stringifyProperty(w),O)},ee.offsetOf=function(w){var R=1,q=this._spacesFor("attribute");if(R+=q.before.length,w==="namespace"||w==="ns")return this.namespace?R:-1;if(w==="attributeNS"||(R+=this.namespaceString.length,this.namespace&&(R+=1),w==="attribute"))return R;R+=this.stringifyProperty("attribute").length,R+=q.after.length;var O=this._spacesFor("operator");R+=O.before.length;var V=this.stringifyProperty("operator");if(w==="operator")return V?R:-1;R+=V.length,R+=O.after.length;var Q=this._spacesFor("value");R+=Q.before.length;var F=this.stringifyProperty("value");if(w==="value")return F?R:-1;R+=F.length,R+=Q.after.length;var $=this._spacesFor("insensitive");return R+=$.before.length,w==="insensitive"&&this.insensitive?R:-1},ee.toString=function(){var w=this,R=[this.rawSpaceBefore,"["];return R.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(R.push(this._stringFor("operator")),R.push(this._stringFor("value")),R.push(this._stringFor("insensitiveFlag","insensitive",function(q,O){return q.length>0&&!w.quoted&&O.before.length===0&&!(w.spaces.value&&w.spaces.value.after)&&(O.before=" "),N(q,O)}))),R.push("]"),R.push(this.rawSpaceAfter),R.join("")},o(Y,[{key:"quoted",get:function(){var w=this.quoteMark;return w==="'"||w==='"'},set:function(w){C()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(w){if(!this._constructed){this._quoteMark=w;return}this._quoteMark!==w&&(this._quoteMark=w,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(w){if(this._constructed){var R=v(w),q=R.deprecatedUsage,O=R.unescaped,V=R.quoteMark;if(q&&b(),O===this._value&&V===this._quoteMark)return;this._value=O,this._quoteMark=V,this._syncRawValue()}else this._value=w}},{key:"attribute",get:function(){return this._attribute},set:function(w){this._handleEscapes("attribute",w),this._attribute=w}}]),Y}(s.default);t.default=M,M.NO_QUOTE=null,M.SINGLE_QUOTE="'",M.DOUBLE_QUOTE='"';var S=(i={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},i[null]={isIdentifier:!0},i);function N(L,Y){return""+Y.before+L+Y.after}})(Sn);var Tn={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Cn),s=me;function n(o){return o&&o.__esModule?o:{default:o}}function i(o,l){o.prototype=Object.create(l.prototype),o.prototype.constructor=o,a(o,l)}function a(o,l){return a=Object.setPrototypeOf||function(h,m){return h.__proto__=m,h},a(o,l)}var c=function(o){i(l,o);function l(d){var h;return h=o.call(this,d)||this,h.type=s.UNIVERSAL,h.value="*",h}return l}(r.default);e.default=c,t.exports=e.default})(Tn,Tn.exports);var Oa=Tn.exports,Mn={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Gt),s=me;function n(o){return o&&o.__esModule?o:{default:o}}function i(o,l){o.prototype=Object.create(l.prototype),o.prototype.constructor=o,a(o,l)}function a(o,l){return a=Object.setPrototypeOf||function(h,m){return h.__proto__=m,h},a(o,l)}var c=function(o){i(l,o);function l(d){var h;return h=o.call(this,d)||this,h.type=s.COMBINATOR,h}return l}(r.default);e.default=c,t.exports=e.default})(Mn,Mn.exports);var Ia=Mn.exports,$n={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Gt),s=me;function n(o){return o&&o.__esModule?o:{default:o}}function i(o,l){o.prototype=Object.create(l.prototype),o.prototype.constructor=o,a(o,l)}function a(o,l){return a=Object.setPrototypeOf||function(h,m){return h.__proto__=m,h},a(o,l)}var c=function(o){i(l,o);function l(d){var h;return h=o.call(this,d)||this,h.type=s.NESTING,h.value="&",h}return l}(r.default);e.default=c,t.exports=e.default})($n,$n.exports);var za=$n.exports,En={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(s){return s.sort(function(n,i){return n-i})}t.exports=e.default})(En,En.exports);var C0=En.exports,Ra={},se={};se.__esModule=!0,se.combinator=se.word=se.comment=se.str=se.tab=se.newline=se.feed=se.cr=se.backslash=se.bang=se.slash=se.doubleQuote=se.singleQuote=se.space=se.greaterThan=se.pipe=se.equals=se.plus=se.caret=se.tilde=se.dollar=se.closeSquare=se.openSquare=se.closeParenthesis=se.openParenthesis=se.semicolon=se.colon=se.comma=se.at=se.asterisk=se.ampersand=void 0;var w0=38;se.ampersand=w0;var x0=42;se.asterisk=x0;var S0=64;se.at=S0;var k0=44;se.comma=k0;var T0=58;se.colon=T0;var M0=59;se.semicolon=M0;var $0=40;se.openParenthesis=$0;var E0=41;se.closeParenthesis=E0;var D0=91;se.openSquare=D0;var L0=93;se.closeSquare=L0;var P0=36;se.dollar=P0;var O0=126;se.tilde=O0;var I0=94;se.caret=I0;var z0=43;se.plus=z0;var R0=61;se.equals=R0;var B0=124;se.pipe=B0;var F0=62;se.greaterThan=F0;var A0=32;se.space=A0;var Ba=39;se.singleQuote=Ba;var H0=34;se.doubleQuote=H0;var N0=47;se.slash=N0;var W0=33;se.bang=W0;var Y0=92;se.backslash=Y0;var j0=13;se.cr=j0;var U0=12;se.feed=U0;var G0=10;se.newline=G0;var q0=9;se.tab=q0;var Z0=Ba;se.str=Z0;var X0=-1;se.comment=X0;var V0=-2;se.word=V0;var Q0=-3;se.combinator=Q0,function(t){t.__esModule=!0,t.default=C,t.FIELDS=void 0;var e=i(se),r,s;function n(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return n=function(){return f},f}function i(f){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var v=n();if(v&&v.has(f))return v.get(f);var T={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in f)if(Object.prototype.hasOwnProperty.call(f,S)){var N=M?Object.getOwnPropertyDescriptor(f,S):null;N&&(N.get||N.set)?Object.defineProperty(T,S,N):T[S]=f[S]}return T.default=f,v&&v.set(f,T),T}for(var a=(r={},r[e.tab]=!0,r[e.newline]=!0,r[e.cr]=!0,r[e.feed]=!0,r),c=(s={},s[e.space]=!0,s[e.tab]=!0,s[e.newline]=!0,s[e.cr]=!0,s[e.feed]=!0,s[e.ampersand]=!0,s[e.asterisk]=!0,s[e.bang]=!0,s[e.comma]=!0,s[e.colon]=!0,s[e.semicolon]=!0,s[e.openParenthesis]=!0,s[e.closeParenthesis]=!0,s[e.openSquare]=!0,s[e.closeSquare]=!0,s[e.singleQuote]=!0,s[e.doubleQuote]=!0,s[e.plus]=!0,s[e.pipe]=!0,s[e.tilde]=!0,s[e.greaterThan]=!0,s[e.equals]=!0,s[e.dollar]=!0,s[e.caret]=!0,s[e.slash]=!0,s),o={},l="0123456789abcdefABCDEF",d=0;d<l.length;d++)o[l.charCodeAt(d)]=!0;function h(f,v){var T=v,M;do{if(M=f.charCodeAt(T),c[M])return T-1;M===e.backslash?T=m(f,T)+1:T++}while(T<f.length);return T-1}function m(f,v){var T=v,M=f.charCodeAt(T+1);if(!a[M])if(o[M]){var S=0;do T++,S++,M=f.charCodeAt(T+1);while(o[M]&&S<6);S<6&&M===e.space&&T++}else T++;return T}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 C(f){var v=[],T=f.css.valueOf(),M=T,S=M.length,N=-1,L=1,Y=0,ee=0,Z,w,R,q,O,V,Q,F,$,I,W,ae,_;function X(A,B){if(f.safe)T+=B,$=T.length-1;else throw f.error("Unclosed "+A,L,Y-N,Y)}for(;Y<S;){switch(Z=T.charCodeAt(Y),Z===e.newline&&(N=Y,L+=1),Z){case e.space:case e.tab:case e.newline:case e.cr:case e.feed:$=Y;do $+=1,Z=T.charCodeAt($),Z===e.newline&&(N=$,L+=1);while(Z===e.space||Z===e.newline||Z===e.tab||Z===e.cr||Z===e.feed);_=e.space,q=L,R=$-N-1,ee=$;break;case e.plus:case e.greaterThan:case e.tilde:case e.pipe:$=Y;do $+=1,Z=T.charCodeAt($);while(Z===e.plus||Z===e.greaterThan||Z===e.tilde||Z===e.pipe);_=e.combinator,q=L,R=Y-N,ee=$;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:$=Y,_=Z,q=L,R=Y-N,ee=$+1;break;case e.singleQuote:case e.doubleQuote:ae=Z===e.singleQuote?"'":'"',$=Y;do for(O=!1,$=T.indexOf(ae,$+1),$===-1&&X("quote",ae),V=$;T.charCodeAt(V-1)===e.backslash;)V-=1,O=!O;while(O);_=e.str,q=L,R=Y-N,ee=$+1;break;default:Z===e.slash&&T.charCodeAt(Y+1)===e.asterisk?($=T.indexOf("*/",Y+2)+1,$===0&&X("comment","*/"),w=T.slice(Y,$+1),F=w.split(`
3
- `),Q=F.length-1,Q>0?(I=L+Q,W=$-F[Q].length):(I=L,W=N),_=e.comment,L=I,q=I,R=$-W):Z===e.slash?($=Y,_=Z,q=L,R=Y-N,ee=$+1):($=h(T,Y),_=e.word,q=L,R=$-N),ee=$+1;break}v.push([_,L,Y-N,q,R,Y,ee]),W&&(N=W,W=null),Y=ee}return v}}(Ra),function(t,e){e.__esModule=!0,e.default=void 0;var r=ee(ka),s=ee(Ta),n=ee(Ma),i=ee($a),a=ee(Ea),c=ee(Da),o=ee(La),l=ee(Pa),d=Y(Sn),h=ee(Oa),m=ee(Ia),b=ee(za),C=ee(C0),f=Y(Ra),v=Y(se),T=Y(me),M=ot,S,N;function L(){if(typeof WeakMap!="function")return null;var X=new WeakMap;return L=function(){return X},X}function Y(X){if(X&&X.__esModule)return X;if(X===null||typeof X!="object"&&typeof X!="function")return{default:X};var A=L();if(A&&A.has(X))return A.get(X);var B={},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in X)if(Object.prototype.hasOwnProperty.call(X,j)){var K=x?Object.getOwnPropertyDescriptor(X,j):null;K&&(K.get||K.set)?Object.defineProperty(B,j,K):B[j]=X[j]}return B.default=X,A&&A.set(X,B),B}function ee(X){return X&&X.__esModule?X:{default:X}}function Z(X,A){for(var B=0;B<A.length;B++){var x=A[B];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(X,x.key,x)}}function w(X,A,B){return A&&Z(X.prototype,A),B&&Z(X,B),X}var R=(S={},S[v.space]=!0,S[v.cr]=!0,S[v.feed]=!0,S[v.newline]=!0,S[v.tab]=!0,S),q=Object.assign({},R,(N={},N[v.comment]=!0,N));function O(X){return{line:X[f.FIELDS.START_LINE],column:X[f.FIELDS.START_COL]}}function V(X){return{line:X[f.FIELDS.END_LINE],column:X[f.FIELDS.END_COL]}}function Q(X,A,B,x){return{start:{line:X,column:A},end:{line:B,column:x}}}function F(X){return Q(X[f.FIELDS.START_LINE],X[f.FIELDS.START_COL],X[f.FIELDS.END_LINE],X[f.FIELDS.END_COL])}function $(X,A){if(X)return Q(X[f.FIELDS.START_LINE],X[f.FIELDS.START_COL],A[f.FIELDS.END_LINE],A[f.FIELDS.END_COL])}function I(X,A){var B=X[A];if(typeof B=="string")return B.indexOf("\\")!==-1&&((0,M.ensureObject)(X,"raws"),X[A]=(0,M.unesc)(B),X.raws[A]===void 0&&(X.raws[A]=B)),X}function W(X,A){for(var B=-1,x=[];(B=X.indexOf(A,B+1))!==-1;)x.push(B);return x}function ae(){var X=Array.prototype.concat.apply([],arguments);return X.filter(function(A,B){return B===X.indexOf(A)})}var _=function(){function X(B,x){x===void 0&&(x={}),this.rule=B,this.options=Object.assign({lossy:!1,safe:!1},x),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,f.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var j=$(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new r.default({source:j}),this.root.errorGenerator=this._errorGenerator();var K=new s.default({source:{start:{line:1,column:1}}});this.root.append(K),this.current=K,this.loop()}var A=X.prototype;return A._errorGenerator=function(){var x=this;return function(j,K){return typeof x.rule=="string"?new Error(j):x.rule.error(j,K)}},A.attribute=function(){var x=[],j=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[f.FIELDS.TYPE]!==v.closeSquare;)x.push(this.currToken),this.position++;if(this.currToken[f.FIELDS.TYPE]!==v.closeSquare)return this.expected("closing square bracket",this.currToken[f.FIELDS.START_POS]);var K=x.length,P={source:Q(j[1],j[2],this.currToken[3],this.currToken[4]),sourceIndex:j[f.FIELDS.START_POS]};if(K===1&&!~[v.word].indexOf(x[0][f.FIELDS.TYPE]))return this.expected("attribute",x[0][f.FIELDS.START_POS]);for(var ie=0,pe="",he="",le=null,ye=!1;ie<K;){var Fe=x[ie],de=this.content(Fe),Ee=x[ie+1];switch(Fe[f.FIELDS.TYPE]){case v.space:if(ye=!0,this.options.lossy)break;if(le){(0,M.ensureObject)(P,"spaces",le);var dt=P.spaces[le].after||"";P.spaces[le].after=dt+de;var tt=(0,M.getProp)(P,"raws","spaces",le,"after")||null;tt&&(P.raws.spaces[le].after=tt+de)}else pe=pe+de,he=he+de;break;case v.asterisk:if(Ee[f.FIELDS.TYPE]===v.equals)P.operator=de,le="operator";else if((!P.namespace||le==="namespace"&&!ye)&&Ee){pe&&((0,M.ensureObject)(P,"spaces","attribute"),P.spaces.attribute.before=pe,pe=""),he&&((0,M.ensureObject)(P,"raws","spaces","attribute"),P.raws.spaces.attribute.before=pe,he=""),P.namespace=(P.namespace||"")+de;var We=(0,M.getProp)(P,"raws","namespace")||null;We&&(P.raws.namespace+=de),le="namespace"}ye=!1;break;case v.dollar:if(le==="value"){var Ae=(0,M.getProp)(P,"raws","value");P.value+="$",Ae&&(P.raws.value=Ae+"$");break}case v.caret:Ee[f.FIELDS.TYPE]===v.equals&&(P.operator=de,le="operator"),ye=!1;break;case v.combinator:if(de==="~"&&Ee[f.FIELDS.TYPE]===v.equals&&(P.operator=de,le="operator"),de!=="|"){ye=!1;break}Ee[f.FIELDS.TYPE]===v.equals?(P.operator=de,le="operator"):!P.namespace&&!P.attribute&&(P.namespace=!0),ye=!1;break;case v.word:if(Ee&&this.content(Ee)==="|"&&x[ie+2]&&x[ie+2][f.FIELDS.TYPE]!==v.equals&&!P.operator&&!P.namespace)P.namespace=de,le="namespace";else if(!P.attribute||le==="attribute"&&!ye){pe&&((0,M.ensureObject)(P,"spaces","attribute"),P.spaces.attribute.before=pe,pe=""),he&&((0,M.ensureObject)(P,"raws","spaces","attribute"),P.raws.spaces.attribute.before=he,he=""),P.attribute=(P.attribute||"")+de;var je=(0,M.getProp)(P,"raws","attribute")||null;je&&(P.raws.attribute+=de),le="attribute"}else if(!P.value&&P.value!==""||le==="value"&&!ye){var Ye=(0,M.unesc)(de),Ue=(0,M.getProp)(P,"raws","value")||"",qe=P.value||"";P.value=qe+Ye,P.quoteMark=null,(Ye!==de||Ue)&&((0,M.ensureObject)(P,"raws"),P.raws.value=(Ue||qe)+de),le="value"}else{var Wt=de==="i"||de==="I";(P.value||P.value==="")&&(P.quoteMark||ye)?(P.insensitive=Wt,(!Wt||de==="I")&&((0,M.ensureObject)(P,"raws"),P.raws.insensitiveFlag=de),le="insensitive",pe&&((0,M.ensureObject)(P,"spaces","insensitive"),P.spaces.insensitive.before=pe,pe=""),he&&((0,M.ensureObject)(P,"raws","spaces","insensitive"),P.raws.spaces.insensitive.before=he,he="")):(P.value||P.value==="")&&(le="value",P.value+=de,P.raws.value&&(P.raws.value+=de))}ye=!1;break;case v.str:if(!P.attribute||!P.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:Fe[f.FIELDS.START_POS]});var Pt=(0,d.unescapeValue)(de),nr=Pt.unescaped,Yr=Pt.quoteMark;P.value=nr,P.quoteMark=Yr,le="value",(0,M.ensureObject)(P,"raws"),P.raws.value=de,ye=!1;break;case v.equals:if(!P.attribute)return this.expected("attribute",Fe[f.FIELDS.START_POS],de);if(P.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:Fe[f.FIELDS.START_POS]});P.operator=P.operator?P.operator+de:de,le="operator",ye=!1;break;case v.comment:if(le)if(ye||Ee&&Ee[f.FIELDS.TYPE]===v.space||le==="insensitive"){var Tt=(0,M.getProp)(P,"spaces",le,"after")||"",yr=(0,M.getProp)(P,"raws","spaces",le,"after")||Tt;(0,M.ensureObject)(P,"raws","spaces",le),P.raws.spaces[le].after=yr+de}else{var Is=P[le]||"",zs=(0,M.getProp)(P,"raws",le)||Is;(0,M.ensureObject)(P,"raws"),P.raws[le]=zs+de}else he=he+de;break;default:return this.error('Unexpected "'+de+'" found.',{index:Fe[f.FIELDS.START_POS]})}ie++}I(P,"attribute"),I(P,"namespace"),this.newNode(new d.default(P)),this.position++},A.parseWhitespaceEquivalentTokens=function(x){x<0&&(x=this.tokens.length);var j=this.position,K=[],P="",ie=void 0;do if(R[this.currToken[f.FIELDS.TYPE]])this.options.lossy||(P+=this.content());else if(this.currToken[f.FIELDS.TYPE]===v.comment){var pe={};P&&(pe.before=P,P=""),ie=new i.default({value:this.content(),source:F(this.currToken),sourceIndex:this.currToken[f.FIELDS.START_POS],spaces:pe}),K.push(ie)}while(++this.position<x);if(P){if(ie)ie.spaces.after=P;else if(!this.options.lossy){var he=this.tokens[j],le=this.tokens[this.position-1];K.push(new o.default({value:"",source:Q(he[f.FIELDS.START_LINE],he[f.FIELDS.START_COL],le[f.FIELDS.END_LINE],le[f.FIELDS.END_COL]),sourceIndex:he[f.FIELDS.START_POS],spaces:{before:P,after:""}}))}}return K},A.convertWhitespaceNodesToSpace=function(x,j){var K=this;j===void 0&&(j=!1);var P="",ie="";x.forEach(function(he){var le=K.lossySpace(he.spaces.before,j),ye=K.lossySpace(he.rawSpaceBefore,j);P+=le+K.lossySpace(he.spaces.after,j&&le.length===0),ie+=le+he.value+K.lossySpace(he.rawSpaceAfter,j&&ye.length===0)}),ie===P&&(ie=void 0);var pe={space:P,rawSpace:ie};return pe},A.isNamedCombinator=function(x){return x===void 0&&(x=this.position),this.tokens[x+0]&&this.tokens[x+0][f.FIELDS.TYPE]===v.slash&&this.tokens[x+1]&&this.tokens[x+1][f.FIELDS.TYPE]===v.word&&this.tokens[x+2]&&this.tokens[x+2][f.FIELDS.TYPE]===v.slash},A.namedCombinator=function(){if(this.isNamedCombinator()){var x=this.content(this.tokens[this.position+1]),j=(0,M.unesc)(x).toLowerCase(),K={};j!==x&&(K.value="/"+x+"/");var P=new m.default({value:"/"+j+"/",source:Q(this.currToken[f.FIELDS.START_LINE],this.currToken[f.FIELDS.START_COL],this.tokens[this.position+2][f.FIELDS.END_LINE],this.tokens[this.position+2][f.FIELDS.END_COL]),sourceIndex:this.currToken[f.FIELDS.START_POS],raws:K});return this.position=this.position+3,P}else this.unexpected()},A.combinator=function(){var x=this;if(this.content()==="|")return this.namespace();var j=this.locateNextMeaningfulToken(this.position);if(j<0||this.tokens[j][f.FIELDS.TYPE]===v.comma){var K=this.parseWhitespaceEquivalentTokens(j);if(K.length>0){var P=this.current.last;if(P){var ie=this.convertWhitespaceNodesToSpace(K),pe=ie.space,he=ie.rawSpace;he!==void 0&&(P.rawSpaceAfter+=he),P.spaces.after+=pe}else K.forEach(function(Ue){return x.newNode(Ue)})}return}var le=this.currToken,ye=void 0;j>this.position&&(ye=this.parseWhitespaceEquivalentTokens(j));var Fe;if(this.isNamedCombinator()?Fe=this.namedCombinator():this.currToken[f.FIELDS.TYPE]===v.combinator?(Fe=new m.default({value:this.content(),source:F(this.currToken),sourceIndex:this.currToken[f.FIELDS.START_POS]}),this.position++):R[this.currToken[f.FIELDS.TYPE]]||ye||this.unexpected(),Fe){if(ye){var de=this.convertWhitespaceNodesToSpace(ye),Ee=de.space,dt=de.rawSpace;Fe.spaces.before=Ee,Fe.rawSpaceBefore=dt}}else{var tt=this.convertWhitespaceNodesToSpace(ye,!0),We=tt.space,Ae=tt.rawSpace;Ae||(Ae=We);var je={},Ye={spaces:{}};We.endsWith(" ")&&Ae.endsWith(" ")?(je.before=We.slice(0,We.length-1),Ye.spaces.before=Ae.slice(0,Ae.length-1)):We.startsWith(" ")&&Ae.startsWith(" ")?(je.after=We.slice(1),Ye.spaces.after=Ae.slice(1)):Ye.value=Ae,Fe=new m.default({value:" ",source:$(le,this.tokens[this.position-1]),sourceIndex:le[f.FIELDS.START_POS],spaces:je,raws:Ye})}return this.currToken&&this.currToken[f.FIELDS.TYPE]===v.space&&(Fe.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(Fe)},A.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var x=new s.default({source:{start:O(this.tokens[this.position+1])}});this.current.parent.append(x),this.current=x,this.position++},A.comment=function(){var x=this.currToken;this.newNode(new i.default({value:this.content(),source:F(x),sourceIndex:x[f.FIELDS.START_POS]})),this.position++},A.error=function(x,j){throw this.root.error(x,j)},A.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[f.FIELDS.START_POS]})},A.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[f.FIELDS.START_POS])},A.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[f.FIELDS.START_POS])},A.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[f.FIELDS.START_POS])},A.namespace=function(){var x=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[f.FIELDS.TYPE]===v.word)return this.position++,this.word(x);if(this.nextToken[f.FIELDS.TYPE]===v.asterisk)return this.position++,this.universal(x)},A.nesting=function(){if(this.nextToken){var x=this.content(this.nextToken);if(x==="|"){this.position++;return}}var j=this.currToken;this.newNode(new b.default({value:this.content(),source:F(j),sourceIndex:j[f.FIELDS.START_POS]})),this.position++},A.parentheses=function(){var x=this.current.last,j=1;if(this.position++,x&&x.type===T.PSEUDO){var K=new s.default({source:{start:O(this.tokens[this.position-1])}}),P=this.current;for(x.append(K),this.current=K;this.position<this.tokens.length&&j;)this.currToken[f.FIELDS.TYPE]===v.openParenthesis&&j++,this.currToken[f.FIELDS.TYPE]===v.closeParenthesis&&j--,j?this.parse():(this.current.source.end=V(this.currToken),this.current.parent.source.end=V(this.currToken),this.position++);this.current=P}else{for(var ie=this.currToken,pe="(",he;this.position<this.tokens.length&&j;)this.currToken[f.FIELDS.TYPE]===v.openParenthesis&&j++,this.currToken[f.FIELDS.TYPE]===v.closeParenthesis&&j--,he=this.currToken,pe+=this.parseParenthesisToken(this.currToken),this.position++;x?x.appendToPropertyAndEscape("value",pe,pe):this.newNode(new o.default({value:pe,source:Q(ie[f.FIELDS.START_LINE],ie[f.FIELDS.START_COL],he[f.FIELDS.END_LINE],he[f.FIELDS.END_COL]),sourceIndex:ie[f.FIELDS.START_POS]}))}if(j)return this.expected("closing parenthesis",this.currToken[f.FIELDS.START_POS])},A.pseudo=function(){for(var x=this,j="",K=this.currToken;this.currToken&&this.currToken[f.FIELDS.TYPE]===v.colon;)j+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[f.FIELDS.TYPE]===v.word)this.splitWord(!1,function(P,ie){j+=P,x.newNode(new l.default({value:j,source:$(K,x.currToken),sourceIndex:K[f.FIELDS.START_POS]})),ie>1&&x.nextToken&&x.nextToken[f.FIELDS.TYPE]===v.openParenthesis&&x.error("Misplaced parenthesis.",{index:x.nextToken[f.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[f.FIELDS.START_POS])},A.space=function(){var x=this.content();this.position===0||this.prevToken[f.FIELDS.TYPE]===v.comma||this.prevToken[f.FIELDS.TYPE]===v.openParenthesis||this.current.nodes.every(function(j){return j.type==="comment"})?(this.spaces=this.optionalSpace(x),this.position++):this.position===this.tokens.length-1||this.nextToken[f.FIELDS.TYPE]===v.comma||this.nextToken[f.FIELDS.TYPE]===v.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(x),this.position++):this.combinator()},A.string=function(){var x=this.currToken;this.newNode(new o.default({value:this.content(),source:F(x),sourceIndex:x[f.FIELDS.START_POS]})),this.position++},A.universal=function(x){var j=this.nextToken;if(j&&this.content(j)==="|")return this.position++,this.namespace();var K=this.currToken;this.newNode(new h.default({value:this.content(),source:F(K),sourceIndex:K[f.FIELDS.START_POS]}),x),this.position++},A.splitWord=function(x,j){for(var K=this,P=this.nextToken,ie=this.content();P&&~[v.dollar,v.caret,v.equals,v.word].indexOf(P[f.FIELDS.TYPE]);){this.position++;var pe=this.content();if(ie+=pe,pe.lastIndexOf("\\")===pe.length-1){var he=this.nextToken;he&&he[f.FIELDS.TYPE]===v.space&&(ie+=this.requiredSpace(this.content(he)),this.position++)}P=this.nextToken}var le=W(ie,".").filter(function(Ee){var dt=ie[Ee-1]==="\\",tt=/^\d+\.\d+%$/.test(ie);return!dt&&!tt}),ye=W(ie,"#").filter(function(Ee){return ie[Ee-1]!=="\\"}),Fe=W(ie,"#{");Fe.length&&(ye=ye.filter(function(Ee){return!~Fe.indexOf(Ee)}));var de=(0,C.default)(ae([0].concat(le,ye)));de.forEach(function(Ee,dt){var tt=de[dt+1]||ie.length,We=ie.slice(Ee,tt);if(dt===0&&j)return j.call(K,We,de.length);var Ae,je=K.currToken,Ye=je[f.FIELDS.START_POS]+de[dt],Ue=Q(je[1],je[2]+Ee,je[3],je[2]+(tt-1));if(~le.indexOf(Ee)){var qe={value:We.slice(1),source:Ue,sourceIndex:Ye};Ae=new n.default(I(qe,"value"))}else if(~ye.indexOf(Ee)){var Wt={value:We.slice(1),source:Ue,sourceIndex:Ye};Ae=new a.default(I(Wt,"value"))}else{var Pt={value:We,source:Ue,sourceIndex:Ye};I(Pt,"value"),Ae=new c.default(Pt)}K.newNode(Ae,x),x=null}),this.position++},A.word=function(x){var j=this.nextToken;return j&&this.content(j)==="|"?(this.position++,this.namespace()):this.splitWord(x)},A.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},A.parse=function(x){switch(this.currToken[f.FIELDS.TYPE]){case v.space:this.space();break;case v.comment:this.comment();break;case v.openParenthesis:this.parentheses();break;case v.closeParenthesis:x&&this.missingParenthesis();break;case v.openSquare:this.attribute();break;case v.dollar:case v.caret:case v.equals:case v.word:this.word();break;case v.colon:this.pseudo();break;case v.comma:this.comma();break;case v.asterisk:this.universal();break;case v.ampersand:this.nesting();break;case v.slash:case v.combinator:this.combinator();break;case v.str:this.string();break;case v.closeSquare:this.missingSquareBracket();case v.semicolon:this.missingBackslash();default:this.unexpected()}},A.expected=function(x,j,K){if(Array.isArray(x)){var P=x.pop();x=x.join(", ")+" or "+P}var ie=/^[aeiou]/.test(x[0])?"an":"a";return K?this.error("Expected "+ie+" "+x+', found "'+K+'" instead.',{index:j}):this.error("Expected "+ie+" "+x+".",{index:j})},A.requiredSpace=function(x){return this.options.lossy?" ":x},A.optionalSpace=function(x){return this.options.lossy?"":x},A.lossySpace=function(x,j){return this.options.lossy?j?" ":"":x},A.parseParenthesisToken=function(x){var j=this.content(x);return x[f.FIELDS.TYPE]===v.space?this.requiredSpace(j):j},A.newNode=function(x,j){return j&&(/^ +$/.test(j)&&(this.options.lossy||(this.spaces=(this.spaces||"")+j),j=!0),x.namespace=j,I(x,"namespace")),this.spaces&&(x.spaces.before=this.spaces,this.spaces=""),this.current.append(x)},A.content=function(x){return x===void 0&&(x=this.currToken),this.css.slice(x[f.FIELDS.START_POS],x[f.FIELDS.END_POS])},A.locateNextMeaningfulToken=function(x){x===void 0&&(x=this.position+1);for(var j=x;j<this.tokens.length;)if(q[this.tokens[j][f.FIELDS.TYPE]]){j++;continue}else return j;return-1},w(X,[{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]}}]),X}();e.default=_,t.exports=e.default}(sn,sn.exports);var K0=sn.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(K0);function s(i){return i&&i.__esModule?i:{default:i}}var n=function(){function i(c,o){this.func=c||function(){},this.funcRes=null,this.options=o}var a=i.prototype;return a._shouldUpdateSelector=function(o,l){l===void 0&&(l={});var d=Object.assign({},this.options,l);return d.updateSelector===!1?!1:typeof o!="string"},a._isLossy=function(o){o===void 0&&(o={});var l=Object.assign({},this.options,o);return l.lossless===!1},a._root=function(o,l){l===void 0&&(l={});var d=new r.default(o,this._parseOptions(l));return d.root},a._parseOptions=function(o){return{lossy:this._isLossy(o)}},a._run=function(o,l){var d=this;return l===void 0&&(l={}),new Promise(function(h,m){try{var b=d._root(o,l);Promise.resolve(d.func(b)).then(function(C){var f=void 0;return d._shouldUpdateSelector(o,l)&&(f=b.toString(),o.selector=f),{transform:C,root:b,string:f}}).then(h,m)}catch(C){m(C);return}})},a._runSync=function(o,l){l===void 0&&(l={});var d=this._root(o,l),h=this.func(d);if(h&&typeof h.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var m=void 0;return l.updateSelector&&typeof o!="string"&&(m=d.toString(),o.selector=m),{transform:h,root:d,string:m}},a.ast=function(o,l){return this._run(o,l).then(function(d){return d.root})},a.astSync=function(o,l){return this._runSync(o,l).root},a.transform=function(o,l){return this._run(o,l).then(function(d){return d.transform})},a.transformSync=function(o,l){return this._runSync(o,l).transform},a.process=function(o,l){return this._run(o,l).then(function(d){return d.string||d.root.toString()})},a.processSync=function(o,l){var d=this._runSync(o,l);return d.string||d.root.toString()},i}();e.default=n,t.exports=e.default})(rn,rn.exports);var J0=rn.exports,Fa={},$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 e2=pt(Sn),t2=pt(Ma),r2=pt(Ia),s2=pt($a),n2=pt(Ea),i2=pt(za),a2=pt(Pa),o2=pt(ka),l2=pt(Ta),c2=pt(La),u2=pt(Da),d2=pt(Oa);function pt(t){return t&&t.__esModule?t:{default:t}}var h2=function(e){return new e2.default(e)};$e.attribute=h2;var f2=function(e){return new t2.default(e)};$e.className=f2;var p2=function(e){return new r2.default(e)};$e.combinator=p2;var m2=function(e){return new s2.default(e)};$e.comment=m2;var g2=function(e){return new n2.default(e)};$e.id=g2;var v2=function(e){return new i2.default(e)};$e.nesting=v2;var y2=function(e){return new a2.default(e)};$e.pseudo=y2;var _2=function(e){return new o2.default(e)};$e.root=_2;var b2=function(e){return new l2.default(e)};$e.selector=b2;var C2=function(e){return new c2.default(e)};$e.string=C2;var w2=function(e){return new u2.default(e)};$e.tag=w2;var x2=function(e){return new d2.default(e)};$e.universal=x2;var ke={};ke.__esModule=!0,ke.isNode=Dn,ke.isPseudoElement=Na,ke.isPseudoClass=I2,ke.isContainer=z2,ke.isNamespace=R2,ke.isUniversal=ke.isTag=ke.isString=ke.isSelector=ke.isRoot=ke.isPseudo=ke.isNesting=ke.isIdentifier=ke.isComment=ke.isCombinator=ke.isClassName=ke.isAttribute=void 0;var Oe=me,rt,S2=(rt={},rt[Oe.ATTRIBUTE]=!0,rt[Oe.CLASS]=!0,rt[Oe.COMBINATOR]=!0,rt[Oe.COMMENT]=!0,rt[Oe.ID]=!0,rt[Oe.NESTING]=!0,rt[Oe.PSEUDO]=!0,rt[Oe.ROOT]=!0,rt[Oe.SELECTOR]=!0,rt[Oe.STRING]=!0,rt[Oe.TAG]=!0,rt[Oe.UNIVERSAL]=!0,rt);function Dn(t){return typeof t=="object"&&S2[t.type]}function mt(t,e){return Dn(e)&&e.type===t}var Aa=mt.bind(null,Oe.ATTRIBUTE);ke.isAttribute=Aa;var k2=mt.bind(null,Oe.CLASS);ke.isClassName=k2;var T2=mt.bind(null,Oe.COMBINATOR);ke.isCombinator=T2;var M2=mt.bind(null,Oe.COMMENT);ke.isComment=M2;var $2=mt.bind(null,Oe.ID);ke.isIdentifier=$2;var E2=mt.bind(null,Oe.NESTING);ke.isNesting=E2;var Ln=mt.bind(null,Oe.PSEUDO);ke.isPseudo=Ln;var D2=mt.bind(null,Oe.ROOT);ke.isRoot=D2;var L2=mt.bind(null,Oe.SELECTOR);ke.isSelector=L2;var P2=mt.bind(null,Oe.STRING);ke.isString=P2;var Ha=mt.bind(null,Oe.TAG);ke.isTag=Ha;var O2=mt.bind(null,Oe.UNIVERSAL);ke.isUniversal=O2;function Na(t){return Ln(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 I2(t){return Ln(t)&&!Na(t)}function z2(t){return!!(Dn(t)&&t.walk)}function R2(t){return Aa(t)||Ha(t)}(function(t){t.__esModule=!0;var e=me;Object.keys(e).forEach(function(n){n==="default"||n==="__esModule"||n in t&&t[n]===e[n]||(t[n]=e[n])});var r=$e;Object.keys(r).forEach(function(n){n==="default"||n==="__esModule"||n in t&&t[n]===r[n]||(t[n]=r[n])});var s=ke;Object.keys(s).forEach(function(n){n==="default"||n==="__esModule"||n in t&&t[n]===s[n]||(t[n]=s[n])})})(Fa),function(t,e){e.__esModule=!0,e.default=void 0;var r=a(J0),s=i(Fa);function n(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return n=function(){return l},l}function i(l){if(l&&l.__esModule)return l;if(l===null||typeof l!="object"&&typeof l!="function")return{default:l};var d=n();if(d&&d.has(l))return d.get(l);var h={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in l)if(Object.prototype.hasOwnProperty.call(l,b)){var C=m?Object.getOwnPropertyDescriptor(l,b):null;C&&(C.get||C.set)?Object.defineProperty(h,b,C):h[b]=l[b]}return h.default=l,d&&d.set(l,h),h}function a(l){return l&&l.__esModule?l:{default:l}}var c=function(d){return new r.default(d)};Object.assign(c,s),delete c.__esModule;var o=c;e.default=o,t.exports=e.default}(tn,tn.exports);var B2=tn.exports;const F2=q1,Wa=B2,A2=Wa();var H2={isUsableColor(t,e){return F2(e)&&t!=="gray"&&e[600]},commonTrailingPseudos(t){let e=A2.astSync(t),r=[];for(let[n,i]of e.nodes.entries())for(const[a,c]of[...i.nodes].reverse().entries()){if(c.type!=="pseudo"||!c.value.startsWith("::"))break;r[a]=r[a]||[],r[a][n]=c}let s=Wa.selector();for(const n of r){if(!n)continue;if(new Set([...n.map(a=>a.value)]).size>1)break;n.forEach(a=>a.remove()),s.prepend(n[0])}return s.nodes.length?[s.toString(),e.toString()]:[null,t]}};const N2=Ca,W2=P1,Y2=z1,j2=R1,{commonTrailingPseudos:U2}=H2,Ya={};function Pn(t,{className:e,modifier:r,prefix:s}){let n=s(`.not-${e}`).slice(1),i=t.startsWith(">")?`${r==="DEFAULT"?`.${e}`:`.${e}-${r}`} `:"",[a,c]=U2(t);return a?`:where(${i}${c}):not(:where([class~="${n}"],[class~="${n}"] *))${a}`:`:where(${i}${t}):not(:where([class~="${n}"],[class~="${n}"] *))`}function ja(t){return typeof t=="object"&&t!==null}function G2(t={},{target:e,className:r,modifier:s,prefix:n}){function i(a,c){return e==="legacy"?[a,c]:Array.isArray(c)?[a,c]:ja(c)?Object.values(c).some(ja)?[Pn(a,{className:r,modifier:s,prefix:n}),c,Object.fromEntries(Object.entries(c).map(([l,d])=>i(l,d)))]:[Pn(a,{className:r,modifier:s,prefix:n}),c]:[a,c]}return Object.fromEntries(Object.entries(W2({},...Object.keys(t).filter(a=>Ya[a]).map(a=>Ya[a](t[a])),...Y2(t.css||{}))).map(([a,c])=>i(a,c)))}var Ua=N2.withOptions(({className:t="prose",target:e="modern"}={})=>function({addVariant:r,addComponents:s,theme:n,prefix:i}){let a=n("typography"),c={className:t,prefix:i};for(let[o,...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?[o]:l;let d=e==="legacy"?l.map(h=>`& ${h}`):l.join(", ");r(`${t}-${o}`,e==="legacy"?d:`& :is(${Pn(d,c)})`)}s(Object.keys(a).map(o=>({[o==="DEFAULT"?`.${t}`:`.${t}-${o}`]:G2(a[o],{target:e,className:t,modifier:o,prefix:i})})))},()=>({theme:{typography:j2}}));const Ga=xr(Ua),q2=Ns({__proto__:null,default:Ga},[Ua]);var qa={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});const e=s=>Object.assign({},...Object.entries(s!=null?s:{}).flatMap(([n,i])=>typeof i=="object"?Object.entries(e(i)).map(([a,c])=>({[n+(a==="DEFAULT"?"":`-${a}`)]:c})):[{[`${n}`]:i}])),r=e})(qa);var Z2={importDefault:t=>t&&t.__esModule?t.default:t};const X2=qa,{importDefault:V2}=Z2,Q2=V2(X2),On=["track","thumb","corner"],es=(t,e)=>e?{"@supports (-moz-appearance:none)":t}:t,K2=({addBase:t},e)=>{t({"*":es({"scrollbar-color":"initial","scrollbar-width":"initial"},e==="pseudoelements")})},Za=()=>({...Object.fromEntries(On.map(t=>[[`&::-webkit-scrollbar-${t}`,{"background-color":`var(--scrollbar-${t})`,"border-radius":`var(--scrollbar-${t}-radius)`}]]).flat())}),J2=({preferPseudoElements:t})=>({".scrollbar":{...Za(),...es({"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":{...Za(),...es({"scrollbar-width":"thin","scrollbar-color":"var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)"},t),"&::-webkit-scrollbar":{display:"block",width:"8px",height:"8px"}},".scrollbar-none":{...es({"scrollbar-width":"none"},t),"&::-webkit-scrollbar":{display:"none"}}}),Xa=t=>typeof t=="function"?t({}):t;var ec={addBaseStyles:K2,addBaseSizeUtilities:({addUtilities:t},e)=>{t(J2({preferPseudoElements:e==="pseudoelements"}))},addColorUtilities:({matchUtilities:t,theme:e})=>{const r=Q2(e("colors")),s=Object.fromEntries(Object.entries(r).map(([n,i])=>[n,Xa(i)]));On.forEach(n=>{t({[`scrollbar-${n}`]:i=>({[`--scrollbar-${n}`]:Xa(i)})},{values:s,type:"color"})})},addRoundedUtilities:({theme:t,matchUtilities:e})=>{On.forEach(r=>{e({[`scrollbar-${r}-rounded`]:s=>({[`--scrollbar-${r}-radius`]:s})},{values:t("borderRadius")})})},addSizeUtilities:({matchUtilities:t,theme:e})=>{["width","height"].forEach(r=>{t({[`scrollbar-${r[0]}`]:s=>({[`--scrollbar-${r}`]:s})},{values:e(r)})})}},tc={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 rc=Ca,{addBaseStyles:sc,addBaseSizeUtilities:nc,addColorUtilities:ic,addRoundedUtilities:ac,addSizeUtilities:oc}=ec,{addVariants:lc}=tc;var Va=rc.withOptions((t={})=>e=>{var s;let r=(s=t.preferredStrategy)!=null?s:"standard";r!=="standard"&&r!=="pseudoelements"&&(console.warn("WARNING: tailwind-scrollbar preferredStrategy should be 'standard' or 'pseudoelements'"),r="standard"),sc(e,r),nc(e,r),ic(e),lc(e),t.nocompatible&&(ac(e),oc(e))});const Qa=xr(Va),cc=Ns({__proto__:null,default:Qa},[Va]);var ts={exports:{}};const Sr=ya||L1,uc={50:"#FCE3E4",100:"#F9CDCE",200:"#F39699",300:"#ED6368",400:"#E72C32",500:"#C4161C",600:"#9C1216",700:"#770D11",800:"#4E090B",900:"#290506"},Ze={warning:Sr.amber,error:Sr.red,info:Sr.slate,success:Sr.emerald,primary:Sr.blue,brand:uc},dc={...Ze,warning:Ze.warning[500],"warning-darken":Ze.warning[600],"warning-lighten":Ze.warning[400],success:Ze.success[500],"success-darken":Ze.success[600],"success-lighten":Ze.success[400],error:Ze.error[500],"error-darken":Ze.error[600],"error-lighten":Ze.error[400],info:Ze.info[500],"info-darken":Ze.info[600],"info-lighten":Ze.info[400],primary:Ze.primary[500],"primary-darken":Ze.primary[600],"primary-lighten":Ze.primary[400]},hc={prefix:"e-",dark:"class",corePlugins:{preflight:!1},content:["./src/**/*.{html,js,vue,ts}"],theme:{extend:{ringWidth:{1:"1px"},colors:dc,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:[Ga||q2,Qa||cc({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)-./}]};ts.exports=hc;const fc=(ts.exports==null?{}:ts.exports).default||ts.exports,In=D1(fc),Ka=In.theme.fontSize,Ja=In.theme.colors,pc=[U.Dot,U.Xs,U.Sm,U.Md,U.Lg,U.Xl],mc=[U.Xs,U.Sm,U.Md,U.Lg,U.Xl,U.TwoXl],eo=[U.Xs,U.Sm,U.Md,U.Base,U.Lg,U.Xl,U.TwoXl,U.ThreeXl,U.FourXl,U.FiveXl,U.SixXl,U.SevenXl,U.EightXl,U.NineXl],gc=[U.Sm,U.Md,U.Lg],vc=[ce.Warning,ce.Error,ce.Info,ce.Success,ce.Primary,ce.Default],yc=[ce.Warning,ce.Error,ce.Info,ce.Success,ce.Primary,ce.Default],_c=[Je.Top,Je.Bottom,Je.Right,Je.Left],bc=["play","pause","ended","loadeddata","waiting","playing","timeupdate","canplay","canplaythrough","statechanged"],to=[{label:"Volume",keys:["↑","↓"]},{label:"Seek",keys:["←","→"]},{label:"Play/Pause",keys:["Space","K"]},{label:"Fullscreen",keys:["F"]},{label:"Exit fullscreen",keys:["Esc"]}],kr=[Ge.PlaybackRate,Ge.SeekStep,Ge.LoopEnabled,Ge.MutedOnStart,Ge.AutoplayEnabled,Ge.Shortcuts,Ge.Reset],ro={[Ge.PlaybackRate]:"Playback speed",[Ge.SeekStep]:"Seek step",[Ge.LoopEnabled]:"Loop",[Ge.MutedOnStart]:"Mute on start",[Ge.AutoplayEnabled]:"Autoplay",[Ge.Shortcuts]:"Shortcuts",[Ge.Reset]:"Reset preferences"},zn=["play","pause","ended","loadeddata","waiting","playing","timeupdate","canplay","canplaythrough","error"],rs="e-video-player-settings-prefs",Kt={none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",full:"9999px"},Cc=E.extend({name:"BaseIcon",props:{name:{type:String,default:"box"},color:{type:String,default:"#3c3c3c"},fill:{type:String,default:null},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 wc=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("svg",e._g(e._b({staticClass:"svg-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:e.viewBox,width:e.size||e.width,height:e.size||e.height,"aria-labelledby":e.name,role:"presentation"}},"svg",e.$attrs,!1),e.$listeners),[r("g",{ref:"group",attrs:{fill:e.fill||e.color}},[e._t("default",null,{color:e.color})],2)])},xc=[],Sc=z(Cc,wc,xc,!1,null,null,null,null);const fe=Sc.exports,kc=E.extend({name:"Bim",components:{BaseIcon:fe},props:{color:{type:String,default:"white"}}});var Tc=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
1
+ (function(H,E){typeof exports=="object"&&typeof module!="undefined"?E(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"],E):(H=typeof globalThis!="undefined"?globalThis:H||self,E(H.EvercamUI={},H.Vue,H.Hls,H.d3,H.moment,H.remarkGfm,H.remarkParse,H.remarkRehype,H.remarkBreaks,H.rehypeStringify,H.unistUtilVisit,H.unified,H.morphdom))})(this,function(H,E,lr,u1,Be,d1,h1,f1,p1,m1,g1,v1,y1){var Wl,Yl,jl,Ul,Gl,ql,Zl,Xl;"use strict";function _1(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,s.get?s:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}function Ns(t,e){for(var r=0;r<e.length;r++){const s=e[r];if(typeof s!="string"&&!Array.isArray(s)){for(const n in s)if(n!=="default"&&!(n in t)){const i=Object.getOwnPropertyDescriptor(s,n);i&&Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>s[n]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const x=_1(u1);var Cr=(t=>(t.Continuous="continuous",t.WorkingHours="workingHours",t.Empty="empty",t.Custom="custom",t))(Cr||{}),Ji=(t=>(t.Monday="monday",t.Tuesday="tuesday",t.Wednesday="wednesday",t.Thursday="thursday",t.Friday="friday",t.Saturday="saturday",t.Sunday="sunday",t))(Ji||{}),U=(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))(U||{}),ce=(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))(ce||{}),jt=(t=>(t.Overview="overview",t.Detailed="detailed",t.DetailedBackground="detailedBackground",t))(jt||{}),ft=(t=>(t.Bars="bars",t.Dots="dots",t.LineGraph="lineGraph",t.BarChart="barGraph",t.Milestones="milestones",t))(ft||{}),wr=(t=>(t.Zoom="zoom",t.AutoPan="autoPan",t.Initial="initial",t))(wr||{}),ea=(t=>(t.ThreeSixty="360",t.FourEighty="480",t.SevenTwenty="720",t.OneZeroEightZero="1080",t.Auto="auto",t))(ea||{}),Je=(t=>(t.Top="top",t.Right="right",t.Bottom="bottom",t.Left="left",t))(Je||{}),it=(t=>(t.System="system",t.Copilot="copilot",t.User="user",t))(it||{}),qr=(t=>(t.Text="text",t.Error="error",t.Json="json",t))(qr||{}),Ws=(t=>(t.Positive="positive",t.Negative="negative",t))(Ws||{}),Ut=(t=>(t.Window="window",t.Curtain="curtain",t.Transparency="transparency",t))(Ut||{}),at=(t=>(t.Turbo="turbo",t.Inferno="inferno",t.Magma="magma",t.Plasma="plasma",t.Viridis="viridis",t.Cividis="cividis",t.Warm="warm",t.Cool="cool",t.CubeHelix="cubehelix",t))(at||{}),Ge=(t=>(t.PlaybackRate="playbackRate",t.SeekStep="seekStep",t.LoopEnabled="loopEnabled",t.MutedOnStart="mutedOnStart",t.AutoplayEnabled="autoplayEnabled",t.Shortcuts="shortcuts",t.Reset="reset",t))(Ge||{});const b1=E.extend({name:"EBadge",props:{text:{type:String,default:""},color:{type:String,default:ce.Default},size:{type:String,default:U.Base}},data(){return{colors:{[ce.Error]:"e-bg-rose-500 e-text-white",[ce.Info]:"e-bg-cyan-500 e-text-white",[ce.Warning]:"e-bg-amber-500 e-text-white",[ce.Primary]:"e-bg-sky-500 e-text-white",[ce.Default]:"e-bg-slate-300 e-text-white",[ce.Success]:"e-bg-lime-500 e-text-white"},sizes:{[U.Dot]:"e-w-2 e-h-2",[U.Xs]:"e-w-3 e-h-3",[U.Sm]:"e-w-4 e-h-4",[U.Md]:"e-w-5 e-h-5",[U.Lg]:"e-min-w-[2rem] e-max-w-[4rem] e-px-1 e-h-6 e-text-sm e-font-medium",[U.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[ce.Default],e=this.sizes[this.size]||this.sizes[U.Md];return["e-flex e-items-center e-justify-center e-rounded-full",t,e]},showText(){return[U.Lg,U.Xl].includes(this.size)}}});function z(t,e,r,s,n,i,a,c){var o=typeof t=="function"?t.options:t;e&&(o.render=e,o.staticRenderFns=r,o._compiled=!0),s&&(o.functional=!0),i&&(o._scopeId="data-v-"+i);var l;if(a?(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__),n&&n.call(this,m),m&&m._registeredComponents&&m._registeredComponents.add(a)},o._ssrRegister=l):n&&(l=c?function(){n.call(this,(o.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(o.functional){o._injectStyles=l;var d=o.render;o.render=function(b,C){return l.call(C),d(b,C)}}else{var h=o.beforeCreate;o.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:o}}var C1=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()])},w1=[],x1=z(b1,C1,w1,!1,null,null,null,null);const Ys=x1.exports,S1=E.extend({name:"EAvatar",components:{Badge:Ys},props:{size:{type:String,default:U.Md},showBadge:{type:Boolean,default:!1},badgeColor:{type:String,default:ce.Error},badgeText:{type:String,default:""},badgeSize:{type:String,default:U.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:{[U.TwoXs]:"e-w-6 e-h-6 e-text-xs",[U.Xs]:"e-w-8 e-h-8 e-text-xs",[U.Sm]:"e-w-10 e-h-10 e-text-sm",[U.Md]:"e-w-14 e-h-14 e-text-base",[U.Lg]:"e-w-20 e-h-20 e-text-2xl",[U.Xl]:"e-w-28 e-h-28 e-text-3xl",[U.TwoXl]:"e-w-36 e-h-36 e-text-5xl"}}},computed:{avatarClasses(){const t=this.sizes[this.size]||this.sizes[U.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 k1=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)},T1=[],M1=z(S1,k1,T1,!1,null,null,null,null);const Zr=M1.exports;var Qt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function xr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ta={},ra={},js={};(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(/^[+-]?/,n=>n==="-"?"":"-");let s=["var","calc","min","max","clamp"];for(const n of s)if(r.includes(`${n}(`))return`calc(${r} * -1)`}})(js);var sa={};(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"]})(sa);var na={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r,s){return r===void 0?s:Array.isArray(r)?r:[...new Set(s.filter(i=>r!==!1&&r[i]!==!1).concat(Object.keys(r).filter(i=>r[i]!==!1)))]}})(na);var Us={},Xr={},Gs={exports:{}},De=String,ia=function(){return{isColorSupported:!1,reset:De,bold:De,dim:De,italic:De,underline:De,inverse:De,hidden:De,strikethrough:De,black:De,red:De,green:De,yellow:De,blue:De,magenta:De,cyan:De,white:De,gray:De,bgBlack:De,bgRed:De,bgGreen:De,bgYellow:De,bgBlue:De,bgMagenta:De,bgCyan:De,bgWhite:De}};Gs.exports=ia(),Gs.exports.createColors=ia;var aa=Gs.exports;(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,l){for(var d in l)Object.defineProperty(o,d,{enumerable:!0,get:l[d]})}e(t,{dim:function(){return a},default:function(){return c}});const r=s(aa);function s(o){return o&&o.__esModule?o:{default:o}}let n=new Set;function i(o,l,d){typeof process!="undefined"&&process.env.JEST_WORKER_ID||d&&n.has(d)||(d&&n.add(d),console.warn(""),l.forEach(h=>console.warn(o,"-",h)))}function a(o){return r.default.dim(o)}const c={info(o,l){i(r.default.bold(r.default.cyan("info")),...Array.isArray(o)?[o]:[l,o])},warn(o,l){i(r.default.bold(r.default.yellow("warn")),...Array.isArray(o)?[o]:[l,o])},risk(o,l){i(r.default.bold(r.default.magenta("risk")),...Array.isArray(o)?[o]:[l,o])}}})(Xr),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});const e=r(Xr);function r(i){return i&&i.__esModule?i:{default:i}}function s({version:i,from:a,to:c}){e.default.warn(`${a}-color-renamed`,[`As of Tailwind CSS ${i}, \`${a}\` has been renamed to \`${c}\`.`,"Update your configuration file to silence this warning."])}const n={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 s({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return s({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return s({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return s({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return s({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}(Us);var oa={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"defaults",{enumerable:!0,get:function(){return e}});function e(r,...s){for(let a of s){for(let c in a){var n;!(r==null||(n=r.hasOwnProperty)===null||n===void 0)&&n.call(r,c)||(r[c]=a[c])}for(let c of Object.getOwnPropertySymbols(a)){var i;!(r==null||(i=r.hasOwnProperty)===null||i===void 0)&&i.call(r,c)||(r[c]=a[c])}}return r}})(oa);var la={};(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 s=r.split("[").length-1,n=r.split("]").length-1;if(s!==n)throw new Error(`Path is invalid. Has unbalanced brackets: ${r}`);return r.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}})(la);var ca={},Vr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(h,m){for(var b in m)Object.defineProperty(h,b,{enumerable:!0,get:m[b]})}e(t,{flagEnabled:function(){return c},issueFlagNotices:function(){return l},default:function(){return d}});const r=n(aa),s=n(Xr);function n(h){return h&&h.__esModule?h:{default:h}}let i={optimizeUniversalDefaults:!1,generalizedModifiers:!0,disableColorOpacityUtilitiesByDefault:!1,relativeContentPathsByDefault:!1},a={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity","disableColorOpacityUtilitiesByDefault","relativeContentPathsByDefault"],experimental:["optimizeUniversalDefaults","generalizedModifiers"]};function c(h,m){if(a.future.includes(m)){var b,C,f;return h.future==="all"||((f=(C=h==null||(b=h.future)===null||b===void 0?void 0:b[m])!==null&&C!==void 0?C:i[m])!==null&&f!==void 0?f:!1)}if(a.experimental.includes(m)){var v,T,M;return h.experimental==="all"||((M=(T=h==null||(v=h.experimental)===null||v===void 0?void 0:v[m])!==null&&T!==void 0?T:i[m])!==null&&M!==void 0?M:!1)}return!1}function o(h){if(h.experimental==="all")return a.experimental;var m;return Object.keys((m=h==null?void 0:h.experimental)!==null&&m!==void 0?m:{}).filter(b=>a.experimental.includes(b)&&h.experimental[b])}function l(h){if(process.env.JEST_WORKER_ID===void 0&&o(h).length>0){let m=o(h).map(b=>r.default.yellow(b)).join(", ");s.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=a})(Vr),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeConfig",{enumerable:!0,get:function(){return i}});const e=Vr,r=n(Xr);function s(a){if(typeof WeakMap!="function")return null;var c=new WeakMap,o=new WeakMap;return(s=function(l){return l?o:c})(a)}function n(a,c){if(!c&&a&&a.__esModule)return a;if(a===null||typeof a!="object"&&typeof a!="function")return{default:a};var o=s(c);if(o&&o.has(a))return o.get(a);var l={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in a)if(h!=="default"&&Object.prototype.hasOwnProperty.call(a,h)){var m=d?Object.getOwnPropertyDescriptor(a,h):null;m&&(m.get||m.set)?Object.defineProperty(l,h,m):l[h]=a[h]}return l.default=a,o&&o.set(a,l),l}function i(a){if((()=>{if(a.purge||!a.content||!Array.isArray(a.content)&&!(typeof a.content=="object"&&a.content!==null))return!1;if(Array.isArray(a.content))return a.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 a.content=="object"&&a.content!==null){if(Object.keys(a.content).some(l=>!["files","relative","extract","transform"].includes(l)))return!1;if(Array.isArray(a.content.files)){if(!a.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 a.content.extract=="object"){for(let l of Object.values(a.content.extract))if(typeof l!="function")return!1}else if(!(a.content.extract===void 0||typeof a.content.extract=="function"))return!1;if(typeof a.content.transform=="object"){for(let l of Object.values(a.content.transform))if(typeof l!="function")return!1}else if(!(a.content.transform===void 0||typeof a.content.transform=="function"))return!1;if(typeof a.content.relative!="boolean"&&typeof a.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"]),a.safelist=(()=>{var l;let{content:d,purge:h,safelist:m}=a;return Array.isArray(m)?m:Array.isArray(d==null?void 0:d.safelist)?d.safelist:Array.isArray(h==null?void 0:h.safelist)?h.safelist:Array.isArray(h==null||(l=h.options)===null||l===void 0?void 0:l.safelist)?h.options.safelist:[]})(),a.blocklist=(()=>{let{blocklist:l}=a;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 a.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"]),a.prefix="";else{var o;a.prefix=(o=a.prefix)!==null&&o!==void 0?o:""}a.content={relative:(()=>{let{content:l}=a;return l!=null&&l.relative?l.relative:(0,e.flagEnabled)(a,"relativeContentPathsByDefault")})(),files:(()=>{let{content:l,purge:d}=a;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,C,f,v,T,M,k,N,L;return!((m=a.purge)===null||m===void 0)&&m.extract?a.purge.extract:!((b=a.content)===null||b===void 0)&&b.extract?a.content.extract:!((C=a.purge)===null||C===void 0||(f=C.extract)===null||f===void 0)&&f.DEFAULT?a.purge.extract.DEFAULT:!((v=a.content)===null||v===void 0||(T=v.extract)===null||T===void 0)&&T.DEFAULT?a.content.extract.DEFAULT:!((M=a.purge)===null||M===void 0||(k=M.options)===null||k===void 0)&&k.extractors?a.purge.options.extractors:!((N=a.content)===null||N===void 0||(L=N.options)===null||L===void 0)&&L.extractors?a.content.options.extractors:{}})(),d={},h=(()=>{var m,b,C,f;if(!((m=a.purge)===null||m===void 0||(b=m.options)===null||b===void 0)&&b.defaultExtractor)return a.purge.options.defaultExtractor;if(!((C=a.content)===null||C===void 0||(f=C.options)===null||f===void 0)&&f.defaultExtractor)return a.content.options.defaultExtractor})();if(h!==void 0&&(d.DEFAULT=h),typeof l=="function")d.DEFAULT=l;else if(Array.isArray(l))for(let{extensions:m,extractor:b}of l!=null?l:[])for(let C of m)d[C]=b;else typeof l=="object"&&l!==null&&Object.assign(d,l);return d})(),transform:(()=>{let l=(()=>{var h,m,b,C,f,v;return!((h=a.purge)===null||h===void 0)&&h.transform?a.purge.transform:!((m=a.content)===null||m===void 0)&&m.transform?a.content.transform:!((b=a.purge)===null||b===void 0||(C=b.transform)===null||C===void 0)&&C.DEFAULT?a.purge.transform.DEFAULT:!((f=a.content)===null||f===void 0||(v=f.transform)===null||v===void 0)&&v.DEFAULT?a.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 a.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 a}}(ca);var ua={};(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 s=Object.getPrototypeOf(r);return s===null||Object.getPrototypeOf(s)===null}})(ua);var da={};(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(s=>e(s)):typeof r=="object"&&r!==null?Object.fromEntries(Object.entries(r).map(([s,n])=>[s,e(n)])):r}})(da);var ha={},fa={};(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 ")}})(fa);var qs={},Zs={},pa={};(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]}})(pa),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(C,f){for(var v in f)Object.defineProperty(C,v,{enumerable:!0,get:f[v]})}e(t,{parseColor:function(){return m},formatColor:function(){return b}});const r=s(pa);function s(C){return C&&C.__esModule?C:{default:C}}let n=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,i=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,a=/(?:\d+|\d*\.\d+)%?/,c=/(?:\s*,\s*|\s+)/,o=/\s*[,/]\s*/,l=/var\(--(?:[^ )]*?)(?:,(?:[^ )]*?|var\(--[^ )]*?\)))?\)/,d=new RegExp(`^(rgba?)\\(\\s*(${a.source}|${l.source})(?:${c.source}(${a.source}|${l.source}))?(?:${c.source}(${a.source}|${l.source}))?(?:${o.source}(${a.source}|${l.source}))?\\s*\\)$`),h=new RegExp(`^(hsla?)\\(\\s*((?:${a.source})(?:deg|rad|grad|turn)?|${l.source})(?:${c.source}(${a.source}|${l.source}))?(?:${c.source}(${a.source}|${l.source}))?(?:${o.source}(${a.source}|${l.source}))?\\s*\\)$`);function m(C,{loose:f=!1}={}){var v,T;if(typeof C!="string")return null;if(C=C.trim(),C==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(C in r.default)return{mode:"rgb",color:r.default[C].map(Y=>Y.toString())};let M=C.replace(i,(Y,ee,Z,w,R)=>["#",ee,ee,Z,Z,w,w,R?R+R:""].join("")).match(n);if(M!==null)return{mode:"rgb",color:[parseInt(M[1],16),parseInt(M[2],16),parseInt(M[3],16)].map(Y=>Y.toString()),alpha:M[4]?(parseInt(M[4],16)/255).toString():void 0};var k;let N=(k=C.match(d))!==null&&k!==void 0?k:C.match(h);if(N===null)return null;let L=[N[2],N[3],N[4]].filter(Boolean).map(Y=>Y.toString());return L.length===2&&L[0].startsWith("var(")?{mode:N[1],color:[L[0]],alpha:L[1]}:!f&&L.length!==3||L.length<3&&!L.some(Y=>/^var\(.*?\)$/.test(Y))?null:{mode:N[1],color:L,alpha:(v=N[5])===null||v===void 0||(T=v.toString)===null||T===void 0?void 0:T.call(v)}}function b({mode:C,color:f,alpha:v}){let T=v!==void 0;return C==="rgba"||C==="hsla"?`${C}(${f.join(", ")}${T?`, ${v}`:""})`:`${C}(${f.join(" ")}${T?` / ${v}`:""})`}}(Zs),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(i,a){for(var c in a)Object.defineProperty(i,c,{enumerable:!0,get:a[c]})}e(t,{withAlphaValue:function(){return s},default:function(){return n}});const r=Zs;function s(i,a,c){if(typeof i=="function")return i({opacityValue:a});let o=(0,r.parseColor)(i,{loose:!0});return o===null?c:(0,r.formatColor)({...o,alpha:a})}function n({color:i,property:a,variable:c}){let o=[].concat(a);if(typeof i=="function")return{[c]:"1",...Object.fromEntries(o.map(d=>[d,i({opacityVariable:c,opacityValue:`var(${c})`})]))};const l=(0,r.parseColor)(i);return l===null?Object.fromEntries(o.map(d=>[d,i])):l.alpha!==void 0?Object.fromEntries(o.map(d=>[d,i])):{[c]:"1",...Object.fromEntries(o.map(d=>[d,(0,r.formatColor)({...l,alpha:`var(${c})`})]))}}}(qs);var Xs={},ma={},Qr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"splitAtTopLevelOnly",{enumerable:!0,get:function(){return e}});function e(r,s){let n=[],i=[],a=0,c=!1;for(let o=0;o<r.length;o++){let l=r[o];n.length===0&&l===s[0]&&!c&&(s.length===1||r.slice(o,o+s.length)===s)&&(i.push(r.slice(a,o)),a=o+s.length),c=c?!1:l==="\\",l==="("||l==="["||l==="{"?n.push(l):(l===")"&&n[n.length-1]==="("||l==="]"&&n[n.length-1]==="["||l==="}"&&n[n.length-1]==="{")&&n.pop()}return i.push(r.slice(a)),i}})(Qr),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,l){for(var d in l)Object.defineProperty(o,d,{enumerable:!0,get:l[d]})}e(t,{parseBoxShadowValue:function(){return a},formatBoxShadowValue:function(){return c}});const r=Qr;let s=new Set(["inset","inherit","initial","revert","unset"]),n=/\ +(?![^(]*\))/g,i=/^-?(\d+|\.\d+)(.*?)$/g;function a(o){return(0,r.splitAtTopLevelOnly)(o,",").map(d=>{let h=d.trim(),m={raw:h},b=h.split(n),C=new Set;for(let f of b)i.lastIndex=0,!C.has("KEYWORD")&&s.has(f)?(m.keyword=f,C.add("KEYWORD")):i.test(f)?C.has("X")?C.has("Y")?C.has("BLUR")?C.has("SPREAD")||(m.spread=f,C.add("SPREAD")):(m.blur=f,C.add("BLUR")):(m.y=f,C.add("Y")):(m.x=f,C.add("X")):m.color?(m.unknown||(m.unknown=[]),m.unknown.push(f)):m.color=f;return m.valid=m.x!==void 0&&m.y!==void 0,m})}function c(o){return o.map(l=>l.valid?[l.keyword,l.x,l.y,l.blur,l.spread,l.color].filter(Boolean).join(" "):l.raw).join(", ")}}(ma),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(I,W){for(var ae in W)Object.defineProperty(I,ae,{enumerable:!0,get:W[ae]})}e(t,{normalize:function(){return o},normalizeAttributeSelectors:function(){return l},url:function(){return h},number:function(){return m},percentage:function(){return b},length:function(){return v},lineWidth:function(){return M},shadow:function(){return k},color:function(){return N},image:function(){return L},gradient:function(){return ee},position:function(){return w},familyName:function(){return R},genericName:function(){return O},absoluteSize:function(){return Q},relativeSize:function(){return $}});const r=Zs,s=ma,n=Qr;let i=["min","max","clamp","calc"];function a(I){return i.some(W=>new RegExp(`^${W}\\(.*\\)`).test(I))}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 o(I,W=null,ae=!0){let _=W&&c.has(W.property);return I.startsWith("--")&&!_?`var(${I})`:I.includes("url(")?I.split(/(url\(.*?\))/g).filter(Boolean).map(X=>/^url\(.*?\)$/.test(X)?X:o(X,W,!1)).join(""):(I=I.replace(/([^\\])_+/g,(X,A)=>A+" ".repeat(X.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),ae&&(I=I.trim()),I=d(I),I)}function l(I){return I.includes("=")&&(I=I.replace(/(=.*)/g,(W,ae)=>{if(ae[1]==="'"||ae[1]==='"')return ae;if(ae.length>2){let _=ae[ae.length-1];if(ae[ae.length-2]===" "&&(_==="i"||_==="I"||_==="s"||_==="S"))return`="${ae.slice(1,-2)}" ${ae[ae.length-1]}`}return`="${ae.slice(1)}"`})),I}function d(I){let W=["theme"],ae=["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 I.replace(/(calc|min|max|clamp)\(.+\)/g,_=>{let X="";function A(){let B=X.trimEnd();return B[B.length-1]}for(let B=0;B<_.length;B++){let S=function(P){return P.split("").every((ie,pe)=>_[B+pe]===ie)},j=function(P){let ie=1/0;for(let he of P){let le=_.indexOf(he,B);le!==-1&&le<ie&&(ie=le)}let pe=_.slice(B,ie);return B+=pe.length-1,pe},K=_[B];if(S("var"))X+=j([")",","]);else if(ae.some(P=>S(P))){let P=ae.find(ie=>S(ie));X+=P,B+=P.length-1}else W.some(P=>S(P))?X+=j([")"]):S("[")?X+=j(["]"]):["+","-","*","/"].includes(K)&&!["(","+","-","*","/",","].includes(A())?X+=` ${K} `:X+=K}return X.replace(/\s+/g," ")})}function h(I){return I.startsWith("url(")}function m(I){return!isNaN(Number(I))||a(I)}function b(I){return I.endsWith("%")&&m(I.slice(0,-1))||a(I)}let f=`(?:${["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 v(I){return I==="0"||new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${f}$`).test(I)||a(I)}let T=new Set(["thin","medium","thick"]);function M(I){return T.has(I)}function k(I){let W=(0,s.parseBoxShadowValue)(o(I));for(let ae of W)if(!ae.valid)return!1;return!0}function N(I){let W=0;return(0,n.splitAtTopLevelOnly)(I,"_").every(_=>(_=o(_),_.startsWith("var(")?!0:(0,r.parseColor)(_,{loose:!0})!==null?(W++,!0):!1))?W>0:!1}function L(I){let W=0;return(0,n.splitAtTopLevelOnly)(I,",").every(_=>(_=o(_),_.startsWith("var(")?!0:h(_)||ee(_)||["element(","image(","cross-fade(","image-set("].some(X=>_.startsWith(X))?(W++,!0):!1))?W>0:!1}let Y=new Set(["conic-gradient","linear-gradient","radial-gradient","repeating-conic-gradient","repeating-linear-gradient","repeating-radial-gradient"]);function ee(I){I=o(I);for(let W of Y)if(I.startsWith(`${W}(`))return!0;return!1}let Z=new Set(["center","top","right","bottom","left"]);function w(I){let W=0;return(0,n.splitAtTopLevelOnly)(I,"_").every(_=>(_=o(_),_.startsWith("var(")?!0:Z.has(_)||v(_)||b(_)?(W++,!0):!1))?W>0:!1}function R(I){let W=0;return(0,n.splitAtTopLevelOnly)(I,",").every(_=>(_=o(_),_.startsWith("var(")?!0:_.includes(" ")&&!/(['"])([^"']+)\1/g.test(_)||/^\d/g.test(_)?!1:(W++,!0)))?W>0:!1}let q=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function O(I){return q.has(I)}let V=new Set(["xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large"]);function Q(I){return V.has(I)}let F=new Set(["larger","smaller"]);function $(I){return F.has(I)}}(Xs);var ga={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"backgroundSize",{enumerable:!0,get:function(){return s}});const e=Xs,r=Qr;function s(n){let i=["cover","contain"];return(0,r.splitAtTopLevelOnly)(n,",").every(a=>{let c=(0,r.splitAtTopLevelOnly)(a,"_").filter(Boolean);return c.length===1&&i.includes(c[0])?!0:c.length!==1&&c.length!==2?!1:c.every(o=>(0,e.length)(o)||(0,e.percentage)(o)||o==="auto")})}})(ga),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(w,R){for(var q in R)Object.defineProperty(w,q,{enumerable:!0,get:R[q]})}e(t,{updateAllClasses:function(){return l},asValue:function(){return m},parseColorFormat:function(){return f},asColor:function(){return T},asLookupValue:function(){return M},typeMap:function(){return N},coerceValue:function(){return ee},getMatchingTypes:function(){return Z}});const r=o(fa),s=qs,n=Xs,i=o(js),a=ga,c=Vr;function o(w){return w&&w.__esModule?w:{default:w}}function l(w,R){w.walkClasses(q=>{q.value=R(q.value),q.raws&&q.raws.value&&(q.raws.value=(0,r.default)(q.raws.value))})}function d(w,R){if(!b(w))return;let q=w.slice(1,-1);if(R(q))return(0,n.normalize)(q)}function h(w,R={},q){let O=R[w];if(O!==void 0)return(0,i.default)(O);if(b(w)){let V=d(w,q);return V===void 0?void 0:(0,i.default)(V)}}function m(w,R={},{validate:q=()=>!0}={}){var O;let V=(O=R.values)===null||O===void 0?void 0:O[w];return V!==void 0?V:R.supportsNegativeValues&&w.startsWith("-")?h(w.slice(1),R.values,q):d(w,q)}function b(w){return w.startsWith("[")&&w.endsWith("]")}function C(w){let R=w.lastIndexOf("/"),q=w.lastIndexOf("[",R),O=w.indexOf("]",R);return w[R-1]==="]"||w[R+1]==="["||q!==-1&&O!==-1&&q<R&&R<O&&(R=w.lastIndexOf("/",q)),R===-1||R===w.length-1?[w,void 0]:b(w)&&!w.includes("]/[")?[w,void 0]:[w.slice(0,R),w.slice(R+1)]}function f(w){if(typeof w=="string"&&w.includes("<alpha-value>")){let R=w;return({opacityValue:q=1})=>R.replace(/<alpha-value>/g,q)}return w}function v(w){return(0,n.normalize)(w.slice(1,-1))}function T(w,R={},{tailwindConfig:q={}}={}){var O;if(((O=R.values)===null||O===void 0?void 0:O[w])!==void 0){var V;return f((V=R.values)===null||V===void 0?void 0:V[w])}let[Q,F]=C(w);if(F!==void 0){var $,I,W,ae;let _=(ae=($=R.values)===null||$===void 0?void 0:$[Q])!==null&&ae!==void 0?ae:b(Q)?Q.slice(1,-1):void 0;return _===void 0?void 0:(_=f(_),b(F)?(0,s.withAlphaValue)(_,v(F)):((I=q.theme)===null||I===void 0||(W=I.opacity)===null||W===void 0?void 0:W[F])===void 0?void 0:(0,s.withAlphaValue)(_,q.theme.opacity[F]))}return m(w,R,{validate:n.color})}function M(w,R={}){var q;return(q=R.values)===null||q===void 0?void 0:q[w]}function k(w){return(R,q)=>m(R,q,{validate:w})}let N={any:m,color:T,url:k(n.url),image:k(n.image),length:k(n.length),percentage:k(n.percentage),position:k(n.position),lookup:M,"generic-name":k(n.genericName),"family-name":k(n.familyName),number:k(n.number),"line-width":k(n.lineWidth),"absolute-size":k(n.absoluteSize),"relative-size":k(n.relativeSize),shadow:k(n.shadow),size:k(a.backgroundSize)},L=Object.keys(N);function Y(w,R){let q=w.indexOf(R);return q===-1?[void 0,w]:[w.slice(0,q),w.slice(q+1)]}function ee(w,R,q,O){if(q.values&&R in q.values)for(let{type:Q}of w!=null?w:[]){let F=N[Q](R,q,{tailwindConfig:O});if(F!==void 0)return[F,Q,null]}if(b(R)){let Q=R.slice(1,-1),[F,$]=Y(Q,":");if(!/^[\w-_]+$/g.test(F))$=Q;else if(F!==void 0&&!L.includes(F))return[];if($.length>0&&L.includes(F))return[m(`[${$}]`,q),F,null]}let V=Z(w,R,q,O);for(let Q of V)return Q;return[]}function*Z(w,R,q,O){let V=(0,c.flagEnabled)(O,"generalizedModifiers"),[Q,F]=C(R);if(V&&q.modifiers!=null&&(q.modifiers==="any"||typeof q.modifiers=="object"&&(F&&b(F)||F in q.modifiers))||(Q=R,F=void 0),F!==void 0&&Q===""&&(Q="DEFAULT"),F!==void 0&&typeof q.modifiers=="object"){var I,W;let ae=(W=(I=q.modifiers)===null||I===void 0?void 0:I[F])!==null&&W!==void 0?W:null;ae!==null?F=ae:b(F)&&(F=v(F))}for(let{type:ae}of w!=null?w:[]){let _=N[ae](Q,q,{tailwindConfig:O});_!==void 0&&(yield[_,ae,F!=null?F:null])}}}(ha);var va={};(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}})(va),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return q}});const e=b(js),r=b(sa),s=b(na),n=b(Us),i=oa,a=la,c=ca,o=b(ua),l=da,d=ha,h=qs,m=b(va);function b(O){return O&&O.__esModule?O:{default:O}}function C(O){return typeof O=="function"}function f(O,...V){let Q=V.pop();for(let F of V)for(let $ in F){let I=Q(O[$],F[$]);I===void 0?(0,o.default)(O[$])&&(0,o.default)(F[$])?O[$]=f({},O[$],F[$],Q):O[$]=F[$]:O[$]=I}return O}const v={colors:n.default,negative(O){return Object.keys(O).filter(V=>O[V]!=="0").reduce((V,Q)=>{let F=(0,e.default)(O[Q]);return F!==void 0&&(V[`-${Q}`]=F),V},{})},breakpoints(O){return Object.keys(O).filter(V=>typeof O[V]=="string").reduce((V,Q)=>({...V,[`screen-${Q}`]:O[Q]}),{})}};function T(O,...V){return C(O)?O(...V):O}function M(O){return O.reduce((V,{extend:Q})=>f(V,Q,(F,$)=>F===void 0?[$]:Array.isArray(F)?[$,...F]:[$,F]),{})}function k(O){return{...O.reduce((V,Q)=>(0,i.defaults)(V,Q),{}),extend:M(O)}}function N(O,V){if(Array.isArray(O)&&(0,o.default)(O[0]))return O.concat(V);if(Array.isArray(V)&&(0,o.default)(V[0])&&(0,o.default)(O))return[O,...V];if(Array.isArray(V))return V}function L({extend:O,...V}){return f(V,O,(Q,F)=>!C(Q)&&!F.some(C)?f({},Q,...F,N):($,I)=>f({},...[Q,...F].map(W=>T(W,$,I)),N))}function*Y(O){let V=(0,a.toPath)(O);if(V.length===0||(yield V,Array.isArray(O)))return;let Q=/^(.*?)\s*\/\s*([^/]+)$/,F=O.match(Q);if(F!==null){let[,$,I]=F,W=(0,a.toPath)($);W.alpha=I,yield W}}function ee(O){const V=(Q,F)=>{for(const $ of Y(Q)){let I=0,W=O;for(;W!=null&&I<$.length;)W=W[$[I++]],W=C(W)&&($.alpha===void 0||I<=$.length-1)?W(V,v):W;if(W!==void 0){if($.alpha!==void 0){let ae=(0,d.parseColorFormat)(W);return(0,h.withAlphaValue)(ae,$.alpha,(0,m.default)(ae))}return(0,o.default)(W)?(0,l.cloneDeep)(W):W}}return F};return Object.assign(V,{theme:V,...v}),Object.keys(O).reduce((Q,F)=>(Q[F]=C(O[F])?O[F](V,v):O[F],Q),{})}function Z(O){let V=[];return O.forEach(Q=>{V=[...V,Q];var F;const $=(F=Q==null?void 0:Q.plugins)!==null&&F!==void 0?F:[];$.length!==0&&$.forEach(I=>{I.__isOptionsFunction&&(I=I());var W;V=[...V,...Z([(W=I==null?void 0:I.config)!==null&&W!==void 0?W:{}])]})}),V}function w(O){return[...O].reduceRight((Q,F)=>C(F)?F({corePlugins:Q}):(0,s.default)(F,Q),r.default)}function R(O){return[...O].reduceRight((Q,F)=>[...Q,...F],[])}function q(O){let V=[...Z(O),{prefix:"",important:!1,separator:":"}];var Q,F;return(0,c.normalizeConfig)((0,i.defaults)({theme:ee(L(k(V.map($=>(Q=$==null?void 0:$.theme)!==null&&Q!==void 0?Q:{})))),corePlugins:w(V.map($=>$.corePlugins)),plugins:R(O.map($=>(F=$==null?void 0:$.plugins)!==null&&F!==void 0?F:[]))},...V))}}(ra);var ya={},$1={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 n}});const e=s($1),r=Vr;function s(i){return i&&i.__esModule?i:{default:i}}function n(i){var a;const c=((a=i==null?void 0:i.presets)!==null&&a!==void 0?a:[e.default]).slice().reverse().flatMap(d=>n(d instanceof Function?d():d)),o={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(o).filter(d=>(0,r.flagEnabled)(i,d)).map(d=>o[d]);return[i,...l,...c]}})(ya),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});const e=s(ra),r=s(ya);function s(i){return i&&i.__esModule?i:{default:i}}function n(...i){let[,...a]=(0,r.default)(i[0]);return(0,e.default)([...i,...a])}}(ta);let Vs=ta;var E1=(Vs.__esModule?Vs:{default:Vs}).default;const D1=xr(E1);let Qs=Us;var Ks=(Qs.__esModule?Qs:{default:Qs}).default;const _a=xr(Ks),L1=Ns({__proto__:null,default:_a},[Ks]);var ba={},Ca={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});function e(s,n){return{handler:s,config:n}}e.withOptions=function(s,n=()=>({})){const i=function(a){return{__options:a,handler:s(a),config:n(a)}};return i.__isOptionsFunction=!0,i.__pluginFunction=s,i.__configFunction=n,i};const r=e})(Ca),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});const e=r(Ca);function r(n){return n&&n.__esModule?n:{default:n}}const s=e.default}(ba);let Js=ba;var wa=(Js.__esModule?Js:{default:Js}).default,Kr={exports:{}};Kr.exports,function(t,e){var r=200,s="__lodash_hash_undefined__",n=800,i=16,a=9007199254740991,c="[object Arguments]",o="[object Array]",l="[object AsyncFunction]",d="[object Boolean]",h="[object Date]",m="[object Error]",b="[object Function]",C="[object GeneratorFunction]",f="[object Map]",v="[object Number]",T="[object Null]",M="[object Object]",k="[object Proxy]",N="[object RegExp]",L="[object Set]",Y="[object String]",ee="[object Undefined]",Z="[object WeakMap]",w="[object ArrayBuffer]",R="[object DataView]",q="[object Float32Array]",O="[object Float64Array]",V="[object Int8Array]",Q="[object Int16Array]",F="[object Int32Array]",$="[object Uint8Array]",I="[object Uint8ClampedArray]",W="[object Uint16Array]",ae="[object Uint32Array]",_=/[\\^$.*+?()[\]{}|]/g,X=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,B={};B[q]=B[O]=B[V]=B[Q]=B[F]=B[$]=B[I]=B[W]=B[ae]=!0,B[c]=B[o]=B[w]=B[d]=B[R]=B[h]=B[m]=B[b]=B[f]=B[v]=B[M]=B[N]=B[L]=B[Y]=B[Z]=!1;var S=typeof Qt=="object"&&Qt&&Qt.Object===Object&&Qt,j=typeof self=="object"&&self&&self.Object===Object&&self,K=S||j||Function("return this")(),P=e&&!e.nodeType&&e,ie=P&&!0&&t&&!t.nodeType&&t,pe=ie&&ie.exports===P,he=pe&&S.process,le=function(){try{var p=ie&&ie.require&&ie.require("util").types;return p||he&&he.binding&&he.binding("util")}catch{}}(),ye=le&&le.isTypedArray;function Fe(p,y,D){switch(D.length){case 0:return p.call(y);case 1:return p.call(y,D[0]);case 2:return p.call(y,D[0],D[1]);case 3:return p.call(y,D[0],D[1],D[2])}return p.apply(y,D)}function de(p,y){for(var D=-1,ne=Array(p);++D<p;)ne[D]=y(D);return ne}function Ee(p){return function(y){return p(y)}}function dt(p,y){return p==null?void 0:p[y]}function tt(p,y){return function(D){return p(y(D))}}var We=Array.prototype,Ae=Function.prototype,je=Object.prototype,Ye=K["__core-js_shared__"],Ue=Ae.toString,qe=je.hasOwnProperty,Wt=function(){var p=/[^.]+$/.exec(Ye&&Ye.keys&&Ye.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}(),Pt=je.toString,nr=Ue.call(Object),Yr=RegExp("^"+Ue.call(qe).replace(_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tt=pe?K.Buffer:void 0,yr=K.Symbol,Is=K.Uint8Array,zs=Tt?Tt.allocUnsafe:void 0,Vl=tt(Object.getPrototypeOf,Object),Ql=Object.create,Zv=je.propertyIsEnumerable,Xv=We.splice,ir=yr?yr.toStringTag:void 0,Rs=function(){try{var p=Ui(Object,"defineProperty");return p({},"",{}),p}catch{}}(),Vv=Tt?Tt.isBuffer:void 0,Kl=Math.max,Qv=Date.now,Jl=Ui(K,"Map"),jr=Ui(Object,"create"),Kv=function(){function p(){}return function(y){if(!or(y))return{};if(Ql)return Ql(y);p.prototype=y;var D=new p;return p.prototype=void 0,D}}();function ar(p){var y=-1,D=p==null?0:p.length;for(this.clear();++y<D;){var ne=p[y];this.set(ne[0],ne[1])}}function Jv(){this.__data__=jr?jr(null):{},this.size=0}function ey(p){var y=this.has(p)&&delete this.__data__[p];return this.size-=y?1:0,y}function ty(p){var y=this.__data__;if(jr){var D=y[p];return D===s?void 0:D}return qe.call(y,p)?y[p]:void 0}function ry(p){var y=this.__data__;return jr?y[p]!==void 0:qe.call(y,p)}function sy(p,y){var D=this.__data__;return this.size+=this.has(p)?0:1,D[p]=jr&&y===void 0?s:y,this}ar.prototype.clear=Jv,ar.prototype.delete=ey,ar.prototype.get=ty,ar.prototype.has=ry,ar.prototype.set=sy;function Yt(p){var y=-1,D=p==null?0:p.length;for(this.clear();++y<D;){var ne=p[y];this.set(ne[0],ne[1])}}function ny(){this.__data__=[],this.size=0}function iy(p){var y=this.__data__,D=Bs(y,p);if(D<0)return!1;var ne=y.length-1;return D==ne?y.pop():Xv.call(y,D,1),--this.size,!0}function ay(p){var y=this.__data__,D=Bs(y,p);return D<0?void 0:y[D][1]}function oy(p){return Bs(this.__data__,p)>-1}function ly(p,y){var D=this.__data__,ne=Bs(D,p);return ne<0?(++this.size,D.push([p,y])):D[ne][1]=y,this}Yt.prototype.clear=ny,Yt.prototype.delete=iy,Yt.prototype.get=ay,Yt.prototype.has=oy,Yt.prototype.set=ly;function _r(p){var y=-1,D=p==null?0:p.length;for(this.clear();++y<D;){var ne=p[y];this.set(ne[0],ne[1])}}function cy(){this.size=0,this.__data__={hash:new ar,map:new(Jl||Yt),string:new ar}}function uy(p){var y=As(this,p).delete(p);return this.size-=y?1:0,y}function dy(p){return As(this,p).get(p)}function hy(p){return As(this,p).has(p)}function fy(p,y){var D=As(this,p),ne=D.size;return D.set(p,y),this.size+=D.size==ne?0:1,this}_r.prototype.clear=cy,_r.prototype.delete=uy,_r.prototype.get=dy,_r.prototype.has=hy,_r.prototype.set=fy;function br(p){var y=this.__data__=new Yt(p);this.size=y.size}function py(){this.__data__=new Yt,this.size=0}function my(p){var y=this.__data__,D=y.delete(p);return this.size=y.size,D}function gy(p){return this.__data__.get(p)}function vy(p){return this.__data__.has(p)}function yy(p,y){var D=this.__data__;if(D instanceof Yt){var ne=D.__data__;if(!Jl||ne.length<r-1)return ne.push([p,y]),this.size=++D.size,this;D=this.__data__=new _r(ne)}return D.set(p,y),this.size=D.size,this}br.prototype.clear=py,br.prototype.delete=my,br.prototype.get=gy,br.prototype.has=vy,br.prototype.set=yy;function _y(p,y){var D=Zi(p),ne=!D&&qi(p),Ce=!D&&!ne&&n1(p),Me=!D&&!ne&&!Ce&&a1(p),ze=D||ne||Ce||Me,_e=ze?de(p.length,String):[],Re=_e.length;for(var Ct in p)(y||qe.call(p,Ct))&&!(ze&&(Ct=="length"||Ce&&(Ct=="offset"||Ct=="parent")||Me&&(Ct=="buffer"||Ct=="byteLength"||Ct=="byteOffset")||r1(Ct,Re)))&&_e.push(Ct);return _e}function Yi(p,y,D){(D!==void 0&&!Hs(p[y],D)||D===void 0&&!(y in p))&&ji(p,y,D)}function by(p,y,D){var ne=p[y];(!(qe.call(p,y)&&Hs(ne,D))||D===void 0&&!(y in p))&&ji(p,y,D)}function Bs(p,y){for(var D=p.length;D--;)if(Hs(p[D][0],y))return D;return-1}function ji(p,y,D){y=="__proto__"&&Rs?Rs(p,y,{configurable:!0,enumerable:!0,value:D,writable:!0}):p[y]=D}var Cy=Iy();function Fs(p){return p==null?p===void 0?ee:T:ir&&ir in Object(p)?zy(p):Ny(p)}function e1(p){return Ur(p)&&Fs(p)==c}function wy(p){if(!or(p)||Ay(p))return!1;var y=Vi(p)?Yr:X;return y.test(Uy(p))}function xy(p){return Ur(p)&&i1(p.length)&&!!B[Fs(p)]}function Sy(p){if(!or(p))return Hy(p);var y=s1(p),D=[];for(var ne in p)ne=="constructor"&&(y||!qe.call(p,ne))||D.push(ne);return D}function t1(p,y,D,ne,Ce){p!==y&&Cy(y,function(Me,ze){if(Ce||(Ce=new br),or(Me))ky(p,y,ze,D,t1,ne,Ce);else{var _e=ne?ne(Gi(p,ze),Me,ze+"",p,y,Ce):void 0;_e===void 0&&(_e=Me),Yi(p,ze,_e)}},o1)}function ky(p,y,D,ne,Ce,Me,ze){var _e=Gi(p,D),Re=Gi(y,D),Ct=ze.get(Re);if(Ct){Yi(p,D,Ct);return}var ht=Me?Me(_e,Re,D+"",p,y,ze):void 0,Gr=ht===void 0;if(Gr){var Qi=Zi(Re),Ki=!Qi&&n1(Re),c1=!Qi&&!Ki&&a1(Re);ht=Re,Qi||Ki||c1?Zi(_e)?ht=_e:Gy(_e)?ht=Ly(_e):Ki?(Gr=!1,ht=$y(Re,!0)):c1?(Gr=!1,ht=Dy(Re,!0)):ht=[]:qy(Re)||qi(Re)?(ht=_e,qi(_e)?ht=Zy(_e):(!or(_e)||Vi(_e))&&(ht=Ry(Re))):Gr=!1}Gr&&(ze.set(Re,ht),Ce(ht,Re,ne,Me,ze),ze.delete(Re)),Yi(p,D,ht)}function Ty(p,y){return Yy(Wy(p,y,l1),p+"")}var My=Rs?function(p,y){return Rs(p,"toString",{configurable:!0,enumerable:!1,value:Vy(y),writable:!0})}:l1;function $y(p,y){if(y)return p.slice();var D=p.length,ne=zs?zs(D):new p.constructor(D);return p.copy(ne),ne}function Ey(p){var y=new p.constructor(p.byteLength);return new Is(y).set(new Is(p)),y}function Dy(p,y){var D=y?Ey(p.buffer):p.buffer;return new p.constructor(D,p.byteOffset,p.length)}function Ly(p,y){var D=-1,ne=p.length;for(y||(y=Array(ne));++D<ne;)y[D]=p[D];return y}function Py(p,y,D,ne){var Ce=!D;D||(D={});for(var Me=-1,ze=y.length;++Me<ze;){var _e=y[Me],Re=ne?ne(D[_e],p[_e],_e,D,p):void 0;Re===void 0&&(Re=p[_e]),Ce?ji(D,_e,Re):by(D,_e,Re)}return D}function Oy(p){return Ty(function(y,D){var ne=-1,Ce=D.length,Me=Ce>1?D[Ce-1]:void 0,ze=Ce>2?D[2]:void 0;for(Me=p.length>3&&typeof Me=="function"?(Ce--,Me):void 0,ze&&By(D[0],D[1],ze)&&(Me=Ce<3?void 0:Me,Ce=1),y=Object(y);++ne<Ce;){var _e=D[ne];_e&&p(y,_e,ne,Me)}return y})}function Iy(p){return function(y,D,ne){for(var Ce=-1,Me=Object(y),ze=ne(y),_e=ze.length;_e--;){var Re=ze[p?_e:++Ce];if(D(Me[Re],Re,Me)===!1)break}return y}}function As(p,y){var D=p.__data__;return Fy(y)?D[typeof y=="string"?"string":"hash"]:D.map}function Ui(p,y){var D=dt(p,y);return wy(D)?D:void 0}function zy(p){var y=qe.call(p,ir),D=p[ir];try{p[ir]=void 0;var ne=!0}catch{}var Ce=Pt.call(p);return ne&&(y?p[ir]=D:delete p[ir]),Ce}function Ry(p){return typeof p.constructor=="function"&&!s1(p)?Kv(Vl(p)):{}}function r1(p,y){var D=typeof p;return y=y==null?a:y,!!y&&(D=="number"||D!="symbol"&&A.test(p))&&p>-1&&p%1==0&&p<y}function By(p,y,D){if(!or(D))return!1;var ne=typeof y;return(ne=="number"?Xi(D)&&r1(y,D.length):ne=="string"&&y in D)?Hs(D[y],p):!1}function Fy(p){var y=typeof p;return y=="string"||y=="number"||y=="symbol"||y=="boolean"?p!=="__proto__":p===null}function Ay(p){return!!Wt&&Wt in p}function s1(p){var y=p&&p.constructor,D=typeof y=="function"&&y.prototype||je;return p===D}function Hy(p){var y=[];if(p!=null)for(var D in Object(p))y.push(D);return y}function Ny(p){return Pt.call(p)}function Wy(p,y,D){return y=Kl(y===void 0?p.length-1:y,0),function(){for(var ne=arguments,Ce=-1,Me=Kl(ne.length-y,0),ze=Array(Me);++Ce<Me;)ze[Ce]=ne[y+Ce];Ce=-1;for(var _e=Array(y+1);++Ce<y;)_e[Ce]=ne[Ce];return _e[y]=D(ze),Fe(p,this,_e)}}function Gi(p,y){if(!(y==="constructor"&&typeof p[y]=="function")&&y!="__proto__")return p[y]}var Yy=jy(My);function jy(p){var y=0,D=0;return function(){var ne=Qv(),Ce=i-(ne-D);if(D=ne,Ce>0){if(++y>=n)return arguments[0]}else y=0;return p.apply(void 0,arguments)}}function Uy(p){if(p!=null){try{return Ue.call(p)}catch{}try{return p+""}catch{}}return""}function Hs(p,y){return p===y||p!==p&&y!==y}var qi=e1(function(){return arguments}())?e1:function(p){return Ur(p)&&qe.call(p,"callee")&&!Zv.call(p,"callee")},Zi=Array.isArray;function Xi(p){return p!=null&&i1(p.length)&&!Vi(p)}function Gy(p){return Ur(p)&&Xi(p)}var n1=Vv||Qy;function Vi(p){if(!or(p))return!1;var y=Fs(p);return y==b||y==C||y==l||y==k}function i1(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=a}function or(p){var y=typeof p;return p!=null&&(y=="object"||y=="function")}function Ur(p){return p!=null&&typeof p=="object"}function qy(p){if(!Ur(p)||Fs(p)!=M)return!1;var y=Vl(p);if(y===null)return!0;var D=qe.call(y,"constructor")&&y.constructor;return typeof D=="function"&&D instanceof D&&Ue.call(D)==nr}var a1=ye?Ee(ye):xy;function Zy(p){return Py(p,o1(p))}function o1(p){return Xi(p)?_y(p,!0):Sy(p)}var Xy=Oy(function(p,y,D){t1(p,y,D)});function Vy(p){return function(){return p}}function l1(p){return p}function Qy(){return!1}t.exports=Xy}(Kr,Kr.exports);var P1=Kr.exports;function O1(){if(!arguments.length)return[];var t=arguments[0];return I1(t)?t:[t]}var I1=Array.isArray,z1=O1;const g=Ks,ue=t=>t.toFixed(7).replace(/(\.[0-9]+?)0+$/,"$1").replace(/\.0$/,""),et=t=>`${ue(t/16)}rem`,u=(t,e)=>`${ue(t/e)}em`,Mt=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),s=parseInt(t.substring(4,6),16);return`${e} ${r} ${s}`};let en={sm:{css:[{fontSize:et(14),lineHeight:ue(24/14),p:{marginTop:u(16,14),marginBottom:u(16,14)},'[class~="lead"]':{fontSize:u(18,14),lineHeight:ue(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:ue(36/30)},h2:{fontSize:u(20,14),marginTop:u(32,20),marginBottom:u(16,20),lineHeight:ue(28/20)},h3:{fontSize:u(18,14),marginTop:u(28,18),marginBottom:u(8,18),lineHeight:ue(28/18)},h4:{marginTop:u(20,14),marginBottom:u(8,14),lineHeight:ue(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:et(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:ue(20/12),marginTop:u(20,12),marginBottom:u(20,12),borderRadius:et(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:ue(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:ue(16/12),marginTop:u(8,12)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},base:{css:[{fontSize:et(16),lineHeight:ue(28/16),p:{marginTop:u(20,16),marginBottom:u(20,16)},'[class~="lead"]':{fontSize:u(20,16),lineHeight:ue(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:ue(40/36)},h2:{fontSize:u(24,16),marginTop:u(48,24),marginBottom:u(24,24),lineHeight:ue(32/24)},h3:{fontSize:u(20,16),marginTop:u(32,20),marginBottom:u(12,20),lineHeight:ue(32/20)},h4:{marginTop:u(24,16),marginBottom:u(8,16),lineHeight:ue(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:et(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:ue(24/14),marginTop:u(24,14),marginBottom:u(24,14),borderRadius:et(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:ue(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:ue(20/14),marginTop:u(12,14)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},lg:{css:[{fontSize:et(18),lineHeight:ue(32/18),p:{marginTop:u(24,18),marginBottom:u(24,18)},'[class~="lead"]':{fontSize:u(22,18),lineHeight:ue(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:ue(48/48)},h2:{fontSize:u(30,18),marginTop:u(56,30),marginBottom:u(32,30),lineHeight:ue(40/30)},h3:{fontSize:u(24,18),marginTop:u(40,24),marginBottom:u(16,24),lineHeight:ue(36/24)},h4:{marginTop:u(32,18),marginBottom:u(8,18),lineHeight:ue(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:et(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:ue(28/16),marginTop:u(32,16),marginBottom:u(32,16),borderRadius:et(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:ue(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:ue(24/16),marginTop:u(16,16)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},xl:{css:[{fontSize:et(20),lineHeight:ue(36/20),p:{marginTop:u(24,20),marginBottom:u(24,20)},'[class~="lead"]':{fontSize:u(24,20),lineHeight:ue(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:ue(56/56)},h2:{fontSize:u(36,20),marginTop:u(56,36),marginBottom:u(32,36),lineHeight:ue(40/36)},h3:{fontSize:u(30,20),marginTop:u(48,30),marginBottom:u(20,30),lineHeight:ue(40/30)},h4:{marginTop:u(36,20),marginBottom:u(12,20),lineHeight:ue(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:et(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:ue(32/18),marginTop:u(36,18),marginBottom:u(36,18),borderRadius:et(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:ue(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:ue(28/18),marginTop:u(18,18)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},"2xl":{css:[{fontSize:et(24),lineHeight:ue(40/24),p:{marginTop:u(32,24),marginBottom:u(32,24)},'[class~="lead"]':{fontSize:u(30,24),lineHeight:ue(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:ue(64/64)},h2:{fontSize:u(48,24),marginTop:u(72,48),marginBottom:u(40,48),lineHeight:ue(52/48)},h3:{fontSize:u(36,24),marginTop:u(56,36),marginBottom:u(24,36),lineHeight:ue(44/36)},h4:{marginTop:u(40,24),marginBottom:u(16,24),lineHeight:ue(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:et(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:ue(36/20),marginTop:u(40,20),marginBottom:u(40,20),borderRadius:et(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:ue(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:ue(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":Mt(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":Mt(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":Mt(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":Mt(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":Mt(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":Mt(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":Mt(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":Mt(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":Mt(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":Mt(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 R1={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)"}},en.gray.css,...en.base.css]},...en},B1="[object Object]";function F1(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function A1(t,e){return function(r){return t(e(r))}}var H1=Function.prototype,xa=Object.prototype,Sa=H1.toString,N1=xa.hasOwnProperty,W1=Sa.call(Object),Y1=xa.toString,j1=A1(Object.getPrototypeOf,Object);function U1(t){return!!t&&typeof t=="object"}function G1(t){if(!U1(t)||Y1.call(t)!=B1||F1(t))return!1;var e=j1(t);if(e===null)return!0;var r=N1.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Sa.call(r)==W1}var q1=G1,tn={exports:{}},rn={exports:{}},sn={exports:{}},nn={exports:{}},an={exports:{}},on={exports:{}},ot={},ln={exports:{}};(function(t,e){e.__esModule=!0,e.default=n;function r(i){for(var a=i.toLowerCase(),c="",o=!1,l=0;l<6&&a[l]!==void 0;l++){var d=a.charCodeAt(l),h=d>=97&&d<=102||d>=48&&d<=57;if(o=d===32,!h)break;c+=a[l]}if(c.length!==0){var m=parseInt(c,16),b=m>=55296&&m<=57343;return b||m===0||m>1114111?["�",c.length+(o?1:0)]:[String.fromCodePoint(m),c.length+(o?1:0)]}}var s=/\\/;function n(i){var a=s.test(i);if(!a)return i;for(var c="",o=0;o<i.length;o++){if(i[o]==="\\"){var l=r(i.slice(o+1,o+7));if(l!==void 0){c+=l[0],o+=l[1];continue}if(i[o+1]==="\\"){c+="\\",o++;continue}i.length===o+1&&(c+=i[o]);continue}c+=i[o]}return c}t.exports=e.default})(ln,ln.exports);var ka=ln.exports,cn={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(s){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];for(;i.length>0;){var c=i.shift();if(!s[c])return;s=s[c]}return s}t.exports=e.default})(cn,cn.exports);var Z1=cn.exports,un={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(s){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];for(;i.length>0;){var c=i.shift();s[c]||(s[c]={}),s=s[c]}}t.exports=e.default})(un,un.exports);var X1=un.exports,dn={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(s){for(var n="",i=s.indexOf("/*"),a=0;i>=0;){n=n+s.slice(a,i);var c=s.indexOf("*/",i+2);if(c<0)return n;a=c+2,i=s.indexOf("/*",a)}return n=n+s.slice(a),n}t.exports=e.default})(dn,dn.exports);var V1=dn.exports;ot.__esModule=!0,ot.stripComments=ot.ensureObject=ot.getProp=ot.unesc=void 0;var Q1=Jr(ka);ot.unesc=Q1.default;var K1=Jr(Z1);ot.getProp=K1.default;var J1=Jr(X1);ot.ensureObject=J1.default;var e0=Jr(V1);ot.stripComments=e0.default;function Jr(t){return t&&t.__esModule?t:{default:t}}(function(t,e){e.__esModule=!0,e.default=void 0;var r=ot;function s(c,o){for(var l=0;l<o.length;l++){var d=o[l];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(c,d.key,d)}}function n(c,o,l){return o&&s(c.prototype,o),l&&s(c,l),c}var i=function c(o,l){if(typeof o!="object"||o===null)return o;var d=new o.constructor;for(var h in o)if(o.hasOwnProperty(h)){var m=o[h],b=typeof m;h==="parent"&&b==="object"?l&&(d[h]=l):m instanceof Array?d[h]=m.map(function(C){return c(C,d)}):d[h]=c(m,d)}return d},a=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 o=c.prototype;return o.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},o.replaceWith=function(){if(this.parent){for(var d in arguments)this.parent.insertBefore(this,arguments[d]);this.remove()}return this},o.next=function(){return this.parent.at(this.parent.index(this)+1)},o.prev=function(){return this.parent.at(this.parent.index(this)-1)},o.clone=function(d){d===void 0&&(d={});var h=i(this);for(var m in d)h[m]=d[m];return h},o.appendToPropertyAndEscape=function(d,h,m){this.raws||(this.raws={});var b=this[d],C=this.raws[d];this[d]=b+h,C||m!==h?this.raws[d]=(C||b)+m:delete this.raws[d]},o.setPropertyAndEscape=function(d,h,m){this.raws||(this.raws={}),this[d]=h,this.raws[d]=m},o.setPropertyWithoutEscape=function(d,h){this[d]=h,this.raws&&delete this.raws[d]},o.isAtPosition=function(d,h){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>h||this.source.end.line===d&&this.source.end.column<h)},o.stringifyProperty=function(d){return this.raws&&this.raws[d]||this[d]},o.valueToString=function(){return String(this.stringifyProperty("value"))},o.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},n(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=a,t.exports=e.default})(on,on.exports);var Gt=on.exports,me={};me.__esModule=!0,me.UNIVERSAL=me.ATTRIBUTE=me.CLASS=me.COMBINATOR=me.COMMENT=me.ID=me.NESTING=me.PSEUDO=me.ROOT=me.SELECTOR=me.STRING=me.TAG=void 0;var t0="tag";me.TAG=t0;var r0="string";me.STRING=r0;var s0="selector";me.SELECTOR=s0;var n0="root";me.ROOT=n0;var i0="pseudo";me.PSEUDO=i0;var a0="nesting";me.NESTING=a0;var o0="id";me.ID=o0;var l0="comment";me.COMMENT=l0;var c0="combinator";me.COMBINATOR=c0;var u0="class";me.CLASS=u0;var d0="attribute";me.ATTRIBUTE=d0;var h0="universal";me.UNIVERSAL=h0,function(t,e){e.__esModule=!0,e.default=void 0;var r=a(Gt),s=i(me);function n(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return n=function(){return f},f}function i(f){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var v=n();if(v&&v.has(f))return v.get(f);var T={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in f)if(Object.prototype.hasOwnProperty.call(f,k)){var N=M?Object.getOwnPropertyDescriptor(f,k):null;N&&(N.get||N.set)?Object.defineProperty(T,k,N):T[k]=f[k]}return T.default=f,v&&v.set(f,T),T}function a(f){return f&&f.__esModule?f:{default:f}}function c(f,v){var T;if(typeof Symbol=="undefined"||f[Symbol.iterator]==null){if(Array.isArray(f)||(T=o(f))||v&&f&&typeof f.length=="number"){T&&(f=T);var M=0;return function(){return M>=f.length?{done:!0}:{done:!1,value:f[M++]}}}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 T=f[Symbol.iterator](),T.next.bind(T)}function o(f,v){if(f){if(typeof f=="string")return l(f,v);var T=Object.prototype.toString.call(f).slice(8,-1);if(T==="Object"&&f.constructor&&(T=f.constructor.name),T==="Map"||T==="Set")return Array.from(f);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return l(f,v)}}function l(f,v){(v==null||v>f.length)&&(v=f.length);for(var T=0,M=new Array(v);T<v;T++)M[T]=f[T];return M}function d(f,v){for(var T=0;T<v.length;T++){var M=v[T];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(f,M.key,M)}}function h(f,v,T){return v&&d(f.prototype,v),T&&d(f,T),f}function m(f,v){f.prototype=Object.create(v.prototype),f.prototype.constructor=f,b(f,v)}function b(f,v){return b=Object.setPrototypeOf||function(M,k){return M.__proto__=k,M},b(f,v)}var C=function(f){m(v,f);function v(M){var k;return k=f.call(this,M)||this,k.nodes||(k.nodes=[]),k}var T=v.prototype;return T.append=function(k){return k.parent=this,this.nodes.push(k),this},T.prepend=function(k){return k.parent=this,this.nodes.unshift(k),this},T.at=function(k){return this.nodes[k]},T.index=function(k){return typeof k=="number"?k:this.nodes.indexOf(k)},T.removeChild=function(k){k=this.index(k),this.at(k).parent=void 0,this.nodes.splice(k,1);var N;for(var L in this.indexes)N=this.indexes[L],N>=k&&(this.indexes[L]=N-1);return this},T.removeAll=function(){for(var k=c(this.nodes),N;!(N=k()).done;){var L=N.value;L.parent=void 0}return this.nodes=[],this},T.empty=function(){return this.removeAll()},T.insertAfter=function(k,N){N.parent=this;var L=this.index(k);this.nodes.splice(L+1,0,N),N.parent=this;var Y;for(var ee in this.indexes)Y=this.indexes[ee],L<=Y&&(this.indexes[ee]=Y+1);return this},T.insertBefore=function(k,N){N.parent=this;var L=this.index(k);this.nodes.splice(L,0,N),N.parent=this;var Y;for(var ee in this.indexes)Y=this.indexes[ee],Y<=L&&(this.indexes[ee]=Y+1);return this},T._findChildAtPosition=function(k,N){var L=void 0;return this.each(function(Y){if(Y.atPosition){var ee=Y.atPosition(k,N);if(ee)return L=ee,!1}else if(Y.isAtPosition(k,N))return L=Y,!1}),L},T.atPosition=function(k,N){if(this.isAtPosition(k,N))return this._findChildAtPosition(k,N)||this},T._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))},T.each=function(k){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var N=this.lastEach;if(this.indexes[N]=0,!!this.length){for(var L,Y;this.indexes[N]<this.length&&(L=this.indexes[N],Y=k(this.at(L),L),Y!==!1);)this.indexes[N]+=1;if(delete this.indexes[N],Y===!1)return!1}},T.walk=function(k){return this.each(function(N,L){var Y=k(N,L);if(Y!==!1&&N.length&&(Y=N.walk(k)),Y===!1)return!1})},T.walkAttributes=function(k){var N=this;return this.walk(function(L){if(L.type===s.ATTRIBUTE)return k.call(N,L)})},T.walkClasses=function(k){var N=this;return this.walk(function(L){if(L.type===s.CLASS)return k.call(N,L)})},T.walkCombinators=function(k){var N=this;return this.walk(function(L){if(L.type===s.COMBINATOR)return k.call(N,L)})},T.walkComments=function(k){var N=this;return this.walk(function(L){if(L.type===s.COMMENT)return k.call(N,L)})},T.walkIds=function(k){var N=this;return this.walk(function(L){if(L.type===s.ID)return k.call(N,L)})},T.walkNesting=function(k){var N=this;return this.walk(function(L){if(L.type===s.NESTING)return k.call(N,L)})},T.walkPseudos=function(k){var N=this;return this.walk(function(L){if(L.type===s.PSEUDO)return k.call(N,L)})},T.walkTags=function(k){var N=this;return this.walk(function(L){if(L.type===s.TAG)return k.call(N,L)})},T.walkUniversals=function(k){var N=this;return this.walk(function(L){if(L.type===s.UNIVERSAL)return k.call(N,L)})},T.split=function(k){var N=this,L=[];return this.reduce(function(Y,ee,Z){var w=k.call(N,ee);return L.push(ee),w?(Y.push(L),L=[]):Z===N.length-1&&Y.push(L),Y},[])},T.map=function(k){return this.nodes.map(k)},T.reduce=function(k,N){return this.nodes.reduce(k,N)},T.every=function(k){return this.nodes.every(k)},T.some=function(k){return this.nodes.some(k)},T.filter=function(k){return this.nodes.filter(k)},T.sort=function(k){return this.nodes.sort(k)},T.toString=function(){return this.map(String).join("")},h(v,[{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}}]),v}(r.default);e.default=C,t.exports=e.default}(an,an.exports);var hn=an.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(hn),s=me;function n(d){return d&&d.__esModule?d:{default:d}}function i(d,h){for(var m=0;m<h.length;m++){var b=h[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(d,b.key,b)}}function a(d,h,m){return h&&i(d.prototype,h),m&&i(d,m),d}function c(d,h){d.prototype=Object.create(h.prototype),d.prototype.constructor=d,o(d,h)}function o(d,h){return o=Object.setPrototypeOf||function(b,C){return b.__proto__=C,b},o(d,h)}var l=function(d){c(h,d);function h(b){var C;return C=d.call(this,b)||this,C.type=s.ROOT,C}var m=h.prototype;return m.toString=function(){var C=this.reduce(function(f,v){return f.push(String(v)),f},[]).join(",");return this.trailingComma?C+",":C},m.error=function(C,f){return this._error?this._error(C,f):new Error(C)},a(h,[{key:"errorGenerator",set:function(C){this._error=C}}]),h}(r.default);e.default=l,t.exports=e.default})(nn,nn.exports);var Ta=nn.exports,fn={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(hn),s=me;function n(o){return o&&o.__esModule?o:{default:o}}function i(o,l){o.prototype=Object.create(l.prototype),o.prototype.constructor=o,a(o,l)}function a(o,l){return a=Object.setPrototypeOf||function(h,m){return h.__proto__=m,h},a(o,l)}var c=function(o){i(l,o);function l(d){var h;return h=o.call(this,d)||this,h.type=s.SELECTOR,h}return l}(r.default);e.default=c,t.exports=e.default})(fn,fn.exports);var Ma=fn.exports,pn={exports:{}};/*! https://mths.be/cssesc v3.0.0 by @mathias */var f0={},p0=f0.hasOwnProperty,m0=function(e,r){if(!e)return r;var s={};for(var n in r)s[n]=p0.call(e,n)?e[n]:r[n];return s},g0=/[ -,\.\/:-@\[-\^`\{-~]/,v0=/[ -,\.\/:-@\[\]\^`\{-~]/,y0=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,mn=function t(e,r){r=m0(r,t.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var s=r.quotes=="double"?'"':"'",n=r.isIdentifier,i=e.charAt(0),a="",c=0,o=e.length;c<o;){var l=e.charAt(c++),d=l.charCodeAt(),h=void 0;if(d<32||d>126){if(d>=55296&&d<=56319&&c<o){var m=e.charCodeAt(c++);(m&64512)==56320?d=((d&1023)<<10)+(m&1023)+65536:c--}h="\\"+d.toString(16).toUpperCase()+" "}else r.escapeEverything?g0.test(l)?h="\\"+l:h="\\"+d.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?h="\\"+d.toString(16).toUpperCase()+" ":l=="\\"||!n&&(l=='"'&&s==l||l=="'"&&s==l)||n&&v0.test(l)?h="\\"+l:h=l;a+=h}return n&&(/^-[-\d]/.test(a)?a="\\-"+a.slice(1):/\d/.test(i)&&(a="\\3"+i+" "+a.slice(1))),a=a.replace(y0,function(b,C,f){return C&&C.length%2?b:(C||"")+f}),!n&&r.wrap?s+a+s:a};mn.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},mn.version="3.0.0";var gn=mn;(function(t,e){e.__esModule=!0,e.default=void 0;var r=a(gn),s=ot,n=a(Gt),i=me;function a(m){return m&&m.__esModule?m:{default:m}}function c(m,b){for(var C=0;C<b.length;C++){var f=b[C];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(m,f.key,f)}}function o(m,b,C){return b&&c(m.prototype,b),C&&c(m,C),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(f,v){return f.__proto__=v,f},d(m,b)}var h=function(m){l(b,m);function b(f){var v;return v=m.call(this,f)||this,v.type=i.CLASS,v._constructed=!0,v}var C=b.prototype;return C.valueToString=function(){return"."+m.prototype.valueToString.call(this)},o(b,[{key:"value",get:function(){return this._value},set:function(v){if(this._constructed){var T=(0,r.default)(v,{isIdentifier:!0});T!==v?((0,s.ensureObject)(this,"raws"),this.raws.value=T):this.raws&&delete this.raws.value}this._value=v}}]),b}(n.default);e.default=h,t.exports=e.default})(pn,pn.exports);var $a=pn.exports,vn={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Gt),s=me;function n(o){return o&&o.__esModule?o:{default:o}}function i(o,l){o.prototype=Object.create(l.prototype),o.prototype.constructor=o,a(o,l)}function a(o,l){return a=Object.setPrototypeOf||function(h,m){return h.__proto__=m,h},a(o,l)}var c=function(o){i(l,o);function l(d){var h;return h=o.call(this,d)||this,h.type=s.COMMENT,h}return l}(r.default);e.default=c,t.exports=e.default})(vn,vn.exports);var Ea=vn.exports,yn={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Gt),s=me;function n(o){return o&&o.__esModule?o:{default:o}}function i(o,l){o.prototype=Object.create(l.prototype),o.prototype.constructor=o,a(o,l)}function a(o,l){return a=Object.setPrototypeOf||function(h,m){return h.__proto__=m,h},a(o,l)}var c=function(o){i(l,o);function l(h){var m;return m=o.call(this,h)||this,m.type=s.ID,m}var d=l.prototype;return d.valueToString=function(){return"#"+o.prototype.valueToString.call(this)},l}(r.default);e.default=c,t.exports=e.default})(yn,yn.exports);var Da=yn.exports,_n={exports:{}},bn={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(gn),s=ot,n=i(Gt);function i(h){return h&&h.__esModule?h:{default:h}}function a(h,m){for(var b=0;b<m.length;b++){var C=m[b];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(h,C.key,C)}}function c(h,m,b){return m&&a(h.prototype,m),b&&a(h,b),h}function o(h,m){h.prototype=Object.create(m.prototype),h.prototype.constructor=h,l(h,m)}function l(h,m){return l=Object.setPrototypeOf||function(C,f){return C.__proto__=f,C},l(h,m)}var d=function(h){o(m,h);function m(){return h.apply(this,arguments)||this}var b=m.prototype;return b.qualifiedName=function(f){return this.namespace?this.namespaceString+"|"+f:f},b.valueToString=function(){return this.qualifiedName(h.prototype.valueToString.call(this))},c(m,[{key:"namespace",get:function(){return this._namespace},set:function(f){if(f===!0||f==="*"||f==="&"){this._namespace=f,this.raws&&delete this.raws.namespace;return}var v=(0,r.default)(f,{isIdentifier:!0});this._namespace=f,v!==f?((0,s.ensureObject)(this,"raws"),this.raws.namespace=v):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(f){this.namespace=f}},{key:"namespaceString",get:function(){if(this.namespace){var f=this.stringifyProperty("namespace");return f===!0?"":f}else return""}}]),m}(n.default);e.default=d,t.exports=e.default})(bn,bn.exports);var Cn=bn.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Cn),s=me;function n(o){return o&&o.__esModule?o:{default:o}}function i(o,l){o.prototype=Object.create(l.prototype),o.prototype.constructor=o,a(o,l)}function a(o,l){return a=Object.setPrototypeOf||function(h,m){return h.__proto__=m,h},a(o,l)}var c=function(o){i(l,o);function l(d){var h;return h=o.call(this,d)||this,h.type=s.TAG,h}return l}(r.default);e.default=c,t.exports=e.default})(_n,_n.exports);var La=_n.exports,wn={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Gt),s=me;function n(o){return o&&o.__esModule?o:{default:o}}function i(o,l){o.prototype=Object.create(l.prototype),o.prototype.constructor=o,a(o,l)}function a(o,l){return a=Object.setPrototypeOf||function(h,m){return h.__proto__=m,h},a(o,l)}var c=function(o){i(l,o);function l(d){var h;return h=o.call(this,d)||this,h.type=s.STRING,h}return l}(r.default);e.default=c,t.exports=e.default})(wn,wn.exports);var Pa=wn.exports,xn={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(hn),s=me;function n(o){return o&&o.__esModule?o:{default:o}}function i(o,l){o.prototype=Object.create(l.prototype),o.prototype.constructor=o,a(o,l)}function a(o,l){return a=Object.setPrototypeOf||function(h,m){return h.__proto__=m,h},a(o,l)}var c=function(o){i(l,o);function l(h){var m;return m=o.call(this,h)||this,m.type=s.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})(xn,xn.exports);var Oa=xn.exports,Sn={},_0=b0;function b0(t,e){if(kn("noDeprecation"))return t;var r=!1;function s(){if(!r){if(kn("throwDeprecation"))throw new Error(e);kn("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return s}function kn(t){try{if(!Qt.localStorage)return!1}catch{return!1}var e=Qt.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}(function(t){t.__esModule=!0,t.unescapeValue=v,t.default=void 0;var e=a(gn),r=a(ka),s=a(Cn),n=me,i;function a(L){return L&&L.__esModule?L:{default:L}}function c(L,Y){for(var ee=0;ee<Y.length;ee++){var Z=Y[ee];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(L,Z.key,Z)}}function o(L,Y,ee){return Y&&c(L.prototype,Y),ee&&c(L,ee),L}function l(L,Y){L.prototype=Object.create(Y.prototype),L.prototype.constructor=L,d(L,Y)}function d(L,Y){return d=Object.setPrototypeOf||function(Z,w){return Z.__proto__=w,Z},d(L,Y)}var h=_0,m=/^('|")([^]*)\1$/,b=h(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),C=h(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),f=h(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function v(L){var Y=!1,ee=null,Z=L,w=Z.match(m);return w&&(ee=w[1],Z=w[2]),Z=(0,r.default)(Z),Z!==L&&(Y=!0),{deprecatedUsage:Y,unescaped:Z,quoteMark:ee}}function T(L){if(L.quoteMark!==void 0||L.value===void 0)return L;f();var Y=v(L.value),ee=Y.quoteMark,Z=Y.unescaped;return L.raws||(L.raws={}),L.raws.value===void 0&&(L.raws.value=L.value),L.value=Z,L.quoteMark=ee,L}var M=function(L){l(Y,L);function Y(Z){var w;return Z===void 0&&(Z={}),w=L.call(this,T(Z))||this,w.type=n.ATTRIBUTE,w.raws=w.raws||{},Object.defineProperty(w.raws,"unquoted",{get:h(function(){return w.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:h(function(){return w.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),w._constructed=!0,w}var ee=Y.prototype;return ee.getQuotedValue=function(w){w===void 0&&(w={});var R=this._determineQuoteMark(w),q=k[R],O=(0,e.default)(this._value,q);return O},ee._determineQuoteMark=function(w){return w.smart?this.smartQuoteMark(w):this.preferredQuoteMark(w)},ee.setValue=function(w,R){R===void 0&&(R={}),this._value=w,this._quoteMark=this._determineQuoteMark(R),this._syncRawValue()},ee.smartQuoteMark=function(w){var R=this.value,q=R.replace(/[^']/g,"").length,O=R.replace(/[^"]/g,"").length;if(q+O===0){var V=(0,e.default)(R,{isIdentifier:!0});if(V===R)return Y.NO_QUOTE;var Q=this.preferredQuoteMark(w);if(Q===Y.NO_QUOTE){var F=this.quoteMark||w.quoteMark||Y.DOUBLE_QUOTE,$=k[F],I=(0,e.default)(R,$);if(I.length<V.length)return F}return Q}else return O===q?this.preferredQuoteMark(w):O<q?Y.DOUBLE_QUOTE:Y.SINGLE_QUOTE},ee.preferredQuoteMark=function(w){var R=w.preferCurrentQuoteMark?this.quoteMark:w.quoteMark;return R===void 0&&(R=w.preferCurrentQuoteMark?w.quoteMark:this.quoteMark),R===void 0&&(R=Y.DOUBLE_QUOTE),R},ee._syncRawValue=function(){var w=(0,e.default)(this._value,k[this.quoteMark]);w===this._value?this.raws&&delete this.raws.value:this.raws.value=w},ee._handleEscapes=function(w,R){if(this._constructed){var q=(0,e.default)(R,{isIdentifier:!0});q!==R?this.raws[w]=q:delete this.raws[w]}},ee._spacesFor=function(w){var R={before:"",after:""},q=this.spaces[w]||{},O=this.raws.spaces&&this.raws.spaces[w]||{};return Object.assign(R,q,O)},ee._stringFor=function(w,R,q){R===void 0&&(R=w),q===void 0&&(q=N);var O=this._spacesFor(R);return q(this.stringifyProperty(w),O)},ee.offsetOf=function(w){var R=1,q=this._spacesFor("attribute");if(R+=q.before.length,w==="namespace"||w==="ns")return this.namespace?R:-1;if(w==="attributeNS"||(R+=this.namespaceString.length,this.namespace&&(R+=1),w==="attribute"))return R;R+=this.stringifyProperty("attribute").length,R+=q.after.length;var O=this._spacesFor("operator");R+=O.before.length;var V=this.stringifyProperty("operator");if(w==="operator")return V?R:-1;R+=V.length,R+=O.after.length;var Q=this._spacesFor("value");R+=Q.before.length;var F=this.stringifyProperty("value");if(w==="value")return F?R:-1;R+=F.length,R+=Q.after.length;var $=this._spacesFor("insensitive");return R+=$.before.length,w==="insensitive"&&this.insensitive?R:-1},ee.toString=function(){var w=this,R=[this.rawSpaceBefore,"["];return R.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(R.push(this._stringFor("operator")),R.push(this._stringFor("value")),R.push(this._stringFor("insensitiveFlag","insensitive",function(q,O){return q.length>0&&!w.quoted&&O.before.length===0&&!(w.spaces.value&&w.spaces.value.after)&&(O.before=" "),N(q,O)}))),R.push("]"),R.push(this.rawSpaceAfter),R.join("")},o(Y,[{key:"quoted",get:function(){var w=this.quoteMark;return w==="'"||w==='"'},set:function(w){C()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(w){if(!this._constructed){this._quoteMark=w;return}this._quoteMark!==w&&(this._quoteMark=w,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(w){if(this._constructed){var R=v(w),q=R.deprecatedUsage,O=R.unescaped,V=R.quoteMark;if(q&&b(),O===this._value&&V===this._quoteMark)return;this._value=O,this._quoteMark=V,this._syncRawValue()}else this._value=w}},{key:"attribute",get:function(){return this._attribute},set:function(w){this._handleEscapes("attribute",w),this._attribute=w}}]),Y}(s.default);t.default=M,M.NO_QUOTE=null,M.SINGLE_QUOTE="'",M.DOUBLE_QUOTE='"';var k=(i={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},i[null]={isIdentifier:!0},i);function N(L,Y){return""+Y.before+L+Y.after}})(Sn);var Tn={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Cn),s=me;function n(o){return o&&o.__esModule?o:{default:o}}function i(o,l){o.prototype=Object.create(l.prototype),o.prototype.constructor=o,a(o,l)}function a(o,l){return a=Object.setPrototypeOf||function(h,m){return h.__proto__=m,h},a(o,l)}var c=function(o){i(l,o);function l(d){var h;return h=o.call(this,d)||this,h.type=s.UNIVERSAL,h.value="*",h}return l}(r.default);e.default=c,t.exports=e.default})(Tn,Tn.exports);var Ia=Tn.exports,Mn={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Gt),s=me;function n(o){return o&&o.__esModule?o:{default:o}}function i(o,l){o.prototype=Object.create(l.prototype),o.prototype.constructor=o,a(o,l)}function a(o,l){return a=Object.setPrototypeOf||function(h,m){return h.__proto__=m,h},a(o,l)}var c=function(o){i(l,o);function l(d){var h;return h=o.call(this,d)||this,h.type=s.COMBINATOR,h}return l}(r.default);e.default=c,t.exports=e.default})(Mn,Mn.exports);var za=Mn.exports,$n={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Gt),s=me;function n(o){return o&&o.__esModule?o:{default:o}}function i(o,l){o.prototype=Object.create(l.prototype),o.prototype.constructor=o,a(o,l)}function a(o,l){return a=Object.setPrototypeOf||function(h,m){return h.__proto__=m,h},a(o,l)}var c=function(o){i(l,o);function l(d){var h;return h=o.call(this,d)||this,h.type=s.NESTING,h.value="&",h}return l}(r.default);e.default=c,t.exports=e.default})($n,$n.exports);var Ra=$n.exports,En={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(s){return s.sort(function(n,i){return n-i})}t.exports=e.default})(En,En.exports);var C0=En.exports,Ba={},se={};se.__esModule=!0,se.combinator=se.word=se.comment=se.str=se.tab=se.newline=se.feed=se.cr=se.backslash=se.bang=se.slash=se.doubleQuote=se.singleQuote=se.space=se.greaterThan=se.pipe=se.equals=se.plus=se.caret=se.tilde=se.dollar=se.closeSquare=se.openSquare=se.closeParenthesis=se.openParenthesis=se.semicolon=se.colon=se.comma=se.at=se.asterisk=se.ampersand=void 0;var w0=38;se.ampersand=w0;var x0=42;se.asterisk=x0;var S0=64;se.at=S0;var k0=44;se.comma=k0;var T0=58;se.colon=T0;var M0=59;se.semicolon=M0;var $0=40;se.openParenthesis=$0;var E0=41;se.closeParenthesis=E0;var D0=91;se.openSquare=D0;var L0=93;se.closeSquare=L0;var P0=36;se.dollar=P0;var O0=126;se.tilde=O0;var I0=94;se.caret=I0;var z0=43;se.plus=z0;var R0=61;se.equals=R0;var B0=124;se.pipe=B0;var F0=62;se.greaterThan=F0;var A0=32;se.space=A0;var Fa=39;se.singleQuote=Fa;var H0=34;se.doubleQuote=H0;var N0=47;se.slash=N0;var W0=33;se.bang=W0;var Y0=92;se.backslash=Y0;var j0=13;se.cr=j0;var U0=12;se.feed=U0;var G0=10;se.newline=G0;var q0=9;se.tab=q0;var Z0=Fa;se.str=Z0;var X0=-1;se.comment=X0;var V0=-2;se.word=V0;var Q0=-3;se.combinator=Q0,function(t){t.__esModule=!0,t.default=C,t.FIELDS=void 0;var e=i(se),r,s;function n(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return n=function(){return f},f}function i(f){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var v=n();if(v&&v.has(f))return v.get(f);var T={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in f)if(Object.prototype.hasOwnProperty.call(f,k)){var N=M?Object.getOwnPropertyDescriptor(f,k):null;N&&(N.get||N.set)?Object.defineProperty(T,k,N):T[k]=f[k]}return T.default=f,v&&v.set(f,T),T}for(var a=(r={},r[e.tab]=!0,r[e.newline]=!0,r[e.cr]=!0,r[e.feed]=!0,r),c=(s={},s[e.space]=!0,s[e.tab]=!0,s[e.newline]=!0,s[e.cr]=!0,s[e.feed]=!0,s[e.ampersand]=!0,s[e.asterisk]=!0,s[e.bang]=!0,s[e.comma]=!0,s[e.colon]=!0,s[e.semicolon]=!0,s[e.openParenthesis]=!0,s[e.closeParenthesis]=!0,s[e.openSquare]=!0,s[e.closeSquare]=!0,s[e.singleQuote]=!0,s[e.doubleQuote]=!0,s[e.plus]=!0,s[e.pipe]=!0,s[e.tilde]=!0,s[e.greaterThan]=!0,s[e.equals]=!0,s[e.dollar]=!0,s[e.caret]=!0,s[e.slash]=!0,s),o={},l="0123456789abcdefABCDEF",d=0;d<l.length;d++)o[l.charCodeAt(d)]=!0;function h(f,v){var T=v,M;do{if(M=f.charCodeAt(T),c[M])return T-1;M===e.backslash?T=m(f,T)+1:T++}while(T<f.length);return T-1}function m(f,v){var T=v,M=f.charCodeAt(T+1);if(!a[M])if(o[M]){var k=0;do T++,k++,M=f.charCodeAt(T+1);while(o[M]&&k<6);k<6&&M===e.space&&T++}else T++;return T}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 C(f){var v=[],T=f.css.valueOf(),M=T,k=M.length,N=-1,L=1,Y=0,ee=0,Z,w,R,q,O,V,Q,F,$,I,W,ae,_;function X(A,B){if(f.safe)T+=B,$=T.length-1;else throw f.error("Unclosed "+A,L,Y-N,Y)}for(;Y<k;){switch(Z=T.charCodeAt(Y),Z===e.newline&&(N=Y,L+=1),Z){case e.space:case e.tab:case e.newline:case e.cr:case e.feed:$=Y;do $+=1,Z=T.charCodeAt($),Z===e.newline&&(N=$,L+=1);while(Z===e.space||Z===e.newline||Z===e.tab||Z===e.cr||Z===e.feed);_=e.space,q=L,R=$-N-1,ee=$;break;case e.plus:case e.greaterThan:case e.tilde:case e.pipe:$=Y;do $+=1,Z=T.charCodeAt($);while(Z===e.plus||Z===e.greaterThan||Z===e.tilde||Z===e.pipe);_=e.combinator,q=L,R=Y-N,ee=$;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:$=Y,_=Z,q=L,R=Y-N,ee=$+1;break;case e.singleQuote:case e.doubleQuote:ae=Z===e.singleQuote?"'":'"',$=Y;do for(O=!1,$=T.indexOf(ae,$+1),$===-1&&X("quote",ae),V=$;T.charCodeAt(V-1)===e.backslash;)V-=1,O=!O;while(O);_=e.str,q=L,R=Y-N,ee=$+1;break;default:Z===e.slash&&T.charCodeAt(Y+1)===e.asterisk?($=T.indexOf("*/",Y+2)+1,$===0&&X("comment","*/"),w=T.slice(Y,$+1),F=w.split(`
3
+ `),Q=F.length-1,Q>0?(I=L+Q,W=$-F[Q].length):(I=L,W=N),_=e.comment,L=I,q=I,R=$-W):Z===e.slash?($=Y,_=Z,q=L,R=Y-N,ee=$+1):($=h(T,Y),_=e.word,q=L,R=$-N),ee=$+1;break}v.push([_,L,Y-N,q,R,Y,ee]),W&&(N=W,W=null),Y=ee}return v}}(Ba),function(t,e){e.__esModule=!0,e.default=void 0;var r=ee(Ta),s=ee(Ma),n=ee($a),i=ee(Ea),a=ee(Da),c=ee(La),o=ee(Pa),l=ee(Oa),d=Y(Sn),h=ee(Ia),m=ee(za),b=ee(Ra),C=ee(C0),f=Y(Ba),v=Y(se),T=Y(me),M=ot,k,N;function L(){if(typeof WeakMap!="function")return null;var X=new WeakMap;return L=function(){return X},X}function Y(X){if(X&&X.__esModule)return X;if(X===null||typeof X!="object"&&typeof X!="function")return{default:X};var A=L();if(A&&A.has(X))return A.get(X);var B={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in X)if(Object.prototype.hasOwnProperty.call(X,j)){var K=S?Object.getOwnPropertyDescriptor(X,j):null;K&&(K.get||K.set)?Object.defineProperty(B,j,K):B[j]=X[j]}return B.default=X,A&&A.set(X,B),B}function ee(X){return X&&X.__esModule?X:{default:X}}function Z(X,A){for(var B=0;B<A.length;B++){var S=A[B];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(X,S.key,S)}}function w(X,A,B){return A&&Z(X.prototype,A),B&&Z(X,B),X}var R=(k={},k[v.space]=!0,k[v.cr]=!0,k[v.feed]=!0,k[v.newline]=!0,k[v.tab]=!0,k),q=Object.assign({},R,(N={},N[v.comment]=!0,N));function O(X){return{line:X[f.FIELDS.START_LINE],column:X[f.FIELDS.START_COL]}}function V(X){return{line:X[f.FIELDS.END_LINE],column:X[f.FIELDS.END_COL]}}function Q(X,A,B,S){return{start:{line:X,column:A},end:{line:B,column:S}}}function F(X){return Q(X[f.FIELDS.START_LINE],X[f.FIELDS.START_COL],X[f.FIELDS.END_LINE],X[f.FIELDS.END_COL])}function $(X,A){if(X)return Q(X[f.FIELDS.START_LINE],X[f.FIELDS.START_COL],A[f.FIELDS.END_LINE],A[f.FIELDS.END_COL])}function I(X,A){var B=X[A];if(typeof B=="string")return B.indexOf("\\")!==-1&&((0,M.ensureObject)(X,"raws"),X[A]=(0,M.unesc)(B),X.raws[A]===void 0&&(X.raws[A]=B)),X}function W(X,A){for(var B=-1,S=[];(B=X.indexOf(A,B+1))!==-1;)S.push(B);return S}function ae(){var X=Array.prototype.concat.apply([],arguments);return X.filter(function(A,B){return B===X.indexOf(A)})}var _=function(){function X(B,S){S===void 0&&(S={}),this.rule=B,this.options=Object.assign({lossy:!1,safe:!1},S),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,f.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var j=$(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new r.default({source:j}),this.root.errorGenerator=this._errorGenerator();var K=new s.default({source:{start:{line:1,column:1}}});this.root.append(K),this.current=K,this.loop()}var A=X.prototype;return A._errorGenerator=function(){var S=this;return function(j,K){return typeof S.rule=="string"?new Error(j):S.rule.error(j,K)}},A.attribute=function(){var S=[],j=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[f.FIELDS.TYPE]!==v.closeSquare;)S.push(this.currToken),this.position++;if(this.currToken[f.FIELDS.TYPE]!==v.closeSquare)return this.expected("closing square bracket",this.currToken[f.FIELDS.START_POS]);var K=S.length,P={source:Q(j[1],j[2],this.currToken[3],this.currToken[4]),sourceIndex:j[f.FIELDS.START_POS]};if(K===1&&!~[v.word].indexOf(S[0][f.FIELDS.TYPE]))return this.expected("attribute",S[0][f.FIELDS.START_POS]);for(var ie=0,pe="",he="",le=null,ye=!1;ie<K;){var Fe=S[ie],de=this.content(Fe),Ee=S[ie+1];switch(Fe[f.FIELDS.TYPE]){case v.space:if(ye=!0,this.options.lossy)break;if(le){(0,M.ensureObject)(P,"spaces",le);var dt=P.spaces[le].after||"";P.spaces[le].after=dt+de;var tt=(0,M.getProp)(P,"raws","spaces",le,"after")||null;tt&&(P.raws.spaces[le].after=tt+de)}else pe=pe+de,he=he+de;break;case v.asterisk:if(Ee[f.FIELDS.TYPE]===v.equals)P.operator=de,le="operator";else if((!P.namespace||le==="namespace"&&!ye)&&Ee){pe&&((0,M.ensureObject)(P,"spaces","attribute"),P.spaces.attribute.before=pe,pe=""),he&&((0,M.ensureObject)(P,"raws","spaces","attribute"),P.raws.spaces.attribute.before=pe,he=""),P.namespace=(P.namespace||"")+de;var We=(0,M.getProp)(P,"raws","namespace")||null;We&&(P.raws.namespace+=de),le="namespace"}ye=!1;break;case v.dollar:if(le==="value"){var Ae=(0,M.getProp)(P,"raws","value");P.value+="$",Ae&&(P.raws.value=Ae+"$");break}case v.caret:Ee[f.FIELDS.TYPE]===v.equals&&(P.operator=de,le="operator"),ye=!1;break;case v.combinator:if(de==="~"&&Ee[f.FIELDS.TYPE]===v.equals&&(P.operator=de,le="operator"),de!=="|"){ye=!1;break}Ee[f.FIELDS.TYPE]===v.equals?(P.operator=de,le="operator"):!P.namespace&&!P.attribute&&(P.namespace=!0),ye=!1;break;case v.word:if(Ee&&this.content(Ee)==="|"&&S[ie+2]&&S[ie+2][f.FIELDS.TYPE]!==v.equals&&!P.operator&&!P.namespace)P.namespace=de,le="namespace";else if(!P.attribute||le==="attribute"&&!ye){pe&&((0,M.ensureObject)(P,"spaces","attribute"),P.spaces.attribute.before=pe,pe=""),he&&((0,M.ensureObject)(P,"raws","spaces","attribute"),P.raws.spaces.attribute.before=he,he=""),P.attribute=(P.attribute||"")+de;var je=(0,M.getProp)(P,"raws","attribute")||null;je&&(P.raws.attribute+=de),le="attribute"}else if(!P.value&&P.value!==""||le==="value"&&!ye){var Ye=(0,M.unesc)(de),Ue=(0,M.getProp)(P,"raws","value")||"",qe=P.value||"";P.value=qe+Ye,P.quoteMark=null,(Ye!==de||Ue)&&((0,M.ensureObject)(P,"raws"),P.raws.value=(Ue||qe)+de),le="value"}else{var Wt=de==="i"||de==="I";(P.value||P.value==="")&&(P.quoteMark||ye)?(P.insensitive=Wt,(!Wt||de==="I")&&((0,M.ensureObject)(P,"raws"),P.raws.insensitiveFlag=de),le="insensitive",pe&&((0,M.ensureObject)(P,"spaces","insensitive"),P.spaces.insensitive.before=pe,pe=""),he&&((0,M.ensureObject)(P,"raws","spaces","insensitive"),P.raws.spaces.insensitive.before=he,he="")):(P.value||P.value==="")&&(le="value",P.value+=de,P.raws.value&&(P.raws.value+=de))}ye=!1;break;case v.str:if(!P.attribute||!P.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:Fe[f.FIELDS.START_POS]});var Pt=(0,d.unescapeValue)(de),nr=Pt.unescaped,Yr=Pt.quoteMark;P.value=nr,P.quoteMark=Yr,le="value",(0,M.ensureObject)(P,"raws"),P.raws.value=de,ye=!1;break;case v.equals:if(!P.attribute)return this.expected("attribute",Fe[f.FIELDS.START_POS],de);if(P.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:Fe[f.FIELDS.START_POS]});P.operator=P.operator?P.operator+de:de,le="operator",ye=!1;break;case v.comment:if(le)if(ye||Ee&&Ee[f.FIELDS.TYPE]===v.space||le==="insensitive"){var Tt=(0,M.getProp)(P,"spaces",le,"after")||"",yr=(0,M.getProp)(P,"raws","spaces",le,"after")||Tt;(0,M.ensureObject)(P,"raws","spaces",le),P.raws.spaces[le].after=yr+de}else{var Is=P[le]||"",zs=(0,M.getProp)(P,"raws",le)||Is;(0,M.ensureObject)(P,"raws"),P.raws[le]=zs+de}else he=he+de;break;default:return this.error('Unexpected "'+de+'" found.',{index:Fe[f.FIELDS.START_POS]})}ie++}I(P,"attribute"),I(P,"namespace"),this.newNode(new d.default(P)),this.position++},A.parseWhitespaceEquivalentTokens=function(S){S<0&&(S=this.tokens.length);var j=this.position,K=[],P="",ie=void 0;do if(R[this.currToken[f.FIELDS.TYPE]])this.options.lossy||(P+=this.content());else if(this.currToken[f.FIELDS.TYPE]===v.comment){var pe={};P&&(pe.before=P,P=""),ie=new i.default({value:this.content(),source:F(this.currToken),sourceIndex:this.currToken[f.FIELDS.START_POS],spaces:pe}),K.push(ie)}while(++this.position<S);if(P){if(ie)ie.spaces.after=P;else if(!this.options.lossy){var he=this.tokens[j],le=this.tokens[this.position-1];K.push(new o.default({value:"",source:Q(he[f.FIELDS.START_LINE],he[f.FIELDS.START_COL],le[f.FIELDS.END_LINE],le[f.FIELDS.END_COL]),sourceIndex:he[f.FIELDS.START_POS],spaces:{before:P,after:""}}))}}return K},A.convertWhitespaceNodesToSpace=function(S,j){var K=this;j===void 0&&(j=!1);var P="",ie="";S.forEach(function(he){var le=K.lossySpace(he.spaces.before,j),ye=K.lossySpace(he.rawSpaceBefore,j);P+=le+K.lossySpace(he.spaces.after,j&&le.length===0),ie+=le+he.value+K.lossySpace(he.rawSpaceAfter,j&&ye.length===0)}),ie===P&&(ie=void 0);var pe={space:P,rawSpace:ie};return pe},A.isNamedCombinator=function(S){return S===void 0&&(S=this.position),this.tokens[S+0]&&this.tokens[S+0][f.FIELDS.TYPE]===v.slash&&this.tokens[S+1]&&this.tokens[S+1][f.FIELDS.TYPE]===v.word&&this.tokens[S+2]&&this.tokens[S+2][f.FIELDS.TYPE]===v.slash},A.namedCombinator=function(){if(this.isNamedCombinator()){var S=this.content(this.tokens[this.position+1]),j=(0,M.unesc)(S).toLowerCase(),K={};j!==S&&(K.value="/"+S+"/");var P=new m.default({value:"/"+j+"/",source:Q(this.currToken[f.FIELDS.START_LINE],this.currToken[f.FIELDS.START_COL],this.tokens[this.position+2][f.FIELDS.END_LINE],this.tokens[this.position+2][f.FIELDS.END_COL]),sourceIndex:this.currToken[f.FIELDS.START_POS],raws:K});return this.position=this.position+3,P}else this.unexpected()},A.combinator=function(){var S=this;if(this.content()==="|")return this.namespace();var j=this.locateNextMeaningfulToken(this.position);if(j<0||this.tokens[j][f.FIELDS.TYPE]===v.comma){var K=this.parseWhitespaceEquivalentTokens(j);if(K.length>0){var P=this.current.last;if(P){var ie=this.convertWhitespaceNodesToSpace(K),pe=ie.space,he=ie.rawSpace;he!==void 0&&(P.rawSpaceAfter+=he),P.spaces.after+=pe}else K.forEach(function(Ue){return S.newNode(Ue)})}return}var le=this.currToken,ye=void 0;j>this.position&&(ye=this.parseWhitespaceEquivalentTokens(j));var Fe;if(this.isNamedCombinator()?Fe=this.namedCombinator():this.currToken[f.FIELDS.TYPE]===v.combinator?(Fe=new m.default({value:this.content(),source:F(this.currToken),sourceIndex:this.currToken[f.FIELDS.START_POS]}),this.position++):R[this.currToken[f.FIELDS.TYPE]]||ye||this.unexpected(),Fe){if(ye){var de=this.convertWhitespaceNodesToSpace(ye),Ee=de.space,dt=de.rawSpace;Fe.spaces.before=Ee,Fe.rawSpaceBefore=dt}}else{var tt=this.convertWhitespaceNodesToSpace(ye,!0),We=tt.space,Ae=tt.rawSpace;Ae||(Ae=We);var je={},Ye={spaces:{}};We.endsWith(" ")&&Ae.endsWith(" ")?(je.before=We.slice(0,We.length-1),Ye.spaces.before=Ae.slice(0,Ae.length-1)):We.startsWith(" ")&&Ae.startsWith(" ")?(je.after=We.slice(1),Ye.spaces.after=Ae.slice(1)):Ye.value=Ae,Fe=new m.default({value:" ",source:$(le,this.tokens[this.position-1]),sourceIndex:le[f.FIELDS.START_POS],spaces:je,raws:Ye})}return this.currToken&&this.currToken[f.FIELDS.TYPE]===v.space&&(Fe.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(Fe)},A.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var S=new s.default({source:{start:O(this.tokens[this.position+1])}});this.current.parent.append(S),this.current=S,this.position++},A.comment=function(){var S=this.currToken;this.newNode(new i.default({value:this.content(),source:F(S),sourceIndex:S[f.FIELDS.START_POS]})),this.position++},A.error=function(S,j){throw this.root.error(S,j)},A.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[f.FIELDS.START_POS]})},A.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[f.FIELDS.START_POS])},A.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[f.FIELDS.START_POS])},A.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[f.FIELDS.START_POS])},A.namespace=function(){var S=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[f.FIELDS.TYPE]===v.word)return this.position++,this.word(S);if(this.nextToken[f.FIELDS.TYPE]===v.asterisk)return this.position++,this.universal(S)},A.nesting=function(){if(this.nextToken){var S=this.content(this.nextToken);if(S==="|"){this.position++;return}}var j=this.currToken;this.newNode(new b.default({value:this.content(),source:F(j),sourceIndex:j[f.FIELDS.START_POS]})),this.position++},A.parentheses=function(){var S=this.current.last,j=1;if(this.position++,S&&S.type===T.PSEUDO){var K=new s.default({source:{start:O(this.tokens[this.position-1])}}),P=this.current;for(S.append(K),this.current=K;this.position<this.tokens.length&&j;)this.currToken[f.FIELDS.TYPE]===v.openParenthesis&&j++,this.currToken[f.FIELDS.TYPE]===v.closeParenthesis&&j--,j?this.parse():(this.current.source.end=V(this.currToken),this.current.parent.source.end=V(this.currToken),this.position++);this.current=P}else{for(var ie=this.currToken,pe="(",he;this.position<this.tokens.length&&j;)this.currToken[f.FIELDS.TYPE]===v.openParenthesis&&j++,this.currToken[f.FIELDS.TYPE]===v.closeParenthesis&&j--,he=this.currToken,pe+=this.parseParenthesisToken(this.currToken),this.position++;S?S.appendToPropertyAndEscape("value",pe,pe):this.newNode(new o.default({value:pe,source:Q(ie[f.FIELDS.START_LINE],ie[f.FIELDS.START_COL],he[f.FIELDS.END_LINE],he[f.FIELDS.END_COL]),sourceIndex:ie[f.FIELDS.START_POS]}))}if(j)return this.expected("closing parenthesis",this.currToken[f.FIELDS.START_POS])},A.pseudo=function(){for(var S=this,j="",K=this.currToken;this.currToken&&this.currToken[f.FIELDS.TYPE]===v.colon;)j+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[f.FIELDS.TYPE]===v.word)this.splitWord(!1,function(P,ie){j+=P,S.newNode(new l.default({value:j,source:$(K,S.currToken),sourceIndex:K[f.FIELDS.START_POS]})),ie>1&&S.nextToken&&S.nextToken[f.FIELDS.TYPE]===v.openParenthesis&&S.error("Misplaced parenthesis.",{index:S.nextToken[f.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[f.FIELDS.START_POS])},A.space=function(){var S=this.content();this.position===0||this.prevToken[f.FIELDS.TYPE]===v.comma||this.prevToken[f.FIELDS.TYPE]===v.openParenthesis||this.current.nodes.every(function(j){return j.type==="comment"})?(this.spaces=this.optionalSpace(S),this.position++):this.position===this.tokens.length-1||this.nextToken[f.FIELDS.TYPE]===v.comma||this.nextToken[f.FIELDS.TYPE]===v.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(S),this.position++):this.combinator()},A.string=function(){var S=this.currToken;this.newNode(new o.default({value:this.content(),source:F(S),sourceIndex:S[f.FIELDS.START_POS]})),this.position++},A.universal=function(S){var j=this.nextToken;if(j&&this.content(j)==="|")return this.position++,this.namespace();var K=this.currToken;this.newNode(new h.default({value:this.content(),source:F(K),sourceIndex:K[f.FIELDS.START_POS]}),S),this.position++},A.splitWord=function(S,j){for(var K=this,P=this.nextToken,ie=this.content();P&&~[v.dollar,v.caret,v.equals,v.word].indexOf(P[f.FIELDS.TYPE]);){this.position++;var pe=this.content();if(ie+=pe,pe.lastIndexOf("\\")===pe.length-1){var he=this.nextToken;he&&he[f.FIELDS.TYPE]===v.space&&(ie+=this.requiredSpace(this.content(he)),this.position++)}P=this.nextToken}var le=W(ie,".").filter(function(Ee){var dt=ie[Ee-1]==="\\",tt=/^\d+\.\d+%$/.test(ie);return!dt&&!tt}),ye=W(ie,"#").filter(function(Ee){return ie[Ee-1]!=="\\"}),Fe=W(ie,"#{");Fe.length&&(ye=ye.filter(function(Ee){return!~Fe.indexOf(Ee)}));var de=(0,C.default)(ae([0].concat(le,ye)));de.forEach(function(Ee,dt){var tt=de[dt+1]||ie.length,We=ie.slice(Ee,tt);if(dt===0&&j)return j.call(K,We,de.length);var Ae,je=K.currToken,Ye=je[f.FIELDS.START_POS]+de[dt],Ue=Q(je[1],je[2]+Ee,je[3],je[2]+(tt-1));if(~le.indexOf(Ee)){var qe={value:We.slice(1),source:Ue,sourceIndex:Ye};Ae=new n.default(I(qe,"value"))}else if(~ye.indexOf(Ee)){var Wt={value:We.slice(1),source:Ue,sourceIndex:Ye};Ae=new a.default(I(Wt,"value"))}else{var Pt={value:We,source:Ue,sourceIndex:Ye};I(Pt,"value"),Ae=new c.default(Pt)}K.newNode(Ae,S),S=null}),this.position++},A.word=function(S){var j=this.nextToken;return j&&this.content(j)==="|"?(this.position++,this.namespace()):this.splitWord(S)},A.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},A.parse=function(S){switch(this.currToken[f.FIELDS.TYPE]){case v.space:this.space();break;case v.comment:this.comment();break;case v.openParenthesis:this.parentheses();break;case v.closeParenthesis:S&&this.missingParenthesis();break;case v.openSquare:this.attribute();break;case v.dollar:case v.caret:case v.equals:case v.word:this.word();break;case v.colon:this.pseudo();break;case v.comma:this.comma();break;case v.asterisk:this.universal();break;case v.ampersand:this.nesting();break;case v.slash:case v.combinator:this.combinator();break;case v.str:this.string();break;case v.closeSquare:this.missingSquareBracket();case v.semicolon:this.missingBackslash();default:this.unexpected()}},A.expected=function(S,j,K){if(Array.isArray(S)){var P=S.pop();S=S.join(", ")+" or "+P}var ie=/^[aeiou]/.test(S[0])?"an":"a";return K?this.error("Expected "+ie+" "+S+', found "'+K+'" instead.',{index:j}):this.error("Expected "+ie+" "+S+".",{index:j})},A.requiredSpace=function(S){return this.options.lossy?" ":S},A.optionalSpace=function(S){return this.options.lossy?"":S},A.lossySpace=function(S,j){return this.options.lossy?j?" ":"":S},A.parseParenthesisToken=function(S){var j=this.content(S);return S[f.FIELDS.TYPE]===v.space?this.requiredSpace(j):j},A.newNode=function(S,j){return j&&(/^ +$/.test(j)&&(this.options.lossy||(this.spaces=(this.spaces||"")+j),j=!0),S.namespace=j,I(S,"namespace")),this.spaces&&(S.spaces.before=this.spaces,this.spaces=""),this.current.append(S)},A.content=function(S){return S===void 0&&(S=this.currToken),this.css.slice(S[f.FIELDS.START_POS],S[f.FIELDS.END_POS])},A.locateNextMeaningfulToken=function(S){S===void 0&&(S=this.position+1);for(var j=S;j<this.tokens.length;)if(q[this.tokens[j][f.FIELDS.TYPE]]){j++;continue}else return j;return-1},w(X,[{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]}}]),X}();e.default=_,t.exports=e.default}(sn,sn.exports);var K0=sn.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(K0);function s(i){return i&&i.__esModule?i:{default:i}}var n=function(){function i(c,o){this.func=c||function(){},this.funcRes=null,this.options=o}var a=i.prototype;return a._shouldUpdateSelector=function(o,l){l===void 0&&(l={});var d=Object.assign({},this.options,l);return d.updateSelector===!1?!1:typeof o!="string"},a._isLossy=function(o){o===void 0&&(o={});var l=Object.assign({},this.options,o);return l.lossless===!1},a._root=function(o,l){l===void 0&&(l={});var d=new r.default(o,this._parseOptions(l));return d.root},a._parseOptions=function(o){return{lossy:this._isLossy(o)}},a._run=function(o,l){var d=this;return l===void 0&&(l={}),new Promise(function(h,m){try{var b=d._root(o,l);Promise.resolve(d.func(b)).then(function(C){var f=void 0;return d._shouldUpdateSelector(o,l)&&(f=b.toString(),o.selector=f),{transform:C,root:b,string:f}}).then(h,m)}catch(C){m(C);return}})},a._runSync=function(o,l){l===void 0&&(l={});var d=this._root(o,l),h=this.func(d);if(h&&typeof h.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var m=void 0;return l.updateSelector&&typeof o!="string"&&(m=d.toString(),o.selector=m),{transform:h,root:d,string:m}},a.ast=function(o,l){return this._run(o,l).then(function(d){return d.root})},a.astSync=function(o,l){return this._runSync(o,l).root},a.transform=function(o,l){return this._run(o,l).then(function(d){return d.transform})},a.transformSync=function(o,l){return this._runSync(o,l).transform},a.process=function(o,l){return this._run(o,l).then(function(d){return d.string||d.root.toString()})},a.processSync=function(o,l){var d=this._runSync(o,l);return d.string||d.root.toString()},i}();e.default=n,t.exports=e.default})(rn,rn.exports);var J0=rn.exports,Aa={},$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 e2=pt(Sn),t2=pt($a),r2=pt(za),s2=pt(Ea),n2=pt(Da),i2=pt(Ra),a2=pt(Oa),o2=pt(Ta),l2=pt(Ma),c2=pt(Pa),u2=pt(La),d2=pt(Ia);function pt(t){return t&&t.__esModule?t:{default:t}}var h2=function(e){return new e2.default(e)};$e.attribute=h2;var f2=function(e){return new t2.default(e)};$e.className=f2;var p2=function(e){return new r2.default(e)};$e.combinator=p2;var m2=function(e){return new s2.default(e)};$e.comment=m2;var g2=function(e){return new n2.default(e)};$e.id=g2;var v2=function(e){return new i2.default(e)};$e.nesting=v2;var y2=function(e){return new a2.default(e)};$e.pseudo=y2;var _2=function(e){return new o2.default(e)};$e.root=_2;var b2=function(e){return new l2.default(e)};$e.selector=b2;var C2=function(e){return new c2.default(e)};$e.string=C2;var w2=function(e){return new u2.default(e)};$e.tag=w2;var x2=function(e){return new d2.default(e)};$e.universal=x2;var ke={};ke.__esModule=!0,ke.isNode=Dn,ke.isPseudoElement=Wa,ke.isPseudoClass=I2,ke.isContainer=z2,ke.isNamespace=R2,ke.isUniversal=ke.isTag=ke.isString=ke.isSelector=ke.isRoot=ke.isPseudo=ke.isNesting=ke.isIdentifier=ke.isComment=ke.isCombinator=ke.isClassName=ke.isAttribute=void 0;var Oe=me,rt,S2=(rt={},rt[Oe.ATTRIBUTE]=!0,rt[Oe.CLASS]=!0,rt[Oe.COMBINATOR]=!0,rt[Oe.COMMENT]=!0,rt[Oe.ID]=!0,rt[Oe.NESTING]=!0,rt[Oe.PSEUDO]=!0,rt[Oe.ROOT]=!0,rt[Oe.SELECTOR]=!0,rt[Oe.STRING]=!0,rt[Oe.TAG]=!0,rt[Oe.UNIVERSAL]=!0,rt);function Dn(t){return typeof t=="object"&&S2[t.type]}function mt(t,e){return Dn(e)&&e.type===t}var Ha=mt.bind(null,Oe.ATTRIBUTE);ke.isAttribute=Ha;var k2=mt.bind(null,Oe.CLASS);ke.isClassName=k2;var T2=mt.bind(null,Oe.COMBINATOR);ke.isCombinator=T2;var M2=mt.bind(null,Oe.COMMENT);ke.isComment=M2;var $2=mt.bind(null,Oe.ID);ke.isIdentifier=$2;var E2=mt.bind(null,Oe.NESTING);ke.isNesting=E2;var Ln=mt.bind(null,Oe.PSEUDO);ke.isPseudo=Ln;var D2=mt.bind(null,Oe.ROOT);ke.isRoot=D2;var L2=mt.bind(null,Oe.SELECTOR);ke.isSelector=L2;var P2=mt.bind(null,Oe.STRING);ke.isString=P2;var Na=mt.bind(null,Oe.TAG);ke.isTag=Na;var O2=mt.bind(null,Oe.UNIVERSAL);ke.isUniversal=O2;function Wa(t){return Ln(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 I2(t){return Ln(t)&&!Wa(t)}function z2(t){return!!(Dn(t)&&t.walk)}function R2(t){return Ha(t)||Na(t)}(function(t){t.__esModule=!0;var e=me;Object.keys(e).forEach(function(n){n==="default"||n==="__esModule"||n in t&&t[n]===e[n]||(t[n]=e[n])});var r=$e;Object.keys(r).forEach(function(n){n==="default"||n==="__esModule"||n in t&&t[n]===r[n]||(t[n]=r[n])});var s=ke;Object.keys(s).forEach(function(n){n==="default"||n==="__esModule"||n in t&&t[n]===s[n]||(t[n]=s[n])})})(Aa),function(t,e){e.__esModule=!0,e.default=void 0;var r=a(J0),s=i(Aa);function n(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return n=function(){return l},l}function i(l){if(l&&l.__esModule)return l;if(l===null||typeof l!="object"&&typeof l!="function")return{default:l};var d=n();if(d&&d.has(l))return d.get(l);var h={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in l)if(Object.prototype.hasOwnProperty.call(l,b)){var C=m?Object.getOwnPropertyDescriptor(l,b):null;C&&(C.get||C.set)?Object.defineProperty(h,b,C):h[b]=l[b]}return h.default=l,d&&d.set(l,h),h}function a(l){return l&&l.__esModule?l:{default:l}}var c=function(d){return new r.default(d)};Object.assign(c,s),delete c.__esModule;var o=c;e.default=o,t.exports=e.default}(tn,tn.exports);var B2=tn.exports;const F2=q1,Ya=B2,A2=Ya();var H2={isUsableColor(t,e){return F2(e)&&t!=="gray"&&e[600]},commonTrailingPseudos(t){let e=A2.astSync(t),r=[];for(let[n,i]of e.nodes.entries())for(const[a,c]of[...i.nodes].reverse().entries()){if(c.type!=="pseudo"||!c.value.startsWith("::"))break;r[a]=r[a]||[],r[a][n]=c}let s=Ya.selector();for(const n of r){if(!n)continue;if(new Set([...n.map(a=>a.value)]).size>1)break;n.forEach(a=>a.remove()),s.prepend(n[0])}return s.nodes.length?[s.toString(),e.toString()]:[null,t]}};const N2=wa,W2=P1,Y2=z1,j2=R1,{commonTrailingPseudos:U2}=H2,ja={};function Pn(t,{className:e,modifier:r,prefix:s}){let n=s(`.not-${e}`).slice(1),i=t.startsWith(">")?`${r==="DEFAULT"?`.${e}`:`.${e}-${r}`} `:"",[a,c]=U2(t);return a?`:where(${i}${c}):not(:where([class~="${n}"],[class~="${n}"] *))${a}`:`:where(${i}${t}):not(:where([class~="${n}"],[class~="${n}"] *))`}function Ua(t){return typeof t=="object"&&t!==null}function G2(t={},{target:e,className:r,modifier:s,prefix:n}){function i(a,c){return e==="legacy"?[a,c]:Array.isArray(c)?[a,c]:Ua(c)?Object.values(c).some(Ua)?[Pn(a,{className:r,modifier:s,prefix:n}),c,Object.fromEntries(Object.entries(c).map(([l,d])=>i(l,d)))]:[Pn(a,{className:r,modifier:s,prefix:n}),c]:[a,c]}return Object.fromEntries(Object.entries(W2({},...Object.keys(t).filter(a=>ja[a]).map(a=>ja[a](t[a])),...Y2(t.css||{}))).map(([a,c])=>i(a,c)))}var Ga=N2.withOptions(({className:t="prose",target:e="modern"}={})=>function({addVariant:r,addComponents:s,theme:n,prefix:i}){let a=n("typography"),c={className:t,prefix:i};for(let[o,...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?[o]:l;let d=e==="legacy"?l.map(h=>`& ${h}`):l.join(", ");r(`${t}-${o}`,e==="legacy"?d:`& :is(${Pn(d,c)})`)}s(Object.keys(a).map(o=>({[o==="DEFAULT"?`.${t}`:`.${t}-${o}`]:G2(a[o],{target:e,className:t,modifier:o,prefix:i})})))},()=>({theme:{typography:j2}}));const qa=xr(Ga),q2=Ns({__proto__:null,default:qa},[Ga]);var Za={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});const e=s=>Object.assign({},...Object.entries(s!=null?s:{}).flatMap(([n,i])=>typeof i=="object"?Object.entries(e(i)).map(([a,c])=>({[n+(a==="DEFAULT"?"":`-${a}`)]:c})):[{[`${n}`]:i}])),r=e})(Za);var Z2={importDefault:t=>t&&t.__esModule?t.default:t};const X2=Za,{importDefault:V2}=Z2,Q2=V2(X2),On=["track","thumb","corner"],es=(t,e)=>e?{"@supports (-moz-appearance:none)":t}:t,K2=({addBase:t},e)=>{t({"*":es({"scrollbar-color":"initial","scrollbar-width":"initial"},e==="pseudoelements")})},Xa=()=>({...Object.fromEntries(On.map(t=>[[`&::-webkit-scrollbar-${t}`,{"background-color":`var(--scrollbar-${t})`,"border-radius":`var(--scrollbar-${t}-radius)`}]]).flat())}),J2=({preferPseudoElements:t})=>({".scrollbar":{...Xa(),...es({"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":{...Xa(),...es({"scrollbar-width":"thin","scrollbar-color":"var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)"},t),"&::-webkit-scrollbar":{display:"block",width:"8px",height:"8px"}},".scrollbar-none":{...es({"scrollbar-width":"none"},t),"&::-webkit-scrollbar":{display:"none"}}}),Va=t=>typeof t=="function"?t({}):t;var ec={addBaseStyles:K2,addBaseSizeUtilities:({addUtilities:t},e)=>{t(J2({preferPseudoElements:e==="pseudoelements"}))},addColorUtilities:({matchUtilities:t,theme:e})=>{const r=Q2(e("colors")),s=Object.fromEntries(Object.entries(r).map(([n,i])=>[n,Va(i)]));On.forEach(n=>{t({[`scrollbar-${n}`]:i=>({[`--scrollbar-${n}`]:Va(i)})},{values:s,type:"color"})})},addRoundedUtilities:({theme:t,matchUtilities:e})=>{On.forEach(r=>{e({[`scrollbar-${r}-rounded`]:s=>({[`--scrollbar-${r}-radius`]:s})},{values:t("borderRadius")})})},addSizeUtilities:({matchUtilities:t,theme:e})=>{["width","height"].forEach(r=>{t({[`scrollbar-${r[0]}`]:s=>({[`--scrollbar-${r}`]:s})},{values:e(r)})})}},tc={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 rc=wa,{addBaseStyles:sc,addBaseSizeUtilities:nc,addColorUtilities:ic,addRoundedUtilities:ac,addSizeUtilities:oc}=ec,{addVariants:lc}=tc;var Qa=rc.withOptions((t={})=>e=>{var s;let r=(s=t.preferredStrategy)!=null?s:"standard";r!=="standard"&&r!=="pseudoelements"&&(console.warn("WARNING: tailwind-scrollbar preferredStrategy should be 'standard' or 'pseudoelements'"),r="standard"),sc(e,r),nc(e,r),ic(e),lc(e),t.nocompatible&&(ac(e),oc(e))});const Ka=xr(Qa),cc=Ns({__proto__:null,default:Ka},[Qa]);var ts={exports:{}};const Sr=_a||L1,uc={50:"#FCE3E4",100:"#F9CDCE",200:"#F39699",300:"#ED6368",400:"#E72C32",500:"#C4161C",600:"#9C1216",700:"#770D11",800:"#4E090B",900:"#290506"},Ze={warning:Sr.amber,error:Sr.red,info:Sr.slate,success:Sr.emerald,primary:Sr.blue,brand:uc},dc={...Ze,warning:Ze.warning[500],"warning-darken":Ze.warning[600],"warning-lighten":Ze.warning[400],success:Ze.success[500],"success-darken":Ze.success[600],"success-lighten":Ze.success[400],error:Ze.error[500],"error-darken":Ze.error[600],"error-lighten":Ze.error[400],info:Ze.info[500],"info-darken":Ze.info[600],"info-lighten":Ze.info[400],primary:Ze.primary[500],"primary-darken":Ze.primary[600],"primary-lighten":Ze.primary[400]},hc={prefix:"e-",dark:"class",corePlugins:{preflight:!1},content:["./src/**/*.{html,js,vue,ts}"],theme:{extend:{ringWidth:{1:"1px"},colors:dc,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:[qa||q2,Ka||cc({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)-./}]};ts.exports=hc;const fc=(ts.exports==null?{}:ts.exports).default||ts.exports,In=D1(fc),Ja=In.theme.fontSize,eo=In.theme.colors,pc=[U.Dot,U.Xs,U.Sm,U.Md,U.Lg,U.Xl],mc=[U.Xs,U.Sm,U.Md,U.Lg,U.Xl,U.TwoXl],to=[U.Xs,U.Sm,U.Md,U.Base,U.Lg,U.Xl,U.TwoXl,U.ThreeXl,U.FourXl,U.FiveXl,U.SixXl,U.SevenXl,U.EightXl,U.NineXl],gc=[U.Sm,U.Md,U.Lg],vc=[ce.Warning,ce.Error,ce.Info,ce.Success,ce.Primary,ce.Default],yc=[ce.Warning,ce.Error,ce.Info,ce.Success,ce.Primary,ce.Default],_c=[Je.Top,Je.Bottom,Je.Right,Je.Left],bc=["play","pause","ended","loadeddata","waiting","playing","timeupdate","canplay","canplaythrough","statechanged"],ro=[{label:"Volume",keys:["↑","↓"]},{label:"Seek",keys:["←","→"]},{label:"Play/Pause",keys:["Space","K"]},{label:"Fullscreen",keys:["F"]},{label:"Exit fullscreen",keys:["Esc"]}],kr=[Ge.PlaybackRate,Ge.SeekStep,Ge.LoopEnabled,Ge.MutedOnStart,Ge.AutoplayEnabled,Ge.Shortcuts,Ge.Reset],so={[Ge.PlaybackRate]:"Playback speed",[Ge.SeekStep]:"Seek step",[Ge.LoopEnabled]:"Loop",[Ge.MutedOnStart]:"Mute on start",[Ge.AutoplayEnabled]:"Autoplay",[Ge.Shortcuts]:"Shortcuts",[Ge.Reset]:"Reset preferences"},zn=["play","pause","ended","loadeddata","waiting","playing","timeupdate","canplay","canplaythrough","error"],rs="e-video-player-settings-prefs",Kt={none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",full:"9999px"},Cc=E.extend({name:"BaseIcon",props:{name:{type:String,default:"box"},color:{type:String,default:"#3c3c3c"},fill:{type:String,default:null},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 wc=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("svg",e._g(e._b({staticClass:"svg-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:e.viewBox,width:e.size||e.width,height:e.size||e.height,"aria-labelledby":e.name,role:"presentation"}},"svg",e.$attrs,!1),e.$listeners),[r("g",{ref:"group",attrs:{fill:e.fill||e.color}},[e._t("default",null,{color:e.color})],2)])},xc=[],Sc=z(Cc,wc,xc,!1,null,null,null,null);const fe=Sc.exports,kc=E.extend({name:"Bim",components:{BaseIcon:fe},props:{color:{type:String,default:"white"}}});var Tc=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
4
4
  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
5
5
  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
6
6
  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
@@ -58,7 +58,7 @@ m367 -176 c192 -56 348 -207 420 -405 34 -93 34 -285 0 -378 -72 -198 -228
58
58
  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
59
59
  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
60
60
  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
61
- C381.849,397.128,373.942,405.036,364.187,405.036z`}})])])])},$5=[],E5=z(T5,M5,$5,!1,null,null,null,null);const so=E5.exports,D5=E.extend({name:"FlatbedSemiTrailer",components:{BaseIcon:fe}});var L5=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 "}})])])},P5=[],O5=z(D5,L5,P5,!1,null,null,null,null);const I5=O5.exports,z5=E.extend({name:"FreeDrawing",components:{BaseIcon:fe},props:{color:{type:String,default:"grey"}}});var R5=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"}})])},B5=[],F5=z(z5,R5,B5,!1,null,null,null,null);const A5=F5.exports,H5=E.extend({name:"IModel",components:{BaseIcon:fe}});var N5=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"}})])])},W5=[],Y5=z(H5,N5,W5,!1,null,null,null,null);const j5=Y5.exports,U5=E.extend({name:"Inspection",components:{BaseIcon:fe},props:{color:{type:String,default:"white"}}});var G5=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 "}})])},q5=[],Z5=z(U5,G5,q5,!1,null,null,null,null);const X5=Z5.exports,V5=E.extend({name:"Worker",components:{BaseIcon:fe}});var Q5=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
61
+ C381.849,397.128,373.942,405.036,364.187,405.036z`}})])])])},$5=[],E5=z(T5,M5,$5,!1,null,null,null,null);const no=E5.exports,D5=E.extend({name:"FlatbedSemiTrailer",components:{BaseIcon:fe}});var L5=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 "}})])])},P5=[],O5=z(D5,L5,P5,!1,null,null,null,null);const I5=O5.exports,z5=E.extend({name:"FreeDrawing",components:{BaseIcon:fe},props:{color:{type:String,default:"grey"}}});var R5=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"}})])},B5=[],F5=z(z5,R5,B5,!1,null,null,null,null);const A5=F5.exports,H5=E.extend({name:"IModel",components:{BaseIcon:fe}});var N5=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"}})])])},W5=[],Y5=z(H5,N5,W5,!1,null,null,null,null);const j5=Y5.exports,U5=E.extend({name:"Inspection",components:{BaseIcon:fe},props:{color:{type:String,default:"white"}}});var G5=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 "}})])},q5=[],Z5=z(U5,G5,q5,!1,null,null,null,null);const X5=Z5.exports,V5=E.extend({name:"Worker",components:{BaseIcon:fe}});var Q5=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
62
62
  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
63
63
  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
64
64
  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
@@ -73,7 +73,7 @@ m367 -176 c192 -56 348 -207 420 -405 34 -93 34 -285 0 -378 -72 -198 -228
73
73
  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
74
74
  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
75
75
  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
76
- 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`}})])])},K5=[],J5=z(V5,Q5,K5,!1,null,null,null,null);const eu=J5.exports,tu=E.extend({name:"MiniModel",components:{BaseIcon:fe}});var ru=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 "}})])},su=[],nu=z(tu,ru,su,!1,null,null,null,null);const iu=nu.exports,au=E.extend({name:"OtherTrucks"});var ou=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("?")])},lu=[],cu=z(au,ou,lu,!1,null,null,null,null);const no=cu.exports,uu=E.extend({name:"RoadVehicle",components:{BaseIcon:fe}});var du=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 "}})])])},hu=[],fu=z(uu,du,hu,!1,null,null,null,null);const pu=fu.exports,mu=E.extend({name:"Roller",components:{BaseIcon:fe}});var gu=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
76
+ 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`}})])])},K5=[],J5=z(V5,Q5,K5,!1,null,null,null,null);const eu=J5.exports,tu=E.extend({name:"MiniModel",components:{BaseIcon:fe}});var ru=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 "}})])},su=[],nu=z(tu,ru,su,!1,null,null,null,null);const iu=nu.exports,au=E.extend({name:"OtherTrucks"});var ou=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("?")])},lu=[],cu=z(au,ou,lu,!1,null,null,null,null);const io=cu.exports,uu=E.extend({name:"RoadVehicle",components:{BaseIcon:fe}});var du=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 "}})])])},hu=[],fu=z(uu,du,hu,!1,null,null,null,null);const pu=fu.exports,mu=E.extend({name:"Roller",components:{BaseIcon:fe}});var gu=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
77
77
  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
78
78
  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
79
79
  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
@@ -229,21 +229,21 @@ m367 -176 c192 -56 348 -207 420 -405 34 -93 34 -285 0 -378 -72 -198 -228
229
229
  510 154 506 4 -4 72 -236 152 -517z m361 -1029 c13 -13 27 -35 30 -48 27 -116
230
230
  285 -1327 285 -1339 0 -25 -152 -89 -316 -134 -139 -38 -243 -55 -414 -65
231
231
  -174 -10 -311 -1 -476 31 -186 35 -454 134 -454 167 0 26 280 1325 292 1355
232
- 23 59 9 57 541 57 l488 0 24 -24z`}})])])},yd=[],_d=z(gd,vd,yd,!1,null,null,null,null);const bd=_d.exports,Cd=E.extend({name:"ZohoCrm",components:{BaseIcon:fe},props:{color:{type:String,default:"grey"}}});var wd=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"}})])},xd=[],Sd=z(Cd,wd,xd,!1,null,null,null,null);const kd=Sd.exports,Td=E.extend({name:"Tag",components:{BaseIcon:fe},props:{color:{type:String,default:"#000"},backgroundColor:{type:String,default:"white"}}});var Md=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"}})])},$d=[],Ed=z(Td,Md,$d,!1,null,null,null,null);const Dd=Ed.exports,Ld=E.extend({name:"Tag",components:{BaseIcon:fe},props:{color:{type:String,default:"#000"},backgroundColor:{type:String,default:"white"}}});var Pd=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"}})])},Od=[],Id=z(Ld,Pd,Od,!1,null,null,null,null);const zd=Id.exports,Rd=E.extend({name:"Nerves",components:{BaseIcon:fe},props:{color:{type:String,default:"white"}}});var Bd=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"}})])])])},Fd=[],Ad=z(Rd,Bd,Fd,!1,null,null,null,null);const Hd=Ad.exports,Nd=E.extend({name:"Procore",components:{BaseIcon:fe},props:{color:{type:String,default:"white"}}});var Wd=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"1608px",height:"204px",viewBox:"0 0 1608 204",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{staticClass:"s0",attrs:{id:"_Compound_Path_","fill-rule":"evenodd",d:"m1407.6 1h200.4v37.6h-147.4v44.6h94.4v37.5h-94.4v44.6h147.4v37.8h-200.4zm-732.4 41.6v118.8c0.2 5.5-0.7 10.9-2.7 16-2.1 5.1-5.1 9.7-9 13.5-3.8 3.9-8.4 6.9-13.5 8.9-5.1 2-10.6 3-16 2.8h-130.5c-5.5 0.2-11-0.6-16.2-2.6-5.1-2-9.8-5-13.8-8.8-3.9-3.9-7-8.5-9.1-13.7-2-5.1-3-10.6-2.8-16.1v-118.8c-0.2-5.5 0.7-10.9 2.8-16 2-5.1 5-9.7 8.9-13.6 3.9-3.8 8.5-6.8 13.6-8.8 5.1-2 10.6-3 16-2.8h130.5c5.5-0.3 11 0.6 16.2 2.6 5.1 1.9 9.8 4.9 13.7 8.8 4 3.9 7.1 8.5 9.1 13.6 2 5.2 3 10.7 2.8 16.2zm-32.7 59.4l-37-63.5h-74.4l-36 63.5 36.7 63.4h74.5zm704.7 26.9l43 74.3h-57.2l-42.9-74.3h-61.9v74.3h-53v-202.2h168.1c5.5-0.2 11 0.7 16.2 2.7 5.1 2.1 9.8 5.1 13.6 9 3.9 3.9 7 8.6 9 13.8 1.9 5.1 2.8 10.6 2.6 16.1v45.8c0.1 5.1-0.8 10.1-2.6 14.9-1.8 4.8-4.5 9.2-7.9 12.9-3.5 3.8-7.7 6.8-12.3 9-4.6 2.2-9.6 3.4-14.7 3.7zm-14.9-77.8c0-1.7-0.4-3.3-1-4.8-0.6-1.5-1.6-2.9-2.7-4-1.2-1.2-2.6-2.1-4.1-2.7-1.5-0.7-3.1-1-4.7-1h-90.9v52.9h90.9c1.6 0 3.2-0.4 4.7-1 1.5-0.6 2.9-1.6 4.1-2.7 1.1-1.2 2.1-2.5 2.7-4 0.6-1.6 1-3.2 1-4.8zm-181.5-8.5v118.9c0.1 5.4-0.8 10.9-2.8 16-2.1 5-5.1 9.7-9 13.5-3.9 3.9-8.5 6.9-13.6 8.9-5.1 2-10.5 2.9-16 2.7h-130.4c-5.5 0.2-10.9-0.8-15.9-2.8-5.1-2-9.7-5.1-13.5-8.9-3.9-3.9-6.9-8.5-8.8-13.5-2-5.1-3-10.5-2.8-15.9v-118.9c-0.2-5.4 0.8-10.9 2.8-15.9 2-5.1 5-9.7 8.9-13.6 3.9-3.8 8.5-6.9 13.6-8.9 5-2 10.5-2.9 16-2.7h130.4c5.4-0.2 10.9 0.8 15.9 2.8 5.1 2 9.7 5.1 13.5 8.9 3.9 3.9 6.9 8.5 8.9 13.5 2 5.1 2.9 10.5 2.8 15.9zm-32.9 59.5l-36.8-63.5h-74.4l-36.2 63.5 36.9 63.4h74.4zm-229-98.5c5.2 2 10 5.1 13.9 9 4 3.9 7.1 8.6 9.1 13.8 2 5.2 2.9 10.7 2.7 16.3v32.4h-48.6l-21.1-36.4h-74.5l-36.7 63.4 36 63.4h74.4l21.2-36.4h48.5v32.4c0.2 5.5-0.7 10.9-2.7 16-2 5.1-5.1 9.7-8.9 13.5-3.9 3.9-8.5 6.9-13.6 8.9-5.1 2-10.6 3-16 2.8h-130.4c-5.5 0.2-11-0.8-16.1-2.8-5.1-2-9.7-5-13.6-8.9-3.9-3.8-6.9-8.4-8.9-13.5-2-5.1-3-10.5-2.8-16v-118.8c-0.3-5.5 0.6-11 2.6-16.1 2-5.2 5.1-9.8 9-13.7 3.8-4 8.5-7 13.6-9 5.1-2.1 10.6-3 16.2-2.8h130.4c5.5-0.3 11.1 0.5 16.3 2.5zm-486.8 125.4l43 74.3h-56.7l-43-74.3h-62.4v74.3h-52.4v-202.2h167.9c5.5-0.2 11 0.7 16.1 2.8 5.2 2 9.8 5 13.7 9 3.9 3.9 6.9 8.5 8.9 13.7 2 5.1 2.9 10.6 2.7 16.1v45.7c0.1 5.2-0.7 10.3-2.6 15-1.8 4.8-4.5 9.2-8 13-3.5 3.7-7.7 6.8-12.4 8.9-4.6 2.2-9.7 3.4-14.8 3.7zm-14.9-77.9c0-1.6-0.4-3.2-1-4.7-0.7-1.6-1.6-2.9-2.8-4.1-1.1-1.2-2.5-2.1-4-2.7-1.6-0.6-3.2-0.9-4.9-0.9h-91.5v52.8h90.7c1.6 0 3.2-0.3 4.8-0.9 1.5-0.6 2.9-1.5 4-2.7 1.2-1.2 2.2-2.5 2.8-4 0.6-1.6 1-3.2 1-4.8zm-177.8-8.5v45.8c0.2 5.4-0.7 10.8-2.7 15.9-2 5.1-5.1 9.7-8.9 13.6-3.9 3.8-8.5 6.9-13.6 8.9-5.1 2-10.5 2.9-16 2.7h-115.1v74.3h-53v-202.8h168.1c5.5-0.2 11 0.8 16.1 2.8 5.1 2 9.8 5.1 13.6 9 3.9 3.9 6.9 8.6 8.9 13.7 2 5.1 2.9 10.6 2.6 16.1zm-53 8.9c0-1.6-0.3-3.3-1-4.8-0.6-1.5-1.6-2.9-2.7-4-1.2-1.2-2.6-2.1-4.1-2.7-1.5-0.6-3.2-1-4.8-1h-90.7v52.9h90.7c1.6 0 3.3-0.3 4.8-0.9 1.5-0.6 2.9-1.6 4.1-2.7 1.1-1.2 2.1-2.6 2.7-4.1 0.7-1.5 1-3.1 1-4.8z"}}),r("path",{staticStyle:{fill:"#ff5200"},attrs:{d:"m787.8 68.7h38.7l19.3 33.3-19.3 33.3h-38.7l-19.4-33.3 19.4-33.3z"}})])},Yd=[],jd=z(Nd,Wd,Yd,!1,null,null,null,null);const Ud=jd.exports,Gd=E.extend({name:"ProcoreSmall",components:{BaseIcon:fe},props:{color:{type:String,default:"white"}}});var qd=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 1491 1408",small:!0,width:"1491px",height:"1408px",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{style:`fill: ${e.color}`,attrs:{d:"M1311.3 18.5c36.3 13.8 69.3 35.1 96.8 62.4 27.5 27.4 49 60.2 63.1 96.4 14.1 36.1 20.5 74.9 18.7 113.6v226h-338l-147.2-254H486.4L230.3 705.6l250.9 442.7h518.3l147.2-254h338v226c1.3 38-5.2 75.9-19.2 111.4-14 35.4-35.1 67.6-62 94.5-27 26.9-59.1 48-94.6 62-35.4 14-73.3 20.5-111.4 19.2H289.4c-38.1 1.3-76.1-5.2-111.5-19.2-35.5-13.9-67.8-35-94.8-61.9-27-27-48.2-59.1-62.3-94.5-14.1-35.5-20.7-73.4-19.6-111.5V290.9C-.4 252.6 6 214.3 19.9 178.5s35-68.4 62.1-95.6c27-27.3 59.4-48.6 95.1-62.8C212.8 6 251-.7 289.4.7h908.1c38.8-2.1 77.6 4 113.8 17.8"}}),r("path",{attrs:{fill:"#ff5200",d:"M607.7 473.4h269.5L1012 705.6 877.2 937.8H607.7L472.9 705.6z"}})])},Zd=[],Xd=z(Gd,qd,Zd,!1,null,null,null,null);const Vd=Xd.exports,Qd=E.extend({name:"Aconex",components:{BaseIcon:fe},props:{color:{type:String,default:"white"}}});var Kd=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 655 101",small:!0,width:"655px",height:"101px",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{fill:e.color,d:"M37.06 0h14.5C73.84 2.53 89.8 10.9 89.97 35.77q.09 12.18.01 59.51 0 .52-.5.66-12.12 3.44-24.54 5.06H30.19C15.22 98.86 1.82 92.45 0 75.69v-8q2.73-19.08 21.98-23.42c14.83-3.34 25.3-2.59 43.9-2.5q.49.01.53-.48c.95-11.25-1.99-21.4-14.77-23.07-14.54-1.9-28.92.74-42.68 5.25q-.66.21-.79-.46L5.15 6.85q-.1-.53.41-.69Q21.01 1.3 37.06 0ZM24.35 74.69c4.27 15.92 30.28 13.01 41.47 9.94q.68-.19.68-.89V55.5q0-.52-.52-.51c-9.13.02-33.04-2.87-40.14 8.54q-3.13 5.04-1.49 11.16ZM154.81 0h12.25q11.13 1.2 21.36 5.76a.83.83 0 0 1 .48.92l-3 15.83a.52.52 0 0 1-.75.36c-27.94-14.29-61.26-.09-54.36 35.65 5.27 27.29 35.25 30.97 56.27 21.02q.49-.23.6.31l3.06 15.94q.11.59-.44.82-7.43 3.11-15.34 4.39h-26.25q-15.21-2.62-26.13-11.53c-16.7-13.62-20.16-39.21-13.57-58.74C115.54 11.28 135.33 1.3 154.81 0ZM248.06 0h11.75c32.22 3.27 50.15 24.01 47.51 57.05-1.99 24.86-17.32 39.3-41.13 43.95h-25c-32.74-5.35-47.18-33.29-39.87-64.54C206.8 12.99 225.42 1.94 248.06 0Zm-13.87 77.81q9.04 7.19 19.94 6.86c24.28-.73 31.99-22.11 28.35-42.89q-2.6-14.88-14.73-21.05c-11.98-6.1-29.11-3.64-37.41 7.36-9.48 12.56-9.31 39.26 3.85 49.72ZM362.06 0h15.25c24.46 1.67 41.07 14.59 41.19 40.25q.14 30.38-.19 60.75h-23.37q.3-47.86-.06-62.79-.28-12.04-9.02-17.06c-8.64-4.96-28.52-4.3-37.92.78q-.47.26-.47.8l-.12 78.27h-23.41l.04-92.38a1.27 1.25 79.6 0 1 .8-1.18C336.61 2.83 349.45.82 362.06 0ZM478.31 0h12.5q10.95 1.05 19.44 5.01c19.43 9.09 24.7 32.45 21.32 51.95a.35.34-85 0 1-.34.29H460.5q-.84 0-.81.84c1 33.28 42.06 28.48 62.32 21.97.88-.28 1.87-1.01 2.95-1.25q.58-.13.74.45l4.34 15.68q.14.51-.36.7-10.43 3.75-21.24 5.36h-31.25c-21-3.64-36.42-13.77-41.03-35.42q-3.17-14.86-.04-30.6c4.43-22.3 20.94-32.9 42.19-34.98Zm16.13 18.09c-18.4-6.52-36.52 5.09-34.51 25.65q.05.51.56.51h46.53a.45.45 0 0 0 .45-.44c.18-9.71-2.8-22.09-13.03-25.72Z"}}),r("path",{attrs:{fill:"#e86c17",d:"M542.06 0h30.25l22.64 27.91q.3.37.3.85v18.49q0 .5-.5.5h-13.76q-.53 0-.86-.41L541.89.39q-.06-.08.01-.16.09-.09.16-.23Z"}}),r("path",{attrs:{fill:e.color,d:"M624.06 0h30.25q-.05.16.06.26.06.07 0 .14l-38.23 46.94q-.33.41-.86.41H602q-.75 0-.75-.75V28.7q0-.6.38-1.07L624.06 0ZM572.19 101h-29.75l-.08-.31q-.04-.17.07-.31l37.7-46.31q.25-.32.66-.32h13.71q.75 0 .75.75v17.97q0 .45-.28.79L572.19 101Z"}}),r("path",{attrs:{fill:"#e86c17",d:"M653.94 101h-30.25l-22.11-27.25q-.33-.42-.33-.95V54.25q0-.5.5-.5h13.72q.47 0 .76.36c3.44 4.23 38 46.23 37.71 46.89Z"}})])},Jd=[],e3=z(Qd,Kd,Jd,!1,null,null,null,null);const t3=e3.exports,r3=E.extend({name:"AconexSmall",components:{BaseIcon:fe},props:{color:{type:String,default:"white"}}});var s3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 580 520",small:!0,width:"580px",height:"520px",color:e.color}},"BaseIcon",e.$attrs,!1),[r("g",{attrs:{transform:"translate(-490, -270)"}},[r("path",{attrs:{fill:"#e86c17",d:"M494.66 271h150.1a.35.35 0 0 1 .28.13l115.38 141.98a.35.35 0 0 1 .08.22v95.82a.35.35 0 0 1-.35.35h-72.24a.35.35 0 0 1-.28-.13l-193.25-237.8a.35.35 0 0 1 .28-.57Z"}}),r("path",{style:`fill: ${e.color}`,attrs:{d:"M906.72 271h150.14a.32.32 0 0 1 .25.52L863.96 509.38a.32.32 0 0 1-.25.12h-72.14a.32.32 0 0 1-.32-.32v-96.06a.32.32 0 0 1 .07-.2l115.15-141.8a.32.32 0 0 1 .25-.12ZM688.14 540.25h71.94a.42.42 0 0 1 .42.42v95.97a.42.42 0 0 1-.09.27l-117.7 144.93a.42.42 0 0 1-.33.16H492.51a.42.42 0 0 1-.32-.68l195.62-240.91a.42.42 0 0 1 .33-.16Z"}}),r("path",{attrs:{fill:"#e86c17",d:"M1059.1 781.2a.83.83 0 0 1-.83.8H909.73a1.11 1.1-19.3 0 1-.86-.41L791.56 637.23a1.38 1.38 0 0 1-.31-.87v-95.61a.5.5 0 0 1 .5-.5h71.52a1.1 1.1 0 0 1 .85.4q97.41 119.9 194.78 239.94.21.26.2.61Z"}})])])},n3=[],i3=z(r3,s3,n3,!1,null,null,null,null);const a3=i3.exports,o3=E.extend({name:"Autodesk",components:{BaseIcon:fe},props:{color:{type:String,default:"white"}}});var l3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 1619.27 166.13",small:!0,width:"1619.27px",height:"166.13px",color:e.color}},"BaseIcon",e.$attrs,!1),[r("polygon",{attrs:{points:"1619.27 4.34 1571.33 4.34 1513.91 68.46 1513.91 4.34 1473.66 4.34 1473.86 162.18 1513.91 162.18 1513.91 102.2 1568.37 162.18 1619.27 162.18 1545.88 84.25 1619.27 4.34"}}),r("path",{attrs:{d:"M1479.12,135.19l-36.7-4.14c-21.51-2.37-26.83-7.7-26.83-15,0-8.09,11.05-15.39,32.55-15.39,20.72,0,31.57,7.7,33.54,19.34h39.46c-2-33.35-30-54.06-70.83-54.06-48.53,0-73,19.33-73,53.46,0,27.82,16.18,40.85,49.72,44.4l37.29,3.94c14.21,1.58,20.72,7.11,20.72,14.21,0,8.09-9.47,15.39-32.36,15.39-26.44,0-37.09-6.71-38.87-20.13h-38.67c1.78,36.31,25.45,54.85,76.16,54.85,46.36,0,72.21-20.32,72.21-50.9C1523.51,154.52,1508.12,138.54,1479.12,135.19Z",transform:"translate(-70.36 -65.94)"}}),r("polygon",{attrs:{points:"1159.96 162.18 1287.02 162.18 1287.02 128.05 1200.21 128.05 1200.21 99.44 1270.05 99.44 1270.05 65.11 1200.21 65.11 1200.21 38.47 1287.02 38.47 1287.02 4.34 1159.96 4.34 1159.96 162.18"}}),r("path",{attrs:{d:"M1135.62,70.28h-73.79V228.12h73.79c56.63,0,72.21-21.11,72.21-80.11C1207.83,92.57,1192.84,70.28,1135.62,70.28ZM1134,194h-32V104.41h32c25.26,0,32.75,6.91,32.75,43.6C1166.79,181.55,1158.31,194,1134,194Z",transform:"translate(-70.36 -65.94)"}}),r("path",{attrs:{d:"M952.53,65.94c-57.42,0-87.21,35.31-87.21,82.86,0,47.75,29.79,83.26,87.21,83.26,57.61,0,87.4-35.51,87.4-83.26C1039.93,101.25,1010.14,65.94,952.53,65.94Zm0,130.61c-29.79,0-46.17-18.15-46.17-47.75,0-29,16.38-47.35,46.17-47.35,30,0,46.17,18.35,46.17,47.35C998.7,178.4,982.52,196.55,952.53,196.55Z",transform:"translate(-70.36 -65.94)"}}),r("polygon",{attrs:{points:"646.59 38.47 697.49 38.47 697.49 162.18 737.74 162.18 737.74 38.47 788.45 38.47 788.45 4.34 646.59 4.34 646.59 38.47"}}),r("path",{attrs:{d:"M658.36,167.74c0,20.52-12.63,28.81-34.14,28.81-20.91,0-34.52-8.68-34.52-28.81V70.28H549.45v102c0,45.58,40.64,59.78,74.77,59.78,33.94,0,74.38-14.2,74.38-59.78v-102H658.36Z",transform:"translate(-70.36 -65.94)"}}),r("path",{attrs:{d:"M431.66,70.28,371.09,228.12h41.63l10.57-29.6h67.62l10.4,29.6h43L483,70.28Zm3.61,94.7,22.11-61.87L479.12,165Z",transform:"translate(-70.36 -65.94)"}}),r("path",{attrs:{d:"M71.6,228.13l141.34-87.92h73.32a4.28,4.28,0,0,1,4.28,4.29,3.72,3.72,0,0,1-2,3.6l-69.42,41.62c-4.51,2.7-6.09,8.12-6.09,12.18l-.07,26.23h88.22V75.69a5.41,5.41,0,0,0-5.64-5.42H211.36l-141,87.54v70.32Z",transform:"translate(-70.36 -65.94)"}})])},c3=[],u3=z(o3,l3,c3,!1,null,null,null,null);const d3=u3.exports,h3=E.extend({name:"AutodeskSmall",components:{BaseIcon:fe},props:{color:{type:String,default:"black"}}});var f3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 24 24",small:!0,height:"24px",width:"24px",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{style:`fill: ${e.color}`,attrs:{d:"m15 11.5 -14 8v-7l13.5 -8H22a1 1 0 0 1 1 1v14h-9v-2.485a1 1 0 0 1 0.419 -0.814l5.946 -4.248a0.25 0.25 0 0 0 -0.145 -0.453H15Z","stroke-width":"1"}})])},p3=[],m3=z(h3,f3,p3,!1,null,null,null,null);const g3=m3.exports,v3=E.extend({name:"ProcoreObservations",components:{BaseIcon:fe},props:{color:{type:String,default:"white"}}});var y3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 24 24",small:!0,width:"100%",height:"100%",fill:"none",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{d:"M16 4C16.93 4 17.395 4 17.7765 4.10222C18.8117 4.37962 19.6204 5.18827 19.8978 6.22354C20 6.60504 20 7.07003 20 8V17.2C20 18.8802 20 19.7202 19.673 20.362C19.3854 20.9265 18.9265 21.3854 18.362 21.673C17.7202 22 16.8802 22 15.2 22H8.8C7.11984 22 6.27976 22 5.63803 21.673C5.07354 21.3854 4.6146 20.9265 4.32698 20.362C4 19.7202 4 18.8802 4 17.2V8C4 7.07003 4 6.60504 4.10222 6.22354C4.37962 5.18827 5.18827 4.37962 6.22354 4.10222C6.60504 4 7.07003 4 8 4M9 15L11 17L15.5 12.5M9.6 6H14.4C14.9601 6 15.2401 6 15.454 5.89101C15.6422 5.79513 15.7951 5.64215 15.891 5.45399C16 5.24008 16 4.96005 16 4.4V3.6C16 3.03995 16 2.75992 15.891 2.54601C15.7951 2.35785 15.6422 2.20487 15.454 2.10899C15.2401 2 14.9601 2 14.4 2H9.6C9.03995 2 8.75992 2 8.54601 2.10899C8.35785 2.20487 8.20487 2.35785 8.10899 2.54601C8 2.75992 8 3.03995 8 3.6V4.4C8 4.96005 8 5.24008 8.10899 5.45399C8.20487 5.64215 8.35785 5.79513 8.54601 5.89101C8.75992 6 9.03995 6 9.6 6Z",stroke:e.color,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])},_3=[],b3=z(v3,y3,_3,!1,null,null,null,null);const C3=b3.exports,w3=E.extend({name:"AudioWave",components:{BaseIcon:fe},props:{color:{type:String,default:"white"}}});var x3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 24 24",small:!0,width:"24px",height:"24px",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{d:"M9 3V21",stroke:e.color,"stroke-width":"1.67","stroke-linecap":"round","stroke-linejoin":"round"}}),r("path",{attrs:{d:"M6 7V17",stroke:e.color,"stroke-width":"1.67","stroke-linecap":"round","stroke-linejoin":"round"}}),r("path",{attrs:{d:"M15 6V18",stroke:e.color,"stroke-width":"1.67","stroke-linecap":"round","stroke-linejoin":"round"}}),r("path",{attrs:{d:"M12 9L12 15",stroke:e.color,"stroke-width":"1.67","stroke-linecap":"round","stroke-linejoin":"round"}}),r("path",{attrs:{d:"M18 11L18 13",stroke:e.color,"stroke-width":"1.67","stroke-linecap":"round","stroke-linejoin":"round"}}),r("path",{attrs:{d:"M3 11L3 13",stroke:e.color,"stroke-width":"1.67","stroke-linecap":"round","stroke-linejoin":"round"}})])},S3=[],k3=z(w3,x3,S3,!1,null,null,null,null);const T3=k3.exports,M3=E.extend({name:"Ring",components:{BaseIcon:fe},props:{color:{type:String,default:"#424242"}}});var $3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 1000 640.27",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{"stroke-width":"0px",d:"m999.99,506.14V250.11s0-.08,0-.11c-.08-73.73-60.11-133.73-133.95-133.75-73.78.02-133.83,60.07-133.86,133.9v121.65c0,73.83,60.07,133.9,133.9,133.9,31.78,0,62.06-11.09,86.17-31.4v32.15c-.03,46.67-40.51,86.1-88.39,86.1-26.43,0-52.76-12.02-68.73-31.36-.05-.06-.1-.11-.14-.17-4.56-5.49-11.23-8.63-18.36-8.63-13.16,0-23.87,10.71-23.87,23.87,0,5.45,1.9,10.79,5.34,15.03.04.06.09.12.13.17,25.18,30.57,64.67,48.82,105.63,48.82,75.07,0,136.14-60.07,136.14-133.9,0-.08,0-.15,0-.22Zm-47.74-256v121.65c0,47.51-38.65,86.17-86.17,86.17s-86.17-38.65-86.17-86.2v-121.62c0-47.51,38.65-86.17,86.17-86.17s86.17,38.65,86.17,86.17Z"}}),r("path",{attrs:{"stroke-width":"0px",d:"m528.09,116.24c-73.89,0-134.04,60.1-134.1,133.98,0,.04,0,.08,0,.12v220.39c0,13.18,10.72,23.9,23.9,23.9s23.9-10.72,23.9-23.91v-220.39c0-47.58,38.71-86.29,86.29-86.29s86.29,38.71,86.29,86.29v220.39c0,13.18,10.72,23.9,23.9,23.9s23.9-10.72,23.9-23.9v-220.44c-.03-73.91-60.18-134.04-134.1-134.04Z"}}),r("path",{attrs:{"stroke-width":"0px",d:"m198.11,140.9c-.08-.06-.16-.12-.24-.18,0,0-.43-.29-.44-.3-22.57-15.8-49.1-24.16-76.39-24.16h-.03c-.12-.01-.31-.02-.43-.02h0C50.74,116.26.03,172.64.01,250c0,.11-.01.23-.01.34v220.39c0,13.18,10.72,23.9,23.9,23.9s23.9-10.72,23.9-23.9v-220.39c0-52.42,28.58-86.29,72.82-86.29,18,0,35.24,5.48,49.87,15.86.09.07.19.13.28.18,3.96,2.67,8.56,4.07,13.33,4.07,13.18,0,23.91-10.72,23.91-23.91,0-7.65-3.7-14.86-9.91-19.36Z"}}),r("path",{attrs:{"stroke-width":"0px",d:"m290.08,137.39c-13.15,0-23.85,10.7-23.85,23.85v309.6c0,13.15,10.7,23.85,23.85,23.85s23.85-10.7,23.85-23.85V161.24c0-13.15-10.7-23.85-23.85-23.85Z"}}),r("path",{staticStyle:{fill:"#1998d5"},attrs:{"stroke-width":"0px",d:"m289.69,0c-20.66,0-37.47,16.81-37.47,37.47s16.81,37.46,37.47,37.46,37.46-16.81,37.46-37.46S310.34,0,289.69,0Z"}})])},E3=[],D3=z(M3,$3,E3,!1,null,null,null,null);const L3=D3.exports,P3={Back10:Ac,Forward10:Ic,Bim:Ec,Brightness:jc,Blur:Xc,Compare:e5,ConcretePump:i5,CompactExcavator:so,DroneView:u5,Dumper:m5,Evercam:b5,EvercamLogo:k5,Excavator:so,FlatbedSemiTrailer:I5,FreeDrawing:A5,IModel:j5,Inspection:X5,Loader:eu,MiniModel:iu,MarkUp:bd,Nerves:Hd,OtherTruck:no,RoadVehicle:pu,Roller:_u,Robot:Su,SemiTrailer:Eu,SkidSteerLoader:Iu,SmallTruck:Au,TankTruck:ju,The360:Xu,TippingTruck:ed,TruckHead:id,TruckMixer:ud,Unknown:no,Worker:md,ZohoCrm:kd,Tag:Dd,TagPlus:zd,Procore:Ud,ProcoreSmall:Vd,Aconex:t3,AconexSmall:a3,Autodesk:d3,AutodeskSmall:g3,ProcoreObservations:C3,AudioWave:T3,Ring:L3},O3=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),io=Object.fromEntries(Object.entries(P3).map(([t,e])=>[O3(t),e])),I3=E.extend({name:"EIcon",components:{...io},props:{icon:{type:String,default:void 0},colorClass:{type:String,default:ce.Default}},computed:{isSvgIcon(){return this.icon.startsWith("eui-")},svgIconName(){return this.icon.replace(/^eui-/,"")},svgIconComponent(){return io[this.svgIconName]},svgSizes(){return{[U.Xs]:16,[U.Sm]:18,[U.Base]:20,[U.Lg]:24,[U.Xl]:30,[U.TwoXl]:36,[U.ThreeXl]:42,[U.FourXl]:48,[U.FiveXl]:54,[U.SixXl]:60,[U.SevenXl]:66,[U.EightXl]:70,[U.NineXl]:74}},faSizes(){return eo.reduce((t,e)=>({...t,[e]:`e-text-${e}`}),{})},iconSize(){const t=this.$attrs.size;if(this.isSvgIcon&&!t)return;if(this.isSvgIcon&&!isNaN(Number(t)))return Number(t);const e=t||U.Base;return this.isSvgIcon?this.svgSizes[e]:this.faSizes[e]},faIconStyle(){return{color:this.$attrs.color,"caret-color":this.$attrs.color}},faIconClass(){const t=this.iconSize,e=this.icon.includes(" ")?this.icon:`fa ${this.icon}`;return["e-inline-flex e-items-center e-justify-center e-rounded-full",this.colorClass,this.icon,e,t]}}});var z3=function(){var e=this,r=e._self._c;return e.isSvgIcon?r(e.svgIconComponent,e._g(e._b({tag:"component",staticClass:"e-svg-icon",attrs:{size:e.iconSize}},"component",e.$attrs,!1),e.$listeners)):r("i",e._g(e._b({staticClass:"e-icon",class:e.faIconClass,style:e.faIconStyle},"i",e.$attrs,!1),e.$listeners))},R3=[],B3=z(I3,z3,R3,!1,null,null,null,null);const Xe=B3.exports,F3=E.extend({name:"ESpinner",props:{dark:{type:Boolean,default:!1},color:{type:Boolean,default:!0},animationDuration:{type:[Number,String],default:1e3},size:{type:String,default:U.Base},opacity:{type:[String,Number],default:1}},data(){return{sizes:Ka,colors:Ja}},computed:{computedSize(){return this.sizes[U[this.size]]||this.size||this.sizes[U.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"]}`}}}}),i_="";var A3=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"}})])},H3=[],N3=z(F3,A3,H3,!1,null,"9a1333ac",null,null);const ss=N3.exports,W3=E.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}}}}),a_="";var Y3=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)},j3=[],U3=z(W3,Y3,j3,!1,null,null,null,null);const Rn=U3.exports,G3=E.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}}}),o_="";var q3=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-col",class:e.colClasses},[e._t("default")],2)},Z3=[],X3=z(G3,q3,Z3,!1,null,null,null,null);const Bn=X3.exports,Fn=new Intl.NumberFormat(void 0,{minimumIntegerDigits:2});function Tr(t){if(!Number.isFinite(t)||t<0)return"0:00";const e=Math.floor(t%60),r=Math.floor(t/60)%60,s=Math.floor(t/3600);return s===0?`${r}:${Fn.format(e)}`:`${s}:${Fn.format(r)}:${Fn.format(e)}`}function An(){const t=document;return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)}function Hn(t){if(An())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 Nn(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=Math.random()*16|0,r=t==="x"?e:e&3|8;return r.toString(16)})}function Wn(){if(!An())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 V3(t,e=1e3,r=!1){let s=null;return function(...n){const i=this,a=r&&!s;s&&clearTimeout(s),s=setTimeout(function(){s=null,r||t.apply(i,n)},e),a&&t.apply(i,n)}}function Q3(t=1){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let r="";for(let s=0;s<t;s++)r+=e.charAt(Math.floor(Math.random()*e.length));return r}function K3(t,e=0,r=0,s=t.naturalWidth,n=t.naturalHeight){const i=document.createElement("canvas"),a=i.getContext("2d");i.width=s,i.height=n,a==null||a.drawImage(t,e,r,s,n,0,0,s,n);const c=i.toDataURL();return i.remove(),c}function J3(t){return!!(t!=null&&t.length&&!isNaN(new Date(t).getTime()))}function ao(t,e=1){let r=0,s=0,n=0;return t.length===4?(r=parseInt(t[1]+t[1],16),s=parseInt(t[2]+t[2],16),n=parseInt(t[3]+t[3],16)):t.length===7&&(r=parseInt(t[1]+t[2],16),s=parseInt(t[3]+t[4],16),n=parseInt(t[5]+t[6],16)),`rgba(${r}, ${s}, ${n}, ${e})`}function oo(t,e=1){const r=t.match(/\d+/g);return r&&r.length===3?`rgba(${r[0]}, ${r[1]}, ${r[2]}, ${e})`:null}function lo(t){return t.startsWith("rgba")}function cr(t,e=1){return lo(t)?t:t.startsWith("#")?ao(t,e):t.startsWith("rgb")?oo(t,e):t}function e6(t){const e=JSON.stringify(t);return co(e).toString()}function co(t){let e=0,r,s;if(t.length===0)return e;for(r=0;r<t.length;r++)s=t.charCodeAt(r),e=(e<<5)-e+s,e|=0;return e}function Yn(t,e,r){const s=k.scaleLinear().domain([0,r-1]).range([0,1]);return Array.from({length:r},(n,i)=>k.interpolate(t,e)(s(i)))}const uo={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:[]}},ho=24*60-1,fo=t=>{const[e,r]=t.split(":");return parseInt(e)*60+parseInt(r)},jn=t=>{const e=Math.floor(t/60).toString().padStart(2,"0"),r=(t%60).toString().padStart(2,"0");return`${e}:${r}`};function Un(t){return["monday","tuesday","wednesday","thursday","friday","saturday","sunday"].reduce((r,s)=>{const n=t[s];return{...r,[s]:n.length?n[0].split("-").map(i=>fo(i)):[0,ho]}},{})}function t6(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e,r.map(s=>{const[n,i]=s.split("-");let[a,c]=i.split(":");return a=parseInt(a),a=Math.max(0,a-1),`${n}-${a.toString().padStart(2,"0")}:${c}`})]))}const r6=E.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(),s={x:r.width/2,y:r.height/2},n=this.scale;t<0?this.scale*=1.2:this.scale*=.8,this.updateZoomScale(),this.left=(this.left-s.x)*(this.scale/n)+s.x,this.top=(this.top-s.y)*(this.scale/n)+s.y;const i=0-r.width*(this.scale-1),a=0-r.height*(this.scale-1);this.left=Math.min(0,Math.max(i,this.left)),this.top=Math.min(0,Math.max(a,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 s=e.getBoundingClientRect(),n=r.getBoundingClientRect();if(!s||!n)return;const i=t.clientX,a=t.clientY,c=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail)),o=this.scale;this.scale+=c/10,this.updateZoomScale();const l=((i-n.left)/n.width).toFixed(2),d=((a-n.top)/n.height).toFixed(2);this.left=Math.round(i-s.left-Number(l)*(n.width*this.scale/o)),this.top=Math.round(a-s.top-Number(d)*(n.height*this.scale/o));const h=0,m=0-s.width*(this.scale-1),b=0-s.height*(this.scale-1),C=0;this.left<m?this.left=m:this.left>h&&(this.left=h),this.top<b?this.top=b:this.top>C&&(this.top=C),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(),s=e.getBoundingClientRect();if(!r||!s)return;const[n,i,a,c]=[r.top-s.top,s.right-r.right,s.bottom-r.bottom,r.left-s.left].map(o=>o<0?o:0);this.left+=c-i,this.top+=n-a},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),s=this.getPointersMidPoint(r[0],r[1]);this.left=s.x-(s.x-this.left)*e,this.top=s.y-(s.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)}}}),l_="";var s6=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()])])},n6=[],i6=z(r6,s6,n6,!1,null,"06b5341b",null,null);const Gn=i6.exports,st=E.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.push({element:r,event:t,cb:e})},$removeEventListener(t,e,r=document){var n;const s=this.eventListeners.find(i=>i.event===t&&i.element===r&&i.cb===e);s&&((n=s.element)==null||n.removeEventListener(t,e),this.eventListeners=this.eventListeners.filter(i=>!(i.event===t&&i.cb===e&&i.element===r)))},$removeEventListeners(){this.eventListeners.forEach(({element:t,event:e,cb:r})=>{t==null||t.removeEventListener(e,r)}),this.eventListeners=[]}}}),a6=(t,e)=>t===e||t.contains(e),o6=(t,e)=>r=>{a6(t,r.target)||e(r)},po=["mousedown","touchstart","click"],ns={bind(t,e){const r=t,s=e.value;if(typeof s!="function"){console.warn("v-click-outside requires a function value");return}r.clickOutsideHandler={events:po,handler:o6(r,s),callback:s},queueMicrotask(()=>{po.forEach(n=>{document.addEventListener(n,r.clickOutsideHandler.handler)})})},unbind(t){const e=t;e.clickOutsideHandler&&(e.clickOutsideHandler.events.forEach(r=>{document.removeEventListener(r,e.clickOutsideHandler.handler)}),delete e.clickOutsideHandler)}},l6=E.extend({name:"EKeyboardShortcut",props:{keys:{type:Array,required:!0},size:{type:String,default:"sm"},dark:{type:Boolean,default:!0}},computed:{gapClasses(){return this.size==="md"?"e-gap-1":"e-gap-0.5"},toneClasses(){return this.dark?"e-text-white/90 e-bg-white/10 e-border e-border-white/15 e-shadow-[inset_0_-1px_0_rgba(0,0,0,0.3)]":"e-text-gray-800 e-bg-gray-100 e-border e-border-gray-300 e-shadow-[inset_0_-1px_0_rgba(255,255,255,0.6)]"},keyClasses(){return this.size==="xs"?"e-min-w-4 e-h-4 e-px-1 e-rounded e-text-[9px]":this.size==="md"?"e-min-w-6 e-h-6 e-px-2 e-rounded-md e-text-xs":"e-min-w-[22px] e-h-5 e-px-1.5 e-rounded-[5px] e-text-[11px]"}}});var c6=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-inline-flex e-items-center",class:e.gapClasses},e._l(e.keys,function(s,n){return r("kbd",{key:`${s}-${n}`,staticClass:"e-inline-flex e-items-center e-justify-center e-leading-none e-font-mono",class:[e.toneClasses,e.keyClasses]},[e._v(" "+e._s(s)+" ")])}),0)},u6=[],d6=z(l6,c6,u6,!1,null,null,null,null);const h6=d6.exports,is=E.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)}}}}),as=E.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&&t.stopPropagation(),this.isOpen||this.$root.$emit("select-opened",this.selectId),this.isOpen=!this.isOpen}}}),Mr=E.extend({name:"SelectFormField",mixins:[is,as],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,e){e&&(e.stopPropagation(),e.preventDefault());const r=this.getOptionByValue(t);if(!(r!=null&&r.disabled||this.disabled)){if(this.multiple){const s=this.currentValue.indexOf(t);s===-1?this.currentValue.push(t):this.currentValue.splice(s,1),this.$emit("input",this.currentValue),this.$emit("on-select-option",this.selectedOption);return}this.$emit("input",t),this.$emit("on-select-option",r),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(t){t&&(t.stopPropagation(),t.preventDefault()),!(!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"]}}}),f6=E.extend({name:"EToggleSwitch",components:{EIcon:Xe},mixins:[Mr],props:{color:{type:String,default:"brand"},size:{type:String,default:U.Sm},vertical:{type:Boolean,default:!1},dark:{type:Boolean,default:!0}},computed:{sizeClasses(){return{container:{"e-p-0.5":this.size===U.Xs,"e-p-1 e-leading-3":this.size===U.Sm,"e-py-1.5 e-px-1.5":this.size===U.Md,"e-p-2 e-p":this.size===U.Lg},button:{"e-px-1":this.size===U.Xs,"e-py-[.2rem] e-px-2 e-rounded-md":this.size===U.Sm,"e-p-1 e-px-2.5":this.size===U.Md,"e-p-1.5 e-px-3":this.size===U.Lg,"e-opacity-50 e-cursor-not-allowed":this.disabled},text:{"!e-text-[0.6rem]":this.size===U.Xs,"e-text-xs":this.size===U.Sm,"e-text-sm":this.size===U.Md,"e-text-base":this.size===U.Lg},icon:{"e-w-3 e-h-3":this.size===U.Xs,"e-w-4 e-h-4":this.size===U.Sm,"e-w-5 e-h-5":this.size===U.Md,"e-w-6 e-h-6":this.size===U.Lg},description:{"!e-text-[0.5rem]":this.size===U.Xs,"e-text-[0.65rem]":this.size===U.Sm,"e-text-xs":this.size===U.Md,"e-text-sm":this.size===U.Lg}}},wrapperClasses(){return{...this.sizeClasses.container,"e-toggle-switch__container e-flex 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-800":this.dark,"e-bg-gray-200":!this.dark,"e-flex-col e-items-start":this.vertical," e-items-center":!this.vertical,"e-opacity-50 e-cursor-not-allowed":this.disabled}},textClasses(){return{...this.sizeClasses.text,"e-font-medium":!0}},descriptionClasses(){return{...this.sizeClasses.description,"e-font-normal e-opacity-70 e-mt-0.5 e-leading-tight":!0}}},methods:{getButtonClasses(t){const e=this.isSelected(t.value),r={"e-toggle-switch e-border-none e-rounded-md e-transition e-duration-200 e-ease-in-out e-cursor-pointer":!0,"e-toggle-switch__selected":e,"e-text-gray-200":this.dark&&!e,"e-text-gray-900":!this.dark&&!e,"e-bg-gray-800":this.dark&&!e,"e-bg-gray-200":!this.dark&&!e,"e-bg-brand-600 e-text-white":this.color==="brand"&&e,"e-bg-gray-600 e-text-white":this.color==="gray"&&e,"e-bg-[#629efc] e-text-gray-900":this.color==="primary"&&e,"e-opacity-50 e-cursor-not-allowed":t.disabled,"e-shadow":e,"e-w-full":this.vertical,"e-inline-flex":!this.vertical};return{...this.sizeClasses.button,...r}},getIconClasses(){return{...this.sizeClasses.icon,"e-flex-shrink-0":!0}},getTextContainerClasses(t){return{"e-text-left":!0,"e-items-start":!!t.description}},getIconSize(){return{[U.Sm]:U.Sm,[U.Md]:U.Md,[U.Lg]:U.Lg}[this.size]||U.Sm},svgIconColor(t){return this.isSelected(t.value)&&this.color==="primary"?"#111827":this.isSelected(t.value)?"#f2f2f2":this.dark?"#e5e7eb":"#111827"}}});var p6=function(){var e=this,r=e._self._c;return r("div",{class:e.wrapperClasses},e._l(e.options,function(s){return r("button",{key:s.value,class:e.getButtonClasses(s),on:{click:function(n){return e.onItemClick(s.value)}}},[e._t("option",function(){return[r("div",{staticClass:"e-flex e-items-center e-gap-2"},[s.icon?r("EIcon",{class:e.getIconClasses(),attrs:{icon:s.icon,size:e.getIconSize(),color:e.svgIconColor(s)}}):e._e(),r("div",{staticClass:"e-flex e-flex-col",class:e.getTextContainerClasses(s)},[r("span",{class:e.textClasses},[e._v(e._s(s.label))]),s.description?r("span",{class:e.descriptionClasses},[e._v(" "+e._s(s.description)+" ")]):e._e()])],1)]},{option:s,isSelected:e.isSelected(s.value)})],2)}),0)},m6=[],g6=z(f6,p6,m6,!1,null,null,null,null);const qn=g6.exports,v6=E.extend({name:"EVideoPlayerSettingToggleRow",components:{EToggleSwitch:qn},props:{label:{type:String,required:!0},checked:{type:Boolean,required:!0}},data(){return{toggleOptions:[{label:"Off",value:!1},{label:"On",value:!0}]}}});var y6=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-flex e-justify-between e-items-center e-text-xs e-mb-2"},[r("span",[e._v(e._s(e.label))]),r("EToggleSwitch",{attrs:{value:e.checked,options:e.toggleOptions,"set-initial-value":!1,color:"primary",size:"sm",dark:!0},on:{input:function(s){e.$emit("toggle",!!s)}}})],1)},_6=[],b6=z(v6,y6,_6,!1,null,null,null,null);const C6=b6.exports,w6=E.extend({name:"EVideoPlayerSettings",components:{EKeyboardShortcut:h6,EVideoPlayerSettingToggleRow:C6},props:{settingsItems:{type:Array,required:!0},playbackRate:{type:Number,required:!0},playbackRateOptions:{type:Array,required:!0},seekStep:{type:Number,required:!0},seekStepOptions:{type:Array,required:!0},loopEnabled:{type:Boolean,required:!0},autoplayEnabled:{type:Boolean,required:!0},mutedOnStart:{type:Boolean,required:!0}},data(){return{videoPlayerSettingsItems:Ge}},computed:{shortcuts(){return to},settingLabels(){return ro}},methods:{hasSettingItem(t){return this.settingsItems.includes(t)}}}),c_="";var x6=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-video-player-settings e-absolute e-right-0 e-rounded-md e-border e-border-white/15 e-text-white e-p-3 e-bg-gray-900/95"},[r("div",{staticClass:"e-text-sm e-font-semibold e-mb-3"},[e._v("Player Settings")]),e.hasSettingItem(e.videoPlayerSettingsItems.PlaybackRate)?r("div",{staticClass:"e-mb-3"},[r("div",{staticClass:"e-text-xs e-text-white/70 e-mb-1"},[e._v(" "+e._s(e.settingLabels[e.videoPlayerSettingsItems.PlaybackRate])+" ")]),r("div",{staticClass:"e-flex e-flex-wrap e-gap-1.5"},e._l(e.playbackRateOptions,function(s){return r("button",{key:`rate-${s}`,class:["e-border-0 e-rounded e-px-2 e-py-1 e-text-xs e-cursor-pointer e-leading-none e-min-w-0 e-text-center e-whitespace-nowrap e-inline-flex e-items-center e-justify-center",e.playbackRate===s?"e-bg-white !e-text-gray-900":"e-bg-white/10 e-text-white hover:e-bg-white/20"],attrs:{type:"button"},on:{click:function(n){return e.$emit("set-playback-rate",s)}}},[e._v(" "+e._s(s)+"x ")])}),0)]):e._e(),e.hasSettingItem(e.videoPlayerSettingsItems.SeekStep)?r("div",{staticClass:"e-mb-3"},[r("div",{staticClass:"e-text-xs e-text-white/70 e-mb-1"},[e._v(" "+e._s(e.settingLabels[e.videoPlayerSettingsItems.SeekStep])+" ")]),r("div",{staticClass:"e-flex e-flex-wrap e-gap-1.5"},e._l(e.seekStepOptions,function(s){return r("button",{key:`step-${s}`,class:["e-border-0 e-rounded e-px-2 e-py-1 e-text-xs e-cursor-pointer e-leading-none e-min-w-0 e-text-center e-whitespace-nowrap e-inline-flex e-items-center e-justify-center",e.seekStep===s?"e-bg-white !e-text-gray-900":"e-bg-white/10 e-text-white hover:e-bg-white/20"],attrs:{type:"button"},on:{click:function(n){return e.$emit("set-seek-step",s)}}},[e._v(" "+e._s(s)+"s ")])}),0)]):e._e(),e.hasSettingItem(e.videoPlayerSettingsItems.LoopEnabled)?r("EVideoPlayerSettingToggleRow",{attrs:{label:e.settingLabels[e.videoPlayerSettingsItems.LoopEnabled],checked:e.loopEnabled},on:{toggle:function(s){return e.$emit("set-loop-enabled",s)}}}):e._e(),e.hasSettingItem(e.videoPlayerSettingsItems.MutedOnStart)?r("EVideoPlayerSettingToggleRow",{attrs:{label:e.settingLabels[e.videoPlayerSettingsItems.MutedOnStart],checked:e.mutedOnStart},on:{toggle:function(s){return e.$emit("set-muted-on-start",s)}}}):e._e(),e.hasSettingItem(e.videoPlayerSettingsItems.AutoplayEnabled)?r("EVideoPlayerSettingToggleRow",{attrs:{label:e.settingLabels[e.videoPlayerSettingsItems.AutoplayEnabled],checked:e.autoplayEnabled},on:{toggle:function(s){return e.$emit("set-autoplay-enabled",s)}}}):e._e(),e.hasSettingItem(e.videoPlayerSettingsItems.Shortcuts)?r("div",{staticClass:"e-mb-3 e-rounded e-bg-white/5 e-p-2"},[r("div",{staticClass:"e-text-[11px] e-text-white/[0.82] e-mb-1.5"},[e._v(" "+e._s(e.settingLabels[e.videoPlayerSettingsItems.Shortcuts])+" ")]),r("div",{staticClass:"e-flex e-flex-wrap e-items-center e-gap-x-1 e-gap-y-1.5"},e._l(e.shortcuts,function(s,n){return r("div",{key:s.label,staticClass:"e-inline-flex e-items-center e-gap-1"},[r("span",{staticClass:"e-text-[12px] e-text-white/85"},[e._v(e._s(s.label))]),r("EKeyboardShortcut",{attrs:{keys:s.keys,size:"xs"}}),n<e.shortcuts.length-1?r("span",{staticClass:"e-text-[12px] e-text-white/60",attrs:{"aria-hidden":"true"}},[e._v(",")]):e._e()],1)}),0)]):e._e(),e.hasSettingItem(e.videoPlayerSettingsItems.Reset)?r("button",{staticClass:"e-w-full e-border-0 e-text-white e-cursor-pointer e-rounded e-text-xs e-leading-none e-py-2 e-px-[10px] e-bg-white/10 e-block e-mt-[2px] hover:e-bg-white/20",attrs:{type:"button"},on:{click:function(s){return e.$emit("reset")}}},[e._v(" "+e._s(e.settingLabels[e.videoPlayerSettingsItems.Reset])+" ")]):e._e()],1)},S6=[],k6=z(w6,x6,S6,!1,null,"c390796a",null,null);const T6=k6.exports,M6=E.extend({name:"EVideoPlayerControls",components:{EVideoPlayerSettings:T6},directives:{clickOutside:ns},mixins:[st],props:{playing:{type:Boolean,required:!0},currentTime:{type:String,required:!0},videoLength:{type:String,required:!0},videoDuration:{type:Number,required:!0},isMuted:{type:Boolean,required:!0},volume:{type:Number,required:!0},seekStep:{type:Number,required:!0},playbackRate:{type:Number,required:!0},playbackRateOptions:{type:Array,required:!0},seekStepOptions:{type:Array,required:!0},isZoomable:{type:Boolean,required:!0},showSettingsButton:{type:Boolean,required:!0},showVolumeControl:{type:Boolean,required:!0},settingsItems:{type:Array,default:()=>kr},withControlsBackground:{type:Boolean,required:!0},showControls:{type:Boolean,required:!0},isFullscreen:{type:Boolean,required:!0},loopEnabled:{type:Boolean,required:!0},autoplayEnabled:{type:Boolean,required:!0},mutedOnStart:{type:Boolean,required:!0},progressPercent:{type:Number,default:0},bufferPercent:{type:Number,default:0}},data(){return{hoverTime:"",hoverPercentage:-1,showVolume:!1,showSettings:!1,internalIsScrubbing:!1,wasPaused:!1,activePointerId:null}},watch:{progressPercent(t){const e=this.$refs.timelineContainer;e&&e.style.setProperty("--progress-position",String(t))},bufferPercent(t){const e=this.$refs.timelineContainer;e&&e.style.setProperty("--buffer-position",String(t))},showSettings(t){this.$emit("settings-visibility-change",t)}},mounted(){this.$addEventListener("pointermove",this.handleGlobalPointerMove),this.$addEventListener("pointerup",this.handleGlobalPointerUp),this.$addEventListener("pointercancel",this.handleGlobalPointerUp),this.$addEventListener("mouseup",this.handleScrubbingOnMouseEnd);const t=this.$refs.timelineContainer;t&&(t.style.setProperty("--progress-position",String(this.progressPercent)),t.style.setProperty("--buffer-position",String(this.bufferPercent)))},methods:{closeSettings(){this.showSettings=!1},getTimelinePercent(t){const e=this.$refs.timelineContainer;if(!e)return 0;const r=e.getBoundingClientRect();return r.width<=0?0:Math.min(Math.max(0,t-r.x),r.width)/r.width},updateTimelinePreview(t){const e=this.$refs.timelineContainer;e&&(this.hoverPercentage=t*100,this.hoverTime=Tr(t*this.videoDuration),e.style.setProperty("--preview-position",t.toString()),this.internalIsScrubbing&&e.style.setProperty("--progress-position",t.toString()))},startScrubbing(t){this.internalIsScrubbing=!0,this.wasPaused=!this.playing,this.$emit("scrub-start"),this.updateTimelinePreview(t)},endScrubbing(t){this.internalIsScrubbing&&(this.internalIsScrubbing=!1,this.$emit("scrub-end",{percent:t,wasPaused:this.wasPaused}),this.updateTimelinePreview(t))},handleTimelinePointerDown(t){var s;if(!t.isPrimary)return;const e=this.$refs.timelineContainer;if(!e)return;this.activePointerId=t.pointerId,(s=e.setPointerCapture)==null||s.call(e,t.pointerId);const r=this.getTimelinePercent(t.clientX);this.startScrubbing(r),t.preventDefault()},handleGlobalPointerMove(t){if(!this.internalIsScrubbing||this.activePointerId!==null&&t.pointerId!==this.activePointerId)return;const e=this.getTimelinePercent(t.clientX);this.updateTimelinePreview(e),t.preventDefault()},handleGlobalPointerUp(t){var s;if(!this.internalIsScrubbing||this.activePointerId!==null&&t.pointerId!==this.activePointerId)return;const e=this.getTimelinePercent(t.clientX);this.endScrubbing(e);const r=this.$refs.timelineContainer;r&&this.activePointerId!==null&&((s=r.releasePointerCapture)==null||s.call(r,this.activePointerId)),this.activePointerId=null},handleTimelineUpdate(t){if(this.internalIsScrubbing)return;const e=this.getTimelinePercent(t.clientX);this.updateTimelinePreview(e)},toggleScrubbing(t){if(this.internalIsScrubbing){const r=this.getTimelinePercent(t.clientX);this.endScrubbing(r),this.activePointerId=null;return}if((t.buttons&1)!==1)return;const e=this.getTimelinePercent(t.clientX);this.startScrubbing(e),this.activePointerId=null},handleScrubbingOnMouseEnd(t){if(!this.internalIsScrubbing||this.activePointerId!==null)return;const e=this.getTimelinePercent(t.clientX);this.endScrubbing(e)},handleTimelineLeave(){this.internalIsScrubbing||(this.hoverPercentage=-1)}}}),u_="";var $6=function(){var e=this,r=e._self._c;return r("div",{class:["video-controls-container","e-absolute e-bottom-0 e-left-0 e-right-0 e-text-white e-z-[12] e-opacity-100 e-transition-opacity e-duration-150 e-ease-in-out",{"controls-hidden":!e.showControls},e.withControlsBackground?"with-bg":"without-bg"],on:{mouseenter:function(s){return e.$emit("controls-hover-change",!0)},mouseleave:function(s){return e.$emit("controls-hover-change",!1)}}},[r("div",{staticClass:"controls e-flex e-flex-col e-gap-2 e-pt-[0.1rem] e-px-4 e-pb-[0.85rem]"},[r("div",{ref:"timelineContainer",staticClass:"timeline-container",on:{mousemove:e.handleTimelineUpdate,pointerdown:e.handleTimelinePointerDown,mousedown:e.toggleScrubbing,mouseleave:e.handleTimelineLeave}},[r("div",{staticClass:"timeline"},[r("div",{staticClass:"buffered-progress"}),r("div",{staticClass:"preview-progress"}),r("div",{staticClass:"played-progress"}),r("div",{staticClass:"thumb-indicator"}),e.hoverPercentage>=0&&e.videoDuration>0?r("div",{staticClass:"hover-time",style:{left:`calc(${e.hoverPercentage}% - 18px)`}},[e._v(" "+e._s(e.hoverTime)+" ")]):e._e()])]),r("div",{staticClass:"e-flex e-items-center e-justify-between e-gap-2"},[r("div",{staticClass:"e-flex e-items-center e-gap-1"},[r("button",{staticClass:"skip-back-btn fa-lg far fa-backward-step",attrs:{title:"back"},on:{click:function(s){return e.$emit("skip",-e.seekStep)}}}),r("button",{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:function(s){return e.$emit("toggle-play")}}}),r("button",{staticClass:"skip-forward-btn fa-lg far fa-forward-step",attrs:{title:"next"},on:{click:function(s){return e.$emit("skip",e.seekStep)}}}),e.showVolumeControl?r("div",{staticClass:"e-relative e-flex e-items-center",on:{mouseenter:function(s){e.showVolume=!0},mouseleave:function(s){e.showVolume=!1}}},[r("button",{staticClass:"mute-btn fa-lg far",class:{"fa-volume":!e.isMuted,"fa-volume-xmark":e.isMuted},attrs:{title:e.isMuted?"Unmute":"Mute"},on:{click:function(s){return e.$emit("toggle-mute")}}}),r("div",{staticClass:"volume-slider-wrap e-overflow-hidden",class:e.showVolume?"volume-slider-wrap--visible e-px-1 e-mb-1 e-opacity-100":"e-w-0 e-p-0 e-opacity-0"},[r("input",{staticClass:"volume-slider",style:{"--volume-level":`${Math.round((e.isMuted?0:e.volume)*100)}%`},attrs:{type:"range",min:"0",max:"1",step:"0.01"},domProps:{value:e.isMuted?0:e.volume},on:{input:function(s){return e.$emit("volume-input",s)}}})])]):e._e(),r("div",{staticClass:"e-video-player-time-tracker e-flex e-items-center e-gap-1 e-text-white/90 e-bg-white/10 e-px-2.5 e-py-1.5 e-rounded-full e-text-xs"},[r("div",[e._v(e._s(e.currentTime))]),e._v(" / "),r("div",[e._v(e._s(e.videoLength))])])]),r("div",{staticClass:"e-flex e-items-center e-gap-1"},[e.isZoomable?r("button",{staticClass:"zoom-out-btn far fa-magnifying-glass-minus",attrs:{title:"zoom out"},on:{click:function(s){return e.$emit("zoom-out")}}}):e._e(),e.isZoomable?r("button",{staticClass:"zoom-in-btn far fa-magnifying-glass-plus",attrs:{title:"zoom in"},on:{click:function(s){return e.$emit("zoom-in")}}}):e._e(),e.showSettingsButton?r("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeSettings,expression:"closeSettings"}],staticClass:"e-relative"},[r("button",{staticClass:"settings-btn far fa-gear",class:e.showSettings?"!e-opacity-100 !e-bg-blue-500/30 !e-text-white":"",attrs:{title:"settings"},on:{click:function(s){e.showSettings=!e.showSettings}}}),e.showSettings?r("EVideoPlayerSettings",{attrs:{"settings-items":e.settingsItems,"playback-rate":e.playbackRate,"playback-rate-options":e.playbackRateOptions,"seek-step":e.seekStep,"seek-step-options":e.seekStepOptions,"loop-enabled":e.loopEnabled,"autoplay-enabled":e.autoplayEnabled,"muted-on-start":e.mutedOnStart},on:{"set-playback-rate":function(s){return e.$emit("set-playback-rate",s)},"set-seek-step":function(s){return e.$emit("set-seek-step",s)},"set-loop-enabled":function(s){return e.$emit("set-loop-enabled",s)},"set-autoplay-enabled":function(s){return e.$emit("set-autoplay-enabled",s)},"set-muted-on-start":function(s){return e.$emit("set-muted-on-start",s)},reset:function(s){return e.$emit("reset-settings")}}}):e._e()],1):e._e(),r("button",{staticClass:"full-screen-btn fa-solid",class:{"fa-up-right-and-down-left-from-center":!e.isFullscreen,"fa-down-left-and-up-right-to-center":e.isFullscreen},on:{click:function(s){return e.$emit("toggle-fullscreen")}}})])])])])},E6=[],D6=z(M6,$6,E6,!1,null,"e16f2f0c",null,null);const L6=D6.exports,gt=E.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=[]}}}),P6=E.extend({name:"EVideoPlayer",components:{ESpinner:ss,EZoomable:Gn,EVideoPlayerControls:L6,EIcon:Xe},mixins:[st,gt],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},isPlaying:{type:Boolean,default:!1},showLoadingAnimation:{type:Boolean,default:!1},isZoomable:{type:Boolean,default:!1},zoomableIgnorePointerEvents:{type:Boolean,default:!1},isWebRtc:{type:Boolean,default:!1},withColoredLoader:{type:Boolean,default:!1},loaderSize:{type:String,default:"SevenXl"},withOverlayOnBackground:{type:Boolean,default:!1},withControlsBackground:{type:Boolean,default:!1},hideControls:{type:Boolean,default:!1},autoHideControls:{type:Boolean,default:!1},controlsHideDelayMs:{type:Number,default:3e3},persistSettings:{type:Boolean,default:!0},playbackRateOptions:{type:Array,default:()=>[.5,.75,1,1.25,1.5,2]},seekStepOptions:{type:Array,default:()=>[5,10,30]},defaultSeekStep:{type:Number,default:10},showSettingsButton:{type:Boolean,default:!0},showVolumeControl:{type:Boolean,default:!0},settingsItems:{type:Array,default:void 0},showCenterPlayButton:{type:Boolean,default:!0},fallbackSrc:{type:String,default:""},hlsOptions:{type:Object,default:()=>({})}},data(){return{playing:!1,videoLength:"0:00",videoDuration:0,currentTime:"0:00",isScrubbing:!1,progressPercent:0,bufferPercent:0,isPanningVideo:!1,panMouseDownOnZoom:!1,wasPaused:!1,isFullscreen:!1,isLoading:!0,isError:!1,isMuted:!1,volume:1,lastVolume:1,showControls:!0,forceZoomFromControls:!1,isSettingsOpen:!1,isHoveringControls:!1,hasTriedFallback:!1,playbackRate:1,seekStep:this.defaultSeekStep,loopEnabled:!1,autoplayEnabled:!1,mutedOnStart:!1,boundEvents:{},player:null,playbackRetries:0,preloadedSeconds:0,preloadedInterval:null}},computed:{sanitizedVideoOptions(){const{controls:t,...e}=this.videoOptions;return e},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,type:""}]},shouldRenderControls(){if(this.hideControls)return!1;const t=this.videoOptions;return(t==null?void 0:t.controls)!==!1},isActuallyZoomable(){return this.isZoomable||this.forceZoomFromControls},shouldKeepControlsVisible(){return this.isHoveringControls||this.isSettingsOpen},hasPlayerContainerOverlay(){return!!this.$scopedSlots["player-container-overlay"]||!!this.$slots["player-container-overlay"]},streamingToken(){return this.isEdgeVideo?this.edgeStreamingToken:this.authToken},resolvedSettingsItems(){if(!Array.isArray(this.settingsItems)||this.settingsItems.length===0)return kr;const t=new Set(kr),e=[];return this.settingsItems.forEach(r=>{!t.has(r)||e.includes(r)||e.push(r)}),e.length===0?kr:e}},watch:{isPlaying:{immediate:!0,async handler(t){this.playing=t,t?await this.play():this.pause(),!(!this.isHls||!this.player)&&(t?this.$emit("hls-play"):this.$emit("hls-pause"))}},preloadedSeconds(t){this.preloadedInterval={start:Be(this.targetTimestamp).format(),end:Be(this.targetTimestamp).add(t,"seconds").format()},this.$emit("preloaded-interval",this.preloadedInterval)},targetTimestamp:{immediate:!0,handler(t){var i,a;if(!this.isHls)return;const e=this.$refs.player;if(!e)return;const r=(i=this.preloadedInterval)==null?void 0:i.start,s=(a=this.preloadedInterval)==null?void 0:a.end;if(!(r&&s))return;const n=Be(t).isBetween(Be(r),Be(s),void 0,"[]");e.currentTime=0,n||this.initHls()}},sources(){if(this.hasTriedFallback=!1,this.isError=!1,this.isLoading=!0,this.isHls)this.initHls();else{const t=this.$refs.player;t&&t.load()}}},mounted(){this.isHls&&this.initHls(),this.bindEvents(),this.initializePlayer()},beforeDestroy(){this.unbindEvents(),this.destroyPlayer()},methods:{initHls(t="",e=!1){var n;const r=this.$refs.player;if(!r)return;const s=this.sourceItems[0];(n=this.player)!=null&&n.stopLoad&&this.player.stopLoad(),lr.isSupported()&&(this.isLoading=!0,this.player=new lr({startPosition:0,debug:e,xhrSetup:i=>{this.streamingToken&&i.setRequestHeader("Authorization",`Bearer ${this.streamingToken}`)},...this.hlsOptions}),this.player.enableDebug=()=>{var i;(i=this.player)==null||i.destroy(),this.initHls(t,!0)},r._hls=this.player,this.player.loadSource(t||s.src),this.player.attachMedia(r),this.player.on(lr.Events.MANIFEST_PARSED,(i,a)=>{var l;const c=(l=a.levels[a.firstLevel])==null?void 0:l.details,o=c==null?void 0:c.startTimeOffset;r.currentTime=o||0,this.applyPlaybackRate(),(this.playing||r.autoplay)&&this.play()}),this.player.on(lr.Events.ERROR,this.handleHlsError))},closeControlsSettings(){var t,e;this.isSettingsOpen=!1,(e=(t=this.$refs.controls)==null?void 0:t.closeSettings)==null||e.call(t)},onSettingsVisibilityChange(t){if(this.isSettingsOpen=t,t){this.showControls=!0,this.$clearTimeouts();return}this.scheduleControlsHide()},onControlsHoverChange(t){if(this.isHoveringControls=t,t){this.showControls=!0,this.$clearTimeouts();return}this.scheduleControlsHide()},onContainerClick(){this.closeControlsSettings(),this.pauseOnClick&&this.togglePlay()},handle404Error(){if(this.isWebRtc)return;const t=this.$refs.player;if(this.fallbackSrc&&t&&!this.hasTriedFallback&&t.currentSrc!==this.fallbackSrc){this.hasTriedFallback=!0,this.isError=!1,this.isLoading=!0,t.src=this.fallbackSrc,t.load(),(this.playing||t.autoplay)&&t.play().catch(()=>{});return}this.isError=!0,this.isLoading=!1,this.setPlaying(!1)},handleHlsError(t,e){var l;if(!this.player||!e.fatal)return;this.$emit("error",e);const r=e.type===lr.ErrorTypes.NETWORK_ERROR,s=e.type===lr.ErrorTypes.MEDIA_ERROR,n=r&&((l=e.networkDetails)==null?void 0:l.status)===404,i=this.$refs.player,a=()=>this.fallbackSrc&&(i==null?void 0:i.currentSrc)!==this.fallbackSrc,c=()=>this.initHls(this.fallbackSrc),o=()=>{var d;if(a()){c();return}(d=this.player)==null||d.destroy(),this.player=null,this.videoListeners.error?this.videoListeners.error():this.handle404Error()};if(n){o();return}if(r){console.error("A network error occurred:",e),a()?c():this.player.startLoad();return}if(s){console.error("A media error occurred:",e),a()?c():this.player.recoverMediaError();return}o()},bindEvents(){const t=this.$refs.player;t&&zn.forEach(e=>{const r=s=>this.bindVideoEvent(e,s);this.boundEvents[e]=r,t.addEventListener(e,r,!0)})},onProgress(){const t=this.$refs.player;if(!(!t||t.buffered.length===0))try{this.preloadedSeconds=t.buffered.end(t.buffered.length-1),this.videoDuration>0&&(this.bufferPercent=Math.min(1,this.preloadedSeconds/this.videoDuration))}catch(e){console.error("Error while fetching buffered end time:",e)}},unbindEvents(){const t=this.$refs.player;if(!t){this.boundEvents={};return}zn.forEach(e=>{const r=this.boundEvents[e];r&&t.removeEventListener(e,r,!0)}),this.boundEvents={}},bindVideoEvent(t,e){const r=this.$refs.player;r&&((t==="play"||t==="playing")&&!this.isPanningVideo&&this.setPlaying(!0),t==="pause"&&!this.isPanningVideo&&this.setPlaying(!1),t==="waiting"&&(this.isLoading=!0),t==="playing"&&(this.isLoading=!1),this.$emit(t,{event:e,player:r}))},mapPlaybackRate(t){return Math.min(16,Math.max(.05,Math.exp(2*(t-1))))},loadSettings(){if(!this.persistSettings){this.playbackRate=1,this.seekStep=this.defaultSeekStep;return}if(typeof window!="undefined")try{const t=window.localStorage.getItem(rs);if(!t)return;const e=JSON.parse(t);typeof e.playbackRate=="number"&&(this.playbackRate=Math.min(4,Math.max(.25,e.playbackRate))),typeof e.seekStep=="number"&&(this.seekStep=Math.min(120,Math.max(1,e.seekStep))),typeof e.loopEnabled=="boolean"&&(this.loopEnabled=e.loopEnabled),typeof e.autoplayEnabled=="boolean"&&(this.autoplayEnabled=e.autoplayEnabled),typeof e.mutedOnStart=="boolean"&&(this.mutedOnStart=e.mutedOnStart)}catch(t){console.error("Invalid video settings payload",t)}},persistPlayerSettings(){this.persistSettings&&typeof window!="undefined"&&window.localStorage.setItem(rs,JSON.stringify({playbackRate:this.playbackRate,seekStep:this.seekStep,loopEnabled:this.loopEnabled,autoplayEnabled:this.autoplayEnabled,mutedOnStart:this.mutedOnStart}))},applyPlaybackRate(){const t=this.$refs.player;if(!t)return;const e=this.mapPlaybackRate(this.playbackRate);t.defaultPlaybackRate=e,t.playbackRate=e},setPlaybackRate(t){this.playbackRate=Math.min(4,Math.max(.25,t)),this.applyPlaybackRate(),this.persistPlayerSettings()},setSeekStep(t){this.seekStep=Math.min(120,Math.max(1,t)),this.persistPlayerSettings()},setLoopEnabled(t){this.loopEnabled=t;const e=this.$refs.player;e&&(e.loop=t),this.persistPlayerSettings()},setAutoplayEnabled(t){this.autoplayEnabled=t;const e=this.$refs.player;e&&(e.autoplay=t),this.persistPlayerSettings()},setMutedOnStart(t){this.mutedOnStart=t,this.persistPlayerSettings()},resetSettings(){this.playbackRate=1,this.seekStep=this.defaultSeekStep,this.closeControlsSettings(),this.applyPlaybackRate(),this.setLoopEnabled(!1),this.setAutoplayEnabled(!1),this.setMutedOnStart(!1),this.persistSettings&&typeof window!="undefined"&&window.localStorage.removeItem(rs)},scheduleControlsHide(){if(this.$clearTimeouts(),!this.autoHideControls||!this.playing||this.isScrubbing||this.shouldKeepControlsVisible){this.showControls=!0;return}if(this.controlsHideDelayMs<=0){this.showControls=!0;return}this.$setTimeout(()=>{this.playing&&!this.isScrubbing&&(this.showControls=!1)},Math.max(0,this.controlsHideDelayMs))},handleContainerMouseMove(t){if(this.showControls=!0,this.scheduleControlsHide(),this.panMouseDownOnZoom&&t.buttons===1&&!this.isPanningVideo&&this.pauseOnClick){this.isPanningVideo=!0;const e=this.$refs.player;e&&e.pause()}},handleContainerMouseLeave(){if(!this.playing||!this.autoHideControls||this.shouldKeepControlsVisible){this.showControls=!0;return}if(this.controlsHideDelayMs<=0){this.showControls=!1;return}this.scheduleControlsHide()},handleContainerMouseDown(t){var s;const e=this.$refs.zoomable;if(!(e!=null&&e.isZoomed))return;const r=(s=this.$refs.controls)==null?void 0:s.$el;r!=null&&r.contains(t.target)||this.onZoomablePanStart()},onZoomablePanStart(){if(!this.pauseOnClick)return;const t=this.$refs.player;t&&(this.panMouseDownOnZoom=!0,this.wasPaused=t.paused,t.pause())},handlePanMouseEnd(){if(this.panMouseDownOnZoom=!1,!this.isPanningVideo)return;if(this.isPanningVideo=!1,this.wasPaused){this.setPlaying(!1);return}const t=this.$refs.player;t&&t.play().catch(()=>{})},initializePlayer(){var i,a;const t=this.$refs.player;if(!t)return;const e=this.videoOptions,r=(i=e==null?void 0:e.muted)!=null?i:!1,s=(a=e==null?void 0:e.autoplay)!=null?a:!1;this.loadSettings(),this.volume=typeof t.volume=="number"?t.volume:1,this.lastVolume=this.volume>0?this.volume:1,this.isMuted=r||this.mutedOnStart,t.defaultMuted=this.isMuted,t.muted=this.isMuted,this.setVolume(this.isMuted?0:this.volume),t.loop=this.loopEnabled,t.autoplay=this.autoplayEnabled||s,this.applyPlaybackRate(),this.showControls=!0,(this.autoplayEnabled||this.isPlaying||s)&&this.play().catch(()=>{}),this.$addEventListener("mouseup",this.handlePanMouseEnd),this.$addEventListener("keydown",this.handleKeyDown);const n=document;(n.fullscreenEnabled||n.webkitFullscreenEnabled||n.mozFullScreenEnabled||n.msFullscreenEnabled)&&(this.$addEventListener("fullscreenchange",this.handleFullscreenChange),this.$addEventListener("webkitfullscreenchange",this.handleFullscreenChange),this.$addEventListener("mozfullscreenchange",this.handleFullscreenChange),this.$addEventListener("MSFullscreenChange",this.handleFullscreenChange))},setVolume(t){const e=this.$refs.player;if(!e)return;const r=Math.min(1,Math.max(0,t));e.volume=r,this.volume=r;const s=this.isMuted;this.isMuted=r===0,e.muted=this.isMuted,this.isMuted?s||(this.lastVolume=this.lastVolume||1):this.lastVolume=this.volume},onVolumeInput(t){const e=t.target;this.setVolume(Number((e==null?void 0:e.value)||0))},adjustVolume(t){this.setVolume(this.volume+.1*t)},toggleMute(){this.setVolume(this.isMuted?this.lastVolume||1:0)},async handleControlZoom(t){const e=this.$refs.zoomable;e!=null&&e.zoom&&(this.isZoomable||(this.forceZoomFromControls=!0,await this.$nextTick()),e.zoom(t),this.isZoomable||(this.forceZoomFromControls=!1))},destroyPlayer(){this.player&&(this.player.stopLoad(),this.player.destroy())},handleFullscreenChange(){const t=document;this.isFullscreen=!!t.fullscreenElement||!!t.mozFullScreenElement||!!t.webkitFullscreenElement||!!t.msFullscreenElement||window.innerWidth===screen.width&&window.innerHeight===screen.height},onScrubStart(){this.isScrubbing=!0,this.$clearTimeouts();const t=this.$refs.videoContainer;t&&t.classList.add("scrubbing");const e=this.$refs.player;e&&e.pause()},onScrubEnd({percent:t,wasPaused:e}){this.isScrubbing=!1;const r=this.$refs.videoContainer;r&&r.classList.remove("scrubbing");const s=this.$refs.player;if(!s)return;const n=t*this.videoDuration;s.currentTime=n,this.currentTime=Tr(n),this.progressPercent=t,!e&&(s.play().catch(console.error),this.scheduleControlsHide())},async play(){const t=this.$refs.player;if(t)try{this.applyPlaybackRate(),await t.play(),this.playbackRetries=0,this.setPlaying(!0)}catch(e){const r=e.name;if(r==="AbortError")return;console.error(e),this.playbackRetries+=1,this.isHls&&this.playbackRetries<3?this.initHls():r==="NotAllowedError"?(this.isLoading=!1,this.setPlaying(!1)):(this.isError=!0,this.isLoading=!1,this.setPlaying(!1))}},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,t?this.scheduleControlsHide():(this.showControls=!0,this.$clearTimeouts())},closeFullscreenMode(){document.fullscreenElement&&(Wn().then(()=>{this.isFullscreen=!1}),this.isFullscreen=!1)},openFullscreenMode(){const t=this.$refs.videoContainer;t&&(Hn(t).then(()=>{this.isFullscreen=!0}),this.isFullscreen=!0)},toggleFullscreenMode(){this.isFullscreen?this.closeFullscreenMode():this.openFullscreenMode()},getDuration(){const t=this.$refs.player;t&&(this.videoLength=Tr(t.duration),this.videoDuration=t.duration,this.applyPlaybackRate())},handleTimeUpdate(){const t=this.$refs.player;t&&(this.currentTime=Tr(t.currentTime),this.videoDuration>0&&(this.progressPercent=t.currentTime/this.videoDuration))},skip(t){const e=t!=null?t:this.seekStep,r=this.$refs.player;if(!r)return;const s=Number.isFinite(r.duration)&&r.duration>0?r.duration:this.videoDuration,n=Math.max(0,Math.min(s,r.currentTime+e));r.currentTime=n},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"j":this.skip(-this.seekStep);break;case"l":this.skip(this.seekStep);break;case"arrowleft":t.preventDefault(),this.skip(-this.seekStep);break;case"arrowright":t.preventDefault(),this.skip(this.seekStep);break;case"arrowup":t.preventDefault(),this.adjustVolume(1);break;case"arrowdown":t.preventDefault(),this.adjustVolume(-1);break;case"m":this.toggleMute();break;case"escape":t.preventDefault(),this.closeControlsSettings(),this.closeFullscreenMode();break;case"f":this.openFullscreenMode();break}}}}),d_="";var O6=function(){var e=this,r=e._self._c;return r("div",{ref:"videoContainer",class:["e-video-player","video-container","e-relative e-bg-black e-w-full e-h-full e-flex e-flex-col e-justify-center e-overflow-hidden e-mx-auto",{paused:!e.playing}],style:{height:e.$attrs.height,width:e.$attrs.width},on:{mousemove:e.handleContainerMouseMove,mouseleave:e.handleContainerMouseLeave,mousedown:function(s){return e.handleContainerMouseDown(s)}}},[r("EZoomable",{ref:"zoomable",attrs:{"ignore-pointer-events":e.zoomableIgnorePointerEvents,disabled:!e.isActuallyZoomable,"with-overlay":e.hasPlayerContainerOverlay},on:{"on-frame-props-change":function(s){return e.$emit("on-frame-props-change",s)}},scopedSlots:e._u([{key:"overlay",fn:function(){return[e._t("player-container-overlay")]},proxy:!0}],null,!0)},[e._t("background",function(){return[e.withOverlayOnBackground?r("div",{staticClass:"e-absolute e-inset-0 e-overflow-hidden e-pointer-events-none",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(s){return e.$emit("error",s)}}}):e._e()]):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:{error:e.handle404Error,ended:function(s){return e.setPlaying(!1)},click:e.onContainerClick,loadedmetadata:e.getDuration,seeking:function(s){e.isLoading=!0},seeked:function(s){e.isLoading=!1},timeupdate:e.handleTimeUpdate,progress:e.onProgress,loadeddata:function(s){e.isLoading=!1},contextmenu:function(s){s.preventDefault()}}},"video",e.sanitizedVideoOptions,!1),e.videoListeners),[e.isWebRtc?e._e():e._l(e.sourceItems,function(s){return r("source",e._g({key:s.src,attrs:{src:s.src,type:s.type},on:{error:e.handle404Error}},e.videoListeners))})],2)],2),e.showCenterPlayButton&&!e.playing&&!e.isLoading&&!e.isError&&!e.isScrubbing&&!e.isPanningVideo&&e.pauseOnClick?r("button",{staticClass:"center-play-overlay e-group e-absolute e-left-1/2 e-top-1/2 e--translate-x-1/2 e--translate-y-1/2 e-w-20 e-h-20 e-border-0 e-rounded-full e-z-[8] e-cursor-pointer e-inline-flex e-items-center e-justify-center e-bg-transparent e-p-0",attrs:{type:"button","aria-label":"Play video"},on:{click:function(s){return s.stopPropagation(),e.play.apply(null,arguments)}}},[r("span",{staticClass:"center-play-overlay__inner e-w-20 e-h-20 e-rounded-full e-inline-flex e-items-center e-justify-center e-transition-colors e-duration-150 e-ease-in-out e-bg-[linear-gradient(145deg,rgba(96,165,250,0.62),rgba(59,130,246,0.58))] e-border e-border-solid e-border-[rgba(96,165,250,0.72)] e-shadow-[0_10px_24px_rgba(29,78,216,0.4)] e-backdrop-blur-[8px] group-hover:e-bg-[linear-gradient(145deg,rgba(96,165,250,0.78),rgba(59,130,246,0.74))]"},[r("EIcon",{staticClass:"e-text-white e-text-[2rem] e-ml-1",attrs:{icon:"fa-solid fa-play"}})],1)]):e._e(),e.isLoading||e.showLoadingAnimation?r("div",{staticClass:"spinner-container e-absolute e-inset-0 e-flex e-justify-center e-items-center e-bg-[linear-gradient(to_top,rgba(0,0,0,0.65),transparent)]"},[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-absolute e-inset-0 e-flex e-justify-center e-items-center e-gap-3 e-text-white e-bg-[linear-gradient(to_top,rgba(0,0,0,0.65),transparent)]"},[e._t("error",function(){return[r("EIcon",{staticClass:"e-align-middle",attrs:{icon:"fa-solid fa-video-slash",size:"2xl"}}),r("span",[e._v("This video file cannot be played.")])]})],2):e._e(),e._t("controls",function(){return[e.shouldRenderControls?r("EVideoPlayerControls",{ref:"controls",attrs:{playing:e.playing,"progress-percent":e.progressPercent,"buffer-percent":e.bufferPercent,"current-time":e.currentTime,"video-length":e.videoLength,"video-duration":e.videoDuration,"is-muted":e.isMuted,volume:e.volume,"seek-step":e.seekStep,"playback-rate":e.playbackRate,"playback-rate-options":e.playbackRateOptions,"seek-step-options":e.seekStepOptions,"is-zoomable":e.isZoomable,"show-settings-button":e.showSettingsButton,"show-volume-control":e.showVolumeControl,"with-controls-background":e.withControlsBackground,"show-controls":e.showControls,"is-fullscreen":e.isFullscreen,"loop-enabled":e.loopEnabled,"autoplay-enabled":e.autoplayEnabled,"muted-on-start":e.mutedOnStart,"settings-items":e.resolvedSettingsItems},on:{"toggle-play":e.togglePlay,skip:e.skip,"toggle-mute":e.toggleMute,"volume-input":e.onVolumeInput,"zoom-in":function(s){return e.handleControlZoom(-1)},"zoom-out":function(s){return e.handleControlZoom(1)},"set-playback-rate":e.setPlaybackRate,"set-seek-step":e.setSeekStep,"set-loop-enabled":e.setLoopEnabled,"set-autoplay-enabled":e.setAutoplayEnabled,"set-muted-on-start":e.setMutedOnStart,"reset-settings":e.resetSettings,"toggle-fullscreen":e.toggleFullscreenMode,"scrub-start":e.onScrubStart,"scrub-end":e.onScrubEnd,"settings-visibility-change":e.onSettingsVisibilityChange,"controls-hover-change":e.onControlsHoverChange}}):e._e()]},{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)},I6=[],z6=z(P6,O6,I6,!1,null,"020454a9",null,null);const mo=z6.exports,lt={bind(t,e){const{value:r}=e;if(typeof r!="function"){console.error("Invalid callback function provided to v-resize-observer");return}const s=new ResizeObserver(n=>{n[0]&&r(n[0])});s.observe(t),t.__resizeObserver__=s},unbind(t){t.__resizeObserver__&&(t.__resizeObserver__.disconnect(),delete t.__resizeObserver__)}},go=[{name:"resize-observer",definition:lt},{name:"click-outside",definition:ns}],Ot={transparencyGradient:"transparency-gradient",transparencyGradientLight:"transparency-gradient-light",transparencyGradientHover:"transparency-gradient-hover",loadingGradient:"loading-gradient",stripedPattern:"stripedPattern",clipPath:"clip-path"},we={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 vt({timestamp:t,timezone:e}){const r=vo(t,e);return Be(t).add(r,"minutes").toDate()}function os({date:t,timezone:e}){const r=new Date(t).getTimezoneOffset(),s=vo(t,e);return Be(t).add(r,"minutes").utcOffset(s,!0).format()}function vo(t,e){return e?Be.tz(t,e).utcOffset():R6(t)}function R6(t){return Be.parseZone(t).utcOffset()}const B6=E.extend({name:"ETimelineMilestone",directives:{resizeObserver:lt},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:we,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 s=r.children[0];if(!s)return;const n=s.getBoundingClientRect(),i=e.dataset.timeoutId;i&&(clearTimeout(Number(i)),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(n.width)),this.containerHeight||(this.containerHeight=e.dataset.initialContentHeight=String(n.height)),e.dataset.transitionStart=String(Date.now()),e.style.borderRadius="0.5em",e.classList.add(we.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 s=Date.now()-Number(e.dataset.transitionStart),n=s>this.transitionDuration?this.transitionDuration:s,i=setTimeout(()=>{e.classList.remove(we.milestoneHovered),e.dataset.timeoutId=""},n);e.dataset.timeoutId=String(i),this.timeouts.push(i),this.isMouseOver=!1},onMilestoneClick(t,e){this.$emit("milestone-click",e)},tzStringToDate(t){return vt({timestamp:t,timezone:this.timezone})}}}),h_="";var F6=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:s=>e.onMilestoneMouseOver(s),mousemove:e.onMilestoneMouseMove,mouseleave:s=>e.onMilestoneMouseLeave(s),click:s=>e.onMilestoneClick(s,e.milestone)}},[r("div",{class:e.classNames.milestoneContent,style:e.contentStyles},[e._t("content",function(){var s;return[r("span",[e._v(" "+e._s((s=e.milestone)==null?void 0:s.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)])},A6=[],H6=z(B6,F6,A6,!1,null,null,null,null);const N6=H6.exports,W6=E.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`}}}}),f_="";var Y6=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(s){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)})])},j6=[],U6=z(W6,Y6,j6,!1,null,"614947ed",null,null);const G6=U6.exports,q6=E.extend({name:"ETimelineMarkers",components:{ETimelineMarker:G6},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=k.drag().on("start",function(e,r){t.handleMarkerDrag({marker:r,markerElement:k.select(this),dragEvent:e})}).on("drag",function(e,r){t.handleMarkerDrag({marker:r,markerElement:k.select(this),dragEvent:e})}).on("end",function(e,r){t.handleMarkerDrag({marker:r,markerElement:k.select(this),dragEvent:e})}),k.selectAll(`.${we.marker}`).data(this.markers).call(this.markersDragBehavior)},removeMarkersDragBehavior(){this.markersDragBehavior&&(this.markersDragBehavior.on("start",null).on("drag",null).on("end",null),k.selectAll(`.${we.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(`.${we.markerLine}`).getBoundingClientRect().left,e.classed(we.markerDragged,!0));const s=r.x-this.initialMarkerDragMouseOffset,n=this.timeScale.invert(s-this.svgLeft);let i=this.timeScale(n);const a=this.isTimestampAllowedForMarker(n,t);if(r.type==="drag"&&a&&e.attr("style",`left: ${i}px`),r.type==="end"){const o=t.id||t.timestamp;i=a?i:this.timeScale(this.tzStringToDate(t.timestamp)),this.markersPositions={...this.markersPositions,[o]:{...this.markersPositions[o],position:i}},e.classed(we.markerDragged,!1)}r.type!=="start"&&this.$emit(`marker-drag-${r.type}`,{marker:t,newTimestamp:a?this.dateToTzString(n):t.timestamp})},updateMarkers(){if(!this.markers.length)return;const t=12,e=200;this.markers.forEach((r,s,n)=>{const i=typeof r.timestamp=="string"?this.tzStringToDate(r.timestamp):r.timestamp,a=this.timeScale(i);let c=!1;const o=this.stickyMarkers?Math.max(a,s*t):a;if(s<n.length-1){const l=n[s+1],d=typeof l.timestamp=="string"?this.tzStringToDate(l.timestamp):l.timestamp,h=this.timeScale(d);c=(this.stickyMarkers?Math.max(h,(s+1)*t):a)-o<e+t}this.markersPositions={...this.markersPositions,[r.id]:{isHidden:c,position:o}}}),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 vt({timestamp:t,timezone:this.timeZone})},dateToTzString(t){return os({date:t,timezone:this.timeZone})}}});var Z6=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-tl-markers"},e._l(e.markers,function(s){var n,i;return r("ETimelineMarker",{key:s.id,attrs:{marker:s,height:e.height,position:(n=e.markersPositions[s.id])==null?void 0:n.position,hidden:(i=e.markersPositions[s.id])==null?void 0:i.isHidden,"data-id":s.id},on:{"marker-clicked":function(a){return e.$emit("marker-clicked",a)}},scopedSlots:e._u([{key:`marker.${s.id}`,fn:function(){return[e._t(`marker.${s.id}`,function(){return[e._v(" "+e._s(s.label)+" ")]},{marker:s})]},proxy:!0}],null,!0)})}),1)},X6=[],V6=z(q6,Z6,X6,!1,null,null,null,null);const Q6=V6.exports,K6=E.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},minZoomDuration:{type:Number,default:0},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,isZooming:!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(wr.Zoom),this.emitTimeScaleChange()},focusedDomain(t){t&&this.zoomToFocusedDomain(t)},focusedTimestamp(t){t&&this.panToTimestamp(t)},width:{handler(t,e){!t||!e||t===e||this.handleWidthChange(t)}}},mounted(){this.$nextTick(()=>{this.initRefs(),this.initTimeScale(),this.initZoomBehavior(),this.emitTimeScaleChange(),this.emitFocusedDomainChange(wr.Initial)})},methods:{initRefs(){this.container=this.$refs.container},initTimeScale(){this.timeScale=k.scaleTime().domain([this.focusedStartDate,this.focusedEndDate]).range([0,this.getWidth()]),this.initialTimeScale=this.timeScale.copy()},handleWidthChange(t){if(!this.zoomBehavior||!this.selection)return;const[e,r]=this.timeScale.domain(),s=this.focusedEndDate.getTime()-this.focusedStartDate.getTime(),n=r.getTime()-e.getTime();this.initialTimeScale=k.scaleTime().domain([this.focusedStartDate,this.focusedEndDate]).range([0,t]);const i=s/n,a=-i*this.initialTimeScale(e),c=k.zoomIdentity.translate(a,0).scale(i),{scaleExtent:o,translateExtent:l}=this.calculateZoomExtents();this.zoomBehavior.scaleExtent(o).translateExtent(l),this.selection.call(this.zoomBehavior.transform,c),this.timeScale=c.rescaleX(this.initialTimeScale.copy()),this.lastTransform={...c}},calculateZoomExtents(){const t=this.getWidth(),e=this.maxDate.getTime()-this.minDate.getTime(),r=this.focusedEndDate.getTime()-this.focusedStartDate.getTime(),s=r/e,n=this.minZoomDuration>0?r/this.minZoomDuration:1/0,i=this.initialTimeScale.copy();i.domain([this.minDate,this.maxDate]);const a=i(this.minDate),c=-(t-i(this.maxDate));return{scaleExtent:[s,n],translateExtent:[[a||-1/0,0],[c||1/0,0]]}},initZoomBehavior(){const{scaleExtent:t,translateExtent:e}=this.calculateZoomExtents();this.zoomBehavior=k.zoom().scaleExtent(t).translateExtent(e).on("zoom",r=>{if(!(this.isZooming||this.disabled)){this.isZooming=!0;try{this.handleZoom(r)}catch(s){console.error(s)}finally{this.isZooming=!1}}}),this.selection=k.select(this.container),this.selection.call(this.zoomBehavior)},handleZoom(t){const e=t.transform.rescaleX(this.initialTimeScale.copy()),[r,s]=e.domain(),n=r<=this.minDate,i=s>=this.maxDate;if(n||i){const a=k.zoomIdentity.translate(this.lastTransform.x,this.lastTransform.y).scale(this.lastTransform.k);this.selection.call(this.zoomBehavior.transform,a),this.updateBoundaries(n,i);return}this.transformDiff={scale:t.transform.k/this.lastTransform.k,translation:t.transform.x-this.lastTransform.x},this.lastTransform={...t.transform},this.timeScale=e},toD3Date(t){return vt({timestamp:t,timezone:this.timezone})},toDateString(t){return os({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,s=this.toD3Date(e!=null?e:this.focusedStartDate),n=this.toD3Date(r!=null?r:this.focusedEndDate);if(!this.timeScale)return;const[i,a]=this.timeScale.domain();if(s.getTime()===i.getTime()&&n.getTime()===a.getTime())return;const c=this.initialTimeScale.domain().map(b=>b.getTime()),o=c[1]-c[0],l=n.getTime()-s.getTime();let d=o/l;const h=this.zoomBehavior.scaleExtent();d=Math.min(Math.max(d,h[0]),h[1]);const m=this.initialTimeScale.copy().domain([s,n]);this.selection.transition().duration(this.scalingDuration/2).call(this.zoomBehavior.scaleTo,d).on("end",()=>this.translateIntervalIntoView(s,n,d)),this.timeScale=m},translateIntervalIntoView(t,e,r){const s=this.timeScale(t),n=this.timeScale(e),i=(s+n)/2,c=this.getWidth()/2-i,o=k.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,k.zoomIdentity.translate(o.x+c,o.y).scale(r))},emitTimeScaleChange(){this.$emit("time-scale-change",this.timeScale)},emitFocusedDomainChange(t){if(!this.selection.node()||this.isTransitioning||!this.timeScale)return;const[r,s]=this.timeScale.domain(),n=this.toDateString(r),i=this.toDateString(s);this.$emit("visible-interval-change",{fromDate:n,toDate:i,trigger:t,transform:this.transformDiff})},panToTimestamp(t){const e=new Date(t),r=this.timeScale(e),s=k.zoomTransform(this.selection.node()),n=s.x-r+this.getWidth()/2;this.selection.transition().duration(this.translationDuration).call(this.zoomBehavior.transform,k.zoomIdentity.translate(n,0).scale(s.k)).on("end",()=>{this.emitFocusedDomainChange(wr.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}}}),p_="";var J6=function(){var e=this,r=e._self._c;return r("div",{ref:"container",staticClass:"e-zoom-behavior",class:{"e-pointer-events-none":e.disabled}},[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)},e4=[],t4=z(K6,J6,e4,!1,null,null,null,null);const r4=t4.exports,s4=E.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:we}},computed:{classes(){return{[we.xAxis]:!0,[we.xAxisDark]:this.dark}},axis(){return k.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,s=(e-t)/r;return isNaN(s)?1:s},currentTicksConfig(){const{interval:t,format:e}=this.ticksConfigs.find(s=>s.precision>=this.density&&s.interval);return{formatFn:s=>typeof e=="function"?e(s):k.utcFormat(e)(s),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;k.select(t).call(this.axis),this.translateTicksText()},translateTicksText(){const t=this.$refs.container;k.select(t).selectAll(".tick text").each(function(){k.select(this).attr("x",5).attr("y",0).style("text-anchor","start")})},updateTicksSize(){this.axis.tickSizeOuter(0).tickSizeInner(this.height),this.update()}}}),m_="";var n4=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})`}})},i4=[],a4=z(s4,n4,i4,!1,null,null,null,null);const Zn=a4.exports,ls=t=>{const e=k.utcFormat("%_d")(t),r=o4(parseInt(e));return`${e}${r}`},yo=t=>new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()+1)).getUTCDate()===1?"":k.utcFormat("%-d")(t),$r=t=>["0"," 0","00"].includes(k.utcFormat("%H")(t))?"":`${k.utcFormat("%H")(t)}h`,qt=t=>{const e=k.utcFormat("%H:%M")(t);return e==="00:00"?"":e},Xn=t=>k.utcFormat("%M:%S")(t),_o=t=>`${k.utcFormat("%Hh%Mm")(t)}`,Vn=t=>{const e=qt(t),r=ls(t),s=k.utcFormat("%B")(t);return e||`${s} ${r}`},Qn=t=>{const e=qt(t),r=Number.parseInt(k.utcFormat("%H")(t)),s=ls(t),n=k.utcFormat("%B")(t);return e&&r%6===0?`${n} ${s} ${e}`:Vn(t)},o4=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"}},Er=t=>e=>{const r=k.utcFormat("%H")(e);return!(k.utcFormat("%M")(e)==="00"&&Number.parseInt(r)%t===0)},Kn=t=>e=>{const r=k.utcFormat("%M")(e);return Number.parseInt(r)%t!==0},bo=t=>e=>{const r=k.utcFormat("%M")(e),s=k.utcFormat("%S")(e);return Number.parseInt(r)%t!==0&&Number.parseInt(s)===0},te={_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},Jn={[jt.Overview]:[{precision:te._30_seconds,interval:k.utcMinute.every(2),format:_o},{precision:te._1_minute,interval:k.utcMinute.every(5),format:_o},{precision:te._2_minutes,interval:k.utcMinute.every(10),format:Vn},{precision:te._5_minutes,interval:k.utcMinute.every(20),format:Qn},{precision:te._15_minutes,interval:k.utcHour,format:Qn},{precision:te._30_minutes,interval:k.utcHour.every(2),format:Qn},{precision:te._2_hours,interval:k.utcHour.every(6),format:t=>{const e=qt(t),r=ls(t),s=k.utcFormat("%B")(t);return e||`${s} ${r}`}},{precision:te._3_hours,interval:k.utcHour.every(12),format:Vn},{precision:te._6_hours,interval:k.utcHour.every(24),format:t=>{const e=ls(t),r=k.utcFormat("%b")(t),s=k.utcFormat("%Y")(t);return`${r} ${e} ${s}`}},{precision:te._2_days,interval:k.utcMonth,format:"%Y – %B"},{precision:te._2_year,interval:k.utcMonth.every(3),format:"%Y Q%q"},{precision:te._5_years,interval:k.utcYear.every(5),format:"%Y"},{precision:te._20_years,interval:k.utcYear.every(20),format:"%Y"},{precision:te._75_years,interval:k.utcYear.every(75),format:"%Y"},{precision:te._300_years,interval:k.utcYear.every(300),format:"%Y"},{precision:te.infinity,interval:k.utcMonth.every(12),format:"%Y"}],[jt.Detailed]:[{precision:te._10_seconds,interval:k.utcSecond.every(10),format:Xn},{precision:te._20_seconds,interval:(Wl=k.utcSecond.every(20))==null?void 0:Wl.filter(bo(2)),format:Xn},{precision:te._30_seconds,interval:(Yl=k.utcSecond.every(30))==null?void 0:Yl.filter(bo(2)),format:Xn},{precision:te._1_minute,interval:k.utcMinute.filter(Kn(5)),format:qt},{precision:te._2_minutes,interval:(jl=k.utcMinute.every(2))==null?void 0:jl.filter(Kn(10)),format:qt},{precision:te._5_minutes,interval:(Ul=k.utcMinute.every(5))==null?void 0:Ul.filter(Kn(20)),format:qt},{precision:te._15_minutes,interval:(Gl=k.utcMinute.every(15))==null?void 0:Gl.filter(Er(1)),format:qt},{precision:te._30_minutes,interval:(ql=k.utcMinute.every(30))==null?void 0:ql.filter(Er(2)),format:qt},{precision:te._1_hour,interval:k.utcHour.filter(Er(6)),format:$r},{precision:te._2_hours,interval:(Zl=k.utcHour.every(2))==null?void 0:Zl.filter(Er(6)),format:$r},{precision:te._3_hours,interval:(Xl=k.utcHour.every(3))==null?void 0:Xl.filter(Er(12)),format:$r},{precision:te._4_hours,interval:k.utcHour.every(4),format:$r},{precision:te._6_hours,interval:k.utcHour.every(6),format:$r},{precision:te._1_day,interval:k.utcDay,format:yo},{precision:te._2_days,interval:k.utcDay.every(2),format:yo},{precision:te._1_month,interval:k.utcMonth,format:"%B"},{precision:te._1_month_abbr,interval:k.utcMonth,format:"%b"},{precision:te._1_month_letter,interval:k.utcMonth,format:t=>k.utcFormat("%B")(t).charAt(0)},{precision:te._3_months,interval:k.utcMonth.every(3),format:"Q%q"},{precision:te._2_year,interval:k.utcMonth.every(6),format:"Q%q"},{precision:te._5_years,interval:k.utcYear.every(2),format:"%Y"},{precision:te._20_years,interval:k.utcYear.every(4),format:"%Y"},{precision:te._75_years,interval:k.utcYear.every(25),format:"%Y"},{precision:te._300_years,interval:k.utcYear.every(100),format:"%Y"},{precision:te.infinity,interval:k.utcYear.every(500),format:""}],[jt.DetailedBackground]:[{precision:te._10_seconds,interval:k.utcSecond,format:""},{precision:te._20_seconds,interval:k.utcSecond.every(5),format:""},{precision:te._30_seconds,interval:k.utcSecond.every(10),format:""},{precision:te._1_minute,interval:k.utcSecond.every(20),format:""},{precision:te._2_minutes,interval:k.utcSecond.every(30),format:""},{precision:te._5_minutes,interval:k.utcMinute,format:""},{precision:te._15_minutes,interval:k.utcMinute.every(3),format:""},{precision:te._30_minutes,interval:k.utcMinute.every(6),format:""},{precision:te._1_hour,interval:k.utcMinute.every(15),format:""},{precision:te._2_hours,interval:k.utcMinute.every(30),format:""},{precision:te._3_hours,interval:k.utcHour,format:""},{precision:te._4_hours,interval:k.utcHour,format:""},{precision:te._6_hours,interval:k.utcMinute.every(120),format:""},{precision:te._1_day,interval:k.utcHour.every(8),format:""},{precision:te._2_days,interval:k.utcHour.every(12),format:""},{precision:te._1_month,interval:k.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),s=Math.ceil(r/5);return e===s||e===2*s||e===3*s||e===4*s}),format:""},{precision:te._1_month_abbr,interval:k.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),s=Math.ceil(r/4);return e===s||e===2*s||e===3*s}),format:""},{precision:te._1_month_letter,interval:k.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),s=Math.ceil(r/2);return e===s}),format:""},{precision:te._3_months,interval:k.utcMonth,format:""},{precision:te._3_months,interval:k.utcMonth,format:""},{precision:te._2_year,interval:k.utcYear,format:""},{precision:te._5_years,interval:k.utcYear.every(2),format:""},{precision:te._20_years,interval:k.utcYear.every(5),format:""},{precision:te._75_years,interval:k.utcYear.every(20),format:""},{precision:te._300_years,interval:k.utcYear.every(100),format:""},{precision:te.infinity,interval:k.utcYear.every(500),format:""}]},l4=E.extend({name:"EXAxisOverview",components:{EXAxis:Zn},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:we,ticksConfigs:Jn[jt.Overview]}}}),g_="";var c4=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}})},u4=[],d4=z(l4,c4,u4,!1,null,null,null,null);const h4=d4.exports,f4=E.extend({name:"EXAxisDetailed",components:{EXAxis:Zn},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:we,ticksConfigs:Jn[jt.Detailed]}}}),v_="";var p4=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}})},m4=[],g4=z(f4,p4,m4,!1,null,null,null,null);const v4=g4.exports,y4=E.extend({name:"EXAxisBackground",components:{EXAxis:Zn},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:we,ticksConfigs:Jn[jt.DetailedBackground]}}}),y_="";var _4=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}})},b4=[],C4=z(y4,_4,b4,!1,null,null,null,null);const w4=C4.exports,x4=E.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:Ot,TimelineChartType:ft,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 S4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("defs",{ref:"mainContainer",staticClass:"e-timeline"},[e._l(e.eventsGroups,function(s,n){return[r("linearGradient",{key:`${e.defs.loadingGradient}-${n}`,attrs:{id:`${e.defs.loadingGradient}-${n}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"}},[r("stop",{attrs:{offset:"0%","stop-color":s.color,"stop-opacity":"0"}}),r("stop",{attrs:{offset:"50%","stop-color":s.color,"stop-opacity":"0.6"}}),r("stop",{attrs:{offset:"100%","stop-color":s.color,"stop-opacity":"0"}})],1),s.chartType===e.TimelineChartType.LineGraph?[e._l(e.transparencyGradients,function({id:i,stop:a,opacity:c}){return r("linearGradient",{key:`${i}-${n}-${s.chartType}`,attrs:{id:`${i}-${n}-${s.chartType}`,x1:"0%",x2:"0%",y1:"0%",y2:"100%"}},[r("stop",{attrs:{offset:"0%","stop-color":s.color,"stop-opacity":c}}),r("stop",{attrs:{offset:`${a}%`,"stop-color":s.color,"stop-opacity":"0"}})],1)}),r("clipPath",{key:`${e.defs.clipPath}-${n}`,attrs:{id:`${e.defs.clipPath}-${n}`}},[r("rect",{attrs:{width:e.width,height:e.height}})])]:e._e(),s.chartType===e.TimelineChartType.BarChart?[e._l(e.transparencyGradients,function({id:i,opacity:a}){return r("linearGradient",{key:`${i}-${n}-${s.chartType}`,attrs:{id:`${i}-${n}-${s.chartType}`,width:"100%",height:"100%"}},[r("stop",{attrs:{"stop-color":s.color,"stop-opacity":a}})],1)}),r("clipPath",{key:`${e.defs.clipPath}-${n}`,attrs:{id:`${e.defs.clipPath}-${n}`}},[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:"2",height:"7",fill:e.forbiddenIntervalColor}})])],2)},k4=[],T4=z(x4,S4,k4,!1,null,null,null,null);const M4=T4.exports,$4=E.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:we,defs:Ot}},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 vt({timestamp:t,timezone:this.timezone})}}});var E4=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})`}})},D4=[],L4=z($4,E4,D4,!1,null,null,null,null);const P4=L4.exports,O4=E.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:we}},watch:{timestamp(){this.repositionCursor()},timeScale(){this.repositionCursor()},height(){this.repositionCursor()}},methods:{repositionCursor(){const t=this.$refs.cursor,e=k.select(t);if(!e)return;if(!this.timestamp){e.style("opacity",0);return}const r=this.tzStringToDate(this.timestamp),s=this.timeScale(r);isNaN(s)?e.style("opacity",0):e.attr("x1",s).attr("x2",s).style("opacity",this.opacity),e.attr("y2",this.height)},tzStringToDate(t){return vt({timestamp:t,timezone:this.timezone})}}});var I4=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`}})},z4=[],R4=z(O4,I4,z4,!1,null,null,null,null);const Co=R4.exports,B4=E.extend({name:"ETimelineCursor",components:{ECursor:Co},props:{timeScale:{type:Function,required:!0},selectedTimestamp:{type:String,required:!0},timezone:{type:String,default:"UTC"},height:{type:Number,required:!0}}});var F4=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}})},A4=[],H4=z(B4,F4,A4,!1,null,null,null,null);const N4=H4.exports,W4=E.extend({name:"ETimelineSelectedTimestampCursor",components:{ECursor:Co},props:{timeScale:{type:Function,required:!0},selectedTimestamp:{type:String,required:!0},timezone:{type:String,default:"UTC"},height:{type:Number,required:!0}}});var Y4=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}})},j4=[],U4=z(W4,Y4,j4,!1,null,null,null,null);const G4=U4.exports,q4=E.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=k.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=k.pointer(t,this.$refs.cursor)[0];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=k.pointer(t,this.$refs.cursor)[0];if(e<=this.minHoverZone)return;const r=this.timeScale.invert(e),s=this.dateToTzString(r);this.$emit("timestamp-clicked",s,t.target)},tzStringToDate(t){return vt({timestamp:t,timezone:this.timezone})},dateToTzString(t){return os({date:t,timezone:this.timezone})}}});var Z4=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)},X4=[],V4=z(q4,Z4,X4,!1,null,null,null,null);const Q4=V4.exports,K4=E.extend({name:"ETimelineGroupContainer",props:{groupId:{type:String,required:!0},label:{type:String,default:""},color:{type:String,default:""},backgroundColor:{type:String,default:""},preserveColors:{type:Boolean,default:!1},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:we,characterWidth:6.5,isHighlighted:!1}},computed:{computedClasses(){return{label:{[`${we.labelGroup} ${we.labelGroup}-${this.groupId}`]:!0},container:{[`${we.eventGroup} ${we.eventGroup}-${this.groupId}`]:!0,[`${we.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=k.color(this.color);return this.preserveColors||(t.opacity=this.dark?.2:.5),t.toString()},textFillColor(){var t,e;return(this.dark?(t=k.color(this.color))==null?void 0:t.brighter(1.5):(e=k.color(this.color))==null?void 0:e.darker(2)).toString()},loadingIndicatorFill(){return`url(#${Ot.loadingGradient}-${this.groupId})`}}}),__="";var J4=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(s){e.isHighlighted=!0},mouseleave:function(s){e.isHighlighted=!1},click:function(s){return s.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()])},eh=[],th=z(K4,J4,eh,!1,null,null,null,null);const ei=th.exports,rh=E.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:we}},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 sh=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("g",{class:e.classNames.eventRectContainer},[e._l(e.numberOfBackgroundDots,function(s){return r("rect",{key:`bg-${e.numberOfBackgroundDots-s}`,class:[e.classNames.eventRect,`${e.classNames.eventRect}--dot`,`bg-${s}`],attrs:{x:e.getBackgroundX(s),y:e.getBackgroundY(s),width:e.getBackgroundSize(s),height:e.getBackgroundSize(s),fill:e.event.color,stroke:e.rectStroke,opacity:e.getBackgroundOpacity(s),"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)},nh=[],ih=z(rh,sh,nh,!1,null,null,null,null);const ah=ih.exports,oh=E.extend({name:"ETimelineRectsChart",directives:{},components:{ETimelineGroupContainer:ei,ETimelineRectsChartGroupedDots:ah},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:we,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=k.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 s=new Date(e.startDate||e.timestamp).getTime(),n=new Date(r.startDate||r.timestamp).getTime();return s-n}).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 s=this.getEventRectX(e[0],this.timeScale),n=this.getEventRectX(e[e.length-1],this.timeScale),i=s+(n-s)/2,a=e.length>1,c=i;return a?r={...r,textContent:`${e.length}`,textX:i-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,s=(e-t)/r;return isNaN(s)?1:s},groupedEvents(){const t=this.preprocessedEvents,e=[];let r=[];return t.forEach((s,n)=>{if(n===0){r.push(s);return}const i=t[n-1],a=this.getEventRectX(s,this.timeScale),c=this.getEventRectX(i,this.timeScale),o=this.getEventRectWidth(i,this.timeScale,this.rectMinWidth);c+o+this.groupingThreshold>=a?r.push(s):(r.length>0&&e.push([...r]),r=[s])}),r.length>0&&e.push(r),e}},methods:{onMouseOver(t,e,r){t.target.classList.add(we.eventRectHovered);const n=this.convertEventDateToTzString(e);this.$emit("event-mouseover",t,n,r)},onMouseLeave(t){const e=t.target;e.classList.remove(we.eventRectHovered),Array.from(e.children).forEach(r=>{r.classList.remove(we.eventRectHovered)}),this.$emit("event-mouseout")},onGroupedEventsMouseOver(t,e,r){t.target.classList.add(we.eventRectHovered);const n=e.map(this.convertEventDateToTzString);this.$emit("grouped-events-mouseover",t,n,r)},getEventText(t,e,r){if(!t.text)return"";const s=`${t.text}`;if(s.length===1)return s;const i=(this.getEventRectWidth(t,this.timeScale,this.rectMinWidth)-e)/r;return i<Math.min(s==null?void 0:s.length,4)?"":(s==null?void 0:s.length)<=i?s:`${s.slice(0,i-3)}...`},getEventRectWidth(t,e,r){if(!t)return 0;if(this.dots)return this.dotsSize;if(t.startDate&&t.endDate){const s=new Date(t.startDate),n=new Date(t.endDate),i=e(n)-e(s);return Math.max(i,r)}else{const s=1/(this.timeScaleDensity*3600);return Math.max(s,r)}},getEventRectX(t,e){const r=e(t.startDate||t.timestamp);return isNaN(r)?0:r},tzStringToDate(t){return vt({timestamp:t,timezone:this.timezone})},dateToTzString(t){return os({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 s,n;return(r?(s=k.color(t))==null?void 0:s.brighter(1.5+e):(n=k.color(t))==null?void 0:n.darker(2+e)).toString()}}}),b_="";var lh=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,"preserve-colors":e.eventsGroup.preserveColors,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(s){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(s,n){return r("g",{key:n,class:e.classNames.eventRectContainer},[!s.groupedEvents||!e.dots||s.groupedEvents.length===1?[r("rect",{class:[e.classNames.eventRect,e.dots?`${e.classNames.eventRect}--dot`:""],attrs:{x:s.x-(e.dots?s.width/2:0),y:s.y,"data-timestamp":s.timestamp,width:s.width,height:s.height,fill:s.color,stroke:e.rectStroke,cursor:"pointer","stroke-width":e.rectStrokeWidth,ry:e.rectRx,rx:e.rectRy},on:{mouseover:function(i){return e.onMouseOver(i,s,e.groupId)},mouseleave:e.onMouseLeave}})]:e.dots&&s.groupedEvents.length>1?r("ETimelineRectsChartGroupedDots",{key:n,attrs:{event:s,"rect-stroke":e.rectStroke,"rect-stroke-width":e.rectStrokeWidth,"rect-rx":e.rectRx,"rect-ry":e.rectRy,"group-id":e.groupId},nativeOn:{mouseover:function(i){return e.onGroupedEventsMouseOver(i,s.groupedEvents,e.groupId)},mouseleave:function(i){return e.onMouseLeave.apply(null,arguments)}}}):e._e(),s.textContent?r("text",{class:e.classNames.eventRectText,attrs:{fill:s.textColor,x:s.textX,y:s.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(s.textContent)+" ")]):e._e()],2)})],2)},ch=[],uh=z(oh,lh,ch,!1,null,null,null,null);const dh=uh.exports,hh=E.extend({name:"ETimelineLinesChart",directives:{},components:{ETimelineGroupContainer:ei},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:we,defs:Ot,characterWidth:7.5}},computed:{lineGradient(){return`${Ot.transparencyGradientLight}-${this.groupId}-${ft.LineGraph}`},lineDots(){const[t,e]=this.timeScale.domain();return this.eventsGroup.events.filter((s,n)=>{var o,l;const i=n===0?1:n,a=new Date((o=this.eventsGroup.events[i+1])==null?void 0:o.timestamp),c=new Date((l=this.eventsGroup.events[i-1])==null?void 0:l.timestamp);return a>=t&&a<=e||c>=t&&c<=e})},hoverZones(){return this.lineDots.map(t=>{const e=this.timeScale(this.tzStringToDate(t.timestamp)),r=this.yScale(t.count),s=this.timeScale.invert(e-2),n=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)>=s&&this.tzStringToDate(this.hoveredTimestamp)<n}})},yScale(){let t=k.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=k.area().x(r=>r.x).y0(this.height).y1(r=>r.y).curve(k.curveMonotoneX),e=k.line().x(r=>r.x).y(r=>r.y).curve(k.curveMonotoneX);k.select(`.${we.areaGraphPath}-${this.groupId}`).datum(this.hoverZones).attr("d",r=>t(r)),k.select(`.${we.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 vt({timestamp:t,timezone:this.timezone})}}}),C_="";var fh=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(s){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(s,n){return r("g",{key:n},[r("circle",{ref:`${e.classNames.lineGraphDot}-${e.groupId}-${n}`,refInFor:!0,class:[e.classNames.lineGraphDot,`${e.classNames.lineGraphDot}-${e.groupId}`,`${e.classNames.lineGraphDot}-${e.groupId}-${n}`,{[`${e.classNames.lineGraphDot}--active`]:s.isHovering}],attrs:{cx:s.x,cy:s.y,r:"1.5",fill:s.color,"stroke-width":0}}),r("rect",{class:`${e.classNames.lineGraphHoverZone} ${e.classNames.lineGraphHoverZone}-${e.groupId}`,attrs:{x:s.x-2,y:0,width:4,height:e.height,fill:"transparent"},on:{mouseover:function(i){return e.$emit("event-mouseover",i,s,e.groupId)},mouseleave:function(i){return e.$emit("event-mouseout")}}})])})],2)])},ph=[],mh=z(hh,fh,ph,!1,null,null,null,null);const gh=mh.exports,vh=E.extend({name:"ETimelineBarsChart",components:{ETimelineGroupContainer:ei},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:we,defs:Ot,characterWidth:7.5}},computed:{bars(){const[t,e]=this.timeScale.domain();return this.eventsGroup.events.filter(r=>{const s=new Date(r.startDate);return new Date(r.endDate)>=t&&s<=e})},hoverZones(){return this.bars.map(t=>{const e=this.getEventRectWidth(t),r=this.yScale.range()[0]-this.yScale(t.count),s=this.getEventRectX(t,this.timeScale),n=this.previousCountsByTimestamp[t.startDate]||0,i=this.yScale(n+t.count);return{x:s,y:i,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=k.scaleLinear().range([this.height,0]);return t=t.domain([0,this.maxVisibleCount||1]),t}},methods:{getBarOpacity(t){let e;return this.hoveredTimestamp||(e=Ot.transparencyGradient),e=t.isHovering?Ot.transparencyGradientHover:Ot.transparencyGradientLight,`${e}-${this.groupId}-${ft.BarChart}`},getEventRectX(t,e){return isNaN(e(this.tzStringToDate(t.startDate||t.timestamp)))?0:e(this.tzStringToDate(t.startDate||t.timestamp))},tzStringToDate(t){return vt({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),s=this.timeScale(r)-this.timeScale(e);return Math.max(s,this.rectMinWidth)}else{const e=1/(this.currentTimeScaleDensity*3600);return Math.max(e,this.rectMinWidth)}}}}),w_="";var yh=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(s){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(s,n){return r("g",{key:n,class:`${e.classNames.eventBarContainer} ${e.classNames.eventBarContainer}-${e.groupId}`,on:{mouseleave:function(i){return e.$emit("event-mouseout")},mouseover:function(i){return e.$emit("event-mouseover",i,s,e.groupId)},click:function(i){return e.onEventClick()}}},[r("rect",{class:[s.className?s.className:"",e.classNames.eventBarHoverZone],attrs:{x:s.x,y:-e.yOffset,width:s.width,height:e.yScale.range()[0]+e.yOffset,fill:s.color,"fill-opacity":0}}),r("rect",{class:[s.className?s.className:"",e.classNames.eventBar],attrs:{x:s.x,y:s.y,width:s.width,height:s.height,"stroke-width":5,cursor:"pointer",stroke:"#0000",fill:`url(#${e.getBarOpacity(s)})`}})])}),0)])},_h=[],bh=z(vh,yh,_h,!1,null,null,null,null);const Ch=bh.exports;//! moment.js
232
+ 23 59 9 57 541 57 l488 0 24 -24z`}})])])},yd=[],_d=z(gd,vd,yd,!1,null,null,null,null);const bd=_d.exports,Cd=E.extend({name:"ZohoCrm",components:{BaseIcon:fe},props:{color:{type:String,default:"grey"}}});var wd=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"}})])},xd=[],Sd=z(Cd,wd,xd,!1,null,null,null,null);const kd=Sd.exports,Td=E.extend({name:"Tag",components:{BaseIcon:fe},props:{color:{type:String,default:"#000"},backgroundColor:{type:String,default:"white"}}});var Md=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"}})])},$d=[],Ed=z(Td,Md,$d,!1,null,null,null,null);const Dd=Ed.exports,Ld=E.extend({name:"Tag",components:{BaseIcon:fe},props:{color:{type:String,default:"#000"},backgroundColor:{type:String,default:"white"}}});var Pd=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"}})])},Od=[],Id=z(Ld,Pd,Od,!1,null,null,null,null);const zd=Id.exports,Rd=E.extend({name:"Nerves",components:{BaseIcon:fe},props:{color:{type:String,default:"white"}}});var Bd=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"}})])])])},Fd=[],Ad=z(Rd,Bd,Fd,!1,null,null,null,null);const Hd=Ad.exports,Nd=E.extend({name:"Procore",components:{BaseIcon:fe},props:{color:{type:String,default:"white"}}});var Wd=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"1608px",height:"204px",viewBox:"0 0 1608 204",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{staticClass:"s0",attrs:{id:"_Compound_Path_","fill-rule":"evenodd",d:"m1407.6 1h200.4v37.6h-147.4v44.6h94.4v37.5h-94.4v44.6h147.4v37.8h-200.4zm-732.4 41.6v118.8c0.2 5.5-0.7 10.9-2.7 16-2.1 5.1-5.1 9.7-9 13.5-3.8 3.9-8.4 6.9-13.5 8.9-5.1 2-10.6 3-16 2.8h-130.5c-5.5 0.2-11-0.6-16.2-2.6-5.1-2-9.8-5-13.8-8.8-3.9-3.9-7-8.5-9.1-13.7-2-5.1-3-10.6-2.8-16.1v-118.8c-0.2-5.5 0.7-10.9 2.8-16 2-5.1 5-9.7 8.9-13.6 3.9-3.8 8.5-6.8 13.6-8.8 5.1-2 10.6-3 16-2.8h130.5c5.5-0.3 11 0.6 16.2 2.6 5.1 1.9 9.8 4.9 13.7 8.8 4 3.9 7.1 8.5 9.1 13.6 2 5.2 3 10.7 2.8 16.2zm-32.7 59.4l-37-63.5h-74.4l-36 63.5 36.7 63.4h74.5zm704.7 26.9l43 74.3h-57.2l-42.9-74.3h-61.9v74.3h-53v-202.2h168.1c5.5-0.2 11 0.7 16.2 2.7 5.1 2.1 9.8 5.1 13.6 9 3.9 3.9 7 8.6 9 13.8 1.9 5.1 2.8 10.6 2.6 16.1v45.8c0.1 5.1-0.8 10.1-2.6 14.9-1.8 4.8-4.5 9.2-7.9 12.9-3.5 3.8-7.7 6.8-12.3 9-4.6 2.2-9.6 3.4-14.7 3.7zm-14.9-77.8c0-1.7-0.4-3.3-1-4.8-0.6-1.5-1.6-2.9-2.7-4-1.2-1.2-2.6-2.1-4.1-2.7-1.5-0.7-3.1-1-4.7-1h-90.9v52.9h90.9c1.6 0 3.2-0.4 4.7-1 1.5-0.6 2.9-1.6 4.1-2.7 1.1-1.2 2.1-2.5 2.7-4 0.6-1.6 1-3.2 1-4.8zm-181.5-8.5v118.9c0.1 5.4-0.8 10.9-2.8 16-2.1 5-5.1 9.7-9 13.5-3.9 3.9-8.5 6.9-13.6 8.9-5.1 2-10.5 2.9-16 2.7h-130.4c-5.5 0.2-10.9-0.8-15.9-2.8-5.1-2-9.7-5.1-13.5-8.9-3.9-3.9-6.9-8.5-8.8-13.5-2-5.1-3-10.5-2.8-15.9v-118.9c-0.2-5.4 0.8-10.9 2.8-15.9 2-5.1 5-9.7 8.9-13.6 3.9-3.8 8.5-6.9 13.6-8.9 5-2 10.5-2.9 16-2.7h130.4c5.4-0.2 10.9 0.8 15.9 2.8 5.1 2 9.7 5.1 13.5 8.9 3.9 3.9 6.9 8.5 8.9 13.5 2 5.1 2.9 10.5 2.8 15.9zm-32.9 59.5l-36.8-63.5h-74.4l-36.2 63.5 36.9 63.4h74.4zm-229-98.5c5.2 2 10 5.1 13.9 9 4 3.9 7.1 8.6 9.1 13.8 2 5.2 2.9 10.7 2.7 16.3v32.4h-48.6l-21.1-36.4h-74.5l-36.7 63.4 36 63.4h74.4l21.2-36.4h48.5v32.4c0.2 5.5-0.7 10.9-2.7 16-2 5.1-5.1 9.7-8.9 13.5-3.9 3.9-8.5 6.9-13.6 8.9-5.1 2-10.6 3-16 2.8h-130.4c-5.5 0.2-11-0.8-16.1-2.8-5.1-2-9.7-5-13.6-8.9-3.9-3.8-6.9-8.4-8.9-13.5-2-5.1-3-10.5-2.8-16v-118.8c-0.3-5.5 0.6-11 2.6-16.1 2-5.2 5.1-9.8 9-13.7 3.8-4 8.5-7 13.6-9 5.1-2.1 10.6-3 16.2-2.8h130.4c5.5-0.3 11.1 0.5 16.3 2.5zm-486.8 125.4l43 74.3h-56.7l-43-74.3h-62.4v74.3h-52.4v-202.2h167.9c5.5-0.2 11 0.7 16.1 2.8 5.2 2 9.8 5 13.7 9 3.9 3.9 6.9 8.5 8.9 13.7 2 5.1 2.9 10.6 2.7 16.1v45.7c0.1 5.2-0.7 10.3-2.6 15-1.8 4.8-4.5 9.2-8 13-3.5 3.7-7.7 6.8-12.4 8.9-4.6 2.2-9.7 3.4-14.8 3.7zm-14.9-77.9c0-1.6-0.4-3.2-1-4.7-0.7-1.6-1.6-2.9-2.8-4.1-1.1-1.2-2.5-2.1-4-2.7-1.6-0.6-3.2-0.9-4.9-0.9h-91.5v52.8h90.7c1.6 0 3.2-0.3 4.8-0.9 1.5-0.6 2.9-1.5 4-2.7 1.2-1.2 2.2-2.5 2.8-4 0.6-1.6 1-3.2 1-4.8zm-177.8-8.5v45.8c0.2 5.4-0.7 10.8-2.7 15.9-2 5.1-5.1 9.7-8.9 13.6-3.9 3.8-8.5 6.9-13.6 8.9-5.1 2-10.5 2.9-16 2.7h-115.1v74.3h-53v-202.8h168.1c5.5-0.2 11 0.8 16.1 2.8 5.1 2 9.8 5.1 13.6 9 3.9 3.9 6.9 8.6 8.9 13.7 2 5.1 2.9 10.6 2.6 16.1zm-53 8.9c0-1.6-0.3-3.3-1-4.8-0.6-1.5-1.6-2.9-2.7-4-1.2-1.2-2.6-2.1-4.1-2.7-1.5-0.6-3.2-1-4.8-1h-90.7v52.9h90.7c1.6 0 3.3-0.3 4.8-0.9 1.5-0.6 2.9-1.6 4.1-2.7 1.1-1.2 2.1-2.6 2.7-4.1 0.7-1.5 1-3.1 1-4.8z"}}),r("path",{staticStyle:{fill:"#ff5200"},attrs:{d:"m787.8 68.7h38.7l19.3 33.3-19.3 33.3h-38.7l-19.4-33.3 19.4-33.3z"}})])},Yd=[],jd=z(Nd,Wd,Yd,!1,null,null,null,null);const Ud=jd.exports,Gd=E.extend({name:"ProcoreSmall",components:{BaseIcon:fe},props:{color:{type:String,default:"white"}}});var qd=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 1491 1408",small:!0,width:"1491px",height:"1408px",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{style:`fill: ${e.color}`,attrs:{d:"M1311.3 18.5c36.3 13.8 69.3 35.1 96.8 62.4 27.5 27.4 49 60.2 63.1 96.4 14.1 36.1 20.5 74.9 18.7 113.6v226h-338l-147.2-254H486.4L230.3 705.6l250.9 442.7h518.3l147.2-254h338v226c1.3 38-5.2 75.9-19.2 111.4-14 35.4-35.1 67.6-62 94.5-27 26.9-59.1 48-94.6 62-35.4 14-73.3 20.5-111.4 19.2H289.4c-38.1 1.3-76.1-5.2-111.5-19.2-35.5-13.9-67.8-35-94.8-61.9-27-27-48.2-59.1-62.3-94.5-14.1-35.5-20.7-73.4-19.6-111.5V290.9C-.4 252.6 6 214.3 19.9 178.5s35-68.4 62.1-95.6c27-27.3 59.4-48.6 95.1-62.8C212.8 6 251-.7 289.4.7h908.1c38.8-2.1 77.6 4 113.8 17.8"}}),r("path",{attrs:{fill:"#ff5200",d:"M607.7 473.4h269.5L1012 705.6 877.2 937.8H607.7L472.9 705.6z"}})])},Zd=[],Xd=z(Gd,qd,Zd,!1,null,null,null,null);const Vd=Xd.exports,Qd=E.extend({name:"Aconex",components:{BaseIcon:fe},props:{color:{type:String,default:"white"}}});var Kd=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 655 101",small:!0,width:"655px",height:"101px",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{fill:e.color,d:"M37.06 0h14.5C73.84 2.53 89.8 10.9 89.97 35.77q.09 12.18.01 59.51 0 .52-.5.66-12.12 3.44-24.54 5.06H30.19C15.22 98.86 1.82 92.45 0 75.69v-8q2.73-19.08 21.98-23.42c14.83-3.34 25.3-2.59 43.9-2.5q.49.01.53-.48c.95-11.25-1.99-21.4-14.77-23.07-14.54-1.9-28.92.74-42.68 5.25q-.66.21-.79-.46L5.15 6.85q-.1-.53.41-.69Q21.01 1.3 37.06 0ZM24.35 74.69c4.27 15.92 30.28 13.01 41.47 9.94q.68-.19.68-.89V55.5q0-.52-.52-.51c-9.13.02-33.04-2.87-40.14 8.54q-3.13 5.04-1.49 11.16ZM154.81 0h12.25q11.13 1.2 21.36 5.76a.83.83 0 0 1 .48.92l-3 15.83a.52.52 0 0 1-.75.36c-27.94-14.29-61.26-.09-54.36 35.65 5.27 27.29 35.25 30.97 56.27 21.02q.49-.23.6.31l3.06 15.94q.11.59-.44.82-7.43 3.11-15.34 4.39h-26.25q-15.21-2.62-26.13-11.53c-16.7-13.62-20.16-39.21-13.57-58.74C115.54 11.28 135.33 1.3 154.81 0ZM248.06 0h11.75c32.22 3.27 50.15 24.01 47.51 57.05-1.99 24.86-17.32 39.3-41.13 43.95h-25c-32.74-5.35-47.18-33.29-39.87-64.54C206.8 12.99 225.42 1.94 248.06 0Zm-13.87 77.81q9.04 7.19 19.94 6.86c24.28-.73 31.99-22.11 28.35-42.89q-2.6-14.88-14.73-21.05c-11.98-6.1-29.11-3.64-37.41 7.36-9.48 12.56-9.31 39.26 3.85 49.72ZM362.06 0h15.25c24.46 1.67 41.07 14.59 41.19 40.25q.14 30.38-.19 60.75h-23.37q.3-47.86-.06-62.79-.28-12.04-9.02-17.06c-8.64-4.96-28.52-4.3-37.92.78q-.47.26-.47.8l-.12 78.27h-23.41l.04-92.38a1.27 1.25 79.6 0 1 .8-1.18C336.61 2.83 349.45.82 362.06 0ZM478.31 0h12.5q10.95 1.05 19.44 5.01c19.43 9.09 24.7 32.45 21.32 51.95a.35.34-85 0 1-.34.29H460.5q-.84 0-.81.84c1 33.28 42.06 28.48 62.32 21.97.88-.28 1.87-1.01 2.95-1.25q.58-.13.74.45l4.34 15.68q.14.51-.36.7-10.43 3.75-21.24 5.36h-31.25c-21-3.64-36.42-13.77-41.03-35.42q-3.17-14.86-.04-30.6c4.43-22.3 20.94-32.9 42.19-34.98Zm16.13 18.09c-18.4-6.52-36.52 5.09-34.51 25.65q.05.51.56.51h46.53a.45.45 0 0 0 .45-.44c.18-9.71-2.8-22.09-13.03-25.72Z"}}),r("path",{attrs:{fill:"#e86c17",d:"M542.06 0h30.25l22.64 27.91q.3.37.3.85v18.49q0 .5-.5.5h-13.76q-.53 0-.86-.41L541.89.39q-.06-.08.01-.16.09-.09.16-.23Z"}}),r("path",{attrs:{fill:e.color,d:"M624.06 0h30.25q-.05.16.06.26.06.07 0 .14l-38.23 46.94q-.33.41-.86.41H602q-.75 0-.75-.75V28.7q0-.6.38-1.07L624.06 0ZM572.19 101h-29.75l-.08-.31q-.04-.17.07-.31l37.7-46.31q.25-.32.66-.32h13.71q.75 0 .75.75v17.97q0 .45-.28.79L572.19 101Z"}}),r("path",{attrs:{fill:"#e86c17",d:"M653.94 101h-30.25l-22.11-27.25q-.33-.42-.33-.95V54.25q0-.5.5-.5h13.72q.47 0 .76.36c3.44 4.23 38 46.23 37.71 46.89Z"}})])},Jd=[],e3=z(Qd,Kd,Jd,!1,null,null,null,null);const t3=e3.exports,r3=E.extend({name:"AconexSmall",components:{BaseIcon:fe},props:{color:{type:String,default:"white"}}});var s3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 580 520",small:!0,width:"580px",height:"520px",color:e.color}},"BaseIcon",e.$attrs,!1),[r("g",{attrs:{transform:"translate(-490, -270)"}},[r("path",{attrs:{fill:"#e86c17",d:"M494.66 271h150.1a.35.35 0 0 1 .28.13l115.38 141.98a.35.35 0 0 1 .08.22v95.82a.35.35 0 0 1-.35.35h-72.24a.35.35 0 0 1-.28-.13l-193.25-237.8a.35.35 0 0 1 .28-.57Z"}}),r("path",{style:`fill: ${e.color}`,attrs:{d:"M906.72 271h150.14a.32.32 0 0 1 .25.52L863.96 509.38a.32.32 0 0 1-.25.12h-72.14a.32.32 0 0 1-.32-.32v-96.06a.32.32 0 0 1 .07-.2l115.15-141.8a.32.32 0 0 1 .25-.12ZM688.14 540.25h71.94a.42.42 0 0 1 .42.42v95.97a.42.42 0 0 1-.09.27l-117.7 144.93a.42.42 0 0 1-.33.16H492.51a.42.42 0 0 1-.32-.68l195.62-240.91a.42.42 0 0 1 .33-.16Z"}}),r("path",{attrs:{fill:"#e86c17",d:"M1059.1 781.2a.83.83 0 0 1-.83.8H909.73a1.11 1.1-19.3 0 1-.86-.41L791.56 637.23a1.38 1.38 0 0 1-.31-.87v-95.61a.5.5 0 0 1 .5-.5h71.52a1.1 1.1 0 0 1 .85.4q97.41 119.9 194.78 239.94.21.26.2.61Z"}})])])},n3=[],i3=z(r3,s3,n3,!1,null,null,null,null);const a3=i3.exports,o3=E.extend({name:"Autodesk",components:{BaseIcon:fe},props:{color:{type:String,default:"white"}}});var l3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 1619.27 166.13",small:!0,width:"1619.27px",height:"166.13px",color:e.color}},"BaseIcon",e.$attrs,!1),[r("polygon",{attrs:{points:"1619.27 4.34 1571.33 4.34 1513.91 68.46 1513.91 4.34 1473.66 4.34 1473.86 162.18 1513.91 162.18 1513.91 102.2 1568.37 162.18 1619.27 162.18 1545.88 84.25 1619.27 4.34"}}),r("path",{attrs:{d:"M1479.12,135.19l-36.7-4.14c-21.51-2.37-26.83-7.7-26.83-15,0-8.09,11.05-15.39,32.55-15.39,20.72,0,31.57,7.7,33.54,19.34h39.46c-2-33.35-30-54.06-70.83-54.06-48.53,0-73,19.33-73,53.46,0,27.82,16.18,40.85,49.72,44.4l37.29,3.94c14.21,1.58,20.72,7.11,20.72,14.21,0,8.09-9.47,15.39-32.36,15.39-26.44,0-37.09-6.71-38.87-20.13h-38.67c1.78,36.31,25.45,54.85,76.16,54.85,46.36,0,72.21-20.32,72.21-50.9C1523.51,154.52,1508.12,138.54,1479.12,135.19Z",transform:"translate(-70.36 -65.94)"}}),r("polygon",{attrs:{points:"1159.96 162.18 1287.02 162.18 1287.02 128.05 1200.21 128.05 1200.21 99.44 1270.05 99.44 1270.05 65.11 1200.21 65.11 1200.21 38.47 1287.02 38.47 1287.02 4.34 1159.96 4.34 1159.96 162.18"}}),r("path",{attrs:{d:"M1135.62,70.28h-73.79V228.12h73.79c56.63,0,72.21-21.11,72.21-80.11C1207.83,92.57,1192.84,70.28,1135.62,70.28ZM1134,194h-32V104.41h32c25.26,0,32.75,6.91,32.75,43.6C1166.79,181.55,1158.31,194,1134,194Z",transform:"translate(-70.36 -65.94)"}}),r("path",{attrs:{d:"M952.53,65.94c-57.42,0-87.21,35.31-87.21,82.86,0,47.75,29.79,83.26,87.21,83.26,57.61,0,87.4-35.51,87.4-83.26C1039.93,101.25,1010.14,65.94,952.53,65.94Zm0,130.61c-29.79,0-46.17-18.15-46.17-47.75,0-29,16.38-47.35,46.17-47.35,30,0,46.17,18.35,46.17,47.35C998.7,178.4,982.52,196.55,952.53,196.55Z",transform:"translate(-70.36 -65.94)"}}),r("polygon",{attrs:{points:"646.59 38.47 697.49 38.47 697.49 162.18 737.74 162.18 737.74 38.47 788.45 38.47 788.45 4.34 646.59 4.34 646.59 38.47"}}),r("path",{attrs:{d:"M658.36,167.74c0,20.52-12.63,28.81-34.14,28.81-20.91,0-34.52-8.68-34.52-28.81V70.28H549.45v102c0,45.58,40.64,59.78,74.77,59.78,33.94,0,74.38-14.2,74.38-59.78v-102H658.36Z",transform:"translate(-70.36 -65.94)"}}),r("path",{attrs:{d:"M431.66,70.28,371.09,228.12h41.63l10.57-29.6h67.62l10.4,29.6h43L483,70.28Zm3.61,94.7,22.11-61.87L479.12,165Z",transform:"translate(-70.36 -65.94)"}}),r("path",{attrs:{d:"M71.6,228.13l141.34-87.92h73.32a4.28,4.28,0,0,1,4.28,4.29,3.72,3.72,0,0,1-2,3.6l-69.42,41.62c-4.51,2.7-6.09,8.12-6.09,12.18l-.07,26.23h88.22V75.69a5.41,5.41,0,0,0-5.64-5.42H211.36l-141,87.54v70.32Z",transform:"translate(-70.36 -65.94)"}})])},c3=[],u3=z(o3,l3,c3,!1,null,null,null,null);const d3=u3.exports,h3=E.extend({name:"AutodeskSmall",components:{BaseIcon:fe},props:{color:{type:String,default:"black"}}});var f3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 24 24",small:!0,height:"24px",width:"24px",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{style:`fill: ${e.color}`,attrs:{d:"m15 11.5 -14 8v-7l13.5 -8H22a1 1 0 0 1 1 1v14h-9v-2.485a1 1 0 0 1 0.419 -0.814l5.946 -4.248a0.25 0.25 0 0 0 -0.145 -0.453H15Z","stroke-width":"1"}})])},p3=[],m3=z(h3,f3,p3,!1,null,null,null,null);const g3=m3.exports,v3=E.extend({name:"ProcoreObservations",components:{BaseIcon:fe},props:{color:{type:String,default:"white"}}});var y3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 24 24",small:!0,width:"100%",height:"100%",fill:"none",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{d:"M16 4C16.93 4 17.395 4 17.7765 4.10222C18.8117 4.37962 19.6204 5.18827 19.8978 6.22354C20 6.60504 20 7.07003 20 8V17.2C20 18.8802 20 19.7202 19.673 20.362C19.3854 20.9265 18.9265 21.3854 18.362 21.673C17.7202 22 16.8802 22 15.2 22H8.8C7.11984 22 6.27976 22 5.63803 21.673C5.07354 21.3854 4.6146 20.9265 4.32698 20.362C4 19.7202 4 18.8802 4 17.2V8C4 7.07003 4 6.60504 4.10222 6.22354C4.37962 5.18827 5.18827 4.37962 6.22354 4.10222C6.60504 4 7.07003 4 8 4M9 15L11 17L15.5 12.5M9.6 6H14.4C14.9601 6 15.2401 6 15.454 5.89101C15.6422 5.79513 15.7951 5.64215 15.891 5.45399C16 5.24008 16 4.96005 16 4.4V3.6C16 3.03995 16 2.75992 15.891 2.54601C15.7951 2.35785 15.6422 2.20487 15.454 2.10899C15.2401 2 14.9601 2 14.4 2H9.6C9.03995 2 8.75992 2 8.54601 2.10899C8.35785 2.20487 8.20487 2.35785 8.10899 2.54601C8 2.75992 8 3.03995 8 3.6V4.4C8 4.96005 8 5.24008 8.10899 5.45399C8.20487 5.64215 8.35785 5.79513 8.54601 5.89101C8.75992 6 9.03995 6 9.6 6Z",stroke:e.color,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])},_3=[],b3=z(v3,y3,_3,!1,null,null,null,null);const C3=b3.exports,w3=E.extend({name:"AudioWave",components:{BaseIcon:fe},props:{color:{type:String,default:"white"}}});var x3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 24 24",small:!0,width:"24px",height:"24px",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{d:"M9 3V21",stroke:e.color,"stroke-width":"1.67","stroke-linecap":"round","stroke-linejoin":"round"}}),r("path",{attrs:{d:"M6 7V17",stroke:e.color,"stroke-width":"1.67","stroke-linecap":"round","stroke-linejoin":"round"}}),r("path",{attrs:{d:"M15 6V18",stroke:e.color,"stroke-width":"1.67","stroke-linecap":"round","stroke-linejoin":"round"}}),r("path",{attrs:{d:"M12 9L12 15",stroke:e.color,"stroke-width":"1.67","stroke-linecap":"round","stroke-linejoin":"round"}}),r("path",{attrs:{d:"M18 11L18 13",stroke:e.color,"stroke-width":"1.67","stroke-linecap":"round","stroke-linejoin":"round"}}),r("path",{attrs:{d:"M3 11L3 13",stroke:e.color,"stroke-width":"1.67","stroke-linecap":"round","stroke-linejoin":"round"}})])},S3=[],k3=z(w3,x3,S3,!1,null,null,null,null);const T3=k3.exports,M3=E.extend({name:"Ring",components:{BaseIcon:fe},props:{color:{type:String,default:"#424242"}}});var $3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 1000 640.27",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{"stroke-width":"0px",d:"m999.99,506.14V250.11s0-.08,0-.11c-.08-73.73-60.11-133.73-133.95-133.75-73.78.02-133.83,60.07-133.86,133.9v121.65c0,73.83,60.07,133.9,133.9,133.9,31.78,0,62.06-11.09,86.17-31.4v32.15c-.03,46.67-40.51,86.1-88.39,86.1-26.43,0-52.76-12.02-68.73-31.36-.05-.06-.1-.11-.14-.17-4.56-5.49-11.23-8.63-18.36-8.63-13.16,0-23.87,10.71-23.87,23.87,0,5.45,1.9,10.79,5.34,15.03.04.06.09.12.13.17,25.18,30.57,64.67,48.82,105.63,48.82,75.07,0,136.14-60.07,136.14-133.9,0-.08,0-.15,0-.22Zm-47.74-256v121.65c0,47.51-38.65,86.17-86.17,86.17s-86.17-38.65-86.17-86.2v-121.62c0-47.51,38.65-86.17,86.17-86.17s86.17,38.65,86.17,86.17Z"}}),r("path",{attrs:{"stroke-width":"0px",d:"m528.09,116.24c-73.89,0-134.04,60.1-134.1,133.98,0,.04,0,.08,0,.12v220.39c0,13.18,10.72,23.9,23.9,23.9s23.9-10.72,23.9-23.91v-220.39c0-47.58,38.71-86.29,86.29-86.29s86.29,38.71,86.29,86.29v220.39c0,13.18,10.72,23.9,23.9,23.9s23.9-10.72,23.9-23.9v-220.44c-.03-73.91-60.18-134.04-134.1-134.04Z"}}),r("path",{attrs:{"stroke-width":"0px",d:"m198.11,140.9c-.08-.06-.16-.12-.24-.18,0,0-.43-.29-.44-.3-22.57-15.8-49.1-24.16-76.39-24.16h-.03c-.12-.01-.31-.02-.43-.02h0C50.74,116.26.03,172.64.01,250c0,.11-.01.23-.01.34v220.39c0,13.18,10.72,23.9,23.9,23.9s23.9-10.72,23.9-23.9v-220.39c0-52.42,28.58-86.29,72.82-86.29,18,0,35.24,5.48,49.87,15.86.09.07.19.13.28.18,3.96,2.67,8.56,4.07,13.33,4.07,13.18,0,23.91-10.72,23.91-23.91,0-7.65-3.7-14.86-9.91-19.36Z"}}),r("path",{attrs:{"stroke-width":"0px",d:"m290.08,137.39c-13.15,0-23.85,10.7-23.85,23.85v309.6c0,13.15,10.7,23.85,23.85,23.85s23.85-10.7,23.85-23.85V161.24c0-13.15-10.7-23.85-23.85-23.85Z"}}),r("path",{staticStyle:{fill:"#1998d5"},attrs:{"stroke-width":"0px",d:"m289.69,0c-20.66,0-37.47,16.81-37.47,37.47s16.81,37.46,37.47,37.46,37.46-16.81,37.46-37.46S310.34,0,289.69,0Z"}})])},E3=[],D3=z(M3,$3,E3,!1,null,null,null,null);const L3=D3.exports,P3={Back10:Ac,Forward10:Ic,Bim:Ec,Brightness:jc,Blur:Xc,Compare:e5,ConcretePump:i5,CompactExcavator:no,DroneView:u5,Dumper:m5,Evercam:b5,EvercamLogo:k5,Excavator:no,FlatbedSemiTrailer:I5,FreeDrawing:A5,IModel:j5,Inspection:X5,Loader:eu,MiniModel:iu,MarkUp:bd,Nerves:Hd,OtherTruck:io,RoadVehicle:pu,Roller:_u,Robot:Su,SemiTrailer:Eu,SkidSteerLoader:Iu,SmallTruck:Au,TankTruck:ju,The360:Xu,TippingTruck:ed,TruckHead:id,TruckMixer:ud,Unknown:io,Worker:md,ZohoCrm:kd,Tag:Dd,TagPlus:zd,Procore:Ud,ProcoreSmall:Vd,Aconex:t3,AconexSmall:a3,Autodesk:d3,AutodeskSmall:g3,ProcoreObservations:C3,AudioWave:T3,Ring:L3},O3=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),ao=Object.fromEntries(Object.entries(P3).map(([t,e])=>[O3(t),e])),I3=E.extend({name:"EIcon",components:{...ao},props:{icon:{type:String,default:void 0},colorClass:{type:String,default:ce.Default}},computed:{isSvgIcon(){return this.icon.startsWith("eui-")},svgIconName(){return this.icon.replace(/^eui-/,"")},svgIconComponent(){return ao[this.svgIconName]},svgSizes(){return{[U.Xs]:16,[U.Sm]:18,[U.Base]:20,[U.Lg]:24,[U.Xl]:30,[U.TwoXl]:36,[U.ThreeXl]:42,[U.FourXl]:48,[U.FiveXl]:54,[U.SixXl]:60,[U.SevenXl]:66,[U.EightXl]:70,[U.NineXl]:74}},faSizes(){return to.reduce((t,e)=>({...t,[e]:`e-text-${e}`}),{})},iconSize(){const t=this.$attrs.size;if(this.isSvgIcon&&!t)return;if(this.isSvgIcon&&!isNaN(Number(t)))return Number(t);const e=t||U.Base;return this.isSvgIcon?this.svgSizes[e]:this.faSizes[e]},faIconStyle(){return{color:this.$attrs.color,"caret-color":this.$attrs.color}},faIconClass(){const t=this.iconSize,e=this.icon.includes(" ")?this.icon:`fa ${this.icon}`;return["e-inline-flex e-items-center e-justify-center e-rounded-full",this.colorClass,this.icon,e,t]}}});var z3=function(){var e=this,r=e._self._c;return e.isSvgIcon?r(e.svgIconComponent,e._g(e._b({tag:"component",staticClass:"e-svg-icon",attrs:{size:e.iconSize}},"component",e.$attrs,!1),e.$listeners)):r("i",e._g(e._b({staticClass:"e-icon",class:e.faIconClass,style:e.faIconStyle},"i",e.$attrs,!1),e.$listeners))},R3=[],B3=z(I3,z3,R3,!1,null,null,null,null);const Xe=B3.exports,F3=E.extend({name:"ESpinner",props:{dark:{type:Boolean,default:!1},color:{type:Boolean,default:!0},animationDuration:{type:[Number,String],default:1e3},size:{type:String,default:U.Base},opacity:{type:[String,Number],default:1}},data(){return{sizes:Ja,colors:eo}},computed:{computedSize(){return this.sizes[U[this.size]]||this.size||this.sizes[U.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"]}`}}}}),i_="";var A3=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"}})])},H3=[],N3=z(F3,A3,H3,!1,null,"9a1333ac",null,null);const ss=N3.exports,W3=E.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}}}}),a_="";var Y3=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)},j3=[],U3=z(W3,Y3,j3,!1,null,null,null,null);const Rn=U3.exports,G3=E.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}}}),o_="";var q3=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-col",class:e.colClasses},[e._t("default")],2)},Z3=[],X3=z(G3,q3,Z3,!1,null,null,null,null);const Bn=X3.exports,Fn=new Intl.NumberFormat(void 0,{minimumIntegerDigits:2});function Tr(t){if(!Number.isFinite(t)||t<0)return"0:00";const e=Math.floor(t%60),r=Math.floor(t/60)%60,s=Math.floor(t/3600);return s===0?`${r}:${Fn.format(e)}`:`${s}:${Fn.format(r)}:${Fn.format(e)}`}function An(){const t=document;return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)}function Hn(t){if(An())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 Nn(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=Math.random()*16|0,r=t==="x"?e:e&3|8;return r.toString(16)})}function Wn(){if(!An())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 V3(t,e=1e3,r=!1){let s=null;return function(...n){const i=this,a=r&&!s;s&&clearTimeout(s),s=setTimeout(function(){s=null,r||t.apply(i,n)},e),a&&t.apply(i,n)}}function Q3(t=1){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let r="";for(let s=0;s<t;s++)r+=e.charAt(Math.floor(Math.random()*e.length));return r}function K3(t,e=0,r=0,s=t.naturalWidth,n=t.naturalHeight){const i=document.createElement("canvas"),a=i.getContext("2d");i.width=s,i.height=n,a==null||a.drawImage(t,e,r,s,n,0,0,s,n);const c=i.toDataURL();return i.remove(),c}function J3(t){return!!(t!=null&&t.length&&!isNaN(new Date(t).getTime()))}function oo(t,e=1){let r=0,s=0,n=0;return t.length===4?(r=parseInt(t[1]+t[1],16),s=parseInt(t[2]+t[2],16),n=parseInt(t[3]+t[3],16)):t.length===7&&(r=parseInt(t[1]+t[2],16),s=parseInt(t[3]+t[4],16),n=parseInt(t[5]+t[6],16)),`rgba(${r}, ${s}, ${n}, ${e})`}function lo(t,e=1){const r=t.match(/\d+/g);return r&&r.length===3?`rgba(${r[0]}, ${r[1]}, ${r[2]}, ${e})`:null}function co(t){return t.startsWith("rgba")}function cr(t,e=1){return co(t)?t:t.startsWith("#")?oo(t,e):t.startsWith("rgb")?lo(t,e):t}function e6(t){const e=JSON.stringify(t);return uo(e).toString()}function uo(t){let e=0,r,s;if(t.length===0)return e;for(r=0;r<t.length;r++)s=t.charCodeAt(r),e=(e<<5)-e+s,e|=0;return e}function Yn(t,e,r){const s=x.scaleLinear().domain([0,r-1]).range([0,1]);return Array.from({length:r},(n,i)=>x.interpolate(t,e)(s(i)))}const ho={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:[]}},fo=24*60-1,po=t=>{const[e,r]=t.split(":");return parseInt(e)*60+parseInt(r)},jn=t=>{const e=Math.floor(t/60).toString().padStart(2,"0"),r=(t%60).toString().padStart(2,"0");return`${e}:${r}`};function Un(t){return["monday","tuesday","wednesday","thursday","friday","saturday","sunday"].reduce((r,s)=>{const n=t[s];return{...r,[s]:n.length?n[0].split("-").map(i=>po(i)):[0,fo]}},{})}function t6(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e,r.map(s=>{const[n,i]=s.split("-");let[a,c]=i.split(":");return a=parseInt(a),a=Math.max(0,a-1),`${n}-${a.toString().padStart(2,"0")}:${c}`})]))}const r6=E.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(),s={x:r.width/2,y:r.height/2},n=this.scale;t<0?this.scale*=1.2:this.scale*=.8,this.updateZoomScale(),this.left=(this.left-s.x)*(this.scale/n)+s.x,this.top=(this.top-s.y)*(this.scale/n)+s.y;const i=0-r.width*(this.scale-1),a=0-r.height*(this.scale-1);this.left=Math.min(0,Math.max(i,this.left)),this.top=Math.min(0,Math.max(a,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 s=e.getBoundingClientRect(),n=r.getBoundingClientRect();if(!s||!n)return;const i=t.clientX,a=t.clientY,c=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail)),o=this.scale;this.scale+=c/10,this.updateZoomScale();const l=((i-n.left)/n.width).toFixed(2),d=((a-n.top)/n.height).toFixed(2);this.left=Math.round(i-s.left-Number(l)*(n.width*this.scale/o)),this.top=Math.round(a-s.top-Number(d)*(n.height*this.scale/o));const h=0,m=0-s.width*(this.scale-1),b=0-s.height*(this.scale-1),C=0;this.left<m?this.left=m:this.left>h&&(this.left=h),this.top<b?this.top=b:this.top>C&&(this.top=C),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(),s=e.getBoundingClientRect();if(!r||!s)return;const[n,i,a,c]=[r.top-s.top,s.right-r.right,s.bottom-r.bottom,r.left-s.left].map(o=>o<0?o:0);this.left+=c-i,this.top+=n-a},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),s=this.getPointersMidPoint(r[0],r[1]);this.left=s.x-(s.x-this.left)*e,this.top=s.y-(s.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)}}}),l_="";var s6=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()])])},n6=[],i6=z(r6,s6,n6,!1,null,"06b5341b",null,null);const Gn=i6.exports,st=E.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.push({element:r,event:t,cb:e})},$removeEventListener(t,e,r=document){var n;const s=this.eventListeners.find(i=>i.event===t&&i.element===r&&i.cb===e);s&&((n=s.element)==null||n.removeEventListener(t,e),this.eventListeners=this.eventListeners.filter(i=>!(i.event===t&&i.cb===e&&i.element===r)))},$removeEventListeners(){this.eventListeners.forEach(({element:t,event:e,cb:r})=>{t==null||t.removeEventListener(e,r)}),this.eventListeners=[]}}}),a6=(t,e)=>t===e||t.contains(e),o6=(t,e)=>r=>{a6(t,r.target)||e(r)},mo=["mousedown","touchstart","click"],ns={bind(t,e){const r=t,s=e.value;if(typeof s!="function"){console.warn("v-click-outside requires a function value");return}r.clickOutsideHandler={events:mo,handler:o6(r,s),callback:s},queueMicrotask(()=>{mo.forEach(n=>{document.addEventListener(n,r.clickOutsideHandler.handler)})})},unbind(t){const e=t;e.clickOutsideHandler&&(e.clickOutsideHandler.events.forEach(r=>{document.removeEventListener(r,e.clickOutsideHandler.handler)}),delete e.clickOutsideHandler)}},l6=E.extend({name:"EKeyboardShortcut",props:{keys:{type:Array,required:!0},size:{type:String,default:"sm"},dark:{type:Boolean,default:!0}},computed:{gapClasses(){return this.size==="md"?"e-gap-1":"e-gap-0.5"},toneClasses(){return this.dark?"e-text-white/90 e-bg-white/10 e-border e-border-white/15 e-shadow-[inset_0_-1px_0_rgba(0,0,0,0.3)]":"e-text-gray-800 e-bg-gray-100 e-border e-border-gray-300 e-shadow-[inset_0_-1px_0_rgba(255,255,255,0.6)]"},keyClasses(){return this.size==="xs"?"e-min-w-4 e-h-4 e-px-1 e-rounded e-text-[9px]":this.size==="md"?"e-min-w-6 e-h-6 e-px-2 e-rounded-md e-text-xs":"e-min-w-[22px] e-h-5 e-px-1.5 e-rounded-[5px] e-text-[11px]"}}});var c6=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-inline-flex e-items-center",class:e.gapClasses},e._l(e.keys,function(s,n){return r("kbd",{key:`${s}-${n}`,staticClass:"e-inline-flex e-items-center e-justify-center e-leading-none e-font-mono",class:[e.toneClasses,e.keyClasses]},[e._v(" "+e._s(s)+" ")])}),0)},u6=[],d6=z(l6,c6,u6,!1,null,null,null,null);const h6=d6.exports,is=E.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)}}}}),as=E.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&&t.stopPropagation(),this.isOpen||this.$root.$emit("select-opened",this.selectId),this.isOpen=!this.isOpen}}}),Mr=E.extend({name:"SelectFormField",mixins:[is,as],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,e){e&&(e.stopPropagation(),e.preventDefault());const r=this.getOptionByValue(t);if(!(r!=null&&r.disabled||this.disabled)){if(this.multiple){const s=this.currentValue.indexOf(t);s===-1?this.currentValue.push(t):this.currentValue.splice(s,1),this.$emit("input",this.currentValue),this.$emit("on-select-option",this.selectedOption);return}this.$emit("input",t),this.$emit("on-select-option",r),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(t){t&&(t.stopPropagation(),t.preventDefault()),!(!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"]}}}),f6=E.extend({name:"EToggleSwitch",components:{EIcon:Xe},mixins:[Mr],props:{color:{type:String,default:"brand"},size:{type:String,default:U.Sm},vertical:{type:Boolean,default:!1},dark:{type:Boolean,default:!0}},computed:{sizeClasses(){return{container:{"e-p-0.5":this.size===U.Xs,"e-p-1 e-leading-3":this.size===U.Sm,"e-py-1.5 e-px-1.5":this.size===U.Md,"e-p-2 e-p":this.size===U.Lg},button:{"e-px-1":this.size===U.Xs,"e-py-[.2rem] e-px-2 e-rounded-md":this.size===U.Sm,"e-p-1 e-px-2.5":this.size===U.Md,"e-p-1.5 e-px-3":this.size===U.Lg,"e-opacity-50 e-cursor-not-allowed":this.disabled},text:{"!e-text-[0.6rem]":this.size===U.Xs,"e-text-xs":this.size===U.Sm,"e-text-sm":this.size===U.Md,"e-text-base":this.size===U.Lg},icon:{"e-w-3 e-h-3":this.size===U.Xs,"e-w-4 e-h-4":this.size===U.Sm,"e-w-5 e-h-5":this.size===U.Md,"e-w-6 e-h-6":this.size===U.Lg},description:{"!e-text-[0.5rem]":this.size===U.Xs,"e-text-[0.65rem]":this.size===U.Sm,"e-text-xs":this.size===U.Md,"e-text-sm":this.size===U.Lg}}},wrapperClasses(){return{...this.sizeClasses.container,"e-toggle-switch__container e-flex 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-800":this.dark,"e-bg-gray-200":!this.dark,"e-flex-col e-items-start":this.vertical," e-items-center":!this.vertical,"e-opacity-50 e-cursor-not-allowed":this.disabled}},textClasses(){return{...this.sizeClasses.text,"e-font-medium":!0}},descriptionClasses(){return{...this.sizeClasses.description,"e-font-normal e-opacity-70 e-mt-0.5 e-leading-tight":!0}}},methods:{getButtonClasses(t){const e=this.isSelected(t.value),r={"e-toggle-switch e-border-none e-rounded-md e-transition e-duration-200 e-ease-in-out e-cursor-pointer":!0,"e-toggle-switch__selected":e,"e-text-gray-200":this.dark&&!e,"e-text-gray-900":!this.dark&&!e,"e-bg-gray-800":this.dark&&!e,"e-bg-gray-200":!this.dark&&!e,"e-bg-brand-600 e-text-white":this.color==="brand"&&e,"e-bg-gray-600 e-text-white":this.color==="gray"&&e,"e-bg-[#629efc] e-text-gray-900":this.color==="primary"&&e,"e-opacity-50 e-cursor-not-allowed":t.disabled,"e-shadow":e,"e-w-full":this.vertical,"e-inline-flex":!this.vertical};return{...this.sizeClasses.button,...r}},getIconClasses(){return{...this.sizeClasses.icon,"e-flex-shrink-0":!0}},getTextContainerClasses(t){return{"e-text-left":!0,"e-items-start":!!t.description}},getIconSize(){return{[U.Sm]:U.Sm,[U.Md]:U.Md,[U.Lg]:U.Lg}[this.size]||U.Sm},svgIconColor(t){return this.isSelected(t.value)&&this.color==="primary"?"#111827":this.isSelected(t.value)?"#f2f2f2":this.dark?"#e5e7eb":"#111827"}}});var p6=function(){var e=this,r=e._self._c;return r("div",{class:e.wrapperClasses},e._l(e.options,function(s){return r("button",{key:s.value,class:e.getButtonClasses(s),on:{click:function(n){return e.onItemClick(s.value)}}},[e._t("option",function(){return[r("div",{staticClass:"e-flex e-items-center e-gap-2"},[s.icon?r("EIcon",{class:e.getIconClasses(),attrs:{icon:s.icon,size:e.getIconSize(),color:e.svgIconColor(s)}}):e._e(),r("div",{staticClass:"e-flex e-flex-col",class:e.getTextContainerClasses(s)},[r("span",{class:e.textClasses},[e._v(e._s(s.label))]),s.description?r("span",{class:e.descriptionClasses},[e._v(" "+e._s(s.description)+" ")]):e._e()])],1)]},{option:s,isSelected:e.isSelected(s.value)})],2)}),0)},m6=[],g6=z(f6,p6,m6,!1,null,null,null,null);const qn=g6.exports,v6=E.extend({name:"EVideoPlayerSettingToggleRow",components:{EToggleSwitch:qn},props:{label:{type:String,required:!0},checked:{type:Boolean,required:!0}},data(){return{toggleOptions:[{label:"Off",value:!1},{label:"On",value:!0}]}}});var y6=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-flex e-justify-between e-items-center e-text-xs e-mb-2"},[r("span",[e._v(e._s(e.label))]),r("EToggleSwitch",{attrs:{value:e.checked,options:e.toggleOptions,"set-initial-value":!1,color:"primary",size:"sm",dark:!0},on:{input:function(s){e.$emit("toggle",!!s)}}})],1)},_6=[],b6=z(v6,y6,_6,!1,null,null,null,null);const C6=b6.exports,w6=E.extend({name:"EVideoPlayerSettings",components:{EKeyboardShortcut:h6,EVideoPlayerSettingToggleRow:C6},props:{settingsItems:{type:Array,required:!0},playbackRate:{type:Number,required:!0},playbackRateOptions:{type:Array,required:!0},seekStep:{type:Number,required:!0},seekStepOptions:{type:Array,required:!0},loopEnabled:{type:Boolean,required:!0},autoplayEnabled:{type:Boolean,required:!0},mutedOnStart:{type:Boolean,required:!0}},data(){return{videoPlayerSettingsItems:Ge}},computed:{shortcuts(){return ro},settingLabels(){return so}},methods:{hasSettingItem(t){return this.settingsItems.includes(t)}}}),c_="";var x6=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-video-player-settings e-absolute e-right-0 e-rounded-md e-border e-border-white/15 e-text-white e-p-3 e-bg-gray-900/95"},[r("div",{staticClass:"e-text-sm e-font-semibold e-mb-3"},[e._v("Player Settings")]),e.hasSettingItem(e.videoPlayerSettingsItems.PlaybackRate)?r("div",{staticClass:"e-mb-3"},[r("div",{staticClass:"e-text-xs e-text-white/70 e-mb-1"},[e._v(" "+e._s(e.settingLabels[e.videoPlayerSettingsItems.PlaybackRate])+" ")]),r("div",{staticClass:"e-flex e-flex-wrap e-gap-1.5"},e._l(e.playbackRateOptions,function(s){return r("button",{key:`rate-${s}`,class:["e-border-0 e-rounded e-px-2 e-py-1 e-text-xs e-cursor-pointer e-leading-none e-min-w-0 e-text-center e-whitespace-nowrap e-inline-flex e-items-center e-justify-center",e.playbackRate===s?"e-bg-white !e-text-gray-900":"e-bg-white/10 e-text-white hover:e-bg-white/20"],attrs:{type:"button"},on:{click:function(n){return e.$emit("set-playback-rate",s)}}},[e._v(" "+e._s(s)+"x ")])}),0)]):e._e(),e.hasSettingItem(e.videoPlayerSettingsItems.SeekStep)?r("div",{staticClass:"e-mb-3"},[r("div",{staticClass:"e-text-xs e-text-white/70 e-mb-1"},[e._v(" "+e._s(e.settingLabels[e.videoPlayerSettingsItems.SeekStep])+" ")]),r("div",{staticClass:"e-flex e-flex-wrap e-gap-1.5"},e._l(e.seekStepOptions,function(s){return r("button",{key:`step-${s}`,class:["e-border-0 e-rounded e-px-2 e-py-1 e-text-xs e-cursor-pointer e-leading-none e-min-w-0 e-text-center e-whitespace-nowrap e-inline-flex e-items-center e-justify-center",e.seekStep===s?"e-bg-white !e-text-gray-900":"e-bg-white/10 e-text-white hover:e-bg-white/20"],attrs:{type:"button"},on:{click:function(n){return e.$emit("set-seek-step",s)}}},[e._v(" "+e._s(s)+"s ")])}),0)]):e._e(),e.hasSettingItem(e.videoPlayerSettingsItems.LoopEnabled)?r("EVideoPlayerSettingToggleRow",{attrs:{label:e.settingLabels[e.videoPlayerSettingsItems.LoopEnabled],checked:e.loopEnabled},on:{toggle:function(s){return e.$emit("set-loop-enabled",s)}}}):e._e(),e.hasSettingItem(e.videoPlayerSettingsItems.MutedOnStart)?r("EVideoPlayerSettingToggleRow",{attrs:{label:e.settingLabels[e.videoPlayerSettingsItems.MutedOnStart],checked:e.mutedOnStart},on:{toggle:function(s){return e.$emit("set-muted-on-start",s)}}}):e._e(),e.hasSettingItem(e.videoPlayerSettingsItems.AutoplayEnabled)?r("EVideoPlayerSettingToggleRow",{attrs:{label:e.settingLabels[e.videoPlayerSettingsItems.AutoplayEnabled],checked:e.autoplayEnabled},on:{toggle:function(s){return e.$emit("set-autoplay-enabled",s)}}}):e._e(),e.hasSettingItem(e.videoPlayerSettingsItems.Shortcuts)?r("div",{staticClass:"e-mb-3 e-rounded e-bg-white/5 e-p-2"},[r("div",{staticClass:"e-text-[11px] e-text-white/[0.82] e-mb-1.5"},[e._v(" "+e._s(e.settingLabels[e.videoPlayerSettingsItems.Shortcuts])+" ")]),r("div",{staticClass:"e-flex e-flex-wrap e-items-center e-gap-x-1 e-gap-y-1.5"},e._l(e.shortcuts,function(s,n){return r("div",{key:s.label,staticClass:"e-inline-flex e-items-center e-gap-1"},[r("span",{staticClass:"e-text-[12px] e-text-white/85"},[e._v(e._s(s.label))]),r("EKeyboardShortcut",{attrs:{keys:s.keys,size:"xs"}}),n<e.shortcuts.length-1?r("span",{staticClass:"e-text-[12px] e-text-white/60",attrs:{"aria-hidden":"true"}},[e._v(",")]):e._e()],1)}),0)]):e._e(),e.hasSettingItem(e.videoPlayerSettingsItems.Reset)?r("button",{staticClass:"e-w-full e-border-0 e-text-white e-cursor-pointer e-rounded e-text-xs e-leading-none e-py-2 e-px-[10px] e-bg-white/10 e-block e-mt-[2px] hover:e-bg-white/20",attrs:{type:"button"},on:{click:function(s){return e.$emit("reset")}}},[e._v(" "+e._s(e.settingLabels[e.videoPlayerSettingsItems.Reset])+" ")]):e._e()],1)},S6=[],k6=z(w6,x6,S6,!1,null,"c390796a",null,null);const T6=k6.exports,M6=E.extend({name:"EVideoPlayerControls",components:{EVideoPlayerSettings:T6},directives:{clickOutside:ns},mixins:[st],props:{playing:{type:Boolean,required:!0},currentTime:{type:String,required:!0},videoLength:{type:String,required:!0},videoDuration:{type:Number,required:!0},isMuted:{type:Boolean,required:!0},volume:{type:Number,required:!0},seekStep:{type:Number,required:!0},playbackRate:{type:Number,required:!0},playbackRateOptions:{type:Array,required:!0},seekStepOptions:{type:Array,required:!0},isZoomable:{type:Boolean,required:!0},showSettingsButton:{type:Boolean,required:!0},showVolumeControl:{type:Boolean,required:!0},settingsItems:{type:Array,default:()=>kr},withControlsBackground:{type:Boolean,required:!0},showControls:{type:Boolean,required:!0},isFullscreen:{type:Boolean,required:!0},loopEnabled:{type:Boolean,required:!0},autoplayEnabled:{type:Boolean,required:!0},mutedOnStart:{type:Boolean,required:!0},progressPercent:{type:Number,default:0},bufferPercent:{type:Number,default:0}},data(){return{hoverTime:"",hoverPercentage:-1,showVolume:!1,showSettings:!1,internalIsScrubbing:!1,wasPaused:!1,activePointerId:null}},watch:{progressPercent(t){const e=this.$refs.timelineContainer;e&&e.style.setProperty("--progress-position",String(t))},bufferPercent(t){const e=this.$refs.timelineContainer;e&&e.style.setProperty("--buffer-position",String(t))},showSettings(t){this.$emit("settings-visibility-change",t)}},mounted(){this.$addEventListener("pointermove",this.handleGlobalPointerMove),this.$addEventListener("pointerup",this.handleGlobalPointerUp),this.$addEventListener("pointercancel",this.handleGlobalPointerUp),this.$addEventListener("mouseup",this.handleScrubbingOnMouseEnd);const t=this.$refs.timelineContainer;t&&(t.style.setProperty("--progress-position",String(this.progressPercent)),t.style.setProperty("--buffer-position",String(this.bufferPercent)))},methods:{closeSettings(){this.showSettings=!1},getTimelinePercent(t){const e=this.$refs.timelineContainer;if(!e)return 0;const r=e.getBoundingClientRect();return r.width<=0?0:Math.min(Math.max(0,t-r.x),r.width)/r.width},updateTimelinePreview(t){const e=this.$refs.timelineContainer;e&&(this.hoverPercentage=t*100,this.hoverTime=Tr(t*this.videoDuration),e.style.setProperty("--preview-position",t.toString()),this.internalIsScrubbing&&e.style.setProperty("--progress-position",t.toString()))},startScrubbing(t){this.internalIsScrubbing=!0,this.wasPaused=!this.playing,this.$emit("scrub-start"),this.updateTimelinePreview(t)},endScrubbing(t){this.internalIsScrubbing&&(this.internalIsScrubbing=!1,this.$emit("scrub-end",{percent:t,wasPaused:this.wasPaused}),this.updateTimelinePreview(t))},handleTimelinePointerDown(t){var s;if(!t.isPrimary)return;const e=this.$refs.timelineContainer;if(!e)return;this.activePointerId=t.pointerId,(s=e.setPointerCapture)==null||s.call(e,t.pointerId);const r=this.getTimelinePercent(t.clientX);this.startScrubbing(r),t.preventDefault()},handleGlobalPointerMove(t){if(!this.internalIsScrubbing||this.activePointerId!==null&&t.pointerId!==this.activePointerId)return;const e=this.getTimelinePercent(t.clientX);this.updateTimelinePreview(e),t.preventDefault()},handleGlobalPointerUp(t){var s;if(!this.internalIsScrubbing||this.activePointerId!==null&&t.pointerId!==this.activePointerId)return;const e=this.getTimelinePercent(t.clientX);this.endScrubbing(e);const r=this.$refs.timelineContainer;r&&this.activePointerId!==null&&((s=r.releasePointerCapture)==null||s.call(r,this.activePointerId)),this.activePointerId=null},handleTimelineUpdate(t){if(this.internalIsScrubbing)return;const e=this.getTimelinePercent(t.clientX);this.updateTimelinePreview(e)},toggleScrubbing(t){if(this.internalIsScrubbing){const r=this.getTimelinePercent(t.clientX);this.endScrubbing(r),this.activePointerId=null;return}if((t.buttons&1)!==1)return;const e=this.getTimelinePercent(t.clientX);this.startScrubbing(e),this.activePointerId=null},handleScrubbingOnMouseEnd(t){if(!this.internalIsScrubbing||this.activePointerId!==null)return;const e=this.getTimelinePercent(t.clientX);this.endScrubbing(e)},handleTimelineLeave(){this.internalIsScrubbing||(this.hoverPercentage=-1)}}}),u_="";var $6=function(){var e=this,r=e._self._c;return r("div",{class:["video-controls-container","e-absolute e-bottom-0 e-left-0 e-right-0 e-text-white e-z-[12] e-opacity-100 e-transition-opacity e-duration-150 e-ease-in-out",{"controls-hidden":!e.showControls},e.withControlsBackground?"with-bg":"without-bg"],on:{mouseenter:function(s){return e.$emit("controls-hover-change",!0)},mouseleave:function(s){return e.$emit("controls-hover-change",!1)}}},[r("div",{staticClass:"controls e-flex e-flex-col e-gap-2 e-pt-[0.1rem] e-px-4 e-pb-[0.85rem]"},[r("div",{ref:"timelineContainer",staticClass:"timeline-container",on:{mousemove:e.handleTimelineUpdate,pointerdown:e.handleTimelinePointerDown,mousedown:e.toggleScrubbing,mouseleave:e.handleTimelineLeave}},[r("div",{staticClass:"timeline"},[r("div",{staticClass:"buffered-progress"}),r("div",{staticClass:"preview-progress"}),r("div",{staticClass:"played-progress"}),r("div",{staticClass:"thumb-indicator"}),e.hoverPercentage>=0&&e.videoDuration>0?r("div",{staticClass:"hover-time",style:{left:`calc(${e.hoverPercentage}% - 18px)`}},[e._v(" "+e._s(e.hoverTime)+" ")]):e._e()])]),r("div",{staticClass:"e-flex e-items-center e-justify-between e-gap-2"},[r("div",{staticClass:"e-flex e-items-center e-gap-1"},[r("button",{staticClass:"skip-back-btn fa-lg far fa-backward-step",attrs:{title:"back"},on:{click:function(s){return e.$emit("skip",-e.seekStep)}}}),r("button",{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:function(s){return e.$emit("toggle-play")}}}),r("button",{staticClass:"skip-forward-btn fa-lg far fa-forward-step",attrs:{title:"next"},on:{click:function(s){return e.$emit("skip",e.seekStep)}}}),e.showVolumeControl?r("div",{staticClass:"e-relative e-flex e-items-center",on:{mouseenter:function(s){e.showVolume=!0},mouseleave:function(s){e.showVolume=!1}}},[r("button",{staticClass:"mute-btn fa-lg far",class:{"fa-volume":!e.isMuted,"fa-volume-xmark":e.isMuted},attrs:{title:e.isMuted?"Unmute":"Mute"},on:{click:function(s){return e.$emit("toggle-mute")}}}),r("div",{staticClass:"volume-slider-wrap e-overflow-hidden",class:e.showVolume?"volume-slider-wrap--visible e-px-1 e-mb-1 e-opacity-100":"e-w-0 e-p-0 e-opacity-0"},[r("input",{staticClass:"volume-slider",style:{"--volume-level":`${Math.round((e.isMuted?0:e.volume)*100)}%`},attrs:{type:"range",min:"0",max:"1",step:"0.01"},domProps:{value:e.isMuted?0:e.volume},on:{input:function(s){return e.$emit("volume-input",s)}}})])]):e._e(),r("div",{staticClass:"e-video-player-time-tracker e-flex e-items-center e-gap-1 e-text-white/90 e-bg-white/10 e-px-2.5 e-py-1.5 e-rounded-full e-text-xs"},[r("div",[e._v(e._s(e.currentTime))]),e._v(" / "),r("div",[e._v(e._s(e.videoLength))])])]),r("div",{staticClass:"e-flex e-items-center e-gap-1"},[e.isZoomable?r("button",{staticClass:"zoom-out-btn far fa-magnifying-glass-minus",attrs:{title:"zoom out"},on:{click:function(s){return e.$emit("zoom-out")}}}):e._e(),e.isZoomable?r("button",{staticClass:"zoom-in-btn far fa-magnifying-glass-plus",attrs:{title:"zoom in"},on:{click:function(s){return e.$emit("zoom-in")}}}):e._e(),e.showSettingsButton?r("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeSettings,expression:"closeSettings"}],staticClass:"e-relative"},[r("button",{staticClass:"settings-btn far fa-gear",class:e.showSettings?"!e-opacity-100 !e-bg-blue-500/30 !e-text-white":"",attrs:{title:"settings"},on:{click:function(s){e.showSettings=!e.showSettings}}}),e.showSettings?r("EVideoPlayerSettings",{attrs:{"settings-items":e.settingsItems,"playback-rate":e.playbackRate,"playback-rate-options":e.playbackRateOptions,"seek-step":e.seekStep,"seek-step-options":e.seekStepOptions,"loop-enabled":e.loopEnabled,"autoplay-enabled":e.autoplayEnabled,"muted-on-start":e.mutedOnStart},on:{"set-playback-rate":function(s){return e.$emit("set-playback-rate",s)},"set-seek-step":function(s){return e.$emit("set-seek-step",s)},"set-loop-enabled":function(s){return e.$emit("set-loop-enabled",s)},"set-autoplay-enabled":function(s){return e.$emit("set-autoplay-enabled",s)},"set-muted-on-start":function(s){return e.$emit("set-muted-on-start",s)},reset:function(s){return e.$emit("reset-settings")}}}):e._e()],1):e._e(),r("button",{staticClass:"full-screen-btn fa-solid",class:{"fa-up-right-and-down-left-from-center":!e.isFullscreen,"fa-down-left-and-up-right-to-center":e.isFullscreen},on:{click:function(s){return e.$emit("toggle-fullscreen")}}})])])])])},E6=[],D6=z(M6,$6,E6,!1,null,"e16f2f0c",null,null);const L6=D6.exports,gt=E.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=[]}}}),P6=E.extend({name:"EVideoPlayer",components:{ESpinner:ss,EZoomable:Gn,EVideoPlayerControls:L6,EIcon:Xe},mixins:[st,gt],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},isPlaying:{type:Boolean,default:!1},showLoadingAnimation:{type:Boolean,default:!1},isZoomable:{type:Boolean,default:!1},zoomableIgnorePointerEvents:{type:Boolean,default:!1},isWebRtc:{type:Boolean,default:!1},withColoredLoader:{type:Boolean,default:!1},loaderSize:{type:String,default:"SevenXl"},withOverlayOnBackground:{type:Boolean,default:!1},withControlsBackground:{type:Boolean,default:!1},hideControls:{type:Boolean,default:!1},autoHideControls:{type:Boolean,default:!1},controlsHideDelayMs:{type:Number,default:3e3},persistSettings:{type:Boolean,default:!0},playbackRateOptions:{type:Array,default:()=>[.5,.75,1,1.25,1.5,2]},seekStepOptions:{type:Array,default:()=>[5,10,30]},defaultSeekStep:{type:Number,default:10},showSettingsButton:{type:Boolean,default:!0},showVolumeControl:{type:Boolean,default:!0},settingsItems:{type:Array,default:void 0},showCenterPlayButton:{type:Boolean,default:!0},fallbackSrc:{type:String,default:""},hlsOptions:{type:Object,default:()=>({})}},data(){return{playing:!1,videoLength:"0:00",videoDuration:0,currentTime:"0:00",isScrubbing:!1,progressPercent:0,bufferPercent:0,isPanningVideo:!1,panMouseDownOnZoom:!1,wasPaused:!1,isFullscreen:!1,isLoading:!0,isError:!1,isMuted:!1,volume:1,lastVolume:1,showControls:!0,forceZoomFromControls:!1,isSettingsOpen:!1,isHoveringControls:!1,hasTriedFallback:!1,playbackRate:1,seekStep:this.defaultSeekStep,loopEnabled:!1,autoplayEnabled:!1,mutedOnStart:!1,boundEvents:{},player:null,playbackRetries:0,preloadedSeconds:0,preloadedInterval:null}},computed:{sanitizedVideoOptions(){const{controls:t,...e}=this.videoOptions;return e},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,type:""}]},shouldRenderControls(){if(this.hideControls)return!1;const t=this.videoOptions;return(t==null?void 0:t.controls)!==!1},isActuallyZoomable(){return this.isZoomable||this.forceZoomFromControls},shouldKeepControlsVisible(){return this.isHoveringControls||this.isSettingsOpen},hasPlayerContainerOverlay(){return!!this.$scopedSlots["player-container-overlay"]||!!this.$slots["player-container-overlay"]},streamingToken(){return this.isEdgeVideo?this.edgeStreamingToken:this.authToken},resolvedSettingsItems(){if(!Array.isArray(this.settingsItems)||this.settingsItems.length===0)return kr;const t=new Set(kr),e=[];return this.settingsItems.forEach(r=>{!t.has(r)||e.includes(r)||e.push(r)}),e.length===0?kr:e}},watch:{isPlaying:{immediate:!0,async handler(t){this.playing=t,t?await this.play():this.pause(),!(!this.isHls||!this.player)&&(t?this.$emit("hls-play"):this.$emit("hls-pause"))}},preloadedSeconds(t){this.preloadedInterval={start:Be(this.targetTimestamp).format(),end:Be(this.targetTimestamp).add(t,"seconds").format()},this.$emit("preloaded-interval",this.preloadedInterval)},targetTimestamp:{immediate:!0,handler(t){var i,a;if(!this.isHls)return;const e=this.$refs.player;if(!e)return;const r=(i=this.preloadedInterval)==null?void 0:i.start,s=(a=this.preloadedInterval)==null?void 0:a.end;if(!(r&&s))return;const n=Be(t).isBetween(Be(r),Be(s),void 0,"[]");e.currentTime=0,n||this.initHls()}},sources(){if(this.hasTriedFallback=!1,this.isError=!1,this.isLoading=!0,this.isHls)this.initHls();else{const t=this.$refs.player;t&&t.load()}}},mounted(){this.isHls&&this.initHls(),this.bindEvents(),this.initializePlayer()},beforeDestroy(){this.unbindEvents(),this.destroyPlayer()},methods:{initHls(t="",e=!1){var n;const r=this.$refs.player;if(!r)return;const s=this.sourceItems[0];(n=this.player)!=null&&n.stopLoad&&this.player.stopLoad(),lr.isSupported()&&(this.isLoading=!0,this.player=new lr({startPosition:0,debug:e,xhrSetup:i=>{this.streamingToken&&i.setRequestHeader("Authorization",`Bearer ${this.streamingToken}`)},...this.hlsOptions}),this.player.enableDebug=()=>{var i;(i=this.player)==null||i.destroy(),this.initHls(t,!0)},r._hls=this.player,this.player.loadSource(t||s.src),this.player.attachMedia(r),this.player.on(lr.Events.MANIFEST_PARSED,(i,a)=>{var l;const c=(l=a.levels[a.firstLevel])==null?void 0:l.details,o=c==null?void 0:c.startTimeOffset;r.currentTime=o||0,this.applyPlaybackRate(),(this.playing||r.autoplay)&&this.play()}),this.player.on(lr.Events.ERROR,this.handleHlsError))},closeControlsSettings(){var t,e;this.isSettingsOpen=!1,(e=(t=this.$refs.controls)==null?void 0:t.closeSettings)==null||e.call(t)},onSettingsVisibilityChange(t){if(this.isSettingsOpen=t,t){this.showControls=!0,this.$clearTimeouts();return}this.scheduleControlsHide()},onControlsHoverChange(t){if(this.isHoveringControls=t,t){this.showControls=!0,this.$clearTimeouts();return}this.scheduleControlsHide()},onContainerClick(){this.closeControlsSettings(),this.pauseOnClick&&this.togglePlay()},handle404Error(){if(this.isWebRtc)return;const t=this.$refs.player;if(this.fallbackSrc&&t&&!this.hasTriedFallback&&t.currentSrc!==this.fallbackSrc){this.hasTriedFallback=!0,this.isError=!1,this.isLoading=!0,t.src=this.fallbackSrc,t.load(),(this.playing||t.autoplay)&&t.play().catch(()=>{});return}this.isError=!0,this.isLoading=!1,this.setPlaying(!1)},handleHlsError(t,e){var l;if(!this.player||!e.fatal)return;this.$emit("error",e);const r=e.type===lr.ErrorTypes.NETWORK_ERROR,s=e.type===lr.ErrorTypes.MEDIA_ERROR,n=r&&((l=e.networkDetails)==null?void 0:l.status)===404,i=this.$refs.player,a=()=>this.fallbackSrc&&(i==null?void 0:i.currentSrc)!==this.fallbackSrc,c=()=>this.initHls(this.fallbackSrc),o=()=>{var d;if(a()){c();return}(d=this.player)==null||d.destroy(),this.player=null,this.videoListeners.error?this.videoListeners.error():this.handle404Error()};if(n){o();return}if(r){console.error("A network error occurred:",e),a()?c():this.player.startLoad();return}if(s){console.error("A media error occurred:",e),a()?c():this.player.recoverMediaError();return}o()},bindEvents(){const t=this.$refs.player;t&&zn.forEach(e=>{const r=s=>this.bindVideoEvent(e,s);this.boundEvents[e]=r,t.addEventListener(e,r,!0)})},onProgress(){const t=this.$refs.player;if(!(!t||t.buffered.length===0))try{this.preloadedSeconds=t.buffered.end(t.buffered.length-1),this.videoDuration>0&&(this.bufferPercent=Math.min(1,this.preloadedSeconds/this.videoDuration))}catch(e){console.error("Error while fetching buffered end time:",e)}},unbindEvents(){const t=this.$refs.player;if(!t){this.boundEvents={};return}zn.forEach(e=>{const r=this.boundEvents[e];r&&t.removeEventListener(e,r,!0)}),this.boundEvents={}},bindVideoEvent(t,e){const r=this.$refs.player;r&&((t==="play"||t==="playing")&&!this.isPanningVideo&&this.setPlaying(!0),t==="pause"&&!this.isPanningVideo&&this.setPlaying(!1),t==="waiting"&&(this.isLoading=!0),t==="playing"&&(this.isLoading=!1),this.$emit(t,{event:e,player:r}))},mapPlaybackRate(t){return Math.min(16,Math.max(.05,Math.exp(2*(t-1))))},loadSettings(){if(!this.persistSettings){this.playbackRate=1,this.seekStep=this.defaultSeekStep;return}if(typeof window!="undefined")try{const t=window.localStorage.getItem(rs);if(!t)return;const e=JSON.parse(t);typeof e.playbackRate=="number"&&(this.playbackRate=Math.min(4,Math.max(.25,e.playbackRate))),typeof e.seekStep=="number"&&(this.seekStep=Math.min(120,Math.max(1,e.seekStep))),typeof e.loopEnabled=="boolean"&&(this.loopEnabled=e.loopEnabled),typeof e.autoplayEnabled=="boolean"&&(this.autoplayEnabled=e.autoplayEnabled),typeof e.mutedOnStart=="boolean"&&(this.mutedOnStart=e.mutedOnStart)}catch(t){console.error("Invalid video settings payload",t)}},persistPlayerSettings(){this.persistSettings&&typeof window!="undefined"&&window.localStorage.setItem(rs,JSON.stringify({playbackRate:this.playbackRate,seekStep:this.seekStep,loopEnabled:this.loopEnabled,autoplayEnabled:this.autoplayEnabled,mutedOnStart:this.mutedOnStart}))},applyPlaybackRate(){const t=this.$refs.player;if(!t)return;const e=this.mapPlaybackRate(this.playbackRate);t.defaultPlaybackRate=e,t.playbackRate=e},setPlaybackRate(t){this.playbackRate=Math.min(4,Math.max(.25,t)),this.applyPlaybackRate(),this.persistPlayerSettings()},setSeekStep(t){this.seekStep=Math.min(120,Math.max(1,t)),this.persistPlayerSettings()},setLoopEnabled(t){this.loopEnabled=t;const e=this.$refs.player;e&&(e.loop=t),this.persistPlayerSettings()},setAutoplayEnabled(t){this.autoplayEnabled=t;const e=this.$refs.player;e&&(e.autoplay=t),this.persistPlayerSettings()},setMutedOnStart(t){this.mutedOnStart=t,this.persistPlayerSettings()},resetSettings(){this.playbackRate=1,this.seekStep=this.defaultSeekStep,this.closeControlsSettings(),this.applyPlaybackRate(),this.setLoopEnabled(!1),this.setAutoplayEnabled(!1),this.setMutedOnStart(!1),this.persistSettings&&typeof window!="undefined"&&window.localStorage.removeItem(rs)},scheduleControlsHide(){if(this.$clearTimeouts(),!this.autoHideControls||!this.playing||this.isScrubbing||this.shouldKeepControlsVisible){this.showControls=!0;return}if(this.controlsHideDelayMs<=0){this.showControls=!0;return}this.$setTimeout(()=>{this.playing&&!this.isScrubbing&&(this.showControls=!1)},Math.max(0,this.controlsHideDelayMs))},handleContainerMouseMove(t){if(this.showControls=!0,this.scheduleControlsHide(),this.panMouseDownOnZoom&&t.buttons===1&&!this.isPanningVideo&&this.pauseOnClick){this.isPanningVideo=!0;const e=this.$refs.player;e&&e.pause()}},handleContainerMouseLeave(){if(!this.playing||!this.autoHideControls||this.shouldKeepControlsVisible){this.showControls=!0;return}if(this.controlsHideDelayMs<=0){this.showControls=!1;return}this.scheduleControlsHide()},handleContainerMouseDown(t){var s;const e=this.$refs.zoomable;if(!(e!=null&&e.isZoomed))return;const r=(s=this.$refs.controls)==null?void 0:s.$el;r!=null&&r.contains(t.target)||this.onZoomablePanStart()},onZoomablePanStart(){if(!this.pauseOnClick)return;const t=this.$refs.player;t&&(this.panMouseDownOnZoom=!0,this.wasPaused=t.paused,t.pause())},handlePanMouseEnd(){if(this.panMouseDownOnZoom=!1,!this.isPanningVideo)return;if(this.isPanningVideo=!1,this.wasPaused){this.setPlaying(!1);return}const t=this.$refs.player;t&&t.play().catch(()=>{})},initializePlayer(){var i,a;const t=this.$refs.player;if(!t)return;const e=this.videoOptions,r=(i=e==null?void 0:e.muted)!=null?i:!1,s=(a=e==null?void 0:e.autoplay)!=null?a:!1;this.loadSettings(),this.volume=typeof t.volume=="number"?t.volume:1,this.lastVolume=this.volume>0?this.volume:1,this.isMuted=r||this.mutedOnStart,t.defaultMuted=this.isMuted,t.muted=this.isMuted,this.setVolume(this.isMuted?0:this.volume),t.loop=this.loopEnabled,t.autoplay=this.autoplayEnabled||s,this.applyPlaybackRate(),this.showControls=!0,(this.autoplayEnabled||this.isPlaying||s)&&this.play().catch(()=>{}),this.$addEventListener("mouseup",this.handlePanMouseEnd),this.$addEventListener("keydown",this.handleKeyDown);const n=document;(n.fullscreenEnabled||n.webkitFullscreenEnabled||n.mozFullScreenEnabled||n.msFullscreenEnabled)&&(this.$addEventListener("fullscreenchange",this.handleFullscreenChange),this.$addEventListener("webkitfullscreenchange",this.handleFullscreenChange),this.$addEventListener("mozfullscreenchange",this.handleFullscreenChange),this.$addEventListener("MSFullscreenChange",this.handleFullscreenChange))},setVolume(t){const e=this.$refs.player;if(!e)return;const r=Math.min(1,Math.max(0,t));e.volume=r,this.volume=r;const s=this.isMuted;this.isMuted=r===0,e.muted=this.isMuted,this.isMuted?s||(this.lastVolume=this.lastVolume||1):this.lastVolume=this.volume},onVolumeInput(t){const e=t.target;this.setVolume(Number((e==null?void 0:e.value)||0))},adjustVolume(t){this.setVolume(this.volume+.1*t)},toggleMute(){this.setVolume(this.isMuted?this.lastVolume||1:0)},async handleControlZoom(t){const e=this.$refs.zoomable;e!=null&&e.zoom&&(this.isZoomable||(this.forceZoomFromControls=!0,await this.$nextTick()),e.zoom(t),this.isZoomable||(this.forceZoomFromControls=!1))},destroyPlayer(){this.player&&(this.player.stopLoad(),this.player.destroy())},handleFullscreenChange(){const t=document;this.isFullscreen=!!t.fullscreenElement||!!t.mozFullScreenElement||!!t.webkitFullscreenElement||!!t.msFullscreenElement||window.innerWidth===screen.width&&window.innerHeight===screen.height},onScrubStart(){this.isScrubbing=!0,this.$clearTimeouts();const t=this.$refs.videoContainer;t&&t.classList.add("scrubbing");const e=this.$refs.player;e&&e.pause()},onScrubEnd({percent:t,wasPaused:e}){this.isScrubbing=!1;const r=this.$refs.videoContainer;r&&r.classList.remove("scrubbing");const s=this.$refs.player;if(!s)return;const n=t*this.videoDuration;s.currentTime=n,this.currentTime=Tr(n),this.progressPercent=t,!e&&(s.play().catch(console.error),this.scheduleControlsHide())},async play(){const t=this.$refs.player;if(t)try{this.applyPlaybackRate(),await t.play(),this.playbackRetries=0,this.setPlaying(!0)}catch(e){const r=e.name;if(r==="AbortError")return;console.error(e),this.playbackRetries+=1,this.isHls&&this.playbackRetries<3?this.initHls():r==="NotAllowedError"?(this.isLoading=!1,this.setPlaying(!1)):(this.isError=!0,this.isLoading=!1,this.setPlaying(!1))}},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,t?this.scheduleControlsHide():(this.showControls=!0,this.$clearTimeouts())},closeFullscreenMode(){document.fullscreenElement&&(Wn().then(()=>{this.isFullscreen=!1}),this.isFullscreen=!1)},openFullscreenMode(){const t=this.$refs.videoContainer;t&&(Hn(t).then(()=>{this.isFullscreen=!0}),this.isFullscreen=!0)},toggleFullscreenMode(){this.isFullscreen?this.closeFullscreenMode():this.openFullscreenMode()},getDuration(){const t=this.$refs.player;t&&(this.videoLength=Tr(t.duration),this.videoDuration=t.duration,this.applyPlaybackRate())},handleTimeUpdate(){const t=this.$refs.player;t&&(this.currentTime=Tr(t.currentTime),this.videoDuration>0&&(this.progressPercent=t.currentTime/this.videoDuration))},skip(t){const e=t!=null?t:this.seekStep,r=this.$refs.player;if(!r)return;const s=Number.isFinite(r.duration)&&r.duration>0?r.duration:this.videoDuration,n=Math.max(0,Math.min(s,r.currentTime+e));r.currentTime=n},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"j":this.skip(-this.seekStep);break;case"l":this.skip(this.seekStep);break;case"arrowleft":t.preventDefault(),this.skip(-this.seekStep);break;case"arrowright":t.preventDefault(),this.skip(this.seekStep);break;case"arrowup":t.preventDefault(),this.adjustVolume(1);break;case"arrowdown":t.preventDefault(),this.adjustVolume(-1);break;case"m":this.toggleMute();break;case"escape":t.preventDefault(),this.closeControlsSettings(),this.closeFullscreenMode();break;case"f":this.openFullscreenMode();break}}}}),d_="";var O6=function(){var e=this,r=e._self._c;return r("div",{ref:"videoContainer",class:["e-video-player","video-container","e-relative e-bg-black e-w-full e-h-full e-flex e-flex-col e-justify-center e-overflow-hidden e-mx-auto",{paused:!e.playing}],style:{height:e.$attrs.height,width:e.$attrs.width},on:{mousemove:e.handleContainerMouseMove,mouseleave:e.handleContainerMouseLeave,mousedown:function(s){return e.handleContainerMouseDown(s)}}},[r("EZoomable",{ref:"zoomable",attrs:{"ignore-pointer-events":e.zoomableIgnorePointerEvents,disabled:!e.isActuallyZoomable,"with-overlay":e.hasPlayerContainerOverlay},on:{"on-frame-props-change":function(s){return e.$emit("on-frame-props-change",s)}},scopedSlots:e._u([{key:"overlay",fn:function(){return[e._t("player-container-overlay")]},proxy:!0}],null,!0)},[e._t("background",function(){return[e.withOverlayOnBackground?r("div",{staticClass:"e-absolute e-inset-0 e-overflow-hidden e-pointer-events-none",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(s){return e.$emit("error",s)}}}):e._e()]):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:{error:e.handle404Error,ended:function(s){return e.setPlaying(!1)},click:e.onContainerClick,loadedmetadata:e.getDuration,seeking:function(s){e.isLoading=!0},seeked:function(s){e.isLoading=!1},timeupdate:e.handleTimeUpdate,progress:e.onProgress,loadeddata:function(s){e.isLoading=!1},contextmenu:function(s){s.preventDefault()}}},"video",e.sanitizedVideoOptions,!1),e.videoListeners),[e.isWebRtc?e._e():e._l(e.sourceItems,function(s){return r("source",e._g({key:s.src,attrs:{src:s.src,type:s.type},on:{error:e.handle404Error}},e.videoListeners))})],2)],2),e.showCenterPlayButton&&!e.playing&&!e.isLoading&&!e.isError&&!e.isScrubbing&&!e.isPanningVideo&&e.pauseOnClick?r("button",{staticClass:"center-play-overlay e-group e-absolute e-left-1/2 e-top-1/2 e--translate-x-1/2 e--translate-y-1/2 e-w-20 e-h-20 e-border-0 e-rounded-full e-z-[8] e-cursor-pointer e-inline-flex e-items-center e-justify-center e-bg-transparent e-p-0",attrs:{type:"button","aria-label":"Play video"},on:{click:function(s){return s.stopPropagation(),e.play.apply(null,arguments)}}},[r("span",{staticClass:"center-play-overlay__inner e-w-20 e-h-20 e-rounded-full e-inline-flex e-items-center e-justify-center e-transition-colors e-duration-150 e-ease-in-out e-bg-[linear-gradient(145deg,rgba(96,165,250,0.62),rgba(59,130,246,0.58))] e-border e-border-solid e-border-[rgba(96,165,250,0.72)] e-shadow-[0_10px_24px_rgba(29,78,216,0.4)] e-backdrop-blur-[8px] group-hover:e-bg-[linear-gradient(145deg,rgba(96,165,250,0.78),rgba(59,130,246,0.74))]"},[r("EIcon",{staticClass:"e-text-white e-text-[2rem] e-ml-1",attrs:{icon:"fa-solid fa-play"}})],1)]):e._e(),e.isLoading||e.showLoadingAnimation?r("div",{staticClass:"spinner-container e-absolute e-inset-0 e-flex e-justify-center e-items-center e-bg-[linear-gradient(to_top,rgba(0,0,0,0.65),transparent)]"},[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-absolute e-inset-0 e-flex e-justify-center e-items-center e-gap-3 e-text-white e-bg-[linear-gradient(to_top,rgba(0,0,0,0.65),transparent)]"},[e._t("error",function(){return[r("EIcon",{staticClass:"e-align-middle",attrs:{icon:"fa-solid fa-video-slash",size:"2xl"}}),r("span",[e._v("This video file cannot be played.")])]})],2):e._e(),e._t("controls",function(){return[e.shouldRenderControls?r("EVideoPlayerControls",{ref:"controls",attrs:{playing:e.playing,"progress-percent":e.progressPercent,"buffer-percent":e.bufferPercent,"current-time":e.currentTime,"video-length":e.videoLength,"video-duration":e.videoDuration,"is-muted":e.isMuted,volume:e.volume,"seek-step":e.seekStep,"playback-rate":e.playbackRate,"playback-rate-options":e.playbackRateOptions,"seek-step-options":e.seekStepOptions,"is-zoomable":e.isZoomable,"show-settings-button":e.showSettingsButton,"show-volume-control":e.showVolumeControl,"with-controls-background":e.withControlsBackground,"show-controls":e.showControls,"is-fullscreen":e.isFullscreen,"loop-enabled":e.loopEnabled,"autoplay-enabled":e.autoplayEnabled,"muted-on-start":e.mutedOnStart,"settings-items":e.resolvedSettingsItems},on:{"toggle-play":e.togglePlay,skip:e.skip,"toggle-mute":e.toggleMute,"volume-input":e.onVolumeInput,"zoom-in":function(s){return e.handleControlZoom(-1)},"zoom-out":function(s){return e.handleControlZoom(1)},"set-playback-rate":e.setPlaybackRate,"set-seek-step":e.setSeekStep,"set-loop-enabled":e.setLoopEnabled,"set-autoplay-enabled":e.setAutoplayEnabled,"set-muted-on-start":e.setMutedOnStart,"reset-settings":e.resetSettings,"toggle-fullscreen":e.toggleFullscreenMode,"scrub-start":e.onScrubStart,"scrub-end":e.onScrubEnd,"settings-visibility-change":e.onSettingsVisibilityChange,"controls-hover-change":e.onControlsHoverChange}}):e._e()]},{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)},I6=[],z6=z(P6,O6,I6,!1,null,"020454a9",null,null);const go=z6.exports,lt={bind(t,e){const{value:r}=e;if(typeof r!="function"){console.error("Invalid callback function provided to v-resize-observer");return}const s=new ResizeObserver(n=>{n[0]&&r(n[0])});s.observe(t),t.__resizeObserver__=s},unbind(t){t.__resizeObserver__&&(t.__resizeObserver__.disconnect(),delete t.__resizeObserver__)}},vo=[{name:"resize-observer",definition:lt},{name:"click-outside",definition:ns}],Ot={transparencyGradient:"transparency-gradient",transparencyGradientLight:"transparency-gradient-light",transparencyGradientHover:"transparency-gradient-hover",loadingGradient:"loading-gradient",stripedPattern:"stripedPattern",clipPath:"clip-path"},we={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 vt({timestamp:t,timezone:e}){const r=yo(t,e);return Be(t).add(r,"minutes").toDate()}function os({date:t,timezone:e}){const r=new Date(t).getTimezoneOffset(),s=yo(t,e);return Be(t).add(r,"minutes").utcOffset(s,!0).format()}function yo(t,e){return e?Be.tz(t,e).utcOffset():R6(t)}function R6(t){return Be.parseZone(t).utcOffset()}const B6=E.extend({name:"ETimelineMilestone",directives:{resizeObserver:lt},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:we,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 s=r.children[0];if(!s)return;const n=s.getBoundingClientRect(),i=e.dataset.timeoutId;i&&(clearTimeout(Number(i)),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(n.width)),this.containerHeight||(this.containerHeight=e.dataset.initialContentHeight=String(n.height)),e.dataset.transitionStart=String(Date.now()),e.style.borderRadius="0.5em",e.classList.add(we.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 s=Date.now()-Number(e.dataset.transitionStart),n=s>this.transitionDuration?this.transitionDuration:s,i=setTimeout(()=>{e.classList.remove(we.milestoneHovered),e.dataset.timeoutId=""},n);e.dataset.timeoutId=String(i),this.timeouts.push(i),this.isMouseOver=!1},onMilestoneClick(t,e){this.$emit("milestone-click",e)},tzStringToDate(t){return vt({timestamp:t,timezone:this.timezone})}}}),h_="";var F6=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:s=>e.onMilestoneMouseOver(s),mousemove:e.onMilestoneMouseMove,mouseleave:s=>e.onMilestoneMouseLeave(s),click:s=>e.onMilestoneClick(s,e.milestone)}},[r("div",{class:e.classNames.milestoneContent,style:e.contentStyles},[e._t("content",function(){var s;return[r("span",[e._v(" "+e._s((s=e.milestone)==null?void 0:s.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)])},A6=[],H6=z(B6,F6,A6,!1,null,null,null,null);const N6=H6.exports,W6=E.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`}}}}),f_="";var Y6=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(s){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)})])},j6=[],U6=z(W6,Y6,j6,!1,null,"614947ed",null,null);const G6=U6.exports,q6=E.extend({name:"ETimelineMarkers",components:{ETimelineMarker:G6},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=x.drag().on("start",function(e,r){t.handleMarkerDrag({marker:r,markerElement:x.select(this),dragEvent:e})}).on("drag",function(e,r){t.handleMarkerDrag({marker:r,markerElement:x.select(this),dragEvent:e})}).on("end",function(e,r){t.handleMarkerDrag({marker:r,markerElement:x.select(this),dragEvent:e})}),x.selectAll(`.${we.marker}`).data(this.markers).call(this.markersDragBehavior)},removeMarkersDragBehavior(){this.markersDragBehavior&&(this.markersDragBehavior.on("start",null).on("drag",null).on("end",null),x.selectAll(`.${we.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(`.${we.markerLine}`).getBoundingClientRect().left,e.classed(we.markerDragged,!0));const s=r.x-this.initialMarkerDragMouseOffset,n=this.timeScale.invert(s-this.svgLeft);let i=this.timeScale(n);const a=this.isTimestampAllowedForMarker(n,t);if(r.type==="drag"&&a&&e.attr("style",`left: ${i}px`),r.type==="end"){const o=t.id||t.timestamp;i=a?i:this.timeScale(this.tzStringToDate(t.timestamp)),this.markersPositions={...this.markersPositions,[o]:{...this.markersPositions[o],position:i}},e.classed(we.markerDragged,!1)}r.type!=="start"&&this.$emit(`marker-drag-${r.type}`,{marker:t,newTimestamp:a?this.dateToTzString(n):t.timestamp})},updateMarkers(){if(!this.markers.length)return;const t=12,e=200;this.markers.forEach((r,s,n)=>{const i=typeof r.timestamp=="string"?this.tzStringToDate(r.timestamp):r.timestamp,a=this.timeScale(i);let c=!1;const o=this.stickyMarkers?Math.max(a,s*t):a;if(s<n.length-1){const l=n[s+1],d=typeof l.timestamp=="string"?this.tzStringToDate(l.timestamp):l.timestamp,h=this.timeScale(d);c=(this.stickyMarkers?Math.max(h,(s+1)*t):a)-o<e+t}this.markersPositions={...this.markersPositions,[r.id]:{isHidden:c,position:o}}}),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 vt({timestamp:t,timezone:this.timeZone})},dateToTzString(t){return os({date:t,timezone:this.timeZone})}}});var Z6=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-tl-markers"},e._l(e.markers,function(s){var n,i;return r("ETimelineMarker",{key:s.id,attrs:{marker:s,height:e.height,position:(n=e.markersPositions[s.id])==null?void 0:n.position,hidden:(i=e.markersPositions[s.id])==null?void 0:i.isHidden,"data-id":s.id},on:{"marker-clicked":function(a){return e.$emit("marker-clicked",a)}},scopedSlots:e._u([{key:`marker.${s.id}`,fn:function(){return[e._t(`marker.${s.id}`,function(){return[e._v(" "+e._s(s.label)+" ")]},{marker:s})]},proxy:!0}],null,!0)})}),1)},X6=[],V6=z(q6,Z6,X6,!1,null,null,null,null);const Q6=V6.exports,K6=E.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},minZoomDuration:{type:Number,default:0},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,isZooming:!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(wr.Zoom),this.emitTimeScaleChange()},focusedDomain(t){t&&this.zoomToFocusedDomain(t)},focusedTimestamp(t){t&&this.panToTimestamp(t)},width:{handler(t,e){!t||!e||t===e||this.handleWidthChange(t)}}},mounted(){this.$nextTick(()=>{this.initRefs(),this.initTimeScale(),this.initZoomBehavior(),this.emitTimeScaleChange(),this.emitFocusedDomainChange(wr.Initial)})},methods:{initRefs(){this.container=this.$refs.container},initTimeScale(){this.timeScale=x.scaleTime().domain([this.focusedStartDate,this.focusedEndDate]).range([0,this.getWidth()]),this.initialTimeScale=this.timeScale.copy()},handleWidthChange(t){if(!this.zoomBehavior||!this.selection)return;const[e,r]=this.timeScale.domain(),s=this.focusedEndDate.getTime()-this.focusedStartDate.getTime(),n=r.getTime()-e.getTime();this.initialTimeScale=x.scaleTime().domain([this.focusedStartDate,this.focusedEndDate]).range([0,t]);const i=s/n,a=-i*this.initialTimeScale(e),c=x.zoomIdentity.translate(a,0).scale(i),{scaleExtent:o,translateExtent:l}=this.calculateZoomExtents();this.zoomBehavior.scaleExtent(o).translateExtent(l),this.selection.call(this.zoomBehavior.transform,c),this.timeScale=c.rescaleX(this.initialTimeScale.copy()),this.lastTransform={...c}},calculateZoomExtents(){const t=this.getWidth(),e=this.maxDate.getTime()-this.minDate.getTime(),r=this.focusedEndDate.getTime()-this.focusedStartDate.getTime(),s=r/e,n=this.minZoomDuration>0?r/this.minZoomDuration:1/0,i=this.initialTimeScale.copy();i.domain([this.minDate,this.maxDate]);const a=i(this.minDate),c=-(t-i(this.maxDate));return{scaleExtent:[s,n],translateExtent:[[a||-1/0,0],[c||1/0,0]]}},initZoomBehavior(){const{scaleExtent:t,translateExtent:e}=this.calculateZoomExtents();this.zoomBehavior=x.zoom().scaleExtent(t).translateExtent(e).on("zoom",r=>{if(!(this.isZooming||this.disabled)){this.isZooming=!0;try{this.handleZoom(r)}catch(s){console.error(s)}finally{this.isZooming=!1}}}),this.selection=x.select(this.container),this.selection.call(this.zoomBehavior)},handleZoom(t){const e=t.transform.rescaleX(this.initialTimeScale.copy()),[r,s]=e.domain(),n=r<=this.minDate,i=s>=this.maxDate;if(n||i){const a=x.zoomIdentity.translate(this.lastTransform.x,this.lastTransform.y).scale(this.lastTransform.k);this.selection.call(this.zoomBehavior.transform,a),this.updateBoundaries(n,i);return}this.transformDiff={scale:t.transform.k/this.lastTransform.k,translation:t.transform.x-this.lastTransform.x},this.lastTransform={...t.transform},this.timeScale=e},toD3Date(t){return vt({timestamp:t,timezone:this.timezone})},toDateString(t){return os({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,s=this.toD3Date(e!=null?e:this.focusedStartDate),n=this.toD3Date(r!=null?r:this.focusedEndDate);if(!this.timeScale)return;const[i,a]=this.timeScale.domain();if(s.getTime()===i.getTime()&&n.getTime()===a.getTime())return;const c=this.initialTimeScale.domain().map(b=>b.getTime()),o=c[1]-c[0],l=n.getTime()-s.getTime();let d=o/l;const h=this.zoomBehavior.scaleExtent();d=Math.min(Math.max(d,h[0]),h[1]);const m=this.initialTimeScale.copy().domain([s,n]);this.selection.transition().duration(this.scalingDuration/2).call(this.zoomBehavior.scaleTo,d).on("end",()=>this.translateIntervalIntoView(s,n,d)),this.timeScale=m},translateIntervalIntoView(t,e,r){const s=this.timeScale(t),n=this.timeScale(e),i=(s+n)/2,c=this.getWidth()/2-i,o=x.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,x.zoomIdentity.translate(o.x+c,o.y).scale(r))},emitTimeScaleChange(){this.$emit("time-scale-change",this.timeScale)},emitFocusedDomainChange(t){if(!this.selection.node()||this.isTransitioning||!this.timeScale)return;const[r,s]=this.timeScale.domain(),n=this.toDateString(r),i=this.toDateString(s);this.$emit("visible-interval-change",{fromDate:n,toDate:i,trigger:t,transform:this.transformDiff})},panToTimestamp(t){const e=new Date(t),r=this.timeScale(e),s=x.zoomTransform(this.selection.node()),n=s.x-r+this.getWidth()/2;this.selection.transition().duration(this.translationDuration).call(this.zoomBehavior.transform,x.zoomIdentity.translate(n,0).scale(s.k)).on("end",()=>{this.emitFocusedDomainChange(wr.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}}}),p_="";var J6=function(){var e=this,r=e._self._c;return r("div",{ref:"container",staticClass:"e-zoom-behavior",class:{"e-pointer-events-none":e.disabled}},[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)},e4=[],t4=z(K6,J6,e4,!1,null,null,null,null);const r4=t4.exports,s4=E.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:we}},computed:{classes(){return{[we.xAxis]:!0,[we.xAxisDark]:this.dark}},axis(){return x.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,s=(e-t)/r;return isNaN(s)?1:s},currentTicksConfig(){const{interval:t,format:e}=this.ticksConfigs.find(s=>s.precision>=this.density&&s.interval);return{formatFn:s=>typeof e=="function"?e(s):x.utcFormat(e)(s),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;x.select(t).call(this.axis),this.translateTicksText()},translateTicksText(){const t=this.$refs.container;x.select(t).selectAll(".tick text").each(function(){x.select(this).attr("x",5).attr("y",0).style("text-anchor","start")})},updateTicksSize(){this.axis.tickSizeOuter(0).tickSizeInner(this.height),this.update()}}}),m_="";var n4=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})`}})},i4=[],a4=z(s4,n4,i4,!1,null,null,null,null);const Zn=a4.exports,ls=t=>{const e=x.utcFormat("%_d")(t),r=o4(parseInt(e));return`${e}${r}`},Xn=t=>new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()+1)).getUTCDate()===1?"":x.utcFormat("%-d")(t),$r=t=>["0"," 0","00"].includes(x.utcFormat("%H")(t))?"":`${x.utcFormat("%H")(t)}h`,qt=t=>{const e=x.utcFormat("%H:%M")(t);return e==="00:00"?"":e},Vn=t=>x.utcFormat("%M:%S")(t),_o=t=>`${x.utcFormat("%Hh%Mm")(t)}`,Qn=t=>{const e=qt(t),r=ls(t),s=x.utcFormat("%B")(t);return e||`${s} ${r}`},Kn=t=>{const e=qt(t),r=Number.parseInt(x.utcFormat("%H")(t)),s=ls(t),n=x.utcFormat("%B")(t);return e&&r%6===0?`${n} ${s} ${e}`:Qn(t)},o4=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"}},Er=t=>e=>{const r=x.utcFormat("%H")(e);return!(x.utcFormat("%M")(e)==="00"&&Number.parseInt(r)%t===0)},Jn=t=>e=>{const r=x.utcFormat("%M")(e);return Number.parseInt(r)%t!==0},bo=t=>e=>{const r=x.utcFormat("%M")(e),s=x.utcFormat("%S")(e);return Number.parseInt(r)%t!==0&&Number.parseInt(s)===0},te={_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:1.5,_1_week:2.5,_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},ei={[jt.Overview]:[{precision:te._30_seconds,interval:x.utcMinute.every(2),format:_o},{precision:te._1_minute,interval:x.utcMinute.every(5),format:_o},{precision:te._2_minutes,interval:x.utcMinute.every(10),format:Qn},{precision:te._5_minutes,interval:x.utcMinute.every(20),format:Kn},{precision:te._15_minutes,interval:x.utcHour,format:Kn},{precision:te._30_minutes,interval:x.utcHour.every(2),format:Kn},{precision:te._2_hours,interval:x.utcHour.every(6),format:t=>{const e=qt(t),r=ls(t),s=x.utcFormat("%B")(t);return e||`${s} ${r}`}},{precision:te._3_hours,interval:x.utcHour.every(12),format:Qn},{precision:te._6_hours,interval:x.utcHour.every(24),format:t=>{const e=ls(t),r=x.utcFormat("%b")(t),s=x.utcFormat("%Y")(t);return`${r} ${e} ${s}`}},{precision:te._2_days,interval:x.utcMonth,format:"%Y – %B"},{precision:te._1_week,interval:x.utcMonday,format:t=>{const e=x.utcFormat("%-d")(t),r=x.utcFormat("%b")(t);return`${x.utcFormat("%Y")(t)} – ${r} ${e}`}},{precision:te._2_year,interval:x.utcMonth.every(3),format:"%Y Q%q"},{precision:te._5_years,interval:x.utcYear.every(5),format:"%Y"},{precision:te._20_years,interval:x.utcYear.every(20),format:"%Y"},{precision:te._75_years,interval:x.utcYear.every(75),format:"%Y"},{precision:te._300_years,interval:x.utcYear.every(300),format:"%Y"},{precision:te.infinity,interval:x.utcMonth.every(12),format:"%Y"}],[jt.Detailed]:[{precision:te._10_seconds,interval:x.utcSecond.every(10),format:Vn},{precision:te._20_seconds,interval:(Wl=x.utcSecond.every(20))==null?void 0:Wl.filter(bo(2)),format:Vn},{precision:te._30_seconds,interval:(Yl=x.utcSecond.every(30))==null?void 0:Yl.filter(bo(2)),format:Vn},{precision:te._1_minute,interval:x.utcMinute.filter(Jn(5)),format:qt},{precision:te._2_minutes,interval:(jl=x.utcMinute.every(2))==null?void 0:jl.filter(Jn(10)),format:qt},{precision:te._5_minutes,interval:(Ul=x.utcMinute.every(5))==null?void 0:Ul.filter(Jn(20)),format:qt},{precision:te._15_minutes,interval:(Gl=x.utcMinute.every(15))==null?void 0:Gl.filter(Er(1)),format:qt},{precision:te._30_minutes,interval:(ql=x.utcMinute.every(30))==null?void 0:ql.filter(Er(2)),format:qt},{precision:te._1_hour,interval:x.utcHour.filter(Er(6)),format:$r},{precision:te._2_hours,interval:(Zl=x.utcHour.every(2))==null?void 0:Zl.filter(Er(6)),format:$r},{precision:te._3_hours,interval:(Xl=x.utcHour.every(3))==null?void 0:Xl.filter(Er(12)),format:$r},{precision:te._4_hours,interval:x.utcHour.every(4),format:$r},{precision:te._6_hours,interval:x.utcHour.every(6),format:$r},{precision:te._1_day,interval:x.utcDay,format:Xn},{precision:te._2_days,interval:x.utcDay.every(2),format:Xn},{precision:te._1_week,interval:x.utcMonday,format:Xn},{precision:te._1_month,interval:x.utcMonth,format:"%B"},{precision:te._1_month_abbr,interval:x.utcMonth,format:"%b"},{precision:te._1_month_letter,interval:x.utcMonth,format:t=>x.utcFormat("%B")(t).charAt(0)},{precision:te._3_months,interval:x.utcMonth.every(3),format:"Q%q"},{precision:te._2_year,interval:x.utcMonth.every(6),format:"Q%q"},{precision:te._5_years,interval:x.utcYear.every(2),format:"%Y"},{precision:te._20_years,interval:x.utcYear.every(4),format:"%Y"},{precision:te._75_years,interval:x.utcYear.every(25),format:"%Y"},{precision:te._300_years,interval:x.utcYear.every(100),format:"%Y"},{precision:te.infinity,interval:x.utcYear.every(500),format:""}],[jt.DetailedBackground]:[{precision:te._10_seconds,interval:x.utcSecond,format:""},{precision:te._20_seconds,interval:x.utcSecond.every(5),format:""},{precision:te._30_seconds,interval:x.utcSecond.every(10),format:""},{precision:te._1_minute,interval:x.utcSecond.every(20),format:""},{precision:te._2_minutes,interval:x.utcSecond.every(30),format:""},{precision:te._5_minutes,interval:x.utcMinute,format:""},{precision:te._15_minutes,interval:x.utcMinute.every(3),format:""},{precision:te._30_minutes,interval:x.utcMinute.every(6),format:""},{precision:te._1_hour,interval:x.utcMinute.every(15),format:""},{precision:te._2_hours,interval:x.utcMinute.every(30),format:""},{precision:te._3_hours,interval:x.utcHour,format:""},{precision:te._4_hours,interval:x.utcHour,format:""},{precision:te._6_hours,interval:x.utcMinute.every(120),format:""},{precision:te._1_day,interval:x.utcHour.every(8),format:""},{precision:te._2_days,interval:x.utcHour.every(12),format:""},{precision:te._1_week,interval:x.utcMonday,format:""},{precision:te._1_month,interval:x.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),s=Math.ceil(r/5);return e===s||e===2*s||e===3*s||e===4*s}),format:""},{precision:te._1_month_abbr,interval:x.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),s=Math.ceil(r/4);return e===s||e===2*s||e===3*s}),format:""},{precision:te._1_month_letter,interval:x.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),s=Math.ceil(r/2);return e===s}),format:""},{precision:te._3_months,interval:x.utcMonth,format:""},{precision:te._3_months,interval:x.utcMonth,format:""},{precision:te._2_year,interval:x.utcYear,format:""},{precision:te._5_years,interval:x.utcYear.every(2),format:""},{precision:te._20_years,interval:x.utcYear.every(5),format:""},{precision:te._75_years,interval:x.utcYear.every(20),format:""},{precision:te._300_years,interval:x.utcYear.every(100),format:""},{precision:te.infinity,interval:x.utcYear.every(500),format:""}]},l4=E.extend({name:"EXAxisOverview",components:{EXAxis:Zn},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:we,ticksConfigs:ei[jt.Overview]}}}),g_="";var c4=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}})},u4=[],d4=z(l4,c4,u4,!1,null,null,null,null);const h4=d4.exports,f4=E.extend({name:"EXAxisDetailed",components:{EXAxis:Zn},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:we,ticksConfigs:ei[jt.Detailed]}}}),v_="";var p4=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}})},m4=[],g4=z(f4,p4,m4,!1,null,null,null,null);const v4=g4.exports,y4=E.extend({name:"EXAxisBackground",components:{EXAxis:Zn},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:we,ticksConfigs:ei[jt.DetailedBackground]}}}),y_="";var _4=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}})},b4=[],C4=z(y4,_4,b4,!1,null,null,null,null);const w4=C4.exports,x4=E.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:Ot,TimelineChartType:ft,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 S4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("defs",{ref:"mainContainer",staticClass:"e-timeline"},[e._l(e.eventsGroups,function(s,n){return[r("linearGradient",{key:`${e.defs.loadingGradient}-${n}`,attrs:{id:`${e.defs.loadingGradient}-${n}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"}},[r("stop",{attrs:{offset:"0%","stop-color":s.color,"stop-opacity":"0"}}),r("stop",{attrs:{offset:"50%","stop-color":s.color,"stop-opacity":"0.6"}}),r("stop",{attrs:{offset:"100%","stop-color":s.color,"stop-opacity":"0"}})],1),s.chartType===e.TimelineChartType.LineGraph?[e._l(e.transparencyGradients,function({id:i,stop:a,opacity:c}){return r("linearGradient",{key:`${i}-${n}-${s.chartType}`,attrs:{id:`${i}-${n}-${s.chartType}`,x1:"0%",x2:"0%",y1:"0%",y2:"100%"}},[r("stop",{attrs:{offset:"0%","stop-color":s.color,"stop-opacity":c}}),r("stop",{attrs:{offset:`${a}%`,"stop-color":s.color,"stop-opacity":"0"}})],1)}),r("clipPath",{key:`${e.defs.clipPath}-${n}`,attrs:{id:`${e.defs.clipPath}-${n}`}},[r("rect",{attrs:{width:e.width,height:e.height}})])]:e._e(),s.chartType===e.TimelineChartType.BarChart?[e._l(e.transparencyGradients,function({id:i,opacity:a}){return r("linearGradient",{key:`${i}-${n}-${s.chartType}`,attrs:{id:`${i}-${n}-${s.chartType}`,width:"100%",height:"100%"}},[r("stop",{attrs:{"stop-color":s.color,"stop-opacity":a}})],1)}),r("clipPath",{key:`${e.defs.clipPath}-${n}`,attrs:{id:`${e.defs.clipPath}-${n}`}},[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:"2",height:"7",fill:e.forbiddenIntervalColor}})])],2)},k4=[],T4=z(x4,S4,k4,!1,null,null,null,null);const M4=T4.exports,$4=E.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:we,defs:Ot}},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 vt({timestamp:t,timezone:this.timezone})}}});var E4=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})`}})},D4=[],L4=z($4,E4,D4,!1,null,null,null,null);const P4=L4.exports,O4=E.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:we}},watch:{timestamp(){this.repositionCursor()},timeScale(){this.repositionCursor()},height(){this.repositionCursor()}},methods:{repositionCursor(){const t=this.$refs.cursor,e=x.select(t);if(!e)return;if(!this.timestamp){e.style("opacity",0);return}const r=this.tzStringToDate(this.timestamp),s=this.timeScale(r);isNaN(s)?e.style("opacity",0):e.attr("x1",s).attr("x2",s).style("opacity",this.opacity),e.attr("y2",this.height)},tzStringToDate(t){return vt({timestamp:t,timezone:this.timezone})}}});var I4=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`}})},z4=[],R4=z(O4,I4,z4,!1,null,null,null,null);const Co=R4.exports,B4=E.extend({name:"ETimelineCursor",components:{ECursor:Co},props:{timeScale:{type:Function,required:!0},selectedTimestamp:{type:String,required:!0},timezone:{type:String,default:"UTC"},height:{type:Number,required:!0}}});var F4=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}})},A4=[],H4=z(B4,F4,A4,!1,null,null,null,null);const N4=H4.exports,W4=E.extend({name:"ETimelineSelectedTimestampCursor",components:{ECursor:Co},props:{timeScale:{type:Function,required:!0},selectedTimestamp:{type:String,required:!0},timezone:{type:String,default:"UTC"},height:{type:Number,required:!0}}});var Y4=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}})},j4=[],U4=z(W4,Y4,j4,!1,null,null,null,null);const G4=U4.exports,q4=E.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=x.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=x.pointer(t,this.$refs.cursor)[0];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=x.pointer(t,this.$refs.cursor)[0];if(e<=this.minHoverZone)return;const r=this.timeScale.invert(e),s=this.dateToTzString(r);this.$emit("timestamp-clicked",s,t.target)},tzStringToDate(t){return vt({timestamp:t,timezone:this.timezone})},dateToTzString(t){return os({date:t,timezone:this.timezone})}}});var Z4=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)},X4=[],V4=z(q4,Z4,X4,!1,null,null,null,null);const Q4=V4.exports,K4=E.extend({name:"ETimelineGroupContainer",props:{groupId:{type:String,required:!0},label:{type:String,default:""},color:{type:String,default:""},backgroundColor:{type:String,default:""},preserveColors:{type:Boolean,default:!1},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:we,characterWidth:6.5,isHighlighted:!1}},computed:{computedClasses(){return{label:{[`${we.labelGroup} ${we.labelGroup}-${this.groupId}`]:!0},container:{[`${we.eventGroup} ${we.eventGroup}-${this.groupId}`]:!0,[`${we.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=x.color(this.color);return this.preserveColors||(t.opacity=this.dark?.2:.5),t.toString()},textFillColor(){var t,e;return(this.dark?(t=x.color(this.color))==null?void 0:t.brighter(1.5):(e=x.color(this.color))==null?void 0:e.darker(2)).toString()},loadingIndicatorFill(){return`url(#${Ot.loadingGradient}-${this.groupId})`}}}),__="";var J4=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(s){e.isHighlighted=!0},mouseleave:function(s){e.isHighlighted=!1},click:function(s){return s.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()])},eh=[],th=z(K4,J4,eh,!1,null,null,null,null);const ti=th.exports,rh=E.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:we}},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 sh=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("g",{class:e.classNames.eventRectContainer},[e._l(e.numberOfBackgroundDots,function(s){return r("rect",{key:`bg-${e.numberOfBackgroundDots-s}`,class:[e.classNames.eventRect,`${e.classNames.eventRect}--dot`,`bg-${s}`],attrs:{x:e.getBackgroundX(s),y:e.getBackgroundY(s),width:e.getBackgroundSize(s),height:e.getBackgroundSize(s),fill:e.event.color,stroke:e.rectStroke,opacity:e.getBackgroundOpacity(s),"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)},nh=[],ih=z(rh,sh,nh,!1,null,null,null,null);const ah=ih.exports,oh=E.extend({name:"ETimelineRectsChart",directives:{},components:{ETimelineGroupContainer:ti,ETimelineRectsChartGroupedDots:ah},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:we,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=x.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 s=new Date(e.startDate||e.timestamp).getTime(),n=new Date(r.startDate||r.timestamp).getTime();return s-n}).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 s=this.getEventRectX(e[0],this.timeScale),n=this.getEventRectX(e[e.length-1],this.timeScale),i=s+(n-s)/2,a=e.length>1,c=i;return a?r={...r,textContent:`${e.length}`,textX:i-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,s=(e-t)/r;return isNaN(s)?1:s},groupedEvents(){const t=this.preprocessedEvents,e=[];let r=[];return t.forEach((s,n)=>{if(n===0){r.push(s);return}const i=t[n-1],a=this.getEventRectX(s,this.timeScale),c=this.getEventRectX(i,this.timeScale),o=this.getEventRectWidth(i,this.timeScale,this.rectMinWidth);c+o+this.groupingThreshold>=a?r.push(s):(r.length>0&&e.push([...r]),r=[s])}),r.length>0&&e.push(r),e}},methods:{onMouseOver(t,e,r){t.target.classList.add(we.eventRectHovered);const n=this.convertEventDateToTzString(e);this.$emit("event-mouseover",t,n,r)},onMouseLeave(t){const e=t.target;e.classList.remove(we.eventRectHovered),Array.from(e.children).forEach(r=>{r.classList.remove(we.eventRectHovered)}),this.$emit("event-mouseout")},onGroupedEventsMouseOver(t,e,r){t.target.classList.add(we.eventRectHovered);const n=e.map(this.convertEventDateToTzString);this.$emit("grouped-events-mouseover",t,n,r)},getEventText(t,e,r){if(!t.text)return"";const s=`${t.text}`;if(s.length===1)return s;const i=(this.getEventRectWidth(t,this.timeScale,this.rectMinWidth)-e)/r;return i<Math.min(s==null?void 0:s.length,4)?"":(s==null?void 0:s.length)<=i?s:`${s.slice(0,i-3)}...`},getEventRectWidth(t,e,r){if(!t)return 0;if(this.dots)return this.dotsSize;if(t.startDate&&t.endDate){const s=new Date(t.startDate),n=new Date(t.endDate),i=e(n)-e(s);return Math.max(i,r)}else{const s=1/(this.timeScaleDensity*3600);return Math.max(s,r)}},getEventRectX(t,e){const r=e(t.startDate||t.timestamp);return isNaN(r)?0:r},tzStringToDate(t){return vt({timestamp:t,timezone:this.timezone})},dateToTzString(t){return os({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 s,n;return(r?(s=x.color(t))==null?void 0:s.brighter(1.5+e):(n=x.color(t))==null?void 0:n.darker(2+e)).toString()}}}),b_="";var lh=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,"preserve-colors":e.eventsGroup.preserveColors,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(s){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(s,n){return r("g",{key:n,class:e.classNames.eventRectContainer},[!s.groupedEvents||!e.dots||s.groupedEvents.length===1?[r("rect",{class:[e.classNames.eventRect,e.dots?`${e.classNames.eventRect}--dot`:""],attrs:{x:s.x-(e.dots?s.width/2:0),y:s.y,"data-timestamp":s.timestamp,width:s.width,height:s.height,fill:s.color,stroke:e.rectStroke,cursor:"pointer","stroke-width":e.rectStrokeWidth,ry:e.rectRx,rx:e.rectRy},on:{mouseover:function(i){return e.onMouseOver(i,s,e.groupId)},mouseleave:e.onMouseLeave}})]:e.dots&&s.groupedEvents.length>1?r("ETimelineRectsChartGroupedDots",{key:n,attrs:{event:s,"rect-stroke":e.rectStroke,"rect-stroke-width":e.rectStrokeWidth,"rect-rx":e.rectRx,"rect-ry":e.rectRy,"group-id":e.groupId},nativeOn:{mouseover:function(i){return e.onGroupedEventsMouseOver(i,s.groupedEvents,e.groupId)},mouseleave:function(i){return e.onMouseLeave.apply(null,arguments)}}}):e._e(),s.textContent?r("text",{class:e.classNames.eventRectText,attrs:{fill:s.textColor,x:s.textX,y:s.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(s.textContent)+" ")]):e._e()],2)})],2)},ch=[],uh=z(oh,lh,ch,!1,null,null,null,null);const dh=uh.exports,hh=E.extend({name:"ETimelineLinesChart",directives:{},components:{ETimelineGroupContainer:ti},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:we,defs:Ot,characterWidth:7.5}},computed:{lineGradient(){return`${Ot.transparencyGradientLight}-${this.groupId}-${ft.LineGraph}`},lineDots(){const[t,e]=this.timeScale.domain();return this.eventsGroup.events.filter((s,n)=>{var o,l;const i=n===0?1:n,a=new Date((o=this.eventsGroup.events[i+1])==null?void 0:o.timestamp),c=new Date((l=this.eventsGroup.events[i-1])==null?void 0:l.timestamp);return a>=t&&a<=e||c>=t&&c<=e})},hoverZones(){return this.lineDots.map(t=>{const e=this.timeScale(this.tzStringToDate(t.timestamp)),r=this.yScale(t.count),s=this.timeScale.invert(e-2),n=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)>=s&&this.tzStringToDate(this.hoveredTimestamp)<n}})},yScale(){let t=x.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=x.area().x(r=>r.x).y0(this.height).y1(r=>r.y).curve(x.curveMonotoneX),e=x.line().x(r=>r.x).y(r=>r.y).curve(x.curveMonotoneX);x.select(`.${we.areaGraphPath}-${this.groupId}`).datum(this.hoverZones).attr("d",r=>t(r)),x.select(`.${we.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 vt({timestamp:t,timezone:this.timezone})}}}),C_="";var fh=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(s){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(s,n){return r("g",{key:n},[r("circle",{ref:`${e.classNames.lineGraphDot}-${e.groupId}-${n}`,refInFor:!0,class:[e.classNames.lineGraphDot,`${e.classNames.lineGraphDot}-${e.groupId}`,`${e.classNames.lineGraphDot}-${e.groupId}-${n}`,{[`${e.classNames.lineGraphDot}--active`]:s.isHovering}],attrs:{cx:s.x,cy:s.y,r:"1.5",fill:s.color,"stroke-width":0}}),r("rect",{class:`${e.classNames.lineGraphHoverZone} ${e.classNames.lineGraphHoverZone}-${e.groupId}`,attrs:{x:s.x-2,y:0,width:4,height:e.height,fill:"transparent"},on:{mouseover:function(i){return e.$emit("event-mouseover",i,s,e.groupId)},mouseleave:function(i){return e.$emit("event-mouseout")}}})])})],2)])},ph=[],mh=z(hh,fh,ph,!1,null,null,null,null);const gh=mh.exports,vh=E.extend({name:"ETimelineBarsChart",components:{ETimelineGroupContainer:ti},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:we,defs:Ot,characterWidth:7.5}},computed:{bars(){const[t,e]=this.timeScale.domain();return this.eventsGroup.events.filter(r=>{const s=new Date(r.startDate);return new Date(r.endDate)>=t&&s<=e})},hoverZones(){return this.bars.map(t=>{const e=this.getEventRectWidth(t),r=this.yScale.range()[0]-this.yScale(t.count),s=this.getEventRectX(t,this.timeScale),n=this.previousCountsByTimestamp[t.startDate]||0,i=this.yScale(n+t.count);return{x:s,y:i,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=x.scaleLinear().range([this.height,0]);return t=t.domain([0,this.maxVisibleCount||1]),t}},methods:{getBarOpacity(t){let e;return this.hoveredTimestamp||(e=Ot.transparencyGradient),e=t.isHovering?Ot.transparencyGradientHover:Ot.transparencyGradientLight,`${e}-${this.groupId}-${ft.BarChart}`},getEventRectX(t,e){return isNaN(e(this.tzStringToDate(t.startDate||t.timestamp)))?0:e(this.tzStringToDate(t.startDate||t.timestamp))},tzStringToDate(t){return vt({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),s=this.timeScale(r)-this.timeScale(e);return Math.max(s,this.rectMinWidth)}else{const e=1/(this.currentTimeScaleDensity*3600);return Math.max(e,this.rectMinWidth)}}}}),w_="";var yh=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(s){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(s,n){return r("g",{key:n,class:`${e.classNames.eventBarContainer} ${e.classNames.eventBarContainer}-${e.groupId}`,on:{mouseleave:function(i){return e.$emit("event-mouseout")},mouseover:function(i){return e.$emit("event-mouseover",i,s,e.groupId)},click:function(i){return e.onEventClick()}}},[r("rect",{class:[s.className?s.className:"",e.classNames.eventBarHoverZone],attrs:{x:s.x,y:-e.yOffset,width:s.width,height:e.yScale.range()[0]+e.yOffset,fill:s.color,"fill-opacity":0}}),r("rect",{class:[s.className?s.className:"",e.classNames.eventBar],attrs:{x:s.x,y:s.y,width:s.width,height:s.height,"stroke-width":5,cursor:"pointer",stroke:"#0000",fill:`url(#${e.getBarOpacity(s)})`}})])}),0)])},_h=[],bh=z(vh,yh,_h,!1,null,null,null,null);const Ch=bh.exports;//! moment.js
233
233
  //! version : 2.29.4
234
234
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
235
235
  //! license : MIT
236
236
  //! momentjs.com
237
- var wo;function J(){return wo.apply(null,arguments)}function wh(t){wo=t}function wt(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function Jt(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function xe(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ti(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;for(e in t)if(xe(t,e))return!1;return!0}function nt(t){return t===void 0}function It(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function Dr(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function xo(t,e){var r=[],s,n=t.length;for(s=0;s<n;++s)r.push(e(t[s],s));return r}function Zt(t,e){for(var r in e)xe(e,r)&&(t[r]=e[r]);return xe(e,"toString")&&(t.toString=e.toString),xe(e,"valueOf")&&(t.valueOf=e.valueOf),t}function $t(t,e,r,s){return Vo(t,e,r,s,!0).utc()}function xh(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function ge(t){return t._pf==null&&(t._pf=xh()),t._pf}var ri;Array.prototype.some?ri=Array.prototype.some:ri=function(t){var e=Object(this),r=e.length>>>0,s;for(s=0;s<r;s++)if(s in e&&t.call(this,e[s],s,e))return!0;return!1};function si(t){if(t._isValid==null){var e=ge(t),r=ri.call(e.parsedDateParts,function(n){return n!=null}),s=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&r);if(t._strict&&(s=s&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=s;else return s}return t._isValid}function cs(t){var e=$t(NaN);return t!=null?Zt(ge(e),t):ge(e).userInvalidated=!0,e}var So=J.momentProperties=[],ni=!1;function ii(t,e){var r,s,n,i=So.length;if(nt(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),nt(e._i)||(t._i=e._i),nt(e._f)||(t._f=e._f),nt(e._l)||(t._l=e._l),nt(e._strict)||(t._strict=e._strict),nt(e._tzm)||(t._tzm=e._tzm),nt(e._isUTC)||(t._isUTC=e._isUTC),nt(e._offset)||(t._offset=e._offset),nt(e._pf)||(t._pf=ge(e)),nt(e._locale)||(t._locale=e._locale),i>0)for(r=0;r<i;r++)s=So[r],n=e[s],nt(n)||(t[s]=n);return t}function Lr(t){ii(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ni===!1&&(ni=!0,J.updateOffset(this),ni=!1)}function xt(t){return t instanceof Lr||t!=null&&t._isAMomentObject!=null}function ko(t){J.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+t)}function yt(t,e){var r=!0;return Zt(function(){if(J.deprecationHandler!=null&&J.deprecationHandler(null,t),r){var s=[],n,i,a,c=arguments.length;for(i=0;i<c;i++){if(n="",typeof arguments[i]=="object"){n+=`
237
+ var wo;function J(){return wo.apply(null,arguments)}function wh(t){wo=t}function wt(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function Jt(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function xe(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ri(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;for(e in t)if(xe(t,e))return!1;return!0}function nt(t){return t===void 0}function It(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function Dr(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function xo(t,e){var r=[],s,n=t.length;for(s=0;s<n;++s)r.push(e(t[s],s));return r}function Zt(t,e){for(var r in e)xe(e,r)&&(t[r]=e[r]);return xe(e,"toString")&&(t.toString=e.toString),xe(e,"valueOf")&&(t.valueOf=e.valueOf),t}function $t(t,e,r,s){return Vo(t,e,r,s,!0).utc()}function xh(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function ge(t){return t._pf==null&&(t._pf=xh()),t._pf}var si;Array.prototype.some?si=Array.prototype.some:si=function(t){var e=Object(this),r=e.length>>>0,s;for(s=0;s<r;s++)if(s in e&&t.call(this,e[s],s,e))return!0;return!1};function ni(t){if(t._isValid==null){var e=ge(t),r=si.call(e.parsedDateParts,function(n){return n!=null}),s=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&r);if(t._strict&&(s=s&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=s;else return s}return t._isValid}function cs(t){var e=$t(NaN);return t!=null?Zt(ge(e),t):ge(e).userInvalidated=!0,e}var So=J.momentProperties=[],ii=!1;function ai(t,e){var r,s,n,i=So.length;if(nt(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),nt(e._i)||(t._i=e._i),nt(e._f)||(t._f=e._f),nt(e._l)||(t._l=e._l),nt(e._strict)||(t._strict=e._strict),nt(e._tzm)||(t._tzm=e._tzm),nt(e._isUTC)||(t._isUTC=e._isUTC),nt(e._offset)||(t._offset=e._offset),nt(e._pf)||(t._pf=ge(e)),nt(e._locale)||(t._locale=e._locale),i>0)for(r=0;r<i;r++)s=So[r],n=e[s],nt(n)||(t[s]=n);return t}function Lr(t){ai(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ii===!1&&(ii=!0,J.updateOffset(this),ii=!1)}function xt(t){return t instanceof Lr||t!=null&&t._isAMomentObject!=null}function ko(t){J.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+t)}function yt(t,e){var r=!0;return Zt(function(){if(J.deprecationHandler!=null&&J.deprecationHandler(null,t),r){var s=[],n,i,a,c=arguments.length;for(i=0;i<c;i++){if(n="",typeof arguments[i]=="object"){n+=`
238
238
  [`+i+"] ";for(a in arguments[0])xe(arguments[0],a)&&(n+=a+": "+arguments[0][a]+", ");n=n.slice(0,-2)}else n=arguments[i];s.push(n)}ko(t+`
239
239
  Arguments: `+Array.prototype.slice.call(s).join("")+`
240
- `+new Error().stack),r=!1}return e.apply(this,arguments)},e)}var To={};function Mo(t,e){J.deprecationHandler!=null&&J.deprecationHandler(t,e),To[t]||(ko(e),To[t]=!0)}J.suppressDeprecationWarnings=!1,J.deprecationHandler=null;function Et(t){return typeof Function!="undefined"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function Sh(t){var e,r;for(r in t)xe(t,r)&&(e=t[r],Et(e)?this[r]=e:this["_"+r]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function ai(t,e){var r=Zt({},t),s;for(s in e)xe(e,s)&&(Jt(t[s])&&Jt(e[s])?(r[s]={},Zt(r[s],t[s]),Zt(r[s],e[s])):e[s]!=null?r[s]=e[s]:delete r[s]);for(s in t)xe(t,s)&&!xe(e,s)&&Jt(t[s])&&(r[s]=Zt({},r[s]));return r}function oi(t){t!=null&&this.set(t)}var li;Object.keys?li=Object.keys:li=function(t){var e,r=[];for(e in t)xe(t,e)&&r.push(e);return r};var kh={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Th(t,e,r){var s=this._calendar[t]||this._calendar.sameElse;return Et(s)?s.call(e,r):s}function Dt(t,e,r){var s=""+Math.abs(t),n=e-s.length,i=t>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+s}var ci=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,us=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ui={},ur={};function oe(t,e,r,s){var n=s;typeof s=="string"&&(n=function(){return this[s]()}),t&&(ur[t]=n),e&&(ur[e[0]]=function(){return Dt(n.apply(this,arguments),e[1],e[2])}),r&&(ur[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),t)})}function Mh(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function $h(t){var e=t.match(ci),r,s;for(r=0,s=e.length;r<s;r++)ur[e[r]]?e[r]=ur[e[r]]:e[r]=Mh(e[r]);return function(n){var i="",a;for(a=0;a<s;a++)i+=Et(e[a])?e[a].call(n,t):e[a];return i}}function ds(t,e){return t.isValid()?(e=$o(e,t.localeData()),ui[e]=ui[e]||$h(e),ui[e](t)):t.localeData().invalidDate()}function $o(t,e){var r=5;function s(n){return e.longDateFormat(n)||n}for(us.lastIndex=0;r>=0&&us.test(t);)t=t.replace(us,s),us.lastIndex=0,r-=1;return t}var Eh={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Dh(t){var e=this._longDateFormat[t],r=this._longDateFormat[t.toUpperCase()];return e||!r?e:(this._longDateFormat[t]=r.match(ci).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[t])}var Lh="Invalid date";function Ph(){return this._invalidDate}var Oh="%d",Ih=/\d{1,2}/;function zh(t){return this._ordinal.replace("%d",t)}var Rh={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Bh(t,e,r,s){var n=this._relativeTime[r];return Et(n)?n(t,e,r,s):n.replace(/%d/i,t)}function Fh(t,e){var r=this._relativeTime[t>0?"future":"past"];return Et(r)?r(e):r.replace(/%s/i,e)}var Pr={};function Ve(t,e){var r=t.toLowerCase();Pr[r]=Pr[r+"s"]=Pr[e]=t}function _t(t){return typeof t=="string"?Pr[t]||Pr[t.toLowerCase()]:void 0}function di(t){var e={},r,s;for(s in t)xe(t,s)&&(r=_t(s),r&&(e[r]=t[s]));return e}var Eo={};function Qe(t,e){Eo[t]=e}function Ah(t){var e=[],r;for(r in t)xe(t,r)&&e.push({unit:r,priority:Eo[r]});return e.sort(function(s,n){return s.priority-n.priority}),e}function hs(t){return t%4===0&&t%100!==0||t%400===0}function bt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function ve(t){var e=+t,r=0;return e!==0&&isFinite(e)&&(r=bt(e)),r}function dr(t,e){return function(r){return r!=null?(Do(this,t,r),J.updateOffset(this,e),this):fs(this,t)}}function fs(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Do(t,e,r){t.isValid()&&!isNaN(r)&&(e==="FullYear"&&hs(t.year())&&t.month()===1&&t.date()===29?(r=ve(r),t._d["set"+(t._isUTC?"UTC":"")+e](r,t.month(),bs(r,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](r))}function Hh(t){return t=_t(t),Et(this[t])?this[t]():this}function Nh(t,e){if(typeof t=="object"){t=di(t);var r=Ah(t),s,n=r.length;for(s=0;s<n;s++)this[r[s].unit](t[r[s].unit])}else if(t=_t(t),Et(this[t]))return this[t](e);return this}var Lo=/\d/,ct=/\d\d/,Po=/\d{3}/,hi=/\d{4}/,ps=/[+-]?\d{6}/,Le=/\d\d?/,Oo=/\d\d\d\d?/,Io=/\d\d\d\d\d\d?/,ms=/\d{1,3}/,fi=/\d{1,4}/,gs=/[+-]?\d{1,6}/,hr=/\d+/,vs=/[+-]?\d+/,Wh=/Z|[+-]\d\d:?\d\d/gi,ys=/Z|[+-]\d\d(?::?\d\d)?/gi,Yh=/[+-]?\d+(\.\d{1,3})?/,Or=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,_s;_s={};function re(t,e,r){_s[t]=Et(e)?e:function(s,n){return s&&r?r:e}}function jh(t,e){return xe(_s,t)?_s[t](e._strict,e._locale):new RegExp(Uh(t))}function Uh(t){return ut(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,r,s,n,i){return r||s||n||i}))}function ut(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pi={};function Te(t,e){var r,s=e,n;for(typeof t=="string"&&(t=[t]),It(e)&&(s=function(i,a){a[e]=ve(i)}),n=t.length,r=0;r<n;r++)pi[t[r]]=s}function Ir(t,e){Te(t,function(r,s,n,i){n._w=n._w||{},e(r,n._w,n,i)})}function Gh(t,e,r){e!=null&&xe(pi,t)&&pi[t](e,r._a,r,t)}var Ke=0,zt=1,Lt=2,Ne=3,St=4,Rt=5,er=6,qh=7,Zh=8;function Xh(t,e){return(t%e+e)%e}var He;Array.prototype.indexOf?He=Array.prototype.indexOf:He=function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};function bs(t,e){if(isNaN(t)||isNaN(e))return NaN;var r=Xh(e,12);return t+=(e-r)/12,r===1?hs(t)?29:28:31-r%7%2}oe("M",["MM",2],"Mo",function(){return this.month()+1}),oe("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),oe("MMMM",0,0,function(t){return this.localeData().months(this,t)}),Ve("month","M"),Qe("month",8),re("M",Le),re("MM",Le,ct),re("MMM",function(t,e){return e.monthsShortRegex(t)}),re("MMMM",function(t,e){return e.monthsRegex(t)}),Te(["M","MM"],function(t,e){e[zt]=ve(t)-1}),Te(["MMM","MMMM"],function(t,e,r,s){var n=r._locale.monthsParse(t,s,r._strict);n!=null?e[zt]=n:ge(r).invalidMonth=t});var Vh="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),zo="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ro=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Qh=Or,Kh=Or;function Jh(t,e){return t?wt(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ro).test(e)?"format":"standalone"][t.month()]:wt(this._months)?this._months:this._months.standalone}function e8(t,e){return t?wt(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ro.test(e)?"format":"standalone"][t.month()]:wt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function t8(t,e,r){var s,n,i,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)i=$t([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(i,"").toLocaleLowerCase();return r?e==="MMM"?(n=He.call(this._shortMonthsParse,a),n!==-1?n:null):(n=He.call(this._longMonthsParse,a),n!==-1?n:null):e==="MMM"?(n=He.call(this._shortMonthsParse,a),n!==-1?n:(n=He.call(this._longMonthsParse,a),n!==-1?n:null)):(n=He.call(this._longMonthsParse,a),n!==-1?n:(n=He.call(this._shortMonthsParse,a),n!==-1?n:null))}function r8(t,e,r){var s,n,i;if(this._monthsParseExact)return t8.call(this,t,e,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(n=$t([2e3,s]),r&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!r&&!this._monthsParse[s]&&(i="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[s]=new RegExp(i.replace(".",""),"i")),r&&e==="MMMM"&&this._longMonthsParse[s].test(t))return s;if(r&&e==="MMM"&&this._shortMonthsParse[s].test(t))return s;if(!r&&this._monthsParse[s].test(t))return s}}function Bo(t,e){var r;if(!t.isValid())return t;if(typeof e=="string"){if(/^\d+$/.test(e))e=ve(e);else if(e=t.localeData().monthsParse(e),!It(e))return t}return r=Math.min(t.date(),bs(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,r),t}function Fo(t){return t!=null?(Bo(this,t),J.updateOffset(this,!0),this):fs(this,"Month")}function s8(){return bs(this.year(),this.month())}function n8(t){return this._monthsParseExact?(xe(this,"_monthsRegex")||Ao.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(xe(this,"_monthsShortRegex")||(this._monthsShortRegex=Qh),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function i8(t){return this._monthsParseExact?(xe(this,"_monthsRegex")||Ao.call(this),t?this._monthsStrictRegex:this._monthsRegex):(xe(this,"_monthsRegex")||(this._monthsRegex=Kh),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function Ao(){function t(a,c){return c.length-a.length}var e=[],r=[],s=[],n,i;for(n=0;n<12;n++)i=$t([2e3,n]),e.push(this.monthsShort(i,"")),r.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(e.sort(t),r.sort(t),s.sort(t),n=0;n<12;n++)e[n]=ut(e[n]),r[n]=ut(r[n]);for(n=0;n<24;n++)s[n]=ut(s[n]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}oe("Y",0,0,function(){var t=this.year();return t<=9999?Dt(t,4):"+"+t}),oe(0,["YY",2],0,function(){return this.year()%100}),oe(0,["YYYY",4],0,"year"),oe(0,["YYYYY",5],0,"year"),oe(0,["YYYYYY",6,!0],0,"year"),Ve("year","y"),Qe("year",1),re("Y",vs),re("YY",Le,ct),re("YYYY",fi,hi),re("YYYYY",gs,ps),re("YYYYYY",gs,ps),Te(["YYYYY","YYYYYY"],Ke),Te("YYYY",function(t,e){e[Ke]=t.length===2?J.parseTwoDigitYear(t):ve(t)}),Te("YY",function(t,e){e[Ke]=J.parseTwoDigitYear(t)}),Te("Y",function(t,e){e[Ke]=parseInt(t,10)});function zr(t){return hs(t)?366:365}J.parseTwoDigitYear=function(t){return ve(t)+(ve(t)>68?1900:2e3)};var Ho=dr("FullYear",!0);function a8(){return hs(this.year())}function o8(t,e,r,s,n,i,a){var c;return t<100&&t>=0?(c=new Date(t+400,e,r,s,n,i,a),isFinite(c.getFullYear())&&c.setFullYear(t)):c=new Date(t,e,r,s,n,i,a),c}function Rr(t){var e,r;return t<100&&t>=0?(r=Array.prototype.slice.call(arguments),r[0]=t+400,e=new Date(Date.UTC.apply(null,r)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Cs(t,e,r){var s=7+e-r,n=(7+Rr(t,0,s).getUTCDay()-e)%7;return-n+s-1}function No(t,e,r,s,n){var i=(7+r-s)%7,a=Cs(t,s,n),c=1+7*(e-1)+i+a,o,l;return c<=0?(o=t-1,l=zr(o)+c):c>zr(t)?(o=t+1,l=c-zr(t)):(o=t,l=c),{year:o,dayOfYear:l}}function Br(t,e,r){var s=Cs(t.year(),e,r),n=Math.floor((t.dayOfYear()-s-1)/7)+1,i,a;return n<1?(a=t.year()-1,i=n+Bt(a,e,r)):n>Bt(t.year(),e,r)?(i=n-Bt(t.year(),e,r),a=t.year()+1):(a=t.year(),i=n),{week:i,year:a}}function Bt(t,e,r){var s=Cs(t,e,r),n=Cs(t+1,e,r);return(zr(t)-s+n)/7}oe("w",["ww",2],"wo","week"),oe("W",["WW",2],"Wo","isoWeek"),Ve("week","w"),Ve("isoWeek","W"),Qe("week",5),Qe("isoWeek",5),re("w",Le),re("ww",Le,ct),re("W",Le),re("WW",Le,ct),Ir(["w","ww","W","WW"],function(t,e,r,s){e[s.substr(0,1)]=ve(t)});function l8(t){return Br(t,this._week.dow,this._week.doy).week}var c8={dow:0,doy:6};function u8(){return this._week.dow}function d8(){return this._week.doy}function h8(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function f8(t){var e=Br(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}oe("d",0,"do","day"),oe("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),oe("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),oe("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),oe("e",0,0,"weekday"),oe("E",0,0,"isoWeekday"),Ve("day","d"),Ve("weekday","e"),Ve("isoWeekday","E"),Qe("day",11),Qe("weekday",11),Qe("isoWeekday",11),re("d",Le),re("e",Le),re("E",Le),re("dd",function(t,e){return e.weekdaysMinRegex(t)}),re("ddd",function(t,e){return e.weekdaysShortRegex(t)}),re("dddd",function(t,e){return e.weekdaysRegex(t)}),Ir(["dd","ddd","dddd"],function(t,e,r,s){var n=r._locale.weekdaysParse(t,s,r._strict);n!=null?e.d=n:ge(r).invalidWeekday=t}),Ir(["d","e","E"],function(t,e,r,s){e[s]=ve(t)});function p8(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function m8(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function mi(t,e){return t.slice(e,7).concat(t.slice(0,e))}var g8="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Wo="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),v8="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),y8=Or,_8=Or,b8=Or;function C8(t,e){var r=wt(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?mi(r,this._week.dow):t?r[t.day()]:r}function w8(t){return t===!0?mi(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function x8(t){return t===!0?mi(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function S8(t,e,r){var s,n,i,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)i=$t([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(i,"").toLocaleLowerCase();return r?e==="dddd"?(n=He.call(this._weekdaysParse,a),n!==-1?n:null):e==="ddd"?(n=He.call(this._shortWeekdaysParse,a),n!==-1?n:null):(n=He.call(this._minWeekdaysParse,a),n!==-1?n:null):e==="dddd"?(n=He.call(this._weekdaysParse,a),n!==-1||(n=He.call(this._shortWeekdaysParse,a),n!==-1)?n:(n=He.call(this._minWeekdaysParse,a),n!==-1?n:null)):e==="ddd"?(n=He.call(this._shortWeekdaysParse,a),n!==-1||(n=He.call(this._weekdaysParse,a),n!==-1)?n:(n=He.call(this._minWeekdaysParse,a),n!==-1?n:null)):(n=He.call(this._minWeekdaysParse,a),n!==-1||(n=He.call(this._weekdaysParse,a),n!==-1)?n:(n=He.call(this._shortWeekdaysParse,a),n!==-1?n:null))}function k8(t,e,r){var s,n,i;if(this._weekdaysParseExact)return S8.call(this,t,e,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(n=$t([2e3,1]).day(s),r&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[s]=new RegExp(i.replace(".",""),"i")),r&&e==="dddd"&&this._fullWeekdaysParse[s].test(t))return s;if(r&&e==="ddd"&&this._shortWeekdaysParse[s].test(t))return s;if(r&&e==="dd"&&this._minWeekdaysParse[s].test(t))return s;if(!r&&this._weekdaysParse[s].test(t))return s}}function T8(t){if(!this.isValid())return t!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return t!=null?(t=p8(t,this.localeData()),this.add(t-e,"d")):e}function M8(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function $8(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=m8(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function E8(t){return this._weekdaysParseExact?(xe(this,"_weekdaysRegex")||gi.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(xe(this,"_weekdaysRegex")||(this._weekdaysRegex=y8),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function D8(t){return this._weekdaysParseExact?(xe(this,"_weekdaysRegex")||gi.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(xe(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=_8),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function L8(t){return this._weekdaysParseExact?(xe(this,"_weekdaysRegex")||gi.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(xe(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=b8),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function gi(){function t(d,h){return h.length-d.length}var e=[],r=[],s=[],n=[],i,a,c,o,l;for(i=0;i<7;i++)a=$t([2e3,1]).day(i),c=ut(this.weekdaysMin(a,"")),o=ut(this.weekdaysShort(a,"")),l=ut(this.weekdays(a,"")),e.push(c),r.push(o),s.push(l),n.push(c),n.push(o),n.push(l);e.sort(t),r.sort(t),s.sort(t),n.sort(t),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function vi(){return this.hours()%12||12}function P8(){return this.hours()||24}oe("H",["HH",2],0,"hour"),oe("h",["hh",2],0,vi),oe("k",["kk",2],0,P8),oe("hmm",0,0,function(){return""+vi.apply(this)+Dt(this.minutes(),2)}),oe("hmmss",0,0,function(){return""+vi.apply(this)+Dt(this.minutes(),2)+Dt(this.seconds(),2)}),oe("Hmm",0,0,function(){return""+this.hours()+Dt(this.minutes(),2)}),oe("Hmmss",0,0,function(){return""+this.hours()+Dt(this.minutes(),2)+Dt(this.seconds(),2)});function Yo(t,e){oe(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}Yo("a",!0),Yo("A",!1),Ve("hour","h"),Qe("hour",13);function jo(t,e){return e._meridiemParse}re("a",jo),re("A",jo),re("H",Le),re("h",Le),re("k",Le),re("HH",Le,ct),re("hh",Le,ct),re("kk",Le,ct),re("hmm",Oo),re("hmmss",Io),re("Hmm",Oo),re("Hmmss",Io),Te(["H","HH"],Ne),Te(["k","kk"],function(t,e,r){var s=ve(t);e[Ne]=s===24?0:s}),Te(["a","A"],function(t,e,r){r._isPm=r._locale.isPM(t),r._meridiem=t}),Te(["h","hh"],function(t,e,r){e[Ne]=ve(t),ge(r).bigHour=!0}),Te("hmm",function(t,e,r){var s=t.length-2;e[Ne]=ve(t.substr(0,s)),e[St]=ve(t.substr(s)),ge(r).bigHour=!0}),Te("hmmss",function(t,e,r){var s=t.length-4,n=t.length-2;e[Ne]=ve(t.substr(0,s)),e[St]=ve(t.substr(s,2)),e[Rt]=ve(t.substr(n)),ge(r).bigHour=!0}),Te("Hmm",function(t,e,r){var s=t.length-2;e[Ne]=ve(t.substr(0,s)),e[St]=ve(t.substr(s))}),Te("Hmmss",function(t,e,r){var s=t.length-4,n=t.length-2;e[Ne]=ve(t.substr(0,s)),e[St]=ve(t.substr(s,2)),e[Rt]=ve(t.substr(n))});function O8(t){return(t+"").toLowerCase().charAt(0)==="p"}var I8=/[ap]\.?m?\.?/i,z8=dr("Hours",!0);function R8(t,e,r){return t>11?r?"pm":"PM":r?"am":"AM"}var Uo={calendar:kh,longDateFormat:Eh,invalidDate:Lh,ordinal:Oh,dayOfMonthOrdinalParse:Ih,relativeTime:Rh,months:Vh,monthsShort:zo,week:c8,weekdays:g8,weekdaysMin:v8,weekdaysShort:Wo,meridiemParse:I8},Ie={},Fr={},Ar;function B8(t,e){var r,s=Math.min(t.length,e.length);for(r=0;r<s;r+=1)if(t[r]!==e[r])return r;return s}function Go(t){return t&&t.toLowerCase().replace("_","-")}function F8(t){for(var e=0,r,s,n,i;e<t.length;){for(i=Go(t[e]).split("-"),r=i.length,s=Go(t[e+1]),s=s?s.split("-"):null;r>0;){if(n=ws(i.slice(0,r).join("-")),n)return n;if(s&&s.length>=r&&B8(i,s)>=r-1)break;r--}e++}return Ar}function A8(t){return t.match("^[^/\\\\]*$")!=null}function ws(t){var e=null,r;if(Ie[t]===void 0&&typeof module!="undefined"&&module&&module.exports&&A8(t))try{e=Ar._abbr,r=require,r("./locale/"+t),Xt(e)}catch{Ie[t]=null}return Ie[t]}function Xt(t,e){var r;return t&&(nt(e)?r=Ft(t):r=yi(t,e),r?Ar=r:typeof console!="undefined"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Ar._abbr}function yi(t,e){if(e!==null){var r,s=Uo;if(e.abbr=t,Ie[t]!=null)Mo("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=Ie[t]._config;else if(e.parentLocale!=null)if(Ie[e.parentLocale]!=null)s=Ie[e.parentLocale]._config;else if(r=ws(e.parentLocale),r!=null)s=r._config;else return Fr[e.parentLocale]||(Fr[e.parentLocale]=[]),Fr[e.parentLocale].push({name:t,config:e}),null;return Ie[t]=new oi(ai(s,e)),Fr[t]&&Fr[t].forEach(function(n){yi(n.name,n.config)}),Xt(t),Ie[t]}else return delete Ie[t],null}function H8(t,e){if(e!=null){var r,s,n=Uo;Ie[t]!=null&&Ie[t].parentLocale!=null?Ie[t].set(ai(Ie[t]._config,e)):(s=ws(t),s!=null&&(n=s._config),e=ai(n,e),s==null&&(e.abbr=t),r=new oi(e),r.parentLocale=Ie[t],Ie[t]=r),Xt(t)}else Ie[t]!=null&&(Ie[t].parentLocale!=null?(Ie[t]=Ie[t].parentLocale,t===Xt()&&Xt(t)):Ie[t]!=null&&delete Ie[t]);return Ie[t]}function Ft(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Ar;if(!wt(t)){if(e=ws(t),e)return e;t=[t]}return F8(t)}function N8(){return li(Ie)}function _i(t){var e,r=t._a;return r&&ge(t).overflow===-2&&(e=r[zt]<0||r[zt]>11?zt:r[Lt]<1||r[Lt]>bs(r[Ke],r[zt])?Lt:r[Ne]<0||r[Ne]>24||r[Ne]===24&&(r[St]!==0||r[Rt]!==0||r[er]!==0)?Ne:r[St]<0||r[St]>59?St:r[Rt]<0||r[Rt]>59?Rt:r[er]<0||r[er]>999?er:-1,ge(t)._overflowDayOfYear&&(e<Ke||e>Lt)&&(e=Lt),ge(t)._overflowWeeks&&e===-1&&(e=qh),ge(t)._overflowWeekday&&e===-1&&(e=Zh),ge(t).overflow=e),t}var W8=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Y8=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,j8=/Z|[+-]\d\d(?::?\d\d)?/,xs=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],bi=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],U8=/^\/?Date\((-?\d+)/i,G8=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,q8={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function qo(t){var e,r,s=t._i,n=W8.exec(s)||Y8.exec(s),i,a,c,o,l=xs.length,d=bi.length;if(n){for(ge(t).iso=!0,e=0,r=l;e<r;e++)if(xs[e][1].exec(n[1])){a=xs[e][0],i=xs[e][2]!==!1;break}if(a==null){t._isValid=!1;return}if(n[3]){for(e=0,r=d;e<r;e++)if(bi[e][1].exec(n[3])){c=(n[2]||" ")+bi[e][0];break}if(c==null){t._isValid=!1;return}}if(!i&&c!=null){t._isValid=!1;return}if(n[4])if(j8.exec(n[4]))o="Z";else{t._isValid=!1;return}t._f=a+(c||"")+(o||""),wi(t)}else t._isValid=!1}function Z8(t,e,r,s,n,i){var a=[X8(t),zo.indexOf(e),parseInt(r,10),parseInt(s,10),parseInt(n,10)];return i&&a.push(parseInt(i,10)),a}function X8(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function V8(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Q8(t,e,r){if(t){var s=Wo.indexOf(t),n=new Date(e[0],e[1],e[2]).getDay();if(s!==n)return ge(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function K8(t,e,r){if(t)return q8[t];if(e)return 0;var s=parseInt(r,10),n=s%100,i=(s-n)/100;return i*60+n}function Zo(t){var e=G8.exec(V8(t._i)),r;if(e){if(r=Z8(e[4],e[3],e[2],e[5],e[6],e[7]),!Q8(e[1],r,t))return;t._a=r,t._tzm=K8(e[8],e[9],e[10]),t._d=Rr.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),ge(t).rfc2822=!0}else t._isValid=!1}function J8(t){var e=U8.exec(t._i);if(e!==null){t._d=new Date(+e[1]);return}if(qo(t),t._isValid===!1)delete t._isValid;else return;if(Zo(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:J.createFromInputFallback(t)}J.createFromInputFallback=yt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function fr(t,e,r){return t!=null?t:e!=null?e:r}function e7(t){var e=new Date(J.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Ci(t){var e,r,s=[],n,i,a;if(!t._d){for(n=e7(t),t._w&&t._a[Lt]==null&&t._a[zt]==null&&t7(t),t._dayOfYear!=null&&(a=fr(t._a[Ke],n[Ke]),(t._dayOfYear>zr(a)||t._dayOfYear===0)&&(ge(t)._overflowDayOfYear=!0),r=Rr(a,0,t._dayOfYear),t._a[zt]=r.getUTCMonth(),t._a[Lt]=r.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=s[e]=n[e];for(;e<7;e++)t._a[e]=s[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[Ne]===24&&t._a[St]===0&&t._a[Rt]===0&&t._a[er]===0&&(t._nextDay=!0,t._a[Ne]=0),t._d=(t._useUTC?Rr:o8).apply(null,s),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Ne]=24),t._w&&typeof t._w.d!="undefined"&&t._w.d!==i&&(ge(t).weekdayMismatch=!0)}}function t7(t){var e,r,s,n,i,a,c,o,l;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,a=4,r=fr(e.GG,t._a[Ke],Br(Pe(),1,4).year),s=fr(e.W,1),n=fr(e.E,1),(n<1||n>7)&&(o=!0)):(i=t._locale._week.dow,a=t._locale._week.doy,l=Br(Pe(),i,a),r=fr(e.gg,t._a[Ke],l.year),s=fr(e.w,l.week),e.d!=null?(n=e.d,(n<0||n>6)&&(o=!0)):e.e!=null?(n=e.e+i,(e.e<0||e.e>6)&&(o=!0)):n=i),s<1||s>Bt(r,i,a)?ge(t)._overflowWeeks=!0:o!=null?ge(t)._overflowWeekday=!0:(c=No(r,s,n,i,a),t._a[Ke]=c.year,t._dayOfYear=c.dayOfYear)}J.ISO_8601=function(){},J.RFC_2822=function(){};function wi(t){if(t._f===J.ISO_8601){qo(t);return}if(t._f===J.RFC_2822){Zo(t);return}t._a=[],ge(t).empty=!0;var e=""+t._i,r,s,n,i,a,c=e.length,o=0,l,d;for(n=$o(t._f,t._locale).match(ci)||[],d=n.length,r=0;r<d;r++)i=n[r],s=(e.match(jh(i,t))||[])[0],s&&(a=e.substr(0,e.indexOf(s)),a.length>0&&ge(t).unusedInput.push(a),e=e.slice(e.indexOf(s)+s.length),o+=s.length),ur[i]?(s?ge(t).empty=!1:ge(t).unusedTokens.push(i),Gh(i,s,t)):t._strict&&!s&&ge(t).unusedTokens.push(i);ge(t).charsLeftOver=c-o,e.length>0&&ge(t).unusedInput.push(e),t._a[Ne]<=12&&ge(t).bigHour===!0&&t._a[Ne]>0&&(ge(t).bigHour=void 0),ge(t).parsedDateParts=t._a.slice(0),ge(t).meridiem=t._meridiem,t._a[Ne]=r7(t._locale,t._a[Ne],t._meridiem),l=ge(t).era,l!==null&&(t._a[Ke]=t._locale.erasConvertYear(l,t._a[Ke])),Ci(t),_i(t)}function r7(t,e,r){var s;return r==null?e:t.meridiemHour!=null?t.meridiemHour(e,r):(t.isPM!=null&&(s=t.isPM(r),s&&e<12&&(e+=12),!s&&e===12&&(e=0)),e)}function s7(t){var e,r,s,n,i,a,c=!1,o=t._f.length;if(o===0){ge(t).invalidFormat=!0,t._d=new Date(NaN);return}for(n=0;n<o;n++)i=0,a=!1,e=ii({},t),t._useUTC!=null&&(e._useUTC=t._useUTC),e._f=t._f[n],wi(e),si(e)&&(a=!0),i+=ge(e).charsLeftOver,i+=ge(e).unusedTokens.length*10,ge(e).score=i,c?i<s&&(s=i,r=e):(s==null||i<s||a)&&(s=i,r=e,a&&(c=!0));Zt(t,r||e)}function n7(t){if(!t._d){var e=di(t._i),r=e.day===void 0?e.date:e.day;t._a=xo([e.year,e.month,r,e.hour,e.minute,e.second,e.millisecond],function(s){return s&&parseInt(s,10)}),Ci(t)}}function i7(t){var e=new Lr(_i(Xo(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Xo(t){var e=t._i,r=t._f;return t._locale=t._locale||Ft(t._l),e===null||r===void 0&&e===""?cs({nullInput:!0}):(typeof e=="string"&&(t._i=e=t._locale.preparse(e)),xt(e)?new Lr(_i(e)):(Dr(e)?t._d=e:wt(r)?s7(t):r?wi(t):a7(t),si(t)||(t._d=null),t))}function a7(t){var e=t._i;nt(e)?t._d=new Date(J.now()):Dr(e)?t._d=new Date(e.valueOf()):typeof e=="string"?J8(t):wt(e)?(t._a=xo(e.slice(0),function(r){return parseInt(r,10)}),Ci(t)):Jt(e)?n7(t):It(e)?t._d=new Date(e):J.createFromInputFallback(t)}function Vo(t,e,r,s,n){var i={};return(e===!0||e===!1)&&(s=e,e=void 0),(r===!0||r===!1)&&(s=r,r=void 0),(Jt(t)&&ti(t)||wt(t)&&t.length===0)&&(t=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=n,i._l=r,i._i=t,i._f=e,i._strict=s,i7(i)}function Pe(t,e,r,s){return Vo(t,e,r,s,!1)}var o7=yt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Pe.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:cs()}),l7=yt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Pe.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:cs()});function Qo(t,e){var r,s;if(e.length===1&&wt(e[0])&&(e=e[0]),!e.length)return Pe();for(r=e[0],s=1;s<e.length;++s)(!e[s].isValid()||e[s][t](r))&&(r=e[s]);return r}function c7(){var t=[].slice.call(arguments,0);return Qo("isBefore",t)}function u7(){var t=[].slice.call(arguments,0);return Qo("isAfter",t)}var d7=function(){return Date.now?Date.now():+new Date},Hr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function h7(t){var e,r=!1,s,n=Hr.length;for(e in t)if(xe(t,e)&&!(He.call(Hr,e)!==-1&&(t[e]==null||!isNaN(t[e]))))return!1;for(s=0;s<n;++s)if(t[Hr[s]]){if(r)return!1;parseFloat(t[Hr[s]])!==ve(t[Hr[s]])&&(r=!0)}return!0}function f7(){return this._isValid}function p7(){return kt(NaN)}function Ss(t){var e=di(t),r=e.year||0,s=e.quarter||0,n=e.month||0,i=e.week||e.isoWeek||0,a=e.day||0,c=e.hour||0,o=e.minute||0,l=e.second||0,d=e.millisecond||0;this._isValid=h7(e),this._milliseconds=+d+l*1e3+o*6e4+c*1e3*60*60,this._days=+a+i*7,this._months=+n+s*3+r*12,this._data={},this._locale=Ft(),this._bubble()}function ks(t){return t instanceof Ss}function xi(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function m7(t,e,r){var s=Math.min(t.length,e.length),n=Math.abs(t.length-e.length),i=0,a;for(a=0;a<s;a++)(r&&t[a]!==e[a]||!r&&ve(t[a])!==ve(e[a]))&&i++;return i+n}function Ko(t,e){oe(t,0,0,function(){var r=this.utcOffset(),s="+";return r<0&&(r=-r,s="-"),s+Dt(~~(r/60),2)+e+Dt(~~r%60,2)})}Ko("Z",":"),Ko("ZZ",""),re("Z",ys),re("ZZ",ys),Te(["Z","ZZ"],function(t,e,r){r._useUTC=!0,r._tzm=Si(ys,t)});var g7=/([\+\-]|\d\d)/gi;function Si(t,e){var r=(e||"").match(t),s,n,i;return r===null?null:(s=r[r.length-1]||[],n=(s+"").match(g7)||["-",0,0],i=+(n[1]*60)+ve(n[2]),i===0?0:n[0]==="+"?i:-i)}function ki(t,e){var r,s;return e._isUTC?(r=e.clone(),s=(xt(t)||Dr(t)?t.valueOf():Pe(t).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+s),J.updateOffset(r,!1),r):Pe(t).local()}function Ti(t){return-Math.round(t._d.getTimezoneOffset())}J.updateOffset=function(){};function v7(t,e,r){var s=this._offset||0,n;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=Si(ys,t),t===null)return this}else Math.abs(t)<16&&!r&&(t=t*60);return!this._isUTC&&e&&(n=Ti(this)),this._offset=t,this._isUTC=!0,n!=null&&this.add(n,"m"),s!==t&&(!e||this._changeInProgress?rl(this,kt(t-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,J.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:Ti(this)}function y7(t,e){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function _7(t){return this.utcOffset(0,t)}function b7(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ti(this),"m")),this}function C7(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=Si(Wh,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function w7(t){return this.isValid()?(t=t?Pe(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function x7(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function S7(){if(!nt(this._isDSTShifted))return this._isDSTShifted;var t={},e;return ii(t,this),t=Xo(t),t._a?(e=t._isUTC?$t(t._a):Pe(t._a),this._isDSTShifted=this.isValid()&&m7(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function k7(){return this.isValid()?!this._isUTC:!1}function T7(){return this.isValid()?this._isUTC:!1}function Jo(){return this.isValid()?this._isUTC&&this._offset===0:!1}var M7=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,$7=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function kt(t,e){var r=t,s=null,n,i,a;return ks(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:It(t)||!isNaN(+t)?(r={},e?r[e]=+t:r.milliseconds=+t):(s=M7.exec(t))?(n=s[1]==="-"?-1:1,r={y:0,d:ve(s[Lt])*n,h:ve(s[Ne])*n,m:ve(s[St])*n,s:ve(s[Rt])*n,ms:ve(xi(s[er]*1e3))*n}):(s=$7.exec(t))?(n=s[1]==="-"?-1:1,r={y:tr(s[2],n),M:tr(s[3],n),w:tr(s[4],n),d:tr(s[5],n),h:tr(s[6],n),m:tr(s[7],n),s:tr(s[8],n)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(a=E7(Pe(r.from),Pe(r.to)),r={},r.ms=a.milliseconds,r.M=a.months),i=new Ss(r),ks(t)&&xe(t,"_locale")&&(i._locale=t._locale),ks(t)&&xe(t,"_isValid")&&(i._isValid=t._isValid),i}kt.fn=Ss.prototype,kt.invalid=p7;function tr(t,e){var r=t&&parseFloat(t.replace(",","."));return(isNaN(r)?0:r)*e}function el(t,e){var r={};return r.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(r.months,"M").isAfter(e)&&--r.months,r.milliseconds=+e-+t.clone().add(r.months,"M"),r}function E7(t,e){var r;return t.isValid()&&e.isValid()?(e=ki(e,t),t.isBefore(e)?r=el(t,e):(r=el(e,t),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function tl(t,e){return function(r,s){var n,i;return s!==null&&!isNaN(+s)&&(Mo(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=s,s=i),n=kt(r,s),rl(this,n,t),this}}function rl(t,e,r,s){var n=e._milliseconds,i=xi(e._days),a=xi(e._months);t.isValid()&&(s=s==null?!0:s,a&&Bo(t,fs(t,"Month")+a*r),i&&Do(t,"Date",fs(t,"Date")+i*r),n&&t._d.setTime(t._d.valueOf()+n*r),s&&J.updateOffset(t,i||a))}var D7=tl(1,"add"),L7=tl(-1,"subtract");function sl(t){return typeof t=="string"||t instanceof String}function P7(t){return xt(t)||Dr(t)||sl(t)||It(t)||I7(t)||O7(t)||t===null||t===void 0}function O7(t){var e=Jt(t)&&!ti(t),r=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,i,a=s.length;for(n=0;n<a;n+=1)i=s[n],r=r||xe(t,i);return e&&r}function I7(t){var e=wt(t),r=!1;return e&&(r=t.filter(function(s){return!It(s)&&sl(t)}).length===0),e&&r}function z7(t){var e=Jt(t)&&!ti(t),r=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,i;for(n=0;n<s.length;n+=1)i=s[n],r=r||xe(t,i);return e&&r}function R7(t,e){var r=t.diff(e,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function B7(t,e){arguments.length===1&&(arguments[0]?P7(arguments[0])?(t=arguments[0],e=void 0):z7(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var r=t||Pe(),s=ki(r,this).startOf("day"),n=J.calendarFormat(this,s)||"sameElse",i=e&&(Et(e[n])?e[n].call(this,r):e[n]);return this.format(i||this.localeData().calendar(n,this,Pe(r)))}function F7(){return new Lr(this)}function A7(t,e){var r=xt(t)?t:Pe(t);return this.isValid()&&r.isValid()?(e=_t(e)||"millisecond",e==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(e).valueOf()):!1}function H7(t,e){var r=xt(t)?t:Pe(t);return this.isValid()&&r.isValid()?(e=_t(e)||"millisecond",e==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(e).valueOf()<r.valueOf()):!1}function N7(t,e,r,s){var n=xt(t)?t:Pe(t),i=xt(e)?e:Pe(e);return this.isValid()&&n.isValid()&&i.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(n,r):!this.isBefore(n,r))&&(s[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))):!1}function W7(t,e){var r=xt(t)?t:Pe(t),s;return this.isValid()&&r.isValid()?(e=_t(e)||"millisecond",e==="millisecond"?this.valueOf()===r.valueOf():(s=r.valueOf(),this.clone().startOf(e).valueOf()<=s&&s<=this.clone().endOf(e).valueOf())):!1}function Y7(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function j7(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function U7(t,e,r){var s,n,i;if(!this.isValid())return NaN;if(s=ki(t,this),!s.isValid())return NaN;switch(n=(s.utcOffset()-this.utcOffset())*6e4,e=_t(e),e){case"year":i=Ts(this,s)/12;break;case"month":i=Ts(this,s);break;case"quarter":i=Ts(this,s)/3;break;case"second":i=(this-s)/1e3;break;case"minute":i=(this-s)/6e4;break;case"hour":i=(this-s)/36e5;break;case"day":i=(this-s-n)/864e5;break;case"week":i=(this-s-n)/6048e5;break;default:i=this-s}return r?i:bt(i)}function Ts(t,e){if(t.date()<e.date())return-Ts(e,t);var r=(e.year()-t.year())*12+(e.month()-t.month()),s=t.clone().add(r,"months"),n,i;return e-s<0?(n=t.clone().add(r-1,"months"),i=(e-s)/(s-n)):(n=t.clone().add(r+1,"months"),i=(e-s)/(n-s)),-(r+i)||0}J.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",J.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function G7(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function q7(t){if(!this.isValid())return null;var e=t!==!0,r=e?this.clone().utc():this;return r.year()<0||r.year()>9999?ds(r,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Et(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ds(r,"Z")):ds(r,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Z7(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",r,s,n,i;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),r="["+t+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(r+s+n+i)}function X7(t){t||(t=this.isUtc()?J.defaultFormatUtc:J.defaultFormat);var e=ds(this,t);return this.localeData().postformat(e)}function V7(t,e){return this.isValid()&&(xt(t)&&t.isValid()||Pe(t).isValid())?kt({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Q7(t){return this.from(Pe(),t)}function K7(t,e){return this.isValid()&&(xt(t)&&t.isValid()||Pe(t).isValid())?kt({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function J7(t){return this.to(Pe(),t)}function nl(t){var e;return t===void 0?this._locale._abbr:(e=Ft(t),e!=null&&(this._locale=e),this)}var il=yt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function al(){return this._locale}var Ms=1e3,pr=60*Ms,$s=60*pr,ol=(365*400+97)*24*$s;function mr(t,e){return(t%e+e)%e}function ll(t,e,r){return t<100&&t>=0?new Date(t+400,e,r)-ol:new Date(t,e,r).valueOf()}function cl(t,e,r){return t<100&&t>=0?Date.UTC(t+400,e,r)-ol:Date.UTC(t,e,r)}function ef(t){var e,r;if(t=_t(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?cl:ll,t){case"year":e=r(this.year(),0,1);break;case"quarter":e=r(this.year(),this.month()-this.month()%3,1);break;case"month":e=r(this.year(),this.month(),1);break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=r(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=mr(e+(this._isUTC?0:this.utcOffset()*pr),$s);break;case"minute":e=this._d.valueOf(),e-=mr(e,pr);break;case"second":e=this._d.valueOf(),e-=mr(e,Ms);break}return this._d.setTime(e),J.updateOffset(this,!0),this}function tf(t){var e,r;if(t=_t(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?cl:ll,t){case"year":e=r(this.year()+1,0,1)-1;break;case"quarter":e=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=r(this.year(),this.month()+1,1)-1;break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=$s-mr(e+(this._isUTC?0:this.utcOffset()*pr),$s)-1;break;case"minute":e=this._d.valueOf(),e+=pr-mr(e,pr)-1;break;case"second":e=this._d.valueOf(),e+=Ms-mr(e,Ms)-1;break}return this._d.setTime(e),J.updateOffset(this,!0),this}function rf(){return this._d.valueOf()-(this._offset||0)*6e4}function sf(){return Math.floor(this.valueOf()/1e3)}function nf(){return new Date(this.valueOf())}function af(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function of(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function lf(){return this.isValid()?this.toISOString():null}function cf(){return si(this)}function uf(){return Zt({},ge(this))}function df(){return ge(this).overflow}function hf(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}oe("N",0,0,"eraAbbr"),oe("NN",0,0,"eraAbbr"),oe("NNN",0,0,"eraAbbr"),oe("NNNN",0,0,"eraName"),oe("NNNNN",0,0,"eraNarrow"),oe("y",["y",1],"yo","eraYear"),oe("y",["yy",2],0,"eraYear"),oe("y",["yyy",3],0,"eraYear"),oe("y",["yyyy",4],0,"eraYear"),re("N",Mi),re("NN",Mi),re("NNN",Mi),re("NNNN",xf),re("NNNNN",Sf),Te(["N","NN","NNN","NNNN","NNNNN"],function(t,e,r,s){var n=r._locale.erasParse(t,s,r._strict);n?ge(r).era=n:ge(r).invalidEra=t}),re("y",hr),re("yy",hr),re("yyy",hr),re("yyyy",hr),re("yo",kf),Te(["y","yy","yyy","yyyy"],Ke),Te(["yo"],function(t,e,r,s){var n;r._locale._eraYearOrdinalRegex&&(n=t.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?e[Ke]=r._locale.eraYearOrdinalParse(t,n):e[Ke]=parseInt(t,10)});function ff(t,e){var r,s,n,i=this._eras||Ft("en")._eras;for(r=0,s=i.length;r<s;++r){switch(typeof i[r].since){case"string":n=J(i[r].since).startOf("day"),i[r].since=n.valueOf();break}switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":n=J(i[r].until).startOf("day").valueOf(),i[r].until=n.valueOf();break}}return i}function pf(t,e,r){var s,n,i=this.eras(),a,c,o;for(t=t.toUpperCase(),s=0,n=i.length;s<n;++s)if(a=i[s].name.toUpperCase(),c=i[s].abbr.toUpperCase(),o=i[s].narrow.toUpperCase(),r)switch(e){case"N":case"NN":case"NNN":if(c===t)return i[s];break;case"NNNN":if(a===t)return i[s];break;case"NNNNN":if(o===t)return i[s];break}else if([a,c,o].indexOf(t)>=0)return i[s]}function mf(t,e){var r=t.since<=t.until?1:-1;return e===void 0?J(t.since).year():J(t.since).year()+(e-t.offset)*r}function gf(){var t,e,r,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t)if(r=this.clone().startOf("day").valueOf(),s[t].since<=r&&r<=s[t].until||s[t].until<=r&&r<=s[t].since)return s[t].name;return""}function vf(){var t,e,r,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t)if(r=this.clone().startOf("day").valueOf(),s[t].since<=r&&r<=s[t].until||s[t].until<=r&&r<=s[t].since)return s[t].narrow;return""}function yf(){var t,e,r,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t)if(r=this.clone().startOf("day").valueOf(),s[t].since<=r&&r<=s[t].until||s[t].until<=r&&r<=s[t].since)return s[t].abbr;return""}function _f(){var t,e,r,s,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t)if(r=n[t].since<=n[t].until?1:-1,s=this.clone().startOf("day").valueOf(),n[t].since<=s&&s<=n[t].until||n[t].until<=s&&s<=n[t].since)return(this.year()-J(n[t].since).year())*r+n[t].offset;return this.year()}function bf(t){return xe(this,"_erasNameRegex")||$i.call(this),t?this._erasNameRegex:this._erasRegex}function Cf(t){return xe(this,"_erasAbbrRegex")||$i.call(this),t?this._erasAbbrRegex:this._erasRegex}function wf(t){return xe(this,"_erasNarrowRegex")||$i.call(this),t?this._erasNarrowRegex:this._erasRegex}function Mi(t,e){return e.erasAbbrRegex(t)}function xf(t,e){return e.erasNameRegex(t)}function Sf(t,e){return e.erasNarrowRegex(t)}function kf(t,e){return e._eraYearOrdinalRegex||hr}function $i(){var t=[],e=[],r=[],s=[],n,i,a=this.eras();for(n=0,i=a.length;n<i;++n)e.push(ut(a[n].name)),t.push(ut(a[n].abbr)),r.push(ut(a[n].narrow)),s.push(ut(a[n].name)),s.push(ut(a[n].abbr)),s.push(ut(a[n].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}oe(0,["gg",2],0,function(){return this.weekYear()%100}),oe(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Es(t,e){oe(0,[t,t.length],0,e)}Es("gggg","weekYear"),Es("ggggg","weekYear"),Es("GGGG","isoWeekYear"),Es("GGGGG","isoWeekYear"),Ve("weekYear","gg"),Ve("isoWeekYear","GG"),Qe("weekYear",1),Qe("isoWeekYear",1),re("G",vs),re("g",vs),re("GG",Le,ct),re("gg",Le,ct),re("GGGG",fi,hi),re("gggg",fi,hi),re("GGGGG",gs,ps),re("ggggg",gs,ps),Ir(["gggg","ggggg","GGGG","GGGGG"],function(t,e,r,s){e[s.substr(0,2)]=ve(t)}),Ir(["gg","GG"],function(t,e,r,s){e[s]=J.parseTwoDigitYear(t)});function Tf(t){return ul.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Mf(t){return ul.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function $f(){return Bt(this.year(),1,4)}function Ef(){return Bt(this.isoWeekYear(),1,4)}function Df(){var t=this.localeData()._week;return Bt(this.year(),t.dow,t.doy)}function Lf(){var t=this.localeData()._week;return Bt(this.weekYear(),t.dow,t.doy)}function ul(t,e,r,s,n){var i;return t==null?Br(this,s,n).year:(i=Bt(t,s,n),e>i&&(e=i),Pf.call(this,t,e,r,s,n))}function Pf(t,e,r,s,n){var i=No(t,e,r,s,n),a=Rr(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}oe("Q",0,"Qo","quarter"),Ve("quarter","Q"),Qe("quarter",7),re("Q",Lo),Te("Q",function(t,e){e[zt]=(ve(t)-1)*3});function Of(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}oe("D",["DD",2],"Do","date"),Ve("date","D"),Qe("date",9),re("D",Le),re("DD",Le,ct),re("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Te(["D","DD"],Lt),Te("Do",function(t,e){e[Lt]=ve(t.match(Le)[0])});var dl=dr("Date",!0);oe("DDD",["DDDD",3],"DDDo","dayOfYear"),Ve("dayOfYear","DDD"),Qe("dayOfYear",4),re("DDD",ms),re("DDDD",Po),Te(["DDD","DDDD"],function(t,e,r){r._dayOfYear=ve(t)});function If(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}oe("m",["mm",2],0,"minute"),Ve("minute","m"),Qe("minute",14),re("m",Le),re("mm",Le,ct),Te(["m","mm"],St);var zf=dr("Minutes",!1);oe("s",["ss",2],0,"second"),Ve("second","s"),Qe("second",15),re("s",Le),re("ss",Le,ct),Te(["s","ss"],Rt);var Rf=dr("Seconds",!1);oe("S",0,0,function(){return~~(this.millisecond()/100)}),oe(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),oe(0,["SSS",3],0,"millisecond"),oe(0,["SSSS",4],0,function(){return this.millisecond()*10}),oe(0,["SSSSS",5],0,function(){return this.millisecond()*100}),oe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),oe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),oe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),oe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ve("millisecond","ms"),Qe("millisecond",16),re("S",ms,Lo),re("SS",ms,ct),re("SSS",ms,Po);var Vt,hl;for(Vt="SSSS";Vt.length<=9;Vt+="S")re(Vt,hr);function Bf(t,e){e[er]=ve(("0."+t)*1e3)}for(Vt="S";Vt.length<=9;Vt+="S")Te(Vt,Bf);hl=dr("Milliseconds",!1),oe("z",0,0,"zoneAbbr"),oe("zz",0,0,"zoneName");function Ff(){return this._isUTC?"UTC":""}function Af(){return this._isUTC?"Coordinated Universal Time":""}var G=Lr.prototype;G.add=D7,G.calendar=B7,G.clone=F7,G.diff=U7,G.endOf=tf,G.format=X7,G.from=V7,G.fromNow=Q7,G.to=K7,G.toNow=J7,G.get=Hh,G.invalidAt=df,G.isAfter=A7,G.isBefore=H7,G.isBetween=N7,G.isSame=W7,G.isSameOrAfter=Y7,G.isSameOrBefore=j7,G.isValid=cf,G.lang=il,G.locale=nl,G.localeData=al,G.max=l7,G.min=o7,G.parsingFlags=uf,G.set=Nh,G.startOf=ef,G.subtract=L7,G.toArray=af,G.toObject=of,G.toDate=nf,G.toISOString=q7,G.inspect=Z7,typeof Symbol!="undefined"&&Symbol.for!=null&&(G[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),G.toJSON=lf,G.toString=G7,G.unix=sf,G.valueOf=rf,G.creationData=hf,G.eraName=gf,G.eraNarrow=vf,G.eraAbbr=yf,G.eraYear=_f,G.year=Ho,G.isLeapYear=a8,G.weekYear=Tf,G.isoWeekYear=Mf,G.quarter=G.quarters=Of,G.month=Fo,G.daysInMonth=s8,G.week=G.weeks=h8,G.isoWeek=G.isoWeeks=f8,G.weeksInYear=Df,G.weeksInWeekYear=Lf,G.isoWeeksInYear=$f,G.isoWeeksInISOWeekYear=Ef,G.date=dl,G.day=G.days=T8,G.weekday=M8,G.isoWeekday=$8,G.dayOfYear=If,G.hour=G.hours=z8,G.minute=G.minutes=zf,G.second=G.seconds=Rf,G.millisecond=G.milliseconds=hl,G.utcOffset=v7,G.utc=_7,G.local=b7,G.parseZone=C7,G.hasAlignedHourOffset=w7,G.isDST=x7,G.isLocal=k7,G.isUtcOffset=T7,G.isUtc=Jo,G.isUTC=Jo,G.zoneAbbr=Ff,G.zoneName=Af,G.dates=yt("dates accessor is deprecated. Use date instead.",dl),G.months=yt("months accessor is deprecated. Use month instead",Fo),G.years=yt("years accessor is deprecated. Use year instead",Ho),G.zone=yt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",y7),G.isDSTShifted=yt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",S7);function Hf(t){return Pe(t*1e3)}function Nf(){return Pe.apply(null,arguments).parseZone()}function fl(t){return t}var Se=oi.prototype;Se.calendar=Th,Se.longDateFormat=Dh,Se.invalidDate=Ph,Se.ordinal=zh,Se.preparse=fl,Se.postformat=fl,Se.relativeTime=Bh,Se.pastFuture=Fh,Se.set=Sh,Se.eras=ff,Se.erasParse=pf,Se.erasConvertYear=mf,Se.erasAbbrRegex=Cf,Se.erasNameRegex=bf,Se.erasNarrowRegex=wf,Se.months=Jh,Se.monthsShort=e8,Se.monthsParse=r8,Se.monthsRegex=i8,Se.monthsShortRegex=n8,Se.week=l8,Se.firstDayOfYear=d8,Se.firstDayOfWeek=u8,Se.weekdays=C8,Se.weekdaysMin=x8,Se.weekdaysShort=w8,Se.weekdaysParse=k8,Se.weekdaysRegex=E8,Se.weekdaysShortRegex=D8,Se.weekdaysMinRegex=L8,Se.isPM=O8,Se.meridiem=R8;function Ds(t,e,r,s){var n=Ft(),i=$t().set(s,e);return n[r](i,t)}function pl(t,e,r){if(It(t)&&(e=t,t=void 0),t=t||"",e!=null)return Ds(t,e,r,"month");var s,n=[];for(s=0;s<12;s++)n[s]=Ds(t,s,r,"month");return n}function Ei(t,e,r,s){typeof t=="boolean"?(It(e)&&(r=e,e=void 0),e=e||""):(e=t,r=e,t=!1,It(e)&&(r=e,e=void 0),e=e||"");var n=Ft(),i=t?n._week.dow:0,a,c=[];if(r!=null)return Ds(e,(r+i)%7,s,"day");for(a=0;a<7;a++)c[a]=Ds(e,(a+i)%7,s,"day");return c}function Wf(t,e){return pl(t,e,"months")}function Yf(t,e){return pl(t,e,"monthsShort")}function jf(t,e,r){return Ei(t,e,r,"weekdays")}function Uf(t,e,r){return Ei(t,e,r,"weekdaysShort")}function Gf(t,e,r){return Ei(t,e,r,"weekdaysMin")}Xt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,r=ve(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+r}}),J.lang=yt("moment.lang is deprecated. Use moment.locale instead.",Xt),J.langData=yt("moment.langData is deprecated. Use moment.localeData instead.",Ft);var At=Math.abs;function qf(){var t=this._data;return this._milliseconds=At(this._milliseconds),this._days=At(this._days),this._months=At(this._months),t.milliseconds=At(t.milliseconds),t.seconds=At(t.seconds),t.minutes=At(t.minutes),t.hours=At(t.hours),t.months=At(t.months),t.years=At(t.years),this}function ml(t,e,r,s){var n=kt(e,r);return t._milliseconds+=s*n._milliseconds,t._days+=s*n._days,t._months+=s*n._months,t._bubble()}function Zf(t,e){return ml(this,t,e,1)}function Xf(t,e){return ml(this,t,e,-1)}function gl(t){return t<0?Math.floor(t):Math.ceil(t)}function Vf(){var t=this._milliseconds,e=this._days,r=this._months,s=this._data,n,i,a,c,o;return t>=0&&e>=0&&r>=0||t<=0&&e<=0&&r<=0||(t+=gl(Di(r)+e)*864e5,e=0,r=0),s.milliseconds=t%1e3,n=bt(t/1e3),s.seconds=n%60,i=bt(n/60),s.minutes=i%60,a=bt(i/60),s.hours=a%24,e+=bt(a/24),o=bt(vl(e)),r+=o,e-=gl(Di(o)),c=bt(r/12),r%=12,s.days=e,s.months=r,s.years=c,this}function vl(t){return t*4800/146097}function Di(t){return t*146097/4800}function Qf(t){if(!this.isValid())return NaN;var e,r,s=this._milliseconds;if(t=_t(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+s/864e5,r=this._months+vl(e),t){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(e=this._days+Math.round(Di(this._months)),t){case"week":return e/7+s/6048e5;case"day":return e+s/864e5;case"hour":return e*24+s/36e5;case"minute":return e*1440+s/6e4;case"second":return e*86400+s/1e3;case"millisecond":return Math.floor(e*864e5)+s;default:throw new Error("Unknown unit "+t)}}function Kf(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ve(this._months/12)*31536e6:NaN}function Ht(t){return function(){return this.as(t)}}var Jf=Ht("ms"),e9=Ht("s"),t9=Ht("m"),r9=Ht("h"),s9=Ht("d"),n9=Ht("w"),i9=Ht("M"),a9=Ht("Q"),o9=Ht("y");function l9(){return kt(this)}function c9(t){return t=_t(t),this.isValid()?this[t+"s"]():NaN}function rr(t){return function(){return this.isValid()?this._data[t]:NaN}}var u9=rr("milliseconds"),d9=rr("seconds"),h9=rr("minutes"),f9=rr("hours"),p9=rr("days"),m9=rr("months"),g9=rr("years");function v9(){return bt(this.days()/7)}var Nt=Math.round,gr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function y9(t,e,r,s,n){return n.relativeTime(e||1,!!r,t,s)}function _9(t,e,r,s){var n=kt(t).abs(),i=Nt(n.as("s")),a=Nt(n.as("m")),c=Nt(n.as("h")),o=Nt(n.as("d")),l=Nt(n.as("M")),d=Nt(n.as("w")),h=Nt(n.as("y")),m=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||a<=1&&["m"]||a<r.m&&["mm",a]||c<=1&&["h"]||c<r.h&&["hh",c]||o<=1&&["d"]||o<r.d&&["dd",o];return r.w!=null&&(m=m||d<=1&&["w"]||d<r.w&&["ww",d]),m=m||l<=1&&["M"]||l<r.M&&["MM",l]||h<=1&&["y"]||["yy",h],m[2]=e,m[3]=+t>0,m[4]=s,y9.apply(null,m)}function b9(t){return t===void 0?Nt:typeof t=="function"?(Nt=t,!0):!1}function C9(t,e){return gr[t]===void 0?!1:e===void 0?gr[t]:(gr[t]=e,t==="s"&&(gr.ss=e-1),!0)}function w9(t,e){if(!this.isValid())return this.localeData().invalidDate();var r=!1,s=gr,n,i;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(r=t),typeof e=="object"&&(s=Object.assign({},gr,e),e.s!=null&&e.ss==null&&(s.ss=e.s-1)),n=this.localeData(),i=_9(this,!r,s,n),r&&(i=n.pastFuture(+this,i)),n.postformat(i)}var Li=Math.abs;function vr(t){return(t>0)-(t<0)||+t}function Ls(){if(!this.isValid())return this.localeData().invalidDate();var t=Li(this._milliseconds)/1e3,e=Li(this._days),r=Li(this._months),s,n,i,a,c=this.asSeconds(),o,l,d,h;return c?(s=bt(t/60),n=bt(s/60),t%=60,s%=60,i=bt(r/12),r%=12,a=t?t.toFixed(3).replace(/\.?0+$/,""):"",o=c<0?"-":"",l=vr(this._months)!==vr(c)?"-":"",d=vr(this._days)!==vr(c)?"-":"",h=vr(this._milliseconds)!==vr(c)?"-":"",o+"P"+(i?l+i+"Y":"")+(r?l+r+"M":"")+(e?d+e+"D":"")+(n||s||t?"T":"")+(n?h+n+"H":"")+(s?h+s+"M":"")+(t?h+a+"S":"")):"P0D"}var be=Ss.prototype;be.isValid=f7,be.abs=qf,be.add=Zf,be.subtract=Xf,be.as=Qf,be.asMilliseconds=Jf,be.asSeconds=e9,be.asMinutes=t9,be.asHours=r9,be.asDays=s9,be.asWeeks=n9,be.asMonths=i9,be.asQuarters=a9,be.asYears=o9,be.valueOf=Kf,be._bubble=Vf,be.clone=l9,be.get=c9,be.milliseconds=u9,be.seconds=d9,be.minutes=h9,be.hours=f9,be.days=p9,be.weeks=v9,be.months=m9,be.years=g9,be.humanize=w9,be.toISOString=Ls,be.toString=Ls,be.toJSON=Ls,be.locale=nl,be.localeData=al,be.toIsoString=yt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ls),be.lang=il,oe("X",0,0,"unix"),oe("x",0,0,"valueOf"),re("x",vs),re("X",Yh),Te("X",function(t,e,r){r._d=new Date(parseFloat(t)*1e3)}),Te("x",function(t,e,r){r._d=new Date(ve(t))});//! moment.js
241
- J.version="2.29.4",wh(Pe),J.fn=G,J.min=c7,J.max=u7,J.now=d7,J.utc=$t,J.unix=Hf,J.months=Wf,J.isDate=Dr,J.locale=Xt,J.invalid=cs,J.duration=kt,J.isMoment=xt,J.weekdays=jf,J.parseZone=Nf,J.localeData=Ft,J.isDuration=ks,J.monthsShort=Yf,J.weekdaysMin=Gf,J.defineLocale=yi,J.updateLocale=H8,J.locales=N8,J.weekdaysShort=Uf,J.normalizeUnits=_t,J.relativeTimeRounding=b9,J.relativeTimeThreshold=C9,J.calendarFormat=R7,J.prototype=G,J.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const x9=3,S9=180,k9=E.extend({name:"ECoverageRangeBrush",props:{timeScale:{type:Function,required:!0},startDate:{type:String,required:!0},endDate:{type:String,required:!0},height:{type:Number,required:!0},svgWidth:{type:Number,default:0},color:{type:String,default:"#4a90d9"},y:{type:Number,default:0},selectableDates:{type:Array,default:()=>[]}},data(){return{isDragging:null,hoveredHandle:null,dragInitialClientX:0,dragInitialStartX:0,dragInitialEndX:0,zoneDragMoved:!1,clickSvgX:0,smoothStartX:0,smoothEndX:0,snapRafId:null}},computed:{startX(){return this.timeScale(vt({timestamp:this.startDate}))},endX(){return this.timeScale(vt({timestamp:this.endDate}))},coverageWidth(){return Math.max(this.endX-this.startX,0)},smoothCoverageWidth(){return Math.max(this.smoothEndX-this.smoothStartX,0)},curtainHeight(){return this.height-this.y},handleHeight(){return this.curtainHeight*.33},handleY(){return this.y+(this.curtainHeight-this.handleHeight)/2},columnWidth(){const[t,e]=this.timeScale.domain(),[r,s]=this.timeScale.range(),n=24*60*60*1e3,i=e.getTime()-t.getTime(),a=s-r;return Math.max(n/i*a,4)},leftHandleOpacity(){return this.hoveredHandle==="left"||this.isDragging==="left"?.9:0},rightHandleOpacity(){return this.hoveredHandle==="right"||this.isDragging==="right"?.9:0},handlesAreClose(){return this.smoothEndX-this.smoothStartX<80},differentYears(){return J.parseZone(this.startDate).year()!==J.parseZone(this.endDate).year()},startDateLabel(){return this.formatDateLabel(this.startDate,this.differentYears)},endDateLabel(){return this.formatDateLabel(this.endDate,this.differentYears)},startLabelWidth(){return this.startDateLabel.length*6.5},endLabelWidth(){return this.endDateLabel.length*6.5},combinedLabelWidth(){return this.combinedDateLabel.length*6.5},combinedDateLabel(){const t=J.parseZone(this.startDate),e=J.parseZone(this.endDate),r=t.date(),s=e.date(),n=t.month(),i=e.month(),a=t.year(),c=e.year(),o=this.formatDateLabel(this.startDate,this.differentYears);return r===s&&n===i&&a===c?o:n===i&&a===c?`${o} – ${s}`:`${o} – ${this.formatDateLabel(this.endDate,this.differentYears)}`}},watch:{startX(t){(this.isDragging||this.snapRafId===null)&&(this.smoothStartX=t)},endX(t){(this.isDragging||this.snapRafId===null)&&(this.smoothEndX=t)}},mounted(){this.smoothStartX=this.startX,this.smoothEndX=this.endX},beforeDestroy(){this.snapRafId!==null&&cancelAnimationFrame(this.snapRafId),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("click",this.cancelNextClick,{capture:!0})},methods:{snapToDay(t){const e=this.timeScale.invert(t),r=e.getUTCFullYear(),s=e.getUTCMonth(),n=e.getUTCDate(),i=new Date(Date.UTC(r,s,n)),a=new Date(Date.UTC(r,s,n+1)),c=(this.timeScale(i)+this.timeScale(a))/2,o=t>=c?a:i;return{date:o,pixel:Math.round(this.timeScale(o))}},fromFakeUtc(t){const e=J.parseZone(this.startDate).utcOffset(),r=t.getTime()-e*60*1e3;return J(r).utcOffset(e).format()},animateSnap(t,e,r,s){this.snapRafId!==null&&cancelAnimationFrame(this.snapRafId);const n=performance.now(),i=a=>{const c=Math.min((a-n)/S9,1),o=1-Math.pow(1-c,3);this.smoothStartX=t+(e-t)*o,this.smoothEndX=r+(s-r)*o,c<1?this.snapRafId=requestAnimationFrame(i):this.snapRafId=null};this.snapRafId=requestAnimationFrame(i)},startDrag(t,e){this.snapRafId!==null&&(cancelAnimationFrame(this.snapRafId),this.snapRafId=null),this.isDragging=t,this.zoneDragMoved=!1,this.dragInitialClientX=e,this.dragInitialStartX=this.startX,this.dragInitialEndX=this.endX,document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp)},onCurtainMouseDown(t){t.preventDefault(),this.clickSvgX=this.smoothStartX+t.offsetX,this.startDrag("zone",t.clientX)},onLeftHandleMouseDown(t){t.preventDefault(),this.startDrag("left",t.clientX)},onRightHandleMouseDown(t){t.preventDefault(),this.startDrag("right",t.clientX)},onZoneMouseDown(t){t.preventDefault(),this.startDrag("zone",t.clientX)},onMouseMove(t){if(!this.isDragging)return;const e=t.clientX-this.dragInitialClientX;if(this.isDragging==="zone"){if(Math.abs(e)<x9)return;this.zoneDragMoved=!0,this.$emit("change",{startDate:this.fromFakeUtc(this.timeScale.invert(this.dragInitialStartX+e)),endDate:this.fromFakeUtc(this.timeScale.invert(this.dragInitialEndX+e))});return}if(this.isDragging==="left"){if(this.dragInitialStartX+e>this.dragInitialEndX-this.columnWidth){const s=this.dragInitialStartX,n=this.dragInitialEndX;this.dragInitialStartX=n-this.columnWidth,this.dragInitialEndX=s+this.columnWidth,this.isDragging="right"}}else if(this.isDragging==="right"&&this.dragInitialEndX+e<this.dragInitialStartX+this.columnWidth){const s=this.dragInitialStartX,n=this.dragInitialEndX;this.dragInitialStartX=n-this.columnWidth,this.dragInitialEndX=s+this.columnWidth,this.isDragging="left"}if(this.isDragging==="left"){const r=Math.min(this.dragInitialStartX+e,this.dragInitialEndX-this.columnWidth);this.$emit("change",{startDate:this.fromFakeUtc(this.timeScale.invert(r)),endDate:this.fromFakeUtc(this.timeScale.invert(this.dragInitialEndX))})}else if(this.isDragging==="right"){const r=Math.max(this.dragInitialEndX+e,this.dragInitialStartX+this.columnWidth);this.$emit("change",{startDate:this.fromFakeUtc(this.timeScale.invert(this.dragInitialStartX)),endDate:this.fromFakeUtc(this.timeScale.invert(r))})}},onMouseUp(){if(this.isDragging==="zone"&&!this.zoneDragMoved){const{date:l,pixel:d}=this.snapToDay(this.clickSvgX),h=l.getUTCFullYear(),m=String(l.getUTCMonth()+1).padStart(2,"0"),b=String(l.getUTCDate()).padStart(2,"0"),C=`${h}-${m}-${b}`;if(!(this.selectableDates.length===0||this.selectableDates.includes(C))){this.isDragging=null,this.hoveredHandle=null,this.zoneDragMoved=!1,document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp);return}const v=new Date(Date.UTC(h,l.getUTCMonth(),l.getUTCDate()+1)),T={startDate:this.fromFakeUtc(l),endDate:this.fromFakeUtc(new Date(v.getTime()-1))};this.$emit("change",T),this.$emit("change-end",T),this.animateSnap(this.smoothStartX,d,this.smoothEndX,Math.round(this.timeScale(v))),this.isDragging=null,this.hoveredHandle=null,this.zoneDragMoved=!1,document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp);return}this.isDragging&&document.addEventListener("click",this.cancelNextClick,{capture:!0,once:!0});const e=this.startX,r=this.endX,{date:s,pixel:n}=this.snapToDay(e),{date:i,pixel:a}=this.snapToDay(r),c=new Date(i.getTime()-1),o={startDate:this.fromFakeUtc(s),endDate:this.fromFakeUtc(c)};this.$emit("change",o),this.$emit("change-end",o),this.animateSnap(e,n,r,a),this.isDragging=null,this.hoveredHandle=null,this.zoneDragMoved=!1,document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp)},cancelNextClick(t){t.stopPropagation(),t.preventDefault()},formatDateLabel(t,e=!1){const r=J.parseZone(t);return e?r.format("MMM D, YYYY"):r.format("MMM D")}}});var T9=function(){var e=this,r=e._self._c;return r("g",{staticClass:"e-coverage-brush"},[r("rect",{attrs:{x:e.smoothStartX,y:e.y,width:e.smoothCoverageWidth,height:e.curtainHeight,fill:e.color,"fill-opacity":"0.12","pointer-events":"none"}}),r("rect",{attrs:{x:e.smoothStartX,y:e.y,width:e.smoothCoverageWidth,height:e.curtainHeight,fill:"none",stroke:e.color,"stroke-width":"1",rx:"3","pointer-events":"none"}}),r("rect",{attrs:{x:e.smoothStartX,y:e.y,width:e.smoothCoverageWidth,height:e.curtainHeight,fill:"transparent",cursor:"col-resize"},on:{mousedown:function(s){return s.stopPropagation(),e.onCurtainMouseDown.apply(null,arguments)}}}),r("rect",{attrs:{x:e.smoothStartX-7,y:e.y,width:"14",height:e.curtainHeight,fill:"transparent",cursor:"ew-resize"},on:{mouseenter:function(s){e.hoveredHandle="left"},mouseleave:function(s){e.hoveredHandle=null},mousedown:function(s){return s.stopPropagation(),e.onLeftHandleMouseDown.apply(null,arguments)}}}),r("rect",{staticStyle:{transition:"opacity 0.15s ease"},attrs:{x:e.smoothStartX-2,y:e.handleY,width:"4",height:e.handleHeight,fill:e.color,opacity:e.leftHandleOpacity,rx:"1","pointer-events":"none"}}),r("rect",{attrs:{x:e.smoothEndX-7,y:e.y,width:"14",height:e.curtainHeight,fill:"transparent",cursor:"ew-resize"},on:{mouseenter:function(s){e.hoveredHandle="right"},mouseleave:function(s){e.hoveredHandle=null},mousedown:function(s){return s.stopPropagation(),e.onRightHandleMouseDown.apply(null,arguments)}}}),r("rect",{staticStyle:{transition:"opacity 0.15s ease"},attrs:{x:e.smoothEndX-2,y:e.handleY,width:"4",height:e.handleHeight,fill:e.color,opacity:e.rightHandleOpacity,rx:"1","pointer-events":"none"}}),e.handlesAreClose?[r("rect",{attrs:{x:(e.smoothStartX+e.smoothEndX)/2-e.combinedLabelWidth/2-5,y:e.y-20,width:e.combinedLabelWidth+10,height:"16",fill:e.color,rx:"3","pointer-events":"none"}}),r("text",{attrs:{x:(e.smoothStartX+e.smoothEndX)/2,y:e.y-8,"text-anchor":"middle","font-size":"11","font-weight":"500",fill:"white","pointer-events":"none"}},[e._v(e._s(e.combinedDateLabel))])]:[r("rect",{attrs:{x:e.smoothStartX-e.startLabelWidth/2-5,y:e.y-20,width:e.startLabelWidth+10,height:"16",fill:e.color,rx:"3","pointer-events":"none"}}),r("text",{attrs:{x:e.smoothStartX,y:e.y-8,"text-anchor":"middle","font-size":"11","font-weight":"500",fill:"white","pointer-events":"none"}},[e._v(e._s(e.startDateLabel))]),r("rect",{attrs:{x:e.smoothEndX-e.endLabelWidth/2-5,y:e.y-20,width:e.endLabelWidth+10,height:"16",fill:e.color,rx:"3","pointer-events":"none"}}),r("text",{attrs:{x:e.smoothEndX,y:e.y-8,"text-anchor":"middle","font-size":"11","font-weight":"500",fill:"white","pointer-events":"none"}},[e._v(e._s(e.endDateLabel))])]],2)},M9=[],$9=z(k9,T9,M9,!1,null,null,null,null);const E9=$9.exports,D9=E.extend({name:"ETimeline",directives:{resizeObserver:lt},components:{ETimelineSVGDefs:M4,EXAxisBackground:w4,EXAxisDetailed:v4,EXAxisOverview:h4,ETimelineMilestone:N6,ETimelineMarkers:Q6,ETimelineCursor:N4,ETimelineSelectedTimestampCursor:G4,EZoomBehavior:r4,ECursorBehavior:Q4,ETimelineRectsChart:dh,ETimelineForbiddenInterval:P4,ETimelineLinesChart:gh,ETimelineBarsChart:Ch,ECoverageRangeBrush:E9},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},labelWidth:{type:[Number,void 0],default:void 0},barHeight:{type:Number,default:18},barYPadding:{type:Number,default:0},chartMinHeight:{type:Number,default:60},minZoomDuration:{type:Number,default:0},chartMinLabelHeight:{type:Number,default:18},minDate:{type:String,default:void 0},selectableDates:{type:Array,default:()=>[]},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},coverageRange:{type:Object,default:null},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},transitionDuration:{type:Number,default:400},scalingDuration:{type:Number,default:400},highlightMilestoneOnMatchTimestamp:{type:Boolean,default:!1},axisHeight:{type:Number,default:22}},data(){return{mainContainer:null,tooltip:null,timeline:null,svgElement:null,svg:null,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,focusedTimestamp:null,hoveredGroupedEvents:null,TimelineChartType:ft,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,[ft.Bars,ft.Dots])},lineGraphGroups(){return this.getGroupByType(this.filteredEventsGroups,[ft.LineGraph])},barChartGroups(){return this.getGroupByType(this.filteredEventsGroups,[ft.BarChart])},milestonesGroups(){return this.getGroupByType(this.filteredEventsGroups,[ft.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,s)=>{var n;return Math.max(r,(n=s.label)==null?void 0:n.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(){var t;return this.showLabels?(t=this.labelWidth)!=null?t: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=new Date(this.visibleFrom),e=new Date(this.visibleTo),r=c=>{const o=new Date(c.startDate||c.timestamp),l=new Date(c.endDate||c.timestamp);return o<=e&&l>=t},s=this.flattenedBarsCounts.filter(r),n=this.flattenedLinesCounts.filter(r).map(c=>c.count),i={};s.forEach(c=>{const o=c.startDate||c.timestamp;i[o]=(i[o]||0)+c.count});const a=Object.values(i).concat(n);return k.max(a)||1},defaultMaxDomain(){const t=new Date(this.oldestEvent.timestamp||this.oldestEvent.startDate).getTime(),e=new Date(this.latestEvent.timestamp||this.latestEvent.endDate).getTime(),s=(e-t)*.75,n=new Date(t-s),i=new Date(e+s);return[n.toISOString(),i.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,s])=>(s.events.forEach(n=>{const i=n.timestamp||n.startDate;e[i]={...e[i]||{},[r]:n.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:s}){this.visibleFrom=t,this.visibleTo=e,this.$emit("visible-interval-change",{fromDate:t,toDate:e,trigger:r,transform:s})},getGroupByType(t,e){return Object.entries(t).reduce((r,[s,n])=>!n.chartType&&e.includes(ft.Bars)||e.includes(n.chartType)?{...r,[s]:n}:r,{})},getPreviousCountsByTimestamp(t){if(t===0)return{};const e=Object.fromEntries(Object.entries(this.barChartGroups).slice(0,t)),r=[...Object.values(e)].map(n=>n.events).flat(),s={};return r.forEach(n=>{const i=n.startDate||n.timestamp;s[i]=(s[i]||0)+n.count}),s},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=k.select(this.svgElement)},zoomToFitMarkers(){const t=this.markers.map(i=>new Date(i.timestamp).getTime());if(t.length<2)return;const e=Math.min(...t),r=Math.max(...t),s=new Date(e),n=new Date(r);this.focusedDomain=[s,n]},clearTimeline(){this.svg&&this.svg.remove()},handleMouseLeave(){this.$emit("hovered-timestamp",void 0)},handleMouseMove(t,e){var o;this.$emit("hovered-timestamp",e);const s=this.isHoveringEvent&&this.showEventTooltip?this.$refs.eventTooltip||this.$refs.tooltip:this.$refs.tooltip;if(!s)return;const i=(this.timeline||this.$refs.timelineContainer).getBoundingClientRect(),a=((o=s==null?void 0:s.getBoundingClientRect())==null?void 0:o.width)||180;let c=t-a/2;c<0&&(c=t),c+a>i.width&&(c=t-a),this.eventTooltipStyle={left:`${c}px`,zIndex:100,[this.tooltipPosition==="top"?"bottom":"top"]:`${i.height}px`}},isForbiddenInterval(t){const e=new Date(t).getTime(),r=this.forbiddenIntervals.some(i=>{const a=isNaN(new Date(i.startDate).getTime())?-1/0:new Date(i.startDate).getTime(),c=isNaN(new Date(i.endDate).getTime())?1/0:new Date(i.endDate).getTime();return e>=a&&e<=c});let s=!1;this.startDate&&(s=e<new Date(this.startDate).getTime());let n=!1;return this.endDate&&(n=e>new Date(this.endDate).getTime()),r||s||n},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((s,n)=>{var c;const[i,a]=n;return(c=this.hiddenGroupsLabels)!=null&&c.includes(i)?s:[...s,{type:i,count:a,label:this.getExternalLabelText(i)}]},[]),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,s;const t=this.startDate||((r=this.focusedInterval)==null?void 0:r.startDate)||this.defaultFocusedDomain[0],e=this.endDate||((s=this.focusedInterval)==null?void 0:s.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{[we.milestoneSelected]:[t.id,t.timestamp].includes(this.selectedMilestoneId)||this.highlightMilestoneOnMatchTimestamp&&Be(this.selectedTimestamp).isSame(t.timestamp)}},getMilestoneColors(t,e){return{background:t||e,border:this.getTextFillColor(t||e,.25)}},getMilestoneGroupYPosition(t){let e=0;for(const[r,s]of Object.entries(this.milestonesGroups)){if(r===t)break;e+=s.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[s,n]of Object.entries(this.barGroups)){if(s===t)break;!e&&n.bottom||(r+=this.getBarGroupHeight(n))}return r},getBarGroupHeight(t){return t.height?Math.max(t.height+this.barYPadding,1):this.barHeight+this.barYPadding},getTextFillColor(t,e=0){var r,s;return(this.dark?(r=k.color(t))==null?void 0:r.brighter(1.5+e):(s=k.color(t))==null?void 0:s.darker(2+e)).toString()},getLabelBackgroundColor(t){let e=k.color(t);return e.opacity=this.dark?.2:.5,e.toString()},getCurrentGroupVisibility(t){var s;const e=this.groupsVisibility[t];if(e!==void 0)return e;const r=(s=this.eventsGroups[t])==null?void 0:s.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 vt({timestamp:t,timezone:this.timezone})},getFormattedTimestamp(t){return Be.parseZone(t).format("YYYY-MM-DDTHH:mm:ss")},fillTimeGaps(t){if(t.length<=1)return t;const e=this.insertZerosAtInterval,r=i=>i.clone().add(1,e),s=i=>i.clone().subtract(1,e);let n=[];for(let i=0;i<t.length;i++){const a=t[i];if(n.push(a),i===t.length-1)break;const c=t[i+1],o=Be(a.timestamp),l=Be(c.timestamp);if(l.diff(o,e)>1){const d=r(o).toISOString(),h=s(l).toISOString();n.push({timestamp:d,count:0}),d!==h&&n.push({timestamp:h,count:0})}}if(this.flattenLineGraphEnds){const i=Be(t[0].timestamp),a=Be(t[t.length-1].timestamp),c=s(i).toISOString(),o=r(a).toISOString();n=[{timestamp:c,count:0},...n,{timestamp:o,count:0}]}return n},fillEvents(t){return this.placeholderLineChartGroup.map(e=>t.find(s=>s.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}))}}}),x_="";var L9=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,"scaling-duration":e.scalingDuration,"focused-timestamp":e.focusedTimestamp,timezone:e.timezone,width:e.width,disabled:e.locked,"min-zoom-duration":e.minZoomDuration},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:s}){return[s?r("div",{staticClass:"e-relative e-timeline e-border e-rounded",class:e.computedClasses.wrapper},[r("ECursorBehavior",{attrs:{"time-scale":s,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:n,isHoveringTimeline:i}){var a;return[r("ETimelineMarkers",{attrs:{markers:e.sortedMarkers,"sticky-markers":e.stickyMarkers,"time-scale":s,"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,o){return{key:o,fn:function(l){return[e._t(o,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"},[s?r("EXAxisOverview",{attrs:{"time-scale":s,height:e.timelineHeight,dark:e.dark}}):e._e(),s?r("EXAxisDetailed",{attrs:{"time-scale":s,height:e.timelineHeight-e.axisHeight,y:e.axisHeight,dark:e.dark}}):e._e(),s?r("EXAxisBackground",{attrs:{"time-scale":s,height:e.timelineHeight-e.combinedXAxesHeight,y:e.combinedXAxesHeight,dark:e.dark}}):e._e()],1),e.selectedTimestamp?r("ETimelineSelectedTimestampCursor",{attrs:{"time-scale":s,"selected-timestamp":e.selectedTimestamp,timezone:e.timezone,height:e.timelineHeight}}):e._e(),n&&i&&!e.isHoveringMilestone&&e.showCursor?r("ETimelineCursor",{attrs:{"time-scale":s,"selected-timestamp":n,timezone:e.timezone,height:e.timelineHeight}}):e._e(),e._l(e.forbiddenIntervals,function(c,o){return r("ETimelineForbiddenInterval",{key:o,attrs:{"time-scale":s,interval:c,index:o,height:e.timelineHeight,timezone:e.timezone}})}),e._l(e.barGroups,function(c,o){return r("ETimelineRectsChart",{key:o,attrs:{"time-scale":s,"events-group":c,"group-id":o,y:e.getBarGroupYPosition(o,c.bottom),height:e.barHeight,width:e.width,"rect-y-padding":e.barYPadding,dark:e.dark,"show-label":e.showLabels,"label-width":e.labelWidth,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,o){return r("ETimelineRectsChart",{key:o,attrs:{width:e.width,y:e.getMilestoneGroupYPosition(o),height:c.height,"group-id":o,"events-group":c,"time-scale":s,dark:e.dark,dots:!0,"show-label":!1}})}),e._l(e.insertZerosAtInterval?e.filledGapsLineGraphGroups:e.lineGraphGroups,function(c,o){return r("ETimelineLinesChart",{key:o,attrs:{"group-id":o,"time-scale":s,"events-group":c,y:e.getChartsYPosition(o),height:e.chartHeight,width:e.width,dark:e.dark,timezone:e.timezone,"show-label":e.showLabels,"label-height":e.chartLabelHeight,"label-width":e.labelWidth,"max-visible-count":e.maxVisibleCount,"y-offset":e.chartsYOffset,"hovered-timestamp":n},on:{"event-mouseover":e.handleChartMouseOver,"event-mouseout":e.handleChartMouseOut,"group-label-clicked":e.toggleGroupVisibility}})}),e._l(e.barChartGroups,function(c,o,l){return r("ETimelineBarsChart",{key:o,attrs:{"group-id":o,width:e.width,y:e.getChartsYPosition(o),height:e.chartHeight,"events-group":c,"time-scale":s,dark:e.dark,"y-offset":e.chartsYOffset,"label-height":e.chartLabelHeight,"label-width":e.labelWidth,"max-visible-count":e.maxVisibleCount,"show-label":e.showLabels,"hovered-timestamp":n,"previous-counts-by-timestamp":e.getPreviousCountsByTimestamp(l)},on:{"event-mouseover":e.handleChartMouseOver,"event-mouseout":e.handleChartMouseOut,"group-label-clicked":e.toggleGroupVisibility}})}),e.coverageRange&&s?r("ECoverageRangeBrush",{attrs:{"time-scale":s,"start-date":e.coverageRange.startDate,"end-date":e.coverageRange.endDate,height:e.timelineHeight,y:e.combinedXAxesHeight,"svg-width":e.width,"selectable-dates":e.selectableDates},on:{change:function(c){return e.$emit("coverage-range-preview",c)},"change-end":function(c){return e.$emit("coverage-range-change",c)},"date-click":e.handleClick}}):e._e()],2)]),e._l(e.milestonesGroups,function(c,o){return r("div",{key:`${o}`,staticClass:"e-timeline-milestones",attrs:{"data-test-id":"timeline-milestones"}},[r("div",{class:`e-tl-milestones e-tl-milestones-${o}`},e._l(e.getSortedEvents(c.events),function(l,d){return r("ETimelineMilestone",{key:`${l.milestoneType}-${d}`,class:e.getMilestoneClass(l),attrs:{"time-scale":s,y:e.getMilestoneGroupYPosition(o),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(h){return e.onMilestoneClick(l,o)}},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(o){return o.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:i&&!e.isHoveringEvent&&!e.isHoveringMilestone,expression:`
240
+ `+new Error().stack),r=!1}return e.apply(this,arguments)},e)}var To={};function Mo(t,e){J.deprecationHandler!=null&&J.deprecationHandler(t,e),To[t]||(ko(e),To[t]=!0)}J.suppressDeprecationWarnings=!1,J.deprecationHandler=null;function Et(t){return typeof Function!="undefined"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function Sh(t){var e,r;for(r in t)xe(t,r)&&(e=t[r],Et(e)?this[r]=e:this["_"+r]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function oi(t,e){var r=Zt({},t),s;for(s in e)xe(e,s)&&(Jt(t[s])&&Jt(e[s])?(r[s]={},Zt(r[s],t[s]),Zt(r[s],e[s])):e[s]!=null?r[s]=e[s]:delete r[s]);for(s in t)xe(t,s)&&!xe(e,s)&&Jt(t[s])&&(r[s]=Zt({},r[s]));return r}function li(t){t!=null&&this.set(t)}var ci;Object.keys?ci=Object.keys:ci=function(t){var e,r=[];for(e in t)xe(t,e)&&r.push(e);return r};var kh={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Th(t,e,r){var s=this._calendar[t]||this._calendar.sameElse;return Et(s)?s.call(e,r):s}function Dt(t,e,r){var s=""+Math.abs(t),n=e-s.length,i=t>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+s}var ui=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,us=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,di={},ur={};function oe(t,e,r,s){var n=s;typeof s=="string"&&(n=function(){return this[s]()}),t&&(ur[t]=n),e&&(ur[e[0]]=function(){return Dt(n.apply(this,arguments),e[1],e[2])}),r&&(ur[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),t)})}function Mh(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function $h(t){var e=t.match(ui),r,s;for(r=0,s=e.length;r<s;r++)ur[e[r]]?e[r]=ur[e[r]]:e[r]=Mh(e[r]);return function(n){var i="",a;for(a=0;a<s;a++)i+=Et(e[a])?e[a].call(n,t):e[a];return i}}function ds(t,e){return t.isValid()?(e=$o(e,t.localeData()),di[e]=di[e]||$h(e),di[e](t)):t.localeData().invalidDate()}function $o(t,e){var r=5;function s(n){return e.longDateFormat(n)||n}for(us.lastIndex=0;r>=0&&us.test(t);)t=t.replace(us,s),us.lastIndex=0,r-=1;return t}var Eh={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Dh(t){var e=this._longDateFormat[t],r=this._longDateFormat[t.toUpperCase()];return e||!r?e:(this._longDateFormat[t]=r.match(ui).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[t])}var Lh="Invalid date";function Ph(){return this._invalidDate}var Oh="%d",Ih=/\d{1,2}/;function zh(t){return this._ordinal.replace("%d",t)}var Rh={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Bh(t,e,r,s){var n=this._relativeTime[r];return Et(n)?n(t,e,r,s):n.replace(/%d/i,t)}function Fh(t,e){var r=this._relativeTime[t>0?"future":"past"];return Et(r)?r(e):r.replace(/%s/i,e)}var Pr={};function Ve(t,e){var r=t.toLowerCase();Pr[r]=Pr[r+"s"]=Pr[e]=t}function _t(t){return typeof t=="string"?Pr[t]||Pr[t.toLowerCase()]:void 0}function hi(t){var e={},r,s;for(s in t)xe(t,s)&&(r=_t(s),r&&(e[r]=t[s]));return e}var Eo={};function Qe(t,e){Eo[t]=e}function Ah(t){var e=[],r;for(r in t)xe(t,r)&&e.push({unit:r,priority:Eo[r]});return e.sort(function(s,n){return s.priority-n.priority}),e}function hs(t){return t%4===0&&t%100!==0||t%400===0}function bt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function ve(t){var e=+t,r=0;return e!==0&&isFinite(e)&&(r=bt(e)),r}function dr(t,e){return function(r){return r!=null?(Do(this,t,r),J.updateOffset(this,e),this):fs(this,t)}}function fs(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Do(t,e,r){t.isValid()&&!isNaN(r)&&(e==="FullYear"&&hs(t.year())&&t.month()===1&&t.date()===29?(r=ve(r),t._d["set"+(t._isUTC?"UTC":"")+e](r,t.month(),bs(r,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](r))}function Hh(t){return t=_t(t),Et(this[t])?this[t]():this}function Nh(t,e){if(typeof t=="object"){t=hi(t);var r=Ah(t),s,n=r.length;for(s=0;s<n;s++)this[r[s].unit](t[r[s].unit])}else if(t=_t(t),Et(this[t]))return this[t](e);return this}var Lo=/\d/,ct=/\d\d/,Po=/\d{3}/,fi=/\d{4}/,ps=/[+-]?\d{6}/,Le=/\d\d?/,Oo=/\d\d\d\d?/,Io=/\d\d\d\d\d\d?/,ms=/\d{1,3}/,pi=/\d{1,4}/,gs=/[+-]?\d{1,6}/,hr=/\d+/,vs=/[+-]?\d+/,Wh=/Z|[+-]\d\d:?\d\d/gi,ys=/Z|[+-]\d\d(?::?\d\d)?/gi,Yh=/[+-]?\d+(\.\d{1,3})?/,Or=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,_s;_s={};function re(t,e,r){_s[t]=Et(e)?e:function(s,n){return s&&r?r:e}}function jh(t,e){return xe(_s,t)?_s[t](e._strict,e._locale):new RegExp(Uh(t))}function Uh(t){return ut(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,r,s,n,i){return r||s||n||i}))}function ut(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var mi={};function Te(t,e){var r,s=e,n;for(typeof t=="string"&&(t=[t]),It(e)&&(s=function(i,a){a[e]=ve(i)}),n=t.length,r=0;r<n;r++)mi[t[r]]=s}function Ir(t,e){Te(t,function(r,s,n,i){n._w=n._w||{},e(r,n._w,n,i)})}function Gh(t,e,r){e!=null&&xe(mi,t)&&mi[t](e,r._a,r,t)}var Ke=0,zt=1,Lt=2,Ne=3,St=4,Rt=5,er=6,qh=7,Zh=8;function Xh(t,e){return(t%e+e)%e}var He;Array.prototype.indexOf?He=Array.prototype.indexOf:He=function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};function bs(t,e){if(isNaN(t)||isNaN(e))return NaN;var r=Xh(e,12);return t+=(e-r)/12,r===1?hs(t)?29:28:31-r%7%2}oe("M",["MM",2],"Mo",function(){return this.month()+1}),oe("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),oe("MMMM",0,0,function(t){return this.localeData().months(this,t)}),Ve("month","M"),Qe("month",8),re("M",Le),re("MM",Le,ct),re("MMM",function(t,e){return e.monthsShortRegex(t)}),re("MMMM",function(t,e){return e.monthsRegex(t)}),Te(["M","MM"],function(t,e){e[zt]=ve(t)-1}),Te(["MMM","MMMM"],function(t,e,r,s){var n=r._locale.monthsParse(t,s,r._strict);n!=null?e[zt]=n:ge(r).invalidMonth=t});var Vh="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),zo="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ro=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Qh=Or,Kh=Or;function Jh(t,e){return t?wt(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ro).test(e)?"format":"standalone"][t.month()]:wt(this._months)?this._months:this._months.standalone}function e8(t,e){return t?wt(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ro.test(e)?"format":"standalone"][t.month()]:wt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function t8(t,e,r){var s,n,i,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)i=$t([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(i,"").toLocaleLowerCase();return r?e==="MMM"?(n=He.call(this._shortMonthsParse,a),n!==-1?n:null):(n=He.call(this._longMonthsParse,a),n!==-1?n:null):e==="MMM"?(n=He.call(this._shortMonthsParse,a),n!==-1?n:(n=He.call(this._longMonthsParse,a),n!==-1?n:null)):(n=He.call(this._longMonthsParse,a),n!==-1?n:(n=He.call(this._shortMonthsParse,a),n!==-1?n:null))}function r8(t,e,r){var s,n,i;if(this._monthsParseExact)return t8.call(this,t,e,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(n=$t([2e3,s]),r&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!r&&!this._monthsParse[s]&&(i="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[s]=new RegExp(i.replace(".",""),"i")),r&&e==="MMMM"&&this._longMonthsParse[s].test(t))return s;if(r&&e==="MMM"&&this._shortMonthsParse[s].test(t))return s;if(!r&&this._monthsParse[s].test(t))return s}}function Bo(t,e){var r;if(!t.isValid())return t;if(typeof e=="string"){if(/^\d+$/.test(e))e=ve(e);else if(e=t.localeData().monthsParse(e),!It(e))return t}return r=Math.min(t.date(),bs(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,r),t}function Fo(t){return t!=null?(Bo(this,t),J.updateOffset(this,!0),this):fs(this,"Month")}function s8(){return bs(this.year(),this.month())}function n8(t){return this._monthsParseExact?(xe(this,"_monthsRegex")||Ao.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(xe(this,"_monthsShortRegex")||(this._monthsShortRegex=Qh),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function i8(t){return this._monthsParseExact?(xe(this,"_monthsRegex")||Ao.call(this),t?this._monthsStrictRegex:this._monthsRegex):(xe(this,"_monthsRegex")||(this._monthsRegex=Kh),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function Ao(){function t(a,c){return c.length-a.length}var e=[],r=[],s=[],n,i;for(n=0;n<12;n++)i=$t([2e3,n]),e.push(this.monthsShort(i,"")),r.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(e.sort(t),r.sort(t),s.sort(t),n=0;n<12;n++)e[n]=ut(e[n]),r[n]=ut(r[n]);for(n=0;n<24;n++)s[n]=ut(s[n]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}oe("Y",0,0,function(){var t=this.year();return t<=9999?Dt(t,4):"+"+t}),oe(0,["YY",2],0,function(){return this.year()%100}),oe(0,["YYYY",4],0,"year"),oe(0,["YYYYY",5],0,"year"),oe(0,["YYYYYY",6,!0],0,"year"),Ve("year","y"),Qe("year",1),re("Y",vs),re("YY",Le,ct),re("YYYY",pi,fi),re("YYYYY",gs,ps),re("YYYYYY",gs,ps),Te(["YYYYY","YYYYYY"],Ke),Te("YYYY",function(t,e){e[Ke]=t.length===2?J.parseTwoDigitYear(t):ve(t)}),Te("YY",function(t,e){e[Ke]=J.parseTwoDigitYear(t)}),Te("Y",function(t,e){e[Ke]=parseInt(t,10)});function zr(t){return hs(t)?366:365}J.parseTwoDigitYear=function(t){return ve(t)+(ve(t)>68?1900:2e3)};var Ho=dr("FullYear",!0);function a8(){return hs(this.year())}function o8(t,e,r,s,n,i,a){var c;return t<100&&t>=0?(c=new Date(t+400,e,r,s,n,i,a),isFinite(c.getFullYear())&&c.setFullYear(t)):c=new Date(t,e,r,s,n,i,a),c}function Rr(t){var e,r;return t<100&&t>=0?(r=Array.prototype.slice.call(arguments),r[0]=t+400,e=new Date(Date.UTC.apply(null,r)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Cs(t,e,r){var s=7+e-r,n=(7+Rr(t,0,s).getUTCDay()-e)%7;return-n+s-1}function No(t,e,r,s,n){var i=(7+r-s)%7,a=Cs(t,s,n),c=1+7*(e-1)+i+a,o,l;return c<=0?(o=t-1,l=zr(o)+c):c>zr(t)?(o=t+1,l=c-zr(t)):(o=t,l=c),{year:o,dayOfYear:l}}function Br(t,e,r){var s=Cs(t.year(),e,r),n=Math.floor((t.dayOfYear()-s-1)/7)+1,i,a;return n<1?(a=t.year()-1,i=n+Bt(a,e,r)):n>Bt(t.year(),e,r)?(i=n-Bt(t.year(),e,r),a=t.year()+1):(a=t.year(),i=n),{week:i,year:a}}function Bt(t,e,r){var s=Cs(t,e,r),n=Cs(t+1,e,r);return(zr(t)-s+n)/7}oe("w",["ww",2],"wo","week"),oe("W",["WW",2],"Wo","isoWeek"),Ve("week","w"),Ve("isoWeek","W"),Qe("week",5),Qe("isoWeek",5),re("w",Le),re("ww",Le,ct),re("W",Le),re("WW",Le,ct),Ir(["w","ww","W","WW"],function(t,e,r,s){e[s.substr(0,1)]=ve(t)});function l8(t){return Br(t,this._week.dow,this._week.doy).week}var c8={dow:0,doy:6};function u8(){return this._week.dow}function d8(){return this._week.doy}function h8(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function f8(t){var e=Br(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}oe("d",0,"do","day"),oe("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),oe("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),oe("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),oe("e",0,0,"weekday"),oe("E",0,0,"isoWeekday"),Ve("day","d"),Ve("weekday","e"),Ve("isoWeekday","E"),Qe("day",11),Qe("weekday",11),Qe("isoWeekday",11),re("d",Le),re("e",Le),re("E",Le),re("dd",function(t,e){return e.weekdaysMinRegex(t)}),re("ddd",function(t,e){return e.weekdaysShortRegex(t)}),re("dddd",function(t,e){return e.weekdaysRegex(t)}),Ir(["dd","ddd","dddd"],function(t,e,r,s){var n=r._locale.weekdaysParse(t,s,r._strict);n!=null?e.d=n:ge(r).invalidWeekday=t}),Ir(["d","e","E"],function(t,e,r,s){e[s]=ve(t)});function p8(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function m8(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function gi(t,e){return t.slice(e,7).concat(t.slice(0,e))}var g8="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Wo="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),v8="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),y8=Or,_8=Or,b8=Or;function C8(t,e){var r=wt(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?gi(r,this._week.dow):t?r[t.day()]:r}function w8(t){return t===!0?gi(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function x8(t){return t===!0?gi(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function S8(t,e,r){var s,n,i,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)i=$t([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(i,"").toLocaleLowerCase();return r?e==="dddd"?(n=He.call(this._weekdaysParse,a),n!==-1?n:null):e==="ddd"?(n=He.call(this._shortWeekdaysParse,a),n!==-1?n:null):(n=He.call(this._minWeekdaysParse,a),n!==-1?n:null):e==="dddd"?(n=He.call(this._weekdaysParse,a),n!==-1||(n=He.call(this._shortWeekdaysParse,a),n!==-1)?n:(n=He.call(this._minWeekdaysParse,a),n!==-1?n:null)):e==="ddd"?(n=He.call(this._shortWeekdaysParse,a),n!==-1||(n=He.call(this._weekdaysParse,a),n!==-1)?n:(n=He.call(this._minWeekdaysParse,a),n!==-1?n:null)):(n=He.call(this._minWeekdaysParse,a),n!==-1||(n=He.call(this._weekdaysParse,a),n!==-1)?n:(n=He.call(this._shortWeekdaysParse,a),n!==-1?n:null))}function k8(t,e,r){var s,n,i;if(this._weekdaysParseExact)return S8.call(this,t,e,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(n=$t([2e3,1]).day(s),r&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[s]=new RegExp(i.replace(".",""),"i")),r&&e==="dddd"&&this._fullWeekdaysParse[s].test(t))return s;if(r&&e==="ddd"&&this._shortWeekdaysParse[s].test(t))return s;if(r&&e==="dd"&&this._minWeekdaysParse[s].test(t))return s;if(!r&&this._weekdaysParse[s].test(t))return s}}function T8(t){if(!this.isValid())return t!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return t!=null?(t=p8(t,this.localeData()),this.add(t-e,"d")):e}function M8(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function $8(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=m8(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function E8(t){return this._weekdaysParseExact?(xe(this,"_weekdaysRegex")||vi.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(xe(this,"_weekdaysRegex")||(this._weekdaysRegex=y8),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function D8(t){return this._weekdaysParseExact?(xe(this,"_weekdaysRegex")||vi.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(xe(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=_8),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function L8(t){return this._weekdaysParseExact?(xe(this,"_weekdaysRegex")||vi.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(xe(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=b8),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function vi(){function t(d,h){return h.length-d.length}var e=[],r=[],s=[],n=[],i,a,c,o,l;for(i=0;i<7;i++)a=$t([2e3,1]).day(i),c=ut(this.weekdaysMin(a,"")),o=ut(this.weekdaysShort(a,"")),l=ut(this.weekdays(a,"")),e.push(c),r.push(o),s.push(l),n.push(c),n.push(o),n.push(l);e.sort(t),r.sort(t),s.sort(t),n.sort(t),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function yi(){return this.hours()%12||12}function P8(){return this.hours()||24}oe("H",["HH",2],0,"hour"),oe("h",["hh",2],0,yi),oe("k",["kk",2],0,P8),oe("hmm",0,0,function(){return""+yi.apply(this)+Dt(this.minutes(),2)}),oe("hmmss",0,0,function(){return""+yi.apply(this)+Dt(this.minutes(),2)+Dt(this.seconds(),2)}),oe("Hmm",0,0,function(){return""+this.hours()+Dt(this.minutes(),2)}),oe("Hmmss",0,0,function(){return""+this.hours()+Dt(this.minutes(),2)+Dt(this.seconds(),2)});function Yo(t,e){oe(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}Yo("a",!0),Yo("A",!1),Ve("hour","h"),Qe("hour",13);function jo(t,e){return e._meridiemParse}re("a",jo),re("A",jo),re("H",Le),re("h",Le),re("k",Le),re("HH",Le,ct),re("hh",Le,ct),re("kk",Le,ct),re("hmm",Oo),re("hmmss",Io),re("Hmm",Oo),re("Hmmss",Io),Te(["H","HH"],Ne),Te(["k","kk"],function(t,e,r){var s=ve(t);e[Ne]=s===24?0:s}),Te(["a","A"],function(t,e,r){r._isPm=r._locale.isPM(t),r._meridiem=t}),Te(["h","hh"],function(t,e,r){e[Ne]=ve(t),ge(r).bigHour=!0}),Te("hmm",function(t,e,r){var s=t.length-2;e[Ne]=ve(t.substr(0,s)),e[St]=ve(t.substr(s)),ge(r).bigHour=!0}),Te("hmmss",function(t,e,r){var s=t.length-4,n=t.length-2;e[Ne]=ve(t.substr(0,s)),e[St]=ve(t.substr(s,2)),e[Rt]=ve(t.substr(n)),ge(r).bigHour=!0}),Te("Hmm",function(t,e,r){var s=t.length-2;e[Ne]=ve(t.substr(0,s)),e[St]=ve(t.substr(s))}),Te("Hmmss",function(t,e,r){var s=t.length-4,n=t.length-2;e[Ne]=ve(t.substr(0,s)),e[St]=ve(t.substr(s,2)),e[Rt]=ve(t.substr(n))});function O8(t){return(t+"").toLowerCase().charAt(0)==="p"}var I8=/[ap]\.?m?\.?/i,z8=dr("Hours",!0);function R8(t,e,r){return t>11?r?"pm":"PM":r?"am":"AM"}var Uo={calendar:kh,longDateFormat:Eh,invalidDate:Lh,ordinal:Oh,dayOfMonthOrdinalParse:Ih,relativeTime:Rh,months:Vh,monthsShort:zo,week:c8,weekdays:g8,weekdaysMin:v8,weekdaysShort:Wo,meridiemParse:I8},Ie={},Fr={},Ar;function B8(t,e){var r,s=Math.min(t.length,e.length);for(r=0;r<s;r+=1)if(t[r]!==e[r])return r;return s}function Go(t){return t&&t.toLowerCase().replace("_","-")}function F8(t){for(var e=0,r,s,n,i;e<t.length;){for(i=Go(t[e]).split("-"),r=i.length,s=Go(t[e+1]),s=s?s.split("-"):null;r>0;){if(n=ws(i.slice(0,r).join("-")),n)return n;if(s&&s.length>=r&&B8(i,s)>=r-1)break;r--}e++}return Ar}function A8(t){return t.match("^[^/\\\\]*$")!=null}function ws(t){var e=null,r;if(Ie[t]===void 0&&typeof module!="undefined"&&module&&module.exports&&A8(t))try{e=Ar._abbr,r=require,r("./locale/"+t),Xt(e)}catch{Ie[t]=null}return Ie[t]}function Xt(t,e){var r;return t&&(nt(e)?r=Ft(t):r=_i(t,e),r?Ar=r:typeof console!="undefined"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Ar._abbr}function _i(t,e){if(e!==null){var r,s=Uo;if(e.abbr=t,Ie[t]!=null)Mo("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=Ie[t]._config;else if(e.parentLocale!=null)if(Ie[e.parentLocale]!=null)s=Ie[e.parentLocale]._config;else if(r=ws(e.parentLocale),r!=null)s=r._config;else return Fr[e.parentLocale]||(Fr[e.parentLocale]=[]),Fr[e.parentLocale].push({name:t,config:e}),null;return Ie[t]=new li(oi(s,e)),Fr[t]&&Fr[t].forEach(function(n){_i(n.name,n.config)}),Xt(t),Ie[t]}else return delete Ie[t],null}function H8(t,e){if(e!=null){var r,s,n=Uo;Ie[t]!=null&&Ie[t].parentLocale!=null?Ie[t].set(oi(Ie[t]._config,e)):(s=ws(t),s!=null&&(n=s._config),e=oi(n,e),s==null&&(e.abbr=t),r=new li(e),r.parentLocale=Ie[t],Ie[t]=r),Xt(t)}else Ie[t]!=null&&(Ie[t].parentLocale!=null?(Ie[t]=Ie[t].parentLocale,t===Xt()&&Xt(t)):Ie[t]!=null&&delete Ie[t]);return Ie[t]}function Ft(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Ar;if(!wt(t)){if(e=ws(t),e)return e;t=[t]}return F8(t)}function N8(){return ci(Ie)}function bi(t){var e,r=t._a;return r&&ge(t).overflow===-2&&(e=r[zt]<0||r[zt]>11?zt:r[Lt]<1||r[Lt]>bs(r[Ke],r[zt])?Lt:r[Ne]<0||r[Ne]>24||r[Ne]===24&&(r[St]!==0||r[Rt]!==0||r[er]!==0)?Ne:r[St]<0||r[St]>59?St:r[Rt]<0||r[Rt]>59?Rt:r[er]<0||r[er]>999?er:-1,ge(t)._overflowDayOfYear&&(e<Ke||e>Lt)&&(e=Lt),ge(t)._overflowWeeks&&e===-1&&(e=qh),ge(t)._overflowWeekday&&e===-1&&(e=Zh),ge(t).overflow=e),t}var W8=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Y8=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,j8=/Z|[+-]\d\d(?::?\d\d)?/,xs=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ci=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],U8=/^\/?Date\((-?\d+)/i,G8=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,q8={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function qo(t){var e,r,s=t._i,n=W8.exec(s)||Y8.exec(s),i,a,c,o,l=xs.length,d=Ci.length;if(n){for(ge(t).iso=!0,e=0,r=l;e<r;e++)if(xs[e][1].exec(n[1])){a=xs[e][0],i=xs[e][2]!==!1;break}if(a==null){t._isValid=!1;return}if(n[3]){for(e=0,r=d;e<r;e++)if(Ci[e][1].exec(n[3])){c=(n[2]||" ")+Ci[e][0];break}if(c==null){t._isValid=!1;return}}if(!i&&c!=null){t._isValid=!1;return}if(n[4])if(j8.exec(n[4]))o="Z";else{t._isValid=!1;return}t._f=a+(c||"")+(o||""),xi(t)}else t._isValid=!1}function Z8(t,e,r,s,n,i){var a=[X8(t),zo.indexOf(e),parseInt(r,10),parseInt(s,10),parseInt(n,10)];return i&&a.push(parseInt(i,10)),a}function X8(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function V8(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Q8(t,e,r){if(t){var s=Wo.indexOf(t),n=new Date(e[0],e[1],e[2]).getDay();if(s!==n)return ge(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function K8(t,e,r){if(t)return q8[t];if(e)return 0;var s=parseInt(r,10),n=s%100,i=(s-n)/100;return i*60+n}function Zo(t){var e=G8.exec(V8(t._i)),r;if(e){if(r=Z8(e[4],e[3],e[2],e[5],e[6],e[7]),!Q8(e[1],r,t))return;t._a=r,t._tzm=K8(e[8],e[9],e[10]),t._d=Rr.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),ge(t).rfc2822=!0}else t._isValid=!1}function J8(t){var e=U8.exec(t._i);if(e!==null){t._d=new Date(+e[1]);return}if(qo(t),t._isValid===!1)delete t._isValid;else return;if(Zo(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:J.createFromInputFallback(t)}J.createFromInputFallback=yt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function fr(t,e,r){return t!=null?t:e!=null?e:r}function e7(t){var e=new Date(J.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function wi(t){var e,r,s=[],n,i,a;if(!t._d){for(n=e7(t),t._w&&t._a[Lt]==null&&t._a[zt]==null&&t7(t),t._dayOfYear!=null&&(a=fr(t._a[Ke],n[Ke]),(t._dayOfYear>zr(a)||t._dayOfYear===0)&&(ge(t)._overflowDayOfYear=!0),r=Rr(a,0,t._dayOfYear),t._a[zt]=r.getUTCMonth(),t._a[Lt]=r.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=s[e]=n[e];for(;e<7;e++)t._a[e]=s[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[Ne]===24&&t._a[St]===0&&t._a[Rt]===0&&t._a[er]===0&&(t._nextDay=!0,t._a[Ne]=0),t._d=(t._useUTC?Rr:o8).apply(null,s),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Ne]=24),t._w&&typeof t._w.d!="undefined"&&t._w.d!==i&&(ge(t).weekdayMismatch=!0)}}function t7(t){var e,r,s,n,i,a,c,o,l;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,a=4,r=fr(e.GG,t._a[Ke],Br(Pe(),1,4).year),s=fr(e.W,1),n=fr(e.E,1),(n<1||n>7)&&(o=!0)):(i=t._locale._week.dow,a=t._locale._week.doy,l=Br(Pe(),i,a),r=fr(e.gg,t._a[Ke],l.year),s=fr(e.w,l.week),e.d!=null?(n=e.d,(n<0||n>6)&&(o=!0)):e.e!=null?(n=e.e+i,(e.e<0||e.e>6)&&(o=!0)):n=i),s<1||s>Bt(r,i,a)?ge(t)._overflowWeeks=!0:o!=null?ge(t)._overflowWeekday=!0:(c=No(r,s,n,i,a),t._a[Ke]=c.year,t._dayOfYear=c.dayOfYear)}J.ISO_8601=function(){},J.RFC_2822=function(){};function xi(t){if(t._f===J.ISO_8601){qo(t);return}if(t._f===J.RFC_2822){Zo(t);return}t._a=[],ge(t).empty=!0;var e=""+t._i,r,s,n,i,a,c=e.length,o=0,l,d;for(n=$o(t._f,t._locale).match(ui)||[],d=n.length,r=0;r<d;r++)i=n[r],s=(e.match(jh(i,t))||[])[0],s&&(a=e.substr(0,e.indexOf(s)),a.length>0&&ge(t).unusedInput.push(a),e=e.slice(e.indexOf(s)+s.length),o+=s.length),ur[i]?(s?ge(t).empty=!1:ge(t).unusedTokens.push(i),Gh(i,s,t)):t._strict&&!s&&ge(t).unusedTokens.push(i);ge(t).charsLeftOver=c-o,e.length>0&&ge(t).unusedInput.push(e),t._a[Ne]<=12&&ge(t).bigHour===!0&&t._a[Ne]>0&&(ge(t).bigHour=void 0),ge(t).parsedDateParts=t._a.slice(0),ge(t).meridiem=t._meridiem,t._a[Ne]=r7(t._locale,t._a[Ne],t._meridiem),l=ge(t).era,l!==null&&(t._a[Ke]=t._locale.erasConvertYear(l,t._a[Ke])),wi(t),bi(t)}function r7(t,e,r){var s;return r==null?e:t.meridiemHour!=null?t.meridiemHour(e,r):(t.isPM!=null&&(s=t.isPM(r),s&&e<12&&(e+=12),!s&&e===12&&(e=0)),e)}function s7(t){var e,r,s,n,i,a,c=!1,o=t._f.length;if(o===0){ge(t).invalidFormat=!0,t._d=new Date(NaN);return}for(n=0;n<o;n++)i=0,a=!1,e=ai({},t),t._useUTC!=null&&(e._useUTC=t._useUTC),e._f=t._f[n],xi(e),ni(e)&&(a=!0),i+=ge(e).charsLeftOver,i+=ge(e).unusedTokens.length*10,ge(e).score=i,c?i<s&&(s=i,r=e):(s==null||i<s||a)&&(s=i,r=e,a&&(c=!0));Zt(t,r||e)}function n7(t){if(!t._d){var e=hi(t._i),r=e.day===void 0?e.date:e.day;t._a=xo([e.year,e.month,r,e.hour,e.minute,e.second,e.millisecond],function(s){return s&&parseInt(s,10)}),wi(t)}}function i7(t){var e=new Lr(bi(Xo(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Xo(t){var e=t._i,r=t._f;return t._locale=t._locale||Ft(t._l),e===null||r===void 0&&e===""?cs({nullInput:!0}):(typeof e=="string"&&(t._i=e=t._locale.preparse(e)),xt(e)?new Lr(bi(e)):(Dr(e)?t._d=e:wt(r)?s7(t):r?xi(t):a7(t),ni(t)||(t._d=null),t))}function a7(t){var e=t._i;nt(e)?t._d=new Date(J.now()):Dr(e)?t._d=new Date(e.valueOf()):typeof e=="string"?J8(t):wt(e)?(t._a=xo(e.slice(0),function(r){return parseInt(r,10)}),wi(t)):Jt(e)?n7(t):It(e)?t._d=new Date(e):J.createFromInputFallback(t)}function Vo(t,e,r,s,n){var i={};return(e===!0||e===!1)&&(s=e,e=void 0),(r===!0||r===!1)&&(s=r,r=void 0),(Jt(t)&&ri(t)||wt(t)&&t.length===0)&&(t=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=n,i._l=r,i._i=t,i._f=e,i._strict=s,i7(i)}function Pe(t,e,r,s){return Vo(t,e,r,s,!1)}var o7=yt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Pe.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:cs()}),l7=yt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Pe.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:cs()});function Qo(t,e){var r,s;if(e.length===1&&wt(e[0])&&(e=e[0]),!e.length)return Pe();for(r=e[0],s=1;s<e.length;++s)(!e[s].isValid()||e[s][t](r))&&(r=e[s]);return r}function c7(){var t=[].slice.call(arguments,0);return Qo("isBefore",t)}function u7(){var t=[].slice.call(arguments,0);return Qo("isAfter",t)}var d7=function(){return Date.now?Date.now():+new Date},Hr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function h7(t){var e,r=!1,s,n=Hr.length;for(e in t)if(xe(t,e)&&!(He.call(Hr,e)!==-1&&(t[e]==null||!isNaN(t[e]))))return!1;for(s=0;s<n;++s)if(t[Hr[s]]){if(r)return!1;parseFloat(t[Hr[s]])!==ve(t[Hr[s]])&&(r=!0)}return!0}function f7(){return this._isValid}function p7(){return kt(NaN)}function Ss(t){var e=hi(t),r=e.year||0,s=e.quarter||0,n=e.month||0,i=e.week||e.isoWeek||0,a=e.day||0,c=e.hour||0,o=e.minute||0,l=e.second||0,d=e.millisecond||0;this._isValid=h7(e),this._milliseconds=+d+l*1e3+o*6e4+c*1e3*60*60,this._days=+a+i*7,this._months=+n+s*3+r*12,this._data={},this._locale=Ft(),this._bubble()}function ks(t){return t instanceof Ss}function Si(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function m7(t,e,r){var s=Math.min(t.length,e.length),n=Math.abs(t.length-e.length),i=0,a;for(a=0;a<s;a++)(r&&t[a]!==e[a]||!r&&ve(t[a])!==ve(e[a]))&&i++;return i+n}function Ko(t,e){oe(t,0,0,function(){var r=this.utcOffset(),s="+";return r<0&&(r=-r,s="-"),s+Dt(~~(r/60),2)+e+Dt(~~r%60,2)})}Ko("Z",":"),Ko("ZZ",""),re("Z",ys),re("ZZ",ys),Te(["Z","ZZ"],function(t,e,r){r._useUTC=!0,r._tzm=ki(ys,t)});var g7=/([\+\-]|\d\d)/gi;function ki(t,e){var r=(e||"").match(t),s,n,i;return r===null?null:(s=r[r.length-1]||[],n=(s+"").match(g7)||["-",0,0],i=+(n[1]*60)+ve(n[2]),i===0?0:n[0]==="+"?i:-i)}function Ti(t,e){var r,s;return e._isUTC?(r=e.clone(),s=(xt(t)||Dr(t)?t.valueOf():Pe(t).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+s),J.updateOffset(r,!1),r):Pe(t).local()}function Mi(t){return-Math.round(t._d.getTimezoneOffset())}J.updateOffset=function(){};function v7(t,e,r){var s=this._offset||0,n;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=ki(ys,t),t===null)return this}else Math.abs(t)<16&&!r&&(t=t*60);return!this._isUTC&&e&&(n=Mi(this)),this._offset=t,this._isUTC=!0,n!=null&&this.add(n,"m"),s!==t&&(!e||this._changeInProgress?rl(this,kt(t-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,J.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:Mi(this)}function y7(t,e){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function _7(t){return this.utcOffset(0,t)}function b7(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Mi(this),"m")),this}function C7(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=ki(Wh,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function w7(t){return this.isValid()?(t=t?Pe(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function x7(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function S7(){if(!nt(this._isDSTShifted))return this._isDSTShifted;var t={},e;return ai(t,this),t=Xo(t),t._a?(e=t._isUTC?$t(t._a):Pe(t._a),this._isDSTShifted=this.isValid()&&m7(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function k7(){return this.isValid()?!this._isUTC:!1}function T7(){return this.isValid()?this._isUTC:!1}function Jo(){return this.isValid()?this._isUTC&&this._offset===0:!1}var M7=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,$7=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function kt(t,e){var r=t,s=null,n,i,a;return ks(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:It(t)||!isNaN(+t)?(r={},e?r[e]=+t:r.milliseconds=+t):(s=M7.exec(t))?(n=s[1]==="-"?-1:1,r={y:0,d:ve(s[Lt])*n,h:ve(s[Ne])*n,m:ve(s[St])*n,s:ve(s[Rt])*n,ms:ve(Si(s[er]*1e3))*n}):(s=$7.exec(t))?(n=s[1]==="-"?-1:1,r={y:tr(s[2],n),M:tr(s[3],n),w:tr(s[4],n),d:tr(s[5],n),h:tr(s[6],n),m:tr(s[7],n),s:tr(s[8],n)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(a=E7(Pe(r.from),Pe(r.to)),r={},r.ms=a.milliseconds,r.M=a.months),i=new Ss(r),ks(t)&&xe(t,"_locale")&&(i._locale=t._locale),ks(t)&&xe(t,"_isValid")&&(i._isValid=t._isValid),i}kt.fn=Ss.prototype,kt.invalid=p7;function tr(t,e){var r=t&&parseFloat(t.replace(",","."));return(isNaN(r)?0:r)*e}function el(t,e){var r={};return r.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(r.months,"M").isAfter(e)&&--r.months,r.milliseconds=+e-+t.clone().add(r.months,"M"),r}function E7(t,e){var r;return t.isValid()&&e.isValid()?(e=Ti(e,t),t.isBefore(e)?r=el(t,e):(r=el(e,t),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function tl(t,e){return function(r,s){var n,i;return s!==null&&!isNaN(+s)&&(Mo(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=s,s=i),n=kt(r,s),rl(this,n,t),this}}function rl(t,e,r,s){var n=e._milliseconds,i=Si(e._days),a=Si(e._months);t.isValid()&&(s=s==null?!0:s,a&&Bo(t,fs(t,"Month")+a*r),i&&Do(t,"Date",fs(t,"Date")+i*r),n&&t._d.setTime(t._d.valueOf()+n*r),s&&J.updateOffset(t,i||a))}var D7=tl(1,"add"),L7=tl(-1,"subtract");function sl(t){return typeof t=="string"||t instanceof String}function P7(t){return xt(t)||Dr(t)||sl(t)||It(t)||I7(t)||O7(t)||t===null||t===void 0}function O7(t){var e=Jt(t)&&!ri(t),r=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,i,a=s.length;for(n=0;n<a;n+=1)i=s[n],r=r||xe(t,i);return e&&r}function I7(t){var e=wt(t),r=!1;return e&&(r=t.filter(function(s){return!It(s)&&sl(t)}).length===0),e&&r}function z7(t){var e=Jt(t)&&!ri(t),r=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,i;for(n=0;n<s.length;n+=1)i=s[n],r=r||xe(t,i);return e&&r}function R7(t,e){var r=t.diff(e,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function B7(t,e){arguments.length===1&&(arguments[0]?P7(arguments[0])?(t=arguments[0],e=void 0):z7(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var r=t||Pe(),s=Ti(r,this).startOf("day"),n=J.calendarFormat(this,s)||"sameElse",i=e&&(Et(e[n])?e[n].call(this,r):e[n]);return this.format(i||this.localeData().calendar(n,this,Pe(r)))}function F7(){return new Lr(this)}function A7(t,e){var r=xt(t)?t:Pe(t);return this.isValid()&&r.isValid()?(e=_t(e)||"millisecond",e==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(e).valueOf()):!1}function H7(t,e){var r=xt(t)?t:Pe(t);return this.isValid()&&r.isValid()?(e=_t(e)||"millisecond",e==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(e).valueOf()<r.valueOf()):!1}function N7(t,e,r,s){var n=xt(t)?t:Pe(t),i=xt(e)?e:Pe(e);return this.isValid()&&n.isValid()&&i.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(n,r):!this.isBefore(n,r))&&(s[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))):!1}function W7(t,e){var r=xt(t)?t:Pe(t),s;return this.isValid()&&r.isValid()?(e=_t(e)||"millisecond",e==="millisecond"?this.valueOf()===r.valueOf():(s=r.valueOf(),this.clone().startOf(e).valueOf()<=s&&s<=this.clone().endOf(e).valueOf())):!1}function Y7(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function j7(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function U7(t,e,r){var s,n,i;if(!this.isValid())return NaN;if(s=Ti(t,this),!s.isValid())return NaN;switch(n=(s.utcOffset()-this.utcOffset())*6e4,e=_t(e),e){case"year":i=Ts(this,s)/12;break;case"month":i=Ts(this,s);break;case"quarter":i=Ts(this,s)/3;break;case"second":i=(this-s)/1e3;break;case"minute":i=(this-s)/6e4;break;case"hour":i=(this-s)/36e5;break;case"day":i=(this-s-n)/864e5;break;case"week":i=(this-s-n)/6048e5;break;default:i=this-s}return r?i:bt(i)}function Ts(t,e){if(t.date()<e.date())return-Ts(e,t);var r=(e.year()-t.year())*12+(e.month()-t.month()),s=t.clone().add(r,"months"),n,i;return e-s<0?(n=t.clone().add(r-1,"months"),i=(e-s)/(s-n)):(n=t.clone().add(r+1,"months"),i=(e-s)/(n-s)),-(r+i)||0}J.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",J.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function G7(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function q7(t){if(!this.isValid())return null;var e=t!==!0,r=e?this.clone().utc():this;return r.year()<0||r.year()>9999?ds(r,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Et(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ds(r,"Z")):ds(r,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Z7(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",r,s,n,i;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),r="["+t+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(r+s+n+i)}function X7(t){t||(t=this.isUtc()?J.defaultFormatUtc:J.defaultFormat);var e=ds(this,t);return this.localeData().postformat(e)}function V7(t,e){return this.isValid()&&(xt(t)&&t.isValid()||Pe(t).isValid())?kt({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Q7(t){return this.from(Pe(),t)}function K7(t,e){return this.isValid()&&(xt(t)&&t.isValid()||Pe(t).isValid())?kt({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function J7(t){return this.to(Pe(),t)}function nl(t){var e;return t===void 0?this._locale._abbr:(e=Ft(t),e!=null&&(this._locale=e),this)}var il=yt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function al(){return this._locale}var Ms=1e3,pr=60*Ms,$s=60*pr,ol=(365*400+97)*24*$s;function mr(t,e){return(t%e+e)%e}function ll(t,e,r){return t<100&&t>=0?new Date(t+400,e,r)-ol:new Date(t,e,r).valueOf()}function cl(t,e,r){return t<100&&t>=0?Date.UTC(t+400,e,r)-ol:Date.UTC(t,e,r)}function ef(t){var e,r;if(t=_t(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?cl:ll,t){case"year":e=r(this.year(),0,1);break;case"quarter":e=r(this.year(),this.month()-this.month()%3,1);break;case"month":e=r(this.year(),this.month(),1);break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=r(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=mr(e+(this._isUTC?0:this.utcOffset()*pr),$s);break;case"minute":e=this._d.valueOf(),e-=mr(e,pr);break;case"second":e=this._d.valueOf(),e-=mr(e,Ms);break}return this._d.setTime(e),J.updateOffset(this,!0),this}function tf(t){var e,r;if(t=_t(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?cl:ll,t){case"year":e=r(this.year()+1,0,1)-1;break;case"quarter":e=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=r(this.year(),this.month()+1,1)-1;break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=$s-mr(e+(this._isUTC?0:this.utcOffset()*pr),$s)-1;break;case"minute":e=this._d.valueOf(),e+=pr-mr(e,pr)-1;break;case"second":e=this._d.valueOf(),e+=Ms-mr(e,Ms)-1;break}return this._d.setTime(e),J.updateOffset(this,!0),this}function rf(){return this._d.valueOf()-(this._offset||0)*6e4}function sf(){return Math.floor(this.valueOf()/1e3)}function nf(){return new Date(this.valueOf())}function af(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function of(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function lf(){return this.isValid()?this.toISOString():null}function cf(){return ni(this)}function uf(){return Zt({},ge(this))}function df(){return ge(this).overflow}function hf(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}oe("N",0,0,"eraAbbr"),oe("NN",0,0,"eraAbbr"),oe("NNN",0,0,"eraAbbr"),oe("NNNN",0,0,"eraName"),oe("NNNNN",0,0,"eraNarrow"),oe("y",["y",1],"yo","eraYear"),oe("y",["yy",2],0,"eraYear"),oe("y",["yyy",3],0,"eraYear"),oe("y",["yyyy",4],0,"eraYear"),re("N",$i),re("NN",$i),re("NNN",$i),re("NNNN",xf),re("NNNNN",Sf),Te(["N","NN","NNN","NNNN","NNNNN"],function(t,e,r,s){var n=r._locale.erasParse(t,s,r._strict);n?ge(r).era=n:ge(r).invalidEra=t}),re("y",hr),re("yy",hr),re("yyy",hr),re("yyyy",hr),re("yo",kf),Te(["y","yy","yyy","yyyy"],Ke),Te(["yo"],function(t,e,r,s){var n;r._locale._eraYearOrdinalRegex&&(n=t.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?e[Ke]=r._locale.eraYearOrdinalParse(t,n):e[Ke]=parseInt(t,10)});function ff(t,e){var r,s,n,i=this._eras||Ft("en")._eras;for(r=0,s=i.length;r<s;++r){switch(typeof i[r].since){case"string":n=J(i[r].since).startOf("day"),i[r].since=n.valueOf();break}switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":n=J(i[r].until).startOf("day").valueOf(),i[r].until=n.valueOf();break}}return i}function pf(t,e,r){var s,n,i=this.eras(),a,c,o;for(t=t.toUpperCase(),s=0,n=i.length;s<n;++s)if(a=i[s].name.toUpperCase(),c=i[s].abbr.toUpperCase(),o=i[s].narrow.toUpperCase(),r)switch(e){case"N":case"NN":case"NNN":if(c===t)return i[s];break;case"NNNN":if(a===t)return i[s];break;case"NNNNN":if(o===t)return i[s];break}else if([a,c,o].indexOf(t)>=0)return i[s]}function mf(t,e){var r=t.since<=t.until?1:-1;return e===void 0?J(t.since).year():J(t.since).year()+(e-t.offset)*r}function gf(){var t,e,r,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t)if(r=this.clone().startOf("day").valueOf(),s[t].since<=r&&r<=s[t].until||s[t].until<=r&&r<=s[t].since)return s[t].name;return""}function vf(){var t,e,r,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t)if(r=this.clone().startOf("day").valueOf(),s[t].since<=r&&r<=s[t].until||s[t].until<=r&&r<=s[t].since)return s[t].narrow;return""}function yf(){var t,e,r,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t)if(r=this.clone().startOf("day").valueOf(),s[t].since<=r&&r<=s[t].until||s[t].until<=r&&r<=s[t].since)return s[t].abbr;return""}function _f(){var t,e,r,s,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t)if(r=n[t].since<=n[t].until?1:-1,s=this.clone().startOf("day").valueOf(),n[t].since<=s&&s<=n[t].until||n[t].until<=s&&s<=n[t].since)return(this.year()-J(n[t].since).year())*r+n[t].offset;return this.year()}function bf(t){return xe(this,"_erasNameRegex")||Ei.call(this),t?this._erasNameRegex:this._erasRegex}function Cf(t){return xe(this,"_erasAbbrRegex")||Ei.call(this),t?this._erasAbbrRegex:this._erasRegex}function wf(t){return xe(this,"_erasNarrowRegex")||Ei.call(this),t?this._erasNarrowRegex:this._erasRegex}function $i(t,e){return e.erasAbbrRegex(t)}function xf(t,e){return e.erasNameRegex(t)}function Sf(t,e){return e.erasNarrowRegex(t)}function kf(t,e){return e._eraYearOrdinalRegex||hr}function Ei(){var t=[],e=[],r=[],s=[],n,i,a=this.eras();for(n=0,i=a.length;n<i;++n)e.push(ut(a[n].name)),t.push(ut(a[n].abbr)),r.push(ut(a[n].narrow)),s.push(ut(a[n].name)),s.push(ut(a[n].abbr)),s.push(ut(a[n].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}oe(0,["gg",2],0,function(){return this.weekYear()%100}),oe(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Es(t,e){oe(0,[t,t.length],0,e)}Es("gggg","weekYear"),Es("ggggg","weekYear"),Es("GGGG","isoWeekYear"),Es("GGGGG","isoWeekYear"),Ve("weekYear","gg"),Ve("isoWeekYear","GG"),Qe("weekYear",1),Qe("isoWeekYear",1),re("G",vs),re("g",vs),re("GG",Le,ct),re("gg",Le,ct),re("GGGG",pi,fi),re("gggg",pi,fi),re("GGGGG",gs,ps),re("ggggg",gs,ps),Ir(["gggg","ggggg","GGGG","GGGGG"],function(t,e,r,s){e[s.substr(0,2)]=ve(t)}),Ir(["gg","GG"],function(t,e,r,s){e[s]=J.parseTwoDigitYear(t)});function Tf(t){return ul.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Mf(t){return ul.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function $f(){return Bt(this.year(),1,4)}function Ef(){return Bt(this.isoWeekYear(),1,4)}function Df(){var t=this.localeData()._week;return Bt(this.year(),t.dow,t.doy)}function Lf(){var t=this.localeData()._week;return Bt(this.weekYear(),t.dow,t.doy)}function ul(t,e,r,s,n){var i;return t==null?Br(this,s,n).year:(i=Bt(t,s,n),e>i&&(e=i),Pf.call(this,t,e,r,s,n))}function Pf(t,e,r,s,n){var i=No(t,e,r,s,n),a=Rr(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}oe("Q",0,"Qo","quarter"),Ve("quarter","Q"),Qe("quarter",7),re("Q",Lo),Te("Q",function(t,e){e[zt]=(ve(t)-1)*3});function Of(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}oe("D",["DD",2],"Do","date"),Ve("date","D"),Qe("date",9),re("D",Le),re("DD",Le,ct),re("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Te(["D","DD"],Lt),Te("Do",function(t,e){e[Lt]=ve(t.match(Le)[0])});var dl=dr("Date",!0);oe("DDD",["DDDD",3],"DDDo","dayOfYear"),Ve("dayOfYear","DDD"),Qe("dayOfYear",4),re("DDD",ms),re("DDDD",Po),Te(["DDD","DDDD"],function(t,e,r){r._dayOfYear=ve(t)});function If(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}oe("m",["mm",2],0,"minute"),Ve("minute","m"),Qe("minute",14),re("m",Le),re("mm",Le,ct),Te(["m","mm"],St);var zf=dr("Minutes",!1);oe("s",["ss",2],0,"second"),Ve("second","s"),Qe("second",15),re("s",Le),re("ss",Le,ct),Te(["s","ss"],Rt);var Rf=dr("Seconds",!1);oe("S",0,0,function(){return~~(this.millisecond()/100)}),oe(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),oe(0,["SSS",3],0,"millisecond"),oe(0,["SSSS",4],0,function(){return this.millisecond()*10}),oe(0,["SSSSS",5],0,function(){return this.millisecond()*100}),oe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),oe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),oe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),oe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ve("millisecond","ms"),Qe("millisecond",16),re("S",ms,Lo),re("SS",ms,ct),re("SSS",ms,Po);var Vt,hl;for(Vt="SSSS";Vt.length<=9;Vt+="S")re(Vt,hr);function Bf(t,e){e[er]=ve(("0."+t)*1e3)}for(Vt="S";Vt.length<=9;Vt+="S")Te(Vt,Bf);hl=dr("Milliseconds",!1),oe("z",0,0,"zoneAbbr"),oe("zz",0,0,"zoneName");function Ff(){return this._isUTC?"UTC":""}function Af(){return this._isUTC?"Coordinated Universal Time":""}var G=Lr.prototype;G.add=D7,G.calendar=B7,G.clone=F7,G.diff=U7,G.endOf=tf,G.format=X7,G.from=V7,G.fromNow=Q7,G.to=K7,G.toNow=J7,G.get=Hh,G.invalidAt=df,G.isAfter=A7,G.isBefore=H7,G.isBetween=N7,G.isSame=W7,G.isSameOrAfter=Y7,G.isSameOrBefore=j7,G.isValid=cf,G.lang=il,G.locale=nl,G.localeData=al,G.max=l7,G.min=o7,G.parsingFlags=uf,G.set=Nh,G.startOf=ef,G.subtract=L7,G.toArray=af,G.toObject=of,G.toDate=nf,G.toISOString=q7,G.inspect=Z7,typeof Symbol!="undefined"&&Symbol.for!=null&&(G[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),G.toJSON=lf,G.toString=G7,G.unix=sf,G.valueOf=rf,G.creationData=hf,G.eraName=gf,G.eraNarrow=vf,G.eraAbbr=yf,G.eraYear=_f,G.year=Ho,G.isLeapYear=a8,G.weekYear=Tf,G.isoWeekYear=Mf,G.quarter=G.quarters=Of,G.month=Fo,G.daysInMonth=s8,G.week=G.weeks=h8,G.isoWeek=G.isoWeeks=f8,G.weeksInYear=Df,G.weeksInWeekYear=Lf,G.isoWeeksInYear=$f,G.isoWeeksInISOWeekYear=Ef,G.date=dl,G.day=G.days=T8,G.weekday=M8,G.isoWeekday=$8,G.dayOfYear=If,G.hour=G.hours=z8,G.minute=G.minutes=zf,G.second=G.seconds=Rf,G.millisecond=G.milliseconds=hl,G.utcOffset=v7,G.utc=_7,G.local=b7,G.parseZone=C7,G.hasAlignedHourOffset=w7,G.isDST=x7,G.isLocal=k7,G.isUtcOffset=T7,G.isUtc=Jo,G.isUTC=Jo,G.zoneAbbr=Ff,G.zoneName=Af,G.dates=yt("dates accessor is deprecated. Use date instead.",dl),G.months=yt("months accessor is deprecated. Use month instead",Fo),G.years=yt("years accessor is deprecated. Use year instead",Ho),G.zone=yt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",y7),G.isDSTShifted=yt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",S7);function Hf(t){return Pe(t*1e3)}function Nf(){return Pe.apply(null,arguments).parseZone()}function fl(t){return t}var Se=li.prototype;Se.calendar=Th,Se.longDateFormat=Dh,Se.invalidDate=Ph,Se.ordinal=zh,Se.preparse=fl,Se.postformat=fl,Se.relativeTime=Bh,Se.pastFuture=Fh,Se.set=Sh,Se.eras=ff,Se.erasParse=pf,Se.erasConvertYear=mf,Se.erasAbbrRegex=Cf,Se.erasNameRegex=bf,Se.erasNarrowRegex=wf,Se.months=Jh,Se.monthsShort=e8,Se.monthsParse=r8,Se.monthsRegex=i8,Se.monthsShortRegex=n8,Se.week=l8,Se.firstDayOfYear=d8,Se.firstDayOfWeek=u8,Se.weekdays=C8,Se.weekdaysMin=x8,Se.weekdaysShort=w8,Se.weekdaysParse=k8,Se.weekdaysRegex=E8,Se.weekdaysShortRegex=D8,Se.weekdaysMinRegex=L8,Se.isPM=O8,Se.meridiem=R8;function Ds(t,e,r,s){var n=Ft(),i=$t().set(s,e);return n[r](i,t)}function pl(t,e,r){if(It(t)&&(e=t,t=void 0),t=t||"",e!=null)return Ds(t,e,r,"month");var s,n=[];for(s=0;s<12;s++)n[s]=Ds(t,s,r,"month");return n}function Di(t,e,r,s){typeof t=="boolean"?(It(e)&&(r=e,e=void 0),e=e||""):(e=t,r=e,t=!1,It(e)&&(r=e,e=void 0),e=e||"");var n=Ft(),i=t?n._week.dow:0,a,c=[];if(r!=null)return Ds(e,(r+i)%7,s,"day");for(a=0;a<7;a++)c[a]=Ds(e,(a+i)%7,s,"day");return c}function Wf(t,e){return pl(t,e,"months")}function Yf(t,e){return pl(t,e,"monthsShort")}function jf(t,e,r){return Di(t,e,r,"weekdays")}function Uf(t,e,r){return Di(t,e,r,"weekdaysShort")}function Gf(t,e,r){return Di(t,e,r,"weekdaysMin")}Xt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,r=ve(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+r}}),J.lang=yt("moment.lang is deprecated. Use moment.locale instead.",Xt),J.langData=yt("moment.langData is deprecated. Use moment.localeData instead.",Ft);var At=Math.abs;function qf(){var t=this._data;return this._milliseconds=At(this._milliseconds),this._days=At(this._days),this._months=At(this._months),t.milliseconds=At(t.milliseconds),t.seconds=At(t.seconds),t.minutes=At(t.minutes),t.hours=At(t.hours),t.months=At(t.months),t.years=At(t.years),this}function ml(t,e,r,s){var n=kt(e,r);return t._milliseconds+=s*n._milliseconds,t._days+=s*n._days,t._months+=s*n._months,t._bubble()}function Zf(t,e){return ml(this,t,e,1)}function Xf(t,e){return ml(this,t,e,-1)}function gl(t){return t<0?Math.floor(t):Math.ceil(t)}function Vf(){var t=this._milliseconds,e=this._days,r=this._months,s=this._data,n,i,a,c,o;return t>=0&&e>=0&&r>=0||t<=0&&e<=0&&r<=0||(t+=gl(Li(r)+e)*864e5,e=0,r=0),s.milliseconds=t%1e3,n=bt(t/1e3),s.seconds=n%60,i=bt(n/60),s.minutes=i%60,a=bt(i/60),s.hours=a%24,e+=bt(a/24),o=bt(vl(e)),r+=o,e-=gl(Li(o)),c=bt(r/12),r%=12,s.days=e,s.months=r,s.years=c,this}function vl(t){return t*4800/146097}function Li(t){return t*146097/4800}function Qf(t){if(!this.isValid())return NaN;var e,r,s=this._milliseconds;if(t=_t(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+s/864e5,r=this._months+vl(e),t){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(e=this._days+Math.round(Li(this._months)),t){case"week":return e/7+s/6048e5;case"day":return e+s/864e5;case"hour":return e*24+s/36e5;case"minute":return e*1440+s/6e4;case"second":return e*86400+s/1e3;case"millisecond":return Math.floor(e*864e5)+s;default:throw new Error("Unknown unit "+t)}}function Kf(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ve(this._months/12)*31536e6:NaN}function Ht(t){return function(){return this.as(t)}}var Jf=Ht("ms"),e9=Ht("s"),t9=Ht("m"),r9=Ht("h"),s9=Ht("d"),n9=Ht("w"),i9=Ht("M"),a9=Ht("Q"),o9=Ht("y");function l9(){return kt(this)}function c9(t){return t=_t(t),this.isValid()?this[t+"s"]():NaN}function rr(t){return function(){return this.isValid()?this._data[t]:NaN}}var u9=rr("milliseconds"),d9=rr("seconds"),h9=rr("minutes"),f9=rr("hours"),p9=rr("days"),m9=rr("months"),g9=rr("years");function v9(){return bt(this.days()/7)}var Nt=Math.round,gr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function y9(t,e,r,s,n){return n.relativeTime(e||1,!!r,t,s)}function _9(t,e,r,s){var n=kt(t).abs(),i=Nt(n.as("s")),a=Nt(n.as("m")),c=Nt(n.as("h")),o=Nt(n.as("d")),l=Nt(n.as("M")),d=Nt(n.as("w")),h=Nt(n.as("y")),m=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||a<=1&&["m"]||a<r.m&&["mm",a]||c<=1&&["h"]||c<r.h&&["hh",c]||o<=1&&["d"]||o<r.d&&["dd",o];return r.w!=null&&(m=m||d<=1&&["w"]||d<r.w&&["ww",d]),m=m||l<=1&&["M"]||l<r.M&&["MM",l]||h<=1&&["y"]||["yy",h],m[2]=e,m[3]=+t>0,m[4]=s,y9.apply(null,m)}function b9(t){return t===void 0?Nt:typeof t=="function"?(Nt=t,!0):!1}function C9(t,e){return gr[t]===void 0?!1:e===void 0?gr[t]:(gr[t]=e,t==="s"&&(gr.ss=e-1),!0)}function w9(t,e){if(!this.isValid())return this.localeData().invalidDate();var r=!1,s=gr,n,i;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(r=t),typeof e=="object"&&(s=Object.assign({},gr,e),e.s!=null&&e.ss==null&&(s.ss=e.s-1)),n=this.localeData(),i=_9(this,!r,s,n),r&&(i=n.pastFuture(+this,i)),n.postformat(i)}var Pi=Math.abs;function vr(t){return(t>0)-(t<0)||+t}function Ls(){if(!this.isValid())return this.localeData().invalidDate();var t=Pi(this._milliseconds)/1e3,e=Pi(this._days),r=Pi(this._months),s,n,i,a,c=this.asSeconds(),o,l,d,h;return c?(s=bt(t/60),n=bt(s/60),t%=60,s%=60,i=bt(r/12),r%=12,a=t?t.toFixed(3).replace(/\.?0+$/,""):"",o=c<0?"-":"",l=vr(this._months)!==vr(c)?"-":"",d=vr(this._days)!==vr(c)?"-":"",h=vr(this._milliseconds)!==vr(c)?"-":"",o+"P"+(i?l+i+"Y":"")+(r?l+r+"M":"")+(e?d+e+"D":"")+(n||s||t?"T":"")+(n?h+n+"H":"")+(s?h+s+"M":"")+(t?h+a+"S":"")):"P0D"}var be=Ss.prototype;be.isValid=f7,be.abs=qf,be.add=Zf,be.subtract=Xf,be.as=Qf,be.asMilliseconds=Jf,be.asSeconds=e9,be.asMinutes=t9,be.asHours=r9,be.asDays=s9,be.asWeeks=n9,be.asMonths=i9,be.asQuarters=a9,be.asYears=o9,be.valueOf=Kf,be._bubble=Vf,be.clone=l9,be.get=c9,be.milliseconds=u9,be.seconds=d9,be.minutes=h9,be.hours=f9,be.days=p9,be.weeks=v9,be.months=m9,be.years=g9,be.humanize=w9,be.toISOString=Ls,be.toString=Ls,be.toJSON=Ls,be.locale=nl,be.localeData=al,be.toIsoString=yt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ls),be.lang=il,oe("X",0,0,"unix"),oe("x",0,0,"valueOf"),re("x",vs),re("X",Yh),Te("X",function(t,e,r){r._d=new Date(parseFloat(t)*1e3)}),Te("x",function(t,e,r){r._d=new Date(ve(t))});//! moment.js
241
+ J.version="2.29.4",wh(Pe),J.fn=G,J.min=c7,J.max=u7,J.now=d7,J.utc=$t,J.unix=Hf,J.months=Wf,J.isDate=Dr,J.locale=Xt,J.invalid=cs,J.duration=kt,J.isMoment=xt,J.weekdays=jf,J.parseZone=Nf,J.localeData=Ft,J.isDuration=ks,J.monthsShort=Yf,J.weekdaysMin=Gf,J.defineLocale=_i,J.updateLocale=H8,J.locales=N8,J.weekdaysShort=Uf,J.normalizeUnits=_t,J.relativeTimeRounding=b9,J.relativeTimeThreshold=C9,J.calendarFormat=R7,J.prototype=G,J.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const x9=3,S9=180,k9=E.extend({name:"ECoverageRangeBrush",props:{timeScale:{type:Function,required:!0},startDate:{type:String,required:!0},endDate:{type:String,required:!0},height:{type:Number,required:!0},svgWidth:{type:Number,default:0},color:{type:String,default:"#4a90d9"},y:{type:Number,default:0},selectableDates:{type:Array,default:()=>[]}},data(){return{isDragging:null,hoveredHandle:null,dragInitialClientX:0,dragInitialStartX:0,dragInitialEndX:0,zoneDragMoved:!1,clickSvgX:0,smoothStartX:0,smoothEndX:0,snapRafId:null}},computed:{startX(){return this.timeScale(vt({timestamp:this.startDate}))},endX(){return this.timeScale(vt({timestamp:this.endDate}))},coverageWidth(){return Math.max(this.endX-this.startX,0)},smoothCoverageWidth(){return Math.max(this.smoothEndX-this.smoothStartX,0)},curtainHeight(){return this.height-this.y},handleHeight(){return this.curtainHeight*.33},handleY(){return this.y+(this.curtainHeight-this.handleHeight)/2},columnWidth(){const[t,e]=this.timeScale.domain(),[r,s]=this.timeScale.range(),n=24*60*60*1e3,i=e.getTime()-t.getTime(),a=s-r;return Math.max(n/i*a,4)},leftHandleOpacity(){return this.hoveredHandle==="left"||this.isDragging==="left"?.9:0},rightHandleOpacity(){return this.hoveredHandle==="right"||this.isDragging==="right"?.9:0},handlesAreClose(){return this.smoothEndX-this.smoothStartX<80},differentYears(){return J.parseZone(this.startDate).year()!==J.parseZone(this.endDate).year()},startDateLabel(){return this.formatDateLabel(this.startDate,this.differentYears)},endDateLabel(){return this.formatDateLabel(this.endDate,this.differentYears)},startLabelWidth(){return this.startDateLabel.length*6.5},endLabelWidth(){return this.endDateLabel.length*6.5},combinedLabelWidth(){return this.combinedDateLabel.length*6.5},combinedDateLabel(){const t=J.parseZone(this.startDate),e=J.parseZone(this.endDate),r=t.date(),s=e.date(),n=t.month(),i=e.month(),a=t.year(),c=e.year(),o=this.formatDateLabel(this.startDate,this.differentYears);return r===s&&n===i&&a===c?o:n===i&&a===c?`${o} – ${s}`:`${o} – ${this.formatDateLabel(this.endDate,this.differentYears)}`}},watch:{startX(t){(this.isDragging||this.snapRafId===null)&&(this.smoothStartX=t)},endX(t){(this.isDragging||this.snapRafId===null)&&(this.smoothEndX=t)}},mounted(){this.smoothStartX=this.startX,this.smoothEndX=this.endX},beforeDestroy(){this.snapRafId!==null&&cancelAnimationFrame(this.snapRafId),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("click",this.cancelNextClick,{capture:!0})},methods:{snapToDay(t){const e=this.timeScale.invert(t),r=e.getUTCFullYear(),s=e.getUTCMonth(),n=e.getUTCDate(),i=new Date(Date.UTC(r,s,n)),a=new Date(Date.UTC(r,s,n+1)),c=(this.timeScale(i)+this.timeScale(a))/2,o=t>=c?a:i;return{date:o,pixel:Math.round(this.timeScale(o))}},fromFakeUtc(t){const e=J.parseZone(this.startDate).utcOffset(),r=t.getTime()-e*60*1e3;return J(r).utcOffset(e).format()},animateSnap(t,e,r,s){this.snapRafId!==null&&cancelAnimationFrame(this.snapRafId);const n=performance.now(),i=a=>{const c=Math.min((a-n)/S9,1),o=1-Math.pow(1-c,3);this.smoothStartX=t+(e-t)*o,this.smoothEndX=r+(s-r)*o,c<1?this.snapRafId=requestAnimationFrame(i):this.snapRafId=null};this.snapRafId=requestAnimationFrame(i)},startDrag(t,e){this.snapRafId!==null&&(cancelAnimationFrame(this.snapRafId),this.snapRafId=null),this.isDragging=t,this.zoneDragMoved=!1,this.dragInitialClientX=e,this.dragInitialStartX=this.startX,this.dragInitialEndX=this.endX,document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp)},onCurtainMouseDown(t){t.preventDefault(),this.clickSvgX=this.smoothStartX+t.offsetX,this.startDrag("zone",t.clientX)},onLeftHandleMouseDown(t){t.preventDefault(),this.startDrag("left",t.clientX)},onRightHandleMouseDown(t){t.preventDefault(),this.startDrag("right",t.clientX)},onZoneMouseDown(t){t.preventDefault(),this.startDrag("zone",t.clientX)},onMouseMove(t){if(!this.isDragging)return;const e=t.clientX-this.dragInitialClientX;if(this.isDragging==="zone"){if(Math.abs(e)<x9)return;this.zoneDragMoved=!0,this.$emit("change",{startDate:this.fromFakeUtc(this.timeScale.invert(this.dragInitialStartX+e)),endDate:this.fromFakeUtc(this.timeScale.invert(this.dragInitialEndX+e))});return}if(this.isDragging==="left"){if(this.dragInitialStartX+e>this.dragInitialEndX-this.columnWidth){const s=this.dragInitialStartX,n=this.dragInitialEndX;this.dragInitialStartX=n-this.columnWidth,this.dragInitialEndX=s+this.columnWidth,this.isDragging="right"}}else if(this.isDragging==="right"&&this.dragInitialEndX+e<this.dragInitialStartX+this.columnWidth){const s=this.dragInitialStartX,n=this.dragInitialEndX;this.dragInitialStartX=n-this.columnWidth,this.dragInitialEndX=s+this.columnWidth,this.isDragging="left"}if(this.isDragging==="left"){const r=Math.min(this.dragInitialStartX+e,this.dragInitialEndX-this.columnWidth);this.$emit("change",{startDate:this.fromFakeUtc(this.timeScale.invert(r)),endDate:this.fromFakeUtc(this.timeScale.invert(this.dragInitialEndX))})}else if(this.isDragging==="right"){const r=Math.max(this.dragInitialEndX+e,this.dragInitialStartX+this.columnWidth);this.$emit("change",{startDate:this.fromFakeUtc(this.timeScale.invert(this.dragInitialStartX)),endDate:this.fromFakeUtc(this.timeScale.invert(r))})}},onMouseUp(){if(this.isDragging==="zone"&&!this.zoneDragMoved){const{date:l,pixel:d}=this.snapToDay(this.clickSvgX),h=l.getUTCFullYear(),m=String(l.getUTCMonth()+1).padStart(2,"0"),b=String(l.getUTCDate()).padStart(2,"0"),C=`${h}-${m}-${b}`;if(!(this.selectableDates.length===0||this.selectableDates.includes(C))){this.isDragging=null,this.hoveredHandle=null,this.zoneDragMoved=!1,document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp);return}const v=new Date(Date.UTC(h,l.getUTCMonth(),l.getUTCDate()+1)),T={startDate:this.fromFakeUtc(l),endDate:this.fromFakeUtc(new Date(v.getTime()-1))};this.$emit("change",T),this.$emit("change-end",T),this.animateSnap(this.smoothStartX,d,this.smoothEndX,Math.round(this.timeScale(v))),this.isDragging=null,this.hoveredHandle=null,this.zoneDragMoved=!1,document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp);return}this.isDragging&&document.addEventListener("click",this.cancelNextClick,{capture:!0,once:!0});const e=this.startX,r=this.endX,{date:s,pixel:n}=this.snapToDay(e),{date:i,pixel:a}=this.snapToDay(r),c=new Date(i.getTime()-1),o={startDate:this.fromFakeUtc(s),endDate:this.fromFakeUtc(c)};this.$emit("change",o),this.$emit("change-end",o),this.animateSnap(e,n,r,a),this.isDragging=null,this.hoveredHandle=null,this.zoneDragMoved=!1,document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp)},cancelNextClick(t){t.stopPropagation(),t.preventDefault()},formatDateLabel(t,e=!1){const r=J.parseZone(t);return e?r.format("MMM D, YYYY"):r.format("MMM D")}}});var T9=function(){var e=this,r=e._self._c;return r("g",{staticClass:"e-coverage-brush"},[r("rect",{attrs:{x:e.smoothStartX,y:e.y,width:e.smoothCoverageWidth,height:e.curtainHeight,fill:e.color,"fill-opacity":"0.12","pointer-events":"none"}}),r("rect",{attrs:{x:e.smoothStartX,y:e.y,width:e.smoothCoverageWidth,height:e.curtainHeight,fill:"none",stroke:e.color,"stroke-width":"1",rx:"3","pointer-events":"none"}}),r("rect",{attrs:{x:e.smoothStartX,y:e.y,width:e.smoothCoverageWidth,height:e.curtainHeight,fill:"transparent",cursor:"col-resize"},on:{mousedown:function(s){return s.stopPropagation(),e.onCurtainMouseDown.apply(null,arguments)}}}),r("rect",{attrs:{x:e.smoothStartX-7,y:e.y,width:"14",height:e.curtainHeight,fill:"transparent",cursor:"ew-resize"},on:{mouseenter:function(s){e.hoveredHandle="left"},mouseleave:function(s){e.hoveredHandle=null},mousedown:function(s){return s.stopPropagation(),e.onLeftHandleMouseDown.apply(null,arguments)}}}),r("rect",{staticStyle:{transition:"opacity 0.15s ease"},attrs:{x:e.smoothStartX-2,y:e.handleY,width:"4",height:e.handleHeight,fill:e.color,opacity:e.leftHandleOpacity,rx:"1","pointer-events":"none"}}),r("rect",{attrs:{x:e.smoothEndX-7,y:e.y,width:"14",height:e.curtainHeight,fill:"transparent",cursor:"ew-resize"},on:{mouseenter:function(s){e.hoveredHandle="right"},mouseleave:function(s){e.hoveredHandle=null},mousedown:function(s){return s.stopPropagation(),e.onRightHandleMouseDown.apply(null,arguments)}}}),r("rect",{staticStyle:{transition:"opacity 0.15s ease"},attrs:{x:e.smoothEndX-2,y:e.handleY,width:"4",height:e.handleHeight,fill:e.color,opacity:e.rightHandleOpacity,rx:"1","pointer-events":"none"}}),e.handlesAreClose?[r("rect",{attrs:{x:(e.smoothStartX+e.smoothEndX)/2-e.combinedLabelWidth/2-5,y:e.y-20,width:e.combinedLabelWidth+10,height:"16",fill:e.color,rx:"3","pointer-events":"none"}}),r("text",{attrs:{x:(e.smoothStartX+e.smoothEndX)/2,y:e.y-8,"text-anchor":"middle","font-size":"11","font-weight":"500",fill:"white","pointer-events":"none"}},[e._v(e._s(e.combinedDateLabel))])]:[r("rect",{attrs:{x:e.smoothStartX-e.startLabelWidth/2-5,y:e.y-20,width:e.startLabelWidth+10,height:"16",fill:e.color,rx:"3","pointer-events":"none"}}),r("text",{attrs:{x:e.smoothStartX,y:e.y-8,"text-anchor":"middle","font-size":"11","font-weight":"500",fill:"white","pointer-events":"none"}},[e._v(e._s(e.startDateLabel))]),r("rect",{attrs:{x:e.smoothEndX-e.endLabelWidth/2-5,y:e.y-20,width:e.endLabelWidth+10,height:"16",fill:e.color,rx:"3","pointer-events":"none"}}),r("text",{attrs:{x:e.smoothEndX,y:e.y-8,"text-anchor":"middle","font-size":"11","font-weight":"500",fill:"white","pointer-events":"none"}},[e._v(e._s(e.endDateLabel))])]],2)},M9=[],$9=z(k9,T9,M9,!1,null,null,null,null);const E9=$9.exports,D9=E.extend({name:"ETimeline",directives:{resizeObserver:lt},components:{ETimelineSVGDefs:M4,EXAxisBackground:w4,EXAxisDetailed:v4,EXAxisOverview:h4,ETimelineMilestone:N6,ETimelineMarkers:Q6,ETimelineCursor:N4,ETimelineSelectedTimestampCursor:G4,EZoomBehavior:r4,ECursorBehavior:Q4,ETimelineRectsChart:dh,ETimelineForbiddenInterval:P4,ETimelineLinesChart:gh,ETimelineBarsChart:Ch,ECoverageRangeBrush:E9},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},labelWidth:{type:[Number,void 0],default:void 0},barHeight:{type:Number,default:18},barYPadding:{type:Number,default:0},chartMinHeight:{type:Number,default:60},minZoomDuration:{type:Number,default:0},chartMinLabelHeight:{type:Number,default:18},minDate:{type:String,default:void 0},selectableDates:{type:Array,default:()=>[]},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},coverageRange:{type:Object,default:null},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},transitionDuration:{type:Number,default:400},scalingDuration:{type:Number,default:400},highlightMilestoneOnMatchTimestamp:{type:Boolean,default:!1},axisHeight:{type:Number,default:22}},data(){return{mainContainer:null,tooltip:null,timeline:null,svgElement:null,svg:null,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,focusedTimestamp:null,hoveredGroupedEvents:null,TimelineChartType:ft,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,[ft.Bars,ft.Dots])},lineGraphGroups(){return this.getGroupByType(this.filteredEventsGroups,[ft.LineGraph])},barChartGroups(){return this.getGroupByType(this.filteredEventsGroups,[ft.BarChart])},milestonesGroups(){return this.getGroupByType(this.filteredEventsGroups,[ft.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,s)=>{var n;return Math.max(r,(n=s.label)==null?void 0:n.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(){var t;return this.showLabels?(t=this.labelWidth)!=null?t: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=new Date(this.visibleFrom),e=new Date(this.visibleTo),r=c=>{const o=new Date(c.startDate||c.timestamp),l=new Date(c.endDate||c.timestamp);return o<=e&&l>=t},s=this.flattenedBarsCounts.filter(r),n=this.flattenedLinesCounts.filter(r).map(c=>c.count),i={};s.forEach(c=>{const o=c.startDate||c.timestamp;i[o]=(i[o]||0)+c.count});const a=Object.values(i).concat(n);return x.max(a)||1},defaultMaxDomain(){const t=new Date(this.oldestEvent.timestamp||this.oldestEvent.startDate).getTime(),e=new Date(this.latestEvent.timestamp||this.latestEvent.endDate).getTime(),s=(e-t)*.75,n=new Date(t-s),i=new Date(e+s);return[n.toISOString(),i.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,s])=>(s.events.forEach(n=>{const i=n.timestamp||n.startDate;e[i]={...e[i]||{},[r]:n.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:s}){this.visibleFrom=t,this.visibleTo=e,this.$emit("visible-interval-change",{fromDate:t,toDate:e,trigger:r,transform:s})},getGroupByType(t,e){return Object.entries(t).reduce((r,[s,n])=>!n.chartType&&e.includes(ft.Bars)||e.includes(n.chartType)?{...r,[s]:n}:r,{})},getPreviousCountsByTimestamp(t){if(t===0)return{};const e=Object.fromEntries(Object.entries(this.barChartGroups).slice(0,t)),r=[...Object.values(e)].map(n=>n.events).flat(),s={};return r.forEach(n=>{const i=n.startDate||n.timestamp;s[i]=(s[i]||0)+n.count}),s},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=x.select(this.svgElement)},zoomToFitMarkers(){const t=this.markers.map(i=>new Date(i.timestamp).getTime());if(t.length<2)return;const e=Math.min(...t),r=Math.max(...t),s=new Date(e),n=new Date(r);this.focusedDomain=[s,n]},clearTimeline(){this.svg&&this.svg.remove()},handleMouseLeave(){this.$emit("hovered-timestamp",void 0)},handleMouseMove(t,e){var o;this.$emit("hovered-timestamp",e);const s=this.isHoveringEvent&&this.showEventTooltip?this.$refs.eventTooltip||this.$refs.tooltip:this.$refs.tooltip;if(!s)return;const i=(this.timeline||this.$refs.timelineContainer).getBoundingClientRect(),a=((o=s==null?void 0:s.getBoundingClientRect())==null?void 0:o.width)||180;let c=t-a/2;c<0&&(c=t),c+a>i.width&&(c=t-a),this.eventTooltipStyle={left:`${c}px`,zIndex:100,[this.tooltipPosition==="top"?"bottom":"top"]:`${i.height}px`}},isForbiddenInterval(t){const e=new Date(t).getTime(),r=this.forbiddenIntervals.some(i=>{const a=isNaN(new Date(i.startDate).getTime())?-1/0:new Date(i.startDate).getTime(),c=isNaN(new Date(i.endDate).getTime())?1/0:new Date(i.endDate).getTime();return e>=a&&e<=c});let s=!1;this.startDate&&(s=e<new Date(this.startDate).getTime());let n=!1;return this.endDate&&(n=e>new Date(this.endDate).getTime()),r||s||n},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((s,n)=>{var c;const[i,a]=n;return(c=this.hiddenGroupsLabels)!=null&&c.includes(i)?s:[...s,{type:i,count:a,label:this.getExternalLabelText(i)}]},[]),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,s;const t=this.startDate||((r=this.focusedInterval)==null?void 0:r.startDate)||this.defaultFocusedDomain[0],e=this.endDate||((s=this.focusedInterval)==null?void 0:s.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{[we.milestoneSelected]:[t.id,t.timestamp].includes(this.selectedMilestoneId)||this.highlightMilestoneOnMatchTimestamp&&Be(this.selectedTimestamp).isSame(t.timestamp)}},getMilestoneColors(t,e){return{background:t||e,border:this.getTextFillColor(t||e,.25)}},getMilestoneGroupYPosition(t){let e=0;for(const[r,s]of Object.entries(this.milestonesGroups)){if(r===t)break;e+=s.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[s,n]of Object.entries(this.barGroups)){if(s===t)break;!e&&n.bottom||(r+=this.getBarGroupHeight(n))}return r},getBarGroupHeight(t){return t.height?Math.max(t.height+this.barYPadding,1):this.barHeight+this.barYPadding},getTextFillColor(t,e=0){var r,s;return(this.dark?(r=x.color(t))==null?void 0:r.brighter(1.5+e):(s=x.color(t))==null?void 0:s.darker(2+e)).toString()},getLabelBackgroundColor(t){let e=x.color(t);return e.opacity=this.dark?.2:.5,e.toString()},getCurrentGroupVisibility(t){var s;const e=this.groupsVisibility[t];if(e!==void 0)return e;const r=(s=this.eventsGroups[t])==null?void 0:s.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 vt({timestamp:t,timezone:this.timezone})},getFormattedTimestamp(t){return Be.parseZone(t).format("YYYY-MM-DDTHH:mm:ss")},fillTimeGaps(t){if(t.length<=1)return t;const e=this.insertZerosAtInterval,r=i=>i.clone().add(1,e),s=i=>i.clone().subtract(1,e);let n=[];for(let i=0;i<t.length;i++){const a=t[i];if(n.push(a),i===t.length-1)break;const c=t[i+1],o=Be(a.timestamp),l=Be(c.timestamp);if(l.diff(o,e)>1){const d=r(o).toISOString(),h=s(l).toISOString();n.push({timestamp:d,count:0}),d!==h&&n.push({timestamp:h,count:0})}}if(this.flattenLineGraphEnds){const i=Be(t[0].timestamp),a=Be(t[t.length-1].timestamp),c=s(i).toISOString(),o=r(a).toISOString();n=[{timestamp:c,count:0},...n,{timestamp:o,count:0}]}return n},fillEvents(t){return this.placeholderLineChartGroup.map(e=>t.find(s=>s.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}))}}}),x_="";var L9=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,"scaling-duration":e.scalingDuration,"focused-timestamp":e.focusedTimestamp,timezone:e.timezone,width:e.width,disabled:e.locked,"min-zoom-duration":e.minZoomDuration},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:s}){return[s?r("div",{staticClass:"e-relative e-timeline e-border e-rounded",class:e.computedClasses.wrapper},[r("ECursorBehavior",{attrs:{"time-scale":s,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:n,isHoveringTimeline:i}){var a;return[r("ETimelineMarkers",{attrs:{markers:e.sortedMarkers,"sticky-markers":e.stickyMarkers,"time-scale":s,"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,o){return{key:o,fn:function(l){return[e._t(o,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"},[s?r("EXAxisOverview",{attrs:{"time-scale":s,height:e.timelineHeight,dark:e.dark}}):e._e(),s?r("EXAxisDetailed",{attrs:{"time-scale":s,height:e.timelineHeight-e.axisHeight,y:e.axisHeight,dark:e.dark}}):e._e(),s?r("EXAxisBackground",{attrs:{"time-scale":s,height:e.timelineHeight-e.combinedXAxesHeight,y:e.combinedXAxesHeight,dark:e.dark}}):e._e()],1),e.selectedTimestamp?r("ETimelineSelectedTimestampCursor",{attrs:{"time-scale":s,"selected-timestamp":e.selectedTimestamp,timezone:e.timezone,height:e.timelineHeight}}):e._e(),n&&i&&!e.isHoveringMilestone&&e.showCursor?r("ETimelineCursor",{attrs:{"time-scale":s,"selected-timestamp":n,timezone:e.timezone,height:e.timelineHeight}}):e._e(),e._l(e.forbiddenIntervals,function(c,o){return r("ETimelineForbiddenInterval",{key:o,attrs:{"time-scale":s,interval:c,index:o,height:e.timelineHeight,timezone:e.timezone}})}),e._l(e.barGroups,function(c,o){return r("ETimelineRectsChart",{key:o,attrs:{"time-scale":s,"events-group":c,"group-id":o,y:e.getBarGroupYPosition(o,c.bottom),height:e.barHeight,width:e.width,"rect-y-padding":e.barYPadding,dark:e.dark,"show-label":e.showLabels,"label-width":e.labelWidth,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,o){return r("ETimelineRectsChart",{key:o,attrs:{width:e.width,y:e.getMilestoneGroupYPosition(o),height:c.height,"group-id":o,"events-group":c,"time-scale":s,dark:e.dark,dots:!0,"show-label":!1}})}),e._l(e.insertZerosAtInterval?e.filledGapsLineGraphGroups:e.lineGraphGroups,function(c,o){return r("ETimelineLinesChart",{key:o,attrs:{"group-id":o,"time-scale":s,"events-group":c,y:e.getChartsYPosition(o),height:e.chartHeight,width:e.width,dark:e.dark,timezone:e.timezone,"show-label":e.showLabels,"label-height":e.chartLabelHeight,"label-width":e.labelWidth,"max-visible-count":e.maxVisibleCount,"y-offset":e.chartsYOffset,"hovered-timestamp":n},on:{"event-mouseover":e.handleChartMouseOver,"event-mouseout":e.handleChartMouseOut,"group-label-clicked":e.toggleGroupVisibility}})}),e._l(e.barChartGroups,function(c,o,l){return r("ETimelineBarsChart",{key:o,attrs:{"group-id":o,width:e.width,y:e.getChartsYPosition(o),height:e.chartHeight,"events-group":c,"time-scale":s,dark:e.dark,"y-offset":e.chartsYOffset,"label-height":e.chartLabelHeight,"label-width":e.labelWidth,"max-visible-count":e.maxVisibleCount,"show-label":e.showLabels,"hovered-timestamp":n,"previous-counts-by-timestamp":e.getPreviousCountsByTimestamp(l)},on:{"event-mouseover":e.handleChartMouseOver,"event-mouseout":e.handleChartMouseOut,"group-label-clicked":e.toggleGroupVisibility}})}),e.coverageRange&&s?r("ECoverageRangeBrush",{attrs:{"time-scale":s,"start-date":e.coverageRange.startDate,"end-date":e.coverageRange.endDate,height:e.timelineHeight,y:e.combinedXAxesHeight,"svg-width":e.width,"selectable-dates":e.selectableDates},on:{change:function(c){return e.$emit("coverage-range-preview",c)},"change-end":function(c){return e.$emit("coverage-range-change",c)},"date-click":e.handleClick}}):e._e()],2)]),e._l(e.milestonesGroups,function(c,o){return r("div",{key:`${o}`,staticClass:"e-timeline-milestones",attrs:{"data-test-id":"timeline-milestones"}},[r("div",{class:`e-tl-milestones e-tl-milestones-${o}`},e._l(e.getSortedEvents(c.events),function(l,d){return r("ETimelineMilestone",{key:`${l.milestoneType}-${d}`,class:e.getMilestoneClass(l),attrs:{"time-scale":s,y:e.getMilestoneGroupYPosition(o),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(h){return e.onMilestoneClick(l,o)}},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(o){return o.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:i&&!e.isHoveringEvent&&!e.isHoveringMilestone,expression:`
242
242
  isHoveringTimeline &&
243
243
  !isHoveringEvent &&
244
244
  !isHoveringMilestone
245
- `}],staticClass:"e-timeline__tooltip e-border e-rounded e-px-2 e-relative",class:e.computedClasses.tooltipSlot},[e._v(" "+e._s(n)+" ")])]},{timestamp:n,active:i&&!e.isHoveringMilestone})],2),r("div",{key:`${e.hoveredGroupedEvents?e.hoveredGroupedEvents[0].timestamp:(a=e.hoveredEvent)==null?void 0:a.timestamp}`,ref:"eventTooltip",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-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,o){return r("div",{key:o},[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)},P9=[],O9=z(D9,L9,P9,!1,null,null,null,null);const yl=O9.exports,I9=E.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""}}}),S_="";var z9=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))])},R9=[],B9=z(I9,z9,R9,!1,null,"7e66cb69",null,null);const _l=B9.exports,F9=E.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:()=>Yn("#ebedf0","#17459e",10)},colorsDark:{type:Array,default:()=>Yn("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=k.hsl(t);return r.l+=e,r.l=Math.max(.1,Math.min(.9,r.l)),r.formatHex()},getContrastingPaletteColor(t){const e=k.color(t);if(!e)return t;const{r,g:s,b:n}=e.rgb(),a=(.299*r+.587*s+.114*n)/255>.5?-.5:.5;return this.adjustColorBrightness(t,a)}}}),k_="";var A9=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:s,value:n,count:i,itemClass:a,id:c}){return r("div",{key:n,staticClass:"e-flex e-w-full e-justify-center e-items-center e-heatmap-bar__item",class:{"e-heatmap-bar__item--selected":e.selectedValue===n,...e.getItemClasses(a)},style:e.getItemStyle(i),on:{click:function(o){return e.$emit("change",n,a,c)}}},[e.namesOnly?r("span",{staticClass:"e-heatmap-bar__item__count",style:e.getCountTextStyle(i)},[e._v(" "+e._s(s)+" ")]):e.showCounts?r("span",{staticClass:"e-heatmap-bar__item__count",style:e.getCountTextStyle(i)},[e._v(" "+e._s(i>0?i:"")+" ")]):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(s)+" ")]):e._e()])})],2)},H9=[],N9=z(F9,A9,H9,!1,null,null,null,null);const Pi=N9.exports,W9=E.extend({name:"EHoursHeatmap",components:{EHeatmapBar:Pi},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,[Be(e.timestamp).format("H")]:e}),{})},heatmapBarItems(){return new Array(24).fill(void 0).reduce((t,e,r)=>{var s;return[...t,{name:this.getFormattedHour(r),value:r,count:((s=this.itemsByHour[r])==null?void 0:s.count)||0}]},[])}},methods:{getFormattedHour(t){const e=t.toString();return(e.length>1?e:`0${e}`)+(this.dense?"h":":00")}}});var Y9=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))},j9=[],U9=z(W9,Y9,j9,!1,null,null,null,null);const bl=U9.exports,G9=E.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 q9=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()])},Z9=[],X9=z(G9,q9,Z9,!1,null,null,null,null);const Cl=X9.exports,V9=E.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 Q9=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)},K9=[],J9=z(V9,Q9,K9,!1,null,null,null,null);const wl=J9.exports,ep=E.extend({name:"ECompareSeparator",components:{EIcon:Xe},props:{xOffset:{type:[Number,String],default:50}},computed:{separatorStyle(){return{left:`${this.xOffset}%`}}}}),T_="";var tp=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-compare-separator",on:{mousedown:function(s){return s.preventDefault(),(n=>e.$emit("mousedown",n)).apply(null,arguments)},touchstart:function(s){return s.preventDefault(),(n=>e.$emit("touchstart",n)).apply(null,arguments)}}},[r("div",{staticClass:"e-compare-separator__line",style:e.separatorStyle}),r("div",{staticClass:"e-compare-separator__icon e-flex e-justify-center e-items-center",style:e.separatorStyle},[r("EIcon",{attrs:{icon:"fa-caret-left",color:"e-text-white",size:"base"}}),r("EIcon",{attrs:{icon:"fa-caret-right",color:"e-text-white",size:"base"}})],1)])},rp=[],sp=z(ep,tp,rp,!1,null,null,null,null);const xl=sp.exports,np=E.extend({name:"EDragResize",mixins:[st],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,s=e.y-this.dragOffset.y,n=this.bounds,i=Math.max(n.left,Math.min(r,n.left+n.width-this.lens.width)),a=Math.max(n.top,Math.min(s,n.top+n.height-this.lens.height));this.lens.x=i,this.lens.y=a},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,s=e.y-this.dragOffset.y;let{x:n,y:i,width:a,height:c}=this.lens;switch(this.currentHandle){case"top-left":n+=r,i+=s,a-=r,c-=s;break;case"top":i+=s,c-=s;break;case"top-right":i+=s,a+=r,c-=s;break;case"right":a+=r;break;case"bottom-right":a+=r,c+=s;break;case"bottom":c+=s;break;case"bottom-left":n+=r,a-=r,c+=s;break;case"left":n+=r,a-=r;break}const o=this.bounds,l=50;a=Math.max(l,Math.min(o.width,a)),c=Math.max(l,Math.min(o.height,c)),n=Math.max(o.left,Math.min(n,o.left+o.width-a)),i=Math.max(o.top,Math.min(i,o.top+o.height-c)),this.lens={x:n,y:i,width:a,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}}}}),M_="";var ip=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(s){return r("div",{key:s,staticClass:"resize-handle",class:"resize-"+s,on:{mousedown:function(n){return n.stopPropagation(),n.preventDefault(),e.startResize(s,n)},touchstart:function(n){return n.stopPropagation(),n.preventDefault(),e.startResize(s,n)}}})}),0)},ap=[],op=z(np,ip,ap,!1,null,"75e287d0",null,null);const Oi=op.exports,lp=E.extend({name:"EImagesComparator",components:{EDragResize:Oi},props:{beforeImageSrc:String,afterImageSrc:String,isLoading:Boolean,mode:{type:String,default:Ut.Curtain,validator:t=>Object.values(Ut).includes(t)},transparency:{type:Number,default:.5},blurBackground:{type:Boolean,default:!1}},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:Ut,isBeforeImageLoaded:!1,isAfterImageLoaded:!1}},computed:{beforeImageStyle(){if(this.isComponentLoading)return{clip:"none"};if(this.mode===Ut.Window){const{x:t,y:e,width:r,height:s}=this.windowState;return{clip:`rect(${e}px, ${t+r}px, ${e+s}px, ${t}px)`}}else return this.mode===Ut.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===Ut.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:s}=this.computedImageDimension,n=Math.max(t,e),i=.04,a=.01,c=n*i,o=n*a,l={width:`${c}px`,height:`${c}px`,left:`${r+t-c-o}px`,top:`${s+e-c-o}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},isComponentLoading(){return this.isLoading||!this.isBeforeImageLoaded||!this.isAfterImageLoaded}},watch:{beforeImageSrc(){this.isBeforeImageLoaded=!1},afterImageSrc(){this.isAfterImageLoaded=!1}},methods:{onZoomChange(t){this.zoomState={...t}},handleAfterImageLoad(){this.isAfterImageLoaded=!0,this.handleResize()},handleBeforeImageLoad(){this.isBeforeImageLoaded=!0,this.handleResize()},handleResize(){var a;const t=this.$refs.container;this.containerRect=t.getBoundingClientRect();const e=(a=this.$refs.afterImage)==null?void 0:a.$refs.image;if(!(e!=null&&e.naturalWidth)||!(e!=null&&e.naturalHeight))return;const r=t.clientWidth,s=t.clientHeight,n=e.naturalWidth/e.naturalHeight;if(r/s>n){const c=s*n;this.computedImageDimension={width:c,height:s,left:(r-c)/2,top:0}}else{const c=r/n;this.computedImageDimension={width:r,height:c,top:(s-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(n=>n.identifier===this.touchIdentifier);if(!e)return;const s=(e.clientX-this.startTouchX)/this.computedImageDimension.width*100+this.startSeparatorPositionX;this.separatorPositionX=Math.max(0,Math.min(100,s))},handleTouchEnd(){document.removeEventListener("touchmove",this.handleTouchMove),document.removeEventListener("touchend",this.handleTouchEnd),this.touchIdentifier=null},handleWindowChange(t){Object.assign(this.windowState,t)}}}),$_="";var cp=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,"blur-background":e.blurBackground},on:{change:e.onZoomChange,load:e.handleAfterImageLoad},scopedSlots:e._u([{key:"extraWidgets",fn:function(){return[e._t("extraWidgets")]},proxy:!0}],null,!0)}),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,"blur-background":e.blurBackground},on:{load:e.handleBeforeImageLoad}})],1),e.mode===e.CompareMode.Curtain&&!e.isComponentLoading?r("ECompareSeparator",{attrs:{"x-offset":e.computedSeparatorPositionX},on:{mousedown:function(s){return s.stopPropagation(),s.preventDefault(),e.handleMouseDown.apply(null,arguments)},touchstart:e.handleTouchStart}}):e._e(),e.mode==="window"&&!e.isComponentLoading?r("EDragResize",{attrs:{initial:e.windowState,bounds:e.windowBounds},on:{change:e.handleWindowChange}}):e._e(),e.isComponentLoading?e._e():r("div",{staticClass:"e-images-comparator__watermark",style:e.watermarkStyle},[e._t("watermark",null,null,e.watermarkStyle)],2),e.isComponentLoading?r("div",{staticClass:"e-images-comparator__overlay"},[e._t("overlay")],2):e._e(),r("div",{staticClass:"e-images-comparator__imageOverlay"},[e._t("imageOverlay")],2),e._t("default",null,{imageDimensions:e.computedImageDimension})],2)},up=[],dp=z(lp,cp,up,!1,null,"53097d92",null,null);const Sl=dp.exports,hp=E.extend({name:"EExpandableMenu",props:{padding:{type:Number,default:4},direction:{type:String,default:"top",validator:t=>["top","right","bottom","left"].includes(t)},defaultOpen:{type:Boolean,default:!1}},data(){return{isMenuOpened:this.defaultOpen}},computed:{row(){return["right","left"].includes(this.direction)},reverse(){return["top","left"].includes(this.direction)},menuStyle(){return{gap:`${this.padding}px`}}},watch:{isMenuOpened(){this.$nextTick(this.animateButtons)}},mounted(){this.$nextTick(this.animateButtons)},methods:{toggleMenu(){this.isMenuOpened=!this.isMenuOpened,this.$emit("toggle",this.isMenuOpened)},animateButtons(){const t=this.$refs.menu;if(!t)return;const e=Array.from(t.querySelectorAll(".e-action-button"));if(!e.length)return;const r=this.row?"X":"Y",s=this.reverse?1:-1,n=this.row?"width":"height";e.forEach((i,a)=>{if(this.isMenuOpened){i.style.transform="";return}const c=i.getBoundingClientRect()[n]+this.padding;i.style.transform=`translate${r}(${s*c*a}px)`})}}}),E_="";var fp=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}},[r("div",{ref:"activator",staticClass:"expandable-menu__activator",on:{click:e.toggleMenu}},[e._t("activator")],2),r("div",e._g({ref:"menu",staticClass:"expandable-menu__menu",style:e.menuStyle},e.$listeners),[e._t("default")],2)])},pp=[],mp=z(hp,fp,pp,!1,null,null,null,null);const Ii=mp.exports,D_="",gp={name:"ECalendarHeatmap",components:{EIcon:Xe},mixins:[gt],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 s=e.format("YYYY"),n=e.format("MM"),i=e.format("YYYY-MM-DD");let a={...this.itemsMap[i],date:i,selected:i===this.selectedDate};this.itemsMap[i]||(a={...a,count:0,date:i,disabled:this.isDisabledFn(i)},a={...a,label:this.labelFn(a)}),t={...t,[`${s}-${n}`]:{...t[`${s}-${n}`],[i]:{...a,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)),s=this._moment(this._startDate).startOf("month"),n=this._moment(this._endDate).startOf("month"),i=this._moment(s);let a={},c=-r,o;for(;i<=n;){let l=o?this.getMonthWidth(o):0;const d=i.startOf("month").day()===0;let h=0;d&&i>s&&(h=this.monthGutterSize);let m=this.dayFullSize;c+=l+this.monthGutterSize-m+h,a[i.format("YYYY-MM")]=c,o=i.clone(),i.add({months:1})}return a},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 Be(...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=Be.duration(this._moment(this._endDate).diff(this._moment(e))).asDays(),s=Be.duration(this._moment(e).endOf("month").diff(this._moment(this._startDate))).asDays();if(r<15||s<15)return{display:"none"};const n=this.isStartOfYear(e)?this.textSize:0;return{...this.textStyle,transform:`translate(${this.getMonthWidth(e)/2+this.textSize/3-n}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,s=e+this.dayRectSize,n=r+this.dayRectSize,i=e+this.dayRectSize/2,a=r+this.dayRectSize/2;return[`M ${e} ${r}`,`L ${i} ${a}`,`L ${e} ${n}`,`M ${s} ${r}`,`L ${i} ${a}`,`L ${s} ${n}`].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 Be(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},s=r.left-e.left,n=r.top-e.top,i=r.bottom-e.top,a=this.$refs.tooltip.clientWidth,c=this.$refs.tooltip.clientHeight;let o=s+r.width/2-a/2;o+e.left<e.left?o=0:o+e.left+a>=e.right&&(o=e.width-a);let l=n-c-this.dayFullSize/2;l+e.top<=e.top&&(l=i+this.dayFullSize/2),this.tooltipPositionX=o,this.tooltipPositionY=l},onDayRectMouseLeave(){this.tooltipVisibility=!1,this.hoveredDayDate=""}}};var vp=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(s){e.daysOffset-=30}}},[r("EIcon",{attrs:{icon:"fa-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(s,n){return r("text",{key:n,style:e.getWeekDayTextStyle(n)},[e._v(" "+e._s(e._moment().day(n).format("ddd"))+" ")])}),0),e._l(e.datesTree,function(s,n,i){return r("g",{key:n,staticClass:"e-heatmap-calendar__month",style:e.getMonthStyle(i,n)},[r("text",{style:e.getMonthTextStyle(i,n)},[e._v(" "+e._s(e.getMonthText(n))+" ")]),e._l(s,function(a,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":a.disabled,"e-heatmap-calendar__day--selected":a.selected}},[r("rect",{style:e.getDayStyle(a,c),attrs:{rx:e.borderRadius,height:e.dayRectSize,width:e.dayRectSize},on:{mouseenter:o=>e.onDayRectMouseEnter(o,a),mouseleave:e.onDayRectMouseLeave,mouseup:function(o){return e.$emit("item-selected",a)}}}),a.disabled?r("path",{style:`stroke: ${e.disabledColor};`,attrs:{d:e.getDisabledDayPath(a)}}):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(s,n){return r("rect",{key:n,style:e.getLegendRectStyle(n),attrs:{height:e.dayRectSize,width:e.dayRectSize,fill:s,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(s){e.daysOffset+=30}}},[r("EIcon",{attrs:{icon:"fa-angle-right",size:"Sm"}})],1):e._e()])},yp=[],_p=z(gp,vp,yp,!1,null,"50280d2a",null,null);const kl=_p.exports,bp=E.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 s=this.disabled?"#c6c6c6":"#8ac5ff",n=this.getPosition(e),i=this.getPosition(r)-n;return{left:`calc(${n}% + 0px)`,width:`calc(${i}% + 0px)`,background:`${s}`}},getRangeStyle(t){const e=this.disabled?"#c6c6c6":"#3b82f6",r=this.getPosition(t[0]),s=this.getPosition(t[1])-r;return{left:`calc(${r}% + 0px)`,width:`calc(${s}% + 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 s=(t.clientX-this.sliderRect.left)/this.sliderRect.width,n=Math.round(s*this.rangeDistance+this.min),i=this.roundToStep(n);if(this.selectedThumb.id==="input-min-thumb"){if(i>this.range[1]){this.range=[this.range[1],this.range[1]];return}if(i<=this.min){this.range=[this.min,this.range[1]];return}this.range=[i,this.range[1]]}if(this.selectedThumb.id==="input-max-thumb"){if(i<this.range[0]){this.range=[this.range[0],this.range[0]];return}if(i>=this.max){this.range=[this.range[0],this.max];return}this.range=[this.range[0],i]}}},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,s=t*this.step>0?this.step*(e+1):this.step*(e-1);return Math.abs(t-r)<Math.abs(t-s)?r:s},minutesToTime(t){const e=Math.floor(t/60).toString().padStart(2,"0"),r=(t%60).toString().padStart(2,"0");return`${e}:${r}`}}});var Cp=function(){var e=this,r=e._self._c;return r("div",{ref:"slider",staticClass:"e-range-slider",on:{pointerdown:function(s){return s.preventDefault(),e.onMouseDown.apply(null,arguments)},pointerup:function(s){return s.preventDefault(),e.onMouseUp.apply(null,arguments)},pointermove:function(s){return s.preventDefault(),e.onMouseMove.apply(null,arguments)},touchstart:function(s){return s.preventDefault(),e.onMouseDown.apply(null,arguments)},touchend:function(s){return s.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()])])])])},wp=[],xp=z(bp,Cp,wp,!1,null,null,null,null);const Sp=xp.exports,kp=E.extend({name:"EDivider",props:{dark:{type:Boolean,default:!1}}});var Tp=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]"]})},Mp=[],$p=z(kp,Tp,Mp,!1,null,null,null,null);const Ep=$p.exports,Dp=E.extend({name:"ESchedulePicker",components:{ERow:Rn,ECol:Bn,ERangeSlider:Sp,EDivider:Ep},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&&[Cr.Continuous,Cr.WorkingHours].includes(this.scheduleType)}},watch:{scheduleType:{immediate:!0,handler(){this.schedule=Un(uo[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=Un(t),this.hours=Object.values(this.schedule)[1]}},methods:{initEnabledDays(){Object.keys(this.enabledDays).forEach(t=>{this.enabledDays[t]=this.scheduleType===Cr.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=jn(e[0]),s=jn(e[1]);return[t,[`${r}-${s}`]]}}))},changeSchedule(){this.$emit("input",this.toTextSchedule())},onHoursChange(t){this.schedule=Object.entries(this.schedule).reduce((e,[r])=>({...e,[r]:t}),{})}}});var Lp=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(s){e.hours=s},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(s,n){return r("ERow",{key:n,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[n],expression:"enabledDays[day]"}],staticClass:"e-w-5 e-h-auto",attrs:{type:"checkbox",disabled:e.isDisabled},domProps:{checked:Array.isArray(e.enabledDays[n])?e._i(e.enabledDays[n],null)>-1:e.enabledDays[n]},on:{change:[function(i){var a=e.enabledDays[n],c=i.target,o=!!c.checked;if(Array.isArray(a)){var l=null,d=e._i(a,l);c.checked?d<0&&e.$set(e.enabledDays,n,a.concat([l])):d>-1&&e.$set(e.enabledDays,n,a.slice(0,d).concat(a.slice(d+1)))}else e.$set(e.enabledDays,n,o)},e.changeSchedule]}}),r("label",{staticClass:"e-ml-2",class:[e.dark?"e-text-white":"e-text-gray-900"]},[e._v(" "+e._s(n[0].toUpperCase())+" ")])])]),r("ECol",[r("ERangeSlider",{attrs:{max:e.max,min:e.min,disabled:!e.enabledDays[n],readonly:e.isDisabled,step:e.step,dark:e.dark,"is-time":""},on:{input:e.changeSchedule},model:{value:e.schedule[n],callback:function(i){e.$set(e.schedule,n,i)},expression:"schedule[day]"}})],1)],1)})],2)},Pp=[],Op=z(Dp,Lp,Pp,!1,null,null,null,null);const Tl=Op.exports,Ml=E.extend({mixins:[st,gt],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 s=e[r];r<e.length?this.$setTimeout(()=>{t(),this.setInactivityListenerReminderTimers(t,e,r+1)},s*1e3):this.isInactivityListenerActive&&this.$removeInactivityListeners()},$registerInactivityListener({callback:t=()=>{},duration:e=0,reminders:r=[]}){this.isInactivityListenerActive=!0,this.resetInactivityListenerTimer(t,e,r);const s=()=>this.resetInactivityListenerTimer(t,e,r);this.$addEventListener("mousemove",s),this.inactivityListeners.push(s)},$removeInactivityListeners(){this.isInactivityListenerActive&&(this.isInactivityListenerActive=!1,this.inactivityListeners.forEach(t=>{this.$removeEventListener("mousemove",t)}),this.$clearTimeouts())}}}),$l=Object.freeze(Object.defineProperty({__proto__:null,eventListeners:st,formField:is,inactivityListener:Ml,selectFormField:Mr,timeouts:gt,toggleOpen:as},Symbol.toStringTag,{value:"Module"})),Ip=E.extend({name:"EPopover",directives:{ClickOutside:ns},mixins:[as],props:{dark:{type:Boolean,default:!1},label:{type:String,default:"Click to open"},panelSide:{type:String,default:"center"},panelClasses:{type:[Object,String,Array],default:()=>({})},autoPosition:{type:Boolean,default:!1}},data(){return{shouldOpenUpward:!1}},computed:{panelThemeClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"right-0":this.panelSide==="right","left-0":this.panelSide==="left"}},panelPositionClass(){return this.autoPosition?this.shouldOpenUpward?"e-bottom-[100%]":"e-top-[100%]":void 0}},watch:{isOpen(t){t&&this.autoPosition&&(this.shouldOpenUpward=!1,this.$nextTick(()=>{this.calculatePosition()}))}},methods:{closePopover(){this.isOpen=!1,this.autoPosition&&(this.shouldOpenUpward=!1)},calculatePosition(){const t=this.$refs.panelMenu;if(!t)return;const e=this.findScrollableParent(t),r=e.scrollHeight>e.clientHeight,s=t.getBoundingClientRect(),n=window.innerHeight,i=s.bottom>n;this.shouldOpenUpward=i||r},findScrollableParent(t){let e=t.parentElement;for(;e;){const r=window.getComputedStyle(e).overflowY;if(r==="auto"||r==="scroll")return e;e=e.parentElement}return document.documentElement}}}),L_="";var zp=function(){var e=this,r=e._self._c;return r("div",e._b({directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closePopover,expression:"closePopover"}],ref:"popoverWrapper",staticClass:"e-popover__wrapper e-relative e-w-full"},"div",e.$attrs,!1),[e._t("trigger",function(){return[r("div",e._g(e._b({ref:"triggerButton",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({ref:"panelMenu",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-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,e.panelPositionClass]},"div",e.$attrs,!1),[e._t("panel",function(){return[e._t("default")]},{toggleOpen:e.toggleOpen,isOpen:e.isOpen})],2):e._e()],2)},Rp=[],Bp=z(Ip,zp,Rp,!1,null,"74fdaf19",null,null);const Ps=Bp.exports,Fp=E.extend({name:"ECheckbox",components:{EIcon:Xe},props:{checked:{type:Boolean,default:!1}}}),P_="";var Ap=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",colorClass:"e-text-white",size:"xs"}}):e._e()],1)},Hp=[],Np=z(Fp,Ap,Hp,!1,null,"e4654285",null,null);const Wp=Np.exports,Yp=E.extend({name:"ESelect",components:{ECheckbox:Wp,EIcon:Xe,EPopover:Ps},directives:{ResizeObserver:lt},mixins:[Mr],props:{dark:{type:Boolean,default:!1},withSelectAll:{type:Boolean,default:!1},customSelectionLabel:{type:String,default:""},name:{type:String,default:"Items"},label:{type:String,default:null},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.searchPlaceholder: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()}}}),O_="";var jp=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:s,toggle:n}){return[e.label?r("label",{staticClass:"e-select-field__label"},[e._v(" "+e._s(e.label)+" ")]):e._e(),e._t("activator",function(){return[r("div",{staticClass:"e-select__trigger-button e-relative e-w-full e-min-h-[40px] e-rounded e-border e-border-solid e-py-2 e-pl-3 e-leading-5 e-cursor-pointer e-max-h-[40px] e-flex e-items-center e-bg-gray-900",class:[e.radioItemClasses,e.dark?"_dark":"_light",{"e-select--open":s}],attrs:{id:`e-select-trigger-${Date.now()}`,"data-test-id":`select-trigger-${Date.now()}`,role:"button"},on:{click:i=>e.handleTriggerClick(i,n)}},[s&&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(i){i.stopPropagation()},input:function(i){i.target.composing||(e.searchQuery=i.target.value)}}})]):[e._t("selection",function(){return[r("span",{staticClass:"e-capitalize e-select__trigger-button-text e-truncate",class:{"e-text-gray-400":e.multiple&&e.selectedOption.length===0}},[e._v(" "+e._s(e.customLabel)+" ")])]},{isEmpty:e.multiple?e.selectedOption.length===0:!e.selectedOption,value:e.value})],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(i){return i.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:s?"fas fa-sort-up e-mt-2.5":"fas fa-sort-down e-mb-1.5"}})],1)]})],2)]},{attrs:{class:e.radioItemClasses,isOpen:s},on:{click:n}})]}},{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:function(s){return e.toggleSelectAll(s)}}},[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},on:{click:function(s){return e.toggleSelectAll(s)}}}),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(s,n){return r("div",{key:n,staticClass:"e-select__menu-item-wrapper e-relative e-select-none e-p-2",class:[e.containerClasses(s),{"hover:e-bg-gray-700":e.dark&&!e.isSelected(s.value)," hover:e-bg-gray-100":!e.dark&&!e.isSelected(s.value)}],attrs:{id:`select-item-${s.value}`,"data-test-id":`select-item-${n}`},on:{click:function(i){return e.onItemClick(s.value,i)}}},[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(s.value)},on:{click:function(i){return e.onItemClick(s.value,i)}}}):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(s.label)+" ")])]},{item:s,isSelected:e.isSelected(s.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)})},Up=[],Gp=z(Yp,jp,Up,!1,null,null,null,null);const zi=Gp.exports,qp=E.extend({name:"ESchedule",components:{ESelect:zi,EPopover:Ps,EIcon:Xe},directives:{ResizeObserver:lt},props:{schedule:{type:Object,default:null},templates:{type:Array,default:()=>[{label:"Daily 7 AM - 7 PM (All Days)",value:"07:00-19:00"},{label:"Weekly 7 AM - 7 PM (Weekdays Only)",value:"07:00-19:00|weekdays"},{label:"Business Hours (8:00 - 18:00)",value:"08:00-18:00"},{label:"Business Hours - Weekdays (9:00 - 17:00)",value:"09:00-17:00|weekdays"},{label:"Morning Shift (6:00 - 14:00)",value:"06:00-14:00"},{label:"Extended Hours (7:00 - 20:00)",value:"07:00-20:00"},{label:"Evening Shift (14:00 - 22:00)",value:"14:00-22:00"},{label:"Night Shift (22:00 - 06:00)",value:"22:00-06:00"},{label:"24/7 Operation",value:"00:00-23:59"}]},withTemplateSelector:{type:Boolean,default:!0}},data(){return{rowHeightPx:48,segmentsContainerRect:null,editing:null,creating:null,internalDays:[],selectedTemplate:null,savedDaysState:null,defaultSchedule:{1:["07:00-19:00"],2:["07:00-19:00"],3:["07:00-19:00"],4:["07:00-19:00"],5:["07:00-19:00"],6:["07:00-19:00"],7:["07:00-19:00"]}}},computed:{isIdle(){return!(this.creating||this.editing)},sortedDays(){return this.internalDays.slice().sort((t,e)=>t.day<e.day?-1:1)},segmentsContainerStyles(){return this.segmentsContainerRect?{width:`${this.segmentsContainerRect.width}px`,height:`${this.segmentsContainerRect.height}px`,top:`${this.segmentsContainerRect.top}px`,left:`${this.segmentsContainerRect.left}px`}:{}},pixelsPerHour(){return this.segmentsContainerRect?this.segmentsContainerRect.width/24:0}},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(([s,n])=>{const i=parseInt(s,10)-1,a=[];return n.forEach(c=>{const[o,l]=c.split("-"),d=this.normalizeTime(o),h=this.normalizeTime(l),{hours:m,minutes:b}=this.parseTime(d),{hours:C,minutes:f}=this.parseTime(h),v=m+b/60;C+f/60<v?(a.push({startTime:d,endTime:"23:59"}),a.push({startTime:"00:00",endTime:h})):a.push({startTime:d,endTime:h})}),{day:i,segments:a}})}},isIdle(t){t&&this.emitChangeEvent()}},mounted(){this.$nextTick(()=>{this.onResize()})},methods:{applyTemplateToAll(){if(!this.selectedTemplate)return;const[t,e]=this.selectedTemplate.split("|"),[r,s]=t.split("-"),{hours:n,minutes:i}=this.parseTime(r),{hours:a,minutes:c}=this.parseTime(s),o=n+i/60,d=a+c/60<o;this.internalDays=this.internalDays.map(h=>e==="weekdays"?h.day>=0&&h.day<=4?d?{...h,segments:[{startTime:r,endTime:"23:59"},{startTime:"00:00",endTime:s}]}:{...h,segments:[{startTime:r,endTime:s}]}:{...h,segments:[]}:d?{...h,segments:[{startTime:r,endTime:"23:59"},{startTime:"00:00",endTime:s}]}:{...h,segments:[{startTime:r,endTime:s}]}),this.emitChangeEvent()},applySegmentsToFilteredDays(t,e,r=()=>!0){const s=JSON.parse(JSON.stringify(this.sortedDays[t].segments));this.internalDays=this.internalDays.map(n=>r(n.day)?{...n,segments:s}:n),this.emitChangeEvent(),e()},applyToAllDays(t,e){this.applySegmentsToFilteredDays(t,e)},applyToWeekdays(t,e){this.applySegmentsToFilteredDays(t,e,r=>r>=0&&r<=4)},applyToWeekends(t,e){this.applySegmentsToFilteredDays(t,e,r=>r===5||r===6)},formatDayFull(t){return["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"][t]},formatHourLabel(t){return`${t.toString().padStart(2,"0")}h`},getSegmentLabel(t){return`${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(s=>{const n=this.normalizeTime(s.startTime),i=this.normalizeTime(s.endTime);return`${n}-${i}`})}),t},parseTime(t){const[e,r]=t.split(":").map(s=>parseInt(s,10));return{hours:e,minutes:r}},padTime(t){let e=Math.round(t*60);e=Math.max(0,Math.min(e,1439));const r=Math.floor(e/60),s=e%60;return`${r.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}`},roundToFive(t){const e=t*60;if(e>=1437)return 1439/60;const r=Math.round(e/5)*5;return Math.max(0,Math.min(r,1435))/60},calculateBarStyle(t,e,r){const{hours:s,minutes:n}=this.parseTime(e),{hours:i,minutes:a}=this.parseTime(r),c=s+n/60,l=i+a/60-c,d=c/24*100,h=l/24*100,m=t*this.rowHeightPx,b=this.rowHeightPx*.7,C=(this.rowHeightPx-b)/2;return{position:"absolute",top:`${m+C}px`,left:`calc(${d}% + 1px)`,width:`calc(${h}% - 2px)`,height:`${b}px`}},onResize(){const t=this.$refs.table;if(!t)return;const e=t.querySelector("tbody");if(!e)return;const r=e.querySelector("tr");r&&(this.rowHeightPx=r.getBoundingClientRect().height);const s=Array.from(t.querySelectorAll(".time-cell"));if(!s.length)return;const n=s[0].getBoundingClientRect(),i=s.slice(-24),a=i[i.length-1].getBoundingClientRect(),c=t.getBoundingClientRect();this.segmentsContainerRect={top:n.top-c.top,left:n.left-c.left,width:a.right-n.left,height:a.bottom-n.top}},onResizeHandleMouseDown(t,e,r,s){this.startEditingSegment(t,e,r,s)},onSegmentMouseDown(t,e,r){this.startEditingSegment(t,e,r,"move")},startEditingSegment(t,e,r,s){if(t.preventDefault(),t.stopPropagation(),!this.segmentsContainerRect)return;const n=this.sortedDays[e].segments[r],{hours:i,minutes:a}=this.parseTime(n.startTime),{hours:c,minutes:o}=this.parseTime(n.endTime),l=i+a/60,d=c+o/60;this.savedDaysState=JSON.parse(JSON.stringify(this.internalDays)),this.editing={dayIndex:e,segmentIndex:r,type:s,startMouseX:t.clientX,origStartFrac:l,origEndFrac:d,origStartTime:n.startTime,origEndTime:n.endTime,isMultiDay:t.shiftKey},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:s,startMouseX:n,origStartFrac:i,origEndFrac:a,origStartTime:c,origEndTime:o,isMultiDay:l}=this.editing,h=(t.clientX-n)/this.pixelsPerHour;let m=i,b=a;s==="move"?(m=i+h,b=a+h):s==="resize-left"?m=i+h:s==="resize-right"&&(b=a+h);const C=.25;s==="resize-left"&&b-m<C&&(m=b-C),s==="resize-right"&&b-m<C&&(b=m+C),m=this.roundToFive(Math.max(0,Math.min(m,1439/60))),b=this.roundToFive(Math.max(0,Math.min(b,1439/60)));const f={startTime:this.padTime(m),endTime:this.padTime(b)},v=this.sortedDays[e].day,T=l&&this.savedDaysState?this.savedDaysState:this.internalDays;this.internalDays=T.map(M=>{if(M.day===v)return{...M,segments:M.segments.map((N,L)=>L===r?f:N)};if(l&&this.savedDaysState){const N=M.segments.filter(L=>!(L.startTime===c&&L.endTime===o));return{...M,segments:[...N,f]}}return M})},onMouseUp(){document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),this.editing=null,this.savedDaysState=null,this.mergeOverlappingSegments()},deleteSegment(t,e){const r=this.sortedDays[t].day;this.internalDays=this.internalDays.map(s=>{if(s.day!==r)return s;const n=s.segments.filter((i,a)=>a!==e);return{...s,segments:n}}),this.emitChangeEvent()},onBackgroundMouseDown(t){if(t.target.closest(".segment"))return;t.preventDefault();const r=this.$refs.overlay;if(!r)return;const s=r.getBoundingClientRect(),n=t.clientY-s.top,i=Math.floor(n/this.rowHeightPx);if(i<0||i>=this.sortedDays.length)return;let a=(t.clientX-s.left)/this.pixelsPerHour;a=Math.max(0,Math.min(a,1439/60)),this.creating={startDayIndex:i,currentDayIndex:i,startFrac:a,currentFrac:a,isMultiDay:t.shiftKey},document.addEventListener("mousemove",this.onCreateMouseMove),document.addEventListener("mouseup",this.onCreateMouseUp)},onCreateMouseMove(t){if(!this.creating||!this.segmentsContainerRect)return;t.preventDefault();const e=this.$refs.overlay;if(!e)return;const r=e.getBoundingClientRect();let s=(t.clientX-r.left)/this.pixelsPerHour;s=Math.max(0,Math.min(s,1439/60)),this.creating.currentFrac=s;const n=t.clientY-r.top;let i=Math.floor(n/this.rowHeightPx);i=Math.max(0,Math.min(i,this.sortedDays.length-1)),this.creating.currentDayIndex=i,this.creating.isMultiDay=t.shiftKey},onCreateMouseUp(){if(!this.creating)return;const{startDayIndex:t,currentDayIndex:e,startFrac:r,currentFrac:s,isMultiDay:n}=this.creating;let i=Math.min(r,s),a=Math.max(r,s);if(a-i<.25){this.cleanupCreate();return}const c=this.roundToFive(i),o=this.roundToFive(a),l={startTime:this.padTime(c),endTime:this.padTime(o)},d=this.sortedDays.map(m=>m.day).slice(Math.min(t,e),Math.max(t,e)+1),h=n?this.internalDays.map(m=>m.day):d;this.internalDays=this.internalDays.map(m=>h.includes(m.day)?{...m,segments:[...m.segments,l]}:m),this.cleanupCreate(),this.mergeOverlappingSegments()},cleanupCreate(){document.removeEventListener("mousemove",this.onCreateMouseMove),document.removeEventListener("mouseup",this.onCreateMouseUp),this.creating=null},calculateMultiDayStyle(t,e,r,s){const n=Math.min(r,s)/24*100,i=(Math.max(r,s)-Math.min(r,s))/24*100,a=Math.min(t,e),o=Math.max(t,e)-a+1,l=this.rowHeightPx*.7,d=(this.rowHeightPx-l)/2,h=a*this.rowHeightPx+d,m=o*this.rowHeightPx-(this.rowHeightPx-l);return{position:"absolute",top:`${h}px`,left:`calc(${n}% + 1px)`,width:`calc(${i}% - 2px)`,height:`${m}px`}},mergeOverlappingSegments(){this.internalDays=this.internalDays.map(t=>{const e=t.segments.map(n=>{const{hours:i,minutes:a}=this.parseTime(n.startTime),{hours:c,minutes:o}=this.parseTime(n.endTime);let l=i+a/60,d=c+o/60;return d<l&&(d+=24),{start:l,end:d}});e.sort((n,i)=>n.start-i.start);const r=[];for(const n of e)if(!r.length)r.push({...n});else{const i=r[r.length-1];n.start<=i.end+1e-6?i.end=Math.max(i.end,n.end):r.push({...n})}const s=r.map(n=>{let i=n.start,a=n.end;return a>=24&&(a=1439/60),{startTime:this.padTime(this.roundToFive(i)),endTime:this.padTime(this.roundToFive(a))}});return{day:t.day,segments:s}})},emitChangeEvent(){this.mergeOverlappingSegments(),this.$emit("change",this.getFormattedSchedule())}}}),I_="";var Zp=function(){var e=this,r=e._self._c;return r("div",{ref:"mainContainer",staticClass:"e-bg-white e-p-5 e-rounded-lg e-overflow-visible"},[e.withTemplateSelector?r("div",{staticClass:"e-flex e-justify-end e-items-center e-gap-3 e-pb-4 e-overflow-visible"},[r("label",{staticClass:"e-font-semibold e-text-sm e-text-gray-700"},[e._v("Template:")]),r("div",{staticClass:"e-flex-1 e-max-w-xs e-relative e-z-10"},[r("ESelect",{attrs:{"set-initial-value":!1,options:e.templates,dark:!1,label:"Select a template..."},on:{input:e.applyTemplateToAll},model:{value:e.selectedTemplate,callback:function(s){e.selectedTemplate=s},expression:"selectedTemplate"}})],1)]):e._e(),r("div",{staticClass:"table-wrapper e-relative e-overflow-x-auto e-overflow-y-visible e-border e-border-solid e-border-gray-200 e-rounded-lg"},[r("table",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],ref:"table",staticClass:"schedule-table e-w-full e-bg-white"},[r("thead",[r("tr",{staticClass:"e-bg-gray-50"},[r("th",{staticClass:"day-header e-sticky e-left-0 e-z-[5] e-py-3 e-px-4 e-text-left e-font-semibold e-text-xs e-text-gray-700 e-whitespace-nowrap e-bg-gray-50"},[e._v(" Day ")]),e._l(24,function(s){return r("th",{key:s,staticClass:"hour-header e-py-3 e-px-1 e-text-center e-font-medium e-text-[11px] e-text-gray-500 e-min-w-[40px]"},[e._v(" "+e._s(e.formatHourLabel(s-1))+" ")])}),r("th",{staticClass:"actions-header e-py-3 e-px-4 e-text-center e-font-semibold e-text-xs e-text-gray-700 e-whitespace-nowrap e-bg-gray-50"},[e._v(" Actions ")])],2)]),r("tbody",e._l(e.sortedDays,function(s,n){return r("tr",{key:s.day,staticClass:"day-row"},[r("td",{staticClass:"day-cell e-py-3 e-px-4 e-whitespace-nowrap e-sticky e-left-0 e-bg-white e-z-[5] first:e-bg-gray-50"},[r("span",{staticClass:"e-font-medium e-text-sm e-text-gray-900"},[e._v(e._s(e.formatDayFull(s.day)))])]),e._l(24,function(i){return r("td",{key:i,staticClass:"time-cell e-min-w-[40px] e-h-12 e-relative"})}),r("td",{staticClass:"actions-cell e-p-2 e-text-center e-bg-white e-relative"},[r("EPopover",{attrs:{dark:!1,"panel-side":"right","panel-classes":"actions-popover-panel","auto-position":""},scopedSlots:e._u([{key:"trigger",fn:function({toggle:i}){return[r("button",{staticClass:"e-px-3 e-py-1.5 e-bg-transparent e-border e-border-solid e-border-transparent e-rounded e-cursor-pointer e-transition-all hover:e-bg-gray-100 hover:e-border-gray-200",on:{click:i}},[r("EIcon",{attrs:{icon:"fa-ellipsis-vertical",color:"e-text-gray-500"}})],1)]}},{key:"panel",fn:function({toggleOpen:i}){return[r("button",{staticClass:"e-block e-w-full e-px-4 e-py-2.5 e-text-left e-text-sm e-text-gray-700 e-bg-transparent e-border-none e-cursor-pointer e-transition-colors e-whitespace-nowrap hover:e-bg-gray-100",on:{click:function(a){return e.applyToAllDays(n,i)}}},[e._v(" Apply to all days ")]),r("button",{staticClass:"e-block e-w-full e-px-4 e-py-2.5 e-text-left e-text-sm e-text-gray-700 e-bg-transparent e-border-none e-cursor-pointer e-transition-colors e-whitespace-nowrap hover:e-bg-gray-100",on:{click:function(a){return e.applyToWeekdays(n,i)}}},[e._v(" Apply to weekdays ")]),r("button",{staticClass:"e-block e-w-full e-px-4 e-py-2.5 e-text-left e-text-sm e-text-gray-700 e-bg-transparent e-border-none e-cursor-pointer e-transition-colors e-whitespace-nowrap hover:e-bg-gray-100",on:{click:function(a){return e.applyToWeekends(n,i)}}},[e._v(" Apply to weekends ")])]}}],null,!0)})],1)],2)}),0)]),e.segmentsContainerRect?r("div",{ref:"overlay",staticClass:"e-absolute e-pointer-events-auto e-cursor-crosshair",style:e.segmentsContainerStyles,on:{mousedown:e.onBackgroundMouseDown}},[e._l(e.sortedDays,function(s,n){return r("div",{key:s.day},e._l(s.segments,function(i,a){return r("div",{key:i.startTime+"-"+i.endTime,staticClass:"segment e-bg-blue-500 e-rounded e-cursor-grab e-flex e-items-center e-justify-center e-transition-colors hover:e-bg-blue-600 active:e-cursor-grabbing",style:e.calculateBarStyle(n,i.startTime,i.endTime),on:{mousedown:function(c){return c.stopPropagation(),e.onSegmentMouseDown(c,n,a)}}},[r("div",{staticClass:"resize-handle resize-handle-left e-absolute e-left-0 e-w-3 e-h-auto e-cursor-ew-resize e-z-10 e-opacity-0 e-transition-opacity e-flex e-items-center e-justify-center e-pointer-events-auto e-text-white",on:{mousedown:function(c){return c.stopPropagation(),e.onResizeHandleMouseDown(c,n,a,"resize-left")}}},[r("EIcon",{attrs:{icon:"fa-grip-vertical",size:"xs"}})],1),r("div",{staticClass:"resize-handle resize-handle-right e-absolute e-right-0 e-w-3 e-h-auto e-cursor-ew-resize e-z-10 e-opacity-0 e-transition-opacity e-flex e-items-center e-justify-center e-pointer-events-auto e-text-white",on:{mousedown:function(c){return c.stopPropagation(),e.onResizeHandleMouseDown(c,n,a,"resize-right")}}},[r("EIcon",{attrs:{icon:"fa-grip-vertical",size:"xs"}})],1),r("button",{staticClass:"delete-btn e-hidden e-absolute e-top-1/2 e-right-5 -e-translate-y-1/2 e-w-6 e-h-6 e-border-none e-rounded e-bg-transparent e-text-white e-text-xl e-font-bold e-leading-none e-cursor-pointer e-z-20 e-items-center e-justify-center hover:e-bg-blue-500",on:{click:function(c){return c.stopPropagation(),e.deleteSegment(n,a)}}},[r("EIcon",{attrs:{icon:"fa-xmark",size:"lg"}})],1),r("div",{staticClass:"e-text-xs e-text-white e-font-medium e-text-center e-pointer-events-none e-select-none",domProps:{innerHTML:e._s(e.getSegmentLabel(i))}})])}),0)}),e.creating?r("div",{staticClass:"segment e-rounded e-cursor-grab e-flex e-items-center e-justify-center e-bg-blue-500/30 e-border e-border-dashed e-border-blue-500",style:e.calculateMultiDayStyle(e.creating.startDayIndex,e.creating.currentDayIndex,e.creating.startFrac,e.creating.currentFrac)},[r("div",{staticClass:"e-text-xs e-text-white e-font-medium e-text-center e-pointer-events-none e-select-none"},[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.creating.isMultiDay?r("div",{staticClass:"e-text-[10px] e-opacity-80 e-mt-0.5"},[e._v(" (Shift: Apply to all days) ")]):e._e()])]):e._e()],2):e._e()]),r("div",{staticClass:"e-mt-3 e-text-xs e-text-gray-500 e-text-center"},[e._v(" Hold Shift to apply schedule to all days ")])])},Xp=[],Vp=z(qp,Zp,Xp,!1,null,"55976485",null,null);const El=Vp.exports,Qp=E.extend({name:"EStepper",components:{EIcon:Xe},props:{steps:{type:Array,required:!0},initialStep:{type:Number,default:0},dark:{type:Boolean,default:!0},orientation:{type:String,default:"horizontal"}},data(){return{currentStep:0,transitionDirection:"forward"}},computed:{currentStepComponent(){return(this.steps[this.currentStep]||{}).component},isLastStep(){return this.currentStep===this.steps.length-1},canGoBack(){return this.currentStep>0},canGoNext(){return!0},stepperClasses(){return{[`e-stepper--${this.orientation}`]:!0,"e-text-slate-300":this.dark,"e-text-slate-700":!this.dark}},layoutClasses(){return this.orientation==="vertical"?"e-flex e-gap-8":"e-flex e-flex-col"},navigationClasses(){return this.orientation==="horizontal"?"e-mb-8":"e-flex-shrink-0 e-max-w-[20rem]"},stepsContainerClasses(){return this.orientation==="horizontal"?"e-relative e-flex e-justify-center e-items-center":"e-flex e-flex-col e-gap-8"},stepItemClasses(){return this.orientation==="horizontal"?"e-w-full":"e-w-full e-flex e-text-start e-gap-2.5"},stepIndicatorContainerClasses(){return this.orientation==="horizontal"?"e-relative e-flex e-justify-center":"e-relative"},stepContentClasses(){return this.orientation==="horizontal"?"e-mt-3":"e-mt-2.5"},transitionName(){return this.orientation==="vertical"?(this.transitionDirection==="forward","fade"):this.transitionDirection==="forward"?"slide-left":"slide-right"}},created(){this.currentStep=Math.max(0,Math.min(this.initialStep,this.steps.length-1))},mounted(){this.focusStepHeading()},methods:{isStepCompleted(t){return this.currentStep>t},goNext(){if(this.currentStep<this.steps.length-1){const t=this.currentStep;this.transitionDirection="forward",this.currentStep=this.currentStep+1,this.$emit("step-changed",{from:t,to:this.currentStep,direction:this.transitionDirection}),this.$nextTick(()=>{this.focusStepHeading()})}else if(this.isLastStep)return},goBack(){if(!this.canGoBack)return;const t=this.currentStep;this.transitionDirection="backward",this.currentStep=this.currentStep-1,this.$emit("step-changed",{from:t,to:this.currentStep,direction:this.transitionDirection}),this.$nextTick(()=>{this.focusStepHeading()})},focusStepHeading(){const t=this.$refs.stepHeading;t&&t.focus()},next(){this.goNext()},prev(){this.goBack()},reset(){this.currentStep=0},getStepButtonClasses(t){return this.isStepCompleted(t)?"e-bg-primary e-text-white":this.currentStep===t?"e-bg-blue-400 e-text-white":this.dark?"e-bg-gray-700 e-text-gray-300":"e-bg-gray-400 e-text-white"},getHorizontalConnectorClasses(t){return this.currentStep>t?"e-bg-primary":this.dark?"e-bg-slate-600":"e-bg-slate-300"},getVerticalConnectorClasses(t){return this.currentStep>t?"e-bg-primary":this.dark?"e-bg-slate-600":"e-bg-slate-300"},getStepTitleClasses(t){return t===this.currentStep?"e-text-primary":this.isStepCompleted(t)?"e-text-blue-500":this.dark?"e-text-gray-300":"e-text-gray-700"},getStepDescriptionClasses(){return this.dark?"e-text-slate-400":"e-text-slate-500"}}}),z_="";var Kp=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-stepper__container e-w-full e-p-4",class:e.stepperClasses},[r("div",{class:e.layoutClasses},[r("nav",{staticClass:"e-stepper__navigation",class:e.navigationClasses},[r("div",{class:e.stepsContainerClasses},e._l(e.steps,function(s,n){return r("div",{key:n,staticClass:"e-stepper__navigation-item e-group e-text-center e-relative",class:e.stepItemClasses},[r("div",{class:e.stepIndicatorContainerClasses},[r("div",{staticClass:"e-flex e-rounded-full e-text-center e-align-middle e-items-center e-justify-center e-font-semibold e-size-10 e-text-base e-border-0 e-transition-all e-duration-200 e-ease-out",class:e.getStepButtonClasses(n)},[e.isStepCompleted(n)&&s.completedIcon?r("EIcon",{attrs:{icon:s.completedIcon}}):s.icon?r("EIcon",{attrs:{icon:s.icon}}):r("span",[e._v(" "+e._s(n+1)+" ")])],1),e.orientation==="horizontal"&&n<e.steps.length-1?r("div",{staticClass:"e-stepper__navigation-connector--horizontal e-absolute e-rounded-full e-top-[calc(50%-2px)] e-h-0.5 e-start-[calc(50%+28px)] e-end-[calc(-50%+28px)]",class:e.getHorizontalConnectorClasses(n)}):e._e(),e.orientation==="vertical"&&n<e.steps.length-1?r("div",{staticClass:"e-stepper__navigation-connector--vertical e-absolute e-rounded-full e-start-[calc(50%-2px)] e-w-0.5 e-top-[46px] e-bottom-[-27px]",class:e.getVerticalConnectorClasses(n)}):e._e()]),r("div",{staticClass:"e-stepper__navigation-content",class:e.stepContentClasses},[e._t("title",function(){return[r("div",{staticClass:"e-block e-text-base e-font-semibold e-leading-tight",class:e.getStepTitleClasses(n)},[e._v(" "+e._s(s.title)+" ")])]},{step:s,index:n}),e._t("description",function(){return[s.description?r("div",{staticClass:"e-block e-text-sm e-mt-1 e-leading-tight",class:e.getStepDescriptionClasses()},[e._v(" "+e._s(s.description)+" ")]):e._e()]},{step:s,index:n})],2)])}),0)]),r("main",{staticClass:"e-stepper__content e-overflow-y-auto e-custom-scrollbar",class:{"e-mb-8":e.orientation==="horizontal","e-flex-1":e.orientation==="vertical","e-bg-gray-900 e-custom-scrollbar-dark":e.dark,"e-bg-white e-custom-scrollbar-light":!e.dark}},[r("div",{staticClass:"e-stepper__content-panel",attrs:{id:`panel-${e.currentStep}`}},[r("transition",{attrs:{name:e.transitionName,mode:"out-in"}},[e._t(`stepper-content-${e.currentStep}`,function(){return[r(e.currentStepComponent,{key:`step-${e.currentStep}`,tag:"component",attrs:{"is-first-step":e.currentStep===0,"is-last-step":e.isLastStep}})]},{step:e.currentStep,isFirstStep:e.currentStep===0,isLastStep:e.isLastStep})],2)],1)])]),r("div",{staticClass:"e-stepper__controls e-flex e-justify-between e-items-center e-gap-4",class:{"e-mt-8":e.orientation==="vertical"}},[e._t("stepper-controls",function(){return[r("button",{staticClass:"e-inline-flex e-items-center e-gap-2 e-px-6 e-py-3 e-rounded-lg e-font-medium e-text-sm e-border-0 e-cursor-pointer e-transition-all e-duration-200 e-ease-out disabled:e-opacity-50 disabled:e-cursor-not-allowed",class:{"e-opacity-50":!e.canGoBack,"e-cursor-not-allowed":!e.canGoBack,"e-text-slate-300 e-bg-slate-700 hover:e-bg-slate-600":e.dark,"e-text-slate-600 e-bg-slate-300 hover:e-bg-slate-200":!e.dark},attrs:{type:"button",disabled:!e.canGoBack},on:{click:e.goBack}},[r("EIcon",{attrs:{icon:"fa-chevron-left"}}),e._v(" Back ")],1),r("button",{staticClass:"e-inline-flex e-items-center e-gap-2 e-px-8 e-py-3 e-rounded-lg e-font-semibold e-text-sm e-border-0 e-cursor-pointer e-transition-all e-duration-200 e-ease-out e-bg-primary e-text-white hover:e-bg-primary-darken disabled:e-opacity-60 disabled:e-cursor-not-allowed e-shadow-md hover:e-shadow-lg",attrs:{type:"button",disabled:!e.canGoNext},on:{click:e.goNext}},[e._v(" "+e._s(e.isLastStep?"Save":"Continue")+" "),e.isLastStep?e._e():r("span",{staticClass:"e-text-lg"},[r("EIcon",{attrs:{icon:"fa-chevron-right"}})],1)])]},{prev:e.goBack,hasPrev:e.canGoBack,hasNext:e.canGoNext,next:e.goNext,isLastStep:e.isLastStep,isFirstStep:e.currentStep===0,currentStep:e.currentStep})],2)])},Jp=[],em=z(Qp,Kp,Jp,!1,null,"8e3178a6",null,null);const Dl=em.exports,tm=E.extend({name:"EHeatmapOverlay",directives:{ResizeObserver:lt},props:{points:{type:Array,default:()=>[]},radius:{type:Number,default:.08},opacity:{type:Number,default:.9,validator:t=>t>=0&&t<=1},max:{type:Number,default:0},scheme:{type:String,default:at.Turbo},clamp:{type:Boolean,default:!0}},data(){return{overlayOpacity:0,isFistDraw:!1}},computed:{interpolator(){const t={[at.Inferno]:k.interpolateInferno,[at.Magma]:k.interpolateMagma,[at.Plasma]:k.interpolatePlasma,[at.Viridis]:k.interpolateViridis,[at.Cividis]:k.interpolateCividis,[at.Warm]:k.interpolateWarm,[at.Cool]:k.interpolateCool,[at.CubeHelix]:k.interpolateCubehelixDefault,[at.Turbo]:k.interpolateTurbo||k.interpolateInferno};return t[this.scheme]||t[at.Turbo]}},watch:{points:{handler(){this.draw()},deep:!0},radius(){this.draw()},opacity(){this.overlayOpacity=Math.max(0,Math.min(1,this.opacity))},max(){this.draw()},scheme(){this.draw()},clamp(){this.draw()}},mounted(){this.overlayOpacity=this.opacity,this.$nextTick(()=>{this.syncCanvasSize(),this.draw()})},methods:{onResize(){this.syncCanvasSize(),this.draw()},syncCanvasSize(){const t=this.$refs.canvas;if(!t)return;const r=t.parentElement.getBoundingClientRect();t.style.width=`${r.width}px`,t.style.height=`${r.height}px`,t.width=r.width,t.height=r.height},buildLookupTable(t=256){const e=new Uint8ClampedArray(t*4);for(let r=0;r<t;r++){const s=r/(t-1),n=k.color(this.interpolator(s));e[r*4]=n.r,e[r*4+1]=n.g,e[r*4+2]=n.b,e[r*4+3]=255}return e},draw(){const t=this.$refs.canvas;if(!t)return;const e=t.getContext("2d",{willReadFrequently:!0});if(!e)return;const r=t.width,s=t.height;if(r===0||s===0||(e.clearRect(0,0,r,s),!this.points||this.points.length===0))return;const n=Math.min(r,s),i=Math.max(1,Math.round(this.radius*n)),a=this.max>0?this.max:this.points.reduce((b,C)=>Math.max(b,C.count||0),1);e.save(),e.fillStyle="rgba(0,0,0,1)";const c=document.createElement("canvas");c.width=c.height=i*2+2;const o=c.getContext("2d"),l=o.createRadialGradient(i+1,i+1,0,i+1,i+1,i);l.addColorStop(0,"rgba(0,0,0,1)"),l.addColorStop(1,"rgba(0,0,0,0)"),o.fillStyle=l,o.beginPath(),o.arc(i+1,i+1,i,0,Math.PI*2),o.closePath(),o.fill();for(const b of this.points){const C=Array.isArray(b.point)?b.point[0]:0,f=Array.isArray(b.point)?b.point[1]:0,v=Math.max(0,Math.min(1,C))*r,T=Math.max(0,Math.min(1,f))*s,M=a<=0?0:(b.count||0)/a;M<=0||(e.globalAlpha=this.clamp?Math.max(0,Math.min(1,M)):M,e.drawImage(c,Math.round(v)-i-1,Math.round(T)-i-1))}e.restore();const d=e.getImageData(0,0,r,s),h=d.data,m=this.buildLookupTable(256);for(let b=0;b<h.length;b+=4){const C=h[b+3];if(C===0)continue;const v=(this.clamp?C:Math.max(0,Math.min(255,C)))*4;h[b+0]=m[v+0],h[b+1]=m[v+1],h[b+2]=m[v+2],h[b+3]=C}e.putImageData(d,0,0),this.isFistDraw=!0}}});var rm=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],staticClass:"w-full h-full"},[e._t("default"),r("canvas",{ref:"canvas",staticClass:"e-inset-0",style:{opacity:e.overlayOpacity}})],2)},sm=[],nm=z(tm,rm,sm,!1,null,null,null,null);const Ll=nm.exports,im=E.extend({name:"EGlobalSearch",components:{EIcon:Xe},mixins:[st],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,s,n)=>{const i=this.findMatchesInObject(s,e,[]);return i.length>0&&r.push({index:n,matches:i}),r},[])},findMatchesInObject(t,e,r){return Object.entries(t).reduce((s,[n,i])=>{const a=[...r,n],c=this.matchesQuery(i,e)?[{path:a,value:i}]:[];let o=[];this.deep&&Array.isArray(i)&&(o=i.flatMap((d,h)=>this.findMatchesInObject(d,e,[...a,`${h}`])));const l=this.deep&&typeof i=="object"&&i!==null?this.findMatchesInObject(i,e,a):[];return[...s,...c,...o,...l]},[])},matchesQuery(t,e){return`${this.isValidDate(t)?this.formattedTimestamp(t):t}`.toLowerCase().indexOf(e.toLowerCase())!==-1},isValidDate(t){return Be(t,this.currentDateFormat,!0).isValid()},formattedTimestamp(t){return Be.tz(t,this.timezone).format(this.convertedDateFormat)},onKeyHandler(t){const e=t,r=e.ctrlKey&&e.type==="keydown",s=e.shiftKey&&e.type==="keydown",n=["f","F"].includes(e.key)&&e.type==="keydown",i=e.key==="Escape"&&e.type==="keydown";n&&r&&s&&(this.isSearching=!0,this.$nextTick(()=>{const a=this.$refs.searchField;a&&a.focus()})),i&&(this.isSearching=!1,this.search="")}}}),R_="";var am=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(s){s.target.composing||(e.search=s.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:"fa-search",size:"Sm"}})],1)])])},om=[],lm=z(im,am,om,!1,null,null,null,null);const Pl=lm.exports,cm=E.extend({name:"ETooltip",props:{text:{type:String,required:!1,default:""},position:{type:String,default:Je.Top},color:{type:String,default:ce.Default},dark:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data(){return{isHovered:!1}},computed:{tooltipClasses(){if(this.disabled)return{};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===Je.Left,"tooltip-right":t===Je.Right,"tooltip-top":t===Je.Top,"tooltip-bottom":t===Je.Bottom,"e-bg-orange-700 e-text-white":e===ce.Warning,"e-bg-red-700 e-text-white":e===ce.Error,"e-bg-green-900 e-text-white":e===ce.Success,"e-bg-blue-700 e-text-white":e===ce.Primary,"e-bg-sky-500 e-text-white":e===ce.Info,"e-bg-brand-900 e-text-white":e===ce.Brand,"e-bg-gray-200 e-text-gray-700":e===ce.Gray,...r}},triangleClasses(){const t=this.position,e=this.color;return{"triangle e-absolute e-border-transparent":!0,"triangle-left":t===Je.Left,"triangle-right":t===Je.Right,"triangle-top":t===Je.Top,"triangle-bottom":t===Je.Bottom,"e-border-b-gray-800":e===ce.Default,"e-border-b-orange-700":e===ce.Warning,"e-border-b-red-700":e===ce.Error,"e-border-b-green-900":e===ce.Success,"e-border-b-blue-700":e===ce.Primary,"e-border-b-sky-500":e===ce.Info,"e-border-b-brand-900":e===ce.Brand,"e-border-b-gray-900":e===ce.Gray}}},methods:{toggleTooltip(){this.disabled||(this.isHovered=!this.isHovered)}}}),B_="";var um=function(){var e=this,r=e._self._c;return r("div",{staticClass:"tooltip-box e-w-max e-relative e-group",class:{"e-cursor-not-allowed e-opacity-50":e.disabled},on:{mouseenter:e.toggleTooltip,mouseleave:e.toggleTooltip}},[e._t("default"),e.isHovered&&!e.disabled?r("div",{class:e.tooltipClasses},[r("span",{class:e.triangleClasses}),e._t("tooltip",function(){return[e._v(" "+e._s(e.text)+" ")]})],2):e._e()],2)},dm=[],hm=z(cm,um,dm,!1,null,"4029d96b",null,null);const Nr=hm.exports,fm=E.extend({name:"EActionButton",components:{ETooltip:Nr,EIcon:Xe,ESpinner:ss},inject:{isDarkButton:{default:null}},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:U.Sm},iconColor:{type:String,default:ce.Default},dark:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},active:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},rounded:{type:String,default:"none",validator:t=>Object.keys(Kt).includes(t)}},computed:{isDark(){const t=this.isDarkButton;return typeof t=="function"?t():this.dark},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},radiusStyle(){return this.rounded==="none"?{}:{borderRadius:Kt[this.rounded]}},buttonStyle(){const t=this.isDark?"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",e=this.buttonClassesContainsBg?[this.buttonClasses]:[this.buttonClasses,t];return e.push({"e-action-button--active":this.active,"e-action-button--disabled":this.disabled}),e}}}),F_="";var pm=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.isDark}},[r("button",e._g(e._b({staticClass:"e-action-button",class:e.buttonStyle,style:e.radiusStyle,attrs:{disabled:e.disabled}},"button",e.$attrs,!1),e.$listeners),[e.loading?r("ESpinner",{attrs:{size:e.iconSize}}):e._t("icon",function(){return[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",class:e.buttonStyle,style:e.radiusStyle,attrs:{disabled:e.disabled}},"button",e.$attrs,!1),e.$listeners),[e.loading?r("ESpinner",{attrs:{size:e.iconSize}}):e._t("icon",function(){return[r("EIcon",{attrs:{icon:e.icon,size:e.iconSize}})]}),e._t("default")],2)},mm=[],gm=z(fm,pm,mm,!1,null,null,null,null);const sr=gm.exports,vm=E.extend({name:"EActionButtonGroup",components:{EExpandableMenu:Ii,EActionButton:sr},provide(){return{isDarkButton:()=>this.dark}},props:{direction:{type:String,default:"vertical",validator:t=>["vertical","horizontal"].includes(t)},rounded:{type:String,default:"none",validator:t=>Object.keys(Kt).includes(t)},dark:{type:Boolean,default:!0},buttonSize:{type:[Number,String],default:40},expandable:{type:Boolean,default:!1},expandDirection:{type:String,default:"top",validator:t=>["top","right","bottom","left"].includes(t)},defaultOpen:{type:Boolean,default:!1},padding:{type:Number,default:0}},computed:{wrapperComponent(){return this.expandable?"EExpandableMenu":"div"},wrapperProps(){return this.expandable?{padding:this.padding,direction:this.expandDirection,defaultOpen:this.defaultOpen}:{}},wrapperListeners(){return this.expandable?{toggle:this.onToggle}:{}},directionClass(){return`e-action-button-group--${this.direction}`},themeClass(){return this.dark?"e-action-button-group-root":"e-action-button-group-root e-action-button-group-root--light"},normalizedButtonSize(){return typeof this.buttonSize=="number"?`${this.buttonSize}px`:this.buttonSize},rootStyle(){return{"--button-size":this.normalizedButtonSize}},radius(){return this.expandable||this.rounded==="none"?Kt.none:Kt[this.rounded]}},mounted(){this.applyBorderRadius()},updated(){this.applyBorderRadius()},methods:{onToggle(t){this.$emit("toggle",t)},applyBorderRadius(){var n;if(this.radius===Kt.none)return;const t=this.$refs.group;if(!t||(n=t.parentElement)!=null&&n.closest(".e-action-button-group"))return;const e=Array.from(t.querySelectorAll(".e-action-button"));if(!e.length)return;e.forEach(i=>{i.style.borderRadius=""});const r=e[0],s=e[e.length-1];this.direction==="vertical"?(r.style.borderTopLeftRadius=this.radius,r.style.borderTopRightRadius=this.radius,s.style.borderBottomLeftRadius=this.radius,s.style.borderBottomRightRadius=this.radius):(r.style.borderTopLeftRadius=this.radius,r.style.borderBottomLeftRadius=this.radius,s.style.borderTopRightRadius=this.radius,s.style.borderBottomRightRadius=this.radius)}}}),A_="";var ym=function(){var e=this,r=e._self._c;return r(e.wrapperComponent,e._g(e._b({tag:"component",class:e.themeClass,style:e.rootStyle,scopedSlots:e._u([e.expandable?{key:"activator",fn:function(){return[e._t("activator",function(){return[r("EActionButton",{attrs:{icon:"fas fa-ellipsis-v",dark:e.dark}})]})]},proxy:!0}:null],null,!0)},"component",e.wrapperProps,!1),e.wrapperListeners),[r("div",{ref:"group",staticClass:"e-action-button-group",class:[e.directionClass]},[e._t("default")],2)])},_m=[],bm=z(vm,ym,_m,!1,null,null,null,null);const Os=bm.exports,Cm=E.extend({name:"EZoomSlider",components:{EActionButton:sr,EActionButtonGroup:Os},props:{dark:{type:Boolean,default:!0},rounded:{type:String,default:"md"}}});var wm=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EActionButtonGroup",{staticClass:"e-zoom-slider e-p-5",attrs:{dark:e.dark,rounded:e.rounded}},[r("EActionButton",{attrs:{"tooltip-text":"Zoom in","tooltip-position":"right",icon:"fas fa-plus",dark:e.dark,"icon-size":"base","data-test-id":"zoomable-img-zoom-in"},on:{click:function(s){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","data-test-id":"zoomable-img-zoom-out"},on:{click:function(s){return e.$emit("zoom-out")}}})],1)},xm=[],Sm=z(Cm,wm,xm,!1,null,null,null,null);const Ri=Sm.exports,km=E.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 Tm=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)},Mm=[],$m=z(km,Tm,Mm,!1,null,null,null,null);const Wr=$m.exports,Em=E.extend({name:"EZoomableImg",components:{EZoomSlider:Ri,EActionButtonGroup:Os,EFadeTransition:Wr},directives:{ResizeObserver:lt},mixins:[gt,st],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,s;this.frame=this.$refs.frame,this.image=this.$refs.image;const t=(r=this.frame)==null?void 0:r.getBoundingClientRect(),e=(s=this.image)==null?void 0:s.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,s=(e.top-t.top)/t.height*100,n=e.width/t.width*100,i=e.height/t.height*100;this.miniatureOverlayStyle={left:`${r}%`,top:`${s}%`,width:`${n}%`,height:`${i}%`}},onImageLoaded(t){var s,n;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=(s=this.image)==null?void 0:s.getBoundingClientRect(),r=(n=this.frame)==null?void 0:n.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(),s=(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)-(s==null?void 0:s.left))/this.zoomLevel,y:((t==null?void 0:t.clientY)-(s==null?void 0:s.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}this.isMobile||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 o,l;const t=(o=this.frame)==null?void 0:o.getBoundingClientRect(),e=(l=this.image)==null?void 0:l.getBoundingClientRect(),r=t.width/this.imageAspectRatio,s=t.height*this.imageAspectRatio;let{top:n,right:i,bottom:a,left:c}=t;return e.width<t.width?(c=t.left+(t.width-s)/2,i=c+s):e.height<t.height&&(n=t.top+(t.height-r)/2,a=n+r),{top:n,right:i,bottom:a,left:c}},savePreviousPan({x:t,y:e}={}){var r;if(this.image){const s=(r=this.image)==null?void 0:r.getBoundingClientRect(),n=this.getBounds(),[i,a,c,o]=[s.right-n.right,n.top-s.top,s.bottom-n.bottom,n.left-s.left].map(l=>l<0?l:0);this.frameMousePreviousPan={x:(t||this.frameMousePreviousPan.x)+o-i,y:(e||this.frameMousePreviousPan.y)+a-c}}},onSliderMouseDown(){var r,s;const t=(r=this.frame)==null?void 0:r.getBoundingClientRect(),e=(s=this.image)==null?void 0:s.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}}}),H_="";var Dm=function(){var s;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:(s=e.src)!=null?s:e.placeholderImage,alt:e.alt,"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"}},[r("div",{staticClass:"zoomable-img__slot__top-left e-absolute e-top-0 e-left-0"},[e._t("top-left")],2),r("div",{staticClass:"zoomable-img__slot__top-right e-absolute e-top-0 e-right-0 e-z-[201]"},[e._t("top-right")],2),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"}},[r("EActionButtonGroup",{attrs:{rounded:"md"}},[e._t("extraWidgets"),r("EZoomSlider",{staticClass:"!e-p-0",attrs:{rounded:"none"},on:{mouseup:e.onSliderMouseUp,mousedown:e.onSliderMouseDown,"zoom-in":function(n){return e.zoom(-1)},"zoom-out":function(n){return e.zoom(1)}},model:{value:e.sliderModel,callback:function(n){e.sliderModel=n},expression:"sliderModel"}})],2)],1):e._e()]),r("div",{staticClass:"zoomable-img__bottom-right-actions e-flex e-flex-col e-items-end e-justify-end e-absolute e-right-0 e-bottom-0"},[r("EFadeTransition",[e.showMiniature&&e.imageLoaded&&e.zoomLevel>1?r("div",{staticClass:"zoomable-img__miniature-container e-shadow e-relative e-m-4",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()]),r("div",{staticClass:"zoomable-img__slot__top-left"},[e._t("bottom-right")],2)],1)],2)])},Lm=[],Pm=z(Em,Dm,Lm,!1,null,null,null,null);const Bi=Pm.exports,Om=E.extend({name:"EImagePlayer",components:{EZoomableImg:Bi},directives:{ResizeObserver:lt},mixins:[gt,st],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[s,n]=e.slice(-1)[0]||[0,0];return r-n>1?[...e,[r,r]]:[...e.slice(0,-1),[s,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,s]=[100*t/(this.frames.length-1),100*e/(this.frames.length-1)];return{left:`${r}%`,width:`${s-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&&(Wn().then(()=>{this.isFullscreen=!1}),this.isFullscreen=!1)},openFullscreenMode(){const t=document.querySelector("#imagePlayer");t&&(Hn(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,s]=[Math.min(this.frames.length-1,t),Math.min(this.frames.length-1,e)],n=new Array(s-r+1).fill(0).map((a,c)=>a+r+c),i=this.preloadingQueueId;for(const a of n){if(i!==this.preloadingQueueId||this.playing&&!this.preloadWhilePlaying)return;this.preloadedFrames.includes(a)||await new Promise(o=>{const l=new Image;l.onload=()=>{this.preloadedFrames=[...this.preloadedFrames,a],o()},l.onerror=()=>{o()},this.preloadingFramesImgs=[...this.preloadingFramesImgs,l];const d=this.getFrameSrc(this.frames[a]);a||o(),l.src=d})}},async delay(){return this.frameError?(this.frameError=!1,Promise.resolve()):new Promise(t=>{const e=performance.now(),r=s=>{s-e<this.timePerFrame?this.animationId=window.requestAnimationFrame(r):t()};this.animationId=window.requestAnimationFrame(r)})},cancelDelay(){window.cancelAnimationFrame(this.animationId)},async play(){var r,s;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:(s=this.frames[this.frameIndex])==null?void 0:s.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,s,n;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=(n=(s=this.frames)==null?void 0:s[this.frameIndex])==null?void 0:n.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}}}}),N_="";var Im=function(){var s,n;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||((s=e.frames[e.frameIndex])==null?void 0:s.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||((n=e.frames[e.frameIndex])==null?void 0:n.src)||e.placeholderImage||"",alt:e.altText,"hide-content-on-blur":!1,height:typeof e.height=="string"?e.height.split("px")[0]:e.height,"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([i,a]){return r("div",{key:a,staticClass:"e-bg-blue-300 e-h-full e-absolute e-rounded-md",style:e.getProgressBarChunkStyle(i,a)})})],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)},zm=[],Rm=z(Om,Im,zm,!1,null,null,null,null);const Ol=Rm.exports,Bm=E.extend({name:"ELayout",directives:{ResizeObserver:lt},mixins:[gt],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()},hasScopedSlot(t){return!!this.$scopedSlots[t]},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)===0?25: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 Fm=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},[e.hasScopedSlot("main")?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._e(),e.withOverlay&&e.hasScopedSlot("overlay")?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(),e.hasScopedSlot("top-left")?r("div",{staticClass:"e-layout__top-left e-absolute e-left-0 e-top-0 e-z-[2]"},[e._t("top-left")],2):e._e(),e.hasScopedSlot("top-right")?r("div",{staticClass:"e-absolute e-right-0 e-top-0 e-layout__top-right e-z-[2]"},[e._t("top-right")],2):e._e(),e.hasScopedSlot("bottom-right")?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):e._e(),e.hasScopedSlot("bottom-left")?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):e._e(),e.hasScopedSlot("overlay-footer")?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):e._e()]),e.hasScopedSlot("footer")?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):e._e()])},Am=[],Hm=z(Bm,Fm,Am,!1,null,null,null,null);const Il=Hm.exports,Nm=E.extend({name:"EViewerOverlay",directives:{ResizeObserver:lt},props:{imageElement:{type:Object,default:null},fitContent:{type:Boolean,default:!1},withOverlay:{type:Boolean,default:!1}},data(){return{imageRect:null,imageObserver:null,overlayFooterHeight:0,contentSize:{width:0,height:0}}},computed:{outerClass(){return{"e-viewer-overlay__outer":!0,"e-viewer-overlay__outer--fit-content":this.fitContent}},contentClass(){return{"e-viewer-overlay__content":!0,"e-viewer-overlay__content--fit-content":this.fitContent}},hasImageRect(){return this.imageRect!==null},innerStyle(){return this.imageRect?{left:`${this.imageRect.left}px`,top:`${this.imageRect.top}px`,width:`${this.imageRect.width}px`,height:`${this.imageRect.height}px`}:{}},bottomCornerStyle(){return{bottom:`calc(${this.overlayFooterHeight}px + var(--corner-offset))`}},watermarkStyle(){if(!this.imageRect)return{};const t=Math.max(this.imageRect.width,this.imageRect.height),e=t*.04,r=t*.01;return{width:`${e}px`,height:`${e}px`,right:`${r}px`,bottom:`${r}px`}}},watch:{imageElement(t,e){var r,s;e&&((r=this.imageObserver)==null||r.unobserve(e)),t?((s=this.imageObserver)==null||s.observe(t),this.updateImageRect()):this.imageRect=null}},mounted(){this.imageObserver=new ResizeObserver(()=>this.updateImageRect()),this.imageElement&&(this.imageObserver.observe(this.imageElement),this.updateImageRect()),this.updateContentSize()},beforeDestroy(){var t;(t=this.imageObserver)==null||t.disconnect(),this.imageObserver=null},methods:{hasScopedSlot(t){return!!this.$scopedSlots[t]},updateImageRect(){const t=this.imageElement,e=this.$refs.outer;if(!t||!e){this.imageRect=null;return}const r=t.getBoundingClientRect(),s=e.getBoundingClientRect();if(r.width===0||r.height===0){this.imageRect=null;return}this.imageRect={left:r.left-s.left,top:r.top-s.top,width:r.width,height:r.height}},updateOverlayFooterHeight(){var e;const t=this.$refs.overlayFooter;this.overlayFooterHeight=(e=t==null?void 0:t.clientHeight)!=null?e:0},onResize(){this.updateImageRect(),this.updateContentSize()},updateContentSize(){var e,r;const t=this.$refs.content;this.contentSize={width:(e=t==null?void 0:t.clientWidth)!=null?e:0,height:(r=t==null?void 0:t.clientHeight)!=null?r:0}},onOverlayClick(t){this.withOverlay&&this.$emit("overlay-click",t)}}}),W_="";var Wm=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],staticClass:"e-viewer-overlay"},[r("div",{ref:"outer",class:e.outerClass},[r("div",{ref:"content",class:e.contentClass},[e._t("default",null,{contentSize:e.contentSize})],2),e.hasImageRect?r("div",{staticClass:"e-viewer-overlay__inner",style:e.innerStyle},[e._t("inner-overlay"),e.hasScopedSlot("inner-top-left")?r("div",{staticClass:"e-viewer-overlay__inner-top-left"},[e._t("inner-top-left")],2):e._e(),e.hasScopedSlot("inner-top-right")?r("div",{staticClass:"e-viewer-overlay__inner-top-right"},[e._t("inner-top-right")],2):e._e(),e.hasScopedSlot("inner-bottom-left")?r("div",{staticClass:"e-viewer-overlay__inner-bottom-left"},[e._t("inner-bottom-left")],2):e._e(),e.hasScopedSlot("inner-bottom-right")?r("div",{staticClass:"e-viewer-overlay__inner-bottom-right"},[e._t("inner-bottom-right")],2):e._e(),e.hasScopedSlot("watermark")?r("div",{staticClass:"e-viewer-overlay__watermark",style:e.watermarkStyle},[e._t("watermark")],2):e._e()],2):e._e(),e.hasScopedSlot("main-overlay")?r("div",{staticClass:"e-viewer-overlay__main-overlay",class:{"e-viewer-overlay__main-overlay--clickable":e.withOverlay},on:{click:e.onOverlayClick}},[e._t("main-overlay",null,{contentSize:e.contentSize})],2):e._e(),e.hasScopedSlot("top-left")?r("div",{staticClass:"e-viewer-overlay__top-left"},[e._t("top-left")],2):e._e(),e.hasScopedSlot("top-right")?r("div",{staticClass:"e-viewer-overlay__top-right"},[e._t("top-right")],2):e._e(),e.hasScopedSlot("bottom-left")?r("div",{staticClass:"e-viewer-overlay__bottom-left",style:e.bottomCornerStyle},[e._t("bottom-left")],2):e._e(),e.hasScopedSlot("bottom-right")?r("div",{staticClass:"e-viewer-overlay__bottom-right",style:e.bottomCornerStyle},[e._t("bottom-right")],2):e._e(),e.hasScopedSlot("overlay-footer")?r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.updateOverlayFooterHeight,expression:"updateOverlayFooterHeight"}],ref:"overlayFooter",staticClass:"e-viewer-overlay__overlay-footer"},[e._t("overlay-footer")],2):e._e()]),e.hasScopedSlot("footer")?r("div",{ref:"footer",staticClass:"e-viewer-overlay__footer"},[e._t("footer")],2):e._e()])},Ym=[],jm=z(Nm,Wm,Ym,!1,null,null,null,null);const zl=jm.exports;var Um=z({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 Gm=Um.exports,qm=E.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}}}}),G_="";var Zm=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)},Xm=[],Vm=z(qm,Zm,Xm,!1,null,null,null,null);const Qm=Vm.exports,Km=E.extend({name:"EChatHeader",components:{EAvatar:Zr},props:{size:{type:String,default:"xs"},backgroundClasses:{type:String,default:""}}}),q_="";var Jm=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}})},eg=[],tg=z(Km,Jm,eg,!1,null,null,null,null);const Fi=tg.exports,rg=E.extend({name:"EChatHeader",components:{EEvercamLogo:Fi},props:{title:{type:String,default:"Ask AI"},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 sg=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)},ng=[],ig=z(rg,sg,ng,!1,null,null,null,null);const ag=ig.exports,og=E.extend({name:"EChatBody",directives:{ResizeObserver:lt},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()}}}),Z_="";var lg=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(s){return s.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:"fa-arrow-down",size:"Base"}})],1)]):e._e()])},cg=[],ug=z(og,lg,cg,!1,null,null,null,null);const dg=ug.exports,hg=E.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 cr(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":cr(this.color,.7),"--backgroundColor":cr(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?cr(this.color,1):void 0}}},methods:{toRgba:cr}}),X_="";var fg=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)])},pg=[],mg=z(hg,fg,pg,!1,null,"cf575c64",null,null);const gg=mg.exports;var Rl={exports:{}};(function(t,e){(function(r,s){t.exports=s()})(typeof self!="undefined"?self:Qt,()=>(()=>{var r={75:function(a){(function(){var c,o,l,d,h,m;typeof performance!="undefined"&&performance!==null&&performance.now?a.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(a.exports=function(){return(c()-h)/1e6},o=process.hrtime,d=(c=function(){var b;return 1e9*(b=o())[0]+b[1]})(),m=1e9*process.uptime(),h=d-m):Date.now?(a.exports=function(){return Date.now()-l},l=Date.now()):(a.exports=function(){return new Date().getTime()-l},l=new Date().getTime())}).call(this)},4087:(a,c,o)=>{for(var l=o(75),d=typeof window=="undefined"?o.g:window,h=["moz","webkit"],m="AnimationFrame",b=d["request"+m],C=d["cancel"+m]||d["cancelRequest"+m],f=0;!b&&f<h.length;f++)b=d[h[f]+"Request"+m],C=d[h[f]+"Cancel"+m]||d[h[f]+"CancelRequest"+m];if(!b||!C){var v=0,T=0,M=[];b=function(S){if(M.length===0){var N=l(),L=Math.max(0,16.666666666666668-(N-v));v=L+N,setTimeout(function(){var Y=M.slice(0);M.length=0;for(var ee=0;ee<Y.length;ee++)if(!Y[ee].cancelled)try{Y[ee].callback(v)}catch(Z){setTimeout(function(){throw Z},0)}},Math.round(L))}return M.push({handle:++T,callback:S,cancelled:!1}),T},C=function(S){for(var N=0;N<M.length;N++)M[N].handle===S&&(M[N].cancelled=!0)}}a.exports=function(S){return b.call(d,S)},a.exports.cancel=function(){C.apply(d,arguments)},a.exports.polyfill=function(S){S||(S=d),S.requestAnimationFrame=b,S.cancelAnimationFrame=C}}},s={};function n(a){var c=s[a];if(c!==void 0)return c.exports;var o=s[a]={exports:{}};return r[a].call(o.exports,o,o.exports,n),o.exports}n.n=a=>{var c=a&&a.__esModule?()=>a.default:()=>a;return n.d(c,{a:c}),c},n.d=(a,c)=>{for(var o in c)n.o(c,o)&&!n.o(a,o)&&Object.defineProperty(a,o,{enumerable:!0,get:c[o]})},n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n.o=(a,c)=>Object.prototype.hasOwnProperty.call(a,c);var i={};return(()=>{n.d(i,{default:()=>Q});var a=n(4087),c=n.n(a);const o=function(F){return new RegExp(/<[a-z][\s\S]*>/i).test(F)},l=function(F,$){return Math.floor(Math.random()*($-F+1))+F};var d="TYPE_CHARACTER",h="REMOVE_CHARACTER",m="REMOVE_ALL",b="REMOVE_LAST_VISIBLE_NODE",C="PAUSE_FOR",f="CALL_FUNCTION",v="ADD_HTML_TAG_ELEMENT",T="CHANGE_DELETE_SPEED",M="CHANGE_DELAY",S="CHANGE_CURSOR",N="PASTE_STRING",L="HTML_TAG";function Y(F){return Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},Y(F)}function ee(F,$){var I=Object.keys(F);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(F);$&&(W=W.filter(function(ae){return Object.getOwnPropertyDescriptor(F,ae).enumerable})),I.push.apply(I,W)}return I}function Z(F){for(var $=1;$<arguments.length;$++){var I=arguments[$]!=null?arguments[$]:{};$%2?ee(Object(I),!0).forEach(function(W){O(F,W,I[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(I)):ee(Object(I)).forEach(function(W){Object.defineProperty(F,W,Object.getOwnPropertyDescriptor(I,W))})}return F}function w(F){return function($){if(Array.isArray($))return R($)}(F)||function($){if(typeof Symbol!="undefined"&&$[Symbol.iterator]!=null||$["@@iterator"]!=null)return Array.from($)}(F)||function($,I){if($){if(typeof $=="string")return R($,I);var W=Object.prototype.toString.call($).slice(8,-1);return W==="Object"&&$.constructor&&(W=$.constructor.name),W==="Map"||W==="Set"?Array.from($):W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W)?R($,I):void 0}}(F)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
246
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function R(F,$){($==null||$>F.length)&&($=F.length);for(var I=0,W=new Array($);I<$;I++)W[I]=F[I];return W}function q(F,$){for(var I=0;I<$.length;I++){var W=$[I];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(F,V(W.key),W)}}function O(F,$,I){return($=V($))in F?Object.defineProperty(F,$,{value:I,enumerable:!0,configurable:!0,writable:!0}):F[$]=I,F}function V(F){var $=function(I,W){if(Y(I)!=="object"||I===null)return I;var ae=I[Symbol.toPrimitive];if(ae!==void 0){var _=ae.call(I,"string");if(Y(_)!=="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(I)}(F);return Y($)==="symbol"?$:String($)}const Q=function(){function F(W,ae){var _=this;if(function(A,B){if(!(A instanceof B))throw new TypeError("Cannot call a class as a function")}(this,F),O(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")}}),O(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}),O(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))}),O(this,"start",function(){return _.state.eventLoopPaused=!1,_.runEventLoop(),_}),O(this,"pause",function(){return _.state.eventLoopPaused=!0,_}),O(this,"stop",function(){return _.state.eventLoop&&((0,a.cancel)(_.state.eventLoop),_.state.eventLoop=null),_}),O(this,"pauseFor",function(A){return _.addEventToQueue(C,{ms:A}),_}),O(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)}),_)}),O(this,"typeString",function(A){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(o(A))return _.typeOutHTMLString(A,B);if(A){var x=(_.options||{}).stringSplitter,j=typeof x=="function"?x(A):A.split("");_.typeCharacters(j,B)}return _}),O(this,"pasteString",function(A){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return o(A)?_.typeOutHTMLString(A,B,!0):(A&&_.addEventToQueue(N,{character:A,node:B}),_)}),O(this,"typeOutHTMLString",function(A){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,x=arguments.length>2?arguments[2]:void 0,j=function(pe){var he=document.createElement("div");return he.innerHTML=pe,he.childNodes}(A);if(j.length>0)for(var K=0;K<j.length;K++){var P=j[K],ie=P.innerHTML;P&&P.nodeType!==3?(P.innerHTML="",_.addEventToQueue(v,{node:P,parentNode:B}),x?_.pasteString(ie,P):_.typeString(ie,P)):P.textContent&&(x?_.pasteString(P.textContent,B):_.typeString(P.textContent,B))}return _}),O(this,"deleteAll",function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"natural";return _.addEventToQueue(m,{speed:A}),_}),O(this,"changeDeleteSpeed",function(A){if(!A)throw new Error("Must provide new delete speed");return _.addEventToQueue(T,{speed:A}),_}),O(this,"changeDelay",function(A){if(!A)throw new Error("Must provide new delay");return _.addEventToQueue(M,{delay:A}),_}),O(this,"changeCursor",function(A){if(!A)throw new Error("Must provide new cursor");return _.addEventToQueue(S,{cursor:A}),_}),O(this,"deleteChars",function(A){if(!A)throw new Error("Must provide amount of characters to delete");for(var B=0;B<A;B++)_.addEventToQueue(h);return _}),O(this,"callFunction",function(A,B){if(!A||typeof A!="function")throw new Error("Callback must be a function");return _.addEventToQueue(f,{cb:A,thisArg:B}),_}),O(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(x){_.addEventToQueue(d,{character:x,node:B})}),_}),O(this,"removeCharacters",function(A){if(!A||!Array.isArray(A))throw new Error("Characters must be an array");return A.forEach(function(){_.addEventToQueue(h)}),_}),O(this,"addEventToQueue",function(A,B){var x=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return _.addEventToStateProperty(A,B,x,"eventQueue")}),O(this,"addReverseCalledEvent",function(A,B){var x=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return _.options.loop?_.addEventToStateProperty(A,B,x,"reverseCalledEvents"):_}),O(this,"addEventToStateProperty",function(A,B){var x=arguments.length>2&&arguments[2]!==void 0&&arguments[2],j=arguments.length>3?arguments[3]:void 0,K={eventName:A,eventArgs:B||{}};return _.state[j]=x?[K].concat(w(_.state[j])):[].concat(w(_.state[j]),[K]),_}),O(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=w(_.state.calledEvents),_.state.calledEvents=[],_.options=Z({},_.state.initialOptions)}if(_.state.eventLoop=c()(_.runEventLoop),!_.state.eventLoopPaused){if(_.state.pauseUntil){if(A<_.state.pauseUntil)return;_.state.pauseUntil=null}var x,j=w(_.state.eventQueue),K=j.shift();if(!(B<=(x=K.eventName===b||K.eventName===h?_.options.deleteSpeed==="natural"?l(40,80):_.options.deleteSpeed:_.options.delay==="natural"?l(120,160):_.options.delay))){var P=K.eventName,ie=K.eventArgs;switch(_.logInDevMode({currentEvent:K,state:_.state,delay:x}),P){case N:case d:var pe=ie.character,he=ie.node,le=document.createTextNode(pe),ye=le;_.options.onCreateTextNode&&typeof _.options.onCreateTextNode=="function"&&(ye=_.options.onCreateTextNode(pe,le)),ye&&(he?he.appendChild(ye):_.state.elements.wrapper.appendChild(ye)),_.state.visibleNodes=[].concat(w(_.state.visibleNodes),[{type:"TEXT_NODE",character:pe,node:ye}]);break;case h:j.unshift({eventName:b,eventArgs:{removingCharacterNode:!0}});break;case C:var Fe=K.eventArgs.ms;_.state.pauseUntil=Date.now()+parseInt(Fe);break;case f:var de=K.eventArgs,Ee=de.cb,dt=de.thisArg;Ee.call(dt,{elements:_.state.elements});break;case v:var tt=K.eventArgs,We=tt.node,Ae=tt.parentNode;Ae?Ae.appendChild(We):_.state.elements.wrapper.appendChild(We),_.state.visibleNodes=[].concat(w(_.state.visibleNodes),[{type:L,node:We,parentNode:Ae||_.state.elements.wrapper}]);break;case m:var je=_.state.visibleNodes,Ye=ie.speed,Ue=[];Ye&&Ue.push({eventName:T,eventArgs:{speed:Ye,temp:!0}});for(var qe=0,Wt=je.length;qe<Wt;qe++)Ue.push({eventName:b,eventArgs:{removingCharacterNode:!1}});Ye&&Ue.push({eventName:T,eventArgs:{speed:_.options.deleteSpeed,temp:!0}}),j.unshift.apply(j,Ue);break;case b:var Pt=K.eventArgs.removingCharacterNode;if(_.state.visibleNodes.length){var nr=_.state.visibleNodes.pop(),Yr=nr.type,Tt=nr.node,yr=nr.character;_.options.onRemoveNode&&typeof _.options.onRemoveNode=="function"&&_.options.onRemoveNode({node:Tt,character:yr}),Tt&&Tt.parentNode.removeChild(Tt),Yr===L&&Pt&&j.unshift({eventName:b,eventArgs:{}})}break;case T:_.options.deleteSpeed=K.eventArgs.speed;break;case M:_.options.delay=K.eventArgs.delay;break;case S:_.options.cursor=K.eventArgs.cursor,_.state.elements.cursor.innerHTML=K.eventArgs.cursor}_.options.loop&&(K.eventName===b||K.eventArgs&&K.eventArgs.temp||(_.state.calledEvents=[].concat(w(_.state.calledEvents),[K]))),_.state.eventQueue=j,_.state.lastFrameTime=A}}}),W)if(typeof W=="string"){var X=document.querySelector(W);if(!X)throw new Error("Could not find container element");this.state.elements.container=X}else this.state.elements.container=W;ae&&(this.options=Z(Z({},this.options),ae)),this.state.initialOptions=Z({},this.options),this.init()}var $,I;return $=F,(I=[{key:"init",value:function(){var W,ae;this.setupWrapperElement(),this.addEventToQueue(S,{cursor:this.options.cursor},!0),this.addEventToQueue(m,null,!0),!window||window.___TYPEWRITER_JS_STYLES_ADDED___||this.options.skipAddStyles||(W=".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}}",(ae=document.createElement("style")).appendChild(document.createTextNode(W)),document.head.appendChild(ae),window.___TYPEWRITER_JS_STYLES_ADDED___=!0),this.options.autoStart===!0&&this.options.strings&&this.typeOutAllStrings().start()}},{key:"logInDevMode",value:function(W){this.options.devMode&&console.log(W)}}])&&q($.prototype,I),Object.defineProperty($,"prototype",{writable:!1}),F}()})(),i.default})())})(Rl);var vg=Rl.exports;const yg=xr(vg);class _g{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.currentTableWrapper=null,this.rowId=0,this.typewriter=null,this.chunkBuffer="",this.bufferTimer=null,this.minBufferSize=20,this.bufferTimeout=50,this.container=e,this.htmlRenderingTarget=e,this.exposedRegexes=r.exposedRegexes||[],this.useTableProcessor=!!r.useTableProcessor,this.dark=!!r.dark,this.initProcessor(),this.animated=!!r.animated,this.animated&&(this.typewriter=this.initTypewriter()),this.onAnimationStart=r.onAnimationStart||(()=>{}),this.onAnimationEnd=r.onAnimationEnd||(()=>{})}initProcessor(){this.processor=v1.unified().use(h1).use(this.remarkCheckIncompleteTableRows.bind(this)).use(p1).use(d1).use(f1,{allowDangerousHtml:!0}).use(m1,{allowDangerousHtml:!0})}remarkCheckIncompleteTableRows(){return e=>{g1.visit(e,void 0,(r,s,n)=>{var c,o;const i=n,a=r.type;if(a==="text"&&this.exposedRegexes.forEach(({regex:l,type:d})=>{this.processTextNode(r,s,i,l,d)}),!!this.useTableProcessor&&(a==="table"&&!r.data&&(r.data={hProperties:{id:`t-${this.tableId}`}},this.mdTableHeaderString=this.extractTableHeaderString(r),this.setIsRenderingTable(!0)),a==="tableRow"&&!r.data&&(r.data={hProperties:{id:`r-${this.rowId++}`}}),a==="tableRow")){const l=i.children[0].children.length,d=r.children.length,h=this.accumulator.slice((c=r.position)==null?void 0:c.start.offset,(o=r.position)==null?void 0:o.end.offset);d<l?this.isIncompleteTableRow=!0:h.endsWith("|")?(this.isIncompleteTableRow=!1,this.pendingRowString=""):(this.pendingRowString=h,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.isRenderingTable&&this.currentTableWrapper?this.currentTableWrapper.after(e):this.container.appendChild(e),this.htmlRenderingTarget=e,this.accumulator="",this.isRenderingTable&&(this.tableId++,this.mdTableHeaderString="",this.isIncompleteTableRow=!1,this.isRenderingTable=!1,this.currentTableWrapper=null)}extractTableHeaderString(e){const r=e,s=r.children[0],n=r.align,i=s.children.map(c=>` ${c.children.map(l=>l.value).join("")} `).join("|"),a=n.map(c=>c==="left"?":---":c==="right"?"---:":c==="center"?":---:":"---").join("|");return`|${i}|
245
+ `}],staticClass:"e-timeline__tooltip e-border e-rounded e-px-2 e-relative",class:e.computedClasses.tooltipSlot},[e._v(" "+e._s(n)+" ")])]},{timestamp:n,active:i&&!e.isHoveringMilestone})],2),r("div",{key:`${e.hoveredGroupedEvents?e.hoveredGroupedEvents[0].timestamp:(a=e.hoveredEvent)==null?void 0:a.timestamp}`,ref:"eventTooltip",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-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,o){return r("div",{key:o},[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)},P9=[],O9=z(D9,L9,P9,!1,null,null,null,null);const yl=O9.exports,I9=E.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""}}}),S_="";var z9=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))])},R9=[],B9=z(I9,z9,R9,!1,null,"7e66cb69",null,null);const _l=B9.exports,F9=E.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:()=>Yn("#ebedf0","#17459e",10)},colorsDark:{type:Array,default:()=>Yn("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=x.hsl(t);return r.l+=e,r.l=Math.max(.1,Math.min(.9,r.l)),r.formatHex()},getContrastingPaletteColor(t){const e=x.color(t);if(!e)return t;const{r,g:s,b:n}=e.rgb(),a=(.299*r+.587*s+.114*n)/255>.5?-.5:.5;return this.adjustColorBrightness(t,a)}}}),k_="";var A9=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:s,value:n,count:i,itemClass:a,id:c}){return r("div",{key:n,staticClass:"e-flex e-w-full e-justify-center e-items-center e-heatmap-bar__item",class:{"e-heatmap-bar__item--selected":e.selectedValue===n,...e.getItemClasses(a)},style:e.getItemStyle(i),on:{click:function(o){return e.$emit("change",n,a,c)}}},[e.namesOnly?r("span",{staticClass:"e-heatmap-bar__item__count",style:e.getCountTextStyle(i)},[e._v(" "+e._s(s)+" ")]):e.showCounts?r("span",{staticClass:"e-heatmap-bar__item__count",style:e.getCountTextStyle(i)},[e._v(" "+e._s(i>0?i:"")+" ")]):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(s)+" ")]):e._e()])})],2)},H9=[],N9=z(F9,A9,H9,!1,null,null,null,null);const Oi=N9.exports,W9=E.extend({name:"EHoursHeatmap",components:{EHeatmapBar:Oi},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,[Be(e.timestamp).format("H")]:e}),{})},heatmapBarItems(){return new Array(24).fill(void 0).reduce((t,e,r)=>{var s;return[...t,{name:this.getFormattedHour(r),value:r,count:((s=this.itemsByHour[r])==null?void 0:s.count)||0}]},[])}},methods:{getFormattedHour(t){const e=t.toString();return(e.length>1?e:`0${e}`)+(this.dense?"h":":00")}}});var Y9=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))},j9=[],U9=z(W9,Y9,j9,!1,null,null,null,null);const bl=U9.exports,G9=E.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 q9=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()])},Z9=[],X9=z(G9,q9,Z9,!1,null,null,null,null);const Cl=X9.exports,V9=E.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 Q9=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)},K9=[],J9=z(V9,Q9,K9,!1,null,null,null,null);const wl=J9.exports,ep=E.extend({name:"ECompareSeparator",components:{EIcon:Xe},props:{xOffset:{type:[Number,String],default:50}},computed:{separatorStyle(){return{left:`${this.xOffset}%`}}}}),T_="";var tp=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-compare-separator",on:{mousedown:function(s){return s.preventDefault(),(n=>e.$emit("mousedown",n)).apply(null,arguments)},touchstart:function(s){return s.preventDefault(),(n=>e.$emit("touchstart",n)).apply(null,arguments)}}},[r("div",{staticClass:"e-compare-separator__line",style:e.separatorStyle}),r("div",{staticClass:"e-compare-separator__icon e-flex e-justify-center e-items-center",style:e.separatorStyle},[r("EIcon",{attrs:{icon:"fa-caret-left",color:"e-text-white",size:"base"}}),r("EIcon",{attrs:{icon:"fa-caret-right",color:"e-text-white",size:"base"}})],1)])},rp=[],sp=z(ep,tp,rp,!1,null,null,null,null);const xl=sp.exports,np=E.extend({name:"EDragResize",mixins:[st],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,s=e.y-this.dragOffset.y,n=this.bounds,i=Math.max(n.left,Math.min(r,n.left+n.width-this.lens.width)),a=Math.max(n.top,Math.min(s,n.top+n.height-this.lens.height));this.lens.x=i,this.lens.y=a},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,s=e.y-this.dragOffset.y;let{x:n,y:i,width:a,height:c}=this.lens;switch(this.currentHandle){case"top-left":n+=r,i+=s,a-=r,c-=s;break;case"top":i+=s,c-=s;break;case"top-right":i+=s,a+=r,c-=s;break;case"right":a+=r;break;case"bottom-right":a+=r,c+=s;break;case"bottom":c+=s;break;case"bottom-left":n+=r,a-=r,c+=s;break;case"left":n+=r,a-=r;break}const o=this.bounds,l=50;a=Math.max(l,Math.min(o.width,a)),c=Math.max(l,Math.min(o.height,c)),n=Math.max(o.left,Math.min(n,o.left+o.width-a)),i=Math.max(o.top,Math.min(i,o.top+o.height-c)),this.lens={x:n,y:i,width:a,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}}}}),M_="";var ip=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(s){return r("div",{key:s,staticClass:"resize-handle",class:"resize-"+s,on:{mousedown:function(n){return n.stopPropagation(),n.preventDefault(),e.startResize(s,n)},touchstart:function(n){return n.stopPropagation(),n.preventDefault(),e.startResize(s,n)}}})}),0)},ap=[],op=z(np,ip,ap,!1,null,"75e287d0",null,null);const Ii=op.exports,lp=E.extend({name:"EImagesComparator",components:{EDragResize:Ii},props:{beforeImageSrc:String,afterImageSrc:String,isLoading:Boolean,mode:{type:String,default:Ut.Curtain,validator:t=>Object.values(Ut).includes(t)},transparency:{type:Number,default:.5},blurBackground:{type:Boolean,default:!1}},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:Ut,isBeforeImageLoaded:!1,isAfterImageLoaded:!1}},computed:{beforeImageStyle(){if(this.isComponentLoading)return{clip:"none"};if(this.mode===Ut.Window){const{x:t,y:e,width:r,height:s}=this.windowState;return{clip:`rect(${e}px, ${t+r}px, ${e+s}px, ${t}px)`}}else return this.mode===Ut.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===Ut.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:s}=this.computedImageDimension,n=Math.max(t,e),i=.04,a=.01,c=n*i,o=n*a,l={width:`${c}px`,height:`${c}px`,left:`${r+t-c-o}px`,top:`${s+e-c-o}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},isComponentLoading(){return this.isLoading||!this.isBeforeImageLoaded||!this.isAfterImageLoaded}},watch:{beforeImageSrc(){this.isBeforeImageLoaded=!1},afterImageSrc(){this.isAfterImageLoaded=!1}},methods:{onZoomChange(t){this.zoomState={...t}},handleAfterImageLoad(){this.isAfterImageLoaded=!0,this.handleResize()},handleBeforeImageLoad(){this.isBeforeImageLoaded=!0,this.handleResize()},handleResize(){var a;const t=this.$refs.container;this.containerRect=t.getBoundingClientRect();const e=(a=this.$refs.afterImage)==null?void 0:a.$refs.image;if(!(e!=null&&e.naturalWidth)||!(e!=null&&e.naturalHeight))return;const r=t.clientWidth,s=t.clientHeight,n=e.naturalWidth/e.naturalHeight;if(r/s>n){const c=s*n;this.computedImageDimension={width:c,height:s,left:(r-c)/2,top:0}}else{const c=r/n;this.computedImageDimension={width:r,height:c,top:(s-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(n=>n.identifier===this.touchIdentifier);if(!e)return;const s=(e.clientX-this.startTouchX)/this.computedImageDimension.width*100+this.startSeparatorPositionX;this.separatorPositionX=Math.max(0,Math.min(100,s))},handleTouchEnd(){document.removeEventListener("touchmove",this.handleTouchMove),document.removeEventListener("touchend",this.handleTouchEnd),this.touchIdentifier=null},handleWindowChange(t){Object.assign(this.windowState,t)}}}),$_="";var cp=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,"blur-background":e.blurBackground},on:{change:e.onZoomChange,load:e.handleAfterImageLoad},scopedSlots:e._u([{key:"extraWidgets",fn:function(){return[e._t("extraWidgets")]},proxy:!0}],null,!0)}),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,"blur-background":e.blurBackground},on:{load:e.handleBeforeImageLoad}})],1),e.mode===e.CompareMode.Curtain&&!e.isComponentLoading?r("ECompareSeparator",{attrs:{"x-offset":e.computedSeparatorPositionX},on:{mousedown:function(s){return s.stopPropagation(),s.preventDefault(),e.handleMouseDown.apply(null,arguments)},touchstart:e.handleTouchStart}}):e._e(),e.mode==="window"&&!e.isComponentLoading?r("EDragResize",{attrs:{initial:e.windowState,bounds:e.windowBounds},on:{change:e.handleWindowChange}}):e._e(),e.isComponentLoading?e._e():r("div",{staticClass:"e-images-comparator__watermark",style:e.watermarkStyle},[e._t("watermark",null,null,e.watermarkStyle)],2),e.isComponentLoading?r("div",{staticClass:"e-images-comparator__overlay"},[e._t("overlay")],2):e._e(),r("div",{staticClass:"e-images-comparator__imageOverlay"},[e._t("imageOverlay")],2),e._t("default",null,{imageDimensions:e.computedImageDimension})],2)},up=[],dp=z(lp,cp,up,!1,null,"53097d92",null,null);const Sl=dp.exports,hp=E.extend({name:"EExpandableMenu",props:{padding:{type:Number,default:4},direction:{type:String,default:"top",validator:t=>["top","right","bottom","left"].includes(t)},defaultOpen:{type:Boolean,default:!1}},data(){return{isMenuOpened:this.defaultOpen}},computed:{row(){return["right","left"].includes(this.direction)},reverse(){return["top","left"].includes(this.direction)},menuStyle(){return{gap:`${this.padding}px`}}},watch:{isMenuOpened(){this.$nextTick(this.animateButtons)}},mounted(){this.$nextTick(this.animateButtons)},methods:{toggleMenu(){this.isMenuOpened=!this.isMenuOpened,this.$emit("toggle",this.isMenuOpened)},animateButtons(){const t=this.$refs.menu;if(!t)return;const e=Array.from(t.querySelectorAll(".e-action-button"));if(!e.length)return;const r=this.row?"X":"Y",s=this.reverse?1:-1,n=this.row?"width":"height";e.forEach((i,a)=>{if(this.isMenuOpened){i.style.transform="";return}const c=i.getBoundingClientRect()[n]+this.padding;i.style.transform=`translate${r}(${s*c*a}px)`})}}}),E_="";var fp=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}},[r("div",{ref:"activator",staticClass:"expandable-menu__activator",on:{click:e.toggleMenu}},[e._t("activator")],2),r("div",e._g({ref:"menu",staticClass:"expandable-menu__menu",style:e.menuStyle},e.$listeners),[e._t("default")],2)])},pp=[],mp=z(hp,fp,pp,!1,null,null,null,null);const zi=mp.exports,D_="",gp={name:"ECalendarHeatmap",components:{EIcon:Xe},mixins:[gt],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 s=e.format("YYYY"),n=e.format("MM"),i=e.format("YYYY-MM-DD");let a={...this.itemsMap[i],date:i,selected:i===this.selectedDate};this.itemsMap[i]||(a={...a,count:0,date:i,disabled:this.isDisabledFn(i)},a={...a,label:this.labelFn(a)}),t={...t,[`${s}-${n}`]:{...t[`${s}-${n}`],[i]:{...a,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)),s=this._moment(this._startDate).startOf("month"),n=this._moment(this._endDate).startOf("month"),i=this._moment(s);let a={},c=-r,o;for(;i<=n;){let l=o?this.getMonthWidth(o):0;const d=i.startOf("month").day()===0;let h=0;d&&i>s&&(h=this.monthGutterSize);let m=this.dayFullSize;c+=l+this.monthGutterSize-m+h,a[i.format("YYYY-MM")]=c,o=i.clone(),i.add({months:1})}return a},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 Be(...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=Be.duration(this._moment(this._endDate).diff(this._moment(e))).asDays(),s=Be.duration(this._moment(e).endOf("month").diff(this._moment(this._startDate))).asDays();if(r<15||s<15)return{display:"none"};const n=this.isStartOfYear(e)?this.textSize:0;return{...this.textStyle,transform:`translate(${this.getMonthWidth(e)/2+this.textSize/3-n}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,s=e+this.dayRectSize,n=r+this.dayRectSize,i=e+this.dayRectSize/2,a=r+this.dayRectSize/2;return[`M ${e} ${r}`,`L ${i} ${a}`,`L ${e} ${n}`,`M ${s} ${r}`,`L ${i} ${a}`,`L ${s} ${n}`].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 Be(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},s=r.left-e.left,n=r.top-e.top,i=r.bottom-e.top,a=this.$refs.tooltip.clientWidth,c=this.$refs.tooltip.clientHeight;let o=s+r.width/2-a/2;o+e.left<e.left?o=0:o+e.left+a>=e.right&&(o=e.width-a);let l=n-c-this.dayFullSize/2;l+e.top<=e.top&&(l=i+this.dayFullSize/2),this.tooltipPositionX=o,this.tooltipPositionY=l},onDayRectMouseLeave(){this.tooltipVisibility=!1,this.hoveredDayDate=""}}};var vp=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(s){e.daysOffset-=30}}},[r("EIcon",{attrs:{icon:"fa-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(s,n){return r("text",{key:n,style:e.getWeekDayTextStyle(n)},[e._v(" "+e._s(e._moment().day(n).format("ddd"))+" ")])}),0),e._l(e.datesTree,function(s,n,i){return r("g",{key:n,staticClass:"e-heatmap-calendar__month",style:e.getMonthStyle(i,n)},[r("text",{style:e.getMonthTextStyle(i,n)},[e._v(" "+e._s(e.getMonthText(n))+" ")]),e._l(s,function(a,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":a.disabled,"e-heatmap-calendar__day--selected":a.selected}},[r("rect",{style:e.getDayStyle(a,c),attrs:{rx:e.borderRadius,height:e.dayRectSize,width:e.dayRectSize},on:{mouseenter:o=>e.onDayRectMouseEnter(o,a),mouseleave:e.onDayRectMouseLeave,mouseup:function(o){return e.$emit("item-selected",a)}}}),a.disabled?r("path",{style:`stroke: ${e.disabledColor};`,attrs:{d:e.getDisabledDayPath(a)}}):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(s,n){return r("rect",{key:n,style:e.getLegendRectStyle(n),attrs:{height:e.dayRectSize,width:e.dayRectSize,fill:s,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(s){e.daysOffset+=30}}},[r("EIcon",{attrs:{icon:"fa-angle-right",size:"Sm"}})],1):e._e()])},yp=[],_p=z(gp,vp,yp,!1,null,"50280d2a",null,null);const kl=_p.exports,bp=E.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 s=this.disabled?"#c6c6c6":"#8ac5ff",n=this.getPosition(e),i=this.getPosition(r)-n;return{left:`calc(${n}% + 0px)`,width:`calc(${i}% + 0px)`,background:`${s}`}},getRangeStyle(t){const e=this.disabled?"#c6c6c6":"#3b82f6",r=this.getPosition(t[0]),s=this.getPosition(t[1])-r;return{left:`calc(${r}% + 0px)`,width:`calc(${s}% + 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 s=(t.clientX-this.sliderRect.left)/this.sliderRect.width,n=Math.round(s*this.rangeDistance+this.min),i=this.roundToStep(n);if(this.selectedThumb.id==="input-min-thumb"){if(i>this.range[1]){this.range=[this.range[1],this.range[1]];return}if(i<=this.min){this.range=[this.min,this.range[1]];return}this.range=[i,this.range[1]]}if(this.selectedThumb.id==="input-max-thumb"){if(i<this.range[0]){this.range=[this.range[0],this.range[0]];return}if(i>=this.max){this.range=[this.range[0],this.max];return}this.range=[this.range[0],i]}}},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,s=t*this.step>0?this.step*(e+1):this.step*(e-1);return Math.abs(t-r)<Math.abs(t-s)?r:s},minutesToTime(t){const e=Math.floor(t/60).toString().padStart(2,"0"),r=(t%60).toString().padStart(2,"0");return`${e}:${r}`}}});var Cp=function(){var e=this,r=e._self._c;return r("div",{ref:"slider",staticClass:"e-range-slider",on:{pointerdown:function(s){return s.preventDefault(),e.onMouseDown.apply(null,arguments)},pointerup:function(s){return s.preventDefault(),e.onMouseUp.apply(null,arguments)},pointermove:function(s){return s.preventDefault(),e.onMouseMove.apply(null,arguments)},touchstart:function(s){return s.preventDefault(),e.onMouseDown.apply(null,arguments)},touchend:function(s){return s.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()])])])])},wp=[],xp=z(bp,Cp,wp,!1,null,null,null,null);const Sp=xp.exports,kp=E.extend({name:"EDivider",props:{dark:{type:Boolean,default:!1}}});var Tp=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]"]})},Mp=[],$p=z(kp,Tp,Mp,!1,null,null,null,null);const Ep=$p.exports,Dp=E.extend({name:"ESchedulePicker",components:{ERow:Rn,ECol:Bn,ERangeSlider:Sp,EDivider:Ep},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&&[Cr.Continuous,Cr.WorkingHours].includes(this.scheduleType)}},watch:{scheduleType:{immediate:!0,handler(){this.schedule=Un(ho[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=Un(t),this.hours=Object.values(this.schedule)[1]}},methods:{initEnabledDays(){Object.keys(this.enabledDays).forEach(t=>{this.enabledDays[t]=this.scheduleType===Cr.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=jn(e[0]),s=jn(e[1]);return[t,[`${r}-${s}`]]}}))},changeSchedule(){this.$emit("input",this.toTextSchedule())},onHoursChange(t){this.schedule=Object.entries(this.schedule).reduce((e,[r])=>({...e,[r]:t}),{})}}});var Lp=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(s){e.hours=s},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(s,n){return r("ERow",{key:n,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[n],expression:"enabledDays[day]"}],staticClass:"e-w-5 e-h-auto",attrs:{type:"checkbox",disabled:e.isDisabled},domProps:{checked:Array.isArray(e.enabledDays[n])?e._i(e.enabledDays[n],null)>-1:e.enabledDays[n]},on:{change:[function(i){var a=e.enabledDays[n],c=i.target,o=!!c.checked;if(Array.isArray(a)){var l=null,d=e._i(a,l);c.checked?d<0&&e.$set(e.enabledDays,n,a.concat([l])):d>-1&&e.$set(e.enabledDays,n,a.slice(0,d).concat(a.slice(d+1)))}else e.$set(e.enabledDays,n,o)},e.changeSchedule]}}),r("label",{staticClass:"e-ml-2",class:[e.dark?"e-text-white":"e-text-gray-900"]},[e._v(" "+e._s(n[0].toUpperCase())+" ")])])]),r("ECol",[r("ERangeSlider",{attrs:{max:e.max,min:e.min,disabled:!e.enabledDays[n],readonly:e.isDisabled,step:e.step,dark:e.dark,"is-time":""},on:{input:e.changeSchedule},model:{value:e.schedule[n],callback:function(i){e.$set(e.schedule,n,i)},expression:"schedule[day]"}})],1)],1)})],2)},Pp=[],Op=z(Dp,Lp,Pp,!1,null,null,null,null);const Tl=Op.exports,Ml=E.extend({mixins:[st,gt],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 s=e[r];r<e.length?this.$setTimeout(()=>{t(),this.setInactivityListenerReminderTimers(t,e,r+1)},s*1e3):this.isInactivityListenerActive&&this.$removeInactivityListeners()},$registerInactivityListener({callback:t=()=>{},duration:e=0,reminders:r=[]}){this.isInactivityListenerActive=!0,this.resetInactivityListenerTimer(t,e,r);const s=()=>this.resetInactivityListenerTimer(t,e,r);this.$addEventListener("mousemove",s),this.inactivityListeners.push(s)},$removeInactivityListeners(){this.isInactivityListenerActive&&(this.isInactivityListenerActive=!1,this.inactivityListeners.forEach(t=>{this.$removeEventListener("mousemove",t)}),this.$clearTimeouts())}}}),$l=Object.freeze(Object.defineProperty({__proto__:null,eventListeners:st,formField:is,inactivityListener:Ml,selectFormField:Mr,timeouts:gt,toggleOpen:as},Symbol.toStringTag,{value:"Module"})),Ip=E.extend({name:"EPopover",directives:{ClickOutside:ns},mixins:[as],props:{dark:{type:Boolean,default:!1},label:{type:String,default:"Click to open"},panelSide:{type:String,default:"center"},panelClasses:{type:[Object,String,Array],default:()=>({})},autoPosition:{type:Boolean,default:!1}},data(){return{shouldOpenUpward:!1}},computed:{panelThemeClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"right-0":this.panelSide==="right","left-0":this.panelSide==="left"}},panelPositionClass(){return this.autoPosition?this.shouldOpenUpward?"e-bottom-[100%]":"e-top-[100%]":void 0}},watch:{isOpen(t){t&&this.autoPosition&&(this.shouldOpenUpward=!1,this.$nextTick(()=>{this.calculatePosition()}))}},methods:{closePopover(){this.isOpen=!1,this.autoPosition&&(this.shouldOpenUpward=!1)},calculatePosition(){const t=this.$refs.panelMenu;if(!t)return;const e=this.findScrollableParent(t),r=e.scrollHeight>e.clientHeight,s=t.getBoundingClientRect(),n=window.innerHeight,i=s.bottom>n;this.shouldOpenUpward=i||r},findScrollableParent(t){let e=t.parentElement;for(;e;){const r=window.getComputedStyle(e).overflowY;if(r==="auto"||r==="scroll")return e;e=e.parentElement}return document.documentElement}}}),L_="";var zp=function(){var e=this,r=e._self._c;return r("div",e._b({directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closePopover,expression:"closePopover"}],ref:"popoverWrapper",staticClass:"e-popover__wrapper e-relative e-w-full"},"div",e.$attrs,!1),[e._t("trigger",function(){return[r("div",e._g(e._b({ref:"triggerButton",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({ref:"panelMenu",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-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,e.panelPositionClass]},"div",e.$attrs,!1),[e._t("panel",function(){return[e._t("default")]},{toggleOpen:e.toggleOpen,isOpen:e.isOpen})],2):e._e()],2)},Rp=[],Bp=z(Ip,zp,Rp,!1,null,"74fdaf19",null,null);const Ps=Bp.exports,Fp=E.extend({name:"ECheckbox",components:{EIcon:Xe},props:{checked:{type:Boolean,default:!1}}}),P_="";var Ap=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",colorClass:"e-text-white",size:"xs"}}):e._e()],1)},Hp=[],Np=z(Fp,Ap,Hp,!1,null,"e4654285",null,null);const Wp=Np.exports,Yp=E.extend({name:"ESelect",components:{ECheckbox:Wp,EIcon:Xe,EPopover:Ps},directives:{ResizeObserver:lt},mixins:[Mr],props:{dark:{type:Boolean,default:!1},withSelectAll:{type:Boolean,default:!1},customSelectionLabel:{type:String,default:""},name:{type:String,default:"Items"},label:{type:String,default:null},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.searchPlaceholder: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()}}}),O_="";var jp=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:s,toggle:n}){return[e.label?r("label",{staticClass:"e-select-field__label"},[e._v(" "+e._s(e.label)+" ")]):e._e(),e._t("activator",function(){return[r("div",{staticClass:"e-select__trigger-button e-relative e-w-full e-min-h-[40px] e-rounded e-border e-border-solid e-py-2 e-pl-3 e-leading-5 e-cursor-pointer e-max-h-[40px] e-flex e-items-center e-bg-gray-900",class:[e.radioItemClasses,e.dark?"_dark":"_light",{"e-select--open":s}],attrs:{id:`e-select-trigger-${Date.now()}`,"data-test-id":`select-trigger-${Date.now()}`,role:"button"},on:{click:i=>e.handleTriggerClick(i,n)}},[s&&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(i){i.stopPropagation()},input:function(i){i.target.composing||(e.searchQuery=i.target.value)}}})]):[e._t("selection",function(){return[r("span",{staticClass:"e-capitalize e-select__trigger-button-text e-truncate",class:{"e-text-gray-400":e.multiple&&e.selectedOption.length===0}},[e._v(" "+e._s(e.customLabel)+" ")])]},{isEmpty:e.multiple?e.selectedOption.length===0:!e.selectedOption,value:e.value})],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(i){return i.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:s?"fas fa-sort-up e-mt-2.5":"fas fa-sort-down e-mb-1.5"}})],1)]})],2)]},{attrs:{class:e.radioItemClasses,isOpen:s},on:{click:n}})]}},{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:function(s){return e.toggleSelectAll(s)}}},[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},on:{click:function(s){return e.toggleSelectAll(s)}}}),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(s,n){return r("div",{key:n,staticClass:"e-select__menu-item-wrapper e-relative e-select-none e-p-2",class:[e.containerClasses(s),{"hover:e-bg-gray-700":e.dark&&!e.isSelected(s.value)," hover:e-bg-gray-100":!e.dark&&!e.isSelected(s.value)}],attrs:{id:`select-item-${s.value}`,"data-test-id":`select-item-${n}`},on:{click:function(i){return e.onItemClick(s.value,i)}}},[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(s.value)},on:{click:function(i){return e.onItemClick(s.value,i)}}}):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(s.label)+" ")])]},{item:s,isSelected:e.isSelected(s.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)})},Up=[],Gp=z(Yp,jp,Up,!1,null,null,null,null);const Ri=Gp.exports,qp=E.extend({name:"ESchedule",components:{ESelect:Ri,EPopover:Ps,EIcon:Xe},directives:{ResizeObserver:lt},props:{schedule:{type:Object,default:null},templates:{type:Array,default:()=>[{label:"Daily 7 AM - 7 PM (All Days)",value:"07:00-19:00"},{label:"Weekly 7 AM - 7 PM (Weekdays Only)",value:"07:00-19:00|weekdays"},{label:"Business Hours (8:00 - 18:00)",value:"08:00-18:00"},{label:"Business Hours - Weekdays (9:00 - 17:00)",value:"09:00-17:00|weekdays"},{label:"Morning Shift (6:00 - 14:00)",value:"06:00-14:00"},{label:"Extended Hours (7:00 - 20:00)",value:"07:00-20:00"},{label:"Evening Shift (14:00 - 22:00)",value:"14:00-22:00"},{label:"Night Shift (22:00 - 06:00)",value:"22:00-06:00"},{label:"24/7 Operation",value:"00:00-23:59"}]},withTemplateSelector:{type:Boolean,default:!0}},data(){return{rowHeightPx:48,segmentsContainerRect:null,editing:null,creating:null,internalDays:[],selectedTemplate:null,savedDaysState:null,defaultSchedule:{1:["07:00-19:00"],2:["07:00-19:00"],3:["07:00-19:00"],4:["07:00-19:00"],5:["07:00-19:00"],6:["07:00-19:00"],7:["07:00-19:00"]}}},computed:{isIdle(){return!(this.creating||this.editing)},sortedDays(){return this.internalDays.slice().sort((t,e)=>t.day<e.day?-1:1)},segmentsContainerStyles(){return this.segmentsContainerRect?{width:`${this.segmentsContainerRect.width}px`,height:`${this.segmentsContainerRect.height}px`,top:`${this.segmentsContainerRect.top}px`,left:`${this.segmentsContainerRect.left}px`}:{}},pixelsPerHour(){return this.segmentsContainerRect?this.segmentsContainerRect.width/24:0}},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(([s,n])=>{const i=parseInt(s,10)-1,a=[];return n.forEach(c=>{const[o,l]=c.split("-"),d=this.normalizeTime(o),h=this.normalizeTime(l),{hours:m,minutes:b}=this.parseTime(d),{hours:C,minutes:f}=this.parseTime(h),v=m+b/60;C+f/60<v?(a.push({startTime:d,endTime:"23:59"}),a.push({startTime:"00:00",endTime:h})):a.push({startTime:d,endTime:h})}),{day:i,segments:a}})}},isIdle(t){t&&this.emitChangeEvent()}},mounted(){this.$nextTick(()=>{this.onResize()})},methods:{applyTemplateToAll(){if(!this.selectedTemplate)return;const[t,e]=this.selectedTemplate.split("|"),[r,s]=t.split("-"),{hours:n,minutes:i}=this.parseTime(r),{hours:a,minutes:c}=this.parseTime(s),o=n+i/60,d=a+c/60<o;this.internalDays=this.internalDays.map(h=>e==="weekdays"?h.day>=0&&h.day<=4?d?{...h,segments:[{startTime:r,endTime:"23:59"},{startTime:"00:00",endTime:s}]}:{...h,segments:[{startTime:r,endTime:s}]}:{...h,segments:[]}:d?{...h,segments:[{startTime:r,endTime:"23:59"},{startTime:"00:00",endTime:s}]}:{...h,segments:[{startTime:r,endTime:s}]}),this.emitChangeEvent()},applySegmentsToFilteredDays(t,e,r=()=>!0){const s=JSON.parse(JSON.stringify(this.sortedDays[t].segments));this.internalDays=this.internalDays.map(n=>r(n.day)?{...n,segments:s}:n),this.emitChangeEvent(),e()},applyToAllDays(t,e){this.applySegmentsToFilteredDays(t,e)},applyToWeekdays(t,e){this.applySegmentsToFilteredDays(t,e,r=>r>=0&&r<=4)},applyToWeekends(t,e){this.applySegmentsToFilteredDays(t,e,r=>r===5||r===6)},formatDayFull(t){return["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"][t]},formatHourLabel(t){return`${t.toString().padStart(2,"0")}h`},getSegmentLabel(t){return`${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(s=>{const n=this.normalizeTime(s.startTime),i=this.normalizeTime(s.endTime);return`${n}-${i}`})}),t},parseTime(t){const[e,r]=t.split(":").map(s=>parseInt(s,10));return{hours:e,minutes:r}},padTime(t){let e=Math.round(t*60);e=Math.max(0,Math.min(e,1439));const r=Math.floor(e/60),s=e%60;return`${r.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}`},roundToFive(t){const e=t*60;if(e>=1437)return 1439/60;const r=Math.round(e/5)*5;return Math.max(0,Math.min(r,1435))/60},calculateBarStyle(t,e,r){const{hours:s,minutes:n}=this.parseTime(e),{hours:i,minutes:a}=this.parseTime(r),c=s+n/60,l=i+a/60-c,d=c/24*100,h=l/24*100,m=t*this.rowHeightPx,b=this.rowHeightPx*.7,C=(this.rowHeightPx-b)/2;return{position:"absolute",top:`${m+C}px`,left:`calc(${d}% + 1px)`,width:`calc(${h}% - 2px)`,height:`${b}px`}},onResize(){const t=this.$refs.table;if(!t)return;const e=t.querySelector("tbody");if(!e)return;const r=e.querySelector("tr");r&&(this.rowHeightPx=r.getBoundingClientRect().height);const s=Array.from(t.querySelectorAll(".time-cell"));if(!s.length)return;const n=s[0].getBoundingClientRect(),i=s.slice(-24),a=i[i.length-1].getBoundingClientRect(),c=t.getBoundingClientRect();this.segmentsContainerRect={top:n.top-c.top,left:n.left-c.left,width:a.right-n.left,height:a.bottom-n.top}},onResizeHandleMouseDown(t,e,r,s){this.startEditingSegment(t,e,r,s)},onSegmentMouseDown(t,e,r){this.startEditingSegment(t,e,r,"move")},startEditingSegment(t,e,r,s){if(t.preventDefault(),t.stopPropagation(),!this.segmentsContainerRect)return;const n=this.sortedDays[e].segments[r],{hours:i,minutes:a}=this.parseTime(n.startTime),{hours:c,minutes:o}=this.parseTime(n.endTime),l=i+a/60,d=c+o/60;this.savedDaysState=JSON.parse(JSON.stringify(this.internalDays)),this.editing={dayIndex:e,segmentIndex:r,type:s,startMouseX:t.clientX,origStartFrac:l,origEndFrac:d,origStartTime:n.startTime,origEndTime:n.endTime,isMultiDay:t.shiftKey},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:s,startMouseX:n,origStartFrac:i,origEndFrac:a,origStartTime:c,origEndTime:o,isMultiDay:l}=this.editing,h=(t.clientX-n)/this.pixelsPerHour;let m=i,b=a;s==="move"?(m=i+h,b=a+h):s==="resize-left"?m=i+h:s==="resize-right"&&(b=a+h);const C=.25;s==="resize-left"&&b-m<C&&(m=b-C),s==="resize-right"&&b-m<C&&(b=m+C),m=this.roundToFive(Math.max(0,Math.min(m,1439/60))),b=this.roundToFive(Math.max(0,Math.min(b,1439/60)));const f={startTime:this.padTime(m),endTime:this.padTime(b)},v=this.sortedDays[e].day,T=l&&this.savedDaysState?this.savedDaysState:this.internalDays;this.internalDays=T.map(M=>{if(M.day===v)return{...M,segments:M.segments.map((N,L)=>L===r?f:N)};if(l&&this.savedDaysState){const N=M.segments.filter(L=>!(L.startTime===c&&L.endTime===o));return{...M,segments:[...N,f]}}return M})},onMouseUp(){document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),this.editing=null,this.savedDaysState=null,this.mergeOverlappingSegments()},deleteSegment(t,e){const r=this.sortedDays[t].day;this.internalDays=this.internalDays.map(s=>{if(s.day!==r)return s;const n=s.segments.filter((i,a)=>a!==e);return{...s,segments:n}}),this.emitChangeEvent()},onBackgroundMouseDown(t){if(t.target.closest(".segment"))return;t.preventDefault();const r=this.$refs.overlay;if(!r)return;const s=r.getBoundingClientRect(),n=t.clientY-s.top,i=Math.floor(n/this.rowHeightPx);if(i<0||i>=this.sortedDays.length)return;let a=(t.clientX-s.left)/this.pixelsPerHour;a=Math.max(0,Math.min(a,1439/60)),this.creating={startDayIndex:i,currentDayIndex:i,startFrac:a,currentFrac:a,isMultiDay:t.shiftKey},document.addEventListener("mousemove",this.onCreateMouseMove),document.addEventListener("mouseup",this.onCreateMouseUp)},onCreateMouseMove(t){if(!this.creating||!this.segmentsContainerRect)return;t.preventDefault();const e=this.$refs.overlay;if(!e)return;const r=e.getBoundingClientRect();let s=(t.clientX-r.left)/this.pixelsPerHour;s=Math.max(0,Math.min(s,1439/60)),this.creating.currentFrac=s;const n=t.clientY-r.top;let i=Math.floor(n/this.rowHeightPx);i=Math.max(0,Math.min(i,this.sortedDays.length-1)),this.creating.currentDayIndex=i,this.creating.isMultiDay=t.shiftKey},onCreateMouseUp(){if(!this.creating)return;const{startDayIndex:t,currentDayIndex:e,startFrac:r,currentFrac:s,isMultiDay:n}=this.creating;let i=Math.min(r,s),a=Math.max(r,s);if(a-i<.25){this.cleanupCreate();return}const c=this.roundToFive(i),o=this.roundToFive(a),l={startTime:this.padTime(c),endTime:this.padTime(o)},d=this.sortedDays.map(m=>m.day).slice(Math.min(t,e),Math.max(t,e)+1),h=n?this.internalDays.map(m=>m.day):d;this.internalDays=this.internalDays.map(m=>h.includes(m.day)?{...m,segments:[...m.segments,l]}:m),this.cleanupCreate(),this.mergeOverlappingSegments()},cleanupCreate(){document.removeEventListener("mousemove",this.onCreateMouseMove),document.removeEventListener("mouseup",this.onCreateMouseUp),this.creating=null},calculateMultiDayStyle(t,e,r,s){const n=Math.min(r,s)/24*100,i=(Math.max(r,s)-Math.min(r,s))/24*100,a=Math.min(t,e),o=Math.max(t,e)-a+1,l=this.rowHeightPx*.7,d=(this.rowHeightPx-l)/2,h=a*this.rowHeightPx+d,m=o*this.rowHeightPx-(this.rowHeightPx-l);return{position:"absolute",top:`${h}px`,left:`calc(${n}% + 1px)`,width:`calc(${i}% - 2px)`,height:`${m}px`}},mergeOverlappingSegments(){this.internalDays=this.internalDays.map(t=>{const e=t.segments.map(n=>{const{hours:i,minutes:a}=this.parseTime(n.startTime),{hours:c,minutes:o}=this.parseTime(n.endTime);let l=i+a/60,d=c+o/60;return d<l&&(d+=24),{start:l,end:d}});e.sort((n,i)=>n.start-i.start);const r=[];for(const n of e)if(!r.length)r.push({...n});else{const i=r[r.length-1];n.start<=i.end+1e-6?i.end=Math.max(i.end,n.end):r.push({...n})}const s=r.map(n=>{let i=n.start,a=n.end;return a>=24&&(a=1439/60),{startTime:this.padTime(this.roundToFive(i)),endTime:this.padTime(this.roundToFive(a))}});return{day:t.day,segments:s}})},emitChangeEvent(){this.mergeOverlappingSegments(),this.$emit("change",this.getFormattedSchedule())}}}),I_="";var Zp=function(){var e=this,r=e._self._c;return r("div",{ref:"mainContainer",staticClass:"e-bg-white e-p-5 e-rounded-lg e-overflow-visible"},[e.withTemplateSelector?r("div",{staticClass:"e-flex e-justify-end e-items-center e-gap-3 e-pb-4 e-overflow-visible"},[r("label",{staticClass:"e-font-semibold e-text-sm e-text-gray-700"},[e._v("Template:")]),r("div",{staticClass:"e-flex-1 e-max-w-xs e-relative e-z-10"},[r("ESelect",{attrs:{"set-initial-value":!1,options:e.templates,dark:!1,label:"Select a template..."},on:{input:e.applyTemplateToAll},model:{value:e.selectedTemplate,callback:function(s){e.selectedTemplate=s},expression:"selectedTemplate"}})],1)]):e._e(),r("div",{staticClass:"table-wrapper e-relative e-overflow-x-auto e-overflow-y-visible e-border e-border-solid e-border-gray-200 e-rounded-lg"},[r("table",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],ref:"table",staticClass:"schedule-table e-w-full e-bg-white"},[r("thead",[r("tr",{staticClass:"e-bg-gray-50"},[r("th",{staticClass:"day-header e-sticky e-left-0 e-z-[5] e-py-3 e-px-4 e-text-left e-font-semibold e-text-xs e-text-gray-700 e-whitespace-nowrap e-bg-gray-50"},[e._v(" Day ")]),e._l(24,function(s){return r("th",{key:s,staticClass:"hour-header e-py-3 e-px-1 e-text-center e-font-medium e-text-[11px] e-text-gray-500 e-min-w-[40px]"},[e._v(" "+e._s(e.formatHourLabel(s-1))+" ")])}),r("th",{staticClass:"actions-header e-py-3 e-px-4 e-text-center e-font-semibold e-text-xs e-text-gray-700 e-whitespace-nowrap e-bg-gray-50"},[e._v(" Actions ")])],2)]),r("tbody",e._l(e.sortedDays,function(s,n){return r("tr",{key:s.day,staticClass:"day-row"},[r("td",{staticClass:"day-cell e-py-3 e-px-4 e-whitespace-nowrap e-sticky e-left-0 e-bg-white e-z-[5] first:e-bg-gray-50"},[r("span",{staticClass:"e-font-medium e-text-sm e-text-gray-900"},[e._v(e._s(e.formatDayFull(s.day)))])]),e._l(24,function(i){return r("td",{key:i,staticClass:"time-cell e-min-w-[40px] e-h-12 e-relative"})}),r("td",{staticClass:"actions-cell e-p-2 e-text-center e-bg-white e-relative"},[r("EPopover",{attrs:{dark:!1,"panel-side":"right","panel-classes":"actions-popover-panel","auto-position":""},scopedSlots:e._u([{key:"trigger",fn:function({toggle:i}){return[r("button",{staticClass:"e-px-3 e-py-1.5 e-bg-transparent e-border e-border-solid e-border-transparent e-rounded e-cursor-pointer e-transition-all hover:e-bg-gray-100 hover:e-border-gray-200",on:{click:i}},[r("EIcon",{attrs:{icon:"fa-ellipsis-vertical",color:"e-text-gray-500"}})],1)]}},{key:"panel",fn:function({toggleOpen:i}){return[r("button",{staticClass:"e-block e-w-full e-px-4 e-py-2.5 e-text-left e-text-sm e-text-gray-700 e-bg-transparent e-border-none e-cursor-pointer e-transition-colors e-whitespace-nowrap hover:e-bg-gray-100",on:{click:function(a){return e.applyToAllDays(n,i)}}},[e._v(" Apply to all days ")]),r("button",{staticClass:"e-block e-w-full e-px-4 e-py-2.5 e-text-left e-text-sm e-text-gray-700 e-bg-transparent e-border-none e-cursor-pointer e-transition-colors e-whitespace-nowrap hover:e-bg-gray-100",on:{click:function(a){return e.applyToWeekdays(n,i)}}},[e._v(" Apply to weekdays ")]),r("button",{staticClass:"e-block e-w-full e-px-4 e-py-2.5 e-text-left e-text-sm e-text-gray-700 e-bg-transparent e-border-none e-cursor-pointer e-transition-colors e-whitespace-nowrap hover:e-bg-gray-100",on:{click:function(a){return e.applyToWeekends(n,i)}}},[e._v(" Apply to weekends ")])]}}],null,!0)})],1)],2)}),0)]),e.segmentsContainerRect?r("div",{ref:"overlay",staticClass:"e-absolute e-pointer-events-auto e-cursor-crosshair",style:e.segmentsContainerStyles,on:{mousedown:e.onBackgroundMouseDown}},[e._l(e.sortedDays,function(s,n){return r("div",{key:s.day},e._l(s.segments,function(i,a){return r("div",{key:i.startTime+"-"+i.endTime,staticClass:"segment e-bg-blue-500 e-rounded e-cursor-grab e-flex e-items-center e-justify-center e-transition-colors hover:e-bg-blue-600 active:e-cursor-grabbing",style:e.calculateBarStyle(n,i.startTime,i.endTime),on:{mousedown:function(c){return c.stopPropagation(),e.onSegmentMouseDown(c,n,a)}}},[r("div",{staticClass:"resize-handle resize-handle-left e-absolute e-left-0 e-w-3 e-h-auto e-cursor-ew-resize e-z-10 e-opacity-0 e-transition-opacity e-flex e-items-center e-justify-center e-pointer-events-auto e-text-white",on:{mousedown:function(c){return c.stopPropagation(),e.onResizeHandleMouseDown(c,n,a,"resize-left")}}},[r("EIcon",{attrs:{icon:"fa-grip-vertical",size:"xs"}})],1),r("div",{staticClass:"resize-handle resize-handle-right e-absolute e-right-0 e-w-3 e-h-auto e-cursor-ew-resize e-z-10 e-opacity-0 e-transition-opacity e-flex e-items-center e-justify-center e-pointer-events-auto e-text-white",on:{mousedown:function(c){return c.stopPropagation(),e.onResizeHandleMouseDown(c,n,a,"resize-right")}}},[r("EIcon",{attrs:{icon:"fa-grip-vertical",size:"xs"}})],1),r("button",{staticClass:"delete-btn e-hidden e-absolute e-top-1/2 e-right-5 -e-translate-y-1/2 e-w-6 e-h-6 e-border-none e-rounded e-bg-transparent e-text-white e-text-xl e-font-bold e-leading-none e-cursor-pointer e-z-20 e-items-center e-justify-center hover:e-bg-blue-500",on:{click:function(c){return c.stopPropagation(),e.deleteSegment(n,a)}}},[r("EIcon",{attrs:{icon:"fa-xmark",size:"lg"}})],1),r("div",{staticClass:"e-text-xs e-text-white e-font-medium e-text-center e-pointer-events-none e-select-none",domProps:{innerHTML:e._s(e.getSegmentLabel(i))}})])}),0)}),e.creating?r("div",{staticClass:"segment e-rounded e-cursor-grab e-flex e-items-center e-justify-center e-bg-blue-500/30 e-border e-border-dashed e-border-blue-500",style:e.calculateMultiDayStyle(e.creating.startDayIndex,e.creating.currentDayIndex,e.creating.startFrac,e.creating.currentFrac)},[r("div",{staticClass:"e-text-xs e-text-white e-font-medium e-text-center e-pointer-events-none e-select-none"},[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.creating.isMultiDay?r("div",{staticClass:"e-text-[10px] e-opacity-80 e-mt-0.5"},[e._v(" (Shift: Apply to all days) ")]):e._e()])]):e._e()],2):e._e()]),r("div",{staticClass:"e-mt-3 e-text-xs e-text-gray-500 e-text-center"},[e._v(" Hold Shift to apply schedule to all days ")])])},Xp=[],Vp=z(qp,Zp,Xp,!1,null,"55976485",null,null);const El=Vp.exports,Qp=E.extend({name:"EStepper",components:{EIcon:Xe},props:{steps:{type:Array,required:!0},initialStep:{type:Number,default:0},dark:{type:Boolean,default:!0},orientation:{type:String,default:"horizontal"}},data(){return{currentStep:0,transitionDirection:"forward"}},computed:{currentStepComponent(){return(this.steps[this.currentStep]||{}).component},isLastStep(){return this.currentStep===this.steps.length-1},canGoBack(){return this.currentStep>0},canGoNext(){return!0},stepperClasses(){return{[`e-stepper--${this.orientation}`]:!0,"e-text-slate-300":this.dark,"e-text-slate-700":!this.dark}},layoutClasses(){return this.orientation==="vertical"?"e-flex e-gap-8":"e-flex e-flex-col"},navigationClasses(){return this.orientation==="horizontal"?"e-mb-8":"e-flex-shrink-0 e-max-w-[20rem]"},stepsContainerClasses(){return this.orientation==="horizontal"?"e-relative e-flex e-justify-center e-items-center":"e-flex e-flex-col e-gap-8"},stepItemClasses(){return this.orientation==="horizontal"?"e-w-full":"e-w-full e-flex e-text-start e-gap-2.5"},stepIndicatorContainerClasses(){return this.orientation==="horizontal"?"e-relative e-flex e-justify-center":"e-relative"},stepContentClasses(){return this.orientation==="horizontal"?"e-mt-3":"e-mt-2.5"},transitionName(){return this.orientation==="vertical"?(this.transitionDirection==="forward","fade"):this.transitionDirection==="forward"?"slide-left":"slide-right"}},created(){this.currentStep=Math.max(0,Math.min(this.initialStep,this.steps.length-1))},mounted(){this.focusStepHeading()},methods:{isStepCompleted(t){return this.currentStep>t},goNext(){if(this.currentStep<this.steps.length-1){const t=this.currentStep;this.transitionDirection="forward",this.currentStep=this.currentStep+1,this.$emit("step-changed",{from:t,to:this.currentStep,direction:this.transitionDirection}),this.$nextTick(()=>{this.focusStepHeading()})}else if(this.isLastStep)return},goBack(){if(!this.canGoBack)return;const t=this.currentStep;this.transitionDirection="backward",this.currentStep=this.currentStep-1,this.$emit("step-changed",{from:t,to:this.currentStep,direction:this.transitionDirection}),this.$nextTick(()=>{this.focusStepHeading()})},focusStepHeading(){const t=this.$refs.stepHeading;t&&t.focus()},next(){this.goNext()},prev(){this.goBack()},reset(){this.currentStep=0},getStepButtonClasses(t){return this.isStepCompleted(t)?"e-bg-primary e-text-white":this.currentStep===t?"e-bg-blue-400 e-text-white":this.dark?"e-bg-gray-700 e-text-gray-300":"e-bg-gray-400 e-text-white"},getHorizontalConnectorClasses(t){return this.currentStep>t?"e-bg-primary":this.dark?"e-bg-slate-600":"e-bg-slate-300"},getVerticalConnectorClasses(t){return this.currentStep>t?"e-bg-primary":this.dark?"e-bg-slate-600":"e-bg-slate-300"},getStepTitleClasses(t){return t===this.currentStep?"e-text-primary":this.isStepCompleted(t)?"e-text-blue-500":this.dark?"e-text-gray-300":"e-text-gray-700"},getStepDescriptionClasses(){return this.dark?"e-text-slate-400":"e-text-slate-500"}}}),z_="";var Kp=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-stepper__container e-w-full e-p-4",class:e.stepperClasses},[r("div",{class:e.layoutClasses},[r("nav",{staticClass:"e-stepper__navigation",class:e.navigationClasses},[r("div",{class:e.stepsContainerClasses},e._l(e.steps,function(s,n){return r("div",{key:n,staticClass:"e-stepper__navigation-item e-group e-text-center e-relative",class:e.stepItemClasses},[r("div",{class:e.stepIndicatorContainerClasses},[r("div",{staticClass:"e-flex e-rounded-full e-text-center e-align-middle e-items-center e-justify-center e-font-semibold e-size-10 e-text-base e-border-0 e-transition-all e-duration-200 e-ease-out",class:e.getStepButtonClasses(n)},[e.isStepCompleted(n)&&s.completedIcon?r("EIcon",{attrs:{icon:s.completedIcon}}):s.icon?r("EIcon",{attrs:{icon:s.icon}}):r("span",[e._v(" "+e._s(n+1)+" ")])],1),e.orientation==="horizontal"&&n<e.steps.length-1?r("div",{staticClass:"e-stepper__navigation-connector--horizontal e-absolute e-rounded-full e-top-[calc(50%-2px)] e-h-0.5 e-start-[calc(50%+28px)] e-end-[calc(-50%+28px)]",class:e.getHorizontalConnectorClasses(n)}):e._e(),e.orientation==="vertical"&&n<e.steps.length-1?r("div",{staticClass:"e-stepper__navigation-connector--vertical e-absolute e-rounded-full e-start-[calc(50%-2px)] e-w-0.5 e-top-[46px] e-bottom-[-27px]",class:e.getVerticalConnectorClasses(n)}):e._e()]),r("div",{staticClass:"e-stepper__navigation-content",class:e.stepContentClasses},[e._t("title",function(){return[r("div",{staticClass:"e-block e-text-base e-font-semibold e-leading-tight",class:e.getStepTitleClasses(n)},[e._v(" "+e._s(s.title)+" ")])]},{step:s,index:n}),e._t("description",function(){return[s.description?r("div",{staticClass:"e-block e-text-sm e-mt-1 e-leading-tight",class:e.getStepDescriptionClasses()},[e._v(" "+e._s(s.description)+" ")]):e._e()]},{step:s,index:n})],2)])}),0)]),r("main",{staticClass:"e-stepper__content e-overflow-y-auto e-custom-scrollbar",class:{"e-mb-8":e.orientation==="horizontal","e-flex-1":e.orientation==="vertical","e-bg-gray-900 e-custom-scrollbar-dark":e.dark,"e-bg-white e-custom-scrollbar-light":!e.dark}},[r("div",{staticClass:"e-stepper__content-panel",attrs:{id:`panel-${e.currentStep}`}},[r("transition",{attrs:{name:e.transitionName,mode:"out-in"}},[e._t(`stepper-content-${e.currentStep}`,function(){return[r(e.currentStepComponent,{key:`step-${e.currentStep}`,tag:"component",attrs:{"is-first-step":e.currentStep===0,"is-last-step":e.isLastStep}})]},{step:e.currentStep,isFirstStep:e.currentStep===0,isLastStep:e.isLastStep})],2)],1)])]),r("div",{staticClass:"e-stepper__controls e-flex e-justify-between e-items-center e-gap-4",class:{"e-mt-8":e.orientation==="vertical"}},[e._t("stepper-controls",function(){return[r("button",{staticClass:"e-inline-flex e-items-center e-gap-2 e-px-6 e-py-3 e-rounded-lg e-font-medium e-text-sm e-border-0 e-cursor-pointer e-transition-all e-duration-200 e-ease-out disabled:e-opacity-50 disabled:e-cursor-not-allowed",class:{"e-opacity-50":!e.canGoBack,"e-cursor-not-allowed":!e.canGoBack,"e-text-slate-300 e-bg-slate-700 hover:e-bg-slate-600":e.dark,"e-text-slate-600 e-bg-slate-300 hover:e-bg-slate-200":!e.dark},attrs:{type:"button",disabled:!e.canGoBack},on:{click:e.goBack}},[r("EIcon",{attrs:{icon:"fa-chevron-left"}}),e._v(" Back ")],1),r("button",{staticClass:"e-inline-flex e-items-center e-gap-2 e-px-8 e-py-3 e-rounded-lg e-font-semibold e-text-sm e-border-0 e-cursor-pointer e-transition-all e-duration-200 e-ease-out e-bg-primary e-text-white hover:e-bg-primary-darken disabled:e-opacity-60 disabled:e-cursor-not-allowed e-shadow-md hover:e-shadow-lg",attrs:{type:"button",disabled:!e.canGoNext},on:{click:e.goNext}},[e._v(" "+e._s(e.isLastStep?"Save":"Continue")+" "),e.isLastStep?e._e():r("span",{staticClass:"e-text-lg"},[r("EIcon",{attrs:{icon:"fa-chevron-right"}})],1)])]},{prev:e.goBack,hasPrev:e.canGoBack,hasNext:e.canGoNext,next:e.goNext,isLastStep:e.isLastStep,isFirstStep:e.currentStep===0,currentStep:e.currentStep})],2)])},Jp=[],em=z(Qp,Kp,Jp,!1,null,"8e3178a6",null,null);const Dl=em.exports,tm=E.extend({name:"EHeatmapOverlay",directives:{ResizeObserver:lt},props:{points:{type:Array,default:()=>[]},radius:{type:Number,default:.08},opacity:{type:Number,default:.9,validator:t=>t>=0&&t<=1},max:{type:Number,default:0},scheme:{type:String,default:at.Turbo},clamp:{type:Boolean,default:!0}},data(){return{overlayOpacity:0,isFistDraw:!1}},computed:{interpolator(){const t={[at.Inferno]:x.interpolateInferno,[at.Magma]:x.interpolateMagma,[at.Plasma]:x.interpolatePlasma,[at.Viridis]:x.interpolateViridis,[at.Cividis]:x.interpolateCividis,[at.Warm]:x.interpolateWarm,[at.Cool]:x.interpolateCool,[at.CubeHelix]:x.interpolateCubehelixDefault,[at.Turbo]:x.interpolateTurbo||x.interpolateInferno};return t[this.scheme]||t[at.Turbo]}},watch:{points:{handler(){this.draw()},deep:!0},radius(){this.draw()},opacity(){this.overlayOpacity=Math.max(0,Math.min(1,this.opacity))},max(){this.draw()},scheme(){this.draw()},clamp(){this.draw()}},mounted(){this.overlayOpacity=this.opacity,this.$nextTick(()=>{this.syncCanvasSize(),this.draw()})},methods:{onResize(){this.syncCanvasSize(),this.draw()},syncCanvasSize(){const t=this.$refs.canvas;if(!t)return;const r=t.parentElement.getBoundingClientRect();t.style.width=`${r.width}px`,t.style.height=`${r.height}px`,t.width=r.width,t.height=r.height},buildLookupTable(t=256){const e=new Uint8ClampedArray(t*4);for(let r=0;r<t;r++){const s=r/(t-1),n=x.color(this.interpolator(s));e[r*4]=n.r,e[r*4+1]=n.g,e[r*4+2]=n.b,e[r*4+3]=255}return e},draw(){const t=this.$refs.canvas;if(!t)return;const e=t.getContext("2d",{willReadFrequently:!0});if(!e)return;const r=t.width,s=t.height;if(r===0||s===0||(e.clearRect(0,0,r,s),!this.points||this.points.length===0))return;const n=Math.min(r,s),i=Math.max(1,Math.round(this.radius*n)),a=this.max>0?this.max:this.points.reduce((b,C)=>Math.max(b,C.count||0),1);e.save(),e.fillStyle="rgba(0,0,0,1)";const c=document.createElement("canvas");c.width=c.height=i*2+2;const o=c.getContext("2d"),l=o.createRadialGradient(i+1,i+1,0,i+1,i+1,i);l.addColorStop(0,"rgba(0,0,0,1)"),l.addColorStop(1,"rgba(0,0,0,0)"),o.fillStyle=l,o.beginPath(),o.arc(i+1,i+1,i,0,Math.PI*2),o.closePath(),o.fill();for(const b of this.points){const C=Array.isArray(b.point)?b.point[0]:0,f=Array.isArray(b.point)?b.point[1]:0,v=Math.max(0,Math.min(1,C))*r,T=Math.max(0,Math.min(1,f))*s,M=a<=0?0:(b.count||0)/a;M<=0||(e.globalAlpha=this.clamp?Math.max(0,Math.min(1,M)):M,e.drawImage(c,Math.round(v)-i-1,Math.round(T)-i-1))}e.restore();const d=e.getImageData(0,0,r,s),h=d.data,m=this.buildLookupTable(256);for(let b=0;b<h.length;b+=4){const C=h[b+3];if(C===0)continue;const v=(this.clamp?C:Math.max(0,Math.min(255,C)))*4;h[b+0]=m[v+0],h[b+1]=m[v+1],h[b+2]=m[v+2],h[b+3]=C}e.putImageData(d,0,0),this.isFistDraw=!0}}});var rm=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],staticClass:"w-full h-full"},[e._t("default"),r("canvas",{ref:"canvas",staticClass:"e-inset-0",style:{opacity:e.overlayOpacity}})],2)},sm=[],nm=z(tm,rm,sm,!1,null,null,null,null);const Ll=nm.exports,im=E.extend({name:"EGlobalSearch",components:{EIcon:Xe},mixins:[st],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,s,n)=>{const i=this.findMatchesInObject(s,e,[]);return i.length>0&&r.push({index:n,matches:i}),r},[])},findMatchesInObject(t,e,r){return Object.entries(t).reduce((s,[n,i])=>{const a=[...r,n],c=this.matchesQuery(i,e)?[{path:a,value:i}]:[];let o=[];this.deep&&Array.isArray(i)&&(o=i.flatMap((d,h)=>this.findMatchesInObject(d,e,[...a,`${h}`])));const l=this.deep&&typeof i=="object"&&i!==null?this.findMatchesInObject(i,e,a):[];return[...s,...c,...o,...l]},[])},matchesQuery(t,e){return`${this.isValidDate(t)?this.formattedTimestamp(t):t}`.toLowerCase().indexOf(e.toLowerCase())!==-1},isValidDate(t){return Be(t,this.currentDateFormat,!0).isValid()},formattedTimestamp(t){return Be.tz(t,this.timezone).format(this.convertedDateFormat)},onKeyHandler(t){const e=t,r=e.ctrlKey&&e.type==="keydown",s=e.shiftKey&&e.type==="keydown",n=["f","F"].includes(e.key)&&e.type==="keydown",i=e.key==="Escape"&&e.type==="keydown";n&&r&&s&&(this.isSearching=!0,this.$nextTick(()=>{const a=this.$refs.searchField;a&&a.focus()})),i&&(this.isSearching=!1,this.search="")}}}),R_="";var am=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(s){s.target.composing||(e.search=s.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:"fa-search",size:"Sm"}})],1)])])},om=[],lm=z(im,am,om,!1,null,null,null,null);const Pl=lm.exports,cm=E.extend({name:"ETooltip",props:{text:{type:String,required:!1,default:""},position:{type:String,default:Je.Top},color:{type:String,default:ce.Default},dark:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data(){return{isHovered:!1}},computed:{tooltipClasses(){if(this.disabled)return{};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===Je.Left,"tooltip-right":t===Je.Right,"tooltip-top":t===Je.Top,"tooltip-bottom":t===Je.Bottom,"e-bg-orange-700 e-text-white":e===ce.Warning,"e-bg-red-700 e-text-white":e===ce.Error,"e-bg-green-900 e-text-white":e===ce.Success,"e-bg-blue-700 e-text-white":e===ce.Primary,"e-bg-sky-500 e-text-white":e===ce.Info,"e-bg-brand-900 e-text-white":e===ce.Brand,"e-bg-gray-200 e-text-gray-700":e===ce.Gray,...r}},triangleClasses(){const t=this.position,e=this.color;return{"triangle e-absolute e-border-transparent":!0,"triangle-left":t===Je.Left,"triangle-right":t===Je.Right,"triangle-top":t===Je.Top,"triangle-bottom":t===Je.Bottom,"e-border-b-gray-800":e===ce.Default,"e-border-b-orange-700":e===ce.Warning,"e-border-b-red-700":e===ce.Error,"e-border-b-green-900":e===ce.Success,"e-border-b-blue-700":e===ce.Primary,"e-border-b-sky-500":e===ce.Info,"e-border-b-brand-900":e===ce.Brand,"e-border-b-gray-900":e===ce.Gray}}},methods:{toggleTooltip(){this.disabled||(this.isHovered=!this.isHovered)}}}),B_="";var um=function(){var e=this,r=e._self._c;return r("div",{staticClass:"tooltip-box e-w-max e-relative e-group",class:{"e-cursor-not-allowed e-opacity-50":e.disabled},on:{mouseenter:e.toggleTooltip,mouseleave:e.toggleTooltip}},[e._t("default"),e.isHovered&&!e.disabled?r("div",{class:e.tooltipClasses},[r("span",{class:e.triangleClasses}),e._t("tooltip",function(){return[e._v(" "+e._s(e.text)+" ")]})],2):e._e()],2)},dm=[],hm=z(cm,um,dm,!1,null,"4029d96b",null,null);const Nr=hm.exports,fm=E.extend({name:"EActionButton",components:{ETooltip:Nr,EIcon:Xe,ESpinner:ss},inject:{isDarkButton:{default:null}},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:U.Sm},iconColor:{type:String,default:ce.Default},dark:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},active:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},rounded:{type:String,default:"none",validator:t=>Object.keys(Kt).includes(t)}},computed:{isDark(){const t=this.isDarkButton;return typeof t=="function"?t():this.dark},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},radiusStyle(){return this.rounded==="none"?{}:{borderRadius:Kt[this.rounded]}},buttonStyle(){const t=this.isDark?"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",e=this.buttonClassesContainsBg?[this.buttonClasses]:[this.buttonClasses,t];return e.push({"e-action-button--active":this.active,"e-action-button--disabled":this.disabled}),e}}}),F_="";var pm=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.isDark}},[r("button",e._g(e._b({staticClass:"e-action-button",class:e.buttonStyle,style:e.radiusStyle,attrs:{disabled:e.disabled}},"button",e.$attrs,!1),e.$listeners),[e.loading?r("ESpinner",{attrs:{size:e.iconSize}}):e._t("icon",function(){return[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",class:e.buttonStyle,style:e.radiusStyle,attrs:{disabled:e.disabled}},"button",e.$attrs,!1),e.$listeners),[e.loading?r("ESpinner",{attrs:{size:e.iconSize}}):e._t("icon",function(){return[r("EIcon",{attrs:{icon:e.icon,size:e.iconSize}})]}),e._t("default")],2)},mm=[],gm=z(fm,pm,mm,!1,null,null,null,null);const sr=gm.exports,vm=E.extend({name:"EActionButtonGroup",components:{EExpandableMenu:zi,EActionButton:sr},provide(){return{isDarkButton:()=>this.dark}},props:{direction:{type:String,default:"vertical",validator:t=>["vertical","horizontal"].includes(t)},rounded:{type:String,default:"none",validator:t=>Object.keys(Kt).includes(t)},dark:{type:Boolean,default:!0},buttonSize:{type:[Number,String],default:40},expandable:{type:Boolean,default:!1},expandDirection:{type:String,default:"top",validator:t=>["top","right","bottom","left"].includes(t)},defaultOpen:{type:Boolean,default:!1},padding:{type:Number,default:0}},computed:{wrapperComponent(){return this.expandable?"EExpandableMenu":"div"},wrapperProps(){return this.expandable?{padding:this.padding,direction:this.expandDirection,defaultOpen:this.defaultOpen}:{}},wrapperListeners(){return this.expandable?{toggle:this.onToggle}:{}},directionClass(){return`e-action-button-group--${this.direction}`},themeClass(){return this.dark?"e-action-button-group-root":"e-action-button-group-root e-action-button-group-root--light"},normalizedButtonSize(){return typeof this.buttonSize=="number"?`${this.buttonSize}px`:this.buttonSize},rootStyle(){return{"--button-size":this.normalizedButtonSize}},radius(){return this.expandable||this.rounded==="none"?Kt.none:Kt[this.rounded]}},mounted(){this.applyBorderRadius()},updated(){this.applyBorderRadius()},methods:{onToggle(t){this.$emit("toggle",t)},applyBorderRadius(){var n;if(this.radius===Kt.none)return;const t=this.$refs.group;if(!t||(n=t.parentElement)!=null&&n.closest(".e-action-button-group"))return;const e=Array.from(t.querySelectorAll(".e-action-button"));if(!e.length)return;e.forEach(i=>{i.style.borderRadius=""});const r=e[0],s=e[e.length-1];this.direction==="vertical"?(r.style.borderTopLeftRadius=this.radius,r.style.borderTopRightRadius=this.radius,s.style.borderBottomLeftRadius=this.radius,s.style.borderBottomRightRadius=this.radius):(r.style.borderTopLeftRadius=this.radius,r.style.borderBottomLeftRadius=this.radius,s.style.borderTopRightRadius=this.radius,s.style.borderBottomRightRadius=this.radius)}}}),A_="";var ym=function(){var e=this,r=e._self._c;return r(e.wrapperComponent,e._g(e._b({tag:"component",class:e.themeClass,style:e.rootStyle,scopedSlots:e._u([e.expandable?{key:"activator",fn:function(){return[e._t("activator",function(){return[r("EActionButton",{attrs:{icon:"fas fa-ellipsis-v",dark:e.dark}})]})]},proxy:!0}:null],null,!0)},"component",e.wrapperProps,!1),e.wrapperListeners),[r("div",{ref:"group",staticClass:"e-action-button-group",class:[e.directionClass]},[e._t("default")],2)])},_m=[],bm=z(vm,ym,_m,!1,null,null,null,null);const Os=bm.exports,Cm=E.extend({name:"EZoomSlider",components:{EActionButton:sr,EActionButtonGroup:Os},props:{dark:{type:Boolean,default:!0},rounded:{type:String,default:"md"}}});var wm=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EActionButtonGroup",{staticClass:"e-zoom-slider e-p-5",attrs:{dark:e.dark,rounded:e.rounded}},[r("EActionButton",{attrs:{"tooltip-text":"Zoom in","tooltip-position":"right",icon:"fas fa-plus",dark:e.dark,"icon-size":"base","data-test-id":"zoomable-img-zoom-in"},on:{click:function(s){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","data-test-id":"zoomable-img-zoom-out"},on:{click:function(s){return e.$emit("zoom-out")}}})],1)},xm=[],Sm=z(Cm,wm,xm,!1,null,null,null,null);const Bi=Sm.exports,km=E.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 Tm=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)},Mm=[],$m=z(km,Tm,Mm,!1,null,null,null,null);const Wr=$m.exports,Em=E.extend({name:"EZoomableImg",components:{EZoomSlider:Bi,EActionButtonGroup:Os,EFadeTransition:Wr},directives:{ResizeObserver:lt},mixins:[gt,st],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,s;this.frame=this.$refs.frame,this.image=this.$refs.image;const t=(r=this.frame)==null?void 0:r.getBoundingClientRect(),e=(s=this.image)==null?void 0:s.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,s=(e.top-t.top)/t.height*100,n=e.width/t.width*100,i=e.height/t.height*100;this.miniatureOverlayStyle={left:`${r}%`,top:`${s}%`,width:`${n}%`,height:`${i}%`}},onImageLoaded(t){var s,n;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=(s=this.image)==null?void 0:s.getBoundingClientRect(),r=(n=this.frame)==null?void 0:n.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(),s=(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)-(s==null?void 0:s.left))/this.zoomLevel,y:((t==null?void 0:t.clientY)-(s==null?void 0:s.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}this.isMobile||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 o,l;const t=(o=this.frame)==null?void 0:o.getBoundingClientRect(),e=(l=this.image)==null?void 0:l.getBoundingClientRect(),r=t.width/this.imageAspectRatio,s=t.height*this.imageAspectRatio;let{top:n,right:i,bottom:a,left:c}=t;return e.width<t.width?(c=t.left+(t.width-s)/2,i=c+s):e.height<t.height&&(n=t.top+(t.height-r)/2,a=n+r),{top:n,right:i,bottom:a,left:c}},savePreviousPan({x:t,y:e}={}){var r;if(this.image){const s=(r=this.image)==null?void 0:r.getBoundingClientRect(),n=this.getBounds(),[i,a,c,o]=[s.right-n.right,n.top-s.top,s.bottom-n.bottom,n.left-s.left].map(l=>l<0?l:0);this.frameMousePreviousPan={x:(t||this.frameMousePreviousPan.x)+o-i,y:(e||this.frameMousePreviousPan.y)+a-c}}},onSliderMouseDown(){var r,s;const t=(r=this.frame)==null?void 0:r.getBoundingClientRect(),e=(s=this.image)==null?void 0:s.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}}}),H_="";var Dm=function(){var s;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:(s=e.src)!=null?s:e.placeholderImage,alt:e.alt,"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"}},[r("div",{staticClass:"zoomable-img__slot__top-left e-absolute e-top-0 e-left-0"},[e._t("top-left")],2),r("div",{staticClass:"zoomable-img__slot__top-right e-absolute e-top-0 e-right-0 e-z-[201]"},[e._t("top-right")],2),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"}},[r("EActionButtonGroup",{attrs:{rounded:"md"}},[e._t("extraWidgets"),r("EZoomSlider",{staticClass:"!e-p-0",attrs:{rounded:"none"},on:{mouseup:e.onSliderMouseUp,mousedown:e.onSliderMouseDown,"zoom-in":function(n){return e.zoom(-1)},"zoom-out":function(n){return e.zoom(1)}},model:{value:e.sliderModel,callback:function(n){e.sliderModel=n},expression:"sliderModel"}})],2)],1):e._e()]),r("div",{staticClass:"zoomable-img__bottom-right-actions e-flex e-flex-col e-items-end e-justify-end e-absolute e-right-0 e-bottom-0"},[r("EFadeTransition",[e.showMiniature&&e.imageLoaded&&e.zoomLevel>1?r("div",{staticClass:"zoomable-img__miniature-container e-shadow e-relative e-m-4",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()]),r("div",{staticClass:"zoomable-img__slot__top-left"},[e._t("bottom-right")],2)],1)],2)])},Lm=[],Pm=z(Em,Dm,Lm,!1,null,null,null,null);const Fi=Pm.exports,Om=E.extend({name:"EImagePlayer",components:{EZoomableImg:Fi},directives:{ResizeObserver:lt},mixins:[gt,st],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[s,n]=e.slice(-1)[0]||[0,0];return r-n>1?[...e,[r,r]]:[...e.slice(0,-1),[s,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,s]=[100*t/(this.frames.length-1),100*e/(this.frames.length-1)];return{left:`${r}%`,width:`${s-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&&(Wn().then(()=>{this.isFullscreen=!1}),this.isFullscreen=!1)},openFullscreenMode(){const t=document.querySelector("#imagePlayer");t&&(Hn(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,s]=[Math.min(this.frames.length-1,t),Math.min(this.frames.length-1,e)],n=new Array(s-r+1).fill(0).map((a,c)=>a+r+c),i=this.preloadingQueueId;for(const a of n){if(i!==this.preloadingQueueId||this.playing&&!this.preloadWhilePlaying)return;this.preloadedFrames.includes(a)||await new Promise(o=>{const l=new Image;l.onload=()=>{this.preloadedFrames=[...this.preloadedFrames,a],o()},l.onerror=()=>{o()},this.preloadingFramesImgs=[...this.preloadingFramesImgs,l];const d=this.getFrameSrc(this.frames[a]);a||o(),l.src=d})}},async delay(){return this.frameError?(this.frameError=!1,Promise.resolve()):new Promise(t=>{const e=performance.now(),r=s=>{s-e<this.timePerFrame?this.animationId=window.requestAnimationFrame(r):t()};this.animationId=window.requestAnimationFrame(r)})},cancelDelay(){window.cancelAnimationFrame(this.animationId)},async play(){var r,s;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:(s=this.frames[this.frameIndex])==null?void 0:s.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,s,n;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=(n=(s=this.frames)==null?void 0:s[this.frameIndex])==null?void 0:n.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}}}}),N_="";var Im=function(){var s,n;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||((s=e.frames[e.frameIndex])==null?void 0:s.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||((n=e.frames[e.frameIndex])==null?void 0:n.src)||e.placeholderImage||"",alt:e.altText,"hide-content-on-blur":!1,height:typeof e.height=="string"?e.height.split("px")[0]:e.height,"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([i,a]){return r("div",{key:a,staticClass:"e-bg-blue-300 e-h-full e-absolute e-rounded-md",style:e.getProgressBarChunkStyle(i,a)})})],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)},zm=[],Rm=z(Om,Im,zm,!1,null,null,null,null);const Ol=Rm.exports,Bm=E.extend({name:"ELayout",directives:{ResizeObserver:lt},mixins:[gt],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()},hasScopedSlot(t){return!!this.$scopedSlots[t]},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)===0?25: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 Fm=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},[e.hasScopedSlot("main")?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._e(),e.withOverlay&&e.hasScopedSlot("overlay")?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(),e.hasScopedSlot("top-left")?r("div",{staticClass:"e-layout__top-left e-absolute e-left-0 e-top-0 e-z-[2]"},[e._t("top-left")],2):e._e(),e.hasScopedSlot("top-right")?r("div",{staticClass:"e-absolute e-right-0 e-top-0 e-layout__top-right e-z-[2]"},[e._t("top-right")],2):e._e(),e.hasScopedSlot("bottom-right")?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):e._e(),e.hasScopedSlot("bottom-left")?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):e._e(),e.hasScopedSlot("overlay-footer")?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):e._e()]),e.hasScopedSlot("footer")?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):e._e()])},Am=[],Hm=z(Bm,Fm,Am,!1,null,null,null,null);const Il=Hm.exports,Nm=E.extend({name:"EViewerOverlay",directives:{ResizeObserver:lt},props:{imageElement:{type:Object,default:null},fitContent:{type:Boolean,default:!1},withOverlay:{type:Boolean,default:!1}},data(){return{imageRect:null,imageObserver:null,overlayFooterHeight:0,contentSize:{width:0,height:0}}},computed:{outerClass(){return{"e-viewer-overlay__outer":!0,"e-viewer-overlay__outer--fit-content":this.fitContent}},contentClass(){return{"e-viewer-overlay__content":!0,"e-viewer-overlay__content--fit-content":this.fitContent}},hasImageRect(){return this.imageRect!==null},innerStyle(){return this.imageRect?{left:`${this.imageRect.left}px`,top:`${this.imageRect.top}px`,width:`${this.imageRect.width}px`,height:`${this.imageRect.height}px`}:{}},bottomCornerStyle(){return{bottom:`calc(${this.overlayFooterHeight}px + var(--corner-offset))`}},watermarkStyle(){if(!this.imageRect)return{};const t=Math.max(this.imageRect.width,this.imageRect.height),e=t*.04,r=t*.01;return{width:`${e}px`,height:`${e}px`,right:`${r}px`,bottom:`${r}px`}}},watch:{imageElement(t,e){var r,s;e&&((r=this.imageObserver)==null||r.unobserve(e)),t?((s=this.imageObserver)==null||s.observe(t),this.updateImageRect()):this.imageRect=null}},mounted(){this.imageObserver=new ResizeObserver(()=>this.updateImageRect()),this.imageElement&&(this.imageObserver.observe(this.imageElement),this.updateImageRect()),this.updateContentSize()},beforeDestroy(){var t;(t=this.imageObserver)==null||t.disconnect(),this.imageObserver=null},methods:{hasScopedSlot(t){return!!this.$scopedSlots[t]},updateImageRect(){const t=this.imageElement,e=this.$refs.outer;if(!t||!e){this.imageRect=null;return}const r=t.getBoundingClientRect(),s=e.getBoundingClientRect();if(r.width===0||r.height===0){this.imageRect=null;return}this.imageRect={left:r.left-s.left,top:r.top-s.top,width:r.width,height:r.height}},updateOverlayFooterHeight(){var e;const t=this.$refs.overlayFooter;this.overlayFooterHeight=(e=t==null?void 0:t.clientHeight)!=null?e:0},onResize(){this.updateImageRect(),this.updateContentSize()},updateContentSize(){var e,r;const t=this.$refs.content;this.contentSize={width:(e=t==null?void 0:t.clientWidth)!=null?e:0,height:(r=t==null?void 0:t.clientHeight)!=null?r:0}},onOverlayClick(t){this.withOverlay&&this.$emit("overlay-click",t)}}}),W_="";var Wm=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],staticClass:"e-viewer-overlay"},[r("div",{ref:"outer",class:e.outerClass},[r("div",{ref:"content",class:e.contentClass},[e._t("default",null,{contentSize:e.contentSize})],2),e.hasImageRect?r("div",{staticClass:"e-viewer-overlay__inner",style:e.innerStyle},[e._t("inner-overlay"),e.hasScopedSlot("inner-top-left")?r("div",{staticClass:"e-viewer-overlay__inner-top-left"},[e._t("inner-top-left")],2):e._e(),e.hasScopedSlot("inner-top-right")?r("div",{staticClass:"e-viewer-overlay__inner-top-right"},[e._t("inner-top-right")],2):e._e(),e.hasScopedSlot("inner-bottom-left")?r("div",{staticClass:"e-viewer-overlay__inner-bottom-left"},[e._t("inner-bottom-left")],2):e._e(),e.hasScopedSlot("inner-bottom-right")?r("div",{staticClass:"e-viewer-overlay__inner-bottom-right"},[e._t("inner-bottom-right")],2):e._e(),e.hasScopedSlot("watermark")?r("div",{staticClass:"e-viewer-overlay__watermark",style:e.watermarkStyle},[e._t("watermark")],2):e._e()],2):e._e(),e.hasScopedSlot("main-overlay")?r("div",{staticClass:"e-viewer-overlay__main-overlay",class:{"e-viewer-overlay__main-overlay--clickable":e.withOverlay},on:{click:e.onOverlayClick}},[e._t("main-overlay",null,{contentSize:e.contentSize})],2):e._e(),e.hasScopedSlot("top-left")?r("div",{staticClass:"e-viewer-overlay__top-left"},[e._t("top-left")],2):e._e(),e.hasScopedSlot("top-right")?r("div",{staticClass:"e-viewer-overlay__top-right"},[e._t("top-right")],2):e._e(),e.hasScopedSlot("bottom-left")?r("div",{staticClass:"e-viewer-overlay__bottom-left",style:e.bottomCornerStyle},[e._t("bottom-left")],2):e._e(),e.hasScopedSlot("bottom-right")?r("div",{staticClass:"e-viewer-overlay__bottom-right",style:e.bottomCornerStyle},[e._t("bottom-right")],2):e._e(),e.hasScopedSlot("overlay-footer")?r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.updateOverlayFooterHeight,expression:"updateOverlayFooterHeight"}],ref:"overlayFooter",staticClass:"e-viewer-overlay__overlay-footer"},[e._t("overlay-footer")],2):e._e()]),e.hasScopedSlot("footer")?r("div",{ref:"footer",staticClass:"e-viewer-overlay__footer"},[e._t("footer")],2):e._e()])},Ym=[],jm=z(Nm,Wm,Ym,!1,null,null,null,null);const zl=jm.exports;var Um=z({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 Gm=Um.exports,qm=E.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}}}}),G_="";var Zm=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)},Xm=[],Vm=z(qm,Zm,Xm,!1,null,null,null,null);const Qm=Vm.exports,Km=E.extend({name:"EChatHeader",components:{EAvatar:Zr},props:{size:{type:String,default:"xs"},backgroundClasses:{type:String,default:""}}}),q_="";var Jm=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}})},eg=[],tg=z(Km,Jm,eg,!1,null,null,null,null);const Ai=tg.exports,rg=E.extend({name:"EChatHeader",components:{EEvercamLogo:Ai},props:{title:{type:String,default:"Ask AI"},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 sg=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)},ng=[],ig=z(rg,sg,ng,!1,null,null,null,null);const ag=ig.exports,og=E.extend({name:"EChatBody",directives:{ResizeObserver:lt},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()}}}),Z_="";var lg=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(s){return s.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:"fa-arrow-down",size:"Base"}})],1)]):e._e()])},cg=[],ug=z(og,lg,cg,!1,null,null,null,null);const dg=ug.exports,hg=E.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 cr(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":cr(this.color,.7),"--backgroundColor":cr(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?cr(this.color,1):void 0}}},methods:{toRgba:cr}}),X_="";var fg=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)])},pg=[],mg=z(hg,fg,pg,!1,null,"cf575c64",null,null);const gg=mg.exports;var Rl={exports:{}};(function(t,e){(function(r,s){t.exports=s()})(typeof self!="undefined"?self:Qt,()=>(()=>{var r={75:function(a){(function(){var c,o,l,d,h,m;typeof performance!="undefined"&&performance!==null&&performance.now?a.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(a.exports=function(){return(c()-h)/1e6},o=process.hrtime,d=(c=function(){var b;return 1e9*(b=o())[0]+b[1]})(),m=1e9*process.uptime(),h=d-m):Date.now?(a.exports=function(){return Date.now()-l},l=Date.now()):(a.exports=function(){return new Date().getTime()-l},l=new Date().getTime())}).call(this)},4087:(a,c,o)=>{for(var l=o(75),d=typeof window=="undefined"?o.g:window,h=["moz","webkit"],m="AnimationFrame",b=d["request"+m],C=d["cancel"+m]||d["cancelRequest"+m],f=0;!b&&f<h.length;f++)b=d[h[f]+"Request"+m],C=d[h[f]+"Cancel"+m]||d[h[f]+"CancelRequest"+m];if(!b||!C){var v=0,T=0,M=[];b=function(k){if(M.length===0){var N=l(),L=Math.max(0,16.666666666666668-(N-v));v=L+N,setTimeout(function(){var Y=M.slice(0);M.length=0;for(var ee=0;ee<Y.length;ee++)if(!Y[ee].cancelled)try{Y[ee].callback(v)}catch(Z){setTimeout(function(){throw Z},0)}},Math.round(L))}return M.push({handle:++T,callback:k,cancelled:!1}),T},C=function(k){for(var N=0;N<M.length;N++)M[N].handle===k&&(M[N].cancelled=!0)}}a.exports=function(k){return b.call(d,k)},a.exports.cancel=function(){C.apply(d,arguments)},a.exports.polyfill=function(k){k||(k=d),k.requestAnimationFrame=b,k.cancelAnimationFrame=C}}},s={};function n(a){var c=s[a];if(c!==void 0)return c.exports;var o=s[a]={exports:{}};return r[a].call(o.exports,o,o.exports,n),o.exports}n.n=a=>{var c=a&&a.__esModule?()=>a.default:()=>a;return n.d(c,{a:c}),c},n.d=(a,c)=>{for(var o in c)n.o(c,o)&&!n.o(a,o)&&Object.defineProperty(a,o,{enumerable:!0,get:c[o]})},n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n.o=(a,c)=>Object.prototype.hasOwnProperty.call(a,c);var i={};return(()=>{n.d(i,{default:()=>Q});var a=n(4087),c=n.n(a);const o=function(F){return new RegExp(/<[a-z][\s\S]*>/i).test(F)},l=function(F,$){return Math.floor(Math.random()*($-F+1))+F};var d="TYPE_CHARACTER",h="REMOVE_CHARACTER",m="REMOVE_ALL",b="REMOVE_LAST_VISIBLE_NODE",C="PAUSE_FOR",f="CALL_FUNCTION",v="ADD_HTML_TAG_ELEMENT",T="CHANGE_DELETE_SPEED",M="CHANGE_DELAY",k="CHANGE_CURSOR",N="PASTE_STRING",L="HTML_TAG";function Y(F){return Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},Y(F)}function ee(F,$){var I=Object.keys(F);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(F);$&&(W=W.filter(function(ae){return Object.getOwnPropertyDescriptor(F,ae).enumerable})),I.push.apply(I,W)}return I}function Z(F){for(var $=1;$<arguments.length;$++){var I=arguments[$]!=null?arguments[$]:{};$%2?ee(Object(I),!0).forEach(function(W){O(F,W,I[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(I)):ee(Object(I)).forEach(function(W){Object.defineProperty(F,W,Object.getOwnPropertyDescriptor(I,W))})}return F}function w(F){return function($){if(Array.isArray($))return R($)}(F)||function($){if(typeof Symbol!="undefined"&&$[Symbol.iterator]!=null||$["@@iterator"]!=null)return Array.from($)}(F)||function($,I){if($){if(typeof $=="string")return R($,I);var W=Object.prototype.toString.call($).slice(8,-1);return W==="Object"&&$.constructor&&(W=$.constructor.name),W==="Map"||W==="Set"?Array.from($):W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W)?R($,I):void 0}}(F)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
246
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function R(F,$){($==null||$>F.length)&&($=F.length);for(var I=0,W=new Array($);I<$;I++)W[I]=F[I];return W}function q(F,$){for(var I=0;I<$.length;I++){var W=$[I];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(F,V(W.key),W)}}function O(F,$,I){return($=V($))in F?Object.defineProperty(F,$,{value:I,enumerable:!0,configurable:!0,writable:!0}):F[$]=I,F}function V(F){var $=function(I,W){if(Y(I)!=="object"||I===null)return I;var ae=I[Symbol.toPrimitive];if(ae!==void 0){var _=ae.call(I,"string");if(Y(_)!=="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(I)}(F);return Y($)==="symbol"?$:String($)}const Q=function(){function F(W,ae){var _=this;if(function(A,B){if(!(A instanceof B))throw new TypeError("Cannot call a class as a function")}(this,F),O(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")}}),O(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}),O(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))}),O(this,"start",function(){return _.state.eventLoopPaused=!1,_.runEventLoop(),_}),O(this,"pause",function(){return _.state.eventLoopPaused=!0,_}),O(this,"stop",function(){return _.state.eventLoop&&((0,a.cancel)(_.state.eventLoop),_.state.eventLoop=null),_}),O(this,"pauseFor",function(A){return _.addEventToQueue(C,{ms:A}),_}),O(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)}),_)}),O(this,"typeString",function(A){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(o(A))return _.typeOutHTMLString(A,B);if(A){var S=(_.options||{}).stringSplitter,j=typeof S=="function"?S(A):A.split("");_.typeCharacters(j,B)}return _}),O(this,"pasteString",function(A){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return o(A)?_.typeOutHTMLString(A,B,!0):(A&&_.addEventToQueue(N,{character:A,node:B}),_)}),O(this,"typeOutHTMLString",function(A){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,S=arguments.length>2?arguments[2]:void 0,j=function(pe){var he=document.createElement("div");return he.innerHTML=pe,he.childNodes}(A);if(j.length>0)for(var K=0;K<j.length;K++){var P=j[K],ie=P.innerHTML;P&&P.nodeType!==3?(P.innerHTML="",_.addEventToQueue(v,{node:P,parentNode:B}),S?_.pasteString(ie,P):_.typeString(ie,P)):P.textContent&&(S?_.pasteString(P.textContent,B):_.typeString(P.textContent,B))}return _}),O(this,"deleteAll",function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"natural";return _.addEventToQueue(m,{speed:A}),_}),O(this,"changeDeleteSpeed",function(A){if(!A)throw new Error("Must provide new delete speed");return _.addEventToQueue(T,{speed:A}),_}),O(this,"changeDelay",function(A){if(!A)throw new Error("Must provide new delay");return _.addEventToQueue(M,{delay:A}),_}),O(this,"changeCursor",function(A){if(!A)throw new Error("Must provide new cursor");return _.addEventToQueue(k,{cursor:A}),_}),O(this,"deleteChars",function(A){if(!A)throw new Error("Must provide amount of characters to delete");for(var B=0;B<A;B++)_.addEventToQueue(h);return _}),O(this,"callFunction",function(A,B){if(!A||typeof A!="function")throw new Error("Callback must be a function");return _.addEventToQueue(f,{cb:A,thisArg:B}),_}),O(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(S){_.addEventToQueue(d,{character:S,node:B})}),_}),O(this,"removeCharacters",function(A){if(!A||!Array.isArray(A))throw new Error("Characters must be an array");return A.forEach(function(){_.addEventToQueue(h)}),_}),O(this,"addEventToQueue",function(A,B){var S=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return _.addEventToStateProperty(A,B,S,"eventQueue")}),O(this,"addReverseCalledEvent",function(A,B){var S=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return _.options.loop?_.addEventToStateProperty(A,B,S,"reverseCalledEvents"):_}),O(this,"addEventToStateProperty",function(A,B){var S=arguments.length>2&&arguments[2]!==void 0&&arguments[2],j=arguments.length>3?arguments[3]:void 0,K={eventName:A,eventArgs:B||{}};return _.state[j]=S?[K].concat(w(_.state[j])):[].concat(w(_.state[j]),[K]),_}),O(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=w(_.state.calledEvents),_.state.calledEvents=[],_.options=Z({},_.state.initialOptions)}if(_.state.eventLoop=c()(_.runEventLoop),!_.state.eventLoopPaused){if(_.state.pauseUntil){if(A<_.state.pauseUntil)return;_.state.pauseUntil=null}var S,j=w(_.state.eventQueue),K=j.shift();if(!(B<=(S=K.eventName===b||K.eventName===h?_.options.deleteSpeed==="natural"?l(40,80):_.options.deleteSpeed:_.options.delay==="natural"?l(120,160):_.options.delay))){var P=K.eventName,ie=K.eventArgs;switch(_.logInDevMode({currentEvent:K,state:_.state,delay:S}),P){case N:case d:var pe=ie.character,he=ie.node,le=document.createTextNode(pe),ye=le;_.options.onCreateTextNode&&typeof _.options.onCreateTextNode=="function"&&(ye=_.options.onCreateTextNode(pe,le)),ye&&(he?he.appendChild(ye):_.state.elements.wrapper.appendChild(ye)),_.state.visibleNodes=[].concat(w(_.state.visibleNodes),[{type:"TEXT_NODE",character:pe,node:ye}]);break;case h:j.unshift({eventName:b,eventArgs:{removingCharacterNode:!0}});break;case C:var Fe=K.eventArgs.ms;_.state.pauseUntil=Date.now()+parseInt(Fe);break;case f:var de=K.eventArgs,Ee=de.cb,dt=de.thisArg;Ee.call(dt,{elements:_.state.elements});break;case v:var tt=K.eventArgs,We=tt.node,Ae=tt.parentNode;Ae?Ae.appendChild(We):_.state.elements.wrapper.appendChild(We),_.state.visibleNodes=[].concat(w(_.state.visibleNodes),[{type:L,node:We,parentNode:Ae||_.state.elements.wrapper}]);break;case m:var je=_.state.visibleNodes,Ye=ie.speed,Ue=[];Ye&&Ue.push({eventName:T,eventArgs:{speed:Ye,temp:!0}});for(var qe=0,Wt=je.length;qe<Wt;qe++)Ue.push({eventName:b,eventArgs:{removingCharacterNode:!1}});Ye&&Ue.push({eventName:T,eventArgs:{speed:_.options.deleteSpeed,temp:!0}}),j.unshift.apply(j,Ue);break;case b:var Pt=K.eventArgs.removingCharacterNode;if(_.state.visibleNodes.length){var nr=_.state.visibleNodes.pop(),Yr=nr.type,Tt=nr.node,yr=nr.character;_.options.onRemoveNode&&typeof _.options.onRemoveNode=="function"&&_.options.onRemoveNode({node:Tt,character:yr}),Tt&&Tt.parentNode.removeChild(Tt),Yr===L&&Pt&&j.unshift({eventName:b,eventArgs:{}})}break;case T:_.options.deleteSpeed=K.eventArgs.speed;break;case M:_.options.delay=K.eventArgs.delay;break;case k:_.options.cursor=K.eventArgs.cursor,_.state.elements.cursor.innerHTML=K.eventArgs.cursor}_.options.loop&&(K.eventName===b||K.eventArgs&&K.eventArgs.temp||(_.state.calledEvents=[].concat(w(_.state.calledEvents),[K]))),_.state.eventQueue=j,_.state.lastFrameTime=A}}}),W)if(typeof W=="string"){var X=document.querySelector(W);if(!X)throw new Error("Could not find container element");this.state.elements.container=X}else this.state.elements.container=W;ae&&(this.options=Z(Z({},this.options),ae)),this.state.initialOptions=Z({},this.options),this.init()}var $,I;return $=F,(I=[{key:"init",value:function(){var W,ae;this.setupWrapperElement(),this.addEventToQueue(k,{cursor:this.options.cursor},!0),this.addEventToQueue(m,null,!0),!window||window.___TYPEWRITER_JS_STYLES_ADDED___||this.options.skipAddStyles||(W=".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}}",(ae=document.createElement("style")).appendChild(document.createTextNode(W)),document.head.appendChild(ae),window.___TYPEWRITER_JS_STYLES_ADDED___=!0),this.options.autoStart===!0&&this.options.strings&&this.typeOutAllStrings().start()}},{key:"logInDevMode",value:function(W){this.options.devMode&&console.log(W)}}])&&q($.prototype,I),Object.defineProperty($,"prototype",{writable:!1}),F}()})(),i.default})())})(Rl);var vg=Rl.exports;const yg=xr(vg);class _g{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.currentTableWrapper=null,this.rowId=0,this.typewriter=null,this.chunkBuffer="",this.bufferTimer=null,this.minBufferSize=20,this.bufferTimeout=50,this.container=e,this.htmlRenderingTarget=e,this.exposedRegexes=r.exposedRegexes||[],this.useTableProcessor=!!r.useTableProcessor,this.dark=!!r.dark,this.initProcessor(),this.animated=!!r.animated,this.animated&&(this.typewriter=this.initTypewriter()),this.onAnimationStart=r.onAnimationStart||(()=>{}),this.onAnimationEnd=r.onAnimationEnd||(()=>{})}initProcessor(){this.processor=v1.unified().use(h1).use(this.remarkCheckIncompleteTableRows.bind(this)).use(p1).use(d1).use(f1,{allowDangerousHtml:!0}).use(m1,{allowDangerousHtml:!0})}remarkCheckIncompleteTableRows(){return e=>{g1.visit(e,void 0,(r,s,n)=>{var c,o;const i=n,a=r.type;if(a==="text"&&this.exposedRegexes.forEach(({regex:l,type:d})=>{this.processTextNode(r,s,i,l,d)}),!!this.useTableProcessor&&(a==="table"&&!r.data&&(r.data={hProperties:{id:`t-${this.tableId}`}},this.mdTableHeaderString=this.extractTableHeaderString(r),this.setIsRenderingTable(!0)),a==="tableRow"&&!r.data&&(r.data={hProperties:{id:`r-${this.rowId++}`}}),a==="tableRow")){const l=i.children[0].children.length,d=r.children.length,h=this.accumulator.slice((c=r.position)==null?void 0:c.start.offset,(o=r.position)==null?void 0:o.end.offset);d<l?this.isIncompleteTableRow=!0:h.endsWith("|")?(this.isIncompleteTableRow=!1,this.pendingRowString=""):(this.pendingRowString=h,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.isRenderingTable&&this.currentTableWrapper?this.currentTableWrapper.after(e):this.container.appendChild(e),this.htmlRenderingTarget=e,this.accumulator="",this.isRenderingTable&&(this.tableId++,this.mdTableHeaderString="",this.isIncompleteTableRow=!1,this.isRenderingTable=!1,this.currentTableWrapper=null)}extractTableHeaderString(e){const r=e,s=r.children[0],n=r.align,i=s.children.map(c=>` ${c.children.map(l=>l.value).join("")} `).join("|"),a=n.map(c=>c==="left"?":---":c==="right"?"---:":c==="center"?":---:":"---").join("|");return`|${i}|
247
247
  |${a}|
248
248
  `}async processMarkdown(e){if(!this.processor)throw new Error("Processor not initialized");return this.chunkBuffer+=e,this.totalMarkdown+=e,this.bufferTimer&&(clearTimeout(this.bufferTimer),this.bufferTimer=null),this.shouldProcessBuffer()?await this.processBufferedChunks():this.bufferTimer=setTimeout(()=>{this.processBufferedChunks()},this.bufferTimeout),!0}shouldProcessBuffer(){if(this.chunkBuffer.includes(`
249
249
 
@@ -255,7 +255,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
255
255
 
256
256
  `);i&&(this.accumulator+=i,this.totalMarkdown+=`
257
257
 
258
- `,await this.processAccumulated())}else this.accumulator+=e,await this.processAccumulated()}async processAccumulated(){if(this.isRenderingTable&&this.accumulator.length<10)return!1;try{const e=await this.processor.process(this.accumulator);if(this.isIncompleteTableRow)return this.isIncompleteTableRow=!1,!1;const r=e.toString();return r?(await this.render(r),this.lastProcessedLength=this.accumulator.length,!0):!1}catch{return!1}}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 s=this.htmlRenderingTarget.parentNode,n=this.ensureTableExists(s);this.removeEmptyTableRows(n);const i=r.querySelector("tbody")||document.createElement("tbody"),a=this.ensureTBodyExists(n);this.copyTableHead(r,n),this.copyTableBodyRows(i,a)}processTextNode(e,r,s,n,i){const c=e.value.split(n);if(c.length>1){const o=this.replaceRegexTargets(c,n,i,e,r);s.children.splice(r,1,...o)}}replaceRegexTargets(e,r,s,n,i){return e.map((a,c)=>{var o,l;if(r.test(a)){const d=`regex-target-${s}-${c}-${i}-${this.totalMarkdown.length}-${(l=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:l.offset}`;return this.regexRenderTargetsById[d]={match:a,type:s},{type:"html",value:`<span id="${d}">${a}</span>`}}return a?{type:"text",value:a}:null}).filter(Boolean)}ensureTableExists(e){var n;let r=e.querySelector(`table#t-${this.tableId}`),s=e.querySelector(`#tw-${this.tableId}`);return r&&!s?(s=document.createElement("div"),s.className="e-markdown-table-wrapper e-overflow-x-auto e-w-full e-rounded-lg e-my-4",s.id=`tw-${this.tableId}`,(n=r.parentNode)==null||n.removeChild(r),s.appendChild(r),e.appendChild(s),this.currentTableWrapper=s):r||(s=document.createElement("div"),s.className="e-markdown-table-wrapper e-overflow-x-auto e-w-full e-rounded-lg e-my-4",s.id=`tw-${this.tableId}`,r=document.createElement("table"),r.id=`t-${this.tableId}`,r.className="e-min-w-full",r.style.borderCollapse="collapse",s.appendChild(r),e.appendChild(s),this.currentTableWrapper=s),r}ensureTBodyExists(e){let r=e.querySelector("tbody");return r||(r=document.createElement("tbody"),r.className="e-w-full",e.appendChild(r)),r}getBorderColor(){return this.dark?"#4b5563":"#d1d5db"}copyTableHead(e,r){const s=e.querySelector("thead");!r.querySelector("thead")&&s&&(s.className="e-w-full",s.querySelectorAll("th").forEach(a=>{a.classList.add("e-px-3","e-py-2"),a.style.borderBottom=`1px solid ${this.getBorderColor()}`}),r.appendChild(s))}copyTableBodyRows(e,r){const s=e.querySelectorAll("tr"),n=Array.from(r.querySelectorAll("tr")).map(i=>i.id);s&&s.forEach(i=>{if(!i.innerText.trim()||n.includes(i.id))return;i.querySelectorAll("td, th").forEach(c=>{c.classList.add("e-px-3","e-py-2","e-align-middle"),c.style.borderBottom=`1px solid ${this.getBorderColor()}`}),r.appendChild(i.cloneNode(!0))})}removeEmptyTableRows(e){e.querySelectorAll("tr").forEach(s=>{const n=s.querySelectorAll("td, th");let i=!0;n.forEach(a=>{a.textContent.trim()!==""&&(i=!1)}),i&&s.parentNode.removeChild(s)})}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,y1(this.htmlRenderingTarget,r,{onBeforeElUpdated:(s,n)=>s.classList.contains("Typewriter__wrapper")?(n.innerHTML=s.innerHTML,!1):!0})}initTypewriter(){return new yg(this.container,{loop:!1,delay:0,cursor:""})}async animateNewChunk(e){const r=this.getNewContent(e);await new Promise(s=>{this.onAnimationStart(),this.typewriter.typeString(r).callFunction(()=>{this.onAnimationEnd(),s()}).start()})}getNewContent(e){const r=document.createElement("div");return r.innerHTML=e,(r.textContent||"").slice(this.lastProcessedLength)}async forceProcess(){return this.bufferTimer&&(clearTimeout(this.bufferTimer),this.bufferTimer=null),this.chunkBuffer&&await this.processBufferedChunks(),!0}destroy(){this.bufferTimer&&(clearTimeout(this.bufferTimer),this.bufferTimer=null)}}const bg=E.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,lastChunkCount:0,completionTimer:null}},watch:{nextChunks(t){this.handleNewChunk(t.join(""));let e=0;Array.isArray(this.nextChunks)?e=this.nextChunks.length:this.nextChunks?e=1:e=0,this.lastChunkCount=e,this.resetCompletionTimer()},dark(t){this.processor&&(this.processor.dark=t,this.updateTableBorders())}},mounted(){this.initProcessor(),this.processInitialChunks()},beforeDestroy(){this.cleanup()},methods:{initProcessor(){const t=this.$refs.content;this.processor=new _g(t,{exposedRegexes:this.exposedRegexes,animated:this.animated,onAnimationStart:()=>this.$emit("animation-start"),onAnimationEnd:()=>this.$emit("animation-end"),useTableProcessor:this.useTableProcessor,dark:this.dark})},async processChunk(t){var r;await((r=this.processor)==null?void 0:r.processMarkdown(t))&&this.$nextTick(()=>{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)},resetCompletionTimer(){this.completionTimer&&clearTimeout(this.completionTimer),this.completionTimer=setTimeout(()=>{this.onStreamingComplete()},200)},async onStreamingComplete(){this.processor&&(await this.processor.forceProcess(),this.$nextTick(()=>{this.renderRegexesScopedSlots()}))},renderRegexesScopedSlots(){var e,r;const t=(e=this.processor)==null?void 0:e.getRegexRenderTargets();!t||Object.keys(t).length===0||(Object.entries(t).forEach(([s,{match:n,type:i}])=>{this.renderScopedSlot({id:s,type:i,propsData:{match:n}})}),(r=this.processor)==null||r.clearRegexRenderTargets())},renderScopedSlot({id:t,type:e,propsData:r}){const s=document.getElementById(t);if(!s)return;const n=this.$scopedSlots[`markdown.regex.${e}`];if(!n)return;const i=E.extend({functional:!0,props:["scopedSlot","propsData"],render:(c,o)=>o.props.scopedSlot(o.props.propsData)}),a=new E({render:c=>c(i,{props:{scopedSlot:n,propsData:r}})}).$mount();return s.innerHTML="",s.appendChild(a.$el),a},updateTableBorders(){const t=this.$refs.content;if(!t||!this.processor)return;const e=this.processor.getBorderColor();t.querySelectorAll("th, td").forEach(s=>{s.style.borderBottom=`1px solid ${e}`})},cleanup(){this.completionTimer&&(clearTimeout(this.completionTimer),this.completionTimer=null),this.processor&&this.processor.destroy()}}}),V_="";var Cg=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-markdown"},[r("article",{staticClass:"e-mx-auto e-prose !e-prose-pink prose-h1:!e-text-2xl prose-h2:!e-text-xl prose-h2:!e-mt-0 prose-h3:!e-text-lg",class:{"e-prose-invert":e.dark}},[r("div",{ref:"content",staticClass:"e-markdown__content"})])])},wg=[],xg=z(bg,Cg,wg,!1,null,null,null,null);const Sg=xg.exports,kg=E.extend({name:"ECopyToClipboardBtn",components:{EActionButton:sr},mixins:[st,gt],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},async copyTextToClipboard(){try{this.loading=!0;let t;typeof this.text=="function"?t=this.text():t=this.text;const e=String(t!=null?t:"");if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(e);else{const r=this.$refs.copyToClipboard;r.value=e,r.focus(),r.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}}}}),Q_="";var Tg=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:""}})])},Mg=[],$g=z(kg,Tg,Mg,!1,null,"e197456e",null,null);const Ai=$g.exports,Eg=E.extend({name:"EDialog",components:{EFadeTransition:Wr},mixins:[st],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={[ce.Warning]:"e-bg-warning e-text-white e-border-none",[ce.Error]:"e-bg-error e-text-white e-border-none",[ce.Info]:"e-bg-info e-text-white e-border-none",[ce.Success]:"e-bg-success e-text-white e-border-none",[ce.Primary]:"e-bg-primary e-text-white e-border-none",[ce.Brand]:"e-bg-brand-500 e-text-white e-border-none",[ce.Default]:e,[ce.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[ce.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)}}}),K_="";var Dg=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(s,n){return r("button",{key:n,class:e.getButtonClasses(s.color),on:{click:function(i){return i.stopPropagation(),e.onActionClick(s)}}},[e._v(" "+e._s(s.label)+" ")])})},{actions:e.actions,dark:e.dark})],2)])]):e._e()])},Lg=[],Pg=z(Eg,Dg,Lg,!1,null,null,null,null);const Og=Pg.exports,Ig=E.extend({name:"EFeedbackButton",components:{EDialog:Og,EActionButton:sr},mixins:[st,gt],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!"}}}),J_="";var zg=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(s){s.target.composing||(e.feedbackText=s.target.value)}}})])])]):e._e()],1)},Rg=[],Bg=z(Ig,zg,Rg,!1,null,null,null,null);const Fg=Bg.exports,Ag=E.extend({name:"EChatMessageActions",components:{EFeedbackButton:Fg,ECopyToClipboardBtn:Ai,EActionButton:sr},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:Ws,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}}}),eb="";var Hg=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:"fa-rotate-right","icon-size":"xs",dark:e.dark,"button-classes":e.eButtonClasses},on:{click:function(s){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(s){return e.handleFeedback(e.FeedbackType.Positive,s)}},nativeOn:{click:function(s){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(s){return e.handleFeedback(e.FeedbackType.Negative,s)}},nativeOn:{click:function(s){return e.openFeedbackDialog.apply(null,arguments)}}}):e._e()],1)])},Ng=[],Wg=z(Ag,Hg,Ng,!1,null,null,null,null);const Bl=Wg.exports,Yg=E.extend({name:"EChatMessage",components:{EFadeTransition:Wr,EAvatar:Zr,EChatMessageActions:Bl,EEvercamLogo:Fi,EPulsatingDot:gg,EMarkdown:Sg},mixins:[gt],props:{role:{type:String,default:it.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:qr.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===it.Copilot||this.role===it.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)}}}),tb="";var jg=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(s){return e.$emit("animation-end")},"animation-start":function(s){return e.$emit("animation-start")}},scopedSlots:e._u([e._l(e.markdownScopedSlots,function(s,n){return{key:n,fn:function(i){return[e._t(n,null,null,i)]}}})],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(s){return e.$emit("message-regenerate")}}}):e._e()],1)],2)},Ug=[],Gg=z(Yg,jg,Ug,!1,null,null,null,null);const Fl=Gg.exports,qg=E.extend({name:"EChatMessageGroup",components:{EFadeTransition:Wr,EChatMessageActions:Bl,EEvercamLogo:Fi,EChatMessage:Fl},props:{messages:{type:Array,required:!0},role:{type:String,default:it.Copilot},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},exposedRegexes:{type:Array,default:()=>[]},eMarkdownProps:{type:Object,default:()=>({})},copyTextExtractor:{type:Function,default:null}},computed:{logoClasses(){return{"e-bg-white e-rounded-full":this.dark}},markdownScopedSlots(){return Object.keys(this.$scopedSlots).filter(t=>t.startsWith("markdown.")).reduce((t,e)=>(t[e]=this.$scopedSlots[e],t),{})},lastMessage(){return this.messages[this.messages.length-1]},lastMessageId(){var t;return(t=this.lastMessage)==null?void 0:t.id},groupCopyText(){return this.messages.map(t=>t.type===qr.Json?this.copyTextExtractor?this.copyTextExtractor(t):null:(Array.isArray(t.content)?t.content:[t.content||""]).join("")).filter(Boolean).join(`
258
+ `,await this.processAccumulated())}else this.accumulator+=e,await this.processAccumulated()}async processAccumulated(){if(this.isRenderingTable&&this.accumulator.length<10)return!1;try{const e=await this.processor.process(this.accumulator);if(this.isIncompleteTableRow)return this.isIncompleteTableRow=!1,!1;const r=e.toString();return r?(await this.render(r),this.lastProcessedLength=this.accumulator.length,!0):!1}catch{return!1}}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 s=this.htmlRenderingTarget.parentNode,n=this.ensureTableExists(s);this.removeEmptyTableRows(n);const i=r.querySelector("tbody")||document.createElement("tbody"),a=this.ensureTBodyExists(n);this.copyTableHead(r,n),this.copyTableBodyRows(i,a)}processTextNode(e,r,s,n,i){const c=e.value.split(n);if(c.length>1){const o=this.replaceRegexTargets(c,n,i,e,r);s.children.splice(r,1,...o)}}replaceRegexTargets(e,r,s,n,i){return e.map((a,c)=>{var o,l;if(r.test(a)){const d=`regex-target-${s}-${c}-${i}-${this.totalMarkdown.length}-${(l=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:l.offset}`;return this.regexRenderTargetsById[d]={match:a,type:s},{type:"html",value:`<span id="${d}">${a}</span>`}}return a?{type:"text",value:a}:null}).filter(Boolean)}ensureTableExists(e){var n;let r=e.querySelector(`table#t-${this.tableId}`),s=e.querySelector(`#tw-${this.tableId}`);return r&&!s?(s=document.createElement("div"),s.className="e-markdown-table-wrapper e-overflow-x-auto e-w-full e-rounded-lg e-my-4",s.id=`tw-${this.tableId}`,(n=r.parentNode)==null||n.removeChild(r),s.appendChild(r),e.appendChild(s),this.currentTableWrapper=s):r||(s=document.createElement("div"),s.className="e-markdown-table-wrapper e-overflow-x-auto e-w-full e-rounded-lg e-my-4",s.id=`tw-${this.tableId}`,r=document.createElement("table"),r.id=`t-${this.tableId}`,r.className="e-min-w-full",r.style.borderCollapse="collapse",s.appendChild(r),e.appendChild(s),this.currentTableWrapper=s),r}ensureTBodyExists(e){let r=e.querySelector("tbody");return r||(r=document.createElement("tbody"),r.className="e-w-full",e.appendChild(r)),r}getBorderColor(){return this.dark?"#4b5563":"#d1d5db"}copyTableHead(e,r){const s=e.querySelector("thead");!r.querySelector("thead")&&s&&(s.className="e-w-full",s.querySelectorAll("th").forEach(a=>{a.classList.add("e-px-3","e-py-2"),a.style.borderBottom=`1px solid ${this.getBorderColor()}`}),r.appendChild(s))}copyTableBodyRows(e,r){const s=e.querySelectorAll("tr"),n=Array.from(r.querySelectorAll("tr")).map(i=>i.id);s&&s.forEach(i=>{if(!i.innerText.trim()||n.includes(i.id))return;i.querySelectorAll("td, th").forEach(c=>{c.classList.add("e-px-3","e-py-2","e-align-middle"),c.style.borderBottom=`1px solid ${this.getBorderColor()}`}),r.appendChild(i.cloneNode(!0))})}removeEmptyTableRows(e){e.querySelectorAll("tr").forEach(s=>{const n=s.querySelectorAll("td, th");let i=!0;n.forEach(a=>{a.textContent.trim()!==""&&(i=!1)}),i&&s.parentNode.removeChild(s)})}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,y1(this.htmlRenderingTarget,r,{onBeforeElUpdated:(s,n)=>s.classList.contains("Typewriter__wrapper")?(n.innerHTML=s.innerHTML,!1):!0})}initTypewriter(){return new yg(this.container,{loop:!1,delay:0,cursor:""})}async animateNewChunk(e){const r=this.getNewContent(e);await new Promise(s=>{this.onAnimationStart(),this.typewriter.typeString(r).callFunction(()=>{this.onAnimationEnd(),s()}).start()})}getNewContent(e){const r=document.createElement("div");return r.innerHTML=e,(r.textContent||"").slice(this.lastProcessedLength)}async forceProcess(){return this.bufferTimer&&(clearTimeout(this.bufferTimer),this.bufferTimer=null),this.chunkBuffer&&await this.processBufferedChunks(),!0}destroy(){this.bufferTimer&&(clearTimeout(this.bufferTimer),this.bufferTimer=null)}}const bg=E.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,lastChunkCount:0,completionTimer:null}},watch:{nextChunks(t){this.handleNewChunk(t.join(""));let e=0;Array.isArray(this.nextChunks)?e=this.nextChunks.length:this.nextChunks?e=1:e=0,this.lastChunkCount=e,this.resetCompletionTimer()},dark(t){this.processor&&(this.processor.dark=t,this.updateTableBorders())}},mounted(){this.initProcessor(),this.processInitialChunks()},beforeDestroy(){this.cleanup()},methods:{initProcessor(){const t=this.$refs.content;this.processor=new _g(t,{exposedRegexes:this.exposedRegexes,animated:this.animated,onAnimationStart:()=>this.$emit("animation-start"),onAnimationEnd:()=>this.$emit("animation-end"),useTableProcessor:this.useTableProcessor,dark:this.dark})},async processChunk(t){var r;await((r=this.processor)==null?void 0:r.processMarkdown(t))&&this.$nextTick(()=>{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)},resetCompletionTimer(){this.completionTimer&&clearTimeout(this.completionTimer),this.completionTimer=setTimeout(()=>{this.onStreamingComplete()},200)},async onStreamingComplete(){this.processor&&(await this.processor.forceProcess(),this.$nextTick(()=>{this.renderRegexesScopedSlots()}))},renderRegexesScopedSlots(){var e,r;const t=(e=this.processor)==null?void 0:e.getRegexRenderTargets();!t||Object.keys(t).length===0||(Object.entries(t).forEach(([s,{match:n,type:i}])=>{this.renderScopedSlot({id:s,type:i,propsData:{match:n}})}),(r=this.processor)==null||r.clearRegexRenderTargets())},renderScopedSlot({id:t,type:e,propsData:r}){const s=document.getElementById(t);if(!s)return;const n=this.$scopedSlots[`markdown.regex.${e}`];if(!n)return;const i=E.extend({functional:!0,props:["scopedSlot","propsData"],render:(c,o)=>o.props.scopedSlot(o.props.propsData)}),a=new E({render:c=>c(i,{props:{scopedSlot:n,propsData:r}})}).$mount();return s.innerHTML="",s.appendChild(a.$el),a},updateTableBorders(){const t=this.$refs.content;if(!t||!this.processor)return;const e=this.processor.getBorderColor();t.querySelectorAll("th, td").forEach(s=>{s.style.borderBottom=`1px solid ${e}`})},cleanup(){this.completionTimer&&(clearTimeout(this.completionTimer),this.completionTimer=null),this.processor&&this.processor.destroy()}}}),V_="";var Cg=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-markdown"},[r("article",{staticClass:"e-mx-auto e-prose !e-prose-pink prose-h1:!e-text-2xl prose-h2:!e-text-xl prose-h2:!e-mt-0 prose-h3:!e-text-lg",class:{"e-prose-invert":e.dark}},[r("div",{ref:"content",staticClass:"e-markdown__content"})])])},wg=[],xg=z(bg,Cg,wg,!1,null,null,null,null);const Sg=xg.exports,kg=E.extend({name:"ECopyToClipboardBtn",components:{EActionButton:sr},mixins:[st,gt],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},async copyTextToClipboard(){try{this.loading=!0;let t;typeof this.text=="function"?t=this.text():t=this.text;const e=String(t!=null?t:"");if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(e);else{const r=this.$refs.copyToClipboard;r.value=e,r.focus(),r.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}}}}),Q_="";var Tg=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:""}})])},Mg=[],$g=z(kg,Tg,Mg,!1,null,"e197456e",null,null);const Hi=$g.exports,Eg=E.extend({name:"EDialog",components:{EFadeTransition:Wr},mixins:[st],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={[ce.Warning]:"e-bg-warning e-text-white e-border-none",[ce.Error]:"e-bg-error e-text-white e-border-none",[ce.Info]:"e-bg-info e-text-white e-border-none",[ce.Success]:"e-bg-success e-text-white e-border-none",[ce.Primary]:"e-bg-primary e-text-white e-border-none",[ce.Brand]:"e-bg-brand-500 e-text-white e-border-none",[ce.Default]:e,[ce.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[ce.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)}}}),K_="";var Dg=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(s,n){return r("button",{key:n,class:e.getButtonClasses(s.color),on:{click:function(i){return i.stopPropagation(),e.onActionClick(s)}}},[e._v(" "+e._s(s.label)+" ")])})},{actions:e.actions,dark:e.dark})],2)])]):e._e()])},Lg=[],Pg=z(Eg,Dg,Lg,!1,null,null,null,null);const Og=Pg.exports,Ig=E.extend({name:"EFeedbackButton",components:{EDialog:Og,EActionButton:sr},mixins:[st,gt],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!"}}}),J_="";var zg=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(s){s.target.composing||(e.feedbackText=s.target.value)}}})])])]):e._e()],1)},Rg=[],Bg=z(Ig,zg,Rg,!1,null,null,null,null);const Fg=Bg.exports,Ag=E.extend({name:"EChatMessageActions",components:{EFeedbackButton:Fg,ECopyToClipboardBtn:Hi,EActionButton:sr},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:Ws,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}}}),eb="";var Hg=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:"fa-rotate-right","icon-size":"xs",dark:e.dark,"button-classes":e.eButtonClasses},on:{click:function(s){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(s){return e.handleFeedback(e.FeedbackType.Positive,s)}},nativeOn:{click:function(s){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(s){return e.handleFeedback(e.FeedbackType.Negative,s)}},nativeOn:{click:function(s){return e.openFeedbackDialog.apply(null,arguments)}}}):e._e()],1)])},Ng=[],Wg=z(Ag,Hg,Ng,!1,null,null,null,null);const Bl=Wg.exports,Yg=E.extend({name:"EChatMessage",components:{EFadeTransition:Wr,EAvatar:Zr,EChatMessageActions:Bl,EEvercamLogo:Ai,EPulsatingDot:gg,EMarkdown:Sg},mixins:[gt],props:{role:{type:String,default:it.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:qr.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===it.Copilot||this.role===it.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)}}}),tb="";var jg=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(s){return e.$emit("animation-end")},"animation-start":function(s){return e.$emit("animation-start")}},scopedSlots:e._u([e._l(e.markdownScopedSlots,function(s,n){return{key:n,fn:function(i){return[e._t(n,null,null,i)]}}})],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(s){return e.$emit("message-regenerate")}}}):e._e()],1)],2)},Ug=[],Gg=z(Yg,jg,Ug,!1,null,null,null,null);const Fl=Gg.exports,qg=E.extend({name:"EChatMessageGroup",components:{EFadeTransition:Wr,EChatMessageActions:Bl,EEvercamLogo:Ai,EChatMessage:Fl},props:{messages:{type:Array,required:!0},role:{type:String,default:it.Copilot},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},exposedRegexes:{type:Array,default:()=>[]},eMarkdownProps:{type:Object,default:()=>({})},copyTextExtractor:{type:Function,default:null}},computed:{logoClasses(){return{"e-bg-white e-rounded-full":this.dark}},markdownScopedSlots(){return Object.keys(this.$scopedSlots).filter(t=>t.startsWith("markdown.")).reduce((t,e)=>(t[e]=this.$scopedSlots[e],t),{})},lastMessage(){return this.messages[this.messages.length-1]},lastMessageId(){var t;return(t=this.lastMessage)==null?void 0:t.id},groupCopyText(){return this.messages.map(t=>t.type===qr.Json?this.copyTextExtractor?this.copyTextExtractor(t):null:(Array.isArray(t.content)?t.content:[t.content||""]).join("")).filter(Boolean).join(`
259
259
 
260
- `)}},methods:{getMessageClasses(t){const e=t===this.messages.length-1;return{"e-mb-11":e&&this.withActions,"!e-mb-0":!e}},onFeedback(t){this.$emit("feedback",t)}}}),rb="";var Zg=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-chat-message-group e-mb-3"},[r("div",{staticClass:"e-chat-message-group__wrapper e-flex e-items-start e-justify-start e-gap-3"},[e.showAvatar?r("div",{staticClass:"e-chat-message-group__avatar"},[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})],2):e._e(),r("div",{staticClass:"e-chat-message-group__messages e-flex e-flex-col e-gap-2 e-w-full"},e._l(e.messages,function(s,n){return r("EChatMessage",{key:`${s.id}-${n}`,class:e.getMessageClasses(n),attrs:{dark:e.dark,role:s.role,"is-loading":s.isLoading,"data-message-id":s.id,"show-feedback-buttons":!1,"show-regenerate-button":!1,"exposed-regexes":e.exposedRegexes,"show-copy-button":!1,"e-markdown-props":e.eMarkdownProps,message:s.content,type:s.type,"show-avatar":!1,"with-actions":!1},on:{"animation-end":function(i){return e.$emit("animation-end",i)},"animation-start":function(i){return e.$emit("animation-start",i)}},scopedSlots:e._u([e._l(e.markdownScopedSlots,function(i,a){return{key:a,fn:function(c){return[e._t(a,null,null,c)]}}}),{key:"message.content",fn:function(){return[e._t("message.content",null,{message:s})]},proxy:!0},{key:"message.append",fn:function(){return[e._t("message.append",null,{message:s})]},proxy:!0},{key:"extraContent",fn:function(){return[e._t("message.extraContent",null,{message:s})]},proxy:!0}],null,!0)})}),1)]),r("EFadeTransition",[e.withActions?r("EChatMessageActions",{staticClass:"e-left-11",attrs:{"message-id":e.lastMessageId,dark:e.dark,"show-copy-button":e.showCopyButton,"show-feedback-buttons":e.showFeedbackButtons,"show-regenerate-button":e.showRegenerateButton,message:e.groupCopyText},on:{feedback:e.onFeedback,regenerate:function(s){return e.$emit("message-regenerate",e.lastMessageId)}}}):e._e()],1)],1)},Xg=[],Vg=z(qg,Zg,Xg,!1,null,"64fdd3a1",null,null);const Qg=Vg.exports,Kg=E.extend({name:"EChatFooter",props:{dark:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},showDisclaimer:{type:Boolean,default:!0},disclaimerText:{type:String,default:"AI can make mistakes. Please double-check responses."}},computed:{backgroundClasses(){return this.inline?{}:{"e-bg-gray-700":this.dark,"e-bg-gray-50":!this.dark}},footerClasses(){return{...this.backgroundClasses}},disclaimerClasses(){return{"e-text-gray-400":this.dark,"e-text-gray-500":!this.dark}}}}),sb="";var Jg=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"),e.showDisclaimer?r("div",{staticClass:"e-chat-footer__disclaimer e-text-center e-mt-1 e-font-medium e-text-sm e-leading-6",class:e.disclaimerClasses},[e._v(" "+e._s(e.disclaimerText)+" ")]):e._e()],2)},ev=[],tv=z(Kg,Jg,ev,!1,null,"55975088",null,null);const rv=tv.exports,sv=E.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)}}}),nb="";var nv=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)])},iv=[],av=z(sv,nv,iv,!1,null,null,null,null);const ov=av.exports,lv=E.extend({name:"EVoiceInput",components:{EVoiceInputVolumeIndicator:ov,EIcon:Xe,ETooltip:Nr},mixins:[st],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-25":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,e=t.SpeechRecognition||t.webkitSpeechRecognition;if(!e){console.error("Speech recognition is not supported in this browser.");return}this.recognition=new e,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;const r=window,s=r.AudioContext||r.webkitAudioContext;if(this.audioContext=s?new s:null,!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.$emit("voice-toggle"),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&&this.recognition.start(),this.isListening=!0}catch(t){console.error("Error accessing microphone:",t)}},stopListening(){this.isListening=!1,this.recognition&&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 cv=function(){var e=this,r=e._self._c;return r("ETooltip",{attrs:{text:"Use Ctrl + Space to speak",dark:e.dark,disabled:e.disabled}},[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},attrs:{disabled:e.disabled},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:"fa-stop",color:"e-text-red-600"}})],1):r("EIcon",{attrs:{icon:"far fa-microphone",size:"base"}})],1)])},uv=[],dv=z(lv,cv,uv,!1,null,null,null,null);const Hi=dv.exports,hv=E.extend({name:"EChatInput",components:{EIcon:Xe,ETooltip:Nr,EVoiceInput:Hi},model:{prop:"value",event:"prompt-changed"},props:{dark:{type:Boolean,default:!1},placeholder:{type:String,default:"How can I help you?"},disabled:{type:Boolean,default:!1},silenceTimeout:{type:Number,default:1500},isLoading:{type:Boolean,default:!1},isStreaming:{type:Boolean,default:!1}},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&&!this.isSubmitDisabled&&!this.disabled,"e-bg-white":!this.dark&&!this.isSubmitDisabled&&!this.disabled,"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"e-opacity-25":this.isSubmitDisabled||this.disabled}},stopButtonClasses(){return{"e-bg-red-600":this.dark,"e-bg-red-500":!this.dark,"e-text-white":!0,"hover:e-bg-red-700":this.dark,"hover:e-bg-red-600":!this.dark}},isSubmitDisabled(){return this.disabled||this.isLoading||this.isStreaming||this.content.length<3},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)},stopStreaming(){this.$emit("stop")},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(t.key==="Shift"||t.code==="ShiftLeft"){this.isShiftKeyPressed=!1;return}t.key==="Enter"&&!this.isShiftKeyPressed&&!this.isSubmitDisabled&&(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=""}}}),ib="";var fv=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&&!e.isLoading&&!e.isStreaming},on:{keydown:function(s){return s.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-opacity-50":e.disabled}]},[e._t("input-action-button",function(){return[!e.isLoading&&!e.isStreaming?r("EVoiceInput",{attrs:{dark:e.dark,disabled:e.disabled,"silence-timeout":e.silenceTimeout},on:{"on-voice-message-end":e.handleVoiceMessage,"voice-toggle":function(s){return e.$emit("voice-toggle")}},model:{value:e.transcript,callback:function(s){e.transcript=s},expression:"transcript"}}):e._e(),e.isLoading||e.isStreaming?r("ETooltip",{attrs:{text:e.isLoading?"Cancel request":"Stop generating",dark:e.dark}},[r("button",{staticClass:"e-chat-input__stop-btn 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-bg-transparent",class:e.stopButtonClasses,attrs:{type:"button"},on:{click:function(s){return s.preventDefault(),e.stopStreaming.apply(null,arguments)}}},[r("EIcon",{attrs:{icon:"fa-stop",size:"base"}})],1)]):r("ETooltip",{attrs:{text:"Submit",dark:e.dark,disabled:e.isSubmitDisabled}},[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 disabled:e-opacity-25 e-h-8 e-w-8 e-border-none focus:e-outline-none e-bg-transparent",class:e.buttonClasses,attrs:{type:"button",disabled:e.isSubmitDisabled},on:{click:function(s){return s.preventDefault(),e.submitMessage.apply(null,arguments)}}},[r("EIcon",{attrs:{icon:"fa-arrow-up",size:"base"}})],1)])]},{buttonClasses:e.buttonClasses})],2)])},pv=[],mv=z(hv,fv,pv,!1,null,null,null,null);const gv=mv.exports,vv=E.extend({name:"EChatSuggestionCard",components:{EIcon:Xe},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 yv=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:"base",color:e.color}}):e._e()],1),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)+" ")])])},_v=[],bv=z(vv,yv,_v,!1,null,null,null,null);const Cv=bv.exports,wv=E.extend({components:{EFadeTransition:Wr,EChatWrapper:Qm,EChatHeader:ag,EChatBody:dg,EChatMessage:Fl,EChatMessageGroup:Qg,EChatFooter:rv,EChatInput:gv,EChatSuggestionCard:Cv},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},isStreaming:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},headerText:{type:String,default:"Ask AI"},inputPlaceholder:{type:String,default:"How can I help you?"},loadingMessage:{type:String,default:""},suggestions:{type:Array,default:()=>[]},exposedRegexes:{type:Array,default:()=>[]},eMarkdownProps:{type:Object,default:()=>({useTableProcessor:!1})},silenceTimeout:{type:Number,default:1500},messageCopyTextExtractor:{type:Function,default:null}},data(){return{prompt:"",containerHeight:0,headerHeight:0,bodyHeight:0,footerHeight:0}},computed:{ChatMessageRole(){return it},userInitials(){var t,e,r;return((r=(e=(t=this.user.trim())==null?void 0:t.split(/\s+/))==null?void 0:e.map(s=>{var n;return((n=s==null?void 0:s.charAt(0))==null?void 0:n.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},groupedMessages(){const t=[];let e=null;return this.messages.forEach(r=>{const s=r.role===it.Copilot||r.role===it.System,n=r.agentId;s?e&&e.isGroup&&e.agentId===n?e.messages.push(r):(e={isGroup:!0,messages:[r],agentId:n},t.push(e)):(e=null,t.push({isGroup:!1,messages:[r]}))}),t}},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===it.User},hasActions(t){return this.isLoading||this.isStreaming||this.isDisabled?!1:t.role===it.Copilot&&t.withActions!==!1},hasGroupActions(t){return this.isLoading||this.isStreaming||this.isDisabled?!1:t.messages[t.messages.length-1].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.groupedMessages.length-1&&this.hasActions(t)}},getGroupClasses(t,e){return{"e-mb-11":e===this.groupedMessages.length-1&&this.hasGroupActions(t)}},updateChatBodyHeight(){this.$nextTick(()=>{var s,n,i;const t=(s=this.$refs.chatContainer)==null?void 0:s.$el,e=(n=this.$refs.chatHeader)==null?void 0:n.$el,r=(i=this.$refs.chatFooter)==null?void 0:i.$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===it.User?this.showUserAvatar:t.role===it.Copilot?this.showCopilotAvatar:!0},onMessageFeedback(t,e){this.$emit("message-feedback",{...t,messageId:e})}}}),ab="";var xv=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(s){return r("EChatSuggestionCard",{key:s.text,attrs:{text:s.text,icon:s.icon,color:s.color,dark:e.dark,width:s.width,display:s.display||"row"},on:{click:function(n){return e.$emit("suggestion-clicked",s)}}})}),1)]):e._e()]),e.showSuggestions?e._e():r("div",[e._l(e.groupedMessages,function(s,n){return[s.isGroup?r("EChatMessageGroup",{key:`group-${n}-${s.messages[0].id}`,class:e.getGroupClasses(s,n),attrs:{messages:s.messages,dark:e.dark,role:e.ChatMessageRole.Copilot,"show-avatar":e.showCopilotAvatar,"show-feedback-buttons":!e.readonly,"show-regenerate-button":!e.readonly,"show-copy-button":!0,"exposed-regexes":e.exposedRegexes,"e-markdown-props":e.eMarkdownProps,"copy-text-extractor":e.messageCopyTextExtractor,"with-actions":e.hasGroupActions(s)&&n>0},on:{feedback:function(i){return e.onMessageFeedback(i,s.messages[s.messages.length-1].id)},"message-regenerate":function(i){return e.$emit("message-regenerate",s.messages[s.messages.length-1].id)},"animation-end":function(i){return e.$emit("animation-end",i)},"animation-start":function(i){return e.$emit("animation-start",i)}},scopedSlots:e._u([e._l(e.markdownScopedSlots,function(i,a){return{key:a,fn:function(c){return[e._t(a,null,null,c)]}}}),{key:"message.content",fn:function({message:i}){return[e._t("message.content",null,{message:i})]}},{key:"message.append",fn:function({message:i}){return[e._t("message.append",null,{message:i})]}},{key:"message.extraContent",fn:function({message:i}){return[e._t("message.extraContent",null,{message:i})]}}],null,!0)}):r("EChatMessage",{key:`message-${s.messages[0].id}-${n}`,class:e.getMessageClasses(s.messages[0],n),attrs:{dark:e.dark,role:s.messages[0].role,"is-loading":s.messages[0].isLoading,"data-message-id":s.messages[0].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(s.messages[0]),type:s.messages[0].type,initials:e.getMessageInitials(s.messages[0]),"show-avatar":e.isAvatarVisible(s.messages[0]),"with-actions":e.hasActions(s.messages[0])&&n>0},on:{feedback:function(i){return e.onMessageFeedback(i,s.messages[0].id)},"message-regenerate":function(i){return e.$emit("message-regenerate",s.messages[0].id)},"animation-end":function(i){return e.$emit("animation-end",i)}},scopedSlots:e._u([e._l(e.markdownScopedSlots,function(i,a){return{key:a,fn:function(c){return[e._t(a,null,null,c)]}}}),{key:"message.content",fn:function(){return[e._t("message.content",null,{message:s.messages[0]})]},proxy:!0},{key:"message.append",fn:function(){return[e._t("message.append",null,{message:s.messages[0]})]},proxy:!0},{key:"extraContent",fn:function(){return[e._t("message.extraContent",null,{message:s.messages[0]})]},proxy:!0}],null,!0)})]})],2),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,"is-loading":e.isLoading,"is-streaming":e.isStreaming},on:{"prompt-changed":function(s){return e.$emit("prompt-changed",s)},submit:e.sendMessage,stop:function(s){return e.$emit("stop")}},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(s){e.prompt=s},expression:"prompt"}})],1)],2)])},Sv=[],kv=z(wv,xv,Sv,!1,null,"32bc0a6d",null,null);const Tv=kv.exports,Mv=E.extend({name:"ELazy",props:{height:{type:[String,Number],default:"auto"},rootMargin:{type:String,default:"200px"},threshold:{type:Number,default:.01},unloadOnExit:{type:Boolean,default:!1},minLoadTime:{type:Number,default:0},root:{type:Object,default:null}},data(){return{isVisible:!1,observer:null,loadTimer:null}},computed:{containerStyle(){return{}},placeholderStyle(){const t=typeof this.height=="number"?`${this.height}px`:this.height;return{height:t,minHeight:t!=="auto"?t:"50px"}}},mounted(){this.setupIntersectionObserver()},beforeDestroy(){this.cleanup()},methods:{setupIntersectionObserver(){const t={root:this.root,rootMargin:this.rootMargin,threshold:this.threshold};this.observer=new IntersectionObserver(r=>{r.forEach(s=>{s.isIntersecting?this.handleIntersecting():this.unloadOnExit&&this.isVisible&&this.handleExiting()})},t);const e=this.$refs.container;e&&this.observer.observe(e)},handleIntersecting(){this.minLoadTime>0?this.loadTimer=window.setTimeout(()=>{this.load()},this.minLoadTime):this.load()},handleExiting(){this.loadTimer&&(clearTimeout(this.loadTimer),this.loadTimer=null),this.isVisible=!1,this.$emit("unload")},load(){this.isVisible||(this.isVisible=!0,this.$emit("load"))},cleanup(){this.observer&&(this.observer.disconnect(),this.observer=null),this.loadTimer&&(clearTimeout(this.loadTimer),this.loadTimer=null)}}}),ob="";var $v=function(){var e=this,r=e._self._c;return r("div",{ref:"container",style:e.containerStyle},[e.isVisible?e._t("default"):e._t("placeholder",function(){return[r("div",{staticClass:"e-lazy-load-placeholder",style:e.placeholderStyle})]})],2)},Ev=[],Dv=z(Mv,$v,Ev,!1,null,"6dabb8f4",null,null);const Lv=Dv.exports,Pv=E.extend({name:"ERadioGroup",components:{EIcon:Xe,ELazy:Lv},mixins:[Mr],props:{dark:{type:Boolean,default:!1},withDescription:{type:Boolean,default:!0},withIcon:{type:Boolean,default:!1},itemsWrapperClasses:{type:[String,Object,Array],default:""}},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){return this.withDescription&&(t==null?void 0:t.description)&&t.description.length>0||this.isSelected(t.value)},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"]},svgIconColor(t){return this.isSelected(t.value)?"#00315f":this.dark?"#e5e7eb":"#6b7280"}}});var Ov=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-radio-group__items e-space-y-2",class:e.itemsWrapperClasses},e._l(e.options,function(s,n){return r("ELazy",{key:n,attrs:{height:66,"root-margin":"300px"},scopedSlots:e._u([{key:"placeholder",fn:function(){return[r("div",{class:["e-h-[66px] e-rounded-lg e-animate-pulse",e.dark?"e-bg-gray-700":"e-bg-gray-200"]})]},proxy:!0}],null,!0)},[r("div",{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(s),attrs:{"data-test-id":`radio-option-${s.value}`},on:{click:function(i){return e.onItemClick(s.value)}}},[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"},[e.withIcon&&s.icon?r("div",{staticClass:"e-mr-4"},[e._t("icon",function(){return[r("EIcon",{class:e.isSelected(s.value)?e.selectedItemClasses:e.radioItemClasses,attrs:{icon:s.icon,color:e.svgIconColor(s),size:s.iconSize||"base"}})]},{option:s,attrs:e.isSelected(s.value)?e.selectedItemClasses:e.radioItemClasses,isSelected:e.isSelected(s.value)})],2):e._e(),r("div",{staticClass:"e-radio-group__option e-flex e-items-center e-gap-2"},[e._t("prefix",null,{option:s}),r("div",{staticClass:"e-text-sm"},[e._t("label",function(){return[r("h2",{staticClass:"e-radio-group__option-title e-font-semibold e-text-sm e-mb-1 e-mt-1",attrs:{"data-test-id":"radio-option-description-label"}},[e._v(" "+e._s(s.label)+" ")])]},{option:s}),e._t("description",function(){return[e.showDescription(s)?r("span",{staticClass:"e-radio-group__option-description e-mt-2 e-text-[0.75rem]"},[e._v(" "+e._s(s.description)+" ")]):e._e()]},{option:s})],2)],2)]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isSelected(s.value),expression:"isSelected(option.value)"}],staticClass:"e-shrink-0 e-text-white",attrs:{"data-test-id":"radio-option-checkmark"}},[e._t("highlight-icon",function(){return[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"}})])]},{option:s})],2)])])])}),1)])])},Iv=[],zv=z(Pv,Ov,Iv,!1,null,null,null,null);const Al=zv.exports,Rv=E.extend({name:"ETabs",mixins:[is],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,s,n;const e=(r=t.componentOptions)==null?void 0:r.propsData;return e!=null&&e.title?e.title:e!=null&&e.name?e.name:(n=(s=t.data)==null?void 0:s.attrs)!=null&&n.name?t.data.attrs.name:`Tab ${this.currentValue+1}`},renderTab(t,e,r){var i,a,c,o,l,d,h,m;const s=((a=(i=e.data)==null?void 0:i.attrs)==null?void 0:a.href)||((o=(c=e.data)==null?void 0:c.attrs)==null?void 0:o.to),n=this.getTabBarItemClasses(r,s);if(s)try{return this.isExternalLink(s)?t("a",{key:r,class:n,attrs:{href:s,target:"_blank",rel:"noopener noreferrer",...(l=e.data)==null?void 0:l.attrs}},[this.getChildTitle(e)]):t("router-link",{key:r,class:n,attrs:{to:s,...(d=e.data)==null?void 0:d.attrs}},[this.getChildTitle(e)])}catch{return t("a",{key:r,class:n,attrs:{href:s,...(h=e.data)==null?void 0:h.attrs}},[this.getChildTitle(e)])}return t("div",{key:r,class:n,attrs:(m=e.data)==null?void 0:m.attrs,on:{click:()=>this.onTabSelected(r)}},[this.getChildTitle(e)])},renderContent(t,e,r){var s,n,i,a;return(n=(s=e.data)==null?void 0:s.attrs)!=null&&n.href||(a=(i=e.data)==null?void 0:i.attrs)!=null&&a.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(s=>s.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((s,n)=>this.renderTab(t,s,n))),t("div",{class:"tab-content e-w-full"},e.map((s,n)=>this.renderContent(t,s,n)).filter(Boolean))])}}),lb="";var Bv=z(Rv,null,null,!1,null,null,null,null);const Hl=Bv.exports,Fv=E.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")}}),db="";var Av=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)])])},Hv=[],Nv=z(Fv,Av,Hv,!1,null,null,null,null);const Wv=Nv.exports,Yv=E.extend({name:"EPolygonOverlay",directives:{ResizeObserver:lt},mixins:[st,gt],props:{polygons:{type:Array,default:()=>[]},animate:{type:Boolean,default:!0},isReadOnly:{type:Boolean,default:!1},useMask:{type:Boolean,default:!1},straightLine:{type:Boolean,default:!1},value:{type:Array,default:()=>[]},isRectangle:{type:Boolean,default:!0},showClearButton:{type:Boolean,default:!1},nodeSize:{type:Number,default:6},lineColor:{type:String,default:"#029eff"},fillColor:{type:String,default:"#029eff22"},hoverFillColor:{type:String,default:"rgba(66, 192,31, 0.5 )"},hoverLineColor:{type:String,default:"rgb(66, 192,31 )"},scale:{type:Number,default:1},imageWidth:{type:Number,default:0},imageHeight:{type:Number,default:0}},data(){return{points:[],draggingPointIndex:-1,isDraggingPoint:!1,isMouseDown:!1,startX:0,startY:0,currentX:0,currentY:0,hoveredIndex:null,strokeDasharray:"5,5",width:null,height:null,containerRect:{},mouseDownX:null,mouseDownY:null,dragThreshold:5,maskId:`polygon-mask-${Nn()}`,strokeMaskId:`stroke-mask-${Nn()}`}},computed:{scaledNodeSize(){return Math.max(4,this.nodeSize/this.scale)},scaledStrokeWidth(){return Math.max(1,2/this.scale)},scaledStrokeDasharray(){if(!this.strokeDasharray||!this.scale)return this.strokeDasharray;const t=2,e=12;return this.strokeDasharray.split(",").map(r=>{const s=Number(r)/this.scale;return Math.max(t,Math.min(e,s))}).join(",")},scaledThinStrokeWidth(){return 1/this.scale},controlsStyles(){const t=this.polygonPosition;if(!t)return{};const e=this.containerRect;return e?{left:`${t.left-e.left}px`,top:`${t.top-e.top-48}px`}:{}},polygonPosition(){if(!this.points||this.points.length===0||!this.width||!this.height)return null;const t=this.containerRect;if(!t)return null;const e=Math.min(...this.points.map(s=>s.x)),r=Math.min(...this.points.map(s=>s.y));return{left:t.left+e,top:t.top+Math.max(r-10,0)}},polygonPoints(){return this.points.map(t=>`${t.x},${t.y}`).join(" ")},formattedPolygonsPoints(){return!Array.isArray(this.polygons)||!this.imageWidth||!this.imageHeight?[]:this.polygons.map(t=>t.map(({x:e,y:r})=>`${e*this.imageWidth},${r*this.imageHeight}`).join(" "))},deNormalizedPoints(){return this.normalizedPoints.map(t=>({x:t.x*this.width,y:t.y*this.height}))},normalizedPoints(){return!this.width||!this.height?[]:this.value&&this.value.length&&this.points.length===0?this.value:this.points.map(t=>({x:t.x/this.width,y:t.y/this.height}))}},watch:{points:{handler(){this.saveSelection()},deep:!0},value(t){this.points=t}},mounted(){this.isReadOnly||(this.$addEventListener("mousedown",this.handleMouseDown),this.$addEventListener("mousemove",this.handleMouseMove),this.$addEventListener("mouseup",this.handleMouseUp))},methods:{onResize(){const e=this.$refs.container.getBoundingClientRect();this.containerRect=e,this.width=e.width,this.height=e.height,this.points=this.deNormalizedPoints},getRelativePosition(t){const e=this.$refs.container,r=e.getBoundingClientRect();let s=Math.max(0,Math.min(r.width,t.clientX-r.left)),n=Math.max(0,Math.min(r.height,t.clientY-r.top));return{x:s/this.scale,y:n/this.scale,container:e}},handleResize(){this.$refs.container},handleMouseDown(t){const e=this.$refs.container,r=e.getBoundingClientRect();e.contains(t.target)&&(this.mouseDownX=t.clientX,this.mouseDownY=t.clientY,this.isRectangle&&(this.points=[],this.startX=(t.clientX-r.left)/this.scale,this.startY=(t.clientY-r.top)/this.scale,this.currentX=this.startX,this.currentY=this.startY,this.isMouseDown=!0))},handleMouseMove(t){const{x:e,y:r}=this.getRelativePosition(t);if(this.isRectangle&&this.isMouseDown){this.currentX=e,this.currentY=r;return}this.isDraggingPoint&&this.draggingPointIndex!==null&&this.draggingPointIndex>=0&&this.draggingPointIndex<this.points.length&&this.$set(this.points,this.draggingPointIndex,{x:e,y:r})},handleMouseUp(t){const{x:e,y:r,container:s}=this.getRelativePosition(t);if(this.isRectangle&&this.isMouseDown){this.isMouseDown=!1;const a=Math.min(this.startY,this.currentY),c=Math.min(this.startX,this.currentX),o=Math.max(this.startX,this.currentX),l=Math.max(this.startY,this.currentY);if(c===o||a===l)return;this.points=[{x:c,y:a},{x:o,y:a},{x:o,y:l},{x:c,y:l}];return}if(this.isDraggingPoint){this.isDraggingPoint=!1,this.draggingPointIndex=-1;return}if(!s.contains(t.target))return;const n=Math.abs(t.clientX-this.mouseDownX),i=Math.abs(t.clientY-this.mouseDownY);n>this.dragThreshold||i>this.dragThreshold||this.insertPoint({x:e,y:r})},removePoint(t){this.points.splice(t,1)},startDraggingPoint(t,e){this.isRectangle||(this.draggingPointIndex=e,this.isDraggingPoint=!0)},insertPoint(t){if(this.isRectangle)return;if(this.points.length<3){this.points.push(t);return}const e=[];for(let s=0;s<this.points.length;s++){const n=this.points[s],i=this.points[(s+1)%this.points.length],a=this.distanceToLineSegment(n,i,t);e.push({index:s,distance:a})}e.sort((s,n)=>s.distance-n.distance);const r=e[0].index;this.points.splice(r+1,0,t)},distanceToLineSegment(t,e,r){const s=e.x-t.x,n=e.y-t.y,i=s*s+n*n,a=Math.max(0,Math.min(1,((r.x-t.x)*s+(r.y-t.y)*n)/i)),c=t.x+a*s,o=t.y+a*n;return Math.hypot(r.x-c,r.y-o)},saveSelection(){this.$emit("change",{normalizedPoints:this.normalizedPoints,points:this.points})}}}),hb="";var jv=function(){var s;var e=this,r=e._self._c;return r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],ref:"container",staticClass:"area-selector"},[e.isRectangle?r("svg",{staticClass:"polygon-overlay"},[e.isMouseDown?r("rect",{attrs:{x:Math.min(e.startX,e.currentX),y:Math.min(e.startY,e.currentY),width:Math.abs(e.currentX-e.startX),height:Math.abs(e.currentY-e.startY),fill:e.fillColor,stroke:e.lineColor,"stroke-width":"1.5","stroke-dasharray":e.straightLine?"":e.strokeDasharray}}):e._e(),e.points.length===4?r("polygon",{attrs:{points:e.polygonPoints,fill:e.fillColor,stroke:e.lineColor,"stroke-width":"1.5","stroke-dasharray":e.straightLine?"":e.strokeDasharray}}):e._e()]):(s=e.polygons)!=null&&s.length?r("svg",{staticClass:"polygon-overlay"},[e._l(e.formattedPolygonsPoints,function(n,i){return r("polygon",{key:i,attrs:{points:n,fill:i===e.hoveredIndex?e.hoverFillColor:e.fillColor,stroke:i===e.hoveredIndex?e.hoverLineColor:e.lineColor,"stroke-width":"1"},on:{mouseenter:function(a){e.hoveredIndex=i},mouseleave:function(a){e.hoveredIndex=-1},click:function(a){return a.stopPropagation(),e.$emit("polygon-select",i)}}})}),r("text",[e._v("test")])],2):r("svg",{staticClass:"polygon-overlay"},[e.useMask&&e.points.length>2?[r("defs",[r("mask",{attrs:{id:e.maskId}},[r("rect",{attrs:{width:"100%",height:"100%",fill:"white"}}),r("polygon",{attrs:{points:e.polygonPoints,fill:"black"}})]),r("mask",{attrs:{id:e.strokeMaskId}},[r("rect",{attrs:{width:"100%",height:"100%",fill:"white"}}),r("polygon",{attrs:{points:e.polygonPoints,fill:"black"}})])]),r("rect",{attrs:{width:"100%",height:"100%",fill:"rgba(0,0,0,0.7)",mask:`url(#${e.maskId})`}}),r("polygon",{staticStyle:{filter:"blur(4px)"},attrs:{points:e.polygonPoints,fill:"none",stroke:"#029eff","stroke-width":"0.8",mask:`url(#${e.strokeMaskId})`}},[e.animate?r("animate",{attrs:{attributeName:"opacity",values:"0.67;0.8;0.67",dur:"1.5s",repeatCount:"indefinite"}}):e._e(),e.animate?r("animate",{attrs:{attributeName:"stroke-width",values:"1;6;1",dur:"1.5s",repeatCount:"indefinite"}}):e._e()])]:e._e(),e.points.length>2?r("polygon",{staticStyle:{animation:"border-dance 1s infinite linear"},attrs:{points:e.polygonPoints,fill:e.useMask?"transparent":e.fillColor,stroke:e.lineColor,"stroke-width":e.scaledStrokeWidth,"stroke-dasharray":e.scaledStrokeDasharray}}):e._e(),e.points.length===2?r("line",{attrs:{x1:e.points[0].x,y1:e.points[0].y,x2:e.points[1].x,y2:e.points[1].y,stroke:e.lineColor,"stroke-width":e.scaledStrokeWidth,"stroke-dasharray":e.strokeDasharray}}):e._e(),e.isReadOnly?e._e():e._l(e.points,function(n,i){return r("circle",{key:i,staticClass:"polygon-point",attrs:{cx:n.x,cy:n.y,r:e.scaledNodeSize,fill:e.lineColor,stroke:"white","stroke-width":e.scaledStrokeWidth},on:{click:function(a){return a.shiftKey?e.removePoint(i):null},mousedown:function(a){return a.stopPropagation(),e.startDraggingPoint(a,i)}}})})],2),e.polygonPosition?r("div",{staticClass:"polygon-controls",style:{left:e.controlsStyles.left,top:e.controlsStyles.top}},[e._t("polygon-controls",function(){return[e.points.length>0&&e.showClearButton?r("button",{staticClass:"e-absolute e-top-1.5 e-right-1.5 e-bg-red-500 e-text-white e-border-0 e-px-2 e-py-1 e-rounded-[15%] e-cursor-pointer e-font-semibold",on:{click:function(n){e.points=[]}}},[e._v(" Clear ")]):e._e()]})],2):e._e()])},Uv=[],Gv=z(Yv,jv,Uv,!1,null,null,null,null);const Nl=Gv.exports,Ni={EAvatar:Zr,EBadge:Ys,EIcon:Xe,ESpinner:ss,ERow:Rn,ECol:Bn,EVideoPlayer:mo,ETimeline:yl,EVideoEmbed:_l,EHeatmapBar:Pi,EHoursHeatmap:bl,EReadMore:Cl,ETruncatedDiv:wl,ECompareSeparator:xl,EDragResize:Oi,EImagesComparator:Sl,EToggleSwitch:qn,EExpandableMenu:Ii,EZoomable:Gn,EGlobalSearch:Pl,ECalendarHeatmap:kl,EImagePlayer:Ol,EZoomableImg:Bi,EZoomSlider:Ri,EActionButton:sr,EActionButtonGroup:Os,ETooltip:Nr,ELayout:Il,EViewerOverlay:zl,EChat:Tv,EContextProvider:Gm,ECopyToClipboardBtn:Ai,EPopover:Ps,EVoiceRecorderToText:Hi,ERadioGroup:Al,ESelect:zi,ETabs:Hl,ECard:Wv,ESchedulePicker:Tl,ESchedule:El,EStepper:Dl,EHeatmapOverlay:Ll,EPolygonOverlay:Nl},qv={install(t){Object.keys(Ni).forEach(e=>{t.component(e,Ni[e])}),Object.keys($l).forEach(e=>{t.mixin(e,$l[e])}),go.forEach(({name:e,definition:r})=>{t.directive(e,r)})}};H.AvatarSizes=mc,H.BORDER_RADIUS_MAP=Kt,H.BadgeColors=vc,H.BadgeSizes=pc,H.BaseColor=ce,H.ChatMessageRole=it,H.ChatMessageType=qr,H.ClickOutsideDirective=ns,H.Colors=Ja,H.CompareMode=Ut,H.DEFAULT_VIDEO_PLAYER_SETTINGS_ITEMS=kr,H.Days=Ki,H.DirectivesMap=go,H.EActionButton=sr,H.EActionButtonGroup=Os,H.EAvatar=Zr,H.EBadge=Ys,H.ECalendarHeatmap=kl,H.ECol=Bn,H.ECompareSeparator=xl,H.ECopyToClipboardBtn=Ai,H.EDragResize=Oi,H.EExpandableMenu=Ii,H.EGlobalSearch=Pl,H.EHeatmapBar=Pi,H.EHeatmapOverlay=Ll,H.EHoursHeatmap=bl,H.EIcon=Xe,H.EImagePlayer=Ol,H.EImagesComparator=Sl,H.ELayout=Il,H.EPolygonOverlay=Nl,H.EPopover=Ps,H.ERadioGroup=Al,H.EReadMore=Cl,H.ERow=Rn,H.ESchedule=El,H.ESchedulePicker=Tl,H.ESelect=zi,H.ESpinner=ss,H.EStepper=Dl,H.ETabs=Hl,H.ETimeline=yl,H.EToggleSwitch=qn,H.ETooltip=Nr,H.ETruncatedDiv=wl,H.EVENTS=bc,H.EVideoEmbed=_l,H.EVideoPlayer=mo,H.EVideoPlayerSettingsItems=Ge,H.EViewerOverlay=zl,H.EVoiceRecorderToText=Hi,H.EZoomSlider=Ri,H.EZoomable=Gn,H.EZoomableImg=Bi,H.FeedbackType=Ws,H.HeatmapColorScheme=at,H.IconSizes=eo,H.ImageQuality=Ji,H.Position=Je,H.ResizeObserverDirective=lt,H.SETTINGS_STORAGE_KEY=rs,H.ScheduleType=Cr,H.Size=U,H.TextSizes=Ka,H.TimelineAxis=jt,H.TimelineChartType=ft,H.TimelineIntervalChangeTrigger=wr,H.ToggleSwitchSizes=gc,H.TooltipColors=yc,H.TooltipPositions=_c,H.VIDEO_PLAYER_EVENTS=zn,H.VIDEO_PLAYER_SETTINGS_ITEM_LABELS=ro,H.VIDEO_PLAYER_SHORTCUTS=to,H.components=Ni,H.debounce=V3,H.default=qv,H.eventListeners=st,H.exitFullScreen=Wn,H.formField=is,H.formatDuration=Tr,H.fullConfig=In,H.generateUniqueId=e6,H.generateUuid=Nn,H.getGradientColors=Yn,H.getImageData=K3,H.getRandomChars=Q3,H.hashCode=co,H.hexToRgba=ao,H.hoursMinutesStrToMinutes=fo,H.inactivityListener=Ml,H.isFullScreen=An,H.isRgba=lo,H.isValidDate=J3,H.makeFullScreen=Hn,H.minutesToHoursMinutesStr=jn,H.rgbToRgba=oo,H.schedules=uo,H.selectFormField=Mr,H.subtractOneHourFromEndIntervals=t6,H.timeouts=gt,H.toNumericSchedule=Un,H.toRgba=cr,H.toggleOpen=as,H.twentyFourHours=ho,Object.defineProperties(H,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
260
+ `)}},methods:{getMessageClasses(t){const e=t===this.messages.length-1;return{"e-mb-11":e&&this.withActions,"!e-mb-0":!e}},onFeedback(t){this.$emit("feedback",t)}}}),rb="";var Zg=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-chat-message-group e-mb-3"},[r("div",{staticClass:"e-chat-message-group__wrapper e-flex e-items-start e-justify-start e-gap-3"},[e.showAvatar?r("div",{staticClass:"e-chat-message-group__avatar"},[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})],2):e._e(),r("div",{staticClass:"e-chat-message-group__messages e-flex e-flex-col e-gap-2 e-w-full"},e._l(e.messages,function(s,n){return r("EChatMessage",{key:`${s.id}-${n}`,class:e.getMessageClasses(n),attrs:{dark:e.dark,role:s.role,"is-loading":s.isLoading,"data-message-id":s.id,"show-feedback-buttons":!1,"show-regenerate-button":!1,"exposed-regexes":e.exposedRegexes,"show-copy-button":!1,"e-markdown-props":e.eMarkdownProps,message:s.content,type:s.type,"show-avatar":!1,"with-actions":!1},on:{"animation-end":function(i){return e.$emit("animation-end",i)},"animation-start":function(i){return e.$emit("animation-start",i)}},scopedSlots:e._u([e._l(e.markdownScopedSlots,function(i,a){return{key:a,fn:function(c){return[e._t(a,null,null,c)]}}}),{key:"message.content",fn:function(){return[e._t("message.content",null,{message:s})]},proxy:!0},{key:"message.append",fn:function(){return[e._t("message.append",null,{message:s})]},proxy:!0},{key:"extraContent",fn:function(){return[e._t("message.extraContent",null,{message:s})]},proxy:!0}],null,!0)})}),1)]),r("EFadeTransition",[e.withActions?r("EChatMessageActions",{staticClass:"e-left-11",attrs:{"message-id":e.lastMessageId,dark:e.dark,"show-copy-button":e.showCopyButton,"show-feedback-buttons":e.showFeedbackButtons,"show-regenerate-button":e.showRegenerateButton,message:e.groupCopyText},on:{feedback:e.onFeedback,regenerate:function(s){return e.$emit("message-regenerate",e.lastMessageId)}}}):e._e()],1)],1)},Xg=[],Vg=z(qg,Zg,Xg,!1,null,"64fdd3a1",null,null);const Qg=Vg.exports,Kg=E.extend({name:"EChatFooter",props:{dark:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},showDisclaimer:{type:Boolean,default:!0},disclaimerText:{type:String,default:"AI can make mistakes. Please double-check responses."}},computed:{backgroundClasses(){return this.inline?{}:{"e-bg-gray-700":this.dark,"e-bg-gray-50":!this.dark}},footerClasses(){return{...this.backgroundClasses}},disclaimerClasses(){return{"e-text-gray-400":this.dark,"e-text-gray-500":!this.dark}}}}),sb="";var Jg=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"),e.showDisclaimer?r("div",{staticClass:"e-chat-footer__disclaimer e-text-center e-mt-1 e-font-medium e-text-sm e-leading-6",class:e.disclaimerClasses},[e._v(" "+e._s(e.disclaimerText)+" ")]):e._e()],2)},ev=[],tv=z(Kg,Jg,ev,!1,null,"55975088",null,null);const rv=tv.exports,sv=E.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)}}}),nb="";var nv=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)])},iv=[],av=z(sv,nv,iv,!1,null,null,null,null);const ov=av.exports,lv=E.extend({name:"EVoiceInput",components:{EVoiceInputVolumeIndicator:ov,EIcon:Xe,ETooltip:Nr},mixins:[st],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-25":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,e=t.SpeechRecognition||t.webkitSpeechRecognition;if(!e){console.error("Speech recognition is not supported in this browser.");return}this.recognition=new e,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;const r=window,s=r.AudioContext||r.webkitAudioContext;if(this.audioContext=s?new s:null,!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.$emit("voice-toggle"),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&&this.recognition.start(),this.isListening=!0}catch(t){console.error("Error accessing microphone:",t)}},stopListening(){this.isListening=!1,this.recognition&&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 cv=function(){var e=this,r=e._self._c;return r("ETooltip",{attrs:{text:"Use Ctrl + Space to speak",dark:e.dark,disabled:e.disabled}},[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},attrs:{disabled:e.disabled},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:"fa-stop",color:"e-text-red-600"}})],1):r("EIcon",{attrs:{icon:"far fa-microphone",size:"base"}})],1)])},uv=[],dv=z(lv,cv,uv,!1,null,null,null,null);const Ni=dv.exports,hv=E.extend({name:"EChatInput",components:{EIcon:Xe,ETooltip:Nr,EVoiceInput:Ni},model:{prop:"value",event:"prompt-changed"},props:{dark:{type:Boolean,default:!1},placeholder:{type:String,default:"How can I help you?"},disabled:{type:Boolean,default:!1},silenceTimeout:{type:Number,default:1500},isLoading:{type:Boolean,default:!1},isStreaming:{type:Boolean,default:!1}},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&&!this.isSubmitDisabled&&!this.disabled,"e-bg-white":!this.dark&&!this.isSubmitDisabled&&!this.disabled,"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"e-opacity-25":this.isSubmitDisabled||this.disabled}},stopButtonClasses(){return{"e-bg-red-600":this.dark,"e-bg-red-500":!this.dark,"e-text-white":!0,"hover:e-bg-red-700":this.dark,"hover:e-bg-red-600":!this.dark}},isSubmitDisabled(){return this.disabled||this.isLoading||this.isStreaming||this.content.length<3},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)},stopStreaming(){this.$emit("stop")},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(t.key==="Shift"||t.code==="ShiftLeft"){this.isShiftKeyPressed=!1;return}t.key==="Enter"&&!this.isShiftKeyPressed&&!this.isSubmitDisabled&&(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=""}}}),ib="";var fv=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&&!e.isLoading&&!e.isStreaming},on:{keydown:function(s){return s.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-opacity-50":e.disabled}]},[e._t("input-action-button",function(){return[!e.isLoading&&!e.isStreaming?r("EVoiceInput",{attrs:{dark:e.dark,disabled:e.disabled,"silence-timeout":e.silenceTimeout},on:{"on-voice-message-end":e.handleVoiceMessage,"voice-toggle":function(s){return e.$emit("voice-toggle")}},model:{value:e.transcript,callback:function(s){e.transcript=s},expression:"transcript"}}):e._e(),e.isLoading||e.isStreaming?r("ETooltip",{attrs:{text:e.isLoading?"Cancel request":"Stop generating",dark:e.dark}},[r("button",{staticClass:"e-chat-input__stop-btn 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-bg-transparent",class:e.stopButtonClasses,attrs:{type:"button"},on:{click:function(s){return s.preventDefault(),e.stopStreaming.apply(null,arguments)}}},[r("EIcon",{attrs:{icon:"fa-stop",size:"base"}})],1)]):r("ETooltip",{attrs:{text:"Submit",dark:e.dark,disabled:e.isSubmitDisabled}},[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 disabled:e-opacity-25 e-h-8 e-w-8 e-border-none focus:e-outline-none e-bg-transparent",class:e.buttonClasses,attrs:{type:"button",disabled:e.isSubmitDisabled},on:{click:function(s){return s.preventDefault(),e.submitMessage.apply(null,arguments)}}},[r("EIcon",{attrs:{icon:"fa-arrow-up",size:"base"}})],1)])]},{buttonClasses:e.buttonClasses})],2)])},pv=[],mv=z(hv,fv,pv,!1,null,null,null,null);const gv=mv.exports,vv=E.extend({name:"EChatSuggestionCard",components:{EIcon:Xe},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 yv=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:"base",color:e.color}}):e._e()],1),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)+" ")])])},_v=[],bv=z(vv,yv,_v,!1,null,null,null,null);const Cv=bv.exports,wv=E.extend({components:{EFadeTransition:Wr,EChatWrapper:Qm,EChatHeader:ag,EChatBody:dg,EChatMessage:Fl,EChatMessageGroup:Qg,EChatFooter:rv,EChatInput:gv,EChatSuggestionCard:Cv},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},isStreaming:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},headerText:{type:String,default:"Ask AI"},inputPlaceholder:{type:String,default:"How can I help you?"},loadingMessage:{type:String,default:""},suggestions:{type:Array,default:()=>[]},exposedRegexes:{type:Array,default:()=>[]},eMarkdownProps:{type:Object,default:()=>({useTableProcessor:!1})},silenceTimeout:{type:Number,default:1500},messageCopyTextExtractor:{type:Function,default:null}},data(){return{prompt:"",containerHeight:0,headerHeight:0,bodyHeight:0,footerHeight:0}},computed:{ChatMessageRole(){return it},userInitials(){var t,e,r;return((r=(e=(t=this.user.trim())==null?void 0:t.split(/\s+/))==null?void 0:e.map(s=>{var n;return((n=s==null?void 0:s.charAt(0))==null?void 0:n.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},groupedMessages(){const t=[];let e=null;return this.messages.forEach(r=>{const s=r.role===it.Copilot||r.role===it.System,n=r.agentId;s?e&&e.isGroup&&e.agentId===n?e.messages.push(r):(e={isGroup:!0,messages:[r],agentId:n},t.push(e)):(e=null,t.push({isGroup:!1,messages:[r]}))}),t}},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===it.User},hasActions(t){return this.isLoading||this.isStreaming||this.isDisabled?!1:t.role===it.Copilot&&t.withActions!==!1},hasGroupActions(t){return this.isLoading||this.isStreaming||this.isDisabled?!1:t.messages[t.messages.length-1].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.groupedMessages.length-1&&this.hasActions(t)}},getGroupClasses(t,e){return{"e-mb-11":e===this.groupedMessages.length-1&&this.hasGroupActions(t)}},updateChatBodyHeight(){this.$nextTick(()=>{var s,n,i;const t=(s=this.$refs.chatContainer)==null?void 0:s.$el,e=(n=this.$refs.chatHeader)==null?void 0:n.$el,r=(i=this.$refs.chatFooter)==null?void 0:i.$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===it.User?this.showUserAvatar:t.role===it.Copilot?this.showCopilotAvatar:!0},onMessageFeedback(t,e){this.$emit("message-feedback",{...t,messageId:e})}}}),ab="";var xv=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(s){return r("EChatSuggestionCard",{key:s.text,attrs:{text:s.text,icon:s.icon,color:s.color,dark:e.dark,width:s.width,display:s.display||"row"},on:{click:function(n){return e.$emit("suggestion-clicked",s)}}})}),1)]):e._e()]),e.showSuggestions?e._e():r("div",[e._l(e.groupedMessages,function(s,n){return[s.isGroup?r("EChatMessageGroup",{key:`group-${n}-${s.messages[0].id}`,class:e.getGroupClasses(s,n),attrs:{messages:s.messages,dark:e.dark,role:e.ChatMessageRole.Copilot,"show-avatar":e.showCopilotAvatar,"show-feedback-buttons":!e.readonly,"show-regenerate-button":!e.readonly,"show-copy-button":!0,"exposed-regexes":e.exposedRegexes,"e-markdown-props":e.eMarkdownProps,"copy-text-extractor":e.messageCopyTextExtractor,"with-actions":e.hasGroupActions(s)&&n>0},on:{feedback:function(i){return e.onMessageFeedback(i,s.messages[s.messages.length-1].id)},"message-regenerate":function(i){return e.$emit("message-regenerate",s.messages[s.messages.length-1].id)},"animation-end":function(i){return e.$emit("animation-end",i)},"animation-start":function(i){return e.$emit("animation-start",i)}},scopedSlots:e._u([e._l(e.markdownScopedSlots,function(i,a){return{key:a,fn:function(c){return[e._t(a,null,null,c)]}}}),{key:"message.content",fn:function({message:i}){return[e._t("message.content",null,{message:i})]}},{key:"message.append",fn:function({message:i}){return[e._t("message.append",null,{message:i})]}},{key:"message.extraContent",fn:function({message:i}){return[e._t("message.extraContent",null,{message:i})]}}],null,!0)}):r("EChatMessage",{key:`message-${s.messages[0].id}-${n}`,class:e.getMessageClasses(s.messages[0],n),attrs:{dark:e.dark,role:s.messages[0].role,"is-loading":s.messages[0].isLoading,"data-message-id":s.messages[0].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(s.messages[0]),type:s.messages[0].type,initials:e.getMessageInitials(s.messages[0]),"show-avatar":e.isAvatarVisible(s.messages[0]),"with-actions":e.hasActions(s.messages[0])&&n>0},on:{feedback:function(i){return e.onMessageFeedback(i,s.messages[0].id)},"message-regenerate":function(i){return e.$emit("message-regenerate",s.messages[0].id)},"animation-end":function(i){return e.$emit("animation-end",i)}},scopedSlots:e._u([e._l(e.markdownScopedSlots,function(i,a){return{key:a,fn:function(c){return[e._t(a,null,null,c)]}}}),{key:"message.content",fn:function(){return[e._t("message.content",null,{message:s.messages[0]})]},proxy:!0},{key:"message.append",fn:function(){return[e._t("message.append",null,{message:s.messages[0]})]},proxy:!0},{key:"extraContent",fn:function(){return[e._t("message.extraContent",null,{message:s.messages[0]})]},proxy:!0}],null,!0)})]})],2),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,"is-loading":e.isLoading,"is-streaming":e.isStreaming},on:{"prompt-changed":function(s){return e.$emit("prompt-changed",s)},submit:e.sendMessage,stop:function(s){return e.$emit("stop")}},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(s){e.prompt=s},expression:"prompt"}})],1)],2)])},Sv=[],kv=z(wv,xv,Sv,!1,null,"32bc0a6d",null,null);const Tv=kv.exports,Mv=E.extend({name:"ELazy",props:{height:{type:[String,Number],default:"auto"},rootMargin:{type:String,default:"200px"},threshold:{type:Number,default:.01},unloadOnExit:{type:Boolean,default:!1},minLoadTime:{type:Number,default:0},root:{type:Object,default:null}},data(){return{isVisible:!1,observer:null,loadTimer:null}},computed:{containerStyle(){return{}},placeholderStyle(){const t=typeof this.height=="number"?`${this.height}px`:this.height;return{height:t,minHeight:t!=="auto"?t:"50px"}}},mounted(){this.setupIntersectionObserver()},beforeDestroy(){this.cleanup()},methods:{setupIntersectionObserver(){const t={root:this.root,rootMargin:this.rootMargin,threshold:this.threshold};this.observer=new IntersectionObserver(r=>{r.forEach(s=>{s.isIntersecting?this.handleIntersecting():this.unloadOnExit&&this.isVisible&&this.handleExiting()})},t);const e=this.$refs.container;e&&this.observer.observe(e)},handleIntersecting(){this.minLoadTime>0?this.loadTimer=window.setTimeout(()=>{this.load()},this.minLoadTime):this.load()},handleExiting(){this.loadTimer&&(clearTimeout(this.loadTimer),this.loadTimer=null),this.isVisible=!1,this.$emit("unload")},load(){this.isVisible||(this.isVisible=!0,this.$emit("load"))},cleanup(){this.observer&&(this.observer.disconnect(),this.observer=null),this.loadTimer&&(clearTimeout(this.loadTimer),this.loadTimer=null)}}}),ob="";var $v=function(){var e=this,r=e._self._c;return r("div",{ref:"container",style:e.containerStyle},[e.isVisible?e._t("default"):e._t("placeholder",function(){return[r("div",{staticClass:"e-lazy-load-placeholder",style:e.placeholderStyle})]})],2)},Ev=[],Dv=z(Mv,$v,Ev,!1,null,"6dabb8f4",null,null);const Lv=Dv.exports,Pv=E.extend({name:"ERadioGroup",components:{EIcon:Xe,ELazy:Lv},mixins:[Mr],props:{dark:{type:Boolean,default:!1},withDescription:{type:Boolean,default:!0},withIcon:{type:Boolean,default:!1},itemsWrapperClasses:{type:[String,Object,Array],default:""},lazyRoot:{type:Object,default:null}},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){return this.withDescription&&(t==null?void 0:t.description)&&t.description.length>0||this.isSelected(t.value)},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"]},svgIconColor(t){return this.isSelected(t.value)?"#00315f":this.dark?"#e5e7eb":"#6b7280"}}});var Ov=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-radio-group__items e-space-y-2",class:e.itemsWrapperClasses},e._l(e.options,function(s,n){return r("ELazy",{key:n,attrs:{height:66,"root-margin":"300px",root:e.lazyRoot},scopedSlots:e._u([{key:"placeholder",fn:function(){return[r("div",{class:["e-h-[66px] e-rounded-lg e-animate-pulse",e.dark?"e-bg-gray-700":"e-bg-gray-200"]})]},proxy:!0}],null,!0)},[r("div",{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(s),attrs:{"data-test-id":`radio-option-${s.value}`},on:{click:function(i){return e.onItemClick(s.value)}}},[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"},[e.withIcon&&s.icon?r("div",{staticClass:"e-mr-4"},[e._t("icon",function(){return[r("EIcon",{class:e.isSelected(s.value)?e.selectedItemClasses:e.radioItemClasses,attrs:{icon:s.icon,color:e.svgIconColor(s),size:s.iconSize||"base"}})]},{option:s,attrs:e.isSelected(s.value)?e.selectedItemClasses:e.radioItemClasses,isSelected:e.isSelected(s.value)})],2):e._e(),r("div",{staticClass:"e-radio-group__option e-flex e-items-center e-gap-2"},[e._t("prefix",null,{option:s}),r("div",{staticClass:"e-text-sm"},[e._t("label",function(){return[r("h2",{staticClass:"e-radio-group__option-title e-font-semibold e-text-sm e-mb-1 e-mt-1",attrs:{"data-test-id":"radio-option-description-label"}},[e._v(" "+e._s(s.label)+" ")])]},{option:s}),e._t("description",function(){return[e.showDescription(s)?r("span",{staticClass:"e-radio-group__option-description e-mt-2 e-text-[0.75rem]"},[e._v(" "+e._s(s.description)+" ")]):e._e()]},{option:s})],2)],2)]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isSelected(s.value),expression:"isSelected(option.value)"}],staticClass:"e-shrink-0 e-text-white",attrs:{"data-test-id":"radio-option-checkmark"}},[e._t("highlight-icon",function(){return[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"}})])]},{option:s})],2)])])])}),1)])])},Iv=[],zv=z(Pv,Ov,Iv,!1,null,null,null,null);const Al=zv.exports,Rv=E.extend({name:"ETabs",mixins:[is],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,s,n;const e=(r=t.componentOptions)==null?void 0:r.propsData;return e!=null&&e.title?e.title:e!=null&&e.name?e.name:(n=(s=t.data)==null?void 0:s.attrs)!=null&&n.name?t.data.attrs.name:`Tab ${this.currentValue+1}`},renderTab(t,e,r){var i,a,c,o,l,d,h,m;const s=((a=(i=e.data)==null?void 0:i.attrs)==null?void 0:a.href)||((o=(c=e.data)==null?void 0:c.attrs)==null?void 0:o.to),n=this.getTabBarItemClasses(r,s);if(s)try{return this.isExternalLink(s)?t("a",{key:r,class:n,attrs:{href:s,target:"_blank",rel:"noopener noreferrer",...(l=e.data)==null?void 0:l.attrs}},[this.getChildTitle(e)]):t("router-link",{key:r,class:n,attrs:{to:s,...(d=e.data)==null?void 0:d.attrs}},[this.getChildTitle(e)])}catch{return t("a",{key:r,class:n,attrs:{href:s,...(h=e.data)==null?void 0:h.attrs}},[this.getChildTitle(e)])}return t("div",{key:r,class:n,attrs:(m=e.data)==null?void 0:m.attrs,on:{click:()=>this.onTabSelected(r)}},[this.getChildTitle(e)])},renderContent(t,e,r){var s,n,i,a;return(n=(s=e.data)==null?void 0:s.attrs)!=null&&n.href||(a=(i=e.data)==null?void 0:i.attrs)!=null&&a.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(s=>s.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((s,n)=>this.renderTab(t,s,n))),t("div",{class:"tab-content e-w-full"},e.map((s,n)=>this.renderContent(t,s,n)).filter(Boolean))])}}),lb="";var Bv=z(Rv,null,null,!1,null,null,null,null);const Hl=Bv.exports,Fv=E.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")}}),db="";var Av=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)])])},Hv=[],Nv=z(Fv,Av,Hv,!1,null,null,null,null);const Wv=Nv.exports,Yv=E.extend({name:"EPolygonOverlay",directives:{ResizeObserver:lt},mixins:[st,gt],props:{polygons:{type:Array,default:()=>[]},animate:{type:Boolean,default:!0},isReadOnly:{type:Boolean,default:!1},useMask:{type:Boolean,default:!1},straightLine:{type:Boolean,default:!1},value:{type:Array,default:()=>[]},isRectangle:{type:Boolean,default:!0},showClearButton:{type:Boolean,default:!1},nodeSize:{type:Number,default:6},lineColor:{type:String,default:"#029eff"},fillColor:{type:String,default:"#029eff22"},hoverFillColor:{type:String,default:"rgba(66, 192,31, 0.5 )"},hoverLineColor:{type:String,default:"rgb(66, 192,31 )"},scale:{type:Number,default:1},imageWidth:{type:Number,default:0},imageHeight:{type:Number,default:0}},data(){return{points:[],draggingPointIndex:-1,isDraggingPoint:!1,isMouseDown:!1,startX:0,startY:0,currentX:0,currentY:0,hoveredIndex:null,strokeDasharray:"5,5",width:null,height:null,containerRect:{},mouseDownX:null,mouseDownY:null,dragThreshold:5,maskId:`polygon-mask-${Nn()}`,strokeMaskId:`stroke-mask-${Nn()}`}},computed:{scaledNodeSize(){return Math.max(4,this.nodeSize/this.scale)},scaledStrokeWidth(){return Math.max(1,2/this.scale)},scaledStrokeDasharray(){if(!this.strokeDasharray||!this.scale)return this.strokeDasharray;const t=2,e=12;return this.strokeDasharray.split(",").map(r=>{const s=Number(r)/this.scale;return Math.max(t,Math.min(e,s))}).join(",")},scaledThinStrokeWidth(){return 1/this.scale},controlsStyles(){const t=this.polygonPosition;if(!t)return{};const e=this.containerRect;return e?{left:`${t.left-e.left}px`,top:`${t.top-e.top-48}px`}:{}},polygonPosition(){if(!this.points||this.points.length===0||!this.width||!this.height)return null;const t=this.containerRect;if(!t)return null;const e=Math.min(...this.points.map(s=>s.x)),r=Math.min(...this.points.map(s=>s.y));return{left:t.left+e,top:t.top+Math.max(r-10,0)}},polygonPoints(){return this.points.map(t=>`${t.x},${t.y}`).join(" ")},formattedPolygonsPoints(){return!Array.isArray(this.polygons)||!this.imageWidth||!this.imageHeight?[]:this.polygons.map(t=>t.map(({x:e,y:r})=>`${e*this.imageWidth},${r*this.imageHeight}`).join(" "))},deNormalizedPoints(){return this.normalizedPoints.map(t=>({x:t.x*this.width,y:t.y*this.height}))},normalizedPoints(){return!this.width||!this.height?[]:this.value&&this.value.length&&this.points.length===0?this.value:this.points.map(t=>({x:t.x/this.width,y:t.y/this.height}))}},watch:{points:{handler(){this.saveSelection()},deep:!0},value(t){this.points=t}},mounted(){this.isReadOnly||(this.$addEventListener("mousedown",this.handleMouseDown),this.$addEventListener("mousemove",this.handleMouseMove),this.$addEventListener("mouseup",this.handleMouseUp))},methods:{onResize(){const e=this.$refs.container.getBoundingClientRect();this.containerRect=e,this.width=e.width,this.height=e.height,this.points=this.deNormalizedPoints},getRelativePosition(t){const e=this.$refs.container,r=e.getBoundingClientRect();let s=Math.max(0,Math.min(r.width,t.clientX-r.left)),n=Math.max(0,Math.min(r.height,t.clientY-r.top));return{x:s/this.scale,y:n/this.scale,container:e}},handleResize(){this.$refs.container},handleMouseDown(t){const e=this.$refs.container,r=e.getBoundingClientRect();e.contains(t.target)&&(this.mouseDownX=t.clientX,this.mouseDownY=t.clientY,this.isRectangle&&(this.points=[],this.startX=(t.clientX-r.left)/this.scale,this.startY=(t.clientY-r.top)/this.scale,this.currentX=this.startX,this.currentY=this.startY,this.isMouseDown=!0))},handleMouseMove(t){const{x:e,y:r}=this.getRelativePosition(t);if(this.isRectangle&&this.isMouseDown){this.currentX=e,this.currentY=r;return}this.isDraggingPoint&&this.draggingPointIndex!==null&&this.draggingPointIndex>=0&&this.draggingPointIndex<this.points.length&&this.$set(this.points,this.draggingPointIndex,{x:e,y:r})},handleMouseUp(t){const{x:e,y:r,container:s}=this.getRelativePosition(t);if(this.isRectangle&&this.isMouseDown){this.isMouseDown=!1;const a=Math.min(this.startY,this.currentY),c=Math.min(this.startX,this.currentX),o=Math.max(this.startX,this.currentX),l=Math.max(this.startY,this.currentY);if(c===o||a===l)return;this.points=[{x:c,y:a},{x:o,y:a},{x:o,y:l},{x:c,y:l}];return}if(this.isDraggingPoint){this.isDraggingPoint=!1,this.draggingPointIndex=-1;return}if(!s.contains(t.target))return;const n=Math.abs(t.clientX-this.mouseDownX),i=Math.abs(t.clientY-this.mouseDownY);n>this.dragThreshold||i>this.dragThreshold||this.insertPoint({x:e,y:r})},removePoint(t){this.points.splice(t,1)},startDraggingPoint(t,e){this.isRectangle||(this.draggingPointIndex=e,this.isDraggingPoint=!0)},insertPoint(t){if(this.isRectangle)return;if(this.points.length<3){this.points.push(t);return}const e=[];for(let s=0;s<this.points.length;s++){const n=this.points[s],i=this.points[(s+1)%this.points.length],a=this.distanceToLineSegment(n,i,t);e.push({index:s,distance:a})}e.sort((s,n)=>s.distance-n.distance);const r=e[0].index;this.points.splice(r+1,0,t)},distanceToLineSegment(t,e,r){const s=e.x-t.x,n=e.y-t.y,i=s*s+n*n,a=Math.max(0,Math.min(1,((r.x-t.x)*s+(r.y-t.y)*n)/i)),c=t.x+a*s,o=t.y+a*n;return Math.hypot(r.x-c,r.y-o)},saveSelection(){this.$emit("change",{normalizedPoints:this.normalizedPoints,points:this.points})}}}),hb="";var jv=function(){var s;var e=this,r=e._self._c;return r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],ref:"container",staticClass:"area-selector"},[e.isRectangle?r("svg",{staticClass:"polygon-overlay"},[e.isMouseDown?r("rect",{attrs:{x:Math.min(e.startX,e.currentX),y:Math.min(e.startY,e.currentY),width:Math.abs(e.currentX-e.startX),height:Math.abs(e.currentY-e.startY),fill:e.fillColor,stroke:e.lineColor,"stroke-width":"1.5","stroke-dasharray":e.straightLine?"":e.strokeDasharray}}):e._e(),e.points.length===4?r("polygon",{attrs:{points:e.polygonPoints,fill:e.fillColor,stroke:e.lineColor,"stroke-width":"1.5","stroke-dasharray":e.straightLine?"":e.strokeDasharray}}):e._e()]):(s=e.polygons)!=null&&s.length?r("svg",{staticClass:"polygon-overlay"},[e._l(e.formattedPolygonsPoints,function(n,i){return r("polygon",{key:i,attrs:{points:n,fill:i===e.hoveredIndex?e.hoverFillColor:e.fillColor,stroke:i===e.hoveredIndex?e.hoverLineColor:e.lineColor,"stroke-width":"1"},on:{mouseenter:function(a){e.hoveredIndex=i},mouseleave:function(a){e.hoveredIndex=-1},click:function(a){return a.stopPropagation(),e.$emit("polygon-select",i)}}})}),r("text",[e._v("test")])],2):r("svg",{staticClass:"polygon-overlay"},[e.useMask&&e.points.length>2?[r("defs",[r("mask",{attrs:{id:e.maskId}},[r("rect",{attrs:{width:"100%",height:"100%",fill:"white"}}),r("polygon",{attrs:{points:e.polygonPoints,fill:"black"}})]),r("mask",{attrs:{id:e.strokeMaskId}},[r("rect",{attrs:{width:"100%",height:"100%",fill:"white"}}),r("polygon",{attrs:{points:e.polygonPoints,fill:"black"}})])]),r("rect",{attrs:{width:"100%",height:"100%",fill:"rgba(0,0,0,0.7)",mask:`url(#${e.maskId})`}}),r("polygon",{staticStyle:{filter:"blur(4px)"},attrs:{points:e.polygonPoints,fill:"none",stroke:"#029eff","stroke-width":"0.8",mask:`url(#${e.strokeMaskId})`}},[e.animate?r("animate",{attrs:{attributeName:"opacity",values:"0.67;0.8;0.67",dur:"1.5s",repeatCount:"indefinite"}}):e._e(),e.animate?r("animate",{attrs:{attributeName:"stroke-width",values:"1;6;1",dur:"1.5s",repeatCount:"indefinite"}}):e._e()])]:e._e(),e.points.length>2?r("polygon",{staticStyle:{animation:"border-dance 1s infinite linear"},attrs:{points:e.polygonPoints,fill:e.useMask?"transparent":e.fillColor,stroke:e.lineColor,"stroke-width":e.scaledStrokeWidth,"stroke-dasharray":e.scaledStrokeDasharray}}):e._e(),e.points.length===2?r("line",{attrs:{x1:e.points[0].x,y1:e.points[0].y,x2:e.points[1].x,y2:e.points[1].y,stroke:e.lineColor,"stroke-width":e.scaledStrokeWidth,"stroke-dasharray":e.strokeDasharray}}):e._e(),e.isReadOnly?e._e():e._l(e.points,function(n,i){return r("circle",{key:i,staticClass:"polygon-point",attrs:{cx:n.x,cy:n.y,r:e.scaledNodeSize,fill:e.lineColor,stroke:"white","stroke-width":e.scaledStrokeWidth},on:{click:function(a){return a.shiftKey?e.removePoint(i):null},mousedown:function(a){return a.stopPropagation(),e.startDraggingPoint(a,i)}}})})],2),e.polygonPosition?r("div",{staticClass:"polygon-controls",style:{left:e.controlsStyles.left,top:e.controlsStyles.top}},[e._t("polygon-controls",function(){return[e.points.length>0&&e.showClearButton?r("button",{staticClass:"e-absolute e-top-1.5 e-right-1.5 e-bg-red-500 e-text-white e-border-0 e-px-2 e-py-1 e-rounded-[15%] e-cursor-pointer e-font-semibold",on:{click:function(n){e.points=[]}}},[e._v(" Clear ")]):e._e()]})],2):e._e()])},Uv=[],Gv=z(Yv,jv,Uv,!1,null,null,null,null);const Nl=Gv.exports,Wi={EAvatar:Zr,EBadge:Ys,EIcon:Xe,ESpinner:ss,ERow:Rn,ECol:Bn,EVideoPlayer:go,ETimeline:yl,EVideoEmbed:_l,EHeatmapBar:Oi,EHoursHeatmap:bl,EReadMore:Cl,ETruncatedDiv:wl,ECompareSeparator:xl,EDragResize:Ii,EImagesComparator:Sl,EToggleSwitch:qn,EExpandableMenu:zi,EZoomable:Gn,EGlobalSearch:Pl,ECalendarHeatmap:kl,EImagePlayer:Ol,EZoomableImg:Fi,EZoomSlider:Bi,EActionButton:sr,EActionButtonGroup:Os,ETooltip:Nr,ELayout:Il,EViewerOverlay:zl,EChat:Tv,EContextProvider:Gm,ECopyToClipboardBtn:Hi,EPopover:Ps,EVoiceRecorderToText:Ni,ERadioGroup:Al,ESelect:Ri,ETabs:Hl,ECard:Wv,ESchedulePicker:Tl,ESchedule:El,EStepper:Dl,EHeatmapOverlay:Ll,EPolygonOverlay:Nl},qv={install(t){Object.keys(Wi).forEach(e=>{t.component(e,Wi[e])}),Object.keys($l).forEach(e=>{t.mixin(e,$l[e])}),vo.forEach(({name:e,definition:r})=>{t.directive(e,r)})}};H.AvatarSizes=mc,H.BORDER_RADIUS_MAP=Kt,H.BadgeColors=vc,H.BadgeSizes=pc,H.BaseColor=ce,H.ChatMessageRole=it,H.ChatMessageType=qr,H.ClickOutsideDirective=ns,H.Colors=eo,H.CompareMode=Ut,H.DEFAULT_VIDEO_PLAYER_SETTINGS_ITEMS=kr,H.Days=Ji,H.DirectivesMap=vo,H.EActionButton=sr,H.EActionButtonGroup=Os,H.EAvatar=Zr,H.EBadge=Ys,H.ECalendarHeatmap=kl,H.ECol=Bn,H.ECompareSeparator=xl,H.ECopyToClipboardBtn=Hi,H.EDragResize=Ii,H.EExpandableMenu=zi,H.EGlobalSearch=Pl,H.EHeatmapBar=Oi,H.EHeatmapOverlay=Ll,H.EHoursHeatmap=bl,H.EIcon=Xe,H.EImagePlayer=Ol,H.EImagesComparator=Sl,H.ELayout=Il,H.EPolygonOverlay=Nl,H.EPopover=Ps,H.ERadioGroup=Al,H.EReadMore=Cl,H.ERow=Rn,H.ESchedule=El,H.ESchedulePicker=Tl,H.ESelect=Ri,H.ESpinner=ss,H.EStepper=Dl,H.ETabs=Hl,H.ETimeline=yl,H.EToggleSwitch=qn,H.ETooltip=Nr,H.ETruncatedDiv=wl,H.EVENTS=bc,H.EVideoEmbed=_l,H.EVideoPlayer=go,H.EVideoPlayerSettingsItems=Ge,H.EViewerOverlay=zl,H.EVoiceRecorderToText=Ni,H.EZoomSlider=Bi,H.EZoomable=Gn,H.EZoomableImg=Fi,H.FeedbackType=Ws,H.HeatmapColorScheme=at,H.IconSizes=to,H.ImageQuality=ea,H.Position=Je,H.ResizeObserverDirective=lt,H.SETTINGS_STORAGE_KEY=rs,H.ScheduleType=Cr,H.Size=U,H.TextSizes=Ja,H.TimelineAxis=jt,H.TimelineChartType=ft,H.TimelineIntervalChangeTrigger=wr,H.ToggleSwitchSizes=gc,H.TooltipColors=yc,H.TooltipPositions=_c,H.VIDEO_PLAYER_EVENTS=zn,H.VIDEO_PLAYER_SETTINGS_ITEM_LABELS=so,H.VIDEO_PLAYER_SHORTCUTS=ro,H.components=Wi,H.debounce=V3,H.default=qv,H.eventListeners=st,H.exitFullScreen=Wn,H.formField=is,H.formatDuration=Tr,H.fullConfig=In,H.generateUniqueId=e6,H.generateUuid=Nn,H.getGradientColors=Yn,H.getImageData=K3,H.getRandomChars=Q3,H.hashCode=uo,H.hexToRgba=oo,H.hoursMinutesStrToMinutes=po,H.inactivityListener=Ml,H.isFullScreen=An,H.isRgba=co,H.isValidDate=J3,H.makeFullScreen=Hn,H.minutesToHoursMinutesStr=jn,H.rgbToRgba=lo,H.schedules=ho,H.selectFormField=Mr,H.subtractOneHourFromEndIntervals=t6,H.timeouts=gt,H.toNumericSchedule=Un,H.toRgba=cr,H.toggleOpen=as,H.twentyFourHours=fo,Object.defineProperties(H,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
261
261
  //# sourceMappingURL=index.umd.js.map