@spteck/react-controls-v2 2.3.8 → 2.3.9

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.cjs CHANGED
@@ -1,4 +1,4 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./chunk-D-IZpNpi.cjs`),t=require(`./LocalizationProvider-B6NxHbu2.cjs`),n=require(`./src-DFxq-N5I.cjs`),r=require(`./chunk-7R4GIKGN-BKoqTTU_.cjs`),i=require(`./chunk-GEFDOKGD-BOwd6Jqp.cjs`),a=require(`./chunk-HHEYEP7N-pdmgQZzP.cjs`),o=require(`./chunk-XPW4576I-C68T-WIW.cjs`);require(`./chunk-MX3YWQON-DulrBJdn.cjs`),require(`./chunk-YBOYWFTD-CiLW6HW_.cjs`),require(`./chunk-PQ6SQG4A-BZnW4-Sd.cjs`);const s=require(`./chunk-PU5JKC2W-eRU8wnTH.cjs`);require(`./chunk-KYZI473N-DzBMFOER.cjs`),require(`./chunk-O4XLMI2P-BQF7MAo7.cjs`);const c=require(`./chunk-GLR3WWYH-DdNAJNRC.cjs`),l=require(`./isEmpty-BTp1uKIj.cjs`);let u=require(`react`);u=e.o(u);let d=require(`react/jsx-runtime`);d=e.o(d);let f=require(`date-fns-tz`),p=require(`@fluentui/react-components`),m=require(`date-fns`),h=require(`lodash`),g=require(`@juggle/resize-observer`),_=require(`@emotion/css`),v=require(`embla-carousel-react`);v=e.o(v);let y=require(`@fluentui/react-icons`),b=require(`react-dom`);b=e.o(b);let x=require(`@iconify/react`),S=require(`@fluentui/react-calendar-compat`),C=require(`@fluentui-contrib/react-data-grid-react-window`),w=require(`react-player`);w=e.o(w);let T=require(`adaptivecards`);T=e.o(T);let E=require(`nano-css`),D=require(`markdown-it`);D=e.o(D);let O=require(`@fluentui/react-datepicker-compat`),k=require(`@fluentui/react-timepicker-compat`),A=require(`adaptivecards-templating`),j=require(`textarea-caret`);j=e.o(j);let M=require(`@fluentui-contrib/react-chat`),N=require(`@fluentui/react-motion-components-preview`);var P=function(e){return e[e.XXXLarge=1900]=`XXXLarge`,e[e.ExtraExtraLarge=1400]=`ExtraExtraLarge`,e[e.ExtraLarge=1200]=`ExtraLarge`,e[e.Large=992]=`Large`,e[e.Medium=768]=`Medium`,e[e.Small=576]=`Small`,e[e.ExtraSmall=320]=`ExtraSmall`,e}({}),F=function(e){return e.INFO=`info`,e.ERROR=`error`,e.SUCCESS=`success`,e}({}),ee=(0,u.createContext)(void 0),te=({context:e,children:t})=>(0,d.jsx)(ee.Provider,{value:e,children:t}),I=()=>(0,u.useContext)(ee),L=()=>{let e=I()?.loggingProvider;return{log:(n,r=t.T.Info,i)=>{e?e.log(n,r,i):console.log(n,i)},error:(t,n,r)=>{e?e.error(t,n,r):console.error(t,n,r)},warn:(t,n)=>{e?e.warn(t,n):console.warn(t,n)},info:(t,n)=>{e?e.info(t,n):console.info(t,n)},verbose:(t,n)=>{e?e.verbose(t,n):console.debug(t,n)},LogLevel:t.T,ErrorType:t.w}},ne=()=>{let e=I()?.graphClient,{warn:t,error:n}=L();return{getUser:(0,u.useCallback)(async r=>{if(!e)return t(`Graph client not available`),null;try{return await e.get(`/users/${r}`)}catch(e){return n(`Error fetching user:`,e instanceof Error?e:void 0),null}},[e]),getCurrentUser:(0,u.useCallback)(async()=>{if(!e)return t(`Graph client not available`),null;try{return await e.get(`/me`)}catch(e){return n(`Error fetching current user:`,e instanceof Error?e:void 0),null}},[e]),searchUsers:(0,u.useCallback)(async(r,i=10)=>{if(!e)return t(`Graph client not available`),[];try{return(await e.get(`/users?$search="displayName:${r}" OR "mail:${r}"&$top=${i}`)).value||[]}catch(e){return n(`Error searching users:`,e instanceof Error?e:void 0),[]}},[e]),getUserPhoto:(0,u.useCallback)(async r=>{if(!e)return t(`Graph client not available`),null;try{let t=await e.get(`/users/${r}/photo/$value`);return URL.createObjectURL(t)}catch(e){return n(`Error fetching user photo:`,e instanceof Error?e:void 0),null}},[e]),graphClient:e}},re=()=>{let e=I()?.storageProvider,{warn:t,error:n}=L();return{getCachedData:(0,u.useCallback)(async r=>{if(!e){t(`Storage provider not available`);return}try{return await e.get(r)}catch(e){n(`Error reading from cache:`,e instanceof Error?e:void 0);return}},[e]),setCachedData:(0,u.useCallback)(async(r,i,a)=>{if(!e){t(`Storage provider not available`);return}try{await e.set(r,i,a)}catch(e){n(`Error writing to cache:`,e instanceof Error?e:void 0)}},[e]),removeCachedData:(0,u.useCallback)(async r=>{if(!e){t(`Storage provider not available`);return}try{await e.remove(r)}catch(e){n(`Error removing from cache:`,e instanceof Error?e:void 0)}},[e]),clearCache:(0,u.useCallback)(async()=>{if(!e){t(`Storage provider not available`);return}try{await e.clear()}catch(e){n(`Error clearing cache:`,e instanceof Error?e:void 0)}},[e])}},R=(e,t,n=!0)=>{let[r,i]=(0,u.useState)(!1),a=(0,u.useRef)(null),o=(0,u.useRef)(e);(0,u.useEffect)(()=>{o.current=e},[e]);let s=(0,u.useCallback)(()=>{a.current||=(i(!0),n&&o.current(),setInterval(()=>{o.current()},t))},[t,n]),c=(0,u.useCallback)(()=>{a.current&&(clearInterval(a.current),a.current=null,i(!1))},[]);return(0,u.useEffect)(()=>()=>{c()},[c]),{startPolling:s,stopPolling:c,isPolling:r}},ie=()=>{let e=I(),t=(0,u.useMemo)(()=>Intl.DateTimeFormat().resolvedOptions().timeZone,[]);return{timeZone:t,convertToUserTimeZone:(e,n)=>(0,f.toZonedTime)(e,n||t),convertFromUserTimeZone:(e,n)=>(0,f.fromZonedTime)(e,n||t),formatInTimeZone:(e,n,r)=>{let i=r||t;return(0,f.format)((0,f.toZonedTime)(e,i),n,{timeZone:i})},getUserTimeZone:()=>(e?.pageContext?.user?.preferUserTimeZone,t)}},ae=()=>{let{verbose:e,error:t}=L();return{parseSSEResponse:(0,u.useCallback)((n,r={})=>{let{stripMarkdown:i=!0,debug:a=!1}=r;if(!n||typeof n!=`string`)return{data:void 0,rawText:``,isJson:!1,error:`Invalid input: rawResponse must be a non-empty string`};try{a&&(e(`[useAIAssistantParser] Raw SSE input (full):`,n),e(`[useAIAssistantParser] Raw SSE length:`,n.length));let t=n.split(`
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./chunk-D-IZpNpi.cjs`),t=require(`./LocalizationProvider-B6NxHbu2.cjs`),n=require(`./src-DFxq-N5I.cjs`),r=require(`./chunk-7R4GIKGN-BKoqTTU_.cjs`),i=require(`./chunk-GEFDOKGD-BOwd6Jqp.cjs`),a=require(`./chunk-HHEYEP7N-pdmgQZzP.cjs`),o=require(`./chunk-XPW4576I-C68T-WIW.cjs`);require(`./chunk-MX3YWQON-DulrBJdn.cjs`),require(`./chunk-YBOYWFTD-CiLW6HW_.cjs`),require(`./chunk-PQ6SQG4A-BZnW4-Sd.cjs`);const s=require(`./chunk-PU5JKC2W-eRU8wnTH.cjs`);require(`./chunk-KYZI473N-DzBMFOER.cjs`),require(`./chunk-O4XLMI2P-BQF7MAo7.cjs`);const c=require(`./chunk-GLR3WWYH-DdNAJNRC.cjs`),l=require(`./isEmpty-BTp1uKIj.cjs`);let u=require(`react`);u=e.o(u);let d=require(`react/jsx-runtime`);d=e.o(d);let f=require(`date-fns-tz`),p=require(`@fluentui/react-components`),m=require(`date-fns`),h=require(`lodash`),g=require(`@juggle/resize-observer`),_=require(`@emotion/css`),v=require(`embla-carousel-react`);v=e.o(v);let y=require(`@fluentui/react-icons`),b=require(`react-dom`);b=e.o(b);let x=require(`@iconify/react`),S=require(`@fluentui/react-calendar-compat`),C=require(`@fluentui-contrib/react-data-grid-react-window`),w=require(`react-player`);w=e.o(w);let T=require(`adaptivecards`);T=e.o(T);let E=require(`nano-css`),D=require(`markdown-it`);D=e.o(D);let O=require(`@fluentui/react-datepicker-compat`),k=require(`@fluentui/react-timepicker-compat`),A=require(`adaptivecards-templating`),j=require(`textarea-caret`);j=e.o(j);let M=require(`@fluentui-contrib/react-chat`),ee=require(`@fluentui/react-motion-components-preview`);var N=function(e){return e[e.XXXLarge=1900]=`XXXLarge`,e[e.ExtraExtraLarge=1400]=`ExtraExtraLarge`,e[e.ExtraLarge=1200]=`ExtraLarge`,e[e.Large=992]=`Large`,e[e.Medium=768]=`Medium`,e[e.Small=576]=`Small`,e[e.ExtraSmall=320]=`ExtraSmall`,e}({}),P=function(e){return e.INFO=`info`,e.ERROR=`error`,e.SUCCESS=`success`,e}({}),te=(0,u.createContext)(void 0),F=({context:e,children:t})=>(0,d.jsx)(te.Provider,{value:e,children:t}),I=()=>(0,u.useContext)(te),L=()=>{let e=I()?.loggingProvider;return{log:(n,r=t.T.Info,i)=>{e?e.log(n,r,i):console.log(n,i)},error:(t,n,r)=>{e?e.error(t,n,r):console.error(t,n,r)},warn:(t,n)=>{e?e.warn(t,n):console.warn(t,n)},info:(t,n)=>{e?e.info(t,n):console.info(t,n)},verbose:(t,n)=>{e?e.verbose(t,n):console.debug(t,n)},LogLevel:t.T,ErrorType:t.w}},ne=()=>{let e=I()?.graphClient,{warn:t,error:n}=L();return{getUser:(0,u.useCallback)(async r=>{if(!e)return t(`Graph client not available`),null;try{return await e.get(`/users/${r}`)}catch(e){return n(`Error fetching user:`,e instanceof Error?e:void 0),null}},[e]),getCurrentUser:(0,u.useCallback)(async()=>{if(!e)return t(`Graph client not available`),null;try{return await e.get(`/me`)}catch(e){return n(`Error fetching current user:`,e instanceof Error?e:void 0),null}},[e]),searchUsers:(0,u.useCallback)(async(r,i=10)=>{if(!e)return t(`Graph client not available`),[];try{return(await e.get(`/users?$search="displayName:${r}" OR "mail:${r}"&$top=${i}`)).value||[]}catch(e){return n(`Error searching users:`,e instanceof Error?e:void 0),[]}},[e]),getUserPhoto:(0,u.useCallback)(async r=>{if(!e)return t(`Graph client not available`),null;try{let t=await e.get(`/users/${r}/photo/$value`);return URL.createObjectURL(t)}catch(e){return n(`Error fetching user photo:`,e instanceof Error?e:void 0),null}},[e]),graphClient:e}},re=()=>{let e=I()?.storageProvider,{warn:t,error:n}=L();return{getCachedData:(0,u.useCallback)(async r=>{if(!e){t(`Storage provider not available`);return}try{return await e.get(r)}catch(e){n(`Error reading from cache:`,e instanceof Error?e:void 0);return}},[e]),setCachedData:(0,u.useCallback)(async(r,i,a)=>{if(!e){t(`Storage provider not available`);return}try{await e.set(r,i,a)}catch(e){n(`Error writing to cache:`,e instanceof Error?e:void 0)}},[e]),removeCachedData:(0,u.useCallback)(async r=>{if(!e){t(`Storage provider not available`);return}try{await e.remove(r)}catch(e){n(`Error removing from cache:`,e instanceof Error?e:void 0)}},[e]),clearCache:(0,u.useCallback)(async()=>{if(!e){t(`Storage provider not available`);return}try{await e.clear()}catch(e){n(`Error clearing cache:`,e instanceof Error?e:void 0)}},[e])}},R=(e,t,n=!0)=>{let[r,i]=(0,u.useState)(!1),a=(0,u.useRef)(null),o=(0,u.useRef)(e);(0,u.useEffect)(()=>{o.current=e},[e]);let s=(0,u.useCallback)(()=>{a.current||=(i(!0),n&&o.current(),setInterval(()=>{o.current()},t))},[t,n]),c=(0,u.useCallback)(()=>{a.current&&(clearInterval(a.current),a.current=null,i(!1))},[]);return(0,u.useEffect)(()=>()=>{c()},[c]),{startPolling:s,stopPolling:c,isPolling:r}},ie=()=>{let e=I(),t=(0,u.useMemo)(()=>Intl.DateTimeFormat().resolvedOptions().timeZone,[]);return{timeZone:t,convertToUserTimeZone:(e,n)=>(0,f.toZonedTime)(e,n||t),convertFromUserTimeZone:(e,n)=>(0,f.fromZonedTime)(e,n||t),formatInTimeZone:(e,n,r)=>{let i=r||t;return(0,f.format)((0,f.toZonedTime)(e,i),n,{timeZone:i})},getUserTimeZone:()=>(e?.pageContext?.user?.preferUserTimeZone,t)}},ae=()=>{let{verbose:e,error:t}=L();return{parseSSEResponse:(0,u.useCallback)((n,r={})=>{let{stripMarkdown:i=!0,debug:a=!1}=r;if(!n||typeof n!=`string`)return{data:void 0,rawText:``,isJson:!1,error:`Invalid input: rawResponse must be a non-empty string`};try{a&&(e(`[useAIAssistantParser] Raw SSE input (full):`,n),e(`[useAIAssistantParser] Raw SSE length:`,n.length));let t=n.split(`
2
2
  `),r=[],o=!1,s=``,c=!1;for(let n=0;n<t.length;n++){let i=t[n];if(a&&n<20&&e(`[useAIAssistantParser] Line ${n}:`,JSON.stringify(i)),i.startsWith(`event: done`)){s.trim()&&(r.push(s.trim()),s=``);break}if(i.startsWith(`event:`)&&!i.startsWith(`event: done`)){s.trim()&&(r.push(s.trim()),s=``),c=!1;continue}if(i.startsWith(`data: `)){let e=i.substring(6);o=!0,c&&s?s+=`
3
3
  `+e:(s=e,c=!0)}else if(i.trim()===``&&!c)continue;else if(c&&i.trim()!==``)s+=`
4
4
  `+i;else if(i.trim()===``&&c){let e=n+1;if(e<t.length){let n=t[e];n.startsWith(`event:`)||e===t.length-1||n.trim()===``?(s.trim()&&(r.push(s.trim()),s=``),c=!1):s+=`
@@ -12,7 +12,7 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
12
12
  font-weight: ${t.fontWeight};
13
13
  font-style: ${t.fontStyle};
14
14
  font-display: swap;
15
- }`,o=document.createElement(`style`);o.setAttribute(`data-brand-font`,e.name),o.textContent=a,document.head.appendChild(o),se.add(n)})}function le(e){if(e){if(e.d)return e.d;if(e.BrandFontLibraryUrl||e.SiteUrl)return e}}var ue=new Set([`woff2`,`woff`,`ttf`,`otf`,`eot`]),de={thin:100,hairline:100,extralight:200,ultralight:200,light:300,regular:400,normal:400,medium:500,semibold:600,demibold:600,bold:700,extrabold:800,ultrabold:800,black:900,heavy:900};function fe(e,t){let n=(e?.trim()||t.replace(/\.[^.]+$/,``)).toLowerCase(),r=n.includes(`italic`)||n.includes(`oblique`),i=n.replace(/italic|oblique/gi,``).trim().replace(/[\s_-]+/g,``),a=de[i]??400;if(a===400&&i!==`regular`&&i!==`normal`&&i!==``){for(let[e,t]of Object.entries(de))if(i.includes(e)){a=t;break}}return{fontWeight:a,fontStyle:r?`italic`:`normal`}}var pe=`_SPFontFamilyName`,me=`_SPFontFaces`,he=`_spFontVisible`,ge=[{id:`fluent-base`,name:`'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif`,isDefault:!0,fontFaces:[]},{id:`fluent-monospace`,name:`'Cascadia Code', 'Cascadia Mono', Consolas, 'Courier New', monospace`,isDefault:!1,fontFaces:[]},{id:`fluent-numeric`,name:`'Bahnschrift', 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif`,isDefault:!1,fontFaces:[]}],_e=(e={})=>{let{siteUrl:t,disabled:n,fonts:r}=e,i=I(),{warn:a,error:o}=L(),[s,c]=(0,u.useState)(r??[]),[l,d]=(0,u.useState)(!n&&!r),[f,p]=(0,u.useState)(),[m,h]=(0,u.useState)(!1),g=(0,u.useRef)(!1),_=(0,u.useCallback)(async()=>{if(n)return;let e=t??i?.pageContext?.web?.absoluteUrl;if(!e){let e=`useBrandCenterFonts: no siteUrl provided and pageContext.web.absoluteUrl is not available.`;a(e),p(e),d(!1);return}d(!0),p(void 0);try{let t=`${e}/_api/SP.BrandCenter/Configuration`,n=async t=>{if(i?.graphClient)return i.graphClient.get(t);let n={Accept:`application/json;odata=nometadata`};i?.authProvider&&(n.Authorization=`Bearer ${await i.authProvider.getAccessToken([`${new URL(e).origin}/.default`])}`);let r=await fetch(t,{credentials:i?.authProvider?void 0:`include`,headers:n});if(!r.ok)throw Error(`SharePoint REST returned ${r.status}: ${t}`);return await r.json()},r=le(await n(t)),o=r?.BrandFontLibraryUrl,s=typeof o==`string`?o:o?.DecodedUrl,l=r?.IsBrandCenterSiteFeatureEnabled===!0||String(r?.IsBrandCenterSiteFeatureEnabled).toLowerCase()===`true`;if(!s||!l){a(`useBrandCenterFonts: Brand Center is not configured for this tenant — using Fluent UI 9 defaults.`),h(!1),c(ge),d(!1);return}let u=r?.SiteUrl,f=typeof u==`string`?u:u?.DecodedUrl??e,p=new URL(f).origin,m=s.startsWith(`http`)?new URL(s).pathname:s,g=await n(`${f}/_api/web/GetList('${encodeURIComponent(m)}')/items?$select=Id,FileLeafRef,FileRef,${pe},${me},${he},File/Name,File/ServerRelativeUrl&$expand=File&$top=5000`),_=g.d?.results??g.value??[],v=new Map;for(let e of _){let t=e.File?.Name??e.FileLeafRef??``,n=t.split(`.`).pop()?.toLowerCase()??``;if(!ue.has(n)||e[he]===!1)continue;let r=e[pe]??t.replace(/\.[^.]+$/,``).split(/[-_]/)[0]??t,i=v.get(r);i?i.items.push(e):v.set(r,{items:[e]})}let y=[];for(let[e,t]of v){let n=[];for(let e of t.items){let t=e.File?.Name??e.FileLeafRef??``,r=e.File?.ServerRelativeUrl??e.FileRef??``;if(!r)continue;let i=e[me],{fontWeight:a,fontStyle:o}=fe(i,t),s=`${p}${r}`;n.push({url:s,fontWeight:a,fontStyle:o})}n.length>0&&y.push({id:e,name:e,isDefault:!1,fontFaces:n})}y.length>0&&!y.some(e=>e.isDefault)&&(y[0].isDefault=!0),y.forEach(ce),c(y),h(!0)}catch(e){let t=e instanceof Error?e.message:String(e);o(`useBrandCenterFonts: failed to load fonts — falling back to Fluent UI 9 defaults`,e instanceof Error?e:void 0),p(t),h(!1),c(ge)}finally{d(!1)}},[n,t,i?.pageContext?.web?.absoluteUrl,i?.graphClient,i?.authProvider]);(0,u.useEffect)(()=>{if(r){r.forEach(ce);return}!g.current&&!n&&(g.current=!0,_())},[_,r,n]);let v=s.find(e=>e.isDefault);return{fonts:s,fontFamilyNames:s.map(e=>e.name),defaultFont:v,loading:l,error:f,isBrandCenterAvailable:m,refresh:_}},ve=()=>{let e=u.useCallback((e,t)=>`${e}${t}`,[]),t=u.useCallback(e=>{if(!e)return!1;try{return!!new URL(e)}catch{return!1}},[]),n=e=>e.charAt(0)===`/`&&e.charAt(1)===`/`?e.substring(1,e.length):e,r=u.useCallback(e=>e?new RegExp(/^[{]?[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$/).test(e)===!0:!1,[]),i=u.useCallback(e=>{if(!e)return``;let t=e.split(`/`);return t[t.length-1]},[]),a=u.useCallback(e=>{let t=window.location.hostname,n=`https://${t}`;if(e.indexOf(`${n}/sites/`)>-1||e.indexOf(`${n}/teams/`)>-1){let r=e.split(t)[1].split(`/`)[2],i=`https://${t}/sites/${r}`;return e.indexOf(`${n}/teams/`)>-1&&(i=`https://${t}/teams/${r}`),i}return n},[]),o=u.useCallback(e=>{let t=e.split(window.location.hostname)[1];return t=n(t),t},[]),s=u.useCallback(e=>encodeURIComponent(e.replace(/[%]/g,`%25`)).replace(/[']/g,`%27%27`).replace(/[&]/g,`%26`).replace(/[#]/g,`%23`).replace(/[?]/g,`%3F`).replace(/[/]/g,`%2F`).replace(/[+]/g,`%2B`),[]),c=u.useCallback(e=>e==null?!1:Object.prototype.hasOwnProperty.call(e,`extraSmall`)||Object.prototype.hasOwnProperty.call(e,`small`)||Object.prototype.hasOwnProperty.call(e,`medium`)||Object.prototype.hasOwnProperty.call(e,`large`)||Object.prototype.hasOwnProperty.call(e,`extraLarge`),[]),l=u.useCallback((e,t)=>e[t.toString().toLowerCase()],[]),d=u.useCallback(e=>e>=P.XXXLarge?`XXXLarge`:e>=P.ExtraExtraLarge?`ExtraExtraLarge`:e>=P.ExtraLarge?`ExtraLarge`:e>=Number(P.Large)?`Large`:e>=Number(P.Medium)?`Medium`:e>=Number(P.Small)?`Small`:`ExtraSmall`,[]),f=u.useCallback((e,t)=>{let n=d(t),r={ExtraSmall:`xs`,Small:`s`,Medium:`m`,Large:`l`,ExtraLarge:`xl`,ExtraExtraLarge:`xxl`},i=e;return c(e)&&(i=l(e,n??`Medium`)||r[n]),i},[d,c,l]),m=u.useCallback((e,t,n)=>{if(!e)return`none`;if(typeof e==`string`&&(/^\d+px$/.test(e)||/^\d+%$/.test(e)))return e;let r=n,i={padding:`spacingHorizontal`,vertical:`spacingVertical`,horizontal:`spacingHorizontal`};switch(f(e,t)){case`none`:return p.tokens[`${i[r]}None`];case`xxs`:return p.tokens[`${i[r]}XXS`];case`xs`:return p.tokens[`${i[r]}XS`];case`sNudge`:return p.tokens[`${i[r]}SNudge`];case`s`:return p.tokens[`${i[r]}S`];case`mNudge`:return p.tokens[`${i[r]}MNudge`];case`m`:return p.tokens[`${i[r]}M`];case`l`:return p.tokens[`${i[r]}L`];case`xl`:return p.tokens[`${i[r]}XL`];case`xxl`:return p.tokens[`${i[r]}XXL`];case`xxxl`:return p.tokens[`${i[r]}XXXL`];default:return p.tokens[`${i[r]}M`]}},[f]);return{getCacheKey:e,validateUrl:t,trimBeginDoubleSlash:n,isValidGUID:r,getPageNameFromUrl:i,getSPSiteAbsoluteUrl:a,getFileServerRelativeUrlFromAbsoluteUrl:o,encodeRestUrl:s,getSpacing:m,getCurrentDevice:d,getBaseStyles:u.useCallback((e,t,n)=>{let{verticalSpacing:r,horizontalSpacing:i,paddingLeft:a,paddingRight:o,paddingBottom:s,background:c,width:l,maxWidth:u,height:d,maxHeight:f,marginLeft:p,marginRight:h,marginTop:g,marginBottom:_,paddingTop:v,padding:y,margin:b,styles:x}=e,S=m(v,t,`padding`),C=m(a,t,`padding`),w=m(o,t,`padding`),T=m(s,t,`padding`),E=m(y,t,`padding`),D=m(p,t,`padding`),O=m(h,t,`padding`),k=m(g,t,`padding`),A=m(_,t,`padding`),j=m(b,t,`padding`);E&&(S=S===`none`?E:S,C=C===`none`?E:C,w=w===`none`?E:w,T=T===`none`?E:T),j&&(D=D===`none`?j:D,O=O===`none`?j:O,k=k===`none`?j:k,A=A===`none`?j:A);let M=`${m(r,t,`vertical`)} ${m(i,t,`horizontal`)}`,{padding:N,margin:P,paddingTop:F,paddingLeft:ee,paddingRight:te,paddingBottom:I,marginTop:L,marginLeft:ne,marginRight:re,marginBottom:R,...ie}=x??{};return{...ie,gap:M,paddingTop:S,paddingLeft:C,paddingRight:w,paddingBottom:T,marginLeft:D,marginRight:O,marginTop:k,marginBottom:A,background:c,width:l??void 0,height:d??void 0,maxWidth:u??void 0,maxHeight:f??void 0,overflow:`auto`}},[m]),getLayoutBreakPoint:u.useCallback((e,t)=>{let n=d(t),r=e;return c(e)&&(r=l(e,n??`Medium`)||``),r},[d,c,l])}};function z(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function B(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}function V(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?be(s,function(e){return e.test(o)}):ye(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function ye(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function be(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function xe(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}function Se(e){"@babel/helpers - typeof";return Se=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Se(e)}function Ce(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function we(e,t){if(t.length<e)throw TypeError(e+` argument`+(e>1?`s`:``)+` required, but only `+t.length+` present`)}function Te(e){we(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Se(e)===`object`&&t===`[object Date]`?new Date(e.getTime()):typeof e==`number`||t===`[object Number]`?new Date(e):((typeof e==`string`||t===`[object String]`)&&typeof console<`u`&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}var Ee={};function De(){return Ee}function Oe(e,t){var n;we(1,arguments);var r=De(),i=Ce(t?.weekStartsOn??(t==null||(n=t.locale)==null?void 0:n.options?.weekStartsOn)??r.weekStartsOn??r.locale?.options?.weekStartsOn??0);if(!(i>=0&&i<=6))throw RangeError(`weekStartsOn must be between 0 and 6 inclusively`);var a=Te(e),o=a.getUTCDay(),s=(o<i?7:0)+o-i;return a.setUTCDate(a.getUTCDate()-s),a.setUTCHours(0,0,0,0),a}var ke={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},Ae=function(e,t,n){var r,i=ke[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r},je={date:z({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:z({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:z({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Me={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},Ne={code:`en-US`,formatDistance:Ae,formatLong:je,formatRelative:function(e,t,n,r){return Me[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:B({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:B({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:B({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:B({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:B({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:xe({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:V({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:V({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:V({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:V({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:V({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function Pe(e,t,n){we(2,arguments);var r=Oe(e,n),i=Oe(t,n);return r.getTime()===i.getTime()}var Fe={lessThanXSeconds:{standalone:{one:`weniger als 1 Sekunde`,other:`weniger als {{count}} Sekunden`},withPreposition:{one:`weniger als 1 Sekunde`,other:`weniger als {{count}} Sekunden`}},xSeconds:{standalone:{one:`1 Sekunde`,other:`{{count}} Sekunden`},withPreposition:{one:`1 Sekunde`,other:`{{count}} Sekunden`}},halfAMinute:{standalone:`halbe Minute`,withPreposition:`halben Minute`},lessThanXMinutes:{standalone:{one:`weniger als 1 Minute`,other:`weniger als {{count}} Minuten`},withPreposition:{one:`weniger als 1 Minute`,other:`weniger als {{count}} Minuten`}},xMinutes:{standalone:{one:`1 Minute`,other:`{{count}} Minuten`},withPreposition:{one:`1 Minute`,other:`{{count}} Minuten`}},aboutXHours:{standalone:{one:`etwa 1 Stunde`,other:`etwa {{count}} Stunden`},withPreposition:{one:`etwa 1 Stunde`,other:`etwa {{count}} Stunden`}},xHours:{standalone:{one:`1 Stunde`,other:`{{count}} Stunden`},withPreposition:{one:`1 Stunde`,other:`{{count}} Stunden`}},xDays:{standalone:{one:`1 Tag`,other:`{{count}} Tage`},withPreposition:{one:`1 Tag`,other:`{{count}} Tagen`}},aboutXWeeks:{standalone:{one:`etwa 1 Woche`,other:`etwa {{count}} Wochen`},withPreposition:{one:`etwa 1 Woche`,other:`etwa {{count}} Wochen`}},xWeeks:{standalone:{one:`1 Woche`,other:`{{count}} Wochen`},withPreposition:{one:`1 Woche`,other:`{{count}} Wochen`}},aboutXMonths:{standalone:{one:`etwa 1 Monat`,other:`etwa {{count}} Monate`},withPreposition:{one:`etwa 1 Monat`,other:`etwa {{count}} Monaten`}},xMonths:{standalone:{one:`1 Monat`,other:`{{count}} Monate`},withPreposition:{one:`1 Monat`,other:`{{count}} Monaten`}},aboutXYears:{standalone:{one:`etwa 1 Jahr`,other:`etwa {{count}} Jahre`},withPreposition:{one:`etwa 1 Jahr`,other:`etwa {{count}} Jahren`}},xYears:{standalone:{one:`1 Jahr`,other:`{{count}} Jahre`},withPreposition:{one:`1 Jahr`,other:`{{count}} Jahren`}},overXYears:{standalone:{one:`mehr als 1 Jahr`,other:`mehr als {{count}} Jahre`},withPreposition:{one:`mehr als 1 Jahr`,other:`mehr als {{count}} Jahren`}},almostXYears:{standalone:{one:`fast 1 Jahr`,other:`fast {{count}} Jahre`},withPreposition:{one:`fast 1 Jahr`,other:`fast {{count}} Jahren`}}},Ie=function(e,t,n){var r,i=n!=null&&n.addSuffix?Fe[e].withPreposition:Fe[e].standalone;return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`in `+r:`vor `+r:r},Le={date:z({formats:{full:`EEEE, do MMMM y`,long:`do MMMM y`,medium:`do MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:z({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:z({formats:{full:`{{date}} 'um' {{time}}`,long:`{{date}} 'um' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},Re={lastWeek:`'letzten' eeee 'um' p`,yesterday:`'gestern um' p`,today:`'heute um' p`,tomorrow:`'morgen um' p`,nextWeek:`eeee 'um' p`,other:`P`},ze=function(e,t,n,r){return Re[e]},Be={narrow:[`v.Chr.`,`n.Chr.`],abbreviated:[`v.Chr.`,`n.Chr.`],wide:[`vor Christus`,`nach Christus`]},Ve={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. Quartal`,`2. Quartal`,`3. Quartal`,`4. Quartal`]},He={narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mär`,`Apr`,`Mai`,`Jun`,`Jul`,`Aug`,`Sep`,`Okt`,`Nov`,`Dez`],wide:[`Januar`,`Februar`,`März`,`April`,`Mai`,`Juni`,`Juli`,`August`,`September`,`Oktober`,`November`,`Dezember`]},Ue={narrow:He.narrow,abbreviated:[`Jan.`,`Feb.`,`März`,`Apr.`,`Mai`,`Juni`,`Juli`,`Aug.`,`Sep.`,`Okt.`,`Nov.`,`Dez.`],wide:He.wide},We={code:`de`,formatDistance:Ie,formatLong:Le,formatRelative:ze,localize:{ordinalNumber:function(e){return Number(e)+`.`},era:B({values:Be,defaultWidth:`wide`}),quarter:B({values:Ve,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:B({values:He,formattingValues:Ue,defaultWidth:`wide`}),day:B({values:{narrow:[`S`,`M`,`D`,`M`,`D`,`F`,`S`],short:[`So`,`Mo`,`Di`,`Mi`,`Do`,`Fr`,`Sa`],abbreviated:[`So.`,`Mo.`,`Di.`,`Mi.`,`Do.`,`Fr.`,`Sa.`],wide:[`Sonntag`,`Montag`,`Dienstag`,`Mittwoch`,`Donnerstag`,`Freitag`,`Samstag`]},defaultWidth:`wide`}),dayPeriod:B({values:{narrow:{am:`vm.`,pm:`nm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachm.`,evening:`Abend`,night:`Nacht`},abbreviated:{am:`vorm.`,pm:`nachm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachmittag`,evening:`Abend`,night:`Nacht`},wide:{am:`vormittags`,pm:`nachmittags`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachmittag`,evening:`Abend`,night:`Nacht`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`vm.`,pm:`nm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachm.`,evening:`abends`,night:`nachts`},abbreviated:{am:`vorm.`,pm:`nachm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachmittags`,evening:`abends`,night:`nachts`},wide:{am:`vormittags`,pm:`nachmittags`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachmittags`,evening:`abends`,night:`nachts`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:xe({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:V({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:`any`}),quarter:V({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:V({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:V({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:V({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Ge={lessThanXSeconds:{one:`menos de un segundo`,other:`menos de {{count}} segundos`},xSeconds:{one:`1 segundo`,other:`{{count}} segundos`},halfAMinute:`medio minuto`,lessThanXMinutes:{one:`menos de un minuto`,other:`menos de {{count}} minutos`},xMinutes:{one:`1 minuto`,other:`{{count}} minutos`},aboutXHours:{one:`alrededor de 1 hora`,other:`alrededor de {{count}} horas`},xHours:{one:`1 hora`,other:`{{count}} horas`},xDays:{one:`1 día`,other:`{{count}} días`},aboutXWeeks:{one:`alrededor de 1 semana`,other:`alrededor de {{count}} semanas`},xWeeks:{one:`1 semana`,other:`{{count}} semanas`},aboutXMonths:{one:`alrededor de 1 mes`,other:`alrededor de {{count}} meses`},xMonths:{one:`1 mes`,other:`{{count}} meses`},aboutXYears:{one:`alrededor de 1 año`,other:`alrededor de {{count}} años`},xYears:{one:`1 año`,other:`{{count}} años`},overXYears:{one:`más de 1 año`,other:`más de {{count}} años`},almostXYears:{one:`casi 1 año`,other:`casi {{count}} años`}},Ke=function(e,t,n){var r,i=Ge[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`en `+r:`hace `+r:r},qe={date:z({formats:{full:`EEEE, d 'de' MMMM 'de' y`,long:`d 'de' MMMM 'de' y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:z({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:z({formats:{full:`{{date}} 'a las' {{time}}`,long:`{{date}} 'a las' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Je={lastWeek:`'el' eeee 'pasado a la' p`,yesterday:`'ayer a la' p`,today:`'hoy a la' p`,tomorrow:`'mañana a la' p`,nextWeek:`eeee 'a la' p`,other:`P`},Ye={lastWeek:`'el' eeee 'pasado a las' p`,yesterday:`'ayer a las' p`,today:`'hoy a las' p`,tomorrow:`'mañana a las' p`,nextWeek:`eeee 'a las' p`,other:`P`},Xe={code:`es`,formatDistance:Ke,formatLong:qe,formatRelative:function(e,t,n,r){return t.getUTCHours()===1?Je[e]:Ye[e]},localize:{ordinalNumber:function(e,t){return Number(e)+`º`},era:B({values:{narrow:[`AC`,`DC`],abbreviated:[`AC`,`DC`],wide:[`antes de cristo`,`después de cristo`]},defaultWidth:`wide`}),quarter:B({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1º trimestre`,`2º trimestre`,`3º trimestre`,`4º trimestre`]},defaultWidth:`wide`,argumentCallback:function(e){return Number(e)-1}}),month:B({values:{narrow:[`e`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`ene`,`feb`,`mar`,`abr`,`may`,`jun`,`jul`,`ago`,`sep`,`oct`,`nov`,`dic`],wide:[`enero`,`febrero`,`marzo`,`abril`,`mayo`,`junio`,`julio`,`agosto`,`septiembre`,`octubre`,`noviembre`,`diciembre`]},defaultWidth:`wide`}),day:B({values:{narrow:[`d`,`l`,`m`,`m`,`j`,`v`,`s`],short:[`do`,`lu`,`ma`,`mi`,`ju`,`vi`,`sá`],abbreviated:[`dom`,`lun`,`mar`,`mié`,`jue`,`vie`,`sáb`],wide:[`domingo`,`lunes`,`martes`,`miércoles`,`jueves`,`viernes`,`sábado`]},defaultWidth:`wide`}),dayPeriod:B({values:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`mañana`,afternoon:`tarde`,evening:`tarde`,night:`noche`},abbreviated:{am:`AM`,pm:`PM`,midnight:`medianoche`,noon:`mediodia`,morning:`mañana`,afternoon:`tarde`,evening:`tarde`,night:`noche`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`medianoche`,noon:`mediodia`,morning:`mañana`,afternoon:`tarde`,evening:`tarde`,night:`noche`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`de la mañana`,afternoon:`de la tarde`,evening:`de la tarde`,night:`de la noche`},abbreviated:{am:`AM`,pm:`PM`,midnight:`medianoche`,noon:`mediodia`,morning:`de la mañana`,afternoon:`de la tarde`,evening:`de la tarde`,night:`de la noche`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`medianoche`,noon:`mediodia`,morning:`de la mañana`,afternoon:`de la tarde`,evening:`de la tarde`,night:`de la noche`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:xe({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:V({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:`any`}),quarter:V({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:V({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:`any`}),day:V({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:V({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Ze={lessThanXSeconds:{one:`moins d’une seconde`,other:`moins de {{count}} secondes`},xSeconds:{one:`1 seconde`,other:`{{count}} secondes`},halfAMinute:`30 secondes`,lessThanXMinutes:{one:`moins d’une minute`,other:`moins de {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`environ 1 heure`,other:`environ {{count}} heures`},xHours:{one:`1 heure`,other:`{{count}} heures`},xDays:{one:`1 jour`,other:`{{count}} jours`},aboutXWeeks:{one:`environ 1 semaine`,other:`environ {{count}} semaines`},xWeeks:{one:`1 semaine`,other:`{{count}} semaines`},aboutXMonths:{one:`environ 1 mois`,other:`environ {{count}} mois`},xMonths:{one:`1 mois`,other:`{{count}} mois`},aboutXYears:{one:`environ 1 an`,other:`environ {{count}} ans`},xYears:{one:`1 an`,other:`{{count}} ans`},overXYears:{one:`plus d’un an`,other:`plus de {{count}} ans`},almostXYears:{one:`presqu’un an`,other:`presque {{count}} ans`}},Qe=function(e,t,n){var r,i=Ze[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`dans `+r:`il y a `+r:r},$e={date:z({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:z({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:z({formats:{full:`{{date}} 'à' {{time}}`,long:`{{date}} 'à' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},et={lastWeek:`eeee 'dernier à' p`,yesterday:`'hier à' p`,today:`'aujourd’hui à' p`,tomorrow:`'demain à' p'`,nextWeek:`eeee 'prochain à' p`,other:`P`},tt={code:`fr`,formatDistance:Qe,formatLong:$e,formatRelative:function(e,t,n,r){return et[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=t?.unit;return n===0?`0`:n+(n===1?r&&[`year`,`week`,`hour`,`minute`,`second`].includes(r)?`ère`:`er`:`ème`)},era:B({values:{narrow:[`av. J.-C`,`ap. J.-C`],abbreviated:[`av. J.-C`,`ap. J.-C`],wide:[`avant Jésus-Christ`,`après Jésus-Christ`]},defaultWidth:`wide`}),quarter:B({values:{narrow:[`T1`,`T2`,`T3`,`T4`],abbreviated:[`1er trim.`,`2ème trim.`,`3ème trim.`,`4ème trim.`],wide:[`1er trimestre`,`2ème trimestre`,`3ème trimestre`,`4ème trimestre`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:B({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`janv.`,`févr.`,`mars`,`avr.`,`mai`,`juin`,`juil.`,`août`,`sept.`,`oct.`,`nov.`,`déc.`],wide:[`janvier`,`février`,`mars`,`avril`,`mai`,`juin`,`juillet`,`août`,`septembre`,`octobre`,`novembre`,`décembre`]},defaultWidth:`wide`}),day:B({values:{narrow:[`D`,`L`,`M`,`M`,`J`,`V`,`S`],short:[`di`,`lu`,`ma`,`me`,`je`,`ve`,`sa`],abbreviated:[`dim.`,`lun.`,`mar.`,`mer.`,`jeu.`,`ven.`,`sam.`],wide:[`dimanche`,`lundi`,`mardi`,`mercredi`,`jeudi`,`vendredi`,`samedi`]},defaultWidth:`wide`}),dayPeriod:B({values:{narrow:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`mat.`,afternoon:`ap.m.`,evening:`soir`,night:`mat.`},abbreviated:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`matin`,afternoon:`après-midi`,evening:`soir`,night:`matin`},wide:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`du matin`,afternoon:`de l’après-midi`,evening:`du soir`,night:`du matin`}},defaultWidth:`wide`})},match:{ordinalNumber:xe({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:V({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:`any`}),quarter:V({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:V({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:V({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:V({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},nt={lessThanXSeconds:{one:`meno di un secondo`,other:`meno di {{count}} secondi`},xSeconds:{one:`un secondo`,other:`{{count}} secondi`},halfAMinute:`alcuni secondi`,lessThanXMinutes:{one:`meno di un minuto`,other:`meno di {{count}} minuti`},xMinutes:{one:`un minuto`,other:`{{count}} minuti`},aboutXHours:{one:`circa un'ora`,other:`circa {{count}} ore`},xHours:{one:`un'ora`,other:`{{count}} ore`},xDays:{one:`un giorno`,other:`{{count}} giorni`},aboutXWeeks:{one:`circa una settimana`,other:`circa {{count}} settimane`},xWeeks:{one:`una settimana`,other:`{{count}} settimane`},aboutXMonths:{one:`circa un mese`,other:`circa {{count}} mesi`},xMonths:{one:`un mese`,other:`{{count}} mesi`},aboutXYears:{one:`circa un anno`,other:`circa {{count}} anni`},xYears:{one:`un anno`,other:`{{count}} anni`},overXYears:{one:`più di un anno`,other:`più di {{count}} anni`},almostXYears:{one:`quasi un anno`,other:`quasi {{count}} anni`}},rt=function(e,t,n){var r,i=nt[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`tra `+r:r+` fa`:r},it={date:z({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:z({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:z({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},at=[`domenica`,`lunedì`,`martedì`,`mercoledì`,`giovedì`,`venerdì`,`sabato`];function ot(e){switch(e){case 0:return`'domenica scorsa alle' p`;default:return`'`+at[e]+` scorso alle' p`}}function st(e){return`'`+at[e]+` alle' p`}function ct(e){switch(e){case 0:return`'domenica prossima alle' p`;default:return`'`+at[e]+` prossimo alle' p`}}var lt={lastWeek:function(e,t,n){var r=e.getUTCDay();return Pe(e,t,n)?st(r):ot(r)},yesterday:`'ieri alle' p`,today:`'oggi alle' p`,tomorrow:`'domani alle' p`,nextWeek:function(e,t,n){var r=e.getUTCDay();return Pe(e,t,n)?st(r):ct(r)},other:`P`},ut={code:`it`,formatDistance:rt,formatLong:it,formatRelative:function(e,t,n,r){var i=lt[e];return typeof i==`function`?i(t,n,r):i},localize:{ordinalNumber:function(e,t){var n=Number(e);return String(n)},era:B({values:{narrow:[`aC`,`dC`],abbreviated:[`a.C.`,`d.C.`],wide:[`avanti Cristo`,`dopo Cristo`]},defaultWidth:`wide`}),quarter:B({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1º trimestre`,`2º trimestre`,`3º trimestre`,`4º trimestre`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:B({values:{narrow:[`G`,`F`,`M`,`A`,`M`,`G`,`L`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`gen`,`feb`,`mar`,`apr`,`mag`,`giu`,`lug`,`ago`,`set`,`ott`,`nov`,`dic`],wide:[`gennaio`,`febbraio`,`marzo`,`aprile`,`maggio`,`giugno`,`luglio`,`agosto`,`settembre`,`ottobre`,`novembre`,`dicembre`]},defaultWidth:`wide`}),day:B({values:{narrow:[`D`,`L`,`M`,`M`,`G`,`V`,`S`],short:[`dom`,`lun`,`mar`,`mer`,`gio`,`ven`,`sab`],abbreviated:[`dom`,`lun`,`mar`,`mer`,`gio`,`ven`,`sab`],wide:[`domenica`,`lunedì`,`martedì`,`mercoledì`,`giovedì`,`venerdì`,`sabato`]},defaultWidth:`wide`}),dayPeriod:B({values:{narrow:{am:`m.`,pm:`p.`,midnight:`mezzanotte`,noon:`mezzogiorno`,morning:`mattina`,afternoon:`pomeriggio`,evening:`sera`,night:`notte`},abbreviated:{am:`AM`,pm:`PM`,midnight:`mezzanotte`,noon:`mezzogiorno`,morning:`mattina`,afternoon:`pomeriggio`,evening:`sera`,night:`notte`},wide:{am:`AM`,pm:`PM`,midnight:`mezzanotte`,noon:`mezzogiorno`,morning:`mattina`,afternoon:`pomeriggio`,evening:`sera`,night:`notte`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`m.`,pm:`p.`,midnight:`mezzanotte`,noon:`mezzogiorno`,morning:`di mattina`,afternoon:`del pomeriggio`,evening:`di sera`,night:`di notte`},abbreviated:{am:`AM`,pm:`PM`,midnight:`mezzanotte`,noon:`mezzogiorno`,morning:`di mattina`,afternoon:`del pomeriggio`,evening:`di sera`,night:`di notte`},wide:{am:`AM`,pm:`PM`,midnight:`mezzanotte`,noon:`mezzogiorno`,morning:`di mattina`,afternoon:`del pomeriggio`,evening:`di sera`,night:`di notte`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:xe({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:V({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:`any`}),quarter:V({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:V({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:V({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:`any`}),dayPeriod:V({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},dt={lessThanXSeconds:{one:`1秒未満`,other:`{{count}}秒未満`,oneWithSuffix:`約1秒`,otherWithSuffix:`約{{count}}秒`},xSeconds:{one:`1秒`,other:`{{count}}秒`},halfAMinute:`30秒`,lessThanXMinutes:{one:`1分未満`,other:`{{count}}分未満`,oneWithSuffix:`約1分`,otherWithSuffix:`約{{count}}分`},xMinutes:{one:`1分`,other:`{{count}}分`},aboutXHours:{one:`約1時間`,other:`約{{count}}時間`},xHours:{one:`1時間`,other:`{{count}}時間`},xDays:{one:`1日`,other:`{{count}}日`},aboutXWeeks:{one:`約1週間`,other:`約{{count}}週間`},xWeeks:{one:`1週間`,other:`{{count}}週間`},aboutXMonths:{one:`約1か月`,other:`約{{count}}か月`},xMonths:{one:`1か月`,other:`{{count}}か月`},aboutXYears:{one:`約1年`,other:`約{{count}}年`},xYears:{one:`1年`,other:`{{count}}年`},overXYears:{one:`1年以上`,other:`{{count}}年以上`},almostXYears:{one:`1年近く`,other:`{{count}}年近く`}},ft=function(e,t,n){n||={};var r,i=dt[e];return r=typeof i==`string`?i:t===1?n.addSuffix&&i.oneWithSuffix?i.oneWithSuffix:i.one:n.addSuffix&&i.otherWithSuffix?i.otherWithSuffix.replace(`{{count}}`,String(t)):i.other.replace(`{{count}}`,String(t)),n.addSuffix?n.comparison&&n.comparison>0?r+`後`:r+`前`:r},pt={date:z({formats:{full:`y年M月d日EEEE`,long:`y年M月d日`,medium:`y/MM/dd`,short:`y/MM/dd`},defaultWidth:`full`}),time:z({formats:{full:`H時mm分ss秒 zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:z({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},mt={lastWeek:`先週のeeeeのp`,yesterday:`昨日のp`,today:`今日のp`,tomorrow:`明日のp`,nextWeek:`翌週のeeeeのp`,other:`P`},ht={code:`ja`,formatDistance:ft,formatLong:pt,formatRelative:function(e,t,n,r){return mt[e]},localize:{ordinalNumber:function(e,t){var n=Number(e);switch(String(t?.unit)){case`year`:return`${n}年`;case`quarter`:return`第${n}四半期`;case`month`:return`${n}月`;case`week`:return`第${n}週`;case`date`:return`${n}日`;case`hour`:return`${n}時`;case`minute`:return`${n}分`;case`second`:return`${n}秒`;default:return`${n}`}},era:B({values:{narrow:[`BC`,`AC`],abbreviated:[`紀元前`,`西暦`],wide:[`紀元前`,`西暦`]},defaultWidth:`wide`}),quarter:B({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`第1四半期`,`第2四半期`,`第3四半期`,`第4四半期`]},defaultWidth:`wide`,argumentCallback:function(e){return Number(e)-1}}),month:B({values:{narrow:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`],abbreviated:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],wide:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`]},defaultWidth:`wide`}),day:B({values:{narrow:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],short:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],abbreviated:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],wide:[`日曜日`,`月曜日`,`火曜日`,`水曜日`,`木曜日`,`金曜日`,`土曜日`]},defaultWidth:`wide`}),dayPeriod:B({values:{narrow:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`},abbreviated:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`},wide:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`},abbreviated:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`},wide:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:xe({matchPattern:/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:V({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},defaultParseWidth:`any`}),quarter:V({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:V({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:`any`}),day:V({matchPatterns:{narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},defaultParseWidth:`any`}),dayPeriod:V({matchPatterns:{any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},gt={lessThanXSeconds:{one:`1초 미만`,other:`{{count}}초 미만`},xSeconds:{one:`1초`,other:`{{count}}초`},halfAMinute:`30초`,lessThanXMinutes:{one:`1분 미만`,other:`{{count}}분 미만`},xMinutes:{one:`1분`,other:`{{count}}분`},aboutXHours:{one:`약 1시간`,other:`약 {{count}}시간`},xHours:{one:`1시간`,other:`{{count}}시간`},xDays:{one:`1일`,other:`{{count}}일`},aboutXWeeks:{one:`약 1주`,other:`약 {{count}}주`},xWeeks:{one:`1주`,other:`{{count}}주`},aboutXMonths:{one:`약 1개월`,other:`약 {{count}}개월`},xMonths:{one:`1개월`,other:`{{count}}개월`},aboutXYears:{one:`약 1년`,other:`약 {{count}}년`},xYears:{one:`1년`,other:`{{count}}년`},overXYears:{one:`1년 이상`,other:`{{count}}년 이상`},almostXYears:{one:`거의 1년`,other:`거의 {{count}}년`}},_t=function(e,t,n){var r,i=gt[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r+` 후`:r+` 전`:r},vt={date:z({formats:{full:`y년 M월 d일 EEEE`,long:`y년 M월 d일`,medium:`y.MM.dd`,short:`y.MM.dd`},defaultWidth:`full`}),time:z({formats:{full:`a H시 mm분 ss초 zzzz`,long:`a H:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:z({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},yt={lastWeek:`'지난' eeee p`,yesterday:`'어제' p`,today:`'오늘' p`,tomorrow:`'내일' p`,nextWeek:`'다음' eeee p`,other:`P`},bt={code:`ko`,formatDistance:_t,formatLong:vt,formatRelative:function(e,t,n,r){return yt[e]},localize:{ordinalNumber:function(e,t){var n=Number(e);switch(String(t?.unit)){case`minute`:case`second`:return String(n);case`date`:return n+`일`;default:return n+`번째`}},era:B({values:{narrow:[`BC`,`AD`],abbreviated:[`BC`,`AD`],wide:[`기원전`,`서기`]},defaultWidth:`wide`}),quarter:B({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1분기`,`2분기`,`3분기`,`4분기`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:B({values:{narrow:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`],abbreviated:[`1월`,`2월`,`3월`,`4월`,`5월`,`6월`,`7월`,`8월`,`9월`,`10월`,`11월`,`12월`],wide:[`1월`,`2월`,`3월`,`4월`,`5월`,`6월`,`7월`,`8월`,`9월`,`10월`,`11월`,`12월`]},defaultWidth:`wide`}),day:B({values:{narrow:[`일`,`월`,`화`,`수`,`목`,`금`,`토`],short:[`일`,`월`,`화`,`수`,`목`,`금`,`토`],abbreviated:[`일`,`월`,`화`,`수`,`목`,`금`,`토`],wide:[`일요일`,`월요일`,`화요일`,`수요일`,`목요일`,`금요일`,`토요일`]},defaultWidth:`wide`}),dayPeriod:B({values:{narrow:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`},abbreviated:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`},wide:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`},abbreviated:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`},wide:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:xe({matchPattern:/^(\d+)(일|번째)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:V({matchPatterns:{narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(bc|기원전)/i,/^(ad|서기)/i]},defaultParseWidth:`any`}),quarter:V({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:V({matchPatterns:{narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:`any`}),day:V({matchPatterns:{narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},defaultParseWidth:`any`}),dayPeriod:V({matchPatterns:{any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},xt={lessThanXSeconds:{one:`menos de um segundo`,other:`menos de {{count}} segundos`},xSeconds:{one:`1 segundo`,other:`{{count}} segundos`},halfAMinute:`meio minuto`,lessThanXMinutes:{one:`menos de um minuto`,other:`menos de {{count}} minutos`},xMinutes:{one:`1 minuto`,other:`{{count}} minutos`},aboutXHours:{one:`aproximadamente 1 hora`,other:`aproximadamente {{count}} horas`},xHours:{one:`1 hora`,other:`{{count}} horas`},xDays:{one:`1 dia`,other:`{{count}} dias`},aboutXWeeks:{one:`aproximadamente 1 semana`,other:`aproximadamente {{count}} semanas`},xWeeks:{one:`1 semana`,other:`{{count}} semanas`},aboutXMonths:{one:`aproximadamente 1 mês`,other:`aproximadamente {{count}} meses`},xMonths:{one:`1 mês`,other:`{{count}} meses`},aboutXYears:{one:`aproximadamente 1 ano`,other:`aproximadamente {{count}} anos`},xYears:{one:`1 ano`,other:`{{count}} anos`},overXYears:{one:`mais de 1 ano`,other:`mais de {{count}} anos`},almostXYears:{one:`quase 1 ano`,other:`quase {{count}} anos`}},St=function(e,t,n){var r,i=xt[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`daqui a `+r:`há `+r:r},Ct={date:z({formats:{full:`EEEE, d 'de' MMMM 'de' y`,long:`d 'de' MMMM 'de' y`,medium:`d 'de' MMM 'de' y`,short:`dd/MM/y`},defaultWidth:`full`}),time:z({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:z({formats:{full:`{{date}} 'às' {{time}}`,long:`{{date}} 'às' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},wt={lastWeek:function(e){var t=e.getUTCDay();return`'`+(t===0||t===6?`último`:`última`)+`' eeee 'às' p`},yesterday:`'ontem às' p`,today:`'hoje às' p`,tomorrow:`'amanhã às' p`,nextWeek:`eeee 'às' p`,other:`P`},Tt={code:`pt`,formatDistance:St,formatLong:Ct,formatRelative:function(e,t,n,r){var i=wt[e];return typeof i==`function`?i(t):i},localize:{ordinalNumber:function(e,t){return Number(e)+`º`},era:B({values:{narrow:[`aC`,`dC`],abbreviated:[`a.C.`,`d.C.`],wide:[`antes de Cristo`,`depois de Cristo`]},defaultWidth:`wide`}),quarter:B({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1º trimestre`,`2º trimestre`,`3º trimestre`,`4º trimestre`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:B({values:{narrow:[`j`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`jan`,`fev`,`mar`,`abr`,`mai`,`jun`,`jul`,`ago`,`set`,`out`,`nov`,`dez`],wide:[`janeiro`,`fevereiro`,`março`,`abril`,`maio`,`junho`,`julho`,`agosto`,`setembro`,`outubro`,`novembro`,`dezembro`]},defaultWidth:`wide`}),day:B({values:{narrow:[`d`,`s`,`t`,`q`,`q`,`s`,`s`],short:[`dom`,`seg`,`ter`,`qua`,`qui`,`sex`,`sáb`],abbreviated:[`dom`,`seg`,`ter`,`qua`,`qui`,`sex`,`sáb`],wide:[`domingo`,`segunda-feira`,`terça-feira`,`quarta-feira`,`quinta-feira`,`sexta-feira`,`sábado`]},defaultWidth:`wide`}),dayPeriod:B({values:{narrow:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`noite`,night:`madrugada`},abbreviated:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`noite`,night:`madrugada`},wide:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`noite`,night:`madrugada`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da noite`,night:`da madrugada`},abbreviated:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da noite`,night:`da madrugada`},wide:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da noite`,night:`da madrugada`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:xe({matchPattern:/^(\d+)(º|ª)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:V({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},defaultParseWidth:`any`}),quarter:V({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:V({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:V({matchPatterns:{narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},defaultParseWidth:`any`}),dayPeriod:V({matchPatterns:{narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Et={lessThanXSeconds:{one:`不到 1 秒`,other:`不到 {{count}} 秒`},xSeconds:{one:`1 秒`,other:`{{count}} 秒`},halfAMinute:`半分钟`,lessThanXMinutes:{one:`不到 1 分钟`,other:`不到 {{count}} 分钟`},xMinutes:{one:`1 分钟`,other:`{{count}} 分钟`},xHours:{one:`1 小时`,other:`{{count}} 小时`},aboutXHours:{one:`大约 1 小时`,other:`大约 {{count}} 小时`},xDays:{one:`1 天`,other:`{{count}} 天`},aboutXWeeks:{one:`大约 1 个星期`,other:`大约 {{count}} 个星期`},xWeeks:{one:`1 个星期`,other:`{{count}} 个星期`},aboutXMonths:{one:`大约 1 个月`,other:`大约 {{count}} 个月`},xMonths:{one:`1 个月`,other:`{{count}} 个月`},aboutXYears:{one:`大约 1 年`,other:`大约 {{count}} 年`},xYears:{one:`1 年`,other:`{{count}} 年`},overXYears:{one:`超过 1 年`,other:`超过 {{count}} 年`},almostXYears:{one:`将近 1 年`,other:`将近 {{count}} 年`}},Dt=function(e,t,n){var r,i=Et[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r+`内`:r+`前`:r},Ot={date:z({formats:{full:`y'年'M'月'd'日' EEEE`,long:`y'年'M'月'd'日'`,medium:`yyyy-MM-dd`,short:`yy-MM-dd`},defaultWidth:`full`}),time:z({formats:{full:`zzzz a h:mm:ss`,long:`z a h:mm:ss`,medium:`a h:mm:ss`,short:`a h:mm`},defaultWidth:`full`}),dateTime:z({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})};function kt(e,t,n){var r=`eeee p`;return Pe(e,t,n)?r:e.getTime()>t.getTime()?`'下个'`+r:`'上个'`+r}var At={lastWeek:kt,yesterday:`'昨天' p`,today:`'今天' p`,tomorrow:`'明天' p`,nextWeek:kt,other:`PP p`},jt={code:`zh-CN`,formatDistance:Dt,formatLong:Ot,formatRelative:function(e,t,n,r){var i=At[e];return typeof i==`function`?i(t,n,r):i},localize:{ordinalNumber:function(e,t){var n=Number(e);switch(t?.unit){case`date`:return n.toString()+`日`;case`hour`:return n.toString()+`时`;case`minute`:return n.toString()+`分`;case`second`:return n.toString()+`秒`;default:return`第 `+n.toString()}},era:B({values:{narrow:[`前`,`公元`],abbreviated:[`前`,`公元`],wide:[`公元前`,`公元`]},defaultWidth:`wide`}),quarter:B({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`第一季`,`第二季`,`第三季`,`第四季`],wide:[`第一季度`,`第二季度`,`第三季度`,`第四季度`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:B({values:{narrow:[`一`,`二`,`三`,`四`,`五`,`六`,`七`,`八`,`九`,`十`,`十一`,`十二`],abbreviated:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],wide:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`]},defaultWidth:`wide`}),day:B({values:{narrow:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],short:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],abbreviated:[`周日`,`周一`,`周二`,`周三`,`周四`,`周五`,`周六`],wide:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`]},defaultWidth:`wide`}),dayPeriod:B({values:{narrow:{am:`上`,pm:`下`,midnight:`凌晨`,noon:`午`,morning:`早`,afternoon:`下午`,evening:`晚`,night:`夜`},abbreviated:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜间`},wide:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜间`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`上`,pm:`下`,midnight:`凌晨`,noon:`午`,morning:`早`,afternoon:`下午`,evening:`晚`,night:`夜`},abbreviated:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜间`},wide:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜间`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:xe({matchPattern:/^(第\s*)?\d+(日|时|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:V({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:`any`}),quarter:V({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:V({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:`any`}),day:V({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:`any`}),dayPeriod:V({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Mt={"en-US":Ne,"es-ES":Xe,"fr-FR":tt,"de-DE":We,"it-IT":ut,"pt-BR":Tt,"pt-PT":Tt,"ja-JP":ht,"ko-KR":bt,"zh-CN":jt},Nt=(e,t)=>{let n=t&&Mt[t]||Ne,{error:r}=L();return{getFormatRelative:e=>{try{return(0,m.formatDistanceToNow)(typeof e==`string`?(0,m.parseISO)(e):e,{addSuffix:!0,locale:n})}catch(e){return r(`Error formatting relative time:`,e instanceof Error?e:void 0),``}},convertDateToUTC:e=>{try{let t=typeof e==`string`?(0,m.parseISO)(e):e;return new Date(t.toUTCString())}catch(e){return r(`Error converting to UTC:`,e instanceof Error?e:void 0),new Date}},formatDate:(e,t=`PPpp`)=>{try{return(0,m.format)(typeof e==`string`?(0,m.parseISO)(e):e,t,{locale:n})}catch(e){return r(`Error formatting date:`,e instanceof Error?e:void 0),``}},getTimezoneOffset:()=>new Date().getTimezoneOffset(),convertToTimezone:(n,i)=>{try{let r=typeof n==`string`?(0,m.parseISO)(n):n,a=i||e||Intl.DateTimeFormat().resolvedOptions().timeZone;return r.toLocaleString(t||`en-US`,{timeZone:a})}catch(e){return r(`Error converting timezone:`,e instanceof Error?e:void 0),(typeof n==`string`?new Date(n):n).toString()}}}},Pt=(e,t,n)=>{let{getFormatRelative:r,formatDate:i}=Nt(t,e);return{formatUtcDate:(e,t=`PP`)=>{let n=(0,m.differenceInDays)(new Date,(0,m.parseISO)(e)),a=``;return e!==void 0&&(a=n>7?i(e,t):r(e)),a},formatTime:n=>n.toLocaleTimeString(e,{timeZone:t}),convertDateToUTC:n=>{let r=typeof n==`string`?new Date(n):n,i=new Intl.DateTimeFormat(e,{timeZone:t,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1}).formatToParts(r),a,o,s,c,l,u;for(let e of i)switch(e.type){case`year`:a=e.value;break;case`month`:o=e.value;break;case`day`:s=e.value;break;case`hour`:c=e.value;break;case`minute`:l=e.value;break;case`second`:u=e.value;break;default:break}let d=`${a}-${o}-${s}T${c}:${l}:${u}Z`;return new Date(d)}}},Ft=process.env.NODE_ENV!==`production`,It=`data:image/`,Lt=()=>{let{error:e}=L(),t=(0,u.useCallback)(async e=>{let t=await fetch(e).then(e=>e.text());return`data:image/svg+xml;base64,`+btoa(t)},[]),n=(0,u.useCallback)(async(t,n,r)=>new Promise((i,a)=>{let o=new Image;o.crossOrigin=`anonymous`,o.addEventListener(`load`,()=>{let t=document.createElement(`canvas`);t.width=n??o.width,t.height=r??o.height,t?.getContext(`2d`)?.drawImage(o,0,0,n??o.width,r??o.height);let s;try{s=t.toDataURL(`image/png`,1),i(s)}catch(t){Ft&&e(`[ImageService.getBase64Image]: Err='${t.message}'`),a(t)}}),o.addEventListener(`error`,t=>{Ft&&e(`[ImageService.getBase64Image]: Image load error='${t.message}'`),a(t)}),o.src=t}),[]),r=(0,u.useCallback)(e=>!(0,h.isEmpty)(e)&&e.indexOf(It)>=0,[]);return{getBase64ImageFromDOMImg:(0,u.useCallback)(t=>{try{let e=document.getElementById(t),n=document.createElement(`canvas`);return n.width=e.width,n.height=e.height,n.getContext(`2d`)?.drawImage(e,0,0),n.toDataURL(`image/png`)}catch(t){Ft&&e(`[getBase64ImageFromDOMImg]: Err='${t.message}'`);return}},[]),isBase64Image:r,getImageBase64:n,base64FromSVGUrl:t}};function Rt(e,t=0){let n=null;return function(...r){let i=this;n&&clearTimeout(n),n=setTimeout(()=>{e.apply(i,r)},t)}}function zt(e,t=0){let n=null,r=0;return function(...i){let a=this,o=Date.now();r||=o;let s=t-(o-r);s<=0||s>t?(n&&=(clearTimeout(n),null),r=o,e.apply(a,i)):n||=setTimeout(()=>{r=Date.now(),n=null,e.apply(a,i)},s)}}function Bt(e){if(typeof e!=`object`||!e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Array)return e.map(e=>Bt(e));if(e instanceof Object){let t={};for(let n in e)e.hasOwnProperty(n)&&(t[n]=Bt(e[n]));return t}return e}function Vt(e){return e==null?!0:typeof e==`string`||Array.isArray(e)?e.length===0:typeof e==`object`?Object.keys(e).length===0:!1}function Ht(e,t,n){let r=Array.isArray(t)?t:t.split(`.`),i=e;for(let e of r){if(i==null)return n;i=i[e]}return i===void 0?n:i}function Ut(e,t,n){let r=Array.isArray(t)?t:t.split(`.`),i=r.pop();if(!i)return e;let a=e;for(let e of r)(!(e in a)||typeof a[e]!=`object`)&&(a[e]={}),a=a[e];return a[i]=n,e}function Wt(e){return Array.from(new Set(e))}function Gt(e,t){let n=new Set;return e.filter(e=>{let r=t(e);return n.has(r)?!1:(n.add(r),!0)})}function Kt(e,t){return e.reduce((e,n)=>{let r=String(t(n));return e[r]||(e[r]=[]),e[r].push(n),e},{})}function qt(e,t){return e.map(t)}function Jt(e,t){return e.filter(t)}function Yt(e,t){return e.some(t)}function Xt(e,t){return e.every(t)}for(var Zt=function(e){return e.HTML=`html`,e.MARKDOWN=`markdown`,e.ADAPTIVE_CARD=`adaptiveCard`,e.PLAIN_TEXT=`plainText`,e}({}),Qt=e=>{try{let t=JSON.parse(e);return typeof t==`object`&&!!t}catch{return!1}},$t=e=>{try{let t=JSON.parse(e);return t&&typeof t==`object`&&(t.type===`AdaptiveCard`||t.$schema?.includes(`adaptivecards.io`))}catch{return!1}},en=e=>{let t=e.trim(),n=[/^<!DOCTYPE\s+html/i,/^<html[\s>]/i,/^<\?xml/i,/<(div|span|p|h[1-6]|table|ul|ol|li|a|img|br|hr|strong|em|b|i)[\s>]/i],r=/<[^>]+>/.test(t),i=/^<[^>]+>/.test(t),a=(t.match(/<(?!\/)[^>]+>/g)||[]).length;return n.some(e=>e.test(t))||r&&i&&a>0},tn=e=>{let t=e.trim(),n=[/^#{1,6}\s+.+$/m,/\*\*.*?\*\*/,/\*.*?\*/,/__.*?__/,/_.*?_/,/\[.*?\]\(.*?\)/,/^\s*[-*+]\s+/m,/^\s*\d+\.\s+/m,/`[^`]+`/,/^```/m,/^\|.*\|.*\|$/m,/^>\s+/m,/^\s*---\s*$/m].some(e=>e.test(t)),r=/^<[^>]+>/.test(t);return n&&!r},nn=(e,t,n=!1)=>{let r=t.filter(t=>t.test(e)).length/t.length;return n?1-r:r},rn=e=>{if(typeof e==`object`&&e){let t=e;if(t.type===`AdaptiveCard`||t.$schema?.includes(`adaptivecards.io`))return{type:Zt.ADAPTIVE_CARD,content:e,confidence:1};e=JSON.stringify(e,null,2)}let t=e,n=t.trim();if(!n||n.length<3)return{type:Zt.PLAIN_TEXT,content:t,confidence:1};if(Qt(n)&&$t(n))return{type:Zt.ADAPTIVE_CARD,content:JSON.parse(n),confidence:1};if(en(n)){let e=Math.max(.7,nn(n,[/^<!DOCTYPE\s+html/i,/^<html[\s>]/i,/<(div|span|p|h[1-6]|table|ul|ol|li)[\s>]/i]));return{type:Zt.HTML,content:t,confidence:e}}if(tn(n)){let e=Math.max(.6,nn(n,[/^#{1,6}\s+.+$/m,/\*\*.*?\*\*/,/\[.*?\]\(.*?\)/,/^\s*[-*+]\s+/m,/`[^`]+`/,/^```/m,/^\|.*\|.*\|$/m]));return{type:Zt.MARKDOWN,content:t,confidence:e}}return{type:Zt.PLAIN_TEXT,content:t,confidence:.5}},an=e=>rn(e).type,on=e=>{let{styles:t}=e,{getBaseStyles:n}=ve();return{cardStyles:u.useCallback((r,i)=>({...n(e,r,i),...t}),[n,e,t]),bodyCardDefaultStyles:u.useMemo(()=>({display:`flex`,flexDirection:`column`,justifyContent:`start`,alignItems:`stretch`,overflow:`unset`}),[])}},sn=e=>{let{className:t,cardBody:n,cardBodyClassName:r,cardHeader:i,cardHeaderClassName:a,cardHeaderImage:o,cardHeaderAction:s,cardHeaderDescription:c,cardFooterAction:l,cardFooterClassName:f,cardFooterContent:m,cardPreviewImage:h,cardPreviewLogo:_,cardPreviewPosition:v=`top`}=e,{cardStyles:y,bodyCardDefaultStyles:b}=on(e),x=u.useRef(null),[S,C]=u.useState(0),[w,T]=u.useState(0);return u.useEffect(()=>{let e;return x.current&&(e=new g.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;C(e),T(n)}}),e.observe(x.current)),()=>{e&&e.disconnect()}},[]),(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`div`,{ref:x,children:(0,d.jsxs)(p.Card,{className:t,style:y(S,w),...e,children:[h&&v===`top`&&(0,d.jsxs)(p.CardPreview,{logo:_,children:[h,` `]}),i&&(0,d.jsx)(p.CardHeader,{className:a,image:o,header:i,description:c,action:s}),h&&v===`afterHeader`&&(0,d.jsxs)(p.CardPreview,{logo:_,children:[h,` `]}),n&&(0,d.jsx)(`div`,{className:(0,p.mergeClasses)(r),style:b,children:n}),h&&v===`bottom`&&(0,d.jsxs)(p.CardPreview,{logo:_,children:[h,` `]}),m&&(0,d.jsx)(p.CardFooter,{action:l,className:f,children:m})]})})})},cn=e=>{let{cols:t,verticalSpacing:n,horizontalSpacing:r,styles:i,gridItemAutoFlow:a,minItemWidth:o}=e,{getSpacing:s,getCurrentDevice:c,getBaseStyles:l}=ve();return{gridStyles:u.useCallback((u,d)=>{let f=l(e,u,d),p=`${s(n,u,`vertical`)} ${s(r,u,`horizontal`)}`,m=c(u),h=`repeat(auto-${a??`fill`}, minmax(min(100%, ${o??250}px), 1fr))`;if(t&&t>0){let e=t??0;switch(m){case`ExtraSmall`:e=Math.min(t,1);break;case`Small`:e=Math.min(t,2);break;case`Medium`:e=Math.min(t,3);break;case`Large`:e=Math.min(t,4);break;case`ExtraLarge`:e=Math.min(t,4);break;case`ExtraExtraLarge`:e=Math.min(t,5);break;case`XXXLarge`:e=Math.min(t,6);break;default:e=0}h=`repeat(${e}, minmax(auto, 1fr))`}return{...f,display:`grid`,gridTemplateColumns:h,gap:p,overflow:`hidden`,...i}},[l,e,s,n,r,c,t,i,a,o])}},ln=e=>{let{children:t,className:n}=e,{gridStyles:r}=cn(e),i=u.useRef(null),[a,o]=u.useState(0),[s,c]=u.useState(0);return u.useEffect(()=>{let e;return i.current&&(e=new g.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;o(e),c(n)}}),e.observe(i.current)),()=>{e&&e.disconnect()}},[]),(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`div`,{className:n,style:r(a,s),ref:i,children:t})})},un=e=>{let{maxWith:t}=e,{getBaseStyles:n}=ve();return{rootStyles:u.useCallback((r,i)=>({...n(e,r,i),maxWidth:t}),[n,t,e]),layoutGridStyles:(0,_.css)({display:`grid`,overflow:`hidden`})}},dn={areas:[`header header header`,`sidebar content sidebar`,`footer footer footer`],columns:`1fr 3fr 1fr`,rows:`auto 1fr auto`},fn=e=>{let{className:t,children:n,layoutConfig:r=dn}=e,i=u.useRef(null),[a,o]=u.useState(0),[s,c]=u.useState(0),{rootStyles:l,layoutGridStyles:f}=un({...e,layoutConfig:r}),m=((e,t)=>{let n;return u.useCallback((...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)},[e,t])})((e,t)=>{o(e),c(t)},200);return u.useEffect(()=>{if(!i.current)return;let e=new g.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;m(e,n)}});return e.observe(i.current),()=>e.disconnect()},[m]),(0,d.jsx)(`div`,{id:`-Layout`,className:(0,p.mergeClasses)(t,f),style:{...l(a,s),gridTemplateAreas:r.areas.join(` `),gridTemplateColumns:r.columns,gridTemplateRows:r.rows},ref:i,children:u.Children.map(n,(e,t)=>u.isValidElement(e)?(0,d.jsx)(`div`,{style:{gridArea:e.props?.area??`area-${t}`},children:e},t):e)})},pn=e=>{let{area:t,children:n}=e;return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`div`,{style:{gridArea:t},children:n})})},mn=e=>{let{verticalSpacing:t,horizontalSpacing:n}=e,{getSpacing:r}=ve();return{spaceStyles:u.useCallback(e=>e?n?{width:r(n,e,`horizontal`)}:t?{height:r(t,e,`vertical`)}:{}:{},[r,n,t])}},hn=e=>{let t=u.useRef(null),[n,r]=u.useState(0),{spaceStyles:i}=mn(e);return u.useEffect(()=>{let e;return t.current&&(e=new g.ResizeObserver(e=>{for(let t of e){let{width:e}=t.contentRect;r(e)}}),e.observe(t.current)),()=>{e&&e.disconnect()}},[]),(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`div`,{id:`-space`,style:i(n),ref:t})})},gn=e=>{let{horizontal:t,horizontalAlign:n,verticalAlign:r,verticalFill:i,wrap:a,columnGap:o,RowGap:s}=e,{getBaseStyles:c}=ve();return{stackStyles:u.useCallback((l,u)=>{let d=r||`start`,f=t?n:`start`,p=t?{flexFlow:a?`row wrap`:`row nowrap`,height:`100%`}:{height:`100%`,maxHeight:`100%`},m=c(e,l,u);return{columnGap:o,rowGap:s,display:`flex`,flexDirection:t?`row`:`column`,alignItems:d,justifyContent:f,...p,height:i?`100%`:m.height,...m,...e.styles}},[c,t,n,e,r,i,a])}},H=e=>{let{children:t,className:n}=e,{stackStyles:r}=gn(e),i=u.useRef(null),[a,o]=u.useState(0),[s,c]=u.useState(0);return u.useEffect(()=>{let e;return i.current&&(e=new g.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;o(e),c(n)}}),e.observe(i.current)),()=>{e&&e.disconnect()}},[]),(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`div`,{className:n,style:r(a,s),ref:i,children:t})})},_n=e=>{let{children:t,grow:n,disableShrink:r,shrink:i,order:a,alignSelf:o,verticalFill:s}=e,{getBaseStyles:c}=ve(),l=u.useRef(null),[f,p]=u.useState(0),[m,h]=u.useState(0),_=c(e,f,m);return u.useEffect(()=>{let e;return l.current&&(e=new g.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;p(e),h(n)}}),e.observe(l.current)),()=>{e&&e.disconnect()}},[]),(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`div`,{ref:l,style:{..._,alignSelf:o,order:a,height:s?`100%`:`auto`,flexGrow:n?typeof n==`boolean`?1:n:void 0,flexShrink:r||!n&&!i?0:1,minWidth:0,minHeight:0,width:`auto`},children:t})})},vn=({ratio:e,children:t,maxWidth:n,maxHeight:r,style:i={},...a})=>{let o={position:`relative`,width:`100%`,paddingTop:`${100/e}%`,maxWidth:n||`none`,maxHeight:r||`none`,...i},s={position:`absolute`,top:0,left:0,width:`100%`,height:`100%`};return(0,d.jsx)(`div`,{style:o,...a,children:(0,d.jsx)(`div`,{style:s,children:t})})},yn=e=>{let{styles:t}=e,{getBaseStyles:n}=ve();return{aspectRatioStyles:u.useCallback((r,i)=>({...n(e,r,i),...t}),[n,e,t])}},bn=e=>{let{styles:t}=e,{getBaseStyles:n}=ve();return{centerStyles:u.useCallback((r,i)=>({...n(e,r,i),...t,overflow:`hidden`,display:`flex`,justifyContent:`center`,alignItems:`center`,width:`100%`,height:`100%`}),[n,e,t]),childrenStyles:(0,_.css)({justifyContent:`center`,textAlign:`center`})}},xn=e=>{let{className:t,children:n}=e,r=u.useRef(null),[i,a]=u.useState(0),[o,s]=u.useState(0),{centerStyles:c}=bn(e),l=(e,t)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}};return u.useEffect(()=>{let e=l(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;a(e),s(n)}},200),t=new g.ResizeObserver(t=>{e(t)});return r.current&&t.observe(r.current),()=>{t.disconnect()}},[]),(0,d.jsx)(`div`,{id:`center`,className:t,style:{...c(i,o),display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100%`,width:`100%`},ref:r,children:n})},Sn=e=>{let{maxWidth:t}=e,{getBaseStyles:n}=ve();return{containerStyles:u.useCallback((r,i)=>!r||!i?{}:{...n(e,r,i),maxWidth:t},[n,t,e])}},Cn=e=>{let{className:t,children:n,style:r,alignItems:i=`center`,justifyContent:a=`center`,flexDirection:o=`row`,centerContent:s=!0}=e,c=u.useRef(null),[l,f]=u.useState(0),[p,m]=u.useState(0),{containerStyles:_}=Sn(e),v=u.useMemo(()=>(0,h.debounce)(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;f(e),m(n)}},200),[]);u.useEffect(()=>{let e=new g.ResizeObserver(e=>{v(e)});return c.current&&e.observe(c.current),()=>{e.disconnect(),v.cancel()}},[v]);let y=u.useMemo(()=>{if(!r)return;let{padding:e,margin:t,...n}=r;return n},[r]);return(0,d.jsx)(`div`,{id:`container`,className:t,style:{..._(l,p),display:`flex`,justifyContent:a,alignItems:i,flexDirection:o,...y},ref:c,children:s?(0,d.jsx)(xn,{children:n}):n})},wn=e=>{let[t,n]=(0,u.useState)(!0),[r,i]=(0,u.useState)(!0),a=(0,u.useCallback)(()=>{e&&e.scrollPrev()},[e]),o=(0,u.useCallback)(()=>{e&&e.scrollNext()},[e]),s=(0,u.useCallback)(e=>{n(!e.canScrollPrev()),i(!e.canScrollNext())},[]);return(0,u.useEffect)(()=>{e&&(s(e),e.on(`reInit`,s),e.on(`select`,s))},[e,s]),{prevBtnDisabled:t,nextBtnDisabled:r,onPrevButtonClick:a,onNextButtonClick:o}},Tn=(e,t)=>{let{getCurrentDevice:n}=ve(),r=u.useCallback(()=>{let e=n(t),r=`95%`;switch(e){case`Medium`:r=`45%`;break;case`Large`:r=`calc(95% / 4)`;break;case`ExtraLarge`:r=`calc(95% / 5)`;break;case`ExtraExtraLarge`:r=`calc(95% / 6)`;break;default:r=`95%`;break}return r},[t,n]),i=u.useCallback(()=>{let e=n(t),r=p.tokens.spacingVerticalM;switch(e){case`Medium`:r=p.tokens.spacingVerticalM;break;case`Large`:r=p.tokens.spacingVerticalL;break;case`ExtraLarge`:r=p.tokens.spacingVerticalXL;break;default:r=p.tokens.spacingVerticalM;break}return r},[t,n]);return{enableControls:(0,_.css)({display:`flex`,justifyContent:`space-between`,alignItems:`stretch`,gap:10,padding:5}),embla__viewport:(0,_.css)({overflow:`hidden`,paddingTop:`10px`,paddingBottom:`20px`}),embla__container:(0,_.css)({backfaceVisibility:`hidden`,display:`flex`,touchAction:`pan-y`}),embla:(0,_.css)({".embla":{}}),embla__slide:(0,_.css)({minWidth:0,flex:`0 0 ${r()}`,paddingLeft:`${i()}`}),embla__buttons:(0,_.css)({display:`grid`,gridTemplateColumns:`repeat(2, 1fr)`,gap:0,alignItems:`center`})}},En=e=>{let{styles:t}=e,{getBaseStyles:n}=ve();return{carouselStyles:u.useCallback((r,i)=>({...n(e,r,i),...t}),[n,e,t])}},Dn=()=>({titleStyles:(0,_.css)({display:`-webkit-box`,overflow:`hidden`,textOverflow:`ellipsis`,WebkitLineClamp:`1`,WebkitBoxOrient:`vertical`,textAlign:`start`,height:`25px`})}),On=e=>{let{className:t,items:n,title:r}=e,i=u.useRef(null),[a,o]=u.useState(0),[s,c]=u.useState(0),{carouselStyles:l}=En(e),[f,m]=(0,v.default)(),h=Dn(),{enableControls:_,embla__slide:b,embla__container:x,embla__viewport:S,embla__buttons:C}=Tn(e,a),{prevBtnDisabled:w,nextBtnDisabled:T,onPrevButtonClick:E,onNextButtonClick:D}=wn(m);return u.useEffect(()=>{let e;return i.current&&(e=new g.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;o(e),c(n)}}),o(i.current.clientWidth),c(i.current.clientHeight),e.observe(i.current)),()=>{e&&e.disconnect()}},[]),(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(`div`,{id:`-carousel`,className:(0,p.mergeClasses)(t,`embla`),style:{...l(a,s)},ref:i,children:[(0,d.jsxs)(`div`,{className:_,children:[(0,d.jsx)(p.Subtitle2,{className:h.titleStyles,children:r}),(0,d.jsxs)(`div`,{className:C,children:[(0,d.jsx)(p.Button,{onClick:E,disabled:w,appearance:`subtle`,icon:(0,d.jsx)(y.ChevronLeftRegular,{})}),(0,d.jsx)(p.Button,{onClick:D,disabled:T,appearance:`subtle`,icon:(0,d.jsx)(y.ChevronRightRegular,{})})]})]}),(0,d.jsx)(`div`,{className:S,ref:f,children:(0,d.jsx)(`div`,{className:x,children:n.map((e,t)=>(0,d.jsx)(`div`,{className:b,children:e},t))})})]})})},kn=e=>{let{direction:t=`horizontal`,resizerSize:n=6}=e,r=t===`horizontal`;return{root:(0,_.css)({position:`relative`,width:`100%`,height:`100%`}),pane:e=>{let t=e===void 0?void 0:typeof e==`number`?`${e}px`:e;return(0,_.css)({overflow:`auto`,position:`relative`,...r?{width:t,height:`100%`}:{height:t,width:`100%`}})},secondaryPane:(0,_.css)({flex:1,overflow:`auto`,position:`relative`,minWidth:0,minHeight:0}),resizer:(0,_.css)({flex:`0 0 auto`,...r?{width:n,cursor:`col-resize`,height:`100%`}:{height:n,cursor:`row-resize`,width:`100%`},backgroundColor:p.tokens.colorNeutralStroke1,transition:`background-color 150ms ease`,userSelect:`none`,zIndex:1}),resizerActive:(0,_.css)({backgroundColor:p.tokens.colorBrandStroke1}),resizerGrip:(0,_.css)({gap:`2px`}),gripDot:(0,_.css)({width:3,height:3,borderRadius:`50%`,backgroundColor:p.tokens.colorNeutralForeground3})}},U={xs:p.tokens.spacingHorizontalXS,s:p.tokens.spacingHorizontalS,m:p.tokens.spacingHorizontalM,l:p.tokens.spacingHorizontalL,xl:p.tokens.spacingHorizontalXL,xxl:p.tokens.spacingHorizontalXXL},W=u.default.memo(u.default.forwardRef(({direction:e=`vertical`,justifyContent:t=`flex-start`,alignItems:n=`stretch`,gap:r,columnGap:i,rowGap:a,margin:o,padding:s,marginTop:c,marginBottom:l,marginLeft:u,marginRight:f,paddingTop:m,paddingBottom:h,paddingLeft:g,paddingRight:v,width:y,height:b,wrap:x=!1,children:S,style:C,className:w,overflow:T,background:E},D)=>(0,d.jsx)(`div`,{ref:D,className:(0,p.mergeClasses)(w,(0,_.css)({display:`flex`,flexDirection:e===`horizontal`?`row`:`column`,justifyContent:t,alignItems:n,gap:r&&U[r]?U[r]:r,columnGap:i&&U[i]?U[i]:i,rowGap:a&&U[a]?U[a]:a,margin:o&&U[o]?U[o]:o,padding:s&&U[s]?U[s]:s,marginTop:c&&U[c]?U[c]:c,marginBottom:l&&U[l]?U[l]:l,marginLeft:u&&U[u]?U[u]:u,marginRight:f&&U[f]?U[f]:f,paddingTop:m&&U[m]?U[m]:m,paddingBottom:h&&U[h]?U[h]:h,paddingLeft:g&&U[g]?U[g]:g,paddingRight:v&&U[v]?U[v]:v,width:y,height:b,overflow:T,flexWrap:x?`wrap`:`nowrap`,backgroundColor:E,...C})),children:S}))),An=e=>{let{direction:t=`horizontal`,defaultSize:n=`50%`,minSize:r=100,maxSize:i=1/0,minSecondarySize:a=100,resizable:o=!0,onResize:s,onResizeEnd:c,primaryContent:l,secondaryContent:f,className:p,styles:m}=e,h=kn(e),g=t===`horizontal`,_=u.useRef(null),v=u.useRef(null),[y,b]=u.useState(null),[x,S]=u.useState(!1),[C,w]=u.useState(!1);u.useEffect(()=>{if(y!==null||!_.current)return;let e=_.current.getBoundingClientRect(),t=g?e.width:e.height;if(typeof n==`number`)b(Math.min(Math.max(n,r),i));else if(typeof n==`string`&&n.endsWith(`%`)){let e=parseFloat(n)/100;b(Math.min(Math.max(t*e,r),i))}else b(t/2)},[n,r,i,g,y]);let T=u.useCallback(t=>{if(!_.current)return t;let n=_.current.getBoundingClientRect(),o=(g?n.width:n.height)-(e.resizerSize??6)-a;return Math.min(Math.max(t,r),Math.min(i,o))},[g,i,r,a,e.resizerSize]),E=u.useCallback(e=>{if(!o)return;e.preventDefault(),S(!0);let t=g?e.clientX:e.clientY,n=y??0,r=e=>{let r=T(n+((g?e.clientX:e.clientY)-t));b(r),s?.(r)},i=()=>{if(S(!1),document.removeEventListener(`mousemove`,r),document.removeEventListener(`mouseup`,i),v.current){let e=g?v.current.getBoundingClientRect().width:v.current.getBoundingClientRect().height;c?.(e)}};document.addEventListener(`mousemove`,r),document.addEventListener(`mouseup`,i)},[o,g,y,T,s,c]),D=u.useCallback(e=>{if(!o)return;S(!0);let t=e.touches[0],n=g?t.clientX:t.clientY,r=y??0,i=e=>{let t=e.touches[0],i=T(r+((g?t.clientX:t.clientY)-n));b(i),s?.(i)},a=()=>{if(S(!1),document.removeEventListener(`touchmove`,i),document.removeEventListener(`touchend`,a),v.current){let e=g?v.current.getBoundingClientRect().width:v.current.getBoundingClientRect().height;c?.(e)}};document.addEventListener(`touchmove`,i,{passive:!1}),document.addEventListener(`touchend`,a)},[o,g,y,T,s,c]),O=u.useCallback(e=>{if(!o||y===null)return;let t=e.shiftKey?50:10,n=0;if(g?e.key===`ArrowLeft`?n=-t:e.key===`ArrowRight`&&(n=t):e.key===`ArrowUp`?n=-t:e.key===`ArrowDown`&&(n=t),n!==0){e.preventDefault();let t=T(y+n);b(t),s?.(t),c?.(t)}},[o,y,g,T,s,c]);u.useEffect(()=>(x?(document.body.style.userSelect=`none`,document.body.style.cursor=g?`col-resize`:`row-resize`):(document.body.style.userSelect=``,document.body.style.cursor=``),()=>{document.body.style.userSelect=``,document.body.style.cursor=``}),[x,g]);let k=u.useRef(null),A=[h.resizer,C||x?h.resizerActive:``].filter(Boolean).join(` `);return u.useEffect(()=>{if(!o||!k.current)return;let e=k.current,t=e=>E(e),n=e=>D(e),r=e=>O(e),i=()=>w(!0),a=()=>w(!1);return e.addEventListener(`mousedown`,t),e.addEventListener(`touchstart`,n),e.addEventListener(`keydown`,r),e.addEventListener(`mouseenter`,i),e.addEventListener(`mouseleave`,a),()=>{e.removeEventListener(`mousedown`,t),e.removeEventListener(`touchstart`,n),e.removeEventListener(`keydown`,r),e.removeEventListener(`mouseenter`,i),e.removeEventListener(`mouseleave`,a)}},[o,E,D,O]),(0,d.jsxs)(W,{ref:_,className:[h.root,p].filter(Boolean).join(` `),style:{height:`100%`,width:`100%`,...m},direction:g?`horizontal`:`vertical`,overflow:`hidden`,children:[(0,d.jsx)(W,{ref:v,className:h.pane(y??void 0),style:{flex:`0 0 auto`},children:l}),o&&(0,d.jsx)(W,{ref:k,className:A,alignItems:`center`,justifyContent:`center`,style:{flex:`0 0 auto`},children:(0,d.jsxs)(W,{className:h.resizerGrip,direction:g?`vertical`:`horizontal`,alignItems:`center`,justifyContent:`center`,children:[(0,d.jsx)(W,{className:h.gripDot,children:``}),(0,d.jsx)(W,{className:h.gripDot,children:``}),(0,d.jsx)(W,{className:h.gripDot,children:``})]})}),(0,d.jsx)(W,{className:h.secondaryPane,style:{flex:1,minWidth:0,minHeight:0},children:f})]})},jn=({anchorPoint:e,isOpen:t,onClose:n,excludeRefs:r,children:i,theme:a})=>{let o=(0,u.useRef)(null),[s,c]=(0,u.useState)(null);(0,u.useLayoutEffect)(()=>{if(!t){c(null);return}if(o.current){let t=o.current.getBoundingClientRect(),n=e.left,r=e.top;n+t.width>window.innerWidth&&(n=window.innerWidth-t.width-10),r+t.height>window.innerHeight&&(r=window.innerHeight-t.height-10),c({left:n,top:r})}},[e,t,i]);let l=u.default.useCallback(e=>{let t=e.target;if(o.current&&!o.current.contains(t)){if(r&&r.some(e=>e.current&&e.current.contains(t)))return;n()}},[n,r]);if((0,u.useEffect)(()=>{if(!t)return;let e=requestAnimationFrame(()=>{document.addEventListener(`mousedown`,l)}),r=e=>{e.key===`Escape`&&n()};return document.addEventListener(`keydown`,r),()=>{cancelAnimationFrame(e),document.removeEventListener(`mousedown`,l),document.removeEventListener(`keydown`,r)}},[t,l,n]),!t)return null;let f=s||e;return b.default.createPortal(a?(0,d.jsx)(p.FluentProvider,{theme:a,children:(0,d.jsx)(p.Card,{ref:o,style:{position:`fixed`,zIndex:1e3,top:f.top,left:f.left},children:i})}):(0,d.jsx)(p.Card,{ref:o,style:{position:`fixed`,zIndex:1e3,top:f.top,left:f.left},children:i}),document.body)},Mn=(0,p.makeStyles)({labelContainer:{display:`flex`,flexDirection:`row`,justifyContent:`flex-start`,alignItems:`center`,...p.shorthands.gap(`6px`)},iconStyles:{width:`26px`},item:{paddingLeft:`15px`}}),Nn=e=>{let{label:t,icon:n,isRequired:r}=e,i=Mn();return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(`div`,{className:i.labelContainer,children:[n&&u.isValidElement(n)?n:(0,d.jsx)(x.Icon,{icon:n,className:i.iconStyles,width:`20px`,height:`20px`,color:p.tokens.colorBrandForeground1}),(0,d.jsx)(p.Caption1,{style:{color:p.tokens.colorBrandForeground1},children:t}),(0,d.jsx)(p.Caption1,{style:{color:p.tokens.colorPaletteRedForeground1},children:r?` *`:``})]})})},Pn=(0,p.makeStyles)({root:{display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100%`,width:`100%`},spinner:{width:`100px`,height:`100px`}}),Fn=e=>{let{size:t,label:n,labelPosition:r,style:i,className:a}=e,o=Pn();return(0,d.jsx)(`div`,{className:o.root,children:(0,d.jsx)(p.Spinner,{style:i,className:(0,p.mergeClasses)(o.spinner,a),size:t,label:n,labelPosition:r})})},In={xs:p.tokens.fontSizeBase200,s:p.tokens.fontSizeBase300,m:p.tokens.fontSizeBase400,l:p.tokens.fontSizeBase500,xl:p.tokens.fontSizeBase600,xxl:p.tokens.fontSizeHero700},G={xs:p.tokens.spacingHorizontalXS,s:p.tokens.spacingHorizontalS,m:p.tokens.spacingHorizontalM,l:p.tokens.spacingHorizontalL,xl:p.tokens.spacingHorizontalXL,xxl:p.tokens.spacingHorizontalXXL},Ln={regular:p.tokens.fontWeightRegular,semibold:p.tokens.fontWeightSemibold,bold:p.tokens.fontWeightBold},Rn=e=>{let{fontSize:t,fontFamily:n,fontWeight:r,numberOfLines:i,as:a,padding:o,paddingTop:s,paddingBottom:c,paddingLeft:l,paddingRight:u,margin:f,marginTop:m,marginBottom:h,marginLeft:g,marginRight:v,children:y,style:b,className:x,color:S,block:C,truncate:w,wrap:T}=e,E=(0,_.css)({color:S,padding:o&&G[o]?G[o]:o,paddingTop:s&&G[s]?G[s]:s,paddingBottom:c&&G[c]?G[c]:c,paddingLeft:l&&G[l]?G[l]:l,paddingRight:u&&G[u]?G[u]:u,margin:f&&G[f]?G[f]:f,marginTop:m&&G[m]?G[m]:m,marginBottom:h&&G[h]?G[h]:h,marginLeft:g&&G[g]?G[g]:g,marginRight:v&&G[v]?G[v]:v}),D={...b,...n?{fontFamily:n}:{},...t?{fontSize:In[t]?In[t]:t}:{},...r?{fontWeight:Ln[r]?Ln[r]:r}:{},...i?{display:`-webkit-box`,WebkitBoxOrient:`vertical`,overflow:`hidden`,WebkitLineClamp:i}:{}};return(0,d.jsx)(p.Text,{as:a,className:(0,p.mergeClasses)(x,E),style:D,block:C,truncate:w,wrap:T,children:y})},zn=e=>{let{onSelected:t,value:n,styles:r,options:i,apparence:a,shape:o,label:s}=e,c=u.useRef(),[l,f]=u.useState(n??i[0]),[m,h]=u.useState({option:[n?n?.key:i?.[0]?.key]}),g=u.useRef(null);u.useEffect(()=>{n!==void 0&&(f(n),h({option:[n.key]})),c.current=i.find(e=>e.key===(n?.key??i[0]?.key))?.icon},[n]);let[_,v]=u.useState(!1),y=u.useCallback((e,t)=>{v(t.open)},[]),b=u.useCallback(e=>e?.text??``,[]),x=u.useCallback((e,{name:n,checkedItems:r})=>{if(n===`option`){let e=r[0];f(i.find(t=>t.key===e)),h({option:r}),c.current=i.find(t=>t.key===e)?.icon,t(i.find(t=>t.key===e))}},[i,t]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(p.Field,{label:s,style:r,ref:g,children:(0,d.jsxs)(p.Menu,{open:_,onOpenChange:y,children:[(0,d.jsx)(p.MenuTrigger,{disableButtonEnhancement:!0,children:(0,d.jsx)(p.MenuButton,{shape:o??`circular`,icon:c.current,appearance:a??`secondary`,children:b(l)??`No data available`})}),(0,d.jsx)(p.MenuPopover,{children:(0,d.jsx)(p.MenuList,{onCheckedValueChange:x,checkedValues:m,style:{width:g.current?.offsetWidth},children:i.map(e=>(0,d.jsx)(p.MenuItemRadio,{name:`option`,value:e.key,icon:e.icon,disabled:e.disabled,children:b(e)},e.key))})})]})})})},Bn=()=>({styles:{container:(0,_.css)({display:`flex`,alignItems:`center`,alignContent:`center`,overflow:`hidden`,whiteSpace:`nowrap`,padding:`8px`,backgroundColor:`transparent`}),breadcrumbItem:(0,_.css)({minWidth:`fit-content`,padding:0,margin:`0px`}),separator:(0,_.css)({marginRight:`8px`})},getStyles:(e,t)=>{let{icon:n}=e;switch(t){case`small`:return(0,_.css)({fontSize:`12px`,padding:`4px`,paddingLeft:n?`0px`:`4px`});case`medium`:return(0,_.css)({fontSize:`14px`,padding:`6px`,paddingLeft:n?`0px`:`6px`});case`large`:return(0,_.css)({fontSize:`16px`,padding:`8px`,paddingLeft:n?`0px`:`8px`});case`current`:return(0,_.css)({fontWeight:p.tokens.fontWeightBold,cursor:`default`,display:`-webkit-box`,"-webkit-line-clamp":`1`,"-webkit-box-orient":`vertical`,overflow:`hidden`,textAlign:`start`,textOverflow:`ellipsis`,wordBreak:`break-word`,fontFamily:p.tokens.fontFamilyBase});default:return(0,_.css)({fontSize:`14px`,padding:`6px`,paddingLeft:n?`0px`:`6px`})}}}),Vn=({items:e,theme:t,size:n=`medium`})=>{let[r,i]=(0,u.useState)(!1),a=(0,u.useRef)(null),o=(0,u.useRef)(null),[s,c]=(0,u.useState)({top:0,left:0,position:`absolute`}),{getStyles:l}=Bn();return(0,u.useEffect)(()=>{let e=e=>{!a.current?.contains(e.target)&&!o.current?.contains(e.target)&&r&&i(!1)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[r]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(p.Button,{ref:a,icon:(0,d.jsx)(y.MoreHorizontalRegular,{}),appearance:`transparent`,onClick:()=>{if(a.current){let e=a.current.getBoundingClientRect(),t=window.innerWidth,n=window.innerHeight,r=o.current?.offsetWidth||200,s=o.current?.offsetHeight||100,l=e.bottom+window.scrollY,u=e.left+window.scrollX;u+r>t&&(u=t-r-10),l+s>n&&(l=e.top+window.scrollY-s),c({top:l,left:u,position:`absolute`}),i(e=>!e)}}}),r&&(0,b.createPortal)(t?(0,d.jsx)(p.FluentProvider,{theme:t,children:(0,d.jsx)(p.Card,{ref:o,style:{...s,zIndex:1e3,padding:`8px`,minWidth:`150px`},children:e.map((e,t)=>(0,d.jsx)(p.Button,{icon:e.icon?e.icon:null,appearance:`transparent`,onClick:()=>{e.onClick?.(),i(!1)},children:(0,d.jsx)(p.Text,{className:l(e,n),children:e.label})},`overflow-${t}`))})}):(0,d.jsx)(p.Card,{ref:o,style:{...s,zIndex:1e3,padding:`8px`,minWidth:`150px`},children:e.map((e,t)=>(0,d.jsx)(p.Button,{icon:e.icon?e.icon:null,appearance:`transparent`,onClick:()=>{e.onClick?.(),i(!1)},children:(0,d.jsx)(p.Text,{className:l(e,n),children:e.label})},`overflow-${t}`))}),document.body)]})},Hn=(e,t)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}},Un=({items:e,maxWidth:t=`100%`,styles:n,theme:r,size:i=`medium`,currentIndex:a=e.length-1,className:o})=>{let{styles:s,getStyles:c}=Bn(),l=(0,u.useRef)(null),[f,m]=(0,u.useState)([]),[h,_]=(0,u.useState)([]);return(0,u.useEffect)(()=>{let t=()=>{if(!l.current)return;let t=l.current.offsetWidth,n=0,r=[],i=[];e.forEach(e=>{n+80<=t-50?(r.push(e),n+=80):i.push(e)}),m(r),_(i)},n=Hn(t,100),r=new g.ResizeObserver(()=>{n()});return l.current&&r.observe(l.current),t(),()=>{r.disconnect()}},[e]),(0,d.jsx)(`div`,{ref:l,className:(0,p.mergeClasses)(s.container,o),style:{maxWidth:t,...n},children:(0,d.jsxs)(H,{horizontal:!0,verticalAlign:`center`,horizontalAlign:`start`,children:[f.map((e,t)=>(0,d.jsxs)(u.default.Fragment,{children:[t===a?(0,d.jsxs)(H,{horizontal:!0,verticalAlign:`center`,horizontalAlign:`start`,columnGap:5,styles:{overflow:`hidden`},children:[e.icon?u.default.cloneElement(e.icon,{style:{fontSize:i===`large`?`20px`:i===`medium`?`16px`:`12px`}}):null,(0,d.jsx)(p.Text,{className:(0,p.mergeClasses)(s.breadcrumbItem,c(e,i),c(e,`current`)),"aria-current":`page`,children:e.label},e.label)]}):(0,d.jsx)(p.Button,{icon:e.icon?e.icon:null,appearance:`transparent`,className:`${s.breadcrumbItem}`,onClick:e.onClick,children:(0,d.jsx)(p.Text,{className:c(e,i),children:e.label})},e.label),t<f.length-1&&(0,d.jsx)(y.ChevronRightRegular,{style:{fontSize:i===`large`?`20px`:i===`medium`?`16px`:`12px`}})]},e.label??`breadcrumb-${t}`)),h.length>0&&(0,d.jsx)(Vn,{items:h,theme:r})]})})},Wn=({icon:e,hoverIcon:t,imageSrc:n,width:r=24,height:i=24,color:a,hoverColor:o,onClick:s,enabled:c=!0})=>{let l=a||p.tokens.colorBrandBackground,f=o||p.tokens.colorBrandBackgroundHover,m=p.tokens.fontFamilyBase,[h,g]=(0,u.useState)(!1),_=(0,u.useCallback)(()=>{c&&g(!0)},[c]),v=(0,u.useCallback)(()=>{c&&g(!1)},[c]),y=(0,u.useMemo)(()=>c&&h&&t?t:e,[h,t,e,c]),b=(0,u.useMemo)(()=>({width:r,height:i,color:h?f:l,display:`flex`,alignItems:`center`,justifyContent:`center`,opacity:c?1:.5,fontFamily:m,fontSize:`inherit`}),[r,i,h,f,l,c,m]),x=(0,u.useMemo)(()=>({border:`none`,background:`none`,padding:0,cursor:c?`pointer`:`default`}),[c]),S=(0,u.useMemo)(()=>({width:r,height:i,objectFit:`contain`,opacity:c?1:.5}),[r,i,c]);return(0,d.jsx)(`button`,{onClick:c?s:void 0,onMouseEnter:_,onMouseLeave:v,disabled:!c,style:x,children:n?(0,d.jsx)(`img`,{src:n,alt:`icon`,style:S}):u.default.cloneElement(y,{style:{...y.props.style,...b}})})},Gn=u.default.memo(Wn),Kn=()=>({getSpanSlots:u.useCallback((e,t)=>{let n=new Date(e),r=new Date(t),i=n.getHours(),a=n.getMinutes(),o=i*2+(a>=1?1:0),s=r.getHours(),c=r.getMinutes(),l=s*2+(c>=1?2:0);return{spanSlots:l-o,startSlot:o,endSlot:l}},[]),generateLightAndHoverColors:u.useCallback((e,t=20,n=10)=>{let r=e=>{let t=parseInt(e.slice(1,3),16)/255,n=parseInt(e.slice(3,5),16)/255,r=parseInt(e.slice(5,7),16)/255,i=Math.max(t,n,r),a=Math.min(t,n,r),o=i-a,s=0,c=0,l=(i+a)/2;if(o!==0){switch(c=l>.5?o/(2-i-a):o/(i+a),i){case t:s=(n-r)/o+(n<r?6:0);break;case n:s=(r-t)/o+2;break;case r:s=(t-n)/o+4;break}s/=6}return{h:s*360,s:c*100,l:l*100}},i=(e,t,n)=>{let r=t*Math.min(n,100-n)/100,i=t=>{let i=(t+e/30)%12,a=n-r*Math.max(Math.min(i-3,9-i,1),-1);return Math.round(255*a).toString(16).padStart(2,`0`)};return`#${i(0)}${i(8)}${i(4)}`},{h:a,s:o,l:s}=r(e);return{lightColor:i(a,o,Math.min(s+t,100)),hoverColor:i(a,o,Math.min(s+n,100))}},[]),getEventColors:u.useCallback(e=>{let t={backgroundColor:p.tokens.colorNeutralBackground3,hoverColor:p.tokens.colorNeutralBackground3Hover};return{"no category":t,meeting:{backgroundColor:p.tokens.colorPaletteBlueBackground2,hoverColor:p.tokens.colorPaletteBlueBorderActive},appointment:{backgroundColor:p.tokens.colorPaletteGreenBackground2,hoverColor:p.tokens.colorPaletteGreenBorderActive},task:{backgroundColor:p.tokens.colorPaletteRedBackground2,hoverColor:p.tokens.colorPaletteRedBorderActive},deadline:{backgroundColor:p.tokens.colorPaletteYellowBackground2,hoverColor:p.tokens.colorPaletteYellowBorderActive},holiday:{backgroundColor:p.tokens.colorPalettePurpleBackground2,hoverColor:p.tokens.colorPalettePurpleBorderActive},celebration:{backgroundColor:p.tokens.colorPaletteDarkOrangeBackground2,hoverColor:p.tokens.colorPaletteDarkOrangeBorderActive},reminder:{backgroundColor:p.tokens.colorPaletteTealBackground2,hoverColor:p.tokens.colorPaletteTealBorderActive},workshop:{backgroundColor:p.tokens.colorPaletteTealBackground2,hoverColor:p.tokens.colorPaletteTealBorderActive},webinar:{backgroundColor:p.tokens.colorPaletteMagentaBackground2,hoverColor:p.tokens.colorPaletteMagentaBorderActive},conference:{backgroundColor:p.tokens.colorPaletteBrownBackground2,hoverColor:p.tokens.colorPaletteBrownBorderActive}}[e.toLowerCase()]||t},[]),generateColor:u.useCallback(e=>{let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);let n=(t&16777215).toString(16).toUpperCase();return`#${`00000`.substring(0,6-n.length)+n}`},[]),getCalendarColors:u.useCallback(e=>{let t={beige:{backgroundColor:p.tokens.colorPaletteBeigeBackground2,hoverColor:p.tokens.colorPaletteBeigeBorderActive},blue:{backgroundColor:p.tokens.colorPaletteBlueBackground2,hoverColor:p.tokens.colorPaletteBlueBorderActive},brown:{backgroundColor:p.tokens.colorPaletteBrownBackground2,hoverColor:p.tokens.colorPaletteBrownBorderActive},gold:{backgroundColor:p.tokens.colorPaletteGoldBackground2,hoverColor:p.tokens.colorPaletteGoldBorderActive},lavender:{backgroundColor:p.tokens.colorPaletteLavenderBackground2,hoverColor:p.tokens.colorPaletteLavenderBorderActive},magenta:{backgroundColor:p.tokens.colorPaletteMagentaBackground2,hoverColor:p.tokens.colorPaletteMagentaBorderActive},navy:{backgroundColor:p.tokens.colorPaletteNavyBackground2,hoverColor:p.tokens.colorPaletteNavyBorderActive},pink:{backgroundColor:p.tokens.colorPalettePinkBackground2,hoverColor:p.tokens.colorPalettePinkBorderActive},plum:{backgroundColor:p.tokens.colorPalettePlumBackground2,hoverColor:p.tokens.colorPalettePlumBorderActive},purple:{backgroundColor:p.tokens.colorPalettePurpleBackground2,hoverColor:p.tokens.colorPalettePurpleBorderActive},red:{backgroundColor:p.tokens.colorPaletteRedBackground2,hoverColor:p.tokens.colorPaletteRedBorderActive},teal:{backgroundColor:p.tokens.colorPaletteTealBackground2,hoverColor:p.tokens.colorPaletteTealBorderActive},anchor:{backgroundColor:p.tokens.colorPaletteAnchorBackground2,hoverColor:p.tokens.colorPaletteAnchorBorderActive},"dark-red":{backgroundColor:p.tokens.colorPaletteDarkRedBackground2,hoverColor:p.tokens.colorPaletteDarkRedBorderActive},cranberry:{backgroundColor:p.tokens.colorPaletteCranberryBackground2,hoverColor:p.tokens.colorPaletteCranberryBorderActive},pumpkin:{backgroundColor:p.tokens.colorPalettePumpkinBackground2,hoverColor:p.tokens.colorPalettePumpkinBorderActive},peach:{backgroundColor:p.tokens.colorPalettePeachBackground2,hoverColor:p.tokens.colorPalettePeachBorderActive},marigold:{backgroundColor:p.tokens.colorPaletteMarigoldBackground2,hoverColor:p.tokens.colorPaletteMarigoldBorderActive},brass:{backgroundColor:p.tokens.colorPaletteBrassBackground2,hoverColor:p.tokens.colorPaletteBrassBorderActive},forest:{backgroundColor:p.tokens.colorPaletteForestBackground2,hoverColor:p.tokens.colorPaletteForestBorderActive},seafoam:{backgroundColor:p.tokens.colorPaletteSeafoamBackground2,hoverColor:p.tokens.colorPaletteSeafoamBorderActive},"dark-green":{backgroundColor:p.tokens.colorPaletteDarkGreenBackground2,hoverColor:p.tokens.colorPaletteDarkGreenBorderActive},"light-teal":{backgroundColor:p.tokens.colorPaletteLightTealBackground2,hoverColor:p.tokens.colorPaletteLightTealBorderActive},steel:{backgroundColor:p.tokens.colorPaletteSteelBackground2,hoverColor:p.tokens.colorPaletteSteelBorderActive},"royal-blue":{backgroundColor:p.tokens.colorPaletteRoyalBlueBackground2,hoverColor:p.tokens.colorPaletteRoyalBlueBorderActive},cornflower:{backgroundColor:p.tokens.colorPaletteCornflowerBackground2,hoverColor:p.tokens.colorPaletteCornflowerBorderActive},grape:{backgroundColor:p.tokens.colorPaletteGrapeBackground2,hoverColor:p.tokens.colorPaletteGrapeBorderActive},lilac:{backgroundColor:p.tokens.colorPaletteLilacBackground2,hoverColor:p.tokens.colorPaletteLilacBorderActive},mink:{backgroundColor:p.tokens.colorPaletteMinkBackground2,hoverColor:p.tokens.colorPaletteMinkBorderActive},platinum:{backgroundColor:p.tokens.colorPalettePlatinumBackground2,hoverColor:p.tokens.colorPalettePlatinumBorderActive}},n=t[`royal-blue`];return t[e]||n},[]),formatDate:u.useCallback((e,t)=>(0,m.format)((0,m.parseISO)(e),t),[])}),qn={start:`Start`,end:`End`,location:`Location`,attendees:`Attendees`,details:`Details`},Jn=`32px`,Yn=e=>({styles:{banner:(0,_.css)({display:`flex`,justifyContent:`center`,alignContent:`center`,alignItems:`center`,padding:`5px 10px 0px 10px`}),fieldContainer:(0,_.css)({paddingLeft:Jn}),title:(0,_.css)({lineClamp:2,overflow:`hidden`,display:`-webkit-box`,WebkitBoxOrient:`vertical`,wordBreak:`break-word`,WebkitLineClamp:2})}}),Xn=({fieldLabel:e,fieldValue:t,icon:n})=>(0,d.jsxs)(H,{children:[(0,d.jsx)(Nn,{label:e,icon:n}),(0,d.jsx)(H,{paddingLeft:Jn,children:(0,d.jsx)(p.Body1,{children:t})})]}),Zn=e=>{let{event:t,strings:n=qn}=e,{title:r,start:i,end:a,location:o,category:s,attendees:c,weblink:l}=t,{styles:f}=Yn(t),{formatDate:m}=Kn(),h=m(i,`PPp`),g=m(a,`PPp`),_=(0,p.partitionAvatarGroupItems)({items:c?.map(e=>e.id)||[]}),v=u.useCallback(e=>c?.find(t=>t.id===e)||void 0,[c]),y=u.useCallback(()=>(0,d.jsxs)(H,{children:[(0,d.jsx)(Nn,{label:n.attendees,icon:`ph:users-three`}),(0,d.jsx)(H,{paddingLeft:Jn,children:(0,d.jsxs)(p.AvatarGroup,{layout:`stack`,children:[_.inlineItems.map(e=>(0,d.jsx)(p.AvatarGroupItem,{name:v(e)?.name,image:{src:v(e)?.imageUrl}},e)),_.overflowItems&&(0,d.jsx)(p.AvatarGroupPopover,{children:_.overflowItems.map(e=>(0,d.jsx)(p.AvatarGroupItem,{name:v(e)?.name,image:{src:v(e)?.imageUrl}},e))})]})})]}),[_,v,n.attendees]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(sn,{appearance:`subtle`,padding:`m`,paddingTop:`s`,width:`250px`,cardBody:(0,d.jsxs)(H,{RowGap:10,children:[(0,d.jsx)(`div`,{className:f.banner,children:(0,d.jsx)(p.Subtitle1,{className:f.title,children:r})}),(0,d.jsx)(p.Divider,{}),s&&(0,d.jsx)(H,{horizontal:!0,horizontalAlign:`end`,width:`100%`,children:(0,d.jsx)(p.Badge,{appearance:`filled`,children:s})}),(0,d.jsx)(Xn,{fieldLabel:n.start,fieldValue:h,icon:`mingcute:time-line`}),(0,d.jsx)(Xn,{fieldLabel:n.end,fieldValue:g,icon:`mingcute:time-line`}),(0,d.jsx)(Xn,{fieldLabel:n.location,fieldValue:o,icon:`mingcute:location-line`}),(0,d.jsx)(y,{})]}),cardFooterContent:(0,d.jsx)(H,{horizontal:!0,horizontalAlign:`end`,width:`100%`,children:(0,d.jsx)(p.Button,{appearance:`subtle`,onClick:()=>{window.open(l,`_blank`)},children:n.details})})})})},Qn=()=>({styles:{calendarWrapper:(0,_.css)({padding:`20px`,paddingTop:`10px`,overflow:`auto`,flex:1,display:`grid`,gridTemplateColumns:`repeat(7, 1fr)`,gridTemplateRows:`auto`,gridAutoRows:`minmax(100px, 1fr)`,gap:`1px`,width:`calc(100% - 40px)`}),header:(0,_.css)({display:`flex`,justifyContent:`start`,gap:`10px`,alignItems:`center`,padding:`16px`}),dayHeader:(0,_.css)({textAlign:`start`,padding:`8px`,borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`}),day:(0,_.css)({display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,border:`1px solid ${p.tokens.colorNeutralStroke1}`,backgroundColor:p.tokens.colorNeutralBackground1,position:`relative`}),otherMonthDay:(0,_.css)({color:p.tokens.colorNeutralStroke2,backgroundColor:p.tokens.colorNeutralBackground2}),cardDay:(0,_.css)({height:`100%`,minHeight:100,borderRadius:0,overflow:`hidden !important`,rowGap:5}),cardDayOnHover:(0,_.css)({":hover":{backgroundColor:p.tokens.colorNeutralBackground2}}),currentDay:(0,_.css)({borderTop:`5px solid ${p.tokens.colorBrandBackground}`}),currentDayLabel:(0,_.css)({color:p.tokens.colorBrandBackground,fontWeight:600}),eventCard:(0,_.css)({display:`flex`,flexDirection:`column`,alignItems:`flex-start`,zIndex:1}),eventContainer:(0,_.css)({display:`flex`,flexDirection:`column`,overflowY:`auto`,paddingTop:`5px`,paddingBottom:`5px`,paddingLeft:`5px`,paddingRight:`5px`,"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),eventCardWeekView:(0,_.css)({backgroundColor:p.tokens.colorBrandBackground,color:p.tokens.colorNeutralForegroundOnBrand,borderRadius:`4px`,padding:`4px`,margin:`2px`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,height:`100%`}),popoverContent:(0,_.css)({padding:0,borderTopWidth:20,borderTopStyle:`solid`}),cardMonthTitle:(0,_.css)({display:`-webkit-box`,"-webkit-line-clamp":`1`,"-webkit-box-orient":`vertical`,textAlign:`start`,textOverflow:`ellipsis`,paddingLeft:`8px`,wordBreak:`break-word`,overflow:`hidden`})},applyEventHouverColorClass:(e,t)=>(0,_.css)({backgroundColor:e??p.tokens.colorBrandBackground,":hover":{backgroundColor:t??p.tokens.colorBrandBackgroundHover}})}),$n=e=>{let t=(0,p.useId)(),{events:n,date:r,onCardHoverChange:i,columnHeight:a}=e,{styles:o,applyEventHouverColorClass:s}=Qn(),c=u.useRef(null),{getEventColors:l,getCalendarColors:f}=Kn(),h=u.useCallback(e=>{i&&i(!0,e)},[i]),g=u.useCallback(e=>{i&&i(!1,e)},[i]),_=u.useCallback(e=>{c.current?.setTarget(e)},[c]),v=u.useCallback((e,t,n)=>(0,d.jsx)(`div`,{ref:_,children:(0,d.jsx)(sn,{className:(0,p.mergeClasses)(o.eventCard,s(n.backgroundColor,n.backgroundColor)),paddingTop:`4px`,paddingBottom:`4px`,paddingLeft:`8px`,paddingRight:`8px`,marginTop:e===0?`0px`:`5px`,cardHeader:(0,d.jsx)(p.Caption1,{className:o.cardMonthTitle,children:t.title}),onMouseEnter:()=>h(t.title),onMouseLeave:()=>g(t.title)})},t.id??`card-${e}`),[h,g,s]),y=u.useCallback((e,n,r)=>(0,d.jsxs)(p.Popover,{withArrow:!0,mouseLeaveDelay:30,closeOnScroll:!0,closeOnIframeFocus:!0,openOnHover:!0,children:[(0,d.jsx)(p.PopoverTrigger,{children:v(n,e,r)}),(0,d.jsx)(p.PopoverSurface,{"aria-labelledby":t,className:(0,p.mergeClasses)(o.popoverContent),children:(0,d.jsx)(Zn,{event:e})})]},n),[v,t,o.popoverContent]);return!n||!n?.length?(0,d.jsx)(d.Fragment,{children:` `}):(0,d.jsx)(`div`,{style:{height:a},className:o.eventContainer,children:n.map((e,t)=>{if(!(0,m.isWithinInterval)(r,{start:(0,m.startOfDay)(new Date(e.start)),end:(0,m.endOfDay)(new Date(e.end))}))return null;let n;n=e.color?f(e.color):l(e.category);let i=e.onRenderInMonthView?.(e),a=e.id??`event-${t}`;return u.isValidElement(i)?u.cloneElement(i,{key:a,className:(0,p.mergeClasses)(i.props.className,o.eventCard)}):e.enableOnHouver?y(e,t,n):v(t,e,n)})})},er=e=>{let{day:t,currentMonth:n,events:r,date:i,columnHeight:a,onDayClick:o}=e,{styles:s}=Qn(),c=new Date,[l,f]=u.useState(!1),h=u.useMemo(()=>(0,m.isSameDay)(i,c),[i,c]),g=u.useMemo(()=>(0,d.jsx)(H,{horizontal:!0,horizontalAlign:`start`,verticalAlign:`center`,paddingLeft:`m`,paddingRight:`m`,children:(0,d.jsxs)(p.Body2,{className:s.currentDayLabel,children:[t,` `,c.toLocaleString(`default`,{month:`short`})]})}),[t]),_=u.useCallback(e=>{f(e)},[]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(sn,{onClick:o?()=>o(i):void 0,className:(0,p.mergeClasses)(s.cardDay,n?``:s.otherMonthDay,h?s.currentDay:``,l?``:s.cardDayOnHover),cardHeader:h?g:(0,d.jsx)(H,{horizontal:!0,paddingLeft:`m`,paddingRight:`m`,children:(0,d.jsx)(p.Body2,{children:t})}),paddingTop:`m`,paddingBottom:`m`,paddingLeft:`0px`,paddingRight:`0px`,cardBody:(0,d.jsx)($n,{events:r,date:i,onCardHoverChange:_,columnHeight:a-60})})})},tr=()=>({styles:{container:(0,_.css)({display:`flex`,flexDirection:`column`,width:`calc(100% - 40px)`,height:`100vh`,overflow:`hidden`,padding:`20px`}),header:(0,_.css)({display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:`16px`,borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`}),weekGrid:(0,_.css)({display:`grid`,gridTemplateColumns:`80px repeat(7, 1fr)`,gridTemplateRows:`50px 40px repeat(48, 33px)`,height:`fit-content`,overflowY:`auto`,border:`1px solid ${p.tokens.colorNeutralStroke1}`,maxHeight:`calc(100vh - 100px)`,scrollbarWidth:`thin`,scrollbarColor:`${p.tokens.colorBrandBackground} ${p.tokens.colorNeutralBackground1}`,"&::-webkit-scrollbar":{width:`8px`},"&::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground1},"&::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandBackground,borderRadius:`4px`},"&::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorBrandBackgroundHover}}),blankHeader:(0,_.css)({gridColumn:`1`,backgroundColor:p.tokens.colorNeutralBackground3,borderBottom:`3px solid ${p.tokens.colorNeutralStroke3}`,position:`sticky`,top:0,zIndex:10}),timeColumn:(0,_.css)({gridColumn:`1`,gridRow:`3 / span 49`,display:`flex`,flexDirection:`column`,backgroundColor:p.tokens.colorNeutralBackground1,borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`}),timeCell:(0,_.css)({height:`100%`,display:`flex`,alignItems:`center`,fontSize:`12px`,color:p.tokens.colorNeutralForeground3,borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`,justifyContent:`center`}),fullDayRow:(0,_.css)({gridRow:`2`,display:`grid`,gridTemplateColumns:`80px repeat(7, 1fr)`,gap:`0`,padding:`0`,backgroundColor:p.tokens.colorNeutralBackground2,borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`}),fullDayLabel:(0,_.css)({gridColumn:`1`,display:`flex`,alignItems:`center`,justifyContent:`center`,alignContent:`center`,color:p.tokens.colorBrandBackground,padding:`5px`,borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`}),fullDayCell:(0,_.css)({borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,display:`flex`,flexDirection:`row`,gap:`0px`,padding:`4px`,borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`,overflow:`hidden`}),fullDayEvent:(0,_.css)({flex:`1 1 auto`,minWidth:`24px`,height:`24px`,padding:`4px 8px`,backgroundColor:p.tokens.colorBrandBackground,borderRadius:`4px`,overflow:`hidden`,display:`flex`,alignItems:`center`,justifyContent:`center`}),dayHeaderCell:(0,_.css)({textAlign:`center`,backgroundColor:p.tokens.colorNeutralBackground2,padding:`8px`,fontWeight:`bold`,borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`,position:`sticky`,top:0,zIndex:10}),todayHeaderCell:(0,_.css)({borderTop:`5px solid ${p.tokens.colorBrandBackground}`}),eventCard:(0,_.css)({padding:2,alignItems:`center`,justifyContent:`center`,marginRight:`2px`,zIndex:1,position:`absolute`,alignContent:`center`,overflow:`hidden`,":hover":{pointerEvents:`auto`,cursor:`pointer`}}),event:(0,_.css)({height:`100%`,backgroundColor:p.tokens.colorBrandBackground,borderRadius:`4px`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`,display:`flex`,alignItems:`center`,justifyContent:`center`,marginRight:`2px`,zIndex:1,position:`absolute`,alignContent:`center`,":hover":{pointerEvents:`auto`,cursor:`pointer`}}),dayCell:(0,_.css)({borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`,borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,position:`relative`,overflow:`visible`,FlexDirection:`column`,gap:`4px`}),currentTimeIndicator:(0,_.css)({position:`absolute`,left:0,height:`2px`,backgroundColor:p.tokens.colorPaletteRedBorderActive,width:`100%`,zIndex:1}),currentHalfHourCell:(0,_.css)({border:`2px solid ${p.tokens.colorPaletteRedBorderActive}`}),eventTitle:(0,_.css)({display:`-webkit-box`,"-webkit-line-clamp":`1`,"-webkit-box-orient":`vertical`,textAlign:`start`,textOverflow:`ellipsis`,paddingLeft:`8px`,wordBreak:`break-word`,overflow:`hidden`}),popoverContent:(0,_.css)({padding:0,borderTopWidth:20,borderTopStyle:`solid`})},applyEventHouverColorClass:u.default.useCallback((e,t)=>(0,_.css)({backgroundColor:e??p.tokens.colorBrandBackground,":hover":{backgroundColor:t??p.tokens.colorBrandBackgroundHover}}),[p.tokens.colorBrandBackground,p.tokens.colorBrandBackgroundHover]),appyDynamicStyles:u.default.useCallback((e,t,n,r)=>(0,_.css)({flex:`0 0 calc(100% / ${t})`,height:`${n*r}px`,left:`${e*10}%`,width:`calc(${100-e*10}% - 8px)`,margin:4,marginTop:0,marginBottom:0}),[])}),nr={timeSeparator:` - `,hourSuffix:`H`},rr=({event:e,colors:t,spanSlots:n,rowHeight:r,eventIndex:i,eventCount:a,strings:o=nr})=>{let s=(0,p.useId)(),{styles:c,applyEventHouverColorClass:l,appyDynamicStyles:f}=tr(),m=u.useRef(null),{formatDate:h}=Kn(),g=u.useMemo(()=>(0,d.jsx)(`div`,{children:(0,d.jsxs)(H,{columnGap:4,verticalAlign:`center`,children:[(0,d.jsx)(p.Caption1Strong,{className:c.eventTitle,children:e.title}),(0,d.jsxs)(H,{columnGap:4,horizontal:!0,verticalAlign:`center`,horizontalAlign:`start`,children:[(0,d.jsxs)(p.Caption1,{children:[h(e.start,`HH:mm`),o.hourSuffix]}),o.timeSeparator,(0,d.jsxs)(p.Caption1,{children:[h(e.end,`HH:mm`),o.hourSuffix]})]})]})}),[e,h,o,c.eventTitle]);return(0,d.jsx)(p.Card,{ref:m,className:(0,p.mergeClasses)(c.eventCard,l(t.backgroundColor,t.backgroundColor),f(i,a,r,n)),children:e.enableOnHouver?(0,d.jsxs)(p.Popover,{withArrow:!0,mouseLeaveDelay:50,closeOnScroll:!0,closeOnIframeFocus:!0,openOnHover:!0,children:[(0,d.jsx)(p.PopoverTrigger,{children:g}),(0,d.jsx)(p.PopoverSurface,{"aria-labelledby":s,className:(0,p.mergeClasses)(c.popoverContent),children:(0,d.jsx)(Zn,{event:e})})]}):g},e.id)},ir=({event:e,eventCount:t,spanSlots:n,rowHeight:r,eventIndex:i,view:a})=>{let{styles:o,appyDynamicStyles:s}=tr(),{getEventColors:c,getCalendarColors:l}=Kn(),f=e.color?l(e.color):c(e.category),m=a===`day`?e.onRenderInDayView?.(e):e.onRenderInWeekView?.(e);return u.isValidElement(m)?u.cloneElement(m,{event:e,className:(0,p.mergeClasses)(m.props.className,o.eventCard,s(i,t,r,n)),style:{...m.props.style}}):(0,d.jsx)(rr,{event:e,colors:f,spanSlots:n,rowHeight:r,eventIndex:i,eventCount:t},e.id)},ar=[],or=0;or<256;++or)ar.push((or+256).toString(16).slice(1));function sr(e,t=0){return(ar[e[t+0]]+ar[e[t+1]]+ar[e[t+2]]+ar[e[t+3]]+`-`+ar[e[t+4]]+ar[e[t+5]]+`-`+ar[e[t+6]]+ar[e[t+7]]+`-`+ar[e[t+8]]+ar[e[t+9]]+`-`+ar[e[t+10]]+ar[e[t+11]]+ar[e[t+12]]+ar[e[t+13]]+ar[e[t+14]]+ar[e[t+15]]).toLowerCase()}var cr,lr=new Uint8Array(16);function ur(){if(!cr&&(cr=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!cr))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return cr(lr)}var dr={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function fr(e,t,n){if(dr.randomUUID&&!t&&!e)return dr.randomUUID();e||={};var r=e.random||(e.rng||ur)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n||=0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return sr(r)}var pr=e=>{let t=(0,u.useCallback)(e=>e.map(e=>({...e,id:e.id||fr()})),[]),n=(0,u.useCallback)(t=>new Date(new Date(t).toLocaleString(void 0,{timeZone:e})),[e]);return{getMonthCalendar:(0,u.useCallback)((e,r,i)=>{let a=t(e),o=new Date(r,i+1,0).getDate(),s={};for(let e=1;e<=o;e++){let t=(0,m.format)(new Date(r,i,e),`yyyy-MM-dd`);s[t]=[]}return a.forEach(e=>{let t=n(e.start),r=n(e.end),i=new Date(t);for(;i<=r;){let t=(0,m.format)(i,`yyyy-MM-dd`);s[t]&&s[t].push(e),i.setDate(i.getDate()+1)}}),s},[n]),getWeekEvents:(0,u.useCallback)((e,r)=>{let i=[],a=n(r),o=t(e);for(let e=0;e<7;e++){let t=new Date(a);t.setDate(a.getDate()+e);let r=(0,m.format)(t,`yyyy-MM-dd`),s=Array.from({length:48},(e,t)=>({time:`${String(Math.floor(t/2)).padStart(2,`0`)}:${t%2==0?`00`:`30`}`,events:[]})),c=[];o.forEach(e=>{let t=n(e.start),i=n(e.end);if(e.isFullDay){(0,m.format)(t,`yyyy-MM-dd`)<=r&&(0,m.format)(i,`yyyy-MM-dd`)>=r&&c.push(e);return}if((0,m.format)(t,`yyyy-MM-dd`)<=r&&(0,m.format)(i,`yyyy-MM-dd`)>=r){let n=new Date(t);for(;n<=i;){if((0,m.format)(n,`yyyy-MM-dd`)===r){let t=n.getHours()*2+(n.getMinutes()>=30?1:0);s[t]&&s[t].events.push(e)}n.setMinutes(n.getMinutes()+30)}}}),i.push({date:r,fullDayEvents:c,timeSlots:s})}return i},[n])}},mr=()=>({styles:{container:(0,_.css)({display:`flex`,flexDirection:`column`,width:`calc(100% - 40px)`,height:`100vh`,overflow:`hidden`,padding:`20px`}),header:(0,_.css)({display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:`16px`,borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`}),dayGrid:(0,_.css)({display:`grid`,gridTemplateColumns:`80px 1fr`,gridTemplateRows:`50px 40px repeat(48, 33px)`,height:`calc(100vh - 100px)`,overflowY:`auto`,border:`1px solid ${p.tokens.colorNeutralStroke1}`,maxHeight:`fit-content`,scrollbarWidth:`thin`,scrollbarColor:`${p.tokens.colorBrandBackground} ${p.tokens.colorNeutralBackground1}`,"&::-webkit-scrollbar":{width:`8px`},"&::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground1},"&::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandBackground,borderRadius:`4px`},"&::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorBrandBackgroundHover}}),blankHeader:(0,_.css)({gridColumn:`1`,backgroundColor:p.tokens.colorNeutralBackground3,borderBottom:`3px solid ${p.tokens.colorNeutralStroke3}`}),timeColumn:(0,_.css)({gridColumn:`1`,gridRow:`3 / span 49`,display:`flex`,flexDirection:`column`,backgroundColor:p.tokens.colorNeutralBackground1,borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`}),timeCell:(0,_.css)({height:`100%`,maxHeight:`32px`,minHeight:`32px`,display:`flex`,alignItems:`center`,fontSize:`12px`,color:p.tokens.colorNeutralForeground3,borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`,justifyContent:`center`}),fullDayRow:(0,_.css)({gridRow:`2`,display:`grid`,gridTemplateColumns:`80px 33px`,gap:`0`,padding:`0`,backgroundColor:p.tokens.colorNeutralBackground2,borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`}),fullDayLabel:(0,_.css)({gridColumn:`1`,display:`flex`,alignItems:`center`,justifyContent:`center`,alignContent:`center`,color:p.tokens.colorBrandBackground,padding:`5px`,borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`}),fullDayCell:(0,_.css)({borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,display:`flex`,flexDirection:`row`,gap:`2px`,padding:`4px`,borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`,overflow:`hidden`}),fullDayEvent:(0,_.css)({flex:`1 1 auto`,minWidth:`24px`,height:`24px`,padding:`4px 8px`,backgroundColor:p.tokens.colorBrandBackground,color:p.tokens.colorNeutralForegroundOnBrand,borderRadius:`4px`,overflow:`hidden`,display:`flex`,alignItems:`center`,justifyContent:`center`}),dayHeaderCell:(0,_.css)({textAlign:`center`,backgroundColor:p.tokens.colorNeutralBackground2,padding:`8px`,fontWeight:`bold`,borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`}),todayHeaderCell:(0,_.css)({borderTop:`5px solid ${p.tokens.colorBrandBackground}`}),eventCard:(0,_.css)({alignItems:`center`,justifyContent:`center`,marginRight:`2px`,zIndex:1,position:`absolute`,alignContent:`center`,overflow:`hidden`}),dayCell:(0,_.css)({borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`,borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,position:`relative`,overflow:`visible`,FlexDirection:`column`,gap:`4px`}),currentTimeIndicator:(0,_.css)({position:`absolute`,left:0,height:`2px`,backgroundColor:p.tokens.colorPaletteRedBorderActive,width:`100%`,zIndex:1}),currentHalfHourCell:(0,_.css)({border:`2px solid ${p.tokens.colorPaletteRedBorderActive}`}),eventTitle:(0,_.css)({display:`-webkit-box`,"-webkit-line-clamp":`1`,"-webkit-box-orient":`vertical`,textAlign:`start`,textOverflow:`ellipsis`,paddingLeft:`8px`,wordBreak:`break-word`,overflow:`hidden`})},applyEventHouverColorClass:(e,t)=>(0,_.css)({backgroundColor:e??p.tokens.colorBrandBackground,":hover":{backgroundColor:t??p.tokens.colorBrandBackgroundHover}})}),hr={allDay:`All Day`},gr=33,_r=e=>{let{events:t,currentDay:n,height:r,strings:i=hr}=e,{styles:a}=mr(),o=(0,u.useRef)(null),{getSpanSlots:s,getEventColors:c,getCalendarColors:l}=Kn(),f=Intl.DateTimeFormat().resolvedOptions().timeZone,{getWeekEvents:h}=pr(f),g=u.useCallback(()=>Array.from({length:24},(e,t)=>(0,d.jsxs)(u.Fragment,{children:[(0,d.jsx)(`div`,{className:a.timeCell,children:(0,d.jsxs)(p.Body1Strong,{children:[t,`:00`]})}),(0,d.jsx)(`div`,{className:a.timeCell})]},t)),[a.timeCell]),_=u.useCallback(()=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`div`,{className:a.blankHeader}),Array.from({length:1},(e,t)=>{let r=(0,m.addDays)(n,t),i=(0,m.isToday)(r)?a.todayHeaderCell:``;return(0,d.jsxs)(`div`,{className:(0,p.mergeClasses)(a.dayHeaderCell,i),children:[(0,d.jsx)(p.Text,{weight:`semibold`,size:600,style:{paddingRight:10},children:(0,m.format)(r,`dd`)}),(0,d.jsx)(p.Subtitle1,{children:(0,m.format)(r,`LLLL, yyyy`)})]},t)})]}),[n,a.blankHeader,a.dayHeaderCell,a.todayHeaderCell]),v=u.useCallback(()=>{let e=h(t,n.toISOString());return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`div`,{className:a.fullDayLabel,children:(0,d.jsx)(p.Body1,{children:i.allDay})}),Array.from({length:1},(t,r)=>{let i=(0,m.format)((0,m.addDays)(n,r),`yyyy-MM-dd`),o=e.find(e=>e.date===i)?.fullDayEvents||[];return(0,d.jsx)(`div`,{className:a.fullDayCell,children:o.map(e=>(0,d.jsx)(`div`,{className:a.fullDayEvent,style:{gridColumn:`${r+2}`,backgroundColor:e.color?l(e.color).backgroundColor:c(e.category).backgroundColor},children:(0,d.jsx)(p.Caption1Strong,{className:a.eventTitle,children:e.title})},e.id))},r)})]})},[n,h,a.fullDayCell,a.fullDayEvent,a.fullDayLabel,a.eventTitle,l,c,t,i.allDay]),y=u.useCallback(()=>{let e=h(t,n.toISOString());return Array.from({length:1},(t,r)=>{let i=(0,m.format)((0,m.addDays)(n,r),`yyyy-MM-dd`),o=e.find(e=>e.date===i);return(0,d.jsx)(u.Fragment,{children:o?.timeSlots.map((e,t)=>{let n=e.events.length;return(0,d.jsx)(`div`,{className:a.dayCell,style:{gridRow:t+3},children:e.events.map((e,r)=>{let{spanSlots:i,startSlot:a}=s(new Date(e.start),new Date(e.end));return t===a?(0,d.jsx)(ir,{event:e,eventCount:n,spanSlots:i,rowHeight:gr,eventIndex:r,view:`day`},e.id):null})},t)})},r)})},[n,s,h,a.dayCell,t]);return(0,d.jsx)(`div`,{className:a.container,style:{height:r},children:(0,d.jsxs)(`div`,{ref:o,className:a.dayGrid,children:[(0,d.jsx)(`div`,{className:a.timeColumn,children:g()}),_(),v(),y()]})})},K=function(e){return e.Day=`day`,e.Week=`week`,e.Month=`month`,e}({}),vr={month:`Month`,week:`Week`,day:`Day`},yr=e=>{let{onSelected:t,value:n,strings:r=vr}=e,[i,a]=u.useState(n??K.Month),[o,s]=u.useState({view:[n??K.Month]}),c=u.useMemo(()=>(0,y.bundleIcon)(y.CalendarDayFilled,y.CalendarDayRegular),[]),l=u.useMemo(()=>(0,y.bundleIcon)(y.CalendarMonthFilled,y.CalendarMonthRegular),[]),f=u.useMemo(()=>(0,y.bundleIcon)(y.CalendarWorkWeekFilled,y.CalendarWorkWeekRegular),[]);u.useEffect(()=>{n!==void 0&&(a(n),s({view:[n]}))},[n]);let[m,h]=u.useState(!1),g=u.useCallback((e,t)=>{h(t.open)},[]),_=u.useCallback(()=>{switch(i){case K.Month:return(0,d.jsx)(l,{});case K.Week:return(0,d.jsx)(f,{});case K.Day:return(0,d.jsx)(c,{});default:return(0,d.jsx)(l,{})}},[i]),v=u.useCallback(e=>{switch(e){case K.Month:return r.month;case K.Week:return r.week;case K.Day:return r.day;default:return r.month}},[r]),b=u.useCallback((e,{name:n,checkedItems:r})=>{if(n===`view`){let e=r[0];a(e),s({view:r}),t(e)}},[t]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(p.Menu,{open:m,onOpenChange:g,children:[(0,d.jsx)(p.MenuTrigger,{disableButtonEnhancement:!0,children:(0,d.jsx)(p.MenuButton,{shape:`circular`,icon:_(),style:{minWidth:`150px`},children:v(i)})}),(0,d.jsx)(p.MenuPopover,{children:(0,d.jsxs)(p.MenuList,{onCheckedValueChange:b,checkedValues:o,children:[(0,d.jsx)(p.MenuItemRadio,{icon:(0,d.jsx)(c,{}),name:`view`,value:K.Day,children:r.day}),(0,d.jsx)(p.MenuItemRadio,{icon:(0,d.jsx)(f,{}),name:`view`,value:K.Week,children:r.week}),(0,d.jsx)(p.MenuItemRadio,{icon:(0,d.jsx)(l,{}),name:`view`,value:K.Month,children:r.month})]})})]})})},br=u.memo(e=>{let{onSelected:t,value:n}=e,[r,i]=u.useState(n??new Date),[a,o]=u.useState(()=>(0,f.format)(n??new Date,`dd MMM, yyyy`)),[s,c]=u.useState(!1),l=u.useCallback((e,t)=>{c(t.open)},[]),m=u.useMemo(()=>(0,y.bundleIcon)(y.CalendarMonthFilled,y.CalendarMonthRegular),[]),h=u.useCallback(e=>{if(e){let n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=(0,f.utcToZonedTime)(e,n);i(r),o((0,f.format)(r,`dd MMM, yyyy`)),t(r),c(!1)}},[t]);return(0,d.jsxs)(p.Menu,{open:s,onOpenChange:l,children:[(0,d.jsx)(p.MenuTrigger,{disableButtonEnhancement:!0,children:(0,d.jsx)(p.MenuButton,{shape:`circular`,icon:(0,d.jsx)(m,{}),style:{minWidth:`200px`},children:a})}),(0,d.jsx)(p.MenuPopover,{style:{maxWidth:`fit-content`},children:(0,d.jsx)(p.MenuList,{children:(0,d.jsx)(S.Calendar,{highlightSelectedMonth:!0,showGoToToday:!0,onSelectDate:h,value:r})})})]})}),xr=()=>({root:(0,_.css)({outline:`none`})}),Sr={months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],goToToday:`Go to today`},Cr=e=>{let{onDateChange:t,defaultSelectedDate:n,onDismiss:r,strings:i=Sr}=e,a=xr(),[o,s]=u.useState(n??new Date),c=u.useCallback((e,n)=>{s(e),t(e),r()},[t,r]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(S.Calendar,{className:a.root,dateRangeType:S.DateRangeType.Month,highlightSelectedMonth:!0,isDayPickerVisible:!1,onSelectDate:c,value:o,onDismiss:r,showGoToToday:!1,allFocusable:!1,strings:i})})},wr=e=>{let{onSelected:t,value:n}=e,r=(0,y.bundleIcon)(y.CalendarMonthFilled,y.CalendarMonthRegular),[i,a]=u.useState(n??new Date);u.useEffect(()=>{t(n??new Date),a(n??new Date)},[n]);let[o,s]=u.useState(!1),c=(e,t)=>{s(t.open)},l=u.useCallback(e=>{t(e),a(e)},[]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(p.Menu,{open:o,onOpenChange:c,children:[(0,d.jsx)(p.MenuTrigger,{disableButtonEnhancement:!0,children:(0,d.jsx)(p.MenuButton,{shape:`circular`,icon:(0,d.jsx)(r,{}),style:{minWidth:`200px`},children:(0,m.format)(i,`MMMM yyyy`)})}),(0,d.jsx)(p.MenuPopover,{children:(0,d.jsx)(p.MenuList,{children:(0,d.jsx)(Cr,{onDateChange:l,defaultSelectedDate:i,onDismiss:()=>{s(!1)}})})})]})})},Tr={selectWeekPlaceholder:`Select a week`},Er=e=>{let t=Intl.DateTimeFormat().resolvedOptions().timeZone,n=(0,f.format)(e.start,`MMM`,{timeZone:t}),r=(0,f.format)(e.end,`MMM`,{timeZone:t});return(0,f.format)(e.start,`yyyy`,{timeZone:t})===(0,f.format)(e.end,`yyyy`,{timeZone:t})?n===r?`${(0,f.format)(e.start,`dd`,{timeZone:t})} - ${(0,f.format)(e.end,`dd MMM yyyy`,{timeZone:t})}`:`${(0,f.format)(e.start,`dd MMM`,{timeZone:t})} - ${(0,f.format)(e.end,`dd MMM yyyy`,{timeZone:t})}`:`${(0,f.format)(e.start,`dd MMM yyyy`,{timeZone:t})} - ${(0,f.format)(e.end,`dd MMM yyyy`,{timeZone:t})}`},Dr=e=>{let t=Intl.DateTimeFormat().resolvedOptions().timeZone,n=(0,f.utcToZonedTime)(e,t),r=new Date(n);r.setDate(n.getDate()-n.getDay());let i=new Date(r);return i.setDate(r.getDate()+6),{start:(0,f.utcToZonedTime)(r,t),end:(0,f.utcToZonedTime)(i,t)}},Or=u.memo(e=>{let{onSelected:t,value:n,strings:r=Tr}=e,i=S.DateRangeType.Week,[a,o]=u.useState(n??new Date),[s,c]=u.useState(()=>{let e=n??new Date;return e?Er(Dr(e)):r.selectWeekPlaceholder}),[l,f]=u.useState(!1),m=u.useCallback((e,t)=>{f(t.open)},[]),h=u.useMemo(()=>(0,y.bundleIcon)(y.CalendarMonthFilled,y.CalendarMonthRegular),[]),g=u.useCallback(e=>{if(e){o(e);let n=Dr(e);c(Er(n)),t({startDate:n.start,endDate:n.end}),f(!1)}},[t]),_=u.useMemo(()=>0,[]);return(0,d.jsxs)(p.Menu,{open:l,onOpenChange:m,children:[(0,d.jsx)(p.MenuTrigger,{disableButtonEnhancement:!0,children:(0,d.jsx)(p.MenuButton,{shape:`circular`,icon:(0,d.jsx)(h,{}),style:{minWidth:`200px`},children:s})}),(0,d.jsx)(p.MenuPopover,{style:{maxWidth:`fit-content`},children:(0,d.jsx)(p.MenuList,{children:(0,d.jsx)(S.Calendar,{dateRangeType:i,highlightSelectedMonth:!0,showGoToToday:!0,onSelectDate:g,value:a,firstDayOfWeek:_})})})]})}),kr={today:`Today`,previous:`Previous`,next:`Next`},Ar=u.memo(({selectedView:e,onSelectedView:t,currentDate:n,setCurrentDate:r,onWeekChange:i,onMonthChange:a,onDayChange:o,strings:s=kr})=>{let c=u.useMemo(()=>(0,y.bundleIcon)(y.ArrowDownFilled,y.ArrowDownRegular),[]),l=u.useMemo(()=>(0,y.bundleIcon)(y.ArrowUpFilled,y.ArrowUpRegular),[]),f=u.useCallback(e=>{i(e.startDate),r(e.startDate)},[i,r]),m=u.useCallback(e=>{a(e),r(e)},[a,r]),h=u.useCallback(e=>{o(e),r(e)},[o,r]),g=u.useCallback(()=>{switch(e){case K.Month:return(0,d.jsx)(wr,{onSelected:m,value:n});case K.Week:return(0,d.jsx)(Or,{onSelected:f,value:n});case K.Day:return(0,d.jsx)(br,{onSelected:h,value:n});default:return(0,d.jsx)(wr,{onSelected:m,value:n})}},[e,m,f,h,n]),_=u.useCallback(()=>(0,d.jsx)(p.Tooltip,{content:s.today,relationship:`label`,children:(0,d.jsx)(p.Button,{shape:`circular`,icon:(0,d.jsx)(y.CalendarTodayRegular,{}),size:`medium`,onClick:()=>o(new Date),children:s.today})}),[o,s.today]),v=u.useCallback(t=>{let s=new Date(n);switch(e){case K.Month:s.setMonth(s.getMonth()+t),a(s);break;case K.Week:s.setDate(s.getDate()+t*7),i(s);break;case K.Day:s.setDate(s.getDate()+t),o(s);break;default:break}r(s)},[n,e,a,i,o,r]);return(0,d.jsxs)(H,{width:`calc(100% - 40px)`,height:`fit-content`,horizontal:!0,horizontalAlign:`space-between`,verticalAlign:`center`,paddingLeft:`20px`,paddingRight:`20px`,paddingBottom:`10px`,paddingTop:`10px`,columnGap:10,styles:{overflow:`hidden`},children:[(0,d.jsxs)(H,{horizontal:!0,horizontalAlign:`start`,verticalAlign:`center`,columnGap:10,children:[(0,d.jsx)(_,{}),(0,d.jsx)(g,{}),(0,d.jsx)(p.Tooltip,{content:s.previous,relationship:`label`,children:(0,d.jsx)(p.Button,{size:`medium`,icon:(0,d.jsx)(l,{fontSize:14}),onClick:()=>v(-1)})}),(0,d.jsx)(p.Tooltip,{content:s.next,relationship:`label`,children:(0,d.jsx)(p.Button,{size:`medium`,icon:(0,d.jsx)(c,{fontSize:14}),onClick:()=>v(1)})})]}),(0,d.jsx)(H,{horizontal:!0,horizontalAlign:`start`,verticalAlign:`center`,columnGap:10,children:(0,d.jsx)(yr,{onSelected:t,value:e})})]})}),jr={allDay:`All Day`},Mr=e=>{let{events:t,currentDay:n,height:r,strings:i=jr}=e,{styles:a}=tr(),[o]=(0,u.useState)(n),[s,c]=(0,u.useState)(32),l=(0,u.useRef)(null),{getSpanSlots:f,getEventColors:h,getCalendarColors:_,formatDate:v}=Kn(),y=(0,m.startOfWeek)(o,{weekStartsOn:0}),b=Intl.DateTimeFormat().resolvedOptions().timeZone,{getWeekEvents:x}=pr(b);(0,u.useEffect)(()=>{let e=new g.ResizeObserver(()=>{if(l.current){let e=l.current.querySelector(`.dayCell`);e&&c(e.offsetHeight)}});return l.current&&e.observe(l.current),()=>{e.disconnect()}},[]);let S=u.useCallback(()=>Array.from({length:24},(e,t)=>(0,d.jsxs)(u.Fragment,{children:[(0,d.jsx)(`div`,{className:a.timeCell,children:(0,d.jsxs)(p.Body1Strong,{children:[t,`:00`]})}),(0,d.jsx)(`div`,{className:a.timeCell})]},t)),[a.timeCell]),C=u.useCallback(()=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`div`,{className:a.blankHeader}),Array.from({length:7},(e,t)=>{let n=(0,m.addDays)(y,t),r=(0,m.isToday)(n)?a.todayHeaderCell:``;return(0,d.jsxs)(`div`,{className:(0,p.mergeClasses)(a.dayHeaderCell,r),children:[(0,d.jsx)(p.Text,{weight:`regular`,size:600,style:{paddingRight:10},children:v(n.toISOString(),`dd`)}),(0,d.jsx)(p.Body1,{children:v(n.toISOString(),`EEE`)})]},t)})]}),[y,a,v]),w=u.useCallback(()=>{let e=x(t,y.toISOString());return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`div`,{className:a.fullDayLabel,children:(0,d.jsx)(p.Body1,{children:i.allDay})}),Array.from({length:7},(t,n)=>{let r=v((0,m.addDays)(y,n).toISOString(),`yyyy-MM-dd`),i=e.find(e=>e.date===r)?.fullDayEvents||[];return(0,d.jsx)(`div`,{className:a.fullDayCell,children:i.map(e=>(0,d.jsx)(`div`,{className:a.fullDayEvent,style:{gridColumn:`${n+2}`,backgroundColor:e.color?_(e.color).backgroundColor:h(e.category).backgroundColor},children:(0,d.jsx)(p.Caption1Strong,{className:a.eventTitle,children:e.title})},e.id))},n)})]})},[y,a,x,_,h,t,v,i.allDay]),T=u.useCallback(()=>{let e=x(t,y.toISOString());return Array.from({length:7},(t,n)=>{let r=(0,m.format)((0,m.addDays)(y,n),`yyyy-MM-dd`);return(0,d.jsx)(d.Fragment,{children:e.find(e=>e.date===r)?.timeSlots.map((e,t)=>{let n=e.events.length;return(0,d.jsx)(`div`,{className:a.dayCell,style:{gridRow:t+3},children:e.events.map((e,r)=>{let{spanSlots:i,startSlot:a}=f(new Date(e.start),new Date(e.end));return t===a?(0,d.jsx)(ir,{event:e,eventCount:n,spanSlots:i,rowHeight:s,eventIndex:r,view:`week`},e.id):null})},t)})})})},[y,a,x,f,s,t]);return(0,d.jsx)(`div`,{className:a.container,style:{height:r},children:(0,d.jsxs)(`div`,{ref:l,className:a.weekGrid,children:[(0,d.jsx)(`div`,{className:a.timeColumn,children:S()}),C(),w(),T()]})})},Nr={daysOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},Pr=({currentDate:e,rowHeight:t,getCalendarDays:n,getEventsForDay:r,styles:i,onDaySlotClick:a,height:o,calendarRef:s,strings:c})=>{let l=c?.daysOfWeek||Nr.daysOfWeek;return(0,d.jsx)(H,{height:o,width:`100%`,verticalAlign:`start`,horizontalAlign:`start`,children:(0,d.jsxs)(`div`,{className:i.calendarWrapper,ref:s,children:[l.map(e=>(0,d.jsx)(p.Body1,{className:i.dayHeader,children:e},e)),n(e).map((e,n)=>{let{day:i,currentMonth:o}=e,s=o?r(e):[];return(0,d.jsx)(er,{day:i,date:e.date,currentMonth:e.currentMonth,events:s,columnHeight:t||0,onDayClick:a},n)})]})})},Fr=u.memo(({events:e,currentDay:t,height:n,strings:r})=>(0,d.jsx)(Mr,{events:e,currentDay:t,height:n,strings:r})),Ir=u.memo(({events:e,currentDay:t,height:n,strings:r})=>(0,d.jsx)(_r,{currentDay:t,events:e,height:n,strings:r})),Lr=({events:e,height:t=800,theme:n,onDayChange:r,onMonthChange:i,onWeekChange:a,onViewChange:o,onDaySlotClick:s,defaultView:c,strings:l})=>{let{styles:f}=Qn(),h=(0,u.useRef)(null),[_,v]=(0,u.useState)(null),y=(0,u.useRef)(0),[b,x]=(0,u.useState)(new Date),[S,C]=(0,u.useState)(c??K.Month),{getMonthCalendar:w}=pr(Intl.DateTimeFormat().resolvedOptions().timeZone),T=u.useCallback(e=>{let t=e.getMonth(),n=(0,m.startOfWeek)((0,m.startOfMonth)(e));return Array.from({length:42},(e,r)=>{let i=(0,m.addDays)(n,r);return{day:i.getDate(),currentMonth:i.getMonth()===t,date:i}})},[42]),E=u.useCallback(e=>{i&&i(e),x(e)},[i]),D=u.useCallback(e=>{r&&r(e),x(e)},[r]),O=u.useCallback(e=>{a&&a(e),x(e)},[a]),k=u.useCallback(e=>{o&&o(e),C(e)},[o]),A=u.useCallback(t=>{let{date:n}=t;return w(e,b.getFullYear(),b.getMonth())[(0,m.format)(n,`yyyy-MM-dd`)]?.flatMap(e=>e)||[]},[b,e]),j=u.useCallback(()=>{h.current&&requestAnimationFrame(()=>{if(h.current){let e=h.current.querySelector(`.${f.calendarWrapper} > div:nth-child(8)`);e&&(v(e.offsetHeight),y.current=e.offsetHeight)}})},[f.calendarWrapper]);(0,u.useEffect)(()=>{let e=new g.ResizeObserver(j);return h.current&&e.observe(h.current),j(),window.addEventListener(`resize`,j),()=>{e.disconnect(),window.removeEventListener(`resize`,j)}},[j,S]),(0,u.useEffect)(()=>{C(c||K.Month)},[c]);let M=u.useCallback(()=>{switch(S){case K.Month:return(0,d.jsx)(Pr,{events:e,currentDate:b,rowHeight:_,getCalendarDays:T,getEventsForDay:A,styles:f,onDaySlotClick:s,height:t,calendarRef:h,strings:l?.calendarControl});case K.Week:return(0,d.jsx)(Fr,{events:e,currentDay:b,height:t,strings:l?.weekView});case K.Day:return(0,d.jsx)(Ir,{events:e,currentDay:b,height:t,strings:l?.dayView});default:return(0,d.jsx)(Pr,{events:e,currentDate:b,rowHeight:_,getCalendarDays:T,getEventsForDay:A,styles:f,onDaySlotClick:s,height:t,calendarRef:h,strings:l?.calendarControl})}},[S,e,b,_,T,A,f,s,t]),N=(0,d.jsxs)(H,{height:`100%`,verticalAlign:`start`,children:[(0,d.jsx)(Ar,{selectedView:S,onSelectedView:k,currentDate:b,setCurrentDate:x,onWeekChange:O,onMonthChange:E,onDayChange:D,strings:l?.toolbar}),(0,d.jsx)(M,{})]});return(0,d.jsx)(p.IdPrefixProvider,{value:`calendarControl-`,children:n?(0,d.jsx)(p.FluentProvider,{theme:n,applyStylesToPortals:!0,style:{width:`100%`},children:N}):(0,d.jsx)(`div`,{style:{width:`100%`},children:N})})},Rr=()=>({tagPickerControl:(0,_.css)({border:`1px solid ${p.tokens.colorNeutralStroke2} !important`,borderRadius:`50px !important`,backgroundColor:`${p.tokens.colorNeutralBackground1} !important`,padding:`0px 10px`,boxShadow:`none`,transition:`all 0.2s ease !important`,"&::after":{display:`none !important`},"&:hover":{borderColor:`${p.tokens.colorBrandStroke1} !important`},"&:focus-within":{borderColor:`${p.tokens.colorBrandStroke1} !important`,boxShadow:`0 0 0 2px ${p.tokens.colorBrandBackground2} !important`}})}),zr=({options:e,onChange:t,renderItem:n,validate:r,label:i,placeholder:a,defaultValue:o,message:s,messageType:c,required:l,size:f,hint:m})=>{let h=o?e.find(e=>e.value===o):void 0,[g,_]=(0,u.useState)(o||``),[v,b]=(0,u.useState)(h?.text||``),[x,S]=(0,u.useState)(``),C=Rr(),w=(e,n)=>{let i=n.optionValue||``,a=n.optionText||``;_(i),b(a);let o=r?r(i):``;S(o),!o&&t&&t(i)},T=u.useMemo(()=>x?`error`:c===`warning`?`warning`:c===`info`?`success`:`none`,[x,c]);return(0,d.jsx)(p.Field,{label:i,required:l,validationMessage:u.useMemo(()=>x||s,[x,s]),validationMessageIcon:u.useCallback(()=>{switch(T){case`error`:return(0,d.jsx)(y.ErrorCircle12Filled,{});case`warning`:return(0,d.jsx)(y.Warning12Filled,{});case`success`:return(0,d.jsx)(y.CheckmarkCircle12Filled,{});default:return null}},[T])(),size:f,hint:m,validationState:T,children:(0,d.jsx)(p.Dropdown,{placeholder:a,onOptionSelect:w,value:v,selectedOptions:g?[g]:[],className:C.tagPickerControl,children:e.map(e=>(0,d.jsxs)(p.Option,{value:e.value,disabled:e.disabled,checkIcon:e.checkIcon,as:e.as,text:e.text||``,children:[n&&n(e),` `]},e.value))})})},Br=()=>({inputRoot:(0,_.css)({border:`1px solid ${p.tokens.colorNeutralStroke2} !important`,borderBottom:`1px solid ${p.tokens.colorNeutralStroke2} !important`,borderRadius:`50px !important`,backgroundColor:`${p.tokens.colorNeutralBackground1} !important`,padding:`0px 10px !important`,boxShadow:`none !important`,transition:`all 0.2s ease`,"&::after":{display:`none !important`,borderWidth:`0 !important`,content:`"none !important"`},"&:hover":{borderColor:`${p.tokens.colorBrandStroke1} !important`},"&:focus-within":{borderColor:`${p.tokens.colorBrandStroke1} !important`,boxShadow:`0 0 0 2px ${p.tokens.colorBrandBackground2} !important`}})}),Vr=({value:e,type:n=`text`,shape:r=`normal`,onChange:i,validate:a,label:o,placeholder:s,message:c,messageType:l,required:f,size:m,hint:h,disabled:g,readOnly:_,min:v,max:b,step:x,contentBefore:S,contentAfter:C})=>{let[w,T]=(0,u.useState)(e===void 0?``:String(e)),[E,D]=(0,u.useState)(``),O=Br(),k=t.c(),A=e!==void 0,j=A?String(e):w,M=(0,u.useCallback)(e=>{if(f&&e.trim()===``)return n===`number`?k.numberRequired:k.fieldRequired;if(n===`number`&&e.trim()!==``){let t=Number(e);if(isNaN(t))return k.invalidNumber;if(v!==void 0&&t<v)return k.valueMustBeAtLeast.replace(`{0}`,String(v));if(b!==void 0&&t>b)return k.valueMustBeAtMost.replace(`{0}`,String(b))}return a?a(n===`number`&&e.trim()!==``?Number(e):e):``},[f,n,a,v,b,k]),N=(0,u.useCallback)((e,t)=>{let r=t.value;if(n===`number`&&r!==``&&!/^-?\d*\.?\d*$/.test(r))return;A||T(r);let a=M(r);D(a),!a&&i&&i(n===`number`&&r.trim()!==``?Number(r):r)},[n,A,M,i]),P=(0,u.useCallback)(()=>{D(M(j))},[M,j]),F=(0,u.useMemo)(()=>E?`error`:l===`warning`?`warning`:l===`info`?`success`:`none`,[E,l]),ee=(0,u.useMemo)(()=>E||c,[E,c]),te=(0,u.useCallback)(()=>{switch(F){case`error`:return(0,d.jsx)(y.ErrorCircle12Filled,{});case`warning`:return(0,d.jsx)(y.Warning12Filled,{});case`success`:return(0,d.jsx)(y.CheckmarkCircle12Filled,{});default:return null}},[F]),I=r===`circular`?O.inputRoot:void 0;return(0,d.jsx)(p.Field,{label:o,required:f,validationMessage:ee,validationMessageIcon:te(),size:m,hint:h,validationState:F,children:(0,d.jsx)(p.Input,{value:j,placeholder:s,onChange:N,onBlur:P,disabled:g,readOnly:_,type:`text`,inputMode:n===`number`?`decimal`:`text`,step:n===`number`?x:void 0,className:I,contentBefore:S,contentAfter:C})})},Hr=!1;function Ur(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Wr(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var Gr=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0?!Hr:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(Wr(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=Ur(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Kr=`-ms-`,qr=`-moz-`,q=`-webkit-`,Jr=`comm`,Yr=`rule`,Xr=`decl`,Zr=`@import`,Qr=`@keyframes`,$r=`@layer`,ei=Math.abs,ti=String.fromCharCode,ni=Object.assign;function ri(e,t){return si(e,0)^45?(((t<<2^si(e,0))<<2^si(e,1))<<2^si(e,2))<<2^si(e,3):0}function ii(e){return e.trim()}function ai(e,t){return(e=t.exec(e))?e[0]:e}function J(e,t,n){return e.replace(t,n)}function oi(e,t){return e.indexOf(t)}function si(e,t){return e.charCodeAt(t)|0}function ci(e,t,n){return e.slice(t,n)}function li(e){return e.length}function ui(e){return e.length}function di(e,t){return t.push(e),e}function fi(e,t){return e.map(t).join(``)}var pi=1,mi=1,hi=0,gi=0,Y=0,_i=``;function vi(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:pi,column:mi,length:o,return:``}}function yi(e,t){return ni(vi(``,null,null,``,null,null,0),e,{length:-e.length},t)}function bi(){return Y}function xi(){return Y=gi>0?si(_i,--gi):0,mi--,Y===10&&(mi=1,pi--),Y}function Si(){return Y=gi<hi?si(_i,gi++):0,mi++,Y===10&&(mi=1,pi++),Y}function Ci(){return si(_i,gi)}function wi(){return gi}function Ti(e,t){return ci(_i,e,t)}function Ei(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Di(e){return pi=mi=1,hi=li(_i=e),gi=0,[]}function Oi(e){return _i=``,e}function ki(e){return ii(Ti(gi-1,Mi(e===91?e+2:e===40?e+1:e)))}function Ai(e){for(;(Y=Ci())&&Y<33;)Si();return Ei(e)>2||Ei(Y)>3?``:` `}function ji(e,t){for(;--t&&Si()&&!(Y<48||Y>102||Y>57&&Y<65||Y>70&&Y<97););return Ti(e,wi()+(t<6&&Ci()==32&&Si()==32))}function Mi(e){for(;Si();)switch(Y){case e:return gi;case 34:case 39:e!==34&&e!==39&&Mi(Y);break;case 40:e===41&&Mi(e);break;case 92:Si();break}return gi}function Ni(e,t){for(;Si()&&e+Y!==57&&!(e+Y===84&&Ci()===47););return`/*`+Ti(t,gi-1)+`*`+ti(e===47?e:Si())}function Pi(e){for(;!Ei(Ci());)Si();return Ti(e,gi)}function Fi(e){return Oi(Ii(``,null,null,null,[``],e=Di(e),0,[0],e))}function Ii(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=Si()){case 40:if(m!=108&&si(C,d-1)==58){oi(C+=J(ki(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=ki(v);break;case 9:case 10:case 13:case 32:C+=Ai(m);break;case 92:C+=ji(wi()-1,7);continue;case 47:switch(Ci()){case 42:case 47:di(Ri(Ni(Si(),wi()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=li(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=J(C,/\f/g,``)),p>0&&li(C)-d&&di(p>32?zi(C+`;`,r,n,d-1):zi(J(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(di(S=Li(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)Ii(C,t,S,S,b,a,d,s,x);else switch(f===99&&si(C,3)===110?100:f){case 100:case 108:case 109:case 115:Ii(e,S,S,r&&di(Li(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:Ii(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+li(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&xi()==125)continue}switch(C+=ti(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(li(C)-1)*_,_=1;break;case 64:Ci()===45&&(C+=ki(Si())),f=Ci(),u=d=li(y=C+=Pi(wi())),v++;break;case 45:m===45&&li(C)==2&&(h=0)}}return a}function Li(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=ui(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=ci(e,d+1,d=ei(h=o[m])),y=e;_<p;++_)(y=ii(h>0?f[_]+` `+v:J(v,/&\f/g,f[_])))&&(c[g++]=y);return vi(e,t,n,i===0?Yr:s,c,l,u)}function Ri(e,t,n){return vi(e,t,n,Jr,ti(bi()),ci(e,2,-2),0)}function zi(e,t,n,r){return vi(e,t,n,Xr,ci(e,0,r),ci(e,r+1,-1),r)}function Bi(e,t){for(var n=``,r=ui(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function Vi(e,t,n,r){switch(e.type){case $r:if(e.children.length)break;case Zr:case Xr:return e.return=e.return||e.value;case Jr:return``;case Qr:return e.return=e.value+`{`+Bi(e.children,r)+`}`;case Yr:e.value=e.props.join(`,`)}return li(n=Bi(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Hi(e){var t=ui(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Ui(e){return function(t){t.root||(t=t.return)&&e(t)}}function Wi(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Gi=function(e,t,n){for(var r=0,i=0;r=i,i=Ci(),r===38&&i===12&&(t[n]=1),!Ei(i);)Si();return Ti(e,gi)},Ki=function(e,t){var n=-1,r=44;do switch(Ei(r)){case 0:r===38&&Ci()===12&&(t[n]=1),e[n]+=Gi(gi-1,t,n);break;case 2:e[n]+=ki(r);break;case 4:if(r===44){e[++n]=Ci()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=ti(r)}while(r=Si());return e},qi=function(e,t){return Oi(Ki(Di(e),t))},Ji=new WeakMap,Yi=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Ji.get(n))&&!r){Ji.set(e,!0);for(var i=[],a=qi(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},Xi=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function Zi(e,t){switch(ri(e,t)){case 5103:return q+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return q+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return q+e+qr+e+Kr+e+e;case 6828:case 4268:return q+e+Kr+e+e;case 6165:return q+e+Kr+`flex-`+e+e;case 5187:return q+e+J(e,/(\w+).+(:[^]+)/,q+`box-$1$2`+Kr+`flex-$1$2`)+e;case 5443:return q+e+Kr+`flex-item-`+J(e,/flex-|-self/,``)+e;case 4675:return q+e+Kr+`flex-line-pack`+J(e,/align-content|flex-|-self/,``)+e;case 5548:return q+e+Kr+J(e,`shrink`,`negative`)+e;case 5292:return q+e+Kr+J(e,`basis`,`preferred-size`)+e;case 6060:return q+`box-`+J(e,`-grow`,``)+q+e+Kr+J(e,`grow`,`positive`)+e;case 4554:return q+J(e,/([^-])(transform)/g,`$1`+q+`$2`)+e;case 6187:return J(J(J(e,/(zoom-|grab)/,q+`$1`),/(image-set)/,q+`$1`),e,``)+e;case 5495:case 3959:return J(e,/(image-set\([^]*)/,q+"$1$`$1");case 4968:return J(J(e,/(.+:)(flex-)?(.*)/,q+`box-pack:$3`+Kr+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+q+e+e;case 4095:case 3583:case 4068:case 2532:return J(e,/(.+)-inline(.+)/,q+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(li(e)-1-t>6)switch(si(e,t+1)){case 109:if(si(e,t+4)!==45)break;case 102:return J(e,/(.+:)(.+)-([^]+)/,`$1`+q+`$2-$3$1`+qr+(si(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~oi(e,`stretch`)?Zi(J(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(si(e,t+1)!==115)break;case 6444:switch(si(e,li(e)-3-(~oi(e,`!important`)&&10))){case 107:return J(e,`:`,`:`+q)+e;case 101:return J(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+q+(si(e,14)===45?`inline-`:``)+`box$3$1`+q+`$2$3$1`+Kr+`$2box$3`)+e}break;case 5936:switch(si(e,t+11)){case 114:return q+e+Kr+J(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return q+e+Kr+J(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return q+e+Kr+J(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return q+e+Kr+e+e}return e}var Qi=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Xr:e.return=Zi(e.value,e.length);break;case Qr:return Bi([yi(e,{value:J(e.value,`@`,`@`+q)})],r);case Yr:if(e.length)return fi(e.props,function(t){switch(ai(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return Bi([yi(e,{props:[J(t,/:(read-\w+)/,`:`+qr+`$1`)]})],r);case`::placeholder`:return Bi([yi(e,{props:[J(t,/:(plac\w+)/,`:`+q+`input-$1`)]}),yi(e,{props:[J(t,/:(plac\w+)/,`:`+qr+`$1`)]}),yi(e,{props:[J(t,/:(plac\w+)/,Kr+`input-$1`)]})],r)}return``})}}],$i=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||Qi,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[Yi,Xi],l,u=[Vi,Ui(function(e){l.insert(e)})],d=Hi(c.concat(r,u)),f=function(e){return Bi(Fi(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Gr({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},ea=e.t((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),ta=e.t((e=>{process.env.NODE_ENV!==`production`&&(function(){"use strict";var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)}function x(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case l:case u:case i:case o:case a:case f:return p;default:var g=p&&p.$$typeof;switch(g){case c:case d:case h:case m:case s:return g;default:return t}}case r:return t}}}var S=l,C=u,w=c,T=s,E=n,D=d,O=i,k=h,A=m,j=r,M=o,N=a,P=f,F=!1;function ee(e){return F||(F=!0,console.warn(`The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.`)),te(e)||x(e)===l}function te(e){return x(e)===u}function I(e){return x(e)===c}function L(e){return x(e)===s}function ne(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function re(e){return x(e)===d}function R(e){return x(e)===i}function ie(e){return x(e)===h}function ae(e){return x(e)===m}function oe(e){return x(e)===r}function se(e){return x(e)===o}function ce(e){return x(e)===a}function le(e){return x(e)===f}e.AsyncMode=S,e.ConcurrentMode=C,e.ContextConsumer=w,e.ContextProvider=T,e.Element=E,e.ForwardRef=D,e.Fragment=O,e.Lazy=k,e.Memo=A,e.Portal=j,e.Profiler=M,e.StrictMode=N,e.Suspense=P,e.isAsyncMode=ee,e.isConcurrentMode=te,e.isContextConsumer=I,e.isContextProvider=L,e.isElement=ne,e.isForwardRef=re,e.isFragment=R,e.isLazy=ie,e.isMemo=ae,e.isPortal=oe,e.isProfiler=se,e.isStrictMode=ce,e.isSuspense=le,e.isValidElementType=b,e.typeOf=x})()})),na=e.t(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=ea():t.exports=ta()})),ra=e.t(((e,t)=>{var n=na(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h})),ia=!0;function aa(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var oa=function(e,t,n){var r=e.key+`-`+t.name;(n===!1||ia===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},sa=function(e,t,n){oa(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function ca(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var la={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ua=!1,da=/[A-Z]|^ms/g,fa=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pa=function(e){return e.charCodeAt(1)===45},ma=function(e){return e!=null&&typeof e!=`boolean`},ha=Wi(function(e){return pa(e)?e:e.replace(da,`-$&`).toLowerCase()}),ga=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(fa,function(e,t,n){return xa={name:t,styles:n,next:xa},t})}return la[e]!==1&&!pa(e)&&typeof t==`number`&&t!==0?t+`px`:t},_a=`Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.`;function va(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return xa={name:i.name,styles:i.styles,next:xa},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)xa={name:o.name,styles:o.styles,next:xa},o=o.next;return a.styles+`;`}return ya(e,t,n);case`function`:if(e!==void 0){var s=xa,c=n(e);return xa=s,va(e,t,c)}break}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function ya(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=va(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:ma(s)&&(r+=ha(a)+`:`+ga(a,s)+`;`)}else{if(a===`NO_COMPONENT_SELECTOR`&&ua)throw Error(_a);if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)ma(o[c])&&(r+=ha(a)+`:`+ga(a,o[c])+`;`);else{var l=va(e,t,o);switch(a){case`animation`:case`animationName`:r+=ha(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}}return r}var ba=/label:\s*([^\s;{]+)\s*(;|$)/g,xa;function Sa(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;xa=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=va(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=va(n,t,e[o]),r&&(i+=a[o]);ba.lastIndex=0;for(var s=``,c;(c=ba.exec(i))!==null;)s+=`-`+c[1];return{name:ca(i)+s,styles:i,next:xa}}var Ca=function(e){return e()},wa=u.useInsertionEffect?u.useInsertionEffect:!1,Ta=wa||Ca;wa||u.useLayoutEffect;var Ea=u.createContext(typeof HTMLElement<`u`?$i({key:`css`}):null);Ea.Provider;var Da=function(e){return(0,u.forwardRef)(function(t,n){return e(t,(0,u.useContext)(Ea),n)})},Oa=u.createContext({}),ka={}.hasOwnProperty,Aa=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,ja=function(e,t){var n={};for(var r in t)ka.call(t,r)&&(n[r]=t[r]);return n[Aa]=e,n},Ma=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return oa(t,n,r),Ta(function(){return sa(t,n,r)}),null},Na=Da(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Aa],a=[r],o=``;typeof e.className==`string`?o=aa(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=Sa(a,void 0,u.useContext(Oa));o+=t.key+`-`+s.name;var c={};for(var l in e)ka.call(e,l)&&l!==`css`&&l!==Aa&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),u.createElement(u.Fragment,null,u.createElement(Ma,{cache:t,serialized:s,isStringTag:typeof i==`string`}),u.createElement(i,c))});ra();var Pa=function(e,t){var n=arguments;if(t==null||!ka.call(t,`css`))return u.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=Na,i[1]=ja(e,t);for(var a=2;a<r;a++)i[a]=n[a];return u.createElement.apply(null,i)};(function(e){var t;(function(e){})(t||=e.JSX||={})})(Pa||={});function Fa(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Sa(t)}var Ia=()=>({searchBoxStyles:Fa`
15
+ }`,o=document.createElement(`style`);o.setAttribute(`data-brand-font`,e.name),o.textContent=a,document.head.appendChild(o),se.add(n)})}function le(e){if(e){if(e.d)return e.d;if(e.BrandFontLibraryUrl||e.SiteUrl)return e}}var ue=new Set([`woff2`,`woff`,`ttf`,`otf`,`eot`]),de={thin:100,hairline:100,extralight:200,ultralight:200,light:300,regular:400,normal:400,medium:500,semibold:600,demibold:600,bold:700,extrabold:800,ultrabold:800,black:900,heavy:900};function fe(e,t){let n=(e?.trim()||t.replace(/\.[^.]+$/,``)).toLowerCase(),r=n.includes(`italic`)||n.includes(`oblique`),i=n.replace(/italic|oblique/gi,``).trim().replace(/[\s_-]+/g,``),a=de[i]??400;if(a===400&&i!==`regular`&&i!==`normal`&&i!==``){for(let[e,t]of Object.entries(de))if(i.includes(e)){a=t;break}}return{fontWeight:a,fontStyle:r?`italic`:`normal`}}var pe=`_SPFontFamilyName`,me=`_SPFontFaces`,he=`_spFontVisible`,ge=[{id:`fluent-base`,name:`'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif`,isDefault:!0,fontFaces:[]},{id:`fluent-monospace`,name:`'Cascadia Code', 'Cascadia Mono', Consolas, 'Courier New', monospace`,isDefault:!1,fontFaces:[]},{id:`fluent-numeric`,name:`'Bahnschrift', 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif`,isDefault:!1,fontFaces:[]}],_e=(e={})=>{let{siteUrl:t,disabled:n,fonts:r}=e,i=I(),{warn:a,error:o}=L(),[s,c]=(0,u.useState)(r??[]),[l,d]=(0,u.useState)(!n&&!r),[f,p]=(0,u.useState)(),[m,h]=(0,u.useState)(!1),g=(0,u.useRef)(!1),_=(0,u.useCallback)(async()=>{if(n)return;let e=t??i?.pageContext?.web?.absoluteUrl;if(!e){let e=`useBrandCenterFonts: no siteUrl provided and pageContext.web.absoluteUrl is not available.`;a(e),p(e),d(!1);return}d(!0),p(void 0);try{let t=`${e}/_api/SP.BrandCenter/Configuration`,n=async t=>{if(i?.graphClient)return i.graphClient.get(t);let n={Accept:`application/json;odata=nometadata`};i?.authProvider&&(n.Authorization=`Bearer ${await i.authProvider.getAccessToken([`${new URL(e).origin}/.default`])}`);let r=await fetch(t,{credentials:i?.authProvider?void 0:`include`,headers:n});if(!r.ok)throw Error(`SharePoint REST returned ${r.status}: ${t}`);return await r.json()},r=le(await n(t)),o=r?.BrandFontLibraryUrl,s=typeof o==`string`?o:o?.DecodedUrl,l=r?.IsBrandCenterSiteFeatureEnabled===!0||String(r?.IsBrandCenterSiteFeatureEnabled).toLowerCase()===`true`;if(!s||!l){a(`useBrandCenterFonts: Brand Center is not configured for this tenant — using Fluent UI 9 defaults.`),h(!1),c(ge),d(!1);return}let u=r?.SiteUrl,f=typeof u==`string`?u:u?.DecodedUrl??e,p=new URL(f).origin,m=s.startsWith(`http`)?new URL(s).pathname:s,g=await n(`${f}/_api/web/GetList('${encodeURIComponent(m)}')/items?$select=Id,FileLeafRef,FileRef,${pe},${me},${he},File/Name,File/ServerRelativeUrl&$expand=File&$top=5000`),_=g.d?.results??g.value??[],v=new Map;for(let e of _){let t=e.File?.Name??e.FileLeafRef??``,n=t.split(`.`).pop()?.toLowerCase()??``;if(!ue.has(n)||e[he]===!1)continue;let r=e[pe]??t.replace(/\.[^.]+$/,``).split(/[-_]/)[0]??t,i=v.get(r);i?i.items.push(e):v.set(r,{items:[e]})}let y=[];for(let[e,t]of v){let n=[];for(let e of t.items){let t=e.File?.Name??e.FileLeafRef??``,r=e.File?.ServerRelativeUrl??e.FileRef??``;if(!r)continue;let i=e[me],{fontWeight:a,fontStyle:o}=fe(i,t),s=`${p}${r}`;n.push({url:s,fontWeight:a,fontStyle:o})}n.length>0&&y.push({id:e,name:e,isDefault:!1,fontFaces:n})}y.length>0&&!y.some(e=>e.isDefault)&&(y[0].isDefault=!0),y.forEach(ce),c(y),h(!0)}catch(e){let t=e instanceof Error?e.message:String(e);o(`useBrandCenterFonts: failed to load fonts — falling back to Fluent UI 9 defaults`,e instanceof Error?e:void 0),p(t),h(!1),c(ge)}finally{d(!1)}},[n,t,i?.pageContext?.web?.absoluteUrl,i?.graphClient,i?.authProvider]);(0,u.useEffect)(()=>{if(r){r.forEach(ce);return}!g.current&&!n&&(g.current=!0,_())},[_,r,n]);let v=s.find(e=>e.isDefault);return{fonts:s,fontFamilyNames:s.map(e=>e.name),defaultFont:v,loading:l,error:f,isBrandCenterAvailable:m,refresh:_}},ve=()=>{let e=u.useCallback((e,t)=>`${e}${t}`,[]),t=u.useCallback(e=>{if(!e)return!1;try{return!!new URL(e)}catch{return!1}},[]),n=e=>e.charAt(0)===`/`&&e.charAt(1)===`/`?e.substring(1,e.length):e,r=u.useCallback(e=>e?new RegExp(/^[{]?[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$/).test(e)===!0:!1,[]),i=u.useCallback(e=>{if(!e)return``;let t=e.split(`/`);return t[t.length-1]},[]),a=u.useCallback(e=>{let t=window.location.hostname,n=`https://${t}`;if(e.indexOf(`${n}/sites/`)>-1||e.indexOf(`${n}/teams/`)>-1){let r=e.split(t)[1].split(`/`)[2],i=`https://${t}/sites/${r}`;return e.indexOf(`${n}/teams/`)>-1&&(i=`https://${t}/teams/${r}`),i}return n},[]),o=u.useCallback(e=>{let t=e.split(window.location.hostname)[1];return t=n(t),t},[]),s=u.useCallback(e=>encodeURIComponent(e.replace(/[%]/g,`%25`)).replace(/[']/g,`%27%27`).replace(/[&]/g,`%26`).replace(/[#]/g,`%23`).replace(/[?]/g,`%3F`).replace(/[/]/g,`%2F`).replace(/[+]/g,`%2B`),[]),c=u.useCallback(e=>e==null?!1:Object.prototype.hasOwnProperty.call(e,`extraSmall`)||Object.prototype.hasOwnProperty.call(e,`small`)||Object.prototype.hasOwnProperty.call(e,`medium`)||Object.prototype.hasOwnProperty.call(e,`large`)||Object.prototype.hasOwnProperty.call(e,`extraLarge`),[]),l=u.useCallback((e,t)=>e[t.toString().toLowerCase()],[]),d=u.useCallback(e=>e>=N.XXXLarge?`XXXLarge`:e>=N.ExtraExtraLarge?`ExtraExtraLarge`:e>=N.ExtraLarge?`ExtraLarge`:e>=Number(N.Large)?`Large`:e>=Number(N.Medium)?`Medium`:e>=Number(N.Small)?`Small`:`ExtraSmall`,[]),f=u.useCallback((e,t)=>{let n=d(t),r={ExtraSmall:`xs`,Small:`s`,Medium:`m`,Large:`l`,ExtraLarge:`xl`,ExtraExtraLarge:`xxl`},i=e;return c(e)&&(i=l(e,n??`Medium`)||r[n]),i},[d,c,l]),m=u.useCallback((e,t,n)=>{if(!e)return`none`;if(typeof e==`string`&&(/^\d+px$/.test(e)||/^\d+%$/.test(e)))return e;let r=n,i={padding:`spacingHorizontal`,vertical:`spacingVertical`,horizontal:`spacingHorizontal`};switch(f(e,t)){case`none`:return p.tokens[`${i[r]}None`];case`xxs`:return p.tokens[`${i[r]}XXS`];case`xs`:return p.tokens[`${i[r]}XS`];case`sNudge`:return p.tokens[`${i[r]}SNudge`];case`s`:return p.tokens[`${i[r]}S`];case`mNudge`:return p.tokens[`${i[r]}MNudge`];case`m`:return p.tokens[`${i[r]}M`];case`l`:return p.tokens[`${i[r]}L`];case`xl`:return p.tokens[`${i[r]}XL`];case`xxl`:return p.tokens[`${i[r]}XXL`];case`xxxl`:return p.tokens[`${i[r]}XXXL`];default:return p.tokens[`${i[r]}M`]}},[f]);return{getCacheKey:e,validateUrl:t,trimBeginDoubleSlash:n,isValidGUID:r,getPageNameFromUrl:i,getSPSiteAbsoluteUrl:a,getFileServerRelativeUrlFromAbsoluteUrl:o,encodeRestUrl:s,getSpacing:m,getCurrentDevice:d,getBaseStyles:u.useCallback((e,t,n)=>{let{verticalSpacing:r,horizontalSpacing:i,paddingLeft:a,paddingRight:o,paddingBottom:s,background:c,width:l,maxWidth:u,height:d,maxHeight:f,marginLeft:p,marginRight:h,marginTop:g,marginBottom:_,paddingTop:v,padding:y,margin:b,styles:x}=e,S=m(v,t,`padding`),C=m(a,t,`padding`),w=m(o,t,`padding`),T=m(s,t,`padding`),E=m(y,t,`padding`),D=m(p,t,`padding`),O=m(h,t,`padding`),k=m(g,t,`padding`),A=m(_,t,`padding`),j=m(b,t,`padding`);E&&(S=S===`none`?E:S,C=C===`none`?E:C,w=w===`none`?E:w,T=T===`none`?E:T),j&&(D=D===`none`?j:D,O=O===`none`?j:O,k=k===`none`?j:k,A=A===`none`?j:A);let M=`${m(r,t,`vertical`)} ${m(i,t,`horizontal`)}`,{padding:ee,margin:N,paddingTop:P,paddingLeft:te,paddingRight:F,paddingBottom:I,marginTop:L,marginLeft:ne,marginRight:re,marginBottom:R,...ie}=x??{};return{...ie,gap:M,paddingTop:S,paddingLeft:C,paddingRight:w,paddingBottom:T,marginLeft:D,marginRight:O,marginTop:k,marginBottom:A,background:c,width:l??void 0,height:d??void 0,maxWidth:u??void 0,maxHeight:f??void 0,overflow:`auto`}},[m]),getLayoutBreakPoint:u.useCallback((e,t)=>{let n=d(t),r=e;return c(e)&&(r=l(e,n??`Medium`)||``),r},[d,c,l])}};function z(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function B(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}function V(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?be(s,function(e){return e.test(o)}):ye(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function ye(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function be(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function xe(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}function Se(e){"@babel/helpers - typeof";return Se=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Se(e)}function Ce(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function we(e,t){if(t.length<e)throw TypeError(e+` argument`+(e>1?`s`:``)+` required, but only `+t.length+` present`)}function Te(e){we(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Se(e)===`object`&&t===`[object Date]`?new Date(e.getTime()):typeof e==`number`||t===`[object Number]`?new Date(e):((typeof e==`string`||t===`[object String]`)&&typeof console<`u`&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}var Ee={};function De(){return Ee}function Oe(e,t){var n;we(1,arguments);var r=De(),i=Ce(t?.weekStartsOn??(t==null||(n=t.locale)==null?void 0:n.options?.weekStartsOn)??r.weekStartsOn??r.locale?.options?.weekStartsOn??0);if(!(i>=0&&i<=6))throw RangeError(`weekStartsOn must be between 0 and 6 inclusively`);var a=Te(e),o=a.getUTCDay(),s=(o<i?7:0)+o-i;return a.setUTCDate(a.getUTCDate()-s),a.setUTCHours(0,0,0,0),a}var ke={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},Ae=function(e,t,n){var r,i=ke[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r},je={date:z({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:z({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:z({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Me={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},Ne={code:`en-US`,formatDistance:Ae,formatLong:je,formatRelative:function(e,t,n,r){return Me[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:B({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:B({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:B({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:B({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:B({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:xe({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:V({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:V({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:V({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:V({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:V({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function Pe(e,t,n){we(2,arguments);var r=Oe(e,n),i=Oe(t,n);return r.getTime()===i.getTime()}var Fe={lessThanXSeconds:{standalone:{one:`weniger als 1 Sekunde`,other:`weniger als {{count}} Sekunden`},withPreposition:{one:`weniger als 1 Sekunde`,other:`weniger als {{count}} Sekunden`}},xSeconds:{standalone:{one:`1 Sekunde`,other:`{{count}} Sekunden`},withPreposition:{one:`1 Sekunde`,other:`{{count}} Sekunden`}},halfAMinute:{standalone:`halbe Minute`,withPreposition:`halben Minute`},lessThanXMinutes:{standalone:{one:`weniger als 1 Minute`,other:`weniger als {{count}} Minuten`},withPreposition:{one:`weniger als 1 Minute`,other:`weniger als {{count}} Minuten`}},xMinutes:{standalone:{one:`1 Minute`,other:`{{count}} Minuten`},withPreposition:{one:`1 Minute`,other:`{{count}} Minuten`}},aboutXHours:{standalone:{one:`etwa 1 Stunde`,other:`etwa {{count}} Stunden`},withPreposition:{one:`etwa 1 Stunde`,other:`etwa {{count}} Stunden`}},xHours:{standalone:{one:`1 Stunde`,other:`{{count}} Stunden`},withPreposition:{one:`1 Stunde`,other:`{{count}} Stunden`}},xDays:{standalone:{one:`1 Tag`,other:`{{count}} Tage`},withPreposition:{one:`1 Tag`,other:`{{count}} Tagen`}},aboutXWeeks:{standalone:{one:`etwa 1 Woche`,other:`etwa {{count}} Wochen`},withPreposition:{one:`etwa 1 Woche`,other:`etwa {{count}} Wochen`}},xWeeks:{standalone:{one:`1 Woche`,other:`{{count}} Wochen`},withPreposition:{one:`1 Woche`,other:`{{count}} Wochen`}},aboutXMonths:{standalone:{one:`etwa 1 Monat`,other:`etwa {{count}} Monate`},withPreposition:{one:`etwa 1 Monat`,other:`etwa {{count}} Monaten`}},xMonths:{standalone:{one:`1 Monat`,other:`{{count}} Monate`},withPreposition:{one:`1 Monat`,other:`{{count}} Monaten`}},aboutXYears:{standalone:{one:`etwa 1 Jahr`,other:`etwa {{count}} Jahre`},withPreposition:{one:`etwa 1 Jahr`,other:`etwa {{count}} Jahren`}},xYears:{standalone:{one:`1 Jahr`,other:`{{count}} Jahre`},withPreposition:{one:`1 Jahr`,other:`{{count}} Jahren`}},overXYears:{standalone:{one:`mehr als 1 Jahr`,other:`mehr als {{count}} Jahre`},withPreposition:{one:`mehr als 1 Jahr`,other:`mehr als {{count}} Jahren`}},almostXYears:{standalone:{one:`fast 1 Jahr`,other:`fast {{count}} Jahre`},withPreposition:{one:`fast 1 Jahr`,other:`fast {{count}} Jahren`}}},Ie=function(e,t,n){var r,i=n!=null&&n.addSuffix?Fe[e].withPreposition:Fe[e].standalone;return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`in `+r:`vor `+r:r},Le={date:z({formats:{full:`EEEE, do MMMM y`,long:`do MMMM y`,medium:`do MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:z({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:z({formats:{full:`{{date}} 'um' {{time}}`,long:`{{date}} 'um' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},Re={lastWeek:`'letzten' eeee 'um' p`,yesterday:`'gestern um' p`,today:`'heute um' p`,tomorrow:`'morgen um' p`,nextWeek:`eeee 'um' p`,other:`P`},ze=function(e,t,n,r){return Re[e]},Be={narrow:[`v.Chr.`,`n.Chr.`],abbreviated:[`v.Chr.`,`n.Chr.`],wide:[`vor Christus`,`nach Christus`]},Ve={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. Quartal`,`2. Quartal`,`3. Quartal`,`4. Quartal`]},He={narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mär`,`Apr`,`Mai`,`Jun`,`Jul`,`Aug`,`Sep`,`Okt`,`Nov`,`Dez`],wide:[`Januar`,`Februar`,`März`,`April`,`Mai`,`Juni`,`Juli`,`August`,`September`,`Oktober`,`November`,`Dezember`]},Ue={narrow:He.narrow,abbreviated:[`Jan.`,`Feb.`,`März`,`Apr.`,`Mai`,`Juni`,`Juli`,`Aug.`,`Sep.`,`Okt.`,`Nov.`,`Dez.`],wide:He.wide},We={code:`de`,formatDistance:Ie,formatLong:Le,formatRelative:ze,localize:{ordinalNumber:function(e){return Number(e)+`.`},era:B({values:Be,defaultWidth:`wide`}),quarter:B({values:Ve,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:B({values:He,formattingValues:Ue,defaultWidth:`wide`}),day:B({values:{narrow:[`S`,`M`,`D`,`M`,`D`,`F`,`S`],short:[`So`,`Mo`,`Di`,`Mi`,`Do`,`Fr`,`Sa`],abbreviated:[`So.`,`Mo.`,`Di.`,`Mi.`,`Do.`,`Fr.`,`Sa.`],wide:[`Sonntag`,`Montag`,`Dienstag`,`Mittwoch`,`Donnerstag`,`Freitag`,`Samstag`]},defaultWidth:`wide`}),dayPeriod:B({values:{narrow:{am:`vm.`,pm:`nm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachm.`,evening:`Abend`,night:`Nacht`},abbreviated:{am:`vorm.`,pm:`nachm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachmittag`,evening:`Abend`,night:`Nacht`},wide:{am:`vormittags`,pm:`nachmittags`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachmittag`,evening:`Abend`,night:`Nacht`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`vm.`,pm:`nm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachm.`,evening:`abends`,night:`nachts`},abbreviated:{am:`vorm.`,pm:`nachm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachmittags`,evening:`abends`,night:`nachts`},wide:{am:`vormittags`,pm:`nachmittags`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachmittags`,evening:`abends`,night:`nachts`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:xe({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:V({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:`any`}),quarter:V({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:V({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:V({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:V({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Ge={lessThanXSeconds:{one:`menos de un segundo`,other:`menos de {{count}} segundos`},xSeconds:{one:`1 segundo`,other:`{{count}} segundos`},halfAMinute:`medio minuto`,lessThanXMinutes:{one:`menos de un minuto`,other:`menos de {{count}} minutos`},xMinutes:{one:`1 minuto`,other:`{{count}} minutos`},aboutXHours:{one:`alrededor de 1 hora`,other:`alrededor de {{count}} horas`},xHours:{one:`1 hora`,other:`{{count}} horas`},xDays:{one:`1 día`,other:`{{count}} días`},aboutXWeeks:{one:`alrededor de 1 semana`,other:`alrededor de {{count}} semanas`},xWeeks:{one:`1 semana`,other:`{{count}} semanas`},aboutXMonths:{one:`alrededor de 1 mes`,other:`alrededor de {{count}} meses`},xMonths:{one:`1 mes`,other:`{{count}} meses`},aboutXYears:{one:`alrededor de 1 año`,other:`alrededor de {{count}} años`},xYears:{one:`1 año`,other:`{{count}} años`},overXYears:{one:`más de 1 año`,other:`más de {{count}} años`},almostXYears:{one:`casi 1 año`,other:`casi {{count}} años`}},Ke=function(e,t,n){var r,i=Ge[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`en `+r:`hace `+r:r},qe={date:z({formats:{full:`EEEE, d 'de' MMMM 'de' y`,long:`d 'de' MMMM 'de' y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:z({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:z({formats:{full:`{{date}} 'a las' {{time}}`,long:`{{date}} 'a las' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Je={lastWeek:`'el' eeee 'pasado a la' p`,yesterday:`'ayer a la' p`,today:`'hoy a la' p`,tomorrow:`'mañana a la' p`,nextWeek:`eeee 'a la' p`,other:`P`},Ye={lastWeek:`'el' eeee 'pasado a las' p`,yesterday:`'ayer a las' p`,today:`'hoy a las' p`,tomorrow:`'mañana a las' p`,nextWeek:`eeee 'a las' p`,other:`P`},Xe={code:`es`,formatDistance:Ke,formatLong:qe,formatRelative:function(e,t,n,r){return t.getUTCHours()===1?Je[e]:Ye[e]},localize:{ordinalNumber:function(e,t){return Number(e)+`º`},era:B({values:{narrow:[`AC`,`DC`],abbreviated:[`AC`,`DC`],wide:[`antes de cristo`,`después de cristo`]},defaultWidth:`wide`}),quarter:B({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1º trimestre`,`2º trimestre`,`3º trimestre`,`4º trimestre`]},defaultWidth:`wide`,argumentCallback:function(e){return Number(e)-1}}),month:B({values:{narrow:[`e`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`ene`,`feb`,`mar`,`abr`,`may`,`jun`,`jul`,`ago`,`sep`,`oct`,`nov`,`dic`],wide:[`enero`,`febrero`,`marzo`,`abril`,`mayo`,`junio`,`julio`,`agosto`,`septiembre`,`octubre`,`noviembre`,`diciembre`]},defaultWidth:`wide`}),day:B({values:{narrow:[`d`,`l`,`m`,`m`,`j`,`v`,`s`],short:[`do`,`lu`,`ma`,`mi`,`ju`,`vi`,`sá`],abbreviated:[`dom`,`lun`,`mar`,`mié`,`jue`,`vie`,`sáb`],wide:[`domingo`,`lunes`,`martes`,`miércoles`,`jueves`,`viernes`,`sábado`]},defaultWidth:`wide`}),dayPeriod:B({values:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`mañana`,afternoon:`tarde`,evening:`tarde`,night:`noche`},abbreviated:{am:`AM`,pm:`PM`,midnight:`medianoche`,noon:`mediodia`,morning:`mañana`,afternoon:`tarde`,evening:`tarde`,night:`noche`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`medianoche`,noon:`mediodia`,morning:`mañana`,afternoon:`tarde`,evening:`tarde`,night:`noche`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`de la mañana`,afternoon:`de la tarde`,evening:`de la tarde`,night:`de la noche`},abbreviated:{am:`AM`,pm:`PM`,midnight:`medianoche`,noon:`mediodia`,morning:`de la mañana`,afternoon:`de la tarde`,evening:`de la tarde`,night:`de la noche`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`medianoche`,noon:`mediodia`,morning:`de la mañana`,afternoon:`de la tarde`,evening:`de la tarde`,night:`de la noche`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:xe({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:V({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:`any`}),quarter:V({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:V({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:`any`}),day:V({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:V({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Ze={lessThanXSeconds:{one:`moins d’une seconde`,other:`moins de {{count}} secondes`},xSeconds:{one:`1 seconde`,other:`{{count}} secondes`},halfAMinute:`30 secondes`,lessThanXMinutes:{one:`moins d’une minute`,other:`moins de {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`environ 1 heure`,other:`environ {{count}} heures`},xHours:{one:`1 heure`,other:`{{count}} heures`},xDays:{one:`1 jour`,other:`{{count}} jours`},aboutXWeeks:{one:`environ 1 semaine`,other:`environ {{count}} semaines`},xWeeks:{one:`1 semaine`,other:`{{count}} semaines`},aboutXMonths:{one:`environ 1 mois`,other:`environ {{count}} mois`},xMonths:{one:`1 mois`,other:`{{count}} mois`},aboutXYears:{one:`environ 1 an`,other:`environ {{count}} ans`},xYears:{one:`1 an`,other:`{{count}} ans`},overXYears:{one:`plus d’un an`,other:`plus de {{count}} ans`},almostXYears:{one:`presqu’un an`,other:`presque {{count}} ans`}},Qe=function(e,t,n){var r,i=Ze[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`dans `+r:`il y a `+r:r},$e={date:z({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:z({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:z({formats:{full:`{{date}} 'à' {{time}}`,long:`{{date}} 'à' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},et={lastWeek:`eeee 'dernier à' p`,yesterday:`'hier à' p`,today:`'aujourd’hui à' p`,tomorrow:`'demain à' p'`,nextWeek:`eeee 'prochain à' p`,other:`P`},tt={code:`fr`,formatDistance:Qe,formatLong:$e,formatRelative:function(e,t,n,r){return et[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=t?.unit;return n===0?`0`:n+(n===1?r&&[`year`,`week`,`hour`,`minute`,`second`].includes(r)?`ère`:`er`:`ème`)},era:B({values:{narrow:[`av. J.-C`,`ap. J.-C`],abbreviated:[`av. J.-C`,`ap. J.-C`],wide:[`avant Jésus-Christ`,`après Jésus-Christ`]},defaultWidth:`wide`}),quarter:B({values:{narrow:[`T1`,`T2`,`T3`,`T4`],abbreviated:[`1er trim.`,`2ème trim.`,`3ème trim.`,`4ème trim.`],wide:[`1er trimestre`,`2ème trimestre`,`3ème trimestre`,`4ème trimestre`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:B({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`janv.`,`févr.`,`mars`,`avr.`,`mai`,`juin`,`juil.`,`août`,`sept.`,`oct.`,`nov.`,`déc.`],wide:[`janvier`,`février`,`mars`,`avril`,`mai`,`juin`,`juillet`,`août`,`septembre`,`octobre`,`novembre`,`décembre`]},defaultWidth:`wide`}),day:B({values:{narrow:[`D`,`L`,`M`,`M`,`J`,`V`,`S`],short:[`di`,`lu`,`ma`,`me`,`je`,`ve`,`sa`],abbreviated:[`dim.`,`lun.`,`mar.`,`mer.`,`jeu.`,`ven.`,`sam.`],wide:[`dimanche`,`lundi`,`mardi`,`mercredi`,`jeudi`,`vendredi`,`samedi`]},defaultWidth:`wide`}),dayPeriod:B({values:{narrow:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`mat.`,afternoon:`ap.m.`,evening:`soir`,night:`mat.`},abbreviated:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`matin`,afternoon:`après-midi`,evening:`soir`,night:`matin`},wide:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`du matin`,afternoon:`de l’après-midi`,evening:`du soir`,night:`du matin`}},defaultWidth:`wide`})},match:{ordinalNumber:xe({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:V({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:`any`}),quarter:V({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:V({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:V({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:V({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},nt={lessThanXSeconds:{one:`meno di un secondo`,other:`meno di {{count}} secondi`},xSeconds:{one:`un secondo`,other:`{{count}} secondi`},halfAMinute:`alcuni secondi`,lessThanXMinutes:{one:`meno di un minuto`,other:`meno di {{count}} minuti`},xMinutes:{one:`un minuto`,other:`{{count}} minuti`},aboutXHours:{one:`circa un'ora`,other:`circa {{count}} ore`},xHours:{one:`un'ora`,other:`{{count}} ore`},xDays:{one:`un giorno`,other:`{{count}} giorni`},aboutXWeeks:{one:`circa una settimana`,other:`circa {{count}} settimane`},xWeeks:{one:`una settimana`,other:`{{count}} settimane`},aboutXMonths:{one:`circa un mese`,other:`circa {{count}} mesi`},xMonths:{one:`un mese`,other:`{{count}} mesi`},aboutXYears:{one:`circa un anno`,other:`circa {{count}} anni`},xYears:{one:`un anno`,other:`{{count}} anni`},overXYears:{one:`più di un anno`,other:`più di {{count}} anni`},almostXYears:{one:`quasi un anno`,other:`quasi {{count}} anni`}},rt=function(e,t,n){var r,i=nt[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`tra `+r:r+` fa`:r},it={date:z({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:z({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:z({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},at=[`domenica`,`lunedì`,`martedì`,`mercoledì`,`giovedì`,`venerdì`,`sabato`];function ot(e){switch(e){case 0:return`'domenica scorsa alle' p`;default:return`'`+at[e]+` scorso alle' p`}}function st(e){return`'`+at[e]+` alle' p`}function ct(e){switch(e){case 0:return`'domenica prossima alle' p`;default:return`'`+at[e]+` prossimo alle' p`}}var lt={lastWeek:function(e,t,n){var r=e.getUTCDay();return Pe(e,t,n)?st(r):ot(r)},yesterday:`'ieri alle' p`,today:`'oggi alle' p`,tomorrow:`'domani alle' p`,nextWeek:function(e,t,n){var r=e.getUTCDay();return Pe(e,t,n)?st(r):ct(r)},other:`P`},ut={code:`it`,formatDistance:rt,formatLong:it,formatRelative:function(e,t,n,r){var i=lt[e];return typeof i==`function`?i(t,n,r):i},localize:{ordinalNumber:function(e,t){var n=Number(e);return String(n)},era:B({values:{narrow:[`aC`,`dC`],abbreviated:[`a.C.`,`d.C.`],wide:[`avanti Cristo`,`dopo Cristo`]},defaultWidth:`wide`}),quarter:B({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1º trimestre`,`2º trimestre`,`3º trimestre`,`4º trimestre`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:B({values:{narrow:[`G`,`F`,`M`,`A`,`M`,`G`,`L`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`gen`,`feb`,`mar`,`apr`,`mag`,`giu`,`lug`,`ago`,`set`,`ott`,`nov`,`dic`],wide:[`gennaio`,`febbraio`,`marzo`,`aprile`,`maggio`,`giugno`,`luglio`,`agosto`,`settembre`,`ottobre`,`novembre`,`dicembre`]},defaultWidth:`wide`}),day:B({values:{narrow:[`D`,`L`,`M`,`M`,`G`,`V`,`S`],short:[`dom`,`lun`,`mar`,`mer`,`gio`,`ven`,`sab`],abbreviated:[`dom`,`lun`,`mar`,`mer`,`gio`,`ven`,`sab`],wide:[`domenica`,`lunedì`,`martedì`,`mercoledì`,`giovedì`,`venerdì`,`sabato`]},defaultWidth:`wide`}),dayPeriod:B({values:{narrow:{am:`m.`,pm:`p.`,midnight:`mezzanotte`,noon:`mezzogiorno`,morning:`mattina`,afternoon:`pomeriggio`,evening:`sera`,night:`notte`},abbreviated:{am:`AM`,pm:`PM`,midnight:`mezzanotte`,noon:`mezzogiorno`,morning:`mattina`,afternoon:`pomeriggio`,evening:`sera`,night:`notte`},wide:{am:`AM`,pm:`PM`,midnight:`mezzanotte`,noon:`mezzogiorno`,morning:`mattina`,afternoon:`pomeriggio`,evening:`sera`,night:`notte`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`m.`,pm:`p.`,midnight:`mezzanotte`,noon:`mezzogiorno`,morning:`di mattina`,afternoon:`del pomeriggio`,evening:`di sera`,night:`di notte`},abbreviated:{am:`AM`,pm:`PM`,midnight:`mezzanotte`,noon:`mezzogiorno`,morning:`di mattina`,afternoon:`del pomeriggio`,evening:`di sera`,night:`di notte`},wide:{am:`AM`,pm:`PM`,midnight:`mezzanotte`,noon:`mezzogiorno`,morning:`di mattina`,afternoon:`del pomeriggio`,evening:`di sera`,night:`di notte`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:xe({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:V({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:`any`}),quarter:V({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:V({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:V({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:`any`}),dayPeriod:V({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},dt={lessThanXSeconds:{one:`1秒未満`,other:`{{count}}秒未満`,oneWithSuffix:`約1秒`,otherWithSuffix:`約{{count}}秒`},xSeconds:{one:`1秒`,other:`{{count}}秒`},halfAMinute:`30秒`,lessThanXMinutes:{one:`1分未満`,other:`{{count}}分未満`,oneWithSuffix:`約1分`,otherWithSuffix:`約{{count}}分`},xMinutes:{one:`1分`,other:`{{count}}分`},aboutXHours:{one:`約1時間`,other:`約{{count}}時間`},xHours:{one:`1時間`,other:`{{count}}時間`},xDays:{one:`1日`,other:`{{count}}日`},aboutXWeeks:{one:`約1週間`,other:`約{{count}}週間`},xWeeks:{one:`1週間`,other:`{{count}}週間`},aboutXMonths:{one:`約1か月`,other:`約{{count}}か月`},xMonths:{one:`1か月`,other:`{{count}}か月`},aboutXYears:{one:`約1年`,other:`約{{count}}年`},xYears:{one:`1年`,other:`{{count}}年`},overXYears:{one:`1年以上`,other:`{{count}}年以上`},almostXYears:{one:`1年近く`,other:`{{count}}年近く`}},ft=function(e,t,n){n||={};var r,i=dt[e];return r=typeof i==`string`?i:t===1?n.addSuffix&&i.oneWithSuffix?i.oneWithSuffix:i.one:n.addSuffix&&i.otherWithSuffix?i.otherWithSuffix.replace(`{{count}}`,String(t)):i.other.replace(`{{count}}`,String(t)),n.addSuffix?n.comparison&&n.comparison>0?r+`後`:r+`前`:r},pt={date:z({formats:{full:`y年M月d日EEEE`,long:`y年M月d日`,medium:`y/MM/dd`,short:`y/MM/dd`},defaultWidth:`full`}),time:z({formats:{full:`H時mm分ss秒 zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:z({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},mt={lastWeek:`先週のeeeeのp`,yesterday:`昨日のp`,today:`今日のp`,tomorrow:`明日のp`,nextWeek:`翌週のeeeeのp`,other:`P`},ht={code:`ja`,formatDistance:ft,formatLong:pt,formatRelative:function(e,t,n,r){return mt[e]},localize:{ordinalNumber:function(e,t){var n=Number(e);switch(String(t?.unit)){case`year`:return`${n}年`;case`quarter`:return`第${n}四半期`;case`month`:return`${n}月`;case`week`:return`第${n}週`;case`date`:return`${n}日`;case`hour`:return`${n}時`;case`minute`:return`${n}分`;case`second`:return`${n}秒`;default:return`${n}`}},era:B({values:{narrow:[`BC`,`AC`],abbreviated:[`紀元前`,`西暦`],wide:[`紀元前`,`西暦`]},defaultWidth:`wide`}),quarter:B({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`第1四半期`,`第2四半期`,`第3四半期`,`第4四半期`]},defaultWidth:`wide`,argumentCallback:function(e){return Number(e)-1}}),month:B({values:{narrow:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`],abbreviated:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],wide:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`]},defaultWidth:`wide`}),day:B({values:{narrow:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],short:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],abbreviated:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],wide:[`日曜日`,`月曜日`,`火曜日`,`水曜日`,`木曜日`,`金曜日`,`土曜日`]},defaultWidth:`wide`}),dayPeriod:B({values:{narrow:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`},abbreviated:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`},wide:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`},abbreviated:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`},wide:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:xe({matchPattern:/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:V({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},defaultParseWidth:`any`}),quarter:V({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:V({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:`any`}),day:V({matchPatterns:{narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},defaultParseWidth:`any`}),dayPeriod:V({matchPatterns:{any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},gt={lessThanXSeconds:{one:`1초 미만`,other:`{{count}}초 미만`},xSeconds:{one:`1초`,other:`{{count}}초`},halfAMinute:`30초`,lessThanXMinutes:{one:`1분 미만`,other:`{{count}}분 미만`},xMinutes:{one:`1분`,other:`{{count}}분`},aboutXHours:{one:`약 1시간`,other:`약 {{count}}시간`},xHours:{one:`1시간`,other:`{{count}}시간`},xDays:{one:`1일`,other:`{{count}}일`},aboutXWeeks:{one:`약 1주`,other:`약 {{count}}주`},xWeeks:{one:`1주`,other:`{{count}}주`},aboutXMonths:{one:`약 1개월`,other:`약 {{count}}개월`},xMonths:{one:`1개월`,other:`{{count}}개월`},aboutXYears:{one:`약 1년`,other:`약 {{count}}년`},xYears:{one:`1년`,other:`{{count}}년`},overXYears:{one:`1년 이상`,other:`{{count}}년 이상`},almostXYears:{one:`거의 1년`,other:`거의 {{count}}년`}},_t=function(e,t,n){var r,i=gt[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r+` 후`:r+` 전`:r},vt={date:z({formats:{full:`y년 M월 d일 EEEE`,long:`y년 M월 d일`,medium:`y.MM.dd`,short:`y.MM.dd`},defaultWidth:`full`}),time:z({formats:{full:`a H시 mm분 ss초 zzzz`,long:`a H:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:z({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},yt={lastWeek:`'지난' eeee p`,yesterday:`'어제' p`,today:`'오늘' p`,tomorrow:`'내일' p`,nextWeek:`'다음' eeee p`,other:`P`},bt={code:`ko`,formatDistance:_t,formatLong:vt,formatRelative:function(e,t,n,r){return yt[e]},localize:{ordinalNumber:function(e,t){var n=Number(e);switch(String(t?.unit)){case`minute`:case`second`:return String(n);case`date`:return n+`일`;default:return n+`번째`}},era:B({values:{narrow:[`BC`,`AD`],abbreviated:[`BC`,`AD`],wide:[`기원전`,`서기`]},defaultWidth:`wide`}),quarter:B({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1분기`,`2분기`,`3분기`,`4분기`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:B({values:{narrow:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`],abbreviated:[`1월`,`2월`,`3월`,`4월`,`5월`,`6월`,`7월`,`8월`,`9월`,`10월`,`11월`,`12월`],wide:[`1월`,`2월`,`3월`,`4월`,`5월`,`6월`,`7월`,`8월`,`9월`,`10월`,`11월`,`12월`]},defaultWidth:`wide`}),day:B({values:{narrow:[`일`,`월`,`화`,`수`,`목`,`금`,`토`],short:[`일`,`월`,`화`,`수`,`목`,`금`,`토`],abbreviated:[`일`,`월`,`화`,`수`,`목`,`금`,`토`],wide:[`일요일`,`월요일`,`화요일`,`수요일`,`목요일`,`금요일`,`토요일`]},defaultWidth:`wide`}),dayPeriod:B({values:{narrow:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`},abbreviated:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`},wide:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`},abbreviated:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`},wide:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:xe({matchPattern:/^(\d+)(일|번째)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:V({matchPatterns:{narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(bc|기원전)/i,/^(ad|서기)/i]},defaultParseWidth:`any`}),quarter:V({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:V({matchPatterns:{narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:`any`}),day:V({matchPatterns:{narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},defaultParseWidth:`any`}),dayPeriod:V({matchPatterns:{any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},xt={lessThanXSeconds:{one:`menos de um segundo`,other:`menos de {{count}} segundos`},xSeconds:{one:`1 segundo`,other:`{{count}} segundos`},halfAMinute:`meio minuto`,lessThanXMinutes:{one:`menos de um minuto`,other:`menos de {{count}} minutos`},xMinutes:{one:`1 minuto`,other:`{{count}} minutos`},aboutXHours:{one:`aproximadamente 1 hora`,other:`aproximadamente {{count}} horas`},xHours:{one:`1 hora`,other:`{{count}} horas`},xDays:{one:`1 dia`,other:`{{count}} dias`},aboutXWeeks:{one:`aproximadamente 1 semana`,other:`aproximadamente {{count}} semanas`},xWeeks:{one:`1 semana`,other:`{{count}} semanas`},aboutXMonths:{one:`aproximadamente 1 mês`,other:`aproximadamente {{count}} meses`},xMonths:{one:`1 mês`,other:`{{count}} meses`},aboutXYears:{one:`aproximadamente 1 ano`,other:`aproximadamente {{count}} anos`},xYears:{one:`1 ano`,other:`{{count}} anos`},overXYears:{one:`mais de 1 ano`,other:`mais de {{count}} anos`},almostXYears:{one:`quase 1 ano`,other:`quase {{count}} anos`}},St=function(e,t,n){var r,i=xt[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`daqui a `+r:`há `+r:r},Ct={date:z({formats:{full:`EEEE, d 'de' MMMM 'de' y`,long:`d 'de' MMMM 'de' y`,medium:`d 'de' MMM 'de' y`,short:`dd/MM/y`},defaultWidth:`full`}),time:z({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:z({formats:{full:`{{date}} 'às' {{time}}`,long:`{{date}} 'às' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},wt={lastWeek:function(e){var t=e.getUTCDay();return`'`+(t===0||t===6?`último`:`última`)+`' eeee 'às' p`},yesterday:`'ontem às' p`,today:`'hoje às' p`,tomorrow:`'amanhã às' p`,nextWeek:`eeee 'às' p`,other:`P`},Tt={code:`pt`,formatDistance:St,formatLong:Ct,formatRelative:function(e,t,n,r){var i=wt[e];return typeof i==`function`?i(t):i},localize:{ordinalNumber:function(e,t){return Number(e)+`º`},era:B({values:{narrow:[`aC`,`dC`],abbreviated:[`a.C.`,`d.C.`],wide:[`antes de Cristo`,`depois de Cristo`]},defaultWidth:`wide`}),quarter:B({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1º trimestre`,`2º trimestre`,`3º trimestre`,`4º trimestre`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:B({values:{narrow:[`j`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`jan`,`fev`,`mar`,`abr`,`mai`,`jun`,`jul`,`ago`,`set`,`out`,`nov`,`dez`],wide:[`janeiro`,`fevereiro`,`março`,`abril`,`maio`,`junho`,`julho`,`agosto`,`setembro`,`outubro`,`novembro`,`dezembro`]},defaultWidth:`wide`}),day:B({values:{narrow:[`d`,`s`,`t`,`q`,`q`,`s`,`s`],short:[`dom`,`seg`,`ter`,`qua`,`qui`,`sex`,`sáb`],abbreviated:[`dom`,`seg`,`ter`,`qua`,`qui`,`sex`,`sáb`],wide:[`domingo`,`segunda-feira`,`terça-feira`,`quarta-feira`,`quinta-feira`,`sexta-feira`,`sábado`]},defaultWidth:`wide`}),dayPeriod:B({values:{narrow:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`noite`,night:`madrugada`},abbreviated:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`noite`,night:`madrugada`},wide:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`noite`,night:`madrugada`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da noite`,night:`da madrugada`},abbreviated:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da noite`,night:`da madrugada`},wide:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da noite`,night:`da madrugada`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:xe({matchPattern:/^(\d+)(º|ª)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:V({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},defaultParseWidth:`any`}),quarter:V({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:V({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:V({matchPatterns:{narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},defaultParseWidth:`any`}),dayPeriod:V({matchPatterns:{narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Et={lessThanXSeconds:{one:`不到 1 秒`,other:`不到 {{count}} 秒`},xSeconds:{one:`1 秒`,other:`{{count}} 秒`},halfAMinute:`半分钟`,lessThanXMinutes:{one:`不到 1 分钟`,other:`不到 {{count}} 分钟`},xMinutes:{one:`1 分钟`,other:`{{count}} 分钟`},xHours:{one:`1 小时`,other:`{{count}} 小时`},aboutXHours:{one:`大约 1 小时`,other:`大约 {{count}} 小时`},xDays:{one:`1 天`,other:`{{count}} 天`},aboutXWeeks:{one:`大约 1 个星期`,other:`大约 {{count}} 个星期`},xWeeks:{one:`1 个星期`,other:`{{count}} 个星期`},aboutXMonths:{one:`大约 1 个月`,other:`大约 {{count}} 个月`},xMonths:{one:`1 个月`,other:`{{count}} 个月`},aboutXYears:{one:`大约 1 年`,other:`大约 {{count}} 年`},xYears:{one:`1 年`,other:`{{count}} 年`},overXYears:{one:`超过 1 年`,other:`超过 {{count}} 年`},almostXYears:{one:`将近 1 年`,other:`将近 {{count}} 年`}},Dt=function(e,t,n){var r,i=Et[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r+`内`:r+`前`:r},Ot={date:z({formats:{full:`y'年'M'月'd'日' EEEE`,long:`y'年'M'月'd'日'`,medium:`yyyy-MM-dd`,short:`yy-MM-dd`},defaultWidth:`full`}),time:z({formats:{full:`zzzz a h:mm:ss`,long:`z a h:mm:ss`,medium:`a h:mm:ss`,short:`a h:mm`},defaultWidth:`full`}),dateTime:z({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})};function kt(e,t,n){var r=`eeee p`;return Pe(e,t,n)?r:e.getTime()>t.getTime()?`'下个'`+r:`'上个'`+r}var At={lastWeek:kt,yesterday:`'昨天' p`,today:`'今天' p`,tomorrow:`'明天' p`,nextWeek:kt,other:`PP p`},jt={code:`zh-CN`,formatDistance:Dt,formatLong:Ot,formatRelative:function(e,t,n,r){var i=At[e];return typeof i==`function`?i(t,n,r):i},localize:{ordinalNumber:function(e,t){var n=Number(e);switch(t?.unit){case`date`:return n.toString()+`日`;case`hour`:return n.toString()+`时`;case`minute`:return n.toString()+`分`;case`second`:return n.toString()+`秒`;default:return`第 `+n.toString()}},era:B({values:{narrow:[`前`,`公元`],abbreviated:[`前`,`公元`],wide:[`公元前`,`公元`]},defaultWidth:`wide`}),quarter:B({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`第一季`,`第二季`,`第三季`,`第四季`],wide:[`第一季度`,`第二季度`,`第三季度`,`第四季度`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:B({values:{narrow:[`一`,`二`,`三`,`四`,`五`,`六`,`七`,`八`,`九`,`十`,`十一`,`十二`],abbreviated:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],wide:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`]},defaultWidth:`wide`}),day:B({values:{narrow:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],short:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],abbreviated:[`周日`,`周一`,`周二`,`周三`,`周四`,`周五`,`周六`],wide:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`]},defaultWidth:`wide`}),dayPeriod:B({values:{narrow:{am:`上`,pm:`下`,midnight:`凌晨`,noon:`午`,morning:`早`,afternoon:`下午`,evening:`晚`,night:`夜`},abbreviated:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜间`},wide:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜间`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`上`,pm:`下`,midnight:`凌晨`,noon:`午`,morning:`早`,afternoon:`下午`,evening:`晚`,night:`夜`},abbreviated:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜间`},wide:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜间`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:xe({matchPattern:/^(第\s*)?\d+(日|时|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:V({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:`any`}),quarter:V({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:V({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:`any`}),day:V({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:`any`}),dayPeriod:V({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Mt={"en-US":Ne,"es-ES":Xe,"fr-FR":tt,"de-DE":We,"it-IT":ut,"pt-BR":Tt,"pt-PT":Tt,"ja-JP":ht,"ko-KR":bt,"zh-CN":jt},Nt=(e,t)=>{let n=t&&Mt[t]||Ne,{error:r}=L();return{getFormatRelative:e=>{try{return(0,m.formatDistanceToNow)(typeof e==`string`?(0,m.parseISO)(e):e,{addSuffix:!0,locale:n})}catch(e){return r(`Error formatting relative time:`,e instanceof Error?e:void 0),``}},convertDateToUTC:e=>{try{let t=typeof e==`string`?(0,m.parseISO)(e):e;return new Date(t.toUTCString())}catch(e){return r(`Error converting to UTC:`,e instanceof Error?e:void 0),new Date}},formatDate:(e,t=`PPpp`)=>{try{return(0,m.format)(typeof e==`string`?(0,m.parseISO)(e):e,t,{locale:n})}catch(e){return r(`Error formatting date:`,e instanceof Error?e:void 0),``}},getTimezoneOffset:()=>new Date().getTimezoneOffset(),convertToTimezone:(n,i)=>{try{let r=typeof n==`string`?(0,m.parseISO)(n):n,a=i||e||Intl.DateTimeFormat().resolvedOptions().timeZone;return r.toLocaleString(t||`en-US`,{timeZone:a})}catch(e){return r(`Error converting timezone:`,e instanceof Error?e:void 0),(typeof n==`string`?new Date(n):n).toString()}}}},Pt=(e,t,n)=>{let{getFormatRelative:r,formatDate:i}=Nt(t,e);return{formatUtcDate:(e,t=`PP`)=>{let n=(0,m.differenceInDays)(new Date,(0,m.parseISO)(e)),a=``;return e!==void 0&&(a=n>7?i(e,t):r(e)),a},formatTime:n=>n.toLocaleTimeString(e,{timeZone:t}),convertDateToUTC:n=>{let r=typeof n==`string`?new Date(n):n,i=new Intl.DateTimeFormat(e,{timeZone:t,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1}).formatToParts(r),a,o,s,c,l,u;for(let e of i)switch(e.type){case`year`:a=e.value;break;case`month`:o=e.value;break;case`day`:s=e.value;break;case`hour`:c=e.value;break;case`minute`:l=e.value;break;case`second`:u=e.value;break;default:break}let d=`${a}-${o}-${s}T${c}:${l}:${u}Z`;return new Date(d)}}},Ft=process.env.NODE_ENV!==`production`,It=`data:image/`,Lt=()=>{let{error:e}=L(),t=(0,u.useCallback)(async e=>{let t=await fetch(e).then(e=>e.text());return`data:image/svg+xml;base64,`+btoa(t)},[]),n=(0,u.useCallback)(async(t,n,r)=>new Promise((i,a)=>{let o=new Image;o.crossOrigin=`anonymous`,o.addEventListener(`load`,()=>{let t=document.createElement(`canvas`);t.width=n??o.width,t.height=r??o.height,t?.getContext(`2d`)?.drawImage(o,0,0,n??o.width,r??o.height);let s;try{s=t.toDataURL(`image/png`,1),i(s)}catch(t){Ft&&e(`[ImageService.getBase64Image]: Err='${t.message}'`),a(t)}}),o.addEventListener(`error`,t=>{Ft&&e(`[ImageService.getBase64Image]: Image load error='${t.message}'`),a(t)}),o.src=t}),[]),r=(0,u.useCallback)(e=>!(0,h.isEmpty)(e)&&e.indexOf(It)>=0,[]);return{getBase64ImageFromDOMImg:(0,u.useCallback)(t=>{try{let e=document.getElementById(t),n=document.createElement(`canvas`);return n.width=e.width,n.height=e.height,n.getContext(`2d`)?.drawImage(e,0,0),n.toDataURL(`image/png`)}catch(t){Ft&&e(`[getBase64ImageFromDOMImg]: Err='${t.message}'`);return}},[]),isBase64Image:r,getImageBase64:n,base64FromSVGUrl:t}};function Rt(e,t=0){let n=null;return function(...r){let i=this;n&&clearTimeout(n),n=setTimeout(()=>{e.apply(i,r)},t)}}function zt(e,t=0){let n=null,r=0;return function(...i){let a=this,o=Date.now();r||=o;let s=t-(o-r);s<=0||s>t?(n&&=(clearTimeout(n),null),r=o,e.apply(a,i)):n||=setTimeout(()=>{r=Date.now(),n=null,e.apply(a,i)},s)}}function Bt(e){if(typeof e!=`object`||!e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Array)return e.map(e=>Bt(e));if(e instanceof Object){let t={};for(let n in e)e.hasOwnProperty(n)&&(t[n]=Bt(e[n]));return t}return e}function Vt(e){return e==null?!0:typeof e==`string`||Array.isArray(e)?e.length===0:typeof e==`object`?Object.keys(e).length===0:!1}function Ht(e,t,n){let r=Array.isArray(t)?t:t.split(`.`),i=e;for(let e of r){if(i==null)return n;i=i[e]}return i===void 0?n:i}function Ut(e,t,n){let r=Array.isArray(t)?t:t.split(`.`),i=r.pop();if(!i)return e;let a=e;for(let e of r)(!(e in a)||typeof a[e]!=`object`)&&(a[e]={}),a=a[e];return a[i]=n,e}function Wt(e){return Array.from(new Set(e))}function Gt(e,t){let n=new Set;return e.filter(e=>{let r=t(e);return n.has(r)?!1:(n.add(r),!0)})}function Kt(e,t){return e.reduce((e,n)=>{let r=String(t(n));return e[r]||(e[r]=[]),e[r].push(n),e},{})}function qt(e,t){return e.map(t)}function Jt(e,t){return e.filter(t)}function Yt(e,t){return e.some(t)}function Xt(e,t){return e.every(t)}for(var Zt=function(e){return e.HTML=`html`,e.MARKDOWN=`markdown`,e.ADAPTIVE_CARD=`adaptiveCard`,e.PLAIN_TEXT=`plainText`,e}({}),Qt=e=>{try{let t=JSON.parse(e);return typeof t==`object`&&!!t}catch{return!1}},$t=e=>{try{let t=JSON.parse(e);return t&&typeof t==`object`&&(t.type===`AdaptiveCard`||t.$schema?.includes(`adaptivecards.io`))}catch{return!1}},en=e=>{let t=e.trim(),n=[/^<!DOCTYPE\s+html/i,/^<html[\s>]/i,/^<\?xml/i,/<(div|span|p|h[1-6]|table|ul|ol|li|a|img|br|hr|strong|em|b|i)[\s>]/i],r=/<[^>]+>/.test(t),i=/^<[^>]+>/.test(t),a=(t.match(/<(?!\/)[^>]+>/g)||[]).length;return n.some(e=>e.test(t))||r&&i&&a>0},tn=e=>{let t=e.trim(),n=[/^#{1,6}\s+.+$/m,/\*\*.*?\*\*/,/\*.*?\*/,/__.*?__/,/_.*?_/,/\[.*?\]\(.*?\)/,/^\s*[-*+]\s+/m,/^\s*\d+\.\s+/m,/`[^`]+`/,/^```/m,/^\|.*\|.*\|$/m,/^>\s+/m,/^\s*---\s*$/m].some(e=>e.test(t)),r=/^<[^>]+>/.test(t);return n&&!r},nn=(e,t,n=!1)=>{let r=t.filter(t=>t.test(e)).length/t.length;return n?1-r:r},rn=e=>{if(typeof e==`object`&&e){let t=e;if(t.type===`AdaptiveCard`||t.$schema?.includes(`adaptivecards.io`))return{type:Zt.ADAPTIVE_CARD,content:e,confidence:1};e=JSON.stringify(e,null,2)}let t=e,n=t.trim();if(!n||n.length<3)return{type:Zt.PLAIN_TEXT,content:t,confidence:1};if(Qt(n)&&$t(n))return{type:Zt.ADAPTIVE_CARD,content:JSON.parse(n),confidence:1};if(en(n)){let e=Math.max(.7,nn(n,[/^<!DOCTYPE\s+html/i,/^<html[\s>]/i,/<(div|span|p|h[1-6]|table|ul|ol|li)[\s>]/i]));return{type:Zt.HTML,content:t,confidence:e}}if(tn(n)){let e=Math.max(.6,nn(n,[/^#{1,6}\s+.+$/m,/\*\*.*?\*\*/,/\[.*?\]\(.*?\)/,/^\s*[-*+]\s+/m,/`[^`]+`/,/^```/m,/^\|.*\|.*\|$/m]));return{type:Zt.MARKDOWN,content:t,confidence:e}}return{type:Zt.PLAIN_TEXT,content:t,confidence:.5}},an=e=>rn(e).type,on=e=>{let{styles:t}=e,{getBaseStyles:n}=ve();return{cardStyles:u.useCallback((r,i)=>({...n(e,r,i),...t}),[n,e,t]),bodyCardDefaultStyles:u.useMemo(()=>({display:`flex`,flexDirection:`column`,justifyContent:`start`,alignItems:`stretch`,overflow:`unset`}),[])}},sn=e=>{let{className:t,cardBody:n,cardBodyClassName:r,cardHeader:i,cardHeaderClassName:a,cardHeaderImage:o,cardHeaderAction:s,cardHeaderDescription:c,cardFooterAction:l,cardFooterClassName:f,cardFooterContent:m,cardPreviewImage:h,cardPreviewLogo:_,cardPreviewPosition:v=`top`}=e,{cardStyles:y,bodyCardDefaultStyles:b}=on(e),x=u.useRef(null),[S,C]=u.useState(0),[w,T]=u.useState(0);return u.useEffect(()=>{let e;return x.current&&(e=new g.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;C(e),T(n)}}),e.observe(x.current)),()=>{e&&e.disconnect()}},[]),(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`div`,{ref:x,children:(0,d.jsxs)(p.Card,{className:t,style:y(S,w),...e,children:[h&&v===`top`&&(0,d.jsxs)(p.CardPreview,{logo:_,children:[h,` `]}),i&&(0,d.jsx)(p.CardHeader,{className:a,image:o,header:i,description:c,action:s}),h&&v===`afterHeader`&&(0,d.jsxs)(p.CardPreview,{logo:_,children:[h,` `]}),n&&(0,d.jsx)(`div`,{className:(0,p.mergeClasses)(r),style:b,children:n}),h&&v===`bottom`&&(0,d.jsxs)(p.CardPreview,{logo:_,children:[h,` `]}),m&&(0,d.jsx)(p.CardFooter,{action:l,className:f,children:m})]})})})},cn=e=>{let{cols:t,verticalSpacing:n,horizontalSpacing:r,styles:i,gridItemAutoFlow:a,minItemWidth:o}=e,{getSpacing:s,getCurrentDevice:c,getBaseStyles:l}=ve();return{gridStyles:u.useCallback((u,d)=>{let f=l(e,u,d),p=`${s(n,u,`vertical`)} ${s(r,u,`horizontal`)}`,m=c(u),h=`repeat(auto-${a??`fill`}, minmax(min(100%, ${o??250}px), 1fr))`;if(t&&t>0){let e=t??0;switch(m){case`ExtraSmall`:e=Math.min(t,1);break;case`Small`:e=Math.min(t,2);break;case`Medium`:e=Math.min(t,3);break;case`Large`:e=Math.min(t,4);break;case`ExtraLarge`:e=Math.min(t,4);break;case`ExtraExtraLarge`:e=Math.min(t,5);break;case`XXXLarge`:e=Math.min(t,6);break;default:e=0}h=`repeat(${e}, minmax(auto, 1fr))`}return{...f,display:`grid`,gridTemplateColumns:h,gap:p,overflow:`hidden`,...i}},[l,e,s,n,r,c,t,i,a,o])}},ln=e=>{let{children:t,className:n}=e,{gridStyles:r}=cn(e),i=u.useRef(null),[a,o]=u.useState(0),[s,c]=u.useState(0);return u.useEffect(()=>{let e;return i.current&&(e=new g.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;o(e),c(n)}}),e.observe(i.current)),()=>{e&&e.disconnect()}},[]),(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`div`,{className:n,style:r(a,s),ref:i,children:t})})},un=e=>{let{maxWith:t}=e,{getBaseStyles:n}=ve();return{rootStyles:u.useCallback((r,i)=>({...n(e,r,i),maxWidth:t}),[n,t,e]),layoutGridStyles:(0,_.css)({display:`grid`,overflow:`hidden`})}},dn={areas:[`header header header`,`sidebar content sidebar`,`footer footer footer`],columns:`1fr 3fr 1fr`,rows:`auto 1fr auto`},fn=e=>{let{className:t,children:n,layoutConfig:r=dn}=e,i=u.useRef(null),[a,o]=u.useState(0),[s,c]=u.useState(0),{rootStyles:l,layoutGridStyles:f}=un({...e,layoutConfig:r}),m=((e,t)=>{let n;return u.useCallback((...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)},[e,t])})((e,t)=>{o(e),c(t)},200);return u.useEffect(()=>{if(!i.current)return;let e=new g.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;m(e,n)}});return e.observe(i.current),()=>e.disconnect()},[m]),(0,d.jsx)(`div`,{id:`-Layout`,className:(0,p.mergeClasses)(t,f),style:{...l(a,s),gridTemplateAreas:r.areas.join(` `),gridTemplateColumns:r.columns,gridTemplateRows:r.rows},ref:i,children:u.Children.map(n,(e,t)=>u.isValidElement(e)?(0,d.jsx)(`div`,{style:{gridArea:e.props?.area??`area-${t}`},children:e},t):e)})},pn=e=>{let{area:t,children:n}=e;return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`div`,{style:{gridArea:t},children:n})})},mn=e=>{let{verticalSpacing:t,horizontalSpacing:n}=e,{getSpacing:r}=ve();return{spaceStyles:u.useCallback(e=>e?n?{width:r(n,e,`horizontal`)}:t?{height:r(t,e,`vertical`)}:{}:{},[r,n,t])}},hn=e=>{let t=u.useRef(null),[n,r]=u.useState(0),{spaceStyles:i}=mn(e);return u.useEffect(()=>{let e;return t.current&&(e=new g.ResizeObserver(e=>{for(let t of e){let{width:e}=t.contentRect;r(e)}}),e.observe(t.current)),()=>{e&&e.disconnect()}},[]),(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`div`,{id:`-space`,style:i(n),ref:t})})},gn=e=>{let{horizontal:t,horizontalAlign:n,verticalAlign:r,verticalFill:i,wrap:a,columnGap:o,RowGap:s}=e,{getBaseStyles:c}=ve();return{stackStyles:u.useCallback((l,u)=>{let d=r||`start`,f=t?n:`start`,p=t?{flexFlow:a?`row wrap`:`row nowrap`,height:`100%`}:{height:`100%`,maxHeight:`100%`},m=c(e,l,u);return{columnGap:o,rowGap:s,display:`flex`,flexDirection:t?`row`:`column`,alignItems:d,justifyContent:f,...p,height:i?`100%`:m.height,...m,...e.styles}},[c,t,n,e,r,i,a])}},H=e=>{let{children:t,className:n}=e,{stackStyles:r}=gn(e),i=u.useRef(null),[a,o]=u.useState(0),[s,c]=u.useState(0);return u.useEffect(()=>{let e;return i.current&&(e=new g.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;o(e),c(n)}}),e.observe(i.current)),()=>{e&&e.disconnect()}},[]),(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`div`,{className:n,style:r(a,s),ref:i,children:t})})},_n=e=>{let{children:t,grow:n,disableShrink:r,shrink:i,order:a,alignSelf:o,verticalFill:s}=e,{getBaseStyles:c}=ve(),l=u.useRef(null),[f,p]=u.useState(0),[m,h]=u.useState(0),_=c(e,f,m);return u.useEffect(()=>{let e;return l.current&&(e=new g.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;p(e),h(n)}}),e.observe(l.current)),()=>{e&&e.disconnect()}},[]),(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`div`,{ref:l,style:{..._,alignSelf:o,order:a,height:s?`100%`:`auto`,flexGrow:n?typeof n==`boolean`?1:n:void 0,flexShrink:r||!n&&!i?0:1,minWidth:0,minHeight:0,width:`auto`},children:t})})},vn=({ratio:e,children:t,maxWidth:n,maxHeight:r,style:i={},...a})=>{let o={position:`relative`,width:`100%`,paddingTop:`${100/e}%`,maxWidth:n||`none`,maxHeight:r||`none`,...i},s={position:`absolute`,top:0,left:0,width:`100%`,height:`100%`};return(0,d.jsx)(`div`,{style:o,...a,children:(0,d.jsx)(`div`,{style:s,children:t})})},yn=e=>{let{styles:t}=e,{getBaseStyles:n}=ve();return{aspectRatioStyles:u.useCallback((r,i)=>({...n(e,r,i),...t}),[n,e,t])}},bn=e=>{let{styles:t}=e,{getBaseStyles:n}=ve();return{centerStyles:u.useCallback((r,i)=>({...n(e,r,i),...t,overflow:`hidden`,display:`flex`,justifyContent:`center`,alignItems:`center`,width:`100%`,height:`100%`}),[n,e,t]),childrenStyles:(0,_.css)({justifyContent:`center`,textAlign:`center`})}},xn=e=>{let{className:t,children:n}=e,r=u.useRef(null),[i,a]=u.useState(0),[o,s]=u.useState(0),{centerStyles:c}=bn(e),l=(e,t)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}};return u.useEffect(()=>{let e=l(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;a(e),s(n)}},200),t=new g.ResizeObserver(t=>{e(t)});return r.current&&t.observe(r.current),()=>{t.disconnect()}},[]),(0,d.jsx)(`div`,{id:`center`,className:t,style:{...c(i,o),display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100%`,width:`100%`},ref:r,children:n})},Sn=e=>{let{maxWidth:t}=e,{getBaseStyles:n}=ve();return{containerStyles:u.useCallback((r,i)=>!r||!i?{}:{...n(e,r,i),maxWidth:t},[n,t,e])}},Cn=e=>{let{className:t,children:n,style:r,alignItems:i=`center`,justifyContent:a=`center`,flexDirection:o=`row`,centerContent:s=!0}=e,c=u.useRef(null),[l,f]=u.useState(0),[p,m]=u.useState(0),{containerStyles:_}=Sn(e),v=u.useMemo(()=>(0,h.debounce)(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;f(e),m(n)}},200),[]);u.useEffect(()=>{let e=new g.ResizeObserver(e=>{v(e)});return c.current&&e.observe(c.current),()=>{e.disconnect(),v.cancel()}},[v]);let y=u.useMemo(()=>{if(!r)return;let{padding:e,margin:t,...n}=r;return n},[r]);return(0,d.jsx)(`div`,{id:`container`,className:t,style:{..._(l,p),display:`flex`,justifyContent:a,alignItems:i,flexDirection:o,...y},ref:c,children:s?(0,d.jsx)(xn,{children:n}):n})},wn=e=>{let[t,n]=(0,u.useState)(!0),[r,i]=(0,u.useState)(!0),a=(0,u.useCallback)(()=>{e&&e.scrollPrev()},[e]),o=(0,u.useCallback)(()=>{e&&e.scrollNext()},[e]),s=(0,u.useCallback)(e=>{n(!e.canScrollPrev()),i(!e.canScrollNext())},[]);return(0,u.useEffect)(()=>{e&&(s(e),e.on(`reInit`,s),e.on(`select`,s))},[e,s]),{prevBtnDisabled:t,nextBtnDisabled:r,onPrevButtonClick:a,onNextButtonClick:o}},Tn=(e,t)=>{let{getCurrentDevice:n}=ve(),r=u.useCallback(()=>{let e=n(t),r=`95%`;switch(e){case`Medium`:r=`45%`;break;case`Large`:r=`calc(95% / 4)`;break;case`ExtraLarge`:r=`calc(95% / 5)`;break;case`ExtraExtraLarge`:r=`calc(95% / 6)`;break;default:r=`95%`;break}return r},[t,n]),i=u.useCallback(()=>{let e=n(t),r=p.tokens.spacingVerticalM;switch(e){case`Medium`:r=p.tokens.spacingVerticalM;break;case`Large`:r=p.tokens.spacingVerticalL;break;case`ExtraLarge`:r=p.tokens.spacingVerticalXL;break;default:r=p.tokens.spacingVerticalM;break}return r},[t,n]);return{enableControls:(0,_.css)({display:`flex`,justifyContent:`space-between`,alignItems:`stretch`,gap:10,padding:5}),embla__viewport:(0,_.css)({overflow:`hidden`,paddingTop:`10px`,paddingBottom:`20px`}),embla__container:(0,_.css)({backfaceVisibility:`hidden`,display:`flex`,touchAction:`pan-y`}),embla:(0,_.css)({".embla":{}}),embla__slide:(0,_.css)({minWidth:0,flex:`0 0 ${r()}`,paddingLeft:`${i()}`}),embla__buttons:(0,_.css)({display:`grid`,gridTemplateColumns:`repeat(2, 1fr)`,gap:0,alignItems:`center`})}},En=e=>{let{styles:t}=e,{getBaseStyles:n}=ve();return{carouselStyles:u.useCallback((r,i)=>({...n(e,r,i),...t}),[n,e,t])}},Dn=()=>({titleStyles:(0,_.css)({display:`-webkit-box`,overflow:`hidden`,textOverflow:`ellipsis`,WebkitLineClamp:`1`,WebkitBoxOrient:`vertical`,textAlign:`start`,height:`25px`})}),On=e=>{let{className:t,items:n,title:r}=e,i=u.useRef(null),[a,o]=u.useState(0),[s,c]=u.useState(0),{carouselStyles:l}=En(e),[f,m]=(0,v.default)(),h=Dn(),{enableControls:_,embla__slide:b,embla__container:x,embla__viewport:S,embla__buttons:C}=Tn(e,a),{prevBtnDisabled:w,nextBtnDisabled:T,onPrevButtonClick:E,onNextButtonClick:D}=wn(m);return u.useEffect(()=>{let e;return i.current&&(e=new g.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;o(e),c(n)}}),o(i.current.clientWidth),c(i.current.clientHeight),e.observe(i.current)),()=>{e&&e.disconnect()}},[]),(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(`div`,{id:`-carousel`,className:(0,p.mergeClasses)(t,`embla`),style:{...l(a,s)},ref:i,children:[(0,d.jsxs)(`div`,{className:_,children:[(0,d.jsx)(p.Subtitle2,{className:h.titleStyles,children:r}),(0,d.jsxs)(`div`,{className:C,children:[(0,d.jsx)(p.Button,{onClick:E,disabled:w,appearance:`subtle`,icon:(0,d.jsx)(y.ChevronLeftRegular,{})}),(0,d.jsx)(p.Button,{onClick:D,disabled:T,appearance:`subtle`,icon:(0,d.jsx)(y.ChevronRightRegular,{})})]})]}),(0,d.jsx)(`div`,{className:S,ref:f,children:(0,d.jsx)(`div`,{className:x,children:n.map((e,t)=>(0,d.jsx)(`div`,{className:b,children:e},t))})})]})})},kn=e=>{let{direction:t=`horizontal`,resizerSize:n=6}=e,r=t===`horizontal`;return{root:(0,_.css)({position:`relative`,width:`100%`,height:`100%`}),pane:e=>{let t=e===void 0?void 0:typeof e==`number`?`${e}px`:e;return(0,_.css)({overflow:`auto`,position:`relative`,...r?{width:t,height:`100%`}:{height:t,width:`100%`}})},secondaryPane:(0,_.css)({flex:1,overflow:`auto`,position:`relative`,minWidth:0,minHeight:0}),resizer:(0,_.css)({flex:`0 0 auto`,...r?{width:n,cursor:`col-resize`,height:`100%`}:{height:n,cursor:`row-resize`,width:`100%`},backgroundColor:p.tokens.colorNeutralStroke1,transition:`background-color 150ms ease`,userSelect:`none`,zIndex:1}),resizerActive:(0,_.css)({backgroundColor:p.tokens.colorBrandStroke1}),resizerGrip:(0,_.css)({gap:`2px`}),gripDot:(0,_.css)({width:3,height:3,borderRadius:`50%`,backgroundColor:p.tokens.colorNeutralForeground3})}},U={xs:p.tokens.spacingHorizontalXS,s:p.tokens.spacingHorizontalS,m:p.tokens.spacingHorizontalM,l:p.tokens.spacingHorizontalL,xl:p.tokens.spacingHorizontalXL,xxl:p.tokens.spacingHorizontalXXL},W=u.default.memo(u.default.forwardRef(({direction:e=`vertical`,justifyContent:t=`flex-start`,alignItems:n=`stretch`,gap:r,columnGap:i,rowGap:a,margin:o,padding:s,marginTop:c,marginBottom:l,marginLeft:u,marginRight:f,paddingTop:m,paddingBottom:h,paddingLeft:g,paddingRight:v,width:y,height:b,wrap:x=!1,children:S,style:C,className:w,overflow:T,background:E},D)=>(0,d.jsx)(`div`,{ref:D,className:(0,p.mergeClasses)(w,(0,_.css)({display:`flex`,flexDirection:e===`horizontal`?`row`:`column`,justifyContent:t,alignItems:n,gap:r&&U[r]?U[r]:r,columnGap:i&&U[i]?U[i]:i,rowGap:a&&U[a]?U[a]:a,margin:o&&U[o]?U[o]:o,padding:s&&U[s]?U[s]:s,marginTop:c&&U[c]?U[c]:c,marginBottom:l&&U[l]?U[l]:l,marginLeft:u&&U[u]?U[u]:u,marginRight:f&&U[f]?U[f]:f,paddingTop:m&&U[m]?U[m]:m,paddingBottom:h&&U[h]?U[h]:h,paddingLeft:g&&U[g]?U[g]:g,paddingRight:v&&U[v]?U[v]:v,width:y,height:b,overflow:T,flexWrap:x?`wrap`:`nowrap`,backgroundColor:E,...C})),children:S}))),An=e=>{let{direction:t=`horizontal`,defaultSize:n=`50%`,minSize:r=100,maxSize:i=1/0,minSecondarySize:a=100,resizable:o=!0,onResize:s,onResizeEnd:c,primaryContent:l,secondaryContent:f,className:p,styles:m}=e,h=kn(e),g=t===`horizontal`,_=u.useRef(null),v=u.useRef(null),[y,b]=u.useState(null),[x,S]=u.useState(!1),[C,w]=u.useState(!1);u.useEffect(()=>{if(y!==null||!_.current)return;let e=_.current.getBoundingClientRect(),t=g?e.width:e.height;if(typeof n==`number`)b(Math.min(Math.max(n,r),i));else if(typeof n==`string`&&n.endsWith(`%`)){let e=parseFloat(n)/100;b(Math.min(Math.max(t*e,r),i))}else b(t/2)},[n,r,i,g,y]);let T=u.useCallback(t=>{if(!_.current)return t;let n=_.current.getBoundingClientRect(),o=(g?n.width:n.height)-(e.resizerSize??6)-a;return Math.min(Math.max(t,r),Math.min(i,o))},[g,i,r,a,e.resizerSize]),E=u.useCallback(e=>{if(!o)return;e.preventDefault(),S(!0);let t=g?e.clientX:e.clientY,n=y??0,r=e=>{let r=T(n+((g?e.clientX:e.clientY)-t));b(r),s?.(r)},i=()=>{if(S(!1),document.removeEventListener(`mousemove`,r),document.removeEventListener(`mouseup`,i),v.current){let e=g?v.current.getBoundingClientRect().width:v.current.getBoundingClientRect().height;c?.(e)}};document.addEventListener(`mousemove`,r),document.addEventListener(`mouseup`,i)},[o,g,y,T,s,c]),D=u.useCallback(e=>{if(!o)return;S(!0);let t=e.touches[0],n=g?t.clientX:t.clientY,r=y??0,i=e=>{let t=e.touches[0],i=T(r+((g?t.clientX:t.clientY)-n));b(i),s?.(i)},a=()=>{if(S(!1),document.removeEventListener(`touchmove`,i),document.removeEventListener(`touchend`,a),v.current){let e=g?v.current.getBoundingClientRect().width:v.current.getBoundingClientRect().height;c?.(e)}};document.addEventListener(`touchmove`,i,{passive:!1}),document.addEventListener(`touchend`,a)},[o,g,y,T,s,c]),O=u.useCallback(e=>{if(!o||y===null)return;let t=e.shiftKey?50:10,n=0;if(g?e.key===`ArrowLeft`?n=-t:e.key===`ArrowRight`&&(n=t):e.key===`ArrowUp`?n=-t:e.key===`ArrowDown`&&(n=t),n!==0){e.preventDefault();let t=T(y+n);b(t),s?.(t),c?.(t)}},[o,y,g,T,s,c]);u.useEffect(()=>(x?(document.body.style.userSelect=`none`,document.body.style.cursor=g?`col-resize`:`row-resize`):(document.body.style.userSelect=``,document.body.style.cursor=``),()=>{document.body.style.userSelect=``,document.body.style.cursor=``}),[x,g]);let k=u.useRef(null),A=[h.resizer,C||x?h.resizerActive:``].filter(Boolean).join(` `);return u.useEffect(()=>{if(!o||!k.current)return;let e=k.current,t=e=>E(e),n=e=>D(e),r=e=>O(e),i=()=>w(!0),a=()=>w(!1);return e.addEventListener(`mousedown`,t),e.addEventListener(`touchstart`,n),e.addEventListener(`keydown`,r),e.addEventListener(`mouseenter`,i),e.addEventListener(`mouseleave`,a),()=>{e.removeEventListener(`mousedown`,t),e.removeEventListener(`touchstart`,n),e.removeEventListener(`keydown`,r),e.removeEventListener(`mouseenter`,i),e.removeEventListener(`mouseleave`,a)}},[o,E,D,O]),(0,d.jsxs)(W,{ref:_,className:[h.root,p].filter(Boolean).join(` `),style:{height:`100%`,width:`100%`,...m},direction:g?`horizontal`:`vertical`,overflow:`hidden`,children:[(0,d.jsx)(W,{ref:v,className:h.pane(y??void 0),style:{flex:`0 0 auto`},children:l}),o&&(0,d.jsx)(W,{ref:k,className:A,alignItems:`center`,justifyContent:`center`,style:{flex:`0 0 auto`},children:(0,d.jsxs)(W,{className:h.resizerGrip,direction:g?`vertical`:`horizontal`,alignItems:`center`,justifyContent:`center`,children:[(0,d.jsx)(W,{className:h.gripDot,children:``}),(0,d.jsx)(W,{className:h.gripDot,children:``}),(0,d.jsx)(W,{className:h.gripDot,children:``})]})}),(0,d.jsx)(W,{className:h.secondaryPane,style:{flex:1,minWidth:0,minHeight:0},children:f})]})},jn=({anchorPoint:e,isOpen:t,onClose:n,excludeRefs:r,children:i,theme:a})=>{let o=(0,u.useRef)(null),[s,c]=(0,u.useState)(null);(0,u.useLayoutEffect)(()=>{if(!t){c(null);return}if(o.current){let t=o.current.getBoundingClientRect(),n=e.left,r=e.top;n+t.width>window.innerWidth&&(n=window.innerWidth-t.width-10),r+t.height>window.innerHeight&&(r=window.innerHeight-t.height-10),c({left:n,top:r})}},[e,t,i]);let l=u.default.useCallback(e=>{let t=e.target;if(o.current&&!o.current.contains(t)){if(r&&r.some(e=>e.current&&e.current.contains(t)))return;n()}},[n,r]);if((0,u.useEffect)(()=>{if(!t)return;let e=requestAnimationFrame(()=>{document.addEventListener(`mousedown`,l)}),r=e=>{e.key===`Escape`&&n()};return document.addEventListener(`keydown`,r),()=>{cancelAnimationFrame(e),document.removeEventListener(`mousedown`,l),document.removeEventListener(`keydown`,r)}},[t,l,n]),!t)return null;let f=s||e;return b.default.createPortal(a?(0,d.jsx)(p.FluentProvider,{theme:a,children:(0,d.jsx)(p.Card,{ref:o,style:{position:`fixed`,zIndex:1e3,top:f.top,left:f.left},children:i})}):(0,d.jsx)(p.Card,{ref:o,style:{position:`fixed`,zIndex:1e3,top:f.top,left:f.left},children:i}),document.body)},Mn=(0,p.makeStyles)({labelContainer:{display:`flex`,flexDirection:`row`,justifyContent:`flex-start`,alignItems:`center`,...p.shorthands.gap(`6px`)},iconStyles:{width:`26px`},item:{paddingLeft:`15px`}}),Nn=e=>{let{label:t,icon:n,isRequired:r}=e,i=Mn();return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(`div`,{className:i.labelContainer,children:[n&&u.isValidElement(n)?n:(0,d.jsx)(x.Icon,{icon:n,className:i.iconStyles,width:`20px`,height:`20px`,color:p.tokens.colorBrandForeground1}),(0,d.jsx)(p.Caption1,{style:{color:p.tokens.colorBrandForeground1},children:t}),(0,d.jsx)(p.Caption1,{style:{color:p.tokens.colorPaletteRedForeground1},children:r?` *`:``})]})})},Pn=(0,p.makeStyles)({root:{display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100%`,width:`100%`},spinner:{width:`100px`,height:`100px`}}),Fn=e=>{let{size:t,label:n,labelPosition:r,style:i,className:a}=e,o=Pn();return(0,d.jsx)(`div`,{className:o.root,children:(0,d.jsx)(p.Spinner,{style:i,className:(0,p.mergeClasses)(o.spinner,a),size:t,label:n,labelPosition:r})})},In={xs:p.tokens.fontSizeBase200,s:p.tokens.fontSizeBase300,m:p.tokens.fontSizeBase400,l:p.tokens.fontSizeBase500,xl:p.tokens.fontSizeBase600,xxl:p.tokens.fontSizeHero700},G={xs:p.tokens.spacingHorizontalXS,s:p.tokens.spacingHorizontalS,m:p.tokens.spacingHorizontalM,l:p.tokens.spacingHorizontalL,xl:p.tokens.spacingHorizontalXL,xxl:p.tokens.spacingHorizontalXXL},Ln={regular:p.tokens.fontWeightRegular,semibold:p.tokens.fontWeightSemibold,bold:p.tokens.fontWeightBold},Rn=e=>{let{fontSize:t,fontFamily:n,fontWeight:r,numberOfLines:i,as:a,padding:o,paddingTop:s,paddingBottom:c,paddingLeft:l,paddingRight:u,margin:f,marginTop:m,marginBottom:h,marginLeft:g,marginRight:v,children:y,style:b,className:x,color:S,block:C,truncate:w,wrap:T}=e,E=(0,_.css)({color:S,padding:o&&G[o]?G[o]:o,paddingTop:s&&G[s]?G[s]:s,paddingBottom:c&&G[c]?G[c]:c,paddingLeft:l&&G[l]?G[l]:l,paddingRight:u&&G[u]?G[u]:u,margin:f&&G[f]?G[f]:f,marginTop:m&&G[m]?G[m]:m,marginBottom:h&&G[h]?G[h]:h,marginLeft:g&&G[g]?G[g]:g,marginRight:v&&G[v]?G[v]:v}),D={...b,...n?{fontFamily:n}:{},...t?{fontSize:In[t]?In[t]:t}:{},...r?{fontWeight:Ln[r]?Ln[r]:r}:{},...i?{display:`-webkit-box`,WebkitBoxOrient:`vertical`,overflow:`hidden`,WebkitLineClamp:i}:{}};return(0,d.jsx)(p.Text,{as:a,className:(0,p.mergeClasses)(x,E),style:D,block:C,truncate:w,wrap:T,children:y})},zn=e=>{let{onSelected:t,value:n,styles:r,options:i,apparence:a,shape:o,label:s}=e,c=u.useRef(),[l,f]=u.useState(n??i[0]),[m,h]=u.useState({option:[n?n?.key:i?.[0]?.key]}),g=u.useRef(null);u.useEffect(()=>{n!==void 0&&(f(n),h({option:[n.key]})),c.current=i.find(e=>e.key===(n?.key??i[0]?.key))?.icon},[n]);let[_,v]=u.useState(!1),y=u.useCallback((e,t)=>{v(t.open)},[]),b=u.useCallback(e=>e?.text??``,[]),x=u.useCallback((e,{name:n,checkedItems:r})=>{if(n===`option`){let e=r[0];f(i.find(t=>t.key===e)),h({option:r}),c.current=i.find(t=>t.key===e)?.icon,t(i.find(t=>t.key===e))}},[i,t]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(p.Field,{label:s,style:r,ref:g,children:(0,d.jsxs)(p.Menu,{open:_,onOpenChange:y,children:[(0,d.jsx)(p.MenuTrigger,{disableButtonEnhancement:!0,children:(0,d.jsx)(p.MenuButton,{shape:o??`circular`,icon:c.current,appearance:a??`secondary`,children:b(l)??`No data available`})}),(0,d.jsx)(p.MenuPopover,{children:(0,d.jsx)(p.MenuList,{onCheckedValueChange:x,checkedValues:m,style:{width:g.current?.offsetWidth},children:i.map(e=>(0,d.jsx)(p.MenuItemRadio,{name:`option`,value:e.key,icon:e.icon,disabled:e.disabled,children:b(e)},e.key))})})]})})})},Bn=()=>({styles:{container:(0,_.css)({display:`flex`,alignItems:`center`,alignContent:`center`,overflow:`hidden`,whiteSpace:`nowrap`,padding:`8px`,backgroundColor:`transparent`}),breadcrumbItem:(0,_.css)({minWidth:`fit-content`,padding:0,margin:`0px`}),separator:(0,_.css)({marginRight:`8px`})},getStyles:(e,t)=>{let{icon:n}=e;switch(t){case`small`:return(0,_.css)({fontSize:`12px`,padding:`4px`,paddingLeft:n?`0px`:`4px`});case`medium`:return(0,_.css)({fontSize:`14px`,padding:`6px`,paddingLeft:n?`0px`:`6px`});case`large`:return(0,_.css)({fontSize:`16px`,padding:`8px`,paddingLeft:n?`0px`:`8px`});case`current`:return(0,_.css)({fontWeight:p.tokens.fontWeightBold,cursor:`default`,display:`-webkit-box`,"-webkit-line-clamp":`1`,"-webkit-box-orient":`vertical`,overflow:`hidden`,textAlign:`start`,textOverflow:`ellipsis`,wordBreak:`break-word`,fontFamily:p.tokens.fontFamilyBase});default:return(0,_.css)({fontSize:`14px`,padding:`6px`,paddingLeft:n?`0px`:`6px`})}}}),Vn=({items:e,theme:t,size:n=`medium`})=>{let[r,i]=(0,u.useState)(!1),a=(0,u.useRef)(null),o=(0,u.useRef)(null),[s,c]=(0,u.useState)({top:0,left:0,position:`absolute`}),{getStyles:l}=Bn();return(0,u.useEffect)(()=>{let e=e=>{!a.current?.contains(e.target)&&!o.current?.contains(e.target)&&r&&i(!1)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[r]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(p.Button,{ref:a,icon:(0,d.jsx)(y.MoreHorizontalRegular,{}),appearance:`transparent`,onClick:()=>{if(a.current){let e=a.current.getBoundingClientRect(),t=window.innerWidth,n=window.innerHeight,r=o.current?.offsetWidth||200,s=o.current?.offsetHeight||100,l=e.bottom+window.scrollY,u=e.left+window.scrollX;u+r>t&&(u=t-r-10),l+s>n&&(l=e.top+window.scrollY-s),c({top:l,left:u,position:`absolute`}),i(e=>!e)}}}),r&&(0,b.createPortal)(t?(0,d.jsx)(p.FluentProvider,{theme:t,children:(0,d.jsx)(p.Card,{ref:o,style:{...s,zIndex:1e3,padding:`8px`,minWidth:`150px`},children:e.map((e,t)=>(0,d.jsx)(p.Button,{icon:e.icon?e.icon:null,appearance:`transparent`,onClick:()=>{e.onClick?.(),i(!1)},children:(0,d.jsx)(p.Text,{className:l(e,n),children:e.label})},`overflow-${t}`))})}):(0,d.jsx)(p.Card,{ref:o,style:{...s,zIndex:1e3,padding:`8px`,minWidth:`150px`},children:e.map((e,t)=>(0,d.jsx)(p.Button,{icon:e.icon?e.icon:null,appearance:`transparent`,onClick:()=>{e.onClick?.(),i(!1)},children:(0,d.jsx)(p.Text,{className:l(e,n),children:e.label})},`overflow-${t}`))}),document.body)]})},Hn=(e,t)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}},Un=({items:e,maxWidth:t=`100%`,styles:n,theme:r,size:i=`medium`,currentIndex:a=e.length-1,className:o})=>{let{styles:s,getStyles:c}=Bn(),l=(0,u.useRef)(null),[f,m]=(0,u.useState)([]),[h,_]=(0,u.useState)([]);return(0,u.useEffect)(()=>{let t=()=>{if(!l.current)return;let t=l.current.offsetWidth,n=0,r=[],i=[];e.forEach(e=>{n+80<=t-50?(r.push(e),n+=80):i.push(e)}),m(r),_(i)},n=Hn(t,100),r=new g.ResizeObserver(()=>{n()});return l.current&&r.observe(l.current),t(),()=>{r.disconnect()}},[e]),(0,d.jsx)(`div`,{ref:l,className:(0,p.mergeClasses)(s.container,o),style:{maxWidth:t,...n},children:(0,d.jsxs)(H,{horizontal:!0,verticalAlign:`center`,horizontalAlign:`start`,children:[f.map((e,t)=>(0,d.jsxs)(u.default.Fragment,{children:[t===a?(0,d.jsxs)(H,{horizontal:!0,verticalAlign:`center`,horizontalAlign:`start`,columnGap:5,styles:{overflow:`hidden`},children:[e.icon?u.default.cloneElement(e.icon,{style:{fontSize:i===`large`?`20px`:i===`medium`?`16px`:`12px`}}):null,(0,d.jsx)(p.Text,{className:(0,p.mergeClasses)(s.breadcrumbItem,c(e,i),c(e,`current`)),"aria-current":`page`,children:e.label},e.label)]}):(0,d.jsx)(p.Button,{icon:e.icon?e.icon:null,appearance:`transparent`,className:`${s.breadcrumbItem}`,onClick:e.onClick,children:(0,d.jsx)(p.Text,{className:c(e,i),children:e.label})},e.label),t<f.length-1&&(0,d.jsx)(y.ChevronRightRegular,{style:{fontSize:i===`large`?`20px`:i===`medium`?`16px`:`12px`}})]},e.label??`breadcrumb-${t}`)),h.length>0&&(0,d.jsx)(Vn,{items:h,theme:r})]})})},Wn=({icon:e,hoverIcon:t,imageSrc:n,width:r=24,height:i=24,color:a,hoverColor:o,onClick:s,enabled:c=!0})=>{let l=a||p.tokens.colorBrandBackground,f=o||p.tokens.colorBrandBackgroundHover,m=p.tokens.fontFamilyBase,[h,g]=(0,u.useState)(!1),_=(0,u.useCallback)(()=>{c&&g(!0)},[c]),v=(0,u.useCallback)(()=>{c&&g(!1)},[c]),y=(0,u.useMemo)(()=>c&&h&&t?t:e,[h,t,e,c]),b=(0,u.useMemo)(()=>({width:r,height:i,color:h?f:l,display:`flex`,alignItems:`center`,justifyContent:`center`,opacity:c?1:.5,fontFamily:m,fontSize:`inherit`}),[r,i,h,f,l,c,m]),x=(0,u.useMemo)(()=>({border:`none`,background:`none`,padding:0,cursor:c?`pointer`:`default`}),[c]),S=(0,u.useMemo)(()=>({width:r,height:i,objectFit:`contain`,opacity:c?1:.5}),[r,i,c]);return(0,d.jsx)(`button`,{onClick:c?s:void 0,onMouseEnter:_,onMouseLeave:v,disabled:!c,style:x,children:n?(0,d.jsx)(`img`,{src:n,alt:`icon`,style:S}):u.default.cloneElement(y,{style:{...y.props.style,...b}})})},Gn=u.default.memo(Wn),Kn=()=>({getSpanSlots:u.useCallback((e,t)=>{let n=new Date(e),r=new Date(t),i=n.getHours(),a=n.getMinutes(),o=i*2+(a>=1?1:0),s=r.getHours(),c=r.getMinutes(),l=s*2+(c>=1?2:0);return{spanSlots:l-o,startSlot:o,endSlot:l}},[]),generateLightAndHoverColors:u.useCallback((e,t=20,n=10)=>{let r=e=>{let t=parseInt(e.slice(1,3),16)/255,n=parseInt(e.slice(3,5),16)/255,r=parseInt(e.slice(5,7),16)/255,i=Math.max(t,n,r),a=Math.min(t,n,r),o=i-a,s=0,c=0,l=(i+a)/2;if(o!==0){switch(c=l>.5?o/(2-i-a):o/(i+a),i){case t:s=(n-r)/o+(n<r?6:0);break;case n:s=(r-t)/o+2;break;case r:s=(t-n)/o+4;break}s/=6}return{h:s*360,s:c*100,l:l*100}},i=(e,t,n)=>{let r=t*Math.min(n,100-n)/100,i=t=>{let i=(t+e/30)%12,a=n-r*Math.max(Math.min(i-3,9-i,1),-1);return Math.round(255*a).toString(16).padStart(2,`0`)};return`#${i(0)}${i(8)}${i(4)}`},{h:a,s:o,l:s}=r(e);return{lightColor:i(a,o,Math.min(s+t,100)),hoverColor:i(a,o,Math.min(s+n,100))}},[]),getEventColors:u.useCallback(e=>{let t={backgroundColor:p.tokens.colorNeutralBackground3,hoverColor:p.tokens.colorNeutralBackground3Hover};return{"no category":t,meeting:{backgroundColor:p.tokens.colorPaletteBlueBackground2,hoverColor:p.tokens.colorPaletteBlueBorderActive},appointment:{backgroundColor:p.tokens.colorPaletteGreenBackground2,hoverColor:p.tokens.colorPaletteGreenBorderActive},task:{backgroundColor:p.tokens.colorPaletteRedBackground2,hoverColor:p.tokens.colorPaletteRedBorderActive},deadline:{backgroundColor:p.tokens.colorPaletteYellowBackground2,hoverColor:p.tokens.colorPaletteYellowBorderActive},holiday:{backgroundColor:p.tokens.colorPalettePurpleBackground2,hoverColor:p.tokens.colorPalettePurpleBorderActive},celebration:{backgroundColor:p.tokens.colorPaletteDarkOrangeBackground2,hoverColor:p.tokens.colorPaletteDarkOrangeBorderActive},reminder:{backgroundColor:p.tokens.colorPaletteTealBackground2,hoverColor:p.tokens.colorPaletteTealBorderActive},workshop:{backgroundColor:p.tokens.colorPaletteTealBackground2,hoverColor:p.tokens.colorPaletteTealBorderActive},webinar:{backgroundColor:p.tokens.colorPaletteMagentaBackground2,hoverColor:p.tokens.colorPaletteMagentaBorderActive},conference:{backgroundColor:p.tokens.colorPaletteBrownBackground2,hoverColor:p.tokens.colorPaletteBrownBorderActive}}[e.toLowerCase()]||t},[]),generateColor:u.useCallback(e=>{let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);let n=(t&16777215).toString(16).toUpperCase();return`#${`00000`.substring(0,6-n.length)+n}`},[]),getCalendarColors:u.useCallback(e=>{let t={beige:{backgroundColor:p.tokens.colorPaletteBeigeBackground2,hoverColor:p.tokens.colorPaletteBeigeBorderActive},blue:{backgroundColor:p.tokens.colorPaletteBlueBackground2,hoverColor:p.tokens.colorPaletteBlueBorderActive},brown:{backgroundColor:p.tokens.colorPaletteBrownBackground2,hoverColor:p.tokens.colorPaletteBrownBorderActive},gold:{backgroundColor:p.tokens.colorPaletteGoldBackground2,hoverColor:p.tokens.colorPaletteGoldBorderActive},lavender:{backgroundColor:p.tokens.colorPaletteLavenderBackground2,hoverColor:p.tokens.colorPaletteLavenderBorderActive},magenta:{backgroundColor:p.tokens.colorPaletteMagentaBackground2,hoverColor:p.tokens.colorPaletteMagentaBorderActive},navy:{backgroundColor:p.tokens.colorPaletteNavyBackground2,hoverColor:p.tokens.colorPaletteNavyBorderActive},pink:{backgroundColor:p.tokens.colorPalettePinkBackground2,hoverColor:p.tokens.colorPalettePinkBorderActive},plum:{backgroundColor:p.tokens.colorPalettePlumBackground2,hoverColor:p.tokens.colorPalettePlumBorderActive},purple:{backgroundColor:p.tokens.colorPalettePurpleBackground2,hoverColor:p.tokens.colorPalettePurpleBorderActive},red:{backgroundColor:p.tokens.colorPaletteRedBackground2,hoverColor:p.tokens.colorPaletteRedBorderActive},teal:{backgroundColor:p.tokens.colorPaletteTealBackground2,hoverColor:p.tokens.colorPaletteTealBorderActive},anchor:{backgroundColor:p.tokens.colorPaletteAnchorBackground2,hoverColor:p.tokens.colorPaletteAnchorBorderActive},"dark-red":{backgroundColor:p.tokens.colorPaletteDarkRedBackground2,hoverColor:p.tokens.colorPaletteDarkRedBorderActive},cranberry:{backgroundColor:p.tokens.colorPaletteCranberryBackground2,hoverColor:p.tokens.colorPaletteCranberryBorderActive},pumpkin:{backgroundColor:p.tokens.colorPalettePumpkinBackground2,hoverColor:p.tokens.colorPalettePumpkinBorderActive},peach:{backgroundColor:p.tokens.colorPalettePeachBackground2,hoverColor:p.tokens.colorPalettePeachBorderActive},marigold:{backgroundColor:p.tokens.colorPaletteMarigoldBackground2,hoverColor:p.tokens.colorPaletteMarigoldBorderActive},brass:{backgroundColor:p.tokens.colorPaletteBrassBackground2,hoverColor:p.tokens.colorPaletteBrassBorderActive},forest:{backgroundColor:p.tokens.colorPaletteForestBackground2,hoverColor:p.tokens.colorPaletteForestBorderActive},seafoam:{backgroundColor:p.tokens.colorPaletteSeafoamBackground2,hoverColor:p.tokens.colorPaletteSeafoamBorderActive},"dark-green":{backgroundColor:p.tokens.colorPaletteDarkGreenBackground2,hoverColor:p.tokens.colorPaletteDarkGreenBorderActive},"light-teal":{backgroundColor:p.tokens.colorPaletteLightTealBackground2,hoverColor:p.tokens.colorPaletteLightTealBorderActive},steel:{backgroundColor:p.tokens.colorPaletteSteelBackground2,hoverColor:p.tokens.colorPaletteSteelBorderActive},"royal-blue":{backgroundColor:p.tokens.colorPaletteRoyalBlueBackground2,hoverColor:p.tokens.colorPaletteRoyalBlueBorderActive},cornflower:{backgroundColor:p.tokens.colorPaletteCornflowerBackground2,hoverColor:p.tokens.colorPaletteCornflowerBorderActive},grape:{backgroundColor:p.tokens.colorPaletteGrapeBackground2,hoverColor:p.tokens.colorPaletteGrapeBorderActive},lilac:{backgroundColor:p.tokens.colorPaletteLilacBackground2,hoverColor:p.tokens.colorPaletteLilacBorderActive},mink:{backgroundColor:p.tokens.colorPaletteMinkBackground2,hoverColor:p.tokens.colorPaletteMinkBorderActive},platinum:{backgroundColor:p.tokens.colorPalettePlatinumBackground2,hoverColor:p.tokens.colorPalettePlatinumBorderActive}},n=t[`royal-blue`];return t[e]||n},[]),formatDate:u.useCallback((e,t)=>(0,m.format)((0,m.parseISO)(e),t),[])}),qn={start:`Start`,end:`End`,location:`Location`,attendees:`Attendees`,details:`Details`},Jn=`32px`,Yn=e=>({styles:{banner:(0,_.css)({display:`flex`,justifyContent:`center`,alignContent:`center`,alignItems:`center`,padding:`5px 10px 0px 10px`}),fieldContainer:(0,_.css)({paddingLeft:Jn}),title:(0,_.css)({lineClamp:2,overflow:`hidden`,display:`-webkit-box`,WebkitBoxOrient:`vertical`,wordBreak:`break-word`,WebkitLineClamp:2})}}),Xn=({fieldLabel:e,fieldValue:t,icon:n})=>(0,d.jsxs)(H,{children:[(0,d.jsx)(Nn,{label:e,icon:n}),(0,d.jsx)(H,{paddingLeft:Jn,children:(0,d.jsx)(p.Body1,{children:t})})]}),Zn=e=>{let{event:t,strings:n=qn}=e,{title:r,start:i,end:a,location:o,category:s,attendees:c,weblink:l}=t,{styles:f}=Yn(t),{formatDate:m}=Kn(),h=m(i,`PPp`),g=m(a,`PPp`),_=(0,p.partitionAvatarGroupItems)({items:c?.map(e=>e.id)||[]}),v=u.useCallback(e=>c?.find(t=>t.id===e)||void 0,[c]),y=u.useCallback(()=>(0,d.jsxs)(H,{children:[(0,d.jsx)(Nn,{label:n.attendees,icon:`ph:users-three`}),(0,d.jsx)(H,{paddingLeft:Jn,children:(0,d.jsxs)(p.AvatarGroup,{layout:`stack`,children:[_.inlineItems.map(e=>(0,d.jsx)(p.AvatarGroupItem,{name:v(e)?.name,image:{src:v(e)?.imageUrl}},e)),_.overflowItems&&(0,d.jsx)(p.AvatarGroupPopover,{children:_.overflowItems.map(e=>(0,d.jsx)(p.AvatarGroupItem,{name:v(e)?.name,image:{src:v(e)?.imageUrl}},e))})]})})]}),[_,v,n.attendees]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(sn,{appearance:`subtle`,padding:`m`,paddingTop:`s`,width:`250px`,cardBody:(0,d.jsxs)(H,{RowGap:10,children:[(0,d.jsx)(`div`,{className:f.banner,children:(0,d.jsx)(p.Subtitle1,{className:f.title,children:r})}),(0,d.jsx)(p.Divider,{}),s&&(0,d.jsx)(H,{horizontal:!0,horizontalAlign:`end`,width:`100%`,children:(0,d.jsx)(p.Badge,{appearance:`filled`,children:s})}),(0,d.jsx)(Xn,{fieldLabel:n.start,fieldValue:h,icon:`mingcute:time-line`}),(0,d.jsx)(Xn,{fieldLabel:n.end,fieldValue:g,icon:`mingcute:time-line`}),(0,d.jsx)(Xn,{fieldLabel:n.location,fieldValue:o,icon:`mingcute:location-line`}),(0,d.jsx)(y,{})]}),cardFooterContent:(0,d.jsx)(H,{horizontal:!0,horizontalAlign:`end`,width:`100%`,children:(0,d.jsx)(p.Button,{appearance:`subtle`,onClick:()=>{window.open(l,`_blank`)},children:n.details})})})})},Qn=()=>({styles:{calendarWrapper:(0,_.css)({padding:`20px`,paddingTop:`10px`,overflow:`auto`,flex:1,display:`grid`,gridTemplateColumns:`repeat(7, 1fr)`,gridTemplateRows:`auto`,gridAutoRows:`minmax(100px, 1fr)`,gap:`1px`,width:`calc(100% - 40px)`}),header:(0,_.css)({display:`flex`,justifyContent:`start`,gap:`10px`,alignItems:`center`,padding:`16px`}),dayHeader:(0,_.css)({textAlign:`start`,padding:`8px`,borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`}),day:(0,_.css)({display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,border:`1px solid ${p.tokens.colorNeutralStroke1}`,backgroundColor:p.tokens.colorNeutralBackground1,position:`relative`}),otherMonthDay:(0,_.css)({color:p.tokens.colorNeutralStroke2,backgroundColor:p.tokens.colorNeutralBackground2}),cardDay:(0,_.css)({height:`100%`,minHeight:100,borderRadius:0,overflow:`hidden !important`,rowGap:5}),cardDayOnHover:(0,_.css)({":hover":{backgroundColor:p.tokens.colorNeutralBackground2}}),currentDay:(0,_.css)({borderTop:`5px solid ${p.tokens.colorBrandBackground}`}),currentDayLabel:(0,_.css)({color:p.tokens.colorBrandBackground,fontWeight:600}),eventCard:(0,_.css)({display:`flex`,flexDirection:`column`,alignItems:`flex-start`,zIndex:1}),eventContainer:(0,_.css)({display:`flex`,flexDirection:`column`,overflowY:`auto`,paddingTop:`5px`,paddingBottom:`5px`,paddingLeft:`5px`,paddingRight:`5px`,"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),eventCardWeekView:(0,_.css)({backgroundColor:p.tokens.colorBrandBackground,color:p.tokens.colorNeutralForegroundOnBrand,borderRadius:`4px`,padding:`4px`,margin:`2px`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,height:`100%`}),popoverContent:(0,_.css)({padding:0,borderTopWidth:20,borderTopStyle:`solid`}),cardMonthTitle:(0,_.css)({display:`-webkit-box`,"-webkit-line-clamp":`1`,"-webkit-box-orient":`vertical`,textAlign:`start`,textOverflow:`ellipsis`,paddingLeft:`8px`,wordBreak:`break-word`,overflow:`hidden`})},applyEventHouverColorClass:(e,t)=>(0,_.css)({backgroundColor:e??p.tokens.colorBrandBackground,":hover":{backgroundColor:t??p.tokens.colorBrandBackgroundHover}})}),$n=e=>{let t=(0,p.useId)(),{events:n,date:r,onCardHoverChange:i,columnHeight:a}=e,{styles:o,applyEventHouverColorClass:s}=Qn(),c=u.useRef(null),{getEventColors:l,getCalendarColors:f}=Kn(),h=u.useCallback(e=>{i&&i(!0,e)},[i]),g=u.useCallback(e=>{i&&i(!1,e)},[i]),_=u.useCallback(e=>{c.current?.setTarget(e)},[c]),v=u.useCallback((e,t,n)=>(0,d.jsx)(`div`,{ref:_,children:(0,d.jsx)(sn,{className:(0,p.mergeClasses)(o.eventCard,s(n.backgroundColor,n.backgroundColor)),paddingTop:`4px`,paddingBottom:`4px`,paddingLeft:`8px`,paddingRight:`8px`,marginTop:e===0?`0px`:`5px`,cardHeader:(0,d.jsx)(p.Caption1,{className:o.cardMonthTitle,children:t.title}),onMouseEnter:()=>h(t.title),onMouseLeave:()=>g(t.title)})},t.id??`card-${e}`),[h,g,s]),y=u.useCallback((e,n,r)=>(0,d.jsxs)(p.Popover,{withArrow:!0,mouseLeaveDelay:30,closeOnScroll:!0,closeOnIframeFocus:!0,openOnHover:!0,children:[(0,d.jsx)(p.PopoverTrigger,{children:v(n,e,r)}),(0,d.jsx)(p.PopoverSurface,{"aria-labelledby":t,className:(0,p.mergeClasses)(o.popoverContent),children:(0,d.jsx)(Zn,{event:e})})]},n),[v,t,o.popoverContent]);return!n||!n?.length?(0,d.jsx)(d.Fragment,{children:` `}):(0,d.jsx)(`div`,{style:{height:a},className:o.eventContainer,children:n.map((e,t)=>{if(!(0,m.isWithinInterval)(r,{start:(0,m.startOfDay)(new Date(e.start)),end:(0,m.endOfDay)(new Date(e.end))}))return null;let n;n=e.color?f(e.color):l(e.category);let i=e.onRenderInMonthView?.(e),a=e.id??`event-${t}`;return u.isValidElement(i)?u.cloneElement(i,{key:a,className:(0,p.mergeClasses)(i.props.className,o.eventCard)}):e.enableOnHouver?y(e,t,n):v(t,e,n)})})},er=e=>{let{day:t,currentMonth:n,events:r,date:i,columnHeight:a,onDayClick:o}=e,{styles:s}=Qn(),c=new Date,[l,f]=u.useState(!1),h=u.useMemo(()=>(0,m.isSameDay)(i,c),[i,c]),g=u.useMemo(()=>(0,d.jsx)(H,{horizontal:!0,horizontalAlign:`start`,verticalAlign:`center`,paddingLeft:`m`,paddingRight:`m`,children:(0,d.jsxs)(p.Body2,{className:s.currentDayLabel,children:[t,` `,c.toLocaleString(`default`,{month:`short`})]})}),[t]),_=u.useCallback(e=>{f(e)},[]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(sn,{onClick:o?()=>o(i):void 0,className:(0,p.mergeClasses)(s.cardDay,n?``:s.otherMonthDay,h?s.currentDay:``,l?``:s.cardDayOnHover),cardHeader:h?g:(0,d.jsx)(H,{horizontal:!0,paddingLeft:`m`,paddingRight:`m`,children:(0,d.jsx)(p.Body2,{children:t})}),paddingTop:`m`,paddingBottom:`m`,paddingLeft:`0px`,paddingRight:`0px`,cardBody:(0,d.jsx)($n,{events:r,date:i,onCardHoverChange:_,columnHeight:a-60})})})},tr=()=>({styles:{container:(0,_.css)({display:`flex`,flexDirection:`column`,width:`calc(100% - 40px)`,height:`100vh`,overflow:`hidden`,padding:`20px`}),header:(0,_.css)({display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:`16px`,borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`}),weekGrid:(0,_.css)({display:`grid`,gridTemplateColumns:`80px repeat(7, 1fr)`,gridTemplateRows:`50px 40px repeat(48, 33px)`,height:`fit-content`,overflowY:`auto`,border:`1px solid ${p.tokens.colorNeutralStroke1}`,maxHeight:`calc(100vh - 100px)`,scrollbarWidth:`thin`,scrollbarColor:`${p.tokens.colorBrandBackground} ${p.tokens.colorNeutralBackground1}`,"&::-webkit-scrollbar":{width:`8px`},"&::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground1},"&::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandBackground,borderRadius:`4px`},"&::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorBrandBackgroundHover}}),blankHeader:(0,_.css)({gridColumn:`1`,backgroundColor:p.tokens.colorNeutralBackground3,borderBottom:`3px solid ${p.tokens.colorNeutralStroke3}`,position:`sticky`,top:0,zIndex:10}),timeColumn:(0,_.css)({gridColumn:`1`,gridRow:`3 / span 49`,display:`flex`,flexDirection:`column`,backgroundColor:p.tokens.colorNeutralBackground1,borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`}),timeCell:(0,_.css)({height:`100%`,display:`flex`,alignItems:`center`,fontSize:`12px`,color:p.tokens.colorNeutralForeground3,borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`,justifyContent:`center`}),fullDayRow:(0,_.css)({gridRow:`2`,display:`grid`,gridTemplateColumns:`80px repeat(7, 1fr)`,gap:`0`,padding:`0`,backgroundColor:p.tokens.colorNeutralBackground2,borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`}),fullDayLabel:(0,_.css)({gridColumn:`1`,display:`flex`,alignItems:`center`,justifyContent:`center`,alignContent:`center`,color:p.tokens.colorBrandBackground,padding:`5px`,borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`}),fullDayCell:(0,_.css)({borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,display:`flex`,flexDirection:`row`,gap:`0px`,padding:`4px`,borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`,overflow:`hidden`}),fullDayEvent:(0,_.css)({flex:`1 1 auto`,minWidth:`24px`,height:`24px`,padding:`4px 8px`,backgroundColor:p.tokens.colorBrandBackground,borderRadius:`4px`,overflow:`hidden`,display:`flex`,alignItems:`center`,justifyContent:`center`}),dayHeaderCell:(0,_.css)({textAlign:`center`,backgroundColor:p.tokens.colorNeutralBackground2,padding:`8px`,fontWeight:`bold`,borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`,position:`sticky`,top:0,zIndex:10}),todayHeaderCell:(0,_.css)({borderTop:`5px solid ${p.tokens.colorBrandBackground}`}),eventCard:(0,_.css)({padding:2,alignItems:`center`,justifyContent:`center`,marginRight:`2px`,zIndex:1,position:`absolute`,alignContent:`center`,overflow:`hidden`,":hover":{pointerEvents:`auto`,cursor:`pointer`}}),event:(0,_.css)({height:`100%`,backgroundColor:p.tokens.colorBrandBackground,borderRadius:`4px`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`,display:`flex`,alignItems:`center`,justifyContent:`center`,marginRight:`2px`,zIndex:1,position:`absolute`,alignContent:`center`,":hover":{pointerEvents:`auto`,cursor:`pointer`}}),dayCell:(0,_.css)({borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`,borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,position:`relative`,overflow:`visible`,FlexDirection:`column`,gap:`4px`}),currentTimeIndicator:(0,_.css)({position:`absolute`,left:0,height:`2px`,backgroundColor:p.tokens.colorPaletteRedBorderActive,width:`100%`,zIndex:1}),currentHalfHourCell:(0,_.css)({border:`2px solid ${p.tokens.colorPaletteRedBorderActive}`}),eventTitle:(0,_.css)({display:`-webkit-box`,"-webkit-line-clamp":`1`,"-webkit-box-orient":`vertical`,textAlign:`start`,textOverflow:`ellipsis`,paddingLeft:`8px`,wordBreak:`break-word`,overflow:`hidden`}),popoverContent:(0,_.css)({padding:0,borderTopWidth:20,borderTopStyle:`solid`})},applyEventHouverColorClass:u.default.useCallback((e,t)=>(0,_.css)({backgroundColor:e??p.tokens.colorBrandBackground,":hover":{backgroundColor:t??p.tokens.colorBrandBackgroundHover}}),[p.tokens.colorBrandBackground,p.tokens.colorBrandBackgroundHover]),appyDynamicStyles:u.default.useCallback((e,t,n,r)=>(0,_.css)({flex:`0 0 calc(100% / ${t})`,height:`${n*r}px`,left:`${e*10}%`,width:`calc(${100-e*10}% - 8px)`,margin:4,marginTop:0,marginBottom:0}),[])}),nr={timeSeparator:` - `,hourSuffix:`H`},rr=({event:e,colors:t,spanSlots:n,rowHeight:r,eventIndex:i,eventCount:a,strings:o=nr})=>{let s=(0,p.useId)(),{styles:c,applyEventHouverColorClass:l,appyDynamicStyles:f}=tr(),m=u.useRef(null),{formatDate:h}=Kn(),g=u.useMemo(()=>(0,d.jsx)(`div`,{children:(0,d.jsxs)(H,{columnGap:4,verticalAlign:`center`,children:[(0,d.jsx)(p.Caption1Strong,{className:c.eventTitle,children:e.title}),(0,d.jsxs)(H,{columnGap:4,horizontal:!0,verticalAlign:`center`,horizontalAlign:`start`,children:[(0,d.jsxs)(p.Caption1,{children:[h(e.start,`HH:mm`),o.hourSuffix]}),o.timeSeparator,(0,d.jsxs)(p.Caption1,{children:[h(e.end,`HH:mm`),o.hourSuffix]})]})]})}),[e,h,o,c.eventTitle]);return(0,d.jsx)(p.Card,{ref:m,className:(0,p.mergeClasses)(c.eventCard,l(t.backgroundColor,t.backgroundColor),f(i,a,r,n)),children:e.enableOnHouver?(0,d.jsxs)(p.Popover,{withArrow:!0,mouseLeaveDelay:50,closeOnScroll:!0,closeOnIframeFocus:!0,openOnHover:!0,children:[(0,d.jsx)(p.PopoverTrigger,{children:g}),(0,d.jsx)(p.PopoverSurface,{"aria-labelledby":s,className:(0,p.mergeClasses)(c.popoverContent),children:(0,d.jsx)(Zn,{event:e})})]}):g},e.id)},ir=({event:e,eventCount:t,spanSlots:n,rowHeight:r,eventIndex:i,view:a})=>{let{styles:o,appyDynamicStyles:s}=tr(),{getEventColors:c,getCalendarColors:l}=Kn(),f=e.color?l(e.color):c(e.category),m=a===`day`?e.onRenderInDayView?.(e):e.onRenderInWeekView?.(e);return u.isValidElement(m)?u.cloneElement(m,{event:e,className:(0,p.mergeClasses)(m.props.className,o.eventCard,s(i,t,r,n)),style:{...m.props.style}}):(0,d.jsx)(rr,{event:e,colors:f,spanSlots:n,rowHeight:r,eventIndex:i,eventCount:t},e.id)},ar=[],or=0;or<256;++or)ar.push((or+256).toString(16).slice(1));function sr(e,t=0){return(ar[e[t+0]]+ar[e[t+1]]+ar[e[t+2]]+ar[e[t+3]]+`-`+ar[e[t+4]]+ar[e[t+5]]+`-`+ar[e[t+6]]+ar[e[t+7]]+`-`+ar[e[t+8]]+ar[e[t+9]]+`-`+ar[e[t+10]]+ar[e[t+11]]+ar[e[t+12]]+ar[e[t+13]]+ar[e[t+14]]+ar[e[t+15]]).toLowerCase()}var cr,lr=new Uint8Array(16);function ur(){if(!cr&&(cr=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!cr))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return cr(lr)}var dr={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function fr(e,t,n){if(dr.randomUUID&&!t&&!e)return dr.randomUUID();e||={};var r=e.random||(e.rng||ur)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n||=0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return sr(r)}var pr=e=>{let t=(0,u.useCallback)(e=>e.map(e=>({...e,id:e.id||fr()})),[]),n=(0,u.useCallback)(t=>new Date(new Date(t).toLocaleString(void 0,{timeZone:e})),[e]);return{getMonthCalendar:(0,u.useCallback)((e,r,i)=>{let a=t(e),o=new Date(r,i+1,0).getDate(),s={};for(let e=1;e<=o;e++){let t=(0,m.format)(new Date(r,i,e),`yyyy-MM-dd`);s[t]=[]}return a.forEach(e=>{let t=n(e.start),r=n(e.end),i=new Date(t);for(;i<=r;){let t=(0,m.format)(i,`yyyy-MM-dd`);s[t]&&s[t].push(e),i.setDate(i.getDate()+1)}}),s},[n]),getWeekEvents:(0,u.useCallback)((e,r)=>{let i=[],a=n(r),o=t(e);for(let e=0;e<7;e++){let t=new Date(a);t.setDate(a.getDate()+e);let r=(0,m.format)(t,`yyyy-MM-dd`),s=Array.from({length:48},(e,t)=>({time:`${String(Math.floor(t/2)).padStart(2,`0`)}:${t%2==0?`00`:`30`}`,events:[]})),c=[];o.forEach(e=>{let t=n(e.start),i=n(e.end);if(e.isFullDay){(0,m.format)(t,`yyyy-MM-dd`)<=r&&(0,m.format)(i,`yyyy-MM-dd`)>=r&&c.push(e);return}if((0,m.format)(t,`yyyy-MM-dd`)<=r&&(0,m.format)(i,`yyyy-MM-dd`)>=r){let n=new Date(t);for(;n<=i;){if((0,m.format)(n,`yyyy-MM-dd`)===r){let t=n.getHours()*2+(n.getMinutes()>=30?1:0);s[t]&&s[t].events.push(e)}n.setMinutes(n.getMinutes()+30)}}}),i.push({date:r,fullDayEvents:c,timeSlots:s})}return i},[n])}},mr=()=>({styles:{container:(0,_.css)({display:`flex`,flexDirection:`column`,width:`calc(100% - 40px)`,height:`100vh`,overflow:`hidden`,padding:`20px`}),header:(0,_.css)({display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:`16px`,borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`}),dayGrid:(0,_.css)({display:`grid`,gridTemplateColumns:`80px 1fr`,gridTemplateRows:`50px 40px repeat(48, 33px)`,height:`calc(100vh - 100px)`,overflowY:`auto`,border:`1px solid ${p.tokens.colorNeutralStroke1}`,maxHeight:`fit-content`,scrollbarWidth:`thin`,scrollbarColor:`${p.tokens.colorBrandBackground} ${p.tokens.colorNeutralBackground1}`,"&::-webkit-scrollbar":{width:`8px`},"&::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground1},"&::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandBackground,borderRadius:`4px`},"&::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorBrandBackgroundHover}}),blankHeader:(0,_.css)({gridColumn:`1`,backgroundColor:p.tokens.colorNeutralBackground3,borderBottom:`3px solid ${p.tokens.colorNeutralStroke3}`}),timeColumn:(0,_.css)({gridColumn:`1`,gridRow:`3 / span 49`,display:`flex`,flexDirection:`column`,backgroundColor:p.tokens.colorNeutralBackground1,borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`}),timeCell:(0,_.css)({height:`100%`,maxHeight:`32px`,minHeight:`32px`,display:`flex`,alignItems:`center`,fontSize:`12px`,color:p.tokens.colorNeutralForeground3,borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`,justifyContent:`center`}),fullDayRow:(0,_.css)({gridRow:`2`,display:`grid`,gridTemplateColumns:`80px 33px`,gap:`0`,padding:`0`,backgroundColor:p.tokens.colorNeutralBackground2,borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`}),fullDayLabel:(0,_.css)({gridColumn:`1`,display:`flex`,alignItems:`center`,justifyContent:`center`,alignContent:`center`,color:p.tokens.colorBrandBackground,padding:`5px`,borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`}),fullDayCell:(0,_.css)({borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,display:`flex`,flexDirection:`row`,gap:`2px`,padding:`4px`,borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`,overflow:`hidden`}),fullDayEvent:(0,_.css)({flex:`1 1 auto`,minWidth:`24px`,height:`24px`,padding:`4px 8px`,backgroundColor:p.tokens.colorBrandBackground,color:p.tokens.colorNeutralForegroundOnBrand,borderRadius:`4px`,overflow:`hidden`,display:`flex`,alignItems:`center`,justifyContent:`center`}),dayHeaderCell:(0,_.css)({textAlign:`center`,backgroundColor:p.tokens.colorNeutralBackground2,padding:`8px`,fontWeight:`bold`,borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`}),todayHeaderCell:(0,_.css)({borderTop:`5px solid ${p.tokens.colorBrandBackground}`}),eventCard:(0,_.css)({alignItems:`center`,justifyContent:`center`,marginRight:`2px`,zIndex:1,position:`absolute`,alignContent:`center`,overflow:`hidden`}),dayCell:(0,_.css)({borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`,borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,position:`relative`,overflow:`visible`,FlexDirection:`column`,gap:`4px`}),currentTimeIndicator:(0,_.css)({position:`absolute`,left:0,height:`2px`,backgroundColor:p.tokens.colorPaletteRedBorderActive,width:`100%`,zIndex:1}),currentHalfHourCell:(0,_.css)({border:`2px solid ${p.tokens.colorPaletteRedBorderActive}`}),eventTitle:(0,_.css)({display:`-webkit-box`,"-webkit-line-clamp":`1`,"-webkit-box-orient":`vertical`,textAlign:`start`,textOverflow:`ellipsis`,paddingLeft:`8px`,wordBreak:`break-word`,overflow:`hidden`})},applyEventHouverColorClass:(e,t)=>(0,_.css)({backgroundColor:e??p.tokens.colorBrandBackground,":hover":{backgroundColor:t??p.tokens.colorBrandBackgroundHover}})}),hr={allDay:`All Day`},gr=33,_r=e=>{let{events:t,currentDay:n,height:r,strings:i=hr}=e,{styles:a}=mr(),o=(0,u.useRef)(null),{getSpanSlots:s,getEventColors:c,getCalendarColors:l}=Kn(),f=Intl.DateTimeFormat().resolvedOptions().timeZone,{getWeekEvents:h}=pr(f),g=u.useCallback(()=>Array.from({length:24},(e,t)=>(0,d.jsxs)(u.Fragment,{children:[(0,d.jsx)(`div`,{className:a.timeCell,children:(0,d.jsxs)(p.Body1Strong,{children:[t,`:00`]})}),(0,d.jsx)(`div`,{className:a.timeCell})]},t)),[a.timeCell]),_=u.useCallback(()=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`div`,{className:a.blankHeader}),Array.from({length:1},(e,t)=>{let r=(0,m.addDays)(n,t),i=(0,m.isToday)(r)?a.todayHeaderCell:``;return(0,d.jsxs)(`div`,{className:(0,p.mergeClasses)(a.dayHeaderCell,i),children:[(0,d.jsx)(p.Text,{weight:`semibold`,size:600,style:{paddingRight:10},children:(0,m.format)(r,`dd`)}),(0,d.jsx)(p.Subtitle1,{children:(0,m.format)(r,`LLLL, yyyy`)})]},t)})]}),[n,a.blankHeader,a.dayHeaderCell,a.todayHeaderCell]),v=u.useCallback(()=>{let e=h(t,n.toISOString());return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`div`,{className:a.fullDayLabel,children:(0,d.jsx)(p.Body1,{children:i.allDay})}),Array.from({length:1},(t,r)=>{let i=(0,m.format)((0,m.addDays)(n,r),`yyyy-MM-dd`),o=e.find(e=>e.date===i)?.fullDayEvents||[];return(0,d.jsx)(`div`,{className:a.fullDayCell,children:o.map(e=>(0,d.jsx)(`div`,{className:a.fullDayEvent,style:{gridColumn:`${r+2}`,backgroundColor:e.color?l(e.color).backgroundColor:c(e.category).backgroundColor},children:(0,d.jsx)(p.Caption1Strong,{className:a.eventTitle,children:e.title})},e.id))},r)})]})},[n,h,a.fullDayCell,a.fullDayEvent,a.fullDayLabel,a.eventTitle,l,c,t,i.allDay]),y=u.useCallback(()=>{let e=h(t,n.toISOString());return Array.from({length:1},(t,r)=>{let i=(0,m.format)((0,m.addDays)(n,r),`yyyy-MM-dd`),o=e.find(e=>e.date===i);return(0,d.jsx)(u.Fragment,{children:o?.timeSlots.map((e,t)=>{let n=e.events.length;return(0,d.jsx)(`div`,{className:a.dayCell,style:{gridRow:t+3},children:e.events.map((e,r)=>{let{spanSlots:i,startSlot:a}=s(new Date(e.start),new Date(e.end));return t===a?(0,d.jsx)(ir,{event:e,eventCount:n,spanSlots:i,rowHeight:gr,eventIndex:r,view:`day`},e.id):null})},t)})},r)})},[n,s,h,a.dayCell,t]);return(0,d.jsx)(`div`,{className:a.container,style:{height:r},children:(0,d.jsxs)(`div`,{ref:o,className:a.dayGrid,children:[(0,d.jsx)(`div`,{className:a.timeColumn,children:g()}),_(),v(),y()]})})},K=function(e){return e.Day=`day`,e.Week=`week`,e.Month=`month`,e}({}),vr={month:`Month`,week:`Week`,day:`Day`},yr=e=>{let{onSelected:t,value:n,strings:r=vr}=e,[i,a]=u.useState(n??K.Month),[o,s]=u.useState({view:[n??K.Month]}),c=u.useMemo(()=>(0,y.bundleIcon)(y.CalendarDayFilled,y.CalendarDayRegular),[]),l=u.useMemo(()=>(0,y.bundleIcon)(y.CalendarMonthFilled,y.CalendarMonthRegular),[]),f=u.useMemo(()=>(0,y.bundleIcon)(y.CalendarWorkWeekFilled,y.CalendarWorkWeekRegular),[]);u.useEffect(()=>{n!==void 0&&(a(n),s({view:[n]}))},[n]);let[m,h]=u.useState(!1),g=u.useCallback((e,t)=>{h(t.open)},[]),_=u.useCallback(()=>{switch(i){case K.Month:return(0,d.jsx)(l,{});case K.Week:return(0,d.jsx)(f,{});case K.Day:return(0,d.jsx)(c,{});default:return(0,d.jsx)(l,{})}},[i]),v=u.useCallback(e=>{switch(e){case K.Month:return r.month;case K.Week:return r.week;case K.Day:return r.day;default:return r.month}},[r]),b=u.useCallback((e,{name:n,checkedItems:r})=>{if(n===`view`){let e=r[0];a(e),s({view:r}),t(e)}},[t]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(p.Menu,{open:m,onOpenChange:g,children:[(0,d.jsx)(p.MenuTrigger,{disableButtonEnhancement:!0,children:(0,d.jsx)(p.MenuButton,{shape:`circular`,icon:_(),style:{minWidth:`150px`},children:v(i)})}),(0,d.jsx)(p.MenuPopover,{children:(0,d.jsxs)(p.MenuList,{onCheckedValueChange:b,checkedValues:o,children:[(0,d.jsx)(p.MenuItemRadio,{icon:(0,d.jsx)(c,{}),name:`view`,value:K.Day,children:r.day}),(0,d.jsx)(p.MenuItemRadio,{icon:(0,d.jsx)(f,{}),name:`view`,value:K.Week,children:r.week}),(0,d.jsx)(p.MenuItemRadio,{icon:(0,d.jsx)(l,{}),name:`view`,value:K.Month,children:r.month})]})})]})})},br=u.memo(e=>{let{onSelected:t,value:n}=e,[r,i]=u.useState(n??new Date),[a,o]=u.useState(()=>(0,f.format)(n??new Date,`dd MMM, yyyy`)),[s,c]=u.useState(!1),l=u.useCallback((e,t)=>{c(t.open)},[]),m=u.useMemo(()=>(0,y.bundleIcon)(y.CalendarMonthFilled,y.CalendarMonthRegular),[]),h=u.useCallback(e=>{if(e){let n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=(0,f.utcToZonedTime)(e,n);i(r),o((0,f.format)(r,`dd MMM, yyyy`)),t(r),c(!1)}},[t]);return(0,d.jsxs)(p.Menu,{open:s,onOpenChange:l,children:[(0,d.jsx)(p.MenuTrigger,{disableButtonEnhancement:!0,children:(0,d.jsx)(p.MenuButton,{shape:`circular`,icon:(0,d.jsx)(m,{}),style:{minWidth:`200px`},children:a})}),(0,d.jsx)(p.MenuPopover,{style:{maxWidth:`fit-content`},children:(0,d.jsx)(p.MenuList,{children:(0,d.jsx)(S.Calendar,{highlightSelectedMonth:!0,showGoToToday:!0,onSelectDate:h,value:r})})})]})}),xr=()=>({root:(0,_.css)({outline:`none`})}),Sr={months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],goToToday:`Go to today`},Cr=e=>{let{onDateChange:t,defaultSelectedDate:n,onDismiss:r,strings:i=Sr}=e,a=xr(),[o,s]=u.useState(n??new Date),c=u.useCallback((e,n)=>{s(e),t(e),r()},[t,r]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(S.Calendar,{className:a.root,dateRangeType:S.DateRangeType.Month,highlightSelectedMonth:!0,isDayPickerVisible:!1,onSelectDate:c,value:o,onDismiss:r,showGoToToday:!1,allFocusable:!1,strings:i})})},wr=e=>{let{onSelected:t,value:n}=e,r=(0,y.bundleIcon)(y.CalendarMonthFilled,y.CalendarMonthRegular),[i,a]=u.useState(n??new Date);u.useEffect(()=>{t(n??new Date),a(n??new Date)},[n]);let[o,s]=u.useState(!1),c=(e,t)=>{s(t.open)},l=u.useCallback(e=>{t(e),a(e)},[]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(p.Menu,{open:o,onOpenChange:c,children:[(0,d.jsx)(p.MenuTrigger,{disableButtonEnhancement:!0,children:(0,d.jsx)(p.MenuButton,{shape:`circular`,icon:(0,d.jsx)(r,{}),style:{minWidth:`200px`},children:(0,m.format)(i,`MMMM yyyy`)})}),(0,d.jsx)(p.MenuPopover,{children:(0,d.jsx)(p.MenuList,{children:(0,d.jsx)(Cr,{onDateChange:l,defaultSelectedDate:i,onDismiss:()=>{s(!1)}})})})]})})},Tr={selectWeekPlaceholder:`Select a week`},Er=e=>{let t=Intl.DateTimeFormat().resolvedOptions().timeZone,n=(0,f.format)(e.start,`MMM`,{timeZone:t}),r=(0,f.format)(e.end,`MMM`,{timeZone:t});return(0,f.format)(e.start,`yyyy`,{timeZone:t})===(0,f.format)(e.end,`yyyy`,{timeZone:t})?n===r?`${(0,f.format)(e.start,`dd`,{timeZone:t})} - ${(0,f.format)(e.end,`dd MMM yyyy`,{timeZone:t})}`:`${(0,f.format)(e.start,`dd MMM`,{timeZone:t})} - ${(0,f.format)(e.end,`dd MMM yyyy`,{timeZone:t})}`:`${(0,f.format)(e.start,`dd MMM yyyy`,{timeZone:t})} - ${(0,f.format)(e.end,`dd MMM yyyy`,{timeZone:t})}`},Dr=e=>{let t=Intl.DateTimeFormat().resolvedOptions().timeZone,n=(0,f.utcToZonedTime)(e,t),r=new Date(n);r.setDate(n.getDate()-n.getDay());let i=new Date(r);return i.setDate(r.getDate()+6),{start:(0,f.utcToZonedTime)(r,t),end:(0,f.utcToZonedTime)(i,t)}},Or=u.memo(e=>{let{onSelected:t,value:n,strings:r=Tr}=e,i=S.DateRangeType.Week,[a,o]=u.useState(n??new Date),[s,c]=u.useState(()=>{let e=n??new Date;return e?Er(Dr(e)):r.selectWeekPlaceholder}),[l,f]=u.useState(!1),m=u.useCallback((e,t)=>{f(t.open)},[]),h=u.useMemo(()=>(0,y.bundleIcon)(y.CalendarMonthFilled,y.CalendarMonthRegular),[]),g=u.useCallback(e=>{if(e){o(e);let n=Dr(e);c(Er(n)),t({startDate:n.start,endDate:n.end}),f(!1)}},[t]),_=u.useMemo(()=>0,[]);return(0,d.jsxs)(p.Menu,{open:l,onOpenChange:m,children:[(0,d.jsx)(p.MenuTrigger,{disableButtonEnhancement:!0,children:(0,d.jsx)(p.MenuButton,{shape:`circular`,icon:(0,d.jsx)(h,{}),style:{minWidth:`200px`},children:s})}),(0,d.jsx)(p.MenuPopover,{style:{maxWidth:`fit-content`},children:(0,d.jsx)(p.MenuList,{children:(0,d.jsx)(S.Calendar,{dateRangeType:i,highlightSelectedMonth:!0,showGoToToday:!0,onSelectDate:g,value:a,firstDayOfWeek:_})})})]})}),kr={today:`Today`,previous:`Previous`,next:`Next`},Ar=u.memo(({selectedView:e,onSelectedView:t,currentDate:n,setCurrentDate:r,onWeekChange:i,onMonthChange:a,onDayChange:o,strings:s=kr})=>{let c=u.useMemo(()=>(0,y.bundleIcon)(y.ArrowDownFilled,y.ArrowDownRegular),[]),l=u.useMemo(()=>(0,y.bundleIcon)(y.ArrowUpFilled,y.ArrowUpRegular),[]),f=u.useCallback(e=>{i(e.startDate),r(e.startDate)},[i,r]),m=u.useCallback(e=>{a(e),r(e)},[a,r]),h=u.useCallback(e=>{o(e),r(e)},[o,r]),g=u.useCallback(()=>{switch(e){case K.Month:return(0,d.jsx)(wr,{onSelected:m,value:n});case K.Week:return(0,d.jsx)(Or,{onSelected:f,value:n});case K.Day:return(0,d.jsx)(br,{onSelected:h,value:n});default:return(0,d.jsx)(wr,{onSelected:m,value:n})}},[e,m,f,h,n]),_=u.useCallback(()=>(0,d.jsx)(p.Tooltip,{content:s.today,relationship:`label`,children:(0,d.jsx)(p.Button,{shape:`circular`,icon:(0,d.jsx)(y.CalendarTodayRegular,{}),size:`medium`,onClick:()=>o(new Date),children:s.today})}),[o,s.today]),v=u.useCallback(t=>{let s=new Date(n);switch(e){case K.Month:s.setMonth(s.getMonth()+t),a(s);break;case K.Week:s.setDate(s.getDate()+t*7),i(s);break;case K.Day:s.setDate(s.getDate()+t),o(s);break;default:break}r(s)},[n,e,a,i,o,r]);return(0,d.jsxs)(H,{width:`calc(100% - 40px)`,height:`fit-content`,horizontal:!0,horizontalAlign:`space-between`,verticalAlign:`center`,paddingLeft:`20px`,paddingRight:`20px`,paddingBottom:`10px`,paddingTop:`10px`,columnGap:10,styles:{overflow:`hidden`},children:[(0,d.jsxs)(H,{horizontal:!0,horizontalAlign:`start`,verticalAlign:`center`,columnGap:10,children:[(0,d.jsx)(_,{}),(0,d.jsx)(g,{}),(0,d.jsx)(p.Tooltip,{content:s.previous,relationship:`label`,children:(0,d.jsx)(p.Button,{size:`medium`,icon:(0,d.jsx)(l,{fontSize:14}),onClick:()=>v(-1)})}),(0,d.jsx)(p.Tooltip,{content:s.next,relationship:`label`,children:(0,d.jsx)(p.Button,{size:`medium`,icon:(0,d.jsx)(c,{fontSize:14}),onClick:()=>v(1)})})]}),(0,d.jsx)(H,{horizontal:!0,horizontalAlign:`start`,verticalAlign:`center`,columnGap:10,children:(0,d.jsx)(yr,{onSelected:t,value:e})})]})}),jr={allDay:`All Day`},Mr=e=>{let{events:t,currentDay:n,height:r,strings:i=jr}=e,{styles:a}=tr(),[o]=(0,u.useState)(n),[s,c]=(0,u.useState)(32),l=(0,u.useRef)(null),{getSpanSlots:f,getEventColors:h,getCalendarColors:_,formatDate:v}=Kn(),y=(0,m.startOfWeek)(o,{weekStartsOn:0}),b=Intl.DateTimeFormat().resolvedOptions().timeZone,{getWeekEvents:x}=pr(b);(0,u.useEffect)(()=>{let e=new g.ResizeObserver(()=>{if(l.current){let e=l.current.querySelector(`.dayCell`);e&&c(e.offsetHeight)}});return l.current&&e.observe(l.current),()=>{e.disconnect()}},[]);let S=u.useCallback(()=>Array.from({length:24},(e,t)=>(0,d.jsxs)(u.Fragment,{children:[(0,d.jsx)(`div`,{className:a.timeCell,children:(0,d.jsxs)(p.Body1Strong,{children:[t,`:00`]})}),(0,d.jsx)(`div`,{className:a.timeCell})]},t)),[a.timeCell]),C=u.useCallback(()=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`div`,{className:a.blankHeader}),Array.from({length:7},(e,t)=>{let n=(0,m.addDays)(y,t),r=(0,m.isToday)(n)?a.todayHeaderCell:``;return(0,d.jsxs)(`div`,{className:(0,p.mergeClasses)(a.dayHeaderCell,r),children:[(0,d.jsx)(p.Text,{weight:`regular`,size:600,style:{paddingRight:10},children:v(n.toISOString(),`dd`)}),(0,d.jsx)(p.Body1,{children:v(n.toISOString(),`EEE`)})]},t)})]}),[y,a,v]),w=u.useCallback(()=>{let e=x(t,y.toISOString());return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`div`,{className:a.fullDayLabel,children:(0,d.jsx)(p.Body1,{children:i.allDay})}),Array.from({length:7},(t,n)=>{let r=v((0,m.addDays)(y,n).toISOString(),`yyyy-MM-dd`),i=e.find(e=>e.date===r)?.fullDayEvents||[];return(0,d.jsx)(`div`,{className:a.fullDayCell,children:i.map(e=>(0,d.jsx)(`div`,{className:a.fullDayEvent,style:{gridColumn:`${n+2}`,backgroundColor:e.color?_(e.color).backgroundColor:h(e.category).backgroundColor},children:(0,d.jsx)(p.Caption1Strong,{className:a.eventTitle,children:e.title})},e.id))},n)})]})},[y,a,x,_,h,t,v,i.allDay]),T=u.useCallback(()=>{let e=x(t,y.toISOString());return Array.from({length:7},(t,n)=>{let r=(0,m.format)((0,m.addDays)(y,n),`yyyy-MM-dd`);return(0,d.jsx)(d.Fragment,{children:e.find(e=>e.date===r)?.timeSlots.map((e,t)=>{let n=e.events.length;return(0,d.jsx)(`div`,{className:a.dayCell,style:{gridRow:t+3},children:e.events.map((e,r)=>{let{spanSlots:i,startSlot:a}=f(new Date(e.start),new Date(e.end));return t===a?(0,d.jsx)(ir,{event:e,eventCount:n,spanSlots:i,rowHeight:s,eventIndex:r,view:`week`},e.id):null})},t)})})})},[y,a,x,f,s,t]);return(0,d.jsx)(`div`,{className:a.container,style:{height:r},children:(0,d.jsxs)(`div`,{ref:l,className:a.weekGrid,children:[(0,d.jsx)(`div`,{className:a.timeColumn,children:S()}),C(),w(),T()]})})},Nr={daysOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},Pr=({currentDate:e,rowHeight:t,getCalendarDays:n,getEventsForDay:r,styles:i,onDaySlotClick:a,height:o,calendarRef:s,strings:c})=>{let l=c?.daysOfWeek||Nr.daysOfWeek;return(0,d.jsx)(H,{height:o,width:`100%`,verticalAlign:`start`,horizontalAlign:`start`,children:(0,d.jsxs)(`div`,{className:i.calendarWrapper,ref:s,children:[l.map(e=>(0,d.jsx)(p.Body1,{className:i.dayHeader,children:e},e)),n(e).map((e,n)=>{let{day:i,currentMonth:o}=e,s=o?r(e):[];return(0,d.jsx)(er,{day:i,date:e.date,currentMonth:e.currentMonth,events:s,columnHeight:t||0,onDayClick:a},n)})]})})},Fr=u.memo(({events:e,currentDay:t,height:n,strings:r})=>(0,d.jsx)(Mr,{events:e,currentDay:t,height:n,strings:r})),Ir=u.memo(({events:e,currentDay:t,height:n,strings:r})=>(0,d.jsx)(_r,{currentDay:t,events:e,height:n,strings:r})),Lr=({events:e,height:t=800,theme:n,onDayChange:r,onMonthChange:i,onWeekChange:a,onViewChange:o,onDaySlotClick:s,defaultView:c,strings:l})=>{let{styles:f}=Qn(),h=(0,u.useRef)(null),[_,v]=(0,u.useState)(null),y=(0,u.useRef)(0),[b,x]=(0,u.useState)(new Date),[S,C]=(0,u.useState)(c??K.Month),{getMonthCalendar:w}=pr(Intl.DateTimeFormat().resolvedOptions().timeZone),T=u.useCallback(e=>{let t=e.getMonth(),n=(0,m.startOfWeek)((0,m.startOfMonth)(e));return Array.from({length:42},(e,r)=>{let i=(0,m.addDays)(n,r);return{day:i.getDate(),currentMonth:i.getMonth()===t,date:i}})},[42]),E=u.useCallback(e=>{i&&i(e),x(e)},[i]),D=u.useCallback(e=>{r&&r(e),x(e)},[r]),O=u.useCallback(e=>{a&&a(e),x(e)},[a]),k=u.useCallback(e=>{o&&o(e),C(e)},[o]),A=u.useCallback(t=>{let{date:n}=t;return w(e,b.getFullYear(),b.getMonth())[(0,m.format)(n,`yyyy-MM-dd`)]?.flatMap(e=>e)||[]},[b,e]),j=u.useCallback(()=>{h.current&&requestAnimationFrame(()=>{if(h.current){let e=h.current.querySelector(`.${f.calendarWrapper} > div:nth-child(8)`);e&&(v(e.offsetHeight),y.current=e.offsetHeight)}})},[f.calendarWrapper]);(0,u.useEffect)(()=>{let e=new g.ResizeObserver(j);return h.current&&e.observe(h.current),j(),window.addEventListener(`resize`,j),()=>{e.disconnect(),window.removeEventListener(`resize`,j)}},[j,S]),(0,u.useEffect)(()=>{C(c||K.Month)},[c]);let M=u.useCallback(()=>{switch(S){case K.Month:return(0,d.jsx)(Pr,{events:e,currentDate:b,rowHeight:_,getCalendarDays:T,getEventsForDay:A,styles:f,onDaySlotClick:s,height:t,calendarRef:h,strings:l?.calendarControl});case K.Week:return(0,d.jsx)(Fr,{events:e,currentDay:b,height:t,strings:l?.weekView});case K.Day:return(0,d.jsx)(Ir,{events:e,currentDay:b,height:t,strings:l?.dayView});default:return(0,d.jsx)(Pr,{events:e,currentDate:b,rowHeight:_,getCalendarDays:T,getEventsForDay:A,styles:f,onDaySlotClick:s,height:t,calendarRef:h,strings:l?.calendarControl})}},[S,e,b,_,T,A,f,s,t]),ee=(0,d.jsxs)(H,{height:`100%`,verticalAlign:`start`,children:[(0,d.jsx)(Ar,{selectedView:S,onSelectedView:k,currentDate:b,setCurrentDate:x,onWeekChange:O,onMonthChange:E,onDayChange:D,strings:l?.toolbar}),(0,d.jsx)(M,{})]});return(0,d.jsx)(p.IdPrefixProvider,{value:`calendarControl-`,children:n?(0,d.jsx)(p.FluentProvider,{theme:n,applyStylesToPortals:!0,style:{width:`100%`},children:ee}):(0,d.jsx)(`div`,{style:{width:`100%`},children:ee})})},Rr=()=>({tagPickerControl:(0,_.css)({border:`1px solid ${p.tokens.colorNeutralStroke2} !important`,borderRadius:`50px !important`,backgroundColor:`${p.tokens.colorNeutralBackground1} !important`,padding:`0px 10px`,boxShadow:`none`,transition:`all 0.2s ease !important`,"&::after":{display:`none !important`},"&:hover":{borderColor:`${p.tokens.colorBrandStroke1} !important`},"&:focus-within":{borderColor:`${p.tokens.colorBrandStroke1} !important`,boxShadow:`0 0 0 2px ${p.tokens.colorBrandBackground2} !important`}})}),zr=({options:e,onChange:t,renderItem:n,validate:r,label:i,placeholder:a,defaultValue:o,message:s,messageType:c,required:l,size:f,hint:m})=>{let h=o?e.find(e=>e.value===o):void 0,[g,_]=(0,u.useState)(o||``),[v,b]=(0,u.useState)(h?.text||``),[x,S]=(0,u.useState)(``),C=Rr(),w=(e,n)=>{let i=n.optionValue||``,a=n.optionText||``;_(i),b(a);let o=r?r(i):``;S(o),!o&&t&&t(i)},T=u.useMemo(()=>x?`error`:c===`warning`?`warning`:c===`info`?`success`:`none`,[x,c]);return(0,d.jsx)(p.Field,{label:i,required:l,validationMessage:u.useMemo(()=>x||s,[x,s]),validationMessageIcon:u.useCallback(()=>{switch(T){case`error`:return(0,d.jsx)(y.ErrorCircle12Filled,{});case`warning`:return(0,d.jsx)(y.Warning12Filled,{});case`success`:return(0,d.jsx)(y.CheckmarkCircle12Filled,{});default:return null}},[T])(),size:f,hint:m,validationState:T,children:(0,d.jsx)(p.Dropdown,{placeholder:a,onOptionSelect:w,value:v,selectedOptions:g?[g]:[],className:C.tagPickerControl,children:e.map(e=>(0,d.jsxs)(p.Option,{value:e.value,disabled:e.disabled,checkIcon:e.checkIcon,as:e.as,text:e.text||``,children:[n&&n(e),` `]},e.value))})})},Br=()=>({inputRoot:(0,_.css)({border:`1px solid ${p.tokens.colorNeutralStroke2} !important`,borderBottom:`1px solid ${p.tokens.colorNeutralStroke2} !important`,borderRadius:`50px !important`,backgroundColor:`${p.tokens.colorNeutralBackground1} !important`,padding:`0px 10px !important`,boxShadow:`none !important`,transition:`all 0.2s ease`,"&::after":{display:`none !important`,borderWidth:`0 !important`,content:`"none !important"`},"&:hover":{borderColor:`${p.tokens.colorBrandStroke1} !important`},"&:focus-within":{borderColor:`${p.tokens.colorBrandStroke1} !important`,boxShadow:`0 0 0 2px ${p.tokens.colorBrandBackground2} !important`}})}),Vr=({value:e,type:n=`text`,shape:r=`normal`,onChange:i,validate:a,label:o,placeholder:s,message:c,messageType:l,required:f,size:m,hint:h,disabled:g,readOnly:_,min:v,max:b,step:x,contentBefore:S,contentAfter:C})=>{let[w,T]=(0,u.useState)(e===void 0?``:String(e)),[E,D]=(0,u.useState)(``),O=Br(),k=t.c(),A=e!==void 0,j=A?String(e):w,M=(0,u.useCallback)(e=>{if(f&&e.trim()===``)return n===`number`?k.numberRequired:k.fieldRequired;if(n===`number`&&e.trim()!==``){let t=Number(e);if(isNaN(t))return k.invalidNumber;if(v!==void 0&&t<v)return k.valueMustBeAtLeast.replace(`{0}`,String(v));if(b!==void 0&&t>b)return k.valueMustBeAtMost.replace(`{0}`,String(b))}return a?a(n===`number`&&e.trim()!==``?Number(e):e):``},[f,n,a,v,b,k]),ee=(0,u.useCallback)((e,t)=>{let r=t.value;if(n===`number`&&r!==``&&!/^-?\d*\.?\d*$/.test(r))return;A||T(r);let a=M(r);D(a),!a&&i&&i(n===`number`&&r.trim()!==``?Number(r):r)},[n,A,M,i]),N=(0,u.useCallback)(()=>{D(M(j))},[M,j]),P=(0,u.useMemo)(()=>E?`error`:l===`warning`?`warning`:l===`info`?`success`:`none`,[E,l]),te=(0,u.useMemo)(()=>E||c,[E,c]),F=(0,u.useCallback)(()=>{switch(P){case`error`:return(0,d.jsx)(y.ErrorCircle12Filled,{});case`warning`:return(0,d.jsx)(y.Warning12Filled,{});case`success`:return(0,d.jsx)(y.CheckmarkCircle12Filled,{});default:return null}},[P]),I=r===`circular`?O.inputRoot:void 0;return(0,d.jsx)(p.Field,{label:o,required:f,validationMessage:te,validationMessageIcon:F(),size:m,hint:h,validationState:P,children:(0,d.jsx)(p.Input,{value:j,placeholder:s,onChange:ee,onBlur:N,disabled:g,readOnly:_,type:`text`,inputMode:n===`number`?`decimal`:`text`,step:n===`number`?x:void 0,className:I,contentBefore:S,contentAfter:C})})},Hr=!1;function Ur(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Wr(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var Gr=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0?!Hr:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(Wr(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=Ur(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Kr=`-ms-`,qr=`-moz-`,q=`-webkit-`,Jr=`comm`,Yr=`rule`,Xr=`decl`,Zr=`@import`,Qr=`@keyframes`,$r=`@layer`,ei=Math.abs,ti=String.fromCharCode,ni=Object.assign;function ri(e,t){return si(e,0)^45?(((t<<2^si(e,0))<<2^si(e,1))<<2^si(e,2))<<2^si(e,3):0}function ii(e){return e.trim()}function ai(e,t){return(e=t.exec(e))?e[0]:e}function J(e,t,n){return e.replace(t,n)}function oi(e,t){return e.indexOf(t)}function si(e,t){return e.charCodeAt(t)|0}function ci(e,t,n){return e.slice(t,n)}function li(e){return e.length}function ui(e){return e.length}function di(e,t){return t.push(e),e}function fi(e,t){return e.map(t).join(``)}var pi=1,mi=1,hi=0,gi=0,Y=0,_i=``;function vi(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:pi,column:mi,length:o,return:``}}function yi(e,t){return ni(vi(``,null,null,``,null,null,0),e,{length:-e.length},t)}function bi(){return Y}function xi(){return Y=gi>0?si(_i,--gi):0,mi--,Y===10&&(mi=1,pi--),Y}function Si(){return Y=gi<hi?si(_i,gi++):0,mi++,Y===10&&(mi=1,pi++),Y}function Ci(){return si(_i,gi)}function wi(){return gi}function Ti(e,t){return ci(_i,e,t)}function Ei(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Di(e){return pi=mi=1,hi=li(_i=e),gi=0,[]}function Oi(e){return _i=``,e}function ki(e){return ii(Ti(gi-1,Mi(e===91?e+2:e===40?e+1:e)))}function Ai(e){for(;(Y=Ci())&&Y<33;)Si();return Ei(e)>2||Ei(Y)>3?``:` `}function ji(e,t){for(;--t&&Si()&&!(Y<48||Y>102||Y>57&&Y<65||Y>70&&Y<97););return Ti(e,wi()+(t<6&&Ci()==32&&Si()==32))}function Mi(e){for(;Si();)switch(Y){case e:return gi;case 34:case 39:e!==34&&e!==39&&Mi(Y);break;case 40:e===41&&Mi(e);break;case 92:Si();break}return gi}function Ni(e,t){for(;Si()&&e+Y!==57&&!(e+Y===84&&Ci()===47););return`/*`+Ti(t,gi-1)+`*`+ti(e===47?e:Si())}function Pi(e){for(;!Ei(Ci());)Si();return Ti(e,gi)}function Fi(e){return Oi(Ii(``,null,null,null,[``],e=Di(e),0,[0],e))}function Ii(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=Si()){case 40:if(m!=108&&si(C,d-1)==58){oi(C+=J(ki(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=ki(v);break;case 9:case 10:case 13:case 32:C+=Ai(m);break;case 92:C+=ji(wi()-1,7);continue;case 47:switch(Ci()){case 42:case 47:di(Ri(Ni(Si(),wi()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=li(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=J(C,/\f/g,``)),p>0&&li(C)-d&&di(p>32?zi(C+`;`,r,n,d-1):zi(J(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(di(S=Li(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)Ii(C,t,S,S,b,a,d,s,x);else switch(f===99&&si(C,3)===110?100:f){case 100:case 108:case 109:case 115:Ii(e,S,S,r&&di(Li(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:Ii(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+li(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&xi()==125)continue}switch(C+=ti(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(li(C)-1)*_,_=1;break;case 64:Ci()===45&&(C+=ki(Si())),f=Ci(),u=d=li(y=C+=Pi(wi())),v++;break;case 45:m===45&&li(C)==2&&(h=0)}}return a}function Li(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=ui(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=ci(e,d+1,d=ei(h=o[m])),y=e;_<p;++_)(y=ii(h>0?f[_]+` `+v:J(v,/&\f/g,f[_])))&&(c[g++]=y);return vi(e,t,n,i===0?Yr:s,c,l,u)}function Ri(e,t,n){return vi(e,t,n,Jr,ti(bi()),ci(e,2,-2),0)}function zi(e,t,n,r){return vi(e,t,n,Xr,ci(e,0,r),ci(e,r+1,-1),r)}function Bi(e,t){for(var n=``,r=ui(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function Vi(e,t,n,r){switch(e.type){case $r:if(e.children.length)break;case Zr:case Xr:return e.return=e.return||e.value;case Jr:return``;case Qr:return e.return=e.value+`{`+Bi(e.children,r)+`}`;case Yr:e.value=e.props.join(`,`)}return li(n=Bi(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Hi(e){var t=ui(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Ui(e){return function(t){t.root||(t=t.return)&&e(t)}}function Wi(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Gi=function(e,t,n){for(var r=0,i=0;r=i,i=Ci(),r===38&&i===12&&(t[n]=1),!Ei(i);)Si();return Ti(e,gi)},Ki=function(e,t){var n=-1,r=44;do switch(Ei(r)){case 0:r===38&&Ci()===12&&(t[n]=1),e[n]+=Gi(gi-1,t,n);break;case 2:e[n]+=ki(r);break;case 4:if(r===44){e[++n]=Ci()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=ti(r)}while(r=Si());return e},qi=function(e,t){return Oi(Ki(Di(e),t))},Ji=new WeakMap,Yi=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Ji.get(n))&&!r){Ji.set(e,!0);for(var i=[],a=qi(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},Xi=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function Zi(e,t){switch(ri(e,t)){case 5103:return q+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return q+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return q+e+qr+e+Kr+e+e;case 6828:case 4268:return q+e+Kr+e+e;case 6165:return q+e+Kr+`flex-`+e+e;case 5187:return q+e+J(e,/(\w+).+(:[^]+)/,q+`box-$1$2`+Kr+`flex-$1$2`)+e;case 5443:return q+e+Kr+`flex-item-`+J(e,/flex-|-self/,``)+e;case 4675:return q+e+Kr+`flex-line-pack`+J(e,/align-content|flex-|-self/,``)+e;case 5548:return q+e+Kr+J(e,`shrink`,`negative`)+e;case 5292:return q+e+Kr+J(e,`basis`,`preferred-size`)+e;case 6060:return q+`box-`+J(e,`-grow`,``)+q+e+Kr+J(e,`grow`,`positive`)+e;case 4554:return q+J(e,/([^-])(transform)/g,`$1`+q+`$2`)+e;case 6187:return J(J(J(e,/(zoom-|grab)/,q+`$1`),/(image-set)/,q+`$1`),e,``)+e;case 5495:case 3959:return J(e,/(image-set\([^]*)/,q+"$1$`$1");case 4968:return J(J(e,/(.+:)(flex-)?(.*)/,q+`box-pack:$3`+Kr+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+q+e+e;case 4095:case 3583:case 4068:case 2532:return J(e,/(.+)-inline(.+)/,q+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(li(e)-1-t>6)switch(si(e,t+1)){case 109:if(si(e,t+4)!==45)break;case 102:return J(e,/(.+:)(.+)-([^]+)/,`$1`+q+`$2-$3$1`+qr+(si(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~oi(e,`stretch`)?Zi(J(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(si(e,t+1)!==115)break;case 6444:switch(si(e,li(e)-3-(~oi(e,`!important`)&&10))){case 107:return J(e,`:`,`:`+q)+e;case 101:return J(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+q+(si(e,14)===45?`inline-`:``)+`box$3$1`+q+`$2$3$1`+Kr+`$2box$3`)+e}break;case 5936:switch(si(e,t+11)){case 114:return q+e+Kr+J(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return q+e+Kr+J(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return q+e+Kr+J(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return q+e+Kr+e+e}return e}var Qi=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Xr:e.return=Zi(e.value,e.length);break;case Qr:return Bi([yi(e,{value:J(e.value,`@`,`@`+q)})],r);case Yr:if(e.length)return fi(e.props,function(t){switch(ai(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return Bi([yi(e,{props:[J(t,/:(read-\w+)/,`:`+qr+`$1`)]})],r);case`::placeholder`:return Bi([yi(e,{props:[J(t,/:(plac\w+)/,`:`+q+`input-$1`)]}),yi(e,{props:[J(t,/:(plac\w+)/,`:`+qr+`$1`)]}),yi(e,{props:[J(t,/:(plac\w+)/,Kr+`input-$1`)]})],r)}return``})}}],$i=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||Qi,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[Yi,Xi],l,u=[Vi,Ui(function(e){l.insert(e)})],d=Hi(c.concat(r,u)),f=function(e){return Bi(Fi(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Gr({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},ea=e.t((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),ta=e.t((e=>{process.env.NODE_ENV!==`production`&&(function(){"use strict";var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)}function x(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case l:case u:case i:case o:case a:case f:return p;default:var g=p&&p.$$typeof;switch(g){case c:case d:case h:case m:case s:return g;default:return t}}case r:return t}}}var S=l,C=u,w=c,T=s,E=n,D=d,O=i,k=h,A=m,j=r,M=o,ee=a,N=f,P=!1;function te(e){return P||(P=!0,console.warn(`The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.`)),F(e)||x(e)===l}function F(e){return x(e)===u}function I(e){return x(e)===c}function L(e){return x(e)===s}function ne(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function re(e){return x(e)===d}function R(e){return x(e)===i}function ie(e){return x(e)===h}function ae(e){return x(e)===m}function oe(e){return x(e)===r}function se(e){return x(e)===o}function ce(e){return x(e)===a}function le(e){return x(e)===f}e.AsyncMode=S,e.ConcurrentMode=C,e.ContextConsumer=w,e.ContextProvider=T,e.Element=E,e.ForwardRef=D,e.Fragment=O,e.Lazy=k,e.Memo=A,e.Portal=j,e.Profiler=M,e.StrictMode=ee,e.Suspense=N,e.isAsyncMode=te,e.isConcurrentMode=F,e.isContextConsumer=I,e.isContextProvider=L,e.isElement=ne,e.isForwardRef=re,e.isFragment=R,e.isLazy=ie,e.isMemo=ae,e.isPortal=oe,e.isProfiler=se,e.isStrictMode=ce,e.isSuspense=le,e.isValidElementType=b,e.typeOf=x})()})),na=e.t(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=ea():t.exports=ta()})),ra=e.t(((e,t)=>{var n=na(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h})),ia=!0;function aa(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var oa=function(e,t,n){var r=e.key+`-`+t.name;(n===!1||ia===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},sa=function(e,t,n){oa(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function ca(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var la={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ua=!1,da=/[A-Z]|^ms/g,fa=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pa=function(e){return e.charCodeAt(1)===45},ma=function(e){return e!=null&&typeof e!=`boolean`},ha=Wi(function(e){return pa(e)?e:e.replace(da,`-$&`).toLowerCase()}),ga=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(fa,function(e,t,n){return xa={name:t,styles:n,next:xa},t})}return la[e]!==1&&!pa(e)&&typeof t==`number`&&t!==0?t+`px`:t},_a=`Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.`;function va(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return xa={name:i.name,styles:i.styles,next:xa},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)xa={name:o.name,styles:o.styles,next:xa},o=o.next;return a.styles+`;`}return ya(e,t,n);case`function`:if(e!==void 0){var s=xa,c=n(e);return xa=s,va(e,t,c)}break}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function ya(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=va(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:ma(s)&&(r+=ha(a)+`:`+ga(a,s)+`;`)}else{if(a===`NO_COMPONENT_SELECTOR`&&ua)throw Error(_a);if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)ma(o[c])&&(r+=ha(a)+`:`+ga(a,o[c])+`;`);else{var l=va(e,t,o);switch(a){case`animation`:case`animationName`:r+=ha(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}}return r}var ba=/label:\s*([^\s;{]+)\s*(;|$)/g,xa;function Sa(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;xa=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=va(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=va(n,t,e[o]),r&&(i+=a[o]);ba.lastIndex=0;for(var s=``,c;(c=ba.exec(i))!==null;)s+=`-`+c[1];return{name:ca(i)+s,styles:i,next:xa}}var Ca=function(e){return e()},wa=u.useInsertionEffect?u.useInsertionEffect:!1,Ta=wa||Ca;wa||u.useLayoutEffect;var Ea=u.createContext(typeof HTMLElement<`u`?$i({key:`css`}):null);Ea.Provider;var Da=function(e){return(0,u.forwardRef)(function(t,n){return e(t,(0,u.useContext)(Ea),n)})},Oa=u.createContext({}),ka={}.hasOwnProperty,Aa=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,ja=function(e,t){var n={};for(var r in t)ka.call(t,r)&&(n[r]=t[r]);return n[Aa]=e,n},Ma=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return oa(t,n,r),Ta(function(){return sa(t,n,r)}),null},Na=Da(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Aa],a=[r],o=``;typeof e.className==`string`?o=aa(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=Sa(a,void 0,u.useContext(Oa));o+=t.key+`-`+s.name;var c={};for(var l in e)ka.call(e,l)&&l!==`css`&&l!==Aa&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),u.createElement(u.Fragment,null,u.createElement(Ma,{cache:t,serialized:s,isStringTag:typeof i==`string`}),u.createElement(i,c))});ra();var Pa=function(e,t){var n=arguments;if(t==null||!ka.call(t,`css`))return u.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=Na,i[1]=ja(e,t);for(var a=2;a<r;a++)i[a]=n[a];return u.createElement.apply(null,i)};(function(e){var t;(function(e){})(t||=e.JSX||={})})(Pa||={});function Fa(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Sa(t)}var Ia=()=>({searchBoxStyles:Fa`
16
16
  border: 1px solid ${p.tokens.colorNeutralStroke2};
17
17
  border-radius: 50px;
18
18
  background-color: ${p.tokens.colorNeutralBackground1};
@@ -125,7 +125,7 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
125
125
  align-items: center;
126
126
  padding: 2px;
127
127
  margin-right: 8px;
128
- `});d.Fragment;var La=function(e,t,n){return ka.call(t,`css`)?d.jsx(Na,ja(e,t),n):d.jsx(e,t,n)},Ra=function(e,t,n){return ka.call(t,`css`)?d.jsxs(Na,ja(e,t),n):d.jsxs(e,t,n)},za=({placeholder:e,onSearch:n,onChange:r,onClear:i,disabled:a=!1,className:o,width:s,value:c,shape:l=`circular`,contentBefore:d,size:f})=>{let[m,h]=(0,u.useState)(``),g=(0,u.useRef)(null),{searchBoxStyles:_,searchBoxNormalStyles:v,iconWrapperStyles:b}=Ia(),x=t.g(),S=e||x.placeholder,C=c!==void 0,w=C?c:m,T=l===`circular`?_:v,E=(0,u.useCallback)((e,t)=>{C||h(t.value),r?.(t.value)},[C,r]),D=(0,u.useCallback)(()=>{C||h(``),g.current?.blur(),i?.(),n?.(``)},[C,i,n]),O=(0,u.useCallback)(e=>{e.key===`Enter`&&w.trim()?n?.(w.trim()):e.key===`Escape`&&(g.current?.blur(),C||h(``),i?.())},[w,C,n,i]);return La(p.SearchBox,{ref:g,css:T,className:o,style:{width:s},placeholder:S,value:w,onChange:E,onKeyDown:O,disabled:a,size:f,contentBefore:d??La(`span`,{css:b,children:La(y.SearchRegular,{})}),dismiss:{onClick:D}})},Ba=({onChange:e,defaultKey:t,label:n,options:r=[],minWidth:i,styles:a})=>{let[o,s]=(0,u.useState)(()=>r.map(e=>({...e,selected:e.key===(t??`status`)})));(0,u.useEffect)(()=>{let t=o.find(e=>e.selected);t&&e(t.key)},[]);let c=u.default.useCallback(t=>{s(o.map(e=>({...e,selected:e.key===t.key}))),e(t.key)},[o,e]);return(0,d.jsxs)(W,{gap:`s`,children:[n&&(0,d.jsx)(p.Label,{children:n}),(0,d.jsx)(zn,{options:o,onSelected:c,styles:i?{minWidth:i}:a??{}})]})},Va=()=>({menuButton:(0,_.css)({minWidth:200}),popover:(0,_.css)({padding:p.tokens.spacingVerticalS,minWidth:200}),timePicker:(0,_.css)({width:`100%`})}),Ha=()=>({root:(0,_.css)({maxHeight:280,overflowY:`auto`,padding:`${p.tokens.spacingVerticalXS} 0`}),item:(0,_.css)({cursor:`pointer`})}),Ua=`time`,Wa=(e,t,n)=>{let r=new Date(e);return r.setHours(t,n,0,0),r},Ga=(e,t,n)=>{let r={hour:`numeric`,minute:`2-digit`,...n&&{second:`2-digit`},...t&&{hourCycle:t}};return new Intl.DateTimeFormat(void 0,r).format(e)},Ka=e=>`${String(e.getHours()).padStart(2,`0`)}:${String(e.getMinutes()).padStart(2,`0`)}`,qa=(e,t,n,r)=>{let i=[],a=e*60,o=t*60;for(let e=a;e<o;e+=n){let t=Math.floor(e/60),n=e%60;i.push(Wa(r,t,n))}return i},Ja=u.memo(e=>{let{onTimeSelect:t,hourCycle:n,showSeconds:r=!1,startHour:i=0,endHour:a=24,increment:o=30,dateAnchor:s}=e,c=Ha(),l=u.useMemo(()=>s??new Date,[s]),f=u.useMemo(()=>qa(i,a,o,l),[i,a,o,l]),m=u.useCallback((e,n)=>()=>{t(e,n)},[t]);return(0,d.jsx)(`div`,{className:c.root,children:f.map(e=>{let t=Ga(e,n,r),i=Ka(e);return(0,d.jsx)(p.MenuItemRadio,{name:Ua,value:i,onClick:m(e,t),icon:(0,d.jsx)(y.ClockRegular,{}),className:c.item,children:t},i)})})}),Ya=(e,t)=>{let n=t?new Date(t):new Date,r=n.getHours()*60+n.getMinutes(),i=Math.ceil(r/e)*e,a=new Date(n);return a.setHours(Math.floor(i/60),i%60,0,0),a},Xa=u.memo(e=>{let{onSelected:t,value:n,placeholder:r=`Select a time`,hourCycle:i,showSeconds:a=!1,startHour:o,endHour:s,increment:c=30,dateAnchor:l}=e,f=Va(),m=u.useMemo(()=>Ya(c,l),[c,l]),h=n??m,[g,_]=u.useState(h),[v,b]=u.useState(()=>Ga(h,i,a)),[x,S]=u.useState(!1);u.useEffect(()=>{n&&(_(n),b(Ga(n,i,a)))},[n,i,a]);let C=u.useCallback((e,t)=>{S(t.open)},[]),w=u.useMemo(()=>(0,y.bundleIcon)(y.ClockFilled,y.ClockRegular),[]),T=u.useMemo(()=>g?{[Ua]:[Ka(g)]}:{[Ua]:[]},[g]),E=u.useCallback((e,n)=>{_(e),b(n),t(e),S(!1)},[t]);return(0,d.jsxs)(p.Menu,{open:x,onOpenChange:C,checkedValues:T,onCheckedValueChange:u.useCallback((e,t)=>{},[]),children:[(0,d.jsx)(p.MenuTrigger,{disableButtonEnhancement:!0,children:(0,d.jsx)(p.MenuButton,{shape:`circular`,icon:(0,d.jsx)(w,{}),className:f.menuButton,children:v||r})}),(0,d.jsx)(p.MenuPopover,{className:f.popover,children:(0,d.jsx)(p.MenuList,{children:(0,d.jsx)(Ja,{value:g,onTimeSelect:E,hourCycle:i,showSeconds:a,startHour:o,endHour:s,increment:c,dateAnchor:l})})})]})}),Za=()=>({container:(0,_.css)({display:`flex`,flexDirection:`column`,gap:p.tokens.spacingVerticalS,position:`relative`}),pickerList:(0,_.css)({maxHeight:300,overflowY:`auto`,backgroundColor:p.tokens.colorNeutralBackground1,border:`1px solid ${p.tokens.colorNeutralStroke2}`,borderRadius:p.tokens.borderRadiusMedium,boxShadow:p.tokens.shadow16,scrollbarColor:`${p.tokens.colorBrandForeground1} ${p.tokens.colorNeutralBackground1}`,scrollbarWidth:`thin`,"&::-webkit-scrollbar-track":{borderRadius:10,borderWidth:1},"&::-webkit-scrollbar-thumb":{borderRadius:10,borderWidth:1},"&::-webkit-scrollbar":{height:7,width:7}}),optionContent:(0,_.css)({display:`flex`,flexDirection:`column`,gap:p.tokens.spacingVerticalXXS}),optionSecondary:(0,_.css)({fontSize:p.tokens.fontSizeBase200,color:p.tokens.colorNeutralForeground3,fontWeight:p.tokens.fontWeightRegular}),tagPickerControl:(0,_.css)({}),tagPickerInput:(0,_.css)({backgroundColor:`transparent`,border:`none`,outline:`none`,fontSize:p.tokens.fontSizeBase300,"&::placeholder":{color:p.tokens.colorNeutralForeground4},"&:focus":{outline:`none`}})}),Qa=({options:e,selectedOptions:n=[],onSelectionChange:r,onSearchChange:i,onLoadMore:a,pagingInfo:o,placeholder:s,disabled:c=!1,maxSelectedOptions:l,width:f,className:m,noResultsMessage:h,loadingMessage:g,loadingMoreMessage:_,searchDebounceMs:v=300})=>{let y=Za(),b=t.l(),x=s||b.placeholder,S=h||b.noResultsFound,C=g||b.searching,w=_||b.loadingMore,[T,E]=(0,u.useState)(``),D=(0,u.useRef)(null),O=(0,u.useRef)(null),k=n.map(e=>e.value),A=o?.isLoading??!1,j=o?.isLoadingMore??!1,M=o?.hasMore??!1,N=e.filter(e=>!k.includes(e.value)),P=(0,u.useCallback)(e=>{E(e),D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{i?.(e)},v)},[i,v]),F=(0,u.useCallback)(e=>{if(!M||j)return;let{scrollTop:t,scrollHeight:n,clientHeight:r}=e.currentTarget;t+r>=n-100&&a?.()},[M,j,a]),ee=(0,u.useCallback)((t,a)=>{if(a.value===`no-options`||a.value===`loading`||a.value===`loading-more`)return;let o=a.selectedOptions,s=n.filter(e=>o.includes(e.value));if(o.length>k.length){let t=o.find(e=>!k.includes(e));if(t){let r=e.find(e=>e.value===t);if(r){if(l&&n.length>=l)return;s.push(r)}}E(``),i?.(``)}r?.(s)},[e,n,k,r,i,l]);return(0,u.useEffect)(()=>()=>{D.current&&clearTimeout(D.current)},[]),(0,d.jsx)(`div`,{className:`${y.container} ${m||``}`,...f&&{style:{width:f}},children:(0,d.jsxs)(p.TagPicker,{onOptionSelect:ee,selectedOptions:k,disabled:c,children:[(0,d.jsxs)(p.TagPickerControl,{className:y.tagPickerControl,children:[(0,d.jsx)(p.TagPickerGroup,{"aria-label":b.selectedItems,children:n.map(e=>(0,d.jsx)(p.Tag,{shape:`circular`,media:e.tagMedia??e.media,value:e.value,dismissible:!0,disabled:c,style:{minHeight:30},children:e.text},e.value))}),(0,d.jsx)(p.TagPickerInput,{className:y.tagPickerInput,"aria-label":b.searchItems,placeholder:x,value:T,onChange:e=>P(e.target.value),disabled:c})]}),(0,d.jsx)(p.TagPickerList,{ref:O,onScroll:F,className:y.pickerList,children:A?(0,d.jsx)(p.TagPickerOption,{value:`loading`,children:C}):N.length>0?(0,d.jsxs)(d.Fragment,{children:[N.map(e=>(0,d.jsx)(p.TagPickerOption,{value:e.value,text:e.text,media:e.media,children:(0,d.jsxs)(`div`,{className:y.optionContent,children:[(0,d.jsx)(p.Text,{weight:`semibold`,children:e.text}),e.secondaryText&&(0,d.jsx)(p.Text,{size:200,className:y.optionSecondary,children:e.secondaryText})]})},e.value)),j&&(0,d.jsx)(p.TagPickerOption,{value:`loading-more`,children:w})]}):(0,d.jsx)(p.TagPickerOption,{value:`no-options`,children:S})})]})})},X={xs:p.tokens.spacingHorizontalXS,s:p.tokens.spacingHorizontalS,m:p.tokens.spacingHorizontalM,l:p.tokens.spacingHorizontalL,xl:p.tokens.spacingHorizontalXL,xxl:p.tokens.spacingHorizontalXXL},$a=u.default.memo(({direction:e=`vertical`,justifyContent:t=`flex-start`,alignItems:n=`stretch`,gap:r,columnGap:i,rowGap:a,margin:o,padding:s,marginTop:c,marginBottom:l,marginLeft:u,marginRight:f,paddingTop:m,paddingBottom:h,paddingLeft:g,paddingRight:v,width:y,height:b,wrap:x=!1,children:S,style:C,className:w,overflow:T,background:E})=>(0,d.jsx)(`div`,{className:(0,p.mergeClasses)(w,(0,_.css)({display:`flex`,flexDirection:e===`horizontal`?`row`:`column`,justifyContent:t,alignItems:n,gap:r&&X[r]?X[r]:r,columnGap:i&&X[i]?X[i]:i,rowGap:a&&X[a]?X[a]:a,margin:o&&X[o]?X[o]:o,padding:s&&X[s]?X[s]:s,marginTop:c&&X[c]?X[c]:c,marginBottom:l&&X[l]?X[l]:l,marginLeft:u&&X[u]?X[u]:u,marginRight:f&&X[f]?X[f]:f,paddingTop:m&&X[m]?X[m]:m,paddingBottom:h&&X[h]?X[h]:h,paddingLeft:g&&X[g]?X[g]:g,paddingRight:v&&X[v]?X[v]:v,width:y,height:b,overflow:T,flexWrap:x?`wrap`:`nowrap`,backgroundColor:E,...C})),children:S})),eo=e=>({styles:{loadingContainer:(0,_.css)({display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100%`}),noItemsMessage:(0,_.css)({textAlign:`center`,marginTop:20}),rowSelection:(0,_.css)({":hover":{cursor:`pointer`}})}}),to=e=>{let{items:t,columns:n,defaultSelectedItems:r=[],enableSorting:i=!1,selectionMode:a=`none`,onSelectionChange:o,onSortChange:s,defaultSortState:c,columnSizingOptions:l,enableResizing:f=!1,noItemsMessage:m,isLoadingData:h,isLoadingDataMessage:g,dataGridBodyClassName:_,dataGridBodyStyles:v,refreshData:y}=e,b=e=>t.findIndex(t=>t===e),[x,S]=u.useState(new Set(r.map(e=>b(e)))),C=u.useRef(null),{styles:w}=eo(e);u.useEffect(()=>{r.length>0&&S(new Set(r.map(e=>b(e))))},[r,t]),u.useEffect(()=>{y&&S(new Set)},[y]);let T=n.map(e=>(0,p.createTableColumn)({columnId:e.column,renderHeaderCell:()=>(0,d.jsx)(p.Body1Strong,{children:e.header}),renderCell:t=>(0,d.jsx)(p.TableCellLayout,{media:e.media?e.media(t):void 0,className:e?.className,style:e?.style,children:e.onRender?e.onRender(t):String(t[e?.column]??``)}),compare:e.order})),E=(e,n)=>{let r=new Set;n.selectedItems.forEach(e=>{let t=Number(e);isNaN(t)||r.add(t)}),S(r),o&&o(Array.from(r).map(e=>t[e]))},D=(e,t)=>{s&&s(t)},O=u.useCallback((e,t)=>{e.stopPropagation(),a===`row`&&o&&o([t])},[a,o]),k=u.useMemo(()=>a===`row`?w.rowSelection:``,[a,w.rowSelection]),A=u.useCallback(()=>(0,d.jsx)(p.DataGridBody,{style:v??{},className:_??``,children:({item:e,rowId:t})=>(0,d.jsx)(p.DataGridRow,{className:k,onClick:t=>O(t,e),children:({renderCell:t})=>(0,d.jsx)(p.DataGridCell,{children:t(e)})},t)}),[O,k,v,_]),j=u.useMemo(()=>t.length&&!h,[t,h]),M=u.useCallback(()=>h?(0,d.jsx)(d.Fragment,{children:g??(0,d.jsx)($a,{direction:`vertical`,gap:`s`,justifyContent:`center`,alignItems:`center`,style:{height:`100%`,minHeight:200,width:`100%`},children:(0,d.jsx)(p.Spinner,{})})}):j?(0,d.jsx)(A,{}):!h&&!t.length?(0,d.jsx)(`div`,{children:m}):(0,d.jsx)(d.Fragment,{}),[j,h,t,m]);return(0,d.jsx)(`div`,{ref:C,children:(0,d.jsxs)(p.DataGrid,{as:`div`,items:t,onSelectionChange:E,sortable:i,columns:T,selectionMode:a===`none`||a===`row`?void 0:a===`multiple`?`multiselect`:a===`single`?`single`:void 0,selectedItems:x,defaultSortState:c,onSortChange:D,columnSizingOptions:l,resizableColumns:f,resizableColumnsOptions:{autoFitColumns:!1},children:[(0,d.jsx)(p.DataGridHeader,{children:(0,d.jsx)(p.DataGridRow,{children:({renderHeaderCell:e})=>(0,d.jsx)(p.DataGridHeaderCell,{children:e()})})}),(0,d.jsx)(M,{})]})})},no=_.css`
128
+ `});d.Fragment;var La=function(e,t,n){return ka.call(t,`css`)?d.jsx(Na,ja(e,t),n):d.jsx(e,t,n)},Ra=function(e,t,n){return ka.call(t,`css`)?d.jsxs(Na,ja(e,t),n):d.jsxs(e,t,n)},za=({placeholder:e,onSearch:n,onChange:r,onClear:i,disabled:a=!1,className:o,width:s,value:c,shape:l=`circular`,contentBefore:d,size:f})=>{let[m,h]=(0,u.useState)(``),g=(0,u.useRef)(null),{searchBoxStyles:_,searchBoxNormalStyles:v,iconWrapperStyles:b}=Ia(),x=t.g(),S=e||x.placeholder,C=c!==void 0,w=C?c:m,T=l===`circular`?_:v,E=(0,u.useCallback)((e,t)=>{C||h(t.value),r?.(t.value)},[C,r]),D=(0,u.useCallback)(()=>{C||h(``),g.current?.blur(),i?.(),n?.(``)},[C,i,n]),O=(0,u.useCallback)(e=>{e.key===`Enter`&&w.trim()?n?.(w.trim()):e.key===`Escape`&&(g.current?.blur(),C||h(``),i?.())},[w,C,n,i]);return La(p.SearchBox,{ref:g,css:T,className:o,style:{width:s},placeholder:S,value:w,onChange:E,onKeyDown:O,disabled:a,size:f,contentBefore:d??La(`span`,{css:b,children:La(y.SearchRegular,{})}),dismiss:{onClick:D}})},Ba=({onChange:e,defaultKey:t,label:n,options:r=[],minWidth:i,styles:a})=>{let[o,s]=(0,u.useState)(()=>r.map(e=>({...e,selected:e.key===(t??`status`)})));(0,u.useEffect)(()=>{let t=o.find(e=>e.selected);t&&e(t.key)},[]);let c=u.default.useCallback(t=>{s(o.map(e=>({...e,selected:e.key===t.key}))),e(t.key)},[o,e]);return(0,d.jsxs)(W,{gap:`s`,children:[n&&(0,d.jsx)(p.Label,{children:n}),(0,d.jsx)(zn,{options:o,onSelected:c,styles:i?{minWidth:i}:a??{}})]})},Va=()=>({menuButton:(0,_.css)({minWidth:200}),popover:(0,_.css)({padding:p.tokens.spacingVerticalS,minWidth:200}),timePicker:(0,_.css)({width:`100%`})}),Ha=()=>({root:(0,_.css)({maxHeight:280,overflowY:`auto`,padding:`${p.tokens.spacingVerticalXS} 0`}),item:(0,_.css)({cursor:`pointer`})}),Ua=`time`,Wa=(e,t,n)=>{let r=new Date(e);return r.setHours(t,n,0,0),r},Ga=(e,t,n)=>{let r={hour:`numeric`,minute:`2-digit`,...n&&{second:`2-digit`},...t&&{hourCycle:t}};return new Intl.DateTimeFormat(void 0,r).format(e)},Ka=e=>`${String(e.getHours()).padStart(2,`0`)}:${String(e.getMinutes()).padStart(2,`0`)}`,qa=(e,t,n,r)=>{let i=[],a=e*60,o=t*60;for(let e=a;e<o;e+=n){let t=Math.floor(e/60),n=e%60;i.push(Wa(r,t,n))}return i},Ja=u.memo(e=>{let{onTimeSelect:t,hourCycle:n,showSeconds:r=!1,startHour:i=0,endHour:a=24,increment:o=30,dateAnchor:s}=e,c=Ha(),l=u.useMemo(()=>s??new Date,[s]),f=u.useMemo(()=>qa(i,a,o,l),[i,a,o,l]),m=u.useCallback((e,n)=>()=>{t(e,n)},[t]);return(0,d.jsx)(`div`,{className:c.root,children:f.map(e=>{let t=Ga(e,n,r),i=Ka(e);return(0,d.jsx)(p.MenuItemRadio,{name:Ua,value:i,onClick:m(e,t),icon:(0,d.jsx)(y.ClockRegular,{}),className:c.item,children:t},i)})})}),Ya=(e,t)=>{let n=t?new Date(t):new Date,r=n.getHours()*60+n.getMinutes(),i=Math.ceil(r/e)*e,a=new Date(n);return a.setHours(Math.floor(i/60),i%60,0,0),a},Xa=u.memo(e=>{let{onSelected:t,value:n,placeholder:r=`Select a time`,hourCycle:i,showSeconds:a=!1,startHour:o,endHour:s,increment:c=30,dateAnchor:l}=e,f=Va(),m=u.useMemo(()=>Ya(c,l),[c,l]),h=n??m,[g,_]=u.useState(h),[v,b]=u.useState(()=>Ga(h,i,a)),[x,S]=u.useState(!1);u.useEffect(()=>{n&&(_(n),b(Ga(n,i,a)))},[n,i,a]);let C=u.useCallback((e,t)=>{S(t.open)},[]),w=u.useMemo(()=>(0,y.bundleIcon)(y.ClockFilled,y.ClockRegular),[]),T=u.useMemo(()=>g?{[Ua]:[Ka(g)]}:{[Ua]:[]},[g]),E=u.useCallback((e,n)=>{_(e),b(n),t(e),S(!1)},[t]);return(0,d.jsxs)(p.Menu,{open:x,onOpenChange:C,checkedValues:T,onCheckedValueChange:u.useCallback((e,t)=>{},[]),children:[(0,d.jsx)(p.MenuTrigger,{disableButtonEnhancement:!0,children:(0,d.jsx)(p.MenuButton,{shape:`circular`,icon:(0,d.jsx)(w,{}),className:f.menuButton,children:v||r})}),(0,d.jsx)(p.MenuPopover,{className:f.popover,children:(0,d.jsx)(p.MenuList,{children:(0,d.jsx)(Ja,{value:g,onTimeSelect:E,hourCycle:i,showSeconds:a,startHour:o,endHour:s,increment:c,dateAnchor:l})})})]})}),Za=()=>({container:(0,_.css)({display:`flex`,flexDirection:`column`,gap:p.tokens.spacingVerticalS,position:`relative`}),pickerList:(0,_.css)({maxHeight:300,overflowY:`auto`,backgroundColor:p.tokens.colorNeutralBackground1,border:`1px solid ${p.tokens.colorNeutralStroke2}`,borderRadius:p.tokens.borderRadiusMedium,boxShadow:p.tokens.shadow16,scrollbarColor:`${p.tokens.colorBrandForeground1} ${p.tokens.colorNeutralBackground1}`,scrollbarWidth:`thin`,"&::-webkit-scrollbar-track":{borderRadius:10,borderWidth:1},"&::-webkit-scrollbar-thumb":{borderRadius:10,borderWidth:1},"&::-webkit-scrollbar":{height:7,width:7}}),optionContent:(0,_.css)({display:`flex`,flexDirection:`column`,gap:p.tokens.spacingVerticalXXS}),optionSecondary:(0,_.css)({fontSize:p.tokens.fontSizeBase200,color:p.tokens.colorNeutralForeground3,fontWeight:p.tokens.fontWeightRegular}),tagPickerControl:(0,_.css)({}),tagPickerInput:(0,_.css)({backgroundColor:`transparent`,border:`none`,outline:`none`,fontSize:p.tokens.fontSizeBase300,"&::placeholder":{color:p.tokens.colorNeutralForeground4},"&:focus":{outline:`none`}})}),Qa=({options:e,selectedOptions:n=[],onSelectionChange:r,onSearchChange:i,onLoadMore:a,pagingInfo:o,placeholder:s,disabled:c=!1,maxSelectedOptions:l,width:f,className:m,noResultsMessage:h,loadingMessage:g,loadingMoreMessage:_,searchDebounceMs:v=300})=>{let y=Za(),b=t.l(),x=s||b.placeholder,S=h||b.noResultsFound,C=g||b.searching,w=_||b.loadingMore,[T,E]=(0,u.useState)(``),D=(0,u.useRef)(null),O=(0,u.useRef)(null),k=n.map(e=>e.value),A=o?.isLoading??!1,j=o?.isLoadingMore??!1,M=o?.hasMore??!1,ee=e.filter(e=>!k.includes(e.value)),N=(0,u.useCallback)(e=>{E(e),D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{i?.(e)},v)},[i,v]),P=(0,u.useCallback)(e=>{if(!M||j)return;let{scrollTop:t,scrollHeight:n,clientHeight:r}=e.currentTarget;t+r>=n-100&&a?.()},[M,j,a]),te=(0,u.useCallback)((t,a)=>{if(a.value===`no-options`||a.value===`loading`||a.value===`loading-more`)return;let o=a.selectedOptions,s=n.filter(e=>o.includes(e.value));if(o.length>k.length){let t=o.find(e=>!k.includes(e));if(t){let r=e.find(e=>e.value===t);if(r){if(l&&n.length>=l)return;s.push(r)}}E(``),i?.(``)}r?.(s)},[e,n,k,r,i,l]);return(0,u.useEffect)(()=>()=>{D.current&&clearTimeout(D.current)},[]),(0,d.jsx)(`div`,{className:`${y.container} ${m||``}`,...f&&{style:{width:f}},children:(0,d.jsxs)(p.TagPicker,{onOptionSelect:te,selectedOptions:k,disabled:c,children:[(0,d.jsxs)(p.TagPickerControl,{className:y.tagPickerControl,children:[(0,d.jsx)(p.TagPickerGroup,{"aria-label":b.selectedItems,children:n.map(e=>(0,d.jsx)(p.Tag,{shape:`circular`,media:e.tagMedia??e.media,value:e.value,dismissible:!0,disabled:c,style:{minHeight:30},children:e.text},e.value))}),(0,d.jsx)(p.TagPickerInput,{className:y.tagPickerInput,"aria-label":b.searchItems,placeholder:x,value:T,onChange:e=>N(e.target.value),disabled:c})]}),(0,d.jsx)(p.TagPickerList,{ref:O,onScroll:P,className:y.pickerList,children:A?(0,d.jsx)(p.TagPickerOption,{value:`loading`,children:C}):ee.length>0?(0,d.jsxs)(d.Fragment,{children:[ee.map(e=>(0,d.jsx)(p.TagPickerOption,{value:e.value,text:e.text,media:e.media,children:(0,d.jsxs)(`div`,{className:y.optionContent,children:[(0,d.jsx)(p.Text,{weight:`semibold`,children:e.text}),e.secondaryText&&(0,d.jsx)(p.Text,{size:200,className:y.optionSecondary,children:e.secondaryText})]})},e.value)),j&&(0,d.jsx)(p.TagPickerOption,{value:`loading-more`,children:w})]}):(0,d.jsx)(p.TagPickerOption,{value:`no-options`,children:S})})]})})},X={xs:p.tokens.spacingHorizontalXS,s:p.tokens.spacingHorizontalS,m:p.tokens.spacingHorizontalM,l:p.tokens.spacingHorizontalL,xl:p.tokens.spacingHorizontalXL,xxl:p.tokens.spacingHorizontalXXL},$a=u.default.memo(({direction:e=`vertical`,justifyContent:t=`flex-start`,alignItems:n=`stretch`,gap:r,columnGap:i,rowGap:a,margin:o,padding:s,marginTop:c,marginBottom:l,marginLeft:u,marginRight:f,paddingTop:m,paddingBottom:h,paddingLeft:g,paddingRight:v,width:y,height:b,wrap:x=!1,children:S,style:C,className:w,overflow:T,background:E})=>(0,d.jsx)(`div`,{className:(0,p.mergeClasses)(w,(0,_.css)({display:`flex`,flexDirection:e===`horizontal`?`row`:`column`,justifyContent:t,alignItems:n,gap:r&&X[r]?X[r]:r,columnGap:i&&X[i]?X[i]:i,rowGap:a&&X[a]?X[a]:a,margin:o&&X[o]?X[o]:o,padding:s&&X[s]?X[s]:s,marginTop:c&&X[c]?X[c]:c,marginBottom:l&&X[l]?X[l]:l,marginLeft:u&&X[u]?X[u]:u,marginRight:f&&X[f]?X[f]:f,paddingTop:m&&X[m]?X[m]:m,paddingBottom:h&&X[h]?X[h]:h,paddingLeft:g&&X[g]?X[g]:g,paddingRight:v&&X[v]?X[v]:v,width:y,height:b,overflow:T,flexWrap:x?`wrap`:`nowrap`,backgroundColor:E,...C})),children:S})),eo=e=>({styles:{loadingContainer:(0,_.css)({display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100%`}),noItemsMessage:(0,_.css)({textAlign:`center`,marginTop:20}),rowSelection:(0,_.css)({":hover":{cursor:`pointer`}})}}),to=e=>{let{items:t,columns:n,defaultSelectedItems:r=[],enableSorting:i=!1,selectionMode:a=`none`,onSelectionChange:o,onSortChange:s,defaultSortState:c,columnSizingOptions:l,enableResizing:f=!1,noItemsMessage:m,isLoadingData:h,isLoadingDataMessage:g,dataGridBodyClassName:_,dataGridBodyStyles:v,refreshData:y}=e,b=e=>t.findIndex(t=>t===e),[x,S]=u.useState(new Set(r.map(e=>b(e)))),C=u.useRef(null),{styles:w}=eo(e);u.useEffect(()=>{r.length>0&&S(new Set(r.map(e=>b(e))))},[r,t]),u.useEffect(()=>{y&&S(new Set)},[y]);let T=n.map(e=>(0,p.createTableColumn)({columnId:e.column,renderHeaderCell:()=>(0,d.jsx)(p.Body1Strong,{children:e.header}),renderCell:t=>(0,d.jsx)(p.TableCellLayout,{media:e.media?e.media(t):void 0,className:e?.className,style:e?.style,children:e.onRender?e.onRender(t):String(t[e?.column]??``)}),compare:e.order})),E=(e,n)=>{let r=new Set;n.selectedItems.forEach(e=>{let t=Number(e);isNaN(t)||r.add(t)}),S(r),o&&o(Array.from(r).map(e=>t[e]))},D=(e,t)=>{s&&s(t)},O=u.useCallback((e,t)=>{e.stopPropagation(),a===`row`&&o&&o([t])},[a,o]),k=u.useMemo(()=>a===`row`?w.rowSelection:``,[a,w.rowSelection]),A=u.useCallback(()=>(0,d.jsx)(p.DataGridBody,{style:v??{},className:_??``,children:({item:e,rowId:t})=>(0,d.jsx)(p.DataGridRow,{className:k,onClick:t=>O(t,e),children:({renderCell:t})=>(0,d.jsx)(p.DataGridCell,{children:t(e)})},t)}),[O,k,v,_]),j=u.useMemo(()=>t.length&&!h,[t,h]),M=u.useCallback(()=>h?(0,d.jsx)(d.Fragment,{children:g??(0,d.jsx)($a,{direction:`vertical`,gap:`s`,justifyContent:`center`,alignItems:`center`,style:{height:`100%`,minHeight:200,width:`100%`},children:(0,d.jsx)(p.Spinner,{})})}):j?(0,d.jsx)(A,{}):!h&&!t.length?(0,d.jsx)(`div`,{children:m}):(0,d.jsx)(d.Fragment,{}),[j,h,t,m]);return(0,d.jsx)(`div`,{ref:C,children:(0,d.jsxs)(p.DataGrid,{as:`div`,items:t,onSelectionChange:E,sortable:i,columns:T,selectionMode:a===`none`||a===`row`?void 0:a===`multiple`?`multiselect`:a===`single`?`single`:void 0,selectedItems:x,defaultSortState:c,onSortChange:D,columnSizingOptions:l,resizableColumns:f,resizableColumnsOptions:{autoFitColumns:!1},children:[(0,d.jsx)(p.DataGridHeader,{children:(0,d.jsx)(p.DataGridRow,{children:({renderHeaderCell:e})=>(0,d.jsx)(p.DataGridHeaderCell,{children:e()})})}),(0,d.jsx)(M,{})]})})},no=_.css`
129
129
  &::-webkit-scrollbar {
130
130
  width: 5px;
131
131
  height: 5px;
@@ -141,7 +141,7 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
141
141
  &::-webkit-scrollbar-thumb:hover {
142
142
  background: ${p.tokens.colorBrandBackgroundHover};
143
143
  }
144
- `;function ro(e,t){let{columns:n,items:r,enableSorting:i=!1,enableResizing:a=!1,selectionMode:o=`none`,onSelectionChange:s,defaultSelectedItems:c=[],defaultSortState:l,onSortChange:f,columnSizingOptions:m,resizableColumnsOptions:h,noItemsMessage:g,isLoadingData:_,isLoadingDataMessage:v,dataGridBodyClassName:y,dataGridBodyStyles:b,refreshData:x,enableInfiniteScroll:S,onLoadMore:w,infiniteScrollPageSize:T,hasNextPage:E,isLoadingMore:D,autoShowLastPage:O=!0,virtualizedHeight:k=600,virtualizedItemSize:A=44,startIndex:j,onRowClick:M}=e,N=u.useMemo(()=>n.map(e=>(0,p.createTableColumn)({columnId:e.column,renderHeaderCell:()=>(0,d.jsx)(p.Body1Strong,{children:e.header}),renderCell:t=>(0,d.jsx)(p.TableCellLayout,{media:e.media?e.media(t):void 0,className:e?.className,style:e?.style,children:e.onRender?e.onRender(t):String(t[e.column]??``)}),compare:e.order})),[n]),P=u.useCallback(e=>r.findIndex(t=>t===e),[r]),[F,ee]=u.useState(new Set(c.map(e=>P(e)))),[te,I]=u.useState(0);u.useEffect(()=>{c.length&&ee(new Set(c.map(e=>P(e))))},[c,r,P]),u.useEffect(()=>{x&&ee(new Set)},[x]);let L=(e,t)=>{let n=new Set;t.selectedItems.forEach(e=>{let t=Number(e);isNaN(t)||n.add(t)}),ee(n),s&&s(Array.from(n).map(e=>r[e]))},ne=(e,t)=>{f&&f(t)},[re,R]=u.useState(null),ie=u.useMemo(()=>new Map(r.map((e,t)=>[e,t])),[r]);u.useEffect(()=>{o===`row`&&re!=null&&re>=r.length&&R(null)},[r,re,o]),u.useEffect(()=>{x&&o===`row`&&R(null)},[x,o]);let ae=u.useRef(null),oe=u.useRef(r.length),se=u.useRef(!1),ce=u.useRef(!1),le=u.useRef(!1);u.useImperativeHandle(t,()=>({scrollToIndex:(e,t=`auto`)=>{let n=ae.current;n&&`scrollToItem`in n&&n.scrollToItem(Math.max(0,e),t)},resetGrid:()=>{I(e=>e+1),oe.current=0,se.current=!1,ce.current=!1,le.current=!1,ue.current=-1,ee(new Set),R(null)},getSelectedRow:()=>re!==null&&re<r.length?{item:r[re],index:re}:null,setSelectedRow:e=>{let t=r.findIndex(t=>t===e);t!==-1&&(R(t),s?.([e]))}})),u.useEffect(()=>{if(!se.current&&typeof j==`number`&&ae.current){let e=ae.current;`scrollToItem`in e&&e.scrollToItem(Math.min(j,Math.max(r.length-1,0)),`start`),se.current=!0}},[j,r.length]),u.useEffect(()=>{let e=oe.current,t=r.length,n=t>e;if(oe.current=t,!O||!n||e===0)return;let i=ae.current;i&&`scrollToItem`in i&&i.scrollToItem(Math.max(t-1,0),`end`)},[r.length,O]);let ue=u.useRef(-1),de=u.useCallback(({visibleStopIndex:e})=>{if(!S||!w||D||le.current)return;if(!ce.current){ce.current=!0;return}let t=T??20;if(r.length<t)return;let n=Math.max(5,Math.ceil(t/5));e>=r.length-n&&E&&ue.current!==r.length&&(ue.current=r.length,le.current=!0,w())},[S,w,E,D,r.length,T]);return u.useEffect(()=>{le.current&&r.length>ue.current&&(le.current=!1)},[r.length]),(0,d.jsxs)(`div`,{style:u.useMemo(()=>({overflowX:`auto`,overflowY:`hidden`,position:`relative`}),[]),className:no,children:[_&&(0,d.jsx)(W,{alignItems:`center`,justifyContent:`center`,height:`${k}px`,children:u.isValidElement(v)?v:(0,d.jsxs)(p.Spinner,{size:`extra-tiny`,children:[` `,v??`Loading data...`,` `]})}),!_&&r.length?(0,d.jsxs)(C.DataGrid,{items:r,columns:N,sortable:i,onSortChange:i?ne:void 0,selectionMode:o===`none`||o===`row`?void 0:o===`multiple`?`multiselect`:o===`single`?`single`:void 0,selectedItems:F,onSelectionChange:L,defaultSortState:l,resizableColumns:a,columnSizingOptions:m,resizableColumnsOptions:h,focusMode:`cell`,className:y,style:b,children:[(0,d.jsx)(C.DataGridHeader,{children:(0,d.jsx)(C.DataGridRow,{children:({renderHeaderCell:e})=>(0,d.jsx)(C.DataGridHeaderCell,{children:e()})})}),(0,d.jsx)(C.DataGridBody,{itemSize:A,height:k,width:`100%`,listProps:{onItemsRendered:de},children:(e,t)=>(()=>{let n=e.item,i=ie.get(n)??r.indexOf(n),a=o===`row`,c=a&&re===i,l=e=>{R(i),s?.([n]),M?.(n,i)};return(0,d.jsx)(C.DataGridRow,{style:{...t,cursor:a?`pointer`:void 0,background:c?p.tokens.colorSubtleBackgroundSelected:void 0},onClick:l,"aria-selected":c||void 0,children:({renderCell:e})=>(0,d.jsx)(C.DataGridCell,{children:e(n)})})})()})]},te):!_&&!r.length?(0,d.jsx)(`div`,{children:g}):null]})}var io=u.forwardRef(ro);io.displayName=`DataGridV2`;var ao=200,oo=(0,p.makeStyles)({dialog:{overflow:`visible`},dialogBody:{overflow:`visible`}}),so=e=>{let{isOpen:t,dialogTitle:n,dialogActions:r,children:i,maxWidth:a,className:o,minHeight:s,minWidth:c,maxHeight:l}=e,u=oo();return t?(0,d.jsx)(p.Dialog,{open:t,modalType:`modal`,children:(0,d.jsxs)(p.DialogSurface,{className:(0,p.mergeClasses)(u.dialog,o),style:{maxWidth:a??600,minWidth:c??ao,...s?{minHeight:s}:{},...l?{maxHeight:l}:{}},children:[(0,d.jsx)(p.DialogTitle,{children:n}),(0,d.jsx)(p.DialogBody,{className:u.dialogBody,children:(0,d.jsx)(p.DialogContent,{children:i})}),(0,d.jsx)(p.DialogActions,{fluid:!0,position:`end`,children:r})]})}):(0,d.jsx)(d.Fragment,{})},co=e=>{let{isOpen:t,onOpenChange:n,title:r,headerActions:i,footerActions:a,size:o,separator:s,type:c,style:l,children:f,position:m,classNameHeader:h=``,classNameBody:g=``,classNameFooter:_=``}=e,v=u.useCallback((e,t)=>{n&&n(t.open)},[n]),y=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(p.DrawerHeader,{className:h,children:(0,d.jsx)(p.DrawerHeaderTitle,{style:{width:`100%`},action:i,children:r})}),(0,d.jsx)(p.DrawerBody,{className:g,children:f}),(0,d.jsx)(p.DrawerFooter,{className:_,children:a})]});return c===`inline`?(0,d.jsx)(p.InlineDrawer,{separator:s,open:t,size:o,style:l,position:m,children:y}):(0,d.jsx)(p.OverlayDrawer,{open:t,onOpenChange:v,size:o,style:l,position:m,children:y})},lo=e=>{let{onDismiss:t,title:n,description:r,icon:i,showCloseButton:a=!0}=e;return(0,d.jsxs)(W,{direction:`vertical`,width:`100%`,children:[(0,d.jsx)(W,{direction:`horizontal`,padding:`s`,gap:`l`,justifyContent:`space-between`,children:(0,d.jsxs)(W,{direction:`horizontal`,alignItems:`center`,width:`100%`,gap:`m`,children:[i?u.isValidElement(i)?i:(0,d.jsx)(x.Icon,{icon:i}):null,(0,d.jsxs)(W,{direction:`vertical`,justifyContent:`flex-start`,alignItems:`flex-start`,width:`100%`,children:[u.isValidElement(n)?n:(0,d.jsxs)(W,{direction:`horizontal`,justifyContent:`space-between`,gap:`l`,width:`100%`,children:[(0,d.jsx)(Rn,{fontSize:`l`,block:!0,truncate:!0,numberOfLines:1,children:n}),a&&(0,d.jsx)(p.Button,{appearance:`transparent`,onClick:e=>{e.stopPropagation(),e.preventDefault(),t(!1)},icon:(0,d.jsx)(y.Dismiss24Regular,{style:{width:18,height:18}}),color:p.tokens.colorBrandBackground})]}),u.isValidElement(r)?r:(0,d.jsx)(p.Caption1,{style:{display:`-webkit-box`,WebkitLineClamp:4,WebkitBoxOrient:`vertical`,textAlign:`start`,textOverflow:`ellipsis`,wordBreak:`break-word`},children:r})]})]})}),(0,d.jsx)(p.Divider,{style:{marginTop:6}})]})},uo=()=>({closeButton:(0,_.css)({marginLeft:`auto`,position:`absolute`,top:`10px`,right:`10px`,zIndex:99999}),divider:(0,_.css)({width:`100%`,height:`1px`,backgroundColor:p.tokens.colorNeutralStroke1,marginTop:`6px`}),renderHeaderContent:(0,_.css)({display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,alignItems:`stretch`,width:`100%`}),renderHeaderHeader:(0,_.css)({display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,padding:`10px`,gap:`20px`}),renderHeaderFooter:(0,_.css)({display:`flex`,flexDirection:`row`,justifyContent:`flex-start`,padding:`20px`,gap:`20px`}),renderHeaderBody:(0,_.css)({display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,padding:`20px`,gap:`20px`}),renderHeaderTitleContainer:(0,_.css)({display:`flex`,flexDirection:`row`,justifyContent:`flex-start`,alignContent:`center`,alignItems:`center`,width:`100%`}),renderHeaderTitle:(0,_.css)({display:`-webkit-box`,WebkitLineClamp:`1`,WebkitBoxOrient:`vertical`,textAlign:`start`,textOverflow:`ellipsis`,paddingTop:0,wordBreak:`break-word`}),renderHeaderDescription:(0,_.css)({display:`-webkit-box`,WebkitLineClamp:`4`,WebkitBoxOrient:`vertical`,textAlign:`start`,textOverflow:`ellipsis`,wordBreak:`break-word`}),dialogTitleAndDescriptionContainer:(0,_.css)({display:`flex`,flexDirection:`column`,justifyContent:`start`,alignItems:`start`,paddingLeft:`10px`,paddingRight:`20px`,width:`100%`})}),fo=({isOpen:e,options:t,onClose:n})=>{let{log:r}=L(),[i,a]=(0,u.useState)(void 0);r(i||``);let o=(0,u.useRef)(null),[s,c]=(0,u.useState)(400),{siteUrl:l,listId:f,itemId:p,name:m}=t,h=(0,u.useCallback)(()=>{n()},[n]),g=(0,u.useCallback)(e=>{if(e.origin!==window.location.origin)return;r(`Message from iframe:`,e.data);let{name:t,height:n}=JSON.parse(e.data);switch(t){case`share_dismiss`:h();break;case`share_resize`:c(n);break;case`share_scriptsLoaded`:break;case`share_uiReady`:break;case`share_ready`:break;default:break}},[h]);return(0,u.useEffect)(()=>(window.addEventListener(`message`,g),()=>{window.removeEventListener(`message`,g)}),[g]),(0,u.useEffect)(()=>{if(e){let e=new Date().getTime(),t=encodeURIComponent(window.location.origin),n=`${l}/_layouts/15/sharedialog.aspx?listId=${f}&listItemId=${p}&clientId=sharePoint&policyTip=0&folderColor=&clickTime=${e}&ma=0&fullScreenMode=false&itemName= ${encodeURIComponent(m)}&channelId=&origin=${t}`;r(n),a(n)}else a(void 0)},[e,l,f,p]),(0,d.jsx)(so,{isOpen:e,onDismiss:h,maxHeight:`fit-content`,children:(0,d.jsx)(`iframe`,{ref:o,src:i||``,style:{width:`100%`,height:s,border:`none`},onLoad:()=>r(`Iframe loaded`)})})},po=()=>(0,u.useMemo)(()=>({container:(0,_.css)({display:`flex`,alignItems:`center`,justifyContent:`center`,minHeight:`200px`,textAlign:`center`,backgroundColor:p.tokens.colorNeutralBackground1,border:`1px solid ${p.tokens.colorNeutralStroke2}`,borderRadius:p.tokens.borderRadiusLarge,padding:`${p.tokens.spacingVerticalXXL} ${p.tokens.spacingHorizontalXXL}`,boxShadow:p.tokens.shadow4,maxWidth:`500px`,margin:`20px auto`}),icon:(0,_.css)({fontSize:`48px`,color:p.tokens.colorPaletteRedForeground1,animation:`pulse 2s infinite`,"@keyframes pulse":{"0%":{transform:`scale(1)`},"50%":{transform:`scale(1.05)`},"100%":{transform:`scale(1)`}}}),title:(0,_.css)({color:p.tokens.colorNeutralForeground1,fontWeight:p.tokens.fontWeightSemibold,textAlign:`center`}),message:(0,_.css)({color:p.tokens.colorNeutralForeground2,textAlign:`center`,lineHeight:p.tokens.lineHeightBase400})}),[]),mo=({title:e,message:t})=>{let n=po();return(0,d.jsx)(p.Card,{className:n.container,children:(0,d.jsxs)(W,{gap:`l`,alignItems:`center`,children:[(0,d.jsx)(y.ErrorCircleRegular,{className:n.icon}),(0,d.jsxs)(W,{gap:`s`,alignItems:`center`,children:[(0,d.jsx)(p.Title3,{className:n.title,children:e}),(0,d.jsx)(p.Body1,{className:n.message,children:t})]})]})})},ho=(0,p.makeStyles)({root:{display:`flex`,flexDirection:`row`,justifyContent:`center`,alignItems:`center`,...p.shorthands.padding(`10px`),gap:`10px`},iconClass:{width:`32px`,height:`32px`},errorContainer:{display:`flex`,flexDirection:`row`,justifyContent:`start`,alignItems:`center`,gap:`10px`,...p.shorthands.padding(`10px`),backgroundColor:p.tokens.colorStatusDangerBackground1},errorIcon:{height:`100%`}}),go=e=>{let{messageType:t,children:n,message:r}=e,i=ho(),[a,o]=u.useState(null),s=u.useCallback(()=>(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(`div`,{className:i.errorContainer,children:[(0,d.jsx)(`div`,{className:i.errorIcon,children:(0,d.jsx)(x.Icon,{icon:`fluent:error-circle-12-regular`,width:`32`,height:`32`,color:p.tokens.colorStatusDangerForeground1})}),(0,d.jsx)(p.Body1,{children:r})]})}),[r,i.errorContainer,i.errorIcon]);return u.useEffect(()=>{switch(t){case F.SUCCESS:o((0,d.jsx)(y.CheckmarkCircle32Regular,{primaryFill:p.tokens.colorStatusSuccessForeground1}));break;case F.INFO:o((0,d.jsx)(y.Info32Regular,{primaryFill:p.tokens.colorStatusWarningForeground1}));break;default:break}},[t]),t===F.ERROR?(0,d.jsx)(s,{}):(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(`div`,{className:i.root,children:[a,(0,d.jsx)(p.Body1Strong,{children:r}),n]})})},_o=()=>({container:(0,_.css)({display:`flex`,flexWrap:`nowrap`,minWidth:0,overflow:`hidden`,gap:10,marginBottom:20,width:`100%`}),text1LineStyle:(0,_.css)({display:`-webkit-box`,WebkitLineClamp:1,WebkitBoxOrient:`vertical`,overflow:`hidden`,textAlign:`start`,textOverflow:`ellipsis`,wordBreak:`break-word`}),button:(0,_.css)({cursor:`pointer`,minWidth:107})}),vo=({items:e,selectedItemId:t,onSelectedItem:n,renderControl:r,theme:i})=>{let a=_o(),o=u.useCallback(e=>{n&&n(e)},[n]);return(0,d.jsx)(p.Overflow,{children:(0,d.jsxs)(p.FluentProvider,{theme:i,children:[` `,(0,d.jsxs)(`div`,{className:(0,p.mergeClasses)(a.container),children:[e.map(e=>{let n=e.id===t;return(0,d.jsx)(p.OverflowItem,{id:e.id,priority:n?2:1,children:r(e,n,()=>o(e.id))},e.id)}),(0,d.jsx)(bo,{items:e,onSelectedItem:o,theme:i}),` `]})]})})},yo=({item:e,onSelectedItem:t})=>(0,p.useIsOverflowItemVisible)(e.id)?null:(0,d.jsx)(p.MenuItem,{icon:e.icon,onClick:()=>t(e.id),children:(0,d.jsx)(`div`,{children:e.name})},e.id),bo=({items:e,onSelectedItem:t,theme:n})=>{let{ref:r,overflowCount:i,isOverflowing:a}=(0,p.useOverflowMenu)(),o=u.useMemo(()=>(0,y.bundleIcon)(y.MoreHorizontalFilled,y.MoreHorizontalRegular),[]);return a?(0,d.jsx)(p.IdPrefixProvider,{value:`menu-over-`,children:(0,d.jsx)(p.FluentProvider,{theme:n,children:(0,d.jsxs)(p.Menu,{children:[(0,d.jsx)(p.MenuTrigger,{disableButtonEnhancement:!0,children:(0,d.jsx)(p.MenuButton,{appearance:`transparent`,ref:r,icon:(0,d.jsx)(o,{}),"aria-label":`${i} more options`,role:`button`})}),(0,d.jsx)(p.MenuPopover,{children:(0,d.jsx)(p.MenuList,{children:e.map(e=>(0,d.jsx)(yo,{item:e,onSelectedItem:t},e.id))})})]})})}):null},xo=({id:e,children:t})=>(0,p.useIsOverflowItemVisible)(e)?null:(0,d.jsx)(p.MenuItem,{children:t}),So=({items:e,renderItem:t,keyExtractor:n})=>{let{ref:r,overflowCount:i,isOverflowing:a}=(0,p.useOverflowMenu)();return a?(0,d.jsxs)(p.Menu,{children:[(0,d.jsx)(p.MenuTrigger,{disableButtonEnhancement:!0,children:(0,d.jsxs)(p.MenuButton,{ref:r,children:[`+`,i,` items`]})}),(0,d.jsx)(p.MenuPopover,{children:(0,d.jsx)(p.MenuList,{children:e.map(e=>(0,d.jsx)(xo,{id:n(e),children:t(e)},n(e)))})})]}):null},Co=u.default.memo(({items:e,open:t=!0,defaultOpen:n,drawerType:r=`inline`,size:i=`small`,appItem:a,header:o,footer:s,selectedKey:c,defaultSelectedKey:l,selectedCategoryKey:f,onNavigate:m,multiple:h=!0,density:g=`medium`,defaultOpenCategories:_,openCategories:v,onCategoryToggle:y,className:b,style:x})=>{let S=u.default.useMemo(()=>{let t=new Map,n=e=>{for(let r of e)t.set(r.key,r),r.children&&n(r.children)};return n(e),t},[e]),C=(0,u.useCallback)(e=>t=>{e.href&&t.preventDefault(),m?.(e.key,e.href)},[m]),w=(0,u.useCallback)((e,t)=>{if(!m)return;let n=S.get(t.value);n&&m(t.value,n.href)},[m,S]),T=(0,u.useCallback)((e,t)=>{y?.(t.value)},[y]),E=e=>(0,d.jsx)(p.NavItem,{value:e.key,href:e.href,icon:e.icon,onClick:C(e),children:e.name},e.key),D=e=>(0,d.jsxs)(p.NavCategory,{value:e.key,children:[(0,d.jsx)(p.NavCategoryItem,{icon:e.icon,children:e.name}),(0,d.jsx)(p.NavSubItemGroup,{children:e.children.map(e=>e.icon?(0,d.jsx)(p.NavItem,{value:e.key,href:e.href,icon:e.icon,onClick:C(e),children:e.name},e.key):(0,d.jsx)(p.NavSubItem,{value:e.key,href:e.href,onClick:C(e),children:e.name},e.key))})]},e.key),O=e=>(0,d.jsxs)(u.default.Fragment,{children:[(0,d.jsx)(p.NavSectionHeader,{children:e.name}),e.children.map(e=>e.children&&e.children.length>0?D(e):E(e))]},e.key);return(0,d.jsxs)(p.NavDrawer,{open:t,defaultOpen:n,type:r,size:i,className:b,style:u.default.useMemo(()=>({flexShrink:0,...x}),[x]),selectedValue:c,defaultSelectedValue:l,selectedCategoryValue:f,multiple:h,density:g,defaultOpenCategories:_,openCategories:v,onNavItemSelect:w,onNavCategoryItemToggle:T,children:[o!==void 0&&(0,d.jsx)(p.NavDrawerHeader,{children:o}),(0,d.jsxs)(p.NavDrawerBody,{children:[a&&(a.href?(0,d.jsx)(p.AppItem,{icon:a.icon,href:a.href,children:a.name}):(0,d.jsx)(p.AppItemStatic,{icon:a.icon,children:a.name})),e.map(e=>e.isSectionHeader&&e.children&&e.children.length>0?O(e):e.children&&e.children.length>0?D(e):E(e))]}),s!==void 0&&(0,d.jsx)(p.NavDrawerFooter,{children:s})]})});Co.displayName=`Navigation`;var wo=()=>({root:(0,_.css)({width:`100%`}),sectionHeader:(0,_.css)({color:p.tokens.colorNeutralForeground3,fontSize:p.tokens.fontSizeBase200,fontWeight:p.tokens.fontWeightSemibold,padding:`${p.tokens.spacingVerticalS} ${p.tokens.spacingHorizontalM}`,textTransform:`uppercase`,letterSpacing:`0.5px`})}),To=e=>({videoPlayerContainer:(0,_.css)({position:`relative`,width:e.width,height:e.height}),reactPlayer:(0,_.css)({position:`absolute`,top:0,left:0,width:`100%`,height:`100%`}),playButton:(0,_.css)({position:`absolute`,left:`50%`,top:`50%`,zIndex:1,userSelect:`none`})}),Eo=e=>{let{url:t,controls:n=!0,width:r=`100%`,height:i=`100%`,loop:a=!1,muted:o=!1}=e,[s,c]=(0,u.useState)(!1),l=To(e);return(0,d.jsx)(`div`,{className:l.videoPlayerContainer,children:(0,d.jsx)(w.default,{url:t,controls:n,width:r,height:i,playing:s,loop:a,muted:o,onPause:()=>c(!1),onPlay:()=>c(!0),className:l.reactPlayer})})},Do=u.createContext(null);function Oo(e,t){let n=Array.isArray(e)?e[0]:e?e.x:0,r=Array.isArray(e)?e[1]:e?e.y:0,i=Array.isArray(t)?t[0]:t?t.x:0,a=Array.isArray(t)?t[1]:t?t.y:0;return n===i&&r===a}function ko(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!ko(e[n],t[n]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e==`object`&&typeof t==`object`){let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!t.hasOwnProperty(r)||!ko(e[r],t[r]))return!1;return!0}return!1}function Ao(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function jo(e,t){let n=t.viewState||t,r={};if(`longitude`in n&&`latitude`in n&&(n.longitude!==e.center.lng||n.latitude!==e.center.lat)){let t=e.center.constructor;r.center=new t(n.longitude,n.latitude)}return`zoom`in n&&n.zoom!==e.zoom&&(r.zoom=n.zoom),`bearing`in n&&n.bearing!==e.bearing&&(r.bearing=n.bearing),`pitch`in n&&n.pitch!==e.pitch&&(r.pitch=n.pitch),n.padding&&e.padding&&!ko(n.padding,e.padding)&&(r.padding=n.padding),r}var Mo=[`type`,`source`,`source-layer`,`minzoom`,`maxzoom`,`filter`,`layout`];function No(e){if(!e)return null;if(typeof e==`string`||(`toJS`in e&&(e=e.toJS()),!e.layers))return e;let t={};for(let n of e.layers)t[n.id]=n;let n=e.layers.map(e=>{let n=null;`interactive`in e&&(n=Object.assign({},e),delete n.interactive);let r=t[e.ref];if(r){n||=Object.assign({},e),delete n.ref;for(let e of Mo)e in r&&(n[e]=r[e])}return n||e});return{...e,layers:n}}var Po={version:8,sources:{},layers:[]},Fo={mousedown:`onMouseDown`,mouseup:`onMouseUp`,mouseover:`onMouseOver`,mousemove:`onMouseMove`,click:`onClick`,dblclick:`onDblClick`,mouseenter:`onMouseEnter`,mouseleave:`onMouseLeave`,mouseout:`onMouseOut`,contextmenu:`onContextMenu`,touchstart:`onTouchStart`,touchend:`onTouchEnd`,touchmove:`onTouchMove`,touchcancel:`onTouchCancel`},Io={movestart:`onMoveStart`,move:`onMove`,moveend:`onMoveEnd`,dragstart:`onDragStart`,drag:`onDrag`,dragend:`onDragEnd`,zoomstart:`onZoomStart`,zoom:`onZoom`,zoomend:`onZoomEnd`,rotatestart:`onRotateStart`,rotate:`onRotate`,rotateend:`onRotateEnd`,pitchstart:`onPitchStart`,pitch:`onPitch`,pitchend:`onPitchEnd`},Lo={wheel:`onWheel`,boxzoomstart:`onBoxZoomStart`,boxzoomend:`onBoxZoomEnd`,boxzoomcancel:`onBoxZoomCancel`,resize:`onResize`,load:`onLoad`,render:`onRender`,idle:`onIdle`,remove:`onRemove`,data:`onData`,styledata:`onStyleData`,sourcedata:`onSourceData`,error:`onError`},Ro=[`minZoom`,`maxZoom`,`minPitch`,`maxPitch`,`maxBounds`,`projection`,`renderWorldCopies`],zo=[`scrollZoom`,`boxZoom`,`dragRotate`,`dragPan`,`keyboard`,`doubleClickZoom`,`touchZoomRotate`,`touchPitch`],Bo=class e{constructor(e,t,n){this._map=null,this._internalUpdate=!1,this._hoveredFeatures=null,this._propsedCameraUpdate=null,this._styleComponents={},this._onEvent=e=>{let t=this.props[Lo[e.type]];t?t(e):e.type===`error`&&console.error(e.error)},this._onCameraEvent=e=>{if(this._internalUpdate)return;e.viewState=this._propsedCameraUpdate||Ao(this._map.transform);let t=this.props[Io[e.type]];t&&t(e)},this._onCameraUpdate=e=>this._internalUpdate?e:(this._propsedCameraUpdate=Ao(e),jo(e,this.props)),this._onPointerEvent=e=>{(e.type===`mousemove`||e.type===`mouseout`)&&this._updateHover(e);let t=this.props[Fo[e.type]];t&&(this.props.interactiveLayerIds&&e.type!==`mouseover`&&e.type!==`mouseout`&&(e.features=this._hoveredFeatures||this._queryRenderedFeatures(e.point)),t(e),delete e.features)},this._MapClass=e,this.props=t,this._initialize(n)}get map(){return this._map}setProps(e){let t=this.props;this.props=e;let n=this._updateSettings(e,t),r=this._updateSize(e),i=this._updateViewState(e);this._updateStyle(e,t),this._updateStyleComponents(e),this._updateHandlers(e,t),(n||r||i&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){let r=e.savedMaps.pop();if(!r)return null;let i=r.map,a=i.getContainer();for(n.className=a.className;a.childNodes.length>0;)n.appendChild(a.childNodes[0]);i._container=n;let o=i._resizeObserver;o&&(o.disconnect(),o.observe(n)),r.setProps({...t,styleDiffing:!1}),i.resize();let{initialViewState:s}=t;return s&&(s.bounds?i.fitBounds(s.bounds,{...s.fitBoundsOptions,duration:0}):r._updateViewState(s)),i.isStyleLoaded()?i.fire(`load`):i.once(`style.load`,()=>i.fire(`load`)),i._update(),r}_initialize(e){let{props:t}=this,{mapStyle:n=Po}=t,r={...t,...t.initialViewState,container:e,style:No(n)},i=r.initialViewState||r.viewState||r;if(Object.assign(r,{center:[i.longitude||0,i.latitude||0],zoom:i.zoom||0,pitch:i.pitch||0,bearing:i.bearing||0}),t.gl){let e=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=e,t.gl)}let a=new this._MapClass(r);i.padding&&a.setPadding(i.padding),t.cursor&&(a.getCanvas().style.cursor=t.cursor),a.transformCameraUpdate=this._onCameraUpdate,a.on(`style.load`,()=>{this._styleComponents={light:a.getLight(),sky:a.getSky(),projection:a.getProjection?.(),terrain:a.getTerrain()},this._updateStyleComponents(this.props)}),a.on(`sourcedata`,()=>{this._updateStyleComponents(this.props)});for(let e in Fo)a.on(e,this._onPointerEvent);for(let e in Io)a.on(e,this._onCameraEvent);for(let e in Lo)a.on(e,this._onEvent);this._map=a}recycle(){this.map.getContainer().querySelector(`[mapboxgl-children]`)?.remove(),e.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){let e=this._map;e.style&&(e._frame&&=(e._frame.cancel(),null),e._render())}_updateSize(e){let{viewState:t}=e;if(t){let e=this._map;if(t.width!==e.transform.width||t.height!==e.transform.height)return e.resize(),!0}return!1}_updateViewState(e){let t=this._map,n=t.transform;if(!t.isMoving()){let r=jo(n,e);if(Object.keys(r).length>0)return this._internalUpdate=!0,t.jumpTo(r),this._internalUpdate=!1,!0}return!1}_updateSettings(e,t){let n=this._map,r=!1;for(let i of Ro)i in e&&!ko(e[i],t[i])&&(r=!0,n[`set${i[0].toUpperCase()}${i.slice(1)}`]?.call(n,e[i]));return r}_updateStyle(e,t){if(e.cursor!==t.cursor&&(this._map.getCanvas().style.cursor=e.cursor||``),e.mapStyle!==t.mapStyle){let{mapStyle:t=Po,styleDiffing:n=!0}=e,r={diff:n};`localIdeographFontFamily`in e&&(r.localIdeographFontFamily=e.localIdeographFontFamily),this._map.setStyle(No(t),r)}}_updateStyleComponents({light:e,projection:t,sky:n,terrain:r}){let i=this._map,a=this._styleComponents;i.style._loaded&&(e&&!ko(e,a.light)&&(a.light=e,i.setLight(e)),t&&!ko(t,a.projection)&&t!==a.projection?.type&&(a.projection=typeof t==`string`?{type:t}:t,i.setProjection?.(a.projection)),n&&!ko(n,a.sky)&&(a.sky=n,i.setSky(n)),r!==void 0&&!ko(r,a.terrain)&&(!r||i.getSource(r.source))&&(a.terrain=r,i.setTerrain(r)))}_updateHandlers(e,t){let n=this._map;for(let r of zo){let i=e[r]??!0;ko(i,t[r]??!0)||(i?n[r].enable(i):n[r].disable())}}_queryRenderedFeatures(e){let t=this._map,{interactiveLayerIds:n=[]}=this.props;try{return t.queryRenderedFeatures(e,{layers:n.filter(t.getLayer.bind(t))})}catch{return[]}}_updateHover(e){let{props:t}=this;if(t.interactiveLayerIds&&(t.onMouseMove||t.onMouseEnter||t.onMouseLeave)){let t=e.type,n=this._hoveredFeatures?.length>0,r=this._queryRenderedFeatures(e.point),i=r.length>0;!i&&n&&(e.type=`mouseleave`,this._onPointerEvent(e)),this._hoveredFeatures=r,i&&!n&&(e.type=`mouseenter`,this._onPointerEvent(e)),e.type=t}else this._hoveredFeatures=null}};Bo.savedMaps=[];var Vo=[`setMaxBounds`,`setMinZoom`,`setMaxZoom`,`setMinPitch`,`setMaxPitch`,`setRenderWorldCopies`,`setProjection`,`setStyle`,`addSource`,`removeSource`,`addLayer`,`removeLayer`,`setLayerZoomRange`,`setFilter`,`setPaintProperty`,`setLayoutProperty`,`setLight`,`setTerrain`,`setFog`,`remove`];function Ho(e){if(!e)return null;let t=e.map,n={getMap:()=>t};for(let e of Uo(t))!(e in n)&&!Vo.includes(e)&&(n[e]=t[e].bind(t));return n}function Uo(e){let t=new Set,n=e;for(;n;){for(let r of Object.getOwnPropertyNames(n))r[0]!==`_`&&typeof e[r]==`function`&&r!==`fire`&&r!==`setEventedParent`&&t.add(r);n=Object.getPrototypeOf(n)}return Array.from(t)}var Wo=typeof document<`u`?u.useLayoutEffect:u.useEffect;function Go(e,t){let{RTLTextPlugin:n,maxParallelImageRequests:r,workerCount:i,workerUrl:a}=t;if(n&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()===`unavailable`){let{pluginUrl:t,lazy:r=!0}=typeof n==`string`?{pluginUrl:n}:n;e.setRTLTextPlugin(t,e=>{e&&console.error(e)},r)}r!==void 0&&e.setMaxParallelImageRequests(r),i!==void 0&&e.setWorkerCount(i),a!==void 0&&e.setWorkerUrl(a)}var Ko=u.createContext(null);function qo(t,n){let r=(0,u.useContext)(Do),[i,a]=(0,u.useState)(null),o=(0,u.useRef)(),{current:s}=(0,u.useRef)({mapLib:null,map:null});(0,u.useEffect)(()=>{let n=t.mapLib,i=!0,c;return Promise.resolve(n||Promise.resolve().then(()=>e.o(require(`./maplibre-gl-tm_pVdmb.cjs`).default,1))).then(e=>{if(!i)return;if(!e)throw Error(`Invalid mapLib`);let n=`Map`in e?e:e.default;if(!n.Map)throw Error(`Invalid mapLib`);Go(n,t),t.reuseMaps&&(c=Bo.reuse(t,o.current)),c||=new Bo(n.Map,t,o.current),s.map=Ho(c),s.mapLib=n,a(c),r?.onMapMount(s.map,t.id)}).catch(e=>{let{onError:n}=t;n?n({type:`error`,target:null,originalEvent:null,error:e}):console.error(e)}),()=>{i=!1,c&&(r?.onMapUnmount(t.id),t.reuseMaps?c.recycle():c.destroy())}},[]),Wo(()=>{i&&i.setProps(t)}),(0,u.useImperativeHandle)(n,()=>s.map,[i]);let c=(0,u.useMemo)(()=>({position:`relative`,width:`100%`,height:`100%`,...t.style}),[t.style]),l={height:`100%`};return u.createElement(`div`,{id:t.id,ref:o,style:c},i&&u.createElement(Ko.Provider,{value:s},u.createElement(`div`,{"mapboxgl-children":``,style:l},t.children)))}var Jo=u.forwardRef(qo),Yo=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function Xo(e,t){if(!e||!t)return;let n=e.style;for(let e in t){let r=t[e];Number.isFinite(r)&&!Yo.test(e)?n[e]=`${r}px`:n[e]=r}}function Zo(e,t){if(e===t)return null;let n=Qo(e),r=Qo(t),i=[];for(let e of r)n.has(e)||i.push(e);for(let e of n)r.has(e)||i.push(e);return i.length===0?null:i}function Qo(e){return new Set(e?e.trim().split(/\s+/):[])}var $o=(0,u.memo)((0,u.forwardRef)((e,t)=>{let{map:n,mapLib:r}=(0,u.useContext)(Ko),i=(0,u.useRef)({props:e}),a=(0,u.useMemo)(()=>{let t=!1;u.Children.forEach(e.children,e=>{e&&(t=!0)});let n={...e,element:t?document.createElement(`div`):void 0},o=new r.Marker(n);return o.setLngLat([e.longitude,e.latitude]),o.getElement().addEventListener(`click`,e=>{i.current.props.onClick?.({type:`click`,target:o,originalEvent:e})}),o.on(`dragstart`,e=>{let t=e;t.lngLat=a.getLngLat(),i.current.props.onDragStart?.(t)}),o.on(`drag`,e=>{let t=e;t.lngLat=a.getLngLat(),i.current.props.onDrag?.(t)}),o.on(`dragend`,e=>{let t=e;t.lngLat=a.getLngLat(),i.current.props.onDragEnd?.(t)}),o},[]);(0,u.useEffect)(()=>(a.addTo(n.getMap()),()=>{a.remove()}),[]);let{longitude:o,latitude:s,offset:c,style:l,draggable:d=!1,popup:f=null,rotation:p=0,rotationAlignment:m=`auto`,pitchAlignment:h=`auto`}=e;(0,u.useEffect)(()=>{Xo(a.getElement(),l)},[l]),(0,u.useImperativeHandle)(t,()=>a,[]);let g=i.current.props;(a.getLngLat().lng!==o||a.getLngLat().lat!==s)&&a.setLngLat([o,s]),c&&!Oo(a.getOffset(),c)&&a.setOffset(c),a.isDraggable()!==d&&a.setDraggable(d),a.getRotation()!==p&&a.setRotation(p),a.getRotationAlignment()!==m&&a.setRotationAlignment(m),a.getPitchAlignment()!==h&&a.setPitchAlignment(h),a.getPopup()!==f&&a.setPopup(f);let _=Zo(g.className,e.className);if(_)for(let e of _)a.toggleClassName(e);return i.current.props=e,(0,b.createPortal)(e.children,a.getElement())}));(0,u.memo)((0,u.forwardRef)((e,t)=>{let{map:n,mapLib:r}=(0,u.useContext)(Ko),i=(0,u.useMemo)(()=>document.createElement(`div`),[]),a=(0,u.useRef)({props:e}),o=(0,u.useMemo)(()=>{let t={...e},n=new r.Popup(t);return n.setLngLat([e.longitude,e.latitude]),n.once(`open`,e=>{a.current.props.onOpen?.(e)}),n},[]);if((0,u.useEffect)(()=>{let e=e=>{a.current.props.onClose?.(e)};return o.on(`close`,e),o.setDOMContent(i).addTo(n.getMap()),()=>{o.off(`close`,e),o.isOpen()&&o.remove()}},[]),(0,u.useEffect)(()=>{Xo(o.getElement(),e.style)},[e.style]),(0,u.useImperativeHandle)(t,()=>o,[]),o.isOpen()){let t=a.current.props;(o.getLngLat().lng!==e.longitude||o.getLngLat().lat!==e.latitude)&&o.setLngLat([e.longitude,e.latitude]),e.offset&&!ko(t.offset,e.offset)&&o.setOffset(e.offset),(t.anchor!==e.anchor||t.maxWidth!==e.maxWidth)&&(o.options.anchor=e.anchor,o.setMaxWidth(e.maxWidth));let n=Zo(t.className,e.className);if(n)for(let e of n)o.toggleClassName(e);a.current.props=e}return(0,b.createPortal)(e.children,i)}));function es(e,t,n,r){let i=(0,u.useContext)(Ko),a=(0,u.useMemo)(()=>e(i),[]);return(0,u.useEffect)(()=>{let e=r||n||t,o=typeof t==`function`&&typeof n==`function`?t:null,s=typeof n==`function`?n:typeof t==`function`?t:null,{map:c}=i;return c.hasControl(a)||(c.addControl(a,e?.position),o&&o(i)),()=>{s&&s(i),c.hasControl(a)&&c.removeControl(a)}},[]),a}function ts(e){let t=es(({mapLib:t})=>new t.AttributionControl(e),{position:e.position});return(0,u.useEffect)(()=>{Xo(t._container,e.style)},[e.style]),null}(0,u.memo)(ts);function ns(e){let t=es(({mapLib:t})=>new t.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return(0,u.useEffect)(()=>{Xo(t._controlContainer,e.style)},[e.style]),null}(0,u.memo)(ns);function rs(e,t){let n=(0,u.useRef)({props:e}),r=es(({mapLib:t})=>{let r=new t.GeolocateControl(e),i=r._setupUI;return r._setupUI=()=>{r._container.hasChildNodes()||i()},r.on(`geolocate`,e=>{n.current.props.onGeolocate?.(e)}),r.on(`error`,e=>{n.current.props.onError?.(e)}),r.on(`outofmaxbounds`,e=>{n.current.props.onOutOfMaxBounds?.(e)}),r.on(`trackuserlocationstart`,e=>{n.current.props.onTrackUserLocationStart?.(e)}),r.on(`trackuserlocationend`,e=>{n.current.props.onTrackUserLocationEnd?.(e)}),r},{position:e.position});return n.current.props=e,(0,u.useImperativeHandle)(t,()=>r,[]),(0,u.useEffect)(()=>{Xo(r._container,e.style)},[e.style]),null}(0,u.memo)((0,u.forwardRef)(rs));function is(e){let t=es(({mapLib:t})=>new t.NavigationControl(e),{position:e.position});return(0,u.useEffect)(()=>{Xo(t._container,e.style)},[e.style]),null}(0,u.memo)(is);function as(e){let t=es(({mapLib:t})=>new t.ScaleControl(e),{position:e.position}),n=(0,u.useRef)(e),r=n.current;n.current=e;let{style:i}=e;return e.maxWidth!==void 0&&e.maxWidth!==r.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==r.unit&&t.setUnit(e.unit),(0,u.useEffect)(()=>{Xo(t._container,i)},[i]),null}(0,u.memo)(as);function os(e){let t=es(({mapLib:t})=>new t.TerrainControl(e),{position:e.position});return(0,u.useEffect)(()=>{Xo(t._container,e.style)},[e.style]),null}(0,u.memo)(os);function ss(e){let t=es(({mapLib:t})=>new t.LogoControl(e),{position:e.position});return(0,u.useEffect)(()=>{Xo(t._container,e.style)},[e.style]),null}(0,u.memo)(ss);var cs=`.maplibregl-map{-webkit-tap-highlight-color:#0000;font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;position:relative;overflow:hidden}.maplibregl-canvas{position:absolute;top:0;left:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;z-index:2;position:absolute}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px buttontext}}.maplibregl-ctrl-group button{box-sizing:border-box;cursor:pointer;background-color:#0000;border:0;outline:none;width:29px;height:29px;padding:0;display:block}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;width:100%;height:100%;display:block}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:#0000}.maplibregl-ctrl-group button+button{border-top:1px solid buttontext}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:#0000000d}}.maplibregl-ctrl button:not(:disabled):active{background-color:#0000000d}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%23333' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%2333b5e5' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:2s linear infinite maplibregl-spin}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{cursor:pointer;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;width:88px;height:23px;margin:0 0 -4px -4px;display:block;overflow:hidden}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:#0000;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{box-sizing:content-box;color:#000;background-color:#fff;border-radius:12px;min-height:20px;margin:10px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{visibility:visible;padding:2px 28px 2px 8px}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{box-sizing:border-box;cursor:pointer;background-color:#ffffff80;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;outline:none;width:24px;height:24px;display:none;position:absolute;top:0;right:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:#0000000d}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:#000000bf;text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{box-sizing:border-box;color:#333;white-space:nowrap;background-color:#ffffffbf;border:2px solid #333;border-top:#333;padding:0 5px;font-size:10px}.maplibregl-popup{pointer-events:none;will-change:transform;display:flex;position:absolute;top:0;left:0}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{z-index:1;border:10px solid #0000;width:0;height:0}.maplibregl-popup-anchor-top .maplibregl-popup-tip{border-top:none;border-bottom-color:#fff;align-self:center}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{border-top:none;border-bottom-color:#fff;border-left:none;align-self:flex-start}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{border-top:none;border-bottom-color:#fff;border-right:none;align-self:flex-end}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{border-top-color:#fff;border-bottom:none;align-self:center}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{border-top-color:#fff;border-bottom:none;border-left:none;align-self:flex-start}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{border-top-color:#fff;border-bottom:none;border-right:none;align-self:flex-end}.maplibregl-popup-anchor-left .maplibregl-popup-tip{border-left:none;border-right-color:#fff;align-self:center}.maplibregl-popup-anchor-right .maplibregl-popup-tip{border-left-color:#fff;border-right:none;align-self:center}.maplibregl-popup-close-button{cursor:pointer;background-color:#0000;border:0;border-radius:0 3px 0 0;position:absolute;top:0;right:0}.maplibregl-popup-close-button:hover{background-color:#0000000d}.maplibregl-popup-content{pointer-events:auto;background:#fff;border-radius:3px;padding:15px 10px;position:relative;box-shadow:0 1px 2px #0000001a}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{will-change:transform;transition:opacity .2s;position:absolute;top:0;left:0}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;width:15px;height:15px}.maplibregl-user-location-dot:before{content:"";animation:2s infinite maplibregl-user-location-dot-pulse;position:absolute}.maplibregl-user-location-dot:after{box-sizing:border-box;content:"";border:2px solid #fff;border-radius:50%;width:19px;height:19px;position:absolute;top:-2px;left:-2px;box-shadow:0 0 3px #00000059}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;width:1px;height:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{opacity:.5;background:#fff;border:2px dotted #202020;width:0;height:0;position:absolute;top:0;left:0}.maplibregl-cooperative-gesture-screen{color:#fff;opacity:0;pointer-events:none;z-index:99999;background:#0006;justify-content:center;align-items:center;padding:1rem;font-size:1.4em;line-height:1.2;transition:opacity 1s 1s;display:flex;position:absolute;inset:0}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity 50ms}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{z-index:99999;width:100%!important;height:100%!important;position:fixed!important;top:0!important;left:0!important}`,ls=`spteck-react-controls-maplibre-styles`,us=e=>{let t=e??(typeof document<`u`?document:void 0);if(!t||t.getElementById(ls))return;let n=t.createElement(`style`);n.id=ls,n.textContent=cs,t.head.appendChild(n)},ds=_.css`
144
+ `;function ro(e,t){let{columns:n,items:r,enableSorting:i=!1,enableResizing:a=!1,selectionMode:o=`none`,onSelectionChange:s,defaultSelectedItems:c=[],defaultSortState:l,onSortChange:f,columnSizingOptions:m,resizableColumnsOptions:h,noItemsMessage:g,isLoadingData:v,isLoadingDataMessage:y,dataGridBodyClassName:b,dataGridBodyStyles:x,refreshData:S,enableInfiniteScroll:w,onLoadMore:T,infiniteScrollPageSize:E,hasNextPage:D,isLoadingMore:O,autoShowLastPage:k=!0,virtualizedHeight:A=600,virtualizedItemSize:j=44,startIndex:M,onRowClick:ee}=e,N=u.useMemo(()=>n.map(e=>(0,p.createTableColumn)({columnId:e.column,renderHeaderCell:()=>(0,d.jsx)(p.Body1Strong,{children:e.header}),renderCell:t=>(0,d.jsx)(p.TableCellLayout,{media:e.media?e.media(t):void 0,className:e?.className,style:e?.style,children:e.onRender?e.onRender(t):String(t[e.column]??``)}),compare:e.order})),[n]),P=u.useCallback(e=>r.findIndex(t=>t===e),[r]),[te,F]=u.useState(new Set(c.map(e=>P(e)))),[I,L]=u.useState(0);u.useEffect(()=>{c.length&&F(new Set(c.map(e=>P(e))))},[c,r,P]),u.useEffect(()=>{S&&F(new Set)},[S]);let ne=(e,t)=>{let n=new Set;t.selectedItems.forEach(e=>{let t=Number(e);isNaN(t)||n.add(t)}),F(n),s&&s(Array.from(n).map(e=>r[e]))},re=(e,t)=>{f&&f(t)},[R,ie]=u.useState(null),ae=u.useMemo(()=>new Map(r.map((e,t)=>[e,t])),[r]);u.useEffect(()=>{o===`row`&&R!=null&&R>=r.length&&ie(null)},[r,R,o]),u.useEffect(()=>{S&&o===`row`&&ie(null)},[S,o]);let oe=u.useRef(null),se=u.useRef(r.length),ce=u.useRef(!1),le=u.useRef(!1),ue=u.useRef(!1);u.useImperativeHandle(t,()=>({scrollToIndex:(e,t=`auto`)=>{let n=oe.current;n&&`scrollToItem`in n&&n.scrollToItem(Math.max(0,e),t)},resetGrid:()=>{L(e=>e+1),se.current=0,ce.current=!1,le.current=!1,ue.current=!1,de.current=-1,F(new Set),ie(null)},getSelectedRow:()=>R!==null&&R<r.length?{item:r[R],index:R}:null,setSelectedRow:e=>{let t=r.findIndex(t=>t===e);t!==-1&&(ie(t),s?.([e]))}})),u.useEffect(()=>{if(!ce.current&&typeof M==`number`&&oe.current){let e=oe.current;`scrollToItem`in e&&e.scrollToItem(Math.min(M,Math.max(r.length-1,0)),`start`),ce.current=!0}},[M,r.length]),u.useEffect(()=>{let e=se.current,t=r.length,n=t>e;if(se.current=t,!k||!n||e===0)return;let i=oe.current;i&&`scrollToItem`in i&&i.scrollToItem(Math.max(t-1,0),`end`)},[r.length,k]);let de=u.useRef(-1),fe=u.useCallback(({visibleStopIndex:e})=>{if(!w||!T||O||ue.current)return;if(!le.current){le.current=!0;return}let t=E??20;if(r.length<t)return;let n=Math.max(5,Math.ceil(t/5));e>=r.length-n&&D&&de.current!==r.length&&(de.current=r.length,ue.current=!0,T())},[w,T,D,O,r.length,E]);return u.useEffect(()=>{ue.current&&r.length>de.current&&(ue.current=!1)},[r.length]),(0,d.jsxs)(`div`,{style:u.useMemo(()=>({overflowX:`auto`,overflowY:`hidden`,position:`relative`}),[]),className:no,children:[v&&(0,d.jsx)(W,{alignItems:`center`,justifyContent:`center`,height:`${A}px`,children:u.isValidElement(y)?y:(0,d.jsxs)(p.Spinner,{size:`extra-tiny`,children:[` `,y??`Loading data...`,` `]})}),!v&&r.length?(0,d.jsxs)(C.DataGrid,{items:r,columns:N,sortable:i,onSortChange:i?re:void 0,selectionMode:o===`none`||o===`row`?void 0:o===`multiple`?`multiselect`:o===`single`?`single`:void 0,selectedItems:te,onSelectionChange:ne,defaultSortState:l,resizableColumns:a,columnSizingOptions:m,resizableColumnsOptions:h,focusMode:`cell`,className:(0,_.css)(b,no),style:x,children:[(0,d.jsx)(C.DataGridHeader,{children:(0,d.jsx)(C.DataGridRow,{children:({renderHeaderCell:e})=>(0,d.jsx)(C.DataGridHeaderCell,{children:e()})})}),(0,d.jsx)(C.DataGridBody,{itemSize:j,height:A,width:`100%`,listProps:{onItemsRendered:fe},className:no,children:(e,t)=>(()=>{let n=e.item,i=ae.get(n)??r.indexOf(n),a=o===`row`,c=a&&R===i,l=e=>{ie(i),s?.([n]),ee?.(n,i)};return(0,d.jsx)(C.DataGridRow,{style:{...t,cursor:a?`pointer`:void 0,background:c?p.tokens.colorSubtleBackgroundSelected:void 0},onClick:l,"aria-selected":c||void 0,children:({renderCell:e})=>(0,d.jsx)(C.DataGridCell,{children:e(n)})})})()})]},I):!v&&!r.length?(0,d.jsx)(`div`,{children:g}):null]})}var io=u.forwardRef(ro);io.displayName=`DataGridV2`;var ao=200,oo=(0,p.makeStyles)({dialog:{overflow:`visible`},dialogBody:{overflow:`visible`}}),so=e=>{let{isOpen:t,dialogTitle:n,dialogActions:r,children:i,maxWidth:a,className:o,minHeight:s,minWidth:c,maxHeight:l}=e,u=oo();return t?(0,d.jsx)(p.Dialog,{open:t,modalType:`modal`,children:(0,d.jsxs)(p.DialogSurface,{className:(0,p.mergeClasses)(u.dialog,o),style:{maxWidth:a??600,minWidth:c??ao,...s?{minHeight:s}:{},...l?{maxHeight:l}:{}},children:[(0,d.jsx)(p.DialogTitle,{children:n}),(0,d.jsx)(p.DialogBody,{className:u.dialogBody,children:(0,d.jsx)(p.DialogContent,{children:i})}),(0,d.jsx)(p.DialogActions,{fluid:!0,position:`end`,children:r})]})}):(0,d.jsx)(d.Fragment,{})},co=e=>{let{isOpen:t,onOpenChange:n,title:r,headerActions:i,footerActions:a,size:o,separator:s,type:c,style:l,children:f,position:m,classNameHeader:h=``,classNameBody:g=``,classNameFooter:_=``}=e,v=u.useCallback((e,t)=>{n&&n(t.open)},[n]),y=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(p.DrawerHeader,{className:h,children:(0,d.jsx)(p.DrawerHeaderTitle,{style:{width:`100%`},action:i,children:r})}),(0,d.jsx)(p.DrawerBody,{className:g,children:f}),(0,d.jsx)(p.DrawerFooter,{className:_,children:a})]});return c===`inline`?(0,d.jsx)(p.InlineDrawer,{separator:s,open:t,size:o,style:l,position:m,children:y}):(0,d.jsx)(p.OverlayDrawer,{open:t,onOpenChange:v,size:o,style:l,position:m,children:y})},lo=e=>{let{onDismiss:t,title:n,description:r,icon:i,showCloseButton:a=!0}=e;return(0,d.jsxs)(W,{direction:`vertical`,width:`100%`,children:[(0,d.jsx)(W,{direction:`horizontal`,padding:`s`,gap:`l`,justifyContent:`space-between`,children:(0,d.jsxs)(W,{direction:`horizontal`,alignItems:`center`,width:`100%`,gap:`m`,children:[i?u.isValidElement(i)?i:(0,d.jsx)(x.Icon,{icon:i}):null,(0,d.jsxs)(W,{direction:`vertical`,justifyContent:`flex-start`,alignItems:`flex-start`,width:`100%`,children:[u.isValidElement(n)?n:(0,d.jsxs)(W,{direction:`horizontal`,justifyContent:`space-between`,gap:`l`,width:`100%`,children:[(0,d.jsx)(Rn,{fontSize:`l`,block:!0,truncate:!0,numberOfLines:1,children:n}),a&&(0,d.jsx)(p.Button,{appearance:`transparent`,onClick:e=>{e.stopPropagation(),e.preventDefault(),t(!1)},icon:(0,d.jsx)(y.Dismiss24Regular,{style:{width:18,height:18}}),color:p.tokens.colorBrandBackground})]}),u.isValidElement(r)?r:(0,d.jsx)(p.Caption1,{style:{display:`-webkit-box`,WebkitLineClamp:4,WebkitBoxOrient:`vertical`,textAlign:`start`,textOverflow:`ellipsis`,wordBreak:`break-word`},children:r})]})]})}),(0,d.jsx)(p.Divider,{style:{marginTop:6}})]})},uo=()=>({closeButton:(0,_.css)({marginLeft:`auto`,position:`absolute`,top:`10px`,right:`10px`,zIndex:99999}),divider:(0,_.css)({width:`100%`,height:`1px`,backgroundColor:p.tokens.colorNeutralStroke1,marginTop:`6px`}),renderHeaderContent:(0,_.css)({display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,alignItems:`stretch`,width:`100%`}),renderHeaderHeader:(0,_.css)({display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,padding:`10px`,gap:`20px`}),renderHeaderFooter:(0,_.css)({display:`flex`,flexDirection:`row`,justifyContent:`flex-start`,padding:`20px`,gap:`20px`}),renderHeaderBody:(0,_.css)({display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,padding:`20px`,gap:`20px`}),renderHeaderTitleContainer:(0,_.css)({display:`flex`,flexDirection:`row`,justifyContent:`flex-start`,alignContent:`center`,alignItems:`center`,width:`100%`}),renderHeaderTitle:(0,_.css)({display:`-webkit-box`,WebkitLineClamp:`1`,WebkitBoxOrient:`vertical`,textAlign:`start`,textOverflow:`ellipsis`,paddingTop:0,wordBreak:`break-word`}),renderHeaderDescription:(0,_.css)({display:`-webkit-box`,WebkitLineClamp:`4`,WebkitBoxOrient:`vertical`,textAlign:`start`,textOverflow:`ellipsis`,wordBreak:`break-word`}),dialogTitleAndDescriptionContainer:(0,_.css)({display:`flex`,flexDirection:`column`,justifyContent:`start`,alignItems:`start`,paddingLeft:`10px`,paddingRight:`20px`,width:`100%`})}),fo=({isOpen:e,options:t,onClose:n})=>{let{log:r}=L(),[i,a]=(0,u.useState)(void 0);r(i||``);let o=(0,u.useRef)(null),[s,c]=(0,u.useState)(400),{siteUrl:l,listId:f,itemId:p,name:m}=t,h=(0,u.useCallback)(()=>{n()},[n]),g=(0,u.useCallback)(e=>{if(e.origin!==window.location.origin)return;r(`Message from iframe:`,e.data);let{name:t,height:n}=JSON.parse(e.data);switch(t){case`share_dismiss`:h();break;case`share_resize`:c(n);break;case`share_scriptsLoaded`:break;case`share_uiReady`:break;case`share_ready`:break;default:break}},[h]);return(0,u.useEffect)(()=>(window.addEventListener(`message`,g),()=>{window.removeEventListener(`message`,g)}),[g]),(0,u.useEffect)(()=>{if(e){let e=new Date().getTime(),t=encodeURIComponent(window.location.origin),n=`${l}/_layouts/15/sharedialog.aspx?listId=${f}&listItemId=${p}&clientId=sharePoint&policyTip=0&folderColor=&clickTime=${e}&ma=0&fullScreenMode=false&itemName= ${encodeURIComponent(m)}&channelId=&origin=${t}`;r(n),a(n)}else a(void 0)},[e,l,f,p]),(0,d.jsx)(so,{isOpen:e,onDismiss:h,maxHeight:`fit-content`,children:(0,d.jsx)(`iframe`,{ref:o,src:i||``,style:{width:`100%`,height:s,border:`none`},onLoad:()=>r(`Iframe loaded`)})})},po=()=>(0,u.useMemo)(()=>({container:(0,_.css)({display:`flex`,alignItems:`center`,justifyContent:`center`,minHeight:`200px`,textAlign:`center`,backgroundColor:p.tokens.colorNeutralBackground1,border:`1px solid ${p.tokens.colorNeutralStroke2}`,borderRadius:p.tokens.borderRadiusLarge,padding:`${p.tokens.spacingVerticalXXL} ${p.tokens.spacingHorizontalXXL}`,boxShadow:p.tokens.shadow4,maxWidth:`500px`,margin:`20px auto`}),icon:(0,_.css)({fontSize:`48px`,color:p.tokens.colorPaletteRedForeground1,animation:`pulse 2s infinite`,"@keyframes pulse":{"0%":{transform:`scale(1)`},"50%":{transform:`scale(1.05)`},"100%":{transform:`scale(1)`}}}),title:(0,_.css)({color:p.tokens.colorNeutralForeground1,fontWeight:p.tokens.fontWeightSemibold,textAlign:`center`}),message:(0,_.css)({color:p.tokens.colorNeutralForeground2,textAlign:`center`,lineHeight:p.tokens.lineHeightBase400})}),[]),mo=({title:e,message:t})=>{let n=po();return(0,d.jsx)(p.Card,{className:n.container,children:(0,d.jsxs)(W,{gap:`l`,alignItems:`center`,children:[(0,d.jsx)(y.ErrorCircleRegular,{className:n.icon}),(0,d.jsxs)(W,{gap:`s`,alignItems:`center`,children:[(0,d.jsx)(p.Title3,{className:n.title,children:e}),(0,d.jsx)(p.Body1,{className:n.message,children:t})]})]})})},ho=(0,p.makeStyles)({root:{display:`flex`,flexDirection:`row`,justifyContent:`center`,alignItems:`center`,...p.shorthands.padding(`10px`),gap:`10px`},iconClass:{width:`32px`,height:`32px`},errorContainer:{display:`flex`,flexDirection:`row`,justifyContent:`start`,alignItems:`center`,gap:`10px`,...p.shorthands.padding(`10px`),backgroundColor:p.tokens.colorStatusDangerBackground1},errorIcon:{height:`100%`}}),go=e=>{let{messageType:t,children:n,message:r}=e,i=ho(),[a,o]=u.useState(null),s=u.useCallback(()=>(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(`div`,{className:i.errorContainer,children:[(0,d.jsx)(`div`,{className:i.errorIcon,children:(0,d.jsx)(x.Icon,{icon:`fluent:error-circle-12-regular`,width:`32`,height:`32`,color:p.tokens.colorStatusDangerForeground1})}),(0,d.jsx)(p.Body1,{children:r})]})}),[r,i.errorContainer,i.errorIcon]);return u.useEffect(()=>{switch(t){case P.SUCCESS:o((0,d.jsx)(y.CheckmarkCircle32Regular,{primaryFill:p.tokens.colorStatusSuccessForeground1}));break;case P.INFO:o((0,d.jsx)(y.Info32Regular,{primaryFill:p.tokens.colorStatusWarningForeground1}));break;default:break}},[t]),t===P.ERROR?(0,d.jsx)(s,{}):(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(`div`,{className:i.root,children:[a,(0,d.jsx)(p.Body1Strong,{children:r}),n]})})},_o=()=>({container:(0,_.css)({display:`flex`,flexWrap:`nowrap`,minWidth:0,overflow:`hidden`,gap:10,marginBottom:20,width:`100%`}),text1LineStyle:(0,_.css)({display:`-webkit-box`,WebkitLineClamp:1,WebkitBoxOrient:`vertical`,overflow:`hidden`,textAlign:`start`,textOverflow:`ellipsis`,wordBreak:`break-word`}),button:(0,_.css)({cursor:`pointer`,minWidth:107})}),vo=({items:e,selectedItemId:t,onSelectedItem:n,renderControl:r,theme:i})=>{let a=_o(),o=u.useCallback(e=>{n&&n(e)},[n]);return(0,d.jsx)(p.Overflow,{children:(0,d.jsxs)(p.FluentProvider,{theme:i,children:[` `,(0,d.jsxs)(`div`,{className:(0,p.mergeClasses)(a.container),children:[e.map(e=>{let n=e.id===t;return(0,d.jsx)(p.OverflowItem,{id:e.id,priority:n?2:1,children:r(e,n,()=>o(e.id))},e.id)}),(0,d.jsx)(bo,{items:e,onSelectedItem:o,theme:i}),` `]})]})})},yo=({item:e,onSelectedItem:t})=>(0,p.useIsOverflowItemVisible)(e.id)?null:(0,d.jsx)(p.MenuItem,{icon:e.icon,onClick:()=>t(e.id),children:(0,d.jsx)(`div`,{children:e.name})},e.id),bo=({items:e,onSelectedItem:t,theme:n})=>{let{ref:r,overflowCount:i,isOverflowing:a}=(0,p.useOverflowMenu)(),o=u.useMemo(()=>(0,y.bundleIcon)(y.MoreHorizontalFilled,y.MoreHorizontalRegular),[]);return a?(0,d.jsx)(p.IdPrefixProvider,{value:`menu-over-`,children:(0,d.jsx)(p.FluentProvider,{theme:n,children:(0,d.jsxs)(p.Menu,{children:[(0,d.jsx)(p.MenuTrigger,{disableButtonEnhancement:!0,children:(0,d.jsx)(p.MenuButton,{appearance:`transparent`,ref:r,icon:(0,d.jsx)(o,{}),"aria-label":`${i} more options`,role:`button`})}),(0,d.jsx)(p.MenuPopover,{children:(0,d.jsx)(p.MenuList,{children:e.map(e=>(0,d.jsx)(yo,{item:e,onSelectedItem:t},e.id))})})]})})}):null},xo=({id:e,children:t})=>(0,p.useIsOverflowItemVisible)(e)?null:(0,d.jsx)(p.MenuItem,{children:t}),So=({items:e,renderItem:t,keyExtractor:n})=>{let{ref:r,overflowCount:i,isOverflowing:a}=(0,p.useOverflowMenu)();return a?(0,d.jsxs)(p.Menu,{children:[(0,d.jsx)(p.MenuTrigger,{disableButtonEnhancement:!0,children:(0,d.jsxs)(p.MenuButton,{ref:r,children:[`+`,i,` items`]})}),(0,d.jsx)(p.MenuPopover,{children:(0,d.jsx)(p.MenuList,{children:e.map(e=>(0,d.jsx)(xo,{id:n(e),children:t(e)},n(e)))})})]}):null},Co=u.default.memo(({items:e,open:t=!0,defaultOpen:n,drawerType:r=`inline`,size:i=`small`,appItem:a,header:o,footer:s,selectedKey:c,defaultSelectedKey:l,selectedCategoryKey:f,onNavigate:m,multiple:h=!0,density:g=`medium`,defaultOpenCategories:_,openCategories:v,onCategoryToggle:y,className:b,style:x})=>{let S=u.default.useMemo(()=>{let t=new Map,n=e=>{for(let r of e)t.set(r.key,r),r.children&&n(r.children)};return n(e),t},[e]),C=(0,u.useCallback)(e=>t=>{e.href&&t.preventDefault(),m?.(e.key,e.href)},[m]),w=(0,u.useCallback)((e,t)=>{if(!m)return;let n=S.get(t.value);n&&m(t.value,n.href)},[m,S]),T=(0,u.useCallback)((e,t)=>{y?.(t.value)},[y]),E=e=>(0,d.jsx)(p.NavItem,{value:e.key,href:e.href,icon:e.icon,onClick:C(e),children:e.name},e.key),D=e=>(0,d.jsxs)(p.NavCategory,{value:e.key,children:[(0,d.jsx)(p.NavCategoryItem,{icon:e.icon,children:e.name}),(0,d.jsx)(p.NavSubItemGroup,{children:e.children.map(e=>e.icon?(0,d.jsx)(p.NavItem,{value:e.key,href:e.href,icon:e.icon,onClick:C(e),children:e.name},e.key):(0,d.jsx)(p.NavSubItem,{value:e.key,href:e.href,onClick:C(e),children:e.name},e.key))})]},e.key),O=e=>(0,d.jsxs)(u.default.Fragment,{children:[(0,d.jsx)(p.NavSectionHeader,{children:e.name}),e.children.map(e=>e.children&&e.children.length>0?D(e):E(e))]},e.key);return(0,d.jsxs)(p.NavDrawer,{open:t,defaultOpen:n,type:r,size:i,className:b,style:u.default.useMemo(()=>({flexShrink:0,...x}),[x]),selectedValue:c,defaultSelectedValue:l,selectedCategoryValue:f,multiple:h,density:g,defaultOpenCategories:_,openCategories:v,onNavItemSelect:w,onNavCategoryItemToggle:T,children:[o!==void 0&&(0,d.jsx)(p.NavDrawerHeader,{children:o}),(0,d.jsxs)(p.NavDrawerBody,{children:[a&&(a.href?(0,d.jsx)(p.AppItem,{icon:a.icon,href:a.href,children:a.name}):(0,d.jsx)(p.AppItemStatic,{icon:a.icon,children:a.name})),e.map(e=>e.isSectionHeader&&e.children&&e.children.length>0?O(e):e.children&&e.children.length>0?D(e):E(e))]}),s!==void 0&&(0,d.jsx)(p.NavDrawerFooter,{children:s})]})});Co.displayName=`Navigation`;var wo=()=>({root:(0,_.css)({width:`100%`}),sectionHeader:(0,_.css)({color:p.tokens.colorNeutralForeground3,fontSize:p.tokens.fontSizeBase200,fontWeight:p.tokens.fontWeightSemibold,padding:`${p.tokens.spacingVerticalS} ${p.tokens.spacingHorizontalM}`,textTransform:`uppercase`,letterSpacing:`0.5px`})}),To=e=>({videoPlayerContainer:(0,_.css)({position:`relative`,width:e.width,height:e.height}),reactPlayer:(0,_.css)({position:`absolute`,top:0,left:0,width:`100%`,height:`100%`}),playButton:(0,_.css)({position:`absolute`,left:`50%`,top:`50%`,zIndex:1,userSelect:`none`})}),Eo=e=>{let{url:t,controls:n=!0,width:r=`100%`,height:i=`100%`,loop:a=!1,muted:o=!1}=e,[s,c]=(0,u.useState)(!1),l=To(e);return(0,d.jsx)(`div`,{className:l.videoPlayerContainer,children:(0,d.jsx)(w.default,{url:t,controls:n,width:r,height:i,playing:s,loop:a,muted:o,onPause:()=>c(!1),onPlay:()=>c(!0),className:l.reactPlayer})})},Do=u.createContext(null);function Oo(e,t){let n=Array.isArray(e)?e[0]:e?e.x:0,r=Array.isArray(e)?e[1]:e?e.y:0,i=Array.isArray(t)?t[0]:t?t.x:0,a=Array.isArray(t)?t[1]:t?t.y:0;return n===i&&r===a}function ko(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!ko(e[n],t[n]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e==`object`&&typeof t==`object`){let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!t.hasOwnProperty(r)||!ko(e[r],t[r]))return!1;return!0}return!1}function Ao(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function jo(e,t){let n=t.viewState||t,r={};if(`longitude`in n&&`latitude`in n&&(n.longitude!==e.center.lng||n.latitude!==e.center.lat)){let t=e.center.constructor;r.center=new t(n.longitude,n.latitude)}return`zoom`in n&&n.zoom!==e.zoom&&(r.zoom=n.zoom),`bearing`in n&&n.bearing!==e.bearing&&(r.bearing=n.bearing),`pitch`in n&&n.pitch!==e.pitch&&(r.pitch=n.pitch),n.padding&&e.padding&&!ko(n.padding,e.padding)&&(r.padding=n.padding),r}var Mo=[`type`,`source`,`source-layer`,`minzoom`,`maxzoom`,`filter`,`layout`];function No(e){if(!e)return null;if(typeof e==`string`||(`toJS`in e&&(e=e.toJS()),!e.layers))return e;let t={};for(let n of e.layers)t[n.id]=n;let n=e.layers.map(e=>{let n=null;`interactive`in e&&(n=Object.assign({},e),delete n.interactive);let r=t[e.ref];if(r){n||=Object.assign({},e),delete n.ref;for(let e of Mo)e in r&&(n[e]=r[e])}return n||e});return{...e,layers:n}}var Po={version:8,sources:{},layers:[]},Fo={mousedown:`onMouseDown`,mouseup:`onMouseUp`,mouseover:`onMouseOver`,mousemove:`onMouseMove`,click:`onClick`,dblclick:`onDblClick`,mouseenter:`onMouseEnter`,mouseleave:`onMouseLeave`,mouseout:`onMouseOut`,contextmenu:`onContextMenu`,touchstart:`onTouchStart`,touchend:`onTouchEnd`,touchmove:`onTouchMove`,touchcancel:`onTouchCancel`},Io={movestart:`onMoveStart`,move:`onMove`,moveend:`onMoveEnd`,dragstart:`onDragStart`,drag:`onDrag`,dragend:`onDragEnd`,zoomstart:`onZoomStart`,zoom:`onZoom`,zoomend:`onZoomEnd`,rotatestart:`onRotateStart`,rotate:`onRotate`,rotateend:`onRotateEnd`,pitchstart:`onPitchStart`,pitch:`onPitch`,pitchend:`onPitchEnd`},Lo={wheel:`onWheel`,boxzoomstart:`onBoxZoomStart`,boxzoomend:`onBoxZoomEnd`,boxzoomcancel:`onBoxZoomCancel`,resize:`onResize`,load:`onLoad`,render:`onRender`,idle:`onIdle`,remove:`onRemove`,data:`onData`,styledata:`onStyleData`,sourcedata:`onSourceData`,error:`onError`},Ro=[`minZoom`,`maxZoom`,`minPitch`,`maxPitch`,`maxBounds`,`projection`,`renderWorldCopies`],zo=[`scrollZoom`,`boxZoom`,`dragRotate`,`dragPan`,`keyboard`,`doubleClickZoom`,`touchZoomRotate`,`touchPitch`],Bo=class e{constructor(e,t,n){this._map=null,this._internalUpdate=!1,this._hoveredFeatures=null,this._propsedCameraUpdate=null,this._styleComponents={},this._onEvent=e=>{let t=this.props[Lo[e.type]];t?t(e):e.type===`error`&&console.error(e.error)},this._onCameraEvent=e=>{if(this._internalUpdate)return;e.viewState=this._propsedCameraUpdate||Ao(this._map.transform);let t=this.props[Io[e.type]];t&&t(e)},this._onCameraUpdate=e=>this._internalUpdate?e:(this._propsedCameraUpdate=Ao(e),jo(e,this.props)),this._onPointerEvent=e=>{(e.type===`mousemove`||e.type===`mouseout`)&&this._updateHover(e);let t=this.props[Fo[e.type]];t&&(this.props.interactiveLayerIds&&e.type!==`mouseover`&&e.type!==`mouseout`&&(e.features=this._hoveredFeatures||this._queryRenderedFeatures(e.point)),t(e),delete e.features)},this._MapClass=e,this.props=t,this._initialize(n)}get map(){return this._map}setProps(e){let t=this.props;this.props=e;let n=this._updateSettings(e,t),r=this._updateSize(e),i=this._updateViewState(e);this._updateStyle(e,t),this._updateStyleComponents(e),this._updateHandlers(e,t),(n||r||i&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){let r=e.savedMaps.pop();if(!r)return null;let i=r.map,a=i.getContainer();for(n.className=a.className;a.childNodes.length>0;)n.appendChild(a.childNodes[0]);i._container=n;let o=i._resizeObserver;o&&(o.disconnect(),o.observe(n)),r.setProps({...t,styleDiffing:!1}),i.resize();let{initialViewState:s}=t;return s&&(s.bounds?i.fitBounds(s.bounds,{...s.fitBoundsOptions,duration:0}):r._updateViewState(s)),i.isStyleLoaded()?i.fire(`load`):i.once(`style.load`,()=>i.fire(`load`)),i._update(),r}_initialize(e){let{props:t}=this,{mapStyle:n=Po}=t,r={...t,...t.initialViewState,container:e,style:No(n)},i=r.initialViewState||r.viewState||r;if(Object.assign(r,{center:[i.longitude||0,i.latitude||0],zoom:i.zoom||0,pitch:i.pitch||0,bearing:i.bearing||0}),t.gl){let e=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=e,t.gl)}let a=new this._MapClass(r);i.padding&&a.setPadding(i.padding),t.cursor&&(a.getCanvas().style.cursor=t.cursor),a.transformCameraUpdate=this._onCameraUpdate,a.on(`style.load`,()=>{this._styleComponents={light:a.getLight(),sky:a.getSky(),projection:a.getProjection?.(),terrain:a.getTerrain()},this._updateStyleComponents(this.props)}),a.on(`sourcedata`,()=>{this._updateStyleComponents(this.props)});for(let e in Fo)a.on(e,this._onPointerEvent);for(let e in Io)a.on(e,this._onCameraEvent);for(let e in Lo)a.on(e,this._onEvent);this._map=a}recycle(){this.map.getContainer().querySelector(`[mapboxgl-children]`)?.remove(),e.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){let e=this._map;e.style&&(e._frame&&=(e._frame.cancel(),null),e._render())}_updateSize(e){let{viewState:t}=e;if(t){let e=this._map;if(t.width!==e.transform.width||t.height!==e.transform.height)return e.resize(),!0}return!1}_updateViewState(e){let t=this._map,n=t.transform;if(!t.isMoving()){let r=jo(n,e);if(Object.keys(r).length>0)return this._internalUpdate=!0,t.jumpTo(r),this._internalUpdate=!1,!0}return!1}_updateSettings(e,t){let n=this._map,r=!1;for(let i of Ro)i in e&&!ko(e[i],t[i])&&(r=!0,n[`set${i[0].toUpperCase()}${i.slice(1)}`]?.call(n,e[i]));return r}_updateStyle(e,t){if(e.cursor!==t.cursor&&(this._map.getCanvas().style.cursor=e.cursor||``),e.mapStyle!==t.mapStyle){let{mapStyle:t=Po,styleDiffing:n=!0}=e,r={diff:n};`localIdeographFontFamily`in e&&(r.localIdeographFontFamily=e.localIdeographFontFamily),this._map.setStyle(No(t),r)}}_updateStyleComponents({light:e,projection:t,sky:n,terrain:r}){let i=this._map,a=this._styleComponents;i.style._loaded&&(e&&!ko(e,a.light)&&(a.light=e,i.setLight(e)),t&&!ko(t,a.projection)&&t!==a.projection?.type&&(a.projection=typeof t==`string`?{type:t}:t,i.setProjection?.(a.projection)),n&&!ko(n,a.sky)&&(a.sky=n,i.setSky(n)),r!==void 0&&!ko(r,a.terrain)&&(!r||i.getSource(r.source))&&(a.terrain=r,i.setTerrain(r)))}_updateHandlers(e,t){let n=this._map;for(let r of zo){let i=e[r]??!0;ko(i,t[r]??!0)||(i?n[r].enable(i):n[r].disable())}}_queryRenderedFeatures(e){let t=this._map,{interactiveLayerIds:n=[]}=this.props;try{return t.queryRenderedFeatures(e,{layers:n.filter(t.getLayer.bind(t))})}catch{return[]}}_updateHover(e){let{props:t}=this;if(t.interactiveLayerIds&&(t.onMouseMove||t.onMouseEnter||t.onMouseLeave)){let t=e.type,n=this._hoveredFeatures?.length>0,r=this._queryRenderedFeatures(e.point),i=r.length>0;!i&&n&&(e.type=`mouseleave`,this._onPointerEvent(e)),this._hoveredFeatures=r,i&&!n&&(e.type=`mouseenter`,this._onPointerEvent(e)),e.type=t}else this._hoveredFeatures=null}};Bo.savedMaps=[];var Vo=[`setMaxBounds`,`setMinZoom`,`setMaxZoom`,`setMinPitch`,`setMaxPitch`,`setRenderWorldCopies`,`setProjection`,`setStyle`,`addSource`,`removeSource`,`addLayer`,`removeLayer`,`setLayerZoomRange`,`setFilter`,`setPaintProperty`,`setLayoutProperty`,`setLight`,`setTerrain`,`setFog`,`remove`];function Ho(e){if(!e)return null;let t=e.map,n={getMap:()=>t};for(let e of Uo(t))!(e in n)&&!Vo.includes(e)&&(n[e]=t[e].bind(t));return n}function Uo(e){let t=new Set,n=e;for(;n;){for(let r of Object.getOwnPropertyNames(n))r[0]!==`_`&&typeof e[r]==`function`&&r!==`fire`&&r!==`setEventedParent`&&t.add(r);n=Object.getPrototypeOf(n)}return Array.from(t)}var Wo=typeof document<`u`?u.useLayoutEffect:u.useEffect;function Go(e,t){let{RTLTextPlugin:n,maxParallelImageRequests:r,workerCount:i,workerUrl:a}=t;if(n&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()===`unavailable`){let{pluginUrl:t,lazy:r=!0}=typeof n==`string`?{pluginUrl:n}:n;e.setRTLTextPlugin(t,e=>{e&&console.error(e)},r)}r!==void 0&&e.setMaxParallelImageRequests(r),i!==void 0&&e.setWorkerCount(i),a!==void 0&&e.setWorkerUrl(a)}var Ko=u.createContext(null);function qo(t,n){let r=(0,u.useContext)(Do),[i,a]=(0,u.useState)(null),o=(0,u.useRef)(),{current:s}=(0,u.useRef)({mapLib:null,map:null});(0,u.useEffect)(()=>{let n=t.mapLib,i=!0,c;return Promise.resolve(n||Promise.resolve().then(()=>e.o(require(`./maplibre-gl-tm_pVdmb.cjs`).default,1))).then(e=>{if(!i)return;if(!e)throw Error(`Invalid mapLib`);let n=`Map`in e?e:e.default;if(!n.Map)throw Error(`Invalid mapLib`);Go(n,t),t.reuseMaps&&(c=Bo.reuse(t,o.current)),c||=new Bo(n.Map,t,o.current),s.map=Ho(c),s.mapLib=n,a(c),r?.onMapMount(s.map,t.id)}).catch(e=>{let{onError:n}=t;n?n({type:`error`,target:null,originalEvent:null,error:e}):console.error(e)}),()=>{i=!1,c&&(r?.onMapUnmount(t.id),t.reuseMaps?c.recycle():c.destroy())}},[]),Wo(()=>{i&&i.setProps(t)}),(0,u.useImperativeHandle)(n,()=>s.map,[i]);let c=(0,u.useMemo)(()=>({position:`relative`,width:`100%`,height:`100%`,...t.style}),[t.style]),l={height:`100%`};return u.createElement(`div`,{id:t.id,ref:o,style:c},i&&u.createElement(Ko.Provider,{value:s},u.createElement(`div`,{"mapboxgl-children":``,style:l},t.children)))}var Jo=u.forwardRef(qo),Yo=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function Xo(e,t){if(!e||!t)return;let n=e.style;for(let e in t){let r=t[e];Number.isFinite(r)&&!Yo.test(e)?n[e]=`${r}px`:n[e]=r}}function Zo(e,t){if(e===t)return null;let n=Qo(e),r=Qo(t),i=[];for(let e of r)n.has(e)||i.push(e);for(let e of n)r.has(e)||i.push(e);return i.length===0?null:i}function Qo(e){return new Set(e?e.trim().split(/\s+/):[])}var $o=(0,u.memo)((0,u.forwardRef)((e,t)=>{let{map:n,mapLib:r}=(0,u.useContext)(Ko),i=(0,u.useRef)({props:e}),a=(0,u.useMemo)(()=>{let t=!1;u.Children.forEach(e.children,e=>{e&&(t=!0)});let n={...e,element:t?document.createElement(`div`):void 0},o=new r.Marker(n);return o.setLngLat([e.longitude,e.latitude]),o.getElement().addEventListener(`click`,e=>{i.current.props.onClick?.({type:`click`,target:o,originalEvent:e})}),o.on(`dragstart`,e=>{let t=e;t.lngLat=a.getLngLat(),i.current.props.onDragStart?.(t)}),o.on(`drag`,e=>{let t=e;t.lngLat=a.getLngLat(),i.current.props.onDrag?.(t)}),o.on(`dragend`,e=>{let t=e;t.lngLat=a.getLngLat(),i.current.props.onDragEnd?.(t)}),o},[]);(0,u.useEffect)(()=>(a.addTo(n.getMap()),()=>{a.remove()}),[]);let{longitude:o,latitude:s,offset:c,style:l,draggable:d=!1,popup:f=null,rotation:p=0,rotationAlignment:m=`auto`,pitchAlignment:h=`auto`}=e;(0,u.useEffect)(()=>{Xo(a.getElement(),l)},[l]),(0,u.useImperativeHandle)(t,()=>a,[]);let g=i.current.props;(a.getLngLat().lng!==o||a.getLngLat().lat!==s)&&a.setLngLat([o,s]),c&&!Oo(a.getOffset(),c)&&a.setOffset(c),a.isDraggable()!==d&&a.setDraggable(d),a.getRotation()!==p&&a.setRotation(p),a.getRotationAlignment()!==m&&a.setRotationAlignment(m),a.getPitchAlignment()!==h&&a.setPitchAlignment(h),a.getPopup()!==f&&a.setPopup(f);let _=Zo(g.className,e.className);if(_)for(let e of _)a.toggleClassName(e);return i.current.props=e,(0,b.createPortal)(e.children,a.getElement())}));(0,u.memo)((0,u.forwardRef)((e,t)=>{let{map:n,mapLib:r}=(0,u.useContext)(Ko),i=(0,u.useMemo)(()=>document.createElement(`div`),[]),a=(0,u.useRef)({props:e}),o=(0,u.useMemo)(()=>{let t={...e},n=new r.Popup(t);return n.setLngLat([e.longitude,e.latitude]),n.once(`open`,e=>{a.current.props.onOpen?.(e)}),n},[]);if((0,u.useEffect)(()=>{let e=e=>{a.current.props.onClose?.(e)};return o.on(`close`,e),o.setDOMContent(i).addTo(n.getMap()),()=>{o.off(`close`,e),o.isOpen()&&o.remove()}},[]),(0,u.useEffect)(()=>{Xo(o.getElement(),e.style)},[e.style]),(0,u.useImperativeHandle)(t,()=>o,[]),o.isOpen()){let t=a.current.props;(o.getLngLat().lng!==e.longitude||o.getLngLat().lat!==e.latitude)&&o.setLngLat([e.longitude,e.latitude]),e.offset&&!ko(t.offset,e.offset)&&o.setOffset(e.offset),(t.anchor!==e.anchor||t.maxWidth!==e.maxWidth)&&(o.options.anchor=e.anchor,o.setMaxWidth(e.maxWidth));let n=Zo(t.className,e.className);if(n)for(let e of n)o.toggleClassName(e);a.current.props=e}return(0,b.createPortal)(e.children,i)}));function es(e,t,n,r){let i=(0,u.useContext)(Ko),a=(0,u.useMemo)(()=>e(i),[]);return(0,u.useEffect)(()=>{let e=r||n||t,o=typeof t==`function`&&typeof n==`function`?t:null,s=typeof n==`function`?n:typeof t==`function`?t:null,{map:c}=i;return c.hasControl(a)||(c.addControl(a,e?.position),o&&o(i)),()=>{s&&s(i),c.hasControl(a)&&c.removeControl(a)}},[]),a}function ts(e){let t=es(({mapLib:t})=>new t.AttributionControl(e),{position:e.position});return(0,u.useEffect)(()=>{Xo(t._container,e.style)},[e.style]),null}(0,u.memo)(ts);function ns(e){let t=es(({mapLib:t})=>new t.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return(0,u.useEffect)(()=>{Xo(t._controlContainer,e.style)},[e.style]),null}(0,u.memo)(ns);function rs(e,t){let n=(0,u.useRef)({props:e}),r=es(({mapLib:t})=>{let r=new t.GeolocateControl(e),i=r._setupUI;return r._setupUI=()=>{r._container.hasChildNodes()||i()},r.on(`geolocate`,e=>{n.current.props.onGeolocate?.(e)}),r.on(`error`,e=>{n.current.props.onError?.(e)}),r.on(`outofmaxbounds`,e=>{n.current.props.onOutOfMaxBounds?.(e)}),r.on(`trackuserlocationstart`,e=>{n.current.props.onTrackUserLocationStart?.(e)}),r.on(`trackuserlocationend`,e=>{n.current.props.onTrackUserLocationEnd?.(e)}),r},{position:e.position});return n.current.props=e,(0,u.useImperativeHandle)(t,()=>r,[]),(0,u.useEffect)(()=>{Xo(r._container,e.style)},[e.style]),null}(0,u.memo)((0,u.forwardRef)(rs));function is(e){let t=es(({mapLib:t})=>new t.NavigationControl(e),{position:e.position});return(0,u.useEffect)(()=>{Xo(t._container,e.style)},[e.style]),null}(0,u.memo)(is);function as(e){let t=es(({mapLib:t})=>new t.ScaleControl(e),{position:e.position}),n=(0,u.useRef)(e),r=n.current;n.current=e;let{style:i}=e;return e.maxWidth!==void 0&&e.maxWidth!==r.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==r.unit&&t.setUnit(e.unit),(0,u.useEffect)(()=>{Xo(t._container,i)},[i]),null}(0,u.memo)(as);function os(e){let t=es(({mapLib:t})=>new t.TerrainControl(e),{position:e.position});return(0,u.useEffect)(()=>{Xo(t._container,e.style)},[e.style]),null}(0,u.memo)(os);function ss(e){let t=es(({mapLib:t})=>new t.LogoControl(e),{position:e.position});return(0,u.useEffect)(()=>{Xo(t._container,e.style)},[e.style]),null}(0,u.memo)(ss);var cs=`.maplibregl-map{-webkit-tap-highlight-color:#0000;font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;position:relative;overflow:hidden}.maplibregl-canvas{position:absolute;top:0;left:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;z-index:2;position:absolute}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px buttontext}}.maplibregl-ctrl-group button{box-sizing:border-box;cursor:pointer;background-color:#0000;border:0;outline:none;width:29px;height:29px;padding:0;display:block}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;width:100%;height:100%;display:block}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:#0000}.maplibregl-ctrl-group button+button{border-top:1px solid buttontext}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:#0000000d}}.maplibregl-ctrl button:not(:disabled):active{background-color:#0000000d}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%23333' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%2333b5e5' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:2s linear infinite maplibregl-spin}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{cursor:pointer;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;width:88px;height:23px;margin:0 0 -4px -4px;display:block;overflow:hidden}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:#0000;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{box-sizing:content-box;color:#000;background-color:#fff;border-radius:12px;min-height:20px;margin:10px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{visibility:visible;padding:2px 28px 2px 8px}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{box-sizing:border-box;cursor:pointer;background-color:#ffffff80;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;outline:none;width:24px;height:24px;display:none;position:absolute;top:0;right:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:#0000000d}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:#000000bf;text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{box-sizing:border-box;color:#333;white-space:nowrap;background-color:#ffffffbf;border:2px solid #333;border-top:#333;padding:0 5px;font-size:10px}.maplibregl-popup{pointer-events:none;will-change:transform;display:flex;position:absolute;top:0;left:0}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{z-index:1;border:10px solid #0000;width:0;height:0}.maplibregl-popup-anchor-top .maplibregl-popup-tip{border-top:none;border-bottom-color:#fff;align-self:center}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{border-top:none;border-bottom-color:#fff;border-left:none;align-self:flex-start}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{border-top:none;border-bottom-color:#fff;border-right:none;align-self:flex-end}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{border-top-color:#fff;border-bottom:none;align-self:center}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{border-top-color:#fff;border-bottom:none;border-left:none;align-self:flex-start}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{border-top-color:#fff;border-bottom:none;border-right:none;align-self:flex-end}.maplibregl-popup-anchor-left .maplibregl-popup-tip{border-left:none;border-right-color:#fff;align-self:center}.maplibregl-popup-anchor-right .maplibregl-popup-tip{border-left-color:#fff;border-right:none;align-self:center}.maplibregl-popup-close-button{cursor:pointer;background-color:#0000;border:0;border-radius:0 3px 0 0;position:absolute;top:0;right:0}.maplibregl-popup-close-button:hover{background-color:#0000000d}.maplibregl-popup-content{pointer-events:auto;background:#fff;border-radius:3px;padding:15px 10px;position:relative;box-shadow:0 1px 2px #0000001a}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{will-change:transform;transition:opacity .2s;position:absolute;top:0;left:0}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;width:15px;height:15px}.maplibregl-user-location-dot:before{content:"";animation:2s infinite maplibregl-user-location-dot-pulse;position:absolute}.maplibregl-user-location-dot:after{box-sizing:border-box;content:"";border:2px solid #fff;border-radius:50%;width:19px;height:19px;position:absolute;top:-2px;left:-2px;box-shadow:0 0 3px #00000059}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;width:1px;height:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{opacity:.5;background:#fff;border:2px dotted #202020;width:0;height:0;position:absolute;top:0;left:0}.maplibregl-cooperative-gesture-screen{color:#fff;opacity:0;pointer-events:none;z-index:99999;background:#0006;justify-content:center;align-items:center;padding:1rem;font-size:1.4em;line-height:1.2;transition:opacity 1s 1s;display:flex;position:absolute;inset:0}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity 50ms}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{z-index:99999;width:100%!important;height:100%!important;position:fixed!important;top:0!important;left:0!important}`,ls=`spteck-react-controls-maplibre-styles`,us=e=>{let t=e??(typeof document<`u`?document:void 0);if(!t||t.getElementById(ls))return;let n=t.createElement(`style`);n.id=ls,n.textContent=cs,t.head.appendChild(n)},ds=_.css`
145
145
  position: absolute;
146
146
  top: 16px;
147
147
  right: 16px;
@@ -178,7 +178,7 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
178
178
  font-weight: 600;
179
179
  text-align: center;
180
180
  margin-top: 6px;
181
- `,vs=({data:e,flagClass:t,onClick:n})=>(0,d.jsx)(p.Tooltip,{relationship:`label`,content:(0,d.jsxs)(p.Card,{className:gs,children:[(0,d.jsx)(`img`,{src:e.imageUrl,alt:e.name,className:hs}),(0,d.jsx)(p.Text,{className:_s,children:e.name})]}),withArrow:!0,positioning:`above`,children:(0,d.jsx)(`img`,{src:e.imageUrl,alt:e.name,className:t||hs,onClick:()=>n?.(e)})}),ys=e=>{let[t,n]=(0,u.useState)(void 0),{error:r}=L();return(0,u.useEffect)(()=>{let t=!1;return(async()=>{try{let r=await(await fetch(e)).json();t||n(r)}catch(e){r(`Error loading style:`,e instanceof Error?e:void 0)}})(),()=>{t=!0}},[e]),t},bs=e=>({defaultMapStyles:(0,u.useMemo)(()=>({width:`100%`,height:`600px`,fontFamily:p.tokens.fontFamilyBase}),[]),flagClass:(0,u.useMemo)(()=>(0,_.css)({width:`32px`,height:`20px`,border:`1px solid ${p.tokens.colorNeutralBackground1}`,borderRadius:p.tokens.borderRadiusSmall,boxShadow:p.tokens.shadow4,transition:`transform 0.1s ease`}),[])}),xs=`https://api.maptiler.com/maps/topo-v2/style.json?key=fYK99t1qjkKbINH0saMD`,Ss=({data:e,onClick:n,mapStyleUrl:r=xs,style:i,fitPadding:a=20})=>{us();let o=(0,u.useRef)(null),s=ys(r),c=e,{defaultMapStyles:l,flagClass:f}=bs(),m=t.b();return(0,u.useEffect)(()=>{if(!o.current||c.length===0)return;let e=c.map(e=>e.coordinates[0]),t=c.map(e=>e.coordinates[1]);o.current.getMap().fitBounds([[Math.min(...e),Math.min(...t)],[Math.max(...e),Math.max(...t)]],{padding:a})},[c,a]),s?(0,d.jsxs)(Jo,{ref:o,initialViewState:{longitude:0,latitude:20,zoom:1},style:{...i??l},mapStyle:s,pixelRatio:window.devicePixelRatio,children:[(0,d.jsx)(ms,{mapRef:o,initialViewState:{longitude:0,latitude:20,zoom:1}}),c.map(e=>(0,d.jsx)($o,{longitude:e.coordinates[0],latitude:e.coordinates[1],anchor:`center`,children:(0,d.jsx)(vs,{data:e,onClick:n,flagClass:f})},e.id))]}):(0,d.jsx)(p.Text,{children:m.loadingMapStyle})},Cs=function(e){return e[e.SharePoint=0]=`SharePoint`,e[e.Teams=1]=`Teams`,e[e.TeamsDark=2]=`TeamsDark`,e[e.TeamsHighContrast=3]=`TeamsHighContrast`,e}({}),ws=(e,t)=>{let n=(0,E.create)();n.put(`.${t}-ac-container:focus`,{outline:`none !important`}),n.put(`.${t}-ac-adaptiveCard:focus`,{outline:`none !important`}),n.put(`.${t}-ac-pushButton`,{overflow:`hidden`,textOverflow:`ellipsis`,textAlign:`center`,verticalAlign:`middle`,cursor:`pointer`,fontFamily:`inherit`,fontSize:`14px`,fontWeight:`600`,padding:`4px 10px 5px 10px`,WebkitUserSelect:`none`,MozUserSelect:`none`,MsUserSelect:`none`,userSelect:`none`,height:`32px`,borderRadius:`2px`,border:`1px solid ${e.colorNeutralStrokeAccessible}`,backgroundColor:e.colorNeutralBackground1,color:e.colorNeutralForeground1}),n.put(`.${t}-ac-pushButton:hover`,{border:`1px solid ${e.colorNeutralStrokeAccessible}`,backgroundColor:e.colorNeutralBackground2,color:e.colorNeutralForeground2}),n.put(`.${t}-ac-pushButton:active`,{border:`1px solid ${e.colorNeutralStrokeAccessible}`,backgroundColor:e.colorNeutralBackground3,color:e.colorNeutralForeground3}),n.put(`.${t}-ac-pushButton-disabled`,{overflow:`hidden`,textOverflow:`ellipsis`,textAlign:`center`,verticalAlign:`middle`,cursor:`pointer`,fontFamily:`inherit`,fontSize:`14px`,fontWeight:`600`,padding:`4px 10px 5px 10px`,WebkitUserSelect:`none`,MozUserSelect:`none`,MsUserSelect:`none`,userSelect:`none`,height:`32px`,borderRadius:`2px`,border:`1px solid ${e.colorNeutralStrokeDisabled}`,backgroundColor:e.colorNeutralBackgroundDisabled,color:e.colorNeutralForegroundDisabled}),n.put(`.${t}-ac-ctrl-overlay`,{fontFamily:e.fontFamilyBase,position:`absolute`,left:`0`,top:`0`,zIndex:`10000`}),n.put(`.${t}-ac-ctrl`,{boxSizing:`border-box`,fontSize:`14px`,fontWeight:`normal`}),n.put(`.${t}-ac-ctrl-popup-container`,{backgroundColor:e.colorNeutralBackground1,position:`absolute`,overflowY:`auto`,boxShadow:`0px 3.2px 7.2px rgba(0,0,0,0.13), 0px 0.6px 1.8px rgba(0,0,0,0.11)`,borderRadius:`2px`}),n.put(`.${t}-ac-ctrl-popup-container:focus`,{outline:`0`}),n.put(`.${t}-ac-ctrl-slide`,{animationDuration:`0.5s`,animationTimingFunction:`cubic-bezier(0.1, 0.9, 0.2, 1)`}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideTopToBottom`,{animationName:`fadeIn, slideTopToBottom`}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideBottomToTop`,{animationName:`fadeIn, slideBottomToTop`}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideLeftToRight`,{animationName:`fadeIn, slideLeftToRight`}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideRightToLeft`,{animationName:`fadeIn, slideRightToLeft`}),n.put(`.${t}-ac-ctrl-dropdown-item`,{width:`100%`,textOverflow:`ellipsis`,overflow:`hidden`,whiteSpace:`nowrap`,display:`block`,padding:`0px 12px`,lineHeight:`30px`,cursor:`pointer`,backgroundColor:e.colorNeutralBackground1,color:e.colorNeutralForeground1}),n.put(`.${t}-ac-ctrl-dropdown-item:hover`,{backgroundColor:e.colorNeutralBackground2,color:e.colorNeutralForeground2}),n.put(`.${t}-ac-ctrl-dropdown-item:focus`,{outline:`0`,backgroundColor:e.colorNeutralBackground3,color:e.colorNeutralForeground3}),n.put(`.${t}-ac-ctrl-dropdown-item-disabled`,{width:`100%`,textOverflow:`ellipsis`,overflow:`hidden`,whiteSpace:`nowrap`,display:`block`,padding:`0px 12px`,lineHeight:`30px`,cursor:`pointer`,backgroundColor:e.colorNeutralBackgroundDisabled,color:e.colorNeutralForegroundDisabled})},Ts=e=>new T.HostConfig({fontFamily:e.fontFamilyBase,separator:{lineThickness:1,lineColor:e.colorNeutralStroke2},containerStyles:{default:{backgroundColor:e.colorNeutralBackground1,foregroundColors:{default:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},dark:{default:e.colorNeutralForeground3,subtle:e.colorNeutralForeground4},light:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},accent:{default:e.colorBrandForeground1,subtle:e.colorBrandForeground2},attention:{default:e.colorPaletteRedBackground3,subtle:e.colorPaletteRedBackground2},good:{default:e.colorPaletteGreenBackground3,subtle:e.colorPaletteGreenBackground2},warning:{default:e.colorPaletteYellowBackground3,subtle:e.colorPaletteYellowBackground2}}},emphasis:{backgroundColor:e.colorNeutralBackground3,foregroundColors:{default:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},dark:{default:e.colorNeutralForeground3,subtle:e.colorNeutralForeground4},light:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},accent:{default:e.colorBrandForeground1,subtle:e.colorBrandForeground2},attention:{default:e.colorPaletteRedBackground3,subtle:e.colorPaletteRedBackground2},good:{default:e.colorPaletteGreenBackground3,subtle:e.colorPaletteGreenBackground2},warning:{default:e.colorPaletteYellowBackground3,subtle:e.colorPaletteYellowBackground2}}}},inputs:{label:{requiredInputs:{weight:`bold`},optionalInputs:{weight:`bold`}},errorMessage:{color:`attention`,weight:`bold`}},actions:{buttonSpacing:10,actionAlignment:`right`}}),Es=`fluentUITheme`,Ds=(e,t)=>{e.hostCapabilities.setCustomProperty(Es,t)},Os=e=>{let t=e.hostCapabilities.getCustomProperty(Es);return t||=p.webLightTheme,t},ks=(e,t)=>{let n;switch(e){case Cs.SharePoint:n={theme:t,hostConfig:Ts(t)};break;case Cs.Teams:n={theme:p.teamsLightTheme,hostConfig:Ts(p.teamsLightTheme)};break;case Cs.TeamsDark:n={theme:p.teamsDarkTheme,hostConfig:Ts(p.teamsDarkTheme)};break;case Cs.TeamsHighContrast:n={theme:p.teamsHighContrastTheme,hostConfig:Ts(p.teamsHighContrastTheme)};break;default:n={theme:t,hostConfig:Ts(t)};break}return n.hostConfig.cssClassNamePrefix=`ach${Math.random().toString().replace(/\./g,``)}`,Ds(n.hostConfig,n.theme),ws(n.theme,n.hostConfig.cssClassNamePrefix),n},As=e=>{T.AdaptiveCard.onProcessMarkdown||(T.AdaptiveCard.onProcessMarkdown=(t,n)=>{n.outputHtml=new D.default().render(t),n.didProcess=!0;try{n.outputHtml=new D.default().render(t),n.didProcess=!0}catch(t){e&&e(`AdaptiveCardHost: Error parsing Markdown`,t instanceof Error?t:void 0),n.didProcess=!1}})},js=(e,t,n)=>{let r,i;return i=n?{theme:t,aadInfo:n?.pageContext?.aadInfo?{instanceUrl:n.pageContext.aadInfo.instanceUrl||``,tenantId:n.pageContext.aadInfo.tenantId||``,userId:n.pageContext.aadInfo.userId||``}:void 0,cultureInfo:n?.pageContext?.cultureInfo?{currentCultureName:n.pageContext.cultureInfo.currentCultureName,currentUICultureName:n.pageContext.cultureInfo.currentUICultureName,isRightToLeft:n.pageContext.cultureInfo.isRightToLeft||!1}:void 0,userInfo:n?.pageContext?.user?{displayName:n.pageContext.user.displayName,email:n.pageContext.user.email,isAnonymousGuestUser:n.pageContext.user.isAnonymousGuestUser||!1,isExternalGuestUser:n.pageContext.user.isExternalGuestUser||!1,loginName:n.pageContext.user.loginName,preferUserTimeZone:n.pageContext.user.preferUserTimeZone||!1}:void 0,spListInfo:n?.pageContext?.list?{id:n.pageContext.list.id,serverRelativeUrl:n.pageContext.list.serverRelativeUrl||``,title:n.pageContext.list.title}:void 0,spListItemInfo:n?.pageContext?.listItem?{id:n.pageContext.listItem.id.toString()}:void 0,spSiteInfo:n?.pageContext?.site?{absoluteUrl:n.pageContext.site.absoluteUrl,cdnPrefix:n.pageContext.site.cdnPrefix||``,classification:n.pageContext.site.classification||``,correlationId:n.pageContext.site.correlationId||``,id:n.pageContext.site.id,isNoScriptEnabled:n.pageContext.site.isNoScriptEnabled||!1,recycleBinItemCount:n.pageContext.site.recycleBinItemCount||0,serverRelativeUrl:n.pageContext.site.serverRelativeUrl||``,serverRequestPath:n.pageContext.site.serverRequestPath||``,sitePagesEnabled:n.pageContext.site.sitePagesEnabled||!1}:void 0,spWebInfo:n?.pageContext?.web?{absoluteUrl:n.pageContext.web.absoluteUrl,id:n.pageContext.web.id,isAppWeb:n.pageContext.web.isAppWeb||!1,language:n.pageContext.web.language||0,languageName:n.pageContext.web.languageName||``,logoUrl:n.pageContext.web.logoUrl||``,serverRelativeUrl:n.pageContext.web.serverRelativeUrl||``,templateName:n.pageContext.web.templateName||``,title:n.pageContext.web.title,description:n.pageContext.web.description||``}:void 0}:{theme:t},r=e?{$root:{...e?.$root,"@context":i}}:{$root:{"@context":i}},r},Ms;try{let e=[`react-dom`,`client`].join(`/`),t=require(e);typeof t.createRoot==`function`&&(Ms=t.createRoot)}catch{}function Ns(e){return Ms?Ms(e):{render(t){b.render(t,e)},unmount(){b.unmountComponentAtNode(e)}}}var Ps=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ActionRole=e.CarouselInteractionEvent=e.LogLevel=e.RefreshMode=e.TypeErrorType=e.ContainerFitStatus=e.ValidationEvent=e.ValidationPhase=e.InputLabelPosition=e.InputTextStyle=e.ActionIconPlacement=e.FillMode=e.Orientation=e.ShowCardActionMode=e.ImageStyle=e.ActionAlignment=e.VerticalAlignment=e.HorizontalAlignment=e.TextColor=e.Spacing=e.FontType=e.TextWeight=e.InputStyle=e.TextSize=e.SizeUnit=e.ImageSetPresentationStyle=e.ImageSize=e.Size=e.ActionMode=e.ActionStyle=e.ContainerStyle=void 0,e.ContainerStyle=function(){function e(){}return e.Default=`default`,e.Emphasis=`emphasis`,e.Accent=`accent`,e.Good=`good`,e.Attention=`attention`,e.Warning=`warning`,e}(),e.ActionStyle=function(){function e(){}return e.Default=`default`,e.Positive=`positive`,e.Destructive=`destructive`,e}(),e.ActionMode=function(){function e(){}return e.Primary=`primary`,e.Secondary=`secondary`,e}(),(function(e){e[e.Auto=0]=`Auto`,e[e.Stretch=1]=`Stretch`,e[e.Small=2]=`Small`,e[e.Medium=3]=`Medium`,e[e.Large=4]=`Large`})(e.Size||={}),(function(e){e[e.Small=0]=`Small`,e[e.Medium=1]=`Medium`,e[e.Large=2]=`Large`})(e.ImageSize||={}),(function(e){e[e.Default=0]=`Default`,e[e.Stacked=1]=`Stacked`})(e.ImageSetPresentationStyle||={}),(function(e){e[e.Weight=0]=`Weight`,e[e.Pixel=1]=`Pixel`})(e.SizeUnit||={}),(function(e){e[e.Small=0]=`Small`,e[e.Default=1]=`Default`,e[e.Medium=2]=`Medium`,e[e.Large=3]=`Large`,e[e.ExtraLarge=4]=`ExtraLarge`})(e.TextSize||={}),(function(e){e[e.RevealOnHover=0]=`RevealOnHover`,e[e.Default=1]=`Default`})(e.InputStyle||={}),(function(e){e[e.Lighter=0]=`Lighter`,e[e.Default=1]=`Default`,e[e.Bolder=2]=`Bolder`})(e.TextWeight||={}),(function(e){e[e.Default=0]=`Default`,e[e.Monospace=1]=`Monospace`})(e.FontType||={}),(function(e){e[e.None=0]=`None`,e[e.Small=1]=`Small`,e[e.Default=2]=`Default`,e[e.Medium=3]=`Medium`,e[e.Large=4]=`Large`,e[e.ExtraLarge=5]=`ExtraLarge`,e[e.Padding=6]=`Padding`})(e.Spacing||={}),(function(e){e[e.Default=0]=`Default`,e[e.Dark=1]=`Dark`,e[e.Light=2]=`Light`,e[e.Accent=3]=`Accent`,e[e.Good=4]=`Good`,e[e.Warning=5]=`Warning`,e[e.Attention=6]=`Attention`})(e.TextColor||={}),(function(e){e[e.Left=0]=`Left`,e[e.Center=1]=`Center`,e[e.Right=2]=`Right`})(e.HorizontalAlignment||={}),(function(e){e[e.Top=0]=`Top`,e[e.Center=1]=`Center`,e[e.Bottom=2]=`Bottom`})(e.VerticalAlignment||={}),(function(e){e[e.Left=0]=`Left`,e[e.Center=1]=`Center`,e[e.Right=2]=`Right`,e[e.Stretch=3]=`Stretch`})(e.ActionAlignment||={}),(function(e){e[e.Default=0]=`Default`,e[e.Person=1]=`Person`})(e.ImageStyle||={}),(function(e){e[e.Inline=0]=`Inline`,e[e.Popup=1]=`Popup`})(e.ShowCardActionMode||={}),(function(e){e[e.Horizontal=0]=`Horizontal`,e[e.Vertical=1]=`Vertical`})(e.Orientation||={}),(function(e){e[e.Cover=0]=`Cover`,e[e.RepeatHorizontally=1]=`RepeatHorizontally`,e[e.RepeatVertically=2]=`RepeatVertically`,e[e.Repeat=3]=`Repeat`})(e.FillMode||={}),(function(e){e[e.LeftOfTitle=0]=`LeftOfTitle`,e[e.AboveTitle=1]=`AboveTitle`})(e.ActionIconPlacement||={}),(function(e){e[e.Text=0]=`Text`,e[e.Tel=1]=`Tel`,e[e.Url=2]=`Url`,e[e.Email=3]=`Email`,e[e.Password=4]=`Password`})(e.InputTextStyle||={}),(function(e){e[e.Inline=0]=`Inline`,e[e.Above=1]=`Above`})(e.InputLabelPosition||={}),(function(e){e[e.Parse=0]=`Parse`,e[e.ToJSON=1]=`ToJSON`,e[e.Validation=2]=`Validation`})(e.ValidationPhase||={}),(function(e){e[e.Hint=0]=`Hint`,e[e.ActionTypeNotAllowed=1]=`ActionTypeNotAllowed`,e[e.CollectionCantBeEmpty=2]=`CollectionCantBeEmpty`,e[e.Deprecated=3]=`Deprecated`,e[e.ElementTypeNotAllowed=4]=`ElementTypeNotAllowed`,e[e.InteractivityNotAllowed=5]=`InteractivityNotAllowed`,e[e.InvalidPropertyValue=6]=`InvalidPropertyValue`,e[e.MissingCardType=7]=`MissingCardType`,e[e.PropertyCantBeNull=8]=`PropertyCantBeNull`,e[e.TooManyActions=9]=`TooManyActions`,e[e.UnknownActionType=10]=`UnknownActionType`,e[e.UnknownElementType=11]=`UnknownElementType`,e[e.UnsupportedCardVersion=12]=`UnsupportedCardVersion`,e[e.DuplicateId=13]=`DuplicateId`,e[e.UnsupportedProperty=14]=`UnsupportedProperty`,e[e.RequiredInputsShouldHaveLabel=15]=`RequiredInputsShouldHaveLabel`,e[e.RequiredInputsShouldHaveErrorMessage=16]=`RequiredInputsShouldHaveErrorMessage`,e[e.Other=17]=`Other`})(e.ValidationEvent||={}),(function(e){e[e.FullyInContainer=0]=`FullyInContainer`,e[e.Overflowing=1]=`Overflowing`,e[e.FullyOutOfContainer=2]=`FullyOutOfContainer`})(e.ContainerFitStatus||={}),(function(e){e[e.UnknownType=0]=`UnknownType`,e[e.ForbiddenType=1]=`ForbiddenType`})(e.TypeErrorType||={}),(function(e){e[e.Disabled=0]=`Disabled`,e[e.Manual=1]=`Manual`,e[e.Automatic=2]=`Automatic`})(e.RefreshMode||={}),(function(e){e[e.Info=0]=`Info`,e[e.Warning=1]=`Warning`,e[e.Error=2]=`Error`})(e.LogLevel||={}),(function(e){e[e.NavigationNext=0]=`NavigationNext`,e[e.NavigationPrevious=1]=`NavigationPrevious`,e[e.Pagination=2]=`Pagination`,e[e.Autoplay=3]=`Autoplay`})(e.CarouselInteractionEvent||={}),(function(e){e[e.Button=0]=`Button`,e[e.Link=1]=`Link`,e[e.Tab=2]=`Tab`,e[e.Menu=3]=`Menu`,e[e.MenuItem=4]=`MenuItem`})(e.ActionRole||={})})),Fs=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UUID=e.SizeAndUnit=e.PaddingDefinition=e.SpacingDefinition=e.StringWithSubstitutions=e.ContentTypes=e.GlobalSettings=void 0;var t=Ps();e.GlobalSettings=function(){function e(){}return e.useAdvancedTextBlockTruncation=!0,e.useAdvancedCardBottomTruncation=!1,e.useMarkdownInRadioButtonAndCheckbox=!0,e.allowMarkForTextHighlighting=!1,e.alwaysBleedSeparators=!1,e.enableFullJsonRoundTrip=!1,e.displayInputValidationErrors=!0,e.allowPreProcessingPropertyValues=!1,e.setTabIndexAtCardRoot=!0,e.enableFallback=!0,e.useWebkitLineClamp=!0,e.allowMoreThanMaxActionsInOverflowMenu=!1,e.removePaddingFromContainersWithBackgroundImage=!1,e.resetInputsDirtyStateAfterActionExecution=!0,e.applets={logEnabled:!0,logLevel:t.LogLevel.Error,maximumRetryAttempts:3,defaultTimeBetweenRetryAttempts:3e3,authPromptWidth:400,authPromptHeight:600,refresh:{mode:t.RefreshMode.Manual,timeBetweenAutomaticRefreshes:3e3,maximumConsecutiveAutomaticRefreshes:3,allowManualRefreshesAfterAutomaticRefreshes:!0}},e}(),e.ContentTypes={applicationJson:`application/json`,applicationXWwwFormUrlencoded:`application/x-www-form-urlencoded`},e.StringWithSubstitutions=function(){function t(){this._isProcessed=!1}return t.prototype.getReferencedInputs=function(e,t){if(!t)throw Error(`The referencedInputs parameter cannot be null.`);if(this._original)for(var n=0,r=e;n<r.length;n++){var i=r[n];RegExp(`\\{{2}(`+i.id+`).value\\}{2}`,`gi`).exec(this._original)!=null&&i.id&&(t[i.id]=i)}},t.prototype.substituteInputValues=function(t,n){if(this._processed=this._original,this._original)for(var r=/\{{2}([a-z0-9_$@]+).value\}{2}/gi,i=void 0;(i=r.exec(this._original))!==null&&this._processed;)for(var a=0,o=Object.keys(t);a<o.length;a++){var s=o[a];if(s.toLowerCase()===i[1].toLowerCase()){var c=t[s],l=``;c.value&&(l=c.value),n===e.ContentTypes.applicationJson?(l=JSON.stringify(l),l=l.slice(1,-1)):n===e.ContentTypes.applicationXWwwFormUrlencoded&&(l=encodeURIComponent(l)),this._processed=this._processed.replace(i[0],l);break}}this._isProcessed=!0},t.prototype.getOriginal=function(){return this._original},t.prototype.get=function(){return this._isProcessed?this._processed:this._original},t.prototype.set=function(e){this._original=e,this._isProcessed=!1},t}(),e.SpacingDefinition=function(){function e(e,t,n,r){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0),this.left=0,this.top=0,this.right=0,this.bottom=0,this.top=e,this.right=t,this.bottom=n,this.left=r}return e}(),e.PaddingDefinition=function(){function e(e,n,r,i){e===void 0&&(e=t.Spacing.None),n===void 0&&(n=t.Spacing.None),r===void 0&&(r=t.Spacing.None),i===void 0&&(i=t.Spacing.None),this.top=t.Spacing.None,this.right=t.Spacing.None,this.bottom=t.Spacing.None,this.left=t.Spacing.None,this.top=e,this.right=n,this.bottom=r,this.left=i}return e}(),e.SizeAndUnit=function(){function e(e,t){this.physicalSize=e,this.unit=t}return e.parse=function(n,r){r===void 0&&(r=!1);var i=new e(0,t.SizeUnit.Weight);if(typeof n==`number`)return i.physicalSize=n,i;if(typeof n==`string`){var a=/^([0-9]+)(px|\*)?$/g.exec(n),o=r?3:2;if(a&&a.length>=o)return i.physicalSize=parseInt(a[1]),a.length===3&&a[2]===`px`&&(i.unit=t.SizeUnit.Pixel),i}throw Error(`Invalid size: `+n)},e}();var n=function(){function e(){}return e.generate=function(){var t=Math.random()*4294967295|0,n=Math.random()*4294967295|0,r=Math.random()*4294967295|0,i=Math.random()*4294967295|0;return e.lut[t&255]+e.lut[t>>8&255]+e.lut[t>>16&255]+e.lut[t>>24&255]+`-`+e.lut[n&255]+e.lut[n>>8&255]+`-`+e.lut[n>>16&15|64]+e.lut[n>>24&255]+`-`+e.lut[r&63|128]+e.lut[r>>8&255]+`-`+e.lut[r>>16&255]+e.lut[r>>24&255]+e.lut[i&255]+e.lut[i>>8&255]+e.lut[i>>16&255]+e.lut[i>>24&255]},e.initialize=function(){for(var t=0;t<256;t++)e.lut[t]=(t<16?`0`:``)+t.toString(16)},e.lut=[],e}();e.UUID=n,n.initialize()})),Is=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.debounce=e.addCancelSelectActionEventHandler=e.clearElementChildren=e.getScrollY=e.getScrollX=e.getFitStatus=e.truncate=e.truncateText=e.stringToCssColor=e.parseEnum=e.getEnumValueByName=e.parseBool=e.parseNumber=e.parseString=e.appendChild=e.generateUniqueId=e.isMobileOS=e.isInternetExplorer=void 0;var t=Ps(),n=Fs();function r(){return window.document.documentMode!==void 0}e.isInternetExplorer=r;function i(){var e=window.navigator.userAgent;return!!e.match(/Android/i)||!!e.match(/iPad/i)||!!e.match(/iPhone/i)}e.isMobileOS=i;function a(){return`__ac-`+n.UUID.generate()}e.generateUniqueId=a;function o(e,t){t&&e.appendChild(t)}e.appendChild=o;function s(e,t){return typeof e==`string`?e:t}e.parseString=s;function c(e,t){return typeof e==`number`?e:t}e.parseNumber=c;function l(e,t){if(typeof e==`boolean`)return e;if(typeof e==`string`)switch(e.toLowerCase()){case`true`:return!0;case`false`:return!1;default:return t}return t}e.parseBool=l;function u(e,t){for(var n in e){var r=parseInt(n,10);if(r>=0){var i=e[n];if(i&&typeof i==`string`&&i.toLowerCase()===t.toLowerCase())return r}}}e.getEnumValueByName=u;function d(e,t,n){if(!t)return n;var r=u(e,t);return r===void 0?n:r}e.parseEnum=d;function f(e){if(e){var t=/#([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?/gi.exec(e);if(t&&t[4]){var n=parseInt(t[1],16)/255,r=parseInt(t[2],16),i=parseInt(t[3],16),a=parseInt(t[4],16);return`rgba(`+r+`,`+i+`,`+a+`,`+n+`)`}}return e}e.stringToCssColor=f;function p(e,t,n,r,i){var a=function(){return t-e.scrollHeight>=-1};if(!a()){for(var o=_(n),s=0,c=o.length,l=0;s<c;){var u=Math.floor((s+c)/2);r(n,o[u]),a()?(l=o[u],s=u+1):c=u}if(r(n,l),i&&t-e.scrollHeight>=i-1){for(var d=v(n,l);d<n.length&&(r(n,d),a());)l=d,d=v(n,d);r(n,l)}}}function m(e,t,n){p(e,t,e.innerText,function(t,n){e.innerText=t.substring(0,n)+`...`},n)}e.truncateText=m;var h=typeof window>`u`?void 0:window.trustedTypes?.createPolicy(`adaptivecards#deprecatedExportedFunctionPolicy`,{createHTML:function(e){return e}});function g(e,t,n){p(e,t,e.innerHTML,function(t,n){var r=t.substring(0,n)+`...`;e.innerHTML=h?.createHTML(r)??r},n)}e.truncate=g;function _(e){for(var t=[],n=v(e,-1);n<e.length;)e[n]===` `&&t.push(n),n=v(e,n);return t}function v(e,t){for(t+=1;t<e.length&&e[t]===`<`;)for(;t<e.length&&e[t++]!==`>`;)continue;return t}function y(e,n){var r=e.offsetTop;return r+e.clientHeight<=n?t.ContainerFitStatus.FullyInContainer:r<n?t.ContainerFitStatus.Overflowing:t.ContainerFitStatus.FullyOutOfContainer}e.getFitStatus=y;function b(){return window.pageXOffset}e.getScrollX=b;function x(){return window.pageYOffset}e.getScrollY=x;function S(e){for(;e.firstChild;)e.removeChild(e.firstChild)}e.clearElementChildren=S;function C(e){e.onclick=function(e){e.preventDefault(),e.cancelBubble=!0}}e.addCancelSelectActionEventHandler=C;function w(e,t){var n;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n&&clearTimeout(n),n=setTimeout(function(){e.apply(void 0,r)},t)}return r}e.debounce=w})),Ls=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Strings=void 0,e.Strings=function(){function e(){}return e.errors={unknownElementType:function(e){return`Unknown element type "${e}". Fallback will be used if present.`},unknownActionType:function(e){return`Unknown action type "${e}". Fallback will be used if present.`},elementTypeNotAllowed:function(e){return`Element type "${e}" is not allowed in this context.`},actionTypeNotAllowed:function(e){return`Action type "${e}" is not allowed in this context.`},invalidPropertyValue:function(e,t){return`Invalid value "${e}" for property "${t}".`},showCardMustHaveCard:function(){return`"An Action.ShowCard must have its "card" property set to a valid AdaptiveCard object.`},invalidColumnWidth:function(e){return`Invalid column width "${e}" - defaulting to "auto".`},invalidCardVersion:function(e){return`Invalid card version. Defaulting to "${e}".`},invalidVersionString:function(e){return`Invalid version string "${e}".`},propertyValueNotSupported:function(e,t,n,r){return`Value "${e}" for property "${t}" is supported in version ${n}, but you are using version ${r}.`},propertyNotSupported:function(e,t,n){return`Property "${e}" is supported in version ${t}, but you are using version ${n}.`},indexOutOfRange:function(e){return`Index out of range (${e}).`},elementCannotBeUsedAsInline:function(){return`RichTextBlock.addInline: the specified card element cannot be used as a RichTextBlock inline.`},inlineAlreadyParented:function(){return`RichTextBlock.addInline: the specified inline already belongs to another RichTextBlock.`},interactivityNotAllowed:function(){return`Interactivity is not allowed.`},inputsMustHaveUniqueId:function(){return`All inputs must have a unique Id.`},choiceSetMustHaveAtLeastOneChoice:function(){return`An Input.ChoiceSet must have at least one choice defined.`},choiceSetChoicesMustHaveTitleAndValue:function(){return`All choices in an Input.ChoiceSet must have their title and value properties set.`},propertyMustBeSet:function(e){return`Property "${e}" must be set.`},actionHttpHeadersMustHaveNameAndValue:function(){return`All headers of an Action.Http must have their name and value properties set.`},tooManyActions:function(e){return`Maximum number of actions exceeded (${e}).`},tooLittleTimeDelay:function(e){return`Autoplay Delay is too short (${e}).`},tooManyCarouselPages:function(e){return`Maximum number of Carousel pages exceeded (${e}).`},invalidInitialPageIndex:function(e){return`InitialPage for carousel is invalid (${e}).`},columnAlreadyBelongsToAnotherSet:function(){return`This column already belongs to another ColumnSet.`},invalidCardType:function(){return`Invalid or missing card type. Make sure the card's type property is set to "AdaptiveCard".`},unsupportedCardVersion:function(e,t){return`The specified card version (${e}) is not supported or still in preview. The latest released card version is ${t}.`},duplicateId:function(e){return`Duplicate Id "${e}".`},markdownProcessingNotEnabled:function(){return`Markdown processing isn't enabled. Please see https://www.npmjs.com/package/adaptivecards#supporting-markdown`},processMarkdownEventRemoved:function(){return`The processMarkdown event has been removed. Please update your code and set onProcessMarkdown instead.`},elementAlreadyParented:function(){return`The element already belongs to another container.`},actionAlreadyParented:function(){return`The action already belongs to another element.`},elementTypeNotStandalone:function(e){return`Elements of type ${e} cannot be used as standalone elements.`},invalidInputLabelWidth:function(){return`Invalid input label width. Defaulting to label width from host config.`}},e.magicCodeInputCard={tryAgain:function(){return`That didn't work... let's try again.`},pleaseLogin:function(){return`Please login in the popup. You will obtain a magic code. Paste that code below and select "Submit"`},enterMagicCode:function(){return`Enter magic code`},pleaseEnterMagicCodeYouReceived:function(){return`Please enter the magic code you received.`},submit:function(){return`Submit`},cancel:function(){return`Cancel`},somethingWentWrong:function(){return`Something went wrong. This action can't be handled.`},authenticationFailed:function(){return`Authentication failed.`}},e.runtime={automaticRefreshPaused:function(){return`Automatic refresh paused.`},clckToRestartAutomaticRefresh:function(){return`Click to restart.`},refreshThisCard:function(){return`Refresh this card`}},e.hints={dontUseWeightedAndStrecthedColumnsInSameSet:function(){return`It is not recommended to use weighted and stretched columns in the same ColumnSet, because in such a situation stretched columns will always get the minimum amount of space.`}},e.defaults={inlineActionTitle:function(){return`Inline Action`},overflowButtonText:function(){return`...`},overflowButtonTooltip:function(){return`More options`},emptyElementText:function(e){return`Empty ${e}`},mediaPlayerAriaLabel:function(){return`Media content`},mediaPlayerPlayMedia:function(){return`Play media`},youTubeVideoPlayer:function(){return`YouTube video player`},vimeoVideoPlayer:function(){return`Vimeo video player`},dailymotionVideoPlayer:function(){return`Dailymotion video player`},carouselNavigationPreviousTooltip:function(){return`Previous carousel page`},carouselNavigationNextTooltip:function(){return`Next carousel page`}},e}()})),Rs=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.SerializableObject=e.property=e.SerializableObjectSchema=e.CustomProperty=e.SerializableObjectCollectionProperty=e.SerializableObjectProperty=e.EnumProperty=e.ValueSetProperty=e.StringArrayProperty=e.PixelSizeProperty=e.NumProperty=e.BoolProperty=e.StringProperty=e.PropertyDefinition=e.BaseSerializationContext=e.isVersionLessOrEqual=e.Versions=e.Version=void 0;var n=Fs(),r=Is(),i=Ps(),a=Ls(),o=function(){function e(e,t,n){e===void 0&&(e=1),t===void 0&&(t=1),this._isValid=!0,this._major=e,this._minor=t,this._label=n}return e.parse=function(t,n){if(t){var r=new e;r._versionString=t;var o=/(\d+).(\d+)/gi.exec(t);return o!=null&&o.length===3?(r._major=parseInt(o[1]),r._minor=parseInt(o[2])):r._isValid=!1,r._isValid||n.logParseEvent(void 0,i.ValidationEvent.InvalidPropertyValue,a.Strings.errors.invalidVersionString(r._versionString)),r}},e.prototype.toString=function(){return this._isValid?this._major+`.`+this._minor:this._versionString},e.prototype.toJSON=function(){return this.toString()},e.prototype.compareTo=function(e){if(!this.isValid||!e.isValid)throw Error(`Cannot compare invalid version.`);return this.major>e.major?1:this.major<e.major?-1:this.minor>e.minor?1:this.minor<e.minor?-1:0},Object.defineProperty(e.prototype,`label`,{get:function(){return this._label?this._label:this.toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`major`,{get:function(){return this._major},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`minor`,{get:function(){return this._minor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`isValid`,{get:function(){return this._isValid},enumerable:!1,configurable:!0}),e}();e.Version=o;var s=function(){function e(){}return e.getAllDeclaredVersions=function(){var t=e,n=[];for(var r in t)if(r.match(/^v[0-9_]*$/))try{var i=t[r];i instanceof o&&n.push(i)}catch{}return n.sort(function(e,t){return e.compareTo(t)})},e.v1_0=new o(1,0),e.v1_1=new o(1,1),e.v1_2=new o(1,2),e.v1_3=new o(1,3),e.v1_4=new o(1,4),e.v1_5=new o(1,5),e.v1_6=new o(1,6,`1.6 Preview`),e.latest=e.v1_5,e}();e.Versions=s;function c(e,t){return e instanceof o&&t instanceof o?t.compareTo(e)>=0:!0}e.isVersionLessOrEqual=c;var l=function(){function e(e){e===void 0&&(e=s.latest),this._validationEvents=[],this.targetVersion=e}return e.prototype.isTemplateString=function(e){return typeof e==`string`?e.startsWith("${"):!1},e.prototype.tryDeleteValue=function(e,t){n.GlobalSettings.enableFullJsonRoundTrip||delete e[t]},e.prototype.tryDeleteDefaultValue=function(e,t){(!n.GlobalSettings.enableFullJsonRoundTrip||!this.isTemplateString(e[t]))&&delete e[t]},e.prototype.serializeValue=function(e,t,r,i,a){i===void 0&&(i=void 0),a===void 0&&(a=!1),r==null?(!n.GlobalSettings.enableFullJsonRoundTrip||a)&&delete e[t]:r===i?(!n.GlobalSettings.enableFullJsonRoundTrip||a||!this.isTemplateString(e[t]))&&delete e[t]:e[t]=r},e.prototype.serializeString=function(e,t,n,r){n==null?this.tryDeleteValue(e,t):n===r?this.tryDeleteDefaultValue(e,t):e[t]=n},e.prototype.serializeBool=function(e,t,n,r){n==null?this.tryDeleteValue(e,t):n===r?this.tryDeleteDefaultValue(e,t):e[t]=n},e.prototype.serializeNumber=function(e,t,n,r){n==null||isNaN(n)?this.tryDeleteValue(e,t):n===r?this.tryDeleteDefaultValue(e,t):e[t]=n},e.prototype.serializeEnum=function(e,t,n,r,i){i===void 0&&(i=void 0),r==null?this.tryDeleteValue(t,n):r===i?this.tryDeleteDefaultValue(t,n):t[n]=e[r]},e.prototype.serializeArray=function(e,t,n){var r=[];if(n)for(var i=0,a=n;i<a.length;i++){var o=a[i],s=void 0;s=o instanceof m?o.toJSON(this):o.toJSON?o.toJSON():o,s!==void 0&&r.push(s)}r.length===0?e.hasOwnProperty(t)&&Array.isArray(e[t])&&delete e[t]:this.serializeValue(e,t,r)},e.prototype.clearEvents=function(){this._validationEvents=[]},e.prototype.logEvent=function(e,t,n,r){this._validationEvents.push({source:e,phase:t,event:n,message:r})},e.prototype.logParseEvent=function(e,t,n){this.logEvent(e,i.ValidationPhase.Parse,t,n)},e.prototype.getEventAt=function(e){return this._validationEvents[e]},Object.defineProperty(e.prototype,`eventCount`,{get:function(){return this._validationEvents.length},enumerable:!1,configurable:!0}),e}();e.BaseSerializationContext=l;var u=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(l),d=function(){function e(t,n,r,i){this.targetVersion=t,this.name=n,this.defaultValue=r,this.onGetInitialValue=i,this.isSerializationEnabled=!0,this.sequentialNumber=e._sequentialNumber,e._sequentialNumber++}return e.prototype.getInternalName=function(){return this.name},e.prototype.parse=function(e,t,n){return t[this.name]},e.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,n,this.defaultValue)},e._sequentialNumber=0,e}();e.PropertyDefinition=d,e.StringProperty=function(e){t(n,e);function n(t,n,r,i,a,o){r===void 0&&(r=!0);var s=e.call(this,t,n,a,o)||this;return s.targetVersion=t,s.name=n,s.treatEmptyAsUndefined=r,s.regEx=i,s.defaultValue=a,s.onGetInitialValue=o,s}return n.prototype.parse=function(e,t,n){var o=r.parseString(t[this.name],this.defaultValue);if(!(o===void 0||o===``&&this.treatEmptyAsUndefined)&&this.regEx!==void 0&&!this.regEx.exec(o)){n.logParseEvent(e,i.ValidationEvent.InvalidPropertyValue,a.Strings.errors.invalidPropertyValue(o,this.name));return}return o},n.prototype.toJSON=function(e,t,n,r){r.serializeString(t,this.name,n===``&&this.treatEmptyAsUndefined?void 0:n,this.defaultValue)},n}(d),e.BoolProperty=function(e){t(n,e);function n(t,n,r,i){var a=e.call(this,t,n,r,i)||this;return a.targetVersion=t,a.name=n,a.defaultValue=r,a.onGetInitialValue=i,a}return n.prototype.parse=function(e,t,n){return r.parseBool(t[this.name],this.defaultValue)},n.prototype.toJSON=function(e,t,n,r){r.serializeBool(t,this.name,n,this.defaultValue)},n}(d),e.NumProperty=function(e){t(n,e);function n(t,n,r,i){var a=e.call(this,t,n,r,i)||this;return a.targetVersion=t,a.name=n,a.defaultValue=r,a.onGetInitialValue=i,a}return n.prototype.parse=function(e,t,n){return r.parseNumber(t[this.name],this.defaultValue)},n.prototype.toJSON=function(e,t,n,r){r.serializeNumber(t,this.name,n,this.defaultValue)},n}(d),e.PixelSizeProperty=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.parse=function(e,t,r){var o=void 0,s=t[this.name];if(typeof s==`string`){var c=!1;try{var l=n.SizeAndUnit.parse(s,!0);l.unit===i.SizeUnit.Pixel&&(o=l.physicalSize,c=!0)}catch{}c||r.logParseEvent(e,i.ValidationEvent.InvalidPropertyValue,a.Strings.errors.invalidPropertyValue(t[this.name],this.name))}return o},r.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,typeof n==`number`&&!isNaN(n)?n+`px`:void 0)},r}(d),e.StringArrayProperty=function(e){t(n,e);function n(t,n,r,i){var a=e.call(this,t,n,r,i)||this;return a.targetVersion=t,a.name=n,a.defaultValue=r,a.onGetInitialValue=i,a}return n.prototype.parse=function(e,t,n){var r=t[this.name];if(r===void 0||!Array.isArray(r))return this.defaultValue;for(var a=[],o=0,s=r;o<s.length;o++){var c=s[o];typeof c==`string`?a.push(c):n.logParseEvent(e,i.ValidationEvent.InvalidPropertyValue,`Invalid array value "${JSON.stringify(c)}" of type "${typeof c}" ignored for "${this.name}".`)}return a},n.prototype.toJSON=function(e,t,n,r){r.serializeArray(t,this.name,n)},n}(d),e.ValueSetProperty=function(e){t(n,e);function n(t,n,r,i,a){var o=e.call(this,t,n,i,a)||this;return o.targetVersion=t,o.name=n,o.values=r,o.defaultValue=i,o.onGetInitialValue=a,o}return n.prototype.isValidValue=function(e,t){for(var n=0,r=this.values;n<r.length;n++){var i=r[n];if(e.toLowerCase()===i.value.toLowerCase())return(i.targetVersion?i.targetVersion:this.targetVersion).compareTo(t.targetVersion)<=0}return!1},n.prototype.parse=function(e,t,n){var r=t[this.name];if(r===void 0)return this.defaultValue;if(typeof r==`string`)for(var o=0,s=this.values;o<s.length;o++){var c=s[o];if(r.toLowerCase()===c.value.toLowerCase()){var l=c.targetVersion?c.targetVersion:this.targetVersion;return l.compareTo(n.targetVersion)<=0?c.value:(n.logParseEvent(e,i.ValidationEvent.InvalidPropertyValue,a.Strings.errors.propertyValueNotSupported(r,this.name,l.toString(),n.targetVersion.toString())),this.defaultValue)}}return n.logParseEvent(e,i.ValidationEvent.InvalidPropertyValue,a.Strings.errors.invalidPropertyValue(r,this.name)),this.defaultValue},n.prototype.toJSON=function(e,t,n,r){var o=!1;if(n!==void 0){o=!0;for(var s=0,c=this.values;s<c.length;s++){var l=c[s];if(l.value===n){var u=l.targetVersion?l.targetVersion:this.targetVersion;if(u.compareTo(r.targetVersion)<=0){o=!1;break}else r.logEvent(e,i.ValidationPhase.ToJSON,i.ValidationEvent.InvalidPropertyValue,a.Strings.errors.propertyValueNotSupported(n,this.name,u.toString(),r.targetVersion.toString()))}}}o||r.serializeValue(t,this.name,n,this.defaultValue,!0)},n}(d),e.EnumProperty=function(e){t(n,e);function n(t,n,r,i,a,o){var s=e.call(this,t,n,i,o)||this;if(s.targetVersion=t,s.name=n,s.enumType=r,s.defaultValue=i,s.onGetInitialValue=o,s._values=[],a)s._values=a;else for(var c in r){var l=parseInt(c,10);l>=0&&s._values.push({value:l})}return s}return n.prototype.parse=function(e,t,n){var o=t[this.name];if(typeof o!=`string`)return this.defaultValue;var s=r.getEnumValueByName(this.enumType,o);if(s!==void 0)for(var c=0,l=this.values;c<l.length;c++){var u=l[c];if(u.value===s){var d=u.targetVersion?u.targetVersion:this.targetVersion;return d.compareTo(n.targetVersion)<=0?s:(n.logParseEvent(e,i.ValidationEvent.InvalidPropertyValue,a.Strings.errors.propertyValueNotSupported(o,this.name,d.toString(),n.targetVersion.toString())),this.defaultValue)}}return n.logParseEvent(e,i.ValidationEvent.InvalidPropertyValue,a.Strings.errors.invalidPropertyValue(o,this.name)),this.defaultValue},n.prototype.toJSON=function(e,t,n,r){var o=!1;if(n!==void 0){o=!0;for(var s=0,c=this.values;s<c.length;s++){var l=c[s];if(l.value===n)if((l.targetVersion?l.targetVersion:this.targetVersion).compareTo(r.targetVersion)<=0){o=!1;break}else r.logEvent(e,i.ValidationPhase.ToJSON,i.ValidationEvent.InvalidPropertyValue,a.Strings.errors.invalidPropertyValue(n,this.name))}}o||r.serializeEnum(this.enumType,t,this.name,n,this.defaultValue)},Object.defineProperty(n.prototype,`values`,{get:function(){return this._values},enumerable:!1,configurable:!0}),n}(d),e.SerializableObjectProperty=function(e){t(n,e);function n(t,n,r,i,a){i===void 0&&(i=!1);var o=e.call(this,t,n,a,function(e){return o.nullable?void 0:new o.objectType})||this;return o.targetVersion=t,o.name=n,o.objectType=r,o.nullable=i,o}return n.prototype.parse=function(e,t,n){var r=t[this.name];if(r===void 0)return this.onGetInitialValue?this.onGetInitialValue(e):this.defaultValue;var i=new this.objectType;return i.parse(r,n),i},n.prototype.toJSON=function(e,t,n,r){var i=void 0;n!==void 0&&!n.hasAllDefaultValues()&&(i=n.toJSON(r)),typeof i==`object`&&Object.keys(i).length===0&&(i=void 0),r.serializeValue(t,this.name,i,this.defaultValue,!0)},n}(d),e.SerializableObjectCollectionProperty=function(e){t(n,e);function n(t,n,r,i){var a=e.call(this,t,n,void 0,function(e){return[]})||this;return a.targetVersion=t,a.name=n,a.objectType=r,a.onItemAdded=i,a}return n.prototype.parse=function(e,t,n){var r=[],i=t[this.name];if(Array.isArray(i))for(var a=0,o=i;a<o.length;a++){var s=o[a],c=new this.objectType;c.parse(s,n),r.push(c),this.onItemAdded&&this.onItemAdded(e,c)}return r.length>0?r:this.onGetInitialValue?this.onGetInitialValue(e):void 0},n.prototype.toJSON=function(e,t,n,r){r.serializeArray(t,this.name,n)},n}(d),e.CustomProperty=function(e){t(n,e);function n(t,n,r,i,a,o){var s=e.call(this,t,n,a,o)||this;if(s.targetVersion=t,s.name=n,s.onParse=r,s.onToJSON=i,s.defaultValue=a,s.onGetInitialValue=o,!s.onParse)throw Error(`CustomPropertyDefinition instances must have an onParse handler.`);if(!s.onToJSON)throw Error(`CustomPropertyDefinition instances must have an onToJSON handler.`);return s}return n.prototype.parse=function(e,t,n){return this.onParse(e,this,t,n)},n.prototype.toJSON=function(e,t,n,r){this.onToJSON(e,this,t,n,r)},n}(d);var f=function(){function e(){this._properties=[]}return e.prototype.indexOf=function(e){for(var t=0;t<this._properties.length;t++)if(this._properties[t]===e)return t;return-1},e.prototype.add=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];this.indexOf(i)===-1&&this._properties.push(i)}},e.prototype.remove=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++)for(var i=r[n];;){var a=this.indexOf(i);if(a>=0)this._properties.splice(a,1);else break}},e.prototype.getItemAt=function(e){return this._properties[e]},e.prototype.getCount=function(){return this._properties.length},e}();e.SerializableObjectSchema=f;function p(e){return function(t,n){var r=Object.getOwnPropertyDescriptor(t,n)||{};!r.get&&!r.set&&(r.get=function(){return this.getValue(e)},r.set=function(t){this.setValue(e,t)},Object.defineProperty(t,n,r))}}e.property=p;var m=function(){function e(){this._propertyBag={},this._rawProperties={},this.maxVersion=e.defaultMaxVersion;for(var t=this.getSchema(),n=0;n<t.getCount();n++){var r=t.getItemAt(n);r.onGetInitialValue&&this.setValue(r,r.onGetInitialValue(this))}}return e.prototype.getDefaultSerializationContext=function(){return new u},e.prototype.populateSchema=function(t){var n=this.constructor,r=[];for(var i in n)try{var a=n[i];a instanceof d&&r.push(a)}catch{}if(r.length>0){var o=r.sort(function(e,t){return e.sequentialNumber>t.sequentialNumber?1:e.sequentialNumber<t.sequentialNumber?-1:0});t.add.apply(t,o)}e.onRegisterCustomProperties&&e.onRegisterCustomProperties(this,t)},e.prototype.getValue=function(e){return this._propertyBag.hasOwnProperty(e.getInternalName())?this._propertyBag[e.getInternalName()]:e.defaultValue},e.prototype.setValue=function(e,t){t==null?delete this._propertyBag[e.getInternalName()]:this._propertyBag[e.getInternalName()]=t},e.prototype.internalParse=function(e,t){if(this._propertyBag={},this._rawProperties=n.GlobalSettings.enableFullJsonRoundTrip&&e||{},e)for(var r=this.getSchema(),o=0;o<r.getCount();o++){var s=r.getItemAt(o);if(s.isSerializationEnabled){var c=s.onGetInitialValue?s.onGetInitialValue(this):void 0;e.hasOwnProperty(s.name)&&(s.targetVersion.compareTo(t.targetVersion)<=0?c=s.parse(this,e,t):t.logParseEvent(this,i.ValidationEvent.UnsupportedProperty,a.Strings.errors.propertyNotSupported(s.name,s.targetVersion.toString(),t.targetVersion.toString()))),this.setValue(s,c)}}else this.resetDefaultValues()},e.prototype.internalToJSON=function(e,t){for(var n=this.getSchema(),r=[],i=0;i<n.getCount();i++){var a=n.getItemAt(i);a.isSerializationEnabled&&a.targetVersion.compareTo(t.targetVersion)<=0&&r.indexOf(a.name)===-1&&(a.toJSON(this,e,this.getValue(a),t),r.push(a.name))}},e.prototype.shouldSerialize=function(e){return!0},e.prototype.parse=function(e,t){this.internalParse(e,t||new u)},e.prototype.toJSON=function(e){var t;if(e&&e instanceof l?t=e:(t=this.getDefaultSerializationContext(),t.toJSONOriginalParam=e),this.shouldSerialize(t)){var r=void 0;return r=n.GlobalSettings.enableFullJsonRoundTrip&&this._rawProperties&&typeof this._rawProperties==`object`?this._rawProperties:{},this.internalToJSON(r,t),r}else return},e.prototype.hasDefaultValue=function(e){return this.getValue(e)===e.defaultValue},e.prototype.hasAllDefaultValues=function(){for(var e=this.getSchema(),t=0;t<e.getCount();t++){var n=e.getItemAt(t);if(!this.hasDefaultValue(n))return!1}return!0},e.prototype.resetDefaultValues=function(){for(var e=this.getSchema(),t=0;t<e.getCount();t++){var n=e.getItemAt(t);this.setValue(n,n.defaultValue)}},e.prototype.setCustomProperty=function(e,t){typeof t==`string`&&!t||t==null?delete this._rawProperties[e]:this._rawProperties[e]=t},e.prototype.getCustomProperty=function(e){return this._rawProperties[e]},e.prototype.getSchema=function(){var t=e._schemaCache[this.getSchemaKey()];return t||(t=new f,this.populateSchema(t),e._schemaCache[this.getSchemaKey()]=t),t},e.defaultMaxVersion=s.latest,e._schemaCache={},e}();e.SerializableObject=m})),zs=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.HostCapabilities=void 0;var n=Rs();e.HostCapabilities=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t._capabilities={},t}return r.prototype.getSchemaKey=function(){return`HostCapabilities`},r.prototype.internalParse=function(t,r){if(e.prototype.internalParse.call(this,t,r),t)for(var i in t){var a=t[i];if(typeof a==`string`)if(a===`*`)this.addCapability(i,`*`);else{var o=n.Version.parse(a,r);o?.isValid&&this.addCapability(i,o)}}},r.prototype.internalToJSON=function(t,n){for(var r in e.prototype.internalToJSON.call(this,t,n),this._capabilities)t[r]=this._capabilities[r]},r.prototype.addCapability=function(e,t){this._capabilities[e]=t},r.prototype.removeCapability=function(e){delete this._capabilities[e]},r.prototype.clear=function(){this._capabilities={}},r.prototype.hasCapability=function(e,t){return this._capabilities.hasOwnProperty(e)?t===`*`||this._capabilities[e]===`*`?!0:t.compareTo(this._capabilities[e])<=0:!1},r.prototype.areAllMet=function(e){for(var t in this._capabilities)if(!e.hasCapability(t,this._capabilities[t]))return!1;return!0},r}(n.SerializableObject)})),Bs=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.defaultHostConfig=e.HostConfig=e.CarouselConfig=e.FontTypeSet=e.FontTypeDefinition=e.ContainerStyleSet=e.ContainerStyleDefinition=e.ColorSetDefinition=e.ActionsConfig=e.ShowCardActionConfig=e.FactSetConfig=e.FactTitleDefinition=e.FactTextDefinition=e.InputConfig=e.InputLabelConfig=e.RequiredInputLabelTextDefinition=e.TextBlockConfig=e.TextStyleSet=e.TextStyleDefinition=e.BaseTextDefinition=e.TableConfig=e.MediaConfig=e.ImageSetConfig=e.AdaptiveCardConfig=e.TextColorDefinition=e.ColorDefinition=void 0;var n=Ps(),r=Is(),i=Fs(),a=zs();function o(e,t,n){if(typeof t==`string`){var i=r.parseEnum(e,t,n);return i===void 0?n:i}else if(typeof t==`number`)return t;else return n}var s=function(){function e(e,t){this.default=`#000000`,this.subtle=`#666666`,e&&(this.default=e),t&&(this.subtle=t)}return e.prototype.parse=function(e){e&&(this.default=e.default||this.default,this.subtle=e.subtle||this.subtle)},e}();e.ColorDefinition=s;var c=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.highlightColors=new s(`#22000000`,`#11000000`),t}return n.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&this.highlightColors.parse(t.highlightColors)},n}(s);e.TextColorDefinition=c;var l=function(){function e(e){this.allowCustomStyle=!1,e&&(this.allowCustomStyle=e.allowCustomStyle||this.allowCustomStyle)}return e}();e.AdaptiveCardConfig=l;var u=function(){function e(e){this.imageSize=n.Size.Medium,this.maxImageHeight=100,e&&(this.imageSize=e.imageSize==null?this.imageSize:e.imageSize,this.maxImageHeight=r.parseNumber(e.maxImageHeight,100))}return e.prototype.toJSON=function(){return{imageSize:n.Size[this.imageSize],maxImageHeight:this.maxImageHeight}},e}();e.ImageSetConfig=u;var d=function(){function e(e){this.allowInlinePlayback=!0,e&&(this.defaultPoster=e.defaultPoster,this.allowInlinePlayback=e.allowInlinePlayback||this.allowInlinePlayback)}return e.prototype.toJSON=function(){return{defaultPoster:this.defaultPoster,allowInlinePlayback:this.allowInlinePlayback}},e}();e.MediaConfig=d;var f=function(){function e(e){this.cellSpacing=8,e&&(this.cellSpacing=e.cellSpacing&&typeof e.cellSpacing==`number`?e.cellSpacing:this.cellSpacing)}return e.prototype.toJSON=function(){return{cellSpacing:this.cellSpacing}},e}();e.TableConfig=f;var p=function(){function e(e){this.size=n.TextSize.Default,this.color=n.TextColor.Default,this.isSubtle=!1,this.weight=n.TextWeight.Default,this.parse(e)}return e.prototype.parse=function(e){e&&(this.size=o(n.TextSize,e.size,this.size),this.color=o(n.TextColor,e.color,this.color),this.isSubtle=e.isSubtle!==void 0&&typeof e.isSubtle==`boolean`?e.isSubtle:this.isSubtle,this.weight=o(n.TextWeight,e.weight,this.getDefaultWeight()))},e.prototype.getDefaultWeight=function(){return n.TextWeight.Default},e.prototype.toJSON=function(){return{size:n.TextSize[this.size],color:n.TextColor[this.color],isSubtle:this.isSubtle,weight:n.TextWeight[this.weight]}},e}();e.BaseTextDefinition=p;var m=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.fontType=n.FontType.Default,t}return r.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.fontType=o(n.FontType,t.fontType,this.fontType))},r}(p);e.TextStyleDefinition=m;var h=function(){function e(e){this.default=new m,this.heading=new m({size:`Large`,weight:`Bolder`}),this.columnHeader=new m({weight:`Bolder`}),e&&(this.heading.parse(e.heading),this.columnHeader.parse(e.columnHeader))}return e.prototype.getStyleByName=function(e){switch(e.toLowerCase()){case`heading`:return this.heading;case`columnHeader`:return this.columnHeader;default:return this.default}},e}();e.TextStyleSet=h;var g=function(){function e(e){e&&(this.headingLevel=r.parseNumber(e.headingLevel))}return e}();e.TextBlockConfig=g;var _=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.suffix=` *`,t.suffixColor=n.TextColor.Attention,t}return r.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.suffix=t.suffix||this.suffix,this.suffixColor=o(n.TextColor,t.suffixColor,this.suffixColor))},r.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.suffix=this.suffix,t.suffixColor=n.TextColor[this.suffixColor],t},r}(p);e.RequiredInputLabelTextDefinition=_;var v=function(){function e(e){this.inputSpacing=n.Spacing.Small,this.width=30,this.requiredInputs=new _,this.optionalInputs=new p,e&&(this.inputSpacing=o(n.Spacing,e.inputSpacing,this.inputSpacing),this.requiredInputs=new _(e.requiredInputs),this.optionalInputs=new p(e.optionalInputs),this.width=e.width==null?this.width:e.width)}return e}();e.InputLabelConfig=v;var y=function(){function e(e){this.label=new v,this.errorMessage=new p({color:n.TextColor.Attention}),this.debounceTimeInMilliSeconds=0,this.allowRevealOnHoverStyle=!1,e&&(this.label=new v(e.label),this.errorMessage=new p(e.errorMessage),this.allowRevealOnHoverStyle=e.allowRevealOnHoverStyle||this.allowRevealOnHoverStyle,this.debounceTimeInMilliSeconds=e.debounceTimeInMilliSeconds)}return e}();e.InputConfig=y;var b=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.wrap=!0,t}return n.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.wrap=t.wrap==null?this.wrap:t.wrap)},n.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.wrap=this.wrap,t},n}(p);e.FactTextDefinition=b;var x=function(e){t(r,e);function r(t){var r=e.call(this,t)||this;return r.maxWidth=150,r.weight=n.TextWeight.Bolder,t&&(r.maxWidth=t.maxWidth==null?r.maxWidth:t.maxWidth,r.weight=o(n.TextWeight,t.weight,n.TextWeight.Bolder)),r}return r.prototype.getDefaultWeight=function(){return n.TextWeight.Bolder},r}(b);e.FactTitleDefinition=x;var S=function(){function e(e){this.title=new x,this.value=new b,this.spacing=10,e&&(this.title=new x(e.title),this.value=new b(e.value),this.spacing=e.spacing&&e.spacing!=null?e.spacing&&e.spacing:this.spacing)}return e}();e.FactSetConfig=S;var C=function(){function e(e){this.actionMode=n.ShowCardActionMode.Inline,this.inlineTopMargin=16,this.style=n.ContainerStyle.Emphasis,e&&(this.actionMode=o(n.ShowCardActionMode,e.actionMode,n.ShowCardActionMode.Inline),this.inlineTopMargin=e.inlineTopMargin==null?this.inlineTopMargin:e.inlineTopMargin,this.style=e.style&&typeof e.style==`string`?e.style:n.ContainerStyle.Emphasis)}return e.prototype.toJSON=function(){return{actionMode:n.ShowCardActionMode[this.actionMode],inlineTopMargin:this.inlineTopMargin,style:this.style}},e}();e.ShowCardActionConfig=C;var w=function(){function e(e){if(this.maxActions=5,this.spacing=n.Spacing.Default,this.buttonSpacing=20,this.showCard=new C,this.preExpandSingleShowCardAction=!1,this.actionsOrientation=n.Orientation.Horizontal,this.actionAlignment=n.ActionAlignment.Left,this.iconPlacement=n.ActionIconPlacement.LeftOfTitle,this.allowTitleToWrap=!1,this.iconSize=16,e){this.maxActions=e.maxActions==null?this.maxActions:e.maxActions,this.spacing=o(n.Spacing,e.spacing&&e.spacing,n.Spacing.Default),this.buttonSpacing=e.buttonSpacing==null?this.buttonSpacing:e.buttonSpacing,this.showCard=new C(e.showCard),this.preExpandSingleShowCardAction=r.parseBool(e.preExpandSingleShowCardAction,!1),this.actionsOrientation=o(n.Orientation,e.actionsOrientation,n.Orientation.Horizontal),this.actionAlignment=o(n.ActionAlignment,e.actionAlignment,n.ActionAlignment.Left),this.iconPlacement=o(n.ActionIconPlacement,e.iconPlacement,n.ActionIconPlacement.LeftOfTitle),this.allowTitleToWrap=e.allowTitleToWrap==null?this.allowTitleToWrap:e.allowTitleToWrap;try{var t=i.SizeAndUnit.parse(e.iconSize);t.unit===n.SizeUnit.Pixel&&(this.iconSize=t.physicalSize)}catch{}}}return e.prototype.toJSON=function(){return{maxActions:this.maxActions,spacing:n.Spacing[this.spacing],buttonSpacing:this.buttonSpacing,showCard:this.showCard,preExpandSingleShowCardAction:this.preExpandSingleShowCardAction,actionsOrientation:n.Orientation[this.actionsOrientation],actionAlignment:n.ActionAlignment[this.actionAlignment]}},e}();e.ActionsConfig=w;var T=function(){function e(e){this.default=new c,this.dark=new c,this.light=new c,this.accent=new c,this.good=new c,this.warning=new c,this.attention=new c,this.parse(e)}return e.prototype.parseSingleColor=function(e,t){e&&this[t].parse(e[t])},e.prototype.parse=function(e){e&&(this.parseSingleColor(e,`default`),this.parseSingleColor(e,`dark`),this.parseSingleColor(e,`light`),this.parseSingleColor(e,`accent`),this.parseSingleColor(e,`good`),this.parseSingleColor(e,`warning`),this.parseSingleColor(e,`attention`))},e}();e.ColorSetDefinition=T;var E=function(){function e(e){this.foregroundColors=new T({default:{default:`#333333`,subtle:`#EE333333`},dark:{default:`#000000`,subtle:`#66000000`},light:{default:`#FFFFFF`,subtle:`#33000000`},accent:{default:`#2E89FC`,subtle:`#882E89FC`},good:{default:`#028A02`,subtle:`#DD027502`},warning:{default:`#E69500`,subtle:`#DDE69500`},attention:{default:`#CC3300`,subtle:`#DDCC3300`}}),this.parse(e)}return e.prototype.parse=function(e){e&&(this.backgroundColor=e.backgroundColor,this.foregroundColors.parse(e.foregroundColors),this.highlightBackgroundColor=e.highlightBackgroundColor,this.highlightForegroundColor=e.highlightForegroundColor,this.borderColor=e.borderColor)},Object.defineProperty(e.prototype,`isBuiltIn`,{get:function(){return!1},enumerable:!1,configurable:!0}),e}();e.ContainerStyleDefinition=E;var D=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,`isBuiltIn`,{get:function(){return!0},enumerable:!1,configurable:!0}),n}(E),O=function(){function e(e){if(this._allStyles={},this._allStyles[n.ContainerStyle.Default]=new D,this._allStyles[n.ContainerStyle.Emphasis]=new D,this._allStyles[n.ContainerStyle.Accent]=new D,this._allStyles[n.ContainerStyle.Good]=new D,this._allStyles[n.ContainerStyle.Attention]=new D,this._allStyles[n.ContainerStyle.Warning]=new D,e){this._allStyles[n.ContainerStyle.Default].parse(e[n.ContainerStyle.Default]),this._allStyles[n.ContainerStyle.Emphasis].parse(e[n.ContainerStyle.Emphasis]),this._allStyles[n.ContainerStyle.Accent].parse(e[n.ContainerStyle.Accent]),this._allStyles[n.ContainerStyle.Good].parse(e[n.ContainerStyle.Good]),this._allStyles[n.ContainerStyle.Attention].parse(e[n.ContainerStyle.Attention]),this._allStyles[n.ContainerStyle.Warning].parse(e[n.ContainerStyle.Warning]);var t=e.customStyles;if(t&&Array.isArray(t))for(var r=0,i=t;r<i.length;r++){var a=i[r];if(a){var o=a.name;o&&typeof o==`string`&&(this._allStyles.hasOwnProperty(o)?this._allStyles[o].parse(a.style):this._allStyles[o]=new E(a.style))}}}}return e.prototype.toJSON=function(){var e=this,t=[];Object.keys(this._allStyles).forEach(function(n){e._allStyles[n].isBuiltIn||t.push({name:n,style:e._allStyles[n]})});var n={default:this.default,emphasis:this.emphasis};return t.length>0&&(n.customStyles=t),n},e.prototype.getStyleByName=function(e,t){return e&&this._allStyles.hasOwnProperty(e)?this._allStyles[e]:t||this._allStyles[n.ContainerStyle.Default]},Object.defineProperty(e.prototype,`default`,{get:function(){return this._allStyles[n.ContainerStyle.Default]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`emphasis`,{get:function(){return this._allStyles[n.ContainerStyle.Emphasis]},enumerable:!1,configurable:!0}),e}();e.ContainerStyleSet=O;var k=function(){function e(e){this.fontFamily=`Segoe UI,Segoe,Segoe WP,Helvetica Neue,Helvetica,sans-serif`,this.fontSizes={small:12,default:14,medium:17,large:21,extraLarge:26},this.fontWeights={lighter:200,default:400,bolder:600},e&&(this.fontFamily=e)}return e.prototype.parse=function(e){this.fontFamily=e.fontFamily||this.fontFamily,this.fontSizes={small:e.fontSizes&&e.fontSizes.small||this.fontSizes.small,default:e.fontSizes&&e.fontSizes.default||this.fontSizes.default,medium:e.fontSizes&&e.fontSizes.medium||this.fontSizes.medium,large:e.fontSizes&&e.fontSizes.large||this.fontSizes.large,extraLarge:e.fontSizes&&e.fontSizes.extraLarge||this.fontSizes.extraLarge},this.fontWeights={lighter:e.fontWeights&&e.fontWeights.lighter||this.fontWeights.lighter,default:e.fontWeights&&e.fontWeights.default||this.fontWeights.default,bolder:e.fontWeights&&e.fontWeights.bolder||this.fontWeights.bolder}},e.monospace=new e(`'Courier New', Courier, monospace`),e}();e.FontTypeDefinition=k;var A=function(){function e(e){this.default=new k,this.monospace=new k(`'Courier New', Courier, monospace`),e&&(this.default.parse(e.default),this.monospace.parse(e.monospace))}return e.prototype.getStyleDefinition=function(e){switch(e){case n.FontType.Monospace:return this.monospace;case n.FontType.Default:default:return this.default}},e}();e.FontTypeSet=A;var j=function(){function e(e){this.maxCarouselPages=10,this.minAutoplayDelay=5e3,e&&(this.maxCarouselPages=e.maxCarouselPages==null?this.maxCarouselPages:e.maxCarouselPages,this.minAutoplayDelay=e.minAutoplayDelay==null?this.minAutoplayDelay:e.minAutoplayDelay)}return e.prototype.toJSON=function(){return{maxCarouselPages:this.maxCarouselPages,minAutoplayDelay:this.minAutoplayDelay}},e}();e.CarouselConfig=j;var M=function(){function e(e){this.hostCapabilities=new a.HostCapabilities,this.choiceSetInputValueSeparator=`,`,this.supportsInteractivity=!0,this.spacing={small:3,default:8,medium:20,large:30,extraLarge:40,padding:15},this.separator={lineThickness:1,lineColor:`#EEEEEE`},this.imageSizes={small:40,medium:80,large:160},this.containerStyles=new O,this.inputs=new y,this.actions=new w,this.adaptiveCard=new l,this.imageSet=new u,this.media=new d,this.factSet=new S,this.table=new f,this.textStyles=new h,this.textBlock=new g,this.carousel=new j,this.alwaysAllowBleed=!1,e&&((typeof e==`string`||e instanceof String)&&(e=JSON.parse(e)),this.choiceSetInputValueSeparator=e&&typeof e.choiceSetInputValueSeparator==`string`?e.choiceSetInputValueSeparator:this.choiceSetInputValueSeparator,this.supportsInteractivity=e&&typeof e.supportsInteractivity==`boolean`?e.supportsInteractivity:this.supportsInteractivity,this._legacyFontType=new k,this._legacyFontType.parse(e),e.fontTypes&&(this.fontTypes=new A(e.fontTypes)),e.lineHeights&&(this.lineHeights={small:e.lineHeights.small,default:e.lineHeights.default,medium:e.lineHeights.medium,large:e.lineHeights.large,extraLarge:e.lineHeights.extraLarge}),this.imageSizes={small:e.imageSizes&&e.imageSizes.small||this.imageSizes.small,medium:e.imageSizes&&e.imageSizes.medium||this.imageSizes.medium,large:e.imageSizes&&e.imageSizes.large||this.imageSizes.large},this.containerStyles=new O(e.containerStyles),this.spacing={small:e.spacing&&e.spacing.small||this.spacing.small,default:e.spacing&&e.spacing.default||this.spacing.default,medium:e.spacing&&e.spacing.medium||this.spacing.medium,large:e.spacing&&e.spacing.large||this.spacing.large,extraLarge:e.spacing&&e.spacing.extraLarge||this.spacing.extraLarge,padding:e.spacing&&e.spacing.padding||this.spacing.padding},this.separator={lineThickness:e.separator&&e.separator.lineThickness||this.separator.lineThickness,lineColor:e.separator&&e.separator.lineColor||this.separator.lineColor},this.inputs=new y(e.inputs||this.inputs),this.actions=new w(e.actions||this.actions),this.adaptiveCard=new l(e.adaptiveCard||this.adaptiveCard),this.imageSet=new u(e.imageSet),this.factSet=new S(e.factSet),this.textStyles=new h(e.textStyles),this.textBlock=new g(e.textBlock),this.carousel=new j(e.carousel))}return e.prototype.getFontTypeDefinition=function(e){return this.fontTypes?this.fontTypes.getStyleDefinition(e):e===n.FontType.Monospace?k.monospace:this._legacyFontType},e.prototype.getEffectiveSpacing=function(e){switch(e){case n.Spacing.Small:return this.spacing.small;case n.Spacing.Default:return this.spacing.default;case n.Spacing.Medium:return this.spacing.medium;case n.Spacing.Large:return this.spacing.large;case n.Spacing.ExtraLarge:return this.spacing.extraLarge;case n.Spacing.Padding:return this.spacing.padding;default:return 0}},e.prototype.paddingDefinitionToSpacingDefinition=function(e){return new i.SpacingDefinition(this.getEffectiveSpacing(e.top),this.getEffectiveSpacing(e.right),this.getEffectiveSpacing(e.bottom),this.getEffectiveSpacing(e.left))},e.prototype.makeCssClassNames=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,i=e;r<i.length;r++){var a=i[r];n.push((this.cssClassNamePrefix?this.cssClassNamePrefix+`-`:``)+a)}return n},e.prototype.makeCssClassName=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.makeCssClassNames.apply(this,e).join(` `)||``},Object.defineProperty(e.prototype,`fontFamily`,{get:function(){return this._legacyFontType.fontFamily},set:function(e){this._legacyFontType.fontFamily=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`fontSizes`,{get:function(){return this._legacyFontType.fontSizes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`fontWeights`,{get:function(){return this._legacyFontType.fontWeights},enumerable:!1,configurable:!0}),e}();e.HostConfig=M,e.defaultHostConfig=new M({supportsInteractivity:!0,spacing:{small:10,default:20,medium:30,large:40,extraLarge:50,padding:20},separator:{lineThickness:1,lineColor:`#EEEEEE`},fontTypes:{default:{fontFamily:`'Segoe UI', Tahoma, Geneva, Verdana, sans-serif`,fontSizes:{small:12,default:14,medium:17,large:21,extraLarge:26},fontWeights:{lighter:200,default:400,bolder:600}},monospace:{fontFamily:`'Courier New', Courier, monospace`,fontSizes:{small:12,default:14,medium:17,large:21,extraLarge:26},fontWeights:{lighter:200,default:400,bolder:600}}},imageSizes:{small:40,medium:80,large:160},containerStyles:{default:{backgroundColor:`#FFFFFF`,foregroundColors:{default:{default:`#333333`,subtle:`#EE333333`},dark:{default:`#000000`,subtle:`#66000000`},light:{default:`#FFFFFF`,subtle:`#33000000`},accent:{default:`#2E89FC`,subtle:`#882E89FC`},attention:{default:`#cc3300`,subtle:`#DDcc3300`},good:{default:`#028A02`,subtle:`#DD027502`},warning:{default:`#e69500`,subtle:`#DDe69500`}}},emphasis:{backgroundColor:`#08000000`,foregroundColors:{default:{default:`#333333`,subtle:`#EE333333`},dark:{default:`#000000`,subtle:`#66000000`},light:{default:`#FFFFFF`,subtle:`#33000000`},accent:{default:`#2E89FC`,subtle:`#882E89FC`},attention:{default:`#cc3300`,subtle:`#DDcc3300`},good:{default:`#028A02`,subtle:`#DD027502`},warning:{default:`#e69500`,subtle:`#DDe69500`}}},accent:{backgroundColor:`#C7DEF9`,foregroundColors:{default:{default:`#333333`,subtle:`#EE333333`},dark:{default:`#000000`,subtle:`#66000000`},light:{default:`#FFFFFF`,subtle:`#33000000`},accent:{default:`#2E89FC`,subtle:`#882E89FC`},attention:{default:`#cc3300`,subtle:`#DDcc3300`},good:{default:`#028A02`,subtle:`#DD027502`},warning:{default:`#e69500`,subtle:`#DDe69500`}}},good:{backgroundColor:`#CCFFCC`,foregroundColors:{default:{default:`#333333`,subtle:`#EE333333`},dark:{default:`#000000`,subtle:`#66000000`},light:{default:`#FFFFFF`,subtle:`#33000000`},accent:{default:`#2E89FC`,subtle:`#882E89FC`},attention:{default:`#cc3300`,subtle:`#DDcc3300`},good:{default:`#028A02`,subtle:`#DD027502`},warning:{default:`#e69500`,subtle:`#DDe69500`}}},attention:{backgroundColor:`#FFC5B2`,foregroundColors:{default:{default:`#333333`,subtle:`#EE333333`},dark:{default:`#000000`,subtle:`#66000000`},light:{default:`#FFFFFF`,subtle:`#33000000`},accent:{default:`#2E89FC`,subtle:`#882E89FC`},attention:{default:`#cc3300`,subtle:`#DDcc3300`},good:{default:`#028A02`,subtle:`#DD027502`},warning:{default:`#e69500`,subtle:`#DDe69500`}}},warning:{backgroundColor:`#FFE2B2`,foregroundColors:{default:{default:`#333333`,subtle:`#EE333333`},dark:{default:`#000000`,subtle:`#66000000`},light:{default:`#FFFFFF`,subtle:`#33000000`},accent:{default:`#2E89FC`,subtle:`#882E89FC`},attention:{default:`#cc3300`,subtle:`#DDcc3300`},good:{default:`#028A02`,subtle:`#DD027502`},warning:{default:`#e69500`,subtle:`#DDe69500`}}}},inputs:{label:{requiredInputs:{weight:n.TextWeight.Bolder,suffix:` *`,suffixColor:n.TextColor.Attention},optionalInputs:{weight:n.TextWeight.Bolder}},errorMessage:{color:n.TextColor.Attention,weight:n.TextWeight.Bolder},debounceTimeInMilliSeconds:250},actions:{maxActions:5,spacing:n.Spacing.Default,buttonSpacing:10,showCard:{actionMode:n.ShowCardActionMode.Inline,inlineTopMargin:16},actionsOrientation:n.Orientation.Horizontal,actionAlignment:n.ActionAlignment.Left},adaptiveCard:{allowCustomStyle:!1},imageSet:{imageSize:n.Size.Medium,maxImageHeight:100},factSet:{title:{color:n.TextColor.Default,size:n.TextSize.Default,isSubtle:!1,weight:n.TextWeight.Bolder,wrap:!0,maxWidth:150},value:{color:n.TextColor.Default,size:n.TextSize.Default,isSubtle:!1,weight:n.TextWeight.Default,wrap:!0},spacing:10},carousel:{maxCarouselPages:10,minAutoplayDuration:5e3},textBlock:{headingLevel:2}})})),Vs=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.formatText=void 0;var n=function(){function e(e){this._regularExpression=e}return e.prototype.format=function(e,t){var n;if(t){for(var r=t;(n=this._regularExpression.exec(t))!=null;)r=r.replace(n[0],this.internalFormat(e,n));return r}else return t},e}(),r=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.internalFormat=function(e,t){var n=new Date(Date.parse(t[1])),r=t[2]===void 0?`compact`:t[2].toLowerCase();return r===`compact`?n.toLocaleDateString():n.toLocaleDateString(e,{day:`numeric`,weekday:r,month:r,year:`numeric`})},n}(n),i=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.internalFormat=function(e,t){return new Date(Date.parse(t[1])).toLocaleTimeString(e,{hour:`numeric`,minute:`2-digit`})},n}(n);function a(e,t){for(var n=[new r(/\{{2}DATE\((\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|(?:(?:-|\+)\d{2}:\d{2})))(?:, ?(COMPACT|LONG|SHORT))?\)\}{2}/g),new i(/\{{2}TIME\((\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|(?:(?:-|\+)\d{2}:\d{2})))\)\}{2}/g)],a=t,o=0,s=n;o<s.length;o++)a=s[o].format(e,a);return a}e.formatText=a})),Hs=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(e,`__esModule`,{value:!0}),e.CardObject=e.ValidationResults=void 0;var r=Ps(),i=Ls(),a=Fs(),o=zs(),s=Rs(),c=function(){function e(){this.allIds={},this.validationEvents=[]}return e.prototype.addFailure=function(e,t,n){this.validationEvents.push({phase:r.ValidationPhase.Validation,source:e,event:t,message:n})},e}();e.ValidationResults=c,e.CardObject=function(e){t(l,e);function l(){var t=e!==null&&e.apply(this,arguments)||this;return t._shouldFallback=!1,t}return l.prototype.getSchemaKey=function(){return this.getJsonTypeName()},Object.defineProperty(l.prototype,`requires`,{get:function(){return this.getValue(l.requiresProperty)},enumerable:!1,configurable:!0}),l.prototype.contains=function(e){return this._renderedElement?this._renderedElement.contains(e):!1},l.prototype.preProcessPropertyValue=function(e,t){var n=t===void 0?this.getValue(e):t;if(a.GlobalSettings.allowPreProcessingPropertyValues){for(var r=this;r&&!r.onPreProcessPropertyValue;)r=r.parent;if(r&&r.onPreProcessPropertyValue)return r.onPreProcessPropertyValue(this,e,n)}return n},l.prototype.setParent=function(e){this._parent=e},l.prototype.setShouldFallback=function(e){this._shouldFallback=e},l.prototype.shouldFallback=function(){return this._shouldFallback||!this.requires.areAllMet(this.hostConfig.hostCapabilities)},l.prototype.getRootObject=function(){for(var e=this;e.parent;)e=e.parent;return e},l.prototype.internalValidateProperties=function(e){this.id&&(e.allIds.hasOwnProperty(this.id)?(e.allIds[this.id]===1&&e.addFailure(this,r.ValidationEvent.DuplicateId,i.Strings.errors.duplicateId(this.id)),e.allIds[this.id]+=1):e.allIds[this.id]=1)},l.prototype.validateProperties=function(){var e=new c;return this.internalValidateProperties(e),e},l.prototype.findDOMNodeOwner=function(e){return this.contains(e)?this:void 0},l.prototype.releaseDOMResources=function(){},Object.defineProperty(l.prototype,`parent`,{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,`renderedElement`,{get:function(){return this._renderedElement},enumerable:!1,configurable:!0}),l.typeNameProperty=new s.StringProperty(s.Versions.v1_0,`type`,void 0,void 0,void 0,function(e){return e.getJsonTypeName()}),l.idProperty=new s.StringProperty(s.Versions.v1_0,`id`),l.requiresProperty=new s.SerializableObjectProperty(s.Versions.v1_2,`requires`,o.HostCapabilities,!1,new o.HostCapabilities),n([(0,s.property)(l.idProperty)],l.prototype,`id`,void 0),n([(0,s.property)(l.requiresProperty)],l.prototype,`requires`,null),l}(s.SerializableObject)})),Us=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GlobalRegistry=e.CardObjectRegistry=void 0;var t=Rs(),n=function(){function e(){this._items={}}return e.prototype.findByName=function(e){return this._items.hasOwnProperty(e)?this._items[e]:void 0},e.prototype.clear=function(){this._items={}},e.prototype.copyTo=function(e){for(var t=Object.keys(this._items),n=0,r=t;n<r.length;n++){var i=r[n],a=this._items[i];e.register(a.typeName,a.objectType,a.schemaVersion)}},e.prototype.register=function(e,n,r){r===void 0&&(r=t.Versions.v1_0);var i=this.findByName(e);i===void 0?i={typeName:e,objectType:n,schemaVersion:r}:i.objectType=n,this._items[e]=i},e.prototype.unregister=function(e){delete this._items[e]},e.prototype.createInstance=function(e,t){var n=this.findByName(e);return n&&n.schemaVersion.compareTo(t)<=0?new n.objectType:void 0},e.prototype.getItemCount=function(){return Object.keys(this._items).length},e.prototype.getItemAt=function(e){var t=this;return Object.keys(this._items).map(function(e){return t._items[e]})[e]},e}();e.CardObjectRegistry=n,e.GlobalRegistry=function(){function e(){}return e.populateWithDefaultElements=function(t){t.clear(),e.defaultElements.copyTo(t)},e.populateWithDefaultActions=function(t){t.clear(),e.defaultActions.copyTo(t)},Object.defineProperty(e,`elements`,{get:function(){return e._elements||(e._elements=new n,e.populateWithDefaultElements(e._elements)),e._elements},enumerable:!1,configurable:!0}),Object.defineProperty(e,`actions`,{get:function(){return e._actions||(e._actions=new n,e.populateWithDefaultActions(e._actions)),e._actions},enumerable:!1,configurable:!0}),e.reset=function(){e._elements=void 0,e._actions=void 0},e.defaultElements=new n,e.defaultActions=new n,e}()})),Ws=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Constants=void 0,e.Constants=function(){function e(){}return e.keys={tab:`Tab`,enter:`Enter`,escape:`Escape`,space:` `,up:`ArrowUp`,down:`ArrowDown`,delete:`Delete`},e}()})),Gs=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MenuItem=void 0;var t=Bs(),n=Ws();e.MenuItem=function(){function e(e,t){this._isEnabled=!0,this.key=e,this._value=t}return e.prototype.click=function(){this.isEnabled&&this.onClick&&this.onClick(this)},e.prototype.updateCssClasses=function(){if(this._element){var e=this._hostConfig?this._hostConfig:t.defaultHostConfig;this._element.className=e.makeCssClassName(`ac-ctrl`),this._element.classList.add(e.makeCssClassName(this.isEnabled?`ac-ctrl-dropdown-item`:`ac-ctrl-dropdown-item-disabled`)),this.isEnabled||this._element.classList.add(e.makeCssClassName(`ac-disabled`))}},e.prototype.toString=function(){return this.value},e.prototype.render=function(e){var t=this;return this._hostConfig=e,this._element||(this._element=document.createElement(`span`),this._element.innerText=this.value,this._element.setAttribute(`role`,`menuitem`),this.isEnabled||this._element.setAttribute(`aria-disabled`,`true`),this._element.setAttribute(`aria-current`,`false`),this._element.onmouseup=function(e){t.click()},this._element.onkeydown=function(e){e.key===n.Constants.keys.enter&&(e.cancelBubble=!0,t.click())},this.updateCssClasses()),this._element},Object.defineProperty(e.prototype,`value`,{get:function(){return this._value},set:function(e){this._value=e,this._element&&(this._element.innerText=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`isEnabled`,{get:function(){return this._isEnabled},set:function(e){this._isEnabled!==e&&(this._isEnabled=e,this.updateCssClasses())},enumerable:!1,configurable:!0}),e}()})),Ks=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Collection=void 0,e.Collection=function(){function e(){this._items=[]}return e.prototype.get=function(e){return this._items[e]},e.prototype.add=function(e){this._items.push(e),this.onItemAdded&&this.onItemAdded(e)},e.prototype.remove=function(e){var t=this._items.indexOf(e);t>=0&&(this._items=this._items.splice(t,1),this.onItemRemoved&&this.onItemRemoved(e))},e.prototype.indexOf=function(e){return this._items.indexOf(e)},Object.defineProperty(e.prototype,`length`,{get:function(){return this._items.length},enumerable:!1,configurable:!0}),e}()})),qs=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PopupControl=void 0;var t=Ws(),n=Is(),r=Bs();e.PopupControl=function(){function e(){this._isOpen=!1}return e.prototype.keyDown=function(e){switch(e.key){case t.Constants.keys.escape:this.closePopup(!0);break}},e.prototype.render=function(e){var t=this,n=document.createElement(`div`);return n.tabIndex=0,n.className=this.hostConfig.makeCssClassName(`ac-ctrl`,`ac-ctrl-popup-container`),n.setAttribute(`role`,`dialog`),n.setAttribute(`aria-modal`,`true`),n.onkeydown=function(e){return t.keyDown(e),!e.cancelBubble},n.appendChild(this.renderContent()),n},e.prototype.focus=function(){this._popupElement&&this._popupElement.firstElementChild.focus()},e.prototype.popup=function(e){var t,r,i,a,o,s=this;if(!this._isOpen){this._overlayElement=document.createElement(`div`),this._overlayElement.className=this.hostConfig.makeCssClassName(`ac-ctrl-overlay`),this._overlayElement.tabIndex=0,this._overlayElement.style.width=document.documentElement.scrollWidth+`px`,this._overlayElement.style.height=document.documentElement.scrollHeight+`px`,this._overlayElement.onfocus=function(e){s.closePopup(!0)},document.body.appendChild(this._overlayElement);var c=e.getBoundingClientRect();this._popupElement=this.render(c),(t=this._popupElement.classList).remove.apply(t,this.hostConfig.makeCssClassNames(`ac-ctrl-slide`,`ac-ctrl-slideLeftToRight`,`ac-ctrl-slideRightToLeft`,`ac-ctrl-slideTopToBottom`,`ac-ctrl-slideRightToLeft`)),window.addEventListener(`resize`,function(e){s.closePopup(!0)});var l=e.getAttribute(`aria-label`);l&&this._popupElement.setAttribute(`aria-label`,l),this._overlayElement.appendChild(this._popupElement);var u=this._popupElement.getBoundingClientRect(),d=window.innerHeight-c.bottom,f=c.top,p=window.innerWidth-c.right,m=c.left,h=c.left+n.getScrollX(),g;if(f<u.height&&d<u.height){var _=Math.min(u.height,window.innerHeight);if(this._popupElement.style.maxHeight=_+`px`,g=_<u.height?n.getScrollY():n.getScrollY()+c.top+(c.height-_)/2,m<u.width&&p<u.width){var v=Math.min(u.width,window.innerWidth);this._popupElement.style.maxWidth=v+`px`,h=v<u.width?n.getScrollX():n.getScrollX()+c.left+(c.width-v)/2}else p>=u.width?(h=n.getScrollX()+c.right,(r=this._popupElement.classList).add.apply(r,this.hostConfig.makeCssClassNames(`ac-ctrl-slide`,`ac-ctrl-slideLeftToRight`))):(h=n.getScrollX()+c.left-u.width,(i=this._popupElement.classList).add.apply(i,this.hostConfig.makeCssClassNames(`ac-ctrl-slide`,`ac-ctrl-slideRightToLeft`)))}else d>=u.height?(g=n.getScrollY()+c.bottom,(a=this._popupElement.classList).add.apply(a,this.hostConfig.makeCssClassNames(`ac-ctrl-slide`,`ac-ctrl-slideTopToBottom`))):(g=n.getScrollY()+c.top-u.height,(o=this._popupElement.classList).add.apply(o,this.hostConfig.makeCssClassNames(`ac-ctrl-slide`,`ac-ctrl-slideBottomToTop`))),p<u.width&&(h=n.getScrollX()+c.right-u.width);this._popupElement.style.left=h+`px`,this._popupElement.style.top=g+`px`,this._popupElement.focus(),this._isOpen=!0}},e.prototype.closePopup=function(e){this._isOpen&&(document.body.removeChild(this._overlayElement),this._isOpen=!1,this.onClose&&this.onClose(this,e))},Object.defineProperty(e.prototype,`hostConfig`,{get:function(){return this._hostConfig?this._hostConfig:r.defaultHostConfig},set:function(e){this._hostConfig=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`isOpen`,{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),e}()})),Js=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.PopupMenu=void 0;var n=Ws(),r=Ks();e.PopupMenu=function(e){t(i,e);function i(){var t=e!==null&&e.apply(this,arguments)||this;return t._items=new r.Collection,t._renderedItems=[],t._selectedIndex=-1,t}return i.prototype.renderContent=function(){var e=document.createElement(`div`);e.className=this.hostConfig.makeCssClassName(`ac-ctrl ac-popup`),e.setAttribute(`role`,`listbox`);for(var t=0;t<this._items.length;t++){var n=this._items.get(t).render(this.hostConfig);n.tabIndex=0,e.appendChild(n),t===this.selectedIndex&&n.focus(),this._renderedItems.push(n)}return e},i.prototype.keyDown=function(t){e.prototype.keyDown.call(this,t);var r=this._selectedIndex;switch(t.key){case n.Constants.keys.tab:this.closePopup(!0);break;case n.Constants.keys.up:r<=0?r=this._renderedItems.length-1:(r--,r<0&&(r=this._renderedItems.length-1)),this.selectedIndex=r,t.cancelBubble=!0;break;case n.Constants.keys.down:r<0?r=0:(r++,r>=this._renderedItems.length&&(r=0)),this.selectedIndex=r,t.cancelBubble=!0;break}},Object.defineProperty(i.prototype,`items`,{get:function(){return this._items},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,`selectedIndex`,{get:function(){return this._selectedIndex},set:function(e){e>=0&&e<this._renderedItems.length&&(this._renderedItems[e].focus(),this._selectedIndex=e)},enumerable:!1,configurable:!0}),i}(qs().PopupControl)})),Ys=e.t((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(Gs(),e),n(Js(),e)})),Xs=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},r=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},i=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(e,`__esModule`,{value:!0}),e.BackgroundImage=e.ContainerBase=e.StylableCardElementContainer=e.ContainerStyleProperty=e.ActionSet=e.ShowCardAction=e.HttpAction=e.HttpHeader=e.ToggleVisibilityAction=e.OpenUrlAction=e.DataQuery=e.ExecuteAction=e.UniversalAction=e.SubmitAction=e.SubmitActionBase=e.Action=e.TimeInput=e.TimeProperty=e.DateInput=e.NumberInput=e.FilteredChoiceSet=e.ChoiceSetInput=e.ChoiceSetInputDataQuery=e.Choice=e.ToggleInput=e.TextInput=e.Input=e.Media=e.YouTubePlayer=e.DailymotionPlayer=e.VimeoPlayer=e.IFrameMediaMediaPlayer=e.CustomMediaPlayer=e.HTML5MediaPlayer=e.MediaPlayer=e.MediaSource=e.CaptionSource=e.ContentSource=e.ImageSet=e.CardElementContainer=e.Image=e.FactSet=e.Fact=e.RichTextBlock=e.TextRun=e.TextBlock=e.BaseTextBlock=e.ActionProperty=e.CardElement=e.renderSeparation=void 0,e.SerializationContext=e.AdaptiveCard=e.Authentication=e.TokenExchangeResource=e.AuthCardButton=e.RefreshDefinition=e.RefreshActionProperty=e.ContainerWithActions=e.ColumnSet=e.Column=e.Container=void 0;var a=Ps(),o=Fs(),s=Is(),c=Bs(),l=Vs(),u=Hs(),d=Rs(),f=Us(),p=Ls(),m=Ys();function h(e){e.innerHTML=typeof window>`u`?``:window.trustedTypes?.emptyHTML??``}function g(e,t,n){if(t.spacing>0||t.lineThickness&&t.lineThickness>0){var r=document.createElement(`div`);r.className=e.makeCssClassName(`ac-`+(n===a.Orientation.Horizontal?`horizontal`:`vertical`)+`-separator`),r.setAttribute(`aria-hidden`,`true`);var i=t.lineColor?s.stringToCssColor(t.lineColor):``;return n===a.Orientation.Horizontal?t.lineThickness?(r.style.paddingTop=t.spacing/2+`px`,r.style.marginBottom=t.spacing/2+`px`,r.style.borderBottom=t.lineThickness+`px solid `+i):r.style.height=t.spacing+`px`:t.lineThickness?(r.style.paddingLeft=t.spacing/2+`px`,r.style.marginRight=t.spacing/2+`px`,r.style.borderRight=t.lineThickness+`px solid `+i):r.style.width=t.spacing+`px`,r.style.overflow=`hidden`,r.style.flex=`0 0 auto`,r}else return}e.renderSeparation=g;var _=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t._truncatedDueToOverflow=!1,t}return Object.defineProperty(r.prototype,`lang`,{get:function(){var e=this.getValue(r.langProperty);if(e)return e;if(this.parent)return this.parent.lang},set:function(e){this.setValue(r.langProperty,e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`isVisible`,{get:function(){return this.getValue(r.isVisibleProperty)},set:function(e){o.GlobalSettings.useAdvancedCardBottomTruncation&&!e&&this.undoOverflowTruncation(),this.isVisible!==e&&(this.setValue(r.isVisibleProperty,e),this.updateRenderedElementVisibility(),this._renderedElement&&Le(this)),this._renderedElement&&this._renderedElement.setAttribute(`aria-expanded`,e.toString())},enumerable:!1,configurable:!0}),r.prototype.internalRenderSeparator=function(){var e=g(this.hostConfig,{spacing:this.hostConfig.getEffectiveSpacing(this.spacing),lineThickness:this.separator?this.hostConfig.separator.lineThickness:void 0,lineColor:this.separator?this.hostConfig.separator.lineColor:void 0},this.separatorOrientation);if(o.GlobalSettings.alwaysBleedSeparators&&e&&this.separatorOrientation===a.Orientation.Horizontal){var t=this.getParentContainer();if(t&&t.getEffectivePadding()){var n=this.hostConfig.paddingDefinitionToSpacingDefinition(t.getEffectivePadding());e.style.marginLeft=`-`+n.left+`px`,e.style.marginRight=`-`+n.right+`px`}}return e},r.prototype.updateRenderedElementVisibility=function(){var e=this.isDesignMode()||this.isVisible?this._defaultRenderedElementDisplayMode:`none`;this._renderedElement&&(e?this._renderedElement.style.display=e:this._renderedElement.style.removeProperty(`display`)),this._separatorElement&&(this.parent&&this.parent.isFirstElement(this)?this._separatorElement.style.display=`none`:e?this._separatorElement.style.display=e:this._separatorElement.style.removeProperty(`display`))},r.prototype.hideElementDueToOverflow=function(){this._renderedElement&&this.isVisible&&(this._renderedElement.style.visibility=`hidden`,this.isVisible=!1,Le(this,!1))},r.prototype.showElementHiddenDueToOverflow=function(){this._renderedElement&&!this.isVisible&&(this._renderedElement.style.removeProperty(`visibility`),this.isVisible=!0,Le(this,!1))},r.prototype.handleOverflow=function(e){if(this.isVisible||this.isHiddenDueToOverflow()){var t=this.truncateOverflow(e);this._truncatedDueToOverflow=t||this._truncatedDueToOverflow,t?t&&!this.isVisible&&this.showElementHiddenDueToOverflow():this.hideElementDueToOverflow()}},r.prototype.resetOverflow=function(){var e=!1;return this._truncatedDueToOverflow&&(this.undoOverflowTruncation(),this._truncatedDueToOverflow=!1,e=!0),this.isHiddenDueToOverflow()&&this.showElementHiddenDueToOverflow(),e},r.prototype.getDefaultSerializationContext=function(){return new Ye},r.prototype.createPlaceholderElement=function(){var e=this.getEffectiveStyleDefinition(),t=s.stringToCssColor(e.foregroundColors.default.subtle),n=document.createElement(`div`);return n.style.border=`1px dashed `+t,n.style.padding=`4px`,n.style.minHeight=`32px`,n.style.fontSize=`10px`,t&&(n.style.color=t),n.innerText=p.Strings.defaults.emptyElementText(this.getJsonTypeName()),n},r.prototype.adjustRenderedElementSize=function(e){this.height===`auto`?e.style.flex=`0 0 auto`:e.style.flex=`1 1 auto`},r.prototype.updateInputsVisualState=function(e){var t=this.getAllInputs(),n=e?R.MouseEnterOnCard:R.MouseLeaveOnCard;t.forEach(function(e){return e.updateVisualState(n)})},r.prototype.isDisplayed=function(){return this._renderedElement!==void 0&&this.isVisible&&this._renderedElement.offsetHeight>0},r.prototype.overrideInternalRender=function(){return this.internalRender()},r.prototype.applyPadding=function(){if(this.separatorElement&&this.separatorOrientation===a.Orientation.Horizontal)if(o.GlobalSettings.alwaysBleedSeparators&&!this.isBleeding()){var e=new o.PaddingDefinition;this.getImmediateSurroundingPadding(e);var t=this.hostConfig.paddingDefinitionToSpacingDefinition(e);this.separatorElement.style.marginLeft=`-`+t.left+`px`,this.separatorElement.style.marginRight=`-`+t.right+`px`}else this.separatorElement.style.marginRight=`0`,this.separatorElement.style.marginLeft=`0`},r.prototype.truncateOverflow=function(e){return!1},r.prototype.undoOverflowTruncation=function(){},r.prototype.getDefaultPadding=function(){return new o.PaddingDefinition},r.prototype.getHasBackground=function(e){return e===void 0&&(e=!1),!1},r.prototype.getHasBorder=function(){return!1},r.prototype.getPadding=function(){return this._padding},r.prototype.setPadding=function(e){this._padding=e},r.prototype.shouldSerialize=function(e){return e.elementRegistry.findByName(this.getJsonTypeName())!==void 0},Object.defineProperty(r.prototype,`useDefaultSizing`,{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`separatorOrientation`,{get:function(){return a.Orientation.Horizontal},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`defaultStyle`,{get:function(){return a.ContainerStyle.Default},enumerable:!1,configurable:!0}),r.prototype.parse=function(t,n){e.prototype.parse.call(this,t,n||new Ye)},r.prototype.asString=function(){return``},r.prototype.isBleeding=function(){return!1},r.prototype.getEffectiveStyle=function(){return this.parent?this.parent.getEffectiveStyle():this.defaultStyle},r.prototype.getEffectiveStyleDefinition=function(){return this.hostConfig.containerStyles.getStyleByName(this.getEffectiveStyle())},r.prototype.getEffectiveTextStyleDefinition=function(){return this.parent?this.parent.getEffectiveTextStyleDefinition():this.hostConfig.textStyles.default},r.prototype.getForbiddenActionTypes=function(){return[]},r.prototype.getImmediateSurroundingPadding=function(e,t,n,r,i){if(t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=!0),i===void 0&&(i=!0),this.parent){var o=t&&this.parent.isTopElement(this),s=n&&this.parent.isRightMostElement(this),c=r&&this.parent.isBottomElement(this),l=i&&this.parent.isLeftMostElement(this),u=this.parent.getEffectivePadding();u&&(o&&u.top!==a.Spacing.None&&(e.top=u.top,o=!1),s&&u.right!==a.Spacing.None&&(e.right=u.right,s=!1),c&&u.bottom!==a.Spacing.None&&(e.bottom=u.bottom,c=!1),l&&u.left!==a.Spacing.None&&(e.left=u.left,l=!1)),(o||s||c||l)&&this.parent.getImmediateSurroundingPadding(e,o,s,c,l)}},r.prototype.getActionCount=function(){return 0},r.prototype.getActionAt=function(e){throw Error(p.Strings.errors.indexOutOfRange(e))},r.prototype.indexOfAction=function(e){for(var t=0;t<this.getActionCount();t++)if(this.getActionAt(t)===e)return t;return-1},r.prototype.remove=function(){return this.parent&&this.parent instanceof O?this.parent.removeItem(this):!1},r.prototype.render=function(){return this._renderedElement=this.overrideInternalRender(),this._separatorElement=this.internalRenderSeparator(),this._renderedElement?(this.id&&(this._renderedElement.id=this.id),this.customCssSelector&&this._renderedElement.classList.add(this.customCssSelector),this._renderedElement.style.boxSizing=`border-box`,this._defaultRenderedElementDisplayMode=this._renderedElement.style.display?this._renderedElement.style.display:void 0,this.adjustRenderedElementSize(this._renderedElement),this.updateLayout(!1)):this.isDesignMode()&&(this._renderedElement=this.createPlaceholderElement()),this._renderedElement},r.prototype.updateLayout=function(e){e===void 0&&(e=!0),this.updateRenderedElementVisibility(),this.applyPadding()},r.prototype.updateActionsEnabledState=function(){for(var e=this.getRootElement().getAllActions(),t=0,n=e;t<n.length;t++)n[t].updateEnabledState()},r.prototype.indexOf=function(e){return-1},r.prototype.isDesignMode=function(){var e=this.getRootElement();return e instanceof qe&&e.designMode},r.prototype.isFirstElement=function(e){return!0},r.prototype.isLastElement=function(e){return!0},r.prototype.isAtTheVeryLeft=function(){return this.parent?this.parent.isLeftMostElement(this)&&this.parent.isAtTheVeryLeft():!0},r.prototype.isAtTheVeryRight=function(){return this.parent?this.parent.isRightMostElement(this)&&this.parent.isAtTheVeryRight():!0},r.prototype.isAtTheVeryTop=function(){return this.parent?this.parent.isFirstElement(this)&&this.parent.isAtTheVeryTop():!0},r.prototype.isAtTheVeryBottom=function(){return this.parent?this.parent.isLastElement(this)&&this.parent.isAtTheVeryBottom():!0},r.prototype.isBleedingAtTop=function(){return!1},r.prototype.isBleedingAtBottom=function(){return!1},r.prototype.isLeftMostElement=function(e){return!0},r.prototype.isRightMostElement=function(e){return!0},r.prototype.isTopElement=function(e){return this.isFirstElement(e)},r.prototype.isBottomElement=function(e){return this.isLastElement(e)},r.prototype.isHiddenDueToOverflow=function(){return this._renderedElement!==void 0&&this._renderedElement.style.visibility===`hidden`},r.prototype.getRootElement=function(){return this.getRootObject()},r.prototype.getParentContainer=function(){for(var e=this.parent;e;){if(e instanceof ke)return e;e=e.parent}},r.prototype.getAllInputs=function(e){return e===void 0&&(e=!0),[]},r.prototype.getAllActions=function(){for(var e=[],t=0;t<this.getActionCount();t++){var n=this.getActionAt(t);n&&e.push(n)}return e},r.prototype.getResourceInformation=function(){return[]},r.prototype.getElementById=function(e){return this.id===e?this:void 0},r.prototype.getActionById=function(e){},r.prototype.getElementByIdFromAction=function(e){for(var t=void 0,n=0;n<this.getActionCount();n++){var r=this.getActionAt(n);if(r instanceof xe&&(t=r.card.getElementById(e),t))break}return t},r.prototype.getEffectivePadding=function(){return this.getPadding()||this.getDefaultPadding()},r.prototype.getEffectiveHorizontalAlignment=function(){return this.horizontalAlignment===void 0?this.parent?this.parent.getEffectiveHorizontalAlignment():a.HorizontalAlignment.Left:this.horizontalAlignment},Object.defineProperty(r.prototype,`hostConfig`,{get:function(){return this._hostConfig?this._hostConfig:this.parent?this.parent.hostConfig:c.defaultHostConfig},set:function(e){this._hostConfig=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`index`,{get:function(){return this.parent?this.parent.indexOf(this):0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`isInteractive`,{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`isStandalone`,{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`isInline`,{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`hasVisibleSeparator`,{get:function(){return this.parent&&this.separatorElement?!this.parent.isFirstElement(this)&&(this.isVisible||this.isDesignMode()):!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`separatorElement`,{get:function(){return this._separatorElement},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`parent`,{get:function(){return this._parent},enumerable:!1,configurable:!0}),r.langProperty=new d.StringProperty(d.Versions.v1_1,`lang`,!0,/^[a-z]{2,3}$/gi),r.isVisibleProperty=new d.BoolProperty(d.Versions.v1_2,`isVisible`,!0),r.separatorProperty=new d.BoolProperty(d.Versions.v1_0,`separator`,!1),r.heightProperty=new d.ValueSetProperty(d.Versions.v1_1,`height`,[{value:`auto`},{value:`stretch`}],`auto`),r.horizontalAlignmentProperty=new d.EnumProperty(d.Versions.v1_0,`horizontalAlignment`,a.HorizontalAlignment),r.spacingProperty=new d.EnumProperty(d.Versions.v1_0,`spacing`,a.Spacing,a.Spacing.Default),n([(0,d.property)(r.horizontalAlignmentProperty)],r.prototype,`horizontalAlignment`,void 0),n([(0,d.property)(r.spacingProperty)],r.prototype,`spacing`,void 0),n([(0,d.property)(r.separatorProperty)],r.prototype,`separator`,void 0),n([(0,d.property)(r.heightProperty)],r.prototype,`height`,void 0),n([(0,d.property)(r.langProperty)],r.prototype,`lang`,null),n([(0,d.property)(r.isVisibleProperty)],r.prototype,`isVisible`,null),r}(u.CardObject);e.CardElement=_;var v=function(e){t(n,e);function n(t,n,r){r===void 0&&(r=[]);var i=e.call(this,t,n,void 0)||this;return i.targetVersion=t,i.name=n,i.forbiddenActionTypes=r,i}return n.prototype.parse=function(e,t,n){var r=e;return n.parseAction(r,t[this.name],this.forbiddenActionTypes,r.isDesignMode())},n.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,n?n.toJSON(r):void 0,void 0,!0)},n}(d.PropertyDefinition);e.ActionProperty=v;var y=function(e){t(r,e);function r(t){var n=e.call(this)||this;return n.ariaHidden=!1,t&&(n.text=t),n}return r.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.remove(r.selectActionProperty)},Object.defineProperty(r.prototype,`text`,{get:function(){return this.getValue(r.textProperty)},set:function(e){this.setText(e)},enumerable:!1,configurable:!0}),r.prototype.getFontSize=function(e){switch(this.effectiveSize){case a.TextSize.Small:return e.fontSizes.small;case a.TextSize.Medium:return e.fontSizes.medium;case a.TextSize.Large:return e.fontSizes.large;case a.TextSize.ExtraLarge:return e.fontSizes.extraLarge;default:return e.fontSizes.default}},r.prototype.getColorDefinition=function(e,t){switch(t){case a.TextColor.Accent:return e.accent;case a.TextColor.Dark:return e.dark;case a.TextColor.Light:return e.light;case a.TextColor.Good:return e.good;case a.TextColor.Warning:return e.warning;case a.TextColor.Attention:return e.attention;default:return e.default}},r.prototype.setText=function(e){this.setValue(r.textProperty,e)},r.prototype.init=function(e){this.size=e.size,this.weight=e.weight,this.color=e.color,this.isSubtle=e.isSubtle},r.prototype.asString=function(){return this.text},r.prototype.applyStylesTo=function(e){var t=this.hostConfig.getFontTypeDefinition(this.effectiveFontType);t.fontFamily&&(e.style.fontFamily=t.fontFamily);var n;switch(this.effectiveSize){case a.TextSize.Small:n=t.fontSizes.small;break;case a.TextSize.Medium:n=t.fontSizes.medium;break;case a.TextSize.Large:n=t.fontSizes.large;break;case a.TextSize.ExtraLarge:n=t.fontSizes.extraLarge;break;default:n=t.fontSizes.default;break}e.style.fontSize=n+`px`;var r=this.getColorDefinition(this.getEffectiveStyleDefinition().foregroundColors,this.effectiveColor),i=s.stringToCssColor(this.effectiveIsSubtle?r.subtle:r.default);i&&(e.style.color=i);var o;switch(this.effectiveWeight){case a.TextWeight.Lighter:o=t.fontWeights.lighter;break;case a.TextWeight.Bolder:o=t.fontWeights.bolder;break;default:o=t.fontWeights.default;break}e.style.fontWeight=o.toString(),this.ariaHidden&&e.setAttribute(`aria-hidden`,`true`)},r.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return this.selectAction&&t.push(this.selectAction),t},Object.defineProperty(r.prototype,`effectiveColor`,{get:function(){return this.color===void 0?this.getEffectiveTextStyleDefinition().color:this.color},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`effectiveFontType`,{get:function(){return this.fontType===void 0?this.getEffectiveTextStyleDefinition().fontType:this.fontType},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`effectiveIsSubtle`,{get:function(){return this.isSubtle===void 0?this.getEffectiveTextStyleDefinition().isSubtle:this.isSubtle},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`effectiveSize`,{get:function(){return this.size===void 0?this.getEffectiveTextStyleDefinition().size:this.size},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`effectiveWeight`,{get:function(){return this.weight===void 0?this.getEffectiveTextStyleDefinition().weight:this.weight},enumerable:!1,configurable:!0}),r.textProperty=new d.StringProperty(d.Versions.v1_0,`text`,!0),r.sizeProperty=new d.EnumProperty(d.Versions.v1_0,`size`,a.TextSize),r.weightProperty=new d.EnumProperty(d.Versions.v1_0,`weight`,a.TextWeight),r.colorProperty=new d.EnumProperty(d.Versions.v1_0,`color`,a.TextColor),r.isSubtleProperty=new d.BoolProperty(d.Versions.v1_0,`isSubtle`),r.fontTypeProperty=new d.EnumProperty(d.Versions.v1_2,`fontType`,a.FontType),r.selectActionProperty=new v(d.Versions.v1_1,`selectAction`,[`Action.ShowCard`]),n([(0,d.property)(r.sizeProperty)],r.prototype,`size`,void 0),n([(0,d.property)(r.weightProperty)],r.prototype,`weight`,void 0),n([(0,d.property)(r.colorProperty)],r.prototype,`color`,void 0),n([(0,d.property)(r.fontTypeProperty)],r.prototype,`fontType`,void 0),n([(0,d.property)(r.isSubtleProperty)],r.prototype,`isSubtle`,void 0),n([(0,d.property)(r.textProperty)],r.prototype,`text`,null),n([(0,d.property)(r.selectActionProperty)],r.prototype,`selectAction`,void 0),r}(_);e.BaseTextBlock=y;var b=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.wrap=!1,t._treatAsPlainText=!0,t.useMarkdown=!0,t}return r.prototype.restoreOriginalContent=function(){if(this.renderedElement!==void 0){this.maxLines&&this.maxLines>0&&(this.renderedElement.style.maxHeight=this._computedLineHeight*this.maxLines+`px`);var e=r._ttRoundtripPolicy?.createHTML(this._originalInnerHtml)??this._originalInnerHtml;this.renderedElement.innerHTML=e}},r.prototype.truncateIfSupported=function(e){if(this.renderedElement!==void 0){var t=this.renderedElement.children,n=!t.length;if(n||t.length===1&&t[0].tagName.toLowerCase()===`p`&&!t[0].children.length){var r=n?this.renderedElement:t[0];return s.truncateText(r,e,this._computedLineHeight),!0}}return!1},r.prototype.setText=function(t){e.prototype.setText.call(this,t),this._processedText=void 0},r.prototype.internalRender=function(){var e=this;if(this._processedText=void 0,this.text){var t=this.preProcessPropertyValue(y.textProperty),n=this.hostConfig,i=void 0;if(this.forElementId){var a=document.createElement(`label`);a.htmlFor=this.forElementId,i=a}else i=document.createElement(`div`);if(i.classList.add(n.makeCssClassName(`ac-textBlock`)),i.style.overflow=`hidden`,this.applyStylesTo(i),this.style===`heading`){i.setAttribute(`role`,`heading`);var c=this.hostConfig.textBlock.headingLevel;c!==void 0&&c>0&&i.setAttribute(`aria-level`,c.toString())}if(this.selectAction&&n.supportsInteractivity&&(i.onclick=function(t){e.selectAction&&e.selectAction.isEffectivelyEnabled()&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},this.selectAction.setupElementForAccessibility(i),this.selectAction.isEffectivelyEnabled()&&i.classList.add(n.makeCssClassName(`ac-selectable`))),!this._processedText){this._treatAsPlainText=!0;var u=l.formatText(this.lang,t);if(this.useMarkdown&&u){o.GlobalSettings.allowMarkForTextHighlighting&&(u=u.replace(/<mark>/g,`===`).replace(/<\/mark>/g,`/==/`));var d=qe.applyMarkdown(u);if(d.didProcess&&d.outputHtml){if(this._processedText=d.outputHtml,this._treatAsPlainText=!1,o.GlobalSettings.allowMarkForTextHighlighting&&this._processedText){var f=``,p=this.getEffectiveStyleDefinition();p.highlightBackgroundColor&&(f+=`background-color: `+p.highlightBackgroundColor+`;`),p.highlightForegroundColor&&(f+=`color: `+p.highlightForegroundColor+`;`),f&&=`style="`+f+`"`,this._processedText=this._processedText.replace(/===/g,`<mark `+f+`>`).replace(/\/==\//g,`</mark>`)}}else this._processedText=u,this._treatAsPlainText=!0}else this._processedText=u,this._treatAsPlainText=!0}if(this._processedText||=``,this._treatAsPlainText)i.innerText=this._processedText;else{var m=r._ttMarkdownPolicy?.createHTML(this._processedText)??this._processedText;i.innerHTML=m}if(i.firstElementChild instanceof HTMLElement){var h=i.firstElementChild;h.style.marginTop=`0px`,h.style.width=`100%`,this.wrap||(h.style.overflow=`hidden`,h.style.textOverflow=`ellipsis`)}i.lastElementChild instanceof HTMLElement&&(i.lastElementChild.style.marginBottom=`0px`);for(var g=i.getElementsByTagName(`a`),_=function(t){t.classList.add(n.makeCssClassName(`ac-anchor`)),t.target=`_blank`,t.onclick=function(n){Ne(e,t,n)&&(n.preventDefault(),n.cancelBubble=!0)},t.oncontextmenu=function(n){return Ne(e,t,n)?(n.preventDefault(),n.cancelBubble=!0,!1):!0}},v=0,b=Array.from(g);v<b.length;v++){var x=b[v];_(x)}return this.wrap?(i.style.wordWrap=`break-word`,this.maxLines&&this.maxLines>0&&(i.style.overflow=`hidden`,s.isInternetExplorer()||!o.GlobalSettings.useWebkitLineClamp?i.style.maxHeight=this._computedLineHeight*this.maxLines+`px`:(i.style.removeProperty(`line-height`),i.style.display=`-webkit-box`,i.style.webkitBoxOrient=`vertical`,i.style.webkitLineClamp=this.maxLines.toString()))):(i.style.whiteSpace=`nowrap`,i.style.textOverflow=`ellipsis`),(o.GlobalSettings.useAdvancedTextBlockTruncation||o.GlobalSettings.useAdvancedCardBottomTruncation)&&(this._originalInnerHtml=i.innerHTML),i}else return},r.prototype.truncateOverflow=function(e){return e>=this._computedLineHeight?this.truncateIfSupported(e):!1},r.prototype.undoOverflowTruncation=function(){if(this.restoreOriginalContent(),o.GlobalSettings.useAdvancedTextBlockTruncation&&this.maxLines){var e=this._computedLineHeight*this.maxLines;this.truncateIfSupported(e)}},r.prototype.applyStylesTo=function(t){switch(e.prototype.applyStylesTo.call(this,t),this.getEffectiveHorizontalAlignment()){case a.HorizontalAlignment.Center:t.style.textAlign=`center`;break;case a.HorizontalAlignment.Right:t.style.textAlign=`end`;break;default:t.style.textAlign=`start`;break}var n=this.hostConfig.lineHeights;if(n)switch(this.effectiveSize){case a.TextSize.Small:this._computedLineHeight=n.small;break;case a.TextSize.Medium:this._computedLineHeight=n.medium;break;case a.TextSize.Large:this._computedLineHeight=n.large;break;case a.TextSize.ExtraLarge:this._computedLineHeight=n.extraLarge;break;default:this._computedLineHeight=n.default;break}else this._computedLineHeight=this.getFontSize(this.hostConfig.getFontTypeDefinition(this.effectiveFontType))*1.33;t.style.lineHeight=this._computedLineHeight+`px`},r.prototype.getJsonTypeName=function(){return`TextBlock`},r.prototype.getEffectiveTextStyleDefinition=function(){return this.style?this.hostConfig.textStyles.getStyleByName(this.style):e.prototype.getEffectiveTextStyleDefinition.call(this)},r.prototype.updateLayout=function(t){t===void 0&&(t=!1),e.prototype.updateLayout.call(this,t),o.GlobalSettings.useAdvancedTextBlockTruncation&&this.maxLines&&this.isDisplayed()&&(this.restoreOriginalContent(),this.truncateIfSupported(this._computedLineHeight*this.maxLines))},r.wrapProperty=new d.BoolProperty(d.Versions.v1_0,`wrap`,!1),r.maxLinesProperty=new d.NumProperty(d.Versions.v1_0,`maxLines`),r.styleProperty=new d.ValueSetProperty(d.Versions.v1_5,`style`,[{value:`default`},{value:`columnHeader`},{value:`heading`}]),r._ttMarkdownPolicy=typeof window>`u`?void 0:window.trustedTypes?.createPolicy(`adaptivecards#markdownPassthroughPolicy`,{createHTML:function(e){return e}}),r._ttRoundtripPolicy=typeof window>`u`?void 0:window.trustedTypes?.createPolicy(`adaptivecards#restoreContentsPolicy`,{createHTML:function(e){return e}}),n([(0,d.property)(r.wrapProperty)],r.prototype,`wrap`,void 0),n([(0,d.property)(r.maxLinesProperty)],r.prototype,`maxLines`,void 0),n([(0,d.property)(r.styleProperty)],r.prototype,`style`,void 0),r}(y);e.TextBlock=b;var x=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.italic=!1,t.strikethrough=!1,t.highlight=!1,t.underline=!1,t}return r.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.add(y.selectActionProperty)},r.prototype.internalRender=function(){var e=this;if(this.text){var t=this.preProcessPropertyValue(y.textProperty),n=this.hostConfig,r=l.formatText(this.lang,t);r||=``;var i=document.createElement(`span`);if(i.classList.add(n.makeCssClassName(`ac-textRun`)),this.applyStylesTo(i),this.selectAction&&n.supportsInteractivity){var a=document.createElement(`a`);a.classList.add(n.makeCssClassName(`ac-anchor`)),a.href=this.selectAction.getHref()||``,a.target=`_blank`,a.onclick=function(t){e.selectAction&&e.selectAction.isEffectivelyEnabled()&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},this.selectAction.setupElementForAccessibility(a),a.innerText=r,i.appendChild(a)}else i.innerText=r;return i}else return},r.prototype.applyStylesTo=function(t){if(e.prototype.applyStylesTo.call(this,t),this.italic&&(t.style.fontStyle=`italic`),this.strikethrough&&(t.style.textDecoration=`line-through`),this.highlight){var n=this.getColorDefinition(this.getEffectiveStyleDefinition().foregroundColors,this.effectiveColor),r=s.stringToCssColor(this.effectiveIsSubtle?n.highlightColors.subtle:n.highlightColors.default);r&&(t.style.backgroundColor=r)}this.underline&&(t.style.textDecoration=`underline`)},r.prototype.getJsonTypeName=function(){return`TextRun`},Object.defineProperty(r.prototype,`isStandalone`,{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`isInline`,{get:function(){return!0},enumerable:!1,configurable:!0}),r.italicProperty=new d.BoolProperty(d.Versions.v1_2,`italic`,!1),r.strikethroughProperty=new d.BoolProperty(d.Versions.v1_2,`strikethrough`,!1),r.highlightProperty=new d.BoolProperty(d.Versions.v1_2,`highlight`,!1),r.underlineProperty=new d.BoolProperty(d.Versions.v1_3,`underline`,!1),n([(0,d.property)(r.italicProperty)],r.prototype,`italic`,void 0),n([(0,d.property)(r.strikethroughProperty)],r.prototype,`strikethrough`,void 0),n([(0,d.property)(r.highlightProperty)],r.prototype,`highlight`,void 0),n([(0,d.property)(r.underlineProperty)],r.prototype,`underline`,void 0),r}(y);e.TextRun=x;var S=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t._inlines=[],t}return n.prototype.internalAddInline=function(e,t){if(t===void 0&&(t=!1),!e.isInline)throw Error(p.Strings.errors.elementCannotBeUsedAsInline());if(!(e.parent===void 0||t)&&e.parent!==this)throw Error(p.Strings.errors.inlineAlreadyParented());e.setParent(this),this._inlines.push(e)},n.prototype.internalParse=function(t,n){if(e.prototype.internalParse.call(this,t,n),this._inlines=[],Array.isArray(t.inlines))for(var r=0,i=t.inlines;r<i.length;r++){var a=i[r],o=void 0;if(typeof a==`string`){var s=new x;s.text=a,o=s}else o=n.parseElement(this,a,[],!1);o&&this.internalAddInline(o,!0)}},n.prototype.internalToJSON=function(t,n){if(e.prototype.internalToJSON.call(this,t,n),this._inlines.length>0){for(var r=[],i=0,a=this._inlines;i<a.length;i++){var o=a[i];r.push(o.toJSON(n))}n.serializeValue(t,`inlines`,r)}},n.prototype.internalRender=function(){if(this._inlines.length>0){var e=void 0;if(this.forElementId){var t=document.createElement(`label`);t.htmlFor=this.forElementId,e=t}else e=document.createElement(`div`);switch(e.className=this.hostConfig.makeCssClassName(`ac-richTextBlock`),this.getEffectiveHorizontalAlignment()){case a.HorizontalAlignment.Center:e.style.textAlign=`center`;break;case a.HorizontalAlignment.Right:e.style.textAlign=`end`;break;default:e.style.textAlign=`start`;break}for(var n=0,r=0,i=this._inlines;r<i.length;r++){var o=i[r].render();o&&(e.appendChild(o),n++)}if(n>0)return e}},n.prototype.asString=function(){for(var e=``,t=0,n=this._inlines;t<n.length;t++){var r=n[t];e+=r.asString()}return e},n.prototype.getJsonTypeName=function(){return`RichTextBlock`},n.prototype.getInlineCount=function(){return this._inlines.length},n.prototype.getInlineAt=function(e){if(e>=0&&e<this._inlines.length)return this._inlines[e];throw Error(p.Strings.errors.indexOutOfRange(e))},n.prototype.addInline=function(e){typeof e==`string`?this.internalAddInline(new x(e)):this.internalAddInline(e)},n.prototype.removeInline=function(e){var t=this._inlines.indexOf(e);return t>=0?(this._inlines[t].setParent(void 0),this._inlines.splice(t,1),!0):!1},n}(_);e.RichTextBlock=S;var C=function(e){t(r,e);function r(t,n){var r=e.call(this)||this;return r.name=t,r.value=n,r}return r.prototype.getSchemaKey=function(){return`Fact`},r.titleProperty=new d.StringProperty(d.Versions.v1_0,`title`),r.valueProperty=new d.StringProperty(d.Versions.v1_0,`value`),n([(0,d.property)(r.titleProperty)],r.prototype,`name`,void 0),n([(0,d.property)(r.valueProperty)],r.prototype,`value`,void 0),r}(d.SerializableObject);e.Fact=C;var w=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(r.prototype,`useDefaultSizing`,{get:function(){return!1},enumerable:!1,configurable:!0}),r.prototype.internalRender=function(){var e=void 0,t=this.hostConfig;if(this.facts.length>0){e=document.createElement(`table`),e.style.borderWidth=`0px`,e.style.borderSpacing=`0px`,e.style.borderStyle=`none`,e.style.borderCollapse=`collapse`,e.style.display=`block`,e.style.overflow=`hidden`,e.classList.add(t.makeCssClassName(`ac-factset`)),e.setAttribute(`role`,`presentation`);for(var n=0;n<this.facts.length;n++){var r=document.createElement(`tr`);n>0&&(r.style.marginTop=t.factSet.spacing+`px`);var i=document.createElement(`td`);i.style.padding=`0`,i.classList.add(t.makeCssClassName(`ac-fact-title`)),t.factSet.title.maxWidth&&(i.style.maxWidth=t.factSet.title.maxWidth+`px`),i.style.verticalAlign=`top`;var o=new b;o.setParent(this),o.text=!this.facts[n].name&&this.isDesignMode()?`Title`:this.facts[n].name,o.size=t.factSet.title.size,o.color=t.factSet.title.color,o.isSubtle=t.factSet.title.isSubtle,o.weight=t.factSet.title.weight,o.wrap=t.factSet.title.wrap,o.spacing=a.Spacing.None,s.appendChild(i,o.render()),s.appendChild(r,i),i=document.createElement(`td`),i.style.width=`10px`,s.appendChild(r,i),i=document.createElement(`td`),i.style.padding=`0`,i.style.verticalAlign=`top`,i.classList.add(t.makeCssClassName(`ac-fact-value`)),o=new b,o.setParent(this),o.text=this.facts[n].value,o.size=t.factSet.value.size,o.color=t.factSet.value.color,o.isSubtle=t.factSet.value.isSubtle,o.weight=t.factSet.value.weight,o.wrap=t.factSet.value.wrap,o.spacing=a.Spacing.None,s.appendChild(i,o.render()),s.appendChild(r,i),s.appendChild(e,r)}}return e},r.prototype.getJsonTypeName=function(){return`FactSet`},r.factsProperty=new d.SerializableObjectCollectionProperty(d.Versions.v1_0,`facts`,C),n([(0,d.property)(r.factsProperty)],r.prototype,`facts`,void 0),r}(_);e.FactSet=w;var T=function(e){t(n,e);function n(t,n,r,i){var a=e.call(this,t,n)||this;return a.targetVersion=t,a.name=n,a.internalName=r,a.fallbackProperty=i,a}return n.prototype.getInternalName=function(){return this.internalName},n.prototype.parse=function(e,t,n){var r=void 0,i=t[this.name];if(i===void 0)return this.defaultValue;var s=!1;if(typeof i==`string`){try{var c=o.SizeAndUnit.parse(i,!0);c.unit===a.SizeUnit.Pixel&&(r=c.physicalSize,s=!0)}catch{}!s&&this.fallbackProperty&&(s=this.fallbackProperty.isValidValue(i,n))}return s||n.logParseEvent(e,a.ValidationEvent.InvalidPropertyValue,p.Strings.errors.invalidPropertyValue(i,this.name)),r},n.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,typeof n==`number`&&!isNaN(n)?n+`px`:void 0)},n}(d.PropertyDefinition),E=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.size=a.Size.Auto,t.style=a.ImageStyle.Default,t}return r.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.remove(_.heightProperty)},r.prototype.applySize=function(e){if(this.pixelWidth||this.pixelHeight)this.pixelWidth&&(e.style.width=this.pixelWidth+`px`),this.pixelHeight&&(e.style.height=this.pixelHeight+`px`);else if(this.maxHeight){switch(this.size){case a.Size.Small:e.style.height=this.hostConfig.imageSizes.small+`px`;break;case a.Size.Large:e.style.height=this.hostConfig.imageSizes.large+`px`;break;default:e.style.height=this.hostConfig.imageSizes.medium+`px`;break}e.style.maxHeight=this.maxHeight+`px`}else{switch(this.size){case a.Size.Stretch:e.style.width=`100%`;break;case a.Size.Auto:e.style.maxWidth=`100%`;break;case a.Size.Small:e.style.width=this.hostConfig.imageSizes.small+`px`;break;case a.Size.Large:e.style.width=this.hostConfig.imageSizes.large+`px`;break;case a.Size.Medium:e.style.width=this.hostConfig.imageSizes.medium+`px`;break}e.style.maxHeight=`100%`}},Object.defineProperty(r.prototype,`useDefaultSizing`,{get:function(){return!1},enumerable:!1,configurable:!0}),r.prototype.internalRender=function(){var e=this,t=void 0;if(this.url){t=document.createElement(`div`),t.style.display=`flex`,t.style.alignItems=`flex-start`;var n=this.hostConfig;switch(this.getEffectiveHorizontalAlignment()){case a.HorizontalAlignment.Center:t.style.justifyContent=`center`;break;case a.HorizontalAlignment.Right:t.style.justifyContent=`flex-end`;break;default:t.style.justifyContent=`flex-start`;break}var i=document.createElement(`img`);this.renderedImageElement=i,i.onload=function(t){Me(e)},i.onerror=function(t){if(e.renderedElement){var n=e.getRootElement();if(h(e.renderedElement),n&&n.designMode){var r=document.createElement(`div`);r.style.display=`flex`,r.style.alignItems=`center`,r.style.justifyContent=`center`,r.style.backgroundColor=`#EEEEEE`,r.style.color=`black`,r.innerText=`:-(`,r.style.padding=`10px`,e.applySize(r),e.renderedElement.appendChild(r)}}Me(e)},i.style.minWidth=`0`,i.classList.add(n.makeCssClassName(`ac-image`)),this.selectAction&&n.supportsInteractivity&&(i.onkeypress=function(t){e.selectAction&&e.selectAction.isEffectivelyEnabled()&&(t.code===`Enter`||t.code===`Space`)&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},i.onclick=function(t){e.selectAction&&e.selectAction.isEffectivelyEnabled()&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},this.selectAction.setupElementForAccessibility(i),this.selectAction.isEffectivelyEnabled()&&i.classList.add(n.makeCssClassName(`ac-selectable`))),this.applySize(i),this.style===a.ImageStyle.Person&&(i.style.borderRadius=`50%`,i.style.backgroundPosition=`50% 50%`,i.style.backgroundRepeat=`no-repeat`);var o=s.stringToCssColor(this.backgroundColor);o&&(i.style.backgroundColor=o),this.setImageSource(i);var c=this.preProcessPropertyValue(r.altTextProperty);c&&(i.alt=c),t.appendChild(i)}return t},r.prototype.getJsonTypeName=function(){return`Image`},r.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return this.selectAction&&t.push(this.selectAction),t},r.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);return!n&&this.selectAction&&(n=this.selectAction.getActionById(t)),n},r.prototype.getResourceInformation=function(){return this.url?[{url:this.url,mimeType:`image`}]:[]},r.prototype.setImageSource=function(e){var t=new D(this.forceLoad,this.url);t.configureImage(this),e.src=this.preProcessPropertyValue(r.urlProperty),t.resetImage(this)},r.urlProperty=new d.StringProperty(d.Versions.v1_0,`url`),r.altTextProperty=new d.StringProperty(d.Versions.v1_0,`altText`),r.backgroundColorProperty=new d.StringProperty(d.Versions.v1_1,`backgroundColor`),r.styleProperty=new d.EnumProperty(d.Versions.v1_0,`style`,a.ImageStyle,a.ImageStyle.Default),r.sizeProperty=new d.EnumProperty(d.Versions.v1_0,`size`,a.Size,a.Size.Auto),r.pixelWidthProperty=new T(d.Versions.v1_1,`width`,`pixelWidth`),r.pixelHeightProperty=new T(d.Versions.v1_1,`height`,`pixelHeight`,_.heightProperty),r.selectActionProperty=new v(d.Versions.v1_1,`selectAction`,[`Action.ShowCard`]),r.shouldForceLoadProperty=new d.BoolProperty(d.Versions.v1_6,`forceLoad`,!1),n([(0,d.property)(r.urlProperty)],r.prototype,`url`,void 0),n([(0,d.property)(r.altTextProperty)],r.prototype,`altText`,void 0),n([(0,d.property)(r.backgroundColorProperty)],r.prototype,`backgroundColor`,void 0),n([(0,d.property)(r.sizeProperty)],r.prototype,`size`,void 0),n([(0,d.property)(r.styleProperty)],r.prototype,`style`,void 0),n([(0,d.property)(r.pixelWidthProperty)],r.prototype,`pixelWidth`,void 0),n([(0,d.property)(r.pixelHeightProperty)],r.prototype,`pixelHeight`,void 0),n([(0,d.property)(r.selectActionProperty)],r.prototype,`selectAction`,void 0),n([(0,d.property)(r.shouldForceLoadProperty)],r.prototype,`forceLoad`,void 0),r}(_);e.Image=E;var D=function(){function e(e,t){this.doForceLoad=e,this.url=t,t&&t.length&&e&&(this.uniqueHash=`?`+Date.now(),this.urlWithForceLoadOption=t+this.uniqueHash)}return e.prototype.configureImage=function(e){this.urlWithForceLoadOption&&this.urlWithForceLoadOption.length&&(e.url=this.urlWithForceLoadOption)},e.prototype.resetImage=function(e){e.url=this.url},e}(),O=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.allowVerticalOverflow=!1,t}return r.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),this.isSelectable||t.remove(r.selectActionProperty)},r.prototype.isElementAllowed=function(e){return this.hostConfig.supportsInteractivity||!e.isInteractive},r.prototype.applyPadding=function(){if(e.prototype.applyPadding.call(this),this.renderedElement){var t=new o.SpacingDefinition;this.getEffectivePadding()&&(t=this.hostConfig.paddingDefinitionToSpacingDefinition(this.getEffectivePadding())),this.renderedElement.style.paddingTop=t.top+`px`,this.renderedElement.style.paddingRight=t.right+`px`,this.renderedElement.style.paddingBottom=t.bottom+`px`,this.renderedElement.style.paddingLeft=t.left+`px`,this.renderedElement.style.marginRight=`0`,this.renderedElement.style.marginLeft=`0`}},Object.defineProperty(r.prototype,`isSelectable`,{get:function(){return!1},enumerable:!1,configurable:!0}),r.prototype.forbiddenChildElements=function(){return[]},r.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this);for(var t=0;t<this.getItemCount();t++)this.getItemAt(t).releaseDOMResources()},r.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t);for(var n=0;n<this.getItemCount();n++){var r=this.getItemAt(n);!this.hostConfig.supportsInteractivity&&r.isInteractive&&t.addFailure(this,a.ValidationEvent.InteractivityNotAllowed,p.Strings.errors.interactivityNotAllowed()),this.isElementAllowed(r)||t.addFailure(this,a.ValidationEvent.InteractivityNotAllowed,p.Strings.errors.elementTypeNotAllowed(r.getJsonTypeName())),r.internalValidateProperties(t)}this._selectAction&&this._selectAction.internalValidateProperties(t)},r.prototype.render=function(){var t=this,n=e.prototype.render.call(this);if(n){var r=this.hostConfig;this.allowVerticalOverflow&&(n.style.overflowX=`hidden`,n.style.overflowY=`auto`),n&&this.isSelectable&&this._selectAction&&r.supportsInteractivity&&(n.onclick=function(e){t._selectAction&&t._selectAction.isEffectivelyEnabled()&&(e.preventDefault(),e.cancelBubble=!0,t._selectAction.execute())},n.onkeypress=function(e){t._selectAction&&t._selectAction.isEffectivelyEnabled()&&(e.code===`Enter`||e.code===`Space`)&&(e.preventDefault(),e.cancelBubble=!0,t._selectAction.execute())},this._selectAction.setupElementForAccessibility(n),this._selectAction.isEffectivelyEnabled()&&n.classList.add(r.makeCssClassName(`ac-selectable`)))}return n},r.prototype.updateLayout=function(t){if(t===void 0&&(t=!0),e.prototype.updateLayout.call(this,t),t)for(var n=0;n<this.getItemCount();n++)this.getItemAt(n).updateLayout()},r.prototype.getAllInputs=function(e){e===void 0&&(e=!0);for(var t=[],n=0;n<this.getItemCount();n++)t.push.apply(t,this.getItemAt(n).getAllInputs(e));return t},r.prototype.getAllActions=function(){for(var t=e.prototype.getAllActions.call(this),n=0;n<this.getItemCount();n++)t.push.apply(t,this.getItemAt(n).getAllActions());return this._selectAction&&t.push(this._selectAction),t},r.prototype.getResourceInformation=function(){for(var e=[],t=0;t<this.getItemCount();t++)e.push.apply(e,this.getItemAt(t).getResourceInformation());return e},r.prototype.getElementById=function(t){var n=e.prototype.getElementById.call(this,t);if(!n)for(var r=0;r<this.getItemCount()&&(n=this.getItemAt(r).getElementById(t),!n);r++);return n},r.prototype.findDOMNodeOwner=function(t){for(var n=void 0,r=0;r<this.getItemCount();r++)if(n=this.getItemAt(r).findDOMNodeOwner(t),n)return n;for(var r=0;r<this.getActionCount();r++)if(n=this.getActionAt(r)?.findDOMNodeOwner(t),n)return n;return e.prototype.findDOMNodeOwner.call(this,t)},r.selectActionProperty=new v(d.Versions.v1_1,`selectAction`,[`Action.ShowCard`]),n([(0,d.property)(r.selectActionProperty)],r.prototype,`_selectAction`,void 0),r}(_);e.CardElementContainer=O;var k=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t._images=[],t.imageSize=a.ImageSize.Medium,t.presentationStyle=a.ImageSetPresentationStyle.Default,t.pixelOffset=0,t}return r.prototype.internalRender=function(){var e=void 0;if(this._images.length>0){e=document.createElement(`div`),e.style.display=`flex`,e.style.flexWrap=`wrap`;for(var t=0,n=this._images;t<n.length;t++){var r=n[t];switch(this.imageSize){case a.ImageSize.Small:r.size=a.Size.Small;break;case a.ImageSize.Large:r.size=a.Size.Large;break;default:r.size=a.Size.Medium;break}r.maxHeight=this.hostConfig.imageSet.maxImageHeight;var i=r.render();i&&(i.style.display=`inline-flex`,i.style.margin=`0px`,this.presentationStyle==a.ImageSetPresentationStyle.Default&&(i.style.marginRight=`10px`),s.appendChild(e,i))}this.presentationStyle==a.ImageSetPresentationStyle.Stacked&&this.applyStackedPresentationStyle()}return e},r.prototype.applyStackedPresentationStyle=function(){if(this._images[0].renderedImageElement){var e=A.parseNumericPixelDimension(this._images[0].renderedImageElement.style.height),t=this.getEffectiveBackgroundColor();e&&new A(this.pixelOffset,e,t).configureImagesArrayAsStackedLayout(this._images)}},r.prototype.getEffectiveBackgroundColor=function(){var e=this.getParentContainer()?.getEffectiveStyle(),t=this.hostConfig.containerStyles.getStyleByName(e,this.hostConfig.containerStyles.getStyleByName(this.defaultStyle));return s.stringToCssColor(t.backgroundColor)},r.prototype.getItemCount=function(){return this._images.length},r.prototype.getItemAt=function(e){return this._images[e]},r.prototype.getFirstVisibleRenderedItem=function(){return this._images&&this._images.length>0?this._images[0]:void 0},r.prototype.getLastVisibleRenderedItem=function(){return this._images&&this._images.length>0?this._images[this._images.length-1]:void 0},r.prototype.removeItem=function(e){if(e instanceof E){var t=this._images.indexOf(e);if(t>=0)return this._images.splice(t,1),e.setParent(void 0),this.updateLayout(),!0}return!1},r.prototype.getJsonTypeName=function(){return`ImageSet`},r.prototype.addImage=function(e){if(!e.parent)this._images.push(e),e.setParent(this);else throw Error(`This image already belongs to another ImageSet`)},r.prototype.indexOf=function(e){return e instanceof E?this._images.indexOf(e):-1},r.imagesProperty=new d.SerializableObjectCollectionProperty(d.Versions.v1_0,`images`,E,function(e,t){t.setParent(e)}),r.imageSizeProperty=new d.EnumProperty(d.Versions.v1_0,`imageSize`,a.ImageSize,a.ImageSize.Medium),r.imagePresentationStyle=new d.EnumProperty(d.Versions.v1_6,`style`,a.ImageSetPresentationStyle,a.ImageSetPresentationStyle.Default),r.pixelOffset=new d.NumProperty(d.Versions.v1_6,`offset`,0,void 0),n([(0,d.property)(r.imagesProperty)],r.prototype,`_images`,void 0),n([(0,d.property)(r.imageSizeProperty)],r.prototype,`imageSize`,void 0),n([(0,d.property)(r.imagePresentationStyle)],r.prototype,`presentationStyle`,void 0),n([(0,d.property)(r.pixelOffset)],r.prototype,`pixelOffset`,void 0),r}(O);e.ImageSet=k;var A=function(){function e(e,t,n){this.sign45=.7071,this.maxImageCounts=2,this.offset=0,this.normalizationConstant=0,this.border=5,this.dimension=0,this.dimension=t,this.normalizationConstant=(t*this.sign45-.5*t)*2,this.offset=this.sign45*(Math.max(e,-t)-this.normalizationConstant),this.style=n||``}return e.prototype.moveImageRight=function(e){e.style.marginLeft=this.offset+`px`},e.prototype.moveImageUp=function(e){e.style.marginBottom=this.offset+this.dimension+`px`},e.prototype.moveImageDown=function(e){e.style.marginTop=this.offset+this.dimension+`px`},e.prototype.makeImageRound=function(e){e.style.borderRadius=`50%`,e.style.backgroundPosition=`50% 50%`,e.style.backgroundRepeat=`no-repeat`},e.prototype.applyBorder=function(e){e.style.height=this.dimension+this.border*2+`px`,e.style.border=this.border+`px solid `+this.style},e.prototype.configureImageForBottomLeft=function(e){this.moveImageDown(e),this.makeImageRound(e),this.applyBorder(e),e.style.zIndex=`2`},e.prototype.configureImageForTopRight=function(e){this.moveImageUp(e),this.moveImageRight(e),this.makeImageRound(e),e.style.zIndex=`1`},e.prototype.configureImagesArrayAsStackedLayout=function(e){e.length==1?e[0].renderedImageElement&&this.makeImageRound(e[0].renderedImageElement):e.length<=this.maxImageCounts&&e[0].renderedImageElement&&e[1].renderedImageElement&&(this.configureImageForBottomLeft(e[0].renderedImageElement),this.configureImageForTopRight(e[1].renderedImageElement))},e.parseNumericPixelDimension=function(e){if(e?.substring(e.length-2)==`px`)return parseInt(e.substring(0,e.length-2))},e}(),j=function(e){t(r,e);function r(t,n){var r=e.call(this)||this;return r.url=t,r.mimeType=n,r}return r.prototype.isValid=function(){return!!(this.mimeType&&this.url)},r.mimeTypeProperty=new d.StringProperty(d.Versions.v1_1,`mimeType`),r.urlProperty=new d.StringProperty(d.Versions.v1_1,`url`),n([(0,d.property)(r.mimeTypeProperty)],r.prototype,`mimeType`,void 0),n([(0,d.property)(r.urlProperty)],r.prototype,`url`,void 0),r}(d.SerializableObject);e.ContentSource=j;var M=function(e){t(r,e);function r(t,n,r){var i=e.call(this,t,n)||this;return i.label=r,i}return r.prototype.getSchemaKey=function(){return`CaptionSource`},r.prototype.render=function(){var e=void 0;return this.isValid()&&(e=document.createElement(`track`),e.src=this.url,e.kind=`captions`,e.label=this.label),e},r.labelProperty=new d.StringProperty(d.Versions.v1_6,`label`),n([(0,d.property)(r.labelProperty)],r.prototype,`label`,void 0),r}(j);e.CaptionSource=M;var N=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.getSchemaKey=function(){return`MediaSource`},n.prototype.render=function(){var e=void 0;return this.isValid()&&(e=document.createElement(`source`),e.src=this.url,e.type=this.mimeType),e},n}(j);e.MediaSource=N;var P=function(){function e(){}return e.prototype.play=function(){},Object.defineProperty(e.prototype,`posterUrl`,{get:function(){return this._posterUrl},set:function(e){this._posterUrl=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`selectedMediaType`,{get:function(){},enumerable:!1,configurable:!0}),e}();e.MediaPlayer=P;var F=function(e){t(n,e);function n(t){var n=e.call(this)||this;return n.owner=t,n._selectedSources=[],n._captionSources=[],n.processSources(),n}return n.prototype.processSources=function(){var e;this._selectedSources=[],this._captionSources=[],this._selectedMediaType=void 0;for(var t=0,r=this.owner.sources;t<r.length;t++){var i=r[t],a=i.mimeType?i.mimeType.split(`/`):[];if(a.length===2){if(!this._selectedMediaType){var o=n.supportedMediaTypes.indexOf(a[0]);o>=0&&(this._selectedMediaType=n.supportedMediaTypes[o])}a[0]===this._selectedMediaType&&this._selectedSources.push(i)}}(e=this._captionSources).push.apply(e,this.owner.captionSources)},n.prototype.canPlay=function(){return this._selectedSources.length>0},n.prototype.fetchVideoDetails=function(){return r(this,void 0,void 0,function(){return i(this,function(e){return[2]})})},n.prototype.render=function(){this._selectedMediaType===`video`?this._mediaElement=document.createElement(`video`):this._mediaElement=document.createElement(`audio`),this._mediaElement.setAttribute(`aria-label`,this.owner.altText?this.owner.altText:p.Strings.defaults.mediaPlayerAriaLabel()),this._mediaElement.setAttribute(`webkit-playsinline`,``),this._mediaElement.setAttribute(`playsinline`,``),this._mediaElement.setAttribute(`crossorigin`,``),this._mediaElement.autoplay=!0,this._mediaElement.controls=!0,s.isMobileOS()&&(this._mediaElement.muted=!0),this._mediaElement.preload=`none`,this._mediaElement.style.width=`100%`;for(var e=0,t=this.owner.sources;e<t.length;e++){var n=t[e].render();s.appendChild(this._mediaElement,n)}for(var r=0,i=this.owner.captionSources;r<i.length;r++){var a=i[r];if(a.mimeType==`vtt`){var o=a.render();s.appendChild(this._mediaElement,o)}}return this._mediaElement},n.prototype.play=function(){this._mediaElement&&this._mediaElement.play()},Object.defineProperty(n.prototype,`selectedMediaType`,{get:function(){return this._selectedMediaType},enumerable:!1,configurable:!0}),n.supportedMediaTypes=[`audio`,`video`],n}(P);e.HTML5MediaPlayer=F;var ee=function(e){t(n,e);function n(t){return e.call(this)||this}return n}(P);e.CustomMediaPlayer=ee;var te=function(e){t(n,e);function n(t,n){var r=e.call(this,t)||this;return r.iFrameTitle=n,t.length>=2&&(r._videoId=t[1]),r}return n.prototype.canPlay=function(){return this._videoId!==void 0},n.prototype.render=function(){var e=document.createElement(`div`);e.style.position=`relative`,e.style.width=`100%`,e.style.height=`0`,e.style.paddingBottom=`56.25%`;var t=document.createElement(`iframe`);return t.style.position=`absolute`,t.style.top=`0`,t.style.left=`0`,t.style.width=`100%`,t.style.height=`100%`,t.src=this.getEmbedVideoUrl(),t.frameBorder=`0`,this.iFrameTitle&&(t.title=this.iFrameTitle),t.allow=`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture`,t.allowFullscreen=!0,e.appendChild(t),e},Object.defineProperty(n.prototype,`videoId`,{get:function(){return this._videoId},enumerable:!1,configurable:!0}),n}(ee);e.IFrameMediaMediaPlayer=te;var I=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.fetchVideoDetails=function(){return r(this,void 0,void 0,function(){var e,t,n;return i(this,function(r){switch(r.label){case 0:return e=`https://vimeo.com/api/oembed.json?url=${this.getEmbedVideoUrl()}`,[4,fetch(e)];case 1:return t=r.sent(),t.ok?[4,t.json()]:[3,3];case 2:n=r.sent(),this.posterUrl=n.thumbnail_url,r.label=3;case 3:return[2]}})})},n.prototype.getEmbedVideoUrl=function(){return`https://player.vimeo.com/video/${this.videoId}?autoplay=1`},n}(te);e.VimeoPlayer=I;var L=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.fetchVideoDetails=function(){return r(this,void 0,void 0,function(){var e,t,n;return i(this,function(r){switch(r.label){case 0:return e=`https://api.dailymotion.com/video/${this.videoId}?fields=thumbnail_720_url`,[4,fetch(e)];case 1:return t=r.sent(),t.ok?[4,t.json()]:[3,3];case 2:n=r.sent(),this.posterUrl=n.thumbnail_720_url,r.label=3;case 3:return[2]}})})},n.prototype.getEmbedVideoUrl=function(){return`https://www.dailymotion.com/embed/video/${this.videoId}?autoplay=1`},n}(te);e.DailymotionPlayer=L;var ne=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.iFrameTitle=n,t.length>=3&&t[2]!==void 0&&(r._startTimeIndex=parseInt(t[2])),r}return n.prototype.fetchVideoDetails=function(){return r(this,void 0,void 0,function(){return i(this,function(e){return this.posterUrl=this.videoId?`https://img.youtube.com/vi/${this.videoId}/maxresdefault.jpg`:void 0,[2]})})},n.prototype.getEmbedVideoUrl=function(){var e=`https://www.youtube.com/embed/${this.videoId}?autoplay=1`;return this._startTimeIndex!==void 0&&(e+=`&start=${this._startTimeIndex}`),e},n}(te);e.YouTubePlayer=ne;var re=function(e){t(a,e);function a(){var t=e!==null&&e.apply(this,arguments)||this;return t.sources=[],t.captionSources=[],t}return a.prototype.createMediaPlayer=function(){for(var e=0,t=a.customMediaPlayers;e<t.length;e++)for(var n=t[e],r=0,i=this.sources;r<i.length;r++){var o=i[r];if(o.url)for(var s=0,c=n.urlPatterns;s<c.length;s++){var l=c[s].exec(o.url);if(l!==null)return n.createMediaPlayer(l)}}return new F(this)},a.prototype.handlePlayButtonInvoke=function(e){if(this.hostConfig.media.allowInlinePlayback){if(e.preventDefault(),e.cancelBubble=!0,this.renderedElement){var t=this._mediaPlayer.render();h(this.renderedElement),this.renderedElement.appendChild(t),this._mediaPlayer.play(),t.focus()}}else a.onPlay&&(e.preventDefault(),e.cancelBubble=!0,a.onPlay(this))},a.prototype.displayPoster=function(){return r(this,void 0,void 0,function(){var e,t,n,r,a,o,s,c,l=this;return i(this,function(i){return this.renderedElement&&(e=12,t=15,n=document.createElement(`div`),n.className=this.hostConfig.makeCssClassName(`ac-media-poster`),n.setAttribute(`role`,`contentinfo`),n.setAttribute(`aria-label`,this.altText?this.altText:p.Strings.defaults.mediaPlayerAriaLabel()),n.style.position=`relative`,n.style.display=`flex`,r=this.poster?this.poster:this._mediaPlayer.posterUrl,r||=this.hostConfig.media.defaultPoster,r?(a=document.createElement(`img`),a.style.width=`100%`,a.style.height=`100%`,a.setAttribute(`role`,`presentation`),a.onerror=function(e){a.parentNode&&a.parentNode.removeChild(a),n.classList.add(`empty`),n.style.minHeight=`150px`},a.src=r,n.appendChild(a)):(n.classList.add(`empty`),n.style.minHeight=`150px`),this.hostConfig.supportsInteractivity&&this._mediaPlayer.canPlay()&&(o=document.createElement(`div`),o.tabIndex=0,o.setAttribute(`role`,`button`),o.setAttribute(`aria-label`,p.Strings.defaults.mediaPlayerPlayMedia()),o.className=this.hostConfig.makeCssClassName(`ac-media-playButton`),o.style.display=`flex`,o.style.alignItems=`center`,o.style.justifyContent=`center`,o.onclick=function(e){l.handlePlayButtonInvoke(e)},o.onkeypress=function(e){(e.code===`Enter`||e.code===`Space`)&&l.handlePlayButtonInvoke(e)},s=document.createElement(`div`),s.className=this.hostConfig.makeCssClassName(`ac-media-playButton-arrow`),s.style.width=e+`px`,s.style.height=t+`px`,s.style.borderTopWidth=t/2+`px`,s.style.borderBottomWidth=t/2+`px`,s.style.borderLeftWidth=e+`px`,s.style.borderRightWidth=`0`,s.style.borderStyle=`solid`,s.style.borderTopColor=`transparent`,s.style.borderRightColor=`transparent`,s.style.borderBottomColor=`transparent`,s.style.transform=`translate(`+e/10+`px,0px)`,o.appendChild(s),c=document.createElement(`div`),c.style.position=`absolute`,c.style.left=`0`,c.style.top=`0`,c.style.width=`100%`,c.style.height=`100%`,c.style.display=`flex`,c.style.justifyContent=`center`,c.style.alignItems=`center`,c.appendChild(o),n.appendChild(c)),h(this.renderedElement),this.renderedElement.appendChild(n)),[2]})})},a.prototype.internalRender=function(){var e=document.createElement(`div`);return e.className=this.hostConfig.makeCssClassName(`ac-media`),e},a.prototype.render=function(){var t=this,n=e.prototype.render.call(this);return n&&(this._mediaPlayer=this.createMediaPlayer(),this._mediaPlayer.fetchVideoDetails().then(function(){return t.displayPoster()})),n},a.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this),this.displayPoster()},a.prototype.getJsonTypeName=function(){return`Media`},a.prototype.getResourceInformation=function(){var e=[];if(this._mediaPlayer){var t=this.poster?this.poster:this.hostConfig.media.defaultPoster;t&&e.push({url:t,mimeType:`image`})}for(var n=0,r=this.sources;n<r.length;n++){var i=r[n];i.isValid()&&e.push({url:i.url,mimeType:i.mimeType})}for(var a=0,o=this.captionSources;a<o.length;a++){var s=o[a];s.isValid()&&e.push({url:s.url,mimeType:s.mimeType})}return e},Object.defineProperty(a.prototype,`selectedMediaType`,{get:function(){return this._mediaPlayer.selectedMediaType},enumerable:!1,configurable:!0}),a.customMediaPlayers=[{urlPatterns:[/^(?:https?:\/\/)?(?:www.)?youtube.com\/watch\?(?=.*v=([\w\d-_]+))(?=(?:.*t=(\d+))?).*/gi,/^(?:https?:\/\/)?youtu.be\/([\w\d-_]+)(?:\?t=(\d+))?/gi],createMediaPlayer:function(e){return new ne(e,p.Strings.defaults.youTubeVideoPlayer())}},{urlPatterns:[/^(?:https?:\/\/)?vimeo.com\/([\w\d-_]+).*/gi],createMediaPlayer:function(e){return new I(e,p.Strings.defaults.vimeoVideoPlayer())}},{urlPatterns:[/^(?:https?:\/\/)?(?:www.)?dailymotion.com\/video\/([\w\d-_]+).*/gi],createMediaPlayer:function(e){return new L(e,p.Strings.defaults.dailymotionVideoPlayer())}}],a.sourcesProperty=new d.SerializableObjectCollectionProperty(d.Versions.v1_1,`sources`,N),a.captionSourcesProperty=new d.SerializableObjectCollectionProperty(d.Versions.v1_6,`captionSources`,M),a.posterProperty=new d.StringProperty(d.Versions.v1_1,`poster`),a.altTextProperty=new d.StringProperty(d.Versions.v1_1,`altText`),n([(0,d.property)(a.sourcesProperty)],a.prototype,`sources`,void 0),n([(0,d.property)(a.captionSourcesProperty)],a.prototype,`captionSources`,void 0),n([(0,d.property)(a.posterProperty)],a.prototype,`poster`,void 0),n([(0,d.property)(a.altTextProperty)],a.prototype,`altText`,void 0),a}(_);e.Media=re;var R;(function(e){e[e.InitialRender=0]=`InitialRender`,e[e.MouseEnterOnCard=1]=`MouseEnterOnCard`,e[e.MouseLeaveOnCard=2]=`MouseLeaveOnCard`,e[e.FocusLeave=3]=`FocusLeave`})(R||={});var ie=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.inputStyle=a.InputStyle.Default,t}return r.prototype.getAllLabelIds=function(){var e=[];return this.labelledBy&&e.push(this.labelledBy),this._renderedLabelElement&&e.push(this._renderedLabelElement.id),this._renderedErrorMessageElement&&e.push(this._renderedErrorMessageElement.id),e},r.prototype.updateInputControlAriaLabelledBy=function(){if(this._renderedInputControlElement){var e=this.getAllLabelIds();e.length>0?this._renderedInputControlElement.setAttribute(`aria-labelledby`,e.join(` `)):this._renderedInputControlElement.removeAttribute(`aria-labelledby`)}},Object.defineProperty(r.prototype,`isNullable`,{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`renderedInputControlElement`,{get:function(){return this._renderedInputControlElement},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`inputControlContainerElement`,{get:function(){return this._inputControlContainerElement},enumerable:!1,configurable:!0}),r.prototype.overrideInternalRender=function(){var e=this,t=this.hostConfig;this._outerContainerElement=document.createElement(`div`),this._outerContainerElement.style.display=`flex`,this.labelPosition===a.InputLabelPosition.Inline?this._outerContainerElement.style.flexDirection=`row`:this._outerContainerElement.style.flexDirection=`column`;var n=s.generateUniqueId();if(this.label){var r=new S;r.setParent(this),r.forElementId=n;var i=new x(this.label);if(r.addInline(i),this.isRequired){i.init(t.inputs.label.requiredInputs);var o=new x(t.inputs.label.requiredInputs.suffix);o.color=t.inputs.label.requiredInputs.suffixColor,o.ariaHidden=!0,r.addInline(o)}else i.init(t.inputs.label.optionalInputs);this._renderedLabelElement=r.render(),this._renderedLabelElement&&(this._renderedLabelElement.id=s.generateUniqueId(),this.labelPosition===a.InputLabelPosition.Inline?this._renderedLabelElement.style.alignSelf=`center`:this._renderedLabelElement.style.marginBottom=t.getEffectiveSpacing(t.inputs.label.inputSpacing)+`px`,this._outerContainerElement.appendChild(this._renderedLabelElement))}if(this._inputControlContainerElement=document.createElement(`div`),this._inputControlContainerElement.className=t.makeCssClassName(`ac-input-container`),this._inputControlContainerElement.style.display=`flex`,this.height===`stretch`&&(this._inputControlContainerElement.style.alignItems=`stretch`,this._inputControlContainerElement.style.flex=`1 1 auto`),this._renderedInputControlElement=this.internalRender(),this._renderedInputControlElement){if(this._renderedInputControlElement.id=n,this._renderedInputControlElement.style.minWidth=`0px`,this.isNullable&&this.isRequired&&(this._renderedInputControlElement.setAttribute(`aria-required`,`true`),this._renderedInputControlElement.classList.add(t.makeCssClassName(`ac-input-required`))),this._inputControlContainerElement.appendChild(this._renderedInputControlElement),this._outerContainerElement.appendChild(this._inputControlContainerElement),this._renderedLabelElement&&this.labelPosition===a.InputLabelPosition.Inline){if(!this.labelWidth){var c=t.inputs.label.width;this._renderedLabelElement.style.width=c.toString()+`%`,this._inputControlContainerElement.style.width=100-c+`%`}else if(this.labelWidth.unit==a.SizeUnit.Weight){var l=this.labelWidth.physicalSize;this._renderedLabelElement.style.width=l.toString()+`%`,this._inputControlContainerElement.style.width=(100-l).toString()+`%`}else if(this.labelWidth.unit==a.SizeUnit.Pixel){var u=this.labelWidth.physicalSize;this._renderedLabelElement.style.width=u.toString()+`px`}}return this.updateVisualState(R.InitialRender),this._renderedInputControlElement&&(this._renderedInputControlElement.onblur=function(t){e.updateVisualState(R.FocusLeave)}),this.updateInputControlAriaLabelledBy(),this._outerContainerElement}this.resetDirtyState()},r.prototype.valueChanged=function(){this.getRootElement().updateActionsEnabledState(),this.isValid()&&this.resetValidationFailureCue(),this.onValueChanged&&this.onValueChanged(this),Ie(this)},r.prototype.resetValidationFailureCue=function(){this.renderedInputControlElement&&(this.renderedInputControlElement.classList.remove(this.hostConfig.makeCssClassName(`ac-input-validation-failed`)),this.updateInputControlAriaLabelledBy(),this._renderedErrorMessageElement&&=(this._outerContainerElement.removeChild(this._renderedErrorMessageElement),void 0))},r.prototype.showValidationErrorMessage=function(){if(this.renderedElement&&this.errorMessage&&o.GlobalSettings.displayInputValidationErrors){var e=new b;e.setParent(this),e.text=this.errorMessage,e.wrap=!0,e.init(this.hostConfig.inputs.errorMessage),this._renderedErrorMessageElement=e.render(),this._renderedErrorMessageElement&&(this._renderedErrorMessageElement.id=s.generateUniqueId(),this._outerContainerElement.appendChild(this._renderedErrorMessageElement),this.updateInputControlAriaLabelledBy())}},Object.defineProperty(r.prototype,`allowRevealOnHoverStyle`,{get:function(){return this.hostConfig.inputs&&this.hostConfig.inputs.allowRevealOnHoverStyle},enumerable:!1,configurable:!0}),r.prototype.shouldHideInputAdornersForRevealOnHover=function(e,t){var n=e===document.activeElement,r=this.hostConfig.makeCssClassName(`ac-inputStyle-revealOnHover-onhover`),i=e.classList.contains(r);return t===R.InitialRender||t===R.FocusLeave&&!i||t===R.MouseLeaveOnCard&&!n},r.prototype.updateVisualState=function(e){!this.allowRevealOnHoverStyle||!this._renderedInputControlElement||this.inputStyle!==a.InputStyle.RevealOnHover||(e===R.InitialRender?this._renderedInputControlElement.classList.add(this.hostConfig.makeCssClassName(`ac-inputStyle-revealOnHover-onrender`)):e===R.MouseEnterOnCard?this._renderedInputControlElement.classList.add(this.hostConfig.makeCssClassName(`ac-inputStyle-revealOnHover-onhover`)):e===R.MouseLeaveOnCard&&this._renderedInputControlElement.classList.remove(this.hostConfig.makeCssClassName(`ac-inputStyle-revealOnHover-onhover`)))},r.prototype.focus=function(){this._renderedInputControlElement&&this._renderedInputControlElement.focus()},r.prototype.isValid=function(){return!0},r.prototype.isDirty=function(){return this.value!==this._oldValue},r.prototype.resetDirtyState=function(){this._oldValue=this.value},r.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.id||t.addFailure(this,a.ValidationEvent.PropertyCantBeNull,p.Strings.errors.inputsMustHaveUniqueId()),this.isRequired&&(this.label||t.addFailure(this,a.ValidationEvent.RequiredInputsShouldHaveLabel,`Required inputs should have a label`),this.errorMessage||t.addFailure(this,a.ValidationEvent.RequiredInputsShouldHaveErrorMessage,`Required inputs should have an error message`))},r.prototype.validateValue=function(){this.resetValidationFailureCue();var e=this.isRequired?this.isSet()&&this.isValid():this.isValid();return!e&&this.renderedInputControlElement&&(this.renderedInputControlElement.classList.add(this.hostConfig.makeCssClassName(`ac-input-validation-failed`)),this.showValidationErrorMessage()),e},r.prototype.getAllInputs=function(e){return e===void 0&&(e=!0),[this]},r.prototype.render=function(){var t=e.prototype.render.call(this);return this.resetDirtyState(),t},Object.defineProperty(r.prototype,`isInteractive`,{get:function(){return!0},enumerable:!1,configurable:!0}),r.labelProperty=new d.StringProperty(d.Versions.v1_3,`label`,!0),r.isRequiredProperty=new d.BoolProperty(d.Versions.v1_3,`isRequired`,!1),r.errorMessageProperty=new d.StringProperty(d.Versions.v1_3,`errorMessage`,!0),r.inputStyleProperty=new d.EnumProperty(d.Versions.v1_6,`inputStyle`,a.InputStyle,a.InputStyle.Default,[{value:a.InputStyle.RevealOnHover},{value:a.InputStyle.Default}]),r.labelWidthProperty=new d.CustomProperty(d.Versions.v1_6,`labelWidth`,function(e,t,n,r){var i=t.defaultValue,s=n[t.name],c=!1;if(typeof s==`number`&&!isNaN(s))i=new o.SizeAndUnit(s,a.SizeUnit.Weight),(i.physicalSize<0||i.physicalSize>100)&&(c=!0);else if(typeof s==`string`)try{i=o.SizeAndUnit.parse(s)}catch{c=!0}else c=!0;return c&&(r.logParseEvent(e,a.ValidationEvent.InvalidPropertyValue,p.Strings.errors.invalidInputLabelWidth()),i=void 0),i},function(e,t,n,r,i){r instanceof o.SizeAndUnit&&(r.unit===a.SizeUnit.Pixel?i.serializeValue(n,`labelWidth`,r.physicalSize+`px`):i.serializeNumber(n,`labelWidth`,r.physicalSize))},void 0),r.labelPositionProperty=new d.EnumProperty(d.Versions.v1_6,`labelPosition`,a.InputLabelPosition,a.InputLabelPosition.Above,[{value:a.InputLabelPosition.Inline},{value:a.InputLabelPosition.Above}]),n([(0,d.property)(r.labelProperty)],r.prototype,`label`,void 0),n([(0,d.property)(r.isRequiredProperty)],r.prototype,`isRequired`,void 0),n([(0,d.property)(r.errorMessageProperty)],r.prototype,`errorMessage`,void 0),n([(0,d.property)(r.inputStyleProperty)],r.prototype,`inputStyle`,void 0),n([(0,d.property)(r.labelWidthProperty)],r.prototype,`labelWidth`,void 0),n([(0,d.property)(r.labelPositionProperty)],r.prototype,`labelPosition`,void 0),r}(_);e.Input=ie;var ae=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.isMultiline=!1,t.style=a.InputTextStyle.Text,t}return r.prototype.setupInput=function(e){var t=this;e.style.flex=`1 1 auto`,e.tabIndex=this.isDesignMode()?-1:0,this.placeholder&&(e.placeholder=this.placeholder,e.setAttribute(`aria-label`,this.placeholder)),this.defaultValue&&(e.value=this.defaultValue),this.maxLength&&this.maxLength>0&&(e.maxLength=this.maxLength),e.oninput=function(){t.valueChanged()},e.onkeypress=function(e){e.ctrlKey&&e.code===`Enter`&&t.inlineAction&&t.inlineAction.isEffectivelyEnabled()&&t.inlineAction.execute()}},r.prototype.internalRender=function(){var e;return this.isMultiline&&this.style!==a.InputTextStyle.Password?(e=document.createElement(`textarea`),e.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-textInput`,`ac-multiline`),this.height===`stretch`&&(e.style.height=`initial`)):(e=document.createElement(`input`),e.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-textInput`),e.type=a.InputTextStyle[this.style].toLowerCase()),this.setupInput(e),e},r.prototype.overrideInternalRender=function(){var t=this,n=e.prototype.overrideInternalRender.call(this);if(this.inlineAction){var r=document.createElement(`button`);if(r.className=this.hostConfig.makeCssClassName(this.inlineAction.isEffectivelyEnabled()?`ac-inlineActionButton`:`ac-inlineActionButton-disabled`),r.onclick=function(e){t.inlineAction&&t.inlineAction.isEffectivelyEnabled()&&(e.preventDefault(),e.cancelBubble=!0,t.inlineAction.execute())},this.inlineAction.iconUrl){r.classList.add(`iconOnly`);var i=document.createElement(`img`);i.style.height=`100%`,i.setAttribute(`role`,`presentation`),i.style.display=`none`,i.onload=function(){i.style.removeProperty(`display`)},i.onerror=function(){r.removeChild(i),r.classList.remove(`iconOnly`),r.classList.add(`textOnly`),r.textContent=t.inlineAction&&t.inlineAction.title?t.inlineAction.title:p.Strings.defaults.inlineActionTitle()},i.src=this.inlineAction.iconUrl,r.appendChild(i),r.title=this.inlineAction.title?this.inlineAction.title:p.Strings.defaults.inlineActionTitle()}else r.classList.add(`textOnly`),r.textContent=this.inlineAction.title?this.inlineAction.title:p.Strings.defaults.inlineActionTitle();this.inlineAction.setupElementForAccessibility(r,!0),r.style.marginLeft=`8px`,this.inputControlContainerElement.appendChild(r)}return n},r.prototype.updateVisualState=function(t){this.allowRevealOnHoverStyle&&(this.inlineAction||this.isMultiline||e.prototype.updateVisualState.call(this,t))},r.prototype.getJsonTypeName=function(){return`Input.Text`},r.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return this.inlineAction&&t.push(this.inlineAction),t},r.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);return!n&&this.inlineAction&&(n=this.inlineAction.getActionById(t)),n},r.prototype.isSet=function(){return!!this.value},r.prototype.isValid=function(){return this.value&&this.regex?new RegExp(this.regex,`g`).test(this.value):!0},Object.defineProperty(r.prototype,`value`,{get:function(){if(this.renderedInputControlElement)return this.isMultiline,this.renderedInputControlElement.value},enumerable:!1,configurable:!0}),r.valueProperty=new d.StringProperty(d.Versions.v1_0,`value`),r.maxLengthProperty=new d.NumProperty(d.Versions.v1_0,`maxLength`),r.isMultilineProperty=new d.BoolProperty(d.Versions.v1_0,`isMultiline`,!1),r.placeholderProperty=new d.StringProperty(d.Versions.v1_0,`placeholder`),r.styleProperty=new d.EnumProperty(d.Versions.v1_0,`style`,a.InputTextStyle,a.InputTextStyle.Text,[{value:a.InputTextStyle.Text},{value:a.InputTextStyle.Tel},{value:a.InputTextStyle.Url},{value:a.InputTextStyle.Email},{value:a.InputTextStyle.Password,targetVersion:d.Versions.v1_5}]),r.inlineActionProperty=new v(d.Versions.v1_0,`inlineAction`,[`Action.ShowCard`]),r.regexProperty=new d.StringProperty(d.Versions.v1_3,`regex`,!0),n([(0,d.property)(r.valueProperty)],r.prototype,`defaultValue`,void 0),n([(0,d.property)(r.maxLengthProperty)],r.prototype,`maxLength`,void 0),n([(0,d.property)(r.isMultilineProperty)],r.prototype,`isMultiline`,void 0),n([(0,d.property)(r.placeholderProperty)],r.prototype,`placeholder`,void 0),n([(0,d.property)(r.styleProperty)],r.prototype,`style`,void 0),n([(0,d.property)(r.inlineActionProperty)],r.prototype,`inlineAction`,void 0),n([(0,d.property)(r.regexProperty)],r.prototype,`regex`,void 0),r}(ie);e.TextInput=ae;var oe=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.valueOn=`true`,t.valueOff=`false`,t.wrap=!1,t}return r.prototype.updateInputControlAriaLabelledBy=function(){if(this._checkboxInputElement){var e=this.getAllLabelIds().join(` `);this._checkboxInputLabelElement&&this._checkboxInputLabelElement.id&&(e+=` `+this._checkboxInputLabelElement.id),e?this._checkboxInputElement.setAttribute(`aria-labelledby`,e):this._checkboxInputElement.removeAttribute(`aria-labelledby`)}},r.prototype.internalRender=function(){var e=this,t=document.createElement(`div`);if(t.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-toggleInput`),t.style.width=`100%`,t.style.display=`flex`,t.style.alignItems=`center`,this._checkboxInputElement=document.createElement(`input`),this._checkboxInputElement.id=s.generateUniqueId(),this._checkboxInputElement.type=`checkbox`,this._checkboxInputElement.style.display=`inline-block`,this._checkboxInputElement.style.verticalAlign=`middle`,this._checkboxInputElement.style.margin=`0`,this._checkboxInputElement.style.flex=`0 0 auto`,this.title&&this._checkboxInputElement.setAttribute(`aria-label`,this.title),this.isRequired&&this._checkboxInputElement.setAttribute(`aria-required`,`true`),this._checkboxInputElement.tabIndex=this.isDesignMode()?-1:0,this.defaultValue===this.valueOn&&(this._checkboxInputElement.checked=!0),this._oldCheckboxValue=this._checkboxInputElement.checked,this._checkboxInputElement.onchange=function(){e.valueChanged()},s.appendChild(t,this._checkboxInputElement),this.title||this.isDesignMode()){var n=new b;if(n.setParent(this),n.forElementId=this._checkboxInputElement.id,n.hostConfig=this.hostConfig,n.text=this.title?this.title:this.getJsonTypeName(),n.useMarkdown=o.GlobalSettings.useMarkdownInRadioButtonAndCheckbox,n.wrap=this.wrap,this._checkboxInputLabelElement=n.render(),this._checkboxInputLabelElement){this._checkboxInputLabelElement.id=s.generateUniqueId(),this._checkboxInputLabelElement.style.display=`inline-block`,this._checkboxInputLabelElement.style.flex=`1 1 auto`,this._checkboxInputLabelElement.style.marginLeft=`6px`,this._checkboxInputLabelElement.style.verticalAlign=`middle`;var r=document.createElement(`div`);r.style.width=`6px`,s.appendChild(t,r),s.appendChild(t,this._checkboxInputLabelElement)}}return t},Object.defineProperty(r.prototype,`isNullable`,{get:function(){return!1},enumerable:!1,configurable:!0}),r.prototype.updateVisualState=function(e){},r.prototype.getJsonTypeName=function(){return`Input.Toggle`},r.prototype.focus=function(){this._checkboxInputElement&&this._checkboxInputElement.focus()},r.prototype.isSet=function(){return this.isRequired?this.value===this.valueOn:!!this.value},r.prototype.isDirty=function(){return this._checkboxInputElement?this._checkboxInputElement.checked!==this._oldCheckboxValue:!1},Object.defineProperty(r.prototype,`value`,{get:function(){if(this._checkboxInputElement)return this._checkboxInputElement.checked?this.valueOn:this.valueOff},enumerable:!1,configurable:!0}),r.valueProperty=new d.StringProperty(d.Versions.v1_0,`value`),r.titleProperty=new d.StringProperty(d.Versions.v1_0,`title`),r.valueOnProperty=new d.StringProperty(d.Versions.v1_0,`valueOn`,!0,void 0,`true`,function(e){return`true`}),r.valueOffProperty=new d.StringProperty(d.Versions.v1_0,`valueOff`,!0,void 0,`false`,function(e){return`false`}),r.wrapProperty=new d.BoolProperty(d.Versions.v1_2,`wrap`,!1),n([(0,d.property)(r.valueProperty)],r.prototype,`defaultValue`,void 0),n([(0,d.property)(r.titleProperty)],r.prototype,`title`,void 0),n([(0,d.property)(r.valueOnProperty)],r.prototype,`valueOn`,void 0),n([(0,d.property)(r.valueOffProperty)],r.prototype,`valueOff`,void 0),n([(0,d.property)(r.wrapProperty)],r.prototype,`wrap`,void 0),r}(ie);e.ToggleInput=oe;var se=function(e){t(r,e);function r(t,n){var r=e.call(this)||this;return r.title=t,r.value=n,r}return r.prototype.getSchemaKey=function(){return`Choice`},r.titleProperty=new d.StringProperty(d.Versions.v1_0,`title`),r.valueProperty=new d.StringProperty(d.Versions.v1_0,`value`),n([(0,d.property)(r.titleProperty)],r.prototype,`title`,void 0),n([(0,d.property)(r.valueProperty)],r.prototype,`value`,void 0),r}(d.SerializableObject);e.Choice=se;var ce=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getSchemaKey=function(){return`choices.data`},r.typeProperty=new d.StringProperty(d.Versions.v1_6,`type`,!0,RegExp(`^Data.Query$`)),r.datasetProperty=new d.StringProperty(d.Versions.v1_6,`dataset`),r.countProperty=new d.NumProperty(d.Versions.v1_6,`count`),r.skipProperty=new d.NumProperty(d.Versions.v1_6,`skip`),n([(0,d.property)(r.typeProperty)],r.prototype,`type`,void 0),n([(0,d.property)(r.datasetProperty)],r.prototype,`dataset`,void 0),n([(0,d.property)(r.countProperty)],r.prototype,`count`,void 0),n([(0,d.property)(r.skipProperty)],r.prototype,`skip`,void 0),r}(d.SerializableObject);e.ChoiceSetInputDataQuery=ce;var le=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.isMultiSelect=!1,t.wrap=!1,t.choices=[],t}return Object.defineProperty(r.prototype,`isCompact`,{get:function(){return!this.style||this.style===`compact`},set:function(e){this.style=e?void 0:`expanded`},enumerable:!1,configurable:!0}),r.getUniqueCategoryName=function(){var e=`__ac-category`+r._uniqueCategoryCounter;return r._uniqueCategoryCounter++,e},r.prototype.isDynamicTypeahead=function(){return!!this.choicesData&&!!this.choicesData.dataset&&this.choicesData.type===`Data.Query`},r.prototype.getFilterForDynamicSearch=function(){return this._filteredChoiceSet?.textInput?.value},r.prototype.renderChoices=function(e){var t;(t=this._filteredChoiceSet)==null||t.processResponse(e)},r.prototype.showLoadingIndicator=function(){var e;(e=this._filteredChoiceSet)==null||e.showLoadingIndicator()},r.prototype.removeLoadingIndicator=function(){var e;(e=this._filteredChoiceSet)==null||e.removeLoadingIndicator()},r.prototype.showErrorIndicator=function(e){var t;(t=this._filteredChoiceSet)==null||t.showErrorIndicator(e)},r.prototype.createPlaceholderOptionWhenValueDoesNotExist=function(){if(!this.value){var e=document.createElement(`option`);return e.selected=!0,e.disabled=!0,e.hidden=!0,e.value=``,this.placeholder&&(e.text=this.placeholder),e}},r.prototype.internalApplyAriaCurrent=function(){if(this._selectElement){var e=this._selectElement.options;if(e)for(var t=0,n=Array.from(e);t<n.length;t++){var r=n[t];r.selected?r.setAttribute(`aria-current`,`true`):r.removeAttribute(`aria-current`)}}},r.prototype.renderCompoundInput=function(e,t,n){var r=this,i=document.createElement(`div`);i.className=this.hostConfig.makeCssClassName(`ac-input`,e),i.style.width=`100%`,i.tabIndex=this.isDesignMode()?-1:0,this._toggleInputs=[],this._labels=[];for(var a=0,c=this.choices;a<c.length;a++){var l=c[a],u=document.createElement(`input`);u.id=s.generateUniqueId(),u.type=t,u.style.margin=`0`,u.style.display=`inline-block`,u.style.verticalAlign=`middle`,u.style.flex=`0 0 auto`,u.name=this.id?this.id:this._uniqueCategoryName,this.isRequired&&u.setAttribute(`aria-required`,`true`),u.tabIndex=this.isDesignMode()?-1:0,l.value&&(u.value=l.value),l.title&&u.setAttribute(`aria-label`,l.title),n&&l.value&&n.indexOf(l.value)>=0&&(u.checked=!0),u.onchange=function(){r.valueChanged()},this._toggleInputs.push(u);var d=document.createElement(`div`);d.style.display=`flex`,d.style.alignItems=`center`,s.appendChild(d,u);var f=new b;f.setParent(this),f.forElementId=u.id,f.hostConfig=this.hostConfig,f.text=l.title?l.title:`Choice `+this._toggleInputs.length,f.useMarkdown=o.GlobalSettings.useMarkdownInRadioButtonAndCheckbox,f.wrap=this.wrap;var p=f.render();if(this._labels.push(p),p){p.id=s.generateUniqueId(),p.style.display=`inline-block`,p.style.flex=`1 1 auto`,p.style.marginLeft=`6px`,p.style.verticalAlign=`middle`;var m=document.createElement(`div`);m.style.width=`6px`,s.appendChild(d,m),s.appendChild(d,p)}s.appendChild(i,d)}return i},r.prototype.updateInputControlAriaLabelledBy=function(){if((this.isMultiSelect||this.style===`expanded`)&&this._toggleInputs&&this._labels)for(var t=this.getAllLabelIds(),n=0;n<this._toggleInputs.length;n++){var r=t.join(` `),i=this._labels[n];i&&i.id&&(r+=` `+i.id),r?this._toggleInputs[n].setAttribute(`aria-labelledby`,r):this._toggleInputs[n].removeAttribute(`aria-labelledby`)}else e.prototype.updateInputControlAriaLabelledBy.call(this)},r.prototype.internalRender=function(){var e=this;if(this._uniqueCategoryName=r.getUniqueCategoryName(),this.isDynamicTypeahead()){var t=new ue(r._uniqueCategoryCounter,this.choices,this.hostConfig);if(t.render(),t.textInput){this._textInput=t.textInput,this.defaultValue&&(this._textInput.value=this.defaultValue),this.placeholder&&!this._textInput.value&&(this._textInput.placeholder=this.placeholder,this._textInput.setAttribute(`aria-label`,this.placeholder)),this._textInput.tabIndex=this.isDesignMode()?-1:0;var n=s.debounce(function(){t.processStaticChoices(),e.valueChanged(),e._textInput&&(e.value?(e._textInput.removeAttribute(`placeholder`),e._textInput.removeAttribute(`aria-label`)):e.placeholder&&(e._textInput.placeholder=e.placeholder,e._textInput.setAttribute(`aria-label`,e.placeholder)))},this.hostConfig.inputs.debounceTimeInMilliSeconds);this._textInput.onclick=n,this._textInput.oninput=n}return t.parent=this,this._filteredChoiceSet=t,t.renderedElement}else if(this.isMultiSelect)return this.renderCompoundInput(`ac-choiceSetInput-multiSelect`,`checkbox`,this.defaultValue?this.defaultValue.split(this.hostConfig.choiceSetInputValueSeparator):void 0);else if(this.style===`expanded`)return this.renderCompoundInput(`ac-choiceSetInput-expanded`,`radio`,this.defaultValue?[this.defaultValue]:void 0);else if(this.style===`filtered`){var i=document.createElement(`div`);i.style.width=`100%`,this._textInput=document.createElement(`input`),this._textInput.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-multichoiceInput`,`ac-choiceSetInput-filtered`),this._textInput.type=`text`,this._textInput.style.width=`100%`,this._textInput.oninput=function(){e.valueChanged(),e._textInput&&(e.value?(e._textInput.removeAttribute(`placeholder`),e._textInput.removeAttribute(`aria-label`)):e.placeholder&&(e._textInput.placeholder=e.placeholder,e._textInput.setAttribute(`aria-label`,e.placeholder)))},this.defaultValue&&(this._textInput.value=this.defaultValue),this.placeholder&&!this._textInput.value&&(this._textInput.placeholder=this.placeholder,this._textInput.setAttribute(`aria-label`,this.placeholder)),this._textInput.tabIndex=this.isDesignMode()?-1:0;var a=document.createElement(`datalist`);a.id=s.generateUniqueId();for(var o=0,c=this.choices;o<c.length;o++){var l=c[o],u=document.createElement(`option`);l.title&&(u.value=l.title,u.setAttribute(`aria-label`,l.title)),u.tabIndex=this.isDesignMode()?-1:0,a.appendChild(u)}return this._textInput.setAttribute(`list`,a.id),i.append(this._textInput,a),i}else{this._selectElement=document.createElement(`select`),this._selectElement.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-multichoiceInput`,`ac-choiceSetInput-compact`),this._selectElement.style.width=`100%`,this._selectElement.tabIndex=this.isDesignMode()?-1:0;var d=this.createPlaceholderOptionWhenValueDoesNotExist();s.appendChild(this._selectElement,d);for(var f=0,p=this.choices;f<p.length;f++){var l=p[f],u=document.createElement(`option`);u.value=l.value,l.title&&(u.text=l.title,u.setAttribute(`aria-label`,l.title)),u.tabIndex=this.isDesignMode()?-1:0,l.value===this.defaultValue&&(u.selected=!0),s.appendChild(this._selectElement,u)}return this._selectElement.onchange=function(){e.internalApplyAriaCurrent(),e.valueChanged()},this.internalApplyAriaCurrent(),this._selectElement}},r.prototype.updateVisualState=function(t){this.allowRevealOnHoverStyle&&!this.isMultiSelect&&this.isCompact&&(e.prototype.updateVisualState.call(this,t),this._selectElement&&this.inputStyle===a.InputStyle.RevealOnHover&&(this.shouldHideInputAdornersForRevealOnHover(this._selectElement,t)?(this._selectElement.style.appearance=`none`,this._selectElement.classList.remove(this.hostConfig.makeCssClassName(`ac-inputStyle-revealOnHover-onfocus`))):(this._selectElement.style.appearance=`auto`,this._selectElement.classList.add(this.hostConfig.makeCssClassName(`ac-inputStyle-revealOnHover-onfocus`)))))},r.prototype.getJsonTypeName=function(){return`Input.ChoiceSet`},r.prototype.focus=function(){this._toggleInputs&&(this.isMultiSelect||this.style===`expanded`)?this._toggleInputs.length>0&&this._toggleInputs[0].focus():this._textInput?this._textInput.focus():e.prototype.focus.call(this)},r.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.choices.length===0&&t.addFailure(this,a.ValidationEvent.CollectionCantBeEmpty,p.Strings.errors.choiceSetMustHaveAtLeastOneChoice());for(var n=0,r=this.choices;n<r.length;n++){var i=r[n];(!i.title||!i.value)&&t.addFailure(this,a.ValidationEvent.PropertyCantBeNull,p.Strings.errors.choiceSetChoicesMustHaveTitleAndValue())}},r.prototype.isSet=function(){return!!this.value},r.prototype.isValid=function(){if(this._textInput){if(this.value===``||this.value===this.placeholder)return!0;for(var t=0,n=this.choices;t<n.length;t++){var r=n[t];if(this.value===r.value)return!0}if(this.dynamicChoices)for(var i=0,a=this.dynamicChoices;i<a.length;i++){var r=a[i];if(this.value===r)return!0}return!1}return e.prototype.isValid.call(this)},Object.defineProperty(r.prototype,`value`,{get:function(){if(this.isMultiSelect){if(!this._toggleInputs||this._toggleInputs.length===0)return;for(var e=``,t=0,n=this._toggleInputs;t<n.length;t++){var r=n[t];r.checked&&(e!==``&&(e+=this.hostConfig.choiceSetInputValueSeparator),e+=r.value)}return e||void 0}else{if(this._selectElement)return this._selectElement.selectedIndex>0?this._selectElement.value:void 0;if(this._textInput){for(var i=0,a=this.choices;i<a.length;i++){var o=a[i];if(o.title&&this._textInput.value===o.title)return o.value}return this._textInput.value}else if(this._toggleInputs&&this._toggleInputs.length>0)for(var s=0,c=this._toggleInputs;s<c.length;s++){var r=c[s];if(r.checked)return r.value}return}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`dynamicChoices`,{get:function(){return this._filteredChoiceSet?.dynamicChoices},enumerable:!1,configurable:!0}),r.valueProperty=new d.StringProperty(d.Versions.v1_0,`value`),r.choicesProperty=new d.SerializableObjectCollectionProperty(d.Versions.v1_0,`choices`,se),r.choicesDataProperty=new d.SerializableObjectProperty(d.Versions.v1_6,`choices.data`,ce),r.styleProperty=new d.ValueSetProperty(d.Versions.v1_0,`style`,[{value:`compact`},{value:`expanded`},{value:`filtered`,targetVersion:d.Versions.v1_5}],`compact`),r.isMultiSelectProperty=new d.BoolProperty(d.Versions.v1_0,`isMultiSelect`,!1),r.placeholderProperty=new d.StringProperty(d.Versions.v1_0,`placeholder`),r.wrapProperty=new d.BoolProperty(d.Versions.v1_2,`wrap`,!1),r._uniqueCategoryCounter=0,n([(0,d.property)(r.valueProperty)],r.prototype,`defaultValue`,void 0),n([(0,d.property)(r.styleProperty)],r.prototype,`style`,void 0),n([(0,d.property)(r.isMultiSelectProperty)],r.prototype,`isMultiSelect`,void 0),n([(0,d.property)(r.placeholderProperty)],r.prototype,`placeholder`,void 0),n([(0,d.property)(r.wrapProperty)],r.prototype,`wrap`,void 0),n([(0,d.property)(r.choicesProperty)],r.prototype,`choices`,void 0),n([(0,d.property)(r.choicesDataProperty)],r.prototype,`choicesData`,void 0),r}(ie);e.ChoiceSetInput=le;var ue=function(){function e(e,t,n){this._choiceSetId=e,this._choices=t,this._dynamicChoices=[],this._visibleChoiceCount=0,this._hostConfig=n}return e.prototype.render=function(){var e=this,t=document.createElement(`div`);t.style.position=`relative`,t.style.width=`100%`,this._textInput=document.createElement(`input`),this._textInput.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-multichoiceInput`,`ac-choiceSetInput-filtered`),this._textInput.type=`text`,this._textInput.style.width=`100%`,this._textInput.onkeydown=function(t){t.key===`ArrowDown`&&e.focusChoice(0)},this._dropdown=document.createElement(`div`),this._dropdown.style.display=`none`,this._dropdown.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-multichoiceInput`,`ac-choiceSetInput-filtered-dropdown`),t.append(this._textInput,this._dropdown),document.onclick=function(t){if(e._dropdown){for(var n=e._dropdown.firstChild;n&&t.target!==n;)n=n.nextSibling;(n||t.target!==e._textInput)&&(e._dropdown.style.display=`none`)}},this._renderedElement=t},e.prototype.createChoice=function(e,t,n){var r=this,i=document.createElement(`span`);return i.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-choiceSetInput-choice`),i.id=`ac-choiceSetInput-${this._choiceSetId}-choice-${n}`,i.innerHTML=e.replace(t,`<b>${t}</b>`),i.tabIndex=-1,i.addEventListener(`focusin`,function(){i.classList.add(`focused`)}),i.addEventListener(`focusout`,function(){i.classList.remove(`focused`)}),i.onclick=function(){r._textInput&&(r._textInput.value=i.innerText),r._dropdown&&(r._dropdown.style.display=`none`)},i.onkeydown=function(e){e.key===`ArrowDown`?r.focusChoice(n+1):e.key===`ArrowUp`?r.focusChoice(n-1):e.key===`Enter`&&i.click()},i.onmouseover=function(){r.focusChoice(n)},i},e.prototype.focusChoice=function(e){var t=document.getElementById(`ac-choiceSetInput-${this._choiceSetId}-choice-${e}`);if(t)t.focus();else if(this._textInput){this._textInput.focus();var n=this._textInput.value.length;this._textInput.setSelectionRange(n,n)}},e.prototype.filterChoices=function(e){var t,n=this._textInput?.value.toLowerCase();if(n)for(var r=e?this._dynamicChoices:this._choices,i=0,a=r;i<a.length;i++){var o=a[i];if(o.title){var s=o.title.toLowerCase().indexOf(n);if(s!==-1){var c=o.title.substring(s,s+n.length),l=this.createChoice(o.title,c,this._visibleChoiceCount++);(t=this._dropdown)==null||t.appendChild(l)}}}},e.prototype.getStatusIndicator=function(e){if(e){if(!this._errorIndicator){var t=document.createElement(`div`);t.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-choiceSetInput-statusIndicator`,`ac-choiceSetInput-errorIndicator`),this._errorIndicator=t}return this._errorIndicator.innerText=e,this._errorIndicator}else{if(!this._loadingIndicator){var n=document.createElement(`div`);n.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-choiceSetInput-statusIndicator`),this._loadingIndicator=n}return this._loadingIndicator.innerText=this._visibleChoiceCount===0?`Loading...`:`Loading more...`,this._loadingIndicator}},e.prototype.resetDropdown=function(){this._dynamicChoices=[],this._dropdown&&(s.clearElementChildren(this._dropdown),this._visibleChoiceCount=0)},e.prototype.showDropdown=function(){this._dropdown?.hasChildNodes&&(this._dropdown.style.display=`block`)},e.prototype.processStaticChoices=function(){this.resetDropdown(),this.filterChoices(),this.showDropdown()},e.prototype.processResponse=function(e){this._dynamicChoices=e,this.filterChoices(!0),this._visibleChoiceCount===0&&this.showErrorIndicator(`No results found.`)},e.prototype.showLoadingIndicator=function(){var e,t=this.getStatusIndicator();(e=this._dropdown)==null||e.appendChild(t),this.showDropdown()},e.prototype.removeLoadingIndicator=function(){var e;this._loadingIndicator&&this._dropdown?.contains(this._loadingIndicator)&&((e=this._dropdown)==null||e.removeChild(this._loadingIndicator))},e.prototype.showErrorIndicator=function(e){var t;this.removeLoadingIndicator();var n=this.getStatusIndicator(e);(t=this._dropdown)==null||t.appendChild(n)},Object.defineProperty(e.prototype,`dynamicChoices`,{get:function(){return this._dynamicChoices?.map(function(e){return e.title})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`hostConfig`,{get:function(){return this._hostConfig?this._hostConfig:this.parent?this.parent.hostConfig:c.defaultHostConfig},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`parent`,{get:function(){return this._parent},set:function(e){this._parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`renderedElement`,{get:function(){return this._renderedElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`textInput`,{get:function(){return this._textInput},enumerable:!1,configurable:!0}),e}();e.FilteredChoiceSet=ue;var de=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.internalRender=function(){var e=this;return this._numberInputElement=document.createElement(`input`),this._numberInputElement.setAttribute(`type`,`number`),this.min!==void 0&&this._numberInputElement.setAttribute(`min`,this.min.toString()),this.max!==void 0&&this._numberInputElement.setAttribute(`max`,this.max.toString()),this._numberInputElement.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-numberInput`),this._numberInputElement.style.width=`100%`,this._numberInputElement.tabIndex=this.isDesignMode()?-1:0,this.defaultValue!==void 0&&(this._numberInputElement.valueAsNumber=this.defaultValue),this.placeholder&&(this._numberInputElement.placeholder=this.placeholder,this._numberInputElement.setAttribute(`aria-label`,this.placeholder)),this._numberInputElement.oninput=function(){e.valueChanged()},this._numberInputElement},r.prototype.getJsonTypeName=function(){return`Input.Number`},r.prototype.isSet=function(){return this.value!==void 0&&!isNaN(this.value)},r.prototype.isValid=function(){if(this.value===void 0)return!this.isRequired;var e=!0;return this.min!==void 0&&(e&&=this.value>=this.min),this.max!==void 0&&(e&&=this.value<=this.max),e},Object.defineProperty(r.prototype,`value`,{get:function(){return this._numberInputElement?this._numberInputElement.valueAsNumber:void 0},set:function(e){e&&this._numberInputElement&&(this._numberInputElement.value=e.toString())},enumerable:!1,configurable:!0}),r.valueProperty=new d.NumProperty(d.Versions.v1_0,`value`),r.placeholderProperty=new d.StringProperty(d.Versions.v1_0,`placeholder`),r.minProperty=new d.NumProperty(d.Versions.v1_0,`min`),r.maxProperty=new d.NumProperty(d.Versions.v1_0,`max`),n([(0,d.property)(r.valueProperty)],r.prototype,`defaultValue`,void 0),n([(0,d.property)(r.minProperty)],r.prototype,`min`,void 0),n([(0,d.property)(r.maxProperty)],r.prototype,`max`,void 0),n([(0,d.property)(r.placeholderProperty)],r.prototype,`placeholder`,void 0),r}(ie);e.NumberInput=de;var fe=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.internalRender=function(){var e=this;return this._dateInputElement=document.createElement(`input`),this._dateInputElement.setAttribute(`type`,`date`),this.min&&this._dateInputElement.setAttribute(`min`,this.min),this.max&&this._dateInputElement.setAttribute(`max`,this.max),this.placeholder&&(this._dateInputElement.placeholder=this.placeholder,this._dateInputElement.setAttribute(`aria-label`,this.placeholder)),this._dateInputElement.tabIndex=this.isDesignMode()?-1:0,this._dateInputElement.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-dateInput`),this._dateInputElement.style.width=`100%`,this._dateInputElement.oninput=function(){e.valueChanged()},this.defaultValue&&(this._dateInputElement.value=this.defaultValue),this._dateInputElement},r.prototype.updateVisualState=function(t){if(this.allowRevealOnHoverStyle&&(e.prototype.updateVisualState.call(this,t),this._dateInputElement&&this.inputStyle===a.InputStyle.RevealOnHover)){var n=this.shouldHideInputAdornersForRevealOnHover(this._dateInputElement,t);n?this._dateInputElement.classList.remove(this.hostConfig.makeCssClassName(`ac-inputStyle-revealOnHover-onfocus`)):this._dateInputElement.classList.add(this.hostConfig.makeCssClassName(`ac-inputStyle-revealOnHover-onfocus`)),Re(this._dateInputElement,n)}},r.prototype.getJsonTypeName=function(){return`Input.Date`},r.prototype.isSet=function(){return!!this.value},r.prototype.isValid=function(){if(!this.value)return!this.isRequired;var e=new Date(this.value),t=!0;if(this.min){var n=new Date(this.min);t&&=e>=n}if(this.max){var r=new Date(this.max);t&&=e<=r}return t},Object.defineProperty(r.prototype,`value`,{get:function(){return this._dateInputElement?this._dateInputElement.value:void 0},enumerable:!1,configurable:!0}),r.valueProperty=new d.StringProperty(d.Versions.v1_0,`value`),r.placeholderProperty=new d.StringProperty(d.Versions.v1_0,`placeholder`),r.minProperty=new d.StringProperty(d.Versions.v1_0,`min`),r.maxProperty=new d.StringProperty(d.Versions.v1_0,`max`),n([(0,d.property)(r.valueProperty)],r.prototype,`defaultValue`,void 0),n([(0,d.property)(r.minProperty)],r.prototype,`min`,void 0),n([(0,d.property)(r.maxProperty)],r.prototype,`max`,void 0),n([(0,d.property)(r.placeholderProperty)],r.prototype,`placeholder`,void 0),r}(ie);e.DateInput=fe;var pe=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n,function(e,t,n,r){var i=n[t.name];if(typeof i==`string`&&i&&/^[0-9]{2}:[0-9]{2}$/.test(i))return i},function(e,t,n,r,i){i.serializeValue(n,t.name,r)})||this;return r.targetVersion=t,r.name=n,r}return n}(d.CustomProperty);e.TimeProperty=pe;var me=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.convertTimeStringToDate=function(e){return new Date(`1973-09-04T`+e+`:00Z`)},r.prototype.internalRender=function(){var e=this;return this._timeInputElement=document.createElement(`input`),this._timeInputElement.setAttribute(`type`,`time`),this.min&&this._timeInputElement.setAttribute(`min`,this.min),this.max&&this._timeInputElement.setAttribute(`max`,this.max),this._timeInputElement.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-timeInput`),this._timeInputElement.style.width=`100%`,this._timeInputElement.oninput=function(){e.valueChanged()},this.placeholder&&(this._timeInputElement.placeholder=this.placeholder,this._timeInputElement.setAttribute(`aria-label`,this.placeholder)),this._timeInputElement.tabIndex=this.isDesignMode()?-1:0,this.defaultValue&&(this._timeInputElement.value=this.defaultValue),this._timeInputElement},r.prototype.updateVisualState=function(t){if(this.allowRevealOnHoverStyle&&(e.prototype.updateVisualState.call(this,t),this._timeInputElement&&this.inputStyle===a.InputStyle.RevealOnHover)){var n=this.shouldHideInputAdornersForRevealOnHover(this._timeInputElement,t);n?this._timeInputElement.classList.remove(this.hostConfig.makeCssClassName(`ac-inputStyle-revealOnHover-onfocus`)):this._timeInputElement.classList.add(this.hostConfig.makeCssClassName(`ac-inputStyle-revealOnHover-onfocus`)),Re(this._timeInputElement,n)}},r.prototype.getJsonTypeName=function(){return`Input.Time`},r.prototype.isSet=function(){return!!this.value},r.prototype.isValid=function(){if(!this.value)return!this.isRequired;var e=r.convertTimeStringToDate(this.value),t=!0;if(this.min){var n=r.convertTimeStringToDate(this.min);t&&=e>=n}if(this.max){var i=r.convertTimeStringToDate(this.max);t&&=e<=i}return t},Object.defineProperty(r.prototype,`value`,{get:function(){return this._timeInputElement?this._timeInputElement.value:void 0},enumerable:!1,configurable:!0}),r.valueProperty=new pe(d.Versions.v1_0,`value`),r.placeholderProperty=new d.StringProperty(d.Versions.v1_0,`placeholder`),r.minProperty=new pe(d.Versions.v1_0,`min`),r.maxProperty=new pe(d.Versions.v1_0,`max`),n([(0,d.property)(r.valueProperty)],r.prototype,`defaultValue`,void 0),n([(0,d.property)(r.minProperty)],r.prototype,`min`,void 0),n([(0,d.property)(r.maxProperty)],r.prototype,`max`,void 0),n([(0,d.property)(r.placeholderProperty)],r.prototype,`placeholder`,void 0),r}(ie);e.TimeInput=me;var he=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.style=a.ActionStyle.Default,t.mode=a.ActionMode.Primary,t._state=0,t._isFocusable=!0,t}return r.prototype.renderButtonContent=function(){if(this.renderedElement){var e=this.hostConfig,t=document.createElement(`div`);if(t.style.overflow=`hidden`,t.style.textOverflow=`ellipsis`,e.actions.iconPlacement===a.ActionIconPlacement.AboveTitle||e.actions.allowTitleToWrap||(t.style.whiteSpace=`nowrap`),this.title&&(t.innerText=this.title),!this.iconUrl)this.renderedElement.classList.add(`noIcon`),this.renderedElement.appendChild(t);else{var n=document.createElement(`img`);n.src=this.iconUrl,n.style.width=e.actions.iconSize+`px`,n.style.height=e.actions.iconSize+`px`,n.style.flex=`0 0 auto`,e.actions.iconPlacement===a.ActionIconPlacement.AboveTitle?(this.renderedElement.classList.add(`iconAbove`),this.renderedElement.style.flexDirection=`column`,this.title&&(n.style.marginBottom=`6px`)):(this.renderedElement.classList.add(`iconLeft`),n.style.maxHeight=`100%`,this.title&&(n.style.marginRight=`6px`)),this.renderedElement.appendChild(n),this.renderedElement.appendChild(t)}}},r.prototype.getParentContainer=function(){return this.parent instanceof ke?this.parent:this.parent?this.parent.getParentContainer():void 0},r.prototype.isDesignMode=function(){var e=this.getRootObject();return e instanceof _&&e.isDesignMode()},r.prototype.updateCssClasses=function(){var e,t;if(this.parent&&this.renderedElement){var n=this.parent.hostConfig;this.renderedElement.className=n.makeCssClassName(this.isEffectivelyEnabled()?`ac-pushButton`:`ac-pushButton-disabled`);var r=this.getParentContainer();if(r){var i=r.getEffectiveStyle();i&&this.renderedElement.classList.add(`style-`+i)}switch(this.renderedElement.tabIndex=!this.isDesignMode()&&this.isFocusable?0:-1,this._state){case 0:break;case 1:this.renderedElement.classList.add(n.makeCssClassName(`expanded`));break;case 2:this.renderedElement.classList.add(n.makeCssClassName(`subdued`));break}this.style&&this.isEffectivelyEnabled()&&(this.style===a.ActionStyle.Positive?(e=this.renderedElement.classList).add.apply(e,n.makeCssClassNames(`primary`,`style-positive`)):(t=this.renderedElement.classList).add.apply(t,n.makeCssClassNames(`style-`+this.style.toLowerCase())))}},r.prototype.getDefaultSerializationContext=function(){return new Ye},r.prototype.internalGetReferencedInputs=function(){return{}},r.prototype.internalPrepareForExecution=function(e){},r.prototype.internalValidateInputs=function(e){var t=[];if(e)for(var n=0,r=Object.keys(e);n<r.length;n++){var i=e[r[n]];i.validateValue()||t.push(i)}return t},r.prototype.shouldSerialize=function(e){return e.actionRegistry.findByName(this.getJsonTypeName())!==void 0},r.prototype.raiseExecuteActionEvent=function(){this.onExecute&&this.onExecute(this),Pe(this)},r.prototype.internalAfterExecute=function(){var e=this.getRootObject();e instanceof _&&e.updateActionsEnabledState()},r.prototype.getHref=function(){return``},r.prototype.getAriaRole=function(){return this.getAriaRoleFromEnum()??`button`},r.prototype.getAriaRoleFromEnum=function(){switch(this.role){case a.ActionRole.Button:return`button`;case a.ActionRole.Link:return`link`;case a.ActionRole.Menu:return`menu`;case a.ActionRole.MenuItem:return`menuitem`;case a.ActionRole.Tab:return`tab`;default:return}},r.prototype.setupElementForAccessibility=function(e,t){t===void 0&&(t=!1),e.tabIndex=this.isEffectivelyEnabled()&&!this.isDesignMode()?0:-1,e.setAttribute(`role`,this.getAriaRole()),e instanceof HTMLButtonElement&&(e.disabled=!this.isEffectivelyEnabled()),this.isEffectivelyEnabled()?(e.removeAttribute(`aria-disabled`),e.classList.add(this.hostConfig.makeCssClassName(`ac-selectable`))):e.setAttribute(`aria-disabled`,`true`),this.title?(e.setAttribute(`aria-label`,this.title),e.title=this.title):(e.removeAttribute(`aria-label`),e.removeAttribute(`title`)),this.tooltip&&(t&&!this.title&&e.setAttribute(`aria-label`,this.tooltip),e.title=this.tooltip)},r.prototype.parse=function(t,n){return e.prototype.parse.call(this,t,n||new Ye)},r.prototype.render=function(){var e=this,t=document.createElement(`button`);t.type=`button`,t.style.display=`flex`,t.style.alignItems=`center`,t.style.justifyContent=`center`,t.onclick=function(t){e.isEffectivelyEnabled()&&(t.preventDefault(),t.cancelBubble=!0,e.execute())},this._renderedElement=t,this.renderButtonContent(),this.updateCssClasses(),this.setupElementForAccessibility(t)},r.prototype.execute=function(){this._actionCollection&&this._actionCollection.actionExecuted(this),this.raiseExecuteActionEvent(),this.internalAfterExecute()},r.prototype.prepareForExecution=function(){var e=this.getReferencedInputs(),t=this.internalValidateInputs(e);return t.length>0?(t[0].focus(),!1):(this.internalPrepareForExecution(e),!0)},r.prototype.remove=function(){return this._actionCollection?this._actionCollection.removeAction(this):!1},r.prototype.getAllInputs=function(e){return e===void 0&&(e=!0),[]},r.prototype.getAllActions=function(){return[this]},r.prototype.getResourceInformation=function(){return this.iconUrl?[{url:this.iconUrl,mimeType:`image`}]:[]},r.prototype.getActionById=function(e){return this.id===e?this:void 0},r.prototype.getReferencedInputs=function(){return this.internalGetReferencedInputs()},r.prototype.validateInputs=function(){return this.internalValidateInputs(this.getReferencedInputs())},r.prototype.updateEnabledState=function(){},r.prototype.isEffectivelyEnabled=function(){return this.isEnabled},Object.defineProperty(r.prototype,`isPrimary`,{get:function(){return this.style===a.ActionStyle.Positive},set:function(e){e?this.style=a.ActionStyle.Positive:this.style===a.ActionStyle.Positive&&(this.style=a.ActionStyle.Default)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`hostConfig`,{get:function(){return this.parent?this.parent.hostConfig:c.defaultHostConfig},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`parent`,{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`state`,{get:function(){return this._state},set:function(e){this._state!==e&&(this._state=e,this.updateCssClasses())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`isFocusable`,{get:function(){return this._isFocusable},set:function(e){this._isFocusable!==e&&(this._isFocusable=e,this.updateCssClasses())},enumerable:!1,configurable:!0}),r.titleProperty=new d.StringProperty(d.Versions.v1_0,`title`),r.iconUrlProperty=new d.StringProperty(d.Versions.v1_1,`iconUrl`),r.styleProperty=new d.ValueSetProperty(d.Versions.v1_2,`style`,[{value:a.ActionStyle.Default},{value:a.ActionStyle.Positive},{value:a.ActionStyle.Destructive}],a.ActionStyle.Default),r.modeProperty=new d.ValueSetProperty(d.Versions.v1_5,`mode`,[{value:a.ActionMode.Primary},{value:a.ActionMode.Secondary}],a.ActionMode.Primary),r.tooltipProperty=new d.StringProperty(d.Versions.v1_5,`tooltip`),r.isEnabledProperty=new d.BoolProperty(d.Versions.v1_5,`isEnabled`,!0),r.roleProperty=new d.EnumProperty(d.Versions.v1_6,`role`,a.ActionRole),n([(0,d.property)(r.titleProperty)],r.prototype,`title`,void 0),n([(0,d.property)(r.iconUrlProperty)],r.prototype,`iconUrl`,void 0),n([(0,d.property)(r.styleProperty)],r.prototype,`style`,void 0),n([(0,d.property)(r.modeProperty)],r.prototype,`mode`,void 0),n([(0,d.property)(r.tooltipProperty)],r.prototype,`tooltip`,void 0),n([(0,d.property)(r.isEnabledProperty)],r.prototype,`isEnabled`,void 0),n([(0,d.property)(r.roleProperty)],r.prototype,`role`,void 0),r}(u.CardObject);e.Action=he;var ge=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.disabledUnlessAssociatedInputsChange=!1,t._isPrepared=!1,t._areReferencedInputsDirty=!1,t}return r.prototype.internalGetReferencedInputs=function(){var e={};if(this.associatedInputs!==`none`){for(var t=this.parent,n=[];t;)n.push.apply(n,t.getAllInputs(!1)),t=t.parent;for(var r=0,i=n;r<i.length;r++){var a=i[r];a.id&&(e[a.id]=a)}}return e},r.prototype.internalPrepareForExecution=function(e){if(this._originalData?this._processedData=JSON.parse(JSON.stringify(this._originalData)):this._processedData={},this._processedData&&e)for(var t=0,n=Object.keys(e);t<n.length;t++){var r=e[n[t]];r.id&&r.isSet()&&(this._processedData[r.id]=typeof r.value==`string`?r.value:r.value.toString())}this._isPrepared=!0},r.prototype.internalAfterExecute=function(){o.GlobalSettings.resetInputsDirtyStateAfterActionExecution&&this.resetReferencedInputsDirtyState()},r.prototype.resetReferencedInputsDirtyState=function(){var e=this.getReferencedInputs();if(this._areReferencedInputsDirty=!1,e)for(var t=0,n=Object.keys(e);t<n.length;t++)e[n[t]].resetDirtyState()},r.prototype.updateEnabledState=function(){this._areReferencedInputsDirty=!1;var e=this.getReferencedInputs();if(e){for(var t=0,n=Object.keys(e);t<n.length;t++)if(e[n[t]].isDirty()){this._areReferencedInputsDirty=!0;break}}this.updateCssClasses(),this._renderedElement&&this.setupElementForAccessibility(this._renderedElement)},r.prototype.isEffectivelyEnabled=function(){var t=e.prototype.isEffectivelyEnabled.call(this);return this.disabledUnlessAssociatedInputsChange?t&&this._areReferencedInputsDirty:t},Object.defineProperty(r.prototype,`data`,{get:function(){return this._isPrepared?this._processedData:this._originalData},set:function(e){this._originalData=e,this._isPrepared=!1},enumerable:!1,configurable:!0}),r.dataProperty=new d.PropertyDefinition(d.Versions.v1_0,`data`),r.associatedInputsProperty=new d.CustomProperty(d.Versions.v1_3,`associatedInputs`,function(e,t,n,r){var i=n[t.name];if(i!==void 0&&typeof i==`string`)return i.toLowerCase()===`none`?`none`:`auto`},function(e,t,n,r,i){i.serializeValue(n,t.name,r)}),r.disabledUnlessAssociatedInputsChangeProperty=new d.BoolProperty(d.Versions.v1_6,`disabledUnlessAssociatedInputsChange`,!1),n([(0,d.property)(r.dataProperty)],r.prototype,`_originalData`,void 0),n([(0,d.property)(r.associatedInputsProperty)],r.prototype,`associatedInputs`,void 0),n([(0,d.property)(r.disabledUnlessAssociatedInputsChangeProperty)],r.prototype,`disabledUnlessAssociatedInputsChange`,void 0),r}(he);e.SubmitActionBase=ge;var _e=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.getJsonTypeName=function(){return n.JsonTypeName},n.JsonTypeName=`Action.Submit`,n}(ge);e.SubmitAction=_e;var ve=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(ge);e.UniversalAction=ve;var z=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getJsonTypeName=function(){return r.JsonTypeName},r.JsonTypeName=`Action.Execute`,r.verbProperty=new d.StringProperty(d.Versions.v1_4,`verb`),n([(0,d.property)(r.verbProperty)],r.prototype,`verb`,void 0),r}(ve);e.ExecuteAction=z,e.DataQuery=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getJsonTypeName=function(){return r.JsonTypeName},Object.defineProperty(r.prototype,`isStandalone`,{get:function(){return!1},enumerable:!1,configurable:!0}),r.JsonTypeName=`Data.Query`,r.datasetProperty=new d.StringProperty(d.Versions.v1_6,`dataset`),r.filterProperty=new d.StringProperty(d.Versions.v1_6,`filter`),r.countProperty=new d.NumProperty(d.Versions.v1_6,`count`),r.skipProperty=new d.NumProperty(d.Versions.v1_6,`skip`),n([(0,d.property)(r.datasetProperty)],r.prototype,`dataset`,void 0),n([(0,d.property)(r.filterProperty)],r.prototype,`filter`,void 0),n([(0,d.property)(r.countProperty)],r.prototype,`count`,void 0),n([(0,d.property)(r.skipProperty)],r.prototype,`skip`,void 0),r}(ve);var B=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getJsonTypeName=function(){return r.JsonTypeName},r.prototype.getAriaRole=function(){return this.getAriaRoleFromEnum()??`link`},r.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.url||t.addFailure(this,a.ValidationEvent.PropertyCantBeNull,p.Strings.errors.propertyMustBeSet(`url`))},r.prototype.getHref=function(){return this.url},r.urlProperty=new d.StringProperty(d.Versions.v1_0,`url`),r.JsonTypeName=`Action.OpenUrl`,n([(0,d.property)(r.urlProperty)],r.prototype,`url`,void 0),r}(he);e.OpenUrlAction=B;var V=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.targetElements={},t}return r.prototype.updateAriaControlsAttribute=function(){if(this.targetElements){var e=Object.keys(this.targetElements);this._renderedElement&&(e.length>0?this._renderedElement.setAttribute(`aria-controls`,e.join(` `)):this._renderedElement.removeAttribute(`aria-controls`))}},r.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.targetElements||t.addFailure(this,a.ValidationEvent.PropertyCantBeNull,p.Strings.errors.propertyMustBeSet(`targetElements`))},r.prototype.getJsonTypeName=function(){return r.JsonTypeName},r.prototype.render=function(){e.prototype.render.call(this),this.updateAriaControlsAttribute()},r.prototype.execute=function(){if(e.prototype.execute.call(this),this.parent)for(var t=0,n=Object.keys(this.targetElements);t<n.length;t++){var r=n[t],i=this.parent.getRootElement().getElementById(r);i&&(typeof this.targetElements[r]==`boolean`?i.isVisible=this.targetElements[r]:i.isVisible=!i.isVisible)}},r.prototype.addTargetElement=function(e,t){t===void 0&&(t=void 0),this.targetElements[e]=t,this.updateAriaControlsAttribute()},r.prototype.removeTargetElement=function(e){delete this.targetElements[e],this.updateAriaControlsAttribute()},r.targetElementsProperty=new d.CustomProperty(d.Versions.v1_2,`targetElements`,function(e,t,n,r){var i={};if(Array.isArray(n[t.name]))for(var a=0,o=n[t.name];a<o.length;a++){var c=o[a];if(typeof c==`string`)i[c]=void 0;else if(typeof c==`object`){var l=c.elementId;typeof l==`string`&&(i[l]=s.parseBool(c.isVisible))}}return i},function(e,t,n,r,i){for(var a=[],o=0,s=Object.keys(r);o<s.length;o++){var c=s[o];typeof r[c]==`boolean`?a.push({elementId:c,isVisible:r[c]}):a.push(c)}i.serializeArray(n,t.name,a)},{},function(e){return{}}),r.JsonTypeName=`Action.ToggleVisibility`,n([(0,d.property)(r.targetElementsProperty)],r.prototype,`targetElements`,void 0),r}(he);e.ToggleVisibilityAction=V;var ye=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n,void 0,function(){return new o.StringWithSubstitutions})||this;return r.targetVersion=t,r.name=n,r}return n.prototype.parse=function(e,t,n){var r=new o.StringWithSubstitutions;return r.set(s.parseString(t[this.name])),r},n.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,n.getOriginal())},n}(d.PropertyDefinition),be=function(e){t(r,e);function r(t,n){t===void 0&&(t=``),n===void 0&&(n=``);var r=e.call(this)||this;return r.name=t,r.value=n,r}return r.prototype.getSchemaKey=function(){return`HttpHeader`},r.prototype.getReferencedInputs=function(e,t){this._value.getReferencedInputs(e,t)},r.prototype.prepareForExecution=function(e){this._value.substituteInputValues(e,o.ContentTypes.applicationXWwwFormUrlencoded)},Object.defineProperty(r.prototype,`value`,{get:function(){return this._value.get()},set:function(e){this._value.set(e)},enumerable:!1,configurable:!0}),r.nameProperty=new d.StringProperty(d.Versions.v1_0,`name`),r.valueProperty=new ye(d.Versions.v1_0,`value`),n([(0,d.property)(r.nameProperty)],r.prototype,`name`,void 0),n([(0,d.property)(r.valueProperty)],r.prototype,`_value`,void 0),r}(d.SerializableObject);e.HttpHeader=be,e.HttpAction=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t._ignoreInputValidation=!1,t}return r.prototype.internalGetReferencedInputs=function(){var e=this.parent?this.parent.getRootElement().getAllInputs():[],t={};this._url.getReferencedInputs(e,t);for(var n=0,r=this.headers;n<r.length;n++)r[n].getReferencedInputs(e,t);return this._body.getReferencedInputs(e,t),t},r.prototype.internalPrepareForExecution=function(e){if(e){this._url.substituteInputValues(e,o.ContentTypes.applicationXWwwFormUrlencoded);for(var t=o.ContentTypes.applicationJson,n=0,r=this.headers;n<r.length;n++){var i=r[n];i.prepareForExecution(e),i.name&&i.name.toLowerCase()===`content-type`&&(t=i.value)}this._body.substituteInputValues(e,t)}},r.prototype.getJsonTypeName=function(){return r.JsonTypeName},r.prototype.internalValidateProperties=function(t){if(e.prototype.internalValidateProperties.call(this,t),this.url||t.addFailure(this,a.ValidationEvent.PropertyCantBeNull,p.Strings.errors.propertyMustBeSet(`url`)),this.headers.length>0)for(var n=0,r=this.headers;n<r.length;n++)r[n].name||t.addFailure(this,a.ValidationEvent.PropertyCantBeNull,p.Strings.errors.actionHttpHeadersMustHaveNameAndValue())},Object.defineProperty(r.prototype,`ignoreInputValidation`,{get:function(){return this._ignoreInputValidation},set:function(e){this._ignoreInputValidation=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`url`,{get:function(){return this._url.get()},set:function(e){this._url.set(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`body`,{get:function(){return this._body.get()},set:function(e){this._body.set(e)},enumerable:!1,configurable:!0}),r.urlProperty=new ye(d.Versions.v1_0,`url`),r.bodyProperty=new ye(d.Versions.v1_0,`body`),r.methodProperty=new d.StringProperty(d.Versions.v1_0,`method`),r.headersProperty=new d.SerializableObjectCollectionProperty(d.Versions.v1_0,`headers`,be),r.ignoreInputValidationProperty=new d.BoolProperty(d.Versions.v1_3,`ignoreInputValidation`,!1),r.JsonTypeName=`Action.Http`,n([(0,d.property)(r.urlProperty)],r.prototype,`_url`,void 0),n([(0,d.property)(r.bodyProperty)],r.prototype,`_body`,void 0),n([(0,d.property)(r.methodProperty)],r.prototype,`method`,void 0),n([(0,d.property)(r.headersProperty)],r.prototype,`headers`,void 0),n([(0,d.property)(r.ignoreInputValidationProperty)],r.prototype,`_ignoreInputValidation`,void 0),r}(he);var xe=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.card=new Je,t}return n.prototype.updateCssClasses=function(){if(e.prototype.updateCssClasses.call(this),this.renderedElement){var t=this.parent?this.parent.hostConfig:c.defaultHostConfig;this.renderedElement.classList.add(t.makeCssClassName(`expandable`)),this.renderedElement.setAttribute(`aria-expanded`,(this.state===1).toString())}},n.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n);var r=t.card;r?this.card.parse(r,n):n.logParseEvent(this,a.ValidationEvent.PropertyCantBeNull,p.Strings.errors.showCardMustHaveCard())},n.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n),this.card&&n.serializeValue(t,`card`,this.card.toJSON(n))},n.prototype.raiseExecuteActionEvent=function(){this.hostConfig.actions.showCard.actionMode===a.ShowCardActionMode.Popup&&e.prototype.raiseExecuteActionEvent.call(this)},n.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this),this.card.releaseDOMResources()},n.prototype.getJsonTypeName=function(){return n.JsonTypeName},n.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.card.internalValidateProperties(t)},n.prototype.setParent=function(t){e.prototype.setParent.call(this,t),this.card.setParent(t)},n.prototype.getAllInputs=function(e){return e===void 0&&(e=!0),this.card.getAllInputs(e)},n.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return t.push.apply(t,this.card.getAllActions()),t},n.prototype.getResourceInformation=function(){var t=e.prototype.getResourceInformation.call(this);return t.push.apply(t,this.card.getResourceInformation()),t},n.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);return n||=this.card.getActionById(t),n},n.JsonTypeName=`Action.ShowCard`,n}(he);e.ShowCardAction=xe;var Se=function(e){t(n,e);function n(t){var n=e.call(this)||this;return n._actions=t,n.title=p.Strings.defaults.overflowButtonText(),n.tooltip=p.Strings.defaults.overflowButtonTooltip(),n}return n.prototype.getActions=function(){return this._actions},n.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return t.push.apply(t,this._actions),t},n.prototype.getJsonTypeName=function(){return xe.JsonTypeName},n.prototype.execute=function(){var e=this;if(!ze(this,this.renderedElement)&&this.renderedElement){var t=new m.PopupMenu;t.hostConfig=this.hostConfig;for(var n=function(n){var i=new m.MenuItem(n.toString(),r._actions[n].title??``);i.isEnabled=r._actions[n].isEnabled,i.onClick=function(){var r=e._actions[n];t.closePopup(!1),r.isEnabled&&r.execute()},t.items.add(i)},r=this,i=0;i<this._actions.length;i++)n(i);t.onClose=function(){var t;(t=e.renderedElement)==null||t.setAttribute(`aria-expanded`,`false`)},this.renderedElement.setAttribute(`aria-expanded`,`true`),t.popup(this.renderedElement)}},n.prototype.setupElementForAccessibility=function(t,n){n===void 0&&(n=!1),e.prototype.setupElementForAccessibility.call(this,t,n),t.setAttribute(`aria-label`,p.Strings.defaults.overflowButtonTooltip()),t.setAttribute(`aria-expanded`,`false`)},n.JsonTypeName=`Action.Overflow`,n}(he),Ce=function(){function e(e){this._items=[],this._renderedActions=[],this._owner=e}return e.prototype.isActionAllowed=function(e){var t=this._owner.getForbiddenActionTypes();if(t)for(var n=0,r=t;n<r.length;n++){var i=r[n];if(e.constructor===i)return!1}return!0},e.prototype.refreshContainer=function(){if(h(this._actionCardContainer),!this._actionCard){this._actionCardContainer.style.marginTop=`0px`;return}this._actionCardContainer.style.marginTop=this.renderedActionCount>0?this._owner.hostConfig.actions.showCard.inlineTopMargin+`px`:`0px`;var e=this._owner.getEffectivePadding();this._owner.getImmediateSurroundingPadding(e);var t=this._owner.hostConfig.paddingDefinitionToSpacingDefinition(e);this._actionCard&&(this._actionCard.style.paddingLeft=t.left+`px`,this._actionCard.style.paddingRight=t.right+`px`,this._actionCard.style.marginLeft=`-`+t.left+`px`,this._actionCard.style.marginRight=`-`+t.right+`px`,t.bottom!==0&&!this._owner.isDesignMode()&&(this._actionCard.style.paddingBottom=t.bottom+`px`,this._actionCard.style.marginBottom=`-`+t.bottom+`px`),s.appendChild(this._actionCardContainer,this._actionCard))},e.prototype.layoutChanged=function(){this._owner.getRootElement().updateLayout()},e.prototype.showActionCard=function(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),e.card.suppressStyle=t,this._actionCard=e.card.renderedElement&&!this._owner.isDesignMode()?e.card.renderedElement:e.card.render(),this._expandedAction=e,this.refreshContainer(),n&&(this.layoutChanged(),Fe(e,!0))},e.prototype.collapseExpandedAction=function(){for(var e=0,t=this._renderedActions;e<t.length;e++){var n=t[e];n.state=0}var r=this._expandedAction;this._expandedAction=void 0,this._actionCard=void 0,this.refreshContainer(),r&&(this.layoutChanged(),Fe(r,!1))},e.prototype.expandShowCardAction=function(e,t){for(var n=this,r=!1,i=0,o=this._renderedActions;i<o.length;i++){var s=o[i];this._owner.hostConfig.actions.actionsOrientation==a.Orientation.Horizontal&&r&&(s.isFocusable=!1),s===e?(s.state=1,r=!0,s.renderedElement&&(s.renderedElement.onblur=function(e){for(var t=0,r=n._renderedActions;t<r.length;t++){var i=r[t];i.isFocusable=!0}})):s.state=2}this.showActionCard(e,!(this._owner.isAtTheVeryLeft()&&this._owner.isAtTheVeryRight()),t)},e.prototype.releaseDOMResources=function(){for(var e=0,t=this._renderedActions;e<t.length;e++)t[e].releaseDOMResources()},e.prototype.actionExecuted=function(e){e instanceof xe?e===this._expandedAction?this.collapseExpandedAction():this._owner.hostConfig.actions.showCard.actionMode===a.ShowCardActionMode.Inline&&this.expandShowCardAction(e,!0):this.collapseExpandedAction()},e.prototype.parse=function(e,t){if(this.clear(),Array.isArray(e))for(var n=0,r=e;n<r.length;n++){var i=r[n],a=[];this._owner instanceof Ve&&(a=this._owner.getForbiddenActionNames());var o=t.parseAction(this._owner,i,a,!this._owner.isDesignMode());o&&this.addAction(o)}},e.prototype.toJSON=function(e,t,n){n.serializeArray(e,t,this._items)},e.prototype.getActionAt=function(e){return this._items[e]},e.prototype.getActionCount=function(){return this._items.length},e.prototype.getActionById=function(e){for(var t=void 0,n=0,r=this._items;n<r.length&&(t=r[n].getActionById(e),!t);n++);return t},e.prototype.validateProperties=function(e){this._owner.hostConfig.actions.maxActions&&this._items.length>this._owner.hostConfig.actions.maxActions&&e.addFailure(this._owner,a.ValidationEvent.TooManyActions,p.Strings.errors.tooManyActions(this._owner.hostConfig.actions.maxActions)),this._items.length>0&&!this._owner.hostConfig.supportsInteractivity&&e.addFailure(this._owner,a.ValidationEvent.InteractivityNotAllowed,p.Strings.errors.interactivityNotAllowed());for(var t=0,n=this._items;t<n.length;t++){var r=n[t];this.isActionAllowed(r)||e.addFailure(this._owner,a.ValidationEvent.ActionTypeNotAllowed,p.Strings.errors.actionTypeNotAllowed(r.getJsonTypeName())),r.internalValidateProperties(e)}},e.prototype.render=function(e){var t=this._owner.hostConfig;if(t.supportsInteractivity){var n=document.createElement(`div`),r=t.actions.maxActions?Math.min(t.actions.maxActions,this._items.length):this._items.length;if(this._actionCardContainer=document.createElement(`div`),this._renderedActions=[],t.actions.preExpandSingleShowCardAction&&r===1&&this._items[0]instanceof xe&&this.isActionAllowed(this._items[0]))this.showActionCard(this._items[0],!0),this._renderedActions.push(this._items[0]);else{var i=document.createElement(`div`);if(i.className=t.makeCssClassName(`ac-actionSet`),i.style.display=`flex`,e===a.Orientation.Horizontal)if(i.style.flexDirection=`row`,this._owner.horizontalAlignment&&t.actions.actionAlignment!==a.ActionAlignment.Stretch)switch(this._owner.horizontalAlignment){case a.HorizontalAlignment.Center:i.style.justifyContent=`center`;break;case a.HorizontalAlignment.Right:i.style.justifyContent=`flex-end`;break;default:i.style.justifyContent=`flex-start`;break}else switch(t.actions.actionAlignment){case a.ActionAlignment.Center:i.style.justifyContent=`center`;break;case a.ActionAlignment.Right:i.style.justifyContent=`flex-end`;break;default:i.style.justifyContent=`flex-start`;break}else if(i.style.flexDirection=`column`,this._owner.horizontalAlignment&&t.actions.actionAlignment!==a.ActionAlignment.Stretch)switch(this._owner.horizontalAlignment){case a.HorizontalAlignment.Center:i.style.alignItems=`center`;break;case a.HorizontalAlignment.Right:i.style.alignItems=`flex-end`;break;default:i.style.alignItems=`flex-start`;break}else switch(t.actions.actionAlignment){case a.ActionAlignment.Center:i.style.alignItems=`center`;break;case a.ActionAlignment.Right:i.style.alignItems=`flex-end`;break;case a.ActionAlignment.Stretch:i.style.alignItems=`stretch`;break;default:i.style.alignItems=`flex-start`;break}var c=this._items.filter(this.isActionAllowed.bind(this)),l=[],u=[];if(this._owner.isDesignMode())l=c;else{c.forEach(function(e){return e.mode===a.ActionMode.Secondary?u.push(e):l.push(e)});var d=l.splice(t.actions.maxActions);o.GlobalSettings.allowMoreThanMaxActionsInOverflowMenu&&u.push.apply(u,d);var f=!0;if(u.length>0){this._overflowAction||(this._overflowAction=new Se(u),this._overflowAction.setParent(this._owner),this._overflowAction._actionCollection=this);var p=this._owner instanceof qe&&!this._owner.parent;f=!Be(this._overflowAction,p)}this._overflowAction&&f&&l.push(this._overflowAction)}for(var m=0;m<l.length;m++){var h=l[m];if(h.render(),h.renderedElement&&(t.actions.actionsOrientation===a.Orientation.Horizontal&&t.actions.actionAlignment===a.ActionAlignment.Stretch?h.renderedElement.style.flex=`0 1 100%`:h.renderedElement.style.flex=`0 1 auto`,i.appendChild(h.renderedElement),this._renderedActions.push(h),m<l.length-1&&t.actions.buttonSpacing>0)){var g=document.createElement(`div`);e===a.Orientation.Horizontal?(g.style.flex=`0 0 auto`,g.style.width=t.actions.buttonSpacing+`px`):g.style.height=t.actions.buttonSpacing+`px`,s.appendChild(i,g)}}var _=document.createElement(`div`);_.style.overflow=`hidden`,_.appendChild(i),s.appendChild(n,_)}s.appendChild(n,this._actionCardContainer);for(var v=0,y=this._renderedActions;v<y.length;v++){var b=y[v];if(b.state===1){this.expandShowCardAction(b,!1);break}}return this._renderedActions.length>0?n:void 0}},e.prototype.addAction=function(e){if(!e)throw Error(`The action parameter cannot be null.`);if((!e.parent||e.parent===this._owner)&&this._items.indexOf(e)<0)this._items.push(e),e.parent||e.setParent(this._owner),e._actionCollection=this;else throw Error(p.Strings.errors.actionAlreadyParented())},e.prototype.removeAction=function(e){this.expandedAction&&this._expandedAction===e&&this.collapseExpandedAction();var t=this._items.indexOf(e);if(t>=0){this._items.splice(t,1),e.setParent(void 0),e._actionCollection=void 0;for(var n=0;n<this._renderedActions.length;n++)if(this._renderedActions[n]===e){this._renderedActions.splice(n,1);break}return!0}return!1},e.prototype.clear=function(){this._items=[],this._renderedActions=[],this._expandedAction=void 0},e.prototype.getAllInputs=function(e){e===void 0&&(e=!0);var t=[];if(e)for(var n=0,r=this._items;n<r.length;n++){var i=r[n];t.push.apply(t,i.getAllInputs())}return t},e.prototype.getResourceInformation=function(){for(var e=[],t=0,n=this._items;t<n.length;t++){var r=n[t];e.push.apply(e,r.getResourceInformation())}return e},Object.defineProperty(e.prototype,`renderedActionCount`,{get:function(){return this._renderedActions.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`expandedAction`,{get:function(){return this._expandedAction},enumerable:!1,configurable:!0}),e}(),we=function(e){t(r,e);function r(){var t=e.call(this)||this;return t._actionCollection=new Ce(t),t}return r.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n),this._actionCollection.parse(t.actions,n)},r.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n),this._actionCollection.toJSON(t,`actions`,n)},r.prototype.internalRender=function(){return this._actionCollection.render(this.orientation===void 0?this.hostConfig.actions.actionsOrientation:this.orientation)},r.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this),this._actionCollection.releaseDOMResources()},r.prototype.isBleedingAtBottom=function(){return this._actionCollection.renderedActionCount===0?e.prototype.isBleedingAtBottom.call(this):this._actionCollection.getActionCount()===1?this._actionCollection.expandedAction!==void 0&&!this.hostConfig.actions.preExpandSingleShowCardAction:this._actionCollection.expandedAction!==void 0},r.prototype.getJsonTypeName=function(){return`ActionSet`},r.prototype.getActionCount=function(){return this._actionCollection.getActionCount()},r.prototype.getActionAt=function(t){return t>=0&&t<this.getActionCount()?this._actionCollection.getActionAt(t):e.prototype.getActionAt.call(this,t)},r.prototype.getActionById=function(t){return this._actionCollection.getActionById(t)||e.prototype.getActionById.call(this,t)},r.prototype.getAllActions=function(){for(var t=e.prototype.getAllActions.call(this),n=0;n<this.getActionCount();n++){var r=this.getActionAt(n);r&&t.push(r)}return t},r.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this._actionCollection.validateProperties(t)},r.prototype.addAction=function(e){this._actionCollection.addAction(e)},r.prototype.getAllInputs=function(e){return e===void 0&&(e=!0),e?this._actionCollection.getAllInputs():[]},r.prototype.getResourceInformation=function(){return this._actionCollection.getResourceInformation()},r.prototype.findDOMNodeOwner=function(t){for(var n=void 0,r=0;r<this.getActionCount();r++){var i=this.getActionAt(r);if(i&&(n=i.findDOMNodeOwner(t),n))return n}return e.prototype.findDOMNodeOwner.call(this,t)},r.prototype.getElementById=function(t){var n=e.prototype.getElementById.call(this,t);return n||=this.getElementByIdFromAction(t),n},Object.defineProperty(r.prototype,`isInteractive`,{get:function(){return!0},enumerable:!1,configurable:!0}),r.orientationProperty=new d.EnumProperty(d.Versions.v1_1,`orientation`,a.Orientation),n([(0,d.property)(r.orientationProperty)],r.prototype,`orientation`,void 0),r}(_);e.ActionSet=we;var Te=function(e){t(n,e);function n(t,n,r,i){var o=e.call(this,t,n,[{value:a.ContainerStyle.Default},{value:a.ContainerStyle.Emphasis},{targetVersion:d.Versions.v1_2,value:a.ContainerStyle.Accent},{targetVersion:d.Versions.v1_2,value:a.ContainerStyle.Good},{targetVersion:d.Versions.v1_2,value:a.ContainerStyle.Attention},{targetVersion:d.Versions.v1_2,value:a.ContainerStyle.Warning}],r,i)||this;return o.targetVersion=t,o.name=n,o.defaultValue=r,o.onGetInitialValue=i,o}return n}(d.ValueSetProperty);e.ContainerStyleProperty=Te;var Ee=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(r.prototype,`style`,{get:function(){if(this.allowCustomStyle){var e=this.getValue(r.styleProperty);if(e&&this.hostConfig.containerStyles.getStyleByName(e))return e}},set:function(e){this.setValue(r.styleProperty,e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`allowCustomStyle`,{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`hasExplicitStyle`,{get:function(){return this.getValue(r.styleProperty)!==void 0},enumerable:!1,configurable:!0}),r.prototype.applyBorder=function(){},r.prototype.applyBackground=function(){if(this.renderedElement){var e=this.hostConfig.containerStyles.getStyleByName(this.style,this.hostConfig.containerStyles.getStyleByName(this.defaultStyle));if(e.backgroundColor){var t=s.stringToCssColor(e.backgroundColor);t&&(this.renderedElement.style.backgroundColor=t)}}},r.prototype.applyPadding=function(){if(e.prototype.applyPadding.call(this),this.renderedElement){var t=new o.SpacingDefinition;if(this.getEffectivePadding()&&(t=this.hostConfig.paddingDefinitionToSpacingDefinition(this.getEffectivePadding())),this.renderedElement.style.paddingTop=t.top+`px`,this.renderedElement.style.paddingRight=t.right+`px`,this.renderedElement.style.paddingBottom=t.bottom+`px`,this.renderedElement.style.paddingLeft=t.left+`px`,this.isBleeding()){var n=new o.PaddingDefinition;this.getImmediateSurroundingPadding(n);var r=this.hostConfig.paddingDefinitionToSpacingDefinition(n);this.renderedElement.style.marginRight=`-`+r.right+`px`,this.renderedElement.style.marginLeft=`-`+r.left+`px`,this.isDesignMode()||(this.renderedElement.style.marginTop=`-`+r.top+`px`,this.renderedElement.style.marginBottom=`-`+r.bottom+`px`),this.separatorElement&&this.separatorOrientation===a.Orientation.Horizontal&&(this.separatorElement.style.marginLeft=`-`+r.left+`px`,this.separatorElement.style.marginRight=`-`+r.right+`px`)}else this.renderedElement.style.marginRight=`0`,this.renderedElement.style.marginLeft=`0`,this.renderedElement.style.marginTop=`0`,this.renderedElement.style.marginBottom=`0`,this.separatorElement&&this.separatorOrientation===a.Orientation.Horizontal&&(this.separatorElement.style.marginRight=`0`,this.separatorElement.style.marginLeft=`0`)}},r.prototype.getHasBackground=function(e){e===void 0&&(e=!1);for(var t=this.parent;t;){var n=!1;if(n=e?!1:t instanceof ke?t.backgroundImage.isValid():!1,t instanceof r&&this.hasExplicitStyle&&(t.getEffectiveStyle()!==this.getEffectiveStyle()||n))return!0;t=t.parent}return!1},r.prototype.getDefaultPadding=function(){return this.getHasBackground()||this.getHasBorder()?new o.PaddingDefinition(a.Spacing.Padding,a.Spacing.Padding,a.Spacing.Padding,a.Spacing.Padding):e.prototype.getDefaultPadding.call(this)},r.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t);var n=this.getValue(r.styleProperty);n!==void 0&&(this.hostConfig.containerStyles.getStyleByName(n)||t.addFailure(this,a.ValidationEvent.InvalidPropertyValue,p.Strings.errors.invalidPropertyValue(n,`style`)))},r.prototype.render=function(){var t=e.prototype.render.call(this);return t&&this.getHasBackground()&&this.applyBackground(),this.applyBorder(),t},r.prototype.getEffectiveStyle=function(){return this.style||e.prototype.getEffectiveStyle.call(this)},r.styleProperty=new Te(d.Versions.v1_0,`style`),n([(0,d.property)(r.styleProperty)],r.prototype,`style`,null),r}(O);e.StylableCardElementContainer=Ee;var De=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t._bleed=!1,t}return r.prototype.adjustRenderedElementSize=function(t){e.prototype.adjustRenderedElementSize.call(this,t),this.minPixelHeight&&(t.style.minHeight=this.minPixelHeight+`px`)},r.prototype.getHasExpandedAction=function(){return!1},r.prototype.getBleed=function(){return this._bleed},r.prototype.setBleed=function(e){this._bleed=e},Object.defineProperty(r.prototype,`renderedActionCount`,{get:function(){return 0},enumerable:!1,configurable:!0}),r.prototype.isBleeding=function(){return(this.getHasBackground()||this.hostConfig.alwaysAllowBleed)&&this.getBleed()},r.bleedProperty=new d.BoolProperty(d.Versions.v1_2,`bleed`,!1),r.minHeightProperty=new d.PixelSizeProperty(d.Versions.v1_2,`minHeight`),n([(0,d.property)(r.bleedProperty)],r.prototype,`_bleed`,void 0),n([(0,d.property)(r.minHeightProperty)],r.prototype,`minPixelHeight`,void 0),r}(Ee);e.ContainerBase=De;var Oe=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getSchemaKey=function(){return`BackgroundImage`},r.prototype.internalParse=function(t,n){if(typeof t==`string`)this.resetDefaultValues(),this.url=t;else return e.prototype.internalParse.call(this,t,n)},r.prototype.apply=function(e){if(this.url&&e.renderedElement){switch(e.renderedElement.style.backgroundImage=`url('`+e.preProcessPropertyValue(r.urlProperty,this.url)+`')`,this.fillMode){case a.FillMode.Repeat:e.renderedElement.style.backgroundRepeat=`repeat`;break;case a.FillMode.RepeatHorizontally:e.renderedElement.style.backgroundRepeat=`repeat-x`;break;case a.FillMode.RepeatVertically:e.renderedElement.style.backgroundRepeat=`repeat-y`;break;case a.FillMode.Cover:default:e.renderedElement.style.backgroundRepeat=`no-repeat`,e.renderedElement.style.backgroundSize=`cover`;break}switch(this.horizontalAlignment){case a.HorizontalAlignment.Left:break;case a.HorizontalAlignment.Center:e.renderedElement.style.backgroundPositionX=`center`;break;case a.HorizontalAlignment.Right:e.renderedElement.style.backgroundPositionX=`right`;break}switch(this.verticalAlignment){case a.VerticalAlignment.Top:break;case a.VerticalAlignment.Center:e.renderedElement.style.backgroundPositionY=`center`;break;case a.VerticalAlignment.Bottom:e.renderedElement.style.backgroundPositionY=`bottom`;break}}},r.prototype.isValid=function(){return!!this.url},r.urlProperty=new d.StringProperty(d.Versions.v1_0,`url`),r.fillModeProperty=new d.EnumProperty(d.Versions.v1_2,`fillMode`,a.FillMode,a.FillMode.Cover),r.horizontalAlignmentProperty=new d.EnumProperty(d.Versions.v1_2,`horizontalAlignment`,a.HorizontalAlignment,a.HorizontalAlignment.Left),r.verticalAlignmentProperty=new d.EnumProperty(d.Versions.v1_2,`verticalAlignment`,a.VerticalAlignment,a.VerticalAlignment.Top),n([(0,d.property)(r.urlProperty)],r.prototype,`url`,void 0),n([(0,d.property)(r.fillModeProperty)],r.prototype,`fillMode`,void 0),n([(0,d.property)(r.horizontalAlignmentProperty)],r.prototype,`horizontalAlignment`,void 0),n([(0,d.property)(r.verticalAlignmentProperty)],r.prototype,`verticalAlignment`,void 0),r}(d.SerializableObject);e.BackgroundImage=Oe;var ke=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t._items=[],t._renderedItems=[],t}return Object.defineProperty(r.prototype,`backgroundImage`,{get:function(){return this.getValue(r.backgroundImageProperty)},enumerable:!1,configurable:!0}),r.prototype.insertItemAt=function(e,t,n){if(!e.parent||n)if(e.isStandalone)t<0||t>=this._items.length?this._items.push(e):this._items.splice(t,0,e),e.setParent(this);else throw Error(p.Strings.errors.elementTypeNotStandalone(e.getJsonTypeName()));else throw Error(p.Strings.errors.elementAlreadyParented())},r.prototype.getItemsCollectionPropertyName=function(){return`items`},r.prototype.applyBackground=function(){this.backgroundImage.isValid()&&this.renderedElement&&this.backgroundImage.apply(this),e.prototype.applyBackground.call(this)},r.prototype.applyRTL=function(e){this.rtl!==void 0&&(e.dir=this.rtl?`rtl`:`ltr`)},r.prototype.internalRender=function(){this._renderedItems=[];var e=this.hostConfig,t=document.createElement(`div`);switch(this.applyRTL(t),t.classList.add(e.makeCssClassName(`ac-container`)),t.style.display=`flex`,t.style.flexDirection=`column`,o.GlobalSettings.useAdvancedCardBottomTruncation&&(t.style.minHeight=`-webkit-min-content`),this.getEffectiveVerticalContentAlignment()){case a.VerticalAlignment.Center:t.style.justifyContent=`center`;break;case a.VerticalAlignment.Bottom:t.style.justifyContent=`flex-end`;break;default:t.style.justifyContent=`flex-start`;break}if(this._items.length>0)for(var n=0,r=this._items;n<r.length;n++){var i=r[n],c=this.isElementAllowed(i)?i.render():void 0;c&&(this._renderedItems.length>0&&i.separatorElement&&(i.separatorElement.style.flex=`0 0 auto`,s.appendChild(t,i.separatorElement)),s.appendChild(t,c),this._renderedItems.push(i))}else if(this.isDesignMode()){var l=this.createPlaceholderElement();l.style.width=`100%`,l.style.height=`100%`,t.appendChild(l)}return t},r.prototype.truncateOverflow=function(e){if(this.renderedElement){for(var t=this.renderedElement.offsetTop+e+1,n=function(e){var r=e.renderedElement;if(r)switch(s.getFitStatus(r,t)){case a.ContainerFitStatus.FullyInContainer:e.resetOverflow()&&n(e);break;case a.ContainerFitStatus.Overflowing:var i=t-r.offsetTop;e.handleOverflow(i);break;case a.ContainerFitStatus.FullyOutOfContainer:e.handleOverflow(0);break}},r=0,i=this._items;r<i.length;r++){var o=i[r];n(o)}return!0}return!1},r.prototype.undoOverflowTruncation=function(){for(var e=0,t=this._items;e<t.length;e++)t[e].resetOverflow()},r.prototype.getHasBackground=function(t){return t===void 0&&(t=!1),(t?!1:this.backgroundImage.isValid())||e.prototype.getHasBackground.call(this,t)},r.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n),this.clear(),this.setShouldFallback(!1);var r=t[this.getItemsCollectionPropertyName()];if(Array.isArray(r))for(var i=0,a=r;i<a.length;i++){var o=a[i],s=n.parseElement(this,o,this.forbiddenChildElements(),!this.isDesignMode());s&&this.insertItemAt(s,-1,!0)}},r.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n);var r=this.getItemsCollectionPropertyName();n.serializeArray(t,r,this._items)},Object.defineProperty(r.prototype,`isSelectable`,{get:function(){return!0},enumerable:!1,configurable:!0}),r.prototype.getEffectivePadding=function(){return o.GlobalSettings.removePaddingFromContainersWithBackgroundImage&&!this.getHasBackground(!0)?new o.PaddingDefinition:e.prototype.getEffectivePadding.call(this)},r.prototype.getEffectiveVerticalContentAlignment=function(){if(this.verticalContentAlignment!==void 0)return this.verticalContentAlignment;var e=this.getParentContainer();return e?e.getEffectiveVerticalContentAlignment():a.VerticalAlignment.Top},r.prototype.getItemCount=function(){return this._items.length},r.prototype.getItemAt=function(e){return this._items[e]},r.prototype.getFirstVisibleRenderedItem=function(){if(this.renderedElement&&this._renderedItems&&this._renderedItems.length>0)for(var e=0,t=this._renderedItems;e<t.length;e++){var n=t[e];if(n.isVisible)return n}},r.prototype.getLastVisibleRenderedItem=function(){if(this.renderedElement&&this._renderedItems&&this._renderedItems.length>0){for(var e=this._renderedItems.length-1;e>=0;e--)if(this._renderedItems[e].isVisible)return this._renderedItems[e]}},r.prototype.getJsonTypeName=function(){return`Container`},r.prototype.isFirstElement=function(e){for(var t=this.isDesignMode(),n=0,r=this._items;n<r.length;n++){var i=r[n];if(i.isVisible||t)return i===e}return!1},r.prototype.isLastElement=function(e){for(var t=this.isDesignMode(),n=this._items.length-1;n>=0;n--)if(this._items[n].isVisible||t)return this._items[n]===e;return!1},r.prototype.isRtl=function(){if(this.rtl!==void 0)return this.rtl;var e=this.getParentContainer();return e?e.isRtl():!1},r.prototype.isBleedingAtTop=function(){var e=this.getFirstVisibleRenderedItem();return this.isBleeding()||(e?e.isBleedingAtTop():!1)},r.prototype.isBleedingAtBottom=function(){var e=this.getLastVisibleRenderedItem();return this.isBleeding()||(e?e.isBleedingAtBottom()&&e.getEffectiveStyle()===this.getEffectiveStyle():!1)},r.prototype.indexOf=function(e){return this._items.indexOf(e)},r.prototype.addItem=function(e){this.insertItemAt(e,-1,!1)},r.prototype.insertItemBefore=function(e,t){this.insertItemAt(e,this._items.indexOf(t),!1)},r.prototype.insertItemAfter=function(e,t){this.insertItemAt(e,this._items.indexOf(t)+1,!1)},r.prototype.removeItem=function(e){var t=this._items.indexOf(e);return t>=0?(this._items.splice(t,1),e.setParent(void 0),this.updateLayout(),!0):!1},r.prototype.clear=function(){this._items=[],this._renderedItems=[]},r.prototype.getResourceInformation=function(){var t=e.prototype.getResourceInformation.call(this);return this.backgroundImage.isValid()&&t.push({url:this.backgroundImage.url,mimeType:`image`}),t},r.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);if(!n&&(this.selectAction&&(n=this.selectAction.getActionById(t)),!n))for(var r=0,i=this._items;r<i.length&&(n=i[r].getActionById(t),!n);r++);return n},Object.defineProperty(r.prototype,`padding`,{get:function(){return this.getPadding()},set:function(e){this.setPadding(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`selectAction`,{get:function(){return this._selectAction},set:function(e){this._selectAction=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`bleed`,{get:function(){return this.getBleed()},set:function(e){this.setBleed(e)},enumerable:!1,configurable:!0}),r.backgroundImageProperty=new d.SerializableObjectProperty(d.Versions.v1_0,`backgroundImage`,Oe),r.verticalContentAlignmentProperty=new d.EnumProperty(d.Versions.v1_1,`verticalContentAlignment`,a.VerticalAlignment),r.rtlProperty=new d.BoolProperty(d.Versions.v1_0,`rtl`),n([(0,d.property)(r.backgroundImageProperty)],r.prototype,`backgroundImage`,null),n([(0,d.property)(r.verticalContentAlignmentProperty)],r.prototype,`verticalContentAlignment`,void 0),n([(0,d.property)(r.rtlProperty)],r.prototype,`rtl`,void 0),r}(De);e.Container=ke;var Ae=function(e){t(r,e);function r(t){t===void 0&&(t=`stretch`);var n=e.call(this)||this;return n.width=`stretch`,n._computedWeight=0,n.width=t,n}return r.prototype.adjustRenderedElementSize=function(e){var t=20;this.isDesignMode()?(e.style.minWidth=`20px`,e.style.minHeight=(this.minPixelHeight?Math.max(this.minPixelHeight,t):t)+`px`):(e.style.minWidth=`0`,this.minPixelHeight&&(e.style.minHeight=this.minPixelHeight+`px`)),this.width===`auto`?e.style.flex=`0 1 auto`:this.width===`stretch`?e.style.flex=`1 1 50px`:this.width instanceof o.SizeAndUnit&&(this.width.unit===a.SizeUnit.Pixel?(e.style.flex=`0 0 auto`,e.style.width=this.width.physicalSize+`px`):e.style.flex=`1 1 `+(this._computedWeight>0?this._computedWeight:this.width.physicalSize)+`%`)},r.prototype.shouldSerialize=function(e){return!0},Object.defineProperty(r.prototype,`separatorOrientation`,{get:function(){return a.Orientation.Vertical},enumerable:!1,configurable:!0}),r.prototype.getJsonTypeName=function(){return`Column`},Object.defineProperty(r.prototype,`hasVisibleSeparator`,{get:function(){return this.parent&&this.parent instanceof je?this.separatorElement!==void 0&&!this.parent.isLeftMostElement(this):!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`isStandalone`,{get:function(){return!1},enumerable:!1,configurable:!0}),r.widthProperty=new d.CustomProperty(d.Versions.v1_0,`width`,function(e,t,n,r){var i=t.defaultValue,s=n[t.name],c=!1;if(typeof s==`number`&&!isNaN(s))i=new o.SizeAndUnit(s,a.SizeUnit.Weight);else if(s===`auto`||s===`stretch`)i=s;else if(typeof s==`string`)try{i=o.SizeAndUnit.parse(s),i.unit===a.SizeUnit.Pixel&&t.targetVersion.compareTo(r.targetVersion)>0&&(c=!0)}catch{c=!0}else c=!0;return c&&(r.logParseEvent(e,a.ValidationEvent.InvalidPropertyValue,p.Strings.errors.invalidColumnWidth(s)),i=`auto`),i},function(e,t,n,r,i){r instanceof o.SizeAndUnit?r.unit===a.SizeUnit.Pixel?i.serializeValue(n,`width`,r.physicalSize+`px`):i.serializeNumber(n,`width`,r.physicalSize):i.serializeValue(n,`width`,r)},`stretch`),n([(0,d.property)(r.widthProperty)],r.prototype,`width`,void 0),r}(ke);e.Column=Ae;var je=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t._columns=[],t}return n.prototype.createColumnInstance=function(e,t){return t.parseCardObject(this,e,[],!this.isDesignMode(),function(e){return!e||e===`Column`?new Ae:void 0},function(e,n){t.logParseEvent(void 0,a.ValidationEvent.ElementTypeNotAllowed,p.Strings.errors.elementTypeNotAllowed(e))})},n.prototype.internalRender=function(){if(this._renderedColumns=[],this._columns.length>0){var e=this.hostConfig,t=document.createElement(`div`);switch(t.className=e.makeCssClassName(`ac-columnSet`),t.style.display=`flex`,o.GlobalSettings.useAdvancedCardBottomTruncation&&(t.style.minHeight=`-webkit-min-content`),this.getEffectiveHorizontalAlignment()){case a.HorizontalAlignment.Center:t.style.justifyContent=`center`;break;case a.HorizontalAlignment.Right:t.style.justifyContent=`flex-end`;break;default:t.style.justifyContent=`flex-start`;break}for(var n=0,r=0,i=this._columns;r<i.length;r++){var c=i[r];c.width instanceof o.SizeAndUnit&&c.width.unit===a.SizeUnit.Weight&&(n+=c.width.physicalSize)}for(var l=0,u=this._columns;l<u.length;l++){var c=u[l];c.width instanceof o.SizeAndUnit&&c.width.unit===a.SizeUnit.Weight&&n>0&&(c._computedWeight=100/n*c.width.physicalSize);var d=c.render();d&&(this._renderedColumns.length>0&&c.separatorElement&&(c.separatorElement.style.flex=`0 0 auto`,s.appendChild(t,c.separatorElement)),s.appendChild(t,d),this._renderedColumns.push(c))}return this._renderedColumns.length>0?t:void 0}else return},n.prototype.truncateOverflow=function(e){for(var t=0,n=this._columns;t<n.length;t++)n[t].handleOverflow(e);return!0},n.prototype.undoOverflowTruncation=function(){for(var e=0,t=this._columns;e<t.length;e++)t[e].resetOverflow()},Object.defineProperty(n.prototype,`isSelectable`,{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n),this._columns=[],this._renderedColumns=[];var r=t.columns;if(Array.isArray(r))for(var i=0,a=r;i<a.length;i++){var o=a[i],s=this.createColumnInstance(o,n);s&&this._columns.push(s)}},n.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n),n.serializeArray(t,`columns`,this._columns)},n.prototype.isFirstElement=function(e){for(var t=0,n=this._columns;t<n.length;t++){var r=n[t];if(r.isVisible)return r===e}return!1},n.prototype.isBleedingAtTop=function(){if(this.isBleeding())return!0;if(this._renderedColumns&&this._renderedColumns.length>0){for(var e=0,t=this._columns;e<t.length;e++)if(t[e].isBleedingAtTop())return!0}return!1},n.prototype.isBleedingAtBottom=function(){if(this.isBleeding())return!0;if(this._renderedColumns&&this._renderedColumns.length>0){for(var e=0,t=this._columns;e<t.length;e++)if(t[e].isBleedingAtBottom())return!0}return!1},n.prototype.getItemCount=function(){return this._columns.length},n.prototype.getFirstVisibleRenderedItem=function(){if(this.renderedElement&&this._renderedColumns&&this._renderedColumns.length>0)return this._renderedColumns[0]},n.prototype.getLastVisibleRenderedItem=function(){if(this.renderedElement&&this._renderedColumns&&this._renderedColumns.length>0)return this._renderedColumns[this._renderedColumns.length-1]},n.prototype.getColumnAt=function(e){return this._columns[e]},n.prototype.getItemAt=function(e){return this.getColumnAt(e)},n.prototype.getJsonTypeName=function(){return`ColumnSet`},n.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t);for(var n=0,r=0,i=0,o=this._columns;i<o.length;i++){var s=o[i];typeof s.width==`number`?n++:s.width===`stretch`&&r++}n>0&&r>0&&t.addFailure(this,a.ValidationEvent.Hint,p.Strings.hints.dontUseWeightedAndStrecthedColumnsInSameSet())},n.prototype.addColumn=function(e){if(!e.parent)this._columns.push(e),e.setParent(this);else throw Error(p.Strings.errors.columnAlreadyBelongsToAnotherSet())},n.prototype.removeItem=function(e){if(e instanceof Ae){var t=this._columns.indexOf(e);if(t>=0)return this._columns.splice(t,1),e.setParent(void 0),this.updateLayout(),!0}return!1},n.prototype.indexOf=function(e){return e instanceof Ae?this._columns.indexOf(e):-1},n.prototype.isLeftMostElement=function(e){return this._columns.indexOf(e)===0},n.prototype.isRightMostElement=function(e){return this._columns.indexOf(e)===this._columns.length-1},n.prototype.isTopElement=function(e){return this._columns.indexOf(e)>=0},n.prototype.isBottomElement=function(e){return this._columns.indexOf(e)>=0},n.prototype.getActionById=function(e){for(var t=void 0,n=0,r=this._columns;n<r.length&&(t=r[n].getActionById(e),!t);n++);return t},Object.defineProperty(n.prototype,`bleed`,{get:function(){return this.getBleed()},set:function(e){this.setBleed(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,`padding`,{get:function(){return this.getPadding()},set:function(e){this.setPadding(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,`selectAction`,{get:function(){return this._selectAction},set:function(e){this._selectAction=e},enumerable:!1,configurable:!0}),n}(De);e.ColumnSet=je;function Me(e){var t=e.getRootElement(),n=t&&t.onImageLoaded?t.onImageLoaded:qe.onImageLoaded;n&&n(e)}function Ne(e,t,n){var r=e.getRootElement(),i=r&&r.onAnchorClicked?r.onAnchorClicked:qe.onAnchorClicked;return i===void 0?!1:i(e,t,n)}function Pe(e){var t=e.parent?e.parent.getRootElement():void 0,n=t&&t.onExecuteAction?t.onExecuteAction:qe.onExecuteAction;e.prepareForExecution()&&n&&n(e)}function Fe(e,t){var n=e.parent?e.parent.getRootElement():void 0,r=n&&n.onInlineCardExpanded?n.onInlineCardExpanded:qe.onInlineCardExpanded;r&&r(e,t)}function Ie(e){var t=e.getRootElement(),n=t&&t.onInputValueChanged?t.onInputValueChanged:qe.onInputValueChanged;n&&n(e)}function Le(e,t){t===void 0&&(t=!0);var n=e.getRootElement();t&&n.updateLayout();var r=n,i=r&&r.onElementVisibilityChanged?r.onElementVisibilityChanged:qe.onElementVisibilityChanged;i!==void 0&&i(e)}function Re(e,t){t?(e.readOnly=!0,e.required=!0):(e.readOnly=!1,e.required=!1)}function ze(e,t){var n=e.parent?e.parent.getRootElement():void 0,r=n&&n.onDisplayOverflowActionMenu?n.onDisplayOverflowActionMenu:qe.onDisplayOverflowActionMenu;return r===void 0?!1:r(e.getActions(),t)}function Be(e,t){var n=e.parent?e.parent.getRootElement():void 0,r=n&&n.onRenderOverflowActions?n.onRenderOverflowActions:qe.onRenderOverflowActions;return r===void 0?!1:r(e.getActions(),t)}var Ve=function(e){t(n,e);function n(){var t=e.call(this)||this;return t._actionCollection=new Ce(t),t}return n.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n),this.parseActions(t,n)},n.prototype.parseActions=function(e,t){this._actionCollection.parse(e.actions,t)},n.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n),this._actionCollection.toJSON(t,`actions`,n)},n.prototype.internalRender=function(){var t=e.prototype.internalRender.call(this);if(t){var n=this._actionCollection.render(this.hostConfig.actions.actionsOrientation);return n&&(s.appendChild(t,g(this.hostConfig,{spacing:this.hostConfig.getEffectiveSpacing(this.hostConfig.actions.spacing)},a.Orientation.Horizontal)),s.appendChild(t,n)),this.renderIfEmpty||t.children.length>0?t:void 0}else return},n.prototype.getHasExpandedAction=function(){return this.renderedActionCount===0?!1:this.renderedActionCount===1?this._actionCollection.expandedAction!==void 0&&!this.hostConfig.actions.preExpandSingleShowCardAction:this._actionCollection.expandedAction!==void 0},Object.defineProperty(n.prototype,`renderedActionCount`,{get:function(){return this._actionCollection.renderedActionCount},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,`renderIfEmpty`,{get:function(){return!1},enumerable:!1,configurable:!0}),n.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this),this._actionCollection.releaseDOMResources()},n.prototype.getActionCount=function(){return this._actionCollection.getActionCount()},n.prototype.getActionAt=function(t){return t>=0&&t<this.getActionCount()?this._actionCollection.getActionAt(t):e.prototype.getActionAt.call(this,t)},n.prototype.getActionById=function(t){return this._actionCollection.getActionById(t)||e.prototype.getActionById.call(this,t)},n.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this._actionCollection&&this._actionCollection.validateProperties(t)},n.prototype.isLastElement=function(t){return e.prototype.isLastElement.call(this,t)&&this._actionCollection.getActionCount()===0},n.prototype.addAction=function(e){this._actionCollection.addAction(e)},n.prototype.clear=function(){e.prototype.clear.call(this),this._actionCollection.clear()},n.prototype.getAllInputs=function(t){t===void 0&&(t=!0);var n=e.prototype.getAllInputs.call(this,t);return t&&n.push.apply(n,this._actionCollection.getAllInputs(t)),n},n.prototype.getResourceInformation=function(){var t=e.prototype.getResourceInformation.call(this);return t.push.apply(t,this._actionCollection.getResourceInformation()),t},n.prototype.isBleedingAtBottom=function(){return this._actionCollection.renderedActionCount===0?e.prototype.isBleedingAtBottom.call(this):this._actionCollection.getActionCount()===1?this._actionCollection.expandedAction!==void 0&&!this.hostConfig.actions.preExpandSingleShowCardAction:this._actionCollection.expandedAction!==void 0},n.prototype.getForbiddenActionNames=function(){return[]},n.prototype.getElementById=function(t){var n=e.prototype.getElementById.call(this,t);return n||=this.getElementByIdFromAction(t),n},Object.defineProperty(n.prototype,`isStandalone`,{get:function(){return!1},enumerable:!1,configurable:!0}),n}(ke);e.ContainerWithActions=Ve;var He=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n,void 0)||this;return r.targetVersion=t,r.name=n,r}return n.prototype.parse=function(e,t,n){var r=n.parseAction(e.parent,t[this.name],[],!1);if(r!==void 0){if(r instanceof z)return r;n.logParseEvent(e,a.ValidationEvent.ActionTypeNotAllowed,p.Strings.errors.actionTypeNotAllowed(r.getJsonTypeName()))}n.logParseEvent(e,a.ValidationEvent.PropertyCantBeNull,p.Strings.errors.propertyMustBeSet(`action`))},n.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,n?n.toJSON(r):void 0,void 0,!0)},n}(d.PropertyDefinition);e.RefreshActionProperty=He;var Ue=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(r.prototype,`action`,{get:function(){return this.getValue(r.actionProperty)},set:function(e){this.setValue(r.actionProperty,e),e&&e.setParent(this.parent)},enumerable:!1,configurable:!0}),r.prototype.getSchemaKey=function(){return`RefreshDefinition`},r.actionProperty=new He(d.Versions.v1_4,`action`),r.userIdsProperty=new d.StringArrayProperty(d.Versions.v1_4,`userIds`),n([(0,d.property)(r.actionProperty)],r.prototype,`action`,null),n([(0,d.property)(r.userIdsProperty)],r.prototype,`userIds`,void 0),r}(d.SerializableObject);e.RefreshDefinition=Ue;var We=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getSchemaKey=function(){return`AuthCardButton`},r.typeProperty=new d.StringProperty(d.Versions.v1_4,`type`),r.titleProperty=new d.StringProperty(d.Versions.v1_4,`title`),r.imageProperty=new d.StringProperty(d.Versions.v1_4,`image`),r.valueProperty=new d.StringProperty(d.Versions.v1_4,`value`),n([(0,d.property)(r.typeProperty)],r.prototype,`type`,void 0),n([(0,d.property)(r.titleProperty)],r.prototype,`title`,void 0),n([(0,d.property)(r.imageProperty)],r.prototype,`image`,void 0),n([(0,d.property)(r.valueProperty)],r.prototype,`value`,void 0),r}(d.SerializableObject);e.AuthCardButton=We;var Ge=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getSchemaKey=function(){return`TokenExchangeResource`},r.idProperty=new d.StringProperty(d.Versions.v1_4,`id`),r.uriProperty=new d.StringProperty(d.Versions.v1_4,`uri`),r.providerIdProperty=new d.StringProperty(d.Versions.v1_4,`providerId`),n([(0,d.property)(r.idProperty)],r.prototype,`id`,void 0),n([(0,d.property)(r.uriProperty)],r.prototype,`uri`,void 0),n([(0,d.property)(r.providerIdProperty)],r.prototype,`providerId`,void 0),r}(d.SerializableObject);e.TokenExchangeResource=Ge;var Ke=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getSchemaKey=function(){return`Authentication`},r.textProperty=new d.StringProperty(d.Versions.v1_4,`text`),r.connectionNameProperty=new d.StringProperty(d.Versions.v1_4,`connectionName`),r.buttonsProperty=new d.SerializableObjectCollectionProperty(d.Versions.v1_4,`buttons`,We),r.tokenExchangeResourceProperty=new d.SerializableObjectProperty(d.Versions.v1_4,`tokenExchangeResource`,Ge,!0),n([(0,d.property)(r.textProperty)],r.prototype,`text`,void 0),n([(0,d.property)(r.connectionNameProperty)],r.prototype,`connectionName`,void 0),n([(0,d.property)(r.buttonsProperty)],r.prototype,`buttons`,void 0),n([(0,d.property)(r.tokenExchangeResourceProperty)],r.prototype,`tokenExchangeResource`,void 0),r}(d.SerializableObject);e.Authentication=Ke;var qe=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.designMode=!1,t}return Object.defineProperty(r.prototype,`refresh`,{get:function(){return this.getValue(r.refreshProperty)},set:function(e){this.setValue(r.refreshProperty,e),e&&(e.parent=this)},enumerable:!1,configurable:!0}),Object.defineProperty(r,`processMarkdown`,{get:function(){throw Error(p.Strings.errors.processMarkdownEventRemoved())},set:function(e){throw Error(p.Strings.errors.processMarkdownEventRemoved())},enumerable:!1,configurable:!0}),r.applyMarkdown=function(e){var t={didProcess:!1};if(r.onProcessMarkdown)r.onProcessMarkdown(e,t);else if(window.markdownit){var n=window.markdownit;t.outputHtml=n().render(e),t.didProcess=!0}else r._haveWarnedAboutNoMarkdownProcessing||=(console.warn(p.Strings.errors.markdownProcessingNotEnabled),!0);return t},r.prototype.isVersionSupported=function(){return this.bypassVersionCheck?!0:!(!this.version||!this.version.isValid||this.maxVersion.major<this.version.major||this.maxVersion.major===this.version.major&&this.maxVersion.minor<this.version.minor)},r.prototype.getDefaultSerializationContext=function(){return new Ye(this.version)},r.prototype.getItemsCollectionPropertyName=function(){return`body`},r.prototype.internalParse=function(t,n){this._fallbackCard=void 0;var i=n.parseElement(void 0,t.fallback,this.forbiddenChildElements(),!this.isDesignMode());i&&(this._fallbackCard=new r,this._fallbackCard.addItem(i)),e.prototype.internalParse.call(this,t,n)},r.prototype.internalToJSON=function(t,n){this.setValue(r.versionProperty,n.targetVersion),e.prototype.internalToJSON.call(this,t,n)},r.prototype.internalRender=function(){var t=e.prototype.internalRender.call(this);return o.GlobalSettings.useAdvancedCardBottomTruncation&&t&&t.style.removeProperty(`minHeight`),t},r.prototype.getHasBackground=function(e){return e===void 0&&(e=!1),!0},r.prototype.getDefaultPadding=function(){return new o.PaddingDefinition(a.Spacing.Padding,a.Spacing.Padding,a.Spacing.Padding,a.Spacing.Padding)},r.prototype.shouldSerialize=function(e){return!0},Object.defineProperty(r.prototype,`renderIfEmpty`,{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`bypassVersionCheck`,{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`allowCustomStyle`,{get:function(){return this.hostConfig.adaptiveCard&&this.hostConfig.adaptiveCard.allowCustomStyle},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`hasBackground`,{get:function(){return!0},enumerable:!1,configurable:!0}),r.prototype.getJsonTypeName=function(){return`AdaptiveCard`},r.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.getValue(_.typeNameProperty)!==`AdaptiveCard`&&t.addFailure(this,a.ValidationEvent.MissingCardType,p.Strings.errors.invalidCardType()),!this.bypassVersionCheck&&!this.version?t.addFailure(this,a.ValidationEvent.PropertyCantBeNull,p.Strings.errors.propertyMustBeSet(`version`)):this.isVersionSupported()||t.addFailure(this,a.ValidationEvent.UnsupportedCardVersion,p.Strings.errors.unsupportedCardVersion(this.version.toString(),this.maxVersion.toString()))},r.prototype.render=function(t){var n=this,r;return this.shouldFallback()&&this._fallbackCard?(this._fallbackCard.hostConfig=this.hostConfig,r=this._fallbackCard.render()):(r=e.prototype.render.call(this),r&&(r.classList.add(this.hostConfig.makeCssClassName(`ac-adaptiveCard`)),o.GlobalSettings.setTabIndexAtCardRoot&&(r.tabIndex=0),this.speak&&r.setAttribute(`aria-label`,this.speak),r.onmouseenter=function(e){n.updateInputsVisualState(!0)},r.onmouseleave=function(e){n.updateInputsVisualState(!1)},this.getRootElement().updateActionsEnabledState())),t&&(s.appendChild(t,r),this.updateLayout()),r},r.prototype.updateLayout=function(t){if(t===void 0&&(t=!0),e.prototype.updateLayout.call(this,t),o.GlobalSettings.useAdvancedCardBottomTruncation&&this.isDisplayed()){var n=this.hostConfig.getEffectiveSpacing(a.Spacing.Default);this.handleOverflow(this.renderedElement.offsetHeight-n)}},r.prototype.shouldFallback=function(){return e.prototype.shouldFallback.call(this)||!this.isVersionSupported()},Object.defineProperty(r.prototype,`hasVisibleSeparator`,{get:function(){return!1},enumerable:!1,configurable:!0}),r.schemaUrl=`http://adaptivecards.io/schemas/adaptive-card.json`,r.$schemaProperty=new d.CustomProperty(d.Versions.v1_0,`$schema`,function(e,t,n,i){return r.schemaUrl},function(e,t,n,i,a){a.serializeValue(n,t.name,r.schemaUrl)}),r.versionProperty=new d.CustomProperty(d.Versions.v1_0,`version`,function(e,t,n,r){var i=d.Version.parse(n[t.name],r);return i===void 0&&(i=d.Versions.latest,r.logParseEvent(e,a.ValidationEvent.InvalidPropertyValue,p.Strings.errors.invalidCardVersion(i.toString()))),i},function(e,t,n,r,i){r!==void 0&&i.serializeValue(n,t.name,r.toString())},d.Versions.v1_0),r.fallbackTextProperty=new d.StringProperty(d.Versions.v1_0,`fallbackText`),r.speakProperty=new d.StringProperty(d.Versions.v1_0,`speak`),r.refreshProperty=new d.SerializableObjectProperty(d.Versions.v1_4,`refresh`,Ue,!0),r.authenticationProperty=new d.SerializableObjectProperty(d.Versions.v1_4,`authentication`,Ke,!0),r._haveWarnedAboutNoMarkdownProcessing=!1,n([(0,d.property)(r.versionProperty)],r.prototype,`version`,void 0),n([(0,d.property)(r.fallbackTextProperty)],r.prototype,`fallbackText`,void 0),n([(0,d.property)(r.speakProperty)],r.prototype,`speak`,void 0),n([(0,d.property)(r.refreshProperty)],r.prototype,`refresh`,null),n([(0,d.property)(r.authenticationProperty)],r.prototype,`authentication`,void 0),r}(Ve);e.AdaptiveCard=qe;var Je=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.suppressStyle=!1,t}return n.prototype.getSchemaKey=function(){return`InlineAdaptiveCard`},n.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.remove(qe.$schemaProperty,qe.versionProperty)},n.prototype.getDefaultPadding=function(){return new o.PaddingDefinition(this.suppressStyle?a.Spacing.None:a.Spacing.Padding,a.Spacing.Padding,this.suppressStyle?a.Spacing.None:a.Spacing.Padding,a.Spacing.Padding)},Object.defineProperty(n.prototype,`bypassVersionCheck`,{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,`defaultStyle`,{get:function(){return this.suppressStyle?a.ContainerStyle.Default:this.hostConfig.actions.showCard.style?this.hostConfig.actions.showCard.style:a.ContainerStyle.Emphasis},enumerable:!1,configurable:!0}),n.prototype.render=function(t){var n=e.prototype.render.call(this,t);return n&&(n.setAttribute(`aria-live`,`polite`),n.removeAttribute(`tabindex`)),n},n}(qe),Ye=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t._forbiddenTypes=new Set,t}return n.prototype.internalParseCardObject=function(e,t,n,r,i,c){var l=this,u=void 0;if(t&&typeof t==`object`){var d=new Set;this._forbiddenTypes.forEach(function(e){d.add(e)}),n.forEach(function(e){l._forbiddenTypes.add(e)});var f=s.parseString(t.type);if(f&&this._forbiddenTypes.has(f))c(f,a.TypeErrorType.ForbiddenType);else{var p=!1;if(u=i(f),u?(u.setParent(e),u.parse(t,this),p=o.GlobalSettings.enableFallback&&r&&u.shouldFallback()):(p=o.GlobalSettings.enableFallback&&r,c(f,a.TypeErrorType.UnknownType)),p){var m=t.fallback;!m&&e&&e.setShouldFallback(!0),typeof m==`string`&&m.toLowerCase()===`drop`?u=void 0:typeof m==`object`&&(u=this.internalParseCardObject(e,m,n,!0,i,c))}}this._forbiddenTypes=d}return u},n.prototype.cardObjectParsed=function(e,t){e instanceof he&&this.onParseAction?this.onParseAction(e,t,this):e instanceof _&&this.onParseElement&&this.onParseElement(e,t,this)},n.prototype.shouldSerialize=function(e){return e instanceof he?this.actionRegistry.findByName(e.getJsonTypeName())!==void 0:e instanceof _?this.elementRegistry.findByName(e.getJsonTypeName())!==void 0:!0},n.prototype.parseCardObject=function(e,t,n,r,i,a){var o=new Set(n),s=this.internalParseCardObject(e,t,o,r,i,a);return s!==void 0&&this.cardObjectParsed(s,t),s},n.prototype.parseElement=function(e,t,n,r){var i=this;return this.parseCardObject(e,t,n,r,function(e){return i.elementRegistry.createInstance(e,i.targetVersion)},function(e,t){t===a.TypeErrorType.UnknownType?i.logParseEvent(void 0,a.ValidationEvent.UnknownElementType,p.Strings.errors.unknownElementType(e)):i.logParseEvent(void 0,a.ValidationEvent.ElementTypeNotAllowed,p.Strings.errors.elementTypeNotAllowed(e))})},n.prototype.parseAction=function(e,t,n,r){var i=this;return this.parseCardObject(e,t,n,r,function(e){return i.actionRegistry.createInstance(e,i.targetVersion)},function(e,t){t===a.TypeErrorType.UnknownType?i.logParseEvent(void 0,a.ValidationEvent.UnknownActionType,p.Strings.errors.unknownActionType(e)):i.logParseEvent(void 0,a.ValidationEvent.ActionTypeNotAllowed,p.Strings.errors.actionTypeNotAllowed(e))})},Object.defineProperty(n.prototype,`elementRegistry`,{get:function(){return this._elementRegistry??f.GlobalRegistry.elements},enumerable:!1,configurable:!0}),n.prototype.setElementRegistry=function(e){this._elementRegistry=e},Object.defineProperty(n.prototype,`actionRegistry`,{get:function(){return this._actionRegistry??f.GlobalRegistry.actions},enumerable:!1,configurable:!0}),n.prototype.setActionRegistry=function(e){this._actionRegistry=e},n}(d.BaseSerializationContext);e.SerializationContext=Ye,f.GlobalRegistry.defaultElements.register(`Container`,ke),f.GlobalRegistry.defaultElements.register(`TextBlock`,b),f.GlobalRegistry.defaultElements.register(`RichTextBlock`,S,d.Versions.v1_2),f.GlobalRegistry.defaultElements.register(`TextRun`,x,d.Versions.v1_2),f.GlobalRegistry.defaultElements.register(`Image`,E),f.GlobalRegistry.defaultElements.register(`ImageSet`,k),f.GlobalRegistry.defaultElements.register(`Media`,re,d.Versions.v1_1),f.GlobalRegistry.defaultElements.register(`FactSet`,w),f.GlobalRegistry.defaultElements.register(`ColumnSet`,je),f.GlobalRegistry.defaultElements.register(`ActionSet`,we,d.Versions.v1_2),f.GlobalRegistry.defaultElements.register(`Input.Text`,ae),f.GlobalRegistry.defaultElements.register(`Input.Date`,fe),f.GlobalRegistry.defaultElements.register(`Input.Time`,me),f.GlobalRegistry.defaultElements.register(`Input.Number`,de),f.GlobalRegistry.defaultElements.register(`Input.ChoiceSet`,le),f.GlobalRegistry.defaultElements.register(`Input.Toggle`,oe),f.GlobalRegistry.defaultActions.register(B.JsonTypeName,B),f.GlobalRegistry.defaultActions.register(_e.JsonTypeName,_e),f.GlobalRegistry.defaultActions.register(xe.JsonTypeName,xe),f.GlobalRegistry.defaultActions.register(V.JsonTypeName,V,d.Versions.v1_2),f.GlobalRegistry.defaultActions.register(z.JsonTypeName,z,d.Versions.v1_4)}))(),Zs=Ps(),Qs=e=>{let t;return t=e.iconUrl?(0,d.jsx)(p.Button,{className:e.className,onClick:e.actionClickHandler,appearance:`primary`,children:(0,d.jsxs)(`div`,{style:{display:`flex`,flexDirection:e.iconPlacement===Zs.ActionIconPlacement.LeftOfTitle?`row`:`column`,justifyContent:`center`,alignItems:`center`},children:[(0,d.jsx)(`img`,{src:e.iconUrl,style:{width:e.iconSize,height:e.iconSize,flexShrink:0,marginRight:e.iconPlacement===Zs.ActionIconPlacement.LeftOfTitle?4:0,marginBottom:e.iconPlacement===Zs.ActionIconPlacement.LeftOfTitle?0:4},alt:``}),(0,d.jsx)(`span`,{children:e.text})]})}):e.style.toLocaleLowerCase().trim()===`positive`||e.style.toLocaleLowerCase().trim()===`destructive`?(0,d.jsx)(p.Button,{className:e.className,onClick:e.actionClickHandler,appearance:`primary`,children:e.text}):(0,d.jsx)(p.Button,{className:e.className,onClick:e.actionClickHandler,children:e.text}),t},$s=(e,t,n,r,i,a,o,s)=>{let c=document.createElement(`div`);c.className=`fluentUI`;let l=Ns(c);l.render((0,d.jsx)(p.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,d.jsx)(p.FluentProvider,{theme:s,children:(0,d.jsx)(Qs,{text:e,className:n,iconUrl:t,iconPlacement:r,iconSize:i,actionClickHandler:a,style:o,theme:s})})}));let u=new MutationObserver(e=>{for(let t of e)for(let e of Array.from(t.removedNodes))if(e===c||c.contains(e)){l.unmount(),u.disconnect();return}});if(c.parentNode)u.observe(c.parentNode,{childList:!0});else{let e=new MutationObserver(()=>{c.parentNode&&(u.observe(c.parentNode,{childList:!0}),e.disconnect())});e.observe(document.body,{childList:!0,subtree:!0})}return c},ec=class extends Xs.ExecuteAction{updateCssClasses(){}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.hostConfig.hostCapabilities.getCustomProperty(Es),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=$s(this.title??``,this.iconUrl||``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}},tc=class extends Xs.OpenUrlAction{updateCssClasses(){}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.hostConfig.hostCapabilities.getCustomProperty(Es),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=$s(this.title??``,this.iconUrl||``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}},nc=class extends Xs.ShowCardAction{updateCssClasses(){if(this.renderedElement){let e=this.state===1;this.renderedElement.setAttribute(`aria-expanded`,e.toString())}}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=$s(this.title||`Default Title`,this.iconUrl||``,this.iconUrl??``,t.iconPlacement,t.iconSize,this.actionClickHandler,this.style)}},rc=class extends Xs.SubmitAction{updateCssClasses(){}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.hostConfig.hostCapabilities.getCustomProperty(Es),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=$s(this.title??``,this.iconUrl??``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}},ic=class extends Xs.ToggleVisibilityAction{updateCssClasses(){if(this.renderedElement){let e=this.state===1;this.renderedElement.setAttribute(`aria-expanded`,e.toString())}}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.hostConfig.hostCapabilities.getCustomProperty(Es),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=$s(this.title??``,this.iconUrl??``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}};function ac(e){e.register(`Action.Submit`,rc),e.register(`Action.OpenUrl`,tc),e.register(`Action.ShowCard`,nc),e.register(`Action.ToggleVisibility`,ic),e.register(`Action.Execute`,ec)}var oc=e=>{let t=document.createElement(`div`);return Ns(t).render(e()),t};function Z(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function Q(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var sc=class extends T.Input{static valueProperty=new T.StringProperty(T.Versions.v1_5,`value`);static choicesProperty=new T.SerializableObjectCollectionProperty(T.Versions.v1_5,`choices`,T.Choice);static styleProperty=new T.ValueSetProperty(T.Versions.v1_5,`style`,[{value:`compact`},{value:`expanded`},{value:`filtered`,targetVersion:T.Versions.v1_5}],`compact`);static isMultiSelectProperty=new T.BoolProperty(T.Versions.v1_5,`isMultiSelect`,!1);static placeholderProperty=new T.StringProperty(T.Versions.v1_5,`placeholder`);static wrapProperty=new T.BoolProperty(T.Versions.v1_5,`wrap`,!1);defaultValue;style;get isCompact(){return!this.style||this.style===`compact`}set isCompact(e){this.style=e?void 0:`expanded`}isMultiSelect=!1;placeholder;wrap=!1;choices=[];element;refControl;selectedValues=[];defaultSelectedValues=[];updateSelectedValues=(e,t,n)=>{t?n?this.selectedValues.includes(e)||this.selectedValues.push(e):this.removeItemFromArray(this.selectedValues,e):this.selectedValues=[e]};removeItemFromArray=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)};internalRender(){let e=Os(this.hostConfig),t=this.choices?this.choices.map(e=>({key:e.value,text:e.title})):[];this.defaultValue&&(this.defaultSelectedValues=this.defaultValue.split(this.hostConfig.choiceSetInputValueSeparator),this.selectedValues=[...this.defaultSelectedValues]);let n=()=>{let[e,n]=u.useState(this.selectedValues);return u.useEffect(()=>{n(this.selectedValues)},[this.selectedValues.join(this.hostConfig.choiceSetInputValueSeparator)]),(0,d.jsx)(p.Combobox,{style:{width:`100%`},placeholder:this.placeholder,multiselect:this.isMultiSelect,value:this.isMultiSelect?e.map(e=>t.find(t=>t.key===e)?.text).join(this.hostConfig.choiceSetInputValueSeparator):t.find(t=>e[0]===t.key)?.text,selectedOptions:this.isMultiSelect?e:[e[0]],autoComplete:this.style===`filtered`?`on`:`off`,onOptionSelect:(e,t)=>{if(this.isMultiSelect)n(t.selectedOptions),this.selectedValues=t.selectedOptions;else{let e=t.optionValue??``;n([e]),this.selectedValues=[e]}this.valueChanged()},ref:e=>{this.refControl=e},children:t.map(e=>(0,d.jsx)(p.Option,{value:e.key,children:e.text??``},e.key))})};return this.element=oc(()=>(0,d.jsxs)(d.Fragment,{children:[!this.isMultiSelect&&this.style===`expanded`&&(0,d.jsx)(p.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,d.jsx)(p.FluentProvider,{theme:e,children:(0,d.jsx)(p.RadioGroup,{defaultValue:this.defaultValue,onChange:(e,t)=>{this.updateSelectedValues(t.value,this.isMultiSelect,!0),this.valueChanged()},ref:e=>{this.refControl=e},children:this.choices.map((e,t)=>(0,d.jsx)(p.Radio,{value:e.value,label:e.title,style:{marginTop:t>0?this.hostConfig.spacing.default:0}},e.value))})})}),this.isMultiSelect&&this.style===`expanded`&&(0,d.jsx)(`div`,{style:{display:`flex`,gap:this.hostConfig.spacing.default},children:this.choices.map((t,n)=>{let r=this.defaultSelectedValues.indexOf(t.value??``)>-1;return(0,d.jsx)(p.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,d.jsx)(p.FluentProvider,{theme:e,children:(0,d.jsx)(p.Checkbox,{label:t.title,defaultChecked:r,onChange:(e,n)=>{this.updateSelectedValues(t.value??``,this.isMultiSelect,!!n),this.valueChanged()},ref:e=>{n===0&&(this.refControl=e)}})})},t.value)})}),(this.style===`compact`||this.style===`filtered`)&&(0,d.jsx)(p.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,d.jsx)(p.FluentProvider,{theme:e,children:(0,d.jsx)(n,{})})})]})),this.element.style.width=`100%`,this.element}getJsonTypeName(){return`Input.ChoiceSet`}focus(){this.refControl&&this.refControl.focus&&this.refControl.focus()}internalValidateProperties(e){super.internalValidateProperties(e),this.choices.length===0&&e.addFailure(this,T.ValidationEvent.CollectionCantBeEmpty,T.Strings.errors.choiceSetMustHaveAtLeastOneChoice());for(let t of this.choices)(!t.title||!t.value)&&e.addFailure(this,T.ValidationEvent.PropertyCantBeNull,T.Strings.errors.choiceSetChoicesMustHaveTitleAndValue())}isSet(){return!!this.value}isValid(){return this.value?!0:!this.isRequired}get value(){if(this.selectedValues)return this.selectedValues.join(this.hostConfig.choiceSetInputValueSeparator)}};Q([(0,T.property)(sc.valueProperty),Z(`design:type`,String)],sc.prototype,`defaultValue`,void 0),Q([(0,T.property)(sc.styleProperty),Z(`design:type`,String)],sc.prototype,`style`,void 0),Q([(0,T.property)(sc.isMultiSelectProperty),Z(`design:type`,Boolean)],sc.prototype,`isMultiSelect`,void 0),Q([(0,T.property)(sc.placeholderProperty),Z(`design:type`,String)],sc.prototype,`placeholder`,void 0),Q([(0,T.property)(sc.wrapProperty),Z(`design:type`,Boolean)],sc.prototype,`wrap`,void 0),Q([(0,T.property)(sc.choicesProperty),Z(`design:type`,Array)],sc.prototype,`choices`,void 0);var cc=class extends T.Input{static valueProperty=new T.StringProperty(T.Versions.v1_5,`value`);static placeholderProperty=new T.StringProperty(T.Versions.v1_5,`placeholder`);static minProperty=new T.StringProperty(T.Versions.v1_0,`min`);static maxProperty=new T.StringProperty(T.Versions.v1_0,`max`);defaultValue;min;max;placeholder;_value;refControl;element;internalRender(){let e=Os(this.hostConfig);return this.element=oc(()=>(0,d.jsx)(p.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,d.jsx)(p.FluentProvider,{theme:e,children:(0,d.jsx)(O.DatePicker,{id:this.id,placeholder:this.placeholder,minDate:this.convertStringToDate(this.min),maxDate:this.convertStringToDate(this.max),onSelectDate:e=>{this._value=e??void 0,this.valueChanged()},ref:e=>{this.refControl=e},style:{width:`100%`}})})})),this.element.style.width=`100%`,this.element}convertStringToDate(e){if(e)try{let t=new Date(e);return isNaN(t.getTime())?void 0:t}catch{return}}getJsonTypeName(){return`Input.Date`}focus(){this.refControl?.focus()}updateInputControlAriaLabelledBy(){if(this.element){let e=this.getAllLabelIds().join(` `);e?this.element.setAttribute(`aria-labelledby`,e):this.element.removeAttribute(`aria-labelledby`)}}isSet(){return!!this.value}isValid(){if(!this.value)return!this.isRequired;let e=new Date(this.value),t=!0;if(this.min){let n=new Date(this.min);t&&=e>=n}if(this.max){let n=new Date(this.max);t&&=e<=n}return t}get value(){if(this._value){let e=this._value.getTimezoneOffset();return new Date(this._value.getTime()-e*60*1e3).toISOString().split(`T`)[0]}}};Q([(0,T.property)(cc.valueProperty),Z(`design:type`,String)],cc.prototype,`defaultValue`,void 0),Q([(0,T.property)(cc.minProperty),Z(`design:type`,String)],cc.prototype,`min`,void 0),Q([(0,T.property)(cc.maxProperty),Z(`design:type`,String)],cc.prototype,`max`,void 0),Q([(0,T.property)(cc.placeholderProperty),Z(`design:type`,String)],cc.prototype,`placeholder`,void 0);var lc=class extends T.Input{static valueProperty=new T.NumProperty(T.Versions.v1_5,`value`);static placeholderProperty=new T.StringProperty(T.Versions.v1_5,`placeholder`);static minProperty=new T.NumProperty(T.Versions.v1_0,`min`);static maxProperty=new T.NumProperty(T.Versions.v1_0,`max`);defaultValue;min;max;placeholder;refControl=null;element;internalRender(){let e=Os(this.hostConfig);return this.element=oc(()=>(0,d.jsx)(p.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,d.jsx)(p.FluentProvider,{theme:e,children:(0,d.jsx)(p.SpinButton,{style:{width:`calc(100% - 10px)`},id:this.id,defaultValue:this.defaultValue===void 0?void 0:this.defaultValue,placeholder:this.placeholder,min:this.min,max:this.max,onChange:()=>{this.valueChanged()},ref:e=>{this.refControl=e}})})})),this.element.style.width=`100%`,this.element}getJsonTypeName(){return`Input.Number`}focus(){this.refControl?.focus()}updateInputControlAriaLabelledBy(){if(this.element){let e=this.getAllLabelIds().join(` `);e?this.element.setAttribute(`aria-labelledby`,e):this.element.removeAttribute(`aria-labelledby`)}}isSet(){let e=this.value;return e!==void 0&&!isNaN(e)}isValid(){let e=this.value;if(e===void 0)return!this.isRequired;let t=!0;return this.min!==void 0&&(t&&=e>=this.min),this.max!==void 0&&(t&&=e<=this.max),t}get value(){return this.refControl?Number(this.refControl.value):void 0}};Q([(0,T.property)(lc.valueProperty),Z(`design:type`,Number)],lc.prototype,`defaultValue`,void 0),Q([(0,T.property)(lc.minProperty),Z(`design:type`,Number)],lc.prototype,`min`,void 0),Q([(0,T.property)(lc.maxProperty),Z(`design:type`,Number)],lc.prototype,`max`,void 0),Q([(0,T.property)(lc.placeholderProperty),Z(`design:type`,String)],lc.prototype,`placeholder`,void 0);var uc=e=>{let{ariaLabel:t,iconProps:n,styles:r,className:i,onClick:a,...o}=e;return(0,d.jsx)(p.Button,{appearance:`transparent`,"aria-label":t,className:i,onClick:a,style:r,...o,children:(0,d.jsx)(`img`,{src:n.src,alt:t,style:{height:n.height||`100%`,width:n.width||`auto`}})})},dc={marginLeft:8},fc,pc,mc=class extends T.Input{static valueProperty=new T.StringProperty(T.Versions.v1_0,`value`);static maxLengthProperty=new T.NumProperty(T.Versions.v1_0,`maxLength`);static isMultilineProperty=new T.BoolProperty(T.Versions.v1_0,`isMultiline`,!1);static placeholderProperty=new T.StringProperty(T.Versions.v1_0,`placeholder`);static styleProperty=new T.EnumProperty(T.Versions.v1_0,`style`,T.InputTextStyle,T.InputTextStyle.Text);static inlineActionProperty=new T.ActionProperty(T.Versions.v1_0,`inlineAction`,[`Action.ShowCard`]);static regexProperty=new T.StringProperty(T.Versions.v1_3,`regex`,!0);defaultValue;maxLength;isMultiline=!1;placeholder;style=T.InputTextStyle.Text;inlineAction;regex;refControl=null;element;_value=this.defaultValue||``;internalRender(){let e=Os(this.hostConfig);return this.element=oc(()=>(0,d.jsx)(p.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,d.jsx)(p.FluentProvider,{theme:e,children:this.isMultiline?(0,d.jsx)(p.Textarea,{resize:`vertical`,style:{width:`100%`},id:this.id,defaultValue:this.defaultValue,placeholder:this.placeholder,maxLength:this.maxLength,onChange:(e,t)=>{this._value=t.value,this.valueChanged()},onKeyDown:this.handleKeyDown,ref:e=>{this.refControl=e}}):(0,d.jsx)(p.Input,{id:this.id,style:{width:`100%`},type:T.InputTextStyle[this.style].toLowerCase(),defaultValue:this.defaultValue,placeholder:this.placeholder,maxLength:this.maxLength,onChange:(e,t)=>{this._value=t.value,this.valueChanged()},onKeyDown:this.handleKeyDown,ref:e=>{this.refControl=e?e.inputElement:null}})})})),this.element.style.width=`100%`,this.element}handleKeyDown=e=>{e.key===`Enter`&&this.inlineAction&&this.inlineAction?.execute()};overrideInternalRender(){let e=super.overrideInternalRender();return this.inlineAction&&this.inputControlContainerElement.appendChild(this.buildInlineActionButton()),e||document.createElement(`div`)}buildInlineActionButton=()=>oc(this.inlineAction?.iconUrl?this.inlineIconActionButton:this.buildTextOnlyInlineActionActionButton);inlineActionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.inlineAction?.execute()};inlineIconActionButton=()=>(0,d.jsx)(p.FluentProvider,{theme:this.hostConfig.hostCapabilities.getCustomProperty(Es),children:(0,d.jsx)(uc,{ariaLabel:this.inlineAction?.title||`Inline action`,className:this.hostConfig.makeCssClassName(`ac-inlineActionButton`,`iconOnly`),iconProps:{src:this.inlineAction?.iconUrl??``},onClick:this.inlineActionClickHandler,styles:dc})});buildTextOnlyInlineActionActionButton=()=>{let e=this.hostConfig.hostCapabilities.getCustomProperty(Es);return(0,d.jsx)(p.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,d.jsx)(p.FluentProvider,{theme:e,children:(0,d.jsx)(p.Button,{appearance:`primary`,className:this.hostConfig.makeCssClassName(`ac-inlineActionButton`,`textOnly`),onClick:this.inlineActionClickHandler,style:dc,children:this.inlineAction?.title??``})})})};getJsonTypeName(){return`Input.Text`}focus(){this.refControl?.focus()}updateInputControlAriaLabelledBy(){if(this.element){let e=this.getAllLabelIds().join(` `);e?this.element.setAttribute(`aria-labelledby`,e):this.element.removeAttribute(`aria-labelledby`)}}getActionById(e){let t=super.getActionById(e);if(!t&&this.inlineAction&&(t=this.inlineAction.getActionById(e)),!t)throw Error(`Action with id '${e}' not found.`);return t}isSet(){return!!this.value}isValid(){return this.value?this.regex?new RegExp(this.regex,`g`).test(this.value):!0:!this.isRequired}get value(){if(this._value)return this._value}};Q([(0,T.property)(mc.valueProperty),Z(`design:type`,String)],mc.prototype,`defaultValue`,void 0),Q([(0,T.property)(mc.maxLengthProperty),Z(`design:type`,Number)],mc.prototype,`maxLength`,void 0),Q([(0,T.property)(mc.isMultilineProperty),Z(`design:type`,Boolean)],mc.prototype,`isMultiline`,void 0),Q([(0,T.property)(mc.placeholderProperty),Z(`design:type`,String)],mc.prototype,`placeholder`,void 0),Q([(0,T.property)(mc.styleProperty),Z(`design:type`,typeof(fc=T.InputTextStyle!==void 0&&T.InputTextStyle)==`function`?fc:Object)],mc.prototype,`style`,void 0),Q([(0,T.property)(mc.inlineActionProperty),Z(`design:type`,typeof(pc=T.Action!==void 0&&T.Action)==`function`?pc:Object)],mc.prototype,`inlineAction`,void 0),Q([(0,T.property)(mc.regexProperty),Z(`design:type`,String)],mc.prototype,`regex`,void 0);var hc=e=>{let{id:t,defaultTime:n,minTime:r,maxTime:i,placeholder:a,theme:o,onTimeChange:s}=e,[c,l]=u.useState(n),[f,m]=u.useState(n?(0,k.formatDateToTimeString)(n??new Date):``);return(0,d.jsx)(p.IdPrefixProvider,{value:t,children:(0,d.jsx)(p.FluentProvider,{theme:o,children:(0,d.jsx)(k.TimePicker,{style:{width:`100%`},expandIcon:(0,d.jsx)(y.ClockRegular,{}),id:t,freeform:!0,min:r?(0,k.formatDateToTimeString)(r):void 0,max:i?(0,k.formatDateToTimeString)(i):void 0,placeholder:a,value:c?(0,k.formatDateToTimeString)(c):f,onTimeChange:(e,t)=>{let n=t.selectedTime??void 0,r=t.selectedTimeText??``;l(n),m(r),s&&n&&s(n,r)},onInput:e=>{m(e.target.value)}})})})},gc=class e extends T.Input{static convertTimeStringToDate(e){return new Date(`1973-09-04T`+e+`:00Z`)}static valueProperty=new T.TimeProperty(T.Versions.v1_0,`value`);static placeholderProperty=new T.StringProperty(T.Versions.v1_0,`placeholder`);static minProperty=new T.TimeProperty(T.Versions.v1_0,`min`);static maxProperty=new T.TimeProperty(T.Versions.v1_0,`max`);defaultValue;min;max;placeholder;_time;element;internalRender(){let t=Os(this.hostConfig),n=this.defaultValue?e.convertTimeStringToDate(this.defaultValue):void 0,r=this.min?e.convertTimeStringToDate(this.min):void 0,i=this.max?e.convertTimeStringToDate(this.max):void 0;return this.element=oc(()=>(0,d.jsx)(hc,{id:(0,T.generateUniqueId)(),defaultTime:n,minTime:r,maxTime:i,placeholder:this.placeholder,theme:t,onTimeChange:e=>{this._time=e,this.valueChanged()}})),this.element.style.width=`100%`,this.element}getJsonTypeName(){return`Input.Time`}focus(){}updateInputControlAriaLabelledBy(){if(this.element){let e=this.getAllLabelIds().join(` `);e?this.element.setAttribute(`aria-labelledby`,e):this.element.removeAttribute(`aria-labelledby`)}}isSet(){return!!this.value}isValid(){if(!this.value)return!this.isRequired;if(!this._time)return!1;let t=!0;if(this.min){let n=e.convertTimeStringToDate(this.min);t&&=this._time>=n}if(this.max){let n=e.convertTimeStringToDate(this.max);t&&=this._time<=n}return t}get value(){return this._time?(0,k.formatDateToTimeString)(this._time):void 0}};Q([(0,T.property)(gc.valueProperty),Z(`design:type`,String)],gc.prototype,`defaultValue`,void 0),Q([(0,T.property)(gc.minProperty),Z(`design:type`,String)],gc.prototype,`min`,void 0),Q([(0,T.property)(gc.maxProperty),Z(`design:type`,String)],gc.prototype,`max`,void 0),Q([(0,T.property)(gc.placeholderProperty),Z(`design:type`,String)],gc.prototype,`placeholder`,void 0);var _c=class extends T.Input{static valueProperty=new T.StringProperty(T.Versions.v1_5,`value`);static titleProperty=new T.StringProperty(T.Versions.v1_5,`title`);static valueOnProperty=new T.StringProperty(T.Versions.v1_5,`valueOn`,!0,void 0,`true`,e=>`true`);static valueOffProperty=new T.StringProperty(T.Versions.v1_5,`valueOff`,!0,void 0,`false`,e=>`false`);static wrapProperty=new T.BoolProperty(T.Versions.v1_2,`wrap`,!1);defaultValue;title;valueOn=`true`;valueOff=`false`;wrap=!1;_value;refControl=null;element;internalRender(){let e=Os(this.hostConfig);return this.element=oc(()=>(0,d.jsx)(p.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,d.jsx)(p.FluentProvider,{theme:e,style:{backgroundColor:`transparent`},children:(0,d.jsx)(p.Switch,{id:this.id,label:this.title,onChange:(e,t)=>{this._value=t.checked,this.valueChanged()},defaultChecked:this.defaultValue===this.valueOn,style:{marginBottom:0,marginTop:0},ref:e=>{this.refControl=e}})})})),this.element.style.width=`100%`,this.element}get isNullable(){return!1}getJsonTypeName(){return`Input.Toggle`}focus(){this.refControl?.focus()}updateInputControlAriaLabelledBy(){if(this.element){let e=this.getAllLabelIds().join(` `);e?this.element.setAttribute(`aria-labelledby`,e):this.element.removeAttribute(`aria-labelledby`)}}isSet(){return this.isRequired?this.value===this.valueOn:!!this.value}get value(){return this._value!==null&&this._value!==void 0?this._value?this.valueOn:this.valueOff:this.isRequired?void 0:this.valueOff}};Q([(0,T.property)(_c.valueProperty),Z(`design:type`,String)],_c.prototype,`defaultValue`,void 0),Q([(0,T.property)(_c.titleProperty),Z(`design:type`,String)],_c.prototype,`title`,void 0),Q([(0,T.property)(_c.valueOnProperty),Z(`design:type`,String)],_c.prototype,`valueOn`,void 0),Q([(0,T.property)(_c.valueOffProperty),Z(`design:type`,String)],_c.prototype,`valueOff`,void 0),Q([(0,T.property)(_c.wrapProperty),Z(`design:type`,Boolean)],_c.prototype,`wrap`,void 0);function vc(e){e.register(`Input.Text`,mc),e.register(`Input.Number`,lc),e.register(`Input.Time`,gc),e.register(`Input.Date`,cc),e.register(`Input.Toggle`,_c),e.register(`Input.ChoiceSet`,sc)}var yc=e=>{switch(e){case Cs.SharePoint:return p.webLightTheme;case Cs.Teams:return p.teamsLightTheme;case Cs.TeamsDark:return p.teamsDarkTheme;case Cs.TeamsHighContrast:return p.teamsHighContrastTheme;default:return p.webLightTheme}},bc=e=>{let t=(0,u.useRef)(null),{log:n,error:r,LogLevel:i}=L(),a=(0,u.useRef)(null),o=(0,u.useRef)(null),s=(0,u.useRef)(null);(0,u.useEffect)(()=>{As((e,t)=>r(e,t))},[]),(0,u.useEffect)(()=>{a.current=null,a.current=new T.AdaptiveCard,o.current=new T.SerializationContext},[e]);let c=(0,u.useCallback)(t=>{if(e.onInvokeAction){let n={type:``,title:``},r=t.getJsonTypeName();switch(r){case T.OpenUrlAction.JsonTypeName:{let e=t;n={type:r,title:e.title,url:e.url}}break;case T.SubmitAction.JsonTypeName:{let e=t;n={type:r,title:e.title,data:e.data}}break;case T.ExecuteAction.JsonTypeName:{let e=t;n={type:r,title:e.title,data:e.data,verb:e.verb}}break;default:n={type:r,title:`Unknown Action`};break}e.onInvokeAction(n)}},[e.onInvokeAction]);return(0,u.useEffect)(()=>{let t,r=e.themeType;s.current=null,r||=Cs.SharePoint,t=e.theme?e.theme:yc(r);let o=ks(r,t),c=o.hostConfig;n(`hostconfig:`,i.Info,c),s.current=t,a.current&&(a.current.hostConfig=o.hostConfig),e.onUpdateHostCapabilities&&e.onUpdateHostCapabilities(c.hostCapabilities)},[e]),(0,u.useEffect)(()=>{a.current&&(a.current.onExecuteAction=c)},[e,c]),(0,u.useEffect)(()=>{let t=new T.CardObjectRegistry,n=new T.CardObjectRegistry;T.GlobalRegistry.populateWithDefaultElements(t),T.GlobalRegistry.populateWithDefaultActions(n),vc(t),ac(n),e.onSetCustomElements&&e.onSetCustomElements(t),e.onSetCustomActions&&e.onSetCustomActions(n);let r=o.current;r&&r.setElementRegistry(t),r&&r.setActionRegistry(n)},[e]),(0,u.useEffect)(()=>{for(;t?.current?.firstChild;)t.current.lastChild&&t.current.removeChild(t.current.lastChild);let n=t.current;if(!n)return;let r=a.current;try{let t=new A.Template(e.card),i=js(e.data??{$root:{}},yc(e.themeType??Cs.SharePoint),e.context),a=t.expand(i);if(r&&r.parse(a,o.current??void 0),r){let e=r.render();e&&e.outerHTML!==n.innerHTML&&e.outerHTML!==n.innerHTML&&(n.innerHTML=``,n.appendChild(e))}}catch(t){e.onError&&e.onError(t)}},[e,yc]),(0,d.jsx)(p.IdPrefixProvider,{value:`adaptiveCardHost`,children:(0,d.jsx)(p.FluentProvider,{theme:s.current?s.current:yc(e.themeType??Cs.SharePoint),children:(0,d.jsx)(`div`,{ref:t,className:`${e.className?e.className:``}`,style:e.style})})})},xc=({card:e,data:t})=>{let n=(0,u.useRef)(null);return(0,u.useEffect)(()=>{if(!n.current)return;n.current.innerHTML=``;let r=new A.Template(e).expand({$root:t}),i=new T.AdaptiveCard;i?.parse(r);let a=i.render();a&&n.current.appendChild(a)},[e,t]),(0,d.jsx)(`div`,{ref:n})},Sc=Fa`
181
+ `,vs=({data:e,flagClass:t,onClick:n})=>(0,d.jsx)(p.Tooltip,{relationship:`label`,content:(0,d.jsxs)(p.Card,{className:gs,children:[(0,d.jsx)(`img`,{src:e.imageUrl,alt:e.name,className:hs}),(0,d.jsx)(p.Text,{className:_s,children:e.name})]}),withArrow:!0,positioning:`above`,children:(0,d.jsx)(`img`,{src:e.imageUrl,alt:e.name,className:t||hs,onClick:()=>n?.(e)})}),ys=e=>{let[t,n]=(0,u.useState)(void 0),{error:r}=L();return(0,u.useEffect)(()=>{let t=!1;return(async()=>{try{let r=await(await fetch(e)).json();t||n(r)}catch(e){r(`Error loading style:`,e instanceof Error?e:void 0)}})(),()=>{t=!0}},[e]),t},bs=e=>({defaultMapStyles:(0,u.useMemo)(()=>({width:`100%`,height:`600px`,fontFamily:p.tokens.fontFamilyBase}),[]),flagClass:(0,u.useMemo)(()=>(0,_.css)({width:`32px`,height:`20px`,border:`1px solid ${p.tokens.colorNeutralBackground1}`,borderRadius:p.tokens.borderRadiusSmall,boxShadow:p.tokens.shadow4,transition:`transform 0.1s ease`}),[])}),xs=`https://api.maptiler.com/maps/topo-v2/style.json?key=fYK99t1qjkKbINH0saMD`,Ss=({data:e,onClick:n,mapStyleUrl:r=xs,style:i,fitPadding:a=20})=>{us();let o=(0,u.useRef)(null),s=ys(r),c=e,{defaultMapStyles:l,flagClass:f}=bs(),m=t.b();return(0,u.useEffect)(()=>{if(!o.current||c.length===0)return;let e=c.map(e=>e.coordinates[0]),t=c.map(e=>e.coordinates[1]);o.current.getMap().fitBounds([[Math.min(...e),Math.min(...t)],[Math.max(...e),Math.max(...t)]],{padding:a})},[c,a]),s?(0,d.jsxs)(Jo,{ref:o,initialViewState:{longitude:0,latitude:20,zoom:1},style:{...i??l},mapStyle:s,pixelRatio:window.devicePixelRatio,children:[(0,d.jsx)(ms,{mapRef:o,initialViewState:{longitude:0,latitude:20,zoom:1}}),c.map(e=>(0,d.jsx)($o,{longitude:e.coordinates[0],latitude:e.coordinates[1],anchor:`center`,children:(0,d.jsx)(vs,{data:e,onClick:n,flagClass:f})},e.id))]}):(0,d.jsx)(p.Text,{children:m.loadingMapStyle})},Cs=function(e){return e[e.SharePoint=0]=`SharePoint`,e[e.Teams=1]=`Teams`,e[e.TeamsDark=2]=`TeamsDark`,e[e.TeamsHighContrast=3]=`TeamsHighContrast`,e}({}),ws=(e,t)=>{let n=(0,E.create)();n.put(`.${t}-ac-container:focus`,{outline:`none !important`}),n.put(`.${t}-ac-adaptiveCard:focus`,{outline:`none !important`}),n.put(`.${t}-ac-pushButton`,{overflow:`hidden`,textOverflow:`ellipsis`,textAlign:`center`,verticalAlign:`middle`,cursor:`pointer`,fontFamily:`inherit`,fontSize:`14px`,fontWeight:`600`,padding:`4px 10px 5px 10px`,WebkitUserSelect:`none`,MozUserSelect:`none`,MsUserSelect:`none`,userSelect:`none`,height:`32px`,borderRadius:`2px`,border:`1px solid ${e.colorNeutralStrokeAccessible}`,backgroundColor:e.colorNeutralBackground1,color:e.colorNeutralForeground1}),n.put(`.${t}-ac-pushButton:hover`,{border:`1px solid ${e.colorNeutralStrokeAccessible}`,backgroundColor:e.colorNeutralBackground2,color:e.colorNeutralForeground2}),n.put(`.${t}-ac-pushButton:active`,{border:`1px solid ${e.colorNeutralStrokeAccessible}`,backgroundColor:e.colorNeutralBackground3,color:e.colorNeutralForeground3}),n.put(`.${t}-ac-pushButton-disabled`,{overflow:`hidden`,textOverflow:`ellipsis`,textAlign:`center`,verticalAlign:`middle`,cursor:`pointer`,fontFamily:`inherit`,fontSize:`14px`,fontWeight:`600`,padding:`4px 10px 5px 10px`,WebkitUserSelect:`none`,MozUserSelect:`none`,MsUserSelect:`none`,userSelect:`none`,height:`32px`,borderRadius:`2px`,border:`1px solid ${e.colorNeutralStrokeDisabled}`,backgroundColor:e.colorNeutralBackgroundDisabled,color:e.colorNeutralForegroundDisabled}),n.put(`.${t}-ac-ctrl-overlay`,{fontFamily:e.fontFamilyBase,position:`absolute`,left:`0`,top:`0`,zIndex:`10000`}),n.put(`.${t}-ac-ctrl`,{boxSizing:`border-box`,fontSize:`14px`,fontWeight:`normal`}),n.put(`.${t}-ac-ctrl-popup-container`,{backgroundColor:e.colorNeutralBackground1,position:`absolute`,overflowY:`auto`,boxShadow:`0px 3.2px 7.2px rgba(0,0,0,0.13), 0px 0.6px 1.8px rgba(0,0,0,0.11)`,borderRadius:`2px`}),n.put(`.${t}-ac-ctrl-popup-container:focus`,{outline:`0`}),n.put(`.${t}-ac-ctrl-slide`,{animationDuration:`0.5s`,animationTimingFunction:`cubic-bezier(0.1, 0.9, 0.2, 1)`}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideTopToBottom`,{animationName:`fadeIn, slideTopToBottom`}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideBottomToTop`,{animationName:`fadeIn, slideBottomToTop`}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideLeftToRight`,{animationName:`fadeIn, slideLeftToRight`}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideRightToLeft`,{animationName:`fadeIn, slideRightToLeft`}),n.put(`.${t}-ac-ctrl-dropdown-item`,{width:`100%`,textOverflow:`ellipsis`,overflow:`hidden`,whiteSpace:`nowrap`,display:`block`,padding:`0px 12px`,lineHeight:`30px`,cursor:`pointer`,backgroundColor:e.colorNeutralBackground1,color:e.colorNeutralForeground1}),n.put(`.${t}-ac-ctrl-dropdown-item:hover`,{backgroundColor:e.colorNeutralBackground2,color:e.colorNeutralForeground2}),n.put(`.${t}-ac-ctrl-dropdown-item:focus`,{outline:`0`,backgroundColor:e.colorNeutralBackground3,color:e.colorNeutralForeground3}),n.put(`.${t}-ac-ctrl-dropdown-item-disabled`,{width:`100%`,textOverflow:`ellipsis`,overflow:`hidden`,whiteSpace:`nowrap`,display:`block`,padding:`0px 12px`,lineHeight:`30px`,cursor:`pointer`,backgroundColor:e.colorNeutralBackgroundDisabled,color:e.colorNeutralForegroundDisabled})},Ts=e=>new T.HostConfig({fontFamily:e.fontFamilyBase,separator:{lineThickness:1,lineColor:e.colorNeutralStroke2},containerStyles:{default:{backgroundColor:e.colorNeutralBackground1,foregroundColors:{default:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},dark:{default:e.colorNeutralForeground3,subtle:e.colorNeutralForeground4},light:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},accent:{default:e.colorBrandForeground1,subtle:e.colorBrandForeground2},attention:{default:e.colorPaletteRedBackground3,subtle:e.colorPaletteRedBackground2},good:{default:e.colorPaletteGreenBackground3,subtle:e.colorPaletteGreenBackground2},warning:{default:e.colorPaletteYellowBackground3,subtle:e.colorPaletteYellowBackground2}}},emphasis:{backgroundColor:e.colorNeutralBackground3,foregroundColors:{default:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},dark:{default:e.colorNeutralForeground3,subtle:e.colorNeutralForeground4},light:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},accent:{default:e.colorBrandForeground1,subtle:e.colorBrandForeground2},attention:{default:e.colorPaletteRedBackground3,subtle:e.colorPaletteRedBackground2},good:{default:e.colorPaletteGreenBackground3,subtle:e.colorPaletteGreenBackground2},warning:{default:e.colorPaletteYellowBackground3,subtle:e.colorPaletteYellowBackground2}}}},inputs:{label:{requiredInputs:{weight:`bold`},optionalInputs:{weight:`bold`}},errorMessage:{color:`attention`,weight:`bold`}},actions:{buttonSpacing:10,actionAlignment:`right`}}),Es=`fluentUITheme`,Ds=(e,t)=>{e.hostCapabilities.setCustomProperty(Es,t)},Os=e=>{let t=e.hostCapabilities.getCustomProperty(Es);return t||=p.webLightTheme,t},ks=(e,t)=>{let n;switch(e){case Cs.SharePoint:n={theme:t,hostConfig:Ts(t)};break;case Cs.Teams:n={theme:p.teamsLightTheme,hostConfig:Ts(p.teamsLightTheme)};break;case Cs.TeamsDark:n={theme:p.teamsDarkTheme,hostConfig:Ts(p.teamsDarkTheme)};break;case Cs.TeamsHighContrast:n={theme:p.teamsHighContrastTheme,hostConfig:Ts(p.teamsHighContrastTheme)};break;default:n={theme:t,hostConfig:Ts(t)};break}return n.hostConfig.cssClassNamePrefix=`ach${Math.random().toString().replace(/\./g,``)}`,Ds(n.hostConfig,n.theme),ws(n.theme,n.hostConfig.cssClassNamePrefix),n},As=e=>{T.AdaptiveCard.onProcessMarkdown||(T.AdaptiveCard.onProcessMarkdown=(t,n)=>{n.outputHtml=new D.default().render(t),n.didProcess=!0;try{n.outputHtml=new D.default().render(t),n.didProcess=!0}catch(t){e&&e(`AdaptiveCardHost: Error parsing Markdown`,t instanceof Error?t:void 0),n.didProcess=!1}})},js=(e,t,n)=>{let r,i;return i=n?{theme:t,aadInfo:n?.pageContext?.aadInfo?{instanceUrl:n.pageContext.aadInfo.instanceUrl||``,tenantId:n.pageContext.aadInfo.tenantId||``,userId:n.pageContext.aadInfo.userId||``}:void 0,cultureInfo:n?.pageContext?.cultureInfo?{currentCultureName:n.pageContext.cultureInfo.currentCultureName,currentUICultureName:n.pageContext.cultureInfo.currentUICultureName,isRightToLeft:n.pageContext.cultureInfo.isRightToLeft||!1}:void 0,userInfo:n?.pageContext?.user?{displayName:n.pageContext.user.displayName,email:n.pageContext.user.email,isAnonymousGuestUser:n.pageContext.user.isAnonymousGuestUser||!1,isExternalGuestUser:n.pageContext.user.isExternalGuestUser||!1,loginName:n.pageContext.user.loginName,preferUserTimeZone:n.pageContext.user.preferUserTimeZone||!1}:void 0,spListInfo:n?.pageContext?.list?{id:n.pageContext.list.id,serverRelativeUrl:n.pageContext.list.serverRelativeUrl||``,title:n.pageContext.list.title}:void 0,spListItemInfo:n?.pageContext?.listItem?{id:n.pageContext.listItem.id.toString()}:void 0,spSiteInfo:n?.pageContext?.site?{absoluteUrl:n.pageContext.site.absoluteUrl,cdnPrefix:n.pageContext.site.cdnPrefix||``,classification:n.pageContext.site.classification||``,correlationId:n.pageContext.site.correlationId||``,id:n.pageContext.site.id,isNoScriptEnabled:n.pageContext.site.isNoScriptEnabled||!1,recycleBinItemCount:n.pageContext.site.recycleBinItemCount||0,serverRelativeUrl:n.pageContext.site.serverRelativeUrl||``,serverRequestPath:n.pageContext.site.serverRequestPath||``,sitePagesEnabled:n.pageContext.site.sitePagesEnabled||!1}:void 0,spWebInfo:n?.pageContext?.web?{absoluteUrl:n.pageContext.web.absoluteUrl,id:n.pageContext.web.id,isAppWeb:n.pageContext.web.isAppWeb||!1,language:n.pageContext.web.language||0,languageName:n.pageContext.web.languageName||``,logoUrl:n.pageContext.web.logoUrl||``,serverRelativeUrl:n.pageContext.web.serverRelativeUrl||``,templateName:n.pageContext.web.templateName||``,title:n.pageContext.web.title,description:n.pageContext.web.description||``}:void 0}:{theme:t},r=e?{$root:{...e?.$root,"@context":i}}:{$root:{"@context":i}},r},Ms;try{let e=[`react-dom`,`client`].join(`/`),t=require(e);typeof t.createRoot==`function`&&(Ms=t.createRoot)}catch{}function Ns(e){return Ms?Ms(e):{render(t){b.render(t,e)},unmount(){b.unmountComponentAtNode(e)}}}var Ps=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ActionRole=e.CarouselInteractionEvent=e.LogLevel=e.RefreshMode=e.TypeErrorType=e.ContainerFitStatus=e.ValidationEvent=e.ValidationPhase=e.InputLabelPosition=e.InputTextStyle=e.ActionIconPlacement=e.FillMode=e.Orientation=e.ShowCardActionMode=e.ImageStyle=e.ActionAlignment=e.VerticalAlignment=e.HorizontalAlignment=e.TextColor=e.Spacing=e.FontType=e.TextWeight=e.InputStyle=e.TextSize=e.SizeUnit=e.ImageSetPresentationStyle=e.ImageSize=e.Size=e.ActionMode=e.ActionStyle=e.ContainerStyle=void 0,e.ContainerStyle=function(){function e(){}return e.Default=`default`,e.Emphasis=`emphasis`,e.Accent=`accent`,e.Good=`good`,e.Attention=`attention`,e.Warning=`warning`,e}(),e.ActionStyle=function(){function e(){}return e.Default=`default`,e.Positive=`positive`,e.Destructive=`destructive`,e}(),e.ActionMode=function(){function e(){}return e.Primary=`primary`,e.Secondary=`secondary`,e}(),(function(e){e[e.Auto=0]=`Auto`,e[e.Stretch=1]=`Stretch`,e[e.Small=2]=`Small`,e[e.Medium=3]=`Medium`,e[e.Large=4]=`Large`})(e.Size||={}),(function(e){e[e.Small=0]=`Small`,e[e.Medium=1]=`Medium`,e[e.Large=2]=`Large`})(e.ImageSize||={}),(function(e){e[e.Default=0]=`Default`,e[e.Stacked=1]=`Stacked`})(e.ImageSetPresentationStyle||={}),(function(e){e[e.Weight=0]=`Weight`,e[e.Pixel=1]=`Pixel`})(e.SizeUnit||={}),(function(e){e[e.Small=0]=`Small`,e[e.Default=1]=`Default`,e[e.Medium=2]=`Medium`,e[e.Large=3]=`Large`,e[e.ExtraLarge=4]=`ExtraLarge`})(e.TextSize||={}),(function(e){e[e.RevealOnHover=0]=`RevealOnHover`,e[e.Default=1]=`Default`})(e.InputStyle||={}),(function(e){e[e.Lighter=0]=`Lighter`,e[e.Default=1]=`Default`,e[e.Bolder=2]=`Bolder`})(e.TextWeight||={}),(function(e){e[e.Default=0]=`Default`,e[e.Monospace=1]=`Monospace`})(e.FontType||={}),(function(e){e[e.None=0]=`None`,e[e.Small=1]=`Small`,e[e.Default=2]=`Default`,e[e.Medium=3]=`Medium`,e[e.Large=4]=`Large`,e[e.ExtraLarge=5]=`ExtraLarge`,e[e.Padding=6]=`Padding`})(e.Spacing||={}),(function(e){e[e.Default=0]=`Default`,e[e.Dark=1]=`Dark`,e[e.Light=2]=`Light`,e[e.Accent=3]=`Accent`,e[e.Good=4]=`Good`,e[e.Warning=5]=`Warning`,e[e.Attention=6]=`Attention`})(e.TextColor||={}),(function(e){e[e.Left=0]=`Left`,e[e.Center=1]=`Center`,e[e.Right=2]=`Right`})(e.HorizontalAlignment||={}),(function(e){e[e.Top=0]=`Top`,e[e.Center=1]=`Center`,e[e.Bottom=2]=`Bottom`})(e.VerticalAlignment||={}),(function(e){e[e.Left=0]=`Left`,e[e.Center=1]=`Center`,e[e.Right=2]=`Right`,e[e.Stretch=3]=`Stretch`})(e.ActionAlignment||={}),(function(e){e[e.Default=0]=`Default`,e[e.Person=1]=`Person`})(e.ImageStyle||={}),(function(e){e[e.Inline=0]=`Inline`,e[e.Popup=1]=`Popup`})(e.ShowCardActionMode||={}),(function(e){e[e.Horizontal=0]=`Horizontal`,e[e.Vertical=1]=`Vertical`})(e.Orientation||={}),(function(e){e[e.Cover=0]=`Cover`,e[e.RepeatHorizontally=1]=`RepeatHorizontally`,e[e.RepeatVertically=2]=`RepeatVertically`,e[e.Repeat=3]=`Repeat`})(e.FillMode||={}),(function(e){e[e.LeftOfTitle=0]=`LeftOfTitle`,e[e.AboveTitle=1]=`AboveTitle`})(e.ActionIconPlacement||={}),(function(e){e[e.Text=0]=`Text`,e[e.Tel=1]=`Tel`,e[e.Url=2]=`Url`,e[e.Email=3]=`Email`,e[e.Password=4]=`Password`})(e.InputTextStyle||={}),(function(e){e[e.Inline=0]=`Inline`,e[e.Above=1]=`Above`})(e.InputLabelPosition||={}),(function(e){e[e.Parse=0]=`Parse`,e[e.ToJSON=1]=`ToJSON`,e[e.Validation=2]=`Validation`})(e.ValidationPhase||={}),(function(e){e[e.Hint=0]=`Hint`,e[e.ActionTypeNotAllowed=1]=`ActionTypeNotAllowed`,e[e.CollectionCantBeEmpty=2]=`CollectionCantBeEmpty`,e[e.Deprecated=3]=`Deprecated`,e[e.ElementTypeNotAllowed=4]=`ElementTypeNotAllowed`,e[e.InteractivityNotAllowed=5]=`InteractivityNotAllowed`,e[e.InvalidPropertyValue=6]=`InvalidPropertyValue`,e[e.MissingCardType=7]=`MissingCardType`,e[e.PropertyCantBeNull=8]=`PropertyCantBeNull`,e[e.TooManyActions=9]=`TooManyActions`,e[e.UnknownActionType=10]=`UnknownActionType`,e[e.UnknownElementType=11]=`UnknownElementType`,e[e.UnsupportedCardVersion=12]=`UnsupportedCardVersion`,e[e.DuplicateId=13]=`DuplicateId`,e[e.UnsupportedProperty=14]=`UnsupportedProperty`,e[e.RequiredInputsShouldHaveLabel=15]=`RequiredInputsShouldHaveLabel`,e[e.RequiredInputsShouldHaveErrorMessage=16]=`RequiredInputsShouldHaveErrorMessage`,e[e.Other=17]=`Other`})(e.ValidationEvent||={}),(function(e){e[e.FullyInContainer=0]=`FullyInContainer`,e[e.Overflowing=1]=`Overflowing`,e[e.FullyOutOfContainer=2]=`FullyOutOfContainer`})(e.ContainerFitStatus||={}),(function(e){e[e.UnknownType=0]=`UnknownType`,e[e.ForbiddenType=1]=`ForbiddenType`})(e.TypeErrorType||={}),(function(e){e[e.Disabled=0]=`Disabled`,e[e.Manual=1]=`Manual`,e[e.Automatic=2]=`Automatic`})(e.RefreshMode||={}),(function(e){e[e.Info=0]=`Info`,e[e.Warning=1]=`Warning`,e[e.Error=2]=`Error`})(e.LogLevel||={}),(function(e){e[e.NavigationNext=0]=`NavigationNext`,e[e.NavigationPrevious=1]=`NavigationPrevious`,e[e.Pagination=2]=`Pagination`,e[e.Autoplay=3]=`Autoplay`})(e.CarouselInteractionEvent||={}),(function(e){e[e.Button=0]=`Button`,e[e.Link=1]=`Link`,e[e.Tab=2]=`Tab`,e[e.Menu=3]=`Menu`,e[e.MenuItem=4]=`MenuItem`})(e.ActionRole||={})})),Fs=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UUID=e.SizeAndUnit=e.PaddingDefinition=e.SpacingDefinition=e.StringWithSubstitutions=e.ContentTypes=e.GlobalSettings=void 0;var t=Ps();e.GlobalSettings=function(){function e(){}return e.useAdvancedTextBlockTruncation=!0,e.useAdvancedCardBottomTruncation=!1,e.useMarkdownInRadioButtonAndCheckbox=!0,e.allowMarkForTextHighlighting=!1,e.alwaysBleedSeparators=!1,e.enableFullJsonRoundTrip=!1,e.displayInputValidationErrors=!0,e.allowPreProcessingPropertyValues=!1,e.setTabIndexAtCardRoot=!0,e.enableFallback=!0,e.useWebkitLineClamp=!0,e.allowMoreThanMaxActionsInOverflowMenu=!1,e.removePaddingFromContainersWithBackgroundImage=!1,e.resetInputsDirtyStateAfterActionExecution=!0,e.applets={logEnabled:!0,logLevel:t.LogLevel.Error,maximumRetryAttempts:3,defaultTimeBetweenRetryAttempts:3e3,authPromptWidth:400,authPromptHeight:600,refresh:{mode:t.RefreshMode.Manual,timeBetweenAutomaticRefreshes:3e3,maximumConsecutiveAutomaticRefreshes:3,allowManualRefreshesAfterAutomaticRefreshes:!0}},e}(),e.ContentTypes={applicationJson:`application/json`,applicationXWwwFormUrlencoded:`application/x-www-form-urlencoded`},e.StringWithSubstitutions=function(){function t(){this._isProcessed=!1}return t.prototype.getReferencedInputs=function(e,t){if(!t)throw Error(`The referencedInputs parameter cannot be null.`);if(this._original)for(var n=0,r=e;n<r.length;n++){var i=r[n];RegExp(`\\{{2}(`+i.id+`).value\\}{2}`,`gi`).exec(this._original)!=null&&i.id&&(t[i.id]=i)}},t.prototype.substituteInputValues=function(t,n){if(this._processed=this._original,this._original)for(var r=/\{{2}([a-z0-9_$@]+).value\}{2}/gi,i=void 0;(i=r.exec(this._original))!==null&&this._processed;)for(var a=0,o=Object.keys(t);a<o.length;a++){var s=o[a];if(s.toLowerCase()===i[1].toLowerCase()){var c=t[s],l=``;c.value&&(l=c.value),n===e.ContentTypes.applicationJson?(l=JSON.stringify(l),l=l.slice(1,-1)):n===e.ContentTypes.applicationXWwwFormUrlencoded&&(l=encodeURIComponent(l)),this._processed=this._processed.replace(i[0],l);break}}this._isProcessed=!0},t.prototype.getOriginal=function(){return this._original},t.prototype.get=function(){return this._isProcessed?this._processed:this._original},t.prototype.set=function(e){this._original=e,this._isProcessed=!1},t}(),e.SpacingDefinition=function(){function e(e,t,n,r){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0),this.left=0,this.top=0,this.right=0,this.bottom=0,this.top=e,this.right=t,this.bottom=n,this.left=r}return e}(),e.PaddingDefinition=function(){function e(e,n,r,i){e===void 0&&(e=t.Spacing.None),n===void 0&&(n=t.Spacing.None),r===void 0&&(r=t.Spacing.None),i===void 0&&(i=t.Spacing.None),this.top=t.Spacing.None,this.right=t.Spacing.None,this.bottom=t.Spacing.None,this.left=t.Spacing.None,this.top=e,this.right=n,this.bottom=r,this.left=i}return e}(),e.SizeAndUnit=function(){function e(e,t){this.physicalSize=e,this.unit=t}return e.parse=function(n,r){r===void 0&&(r=!1);var i=new e(0,t.SizeUnit.Weight);if(typeof n==`number`)return i.physicalSize=n,i;if(typeof n==`string`){var a=/^([0-9]+)(px|\*)?$/g.exec(n),o=r?3:2;if(a&&a.length>=o)return i.physicalSize=parseInt(a[1]),a.length===3&&a[2]===`px`&&(i.unit=t.SizeUnit.Pixel),i}throw Error(`Invalid size: `+n)},e}();var n=function(){function e(){}return e.generate=function(){var t=Math.random()*4294967295|0,n=Math.random()*4294967295|0,r=Math.random()*4294967295|0,i=Math.random()*4294967295|0;return e.lut[t&255]+e.lut[t>>8&255]+e.lut[t>>16&255]+e.lut[t>>24&255]+`-`+e.lut[n&255]+e.lut[n>>8&255]+`-`+e.lut[n>>16&15|64]+e.lut[n>>24&255]+`-`+e.lut[r&63|128]+e.lut[r>>8&255]+`-`+e.lut[r>>16&255]+e.lut[r>>24&255]+e.lut[i&255]+e.lut[i>>8&255]+e.lut[i>>16&255]+e.lut[i>>24&255]},e.initialize=function(){for(var t=0;t<256;t++)e.lut[t]=(t<16?`0`:``)+t.toString(16)},e.lut=[],e}();e.UUID=n,n.initialize()})),Is=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.debounce=e.addCancelSelectActionEventHandler=e.clearElementChildren=e.getScrollY=e.getScrollX=e.getFitStatus=e.truncate=e.truncateText=e.stringToCssColor=e.parseEnum=e.getEnumValueByName=e.parseBool=e.parseNumber=e.parseString=e.appendChild=e.generateUniqueId=e.isMobileOS=e.isInternetExplorer=void 0;var t=Ps(),n=Fs();function r(){return window.document.documentMode!==void 0}e.isInternetExplorer=r;function i(){var e=window.navigator.userAgent;return!!e.match(/Android/i)||!!e.match(/iPad/i)||!!e.match(/iPhone/i)}e.isMobileOS=i;function a(){return`__ac-`+n.UUID.generate()}e.generateUniqueId=a;function o(e,t){t&&e.appendChild(t)}e.appendChild=o;function s(e,t){return typeof e==`string`?e:t}e.parseString=s;function c(e,t){return typeof e==`number`?e:t}e.parseNumber=c;function l(e,t){if(typeof e==`boolean`)return e;if(typeof e==`string`)switch(e.toLowerCase()){case`true`:return!0;case`false`:return!1;default:return t}return t}e.parseBool=l;function u(e,t){for(var n in e){var r=parseInt(n,10);if(r>=0){var i=e[n];if(i&&typeof i==`string`&&i.toLowerCase()===t.toLowerCase())return r}}}e.getEnumValueByName=u;function d(e,t,n){if(!t)return n;var r=u(e,t);return r===void 0?n:r}e.parseEnum=d;function f(e){if(e){var t=/#([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?/gi.exec(e);if(t&&t[4]){var n=parseInt(t[1],16)/255,r=parseInt(t[2],16),i=parseInt(t[3],16),a=parseInt(t[4],16);return`rgba(`+r+`,`+i+`,`+a+`,`+n+`)`}}return e}e.stringToCssColor=f;function p(e,t,n,r,i){var a=function(){return t-e.scrollHeight>=-1};if(!a()){for(var o=_(n),s=0,c=o.length,l=0;s<c;){var u=Math.floor((s+c)/2);r(n,o[u]),a()?(l=o[u],s=u+1):c=u}if(r(n,l),i&&t-e.scrollHeight>=i-1){for(var d=v(n,l);d<n.length&&(r(n,d),a());)l=d,d=v(n,d);r(n,l)}}}function m(e,t,n){p(e,t,e.innerText,function(t,n){e.innerText=t.substring(0,n)+`...`},n)}e.truncateText=m;var h=typeof window>`u`?void 0:window.trustedTypes?.createPolicy(`adaptivecards#deprecatedExportedFunctionPolicy`,{createHTML:function(e){return e}});function g(e,t,n){p(e,t,e.innerHTML,function(t,n){var r=t.substring(0,n)+`...`;e.innerHTML=h?.createHTML(r)??r},n)}e.truncate=g;function _(e){for(var t=[],n=v(e,-1);n<e.length;)e[n]===` `&&t.push(n),n=v(e,n);return t}function v(e,t){for(t+=1;t<e.length&&e[t]===`<`;)for(;t<e.length&&e[t++]!==`>`;)continue;return t}function y(e,n){var r=e.offsetTop;return r+e.clientHeight<=n?t.ContainerFitStatus.FullyInContainer:r<n?t.ContainerFitStatus.Overflowing:t.ContainerFitStatus.FullyOutOfContainer}e.getFitStatus=y;function b(){return window.pageXOffset}e.getScrollX=b;function x(){return window.pageYOffset}e.getScrollY=x;function S(e){for(;e.firstChild;)e.removeChild(e.firstChild)}e.clearElementChildren=S;function C(e){e.onclick=function(e){e.preventDefault(),e.cancelBubble=!0}}e.addCancelSelectActionEventHandler=C;function w(e,t){var n;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n&&clearTimeout(n),n=setTimeout(function(){e.apply(void 0,r)},t)}return r}e.debounce=w})),Ls=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Strings=void 0,e.Strings=function(){function e(){}return e.errors={unknownElementType:function(e){return`Unknown element type "${e}". Fallback will be used if present.`},unknownActionType:function(e){return`Unknown action type "${e}". Fallback will be used if present.`},elementTypeNotAllowed:function(e){return`Element type "${e}" is not allowed in this context.`},actionTypeNotAllowed:function(e){return`Action type "${e}" is not allowed in this context.`},invalidPropertyValue:function(e,t){return`Invalid value "${e}" for property "${t}".`},showCardMustHaveCard:function(){return`"An Action.ShowCard must have its "card" property set to a valid AdaptiveCard object.`},invalidColumnWidth:function(e){return`Invalid column width "${e}" - defaulting to "auto".`},invalidCardVersion:function(e){return`Invalid card version. Defaulting to "${e}".`},invalidVersionString:function(e){return`Invalid version string "${e}".`},propertyValueNotSupported:function(e,t,n,r){return`Value "${e}" for property "${t}" is supported in version ${n}, but you are using version ${r}.`},propertyNotSupported:function(e,t,n){return`Property "${e}" is supported in version ${t}, but you are using version ${n}.`},indexOutOfRange:function(e){return`Index out of range (${e}).`},elementCannotBeUsedAsInline:function(){return`RichTextBlock.addInline: the specified card element cannot be used as a RichTextBlock inline.`},inlineAlreadyParented:function(){return`RichTextBlock.addInline: the specified inline already belongs to another RichTextBlock.`},interactivityNotAllowed:function(){return`Interactivity is not allowed.`},inputsMustHaveUniqueId:function(){return`All inputs must have a unique Id.`},choiceSetMustHaveAtLeastOneChoice:function(){return`An Input.ChoiceSet must have at least one choice defined.`},choiceSetChoicesMustHaveTitleAndValue:function(){return`All choices in an Input.ChoiceSet must have their title and value properties set.`},propertyMustBeSet:function(e){return`Property "${e}" must be set.`},actionHttpHeadersMustHaveNameAndValue:function(){return`All headers of an Action.Http must have their name and value properties set.`},tooManyActions:function(e){return`Maximum number of actions exceeded (${e}).`},tooLittleTimeDelay:function(e){return`Autoplay Delay is too short (${e}).`},tooManyCarouselPages:function(e){return`Maximum number of Carousel pages exceeded (${e}).`},invalidInitialPageIndex:function(e){return`InitialPage for carousel is invalid (${e}).`},columnAlreadyBelongsToAnotherSet:function(){return`This column already belongs to another ColumnSet.`},invalidCardType:function(){return`Invalid or missing card type. Make sure the card's type property is set to "AdaptiveCard".`},unsupportedCardVersion:function(e,t){return`The specified card version (${e}) is not supported or still in preview. The latest released card version is ${t}.`},duplicateId:function(e){return`Duplicate Id "${e}".`},markdownProcessingNotEnabled:function(){return`Markdown processing isn't enabled. Please see https://www.npmjs.com/package/adaptivecards#supporting-markdown`},processMarkdownEventRemoved:function(){return`The processMarkdown event has been removed. Please update your code and set onProcessMarkdown instead.`},elementAlreadyParented:function(){return`The element already belongs to another container.`},actionAlreadyParented:function(){return`The action already belongs to another element.`},elementTypeNotStandalone:function(e){return`Elements of type ${e} cannot be used as standalone elements.`},invalidInputLabelWidth:function(){return`Invalid input label width. Defaulting to label width from host config.`}},e.magicCodeInputCard={tryAgain:function(){return`That didn't work... let's try again.`},pleaseLogin:function(){return`Please login in the popup. You will obtain a magic code. Paste that code below and select "Submit"`},enterMagicCode:function(){return`Enter magic code`},pleaseEnterMagicCodeYouReceived:function(){return`Please enter the magic code you received.`},submit:function(){return`Submit`},cancel:function(){return`Cancel`},somethingWentWrong:function(){return`Something went wrong. This action can't be handled.`},authenticationFailed:function(){return`Authentication failed.`}},e.runtime={automaticRefreshPaused:function(){return`Automatic refresh paused.`},clckToRestartAutomaticRefresh:function(){return`Click to restart.`},refreshThisCard:function(){return`Refresh this card`}},e.hints={dontUseWeightedAndStrecthedColumnsInSameSet:function(){return`It is not recommended to use weighted and stretched columns in the same ColumnSet, because in such a situation stretched columns will always get the minimum amount of space.`}},e.defaults={inlineActionTitle:function(){return`Inline Action`},overflowButtonText:function(){return`...`},overflowButtonTooltip:function(){return`More options`},emptyElementText:function(e){return`Empty ${e}`},mediaPlayerAriaLabel:function(){return`Media content`},mediaPlayerPlayMedia:function(){return`Play media`},youTubeVideoPlayer:function(){return`YouTube video player`},vimeoVideoPlayer:function(){return`Vimeo video player`},dailymotionVideoPlayer:function(){return`Dailymotion video player`},carouselNavigationPreviousTooltip:function(){return`Previous carousel page`},carouselNavigationNextTooltip:function(){return`Next carousel page`}},e}()})),Rs=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.SerializableObject=e.property=e.SerializableObjectSchema=e.CustomProperty=e.SerializableObjectCollectionProperty=e.SerializableObjectProperty=e.EnumProperty=e.ValueSetProperty=e.StringArrayProperty=e.PixelSizeProperty=e.NumProperty=e.BoolProperty=e.StringProperty=e.PropertyDefinition=e.BaseSerializationContext=e.isVersionLessOrEqual=e.Versions=e.Version=void 0;var n=Fs(),r=Is(),i=Ps(),a=Ls(),o=function(){function e(e,t,n){e===void 0&&(e=1),t===void 0&&(t=1),this._isValid=!0,this._major=e,this._minor=t,this._label=n}return e.parse=function(t,n){if(t){var r=new e;r._versionString=t;var o=/(\d+).(\d+)/gi.exec(t);return o!=null&&o.length===3?(r._major=parseInt(o[1]),r._minor=parseInt(o[2])):r._isValid=!1,r._isValid||n.logParseEvent(void 0,i.ValidationEvent.InvalidPropertyValue,a.Strings.errors.invalidVersionString(r._versionString)),r}},e.prototype.toString=function(){return this._isValid?this._major+`.`+this._minor:this._versionString},e.prototype.toJSON=function(){return this.toString()},e.prototype.compareTo=function(e){if(!this.isValid||!e.isValid)throw Error(`Cannot compare invalid version.`);return this.major>e.major?1:this.major<e.major?-1:this.minor>e.minor?1:this.minor<e.minor?-1:0},Object.defineProperty(e.prototype,`label`,{get:function(){return this._label?this._label:this.toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`major`,{get:function(){return this._major},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`minor`,{get:function(){return this._minor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`isValid`,{get:function(){return this._isValid},enumerable:!1,configurable:!0}),e}();e.Version=o;var s=function(){function e(){}return e.getAllDeclaredVersions=function(){var t=e,n=[];for(var r in t)if(r.match(/^v[0-9_]*$/))try{var i=t[r];i instanceof o&&n.push(i)}catch{}return n.sort(function(e,t){return e.compareTo(t)})},e.v1_0=new o(1,0),e.v1_1=new o(1,1),e.v1_2=new o(1,2),e.v1_3=new o(1,3),e.v1_4=new o(1,4),e.v1_5=new o(1,5),e.v1_6=new o(1,6,`1.6 Preview`),e.latest=e.v1_5,e}();e.Versions=s;function c(e,t){return e instanceof o&&t instanceof o?t.compareTo(e)>=0:!0}e.isVersionLessOrEqual=c;var l=function(){function e(e){e===void 0&&(e=s.latest),this._validationEvents=[],this.targetVersion=e}return e.prototype.isTemplateString=function(e){return typeof e==`string`?e.startsWith("${"):!1},e.prototype.tryDeleteValue=function(e,t){n.GlobalSettings.enableFullJsonRoundTrip||delete e[t]},e.prototype.tryDeleteDefaultValue=function(e,t){(!n.GlobalSettings.enableFullJsonRoundTrip||!this.isTemplateString(e[t]))&&delete e[t]},e.prototype.serializeValue=function(e,t,r,i,a){i===void 0&&(i=void 0),a===void 0&&(a=!1),r==null?(!n.GlobalSettings.enableFullJsonRoundTrip||a)&&delete e[t]:r===i?(!n.GlobalSettings.enableFullJsonRoundTrip||a||!this.isTemplateString(e[t]))&&delete e[t]:e[t]=r},e.prototype.serializeString=function(e,t,n,r){n==null?this.tryDeleteValue(e,t):n===r?this.tryDeleteDefaultValue(e,t):e[t]=n},e.prototype.serializeBool=function(e,t,n,r){n==null?this.tryDeleteValue(e,t):n===r?this.tryDeleteDefaultValue(e,t):e[t]=n},e.prototype.serializeNumber=function(e,t,n,r){n==null||isNaN(n)?this.tryDeleteValue(e,t):n===r?this.tryDeleteDefaultValue(e,t):e[t]=n},e.prototype.serializeEnum=function(e,t,n,r,i){i===void 0&&(i=void 0),r==null?this.tryDeleteValue(t,n):r===i?this.tryDeleteDefaultValue(t,n):t[n]=e[r]},e.prototype.serializeArray=function(e,t,n){var r=[];if(n)for(var i=0,a=n;i<a.length;i++){var o=a[i],s=void 0;s=o instanceof m?o.toJSON(this):o.toJSON?o.toJSON():o,s!==void 0&&r.push(s)}r.length===0?e.hasOwnProperty(t)&&Array.isArray(e[t])&&delete e[t]:this.serializeValue(e,t,r)},e.prototype.clearEvents=function(){this._validationEvents=[]},e.prototype.logEvent=function(e,t,n,r){this._validationEvents.push({source:e,phase:t,event:n,message:r})},e.prototype.logParseEvent=function(e,t,n){this.logEvent(e,i.ValidationPhase.Parse,t,n)},e.prototype.getEventAt=function(e){return this._validationEvents[e]},Object.defineProperty(e.prototype,`eventCount`,{get:function(){return this._validationEvents.length},enumerable:!1,configurable:!0}),e}();e.BaseSerializationContext=l;var u=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(l),d=function(){function e(t,n,r,i){this.targetVersion=t,this.name=n,this.defaultValue=r,this.onGetInitialValue=i,this.isSerializationEnabled=!0,this.sequentialNumber=e._sequentialNumber,e._sequentialNumber++}return e.prototype.getInternalName=function(){return this.name},e.prototype.parse=function(e,t,n){return t[this.name]},e.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,n,this.defaultValue)},e._sequentialNumber=0,e}();e.PropertyDefinition=d,e.StringProperty=function(e){t(n,e);function n(t,n,r,i,a,o){r===void 0&&(r=!0);var s=e.call(this,t,n,a,o)||this;return s.targetVersion=t,s.name=n,s.treatEmptyAsUndefined=r,s.regEx=i,s.defaultValue=a,s.onGetInitialValue=o,s}return n.prototype.parse=function(e,t,n){var o=r.parseString(t[this.name],this.defaultValue);if(!(o===void 0||o===``&&this.treatEmptyAsUndefined)&&this.regEx!==void 0&&!this.regEx.exec(o)){n.logParseEvent(e,i.ValidationEvent.InvalidPropertyValue,a.Strings.errors.invalidPropertyValue(o,this.name));return}return o},n.prototype.toJSON=function(e,t,n,r){r.serializeString(t,this.name,n===``&&this.treatEmptyAsUndefined?void 0:n,this.defaultValue)},n}(d),e.BoolProperty=function(e){t(n,e);function n(t,n,r,i){var a=e.call(this,t,n,r,i)||this;return a.targetVersion=t,a.name=n,a.defaultValue=r,a.onGetInitialValue=i,a}return n.prototype.parse=function(e,t,n){return r.parseBool(t[this.name],this.defaultValue)},n.prototype.toJSON=function(e,t,n,r){r.serializeBool(t,this.name,n,this.defaultValue)},n}(d),e.NumProperty=function(e){t(n,e);function n(t,n,r,i){var a=e.call(this,t,n,r,i)||this;return a.targetVersion=t,a.name=n,a.defaultValue=r,a.onGetInitialValue=i,a}return n.prototype.parse=function(e,t,n){return r.parseNumber(t[this.name],this.defaultValue)},n.prototype.toJSON=function(e,t,n,r){r.serializeNumber(t,this.name,n,this.defaultValue)},n}(d),e.PixelSizeProperty=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.parse=function(e,t,r){var o=void 0,s=t[this.name];if(typeof s==`string`){var c=!1;try{var l=n.SizeAndUnit.parse(s,!0);l.unit===i.SizeUnit.Pixel&&(o=l.physicalSize,c=!0)}catch{}c||r.logParseEvent(e,i.ValidationEvent.InvalidPropertyValue,a.Strings.errors.invalidPropertyValue(t[this.name],this.name))}return o},r.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,typeof n==`number`&&!isNaN(n)?n+`px`:void 0)},r}(d),e.StringArrayProperty=function(e){t(n,e);function n(t,n,r,i){var a=e.call(this,t,n,r,i)||this;return a.targetVersion=t,a.name=n,a.defaultValue=r,a.onGetInitialValue=i,a}return n.prototype.parse=function(e,t,n){var r=t[this.name];if(r===void 0||!Array.isArray(r))return this.defaultValue;for(var a=[],o=0,s=r;o<s.length;o++){var c=s[o];typeof c==`string`?a.push(c):n.logParseEvent(e,i.ValidationEvent.InvalidPropertyValue,`Invalid array value "${JSON.stringify(c)}" of type "${typeof c}" ignored for "${this.name}".`)}return a},n.prototype.toJSON=function(e,t,n,r){r.serializeArray(t,this.name,n)},n}(d),e.ValueSetProperty=function(e){t(n,e);function n(t,n,r,i,a){var o=e.call(this,t,n,i,a)||this;return o.targetVersion=t,o.name=n,o.values=r,o.defaultValue=i,o.onGetInitialValue=a,o}return n.prototype.isValidValue=function(e,t){for(var n=0,r=this.values;n<r.length;n++){var i=r[n];if(e.toLowerCase()===i.value.toLowerCase())return(i.targetVersion?i.targetVersion:this.targetVersion).compareTo(t.targetVersion)<=0}return!1},n.prototype.parse=function(e,t,n){var r=t[this.name];if(r===void 0)return this.defaultValue;if(typeof r==`string`)for(var o=0,s=this.values;o<s.length;o++){var c=s[o];if(r.toLowerCase()===c.value.toLowerCase()){var l=c.targetVersion?c.targetVersion:this.targetVersion;return l.compareTo(n.targetVersion)<=0?c.value:(n.logParseEvent(e,i.ValidationEvent.InvalidPropertyValue,a.Strings.errors.propertyValueNotSupported(r,this.name,l.toString(),n.targetVersion.toString())),this.defaultValue)}}return n.logParseEvent(e,i.ValidationEvent.InvalidPropertyValue,a.Strings.errors.invalidPropertyValue(r,this.name)),this.defaultValue},n.prototype.toJSON=function(e,t,n,r){var o=!1;if(n!==void 0){o=!0;for(var s=0,c=this.values;s<c.length;s++){var l=c[s];if(l.value===n){var u=l.targetVersion?l.targetVersion:this.targetVersion;if(u.compareTo(r.targetVersion)<=0){o=!1;break}else r.logEvent(e,i.ValidationPhase.ToJSON,i.ValidationEvent.InvalidPropertyValue,a.Strings.errors.propertyValueNotSupported(n,this.name,u.toString(),r.targetVersion.toString()))}}}o||r.serializeValue(t,this.name,n,this.defaultValue,!0)},n}(d),e.EnumProperty=function(e){t(n,e);function n(t,n,r,i,a,o){var s=e.call(this,t,n,i,o)||this;if(s.targetVersion=t,s.name=n,s.enumType=r,s.defaultValue=i,s.onGetInitialValue=o,s._values=[],a)s._values=a;else for(var c in r){var l=parseInt(c,10);l>=0&&s._values.push({value:l})}return s}return n.prototype.parse=function(e,t,n){var o=t[this.name];if(typeof o!=`string`)return this.defaultValue;var s=r.getEnumValueByName(this.enumType,o);if(s!==void 0)for(var c=0,l=this.values;c<l.length;c++){var u=l[c];if(u.value===s){var d=u.targetVersion?u.targetVersion:this.targetVersion;return d.compareTo(n.targetVersion)<=0?s:(n.logParseEvent(e,i.ValidationEvent.InvalidPropertyValue,a.Strings.errors.propertyValueNotSupported(o,this.name,d.toString(),n.targetVersion.toString())),this.defaultValue)}}return n.logParseEvent(e,i.ValidationEvent.InvalidPropertyValue,a.Strings.errors.invalidPropertyValue(o,this.name)),this.defaultValue},n.prototype.toJSON=function(e,t,n,r){var o=!1;if(n!==void 0){o=!0;for(var s=0,c=this.values;s<c.length;s++){var l=c[s];if(l.value===n)if((l.targetVersion?l.targetVersion:this.targetVersion).compareTo(r.targetVersion)<=0){o=!1;break}else r.logEvent(e,i.ValidationPhase.ToJSON,i.ValidationEvent.InvalidPropertyValue,a.Strings.errors.invalidPropertyValue(n,this.name))}}o||r.serializeEnum(this.enumType,t,this.name,n,this.defaultValue)},Object.defineProperty(n.prototype,`values`,{get:function(){return this._values},enumerable:!1,configurable:!0}),n}(d),e.SerializableObjectProperty=function(e){t(n,e);function n(t,n,r,i,a){i===void 0&&(i=!1);var o=e.call(this,t,n,a,function(e){return o.nullable?void 0:new o.objectType})||this;return o.targetVersion=t,o.name=n,o.objectType=r,o.nullable=i,o}return n.prototype.parse=function(e,t,n){var r=t[this.name];if(r===void 0)return this.onGetInitialValue?this.onGetInitialValue(e):this.defaultValue;var i=new this.objectType;return i.parse(r,n),i},n.prototype.toJSON=function(e,t,n,r){var i=void 0;n!==void 0&&!n.hasAllDefaultValues()&&(i=n.toJSON(r)),typeof i==`object`&&Object.keys(i).length===0&&(i=void 0),r.serializeValue(t,this.name,i,this.defaultValue,!0)},n}(d),e.SerializableObjectCollectionProperty=function(e){t(n,e);function n(t,n,r,i){var a=e.call(this,t,n,void 0,function(e){return[]})||this;return a.targetVersion=t,a.name=n,a.objectType=r,a.onItemAdded=i,a}return n.prototype.parse=function(e,t,n){var r=[],i=t[this.name];if(Array.isArray(i))for(var a=0,o=i;a<o.length;a++){var s=o[a],c=new this.objectType;c.parse(s,n),r.push(c),this.onItemAdded&&this.onItemAdded(e,c)}return r.length>0?r:this.onGetInitialValue?this.onGetInitialValue(e):void 0},n.prototype.toJSON=function(e,t,n,r){r.serializeArray(t,this.name,n)},n}(d),e.CustomProperty=function(e){t(n,e);function n(t,n,r,i,a,o){var s=e.call(this,t,n,a,o)||this;if(s.targetVersion=t,s.name=n,s.onParse=r,s.onToJSON=i,s.defaultValue=a,s.onGetInitialValue=o,!s.onParse)throw Error(`CustomPropertyDefinition instances must have an onParse handler.`);if(!s.onToJSON)throw Error(`CustomPropertyDefinition instances must have an onToJSON handler.`);return s}return n.prototype.parse=function(e,t,n){return this.onParse(e,this,t,n)},n.prototype.toJSON=function(e,t,n,r){this.onToJSON(e,this,t,n,r)},n}(d);var f=function(){function e(){this._properties=[]}return e.prototype.indexOf=function(e){for(var t=0;t<this._properties.length;t++)if(this._properties[t]===e)return t;return-1},e.prototype.add=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];this.indexOf(i)===-1&&this._properties.push(i)}},e.prototype.remove=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++)for(var i=r[n];;){var a=this.indexOf(i);if(a>=0)this._properties.splice(a,1);else break}},e.prototype.getItemAt=function(e){return this._properties[e]},e.prototype.getCount=function(){return this._properties.length},e}();e.SerializableObjectSchema=f;function p(e){return function(t,n){var r=Object.getOwnPropertyDescriptor(t,n)||{};!r.get&&!r.set&&(r.get=function(){return this.getValue(e)},r.set=function(t){this.setValue(e,t)},Object.defineProperty(t,n,r))}}e.property=p;var m=function(){function e(){this._propertyBag={},this._rawProperties={},this.maxVersion=e.defaultMaxVersion;for(var t=this.getSchema(),n=0;n<t.getCount();n++){var r=t.getItemAt(n);r.onGetInitialValue&&this.setValue(r,r.onGetInitialValue(this))}}return e.prototype.getDefaultSerializationContext=function(){return new u},e.prototype.populateSchema=function(t){var n=this.constructor,r=[];for(var i in n)try{var a=n[i];a instanceof d&&r.push(a)}catch{}if(r.length>0){var o=r.sort(function(e,t){return e.sequentialNumber>t.sequentialNumber?1:e.sequentialNumber<t.sequentialNumber?-1:0});t.add.apply(t,o)}e.onRegisterCustomProperties&&e.onRegisterCustomProperties(this,t)},e.prototype.getValue=function(e){return this._propertyBag.hasOwnProperty(e.getInternalName())?this._propertyBag[e.getInternalName()]:e.defaultValue},e.prototype.setValue=function(e,t){t==null?delete this._propertyBag[e.getInternalName()]:this._propertyBag[e.getInternalName()]=t},e.prototype.internalParse=function(e,t){if(this._propertyBag={},this._rawProperties=n.GlobalSettings.enableFullJsonRoundTrip&&e||{},e)for(var r=this.getSchema(),o=0;o<r.getCount();o++){var s=r.getItemAt(o);if(s.isSerializationEnabled){var c=s.onGetInitialValue?s.onGetInitialValue(this):void 0;e.hasOwnProperty(s.name)&&(s.targetVersion.compareTo(t.targetVersion)<=0?c=s.parse(this,e,t):t.logParseEvent(this,i.ValidationEvent.UnsupportedProperty,a.Strings.errors.propertyNotSupported(s.name,s.targetVersion.toString(),t.targetVersion.toString()))),this.setValue(s,c)}}else this.resetDefaultValues()},e.prototype.internalToJSON=function(e,t){for(var n=this.getSchema(),r=[],i=0;i<n.getCount();i++){var a=n.getItemAt(i);a.isSerializationEnabled&&a.targetVersion.compareTo(t.targetVersion)<=0&&r.indexOf(a.name)===-1&&(a.toJSON(this,e,this.getValue(a),t),r.push(a.name))}},e.prototype.shouldSerialize=function(e){return!0},e.prototype.parse=function(e,t){this.internalParse(e,t||new u)},e.prototype.toJSON=function(e){var t;if(e&&e instanceof l?t=e:(t=this.getDefaultSerializationContext(),t.toJSONOriginalParam=e),this.shouldSerialize(t)){var r=void 0;return r=n.GlobalSettings.enableFullJsonRoundTrip&&this._rawProperties&&typeof this._rawProperties==`object`?this._rawProperties:{},this.internalToJSON(r,t),r}else return},e.prototype.hasDefaultValue=function(e){return this.getValue(e)===e.defaultValue},e.prototype.hasAllDefaultValues=function(){for(var e=this.getSchema(),t=0;t<e.getCount();t++){var n=e.getItemAt(t);if(!this.hasDefaultValue(n))return!1}return!0},e.prototype.resetDefaultValues=function(){for(var e=this.getSchema(),t=0;t<e.getCount();t++){var n=e.getItemAt(t);this.setValue(n,n.defaultValue)}},e.prototype.setCustomProperty=function(e,t){typeof t==`string`&&!t||t==null?delete this._rawProperties[e]:this._rawProperties[e]=t},e.prototype.getCustomProperty=function(e){return this._rawProperties[e]},e.prototype.getSchema=function(){var t=e._schemaCache[this.getSchemaKey()];return t||(t=new f,this.populateSchema(t),e._schemaCache[this.getSchemaKey()]=t),t},e.defaultMaxVersion=s.latest,e._schemaCache={},e}();e.SerializableObject=m})),zs=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.HostCapabilities=void 0;var n=Rs();e.HostCapabilities=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t._capabilities={},t}return r.prototype.getSchemaKey=function(){return`HostCapabilities`},r.prototype.internalParse=function(t,r){if(e.prototype.internalParse.call(this,t,r),t)for(var i in t){var a=t[i];if(typeof a==`string`)if(a===`*`)this.addCapability(i,`*`);else{var o=n.Version.parse(a,r);o?.isValid&&this.addCapability(i,o)}}},r.prototype.internalToJSON=function(t,n){for(var r in e.prototype.internalToJSON.call(this,t,n),this._capabilities)t[r]=this._capabilities[r]},r.prototype.addCapability=function(e,t){this._capabilities[e]=t},r.prototype.removeCapability=function(e){delete this._capabilities[e]},r.prototype.clear=function(){this._capabilities={}},r.prototype.hasCapability=function(e,t){return this._capabilities.hasOwnProperty(e)?t===`*`||this._capabilities[e]===`*`?!0:t.compareTo(this._capabilities[e])<=0:!1},r.prototype.areAllMet=function(e){for(var t in this._capabilities)if(!e.hasCapability(t,this._capabilities[t]))return!1;return!0},r}(n.SerializableObject)})),Bs=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.defaultHostConfig=e.HostConfig=e.CarouselConfig=e.FontTypeSet=e.FontTypeDefinition=e.ContainerStyleSet=e.ContainerStyleDefinition=e.ColorSetDefinition=e.ActionsConfig=e.ShowCardActionConfig=e.FactSetConfig=e.FactTitleDefinition=e.FactTextDefinition=e.InputConfig=e.InputLabelConfig=e.RequiredInputLabelTextDefinition=e.TextBlockConfig=e.TextStyleSet=e.TextStyleDefinition=e.BaseTextDefinition=e.TableConfig=e.MediaConfig=e.ImageSetConfig=e.AdaptiveCardConfig=e.TextColorDefinition=e.ColorDefinition=void 0;var n=Ps(),r=Is(),i=Fs(),a=zs();function o(e,t,n){if(typeof t==`string`){var i=r.parseEnum(e,t,n);return i===void 0?n:i}else if(typeof t==`number`)return t;else return n}var s=function(){function e(e,t){this.default=`#000000`,this.subtle=`#666666`,e&&(this.default=e),t&&(this.subtle=t)}return e.prototype.parse=function(e){e&&(this.default=e.default||this.default,this.subtle=e.subtle||this.subtle)},e}();e.ColorDefinition=s;var c=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.highlightColors=new s(`#22000000`,`#11000000`),t}return n.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&this.highlightColors.parse(t.highlightColors)},n}(s);e.TextColorDefinition=c;var l=function(){function e(e){this.allowCustomStyle=!1,e&&(this.allowCustomStyle=e.allowCustomStyle||this.allowCustomStyle)}return e}();e.AdaptiveCardConfig=l;var u=function(){function e(e){this.imageSize=n.Size.Medium,this.maxImageHeight=100,e&&(this.imageSize=e.imageSize==null?this.imageSize:e.imageSize,this.maxImageHeight=r.parseNumber(e.maxImageHeight,100))}return e.prototype.toJSON=function(){return{imageSize:n.Size[this.imageSize],maxImageHeight:this.maxImageHeight}},e}();e.ImageSetConfig=u;var d=function(){function e(e){this.allowInlinePlayback=!0,e&&(this.defaultPoster=e.defaultPoster,this.allowInlinePlayback=e.allowInlinePlayback||this.allowInlinePlayback)}return e.prototype.toJSON=function(){return{defaultPoster:this.defaultPoster,allowInlinePlayback:this.allowInlinePlayback}},e}();e.MediaConfig=d;var f=function(){function e(e){this.cellSpacing=8,e&&(this.cellSpacing=e.cellSpacing&&typeof e.cellSpacing==`number`?e.cellSpacing:this.cellSpacing)}return e.prototype.toJSON=function(){return{cellSpacing:this.cellSpacing}},e}();e.TableConfig=f;var p=function(){function e(e){this.size=n.TextSize.Default,this.color=n.TextColor.Default,this.isSubtle=!1,this.weight=n.TextWeight.Default,this.parse(e)}return e.prototype.parse=function(e){e&&(this.size=o(n.TextSize,e.size,this.size),this.color=o(n.TextColor,e.color,this.color),this.isSubtle=e.isSubtle!==void 0&&typeof e.isSubtle==`boolean`?e.isSubtle:this.isSubtle,this.weight=o(n.TextWeight,e.weight,this.getDefaultWeight()))},e.prototype.getDefaultWeight=function(){return n.TextWeight.Default},e.prototype.toJSON=function(){return{size:n.TextSize[this.size],color:n.TextColor[this.color],isSubtle:this.isSubtle,weight:n.TextWeight[this.weight]}},e}();e.BaseTextDefinition=p;var m=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.fontType=n.FontType.Default,t}return r.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.fontType=o(n.FontType,t.fontType,this.fontType))},r}(p);e.TextStyleDefinition=m;var h=function(){function e(e){this.default=new m,this.heading=new m({size:`Large`,weight:`Bolder`}),this.columnHeader=new m({weight:`Bolder`}),e&&(this.heading.parse(e.heading),this.columnHeader.parse(e.columnHeader))}return e.prototype.getStyleByName=function(e){switch(e.toLowerCase()){case`heading`:return this.heading;case`columnHeader`:return this.columnHeader;default:return this.default}},e}();e.TextStyleSet=h;var g=function(){function e(e){e&&(this.headingLevel=r.parseNumber(e.headingLevel))}return e}();e.TextBlockConfig=g;var _=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.suffix=` *`,t.suffixColor=n.TextColor.Attention,t}return r.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.suffix=t.suffix||this.suffix,this.suffixColor=o(n.TextColor,t.suffixColor,this.suffixColor))},r.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.suffix=this.suffix,t.suffixColor=n.TextColor[this.suffixColor],t},r}(p);e.RequiredInputLabelTextDefinition=_;var v=function(){function e(e){this.inputSpacing=n.Spacing.Small,this.width=30,this.requiredInputs=new _,this.optionalInputs=new p,e&&(this.inputSpacing=o(n.Spacing,e.inputSpacing,this.inputSpacing),this.requiredInputs=new _(e.requiredInputs),this.optionalInputs=new p(e.optionalInputs),this.width=e.width==null?this.width:e.width)}return e}();e.InputLabelConfig=v;var y=function(){function e(e){this.label=new v,this.errorMessage=new p({color:n.TextColor.Attention}),this.debounceTimeInMilliSeconds=0,this.allowRevealOnHoverStyle=!1,e&&(this.label=new v(e.label),this.errorMessage=new p(e.errorMessage),this.allowRevealOnHoverStyle=e.allowRevealOnHoverStyle||this.allowRevealOnHoverStyle,this.debounceTimeInMilliSeconds=e.debounceTimeInMilliSeconds)}return e}();e.InputConfig=y;var b=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.wrap=!0,t}return n.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.wrap=t.wrap==null?this.wrap:t.wrap)},n.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.wrap=this.wrap,t},n}(p);e.FactTextDefinition=b;var x=function(e){t(r,e);function r(t){var r=e.call(this,t)||this;return r.maxWidth=150,r.weight=n.TextWeight.Bolder,t&&(r.maxWidth=t.maxWidth==null?r.maxWidth:t.maxWidth,r.weight=o(n.TextWeight,t.weight,n.TextWeight.Bolder)),r}return r.prototype.getDefaultWeight=function(){return n.TextWeight.Bolder},r}(b);e.FactTitleDefinition=x;var S=function(){function e(e){this.title=new x,this.value=new b,this.spacing=10,e&&(this.title=new x(e.title),this.value=new b(e.value),this.spacing=e.spacing&&e.spacing!=null?e.spacing&&e.spacing:this.spacing)}return e}();e.FactSetConfig=S;var C=function(){function e(e){this.actionMode=n.ShowCardActionMode.Inline,this.inlineTopMargin=16,this.style=n.ContainerStyle.Emphasis,e&&(this.actionMode=o(n.ShowCardActionMode,e.actionMode,n.ShowCardActionMode.Inline),this.inlineTopMargin=e.inlineTopMargin==null?this.inlineTopMargin:e.inlineTopMargin,this.style=e.style&&typeof e.style==`string`?e.style:n.ContainerStyle.Emphasis)}return e.prototype.toJSON=function(){return{actionMode:n.ShowCardActionMode[this.actionMode],inlineTopMargin:this.inlineTopMargin,style:this.style}},e}();e.ShowCardActionConfig=C;var w=function(){function e(e){if(this.maxActions=5,this.spacing=n.Spacing.Default,this.buttonSpacing=20,this.showCard=new C,this.preExpandSingleShowCardAction=!1,this.actionsOrientation=n.Orientation.Horizontal,this.actionAlignment=n.ActionAlignment.Left,this.iconPlacement=n.ActionIconPlacement.LeftOfTitle,this.allowTitleToWrap=!1,this.iconSize=16,e){this.maxActions=e.maxActions==null?this.maxActions:e.maxActions,this.spacing=o(n.Spacing,e.spacing&&e.spacing,n.Spacing.Default),this.buttonSpacing=e.buttonSpacing==null?this.buttonSpacing:e.buttonSpacing,this.showCard=new C(e.showCard),this.preExpandSingleShowCardAction=r.parseBool(e.preExpandSingleShowCardAction,!1),this.actionsOrientation=o(n.Orientation,e.actionsOrientation,n.Orientation.Horizontal),this.actionAlignment=o(n.ActionAlignment,e.actionAlignment,n.ActionAlignment.Left),this.iconPlacement=o(n.ActionIconPlacement,e.iconPlacement,n.ActionIconPlacement.LeftOfTitle),this.allowTitleToWrap=e.allowTitleToWrap==null?this.allowTitleToWrap:e.allowTitleToWrap;try{var t=i.SizeAndUnit.parse(e.iconSize);t.unit===n.SizeUnit.Pixel&&(this.iconSize=t.physicalSize)}catch{}}}return e.prototype.toJSON=function(){return{maxActions:this.maxActions,spacing:n.Spacing[this.spacing],buttonSpacing:this.buttonSpacing,showCard:this.showCard,preExpandSingleShowCardAction:this.preExpandSingleShowCardAction,actionsOrientation:n.Orientation[this.actionsOrientation],actionAlignment:n.ActionAlignment[this.actionAlignment]}},e}();e.ActionsConfig=w;var T=function(){function e(e){this.default=new c,this.dark=new c,this.light=new c,this.accent=new c,this.good=new c,this.warning=new c,this.attention=new c,this.parse(e)}return e.prototype.parseSingleColor=function(e,t){e&&this[t].parse(e[t])},e.prototype.parse=function(e){e&&(this.parseSingleColor(e,`default`),this.parseSingleColor(e,`dark`),this.parseSingleColor(e,`light`),this.parseSingleColor(e,`accent`),this.parseSingleColor(e,`good`),this.parseSingleColor(e,`warning`),this.parseSingleColor(e,`attention`))},e}();e.ColorSetDefinition=T;var E=function(){function e(e){this.foregroundColors=new T({default:{default:`#333333`,subtle:`#EE333333`},dark:{default:`#000000`,subtle:`#66000000`},light:{default:`#FFFFFF`,subtle:`#33000000`},accent:{default:`#2E89FC`,subtle:`#882E89FC`},good:{default:`#028A02`,subtle:`#DD027502`},warning:{default:`#E69500`,subtle:`#DDE69500`},attention:{default:`#CC3300`,subtle:`#DDCC3300`}}),this.parse(e)}return e.prototype.parse=function(e){e&&(this.backgroundColor=e.backgroundColor,this.foregroundColors.parse(e.foregroundColors),this.highlightBackgroundColor=e.highlightBackgroundColor,this.highlightForegroundColor=e.highlightForegroundColor,this.borderColor=e.borderColor)},Object.defineProperty(e.prototype,`isBuiltIn`,{get:function(){return!1},enumerable:!1,configurable:!0}),e}();e.ContainerStyleDefinition=E;var D=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,`isBuiltIn`,{get:function(){return!0},enumerable:!1,configurable:!0}),n}(E),O=function(){function e(e){if(this._allStyles={},this._allStyles[n.ContainerStyle.Default]=new D,this._allStyles[n.ContainerStyle.Emphasis]=new D,this._allStyles[n.ContainerStyle.Accent]=new D,this._allStyles[n.ContainerStyle.Good]=new D,this._allStyles[n.ContainerStyle.Attention]=new D,this._allStyles[n.ContainerStyle.Warning]=new D,e){this._allStyles[n.ContainerStyle.Default].parse(e[n.ContainerStyle.Default]),this._allStyles[n.ContainerStyle.Emphasis].parse(e[n.ContainerStyle.Emphasis]),this._allStyles[n.ContainerStyle.Accent].parse(e[n.ContainerStyle.Accent]),this._allStyles[n.ContainerStyle.Good].parse(e[n.ContainerStyle.Good]),this._allStyles[n.ContainerStyle.Attention].parse(e[n.ContainerStyle.Attention]),this._allStyles[n.ContainerStyle.Warning].parse(e[n.ContainerStyle.Warning]);var t=e.customStyles;if(t&&Array.isArray(t))for(var r=0,i=t;r<i.length;r++){var a=i[r];if(a){var o=a.name;o&&typeof o==`string`&&(this._allStyles.hasOwnProperty(o)?this._allStyles[o].parse(a.style):this._allStyles[o]=new E(a.style))}}}}return e.prototype.toJSON=function(){var e=this,t=[];Object.keys(this._allStyles).forEach(function(n){e._allStyles[n].isBuiltIn||t.push({name:n,style:e._allStyles[n]})});var n={default:this.default,emphasis:this.emphasis};return t.length>0&&(n.customStyles=t),n},e.prototype.getStyleByName=function(e,t){return e&&this._allStyles.hasOwnProperty(e)?this._allStyles[e]:t||this._allStyles[n.ContainerStyle.Default]},Object.defineProperty(e.prototype,`default`,{get:function(){return this._allStyles[n.ContainerStyle.Default]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`emphasis`,{get:function(){return this._allStyles[n.ContainerStyle.Emphasis]},enumerable:!1,configurable:!0}),e}();e.ContainerStyleSet=O;var k=function(){function e(e){this.fontFamily=`Segoe UI,Segoe,Segoe WP,Helvetica Neue,Helvetica,sans-serif`,this.fontSizes={small:12,default:14,medium:17,large:21,extraLarge:26},this.fontWeights={lighter:200,default:400,bolder:600},e&&(this.fontFamily=e)}return e.prototype.parse=function(e){this.fontFamily=e.fontFamily||this.fontFamily,this.fontSizes={small:e.fontSizes&&e.fontSizes.small||this.fontSizes.small,default:e.fontSizes&&e.fontSizes.default||this.fontSizes.default,medium:e.fontSizes&&e.fontSizes.medium||this.fontSizes.medium,large:e.fontSizes&&e.fontSizes.large||this.fontSizes.large,extraLarge:e.fontSizes&&e.fontSizes.extraLarge||this.fontSizes.extraLarge},this.fontWeights={lighter:e.fontWeights&&e.fontWeights.lighter||this.fontWeights.lighter,default:e.fontWeights&&e.fontWeights.default||this.fontWeights.default,bolder:e.fontWeights&&e.fontWeights.bolder||this.fontWeights.bolder}},e.monospace=new e(`'Courier New', Courier, monospace`),e}();e.FontTypeDefinition=k;var A=function(){function e(e){this.default=new k,this.monospace=new k(`'Courier New', Courier, monospace`),e&&(this.default.parse(e.default),this.monospace.parse(e.monospace))}return e.prototype.getStyleDefinition=function(e){switch(e){case n.FontType.Monospace:return this.monospace;case n.FontType.Default:default:return this.default}},e}();e.FontTypeSet=A;var j=function(){function e(e){this.maxCarouselPages=10,this.minAutoplayDelay=5e3,e&&(this.maxCarouselPages=e.maxCarouselPages==null?this.maxCarouselPages:e.maxCarouselPages,this.minAutoplayDelay=e.minAutoplayDelay==null?this.minAutoplayDelay:e.minAutoplayDelay)}return e.prototype.toJSON=function(){return{maxCarouselPages:this.maxCarouselPages,minAutoplayDelay:this.minAutoplayDelay}},e}();e.CarouselConfig=j;var M=function(){function e(e){this.hostCapabilities=new a.HostCapabilities,this.choiceSetInputValueSeparator=`,`,this.supportsInteractivity=!0,this.spacing={small:3,default:8,medium:20,large:30,extraLarge:40,padding:15},this.separator={lineThickness:1,lineColor:`#EEEEEE`},this.imageSizes={small:40,medium:80,large:160},this.containerStyles=new O,this.inputs=new y,this.actions=new w,this.adaptiveCard=new l,this.imageSet=new u,this.media=new d,this.factSet=new S,this.table=new f,this.textStyles=new h,this.textBlock=new g,this.carousel=new j,this.alwaysAllowBleed=!1,e&&((typeof e==`string`||e instanceof String)&&(e=JSON.parse(e)),this.choiceSetInputValueSeparator=e&&typeof e.choiceSetInputValueSeparator==`string`?e.choiceSetInputValueSeparator:this.choiceSetInputValueSeparator,this.supportsInteractivity=e&&typeof e.supportsInteractivity==`boolean`?e.supportsInteractivity:this.supportsInteractivity,this._legacyFontType=new k,this._legacyFontType.parse(e),e.fontTypes&&(this.fontTypes=new A(e.fontTypes)),e.lineHeights&&(this.lineHeights={small:e.lineHeights.small,default:e.lineHeights.default,medium:e.lineHeights.medium,large:e.lineHeights.large,extraLarge:e.lineHeights.extraLarge}),this.imageSizes={small:e.imageSizes&&e.imageSizes.small||this.imageSizes.small,medium:e.imageSizes&&e.imageSizes.medium||this.imageSizes.medium,large:e.imageSizes&&e.imageSizes.large||this.imageSizes.large},this.containerStyles=new O(e.containerStyles),this.spacing={small:e.spacing&&e.spacing.small||this.spacing.small,default:e.spacing&&e.spacing.default||this.spacing.default,medium:e.spacing&&e.spacing.medium||this.spacing.medium,large:e.spacing&&e.spacing.large||this.spacing.large,extraLarge:e.spacing&&e.spacing.extraLarge||this.spacing.extraLarge,padding:e.spacing&&e.spacing.padding||this.spacing.padding},this.separator={lineThickness:e.separator&&e.separator.lineThickness||this.separator.lineThickness,lineColor:e.separator&&e.separator.lineColor||this.separator.lineColor},this.inputs=new y(e.inputs||this.inputs),this.actions=new w(e.actions||this.actions),this.adaptiveCard=new l(e.adaptiveCard||this.adaptiveCard),this.imageSet=new u(e.imageSet),this.factSet=new S(e.factSet),this.textStyles=new h(e.textStyles),this.textBlock=new g(e.textBlock),this.carousel=new j(e.carousel))}return e.prototype.getFontTypeDefinition=function(e){return this.fontTypes?this.fontTypes.getStyleDefinition(e):e===n.FontType.Monospace?k.monospace:this._legacyFontType},e.prototype.getEffectiveSpacing=function(e){switch(e){case n.Spacing.Small:return this.spacing.small;case n.Spacing.Default:return this.spacing.default;case n.Spacing.Medium:return this.spacing.medium;case n.Spacing.Large:return this.spacing.large;case n.Spacing.ExtraLarge:return this.spacing.extraLarge;case n.Spacing.Padding:return this.spacing.padding;default:return 0}},e.prototype.paddingDefinitionToSpacingDefinition=function(e){return new i.SpacingDefinition(this.getEffectiveSpacing(e.top),this.getEffectiveSpacing(e.right),this.getEffectiveSpacing(e.bottom),this.getEffectiveSpacing(e.left))},e.prototype.makeCssClassNames=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,i=e;r<i.length;r++){var a=i[r];n.push((this.cssClassNamePrefix?this.cssClassNamePrefix+`-`:``)+a)}return n},e.prototype.makeCssClassName=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.makeCssClassNames.apply(this,e).join(` `)||``},Object.defineProperty(e.prototype,`fontFamily`,{get:function(){return this._legacyFontType.fontFamily},set:function(e){this._legacyFontType.fontFamily=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`fontSizes`,{get:function(){return this._legacyFontType.fontSizes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`fontWeights`,{get:function(){return this._legacyFontType.fontWeights},enumerable:!1,configurable:!0}),e}();e.HostConfig=M,e.defaultHostConfig=new M({supportsInteractivity:!0,spacing:{small:10,default:20,medium:30,large:40,extraLarge:50,padding:20},separator:{lineThickness:1,lineColor:`#EEEEEE`},fontTypes:{default:{fontFamily:`'Segoe UI', Tahoma, Geneva, Verdana, sans-serif`,fontSizes:{small:12,default:14,medium:17,large:21,extraLarge:26},fontWeights:{lighter:200,default:400,bolder:600}},monospace:{fontFamily:`'Courier New', Courier, monospace`,fontSizes:{small:12,default:14,medium:17,large:21,extraLarge:26},fontWeights:{lighter:200,default:400,bolder:600}}},imageSizes:{small:40,medium:80,large:160},containerStyles:{default:{backgroundColor:`#FFFFFF`,foregroundColors:{default:{default:`#333333`,subtle:`#EE333333`},dark:{default:`#000000`,subtle:`#66000000`},light:{default:`#FFFFFF`,subtle:`#33000000`},accent:{default:`#2E89FC`,subtle:`#882E89FC`},attention:{default:`#cc3300`,subtle:`#DDcc3300`},good:{default:`#028A02`,subtle:`#DD027502`},warning:{default:`#e69500`,subtle:`#DDe69500`}}},emphasis:{backgroundColor:`#08000000`,foregroundColors:{default:{default:`#333333`,subtle:`#EE333333`},dark:{default:`#000000`,subtle:`#66000000`},light:{default:`#FFFFFF`,subtle:`#33000000`},accent:{default:`#2E89FC`,subtle:`#882E89FC`},attention:{default:`#cc3300`,subtle:`#DDcc3300`},good:{default:`#028A02`,subtle:`#DD027502`},warning:{default:`#e69500`,subtle:`#DDe69500`}}},accent:{backgroundColor:`#C7DEF9`,foregroundColors:{default:{default:`#333333`,subtle:`#EE333333`},dark:{default:`#000000`,subtle:`#66000000`},light:{default:`#FFFFFF`,subtle:`#33000000`},accent:{default:`#2E89FC`,subtle:`#882E89FC`},attention:{default:`#cc3300`,subtle:`#DDcc3300`},good:{default:`#028A02`,subtle:`#DD027502`},warning:{default:`#e69500`,subtle:`#DDe69500`}}},good:{backgroundColor:`#CCFFCC`,foregroundColors:{default:{default:`#333333`,subtle:`#EE333333`},dark:{default:`#000000`,subtle:`#66000000`},light:{default:`#FFFFFF`,subtle:`#33000000`},accent:{default:`#2E89FC`,subtle:`#882E89FC`},attention:{default:`#cc3300`,subtle:`#DDcc3300`},good:{default:`#028A02`,subtle:`#DD027502`},warning:{default:`#e69500`,subtle:`#DDe69500`}}},attention:{backgroundColor:`#FFC5B2`,foregroundColors:{default:{default:`#333333`,subtle:`#EE333333`},dark:{default:`#000000`,subtle:`#66000000`},light:{default:`#FFFFFF`,subtle:`#33000000`},accent:{default:`#2E89FC`,subtle:`#882E89FC`},attention:{default:`#cc3300`,subtle:`#DDcc3300`},good:{default:`#028A02`,subtle:`#DD027502`},warning:{default:`#e69500`,subtle:`#DDe69500`}}},warning:{backgroundColor:`#FFE2B2`,foregroundColors:{default:{default:`#333333`,subtle:`#EE333333`},dark:{default:`#000000`,subtle:`#66000000`},light:{default:`#FFFFFF`,subtle:`#33000000`},accent:{default:`#2E89FC`,subtle:`#882E89FC`},attention:{default:`#cc3300`,subtle:`#DDcc3300`},good:{default:`#028A02`,subtle:`#DD027502`},warning:{default:`#e69500`,subtle:`#DDe69500`}}}},inputs:{label:{requiredInputs:{weight:n.TextWeight.Bolder,suffix:` *`,suffixColor:n.TextColor.Attention},optionalInputs:{weight:n.TextWeight.Bolder}},errorMessage:{color:n.TextColor.Attention,weight:n.TextWeight.Bolder},debounceTimeInMilliSeconds:250},actions:{maxActions:5,spacing:n.Spacing.Default,buttonSpacing:10,showCard:{actionMode:n.ShowCardActionMode.Inline,inlineTopMargin:16},actionsOrientation:n.Orientation.Horizontal,actionAlignment:n.ActionAlignment.Left},adaptiveCard:{allowCustomStyle:!1},imageSet:{imageSize:n.Size.Medium,maxImageHeight:100},factSet:{title:{color:n.TextColor.Default,size:n.TextSize.Default,isSubtle:!1,weight:n.TextWeight.Bolder,wrap:!0,maxWidth:150},value:{color:n.TextColor.Default,size:n.TextSize.Default,isSubtle:!1,weight:n.TextWeight.Default,wrap:!0},spacing:10},carousel:{maxCarouselPages:10,minAutoplayDuration:5e3},textBlock:{headingLevel:2}})})),Vs=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.formatText=void 0;var n=function(){function e(e){this._regularExpression=e}return e.prototype.format=function(e,t){var n;if(t){for(var r=t;(n=this._regularExpression.exec(t))!=null;)r=r.replace(n[0],this.internalFormat(e,n));return r}else return t},e}(),r=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.internalFormat=function(e,t){var n=new Date(Date.parse(t[1])),r=t[2]===void 0?`compact`:t[2].toLowerCase();return r===`compact`?n.toLocaleDateString():n.toLocaleDateString(e,{day:`numeric`,weekday:r,month:r,year:`numeric`})},n}(n),i=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.internalFormat=function(e,t){return new Date(Date.parse(t[1])).toLocaleTimeString(e,{hour:`numeric`,minute:`2-digit`})},n}(n);function a(e,t){for(var n=[new r(/\{{2}DATE\((\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|(?:(?:-|\+)\d{2}:\d{2})))(?:, ?(COMPACT|LONG|SHORT))?\)\}{2}/g),new i(/\{{2}TIME\((\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|(?:(?:-|\+)\d{2}:\d{2})))\)\}{2}/g)],a=t,o=0,s=n;o<s.length;o++)a=s[o].format(e,a);return a}e.formatText=a})),Hs=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(e,`__esModule`,{value:!0}),e.CardObject=e.ValidationResults=void 0;var r=Ps(),i=Ls(),a=Fs(),o=zs(),s=Rs(),c=function(){function e(){this.allIds={},this.validationEvents=[]}return e.prototype.addFailure=function(e,t,n){this.validationEvents.push({phase:r.ValidationPhase.Validation,source:e,event:t,message:n})},e}();e.ValidationResults=c,e.CardObject=function(e){t(l,e);function l(){var t=e!==null&&e.apply(this,arguments)||this;return t._shouldFallback=!1,t}return l.prototype.getSchemaKey=function(){return this.getJsonTypeName()},Object.defineProperty(l.prototype,`requires`,{get:function(){return this.getValue(l.requiresProperty)},enumerable:!1,configurable:!0}),l.prototype.contains=function(e){return this._renderedElement?this._renderedElement.contains(e):!1},l.prototype.preProcessPropertyValue=function(e,t){var n=t===void 0?this.getValue(e):t;if(a.GlobalSettings.allowPreProcessingPropertyValues){for(var r=this;r&&!r.onPreProcessPropertyValue;)r=r.parent;if(r&&r.onPreProcessPropertyValue)return r.onPreProcessPropertyValue(this,e,n)}return n},l.prototype.setParent=function(e){this._parent=e},l.prototype.setShouldFallback=function(e){this._shouldFallback=e},l.prototype.shouldFallback=function(){return this._shouldFallback||!this.requires.areAllMet(this.hostConfig.hostCapabilities)},l.prototype.getRootObject=function(){for(var e=this;e.parent;)e=e.parent;return e},l.prototype.internalValidateProperties=function(e){this.id&&(e.allIds.hasOwnProperty(this.id)?(e.allIds[this.id]===1&&e.addFailure(this,r.ValidationEvent.DuplicateId,i.Strings.errors.duplicateId(this.id)),e.allIds[this.id]+=1):e.allIds[this.id]=1)},l.prototype.validateProperties=function(){var e=new c;return this.internalValidateProperties(e),e},l.prototype.findDOMNodeOwner=function(e){return this.contains(e)?this:void 0},l.prototype.releaseDOMResources=function(){},Object.defineProperty(l.prototype,`parent`,{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,`renderedElement`,{get:function(){return this._renderedElement},enumerable:!1,configurable:!0}),l.typeNameProperty=new s.StringProperty(s.Versions.v1_0,`type`,void 0,void 0,void 0,function(e){return e.getJsonTypeName()}),l.idProperty=new s.StringProperty(s.Versions.v1_0,`id`),l.requiresProperty=new s.SerializableObjectProperty(s.Versions.v1_2,`requires`,o.HostCapabilities,!1,new o.HostCapabilities),n([(0,s.property)(l.idProperty)],l.prototype,`id`,void 0),n([(0,s.property)(l.requiresProperty)],l.prototype,`requires`,null),l}(s.SerializableObject)})),Us=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GlobalRegistry=e.CardObjectRegistry=void 0;var t=Rs(),n=function(){function e(){this._items={}}return e.prototype.findByName=function(e){return this._items.hasOwnProperty(e)?this._items[e]:void 0},e.prototype.clear=function(){this._items={}},e.prototype.copyTo=function(e){for(var t=Object.keys(this._items),n=0,r=t;n<r.length;n++){var i=r[n],a=this._items[i];e.register(a.typeName,a.objectType,a.schemaVersion)}},e.prototype.register=function(e,n,r){r===void 0&&(r=t.Versions.v1_0);var i=this.findByName(e);i===void 0?i={typeName:e,objectType:n,schemaVersion:r}:i.objectType=n,this._items[e]=i},e.prototype.unregister=function(e){delete this._items[e]},e.prototype.createInstance=function(e,t){var n=this.findByName(e);return n&&n.schemaVersion.compareTo(t)<=0?new n.objectType:void 0},e.prototype.getItemCount=function(){return Object.keys(this._items).length},e.prototype.getItemAt=function(e){var t=this;return Object.keys(this._items).map(function(e){return t._items[e]})[e]},e}();e.CardObjectRegistry=n,e.GlobalRegistry=function(){function e(){}return e.populateWithDefaultElements=function(t){t.clear(),e.defaultElements.copyTo(t)},e.populateWithDefaultActions=function(t){t.clear(),e.defaultActions.copyTo(t)},Object.defineProperty(e,`elements`,{get:function(){return e._elements||(e._elements=new n,e.populateWithDefaultElements(e._elements)),e._elements},enumerable:!1,configurable:!0}),Object.defineProperty(e,`actions`,{get:function(){return e._actions||(e._actions=new n,e.populateWithDefaultActions(e._actions)),e._actions},enumerable:!1,configurable:!0}),e.reset=function(){e._elements=void 0,e._actions=void 0},e.defaultElements=new n,e.defaultActions=new n,e}()})),Ws=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Constants=void 0,e.Constants=function(){function e(){}return e.keys={tab:`Tab`,enter:`Enter`,escape:`Escape`,space:` `,up:`ArrowUp`,down:`ArrowDown`,delete:`Delete`},e}()})),Gs=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MenuItem=void 0;var t=Bs(),n=Ws();e.MenuItem=function(){function e(e,t){this._isEnabled=!0,this.key=e,this._value=t}return e.prototype.click=function(){this.isEnabled&&this.onClick&&this.onClick(this)},e.prototype.updateCssClasses=function(){if(this._element){var e=this._hostConfig?this._hostConfig:t.defaultHostConfig;this._element.className=e.makeCssClassName(`ac-ctrl`),this._element.classList.add(e.makeCssClassName(this.isEnabled?`ac-ctrl-dropdown-item`:`ac-ctrl-dropdown-item-disabled`)),this.isEnabled||this._element.classList.add(e.makeCssClassName(`ac-disabled`))}},e.prototype.toString=function(){return this.value},e.prototype.render=function(e){var t=this;return this._hostConfig=e,this._element||(this._element=document.createElement(`span`),this._element.innerText=this.value,this._element.setAttribute(`role`,`menuitem`),this.isEnabled||this._element.setAttribute(`aria-disabled`,`true`),this._element.setAttribute(`aria-current`,`false`),this._element.onmouseup=function(e){t.click()},this._element.onkeydown=function(e){e.key===n.Constants.keys.enter&&(e.cancelBubble=!0,t.click())},this.updateCssClasses()),this._element},Object.defineProperty(e.prototype,`value`,{get:function(){return this._value},set:function(e){this._value=e,this._element&&(this._element.innerText=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`isEnabled`,{get:function(){return this._isEnabled},set:function(e){this._isEnabled!==e&&(this._isEnabled=e,this.updateCssClasses())},enumerable:!1,configurable:!0}),e}()})),Ks=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Collection=void 0,e.Collection=function(){function e(){this._items=[]}return e.prototype.get=function(e){return this._items[e]},e.prototype.add=function(e){this._items.push(e),this.onItemAdded&&this.onItemAdded(e)},e.prototype.remove=function(e){var t=this._items.indexOf(e);t>=0&&(this._items=this._items.splice(t,1),this.onItemRemoved&&this.onItemRemoved(e))},e.prototype.indexOf=function(e){return this._items.indexOf(e)},Object.defineProperty(e.prototype,`length`,{get:function(){return this._items.length},enumerable:!1,configurable:!0}),e}()})),qs=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PopupControl=void 0;var t=Ws(),n=Is(),r=Bs();e.PopupControl=function(){function e(){this._isOpen=!1}return e.prototype.keyDown=function(e){switch(e.key){case t.Constants.keys.escape:this.closePopup(!0);break}},e.prototype.render=function(e){var t=this,n=document.createElement(`div`);return n.tabIndex=0,n.className=this.hostConfig.makeCssClassName(`ac-ctrl`,`ac-ctrl-popup-container`),n.setAttribute(`role`,`dialog`),n.setAttribute(`aria-modal`,`true`),n.onkeydown=function(e){return t.keyDown(e),!e.cancelBubble},n.appendChild(this.renderContent()),n},e.prototype.focus=function(){this._popupElement&&this._popupElement.firstElementChild.focus()},e.prototype.popup=function(e){var t,r,i,a,o,s=this;if(!this._isOpen){this._overlayElement=document.createElement(`div`),this._overlayElement.className=this.hostConfig.makeCssClassName(`ac-ctrl-overlay`),this._overlayElement.tabIndex=0,this._overlayElement.style.width=document.documentElement.scrollWidth+`px`,this._overlayElement.style.height=document.documentElement.scrollHeight+`px`,this._overlayElement.onfocus=function(e){s.closePopup(!0)},document.body.appendChild(this._overlayElement);var c=e.getBoundingClientRect();this._popupElement=this.render(c),(t=this._popupElement.classList).remove.apply(t,this.hostConfig.makeCssClassNames(`ac-ctrl-slide`,`ac-ctrl-slideLeftToRight`,`ac-ctrl-slideRightToLeft`,`ac-ctrl-slideTopToBottom`,`ac-ctrl-slideRightToLeft`)),window.addEventListener(`resize`,function(e){s.closePopup(!0)});var l=e.getAttribute(`aria-label`);l&&this._popupElement.setAttribute(`aria-label`,l),this._overlayElement.appendChild(this._popupElement);var u=this._popupElement.getBoundingClientRect(),d=window.innerHeight-c.bottom,f=c.top,p=window.innerWidth-c.right,m=c.left,h=c.left+n.getScrollX(),g;if(f<u.height&&d<u.height){var _=Math.min(u.height,window.innerHeight);if(this._popupElement.style.maxHeight=_+`px`,g=_<u.height?n.getScrollY():n.getScrollY()+c.top+(c.height-_)/2,m<u.width&&p<u.width){var v=Math.min(u.width,window.innerWidth);this._popupElement.style.maxWidth=v+`px`,h=v<u.width?n.getScrollX():n.getScrollX()+c.left+(c.width-v)/2}else p>=u.width?(h=n.getScrollX()+c.right,(r=this._popupElement.classList).add.apply(r,this.hostConfig.makeCssClassNames(`ac-ctrl-slide`,`ac-ctrl-slideLeftToRight`))):(h=n.getScrollX()+c.left-u.width,(i=this._popupElement.classList).add.apply(i,this.hostConfig.makeCssClassNames(`ac-ctrl-slide`,`ac-ctrl-slideRightToLeft`)))}else d>=u.height?(g=n.getScrollY()+c.bottom,(a=this._popupElement.classList).add.apply(a,this.hostConfig.makeCssClassNames(`ac-ctrl-slide`,`ac-ctrl-slideTopToBottom`))):(g=n.getScrollY()+c.top-u.height,(o=this._popupElement.classList).add.apply(o,this.hostConfig.makeCssClassNames(`ac-ctrl-slide`,`ac-ctrl-slideBottomToTop`))),p<u.width&&(h=n.getScrollX()+c.right-u.width);this._popupElement.style.left=h+`px`,this._popupElement.style.top=g+`px`,this._popupElement.focus(),this._isOpen=!0}},e.prototype.closePopup=function(e){this._isOpen&&(document.body.removeChild(this._overlayElement),this._isOpen=!1,this.onClose&&this.onClose(this,e))},Object.defineProperty(e.prototype,`hostConfig`,{get:function(){return this._hostConfig?this._hostConfig:r.defaultHostConfig},set:function(e){this._hostConfig=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`isOpen`,{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),e}()})),Js=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.PopupMenu=void 0;var n=Ws(),r=Ks();e.PopupMenu=function(e){t(i,e);function i(){var t=e!==null&&e.apply(this,arguments)||this;return t._items=new r.Collection,t._renderedItems=[],t._selectedIndex=-1,t}return i.prototype.renderContent=function(){var e=document.createElement(`div`);e.className=this.hostConfig.makeCssClassName(`ac-ctrl ac-popup`),e.setAttribute(`role`,`listbox`);for(var t=0;t<this._items.length;t++){var n=this._items.get(t).render(this.hostConfig);n.tabIndex=0,e.appendChild(n),t===this.selectedIndex&&n.focus(),this._renderedItems.push(n)}return e},i.prototype.keyDown=function(t){e.prototype.keyDown.call(this,t);var r=this._selectedIndex;switch(t.key){case n.Constants.keys.tab:this.closePopup(!0);break;case n.Constants.keys.up:r<=0?r=this._renderedItems.length-1:(r--,r<0&&(r=this._renderedItems.length-1)),this.selectedIndex=r,t.cancelBubble=!0;break;case n.Constants.keys.down:r<0?r=0:(r++,r>=this._renderedItems.length&&(r=0)),this.selectedIndex=r,t.cancelBubble=!0;break}},Object.defineProperty(i.prototype,`items`,{get:function(){return this._items},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,`selectedIndex`,{get:function(){return this._selectedIndex},set:function(e){e>=0&&e<this._renderedItems.length&&(this._renderedItems[e].focus(),this._selectedIndex=e)},enumerable:!1,configurable:!0}),i}(qs().PopupControl)})),Ys=e.t((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(Gs(),e),n(Js(),e)})),Xs=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},r=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},i=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(e,`__esModule`,{value:!0}),e.BackgroundImage=e.ContainerBase=e.StylableCardElementContainer=e.ContainerStyleProperty=e.ActionSet=e.ShowCardAction=e.HttpAction=e.HttpHeader=e.ToggleVisibilityAction=e.OpenUrlAction=e.DataQuery=e.ExecuteAction=e.UniversalAction=e.SubmitAction=e.SubmitActionBase=e.Action=e.TimeInput=e.TimeProperty=e.DateInput=e.NumberInput=e.FilteredChoiceSet=e.ChoiceSetInput=e.ChoiceSetInputDataQuery=e.Choice=e.ToggleInput=e.TextInput=e.Input=e.Media=e.YouTubePlayer=e.DailymotionPlayer=e.VimeoPlayer=e.IFrameMediaMediaPlayer=e.CustomMediaPlayer=e.HTML5MediaPlayer=e.MediaPlayer=e.MediaSource=e.CaptionSource=e.ContentSource=e.ImageSet=e.CardElementContainer=e.Image=e.FactSet=e.Fact=e.RichTextBlock=e.TextRun=e.TextBlock=e.BaseTextBlock=e.ActionProperty=e.CardElement=e.renderSeparation=void 0,e.SerializationContext=e.AdaptiveCard=e.Authentication=e.TokenExchangeResource=e.AuthCardButton=e.RefreshDefinition=e.RefreshActionProperty=e.ContainerWithActions=e.ColumnSet=e.Column=e.Container=void 0;var a=Ps(),o=Fs(),s=Is(),c=Bs(),l=Vs(),u=Hs(),d=Rs(),f=Us(),p=Ls(),m=Ys();function h(e){e.innerHTML=typeof window>`u`?``:window.trustedTypes?.emptyHTML??``}function g(e,t,n){if(t.spacing>0||t.lineThickness&&t.lineThickness>0){var r=document.createElement(`div`);r.className=e.makeCssClassName(`ac-`+(n===a.Orientation.Horizontal?`horizontal`:`vertical`)+`-separator`),r.setAttribute(`aria-hidden`,`true`);var i=t.lineColor?s.stringToCssColor(t.lineColor):``;return n===a.Orientation.Horizontal?t.lineThickness?(r.style.paddingTop=t.spacing/2+`px`,r.style.marginBottom=t.spacing/2+`px`,r.style.borderBottom=t.lineThickness+`px solid `+i):r.style.height=t.spacing+`px`:t.lineThickness?(r.style.paddingLeft=t.spacing/2+`px`,r.style.marginRight=t.spacing/2+`px`,r.style.borderRight=t.lineThickness+`px solid `+i):r.style.width=t.spacing+`px`,r.style.overflow=`hidden`,r.style.flex=`0 0 auto`,r}else return}e.renderSeparation=g;var _=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t._truncatedDueToOverflow=!1,t}return Object.defineProperty(r.prototype,`lang`,{get:function(){var e=this.getValue(r.langProperty);if(e)return e;if(this.parent)return this.parent.lang},set:function(e){this.setValue(r.langProperty,e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`isVisible`,{get:function(){return this.getValue(r.isVisibleProperty)},set:function(e){o.GlobalSettings.useAdvancedCardBottomTruncation&&!e&&this.undoOverflowTruncation(),this.isVisible!==e&&(this.setValue(r.isVisibleProperty,e),this.updateRenderedElementVisibility(),this._renderedElement&&Le(this)),this._renderedElement&&this._renderedElement.setAttribute(`aria-expanded`,e.toString())},enumerable:!1,configurable:!0}),r.prototype.internalRenderSeparator=function(){var e=g(this.hostConfig,{spacing:this.hostConfig.getEffectiveSpacing(this.spacing),lineThickness:this.separator?this.hostConfig.separator.lineThickness:void 0,lineColor:this.separator?this.hostConfig.separator.lineColor:void 0},this.separatorOrientation);if(o.GlobalSettings.alwaysBleedSeparators&&e&&this.separatorOrientation===a.Orientation.Horizontal){var t=this.getParentContainer();if(t&&t.getEffectivePadding()){var n=this.hostConfig.paddingDefinitionToSpacingDefinition(t.getEffectivePadding());e.style.marginLeft=`-`+n.left+`px`,e.style.marginRight=`-`+n.right+`px`}}return e},r.prototype.updateRenderedElementVisibility=function(){var e=this.isDesignMode()||this.isVisible?this._defaultRenderedElementDisplayMode:`none`;this._renderedElement&&(e?this._renderedElement.style.display=e:this._renderedElement.style.removeProperty(`display`)),this._separatorElement&&(this.parent&&this.parent.isFirstElement(this)?this._separatorElement.style.display=`none`:e?this._separatorElement.style.display=e:this._separatorElement.style.removeProperty(`display`))},r.prototype.hideElementDueToOverflow=function(){this._renderedElement&&this.isVisible&&(this._renderedElement.style.visibility=`hidden`,this.isVisible=!1,Le(this,!1))},r.prototype.showElementHiddenDueToOverflow=function(){this._renderedElement&&!this.isVisible&&(this._renderedElement.style.removeProperty(`visibility`),this.isVisible=!0,Le(this,!1))},r.prototype.handleOverflow=function(e){if(this.isVisible||this.isHiddenDueToOverflow()){var t=this.truncateOverflow(e);this._truncatedDueToOverflow=t||this._truncatedDueToOverflow,t?t&&!this.isVisible&&this.showElementHiddenDueToOverflow():this.hideElementDueToOverflow()}},r.prototype.resetOverflow=function(){var e=!1;return this._truncatedDueToOverflow&&(this.undoOverflowTruncation(),this._truncatedDueToOverflow=!1,e=!0),this.isHiddenDueToOverflow()&&this.showElementHiddenDueToOverflow(),e},r.prototype.getDefaultSerializationContext=function(){return new Ye},r.prototype.createPlaceholderElement=function(){var e=this.getEffectiveStyleDefinition(),t=s.stringToCssColor(e.foregroundColors.default.subtle),n=document.createElement(`div`);return n.style.border=`1px dashed `+t,n.style.padding=`4px`,n.style.minHeight=`32px`,n.style.fontSize=`10px`,t&&(n.style.color=t),n.innerText=p.Strings.defaults.emptyElementText(this.getJsonTypeName()),n},r.prototype.adjustRenderedElementSize=function(e){this.height===`auto`?e.style.flex=`0 0 auto`:e.style.flex=`1 1 auto`},r.prototype.updateInputsVisualState=function(e){var t=this.getAllInputs(),n=e?R.MouseEnterOnCard:R.MouseLeaveOnCard;t.forEach(function(e){return e.updateVisualState(n)})},r.prototype.isDisplayed=function(){return this._renderedElement!==void 0&&this.isVisible&&this._renderedElement.offsetHeight>0},r.prototype.overrideInternalRender=function(){return this.internalRender()},r.prototype.applyPadding=function(){if(this.separatorElement&&this.separatorOrientation===a.Orientation.Horizontal)if(o.GlobalSettings.alwaysBleedSeparators&&!this.isBleeding()){var e=new o.PaddingDefinition;this.getImmediateSurroundingPadding(e);var t=this.hostConfig.paddingDefinitionToSpacingDefinition(e);this.separatorElement.style.marginLeft=`-`+t.left+`px`,this.separatorElement.style.marginRight=`-`+t.right+`px`}else this.separatorElement.style.marginRight=`0`,this.separatorElement.style.marginLeft=`0`},r.prototype.truncateOverflow=function(e){return!1},r.prototype.undoOverflowTruncation=function(){},r.prototype.getDefaultPadding=function(){return new o.PaddingDefinition},r.prototype.getHasBackground=function(e){return e===void 0&&(e=!1),!1},r.prototype.getHasBorder=function(){return!1},r.prototype.getPadding=function(){return this._padding},r.prototype.setPadding=function(e){this._padding=e},r.prototype.shouldSerialize=function(e){return e.elementRegistry.findByName(this.getJsonTypeName())!==void 0},Object.defineProperty(r.prototype,`useDefaultSizing`,{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`separatorOrientation`,{get:function(){return a.Orientation.Horizontal},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`defaultStyle`,{get:function(){return a.ContainerStyle.Default},enumerable:!1,configurable:!0}),r.prototype.parse=function(t,n){e.prototype.parse.call(this,t,n||new Ye)},r.prototype.asString=function(){return``},r.prototype.isBleeding=function(){return!1},r.prototype.getEffectiveStyle=function(){return this.parent?this.parent.getEffectiveStyle():this.defaultStyle},r.prototype.getEffectiveStyleDefinition=function(){return this.hostConfig.containerStyles.getStyleByName(this.getEffectiveStyle())},r.prototype.getEffectiveTextStyleDefinition=function(){return this.parent?this.parent.getEffectiveTextStyleDefinition():this.hostConfig.textStyles.default},r.prototype.getForbiddenActionTypes=function(){return[]},r.prototype.getImmediateSurroundingPadding=function(e,t,n,r,i){if(t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=!0),i===void 0&&(i=!0),this.parent){var o=t&&this.parent.isTopElement(this),s=n&&this.parent.isRightMostElement(this),c=r&&this.parent.isBottomElement(this),l=i&&this.parent.isLeftMostElement(this),u=this.parent.getEffectivePadding();u&&(o&&u.top!==a.Spacing.None&&(e.top=u.top,o=!1),s&&u.right!==a.Spacing.None&&(e.right=u.right,s=!1),c&&u.bottom!==a.Spacing.None&&(e.bottom=u.bottom,c=!1),l&&u.left!==a.Spacing.None&&(e.left=u.left,l=!1)),(o||s||c||l)&&this.parent.getImmediateSurroundingPadding(e,o,s,c,l)}},r.prototype.getActionCount=function(){return 0},r.prototype.getActionAt=function(e){throw Error(p.Strings.errors.indexOutOfRange(e))},r.prototype.indexOfAction=function(e){for(var t=0;t<this.getActionCount();t++)if(this.getActionAt(t)===e)return t;return-1},r.prototype.remove=function(){return this.parent&&this.parent instanceof O?this.parent.removeItem(this):!1},r.prototype.render=function(){return this._renderedElement=this.overrideInternalRender(),this._separatorElement=this.internalRenderSeparator(),this._renderedElement?(this.id&&(this._renderedElement.id=this.id),this.customCssSelector&&this._renderedElement.classList.add(this.customCssSelector),this._renderedElement.style.boxSizing=`border-box`,this._defaultRenderedElementDisplayMode=this._renderedElement.style.display?this._renderedElement.style.display:void 0,this.adjustRenderedElementSize(this._renderedElement),this.updateLayout(!1)):this.isDesignMode()&&(this._renderedElement=this.createPlaceholderElement()),this._renderedElement},r.prototype.updateLayout=function(e){e===void 0&&(e=!0),this.updateRenderedElementVisibility(),this.applyPadding()},r.prototype.updateActionsEnabledState=function(){for(var e=this.getRootElement().getAllActions(),t=0,n=e;t<n.length;t++)n[t].updateEnabledState()},r.prototype.indexOf=function(e){return-1},r.prototype.isDesignMode=function(){var e=this.getRootElement();return e instanceof qe&&e.designMode},r.prototype.isFirstElement=function(e){return!0},r.prototype.isLastElement=function(e){return!0},r.prototype.isAtTheVeryLeft=function(){return this.parent?this.parent.isLeftMostElement(this)&&this.parent.isAtTheVeryLeft():!0},r.prototype.isAtTheVeryRight=function(){return this.parent?this.parent.isRightMostElement(this)&&this.parent.isAtTheVeryRight():!0},r.prototype.isAtTheVeryTop=function(){return this.parent?this.parent.isFirstElement(this)&&this.parent.isAtTheVeryTop():!0},r.prototype.isAtTheVeryBottom=function(){return this.parent?this.parent.isLastElement(this)&&this.parent.isAtTheVeryBottom():!0},r.prototype.isBleedingAtTop=function(){return!1},r.prototype.isBleedingAtBottom=function(){return!1},r.prototype.isLeftMostElement=function(e){return!0},r.prototype.isRightMostElement=function(e){return!0},r.prototype.isTopElement=function(e){return this.isFirstElement(e)},r.prototype.isBottomElement=function(e){return this.isLastElement(e)},r.prototype.isHiddenDueToOverflow=function(){return this._renderedElement!==void 0&&this._renderedElement.style.visibility===`hidden`},r.prototype.getRootElement=function(){return this.getRootObject()},r.prototype.getParentContainer=function(){for(var e=this.parent;e;){if(e instanceof ke)return e;e=e.parent}},r.prototype.getAllInputs=function(e){return e===void 0&&(e=!0),[]},r.prototype.getAllActions=function(){for(var e=[],t=0;t<this.getActionCount();t++){var n=this.getActionAt(t);n&&e.push(n)}return e},r.prototype.getResourceInformation=function(){return[]},r.prototype.getElementById=function(e){return this.id===e?this:void 0},r.prototype.getActionById=function(e){},r.prototype.getElementByIdFromAction=function(e){for(var t=void 0,n=0;n<this.getActionCount();n++){var r=this.getActionAt(n);if(r instanceof xe&&(t=r.card.getElementById(e),t))break}return t},r.prototype.getEffectivePadding=function(){return this.getPadding()||this.getDefaultPadding()},r.prototype.getEffectiveHorizontalAlignment=function(){return this.horizontalAlignment===void 0?this.parent?this.parent.getEffectiveHorizontalAlignment():a.HorizontalAlignment.Left:this.horizontalAlignment},Object.defineProperty(r.prototype,`hostConfig`,{get:function(){return this._hostConfig?this._hostConfig:this.parent?this.parent.hostConfig:c.defaultHostConfig},set:function(e){this._hostConfig=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`index`,{get:function(){return this.parent?this.parent.indexOf(this):0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`isInteractive`,{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`isStandalone`,{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`isInline`,{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`hasVisibleSeparator`,{get:function(){return this.parent&&this.separatorElement?!this.parent.isFirstElement(this)&&(this.isVisible||this.isDesignMode()):!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`separatorElement`,{get:function(){return this._separatorElement},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`parent`,{get:function(){return this._parent},enumerable:!1,configurable:!0}),r.langProperty=new d.StringProperty(d.Versions.v1_1,`lang`,!0,/^[a-z]{2,3}$/gi),r.isVisibleProperty=new d.BoolProperty(d.Versions.v1_2,`isVisible`,!0),r.separatorProperty=new d.BoolProperty(d.Versions.v1_0,`separator`,!1),r.heightProperty=new d.ValueSetProperty(d.Versions.v1_1,`height`,[{value:`auto`},{value:`stretch`}],`auto`),r.horizontalAlignmentProperty=new d.EnumProperty(d.Versions.v1_0,`horizontalAlignment`,a.HorizontalAlignment),r.spacingProperty=new d.EnumProperty(d.Versions.v1_0,`spacing`,a.Spacing,a.Spacing.Default),n([(0,d.property)(r.horizontalAlignmentProperty)],r.prototype,`horizontalAlignment`,void 0),n([(0,d.property)(r.spacingProperty)],r.prototype,`spacing`,void 0),n([(0,d.property)(r.separatorProperty)],r.prototype,`separator`,void 0),n([(0,d.property)(r.heightProperty)],r.prototype,`height`,void 0),n([(0,d.property)(r.langProperty)],r.prototype,`lang`,null),n([(0,d.property)(r.isVisibleProperty)],r.prototype,`isVisible`,null),r}(u.CardObject);e.CardElement=_;var v=function(e){t(n,e);function n(t,n,r){r===void 0&&(r=[]);var i=e.call(this,t,n,void 0)||this;return i.targetVersion=t,i.name=n,i.forbiddenActionTypes=r,i}return n.prototype.parse=function(e,t,n){var r=e;return n.parseAction(r,t[this.name],this.forbiddenActionTypes,r.isDesignMode())},n.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,n?n.toJSON(r):void 0,void 0,!0)},n}(d.PropertyDefinition);e.ActionProperty=v;var y=function(e){t(r,e);function r(t){var n=e.call(this)||this;return n.ariaHidden=!1,t&&(n.text=t),n}return r.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.remove(r.selectActionProperty)},Object.defineProperty(r.prototype,`text`,{get:function(){return this.getValue(r.textProperty)},set:function(e){this.setText(e)},enumerable:!1,configurable:!0}),r.prototype.getFontSize=function(e){switch(this.effectiveSize){case a.TextSize.Small:return e.fontSizes.small;case a.TextSize.Medium:return e.fontSizes.medium;case a.TextSize.Large:return e.fontSizes.large;case a.TextSize.ExtraLarge:return e.fontSizes.extraLarge;default:return e.fontSizes.default}},r.prototype.getColorDefinition=function(e,t){switch(t){case a.TextColor.Accent:return e.accent;case a.TextColor.Dark:return e.dark;case a.TextColor.Light:return e.light;case a.TextColor.Good:return e.good;case a.TextColor.Warning:return e.warning;case a.TextColor.Attention:return e.attention;default:return e.default}},r.prototype.setText=function(e){this.setValue(r.textProperty,e)},r.prototype.init=function(e){this.size=e.size,this.weight=e.weight,this.color=e.color,this.isSubtle=e.isSubtle},r.prototype.asString=function(){return this.text},r.prototype.applyStylesTo=function(e){var t=this.hostConfig.getFontTypeDefinition(this.effectiveFontType);t.fontFamily&&(e.style.fontFamily=t.fontFamily);var n;switch(this.effectiveSize){case a.TextSize.Small:n=t.fontSizes.small;break;case a.TextSize.Medium:n=t.fontSizes.medium;break;case a.TextSize.Large:n=t.fontSizes.large;break;case a.TextSize.ExtraLarge:n=t.fontSizes.extraLarge;break;default:n=t.fontSizes.default;break}e.style.fontSize=n+`px`;var r=this.getColorDefinition(this.getEffectiveStyleDefinition().foregroundColors,this.effectiveColor),i=s.stringToCssColor(this.effectiveIsSubtle?r.subtle:r.default);i&&(e.style.color=i);var o;switch(this.effectiveWeight){case a.TextWeight.Lighter:o=t.fontWeights.lighter;break;case a.TextWeight.Bolder:o=t.fontWeights.bolder;break;default:o=t.fontWeights.default;break}e.style.fontWeight=o.toString(),this.ariaHidden&&e.setAttribute(`aria-hidden`,`true`)},r.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return this.selectAction&&t.push(this.selectAction),t},Object.defineProperty(r.prototype,`effectiveColor`,{get:function(){return this.color===void 0?this.getEffectiveTextStyleDefinition().color:this.color},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`effectiveFontType`,{get:function(){return this.fontType===void 0?this.getEffectiveTextStyleDefinition().fontType:this.fontType},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`effectiveIsSubtle`,{get:function(){return this.isSubtle===void 0?this.getEffectiveTextStyleDefinition().isSubtle:this.isSubtle},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`effectiveSize`,{get:function(){return this.size===void 0?this.getEffectiveTextStyleDefinition().size:this.size},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`effectiveWeight`,{get:function(){return this.weight===void 0?this.getEffectiveTextStyleDefinition().weight:this.weight},enumerable:!1,configurable:!0}),r.textProperty=new d.StringProperty(d.Versions.v1_0,`text`,!0),r.sizeProperty=new d.EnumProperty(d.Versions.v1_0,`size`,a.TextSize),r.weightProperty=new d.EnumProperty(d.Versions.v1_0,`weight`,a.TextWeight),r.colorProperty=new d.EnumProperty(d.Versions.v1_0,`color`,a.TextColor),r.isSubtleProperty=new d.BoolProperty(d.Versions.v1_0,`isSubtle`),r.fontTypeProperty=new d.EnumProperty(d.Versions.v1_2,`fontType`,a.FontType),r.selectActionProperty=new v(d.Versions.v1_1,`selectAction`,[`Action.ShowCard`]),n([(0,d.property)(r.sizeProperty)],r.prototype,`size`,void 0),n([(0,d.property)(r.weightProperty)],r.prototype,`weight`,void 0),n([(0,d.property)(r.colorProperty)],r.prototype,`color`,void 0),n([(0,d.property)(r.fontTypeProperty)],r.prototype,`fontType`,void 0),n([(0,d.property)(r.isSubtleProperty)],r.prototype,`isSubtle`,void 0),n([(0,d.property)(r.textProperty)],r.prototype,`text`,null),n([(0,d.property)(r.selectActionProperty)],r.prototype,`selectAction`,void 0),r}(_);e.BaseTextBlock=y;var b=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.wrap=!1,t._treatAsPlainText=!0,t.useMarkdown=!0,t}return r.prototype.restoreOriginalContent=function(){if(this.renderedElement!==void 0){this.maxLines&&this.maxLines>0&&(this.renderedElement.style.maxHeight=this._computedLineHeight*this.maxLines+`px`);var e=r._ttRoundtripPolicy?.createHTML(this._originalInnerHtml)??this._originalInnerHtml;this.renderedElement.innerHTML=e}},r.prototype.truncateIfSupported=function(e){if(this.renderedElement!==void 0){var t=this.renderedElement.children,n=!t.length;if(n||t.length===1&&t[0].tagName.toLowerCase()===`p`&&!t[0].children.length){var r=n?this.renderedElement:t[0];return s.truncateText(r,e,this._computedLineHeight),!0}}return!1},r.prototype.setText=function(t){e.prototype.setText.call(this,t),this._processedText=void 0},r.prototype.internalRender=function(){var e=this;if(this._processedText=void 0,this.text){var t=this.preProcessPropertyValue(y.textProperty),n=this.hostConfig,i=void 0;if(this.forElementId){var a=document.createElement(`label`);a.htmlFor=this.forElementId,i=a}else i=document.createElement(`div`);if(i.classList.add(n.makeCssClassName(`ac-textBlock`)),i.style.overflow=`hidden`,this.applyStylesTo(i),this.style===`heading`){i.setAttribute(`role`,`heading`);var c=this.hostConfig.textBlock.headingLevel;c!==void 0&&c>0&&i.setAttribute(`aria-level`,c.toString())}if(this.selectAction&&n.supportsInteractivity&&(i.onclick=function(t){e.selectAction&&e.selectAction.isEffectivelyEnabled()&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},this.selectAction.setupElementForAccessibility(i),this.selectAction.isEffectivelyEnabled()&&i.classList.add(n.makeCssClassName(`ac-selectable`))),!this._processedText){this._treatAsPlainText=!0;var u=l.formatText(this.lang,t);if(this.useMarkdown&&u){o.GlobalSettings.allowMarkForTextHighlighting&&(u=u.replace(/<mark>/g,`===`).replace(/<\/mark>/g,`/==/`));var d=qe.applyMarkdown(u);if(d.didProcess&&d.outputHtml){if(this._processedText=d.outputHtml,this._treatAsPlainText=!1,o.GlobalSettings.allowMarkForTextHighlighting&&this._processedText){var f=``,p=this.getEffectiveStyleDefinition();p.highlightBackgroundColor&&(f+=`background-color: `+p.highlightBackgroundColor+`;`),p.highlightForegroundColor&&(f+=`color: `+p.highlightForegroundColor+`;`),f&&=`style="`+f+`"`,this._processedText=this._processedText.replace(/===/g,`<mark `+f+`>`).replace(/\/==\//g,`</mark>`)}}else this._processedText=u,this._treatAsPlainText=!0}else this._processedText=u,this._treatAsPlainText=!0}if(this._processedText||=``,this._treatAsPlainText)i.innerText=this._processedText;else{var m=r._ttMarkdownPolicy?.createHTML(this._processedText)??this._processedText;i.innerHTML=m}if(i.firstElementChild instanceof HTMLElement){var h=i.firstElementChild;h.style.marginTop=`0px`,h.style.width=`100%`,this.wrap||(h.style.overflow=`hidden`,h.style.textOverflow=`ellipsis`)}i.lastElementChild instanceof HTMLElement&&(i.lastElementChild.style.marginBottom=`0px`);for(var g=i.getElementsByTagName(`a`),_=function(t){t.classList.add(n.makeCssClassName(`ac-anchor`)),t.target=`_blank`,t.onclick=function(n){Ne(e,t,n)&&(n.preventDefault(),n.cancelBubble=!0)},t.oncontextmenu=function(n){return Ne(e,t,n)?(n.preventDefault(),n.cancelBubble=!0,!1):!0}},v=0,b=Array.from(g);v<b.length;v++){var x=b[v];_(x)}return this.wrap?(i.style.wordWrap=`break-word`,this.maxLines&&this.maxLines>0&&(i.style.overflow=`hidden`,s.isInternetExplorer()||!o.GlobalSettings.useWebkitLineClamp?i.style.maxHeight=this._computedLineHeight*this.maxLines+`px`:(i.style.removeProperty(`line-height`),i.style.display=`-webkit-box`,i.style.webkitBoxOrient=`vertical`,i.style.webkitLineClamp=this.maxLines.toString()))):(i.style.whiteSpace=`nowrap`,i.style.textOverflow=`ellipsis`),(o.GlobalSettings.useAdvancedTextBlockTruncation||o.GlobalSettings.useAdvancedCardBottomTruncation)&&(this._originalInnerHtml=i.innerHTML),i}else return},r.prototype.truncateOverflow=function(e){return e>=this._computedLineHeight?this.truncateIfSupported(e):!1},r.prototype.undoOverflowTruncation=function(){if(this.restoreOriginalContent(),o.GlobalSettings.useAdvancedTextBlockTruncation&&this.maxLines){var e=this._computedLineHeight*this.maxLines;this.truncateIfSupported(e)}},r.prototype.applyStylesTo=function(t){switch(e.prototype.applyStylesTo.call(this,t),this.getEffectiveHorizontalAlignment()){case a.HorizontalAlignment.Center:t.style.textAlign=`center`;break;case a.HorizontalAlignment.Right:t.style.textAlign=`end`;break;default:t.style.textAlign=`start`;break}var n=this.hostConfig.lineHeights;if(n)switch(this.effectiveSize){case a.TextSize.Small:this._computedLineHeight=n.small;break;case a.TextSize.Medium:this._computedLineHeight=n.medium;break;case a.TextSize.Large:this._computedLineHeight=n.large;break;case a.TextSize.ExtraLarge:this._computedLineHeight=n.extraLarge;break;default:this._computedLineHeight=n.default;break}else this._computedLineHeight=this.getFontSize(this.hostConfig.getFontTypeDefinition(this.effectiveFontType))*1.33;t.style.lineHeight=this._computedLineHeight+`px`},r.prototype.getJsonTypeName=function(){return`TextBlock`},r.prototype.getEffectiveTextStyleDefinition=function(){return this.style?this.hostConfig.textStyles.getStyleByName(this.style):e.prototype.getEffectiveTextStyleDefinition.call(this)},r.prototype.updateLayout=function(t){t===void 0&&(t=!1),e.prototype.updateLayout.call(this,t),o.GlobalSettings.useAdvancedTextBlockTruncation&&this.maxLines&&this.isDisplayed()&&(this.restoreOriginalContent(),this.truncateIfSupported(this._computedLineHeight*this.maxLines))},r.wrapProperty=new d.BoolProperty(d.Versions.v1_0,`wrap`,!1),r.maxLinesProperty=new d.NumProperty(d.Versions.v1_0,`maxLines`),r.styleProperty=new d.ValueSetProperty(d.Versions.v1_5,`style`,[{value:`default`},{value:`columnHeader`},{value:`heading`}]),r._ttMarkdownPolicy=typeof window>`u`?void 0:window.trustedTypes?.createPolicy(`adaptivecards#markdownPassthroughPolicy`,{createHTML:function(e){return e}}),r._ttRoundtripPolicy=typeof window>`u`?void 0:window.trustedTypes?.createPolicy(`adaptivecards#restoreContentsPolicy`,{createHTML:function(e){return e}}),n([(0,d.property)(r.wrapProperty)],r.prototype,`wrap`,void 0),n([(0,d.property)(r.maxLinesProperty)],r.prototype,`maxLines`,void 0),n([(0,d.property)(r.styleProperty)],r.prototype,`style`,void 0),r}(y);e.TextBlock=b;var x=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.italic=!1,t.strikethrough=!1,t.highlight=!1,t.underline=!1,t}return r.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.add(y.selectActionProperty)},r.prototype.internalRender=function(){var e=this;if(this.text){var t=this.preProcessPropertyValue(y.textProperty),n=this.hostConfig,r=l.formatText(this.lang,t);r||=``;var i=document.createElement(`span`);if(i.classList.add(n.makeCssClassName(`ac-textRun`)),this.applyStylesTo(i),this.selectAction&&n.supportsInteractivity){var a=document.createElement(`a`);a.classList.add(n.makeCssClassName(`ac-anchor`)),a.href=this.selectAction.getHref()||``,a.target=`_blank`,a.onclick=function(t){e.selectAction&&e.selectAction.isEffectivelyEnabled()&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},this.selectAction.setupElementForAccessibility(a),a.innerText=r,i.appendChild(a)}else i.innerText=r;return i}else return},r.prototype.applyStylesTo=function(t){if(e.prototype.applyStylesTo.call(this,t),this.italic&&(t.style.fontStyle=`italic`),this.strikethrough&&(t.style.textDecoration=`line-through`),this.highlight){var n=this.getColorDefinition(this.getEffectiveStyleDefinition().foregroundColors,this.effectiveColor),r=s.stringToCssColor(this.effectiveIsSubtle?n.highlightColors.subtle:n.highlightColors.default);r&&(t.style.backgroundColor=r)}this.underline&&(t.style.textDecoration=`underline`)},r.prototype.getJsonTypeName=function(){return`TextRun`},Object.defineProperty(r.prototype,`isStandalone`,{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`isInline`,{get:function(){return!0},enumerable:!1,configurable:!0}),r.italicProperty=new d.BoolProperty(d.Versions.v1_2,`italic`,!1),r.strikethroughProperty=new d.BoolProperty(d.Versions.v1_2,`strikethrough`,!1),r.highlightProperty=new d.BoolProperty(d.Versions.v1_2,`highlight`,!1),r.underlineProperty=new d.BoolProperty(d.Versions.v1_3,`underline`,!1),n([(0,d.property)(r.italicProperty)],r.prototype,`italic`,void 0),n([(0,d.property)(r.strikethroughProperty)],r.prototype,`strikethrough`,void 0),n([(0,d.property)(r.highlightProperty)],r.prototype,`highlight`,void 0),n([(0,d.property)(r.underlineProperty)],r.prototype,`underline`,void 0),r}(y);e.TextRun=x;var S=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t._inlines=[],t}return n.prototype.internalAddInline=function(e,t){if(t===void 0&&(t=!1),!e.isInline)throw Error(p.Strings.errors.elementCannotBeUsedAsInline());if(!(e.parent===void 0||t)&&e.parent!==this)throw Error(p.Strings.errors.inlineAlreadyParented());e.setParent(this),this._inlines.push(e)},n.prototype.internalParse=function(t,n){if(e.prototype.internalParse.call(this,t,n),this._inlines=[],Array.isArray(t.inlines))for(var r=0,i=t.inlines;r<i.length;r++){var a=i[r],o=void 0;if(typeof a==`string`){var s=new x;s.text=a,o=s}else o=n.parseElement(this,a,[],!1);o&&this.internalAddInline(o,!0)}},n.prototype.internalToJSON=function(t,n){if(e.prototype.internalToJSON.call(this,t,n),this._inlines.length>0){for(var r=[],i=0,a=this._inlines;i<a.length;i++){var o=a[i];r.push(o.toJSON(n))}n.serializeValue(t,`inlines`,r)}},n.prototype.internalRender=function(){if(this._inlines.length>0){var e=void 0;if(this.forElementId){var t=document.createElement(`label`);t.htmlFor=this.forElementId,e=t}else e=document.createElement(`div`);switch(e.className=this.hostConfig.makeCssClassName(`ac-richTextBlock`),this.getEffectiveHorizontalAlignment()){case a.HorizontalAlignment.Center:e.style.textAlign=`center`;break;case a.HorizontalAlignment.Right:e.style.textAlign=`end`;break;default:e.style.textAlign=`start`;break}for(var n=0,r=0,i=this._inlines;r<i.length;r++){var o=i[r].render();o&&(e.appendChild(o),n++)}if(n>0)return e}},n.prototype.asString=function(){for(var e=``,t=0,n=this._inlines;t<n.length;t++){var r=n[t];e+=r.asString()}return e},n.prototype.getJsonTypeName=function(){return`RichTextBlock`},n.prototype.getInlineCount=function(){return this._inlines.length},n.prototype.getInlineAt=function(e){if(e>=0&&e<this._inlines.length)return this._inlines[e];throw Error(p.Strings.errors.indexOutOfRange(e))},n.prototype.addInline=function(e){typeof e==`string`?this.internalAddInline(new x(e)):this.internalAddInline(e)},n.prototype.removeInline=function(e){var t=this._inlines.indexOf(e);return t>=0?(this._inlines[t].setParent(void 0),this._inlines.splice(t,1),!0):!1},n}(_);e.RichTextBlock=S;var C=function(e){t(r,e);function r(t,n){var r=e.call(this)||this;return r.name=t,r.value=n,r}return r.prototype.getSchemaKey=function(){return`Fact`},r.titleProperty=new d.StringProperty(d.Versions.v1_0,`title`),r.valueProperty=new d.StringProperty(d.Versions.v1_0,`value`),n([(0,d.property)(r.titleProperty)],r.prototype,`name`,void 0),n([(0,d.property)(r.valueProperty)],r.prototype,`value`,void 0),r}(d.SerializableObject);e.Fact=C;var w=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(r.prototype,`useDefaultSizing`,{get:function(){return!1},enumerable:!1,configurable:!0}),r.prototype.internalRender=function(){var e=void 0,t=this.hostConfig;if(this.facts.length>0){e=document.createElement(`table`),e.style.borderWidth=`0px`,e.style.borderSpacing=`0px`,e.style.borderStyle=`none`,e.style.borderCollapse=`collapse`,e.style.display=`block`,e.style.overflow=`hidden`,e.classList.add(t.makeCssClassName(`ac-factset`)),e.setAttribute(`role`,`presentation`);for(var n=0;n<this.facts.length;n++){var r=document.createElement(`tr`);n>0&&(r.style.marginTop=t.factSet.spacing+`px`);var i=document.createElement(`td`);i.style.padding=`0`,i.classList.add(t.makeCssClassName(`ac-fact-title`)),t.factSet.title.maxWidth&&(i.style.maxWidth=t.factSet.title.maxWidth+`px`),i.style.verticalAlign=`top`;var o=new b;o.setParent(this),o.text=!this.facts[n].name&&this.isDesignMode()?`Title`:this.facts[n].name,o.size=t.factSet.title.size,o.color=t.factSet.title.color,o.isSubtle=t.factSet.title.isSubtle,o.weight=t.factSet.title.weight,o.wrap=t.factSet.title.wrap,o.spacing=a.Spacing.None,s.appendChild(i,o.render()),s.appendChild(r,i),i=document.createElement(`td`),i.style.width=`10px`,s.appendChild(r,i),i=document.createElement(`td`),i.style.padding=`0`,i.style.verticalAlign=`top`,i.classList.add(t.makeCssClassName(`ac-fact-value`)),o=new b,o.setParent(this),o.text=this.facts[n].value,o.size=t.factSet.value.size,o.color=t.factSet.value.color,o.isSubtle=t.factSet.value.isSubtle,o.weight=t.factSet.value.weight,o.wrap=t.factSet.value.wrap,o.spacing=a.Spacing.None,s.appendChild(i,o.render()),s.appendChild(r,i),s.appendChild(e,r)}}return e},r.prototype.getJsonTypeName=function(){return`FactSet`},r.factsProperty=new d.SerializableObjectCollectionProperty(d.Versions.v1_0,`facts`,C),n([(0,d.property)(r.factsProperty)],r.prototype,`facts`,void 0),r}(_);e.FactSet=w;var T=function(e){t(n,e);function n(t,n,r,i){var a=e.call(this,t,n)||this;return a.targetVersion=t,a.name=n,a.internalName=r,a.fallbackProperty=i,a}return n.prototype.getInternalName=function(){return this.internalName},n.prototype.parse=function(e,t,n){var r=void 0,i=t[this.name];if(i===void 0)return this.defaultValue;var s=!1;if(typeof i==`string`){try{var c=o.SizeAndUnit.parse(i,!0);c.unit===a.SizeUnit.Pixel&&(r=c.physicalSize,s=!0)}catch{}!s&&this.fallbackProperty&&(s=this.fallbackProperty.isValidValue(i,n))}return s||n.logParseEvent(e,a.ValidationEvent.InvalidPropertyValue,p.Strings.errors.invalidPropertyValue(i,this.name)),r},n.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,typeof n==`number`&&!isNaN(n)?n+`px`:void 0)},n}(d.PropertyDefinition),E=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.size=a.Size.Auto,t.style=a.ImageStyle.Default,t}return r.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.remove(_.heightProperty)},r.prototype.applySize=function(e){if(this.pixelWidth||this.pixelHeight)this.pixelWidth&&(e.style.width=this.pixelWidth+`px`),this.pixelHeight&&(e.style.height=this.pixelHeight+`px`);else if(this.maxHeight){switch(this.size){case a.Size.Small:e.style.height=this.hostConfig.imageSizes.small+`px`;break;case a.Size.Large:e.style.height=this.hostConfig.imageSizes.large+`px`;break;default:e.style.height=this.hostConfig.imageSizes.medium+`px`;break}e.style.maxHeight=this.maxHeight+`px`}else{switch(this.size){case a.Size.Stretch:e.style.width=`100%`;break;case a.Size.Auto:e.style.maxWidth=`100%`;break;case a.Size.Small:e.style.width=this.hostConfig.imageSizes.small+`px`;break;case a.Size.Large:e.style.width=this.hostConfig.imageSizes.large+`px`;break;case a.Size.Medium:e.style.width=this.hostConfig.imageSizes.medium+`px`;break}e.style.maxHeight=`100%`}},Object.defineProperty(r.prototype,`useDefaultSizing`,{get:function(){return!1},enumerable:!1,configurable:!0}),r.prototype.internalRender=function(){var e=this,t=void 0;if(this.url){t=document.createElement(`div`),t.style.display=`flex`,t.style.alignItems=`flex-start`;var n=this.hostConfig;switch(this.getEffectiveHorizontalAlignment()){case a.HorizontalAlignment.Center:t.style.justifyContent=`center`;break;case a.HorizontalAlignment.Right:t.style.justifyContent=`flex-end`;break;default:t.style.justifyContent=`flex-start`;break}var i=document.createElement(`img`);this.renderedImageElement=i,i.onload=function(t){Me(e)},i.onerror=function(t){if(e.renderedElement){var n=e.getRootElement();if(h(e.renderedElement),n&&n.designMode){var r=document.createElement(`div`);r.style.display=`flex`,r.style.alignItems=`center`,r.style.justifyContent=`center`,r.style.backgroundColor=`#EEEEEE`,r.style.color=`black`,r.innerText=`:-(`,r.style.padding=`10px`,e.applySize(r),e.renderedElement.appendChild(r)}}Me(e)},i.style.minWidth=`0`,i.classList.add(n.makeCssClassName(`ac-image`)),this.selectAction&&n.supportsInteractivity&&(i.onkeypress=function(t){e.selectAction&&e.selectAction.isEffectivelyEnabled()&&(t.code===`Enter`||t.code===`Space`)&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},i.onclick=function(t){e.selectAction&&e.selectAction.isEffectivelyEnabled()&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},this.selectAction.setupElementForAccessibility(i),this.selectAction.isEffectivelyEnabled()&&i.classList.add(n.makeCssClassName(`ac-selectable`))),this.applySize(i),this.style===a.ImageStyle.Person&&(i.style.borderRadius=`50%`,i.style.backgroundPosition=`50% 50%`,i.style.backgroundRepeat=`no-repeat`);var o=s.stringToCssColor(this.backgroundColor);o&&(i.style.backgroundColor=o),this.setImageSource(i);var c=this.preProcessPropertyValue(r.altTextProperty);c&&(i.alt=c),t.appendChild(i)}return t},r.prototype.getJsonTypeName=function(){return`Image`},r.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return this.selectAction&&t.push(this.selectAction),t},r.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);return!n&&this.selectAction&&(n=this.selectAction.getActionById(t)),n},r.prototype.getResourceInformation=function(){return this.url?[{url:this.url,mimeType:`image`}]:[]},r.prototype.setImageSource=function(e){var t=new D(this.forceLoad,this.url);t.configureImage(this),e.src=this.preProcessPropertyValue(r.urlProperty),t.resetImage(this)},r.urlProperty=new d.StringProperty(d.Versions.v1_0,`url`),r.altTextProperty=new d.StringProperty(d.Versions.v1_0,`altText`),r.backgroundColorProperty=new d.StringProperty(d.Versions.v1_1,`backgroundColor`),r.styleProperty=new d.EnumProperty(d.Versions.v1_0,`style`,a.ImageStyle,a.ImageStyle.Default),r.sizeProperty=new d.EnumProperty(d.Versions.v1_0,`size`,a.Size,a.Size.Auto),r.pixelWidthProperty=new T(d.Versions.v1_1,`width`,`pixelWidth`),r.pixelHeightProperty=new T(d.Versions.v1_1,`height`,`pixelHeight`,_.heightProperty),r.selectActionProperty=new v(d.Versions.v1_1,`selectAction`,[`Action.ShowCard`]),r.shouldForceLoadProperty=new d.BoolProperty(d.Versions.v1_6,`forceLoad`,!1),n([(0,d.property)(r.urlProperty)],r.prototype,`url`,void 0),n([(0,d.property)(r.altTextProperty)],r.prototype,`altText`,void 0),n([(0,d.property)(r.backgroundColorProperty)],r.prototype,`backgroundColor`,void 0),n([(0,d.property)(r.sizeProperty)],r.prototype,`size`,void 0),n([(0,d.property)(r.styleProperty)],r.prototype,`style`,void 0),n([(0,d.property)(r.pixelWidthProperty)],r.prototype,`pixelWidth`,void 0),n([(0,d.property)(r.pixelHeightProperty)],r.prototype,`pixelHeight`,void 0),n([(0,d.property)(r.selectActionProperty)],r.prototype,`selectAction`,void 0),n([(0,d.property)(r.shouldForceLoadProperty)],r.prototype,`forceLoad`,void 0),r}(_);e.Image=E;var D=function(){function e(e,t){this.doForceLoad=e,this.url=t,t&&t.length&&e&&(this.uniqueHash=`?`+Date.now(),this.urlWithForceLoadOption=t+this.uniqueHash)}return e.prototype.configureImage=function(e){this.urlWithForceLoadOption&&this.urlWithForceLoadOption.length&&(e.url=this.urlWithForceLoadOption)},e.prototype.resetImage=function(e){e.url=this.url},e}(),O=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.allowVerticalOverflow=!1,t}return r.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),this.isSelectable||t.remove(r.selectActionProperty)},r.prototype.isElementAllowed=function(e){return this.hostConfig.supportsInteractivity||!e.isInteractive},r.prototype.applyPadding=function(){if(e.prototype.applyPadding.call(this),this.renderedElement){var t=new o.SpacingDefinition;this.getEffectivePadding()&&(t=this.hostConfig.paddingDefinitionToSpacingDefinition(this.getEffectivePadding())),this.renderedElement.style.paddingTop=t.top+`px`,this.renderedElement.style.paddingRight=t.right+`px`,this.renderedElement.style.paddingBottom=t.bottom+`px`,this.renderedElement.style.paddingLeft=t.left+`px`,this.renderedElement.style.marginRight=`0`,this.renderedElement.style.marginLeft=`0`}},Object.defineProperty(r.prototype,`isSelectable`,{get:function(){return!1},enumerable:!1,configurable:!0}),r.prototype.forbiddenChildElements=function(){return[]},r.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this);for(var t=0;t<this.getItemCount();t++)this.getItemAt(t).releaseDOMResources()},r.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t);for(var n=0;n<this.getItemCount();n++){var r=this.getItemAt(n);!this.hostConfig.supportsInteractivity&&r.isInteractive&&t.addFailure(this,a.ValidationEvent.InteractivityNotAllowed,p.Strings.errors.interactivityNotAllowed()),this.isElementAllowed(r)||t.addFailure(this,a.ValidationEvent.InteractivityNotAllowed,p.Strings.errors.elementTypeNotAllowed(r.getJsonTypeName())),r.internalValidateProperties(t)}this._selectAction&&this._selectAction.internalValidateProperties(t)},r.prototype.render=function(){var t=this,n=e.prototype.render.call(this);if(n){var r=this.hostConfig;this.allowVerticalOverflow&&(n.style.overflowX=`hidden`,n.style.overflowY=`auto`),n&&this.isSelectable&&this._selectAction&&r.supportsInteractivity&&(n.onclick=function(e){t._selectAction&&t._selectAction.isEffectivelyEnabled()&&(e.preventDefault(),e.cancelBubble=!0,t._selectAction.execute())},n.onkeypress=function(e){t._selectAction&&t._selectAction.isEffectivelyEnabled()&&(e.code===`Enter`||e.code===`Space`)&&(e.preventDefault(),e.cancelBubble=!0,t._selectAction.execute())},this._selectAction.setupElementForAccessibility(n),this._selectAction.isEffectivelyEnabled()&&n.classList.add(r.makeCssClassName(`ac-selectable`)))}return n},r.prototype.updateLayout=function(t){if(t===void 0&&(t=!0),e.prototype.updateLayout.call(this,t),t)for(var n=0;n<this.getItemCount();n++)this.getItemAt(n).updateLayout()},r.prototype.getAllInputs=function(e){e===void 0&&(e=!0);for(var t=[],n=0;n<this.getItemCount();n++)t.push.apply(t,this.getItemAt(n).getAllInputs(e));return t},r.prototype.getAllActions=function(){for(var t=e.prototype.getAllActions.call(this),n=0;n<this.getItemCount();n++)t.push.apply(t,this.getItemAt(n).getAllActions());return this._selectAction&&t.push(this._selectAction),t},r.prototype.getResourceInformation=function(){for(var e=[],t=0;t<this.getItemCount();t++)e.push.apply(e,this.getItemAt(t).getResourceInformation());return e},r.prototype.getElementById=function(t){var n=e.prototype.getElementById.call(this,t);if(!n)for(var r=0;r<this.getItemCount()&&(n=this.getItemAt(r).getElementById(t),!n);r++);return n},r.prototype.findDOMNodeOwner=function(t){for(var n=void 0,r=0;r<this.getItemCount();r++)if(n=this.getItemAt(r).findDOMNodeOwner(t),n)return n;for(var r=0;r<this.getActionCount();r++)if(n=this.getActionAt(r)?.findDOMNodeOwner(t),n)return n;return e.prototype.findDOMNodeOwner.call(this,t)},r.selectActionProperty=new v(d.Versions.v1_1,`selectAction`,[`Action.ShowCard`]),n([(0,d.property)(r.selectActionProperty)],r.prototype,`_selectAction`,void 0),r}(_);e.CardElementContainer=O;var k=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t._images=[],t.imageSize=a.ImageSize.Medium,t.presentationStyle=a.ImageSetPresentationStyle.Default,t.pixelOffset=0,t}return r.prototype.internalRender=function(){var e=void 0;if(this._images.length>0){e=document.createElement(`div`),e.style.display=`flex`,e.style.flexWrap=`wrap`;for(var t=0,n=this._images;t<n.length;t++){var r=n[t];switch(this.imageSize){case a.ImageSize.Small:r.size=a.Size.Small;break;case a.ImageSize.Large:r.size=a.Size.Large;break;default:r.size=a.Size.Medium;break}r.maxHeight=this.hostConfig.imageSet.maxImageHeight;var i=r.render();i&&(i.style.display=`inline-flex`,i.style.margin=`0px`,this.presentationStyle==a.ImageSetPresentationStyle.Default&&(i.style.marginRight=`10px`),s.appendChild(e,i))}this.presentationStyle==a.ImageSetPresentationStyle.Stacked&&this.applyStackedPresentationStyle()}return e},r.prototype.applyStackedPresentationStyle=function(){if(this._images[0].renderedImageElement){var e=A.parseNumericPixelDimension(this._images[0].renderedImageElement.style.height),t=this.getEffectiveBackgroundColor();e&&new A(this.pixelOffset,e,t).configureImagesArrayAsStackedLayout(this._images)}},r.prototype.getEffectiveBackgroundColor=function(){var e=this.getParentContainer()?.getEffectiveStyle(),t=this.hostConfig.containerStyles.getStyleByName(e,this.hostConfig.containerStyles.getStyleByName(this.defaultStyle));return s.stringToCssColor(t.backgroundColor)},r.prototype.getItemCount=function(){return this._images.length},r.prototype.getItemAt=function(e){return this._images[e]},r.prototype.getFirstVisibleRenderedItem=function(){return this._images&&this._images.length>0?this._images[0]:void 0},r.prototype.getLastVisibleRenderedItem=function(){return this._images&&this._images.length>0?this._images[this._images.length-1]:void 0},r.prototype.removeItem=function(e){if(e instanceof E){var t=this._images.indexOf(e);if(t>=0)return this._images.splice(t,1),e.setParent(void 0),this.updateLayout(),!0}return!1},r.prototype.getJsonTypeName=function(){return`ImageSet`},r.prototype.addImage=function(e){if(!e.parent)this._images.push(e),e.setParent(this);else throw Error(`This image already belongs to another ImageSet`)},r.prototype.indexOf=function(e){return e instanceof E?this._images.indexOf(e):-1},r.imagesProperty=new d.SerializableObjectCollectionProperty(d.Versions.v1_0,`images`,E,function(e,t){t.setParent(e)}),r.imageSizeProperty=new d.EnumProperty(d.Versions.v1_0,`imageSize`,a.ImageSize,a.ImageSize.Medium),r.imagePresentationStyle=new d.EnumProperty(d.Versions.v1_6,`style`,a.ImageSetPresentationStyle,a.ImageSetPresentationStyle.Default),r.pixelOffset=new d.NumProperty(d.Versions.v1_6,`offset`,0,void 0),n([(0,d.property)(r.imagesProperty)],r.prototype,`_images`,void 0),n([(0,d.property)(r.imageSizeProperty)],r.prototype,`imageSize`,void 0),n([(0,d.property)(r.imagePresentationStyle)],r.prototype,`presentationStyle`,void 0),n([(0,d.property)(r.pixelOffset)],r.prototype,`pixelOffset`,void 0),r}(O);e.ImageSet=k;var A=function(){function e(e,t,n){this.sign45=.7071,this.maxImageCounts=2,this.offset=0,this.normalizationConstant=0,this.border=5,this.dimension=0,this.dimension=t,this.normalizationConstant=(t*this.sign45-.5*t)*2,this.offset=this.sign45*(Math.max(e,-t)-this.normalizationConstant),this.style=n||``}return e.prototype.moveImageRight=function(e){e.style.marginLeft=this.offset+`px`},e.prototype.moveImageUp=function(e){e.style.marginBottom=this.offset+this.dimension+`px`},e.prototype.moveImageDown=function(e){e.style.marginTop=this.offset+this.dimension+`px`},e.prototype.makeImageRound=function(e){e.style.borderRadius=`50%`,e.style.backgroundPosition=`50% 50%`,e.style.backgroundRepeat=`no-repeat`},e.prototype.applyBorder=function(e){e.style.height=this.dimension+this.border*2+`px`,e.style.border=this.border+`px solid `+this.style},e.prototype.configureImageForBottomLeft=function(e){this.moveImageDown(e),this.makeImageRound(e),this.applyBorder(e),e.style.zIndex=`2`},e.prototype.configureImageForTopRight=function(e){this.moveImageUp(e),this.moveImageRight(e),this.makeImageRound(e),e.style.zIndex=`1`},e.prototype.configureImagesArrayAsStackedLayout=function(e){e.length==1?e[0].renderedImageElement&&this.makeImageRound(e[0].renderedImageElement):e.length<=this.maxImageCounts&&e[0].renderedImageElement&&e[1].renderedImageElement&&(this.configureImageForBottomLeft(e[0].renderedImageElement),this.configureImageForTopRight(e[1].renderedImageElement))},e.parseNumericPixelDimension=function(e){if(e?.substring(e.length-2)==`px`)return parseInt(e.substring(0,e.length-2))},e}(),j=function(e){t(r,e);function r(t,n){var r=e.call(this)||this;return r.url=t,r.mimeType=n,r}return r.prototype.isValid=function(){return!!(this.mimeType&&this.url)},r.mimeTypeProperty=new d.StringProperty(d.Versions.v1_1,`mimeType`),r.urlProperty=new d.StringProperty(d.Versions.v1_1,`url`),n([(0,d.property)(r.mimeTypeProperty)],r.prototype,`mimeType`,void 0),n([(0,d.property)(r.urlProperty)],r.prototype,`url`,void 0),r}(d.SerializableObject);e.ContentSource=j;var M=function(e){t(r,e);function r(t,n,r){var i=e.call(this,t,n)||this;return i.label=r,i}return r.prototype.getSchemaKey=function(){return`CaptionSource`},r.prototype.render=function(){var e=void 0;return this.isValid()&&(e=document.createElement(`track`),e.src=this.url,e.kind=`captions`,e.label=this.label),e},r.labelProperty=new d.StringProperty(d.Versions.v1_6,`label`),n([(0,d.property)(r.labelProperty)],r.prototype,`label`,void 0),r}(j);e.CaptionSource=M;var ee=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.getSchemaKey=function(){return`MediaSource`},n.prototype.render=function(){var e=void 0;return this.isValid()&&(e=document.createElement(`source`),e.src=this.url,e.type=this.mimeType),e},n}(j);e.MediaSource=ee;var N=function(){function e(){}return e.prototype.play=function(){},Object.defineProperty(e.prototype,`posterUrl`,{get:function(){return this._posterUrl},set:function(e){this._posterUrl=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`selectedMediaType`,{get:function(){},enumerable:!1,configurable:!0}),e}();e.MediaPlayer=N;var P=function(e){t(n,e);function n(t){var n=e.call(this)||this;return n.owner=t,n._selectedSources=[],n._captionSources=[],n.processSources(),n}return n.prototype.processSources=function(){var e;this._selectedSources=[],this._captionSources=[],this._selectedMediaType=void 0;for(var t=0,r=this.owner.sources;t<r.length;t++){var i=r[t],a=i.mimeType?i.mimeType.split(`/`):[];if(a.length===2){if(!this._selectedMediaType){var o=n.supportedMediaTypes.indexOf(a[0]);o>=0&&(this._selectedMediaType=n.supportedMediaTypes[o])}a[0]===this._selectedMediaType&&this._selectedSources.push(i)}}(e=this._captionSources).push.apply(e,this.owner.captionSources)},n.prototype.canPlay=function(){return this._selectedSources.length>0},n.prototype.fetchVideoDetails=function(){return r(this,void 0,void 0,function(){return i(this,function(e){return[2]})})},n.prototype.render=function(){this._selectedMediaType===`video`?this._mediaElement=document.createElement(`video`):this._mediaElement=document.createElement(`audio`),this._mediaElement.setAttribute(`aria-label`,this.owner.altText?this.owner.altText:p.Strings.defaults.mediaPlayerAriaLabel()),this._mediaElement.setAttribute(`webkit-playsinline`,``),this._mediaElement.setAttribute(`playsinline`,``),this._mediaElement.setAttribute(`crossorigin`,``),this._mediaElement.autoplay=!0,this._mediaElement.controls=!0,s.isMobileOS()&&(this._mediaElement.muted=!0),this._mediaElement.preload=`none`,this._mediaElement.style.width=`100%`;for(var e=0,t=this.owner.sources;e<t.length;e++){var n=t[e].render();s.appendChild(this._mediaElement,n)}for(var r=0,i=this.owner.captionSources;r<i.length;r++){var a=i[r];if(a.mimeType==`vtt`){var o=a.render();s.appendChild(this._mediaElement,o)}}return this._mediaElement},n.prototype.play=function(){this._mediaElement&&this._mediaElement.play()},Object.defineProperty(n.prototype,`selectedMediaType`,{get:function(){return this._selectedMediaType},enumerable:!1,configurable:!0}),n.supportedMediaTypes=[`audio`,`video`],n}(N);e.HTML5MediaPlayer=P;var te=function(e){t(n,e);function n(t){return e.call(this)||this}return n}(N);e.CustomMediaPlayer=te;var F=function(e){t(n,e);function n(t,n){var r=e.call(this,t)||this;return r.iFrameTitle=n,t.length>=2&&(r._videoId=t[1]),r}return n.prototype.canPlay=function(){return this._videoId!==void 0},n.prototype.render=function(){var e=document.createElement(`div`);e.style.position=`relative`,e.style.width=`100%`,e.style.height=`0`,e.style.paddingBottom=`56.25%`;var t=document.createElement(`iframe`);return t.style.position=`absolute`,t.style.top=`0`,t.style.left=`0`,t.style.width=`100%`,t.style.height=`100%`,t.src=this.getEmbedVideoUrl(),t.frameBorder=`0`,this.iFrameTitle&&(t.title=this.iFrameTitle),t.allow=`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture`,t.allowFullscreen=!0,e.appendChild(t),e},Object.defineProperty(n.prototype,`videoId`,{get:function(){return this._videoId},enumerable:!1,configurable:!0}),n}(te);e.IFrameMediaMediaPlayer=F;var I=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.fetchVideoDetails=function(){return r(this,void 0,void 0,function(){var e,t,n;return i(this,function(r){switch(r.label){case 0:return e=`https://vimeo.com/api/oembed.json?url=${this.getEmbedVideoUrl()}`,[4,fetch(e)];case 1:return t=r.sent(),t.ok?[4,t.json()]:[3,3];case 2:n=r.sent(),this.posterUrl=n.thumbnail_url,r.label=3;case 3:return[2]}})})},n.prototype.getEmbedVideoUrl=function(){return`https://player.vimeo.com/video/${this.videoId}?autoplay=1`},n}(F);e.VimeoPlayer=I;var L=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.fetchVideoDetails=function(){return r(this,void 0,void 0,function(){var e,t,n;return i(this,function(r){switch(r.label){case 0:return e=`https://api.dailymotion.com/video/${this.videoId}?fields=thumbnail_720_url`,[4,fetch(e)];case 1:return t=r.sent(),t.ok?[4,t.json()]:[3,3];case 2:n=r.sent(),this.posterUrl=n.thumbnail_720_url,r.label=3;case 3:return[2]}})})},n.prototype.getEmbedVideoUrl=function(){return`https://www.dailymotion.com/embed/video/${this.videoId}?autoplay=1`},n}(F);e.DailymotionPlayer=L;var ne=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.iFrameTitle=n,t.length>=3&&t[2]!==void 0&&(r._startTimeIndex=parseInt(t[2])),r}return n.prototype.fetchVideoDetails=function(){return r(this,void 0,void 0,function(){return i(this,function(e){return this.posterUrl=this.videoId?`https://img.youtube.com/vi/${this.videoId}/maxresdefault.jpg`:void 0,[2]})})},n.prototype.getEmbedVideoUrl=function(){var e=`https://www.youtube.com/embed/${this.videoId}?autoplay=1`;return this._startTimeIndex!==void 0&&(e+=`&start=${this._startTimeIndex}`),e},n}(F);e.YouTubePlayer=ne;var re=function(e){t(a,e);function a(){var t=e!==null&&e.apply(this,arguments)||this;return t.sources=[],t.captionSources=[],t}return a.prototype.createMediaPlayer=function(){for(var e=0,t=a.customMediaPlayers;e<t.length;e++)for(var n=t[e],r=0,i=this.sources;r<i.length;r++){var o=i[r];if(o.url)for(var s=0,c=n.urlPatterns;s<c.length;s++){var l=c[s].exec(o.url);if(l!==null)return n.createMediaPlayer(l)}}return new P(this)},a.prototype.handlePlayButtonInvoke=function(e){if(this.hostConfig.media.allowInlinePlayback){if(e.preventDefault(),e.cancelBubble=!0,this.renderedElement){var t=this._mediaPlayer.render();h(this.renderedElement),this.renderedElement.appendChild(t),this._mediaPlayer.play(),t.focus()}}else a.onPlay&&(e.preventDefault(),e.cancelBubble=!0,a.onPlay(this))},a.prototype.displayPoster=function(){return r(this,void 0,void 0,function(){var e,t,n,r,a,o,s,c,l=this;return i(this,function(i){return this.renderedElement&&(e=12,t=15,n=document.createElement(`div`),n.className=this.hostConfig.makeCssClassName(`ac-media-poster`),n.setAttribute(`role`,`contentinfo`),n.setAttribute(`aria-label`,this.altText?this.altText:p.Strings.defaults.mediaPlayerAriaLabel()),n.style.position=`relative`,n.style.display=`flex`,r=this.poster?this.poster:this._mediaPlayer.posterUrl,r||=this.hostConfig.media.defaultPoster,r?(a=document.createElement(`img`),a.style.width=`100%`,a.style.height=`100%`,a.setAttribute(`role`,`presentation`),a.onerror=function(e){a.parentNode&&a.parentNode.removeChild(a),n.classList.add(`empty`),n.style.minHeight=`150px`},a.src=r,n.appendChild(a)):(n.classList.add(`empty`),n.style.minHeight=`150px`),this.hostConfig.supportsInteractivity&&this._mediaPlayer.canPlay()&&(o=document.createElement(`div`),o.tabIndex=0,o.setAttribute(`role`,`button`),o.setAttribute(`aria-label`,p.Strings.defaults.mediaPlayerPlayMedia()),o.className=this.hostConfig.makeCssClassName(`ac-media-playButton`),o.style.display=`flex`,o.style.alignItems=`center`,o.style.justifyContent=`center`,o.onclick=function(e){l.handlePlayButtonInvoke(e)},o.onkeypress=function(e){(e.code===`Enter`||e.code===`Space`)&&l.handlePlayButtonInvoke(e)},s=document.createElement(`div`),s.className=this.hostConfig.makeCssClassName(`ac-media-playButton-arrow`),s.style.width=e+`px`,s.style.height=t+`px`,s.style.borderTopWidth=t/2+`px`,s.style.borderBottomWidth=t/2+`px`,s.style.borderLeftWidth=e+`px`,s.style.borderRightWidth=`0`,s.style.borderStyle=`solid`,s.style.borderTopColor=`transparent`,s.style.borderRightColor=`transparent`,s.style.borderBottomColor=`transparent`,s.style.transform=`translate(`+e/10+`px,0px)`,o.appendChild(s),c=document.createElement(`div`),c.style.position=`absolute`,c.style.left=`0`,c.style.top=`0`,c.style.width=`100%`,c.style.height=`100%`,c.style.display=`flex`,c.style.justifyContent=`center`,c.style.alignItems=`center`,c.appendChild(o),n.appendChild(c)),h(this.renderedElement),this.renderedElement.appendChild(n)),[2]})})},a.prototype.internalRender=function(){var e=document.createElement(`div`);return e.className=this.hostConfig.makeCssClassName(`ac-media`),e},a.prototype.render=function(){var t=this,n=e.prototype.render.call(this);return n&&(this._mediaPlayer=this.createMediaPlayer(),this._mediaPlayer.fetchVideoDetails().then(function(){return t.displayPoster()})),n},a.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this),this.displayPoster()},a.prototype.getJsonTypeName=function(){return`Media`},a.prototype.getResourceInformation=function(){var e=[];if(this._mediaPlayer){var t=this.poster?this.poster:this.hostConfig.media.defaultPoster;t&&e.push({url:t,mimeType:`image`})}for(var n=0,r=this.sources;n<r.length;n++){var i=r[n];i.isValid()&&e.push({url:i.url,mimeType:i.mimeType})}for(var a=0,o=this.captionSources;a<o.length;a++){var s=o[a];s.isValid()&&e.push({url:s.url,mimeType:s.mimeType})}return e},Object.defineProperty(a.prototype,`selectedMediaType`,{get:function(){return this._mediaPlayer.selectedMediaType},enumerable:!1,configurable:!0}),a.customMediaPlayers=[{urlPatterns:[/^(?:https?:\/\/)?(?:www.)?youtube.com\/watch\?(?=.*v=([\w\d-_]+))(?=(?:.*t=(\d+))?).*/gi,/^(?:https?:\/\/)?youtu.be\/([\w\d-_]+)(?:\?t=(\d+))?/gi],createMediaPlayer:function(e){return new ne(e,p.Strings.defaults.youTubeVideoPlayer())}},{urlPatterns:[/^(?:https?:\/\/)?vimeo.com\/([\w\d-_]+).*/gi],createMediaPlayer:function(e){return new I(e,p.Strings.defaults.vimeoVideoPlayer())}},{urlPatterns:[/^(?:https?:\/\/)?(?:www.)?dailymotion.com\/video\/([\w\d-_]+).*/gi],createMediaPlayer:function(e){return new L(e,p.Strings.defaults.dailymotionVideoPlayer())}}],a.sourcesProperty=new d.SerializableObjectCollectionProperty(d.Versions.v1_1,`sources`,ee),a.captionSourcesProperty=new d.SerializableObjectCollectionProperty(d.Versions.v1_6,`captionSources`,M),a.posterProperty=new d.StringProperty(d.Versions.v1_1,`poster`),a.altTextProperty=new d.StringProperty(d.Versions.v1_1,`altText`),n([(0,d.property)(a.sourcesProperty)],a.prototype,`sources`,void 0),n([(0,d.property)(a.captionSourcesProperty)],a.prototype,`captionSources`,void 0),n([(0,d.property)(a.posterProperty)],a.prototype,`poster`,void 0),n([(0,d.property)(a.altTextProperty)],a.prototype,`altText`,void 0),a}(_);e.Media=re;var R;(function(e){e[e.InitialRender=0]=`InitialRender`,e[e.MouseEnterOnCard=1]=`MouseEnterOnCard`,e[e.MouseLeaveOnCard=2]=`MouseLeaveOnCard`,e[e.FocusLeave=3]=`FocusLeave`})(R||={});var ie=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.inputStyle=a.InputStyle.Default,t}return r.prototype.getAllLabelIds=function(){var e=[];return this.labelledBy&&e.push(this.labelledBy),this._renderedLabelElement&&e.push(this._renderedLabelElement.id),this._renderedErrorMessageElement&&e.push(this._renderedErrorMessageElement.id),e},r.prototype.updateInputControlAriaLabelledBy=function(){if(this._renderedInputControlElement){var e=this.getAllLabelIds();e.length>0?this._renderedInputControlElement.setAttribute(`aria-labelledby`,e.join(` `)):this._renderedInputControlElement.removeAttribute(`aria-labelledby`)}},Object.defineProperty(r.prototype,`isNullable`,{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`renderedInputControlElement`,{get:function(){return this._renderedInputControlElement},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`inputControlContainerElement`,{get:function(){return this._inputControlContainerElement},enumerable:!1,configurable:!0}),r.prototype.overrideInternalRender=function(){var e=this,t=this.hostConfig;this._outerContainerElement=document.createElement(`div`),this._outerContainerElement.style.display=`flex`,this.labelPosition===a.InputLabelPosition.Inline?this._outerContainerElement.style.flexDirection=`row`:this._outerContainerElement.style.flexDirection=`column`;var n=s.generateUniqueId();if(this.label){var r=new S;r.setParent(this),r.forElementId=n;var i=new x(this.label);if(r.addInline(i),this.isRequired){i.init(t.inputs.label.requiredInputs);var o=new x(t.inputs.label.requiredInputs.suffix);o.color=t.inputs.label.requiredInputs.suffixColor,o.ariaHidden=!0,r.addInline(o)}else i.init(t.inputs.label.optionalInputs);this._renderedLabelElement=r.render(),this._renderedLabelElement&&(this._renderedLabelElement.id=s.generateUniqueId(),this.labelPosition===a.InputLabelPosition.Inline?this._renderedLabelElement.style.alignSelf=`center`:this._renderedLabelElement.style.marginBottom=t.getEffectiveSpacing(t.inputs.label.inputSpacing)+`px`,this._outerContainerElement.appendChild(this._renderedLabelElement))}if(this._inputControlContainerElement=document.createElement(`div`),this._inputControlContainerElement.className=t.makeCssClassName(`ac-input-container`),this._inputControlContainerElement.style.display=`flex`,this.height===`stretch`&&(this._inputControlContainerElement.style.alignItems=`stretch`,this._inputControlContainerElement.style.flex=`1 1 auto`),this._renderedInputControlElement=this.internalRender(),this._renderedInputControlElement){if(this._renderedInputControlElement.id=n,this._renderedInputControlElement.style.minWidth=`0px`,this.isNullable&&this.isRequired&&(this._renderedInputControlElement.setAttribute(`aria-required`,`true`),this._renderedInputControlElement.classList.add(t.makeCssClassName(`ac-input-required`))),this._inputControlContainerElement.appendChild(this._renderedInputControlElement),this._outerContainerElement.appendChild(this._inputControlContainerElement),this._renderedLabelElement&&this.labelPosition===a.InputLabelPosition.Inline){if(!this.labelWidth){var c=t.inputs.label.width;this._renderedLabelElement.style.width=c.toString()+`%`,this._inputControlContainerElement.style.width=100-c+`%`}else if(this.labelWidth.unit==a.SizeUnit.Weight){var l=this.labelWidth.physicalSize;this._renderedLabelElement.style.width=l.toString()+`%`,this._inputControlContainerElement.style.width=(100-l).toString()+`%`}else if(this.labelWidth.unit==a.SizeUnit.Pixel){var u=this.labelWidth.physicalSize;this._renderedLabelElement.style.width=u.toString()+`px`}}return this.updateVisualState(R.InitialRender),this._renderedInputControlElement&&(this._renderedInputControlElement.onblur=function(t){e.updateVisualState(R.FocusLeave)}),this.updateInputControlAriaLabelledBy(),this._outerContainerElement}this.resetDirtyState()},r.prototype.valueChanged=function(){this.getRootElement().updateActionsEnabledState(),this.isValid()&&this.resetValidationFailureCue(),this.onValueChanged&&this.onValueChanged(this),Ie(this)},r.prototype.resetValidationFailureCue=function(){this.renderedInputControlElement&&(this.renderedInputControlElement.classList.remove(this.hostConfig.makeCssClassName(`ac-input-validation-failed`)),this.updateInputControlAriaLabelledBy(),this._renderedErrorMessageElement&&=(this._outerContainerElement.removeChild(this._renderedErrorMessageElement),void 0))},r.prototype.showValidationErrorMessage=function(){if(this.renderedElement&&this.errorMessage&&o.GlobalSettings.displayInputValidationErrors){var e=new b;e.setParent(this),e.text=this.errorMessage,e.wrap=!0,e.init(this.hostConfig.inputs.errorMessage),this._renderedErrorMessageElement=e.render(),this._renderedErrorMessageElement&&(this._renderedErrorMessageElement.id=s.generateUniqueId(),this._outerContainerElement.appendChild(this._renderedErrorMessageElement),this.updateInputControlAriaLabelledBy())}},Object.defineProperty(r.prototype,`allowRevealOnHoverStyle`,{get:function(){return this.hostConfig.inputs&&this.hostConfig.inputs.allowRevealOnHoverStyle},enumerable:!1,configurable:!0}),r.prototype.shouldHideInputAdornersForRevealOnHover=function(e,t){var n=e===document.activeElement,r=this.hostConfig.makeCssClassName(`ac-inputStyle-revealOnHover-onhover`),i=e.classList.contains(r);return t===R.InitialRender||t===R.FocusLeave&&!i||t===R.MouseLeaveOnCard&&!n},r.prototype.updateVisualState=function(e){!this.allowRevealOnHoverStyle||!this._renderedInputControlElement||this.inputStyle!==a.InputStyle.RevealOnHover||(e===R.InitialRender?this._renderedInputControlElement.classList.add(this.hostConfig.makeCssClassName(`ac-inputStyle-revealOnHover-onrender`)):e===R.MouseEnterOnCard?this._renderedInputControlElement.classList.add(this.hostConfig.makeCssClassName(`ac-inputStyle-revealOnHover-onhover`)):e===R.MouseLeaveOnCard&&this._renderedInputControlElement.classList.remove(this.hostConfig.makeCssClassName(`ac-inputStyle-revealOnHover-onhover`)))},r.prototype.focus=function(){this._renderedInputControlElement&&this._renderedInputControlElement.focus()},r.prototype.isValid=function(){return!0},r.prototype.isDirty=function(){return this.value!==this._oldValue},r.prototype.resetDirtyState=function(){this._oldValue=this.value},r.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.id||t.addFailure(this,a.ValidationEvent.PropertyCantBeNull,p.Strings.errors.inputsMustHaveUniqueId()),this.isRequired&&(this.label||t.addFailure(this,a.ValidationEvent.RequiredInputsShouldHaveLabel,`Required inputs should have a label`),this.errorMessage||t.addFailure(this,a.ValidationEvent.RequiredInputsShouldHaveErrorMessage,`Required inputs should have an error message`))},r.prototype.validateValue=function(){this.resetValidationFailureCue();var e=this.isRequired?this.isSet()&&this.isValid():this.isValid();return!e&&this.renderedInputControlElement&&(this.renderedInputControlElement.classList.add(this.hostConfig.makeCssClassName(`ac-input-validation-failed`)),this.showValidationErrorMessage()),e},r.prototype.getAllInputs=function(e){return e===void 0&&(e=!0),[this]},r.prototype.render=function(){var t=e.prototype.render.call(this);return this.resetDirtyState(),t},Object.defineProperty(r.prototype,`isInteractive`,{get:function(){return!0},enumerable:!1,configurable:!0}),r.labelProperty=new d.StringProperty(d.Versions.v1_3,`label`,!0),r.isRequiredProperty=new d.BoolProperty(d.Versions.v1_3,`isRequired`,!1),r.errorMessageProperty=new d.StringProperty(d.Versions.v1_3,`errorMessage`,!0),r.inputStyleProperty=new d.EnumProperty(d.Versions.v1_6,`inputStyle`,a.InputStyle,a.InputStyle.Default,[{value:a.InputStyle.RevealOnHover},{value:a.InputStyle.Default}]),r.labelWidthProperty=new d.CustomProperty(d.Versions.v1_6,`labelWidth`,function(e,t,n,r){var i=t.defaultValue,s=n[t.name],c=!1;if(typeof s==`number`&&!isNaN(s))i=new o.SizeAndUnit(s,a.SizeUnit.Weight),(i.physicalSize<0||i.physicalSize>100)&&(c=!0);else if(typeof s==`string`)try{i=o.SizeAndUnit.parse(s)}catch{c=!0}else c=!0;return c&&(r.logParseEvent(e,a.ValidationEvent.InvalidPropertyValue,p.Strings.errors.invalidInputLabelWidth()),i=void 0),i},function(e,t,n,r,i){r instanceof o.SizeAndUnit&&(r.unit===a.SizeUnit.Pixel?i.serializeValue(n,`labelWidth`,r.physicalSize+`px`):i.serializeNumber(n,`labelWidth`,r.physicalSize))},void 0),r.labelPositionProperty=new d.EnumProperty(d.Versions.v1_6,`labelPosition`,a.InputLabelPosition,a.InputLabelPosition.Above,[{value:a.InputLabelPosition.Inline},{value:a.InputLabelPosition.Above}]),n([(0,d.property)(r.labelProperty)],r.prototype,`label`,void 0),n([(0,d.property)(r.isRequiredProperty)],r.prototype,`isRequired`,void 0),n([(0,d.property)(r.errorMessageProperty)],r.prototype,`errorMessage`,void 0),n([(0,d.property)(r.inputStyleProperty)],r.prototype,`inputStyle`,void 0),n([(0,d.property)(r.labelWidthProperty)],r.prototype,`labelWidth`,void 0),n([(0,d.property)(r.labelPositionProperty)],r.prototype,`labelPosition`,void 0),r}(_);e.Input=ie;var ae=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.isMultiline=!1,t.style=a.InputTextStyle.Text,t}return r.prototype.setupInput=function(e){var t=this;e.style.flex=`1 1 auto`,e.tabIndex=this.isDesignMode()?-1:0,this.placeholder&&(e.placeholder=this.placeholder,e.setAttribute(`aria-label`,this.placeholder)),this.defaultValue&&(e.value=this.defaultValue),this.maxLength&&this.maxLength>0&&(e.maxLength=this.maxLength),e.oninput=function(){t.valueChanged()},e.onkeypress=function(e){e.ctrlKey&&e.code===`Enter`&&t.inlineAction&&t.inlineAction.isEffectivelyEnabled()&&t.inlineAction.execute()}},r.prototype.internalRender=function(){var e;return this.isMultiline&&this.style!==a.InputTextStyle.Password?(e=document.createElement(`textarea`),e.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-textInput`,`ac-multiline`),this.height===`stretch`&&(e.style.height=`initial`)):(e=document.createElement(`input`),e.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-textInput`),e.type=a.InputTextStyle[this.style].toLowerCase()),this.setupInput(e),e},r.prototype.overrideInternalRender=function(){var t=this,n=e.prototype.overrideInternalRender.call(this);if(this.inlineAction){var r=document.createElement(`button`);if(r.className=this.hostConfig.makeCssClassName(this.inlineAction.isEffectivelyEnabled()?`ac-inlineActionButton`:`ac-inlineActionButton-disabled`),r.onclick=function(e){t.inlineAction&&t.inlineAction.isEffectivelyEnabled()&&(e.preventDefault(),e.cancelBubble=!0,t.inlineAction.execute())},this.inlineAction.iconUrl){r.classList.add(`iconOnly`);var i=document.createElement(`img`);i.style.height=`100%`,i.setAttribute(`role`,`presentation`),i.style.display=`none`,i.onload=function(){i.style.removeProperty(`display`)},i.onerror=function(){r.removeChild(i),r.classList.remove(`iconOnly`),r.classList.add(`textOnly`),r.textContent=t.inlineAction&&t.inlineAction.title?t.inlineAction.title:p.Strings.defaults.inlineActionTitle()},i.src=this.inlineAction.iconUrl,r.appendChild(i),r.title=this.inlineAction.title?this.inlineAction.title:p.Strings.defaults.inlineActionTitle()}else r.classList.add(`textOnly`),r.textContent=this.inlineAction.title?this.inlineAction.title:p.Strings.defaults.inlineActionTitle();this.inlineAction.setupElementForAccessibility(r,!0),r.style.marginLeft=`8px`,this.inputControlContainerElement.appendChild(r)}return n},r.prototype.updateVisualState=function(t){this.allowRevealOnHoverStyle&&(this.inlineAction||this.isMultiline||e.prototype.updateVisualState.call(this,t))},r.prototype.getJsonTypeName=function(){return`Input.Text`},r.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return this.inlineAction&&t.push(this.inlineAction),t},r.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);return!n&&this.inlineAction&&(n=this.inlineAction.getActionById(t)),n},r.prototype.isSet=function(){return!!this.value},r.prototype.isValid=function(){return this.value&&this.regex?new RegExp(this.regex,`g`).test(this.value):!0},Object.defineProperty(r.prototype,`value`,{get:function(){if(this.renderedInputControlElement)return this.isMultiline,this.renderedInputControlElement.value},enumerable:!1,configurable:!0}),r.valueProperty=new d.StringProperty(d.Versions.v1_0,`value`),r.maxLengthProperty=new d.NumProperty(d.Versions.v1_0,`maxLength`),r.isMultilineProperty=new d.BoolProperty(d.Versions.v1_0,`isMultiline`,!1),r.placeholderProperty=new d.StringProperty(d.Versions.v1_0,`placeholder`),r.styleProperty=new d.EnumProperty(d.Versions.v1_0,`style`,a.InputTextStyle,a.InputTextStyle.Text,[{value:a.InputTextStyle.Text},{value:a.InputTextStyle.Tel},{value:a.InputTextStyle.Url},{value:a.InputTextStyle.Email},{value:a.InputTextStyle.Password,targetVersion:d.Versions.v1_5}]),r.inlineActionProperty=new v(d.Versions.v1_0,`inlineAction`,[`Action.ShowCard`]),r.regexProperty=new d.StringProperty(d.Versions.v1_3,`regex`,!0),n([(0,d.property)(r.valueProperty)],r.prototype,`defaultValue`,void 0),n([(0,d.property)(r.maxLengthProperty)],r.prototype,`maxLength`,void 0),n([(0,d.property)(r.isMultilineProperty)],r.prototype,`isMultiline`,void 0),n([(0,d.property)(r.placeholderProperty)],r.prototype,`placeholder`,void 0),n([(0,d.property)(r.styleProperty)],r.prototype,`style`,void 0),n([(0,d.property)(r.inlineActionProperty)],r.prototype,`inlineAction`,void 0),n([(0,d.property)(r.regexProperty)],r.prototype,`regex`,void 0),r}(ie);e.TextInput=ae;var oe=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.valueOn=`true`,t.valueOff=`false`,t.wrap=!1,t}return r.prototype.updateInputControlAriaLabelledBy=function(){if(this._checkboxInputElement){var e=this.getAllLabelIds().join(` `);this._checkboxInputLabelElement&&this._checkboxInputLabelElement.id&&(e+=` `+this._checkboxInputLabelElement.id),e?this._checkboxInputElement.setAttribute(`aria-labelledby`,e):this._checkboxInputElement.removeAttribute(`aria-labelledby`)}},r.prototype.internalRender=function(){var e=this,t=document.createElement(`div`);if(t.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-toggleInput`),t.style.width=`100%`,t.style.display=`flex`,t.style.alignItems=`center`,this._checkboxInputElement=document.createElement(`input`),this._checkboxInputElement.id=s.generateUniqueId(),this._checkboxInputElement.type=`checkbox`,this._checkboxInputElement.style.display=`inline-block`,this._checkboxInputElement.style.verticalAlign=`middle`,this._checkboxInputElement.style.margin=`0`,this._checkboxInputElement.style.flex=`0 0 auto`,this.title&&this._checkboxInputElement.setAttribute(`aria-label`,this.title),this.isRequired&&this._checkboxInputElement.setAttribute(`aria-required`,`true`),this._checkboxInputElement.tabIndex=this.isDesignMode()?-1:0,this.defaultValue===this.valueOn&&(this._checkboxInputElement.checked=!0),this._oldCheckboxValue=this._checkboxInputElement.checked,this._checkboxInputElement.onchange=function(){e.valueChanged()},s.appendChild(t,this._checkboxInputElement),this.title||this.isDesignMode()){var n=new b;if(n.setParent(this),n.forElementId=this._checkboxInputElement.id,n.hostConfig=this.hostConfig,n.text=this.title?this.title:this.getJsonTypeName(),n.useMarkdown=o.GlobalSettings.useMarkdownInRadioButtonAndCheckbox,n.wrap=this.wrap,this._checkboxInputLabelElement=n.render(),this._checkboxInputLabelElement){this._checkboxInputLabelElement.id=s.generateUniqueId(),this._checkboxInputLabelElement.style.display=`inline-block`,this._checkboxInputLabelElement.style.flex=`1 1 auto`,this._checkboxInputLabelElement.style.marginLeft=`6px`,this._checkboxInputLabelElement.style.verticalAlign=`middle`;var r=document.createElement(`div`);r.style.width=`6px`,s.appendChild(t,r),s.appendChild(t,this._checkboxInputLabelElement)}}return t},Object.defineProperty(r.prototype,`isNullable`,{get:function(){return!1},enumerable:!1,configurable:!0}),r.prototype.updateVisualState=function(e){},r.prototype.getJsonTypeName=function(){return`Input.Toggle`},r.prototype.focus=function(){this._checkboxInputElement&&this._checkboxInputElement.focus()},r.prototype.isSet=function(){return this.isRequired?this.value===this.valueOn:!!this.value},r.prototype.isDirty=function(){return this._checkboxInputElement?this._checkboxInputElement.checked!==this._oldCheckboxValue:!1},Object.defineProperty(r.prototype,`value`,{get:function(){if(this._checkboxInputElement)return this._checkboxInputElement.checked?this.valueOn:this.valueOff},enumerable:!1,configurable:!0}),r.valueProperty=new d.StringProperty(d.Versions.v1_0,`value`),r.titleProperty=new d.StringProperty(d.Versions.v1_0,`title`),r.valueOnProperty=new d.StringProperty(d.Versions.v1_0,`valueOn`,!0,void 0,`true`,function(e){return`true`}),r.valueOffProperty=new d.StringProperty(d.Versions.v1_0,`valueOff`,!0,void 0,`false`,function(e){return`false`}),r.wrapProperty=new d.BoolProperty(d.Versions.v1_2,`wrap`,!1),n([(0,d.property)(r.valueProperty)],r.prototype,`defaultValue`,void 0),n([(0,d.property)(r.titleProperty)],r.prototype,`title`,void 0),n([(0,d.property)(r.valueOnProperty)],r.prototype,`valueOn`,void 0),n([(0,d.property)(r.valueOffProperty)],r.prototype,`valueOff`,void 0),n([(0,d.property)(r.wrapProperty)],r.prototype,`wrap`,void 0),r}(ie);e.ToggleInput=oe;var se=function(e){t(r,e);function r(t,n){var r=e.call(this)||this;return r.title=t,r.value=n,r}return r.prototype.getSchemaKey=function(){return`Choice`},r.titleProperty=new d.StringProperty(d.Versions.v1_0,`title`),r.valueProperty=new d.StringProperty(d.Versions.v1_0,`value`),n([(0,d.property)(r.titleProperty)],r.prototype,`title`,void 0),n([(0,d.property)(r.valueProperty)],r.prototype,`value`,void 0),r}(d.SerializableObject);e.Choice=se;var ce=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getSchemaKey=function(){return`choices.data`},r.typeProperty=new d.StringProperty(d.Versions.v1_6,`type`,!0,RegExp(`^Data.Query$`)),r.datasetProperty=new d.StringProperty(d.Versions.v1_6,`dataset`),r.countProperty=new d.NumProperty(d.Versions.v1_6,`count`),r.skipProperty=new d.NumProperty(d.Versions.v1_6,`skip`),n([(0,d.property)(r.typeProperty)],r.prototype,`type`,void 0),n([(0,d.property)(r.datasetProperty)],r.prototype,`dataset`,void 0),n([(0,d.property)(r.countProperty)],r.prototype,`count`,void 0),n([(0,d.property)(r.skipProperty)],r.prototype,`skip`,void 0),r}(d.SerializableObject);e.ChoiceSetInputDataQuery=ce;var le=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.isMultiSelect=!1,t.wrap=!1,t.choices=[],t}return Object.defineProperty(r.prototype,`isCompact`,{get:function(){return!this.style||this.style===`compact`},set:function(e){this.style=e?void 0:`expanded`},enumerable:!1,configurable:!0}),r.getUniqueCategoryName=function(){var e=`__ac-category`+r._uniqueCategoryCounter;return r._uniqueCategoryCounter++,e},r.prototype.isDynamicTypeahead=function(){return!!this.choicesData&&!!this.choicesData.dataset&&this.choicesData.type===`Data.Query`},r.prototype.getFilterForDynamicSearch=function(){return this._filteredChoiceSet?.textInput?.value},r.prototype.renderChoices=function(e){var t;(t=this._filteredChoiceSet)==null||t.processResponse(e)},r.prototype.showLoadingIndicator=function(){var e;(e=this._filteredChoiceSet)==null||e.showLoadingIndicator()},r.prototype.removeLoadingIndicator=function(){var e;(e=this._filteredChoiceSet)==null||e.removeLoadingIndicator()},r.prototype.showErrorIndicator=function(e){var t;(t=this._filteredChoiceSet)==null||t.showErrorIndicator(e)},r.prototype.createPlaceholderOptionWhenValueDoesNotExist=function(){if(!this.value){var e=document.createElement(`option`);return e.selected=!0,e.disabled=!0,e.hidden=!0,e.value=``,this.placeholder&&(e.text=this.placeholder),e}},r.prototype.internalApplyAriaCurrent=function(){if(this._selectElement){var e=this._selectElement.options;if(e)for(var t=0,n=Array.from(e);t<n.length;t++){var r=n[t];r.selected?r.setAttribute(`aria-current`,`true`):r.removeAttribute(`aria-current`)}}},r.prototype.renderCompoundInput=function(e,t,n){var r=this,i=document.createElement(`div`);i.className=this.hostConfig.makeCssClassName(`ac-input`,e),i.style.width=`100%`,i.tabIndex=this.isDesignMode()?-1:0,this._toggleInputs=[],this._labels=[];for(var a=0,c=this.choices;a<c.length;a++){var l=c[a],u=document.createElement(`input`);u.id=s.generateUniqueId(),u.type=t,u.style.margin=`0`,u.style.display=`inline-block`,u.style.verticalAlign=`middle`,u.style.flex=`0 0 auto`,u.name=this.id?this.id:this._uniqueCategoryName,this.isRequired&&u.setAttribute(`aria-required`,`true`),u.tabIndex=this.isDesignMode()?-1:0,l.value&&(u.value=l.value),l.title&&u.setAttribute(`aria-label`,l.title),n&&l.value&&n.indexOf(l.value)>=0&&(u.checked=!0),u.onchange=function(){r.valueChanged()},this._toggleInputs.push(u);var d=document.createElement(`div`);d.style.display=`flex`,d.style.alignItems=`center`,s.appendChild(d,u);var f=new b;f.setParent(this),f.forElementId=u.id,f.hostConfig=this.hostConfig,f.text=l.title?l.title:`Choice `+this._toggleInputs.length,f.useMarkdown=o.GlobalSettings.useMarkdownInRadioButtonAndCheckbox,f.wrap=this.wrap;var p=f.render();if(this._labels.push(p),p){p.id=s.generateUniqueId(),p.style.display=`inline-block`,p.style.flex=`1 1 auto`,p.style.marginLeft=`6px`,p.style.verticalAlign=`middle`;var m=document.createElement(`div`);m.style.width=`6px`,s.appendChild(d,m),s.appendChild(d,p)}s.appendChild(i,d)}return i},r.prototype.updateInputControlAriaLabelledBy=function(){if((this.isMultiSelect||this.style===`expanded`)&&this._toggleInputs&&this._labels)for(var t=this.getAllLabelIds(),n=0;n<this._toggleInputs.length;n++){var r=t.join(` `),i=this._labels[n];i&&i.id&&(r+=` `+i.id),r?this._toggleInputs[n].setAttribute(`aria-labelledby`,r):this._toggleInputs[n].removeAttribute(`aria-labelledby`)}else e.prototype.updateInputControlAriaLabelledBy.call(this)},r.prototype.internalRender=function(){var e=this;if(this._uniqueCategoryName=r.getUniqueCategoryName(),this.isDynamicTypeahead()){var t=new ue(r._uniqueCategoryCounter,this.choices,this.hostConfig);if(t.render(),t.textInput){this._textInput=t.textInput,this.defaultValue&&(this._textInput.value=this.defaultValue),this.placeholder&&!this._textInput.value&&(this._textInput.placeholder=this.placeholder,this._textInput.setAttribute(`aria-label`,this.placeholder)),this._textInput.tabIndex=this.isDesignMode()?-1:0;var n=s.debounce(function(){t.processStaticChoices(),e.valueChanged(),e._textInput&&(e.value?(e._textInput.removeAttribute(`placeholder`),e._textInput.removeAttribute(`aria-label`)):e.placeholder&&(e._textInput.placeholder=e.placeholder,e._textInput.setAttribute(`aria-label`,e.placeholder)))},this.hostConfig.inputs.debounceTimeInMilliSeconds);this._textInput.onclick=n,this._textInput.oninput=n}return t.parent=this,this._filteredChoiceSet=t,t.renderedElement}else if(this.isMultiSelect)return this.renderCompoundInput(`ac-choiceSetInput-multiSelect`,`checkbox`,this.defaultValue?this.defaultValue.split(this.hostConfig.choiceSetInputValueSeparator):void 0);else if(this.style===`expanded`)return this.renderCompoundInput(`ac-choiceSetInput-expanded`,`radio`,this.defaultValue?[this.defaultValue]:void 0);else if(this.style===`filtered`){var i=document.createElement(`div`);i.style.width=`100%`,this._textInput=document.createElement(`input`),this._textInput.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-multichoiceInput`,`ac-choiceSetInput-filtered`),this._textInput.type=`text`,this._textInput.style.width=`100%`,this._textInput.oninput=function(){e.valueChanged(),e._textInput&&(e.value?(e._textInput.removeAttribute(`placeholder`),e._textInput.removeAttribute(`aria-label`)):e.placeholder&&(e._textInput.placeholder=e.placeholder,e._textInput.setAttribute(`aria-label`,e.placeholder)))},this.defaultValue&&(this._textInput.value=this.defaultValue),this.placeholder&&!this._textInput.value&&(this._textInput.placeholder=this.placeholder,this._textInput.setAttribute(`aria-label`,this.placeholder)),this._textInput.tabIndex=this.isDesignMode()?-1:0;var a=document.createElement(`datalist`);a.id=s.generateUniqueId();for(var o=0,c=this.choices;o<c.length;o++){var l=c[o],u=document.createElement(`option`);l.title&&(u.value=l.title,u.setAttribute(`aria-label`,l.title)),u.tabIndex=this.isDesignMode()?-1:0,a.appendChild(u)}return this._textInput.setAttribute(`list`,a.id),i.append(this._textInput,a),i}else{this._selectElement=document.createElement(`select`),this._selectElement.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-multichoiceInput`,`ac-choiceSetInput-compact`),this._selectElement.style.width=`100%`,this._selectElement.tabIndex=this.isDesignMode()?-1:0;var d=this.createPlaceholderOptionWhenValueDoesNotExist();s.appendChild(this._selectElement,d);for(var f=0,p=this.choices;f<p.length;f++){var l=p[f],u=document.createElement(`option`);u.value=l.value,l.title&&(u.text=l.title,u.setAttribute(`aria-label`,l.title)),u.tabIndex=this.isDesignMode()?-1:0,l.value===this.defaultValue&&(u.selected=!0),s.appendChild(this._selectElement,u)}return this._selectElement.onchange=function(){e.internalApplyAriaCurrent(),e.valueChanged()},this.internalApplyAriaCurrent(),this._selectElement}},r.prototype.updateVisualState=function(t){this.allowRevealOnHoverStyle&&!this.isMultiSelect&&this.isCompact&&(e.prototype.updateVisualState.call(this,t),this._selectElement&&this.inputStyle===a.InputStyle.RevealOnHover&&(this.shouldHideInputAdornersForRevealOnHover(this._selectElement,t)?(this._selectElement.style.appearance=`none`,this._selectElement.classList.remove(this.hostConfig.makeCssClassName(`ac-inputStyle-revealOnHover-onfocus`))):(this._selectElement.style.appearance=`auto`,this._selectElement.classList.add(this.hostConfig.makeCssClassName(`ac-inputStyle-revealOnHover-onfocus`)))))},r.prototype.getJsonTypeName=function(){return`Input.ChoiceSet`},r.prototype.focus=function(){this._toggleInputs&&(this.isMultiSelect||this.style===`expanded`)?this._toggleInputs.length>0&&this._toggleInputs[0].focus():this._textInput?this._textInput.focus():e.prototype.focus.call(this)},r.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.choices.length===0&&t.addFailure(this,a.ValidationEvent.CollectionCantBeEmpty,p.Strings.errors.choiceSetMustHaveAtLeastOneChoice());for(var n=0,r=this.choices;n<r.length;n++){var i=r[n];(!i.title||!i.value)&&t.addFailure(this,a.ValidationEvent.PropertyCantBeNull,p.Strings.errors.choiceSetChoicesMustHaveTitleAndValue())}},r.prototype.isSet=function(){return!!this.value},r.prototype.isValid=function(){if(this._textInput){if(this.value===``||this.value===this.placeholder)return!0;for(var t=0,n=this.choices;t<n.length;t++){var r=n[t];if(this.value===r.value)return!0}if(this.dynamicChoices)for(var i=0,a=this.dynamicChoices;i<a.length;i++){var r=a[i];if(this.value===r)return!0}return!1}return e.prototype.isValid.call(this)},Object.defineProperty(r.prototype,`value`,{get:function(){if(this.isMultiSelect){if(!this._toggleInputs||this._toggleInputs.length===0)return;for(var e=``,t=0,n=this._toggleInputs;t<n.length;t++){var r=n[t];r.checked&&(e!==``&&(e+=this.hostConfig.choiceSetInputValueSeparator),e+=r.value)}return e||void 0}else{if(this._selectElement)return this._selectElement.selectedIndex>0?this._selectElement.value:void 0;if(this._textInput){for(var i=0,a=this.choices;i<a.length;i++){var o=a[i];if(o.title&&this._textInput.value===o.title)return o.value}return this._textInput.value}else if(this._toggleInputs&&this._toggleInputs.length>0)for(var s=0,c=this._toggleInputs;s<c.length;s++){var r=c[s];if(r.checked)return r.value}return}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`dynamicChoices`,{get:function(){return this._filteredChoiceSet?.dynamicChoices},enumerable:!1,configurable:!0}),r.valueProperty=new d.StringProperty(d.Versions.v1_0,`value`),r.choicesProperty=new d.SerializableObjectCollectionProperty(d.Versions.v1_0,`choices`,se),r.choicesDataProperty=new d.SerializableObjectProperty(d.Versions.v1_6,`choices.data`,ce),r.styleProperty=new d.ValueSetProperty(d.Versions.v1_0,`style`,[{value:`compact`},{value:`expanded`},{value:`filtered`,targetVersion:d.Versions.v1_5}],`compact`),r.isMultiSelectProperty=new d.BoolProperty(d.Versions.v1_0,`isMultiSelect`,!1),r.placeholderProperty=new d.StringProperty(d.Versions.v1_0,`placeholder`),r.wrapProperty=new d.BoolProperty(d.Versions.v1_2,`wrap`,!1),r._uniqueCategoryCounter=0,n([(0,d.property)(r.valueProperty)],r.prototype,`defaultValue`,void 0),n([(0,d.property)(r.styleProperty)],r.prototype,`style`,void 0),n([(0,d.property)(r.isMultiSelectProperty)],r.prototype,`isMultiSelect`,void 0),n([(0,d.property)(r.placeholderProperty)],r.prototype,`placeholder`,void 0),n([(0,d.property)(r.wrapProperty)],r.prototype,`wrap`,void 0),n([(0,d.property)(r.choicesProperty)],r.prototype,`choices`,void 0),n([(0,d.property)(r.choicesDataProperty)],r.prototype,`choicesData`,void 0),r}(ie);e.ChoiceSetInput=le;var ue=function(){function e(e,t,n){this._choiceSetId=e,this._choices=t,this._dynamicChoices=[],this._visibleChoiceCount=0,this._hostConfig=n}return e.prototype.render=function(){var e=this,t=document.createElement(`div`);t.style.position=`relative`,t.style.width=`100%`,this._textInput=document.createElement(`input`),this._textInput.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-multichoiceInput`,`ac-choiceSetInput-filtered`),this._textInput.type=`text`,this._textInput.style.width=`100%`,this._textInput.onkeydown=function(t){t.key===`ArrowDown`&&e.focusChoice(0)},this._dropdown=document.createElement(`div`),this._dropdown.style.display=`none`,this._dropdown.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-multichoiceInput`,`ac-choiceSetInput-filtered-dropdown`),t.append(this._textInput,this._dropdown),document.onclick=function(t){if(e._dropdown){for(var n=e._dropdown.firstChild;n&&t.target!==n;)n=n.nextSibling;(n||t.target!==e._textInput)&&(e._dropdown.style.display=`none`)}},this._renderedElement=t},e.prototype.createChoice=function(e,t,n){var r=this,i=document.createElement(`span`);return i.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-choiceSetInput-choice`),i.id=`ac-choiceSetInput-${this._choiceSetId}-choice-${n}`,i.innerHTML=e.replace(t,`<b>${t}</b>`),i.tabIndex=-1,i.addEventListener(`focusin`,function(){i.classList.add(`focused`)}),i.addEventListener(`focusout`,function(){i.classList.remove(`focused`)}),i.onclick=function(){r._textInput&&(r._textInput.value=i.innerText),r._dropdown&&(r._dropdown.style.display=`none`)},i.onkeydown=function(e){e.key===`ArrowDown`?r.focusChoice(n+1):e.key===`ArrowUp`?r.focusChoice(n-1):e.key===`Enter`&&i.click()},i.onmouseover=function(){r.focusChoice(n)},i},e.prototype.focusChoice=function(e){var t=document.getElementById(`ac-choiceSetInput-${this._choiceSetId}-choice-${e}`);if(t)t.focus();else if(this._textInput){this._textInput.focus();var n=this._textInput.value.length;this._textInput.setSelectionRange(n,n)}},e.prototype.filterChoices=function(e){var t,n=this._textInput?.value.toLowerCase();if(n)for(var r=e?this._dynamicChoices:this._choices,i=0,a=r;i<a.length;i++){var o=a[i];if(o.title){var s=o.title.toLowerCase().indexOf(n);if(s!==-1){var c=o.title.substring(s,s+n.length),l=this.createChoice(o.title,c,this._visibleChoiceCount++);(t=this._dropdown)==null||t.appendChild(l)}}}},e.prototype.getStatusIndicator=function(e){if(e){if(!this._errorIndicator){var t=document.createElement(`div`);t.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-choiceSetInput-statusIndicator`,`ac-choiceSetInput-errorIndicator`),this._errorIndicator=t}return this._errorIndicator.innerText=e,this._errorIndicator}else{if(!this._loadingIndicator){var n=document.createElement(`div`);n.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-choiceSetInput-statusIndicator`),this._loadingIndicator=n}return this._loadingIndicator.innerText=this._visibleChoiceCount===0?`Loading...`:`Loading more...`,this._loadingIndicator}},e.prototype.resetDropdown=function(){this._dynamicChoices=[],this._dropdown&&(s.clearElementChildren(this._dropdown),this._visibleChoiceCount=0)},e.prototype.showDropdown=function(){this._dropdown?.hasChildNodes&&(this._dropdown.style.display=`block`)},e.prototype.processStaticChoices=function(){this.resetDropdown(),this.filterChoices(),this.showDropdown()},e.prototype.processResponse=function(e){this._dynamicChoices=e,this.filterChoices(!0),this._visibleChoiceCount===0&&this.showErrorIndicator(`No results found.`)},e.prototype.showLoadingIndicator=function(){var e,t=this.getStatusIndicator();(e=this._dropdown)==null||e.appendChild(t),this.showDropdown()},e.prototype.removeLoadingIndicator=function(){var e;this._loadingIndicator&&this._dropdown?.contains(this._loadingIndicator)&&((e=this._dropdown)==null||e.removeChild(this._loadingIndicator))},e.prototype.showErrorIndicator=function(e){var t;this.removeLoadingIndicator();var n=this.getStatusIndicator(e);(t=this._dropdown)==null||t.appendChild(n)},Object.defineProperty(e.prototype,`dynamicChoices`,{get:function(){return this._dynamicChoices?.map(function(e){return e.title})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`hostConfig`,{get:function(){return this._hostConfig?this._hostConfig:this.parent?this.parent.hostConfig:c.defaultHostConfig},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`parent`,{get:function(){return this._parent},set:function(e){this._parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`renderedElement`,{get:function(){return this._renderedElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`textInput`,{get:function(){return this._textInput},enumerable:!1,configurable:!0}),e}();e.FilteredChoiceSet=ue;var de=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.internalRender=function(){var e=this;return this._numberInputElement=document.createElement(`input`),this._numberInputElement.setAttribute(`type`,`number`),this.min!==void 0&&this._numberInputElement.setAttribute(`min`,this.min.toString()),this.max!==void 0&&this._numberInputElement.setAttribute(`max`,this.max.toString()),this._numberInputElement.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-numberInput`),this._numberInputElement.style.width=`100%`,this._numberInputElement.tabIndex=this.isDesignMode()?-1:0,this.defaultValue!==void 0&&(this._numberInputElement.valueAsNumber=this.defaultValue),this.placeholder&&(this._numberInputElement.placeholder=this.placeholder,this._numberInputElement.setAttribute(`aria-label`,this.placeholder)),this._numberInputElement.oninput=function(){e.valueChanged()},this._numberInputElement},r.prototype.getJsonTypeName=function(){return`Input.Number`},r.prototype.isSet=function(){return this.value!==void 0&&!isNaN(this.value)},r.prototype.isValid=function(){if(this.value===void 0)return!this.isRequired;var e=!0;return this.min!==void 0&&(e&&=this.value>=this.min),this.max!==void 0&&(e&&=this.value<=this.max),e},Object.defineProperty(r.prototype,`value`,{get:function(){return this._numberInputElement?this._numberInputElement.valueAsNumber:void 0},set:function(e){e&&this._numberInputElement&&(this._numberInputElement.value=e.toString())},enumerable:!1,configurable:!0}),r.valueProperty=new d.NumProperty(d.Versions.v1_0,`value`),r.placeholderProperty=new d.StringProperty(d.Versions.v1_0,`placeholder`),r.minProperty=new d.NumProperty(d.Versions.v1_0,`min`),r.maxProperty=new d.NumProperty(d.Versions.v1_0,`max`),n([(0,d.property)(r.valueProperty)],r.prototype,`defaultValue`,void 0),n([(0,d.property)(r.minProperty)],r.prototype,`min`,void 0),n([(0,d.property)(r.maxProperty)],r.prototype,`max`,void 0),n([(0,d.property)(r.placeholderProperty)],r.prototype,`placeholder`,void 0),r}(ie);e.NumberInput=de;var fe=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.internalRender=function(){var e=this;return this._dateInputElement=document.createElement(`input`),this._dateInputElement.setAttribute(`type`,`date`),this.min&&this._dateInputElement.setAttribute(`min`,this.min),this.max&&this._dateInputElement.setAttribute(`max`,this.max),this.placeholder&&(this._dateInputElement.placeholder=this.placeholder,this._dateInputElement.setAttribute(`aria-label`,this.placeholder)),this._dateInputElement.tabIndex=this.isDesignMode()?-1:0,this._dateInputElement.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-dateInput`),this._dateInputElement.style.width=`100%`,this._dateInputElement.oninput=function(){e.valueChanged()},this.defaultValue&&(this._dateInputElement.value=this.defaultValue),this._dateInputElement},r.prototype.updateVisualState=function(t){if(this.allowRevealOnHoverStyle&&(e.prototype.updateVisualState.call(this,t),this._dateInputElement&&this.inputStyle===a.InputStyle.RevealOnHover)){var n=this.shouldHideInputAdornersForRevealOnHover(this._dateInputElement,t);n?this._dateInputElement.classList.remove(this.hostConfig.makeCssClassName(`ac-inputStyle-revealOnHover-onfocus`)):this._dateInputElement.classList.add(this.hostConfig.makeCssClassName(`ac-inputStyle-revealOnHover-onfocus`)),Re(this._dateInputElement,n)}},r.prototype.getJsonTypeName=function(){return`Input.Date`},r.prototype.isSet=function(){return!!this.value},r.prototype.isValid=function(){if(!this.value)return!this.isRequired;var e=new Date(this.value),t=!0;if(this.min){var n=new Date(this.min);t&&=e>=n}if(this.max){var r=new Date(this.max);t&&=e<=r}return t},Object.defineProperty(r.prototype,`value`,{get:function(){return this._dateInputElement?this._dateInputElement.value:void 0},enumerable:!1,configurable:!0}),r.valueProperty=new d.StringProperty(d.Versions.v1_0,`value`),r.placeholderProperty=new d.StringProperty(d.Versions.v1_0,`placeholder`),r.minProperty=new d.StringProperty(d.Versions.v1_0,`min`),r.maxProperty=new d.StringProperty(d.Versions.v1_0,`max`),n([(0,d.property)(r.valueProperty)],r.prototype,`defaultValue`,void 0),n([(0,d.property)(r.minProperty)],r.prototype,`min`,void 0),n([(0,d.property)(r.maxProperty)],r.prototype,`max`,void 0),n([(0,d.property)(r.placeholderProperty)],r.prototype,`placeholder`,void 0),r}(ie);e.DateInput=fe;var pe=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n,function(e,t,n,r){var i=n[t.name];if(typeof i==`string`&&i&&/^[0-9]{2}:[0-9]{2}$/.test(i))return i},function(e,t,n,r,i){i.serializeValue(n,t.name,r)})||this;return r.targetVersion=t,r.name=n,r}return n}(d.CustomProperty);e.TimeProperty=pe;var me=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.convertTimeStringToDate=function(e){return new Date(`1973-09-04T`+e+`:00Z`)},r.prototype.internalRender=function(){var e=this;return this._timeInputElement=document.createElement(`input`),this._timeInputElement.setAttribute(`type`,`time`),this.min&&this._timeInputElement.setAttribute(`min`,this.min),this.max&&this._timeInputElement.setAttribute(`max`,this.max),this._timeInputElement.className=this.hostConfig.makeCssClassName(`ac-input`,`ac-timeInput`),this._timeInputElement.style.width=`100%`,this._timeInputElement.oninput=function(){e.valueChanged()},this.placeholder&&(this._timeInputElement.placeholder=this.placeholder,this._timeInputElement.setAttribute(`aria-label`,this.placeholder)),this._timeInputElement.tabIndex=this.isDesignMode()?-1:0,this.defaultValue&&(this._timeInputElement.value=this.defaultValue),this._timeInputElement},r.prototype.updateVisualState=function(t){if(this.allowRevealOnHoverStyle&&(e.prototype.updateVisualState.call(this,t),this._timeInputElement&&this.inputStyle===a.InputStyle.RevealOnHover)){var n=this.shouldHideInputAdornersForRevealOnHover(this._timeInputElement,t);n?this._timeInputElement.classList.remove(this.hostConfig.makeCssClassName(`ac-inputStyle-revealOnHover-onfocus`)):this._timeInputElement.classList.add(this.hostConfig.makeCssClassName(`ac-inputStyle-revealOnHover-onfocus`)),Re(this._timeInputElement,n)}},r.prototype.getJsonTypeName=function(){return`Input.Time`},r.prototype.isSet=function(){return!!this.value},r.prototype.isValid=function(){if(!this.value)return!this.isRequired;var e=r.convertTimeStringToDate(this.value),t=!0;if(this.min){var n=r.convertTimeStringToDate(this.min);t&&=e>=n}if(this.max){var i=r.convertTimeStringToDate(this.max);t&&=e<=i}return t},Object.defineProperty(r.prototype,`value`,{get:function(){return this._timeInputElement?this._timeInputElement.value:void 0},enumerable:!1,configurable:!0}),r.valueProperty=new pe(d.Versions.v1_0,`value`),r.placeholderProperty=new d.StringProperty(d.Versions.v1_0,`placeholder`),r.minProperty=new pe(d.Versions.v1_0,`min`),r.maxProperty=new pe(d.Versions.v1_0,`max`),n([(0,d.property)(r.valueProperty)],r.prototype,`defaultValue`,void 0),n([(0,d.property)(r.minProperty)],r.prototype,`min`,void 0),n([(0,d.property)(r.maxProperty)],r.prototype,`max`,void 0),n([(0,d.property)(r.placeholderProperty)],r.prototype,`placeholder`,void 0),r}(ie);e.TimeInput=me;var he=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.style=a.ActionStyle.Default,t.mode=a.ActionMode.Primary,t._state=0,t._isFocusable=!0,t}return r.prototype.renderButtonContent=function(){if(this.renderedElement){var e=this.hostConfig,t=document.createElement(`div`);if(t.style.overflow=`hidden`,t.style.textOverflow=`ellipsis`,e.actions.iconPlacement===a.ActionIconPlacement.AboveTitle||e.actions.allowTitleToWrap||(t.style.whiteSpace=`nowrap`),this.title&&(t.innerText=this.title),!this.iconUrl)this.renderedElement.classList.add(`noIcon`),this.renderedElement.appendChild(t);else{var n=document.createElement(`img`);n.src=this.iconUrl,n.style.width=e.actions.iconSize+`px`,n.style.height=e.actions.iconSize+`px`,n.style.flex=`0 0 auto`,e.actions.iconPlacement===a.ActionIconPlacement.AboveTitle?(this.renderedElement.classList.add(`iconAbove`),this.renderedElement.style.flexDirection=`column`,this.title&&(n.style.marginBottom=`6px`)):(this.renderedElement.classList.add(`iconLeft`),n.style.maxHeight=`100%`,this.title&&(n.style.marginRight=`6px`)),this.renderedElement.appendChild(n),this.renderedElement.appendChild(t)}}},r.prototype.getParentContainer=function(){return this.parent instanceof ke?this.parent:this.parent?this.parent.getParentContainer():void 0},r.prototype.isDesignMode=function(){var e=this.getRootObject();return e instanceof _&&e.isDesignMode()},r.prototype.updateCssClasses=function(){var e,t;if(this.parent&&this.renderedElement){var n=this.parent.hostConfig;this.renderedElement.className=n.makeCssClassName(this.isEffectivelyEnabled()?`ac-pushButton`:`ac-pushButton-disabled`);var r=this.getParentContainer();if(r){var i=r.getEffectiveStyle();i&&this.renderedElement.classList.add(`style-`+i)}switch(this.renderedElement.tabIndex=!this.isDesignMode()&&this.isFocusable?0:-1,this._state){case 0:break;case 1:this.renderedElement.classList.add(n.makeCssClassName(`expanded`));break;case 2:this.renderedElement.classList.add(n.makeCssClassName(`subdued`));break}this.style&&this.isEffectivelyEnabled()&&(this.style===a.ActionStyle.Positive?(e=this.renderedElement.classList).add.apply(e,n.makeCssClassNames(`primary`,`style-positive`)):(t=this.renderedElement.classList).add.apply(t,n.makeCssClassNames(`style-`+this.style.toLowerCase())))}},r.prototype.getDefaultSerializationContext=function(){return new Ye},r.prototype.internalGetReferencedInputs=function(){return{}},r.prototype.internalPrepareForExecution=function(e){},r.prototype.internalValidateInputs=function(e){var t=[];if(e)for(var n=0,r=Object.keys(e);n<r.length;n++){var i=e[r[n]];i.validateValue()||t.push(i)}return t},r.prototype.shouldSerialize=function(e){return e.actionRegistry.findByName(this.getJsonTypeName())!==void 0},r.prototype.raiseExecuteActionEvent=function(){this.onExecute&&this.onExecute(this),Pe(this)},r.prototype.internalAfterExecute=function(){var e=this.getRootObject();e instanceof _&&e.updateActionsEnabledState()},r.prototype.getHref=function(){return``},r.prototype.getAriaRole=function(){return this.getAriaRoleFromEnum()??`button`},r.prototype.getAriaRoleFromEnum=function(){switch(this.role){case a.ActionRole.Button:return`button`;case a.ActionRole.Link:return`link`;case a.ActionRole.Menu:return`menu`;case a.ActionRole.MenuItem:return`menuitem`;case a.ActionRole.Tab:return`tab`;default:return}},r.prototype.setupElementForAccessibility=function(e,t){t===void 0&&(t=!1),e.tabIndex=this.isEffectivelyEnabled()&&!this.isDesignMode()?0:-1,e.setAttribute(`role`,this.getAriaRole()),e instanceof HTMLButtonElement&&(e.disabled=!this.isEffectivelyEnabled()),this.isEffectivelyEnabled()?(e.removeAttribute(`aria-disabled`),e.classList.add(this.hostConfig.makeCssClassName(`ac-selectable`))):e.setAttribute(`aria-disabled`,`true`),this.title?(e.setAttribute(`aria-label`,this.title),e.title=this.title):(e.removeAttribute(`aria-label`),e.removeAttribute(`title`)),this.tooltip&&(t&&!this.title&&e.setAttribute(`aria-label`,this.tooltip),e.title=this.tooltip)},r.prototype.parse=function(t,n){return e.prototype.parse.call(this,t,n||new Ye)},r.prototype.render=function(){var e=this,t=document.createElement(`button`);t.type=`button`,t.style.display=`flex`,t.style.alignItems=`center`,t.style.justifyContent=`center`,t.onclick=function(t){e.isEffectivelyEnabled()&&(t.preventDefault(),t.cancelBubble=!0,e.execute())},this._renderedElement=t,this.renderButtonContent(),this.updateCssClasses(),this.setupElementForAccessibility(t)},r.prototype.execute=function(){this._actionCollection&&this._actionCollection.actionExecuted(this),this.raiseExecuteActionEvent(),this.internalAfterExecute()},r.prototype.prepareForExecution=function(){var e=this.getReferencedInputs(),t=this.internalValidateInputs(e);return t.length>0?(t[0].focus(),!1):(this.internalPrepareForExecution(e),!0)},r.prototype.remove=function(){return this._actionCollection?this._actionCollection.removeAction(this):!1},r.prototype.getAllInputs=function(e){return e===void 0&&(e=!0),[]},r.prototype.getAllActions=function(){return[this]},r.prototype.getResourceInformation=function(){return this.iconUrl?[{url:this.iconUrl,mimeType:`image`}]:[]},r.prototype.getActionById=function(e){return this.id===e?this:void 0},r.prototype.getReferencedInputs=function(){return this.internalGetReferencedInputs()},r.prototype.validateInputs=function(){return this.internalValidateInputs(this.getReferencedInputs())},r.prototype.updateEnabledState=function(){},r.prototype.isEffectivelyEnabled=function(){return this.isEnabled},Object.defineProperty(r.prototype,`isPrimary`,{get:function(){return this.style===a.ActionStyle.Positive},set:function(e){e?this.style=a.ActionStyle.Positive:this.style===a.ActionStyle.Positive&&(this.style=a.ActionStyle.Default)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`hostConfig`,{get:function(){return this.parent?this.parent.hostConfig:c.defaultHostConfig},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`parent`,{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`state`,{get:function(){return this._state},set:function(e){this._state!==e&&(this._state=e,this.updateCssClasses())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`isFocusable`,{get:function(){return this._isFocusable},set:function(e){this._isFocusable!==e&&(this._isFocusable=e,this.updateCssClasses())},enumerable:!1,configurable:!0}),r.titleProperty=new d.StringProperty(d.Versions.v1_0,`title`),r.iconUrlProperty=new d.StringProperty(d.Versions.v1_1,`iconUrl`),r.styleProperty=new d.ValueSetProperty(d.Versions.v1_2,`style`,[{value:a.ActionStyle.Default},{value:a.ActionStyle.Positive},{value:a.ActionStyle.Destructive}],a.ActionStyle.Default),r.modeProperty=new d.ValueSetProperty(d.Versions.v1_5,`mode`,[{value:a.ActionMode.Primary},{value:a.ActionMode.Secondary}],a.ActionMode.Primary),r.tooltipProperty=new d.StringProperty(d.Versions.v1_5,`tooltip`),r.isEnabledProperty=new d.BoolProperty(d.Versions.v1_5,`isEnabled`,!0),r.roleProperty=new d.EnumProperty(d.Versions.v1_6,`role`,a.ActionRole),n([(0,d.property)(r.titleProperty)],r.prototype,`title`,void 0),n([(0,d.property)(r.iconUrlProperty)],r.prototype,`iconUrl`,void 0),n([(0,d.property)(r.styleProperty)],r.prototype,`style`,void 0),n([(0,d.property)(r.modeProperty)],r.prototype,`mode`,void 0),n([(0,d.property)(r.tooltipProperty)],r.prototype,`tooltip`,void 0),n([(0,d.property)(r.isEnabledProperty)],r.prototype,`isEnabled`,void 0),n([(0,d.property)(r.roleProperty)],r.prototype,`role`,void 0),r}(u.CardObject);e.Action=he;var ge=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.disabledUnlessAssociatedInputsChange=!1,t._isPrepared=!1,t._areReferencedInputsDirty=!1,t}return r.prototype.internalGetReferencedInputs=function(){var e={};if(this.associatedInputs!==`none`){for(var t=this.parent,n=[];t;)n.push.apply(n,t.getAllInputs(!1)),t=t.parent;for(var r=0,i=n;r<i.length;r++){var a=i[r];a.id&&(e[a.id]=a)}}return e},r.prototype.internalPrepareForExecution=function(e){if(this._originalData?this._processedData=JSON.parse(JSON.stringify(this._originalData)):this._processedData={},this._processedData&&e)for(var t=0,n=Object.keys(e);t<n.length;t++){var r=e[n[t]];r.id&&r.isSet()&&(this._processedData[r.id]=typeof r.value==`string`?r.value:r.value.toString())}this._isPrepared=!0},r.prototype.internalAfterExecute=function(){o.GlobalSettings.resetInputsDirtyStateAfterActionExecution&&this.resetReferencedInputsDirtyState()},r.prototype.resetReferencedInputsDirtyState=function(){var e=this.getReferencedInputs();if(this._areReferencedInputsDirty=!1,e)for(var t=0,n=Object.keys(e);t<n.length;t++)e[n[t]].resetDirtyState()},r.prototype.updateEnabledState=function(){this._areReferencedInputsDirty=!1;var e=this.getReferencedInputs();if(e){for(var t=0,n=Object.keys(e);t<n.length;t++)if(e[n[t]].isDirty()){this._areReferencedInputsDirty=!0;break}}this.updateCssClasses(),this._renderedElement&&this.setupElementForAccessibility(this._renderedElement)},r.prototype.isEffectivelyEnabled=function(){var t=e.prototype.isEffectivelyEnabled.call(this);return this.disabledUnlessAssociatedInputsChange?t&&this._areReferencedInputsDirty:t},Object.defineProperty(r.prototype,`data`,{get:function(){return this._isPrepared?this._processedData:this._originalData},set:function(e){this._originalData=e,this._isPrepared=!1},enumerable:!1,configurable:!0}),r.dataProperty=new d.PropertyDefinition(d.Versions.v1_0,`data`),r.associatedInputsProperty=new d.CustomProperty(d.Versions.v1_3,`associatedInputs`,function(e,t,n,r){var i=n[t.name];if(i!==void 0&&typeof i==`string`)return i.toLowerCase()===`none`?`none`:`auto`},function(e,t,n,r,i){i.serializeValue(n,t.name,r)}),r.disabledUnlessAssociatedInputsChangeProperty=new d.BoolProperty(d.Versions.v1_6,`disabledUnlessAssociatedInputsChange`,!1),n([(0,d.property)(r.dataProperty)],r.prototype,`_originalData`,void 0),n([(0,d.property)(r.associatedInputsProperty)],r.prototype,`associatedInputs`,void 0),n([(0,d.property)(r.disabledUnlessAssociatedInputsChangeProperty)],r.prototype,`disabledUnlessAssociatedInputsChange`,void 0),r}(he);e.SubmitActionBase=ge;var _e=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.getJsonTypeName=function(){return n.JsonTypeName},n.JsonTypeName=`Action.Submit`,n}(ge);e.SubmitAction=_e;var ve=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(ge);e.UniversalAction=ve;var z=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getJsonTypeName=function(){return r.JsonTypeName},r.JsonTypeName=`Action.Execute`,r.verbProperty=new d.StringProperty(d.Versions.v1_4,`verb`),n([(0,d.property)(r.verbProperty)],r.prototype,`verb`,void 0),r}(ve);e.ExecuteAction=z,e.DataQuery=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getJsonTypeName=function(){return r.JsonTypeName},Object.defineProperty(r.prototype,`isStandalone`,{get:function(){return!1},enumerable:!1,configurable:!0}),r.JsonTypeName=`Data.Query`,r.datasetProperty=new d.StringProperty(d.Versions.v1_6,`dataset`),r.filterProperty=new d.StringProperty(d.Versions.v1_6,`filter`),r.countProperty=new d.NumProperty(d.Versions.v1_6,`count`),r.skipProperty=new d.NumProperty(d.Versions.v1_6,`skip`),n([(0,d.property)(r.datasetProperty)],r.prototype,`dataset`,void 0),n([(0,d.property)(r.filterProperty)],r.prototype,`filter`,void 0),n([(0,d.property)(r.countProperty)],r.prototype,`count`,void 0),n([(0,d.property)(r.skipProperty)],r.prototype,`skip`,void 0),r}(ve);var B=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getJsonTypeName=function(){return r.JsonTypeName},r.prototype.getAriaRole=function(){return this.getAriaRoleFromEnum()??`link`},r.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.url||t.addFailure(this,a.ValidationEvent.PropertyCantBeNull,p.Strings.errors.propertyMustBeSet(`url`))},r.prototype.getHref=function(){return this.url},r.urlProperty=new d.StringProperty(d.Versions.v1_0,`url`),r.JsonTypeName=`Action.OpenUrl`,n([(0,d.property)(r.urlProperty)],r.prototype,`url`,void 0),r}(he);e.OpenUrlAction=B;var V=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.targetElements={},t}return r.prototype.updateAriaControlsAttribute=function(){if(this.targetElements){var e=Object.keys(this.targetElements);this._renderedElement&&(e.length>0?this._renderedElement.setAttribute(`aria-controls`,e.join(` `)):this._renderedElement.removeAttribute(`aria-controls`))}},r.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.targetElements||t.addFailure(this,a.ValidationEvent.PropertyCantBeNull,p.Strings.errors.propertyMustBeSet(`targetElements`))},r.prototype.getJsonTypeName=function(){return r.JsonTypeName},r.prototype.render=function(){e.prototype.render.call(this),this.updateAriaControlsAttribute()},r.prototype.execute=function(){if(e.prototype.execute.call(this),this.parent)for(var t=0,n=Object.keys(this.targetElements);t<n.length;t++){var r=n[t],i=this.parent.getRootElement().getElementById(r);i&&(typeof this.targetElements[r]==`boolean`?i.isVisible=this.targetElements[r]:i.isVisible=!i.isVisible)}},r.prototype.addTargetElement=function(e,t){t===void 0&&(t=void 0),this.targetElements[e]=t,this.updateAriaControlsAttribute()},r.prototype.removeTargetElement=function(e){delete this.targetElements[e],this.updateAriaControlsAttribute()},r.targetElementsProperty=new d.CustomProperty(d.Versions.v1_2,`targetElements`,function(e,t,n,r){var i={};if(Array.isArray(n[t.name]))for(var a=0,o=n[t.name];a<o.length;a++){var c=o[a];if(typeof c==`string`)i[c]=void 0;else if(typeof c==`object`){var l=c.elementId;typeof l==`string`&&(i[l]=s.parseBool(c.isVisible))}}return i},function(e,t,n,r,i){for(var a=[],o=0,s=Object.keys(r);o<s.length;o++){var c=s[o];typeof r[c]==`boolean`?a.push({elementId:c,isVisible:r[c]}):a.push(c)}i.serializeArray(n,t.name,a)},{},function(e){return{}}),r.JsonTypeName=`Action.ToggleVisibility`,n([(0,d.property)(r.targetElementsProperty)],r.prototype,`targetElements`,void 0),r}(he);e.ToggleVisibilityAction=V;var ye=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n,void 0,function(){return new o.StringWithSubstitutions})||this;return r.targetVersion=t,r.name=n,r}return n.prototype.parse=function(e,t,n){var r=new o.StringWithSubstitutions;return r.set(s.parseString(t[this.name])),r},n.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,n.getOriginal())},n}(d.PropertyDefinition),be=function(e){t(r,e);function r(t,n){t===void 0&&(t=``),n===void 0&&(n=``);var r=e.call(this)||this;return r.name=t,r.value=n,r}return r.prototype.getSchemaKey=function(){return`HttpHeader`},r.prototype.getReferencedInputs=function(e,t){this._value.getReferencedInputs(e,t)},r.prototype.prepareForExecution=function(e){this._value.substituteInputValues(e,o.ContentTypes.applicationXWwwFormUrlencoded)},Object.defineProperty(r.prototype,`value`,{get:function(){return this._value.get()},set:function(e){this._value.set(e)},enumerable:!1,configurable:!0}),r.nameProperty=new d.StringProperty(d.Versions.v1_0,`name`),r.valueProperty=new ye(d.Versions.v1_0,`value`),n([(0,d.property)(r.nameProperty)],r.prototype,`name`,void 0),n([(0,d.property)(r.valueProperty)],r.prototype,`_value`,void 0),r}(d.SerializableObject);e.HttpHeader=be,e.HttpAction=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t._ignoreInputValidation=!1,t}return r.prototype.internalGetReferencedInputs=function(){var e=this.parent?this.parent.getRootElement().getAllInputs():[],t={};this._url.getReferencedInputs(e,t);for(var n=0,r=this.headers;n<r.length;n++)r[n].getReferencedInputs(e,t);return this._body.getReferencedInputs(e,t),t},r.prototype.internalPrepareForExecution=function(e){if(e){this._url.substituteInputValues(e,o.ContentTypes.applicationXWwwFormUrlencoded);for(var t=o.ContentTypes.applicationJson,n=0,r=this.headers;n<r.length;n++){var i=r[n];i.prepareForExecution(e),i.name&&i.name.toLowerCase()===`content-type`&&(t=i.value)}this._body.substituteInputValues(e,t)}},r.prototype.getJsonTypeName=function(){return r.JsonTypeName},r.prototype.internalValidateProperties=function(t){if(e.prototype.internalValidateProperties.call(this,t),this.url||t.addFailure(this,a.ValidationEvent.PropertyCantBeNull,p.Strings.errors.propertyMustBeSet(`url`)),this.headers.length>0)for(var n=0,r=this.headers;n<r.length;n++)r[n].name||t.addFailure(this,a.ValidationEvent.PropertyCantBeNull,p.Strings.errors.actionHttpHeadersMustHaveNameAndValue())},Object.defineProperty(r.prototype,`ignoreInputValidation`,{get:function(){return this._ignoreInputValidation},set:function(e){this._ignoreInputValidation=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`url`,{get:function(){return this._url.get()},set:function(e){this._url.set(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`body`,{get:function(){return this._body.get()},set:function(e){this._body.set(e)},enumerable:!1,configurable:!0}),r.urlProperty=new ye(d.Versions.v1_0,`url`),r.bodyProperty=new ye(d.Versions.v1_0,`body`),r.methodProperty=new d.StringProperty(d.Versions.v1_0,`method`),r.headersProperty=new d.SerializableObjectCollectionProperty(d.Versions.v1_0,`headers`,be),r.ignoreInputValidationProperty=new d.BoolProperty(d.Versions.v1_3,`ignoreInputValidation`,!1),r.JsonTypeName=`Action.Http`,n([(0,d.property)(r.urlProperty)],r.prototype,`_url`,void 0),n([(0,d.property)(r.bodyProperty)],r.prototype,`_body`,void 0),n([(0,d.property)(r.methodProperty)],r.prototype,`method`,void 0),n([(0,d.property)(r.headersProperty)],r.prototype,`headers`,void 0),n([(0,d.property)(r.ignoreInputValidationProperty)],r.prototype,`_ignoreInputValidation`,void 0),r}(he);var xe=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.card=new Je,t}return n.prototype.updateCssClasses=function(){if(e.prototype.updateCssClasses.call(this),this.renderedElement){var t=this.parent?this.parent.hostConfig:c.defaultHostConfig;this.renderedElement.classList.add(t.makeCssClassName(`expandable`)),this.renderedElement.setAttribute(`aria-expanded`,(this.state===1).toString())}},n.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n);var r=t.card;r?this.card.parse(r,n):n.logParseEvent(this,a.ValidationEvent.PropertyCantBeNull,p.Strings.errors.showCardMustHaveCard())},n.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n),this.card&&n.serializeValue(t,`card`,this.card.toJSON(n))},n.prototype.raiseExecuteActionEvent=function(){this.hostConfig.actions.showCard.actionMode===a.ShowCardActionMode.Popup&&e.prototype.raiseExecuteActionEvent.call(this)},n.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this),this.card.releaseDOMResources()},n.prototype.getJsonTypeName=function(){return n.JsonTypeName},n.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.card.internalValidateProperties(t)},n.prototype.setParent=function(t){e.prototype.setParent.call(this,t),this.card.setParent(t)},n.prototype.getAllInputs=function(e){return e===void 0&&(e=!0),this.card.getAllInputs(e)},n.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return t.push.apply(t,this.card.getAllActions()),t},n.prototype.getResourceInformation=function(){var t=e.prototype.getResourceInformation.call(this);return t.push.apply(t,this.card.getResourceInformation()),t},n.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);return n||=this.card.getActionById(t),n},n.JsonTypeName=`Action.ShowCard`,n}(he);e.ShowCardAction=xe;var Se=function(e){t(n,e);function n(t){var n=e.call(this)||this;return n._actions=t,n.title=p.Strings.defaults.overflowButtonText(),n.tooltip=p.Strings.defaults.overflowButtonTooltip(),n}return n.prototype.getActions=function(){return this._actions},n.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return t.push.apply(t,this._actions),t},n.prototype.getJsonTypeName=function(){return xe.JsonTypeName},n.prototype.execute=function(){var e=this;if(!ze(this,this.renderedElement)&&this.renderedElement){var t=new m.PopupMenu;t.hostConfig=this.hostConfig;for(var n=function(n){var i=new m.MenuItem(n.toString(),r._actions[n].title??``);i.isEnabled=r._actions[n].isEnabled,i.onClick=function(){var r=e._actions[n];t.closePopup(!1),r.isEnabled&&r.execute()},t.items.add(i)},r=this,i=0;i<this._actions.length;i++)n(i);t.onClose=function(){var t;(t=e.renderedElement)==null||t.setAttribute(`aria-expanded`,`false`)},this.renderedElement.setAttribute(`aria-expanded`,`true`),t.popup(this.renderedElement)}},n.prototype.setupElementForAccessibility=function(t,n){n===void 0&&(n=!1),e.prototype.setupElementForAccessibility.call(this,t,n),t.setAttribute(`aria-label`,p.Strings.defaults.overflowButtonTooltip()),t.setAttribute(`aria-expanded`,`false`)},n.JsonTypeName=`Action.Overflow`,n}(he),Ce=function(){function e(e){this._items=[],this._renderedActions=[],this._owner=e}return e.prototype.isActionAllowed=function(e){var t=this._owner.getForbiddenActionTypes();if(t)for(var n=0,r=t;n<r.length;n++){var i=r[n];if(e.constructor===i)return!1}return!0},e.prototype.refreshContainer=function(){if(h(this._actionCardContainer),!this._actionCard){this._actionCardContainer.style.marginTop=`0px`;return}this._actionCardContainer.style.marginTop=this.renderedActionCount>0?this._owner.hostConfig.actions.showCard.inlineTopMargin+`px`:`0px`;var e=this._owner.getEffectivePadding();this._owner.getImmediateSurroundingPadding(e);var t=this._owner.hostConfig.paddingDefinitionToSpacingDefinition(e);this._actionCard&&(this._actionCard.style.paddingLeft=t.left+`px`,this._actionCard.style.paddingRight=t.right+`px`,this._actionCard.style.marginLeft=`-`+t.left+`px`,this._actionCard.style.marginRight=`-`+t.right+`px`,t.bottom!==0&&!this._owner.isDesignMode()&&(this._actionCard.style.paddingBottom=t.bottom+`px`,this._actionCard.style.marginBottom=`-`+t.bottom+`px`),s.appendChild(this._actionCardContainer,this._actionCard))},e.prototype.layoutChanged=function(){this._owner.getRootElement().updateLayout()},e.prototype.showActionCard=function(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),e.card.suppressStyle=t,this._actionCard=e.card.renderedElement&&!this._owner.isDesignMode()?e.card.renderedElement:e.card.render(),this._expandedAction=e,this.refreshContainer(),n&&(this.layoutChanged(),Fe(e,!0))},e.prototype.collapseExpandedAction=function(){for(var e=0,t=this._renderedActions;e<t.length;e++){var n=t[e];n.state=0}var r=this._expandedAction;this._expandedAction=void 0,this._actionCard=void 0,this.refreshContainer(),r&&(this.layoutChanged(),Fe(r,!1))},e.prototype.expandShowCardAction=function(e,t){for(var n=this,r=!1,i=0,o=this._renderedActions;i<o.length;i++){var s=o[i];this._owner.hostConfig.actions.actionsOrientation==a.Orientation.Horizontal&&r&&(s.isFocusable=!1),s===e?(s.state=1,r=!0,s.renderedElement&&(s.renderedElement.onblur=function(e){for(var t=0,r=n._renderedActions;t<r.length;t++){var i=r[t];i.isFocusable=!0}})):s.state=2}this.showActionCard(e,!(this._owner.isAtTheVeryLeft()&&this._owner.isAtTheVeryRight()),t)},e.prototype.releaseDOMResources=function(){for(var e=0,t=this._renderedActions;e<t.length;e++)t[e].releaseDOMResources()},e.prototype.actionExecuted=function(e){e instanceof xe?e===this._expandedAction?this.collapseExpandedAction():this._owner.hostConfig.actions.showCard.actionMode===a.ShowCardActionMode.Inline&&this.expandShowCardAction(e,!0):this.collapseExpandedAction()},e.prototype.parse=function(e,t){if(this.clear(),Array.isArray(e))for(var n=0,r=e;n<r.length;n++){var i=r[n],a=[];this._owner instanceof Ve&&(a=this._owner.getForbiddenActionNames());var o=t.parseAction(this._owner,i,a,!this._owner.isDesignMode());o&&this.addAction(o)}},e.prototype.toJSON=function(e,t,n){n.serializeArray(e,t,this._items)},e.prototype.getActionAt=function(e){return this._items[e]},e.prototype.getActionCount=function(){return this._items.length},e.prototype.getActionById=function(e){for(var t=void 0,n=0,r=this._items;n<r.length&&(t=r[n].getActionById(e),!t);n++);return t},e.prototype.validateProperties=function(e){this._owner.hostConfig.actions.maxActions&&this._items.length>this._owner.hostConfig.actions.maxActions&&e.addFailure(this._owner,a.ValidationEvent.TooManyActions,p.Strings.errors.tooManyActions(this._owner.hostConfig.actions.maxActions)),this._items.length>0&&!this._owner.hostConfig.supportsInteractivity&&e.addFailure(this._owner,a.ValidationEvent.InteractivityNotAllowed,p.Strings.errors.interactivityNotAllowed());for(var t=0,n=this._items;t<n.length;t++){var r=n[t];this.isActionAllowed(r)||e.addFailure(this._owner,a.ValidationEvent.ActionTypeNotAllowed,p.Strings.errors.actionTypeNotAllowed(r.getJsonTypeName())),r.internalValidateProperties(e)}},e.prototype.render=function(e){var t=this._owner.hostConfig;if(t.supportsInteractivity){var n=document.createElement(`div`),r=t.actions.maxActions?Math.min(t.actions.maxActions,this._items.length):this._items.length;if(this._actionCardContainer=document.createElement(`div`),this._renderedActions=[],t.actions.preExpandSingleShowCardAction&&r===1&&this._items[0]instanceof xe&&this.isActionAllowed(this._items[0]))this.showActionCard(this._items[0],!0),this._renderedActions.push(this._items[0]);else{var i=document.createElement(`div`);if(i.className=t.makeCssClassName(`ac-actionSet`),i.style.display=`flex`,e===a.Orientation.Horizontal)if(i.style.flexDirection=`row`,this._owner.horizontalAlignment&&t.actions.actionAlignment!==a.ActionAlignment.Stretch)switch(this._owner.horizontalAlignment){case a.HorizontalAlignment.Center:i.style.justifyContent=`center`;break;case a.HorizontalAlignment.Right:i.style.justifyContent=`flex-end`;break;default:i.style.justifyContent=`flex-start`;break}else switch(t.actions.actionAlignment){case a.ActionAlignment.Center:i.style.justifyContent=`center`;break;case a.ActionAlignment.Right:i.style.justifyContent=`flex-end`;break;default:i.style.justifyContent=`flex-start`;break}else if(i.style.flexDirection=`column`,this._owner.horizontalAlignment&&t.actions.actionAlignment!==a.ActionAlignment.Stretch)switch(this._owner.horizontalAlignment){case a.HorizontalAlignment.Center:i.style.alignItems=`center`;break;case a.HorizontalAlignment.Right:i.style.alignItems=`flex-end`;break;default:i.style.alignItems=`flex-start`;break}else switch(t.actions.actionAlignment){case a.ActionAlignment.Center:i.style.alignItems=`center`;break;case a.ActionAlignment.Right:i.style.alignItems=`flex-end`;break;case a.ActionAlignment.Stretch:i.style.alignItems=`stretch`;break;default:i.style.alignItems=`flex-start`;break}var c=this._items.filter(this.isActionAllowed.bind(this)),l=[],u=[];if(this._owner.isDesignMode())l=c;else{c.forEach(function(e){return e.mode===a.ActionMode.Secondary?u.push(e):l.push(e)});var d=l.splice(t.actions.maxActions);o.GlobalSettings.allowMoreThanMaxActionsInOverflowMenu&&u.push.apply(u,d);var f=!0;if(u.length>0){this._overflowAction||(this._overflowAction=new Se(u),this._overflowAction.setParent(this._owner),this._overflowAction._actionCollection=this);var p=this._owner instanceof qe&&!this._owner.parent;f=!Be(this._overflowAction,p)}this._overflowAction&&f&&l.push(this._overflowAction)}for(var m=0;m<l.length;m++){var h=l[m];if(h.render(),h.renderedElement&&(t.actions.actionsOrientation===a.Orientation.Horizontal&&t.actions.actionAlignment===a.ActionAlignment.Stretch?h.renderedElement.style.flex=`0 1 100%`:h.renderedElement.style.flex=`0 1 auto`,i.appendChild(h.renderedElement),this._renderedActions.push(h),m<l.length-1&&t.actions.buttonSpacing>0)){var g=document.createElement(`div`);e===a.Orientation.Horizontal?(g.style.flex=`0 0 auto`,g.style.width=t.actions.buttonSpacing+`px`):g.style.height=t.actions.buttonSpacing+`px`,s.appendChild(i,g)}}var _=document.createElement(`div`);_.style.overflow=`hidden`,_.appendChild(i),s.appendChild(n,_)}s.appendChild(n,this._actionCardContainer);for(var v=0,y=this._renderedActions;v<y.length;v++){var b=y[v];if(b.state===1){this.expandShowCardAction(b,!1);break}}return this._renderedActions.length>0?n:void 0}},e.prototype.addAction=function(e){if(!e)throw Error(`The action parameter cannot be null.`);if((!e.parent||e.parent===this._owner)&&this._items.indexOf(e)<0)this._items.push(e),e.parent||e.setParent(this._owner),e._actionCollection=this;else throw Error(p.Strings.errors.actionAlreadyParented())},e.prototype.removeAction=function(e){this.expandedAction&&this._expandedAction===e&&this.collapseExpandedAction();var t=this._items.indexOf(e);if(t>=0){this._items.splice(t,1),e.setParent(void 0),e._actionCollection=void 0;for(var n=0;n<this._renderedActions.length;n++)if(this._renderedActions[n]===e){this._renderedActions.splice(n,1);break}return!0}return!1},e.prototype.clear=function(){this._items=[],this._renderedActions=[],this._expandedAction=void 0},e.prototype.getAllInputs=function(e){e===void 0&&(e=!0);var t=[];if(e)for(var n=0,r=this._items;n<r.length;n++){var i=r[n];t.push.apply(t,i.getAllInputs())}return t},e.prototype.getResourceInformation=function(){for(var e=[],t=0,n=this._items;t<n.length;t++){var r=n[t];e.push.apply(e,r.getResourceInformation())}return e},Object.defineProperty(e.prototype,`renderedActionCount`,{get:function(){return this._renderedActions.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`expandedAction`,{get:function(){return this._expandedAction},enumerable:!1,configurable:!0}),e}(),we=function(e){t(r,e);function r(){var t=e.call(this)||this;return t._actionCollection=new Ce(t),t}return r.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n),this._actionCollection.parse(t.actions,n)},r.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n),this._actionCollection.toJSON(t,`actions`,n)},r.prototype.internalRender=function(){return this._actionCollection.render(this.orientation===void 0?this.hostConfig.actions.actionsOrientation:this.orientation)},r.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this),this._actionCollection.releaseDOMResources()},r.prototype.isBleedingAtBottom=function(){return this._actionCollection.renderedActionCount===0?e.prototype.isBleedingAtBottom.call(this):this._actionCollection.getActionCount()===1?this._actionCollection.expandedAction!==void 0&&!this.hostConfig.actions.preExpandSingleShowCardAction:this._actionCollection.expandedAction!==void 0},r.prototype.getJsonTypeName=function(){return`ActionSet`},r.prototype.getActionCount=function(){return this._actionCollection.getActionCount()},r.prototype.getActionAt=function(t){return t>=0&&t<this.getActionCount()?this._actionCollection.getActionAt(t):e.prototype.getActionAt.call(this,t)},r.prototype.getActionById=function(t){return this._actionCollection.getActionById(t)||e.prototype.getActionById.call(this,t)},r.prototype.getAllActions=function(){for(var t=e.prototype.getAllActions.call(this),n=0;n<this.getActionCount();n++){var r=this.getActionAt(n);r&&t.push(r)}return t},r.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this._actionCollection.validateProperties(t)},r.prototype.addAction=function(e){this._actionCollection.addAction(e)},r.prototype.getAllInputs=function(e){return e===void 0&&(e=!0),e?this._actionCollection.getAllInputs():[]},r.prototype.getResourceInformation=function(){return this._actionCollection.getResourceInformation()},r.prototype.findDOMNodeOwner=function(t){for(var n=void 0,r=0;r<this.getActionCount();r++){var i=this.getActionAt(r);if(i&&(n=i.findDOMNodeOwner(t),n))return n}return e.prototype.findDOMNodeOwner.call(this,t)},r.prototype.getElementById=function(t){var n=e.prototype.getElementById.call(this,t);return n||=this.getElementByIdFromAction(t),n},Object.defineProperty(r.prototype,`isInteractive`,{get:function(){return!0},enumerable:!1,configurable:!0}),r.orientationProperty=new d.EnumProperty(d.Versions.v1_1,`orientation`,a.Orientation),n([(0,d.property)(r.orientationProperty)],r.prototype,`orientation`,void 0),r}(_);e.ActionSet=we;var Te=function(e){t(n,e);function n(t,n,r,i){var o=e.call(this,t,n,[{value:a.ContainerStyle.Default},{value:a.ContainerStyle.Emphasis},{targetVersion:d.Versions.v1_2,value:a.ContainerStyle.Accent},{targetVersion:d.Versions.v1_2,value:a.ContainerStyle.Good},{targetVersion:d.Versions.v1_2,value:a.ContainerStyle.Attention},{targetVersion:d.Versions.v1_2,value:a.ContainerStyle.Warning}],r,i)||this;return o.targetVersion=t,o.name=n,o.defaultValue=r,o.onGetInitialValue=i,o}return n}(d.ValueSetProperty);e.ContainerStyleProperty=Te;var Ee=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(r.prototype,`style`,{get:function(){if(this.allowCustomStyle){var e=this.getValue(r.styleProperty);if(e&&this.hostConfig.containerStyles.getStyleByName(e))return e}},set:function(e){this.setValue(r.styleProperty,e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`allowCustomStyle`,{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`hasExplicitStyle`,{get:function(){return this.getValue(r.styleProperty)!==void 0},enumerable:!1,configurable:!0}),r.prototype.applyBorder=function(){},r.prototype.applyBackground=function(){if(this.renderedElement){var e=this.hostConfig.containerStyles.getStyleByName(this.style,this.hostConfig.containerStyles.getStyleByName(this.defaultStyle));if(e.backgroundColor){var t=s.stringToCssColor(e.backgroundColor);t&&(this.renderedElement.style.backgroundColor=t)}}},r.prototype.applyPadding=function(){if(e.prototype.applyPadding.call(this),this.renderedElement){var t=new o.SpacingDefinition;if(this.getEffectivePadding()&&(t=this.hostConfig.paddingDefinitionToSpacingDefinition(this.getEffectivePadding())),this.renderedElement.style.paddingTop=t.top+`px`,this.renderedElement.style.paddingRight=t.right+`px`,this.renderedElement.style.paddingBottom=t.bottom+`px`,this.renderedElement.style.paddingLeft=t.left+`px`,this.isBleeding()){var n=new o.PaddingDefinition;this.getImmediateSurroundingPadding(n);var r=this.hostConfig.paddingDefinitionToSpacingDefinition(n);this.renderedElement.style.marginRight=`-`+r.right+`px`,this.renderedElement.style.marginLeft=`-`+r.left+`px`,this.isDesignMode()||(this.renderedElement.style.marginTop=`-`+r.top+`px`,this.renderedElement.style.marginBottom=`-`+r.bottom+`px`),this.separatorElement&&this.separatorOrientation===a.Orientation.Horizontal&&(this.separatorElement.style.marginLeft=`-`+r.left+`px`,this.separatorElement.style.marginRight=`-`+r.right+`px`)}else this.renderedElement.style.marginRight=`0`,this.renderedElement.style.marginLeft=`0`,this.renderedElement.style.marginTop=`0`,this.renderedElement.style.marginBottom=`0`,this.separatorElement&&this.separatorOrientation===a.Orientation.Horizontal&&(this.separatorElement.style.marginRight=`0`,this.separatorElement.style.marginLeft=`0`)}},r.prototype.getHasBackground=function(e){e===void 0&&(e=!1);for(var t=this.parent;t;){var n=!1;if(n=e?!1:t instanceof ke?t.backgroundImage.isValid():!1,t instanceof r&&this.hasExplicitStyle&&(t.getEffectiveStyle()!==this.getEffectiveStyle()||n))return!0;t=t.parent}return!1},r.prototype.getDefaultPadding=function(){return this.getHasBackground()||this.getHasBorder()?new o.PaddingDefinition(a.Spacing.Padding,a.Spacing.Padding,a.Spacing.Padding,a.Spacing.Padding):e.prototype.getDefaultPadding.call(this)},r.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t);var n=this.getValue(r.styleProperty);n!==void 0&&(this.hostConfig.containerStyles.getStyleByName(n)||t.addFailure(this,a.ValidationEvent.InvalidPropertyValue,p.Strings.errors.invalidPropertyValue(n,`style`)))},r.prototype.render=function(){var t=e.prototype.render.call(this);return t&&this.getHasBackground()&&this.applyBackground(),this.applyBorder(),t},r.prototype.getEffectiveStyle=function(){return this.style||e.prototype.getEffectiveStyle.call(this)},r.styleProperty=new Te(d.Versions.v1_0,`style`),n([(0,d.property)(r.styleProperty)],r.prototype,`style`,null),r}(O);e.StylableCardElementContainer=Ee;var De=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t._bleed=!1,t}return r.prototype.adjustRenderedElementSize=function(t){e.prototype.adjustRenderedElementSize.call(this,t),this.minPixelHeight&&(t.style.minHeight=this.minPixelHeight+`px`)},r.prototype.getHasExpandedAction=function(){return!1},r.prototype.getBleed=function(){return this._bleed},r.prototype.setBleed=function(e){this._bleed=e},Object.defineProperty(r.prototype,`renderedActionCount`,{get:function(){return 0},enumerable:!1,configurable:!0}),r.prototype.isBleeding=function(){return(this.getHasBackground()||this.hostConfig.alwaysAllowBleed)&&this.getBleed()},r.bleedProperty=new d.BoolProperty(d.Versions.v1_2,`bleed`,!1),r.minHeightProperty=new d.PixelSizeProperty(d.Versions.v1_2,`minHeight`),n([(0,d.property)(r.bleedProperty)],r.prototype,`_bleed`,void 0),n([(0,d.property)(r.minHeightProperty)],r.prototype,`minPixelHeight`,void 0),r}(Ee);e.ContainerBase=De;var Oe=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getSchemaKey=function(){return`BackgroundImage`},r.prototype.internalParse=function(t,n){if(typeof t==`string`)this.resetDefaultValues(),this.url=t;else return e.prototype.internalParse.call(this,t,n)},r.prototype.apply=function(e){if(this.url&&e.renderedElement){switch(e.renderedElement.style.backgroundImage=`url('`+e.preProcessPropertyValue(r.urlProperty,this.url)+`')`,this.fillMode){case a.FillMode.Repeat:e.renderedElement.style.backgroundRepeat=`repeat`;break;case a.FillMode.RepeatHorizontally:e.renderedElement.style.backgroundRepeat=`repeat-x`;break;case a.FillMode.RepeatVertically:e.renderedElement.style.backgroundRepeat=`repeat-y`;break;case a.FillMode.Cover:default:e.renderedElement.style.backgroundRepeat=`no-repeat`,e.renderedElement.style.backgroundSize=`cover`;break}switch(this.horizontalAlignment){case a.HorizontalAlignment.Left:break;case a.HorizontalAlignment.Center:e.renderedElement.style.backgroundPositionX=`center`;break;case a.HorizontalAlignment.Right:e.renderedElement.style.backgroundPositionX=`right`;break}switch(this.verticalAlignment){case a.VerticalAlignment.Top:break;case a.VerticalAlignment.Center:e.renderedElement.style.backgroundPositionY=`center`;break;case a.VerticalAlignment.Bottom:e.renderedElement.style.backgroundPositionY=`bottom`;break}}},r.prototype.isValid=function(){return!!this.url},r.urlProperty=new d.StringProperty(d.Versions.v1_0,`url`),r.fillModeProperty=new d.EnumProperty(d.Versions.v1_2,`fillMode`,a.FillMode,a.FillMode.Cover),r.horizontalAlignmentProperty=new d.EnumProperty(d.Versions.v1_2,`horizontalAlignment`,a.HorizontalAlignment,a.HorizontalAlignment.Left),r.verticalAlignmentProperty=new d.EnumProperty(d.Versions.v1_2,`verticalAlignment`,a.VerticalAlignment,a.VerticalAlignment.Top),n([(0,d.property)(r.urlProperty)],r.prototype,`url`,void 0),n([(0,d.property)(r.fillModeProperty)],r.prototype,`fillMode`,void 0),n([(0,d.property)(r.horizontalAlignmentProperty)],r.prototype,`horizontalAlignment`,void 0),n([(0,d.property)(r.verticalAlignmentProperty)],r.prototype,`verticalAlignment`,void 0),r}(d.SerializableObject);e.BackgroundImage=Oe;var ke=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t._items=[],t._renderedItems=[],t}return Object.defineProperty(r.prototype,`backgroundImage`,{get:function(){return this.getValue(r.backgroundImageProperty)},enumerable:!1,configurable:!0}),r.prototype.insertItemAt=function(e,t,n){if(!e.parent||n)if(e.isStandalone)t<0||t>=this._items.length?this._items.push(e):this._items.splice(t,0,e),e.setParent(this);else throw Error(p.Strings.errors.elementTypeNotStandalone(e.getJsonTypeName()));else throw Error(p.Strings.errors.elementAlreadyParented())},r.prototype.getItemsCollectionPropertyName=function(){return`items`},r.prototype.applyBackground=function(){this.backgroundImage.isValid()&&this.renderedElement&&this.backgroundImage.apply(this),e.prototype.applyBackground.call(this)},r.prototype.applyRTL=function(e){this.rtl!==void 0&&(e.dir=this.rtl?`rtl`:`ltr`)},r.prototype.internalRender=function(){this._renderedItems=[];var e=this.hostConfig,t=document.createElement(`div`);switch(this.applyRTL(t),t.classList.add(e.makeCssClassName(`ac-container`)),t.style.display=`flex`,t.style.flexDirection=`column`,o.GlobalSettings.useAdvancedCardBottomTruncation&&(t.style.minHeight=`-webkit-min-content`),this.getEffectiveVerticalContentAlignment()){case a.VerticalAlignment.Center:t.style.justifyContent=`center`;break;case a.VerticalAlignment.Bottom:t.style.justifyContent=`flex-end`;break;default:t.style.justifyContent=`flex-start`;break}if(this._items.length>0)for(var n=0,r=this._items;n<r.length;n++){var i=r[n],c=this.isElementAllowed(i)?i.render():void 0;c&&(this._renderedItems.length>0&&i.separatorElement&&(i.separatorElement.style.flex=`0 0 auto`,s.appendChild(t,i.separatorElement)),s.appendChild(t,c),this._renderedItems.push(i))}else if(this.isDesignMode()){var l=this.createPlaceholderElement();l.style.width=`100%`,l.style.height=`100%`,t.appendChild(l)}return t},r.prototype.truncateOverflow=function(e){if(this.renderedElement){for(var t=this.renderedElement.offsetTop+e+1,n=function(e){var r=e.renderedElement;if(r)switch(s.getFitStatus(r,t)){case a.ContainerFitStatus.FullyInContainer:e.resetOverflow()&&n(e);break;case a.ContainerFitStatus.Overflowing:var i=t-r.offsetTop;e.handleOverflow(i);break;case a.ContainerFitStatus.FullyOutOfContainer:e.handleOverflow(0);break}},r=0,i=this._items;r<i.length;r++){var o=i[r];n(o)}return!0}return!1},r.prototype.undoOverflowTruncation=function(){for(var e=0,t=this._items;e<t.length;e++)t[e].resetOverflow()},r.prototype.getHasBackground=function(t){return t===void 0&&(t=!1),(t?!1:this.backgroundImage.isValid())||e.prototype.getHasBackground.call(this,t)},r.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n),this.clear(),this.setShouldFallback(!1);var r=t[this.getItemsCollectionPropertyName()];if(Array.isArray(r))for(var i=0,a=r;i<a.length;i++){var o=a[i],s=n.parseElement(this,o,this.forbiddenChildElements(),!this.isDesignMode());s&&this.insertItemAt(s,-1,!0)}},r.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n);var r=this.getItemsCollectionPropertyName();n.serializeArray(t,r,this._items)},Object.defineProperty(r.prototype,`isSelectable`,{get:function(){return!0},enumerable:!1,configurable:!0}),r.prototype.getEffectivePadding=function(){return o.GlobalSettings.removePaddingFromContainersWithBackgroundImage&&!this.getHasBackground(!0)?new o.PaddingDefinition:e.prototype.getEffectivePadding.call(this)},r.prototype.getEffectiveVerticalContentAlignment=function(){if(this.verticalContentAlignment!==void 0)return this.verticalContentAlignment;var e=this.getParentContainer();return e?e.getEffectiveVerticalContentAlignment():a.VerticalAlignment.Top},r.prototype.getItemCount=function(){return this._items.length},r.prototype.getItemAt=function(e){return this._items[e]},r.prototype.getFirstVisibleRenderedItem=function(){if(this.renderedElement&&this._renderedItems&&this._renderedItems.length>0)for(var e=0,t=this._renderedItems;e<t.length;e++){var n=t[e];if(n.isVisible)return n}},r.prototype.getLastVisibleRenderedItem=function(){if(this.renderedElement&&this._renderedItems&&this._renderedItems.length>0){for(var e=this._renderedItems.length-1;e>=0;e--)if(this._renderedItems[e].isVisible)return this._renderedItems[e]}},r.prototype.getJsonTypeName=function(){return`Container`},r.prototype.isFirstElement=function(e){for(var t=this.isDesignMode(),n=0,r=this._items;n<r.length;n++){var i=r[n];if(i.isVisible||t)return i===e}return!1},r.prototype.isLastElement=function(e){for(var t=this.isDesignMode(),n=this._items.length-1;n>=0;n--)if(this._items[n].isVisible||t)return this._items[n]===e;return!1},r.prototype.isRtl=function(){if(this.rtl!==void 0)return this.rtl;var e=this.getParentContainer();return e?e.isRtl():!1},r.prototype.isBleedingAtTop=function(){var e=this.getFirstVisibleRenderedItem();return this.isBleeding()||(e?e.isBleedingAtTop():!1)},r.prototype.isBleedingAtBottom=function(){var e=this.getLastVisibleRenderedItem();return this.isBleeding()||(e?e.isBleedingAtBottom()&&e.getEffectiveStyle()===this.getEffectiveStyle():!1)},r.prototype.indexOf=function(e){return this._items.indexOf(e)},r.prototype.addItem=function(e){this.insertItemAt(e,-1,!1)},r.prototype.insertItemBefore=function(e,t){this.insertItemAt(e,this._items.indexOf(t),!1)},r.prototype.insertItemAfter=function(e,t){this.insertItemAt(e,this._items.indexOf(t)+1,!1)},r.prototype.removeItem=function(e){var t=this._items.indexOf(e);return t>=0?(this._items.splice(t,1),e.setParent(void 0),this.updateLayout(),!0):!1},r.prototype.clear=function(){this._items=[],this._renderedItems=[]},r.prototype.getResourceInformation=function(){var t=e.prototype.getResourceInformation.call(this);return this.backgroundImage.isValid()&&t.push({url:this.backgroundImage.url,mimeType:`image`}),t},r.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);if(!n&&(this.selectAction&&(n=this.selectAction.getActionById(t)),!n))for(var r=0,i=this._items;r<i.length&&(n=i[r].getActionById(t),!n);r++);return n},Object.defineProperty(r.prototype,`padding`,{get:function(){return this.getPadding()},set:function(e){this.setPadding(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`selectAction`,{get:function(){return this._selectAction},set:function(e){this._selectAction=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`bleed`,{get:function(){return this.getBleed()},set:function(e){this.setBleed(e)},enumerable:!1,configurable:!0}),r.backgroundImageProperty=new d.SerializableObjectProperty(d.Versions.v1_0,`backgroundImage`,Oe),r.verticalContentAlignmentProperty=new d.EnumProperty(d.Versions.v1_1,`verticalContentAlignment`,a.VerticalAlignment),r.rtlProperty=new d.BoolProperty(d.Versions.v1_0,`rtl`),n([(0,d.property)(r.backgroundImageProperty)],r.prototype,`backgroundImage`,null),n([(0,d.property)(r.verticalContentAlignmentProperty)],r.prototype,`verticalContentAlignment`,void 0),n([(0,d.property)(r.rtlProperty)],r.prototype,`rtl`,void 0),r}(De);e.Container=ke;var Ae=function(e){t(r,e);function r(t){t===void 0&&(t=`stretch`);var n=e.call(this)||this;return n.width=`stretch`,n._computedWeight=0,n.width=t,n}return r.prototype.adjustRenderedElementSize=function(e){var t=20;this.isDesignMode()?(e.style.minWidth=`20px`,e.style.minHeight=(this.minPixelHeight?Math.max(this.minPixelHeight,t):t)+`px`):(e.style.minWidth=`0`,this.minPixelHeight&&(e.style.minHeight=this.minPixelHeight+`px`)),this.width===`auto`?e.style.flex=`0 1 auto`:this.width===`stretch`?e.style.flex=`1 1 50px`:this.width instanceof o.SizeAndUnit&&(this.width.unit===a.SizeUnit.Pixel?(e.style.flex=`0 0 auto`,e.style.width=this.width.physicalSize+`px`):e.style.flex=`1 1 `+(this._computedWeight>0?this._computedWeight:this.width.physicalSize)+`%`)},r.prototype.shouldSerialize=function(e){return!0},Object.defineProperty(r.prototype,`separatorOrientation`,{get:function(){return a.Orientation.Vertical},enumerable:!1,configurable:!0}),r.prototype.getJsonTypeName=function(){return`Column`},Object.defineProperty(r.prototype,`hasVisibleSeparator`,{get:function(){return this.parent&&this.parent instanceof je?this.separatorElement!==void 0&&!this.parent.isLeftMostElement(this):!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`isStandalone`,{get:function(){return!1},enumerable:!1,configurable:!0}),r.widthProperty=new d.CustomProperty(d.Versions.v1_0,`width`,function(e,t,n,r){var i=t.defaultValue,s=n[t.name],c=!1;if(typeof s==`number`&&!isNaN(s))i=new o.SizeAndUnit(s,a.SizeUnit.Weight);else if(s===`auto`||s===`stretch`)i=s;else if(typeof s==`string`)try{i=o.SizeAndUnit.parse(s),i.unit===a.SizeUnit.Pixel&&t.targetVersion.compareTo(r.targetVersion)>0&&(c=!0)}catch{c=!0}else c=!0;return c&&(r.logParseEvent(e,a.ValidationEvent.InvalidPropertyValue,p.Strings.errors.invalidColumnWidth(s)),i=`auto`),i},function(e,t,n,r,i){r instanceof o.SizeAndUnit?r.unit===a.SizeUnit.Pixel?i.serializeValue(n,`width`,r.physicalSize+`px`):i.serializeNumber(n,`width`,r.physicalSize):i.serializeValue(n,`width`,r)},`stretch`),n([(0,d.property)(r.widthProperty)],r.prototype,`width`,void 0),r}(ke);e.Column=Ae;var je=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t._columns=[],t}return n.prototype.createColumnInstance=function(e,t){return t.parseCardObject(this,e,[],!this.isDesignMode(),function(e){return!e||e===`Column`?new Ae:void 0},function(e,n){t.logParseEvent(void 0,a.ValidationEvent.ElementTypeNotAllowed,p.Strings.errors.elementTypeNotAllowed(e))})},n.prototype.internalRender=function(){if(this._renderedColumns=[],this._columns.length>0){var e=this.hostConfig,t=document.createElement(`div`);switch(t.className=e.makeCssClassName(`ac-columnSet`),t.style.display=`flex`,o.GlobalSettings.useAdvancedCardBottomTruncation&&(t.style.minHeight=`-webkit-min-content`),this.getEffectiveHorizontalAlignment()){case a.HorizontalAlignment.Center:t.style.justifyContent=`center`;break;case a.HorizontalAlignment.Right:t.style.justifyContent=`flex-end`;break;default:t.style.justifyContent=`flex-start`;break}for(var n=0,r=0,i=this._columns;r<i.length;r++){var c=i[r];c.width instanceof o.SizeAndUnit&&c.width.unit===a.SizeUnit.Weight&&(n+=c.width.physicalSize)}for(var l=0,u=this._columns;l<u.length;l++){var c=u[l];c.width instanceof o.SizeAndUnit&&c.width.unit===a.SizeUnit.Weight&&n>0&&(c._computedWeight=100/n*c.width.physicalSize);var d=c.render();d&&(this._renderedColumns.length>0&&c.separatorElement&&(c.separatorElement.style.flex=`0 0 auto`,s.appendChild(t,c.separatorElement)),s.appendChild(t,d),this._renderedColumns.push(c))}return this._renderedColumns.length>0?t:void 0}else return},n.prototype.truncateOverflow=function(e){for(var t=0,n=this._columns;t<n.length;t++)n[t].handleOverflow(e);return!0},n.prototype.undoOverflowTruncation=function(){for(var e=0,t=this._columns;e<t.length;e++)t[e].resetOverflow()},Object.defineProperty(n.prototype,`isSelectable`,{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n),this._columns=[],this._renderedColumns=[];var r=t.columns;if(Array.isArray(r))for(var i=0,a=r;i<a.length;i++){var o=a[i],s=this.createColumnInstance(o,n);s&&this._columns.push(s)}},n.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n),n.serializeArray(t,`columns`,this._columns)},n.prototype.isFirstElement=function(e){for(var t=0,n=this._columns;t<n.length;t++){var r=n[t];if(r.isVisible)return r===e}return!1},n.prototype.isBleedingAtTop=function(){if(this.isBleeding())return!0;if(this._renderedColumns&&this._renderedColumns.length>0){for(var e=0,t=this._columns;e<t.length;e++)if(t[e].isBleedingAtTop())return!0}return!1},n.prototype.isBleedingAtBottom=function(){if(this.isBleeding())return!0;if(this._renderedColumns&&this._renderedColumns.length>0){for(var e=0,t=this._columns;e<t.length;e++)if(t[e].isBleedingAtBottom())return!0}return!1},n.prototype.getItemCount=function(){return this._columns.length},n.prototype.getFirstVisibleRenderedItem=function(){if(this.renderedElement&&this._renderedColumns&&this._renderedColumns.length>0)return this._renderedColumns[0]},n.prototype.getLastVisibleRenderedItem=function(){if(this.renderedElement&&this._renderedColumns&&this._renderedColumns.length>0)return this._renderedColumns[this._renderedColumns.length-1]},n.prototype.getColumnAt=function(e){return this._columns[e]},n.prototype.getItemAt=function(e){return this.getColumnAt(e)},n.prototype.getJsonTypeName=function(){return`ColumnSet`},n.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t);for(var n=0,r=0,i=0,o=this._columns;i<o.length;i++){var s=o[i];typeof s.width==`number`?n++:s.width===`stretch`&&r++}n>0&&r>0&&t.addFailure(this,a.ValidationEvent.Hint,p.Strings.hints.dontUseWeightedAndStrecthedColumnsInSameSet())},n.prototype.addColumn=function(e){if(!e.parent)this._columns.push(e),e.setParent(this);else throw Error(p.Strings.errors.columnAlreadyBelongsToAnotherSet())},n.prototype.removeItem=function(e){if(e instanceof Ae){var t=this._columns.indexOf(e);if(t>=0)return this._columns.splice(t,1),e.setParent(void 0),this.updateLayout(),!0}return!1},n.prototype.indexOf=function(e){return e instanceof Ae?this._columns.indexOf(e):-1},n.prototype.isLeftMostElement=function(e){return this._columns.indexOf(e)===0},n.prototype.isRightMostElement=function(e){return this._columns.indexOf(e)===this._columns.length-1},n.prototype.isTopElement=function(e){return this._columns.indexOf(e)>=0},n.prototype.isBottomElement=function(e){return this._columns.indexOf(e)>=0},n.prototype.getActionById=function(e){for(var t=void 0,n=0,r=this._columns;n<r.length&&(t=r[n].getActionById(e),!t);n++);return t},Object.defineProperty(n.prototype,`bleed`,{get:function(){return this.getBleed()},set:function(e){this.setBleed(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,`padding`,{get:function(){return this.getPadding()},set:function(e){this.setPadding(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,`selectAction`,{get:function(){return this._selectAction},set:function(e){this._selectAction=e},enumerable:!1,configurable:!0}),n}(De);e.ColumnSet=je;function Me(e){var t=e.getRootElement(),n=t&&t.onImageLoaded?t.onImageLoaded:qe.onImageLoaded;n&&n(e)}function Ne(e,t,n){var r=e.getRootElement(),i=r&&r.onAnchorClicked?r.onAnchorClicked:qe.onAnchorClicked;return i===void 0?!1:i(e,t,n)}function Pe(e){var t=e.parent?e.parent.getRootElement():void 0,n=t&&t.onExecuteAction?t.onExecuteAction:qe.onExecuteAction;e.prepareForExecution()&&n&&n(e)}function Fe(e,t){var n=e.parent?e.parent.getRootElement():void 0,r=n&&n.onInlineCardExpanded?n.onInlineCardExpanded:qe.onInlineCardExpanded;r&&r(e,t)}function Ie(e){var t=e.getRootElement(),n=t&&t.onInputValueChanged?t.onInputValueChanged:qe.onInputValueChanged;n&&n(e)}function Le(e,t){t===void 0&&(t=!0);var n=e.getRootElement();t&&n.updateLayout();var r=n,i=r&&r.onElementVisibilityChanged?r.onElementVisibilityChanged:qe.onElementVisibilityChanged;i!==void 0&&i(e)}function Re(e,t){t?(e.readOnly=!0,e.required=!0):(e.readOnly=!1,e.required=!1)}function ze(e,t){var n=e.parent?e.parent.getRootElement():void 0,r=n&&n.onDisplayOverflowActionMenu?n.onDisplayOverflowActionMenu:qe.onDisplayOverflowActionMenu;return r===void 0?!1:r(e.getActions(),t)}function Be(e,t){var n=e.parent?e.parent.getRootElement():void 0,r=n&&n.onRenderOverflowActions?n.onRenderOverflowActions:qe.onRenderOverflowActions;return r===void 0?!1:r(e.getActions(),t)}var Ve=function(e){t(n,e);function n(){var t=e.call(this)||this;return t._actionCollection=new Ce(t),t}return n.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n),this.parseActions(t,n)},n.prototype.parseActions=function(e,t){this._actionCollection.parse(e.actions,t)},n.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n),this._actionCollection.toJSON(t,`actions`,n)},n.prototype.internalRender=function(){var t=e.prototype.internalRender.call(this);if(t){var n=this._actionCollection.render(this.hostConfig.actions.actionsOrientation);return n&&(s.appendChild(t,g(this.hostConfig,{spacing:this.hostConfig.getEffectiveSpacing(this.hostConfig.actions.spacing)},a.Orientation.Horizontal)),s.appendChild(t,n)),this.renderIfEmpty||t.children.length>0?t:void 0}else return},n.prototype.getHasExpandedAction=function(){return this.renderedActionCount===0?!1:this.renderedActionCount===1?this._actionCollection.expandedAction!==void 0&&!this.hostConfig.actions.preExpandSingleShowCardAction:this._actionCollection.expandedAction!==void 0},Object.defineProperty(n.prototype,`renderedActionCount`,{get:function(){return this._actionCollection.renderedActionCount},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,`renderIfEmpty`,{get:function(){return!1},enumerable:!1,configurable:!0}),n.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this),this._actionCollection.releaseDOMResources()},n.prototype.getActionCount=function(){return this._actionCollection.getActionCount()},n.prototype.getActionAt=function(t){return t>=0&&t<this.getActionCount()?this._actionCollection.getActionAt(t):e.prototype.getActionAt.call(this,t)},n.prototype.getActionById=function(t){return this._actionCollection.getActionById(t)||e.prototype.getActionById.call(this,t)},n.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this._actionCollection&&this._actionCollection.validateProperties(t)},n.prototype.isLastElement=function(t){return e.prototype.isLastElement.call(this,t)&&this._actionCollection.getActionCount()===0},n.prototype.addAction=function(e){this._actionCollection.addAction(e)},n.prototype.clear=function(){e.prototype.clear.call(this),this._actionCollection.clear()},n.prototype.getAllInputs=function(t){t===void 0&&(t=!0);var n=e.prototype.getAllInputs.call(this,t);return t&&n.push.apply(n,this._actionCollection.getAllInputs(t)),n},n.prototype.getResourceInformation=function(){var t=e.prototype.getResourceInformation.call(this);return t.push.apply(t,this._actionCollection.getResourceInformation()),t},n.prototype.isBleedingAtBottom=function(){return this._actionCollection.renderedActionCount===0?e.prototype.isBleedingAtBottom.call(this):this._actionCollection.getActionCount()===1?this._actionCollection.expandedAction!==void 0&&!this.hostConfig.actions.preExpandSingleShowCardAction:this._actionCollection.expandedAction!==void 0},n.prototype.getForbiddenActionNames=function(){return[]},n.prototype.getElementById=function(t){var n=e.prototype.getElementById.call(this,t);return n||=this.getElementByIdFromAction(t),n},Object.defineProperty(n.prototype,`isStandalone`,{get:function(){return!1},enumerable:!1,configurable:!0}),n}(ke);e.ContainerWithActions=Ve;var He=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n,void 0)||this;return r.targetVersion=t,r.name=n,r}return n.prototype.parse=function(e,t,n){var r=n.parseAction(e.parent,t[this.name],[],!1);if(r!==void 0){if(r instanceof z)return r;n.logParseEvent(e,a.ValidationEvent.ActionTypeNotAllowed,p.Strings.errors.actionTypeNotAllowed(r.getJsonTypeName()))}n.logParseEvent(e,a.ValidationEvent.PropertyCantBeNull,p.Strings.errors.propertyMustBeSet(`action`))},n.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,n?n.toJSON(r):void 0,void 0,!0)},n}(d.PropertyDefinition);e.RefreshActionProperty=He;var Ue=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(r.prototype,`action`,{get:function(){return this.getValue(r.actionProperty)},set:function(e){this.setValue(r.actionProperty,e),e&&e.setParent(this.parent)},enumerable:!1,configurable:!0}),r.prototype.getSchemaKey=function(){return`RefreshDefinition`},r.actionProperty=new He(d.Versions.v1_4,`action`),r.userIdsProperty=new d.StringArrayProperty(d.Versions.v1_4,`userIds`),n([(0,d.property)(r.actionProperty)],r.prototype,`action`,null),n([(0,d.property)(r.userIdsProperty)],r.prototype,`userIds`,void 0),r}(d.SerializableObject);e.RefreshDefinition=Ue;var We=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getSchemaKey=function(){return`AuthCardButton`},r.typeProperty=new d.StringProperty(d.Versions.v1_4,`type`),r.titleProperty=new d.StringProperty(d.Versions.v1_4,`title`),r.imageProperty=new d.StringProperty(d.Versions.v1_4,`image`),r.valueProperty=new d.StringProperty(d.Versions.v1_4,`value`),n([(0,d.property)(r.typeProperty)],r.prototype,`type`,void 0),n([(0,d.property)(r.titleProperty)],r.prototype,`title`,void 0),n([(0,d.property)(r.imageProperty)],r.prototype,`image`,void 0),n([(0,d.property)(r.valueProperty)],r.prototype,`value`,void 0),r}(d.SerializableObject);e.AuthCardButton=We;var Ge=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getSchemaKey=function(){return`TokenExchangeResource`},r.idProperty=new d.StringProperty(d.Versions.v1_4,`id`),r.uriProperty=new d.StringProperty(d.Versions.v1_4,`uri`),r.providerIdProperty=new d.StringProperty(d.Versions.v1_4,`providerId`),n([(0,d.property)(r.idProperty)],r.prototype,`id`,void 0),n([(0,d.property)(r.uriProperty)],r.prototype,`uri`,void 0),n([(0,d.property)(r.providerIdProperty)],r.prototype,`providerId`,void 0),r}(d.SerializableObject);e.TokenExchangeResource=Ge;var Ke=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getSchemaKey=function(){return`Authentication`},r.textProperty=new d.StringProperty(d.Versions.v1_4,`text`),r.connectionNameProperty=new d.StringProperty(d.Versions.v1_4,`connectionName`),r.buttonsProperty=new d.SerializableObjectCollectionProperty(d.Versions.v1_4,`buttons`,We),r.tokenExchangeResourceProperty=new d.SerializableObjectProperty(d.Versions.v1_4,`tokenExchangeResource`,Ge,!0),n([(0,d.property)(r.textProperty)],r.prototype,`text`,void 0),n([(0,d.property)(r.connectionNameProperty)],r.prototype,`connectionName`,void 0),n([(0,d.property)(r.buttonsProperty)],r.prototype,`buttons`,void 0),n([(0,d.property)(r.tokenExchangeResourceProperty)],r.prototype,`tokenExchangeResource`,void 0),r}(d.SerializableObject);e.Authentication=Ke;var qe=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.designMode=!1,t}return Object.defineProperty(r.prototype,`refresh`,{get:function(){return this.getValue(r.refreshProperty)},set:function(e){this.setValue(r.refreshProperty,e),e&&(e.parent=this)},enumerable:!1,configurable:!0}),Object.defineProperty(r,`processMarkdown`,{get:function(){throw Error(p.Strings.errors.processMarkdownEventRemoved())},set:function(e){throw Error(p.Strings.errors.processMarkdownEventRemoved())},enumerable:!1,configurable:!0}),r.applyMarkdown=function(e){var t={didProcess:!1};if(r.onProcessMarkdown)r.onProcessMarkdown(e,t);else if(window.markdownit){var n=window.markdownit;t.outputHtml=n().render(e),t.didProcess=!0}else r._haveWarnedAboutNoMarkdownProcessing||=(console.warn(p.Strings.errors.markdownProcessingNotEnabled),!0);return t},r.prototype.isVersionSupported=function(){return this.bypassVersionCheck?!0:!(!this.version||!this.version.isValid||this.maxVersion.major<this.version.major||this.maxVersion.major===this.version.major&&this.maxVersion.minor<this.version.minor)},r.prototype.getDefaultSerializationContext=function(){return new Ye(this.version)},r.prototype.getItemsCollectionPropertyName=function(){return`body`},r.prototype.internalParse=function(t,n){this._fallbackCard=void 0;var i=n.parseElement(void 0,t.fallback,this.forbiddenChildElements(),!this.isDesignMode());i&&(this._fallbackCard=new r,this._fallbackCard.addItem(i)),e.prototype.internalParse.call(this,t,n)},r.prototype.internalToJSON=function(t,n){this.setValue(r.versionProperty,n.targetVersion),e.prototype.internalToJSON.call(this,t,n)},r.prototype.internalRender=function(){var t=e.prototype.internalRender.call(this);return o.GlobalSettings.useAdvancedCardBottomTruncation&&t&&t.style.removeProperty(`minHeight`),t},r.prototype.getHasBackground=function(e){return e===void 0&&(e=!1),!0},r.prototype.getDefaultPadding=function(){return new o.PaddingDefinition(a.Spacing.Padding,a.Spacing.Padding,a.Spacing.Padding,a.Spacing.Padding)},r.prototype.shouldSerialize=function(e){return!0},Object.defineProperty(r.prototype,`renderIfEmpty`,{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`bypassVersionCheck`,{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`allowCustomStyle`,{get:function(){return this.hostConfig.adaptiveCard&&this.hostConfig.adaptiveCard.allowCustomStyle},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,`hasBackground`,{get:function(){return!0},enumerable:!1,configurable:!0}),r.prototype.getJsonTypeName=function(){return`AdaptiveCard`},r.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.getValue(_.typeNameProperty)!==`AdaptiveCard`&&t.addFailure(this,a.ValidationEvent.MissingCardType,p.Strings.errors.invalidCardType()),!this.bypassVersionCheck&&!this.version?t.addFailure(this,a.ValidationEvent.PropertyCantBeNull,p.Strings.errors.propertyMustBeSet(`version`)):this.isVersionSupported()||t.addFailure(this,a.ValidationEvent.UnsupportedCardVersion,p.Strings.errors.unsupportedCardVersion(this.version.toString(),this.maxVersion.toString()))},r.prototype.render=function(t){var n=this,r;return this.shouldFallback()&&this._fallbackCard?(this._fallbackCard.hostConfig=this.hostConfig,r=this._fallbackCard.render()):(r=e.prototype.render.call(this),r&&(r.classList.add(this.hostConfig.makeCssClassName(`ac-adaptiveCard`)),o.GlobalSettings.setTabIndexAtCardRoot&&(r.tabIndex=0),this.speak&&r.setAttribute(`aria-label`,this.speak),r.onmouseenter=function(e){n.updateInputsVisualState(!0)},r.onmouseleave=function(e){n.updateInputsVisualState(!1)},this.getRootElement().updateActionsEnabledState())),t&&(s.appendChild(t,r),this.updateLayout()),r},r.prototype.updateLayout=function(t){if(t===void 0&&(t=!0),e.prototype.updateLayout.call(this,t),o.GlobalSettings.useAdvancedCardBottomTruncation&&this.isDisplayed()){var n=this.hostConfig.getEffectiveSpacing(a.Spacing.Default);this.handleOverflow(this.renderedElement.offsetHeight-n)}},r.prototype.shouldFallback=function(){return e.prototype.shouldFallback.call(this)||!this.isVersionSupported()},Object.defineProperty(r.prototype,`hasVisibleSeparator`,{get:function(){return!1},enumerable:!1,configurable:!0}),r.schemaUrl=`http://adaptivecards.io/schemas/adaptive-card.json`,r.$schemaProperty=new d.CustomProperty(d.Versions.v1_0,`$schema`,function(e,t,n,i){return r.schemaUrl},function(e,t,n,i,a){a.serializeValue(n,t.name,r.schemaUrl)}),r.versionProperty=new d.CustomProperty(d.Versions.v1_0,`version`,function(e,t,n,r){var i=d.Version.parse(n[t.name],r);return i===void 0&&(i=d.Versions.latest,r.logParseEvent(e,a.ValidationEvent.InvalidPropertyValue,p.Strings.errors.invalidCardVersion(i.toString()))),i},function(e,t,n,r,i){r!==void 0&&i.serializeValue(n,t.name,r.toString())},d.Versions.v1_0),r.fallbackTextProperty=new d.StringProperty(d.Versions.v1_0,`fallbackText`),r.speakProperty=new d.StringProperty(d.Versions.v1_0,`speak`),r.refreshProperty=new d.SerializableObjectProperty(d.Versions.v1_4,`refresh`,Ue,!0),r.authenticationProperty=new d.SerializableObjectProperty(d.Versions.v1_4,`authentication`,Ke,!0),r._haveWarnedAboutNoMarkdownProcessing=!1,n([(0,d.property)(r.versionProperty)],r.prototype,`version`,void 0),n([(0,d.property)(r.fallbackTextProperty)],r.prototype,`fallbackText`,void 0),n([(0,d.property)(r.speakProperty)],r.prototype,`speak`,void 0),n([(0,d.property)(r.refreshProperty)],r.prototype,`refresh`,null),n([(0,d.property)(r.authenticationProperty)],r.prototype,`authentication`,void 0),r}(Ve);e.AdaptiveCard=qe;var Je=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.suppressStyle=!1,t}return n.prototype.getSchemaKey=function(){return`InlineAdaptiveCard`},n.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.remove(qe.$schemaProperty,qe.versionProperty)},n.prototype.getDefaultPadding=function(){return new o.PaddingDefinition(this.suppressStyle?a.Spacing.None:a.Spacing.Padding,a.Spacing.Padding,this.suppressStyle?a.Spacing.None:a.Spacing.Padding,a.Spacing.Padding)},Object.defineProperty(n.prototype,`bypassVersionCheck`,{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,`defaultStyle`,{get:function(){return this.suppressStyle?a.ContainerStyle.Default:this.hostConfig.actions.showCard.style?this.hostConfig.actions.showCard.style:a.ContainerStyle.Emphasis},enumerable:!1,configurable:!0}),n.prototype.render=function(t){var n=e.prototype.render.call(this,t);return n&&(n.setAttribute(`aria-live`,`polite`),n.removeAttribute(`tabindex`)),n},n}(qe),Ye=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t._forbiddenTypes=new Set,t}return n.prototype.internalParseCardObject=function(e,t,n,r,i,c){var l=this,u=void 0;if(t&&typeof t==`object`){var d=new Set;this._forbiddenTypes.forEach(function(e){d.add(e)}),n.forEach(function(e){l._forbiddenTypes.add(e)});var f=s.parseString(t.type);if(f&&this._forbiddenTypes.has(f))c(f,a.TypeErrorType.ForbiddenType);else{var p=!1;if(u=i(f),u?(u.setParent(e),u.parse(t,this),p=o.GlobalSettings.enableFallback&&r&&u.shouldFallback()):(p=o.GlobalSettings.enableFallback&&r,c(f,a.TypeErrorType.UnknownType)),p){var m=t.fallback;!m&&e&&e.setShouldFallback(!0),typeof m==`string`&&m.toLowerCase()===`drop`?u=void 0:typeof m==`object`&&(u=this.internalParseCardObject(e,m,n,!0,i,c))}}this._forbiddenTypes=d}return u},n.prototype.cardObjectParsed=function(e,t){e instanceof he&&this.onParseAction?this.onParseAction(e,t,this):e instanceof _&&this.onParseElement&&this.onParseElement(e,t,this)},n.prototype.shouldSerialize=function(e){return e instanceof he?this.actionRegistry.findByName(e.getJsonTypeName())!==void 0:e instanceof _?this.elementRegistry.findByName(e.getJsonTypeName())!==void 0:!0},n.prototype.parseCardObject=function(e,t,n,r,i,a){var o=new Set(n),s=this.internalParseCardObject(e,t,o,r,i,a);return s!==void 0&&this.cardObjectParsed(s,t),s},n.prototype.parseElement=function(e,t,n,r){var i=this;return this.parseCardObject(e,t,n,r,function(e){return i.elementRegistry.createInstance(e,i.targetVersion)},function(e,t){t===a.TypeErrorType.UnknownType?i.logParseEvent(void 0,a.ValidationEvent.UnknownElementType,p.Strings.errors.unknownElementType(e)):i.logParseEvent(void 0,a.ValidationEvent.ElementTypeNotAllowed,p.Strings.errors.elementTypeNotAllowed(e))})},n.prototype.parseAction=function(e,t,n,r){var i=this;return this.parseCardObject(e,t,n,r,function(e){return i.actionRegistry.createInstance(e,i.targetVersion)},function(e,t){t===a.TypeErrorType.UnknownType?i.logParseEvent(void 0,a.ValidationEvent.UnknownActionType,p.Strings.errors.unknownActionType(e)):i.logParseEvent(void 0,a.ValidationEvent.ActionTypeNotAllowed,p.Strings.errors.actionTypeNotAllowed(e))})},Object.defineProperty(n.prototype,`elementRegistry`,{get:function(){return this._elementRegistry??f.GlobalRegistry.elements},enumerable:!1,configurable:!0}),n.prototype.setElementRegistry=function(e){this._elementRegistry=e},Object.defineProperty(n.prototype,`actionRegistry`,{get:function(){return this._actionRegistry??f.GlobalRegistry.actions},enumerable:!1,configurable:!0}),n.prototype.setActionRegistry=function(e){this._actionRegistry=e},n}(d.BaseSerializationContext);e.SerializationContext=Ye,f.GlobalRegistry.defaultElements.register(`Container`,ke),f.GlobalRegistry.defaultElements.register(`TextBlock`,b),f.GlobalRegistry.defaultElements.register(`RichTextBlock`,S,d.Versions.v1_2),f.GlobalRegistry.defaultElements.register(`TextRun`,x,d.Versions.v1_2),f.GlobalRegistry.defaultElements.register(`Image`,E),f.GlobalRegistry.defaultElements.register(`ImageSet`,k),f.GlobalRegistry.defaultElements.register(`Media`,re,d.Versions.v1_1),f.GlobalRegistry.defaultElements.register(`FactSet`,w),f.GlobalRegistry.defaultElements.register(`ColumnSet`,je),f.GlobalRegistry.defaultElements.register(`ActionSet`,we,d.Versions.v1_2),f.GlobalRegistry.defaultElements.register(`Input.Text`,ae),f.GlobalRegistry.defaultElements.register(`Input.Date`,fe),f.GlobalRegistry.defaultElements.register(`Input.Time`,me),f.GlobalRegistry.defaultElements.register(`Input.Number`,de),f.GlobalRegistry.defaultElements.register(`Input.ChoiceSet`,le),f.GlobalRegistry.defaultElements.register(`Input.Toggle`,oe),f.GlobalRegistry.defaultActions.register(B.JsonTypeName,B),f.GlobalRegistry.defaultActions.register(_e.JsonTypeName,_e),f.GlobalRegistry.defaultActions.register(xe.JsonTypeName,xe),f.GlobalRegistry.defaultActions.register(V.JsonTypeName,V,d.Versions.v1_2),f.GlobalRegistry.defaultActions.register(z.JsonTypeName,z,d.Versions.v1_4)}))(),Zs=Ps(),Qs=e=>{let t;return t=e.iconUrl?(0,d.jsx)(p.Button,{className:e.className,onClick:e.actionClickHandler,appearance:`primary`,children:(0,d.jsxs)(`div`,{style:{display:`flex`,flexDirection:e.iconPlacement===Zs.ActionIconPlacement.LeftOfTitle?`row`:`column`,justifyContent:`center`,alignItems:`center`},children:[(0,d.jsx)(`img`,{src:e.iconUrl,style:{width:e.iconSize,height:e.iconSize,flexShrink:0,marginRight:e.iconPlacement===Zs.ActionIconPlacement.LeftOfTitle?4:0,marginBottom:e.iconPlacement===Zs.ActionIconPlacement.LeftOfTitle?0:4},alt:``}),(0,d.jsx)(`span`,{children:e.text})]})}):e.style.toLocaleLowerCase().trim()===`positive`||e.style.toLocaleLowerCase().trim()===`destructive`?(0,d.jsx)(p.Button,{className:e.className,onClick:e.actionClickHandler,appearance:`primary`,children:e.text}):(0,d.jsx)(p.Button,{className:e.className,onClick:e.actionClickHandler,children:e.text}),t},$s=(e,t,n,r,i,a,o,s)=>{let c=document.createElement(`div`);c.className=`fluentUI`;let l=Ns(c);l.render((0,d.jsx)(p.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,d.jsx)(p.FluentProvider,{theme:s,children:(0,d.jsx)(Qs,{text:e,className:n,iconUrl:t,iconPlacement:r,iconSize:i,actionClickHandler:a,style:o,theme:s})})}));let u=new MutationObserver(e=>{for(let t of e)for(let e of Array.from(t.removedNodes))if(e===c||c.contains(e)){l.unmount(),u.disconnect();return}});if(c.parentNode)u.observe(c.parentNode,{childList:!0});else{let e=new MutationObserver(()=>{c.parentNode&&(u.observe(c.parentNode,{childList:!0}),e.disconnect())});e.observe(document.body,{childList:!0,subtree:!0})}return c},ec=class extends Xs.ExecuteAction{updateCssClasses(){}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.hostConfig.hostCapabilities.getCustomProperty(Es),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=$s(this.title??``,this.iconUrl||``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}},tc=class extends Xs.OpenUrlAction{updateCssClasses(){}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.hostConfig.hostCapabilities.getCustomProperty(Es),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=$s(this.title??``,this.iconUrl||``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}},nc=class extends Xs.ShowCardAction{updateCssClasses(){if(this.renderedElement){let e=this.state===1;this.renderedElement.setAttribute(`aria-expanded`,e.toString())}}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=$s(this.title||`Default Title`,this.iconUrl||``,this.iconUrl??``,t.iconPlacement,t.iconSize,this.actionClickHandler,this.style)}},rc=class extends Xs.SubmitAction{updateCssClasses(){}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.hostConfig.hostCapabilities.getCustomProperty(Es),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=$s(this.title??``,this.iconUrl??``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}},ic=class extends Xs.ToggleVisibilityAction{updateCssClasses(){if(this.renderedElement){let e=this.state===1;this.renderedElement.setAttribute(`aria-expanded`,e.toString())}}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.hostConfig.hostCapabilities.getCustomProperty(Es),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=$s(this.title??``,this.iconUrl??``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}};function ac(e){e.register(`Action.Submit`,rc),e.register(`Action.OpenUrl`,tc),e.register(`Action.ShowCard`,nc),e.register(`Action.ToggleVisibility`,ic),e.register(`Action.Execute`,ec)}var oc=e=>{let t=document.createElement(`div`);return Ns(t).render(e()),t};function Z(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function Q(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var sc=class extends T.Input{static valueProperty=new T.StringProperty(T.Versions.v1_5,`value`);static choicesProperty=new T.SerializableObjectCollectionProperty(T.Versions.v1_5,`choices`,T.Choice);static styleProperty=new T.ValueSetProperty(T.Versions.v1_5,`style`,[{value:`compact`},{value:`expanded`},{value:`filtered`,targetVersion:T.Versions.v1_5}],`compact`);static isMultiSelectProperty=new T.BoolProperty(T.Versions.v1_5,`isMultiSelect`,!1);static placeholderProperty=new T.StringProperty(T.Versions.v1_5,`placeholder`);static wrapProperty=new T.BoolProperty(T.Versions.v1_5,`wrap`,!1);defaultValue;style;get isCompact(){return!this.style||this.style===`compact`}set isCompact(e){this.style=e?void 0:`expanded`}isMultiSelect=!1;placeholder;wrap=!1;choices=[];element;refControl;selectedValues=[];defaultSelectedValues=[];updateSelectedValues=(e,t,n)=>{t?n?this.selectedValues.includes(e)||this.selectedValues.push(e):this.removeItemFromArray(this.selectedValues,e):this.selectedValues=[e]};removeItemFromArray=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)};internalRender(){let e=Os(this.hostConfig),t=this.choices?this.choices.map(e=>({key:e.value,text:e.title})):[];this.defaultValue&&(this.defaultSelectedValues=this.defaultValue.split(this.hostConfig.choiceSetInputValueSeparator),this.selectedValues=[...this.defaultSelectedValues]);let n=()=>{let[e,n]=u.useState(this.selectedValues);return u.useEffect(()=>{n(this.selectedValues)},[this.selectedValues.join(this.hostConfig.choiceSetInputValueSeparator)]),(0,d.jsx)(p.Combobox,{style:{width:`100%`},placeholder:this.placeholder,multiselect:this.isMultiSelect,value:this.isMultiSelect?e.map(e=>t.find(t=>t.key===e)?.text).join(this.hostConfig.choiceSetInputValueSeparator):t.find(t=>e[0]===t.key)?.text,selectedOptions:this.isMultiSelect?e:[e[0]],autoComplete:this.style===`filtered`?`on`:`off`,onOptionSelect:(e,t)=>{if(this.isMultiSelect)n(t.selectedOptions),this.selectedValues=t.selectedOptions;else{let e=t.optionValue??``;n([e]),this.selectedValues=[e]}this.valueChanged()},ref:e=>{this.refControl=e},children:t.map(e=>(0,d.jsx)(p.Option,{value:e.key,children:e.text??``},e.key))})};return this.element=oc(()=>(0,d.jsxs)(d.Fragment,{children:[!this.isMultiSelect&&this.style===`expanded`&&(0,d.jsx)(p.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,d.jsx)(p.FluentProvider,{theme:e,children:(0,d.jsx)(p.RadioGroup,{defaultValue:this.defaultValue,onChange:(e,t)=>{this.updateSelectedValues(t.value,this.isMultiSelect,!0),this.valueChanged()},ref:e=>{this.refControl=e},children:this.choices.map((e,t)=>(0,d.jsx)(p.Radio,{value:e.value,label:e.title,style:{marginTop:t>0?this.hostConfig.spacing.default:0}},e.value))})})}),this.isMultiSelect&&this.style===`expanded`&&(0,d.jsx)(`div`,{style:{display:`flex`,gap:this.hostConfig.spacing.default},children:this.choices.map((t,n)=>{let r=this.defaultSelectedValues.indexOf(t.value??``)>-1;return(0,d.jsx)(p.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,d.jsx)(p.FluentProvider,{theme:e,children:(0,d.jsx)(p.Checkbox,{label:t.title,defaultChecked:r,onChange:(e,n)=>{this.updateSelectedValues(t.value??``,this.isMultiSelect,!!n),this.valueChanged()},ref:e=>{n===0&&(this.refControl=e)}})})},t.value)})}),(this.style===`compact`||this.style===`filtered`)&&(0,d.jsx)(p.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,d.jsx)(p.FluentProvider,{theme:e,children:(0,d.jsx)(n,{})})})]})),this.element.style.width=`100%`,this.element}getJsonTypeName(){return`Input.ChoiceSet`}focus(){this.refControl&&this.refControl.focus&&this.refControl.focus()}internalValidateProperties(e){super.internalValidateProperties(e),this.choices.length===0&&e.addFailure(this,T.ValidationEvent.CollectionCantBeEmpty,T.Strings.errors.choiceSetMustHaveAtLeastOneChoice());for(let t of this.choices)(!t.title||!t.value)&&e.addFailure(this,T.ValidationEvent.PropertyCantBeNull,T.Strings.errors.choiceSetChoicesMustHaveTitleAndValue())}isSet(){return!!this.value}isValid(){return this.value?!0:!this.isRequired}get value(){if(this.selectedValues)return this.selectedValues.join(this.hostConfig.choiceSetInputValueSeparator)}};Q([(0,T.property)(sc.valueProperty),Z(`design:type`,String)],sc.prototype,`defaultValue`,void 0),Q([(0,T.property)(sc.styleProperty),Z(`design:type`,String)],sc.prototype,`style`,void 0),Q([(0,T.property)(sc.isMultiSelectProperty),Z(`design:type`,Boolean)],sc.prototype,`isMultiSelect`,void 0),Q([(0,T.property)(sc.placeholderProperty),Z(`design:type`,String)],sc.prototype,`placeholder`,void 0),Q([(0,T.property)(sc.wrapProperty),Z(`design:type`,Boolean)],sc.prototype,`wrap`,void 0),Q([(0,T.property)(sc.choicesProperty),Z(`design:type`,Array)],sc.prototype,`choices`,void 0);var cc=class extends T.Input{static valueProperty=new T.StringProperty(T.Versions.v1_5,`value`);static placeholderProperty=new T.StringProperty(T.Versions.v1_5,`placeholder`);static minProperty=new T.StringProperty(T.Versions.v1_0,`min`);static maxProperty=new T.StringProperty(T.Versions.v1_0,`max`);defaultValue;min;max;placeholder;_value;refControl;element;internalRender(){let e=Os(this.hostConfig);return this.element=oc(()=>(0,d.jsx)(p.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,d.jsx)(p.FluentProvider,{theme:e,children:(0,d.jsx)(O.DatePicker,{id:this.id,placeholder:this.placeholder,minDate:this.convertStringToDate(this.min),maxDate:this.convertStringToDate(this.max),onSelectDate:e=>{this._value=e??void 0,this.valueChanged()},ref:e=>{this.refControl=e},style:{width:`100%`}})})})),this.element.style.width=`100%`,this.element}convertStringToDate(e){if(e)try{let t=new Date(e);return isNaN(t.getTime())?void 0:t}catch{return}}getJsonTypeName(){return`Input.Date`}focus(){this.refControl?.focus()}updateInputControlAriaLabelledBy(){if(this.element){let e=this.getAllLabelIds().join(` `);e?this.element.setAttribute(`aria-labelledby`,e):this.element.removeAttribute(`aria-labelledby`)}}isSet(){return!!this.value}isValid(){if(!this.value)return!this.isRequired;let e=new Date(this.value),t=!0;if(this.min){let n=new Date(this.min);t&&=e>=n}if(this.max){let n=new Date(this.max);t&&=e<=n}return t}get value(){if(this._value){let e=this._value.getTimezoneOffset();return new Date(this._value.getTime()-e*60*1e3).toISOString().split(`T`)[0]}}};Q([(0,T.property)(cc.valueProperty),Z(`design:type`,String)],cc.prototype,`defaultValue`,void 0),Q([(0,T.property)(cc.minProperty),Z(`design:type`,String)],cc.prototype,`min`,void 0),Q([(0,T.property)(cc.maxProperty),Z(`design:type`,String)],cc.prototype,`max`,void 0),Q([(0,T.property)(cc.placeholderProperty),Z(`design:type`,String)],cc.prototype,`placeholder`,void 0);var lc=class extends T.Input{static valueProperty=new T.NumProperty(T.Versions.v1_5,`value`);static placeholderProperty=new T.StringProperty(T.Versions.v1_5,`placeholder`);static minProperty=new T.NumProperty(T.Versions.v1_0,`min`);static maxProperty=new T.NumProperty(T.Versions.v1_0,`max`);defaultValue;min;max;placeholder;refControl=null;element;internalRender(){let e=Os(this.hostConfig);return this.element=oc(()=>(0,d.jsx)(p.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,d.jsx)(p.FluentProvider,{theme:e,children:(0,d.jsx)(p.SpinButton,{style:{width:`calc(100% - 10px)`},id:this.id,defaultValue:this.defaultValue===void 0?void 0:this.defaultValue,placeholder:this.placeholder,min:this.min,max:this.max,onChange:()=>{this.valueChanged()},ref:e=>{this.refControl=e}})})})),this.element.style.width=`100%`,this.element}getJsonTypeName(){return`Input.Number`}focus(){this.refControl?.focus()}updateInputControlAriaLabelledBy(){if(this.element){let e=this.getAllLabelIds().join(` `);e?this.element.setAttribute(`aria-labelledby`,e):this.element.removeAttribute(`aria-labelledby`)}}isSet(){let e=this.value;return e!==void 0&&!isNaN(e)}isValid(){let e=this.value;if(e===void 0)return!this.isRequired;let t=!0;return this.min!==void 0&&(t&&=e>=this.min),this.max!==void 0&&(t&&=e<=this.max),t}get value(){return this.refControl?Number(this.refControl.value):void 0}};Q([(0,T.property)(lc.valueProperty),Z(`design:type`,Number)],lc.prototype,`defaultValue`,void 0),Q([(0,T.property)(lc.minProperty),Z(`design:type`,Number)],lc.prototype,`min`,void 0),Q([(0,T.property)(lc.maxProperty),Z(`design:type`,Number)],lc.prototype,`max`,void 0),Q([(0,T.property)(lc.placeholderProperty),Z(`design:type`,String)],lc.prototype,`placeholder`,void 0);var uc=e=>{let{ariaLabel:t,iconProps:n,styles:r,className:i,onClick:a,...o}=e;return(0,d.jsx)(p.Button,{appearance:`transparent`,"aria-label":t,className:i,onClick:a,style:r,...o,children:(0,d.jsx)(`img`,{src:n.src,alt:t,style:{height:n.height||`100%`,width:n.width||`auto`}})})},dc={marginLeft:8},fc,pc,mc=class extends T.Input{static valueProperty=new T.StringProperty(T.Versions.v1_0,`value`);static maxLengthProperty=new T.NumProperty(T.Versions.v1_0,`maxLength`);static isMultilineProperty=new T.BoolProperty(T.Versions.v1_0,`isMultiline`,!1);static placeholderProperty=new T.StringProperty(T.Versions.v1_0,`placeholder`);static styleProperty=new T.EnumProperty(T.Versions.v1_0,`style`,T.InputTextStyle,T.InputTextStyle.Text);static inlineActionProperty=new T.ActionProperty(T.Versions.v1_0,`inlineAction`,[`Action.ShowCard`]);static regexProperty=new T.StringProperty(T.Versions.v1_3,`regex`,!0);defaultValue;maxLength;isMultiline=!1;placeholder;style=T.InputTextStyle.Text;inlineAction;regex;refControl=null;element;_value=this.defaultValue||``;internalRender(){let e=Os(this.hostConfig);return this.element=oc(()=>(0,d.jsx)(p.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,d.jsx)(p.FluentProvider,{theme:e,children:this.isMultiline?(0,d.jsx)(p.Textarea,{resize:`vertical`,style:{width:`100%`},id:this.id,defaultValue:this.defaultValue,placeholder:this.placeholder,maxLength:this.maxLength,onChange:(e,t)=>{this._value=t.value,this.valueChanged()},onKeyDown:this.handleKeyDown,ref:e=>{this.refControl=e}}):(0,d.jsx)(p.Input,{id:this.id,style:{width:`100%`},type:T.InputTextStyle[this.style].toLowerCase(),defaultValue:this.defaultValue,placeholder:this.placeholder,maxLength:this.maxLength,onChange:(e,t)=>{this._value=t.value,this.valueChanged()},onKeyDown:this.handleKeyDown,ref:e=>{this.refControl=e?e.inputElement:null}})})})),this.element.style.width=`100%`,this.element}handleKeyDown=e=>{e.key===`Enter`&&this.inlineAction&&this.inlineAction?.execute()};overrideInternalRender(){let e=super.overrideInternalRender();return this.inlineAction&&this.inputControlContainerElement.appendChild(this.buildInlineActionButton()),e||document.createElement(`div`)}buildInlineActionButton=()=>oc(this.inlineAction?.iconUrl?this.inlineIconActionButton:this.buildTextOnlyInlineActionActionButton);inlineActionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.inlineAction?.execute()};inlineIconActionButton=()=>(0,d.jsx)(p.FluentProvider,{theme:this.hostConfig.hostCapabilities.getCustomProperty(Es),children:(0,d.jsx)(uc,{ariaLabel:this.inlineAction?.title||`Inline action`,className:this.hostConfig.makeCssClassName(`ac-inlineActionButton`,`iconOnly`),iconProps:{src:this.inlineAction?.iconUrl??``},onClick:this.inlineActionClickHandler,styles:dc})});buildTextOnlyInlineActionActionButton=()=>{let e=this.hostConfig.hostCapabilities.getCustomProperty(Es);return(0,d.jsx)(p.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,d.jsx)(p.FluentProvider,{theme:e,children:(0,d.jsx)(p.Button,{appearance:`primary`,className:this.hostConfig.makeCssClassName(`ac-inlineActionButton`,`textOnly`),onClick:this.inlineActionClickHandler,style:dc,children:this.inlineAction?.title??``})})})};getJsonTypeName(){return`Input.Text`}focus(){this.refControl?.focus()}updateInputControlAriaLabelledBy(){if(this.element){let e=this.getAllLabelIds().join(` `);e?this.element.setAttribute(`aria-labelledby`,e):this.element.removeAttribute(`aria-labelledby`)}}getActionById(e){let t=super.getActionById(e);if(!t&&this.inlineAction&&(t=this.inlineAction.getActionById(e)),!t)throw Error(`Action with id '${e}' not found.`);return t}isSet(){return!!this.value}isValid(){return this.value?this.regex?new RegExp(this.regex,`g`).test(this.value):!0:!this.isRequired}get value(){if(this._value)return this._value}};Q([(0,T.property)(mc.valueProperty),Z(`design:type`,String)],mc.prototype,`defaultValue`,void 0),Q([(0,T.property)(mc.maxLengthProperty),Z(`design:type`,Number)],mc.prototype,`maxLength`,void 0),Q([(0,T.property)(mc.isMultilineProperty),Z(`design:type`,Boolean)],mc.prototype,`isMultiline`,void 0),Q([(0,T.property)(mc.placeholderProperty),Z(`design:type`,String)],mc.prototype,`placeholder`,void 0),Q([(0,T.property)(mc.styleProperty),Z(`design:type`,typeof(fc=T.InputTextStyle!==void 0&&T.InputTextStyle)==`function`?fc:Object)],mc.prototype,`style`,void 0),Q([(0,T.property)(mc.inlineActionProperty),Z(`design:type`,typeof(pc=T.Action!==void 0&&T.Action)==`function`?pc:Object)],mc.prototype,`inlineAction`,void 0),Q([(0,T.property)(mc.regexProperty),Z(`design:type`,String)],mc.prototype,`regex`,void 0);var hc=e=>{let{id:t,defaultTime:n,minTime:r,maxTime:i,placeholder:a,theme:o,onTimeChange:s}=e,[c,l]=u.useState(n),[f,m]=u.useState(n?(0,k.formatDateToTimeString)(n??new Date):``);return(0,d.jsx)(p.IdPrefixProvider,{value:t,children:(0,d.jsx)(p.FluentProvider,{theme:o,children:(0,d.jsx)(k.TimePicker,{style:{width:`100%`},expandIcon:(0,d.jsx)(y.ClockRegular,{}),id:t,freeform:!0,min:r?(0,k.formatDateToTimeString)(r):void 0,max:i?(0,k.formatDateToTimeString)(i):void 0,placeholder:a,value:c?(0,k.formatDateToTimeString)(c):f,onTimeChange:(e,t)=>{let n=t.selectedTime??void 0,r=t.selectedTimeText??``;l(n),m(r),s&&n&&s(n,r)},onInput:e=>{m(e.target.value)}})})})},gc=class e extends T.Input{static convertTimeStringToDate(e){return new Date(`1973-09-04T`+e+`:00Z`)}static valueProperty=new T.TimeProperty(T.Versions.v1_0,`value`);static placeholderProperty=new T.StringProperty(T.Versions.v1_0,`placeholder`);static minProperty=new T.TimeProperty(T.Versions.v1_0,`min`);static maxProperty=new T.TimeProperty(T.Versions.v1_0,`max`);defaultValue;min;max;placeholder;_time;element;internalRender(){let t=Os(this.hostConfig),n=this.defaultValue?e.convertTimeStringToDate(this.defaultValue):void 0,r=this.min?e.convertTimeStringToDate(this.min):void 0,i=this.max?e.convertTimeStringToDate(this.max):void 0;return this.element=oc(()=>(0,d.jsx)(hc,{id:(0,T.generateUniqueId)(),defaultTime:n,minTime:r,maxTime:i,placeholder:this.placeholder,theme:t,onTimeChange:e=>{this._time=e,this.valueChanged()}})),this.element.style.width=`100%`,this.element}getJsonTypeName(){return`Input.Time`}focus(){}updateInputControlAriaLabelledBy(){if(this.element){let e=this.getAllLabelIds().join(` `);e?this.element.setAttribute(`aria-labelledby`,e):this.element.removeAttribute(`aria-labelledby`)}}isSet(){return!!this.value}isValid(){if(!this.value)return!this.isRequired;if(!this._time)return!1;let t=!0;if(this.min){let n=e.convertTimeStringToDate(this.min);t&&=this._time>=n}if(this.max){let n=e.convertTimeStringToDate(this.max);t&&=this._time<=n}return t}get value(){return this._time?(0,k.formatDateToTimeString)(this._time):void 0}};Q([(0,T.property)(gc.valueProperty),Z(`design:type`,String)],gc.prototype,`defaultValue`,void 0),Q([(0,T.property)(gc.minProperty),Z(`design:type`,String)],gc.prototype,`min`,void 0),Q([(0,T.property)(gc.maxProperty),Z(`design:type`,String)],gc.prototype,`max`,void 0),Q([(0,T.property)(gc.placeholderProperty),Z(`design:type`,String)],gc.prototype,`placeholder`,void 0);var _c=class extends T.Input{static valueProperty=new T.StringProperty(T.Versions.v1_5,`value`);static titleProperty=new T.StringProperty(T.Versions.v1_5,`title`);static valueOnProperty=new T.StringProperty(T.Versions.v1_5,`valueOn`,!0,void 0,`true`,e=>`true`);static valueOffProperty=new T.StringProperty(T.Versions.v1_5,`valueOff`,!0,void 0,`false`,e=>`false`);static wrapProperty=new T.BoolProperty(T.Versions.v1_2,`wrap`,!1);defaultValue;title;valueOn=`true`;valueOff=`false`;wrap=!1;_value;refControl=null;element;internalRender(){let e=Os(this.hostConfig);return this.element=oc(()=>(0,d.jsx)(p.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,d.jsx)(p.FluentProvider,{theme:e,style:{backgroundColor:`transparent`},children:(0,d.jsx)(p.Switch,{id:this.id,label:this.title,onChange:(e,t)=>{this._value=t.checked,this.valueChanged()},defaultChecked:this.defaultValue===this.valueOn,style:{marginBottom:0,marginTop:0},ref:e=>{this.refControl=e}})})})),this.element.style.width=`100%`,this.element}get isNullable(){return!1}getJsonTypeName(){return`Input.Toggle`}focus(){this.refControl?.focus()}updateInputControlAriaLabelledBy(){if(this.element){let e=this.getAllLabelIds().join(` `);e?this.element.setAttribute(`aria-labelledby`,e):this.element.removeAttribute(`aria-labelledby`)}}isSet(){return this.isRequired?this.value===this.valueOn:!!this.value}get value(){return this._value!==null&&this._value!==void 0?this._value?this.valueOn:this.valueOff:this.isRequired?void 0:this.valueOff}};Q([(0,T.property)(_c.valueProperty),Z(`design:type`,String)],_c.prototype,`defaultValue`,void 0),Q([(0,T.property)(_c.titleProperty),Z(`design:type`,String)],_c.prototype,`title`,void 0),Q([(0,T.property)(_c.valueOnProperty),Z(`design:type`,String)],_c.prototype,`valueOn`,void 0),Q([(0,T.property)(_c.valueOffProperty),Z(`design:type`,String)],_c.prototype,`valueOff`,void 0),Q([(0,T.property)(_c.wrapProperty),Z(`design:type`,Boolean)],_c.prototype,`wrap`,void 0);function vc(e){e.register(`Input.Text`,mc),e.register(`Input.Number`,lc),e.register(`Input.Time`,gc),e.register(`Input.Date`,cc),e.register(`Input.Toggle`,_c),e.register(`Input.ChoiceSet`,sc)}var yc=e=>{switch(e){case Cs.SharePoint:return p.webLightTheme;case Cs.Teams:return p.teamsLightTheme;case Cs.TeamsDark:return p.teamsDarkTheme;case Cs.TeamsHighContrast:return p.teamsHighContrastTheme;default:return p.webLightTheme}},bc=e=>{let t=(0,u.useRef)(null),{log:n,error:r,LogLevel:i}=L(),a=(0,u.useRef)(null),o=(0,u.useRef)(null),s=(0,u.useRef)(null);(0,u.useEffect)(()=>{As((e,t)=>r(e,t))},[]),(0,u.useEffect)(()=>{a.current=null,a.current=new T.AdaptiveCard,o.current=new T.SerializationContext},[e]);let c=(0,u.useCallback)(t=>{if(e.onInvokeAction){let n={type:``,title:``},r=t.getJsonTypeName();switch(r){case T.OpenUrlAction.JsonTypeName:{let e=t;n={type:r,title:e.title,url:e.url}}break;case T.SubmitAction.JsonTypeName:{let e=t;n={type:r,title:e.title,data:e.data}}break;case T.ExecuteAction.JsonTypeName:{let e=t;n={type:r,title:e.title,data:e.data,verb:e.verb}}break;default:n={type:r,title:`Unknown Action`};break}e.onInvokeAction(n)}},[e.onInvokeAction]);return(0,u.useEffect)(()=>{let t,r=e.themeType;s.current=null,r||=Cs.SharePoint,t=e.theme?e.theme:yc(r);let o=ks(r,t),c=o.hostConfig;n(`hostconfig:`,i.Info,c),s.current=t,a.current&&(a.current.hostConfig=o.hostConfig),e.onUpdateHostCapabilities&&e.onUpdateHostCapabilities(c.hostCapabilities)},[e]),(0,u.useEffect)(()=>{a.current&&(a.current.onExecuteAction=c)},[e,c]),(0,u.useEffect)(()=>{let t=new T.CardObjectRegistry,n=new T.CardObjectRegistry;T.GlobalRegistry.populateWithDefaultElements(t),T.GlobalRegistry.populateWithDefaultActions(n),vc(t),ac(n),e.onSetCustomElements&&e.onSetCustomElements(t),e.onSetCustomActions&&e.onSetCustomActions(n);let r=o.current;r&&r.setElementRegistry(t),r&&r.setActionRegistry(n)},[e]),(0,u.useEffect)(()=>{for(;t?.current?.firstChild;)t.current.lastChild&&t.current.removeChild(t.current.lastChild);let n=t.current;if(!n)return;let r=a.current;try{let t=new A.Template(e.card),i=js(e.data??{$root:{}},yc(e.themeType??Cs.SharePoint),e.context),a=t.expand(i);if(r&&r.parse(a,o.current??void 0),r){let e=r.render();e&&e.outerHTML!==n.innerHTML&&e.outerHTML!==n.innerHTML&&(n.innerHTML=``,n.appendChild(e))}}catch(t){e.onError&&e.onError(t)}},[e,yc]),(0,d.jsx)(p.IdPrefixProvider,{value:`adaptiveCardHost`,children:(0,d.jsx)(p.FluentProvider,{theme:s.current?s.current:yc(e.themeType??Cs.SharePoint),children:(0,d.jsx)(`div`,{ref:t,className:`${e.className?e.className:``}`,style:e.style})})})},xc=({card:e,data:t})=>{let n=(0,u.useRef)(null);return(0,u.useEffect)(()=>{if(!n.current)return;n.current.innerHTML=``;let r=new A.Template(e).expand({$root:t}),i=new T.AdaptiveCard;i?.parse(r);let a=i.render();a&&n.current.appendChild(a)},[e,t]),(0,d.jsx)(`div`,{ref:n})},Sc=Fa`
182
182
  position: relative;
183
183
  display: inline-block;
184
184
  line-height: 0;
@@ -317,7 +317,7 @@ import { AISearchIcon } from './AISearchIcon';
317
317
  icon={<AISearchIcon size={16} />}
318
318
  >
319
319
  AI Search
320
- </Button>`})]})]})},Pc=()=>({container:(0,_.css)({backgroundColor:p.tokens.colorNeutralBackground1,border:`1px solid `+p.tokens.colorNeutralStroke1,borderRadius:p.tokens.borderRadiusLarge,padding:`${p.tokens.spacingVerticalXS} ${p.tokens.spacingHorizontalS}`,minHeight:`40px`,":focus-within::after":{borderBottom:`2px solid ${p.tokens.colorBrandStroke1}`}}),textarea:(0,_.css)({width:`calc(100% - 5px)`,flex:1,border:`none`,outline:`none`,backgroundColor:`transparent`,fontSize:p.tokens.fontSizeBase300,color:p.tokens.colorNeutralForeground1,resize:`none`,"::placeholder":{color:p.tokens.colorNeutralForegroundDisabled},"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),iconContainer:(0,_.css)({display:`flex`,alignItems:`center`,gap:p.tokens.spacingHorizontalXS,marginLeft:p.tokens.spacingHorizontalXS}),buttonSend:(0,_.css)({width:`36px !important`,height:`36px !important`,maxWidth:`36px !important`,maxHeight:`36px !important`,minWidth:`36px !important`,minHeight:`36px !important`})}),Fc=u.forwardRef(({value:e,onChange:n,onSend:r,placeholder:i,isRunning:a,onAbort:o},s)=>{let c=Pc(),l=t.n(),f=i||l.typeAMessage,p=u.useCallback(()=>{let t=e.trim();t.length>0&&r(t)},[e,r]);return(0,d.jsxs)(H,{width:`100%`,className:c.container,children:[(0,d.jsx)(`textarea`,{ref:s,className:c.textarea,placeholder:f,value:e,onChange:e=>n(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),p())},rows:3}),(0,d.jsx)(H,{horizontal:!0,horizontalAlign:`end`,width:`100%`,children:a?(0,d.jsx)(Gn,{icon:(0,d.jsx)(y.RecordStopRegular,{}),hoverIcon:(0,d.jsx)(y.RecordStopFilled,{}),width:32,height:32,onClick:o}):(0,d.jsx)(Gn,{icon:(0,d.jsx)(y.ArrowCircleUp32Regular,{}),hoverIcon:(0,d.jsx)(y.ArrowCircleUp32Filled,{}),width:32,height:32,onClick:p,enabled:e.trim().length>0})})]})}),Ic=()=>({listContainer:(0,_.css)({display:`grid`,gridTemplateColumns:`1fr`,gap:p.tokens.spacingVerticalXXS,maxHeight:`400px`,overflowY:`auto`,overflowX:`hidden`,padding:p.tokens.spacingVerticalS,minWidth:`280px`,"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),suggestionsHeader:(0,_.css)({color:p.tokens.colorBrandBackground,padding:p.tokens.spacingVerticalXS}),noResults:(0,_.css)({padding:p.tokens.spacingVerticalS,textAlign:`center`,color:p.tokens.colorNeutralForeground3})}),Lc=({context:e,inputValue:n,parentRef:r,mentionChars:i,onUserSelect:a,theme:o,suggestionsHeader:s,maxSuggestions:c=100,userFilter:l})=>{let f=I(),m=e||f,h=m?.graphClient,g=m?.pageContext?.web?.absoluteUrl||``,_=t.p(),v=t.y(),{verbose:y,warn:b,error:x}=L(),[S,C]=(0,u.useState)(!1),[w,T]=(0,u.useState)({top:0,left:0}),[E,D]=(0,u.useState)([]),[O,k]=(0,u.useState)(``),[A,M]=(0,u.useState)(``),N=(0,u.useRef)({}),P=Ic(),F=(0,u.useCallback)(async e=>{if(!h)return b(`Graph client not available`),[];let t=`${e}_${c}`;if(N.current[t])return N.current[t];try{let n=e&&e.length>0?`startswith(displayName,'${e}') or startswith(givenName,'${e}') or startswith(surname,'${e}')`:``,r=n?`/users?$filter=${n}&$select=id,displayName,mail,userPrincipalName&$top=${c}`:`/users?$select=id,displayName,mail,userPrincipalName&$orderby=displayName&$top=${c}`;y(`[fetchUsers]: API query:`,r);let i=await h.get(r);y(`[fetchUsers]: Graph response:`,i);let a=(i.value||[]).map(e=>({id:e.id||``,displayName:e.displayName||e.userPrincipalName||v.unknownUser,mail:e.mail||e.userPrincipalName||``,avatar:g?`${g}/_layouts/15/userphoto.aspx?size=S&accountname=${e.mail||e.userPrincipalName}`:void 0})).filter(e=>e.id&&e.displayName);return y(`[fetchUsers]: Processed users:`,a),N.current[t]=a,a}catch(e){return x(`[fetchUsers]: Error fetching users from Graph:`,e instanceof Error?e:void 0),[]}},[h,g,c]),ee=(0,u.useCallback)(Rt(async(e,t)=>{y(`[debouncedFetch]: Fetching users for query:`,e);let n=await F(e),r=l?n.filter(t=>l(t,e)):n;y(`[debouncedFetch]: Filtered users:`,r),r.sort((e,t)=>e.displayName.localeCompare(t.displayName)),D(r),k(t),M(e),C(!0),y(`[debouncedFetch]: Menu should be shown now`)},300),[m,c,l,F]),te=e=>{let t=r.current;if(!t)return{top:0,left:0};if(t.tagName===`TEXTAREA`){let n=t,r=(0,j.default)(n,e),i=n.getBoundingClientRect();return{top:i.top+r.top+22,left:i.left+r.left+16}}let n=t.getBoundingClientRect();return{top:n.bottom+5,left:n.left}};(0,u.useEffect)(()=>{if(!n){C(!1);return}y(`[Mensions]: Analyzing input:`,n);let e=!1;for(let t of i){let r=n.lastIndexOf(t);if(y(`[Mensions]: Checking mention char:`,t),r!==-1&&(r===0||n[r-1]===` `)){let i=n.slice(r+1);if(y(`[Mensions]: Search text:`,i),!i.includes(` `)){e=!0;let n=te(r);y(`[Mensions]: Menu position:`,n),T(n),ee(i,t);break}}}e||(y(`[Mensions]: No mention found, hiding menu`),C(!1))},[n,i,r,ee]);let ne=e=>{a(e,O),C(!1),D([])},re=(0,u.useCallback)(({users:e})=>(0,d.jsxs)(`div`,{className:P.listContainer,children:[e.length===0&&(0,d.jsxs)(p.Caption1,{className:P.noResults,children:[_.noResults,` "`,A,`"`]}),e.map(e=>(0,d.jsx)(p.Card,{appearance:`subtle`,onMouseDown:e=>e.preventDefault(),onClick:()=>ne(e),children:(0,d.jsx)(p.Persona,{name:e.displayName||v.unknownUser,role:`gridcell`,secondaryText:e.mail||e.userPrincipalName||``,avatar:{image:{src:e.avatar}}})},e.id))]}),[P,A,ne]);return(0,d.jsxs)(jn,{theme:o,anchorPoint:w,isOpen:S,onClose:()=>C(!1),excludeRefs:r?[r]:[],children:[(0,d.jsx)(p.CardHeader,{header:(0,d.jsx)(p.Body1Strong,{className:P.suggestionsHeader,children:s})}),(0,d.jsx)(p.Divider,{}),(0,d.jsx)(re,{users:E})]})},Rc=({context:e})=>{let[t,n]=(0,u.useState)(``),[r,i]=(0,u.useState)(``),a=(0,u.useRef)(null),o=(0,u.useRef)(null);return(0,d.jsxs)(H,{RowGap:20,children:[(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`h3`,{children:`Input with @ mentions`}),(0,d.jsx)(p.Input,{ref:a,value:t,onChange:(e,t)=>n(t.value),placeholder:`Type @ to mention someone...`}),(0,d.jsx)(Lc,{context:e,inputValue:t,parentRef:a,mentionChars:[`@`],onUserSelect:(e,r)=>{let i=RegExp(`${r.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}(\\w*)$`);n(t.replace(i,`${r}${e.displayName} `)),setTimeout(()=>{a.current?.focus()},0)},theme:p.webLightTheme,suggestionsHeader:`Mention User`,maxSuggestions:8})]}),(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`h3`,{children:`Textarea with @ and # mentions`}),(0,d.jsx)(p.Textarea,{ref:o,value:r,onChange:(e,t)=>i(t.value),placeholder:`Type @ to mention someone or # for tags...`,rows:4}),(0,d.jsx)(Lc,{context:e,inputValue:r,parentRef:o,mentionChars:[`@`,`#`],onUserSelect:(e,t)=>{let n=RegExp(`${t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}(\\w*)$`);i(r.replace(n,`${t}${e.displayName} `)),setTimeout(()=>{o.current?.focus()},0)},theme:p.webLightTheme,suggestionsHeader:`Select User or Tag`,maxSuggestions:10,userFilter:(e,t)=>e.displayName.toLowerCase().includes(t.toLowerCase())||(e.mail?.toLowerCase().includes(t.toLowerCase())??!1)})]})]})},zc=()=>({inputContainer:(0,_.css)({marginTop:`auto`,marginLeft:`auto`,"::after":{content:`""`,position:`absolute`,bottom:0,left:0,right:0,borderBottom:`2px solid transparent`,pointerEvents:`none`,borderRadius:p.tokens.borderRadiusMedium}}),listContainer:(0,_.css)({maxHeight:`400px`,overflowY:`auto`,overflowX:`hidden`,"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),sugestionsHeader:(0,_.css)({color:p.tokens.colorBrandBackground})}),Bc=({context:e,onChange:t,value:n,placeholder:r,onSend:i,theme:a=p.webLightTheme,isRunning:o,onAbort:s})=>{let[c,l]=(0,u.useState)(n||``),f=(0,u.useRef)(null),m=zc();return(0,u.useEffect)(()=>{f.current?.focus(),l(n||``)},[n]),(0,d.jsxs)(H,{horizontal:!0,width:`100%`,className:m.inputContainer,children:[(0,d.jsx)(Fc,{ref:f,onSend:i,value:c,onChange:e=>{l(e),t&&t(e)},theme:a,placeholder:r,isRunning:o,onAbort:s}),(0,d.jsx)(Lc,{context:e,inputValue:c,parentRef:f,mentionChars:[`@`],onUserSelect:(e,n)=>{let r=RegExp(`${n.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}(\\w*)$`),i=c.replace(r,`${n}${e.mail} `);l(i),t&&t(i),setTimeout(()=>{f.current?.focus()},0)},theme:a,suggestionsHeader:`Suggestions`,maxSuggestions:10})]})},Vc=()=>{let e=p.tokens.colorBrandBackground,t=_.keyframes`
320
+ </Button>`})]})]})},Pc=()=>({container:(0,_.css)({backgroundColor:p.tokens.colorNeutralBackground1,border:`1px solid `+p.tokens.colorNeutralStroke1,borderRadius:p.tokens.borderRadiusLarge,padding:`${p.tokens.spacingVerticalXS} ${p.tokens.spacingHorizontalS}`,minHeight:`40px`,":focus-within::after":{borderBottom:`2px solid ${p.tokens.colorBrandStroke1}`}}),textarea:(0,_.css)({width:`calc(100% - 5px)`,flex:1,border:`none`,outline:`none`,backgroundColor:`transparent`,fontSize:p.tokens.fontSizeBase300,color:p.tokens.colorNeutralForeground1,resize:`none`,"::placeholder":{color:p.tokens.colorNeutralForegroundDisabled},"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),iconContainer:(0,_.css)({display:`flex`,alignItems:`center`,gap:p.tokens.spacingHorizontalXS,marginLeft:p.tokens.spacingHorizontalXS}),buttonSend:(0,_.css)({width:`36px !important`,height:`36px !important`,maxWidth:`36px !important`,maxHeight:`36px !important`,minWidth:`36px !important`,minHeight:`36px !important`})}),Fc=u.forwardRef(({value:e,onChange:n,onSend:r,placeholder:i,isRunning:a,onAbort:o},s)=>{let c=Pc(),l=t.n(),f=i||l.typeAMessage,p=u.useCallback(()=>{let t=e.trim();t.length>0&&r(t)},[e,r]);return(0,d.jsxs)(H,{width:`100%`,className:c.container,children:[(0,d.jsx)(`textarea`,{ref:s,className:c.textarea,placeholder:f,value:e,onChange:e=>n(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),p())},rows:3}),(0,d.jsx)(H,{horizontal:!0,horizontalAlign:`end`,width:`100%`,children:a?(0,d.jsx)(Gn,{icon:(0,d.jsx)(y.RecordStopRegular,{}),hoverIcon:(0,d.jsx)(y.RecordStopFilled,{}),width:32,height:32,onClick:o}):(0,d.jsx)(Gn,{icon:(0,d.jsx)(y.ArrowCircleUp32Regular,{}),hoverIcon:(0,d.jsx)(y.ArrowCircleUp32Filled,{}),width:32,height:32,onClick:p,enabled:e.trim().length>0})})]})}),Ic=()=>({listContainer:(0,_.css)({display:`grid`,gridTemplateColumns:`1fr`,gap:p.tokens.spacingVerticalXXS,maxHeight:`400px`,overflowY:`auto`,overflowX:`hidden`,padding:p.tokens.spacingVerticalS,minWidth:`280px`,"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),suggestionsHeader:(0,_.css)({color:p.tokens.colorBrandBackground,padding:p.tokens.spacingVerticalXS}),noResults:(0,_.css)({padding:p.tokens.spacingVerticalS,textAlign:`center`,color:p.tokens.colorNeutralForeground3})}),Lc=({context:e,inputValue:n,parentRef:r,mentionChars:i,onUserSelect:a,theme:o,suggestionsHeader:s,maxSuggestions:c=100,userFilter:l})=>{let f=I(),m=e||f,h=m?.graphClient,g=m?.pageContext?.web?.absoluteUrl||``,_=t.p(),v=t.y(),{verbose:y,warn:b,error:x}=L(),[S,C]=(0,u.useState)(!1),[w,T]=(0,u.useState)({top:0,left:0}),[E,D]=(0,u.useState)([]),[O,k]=(0,u.useState)(``),[A,M]=(0,u.useState)(``),ee=(0,u.useRef)({}),N=Ic(),P=(0,u.useCallback)(async e=>{if(!h)return b(`Graph client not available`),[];let t=`${e}_${c}`;if(ee.current[t])return ee.current[t];try{let n=e&&e.length>0?`startswith(displayName,'${e}') or startswith(givenName,'${e}') or startswith(surname,'${e}')`:``,r=n?`/users?$filter=${n}&$select=id,displayName,mail,userPrincipalName&$top=${c}`:`/users?$select=id,displayName,mail,userPrincipalName&$orderby=displayName&$top=${c}`;y(`[fetchUsers]: API query:`,r);let i=await h.get(r);y(`[fetchUsers]: Graph response:`,i);let a=(i.value||[]).map(e=>({id:e.id||``,displayName:e.displayName||e.userPrincipalName||v.unknownUser,mail:e.mail||e.userPrincipalName||``,avatar:g?`${g}/_layouts/15/userphoto.aspx?size=S&accountname=${e.mail||e.userPrincipalName}`:void 0})).filter(e=>e.id&&e.displayName);return y(`[fetchUsers]: Processed users:`,a),ee.current[t]=a,a}catch(e){return x(`[fetchUsers]: Error fetching users from Graph:`,e instanceof Error?e:void 0),[]}},[h,g,c]),te=(0,u.useCallback)(Rt(async(e,t)=>{y(`[debouncedFetch]: Fetching users for query:`,e);let n=await P(e),r=l?n.filter(t=>l(t,e)):n;y(`[debouncedFetch]: Filtered users:`,r),r.sort((e,t)=>e.displayName.localeCompare(t.displayName)),D(r),k(t),M(e),C(!0),y(`[debouncedFetch]: Menu should be shown now`)},300),[m,c,l,P]),F=e=>{let t=r.current;if(!t)return{top:0,left:0};if(t.tagName===`TEXTAREA`){let n=t,r=(0,j.default)(n,e),i=n.getBoundingClientRect();return{top:i.top+r.top+22,left:i.left+r.left+16}}let n=t.getBoundingClientRect();return{top:n.bottom+5,left:n.left}};(0,u.useEffect)(()=>{if(!n){C(!1);return}y(`[Mensions]: Analyzing input:`,n);let e=!1;for(let t of i){let r=n.lastIndexOf(t);if(y(`[Mensions]: Checking mention char:`,t),r!==-1&&(r===0||n[r-1]===` `)){let i=n.slice(r+1);if(y(`[Mensions]: Search text:`,i),!i.includes(` `)){e=!0;let n=F(r);y(`[Mensions]: Menu position:`,n),T(n),te(i,t);break}}}e||(y(`[Mensions]: No mention found, hiding menu`),C(!1))},[n,i,r,te]);let ne=e=>{a(e,O),C(!1),D([])},re=(0,u.useCallback)(({users:e})=>(0,d.jsxs)(`div`,{className:N.listContainer,children:[e.length===0&&(0,d.jsxs)(p.Caption1,{className:N.noResults,children:[_.noResults,` "`,A,`"`]}),e.map(e=>(0,d.jsx)(p.Card,{appearance:`subtle`,onMouseDown:e=>e.preventDefault(),onClick:()=>ne(e),children:(0,d.jsx)(p.Persona,{name:e.displayName||v.unknownUser,role:`gridcell`,secondaryText:e.mail||e.userPrincipalName||``,avatar:{image:{src:e.avatar}}})},e.id))]}),[N,A,ne]);return(0,d.jsxs)(jn,{theme:o,anchorPoint:w,isOpen:S,onClose:()=>C(!1),excludeRefs:r?[r]:[],children:[(0,d.jsx)(p.CardHeader,{header:(0,d.jsx)(p.Body1Strong,{className:N.suggestionsHeader,children:s})}),(0,d.jsx)(p.Divider,{}),(0,d.jsx)(re,{users:E})]})},Rc=({context:e})=>{let[t,n]=(0,u.useState)(``),[r,i]=(0,u.useState)(``),a=(0,u.useRef)(null),o=(0,u.useRef)(null);return(0,d.jsxs)(H,{RowGap:20,children:[(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`h3`,{children:`Input with @ mentions`}),(0,d.jsx)(p.Input,{ref:a,value:t,onChange:(e,t)=>n(t.value),placeholder:`Type @ to mention someone...`}),(0,d.jsx)(Lc,{context:e,inputValue:t,parentRef:a,mentionChars:[`@`],onUserSelect:(e,r)=>{let i=RegExp(`${r.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}(\\w*)$`);n(t.replace(i,`${r}${e.displayName} `)),setTimeout(()=>{a.current?.focus()},0)},theme:p.webLightTheme,suggestionsHeader:`Mention User`,maxSuggestions:8})]}),(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`h3`,{children:`Textarea with @ and # mentions`}),(0,d.jsx)(p.Textarea,{ref:o,value:r,onChange:(e,t)=>i(t.value),placeholder:`Type @ to mention someone or # for tags...`,rows:4}),(0,d.jsx)(Lc,{context:e,inputValue:r,parentRef:o,mentionChars:[`@`,`#`],onUserSelect:(e,t)=>{let n=RegExp(`${t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}(\\w*)$`);i(r.replace(n,`${t}${e.displayName} `)),setTimeout(()=>{o.current?.focus()},0)},theme:p.webLightTheme,suggestionsHeader:`Select User or Tag`,maxSuggestions:10,userFilter:(e,t)=>e.displayName.toLowerCase().includes(t.toLowerCase())||(e.mail?.toLowerCase().includes(t.toLowerCase())??!1)})]})]})},zc=()=>({inputContainer:(0,_.css)({marginTop:`auto`,marginLeft:`auto`,"::after":{content:`""`,position:`absolute`,bottom:0,left:0,right:0,borderBottom:`2px solid transparent`,pointerEvents:`none`,borderRadius:p.tokens.borderRadiusMedium}}),listContainer:(0,_.css)({maxHeight:`400px`,overflowY:`auto`,overflowX:`hidden`,"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),sugestionsHeader:(0,_.css)({color:p.tokens.colorBrandBackground})}),Bc=({context:e,onChange:t,value:n,placeholder:r,onSend:i,theme:a=p.webLightTheme,isRunning:o,onAbort:s})=>{let[c,l]=(0,u.useState)(n||``),f=(0,u.useRef)(null),m=zc();return(0,u.useEffect)(()=>{f.current?.focus(),l(n||``)},[n]),(0,d.jsxs)(H,{horizontal:!0,width:`100%`,className:m.inputContainer,children:[(0,d.jsx)(Fc,{ref:f,onSend:i,value:c,onChange:e=>{l(e),t&&t(e)},theme:a,placeholder:r,isRunning:o,onAbort:s}),(0,d.jsx)(Lc,{context:e,inputValue:c,parentRef:f,mentionChars:[`@`],onUserSelect:(e,n)=>{let r=RegExp(`${n.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}(\\w*)$`),i=c.replace(r,`${n}${e.mail} `);l(i),t&&t(i),setTimeout(()=>{f.current?.focus()},0)},theme:a,suggestionsHeader:`Suggestions`,maxSuggestions:10})]})},Vc=()=>{let e=p.tokens.colorBrandBackground,t=_.keyframes`
321
321
  0%, 80%, 100% {
322
322
  opacity: 0;
323
323
  transform: scale(0.8);
@@ -345,7 +345,7 @@ import { AISearchIcon } from './AISearchIcon';
345
345
  animation-delay: 0.2s;
346
346
  `,dot3:_.css`
347
347
  animation-delay: 0.4s;
348
- `}},Hc=()=>{let e=Vc();return(0,d.jsxs)(`div`,{className:e.root,children:[(0,d.jsx)(`div`,{className:`${e.dot} ${e.dot1}`}),(0,d.jsx)(`div`,{className:`${e.dot} ${e.dot2}`}),(0,d.jsx)(`div`,{className:`${e.dot} ${e.dot3}`})]})},Uc=(e,t)=>{switch(t.type){case`INIT`:return{...e,messages:[t.welcomeMessage],isLoading:!1};case`SET_INPUT`:return{...e,inputText:t.inputText};case`ADD_USER_MESSAGE`:return{...e,messages:[...e.messages,t.message]};case`ADD_ASSISTANT_MESSAGE`:return{...e,messages:[...e.messages,t.message]};case`UPDATE_LAST_ASSISTANT_MESSAGE`:{let n=[...e.messages],r=n.length-1;return r>=0&&n[r].senderName===`Assistant`&&(n[r]=t.message),{...e,messages:n}}case`SET_ERROR`:return{...e,error:t.error};case`CLEAR_INPUT`:return{...e,inputText:``};case`SET_IS_RUNNING`:return{...e,isRunning:!e.isRunning};default:return e}},Wc=()=>({markdown:(0,_.css)({fontFamily:p.tokens.fontFamilyBase,fontSize:p.tokens.fontSizeBase300,lineHeight:p.tokens.lineHeightBase300,color:p.tokens.colorNeutralForeground1,"& p":{marginTop:`0`,marginBottom:p.tokens.spacingVerticalM},"& h1, & h2, & h3, & h4, & h5, & h6":{marginTop:p.tokens.spacingVerticalL,marginBottom:p.tokens.spacingVerticalM,fontWeight:p.tokens.fontWeightSemibold},"& h1":{fontSize:p.tokens.fontSizeBase500},"& h2":{fontSize:p.tokens.fontSizeBase400},"& h3":{fontSize:p.tokens.fontSizeBase300},"& ul, & ol":{marginTop:`0`,marginBottom:p.tokens.spacingVerticalM,paddingLeft:p.tokens.spacingHorizontalXXL},"& li":{marginBottom:p.tokens.spacingVerticalXS},"& code":{fontFamily:p.tokens.fontFamilyMonospace,fontSize:p.tokens.fontSizeBase200,backgroundColor:p.tokens.colorNeutralBackground3,padding:`2px 4px`,borderRadius:p.tokens.borderRadiusSmall},"& pre":{backgroundColor:p.tokens.colorNeutralBackground3,padding:p.tokens.spacingVerticalM,borderRadius:p.tokens.borderRadiusMedium,overflowX:`auto`,marginBottom:p.tokens.spacingVerticalM},"& pre code":{backgroundColor:`transparent`,padding:`0`},"& table":{borderCollapse:`collapse`,width:`100%`,marginBottom:p.tokens.spacingVerticalM,border:`1px solid ${p.tokens.colorNeutralStroke1}`},"& thead":{backgroundColor:p.tokens.colorNeutralBackground3},"& th":{padding:p.tokens.spacingVerticalS+` `+p.tokens.spacingHorizontalM,textAlign:`left`,fontWeight:p.tokens.fontWeightSemibold,borderBottom:`2px solid ${p.tokens.colorNeutralStroke1}`,borderRight:`1px solid ${p.tokens.colorNeutralStroke2}`},"& td":{padding:p.tokens.spacingVerticalS+` `+p.tokens.spacingHorizontalM,borderBottom:`1px solid ${p.tokens.colorNeutralStroke2}`,borderRight:`1px solid ${p.tokens.colorNeutralStroke2}`},"& tr:last-child td":{borderBottom:`none`},"& th:last-child, & td:last-child":{borderRight:`none`},"& blockquote":{borderLeft:`4px solid ${p.tokens.colorBrandStroke1}`,paddingLeft:p.tokens.spacingHorizontalM,marginLeft:`0`,marginBottom:p.tokens.spacingVerticalM,color:p.tokens.colorNeutralForeground2},"& a":{color:p.tokens.colorBrandForeground1,textDecoration:`none`,":hover":{textDecoration:`underline`}},"& hr":{border:`none`,borderTop:`1px solid ${p.tokens.colorNeutralStroke2}`,marginTop:p.tokens.spacingVerticalL,marginBottom:p.tokens.spacingVerticalL}})}),Gc=({content:e,className:t})=>{let n=Wc(),[r,i]=u.useState(``);return u.useEffect(()=>{i(new D.default({html:!1,linkify:!0,typographer:!0,breaks:!0}).render(e))},[e]),(0,d.jsx)(`div`,{className:`${n.markdown} ${t||``}`,dangerouslySetInnerHTML:{__html:r}})},Kc=(0,p.makeStyles)({plainText:{fontFamily:p.tokens.fontFamilyBase,fontSize:p.tokens.fontSizeBase300,lineHeight:p.tokens.lineHeightBase300,color:p.tokens.colorNeutralForeground1,whiteSpace:`pre-wrap`,wordBreak:`break-word`},htmlContent:{fontFamily:p.tokens.fontFamilyBase,fontSize:p.tokens.fontSizeBase300,lineHeight:p.tokens.lineHeightBase300,color:p.tokens.colorNeutralForeground1,"& p":{marginTop:`0`,marginBottom:p.tokens.spacingVerticalM},"& h1, & h2, & h3, & h4, & h5, & h6":{marginTop:p.tokens.spacingVerticalL,marginBottom:p.tokens.spacingVerticalM,fontWeight:p.tokens.fontWeightSemibold},"& table":{borderCollapse:`collapse`,width:`100%`,marginBottom:p.tokens.spacingVerticalM},"& th, & td":{border:`1px solid ${p.tokens.colorNeutralStroke1}`,padding:p.tokens.spacingHorizontalS,textAlign:`left`},"& th":{backgroundColor:p.tokens.colorNeutralBackground3,fontWeight:p.tokens.fontWeightSemibold}},debugBadge:{display:`inline-block`,padding:`${p.tokens.spacingVerticalXS} ${p.tokens.spacingHorizontalS}`,marginBottom:p.tokens.spacingVerticalS,backgroundColor:p.tokens.colorNeutralBackground3,borderRadius:p.tokens.borderRadiusSmall,fontSize:p.tokens.fontSizeBase200,fontFamily:p.tokens.fontFamilyMonospace,color:p.tokens.colorNeutralForeground2},adaptiveCardWrapper:{width:`100%`}}),qc=({content:e,forceType:t,onTypeDetected:n,context:r,theme:i=Cs.SharePoint,fluentTheme:a,onAdaptiveCardAction:o,className:s,debug:c=!1})=>{let l=Kc(),{error:f}=L(),[p,m]=u.useState(null);if(u.useEffect(()=>{if(u.isValidElement(e)||typeof e!=`string`&&typeof e!=`object`)return;let t=rn(e);m(t),n&&n(t)},[e,n]),u.isValidElement(e))return(0,d.jsx)(d.Fragment,{children:e});let h=t||p?.type,g=p?.content||e;return(0,d.jsxs)(d.Fragment,{children:[!c||!p?null:(0,d.jsxs)(`div`,{className:l.debugBadge,children:[`Type: `,p.type,` | Confidence: `,(p.confidence*100).toFixed(0),`%`]}),(()=>{switch(h){case Zt.MARKDOWN:return(0,d.jsx)(Gc,{content:g,className:s});case Zt.HTML:return(0,d.jsx)(`div`,{className:` ${s||``}`,dangerouslySetInnerHTML:{__html:g}});case Zt.ADAPTIVE_CARD:return(0,d.jsx)(`div`,{className:`${l.adaptiveCardWrapper} ${s||``}`,children:(0,d.jsx)(bc,{card:typeof g==`string`?JSON.parse(g):g,context:r,theme:a,themeType:i,onInvokeAction:o||(()=>{}),onError:e=>f(`Adaptive Card Error:`,e instanceof Error?e:void 0)})});case Zt.PLAIN_TEXT:default:return(0,d.jsx)(`div`,{className:`${l.plainText} ${s||``}`,children:g})}})()]})},Jc=u.forwardRef((e,t)=>{let{messages:n,context:r}=e,i=e=>u.isValidElement(e)?e:typeof e==`string`?e.replace(/\{"status"\s*:\s*"executing"\}/gi,``).replace(/\{'status'\s*:\s*'executing'\}/gi,``).trim():e;return(0,d.jsx)(`div`,{ref:t,className:(0,_.css)({flex:`1 1 0`,overflowY:`auto`,overflowX:`hidden`,padding:`16px`,paddingRight:`25px`,"::-webkit-scrollbar":{width:`6px`},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),children:(0,d.jsx)(M.Chat,{className:(0,_.css)({display:`flex`,flexDirection:`column`,gap:`10px`,paddingRight:`30px`}),children:n.map((e,t)=>e.senderName===`User`?(0,d.jsx)(M.ChatMyMessage,{status:e.status,author:e.senderName,children:i(e.message)},t):(0,d.jsx)(M.ChatMessage,{decoration:e.status===`failed`?`important`:void 0,avatar:(0,d.jsx)(x.Icon,{icon:`carbon:ibm-consulting-advantage-assistant`,width:`32`,height:`32`,style:{color:p.tokens.colorBrandBackground}}),author:e.senderName,children:(0,d.jsx)(qc,{content:i(e.message),context:r})},t))})})});Jc.displayName=`ChatList`;var Yc=()=>({container:(0,_.css)({display:`flex`,flexDirection:`column`,padding:`10px`,width:`100%`,height:`600px`,borderRadius:`8px`,boxShadow:`0 2px 10px rgba(0, 0, 0, 0.1)`,overflowY:`auto`,overflowX:`hidden`,position:`relative`,zIndex:1e3}),chatList:(0,_.css)({display:`flex`,flexDirection:`column`,gap:`10px`,paddingRight:`30px`,width:`100%`,"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),chatAIAssistantRoot:(0,_.css)({padding:`10px`,display:`flex`,flexDirection:`column`,position:`relative`,height:`calc(100% - 20px)`}),inputContainer:(0,_.css)({display:`flex`,flexDirection:`row`,flex:1,marginTop:`10px`,gap:`10px`,alignItems:`center`}),input:(0,_.css)({width:`100%`,fontSize:`14px`}),aiAssistantContainer:(0,_.css)({display:`flex`,flexDirection:`column`,height:`100%`,width:`100%`,boxSizing:`border-box`}),aiAssistantInputContainer:(0,_.css)({flex:`0 0 auto`,padding:`16px`,paddingBottom:`20px`,borderTop:`1px solid ${p.tokens.colorNeutralStroke2}`,backgroundColor:p.tokens.colorNeutralBackground1,boxSizing:`border-box`})}),Xc=(e,t)=>{let{getFormatRelative:n}=Nt(e,t);return n(new Date)},Zc=e=>{let{instrutions:n,timezone:r,locale:i,onResponse:a,openAIConfig:o,theme:s,placeholder:c,context:l}=e,[f,m]=u.useReducer(Uc,{messages:[],inputText:``,isLoading:!0,error:void 0,isRunning:!1}),{messages:h,inputText:g,isLoading:_,error:v,isRunning:y}=f,b=u.useRef([]),x=u.useRef(null),S=Yc(),C=t.n(),{error:w}=L(),{sendMessage:T,cancelRequest:E}=oe({endpoint:o?.endpoint,mcpServers:o?.mcpServers,requestHeaders:o?.requestHeaders}),D=u.useCallback(()=>{x.current&&(x.current.scrollTop=x.current.scrollHeight-x.current.clientHeight)},[]);u.useEffect(()=>{let e=setTimeout(()=>{D()},100);return()=>clearTimeout(e)},[h,D]),u.useEffect(()=>{m({type:`INIT`,welcomeMessage:{message:`Welcome to AI Assistant! How can I help you today?`,senderName:`Assistant`,timeStamp:Xc(r,l?.pageContext?.cultureInfo?.currentUICultureName||`en-US`),status:`received`}})},[]);let O=u.useCallback(async()=>{if(!g.trim())return;let e={message:g,senderName:`User`,timeStamp:Xc(r,l?.pageContext?.cultureInfo?.currentUICultureName||`en-US`),status:`received`},t=g;m({type:`ADD_USER_MESSAGE`,message:e}),m({type:`CLEAR_INPUT`}),m({type:`SET_IS_RUNNING`});let s={message:(0,d.jsx)(Hc,{}),senderName:`Assistant`,timeStamp:Xc(r,l?.pageContext?.cultureInfo?.currentUICultureName||`en-US`),status:`sending`};m({type:`ADD_ASSISTANT_MESSAGE`,message:s});try{let e=await T({instructions:n,input:t,timezone:r,locale:i,history:b.current,mcpServers:o?.mcpServers});if(a){let{message:t,status:n}=await a(e);m({type:`UPDATE_LAST_ASSISTANT_MESSAGE`,message:{...s,message:t||e,status:n||`received`}})}else m({type:`UPDATE_LAST_ASSISTANT_MESSAGE`,message:{...s,message:e,status:`received`}});m({type:`SET_IS_RUNNING`}),b.current.push(t),b.current.push(e)}catch(e){w(`Error during streaming:`,e instanceof Error?e:void 0);let t=`Error occurred while processing your request.`;e instanceof Error&&(t=e.message.includes(`Rate limit`)||e.message.includes(`429`)?`Rate limit exceeded. Please wait a moment before sending another message.`:e.message.includes(`quota`)?`API quota exceeded. Please try again later.`:e.message.includes(`abort`)?`Request was cancelled.`:e.message),m({type:`UPDATE_LAST_ASSISTANT_MESSAGE`,message:{...s,message:t,status:`failed`}}),m({type:`SET_IS_RUNNING`})}},[g,n,i,a,o,r,T,D,l]),k=u.useCallback(e=>{m({type:`SET_INPUT`,inputText:e})},[]);return _?(0,d.jsx)(p.Spinner,{size:`medium`}):v?(0,d.jsx)(go,{message:C.processingError,messageType:F.INFO}):(0,d.jsxs)(`div`,{className:S.aiAssistantContainer,children:[(0,d.jsx)(Jc,{ref:x,messages:h,context:l}),(0,d.jsx)(`div`,{className:S.aiAssistantInputContainer,children:(0,d.jsx)(Bc,{context:l,value:g,onChange:k,placeholder:c,onSend:O,onAbort:E,theme:s,isRunning:y})})]})},Qc=({context:e,onChange:n,value:r,placeholder:i,onSend:a,theme:o,isRunning:s,onAbort:c})=>{let[l,f]=(0,u.useState)(r||``),[m,h]=(0,u.useState)(!1),g=(0,u.useRef)(null),_=t.n(),[v,y]=(0,u.useState)({top:0,left:0}),[b,x]=(0,u.useState)([]),S=(0,u.useRef)({}),C=zc(),{warn:w,error:T}=L();u.default.useEffect(()=>{g.current?.focus(),f(r||``)},[r]);let E=async t=>{if(S.current[t])return S.current[t];if(!e?.graphClient)return w(`Graph client not available`),[];try{let n=t&&t.length>0?`/users?$filter=startswith(displayName,'${t}')`:`/users?$orderby=displayName&$top=10`,r=(await e.graphClient.get(n))?.value||[],i=e.pageContext?.web?.absoluteUrl||``;return r.forEach(e=>{i?e.avatar=`${i}/_layouts/15/userphoto.aspx?size=S&accountname=${e.mail}`:e.avatar=`https://graph.microsoft.com/v1.0/users/${e.id}/photo/$value`}),S.current[t]=r,r}catch(e){return T(`Error fetching users from Graph:`,e instanceof Error?e:void 0),[]}},D=(0,u.useCallback)(Rt(async e=>{let t=await E(e);t.sort((e,t)=>e.displayName.localeCompare(t.displayName)),x(t),h(!0),setTimeout(()=>{g.current?.focus()},0)},300),[e]),O=async e=>{f(e),n&&n(e),g.current?.focus();let t=e.lastIndexOf(`@`);if(t!==-1&&(t===0||e[t-1]===` `)){await D(e.slice(t+1));let n=g.current;if(n){let e=(0,j.default)(n,t),r=n.getBoundingClientRect();y({top:r.top+e.top+22,left:r.left+e.left+16})}}else h(!1)},k=e=>{let t=l.replace(/@(\w*)$/,`@${e} `);f(t),n&&n(t),h(!1),x([]),g.current?.focus()},A=(0,u.useCallback)(({users:e})=>(0,d.jsxs)(`div`,{className:C.listContainer,children:[e.length===0&&(0,d.jsx)(p.Caption1,{children:_.noUsersFound}),e.map(e=>(0,d.jsx)(p.Card,{size:`small`,appearance:`subtle`,onMouseDown:e=>e.preventDefault(),onClick:()=>k(e.mail),children:(0,d.jsx)(p.Persona,{name:e.displayName,role:`gridcell`,secondaryText:e.mail,avatar:{image:{src:e.avatar}}})},e.id))]}),[C.listContainer,k]);return(0,d.jsxs)(H,{horizontal:!0,width:`100%`,className:C.inputContainer,children:[(0,d.jsx)(Fc,{ref:g,onSend:a,value:l,onChange:O,theme:o,placeholder:i,isRunning:s,onAbort:c}),(0,d.jsxs)(jn,{theme:o,anchorPoint:v,isOpen:m,onClose:()=>h(!1),excludeRefs:[g],children:[(0,d.jsx)(p.CardHeader,{header:(0,d.jsx)(p.Body1Strong,{className:C.sugestionsHeader,children:`Sugestions`})}),(0,d.jsx)(p.Divider,{}),(0,d.jsx)(A,{users:b})]})]})},$c=()=>({inputContainer:(0,_.css)({marginTop:`auto`,marginLeft:`auto`,"::after":{content:`""`,position:`absolute`,bottom:0,left:0,right:0,borderBottom:`2px solid transparent`,pointerEvents:`none`,borderRadius:p.tokens.borderRadiusMedium}}),listContainer:(0,_.css)({maxHeight:`400px`,overflowY:`auto`,overflowX:`hidden`,"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),sugestionsHeader:(0,_.css)({color:p.tokens.colorBrandBackground})}),el=`comm`,tl=`rule`,nl=`decl`,rl=`@import`,il=`@namespace`,al=`@keyframes`,ol=`@layer`,sl=Math.abs,cl=String.fromCharCode;function ll(e){return e.trim()}function ul(e,t,n){return e.replace(t,n)}function dl(e,t,n){return e.indexOf(t,n)}function fl(e,t){return e.charCodeAt(t)|0}function pl(e,t,n){return e.slice(t,n)}function ml(e){return e.length}function hl(e){return e.length}function gl(e,t){return t.push(e),e}var _l=1,vl=1,yl=0,bl=0,$=0,xl=``;function Sl(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:_l,column:vl,length:o,return:``,siblings:s}}function Cl(){return $}function wl(){return $=bl>0?fl(xl,--bl):0,vl--,$===10&&(vl=1,_l--),$}function Tl(){return $=bl<yl?fl(xl,bl++):0,vl++,$===10&&(vl=1,_l++),$}function El(){return fl(xl,bl)}function Dl(){return bl}function Ol(e,t){return pl(xl,e,t)}function kl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Al(e){return _l=vl=1,yl=ml(xl=e),bl=0,[]}function jl(e){return xl=``,e}function Ml(e){return ll(Ol(bl-1,Fl(e===91?e+2:e===40?e+1:e)))}function Nl(e){for(;($=El())&&$<33;)Tl();return kl(e)>2||kl($)>3?``:` `}function Pl(e,t){for(;--t&&Tl()&&!($<48||$>102||$>57&&$<65||$>70&&$<97););return Ol(e,Dl()+(t<6&&El()==32&&Tl()==32))}function Fl(e){for(;Tl();)switch($){case e:return bl;case 34:case 39:e!==34&&e!==39&&Fl($);break;case 40:e===41&&Fl(e);break;case 92:Tl();break}return bl}function Il(e,t){for(;Tl()&&e+$!==57&&!(e+$===84&&El()===47););return`/*`+Ol(t,bl-1)+`*`+cl(e===47?e:Tl())}function Ll(e){for(;!kl(El());)Tl();return Ol(e,bl)}function Rl(e){return jl(zl(``,null,null,null,[``],e=Al(e),0,[0],e))}function zl(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=Tl()){case 40:if(m!=108&&fl(C,d-1)==58){dl(C+=ul(Ml(v),`&`,`&\f`),`&\f`,sl(l?s[l-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Ml(v);break;case 9:case 10:case 13:case 32:C+=Nl(m);break;case 92:C+=Pl(Dl()-1,7);continue;case 47:switch(El()){case 42:case 47:gl(Vl(Il(Tl(),Dl()),t,n,c),c),(kl(m||1)==5||kl(El()||1)==5)&&ml(C)&&pl(C,-1,void 0)!==` `&&(C+=` `);break;default:C+=`/`}break;case 123*h:s[l++]=ml(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=ul(C,/\f/g,``)),p>0&&(ml(C)-d||h===0&&m===47)&&gl(p>32?Hl(C+`;`,r,n,d-1,c):Hl(ul(C,` `,``)+`;`,r,n,d-2,c),c);break;case 59:C+=`;`;default:if(gl(S=Bl(C,t,n,l,u,i,s,y,b=[],x=[],d,a),a),v===123)if(u===0)zl(C,t,S,S,b,a,d,s,x);else{switch(f){case 99:if(fl(C,3)===110)break;case 108:if(fl(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?zl(e,S,S,r&&gl(Bl(e,S,S,0,0,i,s,y,i,b=[],d,x),x),i,x,d,s,r?b:x):zl(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+ml(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&wl()==125)continue}switch(C+=cl(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(ml(C)-1)*_,_=1;break;case 64:El()===45&&(C+=Ml(Tl())),f=El(),u=d=ml(y=C+=Ll(Dl())),v++;break;case 45:m===45&&ml(C)==2&&(h=0)}}return a}function Bl(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=hl(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=pl(e,f+1,f=sl(g=o[h])),b=e;v<m;++v)(b=ll(g>0?p[v]+` `+y:ul(y,/&\f/g,p[v])))&&(c[_++]=b);return Sl(e,t,n,i===0?tl:s,c,l,u,d)}function Vl(e,t,n,r){return Sl(e,t,n,el,cl(Cl()),pl(e,2,-2),0,r)}function Hl(e,t,n,r,i){return Sl(e,t,n,nl,pl(e,0,r),pl(e,r+1,-1),r,i)}function Ul(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function Wl(e,t,n,r){switch(e.type){case ol:if(e.children.length)break;case rl:case il:case nl:return e.return=e.return||e.value;case el:return``;case al:return e.return=e.value+`{`+Ul(e.children,r)+`}`;case tl:if(!ml(e.value=e.props.join(`,`)))return``}return ml(n=Ul(e.children,r))?e.return=e.value+`{`+n+`}`:``}var Gl=`c4`,Kl={id:Gl,detector:n.h(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./c4Diagram-IC4MRINW-ZFE2cGZP.cjs`));return{id:Gl,diagram:e}},`loader`)},ql=`flowchart`,Jl={id:ql,detector:n.h((e,t)=>t?.flowchart?.defaultRenderer===`dagre-wrapper`||t?.flowchart?.defaultRenderer===`elk`?!1:/^\s*graph/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./flowDiagram-PKNHOUZH-7XJG07fo.cjs`));return{id:ql,diagram:e}},`loader`)},Yl=`flowchart-v2`,Xl={id:Yl,detector:n.h((e,t)=>t?.flowchart?.defaultRenderer===`dagre-d3`?!1:(t?.flowchart?.defaultRenderer===`elk`&&(t.layout=`elk`),/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer===`dagre-wrapper`?!0:/^\s*flowchart/.test(e)),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./flowDiagram-PKNHOUZH-7XJG07fo.cjs`));return{id:Yl,diagram:e}},`loader`)},Zl=`er`,Ql={id:Zl,detector:n.h(e=>/^\s*erDiagram/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./erDiagram-INFDFZHY-CDt3mOSU.cjs`));return{id:Zl,diagram:e}},`loader`)},$l=`gitGraph`,eu={id:$l,detector:n.h(e=>/^\s*gitGraph/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./gitGraphDiagram-K3NZZRJ6-Dt4D-ig1.cjs`));return{id:$l,diagram:e}},`loader`)},tu=`gantt`,nu={id:tu,detector:n.h(e=>/^\s*gantt/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./ganttDiagram-A5KZAMGK-Bbck1pyM.cjs`));return{id:tu,diagram:e}},`loader`)},ru=`info`,iu={id:ru,detector:n.h(e=>/^\s*info/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./infoDiagram-LFFYTUFH-Bp9btqnA.cjs`));return{id:ru,diagram:e}},`loader`)},au=`pie`,ou={id:au,detector:n.h(e=>/^\s*pie/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./pieDiagram-SKSYHLDU-Ba-c0fRA.cjs`));return{id:au,diagram:e}},`loader`)},su=`quadrantChart`,cu={id:su,detector:n.h(e=>/^\s*quadrantChart/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./quadrantDiagram-337W2JSQ-CQQEVC49.cjs`));return{id:su,diagram:e}},`loader`)},lu=`xychart`,uu={id:lu,detector:n.h(e=>/^\s*xychart(-beta)?/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./xychartDiagram-JWTSCODW-0qbVGrDs.cjs`));return{id:lu,diagram:e}},`loader`)},du=`requirement`,fu={id:du,detector:n.h(e=>/^\s*requirement(Diagram)?/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./requirementDiagram-Z7DCOOCP-CeMYhXEm.cjs`));return{id:du,diagram:e}},`loader`)},pu=`sequence`,mu={id:pu,detector:n.h(e=>/^\s*sequenceDiagram/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./sequenceDiagram-2WXFIKYE-B-zWyr9f.cjs`));return{id:pu,diagram:e}},`loader`)},hu=`class`,gu={id:hu,detector:n.h((e,t)=>t?.class?.defaultRenderer===`dagre-wrapper`?!1:/^\s*classDiagram/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./classDiagram-VBA2DB6C-Us0kuDfz.cjs`));return{id:hu,diagram:e}},`loader`)},_u=`classDiagram`,vu={id:_u,detector:n.h((e,t)=>/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer===`dagre-wrapper`?!0:/^\s*classDiagram-v2/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./classDiagram-v2-RAHNMMFH-BWsm3ea6.cjs`));return{id:_u,diagram:e}},`loader`)},yu=`state`,bu={id:yu,detector:n.h((e,t)=>t?.state?.defaultRenderer===`dagre-wrapper`?!1:/^\s*stateDiagram/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./stateDiagram-RAJIS63D-C1Aj8vJQ.cjs`));return{id:yu,diagram:e}},`loader`)},xu=`stateDiagram`,Su={id:xu,detector:n.h((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer===`dagre-wrapper`),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./stateDiagram-v2-FVOUBMTO-VoIE_KVn.cjs`));return{id:xu,diagram:e}},`loader`)},Cu=`journey`,wu={id:Cu,detector:n.h(e=>/^\s*journey/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./journeyDiagram-4ABVD52K-Cv0DbLMi.cjs`));return{id:Cu,diagram:e}},`loader`)},Tu={draw:n.h((e,t,i)=>{n.g.debug(`rendering svg for syntax error
348
+ `}},Hc=()=>{let e=Vc();return(0,d.jsxs)(`div`,{className:e.root,children:[(0,d.jsx)(`div`,{className:`${e.dot} ${e.dot1}`}),(0,d.jsx)(`div`,{className:`${e.dot} ${e.dot2}`}),(0,d.jsx)(`div`,{className:`${e.dot} ${e.dot3}`})]})},Uc=(e,t)=>{switch(t.type){case`INIT`:return{...e,messages:[t.welcomeMessage],isLoading:!1};case`SET_INPUT`:return{...e,inputText:t.inputText};case`ADD_USER_MESSAGE`:return{...e,messages:[...e.messages,t.message]};case`ADD_ASSISTANT_MESSAGE`:return{...e,messages:[...e.messages,t.message]};case`UPDATE_LAST_ASSISTANT_MESSAGE`:{let n=[...e.messages],r=n.length-1;return r>=0&&n[r].senderName===`Assistant`&&(n[r]=t.message),{...e,messages:n}}case`SET_ERROR`:return{...e,error:t.error};case`CLEAR_INPUT`:return{...e,inputText:``};case`SET_IS_RUNNING`:return{...e,isRunning:!e.isRunning};default:return e}},Wc=()=>({markdown:(0,_.css)({fontFamily:p.tokens.fontFamilyBase,fontSize:p.tokens.fontSizeBase300,lineHeight:p.tokens.lineHeightBase300,color:p.tokens.colorNeutralForeground1,"& p":{marginTop:`0`,marginBottom:p.tokens.spacingVerticalM},"& h1, & h2, & h3, & h4, & h5, & h6":{marginTop:p.tokens.spacingVerticalL,marginBottom:p.tokens.spacingVerticalM,fontWeight:p.tokens.fontWeightSemibold},"& h1":{fontSize:p.tokens.fontSizeBase500},"& h2":{fontSize:p.tokens.fontSizeBase400},"& h3":{fontSize:p.tokens.fontSizeBase300},"& ul, & ol":{marginTop:`0`,marginBottom:p.tokens.spacingVerticalM,paddingLeft:p.tokens.spacingHorizontalXXL},"& li":{marginBottom:p.tokens.spacingVerticalXS},"& code":{fontFamily:p.tokens.fontFamilyMonospace,fontSize:p.tokens.fontSizeBase200,backgroundColor:p.tokens.colorNeutralBackground3,padding:`2px 4px`,borderRadius:p.tokens.borderRadiusSmall},"& pre":{backgroundColor:p.tokens.colorNeutralBackground3,padding:p.tokens.spacingVerticalM,borderRadius:p.tokens.borderRadiusMedium,overflowX:`auto`,marginBottom:p.tokens.spacingVerticalM},"& pre code":{backgroundColor:`transparent`,padding:`0`},"& table":{borderCollapse:`collapse`,width:`100%`,marginBottom:p.tokens.spacingVerticalM,border:`1px solid ${p.tokens.colorNeutralStroke1}`},"& thead":{backgroundColor:p.tokens.colorNeutralBackground3},"& th":{padding:p.tokens.spacingVerticalS+` `+p.tokens.spacingHorizontalM,textAlign:`left`,fontWeight:p.tokens.fontWeightSemibold,borderBottom:`2px solid ${p.tokens.colorNeutralStroke1}`,borderRight:`1px solid ${p.tokens.colorNeutralStroke2}`},"& td":{padding:p.tokens.spacingVerticalS+` `+p.tokens.spacingHorizontalM,borderBottom:`1px solid ${p.tokens.colorNeutralStroke2}`,borderRight:`1px solid ${p.tokens.colorNeutralStroke2}`},"& tr:last-child td":{borderBottom:`none`},"& th:last-child, & td:last-child":{borderRight:`none`},"& blockquote":{borderLeft:`4px solid ${p.tokens.colorBrandStroke1}`,paddingLeft:p.tokens.spacingHorizontalM,marginLeft:`0`,marginBottom:p.tokens.spacingVerticalM,color:p.tokens.colorNeutralForeground2},"& a":{color:p.tokens.colorBrandForeground1,textDecoration:`none`,":hover":{textDecoration:`underline`}},"& hr":{border:`none`,borderTop:`1px solid ${p.tokens.colorNeutralStroke2}`,marginTop:p.tokens.spacingVerticalL,marginBottom:p.tokens.spacingVerticalL}})}),Gc=({content:e,className:t})=>{let n=Wc(),[r,i]=u.useState(``);return u.useEffect(()=>{i(new D.default({html:!1,linkify:!0,typographer:!0,breaks:!0}).render(e))},[e]),(0,d.jsx)(`div`,{className:`${n.markdown} ${t||``}`,dangerouslySetInnerHTML:{__html:r}})},Kc=(0,p.makeStyles)({plainText:{fontFamily:p.tokens.fontFamilyBase,fontSize:p.tokens.fontSizeBase300,lineHeight:p.tokens.lineHeightBase300,color:p.tokens.colorNeutralForeground1,whiteSpace:`pre-wrap`,wordBreak:`break-word`},htmlContent:{fontFamily:p.tokens.fontFamilyBase,fontSize:p.tokens.fontSizeBase300,lineHeight:p.tokens.lineHeightBase300,color:p.tokens.colorNeutralForeground1,"& p":{marginTop:`0`,marginBottom:p.tokens.spacingVerticalM},"& h1, & h2, & h3, & h4, & h5, & h6":{marginTop:p.tokens.spacingVerticalL,marginBottom:p.tokens.spacingVerticalM,fontWeight:p.tokens.fontWeightSemibold},"& table":{borderCollapse:`collapse`,width:`100%`,marginBottom:p.tokens.spacingVerticalM},"& th, & td":{border:`1px solid ${p.tokens.colorNeutralStroke1}`,padding:p.tokens.spacingHorizontalS,textAlign:`left`},"& th":{backgroundColor:p.tokens.colorNeutralBackground3,fontWeight:p.tokens.fontWeightSemibold}},debugBadge:{display:`inline-block`,padding:`${p.tokens.spacingVerticalXS} ${p.tokens.spacingHorizontalS}`,marginBottom:p.tokens.spacingVerticalS,backgroundColor:p.tokens.colorNeutralBackground3,borderRadius:p.tokens.borderRadiusSmall,fontSize:p.tokens.fontSizeBase200,fontFamily:p.tokens.fontFamilyMonospace,color:p.tokens.colorNeutralForeground2},adaptiveCardWrapper:{width:`100%`}}),qc=({content:e,forceType:t,onTypeDetected:n,context:r,theme:i=Cs.SharePoint,fluentTheme:a,onAdaptiveCardAction:o,className:s,debug:c=!1})=>{let l=Kc(),{error:f}=L(),[p,m]=u.useState(null);if(u.useEffect(()=>{if(u.isValidElement(e)||typeof e!=`string`&&typeof e!=`object`)return;let t=rn(e);m(t),n&&n(t)},[e,n]),u.isValidElement(e))return(0,d.jsx)(d.Fragment,{children:e});let h=t||p?.type,g=p?.content||e;return(0,d.jsxs)(d.Fragment,{children:[!c||!p?null:(0,d.jsxs)(`div`,{className:l.debugBadge,children:[`Type: `,p.type,` | Confidence: `,(p.confidence*100).toFixed(0),`%`]}),(()=>{switch(h){case Zt.MARKDOWN:return(0,d.jsx)(Gc,{content:g,className:s});case Zt.HTML:return(0,d.jsx)(`div`,{className:` ${s||``}`,dangerouslySetInnerHTML:{__html:g}});case Zt.ADAPTIVE_CARD:return(0,d.jsx)(`div`,{className:`${l.adaptiveCardWrapper} ${s||``}`,children:(0,d.jsx)(bc,{card:typeof g==`string`?JSON.parse(g):g,context:r,theme:a,themeType:i,onInvokeAction:o||(()=>{}),onError:e=>f(`Adaptive Card Error:`,e instanceof Error?e:void 0)})});case Zt.PLAIN_TEXT:default:return(0,d.jsx)(`div`,{className:`${l.plainText} ${s||``}`,children:g})}})()]})},Jc=u.forwardRef((e,t)=>{let{messages:n,context:r}=e,i=e=>u.isValidElement(e)?e:typeof e==`string`?e.replace(/\{"status"\s*:\s*"executing"\}/gi,``).replace(/\{'status'\s*:\s*'executing'\}/gi,``).trim():e;return(0,d.jsx)(`div`,{ref:t,className:(0,_.css)({flex:`1 1 0`,overflowY:`auto`,overflowX:`hidden`,padding:`16px`,paddingRight:`25px`,"::-webkit-scrollbar":{width:`6px`},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),children:(0,d.jsx)(M.Chat,{className:(0,_.css)({display:`flex`,flexDirection:`column`,gap:`10px`,paddingRight:`30px`}),children:n.map((e,t)=>e.senderName===`User`?(0,d.jsx)(M.ChatMyMessage,{status:e.status,author:e.senderName,children:i(e.message)},t):(0,d.jsx)(M.ChatMessage,{decoration:e.status===`failed`?`important`:void 0,avatar:(0,d.jsx)(x.Icon,{icon:`carbon:ibm-consulting-advantage-assistant`,width:`32`,height:`32`,style:{color:p.tokens.colorBrandBackground}}),author:e.senderName,children:(0,d.jsx)(qc,{content:i(e.message),context:r})},t))})})});Jc.displayName=`ChatList`;var Yc=()=>({container:(0,_.css)({display:`flex`,flexDirection:`column`,padding:`10px`,width:`100%`,height:`600px`,borderRadius:`8px`,boxShadow:`0 2px 10px rgba(0, 0, 0, 0.1)`,overflowY:`auto`,overflowX:`hidden`,position:`relative`,zIndex:1e3}),chatList:(0,_.css)({display:`flex`,flexDirection:`column`,gap:`10px`,paddingRight:`30px`,width:`100%`,"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),chatAIAssistantRoot:(0,_.css)({padding:`10px`,display:`flex`,flexDirection:`column`,position:`relative`,height:`calc(100% - 20px)`}),inputContainer:(0,_.css)({display:`flex`,flexDirection:`row`,flex:1,marginTop:`10px`,gap:`10px`,alignItems:`center`}),input:(0,_.css)({width:`100%`,fontSize:`14px`}),aiAssistantContainer:(0,_.css)({display:`flex`,flexDirection:`column`,height:`100%`,width:`100%`,boxSizing:`border-box`}),aiAssistantInputContainer:(0,_.css)({flex:`0 0 auto`,padding:`16px`,paddingBottom:`20px`,borderTop:`1px solid ${p.tokens.colorNeutralStroke2}`,backgroundColor:p.tokens.colorNeutralBackground1,boxSizing:`border-box`})}),Xc=(e,t)=>{let{getFormatRelative:n}=Nt(e,t);return n(new Date)},Zc=e=>{let{instrutions:n,timezone:r,locale:i,onResponse:a,openAIConfig:o,theme:s,placeholder:c,context:l}=e,[f,m]=u.useReducer(Uc,{messages:[],inputText:``,isLoading:!0,error:void 0,isRunning:!1}),{messages:h,inputText:g,isLoading:_,error:v,isRunning:y}=f,b=u.useRef([]),x=u.useRef(null),S=Yc(),C=t.n(),{error:w}=L(),{sendMessage:T,cancelRequest:E}=oe({endpoint:o?.endpoint,mcpServers:o?.mcpServers,requestHeaders:o?.requestHeaders}),D=u.useCallback(()=>{x.current&&(x.current.scrollTop=x.current.scrollHeight-x.current.clientHeight)},[]);u.useEffect(()=>{let e=setTimeout(()=>{D()},100);return()=>clearTimeout(e)},[h,D]),u.useEffect(()=>{m({type:`INIT`,welcomeMessage:{message:`Welcome to AI Assistant! How can I help you today?`,senderName:`Assistant`,timeStamp:Xc(r,l?.pageContext?.cultureInfo?.currentUICultureName||`en-US`),status:`received`}})},[]);let O=u.useCallback(async()=>{if(!g.trim())return;let e={message:g,senderName:`User`,timeStamp:Xc(r,l?.pageContext?.cultureInfo?.currentUICultureName||`en-US`),status:`received`},t=g;m({type:`ADD_USER_MESSAGE`,message:e}),m({type:`CLEAR_INPUT`}),m({type:`SET_IS_RUNNING`});let s={message:(0,d.jsx)(Hc,{}),senderName:`Assistant`,timeStamp:Xc(r,l?.pageContext?.cultureInfo?.currentUICultureName||`en-US`),status:`sending`};m({type:`ADD_ASSISTANT_MESSAGE`,message:s});try{let e=await T({instructions:n,input:t,timezone:r,locale:i,history:b.current,mcpServers:o?.mcpServers});if(a){let{message:t,status:n}=await a(e);m({type:`UPDATE_LAST_ASSISTANT_MESSAGE`,message:{...s,message:t||e,status:n||`received`}})}else m({type:`UPDATE_LAST_ASSISTANT_MESSAGE`,message:{...s,message:e,status:`received`}});m({type:`SET_IS_RUNNING`}),b.current.push(t),b.current.push(e)}catch(e){w(`Error during streaming:`,e instanceof Error?e:void 0);let t=`Error occurred while processing your request.`;e instanceof Error&&(t=e.message.includes(`Rate limit`)||e.message.includes(`429`)?`Rate limit exceeded. Please wait a moment before sending another message.`:e.message.includes(`quota`)?`API quota exceeded. Please try again later.`:e.message.includes(`abort`)?`Request was cancelled.`:e.message),m({type:`UPDATE_LAST_ASSISTANT_MESSAGE`,message:{...s,message:t,status:`failed`}}),m({type:`SET_IS_RUNNING`})}},[g,n,i,a,o,r,T,D,l]),k=u.useCallback(e=>{m({type:`SET_INPUT`,inputText:e})},[]);return _?(0,d.jsx)(p.Spinner,{size:`medium`}):v?(0,d.jsx)(go,{message:C.processingError,messageType:P.INFO}):(0,d.jsxs)(`div`,{className:S.aiAssistantContainer,children:[(0,d.jsx)(Jc,{ref:x,messages:h,context:l}),(0,d.jsx)(`div`,{className:S.aiAssistantInputContainer,children:(0,d.jsx)(Bc,{context:l,value:g,onChange:k,placeholder:c,onSend:O,onAbort:E,theme:s,isRunning:y})})]})},Qc=({context:e,onChange:n,value:r,placeholder:i,onSend:a,theme:o,isRunning:s,onAbort:c})=>{let[l,f]=(0,u.useState)(r||``),[m,h]=(0,u.useState)(!1),g=(0,u.useRef)(null),_=t.n(),[v,y]=(0,u.useState)({top:0,left:0}),[b,x]=(0,u.useState)([]),S=(0,u.useRef)({}),C=zc(),{warn:w,error:T}=L();u.default.useEffect(()=>{g.current?.focus(),f(r||``)},[r]);let E=async t=>{if(S.current[t])return S.current[t];if(!e?.graphClient)return w(`Graph client not available`),[];try{let n=t&&t.length>0?`/users?$filter=startswith(displayName,'${t}')`:`/users?$orderby=displayName&$top=10`,r=(await e.graphClient.get(n))?.value||[],i=e.pageContext?.web?.absoluteUrl||``;return r.forEach(e=>{i?e.avatar=`${i}/_layouts/15/userphoto.aspx?size=S&accountname=${e.mail}`:e.avatar=`https://graph.microsoft.com/v1.0/users/${e.id}/photo/$value`}),S.current[t]=r,r}catch(e){return T(`Error fetching users from Graph:`,e instanceof Error?e:void 0),[]}},D=(0,u.useCallback)(Rt(async e=>{let t=await E(e);t.sort((e,t)=>e.displayName.localeCompare(t.displayName)),x(t),h(!0),setTimeout(()=>{g.current?.focus()},0)},300),[e]),O=async e=>{f(e),n&&n(e),g.current?.focus();let t=e.lastIndexOf(`@`);if(t!==-1&&(t===0||e[t-1]===` `)){await D(e.slice(t+1));let n=g.current;if(n){let e=(0,j.default)(n,t),r=n.getBoundingClientRect();y({top:r.top+e.top+22,left:r.left+e.left+16})}}else h(!1)},k=e=>{let t=l.replace(/@(\w*)$/,`@${e} `);f(t),n&&n(t),h(!1),x([]),g.current?.focus()},A=(0,u.useCallback)(({users:e})=>(0,d.jsxs)(`div`,{className:C.listContainer,children:[e.length===0&&(0,d.jsx)(p.Caption1,{children:_.noUsersFound}),e.map(e=>(0,d.jsx)(p.Card,{size:`small`,appearance:`subtle`,onMouseDown:e=>e.preventDefault(),onClick:()=>k(e.mail),children:(0,d.jsx)(p.Persona,{name:e.displayName,role:`gridcell`,secondaryText:e.mail,avatar:{image:{src:e.avatar}}})},e.id))]}),[C.listContainer,k]);return(0,d.jsxs)(H,{horizontal:!0,width:`100%`,className:C.inputContainer,children:[(0,d.jsx)(Fc,{ref:g,onSend:a,value:l,onChange:O,theme:o,placeholder:i,isRunning:s,onAbort:c}),(0,d.jsxs)(jn,{theme:o,anchorPoint:v,isOpen:m,onClose:()=>h(!1),excludeRefs:[g],children:[(0,d.jsx)(p.CardHeader,{header:(0,d.jsx)(p.Body1Strong,{className:C.sugestionsHeader,children:`Sugestions`})}),(0,d.jsx)(p.Divider,{}),(0,d.jsx)(A,{users:b})]})]})},$c=()=>({inputContainer:(0,_.css)({marginTop:`auto`,marginLeft:`auto`,"::after":{content:`""`,position:`absolute`,bottom:0,left:0,right:0,borderBottom:`2px solid transparent`,pointerEvents:`none`,borderRadius:p.tokens.borderRadiusMedium}}),listContainer:(0,_.css)({maxHeight:`400px`,overflowY:`auto`,overflowX:`hidden`,"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),sugestionsHeader:(0,_.css)({color:p.tokens.colorBrandBackground})}),el=`comm`,tl=`rule`,nl=`decl`,rl=`@import`,il=`@namespace`,al=`@keyframes`,ol=`@layer`,sl=Math.abs,cl=String.fromCharCode;function ll(e){return e.trim()}function ul(e,t,n){return e.replace(t,n)}function dl(e,t,n){return e.indexOf(t,n)}function fl(e,t){return e.charCodeAt(t)|0}function pl(e,t,n){return e.slice(t,n)}function ml(e){return e.length}function hl(e){return e.length}function gl(e,t){return t.push(e),e}var _l=1,vl=1,yl=0,bl=0,$=0,xl=``;function Sl(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:_l,column:vl,length:o,return:``,siblings:s}}function Cl(){return $}function wl(){return $=bl>0?fl(xl,--bl):0,vl--,$===10&&(vl=1,_l--),$}function Tl(){return $=bl<yl?fl(xl,bl++):0,vl++,$===10&&(vl=1,_l++),$}function El(){return fl(xl,bl)}function Dl(){return bl}function Ol(e,t){return pl(xl,e,t)}function kl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Al(e){return _l=vl=1,yl=ml(xl=e),bl=0,[]}function jl(e){return xl=``,e}function Ml(e){return ll(Ol(bl-1,Fl(e===91?e+2:e===40?e+1:e)))}function Nl(e){for(;($=El())&&$<33;)Tl();return kl(e)>2||kl($)>3?``:` `}function Pl(e,t){for(;--t&&Tl()&&!($<48||$>102||$>57&&$<65||$>70&&$<97););return Ol(e,Dl()+(t<6&&El()==32&&Tl()==32))}function Fl(e){for(;Tl();)switch($){case e:return bl;case 34:case 39:e!==34&&e!==39&&Fl($);break;case 40:e===41&&Fl(e);break;case 92:Tl();break}return bl}function Il(e,t){for(;Tl()&&e+$!==57&&!(e+$===84&&El()===47););return`/*`+Ol(t,bl-1)+`*`+cl(e===47?e:Tl())}function Ll(e){for(;!kl(El());)Tl();return Ol(e,bl)}function Rl(e){return jl(zl(``,null,null,null,[``],e=Al(e),0,[0],e))}function zl(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=Tl()){case 40:if(m!=108&&fl(C,d-1)==58){dl(C+=ul(Ml(v),`&`,`&\f`),`&\f`,sl(l?s[l-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Ml(v);break;case 9:case 10:case 13:case 32:C+=Nl(m);break;case 92:C+=Pl(Dl()-1,7);continue;case 47:switch(El()){case 42:case 47:gl(Vl(Il(Tl(),Dl()),t,n,c),c),(kl(m||1)==5||kl(El()||1)==5)&&ml(C)&&pl(C,-1,void 0)!==` `&&(C+=` `);break;default:C+=`/`}break;case 123*h:s[l++]=ml(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=ul(C,/\f/g,``)),p>0&&(ml(C)-d||h===0&&m===47)&&gl(p>32?Hl(C+`;`,r,n,d-1,c):Hl(ul(C,` `,``)+`;`,r,n,d-2,c),c);break;case 59:C+=`;`;default:if(gl(S=Bl(C,t,n,l,u,i,s,y,b=[],x=[],d,a),a),v===123)if(u===0)zl(C,t,S,S,b,a,d,s,x);else{switch(f){case 99:if(fl(C,3)===110)break;case 108:if(fl(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?zl(e,S,S,r&&gl(Bl(e,S,S,0,0,i,s,y,i,b=[],d,x),x),i,x,d,s,r?b:x):zl(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+ml(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&wl()==125)continue}switch(C+=cl(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(ml(C)-1)*_,_=1;break;case 64:El()===45&&(C+=Ml(Tl())),f=El(),u=d=ml(y=C+=Ll(Dl())),v++;break;case 45:m===45&&ml(C)==2&&(h=0)}}return a}function Bl(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=hl(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=pl(e,f+1,f=sl(g=o[h])),b=e;v<m;++v)(b=ll(g>0?p[v]+` `+y:ul(y,/&\f/g,p[v])))&&(c[_++]=b);return Sl(e,t,n,i===0?tl:s,c,l,u,d)}function Vl(e,t,n,r){return Sl(e,t,n,el,cl(Cl()),pl(e,2,-2),0,r)}function Hl(e,t,n,r,i){return Sl(e,t,n,nl,pl(e,0,r),pl(e,r+1,-1),r,i)}function Ul(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function Wl(e,t,n,r){switch(e.type){case ol:if(e.children.length)break;case rl:case il:case nl:return e.return=e.return||e.value;case el:return``;case al:return e.return=e.value+`{`+Ul(e.children,r)+`}`;case tl:if(!ml(e.value=e.props.join(`,`)))return``}return ml(n=Ul(e.children,r))?e.return=e.value+`{`+n+`}`:``}var Gl=`c4`,Kl={id:Gl,detector:n.h(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./c4Diagram-IC4MRINW-ZFE2cGZP.cjs`));return{id:Gl,diagram:e}},`loader`)},ql=`flowchart`,Jl={id:ql,detector:n.h((e,t)=>t?.flowchart?.defaultRenderer===`dagre-wrapper`||t?.flowchart?.defaultRenderer===`elk`?!1:/^\s*graph/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./flowDiagram-PKNHOUZH-7XJG07fo.cjs`));return{id:ql,diagram:e}},`loader`)},Yl=`flowchart-v2`,Xl={id:Yl,detector:n.h((e,t)=>t?.flowchart?.defaultRenderer===`dagre-d3`?!1:(t?.flowchart?.defaultRenderer===`elk`&&(t.layout=`elk`),/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer===`dagre-wrapper`?!0:/^\s*flowchart/.test(e)),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./flowDiagram-PKNHOUZH-7XJG07fo.cjs`));return{id:Yl,diagram:e}},`loader`)},Zl=`er`,Ql={id:Zl,detector:n.h(e=>/^\s*erDiagram/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./erDiagram-INFDFZHY-CDt3mOSU.cjs`));return{id:Zl,diagram:e}},`loader`)},$l=`gitGraph`,eu={id:$l,detector:n.h(e=>/^\s*gitGraph/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./gitGraphDiagram-K3NZZRJ6-Dt4D-ig1.cjs`));return{id:$l,diagram:e}},`loader`)},tu=`gantt`,nu={id:tu,detector:n.h(e=>/^\s*gantt/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./ganttDiagram-A5KZAMGK-Bbck1pyM.cjs`));return{id:tu,diagram:e}},`loader`)},ru=`info`,iu={id:ru,detector:n.h(e=>/^\s*info/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./infoDiagram-LFFYTUFH-Bp9btqnA.cjs`));return{id:ru,diagram:e}},`loader`)},au=`pie`,ou={id:au,detector:n.h(e=>/^\s*pie/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./pieDiagram-SKSYHLDU-Ba-c0fRA.cjs`));return{id:au,diagram:e}},`loader`)},su=`quadrantChart`,cu={id:su,detector:n.h(e=>/^\s*quadrantChart/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./quadrantDiagram-337W2JSQ-CQQEVC49.cjs`));return{id:su,diagram:e}},`loader`)},lu=`xychart`,uu={id:lu,detector:n.h(e=>/^\s*xychart(-beta)?/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./xychartDiagram-JWTSCODW-0qbVGrDs.cjs`));return{id:lu,diagram:e}},`loader`)},du=`requirement`,fu={id:du,detector:n.h(e=>/^\s*requirement(Diagram)?/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./requirementDiagram-Z7DCOOCP-CeMYhXEm.cjs`));return{id:du,diagram:e}},`loader`)},pu=`sequence`,mu={id:pu,detector:n.h(e=>/^\s*sequenceDiagram/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./sequenceDiagram-2WXFIKYE-B-zWyr9f.cjs`));return{id:pu,diagram:e}},`loader`)},hu=`class`,gu={id:hu,detector:n.h((e,t)=>t?.class?.defaultRenderer===`dagre-wrapper`?!1:/^\s*classDiagram/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./classDiagram-VBA2DB6C-Us0kuDfz.cjs`));return{id:hu,diagram:e}},`loader`)},_u=`classDiagram`,vu={id:_u,detector:n.h((e,t)=>/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer===`dagre-wrapper`?!0:/^\s*classDiagram-v2/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./classDiagram-v2-RAHNMMFH-BWsm3ea6.cjs`));return{id:_u,diagram:e}},`loader`)},yu=`state`,bu={id:yu,detector:n.h((e,t)=>t?.state?.defaultRenderer===`dagre-wrapper`?!1:/^\s*stateDiagram/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./stateDiagram-RAJIS63D-C1Aj8vJQ.cjs`));return{id:yu,diagram:e}},`loader`)},xu=`stateDiagram`,Su={id:xu,detector:n.h((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer===`dagre-wrapper`),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./stateDiagram-v2-FVOUBMTO-VoIE_KVn.cjs`));return{id:xu,diagram:e}},`loader`)},Cu=`journey`,wu={id:Cu,detector:n.h(e=>/^\s*journey/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./journeyDiagram-4ABVD52K-Cv0DbLMi.cjs`));return{id:Cu,diagram:e}},`loader`)},Tu={draw:n.h((e,t,i)=>{n.g.debug(`rendering svg for syntax error
349
349
  `);let o=a.t(t),s=o.append(`g`);o.attr(`viewBox`,`0 0 2412 512`),r.c(o,100,512,!0),s.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z`),s.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z`),s.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z`),s.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z`),s.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z`),s.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z`),s.append(`text`).attr(`class`,`error-text`).attr(`x`,1440).attr(`y`,250).attr(`font-size`,`150px`).style(`text-anchor`,`middle`).text(`Syntax error in text`),s.append(`text`).attr(`class`,`error-text`).attr(`x`,1250).attr(`y`,400).attr(`font-size`,`100px`).style(`text-anchor`,`middle`).text(`mermaid version ${i}`)},`draw`)},Eu=Tu,Du={db:{},renderer:Tu,parser:{parse:n.h(()=>{},`parse`)}},Ou=`flowchart-elk`,ku={id:Ou,detector:n.h((e,t={})=>/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer===`elk`?(t.layout=`elk`,!0):!1,`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./flowDiagram-PKNHOUZH-7XJG07fo.cjs`));return{id:Ou,diagram:e}},`loader`)},Au=`timeline`,ju={id:Au,detector:n.h(e=>/^\s*timeline/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./timeline-definition-YZTLITO2-D8aFfnYE.cjs`));return{id:Au,diagram:e}},`loader`)},Mu=`mindmap`,Nu={id:Mu,detector:n.h(e=>/^\s*mindmap/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./mindmap-definition-YRQLILUH-zWN_YXC3.cjs`));return{id:Mu,diagram:e}},`loader`)},Pu=`kanban`,Fu={id:Pu,detector:n.h(e=>/^\s*kanban/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./kanban-definition-K7BYSVSG-BdQLAMeB.cjs`));return{id:Pu,diagram:e}},`loader`)},Iu=`sankey`,Lu={id:Iu,detector:n.h(e=>/^\s*sankey(-beta)?/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./sankeyDiagram-WA2Y5GQK-DDfjtQ4G.cjs`));return{id:Iu,diagram:e}},`loader`)},Ru=`packet`,zu={id:Ru,detector:n.h(e=>/^\s*packet(-beta)?/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./diagram-P4PSJMXO-k7F0lH6Q.cjs`));return{id:Ru,diagram:e}},`loader`)},Bu=`radar`,Vu={id:Bu,detector:n.h(e=>/^\s*radar-beta/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./diagram-IFDJBPK2-CriVAAmI.cjs`));return{id:Bu,diagram:e}},`loader`)},Hu=`block`,Uu={id:Hu,detector:n.h(e=>/^\s*block(-beta)?/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./blockDiagram-WCTKOSBZ-Dl04FBAy.cjs`));return{id:Hu,diagram:e}},`loader`)},Wu=`architecture`,Gu={id:Wu,detector:n.h(e=>/^\s*architecture/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./architectureDiagram-2XIMDMQ5-DFEvJNx1.cjs`));return{id:Wu,diagram:e}},`loader`)},Ku=`ishikawa`,qu={id:Ku,detector:n.h(e=>/^\s*ishikawa(-beta)?\b/i.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./ishikawaDiagram-PHBUUO56-DmqObwMZ.cjs`));return{id:Ku,diagram:e}},`loader`)},Ju=`venn`,Yu={id:Ju,detector:n.h(e=>/^\s*venn-beta/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./vennDiagram-LZ73GAT5-DvnB0e7u.cjs`));return{id:Ju,diagram:e}},`loader`)},Xu=`treemap`,Zu={id:Xu,detector:n.h(e=>/^\s*treemap/.test(e),`detector`),loader:n.h(async()=>{let{diagram:e}=await Promise.resolve().then(()=>require(`./diagram-E7M64L7V-dXqTi77U.cjs`));return{id:Xu,diagram:e}},`loader`)},Qu=!1,$u=n.h(()=>{Qu||(Qu=!0,r.M(`error`,Du,e=>e.toLowerCase().trim()===`error`),r.M(`---`,{db:{clear:n.h(()=>{},`clear`)},styles:{},renderer:{draw:n.h(()=>{},`draw`)},parser:{parse:n.h(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},`parse`)},init:n.h(()=>null,`init`)},e=>e.toLowerCase().trimStart().startsWith(`---`)),r.N(ku,Nu,Gu),r.N(Kl,Fu,vu,gu,Ql,nu,iu,ou,fu,mu,Xl,Jl,ju,eu,Su,bu,wu,cu,Lu,zu,uu,Uu,Vu,qu,Zu,Yu))},`addDiagrams`),ed=n.h(async()=>{n.g.debug(`Loading registered diagrams`);let e=(await Promise.allSettled(Object.entries(r.p).map(async([e,{detector:t,loader:i}])=>{if(i)try{r.x(e)}catch{try{let{diagram:e,id:n}=await i();r.M(n,e,t)}catch(t){throw n.g.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete r.p[e],t}}}))).filter(e=>e.status===`rejected`);if(e.length>0){n.g.error(`Failed to load ${e.length} external diagrams`);for(let t of e)n.g.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},`loadRegisteredDiagrams`),td=`graphics-document document`;function nd(e,t){e.attr(`role`,td),t!==``&&e.attr(`aria-roledescription`,t)}n.h(nd,`setA11yDiagramInfo`);function rd(e,t,n,r){if(e.insert!==void 0){if(n){let t=`chart-desc-${r}`;e.attr(`aria-describedby`,t),e.insert(`desc`,`:first-child`).attr(`id`,t).text(n)}if(t){let n=`chart-title-${r}`;e.attr(`aria-labelledby`,n),e.insert(`title`,`:first-child`).attr(`id`,n).text(t)}}}n.h(rd,`addSVGa11yTitleDescription`);var id=class e{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static{n.h(this,`Diagram`)}static async fromText(t,n={}){let a=r.y(),o=r.f(t,a);t=i.a(t)+`
350
350
  `;try{r.x(o)}catch{let e=r.S(o);if(!e)throw new r.t(`Diagram ${o} not found.`);let{id:t,diagram:n}=await e();r.M(t,n)}let{db:s,parser:c,renderer:l,init:u}=r.x(o);return c.parser&&(c.parser.yy=s),s.clear?.(),u?.(a),n.title&&s.setDiagramTitle?.(n.title),await c.parse(t),new e(o,t,s,c,l)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},ad=[],od=n.h(()=>{ad.forEach(e=>{e()}),ad=[]},`attachFunctions`),sd=n.h(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,``).trimStart(),`cleanupComments`);function cd(e){let t=e.match(r.g);if(!t)return{text:e,metadata:{}};let n=o.n(t[1],{schema:o.t})??{};n=typeof n==`object`&&!Array.isArray(n)?n:{};let i={};return n.displayMode&&(i.displayMode=n.displayMode.toString()),n.title&&(i.title=n.title.toString()),n.config&&(i.config=n.config),{text:e.slice(t[0].length),metadata:i}}n.h(cd,`extractFrontMatter`);var ld=n.h(e=>e.replace(/\r\n?/g,`
351
351
  `).replace(/<(\w+)([^>]*)>/g,(e,t,n)=>`<`+t+n.replace(/="([^"]*)"/g,`='$1'`)+`>`),`cleanupText`),ud=n.h(e=>{let{text:t,metadata:n}=cd(e),{displayMode:r,title:i,config:a={}}=n;return r&&(a.gantt||={},a.gantt.displayMode=r),{title:i,config:a,text:t}},`processFrontmatter`),dd=n.h(e=>{let t=i.h.detectInit(e)??{},n=i.h.detectDirective(e,`wrap`);return Array.isArray(n)?t.wrap=n.some(({type:e})=>e===`wrap`):n?.type===`wrap`&&(t.wrap=!0),{text:i.m(e),directive:t}},`processDirectives`);function fd(e){let t=ud(ld(e)),n=dd(t.text),r=i.r(t.config,n.directive);return e=sd(n.text),{code:e,title:t.title,config:r}}n.h(fd,`preprocessDiagram`);function pd(e){let t=new TextEncoder().encode(e),n=Array.from(t,e=>String.fromCodePoint(e)).join(``);return btoa(n)}n.h(pd,`toBase64`);var md=5e4,hd=`graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa`,gd=`sandbox`,_d=`loose`,vd=`http://www.w3.org/2000/svg`,yd=`http://www.w3.org/1999/xlink`,bd=`http://www.w3.org/1999/xhtml`,xd=`100%`,Sd=`100%`,Cd=`border:0;margin:0;`,wd=`margin:0`,Td=`allow-top-navigation-by-user-activation allow-popups`,Ed=`The "iframe" tag is not supported by your browser.`,Dd=[`foreignobject`],Od=[`dominant-baseline`];function kd(e){let t=fd(e);return r.F(),r.n(t.config??{}),t}n.h(kd,`processAndSetConfigs`);async function Ad(e,t){$u();try{let{code:t,config:n}=kd(e);return{diagramType:(await Vd(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}}n.h(Ad,`parse`);var jd=n.h((e,t,n=[])=>`
@@ -354,7 +354,7 @@ ${e.themeCSS}`),e.fontFamily!==void 0&&(n+=`
354
354
  :root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(n+=`
355
355
  :root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){let i=r.w(e)?[`> *`,`span`]:[`rect`,`polygon`,`ellipse`,`circle`,`path`];t.forEach(e=>{l.t(e.styles)||i.forEach(t=>{n+=jd(e.id,t,e.styles)}),l.t(e.textStyles)||(n+=jd(e.id,`tspan`,(e?.textStyles||[]).map(e=>e.replace(`color`,`fill`))))})}return n},`createCssStyles`),Nd=n.h((e,t,n,i)=>Ul(Rl(`${i}{${r.J(t,Md(e,n),e.themeVariables)}}`),Wl),`createUserStyles`),Pd=n.h((e=``,t,n)=>{let r=e;return!n&&!t&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,`marker-end="url(#`)),r=i.i(r),r=r.replace(/<br>/g,`<br/>`),r},`cleanUpSvgCode`),Fd=n.h((e=``,t)=>`<iframe style="width:${xd};height:${t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+`px`:Sd};${Cd}" src="data:text/html;charset=UTF-8;base64,${pd(`<body style="${wd}">${e}</body>`)}" sandbox="${Td}">
356
356
  ${Ed}
357
- </iframe>`,`putIntoIFrame`),Id=n.h((e,t,n,r,i)=>{let a=e.append(`div`);a.attr(`id`,n),r&&a.attr(`style`,r);let o=a.append(`svg`).attr(`id`,t).attr(`width`,`100%`).attr(`xmlns`,vd);return i&&o.attr(`xmlns:xlink`,i),o.append(`g`),e},`appendDivSvgG`);function Ld(e,t){return e.append(`iframe`).attr(`id`,t).attr(`style`,`width: 100%; height: 100%;`).attr(`sandbox`,``)}n.h(Ld,`sandboxedIframe`);var Rd=n.h((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},`removeExistingElements`),zd=n.h(async function(e,t,i){$u();let a=kd(t);t=a.code;let o=r.y();n.g.debug(o),t.length>(o?.maxTextSize??md)&&(t=hd);let s=`#`+e,c=`i`+e,l=`#`+c,u=`d`+e,d=`#`+u,f=n.h(()=>{let e=n.p(m?l:d).node();e&&`remove`in e&&e.remove()},`removeTempElements`),p=n.p(`body`),m=o.securityLevel===gd,h=o.securityLevel===_d,g=o.fontFamily;i===void 0?(Rd(document,e,u,c),m?(p=n.p(Ld(n.p(`body`),c).nodes()[0].contentDocument.body),p.node().style.margin=0):p=n.p(`body`),Id(p,e,u)):(i&&(i.innerHTML=``),m?(p=n.p(Ld(n.p(i),c).nodes()[0].contentDocument.body),p.node().style.margin=0):p=n.p(i),Id(p,e,u,`font-family: ${g}`,yd));let _,v;try{_=await id.fromText(t,{title:a.title})}catch(e){if(o.suppressErrorRendering)throw f(),e;_=await id.fromText(`error`),v=e}let y=p.select(d).node(),b=_.type,x=y.firstChild,S=x.firstChild,C=_.renderer.getClasses?.(t,_),w=Nd(o,b,C,s),T=document.createElement(`style`);T.innerHTML=w,x.insertBefore(T,S);try{await _.renderer.draw(t,e,`11.13.0`,_)}catch(n){throw o.suppressErrorRendering?f():Eu.draw(t,e,`11.13.0`),n}let E=p.select(`${d} svg`),D=_.db.getAccTitle?.(),O=_.db.getAccDescription?.();Hd(b,E,D,O),p.select(`[id="${e}"]`).selectAll(`foreignobject > *`).attr(`xmlns`,bd);let k=p.select(d).node().innerHTML;if(n.g.debug(`config.arrowMarkerAbsolute`,o.arrowMarkerAbsolute),k=Pd(k,m,r.h(o.arrowMarkerAbsolute)),m){let e=p.select(d+` svg`).node();k=Fd(k,e)}else h||(k=r.Z.sanitize(k,{ADD_TAGS:Dd,ADD_ATTR:Od,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(od(),v)throw v;return f(),{diagramType:b,svg:k,bindFunctions:_.db.bindFunctions}},`render`);function Bd(e={}){let t=r.r({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||={},t.themeVariables.fontFamily=t.fontFamily),r.z(t),t?.theme&&t.theme in r.Y?t.themeVariables=r.Y[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=r.Y.default.getThemeVariables(t.themeVariables)),n._((typeof t==`object`?r.G(t):r.T()).logLevel),$u()}n.h(Bd,`initialize`);var Vd=n.h((e,t={})=>{let{code:n}=fd(e);return id.fromText(n,t)},`getDiagramFromText`);function Hd(e,t,n,r){nd(t,e),rd(t,n,r,t.attr(`id`))}n.h(Hd,`addA11yInfo`);var Ud=Object.freeze({render:zd,parse:Ad,getDiagramFromText:Vd,initialize:Bd,getConfig:r.y,setConfig:r.H,getSiteConfig:r.T,updateSiteConfig:r.X,reset:n.h(()=>{r.F()},`reset`),globalReset:n.h(()=>{r.F(r.l)},`globalReset`),defaultConfig:r.l});n._(r.y().logLevel),r.F(r.y());var Wd=n.h((e,t,r)=>{n.g.warn(e),i.d(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},`handleError`),Gd=n.h(async function(e={querySelector:`.mermaid`}){try{await Kd(e)}catch(t){if(i.d(t)&&n.g.error(t.str),rf.parseError&&rf.parseError(t),!e.suppressErrors)throw n.g.error(`Use the suppressErrors option to suppress these errors`),t}},`run`),Kd=n.h(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:`.mermaid`}){let a=Ud.getConfig();n.g.debug(`${e?``:`No `}Callback function found`);let o;if(r)o=r;else if(t)o=document.querySelectorAll(t);else throw Error(`Nodes and querySelector are both undefined`);n.g.debug(`Found ${o.length} diagrams`),a?.startOnLoad!==void 0&&(n.g.debug(`Start On Load: `+a?.startOnLoad),Ud.updateSiteConfig({startOnLoad:a?.startOnLoad}));let c=new i.h.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed),l,u=[];for(let t of Array.from(o)){if(n.g.info(`Rendering diagram: `+t.id),t.getAttribute(`data-processed`))continue;t.setAttribute(`data-processed`,`true`);let r=`mermaid-${c.next()}`;l=t.innerHTML,l=s.o(i.h.entityDecode(l)).trim().replace(/<br\s*\/?>/gi,`<br/>`);let a=i.h.detectInit(l);a&&n.g.debug(`Detected early reinit: `,a);try{let{svg:n,bindFunctions:i}=await nf(r,l,t);t.innerHTML=n,e&&await e(r),i&&i(t)}catch(e){Wd(e,u,rf.parseError)}}if(u.length>0)throw u[0]},`runThrowsErrors`),qd=n.h(function(e){Ud.initialize(e)},`initialize`),Jd=n.h(async function(e,t,r){n.g.warn(`mermaid.init is deprecated. Please use run instead.`),e&&qd(e);let i={postRenderCallback:r,querySelector:`.mermaid`};typeof t==`string`?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await Gd(i)},`init`),Yd=n.h(async(e,{lazyLoad:t=!0}={})=>{$u(),r.N(...e),t===!1&&await ed()},`registerExternalDiagrams`),Xd=n.h(function(){if(rf.startOnLoad){let{startOnLoad:e}=Ud.getConfig();e&&rf.run().catch(e=>n.g.error(`Mermaid failed to initialize`,e))}},`contentLoaded`);typeof document<`u`&&window.addEventListener(`load`,Xd,!1);var Zd=n.h(function(e){rf.parseError=e},`setParseErrorHandler`),Qd=[],$d=!1,ef=n.h(async()=>{if(!$d){for($d=!0;Qd.length>0;){let e=Qd.shift();if(e)try{await e()}catch(e){n.g.error(`Error executing queue`,e)}}$d=!1}},`executeQueue`),tf=n.h(async(e,t)=>new Promise((r,i)=>{let a=n.h(()=>new Promise((a,o)=>{Ud.parse(e,t).then(e=>{a(e),r(e)},e=>{n.g.error(`Error parsing`,e),rf.parseError?.(e),o(e),i(e)})}),`performCall`);Qd.push(a),ef().catch(i)}),`parse`),nf=n.h((e,t,r)=>new Promise((i,a)=>{let o=n.h(()=>new Promise((o,s)=>{Ud.render(e,t,r).then(e=>{o(e),i(e)},e=>{n.g.error(`Error parsing`,e),rf.parseError?.(e),s(e),a(e)})}),`performCall`);Qd.push(o),ef().catch(a)}),`render`),rf={startOnLoad:!0,mermaidAPI:Ud,parse:tf,render:nf,init:Jd,run:Gd,registerExternalDiagrams:Yd,registerLayoutLoaders:c.n,initialize:qd,parseError:void 0,contentLoaded:Xd,setParseErrorHandler:Zd,detectType:r.f,registerIconPacks:s.i,getRegisteredDiagramsMetadata:n.h(()=>Object.keys(r.p).map(e=>({id:e})),`getRegisteredDiagramsMetadata`)},af=rf,of=e=>{let{width:t,height:n,zoomable:r=!1}=e;return{root:(0,_.css)({position:`relative`,borderRadius:p.tokens.borderRadiusMedium,border:`1px solid ${p.tokens.colorNeutralStroke2}`,width:t??`100%`,height:n??`auto`,...r?{cursor:`grab`}:{}}),svgContainer:(0,_.css)({width:`100%`}),loading:(0,_.css)({color:p.tokens.colorNeutralForeground3,fontFamily:p.tokens.fontFamilyBase,fontSize:p.tokens.fontSizeBase300})}},sf=0,cf=e=>{let[t,n]=u.useState(!1);return u.useEffect(()=>{let t=e.current;if(!t)return;let r=getComputedStyle(t).getPropertyValue(`--colorNeutralBackground1`).trim();if(r&&r.startsWith(`#`)&&r.length>=7){let e=parseInt(r.substring(1,3),16),t=parseInt(r.substring(3,5),16),i=parseInt(r.substring(5,7),16);n(.299*e+.587*t+.114*i<128)}}),t},lf=e=>{let{source:n,url:r,theme:i,backgroundColor:a,className:o,styles:s,zoomable:c=!1,onRendered:l,onError:f,loadingContent:m,errorContent:h}=e,g=of(e),_=u.useRef(null),v=u.useRef(null),y=cf(_),b=i??(y?`dark`:`default`),[x,S]=u.useState(null),[C,w]=u.useState(null),[T,E]=u.useState(!1),[D,O]=u.useState(null),{loading:k,errorMessage:A,noSource:j}=t.m();u.useEffect(()=>{if(n){O(n),w(null);return}if(r){let e=!1;return E(!0),w(null),fetch(r).then(e=>{if(!e.ok)throw Error(`Failed to fetch ${r}: ${e.status} ${e.statusText}`);return e.text()}).then(t=>{e||(O(t),E(!1))}).catch(t=>{if(!e){let e=t instanceof Error?t:Error(String(t));w(e),E(!1),f?.(e)}}),()=>{e=!0}}O(null)},[n,r,f]),u.useEffect(()=>{if(!D){S(null);return}let e=!1,t=`mermaid-diagram-${++sf}`;return af.initialize({startOnLoad:!1,theme:b,securityLevel:`loose`,fontFamily:p.tokens.fontFamilyBase,suppressErrorRendering:!0}),af.render(t,D).then(({svg:t})=>{e||(S(t),w(null),l?.(t))}).catch(n=>{if(!e){let e=n instanceof Error?n:Error(String(n));w(e),S(null),f?.(e)}document.getElementById(t)?.remove()}),()=>{e=!0,document.getElementById(t)?.remove()}},[D,b,l,f]);let[M,N]=u.useState(1),[P,ee]=u.useState({x:0,y:0}),te=u.useRef(!1),I=u.useRef({x:0,y:0});u.useEffect(()=>{let e=_.current;if(!e||!c)return;let t=e=>{e.preventDefault();let t=e.deltaY>0?-.1:.1;N(e=>Math.min(Math.max(e+t,.25),4))},n=e=>{te.current=!0,I.current={x:e.clientX,y:e.clientY}},r=e=>{if(!te.current)return;let t=e.clientX-I.current.x,n=e.clientY-I.current.y;I.current={x:e.clientX,y:e.clientY},ee(e=>({x:e.x+t,y:e.y+n}))},i=()=>{te.current=!1};return e.addEventListener(`wheel`,t,{passive:!1}),e.addEventListener(`mousedown`,n),e.addEventListener(`mousemove`,r),e.addEventListener(`mouseup`,i),e.addEventListener(`mouseleave`,i),()=>{e.removeEventListener(`wheel`,t),e.removeEventListener(`mousedown`,n),e.removeEventListener(`mousemove`,r),e.removeEventListener(`mouseup`,i),e.removeEventListener(`mouseleave`,i)}},[c]),u.useEffect(()=>{N(1),ee({x:0,y:0})},[D]),u.useEffect(()=>{let e=v.current;e&&(e.innerHTML=x??``)},[x]);let L=[g.root,o].filter(Boolean).join(` `);if(T)return(0,d.jsx)(W,{className:L,style:s,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,background:a,children:(0,d.jsx)(W,{className:g.loading,alignItems:`center`,justifyContent:`center`,padding:`xxl`,children:m??(0,d.jsx)(Fn,{size:`small`,label:k})})});if(C)return(0,d.jsx)(W,{className:L,style:s,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,background:a,children:h?h(C):(0,d.jsx)(go,{message:A,messageType:F.ERROR})});if(!x)return(0,d.jsx)(W,{className:L,style:s,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,background:a,children:(0,d.jsx)(W,{className:g.loading,alignItems:`center`,justifyContent:`center`,padding:`xxl`,children:(0,d.jsx)(p.Text,{children:j})})});let ne=c?{transform:`translate(${P.x}px, ${P.y}px) scale(${M})`,transformOrigin:`center center`}:void 0;return(0,d.jsx)(W,{ref:_,className:L,style:s,alignItems:`center`,justifyContent:`center`,overflow:c?`auto`:`hidden`,background:a,children:(0,d.jsx)(W,{ref:v,className:g.svgContainer,alignItems:`center`,justifyContent:`center`,style:ne,children:(0,d.jsx)(d.Fragment,{})})})},uf=e=>{let{template:t}=e;return(0,d.jsx)(d.Fragment,{children:t})},df=()=>({toolbar:_.css`
357
+ </iframe>`,`putIntoIFrame`),Id=n.h((e,t,n,r,i)=>{let a=e.append(`div`);a.attr(`id`,n),r&&a.attr(`style`,r);let o=a.append(`svg`).attr(`id`,t).attr(`width`,`100%`).attr(`xmlns`,vd);return i&&o.attr(`xmlns:xlink`,i),o.append(`g`),e},`appendDivSvgG`);function Ld(e,t){return e.append(`iframe`).attr(`id`,t).attr(`style`,`width: 100%; height: 100%;`).attr(`sandbox`,``)}n.h(Ld,`sandboxedIframe`);var Rd=n.h((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},`removeExistingElements`),zd=n.h(async function(e,t,i){$u();let a=kd(t);t=a.code;let o=r.y();n.g.debug(o),t.length>(o?.maxTextSize??md)&&(t=hd);let s=`#`+e,c=`i`+e,l=`#`+c,u=`d`+e,d=`#`+u,f=n.h(()=>{let e=n.p(m?l:d).node();e&&`remove`in e&&e.remove()},`removeTempElements`),p=n.p(`body`),m=o.securityLevel===gd,h=o.securityLevel===_d,g=o.fontFamily;i===void 0?(Rd(document,e,u,c),m?(p=n.p(Ld(n.p(`body`),c).nodes()[0].contentDocument.body),p.node().style.margin=0):p=n.p(`body`),Id(p,e,u)):(i&&(i.innerHTML=``),m?(p=n.p(Ld(n.p(i),c).nodes()[0].contentDocument.body),p.node().style.margin=0):p=n.p(i),Id(p,e,u,`font-family: ${g}`,yd));let _,v;try{_=await id.fromText(t,{title:a.title})}catch(e){if(o.suppressErrorRendering)throw f(),e;_=await id.fromText(`error`),v=e}let y=p.select(d).node(),b=_.type,x=y.firstChild,S=x.firstChild,C=_.renderer.getClasses?.(t,_),w=Nd(o,b,C,s),T=document.createElement(`style`);T.innerHTML=w,x.insertBefore(T,S);try{await _.renderer.draw(t,e,`11.13.0`,_)}catch(n){throw o.suppressErrorRendering?f():Eu.draw(t,e,`11.13.0`),n}let E=p.select(`${d} svg`),D=_.db.getAccTitle?.(),O=_.db.getAccDescription?.();Hd(b,E,D,O),p.select(`[id="${e}"]`).selectAll(`foreignobject > *`).attr(`xmlns`,bd);let k=p.select(d).node().innerHTML;if(n.g.debug(`config.arrowMarkerAbsolute`,o.arrowMarkerAbsolute),k=Pd(k,m,r.h(o.arrowMarkerAbsolute)),m){let e=p.select(d+` svg`).node();k=Fd(k,e)}else h||(k=r.Z.sanitize(k,{ADD_TAGS:Dd,ADD_ATTR:Od,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(od(),v)throw v;return f(),{diagramType:b,svg:k,bindFunctions:_.db.bindFunctions}},`render`);function Bd(e={}){let t=r.r({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||={},t.themeVariables.fontFamily=t.fontFamily),r.z(t),t?.theme&&t.theme in r.Y?t.themeVariables=r.Y[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=r.Y.default.getThemeVariables(t.themeVariables)),n._((typeof t==`object`?r.G(t):r.T()).logLevel),$u()}n.h(Bd,`initialize`);var Vd=n.h((e,t={})=>{let{code:n}=fd(e);return id.fromText(n,t)},`getDiagramFromText`);function Hd(e,t,n,r){nd(t,e),rd(t,n,r,t.attr(`id`))}n.h(Hd,`addA11yInfo`);var Ud=Object.freeze({render:zd,parse:Ad,getDiagramFromText:Vd,initialize:Bd,getConfig:r.y,setConfig:r.H,getSiteConfig:r.T,updateSiteConfig:r.X,reset:n.h(()=>{r.F()},`reset`),globalReset:n.h(()=>{r.F(r.l)},`globalReset`),defaultConfig:r.l});n._(r.y().logLevel),r.F(r.y());var Wd=n.h((e,t,r)=>{n.g.warn(e),i.d(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},`handleError`),Gd=n.h(async function(e={querySelector:`.mermaid`}){try{await Kd(e)}catch(t){if(i.d(t)&&n.g.error(t.str),rf.parseError&&rf.parseError(t),!e.suppressErrors)throw n.g.error(`Use the suppressErrors option to suppress these errors`),t}},`run`),Kd=n.h(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:`.mermaid`}){let a=Ud.getConfig();n.g.debug(`${e?``:`No `}Callback function found`);let o;if(r)o=r;else if(t)o=document.querySelectorAll(t);else throw Error(`Nodes and querySelector are both undefined`);n.g.debug(`Found ${o.length} diagrams`),a?.startOnLoad!==void 0&&(n.g.debug(`Start On Load: `+a?.startOnLoad),Ud.updateSiteConfig({startOnLoad:a?.startOnLoad}));let c=new i.h.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed),l,u=[];for(let t of Array.from(o)){if(n.g.info(`Rendering diagram: `+t.id),t.getAttribute(`data-processed`))continue;t.setAttribute(`data-processed`,`true`);let r=`mermaid-${c.next()}`;l=t.innerHTML,l=s.o(i.h.entityDecode(l)).trim().replace(/<br\s*\/?>/gi,`<br/>`);let a=i.h.detectInit(l);a&&n.g.debug(`Detected early reinit: `,a);try{let{svg:n,bindFunctions:i}=await nf(r,l,t);t.innerHTML=n,e&&await e(r),i&&i(t)}catch(e){Wd(e,u,rf.parseError)}}if(u.length>0)throw u[0]},`runThrowsErrors`),qd=n.h(function(e){Ud.initialize(e)},`initialize`),Jd=n.h(async function(e,t,r){n.g.warn(`mermaid.init is deprecated. Please use run instead.`),e&&qd(e);let i={postRenderCallback:r,querySelector:`.mermaid`};typeof t==`string`?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await Gd(i)},`init`),Yd=n.h(async(e,{lazyLoad:t=!0}={})=>{$u(),r.N(...e),t===!1&&await ed()},`registerExternalDiagrams`),Xd=n.h(function(){if(rf.startOnLoad){let{startOnLoad:e}=Ud.getConfig();e&&rf.run().catch(e=>n.g.error(`Mermaid failed to initialize`,e))}},`contentLoaded`);typeof document<`u`&&window.addEventListener(`load`,Xd,!1);var Zd=n.h(function(e){rf.parseError=e},`setParseErrorHandler`),Qd=[],$d=!1,ef=n.h(async()=>{if(!$d){for($d=!0;Qd.length>0;){let e=Qd.shift();if(e)try{await e()}catch(e){n.g.error(`Error executing queue`,e)}}$d=!1}},`executeQueue`),tf=n.h(async(e,t)=>new Promise((r,i)=>{let a=n.h(()=>new Promise((a,o)=>{Ud.parse(e,t).then(e=>{a(e),r(e)},e=>{n.g.error(`Error parsing`,e),rf.parseError?.(e),o(e),i(e)})}),`performCall`);Qd.push(a),ef().catch(i)}),`parse`),nf=n.h((e,t,r)=>new Promise((i,a)=>{let o=n.h(()=>new Promise((o,s)=>{Ud.render(e,t,r).then(e=>{o(e),i(e)},e=>{n.g.error(`Error parsing`,e),rf.parseError?.(e),s(e),a(e)})}),`performCall`);Qd.push(o),ef().catch(a)}),`render`),rf={startOnLoad:!0,mermaidAPI:Ud,parse:tf,render:nf,init:Jd,run:Gd,registerExternalDiagrams:Yd,registerLayoutLoaders:c.n,initialize:qd,parseError:void 0,contentLoaded:Xd,setParseErrorHandler:Zd,detectType:r.f,registerIconPacks:s.i,getRegisteredDiagramsMetadata:n.h(()=>Object.keys(r.p).map(e=>({id:e})),`getRegisteredDiagramsMetadata`)},af=rf,of=e=>{let{width:t,height:n,zoomable:r=!1}=e;return{root:(0,_.css)({position:`relative`,borderRadius:p.tokens.borderRadiusMedium,border:`1px solid ${p.tokens.colorNeutralStroke2}`,width:t??`100%`,height:n??`auto`,...r?{cursor:`grab`}:{}}),svgContainer:(0,_.css)({width:`100%`}),loading:(0,_.css)({color:p.tokens.colorNeutralForeground3,fontFamily:p.tokens.fontFamilyBase,fontSize:p.tokens.fontSizeBase300})}},sf=0,cf=e=>{let[t,n]=u.useState(!1);return u.useEffect(()=>{let t=e.current;if(!t)return;let r=getComputedStyle(t).getPropertyValue(`--colorNeutralBackground1`).trim();if(r&&r.startsWith(`#`)&&r.length>=7){let e=parseInt(r.substring(1,3),16),t=parseInt(r.substring(3,5),16),i=parseInt(r.substring(5,7),16);n(.299*e+.587*t+.114*i<128)}}),t},lf=e=>{let{source:n,url:r,theme:i,backgroundColor:a,className:o,styles:s,zoomable:c=!1,onRendered:l,onError:f,loadingContent:m,errorContent:h}=e,g=of(e),_=u.useRef(null),v=u.useRef(null),y=cf(_),b=i??(y?`dark`:`default`),[x,S]=u.useState(null),[C,w]=u.useState(null),[T,E]=u.useState(!1),[D,O]=u.useState(null),{loading:k,errorMessage:A,noSource:j}=t.m();u.useEffect(()=>{if(n){O(n),w(null);return}if(r){let e=!1;return E(!0),w(null),fetch(r).then(e=>{if(!e.ok)throw Error(`Failed to fetch ${r}: ${e.status} ${e.statusText}`);return e.text()}).then(t=>{e||(O(t),E(!1))}).catch(t=>{if(!e){let e=t instanceof Error?t:Error(String(t));w(e),E(!1),f?.(e)}}),()=>{e=!0}}O(null)},[n,r,f]),u.useEffect(()=>{if(!D){S(null);return}let e=!1,t=`mermaid-diagram-${++sf}`;return af.initialize({startOnLoad:!1,theme:b,securityLevel:`loose`,fontFamily:p.tokens.fontFamilyBase,suppressErrorRendering:!0}),af.render(t,D).then(({svg:t})=>{e||(S(t),w(null),l?.(t))}).catch(n=>{if(!e){let e=n instanceof Error?n:Error(String(n));w(e),S(null),f?.(e)}document.getElementById(t)?.remove()}),()=>{e=!0,document.getElementById(t)?.remove()}},[D,b,l,f]);let[M,ee]=u.useState(1),[N,te]=u.useState({x:0,y:0}),F=u.useRef(!1),I=u.useRef({x:0,y:0});u.useEffect(()=>{let e=_.current;if(!e||!c)return;let t=e=>{e.preventDefault();let t=e.deltaY>0?-.1:.1;ee(e=>Math.min(Math.max(e+t,.25),4))},n=e=>{F.current=!0,I.current={x:e.clientX,y:e.clientY}},r=e=>{if(!F.current)return;let t=e.clientX-I.current.x,n=e.clientY-I.current.y;I.current={x:e.clientX,y:e.clientY},te(e=>({x:e.x+t,y:e.y+n}))},i=()=>{F.current=!1};return e.addEventListener(`wheel`,t,{passive:!1}),e.addEventListener(`mousedown`,n),e.addEventListener(`mousemove`,r),e.addEventListener(`mouseup`,i),e.addEventListener(`mouseleave`,i),()=>{e.removeEventListener(`wheel`,t),e.removeEventListener(`mousedown`,n),e.removeEventListener(`mousemove`,r),e.removeEventListener(`mouseup`,i),e.removeEventListener(`mouseleave`,i)}},[c]),u.useEffect(()=>{ee(1),te({x:0,y:0})},[D]),u.useEffect(()=>{let e=v.current;e&&(e.innerHTML=x??``)},[x]);let L=[g.root,o].filter(Boolean).join(` `);if(T)return(0,d.jsx)(W,{className:L,style:s,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,background:a,children:(0,d.jsx)(W,{className:g.loading,alignItems:`center`,justifyContent:`center`,padding:`xxl`,children:m??(0,d.jsx)(Fn,{size:`small`,label:k})})});if(C)return(0,d.jsx)(W,{className:L,style:s,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,background:a,children:h?h(C):(0,d.jsx)(go,{message:A,messageType:P.ERROR})});if(!x)return(0,d.jsx)(W,{className:L,style:s,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,background:a,children:(0,d.jsx)(W,{className:g.loading,alignItems:`center`,justifyContent:`center`,padding:`xxl`,children:(0,d.jsx)(p.Text,{children:j})})});let ne=c?{transform:`translate(${N.x}px, ${N.y}px) scale(${M})`,transformOrigin:`center center`}:void 0;return(0,d.jsx)(W,{ref:_,className:L,style:s,alignItems:`center`,justifyContent:`center`,overflow:c?`auto`:`hidden`,background:a,children:(0,d.jsx)(W,{ref:v,className:g.svgContainer,alignItems:`center`,justifyContent:`center`,style:ne,children:(0,d.jsx)(d.Fragment,{})})})},uf=e=>{let{template:t}=e;return(0,d.jsx)(d.Fragment,{children:t})},df=()=>({toolbar:_.css`
358
358
  display: flex !important;
359
359
  flex-wrap: nowrap !important;
360
360
  align-items: center !important;
@@ -420,7 +420,7 @@ ${e.themeCSS}`),e.fontFamily!==void 0&&(n+=`
420
420
  @media (max-width: 768px) {
421
421
  display: none;
422
422
  }
423
- `}),ff=[{minWidth:1280,gap:100},{minWidth:1024,gap:60},{minWidth:768,gap:40},{minWidth:480,gap:24},{minWidth:0,gap:12}];function pf(e){for(let t of ff)if(e>t.minWidth)return t.gap;return ff[ff.length-1].gap}function mf(e,t,n,r,i=48){let[a,o]=u.useState(r);return u.useEffect(()=>{let a=e.current,s=t.current,c=n.current;if(!a||!c)return;let l=()=>{let e=a.offsetWidth;if(e===0)return;let t=getComputedStyle(a),n=parseFloat(t.paddingLeft||`0`),l=parseFloat(t.paddingRight||`0`),u=parseFloat(t.columnGap||t.gap||`0`),d=pf(e),f=s?s.offsetWidth:0,p=f>0?f+d+u:0,m=e-n-l-p;if(m<=0)return;let h=Array.from(c.children);if(h.length===0){o(r);return}let g=parseFloat(getComputedStyle(c).columnGap||`0`),_=0;for(let e of h)_+=e.offsetWidth;if(_+=Math.max(0,h.length-1)*g,_<=m){o(h.length);return}let v=m-i,y=0,b=0;for(let e=0;e<h.length;e++){let t=h[e].offsetWidth,n=e>0?g:0;if(y+n+t>v)break;y+=n+t,b++}o(Math.max(1,b))},u=requestAnimationFrame(l),d=new ResizeObserver(l);return d.observe(a),()=>{cancelAnimationFrame(u),d.disconnect()}},[e,t,n,r,i]),a}var hf=({item:e,isLoading:t,itemClass:n,labelClass:r})=>{if(e.visible===!1)return null;if(e.onRender)return e.onRender();let i=r?(0,d.jsx)(`span`,{className:r,children:e.label}):e.label,a=e.label?(0,d.jsx)(p.ToolbarButton,{className:n,"aria-label":e.ariaLabel||e.tooltip||e.label,icon:e.icon,onClick:e.onClick,disabled:e.disabled||t,appearance:e.appearance,children:i}):(0,d.jsx)(p.ToolbarButton,{className:n,"aria-label":e.ariaLabel||e.tooltip||e.key,icon:e.icon,onClick:e.onClick,disabled:e.disabled||t,appearance:e.appearance});return e.tooltip?(0,d.jsx)(p.Tooltip,{content:e.tooltip,relationship:`label`,children:a}):a};function gf(e){let t=new Map;for(let n of e){let e=n.group||`default`;t.has(e)||t.set(e,[]),t.get(e).push(n)}return t}function _f(e,t){let n=[],r=gf(e),i=Array.from(r.entries());for(let e=0;e<i.length;e++){let[,r]=i[e],a=e===i.length-1;for(let e of r)e.dividerBefore&&n.push({type:`divider`,key:`${e.key}-div-before`}),n.push({type:`item`,item:e,key:e.key}),e.dividerAfter&&n.push({type:`divider`,key:`${e.key}-div-after`});t&&!a&&n.push({type:`divider`,key:`group-div-${e}`})}return n}var vf=({items:e,farItems:t=[],isLoading:n=!1,ariaLabel:r=`Toolbar`,totalCount:i,className:a,showGroupDividers:o=!0})=>{let s=df(),c=u.useRef(null),l=u.useRef(null),f=u.useRef(null),m=u.useRef(null),h=u.useMemo(()=>e.filter(e=>!e.isFarItem&&e.visible!==!1),[e]),g=u.useMemo(()=>{let n=e.filter(e=>e.isFarItem&&e.visible!==!1),r=t.filter(e=>e.visible!==!1);return[...n,...r]},[e,t]),_=u.useMemo(()=>gf(g),[g]),v=u.useMemo(()=>_f(h,o),[h,o]),b=mf(c,f,m,v.length),x=u.useMemo(()=>{let e=new Set;for(let t=0;t<b&&t<v.length;t++)v[t].type===`item`&&e.add(v[t].key);return e},[v,b]),S=u.useMemo(()=>h.filter(e=>!x.has(e.key)),[h,x]),C=S.length>0,w=(e,t,r)=>{let i=[];for(let t of e)t.dividerBefore&&i.push((0,d.jsx)(p.ToolbarDivider,{},`${t.key}-divider-before`)),i.push((0,d.jsx)(hf,{item:t,isLoading:n,itemClass:s.farItemButton,labelClass:s.farItemLabel},t.key)),t.dividerAfter&&i.push((0,d.jsx)(p.ToolbarDivider,{},`${t.key}-divider-after`));return o&&!r&&i.push((0,d.jsx)(p.ToolbarDivider,{},`group-divider-${t}`)),i};return(0,d.jsxs)(`div`,{ref:c,role:`toolbar`,"aria-label":r,className:`${s.toolbar} ${a||``}`,children:[(0,d.jsx)(`div`,{ref:m,className:s.measureSection,"aria-hidden":`true`,children:v.map(e=>e.type===`divider`?(0,d.jsx)(p.ToolbarDivider,{},e.key):(0,d.jsx)(hf,{item:e.item,isLoading:n,itemClass:s.toolbarItem},e.key))}),(0,d.jsxs)(`div`,{ref:l,className:s.leftSection,children:[v.map((e,t)=>t>=b?null:e.type===`divider`?(0,d.jsx)(p.ToolbarDivider,{},e.key):(0,d.jsx)(hf,{item:e.item,isLoading:n,itemClass:s.toolbarItem},e.key)),C&&(0,d.jsxs)(p.Menu,{children:[(0,d.jsx)(p.MenuTrigger,{disableButtonEnhancement:!0,children:(0,d.jsx)(p.Tooltip,{content:`${S.length} more actions`,relationship:`label`,children:(0,d.jsx)(p.ToolbarButton,{className:s.overflowButton,icon:(0,d.jsx)(y.MoreHorizontalRegular,{}),"aria-label":`${S.length} more actions`})})}),(0,d.jsx)(p.MenuPopover,{children:(0,d.jsx)(p.MenuList,{children:S.map(e=>(0,d.jsx)(p.MenuItem,{icon:e.icon,disabled:e.disabled||n,onClick:e.onClick,children:e.label||e.tooltip||e.key},e.key))})})]}),i!==void 0&&i>0&&(0,d.jsx)(p.Badge,{appearance:`filled`,color:`informative`,className:s.countBadge,children:(0,d.jsxs)(p.Text,{size:200,children:[i,` items`]})})]}),(0,d.jsx)(`div`,{ref:f,className:s.rightGroup,children:g.length>0&&(0,d.jsx)(`div`,{className:s.farItemsContainer,children:Array.from(_.entries()).map(([e,t],n)=>w(t,n,n===_.size-1))})})]})},yf=()=>({root:(0,_.css)({display:`flex`,flexDirection:`row`,justifyContent:`flex-start`,alignItems:`flex-start`,width:`fit-content`,gap:`10px`,"&[data-fui-focus-within]:focus-within::after":{borderWidth:`0px`}}),personContainer:(0,_.css)({display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,alignItems:`flex-start`,width:`100%`,maxWidth:`100%`,overflow:`hidden`,paddingBottom:`0px`}),textStyle:(0,_.css)({width:`100%`,maxWidth:`100%`,overflow:`hidden`,display:`-webkit-box`,WebkitLineClamp:`1`,WebkitBoxOrient:`vertical`,paddingBottom:`0px`,textAlign:`start`,wordBreak:`break-all`,textOverflow:`ellipsis`,textOverlay:`hidden`}),spinnerContainer:(0,_.css)({display:`flex`,flexDirection:`row`,justifyContent:`center`,alignItems:`center`,width:`100%`})}),bf=6e4,xf=new Map,Sf=300*1e3,Cf=120*1e3;setInterval(()=>{let e=Date.now(),t=[];xf.forEach((n,r)=>{e>n.expiresAt&&t.push(r)}),t.forEach(e=>xf.delete(e))},600*1e3);var wf=(e,n)=>{let r=I(),i=(n||r)?.graphClient,{error:a,warn:o,verbose:s}=L(),[c,l]=(0,u.useState)(void 0),[d,f]=(0,u.useState)(!0),p=(0,u.useCallback)(async e=>{if(!i)return o(`Graph client not available`),null;try{return await i.get(`/users/${e}`)}catch(e){return a(`Error fetching user:`,e instanceof Error?e:void 0),null}},[i]),m=(0,u.useCallback)(async e=>{if(!i)return o(`Graph client not available`),null;try{return await i.get(`/users/${e}/presence`)}catch(e){return a(`Error fetching user presence:`,e instanceof Error?e:void 0),null}},[i]),h=(0,u.useCallback)(async e=>{if(!i){o(`Graph client not available`);return}try{let t=await i.getBlob(`/users/${e}/photo/$value`);return t?new Promise((e,n)=>{let r=new FileReader;r.onloadend=()=>e(r.result),r.onerror=n,r.readAsDataURL(t)}):void 0}catch{s(`No photo available for user:`,e);return}},[i]),g=(0,u.useCallback)(async()=>{if(!e){f(!1);return}let n=xf.get(e),r=Date.now();if(n&&r<n.expiresAt){l(n.data),f(!1);return}try{let n=await p(e);if(!n)return;let i={availability:`Offline`,activity:`Offline`},o;try{if(n.id){let e=await m(n.id);e&&(i=e)}}catch(e){e?.message?.toLowerCase().includes(`exceed`)?(a(`fetchUser: Exceeded resource error during presence check`,e,t.w.Error),i=n.presence||{availability:`Offline`,activity:`Offline`}):a(`fetchUser: Error fetching user presence`,e,t.w.Error)}try{n.id&&(o=await h(n.id))}catch(e){a(`fetchUser: Error fetching user photo`,e,t.w.Warning)}let s={...n,presence:i,userPhoto:o};xf.set(e,{data:s,timestamp:r,expiresAt:r+Sf}),l(s)}catch(e){a(`fetchUser: Error fetching user`,e,t.w.Error)}finally{f(!1)}},[e,p,m,h,a]),_=(0,u.useCallback)(async()=>{if(!e||!c)return;let n=xf.get(e),r=Date.now();if(!(n&&n.data.presence&&r-n.timestamp<Cf))try{let i={availability:`Offline`,activity:`Offline`};try{if(c.id){let e=await m(c.id);e&&(i=e)}}catch(e){e.message?.toLowerCase().includes(`exceed`)?(a(`checkUserPresence: Exceeded resource error during presence check`,e,t.w.Error),i=c.presence||{availability:`Offline`,activity:`Offline`}):a(`checkUserPresence: Error fetching user presence`,e,t.w.Error)}let o={...c,presence:i};xf.set(e,{data:o,timestamp:r,expiresAt:n?.expiresAt||r+Sf}),l(o)}catch(e){a(`checkUserPresence: Error in checkUserPresence`,e,t.w.Error)}},[e,c,m,a]);(0,u.useEffect)(()=>{(async()=>{await g()})()},[g]);let{startPolling:v,stopPolling:y}=R(_,c?bf:bf*2,!1);return(0,u.useEffect)(()=>(c&&v(),()=>{y()}),[c,v,y]),{user:c,loading:d,refetch:g}},Tf=u.default.memo(({userId:e,avatarSize:n=32,showHoverCard:r=!0,context:i,textPosition:a=`after`,className:o,avatarOnly:s=!1,secondaryText:c,tertiaryText:l,quaternaryText:f})=>{let m=yf(),{user:h}=wf(e,i),g=t.y(),_=(0,u.useMemo)(()=>{let e=h?.presence?.availability?.toLowerCase(),t=h?.presence?.activity?.toLowerCase();switch(e){case`available`:return{status:`available`,text:g.available};case`availableidle`:return{status:`available`,text:g.availableIdle};case`away`:return{status:`away`,text:g.away};case`busy`:return{status:`busy`,text:g.busy};case`busyidle`:return{status:`busy`,text:g.busyIdle};case`donotdisturb`:return{status:`do-not-disturb`,text:g.doNotDisturb};case`berighback`:return{status:`away`,text:g.beRightBack};case`invisible`:return{status:`offline`,text:g.appearOffline};case`presenceunknown`:return{status:`unknown`,text:g.unknown};case`offline`:return{status:`offline`,text:t===`outofoffice`?g.outOfOffice:g.offline,outOfOffice:t===`outofoffice`};default:return{status:`offline`,text:g.offline,outOfOffice:t===`outofoffice`}}},[h?.presence?.availability,h?.presence?.activity,g]);return(0,d.jsx)(uf,{upn:r&&h?.mail||``,template:(0,d.jsx)(`div`,{className:(0,p.mergeClasses)(m.root,o),children:s?(0,d.jsx)(p.Avatar,{color:`colorful`,image:{src:h?.userPhoto,alt:h?.displayName||g.userAvatar},size:n,name:h?.displayName||e||g.unknownUser,badge:{status:_.status,outOfOffice:_.outOfOffice}}):(0,d.jsx)(p.Persona,{primaryText:(0,d.jsxs)(p.Body1Strong,{className:m.textStyle,children:[` `,h?.displayName||e||g.unknownUser]}),textPosition:a??`after`,presence:{status:_.status,outOfOffice:_.outOfOffice},secondaryText:c?.showSecondaryText?c.text?(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`span`,{className:m.textStyle,children:c.text})}):(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`span`,{className:m.textStyle,children:h?.jobTitle||`Unknown Job Title`})}):void 0,tertiaryText:l?.showTertiaryText?l.text?(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`span`,{className:m.textStyle,children:l.text})}):(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`span`,{className:m.textStyle,children:h?.mail||`Unknown Email`})}):void 0,quaternaryText:f?.showQuaternaryText?f.text?(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`span`,{className:m.textStyle,children:f.text})}):(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`span`,{className:m.textStyle,children:_.text})}):void 0,avatar:{color:`colorful`,image:{src:h?.userPhoto,alt:h?.displayName||g.userAvatar},size:n},textAlignment:`start`})})})},(e,t)=>e.userId===t.userId&&e.avatarSize===t.avatarSize&&e.showHoverCard===t.showHoverCard&&e.textPosition===t.textPosition&&e.avatarOnly===t.avatarOnly&&e.className===t.className&&JSON.stringify(e.secondaryText)===JSON.stringify(t.secondaryText)&&JSON.stringify(e.tertiaryText)===JSON.stringify(t.tertiaryText)&&JSON.stringify(e.quaternaryText)===JSON.stringify(t.quaternaryText)),Ef=()=>({container:(0,_.css)({display:`flex`,alignItems:`center`,gap:`4px`}),stackLayout:(0,_.css)({"& > *:not(:first-child)":{marginLeft:`-8px`}}),spreadLayout:(0,_.css)({display:`flex`,flexDirection:`row`,gap:`8px`,"& > *":{marginLeft:`0`}}),userCardWrapper:(0,_.css)({position:`relative`,zIndex:1,transition:`transform 0.2s ease, z-index 0.2s ease`,"&:hover":{transform:`scale(1.1)`,zIndex:10}}),overflowButton:(0,_.css)({backgroundColor:p.tokens.colorNeutralBackground1,border:`2px solid ${p.tokens.colorNeutralStroke1}`,borderRadius:`50%`,color:p.tokens.colorNeutralForeground1,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:`12px`,fontWeight:600,minWidth:`32px`,minHeight:`32px`,position:`relative`,zIndex:1,transition:`all 0.2s ease`,"&:hover":{backgroundColor:p.tokens.colorNeutralBackground1Hover,zIndex:10}}),popover:(0,_.css)({maxWidth:`300px`,padding:`12px`}),popoverUserList:(0,_.css)({display:`flex`,flexDirection:`column`,gap:`8px`}),popoverUserCard:(0,_.css)({padding:`4px`,borderRadius:`4px`,transition:`background-color 0.2s ease`,"&:hover":{backgroundColor:p.tokens.colorNeutralBackground1Hover}})}),Df=({users:e,maxVisible:t=5,avatarSize:n=32,showHoverCard:r=!0,context:i,className:a,layout:o=`stack`,overflowText:s})=>{let c=Ef(),{warn:l}=L(),{visibleUsers:f,overflowUsers:m}=(0,u.useMemo)(()=>!e||e.length===0?{visibleUsers:[],overflowUsers:[]}:{visibleUsers:e.slice(0,t),overflowUsers:e.slice(t)},[e,t]),h=(0,u.useMemo)(()=>s||`+${m.length}`,[s,m.length]);return!e||e.length===0?null:i?(0,d.jsxs)(W,{direction:`horizontal`,alignItems:`start`,gap:o===`stack`?`4px`:`12px`,className:`${o===`stack`?c.stackLayout:c.spreadLayout} ${a||``}`,children:[f.map((e,t)=>(0,d.jsx)(`div`,{className:c.userCardWrapper,children:(0,d.jsx)(Tf,{userId:e.id,avatarSize:n,showHoverCard:r??!0,context:i,avatarOnly:!0})},`user-${e.id||t}`)),m.length>0&&(0,d.jsxs)(p.Popover,{withArrow:!0,children:[(0,d.jsx)(p.PopoverTrigger,{disableButtonEnhancement:!0,children:(0,d.jsx)(p.Button,{className:c.overflowButton,style:{width:`${n}px`,height:`${n}px`,fontSize:n>40?`14px`:`12px`},appearance:`subtle`,children:h})}),(0,d.jsx)(p.PopoverSurface,{className:c.popover,children:(0,d.jsx)(`div`,{className:c.popoverUserList,children:m.map((e,t)=>(0,d.jsx)(`div`,{className:c.popoverUserCard,children:(0,d.jsx)(Tf,{userId:e.id,avatarSize:32,showHoverCard:r??!0,context:i,textPosition:`after`,avatarOnly:!1})},`overflow-user-${e.id||t}`))})})]})]}):(l(`StackedUsers: context is required to display user cards`),null)},Of=e=>{let t=I(),n=(e||t)?.graphClient,{warn:r,error:i}=L();return{getItemActivities:(0,u.useCallback)(async(e,t,a)=>{if(!n)return r(`Graph client not available for SharePoint activities`),{activities:[]};try{let r=await n.get(`/sites/${e}/lists/${t}/items/${a}/getActivitiesByInterval(startDateTime='',endDateTime='',interval='')`);return r&&r.value?{activities:r.value.map(e=>({action:e.action||{},actor:e.actor||{},times:e.times||{}}))}:{activities:[]}}catch(e){throw i(`Error fetching SharePoint activities:`,e instanceof Error?e:void 0),e}},[n])}},kf={width:`20px`,height:`20px`,color:p.tokens.colorBrandBackground},Af=[`access`,`comment`,`create`,`delete`,`edit`,`mention`,`move`,`rename`,`restore`,`share`,`version`],jf=new Map([]),Mf=({siteId:e,listId:n,itemId:r,currentUserEmail:i,strings:a,context:o})=>{let{getItemActivities:s}=Of(o),c=t.d(),{warn:l,error:f}=L(),p=new Map([[`access`,{message:a?.access||c.accessed||jf.get(`access`)?.message||``,icon:(0,d.jsx)(y.OpenRegular,{style:kf})}],[`comment`,{message:a?.comment||c.commented||jf.get(`comment`)?.message||``,icon:(0,d.jsx)(y.CommentRegular,{style:kf})}],[`create`,{message:a?.create||c.created||jf.get(`create`)?.message||``,icon:(0,d.jsx)(y.AddRegular,{style:kf})}],[`delete`,{message:a?.delete||c.deleted||jf.get(`delete`)?.message||``,icon:(0,d.jsx)(y.DeleteRegular,{style:kf})}],[`edit`,{message:a?.edit||c.edited||jf.get(`edit`)?.message||``,icon:(0,d.jsx)(y.EditRegular,{style:kf})}],[`mention`,{message:a?.mention||c.mentioned||jf.get(`mention`)?.message||``,icon:(0,d.jsx)(y.MentionRegular,{style:kf})}],[`move`,{message:a?.move||c.moved||jf.get(`move`)?.message||``,icon:(0,d.jsx)(y.ArrowMoveRegular,{style:kf})}],[`rename`,{message:a?.rename||c.renamed||jf.get(`rename`)?.message||``,icon:(0,d.jsx)(y.RenameRegular,{style:kf})}],[`restore`,{message:a?.restore||c.restored||jf.get(`restore`)?.message||``,icon:(0,d.jsx)(y.ArrowSyncRegular,{style:kf})}],[`share`,{message:a?.share||c.shared||jf.get(`share`)?.message||``,icon:(0,d.jsx)(y.PeopleRegular,{style:kf})}],[`version`,{message:a?.version||c.versioned||jf.get(`version`)?.message||``,icon:(0,d.jsx)(y.HistoryRegular,{style:kf})}]]),[m,h]=u.useState({message:``,icon:(0,d.jsx)(d.Fragment,{})}),[g,_]=u.useState(!0),v=u.useRef(void 0),b=u.useRef(void 0),[x]=u.useState(30),S=u.useCallback(e=>e.user.email===i,[i]),C=u.useCallback(e=>{if(!e)return{message:``,icon:(0,d.jsx)(d.Fragment,{})};let{action:t,actor:n}=e,{displayName:r}=n?.user||{displayName:``},i=Af.find(e=>t[e]);if(i){let e=p.get(i);if(e)return{message:`${S(n)?c.you:r} ${e.message}`,icon:e.icon}}return{message:``,icon:(0,d.jsx)(d.Fragment,{})}},[p,S]);return u.useEffect(()=>{b.current?.setPlaybackRate(x/100)},[x,g]),u.useEffect(()=>{let t=!1,i=async(a=1e3)=>{if(e&&n&&r)try{let i=await s(e,n,r);if(t)return;let a=i.activities[0];(!v.current||JSON.stringify(v.current)!==JSON.stringify(a))&&(v.current=a,h(C(a)))}catch(e){if(e.status===429){let t=e.headers?.get(`Retry-After`),n=t?parseInt(t,10)*1e3:a;l(`Throttled. Retrying after ${n}ms`),setTimeout(()=>i(n*2),n);return}else f(`Activity Error`,e instanceof Error?e:void 0)}finally{t||_(!1)}},a=setTimeout(()=>{i()},1e3);return()=>{clearTimeout(a),t=!0}},[e,n,r,s,C]),(0,d.jsx)(N.Fade,{imperativeRef:b,visible:!g,children:(0,d.jsx)(`div`,{children:(0,d.jsxs)(H,{horizontal:!0,verticalAlign:`center`,horizontalAlign:`center`,RowGap:4,columnGap:4,children:[m.icon,` `,m.message]})})})},Nf=e=>(0,d.jsxs)(`svg`,{width:`100`,height:`100`,viewBox:`0 0 100 100`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,d.jsx)(`rect`,{x:`20`,y:`30`,width:`60`,height:`50`,fill:`#0078D4`,opacity:`0.1`}),(0,d.jsx)(`rect`,{x:`30`,y:`50`,width:`10`,height:`20`,fill:`#0078D4`}),(0,d.jsx)(`rect`,{x:`45`,y:`40`,width:`10`,height:`30`,fill:`#0078D4`}),(0,d.jsx)(`rect`,{x:`60`,y:`35`,width:`10`,height:`35`,fill:`#0078D4`})]}),Pf=e=>{let{height:n}=e,r=t.i();return(0,d.jsxs)(`div`,{style:{height:n||`100%`,display:`flex`,justifyContent:`center`,alignItems:`center`,flexDirection:`column`},children:[(0,d.jsx)(Nf,{width:200,height:200}),(0,d.jsx)(p.Text,{size:500,weight:`semibold`,children:r.noDashboardsAvailable})]})},Ff=()=>({gridContainer:_.css`
423
+ `}),ff=[{minWidth:1280,gap:100},{minWidth:1024,gap:60},{minWidth:768,gap:40},{minWidth:480,gap:24},{minWidth:0,gap:12}];function pf(e){for(let t of ff)if(e>t.minWidth)return t.gap;return ff[ff.length-1].gap}function mf(e,t,n,r,i=48){let[a,o]=u.useState(r);return u.useEffect(()=>{let a=e.current,s=t.current,c=n.current;if(!a||!c)return;let l=()=>{let e=a.offsetWidth;if(e===0)return;let t=getComputedStyle(a),n=parseFloat(t.paddingLeft||`0`),l=parseFloat(t.paddingRight||`0`),u=parseFloat(t.columnGap||t.gap||`0`),d=pf(e),f=s?s.offsetWidth:0,p=f>0?f+d+u:0,m=e-n-l-p;if(m<=0)return;let h=Array.from(c.children);if(h.length===0){o(r);return}let g=parseFloat(getComputedStyle(c).columnGap||`0`),_=0;for(let e of h)_+=e.offsetWidth;if(_+=Math.max(0,h.length-1)*g,_<=m){o(h.length);return}let v=m-i,y=0,b=0;for(let e=0;e<h.length;e++){let t=h[e].offsetWidth,n=e>0?g:0;if(y+n+t>v)break;y+=n+t,b++}o(Math.max(1,b))},u=requestAnimationFrame(l),d=new ResizeObserver(l);return d.observe(a),()=>{cancelAnimationFrame(u),d.disconnect()}},[e,t,n,r,i]),a}var hf=({item:e,isLoading:t,itemClass:n,labelClass:r})=>{if(e.visible===!1)return null;if(e.onRender)return e.onRender();let i=r?(0,d.jsx)(`span`,{className:r,children:e.label}):e.label,a=e.label?(0,d.jsx)(p.ToolbarButton,{className:n,"aria-label":e.ariaLabel||e.tooltip||e.label,icon:e.icon,onClick:e.onClick,disabled:e.disabled||t,appearance:e.appearance,children:i}):(0,d.jsx)(p.ToolbarButton,{className:n,"aria-label":e.ariaLabel||e.tooltip||e.key,icon:e.icon,onClick:e.onClick,disabled:e.disabled||t,appearance:e.appearance});return e.tooltip?(0,d.jsx)(p.Tooltip,{content:e.tooltip,relationship:`label`,children:a}):a};function gf(e){let t=new Map;for(let n of e){let e=n.group||`default`;t.has(e)||t.set(e,[]),t.get(e).push(n)}return t}function _f(e,t){let n=[],r=gf(e),i=Array.from(r.entries());for(let e=0;e<i.length;e++){let[,r]=i[e],a=e===i.length-1;for(let e of r)e.dividerBefore&&n.push({type:`divider`,key:`${e.key}-div-before`}),n.push({type:`item`,item:e,key:e.key}),e.dividerAfter&&n.push({type:`divider`,key:`${e.key}-div-after`});t&&!a&&n.push({type:`divider`,key:`group-div-${e}`})}return n}var vf=({items:e,farItems:t=[],isLoading:n=!1,ariaLabel:r=`Toolbar`,totalCount:i,className:a,showGroupDividers:o=!0})=>{let s=df(),c=u.useRef(null),l=u.useRef(null),f=u.useRef(null),m=u.useRef(null),h=u.useMemo(()=>e.filter(e=>!e.isFarItem&&e.visible!==!1),[e]),g=u.useMemo(()=>{let n=e.filter(e=>e.isFarItem&&e.visible!==!1),r=t.filter(e=>e.visible!==!1);return[...n,...r]},[e,t]),_=u.useMemo(()=>gf(g),[g]),v=u.useMemo(()=>_f(h,o),[h,o]),b=mf(c,f,m,v.length),x=u.useMemo(()=>{let e=new Set;for(let t=0;t<b&&t<v.length;t++)v[t].type===`item`&&e.add(v[t].key);return e},[v,b]),S=u.useMemo(()=>h.filter(e=>!x.has(e.key)),[h,x]),C=S.length>0,w=(e,t,r)=>{let i=[];for(let t of e)t.dividerBefore&&i.push((0,d.jsx)(p.ToolbarDivider,{},`${t.key}-divider-before`)),i.push((0,d.jsx)(hf,{item:t,isLoading:n,itemClass:s.farItemButton,labelClass:s.farItemLabel},t.key)),t.dividerAfter&&i.push((0,d.jsx)(p.ToolbarDivider,{},`${t.key}-divider-after`));return o&&!r&&i.push((0,d.jsx)(p.ToolbarDivider,{},`group-divider-${t}`)),i};return(0,d.jsxs)(`div`,{ref:c,role:`toolbar`,"aria-label":r,className:`${s.toolbar} ${a||``}`,children:[(0,d.jsx)(`div`,{ref:m,className:s.measureSection,"aria-hidden":`true`,children:v.map(e=>e.type===`divider`?(0,d.jsx)(p.ToolbarDivider,{},e.key):(0,d.jsx)(hf,{item:e.item,isLoading:n,itemClass:s.toolbarItem},e.key))}),(0,d.jsxs)(`div`,{ref:l,className:s.leftSection,children:[v.map((e,t)=>t>=b?null:e.type===`divider`?(0,d.jsx)(p.ToolbarDivider,{},e.key):(0,d.jsx)(hf,{item:e.item,isLoading:n,itemClass:s.toolbarItem},e.key)),C&&(0,d.jsxs)(p.Menu,{children:[(0,d.jsx)(p.MenuTrigger,{disableButtonEnhancement:!0,children:(0,d.jsx)(p.Tooltip,{content:`${S.length} more actions`,relationship:`label`,children:(0,d.jsx)(p.ToolbarButton,{className:s.overflowButton,icon:(0,d.jsx)(y.MoreHorizontalRegular,{}),"aria-label":`${S.length} more actions`})})}),(0,d.jsx)(p.MenuPopover,{children:(0,d.jsx)(p.MenuList,{children:S.map(e=>(0,d.jsx)(p.MenuItem,{icon:e.icon,disabled:e.disabled||n,onClick:e.onClick,children:e.label||e.tooltip||e.key},e.key))})})]}),i!==void 0&&i>0&&(0,d.jsx)(p.Badge,{appearance:`filled`,color:`informative`,className:s.countBadge,children:(0,d.jsxs)(p.Text,{size:200,children:[i,` items`]})})]}),(0,d.jsx)(`div`,{ref:f,className:s.rightGroup,children:g.length>0&&(0,d.jsx)(`div`,{className:s.farItemsContainer,children:Array.from(_.entries()).map(([e,t],n)=>w(t,n,n===_.size-1))})})]})},yf=()=>({root:(0,_.css)({display:`flex`,flexDirection:`row`,justifyContent:`flex-start`,alignItems:`flex-start`,width:`fit-content`,gap:`10px`,"&[data-fui-focus-within]:focus-within::after":{borderWidth:`0px`}}),personContainer:(0,_.css)({display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,alignItems:`flex-start`,width:`100%`,maxWidth:`100%`,overflow:`hidden`,paddingBottom:`0px`}),textStyle:(0,_.css)({width:`100%`,maxWidth:`100%`,overflow:`hidden`,display:`-webkit-box`,WebkitLineClamp:`1`,WebkitBoxOrient:`vertical`,paddingBottom:`0px`,textAlign:`start`,wordBreak:`break-all`,textOverflow:`ellipsis`,textOverlay:`hidden`}),spinnerContainer:(0,_.css)({display:`flex`,flexDirection:`row`,justifyContent:`center`,alignItems:`center`,width:`100%`})}),bf=6e4,xf=new Map,Sf=300*1e3,Cf=120*1e3;setInterval(()=>{let e=Date.now(),t=[];xf.forEach((n,r)=>{e>n.expiresAt&&t.push(r)}),t.forEach(e=>xf.delete(e))},600*1e3);var wf=(e,n)=>{let r=I(),i=(n||r)?.graphClient,{error:a,warn:o,verbose:s}=L(),[c,l]=(0,u.useState)(void 0),[d,f]=(0,u.useState)(!0),p=(0,u.useCallback)(async e=>{if(!i)return o(`Graph client not available`),null;try{return await i.get(`/users/${e}`)}catch(e){return a(`Error fetching user:`,e instanceof Error?e:void 0),null}},[i]),m=(0,u.useCallback)(async e=>{if(!i)return o(`Graph client not available`),null;try{return await i.get(`/users/${e}/presence`)}catch(e){return a(`Error fetching user presence:`,e instanceof Error?e:void 0),null}},[i]),h=(0,u.useCallback)(async e=>{if(!i){o(`Graph client not available`);return}try{let t=await i.getBlob(`/users/${e}/photo/$value`);return t?new Promise((e,n)=>{let r=new FileReader;r.onloadend=()=>e(r.result),r.onerror=n,r.readAsDataURL(t)}):void 0}catch{s(`No photo available for user:`,e);return}},[i]),g=(0,u.useCallback)(async()=>{if(!e){f(!1);return}let n=xf.get(e),r=Date.now();if(n&&r<n.expiresAt){l(n.data),f(!1);return}try{let n=await p(e);if(!n)return;let i={availability:`Offline`,activity:`Offline`},o;try{if(n.id){let e=await m(n.id);e&&(i=e)}}catch(e){e?.message?.toLowerCase().includes(`exceed`)?(a(`fetchUser: Exceeded resource error during presence check`,e,t.w.Error),i=n.presence||{availability:`Offline`,activity:`Offline`}):a(`fetchUser: Error fetching user presence`,e,t.w.Error)}try{n.id&&(o=await h(n.id))}catch(e){a(`fetchUser: Error fetching user photo`,e,t.w.Warning)}let s={...n,presence:i,userPhoto:o};xf.set(e,{data:s,timestamp:r,expiresAt:r+Sf}),l(s)}catch(e){a(`fetchUser: Error fetching user`,e,t.w.Error)}finally{f(!1)}},[e,p,m,h,a]),_=(0,u.useCallback)(async()=>{if(!e||!c)return;let n=xf.get(e),r=Date.now();if(!(n&&n.data.presence&&r-n.timestamp<Cf))try{let i={availability:`Offline`,activity:`Offline`};try{if(c.id){let e=await m(c.id);e&&(i=e)}}catch(e){e.message?.toLowerCase().includes(`exceed`)?(a(`checkUserPresence: Exceeded resource error during presence check`,e,t.w.Error),i=c.presence||{availability:`Offline`,activity:`Offline`}):a(`checkUserPresence: Error fetching user presence`,e,t.w.Error)}let o={...c,presence:i};xf.set(e,{data:o,timestamp:r,expiresAt:n?.expiresAt||r+Sf}),l(o)}catch(e){a(`checkUserPresence: Error in checkUserPresence`,e,t.w.Error)}},[e,c,m,a]);(0,u.useEffect)(()=>{(async()=>{await g()})()},[g]);let{startPolling:v,stopPolling:y}=R(_,c?bf:bf*2,!1);return(0,u.useEffect)(()=>(c&&v(),()=>{y()}),[c,v,y]),{user:c,loading:d,refetch:g}},Tf=u.default.memo(({userId:e,avatarSize:n=32,showHoverCard:r=!0,context:i,textPosition:a=`after`,className:o,avatarOnly:s=!1,secondaryText:c,tertiaryText:l,quaternaryText:f})=>{let m=yf(),{user:h}=wf(e,i),g=t.y(),_=(0,u.useMemo)(()=>{let e=h?.presence?.availability?.toLowerCase(),t=h?.presence?.activity?.toLowerCase();switch(e){case`available`:return{status:`available`,text:g.available};case`availableidle`:return{status:`available`,text:g.availableIdle};case`away`:return{status:`away`,text:g.away};case`busy`:return{status:`busy`,text:g.busy};case`busyidle`:return{status:`busy`,text:g.busyIdle};case`donotdisturb`:return{status:`do-not-disturb`,text:g.doNotDisturb};case`berighback`:return{status:`away`,text:g.beRightBack};case`invisible`:return{status:`offline`,text:g.appearOffline};case`presenceunknown`:return{status:`unknown`,text:g.unknown};case`offline`:return{status:`offline`,text:t===`outofoffice`?g.outOfOffice:g.offline,outOfOffice:t===`outofoffice`};default:return{status:`offline`,text:g.offline,outOfOffice:t===`outofoffice`}}},[h?.presence?.availability,h?.presence?.activity,g]);return(0,d.jsx)(uf,{upn:r&&h?.mail||``,template:(0,d.jsx)(`div`,{className:(0,p.mergeClasses)(m.root,o),children:s?(0,d.jsx)(p.Avatar,{color:`colorful`,image:{src:h?.userPhoto,alt:h?.displayName||g.userAvatar},size:n,name:h?.displayName||e||g.unknownUser,badge:{status:_.status,outOfOffice:_.outOfOffice}}):(0,d.jsx)(p.Persona,{primaryText:(0,d.jsxs)(p.Body1Strong,{className:m.textStyle,children:[` `,h?.displayName||e||g.unknownUser]}),textPosition:a??`after`,presence:{status:_.status,outOfOffice:_.outOfOffice},secondaryText:c?.showSecondaryText?c.text?(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`span`,{className:m.textStyle,children:c.text})}):(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`span`,{className:m.textStyle,children:h?.jobTitle||`Unknown Job Title`})}):void 0,tertiaryText:l?.showTertiaryText?l.text?(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`span`,{className:m.textStyle,children:l.text})}):(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`span`,{className:m.textStyle,children:h?.mail||`Unknown Email`})}):void 0,quaternaryText:f?.showQuaternaryText?f.text?(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`span`,{className:m.textStyle,children:f.text})}):(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`span`,{className:m.textStyle,children:_.text})}):void 0,avatar:{color:`colorful`,image:{src:h?.userPhoto,alt:h?.displayName||g.userAvatar},size:n},textAlignment:`start`})})})},(e,t)=>e.userId===t.userId&&e.avatarSize===t.avatarSize&&e.showHoverCard===t.showHoverCard&&e.textPosition===t.textPosition&&e.avatarOnly===t.avatarOnly&&e.className===t.className&&JSON.stringify(e.secondaryText)===JSON.stringify(t.secondaryText)&&JSON.stringify(e.tertiaryText)===JSON.stringify(t.tertiaryText)&&JSON.stringify(e.quaternaryText)===JSON.stringify(t.quaternaryText)),Ef=()=>({container:(0,_.css)({display:`flex`,alignItems:`center`,gap:`4px`}),stackLayout:(0,_.css)({"& > *:not(:first-child)":{marginLeft:`-8px`}}),spreadLayout:(0,_.css)({display:`flex`,flexDirection:`row`,gap:`8px`,"& > *":{marginLeft:`0`}}),userCardWrapper:(0,_.css)({position:`relative`,zIndex:1,transition:`transform 0.2s ease, z-index 0.2s ease`,"&:hover":{transform:`scale(1.1)`,zIndex:10}}),overflowButton:(0,_.css)({backgroundColor:p.tokens.colorNeutralBackground1,border:`2px solid ${p.tokens.colorNeutralStroke1}`,borderRadius:`50%`,color:p.tokens.colorNeutralForeground1,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:`12px`,fontWeight:600,minWidth:`32px`,minHeight:`32px`,position:`relative`,zIndex:1,transition:`all 0.2s ease`,"&:hover":{backgroundColor:p.tokens.colorNeutralBackground1Hover,zIndex:10}}),popover:(0,_.css)({maxWidth:`300px`,padding:`12px`}),popoverUserList:(0,_.css)({display:`flex`,flexDirection:`column`,gap:`8px`}),popoverUserCard:(0,_.css)({padding:`4px`,borderRadius:`4px`,transition:`background-color 0.2s ease`,"&:hover":{backgroundColor:p.tokens.colorNeutralBackground1Hover}})}),Df=({users:e,maxVisible:t=5,avatarSize:n=32,showHoverCard:r=!0,context:i,className:a,layout:o=`stack`,overflowText:s})=>{let c=Ef(),{warn:l}=L(),{visibleUsers:f,overflowUsers:m}=(0,u.useMemo)(()=>!e||e.length===0?{visibleUsers:[],overflowUsers:[]}:{visibleUsers:e.slice(0,t),overflowUsers:e.slice(t)},[e,t]),h=(0,u.useMemo)(()=>s||`+${m.length}`,[s,m.length]);return!e||e.length===0?null:i?(0,d.jsxs)(W,{direction:`horizontal`,alignItems:`start`,gap:o===`stack`?`4px`:`12px`,className:`${o===`stack`?c.stackLayout:c.spreadLayout} ${a||``}`,children:[f.map((e,t)=>(0,d.jsx)(`div`,{className:c.userCardWrapper,children:(0,d.jsx)(Tf,{userId:e.id,avatarSize:n,showHoverCard:r??!0,context:i,avatarOnly:!0})},`user-${e.id||t}`)),m.length>0&&(0,d.jsxs)(p.Popover,{withArrow:!0,children:[(0,d.jsx)(p.PopoverTrigger,{disableButtonEnhancement:!0,children:(0,d.jsx)(p.Button,{className:c.overflowButton,style:{width:`${n}px`,height:`${n}px`,fontSize:n>40?`14px`:`12px`},appearance:`subtle`,children:h})}),(0,d.jsx)(p.PopoverSurface,{className:c.popover,children:(0,d.jsx)(`div`,{className:c.popoverUserList,children:m.map((e,t)=>(0,d.jsx)(`div`,{className:c.popoverUserCard,children:(0,d.jsx)(Tf,{userId:e.id,avatarSize:32,showHoverCard:r??!0,context:i,textPosition:`after`,avatarOnly:!1})},`overflow-user-${e.id||t}`))})})]})]}):(l(`StackedUsers: context is required to display user cards`),null)},Of=e=>{let t=I(),n=(e||t)?.graphClient,{warn:r,error:i}=L();return{getItemActivities:(0,u.useCallback)(async(e,t,a)=>{if(!n)return r(`Graph client not available for SharePoint activities`),{activities:[]};try{let r=await n.get(`/sites/${e}/lists/${t}/items/${a}/getActivitiesByInterval(startDateTime='',endDateTime='',interval='')`);return r&&r.value?{activities:r.value.map(e=>({action:e.action||{},actor:e.actor||{},times:e.times||{}}))}:{activities:[]}}catch(e){throw i(`Error fetching SharePoint activities:`,e instanceof Error?e:void 0),e}},[n])}},kf={width:`20px`,height:`20px`,color:p.tokens.colorBrandBackground},Af=[`access`,`comment`,`create`,`delete`,`edit`,`mention`,`move`,`rename`,`restore`,`share`,`version`],jf=new Map([]),Mf=({siteId:e,listId:n,itemId:r,currentUserEmail:i,strings:a,context:o})=>{let{getItemActivities:s}=Of(o),c=t.d(),{warn:l,error:f}=L(),p=new Map([[`access`,{message:a?.access||c.accessed||jf.get(`access`)?.message||``,icon:(0,d.jsx)(y.OpenRegular,{style:kf})}],[`comment`,{message:a?.comment||c.commented||jf.get(`comment`)?.message||``,icon:(0,d.jsx)(y.CommentRegular,{style:kf})}],[`create`,{message:a?.create||c.created||jf.get(`create`)?.message||``,icon:(0,d.jsx)(y.AddRegular,{style:kf})}],[`delete`,{message:a?.delete||c.deleted||jf.get(`delete`)?.message||``,icon:(0,d.jsx)(y.DeleteRegular,{style:kf})}],[`edit`,{message:a?.edit||c.edited||jf.get(`edit`)?.message||``,icon:(0,d.jsx)(y.EditRegular,{style:kf})}],[`mention`,{message:a?.mention||c.mentioned||jf.get(`mention`)?.message||``,icon:(0,d.jsx)(y.MentionRegular,{style:kf})}],[`move`,{message:a?.move||c.moved||jf.get(`move`)?.message||``,icon:(0,d.jsx)(y.ArrowMoveRegular,{style:kf})}],[`rename`,{message:a?.rename||c.renamed||jf.get(`rename`)?.message||``,icon:(0,d.jsx)(y.RenameRegular,{style:kf})}],[`restore`,{message:a?.restore||c.restored||jf.get(`restore`)?.message||``,icon:(0,d.jsx)(y.ArrowSyncRegular,{style:kf})}],[`share`,{message:a?.share||c.shared||jf.get(`share`)?.message||``,icon:(0,d.jsx)(y.PeopleRegular,{style:kf})}],[`version`,{message:a?.version||c.versioned||jf.get(`version`)?.message||``,icon:(0,d.jsx)(y.HistoryRegular,{style:kf})}]]),[m,h]=u.useState({message:``,icon:(0,d.jsx)(d.Fragment,{})}),[g,_]=u.useState(!0),v=u.useRef(void 0),b=u.useRef(void 0),[x]=u.useState(30),S=u.useCallback(e=>e.user.email===i,[i]),C=u.useCallback(e=>{if(!e)return{message:``,icon:(0,d.jsx)(d.Fragment,{})};let{action:t,actor:n}=e,{displayName:r}=n?.user||{displayName:``},i=Af.find(e=>t[e]);if(i){let e=p.get(i);if(e)return{message:`${S(n)?c.you:r} ${e.message}`,icon:e.icon}}return{message:``,icon:(0,d.jsx)(d.Fragment,{})}},[p,S]);return u.useEffect(()=>{b.current?.setPlaybackRate(x/100)},[x,g]),u.useEffect(()=>{let t=!1,i=async(a=1e3)=>{if(e&&n&&r)try{let i=await s(e,n,r);if(t)return;let a=i.activities[0];(!v.current||JSON.stringify(v.current)!==JSON.stringify(a))&&(v.current=a,h(C(a)))}catch(e){if(e.status===429){let t=e.headers?.get(`Retry-After`),n=t?parseInt(t,10)*1e3:a;l(`Throttled. Retrying after ${n}ms`),setTimeout(()=>i(n*2),n);return}else f(`Activity Error`,e instanceof Error?e:void 0)}finally{t||_(!1)}},a=setTimeout(()=>{i()},1e3);return()=>{clearTimeout(a),t=!0}},[e,n,r,s,C]),(0,d.jsx)(ee.Fade,{imperativeRef:b,visible:!g,children:(0,d.jsx)(`div`,{children:(0,d.jsxs)(H,{horizontal:!0,verticalAlign:`center`,horizontalAlign:`center`,RowGap:4,columnGap:4,children:[m.icon,` `,m.message]})})})},Nf=e=>(0,d.jsxs)(`svg`,{width:`100`,height:`100`,viewBox:`0 0 100 100`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,d.jsx)(`rect`,{x:`20`,y:`30`,width:`60`,height:`50`,fill:`#0078D4`,opacity:`0.1`}),(0,d.jsx)(`rect`,{x:`30`,y:`50`,width:`10`,height:`20`,fill:`#0078D4`}),(0,d.jsx)(`rect`,{x:`45`,y:`40`,width:`10`,height:`30`,fill:`#0078D4`}),(0,d.jsx)(`rect`,{x:`60`,y:`35`,width:`10`,height:`35`,fill:`#0078D4`})]}),Pf=e=>{let{height:n}=e,r=t.i();return(0,d.jsxs)(`div`,{style:{height:n||`100%`,display:`flex`,justifyContent:`center`,alignItems:`center`,flexDirection:`column`},children:[(0,d.jsx)(Nf,{width:200,height:200}),(0,d.jsx)(p.Text,{size:500,weight:`semibold`,children:r.noDashboardsAvailable})]})},Ff=()=>({gridContainer:_.css`
424
424
  display: grid;
425
425
  gap: 4px;
426
426
  padding: 8px;
@@ -443,11 +443,11 @@ ${e.themeCSS}`),e.fontFamily!==void 0&&(n+=`
443
443
  `,bottomText:_.css`
444
444
  padding-left: 8px;
445
445
  padding-right: 8px;
446
- `,zoomContainer:(0,_.css)({display:`flex`,flexDirection:`row`,alignItems:`center`,gap:`6px`,width:`100%`,boxSizing:`border-box`,padding:`8px 0px`})}),If=e=>{let{onChange:n,values:r,maxCols:i,maxRows:a}=e,o=(0,y.bundleIcon)(y.Settings20Filled,y.Settings20Regular),s=Ff(),c=t.i(),[l,f]=u.useState(r),[m,h]=u.useState(null),[g,_]=u.useState(!1);u.useEffect(()=>{f(r)},[r]);let v=(e,t)=>{_(t.open),h(null)},b=(e,t)=>{let r={spanCols:t+1,spanRows:e+1};f(r),n?.(r),_(!1)},x=(e,t)=>{h({spanCols:t+1,spanRows:e+1})},S=()=>{h(null)},C=()=>{let e=[];for(let t=0;t<a;t++)for(let n=0;n<i;n++){let r=t<l.spanRows&&n<l.spanCols,i=m&&t<m.spanRows&&n<m.spanCols;e.push((0,d.jsx)(`div`,{className:`${s.cell} ${i?s.hoveredCell:``} ${r?s.selectedCell:``}`,onMouseEnter:()=>x(t,n),onClick:()=>b(t,n)},`${t}-${n}`))}return e},w=u.useMemo(()=>30*i+4*(i-1)+32,[i]);return(0,d.jsxs)(p.Menu,{open:g,onOpenChange:v,children:[(0,d.jsx)(p.MenuTrigger,{disableButtonEnhancement:!0,children:(0,d.jsx)(p.Tooltip,{content:c.configure,relationship:`label`,children:(0,d.jsx)(p.MenuButton,{icon:(0,d.jsx)(o,{}),size:`small`,appearance:`transparent`})})}),(0,d.jsxs)(p.MenuPopover,{style:{width:`${w}px`,minWidth:`120px`,padding:8},children:[(0,d.jsx)(`div`,{className:s.zoomContainer,children:(0,d.jsx)(Nn,{label:`Span (${l.spanCols} × ${l.spanRows})`})}),(0,d.jsx)(`div`,{className:s.gridContainer,style:{gridTemplateColumns:`repeat(${i}, 30px)`,gridTemplateRows:`repeat(${a}, 30px)`},onMouseLeave:S,children:C()}),(0,d.jsx)(p.Caption1,{className:s.bottomText,children:c.clickToSetSpan})]})]})},Lf=()=>({dashboardContainer:(0,_.css)({display:`grid`,padding:`20px`,gap:`16px`,backgroundColor:p.tokens.colorNeutralBackground2,gridTemplateColumns:`repeat(auto-fill, minmax(350px, 1fr))`,gridAutoRows:`350px`,overflowY:`auto`,overflowX:`hidden`,"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2},justifyContent:`center`,gridAutoFlow:`dense`}),cardBody:(0,_.css)({display:`flex`,flexDirection:`column`,height:`100%`,minHeight:`320px`}),chartContainer:(0,_.css)({flex:1,width:`100%`,minHeight:`280px`}),cardDescription:(0,_.css)({color:`${p.tokens.colorNeutralForeground2}`}),cardWrapper:(0,_.css)({position:`relative`,height:`100%`,minHeight:`300px`,borderRadius:p.tokens.borderRadiusMedium,transition:`all 0.2s ease`,"&:hover":{transform:`translateY(-2px)`,boxShadow:`${p.tokens.shadow16}`},"&:active":{transform:`translateY(0)`,boxShadow:`${p.tokens.shadow8}`}})}),Rf=600,zf=4,Bf=`app-dashboard`,Vf=30,Hf=({cards:e,containerWidth:t,containerHeight:n=`100%`,maxSpanRows:r=zf,enableDragAndDrop:i=!0,enableCache:a=!0,cacheKeyPrefix:o=Bf,onCardsReorder:s,onCardResize:c})=>{let{warn:l}=L(),f=Lf(),m=`${o}-layout-settings`,h=`${o}-card-order`,{getCachedData:g,setCachedData:_}=re(),v=(0,u.useCallback)(e=>g(e),[g]),y=(0,u.useCallback)((e,t)=>_(e,t,Vf*24*60),[_]),{getCachedData:b,setCachedData:x}=re(),S=(0,u.useCallback)(e=>b(e),[b]),C=(0,u.useCallback)((e,t)=>x(e,t,Vf*24*60),[x]),[w,T]=(0,u.useState)([]),[E,D]=(0,u.useState)({}),O=(0,u.useRef)(null),k=(0,u.useRef)(null),A=(0,u.useRef)(null);(0,u.useEffect)(()=>{(async()=>{try{let t=e,n={};if(a){let[r,i]=await Promise.all([v(m),S(h)]);if(i&&i.length>0){let n=new Map(e.map(e=>[e.id,e])),r=i.filter(e=>n.has(e)),a=e.filter(e=>!i.includes(e.id));t=[...r.map(e=>n.get(e)),...a]}e.forEach(e=>{let t=r?.[e.id];n[e.id]={spanCols:t?.spanCols??e.defaultSpan?.spanCols??1,spanRows:t?.spanRows??e.defaultSpan?.spanRows??1}})}else e.forEach(e=>{n[e.id]={spanCols:e.defaultSpan?.spanCols??1,spanRows:e.defaultSpan?.spanRows??1}});T(t),D(n)}catch(t){l(`Failed to load dashboard data from cache:`,t),T(e);let n={};e.forEach(e=>{n[e.id]={spanCols:e.defaultSpan?.spanCols??1,spanRows:e.defaultSpan?.spanRows??1}}),D(n)}})()},[e,a,m,h,v,S]),(0,u.useEffect)(()=>{!a||Object.keys(E).length===0||(async()=>{try{await y(m,E)}catch(e){l(`Failed to save dashboard layout to cache:`,e)}})()},[E,a,m,y]),(0,u.useEffect)(()=>{!a||w.length===0||(async()=>{try{await C(h,w.map(e=>e.id))}catch(e){l(`Failed to save dashboard order to cache:`,e)}})()},[w,a,h,C]),(0,u.useEffect)(()=>{t<=Rf&&D(()=>{let e={};return w.forEach(t=>{e[t.id]={spanCols:1,spanRows:1}}),e})},[t,w]);let j=(0,u.useMemo)(()=>t>Rf,[t]),{minCardWidth:M,gridGap:N,containerPadding:P}=(0,u.useMemo)(()=>({minCardWidth:350,gridGap:16,containerPadding:20}),[]),F=t-P*2,ee=(0,u.useMemo)(()=>Math.floor((F+N)/(M+N)),[F,N,M]),te=Math.max(ee,1),I=(0,u.useCallback)(()=>{if(O.current!==null&&k.current!==null&&O.current!==k.current){let e=[...w],[t]=e.splice(O.current,1);e.splice(k.current,0,t),T(e),s&&s(e)}O.current=null,k.current=null},[w,s]),ne=(0,u.useCallback)((e,t)=>{let n={spanCols:Math.min(Math.max(t.spanCols,1),te),spanRows:Math.min(Math.max(t.spanRows,1),r)};D(t=>({...t,[e]:n})),c&&c(e,n)},[te,r,c]),R=(0,u.useMemo)(()=>w.reduce((e,t)=>(e[t.id]={spanCols:Math.min(t.defaultSpan?.spanCols??1,ee),spanRows:t.defaultSpan?.spanRows??1},e),{}),[w,ee]),ie=(0,u.useMemo)(()=>w.map((e,t)=>{let a=e.showZoom!==!1&&j,o=e.headerAction||(a?(0,d.jsx)(If,{values:E[e.id]||R[e.id]||{spanCols:1,spanRows:1},maxCols:te,maxRows:r,IsOpen:!1,onChange:t=>ne(e.id,t)}):void 0);return(0,d.jsx)(`div`,{className:f.cardWrapper,draggable:i,onDragStart:()=>i&&(O.current=t),onDragEnter:()=>i&&(k.current=t),onDragOver:e=>i&&e.preventDefault(),onDragEnd:i?I:void 0,style:{gridColumnEnd:E[e.id]?.spanCols?`span ${E[e.id].spanCols}`:`span ${R[e.id]?.spanCols||1}`,gridRowEnd:E[e.id]?.spanRows?`span ${E[e.id].spanRows}`:`span ${R[e.id]?.spanRows||1}`,cursor:i?`grab`:`default`},children:(0,d.jsxs)(p.Card,{className:`${f.cardBody} ${e.className||``}`,children:[(0,d.jsx)(p.CardHeader,{header:(0,d.jsxs)(W,{gap:`0px`,children:[(0,d.jsx)(p.Text,{weight:`semibold`,size:400,children:e.cardTitle}),e.cardDescription&&(0,d.jsx)(p.Text,{className:f.cardDescription,size:200,children:e.cardDescription})]}),action:o}),(0,d.jsx)(`div`,{className:f.chartContainer,style:{height:n,...e.style},children:e.content})]})},e.id)}),[w,i,I,E,f.cardBody,f.cardDescription,f.chartContainer,f.cardWrapper,j,te,r,ne,n,R]);return w.length===0?(0,d.jsx)(Pf,{}):(0,d.jsx)(`div`,{ref:A,className:f.dashboardContainer,style:{height:n},children:ie})},Uf=_.keyframes`
446
+ `,zoomContainer:(0,_.css)({display:`flex`,flexDirection:`row`,alignItems:`center`,gap:`6px`,width:`100%`,boxSizing:`border-box`,padding:`8px 0px`})}),If=e=>{let{onChange:n,values:r,maxCols:i,maxRows:a}=e,o=(0,y.bundleIcon)(y.Settings20Filled,y.Settings20Regular),s=Ff(),c=t.i(),[l,f]=u.useState(r),[m,h]=u.useState(null),[g,_]=u.useState(!1);u.useEffect(()=>{f(r)},[r]);let v=(e,t)=>{_(t.open),h(null)},b=(e,t)=>{let r={spanCols:t+1,spanRows:e+1};f(r),n?.(r),_(!1)},x=(e,t)=>{h({spanCols:t+1,spanRows:e+1})},S=()=>{h(null)},C=()=>{let e=[];for(let t=0;t<a;t++)for(let n=0;n<i;n++){let r=t<l.spanRows&&n<l.spanCols,i=m&&t<m.spanRows&&n<m.spanCols;e.push((0,d.jsx)(`div`,{className:`${s.cell} ${i?s.hoveredCell:``} ${r?s.selectedCell:``}`,onMouseEnter:()=>x(t,n),onClick:()=>b(t,n)},`${t}-${n}`))}return e},w=u.useMemo(()=>30*i+4*(i-1)+32,[i]);return(0,d.jsxs)(p.Menu,{open:g,onOpenChange:v,children:[(0,d.jsx)(p.MenuTrigger,{disableButtonEnhancement:!0,children:(0,d.jsx)(p.Tooltip,{content:c.configure,relationship:`label`,children:(0,d.jsx)(p.MenuButton,{icon:(0,d.jsx)(o,{}),size:`small`,appearance:`transparent`})})}),(0,d.jsxs)(p.MenuPopover,{style:{width:`${w}px`,minWidth:`120px`,padding:8},children:[(0,d.jsx)(`div`,{className:s.zoomContainer,children:(0,d.jsx)(Nn,{label:`Span (${l.spanCols} × ${l.spanRows})`})}),(0,d.jsx)(`div`,{className:s.gridContainer,style:{gridTemplateColumns:`repeat(${i}, 30px)`,gridTemplateRows:`repeat(${a}, 30px)`},onMouseLeave:S,children:C()}),(0,d.jsx)(p.Caption1,{className:s.bottomText,children:c.clickToSetSpan})]})]})},Lf=()=>({dashboardContainer:(0,_.css)({display:`grid`,padding:`20px`,gap:`16px`,backgroundColor:p.tokens.colorNeutralBackground2,gridTemplateColumns:`repeat(auto-fill, minmax(350px, 1fr))`,gridAutoRows:`350px`,overflowY:`auto`,overflowX:`hidden`,"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2},justifyContent:`center`,gridAutoFlow:`dense`}),cardBody:(0,_.css)({display:`flex`,flexDirection:`column`,height:`100%`,minHeight:`320px`}),chartContainer:(0,_.css)({flex:1,width:`100%`,minHeight:`280px`}),cardDescription:(0,_.css)({color:`${p.tokens.colorNeutralForeground2}`}),cardWrapper:(0,_.css)({position:`relative`,height:`100%`,minHeight:`300px`,borderRadius:p.tokens.borderRadiusMedium,transition:`all 0.2s ease`,"&:hover":{transform:`translateY(-2px)`,boxShadow:`${p.tokens.shadow16}`},"&:active":{transform:`translateY(0)`,boxShadow:`${p.tokens.shadow8}`}})}),Rf=600,zf=4,Bf=`app-dashboard`,Vf=30,Hf=({cards:e,containerWidth:t,containerHeight:n=`100%`,maxSpanRows:r=zf,enableDragAndDrop:i=!0,enableCache:a=!0,cacheKeyPrefix:o=Bf,onCardsReorder:s,onCardResize:c})=>{let{warn:l}=L(),f=Lf(),m=`${o}-layout-settings`,h=`${o}-card-order`,{getCachedData:g,setCachedData:_}=re(),v=(0,u.useCallback)(e=>g(e),[g]),y=(0,u.useCallback)((e,t)=>_(e,t,Vf*24*60),[_]),{getCachedData:b,setCachedData:x}=re(),S=(0,u.useCallback)(e=>b(e),[b]),C=(0,u.useCallback)((e,t)=>x(e,t,Vf*24*60),[x]),[w,T]=(0,u.useState)([]),[E,D]=(0,u.useState)({}),O=(0,u.useRef)(null),k=(0,u.useRef)(null),A=(0,u.useRef)(null);(0,u.useEffect)(()=>{(async()=>{try{let t=e,n={};if(a){let[r,i]=await Promise.all([v(m),S(h)]);if(i&&i.length>0){let n=new Map(e.map(e=>[e.id,e])),r=i.filter(e=>n.has(e)),a=e.filter(e=>!i.includes(e.id));t=[...r.map(e=>n.get(e)),...a]}e.forEach(e=>{let t=r?.[e.id];n[e.id]={spanCols:t?.spanCols??e.defaultSpan?.spanCols??1,spanRows:t?.spanRows??e.defaultSpan?.spanRows??1}})}else e.forEach(e=>{n[e.id]={spanCols:e.defaultSpan?.spanCols??1,spanRows:e.defaultSpan?.spanRows??1}});T(t),D(n)}catch(t){l(`Failed to load dashboard data from cache:`,t),T(e);let n={};e.forEach(e=>{n[e.id]={spanCols:e.defaultSpan?.spanCols??1,spanRows:e.defaultSpan?.spanRows??1}}),D(n)}})()},[e,a,m,h,v,S]),(0,u.useEffect)(()=>{!a||Object.keys(E).length===0||(async()=>{try{await y(m,E)}catch(e){l(`Failed to save dashboard layout to cache:`,e)}})()},[E,a,m,y]),(0,u.useEffect)(()=>{!a||w.length===0||(async()=>{try{await C(h,w.map(e=>e.id))}catch(e){l(`Failed to save dashboard order to cache:`,e)}})()},[w,a,h,C]),(0,u.useEffect)(()=>{t<=Rf&&D(()=>{let e={};return w.forEach(t=>{e[t.id]={spanCols:1,spanRows:1}}),e})},[t,w]);let j=(0,u.useMemo)(()=>t>Rf,[t]),{minCardWidth:M,gridGap:ee,containerPadding:N}=(0,u.useMemo)(()=>({minCardWidth:350,gridGap:16,containerPadding:20}),[]),P=t-N*2,te=(0,u.useMemo)(()=>Math.floor((P+ee)/(M+ee)),[P,ee,M]),F=Math.max(te,1),I=(0,u.useCallback)(()=>{if(O.current!==null&&k.current!==null&&O.current!==k.current){let e=[...w],[t]=e.splice(O.current,1);e.splice(k.current,0,t),T(e),s&&s(e)}O.current=null,k.current=null},[w,s]),ne=(0,u.useCallback)((e,t)=>{let n={spanCols:Math.min(Math.max(t.spanCols,1),F),spanRows:Math.min(Math.max(t.spanRows,1),r)};D(t=>({...t,[e]:n})),c&&c(e,n)},[F,r,c]),R=(0,u.useMemo)(()=>w.reduce((e,t)=>(e[t.id]={spanCols:Math.min(t.defaultSpan?.spanCols??1,te),spanRows:t.defaultSpan?.spanRows??1},e),{}),[w,te]),ie=(0,u.useMemo)(()=>w.map((e,t)=>{let a=e.showZoom!==!1&&j,o=e.headerAction||(a?(0,d.jsx)(If,{values:E[e.id]||R[e.id]||{spanCols:1,spanRows:1},maxCols:F,maxRows:r,IsOpen:!1,onChange:t=>ne(e.id,t)}):void 0);return(0,d.jsx)(`div`,{className:f.cardWrapper,draggable:i,onDragStart:()=>i&&(O.current=t),onDragEnter:()=>i&&(k.current=t),onDragOver:e=>i&&e.preventDefault(),onDragEnd:i?I:void 0,style:{gridColumnEnd:E[e.id]?.spanCols?`span ${E[e.id].spanCols}`:`span ${R[e.id]?.spanCols||1}`,gridRowEnd:E[e.id]?.spanRows?`span ${E[e.id].spanRows}`:`span ${R[e.id]?.spanRows||1}`,cursor:i?`grab`:`default`},children:(0,d.jsxs)(p.Card,{className:`${f.cardBody} ${e.className||``}`,children:[(0,d.jsx)(p.CardHeader,{header:(0,d.jsxs)(W,{gap:`0px`,children:[(0,d.jsx)(p.Text,{weight:`semibold`,size:400,children:e.cardTitle}),e.cardDescription&&(0,d.jsx)(p.Text,{className:f.cardDescription,size:200,children:e.cardDescription})]}),action:o}),(0,d.jsx)(`div`,{className:f.chartContainer,style:{height:n,...e.style},children:e.content})]})},e.id)}),[w,i,I,E,f.cardBody,f.cardDescription,f.chartContainer,f.cardWrapper,j,F,r,ne,n,R]);return w.length===0?(0,d.jsx)(Pf,{}):(0,d.jsx)(`div`,{ref:A,className:f.dashboardContainer,style:{height:n},children:ie})},Uf=_.keyframes`
447
447
  0%, 100% { transform: translateY(0px); }
448
448
  50% { transform: translateY(-8px); }
449
449
  `,Wf=_.keyframes`
450
450
  0% { background-position: -200% center; }
451
451
  100% { background-position: 200% center; }
452
- `,Gf=()=>({card:(0,_.css)({width:`100%`,height:`310px`,borderRadius:10,background:p.tokens.colorNeutralBackground1,border:`1px solid ${p.tokens.colorNeutralStroke1}`,boxShadow:p.tokens.shadow8,overflow:`visible`,position:`relative`,padding:`0px 15px !important`,transition:`transform 0.25s ease, box-shadow 0.25s ease`,"&:hover, &:focus-within":{zIndex:10,transform:`translateY(-2px)`,boxShadow:p.tokens.shadow16}}),description:(0,_.css)({fontSize:p.tokens.fontSizeBase300,color:p.tokens.colorNeutralForeground4,lineHeight:p.tokens.lineHeightBase400,position:`relative`,zIndex:1}),footerMetric:(0,_.css)({display:`flex`,flexDirection:`column`,alignItems:`center`,gap:p.tokens.spacingVerticalXXS}),footerIcon:(0,_.css)({color:p.tokens.colorNeutralForeground3,fontSize:p.tokens.fontSizeBase300}),footerLabel:(0,_.css)({fontSize:`${p.tokens.fontSizeBase100} !important`,color:p.tokens.colorNeutralForeground3,textTransform:`uppercase`,letterSpacing:`0.8px`,fontWeight:p.tokens.fontWeightMedium,textAlign:`center`}),footerValue:(0,_.css)({fontSize:`${p.tokens.fontSizeBase400} !important`,fontWeight:p.tokens.fontWeightSemibold,color:p.tokens.colorNeutralForeground2,textAlign:`center`}),footerDivider:(0,_.css)({height:`32px`,borderColor:p.tokens.colorNeutralStroke1}),glowBlob:(0,_.css)({position:`absolute`,top:`-60px`,right:`-60px`,width:`180px`,height:`180px`,borderRadius:`50%`,pointerEvents:`none`,zIndex:0,filter:`blur(40px)`}),glowBlobSuccess:(0,_.css)({position:`absolute`,top:`-40px`,right:`-40px`,width:`160px`,height:`160px`,borderRadius:`50%`,pointerEvents:`none`,zIndex:0,background:`radial-gradient(circle, ${p.tokens.colorPaletteLightGreenBackground2} 0%, transparent 70%)`,opacity:.7,filter:`blur(20px)`}),glowBlobError:(0,_.css)({position:`absolute`,top:`-40px`,right:`-40px`,width:`160px`,height:`160px`,borderRadius:`50%`,pointerEvents:`none`,zIndex:0,background:`radial-gradient(circle, ${p.tokens.colorPaletteRedBackground2} 0%, transparent 70%)`,opacity:.6,filter:`blur(20px)`}),headerActionBadge:(0,_.css)({minWidth:`32px`,height:`32px`,borderRadius:`50% !important`,background:`${p.tokens.colorNeutralBackground3} !important`,border:`none !important`,padding:`0 !important`,display:`flex`,alignItems:`center`,justifyContent:`center`}),kpiContainer:(0,_.css)({width:`100%`,backgroundColor:p.tokens.colorNeutralBackground2,borderRadius:8,display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(min(100%, 280px), 1fr))`,gap:16,padding:16}),iconContainer:(0,_.css)({width:48,height:48,borderRadius:8,display:`grid`,placeItems:`center`,background:p.tokens.colorNeutralBackgroundInverted}),noKpiCard:(0,_.css)({width:280,minHeight:160,display:`flex`,alignItems:`center`,justifyContent:`center`}),noKpiCardContainer:(0,_.css)({width:`100%`,minWidth:`280px`,minHeight:`280px`,borderRadius:`16px`,background:`linear-gradient(135deg, ${p.tokens.colorNeutralBackground1} 0%, ${p.tokens.colorNeutralBackground3} 100%)`,border:`1px solid ${p.tokens.colorNeutralStroke1}`,boxShadow:p.tokens.shadow16,overflow:`hidden`,position:`relative`,padding:`32px`,transition:`transform 0.3s ease, box-shadow 0.3s ease`,"&:hover":{transform:`translateY(-4px)`,boxShadow:p.tokens.shadow28}}),noKpiBackgroundOrb1:(0,_.css)({position:`absolute`,top:`0px`,right:`0px`,width:`180px`,height:`180px`,borderRadius:`50%`,background:`radial-gradient(circle, ${p.tokens.colorBrandBackground2} 0%, transparent 70%)`,opacity:.8,pointerEvents:`none`,filter:`blur(25px)`,transform:`translate(30%, -30%)`}),noKpiBackgroundOrb2:(0,_.css)({position:`absolute`,bottom:`-30px`,left:`-30px`,width:`120px`,height:`120px`,borderRadius:`50%`,background:`radial-gradient(circle, ${p.tokens.colorPaletteLavenderBackground2} 0%, transparent 70%)`,opacity:.5,pointerEvents:`none`,filter:`blur(20px)`}),noKpiIconContainer:(0,_.css)({width:`80px`,height:`80px`,borderRadius:`20px`,background:`linear-gradient(135deg, ${p.tokens.colorBrandBackground} 0%, ${p.tokens.colorBrandBackground2} 100%)`,display:`flex`,alignItems:`center`,justifyContent:`center`,boxShadow:`0 8px 24px ${p.tokens.colorBrandBackground}40`,animation:`${Uf} 3s ease-in-out infinite`,position:`relative`,zIndex:1}),noKpiIcon:(0,_.css)({fontSize:`36px`,color:p.tokens.colorNeutralForegroundOnBrand}),noKpiSparkle1:(0,_.css)({position:`absolute`,top:`-8px`,right:`-8px`,color:p.tokens.colorPaletteYellowForeground1,fontSize:`20px`,animation:`${Uf} 2s ease-in-out infinite 0.5s`}),noKpiSparkle2:(0,_.css)({position:`absolute`,bottom:`-4px`,left:`-8px`,color:p.tokens.colorPaletteLavenderForeground2,fontSize:`16px`,animation:`${Uf} 2.5s ease-in-out infinite`}),noKpiTitle:(0,_.css)({fontSize:`22px`,fontWeight:p.tokens.fontWeightSemibold,color:p.tokens.colorNeutralForeground1,marginTop:`24px`,textAlign:`center`,position:`relative`,zIndex:1}),noKpiSubtitle:(0,_.css)({fontSize:`14px`,color:p.tokens.colorNeutralForeground3,textAlign:`center`,lineHeight:`1.6`,maxWidth:`320px`,marginTop:`8px`,position:`relative`,zIndex:1}),noKpiHighlight:(0,_.css)({background:`linear-gradient(90deg, ${p.tokens.colorBrandForeground1}, ${p.tokens.colorPaletteLavenderForeground2}, ${p.tokens.colorBrandForeground1})`,backgroundSize:`200% auto`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`,fontWeight:p.tokens.fontWeightSemibold,animation:`${Wf} 3s linear infinite`}),noKpiButtonContainer:(0,_.css)({marginTop:`24px`,position:`relative`,zIndex:1}),noKpiButton:(0,_.css)({borderRadius:`10px`,padding:`10px 20px`,fontWeight:p.tokens.fontWeightSemibold,transition:`transform 0.2s ease`,"&:hover":{transform:`scale(1.02)`}}),noKpiDecorativeLine:(0,_.css)({width:`60px`,height:`4px`,borderRadius:`2px`,background:`linear-gradient(90deg, ${p.tokens.colorBrandBackground}, ${p.tokens.colorPaletteLavenderBackground2})`,marginTop:`16px`,position:`relative`,zIndex:1}),footerGrid:(0,_.css)({width:`100%`,display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(80px, 1fr))`,alignItems:`center`})}),Kf=function(e){return e[e.LOWER_IS_BETTER=1]=`LOWER_IS_BETTER`,e[e.HIGHER_IS_BETTER=2]=`HIGHER_IS_BETTER`,e}({}),qf=e=>{let{dataCard:n}=e,r=Gf(),i=t.u(),[a,o]=u.useState(!1),s=u.useCallback(()=>{o(!1)},[]),c=u.useMemo(()=>n.goalMetric===Kf.LOWER_IS_BETTER?n.currentValue<=n.goal:n.currentValue>=n.goal,[n.currentValue,n.goal,n.goalMetric]),l=u.useMemo(()=>c?`success`:`error`,[c]),f=u.useMemo(()=>n.goal.toLocaleString(),[n.goal]),m=u.useMemo(()=>n.currentValue/n.totalItems*100,[n.currentValue,n.totalItems]),h=u.useMemo(()=>c?p.tokens.colorPaletteLightGreenForeground2:p.tokens.colorPaletteRedForeground2,[c]),g=u.useMemo(()=>c?p.tokens.colorPaletteLightGreenBackground1:p.tokens.colorPaletteRedBackground1,[c]),_=u.useMemo(()=>c?p.tokens.colorPaletteLightGreenBorder1:p.tokens.colorPaletteRedBorder1,[c]),v=u.useMemo(()=>({background:g,border:`1px solid ${_}`,color:h,borderRadius:`20px`,padding:`12px 12px`,fontSize:p.tokens.fontSizeBase200,fontWeight:p.tokens.fontWeightSemibold,letterSpacing:`0.3px`,maxWidth:`fit-content`}),[g,_,h]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(p.Card,{className:r.card,onMouseLeave:s,children:[(0,d.jsx)(`div`,{className:c?r.glowBlobSuccess:r.glowBlobError}),(0,d.jsxs)(W,{gap:`m`,padding:`m`,children:[(0,d.jsx)(p.CardHeader,{header:(0,d.jsxs)(W,{direction:`vertical`,gap:`2px`,children:[(0,d.jsx)(W,{direction:`horizontal`,alignItems:`center`,gap:`8px`,children:(0,d.jsx)(p.InfoLabel,{style:{zIndex:99999},infoButton:{popover:{open:a,onOpenChange:(e,t)=>o(t.open)}},info:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(p.Text,{size:300,color:`neutralSecondary`,children:n.description||i.noDescription})}),children:(0,d.jsx)(p.Text,{weight:`bold`,size:300,children:n.title?.toUpperCase()||i.defaultTitle})})}),(0,d.jsx)(p.Text,{size:200,style:{color:p.tokens.colorNeutralForeground3,fontStyle:`italic`},children:n.goalMetric===Kf.LOWER_IS_BETTER?i.lowerIsBetter:i.higherIsBetter})]}),action:(0,d.jsx)(p.Tooltip,{content:c?`✓ ${i.withinGoalThreshold}`:`⚠ ${i.exceedsGoalThreshold}`,relationship:`inaccessible`,children:(0,d.jsx)(p.Badge,{className:r.headerActionBadge,appearance:`ghost`,size:`small`,icon:c?(0,d.jsx)(y.CheckmarkCircleRegular,{style:{color:h,fontSize:`22px`}}):(0,d.jsx)(y.AlertFilled,{style:{color:h,fontSize:`22px`}})})})}),(0,d.jsxs)(W,{gap:`s`,direction:`horizontal`,alignItems:`baseline`,paddingTop:`s`,children:[(0,d.jsxs)(p.Text,{weight:`bold`,size:900,children:[n.currentValue,` `,(0,d.jsx)(`br`,{})]}),(0,d.jsxs)(p.Text,{weight:`semibold`,size:300,color:`neutralSecondary`,children:[`/ `,n.goal,` `,i.goal]})]}),(0,d.jsxs)(W,{gap:`s`,children:[(0,d.jsxs)(W,{direction:`horizontal`,justifyContent:`space-between`,children:[(0,d.jsx)(p.Text,{size:300,color:`neutralSecondary`,children:i.progressGoal}),(0,d.jsxs)(p.Text,{size:300,color:`neutralSecondary`,weight:`bold`,children:[(n.currentValue/n.goal*100).toFixed(2),`%`]})]}),(0,d.jsx)(p.ProgressBar,{value:n.currentValue/n.goal,color:l,style:{height:`8px`},shape:`rounded`})]}),(0,d.jsxs)(p.CardFooter,{children:[(0,d.jsx)(p.Tooltip,{content:i.maxAllowedThreshold,relationship:`inaccessible`,children:(0,d.jsxs)(W,{alignItems:`center`,gap:p.tokens.spacingVerticalXXS,children:[(0,d.jsx)(y.TargetRegular,{className:r.footerIcon}),(0,d.jsx)(p.Text,{className:r.footerLabel,children:`Goal`}),(0,d.jsx)(p.Text,{className:r.footerValue,children:f})]})}),(0,d.jsx)(p.Divider,{vertical:!0,className:r.footerDivider}),(0,d.jsx)(p.Tooltip,{content:i.totalItemsInScope,relationship:`inaccessible`,children:(0,d.jsxs)(W,{alignItems:`center`,gap:p.tokens.spacingVerticalXXS,children:[(0,d.jsx)(y.DocumentRegular,{className:r.footerIcon}),(0,d.jsx)(p.Text,{className:r.footerLabel,children:i.totalItems}),(0,d.jsx)(p.Text,{className:r.footerValue,children:n.totalItems.toLocaleString()})]})}),(0,d.jsx)(p.Divider,{vertical:!0,className:r.footerDivider}),(0,d.jsx)(p.Tooltip,{content:i.currentValueAsPercent,relationship:`inaccessible`,children:(0,d.jsxs)(W,{alignItems:`center`,gap:p.tokens.spacingVerticalXXS,children:[(0,d.jsx)(y.CalculatorRegular,{className:r.footerIcon}),(0,d.jsx)(p.Text,{className:r.footerLabel,children:i.percentOfTotal}),(0,d.jsxs)(p.Text,{className:r.footerValue,children:[m.toFixed(2),`%`]})]})})]}),(0,d.jsx)(W,{children:(0,d.jsx)(p.Badge,{appearance:`outline`,size:`small`,style:v,icon:c?(0,d.jsx)(y.CheckmarkCircleRegular,{style:{fontSize:`14px`}}):(0,d.jsx)(y.AlertFilled,{style:{fontSize:`14px`}}),children:c?i.onTrack:i.exceedGoal})})]})]})})},Jf=()=>{let e=Gf(),t={headerTitle:(0,_.css)({width:`120px`,height:`16px`}),headerBadge:(0,_.css)({width:`32px`,height:`32px`,borderRadius:`50%`}),mainValue:(0,_.css)({width:`80px`,height:`42px`}),goalText:(0,_.css)({width:`70px`,height:`16px`}),progressLabel:(0,_.css)({width:`80px`,height:`12px`}),progressValue:(0,_.css)({width:`50px`,height:`12px`}),progressBar:(0,_.css)({width:`100%`,height:`8px`,borderRadius:`4px`}),footerIcon:(0,_.css)({width:`16px`,height:`16px`,borderRadius:`4px`}),footerLabel:(0,_.css)({width:`50px`,height:`10px`}),footerValue:(0,_.css)({width:`40px`,height:`14px`}),badge:(0,_.css)({width:`90px`,height:`32px`,borderRadius:`20px`})};return(0,d.jsx)(p.Card,{className:e.card,children:(0,d.jsx)(p.Skeleton,{animation:`pulse`,children:(0,d.jsxs)(W,{gap:`m`,padding:`m`,children:[(0,d.jsx)(p.CardHeader,{header:(0,d.jsx)(W,{direction:`horizontal`,alignItems:`center`,gap:`8px`,children:(0,d.jsx)(p.SkeletonItem,{className:t.headerTitle})}),action:(0,d.jsx)(p.SkeletonItem,{className:t.headerBadge,shape:`circle`})}),(0,d.jsxs)(W,{gap:`s`,direction:`horizontal`,alignItems:`baseline`,paddingTop:`s`,children:[(0,d.jsx)(p.SkeletonItem,{className:t.mainValue}),(0,d.jsx)(p.SkeletonItem,{className:t.goalText})]}),(0,d.jsxs)(W,{gap:`s`,children:[(0,d.jsxs)(W,{direction:`horizontal`,justifyContent:`space-between`,children:[(0,d.jsx)(p.SkeletonItem,{className:t.progressLabel}),(0,d.jsx)(p.SkeletonItem,{className:t.progressValue})]}),(0,d.jsx)(p.SkeletonItem,{className:t.progressBar})]}),(0,d.jsxs)(p.CardFooter,{children:[(0,d.jsxs)(W,{direction:`vertical`,alignItems:`center`,gap:`xs`,children:[(0,d.jsx)(p.SkeletonItem,{className:t.footerIcon}),(0,d.jsx)(p.SkeletonItem,{className:t.footerLabel}),(0,d.jsx)(p.SkeletonItem,{className:t.footerValue})]}),(0,d.jsx)(p.Divider,{vertical:!0,style:{height:`32px`,borderColor:p.tokens.colorNeutralStroke1}}),(0,d.jsxs)(W,{direction:`vertical`,alignItems:`center`,gap:`xs`,children:[(0,d.jsx)(p.SkeletonItem,{className:t.footerIcon}),(0,d.jsx)(p.SkeletonItem,{className:t.footerLabel}),(0,d.jsx)(p.SkeletonItem,{className:t.footerValue})]}),(0,d.jsx)(p.Divider,{vertical:!0,style:{height:`32px`,borderColor:p.tokens.colorNeutralStroke1}}),(0,d.jsxs)(W,{direction:`vertical`,alignItems:`center`,gap:`xs`,children:[(0,d.jsx)(p.SkeletonItem,{className:t.footerIcon}),(0,d.jsx)(p.SkeletonItem,{className:t.footerLabel}),(0,d.jsx)(p.SkeletonItem,{className:t.footerValue})]})]}),(0,d.jsx)(W,{children:(0,d.jsx)(p.SkeletonItem,{className:t.badge})})]})})})},Yf=`/sites/mock-site/Lists/Directory Status Config`,Xf=()=>{let e=Gf(),n=t.h(),r=Yf,i=u.useCallback(()=>{let e=`${window.location.origin}${r}/AllItems.aspx`;window.open(e,`_blank`)},[r]);return(0,d.jsxs)(p.Card,{className:e.noKpiCardContainer,children:[(0,d.jsx)(`div`,{className:e.noKpiBackgroundOrb1}),(0,d.jsx)(`div`,{className:e.noKpiBackgroundOrb2}),(0,d.jsxs)(W,{alignItems:`center`,justifyContent:`center`,gap:`s`,children:[(0,d.jsxs)(`div`,{className:e.noKpiIconContainer,children:[(0,d.jsx)(y.DataBarVerticalStarRegular,{className:e.noKpiIcon}),(0,d.jsx)(y.SparkleRegular,{className:e.noKpiSparkle1}),(0,d.jsx)(y.SparkleRegular,{className:e.noKpiSparkle2})]}),(0,d.jsx)(p.Text,{className:e.noKpiTitle,children:n.title}),(0,d.jsx)(`div`,{className:e.noKpiDecorativeLine}),(0,d.jsxs)(p.Text,{className:e.noKpiSubtitle,children:[n.subtitle.split(`{highlight}`)[0],(0,d.jsx)(`span`,{className:e.noKpiHighlight,children:n.highlightText}),n.subtitle.split(`{highlight}`)[1]]}),(0,d.jsx)(`div`,{className:e.noKpiButtonContainer,children:(0,d.jsx)(p.Button,{appearance:`outline`,icon:(0,d.jsx)(y.SettingsRegular,{}),className:e.noKpiButton,onClick:i,children:n.configureButton})})]})]})},Zf=e=>{let{dataCard:n}=e,r=Gf(),i=t.u(),[a,o]=u.useState(!1),s=u.useCallback(()=>{o(!1)},[]),c=u.useMemo(()=>n.goalMetric===Kf.LOWER_IS_BETTER?n.currentValue<=n.goal:n.currentValue>=n.goal,[n.currentValue,n.goal,n.goalMetric]),l=u.useMemo(()=>c?`success`:`error`,[c]),f=u.useMemo(()=>c?p.tokens.colorPaletteLightGreenForeground2:p.tokens.colorPaletteRedForeground2,[c]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(p.Card,{className:r.card,style:{height:`168px`},onMouseLeave:s,children:[(0,d.jsx)(`div`,{className:c?r.glowBlobSuccess:r.glowBlobError}),(0,d.jsxs)(W,{gap:`0px`,padding:`m`,children:[(0,d.jsx)(p.CardHeader,{header:(0,d.jsxs)(W,{direction:`vertical`,gap:`2px`,children:[(0,d.jsx)(W,{direction:`horizontal`,alignItems:`center`,gap:`8px`,children:(0,d.jsx)(p.InfoLabel,{infoButton:{popover:{open:a,onOpenChange:(e,t)=>o(t.open)}},info:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(p.Text,{size:300,color:`neutralSecondary`,children:n.description||i.noDescription})}),children:(0,d.jsx)(p.Text,{weight:`bold`,size:300,children:n.title?.toUpperCase()||i.defaultTitle})})}),(0,d.jsx)(p.Text,{size:200,style:{color:p.tokens.colorNeutralForeground3,fontStyle:`italic`},children:n.goalMetric===Kf.LOWER_IS_BETTER?i.lowerIsBetter:i.higherIsBetter})]}),action:(0,d.jsx)(p.Tooltip,{content:c?`✓ ${i.withinGoalThreshold}`:`⚠ ${i.exceedsGoalThreshold}`,relationship:`inaccessible`,children:(0,d.jsx)(p.Badge,{className:r.headerActionBadge,appearance:`ghost`,size:`small`,icon:c?(0,d.jsx)(y.CheckmarkCircleRegular,{style:{color:f,fontSize:`22px`}}):(0,d.jsx)(y.AlertFilled,{style:{color:f,fontSize:`22px`}})})})}),(0,d.jsxs)(W,{gap:`s`,direction:`horizontal`,alignItems:`baseline`,children:[(0,d.jsxs)(p.Text,{weight:`bold`,size:900,children:[n.currentValue,` `,(0,d.jsx)(`br`,{})]}),(0,d.jsxs)(p.Text,{weight:`semibold`,size:300,color:`neutralSecondary`,children:[`/ `,n.goal,` `,i.goal]})]}),(0,d.jsxs)(W,{gap:`s`,children:[(0,d.jsxs)(W,{direction:`horizontal`,justifyContent:`space-between`,children:[(0,d.jsx)(p.Text,{size:300,color:`neutralSecondary`,children:i.progressGoal}),(0,d.jsxs)(p.Text,{size:300,color:`neutralSecondary`,weight:`bold`,children:[(n.currentValue/n.goal*100).toFixed(2),`%`]})]}),(0,d.jsx)(p.ProgressBar,{value:n.currentValue/n.goal,color:l,style:{height:`3px`},shape:`rounded`})]})]})]})})},Qf=[{identifier:`kpi-1`,title:`Sales Revenue`,currentValue:125,goal:150,totalItems:200,description:`This is a comprehensive description of the Total Sales Revenue KPI for Q1. This metric tracks all revenue generated from product sales, service contracts, and recurring subscriptions across all business units and geographic regions. The goal is set based on historical performance, market conditions, and strategic growth objectives. Performance is evaluated weekly with detailed breakdowns by product category, sales team, and customer segment. This KPI is critical for quarterly business reviews and investor reporting.`,goalMetric:2},{identifier:`kpi-2`,title:`Customer Satisfaction`,currentValue:87,goal:90,totalItems:100,description:`Customer satisfaction score`,goalMetric:1},{identifier:`kpi-3`,title:`Tasks Completed`,currentValue:42,goal:50,totalItems:60,description:`Number of tasks completed this month`,goalMetric:2},{identifier:`kpi-4`,title:`New Customers`,currentValue:156,goal:200,totalItems:250,description:`New customer acquisitions this quarter`,goalMetric:1},{identifier:`kpi-5`,title:`Response Time`,currentValue:2.5,goal:2,totalItems:5,description:`Average response time in hours`,goalMetric:2},{identifier:`kpi-6`,title:`Employee Engagement`,currentValue:78,goal:85,totalItems:100,description:`Employee engagement score percentage`,goalMetric:1}],$f=e=>{let{skeletonCount:t=3,compact:n=!1}=e,r=Gf(),i=Qf;return u.useCallback(()=>Array.from({length:t}).map((e,t)=>(0,d.jsx)(Jf,{},`kpi-skeleton-${t}`)),[t]),(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(W,{gap:`l`,direction:`horizontal`,padding:`l`,paddingTop:`s`,children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`div`,{className:r.kpiContainer,children:i.length>0?i.map(e=>n?(0,d.jsx)(Zf,{dataCard:e},e.identifier):(0,d.jsx)(qf,{dataCard:e},e.identifier)):(0,d.jsx)(Xf,{})})})})})},ep=()=>{let e=u.useRef(``);return e.current||=`fui-`+Math.random().toString(36).slice(2,9),e.current},tp=e=>{let t=ep(),{theme:n=p.webLightTheme,applicationName:r=t,targetDocument:i=document,applyStylesToPortals:a=!0,className:o,styles:s,children:c}=e;return(0,d.jsx)(p.IdPrefixProvider,{value:r,children:(0,d.jsx)(p.FluentProvider,{theme:n,applyStylesToPortals:a,targetDocument:i,className:o,style:s,children:c})})};exports.AIAssistant=Zc,exports.AISearchControl=jc,exports.AISearchIcon=Dc,exports.AISearchIconExample=Nc,exports.AdaptiveCardHost=bc,exports.AdaptiveCardHostThemeType=Cs,exports.AppDashboard=Hf,exports.AspectRatio=vn,exports.Breadcrumb=Un,exports.ButtonMenu=zn,exports.CalendarControl=Lr,exports.CalendarMonth=Cr,exports.Card=sn,exports.Carousel=On,exports.Center=xn,exports.ChatInput=Fc,exports.ChatInputWithMensions=Bc,exports.ChatInputWithMensionsV1=Qc,exports.ChatList=Jc,exports.Container=Cn,exports.ContentRenderer=qc,exports.ContentType=Zt,exports.CustomControlBar=vo,exports.DataGrid=to,exports.DataGridV2=io,exports.DropdownField=zr,exports.EBreakPoints=P,exports.ECalendarViews=K,exports.EGoalMetric=Kf,exports.EMessageType=F,exports.ErrorType=t.w,exports.FluentUIProvider=tp,exports.GenericOverFlowMenu=So,exports.Grid=ln,exports.IconButton=Wn,exports.InputField=Vr,exports.ItemPicker=Qa,exports.KPICard=qf,exports.KPICardCompact=Zf,exports.KPICardSkeleton=Jf,exports.Kpis=$f,exports.Layout=fn,exports.LayoutItem=pn,exports.ListItemActivityMessage=Mf,exports.ListToolbar=vf,exports.LivePersona=uf,exports.LocalizationProvider=t.t,exports.LogLevel=t.T,exports.MaplibreWorldMap=Ss,exports.MarkdownRenderer=Gc,exports.Mensions=Lc,exports.MensionsExample=Rc,exports.MermaidDiagram=lf,exports.Navigation=Co,exports.NoKpisCard=Xf,exports.OptionTime=Ja,exports.Popup=jn,exports.RenderAdaptiveCard=xc,exports.RenderDialog=so,exports.RenderDrawer=co,exports.RenderHeader=lo,exports.RenderLabel=Nn,exports.RenderSpinner=Fn,exports.SearchControl=za,exports.SelectDay=br,exports.SelectMonth=wr,exports.SelectTime=Xa,exports.SelectView=Ba,exports.SelectWeek=Or,exports.ShareDialog=fo,exports.ShowError=mo,exports.ShowMessage=go,exports.Space=hn,exports.SplitPane=An,exports.Stack=H,exports.StackItem=_n,exports.StackV2=W,exports.StackedUsers=Df,exports.TIME_RADIO_GROUP=Ua,exports.TypographyControl=Rn,exports.UniversalProvider=te,exports.UserCard=Tf,exports.VideoPlayer=Eo,exports.cloneDeep=Bt,exports.debounce=Rt,exports.deepMerge=t.S,exports.defaultCalendarControlStrings=Nr,exports.defaultCalendarMonthStrings=Sr,exports.defaultSelectWeekStrings=Tr,exports.detectContentType=rn,exports.en=t.C,exports.every=Xt,exports.filter=Jt,exports.formatTime=Ga,exports.get=Ht,exports.getContentType=an,exports.groupBy=Kt,exports.isEmpty=Vt,exports.map=qt,exports.set=Ut,exports.some=Yt,exports.throttle=zt,exports.timeKey=Ka,exports.uniq=Wt,exports.uniqBy=Gt,exports.useAIAssistantStrings=t.n,exports.useAISearchControlStrings=t.r,exports.useAppDashboardStrings=t.i,exports.useApplicationContext=I,exports.useAspectRatioStyles=yn,exports.useBrandCenterFonts=_e,exports.useCalendar=pr,exports.useCalendarStrings=t.a,exports.useCalendarStyles=Qn,exports.useCenterStyles=bn,exports.useCommonStrings=t.o,exports.useComponentStrings=t.s,exports.useComponentUtils=ve,exports.useDataGridStyles=eo,exports.useDateUtils=Pt,exports.useDayViewStyles=mr,exports.useGraphAPI=ne,exports.useGridStyles=cn,exports.useImageUtils=Lt,exports.useIndexedDBCache=re,exports.useInputFieldStrings=t.c,exports.useItemPickerStrings=t.l,exports.useKpiStrings=t.u,exports.useLayoutStyles=un,exports.useListItemActivityStrings=t.d,exports.useLocalization=t.f,exports.useLogging=L,exports.useMensionsStrings=t.p,exports.useMensionsStyles=Ic,exports.useMermaidDiagramStrings=t.m,exports.useMermaidDiagramStyles=of,exports.useNavigationStyles=wo,exports.useNoKpiStrings=t.h,exports.useOptionTimeStyles=Ha,exports.usePolling=R,exports.useRenderHeaderStyles=uo,exports.useSearchControlStrings=t.g,exports.useSelectTimeStyles=Va,exports.useShareDialogStrings=t._,exports.useShowErrorStyles=po,exports.useShowMessageStyles=ho,exports.useSpaceStyles=mn,exports.useSplitPaneStyles=kn,exports.useStackStyles=gn,exports.useStrings=t.v,exports.useStyles=$c,exports.useTimeZoneHelper=ie,exports.useUserCardStrings=t.y,exports.useUtils=Kn,exports.useVideoStyles=To,exports.useWeekViewStyles=tr,exports.useWorldMapStrings=t.b;
452
+ `,Gf=()=>({card:(0,_.css)({width:`100%`,height:`310px`,borderRadius:10,background:p.tokens.colorNeutralBackground1,border:`1px solid ${p.tokens.colorNeutralStroke1}`,boxShadow:p.tokens.shadow8,overflow:`visible`,position:`relative`,padding:`0px 15px !important`,transition:`transform 0.25s ease, box-shadow 0.25s ease`,"&:hover, &:focus-within":{zIndex:10,transform:`translateY(-2px)`,boxShadow:p.tokens.shadow16}}),description:(0,_.css)({fontSize:p.tokens.fontSizeBase300,color:p.tokens.colorNeutralForeground4,lineHeight:p.tokens.lineHeightBase400,position:`relative`,zIndex:1}),footerMetric:(0,_.css)({display:`flex`,flexDirection:`column`,alignItems:`center`,gap:p.tokens.spacingVerticalXXS}),footerIcon:(0,_.css)({color:p.tokens.colorNeutralForeground3,fontSize:p.tokens.fontSizeBase300}),footerLabel:(0,_.css)({fontSize:`${p.tokens.fontSizeBase100} !important`,color:p.tokens.colorNeutralForeground3,textTransform:`uppercase`,letterSpacing:`0.8px`,fontWeight:p.tokens.fontWeightMedium,textAlign:`center`}),footerValue:(0,_.css)({fontSize:`${p.tokens.fontSizeBase400} !important`,fontWeight:p.tokens.fontWeightSemibold,color:p.tokens.colorNeutralForeground2,textAlign:`center`}),footerDivider:(0,_.css)({height:`32px`,borderColor:p.tokens.colorNeutralStroke1}),glowBlob:(0,_.css)({position:`absolute`,top:`-60px`,right:`-60px`,width:`180px`,height:`180px`,borderRadius:`50%`,pointerEvents:`none`,zIndex:0,filter:`blur(40px)`}),glowBlobSuccess:(0,_.css)({position:`absolute`,top:`-40px`,right:`-40px`,width:`160px`,height:`160px`,borderRadius:`50%`,pointerEvents:`none`,zIndex:0,background:`radial-gradient(circle, ${p.tokens.colorPaletteLightGreenBackground2} 0%, transparent 70%)`,opacity:.7,filter:`blur(20px)`}),glowBlobError:(0,_.css)({position:`absolute`,top:`-40px`,right:`-40px`,width:`160px`,height:`160px`,borderRadius:`50%`,pointerEvents:`none`,zIndex:0,background:`radial-gradient(circle, ${p.tokens.colorPaletteRedBackground2} 0%, transparent 70%)`,opacity:.6,filter:`blur(20px)`}),headerActionBadge:(0,_.css)({minWidth:`32px`,height:`32px`,borderRadius:`50% !important`,background:`${p.tokens.colorNeutralBackground3} !important`,border:`none !important`,padding:`0 !important`,display:`flex`,alignItems:`center`,justifyContent:`center`}),kpiContainer:(0,_.css)({width:`100%`,backgroundColor:p.tokens.colorNeutralBackground2,borderRadius:8,display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(min(100%, 280px), 1fr))`,gap:16,padding:16}),iconContainer:(0,_.css)({width:48,height:48,borderRadius:8,display:`grid`,placeItems:`center`,background:p.tokens.colorNeutralBackgroundInverted}),noKpiCard:(0,_.css)({width:280,minHeight:160,display:`flex`,alignItems:`center`,justifyContent:`center`}),noKpiCardContainer:(0,_.css)({width:`100%`,minWidth:`280px`,minHeight:`280px`,borderRadius:`16px`,background:`linear-gradient(135deg, ${p.tokens.colorNeutralBackground1} 0%, ${p.tokens.colorNeutralBackground3} 100%)`,border:`1px solid ${p.tokens.colorNeutralStroke1}`,boxShadow:p.tokens.shadow16,overflow:`hidden`,position:`relative`,padding:`32px`,transition:`transform 0.3s ease, box-shadow 0.3s ease`,"&:hover":{transform:`translateY(-4px)`,boxShadow:p.tokens.shadow28}}),noKpiBackgroundOrb1:(0,_.css)({position:`absolute`,top:`0px`,right:`0px`,width:`180px`,height:`180px`,borderRadius:`50%`,background:`radial-gradient(circle, ${p.tokens.colorBrandBackground2} 0%, transparent 70%)`,opacity:.8,pointerEvents:`none`,filter:`blur(25px)`,transform:`translate(30%, -30%)`}),noKpiBackgroundOrb2:(0,_.css)({position:`absolute`,bottom:`-30px`,left:`-30px`,width:`120px`,height:`120px`,borderRadius:`50%`,background:`radial-gradient(circle, ${p.tokens.colorPaletteLavenderBackground2} 0%, transparent 70%)`,opacity:.5,pointerEvents:`none`,filter:`blur(20px)`}),noKpiIconContainer:(0,_.css)({width:`80px`,height:`80px`,borderRadius:`20px`,background:`linear-gradient(135deg, ${p.tokens.colorBrandBackground} 0%, ${p.tokens.colorBrandBackground2} 100%)`,display:`flex`,alignItems:`center`,justifyContent:`center`,boxShadow:`0 8px 24px ${p.tokens.colorBrandBackground}40`,animation:`${Uf} 3s ease-in-out infinite`,position:`relative`,zIndex:1}),noKpiIcon:(0,_.css)({fontSize:`36px`,color:p.tokens.colorNeutralForegroundOnBrand}),noKpiSparkle1:(0,_.css)({position:`absolute`,top:`-8px`,right:`-8px`,color:p.tokens.colorPaletteYellowForeground1,fontSize:`20px`,animation:`${Uf} 2s ease-in-out infinite 0.5s`}),noKpiSparkle2:(0,_.css)({position:`absolute`,bottom:`-4px`,left:`-8px`,color:p.tokens.colorPaletteLavenderForeground2,fontSize:`16px`,animation:`${Uf} 2.5s ease-in-out infinite`}),noKpiTitle:(0,_.css)({fontSize:`22px`,fontWeight:p.tokens.fontWeightSemibold,color:p.tokens.colorNeutralForeground1,marginTop:`24px`,textAlign:`center`,position:`relative`,zIndex:1}),noKpiSubtitle:(0,_.css)({fontSize:`14px`,color:p.tokens.colorNeutralForeground3,textAlign:`center`,lineHeight:`1.6`,maxWidth:`320px`,marginTop:`8px`,position:`relative`,zIndex:1}),noKpiHighlight:(0,_.css)({background:`linear-gradient(90deg, ${p.tokens.colorBrandForeground1}, ${p.tokens.colorPaletteLavenderForeground2}, ${p.tokens.colorBrandForeground1})`,backgroundSize:`200% auto`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`,fontWeight:p.tokens.fontWeightSemibold,animation:`${Wf} 3s linear infinite`}),noKpiButtonContainer:(0,_.css)({marginTop:`24px`,position:`relative`,zIndex:1}),noKpiButton:(0,_.css)({borderRadius:`10px`,padding:`10px 20px`,fontWeight:p.tokens.fontWeightSemibold,transition:`transform 0.2s ease`,"&:hover":{transform:`scale(1.02)`}}),noKpiDecorativeLine:(0,_.css)({width:`60px`,height:`4px`,borderRadius:`2px`,background:`linear-gradient(90deg, ${p.tokens.colorBrandBackground}, ${p.tokens.colorPaletteLavenderBackground2})`,marginTop:`16px`,position:`relative`,zIndex:1}),footerGrid:(0,_.css)({width:`100%`,display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(80px, 1fr))`,alignItems:`center`})}),Kf=function(e){return e[e.LOWER_IS_BETTER=1]=`LOWER_IS_BETTER`,e[e.HIGHER_IS_BETTER=2]=`HIGHER_IS_BETTER`,e}({}),qf=e=>{let{dataCard:n}=e,r=Gf(),i=t.u(),[a,o]=u.useState(!1),s=u.useCallback(()=>{o(!1)},[]),c=u.useMemo(()=>n.goalMetric===Kf.LOWER_IS_BETTER?n.currentValue<=n.goal:n.currentValue>=n.goal,[n.currentValue,n.goal,n.goalMetric]),l=u.useMemo(()=>c?`success`:`error`,[c]),f=u.useMemo(()=>n.goal.toLocaleString(),[n.goal]),m=u.useMemo(()=>n.currentValue/n.totalItems*100,[n.currentValue,n.totalItems]),h=u.useMemo(()=>c?p.tokens.colorPaletteLightGreenForeground2:p.tokens.colorPaletteRedForeground2,[c]),g=u.useMemo(()=>c?p.tokens.colorPaletteLightGreenBackground1:p.tokens.colorPaletteRedBackground1,[c]),_=u.useMemo(()=>c?p.tokens.colorPaletteLightGreenBorder1:p.tokens.colorPaletteRedBorder1,[c]),v=u.useMemo(()=>({background:g,border:`1px solid ${_}`,color:h,borderRadius:`20px`,padding:`12px 12px`,fontSize:p.tokens.fontSizeBase200,fontWeight:p.tokens.fontWeightSemibold,letterSpacing:`0.3px`,maxWidth:`fit-content`}),[g,_,h]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(p.Card,{className:r.card,onMouseLeave:s,children:[(0,d.jsx)(`div`,{className:c?r.glowBlobSuccess:r.glowBlobError}),(0,d.jsxs)(W,{gap:`m`,padding:`m`,children:[(0,d.jsx)(p.CardHeader,{header:(0,d.jsxs)(W,{direction:`vertical`,gap:`2px`,children:[(0,d.jsx)(W,{direction:`horizontal`,alignItems:`center`,gap:`8px`,children:(0,d.jsx)(p.InfoLabel,{style:{zIndex:99999},infoButton:{popover:{open:a,onOpenChange:(e,t)=>o(t.open)}},info:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(p.Text,{size:300,color:`neutralSecondary`,children:n.description||i.noDescription})}),children:(0,d.jsx)(p.Text,{weight:`bold`,size:300,children:n.title?.toUpperCase()||i.defaultTitle})})}),(0,d.jsx)(p.Text,{size:200,style:{color:p.tokens.colorNeutralForeground3,fontStyle:`italic`},children:n.goalMetric===Kf.LOWER_IS_BETTER?i.lowerIsBetter:i.higherIsBetter})]}),action:(0,d.jsx)(p.Tooltip,{content:c?`✓ ${i.withinGoalThreshold}`:`⚠ ${i.exceedsGoalThreshold}`,relationship:`inaccessible`,children:(0,d.jsx)(p.Badge,{className:r.headerActionBadge,appearance:`ghost`,size:`small`,icon:c?(0,d.jsx)(y.CheckmarkCircleRegular,{style:{color:h,fontSize:`22px`}}):(0,d.jsx)(y.AlertFilled,{style:{color:h,fontSize:`22px`}})})})}),(0,d.jsxs)(W,{gap:`s`,direction:`horizontal`,alignItems:`baseline`,paddingTop:`s`,children:[(0,d.jsxs)(p.Text,{weight:`bold`,size:900,children:[n.currentValue,` `,(0,d.jsx)(`br`,{})]}),(0,d.jsxs)(p.Text,{weight:`semibold`,size:300,color:`neutralSecondary`,children:[`/ `,n.goal,` `,i.goal]})]}),(0,d.jsxs)(W,{gap:`s`,children:[(0,d.jsxs)(W,{direction:`horizontal`,justifyContent:`space-between`,children:[(0,d.jsx)(p.Text,{size:300,color:`neutralSecondary`,children:i.progressGoal}),(0,d.jsxs)(p.Text,{size:300,color:`neutralSecondary`,weight:`bold`,children:[(n.currentValue/n.goal*100).toFixed(2),`%`]})]}),(0,d.jsx)(p.ProgressBar,{value:n.currentValue/n.goal,color:l,style:{height:`8px`},shape:`rounded`})]}),(0,d.jsxs)(p.CardFooter,{children:[(0,d.jsx)(p.Tooltip,{content:i.maxAllowedThreshold,relationship:`inaccessible`,children:(0,d.jsxs)(W,{alignItems:`center`,gap:p.tokens.spacingVerticalXXS,children:[(0,d.jsx)(y.TargetRegular,{className:r.footerIcon}),(0,d.jsx)(p.Text,{className:r.footerLabel,children:`Goal`}),(0,d.jsx)(p.Text,{className:r.footerValue,children:f})]})}),(0,d.jsx)(p.Divider,{vertical:!0,className:r.footerDivider}),(0,d.jsx)(p.Tooltip,{content:i.totalItemsInScope,relationship:`inaccessible`,children:(0,d.jsxs)(W,{alignItems:`center`,gap:p.tokens.spacingVerticalXXS,children:[(0,d.jsx)(y.DocumentRegular,{className:r.footerIcon}),(0,d.jsx)(p.Text,{className:r.footerLabel,children:i.totalItems}),(0,d.jsx)(p.Text,{className:r.footerValue,children:n.totalItems.toLocaleString()})]})}),(0,d.jsx)(p.Divider,{vertical:!0,className:r.footerDivider}),(0,d.jsx)(p.Tooltip,{content:i.currentValueAsPercent,relationship:`inaccessible`,children:(0,d.jsxs)(W,{alignItems:`center`,gap:p.tokens.spacingVerticalXXS,children:[(0,d.jsx)(y.CalculatorRegular,{className:r.footerIcon}),(0,d.jsx)(p.Text,{className:r.footerLabel,children:i.percentOfTotal}),(0,d.jsxs)(p.Text,{className:r.footerValue,children:[m.toFixed(2),`%`]})]})})]}),(0,d.jsx)(W,{children:(0,d.jsx)(p.Badge,{appearance:`outline`,size:`small`,style:v,icon:c?(0,d.jsx)(y.CheckmarkCircleRegular,{style:{fontSize:`14px`}}):(0,d.jsx)(y.AlertFilled,{style:{fontSize:`14px`}}),children:c?i.onTrack:i.exceedGoal})})]})]})})},Jf=()=>{let e=Gf(),t={headerTitle:(0,_.css)({width:`120px`,height:`16px`}),headerBadge:(0,_.css)({width:`32px`,height:`32px`,borderRadius:`50%`}),mainValue:(0,_.css)({width:`80px`,height:`42px`}),goalText:(0,_.css)({width:`70px`,height:`16px`}),progressLabel:(0,_.css)({width:`80px`,height:`12px`}),progressValue:(0,_.css)({width:`50px`,height:`12px`}),progressBar:(0,_.css)({width:`100%`,height:`8px`,borderRadius:`4px`}),footerIcon:(0,_.css)({width:`16px`,height:`16px`,borderRadius:`4px`}),footerLabel:(0,_.css)({width:`50px`,height:`10px`}),footerValue:(0,_.css)({width:`40px`,height:`14px`}),badge:(0,_.css)({width:`90px`,height:`32px`,borderRadius:`20px`})};return(0,d.jsx)(p.Card,{className:e.card,children:(0,d.jsx)(p.Skeleton,{animation:`pulse`,children:(0,d.jsxs)(W,{gap:`m`,padding:`m`,children:[(0,d.jsx)(p.CardHeader,{header:(0,d.jsx)(W,{direction:`horizontal`,alignItems:`center`,gap:`8px`,children:(0,d.jsx)(p.SkeletonItem,{className:t.headerTitle})}),action:(0,d.jsx)(p.SkeletonItem,{className:t.headerBadge,shape:`circle`})}),(0,d.jsxs)(W,{gap:`s`,direction:`horizontal`,alignItems:`baseline`,paddingTop:`s`,children:[(0,d.jsx)(p.SkeletonItem,{className:t.mainValue}),(0,d.jsx)(p.SkeletonItem,{className:t.goalText})]}),(0,d.jsxs)(W,{gap:`s`,children:[(0,d.jsxs)(W,{direction:`horizontal`,justifyContent:`space-between`,children:[(0,d.jsx)(p.SkeletonItem,{className:t.progressLabel}),(0,d.jsx)(p.SkeletonItem,{className:t.progressValue})]}),(0,d.jsx)(p.SkeletonItem,{className:t.progressBar})]}),(0,d.jsxs)(p.CardFooter,{children:[(0,d.jsxs)(W,{direction:`vertical`,alignItems:`center`,gap:`xs`,children:[(0,d.jsx)(p.SkeletonItem,{className:t.footerIcon}),(0,d.jsx)(p.SkeletonItem,{className:t.footerLabel}),(0,d.jsx)(p.SkeletonItem,{className:t.footerValue})]}),(0,d.jsx)(p.Divider,{vertical:!0,style:{height:`32px`,borderColor:p.tokens.colorNeutralStroke1}}),(0,d.jsxs)(W,{direction:`vertical`,alignItems:`center`,gap:`xs`,children:[(0,d.jsx)(p.SkeletonItem,{className:t.footerIcon}),(0,d.jsx)(p.SkeletonItem,{className:t.footerLabel}),(0,d.jsx)(p.SkeletonItem,{className:t.footerValue})]}),(0,d.jsx)(p.Divider,{vertical:!0,style:{height:`32px`,borderColor:p.tokens.colorNeutralStroke1}}),(0,d.jsxs)(W,{direction:`vertical`,alignItems:`center`,gap:`xs`,children:[(0,d.jsx)(p.SkeletonItem,{className:t.footerIcon}),(0,d.jsx)(p.SkeletonItem,{className:t.footerLabel}),(0,d.jsx)(p.SkeletonItem,{className:t.footerValue})]})]}),(0,d.jsx)(W,{children:(0,d.jsx)(p.SkeletonItem,{className:t.badge})})]})})})},Yf=`/sites/mock-site/Lists/Directory Status Config`,Xf=()=>{let e=Gf(),n=t.h(),r=Yf,i=u.useCallback(()=>{let e=`${window.location.origin}${r}/AllItems.aspx`;window.open(e,`_blank`)},[r]);return(0,d.jsxs)(p.Card,{className:e.noKpiCardContainer,children:[(0,d.jsx)(`div`,{className:e.noKpiBackgroundOrb1}),(0,d.jsx)(`div`,{className:e.noKpiBackgroundOrb2}),(0,d.jsxs)(W,{alignItems:`center`,justifyContent:`center`,gap:`s`,children:[(0,d.jsxs)(`div`,{className:e.noKpiIconContainer,children:[(0,d.jsx)(y.DataBarVerticalStarRegular,{className:e.noKpiIcon}),(0,d.jsx)(y.SparkleRegular,{className:e.noKpiSparkle1}),(0,d.jsx)(y.SparkleRegular,{className:e.noKpiSparkle2})]}),(0,d.jsx)(p.Text,{className:e.noKpiTitle,children:n.title}),(0,d.jsx)(`div`,{className:e.noKpiDecorativeLine}),(0,d.jsxs)(p.Text,{className:e.noKpiSubtitle,children:[n.subtitle.split(`{highlight}`)[0],(0,d.jsx)(`span`,{className:e.noKpiHighlight,children:n.highlightText}),n.subtitle.split(`{highlight}`)[1]]}),(0,d.jsx)(`div`,{className:e.noKpiButtonContainer,children:(0,d.jsx)(p.Button,{appearance:`outline`,icon:(0,d.jsx)(y.SettingsRegular,{}),className:e.noKpiButton,onClick:i,children:n.configureButton})})]})]})},Zf=e=>{let{dataCard:n}=e,r=Gf(),i=t.u(),[a,o]=u.useState(!1),s=u.useCallback(()=>{o(!1)},[]),c=u.useMemo(()=>n.goalMetric===Kf.LOWER_IS_BETTER?n.currentValue<=n.goal:n.currentValue>=n.goal,[n.currentValue,n.goal,n.goalMetric]),l=u.useMemo(()=>c?`success`:`error`,[c]),f=u.useMemo(()=>c?p.tokens.colorPaletteLightGreenForeground2:p.tokens.colorPaletteRedForeground2,[c]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(p.Card,{className:r.card,style:{height:`168px`},onMouseLeave:s,children:[(0,d.jsx)(`div`,{className:c?r.glowBlobSuccess:r.glowBlobError}),(0,d.jsxs)(W,{gap:`0px`,padding:`m`,children:[(0,d.jsx)(p.CardHeader,{header:(0,d.jsxs)(W,{direction:`vertical`,gap:`2px`,children:[(0,d.jsx)(W,{direction:`horizontal`,alignItems:`center`,gap:`8px`,children:(0,d.jsx)(p.InfoLabel,{infoButton:{popover:{open:a,onOpenChange:(e,t)=>o(t.open)}},info:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(p.Text,{size:300,color:`neutralSecondary`,children:n.description||i.noDescription})}),children:(0,d.jsx)(p.Text,{weight:`bold`,size:300,children:n.title?.toUpperCase()||i.defaultTitle})})}),(0,d.jsx)(p.Text,{size:200,style:{color:p.tokens.colorNeutralForeground3,fontStyle:`italic`},children:n.goalMetric===Kf.LOWER_IS_BETTER?i.lowerIsBetter:i.higherIsBetter})]}),action:(0,d.jsx)(p.Tooltip,{content:c?`✓ ${i.withinGoalThreshold}`:`⚠ ${i.exceedsGoalThreshold}`,relationship:`inaccessible`,children:(0,d.jsx)(p.Badge,{className:r.headerActionBadge,appearance:`ghost`,size:`small`,icon:c?(0,d.jsx)(y.CheckmarkCircleRegular,{style:{color:f,fontSize:`22px`}}):(0,d.jsx)(y.AlertFilled,{style:{color:f,fontSize:`22px`}})})})}),(0,d.jsxs)(W,{gap:`s`,direction:`horizontal`,alignItems:`baseline`,children:[(0,d.jsxs)(p.Text,{weight:`bold`,size:900,children:[n.currentValue,` `,(0,d.jsx)(`br`,{})]}),(0,d.jsxs)(p.Text,{weight:`semibold`,size:300,color:`neutralSecondary`,children:[`/ `,n.goal,` `,i.goal]})]}),(0,d.jsxs)(W,{gap:`s`,children:[(0,d.jsxs)(W,{direction:`horizontal`,justifyContent:`space-between`,children:[(0,d.jsx)(p.Text,{size:300,color:`neutralSecondary`,children:i.progressGoal}),(0,d.jsxs)(p.Text,{size:300,color:`neutralSecondary`,weight:`bold`,children:[(n.currentValue/n.goal*100).toFixed(2),`%`]})]}),(0,d.jsx)(p.ProgressBar,{value:n.currentValue/n.goal,color:l,style:{height:`3px`},shape:`rounded`})]})]})]})})},Qf=[{identifier:`kpi-1`,title:`Sales Revenue`,currentValue:125,goal:150,totalItems:200,description:`This is a comprehensive description of the Total Sales Revenue KPI for Q1. This metric tracks all revenue generated from product sales, service contracts, and recurring subscriptions across all business units and geographic regions. The goal is set based on historical performance, market conditions, and strategic growth objectives. Performance is evaluated weekly with detailed breakdowns by product category, sales team, and customer segment. This KPI is critical for quarterly business reviews and investor reporting.`,goalMetric:2},{identifier:`kpi-2`,title:`Customer Satisfaction`,currentValue:87,goal:90,totalItems:100,description:`Customer satisfaction score`,goalMetric:1},{identifier:`kpi-3`,title:`Tasks Completed`,currentValue:42,goal:50,totalItems:60,description:`Number of tasks completed this month`,goalMetric:2},{identifier:`kpi-4`,title:`New Customers`,currentValue:156,goal:200,totalItems:250,description:`New customer acquisitions this quarter`,goalMetric:1},{identifier:`kpi-5`,title:`Response Time`,currentValue:2.5,goal:2,totalItems:5,description:`Average response time in hours`,goalMetric:2},{identifier:`kpi-6`,title:`Employee Engagement`,currentValue:78,goal:85,totalItems:100,description:`Employee engagement score percentage`,goalMetric:1}],$f=e=>{let{skeletonCount:t=3,compact:n=!1}=e,r=Gf(),i=Qf;return u.useCallback(()=>Array.from({length:t}).map((e,t)=>(0,d.jsx)(Jf,{},`kpi-skeleton-${t}`)),[t]),(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(W,{gap:`l`,direction:`horizontal`,padding:`l`,paddingTop:`s`,children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(`div`,{className:r.kpiContainer,children:i.length>0?i.map(e=>n?(0,d.jsx)(Zf,{dataCard:e},e.identifier):(0,d.jsx)(qf,{dataCard:e},e.identifier)):(0,d.jsx)(Xf,{})})})})})},ep=()=>{let e=u.useRef(``);return e.current||=`fui-`+Math.random().toString(36).slice(2,9),e.current},tp=e=>{let t=ep(),{theme:n=p.webLightTheme,applicationName:r=t,targetDocument:i=document,applyStylesToPortals:a=!0,className:o,styles:s,children:c}=e;return(0,d.jsx)(p.IdPrefixProvider,{value:r,children:(0,d.jsx)(p.FluentProvider,{theme:n,applyStylesToPortals:a,targetDocument:i,className:o,style:s,children:c})})};exports.AIAssistant=Zc,exports.AISearchControl=jc,exports.AISearchIcon=Dc,exports.AISearchIconExample=Nc,exports.AdaptiveCardHost=bc,exports.AdaptiveCardHostThemeType=Cs,exports.AppDashboard=Hf,exports.AspectRatio=vn,exports.Breadcrumb=Un,exports.ButtonMenu=zn,exports.CalendarControl=Lr,exports.CalendarMonth=Cr,exports.Card=sn,exports.Carousel=On,exports.Center=xn,exports.ChatInput=Fc,exports.ChatInputWithMensions=Bc,exports.ChatInputWithMensionsV1=Qc,exports.ChatList=Jc,exports.Container=Cn,exports.ContentRenderer=qc,exports.ContentType=Zt,exports.CustomControlBar=vo,exports.DataGrid=to,exports.DataGridV2=io,exports.DropdownField=zr,exports.EBreakPoints=N,exports.ECalendarViews=K,exports.EGoalMetric=Kf,exports.EMessageType=P,exports.ErrorType=t.w,exports.FluentUIProvider=tp,exports.GenericOverFlowMenu=So,exports.Grid=ln,exports.IconButton=Wn,exports.InputField=Vr,exports.ItemPicker=Qa,exports.KPICard=qf,exports.KPICardCompact=Zf,exports.KPICardSkeleton=Jf,exports.Kpis=$f,exports.Layout=fn,exports.LayoutItem=pn,exports.ListItemActivityMessage=Mf,exports.ListToolbar=vf,exports.LivePersona=uf,exports.LocalizationProvider=t.t,exports.LogLevel=t.T,exports.MaplibreWorldMap=Ss,exports.MarkdownRenderer=Gc,exports.Mensions=Lc,exports.MensionsExample=Rc,exports.MermaidDiagram=lf,exports.Navigation=Co,exports.NoKpisCard=Xf,exports.OptionTime=Ja,exports.Popup=jn,exports.RenderAdaptiveCard=xc,exports.RenderDialog=so,exports.RenderDrawer=co,exports.RenderHeader=lo,exports.RenderLabel=Nn,exports.RenderSpinner=Fn,exports.SearchControl=za,exports.SelectDay=br,exports.SelectMonth=wr,exports.SelectTime=Xa,exports.SelectView=Ba,exports.SelectWeek=Or,exports.ShareDialog=fo,exports.ShowError=mo,exports.ShowMessage=go,exports.Space=hn,exports.SplitPane=An,exports.Stack=H,exports.StackItem=_n,exports.StackV2=W,exports.StackedUsers=Df,exports.TIME_RADIO_GROUP=Ua,exports.TypographyControl=Rn,exports.UniversalProvider=F,exports.UserCard=Tf,exports.VideoPlayer=Eo,exports.cloneDeep=Bt,exports.debounce=Rt,exports.deepMerge=t.S,exports.defaultCalendarControlStrings=Nr,exports.defaultCalendarMonthStrings=Sr,exports.defaultSelectWeekStrings=Tr,exports.detectContentType=rn,exports.en=t.C,exports.every=Xt,exports.filter=Jt,exports.formatTime=Ga,exports.get=Ht,exports.getContentType=an,exports.groupBy=Kt,exports.isEmpty=Vt,exports.map=qt,exports.set=Ut,exports.some=Yt,exports.throttle=zt,exports.timeKey=Ka,exports.uniq=Wt,exports.uniqBy=Gt,exports.useAIAssistantStrings=t.n,exports.useAISearchControlStrings=t.r,exports.useAppDashboardStrings=t.i,exports.useApplicationContext=I,exports.useAspectRatioStyles=yn,exports.useBrandCenterFonts=_e,exports.useCalendar=pr,exports.useCalendarStrings=t.a,exports.useCalendarStyles=Qn,exports.useCenterStyles=bn,exports.useCommonStrings=t.o,exports.useComponentStrings=t.s,exports.useComponentUtils=ve,exports.useDataGridStyles=eo,exports.useDateUtils=Pt,exports.useDayViewStyles=mr,exports.useGraphAPI=ne,exports.useGridStyles=cn,exports.useImageUtils=Lt,exports.useIndexedDBCache=re,exports.useInputFieldStrings=t.c,exports.useItemPickerStrings=t.l,exports.useKpiStrings=t.u,exports.useLayoutStyles=un,exports.useListItemActivityStrings=t.d,exports.useLocalization=t.f,exports.useLogging=L,exports.useMensionsStrings=t.p,exports.useMensionsStyles=Ic,exports.useMermaidDiagramStrings=t.m,exports.useMermaidDiagramStyles=of,exports.useNavigationStyles=wo,exports.useNoKpiStrings=t.h,exports.useOptionTimeStyles=Ha,exports.usePolling=R,exports.useRenderHeaderStyles=uo,exports.useSearchControlStrings=t.g,exports.useSelectTimeStyles=Va,exports.useShareDialogStrings=t._,exports.useShowErrorStyles=po,exports.useShowMessageStyles=ho,exports.useSpaceStyles=mn,exports.useSplitPaneStyles=kn,exports.useStackStyles=gn,exports.useStrings=t.v,exports.useStyles=$c,exports.useTimeZoneHelper=ie,exports.useUserCardStrings=t.y,exports.useUtils=Kn,exports.useVideoStyles=To,exports.useWeekViewStyles=tr,exports.useWorldMapStrings=t.b;
453
453
  //# sourceMappingURL=index.cjs.map